Skip to content

armgit / peach

Public Imported from GitHub
0

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

build(web): 并入换页进度条、核查结算与 e2e 修复后重建前端产物

longmeidao9c67332330fa
diff --git a/web/dist/peach-app.js b/web/dist/peach-app.js
index fad160781..392aa2362 100644
--- a/web/dist/peach-app.js
+++ b/web/dist/peach-app.js
@@ -2,7 +2,7 @@
(function() {
try {
var e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new e.Error().stack;
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "540b9b62-d78e-4a7d-9c0c-86b1e13694db", e._sentryDebugIdIdentifier = "sentry-dbid-540b9b62-d78e-4a7d-9c0c-86b1e13694db");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "76b73096-fbeb-471c-9720-1d2b57ab8884", e._sentryDebugIdIdentifier = "sentry-dbid-76b73096-fbeb-471c-9720-1d2b57ab8884");
} 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, t.exports), e = null), t.exports), s = (e, n) => {
@@ -15535,53 +15535,66 @@ var tp = () => {}, np = new Promise((e) => {
tp = e;
});
np.catch(() => {});
-var rp = null, ip = /* @__PURE__ */ new Map(), ap = /* @__PURE__ */ new Map(), op = 0, sp = /* @__PURE__ */ new Set();
-function cp(e) {
+var rp = null, ip = /* @__PURE__ */ new Map(), ap = /* @__PURE__ */ new Map(), op = 0, sp = /* @__PURE__ */ new Set(), cp = /* @__PURE__ */ new Set(), lp = !1, up = () => lp;
+function dp(e) {
+ return cp.add(e), () => {
+ cp.delete(e);
+ };
+}
+function fp() {
+ let e = [...ap.values()].some((e) => e.page);
+ if (e !== lp) {
+ lp = e;
+ for (let e of [...cp]) e(lp);
+ }
+}
+function pp(e) {
tp(e);
}
-function lp(e) {
+function mp(e) {
return ip.get(e) ?? null;
}
-function up(e) {
+function hp(e) {
return !!e && (ip.has(e) || ap.has(e));
}
-var dp = () => [...ip.values()];
-function fp(e) {
+var gp = () => [...ip.values()];
+function _p(e) {
return sp.add(e), () => {
sp.delete(e);
};
}
-function pp(e) {
- let t = dp();
+function vp(e) {
+ let t = gp();
for (let n of [...sp]) n(t, e);
}
-async function mp(e, t, n) {
+async function yp(e, t, n) {
let { container: r } = n;
- if (ap.get(r)?.controller.abort(), ap.delete(r), !n.isCurrent()) return !1;
+ if (ap.get(r)?.controller.abort(), ap.delete(r), fp(), !n.isCurrent()) return !1;
let i = ip.get(r);
if (n.reuse && i?.host.isConnected) return ip.set(r, {
...i,
path: e,
props: t
- }), pp(!0), e.startsWith("/") && lm(`managed:${e}`, !0), !0;
+ }), vp(!0), e.startsWith("/") && mm(`managed:${e}`, !0), !0;
op += 1;
let a = {
revision: op,
- controller: new AbortController()
+ controller: new AbortController(),
+ page: e.startsWith("/") && !n.resident
};
- ap.set(r, a);
+ ap.set(r, a), fp();
let o = rp;
rp = null, o?.();
let s = await np;
if (ap.get(r) !== a) return !1;
try {
- e.startsWith("/") && um(`managed:${e}`) || await s(e, t, a.controller.signal);
+ e.startsWith("/") && hm(`managed:${e}`) || await s(e, t, a.controller.signal);
} catch {
if (a.controller.signal.aborted) return !1;
}
- if (ap.get(r) !== a || (ap.delete(r), !n.isCurrent())) return !1;
- n.beforePlace?.(), _p(r);
- let c = n.place ? n.place(r) : hp(r);
+ if (ap.get(r) !== a || (ap.delete(r), fp(), !n.isCurrent())) return !1;
+ n.beforePlace?.(), Sp(r);
+ let c = n.place ? n.place(r) : bp(r);
return ip.set(r, {
path: e,
props: t,
@@ -15589,13 +15602,13 @@ async function mp(e, t, n) {
container: r,
host: c,
resident: !!n.resident
- }), pp(!0), e.startsWith("/") && lm(`managed:${e}`, !0), !0;
+ }), vp(!0), e.startsWith("/") && mm(`managed:${e}`, !0), !0;
}
-function hp(e) {
+function bp(e) {
let t = e.ownerDocument.createElement("div");
return t.className = "peach-react", e.replaceChildren(t), t;
}
-function gp(e, t) {
+function xp(e, t) {
let n = e ? ip.get(e) : void 0;
n && (ip.set(n.container, {
...n,
@@ -15603,51 +15616,51 @@ function gp(e, t) {
...n.props,
...t
}
- }), pp(!1));
+ }), vp(!1));
}
-function _p(e, ...t) {
+function Sp(e, ...t) {
let n = [];
for (let r of /* @__PURE__ */ new Set([e, ...t])) {
let e = ap.get(r);
- e && (e.controller.abort(), ap.delete(r));
+ e && (e.controller.abort(), ap.delete(r), fp());
let t = ip.get(r);
t && (ip.delete(r), n.push(t));
}
if (n.length) {
- pp(!0);
+ vp(!0);
for (let e of n) e.resident || e.host.remove();
}
}
-function vp() {
+function Cp() {
let [e, ...t] = /* @__PURE__ */ new Set([...ip.keys(), ...ap.keys()]);
- e && _p(e, ...t);
+ e && Sp(e, ...t);
}
-function yp(e, t) {
+function wp(e, t) {
let n = ip.get(e);
n?.revision === t && (ip.delete(e), n.resident || n.host.remove(), queueMicrotask(() => {
- pp(!1);
+ vp(!1);
}));
}
// src/history/index.ts
-var bp = ku({ v5Compat: !0 }), xp = 0, Sp = 0, Cp = {
- action: bp.action,
- location: bp.location,
- seq: xp,
- openEpoch: Sp,
+var Tp = ku({ v5Compat: !0 }), Ep = 0, Dp = 0, Op = {
+ action: Tp.action,
+ location: Tp.location,
+ seq: Ep,
+ openEpoch: Dp,
claimed: !0
-}, wp = /* @__PURE__ */ new Set(), Tp = !1, Ep = !0;
-bp.listen(({ action: e, location: t }) => {
+}, kp = /* @__PURE__ */ new Set(), Ap = !1, jp = !0;
+Tp.listen(({ action: e, location: t }) => {
let n = t.pathname + t.search + t.hash, r = Qf(n);
- r !== n && (window.history.replaceState(window.history.state, "", r), t = bp.location), xp += 1, Tp || (Sp += 1), e !== "REPLACE" && (Ep = !1), Cp = {
+ r !== n && (window.history.replaceState(window.history.state, "", r), t = Tp.location), Ep += 1, Ap || (Dp += 1), e !== "REPLACE" && (jp = !1), Op = {
action: e,
location: t,
- seq: xp,
- openEpoch: Sp,
- claimed: Tp
+ seq: Ep,
+ openEpoch: Dp,
+ claimed: Ap
};
- for (let e of [...wp]) e(Cp);
+ for (let e of [...kp]) e(Op);
});
-function Dp(e) {
+function Mp(e) {
if (typeof e == "string") return Qf(new URL(e, window.location.href).href);
let t = new URL(`${e.pathname ?? window.location.pathname}${e.search || ""}${e.hash || ""}`, window.location.href), n = Qf(t.href);
if (n === t.pathname + t.search + t.hash) return e;
@@ -15659,42 +15672,42 @@ function Dp(e) {
hash: r.hash
};
}
-var Op = {
+var Np = {
get navigation() {
- return Cp;
+ return Op;
},
listen(e) {
- return wp.add(e), () => {
- wp.delete(e);
+ return kp.add(e), () => {
+ kp.delete(e);
};
},
- createHref: (e) => bp.createHref(e),
- createURL: (e) => bp.createURL(e),
- encodeLocation: (e) => bp.encodeLocation(e),
- go: (e) => bp.go(e),
- push: (e, t) => bp.push(Dp(e), t),
- replace: (e, t) => bp.replace(Dp(e), t)
+ createHref: (e) => Tp.createHref(e),
+ createURL: (e) => Tp.createURL(e),
+ encodeLocation: (e) => Tp.encodeLocation(e),
+ go: (e) => Tp.go(e),
+ push: (e, t) => Tp.push(Mp(e), t),
+ replace: (e, t) => Tp.replace(Mp(e), t)
};
-function kp(e, { replace: t = !1, state: n } = {}) {
+function Pp(e, { replace: t = !1, state: n } = {}) {
let r = new URL(e, window.location.href), i = Qf(`${r.pathname}${r.search}${r.hash}`);
- Tp = !0;
+ Ap = !0;
try {
- t ? bp.replace(i, n) : bp.push(i, n);
+ t ? Tp.replace(i, n) : Tp.push(i, n);
} finally {
- Tp = !1;
+ Ap = !1;
}
}
-var Ap = () => Ep;
-function jp() {
- if (Mf(Cp.location.pathname)) {
- let e = Ep ? null : Ff(Cp.location.state);
+var Fp = () => jp;
+function Ip() {
+ if (Mf(Op.location.pathname)) {
+ let e = jp ? null : Ff(Op.location.state);
return e ? Vf(e.state) || e : null;
}
- return Ep ? null : Vf(Cp.location.state);
+ return jp ? null : Vf(Op.location.state);
}
// src/ui-kit/anchor-scroll.ts
-var Mp = () => window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "instant" : "smooth";
-async function Np(e, t) {
+var Lp = () => window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "instant" : "smooth";
+async function Rp(e, t) {
let n;
try {
n = decodeURIComponent(e.slice(1));
@@ -15709,49 +15722,49 @@ async function Np(e, t) {
let r = document.getElementById(n);
r?.getClientRects().length && r.scrollIntoView({
block: "start",
- behavior: Mp()
+ behavior: Lp()
});
}
// src/history/page-navigation.ts
-var Pp = /* @__PURE__ */ new Map(), Fp = /* @__PURE__ */ new Map(), Ip = /* @__PURE__ */ new Map(), Lp, Rp, zp = {
+var zp = /* @__PURE__ */ new Map(), Bp = /* @__PURE__ */ new Map(), Vp = /* @__PURE__ */ new Map(), Hp, Up, Wp = {
left: window.scrollX,
top: window.scrollY
-}, Bp, Vp = -1, Hp = -1, Up = !1, Wp = !1, Gp, Kp, qp = !1, Jp = !1;
-function Yp() {
+}, Gp, Kp = -1, qp = -1, Jp = !1, Yp = !1, Xp, Zp, Qp = !1, $p = !1;
+function em() {
let e = document.documentElement;
- Gp ??= e.style.overflowAnchor, Kp ??= e.style.minHeight, e.style.minHeight = `${e.scrollHeight}px`, qp = !1, Jp = !1, e.style.overflowAnchor = "none", e.setAttribute("data-page-navigation-pending", ""), window.scrollTo({
+ Xp ??= e.style.overflowAnchor, Zp ??= e.style.minHeight, e.style.minHeight = `${e.scrollHeight}px`, Qp = !1, $p = !1, e.style.overflowAnchor = "none", e.setAttribute("data-page-navigation-pending", ""), window.scrollTo({
left: window.scrollX,
top: window.scrollY,
behavior: "instant"
});
}
-function Xp(e) {
- qp && !Jp && Gp !== void 0 && requestAnimationFrame(() => requestAnimationFrame(() => {
- if (Op.navigation.seq !== e || !qp || Jp || Gp === void 0) return;
+function tm(e) {
+ Qp && !$p && Xp !== void 0 && requestAnimationFrame(() => requestAnimationFrame(() => {
+ if (Np.navigation.seq !== e || !Qp || $p || Xp === void 0) return;
let t = document.documentElement;
- t.style.minHeight = Kp, t.style.overflowAnchor = Gp, t.removeAttribute("data-page-navigation-pending"), Kp = void 0, Gp = void 0;
+ t.style.minHeight = Zp, t.style.overflowAnchor = Xp, t.removeAttribute("data-page-navigation-pending"), Zp = void 0, Xp = void 0;
}));
}
-function Zp(e) {
- Jp = e.behavior === "smooth" && (Math.abs((e.top ?? window.scrollY) - window.scrollY) > .5 || Math.abs((e.left ?? window.scrollX) - window.scrollX) > .5), window.scrollTo(e);
+function nm(e) {
+ $p = e.behavior === "smooth" && (Math.abs((e.top ?? window.scrollY) - window.scrollY) > .5 || Math.abs((e.left ?? window.scrollX) - window.scrollX) > .5), window.scrollTo(e);
}
-function Qp(e) {
+function rm(e) {
if (!e?.getClientRects().length) {
- Jp = !1;
+ $p = !1;
return;
}
let t = parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop) || 0, n = parseFloat(getComputedStyle(e).scrollMarginTop) || 0, r = Math.max(0, Math.min(e.getBoundingClientRect().top + window.scrollY - t - n, document.documentElement.scrollHeight - window.innerHeight));
- Jp = Mp() === "smooth" && Math.abs(r - window.scrollY) > .5;
+ $p = Lp() === "smooth" && Math.abs(r - window.scrollY) > .5;
}
-var $p = (e) => !Bf(e) && !Mf(e) && e !== "/immerse" && e !== "/wall", em = (e) => {
+var im = (e) => !Bf(e) && !Mf(e) && e !== "/immerse" && e !== "/wall", am = (e) => {
let t = new URLSearchParams(e.search);
return `${e.pathname}:${t.get("jav") === "1"}:${t.get("orient") === "竖屏"}`;
-}, tm = (e) => {
+}, om = (e) => {
let t = new URLSearchParams(e.search);
return t.delete("edit"), t.sort(), e.pathname + (t.size ? `?${t}` : "") + e.hash;
-}, nm = (e) => `${e.key}:${tm(e)}`;
-function rm(e) {
- if (!$p(e.pathname)) return [];
+}, sm = (e) => `${e.key}:${om(e)}`;
+function cm(e) {
+ if (!im(e.pathname)) return [];
if (e.pathname === "/") {
let t = new URLSearchParams(e.search);
return [t.get("jav") === "1" ? "jav" : t.get("orient") === "竖屏" ? "shorts" : ""];
@@ -15759,74 +15772,74 @@ function rm(e) {
let t = ep(e.pathname);
return [...t?.nav ? [t.nav] : [], ...t?.section ? ["manage", t.section] : []];
}
-function im(e) {
+function lm(e) {
let t = e.pathname + e.search + e.hash;
if (e.pathname !== "/") return t;
let n = new URLSearchParams(e.search);
return n.has("q") ? (n.delete("q"), "/" + (n.size ? `?${n}` : "") + e.hash) : t;
}
-function am() {
- let e = Lp.location;
- for (let t of rm(e)) Ip.set(t, im(e));
+function um() {
+ let e = Hp.location;
+ for (let t of cm(e)) Vp.set(t, lm(e));
}
-function om(e) {
- return cm(), rm(Lp.location).includes(e) ? im(Lp.location) : Ip.get(e);
+function dm(e) {
+ return pm(), cm(Hp.location).includes(e) ? lm(Hp.location) : Vp.get(e);
}
-function sm() {
- cm(), Up = !0;
+function fm() {
+ pm(), Jp = !0;
}
-function cm() {
- Wp || (Wp = !0, Lp = Op.navigation, Rp = Lp.location, window.history.scrollRestoration = "manual", document.addEventListener("scrollend", (e) => {
- e.target === document && (Jp = !1, Xp(Op.navigation.seq));
- }), Op.listen((e) => {
- if (Rp = Lp.location, zp = {
+function pm() {
+ Yp || (Yp = !0, Hp = Np.navigation, Up = Hp.location, window.history.scrollRestoration = "manual", document.addEventListener("scrollend", (e) => {
+ e.target === document && ($p = !1, tm(Np.navigation.seq));
+ }), Np.listen((e) => {
+ if (Up = Hp.location, Wp = {
left: window.scrollX,
top: window.scrollY
- }, $p(e.location.pathname) ? Yp() : (qp = !0, Jp = !1, Xp(e.seq)), $p(Rp.pathname)) {
- let e = Pp.get(nm(Rp)) ?? {
- ...zp,
+ }, im(e.location.pathname) ? em() : (Qp = !0, $p = !1, tm(e.seq)), im(Up.pathname)) {
+ let e = zp.get(sm(Up)) ?? {
+ ...Wp,
state: /* @__PURE__ */ new Map()
};
- Object.assign(e, zp), Pp.set(nm(Rp), e), Fp.set(tm(Rp), e), am();
+ Object.assign(e, Wp), zp.set(sm(Up), e), Bp.set(om(Up), e), um();
}
if (e.action === "REPLACE") {
- let t = Pp.get(nm(Rp));
- t && Pp.set(nm(e.location), {
+ let t = zp.get(sm(Up));
+ t && zp.set(sm(e.location), {
...t,
state: new Map(t.state)
- }), Bp &&= Pp.get(nm(e.location));
- } else Bp = e.action === "POP" ? Pp.get(nm(e.location)) : Fp.get(tm(e.location));
- Up && (Bp = void 0), Up = !1, Bp && (Bp = {
- ...Bp,
- state: new Map(Bp.state)
- }, Pp.set(nm(e.location), Bp)), Lp = e;
+ }), Gp &&= zp.get(sm(e.location));
+ } else Gp = e.action === "POP" ? zp.get(sm(e.location)) : Bp.get(om(e.location));
+ Jp && (Gp = void 0), Jp = !1, Gp && (Gp = {
+ ...Gp,
+ state: new Map(Gp.state)
+ }, zp.set(sm(e.location), Gp)), Hp = e;
}));
}
-function lm(e, t) {
- if (cm(), !$p(Lp.location.pathname)) return;
- let n = Pp.get(nm(Lp.location)) ?? {
+function mm(e, t) {
+ if (pm(), !im(Hp.location.pathname)) return;
+ let n = zp.get(sm(Hp.location)) ?? {
left: window.scrollX,
top: window.scrollY,
state: /* @__PURE__ */ new Map()
};
- n.state.set(e, t), Pp.set(nm(Lp.location), n), am();
+ n.state.set(e, t), zp.set(sm(Hp.location), n), um();
}
-function um(e) {
- return cm(), Bp?.state.get(e);
+function hm(e) {
+ return pm(), Gp?.state.get(e);
}
-var dm = () => (cm(), !!Bp);
-function fm() {
- cm(), Hp = Op.navigation.seq, Vp === Hp && (Hp = -1, Zp({
+var gm = () => (pm(), !!Gp);
+function _m() {
+ pm(), qp = Np.navigation.seq, Kp === qp && (qp = -1, nm({
top: 0,
- behavior: Mp()
+ behavior: Lp()
}));
}
-async function pm(e, t, { pending: n = !1 } = {}) {
- cm();
- let r = Op.navigation, i = r.seq, a = () => e() && Op.navigation.seq === i;
- if ($p(r.location.pathname) && a() && (am(), !(!n && Bp && (await document.fonts?.ready, await new Promise((e) => requestAnimationFrame(() => e())), !a())))) {
- if (n || (qp = !0), Vp === i) Xp(i);
- else if (!(n && Bp)) {
+async function vm(e, t, { pending: n = !1 } = {}) {
+ pm();
+ let r = Np.navigation, i = r.seq, a = () => e() && Np.navigation.seq === i;
+ if (im(r.location.pathname) && a() && (um(), !(!n && Gp && (await document.fonts?.ready, await new Promise((e) => requestAnimationFrame(() => e())), !a())))) {
+ if (n || (Qp = !0), Kp === i) tm(i);
+ else if (!(n && Gp)) {
if (n && r.location.hash) {
let e;
try {
@@ -15836,83 +15849,83 @@ async function pm(e, t, { pending: n = !1 } = {}) {
}
if (!e?.getClientRects().length || e.closest("[data-skeleton], [data-content-skeleton]")) return;
}
- if (Vp = i, Hp === i) Hp = -1, Bp = void 0, Zp({
+ if (Kp = i, qp === i) qp = -1, Gp = void 0, nm({
top: 0,
- behavior: Mp()
+ behavior: Lp()
});
- else if (Bp) {
- let e = Mp();
+ else if (Gp) {
+ let e = Lp();
e === "smooth" && window.scrollTo({
- ...zp,
+ ...Wp,
behavior: "instant"
- }), Zp({
- left: Bp.left,
- top: Bp.top,
+ }), nm({
+ left: Gp.left,
+ top: Gp.top,
behavior: e
- }), Bp = void 0;
+ }), Gp = void 0;
} else if (r.location.hash) {
- if (await Np(r.location.hash, a), !a()) return;
+ if (await Rp(r.location.hash, a), !a()) return;
let e = null;
try {
e = document.getElementById(decodeURIComponent(r.location.hash.slice(1)));
} catch {}
- Qp(e);
- } else if (r.action === "REPLACE" && em(Rp) === em(r.location)) window.scrollTo({
- ...zp,
+ rm(e);
+ } else if (r.action === "REPLACE" && am(Up) === am(r.location)) window.scrollTo({
+ ...Wp,
behavior: "instant"
});
- else if (t?.getClientRects().length && em(Rp) === em(r.location) && Rp.search !== r.location.search) {
+ else if (t?.getClientRects().length && am(Up) === am(r.location) && Up.search !== r.location.search) {
let e = parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop) || 0;
- t.getBoundingClientRect().top < e && (Qp(t), t.scrollIntoView({
+ t.getBoundingClientRect().top < e && (rm(t), t.scrollIntoView({
block: "start",
- behavior: Mp()
+ behavior: Lp()
}));
- } else i > 0 && Zp({
+ } else i > 0 && nm({
top: 0,
- behavior: Mp()
+ behavior: Lp()
});
- Xp(i);
+ tm(i);
}
}
}
// node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs
-var mm = /* @__PURE__ */ (0, F.createContext)({});
+var ym = /* @__PURE__ */ (0, F.createContext)({});
// node_modules/framer-motion/dist/es/utils/use-constant.mjs
-function hm(e) {
+function bm(e) {
let t = (0, F.useRef)(null);
return t.current === null && (t.current = e()), t.current;
}
// node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs
-var gm = typeof window < "u" ? F.useLayoutEffect : F.useEffect, _m = /* @__PURE__ */ (0, F.createContext)(null);
+var xm = typeof window < "u" ? F.useLayoutEffect : F.useEffect, Sm = /* @__PURE__ */ (0, F.createContext)(null);
// node_modules/motion-utils/dist/es/array.mjs
-function vm(e, t) {
+function Cm(e, t) {
e.indexOf(t) === -1 && e.push(t);
}
-function ym(e, t) {
+function wm(e, t) {
let n = e.indexOf(t);
n > -1 && e.splice(n, 1);
}
// node_modules/motion-utils/dist/es/clamp.mjs
-var bm = (e, t, n) => n > t ? t : n < e ? e : n, xm = {}, Sm = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), Cm = (e) => typeof e == "object" && !!e, wm = (e) => /^0[^.\s]+$/u.test(e);
+var Tm = (e, t, n) => n > t ? t : n < e ? e : n, Em = {}, Dm = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), Om = (e) => typeof e == "object" && !!e, km = (e) => /^0[^.\s]+$/u.test(e);
// node_modules/motion-utils/dist/es/memo.mjs
/*#__NO_SIDE_EFFECTS__*/
-function Tm(e) {
+function Am(e) {
let t;
return () => (t === void 0 && (t = e()), t);
}
// node_modules/motion-utils/dist/es/noop.mjs
-var Em = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Dm = (...e) => e.reduce((e, t) => (n) => t(e(n))), Om = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
+var jm = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Mm = (...e) => e.reduce((e, t) => (n) => t(e(n))), Nm = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
let r = t - e;
return r ? (n - e) / r : 1;
-}, km = class {
+}, Pm = class {
constructor() {
this.subscriptions = [];
}
add(e) {
- return vm(this.subscriptions, e), () => this.remove(e);
+ return Cm(this.subscriptions, e), () => this.remove(e);
}
remove(e) {
- ym(this.subscriptions, e);
+ wm(this.subscriptions, e);
}
notify(e, t, n) {
let r = this.subscriptions.length;
@@ -15930,146 +15943,146 @@ var Em = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Dm = (...e) => e.reduce((e, t) =>
clear() {
this.subscriptions.length = 0;
}
-}, Am = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, jm = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, Mm = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, Nm = (e, t, n) => {
+}, Fm = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, Im = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, Lm = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, Rm = (e, t, n) => {
let r = t - e;
return ((n - e) % r + r) % r + e;
-}, Pm = (e, t, n) => e * (3 * (1 - e) * ((1 - e) * t + e * n) + e * e);
+}, zm = (e, t, n) => e * (3 * (1 - e) * ((1 - e) * t + e * n) + e * e);
/*#__NO_SIDE_EFFECTS__*/
-function Fm(e, t, n, r) {
- return e === t && n === r ? Em : (i) => {
+function Bm(e, t, n, r) {
+ return e === t && n === r ? jm : (i) => {
let a = 0, o = 1, s = i;
for (let t = 0;; t++) {
s >= a && s <= o || (s = (a + o) / 2);
- let r = Pm(s, e, n) - i;
+ let r = zm(s, e, n) - i;
if (r * r < 1e-28 || t === 40) break;
- r > 0 ? o = s : a = s, s -= r * 1e-7 / (Pm(s + 1e-7, e, n) - i - r);
+ r > 0 ? o = s : a = s, s -= r * 1e-7 / (zm(s + 1e-7, e, n) - i - r);
}
- return Pm(s, t, r);
+ return zm(s, t, r);
};
}
// node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs
-var Im = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Lm = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), Rm = /*@__PURE__*/ Fm(.33, 1.53, .69, .99), zm = /*@__PURE__*/ Lm(Rm), Bm = /*@__PURE__*/ Im(zm), Vm = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * zm(e) : .5 * (2 - 2 ** (-10 * (e - 1))), Hm = (e) => 1 - Math.sin(Math.acos(e)), Um = /* @__PURE__ */ Lm(Hm), Wm = /* @__PURE__ */ Im(Hm), Gm = /*@__PURE__*/ Fm(.42, 0, 1, 1), Km = /*@__PURE__*/ Fm(0, 0, .58, 1), qm = /*@__PURE__*/ Fm(.42, 0, .58, 1), Jm = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number";
+var Vm = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Hm = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), Um = /*@__PURE__*/ Bm(.33, 1.53, .69, .99), Wm = /*@__PURE__*/ Hm(Um), Gm = /*@__PURE__*/ Vm(Wm), Km = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * Wm(e) : .5 * (2 - 2 ** (-10 * (e - 1))), qm = (e) => 1 - Math.sin(Math.acos(e)), Jm = /* @__PURE__ */ Hm(qm), Ym = /* @__PURE__ */ Vm(qm), Xm = /*@__PURE__*/ Bm(.42, 0, 1, 1), Zm = /*@__PURE__*/ Bm(0, 0, .58, 1), Qm = /*@__PURE__*/ Bm(.42, 0, .58, 1), $m = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number";
// node_modules/motion-utils/dist/es/easing/utils/get-easing-for-segment.mjs
/*#__NO_SIDE_EFFECTS__*/
-function Ym(e, t) {
- return /* @__PURE__ */ Jm(e) ? e[Nm(0, e.length, t)] : e;
+function eh(e, t) {
+ return /* @__PURE__ */ $m(e) ? e[Rm(0, e.length, t)] : e;
}
// node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.mjs
-var Xm = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", Zm = {
- linear: Em,
- easeIn: Gm,
- easeInOut: qm,
- easeOut: Km,
- circIn: Hm,
- circInOut: Wm,
- circOut: Um,
- backIn: zm,
- backInOut: Bm,
- backOut: Rm,
- anticipate: Vm
-}, Qm = (e) => typeof e == "string", $m = (e) => {
- if (/* @__PURE__ */ Xm(e)) {
+var th = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", nh = {
+ linear: jm,
+ easeIn: Xm,
+ easeInOut: Qm,
+ easeOut: Zm,
+ circIn: qm,
+ circInOut: Ym,
+ circOut: Jm,
+ backIn: Wm,
+ backInOut: Gm,
+ backOut: Um,
+ anticipate: Km
+}, rh = (e) => typeof e == "string", ih = (e) => {
+ if (/* @__PURE__ */ th(e)) {
let [t, n, r, i] = e;
- return /* @__PURE__ */ Fm(t, n, r, i);
+ return /* @__PURE__ */ Bm(t, n, r, i);
}
- return Qm(e) ? Zm[e] : e;
-}, eh = {
+ return rh(e) ? nh[e] : e;
+}, ah = {
delta: 0,
timestamp: 0,
isProcessing: !1
-}, th;
-function nh() {
- th = void 0;
+}, oh;
+function sh() {
+ oh = void 0;
}
-var rh = {
- now: () => (th === void 0 && rh.set(eh.isProcessing || xm.useManualTiming ? eh.timestamp : performance.now()), th),
+var ch = {
+ now: () => (oh === void 0 && ch.set(ah.isProcessing || Em.useManualTiming ? ah.timestamp : performance.now()), oh),
set: (e) => {
- th = e, queueMicrotask(nh);
+ oh = e, queueMicrotask(sh);
}
-}, ih = (e) => Math.round(e * 1e5) / 1e5, ah = (e) => (t) => typeof t == "string" && t.startsWith(e), oh = /*@__PURE__*/ ah("--"), sh = /*@__PURE__*/ ah("var(--"), ch = (e) => sh(e) ? lh.test(e.split("/*")[0].trim()) : !1, lh = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
-function uh(e) {
+}, lh = (e) => Math.round(e * 1e5) / 1e5, uh = (e) => (t) => typeof t == "string" && t.startsWith(e), dh = /*@__PURE__*/ uh("--"), fh = /*@__PURE__*/ uh("var(--"), ph = (e) => fh(e) ? mh.test(e.split("/*")[0].trim()) : !1, mh = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
+function hh(e) {
return typeof e == "string" && e.split("/*")[0].includes("var(--");
}
// node_modules/motion-dom/dist/es/value/types/numbers/index.mjs
-var dh = {
+var gh = {
test: (e) => typeof e == "number",
parse: parseFloat,
transform: (e) => e
-}, fh = {
- ...dh,
- transform: (e) => bm(0, 1, e)
-}, ph = {
- ...dh,
+}, _h = {
+ ...gh,
+ transform: (e) => Tm(0, 1, e)
+}, vh = {
+ ...gh,
default: 1
-}, mh = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
+}, yh = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
// node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs
-function hh(e) {
+function bh(e) {
return e == null;
}
// node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs
-var gh = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, _h = (e, t) => (n) => !!(typeof n == "string" && gh.test(n) && n.startsWith(e) || t && !hh(n) && Object.prototype.hasOwnProperty.call(n, t)), vh = (e, t, n) => (r) => {
+var xh = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Sh = (e, t) => (n) => !!(typeof n == "string" && xh.test(n) && n.startsWith(e) || t && !bh(n) && Object.prototype.hasOwnProperty.call(n, t)), Ch = (e, t, n) => (r) => {
if (typeof r != "string") return r;
- let [i, a, o, s] = r.match(mh);
+ let [i, a, o, s] = r.match(yh);
return {
[e]: parseFloat(i),
[t]: parseFloat(a),
[n]: parseFloat(o),
alpha: s === void 0 ? 1 : parseFloat(s)
};
-}, yh = (e) => bm(0, 255, e), bh = {
- ...dh,
- transform: (e) => Math.round(yh(e))
-}, xh = {
- test: /*@__PURE__*/ _h("rgb", "red"),
- parse: /*@__PURE__*/ vh("red", "green", "blue"),
- transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + bh.transform(e) + ", " + bh.transform(t) + ", " + bh.transform(n) + ", " + ih(fh.transform(r)) + ")"
-}, Sh = (e, t, n) => {
+}, wh = (e) => Tm(0, 255, e), Th = {
+ ...gh,
+ transform: (e) => Math.round(wh(e))
+}, Eh = {
+ test: /*@__PURE__*/ Sh("rgb", "red"),
+ parse: /*@__PURE__*/ Ch("red", "green", "blue"),
+ transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + Th.transform(e) + ", " + Th.transform(t) + ", " + Th.transform(n) + ", " + lh(_h.transform(r)) + ")"
+}, Dh = (e, t, n) => {
let r = e.substring(1 + t * n, 1 + (t + 1) * n);
return n > 1 ? r : r + r;
};
-function Ch(e) {
- let t = e.length > 5 ? 2 : 1, n = Sh(e, 3, t);
+function Oh(e) {
+ let t = e.length > 5 ? 2 : 1, n = Dh(e, 3, t);
return {
- red: parseInt(Sh(e, 0, t), 16),
- green: parseInt(Sh(e, 1, t), 16),
- blue: parseInt(Sh(e, 2, t), 16),
+ red: parseInt(Dh(e, 0, t), 16),
+ green: parseInt(Dh(e, 1, t), 16),
+ blue: parseInt(Dh(e, 2, t), 16),
alpha: n ? parseInt(n, 16) / 255 : 1
};
}
-var wh = {
- test: /*@__PURE__*/ _h("#"),
- parse: Ch,
- transform: xh.transform
-}, Th = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
+var kh = {
+ test: /*@__PURE__*/ Sh("#"),
+ parse: Oh,
+ transform: Eh.transform
+}, Ah = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
parse: parseFloat,
transform: (t) => `${t}${e}`
-}), Eh = /*@__PURE__*/ Th("deg"), Dh = /*@__PURE__*/ Th("%"), Oh = /*@__PURE__*/ Th("px"), kh = /*@__PURE__*/ Th("vh"), Ah = /*@__PURE__*/ Th("vw"), jh = {
- ...Dh,
- parse: (e) => Dh.parse(e) / 100,
- transform: (e) => Dh.transform(e * 100)
-}, Mh = {
- test: /*@__PURE__*/ _h("hsl", "hue"),
- parse: /*@__PURE__*/ vh("hue", "saturation", "lightness"),
- transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + Dh.transform(ih(t)) + ", " + Dh.transform(ih(n)) + ", " + ih(fh.transform(r)) + ")"
-}, Nh = {
- test: (e) => xh.test(e) || wh.test(e) || Mh.test(e),
- parse: (e) => xh.test(e) ? xh.parse(e) : Mh.test(e) ? Mh.parse(e) : wh.parse(e),
- transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? xh.transform(e) : Mh.transform(e),
+}), jh = /*@__PURE__*/ Ah("deg"), Mh = /*@__PURE__*/ Ah("%"), Nh = /*@__PURE__*/ Ah("px"), Ph = /*@__PURE__*/ Ah("vh"), Fh = /*@__PURE__*/ Ah("vw"), Ih = {
+ ...Mh,
+ parse: (e) => Mh.parse(e) / 100,
+ transform: (e) => Mh.transform(e * 100)
+}, Lh = {
+ test: /*@__PURE__*/ Sh("hsl", "hue"),
+ parse: /*@__PURE__*/ Ch("hue", "saturation", "lightness"),
+ transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + Mh.transform(lh(t)) + ", " + Mh.transform(lh(n)) + ", " + lh(_h.transform(r)) + ")"
+}, Rh = {
+ test: (e) => Eh.test(e) || kh.test(e) || Lh.test(e),
+ parse: (e) => Eh.test(e) ? Eh.parse(e) : Lh.test(e) ? Lh.parse(e) : kh.parse(e),
+ transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? Eh.transform(e) : Lh.transform(e),
getAnimatableNone: (e) => {
- let t = Nh.parse(e);
- return t.alpha = 0, Nh.transform(t);
+ let t = Rh.parse(e);
+ return t.alpha = 0, Rh.transform(t);
}
-}, Ph = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, Fh = /*@__PURE__*/ new RegExp(mh.source), Ih = /*@__PURE__*/ new RegExp(Ph.source, "i");
-function Lh(e) {
- return isNaN(e) && typeof e == "string" && (Fh.test(e) || Ih.test(e));
+}, zh = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, Bh = /*@__PURE__*/ new RegExp(yh.source), Vh = /*@__PURE__*/ new RegExp(zh.source, "i");
+function Hh(e) {
+ return isNaN(e) && typeof e == "string" && (Bh.test(e) || Vh.test(e));
}
-var Rh = "number", zh = "color", Bh = "var", Vh = "var(", Hh = "${}", Uh = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)(?![a-z]*\()/giu;
-function Wh(e) {
+var Uh = "number", Wh = "color", Gh = "var", Kh = "var(", qh = "${}", Jh = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)(?![a-z]*\()/giu;
+function Yh(e) {
let t = e.toString();
- return Fh.test(t) || Ih.test(t);
+ return Bh.test(t) || Vh.test(t);
}
-function Gh(e) {
+function Xh(e) {
let t = e.toString(), n = [], r = {
color: [],
number: [],
@@ -16077,50 +16090,50 @@ function Gh(e) {
}, i = [], a = 0;
return {
values: n,
- split: t.replace(Uh, (e) => (Nh.test(e) ? (r.color.push(a), i.push(zh), n.push(Nh.parse(e))) : e.startsWith(Vh) ? (r.var.push(a), i.push(Bh), n.push(e)) : (r.number.push(a), i.push(Rh), n.push(parseFloat(e))), ++a, Hh)).split(Hh),
+ split: t.replace(Jh, (e) => (Rh.test(e) ? (r.color.push(a), i.push(Wh), n.push(Rh.parse(e))) : e.startsWith(Kh) ? (r.var.push(a), i.push(Gh), n.push(e)) : (r.number.push(a), i.push(Uh), n.push(parseFloat(e))), ++a, qh)).split(qh),
indexes: r,
types: i
};
}
-function Kh(e) {
- return Gh(e).values;
+function Zh(e) {
+ return Xh(e).values;
}
-function qh({ split: e, types: t }) {
+function Qh({ split: e, types: t }) {
let n = e.length;
return (r) => {
let i = "";
for (let a = 0; a < n; a++) if (i += e[a], r[a] !== void 0) {
let e = t[a];
- i += e === Rh ? ih(r[a]) : e === zh ? Nh.transform(r[a]) : r[a];
+ i += e === Uh ? lh(r[a]) : e === Wh ? Rh.transform(r[a]) : r[a];
}
return i;
};
}
-function Jh(e) {
- return qh(Gh(e));
+function $h(e) {
+ return Qh(Xh(e));
}
-var Yh = (e) => typeof e == "number" ? 0 : Nh.test(e) ? Nh.getAnimatableNone(e) : e, Xh = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : Yh(e);
-function Zh(e) {
- let t = Gh(e);
- return qh(t)(t.values.map((e, n) => Xh(e, t.split[n])));
-}
-var Qh = {
- test: Lh,
- parse: Kh,
- createTransformer: Jh,
- getAnimatableNone: Zh
+var eg = (e) => typeof e == "number" ? 0 : Rh.test(e) ? Rh.getAnimatableNone(e) : e, tg = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : eg(e);
+function ng(e) {
+ let t = Xh(e);
+ return Qh(t)(t.values.map((e, n) => tg(e, t.split[n])));
+}
+var rg = {
+ test: Hh,
+ parse: Zh,
+ createTransformer: $h,
+ getAnimatableNone: ng
};
// node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs
-function $h(e, t, n) {
+function ig(e, t, n) {
return n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
}
-function eg({ hue: e, saturation: t, lightness: n, alpha: r }) {
+function eee({ hue: e, saturation: t, lightness: n, alpha: r }) {
e /= 360, t /= 100, n /= 100;
let i = 0, a = 0, o = 0;
if (!t) i = a = o = n;
else {
let r = n < .5 ? n * (1 + t) : n + t - n * t, s = 2 * n - r;
- i = $h(s, r, e + 1 / 3), a = $h(s, r, e), o = $h(s, r, e - 1 / 3);
+ i = ig(s, r, e + 1 / 3), a = ig(s, r, e), o = ig(s, r, e - 1 / 3);
}
return {
red: Math.round(i * 255),
@@ -16130,59 +16143,59 @@ function eg({ hue: e, saturation: t, lightness: n, alpha: r }) {
};
}
// node_modules/motion-dom/dist/es/utils/mix/immediate.mjs
-function tg(e, t) {
+function ag(e, t) {
return (n) => n > 0 ? t : e;
}
// node_modules/motion-dom/dist/es/utils/mix/number.mjs
-var ng = (e, t, n) => e + (t - e) * n, rg = (e, t, n) => {
+var og = (e, t, n) => e + (t - e) * n, sg = (e, t, n) => {
let r = e * e, i = n * (t * t - r) + r;
return i < 0 ? 0 : Math.sqrt(i);
-}, eee = [
- wh,
- xh,
- Mh
-], tee = (e) => eee.find((t) => t.test(e));
-function ig(e) {
- let t = tee(e);
+}, tee = [
+ kh,
+ Eh,
+ Lh
+], nee = (e) => tee.find((t) => t.test(e));
+function cg(e) {
+ let t = nee(e);
if (!t) return !1;
let n = t.parse(e);
- return t === Mh && (n = eg(n)), n;
+ return t === Lh && (n = eee(n)), n;
}
-var ag = (e, t) => {
- let n = ig(e), r = ig(t);
- if (!n || !r) return tg(e, t);
+var lg = (e, t) => {
+ let n = cg(e), r = cg(t);
+ if (!n || !r) return ag(e, t);
let i = { ...n };
- return (e) => (i.red = rg(n.red, r.red, e), i.green = rg(n.green, r.green, e), i.blue = rg(n.blue, r.blue, e), i.alpha = ng(n.alpha, r.alpha, e), xh.transform(i));
-}, og = /* @__PURE__ */ new Set(["none", "hidden"]);
-function nee(e, t) {
- return og.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
+ return (e) => (i.red = sg(n.red, r.red, e), i.green = sg(n.green, r.green, e), i.blue = sg(n.blue, r.blue, e), i.alpha = og(n.alpha, r.alpha, e), Eh.transform(i));
+}, ug = /* @__PURE__ */ new Set(["none", "hidden"]);
+function ree(e, t) {
+ return ug.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
}
// node_modules/motion-dom/dist/es/utils/mix/complex.mjs
-function ree(e, t) {
- return (n) => ng(e, t, n);
+function iee(e, t) {
+ return (n) => og(e, t, n);
}
-function sg(e) {
- return typeof e == "number" ? ree : typeof e == "string" ? ch(e) ? tg : Nh.test(e) ? ag : oee : Array.isArray(e) ? cg : typeof e == "object" ? Nh.test(e) ? ag : iee : tg;
+function dg(e) {
+ return typeof e == "number" ? iee : typeof e == "string" ? ph(e) ? ag : Rh.test(e) ? lg : see : Array.isArray(e) ? fg : typeof e == "object" ? Rh.test(e) ? lg : aee : ag;
}
-function cg(e, t) {
- let n = [...e], r = n.length, i = e.map((e, n) => sg(e)(e, t[n]));
+function fg(e, t) {
+ let n = [...e], r = n.length, i = e.map((e, n) => dg(e)(e, t[n]));
return (e) => {
for (let t = 0; t < r; t++) n[t] = i[t](e);
return n;
};
}
-function iee(e, t) {
+function aee(e, t) {
let n = {
...e,
...t
}, r = {};
- for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = sg(e[i])(e[i], t[i]));
+ for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = dg(e[i])(e[i], t[i]));
return (e) => {
for (let t in r) n[t] = r[t](e);
return n;
};
}
-function aee(e, t) {
+function oee(e, t) {
let n = [], r = {
color: 0,
var: 0,
@@ -16194,28 +16207,28 @@ function aee(e, t) {
}
return n;
}
-var oee = (e, t) => {
- let n = Gh(e), r = Gh(t);
- return n.indexes.var.length === r.indexes.var.length && n.indexes.color.length === r.indexes.color.length && n.indexes.number.length >= r.indexes.number.length ? og.has(e) && !r.values.length || og.has(t) && !n.values.length ? nee(e, t) : Dm(cg(aee(n, r), r.values), qh(r)) : tg(e, t);
-}, lg = /^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;
-function see(e, t) {
- let n = lg.exec(e);
+var see = (e, t) => {
+ let n = Xh(e), r = Xh(t);
+ return n.indexes.var.length === r.indexes.var.length && n.indexes.color.length === r.indexes.color.length && n.indexes.number.length >= r.indexes.number.length ? ug.has(e) && !r.values.length || ug.has(t) && !n.values.length ? ree(e, t) : Mm(fg(oee(n, r), r.values), Qh(r)) : ag(e, t);
+}, pg = /^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;
+function cee(e, t) {
+ let n = pg.exec(e);
if (!n) return;
- let r = lg.exec(t);
+ let r = pg.exec(t);
if (!r || n[2] !== r[2]) return;
let i = n[2], a = parseFloat(n[1]), o = parseFloat(r[1]);
- return (e) => ih(ng(a, o, e)) + i;
+ return (e) => lh(og(a, o, e)) + i;
}
-function ug(e, t, n) {
- if (typeof e == "number" && typeof t == "number" && typeof n == "number") return ng(e, t, n);
+function mg(e, t, n) {
+ if (typeof e == "number" && typeof t == "number" && typeof n == "number") return og(e, t, n);
if (typeof e == "string" && typeof t == "string") {
- let n = see(e, t);
+ let n = cee(e, t);
if (n) return n;
}
- return sg(e)(e, t);
+ return dg(e)(e, t);
}
// node_modules/motion-dom/dist/es/frameloop/order.mjs
-var dg = [
+var hg = [
"setup",
"read",
"resolveKeyframes",
@@ -16226,7 +16239,7 @@ var dg = [
"postRender"
];
// node_modules/motion-dom/dist/es/frameloop/render-step.mjs
-function cee(e) {
+function lee(e) {
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = !1, i = !1, a, o = /* @__PURE__ */ new Set(), s = {
delta: 0,
timestamp: 0,
@@ -16256,117 +16269,117 @@ function cee(e) {
return l;
}
// node_modules/motion-dom/dist/es/frameloop/batcher.mjs
-var lee = 40;
-function fg(e, t, n = {
+var uee = 40;
+function gg(e, t, n = {
delta: 0,
timestamp: 0,
isProcessing: !1
}) {
- let r = !1, i = !0, a = () => r = !0, o = dg.reduce((e, t) => (e[t] = cee(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
- let a = xm.useManualTiming, o = a ? n.timestamp : performance.now();
- r = !1, a || (n.delta = i ? 1e3 / 60 : Math.max(Math.min(o - n.timestamp, lee), 1)), n.timestamp = o, n.isProcessing = !0, s.process(n), c.process(n), l.process(n), u.process(n), d.process(n), f.process(n), p.process(n), m.process(n), n.isProcessing = !1, r && t && (i = !1, e(h));
+ let r = !1, i = !0, a = () => r = !0, o = hg.reduce((e, t) => (e[t] = lee(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
+ let a = Em.useManualTiming, o = a ? n.timestamp : performance.now();
+ r = !1, a || (n.delta = i ? 1e3 / 60 : Math.max(Math.min(o - n.timestamp, uee), 1)), n.timestamp = o, n.isProcessing = !0, s.process(n), c.process(n), l.process(n), u.process(n), d.process(n), f.process(n), p.process(n), m.process(n), n.isProcessing = !1, r && t && (i = !1, e(h));
}, g = () => {
r = !0, i = !0, n.isProcessing || e(h);
};
return {
- schedule: dg.reduce((e, t) => {
+ schedule: hg.reduce((e, t) => {
let n = o[t];
return e[t] = (e, t = !1, i = !1) => (r || g(), n.schedule(e, t, i)), e;
}, {}),
cancel: (e) => {
- for (let t = 0; t < dg.length; t++) o[dg[t]].cancel(e);
+ for (let t = 0; t < hg.length; t++) o[hg[t]].cancel(e);
},
state: n,
steps: o
};
}
// node_modules/motion-dom/dist/es/frameloop/frame.mjs
-var { schedule: pg, cancel: mg, steps: hg } = /* @__PURE__ */ fg(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Em, !0, eh), gg = (e) => {
+var { schedule: _g, cancel: vg, steps: yg } = /* @__PURE__ */ gg(typeof requestAnimationFrame < "u" ? requestAnimationFrame : jm, !0, ah), bg = (e) => {
let t = ({ timestamp: t }) => e(t);
return {
- start: (e = !0) => pg.update(t, e),
- stop: () => mg(t),
- now: () => eh.isProcessing ? eh.timestamp : rh.now()
+ start: (e = !0) => _g.update(t, e),
+ stop: () => vg(t),
+ now: () => ah.isProcessing ? ah.timestamp : ch.now()
};
-}, _g = (e, t, n = 10) => {
+}, xg = (e, t, n = 10) => {
let r = "", i = Math.max(Math.round(t / n), 2);
for (let t = 0; t < i; t++) r += Math.round(e(t / (i - 1)) * 1e4) / 1e4 + ", ";
return `linear(${r.substring(0, r.length - 2)})`;
-}, vg = 2e4;
-function yg(e, t = 50, n = vg, r) {
+}, Sg = 2e4;
+function Cg(e, t = 50, n = Sg, r) {
let i = 0, a = e.next(i);
for (r?.push(a.value); !a.done && i < n;) i += t, a = e.next(i), r?.push(a.value);
return i >= n ? Infinity : i;
}
// node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs
-function bg(e, t = 100, n) {
+function wg(e, t = 100, n) {
let { keyframes: r, velocity: i } = e, a = r && r[r.length - 1] - r[0], o = n({
...e,
velocity: i && a ? i * t / a : i,
keyframes: [0, t]
- }), s = Math.min(yg(o), vg);
+ }), s = Math.min(Cg(o), Sg);
return {
type: "keyframes",
ease: (e) => o.next(s * e).value / t,
- duration: /* @__PURE__ */ jm(s)
+ duration: /* @__PURE__ */ Im(s)
};
}
// node_modules/motion-dom/dist/es/animation/generators/spring.mjs
-var xg = 100, Sg = 10, uee = 1, dee = 800, Cg = .3, fee = .3, pee = .01, mee = 2, hee = .005, gee = .5, _ee = .01, vee = 10, wg = .05, Tg = (e) => e < 0 ? 1 / Math.max(1 + e, wg) : Math.max(1 - e, wg);
-function Eg(e, t) {
+var Tg = 100, Eg = 10, dee = 1, fee = 800, Dg = .3, pee = .3, mee = .01, hee = 2, gee = .005, _ee = .5, vee = .01, yee = 10, Og = .05, kg = (e) => e < 0 ? 1 / Math.max(1 + e, Og) : Math.max(1 - e, Og);
+function Ag(e, t) {
if (!(e > 1)) return 1;
let n = Math.sqrt(e * e - 1), r = e - n, i = e + n, a = 2 * n * Math.exp(-t) * (1 + t);
- return Og((e) => i * Math.exp(-r * e) - r * Math.exp(-i * e) - a, (e) => Math.exp(-i * e) - Math.exp(-r * e), t) / t;
+ return Mg((e) => i * Math.exp(-r * e) - r * Math.exp(-i * e) - a, (e) => Math.exp(-i * e) - Math.exp(-r * e), t) / t;
}
-function Dg(e, t) {
+function jg(e, t) {
return e * Math.sqrt(1 - t * t);
}
-var yee = 12;
-function Og(e, t, n) {
+var bee = 12;
+function Mg(e, t, n) {
let r = n;
- for (let n = 1; n < yee; n++) r -= e(r) / t(r);
+ for (let n = 1; n < bee; n++) r -= e(r) / t(r);
return r;
}
-var kg = .001;
-function bee({ duration: e = dee, bounce: t = Cg }) {
- let n, r, i = Tg(t);
- e = bm(_ee, vee, /* @__PURE__ */ jm(e)), i < 1 ? (n = (t) => {
- let n = t * i, r = n * e, a = Dg(t, i), o = Math.exp(-r);
- return kg - n / a * o;
+var Ng = .001;
+function xee({ duration: e = fee, bounce: t = Dg }) {
+ let n, r, i = kg(t);
+ e = Tm(vee, yee, /* @__PURE__ */ Im(e)), i < 1 ? (n = (t) => {
+ let n = t * i, r = n * e, a = jg(t, i), o = Math.exp(-r);
+ return Ng - n / a * o;
}, r = (t) => {
- let r = t * i * e, a = i * i * t * t * e, o = Math.exp(-r), s = Dg(t * t, i);
- return (-n(t) + kg > 0 ? -1 : 1) * -a * o / s;
+ let r = t * i * e, a = i * i * t * t * e, o = Math.exp(-r), s = jg(t * t, i);
+ return (-n(t) + Ng > 0 ? -1 : 1) * -a * o / s;
}) : (n = (t) => -.001 + Math.exp(-t * e) * (t * e + 1), r = (t) => Math.exp(-t * e) * (-t * (e * e)));
- let a = 5 / e, o = Og(n, r, a), s = o * Eg(i, o * e), c = s * s;
+ let a = 5 / e, o = Mg(n, r, a), s = o * Ag(i, o * e), c = s * s;
return {
stiffness: c,
damping: i * 2 * Math.sqrt(c),
- duration: /* @__PURE__ */ Am(e)
+ duration: /* @__PURE__ */ Fm(e)
};
}
-var Ag = (e, t) => (t ? e >= 0 : e > 0) && e < Infinity;
-function jg(e, t) {
- if (Ag(e, t)) return e;
+var Pg = (e, t) => (t ? e >= 0 : e > 0) && e < Infinity;
+function Fg(e, t) {
+ if (Pg(e, t)) return e;
}
-function xee(e) {
- let t = jg(e.stiffness), n = jg(e.damping, !0), r = jg(e.mass), i = {
+function See(e) {
+ let t = Fg(e.stiffness), n = Fg(e.damping, !0), r = Fg(e.mass), i = {
...e,
- stiffness: t ?? xg,
- damping: n ?? Sg,
- mass: r ?? uee,
+ stiffness: t ?? Tg,
+ damping: n ?? Eg,
+ mass: r ?? dee,
isResolvedFromDuration: !1,
isTimeDefined: (t ?? n ?? r) === void 0 && (e.duration !== void 0 || e.bounce !== void 0)
};
if (i.isTimeDefined) {
if (e.visualDuration) {
- let t = Tg(e.bounce || 0), n = 2 * Math.PI / (e.visualDuration * 1.2) * Eg(t, 2 * Math.PI / 1.2);
+ let t = kg(e.bounce || 0), n = 2 * Math.PI / (e.visualDuration * 1.2) * Ag(t, 2 * Math.PI / 1.2);
i.stiffness = n * n, i.damping = 2 * t * Math.sqrt(i.stiffness);
- } else Object.assign(i, bee(i)), i.isResolvedFromDuration = !0;
- Ag(i.stiffness) && Ag(i.damping, !0) || (i.stiffness = xg, i.damping = Sg);
+ } else Object.assign(i, xee(i)), i.isResolvedFromDuration = !0;
+ Pg(i.stiffness) && Pg(i.damping, !0) || (i.stiffness = Tg, i.damping = Eg);
}
return i;
}
-function Mg(e = fee, t = Cg) {
+function Ig(e = pee, t = Dg) {
let n = typeof e == "object" ? e : {
visualDuration: e,
keyframes: [0, 1],
@@ -16374,7 +16387,7 @@ function Mg(e = fee, t = Cg) {
}, r = n.keyframes[0], i = n.keyframes[n.keyframes.length - 1], a = {
done: !1,
value: r
- }, { stiffness: o, damping: s, mass: c, duration: l, isResolvedFromDuration: u, isTimeDefined: d } = xee({ ...n }), f = (e) => d ? 0 : -/* @__PURE__ */ jm(e), p = s / (2 * Math.sqrt(o * c)), m = /* @__PURE__ */ jm(Math.sqrt(o / c)), h = p * m, g = {
+ }, { stiffness: o, damping: s, mass: c, duration: l, isResolvedFromDuration: u, isTimeDefined: d } = See({ ...n }), f = (e) => d ? 0 : -/* @__PURE__ */ Im(e), p = s / (2 * Math.sqrt(o * c)), m = /* @__PURE__ */ Im(Math.sqrt(o / c)), h = p * m, g = {
target: i,
delta: i - r,
velocity: f(n.velocity || 0) || 0,
@@ -16382,12 +16395,12 @@ function Mg(e = fee, t = Cg) {
restDelta: 0
}, _ = () => {
let e = Math.abs(g.delta) < 5;
- g.restSpeed = n.restSpeed || (e ? pee : mee), g.restDelta = n.restDelta || (e ? hee : gee);
+ g.restSpeed = n.restSpeed || (e ? mee : hee), g.restDelta = n.restDelta || (e ? gee : _ee);
};
_();
let v, y, b;
if (p < 1) {
- let e = Dg(m, p), t = {
+ let e = jg(m, p), t = {
A: 0,
sinC: 0,
cosC: 0,
@@ -16425,30 +16438,30 @@ function Mg(e = fee, t = Cg) {
retarget: (e, t) => {
g.target = e[e.length - 1], g.delta = g.target - e[0], g.velocity = f(t), n.restSpeed && n.restDelta || _(), S.calculatedDuration = x, a.done = !1, b();
},
- velocity: (e) => /* @__PURE__ */ Am(y(e)),
+ velocity: (e) => /* @__PURE__ */ Fm(y(e)),
next: (e) => {
let t = v(e);
if (u) a.done = e >= l;
else {
- let n = /* @__PURE__ */ Am(y(e));
+ let n = /* @__PURE__ */ Fm(y(e));
a.done = Math.abs(n) <= g.restSpeed && Math.abs(g.target - t) <= g.restDelta;
}
return a.value = a.done ? g.target : t, a;
},
toString: () => {
- let e = Math.min(yg(S), vg), t = _g((t) => S.next(e * t).value, e, 30);
+ let e = Math.min(Cg(S), Sg), t = xg((t) => S.next(e * t).value, e, 30);
return e + "ms " + t;
},
toTransition: () => {}
};
return S;
}
-var Ng = /* @__PURE__ */ Object.assign(Mg, { applyToOptions: (e) => {
- let t = bg(e, 100, Mg);
- return e.ease = t.ease, e.duration = /* @__PURE__ */ Am(t.duration), e.type = "keyframes", e;
+var Lg = /* @__PURE__ */ Object.assign(Ig, { applyToOptions: (e) => {
+ let t = wg(e, 100, Ig);
+ return e.ease = t.ease, e.duration = /* @__PURE__ */ Fm(t.duration), e.type = "keyframes", e;
} });
// node_modules/motion-dom/dist/es/animation/generators/inertia.mjs
-function Pg({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
+function Rg({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
let d = e[0], f = {
done: !1,
value: d
@@ -16458,7 +16471,7 @@ function Pg({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
let t = v(e);
f.done = Math.abs(t) <= l, f.value = f.done ? _ : e ? _ + t : d;
}, b, x, S = (e) => {
- p(f.value) && (b = e, x = Ng({
+ p(f.value) && (b = e, x = Lg({
keyframes: [f.value, m(f.value)],
velocity: -v(e) / r * 1e3,
damping: i,
@@ -16476,64 +16489,64 @@ function Pg({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
};
}
// node_modules/motion-dom/dist/es/utils/interpolate.mjs
-function See(e, t, n) {
- let r = [], i = xm.mix || ug, a = e.length - 1;
+function Cee(e, t, n) {
+ let r = [], i = Em.mix || mg, a = e.length - 1;
for (let o = 0; o < a; o++) {
let a = n?.(e[o], e[o + 1]) || i(e[o], e[o + 1]);
- t && (a = Dm(Array.isArray(t) ? t[o] || Em : t, a)), r.push(a);
+ t && (a = Mm(Array.isArray(t) ? t[o] || jm : t, a)), r.push(a);
}
return r;
}
-function Fg(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
+function zg(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
let a = e.length;
if (a === 1) return () => t[0];
if (a === 2 && t[0] === t[1]) return () => t[1];
let o = e[0] === e[1];
e[0] > e[a - 1] && (e = [...e].reverse(), t = [...t].reverse());
- let s = See(t, r, i), c = s.length, l = (n) => {
+ let s = Cee(t, r, i), c = s.length, l = (n) => {
if (o && n < e[0]) return t[0];
let r = 0;
if (c > 1) for (; r < e.length - 2 && !(n < e[r + 1]); r++);
- let i = /* @__PURE__ */ Om(e[r], e[r + 1], n);
+ let i = /* @__PURE__ */ Nm(e[r], e[r + 1], n);
return s[r](i);
};
- return n ? (t) => l(bm(e[0], e[a - 1], t)) : l;
+ return n ? (t) => l(Tm(e[0], e[a - 1], t)) : l;
}
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs
-function Ig(e, t) {
+function Bg(e, t) {
let n = e[e.length - 1];
for (let r = 1; r <= t; r++) {
- let i = /* @__PURE__ */ Om(0, t, r);
- e.push(ng(n, 1, i));
+ let i = /* @__PURE__ */ Nm(0, t, r);
+ e.push(og(n, 1, i));
}
}
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs
-function Lg(e) {
+function Vg(e) {
let t = [0];
- return Ig(t, e.length - 1), t;
+ return Bg(t, e.length - 1), t;
}
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs
-function Cee(e, t) {
+function wee(e, t) {
return e.map((e) => e * t);
}
// node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs
-function wee(e, t) {
- return e.map(() => t || qm).splice(0, e.length - 1);
+function Tee(e, t) {
+ return e.map(() => t || Qm).splice(0, e.length - 1);
}
-function Rg({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut", mixer: i }) {
- let a = typeof t[0] == "number" ? void 0 : i, o = /* @__PURE__ */ Jm(r) ? r.map($m) : $m(r) || qm, s = {
+function Hg({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut", mixer: i }) {
+ let a = typeof t[0] == "number" ? void 0 : i, o = /* @__PURE__ */ $m(r) ? r.map(ih) : ih(r) || Qm, s = {
done: !1,
value: t[0]
};
if (!a && t.length === 2 && !Array.isArray(o) && (!n || n.length !== 2 || n[0] === 0 && n[1] === 1)) {
- let [n, r] = t, i = n === r ? void 0 : (xm.mix || ug)(n, r);
+ let [n, r] = t, i = n === r ? void 0 : (Em.mix || mg)(n, r);
return {
calculatedDuration: e,
- next: (t) => (s.value = i ? i(o(e > 0 ? bm(0, 1, t / e) : 1)) : r, s.done = t >= e, s)
+ next: (t) => (s.value = i ? i(o(e > 0 ? Tm(0, 1, t / e) : 1)) : r, s.done = t >= e, s)
};
}
- let c = Fg(Cee(n && n.length === t.length ? n : Lg(t), e), t, {
- ease: Array.isArray(o) ? o : wee(t, o),
+ let c = zg(wee(n && n.length === t.length ? n : Vg(t), e), t, {
+ ease: Array.isArray(o) ? o : Tee(t, o),
mixer: a
});
return {
@@ -16542,48 +16555,48 @@ function Rg({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut",
};
}
// node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs
-var Tee = 5;
-function Eee(e, t, n) {
- let r = Math.max(t - Tee, 0);
- return /* @__PURE__ */ Mm(n - e(r), t - r);
+var Eee = 5;
+function Dee(e, t, n) {
+ let r = Math.max(t - Eee, 0);
+ return /* @__PURE__ */ Lm(n - e(r), t - r);
}
-function zg(e, t, n = 0) {
- return t <= 0 ? n : e.velocity ? e.velocity(t) : Eee((t) => e.next(t).value, t, e.next(t).value);
+function Ug(e, t, n = 0) {
+ return t <= 0 ? n : e.velocity ? e.velocity(t) : Dee((t) => e.next(t).value, t, e.next(t).value);
}
// node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs
-var Dee = (e) => e !== null;
-function Bg(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
- let a = e.filter(Dee), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
+var Oee = (e) => e !== null;
+function Wg(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
+ let a = e.filter(Oee), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
return !o || r === void 0 ? a[o] : r;
}
// node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs
-var Oee = {
- decay: Pg,
- inertia: Pg,
- tween: Rg,
- keyframes: Rg,
- spring: Ng
+var kee = {
+ decay: Rg,
+ inertia: Rg,
+ tween: Hg,
+ keyframes: Hg,
+ spring: Lg
};
-function Vg(e) {
- typeof e.type == "string" && (e.type = Oee[e.type]);
+function Gg(e) {
+ typeof e.type == "string" && (e.type = kee[e.type]);
}
// node_modules/motion-dom/dist/es/animation/utils/resolve-start-time.mjs
-var kee = 40, Hg = (e, t) => t - e > kee && !xm.useManualTiming ? t : e;
+var Aee = 40, Kg = (e, t) => t - e > Aee && !Em.useManualTiming ? t : e;
// node_modules/motion-dom/dist/es/animation/utils/notify-inspector.mjs
-function Ug(e, t) {
+function qg(e, t) {
return {
kind: e,
animation: t,
- timestamp: rh.now(),
- frameTimestamp: eh.timestamp,
- frameIsProcessing: eh.isProcessing
+ timestamp: ch.now(),
+ frameTimestamp: ah.timestamp,
+ frameIsProcessing: ah.isProcessing
};
}
-function Wg(e, t, n) {
+function Jg(e, t, n) {
let r = globalThis.__MOTION_INSPECT__;
if (r) try {
r({
- ...Ug("animation-start", e),
+ ...qg("animation-start", e),
options: n ? {
...t,
...n
@@ -16591,17 +16604,17 @@ function Wg(e, t, n) {
});
} catch {}
}
-function Aee(e, t) {
+function jee(e, t) {
let n = globalThis.__MOTION_INSPECT__;
if (n) try {
n({
- ...Ug("layout-animation-start", e),
+ ...qg("layout-animation-start", e),
node: t
});
} catch {}
}
// node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs
-var Gg = class {
+var Yg = class {
constructor() {
this.isResolved = !1;
}
@@ -16619,21 +16632,21 @@ var Gg = class {
then(e, t) {
return this.finished.then(e, t);
}
-}, jee = (e) => e / 100, Kg = (e) => Math.round(e * 1e4) / 1e4, qg = class extends Gg {
+}, Mee = (e) => e / 100, Xg = (e) => Math.round(e * 1e4) / 1e4, Zg = class extends Yg {
constructor(e) {
super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.delayState = {
done: !1,
value: void 0
}, this.stop = () => {
let { motionValue: e } = this.options;
- e && e.updatedAt !== rh.now() && this.tick(rh.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
- }, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause(), Wg(this, this.options);
+ e && e.updatedAt !== ch.now() && this.tick(ch.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
+ }, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause(), Jg(this, this.options);
}
initAnimation() {
let { options: e } = this;
- Vg(e);
- let { type: t = Rg, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || Rg;
- this.mixKeyframes = void 0, s !== Rg && typeof o[0] != "number" && (this.mixKeyframes = Dm(jee, e.mixer?.(o[0], o[1]) || ug(o[0], o[1])), o = [0, 100]);
+ Gg(e);
+ let { type: t = Hg, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || Hg;
+ this.mixKeyframes = void 0, s !== Hg && typeof o[0] != "number" && (this.mixKeyframes = Mm(Mee, e.mixer?.(o[0], o[1]) || mg(o[0], o[1])), o = [0, 100]);
let c = s(o === e.keyframes ? e : {
...e,
keyframes: o
@@ -16642,7 +16655,7 @@ var Gg = class {
...e,
keyframes: [...o].reverse(),
velocity: -a
- })), c.calculatedDuration === null && (c.calculatedDuration = yg(c));
+ })), c.calculatedDuration === null && (c.calculatedDuration = Cg(c));
let { calculatedDuration: l } = c;
this.calculatedDuration = l, this.resolvedDuration = l + r, this.totalDuration = this.resolvedDuration * (n + 1) - r, this.generator = c;
}
@@ -16653,61 +16666,61 @@ var Gg = class {
let { generator: n, totalDuration: r, calculatedDuration: i } = this;
if (this.startTime === null) return n.next(0);
let { delay: a = 0, keyframes: o, type: s, onUpdate: c, finalKeyframe: l } = this.options;
- this.startTime === this.pendingStartTime && (this.startTime = Hg(this.startTime, e)), this.pendingStartTime = void 0, this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - r / this.speed, this.startTime)), t ? this.currentTime = e : this.updateTime(e);
+ this.startTime === this.pendingStartTime && (this.startTime = Kg(this.startTime, e)), this.pendingStartTime = void 0, this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - r / this.speed, this.startTime)), t ? this.currentTime = e : this.updateTime(e);
let u = this.currentTime - a * (this.playbackSpeed >= 0 ? 1 : -1), d = this.playbackSpeed >= 0 ? u < 0 : u > r;
this.currentTime = Math.max(u, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = r);
let f = this.generate(this.currentTime, d), { done: p } = f;
d || (p = this.playbackSpeed >= 0 ? i < Infinity ? this.currentTime >= r : p : this.currentTime <= 0);
let m = this.holdTime === null && (this.state === "finished" || this.state === "running" && p);
- return m && s !== Pg && (f.value = Bg(o, this.options, l, this.speed)), c && c(f.value), m && this.finish(), f;
+ return m && s !== Rg && (f.value = Wg(o, this.options, l, this.speed)), c && c(f.value), m && this.finish(), f;
}
at(e) {
- return this.holdTime ?? Kg((e - this.startTime) * this.playbackSpeed);
+ return this.holdTime ?? Xg((e - this.startTime) * this.playbackSpeed);
}
sampleAt(e, t) {
let { options: n, totalDuration: r } = this, i = this.at(e) - (n.delay || 0);
- return i >= r && n.type !== Pg ? Bg(n.keyframes, n, t ? void 0 : n.finalKeyframe) : this.generate(Math.max(i, 0), i < 0).value;
+ return i >= r && n.type !== Rg ? Wg(n.keyframes, n, t ? void 0 : n.finalKeyframe) : this.generate(Math.max(i, 0), i < 0).value;
}
generate(e, t) {
let { generator: n, totalDuration: r, mixKeyframes: i, mirroredGenerator: a, resolvedDuration: o } = this, { keyframes: s, repeat: c, repeatType: l, repeatDelay: u } = this.options, d = e, f = n;
if (c) {
let t = Math.min(e, r) / o, n = Math.floor(t), i = t % 1;
- !i && t >= 1 && (i = 1), i === 1 && n--, n = Math.min(n, c + 1), n % 2 && (l === "reverse" ? (i = 1 - i, u && (i -= u / o)) : l === "mirror" && (f = a)), d = bm(0, 1, i) * o;
+ !i && t >= 1 && (i = 1), i === 1 && n--, n = Math.min(n, c + 1), n % 2 && (l === "reverse" ? (i = 1 - i, u && (i -= u / o)) : l === "mirror" && (f = a)), d = Tm(0, 1, i) * o;
}
let p;
return t ? (this.delayState.value = s[0], p = this.delayState) : p = f.next(d), i && !t && (p.value = i(p.value)), p;
}
get duration() {
- return /* @__PURE__ */ jm(this.calculatedDuration);
+ return /* @__PURE__ */ Im(this.calculatedDuration);
}
get iterationDuration() {
- return this.duration + /* @__PURE__ */ jm(this.options.delay ?? 0);
+ return this.duration + /* @__PURE__ */ Im(this.options.delay ?? 0);
}
get time() {
- return /* @__PURE__ */ jm(this.currentTime);
+ return /* @__PURE__ */ Im(this.currentTime);
}
set time(e) {
- e = /* @__PURE__ */ Am(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
+ e = /* @__PURE__ */ Fm(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
}
getGeneratorVelocity() {
- return zg(this.generator, this.currentTime, this.options.velocity);
+ return Ug(this.generator, this.currentTime, this.options.velocity);
}
get speed() {
return this.playbackSpeed;
}
set speed(e) {
let t = this.playbackSpeed !== e;
- t && this.driver && this.updateTime(rh.now()), this.playbackSpeed = e, t && this.driver && (this.time = /* @__PURE__ */ jm(this.currentTime));
+ t && this.driver && this.updateTime(ch.now()), this.playbackSpeed = e, t && this.driver && (this.time = /* @__PURE__ */ Im(this.currentTime));
}
play() {
if (this.isStopped) return;
- let { driver: e = gg, startTime: t } = this.options;
+ let { driver: e = bg, startTime: t } = this.options;
this.driver ||= e((e) => this.tick(e)), this.options.onPlay?.();
let n = this.driver.now();
this.state === "finished" ? (this.updateFinished(), this.startTime = n) : this.holdTime === null ? this.startTime ||= t ?? (this.pendingStartTime = n) : this.startTime = n - this.holdTime / (this.playbackSpeed || 1), this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
}
pause() {
- this.state = "paused", this.updateTime(rh.now()), this.holdTime = this.currentTime;
+ this.state = "paused", this.updateTime(ch.now()), this.holdTime = this.currentTime;
}
complete() {
this.state !== "running" && this.play(), this.state = "finished", this.holdTime = null;
@@ -16727,147 +16740,147 @@ var Gg = class {
attachTimeline(e) {
return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), this.driver?.stop(), e.observe(this);
}
-}, Mee = /* @__PURE__ */ new Set([
+}, Nee = /* @__PURE__ */ new Set([
"brightness",
"contrast",
"saturate",
"opacity"
]);
-function Nee(e) {
+function Pee(e) {
let [t, n] = e.slice(0, -1).split("(");
if (t === "drop-shadow") return e;
- let [r] = n.match(mh) || [];
+ let [r] = n.match(yh) || [];
if (!r) return e;
- let i = n.replace(r, ""), a = +!!Mee.has(t);
+ let i = n.replace(r, ""), a = +!!Nee.has(t);
return r !== n && (a *= 100), t + "(" + a + i + ")";
}
-var Pee = /\b([a-z-]*)\(.*?\)/gu, Jg = {
- ...Qh,
+var Fee = /\b([a-z-]*)\(.*?\)/gu, Qg = {
+ ...rg,
getAnimatableNone: (e) => {
- let t = e.match(Pee);
- return t ? t.map(Nee).join(" ") : e;
+ let t = e.match(Fee);
+ return t ? t.map(Pee).join(" ") : e;
}
-}, Yg = {
- ...Qh,
+}, $g = {
+ ...rg,
getAnimatableNone: (e) => {
- let t = Qh.parse(e);
- return Qh.createTransformer(e)(t.map((e) => typeof e == "number" ? 0 : typeof e == "object" ? {
+ let t = rg.parse(e);
+ return rg.createTransformer(e)(t.map((e) => typeof e == "number" ? 0 : typeof e == "object" ? {
...e,
alpha: 1
} : e));
}
-}, Xg = {
- ...dh,
+}, e_ = {
+ ...gh,
transform: Math.round
-}, Zg = {
- rotate: Eh,
- pathRotation: Eh,
- rotateX: Eh,
- rotateY: Eh,
- rotateZ: Eh,
- scale: ph,
- scaleX: ph,
- scaleY: ph,
- scaleZ: ph,
- skew: Eh,
- skewX: Eh,
- skewY: Eh,
- distance: Oh,
- translateX: Oh,
- translateY: Oh,
- translateZ: Oh,
- x: Oh,
- y: Oh,
- z: Oh,
- perspective: Oh,
- transformPerspective: Oh,
- opacity: fh,
- originX: jh,
- originY: jh,
- originZ: Oh
-}, Qg = {
- borderWidth: Oh,
- borderTopWidth: Oh,
- borderRightWidth: Oh,
- borderBottomWidth: Oh,
- borderLeftWidth: Oh,
- borderRadius: Oh,
- borderTopLeftRadius: Oh,
- borderTopRightRadius: Oh,
- borderBottomRightRadius: Oh,
- borderBottomLeftRadius: Oh,
- width: Oh,
- maxWidth: Oh,
- height: Oh,
- maxHeight: Oh,
- top: Oh,
- right: Oh,
- bottom: Oh,
- left: Oh,
- inset: Oh,
- insetBlock: Oh,
- insetBlockStart: Oh,
- insetBlockEnd: Oh,
- insetInline: Oh,
- insetInlineStart: Oh,
- insetInlineEnd: Oh,
- padding: Oh,
- paddingTop: Oh,
- paddingRight: Oh,
- paddingBottom: Oh,
- paddingLeft: Oh,
- paddingBlock: Oh,
- paddingBlockStart: Oh,
- paddingBlockEnd: Oh,
- paddingInline: Oh,
- paddingInlineStart: Oh,
- paddingInlineEnd: Oh,
- margin: Oh,
- marginTop: Oh,
- marginRight: Oh,
- marginBottom: Oh,
- marginLeft: Oh,
- marginBlock: Oh,
- marginBlockStart: Oh,
- marginBlockEnd: Oh,
- marginInline: Oh,
- marginInlineStart: Oh,
- marginInlineEnd: Oh,
- fontSize: Oh,
- backgroundPositionX: Oh,
- backgroundPositionY: Oh,
- ...Zg,
- zIndex: Xg,
- fillOpacity: fh,
- strokeOpacity: fh,
- numOctaves: Xg
-}, Fee = {
- ...Qg,
- color: Nh,
- backgroundColor: Nh,
- outlineColor: Nh,
- fill: Nh,
- stroke: Nh,
- borderColor: Nh,
- borderTopColor: Nh,
- borderRightColor: Nh,
- borderBottomColor: Nh,
- borderLeftColor: Nh,
- filter: Jg,
- WebkitFilter: Jg,
- mask: Yg,
- WebkitMask: Yg
-}, $g = (e) => Fee[e], Iee = /*@__PURE__*/ new Set([Jg, Yg]);
-function e_(e, t) {
- let n = $g(e);
- return Iee.has(n) || (n = Qh), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
+}, t_ = {
+ rotate: jh,
+ pathRotation: jh,
+ rotateX: jh,
+ rotateY: jh,
+ rotateZ: jh,
+ scale: vh,
+ scaleX: vh,
+ scaleY: vh,
+ scaleZ: vh,
+ skew: jh,
+ skewX: jh,
+ skewY: jh,
+ distance: Nh,
+ translateX: Nh,
+ translateY: Nh,
+ translateZ: Nh,
+ x: Nh,
+ y: Nh,
+ z: Nh,
+ perspective: Nh,
+ transformPerspective: Nh,
+ opacity: _h,
+ originX: Ih,
+ originY: Ih,
+ originZ: Nh
+}, n_ = {
+ borderWidth: Nh,
+ borderTopWidth: Nh,
+ borderRightWidth: Nh,
+ borderBottomWidth: Nh,
+ borderLeftWidth: Nh,
+ borderRadius: Nh,
+ borderTopLeftRadius: Nh,
+ borderTopRightRadius: Nh,
+ borderBottomRightRadius: Nh,
+ borderBottomLeftRadius: Nh,
+ width: Nh,
+ maxWidth: Nh,
+ height: Nh,
+ maxHeight: Nh,
+ top: Nh,
+ right: Nh,
+ bottom: Nh,
+ left: Nh,
+ inset: Nh,
+ insetBlock: Nh,
+ insetBlockStart: Nh,
+ insetBlockEnd: Nh,
+ insetInline: Nh,
+ insetInlineStart: Nh,
+ insetInlineEnd: Nh,
+ padding: Nh,
+ paddingTop: Nh,
+ paddingRight: Nh,
+ paddingBottom: Nh,
+ paddingLeft: Nh,
+ paddingBlock: Nh,
+ paddingBlockStart: Nh,
+ paddingBlockEnd: Nh,
+ paddingInline: Nh,
+ paddingInlineStart: Nh,
+ paddingInlineEnd: Nh,
+ margin: Nh,
+ marginTop: Nh,
+ marginRight: Nh,
+ marginBottom: Nh,
+ marginLeft: Nh,
+ marginBlock: Nh,
+ marginBlockStart: Nh,
+ marginBlockEnd: Nh,
+ marginInline: Nh,
+ marginInlineStart: Nh,
+ marginInlineEnd: Nh,
+ fontSize: Nh,
+ backgroundPositionX: Nh,
+ backgroundPositionY: Nh,
+ ...t_,
+ zIndex: e_,
+ fillOpacity: _h,
+ strokeOpacity: _h,
+ numOctaves: e_
+}, Iee = {
+ ...n_,
+ color: Rh,
+ backgroundColor: Rh,
+ outlineColor: Rh,
+ fill: Rh,
+ stroke: Rh,
+ borderColor: Rh,
+ borderTopColor: Rh,
+ borderRightColor: Rh,
+ borderBottomColor: Rh,
+ borderLeftColor: Rh,
+ filter: Qg,
+ WebkitFilter: Qg,
+ mask: $g,
+ WebkitMask: $g
+}, r_ = (e) => Iee[e], Lee = /*@__PURE__*/ new Set([Qg, $g]);
+function i_(e, t) {
+ let n = r_(e);
+ return Lee.has(n) || (n = rg), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
}
// node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs
-function t_(e) {
+function a_(e) {
for (let t = 1; t < e.length; t++) e[t] ?? (e[t] = e[t - 1]);
}
// node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs
-var n_ = (e) => e * 180 / Math.PI, r_ = (e) => i_(n_(Math.atan2(e[1], e[0]))), Lee = {
+var o_ = (e) => e * 180 / Math.PI, s_ = (e) => c_(o_(Math.atan2(e[1], e[0]))), Ree = {
x: 4,
y: 5,
translateX: 4,
@@ -16876,44 +16889,44 @@ var n_ = (e) => e * 180 / Math.PI, r_ = (e) => i_(n_(Math.atan2(e[1], e[0]))), L
scaleY: 3,
scaleZ: () => 1,
scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
- rotate: r_,
- rotateZ: r_,
- skewX: (e) => n_(Math.atan(e[1])),
- skewY: (e) => n_(Math.atan(e[2])),
+ rotate: s_,
+ rotateZ: s_,
+ skewX: (e) => o_(Math.atan(e[1])),
+ skewY: (e) => o_(Math.atan(e[2])),
skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
-}, i_ = (e) => (e %= 360, e < 0 && (e += 360), e), a_ = r_, o_ = (e) => Math.hypot(e[0], e[1]), s_ = (e) => Math.hypot(e[4], e[5]), Ree = {
+}, c_ = (e) => (e %= 360, e < 0 && (e += 360), e), l_ = s_, u_ = (e) => Math.hypot(e[0], e[1]), d_ = (e) => Math.hypot(e[4], e[5]), zee = {
x: 12,
y: 13,
z: 14,
translateX: 12,
translateY: 13,
translateZ: 14,
- scaleX: o_,
- scaleY: s_,
+ scaleX: u_,
+ scaleY: d_,
scaleZ: (e) => Math.hypot(e[8], e[9], e[10]),
- scale: (e) => (o_(e) + s_(e)) / 2,
- rotateX: (e) => i_(n_(Math.atan2(e[6], e[5]))),
- rotateY: (e) => i_(n_(Math.atan2(-e[2], e[0]))),
- rotateZ: a_,
- rotate: a_,
- skewX: (e) => n_(Math.atan(e[4])),
- skewY: (e) => n_(Math.atan(e[1])),
+ scale: (e) => (u_(e) + d_(e)) / 2,
+ rotateX: (e) => c_(o_(Math.atan2(e[6], e[5]))),
+ rotateY: (e) => c_(o_(Math.atan2(-e[2], e[0]))),
+ rotateZ: l_,
+ rotate: l_,
+ skewX: (e) => o_(Math.atan(e[4])),
+ skewY: (e) => o_(Math.atan(e[1])),
skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
};
-function c_(e) {
+function f_(e) {
return +!!e.includes("scale");
}
-function l_(e, t) {
- if (!e || e === "none") return c_(t);
+function p_(e, t) {
+ if (!e || e === "none") return f_(t);
let n = e.match(/^matrix(3d)?\(([-\d.e\s,]+)\)$/u);
- if (!n) return c_(t);
- let r = (n[1] ? Ree : Lee)[t], i = n[2].split(",").map((e) => parseFloat(e));
+ if (!n) return f_(t);
+ let r = (n[1] ? zee : Ree)[t], i = n[2].split(",").map((e) => parseFloat(e));
return typeof r == "function" ? r(i) : i[r];
}
-var u_ = (e, t) => {
+var m_ = (e, t) => {
let { transform: n = "none" } = getComputedStyle(e);
- return l_(n, t);
-}, d_ = [
+ return p_(n, t);
+}, h_ = [
"transformPerspective",
"x",
"y",
@@ -16932,14 +16945,14 @@ var u_ = (e, t) => {
"skew",
"skewX",
"skewY"
-], f_ = /* @__PURE__ */ new Set([...d_, "pathRotation"]), p_ = (e) => e === dh || e === Oh, zee = /* @__PURE__ */ new Set([
+], g_ = /* @__PURE__ */ new Set([...h_, "pathRotation"]), __ = (e) => e === gh || e === Nh, Bee = /* @__PURE__ */ new Set([
"x",
"y",
"z"
-]), Bee = /* @__PURE__ */ d_.filter((e) => !zee.has(e));
-function Vee(e) {
+]), Vee = /* @__PURE__ */ h_.filter((e) => !Bee.has(e));
+function Hee(e) {
let t = [];
- return Bee.forEach((n) => {
+ return Vee.forEach((n) => {
let r = e.getValue(n);
if (r !== void 0) {
let e = r.get(), i = +!!n.startsWith("scale");
@@ -16948,16 +16961,16 @@ function Vee(e) {
}
}), t;
}
-var Hee = /* @__PURE__ */ new Set(["bottom", "right"]);
-function m_(e, t, n, r, i, a) {
+var Uee = /* @__PURE__ */ new Set(["bottom", "right"]);
+function v_(e, t, n, r, i, a) {
let o = parseFloat(e);
if (!isNaN(o)) return o;
let { min: s, max: c } = t()[n], l = c - s;
return a === "border-box" ? l : l - parseFloat(r) - parseFloat(i);
}
-var h_ = ({ transform: e }) => l_(e, "x"), g_ = ({ transform: e }) => l_(e, "y"), __ = {
- width: ({ width: e, paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }, i) => m_(e, i, "x", t, n, r),
- height: ({ height: e, paddingTop: t = "0", paddingBottom: n = "0", boxSizing: r }, i) => m_(e, i, "y", t, n, r),
+var y_ = ({ transform: e }) => p_(e, "x"), b_ = ({ transform: e }) => p_(e, "y"), x_ = {
+ width: ({ width: e, paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }, i) => v_(e, i, "x", t, n, r),
+ height: ({ height: e, paddingTop: t = "0", paddingBottom: n = "0", boxSizing: r }, i) => v_(e, i, "y", t, n, r),
top: ({ top: e }) => parseFloat(e),
left: ({ left: e }) => parseFloat(e),
bottom: ({ top: e }, t) => {
@@ -16968,20 +16981,20 @@ var h_ = ({ transform: e }) => l_(e, "x"), g_ = ({ transform: e }) => l_(e, "y")
let { x: n } = t();
return parseFloat(e) + (n.max - n.min);
},
- x: h_,
- y: g_,
- translateX: h_,
- translateY: g_
-}, v_ = /* @__PURE__ */ new Set(), y_ = !1, b_ = !1, x_ = !1;
-function S_() {
- if (b_) {
+ x: y_,
+ y: b_,
+ translateX: y_,
+ translateY: b_
+}, S_ = /* @__PURE__ */ new Set(), C_ = !1, w_ = !1, T_ = !1;
+function E_() {
+ if (w_) {
let e = [], t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
- v_.forEach((r) => {
- r.needsMeasurement && (e.push(r), t.add(r.element), Hee.has(r.name) && n.add(r.element));
+ S_.forEach((r) => {
+ r.needsMeasurement && (e.push(r), t.add(r.element), Uee.has(r.name) && n.add(r.element));
});
let r = /* @__PURE__ */ new Map();
n.forEach((e) => {
- let t = Vee(e);
+ let t = Hee(e);
t.length && (r.set(e, t), e.render());
}), e.forEach((e) => e.measureInitialState()), t.forEach((e) => {
e.render();
@@ -16993,29 +17006,29 @@ function S_() {
e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
});
}
- b_ = !1, y_ = !1, v_.forEach((e) => e.complete(x_)), v_.clear();
+ w_ = !1, C_ = !1, S_.forEach((e) => e.complete(T_)), S_.clear();
}
-function C_() {
- v_.forEach((e) => {
- e.readKeyframes(), e.needsMeasurement && (b_ = !0);
+function D_() {
+ S_.forEach((e) => {
+ e.readKeyframes(), e.needsMeasurement && (w_ = !0);
});
}
-function Uee() {
- x_ = !0, C_(), S_(), x_ = !1;
+function Wee() {
+ T_ = !0, D_(), E_(), T_ = !1;
}
-function Wee(e, t, n) {
+function Gee(e, t, n) {
if (typeof e == "string") {
- if (Sm(e) || wm(e)) return parseFloat(e);
- if (!Qh.test(e) && Qh.test(n)) return e_(t, n);
+ if (Dm(e) || km(e)) return parseFloat(e);
+ if (!rg.test(e) && rg.test(n)) return i_(t, n);
}
return e ?? void 0;
}
-var w_ = class {
+var O_ = class {
constructor(e, t, n, r, i, a = !1) {
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = t, this.name = n, this.motionValue = r, this.element = i, this.isAsync = a;
}
scheduleResolve() {
- this.state = "scheduled", this.isAsync ? (v_.add(this), y_ || (y_ = !0, pg.read(C_), pg.resolveKeyframes(S_))) : (this.readKeyframes(), this.complete());
+ this.state = "scheduled", this.isAsync ? (S_.add(this), C_ || (C_ = !0, _g.read(D_), _g.resolveKeyframes(E_))) : (this.readKeyframes(), this.complete());
}
readKeyframes() {
let { unresolvedKeyframes: e, name: t, element: n, motionValue: r } = this;
@@ -17023,71 +17036,71 @@ var w_ = class {
let i = r?.get(), a = e[e.length - 1];
if (i !== void 0) e[0] = i;
else if (n && t) {
- let r = Wee(n.readValue(t, a), t, a);
+ let r = Gee(n.readValue(t, a), t, a);
r !== void 0 && (e[0] = r);
}
e[0] === void 0 && (e[0] = a), r && i === void 0 && r.set(e[0]);
}
- t_(e);
+ a_(e);
}
setFinalKeyframe() {}
measureInitialState() {}
renderEndStyles() {}
measureEndState() {}
complete(e = !1) {
- this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), v_.delete(this);
+ this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), S_.delete(this);
}
cancel() {
- this.state === "scheduled" && (v_.delete(this), this.state = "pending");
+ this.state === "scheduled" && (S_.delete(this), this.state = "pending");
}
resume() {
this.state === "pending" && this.scheduleResolve();
}
-}, T_ = (e) => e.startsWith("--");
+}, k_ = (e) => e.startsWith("--");
// node_modules/motion-dom/dist/es/render/dom/style-set.mjs
-function E_(e, t, n) {
- T_(t) ? e.style.setProperty(t, n) : e.style[t] = n;
+function A_(e, t, n) {
+ k_(t) ? e.style.setProperty(t, n) : e.style[t] = n;
}
// node_modules/motion-dom/dist/es/utils/supports/flags.mjs
-var Gee = {};
+var Kee = {};
// node_modules/motion-dom/dist/es/utils/supports/memo.mjs
-function D_(e, t) {
- let n = /* @__PURE__ */ Tm(e);
- return () => Gee[t] ?? n();
+function j_(e, t) {
+ let n = /* @__PURE__ */ Am(e);
+ return () => Kee[t] ?? n();
}
// node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs
-var Kee = /* @__PURE__ */ D_(() => window.ScrollTimeline !== void 0, "scrollTimeline"), O_ = /*@__PURE__*/ D_(() => {
+var qee = /* @__PURE__ */ j_(() => window.ScrollTimeline !== void 0, "scrollTimeline"), M_ = /*@__PURE__*/ j_(() => {
try {
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
} catch {
return !1;
}
return !0;
-}, "linearEasing"), k_ = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, A_ = {
+}, "linearEasing"), N_ = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, P_ = {
linear: "linear",
ease: "ease",
easeIn: "ease-in",
easeOut: "ease-out",
easeInOut: "ease-in-out",
- circIn: /*@__PURE__*/ k_([
+ circIn: /*@__PURE__*/ N_([
0,
.65,
.55,
1
]),
- circOut: /*@__PURE__*/ k_([
+ circOut: /*@__PURE__*/ N_([
.55,
0,
1,
.45
]),
- backIn: /*@__PURE__*/ k_([
+ backIn: /*@__PURE__*/ N_([
.31,
.01,
.66,
-.59
]),
- backOut: /*@__PURE__*/ k_([
+ backOut: /*@__PURE__*/ N_([
.33,
1.53,
.69,
@@ -17095,14 +17108,14 @@ var Kee = /* @__PURE__ */ D_(() => window.ScrollTimeline !== void 0, "scrollTime
])
};
// node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs
-function j_(e, t) {
- if (e) return typeof e == "function" ? O_() ? _g(e, t) : "ease-out" : /* @__PURE__ */ Xm(e) ? k_(e) : Array.isArray(e) ? e.map((e) => j_(e, t) || A_.easeOut) : A_[e];
+function F_(e, t) {
+ if (e) return typeof e == "function" ? M_() ? xg(e, t) : "ease-out" : /* @__PURE__ */ th(e) ? N_(e) : Array.isArray(e) ? e.map((e) => F_(e, t) || P_.easeOut) : P_[e];
}
// node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs
-function qee(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
+function Jee(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
let u = { [t]: n };
c && (u.offset = c);
- let d = j_(s, i);
+ let d = F_(s, i);
Array.isArray(d) && (u.easing = d);
let f = {
delay: r,
@@ -17115,27 +17128,27 @@ function qee(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatTy
return l && (f.pseudoElement = l), e.animate(u, f);
}
// node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs
-function M_(e) {
+function I_(e) {
return typeof e == "function" && "applyToOptions" in e;
}
// node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs
-function Jee({ type: e, ...t }) {
- return M_(e) && O_() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
+function Yee({ type: e, ...t }) {
+ return I_(e) && M_() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
}
// node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs
-var N_ = class extends Gg {
+var L_ = class extends Yg {
constructor(e) {
if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !e) return;
let { element: t, name: n, keyframes: r, pseudoElement: i, allowFlatten: a = !1, finalKeyframe: o, onComplete: s } = e;
this.isPseudoElement = !!i, this.allowFlatten = a, this.options = e;
- let c = Jee(e);
- this.animation = qee(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
+ let c = Yee(e);
+ this.animation = Jee(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
if (this.finishedTime = this.time, !i) {
- let e = Bg(r, this.options, o, this.speed);
- this.updateMotionValue?.(e), E_(t, n, e), this.animation.cancel();
+ let e = Wg(r, this.options, o, this.speed);
+ this.updateMotionValue?.(e), A_(t, n, e), this.animation.cancel();
}
s?.(), this.notifyFinished();
- }, Wg(this, e, c);
+ }, Jg(this, e, c);
}
play() {
this.isStopped || (this.manualStartTime = null, this.animation.play(), this.state === "finished" && this.updateFinished());
@@ -17160,18 +17173,18 @@ var N_ = class extends Gg {
}
get duration() {
let e = this.animation.effect?.getComputedTiming?.().duration || 0;
- return /* @__PURE__ */ jm(Number(e));
+ return /* @__PURE__ */ Im(Number(e));
}
get iterationDuration() {
let { delay: e = 0 } = this.options || {};
- return this.duration + /* @__PURE__ */ jm(e);
+ return this.duration + /* @__PURE__ */ Im(e);
}
get time() {
- return /* @__PURE__ */ jm(Number(this.animation.currentTime) || 0);
+ return /* @__PURE__ */ Im(Number(this.animation.currentTime) || 0);
}
set time(e) {
let t = this.finishedTime !== null;
- this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ Am(e), t && this.animation.pause();
+ this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ Fm(e), t && this.animation.pause();
}
get speed() {
return this.animation.playbackRate;
@@ -17189,30 +17202,30 @@ var N_ = class extends Gg {
this.manualStartTime = this.animation.startTime = e;
}
attachTimeline({ timeline: e, onAttach: t, observe: n }) {
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && Kee() ? (this.animation.timeline = e, t?.(this.animation), Em) : n(this);
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && qee() ? (this.animation.timeline = e, t?.(this.animation), jm) : n(this);
}
-}, P_ = {
- anticipate: Vm,
- backInOut: Bm,
- circInOut: Wm
+}, R_ = {
+ anticipate: Km,
+ backInOut: Gm,
+ circInOut: Ym
};
-function Yee(e) {
- return e in P_;
-}
function Xee(e) {
- typeof e.ease == "string" && Yee(e.ease) && (e.ease = P_[e.ease]);
+ return e in R_;
+}
+function Zee(e) {
+ typeof e.ease == "string" && Xee(e.ease) && (e.ease = R_[e.ease]);
}
-var Zee = class extends N_ {
+var Qee = class extends L_ {
constructor(e) {
- Xee(e), Vg(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
+ Zee(e), Gg(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
}
elapsed() {
- return this.state === "running" ? (rh.now() - this.startTime) * this.speed : this.time * 1e3;
+ return this.state === "running" ? (ch.now() - this.startTime) * this.speed : this.time * 1e3;
}
sample(e) {
if (!this.sampler) {
let { motionValue: e, onUpdate: t, onComplete: n, onPlay: r, onStop: i, element: a, ...o } = this.options;
- this.sampler = new qg({
+ this.sampler = new Zg({
...o,
autoplay: !1
}), this.sampler.stop();
@@ -17230,40 +17243,40 @@ var Zee = class extends N_ {
t.set(e);
return;
}
- let { speed: i } = this, a = this.elapsed(), o = this.state === "running" && i ? bm(0, 10, a) : 0, s = this.sample(a);
- n && r && E_(n, r, s), t.setWithVelocity(this.sample(a - o * Math.sign(i)), s, o / Math.abs(i || 1));
+ let { speed: i } = this, a = this.elapsed(), o = this.state === "running" && i ? Tm(0, 10, a) : 0, s = this.sample(a);
+ n && r && A_(n, r, s), t.setWithVelocity(this.sample(a - o * Math.sign(i)), s, o / Math.abs(i || 1));
}
-}, F_ = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (Qh.test(e) || e === "0") && !e.startsWith("url("));
+}, z_ = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (rg.test(e) || e === "0") && !e.startsWith("url("));
// node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs
-function Qee(e) {
+function $ee(e) {
let t = e[0];
if (e.length === 1) return !0;
for (let n = 0; n < e.length; n++) if (e[n] !== t) return !0;
}
-function $ee(e, t, n, r) {
+function ete(e, t, n, r) {
let i = e[0];
if (i === null) return !1;
if (t === "display" || t === "visibility") return !0;
- let a = e[e.length - 1], o = F_(i, t), s = F_(a, t);
- return !o || !s ? !1 : Qee(e) || (n === "spring" || M_(n)) && r;
+ let a = e[e.length - 1], o = z_(i, t), s = z_(a, t);
+ return !o || !s ? !1 : $ee(e) || (n === "spring" || I_(n)) && r;
}
// node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs
-function I_(e) {
+function B_(e) {
e.duration = 0, e.type = "keyframes";
}
// node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs
-var L_ = /* @__PURE__ */ new Set([
+var V_ = /* @__PURE__ */ new Set([
"opacity",
"clipPath",
"filter",
"transform"
-]), ete = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
-function tte(e) {
- for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && ete.test(e[t])) return !0;
+]), tte = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
+function nte(e) {
+ for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && tte.test(e[t])) return !0;
return !1;
}
// node_modules/motion-dom/dist/es/animation/waapi/utils/needs-mixer.mjs
-var R_ = ({ mixer: e, keyframes: t }) => e && typeof t[0] != "number" && t.some((n, r) => r && e(t[r - 1], n)), z_ = /* @__PURE__ */ new Set([
+var H_ = ({ mixer: e, keyframes: t }) => e && typeof t[0] != "number" && t.some((n, r) => r && e(t[r - 1], n)), U_ = /* @__PURE__ */ new Set([
"color",
"backgroundColor",
"outlineColor",
@@ -17274,54 +17287,54 @@ var R_ = ({ mixer: e, keyframes: t }) => e && typeof t[0] != "number" && t.some(
"borderRightColor",
"borderBottomColor",
"borderLeftColor"
-]), B_ = () => !xm.useManualTiming && Object.hasOwnProperty.call(Element.prototype, "animate");
-function nte(e) {
+]), W_ = () => !Em.useManualTiming && Object.hasOwnProperty.call(Element.prototype, "animate");
+function rte(e) {
let { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: a, type: o, keyframes: s } = e;
- if (!n || !(L_.has(n) || z_.has(n))) return !1;
+ if (!n || !(V_.has(n) || U_.has(n))) return !1;
let c = t?.owner?.current;
if (!(c instanceof HTMLElement) && !(c instanceof SVGElement)) return !1;
let { onUpdate: l, transformTemplate: u } = t.owner.getProps();
- return B_() && (L_.has(n) || z_.has(n) && tte(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia" && !R_(e);
+ return W_() && (V_.has(n) || U_.has(n) && nte(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia" && !H_(e);
}
// node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs
-var V_ = (e, t) => t && typeof e == "number" ? t.transform(e) : e, rte = {
+var G_ = (e, t) => t && typeof e == "number" ? t.transform(e) : e, ite = {
x: "translateX",
y: "translateY",
z: "translateZ",
transformPerspective: "perspective"
-}, ite = d_.length, H_ = {}, U_ = (e, t, n = V_(t, Zg[e])) => (H_[e] || (H_[e] = (rte[e] || e) + "(")) + n + ")", W_ = (e, t) => (typeof t == "number" ? t : parseFloat(t)) === +!!e.startsWith("scale");
-function ate(e, t, n) {
+}, ate = h_.length, K_ = {}, q_ = (e, t, n = G_(t, t_[e])) => (K_[e] || (K_[e] = (ite[e] || e) + "(")) + n + ")", J_ = (e, t) => (typeof t == "number" ? t : parseFloat(t)) === +!!e.startsWith("scale");
+function ote(e, t, n) {
let r = "";
- for (let i = 0; i < ite; i++) {
- let a = d_[i], o = e[a];
+ for (let i = 0; i < ate; i++) {
+ let a = h_[i], o = e[a];
if (o === void 0) continue;
- let s = n && (t[a] = V_(o, Qg[a]));
- W_(a, o) || (r += U_(a, o, s || void 0) + " ");
+ let s = n && (t[a] = G_(o, n_[a]));
+ J_(a, o) || (r += q_(a, o, s || void 0) + " ");
}
let i = e.pathRotation;
- return i && (r += U_("rotate", i)), r = r.trim(), n ? n(t, r) : r || "none";
+ return i && (r += q_("rotate", i)), r = r.trim(), n ? n(t, r) : r || "none";
}
// node_modules/motion-dom/dist/es/animation/waapi/transforms/groups.mjs
-var G_ = /* @__PURE__ */ new WeakMap(), ote = 200, K_ = .001, ste = .1, cte = .001, lte = 100, ute = (e) => /^(linear|ease(In|Out|InOut))$/.test(e), q_ = (e, t) => Math.abs(e - t) <= K_, J_ = (e, t) => e - t, Y_ = (e, t, n) => Lg(Array(n + 1)).map((n) => ng(e, t, n)), X_ = (e) => e.motionValue.owner, Z_ = (e) => G_.get(e), Q_ = ({ state: e }) => e === "idle" || e === "finished", $_ = (e, t) => e.latestValues ? e.latestValues[t] : e.getValue(t)?.get(), dte = ({ name: e, motionValue: t }) => e && d_.includes(e) && t?.owner?.current instanceof HTMLElement && B_() && O_();
-function fte(e) {
- let t = X_(e), { onUpdate: n, transformTemplate: r } = t.getProps();
- return !e.isHandoff && !n && !e.hasOnUpdate && !r && e.type !== "inertia" && ($_(t, "transform") || "none") === "none" && !$_(t, "pathRotation") && !t.projection?.isProjecting() && !R_(e);
+var Y_ = /* @__PURE__ */ new WeakMap(), ste = 200, X_ = .001, cte = .1, lte = .001, ute = 100, dte = (e) => /^(linear|ease(In|Out|InOut))$/.test(e), Z_ = (e, t) => Math.abs(e - t) <= X_, Q_ = (e, t) => e - t, $_ = (e, t, n) => Vg(Array(n + 1)).map((n) => og(e, t, n)), ev = (e) => e.motionValue.owner, tv = (e) => Y_.get(e), nv = ({ state: e }) => e === "idle" || e === "finished", rv = (e, t) => e.latestValues ? e.latestValues[t] : e.getValue(t)?.get(), fte = ({ name: e, motionValue: t }) => e && h_.includes(e) && t?.owner?.current instanceof HTMLElement && W_() && M_();
+function pte(e) {
+ let t = ev(e), { onUpdate: n, transformTemplate: r } = t.getProps();
+ return !e.isHandoff && !n && !e.hasOnUpdate && !r && e.type !== "inertia" && (rv(t, "transform") || "none") === "none" && !rv(t, "pathRotation") && !t.projection?.isProjecting() && !H_(e);
}
-var pte = class extends qg {
+var mte = class extends Zg {
constructor(e) {
- let t = X_(e).current, { driver: n = gg } = e, r, i = fte(e);
+ let t = ev(e).current, { driver: n = bg } = e, r, i = pte(e);
e.driver = (e) => {
let i = n(e);
return {
js: i,
now: i.now,
start: (e = !0) => {
- let n = Z_(t);
+ let n = tv(t);
!n || n.isJS ? i.start(e) : n.schedule(!1, !e);
},
stop: () => {
i.stop();
- let e = Z_(t);
+ let e = tv(t);
e && !e.isFinishing && e.release(r);
}
};
@@ -17332,7 +17345,7 @@ var pte = class extends qg {
};
}
get group() {
- return Z_(X_(this.options).current);
+ return tv(ev(this.options).current);
}
get js() {
return this.driver?.js;
@@ -17349,11 +17362,11 @@ var pte = class extends qg {
return e?.tracks.has(this) && !e.isJS && this.canAccelerate && (t === "running" || t === "paused");
}
liveValue() {
- return this.isAccelerated() ? this.sampleAt(rh.now()) : void 0;
+ return this.isAccelerated() ? this.sampleAt(ch.now()) : void 0;
}
tween() {
- let { keyframes: e, type: t, ease: n, times: r, repeat: i, delay: a = 0 } = this.options, o = /* @__PURE__ */ Xm(n) ? k_(n) : ute(n) && A_[n];
- if (o && !i && !r && e.length === 2 && t === Rg && this.holdTime === null) {
+ let { keyframes: e, type: t, ease: n, times: r, repeat: i, delay: a = 0 } = this.options, o = /* @__PURE__ */ th(n) ? N_(n) : dte(n) && P_[n];
+ if (o && !i && !r && e.length === 2 && t === Hg && this.holdTime === null) {
let e = this.startTime + a / this.speed;
return [
e,
@@ -17363,7 +17376,7 @@ var pte = class extends qg {
}
}
boundaries(e, t) {
- let { startTime: n, speed: r, resolvedDuration: i, options: a } = this, { delay: o = 0, repeat: s = 0, repeatDelay: c = 0, repeatType: l, times: u, keyframes: d, type: f } = a, p = (f || Rg) === Rg ? u || Lg(d) : [0, 1], m = n + o / r, h = [];
+ let { startTime: n, speed: r, resolvedDuration: i, options: a } = this, { delay: o = 0, repeat: s = 0, repeatDelay: c = 0, repeatType: l, times: u, keyframes: d, type: f } = a, p = (f || Hg) === Hg ? u || Vg(d) : [0, 1], m = n + o / r, h = [];
if (this.holdTime !== null || !(i > 0)) return h;
for (let n = Math.max(0, Math.floor((e - m) * r / i)); n <= s; n++) {
let a = m + n * i / r;
@@ -17379,11 +17392,11 @@ var pte = class extends qg {
return parseFloat(this.sampleAt(e, !0));
}
sync() {
- let e = rh.now();
+ let e = ch.now();
this.options.motionValue.setWithVelocity(this.sampleAt(e - 10, !0), this.sampleAt(e, !0), 10);
}
play() {
- this.isStopped || ((this.group || mte(X_(this.options))).tracks.add(this), super.play());
+ this.isStopped || ((this.group || hte(ev(this.options))).tracks.add(this), super.play());
}
pause() {
super.pause(), this.isAccelerated() && (this.sync(), this.group.schedule(!1));
@@ -17391,10 +17404,10 @@ var pte = class extends qg {
complete() {
super.complete();
let { group: e } = this;
- e && !e.isJS && this.canAccelerate && this.tick(rh.now());
+ e && !e.isJS && this.canAccelerate && this.tick(ch.now());
}
get time() {
- return this.isAccelerated() ? /* @__PURE__ */ jm(bm(0, this.totalDuration, this.at(rh.now()) - (this.options.delay || 0))) : super.time;
+ return this.isAccelerated() ? /* @__PURE__ */ Im(Tm(0, this.totalDuration, this.at(ch.now()) - (this.options.delay || 0))) : super.time;
}
set time(e) {
super.time = e, this.isAccelerated() && this.sync();
@@ -17403,13 +17416,13 @@ var pte = class extends qg {
return this.canAccelerate = !1, this.group?.demote(!0), super.attachTimeline(e);
}
};
-function mte(e) {
+function hte(e) {
let t = e.current, n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), i = {}, a = [], o = /* @__PURE__ */ new Map(), s = [], c = !1, l = !1, u = !1, d = !1, f = -Infinity, p = (e) => {
for (let t of n) if (t.name === e) return !0;
}, m = (t, n) => {
let o = {};
- for (let s of t === void 0 ? d_ : a) {
- let a = r.get(s), c = t === void 0 ? $_(e, s) : a ? a.sampleAt(n > t && !a.timing()[1] ? n : t) : i[s];
+ for (let s of t === void 0 ? h_ : a) {
+ let a = r.get(s), c = t === void 0 ? rv(e, s) : a ? a.sampleAt(n > t && !a.timing()[1] ? n : t) : i[s];
c !== void 0 && (o[s] = c);
}
return o;
@@ -17417,7 +17430,7 @@ function mte(e) {
let n = "";
for (let r in e) {
let i = e[r];
- t && W_(r, i) || (n += U_(r, i) + " ");
+ t && J_(r, i) || (n += q_(r, i) + " ");
}
return (t ? n.trim() : n) || "none";
}, g = (e, t) => h(m(e, t)), _ = (e = m()) => {
@@ -17430,7 +17443,7 @@ function mte(e) {
offset: t,
end: n
};
- e.startTime = rh.now() + t, n < Infinity && (e.onfinish = () => {
+ e.startTime = ch.now() + t, n < Infinity && (e.onfinish = () => {
r.isDone = !0, s.some((e) => e.end === Infinity) && (e.cancel(), s = s.filter((e) => e !== r)), A.schedule(!1);
}), e.oncancel = () => s.includes(r) && A.demote(), s.push(r);
}, x = (e, t, n) => {
@@ -17441,32 +17454,32 @@ function mte(e) {
}
return r(t, n) > i / 2 ? [t, n] : [];
}, S = (e, t, n, r) => {
- let i = Math.min(ote, Math.max(2, Math.ceil((n - t) / 10)));
+ let i = Math.min(ste, Math.max(2, Math.ceil((n - t) / 10)));
if (r.length * 4 > i) return;
- let a = Y_(t, n, i).concat(r).sort(J_), o = (e) => /* @__PURE__ */ Om(t, n, e), s, c;
+ let a = $_(t, n, i).concat(r).sort(Q_), o = (e) => /* @__PURE__ */ Nm(t, n, e), s, c;
for (let n of e) {
- let e = n.numberAt(t), r = a.map((t) => n.numberAt(t) - e), i = r[r.length - 1], o = r.some((e) => Math.abs(e) * K_ > Math.abs(i)) ? 0 : i, l = r.map((e) => o ? e / o : e);
+ let e = n.numberAt(t), r = a.map((t) => n.numberAt(t) - e), i = r[r.length - 1], o = r.some((e) => Math.abs(e) * X_ > Math.abs(i)) ? 0 : i, l = r.map((e) => o ? e / o : e);
if (o && !s) s = l, c = (t) => (n.numberAt(t) - e) / o;
- else if (l.some((e, t) => !q_(e, o && s[t]))) return;
+ else if (l.some((e, t) => !Z_(e, o && s[t]))) return;
}
- if (!s || s.every((e, t) => q_(e, o(a[t])))) return "linear";
- let l = [], u = (e, t = c(e)) => l.push(Kg(t) + " " + Kg(o(e) * 100) + "%");
+ if (!s || s.every((e, t) => Z_(e, o(a[t])))) return "linear";
+ let l = [], u = (e, t = c(e)) => l.push(Xg(t) + " " + Xg(o(e) * 100) + "%");
return s.forEach((e, t) => {
t && Math.abs(e - s[t - 1]) > .2 && x(c, a[t - 1], a[t]).forEach((e) => u(e)), u(a[t], e);
}), "linear(" + l + ")";
}, C = (e, t, n, r) => {
- let i = [t], a = (t, n) => e.every((e) => !(Math.abs(e.numberAt((t + n) / 2) - (e.numberAt(t) + e.numberAt(n)) / 2) > (e.name.startsWith("scale") ? cte : ste))), o = (t, n, r) => {
+ let i = [t], a = (t, n) => e.every((e) => !(Math.abs(e.numberAt((t + n) / 2) - (e.numberAt(t) + e.numberAt(n)) / 2) > (e.name.startsWith("scale") ? lte : cte))), o = (t, n, r) => {
if (n - t < 1 || a(t, n)) i.push(n);
else if (r < 4) o(t, (t + n) / 2, r + 1), o((t + n) / 2, n, r + 1);
else {
for (let r of e) i.push(...x((e) => r.numberAt(e), t, n));
i.push(n);
}
- }, s = Y_(t, n, Math.ceil((n - t) / 100));
+ }, s = $_(t, n, Math.ceil((n - t) / 100));
for (let e of r) s.push(e, Math.min(e + .01, n));
let c = t;
- for (let e of s.sort(J_)) e > c && o(c, e, 0), c = e;
- return i.sort(J_);
+ for (let e of s.sort(Q_)) e > c && o(c, e, 0), c = e;
+ return i.sort(Q_);
}, w = (e) => {
let t;
for (let n of e) {
@@ -17477,7 +17490,7 @@ function mte(e) {
return t;
}, T = (e, t, n, r, i = { fill: "both" }, a) => {
let o = e.flatMap((e) => e.boundaries(t, n)), s = r || S(e, t, n, o), c = s ? [t, n] : C(e, t, n, o), l = c.map((e) => g(e, a)), u = { transform: l };
- return s || (u.offset = c.map((e) => /* @__PURE__ */ Om(t, n, e))), l.every((e) => e === l[0]) && (_(m(t, a)), u = null), y(u, {
+ return s || (u.offset = c.map((e) => /* @__PURE__ */ Nm(t, n, e))), l.every((e) => e === l[0]) && (_(m(t, a)), u = null), y(u, {
...i,
duration: n - t,
easing: s || "linear"
@@ -17505,10 +17518,10 @@ function mte(e) {
d.push(e), c = Math.max(c, n);
}
}
- i = {}, a = d_.filter((t) => {
+ i = {}, a = h_.filter((t) => {
if (r.has(t)) return !0;
- let n = i[t] = $_(e, t);
- return n !== void 0 && !W_(t, n);
+ let n = i[t] = rv(e, t);
+ return n !== void 0 && !J_(t, n);
}), v(!1);
let m = !l && w(d);
try {
@@ -17554,18 +17567,18 @@ function mte(e) {
r && n.updatePlaybackRate && n.playState === "running" && Math.abs(Number(n.currentTime) - o) < 20 ? n.playbackRate !== r && n.updatePlaybackRate(r) : r ? (n.playbackRate = r, n.startTime = e - o / r) : (n.startTime = null, n.currentTime = o);
}
return !0;
- }, O = () => !n.size && (u = !0, Z_(t) === A && G_.delete(t), A.isJS || v(), !0), k = () => {
- let t = rh.now();
+ }, O = () => !n.size && (u = !0, tv(t) === A && Y_.delete(t), A.isJS || v(), !0), k = () => {
+ let t = ch.now();
if (A.isJS || (A.isFinishing = !0, n.forEach((n) => {
let [r, a] = n.timing();
- n.state === "running" && n.speed > 0 && !a && r <= t + 1 && (n.complete(), i[n.name] = $_(e, n.name), o.has(n) || (c = !0));
- }), A.isFinishing = !1), l = !1, u || (n.forEach((e) => Q_(e) && n.delete(e)), O())) return;
+ n.state === "running" && n.speed > 0 && !a && r <= t + 1 && (n.complete(), i[n.name] = rv(e, n.name), o.has(n) || (c = !0));
+ }), A.isFinishing = !1), l = !1, u || (n.forEach((e) => nv(e) && n.delete(e)), O())) return;
for (let e of n) if (!e.canAccelerate) return A.demote(!0);
A.isJS && (A.isJS = !1, c = !0, n.forEach((e) => e.js?.stop()));
let r = c, a = d;
if (c = d = !1, r || !D(t)) {
if (a) {
- if (t - f < lte) return A.demote();
+ if (t - f < ute) return A.demote();
f = t;
}
if (!E(t)) return A.demote();
@@ -17575,14 +17588,14 @@ function mte(e) {
isJS: !1,
isFinishing: !1,
schedule(e, t) {
- u || (c ||= e, d ||= !!t, l || (l = !0, eh.isProcessing ? pg.render(k, !1, !0) : queueMicrotask(k)));
+ u || (c ||= e, d ||= !!t, l || (l = !0, ah.isProcessing ? _g.render(k, !1, !0) : queueMicrotask(k)));
},
release(e) {
- Q_(e) && n.delete(e), O() || A.schedule(!0);
+ nv(e) && n.delete(e), O() || A.schedule(!0);
},
check() {
if (!A.isJS) {
- for (let t in i) if ($_(e, t) !== i[t] && !p(t)) return A.schedule(!0, !0);
+ for (let t in i) if (rv(e, t) !== i[t] && !p(t)) return A.schedule(!0, !0);
}
},
demote(e) {
@@ -17591,40 +17604,40 @@ function mte(e) {
}), A.isJS = !0, o = /* @__PURE__ */ new Map(), v(), n.forEach((e) => e.state === "running" && e.js?.start()), !0;
}
};
- return G_.set(t, A), A;
+ return Y_.set(t, A), A;
}
// node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs
-var hte = class extends Gg {
+var gte = class extends Yg {
constructor(e) {
super(), this.stop = () => {
this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
- }, this.createdAt = rh.now();
+ }, this.createdAt = ch.now();
let { keyframes: t, name: n, motionValue: r, element: i } = e, a = e;
a.autoplay ??= !0, a.delay ??= 0, a.type ??= "keyframes", a.repeat ??= 0, a.repeatDelay ??= 0, a.repeatType ??= "loop";
- let o = i?.KeyframeResolver || w_;
+ let o = i?.KeyframeResolver || O_;
this.keyframeResolver = new o(t, (e, t, n) => this.onKeyframesResolved(e, t, a, !n), n, r, i), this.keyframeResolver?.scheduleResolve();
}
onKeyframesResolved(e, t, n, r) {
this.keyframeResolver = void 0;
let { name: i, type: a, velocity: o, delay: s, isHandoff: c, onUpdate: l } = n;
- this.resolvedAt = rh.now();
- let u = $ee(e, i, a, o);
- u || ((xm.instantAnimations || !s) && l?.(Bg(e, n, t)), e[0] = e[e.length - 1], I_(n), n.repeat = 0);
+ this.resolvedAt = ch.now();
+ let u = ete(e, i, a, o);
+ u || ((Em.instantAnimations || !s) && l?.(Wg(e, n, t)), e[0] = e[e.length - 1], B_(n), n.repeat = 0);
let { onComplete: d } = n;
n.finalKeyframe = t, n.keyframes = e, n.onComplete = () => {
d?.(), this.notifyFinished();
};
- let f = u && !c && nte(n), p = !f && dte(n);
- r && (f || p || this.resolvedAt !== this.createdAt) && (n.startTime ??= Hg(this.createdAt, this.resolvedAt));
+ let f = u && !c && rte(n), p = !f && fte(n);
+ r && (f || p || this.resolvedAt !== this.createdAt) && (n.startTime ??= Kg(this.createdAt, this.resolvedAt));
let m;
if (f) {
n.element = n.motionValue?.owner?.current;
try {
- m = new Zee(n);
+ m = new Qee(n);
} catch {
- m = new qg(n);
+ m = new Zg(n);
}
- } else m = p ? new pte(n) : new qg(n);
+ } else m = p ? new mte(n) : new Zg(n);
this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
}
get finished() {
@@ -17637,7 +17650,7 @@ var hte = class extends Gg {
return this._animation?.liveValue?.();
}
get animation() {
- return this._animation || (this.keyframeResolver?.resume(), Uee()), this._animation;
+ return this._animation || (this.keyframeResolver?.resume(), Wee()), this._animation;
}
get duration() {
return this.animation.duration;
@@ -17678,7 +17691,7 @@ var hte = class extends Gg {
cancel() {
this._animation?.cancel(), this.keyframeResolver?.cancel();
}
-}, gte = class {
+}, _te = class {
constructor(e) {
this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
}
@@ -17718,10 +17731,10 @@ var hte = class extends Gg {
return this.getAll("startTime");
}
get duration() {
- return ev(this.animations, "duration");
+ return iv(this.animations, "duration");
}
get iterationDuration() {
- return ev(this.animations, "iterationDuration");
+ return iv(this.animations, "iterationDuration");
}
runAll(e) {
this.animations.forEach((t) => t[e]());
@@ -17739,7 +17752,7 @@ var hte = class extends Gg {
this.runAll("complete");
}
};
-function ev(e, t) {
+function iv(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) {
let i = e[r][t];
@@ -17748,30 +17761,30 @@ function ev(e, t) {
return n;
}
// node_modules/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs
-var tv = class extends gte {
+var av = class extends _te {
then(e, t) {
return this.finished.finally(e).then(() => {});
}
-}, nv = /* @__PURE__ */ new WeakMap(), _te = (e, t = "") => `${e}:${t}`;
-function vte(e) {
- let t = nv.get(e);
- return t || (t = /* @__PURE__ */ new Map(), nv.set(e, t)), t;
+}, ov = /* @__PURE__ */ new WeakMap(), vte = (e, t = "") => `${e}:${t}`;
+function yte(e) {
+ let t = ov.get(e);
+ return t || (t = /* @__PURE__ */ new Map(), ov.set(e, t)), t;
}
// node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs
-function rv(e, t, n, r = 0, i = 1) {
+function sv(e, t, n, r = 0, i = 1) {
let a = Array.from(e).sort((e, t) => e.sortNodePosition(t)).indexOf(t), o = e.size, s = (o - 1) * r;
return typeof n == "function" ? n(a, o) : i === 1 ? a * r : s - a * r;
}
// node_modules/motion-dom/dist/es/value/index.mjs
-var iv = 30, yte = (e) => !isNaN(parseFloat(e)), av = { current: void 0 }, ov = class {
+var cv = 30, bte = (e) => !isNaN(parseFloat(e)), lv = { current: void 0 }, uv = class {
constructor(e, t = {}) {
this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (e) => {
- let t = rh.now();
+ let t = ch.now();
if (this.updatedAt !== t && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(e), this.current !== this.prev && (this.dirty(), this.dependents)) for (let e of this.dependents) e.dirty();
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = t.owner;
}
setCurrent(e) {
- this.current = e, this.updatedAt = rh.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = yte(this.current));
+ this.current = e, this.updatedAt = ch.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = bte(this.current));
}
setPrevFrameValue(e = this.current) {
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
@@ -17781,16 +17794,16 @@ var iv = 30, yte = (e) => !isNaN(parseFloat(e)), av = { current: void 0 }, ov =
}
on(e, t) {
var n;
- return e === "change" ? this.onChangeSubscribe(t) : ((n = this.events)[e] || (n[e] = new km())).add(t);
+ return e === "change" ? this.onChangeSubscribe(t) : ((n = this.events)[e] || (n[e] = new Pm())).add(t);
}
onChangeSubscribe(e) {
let { events: t } = this;
- return !t.change && !this.changeSubscriber ? this.changeSubscriber = e : (t.change || (t.change = new km(), t.change.add(this.changeSubscriber), this.changeSubscriber = void 0), t.change.add(e)), () => {
+ return !t.change && !this.changeSubscriber ? this.changeSubscriber = e : (t.change || (t.change = new Pm(), t.change.add(this.changeSubscriber), this.changeSubscriber = void 0), t.change.add(e)), () => {
this.changeSubscriber === e ? this.changeSubscriber = void 0 : t.change?.remove(e), this.stopIfUnobserved();
};
}
stopIfUnobserved() {
- pg.read(() => {
+ _g.read(() => {
!this.changeSubscriber && !this.events.change?.getSize() && this.stop();
});
}
@@ -17808,7 +17821,7 @@ var iv = 30, yte = (e) => !isNaN(parseFloat(e)), av = { current: void 0 }, ov =
this.set(t), this.prev = void 0, this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt - n;
}
jump(e, t = !0) {
- t && (this.updatedAt = rh.now(), this.stop()), this.updateAndNotify(e), this.prev = e, this.prevUpdatedAt = this.prevFrameValue = void 0, this.stopPassiveEffect?.();
+ t && (this.updatedAt = ch.now(), this.stop()), this.updateAndNotify(e), this.prev = e, this.prevUpdatedAt = this.prevFrameValue = void 0, this.stopPassiveEffect?.();
}
dirty() {
let { current: e, changeSubscriber: t } = this;
@@ -17821,7 +17834,7 @@ var iv = 30, yte = (e) => !isNaN(parseFloat(e)), av = { current: void 0 }, ov =
this.dependents?.delete(e);
}
get() {
- av.current?.push(this);
+ lv.current?.push(this);
let e = this.animation?.liveValue?.();
return e === void 0 ? this.current : e;
}
@@ -17832,10 +17845,10 @@ var iv = 30, yte = (e) => !isNaN(parseFloat(e)), av = { current: void 0 }, ov =
return this.prev;
}
getVelocity() {
- let e = rh.now();
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > iv) return 0;
- let t = Math.min(this.updatedAt - this.prevUpdatedAt, iv);
- return /* @__PURE__ */ Mm(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
+ let e = ch.now();
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > cv) return 0;
+ let t = Math.min(this.updatedAt - this.prevUpdatedAt, cv);
+ return /* @__PURE__ */ Lm(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
}
start(e) {
return this.stop(), new Promise((t) => {
@@ -17856,11 +17869,11 @@ var iv = 30, yte = (e) => !isNaN(parseFloat(e)), av = { current: void 0 }, ov =
this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect?.();
}
};
-function sv(e, t) {
- return new ov(e, t);
+function dv(e, t) {
+ return new uv(e, t);
}
// node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
-function cv(e, t) {
+function fv(e, t) {
if (e?.inherit && t) {
let { inherit: n, ...r } = e;
return {
@@ -17871,25 +17884,25 @@ function cv(e, t) {
return e;
}
// node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs
-function lv(e, t) {
+function pv(e, t) {
let n = e?.[t] ?? e?.default ?? e;
- return n === e ? n : cv(n, e);
+ return n === e ? n : fv(n, e);
}
// node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs
-var bte = {
+var xte = {
type: "spring",
stiffness: 500,
damping: 25,
restSpeed: 10
-}, xte = (e) => ({
+}, Ste = (e) => ({
type: "spring",
stiffness: 550,
damping: e === 0 ? 2 * Math.sqrt(550) : 30,
restSpeed: 10
-}), Ste = {
+}), Cte = {
type: "keyframes",
duration: .8
-}, Cte = {
+}, wte = {
type: "keyframes",
ease: [
.25,
@@ -17898,7 +17911,7 @@ var bte = {
1
],
duration: .3
-}, wte = (e, { keyframes: t }) => t.length > 2 ? Ste : f_.has(e) ? e.startsWith("scale") ? xte(t[1]) : bte : Cte, Tte = /* @__PURE__ */ new Set([
+}, Tte = (e, { keyframes: t }) => t.length > 2 ? Cte : g_.has(e) ? e.startsWith("scale") ? Ste(t[1]) : xte : wte, Ete = /* @__PURE__ */ new Set([
"when",
"delay",
"delayChildren",
@@ -17912,14 +17925,14 @@ var bte = {
"out",
"mixer"
]);
-function Ete(e) {
- for (let t in e) if (!Tte.has(t)) return !0;
+function Dte(e) {
+ for (let t in e) if (!Ete.has(t)) return !0;
return !1;
}
// node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs
-var uv = (e, t, n, r = {}, i, a) => (o) => {
- let s = lv(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
- l -= /* @__PURE__ */ Am(c);
+var mv = (e, t, n, r = {}, i, a) => (o) => {
+ let s = pv(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
+ l -= /* @__PURE__ */ Fm(c);
let u = {
keyframes: Array.isArray(n) ? n : [null, n],
ease: "easeOut",
@@ -17937,195 +17950,195 @@ var uv = (e, t, n, r = {}, i, a) => (o) => {
element: a ? void 0 : i,
hasOnUpdate: !!s.onUpdate
};
- Ete(s) || Object.assign(u, wte(e, u)), u.duration &&= /* @__PURE__ */ Am(u.duration), u.repeatDelay &&= /* @__PURE__ */ Am(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
+ Dte(s) || Object.assign(u, Tte(e, u)), u.duration &&= /* @__PURE__ */ Fm(u.duration), u.repeatDelay &&= /* @__PURE__ */ Fm(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
let d = !1;
- if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (I_(u), u.delay === 0 && (d = !0)), (xm.instantAnimations || xm.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, I_(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
- let e = Bg(u.keyframes, s);
+ if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (B_(u), u.delay === 0 && (d = !0)), (Em.instantAnimations || Em.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, B_(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
+ let e = Wg(u.keyframes, s);
if (e !== void 0) {
- pg.update(() => {
+ _g.update(() => {
u.onUpdate(e), u.onComplete();
});
return;
}
}
- return s.isSync ? new qg(u) : new hte(u);
-}, Dte = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
-function Ote(e) {
- let t = Dte.exec(e);
+ return s.isSync ? new Zg(u) : new gte(u);
+}, Ote = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
+function kte(e) {
+ let t = Ote.exec(e);
if (!t) return [,];
let [, n, r, i] = t;
return [`--${n ?? r}`, i];
}
-function dv(e, t, n = 1) {
- let [r, i] = Ote(e);
+function hv(e, t, n = 1) {
+ let [r, i] = kte(e);
if (!r) return;
let a = window.getComputedStyle(t).getPropertyValue(r);
if (a) {
let e = a.trim();
- return Sm(e) ? parseFloat(e) : e;
+ return Dm(e) ? parseFloat(e) : e;
}
- return ch(i) ? dv(i, t, n + 1) : i;
+ return ph(i) ? hv(i, t, n + 1) : i;
}
// node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs
-function kte(e) {
+function Ate(e) {
let t = [{}, {}];
return e?.values.forEach((e, n) => {
t[0][n] = e.get(), t[1][n] = e.getVelocity();
}), t;
}
-function fv(e, t, n, r) {
- let i = (t) => typeof t == "function" ? t(n === void 0 ? e.custom : n, ...kte(r)) : t;
+function gv(e, t, n, r) {
+ let i = (t) => typeof t == "function" ? t(n === void 0 ? e.custom : n, ...Ate(r)) : t;
return t = i(t), typeof t == "string" && (t = e.variants && e.variants[t]), i(t);
}
// node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs
-function pv(e, t, n) {
- return fv(e.getProps(), t, n, e);
+function _v(e, t, n) {
+ return gv(e.getProps(), t, n, e);
}
-var mv = (e, t) => t === "exit" ? e.presenceContext?.custom : void 0, hv = /* @__PURE__ */ new Set([
+var vv = (e, t) => t === "exit" ? e.presenceContext?.custom : void 0, yv = /* @__PURE__ */ new Set([
"width",
"height",
"top",
"left",
"right",
"bottom",
- ...d_
-]), Ate = (e) => Array.isArray(e);
+ ...h_
+]), jte = (e) => Array.isArray(e);
// node_modules/motion-dom/dist/es/render/utils/setters.mjs
-function jte(e, t, n) {
- e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, sv(n));
+function Mte(e, t, n) {
+ e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, dv(n));
}
-function Mte(e) {
- return Ate(e) ? e[e.length - 1] || 0 : e;
+function Nte(e) {
+ return jte(e) ? e[e.length - 1] || 0 : e;
}
-function Nte(e, t) {
- let { transitionEnd: n = {}, transition: r = {}, ...i } = pv(e, t) || {};
+function Pte(e, t) {
+ let { transitionEnd: n = {}, transition: r = {}, ...i } = _v(e, t) || {};
i = {
...i,
...n
};
- for (let t in i) jte(e, t, Mte(i[t]));
+ for (let t in i) Mte(e, t, Nte(i[t]));
}
// node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs
-var gv = (e) => !!(e && e.getVelocity);
+var bv = (e) => !!(e && e.getVelocity);
// node_modules/motion-dom/dist/es/value/will-change/is.mjs
-function Pte(e) {
- return !!(gv(e) && e.add);
+function Fte(e) {
+ return !!(bv(e) && e.add);
}
// node_modules/motion-dom/dist/es/value/will-change/add-will-change.mjs
-function _v(e, t) {
+function xv(e, t) {
let n = e.getValue("willChange");
- if (Pte(n)) return n.add(t);
- if (!n && xm.WillChange) {
- let n = new xm.WillChange("auto");
+ if (Fte(n)) return n.add(t);
+ if (!n && Em.WillChange) {
+ let n = new Em.WillChange("auto");
e.addValue("willChange", n), n.add(t);
}
}
// node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.mjs
-var vv = "data-framer-appear-id";
+var Sv = "data-framer-appear-id";
// node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs
-function yv(e) {
- return e.props[vv];
+function Cv(e) {
+ return e.props[Sv];
}
// node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs
-var Fte = typeof window < "u";
-function Ite({ protectedKeys: e, needsAnimating: t }, n) {
+var Ite = typeof window < "u";
+function Lte({ protectedKeys: e, needsAnimating: t }, n) {
let r = n in e && !t[n];
return t[n] = !1, r;
}
-function bv(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
+function wv(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
let { transition: a, transitionEnd: o, ...s } = t, c = e.getDefaultTransition();
- a = a ? cv(a, c) : c;
+ a = a ? fv(a, c) : c;
let l = a?.reduceMotion, u = a?.skipAnimations;
r && (a = r);
let d = [], f = i && e.animationState?.getState()[i], p = a?.path;
p && (p.animateValues ? p.animateValues((t) => e.getValue(t, e.latestValues[t] ?? 0), s, a, n, d) : p.animateVisualElement?.(e, s, a, n, d));
for (let t in s) {
let r = e.getValue(t, e.latestValues[t] ?? null), i = s[t];
- if (i === void 0 || f && Ite(f, t)) continue;
+ if (i === void 0 || f && Lte(f, t)) continue;
let o = {
delay: n,
- ...lv(f?.out[t] || a || {}, t)
+ ...pv(f?.out[t] || a || {}, t)
};
u && (o.skipAnimations = !0);
let c = r.get();
if (c !== void 0 && !r.isAnimating() && !Array.isArray(i) && i === c && !o.velocity) {
- pg.update(() => r.set(i));
+ _g.update(() => r.set(i));
continue;
}
let p = !1;
- if (Fte && window.MotionHandoffAnimation) {
- let n = yv(e);
+ if (Ite && window.MotionHandoffAnimation) {
+ let n = Cv(e);
if (n) {
- let e = window.MotionHandoffAnimation(n, t, pg);
+ let e = window.MotionHandoffAnimation(n, t, _g);
e !== null && (o.startTime = e, p = !0);
}
}
- _v(e, t);
+ xv(e, t);
let m = l ?? e.shouldReduceMotion;
- r.start(uv(t, r, i, m && hv.has(t) ? { type: !1 } : o, e, p));
+ r.start(mv(t, r, i, m && yv.has(t) ? { type: !1 } : o, e, p));
let h = r.animation;
h && d.push(h);
}
if (o) {
- let t = () => pg.update(() => {
- o && Nte(e, o);
+ let t = () => _g.update(() => {
+ o && Pte(e, o);
});
d.length ? Promise.all(d).then(t) : t();
}
return d;
}
// node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs
-function xv(e, t, n = {}) {
- let r = pv(e, t, mv(e, n.type)), i = n.transitionOverride || (r?.transition ?? (e.getDefaultTransition() || {})), a = () => Promise.all(r ? bv(e, r, n) : []), o = (r = 0) => {
+function Tv(e, t, n = {}) {
+ let r = _v(e, t, vv(e, n.type)), i = n.transitionOverride || (r?.transition ?? (e.getDefaultTransition() || {})), a = () => Promise.all(r ? wv(e, r, n) : []), o = (r = 0) => {
let { variantChildren: a } = e, { delayChildren: o = 0, staggerChildren: s, staggerDirection: c } = i, l = [];
return a?.forEach((e) => {
- e.notify("AnimationStart", t), l.push(xv(e, t, {
+ e.notify("AnimationStart", t), l.push(Tv(e, t, {
...n,
- delay: r + (typeof o == "function" ? 0 : o) + rv(a, e, o, s, c)
+ delay: r + (typeof o == "function" ? 0 : o) + sv(a, e, o, s, c)
}).then(() => e.notify("AnimationComplete", t)));
}), Promise.all(l);
}, { when: s } = i;
return s ? s === "beforeChildren" ? a().then(() => o()) : o().then(a) : Promise.all([a(), o(n.delay)]);
}
// node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs
-function Lte(e, t, n = {}) {
- return e.notify("AnimationStart", t), (Array.isArray(t) ? Promise.all(t.map((t) => xv(e, t, n))) : typeof t == "string" ? xv(e, t, n) : Promise.all(bv(e, pv(e, t, n.custom), n))).then(() => {
+function Rte(e, t, n = {}) {
+ return e.notify("AnimationStart", t), (Array.isArray(t) ? Promise.all(t.map((t) => Tv(e, t, n))) : typeof t == "string" ? Tv(e, t, n) : Promise.all(wv(e, _v(e, t, n.custom), n))).then(() => {
e.notify("AnimationComplete", t);
});
}
// node_modules/motion-dom/dist/es/value/types/auto.mjs
-var Rte = {
+var zte = {
test: (e) => e === "auto",
parse: (e) => e
-}, zte = (e) => (t) => t.test(e), Bte = [
- dh,
- Oh,
- Dh,
- Eh,
- Ah,
- kh,
- Rte
-], Sv = (e) => Bte.find(zte(e));
+}, Bte = (e) => (t) => t.test(e), Vte = [
+ gh,
+ Nh,
+ Mh,
+ jh,
+ Fh,
+ Ph,
+ zte
+], Ev = (e) => Vte.find(Bte(e));
// node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs
-function Vte(e) {
- return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || wm(e);
+function Hte(e) {
+ return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || km(e);
}
// node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs
-var Hte = /* @__PURE__ */ new Set([
+var Ute = /* @__PURE__ */ new Set([
"auto",
"none",
"0"
]);
-function Ute(e, t, n) {
+function Wte(e, t, n) {
let r = 0, i;
for (; r < e.length && !i;) {
let t = e[r];
- typeof t == "string" && !Hte.has(t) && Wh(t) && (i = e[r]), r++;
+ typeof t == "string" && !Ute.has(t) && Yh(t) && (i = e[r]), r++;
}
- if (i && n) for (let r of t) e[r] !== i && (e[r] = e_(n, i));
+ if (i && n) for (let r of t) e[r] !== i && (e[r] = i_(n, i));
}
// node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs
-var Cv = class extends w_ {
+var Dv = class extends O_ {
constructor() {
super(...arguments), this.isAsync = !0;
}
@@ -18136,7 +18149,7 @@ var Cv = class extends w_ {
canReadNow() {
let { unresolvedKeyframes: e, element: t, motionValue: n } = this, r = e[0] ?? n?.get();
if (!t?.current || r === void 0) return !1;
- for (let t = 0; t < e.length; t++) if (uh(t ? e[t] : r)) return !1;
+ for (let t = 0; t < e.length; t++) if (hh(t ? e[t] : r)) return !1;
return !0;
}
readKeyframes() {
@@ -18145,32 +18158,32 @@ var Cv = class extends w_ {
super.readKeyframes();
for (let n = 0; n < e.length; n++) {
let r = e[n];
- if (typeof r == "string" && (r = r.trim(), ch(r))) {
- let i = dv(r, t.current);
+ if (typeof r == "string" && (r = r.trim(), ph(r))) {
+ let i = hv(r, t.current);
i !== void 0 && (e[n] = i), n === e.length - 1 && (this.finalKeyframe = r);
}
}
- if (this.resolveNoneKeyframes(), !hv.has(n) || e.length !== 2) return;
+ if (this.resolveNoneKeyframes(), !yv.has(n) || e.length !== 2) return;
let [r, i] = e;
if (typeof r == "number" && typeof i == "number") return;
- let a = Sv(r), o = Sv(i);
- if (uh(r) !== uh(i) && __[n]) this.needsMeasurement = !0;
+ let a = Ev(r), o = Ev(i);
+ if (hh(r) !== hh(i) && x_[n]) this.needsMeasurement = !0;
else if (a !== o) {
- if (p_(a) && p_(o)) for (let t = 0; t < e.length; t++) {
+ if (__(a) && __(o)) for (let t = 0; t < e.length; t++) {
let n = e[t];
typeof n == "string" && (e[t] = parseFloat(n));
}
- else __[n] && (this.needsMeasurement = !0);
+ else x_[n] && (this.needsMeasurement = !0);
}
}
resolveNoneKeyframes() {
let { unresolvedKeyframes: e, name: t } = this, n = [];
- for (let t = 0; t < e.length; t++) (e[t] === null || Vte(e[t])) && n.push(t);
- n.length && Ute(e, n, t);
+ for (let t = 0; t < e.length; t++) (e[t] === null || Hte(e[t])) && n.push(t);
+ n.length && Wte(e, n, t);
}
measure() {
let { element: e, name: t } = this;
- return __[t](window.getComputedStyle(e.current), () => e.measureViewportBox());
+ return x_[t](window.getComputedStyle(e.current), () => e.measureViewportBox());
}
measureInitialState() {
let { element: e, unresolvedKeyframes: t, name: n } = this;
@@ -18186,19 +18199,19 @@ var Cv = class extends w_ {
let n = t.length - 1, r = t[n];
t[n] = this.measure(), r !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = r), this.resolveNoneKeyframes();
}
-}, wv = [
+}, Ov = [
"borderTopLeftRadius",
"borderTopRightRadius",
"borderBottomRightRadius",
"borderBottomLeftRadius"
-], Wte = /* @__PURE__ */ new Set([
+], Gte = /* @__PURE__ */ new Set([
"borderWidth",
"borderTopWidth",
"borderRightWidth",
"borderBottomWidth",
"borderLeftWidth",
"borderRadius",
- ...wv,
+ ...Ov,
"width",
"maxWidth",
"height",
@@ -18241,21 +18254,21 @@ var Cv = class extends w_ {
"backgroundPositionY"
]);
// node_modules/motion-dom/dist/es/animation/keyframes/utils/apply-px-defaults.mjs
-function Gte(e, t) {
- for (let n = 0; n < e.length; n++) typeof e[n] == "number" && Wte.has(t) && (e[n] = e[n] + "px");
+function Kte(e, t) {
+ for (let n = 0; n < e.length; n++) typeof e[n] == "number" && Gte.has(t) && (e[n] = e[n] + "px");
}
// node_modules/motion-dom/dist/es/animation/animate/effects.mjs
-var Tv = [];
-function Kte(e) {
- Ev(e), Tv.unshift(e);
+var kv = [];
+function qte(e) {
+ Av(e), kv.unshift(e);
}
-function Ev(e) {
- ym(Tv, e);
+function Av(e) {
+ wm(kv, e);
}
-function qte(e) {
- return Tv.find((t) => t.test(e));
+function Jte(e) {
+ return kv.find((t) => t.test(e));
}
-function Dv(e, t, n = {}, r) {
+function jv(e, t, n = {}, r) {
let i = [], { velocity: a, path: o } = n, s = n.reduceMotion ?? r?.shouldReduceMotion;
o?.animateValues && r && (t = { ...t }, o.animateValues(e, t, n, 0, i));
for (let o in t) {
@@ -18263,62 +18276,62 @@ function Dv(e, t, n = {}, r) {
let c = t[o];
if (c === void 0) continue;
let l = e(o), u = l.get();
- u !== void 0 && !l.isAnimating() && !Array.isArray(c) && c === u && !a ? pg.update(() => l.set(c)) : (l.start(uv(o, l, c, s && hv.has(o) ? { type: !1 } : n, r)), l.animation && i.push(l.animation));
+ u !== void 0 && !l.isAnimating() && !Array.isArray(c) && c === u && !a ? _g.update(() => l.set(c)) : (l.start(mv(o, l, c, s && yv.has(o) ? { type: !1 } : n, r)), l.animation && i.push(l.animation));
}
let { transitionEnd: c } = t;
if (c) {
- let t = () => pg.update(() => {
+ let t = () => _g.update(() => {
for (let t in c) e(t).set(c[t]);
});
i.length ? Promise.all(i).then(t) : t();
}
return i;
}
-function Ov(e, t, n, r, i) {
- return Dv((r) => {
+function Mv(e, t, n, r, i) {
+ return jv((r) => {
let a = e.get(t, r);
if (!a) {
let o;
if (!i) {
let i = n[r];
- o = Jte(i) ?? e.read(t, r, i);
+ o = Yte(i) ?? e.read(t, r, i);
}
- a = sv(o, { owner: i }), e(t, { [r]: a });
+ a = dv(o, { owner: i }), e(t, { [r]: a });
}
return a;
}, n, r, i);
}
-function Jte(e) {
+function Yte(e) {
let t = Array.isArray(e) ? e[0] : void 0;
return t === null ? void 0 : t;
}
// node_modules/motion-dom/dist/es/utils/is-html-element.mjs
-function kv(e) {
- return Cm(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
+function Nv(e) {
+ return Om(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
}
// node_modules/motion-dom/dist/es/utils/is-svg-element.mjs
-function Av(e) {
- return Cm(e) && "ownerSVGElement" in e;
+function Pv(e) {
+ return Om(e) && "ownerSVGElement" in e;
}
// node_modules/motion-dom/dist/es/scope/active.mjs
-var jv = {};
-function Mv(e) {
- return jv.current?.add(e), e;
+var Fv = {};
+function Iv(e) {
+ return Fv.current?.add(e), e;
}
-var Nv = (e) => jv.current ? jv.current.bind(e) : e;
+var Lv = (e) => Fv.current ? Fv.current.bind(e) : e;
// node_modules/motion-dom/dist/es/utils/resolve-elements.mjs
-function Pv(e, t, n) {
+function Rv(e, t, n) {
if (e == null) return [];
if (e instanceof EventTarget) return [e];
if (typeof e == "string") {
- let r = t ? t.current : jv.current?.root || document, i = n?.[e] ?? r.querySelectorAll(e);
+ let r = t ? t.current : Fv.current?.root || document, i = n?.[e] ?? r.querySelectorAll(e);
return i ? Array.from(i) : [];
}
return Array.from(e).filter((e) => e != null);
}
// node_modules/motion-dom/dist/es/effects/MotionValueState.mjs
-var Yte = class {
- constructor(e = pg.render) {
+var Xte = class {
+ constructor(e = _g.render) {
this.step = e, this.values = /* @__PURE__ */ new Map(), this.pending = [], this.numPending = 0, this.flush = () => {
let { pending: e, numPending: t } = this;
this.numPending = 0;
@@ -18361,10 +18374,10 @@ var Yte = class {
}
};
// node_modules/motion-dom/dist/es/effects/utils/create-effect.mjs
-function Fv(e, { step: t, ...n } = {}) {
+function zv(e, { step: t, ...n } = {}) {
let r = /* @__PURE__ */ new WeakMap();
return Object.assign((n, i) => {
- let a = r.get(n) ?? new Yte(t);
+ let a = r.get(n) ?? new Xte(t);
r.set(n, a);
let o = [];
for (let t in i) {
@@ -18381,83 +18394,83 @@ function Fv(e, { step: t, ...n } = {}) {
});
}
// node_modules/motion-dom/dist/es/effects/style/transform.mjs
-function Xte(e) {
+function Zte(e) {
let t = "", { transformKeys: n = [], transformValues: r = {} } = e;
for (let e = 0; e < n.length; e++) {
let i = n[e], a = r[i].getCurrent();
- a !== void 0 && (W_(i, a) || (t += (t && " ") + U_(i, a)));
+ a !== void 0 && (J_(i, a) || (t += (t && " ") + q_(i, a)));
}
let i = e.get("pathRotation")?.get();
- return i && (t += (t && " ") + U_("rotate", i)), t || "none";
+ return i && (t += (t && " ") + q_("rotate", i)), t || "none";
}
// node_modules/motion-dom/dist/es/effects/style/index.mjs
-var Iv = /* @__PURE__ */ new Set([
+var Bv = /* @__PURE__ */ new Set([
"originX",
"originY",
"originZ"
-]), Lv = (e, t) => V_(e.get(t)?.get(), Qg[t]), Rv = (e, t, n, r) => {
+]), Vv = (e, t) => G_(e.get(t)?.get(), n_[t]), Hv = (e, t, n, r) => {
let i, a;
- if (f_.has(n)) {
+ if (g_.has(n)) {
if (n !== "pathRotation") {
let e = t.transformKeys ??= [];
- (t.transformValues ??= {})[n] = r, e.includes(n) || (e.push(n), e.sort((e, t) => d_.indexOf(e) - d_.indexOf(t)));
+ (t.transformValues ??= {})[n] = r, e.includes(n) || (e.push(n), e.sort((e, t) => h_.indexOf(e) - h_.indexOf(t)));
}
- t.get("transform") || (!kv(e) && !t.get("transformBox") && Rv(e, t, "transformBox", new ov("fill-box")), t.set("transform", new ov("none"), () => {
- G_.get(e)?.check(), e.style.transform = Xte(t);
+ t.get("transform") || (!Nv(e) && !t.get("transformBox") && Hv(e, t, "transformBox", new uv("fill-box")), t.set("transform", new uv("none"), () => {
+ Y_.get(e)?.check(), e.style.transform = Zte(t);
})), a = t.get("transform");
- } else Iv.has(n) ? (t.get("transformOrigin") || t.set("transformOrigin", new ov(""), () => {
- let n = Lv(t, "originX") ?? "50%", r = Lv(t, "originY") ?? "50%", i = Lv(t, "originZ") ?? 0;
+ } else Bv.has(n) ? (t.get("transformOrigin") || t.set("transformOrigin", new uv(""), () => {
+ let n = Vv(t, "originX") ?? "50%", r = Vv(t, "originY") ?? "50%", i = Vv(t, "originZ") ?? 0;
e.style.transformOrigin = `${n} ${r} ${i}`;
- }), a = t.get("transformOrigin")) : i = T_(n) ? () => {
+ }), a = t.get("transformOrigin")) : i = k_(n) ? () => {
e.style.setProperty(n, r.getCurrent());
} : () => {
- e.style[n] = V_(r.getCurrent(), Qg[n]);
+ e.style[n] = G_(r.getCurrent(), n_[n]);
};
return t.set(n, r, i, a);
-}, Zte = (e) => kv(e) || Av(e), zv = (e, t) => {
- if (f_.has(t)) return u_(e, t);
- let n = getComputedStyle(e), r = T_(t) ? n.getPropertyValue(t) : n[t];
+}, Qte = (e) => Nv(e) || Pv(e), Uv = (e, t) => {
+ if (g_.has(t)) return m_(e, t);
+ let n = getComputedStyle(e), r = k_(t) ? n.getPropertyValue(t) : n[t];
return typeof r == "string" && r.trim() || 0;
-}, Qte = /*@__PURE__*/ Fv(Rv, {
- test: Zte,
- read: zv
+}, $te = /*@__PURE__*/ zv(Hv, {
+ test: Qte,
+ read: Uv
});
// node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs
-function Bv(e) {
+function Wv(e) {
return e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
}
// node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs
-function Vv(e, t, n) {
+function Gv(e, t, n) {
let { style: r, vars: i, transformOrigin: a } = e, o = !1, s = !1;
for (let e in t) {
let n = t[e];
- if (f_.has(e)) o = !0;
- else if (oh(e)) i[e] = n;
+ if (g_.has(e)) o = !0;
+ else if (dh(e)) i[e] = n;
else {
- let t = V_(n, Qg[e]);
+ let t = G_(n, n_[e]);
e.startsWith("origin") ? (s = !0, a[e] = t) : r[e] = t;
}
}
- if (t.transform || (o || n ? r.transform = ate(t, e.transform, n) : r.transform &&= "none"), s) {
+ if (t.transform || (o || n ? r.transform = ote(t, e.transform, n) : r.transform &&= "none"), s) {
let { originX: e = "50%", originY: t = "50%", originZ: n = 0 } = a;
r.transformOrigin = `${e} ${t} ${n}`;
}
}
// node_modules/motion-dom/dist/es/render/svg/utils/path.mjs
-var $te = {
+var ene = {
offset: "stroke-dashoffset",
array: "stroke-dasharray"
-}, ene = {
+}, tne = {
offset: "strokeDashoffset",
array: "strokeDasharray"
};
-function tne(e, t, n = 1, r = 0, i = !0) {
+function nne(e, t, n = 1, r = 0, i = !0) {
e.pathLength = 1;
- let a = i ? $te : ene;
+ let a = i ? ene : tne;
e[a.offset] = `${-r}`, e[a.array] = `${t} ${n}`;
}
// node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs
-var Hv = [
+var Kv = [
"transform",
"opacity",
"clipPath",
@@ -18467,55 +18480,55 @@ var Hv = [
"offsetRotate",
"offsetAnchor"
];
-function Uv(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
- if (Vv(e, s, l), c) {
+function qv(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
+ if (Gv(e, s, l), c) {
e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
return;
}
e.attrs = e.style, e.style = {};
let { attrs: d, style: f } = e;
- for (let e of Hv) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
- (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox), t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && tne(d, i, a, o, !1);
+ for (let e of Kv) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
+ (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox), t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && nne(d, i, a, o, !1);
}
// node_modules/motion-dom/dist/es/effects/attr/index.mjs
-function nne(e, t) {
+function rne(e, t) {
if (!(t in e)) return !1;
let n = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e), t) || Object.getOwnPropertyDescriptor(e, t);
return n && typeof n.set == "function";
}
-var Wv = (e, t, n, r, i = n) => {
- let a = nne(e, i);
- !a && (i.startsWith("data") || i.startsWith("aria")) && (i = Bv(i));
- let o = Qg[n] || Qg[i], s = a ? () => {
- e[i] = V_(r.get(), Qg[n]);
+var Jv = (e, t, n, r, i = n) => {
+ let a = rne(e, i);
+ !a && (i.startsWith("data") || i.startsWith("aria")) && (i = Wv(i));
+ let o = n_[n] || n_[i], s = a ? () => {
+ e[i] = G_(r.get(), n_[n]);
} : () => {
- let t = V_(r.get(), o);
+ let t = G_(r.get(), o);
t == null ? e.removeAttribute(i) : e.setAttribute(i, String(t));
};
return t.set(n, r, s);
};
// node_modules/motion-dom/dist/es/effects/svg/index.mjs
-function rne(e, t, n, r) {
- return pg.render(() => e.setAttribute("pathLength", "1")), n === "pathOffset" ? t.set(n, r, () => {
+function ine(e, t, n, r) {
+ return _g.render(() => e.setAttribute("pathLength", "1")), n === "pathOffset" ? t.set(n, r, () => {
let t = r.get();
e.setAttribute("stroke-dashoffset", `${-t}`);
- }) : (t.get("stroke-dasharray") || t.set("stroke-dasharray", new ov("1 1"), () => {
+ }) : (t.get("stroke-dasharray") || t.set("stroke-dasharray", new uv("1 1"), () => {
let n = t.get("pathLength")?.get() ?? 1, r = t.get("pathSpacing")?.get();
e.setAttribute("stroke-dasharray", `${n} ${r ?? 1 - Number(n)}`);
}), t.set(n, r, void 0, t.get("stroke-dasharray")));
}
-var ine = /*@__PURE__*/ Fv((e, t, n, r) => n.startsWith("path") && !f_.has(n) ? rne(e, t, n, r) : n.startsWith("attr") ? Wv(e, t, n, r, Gv(n)) : n === "d" ? t.set(n, r, () => {
+var ane = /*@__PURE__*/ zv((e, t, n, r) => n.startsWith("path") && !g_.has(n) ? ine(e, t, n, r) : n.startsWith("attr") ? Jv(e, t, n, r, Yv(n)) : n === "d" ? t.set(n, r, () => {
let t = r.get()?.replace(/path\(|["')]/g, "");
t === void 0 ? e.removeAttribute(n) : e.setAttribute(n, t);
-}) : (f_.has(n) || Iv.has(n) || T_(n) || n in e.style ? Rv : Wv)(e, t, n, r), {
- test: Av,
- read: (e, t) => f_.has(t) ? Qg[t]?.default || 0 : T_(t) || Hv.includes(t) ? zv(e, t) || e.getAttribute(Bv(t)) || 0 : (t = Gv(t), e.getAttribute(Bv(t)) ?? e.getAttribute(t) ?? void 0)
+}) : (g_.has(n) || Bv.has(n) || k_(n) || n in e.style ? Hv : Jv)(e, t, n, r), {
+ test: Pv,
+ read: (e, t) => g_.has(t) ? n_[t]?.default || 0 : k_(t) || Kv.includes(t) ? Uv(e, t) || e.getAttribute(Wv(t)) || 0 : (t = Yv(t), e.getAttribute(Wv(t)) ?? e.getAttribute(t) ?? void 0)
});
-function Gv(e) {
+function Yv(e) {
return e.replace(/^attr([A-Z])/, (e, t) => t.toLowerCase());
}
// node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs
-function Kv({ top: e, left: t, right: n, bottom: r }) {
+function Xv({ top: e, left: t, right: n, bottom: r }) {
return {
x: {
min: t,
@@ -18527,7 +18540,7 @@ function Kv({ top: e, left: t, right: n, bottom: r }) {
}
};
}
-function ane({ x: e, y: t }) {
+function one({ x: e, y: t }) {
return {
top: t.min,
right: e.max,
@@ -18535,7 +18548,7 @@ function ane({ x: e, y: t }) {
left: e.min
};
}
-function one(e, t) {
+function sne(e, t) {
if (!t) return e;
let n = t({
x: e.left,
@@ -18552,13 +18565,13 @@ function one(e, t) {
};
}
// node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs
-function qv(e) {
+function Zv(e) {
return e === void 0 || e === 1;
}
-function Jv({ scale: e, scaleX: t, scaleY: n }) {
- return !qv(e) || !qv(t) || !qv(n);
+function Qv({ scale: e, scaleX: t, scaleY: n }) {
+ return !Zv(e) || !Zv(t) || !Zv(n);
}
-var Yv = [
+var $v = [
"rotate",
"rotateX",
"rotateY",
@@ -18566,67 +18579,67 @@ var Yv = [
"skewX",
"skewY"
];
-function Xv(e) {
- return Jv(e) || Qv(e) || Zv(e);
+function ey(e) {
+ return Qv(e) || ny(e) || ty(e);
}
-function Zv(e) {
+function ty(e) {
return e.z || e.rotate || e.rotateX || e.rotateY || e.rotateZ || e.skewX || e.skewY;
}
-function Qv(e) {
- return $v(e.x) || $v(e.y);
+function ny(e) {
+ return ry(e.x) || ry(e.y);
}
-function $v(e) {
+function ry(e) {
return e && e !== "0%";
}
// node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs
-function ey(e, t, n) {
+function iy(e, t, n) {
return n + t * (e - n);
}
-function ty(e, t, n, r, i) {
- return i !== void 0 && (e = ey(e, i, r)), ey(e, n, r) + t;
+function ay(e, t, n, r, i) {
+ return i !== void 0 && (e = iy(e, i, r)), iy(e, n, r) + t;
}
-function ny(e, t = 0, n = 1, r, i) {
- e.min = ty(e.min, t, n, r, i), e.max = ty(e.max, t, n, r, i);
+function oy(e, t = 0, n = 1, r, i) {
+ e.min = ay(e.min, t, n, r, i), e.max = ay(e.max, t, n, r, i);
}
-function ry(e, { x: t, y: n }) {
- ny(e.x, t.translate, t.scale, t.originPoint), ny(e.y, n.translate, n.scale, n.originPoint);
+function sy(e, { x: t, y: n }) {
+ oy(e.x, t.translate, t.scale, t.originPoint), oy(e.y, n.translate, n.scale, n.originPoint);
}
-var iy = .999999999999, ay = 1.0000000000001;
-function sne(e, t, n, r = !1) {
+var cy = .999999999999, ly = 1.0000000000001;
+function cne(e, t, n, r = !1) {
let i = n.length;
if (!i) return;
t.x = t.y = 1;
let a, o;
- for (let s = 0; s < i; s++) a = n[s], o = a.projectionDelta, a.options.visualElement?.props.style?.display !== "contents" && (r === !0 && a.options.layoutScroll && a.scroll && a !== a.root && (oy(e.x, -a.scroll.offset.x), oy(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, ry(e, o)), r && (r.path?.[s] || r) !== a && Xv(a.latestValues) && ly(e, a.latestValues, a.layout?.layoutBox));
- t.x < ay && t.x > iy && (t.x = 1), t.y < ay && t.y > iy && (t.y = 1);
+ for (let s = 0; s < i; s++) a = n[s], o = a.projectionDelta, a.options.visualElement?.props.style?.display !== "contents" && (r === !0 && a.options.layoutScroll && a.scroll && a !== a.root && (uy(e.x, -a.scroll.offset.x), uy(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, sy(e, o)), r && (r.path?.[s] || r) !== a && ey(a.latestValues) && py(e, a.latestValues, a.layout?.layoutBox));
+ t.x < ly && t.x > cy && (t.x = 1), t.y < ly && t.y > cy && (t.y = 1);
}
-function oy(e, t) {
+function uy(e, t) {
e.min += t, e.max += t;
}
-function sy(e, t, n, r, i = .5) {
- ny(e, t, n, ng(e.min, e.max, i), r);
+function dy(e, t, n, r, i = .5) {
+ oy(e, t, n, og(e.min, e.max, i), r);
}
-function cy(e, t) {
+function fy(e, t) {
return typeof e == "string" ? parseFloat(e) / 100 * (t.max - t.min) : e;
}
-function ly(e, t, n) {
+function py(e, t, n) {
let r = n ?? e;
- sy(e.x, cy(t.x, r.x), t.scaleX, t.scale, t.originX), sy(e.y, cy(t.y, r.y), t.scaleY, t.scale, t.originY);
+ dy(e.x, fy(t.x, r.x), t.scaleX, t.scale, t.originX), dy(e.y, fy(t.y, r.y), t.scaleY, t.scale, t.originY);
}
// node_modules/motion-dom/dist/es/projection/utils/measure.mjs
-function uy(e, t) {
- return Kv(one(e.getBoundingClientRect(), t));
+function my(e, t) {
+ return Xv(sne(e.getBoundingClientRect(), t));
}
-function cne(e, t, n) {
- let r = uy(e, n), { scroll: i } = t;
- return i && (oy(r.x, i.offset.x), oy(r.y, i.offset.y)), r;
+function lne(e, t, n) {
+ let r = my(e, n), { scroll: i } = t;
+ return i && (uy(r.x, i.offset.x), uy(r.y, i.offset.y)), r;
}
-var lne = () => ({
+var une = () => ({
x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
y: document.documentElement.scrollTop || document.body?.scrollTop || 0
-}), une = {}, dne = (e) => Av(e) ? ine : Qte, fne = class {
+}), dne = {}, fne = (e) => Pv(e) ? ane : $te, pne = class {
constructor(e, t) {
- this.effect = e, this.current = t, this.KeyframeResolver = Cv;
+ this.effect = e, this.current = t, this.KeyframeResolver = Dv;
}
getValue(e) {
return this.effect.get(this.current, e);
@@ -18638,207 +18651,207 @@ var lne = () => ({
this.effect.flush(this.current);
}
measureViewportBox() {
- return uy(this.current);
+ return my(this.current);
}
getProps() {
- return une;
+ return dne;
}
};
-function pne(e, t, n, r) {
- if (jv.current?.track(e), r) return Dv((e) => r.getValue(e, null), t, n, r);
- let i = dne(e);
- return Ov(i, e, t, n, new fne(i, e));
+function mne(e, t, n, r) {
+ if (Fv.current?.track(e), r) return jv((e) => r.getValue(e, null), t, n, r);
+ let i = fne(e);
+ return Mv(i, e, t, n, new pne(i, e));
}
// node_modules/motion-dom/dist/es/effects/prop/index.mjs
-var mne = /*@__PURE__*/ Fv((e, t, n, r) => t.set(n, r, () => {
+var hne = /*@__PURE__*/ zv((e, t, n, r) => t.set(n, r, () => {
e[n] = r.get();
}), {
- test: (e) => Cm(e),
+ test: (e) => Om(e),
read: (e, t) => {
let n = e[t];
return typeof n == "string" || typeof n == "number" ? n : void 0;
}
-}), { schedule: dy, cancel: hne } = /* @__PURE__ */ fg(queueMicrotask, !1);
+}), { schedule: hy, cancel: gne } = /* @__PURE__ */ gg(queueMicrotask, !1);
// node_modules/motion-dom/dist/es/animation/animate/single-value.mjs
-function fy(e, t, n) {
- let r = gv(e) ? e : sv(e);
- return r.start(uv("", r, t, n)), r.animation;
+function gy(e, t, n) {
+ let r = bv(e) ? e : dv(e);
+ return r.start(mv("", r, t, n)), r.animation;
}
// node_modules/motion-dom/dist/es/projection/styles/scale-correction.mjs
-var py = {}, my = {
+var _y = {}, vy = {
value: null,
addProjectionMetrics: null,
countProjection: void 0
};
// node_modules/motion-dom/dist/es/utils/delay.mjs
-function gne(e, t) {
- let n = rh.now();
- e = Nv(e);
+function _ne(e, t) {
+ let n = ch.now();
+ e = Lv(e);
let r = ({ timestamp: i }) => {
let a = i - n;
- a >= t && (mg(r), e(a - t));
+ a >= t && (vg(r), e(a - t));
};
- return pg.setup(r, !0), Mv(() => mg(r));
+ return _g.setup(r, !0), Iv(() => vg(r));
}
// node_modules/motion-dom/dist/es/utils/is-ref-object.mjs
-function _ne(e) {
+function vne(e) {
return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
}
// node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs
-function vne(e) {
- return Av(e) && e.tagName === "svg";
+function yne(e) {
+ return Pv(e) && e.tagName === "svg";
}
// node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs
-function hy(e) {
- return gv(e) ? e.get() : e;
+function yy(e) {
+ return bv(e) ? e.get() : e;
}
// node_modules/motion-dom/dist/es/value/utils/as-number.mjs
-var gy = (e) => typeof e == "number" ? e : parseFloat(e), yne = wv.length, bne = (e) => typeof e == "number" || Oh.test(e);
-function xne(e, t, n, r, i, a) {
- i ? (e.opacity = ng(0, n.opacity ?? 1, Sne(r)), e.opacityExit = ng(t.opacity ?? 1, 0, Cne(r))) : a && (e.opacity = ng(t.opacity ?? 1, n.opacity ?? 1, r));
- for (let i = 0; i < yne; i++) {
- let a = wv[i], o = _y(t, a), s = _y(n, a);
- (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || bne(o) === bne(s) ? (e[a] = Math.max(ng(gy(o), gy(s), r), 0), (Dh.test(s) || Dh.test(o)) && (e[a] += "%")) : e[a] = s);
+var by = (e) => typeof e == "number" ? e : parseFloat(e), bne = Ov.length, xne = (e) => typeof e == "number" || Nh.test(e);
+function Sne(e, t, n, r, i, a) {
+ i ? (e.opacity = og(0, n.opacity ?? 1, Cne(r)), e.opacityExit = og(t.opacity ?? 1, 0, wne(r))) : a && (e.opacity = og(t.opacity ?? 1, n.opacity ?? 1, r));
+ for (let i = 0; i < bne; i++) {
+ let a = Ov[i], o = xy(t, a), s = xy(n, a);
+ (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || xne(o) === xne(s) ? (e[a] = Math.max(og(by(o), by(s), r), 0), (Mh.test(s) || Mh.test(o)) && (e[a] += "%")) : e[a] = s);
}
- for (let i = 0; i < Yv.length; i++) {
- let a = Yv[i];
- (t[a] || n[a]) && (e[a] = ng(t[a] || 0, n[a] || 0, r));
+ for (let i = 0; i < $v.length; i++) {
+ let a = $v[i];
+ (t[a] || n[a]) && (e[a] = og(t[a] || 0, n[a] || 0, r));
}
}
-function _y(e, t) {
+function xy(e, t) {
return e[t] === void 0 ? e.borderRadius : e[t];
}
-var Sne = /*@__PURE__*/ vy(0, .5, Um), Cne = /*@__PURE__*/ vy(.5, .95, Em);
-function vy(e, t, n) {
- return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ Om(e, t, r));
+var Cne = /*@__PURE__*/ Sy(0, .5, Jm), wne = /*@__PURE__*/ Sy(.5, .95, jm);
+function Sy(e, t, n) {
+ return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ Nm(e, t, r));
}
// node_modules/motion-dom/dist/es/projection/geometry/copy.mjs
-function yy(e, t) {
+function Cy(e, t) {
e.min = t.min, e.max = t.max;
}
-function by(e, t) {
- yy(e.x, t.x), yy(e.y, t.y);
+function wy(e, t) {
+ Cy(e.x, t.x), Cy(e.y, t.y);
}
-function xy(e, t) {
+function Ty(e, t) {
e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
}
// node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs
-var wne = .9999, Tne = 1.0001, Ene = -.01, Dne = .01;
-function Sy(e) {
+var Tne = .9999, Ene = 1.0001, Dne = -.01, One = .01;
+function Ey(e) {
return e.max - e.min;
}
-function One(e, t, n) {
+function kne(e, t, n) {
return Math.abs(e - t) <= n;
}
-function Cy(e, t, n, r = .5) {
- e.origin = r, e.originPoint = ng(t.min, t.max, e.origin), e.scale = Sy(n) / Sy(t), e.translate = ng(n.min, n.max, e.origin) - e.originPoint, (e.scale >= wne && e.scale <= Tne || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Ene && e.translate <= Dne || isNaN(e.translate)) && (e.translate = 0);
+function Dy(e, t, n, r = .5) {
+ e.origin = r, e.originPoint = og(t.min, t.max, e.origin), e.scale = Ey(n) / Ey(t), e.translate = og(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Tne && e.scale <= Ene || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Dne && e.translate <= One || isNaN(e.translate)) && (e.translate = 0);
}
-function wy(e, t, n, r) {
- Cy(e.x, t.x, n.x, r?.originX), Cy(e.y, t.y, n.y, r?.originY);
+function Oy(e, t, n, r) {
+ Dy(e.x, t.x, n.x, r?.originX), Dy(e.y, t.y, n.y, r?.originY);
}
-function Ty(e, t, n, r = 0) {
- e.min = (r ? ng(n.min, n.max, r) : n.min) + t.min, e.max = e.min + Sy(t);
+function ky(e, t, n, r = 0) {
+ e.min = (r ? og(n.min, n.max, r) : n.min) + t.min, e.max = e.min + Ey(t);
}
-function kne(e, t, n, r) {
- Ty(e.x, t.x, n.x, r?.x), Ty(e.y, t.y, n.y, r?.y);
+function Ane(e, t, n, r) {
+ ky(e.x, t.x, n.x, r?.x), ky(e.y, t.y, n.y, r?.y);
}
-function Ey(e, t, n, r = 0) {
- let i = r ? ng(n.min, n.max, r) : n.min;
- e.min = t.min - i, e.max = e.min + Sy(t);
+function Ay(e, t, n, r = 0) {
+ let i = r ? og(n.min, n.max, r) : n.min;
+ e.min = t.min - i, e.max = e.min + Ey(t);
}
-function Dy(e, t, n, r) {
- Ey(e.x, t.x, n.x, r?.x), Ey(e.y, t.y, n.y, r?.y);
+function jy(e, t, n, r) {
+ Ay(e.x, t.x, n.x, r?.x), Ay(e.y, t.y, n.y, r?.y);
}
// node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs
-function Oy(e, t, n, r, i) {
- return e -= t, e = ey(e, 1 / n, r), i !== void 0 && (e = ey(e, 1 / i, r)), e;
+function My(e, t, n, r, i) {
+ return e -= t, e = iy(e, 1 / n, r), i !== void 0 && (e = iy(e, 1 / i, r)), e;
}
-function Ane(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
- if (Dh.test(t) && (t = parseFloat(t), t = ng(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
- let s = ng(a.min, a.max, r);
- e === a && (s -= t), e.min = Oy(e.min, t, n, s, i), e.max = Oy(e.max, t, n, s, i);
+function jne(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
+ if (Mh.test(t) && (t = parseFloat(t), t = og(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
+ let s = og(a.min, a.max, r);
+ e === a && (s -= t), e.min = My(e.min, t, n, s, i), e.max = My(e.max, t, n, s, i);
}
-function ky(e, t, [n, r, i], a, o) {
- Ane(e, t[n], t[r], t[i], t.scale, a, o);
+function Ny(e, t, [n, r, i], a, o) {
+ jne(e, t[n], t[r], t[i], t.scale, a, o);
}
-var jne = [
+var Mne = [
"x",
"scaleX",
"originX"
-], Mne = [
+], Nne = [
"y",
"scaleY",
"originY"
];
-function Ay(e, t, n, r) {
- ky(e.x, t, jne, n?.x, r?.x), ky(e.y, t, Mne, n?.y, r?.y);
+function Py(e, t, n, r) {
+ Ny(e.x, t, Mne, n?.x, r?.x), Ny(e.y, t, Nne, n?.y, r?.y);
}
// node_modules/motion-dom/dist/es/projection/geometry/round.mjs
-var jy = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), My = jy("applewebkit/") && !jy("chrome/") ? Math.round : Em;
-function Ny(e) {
- e.min = My(e.min), e.max = My(e.max);
+var Fy = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), Iy = Fy("applewebkit/") && !Fy("chrome/") ? Math.round : jm;
+function Ly(e) {
+ e.min = Iy(e.min), e.max = Iy(e.max);
}
-function Nne(e) {
- Ny(e.x), Ny(e.y);
+function Pne(e) {
+ Ly(e.x), Ly(e.y);
}
// node_modules/motion-dom/dist/es/projection/geometry/models.mjs
-var Py = () => ({
+var Ry = () => ({
translate: 0,
scale: 1,
origin: 0,
originPoint: 0
-}), Fy = () => ({
- x: Py(),
- y: Py()
-}), Iy = () => ({
+}), zy = () => ({
+ x: Ry(),
+ y: Ry()
+}), By = () => ({
min: 0,
max: 0
-}), Ly = () => ({
- x: Iy(),
- y: Iy()
+}), Vy = () => ({
+ x: By(),
+ y: By()
});
// node_modules/motion-dom/dist/es/projection/geometry/utils.mjs
-function Ry(e) {
+function Hy(e) {
return e.translate === 0 && e.scale === 1;
}
-function zy(e) {
- return Ry(e.x) && Ry(e.y);
+function Uy(e) {
+ return Hy(e.x) && Hy(e.y);
}
-function By(e, t) {
+function Wy(e, t) {
return e.min === t.min && e.max === t.max;
}
-function Pne(e, t) {
- return By(e.x, t.x) && By(e.y, t.y);
+function Fne(e, t) {
+ return Wy(e.x, t.x) && Wy(e.y, t.y);
}
-function Vy(e, t) {
+function Gy(e, t) {
return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);
}
-function Hy(e, t) {
- return Vy(e.x, t.x) && Vy(e.y, t.y);
+function Ky(e, t) {
+ return Gy(e.x, t.x) && Gy(e.y, t.y);
}
-function Uy(e) {
- return Sy(e.x) / Sy(e.y);
+function qy(e) {
+ return Ey(e.x) / Ey(e.y);
}
-function Wy(e, t) {
+function Jy(e, t) {
return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
}
// node_modules/motion-dom/dist/es/projection/shared/stack.mjs
-var Fne = class {
+var Ine = class {
constructor() {
this.members = [];
}
add(e) {
- vm(this.members, e);
+ Cm(this.members, e);
for (let t = this.members.length - 1; t >= 0; t--) {
let n = this.members[t];
if (n === e || n === this.lead || n === this.prevLead) continue;
let r = n.instance;
- r && r.isConnected !== !1 || n.snapshot || (ym(this.members, n), n.unmount());
+ r && r.isConnected !== !1 || n.snapshot || (wm(this.members, n), n.unmount());
}
e.scheduleRender();
}
remove(e) {
- if (ym(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
+ if (wm(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
let e = this.members[this.members.length - 1];
e && this.promote(e);
}
@@ -18871,39 +18884,39 @@ var Fne = class {
}
};
// node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs
-function Gy(e, t) {
+function Yy(e, t) {
return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
}
-var Ky = { correct: (e, t) => {
+var Xy = { correct: (e, t) => {
if (!t.target) return e;
if (typeof e == "string") {
- if (Oh.test(e)) e = parseFloat(e);
+ if (Nh.test(e)) e = parseFloat(e);
else return e;
}
- return `${Gy(e, t.target.x)}% ${Gy(e, t.target.y)}%`;
-} }, Ine = {
- borderRadius: /* @__PURE__ */ Object.assign({}, Ky, { applyTo: /* @__PURE__ */ wv.slice() }),
- borderTopLeftRadius: Ky,
- borderTopRightRadius: Ky,
- borderBottomLeftRadius: Ky,
- borderBottomRightRadius: Ky,
+ return `${Yy(e, t.target.x)}% ${Yy(e, t.target.y)}%`;
+} }, Lne = {
+ borderRadius: /* @__PURE__ */ Object.assign({}, Xy, { applyTo: /* @__PURE__ */ Ov.slice() }),
+ borderTopLeftRadius: Xy,
+ borderTopRightRadius: Xy,
+ borderBottomLeftRadius: Xy,
+ borderBottomRightRadius: Xy,
boxShadow: { correct: (e, { treeScale: t, projectionDelta: n }) => {
- let r = e, i = Qh.parse(e);
+ let r = e, i = rg.parse(e);
if (i.length > 5) return r;
- let a = Qh.createTransformer(e), o = typeof i[0] == "number" ? 0 : 1, s = n.x.scale * t.x, c = n.y.scale * t.y;
+ let a = rg.createTransformer(e), o = typeof i[0] == "number" ? 0 : 1, s = n.x.scale * t.x, c = n.y.scale * t.y;
i[0 + o] /= s, i[1 + o] /= c;
- let l = ng(s, c, .5);
+ let l = og(s, c, .5);
return typeof i[2 + o] == "number" && (i[2 + o] /= l), typeof i[3 + o] == "number" && (i[3 + o] /= l), a(i);
} }
};
// node_modules/motion-dom/dist/es/projection/styles/transform.mjs
-function Lne(e, t, n) {
+function Rne(e, t, n) {
let r = "", i = e.x.translate / t.x, a = e.y.translate / t.y, o = n?.z || 0;
if ((i || a || o) && (r = `translate3d(${i}px, ${a}px, ${o}px) `), (t.x !== 1 || t.y !== 1) && (r += `scale(${1 / t.x}, ${1 / t.y}) `), n) {
let { transformPerspective: e } = n;
e && (r = `perspective(${e}px) ${r}`);
- for (let e = 0; e < Yv.length; e++) {
- let t = Yv[e], i = n[t];
+ for (let e = 0; e < $v.length; e++) {
+ let t = $v[e], i = n[t];
i && (r += `${t}(${i}deg) `), !e && n.pathRotation && (r += `rotate(${n.pathRotation}deg) `);
}
}
@@ -18911,62 +18924,62 @@ function Lne(e, t, n) {
return (s !== 1 || c !== 1) && (r += `scale(${s}, ${c})`), r || "none";
}
// node_modules/motion-dom/dist/es/projection/utils/each-axis.mjs
-function qy(e) {
+function Zy(e) {
return [e("x"), e("y")];
}
// node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.mjs
-var Rne = (e, t) => e.depth - t.depth, zne = class {
+var zne = (e, t) => e.depth - t.depth, Bne = class {
constructor() {
this.children = [], this.isDirty = !1;
}
add(e) {
- vm(this.children, e), this.isDirty = !0;
+ Cm(this.children, e), this.isDirty = !0;
}
remove(e) {
- ym(this.children, e), this.isDirty = !0;
+ wm(this.children, e), this.isDirty = !0;
}
forEach(e) {
- this.isDirty && this.children.sort(Rne), this.isDirty = !1, this.children.forEach(e);
+ this.isDirty && this.children.sort(zne), this.isDirty = !1, this.children.forEach(e);
}
-}, Jy = {
+}, Qy = {
hasAnimatedSinceResize: !0,
hasEverUpdated: !1
-}, Yy = [
+}, $y = [
"z",
"skew",
"skewZ"
-], Bne = 1e3, Vne = 0;
-function Xy(e, t, n, r) {
+], Vne = 1e3, Hne = 0;
+function eb(e, t, n, r) {
let { latestValues: i } = t;
i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0));
}
-var Zy = (e) => e.instance && G_.get(e.instance)?.demote() && e.resetSkewAndRotation();
-function Qy(e) {
+var tb = (e) => e.instance && Y_.get(e.instance)?.demote() && e.resetSkewAndRotation();
+function nb(e) {
if (e.hasCheckedOptimisedAppear = !0, e.root === e) return;
let { visualElement: t } = e.options;
if (!t) return;
- let n = yv(t);
+ let n = Cv(t);
if (window.MotionHasOptimisedAnimation(n, "transform")) {
let { layout: t, layoutId: r } = e.options;
- window.MotionCancelOptimisedAnimation(n, "transform", pg, !(t || r));
+ window.MotionCancelOptimisedAnimation(n, "transform", _g, !(t || r));
}
let { parent: r } = e;
- r && !r.hasCheckedOptimisedAppear && Qy(r);
+ r && !r.hasCheckedOptimisedAppear && nb(r);
}
-function $y(e) {
- if (e) return e.options.allowProjection === !1 ? $y(e.parent) : e.projection;
+function rb(e) {
+ if (e) return e.options.allowProjection === !1 ? rb(e.parent) : e.projection;
}
-function eb({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
- return Object.assign(py, {
- ...Ine,
- ...py
+function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
+ return Object.assign(_y, {
+ ...Lne,
+ ..._y
}), class {
static create(e, t, n) {
- let { layoutId: r, layout: i, drag: a, dragConstraints: o, layoutScroll: s, layoutRoot: c, layoutAnchor: l, layoutCrossfade: u } = t, d = e.projection = new this(e.latestValues, t["data-framer-portal-id"] ? void 0 : $y(e.parent));
+ let { layoutId: r, layout: i, drag: a, dragConstraints: o, layoutScroll: s, layoutRoot: c, layoutAnchor: l, layoutCrossfade: u } = t, d = e.projection = new this(e.latestValues, t["data-framer-portal-id"] ? void 0 : rb(e.parent));
d.setOptions({
layoutId: r,
layout: i,
- alwaysMeasureLayout: !!a || o && _ne(o),
+ alwaysMeasureLayout: !!a || o && vne(o),
visualElement: e,
animationType: typeof i == "string" ? i : "both",
initialPromotionConfig: n,
@@ -18979,19 +18992,19 @@ function eb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
f && !d.root.isUpdateBlocked() && (f.willUpdate(), f.scheduleCheckAfterUnmount());
}
constructor(e = {}, n = t?.()) {
- this.id = Vne++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
+ this.id = Hne++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
x: 1,
y: 1
}, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
}, this.updateProjection = () => {
- this.projectionUpdateScheduled = !1, this.nodes.forEach(Wne), this.nodes.forEach(Qne), this.nodes.forEach($ne), this.nodes.forEach(Gne), my.countProjection?.();
+ this.projectionUpdateScheduled = !1, this.nodes.forEach(Gne), this.nodes.forEach($ne), this.nodes.forEach(ere), this.nodes.forEach(Kne), vy.countProjection?.();
}, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = e, this.root = n ? n.root || n : this, this.path = n ? [...n.path, n] : [], this.parent = n, this.depth = n ? n.depth + 1 : 0;
for (let e = 0; e < this.path.length; e++) this.path[e].shouldResetTransform = !0;
- this.root === this && (this.nodes = new zne());
+ this.root === this && (this.nodes = new Bne());
}
addEventListener(e, t) {
- return this.eventHandlers.has(e) || this.eventHandlers.set(e, new km()), this.eventHandlers.get(e).add(t);
+ return this.eventHandlers.has(e) || this.eventHandlers.set(e, new Pm()), this.eventHandlers.get(e).add(t);
}
notifyListeners(e, ...t) {
this.eventHandlers.get(e)?.notify(...t);
@@ -19001,15 +19014,15 @@ function eb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
mount(t) {
if (this.instance) return;
- this.isSVG = Av(t) && !vne(t), this.instance = t;
+ this.isSVG = Pv(t) && !yne(t), this.instance = t;
let { layoutId: n, layout: r, visualElement: i } = this.options;
if (i && !i.current && i.mount(t), this.root.nodes.add(this), this.parent?.children.add(this), this.root.hasTreeAnimated && (r || n) && (this.isLayoutDirty = !0), e) {
let n, r = 0, i = () => this.root.updateBlockedByResize = !1;
- pg.read(() => {
+ _g.read(() => {
r = window.innerWidth;
}), e(t, () => {
let e = window.innerWidth;
- e !== r && (r = e, this.root.updateBlockedByResize = !0, n?.(), n = gne(i, 250), Jy.hasAnimatedSinceResize && (Jy.hasAnimatedSinceResize = !1, this.nodes.forEach(rb)));
+ e !== r && (r = e, this.root.updateBlockedByResize = !0, n?.(), n = _ne(i, 250), Qy.hasAnimatedSinceResize && (Qy.hasAnimatedSinceResize = !1, this.nodes.forEach(sb)));
});
}
n && this.root.registerSharedNode(n, this), this.addLayoutListener();
@@ -19021,21 +19034,21 @@ function eb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.target = void 0, this.relativeTarget = void 0;
return;
}
- let a = this.options.transition || n.getDefaultTransition() || rre, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = n.getProps(), c = !this.targetLayout || !Hy(this.targetLayout, i), l = !t && r;
+ let a = this.options.transition || n.getDefaultTransition() || ire, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = n.getProps(), c = !this.targetLayout || !Ky(this.targetLayout, i), l = !t && r;
if (this.options.layoutRoot || this.resumeFrom || l || t && (c || !this.currentAnimation)) {
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
let t = {
- ...lv(a, "layout"),
+ ...pv(a, "layout"),
onPlay: o,
onComplete: s
};
(n.shouldReduceMotion || this.options.layoutRoot) && (t.delay = 0, t.type = !1), this.startAnimation(t), this.setAnimationOrigin(e, l, t.path);
- } else t || rb(this), this.isLead() && this.options.onExitComplete?.();
+ } else t || sb(this), this.isLead() && this.options.onExitComplete?.();
this.targetLayout = i;
}));
}
unmount() {
- this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this), this.getStack()?.remove(this), this.parent?.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), this.hasLayoutListener = !1, mg(this.updateProjection);
+ this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this), this.getStack()?.remove(this), this.parent?.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), this.hasLayoutListener = !1, vg(this.updateProjection);
}
blockUpdate() {
this.updateManuallyBlocked = !0;
@@ -19047,7 +19060,7 @@ function eb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
return this.updateManuallyBlocked || this.updateBlockedByResize;
}
startUpdate() {
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes?.forEach(ere), this.animationId++);
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes?.forEach(tre), this.animationId++);
}
getTransformTemplate() {
let { visualElement: e } = this.options;
@@ -19058,11 +19071,11 @@ function eb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.options.onExitComplete?.();
return;
}
- if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && Qy(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
- Zy(this), this.isLayoutDirty = !0;
+ if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && nb(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
+ tb(this), this.isLayoutDirty = !0;
for (let e = 0; e < this.path.length; e++) {
let t = this.path[e];
- t.shouldResetTransform = !0, Zy(t), (typeof t.latestValues.x == "string" || typeof t.latestValues.y == "string") && (t.isLayoutDirty = !0), t.updateScroll("snapshot"), t.options.layoutRoot && t.willUpdate(!1), t.isAnimationBlocked && (t.dragSnapshot ||= t.measure(), this.dragAncestor = t);
+ t.shouldResetTransform = !0, tb(t), (typeof t.latestValues.x == "string" || typeof t.latestValues.y == "string") && (t.isLayoutDirty = !0), t.updateScroll("snapshot"), t.options.layoutRoot && t.willUpdate(!1), t.isAnimationBlocked && (t.dragSnapshot ||= t.measure(), this.dragAncestor = t);
}
let { layoutId: t, layout: n } = this.options;
if (t === void 0 && !n) return;
@@ -19072,39 +19085,39 @@ function eb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
update() {
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
let e = this.updateBlockedByResize;
- this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(qne), this.nodes.forEach(tb);
+ this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(Jne), this.nodes.forEach(ab);
return;
}
if (this.animationId <= this.animationCommitId) {
- this.nodes.forEach(nb);
+ this.nodes.forEach(ob);
return;
}
- this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Yne), this.nodes.forEach(Xne), this.nodes.forEach(Zne), this.nodes.forEach(Hne), this.nodes.forEach(Une)) : this.nodes.forEach(nb), this.clearAllSnapshots();
- let e = rh.now();
- eh.delta = bm(0, 1e3 / 60, e - eh.timestamp), eh.timestamp = e, eh.isProcessing = !0, hg.update.process(eh), hg.preRender.process(eh), hg.render.process(eh), eh.isProcessing = !1;
+ this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Xne), this.nodes.forEach(Zne), this.nodes.forEach(Qne), this.nodes.forEach(Une), this.nodes.forEach(Wne)) : this.nodes.forEach(ob), this.clearAllSnapshots();
+ let e = ch.now();
+ ah.delta = Tm(0, 1e3 / 60, e - ah.timestamp), ah.timestamp = e, ah.isProcessing = !0, yg.update.process(ah), yg.preRender.process(ah), yg.render.process(ah), ah.isProcessing = !1;
}
didUpdate() {
- this.updateScheduled || (this.updateScheduled = !0, dy.read(this.scheduleUpdate));
+ this.updateScheduled || (this.updateScheduled = !0, hy.read(this.scheduleUpdate));
}
clearAllSnapshots() {
- this.nodes.forEach(Kne), this.sharedNodes.forEach((e, t) => e.members.length ? e.removeLeadSnapshot() : this.sharedNodes.delete(t));
+ this.nodes.forEach(qne), this.sharedNodes.forEach((e, t) => e.members.length ? e.removeLeadSnapshot() : this.sharedNodes.delete(t));
}
scheduleUpdateProjection() {
- this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, pg.preRender(this.updateProjection, !1, !0));
+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, _g.preRender(this.updateProjection, !1, !0));
}
scheduleCheckAfterUnmount() {
- pg.postRender(() => {
+ _g.postRender(() => {
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
});
}
updateSnapshot() {
- !this.snapshot && this.instance && (this.snapshot = this.measure(), this.snapshot && !Sy(this.snapshot.measuredBox.x) && !Sy(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
+ !this.snapshot && this.instance && (this.snapshot = this.measure(), this.snapshot && !Ey(this.snapshot.measuredBox.x) && !Ey(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
}
updateLayout() {
if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty)) return;
if (this.resumeFrom && !this.resumeFrom.instance) for (let e = 0; e < this.path.length; e++) this.path[e].updateScroll();
let e = this.layout;
- this.layout = this.measure(!1), this.layoutCorrected ||= Ly(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
+ this.layout = this.measure(!1), this.layoutCorrected ||= Vy(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
let { visualElement: t } = this.options;
t?.notify("LayoutMeasure", this.layout.layoutBox, e?.layoutBox);
}
@@ -19124,13 +19137,13 @@ function eb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
resetTransform() {
if (!i) return;
let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout;
- e && Zy(this);
- let t = this.projectionDelta && !zy(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
- e && this.instance && (t || Xv(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
+ e && tb(this);
+ let t = this.projectionDelta && !Uy(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
+ e && this.instance && (t || ey(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
}
measure(e = !0) {
let t = this.measurePageBox(), n = this.removeElementScroll(t);
- return e && (n = this.removeTransform(n)), Nne(n), {
+ return e && (n = this.removeTransform(n)), Pne(n), {
animationId: this.root.animationId,
measuredBox: t,
layoutBox: n,
@@ -19140,42 +19153,42 @@ function eb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
measurePageBox() {
let { visualElement: e } = this.options;
- if (!e) return Ly();
+ if (!e) return Vy();
let t = e.measureViewportBox();
- if (!(this.scroll?.wasRoot || this.path.some(ire))) {
+ if (!(this.scroll?.wasRoot || this.path.some(are))) {
let { scroll: e } = this.root;
- e && (oy(t.x, e.offset.x), oy(t.y, e.offset.y));
+ e && (uy(t.x, e.offset.x), uy(t.y, e.offset.y));
}
return t;
}
removeElementScroll(e) {
- let t = Ly();
- if (by(t, e), this.scroll?.wasRoot) return t;
+ let t = Vy();
+ if (wy(t, e), this.scroll?.wasRoot) return t;
for (let n = 0; n < this.path.length; n++) {
let r = this.path[n], { scroll: i, options: a } = r;
- r !== this.root && i && a.layoutScroll && (i.wasRoot && by(t, e), oy(t.x, i.offset.x), oy(t.y, i.offset.y));
+ r !== this.root && i && a.layoutScroll && (i.wasRoot && wy(t, e), uy(t.x, i.offset.x), uy(t.y, i.offset.y));
}
return t;
}
applyTransform(e, t = !1, n, r, i = 0) {
- let a = n || Ly();
- by(a, e);
+ let a = n || Vy();
+ wy(a, e);
for (let e = i; e < this.path.length; e++) {
let n = this.path[e];
- !t && n.options.layoutScroll && n.scroll && n !== n.root && (oy(a.x, -n.scroll.offset.x), oy(a.y, -n.scroll.offset.y)), Xv(n.latestValues) && ly(a, n.latestValues, n.layout?.layoutBox);
+ !t && n.options.layoutScroll && n.scroll && n !== n.root && (uy(a.x, -n.scroll.offset.x), uy(a.y, -n.scroll.offset.y)), ey(n.latestValues) && py(a, n.latestValues, n.layout?.layoutBox);
}
- return !r && Xv(this.latestValues) && ly(a, this.latestValues, this.layout?.layoutBox), a;
+ return !r && ey(this.latestValues) && py(a, this.latestValues, this.layout?.layoutBox), a;
}
removeTransform(e) {
- let t = Ly();
- by(t, e);
+ let t = Vy();
+ wy(t, e);
for (let e = 0; e < this.path.length; e++) {
let n = this.path[e];
- if (!Xv(n.latestValues)) continue;
+ if (!ey(n.latestValues)) continue;
let r;
- n.instance && (Jv(n.latestValues) && n.updateSnapshot(), r = Ly(), by(r, n.measurePageBox())), Ay(t, n.latestValues, n.snapshot?.layoutBox, r);
+ n.instance && (Qv(n.latestValues) && n.updateSnapshot(), r = Vy(), wy(r, n.measurePageBox())), Py(t, n.latestValues, n.snapshot?.layoutBox, r);
}
- return Xv(this.latestValues) && Ay(t, this.latestValues), t;
+ return ey(this.latestValues) && Py(t, this.latestValues), t;
}
setTargetDelta(e) {
this.targetDelta = e, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -19191,7 +19204,7 @@ function eb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
}
forceRelativeParentToResolveTarget() {
- this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== eh.timestamp && this.relativeParent.resolveTargetDelta(!0);
+ this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== ah.timestamp && this.relativeParent.resolveTargetDelta(!0);
}
resolveTargetDelta(e = !1) {
let t = this.getLead();
@@ -19200,32 +19213,32 @@ function eb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
if (!(e || n && this.isSharedProjectionDirty || this.isProjectionDirty || this.parent?.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize)) return;
let { layout: r, layoutId: i } = this.options;
if (!this.layout || !(r || i)) return;
- this.resolvedRelativeTargetAt = eh.timestamp;
+ this.resolvedRelativeTargetAt = ah.timestamp;
let a = this.getClosestProjectingParent();
- !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), (this.relativeTarget || this.targetDelta) && (this.target || (this.target = Ly(), this.targetWithTransforms = Ly()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), kne(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target, !0) : by(this.target, this.layout.layoutBox), ry(this.target, this.targetDelta)) : by(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && (!a.resumingFrom == !this.resumingFrom || a.options.layoutRoot && !a.resumingFrom) && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), my.countProjection?.(1));
+ !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), (this.relativeTarget || this.targetDelta) && (this.target || (this.target = Vy(), this.targetWithTransforms = Vy()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Ane(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target, !0) : wy(this.target, this.layout.layoutBox), sy(this.target, this.targetDelta)) : wy(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && (!a.resumingFrom == !this.resumingFrom || a.options.layoutRoot && !a.resumingFrom) && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), vy.countProjection?.(1));
}
getClosestProjectingParent() {
- if (!(!this.parent || Jv(this.parent.latestValues) || Qv(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
+ if (!(!this.parent || Qv(this.parent.latestValues) || ny(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
}
isProjecting() {
return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
}
createRelativeTarget(e, t, n) {
- this.relativeParent = e, this.forceRelativeParentToResolveTarget(), this.relativeTarget = Ly(), this.relativeTargetOrigin = Ly(), Dy(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), by(this.relativeTarget, this.relativeTargetOrigin);
+ this.relativeParent = e, this.forceRelativeParentToResolveTarget(), this.relativeTarget = Vy(), this.relativeTargetOrigin = Vy(), jy(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), wy(this.relativeTarget, this.relativeTargetOrigin);
}
removeRelativeTarget() {
this.relativeParent = this.relativeTarget = void 0;
}
calcProjection() {
let e = this.getLead(), t = !!this.resumingFrom || this !== e, n = !0;
- if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === eh.timestamp && (n = !1), n) return;
+ if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === ah.timestamp && (n = !1), n) return;
let { layout: r, layoutId: i } = this.options;
if (this.isTreeAnimating = !!(this.parent?.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(r || i)) return;
- by(this.layoutCorrected, this.layout.layoutBox);
+ wy(this.layoutCorrected, this.layout.layoutBox);
let a = this.treeScale.x, o = this.treeScale.y;
- sne(this.layoutCorrected, this.treeScale, this.path, t && (e.relativeTarget && !e.relativeParent.resumingFrom ? e.relativeParent : !0)), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = Ly());
+ cne(this.layoutCorrected, this.treeScale, this.path, t && (e.relativeTarget && !e.relativeParent.resumingFrom ? e.relativeParent : !0)), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = Vy());
let { target: s } = e;
- s ? (!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (xy(this.prevProjectionDelta.x, this.projectionDelta.x), xy(this.prevProjectionDelta.y, this.projectionDelta.y)), wy(this.projectionDelta, this.layoutCorrected, s, this.latestValues), this.treeScale.x === a && this.treeScale.y === o && Wy(this.projectionDelta.x, this.prevProjectionDelta.x) && Wy(this.projectionDelta.y, this.prevProjectionDelta.y) || (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), my.countProjection?.(2)) : this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
+ s ? (!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Ty(this.prevProjectionDelta.x, this.projectionDelta.x), Ty(this.prevProjectionDelta.y, this.projectionDelta.y)), Oy(this.projectionDelta, this.layoutCorrected, s, this.latestValues), this.treeScale.x === a && this.treeScale.y === o && Jy(this.projectionDelta.x, this.prevProjectionDelta.x) && Jy(this.projectionDelta.y, this.prevProjectionDelta.y) || (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), vy.countProjection?.(2)) : this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
}
hide() {
this.isVisible = !1;
@@ -19237,22 +19250,22 @@ function eb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.options.visualElement?.scheduleRender(), e && this.getStack()?.scheduleRender(), this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
}
createProjectionDeltas() {
- this.prevProjectionDelta = Fy(), this.projectionDelta = Fy(), this.projectionDeltaWithTransform = Fy();
+ this.prevProjectionDelta = zy(), this.projectionDelta = zy(), this.projectionDeltaWithTransform = zy();
}
setAnimationOrigin(e, t = !1, n) {
- let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = Fy();
+ let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = zy();
this.relativeParent && this.relativeParent.options.layoutRoot || (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !t;
- let s = Ly(), c = r?.source !== this.layout?.source, l = this.getStack(), u = !l || l.members.length <= 1, d = !(!c || u || this.options.crossfade !== !0 || this.path.some(nre));
+ let s = Vy(), c = r?.source !== this.layout?.source, l = this.getStack(), u = !l || l.members.length <= 1, d = !(!c || u || this.options.crossfade !== !0 || this.path.some(rre));
this.animationProgress = 0;
let f, p = n?.interpolateProjection(e);
this.mixTargetDelta = (t) => {
let n = t / 1e3, r = p?.(n);
- ib(o.x, e.x, n), ib(o.y, e.y, n), r && (o.x.translate = r.x, o.y.translate = r.y), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Dy(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), tre(this.relativeTarget, this.relativeTargetOrigin, s, n), f && Pne(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= Ly(), by(f, this.relativeTarget)), c && (this.animationValues = a, xne(a, i, this.latestValues, n, d, u)), r?.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
+ cb(o.x, e.x, n), cb(o.y, e.y, n), r && (o.x.translate = r.x, o.y.translate = r.y), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (jy(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), nre(this.relativeTarget, this.relativeTargetOrigin, s, n), f && Fne(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= Vy(), wy(f, this.relativeTarget)), c && (this.animationValues = a, Sne(a, i, this.latestValues, n, d, u)), r?.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
}
startAnimation(e) {
- this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (mg(this.pendingAnimation), void 0), this.pendingAnimation = pg.update(() => {
- Jy.hasAnimatedSinceResize = !0, this.motionValue ||= sv(0), this.motionValue.jump(0, !1), this.currentAnimation = fy(this.motionValue, [0, 1e3], {
+ this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (vg(this.pendingAnimation), void 0), this.pendingAnimation = _g.update(() => {
+ Qy.hasAnimatedSinceResize = !0, this.motionValue ||= dv(0), this.motionValue.jump(0, !1), this.currentAnimation = gy(this.motionValue, [0, 1e3], {
...e,
velocity: 0,
isSync: !0,
@@ -19262,7 +19275,7 @@ function eb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
onComplete: () => {
e.onComplete && e.onComplete(), this.completeAnimation();
}
- }), Aee(this.currentAnimation, this), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
+ }), jee(this.currentAnimation, this), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
});
}
completeAnimation() {
@@ -19271,20 +19284,20 @@ function eb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
e && e.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
}
finishAnimation() {
- this.currentAnimation && (this.mixTargetDelta?.(Bne), this.currentAnimation.stop()), this.completeAnimation();
+ this.currentAnimation && (this.mixTargetDelta?.(Vne), this.currentAnimation.stop()), this.completeAnimation();
}
applyTransformsToTarget() {
let e = this.getLead(), { targetWithTransforms: t, layout: n, latestValues: r } = e, { target: i } = e;
if (t && i && n) {
- if (this !== e && this.layout && n && sb(this.options.animationType, this.layout.layoutBox, n.layoutBox)) {
+ if (this !== e && this.layout && n && db(this.options.animationType, this.layout.layoutBox, n.layoutBox)) {
let { layoutBox: e } = this.layout, t = i;
- i = this.target || Ly(), ob(i.x, t.x, e.x), ob(i.y, t.y, e.y);
+ i = this.target || Vy(), ub(i.x, t.x, e.x), ub(i.y, t.y, e.y);
}
- by(t, i), ly(t, r), wy(this.projectionDeltaWithTransform, this.layoutCorrected, t, r);
+ wy(t, i), py(t, r), Oy(this.projectionDeltaWithTransform, this.layoutCorrected, t, r);
}
}
registerSharedNode(e, t) {
- this.sharedNodes.has(e) || this.sharedNodes.set(e, new Fne()), this.sharedNodes.get(e).add(t);
+ this.sharedNodes.has(e) || this.sharedNodes.set(e, new Ine()), this.sharedNodes.get(e).add(t);
let n = t.options.initialPromotionConfig;
t.promote({
transition: n?.transition,
@@ -19317,10 +19330,10 @@ function eb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
let { visualElement: e } = this.options;
if (!e) return;
let { latestValues: t } = e;
- if (!Zv(t)) return;
+ if (!ty(t)) return;
let n = {};
- for (let t = 0; t < Yy.length; t++) Xy(Yy[t], e, n, this.animationValues);
- for (let t = 0; t < Yv.length; t++) Xy(Yv[t], e, n, this.animationValues);
+ for (let t = 0; t < $y.length; t++) eb($y[t], e, n, this.animationValues);
+ for (let t = 0; t < $v.length; t++) eb($v[t], e, n, this.animationValues);
e.render();
for (let t in n) e.setStaticValue(t, n[t]), this.animationValues && (this.animationValues[t] = n[t]);
e.scheduleRender();
@@ -19334,70 +19347,70 @@ function eb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
let r = this.getTransformTemplate();
if (this.needsReset) {
- this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = hy(t?.pointerEvents) || "", e.transform = r ? r(this.latestValues, "") : "none";
+ this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = yy(t?.pointerEvents) || "", e.transform = r ? r(this.latestValues, "") : "none";
return;
}
if (!this.projectionDelta || !this.layout || !n.target) {
- (this.options.layoutId || this.needsShow) && (this.needsShow = !1, e.visibility = "", e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = hy(t?.pointerEvents) || ""), this.hasProjected && !Xv(this.latestValues) && (e.transform = r ? r({}, "") : "none", this.hasProjected = !1);
+ (this.options.layoutId || this.needsShow) && (this.needsShow = !1, e.visibility = "", e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = yy(t?.pointerEvents) || ""), this.hasProjected && !ey(this.latestValues) && (e.transform = r ? r({}, "") : "none", this.hasProjected = !1);
return;
}
e.visibility = "";
let i = n.animationValues || n.latestValues;
this.applyTransformsToTarget();
- let a = Lne(this.projectionDeltaWithTransform, this.treeScale, i);
+ let a = Rne(this.projectionDeltaWithTransform, this.treeScale, i);
r && (a = r(i, a)), e.transform = a;
let { x: o, y: s } = this.projectionDelta;
e.transformOrigin = `${o.origin * 100}% ${s.origin * 100}% 0`, e.opacity = n.animationValues ? n === this ? i.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : i.opacityExit : n === this ? i.opacity === void 0 ? "" : i.opacity : i.opacityExit === void 0 ? 0 : i.opacityExit;
- for (let t in py) {
+ for (let t in _y) {
if (i[t] === void 0) continue;
- let { correct: r, applyTo: o, isCSSVariable: s } = py[t], c = a === "none" ? i[t] : r(i[t], n);
+ let { correct: r, applyTo: o, isCSSVariable: s } = _y[t], c = a === "none" ? i[t] : r(i[t], n);
if (o) {
let t = o.length;
for (let n = 0; n < t; n++) e[o[n]] = c;
} else s ? this.options.visualElement.renderState.vars[t] = c : e[t] = c;
}
- this.options.layoutId && (e.pointerEvents = n === this ? hy(t?.pointerEvents) || "" : "none");
+ this.options.layoutId && (e.pointerEvents = n === this ? yy(t?.pointerEvents) || "" : "none");
}
clearSnapshot() {
this.resumeFrom = this.snapshot = this.dragSnapshot = this.dragAncestor = void 0;
}
resetTree() {
- this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(tb), this.root.sharedNodes.clear();
+ this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(ab), this.root.sharedNodes.clear();
}
};
}
-function Hne(e) {
- e.updateLayout(), Jne(e);
-}
function Une(e) {
+ e.updateLayout(), Yne(e);
+}
+function Wne(e) {
let t = e.resumeFrom?.snapshot || e.snapshot;
if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
let { layoutBox: n, measuredBox: r } = e.layout, { animationType: i } = e.options, a = t.source !== e.layout.source, o = (r, a) => {
- if (i === "size") qy((e) => {
- let t = Sy(r[e]);
+ if (i === "size") Zy((e) => {
+ let t = Ey(r[e]);
r[e].min = a[e].min, r[e].max = r[e].min + t;
});
else if (i === "x" || i === "y") {
let e = i === "x" ? "y" : "x";
- yy(r[e], a[e]);
- } else sb(i, t.layoutBox, n) && qy((t) => {
- let n = Sy(a[t]);
+ Cy(r[e], a[e]);
+ } else db(i, t.layoutBox, n) && Zy((t) => {
+ let n = Ey(a[t]);
r[t].max = r[t].min + n, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[t].max = e.relativeTarget[t].min + n);
});
}, s = a ? t.measuredBox : t.layoutBox;
o(s, n);
- let c = Fy();
- wy(c, n, t.layoutBox);
- let l = Fy();
- wy(l, a ? e.applyTransform(r, !0) : n, s);
- let u = !zy(c), d = !1, f = e.getClosestProjectingParent();
+ let c = zy();
+ Oy(c, n, t.layoutBox);
+ let l = zy();
+ Oy(l, a ? e.applyTransform(r, !0) : n, s);
+ let u = !Uy(c), d = !1, f = e.getClosestProjectingParent();
if ((!e.resumeFrom || f?.options.layoutRoot && e.resumeFrom.path.includes(f)) && f && !f.resumeFrom) {
let { snapshot: r, layout: i } = f;
if (r && i) {
- let s = e.options.layoutAnchor || void 0, c = Ly();
- Dy(c, a ? e.resumeFrom.applyTransform(t.layoutBox, !0, void 0, !0, f.depth + 1) : t.layoutBox, r.layoutBox, s);
- let l = Ly();
- Dy(l, n, i.layoutBox, s), a && o(c, l), Hy(c, l) || (d = !0), f.options.layoutRoot && (e.relativeTarget = l, e.relativeTargetOrigin = c, e.relativeParent = f);
+ let s = e.options.layoutAnchor || void 0, c = Vy();
+ jy(c, a ? e.resumeFrom.applyTransform(t.layoutBox, !0, void 0, !0, f.depth + 1) : t.layoutBox, r.layoutBox, s);
+ let l = Vy();
+ jy(l, n, i.layoutBox, s), a && o(c, l), Ky(c, l) || (d = !0), f.options.layoutRoot && (e.relativeTarget = l, e.relativeTargetOrigin = c, e.relativeParent = f);
}
}
e.notifyListeners("didUpdate", {
@@ -19411,65 +19424,65 @@ function Une(e) {
} else e.isLead() && e.options.onExitComplete?.();
e.options.transition = void 0;
}
-function Wne(e) {
- my.countProjection?.(0), e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
-}
function Gne(e) {
- e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
+ vy.countProjection?.(0), e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
}
function Kne(e) {
+ e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
+}
+function qne(e) {
e.clearSnapshot();
}
-function tb(e) {
+function ab(e) {
e.clearMeasurements();
}
-function qne(e) {
+function Jne(e) {
e.isLayoutDirty = !0, e.updateLayout();
}
-function nb(e) {
+function ob(e) {
e.isLayoutDirty = !1;
}
-function Jne(e) {
+function Yne(e) {
let { snapshot: t, dragAncestor: n } = e, r = n?.isAnimationBlocked && n.layout;
if (!t || !r || e.resumeFrom || e.isAnimationBlocked) return;
let i = n.dragSnapshot;
- qy((e) => oy(t.layoutBox[e], r.layoutBox[e].min - i.layoutBox[e].min));
+ Zy((e) => uy(t.layoutBox[e], r.layoutBox[e].min - i.layoutBox[e].min));
}
-function Yne(e) {
+function Xne(e) {
e.isAnimationBlocked && e.layout && !e.isLayoutDirty && (e.snapshot = e.dragSnapshot || e.layout, e.isLayoutDirty = !0);
}
-function Xne(e) {
+function Zne(e) {
e.relativeTarget && e.relativeParent?.isLayoutDirty && (e.currentAnimation ? e.isLayoutDirty = !0 : (e.targetDelta = void 0, e.removeRelativeTarget()));
}
-function Zne(e) {
+function Qne(e) {
let { visualElement: t } = e.options;
t?.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
}
-function rb(e) {
+function sb(e) {
e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
}
-function Qne(e) {
+function $ne(e) {
e.resolveTargetDelta();
}
-function $ne(e) {
+function ere(e) {
e.calcProjection();
}
-function ere(e) {
+function tre(e) {
e.resetSkewAndRotation();
}
-function ib(e, t, n) {
- e.translate = ng(t.translate, 0, n), e.scale = ng(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
+function cb(e, t, n) {
+ e.translate = og(t.translate, 0, n), e.scale = og(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
}
-function ab(e, t, n, r) {
- e.min = ng(t.min, n.min, r), e.max = ng(t.max, n.max, r);
+function lb(e, t, n, r) {
+ e.min = og(t.min, n.min, r), e.max = og(t.max, n.max, r);
}
-function tre(e, t, n, r) {
- ab(e.x, t.x, n.x, r), ab(e.y, t.y, n.y, r);
+function nre(e, t, n, r) {
+ lb(e.x, t.x, n.x, r), lb(e.y, t.y, n.y, r);
}
-function nre(e) {
+function rre(e) {
return e.animationValues?.opacityExit !== void 0;
}
-var rre = {
+var ire = {
duration: .45,
ease: [
.4,
@@ -19478,51 +19491,51 @@ var rre = {
1
]
};
-function ob(e, t, n) {
- e.max = Sy(n) + (e.min = t.min);
+function ub(e, t, n) {
+ e.max = Ey(n) + (e.min = t.min);
}
-function sb(e, t, n) {
- return e === "position" || e === "preserve-aspect" && !One(Uy(t), Uy(n), .2);
+function db(e, t, n) {
+ return e === "position" || e === "preserve-aspect" && !kne(qy(t), qy(n), .2);
}
-function ire(e) {
+function are(e) {
return e !== e.root && e.scroll?.wasRoot;
}
// node_modules/motion-dom/dist/es/events/add-dom-event.mjs
-function cb(e, t, n, r = { passive: !0 }) {
+function fb(e, t, n, r = { passive: !0 }) {
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
}
// node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs
-var are = /* @__PURE__ */ eb({
- attachResizeListener: (e, t) => cb(e, "resize", t),
- measureScroll: lne,
+var ore = /* @__PURE__ */ ib({
+ attachResizeListener: (e, t) => fb(e, "resize", t),
+ measureScroll: une,
checkIsScrollRoot: () => !0
-}), lb = { current: void 0 }, ub = /* @__PURE__ */ eb({
+}), pb = { current: void 0 }, mb = /* @__PURE__ */ ib({
measureScroll: (e) => ({
x: e.scrollLeft,
y: e.scrollTop
}),
defaultParent: () => {
- if (!lb.current) {
- let e = new are({});
- e.mount(window), e.setOptions({ layoutScroll: !0 }), lb.current = e;
+ if (!pb.current) {
+ let e = new ore({});
+ e.mount(window), e.setOptions({ layoutScroll: !0 }), pb.current = e;
}
- return lb.current;
+ return pb.current;
},
resetTransform: (e, t) => {
e.style.transform = t === void 0 ? "none" : t;
},
checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"
-}), db = /* @__PURE__ */ new WeakMap();
+}), hb = /* @__PURE__ */ new WeakMap();
// node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs
-function fb(e) {
+function gb(e) {
return typeof e == "object" && !!e && typeof e.start == "function";
}
// node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs
-function pb(e) {
+function _b(e) {
return typeof e == "string" || Array.isArray(e);
}
// node_modules/motion-dom/dist/es/render/utils/variant-props.mjs
-var mb = [
+var vb = [
"animate",
"whileInView",
"whileFocus",
@@ -19530,29 +19543,29 @@ var mb = [
"whileTap",
"whileDrag",
"exit"
-], hb = /* @__PURE__ */ ["initial"].concat(mb);
+], yb = /* @__PURE__ */ ["initial"].concat(vb);
// node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs
-function gb(e) {
- if (fb(e.animate)) return !0;
- for (let t = 0; t < hb.length; t++) if (pb(e[hb[t]])) return !0;
+function bb(e) {
+ if (gb(e.animate)) return !0;
+ for (let t = 0; t < yb.length; t++) if (_b(e[yb[t]])) return !0;
return !1;
}
-function _b(e) {
- return !!(gb(e) || e.variants);
+function xb(e) {
+ return !!(bb(e) || e.variants);
}
// node_modules/motion-dom/dist/es/render/utils/motion-values.mjs
-function ore(e, t, n) {
+function sre(e, t, n) {
for (let r in t) {
let i = t[r], a = n[r];
- if (gv(i)) e.addValue(r, i);
- else if (gv(a)) e.addValue(r, sv(i, { owner: e }));
+ if (bv(i)) e.addValue(r, i);
+ else if (bv(a)) e.addValue(r, dv(i, { owner: e }));
else if (a !== i) {
if (e.hasValue(r)) {
let t = e.getValue(r);
t.liveStyle === !0 ? t.jump(i) : t.hasAnimated || t.set(i);
} else {
let t = e.getStaticValue(r);
- e.addValue(r, sv(t === void 0 ? i : t, { owner: e }));
+ e.addValue(r, dv(t === void 0 ? i : t, { owner: e }));
}
}
}
@@ -19560,17 +19573,17 @@ function ore(e, t, n) {
return t;
}
// node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs
-var vb = { current: null }, yb = { current: !1 }, sre = typeof window < "u";
-function bb() {
- if (yb.current = !0, sre) {
+var Sb = { current: null }, Cb = { current: !1 }, cre = typeof window < "u";
+function wb() {
+ if (Cb.current = !0, cre) {
if (window.matchMedia) {
- let e = window.matchMedia("(prefers-reduced-motion)"), t = () => vb.current = e.matches;
+ let e = window.matchMedia("(prefers-reduced-motion)"), t = () => Sb.current = e.matches;
e.addEventListener("change", t), t();
- } else vb.current = !1;
+ } else Sb.current = !1;
}
}
// node_modules/motion-dom/dist/es/render/VisualElement.mjs
-var xb = [
+var Tb = [
"AnimationStart",
"AnimationComplete",
"Update",
@@ -19578,35 +19591,35 @@ var xb = [
"LayoutMeasure",
"LayoutAnimationStart",
"LayoutAnimationComplete"
-], Sb = {};
-function Cb(e) {
- Sb = e;
+], Eb = {};
+function Db(e) {
+ Eb = e;
}
-function cre() {
- return Sb;
+function lre() {
+ return Eb;
}
-var lre = class {
+var ure = class {
scrapeMotionValuesFromProps(e, t, n) {
return {};
}
constructor({ parent: e, props: t, presenceContext: n, reducedMotionConfig: r, skipAnimations: i, blockInitialAnimation: a, visualState: o }, s = {}) {
- this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = w_, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
+ this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = O_, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
- let e = rh.now();
- this.renderScheduledAt < e && (this.renderScheduledAt = e, pg.render(this.render, !1, !0));
+ let e = ch.now();
+ this.renderScheduledAt < e && (this.renderScheduledAt = e, _g.render(this.render, !1, !0));
};
let { latestValues: c, renderState: l } = o;
- this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = gb(t), this.isVariantNode = _b(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
+ this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = bb(t), this.isVariantNode = xb(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
let { willChange: u, ...d } = this.scrapeMotionValuesFromProps(t, {}, this);
for (let e in d) {
let t = d[e];
- c[e] !== void 0 && gv(t) && t.set(c[e]);
+ c[e] !== void 0 && bv(t) && t.set(c[e]);
}
}
mount(e) {
if (this.hasBeenMounted && !this.presenceContext?.keepValuesOnRemount) for (let e in this.initialValues) this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];
- if (this.current = e, db.set(e, this), this.projection?.instance || this.projection?.mount(e), this.isVariantNode && !this.isControllingVariants) {
+ if (this.current = e, hb.set(e, this), this.projection?.instance || this.projection?.mount(e), this.isVariantNode && !this.isControllingVariants) {
let e = this;
do
e = e.props.inherit !== !1 && e.parent;
@@ -19616,10 +19629,10 @@ var lre = class {
t.add(this), this.removeFromVariantTree = () => t.delete(this);
}
}
- this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (yb.current || bb(), this.shouldReduceMotion = vb.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
+ this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (Cb.current || wb(), this.shouldReduceMotion = Sb.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
}
unmount() {
- this.projection?.unmount(), mg(this.notifyUpdate), mg(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree?.(), this.parent?.removeChild(this);
+ this.projection?.unmount(), vg(this.notifyUpdate), vg(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree?.(), this.parent?.removeChild(this);
for (let e in this.events) this.events[e].clear();
for (let e in this.features) {
let t = this.features[e];
@@ -19634,24 +19647,24 @@ var lre = class {
this.children.delete(e), this.enteringChildren?.delete(e);
}
bindToMotionValue(e, t) {
- if (this.valueSubscriptions.get(e)?.(), t.accelerate && L_.has(e) && this.current instanceof HTMLElement) {
- let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new N_({
+ if (this.valueSubscriptions.get(e)?.(), t.accelerate && V_.has(e) && this.current instanceof HTMLElement) {
+ let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new L_({
element: this.current,
name: e,
keyframes: r,
times: i,
ease: a,
- duration: /* @__PURE__ */ Am(o)
+ duration: /* @__PURE__ */ Fm(o)
}), c = n(s);
this.valueSubscriptions.set(e, () => {
c(), s.cancel();
});
return;
}
- let n = f_.has(e);
+ let n = g_.has(e);
n && this.onBindTransform && this.onBindTransform();
let r = t.on("change", (t) => {
- this.latestValues[e] = t, this.props.onUpdate && pg.preRender(this.notifyUpdate), n && (this.projection && (this.projection.isTransformDirty = !0), G_.get(this.current)?.check()), this.scheduleRender();
+ this.latestValues[e] = t, this.props.onUpdate && _g.preRender(this.notifyUpdate), n && (this.projection && (this.projection.isTransformDirty = !0), Y_.get(this.current)?.check()), this.scheduleRender();
}), i;
typeof window < "u" && window.MotionCheckAppearSync && (i = window.MotionCheckAppearSync(this, e, t)), this.valueSubscriptions.set(e, () => {
r(), i?.();
@@ -19662,8 +19675,8 @@ var lre = class {
}
updateFeatures() {
let e = "animation";
- for (e in Sb) {
- let t = Sb[e];
+ for (e in Eb) {
+ let t = Eb[e];
if (!t) continue;
let { isEnabled: n, Feature: r } = t;
if (!this.features[e] && r && n(this.props) && (this.features[e] = new r(this)), this.features[e]) {
@@ -19676,7 +19689,7 @@ var lre = class {
this.build(this.renderState, this.latestValues, this.props);
}
measureViewportBox() {
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : Ly();
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : Vy();
}
getStaticValue(e) {
return this.latestValues[e];
@@ -19686,14 +19699,14 @@ var lre = class {
}
update(e, t) {
let { transformTemplate: n, onUpdate: r } = this.props;
- (e.transformTemplate || n) && this.scheduleRender(), (e.transformTemplate && !n || e.onUpdate && !r) && G_.get(this.current)?.demote(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
- for (let t = 0; t < xb.length; t++) {
- let n = xb[t];
+ (e.transformTemplate || n) && this.scheduleRender(), (e.transformTemplate && !n || e.onUpdate && !r) && Y_.get(this.current)?.demote(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
+ for (let t = 0; t < Tb.length; t++) {
+ let n = Tb[t];
this.propEventSubscriptions[n]?.(), delete this.propEventSubscriptions[n];
let r = e["on" + n];
r && (this.propEventSubscriptions[n] = this.on(n, r));
}
- this.prevMotionValues = ore(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue?.();
+ this.prevMotionValues = sre(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue?.();
}
getProps() {
return this.props;
@@ -19723,27 +19736,27 @@ var lre = class {
}
getValue(e, t) {
let n = this.props.values?.[e];
- return n || (n = this.values.get(e), n === void 0 && t !== void 0 && (n = sv(t ?? this.getDefaultValue?.(e), { owner: this }), this.addValue(e, n)), n);
+ return n || (n = this.values.get(e), n === void 0 && t !== void 0 && (n = dv(t ?? this.getDefaultValue?.(e), { owner: this }), this.addValue(e, n)), n);
}
readValue(e, t) {
let n = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
- return n != null && (typeof n == "string" && (Sm(n) || wm(n)) ? n = parseFloat(n) : typeof n != "number" && !Qh.test(n) && Qh.test(t) && (n = e_(e, t)), this.setBaseTarget(e, gv(n) ? n.get() : n)), gv(n) ? n.get() : n;
+ return n != null && (typeof n == "string" && (Dm(n) || km(n)) ? n = parseFloat(n) : typeof n != "number" && !rg.test(n) && rg.test(t) && (n = i_(e, t)), this.setBaseTarget(e, bv(n) ? n.get() : n)), bv(n) ? n.get() : n;
}
setBaseTarget(e, t) {
this.baseTarget[e] = t;
}
on(e, t) {
- return (this.events[e] || (this.events[e] = new km())).add(t);
+ return (this.events[e] || (this.events[e] = new Pm())).add(t);
}
notify(e, ...t) {
this.events[e]?.notify(...t);
}
scheduleRenderMicrotask() {
- dy.render(this.render);
+ hy.render(this.render);
}
-}, wb = class extends lre {
+}, Ob = class extends ure {
constructor() {
- super(...arguments), this.KeyframeResolver = Cv;
+ super(...arguments), this.KeyframeResolver = Dv;
}
sortInstanceNodePosition(e, t) {
return e.compareDocumentPosition(t) & 2 ? 1 : -1;
@@ -19758,105 +19771,105 @@ var lre = class {
handleChildMotionValue() {
this.childSubscription && (this.childSubscription(), delete this.childSubscription);
let { children: e } = this.props;
- gv(e) && (this.childSubscription = e.on("change", (e) => {
+ bv(e) && (this.childSubscription = e.on("change", (e) => {
this.current && (this.current.textContent = `${e}`);
}));
}
};
// node_modules/motion-dom/dist/es/render/html/utils/render.mjs
-function Tb(e, { style: t, vars: n }, r, i) {
+function kb(e, { style: t, vars: n }, r, i) {
let a = e.style, o;
for (o in t) a[o] = t[o];
for (o in i?.applyProjectionStyles(a, r), n) a.setProperty(o, n[o]);
}
// node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs
-function Eb(e, { layout: t, layoutId: n }) {
- return f_.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!py[e] || e === "opacity");
+function Ab(e, { layout: t, layoutId: n }) {
+ return g_.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!_y[e] || e === "opacity");
}
// node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs
-function Db(e, t, n) {
+function jb(e, t, n) {
let r = e.style, i = t?.style, a = {};
if (!r) return a;
- for (let t in r) (gv(r[t]) || i && gv(i[t]) || Eb(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
+ for (let t in r) (bv(r[t]) || i && bv(i[t]) || Ab(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
return a;
}
// node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs
-function ure(e) {
+function dre(e) {
return window.getComputedStyle(e);
}
-var dre = class extends wb {
+var fre = class extends Ob {
constructor() {
- super(...arguments), this.type = "html", this.renderInstance = Tb;
+ super(...arguments), this.type = "html", this.renderInstance = kb;
}
mount(e) {
super.mount(e);
}
readValueFromInstance(e, t) {
- if (f_.has(t)) return this.projection?.isProjecting ? c_(t) : u_(e, t);
+ if (g_.has(t)) return this.projection?.isProjecting ? f_(t) : m_(e, t);
{
- let n = ure(e), r = (oh(t) ? n.getPropertyValue(t) : n[t]) || 0;
+ let n = dre(e), r = (dh(t) ? n.getPropertyValue(t) : n[t]) || 0;
return typeof r == "string" ? r.trim() : r;
}
}
measureInstanceViewportBox(e, { transformPagePoint: t }) {
- return uy(e, t);
+ return my(e, t);
}
build(e, t, n) {
- Vv(e, t, n.transformTemplate);
+ Gv(e, t, n.transformTemplate);
}
scrapeMotionValuesFromProps(e, t, n) {
- return Db(e, t, n);
+ return jb(e, t, n);
}
-}, Ob = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1;
+}, Mb = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1;
// node_modules/motion-dom/dist/es/events/event-info.mjs
-function kb(e) {
+function Nb(e) {
return { point: {
x: e.pageX,
y: e.pageY
} };
}
-var fre = (e) => (t) => Ob(t) && e(t, kb(t));
+var pre = (e) => (t) => Mb(t) && e(t, Nb(t));
// node_modules/motion-dom/dist/es/events/add-pointer-event.mjs
-function Ab(e, t, n, r) {
- return cb(e, t, fre(n), r);
+function Pb(e, t, n, r) {
+ return fb(e, t, pre(n), r);
}
// node_modules/motion-dom/dist/es/resize/handle-element.mjs
-var jb = /* @__PURE__ */ new WeakMap(), Mb, Nb = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : Av(r) && "getBBox" in r ? r.getBBox()[t] : r[n], pre = /*@__PURE__*/ Nb("inline", "width", "offsetWidth"), mre = /*@__PURE__*/ Nb("block", "height", "offsetHeight");
-function hre({ target: e, borderBoxSize: t }) {
- jb.get(e)?.forEach((n) => {
+var Fb = /* @__PURE__ */ new WeakMap(), Ib, Lb = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : Pv(r) && "getBBox" in r ? r.getBBox()[t] : r[n], mre = /*@__PURE__*/ Lb("inline", "width", "offsetWidth"), hre = /*@__PURE__*/ Lb("block", "height", "offsetHeight");
+function gre({ target: e, borderBoxSize: t }) {
+ Fb.get(e)?.forEach((n) => {
n(e, {
get width() {
- return pre(e, t);
+ return mre(e, t);
},
get height() {
- return mre(e, t);
+ return hre(e, t);
}
});
});
}
-function gre(e) {
- e.forEach(hre);
+function _re(e) {
+ e.forEach(gre);
}
-function _re() {
- typeof ResizeObserver < "u" && (Mb = new ResizeObserver(gre));
+function vre() {
+ typeof ResizeObserver < "u" && (Ib = new ResizeObserver(_re));
}
-function vre(e, t) {
- Mb || _re();
- let n = Pv(e);
+function yre(e, t) {
+ Ib || vre();
+ let n = Rv(e);
return n.forEach((e) => {
- let n = jb.get(e);
- n || (n = /* @__PURE__ */ new Set(), jb.set(e, n)), n.add(t), Mb?.observe(e);
+ let n = Fb.get(e);
+ n || (n = /* @__PURE__ */ new Set(), Fb.set(e, n)), n.add(t), Ib?.observe(e);
}), () => {
n.forEach((e) => {
- let n = jb.get(e);
- n?.delete(t), n?.size || Mb?.unobserve(e);
+ let n = Fb.get(e);
+ n?.delete(t), n?.size || Ib?.unobserve(e);
});
};
}
// node_modules/motion-dom/dist/es/resize/handle-window.mjs
-var Pb = /* @__PURE__ */ new Set(), Fb;
-function yre() {
- Fb = () => {
+var Rb = /* @__PURE__ */ new Set(), zb;
+function bre() {
+ zb = () => {
let e = {
get width() {
return window.innerWidth;
@@ -19865,26 +19878,26 @@ function yre() {
return window.innerHeight;
}
};
- Pb.forEach((t) => t(e));
- }, window.addEventListener("resize", Fb);
+ Rb.forEach((t) => t(e));
+ }, window.addEventListener("resize", zb);
}
-function bre(e) {
- return Pb.add(e), Fb || yre(), () => {
- Pb.delete(e), !Pb.size && typeof Fb == "function" && (window.removeEventListener("resize", Fb), Fb = void 0);
+function xre(e) {
+ return Rb.add(e), zb || bre(), () => {
+ Rb.delete(e), !Rb.size && typeof zb == "function" && (window.removeEventListener("resize", zb), zb = void 0);
};
}
// node_modules/motion-dom/dist/es/resize/index.mjs
-function Ib(e, t) {
- return Mv(typeof e == "function" ? bre(e) : vre(e, t));
+function Bb(e, t) {
+ return Iv(typeof e == "function" ? xre(e) : yre(e, t));
}
// node_modules/motion-dom/dist/es/utils/distance.mjs
-var Lb = (e, t) => Math.abs(e - t);
-function xre(e, t) {
- let n = Lb(e.x, t.x), r = Lb(e.y, t.y);
+var Vb = (e, t) => Math.abs(e - t);
+function Sre(e, t) {
+ let n = Vb(e.x, t.x), r = Vb(e.y, t.y);
return Math.sqrt(n ** 2 + r ** 2);
}
// node_modules/motion-dom/dist/es/gestures/pan/PanSession.mjs
-var Rb = /*#__PURE__*/ new Set(["auto", "scroll"]), zb = class {
+var Hb = /*#__PURE__*/ new Set(["auto", "scroll"]), Ub = 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.onElementScroll = (e) => {
this.handleScroll(e.target);
@@ -19892,8 +19905,8 @@ var Rb = /*#__PURE__*/ new Set(["auto", "scroll"]), zb = class {
this.handleScroll(window);
}, this.updatePoint = () => {
if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- this.hasPendingMove = !1, this.lastRawMoveEventInfo && (this.lastMoveEventInfo = Vb(this.lastRawMoveEventInfo, this.transformPagePoint));
- let e = Ub(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = xre(e.offset, {
+ this.hasPendingMove = !1, this.lastRawMoveEventInfo && (this.lastMoveEventInfo = Gb(this.lastRawMoveEventInfo, this.transformPagePoint));
+ let e = qb(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = Sre(e.offset, {
x: 0,
y: 0
}) >= this.distanceThreshold;
@@ -19901,99 +19914,99 @@ var Rb = /*#__PURE__*/ new Set(["auto", "scroll"]), zb = class {
let { point: r } = e;
this.history.push({
...r,
- timestamp: rh.now()
+ timestamp: ch.now()
});
let { onStart: i, onMove: a } = this.handlers;
t || (i?.(this.lastMoveEvent, e), this.startEvent = this.lastMoveEvent), a?.(this.lastMoveEvent, e);
}, this.handlePointerMove = (e, t) => {
- this.handleScroll(window), this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = Vb(t, this.transformPagePoint), this.hasPendingMove = !0, pg.update(this.updatePoint, !0);
+ this.handleScroll(window), this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = Gb(t, this.transformPagePoint), this.hasPendingMove = !0, _g.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?.(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- let a = Ub(e.type === "pointercancel" ? this.lastMoveEventInfo : Vb(t, this.transformPagePoint), this.history);
+ let a = qb(e.type === "pointercancel" ? this.lastMoveEventInfo : Gb(t, this.transformPagePoint), this.history);
this.startEvent && n?.(e, a), r?.(e, a);
- }, !Ob(e)) return;
+ }, !Mb(e)) return;
this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = n, this.distanceThreshold = a, this.contextWindow = r || window;
- let s = Vb(kb(e), this.transformPagePoint), { point: c } = s;
+ let s = Gb(Nb(e), this.transformPagePoint), { point: c } = s;
this.history = [{
...c,
- timestamp: rh.now()
+ timestamp: ch.now()
}];
let { onSessionStart: l } = t;
- l && l(e, Ub(s, this.history));
+ l && l(e, qb(s, this.history));
let u = {
passive: !0,
capture: !0
};
- this.removeListeners = Dm(Ab(this.contextWindow, "pointermove", this.handlePointerMove, u), Ab(this.contextWindow, "pointerup", this.handlePointerUp, u), Ab(this.contextWindow, "pointercancel", this.handlePointerUp, u)), o && this.startScrollTracking(o);
+ this.removeListeners = Mm(Pb(this.contextWindow, "pointermove", this.handlePointerMove, u), Pb(this.contextWindow, "pointerup", this.handlePointerUp, u), Pb(this.contextWindow, "pointercancel", this.handlePointerUp, u)), o && this.startScrollTracking(o);
}
startScrollTracking(e) {
let t = e.parentElement;
for (; t;) {
let e = getComputedStyle(t);
- (Rb.has(e.overflowX) || Rb.has(e.overflowY)) && this.scrollPositions.set(t, Bb(t)), t = t.parentElement;
+ (Hb.has(e.overflowX) || Hb.has(e.overflowY)) && this.scrollPositions.set(t, Wb(t)), t = t.parentElement;
}
- this.scrollPositions.set(window, Bb(window)), this.removeScrollListeners = Dm(cb(window, "scroll", this.onElementScroll, { capture: !0 }), cb(window, "scroll", this.onWindowScroll, {}));
+ this.scrollPositions.set(window, Wb(window)), this.removeScrollListeners = Mm(fb(window, "scroll", this.onElementScroll, { capture: !0 }), fb(window, "scroll", this.onWindowScroll, {}));
}
handleScroll(e) {
let t = this.scrollPositions.get(e);
if (!t) return;
- let n = e === window, r = Bb(e), i = {
+ let n = e === window, r = Wb(e), i = {
x: r.x - t.x,
y: r.y - t.y
};
- (i.x !== 0 || i.y !== 0) && (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r), pg.update(this.updatePoint, !0));
+ (i.x !== 0 || i.y !== 0) && (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r), _g.update(this.updatePoint, !0));
}
updateHandlers(e) {
this.handlers = e;
}
end() {
- this.removeListeners?.(), this.removeScrollListeners?.(), this.scrollPositions.clear(), mg(this.updatePoint);
+ this.removeListeners?.(), this.removeScrollListeners?.(), this.scrollPositions.clear(), vg(this.updatePoint);
}
-}, Bb = (e) => e === window ? {
+}, Wb = (e) => e === window ? {
x: window.scrollX,
y: window.scrollY
} : {
x: e.scrollLeft,
y: e.scrollTop
};
-function Vb(e, t) {
+function Gb(e, t) {
return t ? { point: t(e.point) } : e;
}
-function Hb(e, t) {
+function Kb(e, t) {
return {
x: e.x - t.x,
y: e.y - t.y
};
}
-function Ub({ point: e }, t) {
+function qb({ point: e }, t) {
return {
point: e,
- delta: Hb(e, Wb(t)),
- offset: Hb(e, Sre(t)),
- velocity: Cre(t, .1)
+ delta: Kb(e, Jb(t)),
+ offset: Kb(e, Cre(t)),
+ velocity: wre(t, .1)
};
}
-function Sre(e) {
+function Cre(e) {
return e[0];
}
-function Wb(e) {
+function Jb(e) {
return e[e.length - 1];
}
-function Cre(e, t) {
+function wre(e, t) {
if (e.length < 2) return {
x: 0,
y: 0
};
- let n = e.length - 1, r = null, i = Wb(e);
- for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ Am(t)));) n--;
+ let n = e.length - 1, r = null, i = Jb(e);
+ for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ Fm(t)));) n--;
if (!r) return {
x: 0,
y: 0
};
- r === e[0] && e.length > 2 && i.timestamp - r.timestamp > /* @__PURE__ */ Am(t) * 2 && (r = e[1]);
- let a = /* @__PURE__ */ jm(i.timestamp - r.timestamp);
+ r === e[0] && e.length > 2 && i.timestamp - r.timestamp > /* @__PURE__ */ Fm(t) * 2 && (r = e[1]);
+ let a = /* @__PURE__ */ Im(i.timestamp - r.timestamp);
if (a === 0) return {
x: 0,
y: 0
@@ -20005,95 +20018,95 @@ function Cre(e, t) {
return o.x === Infinity && (o.x = 0), o.y === Infinity && (o.y = 0), o;
}
// node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs
-var wre = /* @__PURE__ */ new Set([
+var Tre = /* @__PURE__ */ new Set([
"BUTTON",
"INPUT",
"SELECT",
"TEXTAREA",
"A"
]);
-function Tre(e) {
- return wre.has(e.tagName) || e.isContentEditable === !0;
+function Ere(e) {
+ return Tre.has(e.tagName) || e.isContentEditable === !0;
}
-var Ere = /* @__PURE__ */ new Set([
+var Dre = /* @__PURE__ */ new Set([
"INPUT",
"SELECT",
"TEXTAREA"
]);
-function Dre(e) {
- return Ere.has(e.tagName) || e.isContentEditable === !0;
+function Ore(e) {
+ return Dre.has(e.tagName) || e.isContentEditable === !0;
}
// node_modules/motion-dom/dist/es/gestures/drag/state/is-active.mjs
-var Gb = {
+var Yb = {
x: !1,
y: !1
};
-function Kb() {
- return Gb.x || Gb.y;
+function Xb() {
+ return Yb.x || Yb.y;
}
// node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs
-function Ore(e) {
- return e === "x" || e === "y" ? Gb[e] ? null : (Gb[e] = !0, () => {
- Gb[e] = !1;
- }) : Gb.x || Gb.y ? null : (Gb.x = Gb.y = !0, () => {
- Gb.x = Gb.y = !1;
+function kre(e) {
+ return e === "x" || e === "y" ? Yb[e] ? null : (Yb[e] = !0, () => {
+ Yb[e] = !1;
+ }) : Yb.x || Yb.y ? null : (Yb.x = Yb.y = !0, () => {
+ Yb.x = Yb.y = !1;
});
}
// node_modules/motion-dom/dist/es/gestures/drag/utils/constraints.mjs
-function kre(e, { min: t, max: n }, r) {
- return t !== void 0 && e < t ? e = r ? ng(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? ng(n, e, r.max) : Math.min(e, n)), e;
+function Are(e, { min: t, max: n }, r) {
+ return t !== void 0 && e < t ? e = r ? og(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? og(n, e, r.max) : Math.min(e, n)), e;
}
-function qb(e, t, n) {
+function Zb(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 Are(e, { top: t, left: n, bottom: r, right: i }) {
+function jre(e, { top: t, left: n, bottom: r, right: i }) {
return {
- x: qb(e.x, n, i),
- y: qb(e.y, t, r)
+ x: Zb(e.x, n, i),
+ y: Zb(e.y, t, r)
};
}
-function Jb(e, t) {
+function Qb(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 jre(e, t) {
+function Mre(e, t) {
return {
- x: Jb(e.x, t.x),
- y: Jb(e.y, t.y)
+ x: Qb(e.x, t.x),
+ y: Qb(e.y, t.y)
};
}
-function Mre(e, t) {
- let n = .5, r = Sy(e), i = Sy(t);
- return i > r ? n = /* @__PURE__ */ Om(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ Om(e.min, e.max - i, t.min)), bm(0, 1, n);
-}
function Nre(e, t) {
+ let n = .5, r = Ey(e), i = Ey(t);
+ return i > r ? n = /* @__PURE__ */ Nm(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ Nm(e.min, e.max - i, t.min)), Tm(0, 1, n);
+}
+function Pre(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 Yb = .35;
-function Pre(e = Yb) {
- return e === !1 ? e = 0 : e === !0 && (e = Yb), {
- x: Xb(e, "left", "right"),
- y: Xb(e, "top", "bottom")
+var $b = .35;
+function Fre(e = $b) {
+ return e === !1 ? e = 0 : e === !0 && (e = $b), {
+ x: ex(e, "left", "right"),
+ y: ex(e, "top", "bottom")
};
}
-function Xb(e, t, n) {
+function ex(e, t, n) {
return {
- min: Zb(e, t),
- max: Zb(e, n)
+ min: tx(e, t),
+ max: tx(e, n)
};
}
-function Zb(e, t) {
+function tx(e, t) {
return typeof e == "number" ? e : e[t] || 0;
}
// node_modules/motion-dom/dist/es/gestures/drag/VisualElementDragControls.mjs
-function Qb(e) {
+function nx(e) {
let t = "";
for (let n of e.path) {
n.scroll = void 0, n.updateScroll();
@@ -20102,12 +20115,12 @@ function Qb(e) {
}
return t;
}
-var Fre = /* @__PURE__ */ new WeakMap(), Ire = class {
+var Ire = /* @__PURE__ */ new WeakMap(), Lre = class {
constructor(e, t = () => e.getProps()) {
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {
x: 0,
y: 0
- }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = Ly(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e, this.readProps = t;
+ }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = Vy(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e, this.readProps = t;
}
start(e, { snapToCursor: t = !1, distanceThreshold: n } = {}) {
if (this.visualElement.presenceContext?.isPresent === !1) return;
@@ -20115,28 +20128,28 @@ var Fre = /* @__PURE__ */ new WeakMap(), Ire = class {
t && this.snapToCursor(e), this.stopAnimation();
}, i = (e, t) => {
let { drag: n, dragConstraints: r, dragPropagation: i, onDragStart: a } = this.getProps();
- if (n && !i && (this.openDragLock?.(), this.openDragLock = Ore(n), !this.openDragLock)) return;
+ if (n && !i && (this.openDragLock?.(), this.openDragLock = kre(n), !this.openDragLock)) return;
this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints();
let { projection: o } = this.visualElement;
- o && (o.isAnimationBlocked = !0, o.target = void 0), qy((e) => {
+ o && (o.isAnimationBlocked = !0, o.target = void 0), Zy((e) => {
let t = this.getAxisMotionValue(e).get() || 0;
- if (ch(t) && (t = dv(t, this.visualElement.current) || 0), Oh.test(t)) t = parseFloat(t);
- else if (Dh.test(t)) {
+ if (ph(t) && (t = hv(t, this.visualElement.current) || 0), Nh.test(t)) t = parseFloat(t);
+ else if (Mh.test(t)) {
let n = o?.layout?.layoutBox[e];
- n && (t = Sy(n) * (parseFloat(t) / 100));
+ n && (t = Ey(n) * (parseFloat(t) / 100));
}
this.originPoint[e] = t;
- }), this.point = typeof r == "function" && r(this), a && pg.update(() => a(e, t), !1, !0), _v(this.visualElement, "transform"), this.visualElement.animationState?.setActive("whileDrag", !0);
+ }), this.point = typeof r == "function" && r(this), a && _g.update(() => a(e, t), !1, !0), xv(this.visualElement, "transform"), this.visualElement.animationState?.setActive("whileDrag", !0);
}, a = (e, t) => {
this.latestPointerEvent = e, this.latestPanInfo = t;
let { dragPropagation: n, dragDirectionLock: r, onDirectionLock: i, onDrag: a } = this.getProps();
if (!n && !this.openDragLock) return;
let { offset: o } = t;
if (r && this.currentDirection === null) {
- if (this.currentDirection = Rre(o), this.currentDirection === null) return;
+ if (this.currentDirection = zre(o), this.currentDirection === null) return;
i && i(this.currentDirection);
}
- this.updateAxis("x", o), this.updateAxis("y", o), this.point && this.point.move(), this.visualElement.render(), a && pg.update(() => a(e, t), !1, !0);
+ this.updateAxis("x", o), this.updateAxis("y", o), this.point && this.point.move(), this.visualElement.render(), a && _g.update(() => a(e, t), !1, !0);
}, o = (e, t) => {
this.latestPointerEvent = e, this.latestPanInfo = t, this.stop(e, t), this.latestPointerEvent = null, this.latestPanInfo = null;
}, s = () => {
@@ -20146,7 +20159,7 @@ var Fre = /* @__PURE__ */ new WeakMap(), Ire = class {
y: 0
});
}, { dragSnapToOrigin: c } = this.getProps();
- this.panSession = new zb(e, {
+ this.panSession = new Ub(e, {
onSessionStart: r,
onStart: i,
onMove: a,
@@ -20166,7 +20179,7 @@ var Fre = /* @__PURE__ */ new WeakMap(), Ire = class {
let { velocity: o } = i;
this.startAnimation(o, n);
let { onDragEnd: s } = this.getProps();
- s && pg.postRender(() => s(r, i));
+ s && _g.postRender(() => s(r, i));
}
cancel() {
this.isDragging = !1;
@@ -20178,26 +20191,26 @@ var Fre = /* @__PURE__ */ new WeakMap(), Ire = class {
}
updateAxis(e, t) {
let { drag: n } = this.readProps();
- if (!t || !nx(e, n, this.currentDirection)) return;
+ if (!t || !ox(e, n, this.currentDirection)) return;
let r = this.getAxisMotionValue(e), i = this.originPoint[e] + t[e], a = this.constraints && this.constraints[e];
- a && (i = kre(i, a, this.elastic[e])), this.point ? this.point[e] = i : r.set(i);
+ a && (i = Are(i, a, this.elastic[e])), this.point ? this.point[e] = i : r.set(i);
}
resolveConstraints() {
let { dragConstraints: e, dragElastic: t } = this.getProps(), { projection: n } = this.visualElement, r = n && (n.layout || n.measure(!1)), i = this.constraints;
- $b(e) ? this.constraints && this.scroll === Qb(n) || (this.constraints = this.resolveRefConstraints()) : this.constraints = e && r && typeof e == "object" ? Are(r.layoutBox, e) : !1, this.elastic = Pre(t), i !== this.constraints && !$b(e) && r && this.constraints && !this.hasMutatedConstraints && qy((e) => {
- this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = Nre(r.layoutBox[e], this.constraints[e]));
+ rx(e) ? this.constraints && this.scroll === nx(n) || (this.constraints = this.resolveRefConstraints()) : this.constraints = e && r && typeof e == "object" ? jre(r.layoutBox, e) : !1, this.elastic = Fre(t), i !== this.constraints && !rx(e) && r && this.constraints && !this.hasMutatedConstraints && Zy((e) => {
+ this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = Pre(r.layoutBox[e], this.constraints[e]));
});
}
resolveRefConstraints() {
let { dragConstraints: e, onMeasureDragConstraints: t } = this.getProps();
- if (!$b(e)) return !1;
- let n = ex(e), { projection: r } = this.visualElement;
+ if (!rx(e)) return !1;
+ let n = ix(e), { projection: r } = this.visualElement;
if (!r || !r.layout) return !1;
- this.scroll = Qb(r);
- let i = cne(n, r.root, this.visualElement.getTransformPagePoint()), a = jre(r.layout.layoutBox, r.removeElementScroll(i));
+ this.scroll = nx(r);
+ let i = lne(n, r.root, this.visualElement.getTransformPagePoint()), a = Mre(r.layout.layoutBox, r.removeElementScroll(i));
if (t) {
- let e = t(ane(a));
- this.hasMutatedConstraints = !!e, e && (a = Kv(e));
+ let e = t(one(a));
+ this.hasMutatedConstraints = !!e, e && (a = Xv(e));
}
return a;
}
@@ -20209,13 +20222,13 @@ var Fre = /* @__PURE__ */ new WeakMap(), Ire = class {
restDelta: 1,
restSpeed: 10,
...a
- }, l = (i) => r && !(this.point && o) && nx(i, t || n, this.currentDirection) ? e[i] : 0;
+ }, l = (i) => r && !(this.point && o) && ox(i, t || n, this.currentDirection) ? e[i] : 0;
if (this.point && !o) return this.point.release({
x: l("x"),
y: l("y")
}, c).then(s);
- let u = this.constraints || {}, d = qy((e) => {
- if (!nx(e, t || n, this.currentDirection)) return;
+ let u = this.constraints || {}, d = Zy((e) => {
+ if (!ox(e, t || n, this.currentDirection)) return;
let r = u[e] || {};
(o === !0 || o === e) && (r = {
min: 0,
@@ -20233,10 +20246,10 @@ var Fre = /* @__PURE__ */ new WeakMap(), Ire = class {
}
startAxisValueAnimation(e, t) {
let n = this.getAxisMotionValue(e);
- return _v(this.visualElement, e), n.start(uv(e, n, 0, t, this.visualElement, !1));
+ return xv(this.visualElement, e), n.start(mv(e, n, 0, t, this.visualElement, !1));
}
stopAnimation() {
- qy((e) => this.getAxisMotionValue(e).stop());
+ Zy((e) => this.getAxisMotionValue(e).stop());
}
getAxisMotionValue(e) {
let t = `_drag${e.toUpperCase()}`;
@@ -20247,50 +20260,50 @@ var Fre = /* @__PURE__ */ new WeakMap(), Ire = class {
x: e,
y: t
}, i = this.visualElement.getTransformPagePoint()?.(r) || r, a = this.visualElement.measureViewportBox();
- qy((e) => {
- if (!nx(e, n, this.currentDirection)) return;
+ Zy((e) => {
+ if (!ox(e, n, this.currentDirection)) return;
let t = this.getAxisMotionValue(e), { min: r, max: o } = a[e];
- t.set((t.get() || 0) + i[e] - ng(r, o, .5));
+ t.set((t.get() || 0) + i[e] - og(r, o, .5));
});
}
scalePositionWithinConstraints() {
if (!this.visualElement.current) return;
let { drag: e, dragConstraints: t } = this.getProps(), { projection: n } = this.visualElement;
- if (!$b(t) || !n || !this.constraints) return;
+ if (!rx(t) || !n || !this.constraints) return;
this.stopAnimation();
let r = this.constraints, i = {
x: 0,
y: 0
};
- qy((e) => {
+ Zy((e) => {
let t = this.getAxisMotionValue(e).get();
- i[e] = Mre({
+ i[e] = Nre({
min: t,
max: t
}, r[e]);
});
let { transformTemplate: a } = this.visualElement.getProps();
- this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root?.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), qy((t) => {
+ this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root?.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), Zy((t) => {
let n = this.getAxisMotionValue(t);
- if (!nx(t, e, null) || !n.get()) return;
+ if (!ox(t, e, null) || !n.get()) return;
let { min: r, max: a } = this.constraints[t];
- n.set(ng(r, a, i[t]));
+ n.set(og(r, a, i[t]));
}), this.visualElement.render();
}
addListeners() {
if (!this.visualElement.current) return;
- Fre.set(this.visualElement, this);
- let e = this.visualElement.current, t = Ab(e, "pointerdown", (t) => {
- let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && Dre(i);
+ Ire.set(this.visualElement, this);
+ let e = this.visualElement.current, t = Pb(e, "pointerdown", (t) => {
+ let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && Ore(i);
n && r && !a && this.start(t);
}), n, r = () => {
- let { dragConstraints: t } = this.getProps(), r = $b(t) && ex(t);
- r && (this.constraints = this.resolveRefConstraints(), n ||= Lre(e, r, () => this.scalePositionWithinConstraints()));
+ let { dragConstraints: t } = this.getProps(), r = rx(t) && ix(t);
+ r && (this.constraints = this.resolveRefConstraints(), n ||= Rre(e, r, () => this.scalePositionWithinConstraints()));
}, { projection: i } = this.visualElement, a = i.addEventListener("measure", r);
- i.layout || (i.root?.updateScroll(), i.updateLayout()), pg.read(r);
- let o = cb(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
- this.isDragging && t && (qy((t) => {
- if (!nx(t, this.getProps().drag, this.currentDirection)) return;
+ i.layout || (i.root?.updateScroll(), i.updateLayout()), _g.read(r);
+ let o = fb(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
+ this.isDragging && t && (Zy((t) => {
+ if (!ox(t, this.getProps().drag, this.currentDirection)) return;
let n = this.getAxisMotionValue(t);
this.originPoint[t] += e[t].translate, n.set(n.get() + e[t].translate);
}), this.visualElement.render());
@@ -20300,7 +20313,7 @@ var Fre = /* @__PURE__ */ new WeakMap(), Ire = class {
};
}
getProps() {
- let e = this.readProps(), { dragElastic: t = Yb, dragMomentum: n = !0 } = e;
+ let e = this.readProps(), { dragElastic: t = $b, dragMomentum: n = !0 } = e;
return {
...e,
dragElastic: t,
@@ -20308,32 +20321,32 @@ var Fre = /* @__PURE__ */ new WeakMap(), Ire = class {
};
}
};
-function $b(e) {
+function rx(e) {
return !!e && typeof e == "object" && ("current" in e || "nodeType" in e);
}
-var ex = (e) => "current" in e ? e.current : e;
-function tx(e) {
+var ix = (e) => "current" in e ? e.current : e;
+function ax(e) {
let t = !0;
return () => {
t ? t = !1 : e();
};
}
-function Lre(e, t, n) {
- let r = Ib(e, tx(n)), i = Ib(t, tx(n));
+function Rre(e, t, n) {
+ let r = Bb(e, ax(n)), i = Bb(t, ax(n));
return () => {
r(), i();
};
}
-function nx(e, t, n) {
+function ox(e, t, n) {
return (t === !0 || t === e) && (n === null || n === e);
}
-function Rre(e, t = 10) {
+function zre(e, t = 10) {
let n = null;
return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
}
// node_modules/motion-dom/dist/es/gestures/utils/setup.mjs
-function rx(e, t) {
- let n = Pv(e), r = new AbortController();
+function sx(e, t) {
+ let n = Rv(e), r = new AbortController();
return [
n,
{
@@ -20341,16 +20354,16 @@ function rx(e, t) {
...t,
signal: r.signal
},
- Mv(() => r.abort())
+ Iv(() => r.abort())
];
}
// node_modules/motion-dom/dist/es/gestures/hover.mjs
-function zre(e) {
- return !(e.pointerType === "touch" || Kb());
+function Bre(e) {
+ return !(e.pointerType === "touch" || Xb());
}
-function Bre(e, t, n = {}) {
- t = Nv(t);
- let [r, i, a] = rx(e, n);
+function Vre(e, t, n = {}) {
+ t = Lv(t);
+ let [r, i, a] = sx(e, n);
return r.forEach((e) => {
let n = !1, r = !1, a, o = () => {
e.removeEventListener("pointerleave", u);
@@ -20364,7 +20377,7 @@ function Bre(e, t, n = {}) {
e.pointerType !== "touch" && (n ? r = !0 : s(e));
};
e.addEventListener("pointerenter", (n) => {
- if (!zre(n)) return;
+ if (!Bre(n)) return;
r = !1;
let o = t(e, n);
typeof o == "function" && (a = o, e.addEventListener("pointerleave", u, i));
@@ -20372,71 +20385,71 @@ function Bre(e, t, n = {}) {
}), a;
}
// node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs
-var ix = (e, t) => t ? e === t || ix(e, t.parentElement) : !1, ax = /* @__PURE__ */ new WeakSet();
+var cx = (e, t) => t ? e === t || cx(e, t.parentElement) : !1, lx = /* @__PURE__ */ new WeakSet();
// node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs
-function ox(e) {
+function ux(e) {
return (t) => {
t.key === "Enter" && e(t);
};
}
-function sx(e, t) {
+function dx(e, t) {
e.dispatchEvent(new PointerEvent("pointer" + t, {
isPrimary: !0,
bubbles: !0
}));
}
-var Vre = (e, t) => {
- let n = !1, r = ox(() => {
- ax.has(e) || (n = !0, sx(e, "down"));
- }), i = ox(() => {
- n && (n = !1, sx(e, "up"));
+var Hre = (e, t) => {
+ let n = !1, r = ux(() => {
+ lx.has(e) || (n = !0, dx(e, "down"));
+ }), i = ux(() => {
+ n && (n = !1, dx(e, "up"));
});
e.addEventListener("keydown", r, t), e.addEventListener("keyup", i, t), e.addEventListener("blur", () => {
- e.removeEventListener("keydown", r), e.removeEventListener("keyup", i), n && sx(e, "cancel");
+ e.removeEventListener("keydown", r), e.removeEventListener("keyup", i), n && dx(e, "cancel");
}, {
...t,
once: !0
});
};
// node_modules/motion-dom/dist/es/gestures/press/index.mjs
-function cx(e) {
- return Ob(e) && !Kb();
+function fx(e) {
+ return Mb(e) && !Xb();
}
-var lx = /* @__PURE__ */ new WeakSet();
-function Hre(e, t, n = {}) {
- t = Nv(t);
- let [r, i, a] = rx(e, n), o = (e) => {
+var px = /* @__PURE__ */ new WeakSet();
+function Ure(e, t, n = {}) {
+ t = Lv(t);
+ let [r, i, a] = sx(e, n), o = (e) => {
let r = e.currentTarget;
- if (!cx(e) || lx.has(e)) return;
- ax.add(r), n.stopPropagation && lx.add(e);
+ if (!fx(e) || px.has(e)) return;
+ lx.add(r), n.stopPropagation && px.add(e);
let a = t(r, e), o = {
...i,
capture: !0
}, s = (e, t) => {
- window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), ax.has(r) && ax.delete(r), cx(e) && typeof a == "function" && a(e, { success: t });
+ window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), lx.has(r) && lx.delete(r), fx(e) && typeof a == "function" && a(e, { success: t });
}, c = (e) => {
- s(e, r === window || r === document || n.useGlobalTarget || ix(r, e.target));
+ s(e, r === window || r === document || n.useGlobalTarget || cx(r, e.target));
}, l = (e) => {
s(e, !1);
};
window.addEventListener("pointerup", c, o), window.addEventListener("pointercancel", l, o);
};
return r.forEach((e) => {
- (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), kv(e) && (e.addEventListener("focus", () => Vre(e, i), i), !Tre(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
+ (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), Nv(e) && (e.addEventListener("focus", () => Hre(e, i), i), !Ere(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
}), a;
}
// node_modules/motion-dom/dist/es/render/dom/style-computed.mjs
-function ux(e, t) {
+function mx(e, t) {
let n = window.getComputedStyle(e);
- return T_(t) ? n.getPropertyValue(t) : n[t];
+ return k_(t) ? n.getPropertyValue(t) : n[t];
}
// node_modules/motion-dom/dist/es/render/Feature.mjs
-var dx = class {
+var hx = class {
constructor(e) {
this.isMounted = !1, this.node = e;
}
update() {}
-}, fx = /* @__PURE__ */ new Set([
+}, gx = /* @__PURE__ */ new Set([
"baseFrequency",
"diffuseConstant",
"kernelMatrix",
@@ -20460,58 +20473,58 @@ var dx = class {
"startOffset",
"textLength",
"lengthAdjust"
-]), px = (e) => typeof e == "string" && e.toLowerCase() === "svg";
+]), _x = (e) => typeof e == "string" && e.toLowerCase() === "svg";
// node_modules/motion-dom/dist/es/render/svg/utils/render.mjs
-function Ure(e, t, n, r) {
- Tb(e, t, void 0, r);
- for (let n in t.attrs) e.setAttribute(fx.has(n) ? n : Bv(n), t.attrs[n]);
+function Wre(e, t, n, r) {
+ kb(e, t, void 0, r);
+ for (let n in t.attrs) e.setAttribute(gx.has(n) ? n : Wv(n), t.attrs[n]);
}
// node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs
-function mx(e, t, n) {
- let r = Db(e, t, n);
- for (let n in e) if (n !== "children" && (gv(e[n]) || gv(t[n]))) {
- let t = d_.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
+function vx(e, t, n) {
+ let r = jb(e, t, n);
+ for (let n in e) if (n !== "children" && (bv(e[n]) || bv(t[n]))) {
+ let t = h_.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
r[t] = e[n];
}
return r;
}
// node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs
-var Wre = class extends wb {
+var Gre = class extends Ob {
constructor() {
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = Ly;
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = Vy;
}
getBaseTargetFromProps(e, t) {
- return f_.has(t) ? super.getBaseTargetFromProps(e, t) ?? c_(t) : e[t];
+ return g_.has(t) ? super.getBaseTargetFromProps(e, t) ?? f_(t) : e[t];
}
getDefaultValue(e) {
- return f_.has(e) ? this.latestValues[e] ?? c_(e) : void 0;
+ return g_.has(e) ? this.latestValues[e] ?? f_(e) : void 0;
}
readValueFromInstance(e, t) {
- if (f_.has(t)) {
- let e = $g(t);
+ if (g_.has(t)) {
+ let e = r_(t);
return e && e.default || 0;
}
- if (Hv.includes(t)) {
+ if (Kv.includes(t)) {
let n = getComputedStyle(e)[t];
if (typeof n == "string" && n) return n.trim();
}
- return t = fx.has(t) ? t : Bv(t), e.getAttribute(t);
+ return t = gx.has(t) ? t : Wv(t), e.getAttribute(t);
}
scrapeMotionValuesFromProps(e, t, n) {
- return mx(e, t, n);
+ return vx(e, t, n);
}
build(e, t, n) {
- Uv(e, t, this.isSVGTag, n.transformTemplate, n.style);
+ qv(e, t, this.isSVGTag, n.transformTemplate, n.style);
}
renderInstance(e, t, n, r) {
- Ure(e, t, n, r);
+ Wre(e, t, n, r);
}
mount(e) {
- this.isSVGTag = px(e.tagName), super.mount(e);
+ this.isSVGTag = _x(e.tagName), super.mount(e);
}
};
// node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs
-function hx(e, t) {
+function yx(e, t) {
if (!Array.isArray(t)) return !1;
let n = t.length;
if (n !== e.length) return !1;
@@ -20519,18 +20532,18 @@ function hx(e, t) {
return !0;
}
// node_modules/motion-dom/dist/es/render/utils/animation-state.mjs
-var Gre = [...mb].reverse(), gx = (e) => e?.out === !0 ? e : e?.out;
-function Kre(e) {
- let t = (t) => Promise.all(t.map(({ animation: t, options: n }) => Lte(e, t, n))), n = _x(), r = !0, i = !1;
+var Kre = [...vb].reverse(), bx = (e) => e?.out === !0 ? e : e?.out;
+function qre(e) {
+ let t = (t) => Promise.all(t.map(({ animation: t, options: n }) => Rte(e, t, n))), n = xx(), r = !0, i = !1;
function a(a) {
- let { props: o, parent: s, manuallyAnimateOnMount: c } = e, { initial: l } = o, u = r || i, d = [], f = (t = l) => typeof t != "boolean" && pv(e, Array.isArray(t) ? t[0] : t, e.presenceContext?.custom) || void 0, p = /* @__PURE__ */ new Map(), m = {}, h = Infinity, g = e;
+ let { props: o, parent: s, manuallyAnimateOnMount: c } = e, { initial: l } = o, u = r || i, d = [], f = (t = l) => typeof t != "boolean" && _v(e, Array.isArray(t) ? t[0] : t, e.presenceContext?.custom) || void 0, p = /* @__PURE__ */ new Map(), m = {}, h = Infinity, g = e;
do
g = g.props.inherit !== !1 && g.parent;
while (g && !g.isControllingVariants);
- let _ = u && gx(f(l ?? (g && g.props.initial))?.transition);
- if (Gre.forEach((t, r) => {
- let i = n[t], l = o[t], f = g && g.props[t], v = l === void 0 ? pb(f) || f === !1 ? f : void 0 : l, y = pb(v), b = t === a ? i.isActive : null, x = y && l === void 0 && !(u && c);
- if (i.protectedKeys = { ...m }, !i.isActive && b === null || !v && !i.prevProp || fb(v) || typeof v == "boolean") return;
+ let _ = u && bx(f(l ?? (g && g.props.initial))?.transition);
+ if (Kre.forEach((t, r) => {
+ let i = n[t], l = o[t], f = g && g.props[t], v = l === void 0 ? _b(f) || f === !1 ? f : void 0 : l, y = _b(v), b = t === a ? i.isActive : null, x = y && l === void 0 && !(u && c);
+ if (i.protectedKeys = { ...m }, !i.isActive && b === null || !v && !i.prevProp || gb(v) || typeof v == "boolean") return;
if (b === !1 && (h = r), t === "exit" && i.isActive && b !== !0) {
m = {
...m,
@@ -20538,14 +20551,14 @@ function Kre(e) {
};
return;
}
- let S = qre(i.prevProp, v), C = S || y && (b && !x || r > h), w = !1, T = Array.isArray(v) ? v : [v], E = {}, D;
+ let S = Jre(i.prevProp, v), C = S || y && (b && !x || r > h), w = !1, T = Array.isArray(v) ? v : [v], E = {}, D;
if (b !== !1) for (let n of T) {
- let { transition: r, transitionEnd: i, ...a } = pv(e, n, mv(e, t)) || {};
+ let { transition: r, transitionEnd: i, ...a } = _v(e, n, vv(e, t)) || {};
E = {
...E,
...a,
...i
- }, D = gx(r) || D;
+ }, D = bx(r) || D;
}
let { prevResolvedValues: O } = i;
for (let t in {
@@ -20553,7 +20566,7 @@ function Kre(e) {
...E
}) {
if (t in m) continue;
- let n = E[t], r = O[t], a = Array.isArray(n) && Array.isArray(r) ? !hx(n, r) || S : n !== r, o;
+ let n = E[t], r = O[t], a = Array.isArray(n) && Array.isArray(r) ? !yx(n, r) || S : n !== r, o;
if (a && n == null) p.has(t) || p.set(t, i.prevOut);
else if (a || n !== void 0 && p.has(t)) {
C = !0, o = p.get(t) || _, p.delete(t) && (w = !0), i.needsAnimating[t] = !0;
@@ -20568,8 +20581,8 @@ function Kre(e) {
}), C && (!(x && S) || w)) for (let n of T) {
let r = { type: t };
if (typeof n == "string" && u && c && s?.enteringChildren) {
- let t = pv(s, n)?.transition?.delayChildren;
- r.delay = rv(s.enteringChildren, e, t);
+ let t = _v(s, n)?.transition?.delayChildren;
+ r.delay = sv(s.enteringChildren, e, t);
}
d.push({
animation: n,
@@ -20586,7 +20599,7 @@ function Kre(e) {
let s = e.getValue(a);
s && (s.liveStyle = !0);
let c = n && !Array.isArray(l) ? n[a] : void 0, u = e.getBaseTargetFromProps(o, a);
- t[a] = (c === void 0 ? u !== void 0 && !gv(u) ? u : e.initialValues[a] === void 0 ? e.baseTarget[a] : void 0 : c) ?? null;
+ t[a] = (c === void 0 ? u !== void 0 && !bv(u) ? u : e.initialValues[a] === void 0 ? e.baseTarget[a] : void 0 : c) ?? null;
}), r && (t.transition = r), d.push({ animation: t });
}
let v = u && e.blockInitialAnimation || r && !c && (o.initial === !1 || o.initial === o.animate);
@@ -20607,16 +20620,16 @@ function Kre(e) {
},
getState: () => n,
reset: () => {
- n = _x(), i = !0;
+ n = xx(), i = !0;
}
};
}
-function qre(e, t) {
- return typeof t == "string" ? t !== e : Array.isArray(t) ? !hx(t, e) : !1;
+function Jre(e, t) {
+ return typeof t == "string" ? t !== e : Array.isArray(t) ? !yx(t, e) : !1;
}
-function _x() {
+function xx() {
let e = {};
- for (let t of mb) e[t] = {
+ for (let t of vb) e[t] = {
isActive: t === "animate",
protectedKeys: {},
needsAnimating: {},
@@ -20626,55 +20639,55 @@ function _x() {
return e;
}
// node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs
-var vx = /* @__PURE__ */ (0, F.createContext)({
+var Sx = /* @__PURE__ */ (0, F.createContext)({
transformPagePoint: (e) => e,
isStatic: !1,
reducedMotion: "never"
});
// node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs
-function yx(e, t) {
+function Cx(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
-function Jre(...e) {
+function Yre(...e) {
return (t) => {
let n = !1, r = e.map((e) => {
- let r = yx(e, t);
+ let r = Cx(e, t);
return !n && typeof r == "function" && (n = !0), r;
});
if (n) return () => {
for (let t = 0; t < r.length; t++) {
let n = r[t];
- typeof n == "function" ? n() : yx(e[t], null);
+ typeof n == "function" ? n() : Cx(e[t], null);
}
};
};
}
-function Yre(...e) {
- return F.useCallback(Jre(...e), e);
+function Xre(...e) {
+ return F.useCallback(Yre(...e), e);
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
-var bx = (e) => {
+var wx = (e) => {
let { width: t, height: n } = e?.getBoundingClientRect() || {};
return [t / e?.offsetWidth || 1, n / e?.offsetHeight || 1];
-}, xx = (e) => {
+}, Tx = (e) => {
let { left: t, top: n } = e.getBoundingClientRect(), r = e;
for (; r = r.parentElement || r.parentNode?.host;) {
let { scrollLeft: e, scrollTop: i } = r;
if (e || i) {
- let [a, o] = bx(r);
+ let [a, o] = wx(r);
t += e * a, n += i * o;
}
if (getComputedStyle(r).position === "fixed") break;
}
- let [i, a] = bx(e.offsetParent);
+ let [i, a] = wx(e.offsetParent);
return [t / i, n / a];
-}, Xre = class extends F.Component {
+}, Zre = class extends F.Component {
getSnapshotBeforeUpdate(e) {
let t = this.props.getElement();
- if (kv(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
- let e = t.offsetParent, n = kv(e) && e.offsetWidth || 0, r = kv(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
- a.height = parseFloat(i.height), a.width = parseFloat(i.width), a.top = t.offsetTop, a.left = t.offsetLeft, a.right = n - a.width - a.left, a.bottom = r - a.height - a.top, a.direction = i.direction, a.point = xx(t);
+ if (Nv(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
+ let e = t.offsetParent, n = Nv(e) && e.offsetWidth || 0, r = Nv(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
+ a.height = parseFloat(i.height), a.width = parseFloat(i.width), a.top = t.offsetTop, a.left = t.offsetLeft, a.right = n - a.width - a.left, a.bottom = r - a.height - a.top, a.direction = i.direction, a.point = Tx(t);
}
return null;
}
@@ -20683,7 +20696,7 @@ var bx = (e) => {
return this.props.children;
}
};
-function Zre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a, popNode: o }) {
+function Qre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a, popNode: o }) {
let s = (0, F.useId)(), c = (0, F.useRef)(null), l = (0, F.useRef)({
width: 0,
height: 0,
@@ -20692,7 +20705,7 @@ function Zre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
right: 0,
bottom: 0,
direction: "ltr"
- }), { nonce: u } = (0, F.useContext)(vx), d = Yre(c, a === !1 ? void 0 : e.props?.ref ?? e?.ref), f = () => c.current || o?.current?.current, p = (e) => {
+ }), { nonce: u } = (0, F.useContext)(Sx), d = Xre(c, a === !1 ? void 0 : e.props?.ref ?? e?.ref), f = () => c.current || o?.current?.current, p = (e) => {
let { width: t, height: i, top: a, left: o, right: c, bottom: u, direction: d } = l.current, f = d === "rtl", p = n === "left" ? f ? `right:${c}` : `left:${o}` : f ? `left:${o}` : `right:${c}`, m = r === "bottom" ? `bottom:${u}` : `top:${a}`;
e?.insertRule(`[data-motion-pop-id="${s}"]{position:absolute!important;width:${t}px!important;height:${i}px!important;${p}px!important;${m}px!important}`);
};
@@ -20705,10 +20718,10 @@ function Zre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
let d = i ?? o.head;
d.appendChild(c), p(c.sheet);
let m = 0, h = 0;
- return dy.setup(() => {
- let [e, t] = xx(r);
+ return hy.setup(() => {
+ let [e, t] = Tx(r);
m = l.current.point[0] - e, h = l.current.point[1] - t;
- }), dy.read(() => {
+ }), hy.read(() => {
let { sheet: e } = c;
if (!e || !m && !h) return;
let t = l.current;
@@ -20716,7 +20729,7 @@ function Zre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
}), () => {
r.removeAttribute("data-motion-pop-id"), d.contains(c) && d.removeChild(c);
};
- }, [t]), (0, I.jsx)(Xre, {
+ }, [t]), (0, I.jsx)(Zre, {
isPresent: t,
getElement: f,
sizeRef: l,
@@ -20725,9 +20738,9 @@ function Zre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
});
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
-var Qre = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
- let u = hm($re), d = (0, F.useId)(), f = (0, F.useRef)(), p = (0, F.useRef)(n), m = (0, F.useRef)(r);
- gm(() => {
+var $re = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
+ let u = bm(eie), d = (0, F.useId)(), f = (0, F.useRef)(), p = (0, F.useRef)(n), m = (0, F.useRef)(r);
+ xm(() => {
p.current = n, m.current = r;
});
let h = !0, g = (0, F.useMemo)(() => (h = !1, {
@@ -20752,7 +20765,7 @@ var Qre = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i
u.forEach((e, t) => u.set(t, !1));
}, [n]), F.useEffect(() => {
!n && !u.size && r && r();
- }, [n]), e = (0, I.jsx)(Zre, {
+ }, [n]), e = (0, I.jsx)(Qre, {
pop: o === "popLayout",
isPresent: n,
anchorX: s,
@@ -20760,17 +20773,17 @@ var Qre = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i
root: l,
popNode: f,
children: e
- }), (0, I.jsx)(_m.Provider, {
+ }), (0, I.jsx)(Sm.Provider, {
value: g,
children: e
});
};
-function $re() {
+function eie() {
return /* @__PURE__ */ new Map();
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
-function Sx(e = !0) {
- let t = (0, F.useContext)(_m);
+function Ex(e = !0) {
+ let t = (0, F.useContext)(Sm);
if (t === null) return [!0, null];
let { isPresent: n, onExitComplete: r, register: i } = t, a = (0, F.useId)();
(0, F.useEffect)(() => {
@@ -20783,24 +20796,24 @@ function Sx(e = !0) {
]);
return !n && r ? [!1, o] : [!0];
}
-function Cx() {
- return eie((0, F.useContext)(_m));
+function Dx() {
+ return tie((0, F.useContext)(Sm));
}
-function eie(e) {
+function tie(e) {
return e === null || e.isPresent;
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs
-var wx = (e) => e.key || "";
-function Tx(e) {
+var Ox = (e) => e.key || "";
+function kx(e) {
let t = [];
return F.Children.forEach(e, (e) => {
(0, F.isValidElement)(e) && t.push(e);
}), t;
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
-var Ex = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
- let [u, d] = Sx(o), f = (0, F.useMemo)(() => Tx(e), [e]), p = o && !u ? [] : f.map(wx), m = (0, F.useRef)(!0), h = hm(() => /* @__PURE__ */ new Map()), g = (0, F.useRef)(/* @__PURE__ */ new Set()), [_, v] = (0, F.useState)(f), [y, b] = (0, F.useState)(f);
- gm(() => {
+var Ax = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
+ let [u, d] = Ex(o), f = (0, F.useMemo)(() => kx(e), [e]), p = o && !u ? [] : f.map(Ox), m = (0, F.useRef)(!0), h = bm(() => /* @__PURE__ */ new Map()), g = (0, F.useRef)(/* @__PURE__ */ new Set()), [_, v] = (0, F.useState)(f), [y, b] = (0, F.useState)(f);
+ xm(() => {
o && !u && !y.length && d?.();
}, [
u,
@@ -20812,10 +20825,10 @@ var Ex = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
(0, F.useEffect)(() => () => {
let e = x.current;
x.current = void 0, e?.();
- }, [y]), gm(() => {
+ }, [y]), xm(() => {
m.current = !1;
for (let e = 0; e < y.length; e++) {
- let t = wx(y[e]);
+ let t = Ox(y[e]);
p.includes(t) ? (h.delete(t), g.current.delete(t)) : h.get(t) !== !0 && h.set(t, !1);
}
}, [
@@ -20827,15 +20840,15 @@ var Ex = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
if (f !== _) {
let e = [...f], t = 0;
for (let n of y) {
- let r = p.indexOf(wx(n));
+ let r = p.indexOf(Ox(n));
r === -1 ? (e.splice(t++, 0, n), S.push(n)) : t = r + S.length + 1;
}
- return S.every((e) => h.get(wx(e))) ? e = f : a === "wait" && (e = S), b(Tx(e)), v(f), null;
+ return S.every((e) => h.get(Ox(e))) ? e = f : a === "wait" && (e = S), b(kx(e)), v(f), null;
}
- let { forceRender: C } = (0, F.useContext)(mm);
+ let { forceRender: C } = (0, F.useContext)(ym);
return (0, I.jsx)(I.Fragment, { children: y.map((e) => {
- let _ = wx(e), b = o && !u ? !1 : f === y || p.includes(_);
- return (0, I.jsx)(Qre, {
+ let _ = Ox(e), b = o && !u ? !1 : f === y || p.includes(_);
+ return (0, I.jsx)($re, {
isPresent: b,
initial: !m.current || n ? void 0 : !1,
custom: t,
@@ -20856,8 +20869,8 @@ var Ex = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
children: e
}, _);
}) });
-}, Dx = /* @__PURE__ */ (0, F.createContext)({ strict: !1 }), Ox = {
- animation: ["variants", ...mb],
+}, jx = /* @__PURE__ */ (0, F.createContext)({ strict: !1 }), Mx = {
+ animation: ["variants", ...vb],
exit: ["exit"],
drag: ["drag", "dragControls"],
focus: ["whileFocus"],
@@ -20884,32 +20897,32 @@ var Ex = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
"onViewportLeave"
],
layout: ["layout", "layoutId"]
-}, kx = !1;
-function tie() {
- if (kx) return;
+}, Nx = !1;
+function nie() {
+ if (Nx) return;
let e = {};
- for (let t in Ox) e[t] = { isEnabled: (e) => Ox[t].some((t) => !!e[t]) };
- Cb(e), kx = !0;
+ for (let t in Mx) e[t] = { isEnabled: (e) => Mx[t].some((t) => !!e[t]) };
+ Db(e), Nx = !0;
}
-function Ax() {
- return tie(), cre();
+function Px() {
+ return nie(), lre();
}
// node_modules/framer-motion/dist/es/motion/features/load-features.mjs
-function nie(e) {
- let t = Ax();
+function rie(e) {
+ let t = Px();
for (let n in e) t[n] = {
...t[n],
...e[n]
};
- Cb(t);
+ Db(t);
}
// node_modules/framer-motion/dist/es/components/MotionConfig/index.mjs
-function rie({ children: e, ...t }) {
- let n = (0, F.useContext)(vx);
+function iie({ children: e, ...t }) {
+ let n = (0, F.useContext)(Sx);
t = {
...n,
...t
- }, t.transition = cv(t.transition, n.transition), t.isStatic = hm(() => t.isStatic);
+ }, t.transition = fv(t.transition, n.transition), t.isStatic = bm(() => t.isStatic);
let r = (0, F.useMemo)(() => t, [
JSON.stringify(t.transition),
t.transformPagePoint,
@@ -20917,77 +20930,77 @@ function rie({ children: e, ...t }) {
t.skipAnimations,
t.isValidProp
]);
- return (0, I.jsx)(vx.Provider, {
+ return (0, I.jsx)(Sx.Provider, {
value: r,
children: e
});
}
// node_modules/framer-motion/dist/es/context/MotionContext/index.mjs
-var jx = /* @__PURE__ */ (0, F.createContext)({});
+var Fx = /* @__PURE__ */ (0, F.createContext)({});
// node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
-function iie(e, t) {
- if (gb(e)) {
+function aie(e, t) {
+ if (bb(e)) {
let { initial: t, animate: n } = e;
return {
- initial: t === !1 || pb(t) ? t : void 0,
- animate: pb(n) ? n : void 0
+ initial: t === !1 || _b(t) ? t : void 0,
+ animate: _b(n) ? n : void 0
};
}
return e.inherit === !1 ? {} : t;
}
// node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
-function aie(e) {
- let { initial: t, animate: n } = iie(e, (0, F.useContext)(jx));
+function oie(e) {
+ let { initial: t, animate: n } = aie(e, (0, F.useContext)(Fx));
return (0, F.useMemo)(() => ({
initial: t,
animate: n
- }), [Mx(t), Mx(n)]);
+ }), [Ix(t), Ix(n)]);
}
-function Mx(e) {
+function Ix(e) {
return Array.isArray(e) ? e.join(" ") : e;
}
// node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs
-var Nx = () => ({
+var Lx = () => ({
style: {},
transform: {},
transformOrigin: {},
vars: {}
});
// node_modules/framer-motion/dist/es/render/html/use-props.mjs
-function Px(e, t, n) {
- for (let r in t) !gv(t[r]) && !Eb(r, n) && (e[r] = t[r]);
+function Rx(e, t, n) {
+ for (let r in t) !bv(t[r]) && !Ab(r, n) && (e[r] = t[r]);
}
-function oie({ transformTemplate: e }, t) {
+function sie({ transformTemplate: e }, t) {
return (0, F.useMemo)(() => {
- let n = Nx();
- return Vv(n, t, e), Object.assign({}, n.vars, n.style);
+ let n = Lx();
+ return Gv(n, t, e), Object.assign({}, n.vars, n.style);
}, [t]);
}
-function sie(e, t) {
+function cie(e, t) {
let n = e.style || {}, r = {};
- return Px(r, n, e), Object.assign(r, oie(e, t)), r;
+ return Rx(r, n, e), Object.assign(r, sie(e, t)), r;
}
-function cie(e, t) {
- let n = {}, r = sie(e, t);
+function lie(e, t) {
+ let n = {}, r = cie(e, t);
return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;
}
// node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs
-var Fx = () => ({
- ...Nx(),
+var zx = () => ({
+ ...Lx(),
attrs: {}
});
// node_modules/framer-motion/dist/es/render/svg/use-props.mjs
-function lie(e, t, n, r) {
+function uie(e, t, n, r) {
let i = (0, F.useMemo)(() => {
- let n = Fx();
- return Uv(n, t, px(r), e.transformTemplate, e.style), {
+ let n = zx();
+ return qv(n, t, _x(r), e.transformTemplate, e.style), {
...n.attrs,
style: { ...n.style }
};
}, [t]);
if (e.style) {
let t = {};
- return Px(t, e.style, e), {
+ return Rx(t, e.style, e), {
...i,
style: {
...t,
@@ -20998,21 +21011,21 @@ function lie(e, t, n, r) {
return i;
}
// node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs
-var uie = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
-function Ix(e) {
- return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || uie.has(e);
+var die = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
+function Bx(e) {
+ return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || die.has(e);
}
// node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs
-function die(e, t) {
- return e.startsWith("on") ? !Ix(e) : t?.(e) ?? !Ix(e);
+function fie(e, t) {
+ return e.startsWith("on") ? !Bx(e) : t?.(e) ?? !Bx(e);
}
-function fie(e, t, n, r) {
+function pie(e, t, n, r) {
let i = {};
- for (let a in e) a === "values" && typeof e.values == "object" || gv(e[a]) || (die(a, r) || n === !0 && Ix(a) || !t && !Ix(a) || e.draggable && a.startsWith("onDrag")) && (i[a] = e[a]);
+ for (let a in e) a === "values" && typeof e.values == "object" || bv(e[a]) || (fie(a, r) || n === !0 && Bx(a) || !t && !Bx(a) || e.draggable && a.startsWith("onDrag")) && (i[a] = e[a]);
return i;
}
// node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs
-var pie = [
+var mie = [
"animate",
"circle",
"defs",
@@ -21040,40 +21053,40 @@ var pie = [
"view"
];
// node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs
-function Lx(e) {
- return typeof e != "string" || e.includes("-") ? !1 : !!(pie.indexOf(e) > -1 || /[A-Z]/u.test(e));
+function Vx(e) {
+ return typeof e != "string" || e.includes("-") ? !1 : !!(mie.indexOf(e) > -1 || /[A-Z]/u.test(e));
}
// node_modules/framer-motion/dist/es/render/dom/use-render.mjs
-function mie(e, t, n, { latestValues: r }, i, a = !1, o, s) {
- let c = (o ?? Lx(e) ? lie : cie)(t, r, i, e), l = fie(t, typeof e == "string", a, s), u = e === F.Fragment ? {} : {
+function hie(e, t, n, { latestValues: r }, i, a = !1, o, s) {
+ let c = (o ?? Vx(e) ? uie : lie)(t, r, i, e), l = pie(t, typeof e == "string", a, s), u = e === F.Fragment ? {} : {
...l,
...c,
ref: n
- }, { children: d } = t, f = (0, F.useMemo)(() => gv(d) ? d.get() : d, [d]);
+ }, { children: d } = t, f = (0, F.useMemo)(() => bv(d) ? d.get() : d, [d]);
return (0, F.createElement)(e, {
...u,
children: f
});
}
// node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs
-function hie({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
+function gie({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
return {
- latestValues: gie(n, r, i, e),
+ latestValues: _ie(n, r, i, e),
renderState: t()
};
}
-function gie(e, t, n, r) {
+function _ie(e, t, n, r) {
let i = {}, a = r(e, {});
- for (let e in a) i[e] = hy(a[e]);
- let { initial: o, animate: s } = e, c = gb(e), l = _b(e);
+ for (let e in a) i[e] = yy(a[e]);
+ let { initial: o, animate: s } = e, c = bb(e), l = xb(e);
t && l && !c && e.inherit !== !1 && (o === void 0 && (o = t.initial), s === void 0 && (s = t.animate));
let u = n ? n.initial === !1 : !1;
u ||= o === !1;
let d = u ? s : o;
- if (d && typeof d != "boolean" && !fb(d)) {
+ if (d && typeof d != "boolean" && !gb(d)) {
let t = Array.isArray(d) ? d : [d];
for (let n = 0; n < t.length; n++) {
- let r = fv(e, t[n]);
+ let r = gv(e, t[n]);
if (r) {
let { transitionEnd: e, transition: t, ...n } = r;
for (let e in n) {
@@ -21090,18 +21103,18 @@ function gie(e, t, n, r) {
}
return i;
}
-var Rx = (e) => (t, n) => {
- let r = (0, F.useContext)(jx), i = (0, F.useContext)(_m), a = () => hie(e, t, r, i);
- return n ? a() : hm(a);
-}, _ie = /*@__PURE__*/ Rx({
- scrapeMotionValuesFromProps: Db,
- createRenderState: Nx
-}), vie = /*@__PURE__*/ Rx({
- scrapeMotionValuesFromProps: mx,
- createRenderState: Fx
-}), yie = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
+var Hx = (e) => (t, n) => {
+ let r = (0, F.useContext)(Fx), i = (0, F.useContext)(Sm), a = () => gie(e, t, r, i);
+ return n ? a() : bm(a);
+}, vie = /*@__PURE__*/ Hx({
+ scrapeMotionValuesFromProps: jb,
+ createRenderState: Lx
+}), yie = /*@__PURE__*/ Hx({
+ scrapeMotionValuesFromProps: vx,
+ createRenderState: zx
+}), bie = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
// node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
-function bie(e, t, n) {
+function xie(e, t, n) {
let r = (0, F.useRef)(n);
(0, F.useInsertionEffect)(() => {
r.current = n;
@@ -21119,10 +21132,10 @@ function bie(e, t, n) {
}, [t]);
}
// node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs
-var zx = /* @__PURE__ */ (0, F.createContext)({});
+var Ux = /* @__PURE__ */ (0, F.createContext)({});
// node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
-function xie(e, t, n, r, i, a) {
- let { visualElement: o } = (0, F.useContext)(jx), s = (0, F.useContext)(Dx), c = (0, F.useContext)(_m), l = (0, F.useContext)(vx), u = l.reducedMotion, d = l.skipAnimations, f = (0, F.useRef)(null), p = (0, F.useRef)(!1);
+function Sie(e, t, n, r, i, a) {
+ let { visualElement: o } = (0, F.useContext)(Fx), s = (0, F.useContext)(jx), c = (0, F.useContext)(Sm), l = (0, F.useContext)(Sx), u = l.reducedMotion, d = l.skipAnimations, f = (0, F.useRef)(null), p = (0, F.useRef)(!1);
r ||= s.renderer, !f.current && r && (f.current = r(e, {
visualState: t,
parent: o,
@@ -21133,14 +21146,14 @@ function xie(e, t, n, r, i, a) {
skipAnimations: d,
isSVG: a
}), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));
- let m = f.current, h = (0, F.useContext)(zx);
+ let m = f.current, h = (0, F.useContext)(Ux);
m && !m.projection && i && (m.type === "html" || m.type === "svg") && i.create(m, n, h), (0, F.useInsertionEffect)(() => {
m && m.props !== n && m.update(n, c);
});
- let g = n[vv], _ = (0, F.useRef)(!!g && typeof window < "u" && !window.MotionHandoffIsComplete?.(g) && window.MotionHasOptimisedAnimation?.(g));
- return gm(() => {
+ let g = n[Sv], _ = (0, F.useRef)(!!g && typeof window < "u" && !window.MotionHandoffIsComplete?.(g) && window.MotionHasOptimisedAnimation?.(g));
+ return xm(() => {
p.current && m && (m.animationState?.animateChanges(), m.enteringChildren = void 0);
- }, []), gm(() => {
+ }, []), xm(() => {
p.current = !0, m && (window.MotionIsMounted = !0, m.updateFeatures(), m.scheduleRenderMicrotask(), _.current && m.animationState && m.animationState.animateChanges());
}), (0, F.useEffect)(() => {
m && (!_.current && m.animationState && m.animationState.animateChanges(), _.current &&= (queueMicrotask(() => {
@@ -21149,46 +21162,46 @@ function xie(e, t, n, r, i, a) {
}), m;
}
// node_modules/framer-motion/dist/es/motion/index.mjs
-function Bx(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
- r && nie(r);
- let a = n ? n === "svg" : Lx(e), o = a ? vie : _ie;
+function Wx(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
+ r && rie(r);
+ let a = n ? n === "svg" : Vx(e), o = a ? yie : vie;
function s(n, s) {
- let c, l = Sie(n);
- hm(() => !!lb.current?.sharedNodes.get(l)?.lead && n.initial) && (n = {
+ let c, l = Cie(n);
+ bm(() => !!pb.current?.sharedNodes.get(l)?.lead && n.initial) && (n = {
...n,
initial: !1
});
let u = {
- ...(0, F.useContext)(vx),
+ ...(0, F.useContext)(Sx),
...n,
layoutId: l
- }, { isStatic: d, isValidProp: f } = u, p = aie(n), m = o(n, d);
+ }, { isStatic: d, isValidProp: f } = u, p = oie(n), m = o(n, d);
if (!d && typeof window < "u") {
- Cie(u, r);
- let t = wie(u);
- p.visualElement = xie(e, m, u, i, t.ProjectionNode, a), (t.isEnabled || p.visualElement?.projection?.options.layoutId) && (c = t.MeasureLayout);
+ wie(u, r);
+ let t = Tie(u);
+ p.visualElement = Sie(e, m, u, i, t.ProjectionNode, a), (t.isEnabled || p.visualElement?.projection?.options.layoutId) && (c = t.MeasureLayout);
}
- return (0, I.jsxs)(jx.Provider, {
+ return (0, I.jsxs)(Fx.Provider, {
value: p,
children: [c && p.visualElement ? (0, I.jsx)(c, {
visualElement: p.visualElement,
...u
- }) : null, mie(e, n, bie(m, p.visualElement, s), m, d, t, a, f)]
+ }) : null, hie(e, n, xie(m, p.visualElement, s), m, d, t, a, f)]
});
}
s.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
let c = (0, F.forwardRef)(s);
- return c[yie] = e, c;
+ return c[bie] = e, c;
}
-function Sie({ layoutId: e }) {
- let t = (0, F.useContext)(mm).id;
+function Cie({ layoutId: e }) {
+ let t = (0, F.useContext)(ym).id;
return t && e !== void 0 ? t + "-" + e : e;
}
-function Cie(e, t) {
- (0, F.useContext)(Dx).strict;
+function wie(e, t) {
+ (0, F.useContext)(jx).strict;
}
-function wie(e) {
- let { drag: t, layout: n } = Ax();
+function Tie(e) {
+ let { drag: t, layout: n } = Px();
if (!t && !n) return {};
let r = {
...t,
@@ -21201,19 +21214,19 @@ function wie(e) {
};
}
// node_modules/framer-motion/dist/es/render/components/create-proxy.mjs
-function Tie(e, t) {
- if (typeof Proxy > "u") return Bx;
- let n = /* @__PURE__ */ new Map(), r = (n, r) => Bx(n, r, e, t);
- return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, Bx(a, void 0, e, t)), n.get(a)) });
+function Eie(e, t) {
+ if (typeof Proxy > "u") return Wx;
+ let n = /* @__PURE__ */ new Map(), r = (n, r) => Wx(n, r, e, t);
+ return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, Wx(a, void 0, e, t)), n.get(a)) });
}
// node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
-var Eie = (e, t) => t.isSVG ?? Lx(e) ? new Wre(t) : new dre(t, { allowProjection: e !== F.Fragment }), Die = class extends dx {
+var Die = (e, t) => t.isSVG ?? Vx(e) ? new Gre(t) : new fre(t, { allowProjection: e !== F.Fragment }), Oie = class extends hx {
constructor(e) {
- super(e), e.animationState ||= Kre(e);
+ super(e), e.animationState ||= qre(e);
}
updateAnimationControlsSubscription() {
let { animate: e } = this.node.getProps();
- fb(e) && (this.unmountControls = e.subscribe(this.node));
+ gb(e) && (this.unmountControls = e.subscribe(this.node));
}
mount() {
this.updateAnimationControlsSubscription();
@@ -21224,11 +21237,11 @@ var Eie = (e, t) => t.isSVG ?? Lx(e) ? new Wre(t) : new dre(t, { allowProjection
unmount() {
this.node.animationState.reset(), this.unmountControls?.();
}
-}, Oie = 0, kie = {
- animation: { Feature: Die },
- exit: { Feature: class extends dx {
+}, kie = 0, Aie = {
+ animation: { Feature: Oie },
+ exit: { Feature: class extends hx {
constructor() {
- super(...arguments), this.id = Oie++;
+ super(...arguments), this.id = kie++;
}
update() {
let { presenceContext: e, prevPresenceContext: t, animationState: n } = this.node;
@@ -21239,7 +21252,7 @@ var Eie = (e, t) => t.isSVG ?? Lx(e) ? new Wre(t) : new dre(t, { allowProjection
if (this.exit === !0) {
let { initial: e } = this.node.getProps();
if (e && !Array.isArray(e)) {
- let { transition: t, transitionEnd: n, ...r } = pv(this.node, e) || {};
+ let { transition: t, transitionEnd: n, ...r } = _v(this.node, e) || {};
for (let e in r) this.node.getValue(e)?.jump(r[e]);
}
this.node.blockInitialAnimation = !1, n.reset(), n.animateChanges();
@@ -21258,13 +21271,13 @@ var Eie = (e, t) => t.isSVG ?? Lx(e) ? new Wre(t) : new dre(t, { allowProjection
}
unmount() {}
} }
-}, Aie = class extends dx {
+}, jie = class extends hx {
constructor(e) {
- super(e), this.removeGroupControls = Em, this.removeListeners = Em, this.controls = new Ire(e);
+ super(e), this.removeGroupControls = jm, this.removeListeners = jm, this.controls = new Lre(e);
}
mount() {
let { dragControls: e } = this.node.getProps();
- e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || Em;
+ e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || jm;
}
update() {
let { dragControls: e, drag: t } = this.node.getProps(), { dragControls: n, drag: r } = this.node.prevProps || {};
@@ -21273,14 +21286,14 @@ var Eie = (e, t) => t.isSVG ?? Lx(e) ? new Wre(t) : new dre(t, { allowProjection
unmount() {
this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
}
-}, Vx = (e) => (t, n) => {
- e && pg.update(() => e(t, n), !1, !0);
-}, jie = class extends dx {
+}, Gx = (e) => (t, n) => {
+ e && _g.update(() => e(t, n), !1, !0);
+}, Mie = class extends hx {
constructor() {
- super(...arguments), this.removePointerDownListener = Em;
+ super(...arguments), this.removePointerDownListener = jm;
}
onPointerDown(e) {
- this.session = new zb(e, this.createPanHandlers(), {
+ this.session = new Ub(e, this.createPanHandlers(), {
transformPagePoint: this.node.getTransformPagePoint(),
contextWindow: this.node.current?.ownerDocument.defaultView
});
@@ -21288,16 +21301,16 @@ var Eie = (e, t) => t.isSVG ?? Lx(e) ? new Wre(t) : new dre(t, { allowProjection
createPanHandlers() {
let { onPanSessionStart: e, onPanStart: t, onPan: n, onPanEnd: r } = this.node.getProps();
return {
- onSessionStart: Vx(e),
- onStart: Vx(t),
- onMove: Vx(n),
+ onSessionStart: Gx(e),
+ onStart: Gx(t),
+ onMove: Gx(n),
onEnd: (e, t) => {
- delete this.session, r && pg.postRender(() => r(e, t));
+ delete this.session, r && _g.postRender(() => r(e, t));
}
};
}
mount() {
- this.removePointerDownListener = Ab(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
+ this.removePointerDownListener = Pb(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
}
update() {
this.session?.updateHandlers(this.createPanHandlers());
@@ -21305,12 +21318,12 @@ var Eie = (e, t) => t.isSVG ?? Lx(e) ? new Wre(t) : new dre(t, { allowProjection
unmount() {
this.removePointerDownListener(), this.session?.end();
}
-}, Hx = !1, Ux = ({ layout: e, layoutDependency: t, layoutAnchor: n }) => ({
+}, Kx = !1, qx = ({ layout: e, layoutDependency: t, layoutAnchor: n }) => ({
layout: e,
layoutDependency: t,
layoutAnchor: n,
animationType: typeof e == "string" ? e : "both"
-}), Wx = (e, t) => {
+}), Jx = (e, t) => {
let { snapshot: n } = e, r = e.getStack();
r?.remove(e);
let i = r?.lead;
@@ -21319,33 +21332,33 @@ var Eie = (e, t) => t.isSVG ?? Lx(e) ? new Wre(t) : new dre(t, { allowProjection
let { resumeFrom: t } = e;
t?.isPresent !== !1 && e.getStack().members.includes(t) && (t.hide(), e.resumeFrom = void 0, e.snapshot = n);
};
-}, Mie = class extends F.Component {
+}, Nie = class extends F.Component {
componentDidMount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n, layoutId: r } = this.props, { projection: i } = e;
- i && (t.group?.add(i), r && n?.register?.(i), Hx && i.root.didUpdate(), i.options.layoutId !== r && Wx(i, r)?.(), i.addEventListener("animationComplete", () => this.safeToRemove()), i.setOptions({
+ i && (t.group?.add(i), r && n?.register?.(i), Kx && i.root.didUpdate(), i.options.layoutId !== r && Jx(i, r)?.(), i.addEventListener("animationComplete", () => this.safeToRemove()), i.setOptions({
...i.options,
- ...Ux(this.props),
+ ...qx(this.props),
onExitComplete: () => this.safeToRemove()
- })), Jy.hasEverUpdated = !0;
+ })), Qy.hasEverUpdated = !0;
}
getSnapshotBeforeUpdate(e) {
let { layoutDependency: t, layoutId: n, visualElement: r, drag: i, isPresent: a } = this.props, { projection: o } = r;
- return o && (o.isPresent = a, this.takeOver = e.layoutId === n ? void 0 : (o.willUpdate(), Wx(o, n)), o.setOptions({
+ return o && (o.isPresent = a, this.takeOver = e.layoutId === n ? void 0 : (o.willUpdate(), Jx(o, n)), o.setOptions({
...o.options,
- ...Ux(this.props)
- }), Hx = !0, i || e.layoutDependency !== t || t === void 0 || e.isPresent !== a ? o.willUpdate() : this.safeToRemove(), e.isPresent !== a && (a ? o.promote() : o.relegate() || pg.postRender(() => {
+ ...qx(this.props)
+ }), Kx = !0, i || e.layoutDependency !== t || t === void 0 || e.isPresent !== a ? o.willUpdate() : this.safeToRemove(), e.isPresent !== a && (a ? o.promote() : o.relegate() || _g.postRender(() => {
o.getStack()?.members.length || this.safeToRemove();
}))), null;
}
componentDidUpdate() {
let { projection: e } = this.props.visualElement;
- e && (this.takeOver?.(), e.root.didUpdate(), dy.postRender(() => {
+ e && (this.takeOver?.(), e.root.didUpdate(), hy.postRender(() => {
!e.currentAnimation && e.isLead() && this.safeToRemove();
}));
}
componentWillUnmount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n } = this.props, { projection: r } = e;
- Hx = !0, r && (r.scheduleCheckAfterUnmount(), t.group?.remove(r), n?.deregister?.(r));
+ Kx = !0, r && (r.scheduleCheckAfterUnmount(), t.group?.remove(r), n?.deregister?.(r));
}
safeToRemove() {
this.props.safeToRemove?.();
@@ -21354,39 +21367,39 @@ var Eie = (e, t) => t.isSVG ?? Lx(e) ? new Wre(t) : new dre(t, { allowProjection
return null;
}
};
-function Gx(e) {
- let [t, n] = Sx(), r = (0, F.useContext)(mm);
- return (0, I.jsx)(Mie, {
+function Yx(e) {
+ let [t, n] = Ex(), r = (0, F.useContext)(ym);
+ return (0, I.jsx)(Nie, {
...e,
layoutGroup: r,
- switchLayoutGroup: (0, F.useContext)(zx),
+ switchLayoutGroup: (0, F.useContext)(Ux),
isPresent: t,
safeToRemove: n
});
}
// node_modules/framer-motion/dist/es/motion/features/drag.mjs
-var Nie = {
- pan: { Feature: jie },
+var Pie = {
+ pan: { Feature: Mie },
drag: {
- Feature: Aie,
- ProjectionNode: ub,
- MeasureLayout: Gx
+ Feature: jie,
+ ProjectionNode: mb,
+ MeasureLayout: Yx
}
};
// node_modules/framer-motion/dist/es/gestures/hover.mjs
-function Kx(e, t, n, r) {
+function Xx(e, t, n, r) {
let { props: i } = e, a = "while" + n;
e.animationState && i[a] && e.animationState.setActive(a, r === "Start");
let o = i["on" + n + r];
- o && pg.postRender(() => o(t, kb(t)));
+ o && _g.postRender(() => o(t, Nb(t)));
}
-var Pie = class extends dx {
+var Fie = class extends hx {
mount() {
let { current: e } = this.node;
- e && (this.unmount = Bre(e, (e, t) => (Kx(this.node, t, "Hover", "Start"), (e) => Kx(this.node, e, "Hover", "End"))));
+ e && (this.unmount = Vre(e, (e, t) => (Xx(this.node, t, "Hover", "Start"), (e) => Xx(this.node, e, "Hover", "End"))));
}
unmount() {}
-}, Fie = class extends dx {
+}, Iie = class extends hx {
constructor() {
super(...arguments), this.isActive = !1;
}
@@ -21403,51 +21416,51 @@ var Pie = class extends dx {
this.isActive && this.node.animationState && (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
}
mount() {
- this.unmount = Dm(cb(this.node.current, "focus", () => this.onFocus()), cb(this.node.current, "blur", () => this.onBlur()));
+ this.unmount = Mm(fb(this.node.current, "focus", () => this.onFocus()), fb(this.node.current, "blur", () => this.onBlur()));
}
unmount() {}
};
// node_modules/framer-motion/dist/es/gestures/press.mjs
-function qx(e, t, n) {
- e.current instanceof HTMLButtonElement && e.current.disabled || Kx(e, t, "Tap", n);
+function Zx(e, t, n) {
+ e.current instanceof HTMLButtonElement && e.current.disabled || Xx(e, t, "Tap", n);
}
-var Iie = class extends dx {
+var Lie = class extends hx {
mount() {
let { current: e } = this.node;
if (!e) return;
let { globalTapTarget: t, propagate: n } = this.node.props;
- this.unmount = Hre(e, (e, t) => (qx(this.node, t, "Start"), (e, { success: t }) => qx(this.node, e, t ? "" : "Cancel")), {
+ this.unmount = Ure(e, (e, t) => (Zx(this.node, t, "Start"), (e, { success: t }) => Zx(this.node, e, t ? "" : "Cancel")), {
useGlobalTarget: t,
stopPropagation: n?.tap === !1
});
}
unmount() {}
-}, Jx = /* @__PURE__ */ new WeakMap(), Yx = /* @__PURE__ */ new WeakMap(), Lie = (e) => {
- let t = Jx.get(e.target);
+}, Qx = /* @__PURE__ */ new WeakMap(), $x = /* @__PURE__ */ new WeakMap(), Rie = (e) => {
+ let t = Qx.get(e.target);
t && t(e);
-}, Rie = (e) => {
- e.forEach(Lie);
+}, zie = (e) => {
+ e.forEach(Rie);
};
-function zie({ root: e, ...t }) {
+function Bie({ root: e, ...t }) {
let n = e || document;
- Yx.has(n) || Yx.set(n, {});
- let r = Yx.get(n), i = JSON.stringify(t);
- return r[i] || (r[i] = new IntersectionObserver(Rie, {
+ $x.has(n) || $x.set(n, {});
+ let r = $x.get(n), i = JSON.stringify(t);
+ return r[i] || (r[i] = new IntersectionObserver(zie, {
root: e,
...t
})), r[i];
}
-function Bie(e, t, n) {
- let r = zie(t);
- return Jx.set(e, n), r.observe(e), () => {
- Jx.delete(e), r.unobserve(e);
+function Vie(e, t, n) {
+ let r = Bie(t);
+ return Qx.set(e, n), r.observe(e), () => {
+ Qx.delete(e), r.unobserve(e);
};
}
// node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs
-var Vie = {
+var Hie = {
some: 0,
all: 1
-}, Hie = class extends dx {
+}, Uie = class extends hx {
constructor() {
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
}
@@ -21456,7 +21469,7 @@ var Vie = {
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 : Vie[r]
+ threshold: typeof r == "number" ? r : Hie[r]
}, o = (e) => {
let { isIntersecting: t } = e;
if (this.isInView === t || (this.isInView = t, i && !t && this.hasEnteredView)) return;
@@ -21464,7 +21477,7 @@ var Vie = {
let { onViewportEnter: n, onViewportLeave: r } = this.node.getProps(), a = t ? n : r;
a && a(e);
};
- this.stopObserver = Bie(this.node.current, a, o);
+ this.stopObserver = Vie(this.node.current, a, o);
}
mount() {
this.startObserver();
@@ -21476,81 +21489,81 @@ var Vie = {
"amount",
"margin",
"root"
- ].some(Uie(e, t)) && this.startObserver();
+ ].some(Wie(e, t)) && this.startObserver();
}
unmount() {
this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
}
};
-function Uie({ viewport: e = {} }, { viewport: t = {} } = {}) {
+function Wie({ viewport: e = {} }, { viewport: t = {} } = {}) {
return (n) => e[n] !== t[n];
}
// node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs
-var Wie = /*@__PURE__*/ Tie(/* @__PURE__ */ Object.assign({}, kie, {
- inView: { Feature: Hie },
- tap: { Feature: Iie },
- focus: { Feature: Fie },
- hover: { Feature: Pie }
-}, Nie, { layout: {
- ProjectionNode: ub,
- MeasureLayout: Gx
-} }), Eie);
+var Gie = /*@__PURE__*/ Eie(/* @__PURE__ */ Object.assign({}, Aie, {
+ inView: { Feature: Uie },
+ tap: { Feature: Lie },
+ focus: { Feature: Iie },
+ hover: { Feature: Fie }
+}, Pie, { layout: {
+ ProjectionNode: mb,
+ MeasureLayout: Yx
+} }), Die);
// node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs
-function Xx() {
- !yb.current && bb();
- let [e] = (0, F.useState)(vb.current);
+function eS() {
+ !Cb.current && wb();
+ let [e] = (0, F.useState)(Sb.current);
return e;
}
// node_modules/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs
-function Zx(e) {
+function tS(e) {
return typeof e == "object" && !Array.isArray(e);
}
// node_modules/framer-motion/dist/es/animation/animate/resolve-subjects.mjs
-function Qx(e, t, n, r) {
- return e == null ? [] : typeof e == "string" && Zx(t) ? Pv(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];
+function nS(e, t, n, r) {
+ return e == null ? [] : typeof e == "string" && tS(t) ? Rv(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs
-function Gie(e, t, n) {
+function Kie(e, t, n) {
return e * (t + 1) + n * t;
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs
-function $x(e, t) {
+function rS(e, t) {
if (t.has(e)) return t.get(e);
let [, n, r] = e.match(/^(.+?)([+-][\d.]+)$/) || [];
return t.has(n) ? Math.max(0, t.get(n) + parseFloat(r)) : void 0;
}
-function Kie(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))) : $x(t, r) ?? e;
+function qie(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))) : rS(t, r) ?? e;
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/edit.mjs
-function qie(e, t, n) {
+function Jie(e, t, n) {
for (let r = 0; r < e.length; r++) {
let i = e[r];
- i.at > t && i.at < n && (ym(e, i), r--);
+ i.at > t && i.at < n && (wm(e, i), r--);
}
}
-function Jie(e, t, n, r, i, a) {
- qie(e, i, a);
+function Yie(e, t, n, r, i, a) {
+ Jie(e, i, a);
for (let o = 0; o < t.length; o++) e.push({
value: t[o],
- at: ng(i, a, r[o]),
- easing: /* @__PURE__ */ Ym(n, o)
+ at: og(i, a, r[o]),
+ easing: /* @__PURE__ */ eh(n, o)
});
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs
-function Yie(e, t, n = 0) {
+function Xie(e, t, n = 0) {
let r = t + 1 + t * n;
for (let t = 0; t < e.length; t++) e[t] = e[t] / r;
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/sort.mjs
-function Xie(e, t) {
+function Zie(e, t) {
return e.at === t.at ? e.value === null ? 1 : t.value === null ? -1 : 0 : e.at - t.at;
}
// node_modules/framer-motion/dist/es/animation/sequence/create.mjs
-var Zie = "easeInOut", Qie = 20;
-function $ie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
+var Qie = "easeInOut", $ie = 20;
+function eae(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
let o = t.duration || .3, s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), l = {}, u = /* @__PURE__ */ new Map(), d = 0, f = 0, p = 0, m = (e, n) => {
- let a = n, s = (e) => typeof e == "number" ? n + e : Kie(f, e, d, u);
+ let a = n, s = (e) => typeof e == "number" ? n + e : qie(f, e, d, u);
for (let n = 0; n < e.length; n++) {
let h = e[n];
if (typeof h == "string") {
@@ -21565,12 +21578,12 @@ function $ie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
let [g, _, v = {}] = h;
v.at !== void 0 && (f = s(v.at));
let y = 0, b = (e, n, r, a = 0, s = 0) => {
- let c = eae(e), { delay: l = 0, times: u = Lg(c), type: d = t.type || "keyframes", repeat: m, repeatType: h, repeatDelay: g = 0, ..._ } = n, { ease: v = t.ease || "easeOut", duration: b } = n;
+ let c = tae(e), { delay: l = 0, times: u = Vg(c), type: d = t.type || "keyframes", repeat: m, repeatType: h, repeatDelay: g = 0, ..._ } = n, { ease: v = t.ease || "easeOut", duration: b } = n;
r.mixer ||= n.mixer;
- let x = typeof l == "function" ? l(a, s) : l, S = c.length, C = M_(d) ? d : i?.[d || "keyframes"];
+ let x = typeof l == "function" ? l(a, s) : l, S = c.length, C = I_(d) ? d : i?.[d || "keyframes"];
if (S <= 2 && C) {
let e = 100;
- if (S === 2 && rae(c)) {
+ if (S === 2 && iae(c)) {
let t = c[1] - c[0];
e = Math.abs(t);
}
@@ -21578,40 +21591,40 @@ function $ie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
...t,
..._
};
- b !== void 0 && (n.duration = /* @__PURE__ */ Am(b));
- let r = bg(n, e, C);
+ b !== void 0 && (n.duration = /* @__PURE__ */ Fm(b));
+ let r = wg(n, e, C);
v = r.ease, b = r.duration;
}
b ??= o;
let w = f + x;
u.length === 1 && u[0] === 0 && (u[1] = 1);
let T = u.length - c.length;
- if (T > 0 && Ig(u, T), c.length === 1 && c.unshift(null), m && m < Qie) {
+ if (T > 0 && Bg(u, T), c.length === 1 && c.unshift(null), m && m < $ie) {
let e = b > 0 ? g / b : 0;
- b = Gie(b, m, g);
+ b = Kie(b, m, g);
let t = [...c], n = [...u];
v = Array.isArray(v) ? [...v] : [v];
let r = [...v], i = h === "reverse" || h === "mirror", a = t, o = r;
- i && (a = [...t].reverse(), h === "reverse" && (o = [...r].reverse().map((e) => typeof e == "function" ? /* @__PURE__ */ Lm(e) : e)));
+ i && (a = [...t].reverse(), h === "reverse" && (o = [...r].reverse().map((e) => typeof e == "function" ? /* @__PURE__ */ Hm(e) : e)));
for (let s = 0; s < m; s++) {
let l = i && s % 2 == 0, d = l ? a : t, f = l ? o : r, p = (s + 1) * (1 + e);
e > 0 && (c.push(c[c.length - 1]), u.push(p), v.push("linear")), c.push(...d);
- for (let e = 0; e < d.length; e++) u.push(n[e] + p), v.push(e === 0 ? "linear" : /* @__PURE__ */ Ym(f, e - 1));
+ for (let e = 0; e < d.length; e++) u.push(n[e] + p), v.push(e === 0 ? "linear" : /* @__PURE__ */ eh(f, e - 1));
}
- Yie(u, m, e);
+ Xie(u, m, e);
}
let E = w + b;
- Jie(r, c, v, u, w, E), y = Math.max(x + b, y), p = Math.max(E, p);
+ Yie(r, c, v, u, w, E), y = Math.max(x + b, y), p = Math.max(E, p);
};
- if (gv(g)) {
- let e = eS(g, c);
- b(_, v, tS("default", e));
+ if (bv(g)) {
+ let e = iS(g, c);
+ b(_, v, aS("default", e));
} else {
- let e = Qx(g, _, r, l), t = e.length;
+ let e = nS(g, _, r, l), t = e.length;
for (let n = 0; n < t; n++) {
_ = _, v = v;
- let r = e[n], i = eS(r, c);
- for (let e in _) b(_[e], tae(v, e), tS(e, i), n, t);
+ let r = e[n], i = iS(r, c);
+ for (let e in _) b(_[e], nae(v, e), aS(e, i), n, t);
}
}
d = f, f += y, a = Math.max(a, f);
@@ -21621,13 +21634,13 @@ function $ie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
return m(e, 0), a && (a.duration = p, a.labels = u), c.forEach((e, r) => {
for (let i in e) {
let a = e[i];
- a.sort(Xie);
+ a.sort(Zie);
let o = [], c = [], l = [];
for (let e = 0; e < a.length; e++) {
let { at: t, value: n, easing: r } = a[e];
- o.push(n), c.push(/* @__PURE__ */ Om(0, p, t)), l.push(r || "easeOut");
+ o.push(n), c.push(/* @__PURE__ */ Nm(0, p, t)), l.push(r || "easeOut");
}
- c[0] !== 0 && (c.unshift(0), o.unshift(o[0]), l.unshift(Zie)), c[c.length - 1] !== 1 && (c.push(1), o.push(null)), s.has(r) || s.set(r, {
+ c[0] !== 0 && (c.unshift(0), o.unshift(o[0]), l.unshift(Qie)), c[c.length - 1] !== 1 && (c.push(1), o.push(null)), s.has(r) || s.set(r, {
keyframes: {},
transition: {}
});
@@ -21645,45 +21658,45 @@ function $ie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
}
}), s;
}
-function eS(e, t) {
+function iS(e, t) {
return !t.has(e) && t.set(e, {}), t.get(e);
}
-function tS(e, t) {
+function aS(e, t) {
return t[e] || (t[e] = []), t[e];
}
-function eae(e) {
+function tae(e) {
return Array.isArray(e) ? e : [e];
}
-function tae(e, t) {
+function nae(e, t) {
return e && e[t] ? {
...e,
...e[t]
} : { ...e };
}
-var nae = (e) => typeof e == "number", rae = (e) => e.every(nae);
+var rae = (e) => typeof e == "number", iae = (e) => e.every(rae);
// node_modules/framer-motion/dist/es/animation/animate/subject.mjs
-function iae(e, t) {
- return gv(e) || typeof e == "number" || typeof e == "string" && !Zx(t);
+function aae(e, t) {
+ return bv(e) || typeof e == "number" || typeof e == "string" && !tS(t);
}
-function nS(e, t, n, r) {
+function oS(e, t, n, r) {
let i = [];
- if (iae(e, t)) i.push(fy(e, Zx(t) && t.default || t, n && (n.default || n)));
+ if (aae(e, t)) i.push(gy(e, tS(t) && t.default || t, n && (n.default || n)));
else {
if (e == null) return i;
- let a = Qx(e, t, r), o = a.length;
+ let a = nS(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(...pne(r, t, s, db.get(r))) : i.push(...Ov(qte(r) ?? mne, r, t, s));
+ "delay" in s && typeof s.delay == "function" && (s.delay = s.delay(e, o)), r instanceof Element ? i.push(...mne(r, t, s, hb.get(r))) : i.push(...Mv(Jte(r) ?? hne, r, t, s));
}
}
return i;
}
// node_modules/framer-motion/dist/es/animation/animate/sequence.mjs
-function aae(e, t, n, r) {
+function oae(e, t, n, r) {
let i = [];
- return $ie(e.map((e) => {
+ return eae(e.map((e) => {
if (Array.isArray(e) && typeof e[0] == "function") {
- let t = e[0], n = sv(0);
+ let t = e[0], n = dv(0);
return n.on("change", t), e.length === 1 ? [n, [0, 1]] : e.length === 2 ? [
n,
[0, 1],
@@ -21695,33 +21708,33 @@ function aae(e, t, n, r) {
];
}
return e;
- }), t, n, { spring: Ng }, r).forEach(({ keyframes: e, transition: t }, n) => {
- i.push(...nS(n, e, t));
+ }), t, n, { spring: Lg }, r).forEach(({ keyframes: e, transition: t }, n) => {
+ i.push(...oS(n, e, t));
}), i;
}
// node_modules/framer-motion/dist/es/animation/timeline/index.mjs
-var rS = 0;
-function oae(e, t) {
+var sS = 0;
+function sae(e, t) {
let n = [...e], r = typeof n[0] == "function" ? Math.max(1, n.length - 1) : 2;
return n[r] = {
...n[r],
at: t
}, n;
}
-var iS = (e, t) => t === void 0 ? e : {
+var cS = (e, t) => t === void 0 ? e : {
name: e,
at: t
};
-function aS(e) {
+function lS(e) {
e.pause(), e.time = 0, e.stop();
}
-var oS = class e {
+var uS = class e {
constructor(e = [], t = {}, n) {
- this.options = t, this.entries = [], this.repeatIndex = 0, this.prevTime = 0, this.markers = [], this.labels = /* @__PURE__ */ new Map(), this.totalDuration = 0, this.isDirty = !1, this.isDone = !1, this.isRebuilding = !1, this.playbackSpeed = 1, this.motionScope = jv.current, this.isKilled = !1, this.isWrapped = !1, this.stop = () => {
+ this.options = t, this.entries = [], this.repeatIndex = 0, this.prevTime = 0, this.markers = [], this.labels = /* @__PURE__ */ new Map(), this.totalDuration = 0, this.isDirty = !1, this.isDone = !1, this.isRebuilding = !1, this.playbackSpeed = 1, this.motionScope = Fv.current, this.isKilled = !1, this.isWrapped = !1, this.stop = () => {
this.flush(), this.group?.stop();
- }, this.isPaused = t.autoplay === !1, this.newFinished(), e.forEach((e) => this.add(e)), n ? (this.isDirty = !1, this.isWrapped = !0, this.group = new tv(n), this.watch()) : (this.invalidate(), this.flush());
+ }, this.isPaused = t.autoplay === !1, this.newFinished(), e.forEach((e) => this.add(e)), n ? (this.isDirty = !1, this.isWrapped = !0, this.group = new av(n), this.watch()) : (this.invalidate(), this.flush());
let { scope: r } = t;
- r && (r.animations.push(this), this.finished.then(() => ym(r.animations, this)));
+ r && (r.animations.push(this), this.finished.then(() => wm(r.animations, this)));
}
add(t, n) {
return t instanceof e && t.adopt(this), this.push({
@@ -21734,7 +21747,7 @@ var oS = class e {
item: e,
at: t,
marker: {
- name: "_m" + rS++,
+ name: "_m" + sS++,
time: 0,
callback: e
}
@@ -21745,7 +21758,7 @@ var oS = class e {
item: t || {},
at: e,
marker: {
- name: "_m" + rS++,
+ name: "_m" + sS++,
time: 0,
callback: t,
pause: !0
@@ -21839,50 +21852,50 @@ var oS = class e {
this.isDirty && !this.parent && !this.isKilled && this.build();
}
adopt(e) {
- this.group &&= (aS(this.group), void 0), this.isDirty = !1, this.parent = e;
+ this.group &&= (lS(this.group), void 0), this.isDirty = !1, this.parent = e;
}
build() {
this.isDirty = !1, this.isWrapped = !1;
let e = this.group, t = 0;
- e && (this.isRebuilding = !0, this.scrollTimeline ? (this.detachScroll?.(), e.cancel()) : (t = e.animations.length ? e.time : 0, aS(e)), this.isRebuilding = !1);
+ e && (this.isRebuilding = !0, this.scrollTimeline ? (this.detachScroll?.(), e.cancel()) : (t = e.animations.length ? e.time : 0, lS(e)), this.isRebuilding = !1);
let { defaultTransition: n, onComplete: r, onUpdate: i, onRepeat: a, onReverseComplete: o, autoplay: s, scope: c, ...l } = this.options, u = {};
c?.reduceMotion !== void 0 && (u.reduceMotion = c.reduceMotion), c?.skipAnimations !== void 0 && (u.skipAnimations = c.skipAnimations), Object.assign(u, l);
- let d = /* @__PURE__ */ new Map(), f = {}, p = jv.current;
- jv.current = this.motionScope;
+ let d = /* @__PURE__ */ new Map(), f = {}, p = Fv.current;
+ Fv.current = this.motionScope;
let m;
try {
- m = aae(this.toSequence(d), {
+ m = oae(this.toSequence(d), {
defaultTransition: n,
...u
}, c, f);
} finally {
- jv.current = p;
+ Fv.current = p;
}
let h = f.labels, g = u.duration ?? f.duration, _ = f.duration ? g / f.duration : 1;
if (h.forEach((e, t) => h.set(t, e * _)), this.markers = [], d.forEach((e, t) => {
e.time = h.get(t), h.delete(t), g = Math.max(g, e.time), this.markers.push(e);
}), this.markers.sort((e, t) => e.time - t.time), this.labels = h, this.totalDuration = g, this.clock = this.clockAnimation = void 0, this.markers.length || this.stopAt !== void 0 || i || a) {
- let e = this.clock = sv(0);
- e.on("change", (t) => e === this.clock && this.onClock(t)), m.unshift(this.clockAnimation = fy(e, [0, g], {
+ let e = this.clock = dv(0);
+ e.on("change", (t) => e === this.clock && this.onClock(t)), m.unshift(this.clockAnimation = gy(e, [0, g], {
...u,
duration: g,
ease: "linear"
}));
}
- let v = this.group = new tv(m);
+ let v = this.group = new av(m);
t = Math.min(t, g), this.isDone && t < g && this.newFinished(), this.scrollTimeline ? this.detachScroll = v.attachTimeline(this.scrollTimeline) : (v.speed = this.playbackSpeed, this.isPaused && v.pause(), t && (v.time = t)), this.repeatIndex = this.currentRepeat(), this.prevTime = t || -1, this.watch();
}
toSequence(t) {
- return this.entries.map(({ item: n, at: r, marker: i }) => i ? (t.set(i.name, i), iS(i.name, r)) : n instanceof e ? {
+ return this.entries.map(({ item: n, at: r, marker: i }) => i ? (t.set(i.name, i), cS(i.name, r)) : n instanceof e ? {
sequence: n.toSequence(t),
at: r
- } : typeof n == "string" ? iS(n, r) : r === void 0 ? n : Array.isArray(n) ? oae(n, r) : {
+ } : typeof n == "string" ? cS(n, r) : r === void 0 ? n : Array.isArray(n) ? sae(n, r) : {
...n,
at: r
});
}
resolve(e) {
- return this.flush(), typeof e == "number" ? e : $x(e, this.labels) ?? this.time;
+ return this.flush(), typeof e == "number" ? e : rS(e, this.labels) ?? this.time;
}
currentRepeat() {
let { repeat: e = 0, repeatDelay: t = 0, delay: n = 0 } = this.options, r = this.totalDuration + t, i = (this.clockAnimation?.time ?? 0) - n;
@@ -21930,16 +21943,16 @@ var oS = class e {
}
};
// node_modules/framer-motion/dist/es/animation/animate/index.mjs
-function sae(e) {
+function cae(e) {
return Array.isArray(e) && e.some(Array.isArray);
}
-function cae(e = {}) {
+function lae(e = {}) {
let { scope: t, reduceMotion: n, skipAnimations: r } = e;
function i(e, i, a) {
- let o = jv.current?.transition, s = {};
+ let o = Fv.current?.transition, s = {};
n !== void 0 && (s.reduceMotion = n), r !== void 0 && (s.skipAnimations = r);
let c;
- if (sae(e)) {
+ if (cae(e)) {
let n = {
...s,
...i,
@@ -21948,14 +21961,14 @@ function cae(e = {}) {
o && (n.defaultTransition = {
...o,
...n.defaultTransition
- }), c = new oS(e, n);
+ }), c = new uS(e, n);
} else {
let { onComplete: n, ...r } = a || {}, l = {
...s,
...o,
...r
}, { onUpdate: u } = r;
- c = new oS([typeof e == "number" || typeof e == "string" && (typeof i == "string" || Array.isArray(i)) ? [
+ c = new uS([typeof e == "number" || typeof e == "string" && (typeof i == "string" || Array.isArray(i)) ? [
u || (() => {}),
Array.isArray(i) ? i : [e, i],
{
@@ -21970,29 +21983,29 @@ function cae(e = {}) {
...s,
onComplete: n,
scope: t
- }, nS(e, i, l, t));
+ }, oS(e, i, l, t));
}
return c;
}
return i;
}
-var sS = /* @__PURE__ */ Object.assign(/* @__PURE__ */ cae(), {
- addEffect: Kte,
- removeEffect: Ev
+var dS = /* @__PURE__ */ Object.assign(/* @__PURE__ */ lae(), {
+ addEffect: qte,
+ removeEffect: Av
});
// node_modules/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs
-function lae(e, t, n, r) {
+function uae(e, t, n, r) {
if (e == null) return [];
- let i = Pv(e, r), a = i.length, o = [];
+ let i = Rv(e, r), a = i.length, o = [];
for (let e = 0; e < a; e++) {
let r = i[e], s = { ...n };
typeof s.delay == "function" && (s.delay = s.delay(e, a));
for (let e in t) {
let n = t[e];
Array.isArray(n) || (n = [n]);
- let i = { ...lv(s, e) };
- i.duration &&= /* @__PURE__ */ Am(i.duration), i.delay &&= /* @__PURE__ */ Am(i.delay);
- let a = vte(r), c = _te(e, i.pseudoElement || ""), l = a.get(c);
+ let i = { ...pv(s, e) };
+ i.duration &&= /* @__PURE__ */ Fm(i.duration), i.delay &&= /* @__PURE__ */ Fm(i.delay);
+ let a = yte(r), c = vte(e, i.pseudoElement || ""), l = a.get(c);
l && l.stop(), o.push({
map: a,
key: c,
@@ -22008,21 +22021,21 @@ function lae(e, t, n, r) {
}
for (let e = 0; e < o.length; e++) {
let { unresolvedKeyframes: t, options: n } = o[e], { element: r, name: i, pseudoElement: a } = n;
- !a && t[0] === null && (t[0] = ux(r, i)), t_(t), Gte(t, i), !a && t.length < 2 && t.unshift(ux(r, i)), n.keyframes = t;
+ !a && t[0] === null && (t[0] = mx(r, i)), a_(t), Kte(t, i), !a && t.length < 2 && t.unshift(mx(r, i)), n.keyframes = t;
}
let s = [];
for (let e = 0; e < o.length; e++) {
- let { map: t, key: n, options: r } = o[e], i = new N_(r);
+ let { map: t, key: n, options: r } = o[e], i = new L_(r);
t.set(n, i), i.finished.finally(() => t.delete(n)), s.push(i);
}
return s;
}
-var uae = /*@__PURE__*/ ((e) => {
+var dae = /*@__PURE__*/ ((e) => {
function t(t, n, r) {
- return new tv(lae(t, n, r, e));
+ return new av(uae(t, n, r, e));
}
return t;
-})(), cS = Wie, lS = class {
+})(), fS = Gie, pS = 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;
}
@@ -22037,22 +22050,22 @@ var uae = /*@__PURE__*/ ((e) => {
let r = this.clone();
return t.addDescendants(r, e), r;
}
-}, uS = class extends lS {
+}, mS = class extends pS {
filter(e, t, n) {
- let [r, i] = mS(e, t, this.firstChildKey, n), a = this.clone();
+ let [r, i] = vS(e, t, this.firstChildKey, n), a = this.clone();
return a.firstChildKey = r, a.lastChildKey = i, a;
}
};
-(class extends lS {
+(class extends pS {
static {
this.type = "header";
}
});
-var dS = class extends lS {
+var hS = class extends pS {
static {
this.type = "loader";
}
-}, fS = class extends uS {
+}, gS = class extends mS {
static {
this.type = "item";
}
@@ -22063,7 +22076,7 @@ var dS = class extends lS {
}
return null;
}
-}, dae = class extends uS {
+}, fae = class extends mS {
static {
this.type = "section";
}
@@ -22075,7 +22088,7 @@ var dS = class extends lS {
}
return null;
}
-}, pS = class {
+}, _S = class {
get size() {
return this.itemCount;
}
@@ -22150,14 +22163,14 @@ var dS = class extends lS {
this.firstKey = e, this.lastKey = t, this.frozen = !n;
}
filter(e) {
- let t = new this.constructor(), [n, r] = mS(this, t, this.firstKey, e);
+ let t = new this.constructor(), [n, r] = vS(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 mS(e, t, n, r) {
+function vS(e, t, n, r) {
if (n == null) return [null, null];
let i = null, a = null, o = e.getItem(n);
for (; o != null;) {
@@ -22171,7 +22184,7 @@ function mS(e, t, n, r) {
return [i?.key ?? null, a?.key ?? null];
}
// node_modules/react-aria/dist/private/collections/Document.mjs
-var hS = class {
+var yS = class {
constructor(e) {
this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;
}
@@ -22252,7 +22265,7 @@ var hS = class {
for (; e && e.isHidden;) e = e.previousSibling;
return e;
}
-}, gS = class e extends hS {
+}, bS = class e extends yS {
constructor(e, t) {
super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.isHidden = !1, this.node = null;
}
@@ -22303,7 +22316,7 @@ var hS = class {
setAttribute() {}
setAttributeNS() {}
removeAttribute() {}
-}, fae = class extends hS {
+}, pae = class extends yS {
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;
}
@@ -22311,7 +22324,7 @@ var hS = class {
return !0;
}
createElement(e) {
- return new gS(e, this);
+ return new bS(e, this);
}
getMutableCollection() {
return this.nextCollection ||= this.collection.clone(), this.nextCollection;
@@ -22333,8 +22346,8 @@ var hS = class {
return this.inSubscription || (this.queuedRender = !1, this.updateCollection()), this.collection;
}
updateCollection() {
- for (let e of this.dirtyNodes) e instanceof gS && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
- for (let e of this.dirtyNodes) e instanceof gS ? (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 bS && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
+ for (let e of this.dirtyNodes) e instanceof bS ? (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() {
@@ -22352,13 +22365,13 @@ var hS = class {
}
};
// node_modules/react-aria/dist/private/collections/useCachedChildren.mjs
-function _S(e) {
+function xS(e) {
let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, F.useMemo)(() => void 0, [t]), s = (0, F.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
return (0, F.useMemo)(() => {
if (n && typeof t == "function") {
let e = [];
for (let a of n) {
- let n = pae(a) ? a : null, o = n ? s.get(n) : null;
+ let n = mae(a) ? a : null, o = n ? s.get(n) : null;
if (!o) {
o = t(a);
let c = o.props.id ?? a?.key ?? a?.id;
@@ -22383,7 +22396,7 @@ function _S(e) {
i
]);
}
-function pae(e) {
+function mae(e) {
switch (typeof e) {
case "object": return e != null;
case "function":
@@ -22392,24 +22405,24 @@ function pae(e) {
}
}
// node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs
-function vS(e) {
+function SS(e) {
e.focus({ preventScroll: !0 });
}
// node_modules/react-aria/dist/private/utils/domHelpers.mjs
-var yS = (e) => mae(e) ? e.document : hae(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), bS = (e) => yS(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
-function xS(e) {
+var CS = (e) => hae(e) ? e.document : gae(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), wS = (e) => CS(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
+function TS(e) {
return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
}
-function mae(e) {
+function hae(e) {
return typeof e == "object" && !!e && "window" in e && e.window === e;
}
-function hae(e) {
- return xS(e) && e.nodeType === 9;
+function gae(e) {
+ return TS(e) && e.nodeType === 9;
}
-function SS(e) {
- return xS(e) && e.nodeType === 11 && "host" in e;
+function ES(e) {
+ return TS(e) && e.nodeType === 11 && "host" in e;
}
-function CS(e, t, n, r) {
+function DS(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);
@@ -22417,7 +22430,7 @@ function CS(e, t, n, r) {
for (let e of i) e.removeEventListener(t, n, r);
};
}
-function wS(e, t, n, r) {
+function OS(e, t, n, r) {
if (e == null) return () => {};
let i = [], a = Array.isArray(e) ? e : [e];
for (let e of a) {
@@ -22431,70 +22444,70 @@ function wS(e, t, n, r) {
};
}
// node_modules/react-stately/dist/private/flags/flags.mjs
-var gae = !1;
-function TS() {
- return gae;
+var _ae = !1;
+function kS() {
+ return _ae;
}
// node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs
-function ES(e, t) {
- if (!TS()) return t && e ? e.contains(t) : !1;
+function AS(e, t) {
+ if (!kS()) 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 : SS(n) ? n.host : n.parentNode;
+ n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : ES(n) ? n.host : n.parentNode;
}
return !1;
}
-var DS = (e = document) => {
- if (!TS()) return e.activeElement;
+var jS = (e = document) => {
+ if (!kS()) return e.activeElement;
let t = e.activeElement;
for (; t && "shadowRoot" in t && t.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;
return t;
};
function G(e) {
- if (TS() && e.target instanceof Element && e.target.shadowRoot) {
+ if (kS() && 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 OS(e, t) {
+function MS(e, t) {
if (t === null) return [];
- t ??= bS(e);
+ t ??= wS(e);
let n = [t];
- if (!TS() || !e || e === t) return n;
+ if (!kS() || !e || e === t) return n;
let r = "getRootNode" in t ? t.getRootNode() : null, i = e.getRootNode() ?? null;
- for (; SS(i) && i !== r;) n.push(i), i = i.host.getRootNode();
+ for (; ES(i) && i !== r;) n.push(i), i = i.host.getRootNode();
return n;
}
-function kS(e) {
+function NS(e) {
if (!e) return !1;
- let t = e.getRootNode(), n = bS(e);
+ let t = e.getRootNode(), n = wS(e);
if (!(t instanceof n.Document || t instanceof n.ShadowRoot)) return !1;
let r = t.activeElement;
return r != null && e.contains(r);
}
// node_modules/react-aria/dist/private/utils/isElementVisible.mjs
-var _ae = typeof Element < "u" && "checkVisibility" in Element.prototype;
-function vae(e) {
- let t = bS(e);
+var vae = typeof Element < "u" && "checkVisibility" in Element.prototype;
+function yae(e) {
+ let t = wS(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 } = bS(e), { display: n, visibility: r } = t(e);
+ let { getComputedStyle: t } = wS(e), { display: n, visibility: r } = t(e);
i = n !== "none" && r !== "hidden" && r !== "collapse";
}
return i;
}
-function yae(e, t) {
+function bae(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 AS(e, t) {
- return _ae ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && vae(e) && yae(e, t) && (!e.parentElement || AS(e.parentElement, e));
+function PS(e, t) {
+ return vae ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && yae(e) && bae(e, t) && (!e.parentElement || PS(e.parentElement, e));
}
// node_modules/react-aria/dist/private/utils/isFocusable.mjs
-var jS = [
+var FS = [
"input:not([disabled]):not([type=hidden])",
"select:not([disabled])",
"textarea:not([disabled])",
@@ -22509,39 +22522,39 @@ var jS = [
"video[controls]",
"[contenteditable]:not([contenteditable^=\"false\"])",
"permission"
-], bae = jS.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
-jS.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
-var xae = jS.join(":not([hidden]):not([tabindex=\"-1\"]),");
-function MS(e, t) {
- return e.matches(bae) && !PS(e) && (t?.skipVisibilityCheck || AS(e));
+], xae = FS.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
+FS.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
+var Sae = FS.join(":not([hidden]):not([tabindex=\"-1\"]),");
+function IS(e, t) {
+ return e.matches(xae) && !RS(e) && (t?.skipVisibilityCheck || PS(e));
}
-function NS(e) {
- return e.matches(xae) && AS(e) && !PS(e);
+function LS(e) {
+ return e.matches(Sae) && PS(e) && !RS(e);
}
-function PS(e) {
+function RS(e) {
let t = e;
for (; t != null;) {
- if (t instanceof bS(t).HTMLElement && t.inert) return !0;
+ if (t instanceof wS(t).HTMLElement && t.inert) return !0;
t = t.parentElement;
}
return !1;
}
// node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs
-var FS = typeof document < "u" ? F.useLayoutEffect : () => {};
+var zS = typeof document < "u" ? F.useLayoutEffect : () => {};
// node_modules/react-aria/dist/private/interactions/utils.mjs
-function IS(e) {
+function BS(e) {
let t = e;
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;
}
-function LS(e, t) {
+function VS(e, t) {
Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });
}
-function RS(e) {
+function HS(e) {
let t = (0, F.useRef)({
isFocused: !1,
observer: null
});
- return FS(() => {
+ return zS(() => {
let e = t.current;
return () => {
e.observer &&= (e.observer.disconnect(), null);
@@ -22553,14 +22566,14 @@ function RS(e) {
let n = r;
n.addEventListener("focusout", (r) => {
if (t.current.isFocused = !1, n.disabled) {
- let t = IS(r);
+ let t = BS(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 === DS() ? null : DS();
+ let e = n === jS() ? null : jS();
n.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), n.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: e
@@ -22573,80 +22586,80 @@ function RS(e) {
}
}, [e]);
}
-var zS = !1;
-function Sae(e) {
- for (; e && !MS(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
- let t = DS(bS(e).document);
+var US = !1;
+function Cae(e) {
+ for (; e && !IS(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
+ let t = jS(wS(e).document);
if (!t || t === e) return;
- let n = e?.getRootNode(), r = n != null && SS(n) ? n : bS(e), i = (t) => t === e || xS(t) && ES(e, t), a = (e) => e === t || t != null && xS(e) && ES(t, e);
- zS = !0;
+ let n = e?.getRootNode(), r = n != null && ES(n) ? n : wS(e), i = (t) => t === e || TS(t) && AS(e, t), a = (e) => e === t || t != null && TS(e) && AS(t, e);
+ US = !0;
let o = !1, s = (e) => {
(a(G(e)) || o) && e.stopImmediatePropagation();
}, c = (n) => {
- (a(G(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, vS(t), d()));
+ (a(G(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, SS(t), d()));
}, l = (e) => {
(i(G(e)) || o) && e.stopImmediatePropagation();
}, u = (e) => {
- (i(G(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, vS(t), d()));
+ (i(G(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, SS(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), zS = !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), US = !1, o = !1;
}, f = requestAnimationFrame(d);
return d;
}
// node_modules/react-aria/dist/private/utils/platform.mjs
-function BS(e) {
+function WS(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 VS(e) {
+function GS(e) {
return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);
}
-function HS(e) {
+function KS(e) {
let t = null;
return () => (t ??= e(), t);
}
-var US = HS(function() {
- return VS(/^Mac/i);
-}), Cae = HS(function() {
- return VS(/^iPhone/i);
-}), WS = HS(function() {
- return VS(/^iPad/i) || US() && navigator.maxTouchPoints > 1;
-}), GS = HS(function() {
- return Cae() || WS();
-}), wae = HS(function() {
- return US() || GS();
-}), KS = HS(function() {
- return BS(/AppleWebKit/i) && (GS() || !qS());
-}), qS = HS(function() {
- return BS(/Chrome|CriOS|CrMo/i);
-}), JS = HS(function() {
- return BS(/Android/i);
+var qS = KS(function() {
+ return GS(/^Mac/i);
+}), wae = KS(function() {
+ return GS(/^iPhone/i);
+}), JS = KS(function() {
+ return GS(/^iPad/i) || qS() && navigator.maxTouchPoints > 1;
+}), YS = KS(function() {
+ return wae() || JS();
+}), Tae = KS(function() {
+ return qS() || YS();
+}), XS = KS(function() {
+ return WS(/AppleWebKit/i) && (YS() || !ZS());
+}), ZS = KS(function() {
+ return WS(/Chrome|CriOS|CrMo/i);
+}), QS = KS(function() {
+ return WS(/Android/i);
});
// node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs
-function YS(e) {
- return e.pointerType === "" && e.isTrusted ? !0 : JS() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
+function $S(e) {
+ return e.pointerType === "" && e.isTrusted ? !0 : QS() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
}
-function Tae(e) {
- return !JS() && e.width === 0 && e.height === 0 || JS() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
+function Eae(e) {
+ return !QS() && e.width === 0 && e.height === 0 || QS() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
}
// node_modules/react-aria/dist/private/utils/openLink.mjs
-var Eae = /*#__PURE__*/ (0, F.createContext)({
+var Dae = /*#__PURE__*/ (0, F.createContext)({
isNative: !0,
- open: kae,
+ open: Aae,
useHref: (e) => e
});
-function XS() {
- return (0, F.useContext)(Eae);
+function eC() {
+ return (0, F.useContext)(Dae);
}
-function Dae(e, t) {
+function Oae(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 ZS(e, t, n = !0) {
- let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t, s = KS() && US() && !WS() ? new KeyboardEvent("keydown", {
+function tC(e, t, n = !0) {
+ let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t, s = XS() && qS() && !JS() ? new KeyboardEvent("keydown", {
keyIdentifier: "Enter",
metaKey: r,
ctrlKey: i,
@@ -22661,21 +22674,21 @@ function ZS(e, t, n = !0) {
bubbles: !0,
cancelable: !0
});
- ZS.isOpening = n, vS(e), e.dispatchEvent(s), ZS.isOpening = !1;
+ tC.isOpening = n, SS(e), e.dispatchEvent(s), tC.isOpening = !1;
}
-ZS.isOpening = !1;
-function Oae(e, t) {
+tC.isOpening = !1;
+function kae(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 kae(e, t) {
- Oae(e, (e) => ZS(e, t));
+function Aae(e, t) {
+ kae(e, (e) => tC(e, t));
}
-function QS(e) {
- let t = XS().useHref(e.href ?? "");
+function nC(e) {
+ let t = eC().useHref(e.href ?? "");
return {
"data-href": e.href ? t : void 0,
"data-target": e.target,
@@ -22685,8 +22698,8 @@ function QS(e) {
"data-referrer-policy": e.referrerPolicy
};
}
-function $S(e) {
- let t = XS().useHref(e?.href ?? ""), n = {};
+function rC(e) {
+ let t = eC().useHref(e?.href ?? ""), n = {};
if (e) for (let r of [
"href",
"target",
@@ -22697,138 +22710,138 @@ function $S(e) {
]) r in e && e[r] !== void 0 && (n[r] = r === "href" ? t : e[r]);
return n;
}
-function Aae(e, t, n, r) {
- !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && Dae(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
+function jae(e, t, n, r) {
+ !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && Oae(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
}
// node_modules/react-aria/dist/private/ssr/SSRProvider.mjs
-var eC = {
+var iC = {
prefix: String(Math.round(Math.random() * 1e10)),
current: 0
-}, tC = /*#__PURE__*/ F.createContext(eC), jae = /*#__PURE__*/ F.createContext(!1);
+}, aC = /*#__PURE__*/ F.createContext(iC), Mae = /*#__PURE__*/ F.createContext(!1);
typeof window < "u" && window.document && window.document.createElement;
-var nC = /* @__PURE__ */ new WeakMap();
-function Mae(e = !1) {
- let t = (0, F.useContext)(tC), n = (0, F.useRef)(null);
+var oC = /* @__PURE__ */ new WeakMap();
+function Nae(e = !1) {
+ let t = (0, F.useContext)(aC), n = (0, F.useRef)(null);
if (n.current === null && !e) {
let e = F.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
if (e) {
- let n = nC.get(e);
- n == null ? nC.set(e, {
+ let n = oC.get(e);
+ n == null ? oC.set(e, {
id: t.current,
state: e.memoizedState
- }) : e.memoizedState !== n.state && (t.current = n.id, nC.delete(e));
+ }) : e.memoizedState !== n.state && (t.current = n.id, oC.delete(e));
}
n.current = ++t.current;
}
return n.current;
}
-function Nae(e) {
- let t = (0, F.useContext)(tC), n = Mae(!!e), r = `react-aria${t.prefix}`;
+function Pae(e) {
+ let t = (0, F.useContext)(aC), n = Nae(!!e), r = `react-aria${t.prefix}`;
return e || `${r}-${n}`;
}
-function Pae(e) {
- let t = F.useId(), [n] = (0, F.useState)(rC()), r = n ? "react-aria" : `react-aria${eC.prefix}`;
+function Fae(e) {
+ let t = F.useId(), [n] = (0, F.useState)(sC()), r = n ? "react-aria" : `react-aria${iC.prefix}`;
return e || `${r}-${t}`;
}
-var Fae = typeof F.useId == "function" ? Pae : Nae;
-function Iae() {
+var Iae = typeof F.useId == "function" ? Fae : Pae;
+function Lae() {
return !1;
}
-function Lae() {
+function Rae() {
return !0;
}
-function Rae(e) {
+function zae(e) {
return () => {};
}
-function rC() {
- return typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore(Rae, Iae, Lae) : (0, F.useContext)(jae);
+function sC() {
+ return typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore(zae, Lae, Rae) : (0, F.useContext)(Mae);
}
// node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
-var iC = null, aC = /* @__PURE__ */ new Set(), oC = /* @__PURE__ */ new Map(), sC = !1, cC = !1, zae = {
+var cC = null, lC = /* @__PURE__ */ new Set(), uC = /* @__PURE__ */ new Map(), dC = !1, fC = !1, Bae = {
Tab: !0,
Escape: !0
};
-function lC(e, t) {
- for (let n of aC) n(e, t);
+function pC(e, t) {
+ for (let n of lC) n(e, t);
}
-function Bae(e) {
- return !(e.metaKey || !US() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
+function Vae(e) {
+ return !(e.metaKey || !qS() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
}
-function uC(e) {
- sC = !0, !ZS.isOpening && Bae(e) && (iC = "keyboard", lC("keyboard", e));
+function mC(e) {
+ dC = !0, !tC.isOpening && Vae(e) && (cC = "keyboard", pC("keyboard", e));
}
-function dC(e) {
- iC = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (sC = !0, lC("pointer", e));
+function hC(e) {
+ cC = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (dC = !0, pC("pointer", e));
}
-function fC(e) {
- !ZS.isOpening && YS(e) && (sC = !0, iC = "virtual");
+function gC(e) {
+ !tC.isOpening && $S(e) && (dC = !0, cC = "virtual");
}
-function pC(e) {
- if (zS) return;
- let t = G(e), n = bS(t), r = yS(t);
- t === n ? cC = !0 : t !== r && e.isTrusted && (!sC && !cC && (iC = "virtual", lC("virtual", e)), sC = !1, cC = !1);
+function _C(e) {
+ if (US) return;
+ let t = G(e), n = wS(t), r = CS(t);
+ t === n ? fC = !0 : t !== r && e.isTrusted && (!dC && !fC && (cC = "virtual", pC("virtual", e)), dC = !1, fC = !1);
}
-function mC() {
- zS || (sC = !1, cC = !0);
+function vC() {
+ US || (dC = !1, fC = !0);
}
-function hC(e) {
- let t = DS(yS(G(e)));
+function yC(e) {
+ let t = jS(CS(G(e)));
queueMicrotask(() => {
- DS(yS(G(e))) !== t && bC("keyboard");
+ jS(CS(G(e))) !== t && wC("keyboard");
});
}
-function gC(e) {
+function bC(e) {
if (typeof window > "u" || typeof document > "u") return;
- let t = bS(e), n = yS(e);
- if (oC.get(t)) return;
+ let t = wS(e), n = CS(e);
+ if (uC.get(t)) return;
let r = t.HTMLElement.prototype.focus;
Reflect.defineProperty(t.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function() {
- sC = !0, r.apply(this, arguments);
+ dC = !0, r.apply(this, arguments);
}
- }), n.addEventListener("keydown", uC, !0), n.addEventListener("keyup", uC, !0), n.addEventListener("click", fC, !0), n.addEventListener("invalid", hC, !0), t.addEventListener("focus", pC, !0), t.addEventListener("blur", mC, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", dC, !0), n.addEventListener("pointermove", dC, !0), n.addEventListener("pointerup", dC, !0)), t.addEventListener("beforeunload", () => {
- _C(e);
- }, { once: !0 }), oC.set(t, { focus: r });
+ }), n.addEventListener("keydown", mC, !0), n.addEventListener("keyup", mC, !0), n.addEventListener("click", gC, !0), n.addEventListener("invalid", yC, !0), t.addEventListener("focus", _C, !0), t.addEventListener("blur", vC, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", hC, !0), n.addEventListener("pointermove", hC, !0), n.addEventListener("pointerup", hC, !0)), t.addEventListener("beforeunload", () => {
+ xC(e);
+ }, { once: !0 }), uC.set(t, { focus: r });
}
-var _C = (e, t) => {
- let n = bS(e), r = yS(e);
- t && r.removeEventListener("DOMContentLoaded", t), oC.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
+var xC = (e, t) => {
+ let n = wS(e), r = CS(e);
+ t && r.removeEventListener("DOMContentLoaded", t), uC.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
- value: oC.get(n).focus
- }), r.removeEventListener("keydown", uC, !0), r.removeEventListener("keyup", uC, !0), r.removeEventListener("click", fC, !0), r.removeEventListener("invalid", hC, !0), n.removeEventListener("focus", pC, !0), n.removeEventListener("blur", mC, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", dC, !0), r.removeEventListener("pointermove", dC, !0), r.removeEventListener("pointerup", dC, !0)), oC.delete(n));
+ value: uC.get(n).focus
+ }), r.removeEventListener("keydown", mC, !0), r.removeEventListener("keyup", mC, !0), r.removeEventListener("click", gC, !0), r.removeEventListener("invalid", yC, !0), n.removeEventListener("focus", _C, !0), n.removeEventListener("blur", vC, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", hC, !0), r.removeEventListener("pointermove", hC, !0), r.removeEventListener("pointerup", hC, !0)), uC.delete(n));
};
-function Vae(e) {
- let t = yS(e), n;
+function Hae(e) {
+ let t = CS(e), n;
return t.readyState === "loading" ? (n = () => {
- gC(e);
- }, t.addEventListener("DOMContentLoaded", n)) : gC(e), () => _C(e, n);
+ bC(e);
+ }, t.addEventListener("DOMContentLoaded", n)) : bC(e), () => xC(e, n);
}
-typeof document < "u" && Vae();
-function vC() {
- return iC !== "pointer";
+typeof document < "u" && Hae();
+function SC() {
+ return cC !== "pointer";
}
-function yC() {
- return iC;
+function CC() {
+ return cC;
}
-function bC(e) {
- iC = e, lC(e, null);
+function wC(e) {
+ cC = e, pC(e, null);
}
-function xC() {
- gC();
- let [e, t] = (0, F.useState)(iC);
+function TC() {
+ bC();
+ let [e, t] = (0, F.useState)(cC);
return (0, F.useEffect)(() => {
let e = () => {
- t(iC);
+ t(cC);
};
- return aC.add(e), () => {
- aC.delete(e);
+ return lC.add(e), () => {
+ lC.delete(e);
};
- }, []), rC() ? null : e;
+ }, []), sC() ? null : e;
}
-var Hae = /* @__PURE__ */ new Set([
+var Uae = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -22839,107 +22852,107 @@ var Hae = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function Uae(e, t, n) {
- let r = n ? G(n) : void 0, i = yS(r), a = bS(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 = DS(i);
- return e = e || u instanceof o && !Hae.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !zae[n.key]);
+function Wae(e, t, n) {
+ let r = n ? G(n) : void 0, i = CS(r), a = wS(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 = jS(i);
+ return e = e || u instanceof o && !Uae.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !Bae[n.key]);
}
-function SC(e = {}) {
- let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, F.useState)(n || vC());
- return CC((e) => {
+function EC(e = {}) {
+ let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, F.useState)(n || SC());
+ return DC((e) => {
i(e);
}, [t], { isTextInput: t }), { isFocusVisible: r };
}
-function CC(e, t, n) {
- gC(), (0, F.useEffect)(() => {
+function DC(e, t, n) {
+ bC(), (0, F.useEffect)(() => {
if (n?.enabled === !1) return;
let t = (t, r) => {
- Uae(!!n?.isTextInput, t, r) && e(vC());
+ Wae(!!n?.isTextInput, t, r) && e(SC());
};
- return aC.add(t), () => {
- aC.delete(t);
+ return lC.add(t), () => {
+ lC.delete(t);
};
}, t);
}
// node_modules/react-aria/dist/private/utils/runAfterTransition.mjs
-var wC = /* @__PURE__ */ new Map(), TC = /* @__PURE__ */ new Set();
-function EC(e) {
+var OC = /* @__PURE__ */ new Map(), kC = /* @__PURE__ */ new Set();
+function AC(e) {
return "propertyName" in e;
}
-function Wae(e) {
+function Gae(e) {
let t = G(e);
- if (!EC(e) || !t) return;
- let n = wC.get(t);
- n || (n = /* @__PURE__ */ new Set(), wC.set(t, n), t.addEventListener("transitioncancel", DC, { once: !0 })), n.add(e.propertyName);
+ if (!AC(e) || !t) return;
+ let n = OC.get(t);
+ n || (n = /* @__PURE__ */ new Set(), OC.set(t, n), t.addEventListener("transitioncancel", jC, { once: !0 })), n.add(e.propertyName);
}
-function DC(e) {
+function jC(e) {
let t = G(e);
- if (!EC(e) || !t) return;
- let n = wC.get(t);
- if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", DC), wC.delete(t)), wC.size === 0)) for (let e of TC) e(!0), TC.delete(e);
+ if (!AC(e) || !t) return;
+ let n = OC.get(t);
+ if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", jC), OC.delete(t)), OC.size === 0)) for (let e of kC) e(!0), kC.delete(e);
}
-function OC() {
- CS(document, "transitionrun", Wae), CS(document, "transitionend", DC);
+function MC() {
+ DS(document, "transitionrun", Gae), DS(document, "transitionend", jC);
}
-function Gae() {
- for (let [e] of wC) "isConnected" in e && !e.isConnected && wC.delete(e);
+function Kae() {
+ for (let [e] of OC) "isConnected" in e && !e.isConnected && OC.delete(e);
}
-typeof document < "u" && (document.readyState === "loading" ? CS(document, "DOMContentLoaded", OC) : OC());
-function kC(e) {
+typeof document < "u" && (document.readyState === "loading" ? DS(document, "DOMContentLoaded", MC) : MC());
+function NC(e) {
let t = window.requestAnimationFrame(() => {
- if (Gae(), wC.size === 0) return e(!1);
- TC.add(e);
+ if (Kae(), OC.size === 0) return e(!1);
+ kC.add(e);
});
return () => {
- window.cancelAnimationFrame(t), TC.delete(e);
+ window.cancelAnimationFrame(t), kC.delete(e);
};
}
// node_modules/react-aria/dist/private/interactions/focusSafely.mjs
-function AC(e) {
+function PC(e) {
if (!e.isConnected) return;
- let t = yS(e);
- if (yC() === "virtual") {
- let n = DS(t);
- kC(() => {
- let r = DS(t);
- (r === n || r === t.body) && e.isConnected && vS(e);
+ let t = CS(e);
+ if (CC() === "virtual") {
+ let n = jS(t);
+ NC(() => {
+ let r = jS(t);
+ (r === n || r === t.body) && e.isConnected && SS(e);
});
- } else vS(e);
+ } else SS(e);
}
// node_modules/react-aria/dist/private/utils/chain.mjs
-function jC(...e) {
+function FC(...e) {
return (...t) => {
for (let n of e) typeof n == "function" && n(...t);
};
}
// node_modules/react-aria/dist/private/utils/useValueEffect.mjs
-function Kae(e) {
+function qae(e) {
let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(t), i = (0, F.useRef)(null), a = (0, F.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 FS(() => {
+ return zS(() => {
r.current = t, i.current && a.current();
}), [t, (0, F.useCallback)((e) => {
i.current = e(r.current), a.current();
}, [a])];
}
// node_modules/react-aria/dist/private/utils/useId.mjs
-var qae = !!(typeof window < "u" && window.document && window.document.createElement), MC = /* @__PURE__ */ new Map(), NC;
-typeof FinalizationRegistry < "u" && (NC = new FinalizationRegistry((e) => {
- MC.delete(e);
+var Jae = !!(typeof window < "u" && window.document && window.document.createElement), IC = /* @__PURE__ */ new Map(), LC;
+typeof FinalizationRegistry < "u" && (LC = new FinalizationRegistry((e) => {
+ IC.delete(e);
}));
-var PC = /* @__PURE__ */ new WeakMap();
-function FC(e) {
- let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(null), i = Fae(t), a = (0, F.useRef)(null), o = PC.get(a);
- if (NC && o !== i && (o != null && NC.unregister(a), NC.register(a, i, a), PC.set(a, i)), qae) {
- let e = MC.get(i);
- e && !e.includes(r) ? e.push(r) : MC.set(i, [r]);
- }
- return FS(() => {
+var RC = /* @__PURE__ */ new WeakMap();
+function zC(e) {
+ let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(null), i = Iae(t), a = (0, F.useRef)(null), o = RC.get(a);
+ if (LC && o !== i && (o != null && LC.unregister(a), LC.register(a, i, a), RC.set(a, i)), Jae) {
+ let e = IC.get(i);
+ e && !e.includes(r) ? e.push(r) : IC.set(i, [r]);
+ }
+ return zS(() => {
let e = i;
return () => {
- NC && (NC.unregister(a), PC.delete(a)), MC.delete(e);
+ LC && (LC.unregister(a), RC.delete(a)), IC.delete(e);
};
}, [i]), (0, F.useEffect)(() => {
let e = r.current;
@@ -22948,57 +22961,57 @@ function FC(e) {
};
}), i;
}
-function Jae(e, t) {
+function Yae(e, t) {
if (e === t) return e;
- let n = MC.get(e);
+ let n = IC.get(e);
if (n) return n.forEach((e) => e.current = t), t;
- let r = MC.get(t);
+ let r = IC.get(t);
return r ? (r.forEach((t) => t.current = e), e) : t;
}
-function IC(e = []) {
- let t = FC(), [n, r] = Kae(t), i = (0, F.useCallback)(() => {
+function BC(e = []) {
+ let t = zC(), [n, r] = qae(t), i = (0, F.useCallback)(() => {
r(function* () {
yield t, yield document.getElementById(t) ? t : void 0;
});
}, [t, r]);
- return FS(i, [
+ return zS(i, [
t,
i,
...e
]), n;
}
// node_modules/react-aria/dist/private/utils/mergeRefs.mjs
-function LC(...e) {
+function VC(...e) {
return e.length === 1 && e[0] ? e[0] : (t) => {
let n = !1, r = e.map((e) => {
- let r = RC(e, t);
+ let r = HC(e, t);
return n ||= typeof r == "function", r;
});
if (n) return () => {
r.forEach((t, n) => {
- typeof t == "function" ? t() : RC(e[n], null);
+ typeof t == "function" ? t() : HC(e[n], null);
});
};
};
}
-function RC(e, t) {
+function HC(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
// node_modules/clsx/dist/clsx.mjs
-function zC(e) {
+function UC(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 = zC(e[t])) && (r && (r += " "), r += n);
+ for (t = 0; t < i; t++) e[t] && (n = UC(e[t])) && (r && (r += " "), r += n);
} else for (n in e) e[n] && (r && (r += " "), r += n);
}
return r;
}
-function BC() {
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = zC(e)) && (r && (r += " "), r += t);
+function WC() {
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = UC(e)) && (r && (r += " "), r += t);
return r;
}
// node_modules/react-aria/dist/private/utils/mergeProps.mjs
@@ -23008,17 +23021,17 @@ function K(...e) {
let r = e[n];
for (let e in r) {
let n = t[e], i = r[e];
- typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = jC(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = BC(n, i) : e === "id" && n && i ? t.id = Jae(n, i) : e === "ref" && n && i ? t.ref = LC(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] = FC(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = WC(n, i) : e === "id" && n && i ? t.id = Yae(n, i) : e === "ref" && n && i ? t.ref = VC(n, i) : t[e] = i === void 0 ? n : i;
}
}
return t;
}
// node_modules/react-aria/dist/private/interactions/useFocus.mjs
-function VC(e) {
+function GC(e) {
let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, F.useCallback)((e) => {
if (G(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
- }, [r, i]), o = RS(a), s = (0, F.useCallback)((e) => {
- let t = G(e), r = yS(t), a = r ? DS(r) : DS();
+ }, [r, i]), o = HS(a), s = (0, F.useCallback)((e) => {
+ let t = G(e), r = CS(t), a = r ? jS(r) : jS();
t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));
}, [
i,
@@ -23031,7 +23044,7 @@ function VC(e) {
} };
}
// node_modules/react-aria/dist/private/interactions/createEventHandler.mjs
-function HC(e) {
+function KC(e) {
if (e) return (t) => {
let n = !0;
e({
@@ -23055,33 +23068,33 @@ function HC(e) {
};
}
// node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs
-var Yae = /* @__PURE__ */ new Set([
+var Xae = /* @__PURE__ */ new Set([
"shift",
"alt",
"control",
"meta",
"mod"
-]), Xae = [
+]), Zae = [
"Alt",
"Control",
"Meta",
"Shift"
];
-function Zae(e) {
+function Qae(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(US() ? "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(qS() ? "Meta" : "Control"), t;
}
-function Qae(e) {
+function $ae(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 UC(e) {
- return Xae.filter((t) => e.has(t));
+function qC(e) {
+ return Zae.filter((t) => e.has(t));
}
-function $ae(e) {
+function eoe(e) {
let t = e.split("+").reduce((e, t) => {
let n = t.toLowerCase();
- return Yae.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 Xae.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,
@@ -23093,10 +23106,10 @@ function $ae(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 WC(e) {
+function JC(e) {
return e.toLowerCase();
}
-var eoe = {
+var toe = {
space: " ",
esc: "escape",
del: "delete",
@@ -23108,26 +23121,26 @@ var eoe = {
pageup: "pageup",
pagedown: "pagedown"
};
-function toe(e) {
- let t = WC(e);
- return eoe[t] ?? t;
-}
function noe(e) {
- let t = UC(Zae(e)), n = toe(e.key);
- return t.length > 0 ? `${t.join("+")}+${n}` : n;
+ let t = JC(e);
+ return toe[t] ?? t;
}
function roe(e) {
- let t = UC(Qae(e)), n = WC(e.key);
- return (t.length > 0 ? `${t.join("+")}+` : "") + n;
+ let t = qC(Qae(e)), n = noe(e.key);
+ return t.length > 0 ? `${t.join("+")}+${n}` : n;
}
function ioe(e) {
+ let t = qC($ae(e)), n = JC(e.key);
+ return (t.length > 0 ? `${t.join("+")}+` : "") + n;
+}
+function aoe(e) {
let t = /* @__PURE__ */ new Map();
for (let [n, r] of Object.entries(e)) {
- let e = $ae(n);
- t.set(noe(e), r);
+ let e = eoe(n);
+ t.set(roe(e), r);
}
return (e) => {
- let n = roe(e), r = t.get(n), i = r?.(e);
+ let n = ioe(e), r = t.get(n), i = r?.(e);
i === void 0 && r !== void 0 ? i = {
shouldContinuePropagation: !1,
shouldPreventDefault: !0
@@ -23138,23 +23151,23 @@ function ioe(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useKeyboard.mjs
-function GC(e) {
+function YC(e) {
let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;
if (t) {
- let o = ioe(t), s = HC((e) => {
- ES(e.currentTarget, G(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
- }), c = HC((e) => {
- ES(e.currentTarget, G(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
+ let o = aoe(t), s = KC((e) => {
+ AS(e.currentTarget, G(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
+ }), c = KC((e) => {
+ AS(e.currentTarget, G(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
});
- i = e.onKeyDown ? jC(e.onKeyDown, s) : s, a = e.onKeyUp ? jC(e.onKeyUp, c) : c;
- } else i = HC(e.onKeyDown), a = HC(e.onKeyUp);
+ i = e.onKeyDown ? FC(e.onKeyDown, s) : s, a = e.onKeyUp ? FC(e.onKeyUp, c) : c;
+ } else i = KC(e.onKeyDown), a = KC(e.onKeyUp);
return { keyboardProps: e.isDisabled ? {} : {
onKeyDown: i,
onKeyUp: a
} };
}
// node_modules/react-aria/dist/private/utils/useObjectRef.mjs
-function KC(e) {
+function XC(e) {
let t = (0, F.useRef)(null), n = (0, F.useRef)(void 0), r = (0, F.useCallback)((t) => {
if (typeof e == "function") {
let n = e, r = n(t);
@@ -23176,25 +23189,25 @@ function KC(e) {
}), [r]);
}
// node_modules/react-aria/dist/private/utils/useSyncRef.mjs
-function qC(e, t) {
- FS(() => {
+function ZC(e, t) {
+ zS(() => {
if (e && e.ref && t) return e.ref.current = t.current, () => {
e.ref && (e.ref.current = null);
};
});
}
// node_modules/react-aria/dist/private/interactions/useFocusable.mjs
-var JC = /*#__PURE__*/ F.createContext(null);
-function aoe(e) {
- let t = (0, F.useContext)(JC) || {};
- qC(t, e);
+var QC = /*#__PURE__*/ F.createContext(null);
+function ooe(e) {
+ let t = (0, F.useContext)(QC) || {};
+ ZC(t, e);
let { ref: n, ...r } = t;
return r;
}
-function YC(e, t) {
- let { focusProps: n } = VC(e), { keyboardProps: r } = GC(e), i = K(n, r), a = aoe(t), o = e.isDisabled ? {} : a, s = (0, F.useRef)(e.autoFocus);
+function $C(e, t) {
+ let { focusProps: n } = GC(e), { keyboardProps: r } = YC(e), i = K(n, r), a = ooe(t), o = e.isDisabled ? {} : a, s = (0, F.useRef)(e.autoFocus);
(0, F.useEffect)(() => {
- s.current && t.current && AC(t.current), s.current = !1;
+ s.current && t.current && PC(t.current), s.current = !1;
}, [t]);
let c = e.excludeFromTabOrder ? -1 : 0;
return e.isDisabled && (c = void 0), { focusableProps: K({
@@ -23228,21 +23241,21 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.p
return this.content.insertBefore(e, t);
}
}));
-var XC = /*#__PURE__*/ (0, F.createContext)(!1);
-function ooe(e) {
- if ((0, F.useContext)(XC)) return /*#__PURE__*/ F.createElement(F.Fragment, null, e.children);
- let t = /*#__PURE__*/ F.createElement(XC.Provider, { value: !0 }, e.children);
+var ew = /*#__PURE__*/ (0, F.createContext)(!1);
+function soe(e) {
+ if ((0, F.useContext)(ew)) return /*#__PURE__*/ F.createElement(F.Fragment, null, e.children);
+ let t = /*#__PURE__*/ F.createElement(ew.Provider, { value: !0 }, e.children);
return /*#__PURE__*/ F.createElement("template", null, t);
}
-function ZC(e) {
- let t = (t, n) => (0, F.useContext)(XC) ? null : e(t, n);
+function tw(e) {
+ let t = (t, n) => (0, F.useContext)(ew) ? null : e(t, n);
return t.displayName = e.displayName || e.name, (0, F.forwardRef)(t);
}
-function QC() {
- return (0, F.useContext)(XC);
+function nw() {
+ return (0, F.useContext)(ew);
}
// node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
-var soe = /* @__PURE__ */ o(((e) => {
+var coe = /* @__PURE__ */ o(((e) => {
var t = A();
function n(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -23280,47 +23293,47 @@ var soe = /* @__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;
-})), $C = /* @__PURE__ */ o(((e, t) => {
- t.exports = soe();
-})), coe = $C(), ew = /*#__PURE__*/ (0, F.createContext)(!1), tw = /*#__PURE__*/ (0, F.createContext)(null);
-function nw(e) {
- if ((0, F.useContext)(tw)) return e.content;
- let { collection: t, document: n } = foe(e.createCollection);
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(ooe, null, /*#__PURE__*/ F.createElement(tw.Provider, { value: n }, e.content)), /*#__PURE__*/ F.createElement(loe, {
+})), rw = /* @__PURE__ */ o(((e, t) => {
+ t.exports = coe();
+})), loe = rw(), iw = /*#__PURE__*/ (0, F.createContext)(!1), aw = /*#__PURE__*/ (0, F.createContext)(null);
+function ow(e) {
+ if ((0, F.useContext)(aw)) return e.content;
+ let { collection: t, document: n } = poe(e.createCollection);
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(soe, null, /*#__PURE__*/ F.createElement(aw.Provider, { value: n }, e.content)), /*#__PURE__*/ F.createElement(uoe, {
render: e.children,
collection: t
}));
}
-function loe({ collection: e, render: t }) {
+function uoe({ collection: e, render: t }) {
return t(e);
}
-function uoe(e, t, n) {
- let r = rC(), i = (0, F.useRef)(r);
+function doe(e, t, n) {
+ let r = sC(), i = (0, F.useRef)(r);
i.current = r;
let a = (0, F.useCallback)(() => i.current ? n() : t(), [t, n]);
- return (0, coe.useSyncExternalStore)(e, a);
+ return (0, loe.useSyncExternalStore)(e, a);
}
-var doe = typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore : uoe;
-function foe(e) {
- let [t] = (0, F.useState)(() => new fae(e?.() || new pS()));
+var foe = typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore : doe;
+function poe(e) {
+ let [t] = (0, F.useState)(() => new pae(e?.() || new _S()));
return {
- collection: doe((0, F.useCallback)((e) => t.subscribe(e), [t]), (0, F.useCallback)(() => {
+ collection: foe((0, F.useCallback)((e) => t.subscribe(e), [t]), (0, F.useCallback)(() => {
let e = t.getCollection();
return t.isSSR && t.resetAfterSSR(), e;
}, [t]), (0, F.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
document: t
};
}
-var rw = /*#__PURE__*/ (0, F.createContext)(null);
-function poe(e) {
- return class extends lS {
+var sw = /*#__PURE__*/ (0, F.createContext)(null);
+function moe(e) {
+ return class extends pS {
static {
this.type = e;
}
};
}
-function iw(e, t, n, r, i, a) {
- typeof e == "string" && (e = poe(e));
+function cw(e, t, n, r, i, a) {
+ typeof e == "string" && (e = moe(e));
let o = (0, F.useCallback)((i) => {
i?.setProps(t, n, e, r, a);
}, [
@@ -23329,82 +23342,82 @@ function iw(e, t, n, r, i, a) {
r,
a,
e
- ]), s = (0, F.useContext)(rw);
+ ]), s = (0, F.useContext)(sw);
if (s) {
let o = s.ownerDocument.nodesByProps.get(t);
- return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ F.createElement(rw.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__*/ F.createElement(sw.Provider, { value: o }, i) : null;
}
return /*#__PURE__*/ F.createElement(e.type, { ref: o }, i);
}
-function aw(e, t) {
+function lw(e, t) {
let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, F.forwardRef)((r, i) => {
- let a = (0, F.useContext)(JC);
- if (!(0, F.useContext)(ew)) {
+ let a = (0, F.useContext)(QC);
+ if (!(0, F.useContext)(iw)) {
if (t.length >= 3) throw Error(t.name + " cannot be rendered outside a collection.");
return t(r, i);
}
- return iw(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ F.createElement(JC.Provider, { value: a }, /*#__PURE__*/ F.createElement(n, { node: e })));
+ return cw(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ F.createElement(QC.Provider, { value: a }, /*#__PURE__*/ F.createElement(n, { node: e })));
});
return r.displayName = t.name, r;
}
-function ow(e, t, n = sw) {
- let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, F.forwardRef)((t, i) => iw(e, t, i, null, n(t), (e) => /*#__PURE__*/ F.createElement(r, { node: e })) ?? /*#__PURE__*/ F.createElement(F.Fragment, null));
+function uw(e, t, n = dw) {
+ let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, F.forwardRef)((t, i) => cw(e, t, i, null, n(t), (e) => /*#__PURE__*/ F.createElement(r, { node: e })) ?? /*#__PURE__*/ F.createElement(F.Fragment, null));
return i.displayName = t.name, i;
}
-function sw(e) {
- return _S({
+function dw(e) {
+ return xS({
...e,
addIdAndValue: !0
});
}
-var cw = /*#__PURE__*/ (0, F.createContext)(null);
-function lw(e) {
- let t = (0, F.useContext)(cw), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = sw({
+var fw = /*#__PURE__*/ (0, F.createContext)(null);
+function pw(e) {
+ let t = (0, F.useContext)(fw), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = dw({
...e,
idScope: r,
dependencies: n
});
- return (0, F.useContext)(tw) && (i = /*#__PURE__*/ F.createElement(moe, null, i)), t = (0, F.useMemo)(() => ({
+ return (0, F.useContext)(aw) && (i = /*#__PURE__*/ F.createElement(hoe, null, i)), t = (0, F.useMemo)(() => ({
dependencies: n,
idScope: r
- }), [r, ...n]), /*#__PURE__*/ F.createElement(cw.Provider, { value: t }, i);
+ }), [r, ...n]), /*#__PURE__*/ F.createElement(fw.Provider, { value: t }, i);
}
-function moe({ children: e }) {
- let t = (0, F.useContext)(tw), n = (0, F.useMemo)(() => /*#__PURE__*/ F.createElement(tw.Provider, { value: null }, /*#__PURE__*/ F.createElement(ew.Provider, { value: !0 }, e)), [e]);
- return rC() ? /*#__PURE__*/ F.createElement(rw.Provider, { value: t }, n) : /*#__PURE__*/ (0, Rt.createPortal)(n, t);
+function hoe({ children: e }) {
+ let t = (0, F.useContext)(aw), n = (0, F.useMemo)(() => /*#__PURE__*/ F.createElement(aw.Provider, { value: null }, /*#__PURE__*/ F.createElement(iw.Provider, { value: !0 }, e)), [e]);
+ return sC() ? /*#__PURE__*/ F.createElement(sw.Provider, { value: t }, n) : /*#__PURE__*/ (0, Rt.createPortal)(n, t);
}
// node_modules/react-aria/dist/private/utils/constants.mjs
-var hoe = "react-aria-clear-focus", goe = "react-aria-focus";
+var goe = "react-aria-clear-focus", _oe = "react-aria-focus";
// node_modules/react-aria/dist/private/focus/virtualFocus.mjs
-function uw(e) {
- let t = voe(yS(e));
- t !== e && (t && _oe(t, e), e && dw(e, t));
+function mw(e) {
+ let t = yoe(CS(e));
+ t !== e && (t && voe(t, e), e && hw(e, t));
}
-function _oe(e, t) {
+function voe(e, t) {
e.dispatchEvent(new FocusEvent("blur", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: t
}));
}
-function dw(e, t) {
+function hw(e, t) {
e.dispatchEvent(new FocusEvent("focus", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusin", {
bubbles: !0,
relatedTarget: t
}));
}
-function voe(e) {
- let t = DS(e), n = t?.getAttribute("aria-activedescendant");
+function yoe(e) {
+ let t = jS(e), n = t?.getAttribute("aria-activedescendant");
return n && e.getElementById(n) || t;
}
// node_modules/react-aria/dist/private/utils/getMetaValue.mjs
-function fw(e, t) {
- let n = bS(t), r = yS(t);
+function gw(e, t) {
+ let n = wS(t), r = CS(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;
}
// node_modules/react-aria/dist/private/utils/keyboard.mjs
-var pw = 100, mw = 600, hw = {
+var _w = 100, vw = 600, yw = {
isOpen: !1,
screenWidth: 0,
screenHeight: 0,
@@ -23414,7 +23427,7 @@ var pw = 100, mw = 600, hw = {
endTimeStamp: 0,
resizeTimeStamp: 0,
resizeTimeout: 0
-}, yoe = /* @__PURE__ */ new Set([
+}, boe = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -23425,7 +23438,7 @@ var pw = 100, mw = 600, hw = {
"submit",
"reset"
]);
-function gw() {
+function bw() {
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,
@@ -23433,58 +23446,58 @@ function gw() {
angle: window.screen.orientation?.angle ?? 0
};
}
-function boe(e) {
- hw.resizeTimeStamp <= e.timeStamp + 50 && (hw.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(hw.resizeTimeout), hw.resizeTimeout = window.setTimeout(_w, 150));
+function xoe(e) {
+ yw.resizeTimeStamp <= e.timeStamp + 50 && (yw.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(yw.resizeTimeout), yw.resizeTimeout = window.setTimeout(xw, 150));
}
-function _w() {
- let e = fw("viewport");
- if (JS() && e?.includes("overlays-content")) return;
- let t = performance.now(), n = gw(), r = t - hw.startTimeStamp, i = hw.screenHeight - n.height, a = hw.screenAngle - n.angle;
- Math.abs(a) % 180 && hw.screenWidth - n.height < pw && (hw.screenWidth = n.width, hw.screenHeight = n.height, hw.screenAngle = n.angle, i = 0), r > mw && (window.clearTimeout(hw.screenTimeout), hw.screenTimeout = window.setTimeout(() => {
- let e = bw(document.hasFocus() ? DS() : null), t = gw();
- Math.abs(hw.screenAngle - t.angle) % 180 || hw.isOpen && e || (hw.screenWidth = t.width, hw.screenHeight = t.height, hw.screenAngle = t.angle, hw.isOpen = !1);
- }, mw)), r <= mw && i >= pw && (hw.endTimeStamp = t), hw.isOpen = i >= pw;
+function xw() {
+ let e = gw("viewport");
+ if (QS() && e?.includes("overlays-content")) return;
+ let t = performance.now(), n = bw(), r = t - yw.startTimeStamp, i = yw.screenHeight - n.height, a = yw.screenAngle - n.angle;
+ Math.abs(a) % 180 && yw.screenWidth - n.height < _w && (yw.screenWidth = n.width, yw.screenHeight = n.height, yw.screenAngle = n.angle, i = 0), r > vw && (window.clearTimeout(yw.screenTimeout), yw.screenTimeout = window.setTimeout(() => {
+ let e = ww(document.hasFocus() ? jS() : null), t = bw();
+ Math.abs(yw.screenAngle - t.angle) % 180 || yw.isOpen && e || (yw.screenWidth = t.width, yw.screenHeight = t.height, yw.screenAngle = t.angle, yw.isOpen = !1);
+ }, vw)), r <= vw && i >= _w && (yw.endTimeStamp = t), yw.isOpen = i >= _w;
}
-function xoe() {
- let e = gw(), t = hw.screenAngle - e.angle;
- if (Math.abs(t) % 180 && !hw.isOpen) {
- let e = hw.screenWidth;
- hw.screenWidth = hw.screenHeight, hw.screenHeight = e;
+function Soe() {
+ let e = bw(), t = yw.screenAngle - e.angle;
+ if (Math.abs(t) % 180 && !yw.isOpen) {
+ let e = yw.screenWidth;
+ yw.screenWidth = yw.screenHeight, yw.screenHeight = e;
}
- hw.isOpen || (hw.screenAngle = e.angle);
+ yw.isOpen || (yw.screenAngle = e.angle);
}
-function Soe(e) {
- let t = bw(G(e)), n = performance.now(), r = gw(), i = hw.screenHeight - r.height;
- i < pw && t && (hw.screenWidth = r.width, hw.screenHeight = r.height, hw.screenAngle = r.angle, hw.startTimeStamp = n), t && window.clearTimeout(hw.screenTimeout), i >= pw && t && (hw.endTimeStamp = n);
+function Coe(e) {
+ let t = ww(G(e)), n = performance.now(), r = bw(), i = yw.screenHeight - r.height;
+ i < _w && t && (yw.screenWidth = r.width, yw.screenHeight = r.height, yw.screenAngle = r.angle, yw.startTimeStamp = n), t && window.clearTimeout(yw.screenTimeout), i >= _w && t && (yw.endTimeStamp = n);
}
-function vw() {
- let e = gw();
- CS(window.visualViewport, "resize", KS() ? _w : boe), CS(window.screen.orientation, "change", xoe), CS(window, "focus", Soe, {
+function Sw() {
+ let e = bw();
+ DS(window.visualViewport, "resize", XS() ? xw : xoe), DS(window.screen.orientation, "change", Soe), DS(window, "focus", Coe, {
capture: !0,
passive: !0
- }), hw.screenWidth = e.width, hw.screenHeight = e.height, hw.screenAngle = e.angle;
+ }), yw.screenWidth = e.width, yw.screenHeight = e.height, yw.screenAngle = e.angle;
}
-typeof document < "u" && (document.readyState === "loading" ? CS(document, "DOMContentLoaded", vw) : vw());
-function yw() {
- let e = fw("viewport");
- return JS() && e?.includes("overlays-content") ? !1 : hw.isOpen ? !0 : hw.startTimeStamp ? hw.endTimeStamp >= hw.startTimeStamp ? !0 : performance.now() - hw.startTimeStamp <= mw ? hw.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;
+typeof document < "u" && (document.readyState === "loading" ? DS(document, "DOMContentLoaded", Sw) : Sw());
+function Cw() {
+ let e = gw("viewport");
+ return QS() && e?.includes("overlays-content") ? !1 : yw.isOpen ? !0 : yw.startTimeStamp ? yw.endTimeStamp >= yw.startTimeStamp ? !0 : performance.now() - yw.startTimeStamp <= vw ? yw.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;
}
-function bw(e) {
- if (!(e instanceof Element) || !MS(e)) return !1;
- let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !yoe.has(e.type);
+function ww(e) {
+ if (!(e instanceof Element) || !IS(e)) return !1;
+ let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !boe.has(e.type);
return t || n || r;
}
-function xw(e) {
- return US() ? e.metaKey : e.ctrlKey;
+function Tw(e) {
+ return qS() ? e.metaKey : e.ctrlKey;
}
-function Sw() {
- return hw.isOpen;
+function Ew() {
+ return yw.isOpen;
}
// node_modules/react-aria/dist/private/utils/useEffectEvent.mjs
-var Coe = F.useInsertionEffect ?? FS;
-function Cw(e) {
+var woe = F.useInsertionEffect ?? zS;
+function Dw(e) {
let t = (0, F.useRef)(null);
- return Coe(() => {
+ return woe(() => {
t.current = e;
}, [e]), (0, F.useCallback)((...e) => {
let n = t.current;
@@ -23492,10 +23505,10 @@ function Cw(e) {
}, []);
}
// node_modules/react-aria/dist/private/utils/useEvent.mjs
-function ww(e, t, n, r) {
- let i = Cw(n), a = n == null;
+function Ow(e, t, n, r) {
+ let i = Dw(n), a = n == null;
(0, F.useEffect)(() => {
- if (!(a || e.current == null)) return CS(e.current, t, i, r);
+ if (!(a || e.current == null)) return DS(e.current, t, i, r);
}, [
e,
t,
@@ -23504,16 +23517,16 @@ function ww(e, t, n, r) {
]);
}
// node_modules/react-aria/dist/private/utils/useLabels.mjs
-function Tw(e, t) {
+function kw(e, t) {
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
- return n = FC(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 = zC(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
};
}
// node_modules/react-aria/dist/private/i18n/utils.mjs
-var woe = /* @__PURE__ */ new Set([
+var Toe = /* @__PURE__ */ new Set([
"Arab",
"Syrc",
"Samr",
@@ -23524,7 +23537,7 @@ var woe = /* @__PURE__ */ new Set([
"Adlm",
"Rohg",
"Hebr"
-]), Toe = /* @__PURE__ */ new Set([
+]), Eoe = /* @__PURE__ */ new Set([
"ae",
"ar",
"arc",
@@ -23545,19 +23558,19 @@ var woe = /* @__PURE__ */ new Set([
"ur",
"yi"
]);
-function Eoe(e) {
+function Doe(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 woe.has(t.script);
+ if (t.script) return Toe.has(t.script);
}
let t = e.split("-")[0];
- return Toe.has(t);
+ return Eoe.has(t);
}
// node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs
-var Ew = Symbol.for("react-aria.i18n.locale");
-function Dw() {
- let e = typeof window < "u" && window[Ew] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
+var Aw = Symbol.for("react-aria.i18n.locale");
+function jw() {
+ let e = typeof window < "u" && window[Aw] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
try {
Intl.DateTimeFormat.supportedLocalesOf([e]);
} catch {
@@ -23565,31 +23578,31 @@ function Dw() {
}
return {
locale: e,
- direction: Eoe(e) ? "rtl" : "ltr"
+ direction: Doe(e) ? "rtl" : "ltr"
};
}
-var Ow = Dw(), kw = /* @__PURE__ */ new Set();
-function Aw() {
- Ow = Dw();
- for (let e of kw) e(Ow);
+var Mw = jw(), Nw = /* @__PURE__ */ new Set();
+function Pw() {
+ Mw = jw();
+ for (let e of Nw) e(Mw);
}
-function Doe() {
- let e = rC(), [t, n] = (0, F.useState)(Ow);
- return (0, F.useEffect)(() => (kw.size === 0 && window.addEventListener("languagechange", Aw), kw.add(n), () => {
- kw.delete(n), kw.size === 0 && window.removeEventListener("languagechange", Aw);
+function Ooe() {
+ let e = sC(), [t, n] = (0, F.useState)(Mw);
+ return (0, F.useEffect)(() => (Nw.size === 0 && window.addEventListener("languagechange", Pw), Nw.add(n), () => {
+ Nw.delete(n), Nw.size === 0 && window.removeEventListener("languagechange", Pw);
}), []), e ? {
- locale: typeof window < "u" && window[Ew] || "en-US",
+ locale: typeof window < "u" && window[Aw] || "en-US",
direction: "ltr"
} : t;
}
// node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
-var Ooe = /*#__PURE__*/ F.createContext(null);
-function jw() {
- let e = Doe();
- return (0, F.useContext)(Ooe) || e;
+var koe = /*#__PURE__*/ F.createContext(null);
+function Fw() {
+ let e = Ooe();
+ return (0, F.useContext)(koe) || e;
}
// node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
-var koe = Symbol.for("react-aria.i18n.locale"), Aoe = Symbol.for("react-aria.i18n.strings"), Mw = void 0, Nw = class e {
+var Aoe = Symbol.for("react-aria.i18n.locale"), joe = Symbol.for("react-aria.i18n.strings"), Iw = void 0, Lw = class e {
constructor(e, t = "en-US") {
this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;
}
@@ -23600,38 +23613,38 @@ var koe = Symbol.for("react-aria.i18n.locale"), Aoe = Symbol.for("react-aria.i18
}
getStringsForLocale(e) {
let t = this.strings[e];
- return t || (t = joe(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
+ return t || (t = Moe(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
}
static getGlobalDictionaryForPackage(t) {
if (typeof window > "u") return null;
- let n = window[koe];
- if (Mw === void 0) {
- let t = window[Aoe];
+ let n = window[Aoe];
+ if (Iw === void 0) {
+ let t = window[joe];
if (!t) return null;
- Mw = {};
- for (let r in t) Mw[r] = new e({ [n]: t[r] }, n);
+ Iw = {};
+ for (let r in t) Iw[r] = new e({ [n]: t[r] }, n);
}
- let r = Mw?.[t];
+ let r = Iw?.[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 joe(e, t, n = "en-US") {
+function Moe(e, t, n = "en-US") {
if (t[e]) return t[e];
- let r = Moe(e), i = Noe(e);
+ let r = Noe(e), i = Poe(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 Moe(e) {
+function Noe(e) {
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
}
-function Noe(e) {
+function Poe(e) {
if (Intl.Locale) return new Intl.Locale(e).script;
}
// node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
-var Pw = /* @__PURE__ */ new Map(), Fw = /* @__PURE__ */ new Map(), Poe = class {
+var Rw = /* @__PURE__ */ new Map(), zw = /* @__PURE__ */ new Map(), Foe = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -23642,36 +23655,36 @@ var Pw = /* @__PURE__ */ new Map(), Fw = /* @__PURE__ */ new Map(), Poe = class
plural(e, t, n = "cardinal") {
let r = t["=" + e];
if (r) return typeof r == "function" ? r() : r;
- let i = this.locale + ":" + n, a = Pw.get(i);
- return a || (a = new Intl.PluralRules(this.locale, { type: n }), Pw.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
+ let i = this.locale + ":" + n, a = Rw.get(i);
+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), Rw.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
}
number(e) {
- let t = Fw.get(this.locale);
- return t || (t = new Intl.NumberFormat(this.locale), Fw.set(this.locale, t)), t.format(e);
+ let t = zw.get(this.locale);
+ return t || (t = new Intl.NumberFormat(this.locale), zw.set(this.locale, t)), t.format(e);
}
select(e, t) {
let n = e[t] || e.other;
return typeof n == "function" ? n() : n;
}
-}, Iw = /* @__PURE__ */ new WeakMap();
-function Foe(e) {
- let t = Iw.get(e);
- return t || (t = new Nw(e), Iw.set(e, t)), t;
+}, Bw = /* @__PURE__ */ new WeakMap();
+function Ioe(e) {
+ let t = Bw.get(e);
+ return t || (t = new Lw(e), Bw.set(e, t)), t;
}
-function Ioe(e, t) {
- return t && Nw.getGlobalDictionaryForPackage(t) || Foe(e);
+function Loe(e, t) {
+ return t && Lw.getGlobalDictionaryForPackage(t) || Ioe(e);
}
-function Lw(e, t) {
- let { locale: n } = jw(), r = Ioe(e, t);
- return (0, F.useMemo)(() => new Poe(n, r), [n, r]);
+function Vw(e, t) {
+ let { locale: n } = Fw(), r = Loe(e, t);
+ return (0, F.useMemo)(() => new Foe(n, r), [n, r]);
}
// node_modules/react-aria/dist/private/utils/filterDOMProps.mjs
-var Loe = /* @__PURE__ */ new Set(["id"]), Roe = /* @__PURE__ */ new Set([
+var Roe = /* @__PURE__ */ new Set(["id"]), zoe = /* @__PURE__ */ new Set([
"aria-label",
"aria-labelledby",
"aria-describedby",
"aria-details"
-]), zoe = /* @__PURE__ */ new Set([
+]), Boe = /* @__PURE__ */ new Set([
"href",
"hrefLang",
"target",
@@ -23679,60 +23692,60 @@ var Loe = /* @__PURE__ */ new Set(["id"]), Roe = /* @__PURE__ */ new Set([
"download",
"ping",
"referrerPolicy"
-]), Boe = /* @__PURE__ */ new Set([
+]), Voe = /* @__PURE__ */ new Set([
"dir",
"lang",
"hidden",
"inert",
"translate",
"suppressHydrationWarning"
-]), Rw = /* @__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(".")), Voe = /^(data-.*)$/;
-function zw(e, t = {}) {
+]), Hw = /* @__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(".")), Hoe = /^(data-.*)$/;
+function Uw(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) && (Loe.has(t) || n && Roe.has(t) || r && zoe.has(t) || i && Boe.has(t) || a && (Rw.has(t) || t.endsWith("Capture") && Rw.has(t.slice(0, -7))) || o?.has(t) || Voe.test(t)) && (s[t] = e[t]);
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (Roe.has(t) || n && zoe.has(t) || r && Boe.has(t) || i && Voe.has(t) || a && (Hw.has(t) || t.endsWith("Capture") && Hw.has(t.slice(0, -7))) || o?.has(t) || Hoe.test(t)) && (s[t] = e[t]);
return s;
}
// node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var Bw = "default", Vw = "", Hw = /* @__PURE__ */ new WeakMap();
-function Uw(e) {
- if (GS() && KS()) {
- if (Bw === "default") {
- let t = yS(e);
- Vw = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
- }
- Bw = "disabled";
+var Ww = "default", Gw = "", Kw = /* @__PURE__ */ new WeakMap();
+function qw(e) {
+ if (YS() && XS()) {
+ if (Ww === "default") {
+ let t = CS(e);
+ Gw = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
+ }
+ Ww = "disabled";
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- Hw.set(e, e.style[t]), e.style[t] = "none";
+ Kw.set(e, e.style[t]), e.style[t] = "none";
}
}
-function Ww(e) {
- if (GS() && KS()) {
- if (Bw !== "disabled") return;
- Bw = "restoring", setTimeout(() => {
- kC(() => {
- if (Bw === "restoring") {
- let t = yS(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Vw || ""), Vw = "", Bw = "default";
+function Jw(e) {
+ if (YS() && XS()) {
+ if (Ww !== "disabled") return;
+ Ww = "restoring", setTimeout(() => {
+ NC(() => {
+ if (Ww === "restoring") {
+ let t = CS(e);
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Gw || ""), Gw = "", Ww = "default";
}
});
}, 300);
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Hw.has(e)) {
- let t = Hw.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Hw.delete(e);
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Kw.has(e)) {
+ let t = Kw.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Kw.delete(e);
}
}
// node_modules/react-aria/dist/private/utils/getNonce.mjs
-var Gw = /* @__PURE__ */ new WeakMap();
-function Kw(e) {
- let t = yS(e), n = Gw.get(t);
- return n ??= fw("csp-nonce", t), n !== void 0 && Gw.set(t, n), n;
+var Yw = /* @__PURE__ */ new WeakMap();
+function Xw(e) {
+ let t = CS(e), n = Yw.get(t);
+ return n ??= gw("csp-nonce", t), n !== void 0 && Yw.set(t, n), n;
}
// node_modules/react-aria/dist/private/interactions/context.mjs
-var qw = F.createContext({ register: () => {} });
-qw.displayName = "PressResponderContext";
+var Zw = F.createContext({ register: () => {} });
+Zw.displayName = "PressResponderContext";
// node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function Jw() {
+function Qw() {
let e = (0, F.useRef)(/* @__PURE__ */ new Map()), t = (0, F.useCallback)((t, n, r, i) => {
let a = i?.once ? (...t) => {
e.current.delete(r), r(...t);
@@ -23758,15 +23771,15 @@ function Jw() {
};
}
// node_modules/react-aria/dist/private/interactions/usePress.mjs
-function Hoe(e) {
- let t = (0, F.useContext)(qw);
+function Uoe(e) {
+ let t = (0, F.useContext)(Zw);
if (t) {
let { register: n, ref: r, ...i } = t;
e = K(i, e), n();
}
- return qC(t, e.ref), e;
+ return ZC(t, e.ref), e;
}
-var Yw = class {
+var $w = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -23779,9 +23792,9 @@ var Yw = class {
get shouldStopPropagation() {
return this.#e;
}
-}, Xw = Symbol("linkClicked"), Zw = "react-aria-pressable-style", Qw = "data-react-aria-pressable";
-function $w(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 } = Hoe(e), [m, h] = (0, F.useState)(!1), g = (0, F.useRef)({
+}, eT = Symbol("linkClicked"), tT = "react-aria-pressable-style", nT = "data-react-aria-pressable";
+function rT(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 } = Uoe(e), [m, h] = (0, F.useState)(!1), g = (0, F.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
didFirePressStart: !1,
@@ -23791,12 +23804,12 @@ function $w(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: _, removeAllGlobalListeners: v } = Jw(), y = (0, F.useCallback)((e, t) => {
+ }), { addGlobalListener: _, removeAllGlobalListeners: v } = Qw(), y = (0, F.useCallback)((e, t) => {
let i = g.current;
if (s || i.didFirePressStart) return !1;
let a = !0;
if (i.isTriggeringEvent = !0, r) {
- let n = new Yw("pressstart", t, e);
+ let n = new $w("pressstart", t, e);
r(n), a = n.shouldStopPropagation;
}
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
@@ -23810,11 +23823,11 @@ function $w(e) {
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
let c = !0;
if (i) {
- let t = new Yw("pressend", r, e);
+ let t = new $w("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new Yw("press", r, e);
+ let n = new $w("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -23823,19 +23836,19 @@ function $w(e) {
i,
n,
t
- ]), x = Cw(b), S = Cw((0, F.useCallback)((e, t) => {
+ ]), x = Dw(b), S = Dw((0, F.useCallback)((e, t) => {
let n = g.current;
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new Yw("pressup", t, e);
+ let r = new $w("pressup", t, e);
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
}
return !0;
}, [s, a])), C = (0, F.useCallback)((e) => {
let t = g.current;
if (t.isPressed && t.target) {
- t.didFirePressStart && t.pointerType != null && b(nT(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || Ww(t.target);
+ t.didFirePressStart && t.pointerType != null && b(oT(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || Jw(t.target);
for (let e of t.disposables) e();
t.disposables = [];
}
@@ -23843,7 +23856,7 @@ function $w(e) {
d,
v,
b
- ]), w = Cw(C);
+ ]), w = Dw(C);
(0, F.useEffect)(() => {
s && g.current.isPressed && w({
currentTarget: g.current.target,
@@ -23860,39 +23873,39 @@ function $w(e) {
}, [s, o]), D = (0, F.useCallback)((e, t) => {
if (!s && o) {
let n = new MouseEvent("click", e);
- LS(n, t), o(IS(n));
+ VS(n, t), o(BS(n));
}
}, [s, o]), O = (0, F.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (tT(t.nativeEvent, t.currentTarget) && ES(t.currentTarget, G(t))) {
- rT(G(t), t.key) && t.preventDefault();
+ if (aT(t.nativeEvent, t.currentTarget) && AS(t.currentTarget, G(t))) {
+ sT(G(t), t.key) && t.preventDefault();
let r = !0;
!e.isPressed && !t.repeat && (e.target = t.currentTarget, e.isPressed = !0, e.pointerType = "keyboard", r = y(t, "keyboard"));
let i = t.currentTarget;
- _(yS(t.currentTarget), "keyup", jC((t) => {
- tT(t, i) && !t.repeat && ES(i, G(t)) && e.target && S(nT(e.target, t), "keyboard");
- }, n), !0), r && t.stopPropagation(), t.metaKey && US() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
+ _(CS(t.currentTarget), "keyup", FC((t) => {
+ aT(t, i) && !t.repeat && AS(i, G(t)) && e.target && S(oT(e.target, t), "keyboard");
+ }, n), !0), r && t.stopPropagation(), t.metaKey && qS() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
},
onClick(t) {
- if ((!t || ES(t.currentTarget, G(t))) && t && t.button === 0 && !e.isTriggeringEvent && !ZS.isOpening) {
+ if ((!t || AS(t.currentTarget, G(t))) && t && t.button === 0 && !e.isTriggeringEvent && !tC.isOpening) {
let n = !0;
- if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || YS(t.nativeEvent))) {
+ if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || $S(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(nT(t.currentTarget, t), r), a = x(nT(t.currentTarget, t), r, !0);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(oT(t.currentTarget, t), r), a = x(oT(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 && tT(t, e.target)) {
- rT(G(t), t.key) && t.preventDefault();
- let n = G(t), r = ES(e.target, n);
- x(nT(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && eT(e.target) && ES(e.target, n) && !t[Xw] && (t[Xw] = !0, ZS(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ if (e.isPressed && e.target && aT(t, e.target)) {
+ sT(G(t), t.key) && t.preventDefault();
+ let n = G(t), r = AS(e.target, n);
+ x(oT(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && iT(e.target) && AS(e.target, n) && !t[eT] && (t[eT] = !0, tC(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;
@@ -23901,39 +23914,39 @@ function $w(e) {
};
if (typeof PointerEvent < "u") {
t.onPointerDown = (t) => {
- if (t.button !== 0 || !ES(t.currentTarget, G(t))) return;
- if (Tae(t.nativeEvent)) {
+ if (t.button !== 0 || !AS(t.currentTarget, G(t))) return;
+ if (Eae(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 || Uw(e.target), i = y(t, e.pointerType);
+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || qw(e.target), i = y(t, e.pointerType);
let a = G(t);
- "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(yS(t.currentTarget), "pointerup", n, !1), _(yS(t.currentTarget), "pointercancel", r, !1);
+ "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(CS(t.currentTarget), "pointerup", n, !1), _(CS(t.currentTarget), "pointercancel", r, !1);
}
i && t.stopPropagation();
}, t.onMouseDown = (t) => {
- if (ES(t.currentTarget, G(t)) && t.button === 0) {
+ if (AS(t.currentTarget, G(t)) && t.button === 0) {
if (l) {
- let n = Sae(t.target);
+ let n = Cae(t.target);
n && e.disposables.push(n);
}
t.stopPropagation();
}
}, t.onPointerUp = (t) => {
- ES(t.currentTarget, G(t)) && e.pointerType !== "virtual" && t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
+ AS(t.currentTarget, G(t)) && e.pointerType !== "virtual" && t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
}, t.onPointerEnter = (t) => {
- t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(nT(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(oT(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(nT(e.target, t), e.pointerType, !1), T(t));
+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(oT(e.target, t), e.pointerType, !1), T(t));
};
let n = (t) => {
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
- if (ES(e.target, G(t)) && e.pointerType != null) {
+ if (AS(e.target, G(t)) && e.pointerType != null) {
let n = !1, r = setTimeout(() => {
- e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (vS(e.target), e.target.click()));
+ e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (SS(e.target), e.target.click()));
}, 80);
_(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));
} else w(t);
@@ -23943,7 +23956,7 @@ function $w(e) {
w(e);
};
t.onDragStart = (e) => {
- ES(e.currentTarget, G(e)) && w(e);
+ AS(e.currentTarget, G(e)) && w(e);
};
}
return t;
@@ -23960,14 +23973,14 @@ function $w(e) {
]);
return (0, F.useEffect)(() => {
if (!f) return;
- let e = yS(f.current);
- if (!e || !e.head || e.getElementById(Zw)) return;
+ let e = CS(f.current);
+ if (!e || !e.head || e.getElementById(tT)) return;
let t = e.createElement("style");
- t.id = Zw;
- let n = Kw(e);
+ t.id = tT;
+ let n = Xw(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${Qw}] {
+ [${nT}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
@@ -23975,23 +23988,23 @@ function $w(e) {
}, [f]), (0, F.useEffect)(() => {
let e = g.current;
return () => {
- d || Ww(e.target ?? void 0);
+ d || Jw(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: K(p, O, { [Qw]: !0 })
+ pressProps: K(p, O, { [nT]: !0 })
};
}
-function eT(e) {
+function iT(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function tT(e, t) {
+function aT(e, t) {
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof bS(i).HTMLInputElement && !iT(i, n) || i instanceof bS(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && eT(i)) && n !== "Enter");
+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof wS(i).HTMLInputElement && !cT(i, n) || i instanceof wS(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && iT(i)) && n !== "Enter");
}
-function nT(e, t) {
+function oT(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -24004,13 +24017,13 @@ function nT(e, t) {
key: t.key
};
}
-function Uoe(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !eT(e);
+function Woe(e) {
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !iT(e);
}
-function rT(e, t) {
- return US() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !iT(e, t) : Uoe(e);
+function sT(e, t) {
+ return qS() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !cT(e, t) : Woe(e);
}
-var Woe = /* @__PURE__ */ new Set([
+var Goe = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -24021,11 +24034,11 @@ var Woe = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function iT(e, t) {
- return e.type === "checkbox" || e.type === "radio" ? t === " " : Woe.has(e.type);
+function cT(e, t) {
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : Goe.has(e.type);
}
// node_modules/react-aria/dist/private/button/useButton.mjs
-function Goe(e, t) {
+function Koe(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,
@@ -24047,7 +24060,7 @@ function Goe(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = $w({
+ let { pressProps: _, isPressed: v } = rT({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -24057,9 +24070,9 @@ function Goe(e, t) {
isDisabled: r,
preventFocusOnPress: l,
ref: t
- }), { focusableProps: y } = YC(e, t);
+ }), { focusableProps: y } = $C(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = K(y, _, zw(e, { labelable: !0 }));
+ let b = K(y, _, Uw(e, { labelable: !0 }));
return {
isPressed: v,
buttonProps: K(g, b, {
@@ -24073,7 +24086,7 @@ function Goe(e, t) {
};
}
// node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs
-var Koe = class {
+var qoe = class {
constructor(e, t, n, r) {
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {
if (e.nodeType === Node.ELEMENT_NODE) {
@@ -24098,7 +24111,7 @@ var Koe = class {
return this._currentNode;
}
set currentNode(e) {
- if (!ES(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
+ if (!AS(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 });
@@ -24112,7 +24125,7 @@ var Koe = class {
}
firstChild() {
let e = this.currentNode, t = this.nextNode();
- return ES(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
+ return AS(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
}
lastChild() {
let e = this._walkerStack[0].lastChild();
@@ -24176,44 +24189,44 @@ var Koe = class {
return null;
}
};
-function aT(e, t, n, r) {
- return TS() ? new Koe(e, t, n, r) : e.createTreeWalker(t, n, r);
+function lT(e, t, n, r) {
+ return kS() ? new qoe(e, t, n, r) : e.createTreeWalker(t, n, r);
}
// node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var oT = /*#__PURE__*/ F.createContext(null), sT = "react-aria-focus-scope-restore", cT = null;
-function lT(e) {
- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)([]), { parentNode: c } = (0, F.useContext)(oT) || {}, l = (0, F.useMemo)(() => new ST({ scopeRef: s }), [s]);
- FS(() => {
- let e = c || CT.root;
- if (CT.getTreeNode(e.scopeRef) && cT && !hT(cT, e.scopeRef)) {
- let t = CT.getTreeNode(cT);
+var uT = /*#__PURE__*/ F.createContext(null), dT = "react-aria-focus-scope-restore", fT = null;
+function pT(e) {
+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)([]), { parentNode: c } = (0, F.useContext)(uT) || {}, l = (0, F.useMemo)(() => new ET({ scopeRef: s }), [s]);
+ zS(() => {
+ let e = c || DT.root;
+ if (DT.getTreeNode(e.scopeRef) && fT && !yT(fT, e.scopeRef)) {
+ let t = DT.getTreeNode(fT);
t && (e = t);
}
- e.addChild(l), CT.addNode(l);
- }, [l, c]), FS(() => {
- let e = CT.getTreeNode(s);
+ e.addChild(l), DT.addNode(l);
+ }, [l, c]), zS(() => {
+ let e = DT.getTreeNode(s);
e && (e.contain = !!n);
- }, [n]), FS(() => {
+ }, [n]), zS(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(sT, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(dT, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(sT, n);
+ for (let e of t) e.removeEventListener(dT, n);
};
- }, [t]), $oe(s, r, n), Xoe(s, n), ese(s, r, n), Qoe(s, i), (0, F.useEffect)(() => {
- let e = DS(yS(s.current ? s.current[0] : void 0)), t = null;
- if (pT(e, s.current)) {
- for (let n of CT.traverse()) n.scopeRef && pT(e, n.scopeRef.current) && (t = n);
- t === CT.getTreeNode(s) && (cT = t.scopeRef);
- }
- }, [s]), FS(() => () => {
- let e = CT.getTreeNode(s)?.parent?.scopeRef ?? null;
- s !== cT && !hT(s, cT) || e && !CT.getTreeNode(e) || (cT = e), CT.removeTreeNode(s);
+ }, [t]), ese(s, r, n), Zoe(s, n), tse(s, r, n), $oe(s, i), (0, F.useEffect)(() => {
+ let e = jS(CS(s.current ? s.current[0] : void 0)), t = null;
+ if (_T(e, s.current)) {
+ for (let n of DT.traverse()) n.scopeRef && _T(e, n.scopeRef.current) && (t = n);
+ t === DT.getTreeNode(s) && (fT = t.scopeRef);
+ }
+ }, [s]), zS(() => () => {
+ let e = DT.getTreeNode(s)?.parent?.scopeRef ?? null;
+ s !== fT && !yT(s, fT) || e && !DT.getTreeNode(e) || (fT = e), DT.removeTreeNode(s);
}, [s]);
- let u = (0, F.useMemo)(() => qoe(s), []), d = (0, F.useMemo)(() => ({
+ let u = (0, F.useMemo)(() => Joe(s), []), d = (0, F.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ F.createElement(oT.Provider, { value: d }, /*#__PURE__*/ F.createElement("span", {
+ return /*#__PURE__*/ F.createElement(uT.Provider, { value: d }, /*#__PURE__*/ F.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
@@ -24223,154 +24236,154 @@ function lT(e) {
ref: o
}));
}
-function qoe(e) {
+function Joe(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || DS(yS(n[0] ?? void 0)), c = n[0].previousElementSibling, l = xT(uT(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || jS(CS(n[0] ?? void 0)), c = n[0].previousElementSibling, l = TT(mT(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = pT(s, n) ? s : c;
+ l.currentNode = _T(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && gT(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && bT(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || DS(yS(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = xT(uT(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || jS(CS(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = TT(mT(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = pT(s, n) ? s : c;
+ l.currentNode = _T(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && gT(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && bT(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = xT(uT(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = TT(mT(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && gT(o, !0), o;
+ return o && bT(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = xT(uT(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = TT(mT(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && gT(o, !0), o;
+ return o && bT(o, !0), o;
}
};
}
-function uT(e) {
+function mT(e) {
return e[0].parentElement;
}
-function dT(e) {
- let t = CT.getTreeNode(cT);
+function hT(e) {
+ let t = DT.getTreeNode(fT);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
}
return !0;
}
-function Joe(e) {
- if (!e.form) return Array.from(yS(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
- let t = e.form.elements.namedItem(e.name), n = bS(e);
+function Yoe(e) {
+ if (!e.form) return Array.from(CS(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
+ let t = e.form.elements.namedItem(e.name), n = wS(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
-function Yoe(e) {
+function Xoe(e) {
if (e.checked) return !0;
- let t = Joe(e);
+ let t = Yoe(e);
return t.length > 0 && !t.some((e) => e.checked);
}
-function Xoe(e, t) {
+function Zoe(e, t) {
let n = (0, F.useRef)(void 0), r = (0, F.useRef)(void 0);
- FS(() => {
+ zS(() => {
let i = e.current;
if (!t) {
r.current &&= (cancelAnimationFrame(r.current), void 0);
return;
}
- let a = yS(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !dT(e) || t.isComposing) return;
- let n = DS(a), r = e.current;
- if (!r || !pT(n, r)) return;
- let i = xT(uT(r), { tabbable: !0 }, r);
+ let a = CS(i ? i[0] : void 0), o = (t) => {
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !hT(e) || t.isComposing) return;
+ let n = jS(a), r = e.current;
+ if (!r || !_T(n, r)) return;
+ let i = TT(mT(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 && (gT(o, !0), o instanceof bS(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 && (bT(o, !0), o instanceof wS(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!cT || hT(cT, e)) && pT(G(t), e.current) ? (cT = e, n.current = G(t)) : dT(e) && !mT(G(t), e) ? n.current ? gT(n.current) : cT && cT.current && vT(cT.current) : dT(e) && (n.current = G(t));
+ (!fT || yT(fT, e)) && _T(G(t), e.current) ? (fT = e, n.current = G(t)) : hT(e) && !vT(G(t), e) ? n.current ? bT(n.current) : fT && fT.current && ST(fT.current) : hT(e) && (n.current = G(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
- let r = yC(), i = (r === "virtual" || r === null) && JS() && qS(), o = DS(a);
- if (!i && o && dT(e) && !mT(o, e)) {
- cT = e;
+ let r = CC(), i = (r === "virtual" || r === null) && QS() && ZS(), o = jS(a);
+ if (!i && o && hT(e) && !vT(o, e)) {
+ fT = e;
let r = G(t);
- r && r.isConnected ? (n.current = r, gT(n.current)) : cT.current && vT(cT.current);
+ r && r.isConnected ? (n.current = r, bT(n.current)) : fT.current && ST(fT.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]), FS(() => () => {
+ }, [e, t]), zS(() => () => {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function fT(e) {
- return mT(e);
+function gT(e) {
+ return vT(e);
}
-function pT(e, t) {
- return !e || !t ? !1 : t.some((t) => ES(t, e));
+function _T(e, t) {
+ return !e || !t ? !1 : t.some((t) => AS(t, e));
}
-function mT(e, t = null) {
+function vT(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of CT.traverse(CT.getTreeNode(t))) if (n && pT(e, n.current)) return !0;
+ for (let { scopeRef: n } of DT.traverse(DT.getTreeNode(t))) if (n && _T(e, n.current)) return !0;
return !1;
}
-function Zoe(e) {
- return mT(e, cT);
+function Qoe(e) {
+ return vT(e, fT);
}
-function hT(e, t) {
- let n = CT.getTreeNode(t)?.parent;
+function yT(e, t) {
+ let n = DT.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function gT(e, t = !1) {
+function bT(e, t = !1) {
if (e != null && !t) try {
- AC(e);
+ PC(e);
} catch {}
else if (e != null) try {
e.focus();
} catch {}
}
-function _T(e, t = !0) {
- let n = e[0].previousElementSibling, r = uT(e), i = xT(r, { tabbable: t }, e);
+function xT(e, t = !0) {
+ let n = e[0].previousElementSibling, r = mT(e), i = TT(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = uT(e), i = xT(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = mT(e), i = TT(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function vT(e, t = !0) {
- gT(_T(e, t));
+function ST(e, t = !0) {
+ bT(xT(e, t));
}
-function Qoe(e, t) {
+function $oe(e, t) {
let n = F.useRef(t);
(0, F.useEffect)(() => {
- n.current && (cT = e, !pT(DS(yS(e.current ? e.current[0] : void 0)), cT.current) && e.current && vT(e.current)), n.current = !1;
+ n.current && (fT = e, !_T(jS(CS(e.current ? e.current[0] : void 0)), fT.current) && e.current && ST(e.current)), n.current = !1;
}, [e]);
}
-function $oe(e, t, n) {
- FS(() => {
+function ese(e, t, n) {
+ zS(() => {
if (t || n) return;
- let r = e.current, i = yS(r ? r[0] : void 0), a = (t) => {
+ let r = e.current, i = CS(r ? r[0] : void 0), a = (t) => {
let n = G(t);
- pT(n, e.current) ? cT = e : fT(n) || (cT = null);
+ _T(n, e.current) ? fT = e : gT(n) || (fT = 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));
@@ -24381,43 +24394,43 @@ function $oe(e, t, n) {
n
]);
}
-function yT(e) {
- let t = CT.getTreeNode(cT);
+function CT(e) {
+ let t = DT.getTreeNode(fT);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
}
return t?.scopeRef === e;
}
-function ese(e, t, n) {
- let r = (0, F.useRef)(typeof document < "u" ? DS(yS(e.current ? e.current[0] : void 0)) : null);
- FS(() => {
- let r = e.current, i = yS(r ? r[0] : void 0);
+function tse(e, t, n) {
+ let r = (0, F.useRef)(typeof document < "u" ? jS(CS(e.current ? e.current[0] : void 0)) : null);
+ zS(() => {
+ let r = e.current, i = CS(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!cT || hT(cT, e)) && pT(DS(i), e.current) && (cT = e);
+ (!fT || yT(fT, e)) && _T(jS(i), e.current) && (fT = 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]), FS(() => {
- let r = yS(e.current ? e.current[0] : void 0);
+ }, [e, n]), zS(() => {
+ let r = CS(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !dT(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !hT(e) || t.isComposing) return;
let n = r.activeElement;
- if (!mT(n, e) || !yT(e)) return;
- let i = CT.getTreeNode(e);
+ if (!vT(n, e) || !CT(e)) return;
+ let i = DT.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = xT(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = TT(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 || !mT(s, e)) && a) {
+ if (a && a.isConnected && a !== r.body || (a = void 0, i.nodeToRestore = void 0), (!s || !vT(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (mT(s, e));
- t.preventDefault(), t.stopPropagation(), s ? gT(s, !0) : fT(a) ? gT(a, !0) : n.blur();
+ while (vT(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? bT(s, !0) : gT(a) ? bT(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -24427,31 +24440,31 @@ function ese(e, t, n) {
e,
t,
n
- ]), FS(() => {
- let n = yS(e.current ? e.current[0] : void 0);
+ ]), zS(() => {
+ let n = CS(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = CT.getTreeNode(e);
+ let i = DT.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = CT.getTreeNode(e);
+ let r = DT.getTreeNode(e);
if (!r) return;
- let i = r.nodeToRestore, a = DS(n);
- if (t && i && (a && mT(a, e) || a === n.body && yT(e))) {
- let t = CT.clone();
+ let i = r.nodeToRestore, a = jS(n);
+ if (t && i && (a && vT(a, e) || a === n.body && CT(e))) {
+ let t = DT.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- bT(n.nodeToRestore);
+ wT(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && CT.getTreeNode(n.scopeRef)) {
- let e = _T(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && DT.getTreeNode(n.scopeRef)) {
+ let e = xT(n.scopeRef.current, !0);
if (e) {
- bT(e);
+ wT(e);
return;
}
}
@@ -24463,21 +24476,21 @@ function ese(e, t, n) {
};
}, [e, t]);
}
-function bT(e) {
- e.dispatchEvent(new CustomEvent(sT, {
+function wT(e) {
+ e.dispatchEvent(new CustomEvent(dT, {
bubbles: !0,
cancelable: !0
- })) && gT(e);
+ })) && bT(e);
}
-function xT(e, t, n) {
- let r = t?.tabbable ? NS : MS, i = yS(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = aT(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return ES(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Yoe(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || pT(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function TT(e, t, n) {
+ let r = t?.tabbable ? LS : IS, i = CS(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = lT(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return AS(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Xoe(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || _T(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
-var tse = class e {
+var nse = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new ST({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new ET({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -24488,7 +24501,7 @@ var tse = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new ST({ scopeRef: e });
+ let i = new ET({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -24499,7 +24512,7 @@ var tse = 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 && pT(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 && _T(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);
}
@@ -24511,7 +24524,7 @@ var tse = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, ST = class {
+}, ET = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -24521,13 +24534,13 @@ var tse = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, CT = new tse(), wT = 7e3, TT = null;
-function ET(e, t = "assertive", n = wT) {
- TT ? TT.announce(e, t, n) : (TT = new nse(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? TT.announce(e, t, n) : setTimeout(() => {
- TT?.isAttached() && TT?.announce(e, t, n);
+}, DT = new nse(), OT = 7e3, kT = null;
+function AT(e, t = "assertive", n = OT) {
+ kT ? kT.announce(e, t, n) : (kT = new rse(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? kT.announce(e, t, n) : setTimeout(() => {
+ kT?.isAttached() && kT?.announce(e, t, n);
}, 100));
}
-var nse = class {
+var rse = 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,
@@ -24552,7 +24565,7 @@ var nse = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = wT) {
+ announce(e, t = "assertive", n = OT) {
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(() => {
@@ -24564,8 +24577,8 @@ var nse = class {
}
};
// node_modules/react-aria/dist/private/utils/useUpdateEffect.mjs
-function DT(e, t) {
- let n = (0, F.useRef)(!0), r = (0, F.useRef)(null), i = Cw(e);
+function jT(e, t) {
+ let n = (0, F.useRef)(!0), r = (0, F.useRef)(null), i = Dw(e);
(0, F.useEffect)(() => (n.current = !0, () => {
n.current = !1;
}), []), (0, F.useEffect)(() => {
@@ -24574,30 +24587,30 @@ function DT(e, t) {
}, t);
}
// node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function OT(e, t) {
+function MT(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;
}
// node_modules/react-aria/dist/private/utils/getScrollParent.mjs
-function kT(e, t) {
+function NT(e, t) {
let n = e;
- for (OT(n, t) && (n = n.parentElement); n && !OT(n, t);) n = n.parentElement;
+ for (MT(n, t) && (n = n.parentElement); n && !MT(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
// node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function AT(e, t) {
+function PT(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (OT(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && (MT(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
// node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function jT(e, t, n = {}) {
- e !== t && rse(e, t, t.getBoundingClientRect(), n);
+function FT(e, t, n = {}) {
+ e !== t && ise(e, t, t.getBoundingClientRect(), n);
}
-function rse(e, t, n, r = {}) {
+function ise(e, t, n, r = {}) {
let { block: i = "nearest", inline: a = "nearest" } = r, o = e.scrollTop, s = e.scrollLeft, c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = n.top - _, A = n.bottom + v, j = n.left - y, M = n.right + b, ee = e === d ? 0 : D + O, N = e === d ? 0 : T + E, te = e === d ? 0 : e.offsetWidth - e.clientWidth - ee, P = e === d ? 0 : e.offsetHeight - e.clientHeight - N, ne = p + (f ? 0 : T) + x, re = m - (f ? 0 : E) - S - P, F = h + (f ? 0 : D) + C, I = g - (f ? 0 : O) - w;
- GS() && KS() || u.direction === "ltr" ? I -= te : u.direction === "rtl" && (F += te);
+ YS() && XS() || u.direction === "ltr" ? I -= te : u.direction === "rtl" && (F += te);
let ie = k < ne || A > re, ae = j < F || M > I;
if (ie && i === "start") o += k - ne;
else if (ie && i === "center") o += (k + A) / 2 - (ne + re) / 2;
@@ -24618,7 +24631,7 @@ function rse(e, t, n, r = {}) {
top: o
});
}
-function MT(e, t = {}) {
+function IT(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -24631,45 +24644,45 @@ function MT(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = AT(e, !0);
- for (let t of i) jT(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = PT(e, !0);
+ for (let t of i) FT(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? AT(n, !0) : [];
- for (let e of i) jT(e, n, {
+ i = n ? PT(n, !0) : [];
+ for (let e of i) FT(e, n, {
block: "center",
inline: "center"
});
- for (let t of AT(e, !0)) jT(t, e);
+ for (let t of PT(e, !0)) FT(t, e);
}
}
}
}
// node_modules/react-aria/dist/private/utils/useDescription.mjs
-var ise = 0, NT = /* @__PURE__ */ new Map();
-function PT(e) {
+var ase = 0, LT = /* @__PURE__ */ new Map();
+function RT(e) {
let [t, n] = (0, F.useState)();
- return FS(() => {
+ return zS(() => {
if (!e) return;
- let t = NT.get(e);
+ let t = LT.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${ise++}`;
+ let r = `react-aria-description-${ase++}`;
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
- }, NT.set(e, t);
+ }, LT.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), NT.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), LT.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
// node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function FT(e, t, n) {
- let r = Cw((e) => {
+function zT(e, t, n) {
+ let r = Dw((e) => {
n && !e.defaultPrevented && n(t);
});
(0, F.useEffect)(() => {
@@ -24680,21 +24693,21 @@ function FT(e, t, n) {
}, [e]);
}
// node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function IT(e, t, n) {
+function BT(e, t, n) {
let { validationBehavior: r, focus: i } = e;
- FS(() => {
+ zS(() => {
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(ose(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(sse(n.current));
}
});
- let a = (0, F.useRef)(!1), o = Cw(() => {
+ let a = (0, F.useRef)(!1), o = Dw(() => {
a.current || t.resetValidation();
- }), s = Cw((e) => {
+ }), s = Dw((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && sse(r) === n.current && (i ? i() : n.current?.focus(), bC("keyboard")), e.preventDefault();
- }), c = Cw(() => {
+ !e.defaultPrevented && n && r && cse(r) === n.current && (i ? i() : n.current?.focus(), wC("keyboard")), e.preventDefault();
+ }), c = Dw(() => {
t.commitValidation();
});
(0, F.useEffect)(() => {
@@ -24708,7 +24721,7 @@ function IT(e, t, n) {
};
}, [n, r]);
}
-function ase(e) {
+function ose(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -24724,14 +24737,14 @@ function ase(e) {
valid: t.valid
};
}
-function ose(e) {
+function sse(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: ase(e),
+ validationDetails: ose(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function sse(e) {
+function cse(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -24739,23 +24752,23 @@ function sse(e) {
return null;
}
// node_modules/react-aria/dist/private/utils/useSlot.mjs
-function cse(e = !0) {
+function lse(e = !0) {
let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(!1), i = (0, F.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return FS(() => {
+ return zS(() => {
r.current || n(!1);
}, []), [i, t];
}
-function LT(e = !0) {
- let t = FC(), [n, r] = cse(e);
+function VT(e = !0) {
+ let t = zC(), [n, r] = lse(e);
return {
id: r ? t : void 0,
ref: n
};
}
// node_modules/react-stately/dist/private/form/useFormValidationState.mjs
-var RT = {
+var HT = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -24767,18 +24780,18 @@ var RT = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, zT = {
- ...RT,
+}, UT = {
+ ...HT,
customError: !0,
valid: !1
-}, BT = {
+}, WT = {
isInvalid: !1,
- validationDetails: RT,
+ validationDetails: HT,
validationErrors: []
-}, lse = (0, F.createContext)({}), VT = "__reactAriaFormValidationState";
-function HT(e) {
+}, use = (0, F.createContext)({}), GT = "__reactAriaFormValidationState";
+function KT(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[VT];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[GT];
return {
realtimeValidation: t,
displayValidation: n,
@@ -24787,70 +24800,70 @@ function HT(e) {
commitValidation: a
};
}
- return use(e);
+ return dse(e);
}
-function use(e) {
+function dse(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: zT
- }, l = (0, F.useMemo)(() => !o || i == null ? null : WT(dse(o, i)), [o, i]);
+ validationDetails: UT
+ }, l = (0, F.useMemo)(() => !o || i == null ? null : JT(fse(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, F.useContext)(lse), d = (0, F.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => UT(u[e])) : UT(u[r]) : [], [u, r]), [f, p] = (0, F.useState)(u), [m, h] = (0, F.useState)(!1);
+ let u = (0, F.useContext)(use), d = (0, F.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => qT(u[e])) : qT(u[r]) : [], [u, r]), [f, p] = (0, F.useState)(u), [m, h] = (0, F.useState)(!1);
u !== f && (p(u), h(!1));
- let g = (0, F.useMemo)(() => WT(m ? [] : d), [m, d]), _ = (0, F.useRef)(BT), [v, y] = (0, F.useState)(BT), b = (0, F.useRef)(BT), x = () => {
+ let g = (0, F.useMemo)(() => JT(m ? [] : d), [m, d]), _ = (0, F.useRef)(WT), [v, y] = (0, F.useState)(WT), b = (0, F.useRef)(WT), x = () => {
if (!S) return;
C(!1);
let e = l || a || _.current;
- GT(e, b.current) || (b.current = e, y(e));
+ YT(e, b.current) || (b.current = e, y(e));
}, [S, C] = (0, F.useState)(!1);
return (0, F.useEffect)(x), {
- realtimeValidation: c || g || l || a || BT,
+ realtimeValidation: c || g || l || a || WT,
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !GT(v, e) ? y(e) : _.current = e;
+ s === "aria" && !YT(v, e) ? y(e) : _.current = e;
},
resetValidation() {
- let e = BT;
- GT(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
+ let e = WT;
+ YT(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
},
commitValidation() {
s === "native" && C(!0), h(!0);
}
};
}
-function UT(e) {
+function qT(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function dse(e, t) {
+function fse(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return UT(n);
+ if (n && typeof n != "boolean") return qT(n);
}
return [];
}
-function WT(e) {
+function JT(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: zT
+ validationDetails: UT
} : null;
}
-function GT(e, t) {
+function YT(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);
}
// node_modules/react-aria/dist/private/toggle/useToggle.mjs
-function KT(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 = HT({
+function XT(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 = KT({
...e,
value: t.isSelected
}), { isInvalid: x, validationErrors: S, validationDetails: C } = b.displayValidation;
- IT(e, b, n);
+ BT(e, b, n);
let w = (e) => {
e.stopPropagation(), t.setSelected(G(e).checked);
- }, { pressProps: T, isPressed: E } = $w({
+ }, { pressProps: T, isPressed: E } = rT({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
@@ -24858,7 +24871,7 @@ function KT(e, t, n) {
onPressUp: v,
onClick: y,
isDisabled: r
- }), [D, O] = (0, F.useState)(!1), { pressProps: k } = $w({
+ }), [D, O] = (0, F.useState)(!1), { pressProps: k } = rT({
onPressStart(e) {
e.pointerType === "keyboard" || e.pointerType === "virtual" ? e.continuePropagation() : (m?.(e), g?.(!0), O(!0));
},
@@ -24875,13 +24888,13 @@ function KT(e, t, n) {
return;
}
_?.(r), t.toggle(), n.current?.focus();
- let { [VT]: i } = e, { commitValidation: a } = i || b;
+ let { [GT]: i } = e, { commitValidation: a } = i || b;
a();
},
isDisabled: r || i
- }), { focusableProps: A } = YC(e, n), j = K(T, A), M = zw(e, { labelable: !0 });
- FT(n, t.defaultSelected, t.setSelected);
- let ee = LT(), N = LT();
+ }), { focusableProps: A } = $C(e, n), j = K(T, A), M = Uw(e, { labelable: !0 });
+ zT(n, t.defaultSelected, t.setSelected);
+ let ee = VT(), N = VT();
return {
labelProps: K(k, { onClick: (e) => e.preventDefault() }),
inputProps: K(M, {
@@ -24917,8 +24930,8 @@ function KT(e, t, n) {
};
}
// node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function qT(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 } = KT(e, t, n), { isIndeterminate: m } = e;
+function ZT(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 } = XT(e, t, n), { isIndeterminate: m } = e;
return (0, F.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
@@ -24936,17 +24949,17 @@ function qT(e, t, n) {
};
}
// node_modules/react-aria/dist/private/checkbox/utils.mjs
-var fse = /* @__PURE__ */ new WeakMap();
+var pse = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/label/useLabel.mjs
-function JT(e) {
+function QT(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
- t = FC(t);
- let o = FC(), s = {};
+ t = zC(t);
+ let o = zC(), s = {};
n && (r = r ? `${o} ${r}` : o, s = {
id: o,
htmlFor: a === "label" ? t : void 0
});
- let c = Tw({
+ let c = kw({
id: t,
"aria-label": i,
"aria-labelledby": r
@@ -24957,13 +24970,13 @@ function JT(e) {
};
}
// node_modules/react-aria/dist/private/label/useField.mjs
-function YT(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = JT(e), s = IC([
+function $T(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = QT(e), s = BC([
!!t,
!!n,
r,
i
- ]), c = IC([
+ ]), c = BC([
!!t,
!!n,
r,
@@ -24981,26 +24994,26 @@ function YT(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function XT(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, F.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = Jw(), c = (0, F.useCallback)((e) => {
- ES(e.currentTarget, G(e)) && a.current.isFocusWithin && !ES(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
+function eE(e) {
+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, F.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = Qw(), c = (0, F.useCallback)((e) => {
+ AS(e.currentTarget, G(e)) && a.current.isFocusWithin && !AS(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
}, [
n,
i,
a,
s
- ]), l = RS(c), u = (0, F.useCallback)((e) => {
- if (!ES(e.currentTarget, G(e))) return;
- let t = G(e), n = yS(t), s = DS(n);
+ ]), l = HS(c), u = (0, F.useCallback)((e) => {
+ if (!AS(e.currentTarget, G(e))) return;
+ let t = G(e), n = CS(t), s = jS(n);
if (!a.current.isFocusWithin && s === t) {
r && r(e), i && i(!0), a.current.isFocusWithin = !0, l(e);
let t = e.currentTarget;
o(n, "focus", (e) => {
let r = G(e);
- if (a.current.isFocusWithin && !ES(t, r)) {
+ if (a.current.isFocusWithin && !AS(t, r)) {
let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });
- LS(e, t);
- let i = IS(e);
+ VS(e, t);
+ let i = BS(e);
c(i);
}
}, { capture: !0 });
@@ -25021,14 +25034,14 @@ function XT(e) {
} };
}
// node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var pse = F.useInsertionEffect ?? F.useLayoutEffect;
-function ZT(e, t, n) {
+var mse = F.useInsertionEffect ?? F.useLayoutEffect;
+function tE(e, t, n) {
let [r, i] = (0, F.useState)(e || t), a = (0, F.useRef)(r), o = (0, F.useRef)(e !== void 0), s = e !== void 0;
(0, F.useEffect)(() => {
o.current, o.current = s;
}, [s]);
let c = s ? e : r;
- pse(() => {
+ mse(() => {
a.current = c;
});
let [, l] = (0, F.useReducer)(() => ({}), {});
@@ -25038,8 +25051,8 @@ function ZT(e, t, n) {
}, [n])];
}
// node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function QT(e = {}) {
- let { isReadOnly: t } = e, [n, r] = ZT(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, F.useState)(n);
+function nE(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = tE(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, F.useState)(n);
function a(e) {
t || r(e);
}
@@ -25054,26 +25067,26 @@ function QT(e = {}) {
};
}
// node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function mse(e, t, n) {
- let r = QT({
+function hse(e, t, n) {
+ let r = nE({
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 } = fse.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = pse.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = HT({
+ let { realtimeValidation: l } = KT({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, F.useRef)(BT), d = () => {
+ }), u = (0, F.useRef)(WT), d = () => {
t.setInvalid(e.value, l.isInvalid ? l : u.current);
};
(0, F.useEffect)(d);
- let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = qT({
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = ZT({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -25081,7 +25094,7 @@ function mse(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [VT]: {
+ [GT]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -25104,10 +25117,10 @@ function mse(e, t, n) {
};
}
// node_modules/react-stately/dist/private/utils/number.mjs
-function $T(e, t = -Infinity, n = Infinity) {
+function rE(e, t = -Infinity, n = Infinity) {
return Math.min(Math.max(e, t), n);
}
-function eE(e, t) {
+function iE(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 {
@@ -25120,23 +25133,23 @@ function eE(e, t) {
}
return n;
}
-function tE(e, t, n, r) {
+function aE(e, t, n, r) {
t = Number(t), n = Number(n);
- let i = (e - (isNaN(t) ? 0 : t)) % r, a = eE(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(eE(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(eE((n - t) / r, r)) * r), a = eE(a, r), a;
+ let i = (e - (isNaN(t) ? 0 : t)) % r, a = iE(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(iE(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(iE((n - t) / r, r)) * r), a = iE(a, r), a;
}
// node_modules/@internationalized/number/dist/private/NumberFormatter.mjs
-var nE = /* @__PURE__ */ new Map(), rE = !1;
+var oE = /* @__PURE__ */ new Map(), sE = !1;
try {
- rE = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
+ sE = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
} catch {}
-var hse = class {
+var gse = class {
constructor(e, t = {}) {
- this.numberFormatter = gse(e, t), this.options = t;
+ this.numberFormatter = _se(e, t), this.options = t;
}
format(e) {
let t = "";
- return t = !rE && this.options.signDisplay != null ? _se(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
+ return t = !sE && this.options.signDisplay != null ? vse(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
}
formatToParts(e) {
return this.numberFormatter.formatToParts(e);
@@ -25168,21 +25181,21 @@ var hse = class {
}
resolvedOptions() {
let e = this.numberFormatter.resolvedOptions();
- return !rE && this.options.signDisplay != null && (e = {
+ return !sE && this.options.signDisplay != null && (e = {
...e,
signDisplay: this.options.signDisplay
}), e;
}
};
-function gse(e, t = {}) {
+function _se(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 (nE.has(r)) return nE.get(r);
+ if (oE.has(r)) return oE.get(r);
let i = new Intl.NumberFormat(e, t);
- return nE.set(r, i), i;
+ return oE.set(r, i), i;
}
-function _se(e, t, n) {
+function vse(e, t, n) {
if (t === "auto") return e.format(n);
if (t === "never") return e.format(Math.abs(n));
{
@@ -25195,12 +25208,12 @@ function _se(e, t, n) {
}
}
// node_modules/react-aria/dist/private/interactions/useMove.mjs
-function iE(e) {
+function cE(e) {
let { onMoveStart: t, onMove: n, onMoveEnd: r } = e, i = (0, F.useRef)({
didMove: !1,
lastPosition: null,
id: null
- }), { addGlobalListener: a, removeGlobalListener: o } = Jw(), s = Cw((0, F.useCallback)((e, r, a, o) => {
+ }), { addGlobalListener: a, removeGlobalListener: o } = Qw(), s = Dw((0, F.useCallback)((e, r, a, o) => {
(a !== 0 || o !== 0) && (i.current.didMove || (i.current.didMove = !0, t?.({
type: "movestart",
pointerType: r,
@@ -25222,8 +25235,8 @@ function iE(e) {
t,
n,
i
- ])), c = Cw((0, F.useCallback)((e, t) => {
- Ww(), i.current.didMove && r?.({
+ ])), c = Dw((0, F.useCallback)((e, t) => {
+ Jw(), i.current.didMove && r?.({
type: "moveend",
pointerType: t,
shiftKey: e.shiftKey,
@@ -25234,7 +25247,7 @@ function iE(e) {
}, [r, i]));
return { moveProps: (0, F.useMemo)(() => {
let e = {}, t = () => {
- Uw(), i.current.didMove = !1;
+ qw(), i.current.didMove = !1;
};
{
let n = (e) => {
@@ -25249,7 +25262,7 @@ function iE(e) {
if (e.pointerId === i.current.id) {
let t = e.pointerType || "mouse";
c(e, t), i.current.id = null;
- let a = bS(G(e));
+ let a = wS(G(e));
o(a, "pointermove", n, !1), o(a, "pointerup", r, !1), o(a, "pointercancel", r, !1);
}
};
@@ -25259,7 +25272,7 @@ function iE(e) {
pageX: e.pageX,
pageY: e.pageY
}, i.current.id = e.pointerId;
- let o = bS(G(e));
+ let o = wS(G(e));
a(o, "pointermove", n, !1), a(o, "pointerup", r, !1), a(o, "pointercancel", r, !1);
}
};
@@ -25292,7 +25305,7 @@ function iE(e) {
]) };
}
// node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs
-var aE = {
+var lE = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -25304,37 +25317,37 @@ var aE = {
width: "1px",
whiteSpace: "nowrap"
};
-function oE(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, F.useState)(!1), { focusWithinProps: a } = XT({
+function uE(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, F.useState)(!1), { focusWithinProps: a } = eE({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
}), o = (0, F.useMemo)(() => r ? t : t ? {
- ...aE,
+ ...lE,
...t
- } : aE, [r]);
+ } : lE, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function sE(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = oE(e);
+function dE(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = uE(e);
return /*#__PURE__*/ F.createElement(n, K(a, o), t);
}
// node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function vse(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = ZT(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = YC(e, t), d = HT({
+function yse(e, t) {
+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = tE(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = $C(e, t), d = KT({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = YT({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = $T({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), y = zw(e, { labelable: !0 }), b = {
+ }), y = Uw(e, { labelable: !0 }), b = {
type: o,
pattern: e.pattern
}, [x] = (0, F.useState)(c);
- return FT(t, e.defaultValue ?? x, l), IT(e, d, t), {
+ return zT(t, e.defaultValue ?? x, l), BT(e, d, t), {
labelProps: h,
inputProps: K(y, n === "input" ? b : void 0, {
disabled: r,
@@ -25380,26 +25393,26 @@ function vse(e, t) {
};
}
// node_modules/react-aria/dist/private/i18n/useNumberFormatter.mjs
-function yse(e = {}) {
- let { locale: t } = jw();
- return (0, F.useMemo)(() => new hse(t, e), [t, e]);
+function bse(e = {}) {
+ let { locale: t } = Fw();
+ return (0, F.useMemo)(() => new gse(t, e), [t, e]);
}
// node_modules/react-aria/dist/private/slider/utils.mjs
-var cE = /* @__PURE__ */ new WeakMap();
-function lE(e, t) {
- let n = cE.get(e);
+var fE = /* @__PURE__ */ new WeakMap();
+function pE(e, t) {
+ let n = fE.get(e);
if (!n) throw Error("Unknown slider state");
return `${n.id}-${t}`;
}
// node_modules/react-aria/dist/private/slider/useSlider.mjs
-function bse(e, t, n) {
- let { labelProps: r, fieldProps: i } = JT(e), a = e.orientation === "vertical";
- cE.set(t, {
+function xse(e, t, n) {
+ let { labelProps: r, fieldProps: i } = QT(e), a = e.orientation === "vertical";
+ fE.set(t, {
id: r.id ?? i.id,
"aria-describedby": e["aria-describedby"],
"aria-details": e["aria-details"]
});
- let { direction: o } = jw(), { addGlobalListener: s, removeGlobalListener: c } = Jw(), l = (0, F.useRef)(null), u = o === "rtl", d = (0, F.useRef)(null), { moveProps: f } = iE({
+ let { direction: o } = Fw(), { addGlobalListener: s, removeGlobalListener: c } = Qw(), l = (0, F.useRef)(null), u = o === "rtl", d = (0, F.useRef)(null), { moveProps: f } = cE({
onMoveStart() {
d.current = null;
},
@@ -25409,7 +25422,7 @@ function bse(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 = $T(d.current / s, 0, 1);
+ let e = rE(d.current / s, 0, 1);
t.setThumbPercent(l.current, e);
}
},
@@ -25433,7 +25446,7 @@ function bse(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(lE(t, 0))?.focus(), bC("keyboard");
+ document.getElementById(pE(t, 0))?.focus(), wC("keyboard");
}), {
labelProps: r,
groupProps: {
@@ -25456,26 +25469,26 @@ function bse(e, t, n) {
}
}, f),
outputProps: {
- htmlFor: t.values.map((e, n) => lE(t, n)).join(" "),
+ htmlFor: t.values.map((e, n) => pE(t, n)).join(" "),
"aria-live": "off"
}
};
}
// node_modules/react-aria/dist/private/slider/useSliderThumb.mjs
-function xse(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 } = jw(), { addGlobalListener: m, removeGlobalListener: h } = Jw(), g = cE.get(t), { labelProps: _, fieldProps: v } = JT({
+function Sse(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 } = Fw(), { addGlobalListener: m, removeGlobalListener: h } = Qw(), g = fE.get(t), { labelProps: _, fieldProps: v } = QT({
...e,
- id: lE(t, n),
+ id: pE(t, n),
"aria-labelledby": `${g.id} ${e["aria-labelledby"] ?? ""}`.trim()
}), y = t.values[n], b = (0, F.useCallback)(() => {
- s.current && vS(s.current);
+ s.current && SS(s.current);
}, [s]), x = t.focusedThumb === n;
(0, F.useEffect)(() => {
x && b();
}, [x, b]);
let S = p === "rtl", C = (0, F.useRef)(null), w = (e) => {
t.setThumbDragging(n, !0), e(), t.setThumbDragging(n, !1);
- }, { keyboardProps: T } = GC({
+ }, { keyboardProps: T } = YC({
shortcuts: {
PageUp: () => w(() => {
t.incrementThumb(n, t.pageSize);
@@ -25491,7 +25504,7 @@ function xse(e, t) {
})
},
allowRepeats: !0
- }), { moveProps: E } = iE({
+ }), { moveProps: E } = cE({
onMoveStart() {
C.current = null, t.setThumbDragging(n, !0);
},
@@ -25502,7 +25515,7 @@ function xse(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, $T(C.current / g, 0, 1));
+ (f || S) && (t = -t), C.current += t, c(n, rE(C.current / g, 0, 1));
}
},
onMoveEnd() {
@@ -25510,7 +25523,7 @@ function xse(e, t) {
}
});
t.setThumbEditable(n, !d);
- let { focusableProps: D } = YC(K(e, {
+ let { focusableProps: D } = $C(K(e, {
onFocus: () => t.setFocusedThumb(n),
onBlur: () => t.setFocusedThumb(void 0)
}), s), O = (0, F.useRef)(void 0), k = (e) => {
@@ -25530,7 +25543,7 @@ function xse(e, t) {
k(e.changedTouches[0].identifier);
}
});
- return FT(s, t.defaultValues[n], (e) => {
+ return zT(s, t.defaultValues[n], (e) => {
t.setThumbValue(n, e);
}), {
inputProps: K(D, v, {
@@ -25570,42 +25583,42 @@ function xse(e, t) {
};
}
// node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs
-var Sse = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function uE(e) {
+var Cse = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
+function mE(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var dE = /* @__PURE__ */ new WeakMap(), fE = [];
-function pE(e, t) {
- let n = bS(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Sse, 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 hE = /* @__PURE__ */ new WeakMap(), gE = [];
+function _E(e, t) {
+ let n = wS(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Cse, 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 (TS()) {
+ if (kS()) {
let t = i.getRootNode();
for (let n of e) {
let e = n.getRootNode();
- for (; SS(e) && e !== t;) u.add(e), e = e.host.getRootNode();
+ for (; ES(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 (ES(e, t)) return NodeFilter.FILTER_SKIP;
+ for (let t of o) if (AS(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = aT(yS(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = lT(CS(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 = dE.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), dE.set(e, t + 1));
+ let t = hE.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), hE.set(e, t + 1));
};
- fE.length && fE[fE.length - 1].disconnect(), d(i);
+ gE.length && gE[gE.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) => ES(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && uE(e) ? o.add(e) : e instanceof Element && d(e);
- if (TS()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => AS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && mE(e) ? o.add(e) : e instanceof Element && d(e);
+ if (kS()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -25618,11 +25631,11 @@ function pE(e, t) {
subtree: !0
});
let m = /* @__PURE__ */ new Set();
- if (TS()) for (let e of u) {
+ if (kS()) 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) => ES(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && uE(e) ? o.add(e) : e instanceof Element && d(e);
- if (TS()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => AS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && mE(e) ? o.add(e) : e instanceof Element && d(e);
+ if (kS()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -25648,56 +25661,56 @@ function pE(e, t) {
p.disconnect();
}
};
- return fE.push(h), () => {
- if (p.disconnect(), TS()) for (let e of m) e.disconnect();
+ return gE.push(h), () => {
+ if (p.disconnect(), kS()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = dE.get(e);
- t != null && (t === 1 ? (l(e, !1), dE.delete(e)) : dE.set(e, t - 1));
+ let t = hE.get(e);
+ t != null && (t === 1 ? (l(e, !1), hE.delete(e)) : hE.set(e, t - 1));
}
- h === fE[fE.length - 1] ? (fE.pop(), fE.length && fE[fE.length - 1].observe()) : fE.splice(fE.indexOf(h), 1);
+ h === gE[gE.length - 1] ? (gE.pop(), gE.length && gE[gE.length - 1].observe()) : gE.splice(gE.indexOf(h), 1);
};
}
-function mE(e) {
- let t = fE[fE.length - 1];
+function vE(e) {
+ let t = gE[gE.length - 1];
if (t && !t.visibleNodes.has(e)) return t.visibleNodes.add(e), () => {
t.visibleNodes.delete(e);
};
}
// node_modules/react-aria/dist/private/listbox/utils.mjs
-var hE = /* @__PURE__ */ new WeakMap();
-function Cse(e) {
+var yE = /* @__PURE__ */ new WeakMap();
+function wse(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function wse(e, t) {
- let n = hE.get(e);
+function Tse(e, t) {
+ let n = yE.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${Cse(t)}`;
+ return `${n.id}-option-${wse(t)}`;
}
// node_modules/react-aria/dist/private/selection/utils.mjs
-function gE(e) {
- return wae() ? e.altKey : e.ctrlKey;
+function bE(e) {
+ return Tae() ? e.altKey : e.ctrlKey;
}
-function _E(e, t) {
+function xE(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 vE = /* @__PURE__ */ new WeakMap();
-function Tse(e) {
- let t = FC();
- return vE.set(e, t), t;
-}
+var SE = /* @__PURE__ */ new WeakMap();
function Ese(e) {
- return vE.get(e);
+ let t = zC();
+ return SE.set(e, t), t;
+}
+function Dse(e) {
+ return SE.get(e);
}
// node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var yE = class {
+var CE = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : _E(this.ref, e);
+ let n = e == null ? null : xE(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -25723,12 +25736,12 @@ var yE = class {
height: e?.clientHeight ?? 0
};
}
-}, bE = class {
+}, wE = 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 yE(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 yE(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 CE(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 CE(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -25768,14 +25781,14 @@ var yE = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = _E(this.ref, e);
+ let t = this.getNextKey(e), n = xE(this.ref, e);
if (t != null) {
- let e = _E(this.ref, t);
+ let e = xE(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = _E(this.ref, r);
+ let e = xE(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -25809,7 +25822,7 @@ var yE = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !OT(t)) return this.getFirstKey();
+ if (t && !MT(t)) return this.getFirstKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);
@@ -25824,7 +25837,7 @@ var yE = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !OT(t)) return this.getLastKey();
+ if (t && !MT(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);
@@ -25847,149 +25860,149 @@ var yE = class {
}
return null;
}
-}, xE = {};
-xE = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+}, TE = {};
+TE = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
// node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var SE = {};
-SE = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var EE = {};
+EE = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
// node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var CE = {};
-CE = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var DE = {};
+DE = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
// node_modules/react-aria/dist/private/intl/menu/da-DK.mjs
-var wE = {};
-wE = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var OE = {};
+OE = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
// node_modules/react-aria/dist/private/intl/menu/de-DE.mjs
-var TE = {};
-TE = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var kE = {};
+kE = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
// node_modules/react-aria/dist/private/intl/menu/el-GR.mjs
-var EE = {};
-EE = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var AE = {};
+AE = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
// node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var DE = {};
-DE = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var jE = {};
+jE = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
// node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var OE = {};
-OE = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var ME = {};
+ME = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
// node_modules/react-aria/dist/private/intl/menu/et-EE.mjs
-var kE = {};
-kE = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var NE = {};
+NE = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
// node_modules/react-aria/dist/private/intl/menu/fi-FI.mjs
-var AE = {};
-AE = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var PE = {};
+PE = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
// node_modules/react-aria/dist/private/intl/menu/fr-FR.mjs
-var jE = {};
-jE = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var FE = {};
+FE = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
// node_modules/react-aria/dist/private/intl/menu/he-IL.mjs
-var ME = {};
-ME = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var IE = {};
+IE = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
// node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var NE = {};
-NE = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var LE = {};
+LE = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
// node_modules/react-aria/dist/private/intl/menu/hu-HU.mjs
-var PE = {};
-PE = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var RE = {};
+RE = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
// node_modules/react-aria/dist/private/intl/menu/it-IT.mjs
-var FE = {};
-FE = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var zE = {};
+zE = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
// node_modules/react-aria/dist/private/intl/menu/ja-JP.mjs
-var IE = {};
-IE = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var BE = {};
+BE = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
// node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var LE = {};
-LE = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var VE = {};
+VE = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
// node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var RE = {};
-RE = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var HE = {};
+HE = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
// node_modules/react-aria/dist/private/intl/menu/lv-LV.mjs
-var zE = {};
-zE = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var UE = {};
+UE = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
// node_modules/react-aria/dist/private/intl/menu/nb-NO.mjs
-var BE = {};
-BE = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var WE = {};
+WE = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
// node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var VE = {};
-VE = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var GE = {};
+GE = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
// node_modules/react-aria/dist/private/intl/menu/pl-PL.mjs
-var HE = {};
-HE = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var KE = {};
+KE = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
// node_modules/react-aria/dist/private/intl/menu/pt-BR.mjs
-var UE = {};
-UE = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var qE = {};
+qE = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
// node_modules/react-aria/dist/private/intl/menu/pt-PT.mjs
-var WE = {};
-WE = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var JE = {};
+JE = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
// node_modules/react-aria/dist/private/intl/menu/ro-RO.mjs
-var GE = {};
-GE = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var YE = {};
+YE = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
// node_modules/react-aria/dist/private/intl/menu/ru-RU.mjs
-var KE = {};
-KE = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var XE = {};
+XE = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
// node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var qE = {};
-qE = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var ZE = {};
+ZE = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
// node_modules/react-aria/dist/private/intl/menu/sl-SI.mjs
-var JE = {};
-JE = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var QE = {};
+QE = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
// node_modules/react-aria/dist/private/intl/menu/sr-SP.mjs
-var YE = {};
-YE = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var $E = {};
+$E = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
// node_modules/react-aria/dist/private/intl/menu/sv-SE.mjs
-var XE = {};
-XE = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var eD = {};
+eD = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
// node_modules/react-aria/dist/private/intl/menu/tr-TR.mjs
-var ZE = {};
-ZE = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var tD = {};
+tD = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
// node_modules/react-aria/dist/private/intl/menu/uk-UA.mjs
-var QE = {};
-QE = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var nD = {};
+nD = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
// node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var $E = {};
-$E = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var rD = {};
+rD = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
// node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var eD = {};
-eD = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var iD = {};
+iD = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
// node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var tD = {};
-tD = {
- "ar-AE": xE,
- "bg-BG": SE,
- "cs-CZ": CE,
- "da-DK": wE,
- "de-DE": TE,
- "el-GR": EE,
- "en-US": DE,
- "es-ES": OE,
- "et-EE": kE,
- "fi-FI": AE,
- "fr-FR": jE,
- "he-IL": ME,
- "hr-HR": NE,
- "hu-HU": PE,
- "it-IT": FE,
- "ja-JP": IE,
- "ko-KR": LE,
- "lt-LT": RE,
- "lv-LV": zE,
- "nb-NO": BE,
- "nl-NL": VE,
- "pl-PL": HE,
- "pt-BR": UE,
- "pt-PT": WE,
- "ro-RO": GE,
- "ru-RU": KE,
- "sk-SK": qE,
- "sl-SI": JE,
- "sr-SP": YE,
- "sv-SE": XE,
- "tr-TR": ZE,
- "uk-UA": QE,
- "zh-CN": $E,
- "zh-TW": eD
+var aD = {};
+aD = {
+ "ar-AE": TE,
+ "bg-BG": EE,
+ "cs-CZ": DE,
+ "da-DK": OE,
+ "de-DE": kE,
+ "el-GR": AE,
+ "en-US": jE,
+ "es-ES": ME,
+ "et-EE": NE,
+ "fi-FI": PE,
+ "fr-FR": FE,
+ "he-IL": IE,
+ "hr-HR": LE,
+ "hu-HU": RE,
+ "it-IT": zE,
+ "ja-JP": BE,
+ "ko-KR": VE,
+ "lt-LT": HE,
+ "lv-LV": UE,
+ "nb-NO": WE,
+ "nl-NL": GE,
+ "pl-PL": KE,
+ "pt-BR": qE,
+ "pt-PT": JE,
+ "ro-RO": YE,
+ "ru-RU": XE,
+ "sk-SK": ZE,
+ "sl-SI": QE,
+ "sr-SP": $E,
+ "sv-SE": eD,
+ "tr-TR": tD,
+ "uk-UA": nD,
+ "zh-CN": rD,
+ "zh-TW": iD
};
// node_modules/react-aria/dist/private/interactions/useLongPress.mjs
-var Dse = 500;
-function nD(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = Dse, accessibilityDescription: s } = e, c = (0, F.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = Jw(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = $w({
+var Ose = 500;
+function oD(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = Ose, accessibilityDescription: s } = e, c = (0, F.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = Qw(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = rT({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -25997,12 +26010,12 @@ function nD(e) {
...e,
type: "longpressstart"
}), c.current = setTimeout(() => {
- e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), yS(e.target).activeElement !== e.target && vS(e.target), a && a({
+ e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), CS(e.target).activeElement !== e.target && SS(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 = bS(e.target);
+ let t = wS(e.target);
l(t, "pointerup", () => {
setTimeout(() => {
u();
@@ -26017,11 +26030,11 @@ function nD(e) {
});
}
});
- return { longPressProps: K(f, PT(a && !t ? s : void 0)) };
+ return { longPressProps: K(f, RT(a && !t ? s : void 0)) };
}
// node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
-function Ose(e) {
- let { onContextMenu: t } = e, n = (0, F.useRef)(!1), { longPressProps: r } = nD({
+function kse(e) {
+ let { onContextMenu: t } = e, n = (0, F.useRef)(!1), { longPressProps: r } = oD({
onLongPressStart() {
n.current = !1;
},
@@ -26033,7 +26046,7 @@ function Ose(e) {
});
}
});
- return t ? { contextMenuProps: K(GS() ? r : {}, {
+ return t ? { contextMenuProps: K(YS() ? r : {}, {
onContextMenu(e) {
e.stopPropagation(), e.preventDefault(), n.current = !0;
let r = e.currentTarget.getBoundingClientRect();
@@ -26044,7 +26057,7 @@ function Ose(e) {
});
},
onKeyDown(e) {
- if (US() && e.ctrlKey && e.key === "Enter") {
+ if (qS() && e.ctrlKey && e.key === "Enter") {
n.current = !1;
let r = e.currentTarget;
e.stopPropagation(), setTimeout(() => {
@@ -26063,13 +26076,13 @@ function Ose(e) {
}) } : { contextMenuProps: {} };
}
// node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var rD = /* @__PURE__ */ new WeakMap();
-function kse(e) {
+var sD = /* @__PURE__ */ new WeakMap();
+function Ase(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
- (0, F.useEffect)(() => !n || r === null ? void 0 : CS(OS(t.current), "scroll", (e) => {
+ (0, F.useEffect)(() => !n || r === null ? void 0 : DS(MS(t.current), "scroll", (e) => {
let n = G(e);
- if (!t.current || n instanceof Node && !ES(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
- let i = r || rD.get(t.current);
+ if (!t.current || n instanceof Node && !AS(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
+ let i = r || sD.get(t.current);
i && i();
}, !0), [
n,
@@ -26078,14 +26091,14 @@ function kse(e) {
]);
}
// node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
-function Ase(e, t, n) {
+function jse(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
(0, F.useEffect)(() => {
- n && n.current && rD.set(n.current, t.close);
+ n && n.current && sD.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
- let o = FC();
+ let o = zC();
return {
triggerProps: {
"aria-haspopup": a,
@@ -26097,14 +26110,14 @@ function Ase(e, t, n) {
};
}
// node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function jse(e) {
+function Mse(e) {
return e && e.__esModule ? e.default : e;
}
-function iD(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = FC(), { triggerProps: s, overlayProps: c } = Ase({ type: r }, t, n), l = (e, n, r = "first") => {
+function cD(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = zC(), { triggerProps: s, overlayProps: c } = jse({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
- }, { keyboardProps: u } = GC({
+ }, { keyboardProps: u } = YC({
isDisabled: i,
shortcuts: {
Enter: (e) => l(a !== "longPress", e, "first"),
@@ -26116,7 +26129,7 @@ function iD(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = Lw(jse(tD), "@react-aria/menu"), { longPressProps: f } = nD({
+ }), d = Vw(Mse(aD), "@react-aria/menu"), { longPressProps: f } = oD({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -26128,14 +26141,14 @@ function iD(e, t, n) {
}), p = {
preventFocusOnPress: !0,
onPressStart(e) {
- e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (vS(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
+ e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (SS(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
},
onPress(e) {
- e.pointerType === "touch" && !i && (vS(e.target), t.toggle());
+ e.pointerType === "touch" && !i && (SS(e.target), t.toggle());
}
};
delete s.onPress;
- let { contextMenuProps: m } = Ose({ onContextMenu(e) {
+ let { contextMenuProps: m } = kse({ onContextMenu(e) {
let n = e.target.getBoundingClientRect();
t.setPoint({
x: n.x + e.x,
@@ -26179,8 +26192,8 @@ function iD(e, t, n) {
};
}
// node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var aD = 1e3;
-function oD(e) {
+var lD = 1e3;
+function uD(e) {
let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, F.useRef)({
search: "",
timeout: void 0
@@ -26199,12 +26212,12 @@ function oD(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, aD);
+ }, lD);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
- let a = Mse(e.key);
- if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !ES(e.currentTarget, G(e)) || i.current.search.length === 0 && a === " ")) {
+ let a = Nse(e.key);
+ if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !AS(e.currentTarget, G(e)) || i.current.search.length === 0 && a === " ")) {
if (i.current.search += a, t.getKeyForSearch != null) {
let a = t.getKeyForSearch(i.current.search, n.focusedKey);
if (a ??= t.getKeyForSearch(i.current.search), a != null) n.setFocusedKey(a), r && r(a), e.preventDefault(), "continuePropagation" in e || e.stopPropagation();
@@ -26215,32 +26228,32 @@ function oD(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, aD);
+ }, lD);
}
} : void 0
} };
}
-function Mse(e) {
+function Nse(e) {
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
}
// node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function sD(e, t) {
+function dD(e, t) {
let n = (0, F.useRef)(!0), r = (0, F.useRef)(null);
- FS(() => (n.current = !0, () => {
+ zS(() => (n.current = !0, () => {
n.current = !1;
- }), []), FS(() => {
+ }), []), zS(() => {
n.current ? n.current = !1 : (!r.current || t.some((e, t) => !Object.is(e, r[t]))) && e(), r.current = t;
}, t);
}
// node_modules/react-aria/dist/private/selection/useSelectableCollection.mjs
-function cD(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 } = jw(), _ = XS(), v = (e, n, i) => {
+function fD(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 } = Fw(), _ = eC(), v = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !gE(e)) {
+ if (t.isLink(n) && m === "selection" && l && !bE(e)) {
(0, Rt.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = _E(r, n), o = t.getItemProps(n);
+ let a = xE(r, n), o = t.getItemProps(n);
if (a) {
_.open(a, e, o.href, o.routerOptions);
return;
@@ -26252,7 +26265,7 @@ function cD(e) {
t.extendSelection(n);
return;
}
- if (l && !gE(e)) {
+ if (l && !bE(e)) {
t.replaceSelection(n);
return;
}
@@ -26279,9 +26292,9 @@ function cD(e) {
}, x = (e) => {
if (n.getFirstKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getFirstKey(t.focusedKey, xw(e));
+ let r = n.getFirstKey(t.focusedKey, Tw(e));
if (t.setFocusedKey(r), r != null) {
- if (xw(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (Tw(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -26313,9 +26326,9 @@ function cD(e) {
}, w = (e) => {
if (n.getLastKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getLastKey(t.focusedKey, xw(e));
+ let r = n.getLastKey(t.focusedKey, Tw(e));
if (t.setFocusedKey(r), r != null) {
- if (xw(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (Tw(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -26346,12 +26359,12 @@ function cD(e) {
else return !1;
}, k = () => {
if (!f && r.current) {
- let e = xT(r.current, { tabbable: !0 }), t, n;
+ let e = TT(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
- let i = DS();
- t && (!kS(t) || i && !NS(i)) && vS(t);
+ let i = jS();
+ t && (!NS(t) || i && !LS(i)) && SS(t);
}
return {
shouldContinuePropagation: !0,
@@ -26361,11 +26374,11 @@ function cD(e) {
shouldContinuePropagation: !0,
shouldPreventDefault: !1
}), j = (e, t) => ({
- [US() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
+ [qS() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
[e + "+Shift"]: t,
- [US() ? e + "+Alt" : e + "+Control"]: t,
+ [qS() ? e + "+Alt" : e + "+Control"]: t,
[e]: t
- }), { keyboardProps: M } = GC({
+ }), { keyboardProps: M } = YC({
shortcuts: {
...j("ArrowDown", y),
...j("ArrowUp", b),
@@ -26375,7 +26388,7 @@ function cD(e) {
...j("PageUp", E)
},
allowRepeats: !0
- }), { keyboardProps: ee } = GC({ shortcuts: {
+ }), { keyboardProps: ee } = YC({ shortcuts: {
...j("Home", x),
...j("End", w),
"Mod+A": D,
@@ -26386,7 +26399,7 @@ function cD(e) {
top: 0,
left: 0
});
- ww(p, "scroll", () => {
+ Ow(p, "scroll", () => {
N.current = {
top: p.current?.scrollTop ?? 0,
left: p.current?.scrollLeft ?? 0
@@ -26394,11 +26407,11 @@ function cD(e) {
});
let te = (e) => {
if (t.isFocused) {
- ES(e.currentTarget, G(e)) || t.setFocused(!1);
+ AS(e.currentTarget, G(e)) || t.setFocused(!1);
return;
}
- if (!ES(e.currentTarget, G(e))) return;
- let i = yC();
+ if (!AS(e.currentTarget, G(e))) return;
+ let i = CC();
t.setFocused(!0);
let a = (e) => {
e != null && (t.setFocusedKey(e), l && !t.isSelected(e) && t.replaceSelection(e));
@@ -26409,27 +26422,27 @@ function cD(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 = N.current.top, p.current.scrollLeft = N.current.left);
if (t.focusedKey != null && p.current) {
- let e = _E(r, t.focusedKey);
- e instanceof HTMLElement && (!kS(e) && !d && vS(e), (i === "keyboard" || h && i === "virtual") && MT(e, { containingElement: r.current }));
+ let e = xE(r, t.focusedKey);
+ e instanceof HTMLElement && (!NS(e) && !d && SS(e), (i === "keyboard" || h && i === "virtual") && IT(e, { containingElement: r.current }));
}
}, P = (e) => {
- ES(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
+ AS(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
}, ne = (0, F.useRef)(!1);
- ww(r, goe, d ? (e) => {
+ Ow(r, _oe, d ? (e) => {
let { detail: n } = e;
e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (ne.current = !0);
} : void 0);
let re = n.getFirstKey?.() ?? null;
- sD(() => {
+ dD(() => {
if (ne.current) {
if (re == null) {
- let e = DS();
- uw(r.current), dw(e, null), t.collection.size > 0 && (ne.current = !1);
+ let e = jS();
+ mw(r.current), hw(e, null), t.collection.size > 0 && (ne.current = !1);
} else t.setFocusedKey(re), ne.current = !1;
}
- }, [re, t.collection.size]), sD(() => {
+ }, [re, t.collection.size]), dD(() => {
t.collection.size > 0 && (ne.current = !1);
- }, [t.focusedKey]), ww(r, hoe, d ? (e) => {
+ }, [t.focusedKey]), Ow(r, goe, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
} : void 0);
let I = (0, F.useRef)(i), ie = (0, F.useRef)(!1);
@@ -26444,22 +26457,22 @@ function cD(e) {
break;
}
}
- t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && AC(r.current), t.collection.size > 0 && (I.current = !1, ie.current = !0);
+ t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && PC(r.current), t.collection.size > 0 && (I.current = !1, ie.current = !0);
}
});
let ae = (0, F.useRef)(t.focusedKey), oe = (0, F.useRef)(null);
(0, F.useEffect)(() => {
if (t.isFocused && t.focusedKey != null && (t.focusedKey !== ae.current || ie.current) && p.current && r.current) {
- let e = yC(), n = _E(r, t.focusedKey);
+ let e = CC(), n = xE(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
(e === "keyboard" || ie.current) && (oe.current && cancelAnimationFrame(oe.current), oe.current = requestAnimationFrame(() => {
- p.current && (jT(p.current, n), e !== "virtual" && MT(n, { containingElement: r.current }));
+ p.current && (FT(p.current, n), e !== "virtual" && IT(n, { containingElement: r.current }));
}));
}
- !d && t.isFocused && t.focusedKey == null && ae.current != null && r.current && AC(r.current), ae.current = t.focusedKey, ie.current = !1;
+ !d && t.isFocused && t.focusedKey == null && ae.current != null && r.current && PC(r.current), ae.current = t.focusedKey, ie.current = !1;
}), (0, F.useEffect)(() => () => {
oe.current && cancelAnimationFrame(oe.current);
- }, []), ww(r, "react-aria-focus-scope-restore", (e) => {
+ }, []), Ow(r, "react-aria-focus-scope-restore", (e) => {
e.preventDefault(), t.setFocused(!0);
});
let se = {
@@ -26469,27 +26482,27 @@ function cD(e) {
onMouseDown(e) {
p.current === G(e) && e.preventDefault();
}
- }, { typeSelectProps: ce } = oD({
+ }, { typeSelectProps: ce } = uD({
keyboardDelegate: n,
selectionManager: t
});
u || (se = K(ce, se));
let le;
d || (le = t.focusedKey == null ? 0 : -1);
- let ue = Tse(t.collection);
+ let ue = Ese(t.collection);
return { collectionProps: K(se, {
tabIndex: le,
"data-collection": ue
}) };
}
// node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function lD(e, t) {
+function pD(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function uD(e) {
- return dD(e, 0);
+function mD(e) {
+ return hD(e, 0);
}
-function dD(e, t) {
+function hD(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -26497,106 +26510,106 @@ function dD(e, t) {
n++;
}
}
-function fD(e) {
+function gD(e) {
let t;
for (let n of e) t = n;
return t;
}
-function pD(e, t, n) {
+function _D(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...mD(e, t), t], i = [...mD(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [...vD(e, t), t], i = [...vD(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 mD(e, t) {
+function vD(e, t) {
let n = [], r = t;
for (; r?.parentKey != null;) r = e.getItem(r.parentKey), r && n.unshift(r);
return n;
}
// node_modules/react-stately/dist/private/collections/getItemCount.mjs
-var hD = /* @__PURE__ */ new WeakMap();
-function gD(e) {
- let t = hD.get(e);
+var yD = /* @__PURE__ */ new WeakMap();
+function bD(e) {
+ let t = yD.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(lD(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(pD(i, e)) : i.type === "item" && n++;
};
- return r(e), hD.set(e, n), n;
+ return r(e), yD.set(e, n), n;
}
// node_modules/react-aria/dist/private/i18n/useCollator.mjs
-var _D = /* @__PURE__ */ new Map();
-function vD(e) {
- let { locale: t } = jw(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (_D.has(n)) return _D.get(n);
+var xD = /* @__PURE__ */ new Map();
+function SD(e) {
+ let { locale: t } = Fw(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
+ if (xD.has(n)) return xD.get(n);
let r = new Intl.Collator(t, e);
- return _D.set(n, r), r;
+ return xD.set(n, r), r;
}
// node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-var Nse = /*#__PURE__*/ F.forwardRef(({ children: e, ...t }, n) => {
- let r = (0, F.useRef)(!1), i = (0, F.useContext)(qw), a = K(i || {}, {
+var Pse = /*#__PURE__*/ F.forwardRef(({ children: e, ...t }, n) => {
+ let r = (0, F.useRef)(!1), i = (0, F.useContext)(Zw), a = K(i || {}, {
...t,
register() {
r.current = !0, i && i.register();
}
});
- return a.ref = KC(n || i?.ref), qC(i, a.ref), (0, F.useEffect)(() => {
+ return a.ref = XC(n || i?.ref), ZC(i, a.ref), (0, F.useEffect)(() => {
r.current ||= !0;
- }, []), /*#__PURE__*/ F.createElement(qw.Provider, { value: a }, e);
+ }, []), /*#__PURE__*/ F.createElement(Zw.Provider, { value: a }, e);
});
-function Pse({ children: e }) {
+function Fse({ children: e }) {
let t = (0, F.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ F.createElement(qw.Provider, { value: t }, e);
+ return /*#__PURE__*/ F.createElement(Zw.Provider, { value: t }, e);
}
// node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var yD = /*#__PURE__*/ (0, F.createContext)({});
-function bD(e) {
- let { getContainer: t } = e, { getContainer: n } = xD();
- return /*#__PURE__*/ F.createElement(yD.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var CD = /*#__PURE__*/ (0, F.createContext)({});
+function wD(e) {
+ let { getContainer: t } = e, { getContainer: n } = TD();
+ return /*#__PURE__*/ F.createElement(CD.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function xD() {
- return (0, F.useContext)(yD) ?? {};
+function TD() {
+ return (0, F.useContext)(CD) ?? {};
}
// node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var SD = /*#__PURE__*/ F.createContext(null);
-function CD(e) {
- let t = rC(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => ({
+var ED = /*#__PURE__*/ F.createContext(null);
+function DD(e) {
+ let t = sC(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = xD();
+ }), [i, a]), { getContainer: s } = TD();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ F.createElement(lT, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ F.createElement(pT, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ F.createElement(SD.Provider, { value: o }, /*#__PURE__*/ F.createElement(Pse, null, /*#__PURE__*/ F.createElement(JC.Provider, { value: null }, c))), /*#__PURE__*/ Rt.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ F.createElement(ED.Provider, { value: o }, /*#__PURE__*/ F.createElement(Fse, null, /*#__PURE__*/ F.createElement(QC.Provider, { value: null }, c))), /*#__PURE__*/ Rt.createPortal(c, n);
}
-function wD() {
- let e = (0, F.useContext)(SD)?.setContain;
- FS(() => {
+function OD() {
+ let e = (0, F.useContext)(ED)?.setContain;
+ zS(() => {
e?.(!0);
}, [e]);
}
// node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function Fse(e, t) {
- let { role: n = "dialog", isEntering: r } = e, i = IC();
+function Ise(e, t) {
+ let { role: n = "dialog", isEntering: r } = e, i = BC();
i = e["aria-label"] ? void 0 : i;
- let a = IC();
+ let a = BC();
a = n === "alertdialog" && !e["aria-describedby"] ? a : void 0;
let o = (0, F.useRef)(!1);
(0, F.useEffect)(() => {
- if (!r && t.current && !kS(t.current)) {
- AC(t.current);
+ if (!r && t.current && !NS(t.current)) {
+ PC(t.current);
let e = setTimeout(() => {
- (DS() === t.current || DS() === document.body) && (o.current = !0, t.current && (t.current.blur(), AC(t.current)), o.current = !1);
+ (jS() === t.current || jS() === document.body) && (o.current = !0, t.current && (t.current.blur(), PC(t.current)), o.current = !1);
}, 500);
return () => {
clearTimeout(e);
};
}
- }, [t, r]), wD(), (0, F.useRef)(!1), (0, F.useEffect)(() => {});
+ }, [t, r]), OD(), (0, F.useRef)(!1), (0, F.useEffect)(() => {});
let s = e["aria-describedby"] ?? a;
return {
dialogProps: {
- ...zw(e, { labelable: !0 }),
+ ...Uw(e, { labelable: !0 }),
role: n,
tabIndex: -1,
"aria-labelledby": e["aria-labelledby"] ?? i,
@@ -26610,23 +26623,23 @@ function Fse(e, t) {
};
}
// node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function TD(e = {}) {
+function kD(e = {}) {
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, F.useRef)({
isFocused: !1,
- isFocusVisible: t || vC()
+ isFocusVisible: t || SC()
}), [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, F.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, F.useCallback)((e) => {
- i.current.isFocused = e, i.current.isFocusVisible = vC(), o(e), l();
+ i.current.isFocused = e, i.current.isFocusVisible = SC(), o(e), l();
}, [l]);
- CC((e) => {
+ DC((e) => {
i.current.isFocusVisible = e, l();
}, [n, a], {
enabled: a,
isTextInput: n
});
- let { focusProps: d } = VC({
+ let { focusProps: d } = GC({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = XT({
+ }), { focusWithinProps: f } = eE({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -26637,41 +26650,41 @@ function TD(e = {}) {
};
}
// node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function Ise(e = {}) {
- let { locale: t } = jw();
+function Lse(e = {}) {
+ let { locale: t } = Fw();
return (0, F.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
// node_modules/react-aria/dist/private/interactions/useHover.mjs
-var ED = !1, DD = 0;
-function Lse() {
- ED = !0, setTimeout(() => {
- ED = !1;
+var AD = !1, jD = 0;
+function Rse() {
+ AD = !0, setTimeout(() => {
+ AD = !1;
}, 500);
}
-function OD(e) {
- e.pointerType === "touch" && Lse();
+function MD(e) {
+ e.pointerType === "touch" && Rse();
}
-function Rse() {
- let e = yS(null);
- if (e !== void 0) return DD === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", OD), DD++, () => {
- DD--, !(DD > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", OD);
+function zse() {
+ let e = CS(null);
+ if (e !== void 0) return jD === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", MD), jD++, () => {
+ jD--, !(jD > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", MD);
};
}
-function kD(e) {
+function ND(e) {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, F.useState)(!1), s = (0, F.useRef)({
isHovered: !1,
ignoreEmulatedMouseEvents: !1,
pointerType: "",
target: null
}).current;
- (0, F.useEffect)(Rse, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = Jw(), { hoverProps: u, triggerHoverEnd: d } = (0, F.useMemo)(() => {
+ (0, F.useEffect)(zse, []);
+ let { addGlobalListener: c, removeAllGlobalListeners: l } = Qw(), { hoverProps: u, triggerHoverEnd: d } = (0, F.useMemo)(() => {
let e = (e, r) => {
- if (s.pointerType = r, i || r === "touch" || s.isHovered || !ES(e.currentTarget, G(e))) return;
+ if (s.pointerType = r, i || r === "touch" || s.isHovered || !AS(e.currentTarget, G(e))) return;
s.isHovered = !0;
let l = e.currentTarget;
- s.target = l, c(yS(G(e)), "pointerover", (e) => {
- s.isHovered && s.target && !ES(s.target, G(e)) && a(e, e.pointerType);
+ s.target = l, c(CS(G(e)), "pointerover", (e) => {
+ s.isHovered && s.target && !AS(s.target, G(e)) && a(e, e.pointerType);
}, { capture: !0 }), t && t({
type: "hoverstart",
target: l,
@@ -26686,9 +26699,9 @@ function kD(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- ED && t.pointerType === "mouse" || e(t, t.pointerType);
+ AD && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
- !i && ES(e.currentTarget, G(e)) && a(e, e.pointerType);
+ !i && AS(e.currentTarget, G(e)) && a(e, e.pointerType);
}), {
hoverProps: u,
triggerHoverEnd: a
@@ -26710,22 +26723,22 @@ function kD(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs
-function zse(e) {
+function Bse(e) {
let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, F.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
- }), o = Cw((e) => {
- n && AD(e, t) && (i && i(e), a.current.isPointerDown = !0);
- }), s = Cw((e) => {
+ }), o = Dw((e) => {
+ n && PD(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ }), s = Dw((e) => {
n && n(e);
});
(0, F.useEffect)(() => {
let e = a.current;
if (r) return;
- let n = t.current, i = yS(n);
+ let n = t.current, i = CS(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && AD(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && PD(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);
@@ -26733,28 +26746,28 @@ function zse(e) {
}
}, [t, r]);
}
-function AD(e, t) {
+function PD(e, t) {
if (e.button > 0) return !1;
let n = G(e);
if (n) {
let e = n.ownerDocument;
- if (!e || !ES(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
+ if (!e || !AS(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
}
return t.current ? !e.composedPath().includes(t.current) : !1;
}
// node_modules/react-aria/dist/private/gridlist/utils.mjs
-var jD = /* @__PURE__ */ new WeakMap();
-function MD(e, t) {
- let { id: n } = jD.get(e) ?? {};
+var FD = /* @__PURE__ */ new WeakMap();
+function ID(e, t) {
+ let { id: n } = FD.get(e) ?? {};
if (!n) throw Error("Unknown list");
- return `${n}-${Bse(t)}`;
+ return `${n}-${Vse(t)}`;
}
-function Bse(e) {
+function Vse(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
// node_modules/react-aria/dist/private/intl/grid/ar-AE.mjs
-var ND = {};
-ND = {
+var LD = {};
+LD = {
deselectedItem: (e) => `${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,
longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",
select: "تحديد",
@@ -26767,8 +26780,8 @@ ND = {
selectedItem: (e) => `${e.item} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`
};
// node_modules/react-aria/dist/private/intl/grid/bg-BG.mjs
-var PD = {};
-PD = {
+var RD = {};
+RD = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,
longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",
select: "Изберете",
@@ -26781,8 +26794,8 @@ PD = {
selectedItem: (e) => `${e.item} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`
};
// node_modules/react-aria/dist/private/intl/grid/cs-CZ.mjs
-var FD = {};
-FD = {
+var zD = {};
+zD = {
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",
@@ -26795,8 +26808,8 @@ FD = {
selectedItem: (e) => `Vybr\xe1na polo\u{17E}ka ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/da-DK.mjs
-var ID = {};
-ID = {
+var BD = {};
+BD = {
deselectedItem: (e) => `${e.item} ikke valgt.`,
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
select: "Vælg",
@@ -26809,8 +26822,8 @@ ID = {
selectedItem: (e) => `${e.item} valgt.`
};
// node_modules/react-aria/dist/private/intl/grid/de-DE.mjs
-var LD = {};
-LD = {
+var VD = {};
+VD = {
deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,
longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",
select: "Auswählen",
@@ -26823,8 +26836,8 @@ LD = {
selectedItem: (e) => `${e.item} ausgew\xe4hlt.`
};
// node_modules/react-aria/dist/private/intl/grid/el-GR.mjs
-var RD = {};
-RD = {
+var HD = {};
+HD = {
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: "Επιλογή",
@@ -26837,8 +26850,8 @@ RD = {
selectedItem: (e) => `\u{395}\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}.`
};
// node_modules/react-aria/dist/private/intl/grid/en-US.mjs
-var zD = {};
-zD = {
+var UD = {};
+UD = {
deselectedItem: (e) => `${e.item} not selected.`,
select: "Select",
selectedCount: (e, t) => `${t.plural(e.count, {
@@ -26851,8 +26864,8 @@ zD = {
longPressToSelect: "Long press to enter selection mode."
};
// node_modules/react-aria/dist/private/intl/grid/es-ES.mjs
-var BD = {};
-BD = {
+var WD = {};
+WD = {
deselectedItem: (e) => `${e.item} no seleccionado.`,
longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",
select: "Seleccionar",
@@ -26865,8 +26878,8 @@ BD = {
selectedItem: (e) => `${e.item} seleccionado.`
};
// node_modules/react-aria/dist/private/intl/grid/et-EE.mjs
-var VD = {};
-VD = {
+var GD = {};
+GD = {
deselectedItem: (e) => `${e.item} pole valitud.`,
longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",
select: "Vali",
@@ -26879,8 +26892,8 @@ VD = {
selectedItem: (e) => `${e.item} valitud.`
};
// node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs
-var HD = {};
-HD = {
+var KD = {};
+KD = {
deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,
longPressToSelect: "Siirry valintatilaan painamalla pitkään.",
select: "Valitse",
@@ -26893,8 +26906,8 @@ HD = {
selectedItem: (e) => `${e.item} valittu.`
};
// node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs
-var UD = {};
-UD = {
+var qD = {};
+qD = {
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",
@@ -26907,8 +26920,8 @@ UD = {
selectedItem: (e) => `${e.item} s\xe9lectionn\xe9.`
};
// node_modules/react-aria/dist/private/intl/grid/he-IL.mjs
-var WD = {};
-WD = {
+var JD = {};
+JD = {
deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",
select: "בחר",
@@ -26921,8 +26934,8 @@ WD = {
selectedItem: (e) => `${e.item} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`
};
// node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs
-var GD = {};
-GD = {
+var YD = {};
+YD = {
deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,
longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",
select: "Odaberite",
@@ -26935,8 +26948,8 @@ GD = {
selectedItem: (e) => `Stavka ${e.item} je odabrana.`
};
// node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs
-var KD = {};
-KD = {
+var XD = {};
+XD = {
deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,
longPressToSelect: "Nyomja hosszan a kijelöléshez.",
select: "Kijelölés",
@@ -26949,8 +26962,8 @@ KD = {
selectedItem: (e) => `${e.item} kijel\xf6lve.`
};
// node_modules/react-aria/dist/private/intl/grid/it-IT.mjs
-var qD = {};
-qD = {
+var ZD = {};
+ZD = {
deselectedItem: (e) => `${e.item} non selezionato.`,
longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",
select: "Seleziona",
@@ -26963,8 +26976,8 @@ qD = {
selectedItem: (e) => `${e.item} selezionato.`
};
// node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs
-var JD = {};
-JD = {
+var QD = {};
+QD = {
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: "選択",
@@ -26977,8 +26990,8 @@ JD = {
selectedItem: (e) => `${e.item} \u{3092}\u{9078}\u{629E}\u{3057}\u{307E}\u{3057}\u{305F}\u{3002}`
};
// node_modules/react-aria/dist/private/intl/grid/ko-KR.mjs
-var YD = {};
-YD = {
+var $D = {};
+$D = {
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: "선택",
@@ -26991,8 +27004,8 @@ YD = {
selectedItem: (e) => `${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C5C8}\u{C2B5}\u{B2C8}\u{B2E4}.`
};
// node_modules/react-aria/dist/private/intl/grid/lt-LT.mjs
-var XD = {};
-XD = {
+var eO = {};
+eO = {
deselectedItem: (e) => `${e.item} nepasirinkta.`,
longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",
select: "Pasirinkti",
@@ -27005,8 +27018,8 @@ XD = {
selectedItem: (e) => `Pasirinkta: ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs
-var ZD = {};
-ZD = {
+var tO = {};
+tO = {
deselectedItem: (e) => `Vienums ${e.item} nav atlas\u{12B}ts.`,
longPressToSelect: "Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",
select: "Atlasīt",
@@ -27019,8 +27032,8 @@ ZD = {
selectedItem: (e) => `Atlas\u{12B}ts vienums ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs
-var QD = {};
-QD = {
+var nO = {};
+nO = {
deselectedItem: (e) => `${e.item} er ikke valgt.`,
longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",
select: "Velg",
@@ -27033,8 +27046,8 @@ QD = {
selectedItem: (e) => `${e.item} er valgt.`
};
// node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs
-var $D = {};
-$D = {
+var rO = {};
+rO = {
deselectedItem: (e) => `${e.item} niet geselecteerd.`,
longPressToSelect: "Druk lang om de selectiemodus te openen.",
select: "Selecteren",
@@ -27047,8 +27060,8 @@ $D = {
selectedItem: (e) => `${e.item} geselecteerd.`
};
// node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs
-var eO = {};
-eO = {
+var iO = {};
+iO = {
deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
select: "Zaznacz",
@@ -27061,8 +27074,8 @@ eO = {
selectedItem: (e) => `Zaznaczono ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs
-var tO = {};
-tO = {
+var aO = {};
+aO = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",
select: "Selecionar",
@@ -27075,8 +27088,8 @@ tO = {
selectedItem: (e) => `${e.item} selecionado.`
};
// node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs
-var nO = {};
-nO = {
+var oO = {};
+oO = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Prima continuamente para entrar no modo de seleção.",
select: "Selecionar",
@@ -27089,8 +27102,8 @@ nO = {
selectedItem: (e) => `${e.item} selecionado.`
};
// node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs
-var rO = {};
-rO = {
+var sO = {};
+sO = {
deselectedItem: (e) => `${e.item} neselectat.`,
longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",
select: "Selectare",
@@ -27103,8 +27116,8 @@ rO = {
selectedItem: (e) => `${e.item} selectat.`
};
// node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs
-var iO = {};
-iO = {
+var cO = {};
+cO = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Нажмите и удерживайте для входа в режим выбора.",
select: "Выбрать",
@@ -27117,8 +27130,8 @@ iO = {
selectedItem: (e) => `${e.item} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`
};
// node_modules/react-aria/dist/private/intl/grid/sk-SK.mjs
-var aO = {};
-aO = {
+var lO = {};
+lO = {
deselectedItem: (e) => `Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,
longPressToSelect: "Dlhším stlačením prejdite do režimu výberu.",
select: "Vybrať",
@@ -27131,8 +27144,8 @@ aO = {
selectedItem: (e) => `Vybrat\xe9 polo\u{17E}ky: ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs
-var oO = {};
-oO = {
+var uO = {};
+uO = {
deselectedItem: (e) => `Element ${e.item} ni izbran.`,
longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",
select: "Izberite",
@@ -27145,8 +27158,8 @@ oO = {
selectedItem: (e) => `Element ${e.item} je izbran.`
};
// node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs
-var sO = {};
-sO = {
+var dO = {};
+dO = {
deselectedItem: (e) => `${e.item} nije izabrano.`,
longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",
select: "Izaberite",
@@ -27159,8 +27172,8 @@ sO = {
selectedItem: (e) => `${e.item} je izabrano.`
};
// node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs
-var cO = {};
-cO = {
+var fO = {};
+fO = {
deselectedItem: (e) => `${e.item} ej markerat.`,
longPressToSelect: "Tryck länge när du vill öppna väljarläge.",
select: "Markera",
@@ -27173,8 +27186,8 @@ cO = {
selectedItem: (e) => `${e.item} markerat.`
};
// node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs
-var lO = {};
-lO = {
+var pO = {};
+pO = {
deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,
longPressToSelect: "Seçim moduna girmek için uzun basın.",
select: "Seç",
@@ -27187,8 +27200,8 @@ lO = {
selectedItem: (e) => `${e.item} se\xe7ildi.`
};
// node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var uO = {};
-uO = {
+var mO = {};
+mO = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Виконайте довге натиснення, щоб перейти в режим вибору.",
select: "Вибрати",
@@ -27201,8 +27214,8 @@ uO = {
selectedItem: (e) => `${e.item} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`
};
// node_modules/react-aria/dist/private/intl/grid/zh-CN.mjs
-var dO = {};
-dO = {
+var hO = {};
+hO = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -27215,8 +27228,8 @@ dO = {
selectedItem: (e) => `\u{5DF2}\u{9009}\u{62E9} ${e.item}\u{3002}`
};
// node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var fO = {};
-fO = {
+var gO = {};
+gO = {
deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,
longPressToSelect: "長按以進入選擇模式。",
select: "選取",
@@ -27229,54 +27242,54 @@ fO = {
selectedItem: (e) => `\u{5DF2}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`
};
// node_modules/react-aria/dist/private/grid/intlStrings.mjs
-var pO = {};
-pO = {
- "ar-AE": ND,
- "bg-BG": PD,
- "cs-CZ": FD,
- "da-DK": ID,
- "de-DE": LD,
- "el-GR": RD,
- "en-US": zD,
- "es-ES": BD,
- "et-EE": VD,
- "fi-FI": HD,
- "fr-FR": UD,
- "he-IL": WD,
- "hr-HR": GD,
- "hu-HU": KD,
- "it-IT": qD,
- "ja-JP": JD,
- "ko-KR": YD,
- "lt-LT": XD,
- "lv-LV": ZD,
- "nb-NO": QD,
- "nl-NL": $D,
- "pl-PL": eO,
- "pt-BR": tO,
- "pt-PT": nO,
- "ro-RO": rO,
- "ru-RU": iO,
- "sk-SK": aO,
- "sl-SI": oO,
- "sr-SP": sO,
- "sv-SE": cO,
- "tr-TR": lO,
- "uk-UA": uO,
- "zh-CN": dO,
- "zh-TW": fO
+var _O = {};
+_O = {
+ "ar-AE": LD,
+ "bg-BG": RD,
+ "cs-CZ": zD,
+ "da-DK": BD,
+ "de-DE": VD,
+ "el-GR": HD,
+ "en-US": UD,
+ "es-ES": WD,
+ "et-EE": GD,
+ "fi-FI": KD,
+ "fr-FR": qD,
+ "he-IL": JD,
+ "hr-HR": YD,
+ "hu-HU": XD,
+ "it-IT": ZD,
+ "ja-JP": QD,
+ "ko-KR": $D,
+ "lt-LT": eO,
+ "lv-LV": tO,
+ "nb-NO": nO,
+ "nl-NL": rO,
+ "pl-PL": iO,
+ "pt-BR": aO,
+ "pt-PT": oO,
+ "ro-RO": sO,
+ "ru-RU": cO,
+ "sk-SK": lO,
+ "sl-SI": uO,
+ "sr-SP": dO,
+ "sv-SE": fO,
+ "tr-TR": pO,
+ "uk-UA": mO,
+ "zh-CN": hO,
+ "zh-TW": gO
};
// node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs
-function Vse(e) {
+function Hse(e) {
return e && e.__esModule ? e.default : e;
}
-function mO(e, t) {
- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = Lw(Vse(pO), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, F.useRef)(i), o = (0, F.useCallback)(() => {
+function vO(e, t) {
+ let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = Vw(Hse(_O), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, F.useRef)(i), o = (0, F.useCallback)(() => {
if (!t.selectionManager.isFocused || i === a.current) {
a.current = i;
return;
}
- let e = hO(i, a.current), o = hO(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
+ let e = yO(i, a.current), o = yO(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)) {
@@ -27296,7 +27309,7 @@ function mO(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 && ET(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 && AT(c.join(" ")), a.current = i;
}, [
i,
t.selectionManager.selectedKeys,
@@ -27307,7 +27320,7 @@ function mO(e, t) {
n,
r
]);
- DT(() => {
+ jT(() => {
if (t.selectionManager.isFocused) o();
else {
let e = requestAnimationFrame(o);
@@ -27315,20 +27328,20 @@ function mO(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function hO(e, t) {
+function yO(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);
return n;
}
// node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs
-function gO(e, t) {
+function bO(e, t) {
let n = t?.isDisabled, [r, i] = (0, F.useState)(!1);
- return FS(() => {
+ return zS(() => {
if (e?.current && !n) {
let t = () => {
if (e.current) {
- let t = xT(e.current, { tabbable: !0 });
+ let t = TT(e.current, { tabbable: !0 });
i(!!t.nextNode());
}
};
@@ -27346,12 +27359,12 @@ function gO(e, t) {
}), !n && r;
}
// node_modules/react-aria/dist/private/grid/useHighlightSelectionDescription.mjs
-function Hse(e) {
+function Use(e) {
return e && e.__esModule ? e.default : e;
}
-function _O(e) {
- let t = Lw(Hse(pO), "@react-aria/grid"), n = xC(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
- return PT((0, F.useMemo)(() => {
+function xO(e) {
+ let t = Vw(Use(_O), "@react-aria/grid"), n = TC(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
+ return RT((0, F.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;
}, [
@@ -27363,11 +27376,11 @@ function _O(e) {
]));
}
// node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function vO(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = vD({
+function SO(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = SD({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, F.useMemo)(() => a || new bE({
+ }), l = t.disabledBehavior, u = (0, F.useMemo)(() => a || new wE({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -27384,7 +27397,7 @@ function vO(e) {
c,
l,
s
- ]), { collectionProps: d } = cD({
+ ]), { collectionProps: d } = fD({
...e,
ref: i,
selectionManager: t,
@@ -27393,10 +27406,10 @@ function vO(e) {
return { listProps: d };
}
// node_modules/react-aria/dist/private/gridlist/useGridList.mjs
-function Use(e, t, n) {
+function Wse(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 } = vO({
+ let { listProps: f } = SO({
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
@@ -27411,30 +27424,30 @@ function Use(e, t, n) {
autoFocus: e.autoFocus,
escapeKeyBehavior: u,
UNSTABLE_focusOnEntry: e.UNSTABLE_focusOnEntry
- }), p = FC(e.id);
- jD.set(t, {
+ }), p = zC(e.id);
+ FD.set(t, {
id: p,
onAction: o,
linkBehavior: c,
keyboardNavigationBehavior: l,
shouldSelectOnPressUp: d
});
- let m = _O({
+ let m = xO({
selectionManager: t.selectionManager,
hasItemActions: !!o
- }), h = gO(n, { isDisabled: t.collection.size !== 0 }), g = K(zw(e, { labelable: !0 }), {
+ }), h = bO(n, { isDisabled: t.collection.size !== 0 }), g = K(Uw(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), mO({}, t), { gridProps: g };
+ return r && (g["aria-rowcount"] = t.collection.size, g["aria-colcount"] = 1), vO({}, t), { gridProps: g };
}
// node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function yO(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 = XS();
- t = FC(t);
+function CO(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 = eC();
+ t = zC(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && gE(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && bE(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -27445,11 +27458,11 @@ function yO(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 && (xw(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 && (Tw(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
}
};
(0, F.useEffect)(() => {
- r === n.focusedKey && n.isFocused && (o ? uw(i.current) : s ? s() : DS() !== i.current && i.current && AC(i.current));
+ r === n.focusedKey && n.isFocused && (o ? mw(i.current) : s ? s() : jS() !== i.current && i.current && PC(i.current));
}, [
i,
r,
@@ -27477,22 +27490,22 @@ function yO(e) {
l && (l(), i.current?.dispatchEvent(new CustomEvent("react-aria-item-action", { bubbles: !0 }))), _ && i.current && f.open(i.current, e, D.href, D.routerOptions);
}, k = { ref: i };
a ? (k.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || xO(e.key)) && p(e);
+ C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || TO(e.key)) && p(e);
}, u ? (k.onPressUp = b ? void 0 : (e) => {
e.pointerType === "mouse" && v && p(e);
}, k.onPress = b ? O : (e) => {
e.pointerType !== "keyboard" && e.pointerType !== "mouse" && v && p(e);
}) : k.onPress = (e) => {
if (b || x && e.pointerType !== "mouse") {
- if (e.pointerType === "keyboard" && !bO(e.key)) return;
+ if (e.pointerType === "keyboard" && !wO(e.key)) return;
O(e);
} else e.pointerType !== "keyboard" && v && p(e);
}) : (k.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || xO(e.key))) && p(e);
+ C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || TO(e.key))) && p(e);
}, k.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && bO(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
+ (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && wO(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
});
- let A = Ese(n.collection);
+ let A = Dse(n.collection);
if (m["data-collection"] = A, m["data-key"] = r, k.preventFocusOnPress = o, o && (k = K(k, {
onPressStart(e) {
e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
@@ -27507,10 +27520,10 @@ function yO(e) {
"onPress",
"onPressUp",
"onClick"
- ]) D[e] && (k[e] = jC(k[e], D[e]));
- let { pressProps: j, isPressed: M } = $w(k), ee = x ? (e) => {
+ ]) D[e] && (k[e] = FC(k[e], D[e]));
+ let { pressProps: j, isPressed: M } = rT(k), ee = x ? (e) => {
C.current === "mouse" && (e.stopPropagation(), e.preventDefault(), O(e));
- } : void 0, { longPressProps: N } = nD({
+ } : void 0, { longPressProps: N } = oD({
isDisabled: !w,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
@@ -27518,7 +27531,7 @@ function yO(e) {
}), te = (e) => {
C.current === "touch" && T.current && e.preventDefault();
}, P = d !== "none" && n.isLink(r) ? (e) => {
- ZS.isOpening || e.preventDefault();
+ tC.isOpening || e.preventDefault();
} : void 0, ne = K(m, v || b || o && !c ? j : {}, w ? N : {}, {
onDoubleClick: ee,
onDragStartCapture: te,
@@ -27531,7 +27544,7 @@ function yO(e) {
if (e != null) return e !== A;
t = t.parentElement;
}
- return NS(e);
+ return LS(e);
}, I = ne.onPointerDown;
ne.onPointerDown = (e) => {
let t = G(e);
@@ -27551,14 +27564,14 @@ function yO(e) {
hasAction: S
};
}
-function bO(e) {
+function wO(e) {
return e === "Enter";
}
-function xO(e) {
+function TO(e) {
return e === " ";
}
// node_modules/react-aria/dist/private/gridlist/useGridListItem.mjs
-var SO = {
+var EO = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -27568,18 +27581,18 @@ var SO = {
rtl: "ArrowRight"
}
};
-function Wse(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = jw(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = jD.get(t), f = IC(), p = (0, F.useRef)(null), m = () => {
+function Gse(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = Fw(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = FD.get(t), f = BC(), p = (0, F.useRef)(null), m = () => {
if (n.current !== null) {
if (a === "child") {
- if (kS(n.current) && n.current !== DS(yS(n.current))) return;
- let e = xT(n.current, { tabbable: !0 }).firstChild();
+ if (NS(n.current) && n.current !== jS(CS(n.current))) return;
+ let e = TT(n.current, { tabbable: !0 }).firstChild();
if (e) {
- AC(e), MT(e, { containingElement: kT(e) });
+ PC(e), IT(e, { containingElement: NT(e) });
return;
}
}
- (p.current != null && r.key !== p.current || !kS(n.current)) && AC(n.current);
+ (p.current != null && r.key !== p.current || !NS(n.current)) && PC(n.current);
}
}, h = {}, g = e.hasChildItems, _ = t.selectionManager.isLink(r.key);
if (r != null && "expandedKeys" in t) {
@@ -27589,7 +27602,7 @@ function Wse(e, t, n) {
if (r.level >= 0 && r?.parentKey != null) {
let e = t.collection.getItem(r.parentKey);
if (e) {
- let n = Gse(e, t.collection);
+ let n = Kse(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;
@@ -27600,75 +27613,75 @@ function Wse(e, t, n) {
"aria-setsize": i
};
}
- let { itemProps: v, ...y } = yO({
+ let { itemProps: v, ...y } = CO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: e.shouldSelectOnPressUp || d,
- onAction: c || r.props?.onAction ? jC(r.props?.onAction, c ? () => c(r.key) : void 0) : void 0,
+ onAction: c || r.props?.onAction ? FC(r.props?.onAction, c ? () => c(r.key) : void 0) : void 0,
focus: m,
linkBehavior: l
}), b = (e) => {
- let i = DS(yS(n.current));
- if (!ES(e.currentTarget, G(e)) || !n.current || !i) return;
- let a = xT(n.current);
- if (a.currentNode = i, !CO(e, t, r, g, s, i, n.current, o)) switch (e.key) {
+ let i = jS(CS(n.current));
+ if (!AS(e.currentTarget, G(e)) || !n.current || !i) return;
+ let a = TT(n.current);
+ if (a.currentNode = i, !DO(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(), AC(t), MT(t, { containingElement: kT(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "rtl") AC(n.current), MT(n.current, { containingElement: kT(n.current) });
+ if (t) e.preventDefault(), e.stopPropagation(), PC(t), IT(t, { containingElement: NT(n.current) });
+ else if (e.preventDefault(), e.stopPropagation(), s === "rtl") PC(n.current), IT(n.current, { containingElement: NT(n.current) });
else {
a.currentNode = n.current;
- let e = wO(a);
- e && (AC(e), MT(e, { containingElement: kT(n.current) }));
+ let e = OO(a);
+ e && (PC(e), IT(e, { containingElement: NT(n.current) }));
}
}
break;
case "ArrowRight":
if (u === "arrow") {
let t = s === "rtl" ? a.previousNode() : a.nextNode();
- if (t) e.preventDefault(), e.stopPropagation(), AC(t), MT(t, { containingElement: kT(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "ltr") AC(n.current), MT(n.current, { containingElement: kT(n.current) });
+ if (t) e.preventDefault(), e.stopPropagation(), PC(t), IT(t, { containingElement: NT(n.current) });
+ else if (e.preventDefault(), e.stopPropagation(), s === "ltr") PC(n.current), IT(n.current, { containingElement: NT(n.current) });
else {
a.currentNode = n.current;
- let e = wO(a);
- e && (AC(e), MT(e, { containingElement: kT(n.current) }));
+ let e = OO(a);
+ e && (PC(e), IT(e, { containingElement: NT(n.current) }));
}
}
break;
case "ArrowUp":
- case "ArrowDown": !e.altKey && ES(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && AS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
}
}, x = (e) => {
- p.current = r.key, G(e) === n.current ? a === "child" && e.relatedTarget && ES(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- a === "child" && DS(yS(n.current)) === n.current && m();
- }) : vC() || t.selectionManager.setFocusedKey(r.key);
+ p.current = r.key, G(e) === n.current ? a === "child" && e.relatedTarget && AS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
+ a === "child" && jS(CS(n.current)) === n.current && m();
+ }) : SC() || t.selectionManager.setFocusedKey(r.key);
}, S = (e) => {
- let i = DS(yS(n.current));
- if (ES(e.currentTarget, G(e)) && n.current && i) {
+ let i = jS(CS(n.current));
+ if (AS(e.currentTarget, G(e)) && n.current && i) {
if (u === "tab") {
if (G(e) !== n.current && e.key !== "Tab") {
e.stopPropagation();
return;
}
- if (CO(e, t, r, g, s, i, n.current, o)) return;
+ if (DO(e, t, r, g, s, i, n.current, o)) return;
}
if (e.key === "Tab" && u === "tab") {
- let t = xT(n.current, { tabbable: !0 });
+ let t = TT(n.current, { tabbable: !0 });
t.currentNode = i, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
- }, C = QS(r.props), w = K(v, y.hasAction ? C : {}, {
+ }, C = nC(r.props), w = K(v, y.hasAction ? C : {}, {
role: "row",
onKeyDownCapture: u === "arrow" || o ? b : void 0,
onFocus: x,
"aria-label": r["aria-label"] || r.textValue || void 0,
"aria-selected": t.selectionManager.canSelectItem(r.key) ? t.selectionManager.isSelected(r.key) : void 0,
"aria-disabled": t.selectionManager.isDisabled(r.key) || void 0,
- "aria-labelledby": f && (r["aria-label"] || r.textValue) ? `${MD(t, r.key)} ${f}` : void 0,
- id: MD(t, r.key)
+ "aria-labelledby": f && (r["aria-label"] || r.textValue) ? `${ID(t, r.key)} ${f}` : void 0,
+ id: ID(t, r.key)
});
a === "child" && o && u === "tab" && (w.tabIndex = -1);
let T = w.onKeyDown;
@@ -27689,66 +27702,66 @@ function Wse(e, t, n) {
...y
};
}
-function CO(e, t, n, r, i, a, o, s) {
+function DO(e, t, n, r, i, a, o, s) {
if (!("expandedKeys" in t) || !s && a !== o) return !1;
- if (e.key === SO.expand[i] && t.selectionManager.focusedKey === n.key && r && !t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
- if (e.key === SO.collapse[i] && t.selectionManager.focusedKey === n.key) {
+ if (e.key === EO.expand[i] && t.selectionManager.focusedKey === n.key && r && !t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
+ if (e.key === EO.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 wO(e) {
+function OO(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
while (n);
return t;
}
-function Gse(e, t) {
+function Kse(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;
}
// node_modules/react-aria/dist/private/grid/useGridSelectionCheckbox.mjs
-function Kse(e) {
+function qse(e) {
return e && e.__esModule ? e.default : e;
}
-function TO(e, t) {
- let { key: n } = e, r = t.selectionManager, i = FC(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
+function kO(e, t) {
+ let { key: n } = e, r = t.selectionManager, i = zC(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": Lw(Kse(pO), "@react-aria/grid").format("select"),
+ "aria-label": Vw(qse(_O), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
} };
}
// node_modules/react-aria/dist/private/gridlist/useGridListSelectionCheckbox.mjs
-function qse(e, t) {
- let { key: n } = e, { checkboxProps: r } = TO(e, t);
+function Jse(e, t) {
+ let { key: n } = e, { checkboxProps: r } = kO(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${MD(t, n)}`
+ "aria-labelledby": `${r.id} ${ID(t, n)}`
} };
}
// node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function Jse(e, t, n) {
- let r = zw(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+function Yse(e, t, n) {
+ let r = Uw(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 } = vO({
+ let { listProps: s } = SO({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = XT({
+ }), { focusWithinProps: c } = eE({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
- }), l = FC(e.id);
- hE.set(t, {
+ }), l = zC(e.id);
+ yE.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -27758,7 +27771,7 @@ function Jse(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = JT({
+ let { labelProps: u, fieldProps: d } = QT({
...e,
id: l,
labelElementType: "span"
@@ -27773,8 +27786,8 @@ function Jse(e, t, n) {
};
}
// node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function Yse(e) {
- let { heading: t, "aria-label": n } = e, r = FC();
+function Xse(e) {
+ let { heading: t, "aria-label": n } = e, r = zC();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -27792,8 +27805,8 @@ function Yse(e) {
};
}
// node_modules/react-aria/dist/private/listbox/useOption.mjs
-function Xse(e, t, n) {
- let { key: r } = e, i = hE.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 = IC(), f = IC(), p = {
+function Zse(e, t, n) {
+ let { key: r } = e, i = yE.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 = BC(), f = BC(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -27803,9 +27816,9 @@ function Xse(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"] = gD(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = bD(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = wse(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = yO({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Tse(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = CO({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -27814,18 +27827,18 @@ function Xse(e, t, n) {
isVirtualized: u,
shouldUseVirtualFocus: l,
isDisabled: a,
- onAction: h || m?.props?.onAction ? jC(m?.props?.onAction, h) : void 0,
+ onAction: h || m?.props?.onAction ? FC(m?.props?.onAction, h) : void 0,
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = kD({
+ }), { hoverProps: S } = ND({
isDisabled: a || !c,
onHoverStart() {
- vC() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
+ SC() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = zw(m?.props);
+ }), C = Uw(m?.props);
delete C.id;
- let w = $S(m?.props);
+ let w = rC(m?.props);
return {
optionProps: {
...p,
@@ -27835,7 +27848,7 @@ function Xse(e, t, n) {
labelProps: { id: d },
descriptionProps: { id: f },
isFocused: y,
- isFocusVisible: y && t.selectionManager.isFocused && vC(),
+ isFocusVisible: y && t.selectionManager.isFocused && SC(),
isSelected: o,
isDisabled: a,
isPressed: v,
@@ -27844,12 +27857,12 @@ function Xse(e, t, n) {
};
}
// node_modules/react-aria/dist/private/menu/utils.mjs
-var EO = /* @__PURE__ */ new WeakMap();
+var AO = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/menu/useMenu.mjs
-function Zse(e, t, n) {
+function Qse(e, t, n) {
let { shouldFocusWrap: r = !0, onKeyDown: i, onKeyUp: a, ...o } = e;
!e["aria-label"] && e["aria-labelledby"];
- let s = zw(e, { labelable: !0 }), { listProps: c } = vO({
+ let s = Uw(e, { labelable: !0 }), { listProps: c } = SO({
...o,
ref: n,
selectionManager: t.selectionManager,
@@ -27858,7 +27871,7 @@ function Zse(e, t, n) {
shouldFocusWrap: r,
linkBehavior: "override"
});
- return EO.set(t, {
+ return AO.set(t, {
onClose: e.onClose,
onAction: e.onAction,
shouldUseVirtualFocus: e.shouldUseVirtualFocus
@@ -27874,15 +27887,15 @@ function Zse(e, t, n) {
}) };
}
// node_modules/react-aria/dist/private/menu/useMenuItem.mjs
-function Qse(e, t, n) {
- let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = EO.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = XS(), M = () => {
+function $se(e, t, n) {
+ let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = AO.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = eC(), M = () => {
if (!w && (k?.props?.onAction ? k.props.onAction() : e.onAction && e.onAction(i), O.onAction)) {
let e = O.onAction;
e(i, k?.value);
}
}, ee = "menuitem";
w || (C.selectionMode === "single" ? ee = "menuitemradio" : C.selectionMode === "multiple" && (ee = "menuitemcheckbox"));
- let N = IC(), te = IC(), P = IC(), ne = {
+ let N = BC(), te = BC(), P = BC(), ne = {
id: r,
"aria-disabled": E || void 0,
role: ee,
@@ -27899,17 +27912,17 @@ function Qse(e, t, n) {
};
if (C.selectionMode !== "none" && !w && (ne["aria-checked"] = D), s) {
let e = Number(k?.index);
- ne["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, ne["aria-setsize"] = gD(t.collection);
+ ne["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, ne["aria-setsize"] = bD(t.collection);
}
let re = (0, F.useRef)(!1), I = (e) => {
f?.(e), re.current = e;
}, ie = (0, F.useRef)(null), ae = (e) => {
e.pointerType !== "keyboard" && (ie.current = { pointerType: e.pointerType }), e.pointerType === "mouse" && (re.current || e.target.click()), u?.(e);
}, oe = (e) => {
- m?.(e), M(), Aae(e, j, k.props.href, k?.props.routerOptions);
+ m?.(e), M(), jae(e, j, k.props.href, k?.props.routerOptions);
let t = ie.current?.pointerType === "keyboard" ? ie.current?.key === "Enter" || C.selectionMode === "none" || C.isLink(i) : C.selectionMode !== "multiple" || C.isLink(i);
t = o ?? a ?? t, A && !w && t && A(), ie.current = null;
- }, { itemProps: se, isFocused: ce } = yO({
+ }, { itemProps: se, isFocused: ce } = CO({
id: r,
selectionManager: C,
key: i,
@@ -27918,27 +27931,27 @@ function Qse(e, t, n) {
allowsDifferentPressOrigin: !0,
linkBehavior: "none",
shouldUseVirtualFocus: O.shouldUseVirtualFocus
- }), { pressProps: le, isPressed: ue } = $w({
+ }), { pressProps: le, isPressed: ue } = rT({
onPressStart: l,
onPress: d,
onPressUp: ae,
onPressChange: I,
onPressEnd: p,
isDisabled: E
- }), { hoverProps: de } = kD({
+ }), { hoverProps: de } = ND({
isDisabled: E,
onHoverStart(e) {
- !vC() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
+ !SC() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
},
onHoverChange: g,
onHoverEnd: _
- }), { keyboardProps: fe } = GC({
+ }), { keyboardProps: fe } = YC({
shortcuts: {
" ": (e) => {
ie.current = {
pointerType: "keyboard",
key: " "
- }, G(e).click(), bC("keyboard");
+ }, G(e).click(), wC("keyboard");
},
Enter: (e) => {
ie.current = {
@@ -27946,8 +27959,8 @@ function Qse(e, t, n) {
key: "Enter"
};
let t = G(e);
- if (t.tagName !== "A") t.click(), bC("keyboard");
- else return bC("keyboard"), {
+ if (t.tagName !== "A") t.click(), wC("keyboard");
+ else return wC("keyboard"), {
shouldPreventDefault: !1,
shouldContinuePropagation: !1
};
@@ -27955,13 +27968,13 @@ function Qse(e, t, n) {
},
onKeyDown: v,
onKeyUp: y
- }), { focusableProps: pe } = YC({
+ }), { focusableProps: pe } = $C({
onBlur: S,
onFocus: b,
onFocusChange: x
- }, n), me = zw(k?.props);
+ }, n), me = Uw(k?.props);
delete me.id;
- let he = $S(k?.props);
+ let he = rC(k?.props);
return {
menuItemProps: {
...ne,
@@ -27976,15 +27989,15 @@ function Qse(e, t, n) {
descriptionProps: { id: te },
keyboardShortcutProps: { id: P },
isFocused: ce,
- isFocusVisible: ce && C.isFocused && vC() && !T,
+ isFocusVisible: ce && C.isFocused && SC() && !T,
isSelected: D,
isPressed: ue,
isDisabled: E
};
}
// node_modules/react-aria/dist/private/menu/useMenuSection.mjs
-function $se(e) {
- let { heading: t, "aria-label": n } = e, r = FC();
+function ece(e) {
+ let { heading: t, "aria-label": n } = e, r = zC();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -27999,15 +28012,15 @@ function $se(e) {
};
}
// node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function ece() {
+function tce() {
return window.ResizeObserver !== void 0;
}
-function DO(e) {
- let { ref: t, box: n, onResize: r } = e, i = Cw(r);
+function jO(e) {
+ let { ref: t, box: n, onResize: r } = e, i = Dw(r);
(0, F.useEffect)(() => {
let e = t?.current;
if (e) {
- if (ece()) {
+ if (tce()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -28022,154 +28035,154 @@ function DO(e) {
}, [t, n]);
}
// node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var OO = {};
-OO = { dismiss: "تجاهل" };
+var MO = {};
+MO = { dismiss: "تجاهل" };
// node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var kO = {};
-kO = { dismiss: "Отхвърляне" };
+var NO = {};
+NO = { dismiss: "Отхвърляне" };
// node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var AO = {};
-AO = { dismiss: "Odstranit" };
+var PO = {};
+PO = { dismiss: "Odstranit" };
// node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var jO = {};
-jO = { dismiss: "Luk" };
+var FO = {};
+FO = { dismiss: "Luk" };
// node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var MO = {};
-MO = { dismiss: "Schließen" };
+var IO = {};
+IO = { dismiss: "Schließen" };
// node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var NO = {};
-NO = { dismiss: "Απόρριψη" };
+var LO = {};
+LO = { dismiss: "Απόρριψη" };
// node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var PO = {};
-PO = { dismiss: "Dismiss" };
+var RO = {};
+RO = { dismiss: "Dismiss" };
// node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var FO = {};
-FO = { dismiss: "Descartar" };
+var zO = {};
+zO = { dismiss: "Descartar" };
// node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var IO = {};
-IO = { dismiss: "Lõpeta" };
+var BO = {};
+BO = { dismiss: "Lõpeta" };
// node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var LO = {};
-LO = { dismiss: "Hylkää" };
+var VO = {};
+VO = { dismiss: "Hylkää" };
// node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var RO = {};
-RO = { dismiss: "Rejeter" };
+var HO = {};
+HO = { dismiss: "Rejeter" };
// node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var zO = {};
-zO = { dismiss: "התעלם" };
+var UO = {};
+UO = { dismiss: "התעלם" };
// node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var BO = {};
-BO = { dismiss: "Odbaci" };
+var WO = {};
+WO = { dismiss: "Odbaci" };
// node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var VO = {};
-VO = { dismiss: "Elutasítás" };
+var GO = {};
+GO = { dismiss: "Elutasítás" };
// node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var HO = {};
-HO = { dismiss: "Ignora" };
+var KO = {};
+KO = { dismiss: "Ignora" };
// node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var UO = {};
-UO = { dismiss: "閉じる" };
+var qO = {};
+qO = { dismiss: "閉じる" };
// node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var WO = {};
-WO = { dismiss: "무시" };
+var JO = {};
+JO = { dismiss: "무시" };
// node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var GO = {};
-GO = { dismiss: "Atmesti" };
+var YO = {};
+YO = { dismiss: "Atmesti" };
// node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var KO = {};
-KO = { dismiss: "Nerādīt" };
+var XO = {};
+XO = { dismiss: "Nerādīt" };
// node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var qO = {};
-qO = { dismiss: "Lukk" };
+var ZO = {};
+ZO = { dismiss: "Lukk" };
// node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var JO = {};
-JO = { dismiss: "Negeren" };
+var QO = {};
+QO = { dismiss: "Negeren" };
// node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var YO = {};
-YO = { dismiss: "Zignoruj" };
+var $O = {};
+$O = { dismiss: "Zignoruj" };
// node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var XO = {};
-XO = { dismiss: "Descartar" };
+var ek = {};
+ek = { dismiss: "Descartar" };
// node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var ZO = {};
-ZO = { dismiss: "Dispensar" };
+var tk = {};
+tk = { dismiss: "Dispensar" };
// node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var QO = {};
-QO = { dismiss: "Revocare" };
+var nk = {};
+nk = { dismiss: "Revocare" };
// node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var $O = {};
-$O = { dismiss: "Пропустить" };
+var rk = {};
+rk = { dismiss: "Пропустить" };
// node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var ek = {};
-ek = { dismiss: "Zrušiť" };
+var ik = {};
+ik = { dismiss: "Zrušiť" };
// node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var tk = {};
-tk = { dismiss: "Opusti" };
+var ak = {};
+ak = { dismiss: "Opusti" };
// node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var nk = {};
-nk = { dismiss: "Odbaci" };
+var ok = {};
+ok = { dismiss: "Odbaci" };
// node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var rk = {};
-rk = { dismiss: "Avvisa" };
+var sk = {};
+sk = { dismiss: "Avvisa" };
// node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var ik = {};
-ik = { dismiss: "Kapat" };
+var ck = {};
+ck = { dismiss: "Kapat" };
// node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var ak = {};
-ak = { dismiss: "Скасувати" };
+var lk = {};
+lk = { dismiss: "Скасувати" };
// node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var ok = {};
-ok = { dismiss: "取消" };
+var uk = {};
+uk = { dismiss: "取消" };
// node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var sk = {};
-sk = { dismiss: "關閉" };
+var dk = {};
+dk = { dismiss: "關閉" };
// node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var ck = {};
-ck = {
- "ar-AE": OO,
- "bg-BG": kO,
- "cs-CZ": AO,
- "da-DK": jO,
- "de-DE": MO,
- "el-GR": NO,
- "en-US": PO,
- "es-ES": FO,
- "et-EE": IO,
- "fi-FI": LO,
- "fr-FR": RO,
- "he-IL": zO,
- "hr-HR": BO,
- "hu-HU": VO,
- "it-IT": HO,
- "ja-JP": UO,
- "ko-KR": WO,
- "lt-LT": GO,
- "lv-LV": KO,
- "nb-NO": qO,
- "nl-NL": JO,
- "pl-PL": YO,
- "pt-BR": XO,
- "pt-PT": ZO,
- "ro-RO": QO,
- "ru-RU": $O,
- "sk-SK": ek,
- "sl-SI": tk,
- "sr-SP": nk,
- "sv-SE": rk,
- "tr-TR": ik,
- "uk-UA": ak,
- "zh-CN": ok,
- "zh-TW": sk
+var fk = {};
+fk = {
+ "ar-AE": MO,
+ "bg-BG": NO,
+ "cs-CZ": PO,
+ "da-DK": FO,
+ "de-DE": IO,
+ "el-GR": LO,
+ "en-US": RO,
+ "es-ES": zO,
+ "et-EE": BO,
+ "fi-FI": VO,
+ "fr-FR": HO,
+ "he-IL": UO,
+ "hr-HR": WO,
+ "hu-HU": GO,
+ "it-IT": KO,
+ "ja-JP": qO,
+ "ko-KR": JO,
+ "lt-LT": YO,
+ "lv-LV": XO,
+ "nb-NO": ZO,
+ "nl-NL": QO,
+ "pl-PL": $O,
+ "pt-BR": ek,
+ "pt-PT": tk,
+ "ro-RO": nk,
+ "ru-RU": rk,
+ "sk-SK": ik,
+ "sl-SI": ak,
+ "sr-SP": ok,
+ "sv-SE": sk,
+ "tr-TR": ck,
+ "uk-UA": lk,
+ "zh-CN": uk,
+ "zh-TW": dk
};
// node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function tce(e) {
+function nce(e) {
return e && e.__esModule ? e.default : e;
}
-function lk(e) {
- let { onDismiss: t, ...n } = e, r = Tw(n, Lw(tce(ck), "@react-aria/overlays").format("dismiss")), i = () => {
+function pk(e) {
+ let { onDismiss: t, ...n } = e, r = kw(n, Vw(nce(fk), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ F.createElement(sE, null, /*#__PURE__*/ F.createElement("button", {
+ return /*#__PURE__*/ F.createElement(dE, null, /*#__PURE__*/ F.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -28180,35 +28193,35 @@ function lk(e) {
}));
}
// node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var uk = [];
-function dk(e, t) {
+var mk = [];
+function hk(e, t) {
let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, F.useRef)(void 0);
(0, F.useEffect)(() => {
- if (i && !uk.includes(t)) return uk.push(t), () => {
- let e = uk.indexOf(t);
- e >= 0 && uk.splice(e, 1);
+ if (i && !mk.includes(t)) return mk.push(t), () => {
+ let e = mk.indexOf(t);
+ e >= 0 && mk.splice(e, 1);
};
}, [i, t]);
let l = () => {
- uk[uk.length - 1] === t && n && n();
+ mk[mk.length - 1] === t && n && n();
}, u = (e) => {
- let n = uk[uk.length - 1];
+ let n = mk[mk.length - 1];
c.current = n, (!s || s(G(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(G(e))) && (uk[uk.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
- }, { keyboardProps: f } = GC({ shortcuts: { Escape: () => {
+ (!s || s(G(e))) && (mk[mk.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ }, { keyboardProps: f } = YC({ shortcuts: { Escape: () => {
if (!o) l();
else return !1;
} } });
- zse({
+ Bse({
ref: t,
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = XT({
+ let { focusWithinProps: p } = eE({
isDisabled: !r,
onBlurWithin: (e) => {
- e.relatedTarget && !Zoe(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
+ e.relatedTarget && !Qoe(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
}
});
return {
@@ -28220,87 +28233,87 @@ function dk(e, t) {
};
}
// node_modules/react-aria/dist/private/utils/runAfterKeyboard.mjs
-var nce = 200, rce = 50, ice = 600, fk = /* @__PURE__ */ new WeakMap(), pk = /* @__PURE__ */ new Set(), mk = /* @__PURE__ */ new Set();
-function ace(e, t) {
- let n = Sw();
- if (e !== n || t.aborted) for (let e of mk) e(n), mk.delete(e);
- if (!e && n && KS() && !t.aborted) window.clearInterval(fk.get(window)), fk.set(window, hk(nce));
+var rce = 200, ice = 50, ace = 600, gk = /* @__PURE__ */ new WeakMap(), _k = /* @__PURE__ */ new Set(), vk = /* @__PURE__ */ new Set();
+function oce(e, t) {
+ let n = Ew();
+ if (e !== n || t.aborted) for (let e of vk) e(n), vk.delete(e);
+ if (!e && n && XS() && !t.aborted) window.clearInterval(gk.get(window)), gk.set(window, yk(rce));
else {
- if (e !== n || t.aborted) for (let e of pk) e(n), pk.delete(e);
- (mk.size + pk.size <= 0 || t.aborted) && (window.clearInterval(fk.get(window)), fk.delete(window));
+ if (e !== n || t.aborted) for (let e of _k) e(n), _k.delete(e);
+ (vk.size + _k.size <= 0 || t.aborted) && (window.clearInterval(gk.get(window)), gk.delete(window));
}
}
-function hk(e = ice) {
- return window.setInterval(ace, rce, Sw(), AbortSignal.timeout(e));
+function yk(e = ace) {
+ return window.setInterval(oce, ice, Ew(), AbortSignal.timeout(e));
}
-function gk(e) {
- if (!yw()) return e(!1), () => {};
+function bk(e) {
+ if (!Cw()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = bw(document.hasFocus() ? DS() : null);
- if (Sw() === t || Sw() && !t) return e(t);
- mk.add(e), fk.has(window) || fk.set(window, hk());
+ let t = ww(document.hasFocus() ? jS() : null);
+ if (Ew() === t || Ew() && !t) return e(t);
+ vk.add(e), gk.has(window) || gk.set(window, yk());
});
});
return () => {
- window.cancelAnimationFrame(t), mk.delete(e);
+ window.cancelAnimationFrame(t), vk.delete(e);
};
}
-function oce(e) {
- if (!yw()) return e(!1), () => {};
+function sce(e) {
+ if (!Cw()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = bw(document.hasFocus() ? DS() : null);
- if (Sw() === t) return e(t);
- pk.add(e), fk.has(window) || fk.set(window, hk());
+ let t = ww(document.hasFocus() ? jS() : null);
+ if (Ew() === t) return e(t);
+ _k.add(e), gk.has(window) || gk.set(window, yk());
});
});
return () => {
- window.cancelAnimationFrame(t), pk.delete(e);
+ window.cancelAnimationFrame(t), _k.delete(e);
};
}
// node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var _k = typeof document < "u" && window.visualViewport, vk = 0, yk;
-function bk(e = {}) {
+var xk = typeof document < "u" && window.visualViewport, Sk = 0, Ck;
+function wk(e = {}) {
let { isDisabled: t, UNSTABLE_overrideFocus: n } = e;
- FS(() => {
- if (!t) return vk++, vk === 1 && (yk = GS() && KS() ? cce() : sce(n)), () => {
- vk--, vk === 0 && yk();
+ zS(() => {
+ if (!t) return Sk++, Sk === 1 && (Ck = YS() && XS() ? lce() : cce(n)), () => {
+ Sk--, Sk === 0 && Ck();
};
}, [t, n]);
}
-function sce(e) {
+function cce(e) {
let t = window.innerWidth - document.documentElement.clientWidth;
- return jC(t > 0 && ("scrollbarGutter" in document.documentElement.style ? wS(document.documentElement, "scrollbar-gutter", "stable") : wS(document.documentElement, "padding-right", `${t}px`)), wS(document.documentElement, "overflow", "hidden"), e && Sk(), e && yw() && xk());
+ return FC(t > 0 && ("scrollbarGutter" in document.documentElement.style ? OS(document.documentElement, "scrollbar-gutter", "stable") : OS(document.documentElement, "padding-right", `${t}px`)), OS(document.documentElement, "overflow", "hidden"), e && Ek(), e && Cw() && Tk());
}
-function cce() {
- let e = wS(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
+function lce() {
+ let e = OS(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
let r = G(e);
- t = OT(r, !0) ? r : kT(r, !0), n = !1;
+ t = MT(r, !0) ? r : NT(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 = Kw();
+ }, i = document.createElement("style"), a = Xw();
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 = Sk(), c = jC(CS(document, "touchstart", r, {
+ }, s = Ek(), c = FC(DS(document, "touchstart", r, {
passive: !1,
capture: !0
- }), CS(document, "touchmove", o, {
+ }), DS(document, "touchmove", o, {
passive: !1,
capture: !0
- }), xk());
+ }), Tk());
return () => {
e(), c(), i.remove(), s();
};
}
-function xk() {
- return CS(document, "blur", (e) => {
+function Tk() {
+ return DS(document, "blur", (e) => {
let t = G(e), n = e.relatedTarget;
- n && bw(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ n && ww(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, !0);
}
-function Sk() {
+function Ek() {
let e = HTMLElement.prototype.focus;
return Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -28311,9 +28324,9 @@ function Sk() {
preventScroll: !0
}), !t || !t.preventScroll) {
let e = () => {
- DS() === this && lce(this);
+ jS() === this && uce(this);
};
- gk((t) => t ? e() : oce(() => e()));
+ bk((t) => t ? e() : sce(() => e()));
}
}
}), () => {
@@ -28324,15 +28337,15 @@ function Sk() {
});
};
}
-function lce(e) {
+function uce(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t && n.isConnected;) {
- let e = kT(n);
+ let e = NT(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;
- _k && (n = Math.min(n, _k.offsetTop + _k.height));
+ xk && (n = Math.min(n, xk.offsetTop + xk.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)),
@@ -28344,19 +28357,19 @@ function lce(e) {
}
}
// node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function uce(e, t, n) {
- let { overlayProps: r, underlayProps: i } = dk({
+function dce(e, t, n) {
+ let { overlayProps: r, underlayProps: i } = hk({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- bk({
+ wk({
isDisabled: !t.isOpen,
UNSTABLE_overrideFocus: e.UNSTABLE_overrideFocus
- }), wD();
+ }), OD();
let { isEntering: a } = e;
return (0, F.useEffect)(() => {
- if (t.isOpen && n.current) return a ? mE(n.current) : pE([n.current], { shouldUseInert: !0 });
+ if (t.isOpen && n.current) return a ? vE(n.current) : _E([n.current], { shouldUseInert: !0 });
}, [
t.isOpen,
a,
@@ -28367,33 +28380,33 @@ function uce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var Ck = {
+var Dk = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, wk = {
+}, Ok = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, dce = {
+}, fce = {
top: "left",
left: "top"
-}, Tk = {
+}, kk = {
top: "height",
left: "width"
-}, Ek = {
+}, Ak = {
width: "totalWidth",
height: "totalHeight"
-}, Dk = {}, fce = () => typeof document < "u" ? window.visualViewport : null;
-function Ok(e, t) {
+}, jk = {}, pce = () => typeof document < "u" ? window.visualViewport : null;
+function Mk(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} = Pk(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
- return KS() && (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} = Rk(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ return XS() && (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,
@@ -28403,7 +28416,7 @@ function Ok(e, t) {
left: s
};
}
-function pce(e) {
+function mce(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -28411,11 +28424,11 @@ function pce(e) {
height: e.scrollHeight
};
}
-function kk(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[Tk[e]], l = o[e] + r.scroll[Ck[e]] + a, u = o[e] + r.scroll[Ck[e]] + c - a, d = t - s + r.scroll[Ck[e]] + o[e] - r[Ck[e]], f = t - s + n + r.scroll[Ck[e]] + o[e] - r[Ck[e]];
+function Nk(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[kk[e]], l = o[e] + r.scroll[Dk[e]] + a, u = o[e] + r.scroll[Dk[e]] + c - a, d = t - s + r.scroll[Dk[e]] + o[e] - r[Dk[e]], f = t - s + n + r.scroll[Dk[e]] + o[e] - r[Dk[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function mce(e) {
+function hce(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -28424,55 +28437,55 @@ function mce(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function Ak(e) {
- if (Dk[e]) return Dk[e];
- let [t, n] = e.split(" "), r = Ck[t] || "right", i = dce[r];
- Ck[n] || (n = "center");
- let a = Tk[r], o = Tk[i];
- return Dk[e] = {
+function Pk(e) {
+ if (jk[e]) return jk[e];
+ let [t, n] = e.split(" "), r = Dk[t] || "right", i = fce[r];
+ Dk[n] || (n = "center");
+ let a = kk[r], o = kk[i];
+ return jk[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, Dk[e];
+ }, jk[e];
}
-function jk(e, t, n, r, i, a, o, s, c, l, u) {
+function Fk(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] = $T(_[m], v, y), d === p) {
- let t = s ? u[h] : u[Ek[h]];
- _[wk[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = rE(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[Ak[h]];
+ _[Ok[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function hce(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[Ek.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function gce(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[Ak.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 Mk(e, t, n, r, i, a, o, s) {
+function Ik(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[wk[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[wk[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[Ok[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[Ok[l]] - i);
}
-function gce(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = Ak(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = jk(t, s, n, v, u, d, l, f, m, h, c), T = u, E = Mk(s, l, t, i, a + u, v, c, g);
+function _ce(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = Pk(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Fk(t, s, n, v, u, d, l, f, m, h, c), T = u, E = Ik(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = Ak(`${wk[S]} ${C}`), r = jk(t, s, n, e, u, d, l, f, m, h, c);
- Mk(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = Pk(`${Ok[S]} ${C}`), r = Fk(t, s, n, e, u, d, l, f, m, h, c);
+ Ik(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 = kk(b, w[b], n[x], s, c, a, l);
+ let O = Nk(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = hce(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = jk(t, s, n, v, T, d, l, f, m, h, c), O = kk(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[Ck[b]], M = j + .5 * t[x], ee = m / 2 + h, N = Ck[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - N - m / 2 - h;
- A[b] = $T($T(M, t[b] + m / 2 - (w[b] + i[Ck[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Ck[b]])), ee, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
+ let k = gce(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = Fk(t, s, n, v, T, d, l, f, m, h, c), O = Nk(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[Dk[b]], M = j + .5 * t[x], ee = m / 2 + h, N = Dk[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - N - m / 2 - h;
+ A[b] = rE(rE(M, t[b] + m / 2 - (w[b] + i[Dk[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Dk[b]])), ee, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
let P = S === "left" || S === "top" ? n[y] : 0, ne = {
x: S === "top" || S === "bottom" ? j : P,
y: S === "left" || S === "right" ? j : P
@@ -28486,17 +28499,17 @@ function gce(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
triggerAnchorPoint: ne
};
}
-function _ce(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 = fce(), h = r instanceof HTMLElement ? vce(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Pk(n, !1, p) : Fk(n, h, !1, p);
+function vce(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 = pce(), h = r instanceof HTMLElement ? bce(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Rk(n, !1, p) : yce(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 = Pk(r, !0), x = mce(r);
+ let b = Rk(r, !0), x = hce(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = pce(i), C = Ok(s, m), w = Ok(h, m), T;
+ let S = mce(i), C = Mk(s, m), w = Mk(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = Nk(h, !1);
+ let e = Lk(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -28508,11 +28521,11 @@ function _ce(e) {
left: 0,
width: 0,
height: 0
- } : Fk(s, h, !1);
- let E = ES(s, h);
- return gce(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ } : yce(s, h, !1);
+ let E = AS(s, h);
+ return _ce(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function Nk(e, t) {
+function Lk(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,
@@ -28521,8 +28534,8 @@ function Nk(e, t) {
height: a
};
}
-function Pk(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || Nk(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function Rk(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || Lk(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -28530,29 +28543,29 @@ function Pk(e, t, n) {
height: o
};
}
-function Fk(e, t, n, r) {
+function yce(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || Nk(e, n);
+ if (i.position === "fixed") a = r || Lk(e, n);
else {
- a = Pk(e, n, r);
- let i = Pk(t, n), o = window.getComputedStyle(t);
+ a = Rk(e, n, r);
+ let i = Rk(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 vce(e) {
+function bce(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !Ik(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !Ik(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !xce(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !xce(t);) t = t.parentElement;
return t || document.documentElement;
}
-function Ik(e) {
+function xce(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";
}
// node_modules/react-aria/dist/private/overlays/useOverlayPosition.mjs
-var Lk = typeof document < "u" ? window.visualViewport : null;
-function yce(e) {
- let { direction: t } = jw(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, F.useState)(null), x = [
+var zk = typeof document < "u" ? window.visualViewport : null;
+function Sce(e) {
+ let { direction: t } = Fw(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, F.useState)(null), x = [
p,
s,
i.current,
@@ -28569,15 +28582,15 @@ function yce(e) {
g,
_,
n
- ], S = (0, F.useRef)(Lk?.scale);
+ ], S = (0, F.useRef)(zk?.scale);
(0, F.useEffect)(() => {
- m && (S.current = Lk?.scale);
+ m && (S.current = zk?.scale);
}, [m]);
let C = (0, F.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || Lk?.scale !== S.current) return;
+ if (p === !1 || !m || !i.current || !r.current || !u || zk?.scale !== S.current) return;
let e = null;
- if (o.current && kS(o.current)) {
- let t = DS()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
+ if (o.current && NS(o.current)) {
+ let t = jS()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
e = {
type: "top",
offset: (t?.top ?? 0) - n.top
@@ -28585,8 +28598,8 @@ function yce(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 = _ce({
- placement: xce(s, t),
+ let y = vce({
+ placement: wce(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -28596,28 +28609,28 @@ function yce(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? Nk(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? Lk(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 = DS();
+ let x = jS();
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);
- FS(C, x), bce(C), DO({
+ zS(C, x), Cce(C), jO({
ref: i,
onResize: C
- }), DO({
+ }), jO({
ref: r,
onResize: C
});
let w = (0, F.useRef)(!1);
- FS(() => {
+ zS(() => {
let e, t = () => {
w.current = !0, clearTimeout(e), e = setTimeout(() => {
w.current = !1;
@@ -28625,16 +28638,16 @@ function yce(e) {
}, n = () => {
w.current && t();
};
- Lk?.addEventListener("resize", t), Lk?.addEventListener("scroll", n);
- let r = CS(OS(window), "scroll", n);
+ zk?.addEventListener("resize", t), zk?.addEventListener("scroll", n);
+ let r = DS(MS(window), "scroll", n);
return () => {
- Lk?.removeEventListener("resize", t), Lk?.removeEventListener("scroll", n), r();
+ zk?.removeEventListener("resize", t), zk?.removeEventListener("scroll", n), r();
};
}, [C]);
let T = (0, F.useCallback)(() => {
w.current || h?.();
}, [h, w]);
- return kse({
+ return Ase({
triggerRef: r,
isOpen: m,
onClose: h && T
@@ -28660,24 +28673,24 @@ function yce(e) {
updatePosition: C
};
}
-function bce(e) {
- FS(() => (window.addEventListener("resize", e, !1), () => {
+function Cce(e) {
+ zS(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function xce(e, t) {
+function wce(e, t) {
return t === "rtl" ? e.replace("start", "right").replace("end", "left") : e.replace("start", "left").replace("end", "right");
}
// node_modules/react-aria/dist/private/overlays/usePopover.mjs
-function Sce(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 } = dk({
+function Tce(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 } = hk({
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 } = yce({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Sce({
...c,
targetRef: n,
overlayRef: r,
@@ -28685,15 +28698,15 @@ function Sce(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)
});
- bk({ isDisabled: a || !t.isOpen }), (0, F.useEffect)(() => {
- if (t.isOpen && r.current) return a ? mE(i?.current ?? r.current) : pE([i?.current ?? r.current], { shouldUseInert: !0 });
+ wk({ isDisabled: a || !t.isOpen }), (0, F.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? vE(i?.current ?? r.current) : _E([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = XT(e);
+ let { focusWithinProps: g } = eE(e);
return {
popoverProps: K(u, f, g),
arrowProps: p,
@@ -28703,12 +28716,12 @@ function Sce(e, t) {
};
}
// node_modules/react-aria/dist/private/radio/utils.mjs
-var Cce = /* @__PURE__ */ new WeakMap();
+var Ece = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/radio/useRadio.mjs
-function wce(e, t, n) {
+function Dce(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: _ } = $w({
+ }, { pressProps: g, isPressed: _ } = rT({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -28716,7 +28729,7 @@ function wce(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: v, isPressed: y } = $w({
+ }), { pressProps: v, isPressed: y } = rT({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -28726,11 +28739,11 @@ function wce(e, t, n) {
onPress(e) {
u?.(e), t.setSelectedValue(r), n.current?.focus();
}
- }), { focusableProps: b } = YC(K(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = K(g, b), S = zw(e, { labelable: !0 }), C = -1;
+ }), { focusableProps: b } = $C(K(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = K(g, b), S = Uw(e, { labelable: !0 }), C = -1;
t.selectedValue == null ? (t.lastFocusedValue === r || t.lastFocusedValue == null) && (C = 0) : t.selectedValue === r && (C = 0), p && (C = void 0);
- let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = Cce.get(t);
- FT(n, t.defaultSelectedValue, t.setSelectedValue), IT({ validationBehavior: O }, t, n);
- let k = LT();
+ let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = Ece.get(t);
+ zT(n, t.defaultSelectedValue, t.setSelectedValue), BT({ validationBehavior: O }, t, n);
+ let k = VT();
return {
labelProps: K(v, (0, F.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
@@ -28761,13 +28774,13 @@ function wce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function Tce(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = jw(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = YT({
+function Oce(e, t) {
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Fw(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = $T({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = zw(e, { labelable: !0 }), { focusWithinProps: v } = XT({
+ }), _ = Uw(e, { labelable: !0 }), { focusWithinProps: v } = eE({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -28775,13 +28788,13 @@ function Tce(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = xT(n.currentTarget, {
+ let r = TT(n.currentTarget, {
from: G(n),
- accept: (e) => e instanceof bS(e).HTMLInputElement && e.type === "radio"
+ accept: (e) => e instanceof wS(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 } = GC({
+ let { keyboardProps: b } = YC({
shortcuts: {
ArrowRight: (e) => y(l === "rtl" && s !== "vertical" ? "prev" : "next", e),
ArrowLeft: (e) => y(l === "rtl" && s !== "vertical" ? "next" : "prev", e),
@@ -28789,8 +28802,8 @@ function Tce(e, t) {
ArrowUp: (e) => y("prev", e)
},
allowRepeats: !0
- }), x = FC(n);
- return Cce.set(t, {
+ }), x = zC(n);
+ return Ece.set(t, {
name: x,
form: r,
descriptionId: h.id,
@@ -28818,21 +28831,21 @@ function Tce(e, t) {
};
}
// node_modules/react-aria/dist/private/select/useSelect.mjs
-var Rk = /* @__PURE__ */ new WeakMap();
-function Ece(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = vD({
+var Bk = /* @__PURE__ */ new WeakMap();
+function kce(e, t, n) {
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = SD({
usage: "search",
sensitivity: "base"
- }), u = (0, F.useMemo)(() => r || new bE(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, F.useMemo)(() => r || new wE(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = iD({
+ ]), { menuTriggerProps: d, menuProps: f } = cD({
isDisabled: i,
type: "listbox"
- }, t, n), { keyboardProps: p } = GC({
+ }, t, n), { keyboardProps: p } = YC({
shortcuts: {
ArrowLeft: () => {
if (t.selectionManager.selectionMode === "multiple") return !1;
@@ -28848,21 +28861,21 @@ function Ece(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = oD({
+ }), { typeSelectProps: m } = uD({
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 } = YT({
+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = $T({
...e,
labelElementType: "span",
isInvalid: h,
errorMessage: e.errorMessage || g
});
t.selectionManager.selectionMode === "multiple" && (m = {});
- let S = zw(e, { labelable: !0 }), C = K(m, d, y), w = FC();
- return Rk.set(t, {
+ let S = Uw(e, { labelable: !0 }), C = K(m, d, y), w = zC();
+ return Bk.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -28872,13 +28885,13 @@ function Ece(e, t, n) {
labelProps: {
...v,
onClick: () => {
- e.isDisabled || (n.current?.focus(), bC("keyboard"));
+ e.isDisabled || (n.current?.focus(), wC("keyboard"));
}
},
triggerProps: K(S, {
...C,
isDisabled: i,
- onKeyDown: jC(C.onKeyDown, p.onKeyDown),
+ onKeyDown: FC(C.onKeyDown, p.onKeyDown),
onKeyUp: p.onKeyUp,
"aria-labelledby": [
w,
@@ -28902,7 +28915,7 @@ function Ece(e, t, n) {
disallowEmptySelection: !0,
linkBehavior: "selection",
onBlur: (n) => {
- ES(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
+ AS(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(" ")
},
@@ -28922,13 +28935,13 @@ function Ece(e, t, n) {
};
}
// node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function Dce(e, t, n) {
- let r = Rk.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = oE({ style: {
+function Ace(e, t, n) {
+ let r = Bk.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = uE({ style: {
position: "fixed",
top: 0,
left: 0
} });
- FT(e.selectRef, t.defaultValue, t.setValue), IT({
+ zT(e.selectRef, t.defaultValue, t.setValue), BT({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
@@ -28958,8 +28971,8 @@ function Dce(e, t, n) {
}
};
}
-function Oce(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, F.useRef)(null), c = (0, F.useRef)(null), { containerProps: l, selectProps: u } = Dce({
+function jce(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, F.useRef)(null), c = (0, F.useRef)(null), { containerProps: l, selectProps: u } = Ace({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -28983,7 +28996,7 @@ function Oce(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = Rk.get(t) || {};
+ let { validationBehavior: e } = Bk.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -29013,8 +29026,8 @@ function Oce(e) {
return null;
}
// node_modules/react-aria/dist/private/separator/useSeparator.mjs
-function kce(e) {
- let t = zw(e, { labelable: !0 }), n;
+function Mce(e) {
+ let t = Uw(e, { labelable: !0 }), n;
return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {
...t,
role: "separator",
@@ -29022,8 +29035,8 @@ function kce(e) {
} };
}
// node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function Ace(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = KT(e, t, n);
+function Nce(e, t, n) {
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = XT(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -29036,10 +29049,10 @@ function Ace(e, t, n) {
};
}
// node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var zk = class {
+var Vk = 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 jce(e.layout) : new yE(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new Pce(e.layout) : new CE(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -29075,7 +29088,7 @@ var zk = class {
let n = this.collection.getItem(e);
if (!n) return null;
let r = 0;
- for (let e of lD(n, this.collection)) {
+ for (let e of pD(n, this.collection)) {
if (e.colSpan && e.colSpan + r > t || (e.colSpan && (r = r + e.colSpan - 1), r === t)) return e.key ?? null;
r++;
}
@@ -29109,13 +29122,13 @@ var zk = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = lD(t, this.collection);
- return (this.direction === "rtl" ? fD(e)?.key : uD(e)?.key) ?? null;
+ let e = pD(t, this.collection);
+ return (this.direction === "rtl" ? gD(e)?.key : mD(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = lD(n, this.collection), i = (this.direction === "rtl" ? dD(r, t.index - 1) : dD(r, t.index + 1)) ?? null;
+ let r = pD(n, this.collection), i = (this.direction === "rtl" ? hD(r, t.index - 1) : hD(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;
@@ -29124,13 +29137,13 @@ var zk = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = lD(t, this.collection);
- return (this.direction === "rtl" ? uD(e)?.key : fD(e)?.key) ?? null;
+ let e = pD(t, this.collection);
+ return (this.direction === "rtl" ? mD(e)?.key : gD(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = lD(n, this.collection), i = (this.direction === "rtl" ? dD(r, t.index + 1) : dD(r, t.index - 1)) ?? null;
+ let r = pD(n, this.collection), i = (this.direction === "rtl" ? hD(r, t.index + 1) : hD(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;
@@ -29141,13 +29154,13 @@ var zk = 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 ? uD(lD(e, this.collection))?.key ?? null : null;
+ return e ? mD(pD(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 = uD(lD(e, this.collection))?.key ?? null;
+ n = mD(pD(e, this.collection))?.key ?? null;
}
return n;
}
@@ -29157,13 +29170,13 @@ var zk = 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 ? fD(lD(e, this.collection))?.key ?? null : null;
+ return e ? gD(pD(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 = fD(lD(e, this.collection))?.key ?? null;
+ n = gD(pD(e, this.collection))?.key ?? null;
}
return n;
}
@@ -29199,13 +29212,13 @@ var zk = 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" ? uD(lD(t, this.collection))?.key ?? null : t.key;
+ if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? mD(pD(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;
}
-}, jce = class {
+}, Pce = class {
constructor(e) {
this.layout = e;
}
@@ -29218,15 +29231,15 @@ var zk = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, Bk = /* @__PURE__ */ new WeakMap();
+}, Hk = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/grid/useGrid.mjs
-function Mce(e, t, n) {
+function Fce(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 = vD({
+ let h = SD({
usage: "search",
sensitivity: "base"
- }), { direction: g } = jw(), _ = t.selectionManager.disabledBehavior, v = (0, F.useMemo)(() => a || new zk({
+ }), { direction: g } = Fw(), _ = t.selectionManager.disabledBehavior, v = (0, F.useMemo)(() => a || new Vk({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -29243,7 +29256,7 @@ function Mce(e, t, n) {
g,
h,
o
- ]), { collectionProps: y } = cD({
+ ]), { collectionProps: y } = fD({
ref: n,
selectionManager: m,
keyboardDelegate: v,
@@ -29251,8 +29264,8 @@ function Mce(e, t, n) {
scrollRef: s,
disallowTypeAhead: i,
escapeKeyBehavior: d
- }), b = FC(e.id);
- Bk.set(t, {
+ }), b = zC(e.id);
+ Hk.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -29261,42 +29274,42 @@ function Mce(e, t, n) {
shouldSelectOnPressUp: f,
keyboardNavigationBehavior: p
});
- let x = _O({
+ let x = xO({
selectionManager: m,
hasItemActions: !!(l || u)
- }), S = zw(e, { labelable: !0 }), C = (0, F.useCallback)((e) => {
- m.isFocused ? ES(e.currentTarget, G(e)) || m.setFocused(!1) : ES(e.currentTarget, G(e)) && m.setFocused(!0);
+ }), S = Uw(e, { labelable: !0 }), C = (0, F.useCallback)((e) => {
+ m.isFocused ? AS(e.currentTarget, G(e)) || m.setFocused(!1) : AS(e.currentTarget, G(e)) && m.setFocused(!0);
}, [m]), w = (0, F.useMemo)(() => ({
onBlur: y.onBlur,
onFocus: C
- }), [C, y.onBlur]), T = gO(n, { isDisabled: t.collection.size !== 0 }), E = K(S, {
+ }), [C, y.onBlur]), T = bO(n, { isDisabled: t.collection.size !== 0 }), E = K(S, {
role: "grid",
id: b,
"aria-multiselectable": m.selectionMode === "multiple" ? "true" : void 0
}, t.isKeyboardNavigationDisabled ? w : y, t.collection.size === 0 && { tabIndex: T ? -1 : 0 } || void 0, x);
- return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), mO({ getRowText: c }, t), { gridProps: E };
+ return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), vO({ getRowText: c }, t), { gridProps: E };
}
// node_modules/react-aria/dist/private/table/utils.mjs
-var Vk = /* @__PURE__ */ new WeakMap();
-function Hk(e) {
+var Uk = /* @__PURE__ */ new WeakMap();
+function Wk(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function Uk(e, t) {
- let n = Vk.get(e);
+function Gk(e, t) {
+ let n = Uk.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${Hk(t)}`;
+ return `${n}-${Wk(t)}`;
}
-function Wk(e, t, n) {
- let r = Vk.get(e);
+function Kk(e, t, n) {
+ let r = Uk.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${Hk(t)}-${Hk(n)}`;
+ return `${r}-${Wk(t)}-${Wk(n)}`;
}
-function Gk(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => Wk(e, t, n)).join(" ");
+function qk(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => Kk(e, t, n)).join(" ");
}
// node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var Kk = {};
-Kk = {
+var Jk = {};
+Jk = {
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: "طي",
@@ -29310,8 +29323,8 @@ Kk = {
sortable: "عمود قابل للترتيب"
};
// node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var qk = {};
-qk = {
+var Yk = {};
+Yk = {
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: "Свиване",
@@ -29325,8 +29338,8 @@ qk = {
sortable: "сортираща колона"
};
// node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var Jk = {};
-Jk = {
+var Xk = {};
+Xk = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -29340,8 +29353,8 @@ Jk = {
sortable: "sloupec s možností řazení"
};
// node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var Yk = {};
-Yk = {
+var Zk = {};
+Zk = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -29355,8 +29368,8 @@ Yk = {
sortable: "sorterbar kolonne"
};
// node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var Xk = {};
-Xk = {
+var Qk = {};
+Qk = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -29370,8 +29383,8 @@ Xk = {
sortable: "sortierbare Spalte"
};
// node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var Zk = {};
-Zk = {
+var $k = {};
+$k = {
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: "Σύμπτυξη",
@@ -29385,8 +29398,8 @@ Zk = {
sortable: "Στήλη διαλογής"
};
// node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var Qk = {};
-Qk = {
+var eA = {};
+eA = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -29400,8 +29413,8 @@ Qk = {
collapse: "Collapse"
};
// node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var $k = {};
-$k = {
+var tA = {};
+tA = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -29415,8 +29428,8 @@ $k = {
sortable: "columna ordenable"
};
// node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var eA = {};
-eA = {
+var nA = {};
+nA = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -29430,8 +29443,8 @@ eA = {
sortable: "sorditav veerg"
};
// node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var tA = {};
-tA = {
+var rA = {};
+rA = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -29445,8 +29458,8 @@ tA = {
sortable: "lajiteltava sarake"
};
// node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var nA = {};
-nA = {
+var iA = {};
+iA = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -29460,8 +29473,8 @@ nA = {
sortable: "colonne triable"
};
// node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var rA = {};
-rA = {
+var aA = {};
+aA = {
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: "כווץ",
@@ -29475,8 +29488,8 @@ rA = {
sortable: "עמודה שניתן למיין"
};
// node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var iA = {};
-iA = {
+var oA = {};
+oA = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -29490,8 +29503,8 @@ iA = {
sortable: "stupac koji se može razvrstati"
};
// node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var aA = {};
-aA = {
+var sA = {};
+sA = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -29505,8 +29518,8 @@ aA = {
sortable: "rendezendő oszlop"
};
// node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var oA = {};
-oA = {
+var cA = {};
+cA = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -29520,8 +29533,8 @@ oA = {
sortable: "colonna ordinabile"
};
// node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var sA = {};
-sA = {
+var lA = {};
+lA = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -29535,8 +29548,8 @@ sA = {
sortable: "並べ替え可能な列"
};
// node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var cA = {};
-cA = {
+var uA = {};
+uA = {
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: "접기",
@@ -29550,8 +29563,8 @@ cA = {
sortable: "정렬 가능한 열"
};
// node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var lA = {};
-lA = {
+var dA = {};
+dA = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -29565,8 +29578,8 @@ lA = {
sortable: "rikiuojamas stulpelis"
};
// node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var uA = {};
-uA = {
+var fA = {};
+fA = {
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",
@@ -29580,8 +29593,8 @@ uA = {
sortable: "kārtojamā kolonna"
};
// node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var dA = {};
-dA = {
+var pA = {};
+pA = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -29595,8 +29608,8 @@ dA = {
sortable: "kolonne som kan sorteres"
};
// node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var fA = {};
-fA = {
+var mA = {};
+mA = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -29610,8 +29623,8 @@ fA = {
sortable: "sorteerbare kolom"
};
// node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var pA = {};
-pA = {
+var hA = {};
+hA = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -29625,8 +29638,8 @@ pA = {
sortable: "kolumna z możliwością sortowania"
};
// node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var mA = {};
-mA = {
+var gA = {};
+gA = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -29640,8 +29653,8 @@ mA = {
sortable: "coluna classificável"
};
// node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var hA = {};
-hA = {
+var _A = {};
+_A = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -29655,8 +29668,8 @@ hA = {
sortable: "Coluna ordenável"
};
// node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var gA = {};
-gA = {
+var vA = {};
+vA = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -29670,8 +29683,8 @@ gA = {
sortable: "coloană sortabilă"
};
// node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var _A = {};
-_A = {
+var yA = {};
+yA = {
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: "Свернуть",
@@ -29685,8 +29698,8 @@ _A = {
sortable: "сортируемый столбец"
};
// node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var vA = {};
-vA = {
+var bA = {};
+bA = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -29700,8 +29713,8 @@ vA = {
sortable: "zoraditeľný stĺpec"
};
// node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var yA = {};
-yA = {
+var xA = {};
+xA = {
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",
@@ -29715,8 +29728,8 @@ yA = {
sortable: "razvrstljivi stolpec"
};
// node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var bA = {};
-bA = {
+var SA = {};
+SA = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -29730,8 +29743,8 @@ bA = {
sortable: "kolona koja se može sortirati"
};
// node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var xA = {};
-xA = {
+var CA = {};
+CA = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -29745,8 +29758,8 @@ xA = {
sortable: "sorterbar kolumn"
};
// node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var SA = {};
-SA = {
+var wA = {};
+wA = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -29760,8 +29773,8 @@ SA = {
sortable: "Sıralanabilir sütun"
};
// node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var CA = {};
-CA = {
+var TA = {};
+TA = {
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: "Згорнути",
@@ -29775,8 +29788,8 @@ CA = {
sortable: "сортувальний стовпець"
};
// node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var wA = {};
-wA = {
+var EA = {};
+EA = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -29790,8 +29803,8 @@ wA = {
sortable: "可排序的列"
};
// node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var TA = {};
-TA = {
+var DA = {};
+DA = {
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: "收合",
@@ -29805,45 +29818,45 @@ TA = {
sortable: "可排序的欄"
};
// node_modules/react-aria/dist/private/table/intlStrings.mjs
-var EA = {};
-EA = {
- "ar-AE": Kk,
- "bg-BG": qk,
- "cs-CZ": Jk,
- "da-DK": Yk,
- "de-DE": Xk,
- "el-GR": Zk,
- "en-US": Qk,
- "es-ES": $k,
- "et-EE": eA,
- "fi-FI": tA,
- "fr-FR": nA,
- "he-IL": rA,
- "hr-HR": iA,
- "hu-HU": aA,
- "it-IT": oA,
- "ja-JP": sA,
- "ko-KR": cA,
- "lt-LT": lA,
- "lv-LV": uA,
- "nb-NO": dA,
- "nl-NL": fA,
- "pl-PL": pA,
- "pt-BR": mA,
- "pt-PT": hA,
- "ro-RO": gA,
- "ru-RU": _A,
- "sk-SK": vA,
- "sl-SI": yA,
- "sr-SP": bA,
- "sv-SE": xA,
- "tr-TR": SA,
- "uk-UA": CA,
- "zh-CN": wA,
- "zh-TW": TA
+var OA = {};
+OA = {
+ "ar-AE": Jk,
+ "bg-BG": Yk,
+ "cs-CZ": Xk,
+ "da-DK": Zk,
+ "de-DE": Qk,
+ "el-GR": $k,
+ "en-US": eA,
+ "es-ES": tA,
+ "et-EE": nA,
+ "fi-FI": rA,
+ "fr-FR": iA,
+ "he-IL": aA,
+ "hr-HR": oA,
+ "hu-HU": sA,
+ "it-IT": cA,
+ "ja-JP": lA,
+ "ko-KR": uA,
+ "lt-LT": dA,
+ "lv-LV": fA,
+ "nb-NO": pA,
+ "nl-NL": mA,
+ "pl-PL": hA,
+ "pt-BR": gA,
+ "pt-PT": _A,
+ "ro-RO": vA,
+ "ru-RU": yA,
+ "sk-SK": bA,
+ "sl-SI": xA,
+ "sr-SP": SA,
+ "sv-SE": CA,
+ "tr-TR": wA,
+ "uk-UA": TA,
+ "zh-CN": EA,
+ "zh-TW": DA
};
// node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var Nce = class extends zk {
+var Ice = class extends Vk {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -29851,7 +29864,7 @@ var Nce = class extends zk {
let n = this.collection.getItem(e);
if (!n) return null;
if (n.type === "column") {
- let e = uD(lD(n, this.collection));
+ let e = mD(pD(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);
@@ -29872,13 +29885,13 @@ var Nce = class extends zk {
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 lD(n, this.collection)) if (e.type === "column") return e.key;
+ for (let e of pD(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 = [...lD(n, this.collection)];
+ let n = this.collection.headerRows[e.level], r = [...pD(n, this.collection)];
for (let e = r.length - 1; e >= 0; e--) {
let t = r[e];
if (t.type === "column") return t.key;
@@ -29907,7 +29920,7 @@ var Nce = class extends zk {
let t = o.textValue.slice(0, e.length);
if (this.collator.compare(t, e) === 0) return o.key;
}
- for (let r of lD(o, this.collection)) {
+ for (let r of pD(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);
@@ -29920,14 +29933,14 @@ var Nce = class extends zk {
}
};
// node_modules/react-aria/dist/private/table/useTable.mjs
-function Pce(e) {
+function Lce(e) {
return e && e.__esModule ? e.default : e;
}
-function Fce(e, t, n) {
- let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = vD({
+function Rce(e, t, n) {
+ let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = SD({
usage: "search",
sensitivity: "base"
- }), { direction: c } = jw(), l = t.selectionManager.disabledBehavior, u = (0, F.useMemo)(() => r || new Nce({
+ }), { direction: c } = Fw(), l = t.selectionManager.disabledBehavior, u = (0, F.useMemo)(() => r || new Ice({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -29946,51 +29959,51 @@ function Fce(e, t, n) {
s,
a,
o
- ]), d = FC(e.id);
- Vk.set(t, d);
- let { gridProps: f } = Mce({
+ ]), d = zC(e.id);
+ Uk.set(t, d);
+ let { gridProps: f } = Fce({
...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 = Lw(Pce(EA), "@react-aria/table"), g = (0, F.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = Vw(Lce(OA), "@react-aria/table"), g = (0, F.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
- ]), _ = PT(g);
- return DT(() => {
- g && ET(g, "assertive", 500);
+ ]), _ = RT(g);
+ return jT(() => {
+ g && AT(g, "assertive", 500);
}, [g]), { gridProps: K(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
}
// node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function DA(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = jw(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = Bk.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = () => {
+function kA(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Fw(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = Hk.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = () => {
if (n.current) {
- let e = xT(n.current);
+ let e = TT(n.current);
if (p === "child") {
- let i = DS(yS(n.current));
- if (kS(n.current) && n.current !== i) return;
- let a = yS(n.current);
+ let i = jS(CS(n.current));
+ if (NS(n.current) && n.current !== i) return;
+ let a = CS(n.current);
if (!i || i === a.body || i === n.current) {
let e = h.current;
- if (e && m.current === r.key && ES(n.current, e)) {
- AC(e);
+ if (e && m.current === r.key && AS(n.current, e)) {
+ PC(e);
return;
}
}
- let o = t.selectionManager.childFocusStrategy === "last" ? OA(e) : e.firstChild();
+ let o = t.selectionManager.childFocusStrategy === "last" ? AA(e) : e.firstChild();
if (o) {
- AC(o);
+ PC(o);
return;
}
}
- (m.current != null && r.key !== m.current || !kS(n.current)) && AC(n.current);
+ (m.current != null && r.key !== m.current || !NS(n.current)) && PC(n.current);
}
- }, { itemProps: _, isPressed: v } = yO({
+ }, { itemProps: _, isPressed: v } = CO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -30002,44 +30015,44 @@ function DA(e, t, n) {
}), y = K(_, {
role: "gridcell",
onKeyDownCapture: f !== "tab" || o ? (e) => {
- let i = DS(yS(n.current));
- if (!ES(e.currentTarget, G(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
- let a = xT(n.current);
+ let i = jS(CS(n.current));
+ if (!AS(e.currentTarget, G(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
+ let a = TT(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) AC(t), MT(t, { containingElement: kT(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) PC(t), IT(t, { containingElement: NT(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" ? (AC(n.current), MT(n.current, { containingElement: kT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : OA(a), t && (AC(t), MT(t, { containingElement: kT(n.current) })));
+ p === "cell" && l === "rtl" ? (PC(n.current), IT(n.current, { containingElement: NT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : AA(a), t && (PC(t), IT(t, { containingElement: NT(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) AC(t), MT(t, { containingElement: kT(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) PC(t), IT(t, { containingElement: NT(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" ? (AC(n.current), MT(n.current, { containingElement: kT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? OA(a) : a.firstChild(), t && (AC(t), MT(t, { containingElement: kT(n.current) })));
+ p === "cell" && l === "ltr" ? (PC(n.current), IT(n.current, { containingElement: NT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? AA(a) : a.firstChild(), t && (PC(t), IT(t, { containingElement: NT(n.current) })));
}
break;
}
case "ArrowUp":
- case "ArrowDown": !e.altKey && ES(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && AS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
}
} : void 0,
onKeyDown: f === "tab" ? (e) => {
- let r = DS(yS(n.current));
- if (ES(e.currentTarget, G(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {
+ let r = jS(CS(n.current));
+ if (AS(e.currentTarget, G(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {
if (f === "tab" && G(e) !== n.current && e.key !== "Tab") e.stopPropagation();
else if (e.key === "Tab" && f === "tab") {
- let t = xT(n.current, { tabbable: !0 });
+ let t = TT(n.current, { tabbable: !0 });
t.currentNode = r, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
@@ -30050,9 +30063,9 @@ function DA(e, t, n) {
onFocus: (e) => {
if (m.current = r.key, G(e) !== n.current) {
let i = G(e);
- n.current && ES(n.current, i) && (h.current = i), vC() || t.selectionManager.setFocusedKey(r.key);
- } else p === "child" && e.relatedTarget && ES(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- p === "child" && DS(yS(n.current)) === n.current && g();
+ n.current && AS(n.current, i) && (h.current = i), SC() || t.selectionManager.setFocusedKey(r.key);
+ } else p === "child" && e.relatedTarget && AS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
+ p === "child" && jS(CS(n.current)) === n.current && g();
});
},
...p === "child" && f === "tab" ? { tabIndex: -1 } : {}
@@ -30067,7 +30080,7 @@ function DA(e, t, n) {
isPressed: v
};
}
-function OA(e) {
+function AA(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -30075,32 +30088,32 @@ function OA(e) {
return t;
}
// node_modules/react-aria/dist/private/table/useTableCell.mjs
-function Ice(e, t, n) {
- let { gridCellProps: r, isPressed: i } = DA(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = Wk(t, e.node.parentKey, a)), {
+function zce(e, t, n) {
+ let { gridCellProps: r, isPressed: i } = kA(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = Kk(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
}
// node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function Lce(e) {
+function Bce(e) {
return e && e.__esModule ? e.default : e;
}
-function Rce(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = DA({
+function Vce(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = kA({
focusMode: "child",
...e
- }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = $w({
+ }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = rT({
isDisabled: !i || o,
onPress() {
t.sort(r.key);
},
ref: n
- }), { focusableProps: l } = YC({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
- r.props.allowsSorting && !JS() && (u = d ? f : "none");
- let p = Lw(Lce(EA), "@react-aria/table"), m;
- i && (m = `${p.format("sortable")}`, d && f && JS() && (m = `${m}, ${p.format(f)}`));
- let h = PT(m), g = t.collection.size === 0;
+ }), { focusableProps: l } = $C({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
+ r.props.allowsSorting && !QS() && (u = d ? f : "none");
+ let p = Vw(Bce(OA), "@react-aria/table"), m;
+ i && (m = `${p.format("sortable")}`, d && f && QS() && (m = `${m}, ${p.format(f)}`));
+ let h = RT(m), g = t.collection.size === 0;
return (0, F.useEffect)(() => {
g && t.selectionManager.focusedKey === r.key && t.selectionManager.setFocusedKey(null);
}, [
@@ -30111,7 +30124,7 @@ function Rce(e, t, n) {
columnHeaderProps: {
...K(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: Uk(t, r.key),
+ id: Gk(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -30119,17 +30132,17 @@ function Rce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableColumnResize.mjs
-function zce(e) {
+function Hce(e) {
return e && e.__esModule ? e.default : e;
}
-function Bce(e, t, n) {
- let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = Lw(zce(EA), "@react-aria/table"), d = FC(), f = t.resizingColumn === r.key, p = (0, F.useRef)(f), m = (0, F.useRef)(null), h = (0, F.useRef)(!1), g = t.tableState.isKeyboardNavigationDisabled, [_, v] = (0, F.useState)(!1), { direction: y } = jw(), b = (0, F.useCallback)((e) => {
+function Uce(e, t, n) {
+ let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = Vw(Hce(OA), "@react-aria/table"), d = zC(), f = t.resizingColumn === r.key, p = (0, F.useRef)(f), m = (0, F.useRef)(null), h = (0, F.useRef)(!1), g = t.tableState.isKeyboardNavigationDisabled, [_, v] = (0, F.useState)(!1), { direction: y } = Fw(), b = (0, F.useCallback)((e) => {
p.current || (m.current = t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.startResize(e.key), t.tableState.setKeyboardNavigationDisabled(!0), o?.(m.current)), p.current = !0;
}, [t, o]), x = (0, F.useCallback)((e, n) => {
let r = t.updateResizedColumns(e.key, n);
s?.(r), m.current = r;
}, [t, s]), S = (0, F.useCallback)((e) => {
- p.current && (m.current ??= t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.endResize(), t.tableState.setKeyboardNavigationDisabled(!1), c?.(m.current), p.current = !1, i?.current && !h.current && AC(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 && PC(i.current)), m.current = null;
}, [
t,
i,
@@ -30137,14 +30150,14 @@ function Bce(e, t, n) {
]), C = () => {
if (g) S(r);
else return !1;
- }, { keyboardProps: w } = GC({ shortcuts: {
+ }, { keyboardProps: w } = YC({ shortcuts: {
Escape: () => C(),
Enter: () => {
g ? S(r) : b(r);
},
" ": () => C(),
Tab: () => C()
- } }), T = (0, F.useRef)(0), { moveProps: E } = iE({
+ } }), T = (0, F.useRef)(0), { moveProps: E } = cE({
onMoveStart(e) {
T.current = t.getColumnWidth(r.key), e.pointerType === "mouse" && v(!0), b(r);
},
@@ -30160,12 +30173,12 @@ function Bce(e, t, n) {
g && E.onKeyDown?.(e);
}, [g, E]), O = Math.floor(t.getColumnMinWidth(r.key)), k = Math.floor(t.getColumnMaxWidth(r.key));
k === Infinity && (k = 2 ** 53 - 1);
- let A = Math.floor(t.getColumnWidth(r.key)), j = xC();
+ let A = Math.floor(t.getColumnWidth(r.key)), j = TC();
j === "virtual" && typeof window < "u" && "ontouchstart" in window && (j = "touch");
- let M = PT(i?.current == null && (j === "keyboard" || j === "virtual") && !f ? u.format("resizerDescription") : void 0), ee = {
+ let M = RT(i?.current == null && (j === "keyboard" || j === "virtual") && !f ? u.format("resizerDescription") : void 0), ee = {
"aria-label": l,
"aria-orientation": "horizontal",
- "aria-labelledby": `${d} ${Uk(t.tableState, r.key)}`,
+ "aria-labelledby": `${d} ${Gk(t.tableState, r.key)}`,
"aria-valuetext": u.format("columnSize", { value: A }),
type: "range",
min: O,
@@ -30173,11 +30186,11 @@ function Bce(e, t, n) {
value: A,
...M
}, N = (0, F.useCallback)(() => {
- n.current && AC(n.current);
- }, [n]), te = t.resizingColumn, P = (0, F.useRef)(null), ne = Cw(b);
+ n.current && PC(n.current);
+ }, [n]), te = t.resizingColumn, P = (0, F.useRef)(null), ne = Dw(b);
(0, F.useEffect)(() => {
if (P.current !== te && te != null && te === r.key) {
- h.current = DS() === n.current, ne(r);
+ h.current = jS() === n.current, ne(r);
let e = setTimeout(() => N(), 0), t = setTimeout(N, 400);
return () => {
clearTimeout(e), clearTimeout(t);
@@ -30193,7 +30206,7 @@ function Bce(e, t, n) {
let re = (e) => {
let n = t.getColumnWidth(r.key), i = parseFloat(G(e).value);
i = i > n ? n + 10 : n - 10, x(r, i);
- }, { pressProps: I } = $w({
+ }, { pressProps: I } = rT({
preventFocusOnPress: !0,
onPressStart: (e) => {
e.ctrlKey || e.altKey || e.metaKey || e.shiftKey || e.pointerType === "keyboard" || (e.pointerType === "virtual" && t.resizingColumn != null ? S(r) : (N(), e.pointerType !== "virtual" && b(r)));
@@ -30201,7 +30214,7 @@ function Bce(e, t, n) {
onPress: (e) => {
(e.pointerType === "touch" && h.current || e.pointerType === "mouse") && t.resizingColumn != null && S(r);
}
- }), { visuallyHiddenProps: ie } = oE();
+ }), { visuallyHiddenProps: ie } = uE();
return {
resizerProps: K(w, {
...E,
@@ -30220,19 +30233,19 @@ function Bce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function Vce(e, t, n) {
+function Wce(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 };
}
// node_modules/react-aria/dist/private/grid/useGridRow.mjs
-function Hce(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = Bk.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = yO({
+function Gce(e, t, n) {
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = Hk.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = CO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: c || a,
- onAction: l || r?.props?.onAction ? jC(r?.props?.onAction, l) : void 0,
+ onAction: l || r?.props?.onAction ? FC(r?.props?.onAction, l) : void 0,
isDisabled: t.collection.size === 0
}), f = t.selectionManager.isSelected(r.key), p = {
role: "row",
@@ -30246,10 +30259,10 @@ function Hce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableRow.mjs
-function Uce(e) {
+function Kce(e) {
return e && e.__esModule ? e.default : e;
}
-var kA = {
+var jA = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -30259,21 +30272,21 @@ var kA = {
rtl: "ArrowRight"
}
};
-function Wce(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Hce(e, t, n), { direction: s } = jw();
+function qce(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Gce(e, t, n), { direction: s } = Fw();
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 = Lw(Uce(EA), "@react-aria/table"), u = Tw({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = Vw(Kce(OA), "@react-aria/table"), u = kw({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": Gk(t, r.key)
+ "aria-labelledby": qk(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = AA(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 = AA(t.collection, a);
+ let n = MA(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 = MA(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === kA.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === kA.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 === jA.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === jA.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,
@@ -30291,42 +30304,42 @@ function Wce(e, t, n) {
};
}
}
- let p = QS(r.props), m = o.hasAction ? p : {};
+ let p = nC(r.props), m = o.hasAction ? p : {};
return {
rowProps: {
...K(a, d, m),
- "aria-labelledby": Gk(t, r.key)
+ "aria-labelledby": qk(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function AA(e, t) {
+function MA(e, t) {
return "lastChildKey" in t ? t.lastChildKey == null ? null : e.getItem(t.lastChildKey) : Array.from(t.childNodes).findLast((e) => e.parentKey === t.key);
}
// node_modules/react-aria/dist/private/grid/useGridRowGroup.mjs
-function Gce() {
+function Jce() {
return { rowGroupProps: { role: "rowgroup" } };
}
// node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function jA() {
- return Gce();
+function NA() {
+ return Jce();
}
// node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function Kce(e) {
+function Yce(e) {
return e && e.__esModule ? e.default : e;
}
-function qce(e, t) {
- let { key: n } = e, { checkboxProps: r } = TO(e, t);
+function Xce(e, t) {
+ let { key: n } = e, { checkboxProps: r } = kO(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${Gk(t, n)}`
+ "aria-labelledby": `${r.id} ${qk(t, n)}`
} };
}
-function Jce(e) {
+function Zce(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": Lw(Kce(EA), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": Vw(Yce(OA), "@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,
@@ -30334,22 +30347,22 @@ function Jce(e) {
} };
}
// node_modules/react-aria/dist/private/tabs/utils.mjs
-var MA = /* @__PURE__ */ new WeakMap();
-function NA(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${MA.get(e)}-${n}-${t}`) : "";
+var PA = /* @__PURE__ */ new WeakMap();
+function FA(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${PA.get(e)}-${n}-${t}`) : "";
}
// node_modules/react-aria/dist/private/tabs/useTab.mjs
-function Yce(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 } = yO({
+function Qce(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 } = CO({
selectionManager: o,
key: r,
ref: n,
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = NA(t, r, "tab"), m = NA(t, r, "tabpanel"), { tabIndex: h } = d, g = zw(u?.props, { labelable: !0 });
+ }), p = FA(t, r, "tab"), m = FA(t, r, "tabpanel"), { tabIndex: h } = d, g = Uw(u?.props, { labelable: !0 });
delete g.id;
- let _ = $S(u?.props), { focusableProps: v } = YC({
+ let _ = rC(u?.props), { focusableProps: v } = $C({
...u?.props,
isDisabled: l
}, n);
@@ -30368,7 +30381,7 @@ function Yce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var Xce = class {
+var $ce = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -30411,11 +30424,11 @@ var Xce = class {
}
};
// node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function Zce(e, t, n) {
- let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = jw(), { collectionProps: l } = cD({
+function ele(e, t, n) {
+ let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Fw(), { collectionProps: l } = fD({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, F.useMemo)(() => new Xce(a, c, r, s), [
+ keyboardDelegate: (0, F.useMemo)(() => new $ce(a, c, r, s), [
a,
s,
r,
@@ -30425,9 +30438,9 @@ function Zce(e, t, n) {
disallowEmptySelection: !0,
scrollRef: n,
linkBehavior: "selection"
- }), u = FC();
- return MA.set(t, u), { tabListProps: {
- ...K(l, Tw({
+ }), u = zC();
+ return PA.set(t, u), { tabListProps: {
+ ...K(l, kw({
...e,
id: u
})),
@@ -30437,12 +30450,12 @@ function Zce(e, t, n) {
} };
}
// node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function Qce(e, t, n) {
- let r = gO(n) ? void 0 : 0, i = NA(t, e.id ?? t?.selectedKey, "tabpanel");
- return { tabPanelProps: K(Tw({
+function tle(e, t, n) {
+ let r = bO(n) ? void 0 : 0, i = FA(t, e.id ?? t?.selectedKey, "tabpanel");
+ return { tabPanelProps: K(kw({
...e,
id: i,
- "aria-labelledby": NA(t, t?.selectedKey, "tab")
+ "aria-labelledby": FA(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -30451,265 +30464,265 @@ function Qce(e, t, n) {
}) };
}
// node_modules/react-aria/dist/private/tree/useTree.mjs
-function $ce(e, t, n) {
- let { gridProps: r } = Use(e, t, n);
+function nle(e, t, n) {
+ let { gridProps: r } = Wse(e, t, n);
return r.role = "treegrid", { gridProps: r };
}
// node_modules/react-aria/dist/private/intl/tree/ar-AE.mjs
-var PA = {};
-PA = {
+var IA = {};
+IA = {
collapse: "طي",
expand: "تمديد"
};
// node_modules/react-aria/dist/private/intl/tree/bg-BG.mjs
-var FA = {};
-FA = {
+var LA = {};
+LA = {
collapse: "Свиване",
expand: "Разширяване"
};
// node_modules/react-aria/dist/private/intl/tree/cs-CZ.mjs
-var IA = {};
-IA = {
+var RA = {};
+RA = {
collapse: "Sbalit",
expand: "Roztáhnout"
};
// node_modules/react-aria/dist/private/intl/tree/da-DK.mjs
-var LA = {};
-LA = {
+var zA = {};
+zA = {
collapse: "Skjul",
expand: "Udvid"
};
// node_modules/react-aria/dist/private/intl/tree/de-DE.mjs
-var RA = {};
-RA = {
+var BA = {};
+BA = {
collapse: "Reduzieren",
expand: "Erweitern"
};
// node_modules/react-aria/dist/private/intl/tree/el-GR.mjs
-var zA = {};
-zA = {
+var VA = {};
+VA = {
collapse: "Σύμπτυξη",
expand: "Ανάπτυξη"
};
// node_modules/react-aria/dist/private/intl/tree/en-US.mjs
-var BA = {};
-BA = {
+var HA = {};
+HA = {
expand: "Expand",
collapse: "Collapse"
};
// node_modules/react-aria/dist/private/intl/tree/es-ES.mjs
-var VA = {};
-VA = {
+var UA = {};
+UA = {
collapse: "Contraer",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/et-EE.mjs
-var HA = {};
-HA = {
+var WA = {};
+WA = {
collapse: "Ahenda",
expand: "Laienda"
};
// node_modules/react-aria/dist/private/intl/tree/fi-FI.mjs
-var UA = {};
-UA = {
+var GA = {};
+GA = {
collapse: "Pienennä",
expand: "Laajenna"
};
// node_modules/react-aria/dist/private/intl/tree/fr-FR.mjs
-var WA = {};
-WA = {
+var KA = {};
+KA = {
collapse: "Réduire",
expand: "Développer"
};
// node_modules/react-aria/dist/private/intl/tree/he-IL.mjs
-var GA = {};
-GA = {
+var qA = {};
+qA = {
collapse: "כווץ",
expand: "הרחב"
};
// node_modules/react-aria/dist/private/intl/tree/hr-HR.mjs
-var KA = {};
-KA = {
+var JA = {};
+JA = {
collapse: "Sažmi",
expand: "Proširi"
};
// node_modules/react-aria/dist/private/intl/tree/hu-HU.mjs
-var qA = {};
-qA = {
+var YA = {};
+YA = {
collapse: "Összecsukás",
expand: "Kibontás"
};
// node_modules/react-aria/dist/private/intl/tree/it-IT.mjs
-var JA = {};
-JA = {
+var XA = {};
+XA = {
collapse: "Comprimi",
expand: "Espandi"
};
// node_modules/react-aria/dist/private/intl/tree/ja-JP.mjs
-var YA = {};
-YA = {
+var ZA = {};
+ZA = {
collapse: "折りたたむ",
expand: "展開"
};
// node_modules/react-aria/dist/private/intl/tree/ko-KR.mjs
-var XA = {};
-XA = {
+var QA = {};
+QA = {
collapse: "접기",
expand: "펼치기"
};
// node_modules/react-aria/dist/private/intl/tree/lt-LT.mjs
-var ZA = {};
-ZA = {
+var $A = {};
+$A = {
collapse: "Sutraukti",
expand: "Išskleisti"
};
// node_modules/react-aria/dist/private/intl/tree/lv-LV.mjs
-var QA = {};
-QA = {
+var ej = {};
+ej = {
collapse: "Sakļaut",
expand: "Izvērst"
};
// node_modules/react-aria/dist/private/intl/tree/nb-NO.mjs
-var $A = {};
-$A = {
+var tj = {};
+tj = {
collapse: "Skjul",
expand: "Utvid"
};
// node_modules/react-aria/dist/private/intl/tree/nl-NL.mjs
-var ej = {};
-ej = {
+var nj = {};
+nj = {
collapse: "Samenvouwen",
expand: "Uitvouwen"
};
// node_modules/react-aria/dist/private/intl/tree/pl-PL.mjs
-var tj = {};
-tj = {
+var rj = {};
+rj = {
collapse: "Zwiń",
expand: "Rozwiń"
};
// node_modules/react-aria/dist/private/intl/tree/pt-BR.mjs
-var nj = {};
-nj = {
+var ij = {};
+ij = {
collapse: "Recolher",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/pt-PT.mjs
-var rj = {};
-rj = {
+var aj = {};
+aj = {
collapse: "Colapsar",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/ro-RO.mjs
-var ij = {};
-ij = {
+var oj = {};
+oj = {
collapse: "Restrângeți",
expand: "Extindeți"
};
// node_modules/react-aria/dist/private/intl/tree/ru-RU.mjs
-var aj = {};
-aj = {
+var sj = {};
+sj = {
collapse: "Свернуть",
expand: "Развернуть"
};
// node_modules/react-aria/dist/private/intl/tree/sk-SK.mjs
-var oj = {};
-oj = {
+var cj = {};
+cj = {
collapse: "Zbaliť",
expand: "Rozbaliť"
};
// node_modules/react-aria/dist/private/intl/tree/sl-SI.mjs
-var sj = {};
-sj = {
+var lj = {};
+lj = {
collapse: "Strni",
expand: "Razširi"
};
// node_modules/react-aria/dist/private/intl/tree/sr-SP.mjs
-var cj = {};
-cj = {
+var uj = {};
+uj = {
collapse: " Skupi",
expand: "Proširi"
};
// node_modules/react-aria/dist/private/intl/tree/sv-SE.mjs
-var lj = {};
-lj = {
+var dj = {};
+dj = {
collapse: "Dölj",
expand: "Expandera"
};
// node_modules/react-aria/dist/private/intl/tree/tr-TR.mjs
-var uj = {};
-uj = {
+var fj = {};
+fj = {
collapse: "Daralt",
expand: "Genişlet"
};
// node_modules/react-aria/dist/private/intl/tree/uk-UA.mjs
-var dj = {};
-dj = {
+var pj = {};
+pj = {
collapse: "Згорнути",
expand: "Розгорнути"
};
// node_modules/react-aria/dist/private/intl/tree/zh-CN.mjs
-var fj = {};
-fj = {
+var mj = {};
+mj = {
collapse: "折叠",
expand: "扩展"
};
// node_modules/react-aria/dist/private/intl/tree/zh-TW.mjs
-var pj = {};
-pj = {
+var hj = {};
+hj = {
collapse: "收合",
expand: "展開"
};
// node_modules/react-aria/dist/private/tree/intlStrings.mjs
-var mj = {};
-mj = {
- "ar-AE": PA,
- "bg-BG": FA,
- "cs-CZ": IA,
- "da-DK": LA,
- "de-DE": RA,
- "el-GR": zA,
- "en-US": BA,
- "es-ES": VA,
- "et-EE": HA,
- "fi-FI": UA,
- "fr-FR": WA,
- "he-IL": GA,
- "hr-HR": KA,
- "hu-HU": qA,
- "it-IT": JA,
- "ja-JP": YA,
- "ko-KR": XA,
- "lt-LT": ZA,
- "lv-LV": QA,
- "nb-NO": $A,
- "nl-NL": ej,
- "pl-PL": tj,
- "pt-BR": nj,
- "pt-PT": rj,
- "ro-RO": ij,
- "ru-RU": aj,
- "sk-SK": oj,
- "sl-SI": sj,
- "sr-SP": cj,
- "sv-SE": lj,
- "tr-TR": uj,
- "uk-UA": dj,
- "zh-CN": fj,
- "zh-TW": pj
+var gj = {};
+gj = {
+ "ar-AE": IA,
+ "bg-BG": LA,
+ "cs-CZ": RA,
+ "da-DK": zA,
+ "de-DE": BA,
+ "el-GR": VA,
+ "en-US": HA,
+ "es-ES": UA,
+ "et-EE": WA,
+ "fi-FI": GA,
+ "fr-FR": KA,
+ "he-IL": qA,
+ "hr-HR": JA,
+ "hu-HU": YA,
+ "it-IT": XA,
+ "ja-JP": ZA,
+ "ko-KR": QA,
+ "lt-LT": $A,
+ "lv-LV": ej,
+ "nb-NO": tj,
+ "nl-NL": nj,
+ "pl-PL": rj,
+ "pt-BR": ij,
+ "pt-PT": aj,
+ "ro-RO": oj,
+ "ru-RU": sj,
+ "sk-SK": cj,
+ "sl-SI": lj,
+ "sr-SP": uj,
+ "sv-SE": dj,
+ "tr-TR": fj,
+ "uk-UA": pj,
+ "zh-CN": mj,
+ "zh-TW": hj
};
// node_modules/react-aria/dist/private/tree/useTreeItem.mjs
-function ele(e) {
+function rle(e) {
return e && e.__esModule ? e.default : e;
}
-function hj(e, t, n) {
- let { node: r } = e, i = Wse(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = Lw(ele(mj), "@react-aria/tree"), s = {
+function _j(e, t, n) {
+ let { node: r } = e, i = Gse(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = Vw(rle(gj), "@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,
- ...Tw({
+ ...kw({
"aria-label": a ? o.format("collapse") : o.format("expand"),
"aria-labelledby": i.rowProps.id
})
@@ -30720,15 +30733,15 @@ function hj(e, t, n) {
};
}
// src/react/components/selection-dock.tsx
-var gj = "(prefers-reduced-motion: reduce)", tle = () => matchMedia(gj).matches, nle = (e) => {
- let t = matchMedia(gj);
+var vj = "(prefers-reduced-motion: reduce)", ile = () => matchMedia(vj).matches, ale = (e) => {
+ let t = matchMedia(vj);
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
-}, _j = /* @__PURE__ */ new Map(), vj = () => {
+}, yj = /* @__PURE__ */ new Map(), bj = () => {
let e = document.documentElement;
- _j.size ? e.style.setProperty("--selection-dock-space", `${Math.max(..._j.values())}px`) : e.style.removeProperty("--selection-dock-space");
+ yj.size ? e.style.setProperty("--selection-dock-space", `${Math.max(...yj.values())}px`) : e.style.removeProperty("--selection-dock-space");
};
-function rle({ children: e, count: t, label: n }) {
- let r = (0, F.useRef)(null), i = Cx(), a = (0, F.useSyncExternalStore)(nle, tle, () => !1), { isFocusVisible: o } = SC(), s = a || o, c = {
+function ole({ children: e, count: t, label: n }) {
+ let r = (0, F.useRef)(null), i = Dx(), a = (0, F.useSyncExternalStore)(ale, ile, () => !1), { isFocusVisible: o } = EC(), s = a || o, c = {
opacity: 0,
transform: "translate(-50%, 8px)"
};
@@ -30736,12 +30749,12 @@ function rle({ children: e, count: t, label: n }) {
let e = r.current;
if (!e || !i) return;
let t = () => {
- _j.set(e, Math.ceil(e.offsetHeight + (parseFloat(getComputedStyle(e).bottom) || 0) + 16)), vj();
+ yj.set(e, Math.ceil(e.offsetHeight + (parseFloat(getComputedStyle(e).bottom) || 0) + 16)), bj();
}, n = new ResizeObserver(t);
return n.observe(e), window.addEventListener("resize", t), t(), () => {
- n.disconnect(), window.removeEventListener("resize", t), _j.delete(e), vj();
+ n.disconnect(), window.removeEventListener("resize", t), yj.delete(e), bj();
};
- }, [i]), /* @__PURE__ */ (0, I.jsxs)(cS.div, {
+ }, [i]), /* @__PURE__ */ (0, I.jsxs)(fS.div, {
ref: r,
role: "group",
"aria-label": n,
@@ -30774,17 +30787,17 @@ function rle({ children: e, count: t, label: n }) {
}), e]
});
}
-function yj({ visible: e, ...t }) {
- return /* @__PURE__ */ (0, I.jsx)(Ex, { children: e ? /* @__PURE__ */ (0, I.jsx)(rle, { ...t }, "selection") : null });
+function xj({ visible: e, ...t }) {
+ return /* @__PURE__ */ (0, I.jsx)(Ax, { children: e ? /* @__PURE__ */ (0, I.jsx)(ole, { ...t }, "selection") : null });
}
// src/react/batch-dock/batch-dock-api.ts
-var bj = {
+var Sj = {
group: "clear",
operation: "clear",
label: "取消",
glyph: "x"
};
-function ile(e, t = !1) {
+function sle(e, t = !1) {
switch (e) {
case "trash": return [
{
@@ -30800,7 +30813,7 @@ function ile(e, t = !1) {
glyph: "trash",
danger: !0
},
- bj
+ Sj
];
case "junk": return [
t ? {
@@ -30821,7 +30834,7 @@ function ile(e, t = !1) {
glyph: "trash",
danger: !0
},
- bj
+ Sj
];
case "follow": return [
{
@@ -30842,7 +30855,7 @@ function ile(e, t = !1) {
label: "忽略",
glyph: "eye-off"
},
- bj
+ Sj
];
default: return [
{
@@ -30876,38 +30889,38 @@ function ile(e, t = !1) {
glyph: "trash",
danger: !0
},
- bj
+ Sj
];
}
}
// src/react/batch-dock/batch-dock-island.tsx
-var xj = null, Sj = {
+var Cj = null, wj = {
count: 0,
context: "catalog",
junkDismissed: !1
-}, Cj = /* @__PURE__ */ new Set();
-function ale(e) {
- return Cj.add(e), () => {
- Cj.delete(e);
+}, Tj = /* @__PURE__ */ new Set();
+function cle(e) {
+ return Tj.add(e), () => {
+ Tj.delete(e);
};
}
-function ole() {
- for (let e of [...Cj]) e();
+function lle() {
+ for (let e of [...Tj]) e();
}
-var sle = { render(e) {
- Sj = e, (0, Rt.flushSync)(ole);
+var ule = { render(e) {
+ wj = e, (0, Rt.flushSync)(lle);
} };
-function cle(e) {
- return xj = e, sle;
+function dle(e) {
+ return Cj = e, ule;
}
-function lle() {
- let e = (0, F.useSyncExternalStore)(ale, () => Sj);
- return xj ? /* @__PURE__ */ (0, I.jsx)(ule, {
- host: xj,
+function fle() {
+ let e = (0, F.useSyncExternalStore)(cle, () => wj);
+ return Cj ? /* @__PURE__ */ (0, I.jsx)(ple, {
+ host: Cj,
props: e
}) : null;
}
-function ule({ host: e, props: t }) {
+function ple({ host: e, props: t }) {
let n = t.count > 0;
return (0, F.useLayoutEffect)(() => {
document.body.toggleAttribute("data-batch-dock-open", n);
@@ -30917,11 +30930,11 @@ function ule({ host: e, props: t }) {
className: "peach-react",
"data-batch-scope": "",
"data-context": t.context,
- children: /* @__PURE__ */ (0, I.jsx)(yj, {
+ children: /* @__PURE__ */ (0, I.jsx)(xj, {
label: "所选项目操作",
visible: t.count > 0,
count: `已选 ${t.count.toLocaleString()} 项`,
- children: ile(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: sle(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-batch-group": t.group,
"data-batch-action": t.operation,
@@ -30937,11 +30950,11 @@ function ule({ host: e, props: t }) {
});
}
// src/number-setting.ts
-function wj(e, t, n, r) {
+function Ej(e, t, n, r) {
return Number.isInteger(e) && e >= t && e <= n ? e : r;
}
// src/settings-store.ts
-function dle(e, t) {
+function mle(e, t) {
let n = /* @__PURE__ */ new Set(), r = 0, i = () => {
r += 1, n.forEach((e) => e());
};
@@ -30960,7 +30973,7 @@ function dle(e, t) {
};
}
// src/sort-preferences.ts
-var Tj = [
+var Dj = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -30969,7 +30982,7 @@ var Tj = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], Ej = ["release", "发行时间"], Dj = [...Tj, Ej].map(([e]) => e), Oj = {
+], Oj = ["release", "发行时间"], kj = [...Dj, Oj].map(([e]) => e), Aj = {
rating: ["从高到低", "从低到高"],
o: ["从多到少", "从少到多"],
plays: ["从多到少", "从少到多"],
@@ -30978,43 +30991,43 @@ var Tj = [
new: ["从新到旧", "从旧到新"],
played: ["从近到远", "从远到近"],
release: ["从新到旧", "从旧到新"]
-}, kj = {
+}, jj = {
big: ["size", "desc"],
short: ["dur", "asc"],
long: ["dur", "desc"]
-}, Aj = (e, t, n = Oj) => (n[e] || [])[+(t === "asc")] || "", jj = (e, t = Oj) => t[e] ? "desc" : "";
-function Mj(e, t, n, r = Oj) {
+}, Mj = (e, t, n = Aj) => (n[e] || [])[+(t === "asc")] || "", Nj = (e, t = Aj) => t[e] ? "desc" : "";
+function Pj(e, t, n, r = Aj) {
return e === t ? r[e] ? {
sort: e,
dir: n === "asc" ? "desc" : "asc"
} : null : {
sort: e,
- dir: jj(e, r)
+ dir: Nj(e, r)
};
}
-function Nj(e, t, n) {
+function Fj(e, t, n) {
return e === "seed" ? "" : e === t && n === "asc" ? "asc" : "desc";
}
-function Pj(e, t, n, r, i = n) {
- let a = e ? kj[e] : void 0, o = a ? a[0] : e, s = o && Dj.includes(o) ? o : i;
- return Oj[s] ? {
+function Ij(e, t, n, r, i = n) {
+ let a = e ? jj[e] : void 0, o = a ? a[0] : e, s = o && kj.includes(o) ? o : i;
+ return Aj[s] ? {
sort: s,
- dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : Nj(s, n, r)
+ dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : Fj(s, n, r)
} : {
sort: s,
dir: ""
};
}
// src/appearance/home-glow.ts
-var Fj = [
+var Lj = [
"spot1",
"spot2",
"spot3"
-], fle = [
+], hle = [
"光晕一",
"光晕二",
"光晕三"
-], Ij = "native", Lj = [
+], Rj = "native", zj = [
[
"ash",
"灰雾",
@@ -31320,7 +31333,7 @@ var Fj = [
"rose"
],
[
- Ij,
+ Rj,
"玻璃原色",
{
spot1: {
@@ -31338,7 +31351,7 @@ var Fj = [
},
"blue"
]
-], Rj = (e) => e === Ij, zj = [...Lj.map(([e, t]) => [e, t]), ["custom", "自定义"]], ple = (e) => (zj.find(([t]) => t === e) || zj[0])[1], Bj = (e) => structuredClone((Lj.find(([t]) => t === e) || Lj[0])[2]), Vj = [
+], Bj = (e) => e === Rj, Vj = [...zj.map(([e, t]) => [e, t]), ["custom", "自定义"]], gle = (e) => (Vj.find(([t]) => t === e) || Vj[0])[1], Hj = (e) => structuredClone((zj.find(([t]) => t === e) || zj[0])[2]), Uj = [
["red", "红"],
["orange", "橙"],
["amber", "琥珀"],
@@ -31351,7 +31364,7 @@ var Fj = [
["violet", "紫罗兰"],
["fuchsia", "品红"],
["rose", "玫红"]
-], Hj = "blue", Uj = (e) => Vj.some(([t]) => t === e) ? e : Hj, mle = (e) => (Lj.find(([t]) => t === e) || [])[3] || "blue", hle = [
+], Wj = "blue", Gj = (e) => Uj.some(([t]) => t === e) ? e : Wj, _le = (e) => (zj.find(([t]) => t === e) || [])[3] || "blue", vle = [
["all", "全部"],
["gray", "灰"],
["red", "红"],
@@ -31361,7 +31374,7 @@ var Fj = [
["blue", "蓝"],
["purple", "紫"],
["brown", "棕"]
-], gle = [
+], yle = [
[
"gray",
"云灰",
@@ -31757,11 +31770,11 @@ var Fj = [
"霁蓝",
"#6686b8"
]
-], Wj = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, Gj = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, _le = (e, t) => `rgba(${[
+], Kj = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, qj = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, ble = (e, t) => `rgba(${[
1,
3,
5
-].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, vle = {
+].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, xle = {
strength: [
0,
100,
@@ -31787,7 +31800,7 @@ var Fj = [
100,
50
]
-}, Kj = {
+}, Jj = {
on: !0,
preset: "ash",
strength: 100,
@@ -31795,56 +31808,56 @@ var Fj = [
speed: 100,
soften: 50,
size: 50,
- ...Bj("ash")
+ ...Hj("ash")
};
-function qj(e) {
- let t = e && typeof e == "object" ? e : {}, n = zj.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = Bj(r === "custom" ? "ash" : r), a = {
+function Yj(e) {
+ let t = e && typeof e == "object" ? e : {}, n = Vj.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = Hj(r === "custom" ? "ash" : r), a = {
on: t.on !== !1,
preset: r
};
- for (let [e, [n, r, i]] of Object.entries(vle)) a[e] = Wj(+t[e], n, r, i);
- for (let e of Fj) {
+ for (let [e, [n, r, i]] of Object.entries(xle)) a[e] = Kj(+t[e], n, r, i);
+ for (let e of Lj) {
let r = n && t[e] && typeof t[e] == "object" ? t[e] : {}, o = i[e];
a[e] = {
- color: Gj(r.color, o.color),
- alpha: Wj(+r.alpha, 0, 100, o.alpha)
+ color: qj(r.color, o.color),
+ alpha: Kj(+r.alpha, 0, 100, o.alpha)
};
}
return a;
}
-var yle = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, Jj = /* @__PURE__ */ new WeakMap();
-function ble(e, t) {
+var Sle = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, Xj = /* @__PURE__ */ new WeakMap();
+function Cle(e, t) {
if (!e) return;
- let n = Jj.get(e);
- n || (n = /* @__PURE__ */ new Map(), Jj.set(e, n));
- let r = t.on && !Rj(t.preset), i = (t, r) => {
+ let n = Xj.get(e);
+ n || (n = /* @__PURE__ */ new Map(), Xj.set(e, n));
+ let r = t.on && !Bj(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"), Fj.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"), Lj.forEach((e, n) => {
let r = t[e];
- i(`--glow-spot-${n + 1}-color`, _le(r.color, r.alpha));
+ i(`--glow-spot-${n + 1}-color`, ble(r.color, r.alpha));
});
}
-function xle(e, t) {
+function wle(e, t) {
if (!e) return;
- let n = !t.on || Rj(t.preset);
+ let n = !t.on || Bj(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));
}
// src/appearance/settings.ts
-var Sle = "peach.settings.v1", Cle = [
+var Tle = "peach.settings.v1", Ele = [
"system",
"light",
"dark"
-], Yj = [
+], Zj = [
0,
7,
30,
90
-], wle = [
+], Dle = [
"feedHideGroupCompilations",
"feedHideSoloCompilations",
"feedHideExcerpts"
-], Xj = {
+], Qj = {
batchSize: 60,
defaultSort: "seed",
sortDefaultsVersion: 3,
@@ -31865,56 +31878,56 @@ var Sle = "peach.settings.v1", Cle = [
theme: "system",
groupCollapse: !0,
sidebarOrder: [...Bl],
- homeGlow: Kj,
- accent: Hj,
+ homeGlow: Jj,
+ accent: Wj,
performerNameLanguage: "zh-CN"
-}, Zj = (e, t, n) => t.includes(e) ? e : n;
-function Tle(e) {
+}, $j = (e, t, n) => t.includes(e) ? e : n;
+function Ole(e) {
let t = e && typeof e == "object" ? e : {}, n = {
- ...Xj,
+ ...Qj,
...t
};
- n.followInitialDays = Yj.includes(+n.followInitialDays) ? +n.followInitialDays : 30, delete n.rotateMinutes;
+ n.followInitialDays = Zj.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 = kj[n.defaultSort];
- return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = wj(+n.batchSize, 1, 200, 60), n.defaultSort = Zj(n.defaultSort, Dj, "seed"), n.hoverDelaySeconds = wj(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = wj(+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 = wj(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = wj(+n.relatedLimit, 0, 60, 20), n.feedLimit = wj(+n.feedLimit, 1, 100, 12), Object.assign(n, $a(n)), n.theme = Zj(n.theme, Cle, "system"), n.performerNameLanguage = Zj(n.performerNameLanguage, ["zh-CN", "ja"], "zh-CN"), n.homeGlow = qj(n.homeGlow), n.accent = Uj(n.accent), n.sidebarOrder = Wl(n.sidebarOrder), {
+ let a = jj[n.defaultSort];
+ return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = Ej(+n.batchSize, 1, 200, 60), n.defaultSort = $j(n.defaultSort, kj, "seed"), n.hoverDelaySeconds = Ej(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = Ej(+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 = Ej(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = Ej(+n.relatedLimit, 0, 60, 20), n.feedLimit = Ej(+n.feedLimit, 1, 100, 12), Object.assign(n, $a(n)), n.theme = $j(n.theme, Ele, "system"), n.performerNameLanguage = $j(n.performerNameLanguage, ["zh-CN", "ja"], "zh-CN"), n.homeGlow = Yj(n.homeGlow), n.accent = Gj(n.accent), n.sidebarOrder = Wl(n.sidebarOrder), {
settings: n,
migrated: r
};
}
-function Ele(e) {
+function kle(e) {
let t = {};
try {
t = JSON.parse(e.getItem("peach.settings.v1") || "{}");
} catch {}
- return Tle(t);
+ return Ole(t);
}
-var Qj = null;
-function $j() {
- if (Qj) return Qj;
- let { settings: e, migrated: t } = Ele(localStorage);
- return Qj = dle(Sle, e), t && Qj.save(), Qj;
+var eM = null;
+function tM() {
+ if (eM) return eM;
+ let { settings: e, migrated: t } = kle(localStorage);
+ return eM = mle(Tle, e), t && eM.save(), eM;
}
-function eM(e, t, n = $j()) {
+function nM(e, t, n = tM()) {
let r = n.value, i = e?.performerNameLanguage;
(i === "zh-CN" || i === "ja") && i !== r.performerNameLanguage && (r.performerNameLanguage = i, n.save(), t("performerNameLanguage"));
let a = e && e.followInitialDays;
- Yj.includes(a) && (r.followInitialDays = a, n.save());
- for (let t of wle) typeof e?.[t] == "boolean" && e[t] !== r[t] && (r[t] = e[t], n.save());
+ Zj.includes(a) && (r.followInitialDays = a, n.save());
+ for (let t of Dle) typeof e?.[t] == "boolean" && e[t] !== r[t] && (r[t] = e[t], n.save());
let o = e && e.searchHistoryLimit;
- Number.isInteger(o) && o >= 0 && o <= 50 ? o !== r.searchHistoryLimit && (r.searchHistoryLimit = wj(o, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== Xj.searchHistoryLimit && Dle(n);
+ Number.isInteger(o) && o >= 0 && o <= 50 ? o !== r.searchHistoryLimit && (r.searchHistoryLimit = Ej(o, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== Qj.searchHistoryLimit && Ale(n);
let s = Array.isArray(e && e.sidebarOrder) ? e.sidebarOrder : null;
s && s.length && s.join(",") !== r.sidebarOrder.join(",") && (r.sidebarOrder = s, n.save());
}
-function Dle(e = $j()) {
+function Ale(e = tM()) {
return Tn("/api/settings", {
method: "POST",
body: JSON.stringify({ searchHistoryLimit: e.value.searchHistoryLimit })
}).catch(() => {});
}
// src/appearance/theme.ts
-var Ole = [
+var jle = [
[
"system",
"跟随系统",
@@ -31930,31 +31943,31 @@ var Ole = [
"深色",
"moon"
]
-], kle = null, tM = () => kle ??= matchMedia("(prefers-color-scheme: dark)"), nM = null;
-function Ale() {
- return nM || (nM = document.createElement("style"), nM.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), nM.isConnected || document.head.append(nM), () => {
+], Mle = null, rM = () => Mle ??= matchMedia("(prefers-color-scheme: dark)"), iM = null;
+function Nle() {
+ return iM || (iM = document.createElement("style"), iM.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), iM.isConnected || document.head.append(iM), () => {
getComputedStyle(document.documentElement).opacity;
let e = () => {
- cancelAnimationFrame(t), clearTimeout(n), nM?.remove();
+ cancelAnimationFrame(t), clearTimeout(n), iM?.remove();
}, t = requestAnimationFrame(e), n = setTimeout(e, 100);
};
}
-function rM(e = $j().value.theme) {
- let t = Ale(), n = document.documentElement;
+function aM(e = tM().value.theme) {
+ let t = Nle(), n = document.documentElement;
e === "system" ? delete n.dataset.theme : n.dataset.theme = e;
- let r = e === "dark" || e === "system" && tM().matches;
+ let r = e === "dark" || e === "system" && rM().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 iM = !1;
-function jle() {
- iM || (iM = !0, tM().addEventListener("change", () => {
- $j().value.theme === "system" && rM();
+var oM = !1;
+function Ple() {
+ oM || (oM = !0, rM().addEventListener("change", () => {
+ tM().value.theme === "system" && aM();
}));
}
// src/appearance/layout.ts
-var aM = [[
+var sM = [[
"big",
"大图",
"maximize"
@@ -31962,7 +31975,7 @@ var aM = [[
"small",
"小图",
"layout-grid"
-]], oM = [[
+]], cM = [[
"big",
"大图",
"maximize"
@@ -31970,7 +31983,7 @@ var aM = [[
"small",
"小图",
"layout-grid"
-]], sM = [[
+]], lM = [[
"fixed",
"固定比例",
"layout-grid"
@@ -31978,127 +31991,127 @@ var aM = [[
"masonry",
"瀑布流",
"columns-2"
-]], cM = .75, lM = () => $j().value, uM = (e = lM()) => Qa(e.javLayout), Mle = (e = lM()) => Qa(e.homeLayout), dM = (e, t = lM()) => e ? Mle(t) : uM(t), fM = oM.map(([e]) => e), pM = sM.map(([e]) => e), mM = (e = lM()) => Zj(e.photoSize, fM, "small"), hM = (e = lM()) => Zj(e.photoLayout, pM, "masonry"), gM = null;
-function _M(e, t = lM()) {
+]], uM = .75, dM = () => tM().value, fM = (e = dM()) => Qa(e.javLayout), Fle = (e = dM()) => Qa(e.homeLayout), pM = (e, t = dM()) => e ? Fle(t) : fM(t), mM = cM.map(([e]) => e), hM = lM.map(([e]) => e), gM = (e = dM()) => $j(e.photoSize, mM, "small"), _M = (e = dM()) => $j(e.photoLayout, hM, "masonry"), vM = null;
+function yM(e, t = dM()) {
let n = {
active: e.active,
- size: dM(e.home, t),
+ size: pM(e.home, t),
portrait: e.portrait,
javImage: t.javImage
- }, r = gM;
- return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (gM = n), gM;
+ }, r = vM;
+ return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (vM = n), vM;
}
-function vM(e) {
- return e.portrait ? 9 / 16 : e.active && e.size === "big" ? cM : 16 / 9;
+function bM(e) {
+ return e.portrait ? 9 / 16 : e.active && e.size === "big" ? uM : 16 / 9;
}
-function Nle(e, t = $j()) {
+function Ile(e, t = tM()) {
t.value.homeLayout = Qa(e), t.save();
}
-function yM(e, t = $j()) {
+function xM(e, t = tM()) {
t.value.javLayout = Qa(e), t.save();
}
-function Ple(e, t = $j()) {
+function Lle(e, t = tM()) {
t.value.homeLayout = t.value.javLayout = Qa(e), t.save();
}
-function Fle(e, t = $j()) {
- t.value.photoSize = Zj(e, fM, "small"), t.save();
+function Rle(e, t = tM()) {
+ t.value.photoSize = $j(e, mM, "small"), t.save();
}
-function bM(e, t = $j()) {
- t.value.photoLayout = Zj(e, pM, "masonry"), t.save();
+function SM(e, t = tM()) {
+ t.value.photoLayout = $j(e, hM, "masonry"), t.save();
}
// src/appearance/density.ts
-var xM = "density", SM = {
+var CM = "density", wM = {
big: "336px",
dense: "168px"
-}, CM = () => localStorage.getItem(xM) === "dense" ? "dense" : "big";
-function wM(e, t) {
- let [n, r] = oM;
+}, TM = () => localStorage.getItem(CM) === "dense" ? "dense" : "big";
+function EM(e, t) {
+ let [n, r] = cM;
if (e.querySelector("[data-icon-swap]")) qs(e, t === r[0] ? "b" : "a");
else {
let i = e.querySelector(":scope > [data-glass-drift]");
e.innerHTML = Ks(n[2], r[2], t === r[0] ? "b" : "a"), i && e.append(i);
}
- TM(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");
+ DM(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");
}
-function TM(e, t, n) {
+function DM(e, t, n) {
e.getAttribute(t) !== n && e.setAttribute(t, n);
}
-var EM = () => document.querySelector("#density");
-function DM(e = CM()) {
+var OM = () => document.querySelector("#density");
+function kM(e = TM()) {
let t = document.documentElement;
- t.style.getPropertyValue("--tile") !== SM[e] && t.style.setProperty("--tile", SM[e]), TM(document.body, "data-density", e);
- let n = EM();
- n && (TM(n, "aria-pressed", String(e === "dense")), TM(n, "title", "当前:" + (e === "big" ? "大图" : "密集")), wM(n, e === "big" ? "big" : "small"));
+ t.style.getPropertyValue("--tile") !== wM[e] && t.style.setProperty("--tile", wM[e]), DM(document.body, "data-density", e);
+ let n = OM();
+ n && (DM(n, "aria-pressed", String(e === "dense")), DM(n, "title", "当前:" + (e === "big" ? "大图" : "密集")), EM(n, e === "big" ? "big" : "small"));
}
-function Ile() {
- let e = CM() === "big" ? "dense" : "big";
- localStorage.setItem(xM, e), DM(e);
+function zle() {
+ let e = TM() === "big" ? "dense" : "big";
+ localStorage.setItem(CM, e), kM(e);
}
-function Lle(e) {
- let t = EM();
- t && (TM(t, "aria-pressed", String(e === "small")), TM(t, "title", "当前:" + (e === "big" ? "大图" : "小图")), wM(t, e));
+function Ble(e) {
+ let t = OM();
+ t && (DM(t, "aria-pressed", String(e === "small")), DM(t, "title", "当前:" + (e === "big" ? "大图" : "小图")), EM(t, e));
}
// src/appearance/glow.ts
-function OM(e = $j()) {
- ble(document.querySelector(".glowlayer"), e.value.homeGlow);
+function AM(e = tM()) {
+ Cle(document.querySelector(".glowlayer"), e.value.homeGlow);
}
-var kM = 0;
-function AM(e = $j()) {
- kM ||= requestAnimationFrame(() => {
- kM = 0, OM(e);
+var jM = 0;
+function MM(e = tM()) {
+ jM ||= requestAnimationFrame(() => {
+ jM = 0, AM(e);
});
}
-function jM(e = $j()) {
- xle(document.documentElement, e.value.homeGlow);
+function NM(e = tM()) {
+ wle(document.documentElement, e.value.homeGlow);
}
-function MM(e = $j()) {
+function PM(e = tM()) {
document.documentElement.dataset.accent = e.value.accent;
}
-var NM = (e, t, n) => ({
+var FM = (e, t, n) => ({
key: e,
label: t,
- native: Rj(e),
- fill: Rj(e) ? "" : yle(n)
+ native: Bj(e),
+ fill: Bj(e) ? "" : Sle(n)
});
-function Rle(e) {
- let t = Lj.map(([e, t, n]) => NM(e, t, Fj.map((e) => n[e].color)));
- return e.preset === "custom" && t.push(NM("custom", "自定义", Fj.map((t) => e[t].color))), t;
+function Vle(e) {
+ let t = zj.map(([e, t, n]) => FM(e, t, Lj.map((e) => n[e].color)));
+ return e.preset === "custom" && t.push(FM("custom", "自定义", Lj.map((t) => e[t].color))), t;
}
-var zle = Vj;
-function Ble(e, t = $j()) {
+var Hle = Uj;
+function Ule(e, t = tM()) {
if (e === "custom") return;
let n = t.value.homeGlow;
- n.preset = e, Object.assign(n, Bj(e)), t.value.accent = mle(e), t.save(), AM(t), jM(t), MM(t);
+ n.preset = e, Object.assign(n, Hj(e)), t.value.accent = _le(e), t.save(), MM(t), NM(t), PM(t);
}
-function Vle(e, t = $j()) {
- t.value.accent = Uj(e), t.save(), MM(t);
+function Wle(e, t = tM()) {
+ t.value.accent = Gj(e), t.save(), PM(t);
}
-function Hle(e = $j()) {
+function Gle(e = tM()) {
let t = e.value.homeGlow;
- t.preset = Kj.preset, Object.assign(t, Bj(t.preset)), e.value.accent = Hj, e.save(), AM(e), jM(e), MM(e);
+ t.preset = Jj.preset, Object.assign(t, Hj(t.preset)), e.value.accent = Wj, e.save(), MM(e), NM(e), PM(e);
}
-function PM(e, t) {
- e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && Rj(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
+function IM(e, t) {
+ e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && Bj(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
}
-function Ule(e, t = $j()) {
- return PM(e, t.value.homeGlow), t.subscribe(() => PM(e, t.value.homeGlow));
+function Kle(e, t = tM()) {
+ return IM(e, t.value.homeGlow), t.subscribe(() => IM(e, t.value.homeGlow));
}
// src/react/components/glow-preset-grid.tsx
-function FM({ store: e, label: t, hidden: n }) {
+function LM({ store: e, label: t, hidden: n }) {
let r = e.value.homeGlow;
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-glow-grid": "",
role: "group",
"aria-label": t,
hidden: n,
- children: Rle(r).map((t) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: Vle(r).map((t) => /* @__PURE__ */ (0, I.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: () => Ble(t.key, e),
+ onClick: () => Ule(t.key, e),
children: /* @__PURE__ */ (0, I.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@ -32109,14 +32122,14 @@ function FM({ store: e, label: t, hidden: n }) {
});
}
// src/react/glow-picker/glow-picker-island.tsx
-var IM = null;
-function Wle(e) {
- IM = e;
+var RM = null;
+function qle(e) {
+ RM = e;
}
-function Gle() {
- return IM ? /* @__PURE__ */ (0, I.jsx)(Kle, { host: IM }) : null;
+function Jle() {
+ return RM ? /* @__PURE__ */ (0, I.jsx)(Yle, { host: RM }) : null;
}
-function Kle({ host: e }) {
+function Yle({ host: e }) {
let { store: t } = e;
(0, F.useSyncExternalStore)(t.subscribe, t.version);
let { homeGlow: n, accent: r } = t.value;
@@ -32128,11 +32141,11 @@ function Kle({ host: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", { children: "光晕" }), /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-preset-reset": "",
- onClick: () => Hle(t),
+ onClick: () => Gle(t),
children: "重置"
})]
}),
- /* @__PURE__ */ (0, I.jsx)(FM, {
+ /* @__PURE__ */ (0, I.jsx)(LM, {
store: t,
label: "光晕",
hidden: !n.on
@@ -32146,14 +32159,14 @@ function Kle({ host: e }) {
"data-accent-grid": "",
role: "group",
"aria-label": "强调色",
- children: zle.map(([e, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: Hle.map(([e, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-chip": "",
"data-accent": e,
"aria-pressed": e === r,
title: n,
"aria-label": n,
- onClick: () => Vle(e, t),
+ onClick: () => Wle(e, t),
children: /* @__PURE__ */ (0, I.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@ -32171,31 +32184,31 @@ function Kle({ host: e }) {
] });
}
// src/player/host.ts
-var LM = null;
-function qle(e) {
- LM = e;
+var zM = null;
+function Xle(e) {
+ zM = e;
}
-function RM() {
- if (!LM) throw Error("播放器还没有接上宿主(configurePlayer)");
- return LM;
+function BM() {
+ if (!zM) throw Error("播放器还没有接上宿主(configurePlayer)");
+ return zM;
}
// src/player/menu.ts
-var zM = null;
-function Jle(e) {
- zM = e;
+var VM = null;
+function Zle(e) {
+ VM = e;
}
-function Yle() {
+function Qle() {
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 BM = null, VM = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
-function HM() {
+var HM = null, UM = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
+function WM() {
let e = document.getElementById("playerMenu");
e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && ls(e, () => {
e.innerHTML = "";
- }), BM &&= (BM(), null);
+ }), HM &&= (HM(), null);
}
-async function Xle(e) {
+async function $le(e) {
try {
return await navigator.clipboard.writeText(e), !0;
} catch {
@@ -32208,8 +32221,8 @@ async function Xle(e) {
return t.remove(), n;
}
}
-function Zle(e) {
- let t = !!zM?.inMiniplayer(e), n = e.peachItem, r = zM?.kind(e) ?? "item", i = (t) => {
+function eue(e) {
+ let t = !!VM?.inMiniplayer(e), n = e.peachItem, r = VM?.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);
@@ -32225,7 +32238,7 @@ function Zle(e) {
}
return t && i.searchParams.set("t", String(Math.floor(e.currentTime() || 0))), i.href;
}, a = (e, t) => {
- Xle(i(e)).then((e) => RM().toast(e ? t : "复制失败,请手动复制地址栏", {
+ $le(i(e)).then((e) => BM().toast(e ? t : "复制失败,请手动复制地址栏", {
timeout: 4e3,
warn: !e
}));
@@ -32237,11 +32250,11 @@ function Zle(e) {
}, t ? {
icon: "maximize-2",
label: "展开",
- run: () => zM?.expand()
+ run: () => VM?.expand()
} : {
icon: "picture-in-picture-2",
label: "迷你播放器",
- run: () => zM?.toMiniplayer()
+ run: () => VM?.toMiniplayer()
}];
document.pictureInPictureEnabled && o.push({
icon: "player-pip",
@@ -32264,29 +32277,29 @@ function Zle(e) {
run: () => s.click()
}), o;
}
-function Qle(e, t, n) {
- let r = Yle();
- HM();
- let i = RM().stage();
+function tue(e, t, n) {
+ let r = Qle();
+ WM();
+ let i = BM().stage();
i instanceof HTMLDialogElement && i.open && i.append(r), r.setAttribute("popover", "manual");
- let a = Zle(e);
+ let a = eue(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}">${VM(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${z(e.label)}</span>${n ? VM(R("check"), "data-player-menu-check") : ""}</button>`;
+ return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${UM(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${z(e.label)}</span>${n ? UM(R("check"), "data-player-menu-check") : ""}</button>`;
}).join(""), cs(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)];
- HM(), n?.run();
+ WM(), n?.run();
};
});
let s = (e) => {
- r.contains(e.target) || HM();
+ r.contains(e.target) || WM();
}, c = (e) => {
if (e.key === "Escape") {
- e.preventDefault(), e.stopPropagation(), HM();
+ e.preventDefault(), e.stopPropagation(), WM();
return;
}
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
@@ -32294,49 +32307,49 @@ function Qle(e, t, n) {
let t = o.indexOf(document.activeElement);
o[(t + (e.key === "ArrowDown" ? 1 : -1) + o.length) % o.length]?.focus();
}, l = (t) => {
- ds(t, e.el()) && HM();
+ ds(t, e.el()) && WM();
};
setTimeout(() => {
document.addEventListener("pointerdown", s, !0), document.addEventListener("keydown", c, !0), window.addEventListener("scroll", l, {
capture: !0,
passive: !0
});
- }, 0), BM = () => {
+ }, 0), HM = () => {
document.removeEventListener("pointerdown", s, !0), document.removeEventListener("keydown", c, !0), window.removeEventListener("scroll", l, !0);
}, o[0]?.focus();
}
-function $le(e) {
+function nue(e) {
e.el().addEventListener("contextmenu", (t) => {
- t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), Qle(e, t.clientX, t.clientY));
- }), e.on("dispose", HM);
+ t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), tue(e, t.clientX, t.clientY));
+ }), e.on("dispose", WM);
}
// src/player/registry.ts
-var UM = null, WM = () => UM;
-function GM(e) {
- UM = e;
+var GM = null, KM = () => GM;
+function qM(e) {
+ GM = e;
}
-function KM(e) {
+function JM(e) {
e && !e.isDisposed() && requestAnimationFrame(() => {
e.isDisposed() || e.trigger("resize");
});
}
// src/player/stats.ts
-function qM(e) {
+function YM(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 eue(e) {
+function rue(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 JM = 3e3;
-function YM(e, t) {
+var XM = 3e3;
+function ZM(e, t) {
let n = Number(e) || 0, r = qn(t) || 0;
return n > 0 && r > 0 ? n * 8 / r : 0;
}
-function tue(e) {
+function iue(e) {
let t = [], n = null, r = 0, i = 0;
return {
bitrate: Number(e) || 0,
@@ -32351,10 +32364,10 @@ function tue(e) {
},
sample(e) {
if (!e) return i;
- let a = performance.now(), o = eue(e), s = e.currentTime || 0;
+ let a = performance.now(), o = rue(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 > JM * 2 && (t.length = 0);
+ !i && c > 0 && (r += c), e * 1e3 > XM * 2 && (t.length = 0);
}
for (n = {
at: a,
@@ -32363,55 +32376,55 @@ function tue(e) {
}, t.push({
at: a,
advanced: r
- }); t.length > 2 && a - t[0].at > JM;) t.shift();
+ }); t.length > 2 && a - t[0].at > XM;) 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 XM = 24;
-function ZM(e, t) {
- e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > XM && e.splice(0, e.length - XM);
+var QM = 24;
+function $M(e, t) {
+ e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > QM && e.splice(0, e.length - QM);
}
-var QM = "peach-player-panel";
-function $M(e, t, n, r) {
- let i = [...Array(Math.max(0, XM - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
+var eN = "peach-player-panel";
+function tN(e, t, n, r) {
+ let i = [...Array(Math.max(0, QM - 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="${z(r)}">${o}</span>`;
}
-function nue() {
+function aue() {
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 eN(e, t = "") {
+function nN(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 tN(e, t = "") {
- let n = eN(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 rN(e, t = "") {
+ let n = nN(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 nN(e, t, n = "", r = null) {
+function iN(e, t, n = "", r = null) {
let i = 0;
try {
i = Number(e?.bandwidth?.()) || 0;
} catch {}
- return i > 0 ? i : r ? Number(r.bits) || 0 : tN(t, n);
+ return i > 0 ? i : r ? Number(r.bits) || 0 : rN(t, n);
}
-function rN(e) {
+function aN(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 rue(e, t) {
- return e > 0 ? rN(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : rN(0);
+function oue(e, t) {
+ return e > 0 ? aN(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : aN(0);
}
// src/player/subtitle-style.ts
-var iN = {
+var oN = {
font: {
label: "字体",
values: [
@@ -32514,7 +32527,7 @@ var iN = {
["shadow", "阴影"]
]
}
-}, aN = {
+}, sN = {
font: "sans",
size: "100",
color: "white",
@@ -32524,7 +32537,7 @@ var iN = {
window: "black",
windowOpacity: "0",
edge: "shadow"
-}, oN = "peach.caption-style.v1", iue = {
+}, cN = "peach.caption-style.v1", sue = {
white: "255,255,255",
yellow: "255,255,0",
green: "0,255,0",
@@ -32533,7 +32546,7 @@ var iN = {
magenta: "255,0,255",
red: "255,0,0",
black: "0,0,0"
-}, aue = {
+}, cue = {
sans: "Arial,sans-serif",
mono: "Consolas,monospace",
serif: "Georgia,serif",
@@ -32541,28 +32554,28 @@ var iN = {
casual: "\"Comic Sans MS\",sans-serif",
cursive: "cursive",
"small-caps": "Arial,sans-serif"
-}, oue = {
+}, lue = {
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 sue() {
+function uue() {
let e = {};
try {
- e = JSON.parse(localStorage.getItem(oN) || "{}") || {};
+ e = JSON.parse(localStorage.getItem(cN) || "{}") || {};
} catch {}
- return Object.fromEntries(Object.entries(aN).map(([t, n]) => [t, iN[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
+ return Object.fromEntries(Object.entries(sN).map(([t, n]) => [t, oN[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
}
-function sN(e, t, n, r) {
- let i = sue(), a = /* @__PURE__ */ new Set(), o = document.createElement("div");
+function lN(e, t, n, r) {
+ let i = uue(), a = /* @__PURE__ */ new Set(), o = document.createElement("div");
o.className = "vjs-peach-captions", o.setAttribute("aria-hidden", "true");
let s = document.createElement("div");
s.className = "vjs-peach-caption-window", o.append(s), e.querySelector("media-container").append(o), e.dataset.peachCaptions = "";
let c = () => {
- let t = (e, t) => `rgba(${iue[e]},${Number(t) / 100})`;
- e.style.setProperty("--peach-caption-font", aue[i.font]), e.style.setProperty("--peach-caption-scale", String(Number(i.size) / 100)), e.style.setProperty("--peach-caption-color", t(i.color, i.opacity)), e.style.setProperty("--peach-caption-background", t(i.background, i.backgroundOpacity)), e.style.setProperty("--peach-caption-window", t(i.window, i.windowOpacity)), e.style.setProperty("--peach-caption-edge", oue[i.edge]), e.style.setProperty("--peach-caption-variant", i.font === "small-caps" ? "small-caps" : "normal");
+ let t = (e, t) => `rgba(${sue[e]},${Number(t) / 100})`;
+ e.style.setProperty("--peach-caption-font", cue[i.font]), e.style.setProperty("--peach-caption-scale", String(Number(i.size) / 100)), e.style.setProperty("--peach-caption-color", t(i.color, i.opacity)), e.style.setProperty("--peach-caption-background", t(i.background, i.backgroundOpacity)), e.style.setProperty("--peach-caption-window", t(i.window, i.windowOpacity)), e.style.setProperty("--peach-caption-edge", lue[i.edge]), e.style.setProperty("--peach-caption-variant", i.font === "small-caps" ? "small-caps" : "normal");
}, l = () => {
s.replaceChildren();
for (let e of t.textTracks) if (e.mode === "showing" && ["subtitles", "captions"].includes(e.kind)) for (let t of Array.from(e.activeCues || [])) {
@@ -32578,15 +32591,15 @@ function sN(e, t, n, r) {
if (!n.aborted) {
if (e.caption_style) {
let t = {
- ...aN,
+ ...sN,
...e.caption_style
};
- for (let e of Object.keys(aN)) a.has(e) || (i[e] = t[e]);
+ for (let e of Object.keys(sN)) a.has(e) || (i[e] = t[e]);
c();
} else {
let e = !1;
try {
- e = !!localStorage.getItem(oN);
+ e = !!localStorage.getItem(cN);
} catch {}
e && !a.size && r.save({ caption_style: i }).catch(() => {});
}
@@ -32594,18 +32607,18 @@ function sN(e, t, n, r) {
}), {
current: () => i,
set(e, t) {
- iN[e].values.some(([e]) => e === t) && (a.add(e), i = {
+ oN[e].values.some(([e]) => e === t) && (a.add(e), i = {
...i,
[e]: t
}, c(), r?.save({ caption_style: { [e]: t } }).catch(() => {}));
},
reset() {
- Object.keys(aN).forEach((e) => a.add(e)), i = { ...aN }, c(), r?.save({ caption_style: i }).catch(() => {});
+ Object.keys(sN).forEach((e) => a.add(e)), i = { ...sN }, c(), r?.save({ caption_style: i }).catch(() => {});
}
};
}
// src/player/memory.ts
-var cN = /* @__PURE__ */ new Map(), lN = /* @__PURE__ */ new WeakMap(), cue = class {
+var uN = /* @__PURE__ */ new Map(), dN = /* @__PURE__ */ new WeakMap(), due = class {
cleanup = new AbortController();
reading;
listeners = /* @__PURE__ */ new Set();
@@ -32633,7 +32646,7 @@ var cN = /* @__PURE__ */ new Map(), lN = /* @__PURE__ */ new WeakMap(), cue = cl
}
load() {
return this.url ? this.reading ||= (async () => {
- await cN.get(this.url)?.catch(() => {});
+ await uN.get(this.url)?.catch(() => {});
let e = await Tn(this.url, { signal: this.cleanup.signal });
return this.cleanup.signal.aborted || (this.restored = e, this.restorers.forEach((t) => t(e)), this.changed()), e;
})().catch((e) => {
@@ -32645,7 +32658,7 @@ var cN = /* @__PURE__ */ new Map(), lN = /* @__PURE__ */ new WeakMap(), cue = cl
}
save(e) {
if (!this.url) return Promise.resolve();
- let t = (cN.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
+ let t = (uN.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
let t = {
...this.unsaved,
...e,
@@ -32672,8 +32685,8 @@ var cN = /* @__PURE__ */ new Map(), lN = /* @__PURE__ */ new WeakMap(), cue = cl
this.changed();
}
});
- return cN.set(this.url, t), t.finally(() => {
- cN.get(this.url) === t && cN.delete(this.url);
+ return uN.set(this.url, t), t.finally(() => {
+ uN.get(this.url) === t && uN.delete(this.url);
}).catch(() => {}), t;
}
async retry() {
@@ -32682,12 +32695,12 @@ var cN = /* @__PURE__ */ new Map(), lN = /* @__PURE__ */ new WeakMap(), cue = cl
} catch {}
}
};
-function uN(e) {
- let t = lN.get(e);
- return t || (t = new cue(e), lN.set(e, t)), t;
+function fN(e) {
+ let t = dN.get(e);
+ return t || (t = new due(e), dN.set(e, t)), t;
}
-function dN(e, t) {
- let n = uN(e), r = Number(e.playbackRate()) || 1, i = !1, a = () => {
+function pN(e, t) {
+ let n = fN(e), r = Number(e.playbackRate()) || 1, i = !1, a = () => {
t.defaultPlaybackRate = r, Number(e.playbackRate()) !== r && e.playbackRate(r);
};
return n.restore((t) => {
@@ -32700,7 +32713,7 @@ function dN(e, t) {
};
}
// src/player/subtitle-memory.ts
-var fN = class {
+var mN = class {
player;
video;
changed;
@@ -32711,7 +32724,7 @@ var fN = class {
ready;
error = "";
constructor(e, t, n = () => {}) {
- this.player = e, this.video = t, this.changed = n, this.memory = uN(e);
+ this.player = e, this.video = t, this.changed = n, this.memory = fN(e);
let r = this.cleanup.signal;
t.textTracks.addEventListener("addtrack", () => {
this.apply(), this.changed();
@@ -32808,7 +32821,7 @@ var fN = class {
throw a.remove(), URL.revokeObjectURL(i), e;
}
}
-}, pN = () => "<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>", lue = class {
+}, hN = () => "<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>", fue = class {
player;
video;
panels;
@@ -32827,7 +32840,7 @@ var fN = class {
more = !1;
searched = !1;
constructor(e, t, n) {
- this.player = e, this.video = t, this.panels = n, this.styles = sN(e.el(), t, this.cleanup.signal, uN(e)), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = pN(), this.cc.onclick = () => {
+ this.player = e, this.video = t, this.panels = n, this.styles = lN(e.el(), t, this.cleanup.signal, fN(e)), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = hN(), 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", () => {
@@ -32837,7 +32850,7 @@ var fN = class {
this.sync(), this.page === "tracks" && this.show(0);
}, { signal: this.cleanup.signal }), e.on("dispose", () => {
this.hide(), this.cleanup.abort();
- }), this.session = new fN(e, t, () => {
+ }), this.session = new mN(e, t, () => {
this.sync(), this.page === "tracks" && this.show(0);
}), this.sync();
}
@@ -32885,7 +32898,7 @@ var fN = 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(iN).map(([e, n]) => {
+ let t = this.styles.current(), n = this.panel(this.header("字幕选项") + `<div class="vjs-peach-panel-menu">${Object.entries(oN).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>${z(n.label)}</span><b>${z(r)}</b>${R("player-menu-next")}</button>`;
}).join("")}<button type="button" class="vjs-peach-caption-action" data-subtitle-reset>重置</button></div>`, () => this.show(-1), e);
@@ -32897,7 +32910,7 @@ var fN = class {
}
styleOptions(e) {
this.page = "style";
- let t = iN[e];
+ let t = oN[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="${z(t)}"><span class="vjs-peach-option-check">${r ? R("check") : ""}</span><span class="vjs-peach-option-label">${z(n)}</span></button>`;
@@ -33013,7 +33026,7 @@ var fN = class {
}
};
// src/player/timeline.ts
-function uue(e, t) {
+function pue(e, t) {
if (!Number.isFinite(e) || e < 0 || t.frames <= 0) return null;
if (!t.cues?.length) return t.interval > 0 ? Math.min(t.frames - 1, Math.floor(e / t.interval)) : null;
let n = 0, r = t.cues.length;
@@ -33024,8 +33037,8 @@ function uue(e, t) {
let i = n - 1, a = t.cues[i];
return !a || e >= a[1] && (i !== t.cues.length - 1 || e !== a[1]) ? null : i;
}
-function due(e, t) {
- let n = uue(e, t);
+function mue(e, t) {
+ let n = pue(e, t);
if (n === null) return null;
let r = t.columns || 10, i = r * (t.rows || 10), a = Math.floor(n / i);
return {
@@ -33035,15 +33048,15 @@ function due(e, t) {
rows: Math.ceil(Math.min(i, t.frames - a * i) / r)
};
}
-function fue(e, t, n, r = 0) {
+function hue(e, t, n, r = 0) {
return n + r * 2 >= t ? t / 2 : Math.min(t - r - n / 2, Math.max(r + n / 2, e));
}
-function pue(e) {
+function gue(e) {
if (!e || (e.source || "peach") !== "peach" || e.cues?.length || !(e.interval > 0) || e.frames <= 0) return 0;
let t = Math.ceil(e.frames / ((e.columns || 10) * (e.rows || 10)));
return t <= 12 ? t : 0;
}
-function mN(e, t, n = {}) {
+function gN(e, t, n = {}) {
let r = !!t?.id && n.thumbnail !== !1, i = document.createElement("div");
i.className = "vjs-peach-seek-preview", i.dataset.playerSeekPreview = "", i.hidden = !0, i.innerHTML = `${r ? "<i class=\"vjs-peach-seek-frame\" hidden><img alt=\"\"></i>" : ""}<span class="mono">0:00</span>`, e.append(i);
let a = i.querySelector(".vjs-peach-seek-frame"), o = i.querySelector("img"), s = i.querySelector("span"), c = encodeURIComponent(String(t?.id ?? "")), l = (e, t) => {
@@ -33051,7 +33064,7 @@ function mN(e, t, n = {}) {
};
t?.width && t.height && l(t.width, t.height);
let u = null, d = "", f = !1, p = -1, m = !1, h = !1, g = t?.has_thumb !== !0, _ = [], v = (e, t) => `/timeline?id=${c}&s=${t}&source=${encodeURIComponent(e.source || "peach")}`, y = () => {
- if (m && u) for (let e of [u, u.fallback]) for (let t = 0; t < pue(e); t++) {
+ if (m && u) for (let e of [u, u.fallback]) for (let t = 0; t < gue(e); t++) {
let n = v(e, t);
if (_.some((e) => e.dataset.source === n)) continue;
let r = new Image();
@@ -33062,7 +33075,7 @@ function mN(e, t, n = {}) {
!h && e && e.frames > 0 && (e.interval > 0 || e.cues?.length) && (u = e, y());
}).catch(() => {});
let b = (e, n) => {
- let r = due(e, n);
+ let r = mue(e, n);
if (!r || !a || !o) return !1;
f = !!n.cues, !f && t?.width && t.height && l(t.width, t.height);
let i = v(n, r.page);
@@ -33089,7 +33102,7 @@ function mN(e, t, n = {}) {
let o = Math.min(1, Math.max(0, t)), c = r * o;
s.textContent = Yn(c), a && !(u && b(c, u)) && !(u?.fallback && b(c, u.fallback)) && x(o), i.hidden = !1;
let l = e.getBoundingClientRect().width;
- i.style.left = `${fue(o * l, l, i.offsetWidth, n.inset)}px`;
+ i.style.left = `${hue(o * l, l, i.offsetWidth, n.inset)}px`;
},
hide() {
i.hidden = !0;
@@ -33100,8 +33113,8 @@ function mN(e, t, n = {}) {
};
}
// src/player/rotation.ts
-function hN(e, t) {
- let n = 0, r = !1, i = uN(e), a = e.el(), o = a.querySelector("media-container") || a, s = [
+function _N(e, t) {
+ let n = 0, r = !1, i = fN(e), a = e.el(), o = a.querySelector("media-container") || a, s = [
"width",
"height",
"inset",
@@ -33129,7 +33142,7 @@ function hN(e, t) {
};
}
// src/player/pip.ts
-function mue(e, t, n, r) {
+function _ue(e, t, n, r) {
let i = e.el().querySelector("video");
if (!i || !t) return;
let a = t, o = !!document.pictureInPictureEnabled && typeof i.requestPictureInPicture == "function" || typeof i.webkitSetPresentationMode == "function";
@@ -33161,7 +33174,7 @@ function mue(e, t, n, r) {
});
}
// src/player/controls.ts
-function gN(e, t, n = "") {
+function vN(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));
@@ -33172,27 +33185,27 @@ function gN(e, t, n = "") {
};
return o(), o;
}
-function _N(e, t) {
+function yN(e, t) {
e?.closest(".video-js")?.querySelector(`.vjs-control-bar ${t}`)?.click();
}
-function hue(e, t = !0) {
- let n = RM(), r = n.settings();
+function vue(e, t = !0) {
+ let n = BM(), 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 vN = /* @__PURE__ */ new WeakMap();
-function yN(e) {
+var bN = /* @__PURE__ */ new WeakMap();
+function xN(e) {
if (!e) return;
- let t = RM().settings().theaterMode;
- e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), vN.get(e)?.(t ? "默认视图" : "影院模式");
+ let t = BM().settings().theaterMode;
+ e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), bN.get(e)?.(t ? "默认视图" : "影院模式");
}
-function bN(e, t = !0) {
- let n = RM(), r = n.settings();
+function SN(e, t = !0) {
+ let n = BM(), r = n.settings();
r.theaterMode = !!e, t && n.saveSettings();
let i = n.stage();
- i?.toggleAttribute("data-theater", r.theaterMode), yN(i?.querySelector("[data-player-theater]")), KM(WM());
+ i?.toggleAttribute("data-theater", r.theaterMode), xN(i?.querySelector("[data-player-theater]")), JM(KM());
}
-function gue(e) {
- let t = RM().stage(), n = t?.querySelector("[data-ambient-canvas]");
+function yue(e) {
+ let t = BM().stage(), n = t?.querySelector("[data-ambient-canvas]");
if (!t || !n) return () => {};
let r = n.getContext("2d", { alpha: !1 });
if (!r) return () => {};
@@ -33215,9 +33228,9 @@ function gue(e) {
}, u = (t) => {
e.requestVideoFrameCallback ? e.requestVideoFrameCallback((e) => d(t, e)) : requestAnimationFrame((e) => d(t, e));
}, d = (t, n) => {
- i || t !== o || (RM().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
+ i || t !== o || (BM().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
}, f = () => {
- !i && RM().settings().ambientMode && (l(), e.paused || u(++o));
+ !i && BM().settings().ambientMode && (l(), e.paused || u(++o));
}, p = (e) => {
let n = !!e.detail.enabled;
t.toggleAttribute("data-ambient", n), n ? f() : (o++, c());
@@ -33226,7 +33239,7 @@ function gue(e) {
i = !0, o++, document.removeEventListener("peachambientchange", p), e.removeEventListener("play", f), e.removeEventListener("loadeddata", f), c();
};
}
-function xN(e, t, n = 0, r = null) {
+function CN(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");
@@ -33236,8 +33249,8 @@ function xN(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]");
- gN(s, "设置");
- let l = a.querySelector(".vjs-peach-settings-menu"), u = hN(e, t), d = dN(e, t), f = uN(e), p, m = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, h = r, g = "auto", _ = (e, t) => {
+ vN(s, "设置");
+ let l = a.querySelector(".vjs-peach-settings-menu"), u = _N(e, t), d = pN(e, t), f = fN(e), p, m = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, h = r, g = "auto", _ = (e, t) => {
let n = [Number(e), Number(t)].filter((e) => e > 0);
return n.length ? Math.min(...n) : 0;
}, v = () => {
@@ -33276,11 +33289,11 @@ function xN(e, t, n = 0, r = null) {
active: n
};
}, b = () => l.getAttribute("aria-hidden") !== "true", x = (e) => {
- l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e || p?.hide(), e && document.dispatchEvent(new CustomEvent(QM, { detail: "settings" }));
+ l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e || p?.hide(), e && document.dispatchEvent(new CustomEvent(eN, { detail: "settings" }));
}, S = () => x(!1), C = (e) => {
e.detail !== "settings" && S();
};
- document.addEventListener(QM, C);
+ document.addEventListener(eN, C);
let w = null, T = 0, E = (e, t) => {
let n = ++T;
w && (clearTimeout(w), w = null, l.classList.remove("vjs-peach-popup-animating"), l.style.height = ""), l.querySelectorAll(".vjs-peach-panel-leaving").forEach((e) => e.remove()), l.scrollTop = 0;
@@ -33296,15 +33309,15 @@ function xN(e, t, n = 0, r = null) {
}), i;
}, D = (e, t) => e.querySelector(t), O = "main", k = (e = 0) => {
O = "main";
- let { active: t } = y(), n = d.current(), r = E(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${RM().settings().ambientMode}">
+ let { active: t } = y(), n = d.current(), r = E(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${BM().settings().ambientMode}">
${R("player-ambient")}<span>氛围模式</span><i class="vjs-peach-switch" aria-hidden="true"></i></button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-speed>${R("player-speed")}<span>播放速度</span><b>${n === 1 ? "正常" : `${n}×`}</b>${R("player-menu-next")}</button>
- <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-subtitles><span class="vjs-peach-menu-cc" aria-hidden="true">${pN()}</span><span>字幕</span><b>${z(p?.label() || "关闭")}</b>${R("player-menu-next")}</button>
+ <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-subtitles><span class="vjs-peach-menu-cc" aria-hidden="true">${hN()}</span><span>字幕</span><b>${z(p?.label() || "关闭")}</b>${R("player-menu-next")}</button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-rotation>${R("rotate-cw", "vjs-peach-menu-line-icon")}<span>画面旋转</span><b>${u.angle()}°</b>${R("player-menu-next")}</button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-quality-view>${R("player-quality")}<span>清晰度</span><b>${z(t.label)}</b>${R("player-menu-next")}</button>
<div data-player-memory-error hidden><p class="vjs-peach-subtitle-status" role="status"></p><button type="button" class="vjs-peach-menu-row" data-player-memory-retry>重试保存播放记忆</button></div></div>`, e);
D(r, "[data-player-ambient]").onclick = () => {
- hue(!RM().settings().ambientMode), k();
+ vue(!BM().settings().ambientMode), k();
}, D(r, "[data-player-speed]").onclick = () => te(), D(r, "[data-player-subtitles]").onclick = () => p?.show(), D(r, "[data-player-quality-view]").onclick = () => ne(), D(r, "[data-player-rotation]").onclick = () => j(), D(r, "[data-player-memory-retry]").onclick = () => {
f.retry();
}, A();
@@ -33408,8 +33421,8 @@ function xN(e, t, n = 0, r = null) {
A(), re();
});
return e.on("dispose", () => {
- I(), t.removeEventListener("loadedmetadata", re), t.removeEventListener("resize", re), t.removeEventListener("ratechange", re), T++, document.removeEventListener("pointerdown", F), document.removeEventListener(QM, C), w && clearTimeout(w);
- }), p = new lue(e, t, {
+ I(), t.removeEventListener("loadedmetadata", re), t.removeEventListener("resize", re), t.removeEventListener("ratechange", re), T++, document.removeEventListener("pointerdown", F), document.removeEventListener(eN, C), w && clearTimeout(w);
+ }), p = new fue(e, t, {
render: E,
open: () => {
O = "subtitles", x(!0);
@@ -33418,21 +33431,21 @@ function xN(e, t, n = 0, r = null) {
back: () => {
p?.hide(), k(-1);
}
- }), y(), _ue(e, a), vue(e), (e) => {
+ }), y(), bue(e, a), xue(e), (e) => {
h = e?.length ? e : null, re();
};
}
-function _ue(e, t) {
+function bue(e, t) {
let n = e.el().querySelector(".vjs-control-bar");
if (!n || n.querySelector("[data-player-theater]")) return;
- let r = RM().settings().theaterMode, i = document.createElement("div");
+ let r = BM().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");
- vN.set(a, gN(a, "影院模式", "T")), yN(a), a.onclick = (e) => {
- e.stopPropagation(), bN(!RM().settings().theaterMode);
+ bN.set(a, vN(a, "影院模式", "T")), xN(a), a.onclick = (e) => {
+ e.stopPropagation(), SN(!BM().settings().theaterMode);
};
}
-function vue(e) {
+function xue(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");
@@ -33444,7 +33457,7 @@ function vue(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 = gN(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 = vN(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 ? "播放" : "暂停");
};
@@ -33455,7 +33468,7 @@ function vue(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 = gN(p, "静音", "M"), g = () => {
+ let h = vN(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 ? "取消静音" : "静音");
};
@@ -33481,7 +33494,7 @@ function vue(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 = gN(x, "显示剩余时间"), T = () => {
+ let C = x.querySelector(".vjs-peach-time-text"), w = vN(x, "显示剩余时间"), T = () => {
let t = Math.max(0, Number(e.currentTime()) || 0), n = Math.max(0, Number(e.duration()) || 0), r = Yn(Math.max(0, n - t));
C.textContent = `${S ? `-${r}` : Yn(t)} / ${Yn(n)}`, x.dataset.remaining = String(S), w(S ? "显示已播放时间" : "显示剩余时间", S ? `剩余 ${r},总时长 ${Yn(n)};点击显示已播放时间` : `已播放 ${Yn(t)},总时长 ${Yn(n)};点击显示剩余时间`);
};
@@ -33493,10 +33506,10 @@ function vue(e) {
"loadedmetadata"
], T), T(), f ? f.insertAdjacentElement("afterend", x) : t.append(x);
let E = t.querySelector(":scope>.vjs-picture-in-picture-control");
- gN(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip"), mue(e, E, gN(E, "画中画"), (e) => RM().toast(e, { warn: !0 }));
- let D = t.querySelector(":scope>.vjs-fullscreen-control"), O = r(D, "player-fullscreen-enter"), k = gN(D, "全屏", "F"), A = () => {
+ vN(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip"), _ue(e, E, vN(E, "画中画"), (e) => BM().toast(e, { warn: !0 }));
+ let D = t.querySelector(":scope>.vjs-fullscreen-control"), O = r(D, "player-fullscreen-enter"), k = vN(D, "全屏", "F"), A = () => {
let t = !!e.isFullscreen();
- e.el().toggleAttribute("data-peach-fullscreen", t), O?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), k(t ? "退出全屏" : "全屏"), KM(e);
+ e.el().toggleAttribute("data-peach-fullscreen", t), O?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), k(t ? "退出全屏" : "全屏"), JM(e);
};
e.on([
"fullscreenchange",
@@ -33517,7 +33530,7 @@ function vue(e) {
});
let ee = document.createElement("div");
ee.className = "vjs-peach-expand vjs-control", ee.innerHTML = `<button type="button" data-player-expand aria-expanded="false">${R("player-expand")}</button><span class="vjs-peach-hover" aria-hidden="true"></span>`, M.prepend(ee);
- let N = ee.querySelector("button"), te = gN(N, "展开控件"), P = (t) => {
+ let N = ee.querySelector("button"), te = vN(N, "展开控件"), P = (t) => {
e.el().classList.toggle("vjs-peach-right-expanded", t), N.setAttribute("aria-expanded", String(t)), te(t ? "收起控件" : "展开控件");
};
N.onclick = (t) => {
@@ -33529,10 +33542,10 @@ function vue(e) {
}, re = new ResizeObserver(ne);
re.observe(e.el()), e.on("dispose", () => re.disconnect()), P(!1), ne();
}
-function SN(e, t, n = {}) {
+function wN(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 = mN(r, t, n), a = (n) => {
+ let i = gN(r, t, n), a = (n) => {
let a = qn(e.duration()) || qn(t?.duration);
if (!a) return;
let o = r.getBoundingClientRect();
@@ -33552,13 +33565,13 @@ function SN(e, t, n = {}) {
i.dispose();
});
}
-function yue(e, t) {
+function Sue(e, t) {
let n = navigator.mediaSession;
if (!n || typeof n.setActionHandler != "function") return;
let r = () => qn(e.duration()) || qn(t.duration) || 0, i = (t) => {
let n = r();
e.currentTime(Math.max(0, n ? Math.min(n, t) : t));
- }, a = () => Math.max(1, Number(RM().settings().seekSeconds) || 10), o = [
+ }, a = () => Math.max(1, Number(BM().settings().seekSeconds) || 10), o = [
["play", () => {
e.play();
}],
@@ -33599,11 +33612,11 @@ function yue(e, t) {
} catch {}
});
}
-function CN(e) {
+function TN(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 wN(e, t) {
+function EN(e, t) {
Tn(`/api/assets/${t}/subtitles`).then((t) => {
e && !e.isDisposed() && (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {
e.addRemoteTextTrack({
@@ -33619,35 +33632,35 @@ function wN(e, t) {
}).catch(() => {});
}
// src/player/progress.ts
-var TN = "peach.playback-position.v1", EN = /* @__PURE__ */ new WeakMap();
-function DN(e) {
- EN.get(e)?.(), EN.delete(e);
+var DN = "peach.playback-position.v1", ON = /* @__PURE__ */ new WeakMap();
+function kN(e) {
+ ON.get(e)?.(), ON.delete(e);
}
-function ON(e, t, n = null) {
+function AN(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 bue(e) {
+function Cue(e) {
try {
- let t = localStorage.getItem(`${TN}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
+ let t = localStorage.getItem(`${DN}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
return Number.isFinite(n) && n >= 0 ? n : null;
} catch {
return null;
}
}
-function xue(e, t) {
- let n = bue(e);
+function wue(e, t) {
+ let n = Cue(e);
if (n !== null) return n;
let r = Number(t.leave_ratio);
return r > 0 && r < 1 ? r * qn(t.duration) : 0;
}
-function Sue(e, t) {
- DN(t);
+function Tue(e, t) {
+ kN(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(`${TN}:${e}`, String(r));
+ localStorage.setItem(`${DN}:${e}`, String(r));
} catch {}
}, i = () => {
n = !0;
@@ -33661,7 +33674,7 @@ function Sue(e, t) {
"pause",
"ended"
]) t.addEventListener(e, r);
- window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), EN.set(t, () => {
+ window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), ON.set(t, () => {
r(), t.removeEventListener("loadedmetadata", i), t.removeEventListener("emptied", a);
for (let e of [
"timeupdate",
@@ -33673,19 +33686,19 @@ function Sue(e, t) {
});
}
// src/player/telemetry.ts
-var kN = /* @__PURE__ */ new WeakMap();
-function AN(e) {
- kN.get(e)?.(), kN.delete(e);
+var jN = /* @__PURE__ */ new WeakMap();
+function MN(e) {
+ jN.get(e)?.(), jN.delete(e);
}
-function jN(e, t, n, r) {
+function NN(e, t, n, r) {
let i = () => t(!1), a = () => {
n(), t(!1);
};
- e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), kN.set(e, () => {
+ e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), jN.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 MN(e, t, n = {}) {
+function PN(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 = qn(e.duration) || qn(t.duration);
@@ -33726,11 +33739,11 @@ function MN(e, t, n = {}) {
u(), l(!1);
}, t.onended = () => {
u(), l(!0), n.onEnded?.();
- }, jN(t, l, u, () => {
+ }, NN(t, l, u, () => {
a++;
}), c();
}
-function Cue(e, t) {
+function Eue(e, t) {
let n = 0, r = 0, i = !1, a = null, o = (n) => {
let i = qn(e.duration) || qn(t.duration);
(r || n) && (Tn("/api/follow/activity", {
@@ -33761,22 +33774,22 @@ function Cue(e, t) {
s(), o(!1);
}, t.onended = () => {
s(), o(!0);
- }, jN(t, o, s, () => {});
+ }, NN(t, o, s, () => {});
}
// src/player/dispose.ts
-function NN(e) {
+function FN(e) {
if (!e || e.isDisposed()) return;
let t = e.el()?.querySelector("video");
try {
e.pause();
} catch {}
- t && (DN(t), AN(t));
+ t && (kN(t), MN(t));
try {
e.dispose();
} catch {}
}
// src/core/random-id.ts
-function PN() {
+function IN() {
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;
@@ -33784,23 +33797,23 @@ function PN() {
return `${t.slice(0, 8)}-${t.slice(8, 12)}-${t.slice(12, 16)}-${t.slice(16, 20)}-${t.slice(20)}`;
}
// src/player/stream.ts
-function FN() {
- return PN();
+function LN() {
+ return IN();
}
-function IN(e, t) {
+function RN(e, t) {
return {
src: `/stream?id=${e.id}&session=${encodeURIComponent(t)}`,
type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"
};
}
-function wue(e) {
+function Due(e) {
return e.location === "online" && e.follow_item_id ? {
src: `/follow-stream?id=${e.follow_item_id}`,
type: "video/mp4"
} : null;
}
-async function LN(e, t) {
- let n = wue(e);
+async function zN(e, t) {
+ let n = Due(e);
if (n) return n;
try {
let n = await Tn(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(t)}`);
@@ -33809,9 +33822,9 @@ async function LN(e, t) {
type: n.mime_type || (n.protocol === "hls" ? "application/vnd.apple.mpegurl" : "video/mp4")
};
} catch {}
- return IN(e, t);
+ return RN(e, t);
}
-function RN(e) {
+function BN(e) {
e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {
method: "POST",
credentials: "same-origin",
@@ -33820,22 +33833,22 @@ function RN(e) {
document.documentElement.dataset.peachStreamCancel = JSON.stringify(e);
}).catch(() => {});
}
-var zN = "";
-function BN() {
- return zN;
+var VN = "";
+function HN() {
+ return VN;
}
-function VN() {
- return zN ||= FN(), zN;
+function UN() {
+ return VN ||= LN(), VN;
}
-var Tue = (e) => IN(e, VN()), Eue = (e) => LN(e, VN());
-function HN() {
- let e = zN;
- e && (zN = "", RN(e));
+var Oue = (e) => RN(e, UN()), kue = (e) => zN(e, UN());
+function WN() {
+ let e = VN;
+ e && (VN = "", BN(e));
}
// src/player/v10-player.ts
-var UN = (e) => typeof e == "string" ? [e] : e, Due = (e, t) => {
+var GN = (e) => typeof e == "string" ? [e] : e, Aue = (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-${PN()}`, n.setAttribute("lang", "zh-CN");
+ n.className = "video-js vjs-paused vjs-user-active", n.id = e.id || `peach-player-${IN()}`, 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 = {
@@ -33930,9 +33943,9 @@ var UN = (e) => typeof e == "string" ? [e] : e, Due = (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) => UN(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
- off: (e, t) => UN(e).forEach((e) => o.removeEventListener(e, t)),
- one: (e, t) => UN(e).forEach((e) => o.addEventListener(e, t, {
+ on: (e, t) => GN(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
+ off: (e, t) => GN(e).forEach((e) => o.removeEventListener(e, t)),
+ one: (e, t) => GN(e).forEach((e) => o.addEventListener(e, t, {
once: !0,
signal: c
})),
@@ -33987,7 +34000,7 @@ var UN = (e) => typeof e == "string" ? [e] : e, Due = (e, t) => {
n.id = String(t.id || ""), t.legacyId && (n.dataset.subtitleAlias = String(t.legacyId)), n.kind = String(t.kind || "subtitles"), n.src = String(t.src || ""), n.srclang = String(t.srclang || ""), n.label = String(t.label || ""), e.append(n);
}
};
-}, Oue = "/vendor/videojs/10.2.0/", kue = [
+}, jue = "/vendor/videojs/10.2.0/", Mue = [
"video-player.js",
"media/hlsjs-video.js",
"media/dash-video.js",
@@ -34005,17 +34018,17 @@ var UN = (e) => typeof e == "string" ? [e] : e, Due = (e, t) => {
"ui/slider-value.js",
"i18n.js",
"locales/zh-CN.js"
-], WN = null;
-function GN() {
- return WN ??= Promise.all(kue.map((e) => import(
+], KN = null;
+function qN() {
+ return KN ??= Promise.all(Mue.map((e) => import(
/* @vite-ignore */
- `${Oue}${e}`
-))).then(() => Due).catch((e) => {
- throw WN = null, e;
- }), WN;
+ `${jue}${e}`
+))).then(() => Aue).catch((e) => {
+ throw KN = null, e;
+ }), KN;
}
// src/player/immerse-player.ts
-var Aue = {
+var Nue = {
controls: !1,
preload: "auto",
posterImage: !1,
@@ -34027,45 +34040,45 @@ var Aue = {
errorDisplay: !1,
textTrackSettings: !1
};
-function jue(e, t) {
+function Pue(e, t) {
let { item: n, session: r } = t, i = null, a = !1;
- return Promise.all([LN(n, r), GN().catch(() => null)]).then(([o, s]) => {
+ return Promise.all([zN(n, r), qN().catch(() => null)]).then(([o, s]) => {
if (a) return;
- let c = IN(n, r), l = String(o.type || "").includes("mpegurl");
+ let c = RN(n, r), l = String(o.type || "").includes("mpegurl");
if (!s) e.src = (l ? c : o).src;
else {
- let t = s(e, Aue);
- i = t, t.peachItem = n, t.peachPlaybackKey = ON("item", n);
+ let t = s(e, Nue);
+ i = t, t.peachItem = n, t.peachPlaybackKey = AN("item", n);
let r = new AbortController();
- sN(t.el(), e, r.signal, uN(t)), hN(t, e), dN(t, e), t.on("dispose", () => r.abort()), new fN(t, e), wN(t, n.id), l && t.one("error", () => {
+ lN(t.el(), e, r.signal, fN(t)), _N(t, e), pN(t, e), t.on("dispose", () => r.abort()), new mN(t, e), EN(t, n.id), l && t.one("error", () => {
a || t.src(c);
}), t.src(o);
}
- MN(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
+ PN(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
}), () => {
- a || (a = !0, RN(r), i ? NN(i) : (e.pause(), AN(e), e.removeAttribute("src"), e.load()));
+ a || (a = !0, BN(r), i ? FN(i) : (e.pause(), MN(e), e.removeAttribute("src"), e.load()));
};
}
// src/player/guide-preview.ts
-var KN = !1, qN = () => KN;
-function Mue() {
- return KN = !0, () => {
- KN = !1;
+var JN = !1, YN = () => JN;
+function Fue() {
+ return JN = !0, () => {
+ JN = !1;
};
}
// src/player/detail-player.ts
-var JN = /* @__PURE__ */ new WeakMap(), YN = null, XN = null, ZN = null;
-function QN() {
- YN &&= (clearInterval(YN), null), XN &&= (clearInterval(XN), null), ZN &&= (clearTimeout(ZN), null);
+var XN = /* @__PURE__ */ new WeakMap(), ZN = null, QN = null, $N = null;
+function eP() {
+ ZN &&= (clearInterval(ZN), null), QN &&= (clearInterval(QN), null), $N &&= (clearTimeout($N), null);
}
-async function Nue(e, t, n, r = {}) {
- let i = WM();
+async function Iue(e, t, n, r = {}) {
+ let i = KM();
if (i && !i.isDisposed()) return i;
- let a = RM(), o = r.resume ?? null;
+ let a = BM(), o = r.resume ?? null;
o?.autoplay && (n = !0), r.guidePreview && (n = !1);
- let s = () => r.source ? Promise.resolve(r.source) : Eue(e), c;
+ let s = () => r.source ? Promise.resolve(r.source) : kue(e), c;
try {
- c = await GN();
+ c = await qN();
} catch {
return t.controls = !0, r.guidePreview || s().then((e) => {
t.addEventListener("loadedmetadata", () => {
@@ -34091,7 +34104,7 @@ async function Nue(e, t, n, r = {}) {
} }
}
});
- GM(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || ON("item", e), $le(l), l.on("loadedmetadata", () => {
+ qM(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || AN("item", e), nue(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}`);
});
@@ -34099,7 +34112,7 @@ async function Nue(e, t, n, r = {}) {
speed: [],
activity: [],
buffer: []
- }, f = Number(r.size ?? e.size) || 0, p = tue(YM(f, e.duration)), m = 0, h = !1, g = () => WM() === l && !l.isDisposed(), _ = () => {
+ }, f = Number(r.size ?? e.size) || 0, p = iue(ZM(f, e.duration)), m = 0, h = !1, g = () => KM() === 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(() => {
@@ -34110,15 +34123,15 @@ async function Nue(e, t, n, r = {}) {
ready: !1,
updateStats: () => {}
};
- JN.set(l, y), y.updateStats = () => {
+ XN.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 = BN(), h = s ? eN(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 = HN(), h = s ? nN(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 = nN(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 = iN(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 = qM(t);
- ZM(d.speed, x), ZM(d.activity, C), ZM(d.buffer, w);
+ let w = YM(t);
+ $M(d.speed, x), $M(d.activity, C), $M(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 ? [
"网络活动",
`${_ ? Xn(_) : "—"} · ${h.length} 请求`,
@@ -34136,17 +34149,17 @@ async function Nue(e, t, n, r = {}) {
[
"连接速度",
D,
- $M(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
+ tN(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
],
[
k[0],
k[1],
- $M(d.activity, "activity", Math.max(1, ...d.activity), k[2])
+ tN(d.activity, "activity", Math.max(1, ...d.activity), k[2])
],
[
"缓冲健康",
`${w.toFixed(1)} 秒`,
- $M(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
+ tN(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
],
["播放时间", `${Yn(t.currentTime)} / ${Yn(u || l.duration())}`],
["日期", (/* @__PURE__ */ new Date()).toLocaleString()]
@@ -34162,15 +34175,15 @@ async function Nue(e, t, n, r = {}) {
if (!n || l.isDisposed()) return;
let r = v();
r || p.sample(t);
- let i = nN(l, e.id, BN(), r ? null : p), a = r ? rN(i) : rue(i, qM(t));
+ let i = iN(l, e.id, HN(), r ? null : p), a = r ? aN(i) : oue(i, YM(t));
n.innerHTML = `${R("gauge")}<span class="sr-only">加载速度</span><span>${z(a)}</span>`;
}, C = () => {
let e = y.chrome?.netBadge;
- e && e.isConnected && (e.hidden = !1, S(), XN && clearInterval(XN), XN = setInterval(S, 500));
+ e && e.isConnected && (e.hidden = !1, S(), QN && clearInterval(QN), QN = setInterval(S, 500));
}, w = () => {
let e = y.chrome?.netBadge;
- e && (ZN && clearTimeout(ZN), ZN = setTimeout(() => {
- e.hidden = !0, XN &&= (clearInterval(XN), null);
+ e && ($N && clearTimeout($N), $N = setTimeout(() => {
+ e.hidden = !0, QN &&= (clearInterval(QN), null);
}, 1400));
};
return l.on([
@@ -34181,7 +34194,7 @@ async function Nue(e, t, n, r = {}) {
], C), l.on(["canplay", "playing"], () => {
S(), w();
}), l.on("error", () => {
- b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(Tue(e)), n && l.play()?.catch(() => {})) : r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
+ b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(Oue(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))}`
@@ -34189,13 +34202,13 @@ async function Nue(e, t, n, r = {}) {
});
}), l.ready(() => {
_();
- let n = xN(l, t, e.height, r.qualities ?? null);
+ let n = CN(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 = YM(r, e.duration));
- }).catch(() => {}), SN(l, e, { thumbnail: !r.source }), r.guidePreview || yue(l, e), CN(l), r.source || wN(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
+ r > 0 && !f && (f = r, p.bitrate = ZM(r, e.duration));
+ }).catch(() => {}), wN(l, e, { thumbnail: !r.source }), r.guidePreview || Sue(l, e), TN(l), r.source || EN(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
}), r.guidePreview || s().then((e) => {
g() && (b = String(e.type || "").includes("mpegurl"), o && o.time > 0 && l.one("loadedmetadata", () => {
if (l.isDisposed()) return;
@@ -34204,16 +34217,16 @@ async function Nue(e, t, n, r = {}) {
}), l.src(e), _(), setTimeout(_, 0), setTimeout(_, 250), n && l.play()?.catch(() => {}));
}).catch(() => {}), l;
}
-var Pue = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
-function $N(e, t = null) {
- if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", Pue), e.querySelector("#playerStatsBtn")) return;
+var Lue = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
+function tP(e, t = null) {
+ if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", Lue), e.querySelector("#playerStatsBtn")) return;
let n = document.createElement("template");
- n.innerHTML = nue();
+ n.innerHTML = aue();
let r = e.querySelector(":scope > [data-player-toolbar]");
r && (r.querySelector("[data-player-stats-slot]").append(n.content.querySelector("#playerStatsBtn")), r.querySelector("[data-player-net-slot]").append(n.content.querySelector("#playerNet"))), e.insertBefore(n.content, t);
}
-function eP(e, t) {
- let n = JN.get(e);
+function nP(e, t) {
+ let n = XN.get(e);
if (!n || e.isDisposed()) return () => {};
let r = (e) => t.querySelector(`#${e}`), i = {
statsButton: r("playerStatsBtn"),
@@ -34225,30 +34238,30 @@ function eP(e, t) {
if (a && o) {
a.hidden = !n.ready;
let e = () => {
- o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), YN &&= (clearInterval(YN), null));
+ o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), ZN &&= (clearInterval(ZN), null));
};
a.onclick = () => {
- o.hidden ? (document.dispatchEvent(new CustomEvent(QM, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), YN && clearInterval(YN), YN = setInterval(n.updateStats, 1e3)) : e();
+ o.hidden ? (document.dispatchEvent(new CustomEvent(eN, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), ZN && clearInterval(ZN), ZN = setInterval(n.updateStats, 1e3)) : e();
};
let t = (t) => {
t.detail !== "stats" && e();
};
- document.addEventListener(QM, t), s = () => document.removeEventListener(QM, t);
+ document.addEventListener(eN, t), s = () => document.removeEventListener(eN, t);
}
- let c = e.el().querySelector("video"), l = c ? gue(c) : () => {}, u = !0, d = () => {
- u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, QN()));
+ let c = e.el().querySelector("video"), l = c ? yue(c) : () => {}, u = !0, d = () => {
+ u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, eP()));
};
return e.one("dispose", d), d;
}
-function tP(e, t) {
- if (t.kind === "immerse") return jue(e, t);
- let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = qN(), c = RM(), l = t.chrome === !1 ? null : e.parentElement;
- l && $N(l, e);
- let u = ON(n, r, i?.index ?? null), d = {
+function rP(e, t) {
+ if (t.kind === "immerse") return Pue(e, t);
+ let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = YN(), c = BM(), l = t.chrome === !1 ? null : e.parentElement;
+ l && tP(l, e);
+ let u = AN(n, r, i?.index ?? null), d = {
guidePreview: s,
playbackKey: u,
resume: s ? null : t.resume ?? {
- time: xue(u, r),
+ time: wue(u, r),
autoplay: !1
}
};
@@ -34268,36 +34281,36 @@ function tP(e, t) {
t && (e.poster = t);
}
let f = null, p = !1, m = () => {}, h = e, g = () => {
- m(), !(f && a?.(f)) && (DN(h), f ? (WM() === f && (GM(null), QN()), NN(f)) : AN(h));
+ m(), !(f && a?.(f)) && (kN(h), f ? (KM() === f && (qM(null), eP()), FN(f)) : MN(h));
};
- return Nue(r, e, s ? !1 : t.autoplay ?? c.settings().detailAutoplay, d).then((t) => {
- f = t, p ? g() : (h = t?.el().querySelector("video") ?? e, s ? (t?.el().setAttribute("data-player-guide", ""), o?.(t)) : (Sue(u, h), n === "follow" ? Cue(r, h) : (h.addEventListener("play", () => {
+ return Iue(r, e, s ? !1 : t.autoplay ?? c.settings().detailAutoplay, d).then((t) => {
+ f = t, p ? g() : (h = t?.el().querySelector("video") ?? e, s ? (t?.el().setAttribute("data-player-guide", ""), o?.(t)) : (Tue(u, h), n === "follow" ? Eue(r, h) : (h.addEventListener("play", () => {
Tn("/api/play", {
method: "POST",
body: JSON.stringify({ id: r.id })
}).catch(() => {});
- }, { once: !0 }), MN(r, h, {
+ }, { once: !0 }), PN(r, h, {
watched: "#watched",
mark: "#mark",
ratio: "#ratioTxt"
- })), t ? (l && (m = eP(t, l)), o?.(t)) : o?.(null)));
+ })), t ? (l && (m = nP(t, l)), o?.(t)) : o?.(null)));
}), () => {
p = !0, g();
};
}
// src/player/playback.ts
-function nP(e) {
+function iP(e) {
e && (e.paused ? e.play()?.catch(() => {}) : e.pause());
}
-function rP(e, t) {
+function aP(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);
}
// src/player/preview-player.ts
-function Fue(e, t, n) {
+function Rue(e, t, n) {
e.controls = !1;
let r = !1, i = null;
- return GN().then((a) => {
+ return qN().then((a) => {
if (r) return;
i = a(e, {
controls: !0,
@@ -34322,30 +34335,30 @@ function Fue(e, t, n) {
o.on("error", () => {
r || n();
}), o.ready(() => {
- r || o.isDisposed() || (xN(o, e), SN(o, null, { thumbnail: !1 }), CN(o));
+ r || o.isDisposed() || (CN(o, e), wN(o, null, { thumbnail: !1 }), TN(o));
}), o.src(t);
}).catch(() => {
r || n();
}), () => {
- r = !0, NN(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
+ r = !0, FN(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
};
}
-function iP(e, t) {
+function oP(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return t && n.set("exclude_vertical", "1"), n.toString();
}
-var Iue = (e, t) => [
+var zue = (e, t) => [
"catalog-grid",
"catalog",
e,
t
-], Lue = (e, t) => [
+], Bue = (e, t) => [
"catalog-grid",
"entity",
e,
t
];
-async function Rue(e, t, n, r, i) {
+async function Vue(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 B(`/api/items?${a}`, i), s = {
@@ -34355,22 +34368,22 @@ async function Rue(e, t, n, r, i) {
};
return t || s.items.length || r || (s.libraryEmpty = (await B("/api/items?limit=1&thumb=0", i)).total === 0), s;
}
-var zue = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Bue = (e, t) => {
+var Hue = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Uue = (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 Vue(e) {
- let t = iP(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
+function Wue(e) {
+ let t = oP(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
return {
- queryKey: Iue(t, e.revision || 0),
- queryFn: ({ pageParam: e, signal: i }) => Rue(t, e, n, r, i),
+ queryKey: zue(t, e.revision || 0),
+ queryFn: ({ pageParam: e, signal: i }) => Vue(t, e, n, r, i),
initialPageParam: 0,
- getNextPageParam: zue(n)
+ getNextPageParam: Hue(n)
};
}
-function Hue(e) {
+function Gue(e) {
return {
- queryKey: Lue(e.entityKey || "", e.revision || 0),
+ queryKey: Bue(e.entityKey || "", e.revision || 0),
queryFn: async ({ pageParam: t, signal: n }) => {
if (!e.fetchPage) return {
items: [],
@@ -34385,14 +34398,14 @@ function Hue(e) {
};
},
initialPageParam: 0,
- getNextPageParam: Bue
+ getNextPageParam: Uue
};
}
-function aP(e) {
+function sP(e) {
let t = JSON.stringify(e);
return H.getQueryCache().findAll({ queryKey: e.slice(0, -1) }).filter((e) => JSON.stringify(e.queryKey) !== t && !e.state.isInvalidated && Array.isArray(e.state.data?.pages)).sort((e, t) => t.state.dataUpdatedAt - e.state.dataUpdatedAt)[0]?.state.data;
}
-function oP(e, t, n) {
+function cP(e, t, n) {
return n ? e.filter((e) => {
let n = e.part_group?.key;
if (n) {
@@ -34407,24 +34420,24 @@ function oP(e, t, n) {
return !0;
}) : [...e];
}
-var sP = (e, t) => !!e && !!to(e, t);
-function Uue(e, t) {
- let n = (e) => sP(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) => sP(e, t)) || e[e.length - 1];
+var lP = (e, t) => !!e && !!to(e, t);
+function Kue(e, t) {
+ let n = (e) => lP(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) => lP(e, t)) || e[e.length - 1];
}
-function Wue(e, { collapse: t, mix: n, javImage: r }) {
+function que(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 = oP(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
+ let e = cP(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 = Uue(e, r);
+ let t = Kue(e, r);
t && l.splice(7, 0, {
kind: "mix",
seed: t
@@ -34437,16 +34450,16 @@ function Wue(e, { collapse: t, mix: n, javImage: r }) {
pageStarts: s
};
}
-function Gue(e, t, n) {
+function Jue(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 Kue(e, t) {
+function Yue(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 que(e, t) {
+function Xue(e, t) {
let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;
for (let t of n) r.push({
start: i,
@@ -34459,10 +34472,10 @@ function que(e, t) {
strip: null
}), r;
}
-function cP(e, t) {
- lP((t) => t.id === e, t);
+function uP(e, t) {
+ dP((t) => t.id === e, t);
}
-function lP(e, t) {
+function dP(e, t) {
H.setQueriesData({ queryKey: ["catalog-short-layout"] }, (n) => !n || !n.cuts.some((t) => t.items.some(e)) ? n : {
...n,
cuts: n.cuts.map((n) => ({
@@ -34492,34 +34505,34 @@ function lP(e, t) {
} : n)
});
}
-var uP = (e) => Math.min(Math.max(e || 0, 0), 100), dP = (e) => Math.round(uP(e) / 20), Jue = (e) => {
- let t = dP(e);
+var fP = (e) => Math.min(Math.max(e || 0, 0), 100), pP = (e) => Math.round(fP(e) / 20), Zue = (e) => {
+ let t = pP(e);
return t ? `${t} 星` : "未评分";
-}, fP = (e, t) => t === dP(e) ? 0 : t * 20, pP = (e) => ["item", e], mP = (e) => [
+}, mP = (e, t) => t === pP(e) ? 0 : t * 20, hP = (e) => ["item", e], gP = (e) => [
"item-queue",
e.kind,
e.kind === "playlist" ? e.playlistId : e.seedId
-], Yue = (e, t) => [
+], Que = (e, t) => [
"item-related",
e,
t
-], Xue = (e) => `/api/item?id=${e}`, Zue = (e, t) => `/api/related?id=${e}&limit=${t}`, hP = "/api/playlist", gP = "/api/feedback", _P = "/api/item-tag", vP = "/api/watch-later", yP = "/api/quality-goal", bP = "/api/preference", xP = class extends Error {};
-async function SP(e, t) {
- let n = await B(Xue(e), t);
- if (n.error) throw new xP(n.error);
+], $ue = (e) => `/api/item?id=${e}`, ede = (e, t) => `/api/related?id=${e}&limit=${t}`, _P = "/api/playlist", vP = "/api/feedback", yP = "/api/item-tag", bP = "/api/watch-later", xP = "/api/quality-goal", SP = "/api/preference", CP = class extends Error {};
+async function wP(e, t) {
+ let n = await B($ue(e), t);
+ if (n.error) throw new CP(n.error);
return n;
}
-async function CP(e, t, n) {
+async function TP(e, t, n) {
if (e.kind === "mix") {
- let r = e.seedId, [i, a] = await Promise.all([SP(r, n), t.mixRelated(r)]);
- return H.setQueryData(pP(i.id), i), {
+ let r = e.seedId, [i, a] = await Promise.all([wP(r, n), t.mixRelated(r)]);
+ return H.setQueryData(hP(i.id), i), {
kind: "mix",
seedId: r,
title: `Mix · ${Mo(i, t.tagLabel)}`,
items: [i, ...a.filter((e) => e.id !== i.id)]
};
}
- if (e.kind === "playlist") return wP(await B(`${hP}?id=${e.playlistId}`, n));
+ if (e.kind === "playlist") return EP(await B(`${_P}?id=${e.playlistId}`, n));
let r = await B(`/api/${e.kind}?id=${e.seedId}`, n);
if (r.error || !r.items?.length) throw Error(r.error || "这一组已不存在");
return {
@@ -34530,19 +34543,19 @@ async function CP(e, t, n) {
versionCount: e.kind === "editions" ? r.count : void 0
};
}
-var wP = (e) => ({
+var EP = (e) => ({
kind: "playlist",
playlistId: e.id,
title: e.name,
items: e.items || [],
currentAssetId: e.current_asset_id
-}), TP = (e) => e.disposal === "vanished";
-function EP(e, t) {
+}), DP = (e) => e.disposal === "vanished";
+function OP(e, t) {
if (e.kind === "mix") return t;
- let n = e.kind === "playlist" ? e.items.filter((e) => !TP(e)) : e.items;
+ let n = e.kind === "playlist" ? e.items.filter((e) => !DP(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 Que(e, t) {
+function tde(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 : {
@@ -34550,20 +34563,20 @@ function Que(e, t) {
part_label: n
};
}
-function DP(e, t) {
+function kP(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 OP(e, t) {
+async function AP(e, t) {
let { queue: n, actions: r } = e, i = null, a = !1;
if (n) {
- let o = mP(n);
+ let o = gP(n);
try {
let r = n.fresh ? void 0 : H.getQueryData(o);
a = !r && n.kind === "mix", i = r || await H.fetchQuery({
queryKey: o,
- queryFn: () => CP(n, e.helpers, t),
+ queryFn: () => TP(n, e.helpers, t),
staleTime: 0
});
} catch (n) {
@@ -34575,21 +34588,21 @@ async function OP(e, t) {
return;
}
}
- let o = i ? EP(i, e.id) : e.id;
+ let o = i ? OP(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 ? H.getQueryData(pP(o)) : void 0;
+ let s, c = a && o === i?.seedId ? H.getQueryData(hP(o)) : void 0;
try {
s = c || await H.fetchQuery({
- queryKey: pP(o),
- queryFn: () => SP(o, t),
+ queryKey: hP(o),
+ queryFn: () => wP(o, t),
staleTime: 0
});
} catch (e) {
if (t.aborted) throw e;
- if (e instanceof xP) {
+ if (e instanceof CP) {
r.redirect({ kind: "gone" });
return;
}
@@ -34600,7 +34613,7 @@ async function OP(e, t) {
id: Number(s.follow_item_id)
});
}
-function $ue(e) {
+function nde(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);
@@ -34622,35 +34635,35 @@ function $ue(e) {
unowned: !i.length && !c.length && !String(e.creator || "").trim()
};
}
-function ede(e, t) {
+function rde(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 kP = (e, t) => (e.tags || []).some((e) => Un(e.k) === Un(t)), AP = (e, t) => ({
+var jP = (e, t) => (e.tags || []).some((e) => Un(e.k) === Un(t)), MP = (e, t) => ({
...e,
tags: (e.tags || []).filter((e) => Un(e.k) !== Un(t))
-}), jP = (e, t) => kP(e, t.k) ? e : {
+}), NP = (e, t) => jP(e, t.k) ? e : {
...e,
tags: [...e.tags || [], t]
-}, MP = "peach.recentTags";
-function NP() {
+}, PP = "peach.recentTags";
+function FP() {
try {
- let e = JSON.parse(localStorage.getItem(MP) || "[]");
+ let e = JSON.parse(localStorage.getItem(PP) || "[]");
return Array.isArray(e) ? e.map(String) : [];
} catch {
return [];
}
}
-function PP(e) {
+function IP(e) {
try {
- let t = NP().filter((t) => Un(t) !== Un(e));
- localStorage.setItem(MP, JSON.stringify([e, ...t].slice(0, 12)));
+ let t = FP().filter((t) => Un(t) !== Un(e));
+ localStorage.setItem(PP, JSON.stringify([e, ...t].slice(0, 12)));
} catch {}
}
-function tde(e, t, n) {
+function ide(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
@@ -34661,72 +34674,72 @@ function tde(e, t, n) {
create: r && !s ? e.trim() : ""
};
}
-var nde = {
+var ade = {
中字: "subtitle",
无码: "uncensored",
无码破解: "cracked",
有码: "censored"
-}, rde = {
+}, ode = {
mix: "Mix",
parts: "分卷",
editions: "版本",
playlist: "播放列表"
};
-function ide(e) {
+function sde(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: rde[e.kind],
+ title: ode[e.kind],
summary: e.kind === "editions" ? n : `${e.title} · ${n}`
};
}
-var FP = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, ade = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${z(FP(e.part_label))}</small>` : "";
-function ode(e, t, n, r) {
+var LP = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, cde = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${z(LP(e.part_label))}</small>` : "";
+function lde(e, t, n, r) {
let i = e.filter((e) => e !== t), a = i.indexOf(n);
return i.splice(a + +!!r, 0, t), i;
}
-var sde = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
-function cde(e, t) {
+var ude = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
+function dde(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 lde(e) {
+function fde(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 IP(e, t) {
+function RP(e, t) {
return e === "dislike" ? t.feedback === "dislike" ? "已标记不合口味" : "已取消不合口味" : e === "seen" ? t.feedback === "seen" ? "已标记看过" : "已取消看过" : e === "dispose" ? t.disposal === "trash" ? "已移入回收站" : "已移出回收站" : "已记录一次高潮";
}
// src/react/immerse/immerse.ts
-var ude = (e, t, n) => [
+var pde = (e, t, n) => [
"immerse-list",
e,
t,
n
];
-function dde(e) {
+function mde(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 fde = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.root_id || e.location || ""));
-function pde(e, t = Math.random) {
+var hde = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.root_id || e.location || ""));
+function gde(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 mde(e, t) {
- return pde(((await B(`/api/items?${e}`)).items || []).filter((e) => fde(e, t)));
+async function _de(e, t) {
+ return gde(((await B(`/api/items?${e}`)).items || []).filter((e) => hde(e, t)));
}
-var LP = (e) => H.ensureQueryData({
- queryKey: pP(e),
- queryFn: ({ signal: t }) => SP(e, t)
+var zP = (e) => H.ensureQueryData({
+ queryKey: hP(e),
+ queryFn: ({ signal: t }) => wP(e, t)
});
-function hde(e, t) {
+function vde(e, t) {
let n = new Set(e.map((e) => e.id));
return e.concat(t.filter((e) => !n.has(e.id)));
}
-function gde(e) {
+function yde(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,
@@ -34735,313 +34748,313 @@ function gde(e) {
ref: r && e.entity_refs?.[r]?.[0] || null
};
}
-function _de(e, t, n) {
+function bde(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 vde(e, t) {
+function xde(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 yde = 15e3, RP = {
+var Sde = 15e3, BP = {
open: !1,
idle: !1,
wide: !1,
loading: null,
shown: null
-}, zP = null, BP = null, VP = RP, HP = /* @__PURE__ */ new Set(), UP = 0, WP = 0, GP = 0, KP = "", qP = [], JP = 0, YP = !1, XP = !1, ZP = null, QP = /* @__PURE__ */ new Set(), $P = "", eF = null, tF = 0, nF = null, rF = !1, iF = null;
-function aF() {
- if (!zP) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
- return zP;
+}, VP = null, HP = null, UP = BP, WP = /* @__PURE__ */ new Set(), GP = 0, KP = 0, qP = 0, JP = "", YP = [], XP = 0, ZP = !1, QP = !1, $P = null, eF = /* @__PURE__ */ new Set(), tF = "", nF = null, rF = 0, iF = null, aF = !1, oF = null;
+function sF() {
+ if (!VP) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
+ return VP;
}
-function bde(e) {
- return HP.add(e), () => {
- HP.delete(e);
+function Cde(e) {
+ return WP.add(e), () => {
+ WP.delete(e);
};
}
-function xde() {
- for (let e of [...HP]) e();
+function wde() {
+ for (let e of [...WP]) e();
}
-function oF() {
- (0, Rt.flushSync)(xde);
+function cF() {
+ (0, Rt.flushSync)(wde);
}
-function sF() {
- let e = eF ? tN(eF.id) : 0;
- return e ? `${$P} · ${rN(e)}` : $P;
+function lF() {
+ let e = nF ? rN(nF.id) : 0;
+ return e ? `${tF} · ${aN(e)}` : tF;
}
-function cF(e, t = null) {
- clearInterval(tF), tF = 0, e === null ? (VP = {
- ...VP,
+function uF(e, t = null) {
+ clearInterval(rF), rF = 0, e === null ? (UP = {
+ ...UP,
loading: null
- }, oF()) : ($P = e, eF = t, VP = {
- ...VP,
- loading: sF()
- }, oF(), tF = window.setInterval(() => {
- eF = qP[JP] ?? null, VP = {
- ...VP,
- loading: sF()
- }, oF();
+ }, cF()) : (tF = e, nF = t, UP = {
+ ...UP,
+ loading: lF()
+ }, cF(), rF = window.setInterval(() => {
+ nF = YP[XP] ?? null, UP = {
+ ...UP,
+ loading: lF()
+ }, cF();
}, 500));
}
-function Sde(e) {
+function Tde(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), BP.track.append(t);
- let r = FN(), i = () => {}, a = {
+ n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), HP.track.append(t);
+ let r = LN(), i = () => {}, a = {
el: t,
video: n,
session: r,
- release: () => RN(r),
+ release: () => BN(r),
disposed: !1,
gone: new Promise((e) => {
i = e;
}),
leave: i
};
- return QP.add(a), a;
+ return eF.add(a), a;
}
-function Cde(e, t) {
+function Ede(e, t) {
return new Promise((n) => {
- e.release = tP(e.video, {
+ e.release = rP(e.video, {
kind: "immerse",
item: t,
session: e.session,
onLoaded: n,
onEnded: () => {
- VP.open && gF(1);
+ UP.open && vF(1);
}
}), e.gone.then(n);
});
}
-function lF(e) {
- e && !e.disposed && (e.disposed = !0, QP.delete(e), e.leave(), e.release(), e.el.remove(), ZP === e && (ZP = null));
+function dF(e) {
+ e && !e.disposed && (e.disposed = !0, eF.delete(e), e.leave(), e.release(), e.el.remove(), $P === e && ($P = null));
}
-var uF = [
+var fF = [
"loadeddata",
"canplay",
"error"
];
-function wde(e) {
+function Dde(e) {
let { video: t } = e;
return t.readyState >= 3 ? Promise.resolve() : new Promise((n) => {
let r = !1, i = () => {
- r || (r = !0, clearTimeout(a), uF.forEach((e) => t.removeEventListener(e, i)), n());
+ r || (r = !0, clearTimeout(a), fF.forEach((e) => t.removeEventListener(e, i)), n());
};
- uF.forEach((e) => t.addEventListener(e, i, { once: !0 }));
- let a = setTimeout(i, yde);
+ fF.forEach((e) => t.addEventListener(e, i, { once: !0 }));
+ let a = setTimeout(i, Sde);
e.gone.then(i);
});
}
-function dF(e) {
- let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = _de(e.videoWidth, e.videoHeight, n);
+function pF(e) {
+ let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = bde(e.videoWidth, e.videoHeight, n);
r === "contain" ? e.dataset.fit = "contain" : r && delete e.dataset.fit;
}
-var fF = () => BP?.track.querySelectorAll("video").forEach(dF);
-function Tde(e) {
- delete e.dataset.fit, e.readyState >= 1 ? dF(e) : e.addEventListener("loadedmetadata", () => dF(e), { once: !0 });
+var mF = () => HP?.track.querySelectorAll("video").forEach(pF);
+function Ode(e) {
+ delete e.dataset.fit, e.readyState >= 1 ? pF(e) : e.addEventListener("loadedmetadata", () => pF(e), { once: !0 });
}
-function Ede(e) {
- VP = {
- ...VP,
+function kde(e) {
+ UP = {
+ ...UP,
wide: e
- }, oF(), fF();
+ }, cF(), mF();
}
-var pF = () => {
- let e = KP;
+var hF = () => {
+ let e = JP;
return H.fetchQuery({
- queryKey: ude(e, WP, GP),
- queryFn: () => mde(e, aF().sourceOffline),
+ queryKey: pde(e, KP, qP),
+ queryFn: () => _de(e, sF().sourceOffline),
staleTime: Infinity
});
};
-function Dde(e, t) {
+function Ade(e, t) {
let n = () => qn(e.duration) || qn(t.duration);
e.addEventListener("timeupdate", () => {
let t = n();
- t && BP && (BP.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
- }), nF = {
+ t && HP && (HP.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
+ }), iF = {
video: e,
duration: n
- }, iF?.dispose(), iF = BP ? mN(BP.bar, t, { inset: 12 }) : null;
+ }, oF?.dispose(), oF = HP ? gN(HP.bar, t, { inset: 12 }) : null;
}
-function mF(e) {
- let t = nF?.duration();
- iF && t && (iF.prime(), iF.show(e, t));
+function gF(e) {
+ let t = iF?.duration();
+ oF && t && (oF.prime(), oF.show(e, t));
}
-async function hF(e = 0) {
- let t = qP[JP];
- if (!t || YP) return;
- let n = UP;
- aF().route(t.id), YP = !0, cF(e ? "切换中" : "加载中", t);
+async function _F(e = 0) {
+ let t = YP[XP];
+ if (!t || ZP) return;
+ let n = GP;
+ sF().route(t.id), ZP = !0, uF(e ? "切换中" : "加载中", t);
let r = null;
try {
- if (await LP(t.id).catch((e) => {
- if (!(e instanceof xP)) throw e;
- }), n !== UP) return;
- let i = ZP, a = !!(e && i);
- a || lF(i);
- let o = Sde(a ? e > 0 ? 100 : -100 : 0);
- if (r = o, Tde(o.video), await Cde(o, t), await wde(o), o.disposed || (Ede(vde(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
+ if (await zP(t.id).catch((e) => {
+ if (!(e instanceof CP)) throw e;
+ }), n !== GP) return;
+ let i = $P, a = !!(e && i);
+ a || dF(i);
+ let o = Tde(a ? e > 0 ? 100 : -100 : 0);
+ if (r = o, Ode(o.video), await Ede(o, t), await Dde(o), o.disposed || (kde(xde(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)), lF(i), o.el.style.transform = ""), o.disposed)) return;
- ZP = o, r = null, o.video.play()?.catch(() => {}), VP = {
- ...VP,
+ })), await new Promise((e) => setTimeout(e, 210)), dF(i), o.el.style.transform = ""), o.disposed)) return;
+ $P = o, r = null, o.video.play()?.catch(() => {}), UP = {
+ ...UP,
idle: !1,
shown: {
item: t,
- index: JP,
- length: qP.length
+ index: XP,
+ length: YP.length
}
- }, Dde(o.video, t), V("/api/play", { id: t.id }).catch(() => {}), cF(null);
+ }, Ade(o.video, t), V("/api/play", { id: t.id }).catch(() => {}), uF(null);
} catch {
- lF(r), n === UP && cF(null);
+ dF(r), n === GP && uF(null);
} finally {
- n === UP && (YP = !1);
+ n === GP && (ZP = !1);
}
}
-async function gF(e) {
- if (YP || !VP.open) return;
- let t = UP;
- if (JP += e, cF("切换中", qP[JP] ?? null), JP >= qP.length - 3 && !XP) {
- XP = !0;
+async function vF(e) {
+ if (ZP || !UP.open) return;
+ let t = GP;
+ if (XP += e, uF("切换中", YP[XP] ?? null), XP >= YP.length - 3 && !QP) {
+ QP = !0;
try {
- GP += 1;
- let e = await pF();
- t === UP && (qP = hde(qP, e));
+ qP += 1;
+ let e = await hF();
+ t === GP && (YP = vde(YP, e));
} catch {} finally {
- XP = !1;
+ QP = !1;
}
}
- t === UP && (JP >= qP.length && (JP = 0), JP < 0 && (JP = qP.length - 1), await hF(e));
+ t === GP && (XP >= YP.length && (XP = 0), XP < 0 && (XP = YP.length - 1), await _F(e));
}
-async function Ode(e) {
- let t = ++UP;
- _F(), WP += 1, GP = 0, KP = dde(aF().filters()), H.removeQueries({ queryKey: ["immerse-list"] }), VP = {
- ...VP,
+async function jde(e) {
+ let t = ++GP;
+ yF(), KP += 1, qP = 0, JP = mde(sF().filters()), H.removeQueries({ queryKey: ["immerse-list"] }), UP = {
+ ...UP,
open: !0,
idle: !0,
shown: null
- }, document.body.setAttribute("data-immerse-open", ""), cF("加载内容");
+ }, document.body.setAttribute("data-immerse-open", ""), uF("加载内容");
try {
- let n = await pF();
+ let n = await hF();
if (e && !n.some((t) => t.id === e)) {
- let t = await LP(e).catch((e) => {
- if (e instanceof xP) return null;
+ let t = await zP(e).catch((e) => {
+ if (e instanceof CP) return null;
throw e;
});
t?.id && (n = [t, ...n.filter((t) => t.id !== e)]);
}
- if (t !== UP) return;
- if (qP = n, !qP.length) {
- vF(), aF().warn("当前筛选下没有可直接播放的内容");
+ if (t !== GP) return;
+ if (YP = n, !YP.length) {
+ bF(), sF().warn("当前筛选下没有可直接播放的内容");
return;
}
- JP = Math.max(0, qP.findIndex((t) => t.id === e)), await hF();
+ XP = Math.max(0, YP.findIndex((t) => t.id === e)), await _F();
} catch {
- if (t !== UP) return;
- cF(null), vF();
+ if (t !== GP) return;
+ uF(null), bF();
}
}
-function _F() {
- clearInterval(tF), tF = 0, wF(), SF = null, nF = null, rF = !1, iF?.dispose(), iF = null, [...QP].forEach(lF), YP = !1;
+function yF() {
+ clearInterval(rF), rF = 0, EF(), wF = null, iF = null, aF = !1, oF?.dispose(), oF = null, [...eF].forEach(dF), ZP = !1;
}
-function vF() {
- VP.open && (UP++, _F(), VP = RP, document.body.removeAttribute("data-immerse-open"), oF(), aF().closed());
+function bF() {
+ UP.open && (GP++, yF(), UP = BP, document.body.removeAttribute("data-immerse-open"), cF(), sF().closed());
}
-var yF = 0, bF = null, xF = 0, SF = null, CF = 0;
-function wF() {
- clearTimeout(yF), yF = 0, bF = null;
+var xF = 0, SF = null, CF = 0, wF = null, TF = 0;
+function EF() {
+ clearTimeout(xF), xF = 0, SF = null;
}
-function kde(e) {
- let t = ZP?.video;
+function Mde(e) {
+ let t = $P?.video;
if (!t) return;
let n = e < window.innerWidth / 2 ? -1 : 1, r = Date.now();
- bF && bF.side === n && r - bF.at <= 280 ? (wF(), rP(t, aF().seekSeconds() * n)) : (yF && (clearTimeout(yF), yF = 0, nP(t)), bF = {
+ SF && SF.side === n && r - SF.at <= 280 ? (EF(), aP(t, sF().seekSeconds() * n)) : (xF && (clearTimeout(xF), xF = 0, iP(t)), SF = {
side: n,
at: r
- }, yF = window.setTimeout(() => {
- yF = 0, bF = null, VP.open && nP(ZP?.video);
+ }, xF = window.setTimeout(() => {
+ xF = 0, SF = null, UP.open && iP($P?.video);
}, 280));
}
-function Ade() {
- Date.now() < xF || nP(ZP?.video);
+function Nde() {
+ Date.now() < CF || iP($P?.video);
}
-var TF = (e) => BP?.bar.toggleAttribute("data-scrubbing", e);
-function EF(e) {
- BP && (BP.progress.style.width = `${(e * 100).toFixed(2)}%`);
+var DF = (e) => HP?.bar.toggleAttribute("data-scrubbing", e);
+function OF(e) {
+ HP && (HP.progress.style.width = `${(e * 100).toFixed(2)}%`);
}
-function DF(e) {
+function kF(e) {
let t = e.target;
if (e.touches.length !== 1 || !t?.closest("[data-immerse-track]")) {
- SF = null;
+ wF = null;
return;
}
- let n = ZP?.video;
- SF = {
+ let n = $P?.video;
+ wF = {
x: e.touches[0].clientX,
y: e.touches[0].clientY,
axis: "",
from: n && n.currentTime || 0
};
}
-function OF(e) {
- if (!SF || e.touches.length !== 1) return;
- let t = e.touches[0].clientX - SF.x, n = e.touches[0].clientY - SF.y;
- if (!SF.axis) {
+function AF(e) {
+ if (!wF || e.touches.length !== 1) return;
+ let t = e.touches[0].clientX - wF.x, n = e.touches[0].clientY - wF.y;
+ if (!wF.axis) {
if (Math.abs(t) < 12 && Math.abs(n) < 12) return;
- SF.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", SF.axis === "x" && TF(!0);
+ wF.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", wF.axis === "x" && DF(!0);
}
- if (SF.axis !== "x") return;
- let r = ZP?.video, i = r && r.duration || 0;
- i && (e.preventDefault(), SF.to = Math.min(i, Math.max(0, SF.from + t / window.innerWidth * i)), EF(SF.to / i), mF(SF.to / i));
+ if (wF.axis !== "x") return;
+ let r = $P?.video, i = r && r.duration || 0;
+ i && (e.preventDefault(), wF.to = Math.min(i, Math.max(0, wF.from + t / window.innerWidth * i)), OF(wF.to / i), gF(wF.to / i));
}
-function kF(e) {
- if (!SF) return;
- let t = SF;
- if (SF = null, xF = Date.now() + 700, TF(!1), iF?.hide(), t.axis === "x") {
- let e = ZP?.video;
+function jF(e) {
+ if (!wF) return;
+ let t = wF;
+ if (wF = null, CF = Date.now() + 700, DF(!1), oF?.hide(), t.axis === "x") {
+ let e = $P?.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 ? (wF(), gF(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), kde(n.clientX));
+ Math.abs(i) > 60 ? (EF(), vF(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), Mde(n.clientX));
}
-function AF() {
- SF = null, TF(!1), iF?.hide();
+function MF() {
+ wF = null, DF(!1), oF?.hide();
}
-function jF(e) {
+function NF(e) {
let t = Date.now();
- t - CF < 260 || (CF = t, gF(e.deltaY > 0 ? 1 : -1));
+ t - TF < 260 || (TF = t, vF(e.deltaY > 0 ? 1 : -1));
}
-function MF(e) {
- let t = BP.bar.getBoundingClientRect();
+function PF(e) {
+ let t = HP.bar.getBoundingClientRect();
return Math.min(1, Math.max(0, (e.clientX - t.left) / t.width));
}
-function jde(e) {
- nF?.duration() && (rF = !0, TF(!0), e.currentTarget.setPointerCapture(e.pointerId), EF(MF(e)), mF(MF(e)), e.preventDefault());
+function Pde(e) {
+ iF?.duration() && (aF = !0, DF(!0), e.currentTarget.setPointerCapture(e.pointerId), OF(PF(e)), gF(PF(e)), e.preventDefault());
}
-function Mde(e) {
- rF && EF(MF(e)), mF(MF(e));
+function Fde(e) {
+ aF && OF(PF(e)), gF(PF(e));
}
-function Nde(e) {
- if (e.pointerType !== "mouse" && iF?.hide(), !rF) return;
- rF = !1, TF(!1);
- let t = nF?.duration();
- nF && t && (nF.video.currentTime = t * MF(e));
+function Ide(e) {
+ if (e.pointerType !== "mouse" && oF?.hide(), !aF) return;
+ aF = !1, DF(!1);
+ let t = iF?.duration();
+ iF && t && (iF.video.currentTime = t * PF(e));
}
-function Pde() {
- rF = !1, TF(!1), iF?.hide();
+function Lde() {
+ aF = !1, DF(!1), oF?.hide();
}
-function Fde() {
- rF || iF?.hide();
+function Rde() {
+ aF || oF?.hide();
}
-async function NF(e, t) {
- let n = await V(gP, {
+async function FF(e, t) {
+ let n = await V(vP, {
id: e,
kind: t
- }), r = H.getQueryData(pP(e));
- if (!r) return cP(e, {
+ }), r = H.getQueryData(hP(e));
+ if (!r) return uP(e, {
feedback: n.feedback ?? void 0,
o_count: n.o_count
}), n;
@@ -35050,7 +35063,7 @@ async function NF(e, t) {
feedback: n.feedback ?? void 0,
o_count: n.o_count
};
- return H.setQueryData(pP(e), i), cP(e, {
+ return H.setQueryData(hP(e), i), uP(e, {
feedback: i.feedback,
disposal: i.disposal,
watch_later: i.watch_later,
@@ -35058,7 +35071,7 @@ async function NF(e, t) {
o_count: i.o_count
}), n;
}
-var Ide = [
+var zde = [
{
kind: "dislike",
glyph: "thumbs-down",
@@ -35075,31 +35088,31 @@ var Ide = [
label: "记一次高潮"
}
];
-function PF(e) {
+function IF(e) {
return Ft({
- queryKey: pP(e ?? 0),
- queryFn: ({ signal: t }) => SP(e, t),
+ queryKey: hP(e ?? 0),
+ queryFn: ({ signal: t }) => wP(e, t),
enabled: e != null,
staleTime: Infinity
}).data;
}
-function Lde({ kind: e, glyph: t, label: n, id: r }) {
- let i = PF(r), a = It({
+function Bde({ kind: e, glyph: t, label: n, id: r }) {
+ let i = IF(r), a = It({
mutationFn: async (t) => {
- let n = H.getQueryData(pP(t))?.feedback || null;
+ let n = H.getQueryData(hP(t))?.feedback || null;
return {
- result: await NF(t, e),
+ result: await FF(t, e),
before: n
};
},
onSuccess: ({ result: t, before: n }, r) => {
- aF().toast(IP(e, t), { undo: async () => {
- e === "o" ? await NF(r, "o-undo") : (t.feedback && await NF(r, t.feedback), n && await NF(r, n));
+ sF().toast(RP(e, t), { undo: async () => {
+ e === "o" ? await FF(r, "o-undo") : (t.feedback && await FF(r, t.feedback), n && await FF(r, n));
} }), e === "dislike" && t.feedback === "dislike" && setTimeout(() => {
- gF(1);
+ vF(1);
}, 260);
},
- onError: (e) => aF().failure("更新反馈", e)
+ onError: (e) => sF().failure("更新反馈", e)
}), o = a.isPending, s = e !== "o" && i ? i.feedback === e ? "true" : "false" : void 0;
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-immerse-action": "",
@@ -35130,11 +35143,11 @@ function Lde({ kind: e, glyph: t, label: n, id: r }) {
})]
});
}
-function Rde({ shown: e }) {
- let t = e?.item ?? null, n = PF(t?.id ?? null), r = n ? gde(n) : null, i = aF(), a = (e) => {
- e.preventDefault(), n && (vF(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
+function Vde({ shown: e }) {
+ let t = e?.item ?? null, n = IF(t?.id ?? null), r = n ? yde(n) : null, i = sF(), a = (e) => {
+ e.preventDefault(), n && (bF(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
}, o = () => {
- t && (vF(), i.openItem(t.id));
+ t && (bF(), i.openItem(t.id));
}, s = r ? _o(r.name, r.ref, Za(r.name), r.kind || "performer") : "";
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-immerse-ui": "",
@@ -35163,18 +35176,18 @@ function Rde({ shown: e }) {
})]
});
}
-var zde = { __html: Bs("媒体加载中") };
-function Bde({ view: e }) {
+var Hde = { __html: Bs("媒体加载中") };
+function Ude({ view: e }) {
let t = (0, F.useRef)(null), n = (0, F.useRef)(null), r = (0, F.useRef)(null), i = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => {
let e = t.current;
- return BP = {
+ return HP = {
root: e,
track: n.current,
bar: r.current,
progress: i.current
- }, e.addEventListener("touchstart", DF, { passive: !0 }), e.addEventListener("touchmove", OF, { passive: !1 }), e.addEventListener("touchend", kF, { passive: !1 }), e.addEventListener("touchcancel", AF, { passive: !0 }), e.addEventListener("wheel", jF, { passive: !0 }), () => {
- e.removeEventListener("touchstart", DF), e.removeEventListener("touchmove", OF), e.removeEventListener("touchend", kF), e.removeEventListener("touchcancel", AF), e.removeEventListener("wheel", jF), BP = null;
+ }, e.addEventListener("touchstart", kF, { passive: !0 }), e.addEventListener("touchmove", AF, { passive: !1 }), e.addEventListener("touchend", jF, { passive: !1 }), e.addEventListener("touchcancel", MF, { passive: !0 }), e.addEventListener("wheel", NF, { passive: !0 }), () => {
+ e.removeEventListener("touchstart", kF), e.removeEventListener("touchmove", AF), e.removeEventListener("touchend", jF), e.removeEventListener("touchcancel", MF), e.removeEventListener("wheel", NF), HP = null;
};
}, []);
let a = e.shown?.item.id ?? null, o = (e) => e ? "" : void 0;
@@ -35191,10 +35204,10 @@ function Bde({ view: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("div", {
ref: n,
"data-immerse-track": "",
- onClick: Ade
+ onClick: Nde
}), /* @__PURE__ */ (0, I.jsx)("div", {
"data-immerse-actions": "",
- children: Ide.map((e) => /* @__PURE__ */ (0, I.jsx)(Lde, {
+ children: zde.map((e) => /* @__PURE__ */ (0, I.jsx)(Bde, {
...e,
id: a
}, e.kind))
@@ -35207,7 +35220,7 @@ function Bde({ view: e }) {
hidden: e.loading === null,
children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-immerse-spinner": "",
- dangerouslySetInnerHTML: zde
+ dangerouslySetInnerHTML: Hde
}), /* @__PURE__ */ (0, I.jsx)("span", { children: e.loading ?? "" })]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -35215,7 +35228,7 @@ function Bde({ view: e }) {
"data-immerse-close": "",
title: "关闭",
"aria-label": "关闭",
- onClick: vF,
+ onClick: bF,
children: /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-x" })
@@ -35224,42 +35237,42 @@ function Bde({ view: e }) {
/* @__PURE__ */ (0, I.jsx)("div", {
ref: r,
"data-immerse-bar": "",
- onPointerDown: jde,
- onPointerMove: Mde,
- onPointerUp: Nde,
- onPointerCancel: Pde,
- onPointerLeave: Fde,
+ onPointerDown: Pde,
+ onPointerMove: Fde,
+ onPointerUp: Ide,
+ onPointerCancel: Lde,
+ onPointerLeave: Rde,
children: /* @__PURE__ */ (0, I.jsx)("i", { ref: i })
}),
- /* @__PURE__ */ (0, I.jsx)(Rde, { shown: e.shown })
+ /* @__PURE__ */ (0, I.jsx)(Vde, { shown: e.shown })
]
});
}
-var Vde = {
- open: Ode,
- close: vF,
- isOpen: () => VP.open,
- activeVideo: () => VP.open ? ZP?.video ?? null : null
+var Wde = {
+ open: jde,
+ close: bF,
+ isOpen: () => UP.open,
+ activeVideo: () => UP.open ? $P?.video ?? null : null
};
-function Hde(e) {
- if (!VP.open) return;
+function Gde(e) {
+ if (!UP.open) return;
let t = e.target;
- t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && gF(1), e.key === "ArrowUp" && gF(-1));
+ t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && vF(1), e.key === "ArrowUp" && vF(-1));
}
-function Ude(e) {
- let t = !zP;
- return zP = e, t && (document.addEventListener("keydown", Hde), addEventListener("resize", () => {
- VP.open && fF();
+function Kde(e) {
+ let t = !VP;
+ return VP = e, t && (document.addEventListener("keydown", Gde), addEventListener("resize", () => {
+ UP.open && mF();
}), addEventListener("pagehide", () => {
- QP.forEach((e) => RN(e.session));
- })), Vde;
+ eF.forEach((e) => BN(e.session));
+ })), Wde;
}
-function Wde() {
- let e = (0, F.useSyncExternalStore)(bde, () => VP);
- return zP ? /* @__PURE__ */ (0, I.jsx)(Bde, { view: e }) : null;
+function qde() {
+ let e = (0, F.useSyncExternalStore)(Cde, () => UP);
+ return VP ? /* @__PURE__ */ (0, I.jsx)(Ude, { view: e }) : null;
}
// src/manage-header.ts
-var FF = {
+var LF = {
...Xf,
"/junk-files": "垃圾文件",
"/duplicates": "重复文件",
@@ -35267,47 +35280,47 @@ var FF = {
"/trash": "回收站",
"/quality-goals": "高清版",
"/sources": "来源和凭证"
-}, Gde = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
-function Kde(e) {
- let t = FF[e.path] ? "cleanup" : e.section;
+}, Jde = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
+function Yde(e) {
+ let t = LF[e.path] ? "cleanup" : e.section;
return e.menu.some(([e]) => e === t) ? t : "";
}
-var qde = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
-function IF(e) {
+var Xde = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
+function RF(e) {
let t = e.sections.find(([t]) => t === e.section);
if (!t) return null;
- let n = FF[e.path] ?? "";
+ let n = LF[e.path] ?? "";
return {
title: e.section === "cleanup" && n || t[1],
- pressed: Kde(e),
+ pressed: Yde(e),
crumb: n,
- compact: Gde.has(e.path) || e.section === "configuration",
+ compact: Jde.has(e.path) || e.section === "configuration",
lede: e.section === "trash" ? e.trash ? {
kind: "count",
- text: qde(e.trash),
+ text: Xde(e.trash),
total: e.trash.total
} : { kind: "skeleton" } : { kind: "none" }
};
}
-var LF = (e) => e.replace(/[&<>"']/g, (e) => ({
+var zF = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
-})[e]), RF = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${LF(e)}"/></svg>`, zF = "<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 Jde(e) {
- let t = IF(e);
+})[e]), BF = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${zF(e)}"/></svg>`, VF = "<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 Zde(e) {
+ let t = RF(e);
if (!t) return "";
let n = e.menu.map(([e, n, r]) => {
let i = e === t.pressed;
- return `<button type="button" data-manage="${LF(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${RF(r)}<span>${LF(n)}</span></button>`;
- }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${RF("chevron-right")}</li><li aria-current="true"><span>${LF(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? zF : `<span data-lede-text="">${LF(t.lede.text)}</span>${t.lede.total ? Yde : ""}`}</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=\"\"" : ""}>${LF(t.title)}</h2>` + i;
+ return `<button type="button" data-manage="${zF(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${BF(r)}<span>${zF(n)}</span></button>`;
+ }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${BF("chevron-right")}</li><li aria-current="true"><span>${zF(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? VF : `<span data-lede-text="">${zF(t.lede.text)}</span>${t.lede.total ? Qde : ""}`}</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=\"\"" : ""}>${zF(t.title)}</h2>` + i;
}
-var Yde = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
+var Qde = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
// src/react/settings-panel/icon.tsx
-function BF({ name: e }) {
+function HF({ name: e }) {
let { wide: t, viewBox: n } = Cn(e);
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: n,
@@ -35316,7 +35329,7 @@ function BF({ name: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function Xde({ name: e }) {
+function $de({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -35324,88 +35337,88 @@ function Xde({ name: e }) {
});
}
// node_modules/tailwind-merge/dist/bundle-mjs.mjs
-var Zde = (e, t) => {
+var efe = (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;
-}, Qde = (e, t) => ({
+}, tfe = (e, t) => ({
classGroupId: e,
validator: t
-}), VF = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), UF = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), HF = "-", UF = [], $de = "arbitrary..", efe = (e) => {
- let t = nfe(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), WF = "-", GF = [], nfe = "arbitrary..", rfe = (e) => {
+ let t = afe(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return tfe(e);
- let n = e.split(HF);
- return WF(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return ife(e);
+ let n = e.split(WF);
+ return KF(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? Zde(i, t) : t : i || UF;
+ return t ? i ? efe(i, t) : t : i || GF;
}
- return n[e] || UF;
+ return n[e] || GF;
}
};
-}, WF = (e, t, n) => {
+}, KF = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = WF(e, t + 1, i);
+ let n = KF(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(HF) : e.slice(t).join(HF), s = a.length;
+ let o = t === 0 ? e.join(WF) : e.slice(t).join(WF), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, tfe = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, ife = (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 ? $de + r : void 0;
-})(), nfe = (e) => {
+ return r ? nfe + r : void 0;
+})(), afe = (e) => {
let { theme: t, classGroups: n } = e;
- return rfe(n, t);
-}, rfe = (e, t) => {
- let n = VF();
+ return ofe(n, t);
+}, ofe = (e, t) => {
+ let n = UF();
for (let r in e) {
let i = e[r];
- GF(i, n, r, t);
+ qF(i, n, r, t);
}
return n;
-}, GF = (e, t, n, r) => {
+}, qF = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- ife(i, t, n, r);
+ sfe(i, t, n, r);
}
-}, ife = (e, t, n, r) => {
- typeof e == "string" ? afe(e, t, n) : typeof e == "function" ? ofe(e, t, n, r) : sfe(e, t, n, r);
-}, afe = (e, t, n) => {
- let r = e === "" ? t : KF(t, e);
- r.classGroupId = n;
-}, ofe = (e, t, n, r) => {
- cfe(e) ? GF(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(Qde(n, e)));
}, sfe = (e, t, n, r) => {
+ typeof e == "string" ? cfe(e, t, n) : typeof e == "function" ? lfe(e, t, n, r) : ufe(e, t, n, r);
+}, cfe = (e, t, n) => {
+ let r = e === "" ? t : JF(t, e);
+ r.classGroupId = n;
+}, lfe = (e, t, n, r) => {
+ dfe(e) ? qF(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(tfe(n, e)));
+}, ufe = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- GF(o, KF(t, a), n, r);
+ qF(o, JF(t, a), n, r);
}
-}, KF = (e, t) => {
- let n = e, r = t.split(HF), i = r.length;
+}, JF = (e, t) => {
+ let n = e, r = t.split(WF), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = VF(), n.nextPart.set(t, i)), n = i;
+ i || (i = UF(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, cfe = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, lfe = (e) => {
+}, dfe = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, ffe = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -35423,19 +35436,19 @@ var Zde = (e, t) => {
e in n ? n[e] = t : i(e, t);
}
};
-}, qF = "!", JF = ":", ufe = [], YF = (e, t, n, r, i) => ({
+}, YF = "!", XF = ":", pfe = [], ZF = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), dfe = (e) => {
+}), mfe = (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 === JF) {
+ if (o === XF) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -35447,13 +35460,13 @@ var Zde = (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(qF) ? (c = s.slice(0, -1), l = !0) : s.startsWith(qF) && (c = s.slice(1), l = !0);
+ s.endsWith(YF) ? (c = s.slice(0, -1), l = !0) : s.startsWith(YF) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return YF(t, l, c, u);
+ return ZF(t, l, c, u);
};
if (t) {
- let e = t + JF, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : YF(ufe, !1, t, void 0, !0);
+ let e = t + XF, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : ZF(pfe, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -35463,7 +35476,7 @@ var Zde = (e, t) => {
});
}
return r;
-}, ffe = (e) => {
+}, hfe = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -35475,18 +35488,18 @@ var Zde = (e, t) => {
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, pfe = (e) => ({
- cache: lfe(e.cacheSize),
- parseClassName: dfe(e),
- sortModifiers: ffe(e),
- postfixLookupClassGroupIds: mfe(e),
- ...efe(e)
-}), mfe = (e) => {
+}, gfe = (e) => ({
+ cache: ffe(e.cacheSize),
+ parseClassName: mfe(e),
+ sortModifiers: hfe(e),
+ postfixLookupClassGroupIds: _fe(e),
+ ...rfe(e)
+}), _fe = (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;
-}, hfe = /\s+/, gfe = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(hfe), l = "";
+}, vfe = /\s+/, yfe = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(vfe), 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) {
@@ -35506,7 +35519,7 @@ var Zde = (e, t) => {
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + qF : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + YF : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -35517,34 +35530,34 @@ var Zde = (e, t) => {
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, _fe = (...e) => {
+}, bfe = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = XF(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = QF(n)) && (i && (i += " "), i += r);
return i;
-}, XF = (e) => {
+}, QF = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = XF(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = QF(e[r])) && (n && (n += " "), n += t);
return n;
-}, ZF = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = pfe(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, $F = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = gfe(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 = gfe(e, n);
+ let a = yfe(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(_fe(...e));
-}, vfe = [], QF = (e) => {
- let t = (t) => t[e] || vfe;
+ return a = o, (...e) => a(bfe(...e));
+}, xfe = [], eI = (e) => {
+ let t = (t) => t[e] || xfe;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, $F = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, eI = /^\((?:(\w[\w-]*):)?(.+)\)$/i, yfe = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, bfe = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, xfe = /\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$/, Sfe = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Cfe = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, wfe = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, tI = (e) => yfe.test(e), nI = (e) => !!e && !Number.isNaN(Number(e)), rI = (e) => !!e && Number.isInteger(Number(e)), iI = (e) => e.endsWith("%") && nI(e.slice(0, -1)), aI = (e) => bfe.test(e), oI = () => !0, Tfe = (e) => xfe.test(e) && !Sfe.test(e), sI = () => !1, Efe = (e) => Cfe.test(e), Dfe = (e) => wfe.test(e), Ofe = (e) => !cI(e) && !pI(e), kfe = (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)), Afe = (e) => _I(e, xI, sI), cI = (e) => $F.test(e), lI = (e) => _I(e, SI, Tfe), uI = (e) => _I(e, Rfe, nI), jfe = (e) => _I(e, wI, oI), Mfe = (e) => _I(e, CI, sI), dI = (e) => _I(e, yI, sI), Nfe = (e) => _I(e, bI, Dfe), fI = (e) => _I(e, TI, Efe), pI = (e) => eI.test(e), mI = (e) => vI(e, SI), Pfe = (e) => vI(e, CI), hI = (e) => vI(e, yI), Ffe = (e) => vI(e, xI), Ife = (e) => vI(e, bI), gI = (e) => vI(e, TI, !0), Lfe = (e) => vI(e, wI, !0), _I = (e, t, n) => {
- let r = $F.exec(e);
+}, tI = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, nI = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Sfe = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Cfe = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, wfe = /\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$/, Tfe = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Efe = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Dfe = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, rI = (e) => Sfe.test(e), iI = (e) => !!e && !Number.isNaN(Number(e)), aI = (e) => !!e && Number.isInteger(Number(e)), oI = (e) => e.endsWith("%") && iI(e.slice(0, -1)), sI = (e) => Cfe.test(e), cI = () => !0, Ofe = (e) => wfe.test(e) && !Tfe.test(e), lI = () => !1, kfe = (e) => Efe.test(e), Afe = (e) => Dfe.test(e), jfe = (e) => !uI(e) && !hI(e), Mfe = (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)), Nfe = (e) => yI(e, CI, lI), uI = (e) => tI.test(e), dI = (e) => yI(e, wI, Ofe), fI = (e) => yI(e, Vfe, iI), Pfe = (e) => yI(e, EI, cI), Ffe = (e) => yI(e, TI, lI), pI = (e) => yI(e, xI, lI), Ife = (e) => yI(e, SI, Afe), mI = (e) => yI(e, DI, kfe), hI = (e) => nI.test(e), gI = (e) => bI(e, wI), Lfe = (e) => bI(e, TI), _I = (e) => bI(e, xI), Rfe = (e) => bI(e, CI), zfe = (e) => bI(e, SI), vI = (e) => bI(e, DI, !0), Bfe = (e) => bI(e, EI, !0), yI = (e, t, n) => {
+ let r = tI.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, vI = (e, t, n = !1) => {
- let r = eI.exec(e);
+}, bI = (e, t, n = !1) => {
+ let r = nI.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, yI = (e) => e === "position" || e === "percentage", bI = (e) => e === "image" || e === "url", xI = (e) => e === "length" || e === "size" || e === "bg-size", SI = (e) => e === "length", Rfe = (e) => e === "number", CI = (e) => e === "family-name", wI = (e) => e === "number" || e === "weight", TI = (e) => e === "shadow", EI = () => {
- let e = QF("color"), t = QF("font"), n = QF("text"), r = QF("font-weight"), i = QF("tracking"), a = QF("leading"), o = QF("breakpoint"), s = QF("container"), c = QF("spacing"), l = QF("radius"), u = QF("shadow"), d = QF("inset-shadow"), f = QF("text-shadow"), p = QF("drop-shadow"), m = QF("blur"), h = QF("perspective"), g = QF("aspect"), _ = QF("ease"), v = QF("animate"), y = () => [
+}, xI = (e) => e === "position" || e === "percentage", SI = (e) => e === "image" || e === "url", CI = (e) => e === "length" || e === "size" || e === "bg-size", wI = (e) => e === "length", Vfe = (e) => e === "number", TI = (e) => e === "family-name", EI = (e) => e === "number" || e === "weight", DI = (e) => e === "shadow", OI = () => {
+ let e = eI("color"), t = eI("font"), n = eI("text"), r = eI("font-weight"), i = eI("tracking"), a = eI("leading"), o = eI("breakpoint"), s = eI("container"), c = eI("spacing"), l = eI("radius"), u = eI("shadow"), d = eI("inset-shadow"), f = eI("text-shadow"), p = eI("drop-shadow"), m = eI("blur"), h = eI("perspective"), g = eI("aspect"), _ = eI("ease"), v = eI("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -35569,8 +35582,8 @@ var Zde = (e, t) => {
"left-bottom"
], x = () => [
...b(),
- pI,
- cI
+ hI,
+ uI
], S = () => [
"auto",
"hidden",
@@ -35582,43 +35595,43 @@ var Zde = (e, t) => {
"contain",
"none"
], w = () => [
- pI,
- cI,
+ hI,
+ uI,
c
], T = () => [
- tI,
+ rI,
"full",
"auto",
...w()
], E = () => [
- rI,
+ aI,
"none",
"subgrid",
- pI,
- cI
+ hI,
+ uI
], D = () => [
"auto",
{ span: [
"full",
- rI,
- pI,
- cI
+ aI,
+ hI,
+ uI
] },
- rI,
- pI,
- cI
+ aI,
+ hI,
+ uI
], O = () => [
- rI,
+ aI,
"auto",
- pI,
- cI
+ hI,
+ uI
], k = () => [
"auto",
"min",
"max",
"fr",
- pI,
- cI
+ hI,
+ uI
], A = () => [
"start",
"end",
@@ -35638,7 +35651,7 @@ var Zde = (e, t) => {
"center-safe",
"end-safe"
], M = () => ["auto", ...w()], ee = () => [
- tI,
+ rI,
"auto",
"full",
"dvw",
@@ -35653,7 +35666,7 @@ var Zde = (e, t) => {
...w()
], N = () => [
s,
- tI,
+ rI,
"screen",
"full",
"dvw",
@@ -35664,7 +35677,7 @@ var Zde = (e, t) => {
"fit",
...w()
], te = () => [
- tI,
+ rI,
"screen",
"full",
"lh",
@@ -35677,13 +35690,13 @@ var Zde = (e, t) => {
...w()
], P = () => [
e,
- pI,
- cI
+ hI,
+ uI
], ne = () => [
...b(),
- hI,
- dI,
- { position: [pI, cI] }
+ _I,
+ pI,
+ { position: [hI, uI] }
], re = () => ["no-repeat", { repeat: [
"",
"x",
@@ -35694,25 +35707,25 @@ var Zde = (e, t) => {
"auto",
"cover",
"contain",
- Ffe,
- Afe,
- { size: [pI, cI] }
+ Rfe,
+ Nfe,
+ { size: [hI, uI] }
], I = () => [
- iI,
- mI,
- lI
+ oI,
+ gI,
+ dI
], ie = () => [
"",
"none",
"full",
l,
- pI,
- cI
+ hI,
+ uI
], ae = () => [
"",
- nI,
- mI,
- lI
+ iI,
+ gI,
+ dI
], oe = () => [
"solid",
"dashed",
@@ -35736,32 +35749,32 @@ var Zde = (e, t) => {
"color",
"luminosity"
], ce = () => [
- nI,
iI,
- hI,
- dI
+ oI,
+ _I,
+ pI
], le = () => [
"",
"none",
m,
- pI,
- cI
+ hI,
+ uI
], ue = () => [
"none",
- nI,
- pI,
- cI
+ iI,
+ hI,
+ uI
], de = () => [
"none",
- nI,
- pI,
- cI
+ iI,
+ hI,
+ uI
], fe = () => [
- nI,
- pI,
- cI
+ iI,
+ hI,
+ uI
], pe = () => [
- tI,
+ rI,
"full",
...w()
];
@@ -35775,17 +35788,17 @@ var Zde = (e, t) => {
"bounce"
],
aspect: ["video"],
- blur: [aI],
- breakpoint: [aI],
- color: [oI],
- container: [aI],
- "drop-shadow": [aI],
+ blur: [sI],
+ breakpoint: [sI],
+ color: [cI],
+ container: [sI],
+ "drop-shadow": [sI],
ease: [
"in",
"out",
"in-out"
],
- font: [Ofe],
+ font: [jfe],
"font-weight": [
"thin",
"extralight",
@@ -35797,7 +35810,7 @@ var Zde = (e, t) => {
"extrabold",
"black"
],
- "inset-shadow": [aI],
+ "inset-shadow": [sI],
leading: [
"none",
"tight",
@@ -35814,11 +35827,11 @@ var Zde = (e, t) => {
"distant",
"none"
],
- radius: [aI],
- shadow: [aI],
- spacing: ["px", nI],
- text: [aI],
- "text-shadow": [aI],
+ radius: [sI],
+ shadow: [sI],
+ spacing: ["px", iI],
+ text: [sI],
+ "text-shadow": [sI],
tracking: [
"tighter",
"tight",
@@ -35832,9 +35845,9 @@ var Zde = (e, t) => {
aspect: [{ aspect: [
"auto",
"square",
- tI,
- cI,
- pI,
+ rI,
+ uI,
+ hI,
g
] }],
container: ["container"],
@@ -35842,15 +35855,15 @@ var Zde = (e, t) => {
"",
"normal",
"size",
- pI,
- cI
+ hI,
+ uI
] }],
- "container-named": [kfe],
+ "container-named": [Mfe],
columns: [{ columns: [
- nI,
+ iI,
"auto",
- cI,
- pI,
+ uI,
+ hI,
s
] }],
"break-after": [{ "break-after": y() }],
@@ -35947,13 +35960,13 @@ var Zde = (e, t) => {
"collapse"
],
z: [{ z: [
- rI,
+ aI,
"auto",
- pI,
- cI
+ hI,
+ uI
] }],
basis: [{ basis: [
- tI,
+ rI,
"full",
"auto",
s,
@@ -35971,32 +35984,32 @@ var Zde = (e, t) => {
"wrap-reverse"
] }],
flex: [{ flex: [
- nI,
- tI,
+ iI,
+ rI,
"auto",
"initial",
"none",
- cI
+ uI
] }],
grow: [{ grow: [
"",
- nI,
- pI,
- cI
+ iI,
+ hI,
+ uI
] }],
shrink: [{ shrink: [
"",
- nI,
- pI,
- cI
+ iI,
+ hI,
+ uI
] }],
order: [{ order: [
- rI,
+ aI,
"first",
"last",
"none",
- pI,
- cI
+ hI,
+ uI
] }],
"grid-cols": [{ "grid-cols": E() }],
"col-start-end": [{ col: D() }],
@@ -36103,15 +36116,15 @@ var Zde = (e, t) => {
"font-size": [{ text: [
"base",
n,
- mI,
- lI
+ gI,
+ dI
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- Lfe,
- jfe
+ Bfe,
+ Pfe
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -36123,15 +36136,15 @@ var Zde = (e, t) => {
"expanded",
"extra-expanded",
"ultra-expanded",
- iI,
- cI
+ oI,
+ uI
] }],
"font-family": [{ font: [
- Pfe,
- Mfe,
+ Lfe,
+ Ffe,
t
] }],
- "font-features": [{ "font-features": [cI] }],
+ "font-features": [{ "font-features": [uI] }],
"fvn-normal": ["normal-nums"],
"fvn-ordinal": ["ordinal"],
"fvn-slashed-zero": ["slashed-zero"],
@@ -36140,14 +36153,14 @@ var Zde = (e, t) => {
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
tracking: [{ tracking: [
i,
- pI,
- cI
+ hI,
+ uI
] }],
"line-clamp": [{ "line-clamp": [
- nI,
+ iI,
"none",
- pI,
- uI
+ hI,
+ fI
] }],
leading: [{ leading: [
"none",
@@ -36156,16 +36169,16 @@ var Zde = (e, t) => {
] }],
"list-image": [{ "list-image": [
"none",
- pI,
- cI
+ hI,
+ uI
] }],
"list-style-position": [{ list: ["inside", "outside"] }],
"list-style-type": [{ list: [
"disc",
"decimal",
"none",
- pI,
- cI
+ hI,
+ uI
] }],
"text-alignment": [{ text: [
"left",
@@ -36185,18 +36198,18 @@ var Zde = (e, t) => {
],
"text-decoration-style": [{ decoration: [...oe(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- nI,
+ iI,
"from-font",
"auto",
- pI,
- lI
+ hI,
+ dI
] }],
"text-decoration-color": [{ decoration: P() }],
"underline-offset": [{ "underline-offset": [
- nI,
+ iI,
"auto",
- pI,
- cI
+ hI,
+ uI
] }],
"text-transform": [
"uppercase",
@@ -36217,9 +36230,9 @@ var Zde = (e, t) => {
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- rI,
- pI,
- cI
+ aI,
+ hI,
+ uI
] }],
"vertical-align": [{ align: [
"baseline",
@@ -36230,8 +36243,8 @@ var Zde = (e, t) => {
"text-bottom",
"sub",
"super",
- pI,
- cI
+ hI,
+ uI
] }],
whitespace: [{ whitespace: [
"normal",
@@ -36259,8 +36272,8 @@ var Zde = (e, t) => {
] }],
content: [{ content: [
"none",
- pI,
- cI
+ hI,
+ uI
] }],
"bg-attachment": [{ bg: [
"fixed",
@@ -36295,24 +36308,24 @@ var Zde = (e, t) => {
"l",
"tl"
] },
- rI,
- pI,
- cI
+ aI,
+ hI,
+ uI
],
radial: [
"",
- pI,
- cI
+ hI,
+ uI
],
conic: [
"",
- rI,
- pI,
- cI
+ aI,
+ hI,
+ uI
]
},
- Ife,
- Nfe
+ zfe,
+ Ife
] }],
"bg-color": [{ bg: P() }],
"gradient-from-pos": [{ from: I() }],
@@ -36379,15 +36392,15 @@ var Zde = (e, t) => {
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- nI,
- pI,
- cI
+ iI,
+ hI,
+ uI
] }],
"outline-w": [{ outline: [
"",
- nI,
- mI,
- lI
+ iI,
+ gI,
+ dI
] }],
"outline-color": [{ outline: P() }],
shadow: [{ shadow: [
@@ -36395,35 +36408,35 @@ var Zde = (e, t) => {
"inner",
"none",
u,
- gI,
- fI
+ vI,
+ mI
] }],
"shadow-color": [{ shadow: P() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- gI,
- fI
+ vI,
+ mI
] }],
"inset-shadow-color": [{ "inset-shadow": P() }],
"ring-w": [{ ring: ae() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: P() }],
- "ring-offset-w": [{ "ring-offset": [nI, lI] }],
+ "ring-offset-w": [{ "ring-offset": [iI, dI] }],
"ring-offset-color": [{ "ring-offset": P() }],
"inset-ring-w": [{ "inset-ring": ae() }],
"inset-ring-color": [{ "inset-ring": P() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- gI,
- fI
+ vI,
+ mI
] }],
"text-shadow-color": [{ "text-shadow": P() }],
opacity: [{ opacity: [
- nI,
- pI,
- cI
+ iI,
+ hI,
+ uI
] }],
"mix-blend": [{ "mix-blend": [
...se(),
@@ -36445,7 +36458,7 @@ var Zde = (e, t) => {
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [nI] }],
+ "mask-image-linear-pos": [{ "mask-linear": [iI] }],
"mask-image-linear-from-pos": [{ "mask-linear-from": ce() }],
"mask-image-linear-to-pos": [{ "mask-linear-to": ce() }],
"mask-image-linear-from-color": [{ "mask-linear-from": P() }],
@@ -36474,7 +36487,7 @@ var Zde = (e, t) => {
"mask-image-y-to-pos": [{ "mask-y-to": ce() }],
"mask-image-y-from-color": [{ "mask-y-from": P() }],
"mask-image-y-to-color": [{ "mask-y-to": P() }],
- "mask-image-radial": [{ "mask-radial": [pI, cI] }],
+ "mask-image-radial": [{ "mask-radial": [hI, uI] }],
"mask-image-radial-from-pos": [{ "mask-radial-from": ce() }],
"mask-image-radial-to-pos": [{ "mask-radial-to": ce() }],
"mask-image-radial-from-color": [{ "mask-radial-from": P() }],
@@ -36485,7 +36498,7 @@ var Zde = (e, t) => {
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [nI] }],
+ "mask-image-conic-pos": [{ "mask-conic": [iI] }],
"mask-image-conic-from-pos": [{ "mask-conic-from": ce() }],
"mask-image-conic-to-pos": [{ "mask-conic-to": ce() }],
"mask-image-conic-from-color": [{ "mask-conic-from": P() }],
@@ -36509,111 +36522,111 @@ var Zde = (e, t) => {
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
"mask-image": [{ mask: [
"none",
- pI,
- cI
+ hI,
+ uI
] }],
filter: [{ filter: [
"",
"none",
- pI,
- cI
+ hI,
+ uI
] }],
blur: [{ blur: le() }],
brightness: [{ brightness: [
- nI,
- pI,
- cI
+ iI,
+ hI,
+ uI
] }],
contrast: [{ contrast: [
- nI,
- pI,
- cI
+ iI,
+ hI,
+ uI
] }],
"drop-shadow": [{ "drop-shadow": [
"",
"none",
p,
- gI,
- fI
+ vI,
+ mI
] }],
"drop-shadow-color": [{ "drop-shadow": P() }],
grayscale: [{ grayscale: [
"",
- nI,
- pI,
- cI
+ iI,
+ hI,
+ uI
] }],
"hue-rotate": [{ "hue-rotate": [
- nI,
- pI,
- cI
+ iI,
+ hI,
+ uI
] }],
invert: [{ invert: [
"",
- nI,
- pI,
- cI
+ iI,
+ hI,
+ uI
] }],
saturate: [{ saturate: [
- nI,
- pI,
- cI
+ iI,
+ hI,
+ uI
] }],
sepia: [{ sepia: [
"",
- nI,
- pI,
- cI
+ iI,
+ hI,
+ uI
] }],
"backdrop-filter": [{ "backdrop-filter": [
"",
"none",
- pI,
- cI
+ hI,
+ uI
] }],
"backdrop-blur": [{ "backdrop-blur": le() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- nI,
- pI,
- cI
+ iI,
+ hI,
+ uI
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- nI,
- pI,
- cI
+ iI,
+ hI,
+ uI
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- nI,
- pI,
- cI
+ iI,
+ hI,
+ uI
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- nI,
- pI,
- cI
+ iI,
+ hI,
+ uI
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- nI,
- pI,
- cI
+ iI,
+ hI,
+ uI
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- nI,
- pI,
- cI
+ iI,
+ hI,
+ uI
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- nI,
- pI,
- cI
+ iI,
+ hI,
+ uI
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- nI,
- pI,
- cI
+ iI,
+ hI,
+ uI
] }],
"border-collapse": [{ border: ["collapse", "separate"] }],
"border-spacing": [{ "border-spacing": w() }],
@@ -36629,39 +36642,39 @@ var Zde = (e, t) => {
"shadow",
"transform",
"none",
- pI,
- cI
+ hI,
+ uI
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- nI,
+ iI,
"initial",
- pI,
- cI
+ hI,
+ uI
] }],
ease: [{ ease: [
"linear",
"initial",
_,
- pI,
- cI
+ hI,
+ uI
] }],
delay: [{ delay: [
- nI,
- pI,
- cI
+ iI,
+ hI,
+ uI
] }],
animate: [{ animate: [
"none",
v,
- pI,
- cI
+ hI,
+ uI
] }],
backface: [{ backface: ["hidden", "visible"] }],
perspective: [{ perspective: [
h,
- pI,
- cI
+ hI,
+ uI
] }],
"perspective-origin": [{ "perspective-origin": x() }],
rotate: [{ rotate: ue() }],
@@ -36677,8 +36690,8 @@ var Zde = (e, t) => {
"skew-x": [{ "skew-x": fe() }],
"skew-y": [{ "skew-y": fe() }],
transform: [{ transform: [
- pI,
- cI,
+ hI,
+ uI,
"",
"none",
"gpu",
@@ -36692,9 +36705,9 @@ var Zde = (e, t) => {
"translate-z": [{ "translate-z": pe() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- rI,
- pI,
- cI
+ aI,
+ hI,
+ uI
] }],
accent: [{ accent: P() }],
appearance: [{ appearance: ["none", "auto"] }],
@@ -36744,8 +36757,8 @@ var Zde = (e, t) => {
"nwse-resize",
"zoom-in",
"zoom-out",
- pI,
- cI
+ hI,
+ uI
] }],
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
@@ -36831,15 +36844,15 @@ var Zde = (e, t) => {
"scroll",
"contents",
"transform",
- pI,
- cI
+ hI,
+ uI
] }],
fill: [{ fill: ["none", ...P()] }],
"stroke-w": [{ stroke: [
- nI,
- mI,
- lI,
- uI
+ iI,
+ gI,
+ dI,
+ fI
] }],
stroke: [{ stroke: ["none", ...P()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -37097,16 +37110,16 @@ var Zde = (e, t) => {
"selection"
]
};
-}, zfe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (DI(e, "cacheSize", t), DI(e, "prefix", n), DI(e, "experimentalParseClassName", r), OI(e.theme, a.theme), OI(e.classGroups, a.classGroups), OI(e.conflictingClassGroups, a.conflictingClassGroups), OI(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), DI(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), DI(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), kI(e.theme, i.theme), kI(e.classGroups, i.classGroups), kI(e.conflictingClassGroups, i.conflictingClassGroups), kI(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), AI(e, i, "postfixLookupClassGroups"), AI(e, i, "orderSensitiveModifiers"), e), DI = (e, t, n) => {
+}, Hfe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (kI(e, "cacheSize", t), kI(e, "prefix", n), kI(e, "experimentalParseClassName", r), AI(e.theme, a.theme), AI(e.classGroups, a.classGroups), AI(e.conflictingClassGroups, a.conflictingClassGroups), AI(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), kI(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), kI(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), jI(e.theme, i.theme), jI(e.classGroups, i.classGroups), jI(e.conflictingClassGroups, i.conflictingClassGroups), jI(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), MI(e, i, "postfixLookupClassGroups"), MI(e, i, "orderSensitiveModifiers"), e), kI = (e, t, n) => {
n !== void 0 && (e[t] = n);
-}, OI = (e, t) => {
- if (t) for (let n in t) DI(e, n, t[n]);
-}, kI = (e, t) => {
- if (t) for (let n in t) AI(e, t, n);
-}, AI = (e, t, n) => {
+}, AI = (e, t) => {
+ if (t) for (let n in t) kI(e, n, t[n]);
+}, jI = (e, t) => {
+ if (t) for (let n in t) MI(e, t, n);
+}, MI = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, Bfe = (e, ...t) => typeof e == "function" ? ZF(EI, e, ...t) : ZF(() => zfe(EI(), e), ...t), Vfe = [
+}, Ufe = (e, ...t) => typeof e == "function" ? $F(OI, e, ...t) : $F(() => Hfe(OI(), e), ...t), Wfe = [
"large-title",
"display-1",
"display-2",
@@ -37120,17 +37133,17 @@ var Zde = (e, t) => {
"body-2",
"caption-1",
"caption-2"
-], Hfe = [
+], Gfe = [
"regular",
"medium",
"semibold",
"bold"
-], q = Bfe({ extend: { classGroups: { "font-size": [{ text: Vfe.flatMap((e) => Hfe.map((t) => `${e}-${t}`)) }] } } });
-function jI(e) {
+], q = Ufe({ extend: { classGroups: { "font-size": [{ text: Wfe.flatMap((e) => Gfe.map((t) => `${e}-${t}`)) }] } } });
+function NI(e) {
return e;
}
// src/react/components/pill-tab.tsx
-var Ufe = typeof window < "u" ? F.useLayoutEffect : F.useEffect, MI = jI({
+var Kfe = typeof window < "u" ? F.useLayoutEffect : F.useEffect, PI = NI({
radius: {
blue: "rounded-full",
gray: "rounded-2lg"
@@ -37152,9 +37165,9 @@ var Ufe = typeof window < "u" ? F.useLayoutEffect : F.useEffect, MI = jI({
gray: "text-text-primary"
}
});
-function NI({ children: e, className: t, ref: n, container: r, ...i }) {
+function FI({ children: e, className: t, ref: n, container: r, ...i }) {
let a = (0, F.useRef)(null), [o, s] = (0, F.useState)(null);
- Ufe(() => {
+ Kfe(() => {
let e = r === void 0 ? a.current : r;
if (!e) return;
let t = () => {
@@ -37190,7 +37203,7 @@ function NI({ children: e, className: t, ref: n, container: r, ...i }) {
}, l = o && /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
"data-pill-thumb": "",
- className: q("pointer-events-none absolute left-0 top-0", MI.radius[o.variant], MI.thumb[o.variant]),
+ className: q("pointer-events-none absolute left-0 top-0", PI.radius[o.variant], PI.thumb[o.variant]),
style: {
"--pill-left": `${o.left}px`,
"--pill-top": `${o.top}px`,
@@ -37207,37 +37220,37 @@ function NI({ children: e, className: t, ref: n, container: r, ...i }) {
}) : r ? (0, Rt.createPortal)(l, r) : null;
}
// src/react/manage-header/manage-header-island.tsx
-var PI = null, FI = null, II = /* @__PURE__ */ new Set();
-function Wfe(e) {
- return II.add(e), () => {
- II.delete(e);
+var II = null, LI = null, RI = /* @__PURE__ */ new Set();
+function qfe(e) {
+ return RI.add(e), () => {
+ RI.delete(e);
};
}
-function Gfe() {
- for (let e of [...II]) e();
+function Jfe() {
+ for (let e of [...RI]) e();
}
-var Kfe = { render(e) {
- FI = e, (0, Rt.flushSync)(Gfe);
+var Yfe = { render(e) {
+ LI = e, (0, Rt.flushSync)(Jfe);
} };
-function qfe(e) {
- return PI = e, FI = null, Kfe;
+function Xfe(e) {
+ return II = e, LI = null, Yfe;
}
-function Jfe() {
- let e = (0, F.useSyncExternalStore)(Wfe, () => FI);
- return PI && e ? /* @__PURE__ */ (0, I.jsx)(Yfe, {
- host: PI,
+function Zfe() {
+ let e = (0, F.useSyncExternalStore)(qfe, () => LI);
+ return II && e ? /* @__PURE__ */ (0, I.jsx)(Qfe, {
+ host: II,
props: e
}) : null;
}
-function Yfe({ host: e, props: t }) {
- let n = IF(t);
+function Qfe({ host: e, props: t }) {
+ let n = RF(t);
return n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(Xfe, {
+ /* @__PURE__ */ (0, I.jsx)($fe, {
host: e,
pressed: n.pressed,
menu: t.menu
}),
- n.crumb ? /* @__PURE__ */ (0, I.jsx)(Zfe, {
+ n.crumb ? /* @__PURE__ */ (0, I.jsx)(epe, {
host: e,
label: n.crumb
}) : null,
@@ -37246,13 +37259,13 @@ function Yfe({ host: e, props: t }) {
"data-compact": n.compact ? "" : void 0,
children: n.title
}),
- n.lede.kind === "none" ? null : /* @__PURE__ */ (0, I.jsx)(Qfe, {
+ n.lede.kind === "none" ? null : /* @__PURE__ */ (0, I.jsx)(tpe, {
host: e,
lede: n.lede
})
] }) : null;
}
-function Xfe({ host: e, pressed: t, menu: n }) {
+function $fe({ host: e, pressed: t, menu: n }) {
let r = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
let e = r.current, t = e?.querySelector("button[aria-pressed=\"true\"]");
@@ -37262,7 +37275,7 @@ function Xfe({ host: e, pressed: t, menu: n }) {
}, [t, n]), /* @__PURE__ */ (0, I.jsx)("nav", {
"data-manage-bar": "",
"aria-label": "管理",
- children: /* @__PURE__ */ (0, I.jsx)(NI, {
+ children: /* @__PURE__ */ (0, I.jsx)(FI, {
ref: r,
"data-manage-menu": "",
"data-pill-nav": "",
@@ -37276,13 +37289,13 @@ function Xfe({ host: e, pressed: t, menu: n }) {
"data-pill-selected": a ? "" : void 0,
"data-pill-variant": "gray",
onClick: () => e.openManage(n),
- children: [/* @__PURE__ */ (0, I.jsx)(BF, { name: i }), /* @__PURE__ */ (0, I.jsx)("span", { children: r })]
+ children: [/* @__PURE__ */ (0, I.jsx)(HF, { name: i }), /* @__PURE__ */ (0, I.jsx)("span", { children: r })]
}, n);
})
})
});
}
-function Zfe({ host: e, label: t }) {
+function epe({ host: e, label: t }) {
return /* @__PURE__ */ (0, I.jsx)("nav", {
"data-manage-crumb": "",
"aria-label": "当前位置",
@@ -37292,20 +37305,20 @@ function Zfe({ host: e, label: t }) {
t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || t.button || (t.preventDefault(), e.openDataCleanup());
},
children: "数据管理"
- }), /* @__PURE__ */ (0, I.jsx)(BF, { name: "chevron-right" })] }), /* @__PURE__ */ (0, I.jsx)("li", {
+ }), /* @__PURE__ */ (0, I.jsx)(HF, { name: "chevron-right" })] }), /* @__PURE__ */ (0, I.jsx)("li", {
"aria-current": "true",
children: /* @__PURE__ */ (0, I.jsx)("span", { children: t })
})] })
});
}
-function Qfe({ host: e, lede: t }) {
+function tpe({ host: e, lede: t }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
className: "mono",
"data-manage-lede": "",
children: t.kind === "skeleton" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-trash-lede-skeletons": "",
- dangerouslySetInnerHTML: { __html: zF }
- }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)($fe, { text: t.text }), t.total ? /* @__PURE__ */ (0, I.jsx)("button", {
+ dangerouslySetInnerHTML: { __html: VF }
+ }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(npe, { text: t.text }), t.total ? /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-empty-trash": "",
"data-danger": "",
@@ -37315,7 +37328,7 @@ function Qfe({ host: e, lede: t }) {
}) : null] })
});
}
-function $fe({ text: e }) {
+function npe({ text: e }) {
let t = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
Js(t.current, e);
@@ -37325,29 +37338,29 @@ function $fe({ text: e }) {
});
}
// src/core/text-lang.ts
-var epe = /[぀-ヿㇰ-ㇿヲ-゚]/, tpe = /[㐀-鿿豈-﫿]/, npe = /[A-Za-z]/;
-function LI(e) {
+var rpe = /[぀-ヿㇰ-ㇿヲ-゚]/, ipe = /[㐀-鿿豈-﫿]/, ape = /[A-Za-z]/;
+function zI(e) {
let t = String(e ?? "");
- if (epe.test(t)) return "ja";
- if (!tpe.test(t) && npe.test(t)) return "en";
+ if (rpe.test(t)) return "ja";
+ if (!ipe.test(t) && ape.test(t)) return "en";
}
-var rpe = (e) => {
- let t = LI(e);
+var ope = (e) => {
+ let t = zI(e);
return t ? ` lang="${t}"` : "";
-}, ipe = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, ape = (e, t = e?.name) => {
+}, spe = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, cpe = (e, t = e?.name) => {
let n = String(t || "").trim();
- return e?.is_jav ? n.replace(ipe, "") : n;
-}, ope = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), spe = (e) => {
+ return e?.is_jav ? n.replace(spe, "") : n;
+}, lpe = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), upe = (e) => {
let t = [e?.catalog_title, e?.original_title].map((e) => String(e || "").trim()).filter(Boolean);
- return t.find(ope) || t[0] || "";
+ return t.find(lpe) || t[0] || "";
};
-function RI(e, t = e?.name) {
- let n = ape(e, t), r = String(e?.code || "").trim().toUpperCase();
+function BI(e, t = e?.name) {
+ let n = cpe(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 = spe(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 = upe(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) => [
"中字",
"无码",
"无码破解"
@@ -37358,23 +37371,23 @@ function RI(e, t = e?.name) {
badges: f
};
}
-var zI = (e, t = e?.name) => {
- let { code: n, title: r, badges: i = [] } = RI(e, t);
+var VI = (e, t = e?.name) => {
+ let { code: n, title: r, badges: i = [] } = BI(e, t);
return n ? [
n,
...i,
r
].filter(Boolean).join(" ") : r;
};
-function BI(e, t = e?.name) {
- let { code: n, title: r, badges: i = [] } = RI(e, t);
+function HI(e, t = e?.name) {
+ let { code: n, title: r, badges: i = [] } = BI(e, t);
if (!n) return z(r);
let a = i.map((e) => `<small class="javedition ${e === "中字" ? "subtitle" : e === "无码" ? "uncensored" : e === "无码破解" ? "cracked" : "quality"}">${z(e)}</small>`).join("");
- return `<span class="ui-javidentity"><strong class="ui-javcode">${z(n)}</strong>${a}</span>${r ? ` <span class="ui-javtitle"${rpe(r)}>${z(r)}</span>` : ""}`;
+ return `<span class="ui-javidentity"><strong class="ui-javcode">${z(n)}</strong>${a}</span>${r ? ` <span class="ui-javtitle"${ope(r)}>${z(r)}</span>` : ""}`;
}
// src/react/activity/tasks.ts
-var VI = "/api/tasks", HI = ["tasks"];
-function cpe(e, t) {
+var UI = "/api/tasks", WI = ["tasks"];
+function dpe(e, t) {
let n = 0, r = 0, i = 0, a = 0;
for (let o of t) for (let [t, s] of Object.entries(e?.[String(o.id)] || {})) n += s, (t === "pending" || t === "running") && (r += s), (t === "failed" || t === "interrupted") && (i += s), t === "cancelled" && (a += s);
return {
@@ -37385,7 +37398,7 @@ function cpe(e, t) {
settled: n - r
};
}
-function lpe(e) {
+function fpe(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
let e = t.get(n.task_key);
@@ -37396,11 +37409,11 @@ function lpe(e) {
}
return [...t.values()];
}
-var upe = (e, t) => B(`${VI}?${new URLSearchParams({
+var ppe = (e, t) => B(`${UI}?${new URLSearchParams({
before_finished_at: e.finished_at || "",
before_id: String(e.id)
})}`, t);
-function dpe(...e) {
+function mpe(...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) => {
@@ -37408,26 +37421,26 @@ function dpe(...e) {
return n === r ? t.id - e.id : n < r ? 1 : -1;
});
}
-var fpe = 2e3, ppe = 1e4, UI = (e) => e?.running?.length ? fpe : ppe, WI = (e) => B(VI, e), mpe = (e, t, n) => V(`${VI}/${e}/control`, { action: t }, "POST", n);
-async function hpe(e) {
+var hpe = 2e3, gpe = 1e4, GI = (e) => e?.running?.length ? hpe : gpe, KI = (e) => B(UI, e), _pe = (e, t, n) => V(`${UI}/${e}/control`, { action: t }, "POST", n);
+async function vpe(e) {
await H.fetchQuery({
- queryKey: HI,
- queryFn: () => WI(e)
+ queryKey: WI,
+ queryFn: () => KI(e)
});
}
-var gpe = {
+var ype = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, _pe = {
+}, bpe = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "意外中断"
-}, vpe = (e) => _pe[e] || e, GI = {
+}, xpe = (e) => bpe[e] || e, qI = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -37504,7 +37517,7 @@ var gpe = {
without_code: "未识别番号",
incomplete: "资料或封面未取得",
result: "结果"
-}, ype = [
+}, Spe = [
"gone_count",
"unclear_count",
"source_failed",
@@ -37526,14 +37539,14 @@ var gpe = {
"paused_count",
"miss",
"incomplete"
-], bpe = ["face_match_unavailable"], KI = (e) => e.result_summary?.ok === !1 || !!e.result_summary?.error || bpe.some((t) => e.result_summary?.[t] === !0) || ype.some((t) => Number(e.result_summary?.[t]) > 0);
-function xpe(e) {
+], Cpe = ["face_match_unavailable"], JI = (e) => e.result_summary?.ok === !1 || !!e.result_summary?.error || Cpe.some((t) => e.result_summary?.[t] === !0) || Spe.some((t) => Number(e.result_summary?.[t]) > 0);
+function wpe(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 qI = /* @__PURE__ */ new Set(["library-processing"]);
-function Spe(e, t = !0) {
- if (!KI(e) && e.status !== "failed" || qI.has(e.task_key) && !t) return null;
+var YI = /* @__PURE__ */ new Set(["library-processing"]);
+function Tpe(e, t = !0) {
+ if (!JI(e) && e.status !== "failed" || YI.has(e.task_key) && !t) return null;
let n = {
"link-check": ["/data-cleanup#link-manager", "查看有问题的链接"],
"link-prune": ["/data-cleanup#link-manager", "查看有问题的链接"],
@@ -37551,19 +37564,19 @@ function Spe(e, t = !0) {
label: n[1]
} : null;
}
-function Cpe(e) {
+function Epe(e) {
let t = e.result_summary?.asset_id, n = e.result_summary?.name;
return typeof t == "number" && Number.isInteger(t) && t > 0 && typeof n == "string" && n ? {
href: `/assets/${t}`,
label: n
} : null;
}
-function wpe(e) {
+function Dpe(e) {
let t = /* @__PURE__ */ new Map();
- for (let n of e) qI.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) YI.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 Tpe(e) {
+function Ope(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
if (!n.followup_key || n.parent_run_id == null) continue;
@@ -37572,7 +37585,7 @@ function Tpe(e) {
}
return t;
}
-function Epe(e, t) {
+function kpe(e, t) {
let n = [], r = /* @__PURE__ */ new Map();
for (let i of e) {
if (!t(i)) {
@@ -37594,12 +37607,12 @@ function Epe(e, t) {
}
return n;
}
-var Dpe = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !KI(e) && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), JI = (e) => e.status === "pending" || e.status === "running";
-function Ope(e) {
+var Ape = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !JI(e) && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), XI = (e) => e.status === "pending" || e.status === "running";
+function jpe(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, ZI(e.error) || Fpe(o) || (JI(e) && i > 0 ? `${XI(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
+ return [r, $I(e.error) || Rpe(o) || (XI(e) && i > 0 ? `${QI(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
}
-function YI(e) {
+function ZI(e) {
if (typeof e != "number" || !Number.isFinite(e) || e < 0) return "";
let t = Math.floor(e);
if (t < 60) return `${t} 秒`;
@@ -37608,19 +37621,19 @@ function YI(e) {
let r = Math.floor(n / 60);
return r < 48 ? `${r} 小时 ${n % 60} 分` : `${Math.floor(r / 24).toLocaleString()} 天 ${r % 24} 小时`;
}
-function XI(e, t) {
+function QI(e, t) {
let n = Math.max(0, Number(t) || 0);
return `${Math.min(n, Math.max(0, Number(e) || 0)).toLocaleString()} / ${n.toLocaleString()}`;
}
-function kpe(e) {
+function Mpe(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 ZI(e) {
- let t = kpe(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);
+function $I(e) {
+ let t = Mpe(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);
return n ? xn(n[1]) : t;
}
-var Ape = {
+var Npe = {
partial: "处理已结束,部分项目需处理",
complete: "处理完成",
interrupted: "处理已中断",
@@ -37638,11 +37651,11 @@ var Ape = {
三站都没对上她: "三个来源均未找到与该人物相符的资料页",
已有身份: "已有创作者分类",
已变: "资料已被其他操作修改,本次未保存"
-}, QI = {
+}, eL = {
avwikidb: "AVWikiDB",
javdb: "JavDB",
"minnano-av": "みんなのAV"
-}, jpe = {
+}, Ppe = {
like: "标记喜欢",
seen: "标记看过",
later: "加入稍后看",
@@ -37653,8 +37666,8 @@ var Ape = {
"dismiss-junk": "确认不是垃圾",
"reconsider-junk": "重新判定垃圾",
region: "判定产地"
-}, Mpe = (e) => Ape[e] || e.replace(/(avwikidb|javdb|minnano-av) (绑定|写入)/gi, (e, t, n) => n === "绑定" ? `已关联 ${QI[t.toLowerCase()]} 资料页` : `已保存来自 ${QI[t.toLowerCase()]} 的资料`);
-function $I(e) {
+}, Fpe = (e) => Npe[e] || e.replace(/(avwikidb|javdb|minnano-av) (绑定|写入)/gi, (e, t, n) => n === "绑定" ? `已关联 ${eL[t.toLowerCase()]} 资料页` : `已保存来自 ${eL[t.toLowerCase()]} 的资料`);
+function tL(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -37664,7 +37677,7 @@ function $I(e) {
minute: "2-digit"
});
}
-var Npe = /* @__PURE__ */ new Set([
+var Ipe = /* @__PURE__ */ new Set([
"blocked_by",
"status",
"run_id",
@@ -37673,20 +37686,20 @@ var Npe = /* @__PURE__ */ new Set([
"completed_at",
"finished_at"
]);
-function eL(e) {
- let t = Ppe(e);
+function nL(e) {
+ let t = Lpe(e);
return e?.face_match_unavailable === !0 && !t.some((e) => /不可用|未生效/.test(e)) && t.push("人脸模型不可用,未做人脸核对"), t;
}
-function Ppe(e) {
- return Object.entries(e || {}).filter(([e, t]) => !Npe.has(e) && (e in GI || 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" ? ZI(String(t)) : e === "outcome" || e === "result" ? Mpe(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${GI[e]} ${Xn(Number(t))}` : e === "operation" ? `操作:${jpe[String(t)] || "批量操作"}` : `${GI[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);
+function Lpe(e) {
+ return Object.entries(e || {}).filter(([e, t]) => !Ipe.has(e) && (e in qI || 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" ? $I(String(t)) : e === "outcome" || e === "result" ? Fpe(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${qI[e]} ${Xn(Number(t))}` : e === "operation" ? `操作:${Ppe[String(t)] || "批量操作"}` : `${qI[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);
}
-var Fpe = (e) => eL(e).join(" · ");
+var Rpe = (e) => nL(e).join(" · ");
// src/react/use-entity-names.ts
-function tL() {
+function rL() {
return (0, F.useSyncExternalStore)(Yt, Jt, Jt);
}
// src/react/components/async-text.tsx
-function nL({ text: e, busy: t, placeholder: n }) {
+function iL({ text: e, busy: t, placeholder: n }) {
let r = (0, F.useRef)(null), i = (0, F.useRef)(e), a = e ?? i.current;
return (0, F.useLayoutEffect)(() => {
e === void 0 ? a === void 0 && pc(r.current) : i.current = e;
@@ -37707,7 +37720,7 @@ function nL({ text: e, busy: t, placeholder: n }) {
});
}
// src/react/boardui/components/base/buttons/icon-button.tsx
-var rL = jI({
+var aL = NI({
base: "relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg bg-background-primary-default text-foreground-icon-primary border border-border-button-default shadow-xs select-none cursor-pointer transition-[background-color,border-color,box-shadow,color] duration-150 ease outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring hover:bg-background-primary-hover hover:border-border-button-hover active:bg-background-primary-active active:border-border-button-active disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:border-border-button-default disabled:text-icon-button-disabled-foreground disabled:opacity-60 disabled:shadow-none",
size: {
medium: "size-9",
@@ -37718,20 +37731,20 @@ var rL = jI({
small: "size-4 shrink-0"
}
});
-function iL({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function oL({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
ref: i,
type: r,
- className: q(rL.base, rL.size[t], n),
+ className: q(aL.base, aL.size[t], n),
...a,
children: /* @__PURE__ */ (0, I.jsx)(e, {
- className: rL.icon[t],
+ className: aL.icon[t],
"aria-hidden": !0
})
});
}
// src/react/components/glass-drift.tsx
-function aL() {
+function sL() {
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-glass-drift": "",
"aria-hidden": "true",
@@ -37745,7 +37758,7 @@ function aL() {
});
}
// src/react/components/use-stuck.ts
-function oL(e) {
+function cL(e) {
(0, F.useEffect)(() => {
let t = e.current;
if (!t) return;
@@ -37762,7 +37775,7 @@ function oL(e) {
}, [e]);
}
// src/react/components/use-horizontal-scroller.ts
-function sL(e, t = !0) {
+function lL(e, t = !0) {
let [n, r] = (0, F.useState)(null), i = (0, F.useCallback)((t) => {
r(t), typeof e == "function" ? e(t) : e && (e.current = t);
}, [e]);
@@ -37776,17 +37789,17 @@ function sL(e, t = !0) {
}, [n, t]), i;
}
// src/react/components/filter-glass.tsx
-var Ipe = ({ className: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var zpe = ({ className: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
className: e,
dangerouslySetInnerHTML: { __html: Bs("正在处理") }
});
-function cL({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(iL, {
+function uL({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsx)(oL, {
...a,
"data-filter-action": "",
size: "small",
- icon: n && r === "spinner" ? Ipe : t,
+ icon: n && r === "spinner" ? zpe : t,
"aria-label": e,
title: a.title || e,
"aria-busy": n || void 0,
@@ -37796,9 +37809,9 @@ function cL({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress
}
});
}
-function Lpe({ title: e, children: t }) {
+function Bpe({ title: e, children: t }) {
let n = (0, F.useRef)(null);
- return oL(n), /* @__PURE__ */ (0, I.jsxs)("div", {
+ return cL(n), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: n,
role: "group",
"aria-label": e,
@@ -37811,13 +37824,13 @@ function Lpe({ title: e, children: t }) {
children: e
}),
t,
- /* @__PURE__ */ (0, I.jsx)(aL, {})
+ /* @__PURE__ */ (0, I.jsx)(sL, {})
]
});
}
-function lL({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
- let d = (0, F.useRef)(null), f = sL(), p = sL(u);
- return oL(d), /* @__PURE__ */ (0, I.jsxs)("div", {
+function dL({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
+ let d = (0, F.useRef)(null), f = lL(), p = lL(u);
+ return cL(d), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: d,
role: "group",
"aria-label": e,
@@ -37842,27 +37855,27 @@ function lL({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassNa
className: q("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
children: r
}),
- /* @__PURE__ */ (0, I.jsx)(aL, {})
+ /* @__PURE__ */ (0, I.jsx)(sL, {})
]
});
}
-var Rpe = "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 uL({ children: e, pressed: t, onPress: n, className: r, ...i }) {
+var Vpe = "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 fL({ children: e, pressed: t, onPress: n, className: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
...i,
"aria-pressed": t,
- className: q(Rpe, r),
+ className: q(Vpe, r),
onClick: n,
children: e
});
}
-var zpe = "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 dL({ children: e, onPress: t, busy: n = !1 }) {
+var Hpe = "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 pL({ children: e, onPress: t, busy: n = !1 }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glass-pill": "",
- className: zpe,
+ className: Hpe,
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
onClick: () => {
@@ -37872,13 +37885,13 @@ function dL({ children: e, onPress: t, busy: n = !1 }) {
});
}
// src/react/components/use-view-glide.ts
-var fL = (e, t) => [
+var mL = (e, t) => [
"x",
"y",
"w",
"h"
].every((n) => e[n] === t[n]);
-function pL(e, t, n) {
+function hL(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;
@@ -37902,17 +37915,17 @@ function pL(e, t, n) {
h: e.offsetHeight
};
}
-function mL(e, t, n, r, { axis: i = "x" } = {}) {
+function gL(e, t, n, r, { axis: i = "x" } = {}) {
let a = (0, F.useRef)(null), o = (0, F.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 ? pL(u, l, i) : null;
+ let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? hL(u, l, i) : null;
if (!d || !d.w || !d.h) {
Kc(s), s.hidden = !0, a.current = null;
return;
}
let f = s.hidden ? null : a.current;
- s.hidden = !1, a.current = d, !(o && f && fL(f, d)) && Wc(s, o ? f : null, d, i);
+ s.hidden = !1, a.current = d, !(o && f && mL(f, d)) && Wc(s, o ? f : null, d, i);
}, [
e,
t,
@@ -37933,8 +37946,8 @@ function mL(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 ? pL(o, r, i) : null, l = a.current;
- s && l && fL(s, l) || c();
+ let e = t.current, o = e?.offsetWidth ? e.querySelector(n) : null, s = o && r ? hL(o, r, i) : null, l = a.current;
+ s && l && mL(s, l) || c();
}), u = t.current;
if (u && r) {
l.observe(u);
@@ -37965,7 +37978,7 @@ function mL(e, t, n, r, { axis: i = "x" } = {}) {
};
}
// src/react/boardui/components/base/buttons/button.tsx
-var hL = jI({
+var _L = NI({
base: "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden font-sans select-none cursor-pointer button-press-motion outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring disabled:cursor-not-allowed aria-disabled:cursor-not-allowed",
size: {
medium: "h-9 rounded-2lg p-2 text-body-medium",
@@ -37998,52 +38011,52 @@ function J({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadi
return /* @__PURE__ */ (0, I.jsxs)("button", {
ref: c,
type: s,
- className: q(hL.base, hL.size[t], hL.variant[e], n && hL.iconOnlySize[t], o),
+ className: q(_L.base, _L.size[t], _L.variant[e], n && _L.iconOnlySize[t], o),
...l,
children: [
r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: hL.icon[t],
+ className: _L.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, I.jsx)("span", {
- className: hL.label[t],
+ className: _L.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, I.jsx)(i, {
- className: hL.icon[t],
+ className: _L.icon[t],
"aria-hidden": !0
}) : null
]
});
}
-function gL({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
+function vL({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
return /* @__PURE__ */ (0, I.jsxs)("a", {
ref: s,
- className: q(hL.base, hL.size[t], hL.variant[e], n && hL.iconOnlySize[t], o),
+ className: q(_L.base, _L.size[t], _L.variant[e], n && _L.iconOnlySize[t], o),
...c,
children: [
r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: hL.icon[t],
+ className: _L.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, I.jsx)("span", {
- className: hL.label[t],
+ className: _L.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, I.jsx)(i, {
- className: hL.icon[t],
+ className: _L.icon[t],
"aria-hidden": !0
}) : null
]
});
}
// node_modules/react-aria-components/dist/private/utils.mjs
-var _L = Symbol("default");
-function vL({ values: e, children: t }) {
+var yL = Symbol("default");
+function bL({ values: e, children: t }) {
for (let [n, r] of e) t = /*#__PURE__*/ F.createElement(n.Provider, { value: r }, t);
return t;
}
-function yL(e) {
+function xL(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
return (0, F.useMemo)(() => {
let e, l, u;
@@ -38077,11 +38090,11 @@ function yL(e) {
c
]);
}
-function bL(e, t) {
+function SL(e, t) {
let n = (0, F.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || _L;
+ let e = t || yL;
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}.`);
@@ -38090,8 +38103,8 @@ function bL(e, t) {
}
return n;
}
-function xL(e, t, n) {
- let { ref: r, ...i } = bL(n, e.slot) || {}, a = KC((0, F.useMemo)(() => LC(t, r), [t, r])), o = K(i, e);
+function CL(e, t, n) {
+ let { ref: r, ...i } = SL(n, e.slot) || {}, a = XC((0, F.useMemo)(() => VC(t, r), [t, r])), o = K(i, e);
return "style" in i && i.style && "style" in e && e.style && (o.style = typeof i.style == "function" || typeof e.style == "function" ? (t) => {
let n = typeof i.style == "function" ? i.style(t) : i.style, r = {
...t.defaultStyle,
@@ -38109,42 +38122,42 @@ function xL(e, t, n) {
...e.style
}), [o, a];
}
-function SL(e = !0) {
+function wL(e = !0) {
let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(!1), i = (0, F.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return FS(() => {
+ return zS(() => {
r.current || n(!1);
}, []), [i, t];
}
-function CL(e) {
+function TL(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function Bpe(e, t, n) {
- let { render: r, ...i } = t, a = (0, F.useRef)(null), o = (0, F.useMemo)(() => LC(n, a), [n, a]);
- FS(() => {}, [e, r]);
+function Upe(e, t, n) {
+ let { render: r, ...i } = t, a = (0, F.useRef)(null), o = (0, F.useMemo)(() => VC(n, a), [n, a]);
+ zS(() => {}, [e, r]);
let s = {
...i,
ref: o
};
return r ? r(s, void 0) : /*#__PURE__*/ F.createElement(e, s);
}
-var wL = {}, TL = new Proxy({}, { get(e, t) {
+var EL = {}, DL = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = wL[t];
- return n || (n = /*#__PURE__*/ (0, F.forwardRef)(Bpe.bind(null, t)), wL[t] = n), n;
-} }), EL = /*#__PURE__*/ (0, F.createContext)(null), DL = /*#__PURE__*/ (0, F.createContext)(null), OL = /*#__PURE__*/ (0, F.createContext)(null), kL = {
+ let n = EL[t];
+ return n || (n = /*#__PURE__*/ (0, F.forwardRef)(Upe.bind(null, t)), EL[t] = n), n;
+} }), OL = /*#__PURE__*/ (0, F.createContext)(null), kL = /*#__PURE__*/ (0, F.createContext)(null), AL = /*#__PURE__*/ (0, F.createContext)(null), jL = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return AL(e, null, t);
+ return ML(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return AL(e, t, n);
+ return ML(e, t, n);
}
};
-function AL(e, t, n) {
- return _S({
+function ML(e, t, n) {
+ return xS({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
children(t) {
@@ -38154,11 +38167,11 @@ function AL(e, t, n) {
type: "item",
key: t.key,
dropPosition: "before"
- }), r, Vpe(e, t, n));
+ }), r, Wpe(e, t, n));
}
});
}
-function Vpe(e, t, n) {
+function Wpe(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);
@@ -38177,24 +38190,24 @@ function Vpe(e, t, n) {
}
return s;
}
-var jL = /*#__PURE__*/ (0, F.createContext)(kL);
-function ML(e) {
+var NL = /*#__PURE__*/ (0, F.createContext)(jL);
+function PL(e) {
return (0, F.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
// node_modules/react-aria-components/dist/private/Label.mjs
-var NL = /*#__PURE__*/ (0, F.createContext)({}), PL = /*#__PURE__*/ ZC(function(e, t) {
- [e, t] = xL(e, t, NL);
- let { elementType: n = "label", ...r } = e, i = TL[n];
+var FL = /*#__PURE__*/ (0, F.createContext)({}), IL = /*#__PURE__*/ tw(function(e, t) {
+ [e, t] = CL(e, t, FL);
+ let { elementType: n = "label", ...r } = e, i = DL[n];
return /*#__PURE__*/ F.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), Hpe = /*#__PURE__*/ (0, F.createContext)(null), FL = /*#__PURE__*/ (0, F.createContext)({}), IL = /*#__PURE__*/ ZC(function(e, t) {
- [e, t] = xL(e, t, FL);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Goe(e, t);
- i = Wpe(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = TD(e), { hoverProps: l, isHovered: u } = kD({
+}), Gpe = /*#__PURE__*/ (0, F.createContext)(null), LL = /*#__PURE__*/ (0, F.createContext)({}), RL = /*#__PURE__*/ tw(function(e, t) {
+ [e, t] = CL(e, t, LL);
+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Koe(e, t);
+ i = qpe(i, r);
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = kD(e), { hoverProps: l, isHovered: u } = ND({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -38204,24 +38217,24 @@ var NL = /*#__PURE__*/ (0, F.createContext)({}), PL = /*#__PURE__*/ ZC(function(
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = yL({
+ }, f = xL({
...e,
values: d,
defaultClassName: "react-aria-Button"
- }), p = FC(i.id), m = FC(), h = i["aria-labelledby"];
+ }), p = zC(i.id), m = zC(), h = i["aria-labelledby"];
r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));
let g = (0, F.useRef)(r);
(0, F.useEffect)(() => {
let e = { "aria-labelledby": h || p };
- (!g.current && s && r || g.current && s && !r) && ET(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && AT(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let _ = zw(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ F.createElement(TL.button, {
+ let _ = Uw(e, { global: !0 });
+ return delete _.onClick, /*#__PURE__*/ F.createElement(DL.button, {
...K(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
@@ -38235,61 +38248,61 @@ var NL = /*#__PURE__*/ (0, F.createContext)({}), PL = /*#__PURE__*/ ZC(function(
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ F.createElement(Hpe.Provider, { value: { id: m } }, f.children));
-}), Upe = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function Wpe(e, t) {
+ }, /*#__PURE__*/ F.createElement(Gpe.Provider, { value: { id: m } }, f.children));
+}), Kpe = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function qpe(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !Upe.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !Kpe.test(t) && (e[t] = void 0);
e.href = void 0, e.target = void 0;
}
return e;
}
// node_modules/react-aria-components/dist/private/Heading.mjs
-var LL = /*#__PURE__*/ (0, F.createContext)({}), RL = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = xL(e, t, LL);
- let { children: n, level: r = 3, className: i, ...a } = e, o = TL[`h${r}`];
+var zL = /*#__PURE__*/ (0, F.createContext)({}), BL = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = CL(e, t, zL);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = DL[`h${r}`];
return /*#__PURE__*/ F.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), zL = /*#__PURE__*/ (0, F.createContext)({}), Gpe = /*#__PURE__*/ ZC(function(e, t) {
- [e, t] = xL(e, t, zL);
- let { elementType: n = "span", ...r } = e, i = TL[n];
+}), VL = /*#__PURE__*/ (0, F.createContext)({}), Jpe = /*#__PURE__*/ tw(function(e, t) {
+ [e, t] = CL(e, t, VL);
+ let { elementType: n = "span", ...r } = e, i = DL[n];
return /*#__PURE__*/ F.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), BL = /*#__PURE__*/ (0, F.createContext)(null), VL = /*#__PURE__*/ (0, F.createContext)(null), HL = /*#__PURE__*/ (0, F.createContext)(null), UL = /*#__PURE__*/ (0, F.createContext)(null), Kpe = /*#__PURE__*/ (0, F.createContext)(null), WL = /*#__PURE__*/ (0, F.createContext)(null);
-function qpe(e, t) {
- let { validationBehavior: n } = bL(VL) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useContext)(Kpe), a = KC((0, F.useMemo)(() => LC(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...CL(e),
+}), HL = /*#__PURE__*/ (0, F.createContext)(null), UL = /*#__PURE__*/ (0, F.createContext)(null), WL = /*#__PURE__*/ (0, F.createContext)(null), GL = /*#__PURE__*/ (0, F.createContext)(null), Ype = /*#__PURE__*/ (0, F.createContext)(null), KL = /*#__PURE__*/ (0, F.createContext)(null);
+function Xpe(e, t) {
+ let { validationBehavior: n } = SL(UL) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useContext)(Ype), a = XC((0, F.useMemo)(() => VC(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...TL(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? mse(o, i, a) : qT(o, QT(e), a), a];
+ return [i ? hse(o, i, a) : ZT(o, nE(e), a), a];
}
-var Jpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+var Zpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = xL(r, t, HL);
- let [i, a] = qpe(e, n);
- return /*#__PURE__*/ F.createElement(WL.Provider, { value: {
+ [e, t] = CL(r, t, WL);
+ let [i, a] = Xpe(e, n);
+ return /*#__PURE__*/ F.createElement(KL.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ F.createElement(Ype, {
+ } }, /*#__PURE__*/ F.createElement(Qpe, {
...e,
ref: t
}));
-}), Ype = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, F.useContext)(WL), { isFocused: p, isFocusVisible: m, focusProps: h } = TD(), g = a || o, { hoverProps: _, isHovered: v } = kD({
+}), Qpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, F.useContext)(KL), { isFocused: p, isFocusVisible: m, focusProps: h } = kD(), g = a || o, { hoverProps: _, isHovered: v } = ND({
...e,
isDisabled: g
- }), y = yL({
+ }), y = xL({
...e,
defaultClassName: u,
values: {
@@ -38304,8 +38317,8 @@ var Jpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), b = zw(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(TL.label, {
+ }), b = Uw(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(DL.label, {
...K(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -38319,20 +38332,20 @@ var Jpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": f || void 0
- }, /*#__PURE__*/ F.createElement(sE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(dE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
...K(r, h),
ref: l
})), y.children);
-}), GL = /*#__PURE__*/ (0, F.createContext)({}), KL = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = xL(e, t, GL);
+}), qL = /*#__PURE__*/ (0, F.createContext)({}), JL = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = CL(e, t, qL);
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 } = kD({
+ let { hoverProps: l, isHovered: u } = ND({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = TD({ within: !0 }), m = yL({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = kD({ within: !0 }), m = xL({
...e,
values: {
isHovered: u,
@@ -38343,7 +38356,7 @@ var Jpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ F.createElement(TL.div, {
+ return /*#__PURE__*/ F.createElement(DL.div, {
...K(c, p, l),
...m,
ref: t,
@@ -38356,18 +38369,18 @@ var Jpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), qL = /*#__PURE__*/ (0, F.createContext)({}), Xpe = (e) => {
+}), YL = /*#__PURE__*/ (0, F.createContext)({}), $pe = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, Zpe = /*#__PURE__*/ ZC(function(e, t) {
- [e, t] = xL(e, t, qL);
- let { hoverProps: n, isHovered: r } = kD({
+}, eme = /*#__PURE__*/ tw(function(e, t) {
+ [e, t] = CL(e, t, YL);
+ let { hoverProps: n, isHovered: r } = ND({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = TD({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = kD({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = yL({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = xL({
...e,
values: {
isHovered: r,
@@ -38378,8 +38391,8 @@ var Jpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ F.createElement(TL.input, {
- ...K(Xpe(e), o, n),
+ return /*#__PURE__*/ F.createElement(DL.input, {
+ ...K($pe(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -38388,24 +38401,24 @@ var Jpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), Qpe = 0, $pe = 100, eme = 1;
-function tme(e) {
- let { isDisabled: t = !1, minValue: n = Qpe, maxValue: r = $pe, numberFormatter: i, step: a = eme, orientation: o = "horizontal" } = e, s = (0, F.useMemo)(() => {
+}), tme = 0, nme = 100, rme = 1;
+function ime(e) {
+ let { isDisabled: t = !1, minValue: n = tme, maxValue: r = nme, numberFormatter: i, step: a = rme, orientation: o = "horizontal" } = e, s = (0, F.useMemo)(() => {
let e = (r - n) / 10;
- return e = tE(e, 0, e + a, a), Math.max(e, a);
+ return e = aE(e, 0, e + a, a), Math.max(e, a);
}, [
a,
r,
n
- ]), c = (0, F.useCallback)((e) => e?.map((t, i) => tE(t, i === 0 ? n : e[i - 1], i === e.length - 1 ? r : e[i + 1], a)), [
+ ]), c = (0, F.useCallback)((e) => e?.map((t, i) => aE(t, i === 0 ? n : e[i - 1], i === e.length - 1 ? r : e[i + 1], a)), [
n,
r,
a
- ]), l = (0, F.useMemo)(() => c(YL(e.value)), [e.value, c]), u = (0, F.useMemo)(() => c(YL(e.defaultValue) ?? [n]), [
+ ]), l = (0, F.useMemo)(() => c(ZL(e.value)), [e.value, c]), u = (0, F.useMemo)(() => c(ZL(e.defaultValue) ?? [n]), [
e.defaultValue,
n,
c
- ]), d = XL(e.value, e.defaultValue, e.onChange), f = XL(e.value, e.defaultValue, e.onChangeEnd), [p, m] = ZT(l, u, d), [h] = (0, F.useState)(p), [g, _] = (0, F.useState)(Array(p.length).fill(!1)), v = (0, F.useRef)(Array(p.length).fill(!0)), [y, b] = (0, F.useState)(void 0), x = (0, F.useRef)(p), S = (0, F.useRef)(g), C = (e) => {
+ ]), d = QL(e.value, e.defaultValue, e.onChange), f = QL(e.value, e.defaultValue, e.onChangeEnd), [p, m] = tE(l, u, d), [h] = (0, F.useState)(p), [g, _] = (0, F.useState)(Array(p.length).fill(!1)), v = (0, F.useRef)(Array(p.length).fill(!0)), [y, b] = (0, F.useState)(void 0), x = (0, F.useRef)(p), S = (0, F.useRef)(g), C = (e) => {
x.current = e, m(e);
}, w = (e) => {
S.current = e, _(e);
@@ -38428,15 +38441,15 @@ function tme(e) {
function A(e, n) {
if (t || !O(e)) return;
let r = E(e), i = D(e);
- n = tE(n, r, i, a);
- let o = JL(x.current, e, n);
+ n = aE(n, r, i, a);
+ let o = XL(x.current, e, n);
C(o);
}
function j(e, n) {
if (t || !O(e)) return;
n && (x.current = p);
let r = S.current[e];
- S.current = JL(S.current, e, n), w(S.current), f && r && !S.current.some(Boolean) && f(x.current);
+ S.current = XL(S.current, e, n), w(S.current), f && r && !S.current.some(Boolean) && f(x.current);
}
let M = (0, F.useRef)(null);
function ee(e = p) {
@@ -38457,15 +38470,15 @@ function tme(e) {
return Math.round((e - n) / a) * a + n;
}
function P(e) {
- return $T(te(e * (r - n) + n), n, r);
+ return rE(te(e * (r - n) + n), n, r);
}
function ne(e, t = 1) {
let i = Math.max(t, a);
- A(e, tE(p[e] + i, n, r, a));
+ A(e, aE(p[e] + i, n, r, a));
}
function re(e, t = 1) {
let i = Math.max(t, a);
- A(e, tE(p[e] - i, n, r, a));
+ A(e, aE(p[e] - i, n, r, a));
}
return {
values: p,
@@ -38494,31 +38507,31 @@ function tme(e) {
isDisabled: t
};
}
-function JL(e, t, n) {
+function XL(e, t, n) {
return e[t] === n ? e : [
...e.slice(0, t),
n,
...e.slice(t + 1)
];
}
-function YL(e) {
+function ZL(e) {
if (e != null) return Array.isArray(e) ? e : [e];
}
-function XL(e, t, n) {
+function QL(e, t, n) {
return (r) => {
typeof e == "number" || typeof t == "number" ? n?.(r[0]) : n?.(r);
};
}
// node_modules/react-aria-components/dist/private/Slider.mjs
-var nme = /*#__PURE__*/ (0, F.createContext)(null), ZL = /*#__PURE__*/ (0, F.createContext)(null), QL = /*#__PURE__*/ (0, F.createContext)(null), rme = /*#__PURE__*/ (0, F.createContext)(null), ime = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = xL(e, t, nme);
- let n = (0, F.useRef)(null), r = yse(e.formatOptions), i = tme({
+var ame = /*#__PURE__*/ (0, F.createContext)(null), $L = /*#__PURE__*/ (0, F.createContext)(null), eR = /*#__PURE__*/ (0, F.createContext)(null), ome = /*#__PURE__*/ (0, F.createContext)(null), sme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = CL(e, t, ame);
+ let n = (0, F.useRef)(null), r = bse(e.formatOptions), i = ime({
...e,
numberFormatter: r
- }), [a, o] = SL(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = bse({
+ }), [a, o] = wL(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = xse({
...e,
label: o
- }, i, n), d = yL({
+ }, i, n), d = xL({
...e,
values: {
orientation: i.orientation,
@@ -38526,32 +38539,32 @@ var nme = /*#__PURE__*/ (0, F.createContext)(null), ZL = /*#__PURE__*/ (0, F.cre
state: i
},
defaultClassName: "react-aria-Slider"
- }), f = zw(e, { global: !0 });
- return delete f.id, /*#__PURE__*/ F.createElement(vL, { values: [
- [ZL, i],
- [QL, {
+ }), f = Uw(e, { global: !0 });
+ return delete f.id, /*#__PURE__*/ F.createElement(bL, { values: [
+ [$L, i],
+ [eR, {
...c,
ref: n
}],
- [rme, u],
- [NL, {
+ [ome, u],
+ [FL, {
...l,
ref: a
}]
- ] }, /*#__PURE__*/ F.createElement(TL.div, {
+ ] }, /*#__PURE__*/ F.createElement(DL.div, {
...K(f, d, s),
ref: t,
slot: e.slot || void 0,
"data-orientation": i.orientation,
"data-disabled": i.isDisabled || void 0
}));
-}), ame = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = xL(e, t, QL);
- let n = (0, F.useContext)(ZL), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = kD({
+}), cme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = CL(e, t, eR);
+ let n = (0, F.useContext)($L), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = ND({
onHoverStart: r,
onHoverEnd: i,
onHoverChange: a
- }), l = yL({
+ }), l = xL({
...e,
defaultClassName: "react-aria-SliderTrack",
values: {
@@ -38561,7 +38574,7 @@ var nme = /*#__PURE__*/ (0, F.createContext)(null), ZL = /*#__PURE__*/ (0, F.cre
state: n
}
});
- return /*#__PURE__*/ F.createElement(TL.div, {
+ return /*#__PURE__*/ F.createElement(DL.div, {
...K(o, s),
...l,
ref: t,
@@ -38569,14 +38582,14 @@ var nme = /*#__PURE__*/ (0, F.createContext)(null), ZL = /*#__PURE__*/ (0, F.cre
"data-orientation": n.orientation || void 0,
"data-disabled": n.isDisabled || void 0
});
-}), ome = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { inputRef: n = null } = e, r = (0, F.useContext)(ZL), { ref: i } = bL(QL), { index: a = 0 } = e, o = (0, F.useRef)(null), s = n || o, [c, l] = SL(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = xse({
+}), lme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { inputRef: n = null } = e, r = (0, F.useContext)($L), { ref: i } = SL(eR), { index: a = 0 } = e, o = (0, F.useRef)(null), s = n || o, [c, l] = wL(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = Sse({
...e,
index: a,
trackRef: i,
inputRef: s,
label: l
- }, r), { focusProps: g, isFocusVisible: _ } = TD(), { hoverProps: v, isHovered: y } = kD(e), b = yL({
+ }, r), { focusProps: g, isFocusVisible: _ } = kD(), { hoverProps: v, isHovered: y } = ND(e), b = xL({
...e,
defaultClassName: "react-aria-SliderThumb",
values: {
@@ -38587,8 +38600,8 @@ var nme = /*#__PURE__*/ (0, F.createContext)(null), ZL = /*#__PURE__*/ (0, F.cre
isFocusVisible: _,
isDisabled: h
}
- }), x = zw(e, { global: !0 });
- return delete x.id, /*#__PURE__*/ F.createElement(TL.div, {
+ }), x = Uw(e, { global: !0 });
+ return delete x.id, /*#__PURE__*/ F.createElement(DL.div, {
...K(x, u, v),
...b,
ref: t,
@@ -38601,330 +38614,330 @@ var nme = /*#__PURE__*/ (0, F.createContext)(null), ZL = /*#__PURE__*/ (0, F.cre
"data-focused": m || void 0,
"data-focus-visible": _ || void 0,
"data-disabled": h || void 0
- }, /*#__PURE__*/ F.createElement(sE, null, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(dE, null, /*#__PURE__*/ F.createElement("input", {
ref: s,
...K(d, g)
- })), /*#__PURE__*/ F.createElement(vL, { values: [[NL, {
+ })), /*#__PURE__*/ F.createElement(bL, { values: [[FL, {
...f,
ref: c
}]] }, b.children));
-}), $L = {};
-$L = {
+}), tR = {};
+tR = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
tableResizer: "أداة تغيير الحجم"
};
// node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var eR = {};
-eR = {
+var nR = {};
+nR = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
tableResizer: "Преоразмерител"
};
// node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var tR = {};
-tR = {
+var rR = {};
+rR = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
tableResizer: "Změna velikosti"
};
// node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var nR = {};
-nR = {
+var iR = {};
+iR = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
tableResizer: "Størrelsesændring"
};
// node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var rR = {};
-rR = {
+var aR = {};
+aR = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
tableResizer: "Größenanpassung"
};
// node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var iR = {};
-iR = {
+var oR = {};
+oR = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
tableResizer: "Αλλαγή μεγέθους"
};
// node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var aR = {};
-aR = {
+var sR = {};
+sR = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
colorSwatchPicker: "Color swatches"
};
// node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var oR = {};
-oR = {
+var cR = {};
+cR = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
tableResizer: "Cambiador de tamaño"
};
// node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var sR = {};
-sR = {
+var lR = {};
+lR = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
tableResizer: "Suuruse muutja"
};
// node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var cR = {};
-cR = {
+var uR = {};
+uR = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
tableResizer: "Koon muuttaja"
};
// node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var lR = {};
-lR = {
+var dR = {};
+dR = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
tableResizer: "Redimensionneur"
};
// node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var uR = {};
-uR = {
+var fR = {};
+fR = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
tableResizer: "שינוי גודל"
};
// node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var dR = {};
-dR = {
+var pR = {};
+pR = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
tableResizer: "Promjena veličine"
};
// node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var fR = {};
-fR = {
+var mR = {};
+mR = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
tableResizer: "Átméretező"
};
// node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var pR = {};
-pR = {
+var hR = {};
+hR = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
tableResizer: "Ridimensionamento"
};
// node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var mR = {};
-mR = {
+var gR = {};
+gR = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
tableResizer: "サイズ変更ツール"
};
// node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var hR = {};
-hR = {
+var _R = {};
+_R = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
tableResizer: "크기 조정기"
};
// node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var gR = {};
-gR = {
+var vR = {};
+vR = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
tableResizer: "Dydžio keitiklis"
};
// node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var _R = {};
-_R = {
+var yR = {};
+yR = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
tableResizer: "Izmēra mainītājs"
};
// node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var vR = {};
-vR = {
+var bR = {};
+bR = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
tableResizer: "Størrelsesendrer"
};
// node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var yR = {};
-yR = {
+var xR = {};
+xR = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
tableResizer: "Resizer"
};
// node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var bR = {};
-bR = {
+var SR = {};
+SR = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
tableResizer: "Zmiana rozmiaru"
};
// node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var xR = {};
-xR = {
+var CR = {};
+CR = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
tableResizer: "Redimensionador"
};
// node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var SR = {};
-SR = {
+var wR = {};
+wR = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
tableResizer: "Redimensionador"
};
// node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var CR = {};
-CR = {
+var TR = {};
+TR = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
tableResizer: "Instrument de redimensionare"
};
// node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var wR = {};
-wR = {
+var ER = {};
+ER = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
tableResizer: "Средство изменения размера"
};
// node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var TR = {};
-TR = {
+var DR = {};
+DR = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
tableResizer: "Nástroj na zmenu veľkosti"
};
// node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var ER = {};
-ER = {
+var OR = {};
+OR = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
tableResizer: "Spreminjanje velikosti"
};
// node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var DR = {};
-DR = {
+var kR = {};
+kR = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
tableResizer: "Promena veličine"
};
// node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var OR = {};
-OR = {
+var AR = {};
+AR = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
tableResizer: "Storleksändrare"
};
// node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var kR = {};
-kR = {
+var jR = {};
+jR = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
tableResizer: "Yeniden boyutlandırıcı"
};
// node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var AR = {};
-AR = {
+var MR = {};
+MR = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
tableResizer: "Засіб змінення розміру"
};
// node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var jR = {};
-jR = {
+var NR = {};
+NR = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
tableResizer: "尺寸调整器"
};
// node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var MR = {};
-MR = {
+var PR = {};
+PR = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
tableResizer: "大小調整器"
};
// node_modules/react-aria-components/dist/private/intlStrings.mjs
-var NR = {};
-NR = {
- "ar-AE": $L,
- "bg-BG": eR,
- "cs-CZ": tR,
- "da-DK": nR,
- "de-DE": rR,
- "el-GR": iR,
- "en-US": aR,
- "es-ES": oR,
- "et-EE": sR,
- "fi-FI": cR,
- "fr-FR": lR,
- "he-IL": uR,
- "hr-HR": dR,
- "hu-HU": fR,
- "it-IT": pR,
- "ja-JP": mR,
- "ko-KR": hR,
- "lt-LT": gR,
- "lv-LV": _R,
- "nb-NO": vR,
- "nl-NL": yR,
- "pl-PL": bR,
- "pt-BR": xR,
- "pt-PT": SR,
- "ro-RO": CR,
- "ru-RU": wR,
- "sk-SK": TR,
- "sl-SI": ER,
- "sr-SP": DR,
- "sv-SE": OR,
- "tr-TR": kR,
- "uk-UA": AR,
- "zh-CN": jR,
- "zh-TW": MR
+var FR = {};
+FR = {
+ "ar-AE": tR,
+ "bg-BG": nR,
+ "cs-CZ": rR,
+ "da-DK": iR,
+ "de-DE": aR,
+ "el-GR": oR,
+ "en-US": sR,
+ "es-ES": cR,
+ "et-EE": lR,
+ "fi-FI": uR,
+ "fr-FR": dR,
+ "he-IL": fR,
+ "hr-HR": pR,
+ "hu-HU": mR,
+ "it-IT": hR,
+ "ja-JP": gR,
+ "ko-KR": _R,
+ "lt-LT": vR,
+ "lv-LV": yR,
+ "nb-NO": bR,
+ "nl-NL": xR,
+ "pl-PL": SR,
+ "pt-BR": CR,
+ "pt-PT": wR,
+ "ro-RO": TR,
+ "ru-RU": ER,
+ "sk-SK": DR,
+ "sl-SI": OR,
+ "sr-SP": kR,
+ "sv-SE": AR,
+ "tr-TR": jR,
+ "uk-UA": MR,
+ "zh-CN": NR,
+ "zh-TW": PR
};
// node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var PR = /*#__PURE__*/ (0, F.createContext)({}), FR = /*#__PURE__*/ (0, F.createContext)(null), sme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { render: n } = (0, F.useContext)(FR);
+var IR = /*#__PURE__*/ (0, F.createContext)({}), LR = /*#__PURE__*/ (0, F.createContext)(null), ume = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { render: n } = (0, F.useContext)(LR);
return /*#__PURE__*/ F.createElement(F.Fragment, null, n(e, t));
});
-function IR(e, t) {
+function RR(e, t) {
let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, F.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ F.createElement(sme, { target: e });
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ F.createElement(ume, { target: e });
}, [
t?.target,
r,
@@ -38932,7 +38945,7 @@ function IR(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function LR(e, t, n) {
+function zR(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;
@@ -38953,13 +38966,13 @@ function LR(e, t, n) {
return (0, F.useMemo)(() => new Set([r, i].filter((e) => e != null)), [r, i]);
}
// node_modules/react-aria-components/dist/private/Header.mjs
-var RR = /*#__PURE__*/ (0, F.createContext)({}), cme = /*#__PURE__*/ (0, F.createContext)(null);
-function zR(e) {
+var BR = /*#__PURE__*/ (0, F.createContext)({}), dme = /*#__PURE__*/ (0, F.createContext)(null);
+function VR(e) {
let t = (0, F.useRef)({});
- return /*#__PURE__*/ F.createElement(cme.Provider, { value: t }, e.children);
+ return /*#__PURE__*/ F.createElement(dme.Provider, { value: t }, e.children);
}
// node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var BR = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), VR = /*#__PURE__*/ (0, F.createContext)({}), lme = /*#__PURE__*/ aw(class extends lS {
+var HR = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), UR = /*#__PURE__*/ (0, F.createContext)({}), fme = /*#__PURE__*/ lw(class extends pS {
static {
this.type = "separator";
}
@@ -38972,14 +38985,14 @@ var BR = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), VR = /*#__PURE_
return null;
}
}, function(e, t) {
- [e, t] = xL(e, t, VR);
+ [e, t] = CL(e, t, UR);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = TL[c], { separatorProps: u } = kce({
+ let l = DL[c], { separatorProps: u } = Mce({
...s,
elementType: n,
orientation: r
- }), d = zw(e, { global: !0 });
+ }), d = Uw(e, { global: !0 });
return /*#__PURE__*/ F.createElement(l, {
render: e.render,
...K(d, u),
@@ -38990,12 +39003,12 @@ var BR = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), VR = /*#__PURE_
});
});
// node_modules/react-aria/dist/private/utils/inertValue.mjs
-function HR(e) {
+function WR(e) {
let t = F.version.split(".");
return parseInt(t[0], 10) >= 19 ? e : e ? "true" : void 0;
}
// node_modules/react-stately/dist/private/list/ListCollection.mjs
-var UR = class {
+var GR = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -39039,19 +39052,19 @@ var UR = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, WR = class e extends Set {
+}, KR = 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);
}
};
// node_modules/react-stately/dist/private/selection/useMultipleSelectionState.mjs
-function ume(e, t) {
+function pme(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function GR(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, F.useRef)(!1), [, s] = (0, F.useState)(!1), c = (0, F.useRef)(null), l = (0, F.useRef)(null), [, u] = (0, F.useState)(null), [d, f] = ZT((0, F.useMemo)(() => KR(e.selectedKeys), [e.selectedKeys]), (0, F.useMemo)(() => KR(e.defaultSelectedKeys, new WR()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, F.useState)(i);
+function qR(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, F.useRef)(!1), [, s] = (0, F.useState)(!1), c = (0, F.useRef)(null), l = (0, F.useRef)(null), [, u] = (0, F.useState)(null), [d, f] = tE((0, F.useMemo)(() => JR(e.selectedKeys), [e.selectedKeys]), (0, F.useMemo)(() => JR(e.defaultSelectedKeys, new KR()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, F.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, F.useRef)(i);
return (0, F.useEffect)(() => {
@@ -39078,17 +39091,17 @@ function GR(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !ume(e, d)) && f(e);
+ (r || !pme(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function KR(e, t) {
- return e ? e === "all" ? "all" : new WR(e) : t;
+function JR(e, t) {
+ return e ? e === "all" ? "all" : new KR(e) : t;
}
// node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var qR = class e {
+var YR = 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;
}
@@ -39144,7 +39157,7 @@ var qR = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && pD(this.collection, n, e) < 0) && (e = n);
+ (!e || n && _D(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -39152,7 +39165,7 @@ var qR = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && pD(this.collection, n, e) > 0) && (e = n);
+ (!e || n && _D(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -39171,10 +39184,10 @@ var qR = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new WR([t], t, t);
+ if (this.state.selectedKeys === "all") n = new KR([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new WR(e, r, t);
+ n = new KR(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);
}
@@ -39182,7 +39195,7 @@ var qR = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? pD(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? _D(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);
@@ -39208,19 +39221,19 @@ var qR = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new WR(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new KR(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 WR([t], t, t) : new WR();
+ let n = this.canSelectItem(t) ? new KR([t], t, t) : new KR();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new WR();
+ let t = new KR();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -39232,7 +39245,7 @@ var qR = 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(uD(lD(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(mD(pD(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -39243,7 +39256,7 @@ var qR = 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 WR());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new KR());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -39284,9 +39297,9 @@ var qR = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, dme = class {
+}, mme = class {
build(e, t) {
- return this.context = t, JR(() => this.iterateCollection(e));
+ return this.context = t, XR(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
@@ -39368,10 +39381,10 @@ var qR = class e {
...a,
key: l,
index: s,
- wrapper: fme(e.wrapper, a.wrapper)
+ wrapper: hme(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 <${YR(t.type)}> in <${YR(r?.type ?? "unknown parent type")}>. Only <${YR(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 <${ZR(t.type)}> in <${ZR(r?.type ?? "unknown parent type")}>. Only <${ZR(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -39393,7 +39406,7 @@ var qR = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: JR(function* () {
+ childNodes: XR(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -39412,7 +39425,7 @@ var qR = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function JR(e) {
+function XR(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -39420,17 +39433,17 @@ function JR(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function fme(e, t) {
+function hme(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function YR(e) {
+function ZR(e) {
return e[0].toUpperCase() + e.slice(1);
}
// node_modules/react-stately/dist/private/collections/useCollection.mjs
-function XR(e, t, n) {
- let r = (0, F.useMemo)(() => new dme(), []), { children: i, items: a, collection: o } = e;
+function QR(e, t, n) {
+ let r = (0, F.useMemo)(() => new mme(), []), { children: i, items: a, collection: o } = e;
return (0, F.useMemo)(() => o || t(r.build({
children: i,
items: a
@@ -39444,27 +39457,27 @@ function XR(e, t, n) {
]);
}
// node_modules/react-stately/dist/private/list/useListState.mjs
-function ZR(e) {
- let { filter: t, layoutDelegate: n } = e, r = GR(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = XR(e, (0, F.useCallback)((e) => t ? new UR(t(e)) : new UR(e), [t]), (0, F.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, F.useMemo)(() => new qR(a, r, { layoutDelegate: n }), [
+function $R(e) {
+ let { filter: t, layoutDelegate: n } = e, r = qR(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = QR(e, (0, F.useCallback)((e) => t ? new GR(t(e)) : new GR(e), [t]), (0, F.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, F.useMemo)(() => new YR(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return QR(a, o), {
+ return ez(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function pme(e, t) {
+function gme(e, t) {
let n = (0, F.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return QR(n, r), {
+ return ez(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function QR(e, t) {
+function ez(e, t) {
let n = (0, F.useRef)(null);
(0, F.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@ -39491,15 +39504,15 @@ function QR(e, t) {
}, [e, t]);
}
// node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function $R(e, t) {
- let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, F.useRef)(null), s = Cw((e) => {
+function tz(e, t) {
+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, F.useRef)(null), s = Dw((e) => {
for (let t of e) t.isIntersecting && r && r();
});
- FS(() => {
+ zS(() => {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
- root: kT(t?.current),
+ root: NT(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -39514,42 +39527,42 @@ function $R(e, t) {
]);
}
// node_modules/react-aria-components/dist/private/ListBox.mjs
-var ez = /*#__PURE__*/ (0, F.createContext)(null), tz = /*#__PURE__*/ (0, F.createContext)(null), mme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = xL(e, t, ez);
- let n = (0, F.useContext)(tz);
- return n ? /*#__PURE__*/ F.createElement(nz, {
+var nz = /*#__PURE__*/ (0, F.createContext)(null), rz = /*#__PURE__*/ (0, F.createContext)(null), _me = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = CL(e, t, nz);
+ let n = (0, F.useContext)(rz);
+ return n ? /*#__PURE__*/ F.createElement(iz, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ F.createElement(nw, { content: /*#__PURE__*/ F.createElement(lw, e) }, (n) => /*#__PURE__*/ F.createElement(hme, {
+ }) : /*#__PURE__*/ F.createElement(ow, { content: /*#__PURE__*/ F.createElement(pw, e) }, (n) => /*#__PURE__*/ F.createElement(vme, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function hme({ props: e, listBoxRef: t, collection: n }) {
+function vme({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, F.useContext)(jL), i = ZR({
+ let { layoutDelegate: r } = (0, F.useContext)(NL), i = $R({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ F.createElement(nz, {
+ return /*#__PURE__*/ F.createElement(iz, {
state: i,
props: e,
listBoxRef: t
});
}
-function nz({ state: e, props: t, listBoxRef: n }) {
- [t, n] = xL(t, n, EL);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = pme(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = jw(), { disabledBehavior: p, disabledKeys: m } = l, h = vD({
+function iz({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = CL(t, n, OL);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = gme(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Fw(), { disabledBehavior: p, disabledKeys: m } = l, h = SD({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, F.useContext)(jL), b = (0, F.useMemo)(() => t.keyboardDelegate || new bE({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, F.useContext)(NL), b = (0, F.useMemo)(() => t.keyboardDelegate || new wE({
collection: c,
collator: h,
ref: n,
@@ -39570,7 +39583,7 @@ function nz({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: x } = Jse({
+ ]), { listBoxProps: x } = Yse({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: b,
@@ -39602,7 +39615,7 @@ function nz({ state: e, props: t, listBoxRef: n }) {
dropTargetDelegate: e
}, C, n), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: O, isFocused: k, isFocusVisible: A } = TD(), j = s.collection.size === 0, M = {
+ let { focusProps: O, isFocused: k, isFocusVisible: A } = kD(), j = s.collection.size === 0, M = {
isDropTarget: T,
isEmpty: j,
isFocused: k,
@@ -39610,7 +39623,7 @@ function nz({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, ee = yL({
+ }, ee = xL({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
@@ -39620,8 +39633,8 @@ function nz({ state: e, props: t, listBoxRef: n }) {
role: "option",
style: { display: "contents" }
}, t.renderEmptyState(M)));
- let te = zw(t, { global: !0 });
- return /*#__PURE__*/ F.createElement(lT, null, /*#__PURE__*/ F.createElement(TL.div, {
+ let te = Uw(t, { global: !0 });
+ return /*#__PURE__*/ F.createElement(pT, null, /*#__PURE__*/ F.createElement(DL.div, {
...K(te, ee, x, O, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
@@ -39632,60 +39645,60 @@ function nz({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": A || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ F.createElement(vL, { values: [
- [ez, t],
- [tz, s],
- [PR, {
+ }, /*#__PURE__*/ F.createElement(bL, { values: [
+ [nz, t],
+ [rz, s],
+ [IR, {
dragAndDropHooks: r,
dragState: S,
dropState: C
}],
- [VR, { elementType: "div" }],
- [FR, { render: vme }],
- [OL, {
+ [UR, { elementType: "div" }],
+ [LR, { render: xme }],
+ [AL, {
name: "ListBoxSection",
- render: gme
+ render: yme
}]
- ] }, /*#__PURE__*/ F.createElement(zR, null, /*#__PURE__*/ F.createElement(y, {
+ ] }, /*#__PURE__*/ F.createElement(VR, null, /*#__PURE__*/ F.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: LR(l, r, C),
- renderDropIndicator: IR(r, C)
+ persistedKeys: zR(l, r, C),
+ renderDropIndicator: RR(r, C)
}))), N, E));
}
-function gme(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, F.useContext)(tz), { dragAndDropHooks: a, dropState: o } = (0, F.useContext)(PR), { CollectionBranch: s } = (0, F.useContext)(jL), [c, l] = SL(), { headingProps: u, groupProps: d } = Yse({
+function yme(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, F.useContext)(rz), { dragAndDropHooks: a, dropState: o } = (0, F.useContext)(IR), { CollectionBranch: s } = (0, F.useContext)(NL), [c, l] = wL(), { headingProps: u, groupProps: d } = Xse({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = yL({
+ }), f = xL({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
- }), p = zw(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ F.createElement(TL.section, {
+ }), p = Uw(e, { global: !0 });
+ return delete p.id, /*#__PURE__*/ F.createElement(DL.section, {
...K(p, f, d),
ref: t
- }, /*#__PURE__*/ F.createElement(RR.Provider, { value: {
+ }, /*#__PURE__*/ F.createElement(BR.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ F.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: IR(a, o)
+ renderDropIndicator: RR(a, o)
})));
}
-var _me = /*#__PURE__*/ aw(fS, function(e, t, n) {
- let r = KC(t), i = (0, F.useContext)(tz), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(PR), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Xse({
+var bme = /*#__PURE__*/ lw(gS, function(e, t, n) {
+ let r = XC(t), i = (0, F.useContext)(rz), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(IR), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Zse({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = kD({
+ }, i, r), { hoverProps: p, isHovered: m } = ND({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
onHoverEnd: n.props.onHoverEnd
- }), { keyboardProps: h } = GC(e), { focusProps: g } = VC(e), _ = null;
+ }), { keyboardProps: h } = YC(e), { focusProps: g } = GC(e), _ = null;
o && a && (_ = a.useDraggableItem({
key: n.key,
hasAction: f.hasAction
@@ -39696,7 +39709,7 @@ var _me = /*#__PURE__*/ aw(fS, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = yL({
+ let y = o && o.isDragging(n.key), b = xL({
...e,
id: void 0,
children: e.children,
@@ -39714,7 +39727,7 @@ var _me = /*#__PURE__*/ aw(fS, function(e, t, n) {
(0, F.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? TL.a : TL.div, S = zw(e, { global: !0 });
+ let x = e.href ? DL.a : DL.div, S = Uw(e, { global: !0 });
return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ F.createElement(x, {
...K(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
@@ -39728,29 +39741,29 @@ var _me = /*#__PURE__*/ aw(fS, function(e, t, n) {
"data-dragging": y || void 0,
"data-drop-target": v?.isDropTarget || void 0,
"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode
- }, /*#__PURE__*/ F.createElement(vL, { values: [[zL, { slots: {
- [_L]: u,
+ }, /*#__PURE__*/ F.createElement(bL, { values: [[VL, { slots: {
+ [yL]: u,
label: u,
description: d
- } }], [BR, { isSelected: f.isSelected }]] }, b.children));
+ } }], [HR, { isSelected: f.isSelected }]] }, b.children));
});
-function vme(e, t) {
- t = KC(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(PR), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ F.createElement(bme, {
+function xme(e, t) {
+ t = XC(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(IR), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ F.createElement(Cme, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function yme(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = yL({
+function Sme(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = xL({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(TL.div, {
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(DL.div, {
...n,
...a,
role: "option",
@@ -39758,10 +39771,10 @@ function yme(e, t) {
"data-drop-target": r || void 0
}));
}
-var bme = /*#__PURE__*/ (0, F.forwardRef)(yme);
-aw(dS, function(e, t, n) {
- let r = (0, F.useContext)(tz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
- $R((0, F.useMemo)(() => ({
+var Cme = /*#__PURE__*/ (0, F.forwardRef)(Sme);
+lw(hS, function(e, t, n) {
+ let r = (0, F.useContext)(rz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
+ tz((0, F.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -39771,7 +39784,7 @@ aw(dS, function(e, t, n) {
o,
r?.collection
]), c);
- let l = yL({
+ let l = xL({
...s,
id: void 0,
children: n.rendered,
@@ -39784,7 +39797,7 @@ aw(dS, function(e, t, n) {
width: 0,
height: 0
},
- inert: HR(!0)
+ inert: WR(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -39793,18 +39806,18 @@ aw(dS, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(TL.div, {
- ...K(zw(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(DL.div, {
+ ...K(Uw(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
}, l.children)));
});
// node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var xme = /*#__PURE__*/ (0, F.createContext)({ placement: "bottom" });
+var wme = /*#__PURE__*/ (0, F.createContext)({ placement: "bottom" });
// node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function rz(e) {
- let [t, n] = ZT(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, F.useState)(null);
+function az(e) {
+ let [t, n] = tE(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, F.useState)(null);
return {
isOpen: t,
setOpen: n,
@@ -39822,15 +39835,15 @@ function rz(e) {
};
}
// node_modules/react-aria/dist/private/utils/animation.mjs
-function iz(e, t = !0, n) {
+function oz(e, t = !0, n) {
let [r, i] = (0, F.useState)(!0), a = r && t;
- return FS(() => {
- if (!t && e.current) return jC(wS(e.current, "opacity", "0"), wS(e.current, "clip", "rect(0 0 0 0)"), wS(e.current, "clip-path", "inset(50%)"), wS(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
- }, [e, t]), FS(() => {
+ return zS(() => {
+ if (!t && e.current) return FC(OS(e.current, "opacity", "0"), OS(e.current, "clip", "rect(0 0 0 0)"), OS(e.current, "clip-path", "inset(50%)"), OS(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
+ }, [e, t]), zS(() => {
if (a && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, a]), oz(e, a, n, (0, F.useCallback)(() => i(!1), [])), a;
+ }, [e, a]), cz(e, a, n, (0, F.useCallback)(() => i(!1), [])), a;
}
-function az(e, t, n) {
+function sz(e, t, n) {
let [r, i] = (0, F.useState)(t ? "open" : "closed");
switch (r) {
case "open":
@@ -39840,13 +39853,13 @@ function az(e, t, n) {
case "exiting": t && i("open");
}
let a = r === "exiting";
- return oz(e, a, n, (0, F.useCallback)(() => {
+ return cz(e, a, n, (0, F.useCallback)(() => {
i((e) => e === "exiting" ? "closed" : e);
}, [])), a;
}
-function oz(e, t, n, r) {
- let i = (0, F.useRef)(null), a = Cw(n);
- FS(() => {
+function cz(e, t, n, r) {
+ let i = (0, F.useRef)(null), a = Dw(n);
+ zS(() => {
if (t && e.current && i.current !== t) {
if (i.current = t, !("getAnimations" in e.current)) {
r();
@@ -39871,9 +39884,9 @@ function oz(e, t, n, r) {
]);
}
// node_modules/react-aria-components/dist/private/Popover.mjs
-var sz = /*#__PURE__*/ (0, F.createContext)(null), cz = /*#__PURE__*/ (0, F.createContext)(null), lz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = xL(e, t, sz);
- let n = (0, F.useContext)(xz), r = rz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = az(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = QC(), { direction: c } = jw();
+var lz = /*#__PURE__*/ (0, F.createContext)(null), uz = /*#__PURE__*/ (0, F.createContext)(null), dz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = CL(e, t, lz);
+ let n = (0, F.useContext)(Cz), r = az(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = sz(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = nw(), { direction: c } = Fw();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -39884,7 +39897,7 @@ var sz = /*#__PURE__*/ (0, F.createContext)(null), cz = /*#__PURE__*/ (0, F.crea
defaultChildren: null
})), /*#__PURE__*/ F.createElement(F.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ F.createElement(Sme, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ F.createElement(Tme, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -39893,13 +39906,13 @@ var sz = /*#__PURE__*/ (0, F.createContext)(null), cz = /*#__PURE__*/ (0, F.crea
dir: c
});
});
-function Sme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useContext)(cz), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, F.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Sce({
+function Tme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useContext)(uz), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, F.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Tce({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), g = i.popoverRef, _ = iz(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = yL({
+ }, e), g = i.popoverRef, _ = oz(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = xL({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -39909,10 +39922,10 @@ function Sme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
isExiting: t
}
}), b = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [x, S] = (0, F.useState)(i.trigger === "PreviewTrigger");
- FS(() => {
+ zS(() => {
g.current && S(b && !g.current.querySelector("[role=dialog]"));
}, [g, b]), (0, F.useEffect)(() => {
- x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || yC() !== "pointer") && g.current && !kS(g.current) && AC(g.current);
+ x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || CC() !== "pointer") && g.current && !NS(g.current) && PC(g.current);
}, [
x,
g,
@@ -39920,12 +39933,12 @@ function Sme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
]);
let C = (0, F.useMemo)(() => {
let e = y.children;
- for (let t of [sz, ...r ?? []]) e = /*#__PURE__*/ F.createElement(t.Provider, { value: null }, e);
+ for (let t of [lz, ...r ?? []]) e = /*#__PURE__*/ F.createElement(t.Provider, { value: null }, e);
return e;
}, [y.children, r]), [w, T] = (0, F.useState)(null), E = (0, F.useCallback)(() => {
i.triggerRef.current && T(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- FS(E, [E]), DO({
+ zS(E, [E]), jO({
ref: y.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: E
});
@@ -39935,9 +39948,9 @@ function Sme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
...y.style,
"--trigger-width": y.style?.["--trigger-width"] || w
};
- FS(() => gk(() => u(!0)), []);
- let O = /*#__PURE__*/ F.createElement(TL.div, {
- ...K(zw(i, { global: !0 }), d),
+ zS(() => bk(() => u(!0)), []);
+ let O = /*#__PURE__*/ F.createElement(DL.div, {
+ ...K(Uw(i, { global: !0 }), d),
...y,
id: x ? i.id : void 0,
role: x ? "dialog" : void 0,
@@ -39952,17 +39965,17 @@ function Sme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"data-placement": m,
"data-entering": v || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ F.createElement(lk, { onDismiss: e.close }), /*#__PURE__*/ F.createElement(xme.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ F.createElement(pk, { onDismiss: e.close }), /*#__PURE__*/ F.createElement(wme.Provider, { value: {
...p,
placement: m,
ref: a
- } }, C), /*#__PURE__*/ F.createElement(lk, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ F.createElement(CD, {
+ } }, C), /*#__PURE__*/ F.createElement(pk, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ F.createElement(DD, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, O) : /*#__PURE__*/ F.createElement(CD, {
+ }, O) : /*#__PURE__*/ F.createElement(DD, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
@@ -39977,13 +39990,13 @@ function Sme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}), /*#__PURE__*/ F.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ F.createElement(cz.Provider, { value: o }, O)));
+ }, /*#__PURE__*/ F.createElement(uz.Provider, { value: o }, O)));
}
// node_modules/react-aria-components/dist/private/Keyboard.mjs
-var Cme = /*#__PURE__*/ (0, F.createContext)({});
+var Eme = /*#__PURE__*/ (0, F.createContext)({});
// node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
-function uz(e) {
- let t = rz(e), [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)([]), o = () => {
+function fz(e) {
+ let t = az(e), [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)([]), o = () => {
a([]), t.close();
}, s = (e, t) => {
a((n) => t > n.length ? n : [...n.slice(0, t), e]);
@@ -40008,7 +40021,7 @@ function uz(e) {
};
}
// node_modules/react-stately/dist/private/tree/TreeCollection.mjs
-var wme = class {
+var Dme = 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) => {
@@ -40051,8 +40064,8 @@ var wme = class {
}
};
// node_modules/react-stately/dist/private/tree/useTreeState.mjs
-function dz(e) {
- let { onExpandedChange: t } = e, [n, r] = ZT(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = GR(e), a = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = XR(e, (0, F.useCallback)((e) => new wme(e, { expandedKeys: n }), [n]), null);
+function pz(e) {
+ let { onExpandedChange: t } = e, [n, r] = tE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = qR(e), a = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = QR(e, (0, F.useCallback)((e) => new Dme(e, { expandedKeys: n }), [n]), null);
return (0, F.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -40060,31 +40073,31 @@ function dz(e) {
expandedKeys: n,
disabledKeys: a,
toggleKey: (e) => {
- r(Tme(n, e));
+ r(Ome(n, e));
},
setExpandedKeys: r,
- selectionManager: new qR(o, i)
+ selectionManager: new YR(o, i)
};
}
-function Tme(e, t) {
+function Ome(e, t) {
let n = new Set(e);
return n.has(t) ? n.delete(t) : n.add(t), n;
}
// node_modules/react-aria-components/dist/private/Menu.mjs
-var fz = /*#__PURE__*/ (0, F.createContext)(null), pz = /*#__PURE__*/ (0, F.createContext)(null), mz = /*#__PURE__*/ (0, F.createContext)(null), hz = /*#__PURE__*/ (0, F.createContext)(null);
-function Eme(e) {
- let t = uz(e), n = (0, F.useRef)(null), { menuTriggerProps: r, menuProps: i } = iD({
+var mz = /*#__PURE__*/ (0, F.createContext)(null), hz = /*#__PURE__*/ (0, F.createContext)(null), gz = /*#__PURE__*/ (0, F.createContext)(null), _z = /*#__PURE__*/ (0, F.createContext)(null);
+function kme(e) {
+ let t = fz(e), n = (0, F.useRef)(null), { menuTriggerProps: r, menuProps: i } = cD({
...e,
type: "menu"
}, t, n), a = (0, F.useRef)(null);
- return QC() ? null : /*#__PURE__*/ F.createElement(vL, { values: [
- [fz, {
+ return nw() ? null : /*#__PURE__*/ F.createElement(bL, { values: [
+ [mz, {
...i,
ref: a
}],
- [xz, t],
- [mz, t],
- [sz, {
+ [Cz, t],
+ [gz, t],
+ [lz, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@ -40092,14 +40105,14 @@ function Eme(e) {
"aria-labelledby": i["aria-labelledby"],
offset: e.trigger === "contextMenu" ? 0 : void 0
}]
- ] }, /*#__PURE__*/ F.createElement(Nse, {
+ ] }, /*#__PURE__*/ F.createElement(Pse, {
...r,
ref: n,
isPressed: t.isOpen
}, e.children));
}
-var Dme = /*#__PURE__*/ (0, F.createContext)(null);
-(class extends lS {
+var Ame = /*#__PURE__*/ (0, F.createContext)(null);
+(class extends pS {
static {
this.type = "submenutrigger";
}
@@ -40112,24 +40125,24 @@ var Dme = /*#__PURE__*/ (0, F.createContext)(null);
return null;
}
});
-var Ome = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return [e, t] = xL(e, t, fz), /*#__PURE__*/ F.createElement(nw, { content: /*#__PURE__*/ F.createElement(lw, e) }, (n) => /*#__PURE__*/ F.createElement(kme, {
+var jme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return [e, t] = CL(e, t, mz), /*#__PURE__*/ F.createElement(ow, { content: /*#__PURE__*/ F.createElement(pw, e) }, (n) => /*#__PURE__*/ F.createElement(Mme, {
props: e,
collection: n,
menuRef: t
}));
});
-function kme({ props: e, collection: t, menuRef: n }) {
- [e, n] = xL(e, n, EL);
- let { filter: r, ...i } = e, a = (0, F.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = dz({
+function Mme({ props: e, collection: t, menuRef: n }) {
+ [e, n] = CL(e, n, OL);
+ let { filter: r, ...i } = e, a = (0, F.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = pz({
...e,
collection: a,
children: void 0
- }), s = (0, F.useContext)(mz), { isVirtualized: c, CollectionRoot: l } = (0, F.useContext)(jL), { menuProps: u } = Zse({
+ }), s = (0, F.useContext)(gz), { isVirtualized: c, CollectionRoot: l } = (0, F.useContext)(NL), { menuProps: u } = Qse({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
- }, o, n), d = yL({
+ }, o, n), d = xL({
...e,
children: void 0,
defaultClassName: "react-aria-Menu",
@@ -40139,36 +40152,36 @@ function kme({ props: e, collection: t, menuRef: n }) {
role: "menuitem",
style: { display: "contents" }
}, e.renderEmptyState()));
- let p = zw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(lT, null, /*#__PURE__*/ F.createElement(TL.div, {
+ let p = Uw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(pT, null, /*#__PURE__*/ F.createElement(DL.div, {
...K(p, d, u),
ref: n,
slot: e.slot || void 0,
"data-empty": o.collection.size === 0 || void 0,
onScroll: e.onScroll
- }, /*#__PURE__*/ F.createElement(vL, { values: [
- [pz, o],
- [VR, { elementType: "div" }],
- [OL, {
+ }, /*#__PURE__*/ F.createElement(bL, { values: [
+ [hz, o],
+ [UR, { elementType: "div" }],
+ [AL, {
name: "MenuSection",
- render: gz
+ render: vz
}],
- [Dme, {
+ [Ame, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [vz, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
- [EL, null],
- [DL, null],
- [hz, o.selectionManager],
- [mz, s ?? uz({})]
- ] }, /*#__PURE__*/ F.createElement(zR, null, /*#__PURE__*/ F.createElement(l, {
+ [bz, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [OL, null],
+ [kL, null],
+ [_z, o.selectionManager],
+ [gz, s ?? fz({})]
+ ] }, /*#__PURE__*/ F.createElement(VR, null, /*#__PURE__*/ F.createElement(l, {
collection: o.collection,
- persistedKeys: ML(o.selectionManager.focusedKey),
+ persistedKeys: PL(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
-var Ame = class extends qR {
+var Nme = class extends YR {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -40188,11 +40201,11 @@ var Ame = class extends qR {
return this.parent.childFocusStrategy;
}
};
-function gz(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, F.useContext)(pz), { CollectionBranch: a } = (0, F.useContext)(jL), [o, s] = SL(), { headingProps: c, groupProps: l } = $se({
+function vz(e, t, n, r = "react-aria-MenuSection") {
+ let i = (0, F.useContext)(hz), { CollectionBranch: a } = (0, F.useContext)(NL), [o, s] = wL(), { headingProps: c, groupProps: l } = ece({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
- }), u = yL({
+ }), u = xL({
...e,
id: void 0,
children: void 0,
@@ -40200,31 +40213,31 @@ function gz(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, F.useContext)(hz), f = GR(e), p = e.selectionMode == null ? d : new Ame(d, f), m = bL(vz)?.shouldCloseOnSelect, h = zw(e, { global: !0 });
- return delete h.id, /*#__PURE__*/ F.createElement(TL.section, {
+ }), d = (0, F.useContext)(_z), f = qR(e), p = e.selectionMode == null ? d : new Nme(d, f), m = SL(bz)?.shouldCloseOnSelect, h = Uw(e, { global: !0 });
+ return delete h.id, /*#__PURE__*/ F.createElement(DL.section, {
...K(h, u, l),
ref: t
- }, /*#__PURE__*/ F.createElement(vL, { values: [
- [RR, {
+ }, /*#__PURE__*/ F.createElement(bL, { values: [
+ [BR, {
...c,
ref: o
}],
- [hz, p],
- [vz, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ [_z, p],
+ [bz, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
] }, /*#__PURE__*/ F.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var _z = /*#__PURE__*/ ow(dae, gz), vz = /*#__PURE__*/ (0, F.createContext)(null), yz = /*#__PURE__*/ aw(fS, function(e, t, n) {
- [e, t] = xL(e, t, vz);
- let r = bL(vz)?.id, i = (0, F.useContext)(pz), a = KC(t), o = (0, F.useContext)(hz), { isVirtualized: s } = (0, F.useContext)(jL), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Qse({
+var yz = /*#__PURE__*/ uw(fae, vz), bz = /*#__PURE__*/ (0, F.createContext)(null), xz = /*#__PURE__*/ lw(gS, function(e, t, n) {
+ [e, t] = CL(e, t, bz);
+ let r = SL(bz)?.id, i = (0, F.useContext)(hz), a = XC(t), o = (0, F.useContext)(_z), { isVirtualized: s } = (0, F.useContext)(NL), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = $se({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = kD({ isDisabled: f.isDisabled }), h = yL({
+ }, i, a), { hoverProps: p, isHovered: m } = ND({ isDisabled: f.isDisabled }), h = xL({
...e,
id: void 0,
children: n.rendered,
@@ -40238,7 +40251,7 @@ var _z = /*#__PURE__*/ ow(dae, gz), vz = /*#__PURE__*/ (0, F.createContext)(null
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? TL.a : TL.div, _ = zw(e, { global: !0 });
+ }), g = e.href ? DL.a : DL.div, _ = Uw(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(g, {
...K(_, h, c, p),
ref: a,
@@ -40251,19 +40264,19 @@ var _z = /*#__PURE__*/ ow(dae, gz), vz = /*#__PURE__*/ (0, F.createContext)(null
"data-selection-mode": o.selectionMode === "none" ? void 0 : o.selectionMode,
"data-has-submenu": !!e["aria-haspopup"] || void 0,
"data-open": e["aria-expanded"] === "true" || void 0
- }, /*#__PURE__*/ F.createElement(vL, { values: [
- [zL, { slots: {
- [_L]: l,
+ }, /*#__PURE__*/ F.createElement(bL, { values: [
+ [VL, { slots: {
+ [yL]: l,
label: l,
description: u
} }],
- [Cme, d],
- [BR, { isSelected: f.isSelected }]
+ [Eme, d],
+ [HR, { isSelected: f.isSelected }]
] }, h.children));
});
-aw(dS, function(e, t, n) {
- let r = (0, F.useContext)(pz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
- $R((0, F.useMemo)(() => ({
+lw(hS, function(e, t, n) {
+ let r = (0, F.useContext)(hz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
+ tz((0, F.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -40273,7 +40286,7 @@ aw(dS, function(e, t, n) {
o,
r?.collection
]), c);
- let l = yL({
+ let l = xL({
...s,
id: void 0,
children: n.rendered,
@@ -40286,7 +40299,7 @@ aw(dS, function(e, t, n) {
width: 0,
height: 0
},
- inert: HR(!0)
+ inert: WR(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -40295,89 +40308,89 @@ aw(dS, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(TL.div, {
- ...K(zw(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(DL.div, {
+ ...K(Uw(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
ref: t
}, l.children)));
});
// node_modules/react-aria-components/dist/private/Dialog.mjs
-var bz = /*#__PURE__*/ (0, F.createContext)(null), xz = /*#__PURE__*/ (0, F.createContext)(null), Sz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+var Sz = /*#__PURE__*/ (0, F.createContext)(null), Cz = /*#__PURE__*/ (0, F.createContext)(null), wz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = xL(e, t, bz);
- let { dialogProps: r, titleProps: i, contentProps: a } = Fse({
+ [e, t] = CL(e, t, Sz);
+ let { dialogProps: r, titleProps: i, contentProps: a } = Ise({
...e,
"aria-labelledby": n
- }, t), o = (0, F.useContext)(xz);
+ }, t), o = (0, F.useContext)(Cz);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = yL({
+ let s = xL({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = zw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(TL.section, {
+ }), c = Uw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(DL.section, {
...K(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ F.createElement(vL, { values: [
- [LL, { slots: {
- [_L]: {},
+ }, /*#__PURE__*/ F.createElement(bL, { values: [
+ [zL, { slots: {
+ [yL]: {},
title: {
...i,
level: 2
}
} }],
- [zL, { slots: {
- [_L]: {},
+ [VL, { slots: {
+ [yL]: {},
description: a
} }],
- [FL, { slots: {
- [_L]: {},
+ [LL, { slots: {
+ [yL]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), Cz = typeof document < "u" && window.visualViewport;
-function jme() {
- let e = rC(), t = (0, F.useRef)(null), [n, r] = (0, F.useState)(() => e ? {
+}), Tz = typeof document < "u" && window.visualViewport;
+function Pme() {
+ let e = sC(), t = (0, F.useRef)(null), [n, r] = (0, F.useState)(() => e ? {
width: 0,
height: 0
- } : wz());
+ } : Ez());
return (0, F.useEffect)(() => {
let e = (e) => {
r((t) => e.width === t.width && e.height === t.height ? t : e);
}, n = () => {
- Cz && Cz.scale > 1 || e(wz());
+ Tz && Tz.scale > 1 || e(Ez());
}, i = (n) => {
- Cz && Cz.scale > 1 || bw(G(n)) && (t.current = gk((t) => {
+ Tz && Tz.scale > 1 || ww(G(n)) && (t.current = bk((t) => {
t || e({
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight
});
}));
};
- return e(wz()), GS() && KS() && window.addEventListener("blur", i, !0), Cz ? Cz.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
- t.current?.(), GS() && KS() && window.removeEventListener("blur", i, !0), Cz ? Cz.removeEventListener("resize", n) : window.removeEventListener("resize", n);
+ return e(Ez()), YS() && XS() && window.addEventListener("blur", i, !0), Tz ? Tz.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
+ t.current?.(), YS() && XS() && window.removeEventListener("blur", i, !0), Tz ? Tz.removeEventListener("resize", n) : window.removeEventListener("resize", n);
};
}, []), n;
}
-function wz() {
+function Ez() {
return {
- width: Cz ? Math.min(Cz.width * Cz.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: Cz ? Cz.height * Cz.scale : document.documentElement.clientHeight
+ width: Tz ? Math.min(Tz.width * Tz.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: Tz ? Tz.height * Tz.scale : document.documentElement.clientHeight
};
}
// node_modules/react-aria-components/dist/private/Modal.mjs
-var Mme = /*#__PURE__*/ (0, F.createContext)(null), Tz = /*#__PURE__*/ (0, F.createContext)(null), Nme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- if ((0, F.useContext)(Tz)) return /*#__PURE__*/ F.createElement(Dz, {
+var Fme = /*#__PURE__*/ (0, F.createContext)(null), Dz = /*#__PURE__*/ (0, F.createContext)(null), Ime = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ if ((0, F.useContext)(Dz)) return /*#__PURE__*/ F.createElement(kz, {
...e,
modalRef: t
}, e.children);
let { isDismissable: n, isKeyboardDismissDisabled: r, isOpen: i, defaultOpen: a, onOpenChange: o, children: s, isEntering: c, isExiting: l, UNSTABLE_portalContainer: u, shouldCloseOnInteractOutside: d, ...f } = e;
- return /*#__PURE__*/ F.createElement(Ez, {
+ return /*#__PURE__*/ F.createElement(Oz, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -40387,15 +40400,15 @@ var Mme = /*#__PURE__*/ (0, F.createContext)(null), Tz = /*#__PURE__*/ (0, F.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ F.createElement(Dz, {
+ }, /*#__PURE__*/ F.createElement(kz, {
...f,
modalRef: t
}, s));
});
-function Pme(e, t) {
- [e, t] = xL(e, t, Mme);
- let n = (0, F.useContext)(xz), r = rz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = KC(t), o = (0, F.useRef)(null), s = az(a, i.isOpen, e.onExit), c = (0, F.useRef)(null), l = az(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = rC();
- return !i.isOpen && !u || d ? null : /*#__PURE__*/ F.createElement(Fme, {
+function Lme(e, t) {
+ [e, t] = CL(e, t, Fme);
+ let n = (0, F.useContext)(Cz), r = az(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = XC(t), o = (0, F.useRef)(null), s = sz(a, i.isOpen, e.onExit), c = (0, F.useRef)(null), l = sz(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = sC();
+ return !i.isOpen && !u || d ? null : /*#__PURE__*/ F.createElement(Rme, {
...e,
state: i,
isExiting: u,
@@ -40404,12 +40417,12 @@ function Pme(e, t) {
onExitRef: c
});
}
-var Ez = /*#__PURE__*/ (0, F.forwardRef)(Pme);
-function Fme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
- let r = n.modalRef, { state: i } = n, [a, o] = (0, F.useState)(!1), s = iz(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = uce({
+var Oz = /*#__PURE__*/ (0, F.forwardRef)(Lme);
+function Rme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
+ let r = n.modalRef, { state: i } = n, [a, o] = (0, F.useState)(!1), s = oz(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = dce({
...n,
isEntering: c
- }, i, r), d = (0, F.useContext)(bz), f = t ? Ime(d, { isEntering: c }) : d, p = yL({
+ }, i, r), d = (0, F.useContext)(Sz), f = t ? zme(d, { isEntering: c }) : d, p = xL({
...n,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -40417,9 +40430,9 @@ function Fme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isExiting: n.isExiting,
state: i
}
- }), m = jme(), h, g;
+ }), m = Pme(), h, g;
if (typeof document < "u") {
- let e = OT(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
+ let e = MT(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 _ = {
@@ -40429,18 +40442,18 @@ function Fme({ 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 FS(() => gk(() => o(!0)), []), /*#__PURE__*/ F.createElement(CD, {
+ return zS(() => bk(() => o(!0)), []), /*#__PURE__*/ F.createElement(DD, {
isExiting: n.isExiting,
portalContainer: e
- }, /*#__PURE__*/ F.createElement(TL.div, {
- ...K(zw(n, { global: !0 }), u),
+ }, /*#__PURE__*/ F.createElement(DL.div, {
+ ...K(Uw(n, { global: !0 }), u),
...p,
style: _,
ref: n.overlayRef,
"data-entering": s || void 0,
"data-exiting": n.isExiting || void 0
- }, /*#__PURE__*/ F.createElement(vL, { values: [
- [Tz, {
+ }, /*#__PURE__*/ F.createElement(bL, { values: [
+ [Dz, {
modalProps: l,
modalRef: r,
isExiting: n.isExiting,
@@ -40448,11 +40461,11 @@ function Fme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isOpen: a,
isDismissable: n.isDismissable
}],
- [xz, i],
- [bz, f]
+ [Cz, i],
+ [Sz, f]
] }, p.children)));
}
-function Ime(e, t) {
+function zme(e, t) {
if (e && "slots" in e && e.slots) {
let n = {};
for (let r in e.slots) n[r] = {
@@ -40469,8 +40482,8 @@ function Ime(e, t) {
...t
};
}
-function Dz(e) {
- let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, F.useContext)(Tz), s = (0, F.useContext)(xz), c = KC((0, F.useMemo)(() => LC(e.modalRef, n), [e.modalRef, n])), l = iz(c, o, e.onEnter), u = yL({
+function kz(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, F.useContext)(Dz), s = (0, F.useContext)(Cz), c = XC((0, F.useMemo)(() => VC(e.modalRef, n), [e.modalRef, n])), l = oz(c, o, e.onEnter), u = xL({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -40479,20 +40492,20 @@ function Dz(e) {
state: s
}
});
- return FS(() => {
+ return zS(() => {
i && (i.current = e.onExit);
- }), /*#__PURE__*/ F.createElement(TL.div, {
- ...K(zw(e, { global: !0 }), t),
+ }), /*#__PURE__*/ F.createElement(DL.div, {
+ ...K(Uw(e, { global: !0 }), t),
...u,
ref: c,
"data-entering": l || void 0,
"data-exiting": r || void 0
- }, a && /*#__PURE__*/ F.createElement(lk, { onDismiss: s.close }), u.children);
+ }, a && /*#__PURE__*/ F.createElement(pk, { onDismiss: s.close }), u.children);
}
// node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var Lme = Math.round(Math.random() * 1e10), Rme = 0;
-function zme(e) {
- let t = (0, F.useMemo)(() => e.name || `radio-group-${Lme}-${++Rme}`, [e.name]), [n, r] = ZT(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, F.useState)(n), [a, o] = (0, F.useState)(null), s = HT({
+var Bme = Math.round(Math.random() * 1e10), Vme = 0;
+function Hme(e) {
+ let t = (0, F.useMemo)(() => e.name || `radio-group-${Bme}-${++Vme}`, [e.name]), [n, r] = tE(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, F.useState)(n), [a, o] = (0, F.useState)(null), s = KT({
...e,
value: n
}), c = (t) => {
@@ -40514,16 +40527,16 @@ function zme(e) {
};
}
// node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var Bme = /*#__PURE__*/ (0, F.createContext)(null), Vme = /*#__PURE__*/ (0, F.createContext)(null), Oz = /*#__PURE__*/ (0, F.createContext)(null), kz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = xL(e, t, Bme);
- let { validationBehavior: n } = bL(VL) || {}, r = e.validationBehavior ?? n ?? "native", i = zme({
+var Ume = /*#__PURE__*/ (0, F.createContext)(null), Wme = /*#__PURE__*/ (0, F.createContext)(null), Az = /*#__PURE__*/ (0, F.createContext)(null), jz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = CL(e, t, Ume);
+ let { validationBehavior: n } = SL(UL) || {}, r = e.validationBehavior ?? n ?? "native", i = Hme({
...e,
validationBehavior: r
- }), [a, o] = SL(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Tce({
+ }), [a, o] = wL(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Oce({
...e,
label: o,
validationBehavior: r
- }, i), f = yL({
+ }, i), f = xL({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -40534,8 +40547,8 @@ var Bme = /*#__PURE__*/ (0, F.createContext)(null), Vme = /*#__PURE__*/ (0, F.cr
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = zw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(TL.div, {
+ }), p = Uw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(DL.div, {
...K(p, f, s),
ref: t,
slot: e.slot || void 0,
@@ -40544,39 +40557,39 @@ var Bme = /*#__PURE__*/ (0, F.createContext)(null), Vme = /*#__PURE__*/ (0, F.cr
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ F.createElement(vL, { values: [
- [Oz, i],
- [NL, {
+ }, /*#__PURE__*/ F.createElement(bL, { values: [
+ [Az, i],
+ [FL, {
...c,
ref: a,
elementType: "span"
}],
- [zL, { slots: {
+ [VL, { slots: {
description: l,
errorMessage: u
} }],
- [BL, d]
- ] }, /*#__PURE__*/ F.createElement(zR, null, f.children)));
-}), Az = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [HL, d]
+ ] }, /*#__PURE__*/ F.createElement(VR, null, f.children)));
+}), Mz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = xL(r, t, Vme);
- let i = F.useContext(Oz), a = KC((0, F.useMemo)(() => LC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = wce({
- ...CL(e),
+ [e, t] = CL(r, t, Wme);
+ let i = F.useContext(Az), a = XC((0, F.useMemo)(() => VC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Dce({
+ ...TL(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ F.createElement(jz.Provider, { value: {
+ return /*#__PURE__*/ F.createElement(Nz.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ F.createElement(Hme, {
+ } }, /*#__PURE__*/ F.createElement(Gme, {
...e,
ref: t
}));
-}), jz = /*#__PURE__*/ (0, F.createContext)(null), Hme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, F.useContext)(jz), l = F.useContext(Oz), { isFocused: u, isFocusVisible: d, focusProps: f } = TD(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = kD({
+}), Nz = /*#__PURE__*/ (0, F.createContext)(null), Gme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, F.useContext)(Nz), l = F.useContext(Az), { isFocused: u, isFocusVisible: d, focusProps: f } = kD(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = ND({
...e,
isDisabled: p
- }), g = yL({
+ }), g = xL({
...e,
defaultClassName: s,
values: {
@@ -40590,8 +40603,8 @@ var Bme = /*#__PURE__*/ (0, F.createContext)(null), Vme = /*#__PURE__*/ (0, F.cr
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = zw(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(TL.label, {
+ }), _ = Uw(e, { global: !0 });
+ return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(DL.label, {
...K(_, n, m, g),
ref: t,
"data-selected": i || void 0,
@@ -40603,18 +40616,18 @@ var Bme = /*#__PURE__*/ (0, F.createContext)(null), Vme = /*#__PURE__*/ (0, F.cr
"data-readonly": l.isReadOnly || void 0,
"data-invalid": l.isInvalid || void 0,
"data-required": l.isRequired || void 0
- }, /*#__PURE__*/ F.createElement(sE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(dE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
...K(r, f),
ref: c
})), g.children);
});
// node_modules/react-stately/dist/private/select/useSelectState.mjs
-function Ume(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = rz(e), [i, a] = (0, F.useState)(null), o = (0, F.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function Kme(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = az(e), [i, a] = (0, F.useState)(null), o = (0, F.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = ZT((0, F.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = tE((0, F.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -40626,12 +40639,12 @@ function Ume(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = ZR({
+ }, d = $R({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, F.useMemo)(() => Wme(l), [l]),
+ selectedKeys: (0, F.useMemo)(() => qme(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -40641,7 +40654,7 @@ function Ume(e) {
n && r.close(), m.commitValidation();
}
}
- }), f = d.selectionManager.firstSelectedKey, p = (0, F.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = HT({
+ }), f = d.selectionManager.firstSelectedKey, p = (0, F.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = KT({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
}), [h, g] = (0, F.useState)(!1), [_] = (0, F.useState)(l);
@@ -40668,15 +40681,15 @@ function Ume(e) {
setFocused: g
};
}
-function Wme(e) {
+function qme(e) {
if (e !== void 0) return e === null ? [] : Array.isArray(e) ? e : [e];
}
// node_modules/react-aria-components/dist/private/Select.mjs
-function Gme(e) {
+function Jme(e) {
return e && e.__esModule ? e.default : e;
}
-var Mz = /*#__PURE__*/ (0, F.createContext)(null), Nz = /*#__PURE__*/ (0, F.createContext)(null), Kme = /*#__PURE__*/ ZC(function(e, t) {
- [e, t] = xL(e, t, Mz);
+var Pz = /*#__PURE__*/ (0, F.createContext)(null), Fz = /*#__PURE__*/ (0, F.createContext)(null), Yme = /*#__PURE__*/ tw(function(e, t) {
+ [e, t] = CL(e, t, Pz);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, F.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
@@ -40691,24 +40704,24 @@ var Mz = /*#__PURE__*/ (0, F.createContext)(null), Nz = /*#__PURE__*/ (0, F.crea
i,
a
]);
- return /*#__PURE__*/ F.createElement(nw, { content: o }, (n) => /*#__PURE__*/ F.createElement(Jme, {
+ return /*#__PURE__*/ F.createElement(ow, { content: o }, (n) => /*#__PURE__*/ F.createElement(Zme, {
props: e,
collection: n,
selectRef: t
}));
-}), qme = [
- NL,
+}), Xme = [
FL,
- zL
+ LL,
+ VL
];
-function Jme({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = bL(VL) || {}, i = e.validationBehavior ?? r ?? "native", a = Ume({
+function Zme({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = SL(UL) || {}, i = e.validationBehavior ?? r ?? "native", a = Kme({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = TD({ within: !0 }), c = (0, F.useRef)(null), [l, u] = SL(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Ece({
- ...CL(e),
+ }), { isFocusVisible: o, focusProps: s } = kD({ within: !0 }), c = (0, F.useRef)(null), [l, u] = wL(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = kce({
+ ...TL(e),
label: u,
validationBehavior: i
}, a, c), y = (0, F.useMemo)(() => ({
@@ -40725,48 +40738,48 @@ function Jme({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = yL({
+ ]), b = xL({
...e,
values: y,
defaultClassName: "react-aria-Select"
- }), x = zw(e, { global: !0 });
+ }), x = Uw(e, { global: !0 });
delete x.id;
let S = (0, F.useRef)(null);
- return /*#__PURE__*/ F.createElement(vL, { values: [
- [Mz, e],
- [Nz, a],
- [Pz, p],
- [NL, {
+ return /*#__PURE__*/ F.createElement(bL, { values: [
+ [Pz, e],
+ [Fz, a],
+ [Iz, p],
+ [FL, {
...d,
ref: l,
elementType: "span"
}],
- [FL, {
+ [LL, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [xz, a],
- [sz, {
+ [Cz, a],
+ [lz, {
trigger: "Select",
triggerRef: c,
scrollRef: S,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: qme
+ clearContexts: Xme
}],
- [ez, {
+ [nz, {
...m,
ref: S
}],
- [tz, a],
- [zL, { slots: {
+ [rz, a],
+ [VL, { slots: {
description: h,
errorMessage: g
} }],
- [BL, v]
- ] }, /*#__PURE__*/ F.createElement(TL.div, {
+ [HL, v]
+ ] }, /*#__PURE__*/ F.createElement(DL.div, {
...K(x, b, s),
ref: t,
slot: e.slot || void 0,
@@ -40776,14 +40789,14 @@ function Jme({ props: e, selectRef: t, collection: n }) {
"data-disabled": e.isDisabled || void 0,
"data-invalid": v.isInvalid || void 0,
"data-required": e.isRequired || void 0
- }, b.children, /*#__PURE__*/ F.createElement(Oce, {
+ }, b.children, /*#__PURE__*/ F.createElement(jce, {
..._,
autoComplete: e.autoComplete
})));
}
-for (var Pz = /*#__PURE__*/ (0, F.createContext)(null), Yme = /*#__PURE__*/ ZC(function(e, t) {
- [e, t] = xL(e, t, Pz);
- let n = (0, F.useContext)(Nz), { placeholder: r } = bL(Mz), i = n.selectedItems.map((e) => {
+for (var Iz = /*#__PURE__*/ (0, F.createContext)(null), Qme = /*#__PURE__*/ tw(function(e, t) {
+ [e, t] = CL(e, t, Iz);
+ let n = (0, F.useContext)(Fz), { placeholder: r } = SL(Pz), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -40795,7 +40808,7 @@ for (var Pz = /*#__PURE__*/ (0, F.createContext)(null), Yme = /*#__PURE__*/ ZC(f
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = Ise(), o = (0, F.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, F.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
+ }), a = Lse(), o = (0, F.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, F.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
s,
a,
o
@@ -40810,7 +40823,7 @@ for (var Pz = /*#__PURE__*/ (0, F.createContext)(null), Yme = /*#__PURE__*/ ZC(f
a,
o,
i
- ]), u = Lw(Gme(NR), "react-aria-components"), d = yL({
+ ]), u = Vw(Jme(FR), "react-aria-components"), d = xL({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -40821,33 +40834,33 @@ for (var Pz = /*#__PURE__*/ (0, F.createContext)(null), Yme = /*#__PURE__*/ ZC(f
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = zw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(TL.span, {
+ }), f = Uw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(DL.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ F.createElement(zL.Provider, { value: void 0 }, d.children));
-}), Xme = /*#__PURE__*/ (0, F.createContext)(null), Fz = /*#__PURE__*/ (0, F.createContext)(null), Zme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ F.createElement(VL.Provider, { value: void 0 }, d.children));
+}), $me = /*#__PURE__*/ (0, F.createContext)(null), Lz = /*#__PURE__*/ (0, F.createContext)(null), ehe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = xL(r, t, Xme);
- let i = KC((0, F.useMemo)(() => LC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = QT(e), o = Ace({
- ...CL(e),
+ [e, t] = CL(r, t, $me);
+ let i = XC((0, F.useMemo)(() => VC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = nE(e), o = Nce({
+ ...TL(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ F.createElement(vL, { values: [[Fz, a], [Iz, {
+ return /*#__PURE__*/ F.createElement(bL, { values: [[Lz, a], [Rz, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ F.createElement(Qme, {
+ }]] }, /*#__PURE__*/ F.createElement(the, {
...e,
ref: t
}));
-}), Iz = /*#__PURE__*/ (0, F.createContext)(null), Qme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, F.useContext)(Iz), { isFocused: f, isFocusVisible: p, focusProps: m } = TD(), h = a || o, g = (0, F.useContext)(Fz), { hoverProps: _, isHovered: v } = kD({
+}), Rz = /*#__PURE__*/ (0, F.createContext)(null), the = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, F.useContext)(Rz), { isFocused: f, isFocusVisible: p, focusProps: m } = kD(), h = a || o, g = (0, F.useContext)(Lz), { hoverProps: _, isHovered: v } = ND({
...e,
isDisabled: h
- }), y = yL({
+ }), y = xL({
...e,
defaultClassName: u,
values: {
@@ -40862,8 +40875,8 @@ for (var Pz = /*#__PURE__*/ (0, F.createContext)(null), Yme = /*#__PURE__*/ ZC(f
isRequired: d || !1,
state: g
}
- }), b = zw(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(TL.label, {
+ }), b = Uw(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(DL.label, {
...K(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -40876,11 +40889,11 @@ for (var Pz = /*#__PURE__*/ (0, F.createContext)(null), Yme = /*#__PURE__*/ ZC(f
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ F.createElement(sE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(dE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
...K(r, m),
ref: l
})), y.children);
-}), Lz = 10, Rz = 5, zz = class {
+}), zz = 10, Bz = 5, Vz = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -40890,7 +40903,7 @@ for (var Pz = /*#__PURE__*/ (0, F.createContext)(null), Yme = /*#__PURE__*/ ZC(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) > Rz && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > Lz && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > Bz && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > zz && (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);
@@ -40969,11 +40982,11 @@ for (var Pz = /*#__PURE__*/ (0, F.createContext)(null), Yme = /*#__PURE__*/ ZC(f
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > Rz && i) {
+ if (Math.abs(r - c.lastSwitchY) > Bz && 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 > Lz && a) {
+ if (l > zz && 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;
}
@@ -40988,7 +41001,7 @@ for (var Pz = /*#__PURE__*/ (0, F.createContext)(null), Yme = /*#__PURE__*/ ZC(f
boundaryContext: null
};
}
-}, $me = class {
+}, nhe = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -41058,8 +41071,8 @@ for (var Pz = /*#__PURE__*/ (0, F.createContext)(null), Yme = /*#__PURE__*/ ZC(f
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, Bz = "row-header-column-" + Math.random().toString(36).slice(2), Vz = "row-header-column-" + Math.random().toString(36).slice(2); Bz === Vz;) Vz = "row-header-column-" + Math.random().toString(36).slice(2);
-function Hz(e, t) {
+}, Hz = "row-header-column-" + Math.random().toString(36).slice(2), Uz = "row-header-column-" + Math.random().toString(36).slice(2); Hz === Uz;) Uz = "row-header-column-" + Math.random().toString(36).slice(2);
+function Wz(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -41143,13 +41156,13 @@ function Hz(e, t) {
textValue: ""
}));
}
-var ehe = class extends $me {
+var rhe = class extends nhe {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: Bz,
+ key: Hz,
value: null,
textValue: "",
level: 0,
@@ -41164,7 +41177,7 @@ var ehe = class extends $me {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: Vz,
+ key: Uz,
value: null,
textValue: "",
level: 0,
@@ -41191,7 +41204,7 @@ var ehe = class extends $me {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = Hz(s, a);
+ let l = Wz(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -41217,10 +41230,10 @@ var ehe = class extends $me {
return this.keyMap.get(e)?.nextKey ?? null;
}
getFirstKey() {
- return uD(this.body.childNodes)?.key ?? null;
+ return mD(this.body.childNodes)?.key ?? null;
}
getLastKey() {
- return fD(this.body.childNodes)?.key ?? null;
+ return gD(this.body.childNodes)?.key ?? null;
}
getItem(e) {
return e === this.body.key ? this.body : this.keyMap.get(e) ?? null;
@@ -41251,15 +41264,15 @@ var ehe = class extends $me {
}
};
// node_modules/react-stately/dist/private/table/TableUtils.mjs
-function the(e) {
+function ihe(e) {
return e != null && (!isNaN(e) || String(e).match(/^(\d+)(?=%$)/) !== null);
}
-function nhe(e) {
+function ahe(e) {
if (!e || typeof e == "number") return 1;
let t = e.match(/^(.+)(?=fr$)/);
return t ? parseFloat(t[0]) : 1;
}
-function Uz(e, t) {
+function Gz(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");
@@ -41267,19 +41280,19 @@ function Uz(e, t) {
}
return e;
}
-function Wz(e, t) {
- return e == null ? 2 ** 53 - 1 : Uz(e, t);
+function Kz(e, t) {
+ return e == null ? 2 ** 53 - 1 : Gz(e, t);
}
-function Gz(e, t) {
- return e == null ? 0 : Uz(e, t);
+function qz(e, t) {
+ return e == null ? 0 : Gz(e, t);
}
-function rhe(e, t, n, r, i) {
+function ohe(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;
- the(o) ? (l = Uz(o, e), s = !0) : (u = nhe(o), u <= 0 && (s = !0));
- let f = Gz(t.minWidth ?? i?.(a) ?? 0, e), p = Wz(t.maxWidth, e), m = Math.max(f, Math.min(l, p));
+ ihe(o) ? (l = Gz(o, e), s = !0) : (u = ahe(o), u <= 0 && (s = !0));
+ let f = qz(t.minWidth ?? i?.(a) ?? 0, e), p = Kz(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,
@@ -41313,14 +41326,14 @@ function rhe(e, t, n, r, i) {
i === 0 || Math.sign(i) === Math.sign(e.violation) ? e.frozen = !0 : e.frozen || (c = !0);
});
}
- let u = ihe(l);
+ let u = she(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 ihe(e) {
+function she(e) {
let t = 0, n = 0, r = [];
return e.forEach(function(e) {
let i = e.targetMainSize, a = Math.round(i + t) - n;
@@ -41328,7 +41341,7 @@ function ihe(e) {
}), r;
}
// node_modules/react-stately/dist/private/table/TableColumnLayout.mjs
-var ahe = class {
+var che = 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);
}
@@ -41357,18 +41370,18 @@ var ahe = class {
}), o;
}
buildColumnWidths(e, t, n) {
- return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), rhe(e, t.columns.map((e) => ({
+ return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), ohe(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, Gz(a.props.minWidth ?? this.getDefaultMinWidth(a), e)), this.columnMaxWidths.set(i, Wz(a.props.maxWidth, e));
+ this.columnWidths.set(i, n), this.columnMinWidths.set(i, qz(a.props.minWidth ?? this.getDefaultMinWidth(a), e)), this.columnMaxWidths.set(i, Kz(a.props.maxWidth, e));
}), this.columnWidths;
}
};
// node_modules/react-stately/dist/private/table/useTableColumnResizeState.mjs
-function ohe(e, t) {
- let { getDefaultWidth: n, getDefaultMinWidth: r, tableWidth: i = 0 } = e, [a, o] = (0, F.useState)(null), s = (0, F.useMemo)(() => new ahe({
+function lhe(e, t) {
+ let { getDefaultWidth: n, getDefaultMinWidth: r, tableWidth: i = 0 } = e, [a, o] = (0, F.useState)(null), s = (0, F.useMemo)(() => new che({
getDefaultWidth: n,
getDefaultMinWidth: r
}), [n, r]), [c, l] = (0, F.useMemo)(() => s.splitColumnsIntoControlledAndUncontrolled(t.collection.columns), [t.collection.columns, s]), [u, d] = (0, F.useState)(() => s.getInitialUncontrolledWidths(l)), [f, p] = (0, F.useState)(t.collection.columns);
@@ -41419,19 +41432,19 @@ function ohe(e, t) {
]);
}
// node_modules/react-stately/dist/private/grid/useGridState.mjs
-function she(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || GR(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+function uhe(e) {
+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || qR(e), i = (0, F.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 = lD(n, t);
- e = r === "last" ? fD(i)?.key ?? null : uD(i)?.key ?? null;
+ let i = pD(n, t);
+ e = r === "last" ? gD(i)?.key ?? null : mD(i)?.key ?? null;
}
}
a(e, r);
};
- let o = (0, F.useMemo)(() => new qR(t, r), [t, r]), s = (0, F.useRef)(null);
+ let o = (0, F.useMemo)(() => new YR(t, r), [t, r]), s = (0, F.useRef)(null);
return (0, F.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;
@@ -41451,7 +41464,7 @@ function she(e) {
}
}
if (u) {
- let i = u.hasChildNodes ? [...lD(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
+ let i = u.hasChildNodes ? [...pD(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);
}
@@ -41469,11 +41482,11 @@ function she(e) {
};
}
// node_modules/react-stately/dist/private/table/useTableState.mjs
-var che = {
+var dhe = {
ascending: "descending",
descending: "ascending"
};
-function lhe(e) {
+function fhe(e) {
let [t, n] = (0, F.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, F.useMemo)(() => ({
showSelectionCheckboxes: i && r !== "none",
showDragButtons: a,
@@ -41484,11 +41497,11 @@ function lhe(e) {
i,
r,
a
- ]), c = XR(e, (0, F.useCallback)((e) => new ehe(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = she({
+ ]), c = QR(e, (0, F.useCallback)((e) => new rhe(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = uhe({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
- }), [d, f] = ZT(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ }), [d, f] = tE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
return {
collection: c,
disabledKeys: l,
@@ -41500,7 +41513,7 @@ function lhe(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? che[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? dhe[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -41513,7 +41526,7 @@ function lhe(e) {
treeColumn: o
};
}
-function uhe(e, t) {
+function phe(e, t) {
let n = (0, F.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
@@ -41522,10 +41535,10 @@ function uhe(e, t) {
};
}
// node_modules/react-aria-components/dist/private/Table.mjs
-function dhe(e) {
+function mhe(e) {
return e && e.__esModule ? e.default : e;
}
-var fhe = class extends pS {
+var hhe = class extends _S {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -41540,7 +41553,7 @@ var fhe = class extends pS {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new eB(-2);
+ return new nB(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -41566,7 +41579,7 @@ var fhe = class extends pS {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = Hz(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 = Wz(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;
@@ -41647,28 +41660,28 @@ var fhe = class extends pS {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new Xz(-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 Qz(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, Kz = /*#__PURE__*/ (0, F.createContext)(null), phe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let n = KC(t), r = (0, F.useRef)(null), i = (0, F.useRef)(null), [a, o] = (0, F.useState)(0);
- FS(() => {
+}, Jz = /*#__PURE__*/ (0, F.createContext)(null), ghe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let n = XC(t), r = (0, F.useRef)(null), i = (0, F.useRef)(null), [a, o] = (0, F.useState)(0);
+ zS(() => {
let e = r.current;
- for (; e && e !== n.current && !OT(e);) e = e.parentElement;
+ for (; e && e !== n.current && !MT(e);) e = e.parentElement;
i.current = e;
- }, [n]), DO({
+ }, [n]), jO({
ref: i,
box: "border-box",
onResize() {
o(i.current?.clientWidth ?? 0);
}
- }), FS(() => {
+ }), zS(() => {
o(i.current?.clientWidth ?? 0);
}, []);
let s = (0, F.useMemo)(() => ({
tableRef: r,
scrollRef: i,
tableWidth: a,
- useTableColumnResizeState: ohe,
+ useTableColumnResizeState: lhe,
onResizeStart: e.onResizeStart,
onResize: e.onResize,
onResizeEnd: e.onResizeEnd
@@ -41679,17 +41692,17 @@ var fhe = class extends pS {
e.onResize,
e.onResizeEnd
]);
- return /*#__PURE__*/ F.createElement(TL.div, {
+ return /*#__PURE__*/ F.createElement(DL.div, {
render: e.render,
- ...zw(e, { global: !0 }),
+ ...Uw(e, { global: !0 }),
ref: n,
className: e.className || "react-aria-ResizableTableContainer",
style: e.style,
onScroll: e.onScroll
- }, /*#__PURE__*/ F.createElement(Kz.Provider, { value: s }, e.children));
-}), mhe = /*#__PURE__*/ (0, F.createContext)(null), qz = /*#__PURE__*/ (0, F.createContext)(null), Jz = /*#__PURE__*/ (0, F.createContext)(null), hhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = xL(e, t, mhe);
- let n = GR(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, F.useMemo)(() => ({
+ }, /*#__PURE__*/ F.createElement(Jz.Provider, { value: s }, e.children));
+}), _he = /*#__PURE__*/ (0, F.createContext)(null), Yz = /*#__PURE__*/ (0, F.createContext)(null), Xz = /*#__PURE__*/ (0, F.createContext)(null), vhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = CL(e, t, _he);
+ let n = qR(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, F.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
disallowEmptySelection: a,
@@ -41699,26 +41712,26 @@ var fhe = class extends pS {
i,
a,
o
- ]), c = /*#__PURE__*/ F.createElement(vhe.Provider, { value: s }, /*#__PURE__*/ F.createElement(lw, e));
- return /*#__PURE__*/ F.createElement(nw, {
+ ]), c = /*#__PURE__*/ F.createElement(xhe.Provider, { value: s }, /*#__PURE__*/ F.createElement(pw, e));
+ return /*#__PURE__*/ F.createElement(ow, {
content: c,
- createCollection: () => new fhe()
- }, (r) => /*#__PURE__*/ F.createElement(_he, {
+ createCollection: () => new hhe()
+ }, (r) => /*#__PURE__*/ F.createElement(bhe, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), ghe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(jL);
- return n ? /*#__PURE__*/ F.createElement(TL.div, {
+}), yhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(NL);
+ return n ? /*#__PURE__*/ F.createElement(DL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(TL.table, {
+ }) : /*#__PURE__*/ F.createElement(DL.table, {
...e,
ref: t
});
-}), Yz = {
+}), Zz = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -41728,26 +41741,26 @@ var fhe = class extends pS {
rtl: "ArrowRight"
}
};
-function _he({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
- [e, t] = xL(e, t, EL);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, F.useContext)(Kz);
- t = KC((0, F.useMemo)(() => LC(t, c?.tableRef), [t, c?.tableRef]));
- let [l, u] = ZT(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+function bhe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+ [e, t] = CL(e, t, OL);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, F.useContext)(Jz);
+ t = XC((0, F.useMemo)(() => VC(t, c?.tableRef), [t, c?.tableRef]));
+ let [l, u] = tE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
r = (0, F.useMemo)(() => r.withExpandedKeys(l), [r, l]);
- let d = lhe({
+ let d = fhe({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = uhe(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, F.useContext)(jL), { dragAndDropHooks: _ } = e, { gridProps: v } = Fce({
+ }), f = phe(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, F.useContext)(NL), { dragAndDropHooks: _ } = e, { gridProps: v } = Rce({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;
(0, F.useRef)(b), (0, F.useRef)(x), (0, F.useEffect)(() => {}, [b, x]);
- let S, C, w, T = !1, E = null, D = (0, F.useRef)(null), { direction: O } = jw(), [k] = (0, F.useState)(() => new zz());
+ let S, C, w, T = !1, E = null, D = (0, F.useRef)(null), { direction: O } = Fw(), [k] = (0, F.useState)(() => new Vz());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -41762,7 +41775,7 @@ function _he({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
collection: f.collection,
selectionManager: y
});
- let e = new bE({
+ let e = new wE({
collection: f.collection,
disabledKeys: y.disabledKeys,
disabledBehavior: y.disabledBehavior,
@@ -41782,12 +41795,12 @@ function _he({ 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 === Yz.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === Yz.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === Zz.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === Zz.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
}
}
}, C, t), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: A, isFocused: j, isFocusVisible: M } = TD(), ee = yL({
+ let { focusProps: A, isFocused: j, isFocusVisible: M } = kD(), ee = xL({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -41803,19 +41816,19 @@ function _he({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
tableLayout: "fixed",
width: "min-content"
}));
- let ne = zw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(vL, { values: [
- [qz, f],
- [Jz, P],
- [PR, {
+ let ne = Uw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(bL, { values: [
+ [Yz, f],
+ [Xz, P],
+ [IR, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [FR, { render: Ohe }],
- [EL, null],
- [DL, null]
- ] }, /*#__PURE__*/ F.createElement(lT, null, /*#__PURE__*/ F.createElement(ghe, {
+ [LR, { render: jhe }],
+ [OL, null],
+ [kL, null]
+ ] }, /*#__PURE__*/ F.createElement(pT, null, /*#__PURE__*/ F.createElement(yhe, {
...K(ne, ee, v, A, w?.collectionProps),
style: te,
ref: t,
@@ -41825,55 +41838,55 @@ function _he({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
"data-drop-target": T || void 0,
"data-focused": j || void 0,
"data-focus-visible": M || void 0
- }, /*#__PURE__*/ F.createElement(zR, null, /*#__PURE__*/ F.createElement(g, {
+ }, /*#__PURE__*/ F.createElement(VR, null, /*#__PURE__*/ F.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: LR(y, _, C)
+ persistedKeys: zR(y, _, C)
})))), E);
}
-var vhe = /*#__PURE__*/ (0, F.createContext)(null), Xz = class extends lS {
+var xhe = /*#__PURE__*/ (0, F.createContext)(null), Qz = class extends pS {
static {
this.type = "tableheader";
}
-}, yhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(jL);
- return n ? /*#__PURE__*/ F.createElement(TL.div, {
+}, She = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(NL);
+ return n ? /*#__PURE__*/ F.createElement(DL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(TL.thead, {
+ }) : /*#__PURE__*/ F.createElement(DL.thead, {
...e,
ref: t
});
-}), Zz = /*#__PURE__*/ ow(Xz, (e, t) => {
- let n = (0, F.useContext)(qz).collection, r = _S({
+}), $z = /*#__PURE__*/ uw(Qz, (e, t) => {
+ let n = (0, F.useContext)(Yz).collection, r = xS({
items: n.headerRows,
children: (0, F.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ F.createElement(xhe, { item: e });
+ case "headerrow": return /*#__PURE__*/ F.createElement(whe, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = jA(), { hoverProps: a, isHovered: o } = kD({
+ }), { rowGroupProps: i } = NA(), { hoverProps: a, isHovered: o } = ND({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), s = yL({
+ }), s = xL({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ F.createElement(yhe, {
- ...K(zw(e, { global: !0 }), i, a),
+ return /*#__PURE__*/ F.createElement(She, {
+ ...K(Uw(e, { global: !0 }), i, a),
...s,
ref: t,
"data-hovered": o || void 0
}, r);
-}, (e) => /*#__PURE__*/ F.createElement(lw, {
+}, (e) => /*#__PURE__*/ F.createElement(pw, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), bhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(jL);
+}, e.children)), Che = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(NL);
return n ? /*#__PURE__*/ F.createElement("div", {
...e,
ref: t
@@ -41882,41 +41895,41 @@ var vhe = /*#__PURE__*/ (0, F.createContext)(null), Xz = class extends lS {
ref: t
});
});
-function xhe({ item: e }) {
- let t = (0, F.useRef)(null), n = (0, F.useContext)(qz), { isVirtualized: r, CollectionBranch: i } = (0, F.useContext)(jL), { rowProps: a } = Vce({
+function whe({ item: e }) {
+ let t = (0, F.useRef)(null), n = (0, F.useContext)(Yz), { isVirtualized: r, CollectionBranch: i } = (0, F.useContext)(NL), { rowProps: a } = Wce({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = Jce(n);
- return /*#__PURE__*/ F.createElement(bhe, {
+ }, n, t), { checkboxProps: o } = Zce(n);
+ return /*#__PURE__*/ F.createElement(Che, {
...a,
ref: t
- }, /*#__PURE__*/ F.createElement(vL, { values: [[HL, { slots: { selection: o } }], [UL, { slots: { selection: o } }]] }, /*#__PURE__*/ F.createElement(i, {
+ }, /*#__PURE__*/ F.createElement(bL, { values: [[WL, { slots: { selection: o } }], [GL, { slots: { selection: o } }]] }, /*#__PURE__*/ F.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var She = class extends lS {
+var The = class extends pS {
static {
this.type = "column";
}
-}, Che = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(jL);
- return n ? /*#__PURE__*/ F.createElement(TL.div, {
+}, Ehe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(NL);
+ return n ? /*#__PURE__*/ F.createElement(DL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(TL.th, {
+ }) : /*#__PURE__*/ F.createElement(DL.th, {
...e,
ref: t
});
-}), Qz = /*#__PURE__*/ aw(She, (e, t, n) => {
- let r = KC(t), i = (0, F.useContext)(qz), { isVirtualized: a } = (0, F.useContext)(jL), { columnHeaderProps: o, isPressed: s } = Rce({
+}), eB = /*#__PURE__*/ lw(The, (e, t, n) => {
+ let r = XC(t), i = (0, F.useContext)(Yz), { isVirtualized: a } = (0, F.useContext)(NL), { columnHeaderProps: o, isPressed: s } = Vce({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = TD(), d = (0, F.useContext)(Jz), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = kD(), d = (0, F.useContext)(Xz), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = kD({ isDisabled: !e.allowsSorting }), h = yL({
+ let { hoverProps: p, isHovered: m } = ND({ isDisabled: !e.allowsSorting }), h = xL({
...e,
id: void 0,
children: n.rendered,
@@ -41942,8 +41955,8 @@ var She = class extends lS {
...g,
width: d.getColumnWidth(n.key)
});
- let _ = zw(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ F.createElement(Che, {
+ let _ = Uw(e, { global: !0 });
+ return delete _.id, /*#__PURE__*/ F.createElement(Ehe, {
...K(_, o, u, p),
...h,
style: g,
@@ -41955,29 +41968,29 @@ var She = class extends lS {
"data-resizing": f || void 0,
"data-allows-sorting": n.props.allowsSorting || void 0,
"data-sort-direction": i.sortDescriptor?.column === n.key ? i.sortDescriptor.direction : void 0
- }, /*#__PURE__*/ F.createElement(vL, { values: [[$z, {
+ }, /*#__PURE__*/ F.createElement(bL, { values: [[tB, {
column: n,
triggerRef: r
- }], [jL, kL]] }, h.children));
-}), $z = /*#__PURE__*/ (0, F.createContext)(null), whe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let n = (0, F.useContext)(Jz);
+ }], [NL, jL]] }, h.children));
+}), tB = /*#__PURE__*/ (0, F.createContext)(null), Dhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let n = (0, F.useContext)(Xz);
if (!n) throw Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
- let r = Lw(dhe(NR), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, F.useContext)(Kz), { column: s, triggerRef: c } = (0, F.useContext)($z), l = (0, F.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = Bce({
+ let r = Vw(mhe(FR), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, F.useContext)(Jz), { column: s, triggerRef: c } = (0, F.useContext)(tB), l = (0, F.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = Uce({
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 } = TD(), { hoverProps: _, isHovered: v } = kD(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = jw(), S = "both";
+ }, n, l), { focusProps: m, isFocused: h, isFocusVisible: g } = kD(), { hoverProps: _, isHovered: v } = ND(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = Fw(), S = "both";
S = y ? x === "rtl" ? "right" : "left" : b ? x === "rtl" ? "left" : "right" : "both";
- let C = KC(t), [w, T] = (0, F.useState)("");
+ let C = XC(t), [w, T] = (0, F.useState)("");
(0, F.useEffect)(() => {
if (!C.current) return;
let e = window.getComputedStyle(C.current);
T(e.cursor);
}, [C, S]);
- let E = yL({
+ let E = xL({
...e,
defaultClassName: "react-aria-ColumnResizer",
values: {
@@ -41987,8 +42000,8 @@ var She = class extends lS {
isHovered: v,
resizableDirection: S
}
- }), D = zw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(TL.div, {
+ }), D = Uw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(DL.div, {
ref: C,
role: "presentation",
...K(D, E, u, _),
@@ -42011,24 +42024,24 @@ var She = class extends lS {
},
"data-testid": "cursor-overlay"
}), document.body));
-}), eB = class extends uS {
+}), nB = class extends mS {
static {
this.type = "tablebody";
}
-}, The = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(jL);
- return n ? /*#__PURE__*/ F.createElement(TL.div, {
+}, Ohe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(NL);
+ return n ? /*#__PURE__*/ F.createElement(DL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(TL.tbody, {
+ }) : /*#__PURE__*/ F.createElement(DL.tbody, {
...e,
ref: t
});
-}), tB = /*#__PURE__*/ ow(eB, (e, t, n) => {
- let r = (0, F.useContext)(qz), { isVirtualized: i } = (0, F.useContext)(jL), a = r.collection, { CollectionBranch: o } = (0, F.useContext)(jL), { dragAndDropHooks: s, dropState: c } = (0, F.useContext)(PR), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), rB = /*#__PURE__*/ uw(nB, (e, t, n) => {
+ let r = (0, F.useContext)(Yz), { isVirtualized: i } = (0, F.useContext)(NL), a = r.collection, { CollectionBranch: o } = (0, F.useContext)(NL), { dragAndDropHooks: s, dropState: c } = (0, F.useContext)(IR), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
- }, p = yL({
+ }, p = xL({
...e,
id: void 0,
children: void 0,
@@ -42037,33 +42050,33 @@ var She = class extends lS {
}), m, h = a.columnCount;
if (d && e.renderEmptyState && r) {
let t = {}, n = {}, r = {};
- i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ F.createElement(rB, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ F.createElement(aB, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ F.createElement(aB, {
+ }, /*#__PURE__*/ F.createElement(sB, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = jA(), _ = zw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(The, {
+ let { rowGroupProps: g } = NA(), _ = Uw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(Ohe, {
...K(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ F.createElement(Nhe, null), /*#__PURE__*/ F.createElement(o, {
+ }, l && /*#__PURE__*/ F.createElement(Ihe, null), /*#__PURE__*/ F.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: IR(s, c)
+ renderDropIndicator: RR(s, c)
}), m);
});
-(class extends uS {
+(class extends mS {
static {
this.type = "tablefooter";
}
});
-var nB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Ehe = class extends lS {
+var iB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), khe = class extends pS {
static {
this.type = "item";
}
@@ -42075,31 +42088,31 @@ var nB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Eh
}
return null;
}
-}, rB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(jL);
- return n ? /*#__PURE__*/ F.createElement(TL.div, {
+}, aB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(NL);
+ return n ? /*#__PURE__*/ F.createElement(DL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(TL.tr, {
+ }) : /*#__PURE__*/ F.createElement(DL.tr, {
...e,
ref: t
});
-}), iB = /*#__PURE__*/ ow(Ehe, (e, t, n) => {
- let r = KC(t), i = (0, F.useContext)(qz), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(PR), { isVirtualized: c, CollectionBranch: l } = (0, F.useContext)(jL), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Wce({
+}), oB = /*#__PURE__*/ uw(khe, (e, t, n) => {
+ let r = XC(t), i = (0, F.useContext)(Yz), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(IR), { isVirtualized: c, CollectionBranch: l } = (0, F.useContext)(NL), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = qce({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
- }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = TD(), { isFocusVisible: _, focusProps: v } = TD({ within: !0 }), { hoverProps: y, isHovered: b } = kD({
+ }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = kD(), { isFocusVisible: _, focusProps: v } = kD({ within: !0 }), { hoverProps: y, isHovered: b } = ND({
isDisabled: !p.allowsSelection && !p.hasAction && !u,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: x } = qce({ key: n.key }, i), S;
+ }), { checkboxProps: x } = Xce({ key: n.key }, i), S;
o && a && (S = a.useDraggableItem({
key: n.key,
hasDragButton: !0
}, o));
- let C, w = (0, F.useRef)(null), { visuallyHiddenProps: T } = oE();
+ let C, w = (0, F.useRef)(null), { visuallyHiddenProps: T } = uE();
s && a && (C = a.useDropIndicator({ target: {
type: "item",
key: n.key,
@@ -42109,7 +42122,7 @@ var nB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Eh
(0, F.useEffect)(() => {
o && E.current;
}, []);
- let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = yL({
+ let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = xL({
...k,
id: void 0,
defaultClassName: "react-aria-Row",
@@ -42130,11 +42143,11 @@ var nB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Eh
isExpanded: j,
level: n.level + 1
}
- }), ee = zw(e, { global: !0 });
- return delete ee.id, delete ee.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, C && !C.isHidden && /*#__PURE__*/ F.createElement(rB, {
+ }), ee = Uw(e, { global: !0 });
+ return delete ee.id, delete ee.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, C && !C.isHidden && /*#__PURE__*/ F.createElement(aB, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ F.createElement(aB, {
+ }, /*#__PURE__*/ F.createElement(sB, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -42143,7 +42156,7 @@ var nB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Eh
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ F.createElement(rB, {
+ }))), /*#__PURE__*/ F.createElement(aB, {
...K(ee, M, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
@@ -42159,17 +42172,17 @@ var nB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Eh
"data-expanded": j || void 0,
"data-has-child-items": A || void 0,
"data-level": n.level + 1
- }, /*#__PURE__*/ F.createElement(vL, { values: [
- [HL, { slots: {
- [_L]: {},
+ }, /*#__PURE__*/ F.createElement(bL, { values: [
+ [WL, { slots: {
+ [yL]: {},
selection: x
} }],
- [UL, { slots: {
- [_L]: {},
+ [GL, { slots: {
+ [yL]: {},
selection: x
} }],
- [FL, { slots: {
- [_L]: {},
+ [LL, { slots: {
+ [yL]: {},
chevron: f,
drag: {
...S?.dragButtonProps,
@@ -42177,8 +42190,8 @@ var nB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Eh
style: { pointerEvents: "none" }
}
} }],
- [BR, { isSelected: p.isSelected }],
- [nB, { isFocusVisibleWithinRow: _ }]
+ [HR, { isSelected: p.isSelected }],
+ [iB, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ F.createElement(l, {
collection: i.collection,
parent: n
@@ -42186,34 +42199,34 @@ var nB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Eh
}, (e) => {
if (e.id == null && typeof e.children == "function") throw Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");
let t = [e.value].concat(e.dependencies);
- return /*#__PURE__*/ F.createElement(lw, {
+ return /*#__PURE__*/ F.createElement(pw, {
dependencies: t,
items: e.columns,
idScope: e.id
}, e.children);
-}), Dhe = class extends lS {
+}), Ahe = class extends pS {
static {
this.type = "cell";
}
-}, aB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(jL);
- return n ? /*#__PURE__*/ F.createElement(TL.div, {
+}, sB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(NL);
+ return n ? /*#__PURE__*/ F.createElement(DL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(TL.td, {
+ }) : /*#__PURE__*/ F.createElement(DL.td, {
...e,
ref: t
});
-}), oB = /*#__PURE__*/ aw(Dhe, (e, t, n) => {
- let r = KC(t), i = (0, F.useContext)(qz), { dragState: a } = (0, F.useContext)(PR), { isVirtualized: o } = (0, F.useContext)(jL);
+}), cB = /*#__PURE__*/ lw(Ahe, (e, t, n) => {
+ let r = XC(t), i = (0, F.useContext)(Yz), { dragState: a } = (0, F.useContext)(IR), { isVirtualized: o } = (0, F.useContext)(NL);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = Ice({
+ let { gridCellProps: s, isPressed: c } = zce({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = TD(), { hoverProps: f, isHovered: p } = kD({}), { isFocusVisibleWithinRow: m } = (0, F.useContext)(nB), 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 = yL({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = kD(), { hoverProps: f, isHovered: p } = ND({}), { isFocusVisibleWithinRow: m } = (0, F.useContext)(iB), 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 = xL({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -42232,8 +42245,8 @@ var nB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Eh
level: _.level + 1,
isTreeColumn: n.column.key === i.treeColumn
}
- }), S = zw(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ F.createElement(aB, {
+ }), S = Uw(e, { global: !0 });
+ return delete S.id, /*#__PURE__*/ F.createElement(sB, {
...K(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
@@ -42247,14 +42260,14 @@ var nB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Eh
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": b || void 0
- }, /*#__PURE__*/ F.createElement(jL.Provider, { value: kL }, x.children));
+ }, /*#__PURE__*/ F.createElement(NL.Provider, { value: jL }, x.children));
});
-function Ohe(e, t) {
- t = KC(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(PR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+function jhe(e, t) {
+ t = XC(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(IR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
if (o) return null;
let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;
- return /*#__PURE__*/ F.createElement(Mhe, {
+ return /*#__PURE__*/ F.createElement(Fhe, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -42263,40 +42276,40 @@ function Ohe(e, t) {
ref: t
});
}
-var khe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(jL);
- return n ? /*#__PURE__*/ F.createElement(TL.div, {
+var Mhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(NL);
+ return n ? /*#__PURE__*/ F.createElement(DL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(TL.tr, {
+ }) : /*#__PURE__*/ F.createElement(DL.tr, {
...e,
ref: t
});
-}), Ahe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(jL);
- return n ? /*#__PURE__*/ F.createElement(TL.div, {
+}), Nhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(NL);
+ return n ? /*#__PURE__*/ F.createElement(DL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(TL.td, {
+ }) : /*#__PURE__*/ F.createElement(DL.td, {
...e,
ref: t
});
});
-function jhe(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, F.useContext)(qz), { visuallyHiddenProps: c } = oE(), l = yL({
+function Phe(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, F.useContext)(Yz), { visuallyHiddenProps: c } = uE(), l = xL({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(khe, {
- ...zw(e, { global: !0 }),
+ return /*#__PURE__*/ F.createElement(Mhe, {
+ ...Uw(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ F.createElement(Ahe, {
+ }, /*#__PURE__*/ F.createElement(Nhe, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@ -42307,14 +42320,14 @@ function jhe(e, t) {
ref: i
}), l.children));
}
-var Mhe = /*#__PURE__*/ (0, F.forwardRef)(jhe);
-function Nhe() {
- let e = (0, F.useContext)(qz), { dragAndDropHooks: t, dropState: n } = (0, F.useContext)(PR), r = (0, F.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = oE();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ F.createElement(rB, {
+var Fhe = /*#__PURE__*/ (0, F.forwardRef)(Phe);
+function Ihe() {
+ let e = (0, F.useContext)(Yz), { dragAndDropHooks: t, dropState: n } = (0, F.useContext)(IR), r = (0, F.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = uE();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ F.createElement(aB, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ F.createElement(aB, {
+ }, /*#__PURE__*/ F.createElement(sB, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -42325,9 +42338,9 @@ function Nhe() {
ref: r
})));
}
-aw(dS, function(e, t, n) {
- let r = (0, F.useContext)(qz), { isVirtualized: i } = (0, F.useContext)(jL), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, F.useRef)(null);
- $R((0, F.useMemo)(() => ({
+lw(hS, function(e, t, n) {
+ let r = (0, F.useContext)(Yz), { isVirtualized: i } = (0, F.useContext)(NL), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, F.useRef)(null);
+ tz((0, F.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -42337,7 +42350,7 @@ aw(dS, function(e, t, n) {
s,
r?.collection
]), u);
- let d = yL({
+ let d = xL({
...c,
id: void 0,
children: n.rendered,
@@ -42345,10 +42358,10 @@ aw(dS, function(e, t, n) {
defaultStyle: { "--table-row-level": n.level + 1 },
values: void 0
}), f = {}, p = {}, m = {};
- return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(rB, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(aB, {
style: { height: 0 },
- inert: HR(!0)
- }, /*#__PURE__*/ F.createElement(aB, { style: {
+ inert: WR(!0)
+ }, /*#__PURE__*/ F.createElement(sB, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ F.createElement("div", {
@@ -42359,22 +42372,22 @@ aw(dS, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ F.createElement(rB, {
- ...K(zw(e, { global: !0 }), f),
+ }))), a && d.children && /*#__PURE__*/ F.createElement(aB, {
+ ...K(Uw(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ F.createElement(aB, {
+ }, /*#__PURE__*/ F.createElement(sB, {
role: "rowheader",
...p,
style: m
}, d.children)));
});
// node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function Phe(e) {
- let [t, n] = ZT(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, F.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = ZR({
+function Lhe(e) {
+ let [t, n] = tE(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, F.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = $R({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -42396,24 +42409,24 @@ function Phe(e) {
};
}
// node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function Fhe(e) {
- let t = Phe({
+function Rhe(e) {
+ let t = Lhe({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? sB(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? lB(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
}), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, F.useRef)(i);
return (0, F.useEffect)(() => {
let o = i;
- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = sB(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 = lB(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 sB(e, t) {
+function lB(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);
@@ -42422,24 +42435,24 @@ function sB(e, t) {
return n;
}
// node_modules/react-aria-components/dist/private/Tabs.mjs
-var cB = /*#__PURE__*/ (0, F.createContext)(null), lB = /*#__PURE__*/ (0, F.createContext)(null), Ihe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = xL(e, t, cB);
+var uB = /*#__PURE__*/ (0, F.createContext)(null), dB = /*#__PURE__*/ (0, F.createContext)(null), zhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = CL(e, t, uB);
let { children: n, orientation: r = "horizontal" } = e;
return n = (0, F.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ F.createElement(nw, { content: n }, (n) => /*#__PURE__*/ F.createElement(Lhe, {
+ }) : n, [n, r]), /*#__PURE__*/ F.createElement(ow, { content: n }, (n) => /*#__PURE__*/ F.createElement(Bhe, {
props: e,
collection: n,
tabsRef: t
}));
});
-function Lhe({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = Fhe({
+function Bhe({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = Rhe({
...e,
collection: n,
children: void 0
- }), { focusProps: a, isFocused: o, isFocusVisible: s } = TD({ within: !0 }), c = (0, F.useMemo)(() => ({
+ }), { focusProps: a, isFocused: o, isFocusVisible: s } = kD({ within: !0 }), c = (0, F.useMemo)(() => ({
orientation: r,
isFocusWithin: o,
isFocusVisible: s
@@ -42447,12 +42460,12 @@ function Lhe({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = yL({
+ ]), l = xL({
...e,
defaultClassName: "react-aria-Tabs",
values: c
- }), u = zw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(TL.div, {
+ }), u = Uw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(DL.div, {
...K(u, l, a),
ref: t,
slot: e.slot || void 0,
@@ -42460,20 +42473,20 @@ function Lhe({ props: e, tabsRef: t, collection: n }) {
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ F.createElement(vL, { values: [[cB, e], [lB, i]] }, l.children));
+ }, /*#__PURE__*/ F.createElement(bL, { values: [[uB, e], [dB, i]] }, l.children));
}
-var uB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return (0, F.useContext)(lB) ? /*#__PURE__*/ F.createElement(Rhe, {
+var fB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return (0, F.useContext)(dB) ? /*#__PURE__*/ F.createElement(Vhe, {
props: e,
forwardedRef: t
- }) : /*#__PURE__*/ F.createElement(lw, e);
+ }) : /*#__PURE__*/ F.createElement(pw, e);
});
-function Rhe({ props: e, forwardedRef: t }) {
- let n = (0, F.useContext)(lB), { CollectionRoot: r } = (0, F.useContext)(jL), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = bL(cB), o = KC(t), { tabListProps: s } = Zce({
+function Vhe({ props: e, forwardedRef: t }) {
+ let n = (0, F.useContext)(dB), { CollectionRoot: r } = (0, F.useContext)(NL), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = SL(uB), o = XC(t), { tabListProps: s } = ele({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = yL({
+ }, n, o), c = xL({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -42481,30 +42494,30 @@ function Rhe({ props: e, forwardedRef: t }) {
orientation: i,
state: n
}
- }), l = zw(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ F.createElement(TL.div, {
+ }), l = Uw(e, { global: !0 });
+ return delete l.id, /*#__PURE__*/ F.createElement(DL.div, {
...K(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ F.createElement(zR, null, /*#__PURE__*/ F.createElement(r, {
+ }, /*#__PURE__*/ F.createElement(VR, null, /*#__PURE__*/ F.createElement(r, {
collection: n.collection,
- persistedKeys: ML(n.selectionManager.focusedKey)
+ persistedKeys: PL(n.selectionManager.focusedKey)
})));
}
-var zhe = /*#__PURE__*/ aw(class extends lS {
+var Hhe = /*#__PURE__*/ lw(class extends pS {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, F.useContext)(lB), i = KC(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Yce({
+ let r = (0, F.useContext)(dB), i = XC(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Qce({
key: n.key,
...e
- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = TD(), { hoverProps: f, isHovered: p } = kD({
+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = kD(), { hoverProps: f, isHovered: p } = ND({
isDisabled: s,
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
- }), m = yL({
+ }), m = xL({
...e,
id: void 0,
children: n.rendered,
@@ -42517,7 +42530,7 @@ var zhe = /*#__PURE__*/ aw(class extends lS {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? TL.a : TL.div, g = zw(e, { global: !0 });
+ }), h = n.props.href ? DL.a : DL.div, g = Uw(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ F.createElement(h, {
...K(g, m, a, l, f),
ref: i,
@@ -42527,54 +42540,54 @@ var zhe = /*#__PURE__*/ aw(class extends lS {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ F.createElement(BR.Provider, { value: { isSelected: o } }, m.children));
-}), Bhe = /*#__PURE__*/ ZC(function(e, t) {
- let n = (0, F.useContext)(lB), r = KC(t), i = n.selectedKey === e.id, [a, o] = (0, F.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ F.createElement(HR.Provider, { value: { isSelected: o } }, m.children));
+}), Uhe = /*#__PURE__*/ tw(function(e, t) {
+ let n = (0, F.useContext)(dB), r = XC(t), i = n.selectedKey === e.id, [a, o] = (0, F.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
- let s = az(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ F.createElement(Vhe, {
+ let s = sz(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ F.createElement(Whe, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function Vhe(e) {
- let t = (0, F.useContext)(lB), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Qce(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = TD(), d = t.selectedKey === e.id, f = iz(r) && !i, p = yL({
+function Whe(e) {
+ let t = (0, F.useContext)(dB), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = tle(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = kD(), d = t.selectedKey === e.id, f = oz(r) && !i, p = xL({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: HR(!d),
+ isInert: WR(!d),
isEntering: f,
isExiting: a,
state: t
}
- }), m = zw(o, { global: !0 });
+ }), m = Uw(o, { global: !0 });
delete m.id;
let h = d ? K(m, s, c, p) : K(m, p);
- return /*#__PURE__*/ F.createElement(TL.div, {
+ return /*#__PURE__*/ F.createElement(DL.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: HR(!d || e.inert),
+ inert: WR(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ F.createElement(vL, { values: [[cB, null], [lB, null]] }, /*#__PURE__*/ F.createElement(jL.Provider, { value: kL }, p.children)));
+ }, /*#__PURE__*/ F.createElement(bL, { values: [[uB, null], [dB, null]] }, /*#__PURE__*/ F.createElement(NL.Provider, { value: jL }, p.children)));
}
// node_modules/react-aria-components/dist/private/TextArea.mjs
-var dB = /*#__PURE__*/ (0, F.createContext)({}), Hhe = (e) => {
+var pB = /*#__PURE__*/ (0, F.createContext)({}), Ghe = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, Uhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = xL(e, t, dB);
- let { hoverProps: n, isHovered: r } = kD(e), { isFocused: i, isFocusVisible: a, focusProps: o } = TD({
+}, Khe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = CL(e, t, pB);
+ let { hoverProps: n, isHovered: r } = ND(e), { isFocused: i, isFocusVisible: a, focusProps: o } = kD({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = yL({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = xL({
...e,
values: {
isHovered: r,
@@ -42585,8 +42598,8 @@ var dB = /*#__PURE__*/ (0, F.createContext)({}), Hhe = (e) => {
},
defaultClassName: "react-aria-TextArea"
});
- return /*#__PURE__*/ F.createElement(TL.textarea, {
- ...K(Hhe(e), o, n),
+ return /*#__PURE__*/ F.createElement(DL.textarea, {
+ ...K(Ghe(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -42595,18 +42608,18 @@ var dB = /*#__PURE__*/ (0, F.createContext)({}), Hhe = (e) => {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), Whe = /*#__PURE__*/ (0, F.createContext)(null), Ghe = /*#__PURE__*/ ZC(function(e, t) {
- [e, t] = xL(e, t, Whe);
- let { validationBehavior: n } = bL(VL) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useRef)(null);
- [e, i] = xL(e, i, DL);
- let [a, o] = SL(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, F.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = vse({
- ...CL(e),
+}), qhe = /*#__PURE__*/ (0, F.createContext)(null), Jhe = /*#__PURE__*/ tw(function(e, t) {
+ [e, t] = CL(e, t, qhe);
+ let { validationBehavior: n } = SL(UL) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useRef)(null);
+ [e, i] = CL(e, i, kL);
+ let [a, o] = wL(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, F.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = yse({
+ ...TL(e),
inputElementType: s,
label: o,
validationBehavior: r
}, i), m = (0, F.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = yL({
+ }, [i]), h = xL({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -42615,8 +42628,8 @@ var dB = /*#__PURE__*/ (0, F.createContext)({}), Hhe = (e) => {
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = zw(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ F.createElement(TL.div, {
+ }), g = Uw(e, { global: !0 });
+ return delete g.id, /*#__PURE__*/ F.createElement(DL.div, {
...g,
...h,
ref: t,
@@ -42625,31 +42638,31 @@ var dB = /*#__PURE__*/ (0, F.createContext)({}), Hhe = (e) => {
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ F.createElement(vL, { values: [
- [NL, {
+ }, /*#__PURE__*/ F.createElement(bL, { values: [
+ [FL, {
...l,
ref: a
}],
- [qL, {
+ [YL, {
...u,
ref: m
}],
- [dB, {
+ [pB, {
...u,
ref: m
}],
- [GL, {
+ [qL, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [zL, { slots: {
+ [VL, { slots: {
description: d,
errorMessage: f
} }],
- [BL, p]
+ [HL, p]
] }, h.children));
-}), Khe = class e extends pS {
+}), Yhe = class e extends _S {
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;
@@ -42721,16 +42734,16 @@ var dB = /*#__PURE__*/ (0, F.createContext)({}), Hhe = (e) => {
constructor(...e) {
super(...e), this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, qhe = /*#__PURE__*/ (0, F.createContext)(null), fB = /*#__PURE__*/ (0, F.createContext)(null), Jhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return [e, t] = xL(e, t, qhe), /*#__PURE__*/ F.createElement(nw, {
- content: /*#__PURE__*/ F.createElement(lw, e),
- createCollection: () => new Khe()
- }, (n) => /*#__PURE__*/ F.createElement(Yhe, {
+}, Xhe = /*#__PURE__*/ (0, F.createContext)(null), mB = /*#__PURE__*/ (0, F.createContext)(null), Zhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return [e, t] = CL(e, t, Xhe), /*#__PURE__*/ F.createElement(ow, {
+ content: /*#__PURE__*/ F.createElement(pw, e),
+ createCollection: () => new Yhe()
+ }, (n) => /*#__PURE__*/ F.createElement(Qhe, {
props: e,
collection: n,
treeRef: t
}));
-}), pB = {
+}), hB = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -42740,17 +42753,17 @@ var dB = /*#__PURE__*/ (0, F.createContext)({}), Hhe = (e) => {
rtl: "ArrowRight"
}
};
-function Yhe({ props: e, collection: t, treeRef: n }) {
- let { dragAndDropHooks: r } = e, { direction: i } = jw(), a = vD({
+function Qhe({ props: e, collection: t, treeRef: n }) {
+ let { dragAndDropHooks: r } = e, { direction: i } = Fw(), a = SD({
usage: "search",
sensitivity: "base"
}), o = !!r?.useDraggableCollectionState, s = !!r?.useDroppableCollectionState, c = (0, F.useRef)(o), l = (0, F.useRef)(s);
(0, F.useEffect)(() => {
c.current !== o && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), l.current !== s && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.");
}, [o, s]);
- let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, F.useContext)(jL), [y, b] = ZT(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, S] = (0, F.useState)(t), [C, w] = (0, F.useState)(y), [T, E] = (0, F.useState)(() => t.withExpandedKeys(C, y));
- nge(C, y) && t === x || (E(t.withExpandedKeys(C, y)), S(t), w(y));
- let D = dz({
+ let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, F.useContext)(NL), [y, b] = tE(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, S] = (0, F.useState)(t), [C, w] = (0, F.useState)(y), [T, E] = (0, F.useState)(() => t.withExpandedKeys(C, y));
+ age(C, y) && t === x || (E(t.withExpandedKeys(C, y)), S(t), w(y));
+ let D = pz({
...e,
selectionMode: u,
expandedKeys: y,
@@ -42758,7 +42771,7 @@ function Yhe({ props: e, collection: t, treeRef: n }) {
collection: T,
children: void 0,
disabledBehavior: m
- }), { gridProps: O } = $ce({
+ }), { gridProps: O } = nle({
...e,
isVirtualized: g,
layoutDelegate: _
@@ -42772,7 +42785,7 @@ function Yhe({ props: e, collection: t, treeRef: n }) {
let e = r.DragPreview;
ee = r.renderDragPreview ? /*#__PURE__*/ F.createElement(e, { ref: N }, r.renderDragPreview) : null;
}
- let [te] = (0, F.useState)(() => new zz());
+ let [te] = (0, F.useState)(() => new Vz());
if (s && r) {
A = r.useDroppableCollectionState({
collection: D.collection,
@@ -42780,7 +42793,7 @@ function Yhe({ props: e, collection: t, treeRef: n }) {
});
let e = r.dropTargetDelegate || v || new r.ListDropTargetDelegate(D.collection, n, { direction: i });
te.setup(e, D, i);
- let t = new bE({
+ let t = new wE({
collection: D.collection,
collator: a,
ref: n,
@@ -42802,12 +42815,12 @@ function Yhe({ props: e, collection: t, treeRef: n }) {
let t = A?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = D.collection.getItem(t.key);
- (e.key === pB.expand[i] && n?.hasChildNodes && !D.expandedKeys.has(t.key) || e.key === pB.collapse[i] && n?.hasChildNodes && D.expandedKeys.has(t.key)) && D.toggleKey(t.key);
+ (e.key === hB.expand[i] && n?.hasChildNodes && !D.expandedKeys.has(t.key) || e.key === hB.collapse[i] && n?.hasChildNodes && D.expandedKeys.has(t.key)) && D.toggleKey(t.key);
}
}
}, A, n), M = A.isDropTarget({ type: "root" });
}
- let P = !(!o || k?.isDisabled), { focusProps: ne, isFocused: re, isFocusVisible: I } = TD(), ie = {
+ let P = !(!o || k?.isDisabled), { focusProps: ne, isFocused: re, isFocusVisible: I } = kD(), ie = {
isEmpty: D.collection.size === 0,
isFocused: re,
isFocusVisible: I,
@@ -42815,7 +42828,7 @@ function Yhe({ props: e, collection: t, treeRef: n }) {
selectionMode: D.selectionManager.selectionMode,
allowsDragging: !!P,
state: D
- }, ae = yL({
+ }, ae = xL({
...e,
children: void 0,
defaultClassName: "react-aria-Tree",
@@ -42832,8 +42845,8 @@ function Yhe({ props: e, collection: t, treeRef: n }) {
style: { display: "contents" }
}, r));
}
- let se = zw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(lT, null, /*#__PURE__*/ F.createElement(TL.div, {
+ let se = Uw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(pT, null, /*#__PURE__*/ F.createElement(DL.div, {
...K(se, ae, O, ne, j?.collectionProps),
ref: n,
slot: e.slot || void 0,
@@ -42843,54 +42856,54 @@ function Yhe({ props: e, collection: t, treeRef: n }) {
"data-focus-visible": I || void 0,
"data-selection-mode": D.selectionManager.selectionMode === "none" ? void 0 : D.selectionManager.selectionMode,
"data-allows-dragging": !!P || void 0
- }, /*#__PURE__*/ F.createElement(vL, { values: [
- [fB, D],
- [PR, {
+ }, /*#__PURE__*/ F.createElement(bL, { values: [
+ [mB, D],
+ [IR, {
dragAndDropHooks: r,
dragState: k,
dropState: A
}],
- [FR, { render: Qhe }]
- ] }, s && /*#__PURE__*/ F.createElement(tge, null), /*#__PURE__*/ F.createElement(zR, null, /*#__PURE__*/ F.createElement(h, {
+ [LR, { render: tge }]
+ ] }, s && /*#__PURE__*/ F.createElement(ige, null), /*#__PURE__*/ F.createElement(VR, null, /*#__PURE__*/ F.createElement(h, {
collection: D.collection,
- persistedKeys: LR(D.selectionManager, r, A),
+ persistedKeys: zR(D.selectionManager, r, A),
scrollRef: n,
- renderDropIndicator: IR(r, A)
+ renderDropIndicator: RR(r, A)
}))), oe)), ee);
}
-var Xhe = /*#__PURE__*/ aw(class extends lS {
+var $he = /*#__PURE__*/ lw(class extends pS {
static {
this.type = "content";
}
}, function(e) {
- let t = (0, F.useContext)(mB), n = yL({
+ let t = (0, F.useContext)(gB), n = xL({
children: e.children,
values: t
});
- return /*#__PURE__*/ F.createElement(jL.Provider, { value: kL }, n.children);
-}), mB = /*#__PURE__*/ (0, F.createContext)(null), Zhe = /*#__PURE__*/ ow(class extends lS {
+ return /*#__PURE__*/ F.createElement(NL.Provider, { value: jL }, n.children);
+}), gB = /*#__PURE__*/ (0, F.createContext)(null), ege = /*#__PURE__*/ uw(class extends pS {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, F.useContext)(fB);
- t = KC(t);
- let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, F.useContext)(PR), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = hj({
+ let r = (0, F.useContext)(mB);
+ t = XC(t);
+ let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, F.useContext)(IR), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = _j({
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: _ } = kD({
+ }, 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: _ } = ND({
isDisabled: !f.allowsSelection && !f.hasAction && !s,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { isFocusVisible: v, focusProps: y } = TD(), { isFocusVisible: b, focusProps: x } = TD({ within: !0 }), { checkboxProps: S } = qse({ key: n.key }, r), C = null;
+ }), { isFocusVisible: v, focusProps: y } = kD(), { isFocusVisible: b, focusProps: x } = kD({ within: !0 }), { checkboxProps: S } = Jse({ key: n.key }, r), C = null;
a && i && (C = i.useDraggableItem({
key: n.key,
hasDragButton: !0
}, a));
- let w = null, T = (0, F.useRef)(null), E = (0, F.useRef)(null), D = (0, F.useRef)(null), { visuallyHiddenProps: O } = oE();
+ let w = null, T = (0, F.useRef)(null), E = (0, F.useRef)(null), D = (0, F.useRef)(null), { visuallyHiddenProps: O } = uE();
o && i && (w = i.useDropIndicator({
target: {
type: "item",
@@ -42929,7 +42942,7 @@ var Xhe = /*#__PURE__*/ aw(class extends lS {
A,
M,
j
- ]), N = yL({
+ ]), N = xL({
...e,
id: void 0,
children: n.rendered,
@@ -42946,7 +42959,7 @@ var Xhe = /*#__PURE__*/ aw(class extends lS {
(0, F.useEffect)(() => {
a && te.current;
}, []);
- let P = _S({
+ let P = xS({
items: r.collection.getChildren(n.key),
children: (e) => {
switch (e.type) {
@@ -42956,7 +42969,7 @@ var Xhe = /*#__PURE__*/ aw(class extends lS {
default: throw Error("Unsupported element type in TreeRow: " + e.type);
}
}
- }), ne = FC(), re = zw(e, { global: !0 });
+ }), ne = zC(), re = Uw(e, { global: !0 });
return delete re.id, delete re.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, w && !w.isHidden && /*#__PURE__*/ F.createElement("div", {
role: "row",
"aria-level": c["aria-level"],
@@ -42979,7 +42992,7 @@ var Xhe = /*#__PURE__*/ aw(class extends lS {
"aria-labelledby": `${ne} ${c.id}`,
tabIndex: -1,
ref: D
- }))), /*#__PURE__*/ F.createElement(TL.div, {
+ }))), /*#__PURE__*/ F.createElement(DL.div, {
...K(re, c, y, g, x, C?.dragProps),
...N,
ref: t,
@@ -42999,17 +43012,17 @@ var Xhe = /*#__PURE__*/ aw(class extends lS {
}, /*#__PURE__*/ F.createElement("div", {
...l,
style: { display: "contents" }
- }, /*#__PURE__*/ F.createElement(vL, { values: [
- [HL, { slots: {
- [_L]: {},
+ }, /*#__PURE__*/ F.createElement(bL, { values: [
+ [WL, { slots: {
+ [yL]: {},
selection: S
} }],
- [UL, { slots: {
- [_L]: {},
+ [GL, { slots: {
+ [yL]: {},
selection: S
} }],
- [FL, { slots: {
- [_L]: {},
+ [LL, { slots: {
+ [yL]: {},
chevron: {
...u,
ref: T
@@ -43020,13 +43033,13 @@ var Xhe = /*#__PURE__*/ aw(class extends lS {
style: { pointerEvents: "none" }
}
} }],
- [mB, { ...ee }],
- [BR, { isSelected: f.isSelected }]
+ [gB, { ...ee }],
+ [HR, { isSelected: f.isSelected }]
] }, P))));
});
-aw(dS, function(e, t, n) {
- let { isVirtualized: r } = (0, F.useContext)(jL), i = (0, F.useContext)(fB), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, F.useRef)(null);
- $R((0, F.useMemo)(() => ({
+lw(hS, function(e, t, n) {
+ let { isVirtualized: r } = (0, F.useContext)(NL), i = (0, F.useContext)(mB), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, F.useRef)(null);
+ tz((0, F.useMemo)(() => ({
onLoadMore: o,
collection: i?.collection,
sentinelRef: l,
@@ -43035,11 +43048,11 @@ aw(dS, function(e, t, n) {
o,
s,
i?.collection
- ]), l), t = KC(t);
- let { rowProps: u, gridCellProps: d } = hj({ node: n }, i, t), f = u["aria-level"] || 1, p = {
+ ]), l), t = XC(t);
+ let { rowProps: u, gridCellProps: d } = _j({ node: n }, i, t), f = u["aria-level"] || 1, p = {
role: "row",
"aria-level": u["aria-level"]
- }, m = yL({
+ }, m = xL({
...c,
id: void 0,
children: n.rendered,
@@ -43052,7 +43065,7 @@ aw(dS, function(e, t, n) {
width: 0,
height: 0
},
- inert: HR(!0)
+ inert: WR(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: l,
@@ -43061,9 +43074,9 @@ aw(dS, function(e, t, n) {
height: 1,
width: 1
}
- })), a && m.children && /*#__PURE__*/ F.createElement(TL.div, {
+ })), a && m.children && /*#__PURE__*/ F.createElement(DL.div, {
ref: t,
- ...K(zw(e), p),
+ ...K(Uw(e), p),
...m,
"data-level": f
}, /*#__PURE__*/ F.createElement("div", {
@@ -43071,12 +43084,12 @@ aw(dS, function(e, t, n) {
style: h
}, m.children)));
});
-function Qhe(e, t) {
- t = KC(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(PR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+function tge(e, t) {
+ t = XC(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(IR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
if (o) return null;
let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;
- return /*#__PURE__*/ F.createElement(ege, {
+ return /*#__PURE__*/ F.createElement(rge, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -43085,8 +43098,8 @@ function Qhe(e, t) {
level: c
});
}
-function $he(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = oE(), c = yL({
+function nge(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = uE(), c = xL({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: {
@@ -43095,7 +43108,7 @@ function $he(e, t) {
},
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(TL.div, {
+ return /*#__PURE__*/ F.createElement(DL.div, {
...c,
role: "row",
"aria-level": a,
@@ -43108,9 +43121,9 @@ function $he(e, t) {
ref: i
}), c.children));
}
-var ege = /*#__PURE__*/ (0, F.forwardRef)($he);
-function tge() {
- let { dragAndDropHooks: e, dropState: t } = (0, F.useContext)(PR), n = (0, F.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = oE();
+var rge = /*#__PURE__*/ (0, F.forwardRef)(nge);
+function ige() {
+ let { dragAndDropHooks: e, dropState: t } = (0, F.useContext)(IR), n = (0, F.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = uE();
return !i && r["aria-hidden"] ? null : /*#__PURE__*/ F.createElement("div", {
role: "row",
"aria-hidden": r["aria-hidden"],
@@ -43122,13 +43135,13 @@ function tge() {
ref: n
})));
}
-function nge(e, t) {
+function age(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
// node_modules/@remixicon/react/index.mjs
-var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43136,7 +43149,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), ige = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), sge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43144,7 +43157,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M6.38231 3.9681C7.92199 2.73647 9.87499 2 12 2C14.125 2 16.078 2.73647 17.6177 3.9681L19.0711 2.51472L20.4853 3.92893L19.0319 5.38231C20.2635 6.92199 21 8.87499 21 11V12H3V11C3 8.87499 3.73647 6.92199 4.9681 5.38231L3.51472 3.92893L4.92893 2.51472L6.38231 3.9681ZM3 14H21V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V14ZM9 9C9.55228 9 10 8.55228 10 8C10 7.44772 9.55228 7 9 7C8.44772 7 8 7.44772 8 8C8 8.55228 8.44772 9 9 9ZM15 9C15.5523 9 16 8.55228 16 8C16 7.44772 15.5523 7 15 7C14.4477 7 14 7.44772 14 8C14 8.55228 14.4477 9 15 9Z" })), age = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M6.38231 3.9681C7.92199 2.73647 9.87499 2 12 2C14.125 2 16.078 2.73647 17.6177 3.9681L19.0711 2.51472L20.4853 3.92893L19.0319 5.38231C20.2635 6.92199 21 8.87499 21 11V12H3V11C3 8.87499 3.73647 6.92199 4.9681 5.38231L3.51472 3.92893L4.92893 2.51472L6.38231 3.9681ZM3 14H21V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V14ZM9 9C9.55228 9 10 8.55228 10 8C10 7.44772 9.55228 7 9 7C8.44772 7 8 7.44772 8 8C8 8.55228 8.44772 9 9 9ZM15 9C15.5523 9 16 8.55228 16 8C16 7.44772 15.5523 7 15 7C14.4477 7 14 7.44772 14 8C14 8.55228 14.4477 9 15 9Z" })), cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43152,7 +43165,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.6734 7.22198C10.7974 7.22198 9.44138 6.22598 8.01338 6.26198C6.12938 6.28598 4.40138 7.35397 3.42938 9.04597C1.47338 12.442 2.92538 17.458 4.83338 20.218C5.76938 21.562 6.87338 23.074 8.33738 23.026C9.74138 22.966 10.2694 22.114 11.9734 22.114C13.6654 22.114 14.1454 23.026 15.6334 22.99C17.1454 22.966 18.1054 21.622 19.0294 20.266C20.0974 18.706 20.5414 17.194 20.5654 17.11C20.5294 17.098 17.6254 15.982 17.5894 12.622C17.5654 9.81397 19.8814 8.46998 19.9894 8.40998C18.6694 6.47798 16.6414 6.26198 15.9334 6.21398C14.0854 6.06998 12.5374 7.22198 11.6734 7.22198ZM14.7934 4.38998C15.5734 3.45398 16.0894 2.14598 15.9454 0.849976C14.8294 0.897976 13.4854 1.59398 12.6814 2.52998C11.9614 3.35798 11.3374 4.68998 11.5054 5.96198C12.7414 6.05798 14.0134 5.32598 14.7934 4.38998Z" })), oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11.6734 7.22198C10.7974 7.22198 9.44138 6.22598 8.01338 6.26198C6.12938 6.28598 4.40138 7.35397 3.42938 9.04597C1.47338 12.442 2.92538 17.458 4.83338 20.218C5.76938 21.562 6.87338 23.074 8.33738 23.026C9.74138 22.966 10.2694 22.114 11.9734 22.114C13.6654 22.114 14.1454 23.026 15.6334 22.99C17.1454 22.966 18.1054 21.622 19.0294 20.266C20.0974 18.706 20.5414 17.194 20.5654 17.11C20.5294 17.098 17.6254 15.982 17.5894 12.622C17.5654 9.81397 19.8814 8.46998 19.9894 8.40998C18.6694 6.47798 16.6414 6.26198 15.9334 6.21398C14.0854 6.06998 12.5374 7.22198 11.6734 7.22198ZM14.7934 4.38998C15.5734 3.45398 16.0894 2.14598 15.9454 0.849976C14.8294 0.897976 13.4854 1.59398 12.6814 2.52998C11.9614 3.35798 11.3374 4.68998 11.5054 5.96198C12.7414 6.05798 14.0134 5.32598 14.7934 4.38998Z" })), lge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43160,7 +43173,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), hB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), _B = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43168,7 +43181,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), gB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), vB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43176,7 +43189,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), _B = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), yB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43184,7 +43197,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), sge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), uge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43192,7 +43205,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), vB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), bB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43200,7 +43213,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), yB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), xB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43208,7 +43221,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 12H5V21H3V12ZM19 8H21V21H19V8ZM11 2H13V21H11V2Z" })), bB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 12H5V21H3V12ZM19 8H21V21H19V8ZM11 2H13V21H11V2Z" })), SB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43216,7 +43229,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5 2H19C19.5523 2 20 2.44772 20 3V22.1433C20 22.4194 19.7761 22.6434 19.5 22.6434C19.4061 22.6434 19.314 22.6168 19.2344 22.5669L12 18.0313L4.76559 22.5669C4.53163 22.7136 4.22306 22.6429 4.07637 22.4089C4.02647 22.3293 4 22.2373 4 22.1433V3C4 2.44772 4.44772 2 5 2ZM18 4H6V19.4324L12 15.6707L18 19.4324V4Z" })), cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5 2H19C19.5523 2 20 2.44772 20 3V22.1433C20 22.4194 19.7761 22.6434 19.5 22.6434C19.4061 22.6434 19.314 22.6168 19.2344 22.5669L12 18.0313L4.76559 22.5669C4.53163 22.7136 4.22306 22.6429 4.07637 22.4089C4.02647 22.3293 4 22.2373 4 22.1433V3C4 2.44772 4.44772 2 5 2ZM18 4H6V19.4324L12 15.6707L18 19.4324V4Z" })), dge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43224,7 +43237,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M21 19H23V21H1V19H3V4C3 3.44772 3.44772 3 4 3H14C14.5523 3 15 3.44772 15 4V19H19V11H17V9H20C20.5523 9 21 9.44772 21 10V19ZM5 5V19H13V5H5ZM7 11H11V13H7V11ZM7 7H11V9H7V7Z" })), lge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M21 19H23V21H1V19H3V4C3 3.44772 3.44772 3 4 3H14C14.5523 3 15 3.44772 15 4V19H19V11H17V9H20C20.5523 9 21 9.44772 21 10V19ZM5 5V19H13V5H5ZM7 11H11V13H7V11ZM7 7H11V9H7V7Z" })), fge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43232,7 +43245,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" })), uge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" })), pge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43240,7 +43253,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M7.29117 20.8242L2 22L3.17581 16.7088C2.42544 15.3056 2 13.7025 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C10.2975 22 8.6944 21.5746 7.29117 20.8242ZM7.58075 18.711L8.23428 19.0605C9.38248 19.6745 10.6655 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 13.3345 4.32549 14.6175 4.93949 15.7657L5.28896 16.4192L4.63416 19.3658L7.58075 18.711Z" })), dge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M7.29117 20.8242L2 22L3.17581 16.7088C2.42544 15.3056 2 13.7025 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C10.2975 22 8.6944 21.5746 7.29117 20.8242ZM7.58075 18.711L8.23428 19.0605C9.38248 19.6745 10.6655 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 13.3345 4.32549 14.6175 4.93949 15.7657L5.28896 16.4192L4.63416 19.3658L7.58075 18.711Z" })), mge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43248,7 +43261,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), fge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), hge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43256,7 +43269,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z" })), pge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z" })), gge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43264,7 +43277,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z" })), xB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z" })), CB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43272,7 +43285,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), SB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), wB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43280,7 +43293,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), mge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), _ge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43288,7 +43301,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 2C15.866 2 19 5.13401 19 9C19 9.11351 18.9973 9.22639 18.992 9.33857C21.3265 10.16 23 12.3846 23 15C23 18.3137 20.3137 21 17 21H7C3.68629 21 1 18.3137 1 15C1 12.3846 2.67346 10.16 5.00804 9.33857C5.0027 9.22639 5 9.11351 5 9C5 5.13401 8.13401 2 12 2ZM12 4C9.23858 4 7 6.23858 7 9C7 9.08147 7.00193 9.16263 7.00578 9.24344L7.07662 10.7309L5.67183 11.2252C4.0844 11.7837 3 13.2889 3 15C3 17.2091 4.79086 19 7 19H17C19.2091 19 21 17.2091 21 15C21 12.79 19.21 11 17 11C15.233 11 13.7337 12.1457 13.2042 13.7347L11.3064 13.1021C12.1005 10.7185 14.35 9 17 9C17 6.23858 14.7614 4 12 4Z" })), CB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 2C15.866 2 19 5.13401 19 9C19 9.11351 18.9973 9.22639 18.992 9.33857C21.3265 10.16 23 12.3846 23 15C23 18.3137 20.3137 21 17 21H7C3.68629 21 1 18.3137 1 15C1 12.3846 2.67346 10.16 5.00804 9.33857C5.0027 9.22639 5 9.11351 5 9C5 5.13401 8.13401 2 12 2ZM12 4C9.23858 4 7 6.23858 7 9C7 9.08147 7.00193 9.16263 7.00578 9.24344L7.07662 10.7309L5.67183 11.2252C4.0844 11.7837 3 13.2889 3 15C3 17.2091 4.79086 19 7 19H17C19.2091 19 21 17.2091 21 15C21 12.79 19.21 11 17 11C15.233 11 13.7337 12.1457 13.2042 13.7347L11.3064 13.1021C12.1005 10.7185 14.35 9 17 9C17 6.23858 14.7614 4 12 4Z" })), TB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43296,7 +43309,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM16.5 7.5L14 14L7.5 16.5L10 10L16.5 7.5ZM12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z" })), hge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM16.5 7.5L14 14L7.5 16.5L10 10L16.5 7.5ZM12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z" })), vge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43304,7 +43317,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), gge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), yge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43312,7 +43325,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 16H20V5H4V16ZM13 18V20H17V22H7V20H11V18H2.9918C2.44405 18 2 17.5511 2 16.9925V4.00748C2 3.45107 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44892 22 4.00748V16.9925C22 17.5489 21.5447 18 21.0082 18H13Z" })), wB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 16H20V5H4V16ZM13 18V20H17V22H7V20H11V18H2.9918C2.44405 18 2 17.5511 2 16.9925V4.00748C2 3.45107 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44892 22 4.00748V16.9925C22 17.5489 21.5447 18 21.0082 18H13Z" })), EB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43320,7 +43333,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), _ge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), bge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43328,7 +43341,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), vge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), xge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43336,7 +43349,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M19 8H21C21.5523 8 22 8.44772 22 9V21C22 21.5523 21.5523 22 21 22H13C12.4477 22 12 21.5523 12 21V20H4C3.44772 20 3 19.5523 3 19V3C3 2.44772 3.44772 2 4 2H18C18.5523 2 19 2.44772 19 3V8ZM17 8V4H5V18H12V9C12 8.44772 12.4477 8 13 8H17ZM14 10V20H20V10H14Z" })), yge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M19 8H21C21.5523 8 22 8.44772 22 9V21C22 21.5523 21.5523 22 21 22H13C12.4477 22 12 21.5523 12 21V20H4C3.44772 20 3 19.5523 3 19V3C3 2.44772 3.44772 2 4 2H18C18.5523 2 19 2.44772 19 3V8ZM17 8V4H5V18H12V9C12 8.44772 12.4477 8 13 8H17ZM14 10V20H20V10H14Z" })), Sge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43344,7 +43357,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13 13V18.585L14.8284 16.7574L16.2426 18.1716L12 22.4142L7.75736 18.1716L9.17157 16.7574L11 18.585V13H13ZM12 2C15.5934 2 18.5544 4.70761 18.9541 8.19395C21.2858 8.83154 23 10.9656 23 13.5C23 16.3688 20.8036 18.7246 18.0006 18.9776L18.0009 16.9644C19.6966 16.7214 21 15.2629 21 13.5C21 11.567 19.433 10 17.5 10C17.2912 10 17.0867 10.0183 16.8887 10.054C16.9616 9.7142 17 9.36158 17 9C17 6.23858 14.7614 4 12 4C9.23858 4 7 6.23858 7 9C7 9.36158 7.03838 9.7142 7.11205 10.0533C6.91331 10.0183 6.70879 10 6.5 10C4.567 10 3 11.567 3 13.5C3 15.2003 4.21241 16.6174 5.81986 16.934L6.00005 16.9646L6.00039 18.9776C3.19696 18.7252 1 16.3692 1 13.5C1 10.9656 2.71424 8.83154 5.04648 8.19411C5.44561 4.70761 8.40661 2 12 2Z" })), TB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M13 13V18.585L14.8284 16.7574L16.2426 18.1716L12 22.4142L7.75736 18.1716L9.17157 16.7574L11 18.585V13H13ZM12 2C15.5934 2 18.5544 4.70761 18.9541 8.19395C21.2858 8.83154 23 10.9656 23 13.5C23 16.3688 20.8036 18.7246 18.0006 18.9776L18.0009 16.9644C19.6966 16.7214 21 15.2629 21 13.5C21 11.567 19.433 10 17.5 10C17.2912 10 17.0867 10.0183 16.8887 10.054C16.9616 9.7142 17 9.36158 17 9C17 6.23858 14.7614 4 12 4C9.23858 4 7 6.23858 7 9C7 9.36158 7.03838 9.7142 7.11205 10.0533C6.91331 10.0183 6.70879 10 6.5 10C4.567 10 3 11.567 3 13.5C3 15.2003 4.21241 16.6174 5.81986 16.934L6.00005 16.9646L6.00039 18.9776C3.19696 18.7252 1 16.3692 1 13.5C1 10.9656 2.71424 8.83154 5.04648 8.19411C5.44561 4.70761 8.40661 2 12 2Z" })), DB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43352,7 +43365,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M1 14.5C1 12.1716 2.22429 10.1291 4.06426 8.9812C4.56469 5.044 7.92686 2 12 2C16.0731 2 19.4353 5.044 19.9357 8.9812C21.7757 10.1291 23 12.1716 23 14.5C23 17.9216 20.3562 20.7257 17 20.9811L7 21C3.64378 20.7257 1 17.9216 1 14.5ZM16.8483 18.9868C19.1817 18.8093 21 16.8561 21 14.5C21 12.927 20.1884 11.4962 18.8771 10.6781L18.0714 10.1754L17.9517 9.23338C17.5735 6.25803 15.0288 4 12 4C8.97116 4 6.42647 6.25803 6.0483 9.23338L5.92856 10.1754L5.12288 10.6781C3.81156 11.4962 3 12.927 3 14.5C3 16.8561 4.81833 18.8093 7.1517 18.9868L7.325 19H16.675L16.8483 18.9868ZM13 12H16L12 17L8 12H11V8H13V12Z" })), bge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M1 14.5C1 12.1716 2.22429 10.1291 4.06426 8.9812C4.56469 5.044 7.92686 2 12 2C16.0731 2 19.4353 5.044 19.9357 8.9812C21.7757 10.1291 23 12.1716 23 14.5C23 17.9216 20.3562 20.7257 17 20.9811L7 21C3.64378 20.7257 1 17.9216 1 14.5ZM16.8483 18.9868C19.1817 18.8093 21 16.8561 21 14.5C21 12.927 20.1884 11.4962 18.8771 10.6781L18.0714 10.1754L17.9517 9.23338C17.5735 6.25803 15.0288 4 12 4C8.97116 4 6.42647 6.25803 6.0483 9.23338L5.92856 10.1754L5.12288 10.6781C3.81156 11.4962 3 12.927 3 14.5C3 16.8561 4.81833 18.8093 7.1517 18.9868L7.325 19H16.675L16.8483 18.9868ZM13 12H16L12 17L8 12H11V8H13V12Z" })), Cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43360,7 +43373,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), EB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), OB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43368,7 +43381,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), DB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), kB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43376,7 +43389,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), xge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), wge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43384,7 +43397,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" })), Sge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" })), Tge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43392,7 +43405,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9 2.00318V2H19.9978C20.5513 2 21 2.45531 21 2.9918V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8L9 2.00318ZM5.82918 8H9V4.83086L5.82918 8ZM11 4V9C11 9.55228 10.5523 10 10 10H5V20H19V4H11Z" })), Cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M9 2.00318V2H19.9978C20.5513 2 21 2.45531 21 2.9918V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8L9 2.00318ZM5.82918 8H9V4.83086L5.82918 8ZM11 4V9C11 9.55228 10.5523 10 10 10H5V20H19V4H11Z" })), Ege = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43400,7 +43413,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H13V17H8V15Z" })), wge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H13V17H8V15Z" })), Dge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43408,7 +43421,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H16V17H8V15Z" })), Tge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H16V17H8V15Z" })), Oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43416,7 +43429,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M15 4H5V20H19V8H15V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H16L20.9997 7L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918ZM13.529 14.4464C11.9951 15.3524 9.98633 15.1464 8.66839 13.8284C7.1063 12.2663 7.1063 9.73367 8.66839 8.17157C10.2305 6.60948 12.7631 6.60948 14.3252 8.17157C15.6432 9.48951 15.8492 11.4983 14.9432 13.0322L17.1537 15.2426L15.7395 16.6569L13.529 14.4464ZM12.911 12.4142C13.6921 11.6332 13.6921 10.3668 12.911 9.58579C12.13 8.80474 10.8637 8.80474 10.0826 9.58579C9.30156 10.3668 9.30156 11.6332 10.0826 12.4142C10.8637 13.1953 12.13 13.1953 12.911 12.4142Z" })), OB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M15 4H5V20H19V8H15V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H16L20.9997 7L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918ZM13.529 14.4464C11.9951 15.3524 9.98633 15.1464 8.66839 13.8284C7.1063 12.2663 7.1063 9.73367 8.66839 8.17157C10.2305 6.60948 12.7631 6.60948 14.3252 8.17157C15.6432 9.48951 15.8492 11.4983 14.9432 13.0322L17.1537 15.2426L15.7395 16.6569L13.529 14.4464ZM12.911 12.4142C13.6921 11.6332 13.6921 10.3668 12.911 9.58579C12.13 8.80474 10.8637 8.80474 10.0826 9.58579C9.30156 10.3668 9.30156 11.6332 10.0826 12.4142C10.8637 13.1953 12.13 13.1953 12.911 12.4142Z" })), AB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43424,7 +43437,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M2 3.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.9918C2.44405 21 2 20.5551 2 20.0066V3.9934ZM8 5V19H16V5H8ZM4 5V7H6V5H4ZM18 5V7H20V5H18ZM4 9V11H6V9H4ZM18 9V11H20V9H18ZM4 13V15H6V13H4ZM18 13V15H20V13H18ZM4 17V19H6V17H4ZM18 17V19H20V17H18Z" })), Ege = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M2 3.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.9918C2.44405 21 2 20.5551 2 20.0066V3.9934ZM8 5V19H16V5H8ZM4 5V7H6V5H4ZM18 5V7H20V5H18ZM4 9V11H6V9H4ZM18 9V11H20V9H18ZM4 13V15H6V13H4ZM18 13V15H20V13H18ZM4 17V19H6V17H4ZM18 17V19H20V17H18Z" })), kge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43432,7 +43445,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), kB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), jB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43440,7 +43453,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 7V19H20V7H4Z" })), AB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 7V19H20V7H4Z" })), MB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43448,7 +43461,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 5V19H20V7H11.5858L9.58579 5H4ZM12.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 5Z" })), jB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 5V19H20V7H11.5858L9.58579 5H4ZM12.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 5Z" })), NB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43456,7 +43469,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 21C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5H20C20.5523 5 21 5.44772 21 6V9H19V7H11.5858L9.58579 5H4V16.998L5.5 11H22.5L20.1894 20.2425C20.0781 20.6877 19.6781 21 19.2192 21H3ZM19.9384 13H7.06155L5.56155 19H18.4384L19.9384 13Z" })), Dge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 21C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5H20C20.5523 5 21 5.44772 21 6V9H19V7H11.5858L9.58579 5H4V16.998L5.5 11H22.5L20.1894 20.2425C20.0781 20.6877 19.6781 21 19.2192 21H3ZM19.9384 13H7.06155L5.56155 19H18.4384L19.9384 13Z" })), Age = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43464,7 +43477,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 5V19H20V7H11.5858L9.58579 5H4ZM8.59114 13.8089C8.52934 13.5486 8.49663 13.277 8.49663 12.9978C8.49663 12.7186 8.52933 12.4471 8.59112 12.1868L7.59998 11.6146L8.59949 9.88335L9.59133 10.456C9.98424 10.0843 10.4633 9.80275 10.9954 9.64438V8.5H12.9944V9.64438C13.5265 9.80274 14.0056 10.0843 14.3985 10.4559L15.3904 9.88325L16.39 11.6145L15.3987 12.1867C15.4605 12.447 15.4932 12.7186 15.4932 12.9978C15.4932 13.277 15.4605 13.5485 15.3987 13.8088L16.39 14.3811L15.3905 16.1123L14.3986 15.5396C14.0057 15.9113 13.5266 16.1928 12.9945 16.3512V17.4956H10.9955V16.3513C10.4634 16.1929 9.98434 15.9114 9.59141 15.5397L8.59954 16.1124L7.59998 14.3812L8.59114 13.8089ZM11.9949 14.4971C12.8229 14.4971 13.4942 13.8258 13.4942 12.9978C13.4942 12.1698 12.8229 11.4985 11.9949 11.4985C11.1669 11.4985 10.4957 12.1698 10.4957 12.9978C10.4957 13.8258 11.1669 14.4971 11.9949 14.4971Z" })), MB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 5V19H20V7H11.5858L9.58579 5H4ZM8.59114 13.8089C8.52934 13.5486 8.49663 13.277 8.49663 12.9978C8.49663 12.7186 8.52933 12.4471 8.59112 12.1868L7.59998 11.6146L8.59949 9.88335L9.59133 10.456C9.98424 10.0843 10.4633 9.80275 10.9954 9.64438V8.5H12.9944V9.64438C13.5265 9.80274 14.0056 10.0843 14.3985 10.4559L15.3904 9.88325L16.39 11.6145L15.3987 12.1867C15.4605 12.447 15.4932 12.7186 15.4932 12.9978C15.4932 13.277 15.4605 13.5485 15.3987 13.8088L16.39 14.3811L15.3905 16.1123L14.3986 15.5396C14.0057 15.9113 13.5266 16.1928 12.9945 16.3512V17.4956H10.9955V16.3513C10.4634 16.1929 9.98434 15.9114 9.59141 15.5397L8.59954 16.1124L7.59998 14.3812L8.59114 13.8089ZM11.9949 14.4971C12.8229 14.4971 13.4942 13.8258 13.4942 12.9978C13.4942 12.1698 12.8229 11.4985 11.9949 11.4985C11.1669 11.4985 10.4957 12.1698 10.4957 12.9978C10.4957 13.8258 11.1669 14.4971 11.9949 14.4971Z" })), PB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43472,7 +43485,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), NB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), FB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43480,7 +43493,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), Oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), jge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43488,7 +43501,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M16.5 3C19.5376 3 22 5.5 22 9C22 16 14.5 20 12 21.5C9.5 20 2 16 2 9C2 5.5 4.5 3 7.5 3C9.35997 3 11 4 12 5C13 4 14.64 3 16.5 3ZM12.9339 18.6038C13.8155 18.0485 14.61 17.4955 15.3549 16.9029C18.3337 14.533 20 11.9435 20 9C20 6.64076 18.463 5 16.5 5C15.4241 5 14.2593 5.56911 13.4142 6.41421L12 7.82843L10.5858 6.41421C9.74068 5.56911 8.5759 5 7.5 5C5.55906 5 4 6.6565 4 9C4 11.9435 5.66627 14.533 8.64514 16.9029C9.39 17.4955 10.1845 18.0485 11.0661 18.6038C11.3646 18.7919 11.6611 18.9729 12 19.1752C12.3389 18.9729 12.6354 18.7919 12.9339 18.6038Z" })), kge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M16.5 3C19.5376 3 22 5.5 22 9C22 16 14.5 20 12 21.5C9.5 20 2 16 2 9C2 5.5 4.5 3 7.5 3C9.35997 3 11 4 12 5C13 4 14.64 3 16.5 3ZM12.9339 18.6038C13.8155 18.0485 14.61 17.4955 15.3549 16.9029C18.3337 14.533 20 11.9435 20 9C20 6.64076 18.463 5 16.5 5C15.4241 5 14.2593 5.56911 13.4142 6.41421L12 7.82843L10.5858 6.41421C9.74068 5.56911 8.5759 5 7.5 5C5.55906 5 4 6.6565 4 9C4 11.9435 5.66627 14.533 8.64514 16.9029C9.39 17.4955 10.1845 18.0485 11.0661 18.6038C11.3646 18.7919 11.6611 18.9729 12 19.1752C12.3389 18.9729 12.6354 18.7919 12.9339 18.6038Z" })), Mge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43496,7 +43509,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), Age = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), Nge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43504,7 +43517,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5 11.1005L7 9.1005L12.5 14.6005L16 11.1005L19 14.1005V5H5V11.1005ZM5 13.9289V19H8.1005L11.0858 16.0147L7 11.9289L5 13.9289ZM10.9289 19H19V16.9289L16 13.9289L10.9289 19ZM4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3ZM15.5 10C14.6716 10 14 9.32843 14 8.5C14 7.67157 14.6716 7 15.5 7C16.3284 7 17 7.67157 17 8.5C17 9.32843 16.3284 10 15.5 10Z" })), PB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5 11.1005L7 9.1005L12.5 14.6005L16 11.1005L19 14.1005V5H5V11.1005ZM5 13.9289V19H8.1005L11.0858 16.0147L7 11.9289L5 13.9289ZM10.9289 19H19V16.9289L16 13.9289L10.9289 19ZM4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3ZM15.5 10C14.6716 10 14 9.32843 14 8.5C14 7.67157 14.6716 7 15.5 7C16.3284 7 17 7.67157 17 8.5C17 9.32843 16.3284 10 15.5 10Z" })), IB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43512,7 +43525,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), jge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), Pge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43520,7 +43533,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), Mge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), Fge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43528,7 +43541,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), Nge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), Ige = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43536,7 +43549,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), FB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), LB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43544,7 +43557,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), Pge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), Lge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43552,7 +43565,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z" })), Fge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z" })), Rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43560,7 +43573,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13.0607 8.11097L14.4749 9.52518C17.2086 12.2589 17.2086 16.691 14.4749 19.4247L14.1214 19.7782C11.3877 22.5119 6.95555 22.5119 4.22188 19.7782C1.48821 17.0446 1.48821 12.6124 4.22188 9.87874L5.6361 11.293C3.68348 13.2456 3.68348 16.4114 5.6361 18.364C7.58872 20.3166 10.7545 20.3166 12.7072 18.364L13.0607 18.0105C15.0133 16.0578 15.0133 12.892 13.0607 10.9394L11.6465 9.52518L13.0607 8.11097ZM19.7782 14.1214L18.364 12.7072C20.3166 10.7545 20.3166 7.58872 18.364 5.6361C16.4114 3.68348 13.2456 3.68348 11.293 5.6361L10.9394 5.98965C8.98678 7.94227 8.98678 11.1081 10.9394 13.0607L12.3536 14.4749L10.9394 15.8891L9.52518 14.4749C6.79151 11.7413 6.79151 7.30911 9.52518 4.57544L9.87874 4.22188C12.6124 1.48821 17.0446 1.48821 19.7782 4.22188C22.5119 6.95555 22.5119 11.3877 19.7782 14.1214Z" })), Ige = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M13.0607 8.11097L14.4749 9.52518C17.2086 12.2589 17.2086 16.691 14.4749 19.4247L14.1214 19.7782C11.3877 22.5119 6.95555 22.5119 4.22188 19.7782C1.48821 17.0446 1.48821 12.6124 4.22188 9.87874L5.6361 11.293C3.68348 13.2456 3.68348 16.4114 5.6361 18.364C7.58872 20.3166 10.7545 20.3166 12.7072 18.364L13.0607 18.0105C15.0133 16.0578 15.0133 12.892 13.0607 10.9394L11.6465 9.52518L13.0607 8.11097ZM19.7782 14.1214L18.364 12.7072C20.3166 10.7545 20.3166 7.58872 18.364 5.6361C16.4114 3.68348 13.2456 3.68348 11.293 5.6361L10.9394 5.98965C8.98678 7.94227 8.98678 11.1081 10.9394 13.0607L12.3536 14.4749L10.9394 15.8891L9.52518 14.4749C6.79151 11.7413 6.79151 7.30911 9.52518 4.57544L9.87874 4.22188C12.6124 1.48821 17.0446 1.48821 19.7782 4.22188C22.5119 6.95555 22.5119 11.3877 19.7782 14.1214Z" })), zge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43568,7 +43581,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M8 4H21V6H8V4ZM4.5 6.5C3.67157 6.5 3 5.82843 3 5C3 4.17157 3.67157 3.5 4.5 3.5C5.32843 3.5 6 4.17157 6 5C6 5.82843 5.32843 6.5 4.5 6.5ZM4.5 13.5C3.67157 13.5 3 12.8284 3 12C3 11.1716 3.67157 10.5 4.5 10.5C5.32843 10.5 6 11.1716 6 12C6 12.8284 5.32843 13.5 4.5 13.5ZM4.5 20.4C3.67157 20.4 3 19.7284 3 18.9C3 18.0716 3.67157 17.4 4.5 17.4C5.32843 17.4 6 18.0716 6 18.9C6 19.7284 5.32843 20.4 4.5 20.4ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z" })), IB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M8 4H21V6H8V4ZM4.5 6.5C3.67157 6.5 3 5.82843 3 5C3 4.17157 3.67157 3.5 4.5 3.5C5.32843 3.5 6 4.17157 6 5C6 5.82843 5.32843 6.5 4.5 6.5ZM4.5 13.5C3.67157 13.5 3 12.8284 3 12C3 11.1716 3.67157 10.5 4.5 10.5C5.32843 10.5 6 11.1716 6 12C6 12.8284 5.32843 13.5 4.5 13.5ZM4.5 20.4C3.67157 20.4 3 19.7284 3 18.9C3 18.0716 3.67157 17.4 4.5 17.4C5.32843 17.4 6 18.0716 6 18.9C6 19.7284 5.32843 20.4 4.5 20.4ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z" })), RB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43576,7 +43589,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 2C17.5222 2 22 5.97778 22 10.8889C22 13.9556 19.5111 16.4444 16.4444 16.4444H14.4778C13.5556 16.4444 12.8111 17.1889 12.8111 18.1111C12.8111 18.5333 12.9778 18.9222 13.2333 19.2111C13.5 19.5111 13.6667 19.9 13.6667 20.3333C13.6667 21.2556 12.9 22 12 22C6.47778 22 2 17.5222 2 12C2 6.47778 6.47778 2 12 2ZM10.8111 18.1111C10.8111 16.0843 12.451 14.4444 14.4778 14.4444H16.4444C18.4065 14.4444 20 12.851 20 10.8889C20 7.1392 16.4677 4 12 4C7.58235 4 4 7.58235 4 12C4 16.19 7.2226 19.6285 11.324 19.9718C10.9948 19.4168 10.8111 18.7761 10.8111 18.1111ZM7.5 12C6.67157 12 6 11.3284 6 10.5C6 9.67157 6.67157 9 7.5 9C8.32843 9 9 9.67157 9 10.5C9 11.3284 8.32843 12 7.5 12ZM16.5 12C15.6716 12 15 11.3284 15 10.5C15 9.67157 15.6716 9 16.5 9C17.3284 9 18 9.67157 18 10.5C18 11.3284 17.3284 12 16.5 12ZM12 9C11.1716 9 10.5 8.32843 10.5 7.5C10.5 6.67157 11.1716 6 12 6C12.8284 6 13.5 6.67157 13.5 7.5C13.5 8.32843 12.8284 9 12 9Z" })), LB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 2C17.5222 2 22 5.97778 22 10.8889C22 13.9556 19.5111 16.4444 16.4444 16.4444H14.4778C13.5556 16.4444 12.8111 17.1889 12.8111 18.1111C12.8111 18.5333 12.9778 18.9222 13.2333 19.2111C13.5 19.5111 13.6667 19.9 13.6667 20.3333C13.6667 21.2556 12.9 22 12 22C6.47778 22 2 17.5222 2 12C2 6.47778 6.47778 2 12 2ZM10.8111 18.1111C10.8111 16.0843 12.451 14.4444 14.4778 14.4444H16.4444C18.4065 14.4444 20 12.851 20 10.8889C20 7.1392 16.4677 4 12 4C7.58235 4 4 7.58235 4 12C4 16.19 7.2226 19.6285 11.324 19.9718C10.9948 19.4168 10.8111 18.7761 10.8111 18.1111ZM7.5 12C6.67157 12 6 11.3284 6 10.5C6 9.67157 6.67157 9 7.5 9C8.32843 9 9 9.67157 9 10.5C9 11.3284 8.32843 12 7.5 12ZM16.5 12C15.6716 12 15 11.3284 15 10.5C15 9.67157 15.6716 9 16.5 9C17.3284 9 18 9.67157 18 10.5C18 11.3284 17.3284 12 16.5 12ZM12 9C11.1716 9 10.5 8.32843 10.5 7.5C10.5 6.67157 11.1716 6 12 6C12.8284 6 13.5 6.67157 13.5 7.5C13.5 8.32843 12.8284 9 12 9Z" })), zB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43584,7 +43597,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })), RB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })), BB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43592,7 +43605,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM10.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" })), zB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM10.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" })), VB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43600,7 +43613,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), BB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), HB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43608,7 +43621,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), Lge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), Bge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43616,7 +43629,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9 7.53861L15 21.5386L18.6594 13H23V11H17.3406L15 16.4614L9 2.46143L5.3406 11H1V13H6.6594L9 7.53861Z" })), VB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M9 7.53861L15 21.5386L18.6594 13H23V11H17.3406L15 16.4614L9 2.46143L5.3406 11H1V13H6.6594L9 7.53861Z" })), UB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43624,7 +43637,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), Rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), Vge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43632,7 +43645,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4.99958 12.9999C4.99958 7.91198 7.90222 3.5636 11.9996 1.81799C16.0969 3.5636 18.9996 7.91198 18.9996 12.9999C18.9996 13.8229 18.9236 14.6264 18.779 15.4027L20.7194 17.2353C20.8845 17.3913 20.9238 17.6389 20.815 17.8383L18.3196 22.4133C18.1873 22.6557 17.8836 22.7451 17.6412 22.6128C17.5993 22.59 17.5608 22.5612 17.5271 22.5274L15.2925 20.2928C15.1049 20.1053 14.8506 19.9999 14.5854 19.9999H9.41379C9.14857 19.9999 8.89422 20.1053 8.70668 20.2928L6.47209 22.5274C6.27683 22.7227 5.96025 22.7227 5.76498 22.5274C5.73122 22.4937 5.70246 22.4552 5.67959 22.4133L3.18412 17.8383C3.07537 17.6389 3.11464 17.3913 3.27975 17.2353L5.22014 15.4027C5.07551 14.6264 4.99958 13.8229 4.99958 12.9999ZM6.47542 19.6957L7.29247 18.8786C7.85508 18.316 8.61814 17.9999 9.41379 17.9999H14.5854C15.381 17.9999 16.1441 18.316 16.7067 18.8786L17.5237 19.6957L18.5056 17.8955L17.4058 16.8568C16.9117 16.3901 16.6884 15.7045 16.8128 15.0364C16.9366 14.3722 16.9996 13.6911 16.9996 12.9999C16.9996 9.13037 15.0045 5.69965 11.9996 4.04033C8.99462 5.69965 6.99958 9.13037 6.99958 12.9999C6.99958 13.6911 7.06255 14.3722 7.18631 15.0364C7.31078 15.7045 7.08746 16.3901 6.59338 16.8568L5.49353 17.8955L6.47542 19.6957ZM11.9996 12.9999C10.895 12.9999 9.99958 12.1045 9.99958 10.9999C9.99958 9.89537 10.895 8.99994 11.9996 8.99994C13.1041 8.99994 13.9996 9.89537 13.9996 10.9999C13.9996 12.1045 13.1041 12.9999 11.9996 12.9999Z" })), zge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4.99958 12.9999C4.99958 7.91198 7.90222 3.5636 11.9996 1.81799C16.0969 3.5636 18.9996 7.91198 18.9996 12.9999C18.9996 13.8229 18.9236 14.6264 18.779 15.4027L20.7194 17.2353C20.8845 17.3913 20.9238 17.6389 20.815 17.8383L18.3196 22.4133C18.1873 22.6557 17.8836 22.7451 17.6412 22.6128C17.5993 22.59 17.5608 22.5612 17.5271 22.5274L15.2925 20.2928C15.1049 20.1053 14.8506 19.9999 14.5854 19.9999H9.41379C9.14857 19.9999 8.89422 20.1053 8.70668 20.2928L6.47209 22.5274C6.27683 22.7227 5.96025 22.7227 5.76498 22.5274C5.73122 22.4937 5.70246 22.4552 5.67959 22.4133L3.18412 17.8383C3.07537 17.6389 3.11464 17.3913 3.27975 17.2353L5.22014 15.4027C5.07551 14.6264 4.99958 13.8229 4.99958 12.9999ZM6.47542 19.6957L7.29247 18.8786C7.85508 18.316 8.61814 17.9999 9.41379 17.9999H14.5854C15.381 17.9999 16.1441 18.316 16.7067 18.8786L17.5237 19.6957L18.5056 17.8955L17.4058 16.8568C16.9117 16.3901 16.6884 15.7045 16.8128 15.0364C16.9366 14.3722 16.9996 13.6911 16.9996 12.9999C16.9996 9.13037 15.0045 5.69965 11.9996 4.04033C8.99462 5.69965 6.99958 9.13037 6.99958 12.9999C6.99958 13.6911 7.06255 14.3722 7.18631 15.0364C7.31078 15.7045 7.08746 16.3901 6.59338 16.8568L5.49353 17.8955L6.47542 19.6957ZM11.9996 12.9999C10.895 12.9999 9.99958 12.1045 9.99958 10.9999C9.99958 9.89537 10.895 8.99994 11.9996 8.99994C13.1041 8.99994 13.9996 9.89537 13.9996 10.9999C13.9996 12.1045 13.1041 12.9999 11.9996 12.9999Z" })), Hge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43640,7 +43653,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 15V8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5V15.5C13 16.8807 14.1193 18 15.5 18C16.8807 18 18 16.8807 18 15.5V8.82929C16.8348 8.41746 16 7.30622 16 6C16 4.34315 17.3431 3 19 3C20.6569 3 22 4.34315 22 6C22 7.30622 21.1652 8.41746 20 8.82929V15.5C20 17.9853 17.9853 20 15.5 20C13.0147 20 11 17.9853 11 15.5V8.5C11 7.11929 9.88071 6 8.5 6C7.11929 6 6 7.11929 6 8.5V15H9L5 20L1 15H4ZM19 7C19.5523 7 20 6.55228 20 6C20 5.44772 19.5523 5 19 5C18.4477 5 18 5.44772 18 6C18 6.55228 18.4477 7 19 7Z" })), HB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 15V8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5V15.5C13 16.8807 14.1193 18 15.5 18C16.8807 18 18 16.8807 18 15.5V8.82929C16.8348 8.41746 16 7.30622 16 6C16 4.34315 17.3431 3 19 3C20.6569 3 22 4.34315 22 6C22 7.30622 21.1652 8.41746 20 8.82929V15.5C20 17.9853 17.9853 20 15.5 20C13.0147 20 11 17.9853 11 15.5V8.5C11 7.11929 9.88071 6 8.5 6C7.11929 6 6 7.11929 6 8.5V15H9L5 20L1 15H4ZM19 7C19.5523 7 20 6.55228 20 6C20 5.44772 19.5523 5 19 5C18.4477 5 18 5.44772 18 6C18 6.55228 18.4477 7 19 7Z" })), WB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43648,7 +43661,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), UB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), GB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43656,7 +43669,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), WB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), KB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43664,7 +43677,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3.33946 17.0002C2.90721 16.2515 2.58277 15.4702 2.36133 14.6741C3.3338 14.1779 3.99972 13.1668 3.99972 12.0002C3.99972 10.8345 3.3348 9.824 2.36353 9.32741C2.81025 7.71651 3.65857 6.21627 4.86474 4.99001C5.7807 5.58416 6.98935 5.65534 7.99972 5.072C9.01009 4.48866 9.55277 3.40635 9.4962 2.31604C11.1613 1.8846 12.8847 1.90004 14.5031 2.31862C14.4475 3.40806 14.9901 4.48912 15.9997 5.072C17.0101 5.65532 18.2187 5.58416 19.1346 4.99007C19.7133 5.57986 20.2277 6.25151 20.66 7.00021C21.0922 7.7489 21.4167 8.53025 21.6381 9.32628C20.6656 9.82247 19.9997 10.8336 19.9997 12.0002C19.9997 13.166 20.6646 14.1764 21.6359 14.673C21.1892 16.2839 20.3409 17.7841 19.1347 19.0104C18.2187 18.4163 17.0101 18.3451 15.9997 18.9284C14.9893 19.5117 14.4467 20.5941 14.5032 21.6844C12.8382 22.1158 11.1148 22.1004 9.49633 21.6818C9.55191 20.5923 9.00929 19.5113 7.99972 18.9284C6.98938 18.3451 5.78079 18.4162 4.86484 19.0103C4.28617 18.4205 3.77172 17.7489 3.33946 17.0002ZM8.99972 17.1964C10.0911 17.8265 10.8749 18.8227 11.2503 19.9659C11.7486 20.0133 12.2502 20.014 12.7486 19.9675C13.1238 18.8237 13.9078 17.8268 14.9997 17.1964C16.0916 16.5659 17.347 16.3855 18.5252 16.6324C18.8146 16.224 19.0648 15.7892 19.2729 15.334C18.4706 14.4373 17.9997 13.2604 17.9997 12.0002C17.9997 10.74 18.4706 9.5632 19.2729 8.6665C19.1688 8.4405 19.0538 8.21822 18.9279 8.00021C18.802 7.78219 18.667 7.57148 18.5233 7.36842C17.3457 7.61476 16.0911 7.43414 14.9997 6.80405C13.9083 6.17395 13.1246 5.17768 12.7491 4.03455C12.2509 3.98714 11.7492 3.98646 11.2509 4.03292C10.8756 5.17671 10.0916 6.17364 8.99972 6.80405C7.9078 7.43447 6.65245 7.61494 5.47428 7.36803C5.18485 7.77641 4.93463 8.21117 4.72656 8.66637C5.52881 9.56311 5.99972 10.74 5.99972 12.0002C5.99972 13.2604 5.52883 14.4372 4.72656 15.3339C4.83067 15.5599 4.94564 15.7822 5.07152 16.0002C5.19739 16.2182 5.3324 16.4289 5.47612 16.632C6.65377 16.3857 7.90838 16.5663 8.99972 17.1964ZM11.9997 15.0002C10.3429 15.0002 8.99972 13.6571 8.99972 12.0002C8.99972 10.3434 10.3429 9.00021 11.9997 9.00021C13.6566 9.00021 14.9997 10.3434 14.9997 12.0002C14.9997 13.6571 13.6566 15.0002 11.9997 15.0002ZM11.9997 13.0002C12.552 13.0002 12.9997 12.5525 12.9997 12.0002C12.9997 11.4479 12.552 11.0002 11.9997 11.0002C11.4474 11.0002 10.9997 11.4479 10.9997 12.0002C10.9997 12.5525 11.4474 13.0002 11.9997 13.0002Z" })), Bge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3.33946 17.0002C2.90721 16.2515 2.58277 15.4702 2.36133 14.6741C3.3338 14.1779 3.99972 13.1668 3.99972 12.0002C3.99972 10.8345 3.3348 9.824 2.36353 9.32741C2.81025 7.71651 3.65857 6.21627 4.86474 4.99001C5.7807 5.58416 6.98935 5.65534 7.99972 5.072C9.01009 4.48866 9.55277 3.40635 9.4962 2.31604C11.1613 1.8846 12.8847 1.90004 14.5031 2.31862C14.4475 3.40806 14.9901 4.48912 15.9997 5.072C17.0101 5.65532 18.2187 5.58416 19.1346 4.99007C19.7133 5.57986 20.2277 6.25151 20.66 7.00021C21.0922 7.7489 21.4167 8.53025 21.6381 9.32628C20.6656 9.82247 19.9997 10.8336 19.9997 12.0002C19.9997 13.166 20.6646 14.1764 21.6359 14.673C21.1892 16.2839 20.3409 17.7841 19.1347 19.0104C18.2187 18.4163 17.0101 18.3451 15.9997 18.9284C14.9893 19.5117 14.4467 20.5941 14.5032 21.6844C12.8382 22.1158 11.1148 22.1004 9.49633 21.6818C9.55191 20.5923 9.00929 19.5113 7.99972 18.9284C6.98938 18.3451 5.78079 18.4162 4.86484 19.0103C4.28617 18.4205 3.77172 17.7489 3.33946 17.0002ZM8.99972 17.1964C10.0911 17.8265 10.8749 18.8227 11.2503 19.9659C11.7486 20.0133 12.2502 20.014 12.7486 19.9675C13.1238 18.8237 13.9078 17.8268 14.9997 17.1964C16.0916 16.5659 17.347 16.3855 18.5252 16.6324C18.8146 16.224 19.0648 15.7892 19.2729 15.334C18.4706 14.4373 17.9997 13.2604 17.9997 12.0002C17.9997 10.74 18.4706 9.5632 19.2729 8.6665C19.1688 8.4405 19.0538 8.21822 18.9279 8.00021C18.802 7.78219 18.667 7.57148 18.5233 7.36842C17.3457 7.61476 16.0911 7.43414 14.9997 6.80405C13.9083 6.17395 13.1246 5.17768 12.7491 4.03455C12.2509 3.98714 11.7492 3.98646 11.2509 4.03292C10.8756 5.17671 10.0916 6.17364 8.99972 6.80405C7.9078 7.43447 6.65245 7.61494 5.47428 7.36803C5.18485 7.77641 4.93463 8.21117 4.72656 8.66637C5.52881 9.56311 5.99972 10.74 5.99972 12.0002C5.99972 13.2604 5.52883 14.4372 4.72656 15.3339C4.83067 15.5599 4.94564 15.7822 5.07152 16.0002C5.19739 16.2182 5.3324 16.4289 5.47612 16.632C6.65377 16.3857 7.90838 16.5663 8.99972 17.1964ZM11.9997 15.0002C10.3429 15.0002 8.99972 13.6571 8.99972 12.0002C8.99972 10.3434 10.3429 9.00021 11.9997 9.00021C13.6566 9.00021 14.9997 10.3434 14.9997 12.0002C14.9997 13.6571 13.6566 15.0002 11.9997 15.0002ZM11.9997 13.0002C12.552 13.0002 12.9997 12.5525 12.9997 12.0002C12.9997 11.4479 12.552 11.0002 11.9997 11.0002C11.4474 11.0002 10.9997 11.4479 10.9997 12.0002C10.9997 12.5525 11.4474 13.0002 11.9997 13.0002Z" })), Uge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43672,7 +43685,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM8 5H4V19H8V5ZM10 5V19H20V5H10Z" })), GB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM8 5H4V19H8V5ZM10 5V19H20V5H10Z" })), qB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43680,7 +43693,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M7 4V20H17V4H7ZM6 2H18C18.5523 2 19 2.44772 19 3V21C19 21.5523 18.5523 22 18 22H6C5.44772 22 5 21.5523 5 21V3C5 2.44772 5.44772 2 6 2ZM12 17C12.5523 17 13 17.4477 13 18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18C11 17.4477 11.4477 17 12 17Z" })), Vge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M7 4V20H17V4H7ZM6 2H18C18.5523 2 19 2.44772 19 3V21C19 21.5523 18.5523 22 18 22H6C5.44772 22 5 21.5523 5 21V3C5 2.44772 5.44772 2 6 2ZM12 17C12.5523 17 13 17.4477 13 18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18C11 17.4477 11.4477 17 12 17Z" })), Wge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43688,7 +43701,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26ZM12.0006 15.968L16.2473 18.3451L15.2988 13.5717L18.8719 10.2674L14.039 9.69434L12.0006 5.27502L9.96214 9.69434L5.12921 10.2674L8.70231 13.5717L7.75383 18.3451L12.0006 15.968Z" })), KB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26ZM12.0006 15.968L16.2473 18.3451L15.2988 13.5717L18.8719 10.2674L14.039 9.69434L12.0006 5.27502L9.96214 9.69434L5.12921 10.2674L8.70231 13.5717L7.75383 18.3451L12.0006 15.968Z" })), JB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43696,7 +43709,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M7 7V17H17V7H7ZM6 5H18C18.5523 5 19 5.44772 19 6V18C19 18.5523 18.5523 19 18 19H6C5.44772 19 5 18.5523 5 18V6C5 5.44772 5.44772 5 6 5Z" })), Hge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M7 7V17H17V7H7ZM6 5H18C18.5523 5 19 5.44772 19 6V18C19 18.5523 18.5523 19 18 19H6C5.44772 19 5 18.5523 5 18V6C5 5.44772 5.44772 5 6 5Z" })), Gge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43704,7 +43717,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), Uge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), Kge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43712,7 +43725,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M6 4V20H18V4H6ZM5 2H19C19.5523 2 20 2.44772 20 3V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V3C4 2.44772 4.44772 2 5 2ZM12 17C12.5523 17 13 17.4477 13 18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18C11 17.4477 11.4477 17 12 17Z" })), Wge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M6 4V20H18V4H6ZM5 2H19C19.5523 2 20 2.44772 20 3V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V3C4 2.44772 4.44772 2 5 2ZM12 17C12.5523 17 13 17.4477 13 18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18C11 17.4477 11.4477 17 12 17Z" })), qge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43720,7 +43733,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M19 4H5V20H19V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H19.9997C20.5519 2 20.9996 2.44772 20.9997 3L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918ZM11.2929 13.1213L15.5355 8.87868L16.9497 10.2929L11.2929 15.9497L7.40381 12.0607L8.81802 10.6464L11.2929 13.1213Z" })), Gge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M19 4H5V20H19V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H19.9997C20.5519 2 20.9996 2.44772 20.9997 3L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918ZM11.2929 13.1213L15.5355 8.87868L16.9497 10.2929L11.2929 15.9497L7.40381 12.0607L8.81802 10.6464L11.2929 13.1213Z" })), Jge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43728,7 +43741,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), Kge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), Yge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43736,7 +43749,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), qB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), YB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43744,7 +43757,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5.32943 3.27158C6.56252 2.8332 7.9923 3.10749 8.97927 4.09446C10.1002 5.21537 10.3019 6.90741 9.5843 8.23385L20.293 18.9437L18.8788 20.3579L8.16982 9.64875C6.84325 10.3669 5.15069 10.1654 4.02952 9.04421C3.04227 8.05696 2.7681 6.62665 3.20701 5.39332L5.44373 7.63C6.02952 8.21578 6.97927 8.21578 7.56505 7.63C8.15084 7.04421 8.15084 6.09446 7.56505 5.50868L5.32943 3.27158ZM15.6968 5.15512L18.8788 3.38736L20.293 4.80157L18.5252 7.98355L16.7574 8.3371L14.6361 10.4584L13.2219 9.04421L15.3432 6.92289L15.6968 5.15512ZM8.97927 13.2868L10.3935 14.7011L5.09018 20.0044C4.69966 20.3949 4.06649 20.3949 3.67597 20.0044C3.31334 19.6417 3.28744 19.0699 3.59826 18.6774L3.67597 18.5902L8.97927 13.2868Z" })), qge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5.32943 3.27158C6.56252 2.8332 7.9923 3.10749 8.97927 4.09446C10.1002 5.21537 10.3019 6.90741 9.5843 8.23385L20.293 18.9437L18.8788 20.3579L8.16982 9.64875C6.84325 10.3669 5.15069 10.1654 4.02952 9.04421C3.04227 8.05696 2.7681 6.62665 3.20701 5.39332L5.44373 7.63C6.02952 8.21578 6.97927 8.21578 7.56505 7.63C8.15084 7.04421 8.15084 6.09446 7.56505 5.50868L5.32943 3.27158ZM15.6968 5.15512L18.8788 3.38736L20.293 4.80157L18.5252 7.98355L16.7574 8.3371L14.6361 10.4584L13.2219 9.04421L15.3432 6.92289L15.6968 5.15512ZM8.97927 13.2868L10.3935 14.7011L5.09018 20.0044C4.69966 20.3949 4.06649 20.3949 3.67597 20.0044C3.31334 19.6417 3.28744 19.0699 3.59826 18.6774L3.67597 18.5902L8.97927 13.2868Z" })), Xge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43752,7 +43765,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), JB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), XB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43760,7 +43773,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M20 22H18V20C18 18.3431 16.6569 17 15 17H9C7.34315 17 6 18.3431 6 20V22H4V20C4 17.2386 6.23858 15 9 15H15C17.7614 15 20 17.2386 20 20V22ZM12 13C8.68629 13 6 10.3137 6 7C6 3.68629 8.68629 1 12 1C15.3137 1 18 3.68629 18 7C18 10.3137 15.3137 13 12 13ZM12 11C14.2091 11 16 9.20914 16 7C16 4.79086 14.2091 3 12 3C9.79086 3 8 4.79086 8 7C8 9.20914 9.79086 11 12 11Z" })), YB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M20 22H18V20C18 18.3431 16.6569 17 15 17H9C7.34315 17 6 18.3431 6 20V22H4V20C4 17.2386 6.23858 15 9 15H15C17.7614 15 20 17.2386 20 20V22ZM12 13C8.68629 13 6 10.3137 6 7C6 3.68629 8.68629 1 12 1C15.3137 1 18 3.68629 18 7C18 10.3137 15.3137 13 12 13ZM12 11C14.2091 11 16 9.20914 16 7C16 4.79086 14.2091 3 12 3C9.79086 3 8 4.79086 8 7C8 9.20914 9.79086 11 12 11Z" })), ZB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43768,7 +43781,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), XB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), QB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43776,7 +43789,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), Jge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), Zge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43784,7 +43797,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3.00098 5.47902L10.3778 4.4625V11.5902H3.00098V5.47902ZM3.00098 18.521L10.3778 19.5375V12.4982H3.00098V18.521ZM11.1894 19.646L21.001 21V12.4982H11.1894V19.646ZM11.1894 4.35402V11.5902H21.001V3L11.1894 4.35402Z" })), Yge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3.00098 5.47902L10.3778 4.4625V11.5902H3.00098V5.47902ZM3.00098 18.521L10.3778 19.5375V12.4982H3.00098V18.521ZM11.1894 19.646L21.001 21V12.4982H11.1894V19.646ZM11.1894 4.35402V11.5902H21.001V3L11.1894 4.35402Z" })), Qge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43792,7 +43805,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), ZB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), $B = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43800,7 +43813,7 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4.50772 2.87597C4.57028 2.37554 4.99568 2 5.5 2H18.5C19.0043 2 19.4297 2.37554 19.4923 2.87597L20.9923 14.876C20.9974 14.9171 21 14.9585 21 15V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V15C3 14.9585 3.00258 14.9171 3.00772 14.876L4.50772 2.87597ZM6.38278 4L5.13278 14H18.8672L17.6172 4H6.38278ZM19 16H5V20H19V16ZM15 17H17V19H15V17ZM13 17H11V19H13V17Z" })), Xge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4.50772 2.87597C4.57028 2.37554 4.99568 2 5.5 2H18.5C19.0043 2 19.4297 2.37554 19.4923 2.87597L20.9923 14.876C20.9974 14.9171 21 14.9585 21 15V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V15C3 14.9585 3.00258 14.9171 3.00772 14.876L4.50772 2.87597ZM6.38278 4L5.13278 14H18.8672L17.6172 4H6.38278ZM19 16H5V20H19V16ZM15 17H17V19H15V17ZM13 17H11V19H13V17Z" })), $ge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43810,8 +43823,8 @@ var rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
className: "remixicon " + (n || "")
}, F.createElement("path", { d: "M8.00008 6V9H5.00008V6H8.00008ZM3.00008 4V11H10.0001V4H3.00008ZM13.0001 4H21.0001V6H13.0001V4ZM13.0001 11H21.0001V13H13.0001V11ZM13.0001 18H21.0001V20H13.0001V18ZM10.7072 16.2071L9.29297 14.7929L6.00008 18.0858L4.20718 16.2929L2.79297 17.7071L6.00008 20.9142L10.7072 16.2071Z" }));
// src/react/boardui/components/base/input/label.tsx
-function QB({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsxs)(PL, {
+function eV({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsxs)(IL, {
"data-label": "true",
...a,
className: q("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
@@ -43822,7 +43835,7 @@ function QB({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, I.jsx)(jge, {
+ n && /* @__PURE__ */ (0, I.jsx)(Pge, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -43830,23 +43843,23 @@ function QB({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
});
}
// src/react/boardui/components/base/input/hint-text.tsx
-function $B({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, I.jsx)(Gpe, {
+function tV({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, I.jsx)(Jpe, {
slot: e ? "errorMessage" : "description",
...n,
className: q("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
});
}
// src/react/boardui/components/base/input/input.tsx
-var eV = (0, F.createContext)({});
-function tV({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(eV.Provider, {
+var nV = (0, F.createContext)({});
+function rV({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsx)(nV.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, I.jsx)(Ghe, {
+ children: /* @__PURE__ */ (0, I.jsx)(Jhe, {
...a,
"data-input-size": e,
className: q("group flex h-max w-full flex-col items-start gap-1", r),
@@ -43854,8 +43867,8 @@ function tV({ size: e = "medium", fieldClassName: t, inputClassName: n, classNam
})
});
}
-tV.displayName = "TextField";
-var nV = jI({
+rV.displayName = "TextField";
+var iV = NI({
field: "relative flex w-full items-center rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent transition-[background-color,box-shadow,color] duration-[var(--input-transition-ms)] ease",
fieldSize: {
medium: "p-2",
@@ -43870,44 +43883,44 @@ var nV = jI({
input: "min-w-0 flex-1 bg-transparent border-0 outline-none p-0 m-0 font-sans text-body-regular text-text-primary pl-1 placeholder:text-text-tertiary focus:placeholder:text-text-primary disabled:text-input-disabled-text disabled:placeholder:text-input-disabled-text disabled:cursor-not-allowed aria-invalid:placeholder:text-text-error-placeholder",
icon: "size-5 shrink-0"
});
-function rV({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, F.useContext)(eV), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, I.jsx)(KL, {
+function aV({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, F.useContext)(nV), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, I.jsx)(JL, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => q(nV.field, d ? nV.fieldWithAddonSize[u] : nV.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 }) => q(iV.field, d ? iV.fieldWithAddonSize[u] : iV.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
children: /* @__PURE__ */ (0, I.jsxs)("div", {
- className: nV.content,
+ className: iV.content,
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
- className: nV.leftSection,
+ className: iV.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, I.jsx)(t, {
- className: nV.icon,
+ className: iV.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, I.jsx)(Zpe, {
+ }) : null, /* @__PURE__ */ (0, I.jsx)(eme, {
ref: o,
...c,
- className: q(nV.input, l.inputClassName, a)
+ className: q(iV.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, I.jsx)(n, {
- className: nV.icon,
+ className: iV.icon,
"aria-hidden": !0
}) : null]
})
});
}
-rV.displayName = "InputBase";
-function iV({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
- return /* @__PURE__ */ (0, I.jsx)(tV, {
+aV.displayName = "InputBase";
+function oV({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
+ return /* @__PURE__ */ (0, I.jsx)(rV, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- e && /* @__PURE__ */ (0, I.jsx)(QB, {
+ e && /* @__PURE__ */ (0, I.jsx)(eV, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, I.jsx)(rV, {
+ /* @__PURE__ */ (0, I.jsx)(aV, {
ref: c,
groupRef: l,
placeholder: r,
@@ -43916,25 +43929,25 @@ function iV({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, I.jsx)($B, {
+ t && /* @__PURE__ */ (0, I.jsx)(tV, {
isInvalid: d,
children: t
})
] })
});
}
-iV.displayName = "Input";
+oV.displayName = "Input";
// src/react/components/modal-frame.tsx
-var Zge = {
+var e_e = {
"avatar-picker": "max-w-avatar-picker",
"cover-crop": "max-w-cover-crop",
form: "max-w-form-modal",
collections: "max-w-4xl",
tutorial: "max-w-2xl"
};
-function aV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfaceClassName: a = "" }) {
- let { isFocusVisible: o } = SC();
- return /* @__PURE__ */ (0, I.jsx)(Ez, {
+function sV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfaceClassName: a = "" }) {
+ let { isFocusVisible: o } = EC();
+ return /* @__PURE__ */ (0, I.jsx)(Oz, {
isOpen: e,
onOpenChange: t,
isDismissable: !0,
@@ -43942,11 +43955,11 @@ function aV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfa
"data-modal-kind": n,
"data-motion-instant": o || void 0,
className: "fixed inset-0 z-dialog flex items-center justify-center bg-scrim p-4",
- children: /* @__PURE__ */ (0, I.jsx)(Nme, {
+ children: /* @__PURE__ */ (0, I.jsx)(Ime, {
"data-modal-surface": "",
"data-modal-width": n,
- className: q("flex max-h-full w-full flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown", Zge[n], a),
- children: /* @__PURE__ */ (0, I.jsx)(Sz, {
+ className: q("flex max-h-full w-full flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown", e_e[n], a),
+ children: /* @__PURE__ */ (0, I.jsx)(wz, {
"aria-label": r,
className: "flex min-h-0 flex-col overflow-y-auto overscroll-contain outline-none",
children: i
@@ -43954,7 +43967,7 @@ function aV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfa
})
});
}
-function oV({ children: e }) {
+function cV({ children: e }) {
return /* @__PURE__ */ (0, I.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",
@@ -43962,7 +43975,7 @@ function oV({ children: e }) {
});
}
// src/react/components/note.tsx
-function sV({ tone: e, title: t, action: n, extra: r, children: i, actionLayout: a = "inline", className: o }) {
+function lV({ tone: e, title: t, action: n, extra: r, children: i, actionLayout: a = "inline", className: o }) {
let s = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-note-layout": "",
className: q("flex gap-3", a === "inline" ? "flex-wrap items-center justify-between" : "flex-col items-start"),
@@ -44010,11 +44023,11 @@ function sV({ tone: e, title: t, action: n, extra: r, children: i, actionLayout:
}
}
// src/react/components/empty-state.tsx
-var Qge = {
+var t_e = {
standard: "min-h-80 px-6 py-12",
compact: "min-h-60 px-4 py-6"
};
-function $ge({ target: e, children: t }) {
+function n_e({ target: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "secondary",
@@ -44022,11 +44035,11 @@ function $ge({ target: e, children: t }) {
children: t
});
}
-function cV({ icon: e, title: t, actions: n, children: r, size: i = "standard" }) {
+function uV({ icon: e, title: t, actions: n, children: r, size: i = "standard" }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-empty-state": "",
"data-empty-size": i,
- className: `col-span-full flex w-full 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 ${Qge[i]}`,
+ className: `col-span-full flex w-full 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 ${t_e[i]}`,
children: [
/* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
@@ -44052,9 +44065,9 @@ function cV({ icon: e, title: t, actions: n, children: r, size: i = "standard" }
});
}
// src/react/components/sprite-glyph.tsx
-var lV = /* @__PURE__ */ new Map();
-function uV(e) {
- let t = lV.get(e);
+var dV = /* @__PURE__ */ new Map();
+function fV(e) {
+ let t = dV.get(e);
if (t) return t;
let { wide: n, viewBox: r } = Cn(e), i = n ? ({ className: t }) => /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": !0,
@@ -44070,10 +44083,10 @@ function uV(e) {
className: `shrink-0 stroke-current stroke-2 ${t ?? "size-4"}`,
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
- return i.displayName = `SpriteGlyph(${e})`, lV.set(e, i), i;
+ return i.displayName = `SpriteGlyph(${e})`, dV.set(e, i), i;
}
// src/react/components/settings-dialog-close.tsx
-function dV({ label: e, id: t, onPress: n }) {
+function pV({ label: e, id: t, onPress: n }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
id: t,
@@ -44088,60 +44101,60 @@ function dV({ label: e, id: t, onPress: n }) {
});
}
// src/react/settings/busy-props.ts
-function fV(e) {
+function mV(e) {
return e ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
}
// src/react/library-shortcuts/library-shortcuts.ts
-var pV = ["library-shortcuts"], mV = "/api/library-shortcuts";
-function hV(e = !0) {
+var hV = ["library-shortcuts"], gV = "/api/library-shortcuts";
+function _V(e = !0) {
return Ft({
- queryKey: pV,
- queryFn: ({ signal: e }) => B(mV, e),
+ queryKey: hV,
+ queryFn: ({ signal: e }) => B(gV, e),
enabled: e,
refetchOnMount: e ? "always" : !1
});
}
-function gV() {
+function vV() {
return It({
- mutationKey: pV,
- mutationFn: (e) => V(mV, e),
+ mutationKey: hV,
+ mutationFn: (e) => V(gV, e),
onSuccess: (e, t) => {
- H.setQueryData(pV, e), t.action === "favorite" && t.scope === "online" && (H.invalidateQueries({ queryKey: ["follow", "tags"] }), H.invalidateQueries({ queryKey: ["tag-management"] }));
+ H.setQueryData(hV, e), t.action === "favorite" && t.scope === "online" && (H.invalidateQueries({ queryKey: ["follow", "tags"] }), H.invalidateQueries({ queryKey: ["tag-management"] }));
}
});
}
-function _V(e, t) {
+function yV(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 e_e(e) {
+function r_e(e) {
return e.scope === "online" ? `/follow?${new URLSearchParams({ tag: e.name })}` : Pn(e.kind, e.name, e.entity_id);
}
// src/react/library-shortcuts/shortcut-controls.tsx
-var vV = uV("star"), t_e = uV("bookmark-plus"), yV = uV("chevron-right"), bV = {
+var bV = fV("star"), i_e = fV("bookmark-plus"), xV = fV("chevron-right"), SV = {
performer: "艺人",
creator: "创作者",
studio: "片商与厂牌",
series: "系列",
agency: "事务所",
tag: "标签"
-}, xV = {
- all: uV("star"),
- performer: uV("user-round"),
- creator: uV("user-round"),
- studio: uV("clapperboard"),
- series: uV("film"),
- agency: uV("briefcase"),
- tag: uV("tags"),
- filters: uV("list-filter")
-}, SV = [
+}, CV = {
+ all: fV("star"),
+ performer: fV("user-round"),
+ creator: fV("user-round"),
+ studio: fV("clapperboard"),
+ series: fV("film"),
+ agency: fV("briefcase"),
+ tag: fV("tags"),
+ filters: fV("list-filter")
+}, wV = [
["all", "全部"],
- ...Object.entries(bV),
+ ...Object.entries(SV),
["filters", "保存的筛选"]
];
-function CV({ label: e, children: t, ...n }) {
+function TV({ label: e, children: t, ...n }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
...n,
@@ -44151,20 +44164,20 @@ function CV({ label: e, children: t, ...n }) {
children: t
});
}
-function wV({ item: e }) {
- return /* @__PURE__ */ (0, I.jsx)(n_e, { item: e }, `${e.scope || "local"}:${e.kind}:${e.tag_id || e.entity_id}:${e.name}`);
+function EV({ item: e }) {
+ return /* @__PURE__ */ (0, I.jsx)(a_e, { item: e }, `${e.scope || "local"}:${e.kind}:${e.tag_id || e.entity_id}:${e.name}`);
}
-function n_e({ item: e }) {
- tL();
- let t = hV(!1), n = (0, F.useRef)(t.data), r = gV(), i = t.data && t.data !== n.current ? _V(t.data.favorites || [], e) : e.favorite ?? (t.data ? _V(t.data.favorites || [], e) : !1);
+function a_e({ item: e }) {
+ rL();
+ let t = _V(!1), n = (0, F.useRef)(t.data), r = vV(), i = t.data && t.data !== n.current ? yV(t.data.favorites || [], e) : e.favorite ?? (t.data ? yV(t.data.favorites || [], e) : !1);
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex min-w-0 flex-col gap-1",
children: [
- /* @__PURE__ */ (0, I.jsx)(CV, {
+ /* @__PURE__ */ (0, I.jsx)(TV, {
"data-favorite": "",
"aria-pressed": !!i,
label: `${i ? "取消收藏" : "收藏"}${nn(e.kind, e.name, e.entity_id)}`,
- ...fV(r.isPending),
+ ...mV(r.isPending),
onClick: () => {
r.isPending || r.mutate({
action: "favorite",
@@ -44175,9 +44188,9 @@ function n_e({ item: e }) {
children: r.isPending ? /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: Bs("") }
- }) : /* @__PURE__ */ (0, I.jsx)(vV, {})
+ }) : /* @__PURE__ */ (0, I.jsx)(bV, {})
}),
- r.isError ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ r.isError ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "error",
children: lr(r.error)
}) : null,
@@ -44191,38 +44204,38 @@ function n_e({ item: e }) {
]
});
}
-function TV({ currentHref: e, kind: t }) {
+function DV({ currentHref: e, kind: t }) {
let [n, r] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-shortcuts-entry": "",
- children: /* @__PURE__ */ (0, I.jsx)(cL, {
+ children: /* @__PURE__ */ (0, I.jsx)(uL, {
"data-shortcuts-trigger": "",
label: "我的收藏",
- icon: vV,
+ icon: bV,
"aria-haspopup": "dialog",
"aria-expanded": n,
onPress: () => r(!0)
})
- }), /* @__PURE__ */ (0, I.jsx)(aV, {
+ }), /* @__PURE__ */ (0, I.jsx)(sV, {
isOpen: n,
onOpenChange: r,
width: "collections",
label: "我的收藏",
- children: n ? /* @__PURE__ */ (0, I.jsx)(r_e, {
+ children: n ? /* @__PURE__ */ (0, I.jsx)(o_e, {
currentHref: e,
kind: t,
close: () => r(!1)
}) : null
})] });
}
-function r_e({ currentHref: e, kind: t, close: n }) {
- tL();
- let r = hV(), i = gV(), [a, o] = (0, F.useState)(""), [s, c] = (0, F.useState)(t || "all"), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(""), p = (0, F.useId)(), [m, h] = (0, F.useState)(() => matchMedia("(max-width: 760px)").matches);
+function o_e({ currentHref: e, kind: t, close: n }) {
+ rL();
+ let r = _V(), i = vV(), [a, o] = (0, F.useState)(""), [s, c] = (0, F.useState)(t || "all"), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(""), p = (0, F.useId)(), [m, h] = (0, F.useState)(() => matchMedia("(max-width: 760px)").matches);
(0, F.useEffect)(() => {
let e = matchMedia("(max-width: 760px)"), t = () => h(e.matches);
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
}, []);
- let g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(s), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = mL(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });
+ let g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(s), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = gL(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });
(0, F.useLayoutEffect)(() => {
b.current && (x.current = Ro(b.current) || null);
}, []), (0, F.useLayoutEffect)(() => {
@@ -44235,7 +44248,7 @@ function r_e({ currentHref: e, kind: t, close: n }) {
}, [s]), (0, F.useLayoutEffect)(() => {
x.current?.();
});
- let C = SV.find(([e]) => e === s)?.[1] || "全部", w = (e) => {
+ let C = wV.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;
@@ -44258,7 +44271,7 @@ function r_e({ currentHref: e, kind: t, close: n }) {
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
className: "text-title-2-semibold text-text-primary",
children: C
- }), /* @__PURE__ */ (0, I.jsx)(dV, {
+ }), /* @__PURE__ */ (0, I.jsx)(pV, {
label: "关闭我的收藏",
onPress: n
})]
@@ -44288,8 +44301,8 @@ function r_e({ currentHref: e, kind: t, close: n }) {
role: "presentation",
children: "我的收藏"
}),
- SV.map(([e, t]) => {
- let n = xV[e] || vV, r = e === "filters" ? E?.filters.length || 0 : (E?.favorites || []).filter((t) => e === "all" || t.kind === e).length;
+ wV.map(([e, t]) => {
+ let n = CV[e] || bV, r = e === "filters" ? E?.filters.length || 0 : (E?.favorites || []).filter((t) => e === "all" || t.kind === e).length;
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
role: "tab",
@@ -44321,17 +44334,17 @@ function r_e({ currentHref: e, kind: t, close: n }) {
href: "/flagged",
onClick: n,
children: [
- /* @__PURE__ */ (0, I.jsx)(vV, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, I.jsx)(bV, { "aria-hidden": !0 }),
"已标记",
- /* @__PURE__ */ (0, I.jsx)(yV, { "aria-hidden": !0 })
+ /* @__PURE__ */ (0, I.jsx)(xV, { "aria-hidden": !0 })
]
}), /* @__PURE__ */ (0, I.jsxs)("a", {
href: "/watch-later",
onClick: n,
children: [
- /* @__PURE__ */ (0, I.jsx)(t_e, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, I.jsx)(i_e, { "aria-hidden": !0 }),
"稍后看",
- /* @__PURE__ */ (0, I.jsx)(yV, { "aria-hidden": !0 })
+ /* @__PURE__ */ (0, I.jsx)(xV, { "aria-hidden": !0 })
]
})]
})]
@@ -44350,7 +44363,7 @@ function r_e({ currentHref: e, kind: t, close: n }) {
"data-skeleton": "",
className: "h-12 animate-pulse rounded-lg bg-background-secondary-default"
}) : null,
- r.isError ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ r.isError ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -44359,16 +44372,16 @@ function r_e({ currentHref: e, kind: t, close: n }) {
}),
children: lr(r.error)
}) : null,
- i.isError ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ i.isError ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "error",
children: lr(i.error)
}) : null,
E ? s === "filters" ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- E.filters.length ? null : /* @__PURE__ */ (0, I.jsx)(cV, {
+ E.filters.length ? null : /* @__PURE__ */ (0, I.jsx)(uV, {
size: "compact",
- icon: uV("list-filter"),
+ icon: fV("list-filter"),
title: "还没有保存的筛选",
- actions: /* @__PURE__ */ (0, I.jsx)(gL, {
+ actions: /* @__PURE__ */ (0, I.jsx)(vL, {
size: "small",
href: "/",
onClick: n,
@@ -44387,7 +44400,7 @@ function r_e({ currentHref: e, kind: t, close: n }) {
variant: "secondary",
size: "small",
"aria-label": `删除筛选${e.name}`,
- ...fV(i.isPending),
+ ...mV(i.isPending),
onClick: () => {
i.isPending || i.mutate({
action: "delete_filter",
@@ -44402,7 +44415,7 @@ function r_e({ currentHref: e, kind: t, close: n }) {
className: "flex flex-col gap-3",
"aria-label": "保存当前筛选",
children: [
- /* @__PURE__ */ (0, I.jsx)(iV, {
+ /* @__PURE__ */ (0, I.jsx)(oV, {
label: "筛选名称",
value: a,
onChange: o,
@@ -44411,7 +44424,7 @@ function r_e({ currentHref: e, kind: t, close: n }) {
/* @__PURE__ */ (0, I.jsx)(J, {
type: "submit",
disabled: !a.trim(),
- ...fV(i.isPending),
+ ...mV(i.isPending),
children: "保存当前筛选"
}),
d ? /* @__PURE__ */ (0, I.jsx)("span", {
@@ -44422,16 +44435,16 @@ function r_e({ currentHref: e, kind: t, close: n }) {
]
}) : null
] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(iV, {
+ /* @__PURE__ */ (0, I.jsx)(oV, {
"aria-label": "搜索收藏",
placeholder: "搜索收藏",
- leadingIcon: uV("search"),
+ leadingIcon: fV("search"),
value: l,
onChange: u
}),
- O.length ? null : /* @__PURE__ */ (0, I.jsx)(cV, {
+ O.length ? null : /* @__PURE__ */ (0, I.jsx)(uV, {
size: "compact",
- icon: vV,
+ icon: bV,
title: l ? "没有匹配的收藏" : E.favorites.length ? "还没有此类收藏" : "还没有收藏",
actions: l ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
@@ -44441,7 +44454,7 @@ function r_e({ currentHref: e, kind: t, close: n }) {
size: "small",
onClick: () => c("all"),
children: "查看全部收藏"
- }) : /* @__PURE__ */ (0, I.jsx)(gL, {
+ }) : /* @__PURE__ */ (0, I.jsx)(vL, {
size: "small",
href: "/",
onClick: n,
@@ -44455,25 +44468,25 @@ function r_e({ currentHref: e, kind: t, close: n }) {
"data-shortcuts-row": "",
className: "flex min-w-0 items-center justify-between gap-3",
children: [/* @__PURE__ */ (0, I.jsxs)("a", {
- href: e_e(e),
+ href: r_e(e),
"aria-label": nn(e.kind, e.name, e.entity_id),
onClick: n,
className: "flex min-w-0 flex-1 items-center gap-3 text-body-regular text-text-primary",
- children: [/* @__PURE__ */ (0, I.jsx)(i_e, { item: e }, e.image_url), /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(s_e, { item: e }, e.image_url), /* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "truncate",
children: nn(e.kind, e.name, e.entity_id)
}), /* @__PURE__ */ (0, I.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
- children: e.scope === "online" ? "在线标签" : bV[e.kind]
+ children: e.scope === "online" ? "在线标签" : SV[e.kind]
})]
})]
}), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
"aria-label": `取消收藏${nn(e.kind, e.name, e.entity_id)}`,
- ...fV(i.isPending),
+ ...mV(i.isPending),
onClick: () => {
i.isPending || i.mutate({
action: "favorite",
@@ -44491,8 +44504,8 @@ function r_e({ currentHref: e, kind: t, close: n }) {
]
});
}
-function i_e({ item: e }) {
- let t = xV[e.kind] || vV;
+function s_e({ item: e }) {
+ let t = CV[e.kind] || bV;
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-shortcuts-avatar": "",
title: e.image_label || e.name,
@@ -44510,11 +44523,11 @@ function i_e({ item: e }) {
});
}
// src/react/components/board-navigation-link.tsx
-function a_e(e) {
+function c_e(e) {
return /* @__PURE__ */ (0, I.jsx)("a", { ...e });
}
// src/react/boardui/components/foundations/icons/chevrons.tsx
-function o_e(e) {
+function l_e(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -44528,7 +44541,7 @@ function o_e(e) {
})
});
}
-function s_e(e) {
+function u_e(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 12 12",
fill: "none",
@@ -44542,7 +44555,7 @@ function s_e(e) {
})
});
}
-function EV(e) {
+function OV(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
@@ -44555,7 +44568,7 @@ function EV(e) {
});
}
// src/react/boardui/components/base/breadcrumb/breadcrumb.tsx
-function c_e({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r }) {
+function d_e({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r }) {
let i = F.Children.toArray(e).filter(F.isValidElement);
return /* @__PURE__ */ (0, I.jsx)("nav", {
ref: r,
@@ -44563,14 +44576,14 @@ function c_e({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r
className: q("flex w-full items-center overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", n),
children: /* @__PURE__ */ (0, I.jsx)("ol", {
className: "flex items-center gap-2.5 px-1",
- children: i.map((e, t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, I.jsx)(s_e, {
+ children: i.map((e, t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, I.jsx)(u_e, {
className: "size-3 shrink-0 text-text-tertiary",
"aria-hidden": !0
}), e] }, e.key ?? t))
})
});
}
-function DV({ children: e, icon: t, href: n, onClick: r, current: i = !1, className: a }) {
+function kV({ children: e, icon: t, href: n, onClick: r, current: i = !1, className: a }) {
let o = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [t && /* @__PURE__ */ (0, I.jsx)(t, {
className: "size-4 shrink-0",
"aria-hidden": !0
@@ -44583,7 +44596,7 @@ function DV({ children: e, icon: t, href: n, onClick: r, current: i = !1, classN
let s = q("-mx-1 flex items-center gap-1.5 rounded-md px-1 py-0.5 text-caption-1-medium whitespace-nowrap text-text-tertiary", "transition-colors duration-150 ease outline-none", "hover:bg-background-primary-hover hover:text-text-secondary", "focus-visible:ring-2 focus-visible:ring-border-focus-ring", a);
return /* @__PURE__ */ (0, I.jsx)("li", {
className: "flex items-center",
- children: n ? /* @__PURE__ */ (0, I.jsx)(a_e, {
+ children: n ? /* @__PURE__ */ (0, I.jsx)(c_e, {
href: n,
className: s,
children: o
@@ -44596,14 +44609,14 @@ function DV({ children: e, icon: t, href: n, onClick: r, current: i = !1, classN
});
}
// src/react/boardui/components/foundations/direction/direction.tsx
-function OV() {
- return jw().direction;
+function AV() {
+ return Fw().direction;
}
// src/react/boardui/components/base/dropdown/menu-styles.ts
-var kV = "max-w-[calc(100vw-32px)] overflow-y-auto rounded-2xl border border-border-button-default bg-background-primary-default p-2.5 shadow-dropdown transition duration-150 ease-out data-[entering]:opacity-0 data-[entering]:scale-95 data-[entering]:blur-[2px] data-[exiting]:opacity-0 data-[exiting]:scale-95 data-[exiting]:blur-[2px] data-[placement=bottom]:origin-top-left data-[placement=top]:origin-bottom-left data-[placement=left]:origin-right data-[placement=right]:origin-left", l_e = "w-[266px]", u_e = "flex w-full flex-col gap-1 outline-none", AV = "flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left text-text-primary outline-none transition-colors", jV = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
+var jV = "max-w-[calc(100vw-32px)] overflow-y-auto rounded-2xl border border-border-button-default bg-background-primary-default p-2.5 shadow-dropdown transition duration-150 ease-out data-[entering]:opacity-0 data-[entering]:scale-95 data-[entering]:blur-[2px] data-[exiting]:opacity-0 data-[exiting]:scale-95 data-[exiting]:blur-[2px] data-[placement=bottom]:origin-top-left data-[placement=top]:origin-bottom-left data-[placement=left]:origin-right data-[placement=right]:origin-left", f_e = "w-[266px]", p_e = "flex w-full flex-col gap-1 outline-none", MV = "flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left text-text-primary outline-none transition-colors", NV = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
// src/react/boardui/components/base/tree-view/tree-view.tsx
-function d_e({ size: e = "md", showGuides: t = !0, selectionMode: n = "single", renderEmptyState: r = () => "No items.", className: i, onKeyDownCapture: a, ref: o, ...s }) {
- let c = OV(), l = (0, F.useContext)(jL), u = l === kL && !s.dragAndDropHooks ? NV : l;
+function m_e({ size: e = "md", showGuides: t = !0, selectionMode: n = "single", renderEmptyState: r = () => "No items.", className: i, onKeyDownCapture: a, ref: o, ...s }) {
+ let c = AV(), l = (0, F.useContext)(NL), u = l === jL && !s.dragAndDropHooks ? FV : l;
return /* @__PURE__ */ (0, I.jsx)("div", {
className: "contents",
onKeyDownCapture: (e) => {
@@ -44620,23 +44633,23 @@ function d_e({ size: e = "md", showGuides: t = !0, selectionMode: n = "single",
}
}
},
- children: /* @__PURE__ */ (0, I.jsx)(jL.Provider, {
+ children: /* @__PURE__ */ (0, I.jsx)(NL.Provider, {
value: u,
- children: /* @__PURE__ */ (0, I.jsx)(Jhe, {
+ children: /* @__PURE__ */ (0, I.jsx)(Zhe, {
...s,
ref: o,
selectionMode: n,
"data-size": e,
"data-show-guides": t,
renderEmptyState: r,
- className: (e) => q("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 === NV ? "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) => q("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 === FV ? "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 MV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassName: i, trailingContent: a, children: o, className: s, style: c, ref: l, ...u }) {
- let d = OV();
- return /* @__PURE__ */ (0, I.jsxs)(Zhe, {
+function PV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassName: i, trailingContent: a, children: o, className: s, style: c, ref: l, ...u }) {
+ let d = AV();
+ return /* @__PURE__ */ (0, I.jsxs)(ege, {
...u,
ref: l,
textValue: t,
@@ -44645,10 +44658,10 @@ function MV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
...typeof c == "function" ? c(e) : c
}),
className: (e) => q("relative flex min-h-9 min-w-0 cursor-pointer items-center gap-2 rounded-xl pe-2 text-body-regular text-text-primary outline-none", "transition-[background-color,color,box-shadow] duration-150 motion-reduce:transition-none", "group-data-[size=sm]/tree-view:min-h-8 group-data-[size=sm]/tree-view:text-body-2-regular", (e.isHovered || e.isPressed || e.isFocusVisible) && !e.isDisabled && "bg-dropdown-item-hover-background", e.isSelected && "bg-dropdown-item-hover-background", e.isFocusVisible && "ring-2 ring-inset ring-border-focus-ring", e.isDisabled && "cursor-default text-text-placeholder", typeof s == "function" ? s(e) : s),
- children: [/* @__PURE__ */ (0, I.jsx)(Xhe, { children: ({ hasChildItems: t, isExpanded: o, isDisabled: s, level: c, state: l, id: u }) => {
- let f = n === null ? null : o && r ? r : n ?? (t ? o ? jB : kB : Sge);
+ children: [/* @__PURE__ */ (0, I.jsx)($he, { children: ({ hasChildItems: t, isExpanded: o, isDisabled: s, level: c, state: l, id: u }) => {
+ let f = n === null ? null : o && r ? r : n ?? (t ? o ? NB : jB : Tge);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(p_e, {
+ /* @__PURE__ */ (0, I.jsx)(g_e, {
state: l,
id: u,
level: c,
@@ -44658,11 +44671,11 @@ function MV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
- children: [t ? /* @__PURE__ */ (0, I.jsx)(IL, {
+ children: [t ? /* @__PURE__ */ (0, I.jsx)(RL, {
slot: "chevron",
isDisabled: s,
className: "flex size-5 shrink-0 cursor-pointer items-center justify-center rounded-md text-foreground-icon-tertiary outline-none transition-colors hover:text-foreground-icon-primary data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, I.jsx)(_B, {
+ children: /* @__PURE__ */ (0, I.jsx)(yB, {
"aria-hidden": !0,
className: q("size-4 opacity-50 transition-transform duration-150 motion-reduce:transition-none", o ? "rotate-90" : d === "rtl" && "rotate-180")
})
@@ -44686,24 +44699,24 @@ function MV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
} }), o]
});
}
-var NV = {
- ...kL,
- CollectionRoot: f_e
+var FV = {
+ ...jL,
+ CollectionRoot: h_e
};
-function f_e({ collection: e, ...t }) {
- let n = (0, F.useContext)(fB);
- return n ? /* @__PURE__ */ (0, I.jsx)(Ex, {
+function h_e({ collection: e, ...t }) {
+ let n = (0, F.useContext)(mB);
+ return n ? /* @__PURE__ */ (0, I.jsx)(Ax, {
initial: !1,
- children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, I.jsx)(m_e, {
+ children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, I.jsx)(__e, {
state: n,
children: e.render?.(e)
}, e.key))
- }) : /* @__PURE__ */ (0, I.jsx)(kL.CollectionRoot, {
+ }) : /* @__PURE__ */ (0, I.jsx)(jL.CollectionRoot, {
collection: e,
...t
});
}
-function p_e({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction: a }) {
+function g_e({ 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;
@@ -44762,9 +44775,9 @@ function p_e({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction
]
});
}
-function m_e({ state: e, children: t }) {
- let n = Cx(), r = Xx(), [i, a] = (0, F.useState)(e);
- return n && i !== e && a(e), /* @__PURE__ */ (0, I.jsx)(cS.div, {
+function __e({ state: e, children: t }) {
+ let n = Dx(), r = eS(), [i, a] = (0, F.useState)(e);
+ return n && i !== e && a(e), /* @__PURE__ */ (0, I.jsx)(fS.div, {
role: "presentation",
className: "relative min-w-0 shrink-0 overflow-hidden",
"data-tree-view-exiting": !n || void 0,
@@ -44803,14 +44816,14 @@ function m_e({ state: e, children: t }) {
1
]
},
- children: /* @__PURE__ */ (0, I.jsx)(fB.Provider, {
+ children: /* @__PURE__ */ (0, I.jsx)(mB.Provider, {
value: n ? e : i,
children: t
})
});
}
// src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var PV = {
+var IV = {
md: {
box: "size-4",
glyph: "size-4",
@@ -44824,8 +44837,8 @@ var PV = {
gap: "gap-1.5"
}
};
-function FV({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = PV[t], c = n || r, l = o && !a;
+function LV({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = IV[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
className: q("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? q("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : q("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"),
@@ -44851,13 +44864,13 @@ function FV({ state: e, size: t = "md" }) {
});
}
// src/react/boardui/components/base/checkbox/checkbox.tsx
-function IV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = PV[n];
- return /* @__PURE__ */ (0, I.jsx)(Jpe, {
+function RV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = IV[n];
+ return /* @__PURE__ */ (0, I.jsx)(Zpe, {
ref: r,
...i,
className: (t) => q("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
- children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(FV, {
+ children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(LV, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, I.jsx)("span", {
@@ -44867,7 +44880,7 @@ function IV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
});
}
// src/react/components/overlay-scrollbar.ts
-function LV() {
+function zV() {
let e = (0, F.useRef)(null), t = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
t.current?.node !== e.current && (t.current?.control?.destroy(), t.current = e.current ? {
@@ -44879,43 +44892,43 @@ function LV() {
}, []), e;
}
// src/react/providers.tsx
-var RV = null;
-function h_e() {
- return RV?.isConnected || (RV = document.createElement("div"), RV.className = "peach-react", RV.dataset.reactOverlays = "", document.body.append(RV)), RV;
+var BV = null;
+function v_e() {
+ return BV?.isConnected || (BV = document.createElement("div"), BV.className = "peach-react", BV.dataset.reactOverlays = "", document.body.append(BV)), BV;
}
-function zV({ children: e }) {
+function VV({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)(oe, {
client: H,
- children: /* @__PURE__ */ (0, I.jsx)(rie, {
+ children: /* @__PURE__ */ (0, I.jsx)(iie, {
reducedMotion: "user",
- children: /* @__PURE__ */ (0, I.jsx)(bD, {
- getContainer: h_e,
+ children: /* @__PURE__ */ (0, I.jsx)(wD, {
+ getContainer: v_e,
children: e
})
})
});
}
// node_modules/sonner/dist/index.mjs
-function g_e(e) {
+function y_e(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 __e = (e) => {
+var b_e = (e) => {
switch (e) {
- case "success": return b_e;
- case "info": return S_e;
- case "warning": return x_e;
- case "error": return C_e;
+ case "success": return C_e;
+ case "info": return T_e;
+ case "warning": return w_e;
+ case "error": return E_e;
default: return null;
}
-}, v_e = Array(12).fill(0), y_e = ({ visible: e, className: t }) => /*#__PURE__*/ F.createElement("div", {
+}, x_e = Array(12).fill(0), S_e = ({ visible: e, className: t }) => /*#__PURE__*/ F.createElement("div", {
className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
"data-visible": e
-}, /*#__PURE__*/ F.createElement("div", { className: "sonner-spinner" }, v_e.map((e, t) => /*#__PURE__*/ F.createElement("div", {
+}, /*#__PURE__*/ F.createElement("div", { className: "sonner-spinner" }, x_e.map((e, t) => /*#__PURE__*/ F.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
-})))), b_e = /*#__PURE__*/ F.createElement("svg", {
+})))), C_e = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44926,7 +44939,7 @@ var __e = (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"
-})), x_e = /*#__PURE__*/ F.createElement("svg", {
+})), w_e = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
@@ -44937,7 +44950,7 @@ var __e = (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"
-})), S_e = /*#__PURE__*/ F.createElement("svg", {
+})), T_e = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44948,7 +44961,7 @@ var __e = (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"
-})), C_e = /*#__PURE__*/ F.createElement("svg", {
+})), E_e = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44959,7 +44972,7 @@ var __e = (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"
-})), w_e = /*#__PURE__*/ F.createElement("svg", {
+})), D_e = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
@@ -44980,7 +44993,7 @@ var __e = (e) => {
y1: "6",
x2: "18",
y2: "18"
-})), T_e = () => {
+})), O_e = () => {
let [e, t] = F.useState(document.hidden);
return F.useEffect(() => {
let e = () => {
@@ -44988,7 +45001,7 @@ var __e = (e) => {
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, E_e = 1, D_e = 100, BV = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : E_e++, VV = new class {
+}, k_e = 1, A_e = 100, HV = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : k_e++, UV = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -44998,10 +45011,10 @@ var __e = (e) => {
}, this.addToast = (e) => {
this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
}, this.trimHistory = () => {
- let e = this.toasts.length - D_e;
+ let e = this.toasts.length - A_e;
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 = BV(e), i = this.pendingDismissals.get(r);
+ let { message: t, ...n } = e, r = HV(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({
@@ -45076,7 +45089,7 @@ var __e = (e) => {
type: "default",
message: e
});
- else if (k_e(e) && !e.ok) {
+ else if (M_e(e) && !e.ok) {
i = !1;
let r = typeof t.error == "function" ? await t.error(`HTTP error! status: ${e.status}`) : t.error, a = typeof t.description == "function" ? await t.description(`HTTP error! status: ${e.status}`) : t.description, o = typeof r == "object" && !F.isValidElement(r) ? r : { message: r };
this.create({
@@ -45120,7 +45133,7 @@ var __e = (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 = BV(t);
+ let n = HV(t);
return this.create({
...t,
jsx: e(n),
@@ -45129,34 +45142,34 @@ var __e = (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();
}
-}(), O_e = (e, t) => VV.message(e, t), k_e = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", HV = Object.assign(O_e, {
- success: VV.success,
- info: VV.info,
- warning: VV.warning,
- error: VV.error,
- custom: VV.custom,
- message: VV.message,
- promise: VV.promise,
- dismiss: VV.dismiss,
- loading: VV.loading
+}(), j_e = (e, t) => UV.message(e, t), M_e = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", WV = Object.assign(j_e, {
+ success: UV.success,
+ info: UV.info,
+ warning: UV.warning,
+ error: UV.error,
+ custom: UV.custom,
+ message: UV.message,
+ promise: UV.promise,
+ dismiss: UV.dismiss,
+ loading: UV.loading
}, {
- getHistory: () => VV.toasts,
- getToasts: () => VV.getActiveToasts()
+ getHistory: () => UV.toasts,
+ getToasts: () => UV.getActiveToasts()
});
-g_e("[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 UV(e) {
+y_e("[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 GV(e) {
return e.label !== void 0;
}
-var A_e = 3, j_e = "24px", M_e = "16px", WV = 4e3, N_e = 356, P_e = 14, F_e = 45, I_e = 200;
-function GV(...e) {
+var N_e = 3, P_e = "24px", F_e = "16px", KV = 4e3, I_e = 356, L_e = 14, R_e = 45, z_e = 200;
+function qV(...e) {
return e.filter(Boolean).join(" ");
}
-function L_e(e) {
+function B_e(e) {
let [t, n] = e.split("-"), r = [];
return t && r.push(t), n && r.push(n), r;
}
-var R_e = (e) => {
- let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = F.useState(null), [O, k] = F.useState(null), [A, j] = F.useState(!1), [M, ee] = F.useState(!1), [N, te] = F.useState(!1), [P, ne] = F.useState(!1), [re, I] = F.useState(!1), [ie, ae] = F.useState(0), [oe, se] = F.useState(0), ce = F.useRef(n.duration || y || WV), le = F.useRef(null), ue = F.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 = F.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ye = F.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), be = F.useMemo(() => n.duration || y || WV, [n.duration, y]), xe = F.useRef(0), Se = F.useRef(0), Ce = F.useRef(0), we = F.useRef(null), [Te, Ee] = b.split("-"), De = F.useMemo(() => s.reduce((e, t, n) => n >= ve ? e : e + t.height, 0), [s, ve]), Oe = T_e(), ke = F.useMemo(() => e.swipeDirections ?? L_e(b), [e.swipeDirections, b]), Ae = n.invert || t, je = pe === "loading";
+var V_e = (e) => {
+ let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = F.useState(null), [O, k] = F.useState(null), [A, j] = F.useState(!1), [M, ee] = F.useState(!1), [N, te] = F.useState(!1), [P, ne] = F.useState(!1), [re, I] = F.useState(!1), [ie, ae] = F.useState(0), [oe, se] = F.useState(0), ce = F.useRef(n.duration || y || KV), le = F.useRef(null), ue = F.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 = F.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ye = F.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), be = F.useMemo(() => n.duration || y || KV, [n.duration, y]), xe = F.useRef(0), Se = F.useRef(0), Ce = F.useRef(0), we = F.useRef(null), [Te, Ee] = b.split("-"), De = F.useMemo(() => s.reduce((e, t, n) => n >= ve ? e : e + t.height, 0), [s, ve]), Oe = O_e(), ke = F.useMemo(() => e.swipeDirections ?? B_e(b), [e.swipeDirections, b]), Ae = n.invert || t, je = pe === "loading";
Se.current = F.useMemo(() => ve * x + De, [ve, De]), F.useEffect(() => {
ce.current = be;
}, [be]), F.useEffect(() => {
@@ -45197,7 +45210,7 @@ var R_e = (e) => {
let Me = F.useCallback(() => {
ee(!0), ae(Se.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
- }, I_e);
+ }, z_e);
}, [
n,
d,
@@ -45228,18 +45241,18 @@ var R_e = (e) => {
}, [Me, n.delete]);
function Ne() {
return w?.loading ? /*#__PURE__*/ F.createElement("div", {
- className: GV(C?.loader, n?.classNames?.loader, "sonner-loader"),
+ className: qV(C?.loader, n?.classNames?.loader, "sonner-loader"),
"data-visible": pe === "loading"
- }, w.loading) : /*#__PURE__*/ F.createElement(y_e, {
- className: GV(C?.loader, n?.classNames?.loader),
+ }, w.loading) : /*#__PURE__*/ F.createElement(S_e, {
+ className: qV(C?.loader, n?.classNames?.loader),
visible: pe === "loading"
});
}
- let Pe = n.icon || w?.[pe] || __e(pe);
+ let Pe = n.icon || w?.[pe] || b_e(pe);
return /*#__PURE__*/ F.createElement("li", {
tabIndex: 0,
ref: ue,
- className: GV(_, ge, C?.toast, n?.classNames?.toast, C?.[me], n?.classNames?.[me]),
+ className: qV(_, 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),
@@ -45282,7 +45295,7 @@ var R_e = (e) => {
if (P || !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) >= F_e || a > .11)) ae(Se.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Me(), ne(!0);
+ if ((E === "x" ? ke.includes(e > 0 ? "right" : "left") : ke.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= R_e || a > .11)) ae(Se.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Me(), ne(!0);
else {
var o, s;
(o = ue.current) == null || o.style.setProperty("--swipe-amount-x", "0px"), (s = ue.current) == null || s.style.setProperty("--swipe-amount-y", "0px"), I(!1), te(!1), D(null);
@@ -45321,46 +45334,46 @@ var R_e = (e) => {
onClick: je || !he ? () => {} : () => {
Me(), n.onDismiss == null || n.onDismiss.call(n, n);
},
- className: GV(C?.closeButton, n?.classNames?.closeButton)
- }, w?.close ?? w_e) : null, (pe || n.icon || n.promise) && n.icon !== null && (w?.[pe] !== null || n.icon) ? /*#__PURE__*/ F.createElement("div", {
+ className: qV(C?.closeButton, n?.classNames?.closeButton)
+ }, w?.close ?? D_e) : null, (pe || n.icon || n.promise) && n.icon !== null && (w?.[pe] !== null || n.icon) ? /*#__PURE__*/ F.createElement("div", {
"data-icon": "",
- className: GV(C?.icon, n?.classNames?.icon)
+ className: qV(C?.icon, n?.classNames?.icon)
}, pe === "loading" ? n.icon || Ne() : n.promise ? Ne() : null, pe === "loading" ? null : Pe) : null, /*#__PURE__*/ F.createElement("div", {
"data-content": "",
- className: GV(C?.content, n?.classNames?.content)
+ className: qV(C?.content, n?.classNames?.content)
}, /*#__PURE__*/ F.createElement("div", {
"data-title": "",
- className: GV(C?.title, n?.classNames?.title)
+ className: qV(C?.title, n?.classNames?.title)
}, n.jsx ? n.jsx : typeof n.title == "function" ? n.title() : n.title), n.description ? /*#__PURE__*/ F.createElement("div", {
"data-description": "",
- className: GV(v, _e, C?.description, n?.classNames?.description)
- }, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ F.isValidElement(n.cancel) ? n.cancel : n.cancel && UV(n.cancel) ? /*#__PURE__*/ F.createElement("button", {
+ className: qV(v, _e, C?.description, n?.classNames?.description)
+ }, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ F.isValidElement(n.cancel) ? n.cancel : n.cancel && GV(n.cancel) ? /*#__PURE__*/ F.createElement("button", {
"data-button": !0,
"data-cancel": !0,
style: n.cancelButtonStyle || h,
onClick: (e) => {
- UV(n.cancel) && he && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Me());
+ GV(n.cancel) && he && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Me());
},
- className: GV(C?.cancelButton, n?.classNames?.cancelButton)
- }, n.cancel.label) : null, /*#__PURE__*/ F.isValidElement(n.action) ? n.action : n.action && UV(n.action) ? /*#__PURE__*/ F.createElement("button", {
+ className: qV(C?.cancelButton, n?.classNames?.cancelButton)
+ }, n.cancel.label) : null, /*#__PURE__*/ F.isValidElement(n.action) ? n.action : n.action && GV(n.action) ? /*#__PURE__*/ F.createElement("button", {
"data-button": !0,
"data-action": !0,
style: n.actionButtonStyle || g,
onClick: (e) => {
- UV(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Me());
+ GV(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Me());
},
- className: GV(C?.actionButton, n?.classNames?.actionButton)
+ className: qV(C?.actionButton, n?.classNames?.actionButton)
}, n.action.label) : null);
};
-function KV() {
+function JV() {
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 z_e(e, t) {
+function H_e(e, t) {
let n = {};
return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? M_e : j_e;
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? F_e : P_e;
function o(e) {
[
"top",
@@ -45381,11 +45394,11 @@ function z_e(e, t) {
}) : o(a);
}), n;
}
-var qV = /*#__PURE__*/ F.forwardRef(function(e, t) {
- let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = A_e, toastOptions: g, dir: _ = KV(), gap: v = P_e, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = F.useState([]), w = F.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = F.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = F.useState([]), [O, k] = F.useState(!1), [A, j] = F.useState(!1), [M, ee] = F.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), N = F.useRef(null), te = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = F.useRef(null), ne = F.useRef(!1), re = F.useCallback((e) => {
- C((t) => (t.find((t) => t.id === e.id)?.delete || VV.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
+var YV = /*#__PURE__*/ F.forwardRef(function(e, t) {
+ let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = N_e, toastOptions: g, dir: _ = JV(), gap: v = L_e, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = F.useState([]), w = F.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = F.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = F.useState([]), [O, k] = F.useState(!1), [A, j] = F.useState(!1), [M, ee] = F.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), N = F.useRef(null), te = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = F.useRef(null), ne = F.useRef(!1), re = F.useCallback((e) => {
+ C((t) => (t.find((t) => t.id === e.id)?.delete || UV.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
}, []);
- return F.useEffect(() => VV.subscribe((e) => {
+ return F.useEffect(() => UV.subscribe((e) => {
e.dismiss ? requestAnimationFrame(() => {
C((t) => t.map((t) => t.id === e.id ? {
...t,
@@ -45454,7 +45467,7 @@ var qV = /*#__PURE__*/ F.forwardRef(function(e, t) {
let [i, a] = t.split("-");
return w.length ? /*#__PURE__*/ F.createElement("ol", {
key: t,
- dir: _ === "auto" ? KV() : _,
+ dir: _ === "auto" ? JV() : _,
tabIndex: -1,
ref: N,
className: c,
@@ -45464,10 +45477,10 @@ var qV = /*#__PURE__*/ F.forwardRef(function(e, t) {
"data-x-position": a,
style: {
"--front-toast-height": `${E[0]?.height || 0}px`,
- "--width": `${N_e}px`,
+ "--width": `${I_e}px`,
"--gap": `${v}px`,
...m,
- ...z_e(l, u)
+ ...H_e(l, u)
},
onBlur: (e) => {
ne.current && !e.currentTarget.contains(e.relatedTarget) && (ne.current = !1, P.current &&= (P.current.focus({ preventScroll: !0 }), null));
@@ -45485,7 +45498,7 @@ var qV = /*#__PURE__*/ F.forwardRef(function(e, t) {
e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || j(!0);
},
onPointerUp: () => j(!1)
- }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ F.createElement(R_e, {
+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ F.createElement(V_e, {
key: n.id,
icons: y,
index: i,
@@ -45515,35 +45528,35 @@ var qV = /*#__PURE__*/ F.forwardRef(function(e, t) {
swipeDirections: e.swipeDirections
}))) : null;
}));
-}), JV = "/api/library-processing", YV = ["library-processing"], B_e = (e, t, n) => {
+}), XV = "/api/library-processing", ZV = ["library-processing"], U_e = (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)), e.scope && r.set("scope", e.scope), e.incremental && r.set("incremental", "1"), n && r.set("inventory", n), B(`${JV}?${r}`, t);
-}, V_e = {
+ return e.asset_ids && r.set("asset_ids", JSON.stringify(e.asset_ids)), e.scope && r.set("scope", e.scope), e.incremental && r.set("incremental", "1"), n && r.set("inventory", n), B(`${XV}?${r}`, t);
+}, W_e = {
fetching_cover: "封面",
querying_metadata: "资料"
};
-function XV(e) {
+function QV(e) {
if (e?.status !== "running" || e.current_asset_id == null) return null;
- let t = V_e[e.current_action || ""];
+ let t = W_e[e.current_action || ""];
return !t || (e.waited_seconds || 0) < 120 ? null : {
what: t,
source: e.current_source
};
}
-function ZV({ what: e, source: t }) {
+function $V({ what: e, source: t }) {
return `${`${t?.label ? `${t.label} ` : "外部来源"}迟迟没有返回${e}`}。可以先跳过这部,任务结束后再重试。`;
}
-var QV = (e) => !!e && [
+var eH = (e) => !!e && [
"running",
"pausing",
"paused",
"stopping"
-].includes(e.status), $V = (e) => e?.status === "failed" && e.outcome === "partial", eH = "已入库的视频可在全部内容中浏览,未完成项可单独重试。", tH = "/?loc=&thumb=0";
-function nH(e) {
- if (!QV(e)) return "";
+].includes(e.status), tH = (e) => e?.status === "failed" && e.outcome === "partial", nH = "已入库的视频可在全部内容中浏览,未完成项可单独重试。", rH = "/?loc=&thumb=0";
+function iH(e) {
+ if (!eH(e)) return "";
if (e.status === "stopping") return "正在取消,等待当前步骤退出;已取得的结果会保留";
if (e.status === "paused") return "已暂停,继续后更新预估";
if (e.status === "pausing") return "正在暂停,当前步骤结束后暂停";
@@ -45554,30 +45567,30 @@ function nH(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 rH = (e) => B(JV, e);
-async function iH(e) {
+var aH = (e) => B(XV, e);
+async function oH(e) {
await H.fetchQuery({
- queryKey: YV,
- queryFn: () => rH(e)
+ queryKey: ZV,
+ queryFn: () => aH(e)
});
}
-var H_e = 2e3, U_e = 1e4, aH = "连接中断,正在重新读取处理进度", W_e = {
+var G_e = 2e3, K_e = 1e4, sH = "连接中断,正在重新读取处理进度", q_e = {
manual: "在网页发起",
scheduled: "定时发起",
startup: "服务启动时自动发起",
cli: "由命令行或托盘发起"
};
-function G_e(e, t) {
+function J_e(e, t) {
return `保存后 Peach 会重新启动。${e.trigger === "cli" ? "这个任务由命令行或托盘发起,在独立进程里运行,不受重启影响。" : e.status === "paused" ? "已暂停的任务会保持暂停,重启后点继续即可接着处理。" : "正在进行的任务会随重启中断,重启后从中断处继续。"}${t ? "勾选的「保存后扫描并补全资料」会排在当前任务之后。" : ""}`;
}
-function K_e(e) {
- let t = W_e[e.trigger || ""];
+function Y_e(e) {
+ let t = q_e[e.trigger || ""];
return `当前的扫描与采集任务${t ? `(${t})` : ""}还没结束,等它完成或取消后再开始新的同步`;
}
-function oH(e, t) {
- return QV(e) ? H_e : t ? U_e : !1;
+function cH(e, t) {
+ return eH(e) ? G_e : t ? K_e : !1;
}
-var q_e = {
+var X_e = {
scanning_files: "扫描文件",
reading_local: "检查配套文件",
reading_local_cover: "读取配套图片",
@@ -45586,25 +45599,25 @@ var q_e = {
skipped: "已跳过",
generating_preview: "生成视频预览",
writing_candidates: "保存待确认资料"
-}, sH = {
+}, lH = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
-function J_e(e) {
- let t = Object.entries(e).filter(([e, t]) => sH[e] && t > 0).map(([e, t]) => `${sH[e]} ${t.toLocaleString()} 部`);
+function Z_e(e) {
+ let t = Object.entries(e).filter(([e, t]) => lH[e] && t > 0).map(([e, t]) => `${lH[e]} ${t.toLocaleString()} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function Y_e(e) {
+function Q_e(e) {
if (e.status === "paused") return "已暂停";
if (e.status === "pausing") return "正在暂停";
- let t = q_e[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${YI(e.waited_seconds)}` : "";
+ let t = X_e[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${ZI(e.waited_seconds)}` : "";
return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;
}
-function X_e(e) {
- let t = e.total ? `${XI(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
- return Y_e(e) + (t ? ` · ${t}` : "");
+function $_e(e) {
+ let t = e.total ? `${QI(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
+ return Q_e(e) + (t ? ` · ${t}` : "");
}
-function Z_e(e) {
+function eve(e) {
let t = e.issue_preview || [];
return t.length ? {
label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
@@ -45618,22 +45631,22 @@ function Z_e(e) {
log: e.issues_log || ""
} : null;
}
-var cH = "peach.library-processing.announced", Q_e = 120;
-function lH(e) {
+var uH = "peach.library-processing.announced", tve = 120;
+function dH(e) {
let t = e.completed_at == null ? Infinity : Date.now() / 1e3 - e.completed_at;
- return !!e.job_id && t >= 0 && t < Q_e;
+ return !!e.job_id && t >= 0 && t < tve;
}
-function $_e(e, t, n) {
- if (e.status === "complete" && (n || lH(e))) {
+function nve(e, t, n) {
+ if (e.status === "complete" && (n || dH(e))) {
try {
- if (e.job_id && localStorage.getItem(cH) === e.job_id) return;
- e.job_id && localStorage.setItem(cH, e.job_id);
+ if (e.job_id && localStorage.getItem(uH) === e.job_id) return;
+ e.job_id && localStorage.setItem(uH, 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} 部视频预览` : ""));
}
}
// src/react/boardui/components/base/buttons/link-button.tsx
-var uH = jI({
+var fH = NI({
base: "inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans select-none cursor-pointer rounded-sm underline-offset-3 hover:underline transition-colors duration-150 ease outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring disabled:cursor-not-allowed disabled:no-underline aria-disabled:cursor-not-allowed aria-disabled:no-underline",
size: {
medium: "text-body-medium",
@@ -45650,15 +45663,15 @@ var uH = jI({
secondary: "text-text-secondary active:text-text-primary disabled:text-text-tertiary aria-disabled:text-text-tertiary"
}
});
-function dH({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = q(uH.base, uH.size[t], uH.variant[e], a), l = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
+function pH({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = q(fH.base, fH.size[t], fH.variant[e], a), l = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
n ? /* @__PURE__ */ (0, I.jsx)(n, {
- className: uH.icon[t],
+ className: fH.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, I.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: uH.icon[t],
+ className: fH.icon[t],
"aria-hidden": !0
}) : null
] });
@@ -45684,7 +45697,7 @@ function dH({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
});
}
// src/react/settings/use-action.ts
-function fH(e = "") {
+function mH(e = "") {
let t = (0, F.useRef)(null), [n, r] = (0, F.useState)(""), [i, a] = (0, F.useState)(e);
(0, F.useEffect)(() => () => t.current?.abort(), []);
async function o(e, n, i, o) {
@@ -45709,10 +45722,10 @@ function fH(e = "") {
};
}
// src/react/library-processing/slow-item.tsx
-function pH({ state: e }) {
- let t = fH(), n = (e) => {
- t.busy || t.run(e.action, (t) => V(JV, e, "POST", t), (e) => {
- H.setQueryData(YV, e), H.invalidateQueries({ queryKey: YV });
+function hH({ state: e }) {
+ let t = mH(), n = (e) => {
+ t.busy || t.run(e.action, (t) => V(XV, e, "POST", t), (e) => {
+ H.setQueryData(ZV, e), H.invalidateQueries({ queryKey: ZV });
});
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -45724,7 +45737,7 @@ function pH({ state: e }) {
size: "small",
variant: "secondary",
disabled: e.skip_requested,
- ...fV(t.busy === "skip_current"),
+ ...mV(t.busy === "skip_current"),
onClick: () => {
e.job_id && e.current_asset_id != null && n({
action: "skip_current",
@@ -45748,37 +45761,37 @@ function pH({ state: e }) {
]
});
}
-function eve({ state: e, slow: t }) {
- return /* @__PURE__ */ (0, I.jsx)(sV, {
+function rve({ state: e, slow: t }) {
+ return /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "warning",
- action: /* @__PURE__ */ (0, I.jsx)(pH, { state: e }),
- children: ZV(t)
+ action: /* @__PURE__ */ (0, I.jsx)(hH, { state: e }),
+ children: $V(t)
});
}
-function tve({ state: e, slow: t }) {
+function ive({ state: e, slow: t }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-processing-slow": "",
className: "flex min-w-0 flex-wrap items-center justify-between gap-3",
children: [/* @__PURE__ */ (0, I.jsx)("p", {
className: "min-w-0 flex-auto text-body-2-regular wrap-anywhere",
- children: ZV(t)
- }), /* @__PURE__ */ (0, I.jsx)(pH, { state: e })]
+ children: $V(t)
+ }), /* @__PURE__ */ (0, I.jsx)(hH, { state: e })]
});
}
// src/react/components/use-moving-surface.ts
-var nve = {
+var ave = {
selection: {
- type: Ng,
+ type: Lg,
duration: .16,
bounce: 0
},
hover: {
- type: Ng,
+ type: Lg,
duration: .08,
bounce: 0
}
};
-function mH(e) {
+function gH(e) {
let [t, n] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
if (!t) return;
@@ -45799,7 +45812,7 @@ function mH(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 = uae(n, { transform: [r, E] }, nve[e]);
+ l = dae(n, { transform: [r, E] }, ave[e]);
} else n.style.transform = E;
s = h, c = w, t.dataset.surfaceReady = "";
}, m = (t) => {
@@ -45835,24 +45848,24 @@ function mH(e) {
}, [t, e]), n;
}
// src/react/components/menu-dialog.tsx
-function hH(e) {
- let t = mH("hover");
- return /* @__PURE__ */ (0, I.jsx)(Sz, {
+function _H(e) {
+ let t = gH("hover");
+ return /* @__PURE__ */ (0, I.jsx)(wz, {
...e,
ref: t
});
}
// src/react/library-processing/processing-effort.tsx
-var gH = [
+var vH = [
"low",
"standard",
"high"
-], _H = [
+], yH = [
"低占用",
"标准",
"全速"
-], vH = uV("snail"), yH = uV("zap");
-function bH({ className: e }) {
+], bH = fV("snail"), xH = fV("zap");
+function SH({ className: e }) {
return /* @__PURE__ */ (0, I.jsxs)("svg", {
className: `processing-effort-double ${e ?? ""}`,
"aria-hidden": "true",
@@ -45883,12 +45896,12 @@ function bH({ className: e }) {
]
});
}
-var rve = [
- vH,
- yH,
- bH
+var ove = [
+ bH,
+ xH,
+ SH
];
-function ive({ animate: e }) {
+function sve({ animate: e }) {
let [t, n] = (0, F.useState)(document.hidden);
return (0, F.useEffect)(() => {
let e = () => n(document.hidden);
@@ -45920,8 +45933,8 @@ function ive({ animate: e }) {
} }, t))]
});
}
-function xH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
- let i = Math.max(0, gH.indexOf(e)), [a, o] = (0, F.useState)(i);
+function CH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
+ let i = Math.max(0, vH.indexOf(e)), [a, o] = (0, F.useState)(i);
return (0, F.useEffect)(() => {
t || o(i);
}, [i, t]), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -45932,7 +45945,7 @@ function xH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "text-text-tertiary",
children: "处理强度 "
- }), _H[a]]
+ }), yH[a]]
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "processing-effort-scale text-caption-1-regular text-text-tertiary",
@@ -45940,19 +45953,19 @@ function xH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
children: [
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-selected": a === 0 || void 0,
- children: [/* @__PURE__ */ (0, I.jsx)(vH, {}), "最慢"]
+ children: [/* @__PURE__ */ (0, I.jsx)(bH, {}), "最慢"]
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-selected": a === 1 || void 0,
- children: [/* @__PURE__ */ (0, I.jsx)(yH, {}), "标准"]
+ children: [/* @__PURE__ */ (0, I.jsx)(xH, {}), "标准"]
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-selected": a === 2 || void 0,
- children: [/* @__PURE__ */ (0, I.jsx)(bH, {}), "最快"]
+ children: [/* @__PURE__ */ (0, I.jsx)(SH, {}), "最快"]
})
]
}),
- /* @__PURE__ */ (0, I.jsxs)(ime, {
+ /* @__PURE__ */ (0, I.jsxs)(sme, {
"aria-label": "处理速度",
minValue: 0,
maxValue: 2,
@@ -45961,10 +45974,10 @@ function xH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
isDisabled: t,
onChange: o,
onChangeEnd: (e) => {
- e !== i && n(gH[e]);
+ e !== i && n(vH[e]);
},
className: "processing-effort-slider",
- children: [/* @__PURE__ */ (0, I.jsx)(PL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(IL, {
className: "processing-effort-label",
children: "处理速度"
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -45984,11 +45997,11 @@ function xH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
/* @__PURE__ */ (0, I.jsx)("i", {})
]
}),
- a === 2 ? /* @__PURE__ */ (0, I.jsx)(ive, { animate: r }) : null,
- /* @__PURE__ */ (0, I.jsx)(ame, {
+ a === 2 ? /* @__PURE__ */ (0, I.jsx)(sve, { animate: r }) : null,
+ /* @__PURE__ */ (0, I.jsx)(cme, {
className: "processing-effort-hit",
- children: /* @__PURE__ */ (0, I.jsx)(ome, {
- "aria-label": _H[a],
+ children: /* @__PURE__ */ (0, I.jsx)(lme, {
+ "aria-label": yH[a],
className: "processing-effort-thumb"
})
})
@@ -46002,8 +46015,8 @@ function xH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
]
});
}
-function ave({ value: e, busy: t, onChange: n, animate: r = !0 }) {
- let i = (0, F.useRef)(null), [a, o] = (0, F.useState)(!1), s = Math.max(0, gH.indexOf(e));
+function cve({ value: e, busy: t, onChange: n, animate: r = !0 }) {
+ let i = (0, F.useRef)(null), [a, o] = (0, F.useState)(!1), s = Math.max(0, vH.indexOf(e));
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "processing-effort-trigger",
"data-speed": e,
@@ -46011,28 +46024,28 @@ function ave({ value: e, busy: t, onChange: n, animate: r = !0 }) {
ref: i,
size: "small",
variant: "secondary",
- "aria-label": `处理速度:${_H[s]}`,
+ "aria-label": `处理速度:${yH[s]}`,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-disabled": t,
- leadingIcon: rve[s],
- trailingIcon: hB,
+ leadingIcon: ove[s],
+ trailingIcon: _B,
onClick: () => {
t || o(!a);
},
- children: _H[s]
+ children: yH[s]
})
- }), /* @__PURE__ */ (0, I.jsx)(lz, {
+ }), /* @__PURE__ */ (0, I.jsx)(dz, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "top start",
offset: 8,
- className: kV,
- children: /* @__PURE__ */ (0, I.jsx)(hH, {
+ className: jV,
+ children: /* @__PURE__ */ (0, I.jsx)(_H, {
"aria-label": "处理速度",
className: "outline-none",
- children: /* @__PURE__ */ (0, I.jsx)(xH, {
+ children: /* @__PURE__ */ (0, I.jsx)(CH, {
value: e,
busy: t,
onChange: n,
@@ -46042,10 +46055,10 @@ function ave({ value: e, busy: t, onChange: n, animate: r = !0 }) {
})] });
}
// src/react/library-processing/processing-controls.tsx
-function SH({ state: e, disabled: t = !1 }) {
- let n = fH(), r = (0, F.useRef)(!1), i = QV(e), a = e.status === "stopping", o = e.status === "paused" ? "继续" : e.status === "pausing" ? "正在暂停" : "暂停", s = a ? "正在取消" : "取消任务", c = (e) => {
- t || n.busy || n.run(e.action, (t) => V(JV, e, "POST", t), (e) => {
- H.setQueryData(YV, e), H.invalidateQueries({ queryKey: YV });
+function wH({ state: e, disabled: t = !1 }) {
+ let n = mH(), r = (0, F.useRef)(!1), i = eH(e), a = e.status === "stopping", o = e.status === "paused" ? "继续" : e.status === "pausing" ? "正在暂停" : "暂停", s = a ? "正在取消" : "取消任务", c = (e) => {
+ t || n.busy || n.run(e.action, (t) => V(XV, e, "POST", t), (e) => {
+ H.setQueryData(ZV, e), H.invalidateQueries({ queryKey: ZV });
});
}, l = () => {
let i = e.job_id;
@@ -46069,7 +46082,7 @@ function SH({ state: e, disabled: t = !1 }) {
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(ave, {
+ /* @__PURE__ */ (0, I.jsx)(cve, {
value: e.speed_mode || "standard",
busy: t || !!n.busy || a,
animate: e.status !== "paused" && e.status !== "pausing",
@@ -46083,11 +46096,11 @@ function SH({ state: e, disabled: t = !1 }) {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: e.status === "paused" ? zB : LB,
+ leadingIcon: e.status === "paused" ? VB : zB,
"aria-label": o,
title: o,
disabled: t || !e.job_id || e.status === "pausing" || a,
- ...fV(n.busy === "pause" || n.busy === "resume"),
+ ...mV(n.busy === "pause" || n.busy === "resume"),
onClick: () => {
e.job_id && c({
action: e.status === "paused" ? "resume" : "pause",
@@ -46099,11 +46112,11 @@ function SH({ state: e, disabled: t = !1 }) {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: KB,
+ leadingIcon: JB,
"aria-label": s,
title: s,
disabled: t || !e.job_id || a,
- ...fV(n.busy === "cancel"),
+ ...mV(n.busy === "cancel"),
onClick: l
}) : null
]
@@ -46115,11 +46128,11 @@ function SH({ state: e, disabled: t = !1 }) {
});
}
// src/react/library-processing/use-library-processing.ts
-function CH({ toast: e, mode: t, monitor: n }) {
+function TH({ toast: e, mode: t, monitor: n }) {
let r = t === "notice" || !!n, i = Ft({
- queryKey: YV,
- queryFn: ({ signal: e }) => rH(e),
- refetchInterval: (e) => oH(e.state.data, r)
+ queryKey: ZV,
+ queryFn: ({ signal: e }) => aH(e),
+ refetchInterval: (e) => cH(e.state.data, r)
}), [a, o] = (0, F.useState)(null), s = (0, F.useRef)(void 0), c = i.data;
return (0, F.useEffect)(() => {
if (!c) return;
@@ -46130,8 +46143,8 @@ function CH({ toast: e, mode: t, monitor: n }) {
"pausing",
"paused",
"stopping"
- ].includes(n) && !QV(c);
- r && o(c), (r || t === "notice") && $_e(c, e, r);
+ ].includes(n) && !eH(c);
+ r && o(c), (r || t === "notice") && nve(c, e, r);
}, [
c,
t,
@@ -46143,7 +46156,7 @@ function CH({ toast: e, mode: t, monitor: n }) {
};
}
// src/react/components/loading-dots.tsx
-function wH({ label: e }) {
+function EH({ label: e }) {
return /* @__PURE__ */ (0, I.jsxs)("p", {
role: "status",
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
@@ -46162,21 +46175,21 @@ function wH({ label: e }) {
});
}
// src/react/components/progress.tsx
-var TH = 100, ove = .4;
-function EH({ label: e, value: t, max: n = 100, stops: r = [], tinted: i = !1, meter: a = !1 }) {
- let o = n > 0 ? n : 1, s = (e) => Math.min(Math.max(Number.isFinite(e) ? e : 0, 0), o), c = (e) => s(e) / o * TH;
+var DH = 100, lve = .4;
+function OH({ label: e, value: t, max: n = 100, stops: r = [], tinted: i = !1, meter: a = !1 }) {
+ let o = n > 0 ? n : 1, s = (e) => Math.min(Math.max(Number.isFinite(e) ? e : 0, 0), o), c = (e) => s(e) / o * DH;
return /* @__PURE__ */ (0, I.jsxs)("svg", {
role: a ? "meter" : "progressbar",
"aria-label": e,
"aria-valuemin": 0,
"aria-valuemax": o,
"aria-valuenow": s(t),
- viewBox: `0 0 ${TH} 1`,
+ viewBox: `0 0 ${DH} 1`,
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
/* @__PURE__ */ (0, I.jsx)("rect", {
- width: TH,
+ width: DH,
height: 1,
className: i ? "fill-text-primary/10" : "fill-background-tertiary-default"
}),
@@ -46187,7 +46200,7 @@ function EH({ label: e, value: t, max: n = 100, stops: r = [], tinted: i = !1, m
}),
r.map((e) => /* @__PURE__ */ (0, I.jsx)("rect", {
x: c(e),
- width: ove,
+ width: lve,
height: 1,
className: "fill-background-secondary-default"
}, e))
@@ -46195,11 +46208,11 @@ function EH({ label: e, value: t, max: n = 100, stops: r = [], tinted: i = !1, m
});
}
// src/react/components/task-progress.tsx
-function DH({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
+function kH({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-task-progress": r ? "embedded" : "framed",
className: q("flex flex-col gap-1.5", !r && "gap-2 rounded-2lg bg-background-tertiary-default px-4 py-3 text-text-secondary"),
- children: n && n > 0 ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(EH, {
+ children: n && n > 0 ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(OH, {
label: e,
value: t,
max: n,
@@ -46207,11 +46220,11 @@ function DH({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
}), /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-caption-1-regular text-text-secondary wrap-anywhere",
children: e
- })] }) : /* @__PURE__ */ (0, I.jsx)(wH, { label: e })
+ })] }) : /* @__PURE__ */ (0, I.jsx)(EH, { label: e })
});
}
// src/react/library-processing/processing-line.tsx
-function OH(e) {
+function AH(e) {
let [t, n] = (0, F.useState)({
snapshot: e,
seconds: 0
@@ -46227,17 +46240,17 @@ function OH(e) {
return () => window.clearInterval(r);
}, [e, i]);
let a = i && t.snapshot === e ? t.seconds : 0;
- return X_e(a ? {
+ return $_e(a ? {
...e,
waited_seconds: r + a
} : e);
}
-function sve({ state: e }) {
- return OH(e);
+function uve({ state: e }) {
+ return AH(e);
}
-function cve({ state: e }) {
- let t = OH(e);
- return /* @__PURE__ */ (0, I.jsx)(DH, {
+function dve({ state: e }) {
+ let t = AH(e);
+ return /* @__PURE__ */ (0, I.jsx)(kH, {
embedded: !0,
label: t,
value: Math.min(e.checked || 0, e.total || 0),
@@ -46245,7 +46258,7 @@ function cve({ state: e }) {
});
}
// src/react/components/collapse-region.tsx
-function kH({ open: e, children: t, ...n }) {
+function jH({ open: e, children: t, ...n }) {
let r = (0, F.useRef)(null), i = (0, F.useRef)(!1);
return (0, F.useLayoutEffect)(() => {
let t = r.current;
@@ -46256,7 +46269,7 @@ function kH({ open: e, children: t, ...n }) {
children: t
});
}
-function AH(e) {
+function MH(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
...e,
"aria-hidden": !0,
@@ -46271,19 +46284,19 @@ function AH(e) {
});
}
// src/react/boardui/components/application/settings/settings-rows.tsx
-function jH({ className: e, children: t }) {
+function NH({ className: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
className: q("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function MH({ className: e, children: t }) {
+function PH({ className: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
className: q("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function lve({ label: e, description: t, children: n }) {
+function fve({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: q("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -46299,7 +46312,7 @@ function lve({ label: e, description: t, children: n }) {
});
}
// src/react/settings/section.tsx
-function uve({ title: e, guide: t, icon: n, id: r, aside: i, onSubmit: a, children: o }) {
+function pve({ title: e, guide: t, icon: n, id: r, aside: i, onSubmit: a, children: o }) {
let s = n ? /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex items-center gap-1.5",
children: [n, e]
@@ -46307,12 +46320,12 @@ function uve({ title: e, guide: t, icon: n, id: r, aside: i, onSubmit: a, childr
className: "flex w-full flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, I.jsx)("div", {
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, I.jsx)(MH, { children: s })
+ children: /* @__PURE__ */ (0, I.jsx)(PH, { children: s })
}), /* @__PURE__ */ (0, I.jsx)("div", {
className: "flex min-w-0 max-w-full",
children: i
})]
- }) : /* @__PURE__ */ (0, I.jsx)(MH, { children: s }), /* @__PURE__ */ (0, I.jsx)(jH, { children: o })] });
+ }) : /* @__PURE__ */ (0, I.jsx)(PH, { children: s }), /* @__PURE__ */ (0, I.jsx)(NH, { children: o })] });
return a ? /* @__PURE__ */ (0, I.jsx)("form", {
id: r,
"data-guide-target": t,
@@ -46329,13 +46342,13 @@ function uve({ title: e, guide: t, icon: n, id: r, aside: i, onSubmit: a, childr
children: c
});
}
-function dve({ children: e }) {
+function mve({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
className: "ui-settings-rows flex flex-col empty:hidden",
children: e
});
}
-function fve({ divided: e = !1, children: t }) {
+function hve({ divided: e = !1, children: t }) {
return e ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3 empty:hidden [&>.ui-settings-facts]:-mr-3",
children: t
@@ -46344,7 +46357,7 @@ function fve({ divided: e = !1, children: t }) {
children: t
});
}
-function pve({ label: e, html: t }) {
+function gve({ label: e, html: t }) {
let [n] = (0, F.useState)(t);
return /* @__PURE__ */ (0, I.jsx)("div", {
className: "contents",
@@ -46354,7 +46367,7 @@ function pve({ label: e, html: t }) {
dangerouslySetInnerHTML: { __html: n }
});
}
-function mve({ status: e, children: t }) {
+function _ve({ status: e, children: t }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3 empty:hidden",
children: [e ? /* @__PURE__ */ (0, I.jsx)("div", {
@@ -46363,34 +46376,34 @@ function mve({ status: e, children: t }) {
}) : null, t]
});
}
-function NH({ role: e, children: t }) {
+function FH({ role: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function PH({ children: e }) {
+function IH({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function FH({ children: e }) {
+function LH({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function hve({ href: e, children: t, leadingIcon: n }) {
- return /* @__PURE__ */ (0, I.jsx)(dH, {
+function vve({ href: e, children: t, leadingIcon: n }) {
+ return /* @__PURE__ */ (0, I.jsx)(pH, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
size: "small",
leadingIcon: n,
- trailingIcon: EB,
+ trailingIcon: OB,
className: "min-w-0 max-w-full",
children: /* @__PURE__ */ (0, I.jsx)("span", {
className: "min-w-0 whitespace-normal break-all",
@@ -46398,22 +46411,22 @@ function hve({ href: e, children: t, leadingIcon: n }) {
})
});
}
-function gve() {
- return /* @__PURE__ */ (0, I.jsx)(dH, {
+function yve() {
+ return /* @__PURE__ */ (0, I.jsx)(pH, {
href: "/tasks",
size: "small",
- trailingIcon: gB,
+ trailingIcon: vB,
className: "self-start",
children: "在任务中心查看进度"
});
}
-function _ve({ children: e }) {
+function bve({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("dl", {
className: "ui-settings-facts flex flex-col empty:hidden",
children: e
});
}
-function vve({ term: e, children: t }) {
+function xve({ term: e, children: t }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0",
children: [/* @__PURE__ */ (0, I.jsx)("dt", {
@@ -46425,7 +46438,7 @@ function vve({ term: e, children: t }) {
})]
});
}
-function IH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing: i = !1, onOpenChange: a, contentClassName: o }) {
+function RH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing: i = !1, onOpenChange: a, contentClassName: o }) {
let s = (0, F.useId)(), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(!1), [d, f] = (0, F.useState)(n ?? t);
return (0, F.useLayoutEffect)(() => {
n !== void 0 && n !== d && c.current && l.current && (Bo(c.current, l.current, n), f(n));
@@ -46441,12 +46454,12 @@ function IH({ 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, I.jsx)(_B, {
+ i ? null : /* @__PURE__ */ (0, I.jsx)(yB, {
"aria-hidden": !0,
className: d ? "size-(--icon-inline) shrink-0 rotate-90 transition-transform" : "size-(--icon-inline) shrink-0 transition-transform"
}),
e,
- i ? /* @__PURE__ */ (0, I.jsx)(_B, {
+ i ? /* @__PURE__ */ (0, I.jsx)(yB, {
"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
@@ -46462,7 +46475,7 @@ function IH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing:
})]
});
}
-function yve({ name: e }) {
+function Sve({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": !0,
"data-source-mark": e,
@@ -46472,34 +46485,34 @@ function yve({ name: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function LH({ mark: e }) {
+function zH({ mark: e }) {
return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, I.jsx)("img", {
src: e,
alt: "",
width: 16,
height: 16,
className: "size-(--icon-inline) shrink-0"
- }) : /* @__PURE__ */ (0, I.jsx)(yve, { name: e });
+ }) : /* @__PURE__ */ (0, I.jsx)(Sve, { name: e });
}
// src/react/components/source-label.tsx
-var RH = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, bve = Object.fromEntries(Object.entries(_s).map(([e, t]) => [e, function({ className: e }) {
+var BH = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, Cve = Object.fromEntries(Object.entries(_s).map(([e, t]) => [e, function({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
className: e,
- children: /* @__PURE__ */ (0, I.jsx)(LH, { mark: t })
+ children: /* @__PURE__ */ (0, I.jsx)(zH, { mark: t })
});
}]));
-function xve({ className: e }) {
+function wve({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
className: e,
- children: /* @__PURE__ */ (0, I.jsx)(LH, { mark: "database" })
+ children: /* @__PURE__ */ (0, I.jsx)(zH, { mark: "database" })
});
}
-var zH = (e) => bve[RH(e)] ?? xve;
-function Sve({ site: e, label: t }) {
+var VH = (e) => Cve[BH(e)] ?? wve;
+function Tve({ site: e, label: t }) {
let [n, r] = (0, F.useState)(!1), i = e === "javdb" || e === "dmm" ? `/site-mark?source=${e}` : e === "missav" ? "/site-mark?domain=missav.com" : null;
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [n || !i ? /* @__PURE__ */ (0, I.jsx)(LH, { mark: "globe" }) : /* @__PURE__ */ (0, I.jsx)("img", {
+ children: [n || !i ? /* @__PURE__ */ (0, I.jsx)(zH, { mark: "globe" }) : /* @__PURE__ */ (0, I.jsx)("img", {
src: i,
alt: "",
className: "size-(--icon-inline) shrink-0 object-contain",
@@ -46510,24 +46523,24 @@ function Sve({ site: e, label: t }) {
})]
});
}
-function BH({ source: e, label: t }) {
- let n = RH(e);
+function HH({ source: e, label: t }) {
+ let n = BH(e);
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, I.jsx)(LH, { mark: _s[n] || (n === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(zH, { mark: _s[n] || (n === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, I.jsx)("span", {
className: "min-w-0 truncate",
children: t
})]
});
}
// src/react/library-processing/processing-traffic.tsx
-var VH = (e) => Xn(e).replace(/\s/g, ""), HH = (e) => e >= 1024 ** 2 && e < 1024 ** 3 ? `${Number((e / 1024 ** 2).toFixed(1))}MB` : VH(e), Cve = (e, t) => {
- if (e === t) return VH(t);
+var UH = (e) => Xn(e).replace(/\s/g, ""), WH = (e) => e >= 1024 ** 2 && e < 1024 ** 3 ? `${Number((e / 1024 ** 2).toFixed(1))}MB` : UH(e), Eve = (e, t) => {
+ if (e === t) return UH(t);
let [n, r] = Xn(e).split(" "), [i, a] = Xn(t).split(" ");
- return r === a ? `${n}-${i}${a}` : `${VH(e)}-${VH(t)}`;
-}, UH = (e, t, n) => e === void 0 ? Cve(t, n) : `${e > 0 ? "约 " : ""}${VH(e)}`;
-function WH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDetailsChange: i }) {
- let a = LV(), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = r ?? o;
+ return r === a ? `${n}-${i}${a}` : `${UH(e)}-${UH(t)}`;
+}, GH = (e, t, n) => e === void 0 ? Eve(t, n) : `${e > 0 ? "约 " : ""}${UH(e)}`;
+function KH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDetailsChange: i }) {
+ let a = zV(), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = r ?? o;
if (!e) return null;
let u = (e) => e.toLocaleString("zh-CN"), d = !!e.workload || !(!e.inventory || e.inventory.complete) || !!(e.unknown_files && e.inventory?.complete !== !1) || !!e.inventory?.errors;
return /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -46564,7 +46577,7 @@ function WH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
children: "部分目录无法读取,数量和预估不完整"
}) : null
]
- }), /* @__PURE__ */ (0, I.jsx)(kH, {
+ }), /* @__PURE__ */ (0, I.jsx)(jH, {
open: !n,
"data-processing-estimate": "",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -46578,25 +46591,25 @@ function WH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
children: [
/* @__PURE__ */ (0, I.jsxs)("p", {
className: "inline-flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, I.jsx)(MB, {
+ children: [/* @__PURE__ */ (0, I.jsx)(PB, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
}), e.inventory && !e.inventory.complete ? "已识别流量" : "预计流量"]
}),
/* @__PURE__ */ (0, I.jsx)("p", {
className: "text-title-3-semibold text-text-primary",
- children: UH(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)
+ children: GH(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)
}),
/* @__PURE__ */ (0, I.jsxs)("p", { children: [
e.unknown_route_estimated_bytes ? "已确认代理" : "代理",
" ",
- UH(e.metered_estimated_bytes, e.metered_estimated_min_bytes, e.metered_estimated_max_bytes)
+ GH(e.metered_estimated_bytes, e.metered_estimated_min_bytes, e.metered_estimated_max_bytes)
] }),
t ? null : /* @__PURE__ */ (0, I.jsxs)("p", { children: [
"已用 ",
- /* @__PURE__ */ (0, I.jsxs)("span", { children: [e.partial ? "约 " : "", VH(e.used_bytes)] }),
+ /* @__PURE__ */ (0, I.jsxs)("span", { children: [e.partial ? "约 " : "", UH(e.used_bytes)] }),
" · 代理 ",
- VH(e.metered_used_bytes)
+ UH(e.metered_used_bytes)
] })
]
}), e.disk ? /* @__PURE__ */ (0, I.jsxs)("section", {
@@ -46605,25 +46618,25 @@ function WH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
children: [
/* @__PURE__ */ (0, I.jsxs)("p", {
className: "inline-flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, I.jsx)(ZB, {
+ children: [/* @__PURE__ */ (0, I.jsx)($B, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
}), e.inventory && !e.inventory.complete ? "已识别占用" : "预计占用"]
}),
/* @__PURE__ */ (0, I.jsxs)("p", {
className: "text-title-3-semibold text-text-primary",
- children: ["约 ", VH(e.disk.estimated_bytes)]
+ children: ["约 ", UH(e.disk.estimated_bytes)]
}),
- e.disk.temporary_bytes > 0 ? /* @__PURE__ */ (0, I.jsxs)("p", { children: ["抽帧临时文件约 ", HH(e.disk.temporary_bytes)] }) : null,
+ e.disk.temporary_bytes > 0 ? /* @__PURE__ */ (0, I.jsxs)("p", { children: ["抽帧临时文件约 ", WH(e.disk.temporary_bytes)] }) : null,
e.disk.volumes.map((e) => /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-col gap-1",
children: [/* @__PURE__ */ (0, I.jsxs)("p", { children: [
e.path,
" 剩余 ",
- e.free_bytes == null ? "未取得" : VH(e.free_bytes)
+ e.free_bytes == null ? "未取得" : UH(e.free_bytes)
] }), e.can_fit === !1 ? /* @__PURE__ */ (0, I.jsxs)("p", {
role: "status",
- children: ["空间不足,还差 ", VH(e.shortfall_bytes || 0)]
+ children: ["空间不足,还差 ", UH(e.shortfall_bytes || 0)]
}) : null]
}, e.path)),
e.disk.cache_unknown ? /* @__PURE__ */ (0, I.jsx)("p", {
@@ -46639,7 +46652,7 @@ function WH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
className: "self-start",
"aria-expanded": l,
"aria-controls": c,
- trailingIcon: l ? vB : hB,
+ trailingIcon: l ? bB : _B,
onClick: () => {
s(!l), i?.(!l);
},
@@ -46658,12 +46671,12 @@ function WH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 items-start justify-between gap-2",
- children: [e.root ? /* @__PURE__ */ (0, I.jsx)(BH, {
+ children: [e.root ? /* @__PURE__ */ (0, I.jsx)(HH, {
source: e.location,
label: e.label
}) : /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, I.jsx)(LH, { mark: "globe" }), e.label]
+ children: [/* @__PURE__ */ (0, I.jsx)(zH, { mark: "globe" }), e.label]
}), /* @__PURE__ */ (0, I.jsx)("span", {
className: "shrink-0",
children: e.connection === "system" ? "跟随系统" : e.connection === "unknown" ? "连接待确认" : e.metered ? "代理" : "直连"
@@ -46685,7 +46698,7 @@ function WH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
"待补资料 ",
u(e.workload.pending_jav_titles),
" 部 · 平均约 ",
- HH(e.workload.metadata_average_bytes || 0),
+ WH(e.workload.metadata_average_bytes || 0),
"/部"
]
}) : null,
@@ -46695,8 +46708,8 @@ function WH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
"已用",
e.unobserved.length ? "约" : "",
" ",
- VH(e.used_bytes)
- ] }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["预计 ", UH(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)] })]
+ UH(e.used_bytes)
+ ] }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["预计 ", GH(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)] })]
})
]
}, e.key))
@@ -46709,15 +46722,15 @@ function WH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
});
}
// src/react/library-processing/library-processing-notice.tsx
-var GH = "peach.library-processing.collapsed";
-function KH(e) {
+var qH = "peach.library-processing.collapsed";
+function JH(e) {
try {
- return !e || sessionStorage.getItem(GH) !== e;
+ return !e || sessionStorage.getItem(qH) !== e;
} catch {
return !0;
}
}
-function wve({ value: e, max: t }) {
+function Dve({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
return /* @__PURE__ */ (0, I.jsxs)("svg", {
role: "progressbar",
@@ -46747,17 +46760,17 @@ function wve({ value: e, max: t }) {
})]
});
}
-function qH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
- let [i, a] = (0, F.useState)(() => KH(e?.job_id)), [o, s] = (0, F.useState)(!1), c = (0, F.useRef)(!1), l = (0, F.useRef)(0), u = i && !o, d = (0, F.useRef)(u);
+function YH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
+ let [i, a] = (0, F.useState)(() => JH(e?.job_id)), [o, s] = (0, F.useState)(!1), c = (0, F.useRef)(!1), l = (0, F.useRef)(0), u = i && !o, d = (0, F.useRef)(u);
d.current = u;
- let f = (0, F.useId)(), [p, m] = (0, F.useState)(!1), h = (0, F.useRef)(null), g = !t && $V(e), _ = e?.status === "failed" && !g, v = QV(e);
+ let f = (0, F.useId)(), [p, m] = (0, F.useState)(!1), h = (0, F.useRef)(null), g = !t && tH(e), _ = e?.status === "failed" && !g, v = eH(e);
(0, F.useEffect)(() => {
- a(KH(e?.job_id)), m(!1);
+ a(JH(e?.job_id)), m(!1);
}, [e?.job_id]);
let y = () => {
if (!(o && (c.current = !0, s(!1), i))) {
try {
- i && e?.job_id ? sessionStorage.setItem(GH, e.job_id) : sessionStorage.removeItem(GH);
+ i && e?.job_id ? sessionStorage.setItem(qH, e.job_id) : sessionStorage.removeItem(qH);
} catch {}
i && m(!1), a(!i);
}
@@ -46787,7 +46800,7 @@ function qH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
r = !0, o.disconnect(), u.disconnect(), window.removeEventListener("resize", a), t.style.removeProperty("--processing-toast-space");
};
}, [n]), e?.archived && !t || !t && !v && !_ && !g) return null;
- let b = t ? null : XV(e), x = !!t || !!e?.stalled || g || !!b, S = g ? "处理已结束,部分项目需处理" : _ ? "扫描与采集已中断" : e?.status === "paused" ? "扫描与采集已暂停" : "扫描与采集";
+ let b = t ? null : QV(e), x = !!t || !!e?.stalled || g || !!b, S = g ? "处理已结束,部分项目需处理" : _ ? "扫描与采集已中断" : e?.status === "paused" ? "扫描与采集已暂停" : "扫描与采集";
return /* @__PURE__ */ (0, I.jsxs)("aside", {
ref: h,
"data-processing-dock": "",
@@ -46801,13 +46814,13 @@ function qH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
children: [
- v && e?.total ? /* @__PURE__ */ (0, I.jsx)(wve, {
+ v && e?.total ? /* @__PURE__ */ (0, I.jsx)(Dve, {
value: e.checked || 0,
max: e.total
- }) : _ || x ? /* @__PURE__ */ (0, I.jsx)(bge, {
+ }) : _ || x ? /* @__PURE__ */ (0, I.jsx)(Cge, {
"aria-hidden": !0,
className: "size-5 shrink-0"
- }) : /* @__PURE__ */ (0, I.jsx)(Mge, {
+ }) : /* @__PURE__ */ (0, I.jsx)(Fge, {
"aria-hidden": !0,
className: "size-5 shrink-0"
}),
@@ -46819,14 +46832,14 @@ function qH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
}), v ? /* @__PURE__ */ (0, I.jsx)("p", {
"data-processing-eta": "",
className: "text-caption-1-regular text-text-secondary tabular-nums wrap-anywhere",
- children: nH(e)
+ children: iH(e)
}) : null]
}),
/* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: AH,
+ leadingIcon: MH,
"data-processing-toggle": "",
"data-collapse-upward": "",
"aria-label": u ? "收起任务详情" : "展开任务详情",
@@ -46838,24 +46851,24 @@ function qH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: SB,
+ leadingIcon: wB,
"aria-label": "隐藏任务提示",
onClick: r
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(WH, {
+ /* @__PURE__ */ (0, I.jsx)(KH, {
traffic: e?.traffic,
compact: !u,
detailsOpen: p,
onDetailsChange: m
}),
- b ? /* @__PURE__ */ (0, I.jsx)(tve, {
+ b ? /* @__PURE__ */ (0, I.jsx)(ive, {
state: e,
slow: b
}) : null
]
- }), /* @__PURE__ */ (0, I.jsx)(kH, {
+ }), /* @__PURE__ */ (0, I.jsx)(jH, {
id: f,
open: u,
"data-processing-body": "",
@@ -46872,14 +46885,14 @@ function qH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
"aria-current": e.status === "current" ? "step" : void 0,
className: q("flex min-h-8 items-center gap-2 text-body-2-regular", e.status === "current" ? "text-text-primary" : "text-text-tertiary"),
children: [
- e.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(fge, {
+ e.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(hge, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
- }) : /* @__PURE__ */ (0, I.jsx)(pge, {
+ }) : /* @__PURE__ */ (0, I.jsx)(gge, {
"aria-hidden": !0,
className: q("size-(--icon-inline) shrink-0", e.status === "current" && "text-border-focus-ring")
}),
- /* @__PURE__ */ (0, I.jsx)(sE, { children: e.status === "complete" ? "已完成:" : e.status === "current" ? "当前:" : "待处理:" }),
+ /* @__PURE__ */ (0, I.jsx)(dE, { children: e.status === "complete" ? "已完成:" : e.status === "current" ? "当前:" : "待处理:" }),
e.status === "complete" ? /* @__PURE__ */ (0, I.jsx)("s", {
className: "wrap-anywhere",
children: e.label
@@ -46892,11 +46905,11 @@ function qH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
}) : null,
/* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular wrap-anywhere",
- children: t || (_ || g ? e?.error || "请查看并处理未完成项" : /* @__PURE__ */ (0, I.jsx)(sve, { state: e }))
+ children: t || (_ || g ? e?.error || "请查看并处理未完成项" : /* @__PURE__ */ (0, I.jsx)(uve, { state: e }))
}),
g ? /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular wrap-anywhere",
- children: eH
+ children: nH
}) : null,
v && e?.stage && !e.steps?.length ? /* @__PURE__ */ (0, I.jsxs)("p", {
className: "text-caption-1-regular text-text-tertiary",
@@ -46910,20 +46923,20 @@ function qH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-2 pt-3",
children: [
- /* @__PURE__ */ (0, I.jsx)(dH, {
+ /* @__PURE__ */ (0, I.jsx)(pH, {
href: "/data-cleanup#libraryProcessing",
variant: "secondary",
size: "small",
- trailingIcon: gB,
+ trailingIcon: vB,
children: t || _ || g ? "打开扫描与采集" : "任务详情"
}),
- g ? /* @__PURE__ */ (0, I.jsx)(dH, {
- href: tH,
+ g ? /* @__PURE__ */ (0, I.jsx)(pH, {
+ href: rH,
size: "small",
- trailingIcon: gB,
+ trailingIcon: vB,
children: "查看全部内容"
}) : null,
- v ? /* @__PURE__ */ (0, I.jsx)(SH, {
+ v ? /* @__PURE__ */ (0, I.jsx)(wH, {
state: e,
disabled: !!t
}) : null
@@ -46933,67 +46946,67 @@ function qH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
})]
});
}
-function Tve(e) {
- let { job: t } = CH(e);
- return /* @__PURE__ */ (0, I.jsx)(qH, {
+function Ove(e) {
+ let { job: t } = TH(e);
+ return /* @__PURE__ */ (0, I.jsx)(YH, {
state: t.data,
- problem: t.isError ? t.data ? aH : lr(t.error) : ""
+ problem: t.isError ? t.data ? sH : lr(t.error) : ""
});
}
// src/react/library-processing/processing-notice-visibility.ts
-var JH = "peach.library-processing.visibility", YH = /* @__PURE__ */ new Set(), XH = "";
-function Eve() {
+var XH = "peach.library-processing.visibility", ZH = /* @__PURE__ */ new Set(), QH = "";
+function kve() {
try {
- return sessionStorage.getItem(JH) || "";
+ return sessionStorage.getItem(XH) || "";
} catch {
- return XH;
+ return QH;
}
}
-function Dve(e) {
- return YH.add(e), () => {
- YH.delete(e);
+function Ave(e) {
+ return ZH.add(e), () => {
+ ZH.delete(e);
};
}
-function ZH(e, t) {
- XH = `${t ? "shown" : "hidden"}:${e}`;
+function $H(e, t) {
+ QH = `${t ? "shown" : "hidden"}:${e}`;
try {
- sessionStorage.setItem(JH, XH);
+ sessionStorage.setItem(XH, QH);
} catch {}
- YH.forEach((e) => e());
+ ZH.forEach((e) => e());
}
-function QH(e) {
- let t = (0, F.useSyncExternalStore)(Dve, Eve, () => "");
+function eU(e) {
+ let t = (0, F.useSyncExternalStore)(Ave, kve, () => "");
return {
hidden: t === `hidden:${e}`,
requested: t === `shown:${e}`
};
}
// src/react/library-processing/library-processing-dock.tsx
-var $H = "peach-library-processing";
-function Ove({ toast: e }) {
- let { job: t, settled: n } = CH({
+var tU = "peach-library-processing";
+function jve({ toast: e }) {
+ let { job: t, settled: n } = TH({
toast: e,
mode: "notice"
- }), r = (0, F.useRef)(!1), i = t.data, a = i?.job_id || "unavailable", { hidden: o, requested: s } = QH(a), c = t.isError ? i ? aH : lr(t.error) : "";
+ }), r = (0, F.useRef)(!1), i = t.data, a = i?.job_id || "unavailable", { hidden: o, requested: s } = eU(a), c = t.isError ? i ? sH : lr(t.error) : "";
return (0, F.useEffect)(() => {
- let e = QV(i), t = i?.status === "failed" && (n?.job_id === i.job_id || lH(i));
- o || i?.archived && !c || !e && !c && !t && !(s && i?.status === "failed") ? (r.current && HV.dismiss($H), r.current = !1) : (HV.custom(() => /* @__PURE__ */ (0, I.jsx)("div", {
+ let e = eH(i), t = i?.status === "failed" && (n?.job_id === i.job_id || dH(i));
+ o || i?.archived && !c || !e && !c && !t && !(s && i?.status === "failed") ? (r.current && WV.dismiss(tU), r.current = !1) : (WV.custom(() => /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(qH, {
+ children: /* @__PURE__ */ (0, I.jsx)(YH, {
state: i,
problem: c,
measure: !0,
- onHide: () => ZH(a, !1)
+ onHide: () => $H(a, !1)
})
}), {
- id: $H,
+ id: tU,
toasterId: "processing",
duration: Infinity,
dismissible: !1,
closeButton: !1,
className: "processing-task-toast",
onDismiss: () => {
- ZH(a, !1), r.current = !1;
+ $H(a, !1), r.current = !1;
}
}), r.current = !0);
}, [
@@ -47004,19 +47017,19 @@ function Ove({ toast: e }) {
o,
s
]), (0, F.useEffect)(() => () => {
- r.current && HV.dismiss($H), r.current = !1;
+ r.current && WV.dismiss(tU), r.current = !1;
}, []), null;
}
// src/react/network-banner.tsx
-var kve = ["network-status"], Ave = "Peach 连不上外网,资料采集、关注更新和在线来源暂不可用;本机媒体照常浏览和播放。";
-function jve(e) {
+var Mve = ["network-status"], Nve = "Peach 连不上外网,资料采集、关注更新和在线来源暂不可用;本机媒体照常浏览和播放。";
+function Pve(e) {
return e?.state === "online" ? 12e4 : 3e4;
}
-function Mve() {
+function Fve() {
let e = Ft({
- queryKey: kve,
+ queryKey: Mve,
queryFn: ({ signal: e }) => B("/api/network-status", e),
- refetchInterval: (e) => jve(e.state.data),
+ refetchInterval: (e) => Pve(e.state.data),
retry: !1
}), t = document.querySelector("[data-network-banner]");
return e.data?.state !== "offline" || !t ? null : (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsxs)("aside", {
@@ -47027,56 +47040,56 @@ function Mve() {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-alert" })
- }), /* @__PURE__ */ (0, I.jsx)("p", { children: Ave })] }), /* @__PURE__ */ (0, I.jsx)("a", {
+ }), /* @__PURE__ */ (0, I.jsx)("p", { children: Nve })] }), /* @__PURE__ */ (0, I.jsx)("a", {
href: "/settings/network#peachProxy",
children: "检查 Peach 代理"
})]
}), t);
}
// src/react/components/segmented.tsx
-function Nve(e) {
- let t = sL(mH("selection"));
- return /* @__PURE__ */ (0, I.jsx)(uB, {
+function Ive(e) {
+ let t = lL(gH("selection"));
+ return /* @__PURE__ */ (0, I.jsx)(fB, {
...e,
ref: t
});
}
-function eU(e) {
- let t = sL(mH("selection"));
- return /* @__PURE__ */ (0, I.jsx)(kz, {
+function nU(e) {
+ let t = lL(gH("selection"));
+ return /* @__PURE__ */ (0, I.jsx)(jz, {
...e,
ref: t
});
}
-var tU = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1", nU = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 max-sm:px-2 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", Pve = "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", rU = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", iU = "relative flex size-8 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)", aU = [
+var rU = "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", iU = "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", Lve = "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", aU = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", oU = "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)", sU = [
["library", "馆藏"],
["releases", "新作"],
["discover", "发现"],
["wants", "想要"]
-], oU = (e) => aU.some(([t]) => t === e) ? e : "library", sU = (e) => oU(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
-function Fve(e) {
+], cU = (e) => sU.some(([t]) => t === e) ? e : "library", lU = (e) => cU(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
+function Rve(e) {
let t = new URLSearchParams(e);
return t.delete("tab"), t.set("jav", "1"), "/?" + t;
}
// src/onboarding/guide-catalog.ts
-var cU = (e, t, n, r, i, a) => ({
+var uU = (e, t, n, r, i, a) => ({
id: e,
title: t,
body: n,
route: r,
target: i,
scope: a
-}), lU = (e, t, n, r, i) => cU(e, t, n, r, i), uU = [
+}), dU = (e, t, n, r, i) => uU(e, t, n, r, i), fU = [
{
id: "basics",
kind: "interface",
title: "认识界面",
summary: "4 步认识搜索、导航、作品详情和设置。",
steps: [
- lU("search", "搜索馆藏", "输入作品名、番号、艺人、厂牌或标签。搜索结果来自已经入库的内容。", "/", "#q, #searchBtn"),
- lU("navigation", "切换浏览入口", "在侧栏按人物、厂牌和标签浏览。手机上用导航按钮展开侧栏;入口与顺序可以在设置里调整。", "/", "#filterBtn, [data-sidebar-nav]"),
- lU("cards", "打开作品详情", "选择作品查看资料、版本和播放入口。首次扫描尚未入库时,可以先继续认识导航。", "/", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),
- lU("preferences", "调整自己的界面", "侧栏底部的设置包含显示与播放偏好;手机上先展开侧栏。媒体目录、网络和后台服务放在其中的 Peach 配置入口。", "/", "#settingsBtn, #filterBtn")
+ dU("search", "搜索馆藏", "输入作品名、番号、艺人、厂牌或标签。搜索结果来自已经入库的内容。", "/", "#q, #searchBtn"),
+ dU("navigation", "切换浏览入口", "在侧栏按人物、厂牌和标签浏览。手机上用导航按钮展开侧栏;入口与顺序可以在设置里调整。", "/", "#filterBtn, [data-sidebar-nav]"),
+ dU("cards", "打开作品详情", "选择作品查看资料、版本和播放入口。首次扫描尚未入库时,可以先继续认识导航。", "/", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),
+ dU("preferences", "调整自己的界面", "侧栏底部的设置包含显示与播放偏好;手机上先展开侧栏。媒体目录、网络和后台服务放在其中的 Peach 配置入口。", "/", "#settingsBtn, #filterBtn")
]
},
{
@@ -47085,23 +47098,23 @@ var cU = (e, t, n, r, i, a) => ({
title: "找到并播放",
summary: "搜索、筛选、详情、版本、字幕和播放器。",
steps: [
- lU("library", "选择媒体库", "导航顶部可以切换全部媒体库或某个媒体库;手机上先展开侧栏。媒体库把不同目录组织成一组。", "/", "#brandHome, #filterBtn"),
- lU("search", "按关键词找内容", "输入作品、番号或人物名称,结合筛选与排序定位内容。搜索记录数量可在搜索与推荐中设置。", "/", "#q, #searchBtn"),
- lU("filter", "筛选与清除", "多个筛选条件会共同缩小结果。找不到内容时先检查媒体库和筛选条件。", "/", "[data-catalog-frame]"),
+ dU("library", "选择媒体库", "导航顶部可以切换全部媒体库或某个媒体库;手机上先展开侧栏。媒体库把不同目录组织成一组。", "/", "#brandHome, #filterBtn"),
+ dU("search", "按关键词找内容", "输入作品、番号或人物名称,结合筛选与排序定位内容。搜索记录数量可在搜索与推荐中设置。", "/", "#q, #searchBtn"),
+ dU("filter", "筛选与清除", "多个筛选条件会共同缩小结果。找不到内容时先检查媒体库和筛选条件。", "/", "[data-catalog-frame]"),
{
- ...cU("detail", "作品详情", "这里显示当前作品的标题和源文件工具。评分、人物和标签在下方;有分卷或版本的作品可从馆藏卡片进入相应队列。", "/", "[data-item-title]"),
+ ...uU("detail", "作品详情", "这里显示当前作品的标题和源文件工具。评分、人物和标签在下方;有分卷或版本的作品可从馆藏卡片进入相应队列。", "/", "[data-item-title]"),
surface: "detail"
},
{
- ...cU("player", "播放器控件", "底部控制条提供播放、进度、音量和全屏。右侧齿轮打开播放速度、字幕、画面旋转和清晰度等选项。", "/", "#stage .vjs-control-bar"),
+ ...uU("player", "播放器控件", "底部控制条提供播放、进度、音量和全屏。右侧齿轮打开播放速度、字幕、画面旋转和清晰度等选项。", "/", "#stage .vjs-control-bar"),
surface: "player"
},
{
- ...cU("subtitles", "字幕与播放选项", "从播放器齿轮菜单进入字幕,可以选择已有字幕、加载本地字幕文件或搜索字幕;播放速度和清晰度也在这个菜单中。", "/", "#stage [data-player-subtitles]"),
+ ...uU("subtitles", "字幕与播放选项", "从播放器齿轮菜单进入字幕,可以选择已有字幕、加载本地字幕文件或搜索字幕;播放速度和清晰度也在这个菜单中。", "/", "#stage [data-player-subtitles]"),
surface: "subtitles"
},
{
- ...cU("external", "外部播放器", "在这里选择本地播放器、M3U 播放列表或网络播放地址,再点打开。另一台设备需要能访问当前 Peach 地址。", "/", "#stage [data-local-playback-row]"),
+ ...uU("external", "外部播放器", "在这里选择本地播放器、M3U 播放列表或网络播放地址,再点打开。另一台设备需要能访问当前 Peach 地址。", "/", "#stage [data-local-playback-row]"),
surface: "detail"
}
]
@@ -47113,15 +47126,15 @@ var cU = (e, t, n, r, i, a) => ({
summary: "评分、标记、播放列表与当前播放队列。",
steps: [
{
- ...lU("marks", "评分", "点击星星给作品评分;下方的喜欢、稍后看和加入播放列表用于保存感兴趣的内容。", "/", "#stage [data-item-rating]"),
+ ...dU("marks", "评分", "点击星星给作品评分;下方的喜欢、稍后看和加入播放列表用于保存感兴趣的内容。", "/", "#stage [data-item-rating]"),
surface: "detail"
},
{
- ...lU("mark-actions", "标记与加入列表", "喜欢影响口味推荐,稍后看便于回找;加入播放列表可把作品整理到自己的列表。", "/", "#stage [data-item-feedback]"),
+ ...dU("mark-actions", "标记与加入列表", "喜欢影响口味推荐,稍后看便于回找;加入播放列表可把作品整理到自己的列表。", "/", "#stage [data-item-feedback]"),
surface: "detail"
},
- lU("lists", "建立播放列表", "在这里输入名称,创建自己的播放列表。之后从作品详情的加入播放列表按钮添加内容。", "/playlists", "[data-playlist-create]"),
- lU("queue", "从列表开始播放", "选择一张播放列表卡片进入队列,查看和调整播放顺序。没有列表时先创建,再加入作品。", "/playlists", "[data-playlist-card]")
+ dU("lists", "建立播放列表", "在这里输入名称,创建自己的播放列表。之后从作品详情的加入播放列表按钮添加内容。", "/playlists", "[data-playlist-create]"),
+ dU("queue", "从列表开始播放", "选择一张播放列表卡片进入队列,查看和调整播放顺序。没有列表时先创建,再加入作品。", "/playlists", "[data-playlist-card]")
]
},
{
@@ -47130,10 +47143,10 @@ var cU = (e, t, n, r, i, a) => ({
title: "按人物与主题浏览",
summary: "从人物、厂牌和标签继续发现相关馆藏。",
steps: [
- lU("people", "艺人与创作者", "选择人物卡片进入资料页,查看相关作品、照片与已连接的来源。上方可以切换艺人、卖家与在线人物。", "/performers", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),
- lU("studios", "厂牌", "选择厂牌卡片集中查看作品。资料页中的作品仍会受到当前媒体库范围影响。", "/studios", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),
- lU("tags", "标签与主题", "选择标签继续浏览相关馆藏;本地与在线使用不同的标签词表。", "/tags", "[data-index-body] [data-alpha-tag], [data-index-body] [data-tag-chip], [data-index-body] [data-empty-state]"),
- lU("manage-tags", "管理标签", "铅笔按钮打开标签管理,用于整理标签名称和关系;再次点击返回浏览。", "/tags", "[data-tag-mode]")
+ dU("people", "艺人与创作者", "选择人物卡片进入资料页,查看相关作品、照片与已连接的来源。上方可以切换艺人、卖家与在线人物。", "/performers", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),
+ dU("studios", "厂牌", "选择厂牌卡片集中查看作品。资料页中的作品仍会受到当前媒体库范围影响。", "/studios", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),
+ dU("tags", "标签与主题", "选择标签继续浏览相关馆藏;本地与在线使用不同的标签词表。", "/tags", "[data-index-body] [data-alpha-tag], [data-index-body] [data-tag-chip], [data-index-body] [data-empty-state]"),
+ dU("manage-tags", "管理标签", "铅笔按钮打开标签管理,用于整理标签名称和关系;再次点击返回浏览。", "/tags", "[data-tag-mode]")
]
},
{
@@ -47142,10 +47155,10 @@ var cU = (e, t, n, r, i, a) => ({
title: "JAV 与追新",
summary: "馆藏、新作、想要清单与高清版。",
steps: [
- lU("library", "JAV 馆藏", "按番号、出演者和厂牌查找已入库的作品,可以选择官方封面或预览图。", sU("library"), "[data-catalog-frame]"),
- lU("new", "发现推荐", "发现页按口味推荐作品。在这里切换馆藏或外部内容,并按标签筛选。", sU("discover"), "[data-jav-filter] [data-catalog-views]"),
- lU("wants", "查看想要清单", "喜欢的外部作品可以加入想要清单;在这里切换馆藏、发现与想要。", sU("discover"), "[aria-label=\"JAV 分区\"]"),
- lU("quality", "高清版", "待升级卡片列出当前版本信息和判定原因,可以查看版本或查找资源;没有目标时这里显示空状态。", "/quality-goals", "[data-goal-id], #main [data-empty-state]")
+ dU("library", "JAV 馆藏", "按番号、出演者和厂牌查找已入库的作品,可以选择官方封面或预览图。", lU("library"), "[data-catalog-frame]"),
+ dU("new", "发现推荐", "发现页按口味推荐作品。在这里切换馆藏或外部内容,并按标签筛选。", lU("discover"), "[data-jav-filter] [data-catalog-views]"),
+ dU("wants", "查看想要清单", "喜欢的外部作品可以加入想要清单;在这里切换馆藏、发现与想要。", lU("discover"), "[aria-label=\"JAV 分区\"]"),
+ dU("quality", "高清版", "待升级卡片列出当前版本信息和判定原因,可以查看版本或查找资源;没有目标时这里显示空状态。", "/quality-goals", "[data-goal-id], #main [data-empty-state]")
]
},
{
@@ -47154,9 +47167,9 @@ var cU = (e, t, n, r, i, a) => ({
title: "关注创作者",
summary: "多来源更新、同作品合并和来源状态。",
steps: [
- lU("feed", "集中看关注更新", "来自不同来源的创作者更新汇集在这里,选择一项更新查看内容;尚未关注来源时,按空状态中的入口添加。", "/follow", "[data-follow-item], [data-follow-empty] [data-empty-state]"),
- lU("sources", "管理关注来源", "从列表查看启用状态、采集结果和失败原因;切换到添加区域,添加创作者或订阅来源。", "/subscriptions", "[aria-label=\"关注管理区域\"]"),
- lU("credentials", "按需配置凭据", "部分来源需要登录凭据;先确认要启用的来源,再展开对应站点,填写其要求的信息。", "/settings/subscriptions", "[data-guide-target=\"credentials\"]")
+ dU("feed", "集中看关注更新", "来自不同来源的创作者更新汇集在这里,选择一项更新查看内容;尚未关注来源时,按空状态中的入口添加。", "/follow", "[data-follow-item], [data-follow-empty] [data-empty-state]"),
+ dU("sources", "管理关注来源", "从列表查看启用状态、采集结果和失败原因;切换到添加区域,添加创作者或订阅来源。", "/subscriptions", "[aria-label=\"关注管理区域\"]"),
+ dU("credentials", "按需配置凭据", "部分来源需要登录凭据;先确认要启用的来源,再展开对应站点,填写其要求的信息。", "/settings/subscriptions", "[data-guide-target=\"credentials\"]")
]
},
{
@@ -47165,9 +47178,9 @@ var cU = (e, t, n, r, i, a) => ({
title: "专注观看",
summary: "播放墙、沉浸模式与详情小窗。",
steps: [
- lU("wall", "播放墙", "播放墙提供多画面观看入口。结束导览后点击进入,再选择要播放的内容。", "/", "#wallBtn"),
- lU("immerse", "沉浸模式", "沉浸模式适合连续观看。点击入口会进入观看流程,请在准备好播放时使用。", "/", "#immerseBtn"),
- lU("mini", "离开详情后继续看", "开启小窗播放后,离开详情可以继续观看。自动播放、小窗和快进步长都在浏览与播放设置中。", "/settings/playback", "#miniplayerSetting")
+ dU("wall", "播放墙", "播放墙提供多画面观看入口。结束导览后点击进入,再选择要播放的内容。", "/", "#wallBtn"),
+ dU("immerse", "沉浸模式", "沉浸模式适合连续观看。点击入口会进入观看流程,请在准备好播放时使用。", "/", "#immerseBtn"),
+ dU("mini", "离开详情后继续看", "开启小窗播放后,离开详情可以继续观看。自动播放、小窗和快进步长都在浏览与播放设置中。", "/settings/playback", "#miniplayerSetting")
]
},
{
@@ -47176,11 +47189,11 @@ var cU = (e, t, n, r, i, a) => ({
title: "整理与维护",
summary: "扫描、补资料、复核、文件整理与回收站。",
steps: [
- lU("scan", "扫描与补资料", "在媒体库处理区域选择扫描和资料处理范围。读取策略取决于媒体库配置;导览不会启动任务。", "/data-cleanup", "#libraryProcessing"),
- lU("review", "人工复核", "先按分类找到待复核资料,再查看项目的来源和证据后作决定。", "/review", "[aria-labelledby=\"reviewcategories\"]"),
- lU("organize", "文件整理", "文件整理先查看预览,确认命名与目标目录再执行。资料整理和真实文件操作有不同的影响范围。", "/data-cleanup", "[data-cleanup-organize]"),
- lU("trash", "回收站", "查看已移入回收站的作品,按需要恢复或处理。永久删除前认真核对确认框中的范围。", "/trash", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),
- lU("tasks", "任务与失败原因", "任务记录显示处理状态;展开记录查看详情与失败原因。还没有任务时,这里会说明哪些操作会留下记录。", "/tasks", "[data-run-id], #main [data-empty-state]")
+ dU("scan", "扫描与补资料", "在媒体库处理区域选择扫描和资料处理范围。读取策略取决于媒体库配置;导览不会启动任务。", "/data-cleanup", "#libraryProcessing"),
+ dU("review", "人工复核", "先按分类找到待复核资料,再查看项目的来源和证据后作决定。", "/review", "[aria-labelledby=\"reviewcategories\"]"),
+ dU("organize", "文件整理", "文件整理先查看预览,确认命名与目标目录再执行。资料整理和真实文件操作有不同的影响范围。", "/data-cleanup", "[data-cleanup-organize]"),
+ dU("trash", "回收站", "查看已移入回收站的作品,按需要恢复或处理。永久删除前认真核对确认框中的范围。", "/trash", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),
+ dU("tasks", "任务与失败原因", "任务记录显示处理状态;展开记录查看详情与失败原因。还没有任务时,这里会说明哪些操作会留下记录。", "/tasks", "[data-run-id], #main [data-empty-state]")
]
},
{
@@ -47189,10 +47202,10 @@ var cU = (e, t, n, r, i, a) => ({
title: "了解自己的馆藏",
summary: "统计、口味,以及浏览历史和书签来源。",
steps: [
- lU("stats", "馆藏统计", "选择统计视图查看馆藏、存储和观看情况,各视图中的入口可继续查看相关作品。", "/stats", "[aria-label=\"统计视图\"]"),
- lU("taste", "口味与记录", "在这里切换浏览器记录与 Peach 观看评价,分析各自的口味。", "/taste", "[aria-label=\"口味分析的数据来源\"]"),
- lU("import", "取得浏览历史与书签", "读取浏览器记录需要在运行 Peach 的电脑操作;更多方式菜单可以导入历史或书签文件,适合其它设备。", "/taste", "[data-guide-target=\"history-import\"]"),
- lU("history", "管理记录来源", "已取得的记录来源集中列在这里,可以停用本机浏览器读取或移除已导入的数据源;导览不会修改这些记录。", "/taste", "section[aria-label=\"数据源\"]")
+ dU("stats", "馆藏统计", "选择统计视图查看馆藏、存储和观看情况,各视图中的入口可继续查看相关作品。", "/stats", "[aria-label=\"统计视图\"]"),
+ dU("taste", "口味与记录", "在这里切换浏览器记录与 Peach 观看评价,分析各自的口味。", "/taste", "[aria-label=\"口味分析的数据来源\"]"),
+ dU("import", "取得浏览历史与书签", "读取浏览器记录需要在运行 Peach 的电脑操作;更多方式菜单可以导入历史或书签文件,适合其它设备。", "/taste", "[data-guide-target=\"history-import\"]"),
+ dU("history", "管理记录来源", "已取得的记录来源集中列在这里,可以停用本机浏览器读取或移除已导入的数据源;导览不会修改这些记录。", "/taste", "section[aria-label=\"数据源\"]")
]
},
{
@@ -47201,9 +47214,9 @@ var cU = (e, t, n, r, i, a) => ({
title: "从外部加入内容",
summary: "云下载、目录映射与浏览器添加。",
steps: [
- lU("downloads", "配置下载渠道", "先连接支持的渠道,再指定云端目标目录与本地媒体目录。下载完成后按目录规则入库。", "/settings/downloads", "[data-guide-target=\"download\"]"),
- lU("search", "搜索资源", "资源搜索使用配置的索引器。查到结果后还需要你主动选择下载。", "/settings/subscriptions", "[data-guide-target=\"indexers\"]"),
- lU("browser", "浏览器添加 JAV", "用户脚本与 Peach 配对后可从浏览器添加作品。专用令牌、默认渠道和开关在下载渠道里管理。", "/settings/downloads", "[data-guide-target=\"browser\"]")
+ dU("downloads", "配置下载渠道", "先连接支持的渠道,再指定云端目标目录与本地媒体目录。下载完成后按目录规则入库。", "/settings/downloads", "[data-guide-target=\"download\"]"),
+ dU("search", "搜索资源", "资源搜索使用配置的索引器。查到结果后还需要你主动选择下载。", "/settings/subscriptions", "[data-guide-target=\"indexers\"]"),
+ dU("browser", "浏览器添加 JAV", "用户脚本与 Peach 配对后可从浏览器添加作品。专用令牌、默认渠道和开关在下载渠道里管理。", "/settings/downloads", "[data-guide-target=\"browser\"]")
]
},
{
@@ -47212,18 +47225,18 @@ var cU = (e, t, n, r, i, a) => ({
title: "手机与其他设备",
summary: "访问地址、密码、局域网和公网入口。",
steps: [
- lU("address", "找到访问地址", "同一局域网的设备使用 Peach 的局域网地址。仅本机访问时,其它设备无法连接。", "/settings/network", "[data-guide-target=\"port\"]"),
- lU("password", "访问密码", "能连接到 Peach 的设备按访问密码登录。显示偏好与访问权限是不同的设置。", "/settings/network", "[data-guide-target=\"access\"]"),
- lU("tunnel", "需要时启用公网入口", "Cloudflare 公网入口适合离开局域网后访问,需要按实际部署配置连接信息。", "/settings/network", "[data-guide-target=\"tunnel\"]")
+ dU("address", "找到访问地址", "同一局域网的设备使用 Peach 的局域网地址。仅本机访问时,其它设备无法连接。", "/settings/network", "[data-guide-target=\"port\"]"),
+ dU("password", "访问密码", "能连接到 Peach 的设备按访问密码登录。显示偏好与访问权限是不同的设置。", "/settings/network", "[data-guide-target=\"access\"]"),
+ dU("tunnel", "需要时启用公网入口", "Cloudflare 公网入口适合离开局域网后访问,需要按实际部署配置连接信息。", "/settings/network", "[data-guide-target=\"tunnel\"]")
]
}
-], Ive = "当前浏览器 · 修改后自动保存", dU = "跟随馆藏 · 修改后自动保存", fU = "运行 Peach 的电脑 · 确认后保存配置", pU = (e, t, n = Ive) => t.map(([t, r, i, a, o]) => cU(t, r, i, `/settings/${e}`, a || `[data-guide-target="${t}"]`, o || n)), mU = [
+], zve = "当前浏览器 · 修改后自动保存", pU = "跟随馆藏 · 修改后自动保存", mU = "运行 Peach 的电脑 · 确认后保存配置", hU = (e, t, n = zve) => t.map(([t, r, i, a, o]) => uU(t, r, i, `/settings/${e}`, a || `[data-guide-target="${t}"]`, o || n)), gU = [
{
id: "appearance",
kind: "settings",
title: Of.appearance,
summary: "主题、光晕与导航入口。",
- steps: pU("appearance", [
+ steps: hU("appearance", [
[
"theme",
"主题",
@@ -47253,7 +47266,7 @@ var cU = (e, t, n, r, i, a) => ({
"导航入口与顺序",
"把常用入口放到侧栏,拖动调整顺序。",
"[data-sidebar-setting]",
- dU
+ pU
]
])
},
@@ -47262,7 +47275,7 @@ var cU = (e, t, n, r, i, a) => ({
kind: "settings",
title: Of.playback,
summary: "列表呈现、悬停预览与播放行为。",
- steps: pU("playback", [
+ steps: hU("playback", [
[
"batch",
"每批作品",
@@ -47318,13 +47331,13 @@ var cU = (e, t, n, r, i, a) => ({
kind: "settings",
title: Of.jav,
summary: "封面与新作筛选。",
- steps: pU("jav", [
+ steps: hU("jav", [
[
"names",
"女优名称",
"选择中文或日文名称;偏好跟随馆藏,其他设备读取同一份设置。",
"#performerNameLanguageSetting",
- dU
+ pU
],
[
"image",
@@ -47349,21 +47362,21 @@ var cU = (e, t, n, r, i, a) => ({
"隐藏大合集",
"过滤新作中的大合集,只影响新作展示,馆藏仍可查找。",
"#feedHideGroupSetting",
- dU
+ pU
],
[
"solo-compilations",
"隐藏单人合集",
"过滤新作中的单人合集,只影响新作展示,馆藏仍可查找。",
"#feedHideSoloSetting",
- dU
+ pU
],
[
"excerpts",
"隐藏切片",
"过滤新作中的切片,只影响新作展示,馆藏仍可查找。",
"#feedHideExcerptSetting",
- dU
+ pU
]
])
},
@@ -47372,12 +47385,12 @@ var cU = (e, t, n, r, i, a) => ({
kind: "settings",
title: Of.search,
summary: "搜索记录、推荐数量与口味入口。",
- steps: [...pU("search", [[
+ steps: [...hU("search", [[
"history",
"搜索记录",
"设置保留的搜索记录上限,0 表示不记录。",
"#searchHistoryLimitSetting"
- ]], dU), ...pU("search", [[
+ ]], pU), ...hU("search", [[
"related",
"相关推荐数量",
"决定详情中显示多少项相关推荐。口味和记录来源在口味页面管理。",
@@ -47389,7 +47402,7 @@ var cU = (e, t, n, r, i, a) => ({
kind: "settings",
title: Of.content,
summary: "SFW 模式与画面显示。",
- steps: pU("content", [[
+ steps: hU("content", [[
"sfw",
"SFW 模式",
"隐藏敏感画面并停止悬停预览,适合需要遮挡画面的环境。访问控制请另设访问密码。",
@@ -47401,7 +47414,7 @@ var cU = (e, t, n, r, i, a) => ({
kind: "settings",
title: kf.library,
summary: "媒体库、目录、读取与处理方式。",
- steps: pU("library", [
+ steps: hU("library", [
[
"media",
"媒体库名称与外观",
@@ -47452,14 +47465,14 @@ var cU = (e, t, n, r, i, a) => ({
"视频预览",
"生成视频预览会读取视频并产生缓存。时间轴预览的开关与采集间隔控制本机磁盘缩略图;抽帧解码方式决定生成预览使用的解码器。修改后自动保存,并受媒体库处理方式与读取策略约束。"
]
- ], fU)
+ ], mU)
},
{
id: "subscriptions",
kind: "settings",
title: kf.subscriptions,
summary: "资料来源、关注、索引器与站点入口。",
- steps: pU("subscriptions", [
+ steps: hU("subscriptions", [
[
"sources",
"采集来源与登录状态",
@@ -47486,14 +47499,14 @@ var cU = (e, t, n, r, i, a) => ({
"作品资料站点",
"配置资料站点和镜像入口,用于打开相关作品页面。地址和登录凭据分别管理。"
]
- ], fU)
+ ], mU)
},
{
id: "downloads",
kind: "settings",
title: kf.downloads,
summary: "云下载目录、账号与浏览器配对。",
- steps: pU("downloads", [
+ steps: hU("downloads", [
[
"download",
"云下载",
@@ -47509,14 +47522,14 @@ var cU = (e, t, n, r, i, a) => ({
"浏览器添加 JAV",
"安装用户脚本并配对 Peach。默认渠道决定提交到哪里;启用开关控制功能,专用令牌可更新或关闭,脚本检测帮助确认配对。"
]
- ], fU)
+ ], mU)
},
{
id: "network",
kind: "settings",
title: kf.network,
summary: "访问端口、代理、密码和公网入口。",
- steps: pU("network", [
+ steps: hU("network", [
[
"port",
"访问地址与端口",
@@ -47537,14 +47550,14 @@ var cU = (e, t, n, r, i, a) => ({
"Cloudflare 公网入口",
"临时链接用于临时连接,命名隧道使用主机名与隧道令牌。连接状态显示是否已可用,按需要启用。"
]
- ], fU)
+ ], mU)
},
{
id: "app-maintenance",
kind: "settings",
title: kf.maintenance,
summary: "更新、存储、数据选择与应用维护。",
- steps: pU("maintenance", [
+ steps: hU("maintenance", [
[
"updates",
"检查更新",
@@ -47590,14 +47603,14 @@ var cU = (e, t, n, r, i, a) => ({
"卸载 Peach",
"卸载移除程序;完全卸载还移除设置、资料库、记录、凭据和缓存。执行前核对页面列出的数据目录与确认内容。"
]
- ], fU)
+ ], mU)
},
{
id: "diagnostics",
kind: "settings",
title: kf.diagnostics,
summary: "遇到问题时查看检查项与诊断报告。",
- steps: pU("diagnostics", [
+ steps: hU("diagnostics", [
[
"attention",
"需要关注的检查项",
@@ -47622,7 +47635,7 @@ var cU = (e, t, n, r, i, a) => ({
]
], "只读检查 · 重新检查与下载由你主动执行")
}
-], Lve = {
+], Bve = {
glow: [
["配色预设", "一次应用一组配色和参数,适合先挑选整体外观。"],
["强度", "控制光晕的明亮程度;太抢眼时降低。"],
@@ -47729,8 +47742,8 @@ var cU = (e, t, n, r, i, a) => ({
["上传预览", "查看本次会包含的内容,再决定是否启用明细上传。"]
]
};
-for (let e of mU) for (let t of e.steps) t.details = Lve[t.id], (t.id === "preview" || t.id === "transcode") && (t.scope = "运行 Peach 的电脑 · 修改后自动保存"), (t.id === "follow-options" || t.id === "sources" || t.id === "reporting" || t.id === "storage" || t.id === "ledger-backups") && (t.scope = "按页面中各项的保存或确认动作生效");
-var hU = [...uU, ...mU], Rve = [
+for (let e of gU) for (let t of e.steps) t.details = Bve[t.id], (t.id === "preview" || t.id === "transcode") && (t.scope = "运行 Peach 的电脑 · 修改后自动保存"), (t.id === "follow-options" || t.id === "sources" || t.id === "reporting" || t.id === "storage" || t.id === "ledger-backups") && (t.scope = "按页面中各项的保存或确认动作生效");
+var _U = [...fU, ...gU], Vve = [
{
id: "browse",
kind: "interface",
@@ -47808,35 +47821,35 @@ var hU = [...uU, ...mU], Rve = [
]
}
];
-function zve(e) {
- return e === "/" ? uU[0] : mU.find((t) => t.steps[0]?.route === e) || uU.find((t) => t.id !== "basics" && t.steps.some((t) => t.route === e)) || uU[0];
+function Hve(e) {
+ return e === "/" ? fU[0] : gU.find((t) => t.steps[0]?.route === e) || fU.find((t) => t.id !== "basics" && t.steps.some((t) => t.route === e)) || fU[0];
}
// src/onboarding/guide-state.ts
-var Bve = () => ({
+var Uve = () => ({
version: 1,
campaign: "",
invited: !1,
completed: !1,
chapters: {}
});
-function gU(e, t) {
+function vU(e, t) {
let n = e.chapters[t.id]?.read || [];
return t.steps.every((e) => n.includes(e.id));
}
-function Vve(e, t) {
+function Wve(e, t) {
let n = e.chapters[t.id];
- return !n || gU(e, t) ? 0 : n.next < t.steps.length ? n.next : t.steps.findIndex((e) => !n.read.includes(e.id));
+ return !n || vU(e, t) ? 0 : n.next < t.steps.length ? n.next : t.steps.findIndex((e) => !n.read.includes(e.id));
}
-function Hve() {
+function Gve() {
return B("/api/tutorial-progress");
}
-function Uve(e, t) {
+function Kve(e, t) {
return V("/api/tutorial-progress", {
campaign: e,
...t
});
}
-function Wve(e, t, n, r, i) {
+function qve(e, t, n, r, i) {
let a = e.chapters[t] || {
next: 0,
read: [],
@@ -47854,99 +47867,99 @@ function Wve(e, t, n, r, i) {
}
};
}
-var _U = null, vU = /* @__PURE__ */ new Set();
-function yU(e = {}) {
- vU.size || (_U = e);
- for (let t of vU) t(e);
+var yU = null, bU = /* @__PURE__ */ new Set();
+function xU(e = {}) {
+ bU.size || (yU = e);
+ for (let t of bU) t(e);
}
-function Gve(e) {
- if (vU.add(e), _U) {
- let t = _U;
- _U = null, queueMicrotask(() => {
- vU.has(e) && e(t);
+function Jve(e) {
+ if (bU.add(e), yU) {
+ let t = yU;
+ yU = null, queueMicrotask(() => {
+ bU.has(e) && e(t);
});
}
return () => {
- vU.delete(e);
+ bU.delete(e);
};
}
// src/react/components/card.tsx
-var Kve = "min-w-0", qve = {
+var Yve = "min-w-0", Xve = {
filled: "bg-background-secondary-default",
outlined: "border border-separator-border bg-background-primary-default",
raised: "bg-background-primary-default"
-}, Jve = {
+}, Zve = {
default: "rounded-2xl shadow-card",
chart: "rounded-2-5xl",
surface: "rounded-surface",
plain: "rounded-2xl"
-}, Yve = {
+}, Qve = {
line: "border border-border-button-default",
soft: "border border-separator-border",
error: "outline-1 -outline-offset-1 outline-border-error-default"
-}, Xve = {
+}, $ve = {
none: "",
default: "p-5"
-}, Zve = "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", Qve = "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 bU(e = {}) {
+}, eye = "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", tye = "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 SU(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 [
- Kve,
- qve[t],
- Jve[s],
- Xve[n],
- a ? Yve[a] : "",
- r ? Zve : "",
- i ? Qve : "",
+ Yve,
+ Xve[t],
+ Zve[s],
+ $ve[n],
+ a ? Qve[a] : "",
+ r ? eye : "",
+ i ? tye : "",
o ?? ""
].filter(Boolean).join(" ");
}
// src/react/onboarding/guide-directory.tsx
-var $ve = {
- browse: UB,
- collect: bB,
- watch: RB,
- manage: AB,
- experience: IB,
- discovery: HB,
- storage: wB,
- system: WB
-}, eye = {
- basics: CB,
- "find-play": UB,
- entities: JB,
- jav: OB,
- save: bB,
- follow: HB,
- insights: yB,
- viewing: RB,
- devices: GB,
- external: TB,
- maintenance: qB,
- appearance: IB,
- playback: RB,
- content: DB,
- "search-settings": UB,
- "jav-settings": OB,
- subscriptions: HB,
- library: wB,
- downloads: TB,
- network: GB,
- "app-maintenance": qB,
- diagnostics: Lge
+var nye = {
+ browse: GB,
+ collect: SB,
+ watch: BB,
+ manage: MB,
+ experience: RB,
+ discovery: WB,
+ storage: EB,
+ system: KB
+}, rye = {
+ basics: TB,
+ "find-play": GB,
+ entities: XB,
+ jav: AB,
+ save: SB,
+ follow: WB,
+ insights: xB,
+ viewing: BB,
+ devices: qB,
+ external: DB,
+ maintenance: YB,
+ appearance: RB,
+ playback: BB,
+ content: kB,
+ "search-settings": GB,
+ "jav-settings": AB,
+ subscriptions: WB,
+ library: EB,
+ downloads: DB,
+ network: qB,
+ "app-maintenance": YB,
+ diagnostics: Bge
};
-function tye({ chapter: e, className: t = "size-5" }) {
- let n = eye[e] || CB;
+function iye({ chapter: e, className: t = "size-5" }) {
+ let n = rye[e] || TB;
return /* @__PURE__ */ (0, I.jsx)(n, {
"aria-hidden": !0,
className: q(t, "shrink-0")
});
}
-function xU({ icon: e, title: t, description: n, children: r, completed: i = !1 }) {
+function CU({ icon: e, title: t, description: n, children: r, completed: i = !1 }) {
return /* @__PURE__ */ (0, I.jsxs)("section", {
"data-guide-banner": "",
"data-guide-completed": i || void 0,
- className: bU({
+ className: SU({
radius: "plain",
className: "flex flex-col gap-4"
}),
@@ -47975,8 +47988,8 @@ function xU({ icon: e, title: t, description: n, children: r, completed: i = !1
})]
});
}
-function SU({ chapter: e, progress: t, loading: n, start: r }) {
- let i = gU(t, e), a = !i && !!t.chapters[e.id];
+function wU({ chapter: e, progress: t, loading: n, start: r }) {
+ let i = vU(t, e), a = !i && !!t.chapters[e.id];
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
disabled: n,
@@ -47986,7 +47999,7 @@ function SU({ chapter: e, progress: t, loading: n, start: r }) {
children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(tye, { chapter: e.id })
+ children: /* @__PURE__ */ (0, I.jsx)(iye, { chapter: e.id })
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 flex-1 flex-col gap-1",
@@ -47998,7 +48011,7 @@ function SU({ chapter: e, progress: t, loading: n, start: r }) {
children: e.summary
})]
}),
- i ? /* @__PURE__ */ (0, I.jsx)(CU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
+ i ? /* @__PURE__ */ (0, I.jsx)(TU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
className: "shrink-0 text-caption-1-regular tabular-nums text-text-secondary",
children: [
a ? "继续 · " : "",
@@ -48006,17 +48019,17 @@ function SU({ chapter: e, progress: t, loading: n, start: r }) {
" 步"
]
}),
- /* @__PURE__ */ (0, I.jsx)(_B, {
+ /* @__PURE__ */ (0, I.jsx)(yB, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0 text-text-secondary"
})
]
});
}
-function CU() {
+function TU() {
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex shrink-0 items-center gap-1 rounded-full bg-notification-success-background px-2 py-1 text-caption-1-medium text-notification-success-foreground",
- children: [/* @__PURE__ */ (0, I.jsx)(xB, {
+ children: [/* @__PURE__ */ (0, I.jsx)(CB, {
"aria-hidden": !0,
className: "size-4"
}), /* @__PURE__ */ (0, I.jsx)("span", {
@@ -48025,17 +48038,17 @@ function CU() {
})]
});
}
-function nye({ kind: e, query: t, setQuery: n, context: r, progress: i, loading: a, start: o }) {
- let [s, c] = (0, F.useState)(null), l = hU.find((t) => t.id === (e === "interface" ? "basics" : "appearance")), u = gU(i, l), d = !u && !!i.chapters[l.id], f = t.trim().toLowerCase(), p = hU.filter((t) => t.kind === e && `${t.title} ${t.summary} ${t.steps.map((e) => `${e.title} ${e.body} ${(e.details || []).flat().join(" ")}`).join(" ")}`.toLowerCase().includes(f));
+function aye({ kind: e, query: t, setQuery: n, context: r, progress: i, loading: a, start: o }) {
+ let [s, c] = (0, F.useState)(null), l = _U.find((t) => t.id === (e === "interface" ? "basics" : "appearance")), u = vU(i, l), d = !u && !!i.chapters[l.id], f = t.trim().toLowerCase(), p = _U.filter((t) => t.kind === e && `${t.title} ${t.summary} ${t.steps.map((e) => `${e.title} ${e.body} ${(e.details || []).flat().join(" ")}`).join(" ")}`.toLowerCase().includes(f));
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, I.jsxs)(xU, {
+ /* @__PURE__ */ (0, I.jsxs)(CU, {
completed: u,
- icon: e === "interface" ? CB : WB,
+ icon: e === "interface" ? TB : KB,
title: e === "interface" ? "先认识 Peach" : "按习惯调整 Peach",
description: e === "interface" ? "先用 4 步认识常用入口,其余功能用到时再看。" : "先了解外观与导航,其余设置按需要查看。",
- children: [u ? /* @__PURE__ */ (0, I.jsx)(CU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [u ? /* @__PURE__ */ (0, I.jsx)(TU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
className: "text-body-2-regular text-text-secondary",
children: [l.steps.length, " 步 · 随时可以退出"]
}), /* @__PURE__ */ (0, I.jsx)(J, {
@@ -48048,26 +48061,26 @@ function nye({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
})
})]
}),
- /* @__PURE__ */ (0, I.jsx)(tV, {
+ /* @__PURE__ */ (0, I.jsx)(rV, {
"aria-label": "搜索教程",
value: t,
onChange: n,
- children: /* @__PURE__ */ (0, I.jsx)(rV, {
+ children: /* @__PURE__ */ (0, I.jsx)(aV, {
type: "search",
placeholder: e === "settings" ? "搜索设置名称或用途" : "搜索功能或页面",
- leadingIcon: UB
+ leadingIcon: GB
})
}),
f ? p.length ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-chapters",
- children: p.map((e) => /* @__PURE__ */ (0, I.jsx)(SU, {
+ children: p.map((e) => /* @__PURE__ */ (0, I.jsx)(wU, {
chapter: e,
progress: i,
loading: a,
start: o
}, e.id))
- }) : /* @__PURE__ */ (0, I.jsx)(cV, {
- icon: UB,
+ }) : /* @__PURE__ */ (0, I.jsx)(uV, {
+ icon: GB,
title: "没有匹配的教程",
size: "compact",
children: "试试功能名或设置名称。"
@@ -48085,12 +48098,12 @@ function nye({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
}) : null]
}), /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-topics",
- children: Rve.filter((t) => t.kind === e).map((e) => {
- let t = $ve[e.id];
+ children: Vve.filter((t) => t.kind === e).map((e) => {
+ let t = nye[e.id];
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-guide-topic": e.id,
className: "peach-guide-topic",
- children: /* @__PURE__ */ (0, I.jsx)(IH, {
+ children: /* @__PURE__ */ (0, I.jsx)(RH, {
trailing: !0,
isOpen: s === e.id,
onOpenChange: (t) => c(t ? e.id : null),
@@ -48115,8 +48128,8 @@ function nye({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
}),
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-topic-chapters",
- children: e.chapters.map((e) => /* @__PURE__ */ (0, I.jsx)(SU, {
- chapter: hU.find((t) => t.id === e),
+ children: e.chapters.map((e) => /* @__PURE__ */ (0, I.jsx)(wU, {
+ chapter: _U.find((t) => t.id === e),
progress: i,
loading: a,
start: o
@@ -48130,14 +48143,14 @@ function nye({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
});
}
// src/onboarding/guide-entry.ts
-var wU = "侧栏收起时,先点左上角的导航按钮。", TU = (...e) => ({
+var EU = "侧栏收起时,先点左上角的导航按钮。", DU = (...e) => ({
path: ["侧栏", ...e],
- hint: wU
-}), EU = (e) => ({
+ hint: EU
+}), OU = (e) => ({
path: ["侧栏底部的设置", e],
- hint: wU
+ hint: EU
});
-function rye(e) {
+function oye(e) {
if (e.surface) return e.id === "external" ? { path: [
"作品卡片",
"作品详情",
@@ -48155,7 +48168,7 @@ function rye(e) {
let [t = "/", n = ""] = e.route.split("#")[0].split("?"), r = t.split("/")[2];
if (t.startsWith("/settings/")) {
let e = Of[r];
- if (e) return EU(e);
+ if (e) return OU(e);
let t = kf[r];
if (t) return {
path: [
@@ -48163,11 +48176,11 @@ function rye(e) {
"Peach 配置",
t
],
- hint: wU
+ hint: EU
};
}
let i = new URLSearchParams(n);
- if (t === "/jav" || i.get("jav") === "1") return TU("JAV", aU.find(([e]) => e === (i.get("tab") || "library"))?.[1] || aU[0][1]);
+ if (t === "/jav" || i.get("jav") === "1") return DU("JAV", sU.find(([e]) => e === (i.get("tab") || "library"))?.[1] || sU[0][1]);
if (t === "/") {
switch (e.id) {
case "search": return {
@@ -48177,9 +48190,9 @@ function rye(e) {
case "navigation": return { path: ["左上角导航按钮", "侧栏中的浏览入口"] };
case "library": return {
path: ["侧栏顶部", "媒体库选择器"],
- hint: wU
+ hint: EU
};
- case "preferences": return EU(Of.appearance);
+ case "preferences": return OU(Of.appearance);
case "wall": return { path: ["页面顶部", "播放墙按钮"] };
case "immerse": return { path: ["页面顶部", "沉浸模式按钮"] };
case "cards":
@@ -48201,22 +48214,22 @@ function rye(e) {
hint: "来源、时长等更多筛选位于侧栏。"
};
}
- return TU("首页");
+ return DU("首页");
}
if ([
"/review",
"/quality-goals",
"/trash"
- ].includes(t)) return TU("管理", $f["/data-cleanup"].title, t === "/trash" ? "回收站" : $f[t].title);
+ ].includes(t)) return DU("管理", $f["/data-cleanup"].title, t === "/trash" ? "回收站" : $f[t].title);
let a = $f[t];
if (a?.nav && a.title) {
- let e = TU(a.title);
+ let e = DU(a.title);
return t === "/playlists" && (e.hint = "若侧栏没有播放列表,到设置 → 外观与导航 → 导航入口与顺序添加;手机上先展开侧栏。"), e;
}
- if (a?.section && a.title) return TU("管理", a.title);
+ if (a?.section && a.title) return DU("管理", a.title);
}
// src/react/onboarding/guide-help.tsx
-function iye({ details: e }) {
+function sye({ details: e }) {
return e?.length ? /* @__PURE__ */ (0, I.jsx)("dl", {
className: "flex flex-col gap-3",
children: e.map(([e, t]) => /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -48232,8 +48245,8 @@ function iye({ details: e }) {
}) : null;
}
// src/react/onboarding/guide-popover.tsx
-function aye({ step: e, position: t, total: n, missing: r, next: i, previous: a, close: o, invitation: s }) {
- let c = LV(), l = rye(e);
+function cye({ step: e, position: t, total: n, missing: r, next: i, previous: a, close: o, invitation: s }) {
+ let c = zV(), l = oye(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "peach-guide-popover-content",
onPointerDown: (e) => e.stopPropagation(),
@@ -48244,7 +48257,7 @@ function aye({ step: e, position: t, total: n, missing: r, next: i, previous: a,
id: "driver-popover-title",
className: "text-body-medium text-text-primary",
children: e.title
- }), /* @__PURE__ */ (0, I.jsx)(dV, {
+ }), /* @__PURE__ */ (0, I.jsx)(pV, {
label: s ? "关闭教程提示" : "结束导览",
onPress: o
})]
@@ -48261,7 +48274,7 @@ function aye({ step: e, position: t, total: n, missing: r, next: i, previous: a,
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex items-center gap-2 text-body-2-medium text-text-secondary",
- children: [/* @__PURE__ */ (0, I.jsx)(zge, {
+ children: [/* @__PURE__ */ (0, I.jsx)(Hge, {
className: "size-4 shrink-0",
"aria-hidden": "true"
}), "打开方式"]
@@ -48270,7 +48283,7 @@ function aye({ step: e, position: t, total: n, missing: r, next: i, previous: a,
className: "flex flex-wrap items-center gap-x-1 gap-y-1 text-body-2-medium text-text-primary",
children: l.path.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("li", {
className: "inline-flex items-center gap-1",
- children: [t ? /* @__PURE__ */ (0, I.jsx)(_B, {
+ children: [t ? /* @__PURE__ */ (0, I.jsx)(yB, {
className: "size-4 shrink-0 text-text-secondary",
"aria-hidden": "true"
}) : null, /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
@@ -48291,15 +48304,15 @@ function aye({ step: e, position: t, total: n, missing: r, next: i, previous: a,
className: "text-caption-1-regular text-text-secondary",
children: "导览期间不自动播放;退出后仍按原来的播放设置使用。"
}) : null,
- e.details?.length ? /* @__PURE__ */ (0, I.jsx)(IH, {
+ e.details?.length ? /* @__PURE__ */ (0, I.jsx)(RH, {
summary: "更多说明",
- children: /* @__PURE__ */ (0, I.jsx)(iye, { details: e.details })
+ children: /* @__PURE__ */ (0, I.jsx)(sye, { details: e.details })
}) : null,
e.scope ? /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: e.scope
}) : null,
- r ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ r ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "neutral",
children: e.surface ? "尚未取得可演示的视频或对应控件。请先添加视频,或跳过后稍后重看。" : "当前页面未显示这个入口,可能尚无内容、没有配置权限或仍在加载。可以跳过,稍后重看。"
}) : null
@@ -48353,14 +48366,14 @@ function aye({ step: e, position: t, total: n, missing: r, next: i, previous: a,
]
});
}
-function DU(e, t, n) {
+function kU(e, t, n) {
let r = document.createElement("div");
e.replaceChildren(r, t);
let i = (0, zt.createRoot)(r);
- return (0, Rt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(aye, { ...n }))), () => i.unmount();
+ return (0, Rt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(cye, { ...n }))), () => i.unmount();
}
// src/react/onboarding/tutorial-center.tsx
-function oye({ go: e }) {
+function lye({ go: e }) {
let [t, n] = (0, F.useState)(null), [r, i] = (0, F.useState)(""), [a, o] = (0, F.useState)(0);
(0, F.useEffect)(() => {
let e = new AbortController();
@@ -48374,8 +48387,8 @@ function oye({ go: e }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, I.jsxs)(xU, {
- icon: Rge,
+ /* @__PURE__ */ (0, I.jsxs)(CU, {
+ icon: Vge,
title: "从第一份收藏开始",
description: "连接媒体目录,查看入库结果,再打开馆藏。",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
@@ -48386,7 +48399,7 @@ function oye({ go: e }) {
children: "连接媒体目录"
})]
}),
- r ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ r ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -48402,7 +48415,7 @@ function oye({ go: e }) {
/* @__PURE__ */ (0, I.jsxs)("li", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(AB, {
+ children: /* @__PURE__ */ (0, I.jsx)(MB, {
"aria-hidden": !0,
className: "size-5"
})
@@ -48421,7 +48434,7 @@ function oye({ go: e }) {
/* @__PURE__ */ (0, I.jsxs)("li", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(Xge, {
+ children: /* @__PURE__ */ (0, I.jsx)($ge, {
"aria-hidden": !0,
className: "size-5"
})
@@ -48440,7 +48453,7 @@ function oye({ go: e }) {
/* @__PURE__ */ (0, I.jsxs)("li", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(RB, {
+ children: /* @__PURE__ */ (0, I.jsx)(BB, {
"aria-hidden": !0,
className: "size-5"
})
@@ -48458,7 +48471,7 @@ function oye({ go: e }) {
] })
]
}),
- /* @__PURE__ */ (0, I.jsx)(IH, {
+ /* @__PURE__ */ (0, I.jsx)(RH, {
summary: "更多接入方式",
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-routes",
@@ -48467,31 +48480,31 @@ function oye({ go: e }) {
title: "关注创作者",
description: l ? "当前启用来源的必要凭据已具备。" : s.length ? "已有关注来源,请检查必要凭据。" : "添加想持续追踪的创作者与来源。",
path: "/subscriptions",
- icon: HB
+ icon: WB
},
{
title: "口味与记录",
description: t?.taste.history_sources ? `已导入 ${t.taste.history_sources} 份浏览器历史。` : "按需要导入浏览历史或书签。",
path: "/taste",
- icon: yB
+ icon: xB
},
{
title: "云下载与浏览器添加",
description: "连接渠道、设置目标目录,按需要配对用户脚本。",
path: "/settings/downloads",
- icon: TB
+ icon: DB
},
{
title: "手机访问",
description: "查看访问范围、地址与密码。",
path: "/settings/network",
- icon: GB
+ icon: qB
},
...u ? [{
title: "人工复核",
description: `当前有 ${u.toLocaleString()} 条待复核资料。`,
path: "/review",
- icon: xB
+ icon: CB
}] : []
].map(({ title: t, description: n, path: r, icon: i }) => /* @__PURE__ */ (0, I.jsxs)("div", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -48518,16 +48531,16 @@ function oye({ go: e }) {
]
});
}
-var OU = "tutorial-sync";
-function sye({ actions: e }) {
- let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(!1), [a, o] = (0, F.useState)("interface"), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(Bve), [d, f] = (0, F.useState)(!1), [p, m] = (0, F.useState)(""), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(!1), y = LV(), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(0), C = (0, F.useRef)(l);
+var AU = "tutorial-sync";
+function uye({ actions: e }) {
+ let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(!1), [a, o] = (0, F.useState)("interface"), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(Uve), [d, f] = (0, F.useState)(!1), [p, m] = (0, F.useState)(""), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(!1), y = zV(), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(0), C = (0, F.useRef)(l);
C.current = l;
let w = (0, F.useRef)(0), T = (0, F.useRef)(null), E = (0, F.useRef)(""), D = (0, F.useRef)(!1), O = (0, F.useRef)(() => {}), k = (0, F.useRef)(Promise.resolve()), A = (0, F.useRef)(0), j = (0, F.useRef)(0), M = (0, F.useRef)(!0), ee = (e) => {
C.current = e, u(e);
}, N = async (e = !0) => {
let t = j.current;
try {
- let n = await Hve();
+ let n = await Gve();
return !M.current || t !== j.current ? !1 : (ee(n), f(!0), e && m(""), b.current || i(!n.invited && !n.completed), !0);
} catch {
return M.current && m("未取得账本中的教程状态,请重新读取。"), !1;
@@ -48537,7 +48550,7 @@ function sye({ actions: e }) {
let n = ++j.current;
A.current += 1, k.current = k.current.then(async () => {
try {
- let r = await Uve(e.campaign, t);
+ let r = await Kve(e.campaign, t);
M.current && n === j.current && ee(r);
} catch {
M.current && (m("教程进度未保存到本机账本,其他设备尚未同步。请重新读取后继续。"), n === j.current && await N(!1));
@@ -48547,8 +48560,8 @@ function sye({ actions: e }) {
});
}, P = (0, F.useRef)(N);
P.current = N, (0, F.useEffect)(() => {
- !p || t ? HV.dismiss(OU) : HV.error(p, {
- id: OU,
+ !p || t ? WV.dismiss(AU) : WV.error(p, {
+ id: AU,
toasterId: "receipts",
duration: Infinity,
action: {
@@ -48559,7 +48572,7 @@ function sye({ actions: e }) {
}
});
}, [p, t]), (0, F.useEffect)(() => () => {
- HV.dismiss(OU);
+ WV.dismiss(AU);
}, []), (0, F.useEffect)(() => {
if (!d && !p) return;
let e = document.getElementById("tutorialBtn");
@@ -48580,7 +48593,7 @@ function sye({ actions: e }) {
let i = !1, a = null;
return import("./peach-app.guide-driver-BZX0VpRC.js").then(({ createGuideSession: t }) => {
i || (a = t({
- mountPopover: DU,
+ mountPopover: kU,
invitation: !0,
navigate: e.navigate,
previous: () => {},
@@ -48615,16 +48628,16 @@ function sye({ actions: e }) {
M.current = !0;
let e = (e) => {
e.target.closest(".ui-configpage form") && (D.current = !0);
- }, t = Op.listen(() => {
+ }, t = Np.listen(() => {
D.current = !1;
});
document.addEventListener("input", e), document.addEventListener("change", e);
- let r = Gve((e) => {
+ let r = Jve((e) => {
(async () => {
let t = document.activeElement;
if (await k.current, !M.current || !await N() || e.invitation) return;
ie(), T.current = t, g(""), c("");
- let r = hU.find((t) => t.id === e.chapter);
+ let r = _U.find((t) => t.id === e.chapter);
e.reopen ? (i(!1), te({
...C.current,
invited: !0,
@@ -48653,11 +48666,11 @@ function sye({ actions: e }) {
g("请先关闭当前详情或对话框,再开始导览。");
return;
}
- if (t.steps.some((e) => e.surface) && c8()?.miniplayerActive()) {
+ if (t.steps.some((e) => e.surface) && u8()?.miniplayerActive()) {
g("请先关闭正在播放的小窗,再开始播放器导览。");
return;
}
- let i = r ? Vve(C.current, t) : 0;
+ let i = r ? Wve(C.current, t) : 0;
if (D.current && t.steps.some((e) => e.route && e.route !== location.pathname)) {
g("当前配置表单有编辑内容。请先处理表单,再开启需要切换页面的章节。");
return;
@@ -48667,7 +48680,7 @@ function sye({ actions: e }) {
try {
let { createGuideSession: r } = await import("./peach-app.guide-driver-BZX0VpRC.js");
if (a !== S.current) return;
- let s = Mf(location.pathname) ? jp() : null, c = new URL(Mf(location.pathname) ? `${s?.pathname || "/"}${s?.search || ""}` : location.href, location.origin);
+ let s = Mf(location.pathname) ? Ip() : null, c = new URL(Mf(location.pathname) ? `${s?.pathname || "/"}${s?.search || ""}` : location.href, location.origin);
new URLSearchParams(location.search).has("edit") && c.searchParams.set("edit", ""), E.current = `${c.pathname}${c.search}${c.hash}`, w.current = Math.min(i, t.steps.length - 1), ne(), (0, Rt.flushSync)(() => n(!1)), document.body.classList.add("peach-guiding");
let l = () => {
let e = C.current, n = e.chapters[t.id] || {
@@ -48691,7 +48704,7 @@ function sye({ actions: e }) {
}), b.current?.show(t.steps[w.current], w.current, t.steps.length);
};
b.current = r({
- mountPopover: DU,
+ mountPopover: kU,
navigate: e.navigate,
close: () => {
ie(!0), o(t.kind);
@@ -48702,18 +48715,18 @@ function sye({ actions: e }) {
},
next: async (e = !1) => {
let n = w.current + 1;
- if (te(Wve(C.current, t.id, t.steps[w.current].id, n, e), {
+ if (te(qve(C.current, t.id, t.steps[w.current].id, n, e), {
action: "step",
chapter: t.id,
step: t.steps[w.current].id,
next: n,
skipped: e
}), n >= t.steps.length) {
- if (t.id === "basics" && gU(C.current, t) && te({
+ if (t.id === "basics" && vU(C.current, t) && te({
...C.current,
completed: !0
}, { action: "complete" }), await k.current, a !== S.current) return;
- ie(!0), o(t.kind), g(gU(C.current, t) ? t.id === "basics" ? C.current.completed ? "快速导览已完成,所有设备的教程入口都会收起。以后可到设置 → Peach 配置 → 应用与维护 → 新手教程重新打开,其余内容按需查看。" : "导览已结束,但完成状态未保存。请重新读取教程状态后再试。" : "这段导览已完成。需要时再了解其他功能。" : "本章已结束,未显示的步骤尚未完成,可以稍后继续。");
+ ie(!0), o(t.kind), g(vU(C.current, t) ? t.id === "basics" ? C.current.completed ? "快速导览已完成,所有设备的教程入口都会收起。以后可到设置 → Peach 配置 → 应用与维护 → 新手教程重新打开,其余内容按需查看。" : "导览已结束,但完成状态未保存。请重新读取教程状态后再试。" : "这段导览已完成。需要时再了解其他功能。" : "本章已结束,未显示的步骤尚未完成,可以稍后继续。");
} else w.current = n, l();
}
}), l();
@@ -48726,8 +48739,8 @@ function sye({ actions: e }) {
O.current = (e, t) => {
se(e, t);
};
- let ce = zve(location.pathname);
- return (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: /* @__PURE__ */ (0, I.jsxs)(aV, {
+ let ce = Hve(location.pathname);
+ return (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: /* @__PURE__ */ (0, I.jsxs)(sV, {
isOpen: t,
onOpenChange: (e) => {
e || ae();
@@ -48742,18 +48755,18 @@ function sye({ actions: e }) {
id: "guideTitle",
className: "text-title-2-medium text-text-primary",
children: "新手教程"
- }), /* @__PURE__ */ (0, I.jsx)(dV, {
+ }), /* @__PURE__ */ (0, I.jsx)(pV, {
label: "关闭新手教程",
onPress: ae
})]
}),
/* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-tools flex shrink-0 flex-col gap-4 px-6 pt-4 pb-3",
- children: /* @__PURE__ */ (0, I.jsx)(eU, {
+ children: /* @__PURE__ */ (0, I.jsx)(nU, {
"aria-label": "教程路径",
name: "guide-path",
orientation: "horizontal",
- className: tU,
+ className: rU,
value: a,
onChange: (e) => {
o(e), c(""), g("");
@@ -48762,9 +48775,9 @@ function sye({ actions: e }) {
["start", "开始使用"],
["interface", "界面导览"],
["settings", "设置导览"]
- ].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Az, {
+ ].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Mz, {
value: e,
- className: nU,
+ className: iU,
children: t
}, e))
})
@@ -48775,7 +48788,7 @@ function sye({ actions: e }) {
ref: y,
className: "peach-guide-body",
children: [
- p ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ p ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "error",
className: "mb-4",
action: /* @__PURE__ */ (0, I.jsx)(J, {
@@ -48787,12 +48800,12 @@ function sye({ actions: e }) {
}),
children: p
}) : null,
- h ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ h ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "neutral",
className: "mb-4",
children: h
}) : null,
- a === "start" ? /* @__PURE__ */ (0, I.jsx)(oye, { go: oe }) : /* @__PURE__ */ (0, I.jsx)(nye, {
+ a === "start" ? /* @__PURE__ */ (0, I.jsx)(lye, { go: oe }) : /* @__PURE__ */ (0, I.jsx)(aye, {
kind: a,
query: s,
setQuery: c,
@@ -48810,15 +48823,15 @@ function sye({ actions: e }) {
}) }), document.body);
}
// src/react/client-updates.tsx
-var cye = 12e4, lye = 15e3, kU = () => document.visibilityState !== "hidden", AU = /* @__PURE__ */ new Set([
+var dye = 12e4, fye = 15e3, jU = () => document.visibilityState !== "hidden", MU = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), jU = "/settings/maintenance#releaseUpdates";
-function uye() {
+]), NU = "/settings/maintenance#releaseUpdates";
+function pye() {
try {
let e = JSON.parse(document.getElementById("peach-client-runtime")?.textContent || "null");
return typeof e?.version == "string" && typeof e?.build_id == "string" ? {
@@ -48829,23 +48842,23 @@ function uye() {
return null;
}
}
-function MU() {
- let e = (0, F.useRef)(uye()), [t, n] = (0, F.useState)(null);
+function PU() {
+ let e = (0, F.useRef)(pye()), [t, n] = (0, F.useState)(null);
return (0, F.useEffect)(() => {
let t = !1, r, i, a = async () => {
- if (t || !kU()) return;
+ if (t || !jU()) return;
let o = new AbortController();
i = o;
- let s = setTimeout(() => o.abort(), lye);
+ let s = setTimeout(() => o.abort(), fye);
o.signal.addEventListener("abort", () => clearTimeout(s), { once: !0 });
try {
let r = await B("/api/client-updates", o.signal);
!t && !o.signal.aborted && typeof r?.runtime?.version == "string" && typeof r.runtime.build_id == "string" && (e.current ??= { ...r.runtime }, n(r));
} catch {} finally {
- clearTimeout(s), i === o && (i = void 0, !t && kU() && (r = setTimeout(a, cye)));
+ clearTimeout(s), i === o && (i = void 0, !t && jU() && (r = setTimeout(a, dye)));
}
}, o = () => {
- clearTimeout(r), i?.abort(), i = void 0, kU() && a();
+ clearTimeout(r), i?.abort(), i = void 0, jU() && a();
};
return document.addEventListener("visibilitychange", o), document.addEventListener("peach:client-updates", o), a(), () => {
t = !0, clearTimeout(r), i?.abort(), document.removeEventListener("visibilitychange", o), document.removeEventListener("peach:client-updates", o);
@@ -48855,12 +48868,12 @@ function MU() {
refresh: !!t && !!e.current && (t.runtime.version !== e.current.version || t.runtime.build_id !== e.current.build_id)
};
}
-function dye({ navigate: e }) {
- let { snapshot: t, refresh: n } = MU(), [r, i] = (0, F.useState)(""), a = document.querySelector("[data-network-banner]");
+function mye({ navigate: e }) {
+ let { snapshot: t, refresh: n } = PU(), [r, i] = (0, F.useState)(""), a = document.querySelector("[data-network-banner]");
if (!t || !a) return null;
- let { release: o, update_job: s, runtime: c } = t, l = n ? "refresh" : s.state === "ready" ? "ready" : AU.has(s.state) ? "preparing" : o.state === "available" && o.latest_version ? "available" : null;
+ let { release: o, update_job: s, runtime: c } = t, l = n ? "refresh" : s.state === "ready" ? "ready" : MU.has(s.state) ? "preparing" : o.state === "available" && o.latest_version ? "available" : null;
if (!l) return null;
- let u = (s.state === "ready" || AU.has(s.state)) && s.version || o.latest_version, d = JSON.stringify(l === "refresh" ? [
+ let u = (s.state === "ready" || MU.has(s.state)) && s.version || o.latest_version, d = JSON.stringify(l === "refresh" ? [
l,
c.version,
c.build_id
@@ -48883,22 +48896,22 @@ function dye({ navigate: e }) {
children: [" Peach ", u]
}) : null] })] }), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex-wrap",
- children: [l === "refresh" ? /* @__PURE__ */ (0, I.jsx)(dH, {
+ children: [l === "refresh" ? /* @__PURE__ */ (0, I.jsx)(pH, {
variant: "secondary",
size: "small",
onClick: () => window.location.reload(),
"data-copy-key": "clientUpdates.refresh.action",
children: "刷新页面"
- }) : /* @__PURE__ */ (0, I.jsx)(dH, {
+ }) : /* @__PURE__ */ (0, I.jsx)(pH, {
variant: "secondary",
size: "small",
- href: jU,
+ href: NU,
onClick: (t) => {
- t.button !== 0 || t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || (t.preventDefault(), e(jU));
+ t.button !== 0 || t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || (t.preventDefault(), e(NU));
},
"data-copy-key": `clientUpdates.${l}.action`,
children: l === "preparing" ? "查看进度" : "查看更新"
- }), /* @__PURE__ */ (0, I.jsx)(dH, {
+ }), /* @__PURE__ */ (0, I.jsx)(pH, {
variant: "secondary",
size: "small",
onClick: () => i(d),
@@ -48909,18 +48922,18 @@ function dye({ navigate: e }) {
}, d), a);
}
// src/react/router/pages/settings.tsx
-function fye() {
- let e = (0, F.useContext)(qW), { pathname: t } = ef();
+function hye() {
+ let e = (0, F.useContext)(YW), { pathname: t } = ef();
return (0, F.useEffect)(() => {
e?.openSettings?.(Nf(t));
}, [e, t]), (0, F.useEffect)(() => () => {
queueMicrotask(() => {
- Mf(Op.navigation.location.pathname) || e?.closeSettings?.();
+ Mf(Np.navigation.location.pathname) || e?.closeSettings?.();
});
}, [e]), null;
}
// src/junk-queue.ts
-var NU = [
+var FU = [
[
"",
"全部",
@@ -48956,40 +48969,40 @@ var NU = [
"其它",
"hard-drive"
]
-], pye = (e) => NU.find(([t]) => t === e)?.[0] ?? "";
-function PU(e) {
+], gye = (e) => FU.find(([t]) => t === e)?.[0] ?? "";
+function IU(e) {
let t = new URLSearchParams(e);
return {
- kind: pye(t.get("type")),
+ kind: gye(t.get("type")),
view: t.get("view") === "dismissed" ? "dismissed" : "pending"
};
}
-function FU(e = "", t = "pending") {
+function LU(e = "", t = "pending") {
let n = new URLSearchParams();
e && n.set("type", e), t === "dismissed" && n.set("view", "dismissed");
let r = n.toString();
return `/junk-files${r ? `?${r}` : ""}`;
}
-function IU(e) {
+function RU(e) {
return e === "dismissed" ? {
view: "pending",
label: "返回待判断",
glyph: "rotate-ccw",
- href: FU("", "pending")
+ href: LU("", "pending")
} : {
view: "dismissed",
label: "已排除",
glyph: "eye-off",
- href: FU("", "dismissed")
+ href: LU("", "dismissed")
};
}
-var LU = (e) => e === "dismissed" ? "已排除" : "待判断", RU = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
-function mye({ kind: e, view: t }) {
- let n = NU.map(([n, r, i]) => `<a href="${FU(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${RU(i)}${z(r)}</a>`).join(""), r = IU(t);
- return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Is(LU(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\"" : ""}>${RU(r.glyph)}${r.label}</a></nav></div></div></div>`;
+var zU = (e) => e === "dismissed" ? "已排除" : "待判断", BU = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
+function _ye({ kind: e, view: t }) {
+ let n = FU.map(([n, r, i]) => `<a href="${LU(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${BU(i)}${z(r)}</a>`).join(""), r = RU(t);
+ return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Is(zU(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\"" : ""}>${BU(r.glyph)}${r.label}</a></nav></div></div></div>`;
}
// src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function hye(e, t, n) {
+function vye(e, t, n) {
(0, F.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -49003,7 +49016,7 @@ function hye(e, t, n) {
n
]);
}
-function gye(e, t) {
+function yye(e, t) {
let n = (0, F.useRef)(!1);
return (0, F.useEffect)(() => {
if (!e) return;
@@ -49016,33 +49029,33 @@ function gye(e, t) {
}, [e, t]), (e) => e && n.current ? (n.current = !1, !1) : !0;
}
// src/react/boardui/components/base/select/select.tsx
-var zU = (0, F.createContext)("md");
-function BU({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+var VU = (0, F.createContext)("md");
+function HU({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
let l = (0, F.useRef)(null), u = (0, F.useRef)(null), [d, f] = (0, F.useState)(!1);
- hye(d, () => f(!1), [l, u]);
- let p = gye(d, l);
- return /* @__PURE__ */ (0, I.jsx)(Kme, {
+ vye(d, () => f(!1), [l, u]);
+ let p = yye(d, l);
+ return /* @__PURE__ */ (0, I.jsx)(Yme, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
className: q("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)(IL, {
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)(RL, {
ref: l,
className: q("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),
- children: [/* @__PURE__ */ (0, I.jsx)(Yme, {
+ children: [/* @__PURE__ */ (0, I.jsx)(Qme, {
className: q("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, I.jsx)(o_e, { className: q("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, I.jsx)(lz, {
+ }), /* @__PURE__ */ (0, I.jsx)(l_e, { className: q("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, I.jsx)(dz, {
ref: u,
isNonModal: !0,
offset: 4,
- className: q(l_e, kV, "p-2", n),
- children: /* @__PURE__ */ (0, I.jsx)(mme, {
+ className: q(f_e, jV, "p-2", n),
+ children: /* @__PURE__ */ (0, I.jsx)(_me, {
items: a,
- className: q(u_e, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, I.jsx)(zU.Provider, {
+ className: q(p_e, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, I.jsx)(VU.Provider, {
value: r,
children: i
})
@@ -49050,16 +49063,16 @@ function BU({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function VU({ className: e, children: t, ...n }) {
- let r = (0, F.useContext)(zU);
- return /* @__PURE__ */ (0, I.jsx)(_me, {
+function UU({ className: e, children: t, ...n }) {
+ let r = (0, F.useContext)(VU);
+ return /* @__PURE__ */ (0, I.jsx)(bme, {
...n,
- className: (t) => q(AV, 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) => q(MV, 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
});
}
// src/react/boardui/components/base/badges/chip.tsx
-var HU = jI({
+var WU = NI({
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",
@@ -49078,15 +49091,15 @@ var HU = jI({
soft: "bg-background-secondary-default text-text-secondary"
}
});
-function UU({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+function GU({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
ref: r,
- className: q(HU.base, HU.variant[e], HU.color[t], n),
+ className: q(WU.base, WU.variant[e], WU.color[t], n),
...i
});
}
// src/react/components/art-slot.tsx
-function WU({ artwork: e, identity: t = e.html, relayout: n }) {
+function KU({ artwork: e, identity: t = e.html, relayout: n }) {
let [r, i] = (0, F.useState)({
identity: t,
artwork: e
@@ -49105,7 +49118,7 @@ function WU({ artwork: e, identity: t = e.html, relayout: n }) {
});
}
// src/react/activity/downloads-panel.tsx
-var GU = "/api/downloads", KU = ["downloads"], _ye = "/api/downloads/cancel", vye = "/api/downloads/postprocess", qU = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, yye = {
+var qU = "/api/downloads", JU = ["downloads"], bye = "/api/downloads/cancel", xye = "/api/downloads/postprocess", YU = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, Sye = {
ingested: "lime",
failed: "rose",
cancelled: "neutral",
@@ -49114,21 +49127,21 @@ var GU = "/api/downloads", KU = ["downloads"], _ye = "/api/downloads/cancel", vy
remote_done: "lime",
landed: "lime",
submitted: "neutral"
-}, JU = (e) => {
- let t = e.display_code || e.code || "", { title: n } = RI({
+}, XU = (e) => {
+ let t = e.display_code || e.code || "", { title: n } = BI({
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}`;
-}, YU = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", bye = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");
-function xye() {
+}, ZU = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", Cye = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");
+function wye() {
let e = (0, F.useId)(), t = Lt({
- queryKey: [...KU, "pages"],
+ queryKey: [...JU, "pages"],
initialPageParam: null,
- queryFn: ({ signal: e, pageParam: t }) => B(`${GU}?limit=20${t === null ? "" : `&before_id=${t}`}`, e),
+ queryFn: ({ signal: e, pageParam: t }) => B(`${qU}?limit=20${t === null ? "" : `&before_id=${t}`}`, e),
getNextPageParam: (e) => e.has_more ? e.next_before_id ?? void 0 : void 0,
- refetchInterval: (e) => e.state.data?.pages.some((e) => qU(e) === 5e3) ? 5e3 : 3e4
+ refetchInterval: (e) => e.state.data?.pages.some((e) => YU(e) === 5e3) ? 5e3 : 3e4
}), n = t.data?.pages || [], r = [...new Map(n.flatMap((e) => e.tasks).map((e) => [e.id, e])).values()];
return !r.length && !t.error ? null : /* @__PURE__ */ (0, I.jsxs)("section", {
id: "cloudDownloads",
@@ -49140,14 +49153,14 @@ function xye() {
className: "text-title-2-medium text-text-primary",
children: "云下载"
}),
- t.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ t.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "error",
children: lr(t.error)
}) : null,
r.length ? /* @__PURE__ */ (0, I.jsx)("ul", {
"aria-live": "polite",
className: "flex min-w-0 flex-col gap-3",
- children: r.map((e) => /* @__PURE__ */ (0, I.jsx)(Sye, {
+ children: r.map((e) => /* @__PURE__ */ (0, I.jsx)(Tye, {
task: e,
writable: n[0]?.available ?? !1
}, e.id))
@@ -49155,9 +49168,9 @@ function xye() {
t.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: hB,
+ leadingIcon: _B,
className: "self-start",
- ...fV(t.isFetchingNextPage),
+ ...mV(t.isFetchingNextPage),
onClick: () => {
t.isFetching || t.fetchNextPage();
},
@@ -49166,16 +49179,16 @@ function xye() {
]
});
}
-function Sye({ task: e, writable: t }) {
- tL();
- let n = ae(), r = fH(), [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = YU(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 Tye({ task: e, writable: t }) {
+ rL();
+ let n = ae(), r = mH(), [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = ZU(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,
- $I(e.submitted_at)
+ tL(e.submitted_at)
].filter(Boolean).join(" · "), h = () => {
- n.invalidateQueries({ queryKey: KU });
+ n.invalidateQueries({ queryKey: JU });
}, g = () => {
- r.run("cancel", (t) => V(_ye, { id: e.id }, "POST", t), h);
+ r.run("cancel", (t) => V(bye, { id: e.id }, "POST", t), h);
}, _ = () => {
let t = {
magnet: e.source_uri,
@@ -49185,16 +49198,16 @@ function Sye({ task: e, writable: t }) {
title: e.title,
origin: e.origin
};
- r.run("resubmit", (e) => V(GU, t, "POST", e), h);
+ r.run("resubmit", (e) => V(qU, t, "POST", e), h);
}, v = () => {
navigator.clipboard.writeText(e.source_uri).then(() => a(!0), () => a(!1));
}, y = () => {
- r.run("postprocess", (t) => V(vye, { id: e.id }, "POST", t), h);
+ r.run("postprocess", (t) => V(xye, { id: e.id }, "POST", t), h);
};
return /* @__PURE__ */ (0, I.jsxs)("li", {
"data-download-state": e.state,
"data-download-id": e.id,
- className: bU({
+ className: SU({
padding: "none",
bordered: p ? "error" : void 0,
className: "flex flex-col"
@@ -49205,14 +49218,14 @@ function Sye({ task: e, writable: t }) {
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-download-cover": "",
"data-media-pic": "",
- style: { "--card-ratio": String(cM) },
+ style: { "--card-ratio": String(uM) },
className: "w-20 shrink-0 self-start text-caption-1-regular text-text-secondary sm:w-32",
children: [
u?.has_cover ? null : /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-nopic": "",
children: "无封面"
}),
- u?.has_cover ? /* @__PURE__ */ (0, I.jsx)(WU, {
+ u?.has_cover ? /* @__PURE__ */ (0, I.jsx)(KU, {
artwork: {
kind: "cover",
html: So(u, "big")
@@ -49222,7 +49235,7 @@ function Sye({ task: e, writable: t }) {
f ? /* @__PURE__ */ (0, I.jsx)("a", {
"data-download-cover-link": "",
href: f,
- "aria-label": `打开作品详情:${JU(e)}`,
+ "aria-label": `打开作品详情:${XU(e)}`,
className: "absolute inset-0 z-1 rounded-lg outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-border-focus-ring"
}) : null
]
@@ -49233,19 +49246,19 @@ function Sye({ task: e, writable: t }) {
className: "flex min-w-0 flex-col items-start gap-1 sm:flex-row sm:items-center sm:gap-2",
children: [/* @__PURE__ */ (0, I.jsx)("strong", {
className: "min-w-0 w-full flex-1 truncate text-title-1-medium text-text-primary sm:w-auto",
- title: JU(e),
+ title: XU(e),
children: f ? /* @__PURE__ */ (0, I.jsx)("a", {
"data-download-title-link": "",
href: f,
className: "block truncate rounded-sm outline-none hover:underline focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-border-focus-ring",
- children: JU(e)
- }) : JU(e)
+ children: XU(e)
+ }) : XU(e)
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(UU, {
- color: yye[e.state] ?? "neutral",
+ children: [/* @__PURE__ */ (0, I.jsx)(GU, {
+ color: Sye[e.state] ?? "neutral",
children: e.state_label
- }), e.state === "ingested" ? /* @__PURE__ */ (0, I.jsx)(UU, {
+ }), e.state === "ingested" ? /* @__PURE__ */ (0, I.jsx)(GU, {
color: e.postprocess_state === "complete" ? "lime" : e.postprocess_state === "failed" ? "rose" : e.postprocess_state === "running" ? "blue" : "neutral",
children: e.postprocess_label
}) : null]
@@ -49255,7 +49268,7 @@ function Sye({ task: e, writable: t }) {
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "flex shrink-0",
- children: /* @__PURE__ */ (0, I.jsx)(BH, {
+ children: /* @__PURE__ */ (0, I.jsx)(HH, {
source: e.provider,
label: e.provider_label
})
@@ -49282,7 +49295,7 @@ function Sye({ task: e, writable: t }) {
children: [d.map((e) => nn("performer", e.name, e.id)).join("、"), (u?.performer_total || 0) > d.length ? ` 等 ${u.performer_total} 人` : ""]
})]
}) : null,
- e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, I.jsx)(EH, {
+ e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, I.jsx)(OH, {
label: "远端下载进度",
value: Math.round(e.progress * 100),
max: 100
@@ -49292,7 +49305,7 @@ function Sye({ task: e, writable: t }) {
title: e.ledger_path,
children: e.ledger_path
}) : null,
- r.error ? /* @__PURE__ */ (0, I.jsx)(PH, { children: r.error }) : null,
+ r.error ? /* @__PURE__ */ (0, I.jsx)(IH, { children: r.error }) : null,
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-download-actions": "",
className: "flex flex-wrap items-center gap-2 pt-1 sm:mt-auto",
@@ -49317,21 +49330,21 @@ function Sye({ task: e, writable: t }) {
e.cancellable ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...fV(r.busy === "cancel"),
+ ...mV(r.busy === "cancel"),
onClick: g,
children: "取消"
}) : null,
e.resubmittable ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...fV(r.busy === "resubmit"),
+ ...mV(r.busy === "resubmit"),
onClick: _,
children: "重新提交"
}) : null,
e.postprocess_retryable ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...fV(r.busy === "postprocess"),
+ ...mV(r.busy === "postprocess"),
onClick: y,
children: "重试入库后整理"
}) : null
@@ -49346,37 +49359,37 @@ function Sye({ task: e, writable: t }) {
id: c,
"data-download-title-full": !0,
className: "wrap-anywhere px-5 pb-4 text-body-2-regular text-text-secondary",
- children: JU(e)
+ children: XU(e)
}) : null,
l || e.postprocess_detail ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "flex min-h-14 flex-col justify-center rounded-b-2xl border-t border-separator-border bg-card-footer px-5 py-3",
children: /* @__PURE__ */ (0, I.jsx)("p", {
className: "wrap-anywhere text-caption-1-regular text-text-secondary",
- children: l || bye(e)
+ children: l || Cye(e)
})
}) : null
]
});
}
// src/react/activity/work-code.ts
-var XU = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), ZU = (e, t) => !!XU(e) && XU(e) === XU(t);
+var QU = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), $U = (e, t) => !!QU(e) && QU(e) === QU(t);
// src/react/components/ime.ts
-function QU(e) {
+function eW(e) {
return e.isComposing || e.keyCode === 229;
}
// src/react/activity/resource-search.tsx
-function Cye({ className: e }) {
+function Eye({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
className: e,
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: Bs("") }
});
}
-function wye(e) {
+function Dye(e) {
return ["中字", "中文字幕"].includes(e?.trim() ?? "") ? "chinese" : ["无码", "无码破解"].includes(e?.trim() ?? "") ? "uncensored" : "quality";
}
-function Tye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
- let [a, o] = (0, F.useState)(e), [s, c] = (0, F.useState)(() => wye(t)), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(""), [p, m] = (0, F.useState)(null), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(""), y = fH(), b = (0, F.useRef)(null);
+function Oye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
+ let [a, o] = (0, F.useState)(e), [s, c] = (0, F.useState)(() => Dye(t)), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(""), [p, m] = (0, F.useState)(null), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(""), y = mH(), b = (0, F.useRef)(null);
(0, F.useEffect)(() => () => b.current?.abort(), []);
let x = () => {
if (!a.trim() || y.busy) return;
@@ -49392,7 +49405,7 @@ function Tye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
let e = new AbortController();
b.current = e, B(`/api/items?jav=1&q=${encodeURIComponent(t)}&limit=10`, e.signal).then((n) => {
if (e.signal.aborted) return;
- let r = (n.items || []).find((e) => ZU(e.code, t));
+ let r = (n.items || []).find((e) => $U(e.code, t));
i(r ? {
code: r.code,
title: String(r.catalog_title || r.name || ""),
@@ -49413,28 +49426,28 @@ function Tye({ 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, I.jsxs)(NH, { children: [
+ t ? /* @__PURE__ */ (0, I.jsxs)(FH, { children: [
"版本目标:",
t,
"。可在下方调整搜索优先项;完整度与水印需要逐条复核。"
] }) : null,
- /* @__PURE__ */ (0, I.jsx)(iV, {
+ /* @__PURE__ */ (0, I.jsx)(oV, {
label: "按番号查找资源",
value: a,
maxLength: 80,
placeholder: "输入番号,按回车搜索",
enterKeyHint: "search",
- leadingIcon: y.busy ? Cye : UB,
+ leadingIcon: y.busy ? Eye : GB,
isReadOnly: !!y.busy,
"aria-busy": !!y.busy,
onChange: o,
onKeyDown: (e) => {
- e.key === "Enter" && !QU(e.nativeEvent) && (e.preventDefault(), x());
+ e.key === "Enter" && !eW(e.nativeEvent) && (e.preventDefault(), x());
}
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, I.jsx)(FH, { children: "优先寻找" }), /* @__PURE__ */ (0, I.jsxs)(BU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(LH, { children: "优先寻找" }), /* @__PURE__ */ (0, I.jsxs)(HU, {
"aria-label": "优先寻找",
selectedKey: s,
isDisabled: !!y.busy,
@@ -49442,15 +49455,15 @@ function Tye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
e !== null && c(String(e));
},
children: [
- /* @__PURE__ */ (0, I.jsx)(VU, {
+ /* @__PURE__ */ (0, I.jsx)(UU, {
id: "quality",
children: "高清"
}),
- /* @__PURE__ */ (0, I.jsx)(VU, {
+ /* @__PURE__ */ (0, I.jsx)(UU, {
id: "chinese",
children: "中字"
}),
- /* @__PURE__ */ (0, I.jsx)(VU, {
+ /* @__PURE__ */ (0, I.jsx)(UU, {
id: "uncensored",
children: "无码"
})
@@ -49459,32 +49472,32 @@ function Tye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex gap-3 max-sm:flex-col",
- children: [/* @__PURE__ */ (0, I.jsx)(iV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(oV, {
label: "最小体积(GiB)",
inputMode: "decimal",
value: l,
onChange: u
- }), /* @__PURE__ */ (0, I.jsx)(iV, {
+ }), /* @__PURE__ */ (0, I.jsx)(oV, {
label: "最大体积(GiB)",
inputMode: "decimal",
value: d,
onChange: f
})]
}),
- y.busy ? /* @__PURE__ */ (0, I.jsx)(NH, {
+ y.busy ? /* @__PURE__ */ (0, I.jsx)(FH, {
role: "status",
children: "正在搜索资源"
}) : null,
- y.error ? /* @__PURE__ */ (0, I.jsx)(PH, { children: y.error }) : null,
- p?.error ? /* @__PURE__ */ (0, I.jsx)(NH, {
+ y.error ? /* @__PURE__ */ (0, I.jsx)(IH, { children: y.error }) : null,
+ p?.error ? /* @__PURE__ */ (0, I.jsx)(FH, {
role: "status",
children: p.error
}) : null,
- p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, I.jsx)(NH, {
+ p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, I.jsx)(FH, {
role: "status",
children: "没有符合条件的资源。"
}) : null,
- p?.warnings.map((e) => /* @__PURE__ */ (0, I.jsx)(NH, { children: e }, e)),
+ p?.warnings.map((e) => /* @__PURE__ */ (0, I.jsx)(FH, { children: e }, e)),
p?.items.length ? /* @__PURE__ */ (0, I.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: p.items.map((e) => /* @__PURE__ */ (0, I.jsxs)("li", {
@@ -49494,7 +49507,7 @@ function Tye({ 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, I.jsx)(NH, { children: [
+ /* @__PURE__ */ (0, I.jsx)(FH, { children: [
e.size > 0 ? `${(e.size / 1024 ** 3).toFixed(2)} GiB` : "体积未取得",
e.seeders >= 0 ? `${e.seeders} 个做种` : "做种未取得",
e.resolution ? `${e.resolution}p` : "",
@@ -49518,19 +49531,19 @@ function Tye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
});
}
// src/react/activity/cloud-download-dialog.tsx
-var Eye = {
+var kye = {
submitted: "已提交离线下载,进度在任务中心",
adopted: "这个磁力已有任务,没有重复提交",
adopted_remote: "网盘中已有相同的下载任务,Peach 已开始跟踪进度"
};
-function $U({ prefill: e, close: t, receipt: n, provider: r }) {
- return /* @__PURE__ */ (0, I.jsx)(aV, {
+function tW({ prefill: e, close: t, receipt: n, provider: r }) {
+ return /* @__PURE__ */ (0, I.jsx)(sV, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
},
width: "form",
- children: e ? /* @__PURE__ */ (0, I.jsx)(Dye, {
+ children: e ? /* @__PURE__ */ (0, I.jsx)(Aye, {
prefill: e,
close: t,
receipt: n,
@@ -49538,26 +49551,26 @@ function $U({ prefill: e, close: t, receipt: n, provider: r }) {
}) : null
});
}
-function Dye({ prefill: e, close: t, receipt: n, provider: r }) {
+function Aye({ prefill: e, close: t, receipt: n, provider: r }) {
let i = Ft({
- queryKey: KU,
- queryFn: ({ signal: e }) => B(`${GU}?limit=50`, e),
- refetchInterval: (e) => qU(e.state.data)
+ queryKey: JU,
+ queryFn: ({ signal: e }) => B(`${qU}?limit=50`, e),
+ refetchInterval: (e) => YU(e.state.data)
}), a = i.data, o = /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex items-center justify-between gap-4 px-5 pt-5",
- children: [/* @__PURE__ */ (0, I.jsx)(RL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(BL, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "查找资源"
}), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: SB,
+ leadingIcon: wB,
"aria-label": "关闭资源面板",
onClick: t
})]
});
- return a ? /* @__PURE__ */ (0, I.jsx)(Oye, {
+ return a ? /* @__PURE__ */ (0, I.jsx)(jye, {
header: o,
snapshot: a,
prefill: e,
@@ -49570,7 +49583,7 @@ function Dye({ prefill: e, close: t, receipt: n, provider: r }) {
o,
/* @__PURE__ */ (0, I.jsx)("div", {
className: "flex min-h-0 flex-col gap-4 overflow-y-auto p-5",
- children: i.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ children: i.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "error",
children: lr(i.error)
}) : null
@@ -49586,8 +49599,8 @@ function Dye({ prefill: e, close: t, receipt: n, provider: r }) {
]
});
}
-function Oye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
- let o = ae(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, F.useState)(c?.key || ""), [d, f] = (0, F.useState)(""), [p, m] = (0, F.useState)(n.code ?? ""), [h, g] = (0, F.useState)(c?.target || ""), [_, v] = (0, F.useState)(n.code ? n : null), [y, b] = (0, F.useState)(""), x = t.available && s.some((e) => e.key === l), S = fH(), C = (0, F.useRef)(null), w = (e) => {
+function jye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
+ let o = ae(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, F.useState)(c?.key || ""), [d, f] = (0, F.useState)(""), [p, m] = (0, F.useState)(n.code ?? ""), [h, g] = (0, F.useState)(c?.target || ""), [_, v] = (0, F.useState)(n.code ? n : null), [y, b] = (0, F.useState)(""), x = t.available && s.some((e) => e.key === l), S = mH(), C = (0, F.useRef)(null), w = (e) => {
u(e), g(s.find((t) => t.key === e)?.target ?? "");
};
return /* @__PURE__ */ (0, I.jsxs)("form", {
@@ -49603,14 +49616,14 @@ function Oye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
title: _?.title,
origin: _?.origin
};
- b(""), S.run("submit", (e) => V(GU, t, "POST", e), (e) => {
- o.invalidateQueries({ queryKey: KU });
- let t = Eye[e.outcome];
+ b(""), S.run("submit", (e) => V(qU, t, "POST", e), (e) => {
+ o.invalidateQueries({ queryKey: JU });
+ let t = kye[e.outcome];
if (e.ok && t) {
i(t), r();
return;
}
- let n = YU(e.task);
+ let n = ZU(e.task);
b(e.outcome === "refused" ? "这个资源被判为违规,不再提交。" : n ? `提交没有成功:${n}` : "提交没有成功。");
});
},
@@ -49634,7 +49647,7 @@ function Oye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
children: [/* @__PURE__ */ (0, I.jsx)("p", {
className: "break-words text-body-medium text-text-primary",
children: _ ? [_.code, _.title].filter(Boolean).join(" · ") : "作品资料未取得"
- }), _ ? /* @__PURE__ */ (0, I.jsx)(NH, { children: [
+ }), _ ? /* @__PURE__ */ (0, I.jsx)(FH, { children: [
_.performers,
_.studio,
_.release_date,
@@ -49642,22 +49655,22 @@ function Oye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
].filter(Boolean).join(" · ") }) : null]
})]
}) : null,
- /* @__PURE__ */ (0, I.jsx)(Tye, {
+ /* @__PURE__ */ (0, I.jsx)(Oye, {
initialCode: n.code ?? "",
reason: n.searchReason,
onSearch: (e) => {
- ZU(e, _?.code) || (v(ZU(e, n.code) ? n : null), f("")), m(e);
+ $U(e, _?.code) || (v($U(e, n.code) ? n : null), f("")), m(e);
},
- onWork: (e) => v((t) => e ? ZU(t?.code, e.code) ? {
+ onWork: (e) => v((t) => e ? $U(t?.code, e.code) ? {
...t,
...e,
origin: t?.origin || e.origin
- } : e : ZU(t?.code, n.code) ? t : null),
+ } : e : $U(t?.code, n.code) ? t : null),
choose: (e, t) => {
f(e), m(t), C.current?.focus();
}
}),
- /* @__PURE__ */ (0, I.jsx)(iV, {
+ /* @__PURE__ */ (0, I.jsx)(oV, {
ref: C,
label: "磁力链接",
placeholder: "magnet:?xt=urn:btih:…",
@@ -49669,38 +49682,38 @@ function Oye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-1",
children: [
- /* @__PURE__ */ (0, I.jsx)(FH, { children: "下载到" }),
- /* @__PURE__ */ (0, I.jsx)(BU, {
+ /* @__PURE__ */ (0, I.jsx)(LH, { children: "下载到" }),
+ /* @__PURE__ */ (0, I.jsx)(HU, {
"aria-label": "下载到",
selectedKey: l || null,
isDisabled: !s.length,
onSelectionChange: (e) => {
e !== null && w(String(e));
},
- children: s.map((e) => /* @__PURE__ */ (0, I.jsx)(VU, {
+ children: s.map((e) => /* @__PURE__ */ (0, I.jsx)(UU, {
id: e.key,
textValue: e.label,
- children: /* @__PURE__ */ (0, I.jsx)(BH, {
+ children: /* @__PURE__ */ (0, I.jsx)(HH, {
source: e.key,
label: e.label
})
}, e.key))
}),
- l === "115" ? /* @__PURE__ */ (0, I.jsx)(NH, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
+ l === "115" ? /* @__PURE__ */ (0, I.jsx)(FH, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
]
}),
- t.available ? null : /* @__PURE__ */ (0, I.jsx)(sV, {
+ t.available ? null : /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "neutral",
children: "云下载只在允许修改数据库的设备上可用。"
}),
- s.length ? null : /* @__PURE__ */ (0, I.jsxs)(sV, {
+ s.length ? null : /* @__PURE__ */ (0, I.jsxs)(lV, {
tone: "neutral",
children: ["尚未配置下载渠道。", /* @__PURE__ */ (0, I.jsx)("a", {
href: "/settings/library?section=%E4%B8%8B%E8%BD%BD%E6%B8%A0%E9%81%93",
children: "下载渠道设置"
})]
}),
- /* @__PURE__ */ (0, I.jsx)(iV, {
+ /* @__PURE__ */ (0, I.jsx)(oV, {
label: "目标目录",
placeholder: "/云下载",
autoComplete: "off",
@@ -49708,17 +49721,17 @@ function Oye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
value: h,
onChange: g
}),
- n.code ? null : /* @__PURE__ */ (0, I.jsx)(iV, {
+ n.code ? null : /* @__PURE__ */ (0, I.jsx)(oV, {
label: "番号",
placeholder: "可不填",
autoComplete: "off",
maxLength: 60,
value: p,
onChange: (e) => {
- m(e), ZU(e, _?.code) || v(null);
+ m(e), $U(e, _?.code) || v(null);
}
}),
- y || S.error ? /* @__PURE__ */ (0, I.jsx)(PH, { children: y || S.error }) : null
+ y || S.error ? /* @__PURE__ */ (0, I.jsx)(IH, { children: y || S.error }) : null
]
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -49730,7 +49743,7 @@ function Oye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
}), /* @__PURE__ */ (0, I.jsx)(J, {
type: "submit",
disabled: !d.trim() || !x,
- ...fV(S.busy === "submit"),
+ ...mV(S.busy === "submit"),
children: "提交下载"
})]
})
@@ -49738,18 +49751,18 @@ function Oye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
});
}
// src/react/wants/wants.ts
-var eW = "/api/wants", tW = ["wants"], kye = (e) => [
+var nW = "/api/wants", rW = ["wants"], Mye = (e) => [
"wants",
"follow",
e
-], Aye = [
+], Nye = [
["searching", "待找"],
["unreleased", "未发售"],
["given_up", "暂时放弃"],
["acquired", "已入库"]
-], nW = (e) => B(eW, e);
-function jye(e, t) {
- H.setQueryData(tW, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
+], iW = (e) => B(nW, e);
+function Pye(e, t) {
+ H.setQueryData(rW, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
...n,
items: n.items.map((n) => n.id === e ? {
...n,
@@ -49757,21 +49770,21 @@ function jye(e, t) {
} : n)
} : n);
}
-var Mye = (e, t) => B(`${eW}?follow=${encodeURIComponent(e)}`, t), rW = (e, t) => V(eW, {
+var Fye = (e, t) => B(`${nW}?follow=${encodeURIComponent(e)}`, t), aW = (e, t) => V(nW, {
action: "add",
...e
-}, "POST", t), iW = (e, t) => V(eW, {
+}, "POST", t), oW = (e, t) => V(nW, {
action: "remove",
ids: e
-}, "POST", t), Nye = (e, t) => V(eW, {
+}, "POST", t), Iye = (e, t) => V(nW, {
action: "reset",
ids: e
-}, "POST", t), aW = () => H.invalidateQueries({ queryKey: tW }), Pye = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
-function Fye(e) {
+}, "POST", t), sW = () => H.invalidateQueries({ queryKey: rW }), Lye = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
+function Rye(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} 次` : "还没查过";
}
// src/react/jav/discovery-sorts.ts
-var oW = [
+var cW = [
[
"taste",
"口味",
@@ -49779,7 +49792,7 @@ var oW = [
],
[
"release_date",
- Ej[1],
+ Oj[1],
"按发行日期排序"
],
[
@@ -49797,10 +49810,10 @@ var oW = [
"番号",
"按番号排序"
]
-], sW = [
+], lW = [
[
"release_date",
- Ej[1],
+ Oj[1],
"按发行日期排序"
],
[
@@ -49824,10 +49837,10 @@ var oW = [
"按口味匹配排序"
]
];
-function Iye(e) {
+function zye(e) {
return typeof e == "number" && Number.isFinite(e) ? e.toFixed(3) : "—";
}
-function Lye(e) {
+function Bye(e) {
if (typeof e != "number" || !Number.isFinite(e)) return {
score: "—",
label: "资料未取得",
@@ -49852,21 +49865,21 @@ function Lye(e) {
};
}
// src/react/jav/jav.ts
-function Rye(e) {
+function Vye(e) {
let t = new URLSearchParams(location.search);
for (let [n, r] of Object.entries(e)) r ? t.set(n, r) : t.delete(n);
- kp(location.pathname + (t.size ? `?${t}` : ""), {
+ Pp(location.pathname + (t.size ? `?${t}` : ""), {
replace: !0,
- state: Op.navigation.location.state
+ state: Np.navigation.location.state
});
}
-var cW = (e, t = "taste", n = "desc") => [
+var uW = (e, t = "taste", n = "desc") => [
"jav-discoveries",
e,
t,
n
];
-function lW(e, t, n = {}) {
+function dW(e, t, n = {}) {
let r = new URLSearchParams({
scope: e,
limit: "100",
@@ -49875,7 +49888,7 @@ function lW(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"), B(`/api/jav/discoveries?${r}`, t);
}
-function uW(e) {
+function fW(e) {
let t = new URLSearchParams(e), n = t.get("sort"), r = t.get("seed") || "";
return {
page: Math.max(1, Math.floor(Number(t.get("page"))) || 1),
@@ -49883,12 +49896,12 @@ function uW(e) {
studio: t.get("studio") || "",
tag: t.get("tag") || "",
q: (t.get("q") || "").trim(),
- sort: n === "random" && r ? "random" : sW.find(([e]) => e === n)?.[0] || "release_date",
+ sort: n === "random" && r ? "random" : lW.find(([e]) => e === n)?.[0] || "release_date",
dir: t.get("dir") === "asc" ? "asc" : "desc",
seed: r
};
}
-var dW = (e) => [
+var pW = (e) => [
"jav-releases",
e.page,
e.performer,
@@ -49899,7 +49912,7 @@ var dW = (e) => [
e.dir,
e.seed
];
-function fW(e, t, n = "") {
+function mW(e, t, n = "") {
let r = new URLSearchParams({
page: String(e.page),
size: "24",
@@ -49915,7 +49928,7 @@ function fW(e, t, n = "") {
]) e[t] && r.set(t, e[t]);
return n && r.set("metadata_job_id", n), B(`/api/jav/releases?${r}`, t);
}
-function zye(e, t, n) {
+function Hye(e, t, n) {
let r = wo({
...e,
is_jav: !0
@@ -49924,40 +49937,40 @@ function zye(e, t, n) {
let i = z(fo(e));
return So(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 Bye(e, t) {
+async function Uye(e, t) {
if (e === "wants") await H.ensureQueryData({
- queryKey: tW,
- queryFn: () => nW(t),
+ queryKey: rW,
+ queryFn: () => iW(t),
staleTime: 3e4,
revalidateIfStale: !0
});
else if (e === "discover") await H.ensureQueryData({
- queryKey: cW("external"),
- queryFn: () => lW("external", t),
+ queryKey: uW("external"),
+ queryFn: () => dW("external", t),
staleTime: 3e4,
revalidateIfStale: !0
});
else if (e === "releases") {
- let e = uW(location.search);
+ let e = fW(location.search);
await H.ensureQueryData({
- queryKey: dW(e),
- queryFn: () => fW(e, t),
+ queryKey: pW(e),
+ queryFn: () => mW(e, t),
staleTime: 3e4,
revalidateIfStale: !0
});
}
}
// src/react/components/board-tabs.tsx
-function pW({ value: e }) {
+function hW({ value: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-tab-count": "",
className: "ml-1.5 inline-block rounded-sm bg-text-primary/10 px-1 py-px text-caption-1-medium text-text-primary opacity-50",
children: e.toLocaleString()
});
}
-var Vye = "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 mW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {
- let a = (0, F.useRef)(null), o = sL(a);
+var Wye = "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 gW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {
+ let a = (0, F.useRef)(null), o = lL(a);
return (0, F.useLayoutEffect)(() => {
let e = a.current;
e && (() => {
@@ -49966,7 +49979,7 @@ function mW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
let n = t.offsetLeft, r = n + t.offsetWidth;
n < e.scrollLeft ? e.scrollLeft = n : r > e.scrollLeft + e.clientWidth && (e.scrollLeft = r - e.clientWidth);
})();
- }, [t]), /* @__PURE__ */ (0, I.jsx)(NI, {
+ }, [t]), /* @__PURE__ */ (0, I.jsx)(FI, {
ref: o,
role: "tablist",
"aria-label": n,
@@ -49981,7 +49994,7 @@ function mW({ 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 ? uV(e.symbol) : null, i = e.value === t;
+ let n = e.symbol ? fV(e.symbol) : null, i = e.value === t;
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
role: "tab",
@@ -49990,7 +50003,7 @@ function mW({ 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: Vye,
+ className: Wye,
onClick: () => {
i || r(e.value);
},
@@ -50000,7 +50013,7 @@ function mW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
});
}
// src/react/jav/jav-header.tsx
-function hW({ tab: e, navigate: t, find: n, search: r }) {
+function _W({ tab: e, navigate: t, find: n, search: r }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex w-full flex-col gap-4",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -50019,32 +50032,32 @@ function hW({ tab: e, navigate: t, find: n, search: r }) {
children: "查找资源"
})
]
- }), /* @__PURE__ */ (0, I.jsx)(mW, {
- tabs: aU.map(([e, t]) => ({
+ }), /* @__PURE__ */ (0, I.jsx)(gW, {
+ tabs: sU.map(([e, t]) => ({
value: e,
label: t
})),
value: e,
label: "JAV 分区",
className: "",
- onChange: (e) => t(sU(e))
+ onChange: (e) => t(lU(e))
})]
});
}
-function Hye({ navigate: e, receipt: t }) {
+function Gye({ navigate: e, receipt: t }) {
let [n, r] = (0, F.useState)(null);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(hW, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(_W, {
tab: "library",
navigate: e,
find: () => r({})
- }), /* @__PURE__ */ (0, I.jsx)($U, {
+ }), /* @__PURE__ */ (0, I.jsx)(tW, {
prefill: n,
close: () => r(null),
receipt: t
})] });
}
// src/react/video-wall/folia/blockReflows.ts
-var Uye = [
+var Kye = [
[
[
{
@@ -53605,7 +53618,7 @@ var Uye = [
}
]
]
-], gW = [
+], vW = [
[
{
x: 0,
@@ -53902,89 +53915,89 @@ var Uye = [
rows: 2
}
]
-], _W = (e) => e.map((e) => ({
+], yW = (e) => e.map((e) => ({
...e,
x: 12 - e.x - e.cols
-})), vW = (e) => e.map((e) => ({
+})), bW = (e) => e.map((e) => ({
...e,
y: 8 - e.y - e.rows
-})), yW = [
+})), xW = [
(e) => e,
- _W,
- vW,
- (e) => _W(vW(e))
-], bW = gW.flatMap((e) => yW.map((t) => t(e))), Wye = Uye.flatMap((e) => yW.map((t) => e.map(t)));
-bW.length;
-var Gye = (e, t) => {
+ yW,
+ bW,
+ (e) => yW(bW(e))
+], SW = vW.flatMap((e) => xW.map((t) => t(e))), qye = Kye.flatMap((e) => xW.map((t) => e.map(t)));
+SW.length;
+var Jye = (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;
-}, xW = (e, t) => {
- let n = gW.length;
- return ((e + t * 2) % n + n) % n * yW.length + Gye(e, t) % yW.length;
-}, Kye = (e, t) => bW[xW(e, t)], qye = (e, t, n) => n < 0 || n >= 12 ? null : Wye[xW(e, t)][n], SW = 103.36, CW = 6.08, wW = 12 * SW, TW = 8 * SW, EW = 12, DW = (e, t) => (e % t + t) % t, Jye = (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 OW(e, t) {
- let n = Math.max(1, Math.ceil(e / EW)), r = t ? 3 : Math.min(3, n);
+}, CW = (e, t) => {
+ let n = vW.length;
+ return ((e + t * 2) % n + n) % n * xW.length + Jye(e, t) % xW.length;
+}, Yye = (e, t) => SW[CW(e, t)], Xye = (e, t, n) => n < 0 || n >= 12 ? null : qye[CW(e, t)][n], wW = 103.36, TW = 6.08, EW = 12 * wW, DW = 8 * wW, OW = 12, kW = (e, t) => (e % t + t) % t, Zye = (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 AW(e, t) {
+ let n = Math.max(1, Math.ceil(e / OW)), r = t ? 3 : Math.min(3, n);
return {
columns: r,
- width: r * wW,
- height: Math.ceil(n / r) * TW
+ width: r * EW,
+ height: Math.ceil(n / r) * DW
};
}
-function kW(e, t, n) {
- let { x: r, y: i, cols: a, rows: o } = Kye(e, t)[n];
+function jW(e, t, n) {
+ let { x: r, y: i, cols: a, rows: o } = Yye(e, t)[n];
return {
- x: e * wW + r * SW,
- y: t * TW + i * SW,
- width: a * SW - CW,
- height: o * SW - CW
+ x: e * EW + r * wW,
+ y: t * DW + i * wW,
+ width: a * wW - TW,
+ height: o * wW - TW
};
}
-function Yye(e) {
+function Qye(e) {
return (!e.medium || e.medium === "video") && !!e.has_cover && !!(e.cover_key || e.code);
}
-function AW(e, t, n) {
+function MW(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 >= EW) return null;
- let o = OW(e, t), s = o.height / TW;
+ ].every(Number.isInteger) || a < 0 || a >= OW) return null;
+ let o = AW(e, t), s = o.height / DW;
if (t && (r < 0 || r >= o.columns || i < 0 || i >= s)) return null;
- let c = t ? r : DW(r, o.columns), l = ((t ? i : DW(i, s)) * o.columns + c) * EW + a;
+ let c = t ? r : kW(r, o.columns), l = ((t ? i : kW(i, s)) * o.columns + c) * OW + a;
return t && l >= e ? null : {
- ...kW(r, i, a),
+ ...jW(r, i, a),
index: l % e,
key: n
};
}
-function Xye(e, t) {
+function $ye(e, t) {
if (t < 0 || t >= e) return null;
- let n = Math.floor(t / EW);
- return AW(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % EW}`);
+ let n = Math.floor(t / OW);
+ return MW(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % OW}`);
}
-function jW(e, t, n) {
- let [r, i, a] = n.key.split(":").map(Number), o = qye(r, i, a);
+function NW(e, t, n) {
+ let [r, i, a] = n.key.split(":").map(Number), o = Xye(r, i, a);
return new Map((o || []).map((e, t) => [`${r}:${i}:${t}`, {
- x: r * wW + e.x * SW,
- y: i * TW + e.y * SW,
- width: e.cols * SW - CW,
- height: e.rows * SW - CW
+ x: r * EW + e.x * wW,
+ y: i * DW + e.y * wW,
+ width: e.cols * wW - TW,
+ height: e.rows * wW - TW
}]));
}
-function Zye(e) {
+function ebe(e) {
let t = 0, n = 0;
for (let r = Math.max(0, e - 36); r < e; r += 1) {
- let e = Math.floor(r / EW), i = kW(e % 3, Math.floor(e / 3), r % EW);
+ let e = Math.floor(r / OW), i = jW(e % 3, Math.floor(e / 3), r % OW);
t = Math.max(t, i.x + i.width), n = Math.max(n, i.y + i.height);
}
return {
- width: e >= 36 ? 3 * wW - CW : t,
+ width: e >= 36 ? 3 * EW - TW : t,
height: n
};
}
-function Qye(e, t, n, r) {
+function tbe(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 {
@@ -53993,22 +54006,22 @@ function Qye(e, t, n, r) {
y: i(e.y, n.height, t.height)
};
}
-function MW(e, t, n, r) {
+function PW(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 = OW(e, t), s = o.height / TW, c = [];
- for (let n = Math.floor(a.y / TW); n <= Math.floor((a.y + a.height) / TW); n += 1) for (let r = Math.floor(a.x / wW); r <= Math.floor((a.x + a.width) / wW); r += 1) {
+ }, o = AW(e, t), s = o.height / DW, c = [];
+ for (let n = Math.floor(a.y / DW); n <= Math.floor((a.y + a.height) / DW); n += 1) for (let r = Math.floor(a.x / EW); r <= Math.floor((a.x + a.width) / EW); r += 1) {
if (t && (r < 0 || r >= o.columns || n < 0 || n >= s)) continue;
- let i = t ? r : DW(r, o.columns), l = t ? n : DW(n, s);
- for (let s = 0; s < EW; s += 1) {
- let u = (l * o.columns + i) * EW + s;
+ let i = t ? r : kW(r, o.columns), l = t ? n : kW(n, s);
+ for (let s = 0; s < OW; s += 1) {
+ let u = (l * o.columns + i) * OW + s;
if (t && u >= e) continue;
- let d = kW(r, n, s);
- Jye(d, a) && c.push({
+ let d = jW(r, n, s);
+ Zye(d, a) && c.push({
...d,
index: u % e,
key: `${r}:${n}:${s}`
@@ -54017,7 +54030,7 @@ function MW(e, t, n, r) {
}
return c;
}
-var $ye = class {
+var nbe = class {
positions = /* @__PURE__ */ new Map();
used = /* @__PURE__ */ new Set();
cursor = 0;
@@ -54029,7 +54042,7 @@ var $ye = class {
this.cursor = e;
}
tile(e, t) {
- let n = this.positions.get(e), r = n === void 0 ? null : AW(t, !1, e);
+ let n = this.positions.get(e), r = n === void 0 ? null : MW(t, !1, e);
return r ? {
...r,
index: n
@@ -54059,7 +54072,7 @@ var $ye = class {
let e = 0;
for (let t of this.positions.keys()) e = Math.max(e, Number(t.split(":")[0]));
return {
- x: (e + 2) * wW,
+ x: (e + 2) * EW,
y: 0
};
}
@@ -54072,10 +54085,10 @@ var $ye = class {
c < i && (r = s, i = c);
}
if (r) return r;
- let a = this.fresh(), o = `${Math.round(a.x / wW)}:0:0`;
+ let a = this.fresh(), o = `${Math.round(a.x / EW)}:0:0`;
return this.positions.set(o, t), this.used.add(t), this.tile(o, e);
}
-}, NW = [
+}, FW = [
"q",
"performer",
"series",
@@ -54090,40 +54103,40 @@ var $ye = class {
"dur_max",
"region"
];
-function ebe(e = {}) {
- return NW.some((t) => !!e[t]);
+function rbe(e = {}) {
+ return FW.some((t) => !!e[t]);
}
// src/react/video-wall/wall-boot.ts
-function tbe() {
+function ibe() {
if (document.querySelector("[data-wall-boot]")) return;
let e = innerWidth < 640 ? .68 : 1, t = document.createElement("div");
t.className = "peach-react", t.dataset.wallBoot = "", t.innerHTML = `<div data-video-wall="" data-fullscreen=""><div data-wall-viewport="" data-skeleton="wall" role="status" aria-busy="true" aria-label="正在读取播放墙"><div data-wall-world="" style="transform:translate3d(0px, 0px, 0) scale(${e})"></div></div></div>`, document.body.append(t);
let n = t.querySelector("[data-wall-viewport]").getBoundingClientRect();
- t.querySelector("[data-wall-world]").innerHTML = MW(12, !1, {
+ t.querySelector("[data-wall-world]").innerHTML = PW(12, !1, {
x: 0,
y: 0,
scale: e
}, n).map((e) => `<span data-wall-skeleton="" aria-hidden="true" style="--wall-left:${e.x}px;--wall-top:${e.y}px;--wall-width:${e.width}px;--wall-height:${e.height}px"></span>`).join("");
}
-function PW() {
+function IW() {
document.querySelectorAll("[data-wall-boot]").forEach((e) => e.remove());
}
// src/react/router/pages/catalog.tsx
-var nbe = () => pu, FW = Op.navigation.seq, IW = Op.navigation.openEpoch, LW = Op.navigation.location.pathname, RW = {
- seq: FW,
+var abe = () => pu, LW = Np.navigation.seq, RW = Np.navigation.openEpoch, zW = Np.navigation.location.pathname, BW = {
+ seq: LW,
claimed: !0,
- from: LW
+ from: zW
};
-Op.listen((e) => {
- RW = {
+Np.listen((e) => {
+ BW = {
seq: e.seq,
- claimed: e.openEpoch === IW,
- from: LW
- }, IW = e.openEpoch, LW = e.location.pathname;
+ claimed: e.openEpoch === RW,
+ from: zW
+ }, RW = e.openEpoch, zW = e.location.pathname;
});
-var zW = !1;
-function BW(e) {
- let { seq: t, openEpoch: n, location: r } = Op.navigation, i = Bf(r.pathname), a = jp() ?? r, o = U ?? {};
+var VW = !1;
+function HW(e) {
+ let { seq: t, openEpoch: n, location: r } = Np.navigation, i = Bf(r.pathname), a = Ip() ?? r, o = U ?? {};
return {
seq: t,
epoch: n,
@@ -54134,8 +54147,8 @@ function BW(e) {
opened: e
};
}
-function rbe(e, t, n, r) {
- let i = { ...U }, a = um("catalog");
+function obe(e, t, n, r) {
+ let i = { ...U }, a = hm("catalog");
if (a) return { ...a };
if (e === "/trash") return {
...i,
@@ -54146,7 +54159,7 @@ function rbe(e, t, n, r) {
state: "trash",
q: ""
};
- let o = new URLSearchParams(t), { defaultSort: s, defaultSortDirection: c } = $j().value;
+ let o = new URLSearchParams(t), { defaultSort: s, defaultSortDirection: c } = tM().value;
return {
...i,
loc: o.get("loc") ?? r.defaultLoc(),
@@ -54160,7 +54173,7 @@ function rbe(e, t, n, r) {
dur_max: o.get("dur_max") || "",
orient: o.get("orient") || "",
state: kn[e] || o.get("state") || "",
- ...Pj(o.get("sort"), o.get("dir"), s, c),
+ ...Ij(o.get("sort"), o.get("dir"), s, c),
seed: o.get("seed") || (n ? ir() : i.seed || ir()),
q: o.get("q") || "",
jav: o.get("jav") || "",
@@ -54171,58 +54184,58 @@ function rbe(e, t, n, r) {
folder_recursive: o.get("folder_recursive") === "0" ? "0" : ""
};
}
-function VW(e) {
- let t = Op.navigation.seq;
- lm("catalog", { ...U });
- let n = e(), r = () => Op.navigation.seq === t, i = () => document.querySelector("#grid");
- pm(r, i(), { pending: !0 }), Promise.resolve(n).then(() => pm(r, i()));
+function UW(e) {
+ let t = Np.navigation.seq;
+ mm("catalog", { ...U });
+ let n = e(), r = () => Np.navigation.seq === t, i = () => document.querySelector("#grid");
+ vm(r, i(), { pending: !0 }), Promise.resolve(n).then(() => vm(r, i()));
}
-function ibe(e, t) {
- let n = { ...e }, r = BW(n.opened);
+function sbe(e, t) {
+ let n = { ...e }, r = HW(n.opened);
Object.assign(e, r);
let i = t.catalog;
if (!i || r.opens === 0) return;
if (r.covered) {
- jp() || i.fill();
+ Ip() || i.fill();
return;
}
let a = !1;
if (r.opens === n.opens) {
if (r.epoch === n.epoch && n.opened) {
if (r.seq === n.seq || n.covered && r.address === n.address && r.filters === n.filters) return;
- VW(() => i.load());
+ UW(() => i.load());
return;
}
- r.epoch !== n.epoch && (a = Op.navigation.action === "POP" && RW.from !== "/");
+ r.epoch !== n.epoch && (a = Np.navigation.action === "POP" && BW.from !== "/");
}
- let { pathname: o, search: s } = Op.navigation.location;
+ let { pathname: o, search: s } = Np.navigation.location;
if (o === "/" && new URLSearchParams(s).get("state") === "ads") {
- let { kind: e, view: t } = PU(s);
- zW = !0, kp(FU(e, t), { replace: !0 });
+ let { kind: e, view: t } = IU(s);
+ VW = !0, Pp(LU(e, t), { replace: !0 });
return;
}
- let c = zW;
- zW = !1, a &&= o === "/" && !dm(), e.opened = !0, W({ state: rbe(o, s, a, i) }), VW(() => i.open(o, {
+ let c = VW;
+ VW = !1, a &&= o === "/" && !gm(), e.opened = !0, W({ state: obe(o, s, a, i) }), UW(() => i.open(o, {
entering: a,
retitle: c
}));
}
-function abe() {
- let e = (0, F.useContext)(qW), t = KW(), n = (0, F.useSyncExternalStore)(Cu, nbe), r = ef(), i = (0, F.useRef)(null), a = (0, F.useRef)({
+function cbe() {
+ let e = (0, F.useContext)(YW), t = JW(), n = (0, F.useSyncExternalStore)(Cu, abe), r = ef(), i = (0, F.useRef)(null), a = (0, F.useRef)({
mounted: !0,
queued: !1
});
return (0, F.useEffect)(() => {
let e = a.current;
e.mounted = !0;
- let t = BW(!Bf(Op.navigation.location.pathname));
- return !t.covered && t.opens > 0 && (zW || RW.seq === FW ? t.opens = -1 : RW.claimed ? t.seq = -1 : t.epoch = -1), i.current = t, () => {
+ let t = HW(!Bf(Np.navigation.location.pathname));
+ return !t.covered && t.opens > 0 && (VW || BW.seq === LW ? t.opens = -1 : BW.claimed ? t.seq = -1 : t.epoch = -1), i.current = t, () => {
e.mounted = !1;
};
}, []), (0, F.useEffect)(() => {
let t = a.current;
!t.queued && e && (t.queued = !0, queueMicrotask(() => {
- t.queued = !1, t.mounted && i.current && ibe(i.current, e);
+ t.queued = !1, t.mounted && i.current && sbe(i.current, e);
}));
}, [
t,
@@ -54231,7 +54244,7 @@ function abe() {
e
]), null;
}
-function HW() {
+function WW() {
let { pathname: e } = ef();
return (0, F.useLayoutEffect)(() => {
if (e !== "/wall") return;
@@ -54240,23 +54253,23 @@ function HW() {
return t.forEach((e) => {
e.inert = !0;
}), () => {
- document.body.removeAttribute("data-wall-open"), PW(), t.forEach((e, t) => {
+ document.body.removeAttribute("data-wall-open"), IW(), t.forEach((e, t) => {
e.inert = n[t] || !1;
});
};
- }, [e]), Bf(e) && !zf(e) ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(abe, {}, e === "/junk-files" ? "/junk-files" : "/"), jn(e) ? /* @__PURE__ */ (0, I.jsx)(QW, {}) : null] });
+ }, [e]), Bf(e) && !zf(e) ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(cbe, {}, e === "/junk-files" ? "/junk-files" : "/"), jn(e) ? /* @__PURE__ */ (0, I.jsx)(eG, {}) : null] });
}
-function obe() {
- let e = (0, F.useContext)(qW), t = document.getElementById("javLibraryHeader");
- return t && e ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Hye, {
+function lbe() {
+ let e = (0, F.useContext)(YW), t = document.getElementById("javLibraryHeader");
+ return t && e ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Gye, {
navigate: e.navigate,
receipt: (t) => e.receipt(t)
}), t) : null;
}
// src/react/router/pages/overlay.tsx
-var UW = () => pu, sbe = () => mu;
-function cbe() {
- let e = (0, F.useContext)(qW), t = (0, F.useSyncExternalStore)(Cu, sbe), n = (0, F.useSyncExternalStore)(Cu, UW);
+var GW = () => pu, ube = () => mu;
+function dbe() {
+ let e = (0, F.useContext)(YW), t = (0, F.useSyncExternalStore)(Cu, ube), n = (0, F.useSyncExternalStore)(Cu, GW);
return (0, F.useEffect)(() => {
if (!t || !n) return;
let r = !0;
@@ -54271,11 +54284,11 @@ function cbe() {
e
]), null;
}
-function WW(e, t = !1) {
- let n = (0, F.useSyncExternalStore)(Cu, UW), r = (0, F.useRef)(void 0);
+function KW(e, t = !1) {
+ let n = (0, F.useSyncExternalStore)(Cu, GW), r = (0, F.useRef)(void 0);
if (r.current === void 0) {
- let { claimed: e } = Op.navigation;
- r.current = pu === 0 || Ap() ? "boot" : e && !t ? null : "history";
+ let { claimed: e } = Np.navigation;
+ r.current = pu === 0 || Fp() ? "boot" : e && !t ? null : "history";
}
let i = (0, F.useRef)(e);
(0, F.useEffect)(() => {
@@ -54291,22 +54304,22 @@ function WW(e, t = !1) {
}));
}, [n]);
}
-function lbe() {
- let e = (0, F.useContext)(qW), t = (0, F.useRef)(e);
+function fbe() {
+ let e = (0, F.useContext)(YW), t = (0, F.useRef)(e);
return (0, F.useLayoutEffect)(() => {
t.current = e;
- }, [e]), WW((t) => {
- let n = Op.navigation.location, { pathname: r, search: i } = Mf(n.pathname) && Ff(n.state) || n, a = zf(r, i);
- e && a && (Gf(), t || Kf(Op.navigation.location.state), e.openOverlay(a));
+ }, [e]), KW((t) => {
+ let n = Np.navigation.location, { pathname: r, search: i } = Mf(n.pathname) && Ff(n.state) || n, a = zf(r, i);
+ e && a && (Gf(), t || Kf(Np.navigation.location.state), e.openOverlay(a));
}, !0), (0, F.useEffect)(() => () => {
queueMicrotask(() => {
- Bf(Op.navigation.location.pathname) || t.current?.closeStage();
+ Bf(Np.navigation.location.pathname) || t.current?.closeStage();
});
}, []), null;
}
-function ube({ path: e }) {
- KW();
- let { location: t, seq: n, action: r } = Op.navigation, i = Mf(t.pathname) ? Ff(t.state) : null, a = (i || t).pathname + (i || t).search, o = (0, F.useRef)({
+function pbe({ path: e }) {
+ JW();
+ let { location: t, seq: n, action: r } = Np.navigation, i = Mf(t.pathname) ? Ff(t.state) : null, a = (i || t).pathname + (i || t).search, o = (0, F.useRef)({
identity: a,
seq: i?.seq ?? n,
navigationSeq: n,
@@ -54317,113 +54330,113 @@ function ube({ path: e }) {
seq: n,
navigationSeq: n,
settings: !1
- }), /* @__PURE__ */ (0, I.jsx)(lbe, {}, `${e} ${o.current.seq}`);
+ }), /* @__PURE__ */ (0, I.jsx)(fbe, {}, `${e} ${o.current.seq}`);
}
-function dbe() {
- let e = (0, F.useContext)(qW);
- return WW(() => {
+function mbe() {
+ let e = (0, F.useContext)(YW);
+ return KW(() => {
e?.follow?.ground();
}), null;
}
-function fbe() {
- return /* @__PURE__ */ (0, I.jsx)(dbe, {}, KW());
+function hbe() {
+ return /* @__PURE__ */ (0, I.jsx)(mbe, {}, JW());
}
// src/react/router/router.tsx
-var GW = (0, F.createContext)(0), KW = () => (0, F.useContext)(GW), qW = (0, F.createContext)(null);
-function pbe({ children: e }) {
- let [t, n] = (0, F.useState)(() => Op.navigation);
- return (0, F.useLayoutEffect)(() => (n(Op.navigation), Op.listen((e) => {
+var qW = (0, F.createContext)(0), JW = () => (0, F.useContext)(qW), YW = (0, F.createContext)(null);
+function gbe({ children: e }) {
+ let [t, n] = (0, F.useState)(() => Np.navigation);
+ return (0, F.useLayoutEffect)(() => (n(Np.navigation), Np.listen((e) => {
(0, Rt.flushSync)(() => n(e));
- })), []), /* @__PURE__ */ (0, I.jsx)(GW.Provider, {
+ })), []), /* @__PURE__ */ (0, I.jsx)(qW.Provider, {
value: t.openEpoch,
children: /* @__PURE__ */ (0, I.jsx)(Tf, {
location: t.location,
navigationType: t.action,
- navigator: Op,
+ navigator: Np,
children: e
})
});
}
-function mbe({ target: e }) {
+function _be({ target: e }) {
let t = nf();
return (0, F.useLayoutEffect)(() => {
e.current = t;
}), null;
}
-function hbe(e, t, n) {
+function vbe(e, t, n) {
let r = new URL(e, window.location.href);
- R6(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);
+ B6(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);
}
-function gbe() {
- let e = (0, F.useContext)(qW), [t, n] = (0, F.useState)(dp), r = (0, F.useRef)(null);
- (0, F.useLayoutEffect)(() => (n(dp()), fp((e, t) => {
+function ybe() {
+ let e = (0, F.useContext)(YW), [t, n] = (0, F.useState)(gp), r = (0, F.useRef)(null);
+ (0, F.useLayoutEffect)(() => (n(gp()), _p((e, t) => {
t ? (0, Rt.flushSync)(() => n(e)) : n(e);
})), []);
let i = (0, F.useMemo)(() => (t) => {
- e && r.current && hbe(t, e, r.current);
+ e && r.current && vbe(t, e, r.current);
}, [e]);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(mbe, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, I.jsx)(_be, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(_be, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, I.jsx)(bbe, {
entry: t,
- children: /* @__PURE__ */ (0, I.jsx)(vbe, {
+ children: /* @__PURE__ */ (0, I.jsx)(xbe, {
entry: t,
actions: e,
go: i
})
}, t.revision)) : null] });
}
-var _be = class extends F.Component {
+var bbe = class extends F.Component {
state = { failed: !1 };
static getDerivedStateFromError() {
return { failed: !0 };
}
componentDidCatch() {
- yp(this.props.entry.container, this.props.entry.revision);
+ wp(this.props.entry.container, this.props.entry.revision);
}
render() {
return this.state.failed ? null : this.props.children;
}
-}, vbe = (0, F.memo)(function({ entry: e, actions: t, go: n }) {
- return Q6(e.path) ? (0, Rt.createPortal)(rLe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
+}, xbe = (0, F.memo)(function({ entry: e, actions: t, go: n }) {
+ return e8(e.path) ? (0, Rt.createPortal)(oLe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
});
-function ybe({ children: e }) {
+function Sbe({ children: e }) {
let t = ef();
- KW();
- let n = jp(), r = Mf(t.pathname) && !Ap() ? Ff(t.state) : null;
+ JW();
+ let n = Ip(), r = Mf(t.pathname) && !Fp() ? Ff(t.state) : null;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsxs)(Ef, {
location: n ?? t,
children: [
- Object.entries(L6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
+ Object.entries(z6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
element: t.element
}, e)),
- Object.entries($Ie).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
+ Object.entries(nLe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
element: t.element
}, e)),
- Object.entries(z6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
+ Object.entries(V6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
element: t.element
}, e)),
- Object.entries(H6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
+ Object.entries(W6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
element: t.element
}, e)),
- Object.entries(W6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
+ Object.entries(K6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
element: t.element
}, e)),
- Z6.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
+ $6.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
- element: G6["/"].element
+ element: q6["/"].element
}, e)),
- Object.entries(eLe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
+ Object.entries(rLe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
element: t.element
}, e)),
If.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
- element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, I.jsx)(fbe, {}) : G6["/"].element
+ element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, I.jsx)(hbe, {}) : q6["/"].element
}, e)),
jf.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
@@ -54439,7 +54452,7 @@ function ybe({ children: e }) {
location: r ?? t,
children: [If.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
- element: /* @__PURE__ */ (0, I.jsx)(ube, { path: e })
+ element: /* @__PURE__ */ (0, I.jsx)(pbe, { path: e })
}, e)), /* @__PURE__ */ (0, I.jsx)(wf, {
path: "*",
element: null
@@ -54447,38 +54460,38 @@ function ybe({ children: e }) {
}),
/* @__PURE__ */ (0, I.jsxs)(Ef, { children: [jf.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
- element: /* @__PURE__ */ (0, I.jsx)(fye, {})
+ element: /* @__PURE__ */ (0, I.jsx)(hye, {})
}, e)), /* @__PURE__ */ (0, I.jsx)(wf, {
path: "*",
element: null
})] })
] });
}
-function bbe({ children: e, actions: t = null, background: n, processing: r = !1 }) {
- return /* @__PURE__ */ (0, I.jsxs)(zV, { children: [n, /* @__PURE__ */ (0, I.jsx)(qW.Provider, {
+function Cbe({ children: e, actions: t = null, background: n, processing: r = !1 }) {
+ return /* @__PURE__ */ (0, I.jsxs)(VV, { children: [n, /* @__PURE__ */ (0, I.jsx)(YW.Provider, {
value: t,
- children: /* @__PURE__ */ (0, I.jsxs)(pbe, { children: [
- /* @__PURE__ */ (0, I.jsx)(gbe, {}),
- /* @__PURE__ */ (0, I.jsx)(obe, {}),
- /* @__PURE__ */ (0, I.jsx)(cbe, {}),
- r && t ? /* @__PURE__ */ (0, I.jsx)(Ove, { toast: t.toast }) : null,
- r && t ? /* @__PURE__ */ (0, I.jsx)(Mve, {}) : null,
- r && t ? /* @__PURE__ */ (0, I.jsx)(dye, { navigate: t.navigate }) : null,
- r && t ? /* @__PURE__ */ (0, I.jsx)(sye, { actions: t }) : null,
- /* @__PURE__ */ (0, I.jsx)(ybe, { children: e })
+ children: /* @__PURE__ */ (0, I.jsxs)(gbe, { children: [
+ /* @__PURE__ */ (0, I.jsx)(ybe, {}),
+ /* @__PURE__ */ (0, I.jsx)(lbe, {}),
+ /* @__PURE__ */ (0, I.jsx)(dbe, {}),
+ r && t ? /* @__PURE__ */ (0, I.jsx)(jve, { toast: t.toast }) : null,
+ r && t ? /* @__PURE__ */ (0, I.jsx)(Fve, {}) : null,
+ r && t ? /* @__PURE__ */ (0, I.jsx)(mye, { navigate: t.navigate }) : null,
+ r && t ? /* @__PURE__ */ (0, I.jsx)(uye, { actions: t }) : null,
+ /* @__PURE__ */ (0, I.jsx)(Sbe, { children: e })
] })
})] });
}
-var xbe = { onCaughtError: (e) => {
+var wbe = { onCaughtError: (e) => {
globalThis.reportError?.(e);
-} }, JW = {
+} }, XW = {
category: "个人分类",
creator: "创作者/账号",
performer: "人物",
seller: "卖家",
studio: "厂牌"
};
-function YW(e, t = "", n = "") {
+function ZW(e, t = "", n = "") {
let r = new URLSearchParams({
...e,
folder: t,
@@ -54490,14 +54503,14 @@ function YW(e, t = "", n = "") {
queryFn: ({ signal: e }) => B(`/api/folders?${r}`, e)
};
}
-function XW(e, t) {
+function QW(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}` : "");
}
// src/react/catalog-folders/folder-rule-dialog.tsx
-function Sbe({ folder: e, rule: t, revision: n, close: r }) {
- let i = (0, F.useContext)(qW), a = fH(), [o, s] = (0, F.useState)(t?.purpose || "category"), [c, l] = (0, F.useState)(t?.name || ""), [u, d] = (0, F.useState)(t?.recursive ?? !0), [f, p] = (0, F.useState)(t?.future ?? !1), [m, h] = (0, F.useState)(null), [g, _] = (0, F.useState)(!1), v = {
+function Tbe({ folder: e, rule: t, revision: n, close: r }) {
+ let i = (0, F.useContext)(YW), a = mH(), [o, s] = (0, F.useState)(t?.purpose || "category"), [c, l] = (0, F.useState)(t?.name || ""), [u, d] = (0, F.useState)(t?.recursive ?? !0), [f, p] = (0, F.useState)(t?.future ?? !1), [m, h] = (0, F.useState)(null), [g, _] = (0, F.useState)(!1), v = {
folder: e.id,
purpose: o,
name: c,
@@ -54526,7 +54539,7 @@ function Sbe({ folder: e, rule: t, revision: n, close: r }) {
})
})).confirmed ? b("已移除目录规则") : _(!1);
}, w = !!a.busy, T = (e, t) => a.busy === e ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Bs(t) } }), t] }) : null;
- return g ? null : /* @__PURE__ */ (0, I.jsx)(aV, {
+ return g ? null : /* @__PURE__ */ (0, I.jsx)(sV, {
isOpen: !0,
onOpenChange: (e) => {
!e && !w && r();
@@ -54540,7 +54553,7 @@ function Sbe({ 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, I.jsxs)("div", {
className: "min-w-0",
- children: [/* @__PURE__ */ (0, I.jsx)(RL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(BL, {
slot: "title",
className: "text-title-2-medium",
children: "设置目录用途"
@@ -54548,7 +54561,7 @@ function Sbe({ 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, I.jsx)(dV, {
+ }), /* @__PURE__ */ (0, I.jsx)(pV, {
label: "关闭目录用途",
onPress: () => {
w || r();
@@ -54560,20 +54573,20 @@ function Sbe({ folder: e, rule: t, revision: n, close: r }) {
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, I.jsx)(QB, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, I.jsx)(BU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(eV, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, I.jsx)(HU, {
"aria-label": "这个文件夹用于",
selectedKey: o,
isDisabled: w,
onSelectionChange: (e) => {
s(e), y();
},
- children: Object.entries(JW).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(VU, {
+ children: Object.entries(XW).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(UU, {
id: e,
children: t
}, e))
})]
}),
- o === "category" ? null : /* @__PURE__ */ (0, I.jsx)(iV, {
+ o === "category" ? null : /* @__PURE__ */ (0, I.jsx)(oV, {
label: "关联名称",
value: c,
onChange: (e) => {
@@ -54584,7 +54597,7 @@ function Sbe({ folder: e, rule: t, revision: n, close: r }) {
isDisabled: w,
isRequired: !0
}),
- /* @__PURE__ */ (0, I.jsx)(IV, {
+ /* @__PURE__ */ (0, I.jsx)(RV, {
isSelected: u,
isDisabled: w,
onChange: (e) => {
@@ -54592,7 +54605,7 @@ function Sbe({ folder: e, rule: t, revision: n, close: r }) {
},
children: "应用到子文件夹"
}),
- /* @__PURE__ */ (0, I.jsx)(IV, {
+ /* @__PURE__ */ (0, I.jsx)(RV, {
isSelected: f,
isDisabled: w,
onChange: (e) => {
@@ -54629,9 +54642,9 @@ function Sbe({ folder: e, rule: t, revision: n, close: r }) {
children: e.name
}, e.id))
}) : null,
- m.conflicts.length ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ m.conflicts.length ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "warning",
- extra: /* @__PURE__ */ (0, I.jsx)(IH, {
+ extra: /* @__PURE__ */ (0, I.jsx)(RH, {
summary: "查看归属冲突",
children: /* @__PURE__ */ (0, I.jsx)("ul", {
className: "mt-2 flex flex-col gap-2",
@@ -54649,7 +54662,7 @@ function Sbe({ folder: e, rule: t, revision: n, close: r }) {
}) : null
]
}) : null,
- a.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ a.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "error",
children: a.error
}) : null
@@ -54664,7 +54677,7 @@ function Sbe({ folder: e, rule: t, revision: n, close: r }) {
onClick: () => {
w || C();
},
- ...fV(a.busy === "remove"),
+ ...mV(a.busy === "remove"),
children: "移除规则"
}) : null,
/* @__PURE__ */ (0, I.jsx)(J, {
@@ -54676,13 +54689,13 @@ function Sbe({ folder: e, rule: t, revision: n, close: r }) {
}),
m ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "primary",
- ...fV(a.busy === "save"),
+ ...mV(a.busy === "save"),
onClick: S,
children: T("save", "正在保存") || "保存目录用途"
}) : /* @__PURE__ */ (0, I.jsx)(J, {
variant: "primary",
disabled: o !== "category" && !c.trim(),
- ...fV(a.busy === "preview"),
+ ...mV(a.busy === "preview"),
onClick: () => {
x();
},
@@ -54695,7 +54708,7 @@ function Sbe({ folder: e, rule: t, revision: n, close: r }) {
});
}
// src/react/catalog-folders/use-folder-sticky-offset.ts
-function Cbe(e, t) {
+function Ebe(e, t) {
(0, F.useLayoutEffect)(() => {
if (!e) return;
let n = t ? document.getElementById("index") : document.getElementById("catalogFilter"), r = null, i = 0, a = new ResizeObserver(() => s()), o = () => {
@@ -54718,34 +54731,34 @@ function Cbe(e, t) {
}, [e, t]);
}
// src/react/catalog-folders/catalog-folders-page.tsx
-function ZW() {
- return $d() ? /* @__PURE__ */ (0, I.jsx)(wbe, {}) : null;
+function $W() {
+ return $d() ? /* @__PURE__ */ (0, I.jsx)(Dbe, {}) : null;
}
-function wbe() {
- let e = ef(), t = (0, F.useContext)(qW);
+function Dbe() {
+ let e = ef(), t = (0, F.useContext)(YW);
if (!jn(e.pathname) && !/^\/(performers|creators|studios|series|agencies|tags)\/[^/]+$/.test(e.pathname)) return null;
let n = new URLSearchParams(e.search), r = n.get("browse") === "folders" || !!n.get("folder");
- return /* @__PURE__ */ (0, I.jsx)(iL, {
+ return /* @__PURE__ */ (0, I.jsx)(oL, {
size: "small",
"data-folder-mode-toggle": "",
"aria-label": "文件夹模式",
title: "文件夹模式",
"aria-pressed": r,
- icon: kB,
- onClick: () => t?.navigate(XW(e, r ? {
+ icon: jB,
+ onClick: () => t?.navigate(QW(e, r ? {
browse: null,
folder: null,
folder_recursive: null
} : { browse: "folders" }))
});
}
-function Tbe({ children: e, enabled: t }) {
- return $d() ? /* @__PURE__ */ (0, I.jsx)(Ebe, {
+function Obe({ children: e, enabled: t }) {
+ return $d() ? /* @__PURE__ */ (0, I.jsx)(kbe, {
enabled: t,
children: e
}) : /* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: e });
}
-function Ebe({ children: e, enabled: t }) {
+function kbe({ children: e, enabled: t }) {
let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(null), o = ef(), s = new URLSearchParams(o.search), c = t && (s.get("browse") === "folders" || !!s.get("folder"));
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "entity-folder-workspace",
@@ -54765,7 +54778,7 @@ function Ebe({ children: e, enabled: t }) {
hidden: !c
}), e]
}),
- n && i ? /* @__PURE__ */ (0, I.jsx)(QW, {
+ n && i ? /* @__PURE__ */ (0, I.jsx)(eG, {
treeTarget: n,
headerTarget: i,
enabled: t
@@ -54773,14 +54786,14 @@ function Ebe({ children: e, enabled: t }) {
]
});
}
-function QW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
- let r = ef(), i = (0, F.useContext)(qW), a = new URLSearchParams(r.search), o = n && (a.get("browse") === "folders" || !!a.get("folder")), s = {
+function eG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
+ let r = ef(), i = (0, F.useContext)(YW), a = new URLSearchParams(r.search), o = n && (a.get("browse") === "folders" || !!a.get("folder")), s = {
loc: a.get("loc") ?? "",
library: a.get("library") ?? ""
};
- Cbe(o, e);
+ Ebe(o, e);
let c = a.get("folder") || "", l = Ft({
- ...YW(s, c),
+ ...ZW(s, c),
enabled: o
}), [u, d] = (0, F.useState)(!1), [f, p] = (0, F.useState)(!1), m = e ?? document.getElementById("catalogFoldersTree"), h = t ?? document.getElementById("catalogFolderHeader");
if ((0, F.useLayoutEffect)(() => (m && (m.hidden = !o), h && (h.hidden = !o), e || document.body.toggleAttribute("data-folder-browse", o), () => {
@@ -54794,11 +54807,11 @@ function QW({ 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(XW(r, {
+ d(!1), i.navigate(QW(r, {
browse: "folders",
folder: e
}));
- }, _ = l.data, v = /* @__PURE__ */ (0, I.jsx)(Obe, {
+ }, _ = l.data, v = /* @__PURE__ */ (0, I.jsx)(jbe, {
scope: s,
selected: c,
current: _,
@@ -54815,21 +54828,21 @@ function QW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "folder-drawer-trigger",
- children: /* @__PURE__ */ (0, I.jsx)(iL, {
+ children: /* @__PURE__ */ (0, I.jsx)(oL, {
"aria-label": "打开文件夹目录",
- icon: Bge,
+ icon: Uge,
size: "small",
onClick: () => d(!0)
})
}),
- /* @__PURE__ */ (0, I.jsxs)(c_e, {
+ /* @__PURE__ */ (0, I.jsxs)(d_e, {
"aria-label": "文件夹路径",
- children: [/* @__PURE__ */ (0, I.jsx)(DV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(kV, {
current: !c,
onClick: () => g(""),
- icon: kB,
+ icon: jB,
children: "全部文件夹"
- }), _?.ancestors.map((e, t) => /* @__PURE__ */ (0, I.jsx)(DV, {
+ }), _?.ancestors.map((e, t) => /* @__PURE__ */ (0, I.jsx)(kV, {
current: t === _.ancestors.length - 1,
onClick: () => g(e.id),
children: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -54839,15 +54852,15 @@ function QW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
})
}, e.id))]
}),
- _?.selected ? /* @__PURE__ */ (0, I.jsx)(iL, {
+ _?.selected ? /* @__PURE__ */ (0, I.jsx)(oL, {
"aria-label": "设置目录用途",
- icon: Dge,
+ icon: Age,
size: "small",
onClick: () => p(!0)
}) : null
]
}),
- l.error && !u ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ l.error && !u ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -54859,7 +54872,7 @@ function QW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}),
children: lr(l.error)
}) : null,
- _?.conflicts?.length ? /* @__PURE__ */ (0, I.jsxs)(sV, {
+ _?.conflicts?.length ? /* @__PURE__ */ (0, I.jsxs)(lV, {
tone: "warning",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -54871,14 +54884,14 @@ function QW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}) : null,
_?.selected ? /* @__PURE__ */ (0, I.jsxs)("div", {
className: "folder-scope-row",
- children: [/* @__PURE__ */ (0, I.jsx)(IV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(RV, {
size: "sm",
isSelected: a.get("folder_recursive") !== "0",
- onChange: (e) => i.navigate(XW(r, { folder_recursive: e ? null : "0" })),
+ onChange: (e) => i.navigate(QW(r, { folder_recursive: e ? null : "0" })),
children: "包含子文件夹"
}), /* @__PURE__ */ (0, I.jsx)("span", {
className: "text-caption-1-regular text-text-tertiary",
- children: _.rule ? `${JW[_.rule.purpose]}${_.rule.name ? ` · ${_.rule.name}` : ""}` : "个人分类"
+ children: _.rule ? `${XW[_.rule.purpose]}${_.rule.name ? ` · ${_.rule.name}` : ""}` : "个人分类"
})]
}) : null,
l.isPending ? /* @__PURE__ */ (0, I.jsx)("div", {
@@ -54888,13 +54901,13 @@ function QW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
className: "folder-children",
children: Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, I.jsx)("span", { className: "skeleton-sheen h-8 w-28 rounded-lg" }, t))
}) : null,
- _?.children.length ? /* @__PURE__ */ (0, I.jsx)(Dbe, {
+ _?.children.length ? /* @__PURE__ */ (0, I.jsx)(Abe, {
nodes: _.children,
go: g
}, c) : null
]
}), h),
- /* @__PURE__ */ (0, I.jsxs)(aV, {
+ /* @__PURE__ */ (0, I.jsxs)(sV, {
isOpen: u,
onOpenChange: d,
width: "form",
@@ -54904,7 +54917,7 @@ function QW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
className: "text-title-2-medium",
children: "文件夹"
- }), /* @__PURE__ */ (0, I.jsx)(dV, {
+ }), /* @__PURE__ */ (0, I.jsx)(pV, {
label: "关闭文件夹目录",
onPress: () => d(!1)
})]
@@ -54913,7 +54926,7 @@ function QW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: u ? v : null
})]
}),
- f && _?.selected ? /* @__PURE__ */ (0, I.jsx)(Sbe, {
+ f && _?.selected ? /* @__PURE__ */ (0, I.jsx)(Tbe, {
folder: _.selected,
rule: _.rule,
revision: _.rules_revision,
@@ -54921,7 +54934,7 @@ function QW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}, _.selected.id) : null
] });
}
-function Dbe({ nodes: e, go: t }) {
+function Abe({ nodes: e, go: t }) {
let [n, r] = (0, F.useState)(!1), i = (0, F.useId)(), a = n ? e : e.slice(0, 12);
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-col items-start gap-2",
@@ -54932,7 +54945,7 @@ function Dbe({ nodes: e, go: t }) {
children: a.map((e) => /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: kB,
+ leadingIcon: jB,
onClick: () => t(e.id),
children: /* @__PURE__ */ (0, I.jsx)("span", {
className: "truncate",
@@ -54949,28 +54962,28 @@ function Dbe({ nodes: e, go: t }) {
}) : null]
});
}
-function Obe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
- let a = Ft(YW(e)), [o, s] = (0, F.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, F.useState)(""), u = (0, F.useDeferredValue)(c), d = Ft({
- ...YW(e, "", u),
+function jbe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
+ let a = Ft(ZW(e)), [o, s] = (0, F.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, F.useState)(""), u = (0, F.useDeferredValue)(c), d = Ft({
+ ...ZW(e, "", u),
enabled: !!u.trim()
- }), f = LV();
+ }), f = zV();
(0, F.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 = Nt({ queries: p.map((t) => YW(e, t)) }), h = /* @__PURE__ */ new Map();
+ let p = [...o].map(String), m = Nt({ queries: p.map((t) => ZW(e, t)) }), h = /* @__PURE__ */ new Map();
m.forEach((e, t) => {
e.data && h.set(p[t], e.data.children);
}), n?.selected && h.set(n.selected.id, n.children);
let g = (e) => {
let t = h.get(e.id);
- return /* @__PURE__ */ (0, I.jsx)(MV, {
+ return /* @__PURE__ */ (0, I.jsx)(PV, {
id: e.id,
label: e.name,
- icon: kB,
- expandedIcon: jB,
+ icon: jB,
+ expandedIcon: NB,
iconClassName: "size-(--icon-inline)",
trailingContent: e.parent ? void 0 : e.location === "local" ? "本地" : e.location,
- children: e.has_children ? t ? t.map(g) : /* @__PURE__ */ (0, I.jsx)(MV, {
+ children: e.has_children ? t ? t.map(g) : /* @__PURE__ */ (0, I.jsx)(PV, {
id: `${e.id}:loading`,
label: "正在读取文件夹",
isDisabled: !0
@@ -54986,15 +54999,15 @@ function Obe({ 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, I.jsx)(iV, {
+ /* @__PURE__ */ (0, I.jsx)(oV, {
"aria-label": "查找文件夹",
placeholder: "查找文件夹",
- leadingIcon: UB,
+ leadingIcon: GB,
value: c,
onChange: l,
size: "small"
}),
- v ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ v ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -55029,20 +55042,20 @@ function Obe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
"aria-busy": "true",
className: "h-8 skeleton-sheen",
"aria-label": "正在查找文件夹"
- }) : d.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ }) : d.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "error",
children: lr(d.error)
}) : d.data?.matches.length ? d.data.matches.map((e) => /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: kB,
+ leadingIcon: jB,
onClick: () => {
l(""), r(e.id);
},
children: e.name
- }, e.id)) : /* @__PURE__ */ (0, I.jsx)(cV, {
+ }, e.id)) : /* @__PURE__ */ (0, I.jsx)(uV, {
size: "compact",
- icon: UB,
+ icon: GB,
title: "没有匹配的文件夹",
actions: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
@@ -55051,7 +55064,7 @@ function Obe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
}),
children: "换个目录名称试试。"
})
- }) : a.data?.roots.length ? /* @__PURE__ */ (0, I.jsx)(d_e, {
+ }) : a.data?.roots.length ? /* @__PURE__ */ (0, I.jsx)(m_e, {
"aria-label": "媒体目录",
size: "sm",
expandedKeys: o,
@@ -55059,11 +55072,11 @@ function Obe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
selectedKeys: new Set(t ? [t] : []),
onSelectionChange: _,
children: a.data?.roots.map(g)
- }) : /* @__PURE__ */ (0, I.jsx)(cV, {
+ }) : /* @__PURE__ */ (0, I.jsx)(uV, {
size: "compact",
- icon: kB,
+ icon: jB,
title: "尚未添加媒体目录",
- actions: /* @__PURE__ */ (0, I.jsx)(gL, {
+ actions: /* @__PURE__ */ (0, I.jsx)(vL, {
size: "small",
href: "/settings/library",
children: "添加媒体"
@@ -55076,63 +55089,63 @@ function Obe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
});
}
// src/react/catalog-grid/catalog-view.ts
-var $W = "peach.catalog-view.v1", eG = /* @__PURE__ */ new Set(), tG = "cards";
-function nG() {
+var tG = "peach.catalog-view.v1", nG = /* @__PURE__ */ new Set(), rG = "cards";
+function iG() {
try {
- return localStorage.getItem($W) === "list" ? "list" : "cards";
+ return localStorage.getItem(tG) === "list" ? "list" : "cards";
} catch {
- return tG;
+ return rG;
}
}
-function kbe(e) {
- tG = e === "list" ? "list" : "cards";
+function Mbe(e) {
+ rG = e === "list" ? "list" : "cards";
try {
- localStorage.setItem($W, tG);
+ localStorage.setItem(tG, rG);
} catch {}
- eG.forEach((e) => e());
+ nG.forEach((e) => e());
}
-function Abe(e) {
- eG.add(e);
+function Nbe(e) {
+ nG.add(e);
let t = (t) => {
- (t.key === $W || t.key === null) && e();
+ (t.key === tG || t.key === null) && e();
};
return addEventListener("storage", t), () => {
- eG.delete(e), removeEventListener("storage", t);
+ nG.delete(e), removeEventListener("storage", t);
};
}
-var rG = () => (0, F.useSyncExternalStore)(Abe, nG, () => "cards");
+var aG = () => (0, F.useSyncExternalStore)(Nbe, iG, () => "cards");
// src/react/catalog-grid/catalog-view-toggle.tsx
-function iG() {
- let e = rG();
- return /* @__PURE__ */ (0, I.jsxs)(kz, {
+function oG() {
+ let e = aG();
+ return /* @__PURE__ */ (0, I.jsxs)(jz, {
"aria-label": "馆藏显示方式",
orientation: "horizontal",
value: e,
- onChange: kbe,
+ onChange: Mbe,
"data-entity-layout": "",
- className: rU,
- children: [/* @__PURE__ */ (0, I.jsx)(Az, {
+ className: aU,
+ children: [/* @__PURE__ */ (0, I.jsx)(Mz, {
value: "cards",
"aria-label": "卡片",
- className: iU,
+ className: oU,
"data-glass-segment": "",
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: "卡片",
className: "pointer-events-none contents",
- children: /* @__PURE__ */ (0, I.jsx)(FB, {
+ children: /* @__PURE__ */ (0, I.jsx)(LB, {
"aria-hidden": "true",
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, I.jsx)(Az, {
+ }), /* @__PURE__ */ (0, I.jsx)(Mz, {
value: "list",
"aria-label": "列表",
- className: iU,
+ className: oU,
"data-glass-segment": "",
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: "列表",
className: "pointer-events-none contents",
- children: /* @__PURE__ */ (0, I.jsx)(Ige, {
+ children: /* @__PURE__ */ (0, I.jsx)(zge, {
"aria-hidden": "true",
className: "size-4"
})
@@ -55141,8 +55154,8 @@ function iG() {
});
}
// src/react/components/icon-swap.tsx
-function aG({ a: e, b: t, state: n, className: r }) {
- let { isFocusVisible: i } = SC();
+function sG({ a: e, b: t, state: n, className: r }) {
+ let { isFocusVisible: i } = EC();
return /* @__PURE__ */ (0, I.jsxs)("span", {
"aria-hidden": !0,
className: `iconswap ${r || ""}`,
@@ -55158,114 +55171,114 @@ function aG({ a: e, b: t, state: n, className: r }) {
})]
});
}
-function oG({ className: e }) {
- return /* @__PURE__ */ (0, I.jsx)(aG, {
- a: sge,
- b: oge,
+function cG({ className: e }) {
+ return /* @__PURE__ */ (0, I.jsx)(sG, {
+ a: uge,
+ b: lge,
className: e
});
}
// src/react/follow-feed/follow-marks.ts
-var sG = (e) => typeof e == "string" ? e : "", cG = (e) => e.aliases;
-function lG(e, t = "") {
+var lG = (e) => typeof e == "string" ? e : "", uG = (e) => e.aliases;
+function dG(e, t = "") {
let n = Ji(e);
return n ? `<img data-follow-site-icon="" src="${n}" alt="${z(t)}"${t ? ` title="${z(t)}"` : ""} loading="lazy" data-drop="self">` : "";
}
-function uG(e, t = "") {
+function fG(e, t = "") {
let n = z(si(t || e)), r = Ji(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 dG = (e) => sG(e.title).trim() || "未命名内容", fG = (e, t) => oi(e, cG(t));
-function pG(e) {
+var pG = (e) => lG(e.title).trim() || "未命名内容", mG = (e, t) => oi(e, uG(t));
+function hG(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 = sG(n.entity_name);
+ let n = t[0], r = lG(n.entity_name);
return ln("creator", r, n.entity_id), r;
}
-function mG(e, t) {
+function gG(e, t) {
let { src: n, fallback: r } = ci(e), i = si(t);
if (!n) return `<span class="favatar none" title="没有可用头像">${z(i)}</span>`;
let a = r ? ` data-fallbacks="${z(r)}"` : "";
return `<img class="favatar" src="${z(n)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="initial"${a} data-initial="${z(i)}" data-drop-class="favatar none">`;
}
-function hG(e, t, n) {
- let r = cG(n), i = e.credit, a = i?.poster;
+function _G(e, t, n) {
+ let r = uG(n), i = e.credit, a = i?.poster;
if (!a) {
let n = oi(t, r);
return {
- author: n || sG(e.author) || sG(e.source_label) || "创作者未取得",
- avatar: mG(t, n),
+ author: n || lG(e.author) || lG(e.source_label) || "创作者未取得",
+ avatar: gG(t, n),
credited: "",
- entityName: pG(t)
+ entityName: hG(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 && oi(c, r) || a;
return {
author: l,
- avatar: mG(c, l),
+ avatar: gG(c, l),
credited: i.credited || "",
- entityName: pG(c)
+ entityName: hG(c)
};
}
-function gG(e, t = e.primary) {
+function vG(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 = sG(e.primary.version);
+ let i = lG(e.primary.version);
i && n.push(r("version", z(i)));
- let a = sG(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
+ let a = lG(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
return o && n.push(r(a, o)), n.join("");
}
-function _G(e, t = e.primary) {
+function yG(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]) => lG(e, t) || `<span>${z(t)}</span>`).join("");
+ let r = [...n].map(([e, t]) => dG(e, t) || `<span>${z(t)}</span>`).join("");
return `<span data-follow-seealso="" title="另见 ${z([...n.values()].join("、"))}"><span data-follow-seealso-label="">另见</span> ${r}</span>`;
}
-function vG(e, t) {
- let n = sG(e.media_error);
+function bG(e, t) {
+ let n = lG(e.media_error);
return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";
}
-var jbe = 864e5, Mbe = (e, t) => {
+var Pbe = 864e5, Fbe = (e, t) => {
let n = new Date(/[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`).getTime();
- return Number.isFinite(n) && n - t > jbe;
+ return Number.isFinite(n) && n - t > Pbe;
};
-function yG(e, t) {
- let n = sG(e.published_at);
+function xG(e, t) {
+ let n = lG(e.published_at);
if (!n) return null;
let r = e.published_precision === "approximate", i = Cr(n);
return {
prefix: r ? "约 " : "",
full: r ? i.slice(0, 10) : i,
- suffix: Mbe(n, t) ? " · 晚于现在" : ""
+ suffix: Fbe(n, t) ? " · 晚于现在" : ""
};
}
-function bG(e, t = Date.now()) {
- let n = yG(e, t);
+function SG(e, t = Date.now()) {
+ let n = xG(e, t);
return n ? `${n.prefix}${n.full}${n.suffix}` : "时间未取得";
}
-function xG(e, t = Date.now()) {
- let n = yG(e, t);
+function CG(e, t = Date.now()) {
+ let n = xG(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 SG = /* @__PURE__ */ new Set(), CG = [], wG = null;
-function TG() {
- if (wG = null, !CG.length) return;
- let e = CG.splice(0, 200);
+var wG = /* @__PURE__ */ new Set(), TG = [], EG = null;
+function DG() {
+ if (EG = null, !TG.length) return;
+ let e = TG.splice(0, 200);
Tn("/api/follow/image-dims", {
method: "POST",
body: JSON.stringify({ entries: e })
- }).catch(() => {}), CG.length && (wG = setTimeout(TG, 800));
+ }).catch(() => {}), TG.length && (EG = setTimeout(DG, 800));
}
-function Nbe(e, t, n, r) {
+function Ibe(e, t, n, r) {
let i = `${e}:${t ?? ""}`;
- SG.has(i) || (SG.add(i), CG.push(t === null ? {
+ wG.has(i) || (wG.add(i), TG.push(t === null ? {
item: e,
width: n,
height: r
@@ -55274,25 +55287,25 @@ function Nbe(e, t, n, r) {
width: n,
height: r,
media: t
- }), wG ||= setTimeout(TG, 800));
+ }), EG ||= setTimeout(DG, 800));
}
// src/react/entity-filter/entity-filter.ts
-var Pbe = (e) => e === "videos", EG = () => /* @__PURE__ */ (0, I.jsx)("span", {
+var Lbe = (e) => e === "videos", OG = () => /* @__PURE__ */ (0, I.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), Fbe = uV("shuffle"), Ibe = uV("arrow-up"), Lbe = uV("arrow-down");
-function Rbe(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Pbe(t), u = t === "online" ? e.online : null, d = l || !!u, f = u ? u.status : r, p = u ? u.statuses.map(([e, t]) => ({
+}), Rbe = fV("shuffle"), zbe = fV("arrow-up"), Bbe = fV("arrow-down");
+function Vbe(e) {
+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Lbe(t), u = t === "online" ? e.online : null, d = l || !!u, f = u ? u.status : r, p = u ? u.statuses.map(([e, t]) => ({
k: e,
label: t
- })) : i, m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(null), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = mL(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = mL(h, _, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`), C = (0, F.useRef)(null), w = (0, F.useRef)(null), T = u?.mediaCounts ? u : null, E = mL(C, w, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!T}`);
+ })) : i, m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(null), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = gL(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = gL(h, _, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`), C = (0, F.useRef)(null), w = (0, F.useRef)(null), T = u?.mediaCounts ? u : null, E = gL(C, w, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!T}`);
return (0, F.useEffect)(() => {
c.wireDrag(y.current), c.wireScroller(v.current), c.wireDrag(b.current);
- }, [c]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(DG, {
+ }, [c]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(kG, {
items: o,
hidden: !l,
actions: s
- }), /* @__PURE__ */ (0, I.jsx)(lL, {
+ }), /* @__PURE__ */ (0, I.jsx)(dL, {
label: "筛选与排序",
topLabel: "媒体与标签",
attrs: {
@@ -55321,19 +55334,19 @@ function Rbe(e) {
})
] }),
top: !n && !d ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Hbe, {
+ n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Gbe, {
keys: n,
view: t,
row: _,
glide: S,
onView: s.setView
- }), d ? /* @__PURE__ */ (0, I.jsx)(EG, {}) : null] }) : null,
- T ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Bbe, {
+ }), d ? /* @__PURE__ */ (0, I.jsx)(OG, {}) : null] }) : null,
+ T ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Ube, {
head: T,
row: w,
glide: E,
onMedia: s.onlineMedia
- }), /* @__PURE__ */ (0, I.jsx)(EG, {})] }) : null,
+ }), /* @__PURE__ */ (0, I.jsx)(OG, {})] }) : null,
/* @__PURE__ */ (0, I.jsxs)("div", {
ref: v,
"data-entity-scroll": "",
@@ -55354,11 +55367,11 @@ function Rbe(e) {
f !== e.k && (u ? s.onlineStatus(e.k) : s.setState(e.k));
},
children: e.label
- }, e.k)), !u || u.providers.length || u.tags.length ? /* @__PURE__ */ (0, I.jsx)(EG, {}) : null]
+ }, e.k)), !u || u.providers.length || u.tags.length ? /* @__PURE__ */ (0, I.jsx)(OG, {}) : null]
}), /* @__PURE__ */ (0, I.jsx)("div", {
ref: y,
"data-entity-tags": "",
- children: l ? a.map((e) => /* @__PURE__ */ (0, I.jsxs)(uL, {
+ children: l ? a.map((e) => /* @__PURE__ */ (0, I.jsxs)(fL, {
"data-entity-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -55367,17 +55380,17 @@ function Rbe(e) {
"data-count-badge": e.k,
children: e.n.toLocaleString()
})]
- }, e.k)) : u ? /* @__PURE__ */ (0, I.jsx)(Vbe, {
+ }, e.k)) : u ? /* @__PURE__ */ (0, I.jsx)(Wbe, {
head: u,
actions: s
}) : null
})]
})
] }),
- bottom: /* @__PURE__ */ (0, I.jsx)(Ube, { ...e })
+ bottom: /* @__PURE__ */ (0, I.jsx)(Kbe, { ...e })
})] });
}
-var zbe = [[
+var Hbe = [[
"videos",
"视频",
"play",
@@ -55388,7 +55401,7 @@ var zbe = [[
"pics",
"image"
]];
-function Bbe({ head: e, row: t, glide: n, onMedia: r }) {
+function Ube({ head: e, row: t, glide: n, onMedia: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
ref: t,
role: "group",
@@ -55396,7 +55409,7 @@ function Bbe({ head: e, row: t, glide: n, onMedia: r }) {
"data-entity-media": "",
"data-online-media": "",
onPointerLeave: n.leave,
- children: zbe.map(([t, i, a, o]) => {
+ children: Hbe.map(([t, i, a, o]) => {
let s = `${i} ${Math.max(0, e.mediaCounts?.[t] || 0).toLocaleString()}`;
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -55414,7 +55427,7 @@ function Bbe({ head: e, row: t, glide: n, onMedia: r }) {
})
});
}
-function Vbe({ head: e, actions: t }) {
+function Wbe({ head: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
e.providers.map(([n, r]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -55424,10 +55437,10 @@ function Vbe({ head: e, actions: t }) {
title: r,
"aria-label": `来源:${r}`,
onClick: () => t.onlineProvider(n),
- dangerouslySetInnerHTML: { __html: lG(n) }
+ dangerouslySetInnerHTML: { __html: dG(n) }
}, n)),
- e.providers.length && e.tags.length ? /* @__PURE__ */ (0, I.jsx)(EG, {}) : null,
- e.tags.map((e) => /* @__PURE__ */ (0, I.jsxs)(uL, {
+ e.providers.length && e.tags.length ? /* @__PURE__ */ (0, I.jsx)(OG, {}) : null,
+ e.tags.map((e) => /* @__PURE__ */ (0, I.jsxs)(fL, {
"data-follow-tag": e.k,
"data-entity-press": "",
"data-tag-cat": `r34-${e.cat}`,
@@ -55440,7 +55453,7 @@ function Vbe({ head: e, actions: t }) {
}, e.k))
] });
}
-function Hbe({ keys: e, view: t, row: n, glide: r, onView: i }) {
+function Gbe({ keys: e, view: t, row: n, glide: r, onView: i }) {
let a = [];
return e.people && a.push({
value: "people",
@@ -55488,7 +55501,7 @@ function Hbe({ keys: e, view: t, row: n, glide: r, onView: i }) {
})
});
}
-function DG({ items: e, hidden: t, actions: n }) {
+function kG({ items: e, hidden: t, actions: n }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-combo": "",
hidden: t,
@@ -55508,7 +55521,7 @@ function DG({ items: e, hidden: t, actions: n }) {
})] }) : null
});
}
-function Ube(e) {
+function Kbe(e) {
let { view: t, readout: n, busy: r, video: i, photo: a, actions: o, helpers: s } = e;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
t === "photos" && a?.back ? /* @__PURE__ */ (0, I.jsxs)("button", {
@@ -55520,30 +55533,30 @@ function Ube(e) {
dangerouslySetInnerHTML: { __html: R("chevron-left") }
}), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部照片" })]
}) : null,
- /* @__PURE__ */ (0, I.jsx)(Wbe, {
+ /* @__PURE__ */ (0, I.jsx)(qbe, {
text: n,
busy: r
}),
- /* @__PURE__ */ (0, I.jsx)(TV, { currentHref: () => location.pathname + location.search }),
- t === "videos" && i ? /* @__PURE__ */ (0, I.jsx)(Gbe, {
+ /* @__PURE__ */ (0, I.jsx)(DV, { currentHref: () => location.pathname + location.search }),
+ t === "videos" && i ? /* @__PURE__ */ (0, I.jsx)(Jbe, {
head: i,
actions: o
}) : null,
- t === "photos" && a ? /* @__PURE__ */ (0, I.jsx)(qbe, {
+ t === "photos" && a ? /* @__PURE__ */ (0, I.jsx)(Xbe, {
head: a,
actions: o,
helpers: s
}) : null,
- t === "online" && e.online ? /* @__PURE__ */ (0, I.jsx)(Kbe, {
+ t === "online" && e.online ? /* @__PURE__ */ (0, I.jsx)(Ybe, {
head: e.online,
actions: o
}) : null
] });
}
-function Wbe({ text: e, busy: t }) {
+function qbe({ text: e, busy: t }) {
return /* @__PURE__ */ (0, I.jsx)("h3", {
"data-entity-readout": "",
- children: /* @__PURE__ */ (0, I.jsx)(nL, {
+ children: /* @__PURE__ */ (0, I.jsx)(iL, {
text: t ? void 0 : e,
busy: t,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -55554,22 +55567,22 @@ function Wbe({ text: e, busy: t }) {
})
});
}
-function OG({ name: e, label: t, value: n, options: r, onChange: i }) {
- return /* @__PURE__ */ (0, I.jsx)(kz, {
+function AG({ name: e, label: t, value: n, options: r, onChange: i }) {
+ return /* @__PURE__ */ (0, I.jsx)(jz, {
name: e,
"aria-label": t,
orientation: "horizontal",
value: n,
onChange: i,
"data-entity-layout": "",
- className: rU,
+ className: aU,
children: r.map(([e, t, n]) => {
- let r = uV(n);
- return /* @__PURE__ */ (0, I.jsx)(Az, {
+ let r = fV(n);
+ return /* @__PURE__ */ (0, I.jsx)(Mz, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: iU,
+ className: oU,
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
className: "contents",
@@ -55579,38 +55592,38 @@ function OG({ name: e, label: t, value: n, options: r, onChange: i }) {
})
});
}
-function kG({ onPress: e, busy: t = !1 }) {
- return /* @__PURE__ */ (0, I.jsx)(cL, {
+function jG({ onPress: e, busy: t = !1 }) {
+ return /* @__PURE__ */ (0, I.jsx)(uL, {
"data-entity-batch": "",
label: "换一批",
busy: t,
busyStyle: "strand",
- icon: Fbe,
+ icon: Rbe,
onPress: e
});
}
-function Gbe({ head: e, actions: t }) {
- let n = rG();
+function Jbe({ head: e, actions: t }) {
+ let n = aG();
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(kG, { onPress: () => void t.reshuffle() }),
- e.jav && n === "cards" ? /* @__PURE__ */ (0, I.jsx)(OG, {
+ /* @__PURE__ */ (0, I.jsx)(jG, { onPress: () => void t.reshuffle() }),
+ e.jav && n === "cards" ? /* @__PURE__ */ (0, I.jsx)(AG, {
label: "JAV 卡片版式",
value: e.jav.layout,
options: e.jav.options,
onChange: t.setJavLayout
}) : null,
- /* @__PURE__ */ (0, I.jsx)(iG, {}),
- /* @__PURE__ */ (0, I.jsx)(ZW, {}),
- /* @__PURE__ */ (0, I.jsx)(AG, {
+ /* @__PURE__ */ (0, I.jsx)(oG, {}),
+ /* @__PURE__ */ (0, I.jsx)($W, {}),
+ /* @__PURE__ */ (0, I.jsx)(MG, {
sorts: e.sorts,
onSort: t.setSort
})
]
});
}
-function AG({ sorts: e, onSort: t }) {
+function MG({ sorts: e, onSort: t }) {
return /* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-entity-sort": e.key,
@@ -55618,20 +55631,20 @@ function AG({ 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, I.jsx)(aG, {
- a: Ibe,
- b: Lbe,
+ children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, I.jsx)(sG, {
+ a: zbe,
+ b: Bbe,
state: e.dir === "asc" ? "a" : "b",
className: "size-(--icon-inline)"
}) : null]
}, e.key)) });
}
-function Kbe({ head: e, actions: t }) {
+function Ybe({ head: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(kG, { onPress: t.onlineShuffle }),
- e.media === "images" ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(OG, {
+ /* @__PURE__ */ (0, I.jsx)(jG, { onPress: t.onlineShuffle }),
+ e.media === "images" ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(AG, {
label: "图片布局",
value: e.photoLayout,
options: e.photoLayouts,
@@ -55651,27 +55664,27 @@ function Kbe({ head: e, actions: t }) {
dangerouslySetInnerHTML: { __html: R("captions-off") }
})]
})] }) : null,
- /* @__PURE__ */ (0, I.jsx)(AG, {
+ /* @__PURE__ */ (0, I.jsx)(MG, {
sorts: e.sorts,
onSort: t.onlineSort
})
]
});
}
-function qbe({ head: e, actions: t, helpers: n }) {
+function Xbe({ head: e, actions: t, helpers: n }) {
let [r, i] = (0, F.useState)(!1), a = (0, F.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";
return (0, F.useEffect)(() => {
a.current && o && n.wireSourceTools(a.current);
}, [n, o]), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- e.shuffle ? /* @__PURE__ */ (0, I.jsx)(kG, {
+ e.shuffle ? /* @__PURE__ */ (0, I.jsx)(jG, {
onPress: () => {
i(!0), t.reshuffle().finally(() => i(!1));
},
busy: r
}) : null,
- /* @__PURE__ */ (0, I.jsx)(OG, {
+ /* @__PURE__ */ (0, I.jsx)(AG, {
label: "图片布局",
value: e.layout,
options: e.layouts,
@@ -55686,8 +55699,8 @@ function qbe({ head: e, actions: t, helpers: n }) {
});
}
// src/react/catalog-filter/catalog-filter.ts
-var Jbe = "peach.catalog.tiers.v1";
-function jG() {
+var Zbe = "peach.catalog.tiers.v1";
+function NG() {
try {
let e = JSON.parse(localStorage.getItem("peach.catalog.tiers.v1") || "{}");
return {
@@ -55701,40 +55714,40 @@ function jG() {
};
}
}
-function Ybe(e) {
+function Qbe(e) {
try {
let t = JSON.stringify({
performers: e.performers,
studios: e.studios
});
- localStorage.getItem("peach.catalog.tiers.v1") !== t && localStorage.setItem(Jbe, t);
+ localStorage.getItem("peach.catalog.tiers.v1") !== t && localStorage.setItem(Zbe, t);
} catch {}
}
// src/react/catalog-filter/catalog-filter-page.tsx
-function Xbe(e) {
- let t = !e.tiers, n = rxe(e.comboHost);
+function $be(e) {
+ let t = !e.tiers, n = oxe(e.comboHost);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-catalog-root": "",
"data-loading": t || void 0,
"data-refreshing": e.refreshing || void 0,
className: "contents",
children: [
- n ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(DG, {
+ n ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(kG, {
items: e.combo,
hidden: e.comboHidden,
actions: e.actions
}), n) : null,
- /* @__PURE__ */ (0, I.jsx)($be, { ...e }),
- e.offscreen ? null : /* @__PURE__ */ (0, I.jsx)(Zbe, { ...e })
+ /* @__PURE__ */ (0, I.jsx)(nxe, { ...e }),
+ e.offscreen ? null : /* @__PURE__ */ (0, I.jsx)(exe, { ...e })
]
});
}
-function Zbe(e) {
- let { actions: t, helpers: n } = e, r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(!1), u = mL(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
+function exe(e) {
+ let { actions: t, helpers: n } = e, r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(!1), u = gL(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
(0, F.useEffect)(() => {
n.wireDrag(o.current), n.wireScroller(a.current), n.wireDrag(s.current);
}, [n]);
- let d = !e.tiers, f = NG(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
+ let d = !e.tiers, f = FG(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
return (0, F.useLayoutEffect)(() => {
if (d) {
l(!1);
@@ -55758,7 +55771,7 @@ function Zbe(e) {
e.sorts
]), (0, F.useLayoutEffect)(() => {
ec(o.current, "tagbar");
- }, [f]), /* @__PURE__ */ (0, I.jsx)(lL, {
+ }, [f]), /* @__PURE__ */ (0, I.jsx)(dL, {
label: "筛选与排序",
topLabel: "视图与标签",
attrs: {
@@ -55802,23 +55815,23 @@ function Zbe(e) {
}), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: o,
"data-catalog-tags": "",
- children: [e.empty || d ? /* @__PURE__ */ (0, I.jsx)(MG, { kind: "tag" }) : null, f.map((n) => /* @__PURE__ */ (0, I.jsx)(Qbe, {
+ children: [e.empty || d ? /* @__PURE__ */ (0, I.jsx)(PG, { kind: "tag" }) : null, f.map((n) => /* @__PURE__ */ (0, I.jsx)(txe, {
tag: n,
pending: e.tiersPending,
onPress: t.toggleTag
}, n.k))]
})]
}),
- bottom: e.trash ? null : /* @__PURE__ */ (0, I.jsx)(txe, { ...e })
+ bottom: e.trash ? null : /* @__PURE__ */ (0, I.jsx)(ixe, { ...e })
});
}
-function Qbe({ tag: e, pending: t, onPress: n }) {
- return /* @__PURE__ */ (0, I.jsxs)(uL, {
+function txe({ tag: e, pending: t, onPress: n }) {
+ return /* @__PURE__ */ (0, I.jsxs)(fL, {
"data-catalog-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
onPress: () => n(e.k),
- children: [/* @__PURE__ */ (0, I.jsx)(nL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(iL, {
text: e.label,
busy: t
}), e.n == null ? null : /* @__PURE__ */ (0, I.jsx)("span", {
@@ -55827,15 +55840,15 @@ function Qbe({ tag: e, pending: t, onPress: n }) {
})]
});
}
-function $be(e) {
- tL();
+function nxe(e) {
+ rL();
let { actions: t, helpers: n } = e, r = e.tiers ?? {
key: "",
performers: [],
studios: []
- }, i = !e.tiers, a = e.empty || i, o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useCallback)((e) => () => t.moreTops(e), [t]), l = NG(o, r.performers, r.key, 24, a ? void 0 : c("performers")), u = NG(s, r.studios, r.key, 24, a ? void 0 : c("studios")), d = (0, F.useMemo)(() => i ? jG() : null, [i]), f = d ? d.performers : e.empty || r.performers.length > 0, p = d ? d.studios : e.empty || r.studios.length > 0;
+ }, i = !e.tiers, a = e.empty || i, o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useCallback)((e) => () => t.moreTops(e), [t]), l = FG(o, r.performers, r.key, 24, a ? void 0 : c("performers")), u = FG(s, r.studios, r.key, 24, a ? void 0 : c("studios")), d = (0, F.useMemo)(() => i ? NG() : null, [i]), f = d ? d.performers : e.empty || r.performers.length > 0, p = d ? d.studios : e.empty || r.studios.length > 0;
return (0, F.useEffect)(() => {
- i || Ybe({
+ i || Qbe({
performers: f,
studios: p
});
@@ -55856,7 +55869,7 @@ function $be(e) {
children: [f ? /* @__PURE__ */ (0, I.jsx)("div", {
ref: o,
"data-catalog-tier": "performers",
- children: a ? /* @__PURE__ */ (0, I.jsx)(MG, { kind: "performer" }) : l.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: a ? /* @__PURE__ */ (0, I.jsx)(PG, { kind: "performer" }) : l.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-tier-performer": "",
"data-entity-kind": "performer",
@@ -55867,7 +55880,7 @@ function $be(e) {
dangerouslySetInnerHTML: { __html: n.ringHtml }
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-tier-name": "",
- children: /* @__PURE__ */ (0, I.jsx)(nL, {
+ children: /* @__PURE__ */ (0, I.jsx)(iL, {
text: nn("performer", n.name),
busy: e.tiersPending
})
@@ -55876,13 +55889,13 @@ function $be(e) {
}) : null, p ? /* @__PURE__ */ (0, I.jsx)("div", {
ref: s,
"data-catalog-tier": "studios",
- children: a ? /* @__PURE__ */ (0, I.jsx)(MG, { kind: "studio" }) : u.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: a ? /* @__PURE__ */ (0, I.jsx)(PG, { kind: "studio" }) : u.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-tier-studio": "",
"data-entity-kind": "studio",
"data-entity-name": n.name,
onClick: () => t.openEntity("studio", n.name),
- children: [/* @__PURE__ */ (0, I.jsx)(exe, { studio: n }), /* @__PURE__ */ (0, I.jsx)(nL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(rxe, { studio: n }), /* @__PURE__ */ (0, I.jsx)(iL, {
text: n.name,
busy: e.tiersPending
})]
@@ -55890,7 +55903,7 @@ function $be(e) {
}) : null]
});
}
-function exe({ studio: e }) {
+function rxe({ studio: e }) {
let [t, n] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-tier-mark": "",
@@ -55908,7 +55921,7 @@ function exe({ studio: e }) {
}) : e.fallback
});
}
-function MG({ kind: e }) {
+function PG({ kind: e }) {
let t = Array.from({ length: 64 }, (e, t) => t);
return e === "tag" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-catalog-placeholder": "tag",
@@ -55924,43 +55937,43 @@ function MG({ kind: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", {}), /* @__PURE__ */ (0, I.jsx)("span", { children: "\xA0" })]
}, t)) });
}
-function txe({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
- let a = rG(), [o, s] = (0, F.useState)(!1);
+function ixe({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
+ let a = aG(), [o, s] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("span", {
"data-catalog-summary": "",
- children: [/* @__PURE__ */ (0, I.jsx)(nxe, { count: e }), /* @__PURE__ */ (0, I.jsx)(TV, { currentHref: i.currentHref })]
+ children: [/* @__PURE__ */ (0, I.jsx)(axe, { count: e }), /* @__PURE__ */ (0, I.jsx)(DV, { currentHref: i.currentHref })]
}), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(kG, {
+ /* @__PURE__ */ (0, I.jsx)(jG, {
onPress: () => {
s(!0), i.reshuffle().finally(() => s(!1));
},
busy: o || t
}),
- n && a === "cards" ? /* @__PURE__ */ (0, I.jsx)(OG, {
+ n && a === "cards" ? /* @__PURE__ */ (0, I.jsx)(AG, {
name: n.name,
label: n.label,
value: n.value,
options: n.options,
onChange: i.setLayout
}, n.name) : null,
- /* @__PURE__ */ (0, I.jsx)(iG, {}),
- /* @__PURE__ */ (0, I.jsx)(ZW, {}),
- /* @__PURE__ */ (0, I.jsx)(AG, {
+ /* @__PURE__ */ (0, I.jsx)(oG, {}),
+ /* @__PURE__ */ (0, I.jsx)($W, {}),
+ /* @__PURE__ */ (0, I.jsx)(MG, {
sorts: r,
onSort: i.setSort
})
]
})] });
}
-function nxe({ count: e }) {
+function axe({ count: e }) {
let t = e ? `${e.total.toLocaleString()} 个符合 · 显示 ${e.shown.toLocaleString()}` : e === !1 ? "" : void 0;
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-catalog-readout": "",
"data-count-readout": "",
role: "status",
- children: /* @__PURE__ */ (0, I.jsx)(nL, {
+ children: /* @__PURE__ */ (0, I.jsx)(iL, {
text: t,
busy: e === null,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -55971,7 +55984,7 @@ function nxe({ count: e }) {
})
});
}
-function rxe(e) {
+function oxe(e) {
let [t, n] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
if (!e) return;
@@ -55981,7 +55994,7 @@ function rxe(e) {
};
}, [e]), t;
}
-function NG(e, t, n, r, i) {
+function FG(e, t, n, r, i) {
let a = () => ({
key: n,
limit: r,
@@ -56024,8 +56037,8 @@ function NG(e, t, n, r, i) {
}), l.slice(0, c.limit);
}
// src/react/components/grid-reveal.tsx
-var PG = "100% 0px";
-function ixe(e, t) {
+var IG = "100% 0px";
+function sxe(e, t) {
let [n, r] = (0, F.useState)(e ? "skeleton" : "none"), [i] = (0, F.useState)(() => e ? t() : ""), a = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
a.current && pc(a.current);
@@ -56051,7 +56064,7 @@ function ixe(e, t) {
fading: n === "fade"
};
}
-function FG({ message: e, onRetry: t }) {
+function LG({ message: e, onRetry: t }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-media-error": "",
onClick: (e) => {
@@ -56064,7 +56077,7 @@ function FG({ message: e, onRetry: t }) {
});
}
// src/react/components/skeleton-content.tsx
-function IG({ pending: e, skeletonHtml: t, children: n }) {
+function RG({ pending: e, skeletonHtml: t, children: n }) {
let r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = t();
return (0, F.useLayoutEffect)(() => {
e || (r.current = n);
@@ -56088,25 +56101,25 @@ function IG({ pending: e, skeletonHtml: t, children: n }) {
});
}
// src/react/components/card-meta.tsx
-function LG({ name: e }) {
+function zG({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function RG({ name: e }) {
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(LG, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })] });
+function BG({ name: e }) {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(zG, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })] });
}
-function zG({ value: e, label: t, title: n }) {
+function VG({ value: e, label: t, title: n }) {
return /* @__PURE__ */ (0, I.jsxs)("time", {
"data-media-release": "",
dateTime: e,
title: n || t,
- children: [/* @__PURE__ */ (0, I.jsx)(LG, { name: "calendar" }), t]
+ children: [/* @__PURE__ */ (0, I.jsx)(zG, { name: "calendar" }), t]
});
}
-function BG({ tags: e, label: t, readOnly: n = !1, attrs: r, ...i }) {
+function HG({ tags: e, label: t, readOnly: n = !1, attrs: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
...i,
"data-media-tags": "",
@@ -56124,12 +56137,12 @@ function BG({ tags: e, label: t, readOnly: n = !1, attrs: r, ...i }) {
});
}
// src/react/components/recommendation-reason.tsx
-var axe = 3;
-function oxe(e, t, n = axe) {
+var cxe = 3;
+function lxe(e, t, n = cxe) {
return [...e, t.slice(0, n).join("、")].filter(Boolean).join(" · ");
}
-function VG({ reasons: e, tags: t = [] }) {
- let n = (0, F.useRef)(null), [r, i] = (0, F.useState)(!1), a = oxe(e, t);
+function UG({ reasons: e, tags: t = [] }) {
+ let n = (0, F.useRef)(null), [r, i] = (0, F.useState)(!1), a = lxe(e, t);
if (!a) return null;
let o = [e.join(" · "), t.length ? `共同标签:${t.join("、")}` : ""].filter(Boolean).join("\n");
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("button", {
@@ -56144,15 +56157,15 @@ function VG({ reasons: e, tags: t = [] }) {
e.stopPropagation(), i(!0);
},
children: a
- }), /* @__PURE__ */ (0, I.jsx)(lz, {
+ }), /* @__PURE__ */ (0, I.jsx)(dz, {
triggerRef: n,
isOpen: r,
onOpenChange: i,
placement: "top",
offset: 8,
containerPadding: 12,
- className: kV,
- children: /* @__PURE__ */ (0, I.jsx)(Sz, {
+ className: jV,
+ children: /* @__PURE__ */ (0, I.jsx)(wz, {
"data-media-reason-dialog": "",
"aria-label": "推荐理由",
className: "w-64 max-w-full p-2 text-body-regular whitespace-pre-line break-words text-text-primary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
@@ -56161,63 +56174,63 @@ function VG({ reasons: e, tags: t = [] }) {
})] });
}
// src/library-catalog.ts
-var HG = "peach.library-colors.v1", UG = null, WG = /* @__PURE__ */ new Set();
-function sxe() {
+var WG = "peach.library-colors.v1", GG = null, KG = /* @__PURE__ */ new Set();
+function uxe() {
try {
- let e = JSON.parse(localStorage.getItem(HG) || "{}");
+ let e = JSON.parse(localStorage.getItem(WG) || "{}");
return e && typeof e == "object" ? e : {};
} catch {
return {};
}
}
-function GG(e) {
- UG = e;
+function qG(e) {
+ GG = e;
try {
- localStorage.setItem(HG, JSON.stringify(Object.fromEntries(e.filter((e) => e.color).map((e) => [e.id, e.color]))));
+ localStorage.setItem(WG, JSON.stringify(Object.fromEntries(e.filter((e) => e.color).map((e) => [e.id, e.color]))));
} catch {}
- WG.forEach((t) => t(e));
+ KG.forEach((t) => t(e));
}
-function KG() {
- return UG;
+function JG() {
+ return GG;
}
-function cxe(e) {
- return WG.add(e), () => {
- WG.delete(e);
+function dxe(e) {
+ return KG.add(e), () => {
+ KG.delete(e);
};
}
// src/react/components/library-tint.ts
-var qG = /* @__PURE__ */ new Map(), JG = !1, YG = /* @__PURE__ */ new Set();
-function lxe(e) {
+var YG = /* @__PURE__ */ new Map(), XG = !1, ZG = /* @__PURE__ */ new Set();
+function fxe(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 XG(e) {
- qG = e;
+function QG(e) {
+ YG = e;
let t = document.getElementById("peach-library-tints");
- t || (t = document.createElement("style"), t.id = "peach-library-tints", document.head.append(t)), t.textContent = [...qG.values()].filter((e) => e.color).map((e) => `[data-library="${CSS.escape(e.id)}"]{--library-color:${lxe(e.color)}}`).join("\n");
+ t || (t = document.createElement("style"), t.id = "peach-library-tints", document.head.append(t)), t.textContent = [...YG.values()].filter((e) => e.color).map((e) => `[data-library="${CSS.escape(e.id)}"]{--library-color:${fxe(e.color)}}`).join("\n");
}
-function ZG(e) {
- XG(e), YG.forEach((e) => e());
+function $G(e) {
+ QG(e), ZG.forEach((e) => e());
}
-var QG = (e) => new Map(e.map((e) => [e.id, {
+var eK = (e) => new Map(e.map((e) => [e.id, {
id: e.id,
name: e.name,
icon: _s[e.icon || ""] || e.icon || "database",
location: e.roots?.[0]?.location || "",
color: e.color || ""
-}])), $G = !1;
-function uxe() {
- if ($G) return;
- $G = !0, cxe((e) => ZG(QG(e)));
- let e = KG();
+}])), tK = !1;
+function pxe() {
+ if (tK) return;
+ tK = !0, dxe((e) => $G(eK(e)));
+ let e = JG();
if (e) {
- XG(QG(e));
+ QG(eK(e));
return;
}
- let t = Object.entries(sxe()).filter(([, e]) => e);
- t.length && XG(new Map(t.map(([e, t]) => [e, {
+ let t = Object.entries(uxe()).filter(([, e]) => e);
+ t.length && QG(new Map(t.map(([e, t]) => [e, {
id: e,
name: "",
icon: "database",
@@ -56225,56 +56238,56 @@ function uxe() {
color: t
}])));
}
-function dxe() {
- JG || KG() || (JG = !0, B("/api/libraries").then((e) => GG(e.libraries || [])).catch(() => {
- JG = !1;
+function mxe() {
+ XG || JG() || (XG = !0, B("/api/libraries").then((e) => qG(e.libraries || [])).catch(() => {
+ XG = !1;
}));
}
-function fxe(e, t) {
- let n = qG.get(e) ?? {
+function hxe(e, t) {
+ let n = YG.get(e) ?? {
id: e,
name: "",
icon: "database",
location: "",
color: ""
};
- ZG(new Map([...qG, [e, {
+ $G(new Map([...YG, [e, {
...n,
color: t
}]]));
}
-function pxe(e) {
- return YG.add(e), () => {
- YG.delete(e);
+function gxe(e) {
+ return ZG.add(e), () => {
+ ZG.delete(e);
};
}
-function eK({ names: e = !1 } = {}) {
- return uxe(), e && dxe(), (0, F.useSyncExternalStore)(pxe, () => qG, () => qG);
+function nK({ names: e = !1 } = {}) {
+ return pxe(), e && mxe(), (0, F.useSyncExternalStore)(gxe, () => YG, () => YG);
}
// src/react/components/row-click.ts
-var mxe = "a,button,input,select,textarea,label,[role=\"checkbox\"],[role=\"switch\"],[role=\"button\"],[role=\"link\"],[role=\"menu\"]";
-function tK(e, t) {
+var _xe = "a,button,input,select,textarea,label,[role=\"checkbox\"],[role=\"switch\"],[role=\"button\"],[role=\"link\"],[role=\"menu\"]";
+function rK(e, t) {
let n = e.target;
if (!(n instanceof Element) || !t.contains(n)) return !1;
- let r = n.closest(mxe);
+ let r = n.closest(_xe);
return !r || !t.contains(r) || r === t;
}
-function nK(e) {
+function iK(e) {
e.shiftKey && e.preventDefault();
}
// src/react/components/media-card.tsx
-var rK = 9 / 16, iK = "未命名视频", hxe = {
+var aK = 9 / 16, oK = "未命名视频", vxe = {
image: "图片",
audio: "音频",
archive: "压缩包",
other: "其它文件"
-}, gxe = {
+}, yxe = {
manual: "手动",
junk: "垃圾",
duplicate: "重复",
missing: "文件缺失"
};
-function _xe(e) {
+function bxe(e) {
if (Number(e.duration) < 0) return {
key: "unavailable",
label: "探查错误"
@@ -56302,16 +56315,16 @@ function _xe(e) {
label: "尚未探查"
};
}
-function aK({ item: e }) {
+function sK({ item: e }) {
if (e.disposal !== "trash") return null;
- let t = e.disposal_reason && gxe[e.disposal_reason] || "原因未记录";
+ let t = e.disposal_reason && yxe[e.disposal_reason] || "原因未记录";
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-disposal-reason": "",
title: `归入原因:${t}`,
children: t
});
}
-function oK({ item: e, actions: t }) {
+function cK({ item: e, actions: t }) {
let [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(""), o = e.disposal === "trash" ? "restore" : "dispose", s = o === "restore" ? "还原" : "移入回收站";
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -56330,10 +56343,10 @@ function oK({ item: e, actions: t }) {
children: i
}) : null] });
}
-function sK(e, t, n) {
- return t === "short" ? rK : vM(n);
+function lK(e, t, n) {
+ return t === "short" ? aK : bM(n);
}
-function cK(e) {
+function uK(e) {
let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = Ao(e), s = i[0] || "", c = ho(e);
return {
avatar: r ? /* @__PURE__ */ (0, I.jsx)("div", {
@@ -56365,7 +56378,7 @@ function cK(e) {
"data-entity-kind": "performer",
"data-entity-name": s,
title: nn("performer", s),
- children: /* @__PURE__ */ (0, I.jsx)(RG, { name: nn("performer", s) })
+ children: /* @__PURE__ */ (0, I.jsx)(BG, { name: nn("performer", s) })
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-who-more": "",
children: `等 ${o} 人`
@@ -56375,16 +56388,16 @@ function cK(e) {
"data-entity-kind": t,
"data-entity-name": n,
title: nn(t, n),
- children: /* @__PURE__ */ (0, I.jsx)(RG, { name: nn(t, n) })
+ children: /* @__PURE__ */ (0, I.jsx)(BG, { name: nn(t, n) })
}) : /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-media-who": "",
"data-open-unowned": "",
- children: /* @__PURE__ */ (0, I.jsx)(RG, { name: n })
+ children: /* @__PURE__ */ (0, I.jsx)(BG, { name: n })
})
};
}
-function vxe() {
+function xxe() {
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-media-preview": "",
@@ -56403,7 +56416,7 @@ function vxe() {
})]
});
}
-function yxe({ item: e, actions: t, on: n, onChange: r }) {
+function Sxe({ item: e, actions: t, on: n, onChange: r }) {
let [i, a] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-media-later": "",
@@ -56418,22 +56431,22 @@ function yxe({ item: e, actions: t, on: n, onChange: r }) {
},
"aria-busy": i || void 0,
"aria-disabled": i || void 0,
- children: /* @__PURE__ */ (0, I.jsx)(LG, { name: n ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, I.jsx)(zG, { name: n ? "check" : "bookmark-plus" })
})
});
}
-function lK(e, t) {
+function dK(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 bxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {
- tL();
- let u = (0, F.useRef)(null), [d, f] = (0, F.useState)(null), p = d?.id === e.id ? d.on : !!e.watch_later, m = eK(), h = e.library_id && m.get(e.library_id)?.color ? e.library_id : void 0, g = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), _ = (0, F.useRef)(e);
+function Cxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {
+ rL();
+ let u = (0, F.useRef)(null), [d, f] = (0, F.useState)(null), p = d?.id === e.id ? d.on : !!e.watch_later, m = nK(), h = e.library_id && m.get(e.library_id)?.color ? e.library_id : void 0, g = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), _ = (0, F.useRef)(e);
_.current = e;
let v = (0, F.useCallback)((e) => {
let t = _.current;
u.current && u.current !== e && Pl(u.current), u.current = e, e && (!t.medium || t.medium === "video") && Il(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 = sK(e, t, n), w = S ? n.size : "small", T = C === rK && !!e.is_jav, E = T ? Do(e, !1) : To(e, w, !1, n.javImage), D = T || w === "small" ? E.html : To(e, "small", !1, n.javImage).html, O = y?.title || e.name || "", k = o.displayName(e, O).trim() || iK, A = o.titleHtml(e, O).trim() || z(iK), j = y?.total_size ?? e.size, M = y?.total_duration ?? e.duration, ee = Number(M) > 0 ? null : _xe(e), N = !y && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: te, who: P } = cK(e), ne = (e.follow_tags || e.tags || []).slice(0, 3), re = (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 = lK(e, t, n), w = S ? n.size : "small", T = C === aK && !!e.is_jav, E = T ? Do(e, !1) : To(e, w, !1, n.javImage), D = T || w === "small" ? E.html : To(e, "small", !1, n.javImage).html, O = y?.title || e.name || "", k = o.displayName(e, O).trim() || oK, A = o.titleHtml(e, O).trim() || z(oK), j = y?.total_size ?? e.size, M = y?.total_duration ?? e.duration, ee = Number(M) > 0 ? null : bxe(e), N = !y && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: te, who: P } = uK(e), ne = (e.follow_tags || e.tags || []).slice(0, 3), re = (t) => {
let n = t.target;
if (n.closest("[data-media-reason-dialog]")) return;
let r = u.current;
@@ -56460,10 +56473,10 @@ function bxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
l && r.contains(l) ? s.toggleTag(l.dataset.tag || "") : c(e, r);
}, ie = /* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-pic": "",
- "data-pic-portrait": C === rK ? "" : void 0,
+ "data-pic-portrait": C === aK ? "" : void 0,
style: { "--card-ratio": String(C) },
children: [
- E.html ? /* @__PURE__ */ (0, I.jsx)(WU, {
+ E.html ? /* @__PURE__ */ (0, I.jsx)(KU, {
artwork: E,
identity: D,
relayout: (e) => El(e, w)
@@ -56477,11 +56490,11 @@ function bxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
}),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, I.jsx)(LG, { name: "check" })
+ children: /* @__PURE__ */ (0, I.jsx)(zG, { name: "check" })
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, I.jsx)(LG, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, I.jsx)(zG, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
}),
y && !b ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-group": "",
@@ -56497,7 +56510,7 @@ function bxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
"data-copy-key": ee ? `media.duration.${ee.key}` : void 0,
children: ee ? ee.label : Jn(M)
}),
- !i && e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)(oK, {
+ !i && e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)(cK, {
item: e,
actions: s
}) : null,
@@ -56513,22 +56526,22 @@ function bxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
"data-media-scrub": "",
children: /* @__PURE__ */ (0, I.jsx)("i", { style: { "--media-fill": `${Math.round(e.leave_ratio * 100)}%` } })
}),
- /* @__PURE__ */ (0, I.jsx)(vxe, {}),
+ /* @__PURE__ */ (0, I.jsx)(xxe, {}),
p || g.length ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-status": "",
children: [p ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-status": "later",
title: "稍后看",
"aria-label": "稍后看",
- children: /* @__PURE__ */ (0, I.jsx)(LG, { name: "bookmark" })
+ children: /* @__PURE__ */ (0, I.jsx)(zG, { name: "bookmark" })
}) : null, g.length ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-status": "flagged",
title: `已标记:${g.join("、")}`,
"aria-label": `已标记:${g.join("、")}`,
- children: /* @__PURE__ */ (0, I.jsx)(LG, { name: "heart" })
+ children: /* @__PURE__ */ (0, I.jsx)(zG, { name: "heart" })
}) : null]
}) : null,
- i ? null : /* @__PURE__ */ (0, I.jsx)(yxe, {
+ i ? null : /* @__PURE__ */ (0, I.jsx)(Sxe, {
item: e,
actions: s,
on: p,
@@ -56543,27 +56556,27 @@ function bxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), lK(u.current, -a);
+ e.stopPropagation(), dK(u.current, -a);
},
title: `后退 ${a} 秒`,
"aria-label": `后退 ${a} 秒`,
- children: /* @__PURE__ */ (0, I.jsx)(LG, { name: "rotate-ccw" })
+ children: /* @__PURE__ */ (0, I.jsx)(zG, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), lK(u.current, a);
+ e.stopPropagation(), dK(u.current, a);
},
title: `前进 ${a} 秒`,
"aria-label": `前进 ${a} 秒`,
- children: /* @__PURE__ */ (0, I.jsx)(LG, { name: "rotate-cw" })
+ children: /* @__PURE__ */ (0, I.jsx)(zG, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-open": "",
title: "打开详情",
"aria-label": "打开详情",
- children: /* @__PURE__ */ (0, I.jsx)(LG, { name: "expand" })
+ children: /* @__PURE__ */ (0, I.jsx)(zG, { name: "expand" })
})
]
})
@@ -56583,7 +56596,7 @@ function bxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
"data-pending-delete": e.disposal === "trash" ? "" : void 0,
"data-selected": r ? "" : void 0,
onClick: re,
- onMouseDown: nK,
+ onMouseDown: iK,
children: [
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -56621,33 +56634,33 @@ function bxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
}) : null,
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-facts": "",
- children: [e.is_jav && e.release_date ? /* @__PURE__ */ (0, I.jsx)(zG, {
+ children: [e.is_jav && e.release_date ? /* @__PURE__ */ (0, I.jsx)(VG, {
value: e.release_date,
label: e.release_date
}) : null, /* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-size": "",
- children: [/* @__PURE__ */ (0, I.jsx)(LG, { name: "hard-drive" }), Number(j) > 0 ? Xn(Number(j)) : "大小未知"]
+ children: [/* @__PURE__ */ (0, I.jsx)(zG, { name: "hard-drive" }), Number(j) > 0 ? Xn(Number(j)) : "大小未知"]
})]
})
]
}),
- t === "next" ? /* @__PURE__ */ (0, I.jsx)(VG, {
+ t === "next" ? /* @__PURE__ */ (0, I.jsx)(UG, {
reasons: e.why ? e.why.split(" · ") : [],
tags: (e.why_tags || []).map(o.tagLabel)
- }) : ne.length || e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)(BG, {
+ }) : ne.length || e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)(HG, {
tags: ne,
label: o.tagLabel,
readOnly: !!e.follow_item_id
}) : null,
- /* @__PURE__ */ (0, I.jsx)(aK, { item: e })
+ /* @__PURE__ */ (0, I.jsx)(sK, { item: e })
]
})]
})
]
});
}
-function xxe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
- let o = (0, F.useRef)(null), s = e.medium === "image" && e.location !== "online", c = String(e.name || ""), l = c.toLowerCase().endsWith(".url") ? "网址快捷方式" : hxe[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
+function wxe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
+ let o = (0, F.useRef)(null), s = e.medium === "image" && e.location !== "online", c = String(e.name || ""), l = c.toLowerCase().endsWith(".url") ? "网址快捷方式" : vxe[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
return /* @__PURE__ */ (0, I.jsxs)("article", {
ref: o,
"data-media-card": "",
@@ -56659,14 +56672,14 @@ function xxe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
onClick: (t) => {
o.current && (n || t.shiftKey || t.ctrlKey || t.metaKey ? (t.preventDefault(), i.toggleSelection(e.id, t.shiftKey)) : a(e, o.current));
},
- onMouseDown: nK,
+ onMouseDown: iK,
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-pic": "",
style: { "--card-ratio": "1.7777777777777777" },
children: [
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, I.jsx)(LG, { name: u }), /* @__PURE__ */ (0, I.jsx)("b", { children: l })]
+ children: [/* @__PURE__ */ (0, I.jsx)(zG, { name: u }), /* @__PURE__ */ (0, I.jsx)("b", { children: l })]
}),
s ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-art": "thumb",
@@ -56678,13 +56691,13 @@ function xxe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
}),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, I.jsx)(LG, { name: "check" })
+ children: /* @__PURE__ */ (0, I.jsx)(zG, { name: "check" })
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, I.jsx)(LG, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, I.jsx)(zG, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
}),
- n ? null : /* @__PURE__ */ (0, I.jsx)(oK, {
+ n ? null : /* @__PURE__ */ (0, I.jsx)(cK, {
item: e,
actions: i
})
@@ -56695,7 +56708,7 @@ function xxe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
"data-media-avatar": "",
"data-media-kind-glyph": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(LG, { name: u })
+ children: /* @__PURE__ */ (0, I.jsx)(zG, { name: u })
}), /* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-text": "",
children: [
@@ -56723,29 +56736,29 @@ function xxe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
]
}),
e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)("div", { "data-media-tags": "" }) : null,
- /* @__PURE__ */ (0, I.jsx)(aK, { item: e })
+ /* @__PURE__ */ (0, I.jsx)(sK, { item: e })
]
})]
})]
});
}
-function Sxe(e) {
- return e.variant === "resource" ? /* @__PURE__ */ (0, I.jsx)(xxe, { ...e }) : /* @__PURE__ */ (0, I.jsx)(bxe, { ...e });
+function Txe(e) {
+ return e.variant === "resource" ? /* @__PURE__ */ (0, I.jsx)(wxe, { ...e }) : /* @__PURE__ */ (0, I.jsx)(Cxe, { ...e });
}
-var uK = (0, F.memo)(Sxe), Cxe = 1100, wxe = 340, Txe = 5e3;
-function Exe(e, t, n) {
+var fK = (0, F.memo)(Txe), Exe = 1100, Dxe = 340, Oxe = 5e3;
+function kxe(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, Txe);
+ }, s = () => o(!1), c = setTimeout(s, Oxe);
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 dK({ load: e, canFlip: t, referrerPolicy: n }) {
+function pK({ load: e, canFlip: t, referrerPolicy: n }) {
let [r, i] = (0, F.useState)([]), [a, o] = (0, F.useState)(0), [s, c] = (0, F.useState)(null), l = (0, F.useRef)({
live: !1,
generation: 0,
@@ -56787,11 +56800,11 @@ function dK({ load: e, canFlip: t, referrerPolicy: n }) {
return;
}
if (!r() || !u.current.canFlip() || a.length < 2) return;
- let s = await Promise.all(a.map((t) => Exe(t, e, n)));
+ let s = await Promise.all(a.map((t) => kxe(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, Cxe);
+ p(), e.cycle = setInterval(p, Exe);
}));
};
return (0, F.useEffect)(() => d, [d]), {
@@ -56800,7 +56813,7 @@ function dK({ 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(wxe, () => {
+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(Dxe, () => {
e.armed = null, m();
});
},
@@ -56810,8 +56823,8 @@ function dK({ load: e, canFlip: t, referrerPolicy: n }) {
};
}
// src/react/components/mix-card.tsx
-var fK = uV("play");
-function Dxe({ src: e }) {
+var mK = fV("play");
+function Axe({ src: e }) {
let [t, n] = (0, F.useState)(!1);
return t ? null : /* @__PURE__ */ (0, I.jsx)("img", {
"data-mix-poster": "",
@@ -56824,8 +56837,8 @@ function Dxe({ src: e }) {
className: "absolute inset-0 block size-full object-contain"
});
}
-var pK = "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 Oxe({ faces: e, fallback: t, onOpenEntity: n }) {
+var hK = "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 jxe({ faces: e, fallback: t, onOpenEntity: n }) {
return e.length ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-mix-avatars": "",
children: e.slice(0, 5).map((e) => /* @__PURE__ */ (0, I.jsx)("button", {
@@ -56833,18 +56846,18 @@ function Oxe({ faces: e, fallback: t, onOpenEntity: n }) {
title: `打开资料页:${e.name}`,
"aria-label": `打开资料页:${e.name}`,
onClick: () => n(e.kind, e.name),
- className: `${pK} cursor-pointer outline-none`,
+ className: `${hK} cursor-pointer outline-none`,
dangerouslySetInnerHTML: { __html: _o(e.name, e, Za(e.name), e.kind) }
}, `${e.kind}:${e.id}`))
}) : /* @__PURE__ */ (0, I.jsx)("span", {
"data-mix-initial": "",
"aria-hidden": !0,
- className: `${pK} mt-0.5`,
+ className: `${hK} mt-0.5`,
children: t
});
}
-function mK({ 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 = dK({
+function gK({ 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 = pK({
load: i,
canFlip: a
}), x = (0, F.useRef)(b.onPointerLeave);
@@ -56871,11 +56884,11 @@ function mK({ 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, I.jsx)(WU, {
+ f?.html ? /* @__PURE__ */ (0, I.jsx)(KU, {
artwork: f,
identity: p,
relayout: m
- }) : r ? /* @__PURE__ */ (0, I.jsx)(Dxe, { src: r }, r) : /* @__PURE__ */ (0, I.jsx)("span", {
+ }) : r ? /* @__PURE__ */ (0, I.jsx)(Axe, { src: r }, r) : /* @__PURE__ */ (0, I.jsx)("span", {
className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",
children: "无预览"
}),
@@ -56905,7 +56918,7 @@ function mK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-mix-badge": "",
className: "absolute right-2.25 bottom-2.25 z-6 flex min-h-7 items-center gap-1.5 rounded-2lg px-2.25 py-1 text-caption-1-semibold text-text-white",
- children: [/* @__PURE__ */ (0, I.jsx)(fK, {
+ children: [/* @__PURE__ */ (0, I.jsx)(mK, {
"aria-hidden": !0,
className: "size-(--icon-inline)"
}), g ?? `${n.toLocaleString()} 个视频`]
@@ -56918,8 +56931,8 @@ function mK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
_ ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-mix-glyph": "",
"aria-hidden": !0,
- children: /* @__PURE__ */ (0, I.jsx)(fK, {})
- }) : /* @__PURE__ */ (0, I.jsx)(Oxe, {
+ children: /* @__PURE__ */ (0, I.jsx)(mK, {})
+ }) : /* @__PURE__ */ (0, I.jsx)(jxe, {
faces: o,
fallback: er(e),
onOpenEntity: s
@@ -56942,20 +56955,20 @@ function mK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
});
}
// src/react/video-wall/use-wall-camera.ts
-var hK = {
+var _K = {
x: 16,
y: 16,
scale: 1
-}, kxe = .65, Axe = 1.6, gK = (e) => Math.min(Axe, Math.max(kxe, e)), _K = (e, t, n, r) => ({
+}, Mxe = .65, Nxe = 1.6, vK = (e) => Math.min(Nxe, Math.max(Mxe, e)), yK = (e, t, n, r) => ({
scale: t,
x: n - (n - e.x) * t / e.scale,
y: r - (r - e.y) * t / e.scale
});
-function jxe(e, t, n) {
+function Pxe(e, t, n) {
let r = 120 / t.scale, i = -e.x / e.scale, a = -e.y / e.scale, o = -t.x / t.scale - r, s = -t.y / t.scale - r;
return i >= o && a >= s && i + n.width / e.scale <= o + n.width / t.scale + r * 2 && a + n.height / e.scale <= s + n.height / t.scale + r * 2;
}
-function Mxe(e, t, n = hK, r = !1) {
+function Fxe(e, t, n = _K, r = !1) {
let i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)({
width: 0,
height: 0
@@ -56987,12 +57000,12 @@ function Mxe(e, t, n = hK, r = !1) {
previous: 0
});
}, []), y = (0, F.useCallback)((e, t = !1, n = !1) => {
- let { count: r, finite: c, focused: f } = d.current, p = Qye(e, o.current, Zye(r), c && !f && !n), h = s.current;
+ let { count: r, finite: c, focused: f } = d.current, p = tbe(e, o.current, ebe(r), c && !f && !n), h = s.current;
s.current = p;
let g = window.devicePixelRatio || 1, _ = a.current;
_ && (_.style.transform = `translate3d(${Math.round(p.x * g) / g}px, ${Math.round(p.y * g) / g}px, 0) scale(${p.scale})`, (p.x !== h.x || p.y !== h.y || p.scale !== h.scale) && (_.style.willChange = "transform", m.current !== null && clearTimeout(m.current), m.current = setTimeout(() => {
m.current = null, _.style.willChange = "";
- }, 240))), i.current && (i.current.dataset.cameraX = String(p.x), i.current.dataset.cameraY = String(p.y), i.current.dataset.cameraScale = String(p.scale)), (t || !jxe(p, u.current, o.current)) && (u.current = p, l({
+ }, 240))), i.current && (i.current.dataset.cameraX = String(p.x), i.current.dataset.cameraY = String(p.y), i.current.dataset.cameraScale = String(p.scale)), (t || !Pxe(p, u.current, o.current)) && (u.current = p, l({
camera: p,
size: { ...o.current }
}));
@@ -57022,7 +57035,7 @@ function Mxe(e, t, n = hK, r = !1) {
let r = s.current, i = r;
if (t.scale) {
let e = Math.abs(t.scale - r.scale) < .002;
- i = _K(r, e ? t.scale : r.scale + (t.scale - r.scale) * n, t.anchorX, t.anchorY), e && (t.scale = 0);
+ i = yK(r, e ? t.scale : r.scale + (t.scale - r.scale) * n, t.anchorX, t.anchorY), e && (t.scale = 0);
}
let a = Math.hypot(t.x, t.y) < .5, o = a ? t.x : t.x * n, c = a ? t.y : t.y * n;
y({
@@ -57035,13 +57048,13 @@ function Mxe(e, t, n = hK, r = !1) {
let n = h.current;
if (b()) {
let n = s.current;
- t && (n = _K(n, gK(n.scale * t.factor), t.x, t.y)), e && (n = {
+ t && (n = yK(n, vK(n.scale * t.factor), t.x, t.y)), e && (n = {
...n,
x: n.x + e.x,
y: n.y + e.y
}), y(n);
} else t && Object.assign(n, {
- scale: gK((n.scale || s.current.scale) * t.factor),
+ scale: vK((n.scale || s.current.scale) * t.factor),
anchorX: t.x,
anchorY: t.y
}), e && (n.x += e.x, n.y += e.y), f.current === null && (n.scale || n.x || n.y) && (n.previous = 0, f.current = requestAnimationFrame(x));
@@ -57083,7 +57096,7 @@ function Mxe(e, t, n = hK, 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 || b() ? y(a, !0, n) : p.current = sS(0, 1, {
+ !t || b() ? y(a, !0, n) : p.current = dS(0, 1, {
duration: .42,
ease: [
.22,
@@ -57108,7 +57121,7 @@ function Mxe(e, t, n = hK, r = !1) {
}),
snapshot: () => ({ ...s.current }),
reset: () => {
- v(), y({ ...hK }, !0);
+ v(), y({ ..._K }, !0);
},
pan: (e, t) => {
v(), y({
@@ -57169,16 +57182,16 @@ function Mxe(e, t, n = hK, r = !1) {
};
}
// src/react/video-wall/wall-motion.ts
-var Nxe = {
+var Ixe = {
type: "spring",
stiffness: 300,
damping: 34
-}, Pxe = {
+}, Lxe = {
delay: .14,
duration: .24
};
// src/react/video-wall/use-wall-playback.ts
-function Fxe(e, t, n) {
+function Rxe(e, t, n) {
let [r, i] = (0, F.useState)({
paused: !0,
time: 0,
@@ -57219,15 +57232,15 @@ function Fxe(e, t, n) {
};
}
// src/react/video-wall/wall-controls.tsx
-function Ixe({ 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 = Xx(), x = Fxe(t, n, v), S = x.duration || Number(e.duration) || 0, C = r || i, w = !t || x.paused, T = async () => {
+function zxe({ 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 = eS(), x = Rxe(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(xn(e));
}
};
- return /* @__PURE__ */ (0, I.jsxs)(cS.div, {
+ return /* @__PURE__ */ (0, I.jsxs)(fS.div, {
"data-wall-focus-actions": "",
initial: !b && {
opacity: 0,
@@ -57237,7 +57250,7 @@ function Ixe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
opacity: 1,
transform: "translateY(0px)"
},
- transition: b ? { duration: 0 } : Pxe,
+ transition: b ? { duration: 0 } : Lxe,
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-wall-control-row": "",
children: [
@@ -57245,7 +57258,7 @@ function Ixe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
type: "button",
"data-wall-play": "",
"data-wall-pause": w ? void 0 : "",
- ...fV(C),
+ ...mV(C),
"aria-label": r ? "正在打开" : i ? "正在读取版本" : w ? "播放" : "暂停",
title: w ? "播放" : "暂停",
onClick: () => void T(),
@@ -57295,7 +57308,7 @@ function Ixe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
- ...fV(d),
+ ...mV(d),
"aria-label": u ? "移出稍后看" : "稍后看",
title: "稍后看",
"aria-pressed": u,
@@ -57341,7 +57354,7 @@ function Ixe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
});
}
// src/react/components/mix-queue.tsx
-function vK({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
+function bK({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
let c = (0, F.useRef)(null), l = (0, F.useCallback)((e) => {
c.current = e, typeof a == "function" ? a(e) : a && (a.current = e);
}, [a]);
@@ -57377,7 +57390,7 @@ function vK({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a,
})]
});
}
-function yK({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
+function xK({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
let s = /* @__PURE__ */ (0, I.jsx)("span", {
"data-mix-item-text": "",
children: a
@@ -57400,7 +57413,7 @@ function yK({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }
}), r]
});
}
-var Lxe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {
+var Bxe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {
"data-mix-group-label": "",
children: [
e,
@@ -57409,28 +57422,28 @@ var Lxe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {
]
});
// src/react/video-wall/wall-queue.tsx
-function Rxe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
+function Vxe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-wall-queue": "",
id: "wall-queue",
- children: /* @__PURE__ */ (0, I.jsx)(vK, {
+ children: /* @__PURE__ */ (0, I.jsx)(bK, {
kind: n,
title: n === "parts" ? "分卷" : n === "editions" ? "版本" : "作品",
summary: `${e.length} 个视频`,
onClose: a,
- children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)(yK, {
+ children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)(xK, {
current: e.id === t,
"data-wall-source": e.id,
"aria-label": [
e.edition_label,
- e.part_label ? FP(e.part_label) : "",
+ e.part_label ? LP(e.part_label) : "",
r(e)
].filter(Boolean).join(" · "),
onClick: () => i(e),
- pic: /* @__PURE__ */ (0, I.jsx)(WU, { artwork: To(e, "small", !0, "cover") }),
+ pic: /* @__PURE__ */ (0, I.jsx)(KU, { artwork: To(e, "small", !0, "cover") }),
children: [/* @__PURE__ */ (0, I.jsx)("b", { children: r(e) }), /* @__PURE__ */ (0, I.jsx)("span", { children: [
e.edition_label,
- e.part_label ? FP(e.part_label) : "",
+ e.part_label ? LP(e.part_label) : "",
Jn(e.duration)
].filter(Boolean).join(" · ") })]
}, e.id))
@@ -57438,7 +57451,7 @@ function Rxe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a })
});
}
// src/react/video-wall/wall-route.ts
-function zxe(e = `${location.pathname}${location.search}`, t = {}) {
+function Hxe(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",
@@ -57453,17 +57466,17 @@ function zxe(e = `${location.pathname}${location.search}`, t = {}) {
}
return s.set("returnTo", `${n.pathname}${n.search}`), `/wall?${s}`;
}
-function bK(e = `${location.pathname}${location.search}`) {
+function SK(e = `${location.pathname}${location.search}`) {
let t = new URL(e, location.origin).searchParams;
- for (let e of NW) t.delete(e);
+ for (let e of FW) t.delete(e);
return t.delete("tag_match"), `/wall${t.size ? `?${t}` : ""}`;
}
-function xK() {
- let e = new URLSearchParams(Op.navigation.location.search).get("returnTo") || "/";
- Op.replace(e.startsWith("/") && !e.startsWith("//") && !e.startsWith("/wall") ? e : "/");
+function CK() {
+ let e = new URLSearchParams(Np.navigation.location.search).get("returnTo") || "/";
+ Np.replace(e.startsWith("/") && !e.startsWith("//") && !e.startsWith("/wall") ? e : "/");
}
// src/react/video-wall/video-wall.tsx
-var SK = /* @__PURE__ */ new Map(), CK = (0, F.memo)(function({ item: e, image: t, big: n = !1, ratio: r = 1 }) {
+var wK = /* @__PURE__ */ new Map(), TK = (0, F.memo)(function({ item: e, image: t, big: n = !1, ratio: r = 1 }) {
let i = To(!e.is_jav && t === "thumbnail" && e.has_thumb ? {
...e,
has_cover: !1
@@ -57476,7 +57489,7 @@ var SK = /* @__PURE__ */ new Map(), CK = (0, F.memo)(function({ item: e, image:
ref: a,
"data-media-pic": "",
style: { "--card-ratio": String(r) },
- children: /* @__PURE__ */ (0, I.jsx)(WU, {
+ children: /* @__PURE__ */ (0, I.jsx)(KU, {
artwork: i,
relayout: (e) => e.querySelectorAll("img.cover").forEach((e) => {
e.complete && e.naturalWidth && fl(e, r);
@@ -57484,31 +57497,31 @@ var SK = /* @__PURE__ */ new Map(), CK = (0, F.memo)(function({ item: e, image:
})
});
});
-function Bxe({ 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 Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error: a = "", retry: o, emptyHtml: s = "", loadMore: c, actions: l, helpers: u, javImage: d, sessionKey: f }) {
let p = String(e[0]?.id), [m] = (0, F.useState)(() => {
- let e = SK.get(f);
+ let e = wK.get(f);
return e && (i || t || e.pool === p) ? e : void 0;
- }), [h] = (0, F.useState)(() => m?.exploration || new $ye()), g = (0, F.useRef)(!1), [_, v] = (0, F.useState)(null), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(null), C = (0, F.useRef)(null), [w, T] = (0, F.useState)(() => e.find((e) => e.id === m?.selectedId) || null), [E, D] = (0, F.useState)(m?.selectedKey || ""), [O, k] = (0, F.useState)(m?.sourceId || null), [A, j] = (0, F.useState)(!1), M = w?.edition_group ? {
+ }), [h] = (0, F.useState)(() => m?.exploration || new nbe()), g = (0, F.useRef)(!1), [_, v] = (0, F.useState)(null), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(null), C = (0, F.useRef)(null), [w, T] = (0, F.useState)(() => e.find((e) => e.id === m?.selectedId) || null), [E, D] = (0, F.useState)(m?.selectedKey || ""), [O, k] = (0, F.useState)(m?.sourceId || null), [A, j] = (0, F.useState)(!1), M = w?.edition_group ? {
kind: "editions",
seedId: w.edition_group.seed_id
} : w?.part_group ? {
kind: "parts",
seedId: w.part_group.seed_id
} : null, ee = Ft({
- queryKey: mP(M || {
+ queryKey: gP(M || {
kind: "parts",
seedId: 0
}),
enabled: !!M,
- queryFn: ({ signal: e }) => CP(M, {
+ queryFn: ({ signal: e }) => TP(M, {
tagLabel: u.tagLabel,
mixRelated: async () => []
}, e)
- }), N = M ? ee.data : void 0, te = N?.items.find((e) => e.id === EP(N, O || w?.id || null)) || w, P = Mxe(e.length, t && !!e.length, m?.camera || {
+ }), N = M ? ee.data : void 0, te = N?.items.find((e) => e.id === OP(N, O || w?.id || null)) || w, P = Fxe(e.length, t && !!e.length, m?.camera || {
x: 0,
y: 0,
scale: innerWidth < 640 ? .68 : 1
- }, !!w), ne = Xx(), [re, ie] = (0, F.useState)(!!m);
+ }, !!w), ne = eS(), [re, ie] = (0, F.useState)(!!m);
(0, F.useEffect)(() => {
if (!e.length || re || ne) return;
let t = setTimeout(() => ie(!0), 1100);
@@ -57523,9 +57536,9 @@ function Bxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
return e.className = "peach-react", e;
});
(0, F.useLayoutEffect)(() => {
- document.body.append(Ce), PW(), P.viewport.current?.focus({ preventScroll: !0 });
+ document.body.append(Ce), IW(), P.viewport.current?.focus({ preventScroll: !0 });
}, [Ce]), (0, F.useEffect)(() => () => Ce.remove(), [Ce]);
- let [we, Te] = (0, F.useState)(() => Bf(Op.navigation.location.pathname)), [Ee, De] = (0, F.useState)(m?.image || d), Oe = (0, F.useRef)(null), ke = (0, F.useRef)(p), Ae = (0, F.useRef)(!!e.length);
+ let [we, Te] = (0, F.useState)(() => Bf(Np.navigation.location.pathname)), [Ee, De] = (0, F.useState)(m?.image || d), Oe = (0, F.useRef)(null), ke = (0, F.useRef)(p), Ae = (0, F.useRef)(!!e.length);
Ae.current = !!e.length;
let je = (0, F.useRef)({
selectedId: w?.id || null,
@@ -57542,20 +57555,20 @@ function Bxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
pool: p
};
let Me = () => {
- Ae.current && (SK.delete(f), SK.set(f, {
+ Ae.current && (wK.delete(f), wK.set(f, {
...je.current,
camera: P.snapshot(),
exploration: h
- }), SK.size > 8 && SK.delete(SK.keys().next().value));
+ }), wK.size > 8 && wK.delete(wK.keys().next().value));
};
(0, F.useLayoutEffect)(Me);
- let Ne = MW(i ? 12 : t ? e.length : e.length || n ? 12 : 0, t && !i, P.view.camera, P.view.size), Pe = i ? Ne.map((e) => ({
+ let Ne = PW(i ? 12 : t ? e.length : e.length || n ? 12 : 0, t && !i, P.view.camera, P.view.size), Pe = i ? Ne.map((e) => ({
...e,
index: -1
})) : t ? Ne : h.assign(Ne, e.length, n).map((t) => t.index < e.length || w && t.key === E ? t : {
...t,
index: -1
- }), Fe = w && (t ? AW(e.length, !0, E) : h.tile(E, e.length)), Ie = Fe ? jW(e.length, t, Fe) : /* @__PURE__ */ new Map();
+ }), Fe = w && (t ? MW(e.length, !0, E) : h.tile(E, e.length)), Ie = Fe ? NW(e.length, t, Fe) : /* @__PURE__ */ new Map();
Fe && !Pe.some((e) => e.key === Fe.key) && Pe.push(Fe);
let Le = (e = !1) => {
C.current?.abort(), C.current = null, S.current?.(e), S.current = null, se(null), de(!1);
@@ -57572,7 +57585,7 @@ function Bxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
t,
p,
i
- ]), (0, F.useEffect)(() => Op.listen((e) => {
+ ]), (0, F.useEffect)(() => Np.listen((e) => {
let t = Bf(e.location.pathname);
t && (C.current?.abort(), S.current?.(!0), S.current = null, se(null), de(!1)), Te(t);
}), []), (0, F.useEffect)(() => () => {
@@ -57596,7 +57609,7 @@ function Bxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
w?.id !== n.id && Le(!1), Oe.current = {
key: r.key,
id: n.id
- }, pe(""), le(null), T(n), D(r.key), k(null), j(!1), xe(!1), P.reveal(jW(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), D(r.key), k(null), j(!1), xe(!1), P.reveal(NW(e.length, t, r).get(r.key) || r, i, !0), i || requestAnimationFrame(() => y.current?.querySelector("[data-wall-play]")?.focus({ preventScroll: !0 }));
}, Ve = () => {
te && y.current && (Me(), Le(!0), l.wallDetails?.(te, y.current.querySelector("[data-wall-focus]") || y.current));
}, He = async (e = te) => {
@@ -57618,7 +57631,7 @@ function Bxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
C.current === t && de(!1);
}
}, Ue = () => {
- let e = DP(N || null, oe || 0);
+ let e = kP(N || null, oe || 0);
e && (k(e.id), He(e));
};
(0, F.useEffect)(() => {
@@ -57640,7 +57653,7 @@ function Bxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
let r = P.snapshot(), i = e.findIndex((e) => e.id === n.id), a = {
x: (P.view.size.width / 2 - r.x) / r.scale,
y: (P.view.size.height / 2 - r.y) / r.scale
- }, o = t ? Xye(e.length, i) : h.nearest(e.length, i, a);
+ }, o = t ? $ye(e.length, i) : h.nearest(e.length, i, a);
o && (Be(n, o), le(n.id));
}, qe = async () => {
if (!(r || g.current)) {
@@ -57732,7 +57745,7 @@ function Bxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
/* @__PURE__ */ (0, I.jsx)("div", {
"data-wall-focus-backdrop": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(CK, {
+ children: /* @__PURE__ */ (0, I.jsx)(TK, {
item: w,
image: Ee,
big: !0
@@ -57740,7 +57753,7 @@ function Bxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
/* @__PURE__ */ (0, I.jsx)("div", {
"data-wall-scene": "",
- children: /* @__PURE__ */ (0, I.jsx)(CK, {
+ children: /* @__PURE__ */ (0, I.jsx)(TK, {
item: w,
image: Ee,
big: !0
@@ -57769,7 +57782,7 @@ function Bxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
Qe.code ? /* @__PURE__ */ (0, I.jsx)("strong", { children: Ze(Qe).startsWith(Qe.code) ? Ze(Qe).slice(Qe.code.length).trim() : Ze(Qe) }) : null,
/* @__PURE__ */ (0, I.jsx)("span", { children: Qe.performers?.join(" · ") || Qe.creator || "未归属" }),
- N ? /* @__PURE__ */ (0, I.jsx)("small", { children: [Qe.edition_label, Qe.part_label ? FP(Qe.part_label) : ""].filter(Boolean).join(" · ") }) : null
+ N ? /* @__PURE__ */ (0, I.jsx)("small", { children: [Qe.edition_label, Qe.part_label ? LP(Qe.part_label) : ""].filter(Boolean).join(" · ") }) : null
]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -57786,7 +57799,7 @@ function Bxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
fe || M && ee.error && !N ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-wall-play-error": "",
- children: [/* @__PURE__ */ (0, I.jsx)(sV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(lV, {
tone: "error",
children: fe || xn(ee.error)
}), ee.error && !N ? /* @__PURE__ */ (0, I.jsx)(J, {
@@ -57796,7 +57809,7 @@ function Bxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
children: "立即重试"
}) : null]
}) : null,
- /* @__PURE__ */ (0, I.jsx)(Ixe, {
+ /* @__PURE__ */ (0, I.jsx)(zxe, {
item: Qe,
playing: oe,
frame: b,
@@ -57818,7 +57831,7 @@ function Bxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
ended: Ue,
error: pe
}),
- A ? /* @__PURE__ */ (0, I.jsx)(Rxe, {
+ A ? /* @__PURE__ */ (0, I.jsx)(Vxe, {
items: We,
activeId: Qe.id,
kind: N?.kind || "wall",
@@ -57834,7 +57847,7 @@ function Bxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
"data-refreshing": _ !== null || void 0,
hidden: we,
onKeyDown: (e) => {
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), e.stopPropagation(), A ? j(!1) : w ? ze() : be ? Re() : xK());
+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), e.stopPropagation(), A ? j(!1) : w ? ze() : be ? Re() : CK());
},
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -57845,7 +57858,7 @@ function Bxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
"data-wall-back": "",
"aria-label": "退出播放墙",
title: "返回",
- onClick: xK,
+ onClick: CK,
children: /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -57854,7 +57867,7 @@ function Bxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
!t && (n || e.length > 0) ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-wall-refresh": "",
- children: /* @__PURE__ */ (0, I.jsx)(kG, {
+ children: /* @__PURE__ */ (0, I.jsx)(jG, {
busy: r,
onPress: () => void Ye()
})
@@ -57880,7 +57893,7 @@ function Bxe({ 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.get("q") || "") ? Re() : (n ? t.set("q", n) : t.delete("q"), Me(), Op.push(`/wall?${t}`), xe(!1));
+ n === (t.get("q") || "") ? Re() : (n ? t.set("q", n) : t.delete("q"), Me(), Np.push(`/wall?${t}`), xe(!1));
},
children: [/* @__PURE__ */ (0, I.jsx)("button", {
ref: Se,
@@ -57920,7 +57933,7 @@ function Bxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}), /* @__PURE__ */ (0, I.jsx)("p", { children: "当前仅显示筛选结果" })] }), /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "ghost",
- onClick: () => Op.push(bK()),
+ onClick: () => Np.push(SK()),
children: "清除筛选"
})]
}) : null
@@ -57976,7 +57989,7 @@ function Bxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}
}, t.key);
let n = !!w && t.key === E, r = n ? w : e[t.index], i = Ie.get(t.key) || t, a = !re && !n, o = a ? Math.min(.34, (Math.max(0, t.x + P.view.camera.x / P.view.camera.scale) + Math.max(0, t.y + P.view.camera.y / P.view.camera.scale)) / 103.36 * .03) : 0;
- return /* @__PURE__ */ (0, I.jsx)(cS.article, {
+ return /* @__PURE__ */ (0, I.jsx)(fS.article, {
layout: !0,
layoutDependency: `${i.x}:${i.y}:${i.width}:${i.height}`,
"data-wall-tile": t.key,
@@ -57997,7 +58010,7 @@ function Bxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
},
whileHover: ae && !ne && !n && re ? { transform: `translateY(0px) scale(${(i.width + 12.16) / i.width},${(i.height + 12.16) / i.height})` } : void 0,
transition: ne ? { duration: 0 } : {
- layout: Nxe,
+ layout: Ixe,
transform: a ? {
type: "spring",
stiffness: 360,
@@ -58030,7 +58043,7 @@ function Bxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
!n && ["Enter", " "].includes(e.key) && (e.preventDefault(), Be(r, t, !1));
},
children: n ? $e : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(CK, {
+ /* @__PURE__ */ (0, I.jsx)(TK, {
item: r,
image: Ee,
ratio: i.width / i.height
@@ -58056,7 +58069,7 @@ function Bxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
style: { "--wall-progress": `${Math.min(100, Number(r.leave_ratio) * 100)}%` },
"aria-label": "观看进度"
}) : null,
- /* @__PURE__ */ (0, I.jsx)(cS.span, {
+ /* @__PURE__ */ (0, I.jsx)(fS.span, {
"data-wall-dim": "",
animate: { opacity: w ? .65 : 0 },
transition: { duration: ne ? 0 : .24 }
@@ -58068,7 +58081,7 @@ function Bxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
!i && a ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-wall-error": "",
- children: [/* @__PURE__ */ (0, I.jsx)(sV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(lV, {
tone: "error",
children: a
}), /* @__PURE__ */ (0, I.jsx)(J, {
@@ -58098,20 +58111,20 @@ function Bxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
children: /* @__PURE__ */ (0, I.jsxs)(J, {
size: "small",
variant: "secondary",
- ...fV(r),
+ ...mV(r),
onClick: () => void qe(),
children: [r ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Bs() } }) : null, "载入更多"]
})
}) : null,
me ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-wall-error": "",
- children: [/* @__PURE__ */ (0, I.jsx)(sV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(lV, {
tone: "error",
children: me
}), /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "ghost",
- ...fV(r),
+ ...mV(r),
onClick: () => void qe(),
children: "立即重试"
})]
@@ -58121,7 +58134,7 @@ function Bxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
return (0, Rt.createPortal)(et, Ce);
}
// src/catalog-onboarding.ts
-var wK = [
+var EK = [
"loc",
"creator",
"performer",
@@ -58140,19 +58153,19 @@ var wK = [
"jav",
"thumb"
];
-function Vxe(e = typeof location > "u" ? "/" : location.href) {
+function Wxe(e = typeof location > "u" ? "/" : location.href) {
let t = new URL(e, "http://localhost");
for (let e of [
- ...wK,
+ ...EK,
"q",
"category",
"cat"
]) t.searchParams.delete(e);
return t.searchParams.set("thumb", "0"), t.pathname + (t.search ? t.search : "") + t.hash;
}
-async function Hxe(e, t) {
+async function Gxe(e, t) {
let n = new URLSearchParams();
- for (let t of wK) e[t] && n.set(t, e[t]);
+ for (let t of EK) 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 || [],
@@ -58163,9 +58176,9 @@ async function Hxe(e, t) {
return r.set("q", e), r.set("limit", "1"), (await t("/api/items?" + r)).total > 0 ? e : "";
}))).filter(Boolean);
}
-function TK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
+function DK({ 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 Ws("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: n ? "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a><a class=\"geist-button\" href=\"/data-cleanup#libraryProcessing\">补全影片资料</a>" : `<a class="geist-button primary" href="${t ? z(Vxe()) : "/?loc=&thumb=0"}">${t ? "清除筛选" : "查看全部内容"}</a>` });
+ if (t || n) return Ws("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: n ? "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a><a class=\"geist-button\" href=\"/data-cleanup#libraryProcessing\">补全影片资料</a>" : `<a class="geist-button primary" href="${t ? z(Wxe()) : "/?loc=&thumb=0"}">${t ? "清除筛选" : "查看全部内容"}</a>` });
if (e !== "catalog") {
let t = (i ? {
tags: "标签",
@@ -58183,12 +58196,12 @@ function TK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable:
return Ws("play", "还没有视频", "添加媒体目录或关注来源,开始建立你的馆藏。", { actions: a + o });
}
// src/react/video-wall/wall-empty.ts
-function Uxe({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {
- return e ? r || TK() : t ? Ws("image", "这些视频还没有封面", n ? "载入更多作品后继续浏览。" : "为作品补充封面后,可在播放墙中查看。", { actions: "<a class=\"geist-button primary\" href=\"/data-cleanup\">补全封面</a>" + (n ? "<button type=\"button\" class=\"geist-button\" data-wall-load-more>加载更多</button>" : "") }) : Ws("search", "没有符合筛选条件的视频", "清除筛选条件后查看全部视频。", { actions: `<a class="geist-button primary" href="${bK()}">清除筛选</a>` });
+function Kxe({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {
+ return e ? r || DK() : t ? Ws("image", "这些视频还没有封面", n ? "载入更多作品后继续浏览。" : "为作品补充封面后,可在播放墙中查看。", { actions: "<a class=\"geist-button primary\" href=\"/data-cleanup\">补全封面</a>" + (n ? "<button type=\"button\" class=\"geist-button\" data-wall-load-more>加载更多</button>" : "") }) : Ws("search", "没有符合筛选条件的视频", "清除筛选条件后查看全部视频。", { actions: `<a class="geist-button primary" href="${SK()}">清除筛选</a>` });
}
// src/react/library-processing/processing-actions.tsx
-function EK({ label: e, maintenance: t = !1, children: n }) {
- let r = mH("hover");
+function OK({ label: e, maintenance: t = !1, children: n }) {
+ let r = gH("hover");
return /* @__PURE__ */ (0, I.jsx)("div", {
ref: r,
role: "group",
@@ -58198,13 +58211,13 @@ function EK({ label: e, maintenance: t = !1, children: n }) {
children: n
});
}
-function DK({ option: e, metadataOnly: t, onRun: n }) {
+function kK({ option: e, metadataOnly: t, onRun: n }) {
let r = t && e.command.stage === "previews", i = r || e.disabled;
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
disabled: i,
title: r ? "请先在媒体库设置中开启视频预览生成" : void 0,
- className: q(AV, i ? "cursor-not-allowed opacity-50" : jV, "text-body-2-medium"),
+ className: q(MV, i ? "cursor-not-allowed opacity-50" : NV, "text-body-2-medium"),
onClick: () => n(e.command),
children: /* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
@@ -58215,12 +58228,12 @@ function DK({ option: e, metadataOnly: t, onRun: n }) {
})
});
}
-function Wxe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
+function qxe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
let [a, o] = (0, F.useState)(t), [s, c] = (0, F.useState)(), [l, u] = (0, F.useState)("");
(0, F.useEffect)(() => {
let t = new AbortController(), r, i = async (a) => {
try {
- let o = await B_e(e, t.signal, a);
+ let o = await U_e(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(() => {
@@ -58245,7 +58258,7 @@ function Wxe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
}),
/* @__PURE__ */ (0, I.jsx)("div", {
className: "flex justify-center",
- children: /* @__PURE__ */ (0, I.jsx)(xH, {
+ children: /* @__PURE__ */ (0, I.jsx)(CH, {
value: a,
busy: i,
onChange: (e) => {
@@ -58253,7 +58266,7 @@ function Wxe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
}
})
}),
- s ? /* @__PURE__ */ (0, I.jsx)(WH, {
+ s ? /* @__PURE__ */ (0, I.jsx)(KH, {
traffic: s,
initial: !0
}) : null,
@@ -58265,7 +58278,7 @@ function Wxe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
]
});
}
-function OK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, speedMode: i = "standard", pendingCount: a = 0, onRun: o, onOccupied: s }) {
+function AK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, speedMode: i = "standard", pendingCount: a = 0, onRun: o, onOccupied: s }) {
let c = (0, F.useRef)(null), l = (0, F.useRef)(null), [u, d] = (0, F.useState)(null), f = (0, F.useRef)(i);
(0, F.useEffect)(() => () => l.current?.close(), []);
let [p, m] = (0, F.useState)(!1), h = {
@@ -58313,7 +58326,7 @@ function OK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
description: "为已入库的本地视频生成九宫格",
command: { stage: "previews" }
}
- ], v = e || t, y = e ? fV(!0) : t ? { "aria-disabled": !0 } : {}, b = (a) => {
+ ], v = e || t, y = e ? mV(!0) : t ? { "aria-disabled": !0 } : {}, b = (a) => {
if (e) return;
if (t) {
s?.();
@@ -58348,7 +58361,7 @@ function OK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
});
};
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- u ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Wxe, {
+ u ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(qxe, {
command: u.command,
dialog: u.dialog,
speed: i,
@@ -58357,11 +58370,11 @@ function OK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
f.current = e;
}
}), u.host) : null,
- u ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(dH, {
+ u ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(pH, {
href: "/settings/library",
size: "small",
variant: "primary",
- trailingIcon: gB,
+ trailingIcon: vB,
disabled: v,
onClick: (e) => {
u.dialog.confirmButton.getAttribute("aria-busy") === "true" ? e.preventDefault() : u.dialog.close();
@@ -58379,7 +58392,7 @@ function OK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
}), /* @__PURE__ */ (0, I.jsx)(J, {
ref: c,
iconOnly: !0,
- leadingIcon: hB,
+ leadingIcon: _B,
"aria-label": "更多同步方式",
"aria-haspopup": "dialog",
"aria-expanded": p,
@@ -58389,27 +58402,27 @@ function OK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
}
})]
}),
- /* @__PURE__ */ (0, I.jsx)(lz, {
+ /* @__PURE__ */ (0, I.jsx)(dz, {
triggerRef: c,
isOpen: p,
onOpenChange: m,
placement: "bottom end",
offset: 4,
- className: kV,
- children: /* @__PURE__ */ (0, I.jsxs)(Sz, {
+ className: jV,
+ children: /* @__PURE__ */ (0, I.jsxs)(wz, {
"aria-label": "同步方式",
className: "flex w-80 flex-col gap-1 outline-none",
- children: [n ? /* @__PURE__ */ (0, I.jsxs)(EK, {
+ children: [n ? /* @__PURE__ */ (0, I.jsxs)(OK, {
label: "日常同步",
children: [/* @__PURE__ */ (0, I.jsx)("p", {
className: "px-2 py-1 text-caption-1-medium text-text-secondary",
children: "日常同步"
- }), g.map((e) => /* @__PURE__ */ (0, I.jsx)(DK, {
+ }), g.map((e) => /* @__PURE__ */ (0, I.jsx)(kK, {
option: e,
metadataOnly: r,
onRun: b
}, e.label))]
- }) : null, /* @__PURE__ */ (0, I.jsxs)(EK, {
+ }) : null, /* @__PURE__ */ (0, I.jsxs)(OK, {
label: n ? "全库维护" : "补全方式",
maintenance: n,
children: [n ? /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -58421,7 +58434,7 @@ function OK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
className: "text-caption-1-regular text-text-secondary",
children: "检查全部文件,复用已有资料和预览"
})]
- }) : null, _.map((e) => /* @__PURE__ */ (0, I.jsx)(DK, {
+ }) : null, _.map((e) => /* @__PURE__ */ (0, I.jsx)(kK, {
option: e,
metadataOnly: r,
onRun: b
@@ -58432,48 +58445,48 @@ function OK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
] });
}
// src/react/library-processing/library-completion.tsx
-function kK(e, t) {
+function jK(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) && !To(e, "small", !1, t).html).map((e) => e.id))];
}
-function AK({ assetIds: e, onComplete: t, className: n = "mb-4" }) {
- return e.length ? /* @__PURE__ */ (0, I.jsx)(Gxe, {
+function MK({ assetIds: e, onComplete: t, className: n = "mb-4" }) {
+ return e.length ? /* @__PURE__ */ (0, I.jsx)(Jxe, {
assetIds: e,
onComplete: t,
className: n
}) : null;
}
-function Gxe({ assetIds: e, onComplete: t, className: n }) {
+function Jxe({ assetIds: e, onComplete: t, className: n }) {
let r = Ft({
- queryKey: YV,
- queryFn: ({ signal: e }) => rH(e),
- refetchInterval: (e) => oH(e.state.data, !0)
+ queryKey: ZV,
+ queryFn: ({ signal: e }) => aH(e),
+ refetchInterval: (e) => cH(e.state.data, !0)
}), [i, a] = (0, F.useState)(null), [o, s] = (0, F.useState)(""), c = (0, F.useRef)(null), l = It({
- mutationFn: (t) => V(JV, {
+ mutationFn: (t) => V(XV, {
...t,
asset_ids: e
}),
onSuccess: (e) => {
- a(e.job_id || null), H.setQueryData(YV, e), H.invalidateQueries({ queryKey: YV });
+ a(e.job_id || null), H.setQueryData(ZV, e), H.invalidateQueries({ queryKey: ZV });
}
}), u = r.data;
(0, F.useEffect)(() => {
- u && i && u.job_id === i && !QV(u) && c.current !== i && (c.current = i, u.status === "complete" && s(`补全完成:取得 ${u.covers || 0} 张封面,生成 ${u.previews || 0} 部视频预览。`), H.invalidateQueries({ queryKey: ["catalog-grid"] }), t?.());
+ u && i && u.job_id === i && !eH(u) && c.current !== i && (c.current = i, u.status === "complete" && s(`补全完成:取得 ${u.covers || 0} 张封面,生成 ${u.previews || 0} 部视频预览。`), H.invalidateQueries({ queryKey: ["catalog-grid"] }), t?.());
}, [
u,
i,
t
]);
- let d = l.isPending || QV(u), f = l.error ? lr(l.error) : r.error ? aH : i && u?.job_id === i && u.status === "failed" ? u.error || "补全未完成" : "", p = f || (l.isPending ? "正在启动补全…" : o || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,${QV(u) ? "当前任务结束后可单独补全。" : "可补全资料与图片。"}`);
+ let d = l.isPending || eH(u), f = l.error ? lr(l.error) : r.error ? sH : i && u?.job_id === i && u.status === "failed" ? u.error || "补全未完成" : "", p = f || (l.isPending ? "正在启动补全…" : o || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,${eH(u) ? "当前任务结束后可单独补全。" : "可补全资料与图片。"}`);
return /* @__PURE__ */ (0, I.jsx)("section", {
"aria-label": "补全预览",
"aria-live": "polite",
"data-library-completion": "",
className: q("@container", n),
- children: /* @__PURE__ */ (0, I.jsxs)(sV, {
+ children: /* @__PURE__ */ (0, I.jsxs)(lV, {
tone: f ? "warning" : "neutral",
action: /* @__PURE__ */ (0, I.jsx)("div", {
className: "flex flex-wrap items-center gap-2",
- children: /* @__PURE__ */ (0, I.jsx)(OK, {
+ children: /* @__PURE__ */ (0, I.jsx)(AK, {
busy: d,
metadataOnly: u?.metadata_only,
onRun: (e) => {
@@ -58484,10 +58497,10 @@ function Gxe({ assetIds: e, onComplete: t, className: n }) {
children: [
p,
" ",
- /* @__PURE__ */ (0, I.jsx)(dH, {
+ /* @__PURE__ */ (0, I.jsx)(pH, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: gB,
+ trailingIcon: vB,
children: f ? "打开扫描与采集" : "查看处理详情"
})
]
@@ -58495,31 +58508,31 @@ function Gxe({ assetIds: e, onComplete: t, className: n }) {
});
}
// node_modules/@tanstack/react-table/dist/FlexRender.js
-function Kxe(e) {
- return qxe(e) || typeof e == "function" || Jxe(e);
+function Yxe(e) {
+ return Xxe(e) || typeof e == "function" || Zxe(e);
}
-function qxe(e) {
+function Xxe(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
-function Jxe(e) {
+function Zxe(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
-function jK(e, t) {
- return e == null ? null : Kxe(e) ? /* @__PURE__ */ F.createElement(e, t) : e;
+function NK(e, t) {
+ return e == null ? null : Yxe(e) ? /* @__PURE__ */ F.createElement(e, t) : e;
}
-function Yxe(e) {
+function Qxe(e) {
if ("cell" in e && e.cell) {
let t = e.cell, n = t.column.columnDef, r = t, i = n;
- return r.getIsAggregated?.() ? jK(i.aggregatedCell ?? n.cell, t.getContext()) : r.getIsPlaceholder?.() ? null : jK(n.cell, t.getContext());
+ return r.getIsAggregated?.() ? NK(i.aggregatedCell ?? n.cell, t.getContext()) : r.getIsPlaceholder?.() ? null : NK(n.cell, t.getContext());
}
- return "header" in e && e.header ? jK(e.header.column.columnDef.header, e.header.getContext()) : "footer" in e && e.footer ? jK(e.footer.column.columnDef.footer, e.footer.getContext()) : null;
+ return "header" in e && e.header ? NK(e.header.column.columnDef.header, e.header.getContext()) : "footer" in e && e.footer ? NK(e.footer.column.columnDef.footer, e.footer.getContext()) : null;
}
// node_modules/@tanstack/store/dist/alien.js
/* @__NO_SIDE_EFFECTS__ */
-function Xxe({ update: e, notify: t, unwatched: n }) {
+function $xe({ update: e, notify: t, unwatched: n }) {
return {
link: r,
unlink: i,
@@ -58636,7 +58649,7 @@ function Xxe({ update: e, notify: t, unwatched: n }) {
}
}
// node_modules/@tanstack/store/dist/atom.js
-function Zxe(e, t, n) {
+function eSe(e, t, n) {
let r = typeof e == "object", i = r ? e : void 0;
return {
next: (r ? e.next : e)?.bind(i),
@@ -58644,38 +58657,38 @@ function Zxe(e, t, n) {
complete: (r ? e.complete : n)?.bind(i)
};
}
-var MK = [], NK = 0, { link: PK, unlink: Qxe, propagate: $xe, checkDirty: FK, shallowPropagate: IK } = /* @__PURE__ */ Xxe({
+var PK = [], FK = 0, { link: IK, unlink: tSe, propagate: nSe, checkDirty: LK, shallowPropagate: RK } = /* @__PURE__ */ $xe({
update(e) {
return e._update();
},
notify(e) {
- MK[RK++] = e, e.flags &= -3;
+ PK[BK++] = e, e.flags &= -3;
},
unwatched(e) {
- e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, VK(e));
+ e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, UK(e));
}
-}), LK = 0, RK = 0, zK, BK = 0;
-function eSe(e) {
+}), zK = 0, BK = 0, VK, HK = 0;
+function rSe(e) {
try {
- ++BK, e();
+ ++HK, e();
} finally {
- --BK || HK();
+ --HK || WK();
}
}
-function VK(e) {
+function UK(e) {
let t = e.depsTail, n = t === void 0 ? e.deps : t.nextDep;
- for (; n !== void 0;) n = Qxe(n, e);
+ for (; n !== void 0;) n = tSe(n, e);
}
-function HK() {
- if (!(BK > 0)) {
- for (; LK < RK;) {
- let e = MK[LK];
- MK[LK++] = void 0, e.notify();
+function WK() {
+ if (!(HK > 0)) {
+ for (; zK < BK;) {
+ let e = PK[zK];
+ PK[zK++] = void 0, e.notify();
}
- LK = 0, RK = 0;
+ zK = 0, BK = 0;
}
}
-function tSe(e, t) {
+function iSe(e, t) {
let n = typeof e == "function", r = e, i = {
_snapshot: n ? void 0 : e,
subs: void 0,
@@ -58684,53 +58697,53 @@ function tSe(e, t) {
depsTail: void 0,
flags: +!n,
get() {
- return zK !== void 0 && PK(i, zK, NK), i._snapshot;
+ return VK !== void 0 && IK(i, VK, FK), i._snapshot;
},
subscribe(e) {
- let t = Zxe(e), n = { current: !1 }, r = nSe(() => {
- i.get(), n.current ? (zK = void 0, t.next?.(i._snapshot)) : n.current = !0;
+ let t = eSe(e), n = { current: !1 }, r = aSe(() => {
+ i.get(), n.current ? (VK = void 0, t.next?.(i._snapshot)) : n.current = !0;
});
return { unsubscribe: () => {
r.stop();
} };
},
_update(e) {
- let a = zK, o = t?.compare ?? Object.is;
- if (n) zK = i, ++NK, i.depsTail = void 0;
+ let a = VK, o = t?.compare ?? Object.is;
+ if (n) VK = i, ++FK, 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 {
- zK = a, n && (i.flags &= -5), VK(i);
+ VK = a, n && (i.flags &= -5), UK(i);
}
}
};
return n ? (i.flags = 17, i.get = function() {
let e = i.flags;
- if (e & 16 || e & 32 && FK(i.deps, i)) {
+ if (e & 16 || e & 32 && LK(i.deps, i)) {
if (i._update()) {
let e = i.subs;
- e !== void 0 && IK(e);
+ e !== void 0 && RK(e);
}
} else e & 32 && (i.flags = e & -33);
- return zK !== void 0 && PK(i, zK, NK), i._snapshot;
+ return VK !== void 0 && IK(i, VK, FK), i._snapshot;
}) : i.set = function(e) {
if (i._update(e)) {
let e = i.subs;
- e !== void 0 && ($xe(e), IK(e), HK());
+ e !== void 0 && (nSe(e), RK(e), WK());
}
}, i;
}
-function nSe(e) {
+function aSe(e) {
let t = () => {
- let t = zK;
- zK = n, ++NK, n.depsTail = void 0, n.flags = 6;
+ let t = VK;
+ VK = n, ++FK, n.depsTail = void 0, n.flags = 6;
try {
return e();
} finally {
- zK = t, n.flags &= -5, VK(n);
+ VK = t, n.flags &= -5, UK(n);
}
}, n = {
deps: void 0,
@@ -58740,16 +58753,16 @@ function nSe(e) {
flags: 6,
notify() {
let e = this.flags;
- e & 16 || e & 32 && FK(this.deps, this) ? t() : this.flags = 2;
+ e & 16 || e & 32 && LK(this.deps, this) ? t() : this.flags = 2;
},
stop() {
- this.flags = 0, this.depsTail = void 0, VK(this);
+ this.flags = 0, this.depsTail = void 0, UK(this);
}
};
return t(), n;
}
// node_modules/@tanstack/store/dist/shallow.js
-function UK(e, t) {
+function GK(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) {
@@ -58763,17 +58776,17 @@ function UK(e, t) {
return !0;
}
if (e instanceof Date && t instanceof Date) return e.getTime() === t.getTime();
- let n = WK(e);
- if (n.length !== WK(t).length) return !1;
+ let n = KK(e);
+ if (n.length !== KK(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 WK(e) {
+function KK(e) {
return Object.keys(e).concat(Object.getOwnPropertySymbols(e));
}
// node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
-var rSe = /* @__PURE__ */ o(((e) => {
- var t = A(), n = $C();
+var oSe = /* @__PURE__ */ o(((e) => {
+ var t = A(), n = rw();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
@@ -58817,33 +58830,33 @@ var rSe = /* @__PURE__ */ o(((e) => {
f.hasValue = !0, f.value = p;
}, [p]), l(p), p;
};
-})), GK = /* @__PURE__ */ o(((e, t) => {
- t.exports = rSe();
-})), iSe = GK();
-function aSe(e, t) {
+})), qK = /* @__PURE__ */ o(((e, t) => {
+ t.exports = oSe();
+})), sSe = qK();
+function cSe(e, t) {
return e === t;
}
-function KK(e, t = (e) => e, n) {
- let r = n?.compare ?? aSe, i = (0, F.useCallback)((t) => {
+function JK(e, t = (e) => e, n) {
+ let r = n?.compare ?? cSe, i = (0, F.useCallback)((t) => {
let { unsubscribe: n } = e.subscribe(t);
return n;
}, [e]), a = (0, F.useCallback)(() => e.get(), [e]);
- return (0, iSe.useSyncExternalStoreWithSelector)(i, a, a, t, r);
+ return (0, sSe.useSyncExternalStoreWithSelector)(i, a, a, t, r);
}
// node_modules/@tanstack/react-table/dist/Subscribe.js
-function oSe(e) {
- let t = KK(e.source, e.selector, { compare: UK });
+function lSe(e) {
+ let t = JK(e.source, e.selector, { compare: GK });
return typeof e.children == "function" ? e.children(t) : e.children;
}
// node_modules/@tanstack/table-core/dist/core/reactivity/coreReactivityFeature.utils.js
-function sSe(e) {
+function uSe(e) {
let t = e;
return Object.defineProperty(e, "state", { get() {
return e.get();
} }), "set" in e && (t.setState = e.set.bind(e)), t;
}
// node_modules/@tanstack/table-core/dist/core/reactivity/renderPhaseReactivity.js
-function cSe(e) {
+function dSe(e) {
let { createAtom: t, batch: n } = e, r = t(0);
return {
createOptionsStore: !1,
@@ -58873,7 +58886,7 @@ function cSe(e) {
}
};
}
-function lSe(e, t = Object.is) {
+function fSe(e, t = Object.is) {
let n = !1, r;
return {
get: e.get,
@@ -58886,28 +58899,28 @@ function lSe(e, t = Object.is) {
};
}
// node_modules/@tanstack/react-table/dist/reactivity.js
-function uSe() {
- return cSe({
- createAtom: tSe,
- batch: eSe
+function pSe() {
+ return dSe({
+ createAtom: iSe,
+ batch: rSe
});
}
// node_modules/@tanstack/table-core/dist/utils.js
-function qK(e, t) {
+function YK(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function JK(e) {
- if (Array.isArray(e)) return e.map(JK);
+function XK(e) {
+ if (Array.isArray(e)) return e.map(XK);
if (e && typeof e == "object") {
let t = Object.getPrototypeOf(e);
if (t !== Object.prototype && t !== null) return e;
- let n = t === null ? XK() : {}, r = Object.keys(e);
+ let n = t === null ? QK() : {}, 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: JK(e[i]),
+ value: XK(e[i]),
writable: !0
});
}
@@ -58915,7 +58928,7 @@ function JK(e) {
}
return e;
}
-function YK(e, t) {
+function ZK(e, t) {
let n = Object.keys(t), r = e;
for (let e = 0; e < n.length; e++) {
let i = n[e];
@@ -58923,53 +58936,53 @@ function YK(e, t) {
}
return e;
}
-function XK() {
+function QK() {
return Object.create(null);
}
-function ZK(e, t) {
+function $K(e, t) {
return Object.prototype.hasOwnProperty.call(e, t);
}
-function QK(e, t) {
+function eq(e, t) {
return (n) => {
- (t.options.atoms?.[e] ?? t.baseAtoms[e]).set((e) => qK(n, e));
+ (t.options.atoms?.[e] ?? t.baseAtoms[e]).set((e) => YK(n, e));
};
}
-function $K(e) {
+function tq(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 eq(e) {
+function nq(e) {
return Reflect.ownKeys(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
}
-var dSe = 3;
-function fSe(e, t) {
- return tq(e, t, dSe);
+var mSe = 3;
+function hSe(e, t) {
+ return rq(e, t, mSe);
}
-function tq(e, t, n) {
+function rq(e, t, n) {
if (Object.is(e, t)) return !0;
- if (n <= 0 || !$K(e) || !$K(t) || (Array.isArray(e) || Array.isArray(t)) && (!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length)) return !1;
- let r = eq(e), i = eq(t);
+ if (n <= 0 || !tq(e) || !tq(t) || (Array.isArray(e) || Array.isArray(t)) && (!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length)) return !1;
+ let r = nq(e), i = nq(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) || !rq(a[i], o[i], n - 1)) return !1;
}
return !0;
}
-function nq(e, t, n, r = fSe) {
+function iq(e, t, n, r = hSe) {
let i = `on${t.charAt(0).toUpperCase()}${t.slice(1)}Change`, a = e.options[i];
a && a((e) => {
- let t = qK(n, e);
+ let t = YK(n, e);
return r(e, t) ? e : t;
});
}
-function pSe(e) {
+function gSe(e) {
return e instanceof Function;
}
-function mSe(e, t) {
+function _Se(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -58979,7 +58992,7 @@ function mSe(e, t) {
};
return r(e), n;
}
-var hSe = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
+var vSe = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
let o = [], s;
return (c) => {
i?.();
@@ -58993,23 +59006,23 @@ var hSe = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCo
return n?.(u), u && (o = l, a?.(), s = e(...l ?? []), r?.(s)), s;
};
};
-function rq(e) {
+function aq(e) {
let t = !1;
return () => {
t ? e() : t = !0;
};
}
-function iq({ feature: e, fnName: t, objectId: n, onAfterUpdate: r, table: i, ...a }) {
+function oq({ 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 hSe({
+ return vSe({
...a,
...o
});
}
-function aq(e, t = "_") {
+function sq(e, t = "_") {
let [n, r] = e.replace(t, " ").split(" ");
return {
fnKey: r,
@@ -59017,10 +59030,10 @@ function aq(e, t = "_") {
parentName: n
};
}
-function oq(e, t, n) {
+function cq(e, t, n) {
for (let [r, { fn: i, memoDeps: a }] of Object.entries(n)) {
- let { fnKey: n, fnName: o } = aq(r);
- t[n] = a ? iq({
+ let { fnKey: n, fnName: o } = sq(r);
+ t[n] = a ? oq({
memoDeps: a,
fn: i,
fnName: o,
@@ -59029,15 +59042,15 @@ function oq(e, t, n) {
}) : i;
}
}
-function sq(e, t, n, r) {
+function lq(e, t, n, r) {
for (let [i, { fn: a, memoDeps: o }] of Object.entries(r)) {
- let { fnKey: r, fnName: s } = aq(i);
+ let { fnKey: r, fnName: s } = sq(i);
if (o) {
let i = `_memo_${r}`;
t[r] = function(...t) {
if (!this[i]) {
let t = this;
- this[i] = iq({
+ this[i] = oq({
memoDeps: (e) => o(t, e),
fn: (...e) => a(t, ...e),
fnName: s,
@@ -59053,17 +59066,17 @@ function sq(e, t, n, r) {
};
}
}
-function cq(e, t, n, ...r) {
+function uq(e, t, n, ...r) {
return e[t]?.(...r) ?? n(e, ...r);
}
// node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.utils.js
-function gSe(e) {
+function ySe(e) {
return e.row.getValue(e.column.id);
}
-function _Se(e) {
+function bSe(e) {
return e.getValue() ?? e.table.options.renderFallbackValue;
}
-function vSe(e) {
+function xSe(e) {
return {
table: e.table,
column: e.column,
@@ -59074,18 +59087,18 @@ function vSe(e) {
};
}
// node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.js
-var ySe = { assignCellPrototype: (e, t) => {
- sq("coreCellsFeature", e, t, {
- cell_getValue: { fn: (e) => gSe(e) },
- cell_renderValue: { fn: (e) => _Se(e) },
+var SSe = { assignCellPrototype: (e, t) => {
+ lq("coreCellsFeature", e, t, {
+ cell_getValue: { fn: (e) => ySe(e) },
+ cell_renderValue: { fn: (e) => bSe(e) },
cell_getContext: {
- fn: (e) => vSe(e),
+ fn: (e) => xSe(e),
memoDeps: (e) => [e]
}
});
} };
// node_modules/@tanstack/table-core/dist/core/columns/constructColumn.js
-function bSe(e) {
+function CSe(e) {
if (!e._columnPrototype) {
e._columnPrototype = { table: e };
let t = Object.values(e._features);
@@ -59093,7 +59106,7 @@ function bSe(e) {
}
return e._columnPrototype;
}
-function xSe(e, t, n, r) {
+function wSe(e, t, n, r) {
let i = {
...e.getDefaultColumnDef(),
...t
@@ -59113,53 +59126,53 @@ function xSe(e, t, n, r) {
} else c = (e) => e[i.accessorKey];
}
if (!s) throw Error();
- let l = bSe(e), u = Object.create(l);
+ let l = CSe(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);
return u;
}
// node_modules/@tanstack/table-core/dist/core/featureStubs.js
-function lq(e) {
+function dq(e) {
return e.getIsVisible?.() ?? !0;
}
-function SSe(e) {
+function TSe(e) {
return e.getVisibleLeafColumns?.() ?? e.getAllLeafColumns();
}
-function uq(e, t) {
+function fq(e, t) {
let n = e, r = t;
return n.getOrderColumnsFn?.()(r) ?? n._orderGroupedColumns?.(r) ?? t;
}
-function dq(e, t, n, r) {
+function pq(e, t, n, r) {
return e._orderByColumnPinning?.(t, n, r) ?? t;
}
-function fq(e, t) {
+function mq(e, t) {
return e._expandRows?.(t) ?? t;
}
-function CSe(e) {
+function ESe(e) {
e.autoResetExpanded?.();
}
-function pq(e) {
+function hq(e) {
e.autoResetPageIndex?.();
}
-function wSe(e) {
+function DSe(e) {
e.autoResetSorting?.();
}
-function TSe(e) {
+function OSe(e) {
e.autoResetCellSelection?.();
}
// node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.utils.js
-function ESe(e) {
+function kSe(e) {
return [e, ...e.columns.flatMap((e) => e.getFlatColumns())];
}
-function DSe(e) {
+function ASe(e) {
if (e.columns.length) {
let t = e.columns.flatMap((e) => e.getLeafColumns());
- return uq(e.table, t);
+ return fq(e.table, t);
}
return [e];
}
-function OSe(e) {
+function jSe(e) {
return {
header: (e) => {
let t = e.header.column.columnDef;
@@ -59170,53 +59183,53 @@ function OSe(e) {
...e.options.defaultColumn
};
}
-function mq(e, t, n, r = 0) {
+function gq(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 = xSe(e, o, r, n), c = o;
- s.columns = c.columns ? mq(e, c.columns, s, r + 1) : [], i[a] = s;
+ let o = t[a], s = wSe(e, o, r, n), c = o;
+ s.columns = c.columns ? gq(e, c.columns, s, r + 1) : [], i[a] = s;
}
return i;
}
-function kSe(e) {
- return mq(e, e.options.columns);
+function MSe(e) {
+ return gq(e, e.options.columns);
}
-function ASe(e) {
+function NSe(e) {
return e.getAllColumns().flatMap((e) => e.getFlatColumns());
}
-function jSe(e) {
- let t = XK(), n = e.getAllFlatColumns();
+function PSe(e) {
+ let t = QK(), n = e.getAllFlatColumns();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.id] = r;
}
return t;
}
-function MSe(e) {
- return uq(e, e.getAllColumns().flatMap((e) => e.getLeafColumns()));
+function FSe(e) {
+ return fq(e, e.getAllColumns().flatMap((e) => e.getLeafColumns()));
}
-function NSe(e) {
- let t = XK(), n = e.getAllLeafColumns();
+function ISe(e) {
+ let t = QK(), n = e.getAllLeafColumns();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.id] = r;
}
return t;
}
-function PSe(e, t) {
+function LSe(e, t) {
return e.getAllFlatColumnsById()[t];
}
// node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.js
-var FSe = {
+var RSe = {
assignColumnPrototype: (e, t) => {
- sq("coreColumnsFeature", e, t, {
+ lq("coreColumnsFeature", e, t, {
column_getFlatColumns: {
- fn: (e) => ESe(e),
+ fn: (e) => kSe(e),
memoDeps: (e) => [e.table.options.columns]
},
column_getLeafColumns: {
- fn: (e) => DSe(e),
+ fn: (e) => ASe(e),
memoDeps: (e) => [
e.table.atoms.columnOrder?.get(),
e.table.atoms.grouping?.get(),
@@ -59227,25 +59240,25 @@ var FSe = {
});
},
constructTableAPIs: (e) => {
- oq("coreColumnsFeature", e, {
+ cq("coreColumnsFeature", e, {
table_getDefaultColumnDef: {
- fn: () => OSe(e),
+ fn: () => jSe(e),
memoDeps: () => [e.options.defaultColumn]
},
table_getAllColumns: {
- fn: () => kSe(e),
+ fn: () => MSe(e),
memoDeps: () => [e.options.columns]
},
table_getAllFlatColumns: {
- fn: () => ASe(e),
+ fn: () => NSe(e),
memoDeps: () => [e.options.columns]
},
table_getAllFlatColumnsById: {
- fn: () => jSe(e),
+ fn: () => PSe(e),
memoDeps: () => [e.options.columns]
},
table_getAllLeafColumns: {
- fn: () => MSe(e),
+ fn: () => FSe(e),
memoDeps: () => [
e.atoms.columnOrder?.get(),
e.atoms.grouping?.get(),
@@ -59254,15 +59267,15 @@ var FSe = {
]
},
table_getAllLeafColumnsById: {
- fn: () => NSe(e),
+ fn: () => ISe(e),
memoDeps: () => [e.getAllLeafColumns()]
},
- table_getColumn: { fn: (t) => PSe(e, t) }
+ table_getColumn: { fn: (t) => LSe(e, t) }
});
}
};
// node_modules/@tanstack/table-core/dist/core/headers/constructHeader.js
-function ISe(e) {
+function zSe(e) {
if (!e._headerPrototype) {
e._headerPrototype = { table: e };
let t = Object.values(e._features);
@@ -59270,38 +59283,38 @@ function ISe(e) {
}
return e._headerPrototype;
}
-function hq(e, t, n) {
- let r = ISe(e), i = Object.create(r);
+function _q(e, t, n) {
+ let r = zSe(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);
return i;
}
// node_modules/@tanstack/table-core/dist/core/headers/buildHeaderGroups.js
-function gq(e, t = 1) {
+function vq(e, t = 1) {
let n = t;
for (let r = 0; r < e.length; r++) {
let i = e[r];
- lq(i) && i.columns.length && (n = Math.max(n, gq(i.columns, t + 1)));
+ dq(i) && i.columns.length && (n = Math.max(n, vq(i.columns, t + 1)));
}
return n;
}
-function LSe(e, t) {
+function BSe(e, t) {
return e ? `${e}_${t}` : String(t);
}
-function RSe(e, t, n, r) {
+function VSe(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 zSe(e, t) {
+function HSe(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) e[r].column === t && n++;
return n;
}
-function _q(e, t, n, r, i, a) {
+function yq(e, t, n, r, i, a) {
let o = {
depth: t,
- id: LSe(r, t),
+ id: BSe(r, t),
headers: []
}, s = [];
for (let i = 0; i < e.length; i++) {
@@ -59309,10 +59322,10 @@ function _q(e, t, n, r, i, a) {
let a = e[i], c = s[s.length - 1], l = a.column.depth === o.depth, u, d = !1;
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 = hq(n, u, {
- id: RSe(r, t, u.id, a.id),
+ let e = _q(n, u, {
+ id: VSe(r, t, u.id, a.id),
isPlaceholder: d,
- placeholderId: d ? String(zSe(s, u)) : void 0,
+ placeholderId: d ? String(HSe(s, u)) : void 0,
depth: t,
index: s.length
});
@@ -59321,18 +59334,18 @@ function _q(e, t, n, r, i, a) {
o.headers.push(a), a.headerGroup = o;
}
for (let e = 0; e < a.length; e++) a[e](o);
- i.push(o), t > 0 && _q(s, t - 1, n, r, i, a);
+ i.push(o), t > 0 && yq(s, t - 1, n, r, i, a);
}
-function vq(e) {
+function bq(e) {
for (let t = 0; t < e.length; t++) {
let n = e[t];
- if (!lq(n.column)) continue;
+ if (!dq(n.column)) continue;
let r = 0;
if (n.subHeaders.length) {
- vq(n.subHeaders);
+ bq(n.subHeaders);
for (let e = 0; e < n.subHeaders.length; e++) {
let t = n.subHeaders[e];
- lq(t.column) && (r += t.colSpan);
+ dq(t.column) && (r += t.colSpan);
}
} else r = 1;
if (n.colSpan = r, n.isPlaceholder && n.subHeaders.length === 1 && n.subHeaders[0].column === n.column) {
@@ -59342,37 +59355,37 @@ function vq(e) {
} else n.rowSpan = 1;
}
}
-function BSe(e, t, n, r) {
- let i = gq(e), a = [], o = n._headerGroupInstanceInitFns, s = Array(t.length);
- for (let e = 0; e < t.length; e++) e in t && (s[e] = hq(n, t[e], {
+function USe(e, t, n, r) {
+ let i = vq(e), a = [], o = n._headerGroupInstanceInitFns, s = Array(t.length);
+ for (let e = 0; e < t.length; e++) e in t && (s[e] = _q(n, t[e], {
depth: i,
index: e
}));
- return _q(s, i - 1, n, r, a, o), a.reverse(), vq(a[0]?.headers ?? []), a;
+ return yq(s, i - 1, n, r, a, o), a.reverse(), bq(a[0]?.headers ?? []), a;
}
// node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.utils.js
-function yq(e, t) {
- for (let n = 0; n < e.subHeaders.length; n++) yq(e.subHeaders[n], t);
+function xq(e, t) {
+ for (let n = 0; n < e.subHeaders.length; n++) xq(e.subHeaders[n], t);
t.push(e);
}
-function VSe(e) {
+function WSe(e) {
let t = [];
- return yq(e, t), t;
+ return xq(e, t), t;
}
-function HSe(e) {
+function GSe(e) {
return {
column: e.column,
header: e,
table: e.column.table
};
}
-function USe(e) {
- return BSe(e.getAllColumns(), dq(e, SSe(e), (e) => e.id), e);
+function KSe(e) {
+ return USe(e.getAllColumns(), pq(e, TSe(e), (e) => e.id), e);
}
-function WSe(e) {
+function qSe(e) {
return [...e.getHeaderGroups()].reverse();
}
-function GSe(e) {
+function JSe(e) {
let t = e.getHeaderGroups(), n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e].headers;
@@ -59380,7 +59393,7 @@ function GSe(e) {
}
return n;
}
-function KSe(e) {
+function YSe(e) {
let t = e.getHeaderGroups()[0]?.headers ?? [], n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e].getLeafHeaders();
@@ -59389,23 +59402,23 @@ function KSe(e) {
return n;
}
// node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.js
-var qSe = {
+var XSe = {
assignHeaderPrototype: (e, t) => {
- sq("coreHeadersFeature", e, t, {
+ lq("coreHeadersFeature", e, t, {
header_getLeafHeaders: {
- fn: (e) => VSe(e),
+ fn: (e) => WSe(e),
memoDeps: (e) => [e.column.table.options.columns]
},
header_getContext: {
- fn: (e) => HSe(e),
+ fn: (e) => GSe(e),
memoDeps: (e) => [e.column.table.options.columns]
}
});
},
constructTableAPIs: (e) => {
- oq("coreHeadersFeature", e, {
+ cq("coreHeadersFeature", e, {
table_getHeaderGroups: {
- fn: () => USe(e),
+ fn: () => KSe(e),
memoDeps: () => [
e.options.columns,
e.atoms.columnOrder?.get(),
@@ -59416,22 +59429,22 @@ var qSe = {
]
},
table_getFooterGroups: {
- fn: () => WSe(e),
+ fn: () => qSe(e),
memoDeps: () => [e.getHeaderGroups()]
},
table_getFlatHeaders: {
- fn: () => GSe(e),
+ fn: () => JSe(e),
memoDeps: () => [e.getHeaderGroups()]
},
table_getLeafHeaders: {
- fn: () => KSe(e),
+ fn: () => YSe(e),
memoDeps: () => [e.getHeaderGroups()]
}
});
}
};
// node_modules/@tanstack/table-core/dist/core/rows/constructRow.js
-function JSe(e) {
+function ZSe(e) {
if (!e._rowPrototype) {
e._rowPrototype = { table: e };
let t = Object.values(e._features);
@@ -59439,98 +59452,98 @@ function JSe(e) {
}
return e._rowPrototype;
}
-var YSe = (e, t, n, r, i, a, o) => {
- let s = JSe(e), c = Object.create(s);
- c._displayIndexCache = -1, c._uniqueValuesCache = XK(), c._valuesCache = XK(), c.depth = i, c.id = t, c.index = r, c.original = n, c.parentId = o, c.subRows = a ?? [];
+var QSe = (e, t, n, r, i, a, o) => {
+ let s = ZSe(e), c = Object.create(s);
+ c._displayIndexCache = -1, c._uniqueValuesCache = QK(), c._valuesCache = QK(), 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;
};
// node_modules/@tanstack/table-core/dist/core/row-models/createCoreRowModel.js
-function XSe() {
- return (e) => iq({
+function $Se() {
+ return (e) => oq({
feature: "coreRowModelsFeature",
table: e,
fnName: "table.getCoreRowModel",
memoDeps: () => [e.options.data],
- fn: () => ZSe(e, e.options.data),
- onAfterUpdate: rq(() => {
- CSe(e), pq(e), wSe(e), TSe(e);
+ fn: () => eCe(e, e.options.data),
+ onAfterUpdate: aq(() => {
+ ESe(e), hq(e), DSe(e), OSe(e);
})
});
}
-function bq(e, t, n, r = 0, i) {
+function Sq(e, t, n, r = 0, i) {
let a = [];
for (let o = 0; o < n.length; o++) {
- let s = n[o], c = YSe(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 = bq(e, t, c.originalSubRows, r + 1, c)));
+ let s = n[o], c = QSe(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 = Sq(e, t, c.originalSubRows, r + 1, c)));
}
return a;
}
-function ZSe(e, t) {
+function eCe(e, t) {
let n = {
rows: [],
flatRows: [],
- rowsById: XK()
+ rowsById: QK()
};
- return n.rows = bq(e, n, t), n;
+ return n.rows = Sq(e, n, t), n;
}
// node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.utils.js
-function QSe(e) {
- return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? XSe()(e)), e._rowModels.coreRowModel();
+function tCe(e) {
+ return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? $Se()(e)), e._rowModels.coreRowModel();
}
-function $Se(e) {
+function nCe(e) {
return e.getCoreRowModel();
}
-function eCe(e) {
+function rCe(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 tCe(e) {
+function iCe(e) {
return e.getFilteredRowModel();
}
-function nCe(e) {
+function aCe(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 rCe(e) {
+function oCe(e) {
return e.getGroupedRowModel();
}
-function iCe(e) {
+function sCe(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 aCe(e) {
+function cCe(e) {
return e.getSortedRowModel();
}
-function oCe(e) {
+function lCe(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 sCe(e) {
+function uCe(e) {
return e.getExpandedRowModel();
}
-function cCe(e) {
+function dCe(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 lCe(e) {
+function fCe(e) {
return e.getPaginatedRowModel();
}
// node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.js
-var uCe = { constructTableAPIs: (e) => {
- oq("coreRowModelsFeature", e, {
- table_getCoreRowModel: { fn: () => QSe(e) },
- table_getPreFilteredRowModel: { fn: () => $Se(e) },
- table_getFilteredRowModel: { fn: () => eCe(e) },
- table_getPreGroupedRowModel: { fn: () => tCe(e) },
- table_getGroupedRowModel: { fn: () => nCe(e) },
- table_getPreSortedRowModel: { fn: () => rCe(e) },
- table_getSortedRowModel: { fn: () => iCe(e) },
- table_getPreExpandedRowModel: { fn: () => aCe(e) },
- table_getExpandedRowModel: { fn: () => oCe(e) },
- table_getPrePaginatedRowModel: { fn: () => sCe(e) },
- table_getPaginatedRowModel: { fn: () => cCe(e) },
- table_getRowModel: { fn: () => lCe(e) }
+var pCe = { constructTableAPIs: (e) => {
+ cq("coreRowModelsFeature", e, {
+ table_getCoreRowModel: { fn: () => tCe(e) },
+ table_getPreFilteredRowModel: { fn: () => nCe(e) },
+ table_getFilteredRowModel: { fn: () => rCe(e) },
+ table_getPreGroupedRowModel: { fn: () => iCe(e) },
+ table_getGroupedRowModel: { fn: () => aCe(e) },
+ table_getPreSortedRowModel: { fn: () => oCe(e) },
+ table_getSortedRowModel: { fn: () => sCe(e) },
+ table_getPreExpandedRowModel: { fn: () => cCe(e) },
+ table_getExpandedRowModel: { fn: () => lCe(e) },
+ table_getPrePaginatedRowModel: { fn: () => uCe(e) },
+ table_getPaginatedRowModel: { fn: () => dCe(e) },
+ table_getRowModel: { fn: () => fCe(e) }
});
} };
// node_modules/@tanstack/table-core/dist/core/cells/constructCell.js
-function dCe(e) {
+function mCe(e) {
if (!e._cellPrototype) {
e._cellPrototype = { table: e };
let t = Object.values(e._features);
@@ -59538,48 +59551,48 @@ function dCe(e) {
}
return e._cellPrototype;
}
-function fCe(e, t, n) {
- let r = dCe(n), i = Object.create(r);
+function hCe(e, t, n) {
+ let r = mCe(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);
return i;
}
// node_modules/@tanstack/table-core/dist/core/rows/coreRowsFeature.utils.js
-function pCe(e) {
+function gCe(e) {
let t = e.table.getRowsInDisplayOrder(), n = e._displayIndexCache;
return t[n] === e ? n : -1;
}
-function mCe(e) {
- let t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? fq(e, t).rows : t.rows;
+function _Ce(e) {
+ let t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? mq(e, t).rows : t.rows;
for (let e = 0; e < n.length; e++) n[e]._displayIndexCache = e;
return n;
}
-function hCe(e, t) {
- if (ZK(e._valuesCache, t)) return e._valuesCache[t];
+function vCe(e, t) {
+ if ($K(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 gCe(e, t) {
- if (ZK(e._uniqueValuesCache, t)) return e._uniqueValuesCache[t];
+function yCe(e, t) {
+ if ($K(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 _Ce(e, t) {
+function bCe(e, t) {
return e.getValue(t) ?? e.table.options.renderFallbackValue;
}
-function vCe(e) {
- return mSe(e.subRows, (e) => e.subRows);
+function xCe(e) {
+ return _Se(e.subRows, (e) => e.subRows);
}
-function yCe(e) {
+function SCe(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 bCe(e) {
+function CCe(e) {
if (e.parentId) return e.table.getCoreRowModel().rowsById[e.parentId] ?? e.table.getRow(e.parentId, !0);
}
-function xCe(e) {
+function wCe(e) {
let t = [], n = e;
for (;;) {
let e = n.getParentRow();
@@ -59588,77 +59601,77 @@ function xCe(e) {
}
return t.reverse();
}
-function SCe(e) {
+function TCe(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 = fCe(a, e, e.table), n.set(a, o)), r[i] = o;
+ o || (o = hCe(a, e, e.table), n.set(a, o)), r[i] = o;
}
return r;
}
-function CCe(e) {
- let t = XK(), n = e.getAllCells();
+function ECe(e) {
+ let t = QK(), n = e.getAllCells();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.column.id] = r;
}
return t;
}
-function wCe(e, t, n, r) {
+function DCe(e, t, n, r) {
return t.options.getRowId?.(e, n, r) ?? (r ? `${r.id}.${n}` : String(n));
}
-function TCe(e, t, n) {
+function OCe(e, t, n) {
let r = (n ? e.getPrePaginatedRowModel() : e.getRowModel()).rowsById[t];
if (!r && (r = e.getCoreRowModel().rowsById[t], !r)) throw Error();
return r;
}
// node_modules/@tanstack/table-core/dist/core/rows/coreRowsFeature.js
-var ECe = {
+var kCe = {
assignRowPrototype: (e, t) => {
- sq("coreRowsFeature", e, t, {
- row_getDisplayIndex: { fn: (e) => pCe(e) },
+ lq("coreRowsFeature", e, t, {
+ row_getDisplayIndex: { fn: (e) => gCe(e) },
row_getAllCellsByColumnId: {
- fn: (e) => CCe(e),
+ fn: (e) => ECe(e),
memoDeps: (e) => [e.getAllCells()]
},
row_getAllCells: {
- fn: (e) => SCe(e),
+ fn: (e) => TCe(e),
memoDeps: (e) => [e.table.getAllLeafColumns()]
},
row_getLeafRows: {
- fn: (e) => vCe(e),
+ fn: (e) => xCe(e),
memoDeps: (e) => [e.subRows]
},
- row_getParentRow: { fn: (e) => bCe(e) },
- row_getParentRows: { fn: (e) => xCe(e) },
- row_getUniqueValues: { fn: (e, t) => gCe(e, t) },
- row_getValue: { fn: (e, t) => hCe(e, t) },
- row_renderValue: { fn: (e, t) => _Ce(e, t) }
+ row_getParentRow: { fn: (e) => CCe(e) },
+ row_getParentRows: { fn: (e) => wCe(e) },
+ row_getUniqueValues: { fn: (e, t) => yCe(e, t) },
+ row_getValue: { fn: (e, t) => vCe(e, t) },
+ row_renderValue: { fn: (e, t) => bCe(e, t) }
});
},
constructTableAPIs: (e) => {
- oq("coreRowsFeature", e, {
+ cq("coreRowsFeature", e, {
table_getRowsInDisplayOrder: {
- fn: () => mCe(e),
+ fn: () => _Ce(e),
memoDeps: () => [
e.getPrePaginatedRowModel().rows,
e.options.paginateExpandedRows,
e.options.paginateExpandedRows === !1 ? e.atoms.expanded?.get() : void 0
]
},
- table_getRowId: { fn: (t, n, r) => wCe(t, e, n, r) },
- table_getRow: { fn: (t, n) => TCe(e, t, n) },
+ table_getRowId: { fn: (t, n, r) => DCe(t, e, n, r) },
+ table_getRow: { fn: (t, n) => OCe(e, t, n) },
table_getMaxSubRowDepth: {
- fn: () => yCe(e),
+ fn: () => SCe(e),
memoDeps: () => [e.getCoreRowModel()]
}
});
}
};
// node_modules/@tanstack/table-core/dist/core/table/coreTablesFeature.utils.js
-function xq(e, t, n = (e, t) => e === t) {
+function Cq(e, t, n = (e, t) => e === t) {
let r = t === void 0 ? e.options.state : t;
e._reactivity.batch(() => {
if (r) for (let t in r) {
@@ -59669,13 +59682,13 @@ function xq(e, t, n = (e, t) => e === t) {
}
});
}
-function Sq(e, t, n = (e, t) => e === t) {
+function wq(e, t, n = (e, t) => e === t) {
e._reactivity.batch(() => {
- xq(e, t, n), e._reactivity.commit?.();
+ Cq(e, t, n), e._reactivity.commit?.();
});
}
-function DCe(e) {
- let t = JK(e.initialState);
+function ACe(e) {
+ let t = XK(e.initialState);
e._reactivity.batch(() => {
let n = Object.keys(t);
for (let r = 0; r < n.length; r++) {
@@ -59686,7 +59699,7 @@ function DCe(e) {
let n = Object.values(e._features);
for (let t = 0; t < n.length; t++) n[t].resetTableInstanceData?.(e);
}
-function OCe(e, t) {
+function jCe(e, t) {
let { features: n, atoms: r, initialState: i } = e.options;
if (!e.options.mergeOptions) return {
...e.options,
@@ -59718,26 +59731,26 @@ function OCe(e, t) {
}
});
}
-function Cq(e, t, n) {
- let r = OCe(e, qK(t, e.options));
- e.optionsStore ? e.optionsStore.set(() => r) : e.options = r, n?.syncExternalState !== !1 && Sq(e, r.state ?? null);
+function Tq(e, t, n) {
+ let r = jCe(e, YK(t, e.options));
+ e.optionsStore ? e.optionsStore.set(() => r) : e.options = r, n?.syncExternalState !== !1 && wq(e, r.state ?? null);
}
// node_modules/@tanstack/table-core/dist/core/coreFeatures.js
-var kCe = {
- coreCellsFeature: ySe,
- coreColumnsFeature: FSe,
- coreHeadersFeature: qSe,
- coreRowModelsFeature: uCe,
- coreRowsFeature: ECe,
+var MCe = {
+ coreCellsFeature: SSe,
+ coreColumnsFeature: RSe,
+ coreHeadersFeature: XSe,
+ coreRowModelsFeature: pCe,
+ coreRowsFeature: kCe,
coreTablesFeature: { constructTableAPIs: (e) => {
- oq("coreTablesFeature", e, {
- table_reset: { fn: () => DCe(e) },
- table_setOptions: { fn: (t) => Cq(e, t) }
+ cq("coreTablesFeature", e, {
+ table_reset: { fn: () => ACe(e) },
+ table_setOptions: { fn: (t) => Tq(e, t) }
});
} }
};
// node_modules/@tanstack/table-core/dist/helpers/columnHelper.js
-function wq() {
+function Eq() {
return {
accessor: (e, t) => typeof e == "function" ? {
...t,
@@ -59752,21 +59765,21 @@ function wq() {
};
}
// node_modules/@tanstack/table-core/dist/helpers/tableFeatures.js
-function Tq(e) {
+function Dq(e) {
return e;
}
// node_modules/@tanstack/table-core/dist/core/table/constructTable.js
-function ACe(e, t = {}) {
+function NCe(e, t = {}) {
return Object.values(e).forEach((e) => {
t = e.getInitialState?.(t) ?? t;
- }), JK(t);
+ }), XK(t);
}
-function jCe(e) {
+function PCe(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: {
- ...kCe,
+ ...MCe,
..._
},
_headerGroupInstanceInitFns: [],
@@ -59804,7 +59817,7 @@ function jCe(e) {
set(e) {
v.optionsStore.set(() => e);
}
- })) : v.options = b, v.initialState = ACe(v._features, v.options.initialState);
+ })) : v.options = b, v.initialState = NCe(v._features, v.options.initialState);
let x = Object.keys(v.initialState);
for (let e = 0; e < x.length; e++) {
let n = x[e];
@@ -59812,14 +59825,14 @@ function jCe(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 && ZK(i, n)) {
+ if (i && $K(i, n)) {
let e = i[n];
return e === void 0 ? v.initialState[n] : e;
}
return r;
}, { debugName: `table/atoms/${n}` });
}
- xq(v), v.store = sSe(t.createReadonlyAtom(() => {
+ Cq(v), v.store = uSe(t.createReadonlyAtom(() => {
let e = {};
for (let t = 0; t < x.length; t++) {
let n = x[t];
@@ -59827,7 +59840,7 @@ function jCe(e) {
}
return e;
}, {
- compare: UK,
+ compare: GK,
debugName: "table/store"
}));
for (let e = 0; e < y.length; e++) {
@@ -59837,107 +59850,107 @@ function jCe(e) {
return v;
}
// node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.utils.js
-function MCe() {
- return XK();
+function FCe() {
+ return QK();
}
-function Eq(e, t) {
- Oq(e) && Aq(e.table, (n) => {
- let r = Object.assign(XK(), n), i = t ?? !cq(e, "getIsVisible", Dq), a = e.getLeafColumns();
+function Oq(e, t) {
+ Aq(e) && Mq(e.table, (n) => {
+ let r = Object.assign(QK(), n), i = t ?? !uq(e, "getIsVisible", kq), a = e.getLeafColumns();
for (let e = 0; e < a.length; e++) {
let t = a[e];
- Oq(t) && (r[t.id] = i);
+ Aq(t) && (r[t.id] = i);
}
return r;
});
}
-function Dq(e) {
+function kq(e) {
let t = e.table.atoms.columnVisibility?.get();
if (!t) return !0;
let n = e.columns;
- return n.length ? n.some((e) => cq(e, "getIsVisible", Dq)) : (ZK(t, e.id) ? t[e.id] : void 0) ?? !0;
+ return n.length ? n.some((e) => uq(e, "getIsVisible", kq)) : ($K(t, e.id) ? t[e.id] : void 0) ?? !0;
}
-function Oq(e) {
+function Aq(e) {
return (e.columnDef.enableHiding ?? !0) && (e.table.options.enableHiding ?? !0);
}
-function NCe(e) {
+function ICe(e) {
return (t) => {
- Eq(e, t.target.checked);
+ Oq(e, t.target.checked);
};
}
-function PCe(e) {
+function LCe(e) {
let t = e.getAllCells(), n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e];
- cq(r.column, "getIsVisible", Dq) && n.push(r);
+ uq(r.column, "getIsVisible", kq) && n.push(r);
}
- return dq(e.table, n, (e) => e.column.id, () => cq(e, "getVisibleCellsByColumnId", kq));
+ return pq(e.table, n, (e) => e.column.id, () => uq(e, "getVisibleCellsByColumnId", jq));
}
-function kq(e) {
- let t = XK(), n = e.getAllCells();
+function jq(e) {
+ let t = QK(), n = e.getAllCells();
for (let e = 0; e < n.length; e++) {
let r = n[e];
- cq(r.column, "getIsVisible", Dq) && (t[r.column.id] = r);
+ uq(r.column, "getIsVisible", kq) && (t[r.column.id] = r);
}
return t;
}
-function FCe(e) {
- return e.getAllFlatColumns().filter((e) => cq(e, "getIsVisible", Dq));
+function RCe(e) {
+ return e.getAllFlatColumns().filter((e) => uq(e, "getIsVisible", kq));
}
-function ICe(e) {
- return e.getAllLeafColumns().filter((e) => cq(e, "getIsVisible", Dq));
+function zCe(e) {
+ return e.getAllLeafColumns().filter((e) => uq(e, "getIsVisible", kq));
}
-function Aq(e, t) {
- nq(e, "columnVisibility", t);
+function Mq(e, t) {
+ iq(e, "columnVisibility", t);
}
-function LCe(e, t) {
- Aq(e, t ? XK() : Object.assign(XK(), JK(e.initialState.columnVisibility ?? {})));
+function BCe(e, t) {
+ Mq(e, t ? QK() : Object.assign(QK(), XK(e.initialState.columnVisibility ?? {})));
}
-function jq(e, t) {
- t ??= !Mq(e);
- let n = XK(), r = e.getAllLeafColumns();
+function Nq(e, t) {
+ t ??= !Pq(e);
+ let n = QK(), r = e.getAllLeafColumns();
for (let e = 0; e < r.length; e++) {
let i = r[e];
- n[i.id] = t || !Oq(i);
+ n[i.id] = t || !Aq(i);
}
- Aq(e, n);
+ Mq(e, n);
}
-function Mq(e) {
- return !e.getAllLeafColumns().some((e) => !cq(e, "getIsVisible", Dq));
+function Pq(e) {
+ return !e.getAllLeafColumns().some((e) => !uq(e, "getIsVisible", kq));
}
-function RCe(e) {
- return e.getAllLeafColumns().some((e) => cq(e, "getIsVisible", Dq));
+function VCe(e) {
+ return e.getAllLeafColumns().some((e) => uq(e, "getIsVisible", kq));
}
-function zCe(e) {
+function HCe(e) {
return (t) => {
- jq(e, t.target.checked);
+ Nq(e, t.target.checked);
};
}
// node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.js
-var Nq = {
+var Fq = {
getInitialState: (e) => ({
- columnVisibility: MCe(),
+ columnVisibility: FCe(),
...e
}),
- getDefaultTableOptions: (e) => ({ onColumnVisibilityChange: QK("columnVisibility", e) }),
+ getDefaultTableOptions: (e) => ({ onColumnVisibilityChange: eq("columnVisibility", e) }),
assignColumnPrototype: (e, t) => {
- sq("columnVisibilityFeature", e, t, {
+ lq("columnVisibilityFeature", e, t, {
column_getIsVisible: {
- fn: (e) => Dq(e),
+ fn: (e) => kq(e),
memoDeps: (e) => [
t.options.columns,
t.atoms.columnVisibility?.get(),
e.columns
]
},
- column_getCanHide: { fn: (e) => Oq(e) },
- column_getToggleVisibilityHandler: { fn: (e) => NCe(e) },
- column_toggleVisibility: { fn: (e, t) => Eq(e, t) }
+ column_getCanHide: { fn: (e) => Aq(e) },
+ column_getToggleVisibilityHandler: { fn: (e) => ICe(e) },
+ column_toggleVisibility: { fn: (e, t) => Oq(e, t) }
});
},
assignRowPrototype: (e, t) => {
- sq("columnVisibilityFeature", e, t, {
+ lq("columnVisibilityFeature", e, t, {
row_getVisibleCells: {
- fn: (e) => PCe(e),
+ fn: (e) => LCe(e),
memoDeps: (e) => [
e.getAllCells(),
t.atoms.columnPinning?.get(),
@@ -59945,15 +59958,15 @@ var Nq = {
]
},
row_getVisibleCellsByColumnId: {
- fn: (e) => kq(e),
+ fn: (e) => jq(e),
memoDeps: (e) => [e.getAllCells(), t.atoms.columnVisibility?.get()]
}
});
},
constructTableAPIs: (e) => {
- oq("columnVisibilityFeature", e, {
+ cq("columnVisibilityFeature", e, {
table_getVisibleFlatColumns: {
- fn: () => FCe(e),
+ fn: () => RCe(e),
memoDeps: () => [
e.atoms.columnVisibility?.get(),
e.atoms.columnOrder?.get(),
@@ -59963,7 +59976,7 @@ var Nq = {
]
},
table_getVisibleLeafColumns: {
- fn: () => ICe(e),
+ fn: () => zCe(e),
memoDeps: () => [
e.atoms.columnVisibility?.get(),
e.atoms.columnOrder?.get(),
@@ -59972,51 +59985,51 @@ var Nq = {
e.options.groupedColumnMode
]
},
- table_setColumnVisibility: { fn: (t) => Aq(e, t) },
- table_resetColumnVisibility: { fn: (t) => LCe(e, t) },
- table_toggleAllColumnsVisible: { fn: (t) => jq(e, t) },
- table_getIsAllColumnsVisible: { fn: () => Mq(e) },
- table_getIsSomeColumnsVisible: { fn: () => RCe(e) },
- table_getToggleAllColumnsVisibilityHandler: { fn: () => zCe(e) }
+ table_setColumnVisibility: { fn: (t) => Mq(e, t) },
+ table_resetColumnVisibility: { fn: (t) => BCe(e, t) },
+ table_toggleAllColumnsVisible: { fn: (t) => Nq(e, t) },
+ table_getIsAllColumnsVisible: { fn: () => Pq(e) },
+ table_getIsSomeColumnsVisible: { fn: () => VCe(e) },
+ table_getToggleAllColumnsVisibilityHandler: { fn: () => HCe(e) }
});
}
-}, Pq = 0, Fq = 10;
-function Iq() {
+}, Iq = 0, Lq = 10;
+function Rq() {
return {
- pageIndex: Pq,
- pageSize: Fq
+ pageIndex: Iq,
+ pageSize: Lq
};
}
-function BCe(e) {
+function UCe(e) {
if (e.options.autoResetAll ?? e.options.autoResetPageIndex ?? !e.options.manualPagination) {
- if ((e.atoms.pagination?.get()?.pageIndex ?? Pq) === Pq) return;
- zq(e, !0);
+ if ((e.atoms.pagination?.get()?.pageIndex ?? Iq) === Iq) return;
+ Vq(e, !0);
}
}
-function Lq(e, t) {
- nq(e, "pagination", t);
+function zq(e, t) {
+ iq(e, "pagination", t);
}
-function VCe(e, t) {
- Lq(e, t ? Iq() : JK(e.initialState.pagination ?? Iq()));
+function WCe(e, t) {
+ zq(e, t ? Rq() : XK(e.initialState.pagination ?? Rq()));
}
-function Rq(e, t) {
- Lq(e, (n) => {
- let r = qK(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
+function Bq(e, t) {
+ zq(e, (n) => {
+ let r = YK(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
};
});
}
-function zq(e, t) {
- Rq(e, t ? Pq : e.initialState.pagination?.pageIndex ?? Pq);
+function Vq(e, t) {
+ Bq(e, t ? Iq : e.initialState.pagination?.pageIndex ?? Iq);
}
-function HCe(e, t) {
- Bq(e, t ? Fq : e.initialState.pagination?.pageSize ?? Fq);
+function GCe(e, t) {
+ Hq(e, t ? Lq : e.initialState.pagination?.pageSize ?? Lq);
}
-function Bq(e, t) {
- Lq(e, (e) => {
- let n = Math.max(1, qK(t, e.pageSize)), r = e.pageSize === Infinity ? 0 : e.pageSize * e.pageIndex, i = n === Infinity ? 0 : Math.floor(r / n);
+function Hq(e, t) {
+ zq(e, (e) => {
+ let n = Math.max(1, YK(t, e.pageSize)), r = e.pageSize === Infinity ? 0 : e.pageSize * e.pageIndex, i = n === Infinity ? 0 : Math.floor(r / n);
return {
...e,
pageIndex: i,
@@ -60024,231 +60037,231 @@ function Bq(e, t) {
};
});
}
-function UCe(e) {
- let t = Vq(e), n = [];
+function KCe(e) {
+ let t = Uq(e), n = [];
return t && t > 0 && (n = [...Array(t)].fill(null).map((e, t) => t)), n;
}
-function WCe(e) {
+function qCe(e) {
return (e.atoms.pagination?.get()?.pageIndex ?? 0) > 0;
}
-function GCe(e) {
- let t = e.atoms.pagination?.get()?.pageIndex ?? Pq, n = Vq(e);
+function JCe(e) {
+ let t = e.atoms.pagination?.get()?.pageIndex ?? Iq, n = Uq(e);
return n === -1 || n !== 0 && t < n - 1;
}
-function KCe(e) {
- let t = e.atoms.pagination?.get()?.pageIndex ?? Pq, n = Vq(e);
+function YCe(e) {
+ let t = e.atoms.pagination?.get()?.pageIndex ?? Iq, n = Uq(e);
return Number.isFinite(n) && n > 0 && t < n - 1;
}
-function qCe(e) {
- return Rq(e, (e) => e - 1);
+function XCe(e) {
+ return Bq(e, (e) => e - 1);
}
-function JCe(e) {
- return Rq(e, (e) => e + 1);
+function ZCe(e) {
+ return Bq(e, (e) => e + 1);
}
-function YCe(e) {
- return Rq(e, 0);
+function QCe(e) {
+ return Bq(e, 0);
}
-function XCe(e) {
- let t = Vq(e);
- if (!(!Number.isFinite(t) || t <= 0)) return Rq(e, t - 1);
+function $Ce(e) {
+ let t = Uq(e);
+ if (!(!Number.isFinite(t) || t <= 0)) return Bq(e, t - 1);
}
-function Vq(e) {
+function Uq(e) {
let t = e.options.pageCount;
if (t != null) return t;
- let n = Hq(e), r = e.atoms.pagination?.get()?.pageSize ?? Fq;
+ let n = Wq(e), r = e.atoms.pagination?.get()?.pageSize ?? Lq;
return r === Infinity && Number.isFinite(n) && n > 0 ? 1 : Math.ceil(n / r);
}
-function Hq(e) {
+function Wq(e) {
return e.options.rowCount ?? e.getPrePaginatedRowModel().rows.length;
}
// node_modules/@tanstack/table-core/dist/features/row-pagination/rowPaginationFeature.js
-var Uq = {
+var Gq = {
getInitialState: (e) => ({
...e,
pagination: {
- ...Iq(),
+ ...Rq(),
...e.pagination
}
}),
- getDefaultTableOptions: (e) => ({ onPaginationChange: QK("pagination", e) }),
+ getDefaultTableOptions: (e) => ({ onPaginationChange: eq("pagination", e) }),
constructTableAPIs: (e) => {
- oq("rowPaginationFeature", e, {
- table_autoResetPageIndex: { fn: () => BCe(e) },
- table_setPagination: { fn: (t) => Lq(e, t) },
- table_resetPagination: { fn: (t) => VCe(e, t) },
- table_setPageIndex: { fn: (t) => Rq(e, t) },
- table_resetPageIndex: { fn: (t) => zq(e, t) },
- table_setPageSize: { fn: (t) => Bq(e, t) },
- table_getPageCount: { fn: () => Vq(e) },
- table_resetPageSize: { fn: (t) => HCe(e, t) },
- table_getPageOptions: { fn: () => UCe(e) },
- table_getCanPreviousPage: { fn: () => WCe(e) },
- table_getCanNextPage: { fn: () => GCe(e) },
- table_getCanLastPage: { fn: () => KCe(e) },
- table_previousPage: { fn: () => qCe(e) },
- table_nextPage: { fn: () => JCe(e) },
- table_firstPage: { fn: () => YCe(e) },
- table_lastPage: { fn: () => XCe(e) },
- table_getRowCount: { fn: () => Hq(e) }
+ cq("rowPaginationFeature", e, {
+ table_autoResetPageIndex: { fn: () => UCe(e) },
+ table_setPagination: { fn: (t) => zq(e, t) },
+ table_resetPagination: { fn: (t) => WCe(e, t) },
+ table_setPageIndex: { fn: (t) => Bq(e, t) },
+ table_resetPageIndex: { fn: (t) => Vq(e, t) },
+ table_setPageSize: { fn: (t) => Hq(e, t) },
+ table_getPageCount: { fn: () => Uq(e) },
+ table_resetPageSize: { fn: (t) => GCe(e, t) },
+ table_getPageOptions: { fn: () => KCe(e) },
+ table_getCanPreviousPage: { fn: () => qCe(e) },
+ table_getCanNextPage: { fn: () => JCe(e) },
+ table_getCanLastPage: { fn: () => YCe(e) },
+ table_previousPage: { fn: () => XCe(e) },
+ table_nextPage: { fn: () => ZCe(e) },
+ table_firstPage: { fn: () => QCe(e) },
+ table_lastPage: { fn: () => $Ce(e) },
+ table_getRowCount: { fn: () => Wq(e) }
});
}
};
// node_modules/@tanstack/table-core/dist/features/row-selection/rowSelectionFeature.utils.js
-function ZCe() {
- return XK();
+function ewe() {
+ return QK();
}
-function Wq(e, t) {
+function Kq(e, t) {
e.options.onRowSelectionChange?.(t);
}
-function QCe(e, t) {
- e._lastSelectedRowId = null, Wq(e, t ? XK() : Object.assign(XK(), JK(e.initialState.rowSelection ?? {})));
+function twe(e, t) {
+ e._lastSelectedRowId = null, Kq(e, t ? QK() : Object.assign(QK(), XK(e.initialState.rowSelection ?? {})));
}
-function Gq(e, t, n) {
- e._lastSelectedRowId = null, Wq(e, (r) => {
- if (t = t === void 0 ? !cq(e, "getIsAllRowsSelected", Jq) : t, n?.deselectAll && !t) return XK();
- let i = Object.assign(XK(), r), a = e.getPreGroupedRowModel().flatRows;
+function qq(e, t, n) {
+ e._lastSelectedRowId = null, Kq(e, (r) => {
+ if (t = t === void 0 ? !uq(e, "getIsAllRowsSelected", Xq) : t, n?.deselectAll && !t) return QK();
+ let i = Object.assign(QK(), r), a = e.getPreGroupedRowModel().flatRows;
if (t) {
let e = /* @__PURE__ */ new Map();
a.forEach((t) => {
- iJ(t, e) && (i[t.id] = !0);
+ oJ(t, e) && (i[t.id] = !0);
});
} else a.forEach((e) => {
- eJ(e) && delete i[e.id];
+ nJ(e) && delete i[e.id];
});
return i;
});
}
-function Kq(e, t, n) {
- e._lastSelectedRowId = null, Wq(e, (r) => {
- let i = t === void 0 ? !cq(e, "getIsAllPageRowsSelected", Yq) : t;
- if (n?.deselectAll && !i) return XK();
- let a = Object.assign(XK(), r);
+function Jq(e, t, n) {
+ e._lastSelectedRowId = null, Kq(e, (r) => {
+ let i = t === void 0 ? !uq(e, "getIsAllPageRowsSelected", Zq) : t;
+ if (n?.deselectAll && !i) return QK();
+ let a = Object.assign(QK(), r);
return e.getRowModel().rows.forEach((t) => {
- rJ(a, t.id, i, !0, e, !0);
+ aJ(a, t.id, i, !0, e, !0);
}), a;
});
}
-function $Ce(e) {
+function nwe(e) {
return e.getCoreRowModel();
}
-function ewe(e) {
+function rwe(e) {
let t = e.getCoreRowModel();
- return cq(e, "getIsSomeRowsSelected", Xq) ? sJ(t, e) : {
+ return uq(e, "getIsSomeRowsSelected", Qq) ? lJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: XK()
+ rowsById: QK()
};
}
-function twe(e) {
+function iwe(e) {
let t = e.getFilteredRowModel();
- return cq(e, "getIsSomeRowsSelected", Xq) ? sJ(t, e) : {
+ return uq(e, "getIsSomeRowsSelected", Qq) ? lJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: XK()
+ rowsById: QK()
};
}
-function nwe(e) {
+function awe(e) {
let t = e.getSortedRowModel();
- return cq(e, "getIsSomeRowsSelected", Xq) ? sJ(t, e) : {
+ return uq(e, "getIsSomeRowsSelected", Qq) ? lJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: XK()
+ rowsById: QK()
};
}
-function qq(e) {
+function Yq(e) {
return Object.keys(e.atoms.rowSelection?.get() ?? {});
}
-function Jq(e) {
+function Xq(e) {
let t = e.getFilteredRowModel().flatRows, n = e.atoms.rowSelection?.get() ?? {}, r = !!(t.length && Object.keys(n).length);
if (r) {
let e = /* @__PURE__ */ new Map();
- t.some((t) => !cJ(t, n) && iJ(t, e)) && (r = !1);
+ t.some((t) => !uJ(t, n) && oJ(t, e)) && (r = !1);
}
return r;
}
-function Yq(e) {
+function Zq(e) {
let t = e.getPaginatedRowModel().flatRows, n = e.atoms.rowSelection?.get() ?? {}, r = /* @__PURE__ */ new Map(), i = !1;
for (let e = 0; e < t.length; e++) {
let a = t[e];
- if (cJ(a, n)) !i && iJ(a, r) && (i = !0);
- else if (iJ(a, r)) return !1;
+ if (uJ(a, n)) !i && oJ(a, r) && (i = !0);
+ else if (oJ(a, r)) return !1;
}
return i;
}
-function Xq(e) {
- return cq(e, "getSelectedRowIds", qq).length > 0;
+function Qq(e) {
+ return uq(e, "getSelectedRowIds", Yq).length > 0;
}
-function rwe(e) {
- return e.getPaginatedRowModel().flatRows.filter((e) => eJ(e)).some((e) => Qq(e) || cq(e, "getIsSomeSelected", $q));
+function owe(e) {
+ return e.getPaginatedRowModel().flatRows.filter((e) => nJ(e)).some((e) => eJ(e) || uq(e, "getIsSomeSelected", tJ));
}
-function iwe(e) {
+function swe(e) {
return (t) => {
- Gq(e, t.target.checked);
+ qq(e, t.target.checked);
};
}
-function awe(e) {
+function cwe(e) {
return (t) => {
- Kq(e, t.target.checked);
+ Jq(e, t.target.checked);
};
}
-function Zq(e, t, n) {
- let r = Qq(e);
- Wq(e.table, (i) => {
+function $q(e, t, n) {
+ let r = eJ(e);
+ Kq(e.table, (i) => {
t = t === void 0 ? !r : t;
- let a = Object.assign(XK(), i);
- return rJ(a, e.id, t, (n?.selectChildren ?? !0) && nJ(e), e.table), !t && n?.deselectParents && aJ(a, e), a;
+ let a = Object.assign(QK(), i);
+ return aJ(a, e.id, t, (n?.selectChildren ?? !0) && iJ(e), e.table), !t && n?.deselectParents && sJ(a, e), a;
});
}
-function Qq(e) {
- return cJ(e, e.table.atoms.rowSelection?.get() ?? {});
+function eJ(e) {
+ return uJ(e, e.table.atoms.rowSelection?.get() ?? {});
}
-function $q(e) {
- return lJ(e) === "some";
+function tJ(e) {
+ return dJ(e) === "some";
}
-function owe(e) {
- return lJ(e) === "all";
+function lwe(e) {
+ return dJ(e) === "all";
}
-function eJ(e) {
+function nJ(e) {
let t = e.table.options;
return typeof t.enableRowSelection == "function" ? t.enableRowSelection(e) : t.enableRowSelection ?? !0;
}
-function tJ(e) {
+function rJ(e) {
let t = e.table.options;
return typeof t.enableSubRowSelection == "function" ? t.enableSubRowSelection(e) : t.enableSubRowSelection ?? !0;
}
-function nJ(e) {
+function iJ(e) {
let t = e.table.options;
return typeof t.enableMultiRowSelection == "function" ? t.enableMultiRowSelection(e) : t.enableMultiRowSelection ?? !0;
}
-function swe(e, t) {
- let n = eJ(e);
+function uwe(e, t) {
+ let n = nJ(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 && nJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1) && cwe(e, s, o, t) || Zq(e, o, t), a._lastSelectedRowId = e.id;
+ a.options.enableRowRangeSelection !== !1 && s !== null && iJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1) && dwe(e, s, o, t) || $q(e, o, t), a._lastSelectedRowId = e.id;
};
}
-function cwe(e, t, n, r) {
+function dwe(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 || !nJ(s) || !nJ(e)) return !1;
+ if (c < 0 || l < 0 || c >= o.length || l >= o.length || u?.id !== s.id || d?.id !== e.id || !iJ(s) || !iJ(e)) return !1;
let f = Math.min(c, l), p = Math.max(c, l);
- return Wq(a, (e) => {
- let t = Object.assign(XK(), e);
+ return Kq(a, (e) => {
+ let t = Object.assign(QK(), e);
for (let e = f; e <= p; e++) {
let s = o[e];
- eJ(s) && nJ(s) && (rJ(t, s.id, n, i, a), !n && r?.deselectParents && aJ(t, s));
+ nJ(s) && iJ(s) && (aJ(t, s.id, n, i, a), !n && r?.deselectParents && sJ(t, s));
}
return t;
}), !0;
}
-function rJ(e, t, n, r, i, a) {
+function aJ(e, t, n, r, i, a) {
let o = i.getRow(t, !0);
- n ? (nJ(o) || Object.keys(e).forEach((t) => delete e[t]), eJ(o) && (e[t] = !0)) : (!a || eJ(o)) && delete e[t], r && o.subRows.length && tJ(o) && o.subRows.forEach((t) => rJ(e, t.id, n, r, i, a));
+ n ? (iJ(o) || Object.keys(e).forEach((t) => delete e[t]), nJ(o) && (e[t] = !0)) : (!a || nJ(o)) && delete e[t], r && o.subRows.length && rJ(o) && o.subRows.forEach((t) => aJ(e, t.id, n, r, i, a));
}
-function iJ(e, t) {
- if (!eJ(e)) return !1;
+function oJ(e, t) {
+ if (!nJ(e)) return !1;
let n = e.table;
if (n.options.enableSubRowSelection === !0) return !0;
let r = e.parentId;
@@ -60264,7 +60277,7 @@ function iJ(e, t) {
}
o.push(c);
let r = a[c] ?? n.getRow(c, !0);
- if (!tJ(r)) {
+ if (!rJ(r)) {
s = !1;
break;
}
@@ -60272,50 +60285,50 @@ function iJ(e, t) {
}
return o.forEach((e) => t.set(e, s)), s;
}
-function aJ(e, t) {
+function sJ(e, t) {
let n = t.table.getCoreRowModel().rowsById, r = t.parentId;
for (; r !== void 0;) delete e[r], r = (n[r] ?? t.table.getRow(r, !0)).parentId;
}
-function oJ(e, t, n, r) {
+function cJ(e, t, n, r) {
let i = [];
for (let a = 0; a < e.length; a++) {
- let o = e[a], s = cJ(o, t);
+ let o = e[a], s = uJ(o, t);
if (s && (n.push(o), r[o.id] = o), o.subRows.length) {
- let e = oJ(o.subRows, t, n, r);
+ let e = cJ(o.subRows, t, n, r);
if (s) {
let t = Object.create(Object.getPrototypeOf(o));
- YK(t, o), t.subRows = e, i.push(t);
+ ZK(t, o), t.subRows = e, i.push(t);
}
} else s && i.push(o);
}
return i;
}
-function sJ(e, t) {
- let n = [], r = XK(), i = t.atoms.rowSelection?.get() ?? {};
+function lJ(e, t) {
+ let n = [], r = QK(), i = t.atoms.rowSelection?.get() ?? {};
return {
- rows: oJ(e.rows, i, n, r),
+ rows: cJ(e.rows, i, n, r),
flatRows: n,
rowsById: r
};
}
-function cJ(e, t) {
- return !!(ZK(t, e.id) && t[e.id]);
+function uJ(e, t) {
+ return !!($K(t, e.id) && t[e.id]);
}
-function lJ(e) {
+function dJ(e) {
if (!e.subRows.length) return !1;
let t = e.table.atoms.rowSelection?.get() ?? {}, n = !1, r = !0, i = !1;
for (let a = 0; a < e.subRows.length; a++) {
let o = e.subRows[a];
if (n && !r) break;
- if (eJ(o) && (i = !0, cJ(o, t) ? n = !0 : r = !1), o.subRows.length) {
- let e = lJ(o);
+ if (nJ(o) && (i = !0, uJ(o, t) ? n = !0 : r = !1), o.subRows.length) {
+ let e = dJ(o);
e === "all" ? (n = !0, i = !0) : e === "some" ? (n = !0, r = !1, i = !0) : r = !1;
}
}
return i ? r ? "all" : n ? "some" : !1 : !1;
}
// node_modules/@tanstack/table-core/dist/features/row-selection/rowSelectionFeature.js
-var uJ = {
+var fJ = {
initTableInstanceData: (e) => {
e._lastSelectedRowId = null;
},
@@ -60323,11 +60336,11 @@ var uJ = {
e._lastSelectedRowId = null;
},
getInitialState: (e) => ({
- rowSelection: ZCe(),
+ rowSelection: ewe(),
...e
}),
getDefaultTableOptions: (e) => ({
- onRowSelectionChange: QK("rowSelection", e),
+ onRowSelectionChange: eq("rowSelection", e),
enableRowSelection: !0,
enableMultiRowSelection: !0,
enableRowRangeSelection: !0,
@@ -60338,11 +60351,11 @@ var uJ = {
}
}),
assignRowPrototype: (e, t) => {
- sq("rowSelectionFeature", e, t, {
- row_toggleSelected: { fn: (e, t, n) => Zq(e, t, n) },
- row_getIsSelected: { fn: (e) => Qq(e) },
+ lq("rowSelectionFeature", e, t, {
+ row_toggleSelected: { fn: (e, t, n) => $q(e, t, n) },
+ row_getIsSelected: { fn: (e) => eJ(e) },
row_getIsSomeSelected: {
- fn: (e) => $q(e),
+ fn: (e) => tJ(e),
memoDeps: (e) => [
e.subRows,
e.table.atoms.rowSelection?.get(),
@@ -60350,44 +60363,44 @@ var uJ = {
]
},
row_getIsAllSubRowsSelected: {
- fn: (e) => owe(e),
+ fn: (e) => lwe(e),
memoDeps: (e) => [
e.subRows,
e.table.atoms.rowSelection?.get(),
e.table.options.enableRowSelection
]
},
- row_getCanSelect: { fn: (e) => eJ(e) },
- row_getCanSelectSubRows: { fn: (e) => tJ(e) },
- row_getCanMultiSelect: { fn: (e) => nJ(e) },
- row_getToggleSelectedHandler: { fn: (e, t) => swe(e, t) }
+ row_getCanSelect: { fn: (e) => nJ(e) },
+ row_getCanSelectSubRows: { fn: (e) => rJ(e) },
+ row_getCanMultiSelect: { fn: (e) => iJ(e) },
+ row_getToggleSelectedHandler: { fn: (e, t) => uwe(e, t) }
});
},
constructTableAPIs: (e) => {
- oq("rowSelectionFeature", e, {
- table_setRowSelection: { fn: (t) => Wq(e, t) },
- table_resetRowSelection: { fn: (t) => QCe(e, t) },
- table_toggleAllRowsSelected: { fn: (t, n) => Gq(e, t, n) },
- table_toggleAllPageRowsSelected: { fn: (t, n) => Kq(e, t, n) },
- table_getPreSelectedRowModel: { fn: () => $Ce(e) },
+ cq("rowSelectionFeature", e, {
+ table_setRowSelection: { fn: (t) => Kq(e, t) },
+ table_resetRowSelection: { fn: (t) => twe(e, t) },
+ table_toggleAllRowsSelected: { fn: (t, n) => qq(e, t, n) },
+ table_toggleAllPageRowsSelected: { fn: (t, n) => Jq(e, t, n) },
+ table_getPreSelectedRowModel: { fn: () => nwe(e) },
table_getSelectedRowModel: {
- fn: () => ewe(e),
+ fn: () => rwe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getCoreRowModel()]
},
table_getFilteredSelectedRowModel: {
- fn: () => twe(e),
+ fn: () => iwe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getFilteredRowModel()]
},
table_getGroupedSelectedRowModel: {
- fn: () => nwe(e),
+ fn: () => awe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getSortedRowModel()]
},
table_getSelectedRowIds: {
- fn: () => qq(e),
+ fn: () => Yq(e),
memoDeps: () => [e.atoms.rowSelection?.get()]
},
table_getIsAllRowsSelected: {
- fn: () => Jq(e),
+ fn: () => Xq(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getFilteredRowModel(),
@@ -60396,7 +60409,7 @@ var uJ = {
]
},
table_getIsAllPageRowsSelected: {
- fn: () => Yq(e),
+ fn: () => Zq(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getPaginatedRowModel(),
@@ -60405,48 +60418,48 @@ var uJ = {
]
},
table_getIsSomeRowsSelected: {
- fn: () => Xq(e),
+ fn: () => Qq(e),
memoDeps: () => [e.atoms.rowSelection?.get()]
},
table_getIsSomePageRowsSelected: {
- fn: () => rwe(e),
+ fn: () => owe(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getPaginatedRowModel(),
e.options.enableRowSelection
]
},
- table_getToggleAllRowsSelectedHandler: { fn: () => iwe(e) },
- table_getToggleAllPageRowsSelectedHandler: { fn: () => awe(e) }
+ table_getToggleAllRowsSelectedHandler: { fn: () => swe(e) },
+ table_getToggleAllPageRowsSelectedHandler: { fn: () => cwe(e) }
});
}
-}, lwe = /([0-9]+)/gm;
+}, fwe = /([0-9]+)/gm;
/* @__NO_SIDE_EFFECTS__ */
-function uwe(e) {
+function pwe(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 dJ = /* @__PURE__ */ uwe({ sort: (e, t) => dwe(e, t) });
-function dwe(e, t) {
+var pJ = /* @__PURE__ */ pwe({ sort: (e, t) => mwe(e, t) });
+function mwe(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
// node_modules/@tanstack/table-core/dist/features/row-sorting/rowSortingFeature.utils.js
-function fwe() {
+function hwe() {
return [];
}
-function fJ(e, t) {
- nq(e, "sorting", t);
+function mJ(e, t) {
+ iq(e, "sorting", t);
}
-function pJ(e, t) {
- fJ(e, t ? [] : JK(e.initialState.sorting ?? []));
+function hJ(e, t) {
+ mJ(e, t ? [] : XK(e.initialState.sorting ?? []));
}
-function pwe(e) {
- e.atoms.sorting && (e.options.autoResetAll ?? e.options.autoResetSorting ?? !1) && pJ(e);
+function gwe(e) {
+ e.atoms.sorting && (e.options.autoResetAll ?? e.options.autoResetSorting ?? !1) && hJ(e);
}
-function mJ(e) {
+function gJ(e) {
let t = e.table._rowModelFns.sortFns, n = e.table.getFilteredRowModel().flatRows.slice(0, 10), r, i = !1;
for (let t = 0; t < n.length; t++) {
let a = n[t].getValue(e.id);
@@ -60454,7 +60467,7 @@ function mJ(e) {
r = "datetime";
break;
}
- if (typeof a == "string" && (i = !0, a.split(lwe).length > 1)) {
+ if (typeof a == "string" && (i = !0, a.split(fwe).length > 1)) {
r = "alphanumeric";
break;
}
@@ -60463,9 +60476,9 @@ function mJ(e) {
let e = t?.[r];
if (e || r === "alphanumeric" && (e = t?.text), e) return e;
}
- return dJ;
+ return pJ;
}
-function hJ(e) {
+function _J(e) {
let t = e.table.getFilteredRowModel().flatRows.slice(0, 10);
for (let n = 0; n < t.length; n++) {
let r = t[n].getValue(e.id);
@@ -60473,14 +60486,14 @@ function hJ(e) {
}
return "desc";
}
-function gJ(e) {
+function vJ(e) {
let t = e.table._rowModelFns.sortFns;
- return pSe(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? mJ(e) : t?.[e.columnDef.sortFn] ?? dJ;
+ return gSe(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? gJ(e) : t?.[e.columnDef.sortFn] ?? pJ;
}
-function _J(e, t, n) {
- let r = yJ(e, n && xJ(e)), i = t !== void 0;
- fJ(e.table, (a) => {
- let o = a.findIndex((t) => t.id === e.id), s = o === -1 ? void 0 : a[o], c = [], l, u = i ? t : r === "desc", d = !!(a.length && xJ(e) && n);
+function yJ(e, t, n) {
+ let r = xJ(e, n && CJ(e)), i = t !== void 0;
+ mJ(e.table, (a) => {
+ let o = a.findIndex((t) => t.id === e.id), s = o === -1 ? void 0 : a[o], c = [], l, u = i ? t : r === "desc", d = !!(a.length && CJ(e) && n);
return l = d ? s ? "toggle" : "add" : s ? "toggle" : "replace", l === "toggle" && (i || r || (l = "remove")), l === "add" ? (c = [...a, {
id: e.id,
desc: u
@@ -60496,40 +60509,40 @@ function _J(e, t, n) {
}], c;
});
}
-function vJ(e) {
- return e.columnDef.sortDescFirst ?? e.table.options.sortDescFirst ?? hJ(e) === "desc" ? "desc" : "asc";
+function bJ(e) {
+ return e.columnDef.sortDescFirst ?? e.table.options.sortDescFirst ?? _J(e) === "desc" ? "desc" : "asc";
}
-function yJ(e, t) {
- let n = vJ(e), r = SJ(e);
+function xJ(e, t) {
+ let n = bJ(e), r = wJ(e);
return r ? r !== n && (e.table.options.enableSortingRemoval ?? !0) && (!t || (e.table.options.enableMultiRemove ?? !0)) ? !1 : r === "desc" ? "asc" : "desc" : n;
}
-function bJ(e) {
+function SJ(e) {
return (e.columnDef.enableSorting ?? !0) && (e.table.options.enableSorting ?? !0) && !!e.accessorFn;
}
-function xJ(e) {
+function CJ(e) {
return e.columnDef.enableMultiSort ?? e.table.options.enableMultiSort ?? !!e.accessorFn;
}
-function SJ(e) {
+function wJ(e) {
let t = e.table.atoms.sorting?.get()?.find((t) => t.id === e.id);
return t ? t.desc ? "desc" : "asc" : !1;
}
-function mwe(e) {
+function _we(e) {
return e.table.atoms.sorting?.get()?.findIndex((t) => t.id === e.id) ?? -1;
}
-function hwe(e) {
- fJ(e.table, (t) => t.length ? t.filter((t) => t.id !== e.id) : []);
+function vwe(e) {
+ mJ(e.table, (t) => t.length ? t.filter((t) => t.id !== e.id) : []);
}
-function gwe(e) {
- let t = bJ(e);
+function ywe(e) {
+ let t = SJ(e);
return (n) => {
- t && _J(e, void 0, xJ(e) ? e.table.options.isMultiSortEvent?.(n) : !1);
+ t && yJ(e, void 0, CJ(e) ? e.table.options.isMultiSortEvent?.(n) : !1);
};
}
// node_modules/@tanstack/table-core/dist/features/row-sorting/rowSortingFeature.js
-var CJ = {
+var TJ = {
getInitialState(e) {
return {
- sorting: fwe(),
+ sorting: hwe(),
...e
};
},
@@ -60542,58 +60555,58 @@ var CJ = {
getDefaultTableOptions(e) {
return {
autoResetSorting: !1,
- onSortingChange: QK("sorting", e),
+ onSortingChange: eq("sorting", e),
isMultiSortEvent: (e) => e.shiftKey
};
},
assignColumnPrototype(e, t) {
- sq("rowSortingFeature", e, t, {
- column_getAutoSortFn: { fn: (e) => mJ(e) },
- column_getAutoSortDir: { fn: (e) => hJ(e) },
- column_getSortFn: { fn: (e) => gJ(e) },
- column_toggleSorting: { fn: (e, t, n) => _J(e, t, n) },
- column_getFirstSortDir: { fn: (e) => vJ(e) },
- column_getNextSortingOrder: { fn: (e, t) => yJ(e, t) },
- column_getCanSort: { fn: (e) => bJ(e) },
- column_getCanMultiSort: { fn: (e) => xJ(e) },
- column_getIsSorted: { fn: (e) => SJ(e) },
- column_getSortIndex: { fn: (e) => mwe(e) },
- column_clearSorting: { fn: (e) => hwe(e) },
- column_getToggleSortingHandler: { fn: (e) => gwe(e) }
+ lq("rowSortingFeature", e, t, {
+ column_getAutoSortFn: { fn: (e) => gJ(e) },
+ column_getAutoSortDir: { fn: (e) => _J(e) },
+ column_getSortFn: { fn: (e) => vJ(e) },
+ column_toggleSorting: { fn: (e, t, n) => yJ(e, t, n) },
+ column_getFirstSortDir: { fn: (e) => bJ(e) },
+ column_getNextSortingOrder: { fn: (e, t) => xJ(e, t) },
+ column_getCanSort: { fn: (e) => SJ(e) },
+ column_getCanMultiSort: { fn: (e) => CJ(e) },
+ column_getIsSorted: { fn: (e) => wJ(e) },
+ column_getSortIndex: { fn: (e) => _we(e) },
+ column_clearSorting: { fn: (e) => vwe(e) },
+ column_getToggleSortingHandler: { fn: (e) => ywe(e) }
});
},
constructTableAPIs(e) {
- oq("rowSortingFeature", e, {
- table_autoResetSorting: { fn: () => pwe(e) },
- table_setSorting: { fn: (t) => fJ(e, t) },
- table_resetSorting: { fn: (t) => pJ(e, t) }
+ cq("rowSortingFeature", e, {
+ table_autoResetSorting: { fn: () => gwe(e) },
+ table_setSorting: { fn: (t) => mJ(e, t) },
+ table_resetSorting: { fn: (t) => hJ(e, t) }
});
}
-}, _we = typeof window > "u" ? F.useEffect : F.useLayoutEffect;
-function wJ(e, t) {
+}, bwe = typeof window > "u" ? F.useEffect : F.useLayoutEffect;
+function EJ(e, t) {
let [{ table: n, rootSource: r }] = (0, F.useState)(() => {
- let t = jCe({
+ let t = PCe({
...e,
features: {
- coreReactivityFeature: uSe(),
+ coreReactivityFeature: pSe(),
...e.features
}
});
- return t.Subscribe = ((e) => oSe({
+ return t.Subscribe = ((e) => lSe({
...e,
source: e.source ?? t.store
- })), t.FlexRender = Yxe, {
+ })), t.FlexRender = Qxe, {
table: t,
- rootSource: lSe(t.store, UK)
+ rootSource: fSe(t.store, GK)
};
}), i = n;
- Cq(i, (t) => ({
+ Tq(i, (t) => ({
...t,
...e
}), { syncExternalState: !1 });
- let a = i.options.state, o = r.get(), s = KK(r, t, { compare: UK });
- return _we(() => {
- r.markCommitted(o), Sq(i, a ?? null, UK);
+ let a = i.options.state, o = r.get(), s = JK(r, t, { compare: GK });
+ return bwe(() => {
+ r.markCommitted(o), wq(i, a ?? null, GK);
}), (0, F.useMemo)(() => ({
...n,
options: e,
@@ -60605,10 +60618,10 @@ function wJ(e, t) {
]);
}
// src/react/boardui/components/base/table/table.tsx
-function TJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
+function DJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
className: q("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, I.jsx)(hhe, {
+ children: /* @__PURE__ */ (0, I.jsx)(vhe, {
ref: r,
...i,
className: q("bui-table", e === "sm" && "bui-table-sm", t)
@@ -60616,7 +60629,7 @@ function TJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i
});
}
// src/react/catalog-grid/catalog-table-columns.ts
-var EJ = "peach.catalog-column-widths.v1", DJ = "peach.catalog-column-visibility.v1", vwe = {
+var OJ = "peach.catalog-column-widths.v1", kJ = "peach.catalog-column-visibility.v1", xwe = {
select: {
width: 48,
min: 48,
@@ -60692,14 +60705,14 @@ var EJ = "peach.catalog-column-widths.v1", DJ = "peach.catalog-column-visibility
min: 112,
max: 400
}
-}, ywe = {
+}, Swe = {
release: !1,
played: !1,
o: !1,
resolution: !1,
size: !1,
code: !1
-}, bwe = {
+}, Cwe = {
select: "选择",
name: "作品",
dur: "时长",
@@ -60715,7 +60728,7 @@ var EJ = "peach.catalog-column-widths.v1", DJ = "peach.catalog-column-visibility
tags: "标签",
library: "媒体库",
people: "艺人"
-}, OJ = [
+}, AJ = [
"select",
"name",
"people",
@@ -60733,13 +60746,13 @@ var EJ = "peach.catalog-column-widths.v1", DJ = "peach.catalog-column-visibility
"code"
].map((e) => ({
id: e,
- label: bwe[e],
- ...vwe[e],
+ label: Cwe[e],
+ ...xwe[e],
flex: e === "name",
required: e === "select" || e === "name",
- visible: ywe[e] !== !1
+ visible: Swe[e] !== !1
}));
-function kJ(e) {
+function jJ(e) {
try {
let t = JSON.parse(localStorage.getItem(e) || "{}");
return t && typeof t == "object" && !Array.isArray(t) ? t : {};
@@ -60747,11 +60760,11 @@ function kJ(e) {
return {};
}
}
-function xwe() {
- return AJ(OJ, EJ, DJ);
+function wwe() {
+ return MJ(AJ, OJ, kJ);
}
-function AJ(e, t, n) {
- let r = kJ(t), i = kJ(n);
+function MJ(e, t, n) {
+ let r = jJ(t), i = jJ(n);
return e.filter((e) => e.id !== "select" && (e.required || (typeof i[e.id] == "boolean" ? i[e.id] === !0 : e.visible))).map((e) => {
let t = r[e.id], n = typeof t == "number" && Number.isFinite(t) && !(e.flex && t === e.width);
return {
@@ -60763,43 +60776,43 @@ function AJ(e, t, n) {
});
}
// src/react/library-processing/completion-row.ts
-var jJ = "peach.catalog.completion-row";
-function MJ() {
+var NJ = "peach.catalog.completion-row";
+function PJ() {
try {
- return localStorage.getItem(jJ) === "1";
+ return localStorage.getItem(NJ) === "1";
} catch {
return !1;
}
}
-function Swe(e) {
+function Twe(e) {
try {
- e ? localStorage.setItem(jJ, "1") : localStorage.removeItem(jJ);
+ e ? localStorage.setItem(NJ, "1") : localStorage.removeItem(NJ);
} catch {}
}
-var Cwe = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";
+var Ewe = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";
// src/catalog-content-skeleton.ts
-function NJ(e) {
+function FJ(e) {
return e === "name" ? "<span data-list-skeleton-name><i class=\"skeleton-sheen\"></i><span><i class=\"skeleton-sheen\"></i><i class=\"skeleton-sheen\"></i></span></span>" : e === "people" || e === "library" || e === "studio" ? `<span data-list-skeleton-mark="${e}"><b class="skeleton-sheen"></b><i class="skeleton-sheen"></i></span>` : "<i data-list-skeleton-bar class=\"skeleton-sheen\"></i>";
}
-function wwe(e) {
- return `<div class="peach-react catalog-skeleton" data-skeleton="catalog/list" role="status" aria-busy="true" aria-label="${z(e)}">` + PJ(xwe(), MJ() ? Cwe : "") + "</div>";
+function Dwe(e) {
+ return `<div class="peach-react catalog-skeleton" data-skeleton="catalog/list" role="status" aria-busy="true" aria-label="${z(e)}">` + IJ(wwe(), PJ() ? Ewe : "") + "</div>";
}
-function PJ(e, t = "") {
- let n = e.some((e) => e.width === null), r = e.reduce((e, t) => e + (t.width ?? t.min), 0), i = e.map((e) => e.width === null ? "<col>" : `<col style="width:${e.width}px">`).join("") + (n ? "" : "<col>"), a = e.map((e) => `<th>${z(e.label)}</th>`).join("") + (n ? "" : "<th></th>"), o = `<tr>${e.map((e) => `<td>${NJ(e.id)}</td>`).join("")}${n ? "" : "<td></td>"}</tr>`;
+function IJ(e, t = "") {
+ let n = e.some((e) => e.width === null), r = e.reduce((e, t) => e + (t.width ?? t.min), 0), i = e.map((e) => e.width === null ? "<col>" : `<col style="width:${e.width}px">`).join("") + (n ? "" : "<col>"), a = e.map((e) => `<th>${z(e.label)}</th>`).join("") + (n ? "" : "<th></th>"), o = `<tr>${e.map((e) => `<td>${FJ(e.id)}</td>`).join("")}${n ? "" : "<td></td>"}</tr>`;
return "<div data-list-skeleton aria-hidden=\"true\"><div data-list-skeleton-tools><i class=\"skeleton-sheen\"></i></div>" + t + `<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>`;
}
-function FJ(e, t) {
- return nG() === "list" ? wwe(e) : ac(e, {
+function LJ(e, t) {
+ return iG() === "list" ? Dwe(e) : ac(e, {
variant: "cards",
className: "catalog-skeleton postercard-skeleton",
cardRatio: t
});
}
// src/react/components/data-table-frame.tsx
-var Twe = () => {
+var Owe = () => {
document.documentElement.dataset.columnResizing = "";
};
-function IJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
+function RJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
let i = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
let e = i.current?.querySelector(".overflow-x-auto") ?? null;
@@ -60813,11 +60826,11 @@ function IJ({ 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 && tK(e, r) && n(r.dataset.key);
+ r && rK(e, r) && n(r.dataset.key);
} : void 0,
- children: r ? /* @__PURE__ */ (0, I.jsx)(phe, {
+ children: r ? /* @__PURE__ */ (0, I.jsx)(ghe, {
className: "relative min-w-0",
- onResizeStart: Twe,
+ onResizeStart: Owe,
onResize: r.resize,
onResizeEnd: (e) => {
delete document.documentElement.dataset.columnResizing, r.save(e);
@@ -60827,8 +60840,8 @@ function IJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
});
}
// src/react/components/select.tsx
-function LJ({ prefix: e, renderValue: t, size: n, ...r }) {
- if (e == null) return /* @__PURE__ */ (0, I.jsx)(BU, {
+function zJ({ prefix: e, renderValue: t, size: n, ...r }) {
+ if (e == null) return /* @__PURE__ */ (0, I.jsx)(HU, {
...r,
size: n,
renderValue: t
@@ -60838,14 +60851,14 @@ function LJ({ 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, I.jsx)(BU, {
+ return /* @__PURE__ */ (0, I.jsx)(HU, {
...r,
size: n,
renderValue: a
});
}
// src/react/components/table-pagination.tsx
-function RJ({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
+function BJ({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
return t <= 1 ? null : /* @__PURE__ */ (0, I.jsxs)("nav", {
"aria-label": r,
"data-pagination-layout": "",
@@ -60884,11 +60897,11 @@ function RJ({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
});
}
// src/react/components/table-controls.tsx
-function zJ({ label: e, options: t, sorting: n, onChange: r }) {
+function VJ({ label: e, options: t, sorting: n, onChange: r }) {
let i = n[0];
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex flex-none items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsxs)(LJ, {
+ children: [/* @__PURE__ */ (0, I.jsxs)(zJ, {
"aria-label": `${e}排序`,
prefix: "排序",
selectedKey: i?.id ?? "default",
@@ -60898,10 +60911,10 @@ function zJ({ label: e, options: t, sorting: n, onChange: r }) {
desc: i?.desc ?? !1
}]);
},
- children: [/* @__PURE__ */ (0, I.jsx)(VU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(UU, {
id: "default",
children: "默认顺序"
- }), t.map((e) => /* @__PURE__ */ (0, I.jsx)(VU, {
+ }), t.map((e) => /* @__PURE__ */ (0, I.jsx)(UU, {
id: e.id,
children: e.label
}, e.id))]
@@ -60909,7 +60922,7 @@ function zJ({ label: e, options: t, sorting: n, onChange: r }) {
variant: "secondary",
iconOnly: !0,
disabled: !i,
- leadingIcon: oG,
+ leadingIcon: cG,
"data-icon-state": i?.desc ? "b" : "a",
"aria-label": `${e}改为${i?.desc ? "升序" : "降序"}`,
onClick: () => {
@@ -60921,7 +60934,7 @@ function zJ({ label: e, options: t, sorting: n, onChange: r }) {
})]
});
}
-function BJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记录", pageUnit: a = "条", pageSizes: o = [
+function HJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记录", pageUnit: a = "条", pageSizes: o = [
10,
20,
50,
@@ -60936,7 +60949,7 @@ function BJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记
children: `${l.toLocaleString()}–${u.toLocaleString()} / ${t.toLocaleString()} ${i}`
}), /* @__PURE__ */ (0, I.jsxs)("div", {
"data-toolbar-actions": "",
- children: [/* @__PURE__ */ (0, I.jsx)(LJ, {
+ children: [/* @__PURE__ */ (0, I.jsx)(zJ, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(n.pageSize),
@@ -60946,11 +60959,11 @@ function BJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记
pageSize: Number(e)
});
},
- children: o.map((e) => /* @__PURE__ */ (0, I.jsx)(VU, {
+ children: o.map((e) => /* @__PURE__ */ (0, I.jsx)(UU, {
id: String(e),
children: `每页 ${e} ${a}`
}, e))
- }), /* @__PURE__ */ (0, I.jsx)(RJ, {
+ }), /* @__PURE__ */ (0, I.jsx)(BJ, {
label: `${e}分页`,
page: c + 1,
pages: s,
@@ -60963,7 +60976,7 @@ function BJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记
});
}
// src/react/components/table-column-preferences.ts
-function VJ(e) {
+function UJ(e) {
try {
let t = JSON.parse(localStorage.getItem(e) || "{}");
return t && typeof t == "object" && !Array.isArray(t) ? t : {};
@@ -60971,17 +60984,17 @@ function VJ(e) {
return {};
}
}
-function HJ(e, t) {
+function WJ(e, t) {
try {
localStorage.setItem(e, JSON.stringify(t));
} catch {}
}
-function Ewe(e, t) {
+function kwe(e, t) {
let n = (e) => Object.fromEntries(Object.entries(t).map(([t, n]) => {
let r = e[t];
return [t, typeof r == "number" && Number.isFinite(r) ? Math.max(n.min, Math.min(n.max, r)) : n.flex ? "1fr" : n.width];
})), [r, i] = (0, F.useState)(() => {
- let r = VJ(e);
+ let r = UJ(e);
for (let [e, n] of Object.entries(t)) n.flex && r[e] === n.width && delete r[e];
return n(r);
});
@@ -60998,7 +61011,7 @@ function Ewe(e, t) {
...r,
...Object.fromEntries(t)
});
- i(a), HJ(e, a);
+ i(a), WJ(e, a);
},
reset: () => {
i(n({}));
@@ -61008,26 +61021,26 @@ function Ewe(e, t) {
}
};
}
-function Dwe(e, t, n, r = {}) {
+function Awe(e, t, n, r = {}) {
let i = (e) => ({
...r,
...Object.fromEntries(t.filter((t) => !n.includes(t) && typeof e[t] == "boolean").map((t) => [t, e[t] === !0]))
- }), [a, o] = (0, F.useState)(() => i(VJ(e)));
+ }), [a, o] = (0, F.useState)(() => i(UJ(e)));
return {
visibility: a,
change: (t) => {
let n = i(typeof t == "function" ? t(a) : t);
- o(n), HJ(e, n);
+ o(n), WJ(e, n);
}
};
}
-function UJ(e, t, n) {
+function GJ(e, t, n) {
let r = (0, F.useMemo)(() => Object.fromEntries(t.map((e) => [e.id, {
width: e.width ?? 180,
min: e.min ?? 96,
max: e.max ?? (e.flex ? 2e3 : 800),
flex: e.flex
- }])), [t]), i = Ewe(n?.widths ?? `peach.table.${e}.widths.v1`, r), a = Dwe(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 = kwe(n?.widths ?? `peach.table.${e}.widths.v1`, r), a = Awe(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,
@@ -61046,15 +61059,15 @@ function UJ(e, t, n) {
};
}
// src/react/catalog-grid/catalog-column-widths.ts
-function Owe() {
- return UJ("catalog", OJ, {
- widths: EJ,
- visibility: DJ
+function jwe() {
+ return GJ("catalog", AJ, {
+ widths: OJ,
+ visibility: kJ
});
}
// src/react/components/rating-stars.tsx
-var WJ = uV("star");
-function GJ({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
+var KJ = fV("star");
+function qJ({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
let i = Math.max(0, Math.min(5, e)), a = Math.round(i);
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-rating-stars": "",
@@ -61077,25 +61090,25 @@ function GJ({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
onClick: () => {
n || t(e);
},
- children: n === e ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Bs("正在保存评分") } }) : /* @__PURE__ */ (0, I.jsx)(WJ, {})
+ children: n === e ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Bs("正在保存评分") } }) : /* @__PURE__ */ (0, I.jsx)(KJ, {})
}, e) : /* @__PURE__ */ (0, I.jsx)("span", {
"data-rate": e,
"data-on": String(i >= e),
children: /* @__PURE__ */ (0, I.jsxs)("span", {
"data-rating-icon": "",
- children: [/* @__PURE__ */ (0, I.jsx)(WJ, {}), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(KJ, {}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-rating-fill": "",
style: { width: `${Math.max(0, Math.min(1, i - e + 1)) * 100}%` },
- children: /* @__PURE__ */ (0, I.jsx)(WJ, {})
+ children: /* @__PURE__ */ (0, I.jsx)(KJ, {})
})]
})
}, e))
});
}
// src/react/catalog-grid/catalog-table-controls.tsx
-function kwe({ item: e, actions: t }) {
- let { rating: n } = e, r = fH(), i = (0, F.useRef)(0), a = dP(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
- cP(e.id, { rating: t }), H.setQueryData(["item", e.id], (e) => e && {
+function Mwe({ item: e, actions: t }) {
+ let { rating: n } = e, r = mH(), i = (0, F.useRef)(0), a = pP(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
+ uP(e.id, { rating: t }), H.setQueryData(["item", e.id], (e) => e && {
...e,
rating: t
});
@@ -61107,11 +61120,11 @@ function kwe({ item: e, actions: t }) {
role: "group",
"aria-label": o,
title: o,
- children: [/* @__PURE__ */ (0, I.jsx)(GJ, {
+ children: [/* @__PURE__ */ (0, I.jsx)(qJ, {
value: a,
onRate: c,
busyStar: r.busy ? Number(r.busy) : void 0
- }), r.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ }), r.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -61124,7 +61137,7 @@ function kwe({ item: e, actions: t }) {
}) : null]
});
}
-function KJ(e) {
+function JJ(e) {
if (e == null || e === "") return "—";
let t = String(e);
if (/^\d{4}-\d{2}-\d{2}$/.test(t)) return t;
@@ -61139,7 +61152,7 @@ function KJ(e) {
});
}
// src/react/components/selection-actions.tsx
-function qJ({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
+function YJ({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-selection-actions": "",
"data-action-layout": t,
@@ -61151,10 +61164,10 @@ function qJ({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
className: t === "inline" ? "shrink-0" : "w-full",
onClick: e.onPress,
children: e.label
- }, e.label) : /* @__PURE__ */ (0, I.jsx)(dH, {
+ }, e.label) : /* @__PURE__ */ (0, I.jsx)(pH, {
size: "small",
href: e.href,
- trailingIcon: gB,
+ trailingIcon: vB,
className: t === "inline" ? "shrink-0" : "w-full",
disabled: e.disabled,
onClick: r,
@@ -61163,15 +61176,15 @@ function qJ({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
});
}
// src/react/components/selection-popover.tsx
-function JJ({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i, actions: a, actionLayout: o = "inline", empty: s = "暂无可选项" }) {
- let c = (0, F.useRef)(null), [l, u] = (0, F.useState)(!1), d = /* @__PURE__ */ (0, I.jsx)(qJ, {
+function XJ({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i, actions: a, actionLayout: o = "inline", empty: s = "暂无可选项" }) {
+ let c = (0, F.useRef)(null), [l, u] = (0, F.useState)(!1), d = /* @__PURE__ */ (0, I.jsx)(YJ, {
actions: a,
layout: o,
onNavigate: () => u(!1)
}, "actions"), f = /* @__PURE__ */ (0, I.jsx)("div", {
"data-selection-options": "",
className: "flex min-w-0 flex-col gap-1",
- children: r.length ? r.map((e) => /* @__PURE__ */ (0, I.jsx)(IV, {
+ children: r.length ? r.map((e) => /* @__PURE__ */ (0, I.jsx)(RV, {
isSelected: e.selected,
className: "min-w-0 [&>span:last-child]:min-w-0 [&>span:last-child]:wrap-anywhere",
isDisabled: e.disabled,
@@ -61191,14 +61204,14 @@ function JJ({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i,
"aria-label": t,
onClick: () => u(!0),
children: t
- }), /* @__PURE__ */ (0, I.jsx)(lz, {
+ }), /* @__PURE__ */ (0, I.jsx)(dz, {
triggerRef: c,
isOpen: l,
onOpenChange: u,
placement: "bottom end",
offset: 4,
- className: q(kV, "w-max overscroll-contain"),
- children: ({ placement: t }) => /* @__PURE__ */ (0, I.jsx)(hH, {
+ className: q(jV, "w-max overscroll-contain"),
+ children: ({ placement: t }) => /* @__PURE__ */ (0, I.jsx)(_H, {
"aria-label": e,
"data-selection-placement": t ?? "bottom",
className: "flex w-max max-w-full flex-col gap-2 outline-none",
@@ -61207,13 +61220,13 @@ function JJ({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i,
})] });
}
// src/react/components/table-column-controls.tsx
-function YJ({ preferences: e, label: t = "表格" }) {
+function ZJ({ preferences: e, label: t = "表格" }) {
let n = e.columns.filter((e) => !e.required);
return /* @__PURE__ */ (0, I.jsxs)("div", {
role: "group",
"aria-label": `${t}列设置`,
className: "flex flex-none gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(JJ, {
+ children: [/* @__PURE__ */ (0, I.jsx)(XJ, {
label: `${t}显示列`,
triggerLabel: "显示列",
actionLayout: "fullWidth",
@@ -61241,39 +61254,39 @@ function YJ({ preferences: e, label: t = "表格" }) {
})]
});
}
-function XJ({ preferences: e, id: t }) {
+function QJ({ preferences: e, id: t }) {
let n = e.columns.find((e) => e.id === t);
- return e.canResize(t) ? /* @__PURE__ */ (0, I.jsx)(whe, { "aria-label": `调整${n.label}列宽` }) : null;
+ return e.canResize(t) ? /* @__PURE__ */ (0, I.jsx)(Dhe, { "aria-label": `调整${n.label}列宽` }) : null;
}
// src/react/components/table-selection-header.tsx
-function ZJ(e, t) {
+function $J(e, t) {
let n = (t ? e.getPaginatedRowModel() : e.getFilteredRowModel()).flatRows.filter((e) => e.getCanSelect()), r = n.filter((e) => e.getIsSelected()).length;
return {
all: n.length > 0 && r === n.length,
some: r > 0 && r < n.length
};
}
-function QJ({ table: e, label: t, page: n = !1, disabled: r = !1 }) {
- let { all: i, some: a } = ZJ(e, n);
- return /* @__PURE__ */ (0, I.jsx)(IV, {
+function eY({ table: e, label: t, page: n = !1, disabled: r = !1 }) {
+ let { all: i, some: a } = $J(e, n);
+ return /* @__PURE__ */ (0, I.jsx)(RV, {
slot: null,
"aria-label": t,
isDisabled: r,
isSelected: i,
isIndeterminate: a,
onChange: () => {
- let t = !ZJ(e, n).all;
+ let t = !$J(e, n).all;
n ? e.toggleAllPageRowsSelected(t) : e.toggleAllRowsSelected(t);
}
});
}
// src/react/catalog-grid/catalog-list-page.tsx
-var Awe = Tq({
- rowSortingFeature: CJ,
- rowSelectionFeature: uJ,
- rowPaginationFeature: Uq,
- columnVisibilityFeature: Nq
-}), $J = OJ.map((e) => e.id), jwe = [
+var Nwe = Dq({
+ rowSortingFeature: TJ,
+ rowSelectionFeature: fJ,
+ rowPaginationFeature: Gq,
+ columnVisibilityFeature: Fq
+}), tY = AJ.map((e) => e.id), Pwe = [
{
id: "name",
label: "名称"
@@ -61310,12 +61323,12 @@ var Awe = Tq({
id: "played",
label: "观看时间"
}
-], eY = /* @__PURE__ */ new Map();
-function Mwe(e) {
- let t = Owe(), n = eK(), r = iP(e.filters || {}, !1), [i] = (0, F.useState)(() => {
+], nY = /* @__PURE__ */ new Map();
+function Fwe(e) {
+ let t = jwe(), n = nK(), r = oP(e.filters || {}, !1), [i] = (0, F.useState)(() => {
let t = new URLSearchParams(r);
return new URLSearchParams(location.search).has("seed") || t.delete("seed"), `${e.mode}:${e.listScope || e.entityKey || ""}:${t}`;
- }), [a, o] = (0, F.useState)(() => eY.get(i) || {
+ }), [a, o] = (0, F.useState)(() => nY.get(i) || {
sorting: [],
pagination: {
pageIndex: 0,
@@ -61323,7 +61336,7 @@ function Mwe(e) {
}
}), { sorting: s, pagination: c } = a;
(0, F.useEffect)(() => {
- eY.set(i, a);
+ nY.set(i, a);
}, [i, a]);
let l = c.pageIndex * c.pageSize, u = s[0], d = Ft({
queryKey: [
@@ -61354,9 +61367,9 @@ function Mwe(e) {
libraryEmpty: (await B("/api/items?limit=1&thumb=0", t)).total === 0
};
}
- }), f = d.data?.items || [], p = Number(d.data?.total || 0), m = e.filters?.state === "trash" ? [] : kK(f, e.layout.javImage), [h] = (0, F.useState)(MJ);
+ }), f = d.data?.items || [], p = Number(d.data?.total || 0), m = e.filters?.state === "trash" ? [] : jK(f, e.layout.javImage), [h] = (0, F.useState)(PJ);
(0, F.useEffect)(() => {
- d.data && !d.isPlaceholderData && Swe(m.length > 0);
+ d.data && !d.isPlaceholderData && Twe(m.length > 0);
}, [
d.data,
d.isPlaceholderData,
@@ -61388,19 +61401,19 @@ function Mwe(e) {
p,
c.pageIndex
]);
- let g = e.selectMode ? Object.fromEntries([...e.selected].map((e) => [String(e), !0])) : {}, _ = wJ({
- features: Awe,
+ let g = e.selectMode ? Object.fromEntries([...e.selected].map((e) => [String(e), !0])) : {}, _ = EJ({
+ features: Nwe,
columns: (0, F.useMemo)(() => {
- let t = wq();
+ let t = Eq();
return t.columns([
t.display({
id: "select",
- header: ({ table: e }) => /* @__PURE__ */ (0, I.jsx)(QJ, {
+ header: ({ table: e }) => /* @__PURE__ */ (0, I.jsx)(eY, {
table: e,
label: "全选本页作品",
disabled: d.isPlaceholderData
}),
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(IV, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(RV, {
slot: null,
"aria-label": `选择 ${e.helpers.displayName(t.original, t.original.name || "")}`,
isDisabled: d.isPlaceholderData,
@@ -61412,7 +61425,7 @@ function Mwe(e) {
id: "name",
header: "作品",
enableSorting: !0,
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Nwe, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Iwe, {
item: t.original,
props: e,
disabled: d.isPlaceholderData
@@ -61421,12 +61434,12 @@ function Mwe(e) {
t.display({
id: "library",
header: "媒体库",
- cell: ({ row: e }) => /* @__PURE__ */ (0, I.jsx)(Pwe, { item: e.original })
+ cell: ({ row: e }) => /* @__PURE__ */ (0, I.jsx)(Lwe, { item: e.original })
}),
t.display({
id: "people",
header: "艺人",
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Fwe, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Rwe, {
item: t.original,
props: e
})
@@ -61482,7 +61495,7 @@ function Mwe(e) {
id: "rating",
header: "评分",
enableSorting: !0,
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(kwe, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Mwe, {
item: t.original,
actions: e.actions
})
@@ -61503,13 +61516,13 @@ function Mwe(e) {
id: "played",
header: "观看时间",
enableSorting: !0,
- cell: ({ row: e }) => KJ(e.original.last_played)
+ cell: ({ row: e }) => JJ(e.original.last_played)
}),
t.accessor((e) => e.first_seen, {
id: "new",
header: "入库时间",
enableSorting: !0,
- cell: ({ row: e }) => KJ(e.original.first_seen)
+ cell: ({ row: e }) => JJ(e.original.first_seen)
}),
t.accessor((e) => e.release_date, {
id: "release",
@@ -61517,7 +61530,7 @@ function Mwe(e) {
enableSorting: !0,
cell: ({ row: e }) => e.original.release_date || "—"
})
- ]).sort((e, t) => $J.indexOf(e.id) - $J.indexOf(t.id));
+ ]).sort((e, t) => tY.indexOf(e.id) - tY.indexOf(t.id));
}, [
e.helpers,
e.actions,
@@ -61580,9 +61593,9 @@ function Mwe(e) {
"aria-label": "作品列表工具栏",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-toolbar-actions": "",
- children: [/* @__PURE__ */ (0, I.jsx)(YJ, { preferences: t }), /* @__PURE__ */ (0, I.jsx)(zJ, {
+ children: [/* @__PURE__ */ (0, I.jsx)(ZJ, { preferences: t }), /* @__PURE__ */ (0, I.jsx)(VJ, {
label: "作品列表",
- options: jwe,
+ options: Pwe,
sorting: s,
onChange: (e) => _.setSorting(e)
})]
@@ -61592,21 +61605,21 @@ function Mwe(e) {
"data-completion-skeleton": "",
"aria-hidden": "true",
className: "skeleton-sheen"
- }) : null : /* @__PURE__ */ (0, I.jsx)(AK, {
+ }) : null : /* @__PURE__ */ (0, I.jsx)(MK, {
className: "",
assetIds: m
}),
- d.isError ? /* @__PURE__ */ (0, I.jsx)(FG, {
+ d.isError ? /* @__PURE__ */ (0, I.jsx)(LG, {
message: xn(d.error),
onRetry: () => void d.refetch()
}) : null,
- /* @__PURE__ */ (0, I.jsx)(IJ, {
+ /* @__PURE__ */ (0, I.jsx)(RJ, {
follow: !0,
preferences: t,
onRowClick: e.selectMode ? (t) => {
d.isPlaceholderData || e.actions.toggleSelection(Number(t), !1);
} : void 0,
- children: /* @__PURE__ */ (0, I.jsxs)(TJ, {
+ children: /* @__PURE__ */ (0, I.jsxs)(DJ, {
"aria-label": "作品列表",
size: "sm",
sortDescriptor: u ? {
@@ -61617,48 +61630,48 @@ function Mwe(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, I.jsxs)(Zz, { children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(Qz, {
+ children: [/* @__PURE__ */ (0, I.jsxs)($z, { children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(eB, {
id: e.id,
isRowHeader: e.id === "name",
allowsSorting: e.column.getCanSort(),
...t.columnProps(e.id),
children: ({ sortDirection: n }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex items-center gap-0.5",
- children: [jK(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [NK(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": n || void 0,
- children: /* @__PURE__ */ (0, I.jsx)(EV, {})
+ children: /* @__PURE__ */ (0, I.jsx)(OV, {})
}) : null]
- }), /* @__PURE__ */ (0, I.jsx)(XJ, {
+ }), /* @__PURE__ */ (0, I.jsx)(QJ, {
preferences: t,
id: e.id
})] })
- }, e.id)), /* @__PURE__ */ (0, I.jsx)(Qz, {
+ }, e.id)), /* @__PURE__ */ (0, I.jsx)(eB, {
id: "remaining-space",
"aria-label": "行空白区域",
"data-table-space": "",
width: t.spaceWidth,
minWidth: 0
- })] }), /* @__PURE__ */ (0, I.jsx)(tB, {
+ })] }), /* @__PURE__ */ (0, I.jsx)(rB, {
renderEmptyState: () => d.isError ? "作品列表未取得" : "没有符合的作品",
- children: d.isPending ? Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, I.jsxs)(iB, {
+ children: d.isPending ? Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, I.jsxs)(oB, {
id: `skeleton-${t}`,
"data-list-skeleton-row": "",
"aria-hidden": "true",
- children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(oB, { children: /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: NJ(e.id) } }) }, e.id)), /* @__PURE__ */ (0, I.jsx)(oB, { "data-table-space": "" })]
- }, `skeleton-${t}`)) : _.getRowModel().rows.map((e) => /* @__PURE__ */ (0, I.jsxs)(iB, {
+ children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(cB, { children: /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: FJ(e.id) } }) }, e.id)), /* @__PURE__ */ (0, I.jsx)(cB, { "data-table-space": "" })]
+ }, `skeleton-${t}`)) : _.getRowModel().rows.map((e) => /* @__PURE__ */ (0, I.jsxs)(oB, {
id: e.id,
"data-catalog-row": "",
"data-id": e.original.id,
"data-guide-video": (!e.original.medium || e.original.medium === "video") && e.original.location !== "online" && !String(e.original.name || "").toLowerCase().endsWith(".iso") ? "" : void 0,
"data-library": n.get(e.original.library_id || "")?.color ? e.original.library_id : void 0,
"data-board-selected": e.getIsSelected() || void 0,
- children: [e.getVisibleCells().map((e) => /* @__PURE__ */ (0, I.jsx)(oB, { children: jK(e.column.columnDef.cell, e.getContext()) }, e.id)), /* @__PURE__ */ (0, I.jsx)(oB, { "data-table-space": "" })]
+ children: [e.getVisibleCells().map((e) => /* @__PURE__ */ (0, I.jsx)(cB, { children: NK(e.column.columnDef.cell, e.getContext()) }, e.id)), /* @__PURE__ */ (0, I.jsx)(cB, { "data-table-space": "" })]
}, e.id))
})]
})
}),
- d.data ? /* @__PURE__ */ (0, I.jsx)(BJ, {
+ d.data ? /* @__PURE__ */ (0, I.jsx)(HJ, {
label: "作品列表",
total: p,
pagination: c,
@@ -61669,9 +61682,9 @@ function Mwe(e) {
]
});
}
-function Nwe({ item: e, props: t, disabled: n }) {
+function Iwe({ item: e, props: t, disabled: n }) {
let r = To(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() || "未命名作品";
- tL();
+ rL();
let l = !i && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, u = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), d = (e) => /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -61691,7 +61704,7 @@ function Nwe({ item: e, props: t, disabled: n }) {
children: /* @__PURE__ */ (0, I.jsxs)("span", {
"data-list-picture": "",
children: [
- r.html ? /* @__PURE__ */ (0, I.jsx)(WU, {
+ r.html ? /* @__PURE__ */ (0, I.jsx)(KU, {
artwork: r,
relayout: (e) => El(e, "small")
}) : /* @__PURE__ */ (0, I.jsx)("span", { children: "无预览" }),
@@ -61743,17 +61756,17 @@ function Nwe({ item: e, props: t, disabled: n }) {
})]
});
}
-function Pwe({ item: e }) {
- let t = eK({ names: !0 }), n = e.library_id ? t.get(e.library_id) : void 0;
+function Lwe({ item: e }) {
+ let t = nK({ names: !0 }), n = e.library_id ? t.get(e.library_id) : void 0;
return n?.name ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-list-library": "",
title: `媒体库:${n.name}`,
- children: [/* @__PURE__ */ (0, I.jsx)(LH, { mark: n.icon }), /* @__PURE__ */ (0, I.jsx)("span", { children: n.name })]
+ children: [/* @__PURE__ */ (0, I.jsx)(zH, { mark: n.icon }), /* @__PURE__ */ (0, I.jsx)("span", { children: n.name })]
}) : "—";
}
-function Fwe({ item: e, props: t }) {
- tL();
- let { avatar: n, who: r } = cK(e);
+function Rwe({ item: e, props: t }) {
+ rL();
+ let { avatar: n, who: r } = uK(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-list-people": "",
onClick: (e) => {
@@ -61765,22 +61778,22 @@ function Fwe({ item: e, props: t }) {
});
}
// src/react/catalog-grid/catalog-grid-page.tsx
-function tY(e) {
- let t = rG();
- if (e.mode === "items") return /* @__PURE__ */ (0, I.jsx)(Lwe, { ...e });
- let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${iP(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
- if (t === "list" && !e.wall) return /* @__PURE__ */ (0, I.jsx)(Mwe, { ...e }, n);
+function rY(e) {
+ let t = aG();
+ if (e.mode === "items") return /* @__PURE__ */ (0, I.jsx)(Bwe, { ...e });
+ let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${oP(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
+ if (t === "list" && !e.wall) return /* @__PURE__ */ (0, I.jsx)(Fwe, { ...e }, n);
let r = e.mode === "entity" ? "entity" : `catalog:${!!e.wall}`;
- return /* @__PURE__ */ (0, I.jsx)(Rwe, { ...e }, r);
+ return /* @__PURE__ */ (0, I.jsx)(Vwe, { ...e }, r);
}
-function Iwe({ name: e }) {
+function zwe({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function nY({ children: e, selectMode: t }) {
+function iY({ children: e, selectMode: t }) {
let n = (0, F.useRef)(null), [r, i] = (0, F.useState)(!1);
return (0, F.useLayoutEffect)(() => {
let e = n.current;
@@ -61796,8 +61809,8 @@ function nY({ children: e, selectMode: t }) {
children: e
});
}
-function Lwe(e) {
- let { actions: t } = e, n = (0, F.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, I.jsx)(uK, {
+function Bwe(e) {
+ let { actions: t } = e, n = (0, F.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, I.jsx)(fK, {
item: i,
variant: r,
layout: e.layout,
@@ -61811,13 +61824,13 @@ function Lwe(e) {
return r === "next" ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-media-next-row": "",
children: i
- }) : /* @__PURE__ */ (0, I.jsx)(nY, {
+ }) : /* @__PURE__ */ (0, I.jsx)(iY, {
selectMode: e.selectMode,
children: i
});
}
-function Rwe(e) {
- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Hue(e) : Vue(e), [s] = (0, F.useState)(() => e.wall ? aP(o.queryKey) : void 0), c = JSON.stringify(o.queryKey), l = (0, F.useMemo)(() => e.restoreNavigation ? aP(o.queryKey) : void 0, [c, e.restoreNavigation]) || s || (i && e.initial ? {
+function Vwe(e) {
+ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Gue(e) : Wue(e), [s] = (0, F.useState)(() => e.wall ? sP(o.queryKey) : void 0), c = JSON.stringify(o.queryKey), l = (0, F.useMemo)(() => e.restoreNavigation ? sP(o.queryKey) : void 0, [c, e.restoreNavigation]) || s || (i && e.initial ? {
pages: [{
...e.initial,
items: e.initial.items || [],
@@ -61843,7 +61856,7 @@ function Rwe(e) {
u.isPlaceholderData,
e.revision
]);
- let { tiles: f, pageStarts: p } = (0, F.useMemo)(() => Wue(u.data?.pages || [], {
+ let { tiles: f, pageStarts: p } = (0, F.useMemo)(() => que(u.data?.pages || [], {
collapse: e.groupCollapse !== !1,
mix: !!e.mix && !a,
javImage: r.javImage
@@ -61853,7 +61866,7 @@ function Rwe(e) {
e.mix,
a,
r.javImage
- ]), m = f.reduce((e, t) => e + +(t.kind === "card"), 0), h = Number(u.data?.pages[0]?.total || 0), g = i || ebe(e.filters), _ = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, v = f.flatMap((e) => e.kind === "card" && Yye(e.item) ? [e.item] : []), y = a ? [] : kK(f.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), b = (0, F.useRef)(null), x = zwe(e, u.isPlaceholderData ? void 0 : u.data, f, p, b);
+ ]), m = f.reduce((e, t) => e + +(t.kind === "card"), 0), h = Number(u.data?.pages[0]?.total || 0), g = i || rbe(e.filters), _ = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, v = f.flatMap((e) => e.kind === "card" && Qye(e.item) ? [e.item] : []), y = a ? [] : jK(f.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), b = (0, F.useRef)(null), x = Hwe(e, u.isPlaceholderData ? void 0 : u.data, f, p, b);
(0, F.useLayoutEffect)(() => {
if (!u.data || u.isPlaceholderData) return;
let t = !0;
@@ -61881,12 +61894,12 @@ function Rwe(e) {
let C = (0, F.useCallback)((e, t) => n.open(e, t), [n]), w = (0, F.useCallback)((e, t) => n.openResource(e, t), [n]), T = (0, F.useCallback)((e) => n.openShort(e), [n]), E = (0, F.useCallback)(async () => {
let e = await u.fetchNextPage();
if (e.isFetchNextPageError) throw e.error;
- }, [u.fetchNextPage]), D = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)(Vwe, {
+ }, [u.fetchNextPage]), D = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)(Wwe, {
seed: i.seed,
layout: r,
helpers: t,
actions: n
- }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, I.jsx)(uK, {
+ }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, I.jsx)(fK, {
item: i.item,
grouped: e.groupCollapse !== !1,
variant: a && i.item.medium && i.item.medium !== "video" ? "resource" : "grid",
@@ -61898,8 +61911,8 @@ function Rwe(e) {
actions: n,
onOpen: a ? w : C
}, i.item.id), O = () => {
- if (_ && e.wall) return /* @__PURE__ */ (0, I.jsx)(Bxe, {
- sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${iP(e.filters || {}, !!e.excludeVertical)}`,
+ if (_ && e.wall) return /* @__PURE__ */ (0, I.jsx)(Uxe, {
+ sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${oP(e.filters || {}, !!e.excludeVertical)}`,
items: v,
finite: g,
hasMore: !!u.hasNextPage,
@@ -61907,7 +61920,7 @@ function Rwe(e) {
loading: u.isPending || !u.data && u.isFetching,
error: !u.data && !u.isPending ? xn(u.error) : "",
retry: () => void u.refetch(),
- emptyHtml: u.data && !v.length ? Uxe({
+ emptyHtml: u.data && !v.length ? Kxe({
libraryEmpty: !!u.data.pages[0]?.libraryEmpty,
matches: h,
hasMore: !!u.hasNextPage,
@@ -61922,7 +61935,7 @@ function Rwe(e) {
javImage: r.javImage
}, g ? "finite" : "explore");
if (u.isPending) return null;
- if (!u.data) return /* @__PURE__ */ (0, I.jsx)(FG, {
+ if (!u.data) return /* @__PURE__ */ (0, I.jsx)(LG, {
message: xn(u.error),
onRetry: () => void u.refetch()
});
@@ -61939,12 +61952,12 @@ function Rwe(e) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("div", {
"data-media-sections": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: que(f, x).map((t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(nY, { children: t.tiles.map(D) }), t.strip ? /* @__PURE__ */ (0, I.jsx)(Bwe, {
+ children: Xue(f, x).map((t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(iY, { children: t.tiles.map(D) }), t.strip ? /* @__PURE__ */ (0, I.jsx)(Uwe, {
cut: t.strip,
props: e,
onOpen: T
}) : null] }, t.start))
- }), u.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(rY, {
+ }), u.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(aY, {
entity: i,
load: E,
enabled: () => !u.isPlaceholderData && e.canLoadMore?.() !== !1
@@ -61954,14 +61967,14 @@ function Rwe(e) {
ref: b,
"data-media-body": "",
"aria-busy": u.isFetching && !u.isFetchingNextPage,
- children: [/* @__PURE__ */ (0, I.jsx)(AK, { assetIds: y }), e.wall ? O() : /* @__PURE__ */ (0, I.jsx)(IG, {
+ children: [/* @__PURE__ */ (0, I.jsx)(MK, { assetIds: y }), e.wall ? O() : /* @__PURE__ */ (0, I.jsx)(RG, {
pending: u.isPending,
skeletonHtml: e.skeletonHtml,
children: O()
})]
});
}
-function rY({ entity: e, load: t, enabled: n, children: r }) {
+function aY({ entity: e, load: t, enabled: n, children: r }) {
let i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(!1), s = (0, F.useRef)(!1), [c, l] = (0, F.useState)({
busy: !1,
error: ""
@@ -62003,7 +62016,7 @@ function rY({ entity: e, load: t, enabled: n, children: r }) {
if (!e) return;
let t = new IntersectionObserver((e) => {
e.some((e) => e.isIntersecting) && d(!1);
- }, { rootMargin: PG });
+ }, { rootMargin: IG });
return a.current = t, t.observe(e), () => {
t.disconnect(), a.current = null;
};
@@ -62026,18 +62039,18 @@ function rY({ entity: e, load: t, enabled: n, children: r }) {
hidden: !!c.error,
onClick: () => void d(!0),
dangerouslySetInnerHTML: { __html: Hs(Vs) }
- }), c.error ? /* @__PURE__ */ (0, I.jsx)(FG, {
+ }), c.error ? /* @__PURE__ */ (0, I.jsx)(LG, {
message: c.error,
onRetry: () => void d(!0)
}) : null] });
}
-function zwe(e, t, n, r, i) {
- let a = ["catalog-short-layout", iP(e.filters || {}, !!e.excludeVertical)], o = `${a[1]}:${e.revision}`, s = () => {
+function Hwe(e, t, n, r, i) {
+ let a = ["catalog-short-layout", oP(e.filters || {}, !!e.excludeVertical)], o = `${a[1]}:${e.revision}`, s = () => {
let t = e.restoreNavigation ? H.getQueryData(a) : void 0, n = {
parts: /* @__PURE__ */ new Set(),
editions: /* @__PURE__ */ new Set()
};
- return t && oP(t.cuts.flatMap((e) => e.items), n, e.groupCollapse !== !1), {
+ return t && cP(t.cuts.flatMap((e) => e.items), n, e.groupCollapse !== !1), {
stamp: o,
cuts: t?.cuts || [],
offset: t?.offset || 0,
@@ -62063,7 +62076,7 @@ function zwe(e, t, n, r, i) {
let r = new AbortController();
p.controllers.push(r);
let i = n - 1;
- B(`/api/items?${Kue(e.filters || {}, p.offset)}`, r.signal).then((e) => {
+ B(`/api/items?${Yue(e.filters || {}, p.offset)}`, r.signal).then((e) => {
if (c.current !== p || r.signal.aborted) return;
let t = e.items || [];
t.length ? f({
@@ -62077,9 +62090,9 @@ function zwe(e, t, n, r, i) {
}, [t, p]), (0, F.useLayoutEffect)(() => {
if (!d || d.stamp !== o) return;
f(null);
- let t = m.reduce((e, t) => Math.max(e, t.at), 0), s = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), c = s?.[s.length - 1], l = c ? Math.max(1, getComputedStyle(c).gridTemplateColumns.split(" ").length) : 1, h = Math.max(0, (r[d.page] ?? 0) - t), g = Gue(n.length - t, h, l);
+ let t = m.reduce((e, t) => Math.max(e, t.at), 0), s = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), c = s?.[s.length - 1], l = c ? Math.max(1, getComputedStyle(c).gridTemplateColumns.split(" ").length) : 1, h = Math.max(0, (r[d.page] ?? 0) - t), g = Jue(n.length - t, h, l);
if (!g.length) return;
- let _ = oP(d.items, p.groups, e.groupCollapse !== !1);
+ let _ = cP(d.items, p.groups, e.groupCollapse !== !1);
if (p.offset = d.more ? p.offset + 18 : 0, !_.length) return;
let v = t + (g[Math.floor(Math.random() * g.length)] ?? 0), y = [...m, {
at: v,
@@ -62096,7 +62109,7 @@ function zwe(e, t, n, r, i) {
});
}, [d]), m;
}
-function Bwe({ cut: e, props: t, onOpen: n }) {
+function Uwe({ cut: e, props: t, onOpen: n }) {
let r = (0, F.useRef)(null), { wireDrag: i } = t;
return (0, F.useEffect)(() => {
r.current && i(r.current);
@@ -62112,12 +62125,12 @@ function Bwe({ cut: e, props: t, onOpen: n }) {
type: "button",
"data-shorts-enter": "",
onClick: () => t.actions.openShorts(),
- children: [/* @__PURE__ */ (0, I.jsx)(Iwe, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "进入沉浸模式" })]
+ children: [/* @__PURE__ */ (0, I.jsx)(zwe, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "进入沉浸模式" })]
})
] }), /* @__PURE__ */ (0, I.jsx)("div", {
ref: r,
"data-shorts-row": "",
- children: e.items.map((e) => /* @__PURE__ */ (0, I.jsx)(uK, {
+ children: e.items.map((e) => /* @__PURE__ */ (0, I.jsx)(fK, {
item: e,
variant: "short",
layout: t.layout,
@@ -62132,17 +62145,17 @@ function Bwe({ cut: e, props: t, onOpen: n }) {
})]
});
}
-function iY(e, t, n) {
+function oY(e, t, n) {
return Eo(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);
}
-function Vwe({ seed: e, layout: t, helpers: n, actions: r }) {
+function Wwe({ seed: e, layout: t, helpers: n, actions: r }) {
let i = (0, F.useRef)(/* @__PURE__ */ new Map()), a = (0, F.useRef)(t);
a.current = t;
let o = Mo(e, n.tagLabel), s = (0, F.useCallback)(async () => {
- let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => sP(e, t.javImage)).slice(0, 9);
- return i.current = new Map(n.map((e) => [String(e.id), iY(e, t, !0).html])), n.map((e) => String(e.id));
- }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = iY(e, t, !1);
- return /* @__PURE__ */ (0, I.jsx)(mK, {
+ let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => lP(e, t.javImage)).slice(0, 9);
+ return i.current = new Map(n.map((e) => [String(e.id), oY(e, t, !0).html])), n.map((e) => String(e.id));
+ }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = oY(e, t, !1);
+ return /* @__PURE__ */ (0, I.jsx)(gK, {
"data-mix-seed": String(e.id),
name: `Mix · ${o}`,
caption: `${n.displayName(e, e.name || "")}及相似作品`,
@@ -62152,12 +62165,12 @@ function Vwe({ seed: e, layout: t, helpers: n, actions: r }) {
wholeCard: !0,
poster: null,
artwork: l,
- artworkIdentity: c === "small" ? l.html : iY(e, {
+ artworkIdentity: c === "small" ? l.html : oY(e, {
...t,
size: "small"
}, !1).html,
relayoutArt: (e) => El(e, c),
- ratio: sK(e, "grid", t),
+ ratio: lK(e, "grid", t),
flipImages: s,
faceHtml: (e) => i.current.get(e) || "",
canFlip: r.canFlip,
@@ -62168,37 +62181,37 @@ function Vwe({ seed: e, layout: t, helpers: n, actions: r }) {
});
}
// src/react/media-sources.ts
-async function aY(e) {
+async function sY(e) {
await H.fetchQuery({
queryKey: yr,
queryFn: () => br(e)
});
}
-var Hwe = (e) => (e?.sources ?? []).filter((e) => vn.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Uwe = "/api/duplicates?limit=120", oY = ["duplicates"], sY = "/api/batch", cY = (e) => B(Uwe, e), Wwe = /[\s\-_.()[\]【】/\\]/;
-function Gwe(e) {
+var Gwe = (e) => (e?.sources ?? []).filter((e) => vn.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Kwe = "/api/duplicates?limit=120", cY = ["duplicates"], lY = "/api/batch", uY = (e) => B(Kwe, e), qwe = /[\s\-_.()[\]【】/\\]/;
+function Jwe(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 && !Wwe.test(n[r - 1]);) --r;
+ for (; r > 0 && !qwe.test(n[r - 1]);) --r;
return r >= 8 ? n.slice(0, r) : "";
}
-var Kwe = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
-async function qwe(e) {
+var Ywe = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
+async function Xwe(e) {
await Promise.all([H.fetchQuery({
- queryKey: oY,
- queryFn: () => cY(e)
- }), aY(e)]);
+ queryKey: cY,
+ queryFn: () => uY(e)
+ }), sY(e)]);
}
-var Jwe = {
+var Zwe = {
largest: "最大的一个",
longest: "最长的一个",
115: "115(没有则留最大)",
pikpak: "PikPak(没有则留最大)",
all: "零个文件"
-}, Ywe = (e, t) => t.filter((t) => e.some((e) => e.location === t)), lY = (e, t) => Ywe(e, t).filter((t) => e.some((e) => e.location !== t)), Xwe = (e, t) => t.filter((t) => e.some((e) => lY(e.files, [t]).length));
-function Zwe(e, t) {
+}, Qwe = (e, t) => t.filter((t) => e.some((e) => e.location === t)), dY = (e, t) => Qwe(e, t).filter((t) => e.some((e) => e.location !== t)), $we = (e, t) => t.filter((t) => e.some((e) => dY(e.files, [t]).length));
+function eTe(e, t) {
let n = [];
for (let r of e) {
if (t === "all") {
@@ -62217,19 +62230,19 @@ function Zwe(e, t) {
}
return n;
}
-function Qwe(e, t) {
+function tTe(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 $we(e, t) {
- for (let n = 0; n < e.length; n += 200) await V(sY, {
+async function nTe(e, t) {
+ for (let n = 0; n < e.length; n += 200) await V(lY, {
ids: e.slice(n, n + 200),
operation: t,
...t === "dispose" ? { disposal_reason: "duplicate" } : {}
});
}
// src/react/media-repair/media-repair.ts
-var uY = "/api/media-repair", dY = ["media-repair"], fY = ["media-repair", "libraries"], eTe = {
+var fY = "/api/media-repair", pY = ["media-repair"], mY = ["media-repair", "libraries"], rTe = {
status: "idle",
library: "",
stage: "",
@@ -62241,39 +62254,39 @@ var uY = "/api/media-repair", dY = ["media-repair"], fY = ["media-repair", "libr
missing_tool: 0,
skipped: 0,
message: ""
-}, pY = (e) => B(uY, e), mY = async (e) => (await B("/api/libraries", e)).libraries || [];
-async function tTe(e) {
+}, hY = (e) => B(fY, e), gY = async (e) => (await B("/api/libraries", e)).libraries || [];
+async function iTe(e) {
await Promise.all([H.fetchQuery({
- queryKey: dY,
- queryFn: () => pY(e)
+ queryKey: pY,
+ queryFn: () => hY(e)
}), H.fetchQuery({
- queryKey: fY,
- queryFn: () => mY(e)
+ queryKey: mY,
+ queryFn: () => gY(e)
})]);
}
-var hY = (e) => Number(e).toLocaleString();
-function nTe(e) {
+var _Y = (e) => Number(e).toLocaleString();
+function aTe(e) {
if (e.status === "running") {
- let t = e.total ? `${hY(Math.min(e.checked || 0, e.total))} / ${hY(e.total)}` : "准备中";
+ let t = e.total ? `${_Y(Math.min(e.checked || 0, e.total))} / ${_Y(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${hY(e.repaired)} 部,${hY(e.failed)} 部修不了` : `修好 ${hY(e.repaired)} 部` : "";
+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${_Y(e.repaired)} 部,${_Y(e.failed)} 部修不了` : `修好 ${_Y(e.repaired)} 部` : "";
}
-var rTe = (e) => `${hY(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, iTe = "/api/quality-goals?limit=200", gY = ["quality-goals"], _Y = (e) => B(iTe, e);
-async function aTe(e) {
+var oTe = (e) => `${_Y(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, sTe = "/api/quality-goals?limit=200", vY = ["quality-goals"], yY = (e) => B(sTe, e);
+async function cTe(e) {
await H.fetchQuery({
- queryKey: gY,
- queryFn: () => _Y(e)
+ queryKey: vY,
+ queryFn: () => yY(e)
});
}
-var oTe = (e) => e.has_cover ? lo(e) : `/poster?id=${e.id}&c=4`;
+var lTe = (e) => e.has_cover ? lo(e) : `/poster?id=${e.id}&c=4`;
// src/selection.ts
-function vY(e, t, n, r, i, a = i || !e.has(r)) {
+function bY(e, t, n, r, i, a = i || !e.has(r)) {
let o = n === null ? -1 : t.indexOf(n), s = t.indexOf(r);
return i && o >= 0 && s >= 0 ? t.slice(Math.min(o, s), Math.max(o, s) + 1).forEach((t) => e.add(t)) : a ? e.add(r) : e.delete(r), r;
}
// src/react/review/review.ts
-var sTe = "/api/review", cTe = "/api/review/decision", lTe = "/api/review/genre", yY = ["review"], bY = {
+var uTe = "/api/review", dTe = "/api/review/decision", fTe = "/api/review/genre", xY = ["review"], SY = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -62283,40 +62296,40 @@ var sTe = "/api/review", cTe = "/api/review/decision", lTe = "/api/review/genre"
fc2_markings: "FC2 评论标记",
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据"
-}, uTe = Object.keys(bY), dTe = "metadata_fields", xY = (e) => typeof e == "string" && Object.hasOwn(bY, e), fTe = {
+}, pTe = Object.keys(SY), mTe = "metadata_fields", CY = (e) => typeof e == "string" && Object.hasOwn(SY, e), hTe = {
creator_tags: "creator",
western_identity: "creator"
-}, SY = [
+}, wY = [
"pending",
"later",
"ignored"
-], CY = {
+], TY = {
pending: "待处理",
later: "稍后处理",
ignored: "已忽略"
-}, pTe = {
+}, gTe = {
approved: "已通过",
rejected: "已忽略",
skipped: "稍后处理"
-}, wY = (e) => e === "later" || e === "ignored" ? e : "pending", TY = (e, t) => t === "pending" ? {
+}, EY = (e) => e === "later" || e === "ignored" ? e : "pending", DY = (e, t) => t === "pending" ? {
sections: e.sections,
counts: e.counts
} : e.queues[t];
-function mTe(e, t) {
+function _Te(e, t) {
return {
...e,
- ...t(TY(e, "pending")),
+ ...t(DY(e, "pending")),
queues: {
later: t(e.queues.later),
ignored: t(e.queues.ignored)
}
};
}
-function hTe(e, t) {
+function vTe(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;
}
-function EY(e, t) {
+function OY(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -62333,10 +62346,10 @@ function EY(e, t) {
}
return [...n.values()];
}
-function gTe(e, t, n) {
- return n && EY(e, t).find((e) => e.key === n)?.rows || e;
+function yTe(e, t, n) {
+ return n && OY(e, t).find((e) => e.key === n)?.rows || e;
}
-function _Te(e, t) {
+function bTe(e, t) {
let n = gr(e.length, 20), r = _r(t, n);
return {
page: r,
@@ -62344,32 +62357,32 @@ function _Te(e, t) {
rows: e.slice((r - 1) * 20, r * 20)
};
}
-function vTe(e) {
+function xTe(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 yTe(e, t, n, r, i, a) {
- return vY(e, t, n, r, i, a);
+function STe(e, t, n, r, i, a) {
+ return bY(e, t, n, r, i, a);
}
-function bTe(e, t) {
+function CTe(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
-function DY(e, t) {
+function kY(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
-var OY = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
-function xTe(e, t) {
- let n = DY(e, t), r = OY(e, t);
+var AY = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
+function wTe(e, t) {
+ let n = kY(e, t), r = AY(e, t);
return r ? `${n} · ${r}` : n;
}
-var STe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", CTe = (e) => String(e.tags || "").split("|").filter(Boolean), wTe = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
-function TTe(e) {
+var TTe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", ETe = (e) => String(e.tags || "").split("|").filter(Boolean), DTe = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
+function OTe(e) {
let t = e.candidates || [];
return {
candidateKey: t.length === 1 ? t[0].candidate_key : "",
assets: (e.preview_assets || []).map((e) => e.id)
};
}
-function ETe(e, t, n, r) {
+function kTe(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@ -62385,22 +62398,22 @@ function ETe(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var DTe = (e) => ({
+var ATe = (e) => ({
approved: "已通过资料",
rejected: "已忽略资料",
skipped: "已移至稍后处理",
restore: "已恢复待处理"
})[e];
-async function kY(e) {
- let t = await B(sTe, e);
- for (let e of ["later", "ignored"]) if (!t.queues?.[e]?.sections || !t.queues[e].counts) throw Error(`${CY[e]}状态未取得,请刷新或更新写入端`);
+async function jY(e) {
+ let t = await B(uTe, e);
+ for (let e of ["later", "ignored"]) if (!t.queues?.[e]?.sections || !t.queues[e].counts) throw Error(`${TY[e]}状态未取得,请刷新或更新写入端`);
return t;
}
-async function OTe(e) {
- let t = await V(cTe, e);
+async function jTe(e) {
+ let t = await V(dTe, e);
if (t.ok && t.asset_revisions) {
let e = t.asset_revisions;
- H.setQueryData(yY, (t) => t && mTe(t, (t) => ({
+ H.setQueryData(xY, (t) => t && _Te(t, (t) => ({
...t,
sections: {
...t.sections,
@@ -62416,33 +62429,33 @@ async function OTe(e) {
}
return t;
}
-function kTe(e, t) {
- let n = H.getQueryData(yY);
- return n && SY.flatMap((t) => TY(n, t).sections[e] || []).find((e) => e.item_key === t.item_key) || t;
+function MTe(e, t) {
+ let n = H.getQueryData(xY);
+ return n && wY.flatMap((t) => DY(n, t).sections[e] || []).find((e) => e.item_key === t.item_key) || t;
}
-var ATe = (e, t) => V(lTe, {
+var NTe = (e, t) => V(fTe, {
genre: e,
tag: t
});
-async function jTe(e) {
+async function PTe(e) {
await H.fetchQuery({
- queryKey: yY,
- queryFn: () => kY(e)
+ queryKey: xY,
+ queryFn: () => jY(e)
});
}
-function MTe(e, t, n) {
+function FTe(e, t, n) {
let r = new Set(t);
- r.size && H.setQueryData(yY, (t) => {
+ r.size && H.setQueryData(xY, (t) => {
if (!t) return t;
- let i = SY.flatMap((n) => TY(t, n).sections[e] || []).filter((e) => r.has(e.item_key));
+ let i = wY.flatMap((n) => DY(t, n).sections[e] || []).filter((e) => r.has(e.item_key));
if (!i.length) return t;
let a = {
skipped: "later",
rejected: "ignored",
restore: "pending",
approved: null
- }[n], o = Object.fromEntries(SY.map((o) => {
- let s = TY(t, o), c = (s.sections[e] || []).filter((e) => !r.has(e.item_key)), l = a === o ? [...c, ...i.map((e) => ({
+ }[n], o = Object.fromEntries(wY.map((o) => {
+ let s = DY(t, o), c = (s.sections[e] || []).filter((e) => !r.has(e.item_key)), l = a === o ? [...c, ...i.map((e) => ({
...e,
decision: n === "restore" ? "pending" : n,
decision_note: ""
@@ -62469,272 +62482,272 @@ function MTe(e, t, n) {
};
});
}
-var NTe = () => H.invalidateQueries({
- queryKey: yY,
+var ITe = () => H.invalidateQueries({
+ queryKey: xY,
exact: !0
});
-function PTe(e, t) {
+function LTe(e, t) {
return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${Cr(e.fetched_at)} 的缓存` : e?.error || t;
}
// src/react/data-cleanup/links.ts
-var FTe = "/api/links", AY = "/api/links/check", jY = "/api/links/prune", MY = ["links"], NY = ["links", "check"], PY = ["links", "prune"], ITe = {
+var RTe = "/api/links", MY = "/api/links/check", NY = "/api/links/prune", PY = ["links"], FY = ["links", "check"], IY = ["links", "prune"], zTe = {
official: "官网/事务所",
social: "社交账号",
catalog: "作品资料站",
source_reference: "资料出处"
};
-async function FY(e) {
+async function LY(e) {
let t = await e;
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
-var IY = (e) => B(FTe, e), LY = (e) => V(AY, { status_only: !0 }, "POST", e), LTe = ({ retry: e, checkId: t }) => FY(V(AY, e ? {
+var RY = (e) => B(RTe, e), zY = (e) => V(MY, { status_only: !0 }, "POST", e), BTe = ({ retry: e, checkId: t }) => LY(V(MY, e ? {
retry: e,
check_id: t
-} : { restart: !0 })), RY = (e) => B(jY, e), RTe = ({ checkId: e, ids: t }) => FY(V(jY, {
+} : { restart: !0 })), BY = (e) => B(NY, e), VTe = ({ checkId: e, ids: t }) => LY(V(NY, {
confirm: !0,
check_id: e,
background: !0,
...t ? { ids: t } : {}
-})), zY = (e) => Number(e || 0).toLocaleString(), zTe = (e) => `已删除 ${zY(e.removed)} 条;${e.marked ? `已隐退女优的 ${zY(e.marked)} 条留作不可点的记录;` : ""}保留 ${zY(e.recovered)} 条未确认失效的链接。`;
-function BTe(e) {
+})), VY = (e) => Number(e || 0).toLocaleString(), HTe = (e) => `已删除 ${VY(e.removed)} 条;${e.marked ? `已隐退女优的 ${VY(e.marked)} 条留作不可点的记录;` : ""}保留 ${VY(e.recovered)} 条未确认失效的链接。`;
+function UTe(e) {
let t = e.scope === "retry";
- return e.total ? `${t ? "已重验" : "已检查"} ${zY(e.checked)} / ${zY(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
+ return e.total ? `${t ? "已重验" : "已检查"} ${VY(e.checked)} / ${VY(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
// src/configuration-endpoints.ts
-var BY = "/api/configuration", VY = "/api/pick-folder", HY = "/api/settings", UY = "/api/follow/schedule", WY = "/api/feeds/schedule", GY = "/api/thumbnail-jobs", KY = ["settings"], qY = ["follow-schedule"], VTe = ["feed-schedule"], JY = ["thumbnail-jobs"], YY = "/api/media-processing", HTe = ["media-processing"], UTe = (e) => B(YY, e), XY = (e) => B(HY, e), WTe = (e) => B(UY, e), GTe = (e) => B(WY, e), KTe = (e) => B(GY, e);
-function qTe(e = H) {
+var HY = "/api/configuration", UY = "/api/pick-folder", WY = "/api/settings", GY = "/api/follow/schedule", KY = "/api/feeds/schedule", qY = "/api/thumbnail-jobs", JY = ["settings"], YY = ["follow-schedule"], XY = ["feed-schedule"], ZY = ["thumbnail-jobs"], WTe = "/api/media-processing", GTe = ["media-processing"], KTe = (e) => B(WTe, e), QY = (e) => B(WY, e), qTe = (e) => B(GY, e), JTe = (e) => B(KY, e), YTe = (e) => B(qY, e);
+function XTe(e = H) {
return e.fetchQuery({
- queryKey: KY,
- queryFn: ({ signal: e }) => XY(e),
+ queryKey: JY,
+ queryFn: ({ signal: e }) => QY(e),
staleTime: 0
}).catch(() => null);
}
-function ZY() {
+function $Y() {
return It({
- mutationFn: (e) => V(HY, e),
- onSuccess: (e) => H.setQueryData(KY, e)
+ mutationFn: (e) => V(WY, e),
+ onSuccess: (e) => H.setQueryData(JY, e)
});
}
-function JTe() {
+function ZTe() {
return It({
- mutationFn: (e) => V(UY, {
+ mutationFn: (e) => V(GY, {
enabled: e > 0,
interval_minutes: e || 60
}),
- onSuccess: (e) => H.setQueryData(qY, e)
+ onSuccess: (e) => H.setQueryData(YY, e)
});
}
-var YTe = {
+var QTe = {
follow: {
- url: `${UY}/run`,
- key: qY
+ url: `${GY}/run`,
+ key: YY
},
feed: {
- url: `${WY}/run`,
- key: VTe
+ url: `${KY}/run`,
+ key: XY
}
};
-function XTe(e) {
- let { url: t, key: n } = YTe[e];
+function $Te(e) {
+ let { url: t, key: n } = QTe[e];
return It({
mutationFn: () => V(t, {}),
onSuccess: (e) => H.setQueryData(n, e)
});
}
-var ZTe = (e) => e?.running ? 3e3 : !1;
-function QTe() {
+var eEe = (e) => e?.running ? 3e3 : !1;
+function tEe() {
return It({
- mutationFn: (e) => V(GY, { mode: e }),
- onSuccess: (e) => H.setQueryData(JY, e)
+ mutationFn: (e) => V(qY, { mode: e }),
+ onSuccess: (e) => H.setQueryData(ZY, e)
});
}
// src/react/data-cleanup/organize.ts
-var $Te = "/api/organize", eEe = "/api/organize/preview", tEe = "/api/organize/apply", nEe = "/api/organize/rollback", QY = ["organize"], rEe = "/api/organize/example", iEe = (e, t, n) => B(`${rEe}?${new URLSearchParams({
+var nEe = "/api/organize", rEe = "/api/organize/preview", iEe = "/api/organize/apply", aEe = "/api/organize/rollback", eX = ["organize"], oEe = "/api/organize/example", sEe = (e, t, n) => B(`${oEe}?${new URLSearchParams({
file_template: e,
dir_template: t
-})}`, n), $Y = (e) => B($Te, e);
-async function aEe(e) {
+})}`, n), tX = (e) => B(nEe, e);
+async function cEe(e) {
await H.fetchQuery({
- queryKey: QY,
- queryFn: () => $Y(e)
+ queryKey: eX,
+ queryFn: () => tX(e)
});
}
-var oEe = (e) => V(eEe, e), sEe = (e) => V(VY, { initial: e }), cEe = (e) => e.kind === "apply" ? V(tEe, {
+var lEe = (e) => V(rEe, e), uEe = (e) => V(UY, { initial: e }), dEe = (e) => e.kind === "apply" ? V(iEe, {
...e.request,
confirm: !0
-}) : V(nEe, { confirm: !0 });
-async function lEe(e) {
- H.setQueryData(QY, (t) => t && {
+}) : V(aEe, { confirm: !0 });
+async function fEe(e) {
+ H.setQueryData(eX, (t) => t && {
...t,
templates: e
});
try {
- await V(HY, { organizeTemplates: e });
+ await V(WY, { organizeTemplates: e });
} catch {}
}
-var uEe = (e, t) => e && {
+var pEe = (e, t) => e && {
...e,
...t
-}, dEe = /目录模板|分隔符|盘符|`\.`/;
-function fEe(e) {
+}, mEe = /目录模板|分隔符|盘符|`\.`/;
+function hEe(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
-var eX = (e) => Number(e || 0).toLocaleString();
-function pEe(e) {
- let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${eX(t)}`).join(" · ");
- return Number(e.counts?.change || 0) ? `${eX(e.counts.change)} 个文件会改名或移动,${eX(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
+var nX = (e) => Number(e || 0).toLocaleString();
+function gEe(e) {
+ let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${nX(t)}`).join(" · ");
+ return Number(e.counts?.change || 0) ? `${nX(e.counts.change)} 个文件会改名或移动,${nX(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
}
-function mEe(e) {
+function _Ee(e) {
let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);
return {
- text: t ? `已退回 ${eX(r)} 个文件${n ? `,${eX(n)} 行未能退回` : ""}。` : `已整理 ${eX(r)} 个文件${n ? `,${eX(n)} 行未能处理` : ""}。`,
+ text: t ? `已退回 ${nX(r)} 个文件${n ? `,${nX(n)} 行未能退回` : ""}。` : `已整理 ${nX(r)} 个文件${n ? `,${nX(n)} 行未能处理` : ""}。`,
failed: n,
rollback: t
};
}
// src/react/data-cleanup/orphan-records.ts
-var hEe = "/api/orphan-records", gEe = "/api/orphan-records/attach", tX = ["orphan-records"], _Ee = [
+var vEe = "/api/orphan-records", yEe = "/api/orphan-records/attach", rX = ["orphan-records"], bEe = [
["asset_preference", "喜欢与理由"],
["watch_queue", "稍后看"],
["playlist_item", "播放列表"],
["asset_quality_goal", "寻找更好版本"],
["activity_event", "观看历史"],
["asset_tag_preference", "隐藏标签"]
-], nX = (e) => B(hEe, e), vEe = (e, t) => V(gEe, {
+], iX = (e) => B(vEe, e), xEe = (e, t) => V(yEe, {
id: e,
target: t
-}), yEe = (e) => V(sY, {
+}), SEe = (e) => V(lY, {
ids: Array.isArray(e) ? e : [e],
operation: "delete"
-}), bEe = (e) => [
+}), CEe = (e) => [
e.rating ? `评分 ${e.rating}` : "",
e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",
e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""
-], xEe = (e) => [..._Ee.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...bEe(e)].filter(Boolean).join(" · "), SEe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", CEe = (e) => [e.name, SEe(e.duration)].filter(Boolean).join(" · "), rX = "/api/resource-sync/scan", iX = "/api/resource-sync/apply", aX = ["resource-sync", "scan"], oX = ["resource-sync", "apply"], sX = (e) => V(rX, {
+], wEe = (e) => [...bEe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...CEe(e)].filter(Boolean).join(" · "), TEe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", EEe = (e) => [e.name, TEe(e.duration)].filter(Boolean).join(" · "), aX = "/api/resource-sync/scan", oX = "/api/resource-sync/apply", sX = ["resource-sync", "scan"], cX = ["resource-sync", "apply"], lX = (e) => V(aX, {
background: !0,
status_only: !0
-}, "POST", e), wEe = () => V(rX, {
+}, "POST", e), DEe = () => V(aX, {
background: !0,
restart: !0
-}), cX = (e) => B(iX, e), TEe = (e) => V(iX, {
+}), uX = (e) => B(oX, e), OEe = (e) => V(oX, {
confirm: !0,
clean_cache: !0,
scan_id: e,
background: !0
-}), lX = (e) => (e?.sources ?? []).some((e) => _n.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
-async function EEe(e) {
- lX(H.getQueryData(yr)) && await Promise.all([H.fetchQuery({
- queryKey: aX,
- queryFn: () => sX(e)
+}), dX = (e) => (e?.sources ?? []).some((e) => _n.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
+async function kEe(e) {
+ dX(H.getQueryData(yr)) && await Promise.all([H.fetchQuery({
+ queryKey: sX,
+ queryFn: () => lX(e)
}), H.fetchQuery({
- queryKey: oX,
- queryFn: () => cX(e)
+ queryKey: cX,
+ queryFn: () => uX(e)
})]);
}
-var DEe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), uX = (e) => Number(e || 0).toLocaleString(), OEe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", dX = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), fX = (e) => e.vanish ? `${uX(e.vanish)} 条作品记录的文件已丢失,个人记录保留,可在「文件已丢失的记录」中转移个人记录或删除记录。` : "", pX = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", kEe = (e) => `将永久删除文件已不在盘上的 ${uX(dX(e))} 条记录和 ${uX(e.empty)} 个空文件夹,并清理 ${uX(e.cache?.files)} 个闲置缓存。${pX(e)}${fX(e)}`, AEe = (e) => `将永久删除文件已不在盘上的 ${uX(dX(e))} 条记录(含回收站里的)、${uX(e.empty)} 个空文件夹,并清理 ${uX(e.cache?.files)} 个闲置缓存。来源根目录保留。${pX(e)}${fX(e)}`, jEe = (e) => e.online ? [
- `找不到文件 · 共 ${uX(e.total)} 项`,
- e.vanish ? `${uX(e.vanish)} 项带个人记录` : "",
- e.empty ? `空文件夹 ${uX(e.empty)} 个` : ""
-].filter(Boolean).join(" · ") : `馆藏中有 ${uX(e.total)} 项`;
-function mX(e) {
+var AEe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), fX = (e) => Number(e || 0).toLocaleString(), jEe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", pX = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), mX = (e) => e.vanish ? `${fX(e.vanish)} 条作品记录的文件已丢失,个人记录保留,可在「文件已丢失的记录」中转移个人记录或删除记录。` : "", hX = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", MEe = (e) => `将永久删除文件已不在盘上的 ${fX(pX(e))} 条记录和 ${fX(e.empty)} 个空文件夹,并清理 ${fX(e.cache?.files)} 个闲置缓存。${hX(e)}${mX(e)}`, NEe = (e) => `将永久删除文件已不在盘上的 ${fX(pX(e))} 条记录(含回收站里的)、${fX(e.empty)} 个空文件夹,并清理 ${fX(e.cache?.files)} 个闲置缓存。来源根目录保留。${hX(e)}${mX(e)}`, PEe = (e) => e.online ? [
+ `找不到文件 · 共 ${fX(e.total)} 项`,
+ e.vanish ? `${fX(e.vanish)} 项带个人记录` : "",
+ e.empty ? `空文件夹 ${fX(e.empty)} 个` : ""
+].filter(Boolean).join(" · ") : `馆藏中有 ${fX(e.total)} 项`;
+function gX(e) {
let t = e.blocked ?? [], n = Number(e.dir_errors || 0), r = e.cache_blocked ?? [], i = Number(e.purged || 0) + Number(e.vanished || 0) + Number(e.reattached || 0) + Number(e.dirs_removed || 0) + Number(e.cache_removed || 0), a = t.length + n + r.length, o = t.slice(0, 3).map((e) => `「${e.name}」`).join("、") + (t.length > 3 ? " 等" : "");
return {
done: i,
left: a,
rest: [
- t.length ? `${uX(t.length)} 条记录没有删除(${o})` : "",
- n ? `${uX(n)} 个文件夹没有删除` : "",
- r.length ? `${uX(r.length)} 个缓存没有清理` : ""
+ t.length ? `${fX(t.length)} 条记录没有删除(${o})` : "",
+ n ? `${fX(n)} 个文件夹没有删除` : "",
+ r.length ? `${fX(r.length)} 个缓存没有清理` : ""
].filter(Boolean).join(",")
};
}
-var MEe = (e, t) => {
- let { rest: n } = mX(e), r = `已永久删除 ${uX(e.purged)} 条失效记录和 ${uX(e.dirs_removed)} 个空文件夹,清理 ${uX(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${uX(e.vanished)} 条作品记录已标为文件丢失,可在「文件已丢失的记录」中处理。` : "") + (e.reattached ? `${uX(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
+var FEe = (e, t) => {
+ let { rest: n } = gX(e), r = `已永久删除 ${fX(e.purged)} 条失效记录和 ${fX(e.dirs_removed)} 个空文件夹,清理 ${fX(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${fX(e.vanished)} 条作品记录已标为文件丢失,可在「文件已丢失的记录」中处理。` : "") + (e.reattached ? `${fX(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
return n ? `${r}${n},重新检查后可再试。` : r;
-}, hX = ["performer-delete-candidates"], gX = (e) => B("/api/performer/delete-candidates", e), NEe = (e, t) => B(`/api/performer/delete-plan?${new URLSearchParams({ ids: e.join(",") })}`, t), PEe = (e) => V("/api/performer/delete", {
+}, _X = ["performer-delete-candidates"], vX = (e) => B("/api/performer/delete-candidates", e), IEe = (e, t) => B(`/api/performer/delete-plan?${new URLSearchParams({ ids: e.join(",") })}`, t), LEe = (e) => V("/api/performer/delete", {
entity_ids: e.entity_ids,
plan: e.plan
-}), FEe = "/api/review?counts=1", _X = ["review", "counts"], IEe = "/api/ads?limit=1", vX = ["junk-summary"], yX = "/api/items?state=trash&limit=1", bX = ["trash-summary"], LEe = [
+}), REe = "/api/review?counts=1", yX = ["review", "counts"], zEe = "/api/ads?limit=1", bX = ["junk-summary"], xX = "/api/items?state=trash&limit=1", SX = ["trash-summary"], BEe = [
["video", "视频"],
["image", "图片"],
["archive", "压缩包"],
["audio", "音频"],
["url", "网址"],
["other", "其它"]
-], xX = (e) => B(FEe, e), SX = (e) => B(IEe, e), CX = (e) => {
+], CX = (e) => B(REe, e), wX = (e) => B(zEe, e), TX = (e) => {
let t = sessionStorage.getItem("peach.library");
- return B(t ? `${yX}&library=${encodeURIComponent(t)}` : yX, e);
-}, wX = (e) => Number(e || 0).toLocaleString();
-function REe(e) {
- let t = bY, 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 B(t ? `${xX}&library=${encodeURIComponent(t)}` : xX, e);
+}, EX = (e) => Number(e || 0).toLocaleString();
+function VEe(e) {
+ let t = SY, 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 zEe(e) {
+function HEe(e) {
if (!e) return "";
- let t = LEe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${wX(e.counts[t])}`);
- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${wX(e.dismissed_total)}`), t.join(" · ");
-}
-var BEe = [
- [_X, ({ signal: e }) => xX(e)],
- [gY, ({ signal: e }) => _Y(e)],
- [bX, ({ signal: e }) => CX(e)],
- [vX, ({ signal: e }) => SX(e)],
- [oY, ({ signal: e }) => cY(e)]
+ let t = BEe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${EX(e.counts[t])}`);
+ return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${EX(e.dismissed_total)}`), t.join(" · ");
+}
+var UEe = [
+ [yX, ({ signal: e }) => CX(e)],
+ [vY, ({ signal: e }) => yY(e)],
+ [SX, ({ signal: e }) => TX(e)],
+ [bX, ({ signal: e }) => wX(e)],
+ [cY, ({ signal: e }) => uY(e)]
];
-async function VEe(e) {
- for (let [t, n] of BEe) H.prefetchQuery({
+async function WEe(e) {
+ for (let [t, n] of UEe) H.prefetchQuery({
queryKey: t,
queryFn: () => n({ signal: e })
});
- await iH(e);
+ await oH(e);
}
-async function HEe(e, t) {
+async function GEe(e, t) {
switch (e) {
case "organize":
- await aEe(t);
+ await cEe(t);
break;
case "media-repair":
- await tTe(t);
+ await iTe(t);
break;
case "resource-sync":
- await aY(t), await EEe(t);
+ await sY(t), await kEe(t);
break;
case "orphan-records":
await H.prefetchQuery({
- queryKey: tX,
- queryFn: () => nX(t)
+ queryKey: rX,
+ queryFn: () => iX(t)
});
break;
case "batch-delete":
await H.prefetchQuery({
- queryKey: hX,
- queryFn: () => gX(t)
+ queryKey: _X,
+ queryFn: () => vX(t)
});
break;
case "links": await Promise.all([
H.prefetchQuery({
- queryKey: MY,
- queryFn: () => IY(t)
+ queryKey: PY,
+ queryFn: () => RY(t)
}),
H.prefetchQuery({
- queryKey: NY,
- queryFn: () => LY(t)
+ queryKey: FY,
+ queryFn: () => zY(t)
}),
H.prefetchQuery({
- queryKey: PY,
- queryFn: () => RY(t)
+ queryKey: IY,
+ queryFn: () => BY(t)
})
]);
}
}
// src/react/feed-new/feed-new.ts
-var TX = (e) => ["feed-new", e ?? "home"], UEe = 8, WEe = 1500;
-function GEe(e, t, n) {
+var DX = (e) => ["feed-new", e ?? "home"], KEe = 8, qEe = 1500;
+function JEe(e, t, n) {
let r = document.createElement("template");
r.innerHTML = e;
let i = [...r.content.querySelectorAll("img[src]")].slice(0, t).map((e) => {
@@ -62745,33 +62758,33 @@ function GEe(e, t, n) {
setTimeout(e, n);
})]);
}
-async function KEe(e, t, n) {
- let r = new URLSearchParams({ limit: String($j().value.feedLimit) });
+async function YEe(e, t, n) {
+ let r = new URLSearchParams({ limit: String(tM().value.feedLimit) });
e && r.set("entity", String(e));
let i = await Tn(`/api/feeds/discoveries?${r}`).catch(() => null), a = i && !i.error ? i : null, o = a?.items || [], s = t(a, e ? "" : "/jav?tab=releases");
- return n && o.length && await GEe(s, UEe, WEe), {
+ return n && o.length && await JEe(s, KEe, qEe), {
items: o,
html: s,
fetching: o.some((e) => e.cover_fetching && !e.has_cover)
};
}
-var EX = (e, t, n = !1) => ({
- queryKey: TX(e),
- queryFn: () => KEe(e, t, n),
+var OX = (e, t, n = !1) => ({
+ queryKey: DX(e),
+ queryFn: () => YEe(e, t, n),
staleTime: Infinity,
refetchInterval: (e) => e.state.data?.fetching ? 2e3 : !1
-}), DX = (e, t) => Tn("/api/feeds/discovery", {
+}), kX = (e, t) => Tn("/api/feeds/discovery", {
method: "POST",
body: JSON.stringify({
action: t,
ids: [e]
})
}).then(() => void 0, () => void 0);
-async function qEe(e) {
- H.removeQueries({ queryKey: TX(null) }), await H.fetchQuery(EX(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
+async function XEe(e) {
+ H.removeQueries({ queryKey: DX(null) }), await H.fetchQuery(OX(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
}
// src/react/entity-page/entity-page.ts
-var OX = [
+var AX = [
"loc",
"creator",
"tag",
@@ -62785,52 +62798,52 @@ var OX = [
"browse",
"folder",
"folder_recursive"
-], kX = {
+], jX = {
media: "videos",
set: 0
-}, AX = (e, t) => [
+}, MX = (e, t) => [
"entity",
e,
t
-], JEe = (e, t, n, r) => [
+], ZEe = (e, t, n, r) => [
"entity-items",
e,
t,
n,
r
-], jX = (e, t, n, r) => [
+], NX = (e, t, n, r) => [
"entity-photos",
e,
t,
n,
r
-], MX = (e) => String(e || "").split(",").filter(Boolean), YEe = (e, t) => MX(e).includes(t);
-function NX(e, t, n, r, i = 0) {
+], PX = (e) => String(e || "").split(",").filter(Boolean), QEe = (e, t) => PX(e).includes(t);
+function FX(e, t, n, r, i = 0) {
let a = new URLSearchParams();
- a.set(e, t), e === "tag" && (a.set("tag", [.../* @__PURE__ */ new Set([t, ...MX(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");
- for (let t of OX) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
+ a.set(e, t), e === "tag" && (a.set("tag", [.../* @__PURE__ */ new Set([t, ...PX(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");
+ for (let t of AX) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
return r.jav && a.set("jav", "1"), a;
}
-async function PX(e, t, n, r, i, a, o) {
- let s = NX(e, t, n, r, i);
+async function IX(e, t, n, r, i, a, o) {
+ let s = FX(e, t, n, r, i);
return o && (s.set("limit", String(o.limit)), s.delete("count"), o.sort && s.set("sort", o.sort), o.dir && s.set("dir", o.dir)), await Tn(`/api/items?${s}`, a ? { signal: a } : {});
}
-var FX = (e) => {
+var LX = (e) => {
let t = {
jav: e.jav,
seed: e.seed
- }, n = NX(e.kind, e.name, e.filters, t).toString();
+ }, n = FX(e.kind, e.name, e.filters, t).toString();
return {
- queryKey: JEe(e.kind, e.name, n, e.revision),
- queryFn: ({ signal: n }) => PX(e.kind, e.name, e.filters, t, 0, n),
+ queryKey: ZEe(e.kind, e.name, n, e.revision),
+ queryFn: ({ signal: n }) => IX(e.kind, e.name, e.filters, t, 0, n),
staleTime: Infinity
};
-}, IX = (e, t) => ({
- queryKey: AX(e, t),
+}, RX = (e, t) => ({
+ queryKey: MX(e, t),
queryFn: ({ signal: n }) => Tn(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`, { signal: n }),
staleTime: Infinity
});
-function XEe(e, t, n, r, i, a) {
+function $Ee(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)}` : ""}`;
@@ -62839,10 +62852,10 @@ function XEe(e, t, n, r, i, a) {
let s = r ? `&seed=${encodeURIComponent(r)}` : "";
return n ? `/api/photo-set?id=${n}&limit=120${s}` : r ? `/api/photos?${o}&limit=120${s}` : `/api/photos?${o}`;
}
-var LX = (e, t, n, r) => ({
- queryKey: jX(e, t, n, r),
+var zX = (e, t, n, r) => ({
+ queryKey: NX(e, t, n, r),
queryFn: async ({ pageParam: i }) => {
- let a = await Tn(XEe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
+ let a = await Tn($Ee(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
if (i) throw e;
return { error: String(e) };
});
@@ -62855,8 +62868,8 @@ var LX = (e, t, n, r) => ({
seed: t[0]?.seed || ""
} : void 0,
staleTime: Infinity
-}), RX = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
-async function ZEe(e) {
+}), BX = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
+async function eDe(e) {
let { kind: t, name: n } = e;
if (!e.restoreNavigation) for (let e of [
"entity",
@@ -62867,25 +62880,25 @@ async function ZEe(e) {
t,
n
] });
- e.resolvedEntity?.id && H.setQueryData(AX(t, n), e.resolvedEntity), await Promise.all([
- H.fetchQuery(IX(t, n)).then((t) => !t || t.error || !t.id ? null : (e.restoreNavigation || H.removeQueries({ queryKey: TX(Number(t.id)) }), H.fetchQuery(EX(Number(t.id), e.helpers.feedRowHtml, !0)))),
- H.fetchQuery(FX(e)),
- H.fetchInfiniteQuery(LX(t, n, 0, "")),
- e.media.media === "photos" && e.media.set ? H.fetchInfiniteQuery(LX(t, n, e.media.set, "")) : null
+ e.resolvedEntity?.id && H.setQueryData(MX(t, n), e.resolvedEntity), await Promise.all([
+ H.fetchQuery(RX(t, n)).then((t) => !t || t.error || !t.id ? null : (e.restoreNavigation || H.removeQueries({ queryKey: DX(Number(t.id)) }), H.fetchQuery(OX(Number(t.id), e.helpers.feedRowHtml, !0)))),
+ H.fetchQuery(LX(e)),
+ H.fetchInfiniteQuery(zX(t, n, 0, "")),
+ e.media.media === "photos" && e.media.set ? H.fetchInfiniteQuery(zX(t, n, e.media.set, "")) : null
]);
}
// src/identity-filter.ts
-var zX = [
+var VX = [
["all", "全部"],
["japanese_av", "女优"],
["amateur", "素人"],
["western", "西方"],
["blogger", "网黄博主"],
["animation", "动画作者"]
-], BX = "mb-4 flex flex-wrap gap-2";
-function QEe(e) {
- let t = zX.some(([t]) => t === e) ? e : "all";
- return `<div class="peach-react"><div aria-label="身份分类" class="${BX}">${zX.map(([e, n]) => Os({
+], HX = "mb-4 flex flex-wrap gap-2";
+function tDe(e) {
+ let t = VX.some(([t]) => t === e) ? e : "all";
+ return `<div class="peach-react"><div aria-label="身份分类" class="${HX}">${VX.map(([e, n]) => Os({
variant: e === t ? "primary" : "secondary",
size: "small",
label: n,
@@ -62893,45 +62906,45 @@ function QEe(e) {
})).join("")}</div></div>`;
}
// src/react/follow/online-vocab.ts
-var $Ee = "/api/follow/authors", eDe = "/api/follow/tags", tDe = (e) => [
+var nDe = "/api/follow/authors", rDe = "/api/follow/tags", iDe = (e) => [
"follow",
"authors",
e
-], nDe = (e, t) => [
+], aDe = (e, t) => [
"follow",
"tags",
e,
t
];
-function rDe(e, t, n) {
+function oDe(e, t, n) {
let r = new URLSearchParams({
limit: String(t),
offset: String(n)
});
- return e && r.set("q", e), `${$Ee}?${r}`;
+ return e && r.set("q", e), `${nDe}?${r}`;
}
-function iDe(e, t, n, r) {
+function sDe(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), `${eDe}?${i}`;
+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${rDe}?${i}`;
}
-var aDe = (e, t, n, r) => B(rDe(e, t, n), r), oDe = (e, t, n, r, i) => B(iDe(e, t, n, r), i), sDe = "/api/index", VX = {
+var cDe = (e, t, n, r) => B(oDe(e, t, n), r), lDe = (e, t, n, r, i) => B(sDe(e, t, n, r), i), uDe = "/api/index", UX = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
series: "系列",
tags: "标签"
-}, cDe = {
+}, dDe = {
performers: "performer",
creators: "creator",
studios: "studio",
agencies: "agency",
series: "series"
-}, HX = [
+}, WX = [
["all", "全部"],
["meta", "影片属性"],
["relationship", "人物关系"],
@@ -62941,31 +62954,31 @@ var aDe = (e, t, n, r) => B(rDe(e, t, n), r), oDe = (e, t, n, r, i) => B(iDe(e,
["story", "故事剧情"],
["position", "性交体位"],
["general", "其他内容"]
-], UX = [
+], GX = [
["all", "全部"],
["general", "通用"],
["artist", "创作者"],
["character", "角色"],
["copyright", "作品"],
["metadata", "元数据"]
-], WX = {
+], KX = {
people: 120,
tags: 100
-}, GX = (e) => e !== "tags", KX = (e) => e === "studios" || e === "agencies";
-function qX(e) {
- if (e.kind === "creators" && e.category === "animation") return qX({
+}, qX = (e) => e !== "tags", JX = (e) => e === "studios" || e === "agencies";
+function YX(e) {
+ if (e.kind === "creators" && e.category === "animation") return YX({
...e,
kind: "performers",
scope: "local"
});
- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (e.kind === "tags" ? t === "online" ? UX : HX : e.kind === "performers" && t === "local" ? zX : []).some(([t]) => t === e.category);
+ let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (e.kind === "tags" ? t === "online" ? GX : WX : e.kind === "performers" && t === "local" ? VX : []).some(([t]) => t === e.category);
return {
...e,
scope: t,
category: n ? e.category : "all"
};
}
-function JX(e) {
+function XX(e) {
let { kind: t, q: n, scope: r, category: i } = e;
return t === "tags" ? r === "online" ? {
what: "online-tags",
@@ -62985,50 +62998,50 @@ function JX(e) {
...i && i !== "all" ? { category: i } : {}
};
}
-var YX = (e, t, n = "all") => [
+var ZX = (e, t, n = "all") => [
"index",
e,
t,
...e === "tags" || n !== "all" ? [n] : []
];
-function XX(e, t, n, r, i) {
+function QX(e, t, n, r, i) {
let a = new URLSearchParams({
kind: e,
limit: String(r),
offset: String(i)
});
- return t && a.set("q", t), n !== "all" && a.set("category", n), `${sDe}?${a}`;
+ return t && a.set("q", t), n !== "all" && a.set("category", n), `${uDe}?${a}`;
}
-function ZX(e, t = WX.tags) {
- let n = e.what === "people" || e.what === "online-authors" ? WX.people : t, r = {
+function $X(e, t = KX.tags) {
+ let n = e.what === "people" || e.what === "online-authors" ? KX.people : t, r = {
initialPageParam: 0,
getNextPageParam: (e, t) => e.has_more ? t.reduce((e, t) => e + t.items.length, 0) : void 0
};
switch (e.what) {
case "people": return {
...r,
- queryKey: YX(e.kind, e.q, e.category || "all"),
- queryFn: ({ pageParam: t, signal: r }) => B(XX(e.kind, e.q, e.category || "all", n, t), r)
+ queryKey: ZX(e.kind, e.q, e.category || "all"),
+ queryFn: ({ pageParam: t, signal: r }) => B(QX(e.kind, e.q, e.category || "all", n, t), r)
};
case "tags": return {
...r,
- queryKey: YX("tags", e.q, e.category),
- queryFn: ({ pageParam: t, signal: r }) => B(XX("tags", e.q, e.category, n, t), r)
+ queryKey: ZX("tags", e.q, e.category),
+ queryFn: ({ pageParam: t, signal: r }) => B(QX("tags", e.q, e.category, n, t), r)
};
case "online-authors": return {
...r,
- queryKey: tDe(e.q),
- queryFn: ({ pageParam: t, signal: r }) => aDe(e.q, n, t, r)
+ queryKey: iDe(e.q),
+ queryFn: ({ pageParam: t, signal: r }) => cDe(e.q, n, t, r)
};
case "online-tags": return {
...r,
- queryKey: nDe(e.q, e.category),
- queryFn: ({ pageParam: t, signal: r }) => oDe(e.q, e.category, n, t, r)
+ queryKey: aDe(e.q, e.category),
+ queryFn: ({ pageParam: t, signal: r }) => lDe(e.q, e.category, n, t, r)
};
}
}
-async function lDe(e, t) {
- let n = ZX(JX(qX(e)));
+async function fDe(e, t) {
+ let n = $X(XX(YX(e)));
await H.fetchInfiniteQuery({
queryKey: n.queryKey,
queryFn: ({ pageParam: e }) => n.queryFn({
@@ -63040,20 +63053,20 @@ async function lDe(e, t) {
staleTime: Infinity
});
}
-var uDe = (e) => e ? e.pages.flatMap((e) => e.items) : [], dDe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, QX = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", fDe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, pDe = {
+var pDe = (e) => e ? e.pages.flatMap((e) => e.items) : [], mDe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, eZ = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", hDe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, gDe = {
numeric: !0,
sensitivity: "base"
};
-function $X(e, t) {
+function tZ(e, t) {
let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", pDe))) {
+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", gDe))) {
let e = er(t(r.k).normalize("NFKC"), "").toUpperCase(), i = /[A-Z]/.test(e) ? e : /[0-9]/.test(e) ? "#" : /[㐀-鿿]/.test(e) ? "中文" : "其他", a = n.get(i);
a ? a.push(r) : n.set(i, [r]);
}
return [...n].sort(([e], [t]) => e.localeCompare(t, "zh-CN"));
}
// src/react/index/index-people.tsx
-function eZ({ html: e, face: t, company: n, big: r }) {
+function nZ({ html: e, face: t, company: n, big: r }) {
let i = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");
@@ -63065,18 +63078,18 @@ function eZ({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var mDe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", hDe = uV("rss");
-function tZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a, ...o }) {
+var _De = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", vDe = fV("rss");
+function rZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a, ...o }) {
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
...o,
"data-index-cell": "",
onClick: a,
- className: bU({
+ className: SU({
radius: "plain",
padding: "none",
interactive: !0,
- className: `${mDe} ${n ? "items-stretch text-left" : "items-center text-center"}`
+ className: `${_De} ${n ? "items-stretch text-left" : "items-center text-center"}`
}),
children: [
r,
@@ -63085,10 +63098,10 @@ function tZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a
role: "img",
"aria-label": "已订阅新作",
className: "index-feed-mark absolute top-4 right-4 z-2 inline-flex",
- children: /* @__PURE__ */ (0, I.jsx)(UU, {
+ children: /* @__PURE__ */ (0, I.jsx)(GU, {
variant: "caption",
color: "soft",
- children: /* @__PURE__ */ (0, I.jsx)(hDe, {})
+ children: /* @__PURE__ */ (0, I.jsx)(vDe, {})
})
}) : null,
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -63104,9 +63117,9 @@ function tZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a
]
});
}
-function nZ({ kind: e, items: t, layout: n, props: r }) {
- let i = KX(e) || e === "series";
- tL();
+function iZ({ kind: e, items: t, layout: n, props: r }) {
+ let i = JX(e) || e === "series";
+ rL();
let a = n === "big";
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-index-grid": "",
@@ -63114,16 +63127,16 @@ function nZ({ 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 || cDe[e], o = r.personAvatar(t, n, a);
- return /* @__PURE__ */ (0, I.jsx)(tZ, {
+ let n = t.entity_kind || dDe[e], o = r.personAvatar(t, n, a);
+ return /* @__PURE__ */ (0, I.jsx)(rZ, {
"data-k": t.k,
"data-kind": n,
name: nn(n, t.k, t.entity_id),
- readout: `${fDe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
+ readout: `${hDe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
big: a,
following: t.following,
onPress: () => r.openEntity(n, t.k),
- children: /* @__PURE__ */ (0, I.jsx)(eZ, {
+ children: /* @__PURE__ */ (0, I.jsx)(nZ, {
html: o.html,
face: o.face,
company: i,
@@ -63133,15 +63146,15 @@ function nZ({ kind: e, items: t, layout: n, props: r }) {
})
});
}
-function gDe({ items: e, layout: t, props: n }) {
- tL();
+function yDe({ items: e, layout: t, props: n }) {
+ rL();
let r = t === "big";
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-index-grid": "",
"data-layout": t,
"data-cells": "people",
className: "index-grid-person gap-3",
- children: e.map((e) => /* @__PURE__ */ (0, I.jsx)(tZ, {
+ children: e.map((e) => /* @__PURE__ */ (0, I.jsx)(rZ, {
"data-follow-author": e.key,
"data-kind": "performer",
name: nn("creator", e.k, e.entity_id),
@@ -63150,7 +63163,7 @@ function gDe({ items: e, layout: t, props: n }) {
onPress: () => {
e.entity_id ? n.openEntity("creator", e.k) : e.held_by ? n.openEntity("creator", e.held_by) : n.openFollowAuthor(e.key);
},
- children: /* @__PURE__ */ (0, I.jsx)(eZ, {
+ children: /* @__PURE__ */ (0, I.jsx)(nZ, {
html: n.authorAvatar(e),
company: !1,
big: r
@@ -63159,8 +63172,8 @@ function gDe({ items: e, layout: t, props: n }) {
});
}
// src/board-tooltip.ts
-var rZ = (e) => e.replace(/\s+/g, " ").trim();
-function iZ(e) {
+var aZ = (e) => e.replace(/\s+/g, " ").trim();
+function oZ(e) {
let t = document.createTreeWalker(e, NodeFilter.SHOW_TEXT), n = "", r;
for (; r = t.nextNode();) {
let e = r.parentElement;
@@ -63168,12 +63181,12 @@ function iZ(e) {
let t = document.createRange();
t.selectNodeContents(r), [...t.getClientRects()].some((e) => e.width > 0 && e.height > 0) && getComputedStyle(e).visibility === "visible" && (n += r.textContent);
}
- return rZ(n);
+ return aZ(n);
}
-function aZ(e) {
+function sZ(e) {
let t = e.getBoundingClientRect();
if (t.width && t.height) {
- if (e.matches("a") && iZ(e) && !oZ(e)) {
+ if (e.matches("a") && oZ(e) && !cZ(e)) {
let t = document.createRange();
t.selectNodeContents(e);
let n = t.getBoundingClientRect();
@@ -63186,7 +63199,7 @@ function aZ(e) {
let r = Math.min(...n.map((e) => e.left)), i = Math.min(...n.map((e) => e.top));
return new DOMRect(r, i, Math.max(...n.map((e) => e.right)) - r, Math.max(...n.map((e) => e.bottom)) - i);
}
-function oZ(e) {
+function cZ(e) {
if (e.matches(".middle-truncated") || e.querySelector(".middle-truncated") || [e, ...e.querySelectorAll("*")].some((e) => e.clientWidth > 0 && (e.scrollWidth > e.clientWidth + 1 || e.scrollHeight > e.clientHeight + 1))) return !0;
let t = document.createRange();
t.selectNodeContents(e);
@@ -63197,19 +63210,19 @@ function oZ(e) {
}
return !1;
}
-function _De() {
+function bDe() {
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, o = !1, s = () => e.hasAttribute("data-copy-key") && !!document.querySelector("[data-copy-bar]"), c = () => s() && (o || !!e.querySelector("[data-copy-inline],[contenteditable]") || !!document.querySelector("[data-copy-choice],[data-copy-bar][aria-busy=\"true\"]")), l = (t) => {
- let n = aZ(t), r = e.getBoundingClientRect();
+ let n = sZ(t), r = e.getBoundingClientRect();
n && (e.style.left = `${Math.max(8, Math.min(innerWidth - r.width - 8, n.left + (n.width - r.width) / 2))}px`, e.style.top = `${n.top >= r.height + 16 ? n.top - r.height - 8 : Math.min(innerHeight - r.height - 8, n.bottom + 8)}px`);
}, u = () => {
clearTimeout(a), !c() && (clearTimeout(i), e.matches(":popover-open") && e.hidePopover(), e.hidden = !0, e.removeAttribute("data-copy-key"), t && (t.hasAttribute("title") || (t.title = n), r === null ? t.removeAttribute("aria-describedby") : t.setAttribute("aria-describedby", r)), t = null);
}, d = (a, o) => {
if (c() || !(a instanceof Element)) return;
let d = a.closest("[title]");
- (!t?.contains(a) || d && !d.contains(t)) && d && !d.closest(".vjs-control") && d.title.trim() && (u(), t = d, n = d.title, r = d.getAttribute("aria-describedby"), d.removeAttribute("title"), (iZ(d) !== rZ(n) || oZ(d)) && (i = setTimeout(() => {
- if (t !== d || !d.isConnected || !aZ(d)) return;
+ (!t?.contains(a) || d && !d.contains(t)) && d && !d.closest(".vjs-control") && d.title.trim() && (u(), t = d, n = d.title, r = d.getAttribute("aria-describedby"), d.removeAttribute("title"), (oZ(d) !== aZ(n) || cZ(d)) && (i = setTimeout(() => {
+ if (t !== d || !d.isConnected || !sZ(d)) return;
(d.closest("dialog[open]") ?? document.body).append(e), e.textContent = n;
let i = d.getAttribute("data-tooltip-copy-key");
i ? e.setAttribute("data-copy-key", i) : e.removeAttribute("data-copy-key"), e.style.pointerEvents = s() ? "auto" : "", e.hidden = !1, e.showPopover(), l(d), d.setAttribute("aria-describedby", [r, e.id].filter(Boolean).join(" "));
@@ -63234,32 +63247,32 @@ function _De() {
e.key === "Escape" && !c() && u();
}), document.addEventListener("scroll", (n) => {
if (!t || !ds(n, t)) return;
- let r = aZ(t);
+ let r = sZ(t);
t.matches(":focus-visible") && r && r.bottom > 0 && r.top < innerHeight ? e.matches(":popover-open") && l(t) : u();
}, !0), window.addEventListener("resize", u);
}
// src/board-controls.ts
-function sZ(e) {
+function lZ(e) {
let t = Number(e.min) || 0, n = Number(e.max) || 100, r = Number(e.value), i = n > t ? Math.max(0, Math.min(100, (r - t) / (n - t) * 100)) : 0;
e.style.setProperty("--board-range-value", `${i}%`);
}
-var cZ = /* @__PURE__ */ new WeakSet();
-function vDe() {
- if (cZ.has(document)) return;
- cZ.add(document);
+var uZ = /* @__PURE__ */ new WeakSet();
+function xDe() {
+ if (uZ.has(document)) return;
+ uZ.add(document);
let e = (e) => {
- e.querySelectorAll("input[type=range]").forEach(sZ), bDe(e), yDe(e);
+ e.querySelectorAll("input[type=range]").forEach(lZ), CDe(e), SDe(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]") && sZ(t), e(t));
+ for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && lZ(t), e(t));
}).observe(document.body, {
subtree: !0,
childList: !0
}), document.addEventListener("input", (e) => {
- e.target instanceof HTMLInputElement && e.target.type === "range" && sZ(e.target);
- }), _De();
+ e.target instanceof HTMLInputElement && e.target.type === "range" && lZ(e.target);
+ }), bDe();
}
-function yDe(e) {
+function SDe(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;
@@ -63283,15 +63296,15 @@ function yDe(e) {
r.observe(e);
});
}
-var lZ = /* @__PURE__ */ new Map();
-function bDe(e) {
+var dZ = /* @__PURE__ */ new Map();
+function CDe(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;
e.dataset.boardSegments = "true";
let t = document.createElement("span");
t.className = "board-segment-thumb", t.setAttribute("aria-hidden", "true"), e.prepend(t);
- let n = e.className + (e.getAttribute("aria-label") ?? ""), r = lZ.get(n) ?? null, i = () => {
+ let n = e.className + (e.getAttribute("aria-label") ?? ""), r = dZ.get(n) ?? null, i = () => {
let i = e.querySelector("label:has(input:checked),button[aria-selected=true]");
if (!i || !i.offsetWidth) return;
let a = {
@@ -63300,7 +63313,7 @@ function bDe(e) {
w: i.offsetWidth,
h: i.offsetHeight
};
- Wc(t, r, a, "x"), r = a, lZ.set(n, a);
+ Wc(t, r, a, "x"), r = a, dZ.set(n, a);
};
e.addEventListener("change", i);
let a = new MutationObserver(i);
@@ -63316,8 +63329,8 @@ function bDe(e) {
});
}
// src/react/photo-lightbox/photo-lightbox.ts
-var uZ = "/vendor/swiper/14.4.0/", dZ = null, xDe = () => dZ ??= Promise.all([new Promise((e, t) => {
- let n = `${uZ}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
+var fZ = "/vendor/swiper/14.4.0/", pZ = null, wDe = () => pZ ??= Promise.all([new Promise((e, t) => {
+ let n = `${fZ}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
if (r?.sheet) {
e();
return;
@@ -63331,11 +63344,11 @@ var uZ = "/vendor/swiper/14.4.0/", dZ = null, xDe = () => dZ ??= Promise.all([ne
return;
}
let r = document.createElement("script");
- r.src = `${uZ}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
+ r.src = `${fZ}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
})]).then(([, e]) => e).catch((e) => {
- throw dZ = null, e;
+ throw pZ = null, e;
});
-function SDe(e, t, n) {
+function TDe(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);
@@ -63356,46 +63369,46 @@ function SDe(e, t, n) {
}
};
}
-var fZ = (e) => {
+var mZ = (e) => {
let t = Number(e) || 0;
return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : Xn(t)).replace(" ", "\xA0") : "大小未知";
-}, CDe = (e) => e.asset?.name || e.name || "未命名图片";
-function wDe(e, t) {
+}, EDe = (e) => e.asset?.name || e.name || "未命名图片";
+function DDe(e, t) {
let n = e.asset;
- if (n) return [nr[n.location ?? ""] || n.location || "来源未知", fZ(n.size)].join(" · ");
+ if (n) return [nr[n.location ?? ""] || n.location || "来源未知", mZ(n.size)].join(" · ");
let r = t?.[0] && t[1] ? `${t[0]} × ${t[1]}` : "";
return [
e.source || "在线图片",
r,
- e.size ? fZ(e.size) : ""
+ e.size ? mZ(e.size) : ""
].filter(Boolean).join(" · ");
}
// src/react/photo-lightbox/photo-lightbox-dialog.tsx
-var pZ = null, mZ = null, TDe = 0;
-function EDe() {
- return mZ && pZ?.isConnected || (mZ?.unmount(), pZ = document.createElement("div"), pZ.className = "peach-react", pZ.dataset.photoLightboxHost = "", document.body.append(pZ), mZ = (0, zt.createRoot)(pZ)), mZ;
+var hZ = null, gZ = null, ODe = 0;
+function kDe() {
+ return gZ && hZ?.isConnected || (gZ?.unmount(), hZ = document.createElement("div"), hZ.className = "peach-react", hZ.dataset.photoLightboxHost = "", document.body.append(hZ), gZ = (0, zt.createRoot)(hZ)), gZ;
}
-async function hZ(e, t, n) {
+async function _Z(e, t, n) {
if (!t.length || e < 0 || e >= t.length) return;
let r;
try {
- r = await xDe();
+ r = await wDe();
} catch {
window.open(t[e].src, "_blank", "noopener");
return;
}
- let i = EDe();
- (0, Rt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(DDe, {
+ let i = kDe();
+ (0, Rt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(ADe, {
slides: t,
index: e,
Swiper: r,
host: n ?? null
- }, ++TDe)));
+ }, ++ODe)));
}
-function gZ() {
- mZ && (0, Rt.flushSync)(() => mZ.render(null));
+function vZ() {
+ gZ && (0, Rt.flushSync)(() => gZ.render(null));
}
-function DDe({ slides: e, index: t, Swiper: n, host: r }) {
+function ADe({ slides: e, index: t, Swiper: n, host: r }) {
let i = e.length > 1, a = (0, F.useId)(), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (0, F.useRef)(null), [_, v] = (0, F.useState)(t), [y, b] = (0, F.useState)(100), [x, S] = (0, F.useState)({}), [C, w] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [T, E] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [D, O] = (0, F.useState)(!1), [k, A] = (0, F.useState)({
at: t,
text: ""
@@ -63438,7 +63451,7 @@ function DDe({ slides: e, index: t, Swiper: n, host: r }) {
v(this.activeIndex), i(this.activeIndex);
} }
});
- i(t, 0), h.current = SDe(e, a, b);
+ i(t, 0), h.current = TDe(e, a, b);
let m = il(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();
};
@@ -63455,13 +63468,13 @@ function DDe({ slides: e, index: t, Swiper: n, host: r }) {
});
y.observe(e);
let x = (e) => {
- e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : gZ());
+ e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : vZ());
};
return document.addEventListener("keydown", x, !0), () => {
document.removeEventListener("keydown", x, !0), _(), y.disconnect(), a.destroy(!0, !0), r.destroy(!0, !0), h.current = null, g.current = null, e.close(), document.body.classList.remove("photolight-open");
};
}, []), (0, F.useLayoutEffect)(() => {
- m.current && sZ(m.current);
+ m.current && lZ(m.current);
}, [y]);
let j = e[_], M = j.asset ?? null, ee = async (e) => {
if (!M || !r || e.getAttribute("aria-busy") === "true") return;
@@ -63492,18 +63505,18 @@ function DDe({ slides: e, index: t, Swiper: n, host: r }) {
"data-photo-lightbox": "",
"data-has-strip": i ? "" : void 0,
onCancel: (e) => {
- e.preventDefault(), gZ();
+ e.preventDefault(), vZ();
},
onClick: (e) => {
let t = e.target;
- g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && gZ();
+ g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && vZ();
},
children: [
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-photo-close": "",
"aria-label": "关闭",
- onClick: gZ,
+ onClick: vZ,
dangerouslySetInnerHTML: { __html: R("x") }
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -63639,10 +63652,10 @@ function DDe({ slides: e, index: t, Swiper: n, host: r }) {
id: `${a}-title`,
"data-middle-truncate": "",
tabIndex: -1,
- children: CDe(j)
+ children: EDe(j)
}, _), /* @__PURE__ */ (0, I.jsx)("span", {
"data-photo-detail-meta": "",
- children: wDe(j, x[_])
+ children: DDe(j, x[_])
})]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -63680,41 +63693,41 @@ function DDe({ slides: e, index: t, Swiper: n, host: r }) {
});
}
// src/react/entity-body/entity-body-page.tsx
-function ODe(e) {
- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, I.jsx)(kDe, {
+function jDe(e) {
+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, I.jsx)(MDe, {
roster: e.roster,
props: e
- }) : e.view === "videos" ? /* @__PURE__ */ (0, I.jsx)(ADe, { ...e }) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, I.jsx)(NDe, {
+ }) : e.view === "videos" ? /* @__PURE__ */ (0, I.jsx)(NDe, { ...e }) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, I.jsx)(IDe, {
photos: e.photos,
props: e
}, e.photos.revision) : null;
}
-var _Z = WX.people;
-function kDe({ roster: e, props: t }) {
+var yZ = KX.people;
+function MDe({ roster: e, props: t }) {
let { helpers: n, actions: r } = t, i = (0, F.useMemo)(() => ({
personAvatar: n.personAvatar,
openEntity: r.openEntity
- }), [n, r]), [a, o] = (0, F.useState)(_Z), s = (0, F.useMemo)(() => e.people.slice(0, a), [e.people, a]), c = (0, F.useCallback)(async () => {
- o((e) => e + _Z);
+ }), [n, r]), [a, o] = (0, F.useState)(yZ), s = (0, F.useMemo)(() => e.people.slice(0, a), [e.people, a]), c = (0, F.useCallback)(async () => {
+ o((e) => e + yZ);
}, []);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(nZ, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(iZ, {
kind: e.kind,
items: s,
layout: e.layout,
props: i
- }), a < e.people.length ? /* @__PURE__ */ (0, I.jsx)(rY, {
+ }), a < e.people.length ? /* @__PURE__ */ (0, I.jsx)(aY, {
entity: !0,
load: c,
enabled: () => !0
}, a) : null] });
}
-function ADe(e) {
+function NDe(e) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-grid": "",
- children: /* @__PURE__ */ (0, I.jsx)(IG, {
+ children: /* @__PURE__ */ (0, I.jsx)(RG, {
pending: !e.items,
skeletonHtml: e.skeletonHtml,
- children: e.items ? /* @__PURE__ */ (0, I.jsx)(tY, {
+ children: e.items ? /* @__PURE__ */ (0, I.jsx)(rY, {
mode: "entity",
entityKey: e.listScope || `${e.kind}:${e.name}`,
revision: e.revision,
@@ -63736,33 +63749,33 @@ function ADe(e) {
})
});
}
-var jDe = (e) => Array.from({ length: e.n }, (t, n) => ({
+var PDe = (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 || "官方样张"
-})), vZ = (e) => e.sample === !0, yZ = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, bZ = (e) => vZ(e) ? `/sample-thumb?${yZ(e)}` : `/photo-thumb?id=${e.id}`, MDe = (e) => vZ(e) ? {
- src: `/sample-image?${yZ(e)}`,
- thumb: bZ(e),
+})), bZ = (e) => e.sample === !0, xZ = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, SZ = (e) => bZ(e) ? `/sample-thumb?${xZ(e)}` : `/photo-thumb?id=${e.id}`, FDe = (e) => bZ(e) ? {
+ src: `/sample-image?${xZ(e)}`,
+ thumb: SZ(e),
name: e.name,
asset: null,
source: e.source
} : {
src: `/photo?id=${e.id}`,
- thumb: bZ(e),
+ thumb: SZ(e),
name: e.name || "",
asset: e
};
-function NDe({ photos: e, props: t }) {
- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, F.useMemo)(() => [...e.codeSets.flatMap(jDe), ...e.items], [e]), [s, c] = (0, F.useState)(() => /* @__PURE__ */ new Set()), l = (0, F.useCallback)((e) => c((t) => {
+function IDe({ photos: e, props: t }) {
+ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, F.useMemo)(() => [...e.codeSets.flatMap(PDe), ...e.items], [e]), [s, c] = (0, F.useState)(() => /* @__PURE__ */ new Set()), l = (0, F.useCallback)((e) => c((t) => {
if (t.has(e)) return t;
let n = new Set(t);
return n.add(e), n;
}), []), u = (0, F.useCallback)((e) => {
- hZ(e, o.map(MDe), { revealSource: i.revealSource });
- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, I.jsx)(PDe, {
+ _Z(e, o.map(FDe), { revealSource: i.revealSource });
+ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, I.jsx)(LDe, {
item: e,
index: t,
lost: s.has(t),
@@ -63780,7 +63793,7 @@ function NDe({ photos: e, props: t }) {
};
}), h = p;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(xZ, {
+ m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(CZ, {
label: e.code,
title: e.name,
meta: [
@@ -63792,7 +63805,7 @@ function NDe({ photos: e, props: t }) {
...f,
children: o.slice(t, t + e.n).map((e, n) => d(e, t + n))
})] }, e.code)),
- m.length && e.total ? /* @__PURE__ */ (0, I.jsx)(xZ, {
+ m.length && e.total ? /* @__PURE__ */ (0, I.jsx)(CZ, {
label: "本地图片",
meta: `${e.total.toLocaleString()} 张`
}) : null,
@@ -63801,14 +63814,14 @@ function NDe({ photos: e, props: t }) {
"data-local-wall": "",
children: e.items.map((e, t) => s.has(h + t) ? null : d(e, h + t))
}),
- e.hasMore ? /* @__PURE__ */ (0, I.jsx)(rY, {
+ e.hasMore ? /* @__PURE__ */ (0, I.jsx)(aY, {
entity: !0,
load: i.loadMorePhotos,
enabled: () => a?.() !== !1
}, e.items.length) : null
] });
}
-function xZ({ label: e, title: t, meta: n }) {
+function CZ({ label: e, title: t, meta: n }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-photo-group": "",
children: [
@@ -63825,7 +63838,7 @@ function xZ({ label: e, title: t, meta: n }) {
]
});
}
-function PDe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
+function LDe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
let a = e.name ?? "";
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -63834,7 +63847,7 @@ function PDe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
title: a,
onClick: () => i(t),
children: n ? null : /* @__PURE__ */ (0, I.jsx)("img", {
- src: bZ(e),
+ src: SZ(e),
alt: a,
loading: "lazy",
decoding: "async",
@@ -63844,9 +63857,9 @@ function PDe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
});
}
// src/react/background-job.ts
-var FDe = 2e3, IDe = (e) => e, LDe = (e, t) => t;
-function SZ(e) {
- let { queryKey: t, jobOf: n = IDe, withJob: r = LDe, idlePollMs: i } = e, [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(null), l = (0, F.useRef)(e);
+var RDe = 2e3, zDe = (e) => e, BDe = (e, t) => t;
+function wZ(e) {
+ let { queryKey: t, jobOf: n = zDe, withJob: r = BDe, idlePollMs: i } = e, [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(null), l = (0, F.useRef)(e);
(0, F.useEffect)(() => {
l.current = e;
});
@@ -63855,7 +63868,7 @@ function SZ(e) {
queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),
refetchInterval: (e) => {
let t = e.state.data;
- return t !== void 0 && n(t)?.status === "running" ? FDe : i ?? !1;
+ return t !== void 0 && n(t)?.status === "running" ? RDe : i ?? !1;
}
}), d = It({
mutationFn: (e) => l.current.start(e),
@@ -63879,13 +63892,13 @@ function SZ(e) {
};
}
// src/react/follow-feed/follow-check.ts
-var CZ = (e) => [...new Set(e)].filter((e) => Number.isSafeInteger(e) && e > 0);
-function RDe(e, t) {
- return t ? CZ(e.filter((e) => e.author_key === t || t.startsWith("entity:") && String(e.entity_id) === t.slice(7)).map((e) => e.id)) : [];
+var TZ = (e) => [...new Set(e)].filter((e) => Number.isSafeInteger(e) && e > 0);
+function VDe(e, t) {
+ return t ? TZ(e.filter((e) => e.author_key === t || t.startsWith("entity:") && String(e.entity_id) === t.slice(7)).map((e) => e.id)) : [];
}
// src/react/follow-feed/follow-check-button.tsx
-function zDe({ sources: e, report: t }) {
- let n = CZ(e), [r, i] = (0, F.useState)(""), { running: a, start: o } = SZ({
+function HDe({ sources: e, report: t }) {
+ let n = TZ(e), [r, i] = (0, F.useState)(""), { running: a, start: o } = wZ({
queryKey: zr,
queryFn: ({ signal: e }) => vi(e),
start: (e) => xi(e),
@@ -63899,20 +63912,20 @@ function zDe({ sources: e, report: t }) {
children: [/* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
disabled: !n.length,
- ...fV(s),
+ ...mV(s),
onClick: () => {
n.length && !s && (i(""), o.mutate(n));
},
children: "检查更新"
- }), r ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ }), r ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "error",
children: r
}) : null]
});
}
// src/react/follow-feed/follow-card.tsx
-var BDe = (e) => Number(e) > 0;
-function wZ({ name: e, actions: t, children: n, ...r }) {
+var UDe = (e) => Number(e) > 0;
+function EZ({ name: e, actions: t, children: n, ...r }) {
return /* @__PURE__ */ (0, I.jsx)("a", {
...r,
href: Pn("creator", e),
@@ -63922,15 +63935,15 @@ function wZ({ name: e, actions: t, children: n, ...r }) {
children: n
});
}
-var TZ = ({ provider: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var DZ = ({ provider: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-nothumb": "",
- dangerouslySetInnerHTML: { __html: uG(e) }
+ dangerouslySetInnerHTML: { __html: fG(e) }
});
-function VDe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a, retryKey: o }) {
+function WDe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a, retryKey: o }) {
let [s, c] = (0, F.useState)(!1), [l, u] = (0, F.useState)(!1), [d, f] = (0, F.useState)(null);
return (0, F.useEffect)(() => {
c(!1);
- }, [o]), s ? /* @__PURE__ */ (0, I.jsx)(TZ, { provider: i }) : /* @__PURE__ */ (0, I.jsx)("img", {
+ }, [o]), s ? /* @__PURE__ */ (0, I.jsx)(DZ, { provider: i }) : /* @__PURE__ */ (0, I.jsx)("img", {
src: l ? t : e,
alt: "",
loading: "lazy",
@@ -63949,8 +63962,8 @@ function VDe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a
} : void 0
});
}
-function HDe(e) {
- let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = ga(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) => Nbe(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? va(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = ba({
+function GDe(e) {
+ let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = ga(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) => Ibe(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? va(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = ba({
cover: p,
coverFace: (f?.thumb_url ? f : u).face,
stack: t.stack,
@@ -63958,7 +63971,7 @@ function HDe(e) {
limit: 9
}), S = (0, F.useRef)(x.faces);
S.current = x.faces;
- let C = dK({
+ let C = pK({
load: async () => S.current,
canFlip: () => S.current.length > 1 && l.canFlip(),
referrerPolicy: "no-referrer"
@@ -63966,7 +63979,7 @@ function HDe(e) {
w.current = C.onPointerLeave;
let T = (0, F.useCallback)((e) => {
e && (e._stopHover = () => w.current());
- }, []), E = hG(u, n, i), D = dG(u), O = u.resource_provider || u.provider, k = (u.tags || []).slice(0, 3), A = vG(u, i), j = _G(t, u), M = u.status === "saved", ee = (e) => {
+ }, []), E = _G(u, n, i), D = pG(u), O = u.resource_provider || u.provider, k = (u.tags || []).slice(0, 3), A = bG(u, i), j = yG(t, u), M = u.status === "saved", ee = (e) => {
e.target.closest("[data-media-tag]") || (l.toggleSelection && (o || e.shiftKey || e.ctrlKey || e.metaKey) ? (e.preventDefault(), l.toggleSelection(u.id, e.shiftKey)) : l.openDetail(u.id));
}, N = (e, t) => {
e.stopPropagation(), t();
@@ -63981,7 +63994,7 @@ function HDe(e) {
"data-collection": x.isMix ? "" : void 0,
"data-selected": a ? "" : void 0,
onClick: ee,
- onMouseDown: nK,
+ onMouseDown: iK,
onMouseEnter: C.onPointerEnter,
onMouseLeave: C.onPointerLeave,
children: [
@@ -63995,7 +64008,7 @@ function HDe(e) {
}), /* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-pic": "",
children: [
- p ? /* @__PURE__ */ (0, I.jsx)(VDe, {
+ p ? /* @__PURE__ */ (0, I.jsx)(WDe, {
src: p,
fallback: m,
width: _?.width,
@@ -64003,7 +64016,7 @@ function HDe(e) {
provider: O,
onLearn: v,
retryKey: e.retryKey
- }, p) : /* @__PURE__ */ (0, I.jsx)(TZ, { provider: O }),
+ }, p) : /* @__PURE__ */ (0, I.jsx)(DZ, { provider: O }),
x.faces.length > 1 ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-mix-faces": "",
hidden: !C.faces.length,
@@ -64023,7 +64036,7 @@ function HDe(e) {
"data-media-badge": "",
title: u.provider_label || u.provider,
"aria-label": `来源:${u.provider_label || u.provider}`,
- dangerouslySetInnerHTML: { __html: uG(u.provider, u.provider_label) }
+ dangerouslySetInnerHTML: { __html: fG(u.provider, u.provider_label) }
}), j ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: j }
@@ -64036,7 +64049,7 @@ function HDe(e) {
},
dangerouslySetInnerHTML: { __html: R("check") }
}) : null,
- BDe(u.duration) ? /* @__PURE__ */ (0, I.jsx)("span", {
+ UDe(u.duration) ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-duration": "",
children: Jn(u.duration)
}) : null,
@@ -64107,7 +64120,7 @@ function HDe(e) {
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-meta": "",
- children: [E.entityName ? /* @__PURE__ */ (0, I.jsx)(wZ, {
+ children: [E.entityName ? /* @__PURE__ */ (0, I.jsx)(EZ, {
name: E.entityName,
actions: l,
"data-media-avatar": "",
@@ -64125,31 +64138,31 @@ function HDe(e) {
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-media-title": "",
- dangerouslySetInnerHTML: { __html: gG(t, u) + z(D) }
+ dangerouslySetInnerHTML: { __html: vG(t, u) + z(D) }
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-byline": "",
"data-follow-byline": "",
children: [
- E.entityName ? /* @__PURE__ */ (0, I.jsx)(wZ, {
+ E.entityName ? /* @__PURE__ */ (0, I.jsx)(EZ, {
name: E.entityName,
actions: l,
"data-media-who": "",
"data-follow-author": "",
title: E.author,
- children: /* @__PURE__ */ (0, I.jsx)(RG, { name: E.author })
+ children: /* @__PURE__ */ (0, I.jsx)(BG, { name: E.author })
}) : /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-who": "",
"data-follow-author": "",
title: E.author,
- children: /* @__PURE__ */ (0, I.jsx)(RG, { name: E.author })
+ children: /* @__PURE__ */ (0, I.jsx)(BG, { name: E.author })
}),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-media-facts": "",
- children: /* @__PURE__ */ (0, I.jsx)(zG, {
+ children: /* @__PURE__ */ (0, I.jsx)(VG, {
value: u.published_at || "",
- label: xG(u),
- title: bG(u)
+ label: CG(u),
+ title: SG(u)
})
}),
E.credited ? /* @__PURE__ */ (0, I.jsx)("span", {
@@ -64159,10 +64172,10 @@ function HDe(e) {
}) : null
]
}),
- e.variant === "next" ? e.reason ? /* @__PURE__ */ (0, I.jsx)(VG, {
+ e.variant === "next" ? e.reason ? /* @__PURE__ */ (0, I.jsx)(UG, {
reasons: e.reason.reasons,
tags: e.reason.tags.map((e) => Ll(e))
- }) : null : /* @__PURE__ */ (0, I.jsx)(BG, {
+ }) : null : /* @__PURE__ */ (0, I.jsx)(HG, {
"data-follow-labels": "",
tags: k,
label: Ll,
@@ -64187,9 +64200,9 @@ function HDe(e) {
]
});
}
-var EZ = (0, F.memo)(HDe);
+var OZ = (0, F.memo)(GDe);
// src/react/components/use-masonry-grid.ts
-function UDe(e, t) {
+function KDe(e, t) {
let n = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
let t = n.current;
@@ -64224,37 +64237,37 @@ function UDe(e, t) {
}, [e, t]), n;
}
// src/react/follow-manage/manage-route.ts
-var DZ = [
+var kZ = [
["list", "关注列表"],
["add", "添加关注"],
["tags", "标签管理"]
-], OZ = DZ.map(([e]) => e);
-function kZ(e) {
+], AZ = kZ.map(([e]) => e);
+function jZ(e) {
let t = new URLSearchParams(e), n = t.get("tab");
return {
- tab: OZ.find((e) => e === n) || "list",
+ tab: AZ.find((e) => e === n) || "list",
page: Math.max(1, Math.floor(Number(t.get("page"))) || 1),
sort: t.get("sort") || "",
dir: t.get("dir") || ""
};
}
-function AZ(e) {
+function MZ(e) {
let t = new URLSearchParams();
return e.tab !== "list" && t.set("tab", e.tab), e.page > 1 && t.set("page", String(e.page)), e.sort && t.set("sort", e.sort), e.dir && t.set("dir", e.dir), "/subscriptions" + (t.size ? `?${t}` : "");
}
-function jZ(e, t) {
- return !t && new URLSearchParams(e).get("tab") === "wants" ? "/jav?tab=wants" : !t && new URLSearchParams(e).get("tab") === "source" ? "/settings/library?section=%E6%9D%A5%E6%BA%90%E4%B8%8E%E8%AE%A2%E9%98%85" : AZ({
- tab: t || kZ(e).tab,
+function NZ(e, t) {
+ return !t && new URLSearchParams(e).get("tab") === "wants" ? "/jav?tab=wants" : !t && new URLSearchParams(e).get("tab") === "source" ? "/settings/library?section=%E6%9D%A5%E6%BA%90%E4%B8%8E%E8%AE%A2%E9%98%85" : MZ({
+ tab: t || jZ(e).tab,
page: 1,
sort: "",
dir: ""
});
}
// src/react/follow-feed/follow-feed-page.tsx
-var MZ = () => /* @__PURE__ */ (0, I.jsx)("span", {
+var PZ = () => /* @__PURE__ */ (0, I.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), WDe = uV("settings"), NZ = uV("chevron-down"), GDe = uV("history"), KDe = uV("arrow-up"), qDe = uV("arrow-down"), JDe = [[
+}), qDe = fV("settings"), FZ = fV("chevron-down"), JDe = fV("history"), YDe = fV("arrow-up"), XDe = fV("arrow-down"), ZDe = [[
"fixed",
"固定比例",
"layout-grid"
@@ -64263,7 +64276,7 @@ var MZ = () => /* @__PURE__ */ (0, I.jsx)("span", {
"瀑布流",
"columns-2"
]];
-function YDe(e, t, n) {
+function QDe(e, t, n) {
return (0, F.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) => {
@@ -64311,7 +64324,7 @@ function YDe(e, t, n) {
n
]);
}
-function XDe(e) {
+function $De(e) {
let { view: t, seed: n, revision: r, actions: i } = e, a = Lt(ra(t, r)), o = Ft({
queryKey: ia,
queryFn: ({ signal: e }) => aa(e)
@@ -64319,9 +64332,9 @@ function XDe(e) {
sources: s?.sources || [],
aliases: s?.author_aliases || [],
credentials: c
- }), [s, c]), u = YDe(s, t, n), d = a.isPending || a.isPlaceholderData, f = !d && !!s;
+ }), [s, c]), u = QDe(s, t, n), d = a.isPending || a.isPlaceholderData, f = !d && !!s;
(0, F.useEffect)(() => {
- pm(() => location.pathname === "/follow", document.querySelector("#stats [data-filter-frame]"), { pending: d });
+ vm(() => location.pathname === "/follow", document.querySelector("#stats [data-filter-frame]"), { pending: d });
}, [
d,
s,
@@ -64353,10 +64366,10 @@ function XDe(e) {
p,
i
]);
- let m = QDe(e, !!s);
+ let m = tOe(e, !!s);
if (!s) return a.isError ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-follow-feed": "",
- children: [/* @__PURE__ */ (0, I.jsx)(PZ, {}), /* @__PURE__ */ (0, I.jsx)(FG, {
+ children: [/* @__PURE__ */ (0, I.jsx)(IZ, {}), /* @__PURE__ */ (0, I.jsx)(LG, {
message: xn(a.error),
onRetry: () => void a.refetch()
})]
@@ -64369,7 +64382,7 @@ function XDe(e) {
author: u.author,
provider: u.provider
}, {
- authors: new Map([...u.authorSources].map(([e, t]) => [e, fG(t, l)])),
+ authors: new Map([...u.authorSources].map(([e, t]) => [e, mG(t, l)])),
providers: u.providers,
works: u.workNames
}), _ = t.status ? u.counts[t.status] || 0 : u.allCount, v = u.sources.some((e) => e.can_backfill);
@@ -64378,7 +64391,7 @@ function XDe(e) {
ref: m.host,
"data-follow-progress": ""
}, m.generation),
- !m.busy && m.report ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ !m.busy && m.report ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "neutral",
title: "检查结果",
children: m.report
@@ -64387,7 +64400,7 @@ function XDe(e) {
"data-follow-feed": "",
"data-select-mode": e.selectMode ? "" : void 0,
children: [
- /* @__PURE__ */ (0, I.jsx)(PZ, { children: u.sources.length ? /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(IZ, { children: u.sources.length ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "primary",
"data-follow-recheck": "",
"aria-label": "检查每个来源的更新",
@@ -64398,20 +64411,20 @@ function XDe(e) {
dangerouslySetInnerHTML: { __html: Bs("检查中") }
}) : "检查更新"
}) : null }),
- /* @__PURE__ */ (0, I.jsx)($De, {
+ /* @__PURE__ */ (0, I.jsx)(nOe, {
facets: u,
pressed: u.author,
context: l,
props: e,
onPick: (e) => h({ author: u.author === e ? "" : e })
}),
- /* @__PURE__ */ (0, I.jsx)(eOe, {
+ /* @__PURE__ */ (0, I.jsx)(rOe, {
rows: u.workRows,
pressed: t.work,
props: e,
onPick: (e) => h({ work: t.work === e ? "" : e })
}),
- /* @__PURE__ */ (0, I.jsx)(tOe, {
+ /* @__PURE__ */ (0, I.jsx)(iOe, {
facets: u,
view: t,
total: _,
@@ -64419,7 +64432,7 @@ function XDe(e) {
props: e,
route: h
}),
- /* @__PURE__ */ (0, I.jsx)(nOe, {
+ /* @__PURE__ */ (0, I.jsx)(aOe, {
conditions: g,
onDrop: (e) => i.route(Ea(t, e)),
onClear: () => h({
@@ -64431,8 +64444,8 @@ function XDe(e) {
durMax: 0
})
}),
- u.broken.length ? /* @__PURE__ */ (0, I.jsx)(rOe, { count: u.broken.length }) : null,
- /* @__PURE__ */ (0, I.jsx)(iOe, {
+ u.broken.length ? /* @__PURE__ */ (0, I.jsx)(oOe, { count: u.broken.length }) : null,
+ /* @__PURE__ */ (0, I.jsx)(sOe, {
retryKey: a.dataUpdatedAt,
pending: d,
facets: u,
@@ -64455,14 +64468,14 @@ function XDe(e) {
"data-follow-pagination": "",
children: [s.has_more ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-page-action": "",
- children: s.groups.length < 500 ? /* @__PURE__ */ (0, I.jsxs)(rY, {
+ children: s.groups.length < 500 ? /* @__PURE__ */ (0, I.jsxs)(aY, {
entity: !0,
enabled: () => !m.busyRef.current,
load: async () => {
await a.fetchNextPage({ throwOnError: !0 });
},
- children: [/* @__PURE__ */ (0, I.jsx)(NZ, { className: "size-(--icon-inline)" }), "加载更多"]
- }, a.data?.pages.length) : /* @__PURE__ */ (0, I.jsx)(ZDe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(FZ, { className: "size-(--icon-inline)" }), "加载更多"]
+ }, a.data?.pages.length) : /* @__PURE__ */ (0, I.jsx)(eOe, {
busy: a.isFetchingNextPage,
error: a.isFetchNextPageError ? xn(a.error) : "",
load: () => {
@@ -64473,7 +64486,7 @@ function XDe(e) {
"data-follow-page-action": "",
children: [/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- leadingIcon: m.olderBusy ? void 0 : GDe,
+ leadingIcon: m.olderBusy ? void 0 : JDe,
"data-follow-older": "",
"aria-busy": m.busy || void 0,
onClick: () => void m.start(!0),
@@ -64491,7 +64504,7 @@ function XDe(e) {
})
] });
}
-function PZ({ children: e }) {
+function IZ({ children: e }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-follow-head": "",
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
@@ -64499,30 +64512,30 @@ function PZ({ children: e }) {
children: "关注"
}), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-follow-head-actions": "",
- children: [/* @__PURE__ */ (0, I.jsx)(gL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(vL, {
variant: "secondary",
- leadingIcon: WDe,
+ leadingIcon: qDe,
"data-follow-manage": "",
- href: FZ(),
+ href: LZ(),
children: "管理关注"
}), e]
})]
});
}
-function ZDe({ busy: e, error: t, load: n }) {
+function eOe({ busy: e, error: t, load: n }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-entity-more": "",
"aria-busy": e || void 0,
"aria-disabled": e || void 0,
onClick: n,
- children: [/* @__PURE__ */ (0, I.jsx)(NZ, { className: "size-(--icon-inline)" }), "加载更多"]
- }), t ? /* @__PURE__ */ (0, I.jsx)(FG, {
+ children: [/* @__PURE__ */ (0, I.jsx)(FZ, { className: "size-(--icon-inline)" }), "加载更多"]
+ }), t ? /* @__PURE__ */ (0, I.jsx)(LG, {
message: t,
onRetry: n
}) : null] });
}
-function QDe(e, t) {
+function tOe(e, t) {
let { helpers: n, actions: r } = e, [i, a] = (0, F.useState)(0), [o, s] = (0, F.useState)(!1), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(""), [f, p] = (0, F.useState)(!1), m = (0, F.useRef)(!1), h = (0, F.useRef)(null), g = (0, F.useRef)({
helpers: n,
actions: r
@@ -64584,12 +64597,12 @@ function QDe(e, t) {
olderBusy: c === "older" || f && o
};
}
-function $De({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
+function nOe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
let a = (0, F.useRef)(null);
(0, F.useEffect)(() => {
r.helpers.wireDrag(a.current);
}, [r.helpers]);
- let o = (t) => fG(e.authorSources.get(t) || [], n);
+ let o = (t) => mG(e.authorSources.get(t) || [], n);
return e.authorOrder.length ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-authors-bar": "",
children: /* @__PURE__ */ (0, I.jsx)("div", {
@@ -64597,14 +64610,14 @@ function $De({ 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 = pG(a), c = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ let a = e.authorSources.get(n) || [], s = hG(a), c = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-ring": "",
- dangerouslySetInnerHTML: { __html: mG(a, o(n)) }
+ dangerouslySetInnerHTML: { __html: gG(a, o(n)) }
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-name": "",
children: o(n)
})] });
- return s ? /* @__PURE__ */ (0, I.jsx)(wZ, {
+ return s ? /* @__PURE__ */ (0, I.jsx)(EZ, {
name: s,
actions: r.actions,
"data-follow-author": n,
@@ -64621,7 +64634,7 @@ function $De({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
})
}) : null;
}
-function eOe({ rows: e, pressed: t, props: n, onPick: r }) {
+function rOe({ rows: e, pressed: t, props: n, onPick: r }) {
let i = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
n.helpers.wireDrag(i.current);
@@ -64642,13 +64655,13 @@ function eOe({ rows: e, pressed: t, props: n, onPick: r }) {
}, e[0]))
}) : null;
}
-function tOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
- let { helpers: o, actions: s } = i, c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = mL(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = mL(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
+function iOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
+ let { helpers: o, actions: s } = i, c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = gL(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = gL(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
(0, F.useEffect)(() => {
o.wireDrag(f.current), o.wireDrag(p.current), o.wireScroller(p.current);
}, [o]);
let _ = [...e.providers], v = _.length + e.tagRows.length > 0, y = t.media === "images";
- return /* @__PURE__ */ (0, I.jsx)(lL, {
+ return /* @__PURE__ */ (0, I.jsx)(dL, {
label: "筛选与排序",
topLabel: m ? "媒体与关注筛选" : "关注筛选",
attrs: {
@@ -64700,7 +64713,7 @@ function tOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: R(i) }
}, e);
})
- }), /* @__PURE__ */ (0, I.jsx)(MZ, {})] }) : null, /* @__PURE__ */ (0, I.jsxs)("div", {
+ }), /* @__PURE__ */ (0, I.jsx)(PZ, {})] }) : null, /* @__PURE__ */ (0, I.jsxs)("div", {
ref: f,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -64720,7 +64733,7 @@ function tOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
t.status !== e && a({ status: e });
},
children: n
- }, e)), v ? /* @__PURE__ */ (0, I.jsx)(MZ, {}) : null]
+ }, e)), v ? /* @__PURE__ */ (0, I.jsx)(PZ, {}) : null]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: p,
"data-entity-tags": "",
@@ -64733,10 +64746,10 @@ function tOe({ 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: uG(t, n) }
+ dangerouslySetInnerHTML: { __html: fG(t, n) }
}, t)),
- _.length && e.tagRows.length ? /* @__PURE__ */ (0, I.jsx)(MZ, {}) : null,
- e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, I.jsxs)(uL, {
+ _.length && e.tagRows.length ? /* @__PURE__ */ (0, I.jsx)(PZ, {}) : null,
+ e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, I.jsxs)(fL, {
"data-follow-tag": n,
"data-entity-press": "",
"data-tag-cat": `r34-${Da(e.groups, n)}`,
@@ -64754,23 +64767,23 @@ function tOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
/* @__PURE__ */ (0, I.jsx)("h3", {
"data-entity-readout": "",
"data-follow-readout": "",
- children: /* @__PURE__ */ (0, I.jsx)(nL, {
+ children: /* @__PURE__ */ (0, I.jsx)(iL, {
text: `${n.toLocaleString()} 项更新 · 显示 ${e.visible.length.toLocaleString()}`,
busy: r
})
}),
- /* @__PURE__ */ (0, I.jsx)(TV, {
+ /* @__PURE__ */ (0, I.jsx)(DV, {
currentHref: () => location.pathname + location.search,
kind: "creator"
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(kG, { onPress: s.shuffle }),
- y ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(OG, {
+ /* @__PURE__ */ (0, I.jsx)(jG, { onPress: s.shuffle }),
+ y ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(AG, {
label: "图片布局",
value: i.photoLayout,
- options: JDe,
+ options: ZDe,
onChange: (e) => s.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")
}), /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
@@ -64800,9 +64813,9 @@ function tOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
let n = Sa(e, t.sort, t.dir);
n && a(n);
},
- children: [n, r ? /* @__PURE__ */ (0, I.jsx)(aG, {
- a: KDe,
- b: qDe,
+ children: [n, r ? /* @__PURE__ */ (0, I.jsx)(sG, {
+ a: YDe,
+ b: XDe,
state: t.dir === "asc" ? "a" : "b",
className: "size-(--icon-inline)"
}) : null]
@@ -64813,7 +64826,7 @@ function tOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
] })
});
}
-function nOe({ conditions: e, onDrop: t, onClear: n }) {
+function aOe({ conditions: e, onDrop: t, onClear: n }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-combo": "",
"data-follow-combo": "",
@@ -64838,21 +64851,21 @@ function nOe({ conditions: e, onDrop: t, onClear: n }) {
})] }) : null
});
}
-function rOe({ count: e }) {
+function oOe({ count: e }) {
return /* @__PURE__ */ (0, I.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="${z(FZ())}" data-follow-manage>管理关注</a>看原因。</span></div>` }
+ dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${R("alert")}<span>${e} 个来源上次检查失败,去<a class="flink" href="${z(LZ())}" data-follow-manage>管理关注</a>看原因。</span></div>` }
});
}
-var FZ = () => jZ(window.location.search);
-function iOe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a, checkAction: o }) {
+var LZ = () => NZ(window.location.search);
+function sOe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a, checkAction: o }) {
let { view: s, helpers: c } = i, l = s.media === "images";
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-list-body": "",
- children: /* @__PURE__ */ (0, I.jsx)(IG, {
+ children: /* @__PURE__ */ (0, I.jsx)(RG, {
pending: e,
skeletonHtml: () => c.listSkeletonHtml(s.media),
- children: e ? null : /* @__PURE__ */ (0, I.jsx)(aOe, {
+ children: e ? null : /* @__PURE__ */ (0, I.jsx)(cOe, {
facets: t,
data: n,
context: r,
@@ -64864,29 +64877,29 @@ function iOe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a
})
});
}
-function aOe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a, checkAction: o }) {
- let { view: s, actions: c } = r, l = LZ(r), u = i ? {
+function cOe({ 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 = UDe(i && r.photoLayout === "masonry", `${r.photoSize}:${e.visible.map((e) => e.primary.id).join(",")}`), f;
+ } : {}, d = KDe(i && r.photoLayout === "masonry", `${r.photoSize}:${e.visible.map((e) => e.primary.id).join(",")}`), f;
return f = e.visible.length ? e.visible.map((t) => {
let i = e.byId.get(t.primary?.source_id), o = i?.author_key && e.authorSources.get(i.author_key) || [], u = t.primary.id;
- return /* @__PURE__ */ (0, I.jsx)(EZ, {
+ return /* @__PURE__ */ (0, I.jsx)(OZ, {
group: t,
authorSources: o,
media: s.media,
retryKey: a,
context: n,
- selected: r.selected.has(IZ(t, s)),
+ selected: r.selected.has(RZ(t, s)),
selectMode: r.selectMode,
- busy: l.busy.get(IZ(t, s)) || "",
- failure: l.failures.get(IZ(t, s)) || "",
+ busy: l.busy.get(RZ(t, s)) || "",
+ failure: l.failures.get(RZ(t, s)) || "",
actions: c,
onStatus: l.status,
onSave: l.save
}, `${u}:${s.media}`);
- }) : /* @__PURE__ */ (0, I.jsx)(oOe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(lOe, {
data: t,
filtered: !!(s.status || e.author || e.provider || s.work || s.tags.length || s.durMin || s.durMax),
checkAction: o,
@@ -64909,22 +64922,22 @@ function aOe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a,
children: f
});
}
-function IZ(e, t) {
+function RZ(e, t) {
return ga(e, t.media).id;
}
-function oOe({ data: e, filtered: t, clear: n, checkAction: r }) {
+function lOe({ data: e, filtered: t, clear: n, checkAction: r }) {
let i = !!e.groups.length || t, a = !!e.sources.length;
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-empty": "",
className: "contents",
- children: /* @__PURE__ */ (0, I.jsx)(cV, {
- icon: uV(i ? "search-x" : "rss"),
+ children: /* @__PURE__ */ (0, I.jsx)(uV, {
+ icon: fV(i ? "search-x" : "rss"),
title: i ? "当前筛选下没有更新" : a ? "还没有更新" : "还没有关注任何来源",
actions: i ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
onClick: n,
children: "清除筛选"
- }) : a ? r : /* @__PURE__ */ (0, I.jsx)(gL, {
+ }) : a ? r : /* @__PURE__ */ (0, I.jsx)(vL, {
size: "small",
href: "/subscriptions?tab=add",
children: "添加关注"
@@ -64933,12 +64946,12 @@ function oOe({ data: e, filtered: t, clear: n, checkAction: r }) {
})
});
}
-var sOe = {
+var uOe = {
new: "已恢复未看",
seen: "已标记已看",
ignored: "已忽略"
};
-function LZ(e) {
+function zZ(e) {
let { view: t, revision: n, actions: r } = e, [i, a] = (0, F.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, F.useState)(() => /* @__PURE__ */ new Map()), c = ra(t, n).queryKey, l = (e, t, n) => n((n) => {
let r = new Map(n);
return t ? r.set(e, t) : r.delete(e), r;
@@ -64961,7 +64974,7 @@ function LZ(e) {
to: t
}),
onSuccess: (e, { id: t, to: n, was: i }) => {
- u(t, n), d(), r.toast(sOe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
+ u(t, n), d(), r.toast(uOe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
await V(Mr, {
item: t,
to: i
@@ -65006,9 +65019,9 @@ function LZ(e) {
};
}
// src/react/entity-body/entity-online.tsx
-function cOe(e) {
+function dOe(e) {
let { result: t, data: n, media: r, helpers: i } = e, a = t.isPending || t.isPlaceholderData;
- return !n && t.isError ? /* @__PURE__ */ (0, I.jsx)(FG, {
+ return !n && t.isError ? /* @__PURE__ */ (0, I.jsx)(LG, {
message: xn(t.error),
onRetry: () => {
t.refetch();
@@ -65016,13 +65029,13 @@ function cOe(e) {
}) : /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-list-body": "",
"data-entity-online": "",
- children: /* @__PURE__ */ (0, I.jsxs)(IG, {
+ children: /* @__PURE__ */ (0, I.jsxs)(RG, {
pending: a,
skeletonHtml: () => i.listSkeletonHtml(r),
- children: [a || !n ? null : /* @__PURE__ */ (0, I.jsx)(lOe, {
+ children: [a || !n ? null : /* @__PURE__ */ (0, I.jsx)(fOe, {
...e,
data: n
- }), !a && n?.has_more ? /* @__PURE__ */ (0, I.jsx)(rY, {
+ }), !a && n?.has_more ? /* @__PURE__ */ (0, I.jsx)(aY, {
entity: !0,
enabled: () => e.canLoadMore?.() !== !1,
load: async () => {
@@ -65032,8 +65045,8 @@ function cOe(e) {
})
});
}
-function lOe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c, clearFilters: l }) {
- let u = LZ({
+function fOe({ 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,
actions: c
@@ -65051,7 +65064,7 @@ function lOe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
"data-images-only": String(s)
} : {}, m = r.length ? r.map((e) => {
let n = ga(e, t).id, r = d.byId.get(e.primary?.source_id)?.author_key;
- return /* @__PURE__ */ (0, I.jsx)(EZ, {
+ return /* @__PURE__ */ (0, I.jsx)(OZ, {
group: e,
authorSources: r && d.byAuthor.get(r) || [],
media: t,
@@ -65064,11 +65077,11 @@ function lOe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
onStatus: u.status,
onSave: u.save
}, `${e.primary.id}:${t}`);
- }) : /* @__PURE__ */ (0, I.jsx)(uOe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(pOe, {
searched: !!(n.groups || []).length || !!(e.status || e.provider || e.tags.length || e.durMin || e.durMax),
clear: l,
actions: c,
- sources: RDe(n.sources || [], e.author)
+ sources: VDe(n.sources || [], e.author)
});
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-list": "",
@@ -65077,21 +65090,21 @@ function lOe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
children: m
});
}
-function uOe({ searched: e, clear: t, actions: n, sources: r }) {
+function pOe({ searched: e, clear: t, actions: n, sources: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-empty": "",
className: "contents",
- children: /* @__PURE__ */ (0, I.jsx)(cV, {
- icon: uV(e ? "search-x" : "rss"),
+ children: /* @__PURE__ */ (0, I.jsx)(uV, {
+ icon: fV(e ? "search-x" : "rss"),
title: e ? "当前筛选下没有更新" : "还没有抓到更新",
actions: e ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
onClick: t,
children: "清除筛选"
- }) : r.length ? /* @__PURE__ */ (0, I.jsx)(zDe, {
+ }) : r.length ? /* @__PURE__ */ (0, I.jsx)(HDe, {
sources: r,
report: n.checkReport
- }) : /* @__PURE__ */ (0, I.jsx)(gL, {
+ }) : /* @__PURE__ */ (0, I.jsx)(vL, {
size: "small",
href: "/subscriptions?tab=add",
children: "添加关注"
@@ -65100,7 +65113,7 @@ function uOe({ searched: e, clear: t, actions: n, sources: r }) {
})
});
}
-function RZ(e) {
+function BZ(e) {
return {
x0: 0,
y0: 0,
@@ -65108,7 +65121,7 @@ function RZ(e) {
y1: e.height
};
}
-function zZ(e) {
+function VZ(e) {
return {
x0: Math.round(e.x0),
y0: Math.round(e.y0),
@@ -65116,40 +65129,40 @@ function zZ(e) {
y1: Math.round(e.y1)
};
}
-function BZ(e) {
+function HZ(e) {
return !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;
}
-function VZ(e, t) {
- if (!BZ(e)) return {
+function UZ(e, t) {
+ if (!HZ(e)) return {
x0: 0,
y0: 0,
x1: 0,
y1: 0
};
- if (t == null || !(t > 0)) return RZ(e);
+ if (t == null || !(t > 0)) return BZ(e);
let n = e.width, r = n / t;
r > e.height && (r = e.height, n = r * t);
let i = (e.width - n) / 2, a = (e.height - r) / 2;
- return zZ({
+ return VZ({
x0: i,
y0: a,
x1: i + n,
y1: a + r
});
}
-function dOe(e, t) {
- if (!BZ(e) || !(t > 0)) return RZ(e);
+function mOe(e, t) {
+ if (!HZ(e) || !(t > 0)) return BZ(e);
let n = Math.min(e.width, e.height * t);
- return zZ({
+ return VZ({
x0: e.width - n,
y0: 0,
x1: e.width,
y1: e.height
});
}
-function fOe(e, t, n) {
- if (!BZ(t) || !(n > 0)) return RZ(t);
- let r = HZ(e, t), i = VZ({
+function hOe(e, t, n) {
+ if (!HZ(t) || !(n > 0)) return BZ(t);
+ let r = WZ(e, t), i = UZ({
width: r.x1 - r.x0,
height: r.y1 - r.y0
}, n);
@@ -65160,8 +65173,8 @@ function fOe(e, t, n) {
y1: r.y0 + i.y1
};
}
-function HZ(e, t, n = null, r = "width") {
- if (!BZ(t)) return {
+function WZ(e, t, n = null, r = "width") {
+ if (!HZ(t)) return {
x0: 0,
y0: 0,
x1: 0,
@@ -65170,43 +65183,43 @@ function HZ(e, t, n = null, r = "width") {
let i = Math.min(16, t.width, t.height), a = Math.max(i, Math.min(e.x1 - e.x0, t.width)), o = Math.max(i, Math.min(e.y1 - e.y0, t.height));
n != null && n > 0 && (r === "width" ? (o = a / n, o > t.height && (o = t.height, a = o * n)) : (a = o * n, a > t.width && (a = t.width, o = a / n)), a > t.width && (a = t.width, o = a / n));
let s = Math.max(0, Math.min(e.x0, t.width - a)), c = Math.max(0, Math.min(e.y0, t.height - o));
- return zZ({
+ return VZ({
x0: s,
y0: c,
x1: s + a,
y1: c + o
});
}
-function UZ(e, t, n, r) {
+function GZ(e, t, n, r) {
let i = e.x1 - e.x0, a = e.y1 - e.y0, o = Math.max(0, Math.min(e.x0 + t, r.width - i)), s = Math.max(0, Math.min(e.y0 + n, r.height - a));
- return zZ({
+ return VZ({
x0: o,
y0: s,
x1: o + i,
y1: s + a
});
}
-function WZ(e, t, n, r = null) {
- if (!BZ(n) || !(t > 0)) return e;
+function KZ(e, t, n, r = null) {
+ if (!HZ(n) || !(t > 0)) return e;
let i = (e.x0 + e.x1) / 2, a = (e.y0 + e.y1) / 2, o = (e.x1 - e.x0) * t, s = (e.y1 - e.y0) * t;
- return HZ({
+ return WZ({
x0: i - o / 2,
y0: a - s / 2,
x1: i + o / 2,
y1: a + s / 2
}, n, r);
}
-function pOe(e, t, n, r, i = null) {
+function gOe(e, t, n, r, i = null) {
let a = {
x0: e.x0,
y0: e.y0,
x1: Math.max(e.x0 + 1, t),
y1: Math.max(e.y0 + 1, n)
};
- return HZ(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
+ return WZ(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
-function mOe(e, t) {
- return BZ(t) ? {
+function _Oe(e, t) {
+ return HZ(t) ? {
left: e.x0 / t.width * 100,
top: e.y0 / t.height * 100,
width: (e.x1 - e.x0) / t.width * 100,
@@ -65218,8 +65231,8 @@ function mOe(e, t) {
height: 0
};
}
-function hOe(e, t) {
- if (!BZ(t)) return {
+function vOe(e, t) {
+ if (!HZ(t)) return {
size: "cover",
position: "50% 50%"
};
@@ -65229,7 +65242,7 @@ function hOe(e, t) {
position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`
};
}
-function gOe(e, t) {
+function yOe(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}%`,
@@ -65238,15 +65251,15 @@ function gOe(e, t) {
height: `${t.height / r * 100}%`
};
}
-function GZ(e, t, n) {
+function qZ(e, t, n) {
return t > 0 ? e * n / t : 0;
}
-function _Oe(e, t) {
+function bOe(e, t) {
return !t || !(t.width > 0) || !(t.height > 0) ? !1 : Math.min(e.width / 100 * t.width, e.height / 100 * t.height) < 36;
}
// src/react/crop/crop-frame.tsx
-var vOe = .02, KZ = 1.08;
-function qZ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
+var xOe = .02, JZ = 1.08;
+function YZ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
let s = (0, F.useRef)(null), c = (0, F.useRef)(null), [l, u] = (0, F.useState)(!1), [d, f] = (0, F.useState)(null);
(0, F.useEffect)(() => {
u(!1);
@@ -65265,8 +65278,8 @@ function qZ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
dx: 0,
dy: 0
} : {
- dx: GZ(e, n.clientWidth, r.width),
- dy: GZ(t, n.clientHeight, r.height)
+ dx: qZ(e, n.clientWidth, r.width),
+ dy: qZ(t, n.clientHeight, r.height)
};
}, [r]);
function m(e) {
@@ -65283,22 +65296,22 @@ function qZ({ 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(UZ(n.box, o.dx, o.dy, r)) : i(pOe(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(GZ(n.box, o.dx, o.dy, r)) : i(gOe(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) * vOe), o = {
+ let a = Math.max(1, (n.x1 - n.x0) * xOe), o = {
ArrowLeft: [-a, 0],
ArrowRight: [a, 0],
ArrowUp: [0, -a],
ArrowDown: [0, a]
};
- o[e.key] ? (e.preventDefault(), i(UZ(n, o[e.key][0], o[e.key][1], r))) : (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(WZ(n, e.key === "-" ? 1 / KZ : KZ, r, t)));
+ o[e.key] ? (e.preventDefault(), i(GZ(n, o[e.key][0], o[e.key][1], r))) : (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(KZ(n, e.key === "-" ? 1 / JZ : JZ, r, t)));
}
- let v = n && r ? mOe(HZ(n, r, t), r) : null, y = v ? _Oe(v, d) : !1, b = v ? {
+ let v = n && r ? _Oe(WZ(n, r, t), r) : null, y = v ? bOe(v, d) : !1, b = v ? {
"--crop-l": `${v.left}%`,
"--crop-t": `${v.top}%`,
"--crop-w": `${v.width}%`,
@@ -65317,7 +65330,7 @@ function qZ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
draggable: !1,
onLoad: (e) => {
let t = e.currentTarget;
- BZ({
+ HZ({
width: t.naturalWidth,
height: t.naturalHeight
}) && a({
@@ -65356,7 +65369,7 @@ function qZ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
onPointerCancel: g,
onKeyDown: _,
onWheel: (e) => {
- n && r && i(WZ(n, e.deltaY > 0 ? KZ : 1 / KZ, r, t));
+ n && r && i(KZ(n, e.deltaY > 0 ? JZ : 1 / JZ, r, t));
},
className: "absolute left-(--crop-l) top-(--crop-t) h-(--crop-h) w-(--crop-w) cursor-move touch-none outline-none ring-2 ring-border-focus-ring ring-inset focus-visible:ring-4",
children: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -65378,13 +65391,13 @@ function qZ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
});
}
// src/react/avatar-picker/avatar-picker.ts
-var yOe = "/api/avatar-choices", JZ = "/api/avatar-pick", bOe = "/api/avatar-code-cover", YZ = "/api/avatar-frame", xOe = "/avatar-choice", XZ = (e, t) => [
+var SOe = "/api/avatar-choices", XZ = "/api/avatar-pick", COe = "/api/avatar-code-cover", ZZ = "/api/avatar-frame", wOe = "/avatar-choice", QZ = (e, t) => [
"avatar-choices",
e,
t
-], ZZ = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, QZ = (e, t, n, r = "") => `${xOe}${ZZ(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), $Z = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", SOe = (e, t, n) => B(yOe + ZZ(e, t), n), COe = (e) => V(bOe, { code: e });
-async function wOe(e, t, n) {
- let r = await V(YZ, {
+], $Z = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, eQ = (e, t, n, r = "") => `${wOe}${$Z(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), tQ = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", TOe = (e, t, n) => B(SOe + $Z(e, t), n), EOe = (e) => V(COe, { code: e });
+async function DOe(e, t, n) {
+ let r = await V(ZZ, {
kind: e,
id: t,
ref: n.ref
@@ -65397,12 +65410,12 @@ async function wOe(e, t, n) {
bases: r.bases
};
}
-var TOe = (e, t, n) => V(YZ, {
+var OOe = (e, t, n) => V(ZZ, {
kind: e,
id: t,
url: n
-}), EOe = (e, t, n) => eQ(`${YZ}${ZZ(e, t)}&name=${encodeURIComponent(n.name)}`, n);
-async function eQ(e, t) {
+}), kOe = (e, t, n) => nQ(`${ZZ}${$Z(e, t)}&name=${encodeURIComponent(n.name)}`, n);
+async function nQ(e, t) {
let n = await fetch(e, {
method: "POST",
credentials: "same-origin",
@@ -65411,17 +65424,17 @@ async function eQ(e, t) {
if (n.ok) return r;
throw new sr(r?.error || `请求失败(${n.status})`, n.status, r);
}
-function tQ(e, t, n) {
+function rQ(e, t, n) {
let r = t.width === e.width && t.height === e.height;
- return e.focus && r ? fOe(e.focus, t, n) : VZ(t, n);
+ return e.focus && r ? hOe(e.focus, t, n) : UZ(t, n);
}
-var DOe = (e) => e.crop && BZ({
+var AOe = (e) => e.crop && HZ({
width: e.width,
height: e.height
});
-async function OOe(e, t, n) {
+async function jOe(e, t, n) {
if (!("file" in n)) {
- await V(JZ, {
+ await V(XZ, {
kind: e,
id: t,
...n
@@ -65434,19 +65447,19 @@ async function OOe(e, t, n) {
i.x1,
i.y1
].join(",")}` : "";
- await eQ(`${JZ}${ZZ(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);
+ await nQ(`${XZ}${$Z(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);
}
-var nQ = 2;
-function kOe(e, t) {
+var iQ = 2;
+function MOe(e, t) {
if (!t) return e;
let n = t.matched_names.filter((t) => t !== e);
- return n.length ? `${e}:图库里按${`「${n.slice(0, nQ).join("」「")}」`}${n.length > nQ ? `等 ${n.length.toLocaleString()} 个名字` : ""}找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:还没有备选图片,可输入番号、图片地址或从本机选择。`;
+ return n.length ? `${e}:图库里按${`「${n.slice(0, iQ).join("」「")}」`}${n.length > iQ ? `等 ${n.length.toLocaleString()} 个名字` : ""}找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:还没有备选图片,可输入番号、图片地址或从本机选择。`;
}
-var AOe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
-function jOe(e) {
- return e?.index_refreshing ? "正在更新图库索引,候选图片会自动显示。" : e?.index_error && e.index_stale ? "图库索引未取得:" + e.index_error : !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${AOe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
+var NOe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
+function POe(e) {
+ return e?.index_refreshing ? "正在更新图库索引,候选图片会自动显示。" : e?.index_error && e.index_stale ? "图库索引未取得:" + e.index_error : !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${NOe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var rQ = (e) => e.cast > 1, MOe = (e) => rQ(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, NOe = {
+var aQ = (e) => e.cast > 1, FOe = (e) => aQ(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, IOe = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
@@ -65456,7 +65469,7 @@ var rQ = (e) => e.cast > 1, MOe = (e) => rQ(e) ? `${e.label}:${e.cast.toLocale
social: "社媒头像",
online: "在线作品"
};
-function POe(e) {
+function LOe(e) {
if (e.startsWith("follow:")) {
let t = e.split(":")[2];
return t === "cover" ? "作品封面" : `内容图片 ${Number(t.replace("image", "") || 0) + 1}`;
@@ -65467,19 +65480,19 @@ function POe(e) {
let n = Number(t.replace("cell", ""));
return Number.isFinite(n) ? `第 ${n + 1} 格` : t;
}
-var FOe = (e) => `${NOe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (rQ(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), IOe = 8, LOe = 3 / 4;
-async function ROe(e, t, n) {
+var ROe = (e) => `${IOe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (aQ(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), zOe = 8, BOe = 3 / 4;
+async function VOe(e, t, n) {
switch (n.via) {
- case "choice": return { choice: await wOe(e, t, n.choice) };
- case "code": return { choice: await COe(n.code) };
- case "url": return { choice: await TOe(e, t, n.url) };
+ case "choice": return { choice: await DOe(e, t, n.choice) };
+ case "code": return { choice: await EOe(n.code) };
+ case "url": return { choice: await OOe(e, t, n.url) };
case "file": return {
- choice: await EOe(e, t, n.file),
+ choice: await kOe(e, t, n.file),
file: n.file
};
}
}
-function zOe({ kind: e, entityId: t, name: n, onPicked: r }) {
+function HOe({ kind: e, entityId: t, name: n, onPicked: r }) {
let [i, a] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "absolute right-1 bottom-1 z-10",
@@ -65489,17 +65502,17 @@ function zOe({ 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, I.jsx)(rge, {
+ children: /* @__PURE__ */ (0, I.jsx)(oge, {
"aria-hidden": !0,
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, I.jsx)(aV, {
+ }), /* @__PURE__ */ (0, I.jsx)(sV, {
isOpen: i,
onOpenChange: a,
width: "avatar-picker",
label: "更换头像",
- children: /* @__PURE__ */ (0, I.jsx)(BOe, {
+ children: /* @__PURE__ */ (0, I.jsx)(UOe, {
kind: e,
entityId: t,
name: n,
@@ -65508,24 +65521,24 @@ function zOe({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function BOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, F.useRef)(null), o = LV(), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(null), p = XZ(e, t), m = (0, F.useRef)(!1), h = Ft({
+function UOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
+ let a = (0, F.useRef)(null), o = zV(), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(null), p = QZ(e, t), m = (0, F.useRef)(!1), h = Ft({
queryKey: p,
- queryFn: ({ signal: n }) => SOe(e, t, n),
+ queryFn: ({ signal: n }) => TOe(e, t, n),
retryOnMount: !0,
refetchOnMount: (e) => e.state.data?.index_stale ? "always" : !1,
refetchInterval: (e) => e.state.data?.index_refreshing && !e.state.error ? 1e3 : !1
});
(0, F.useEffect)(() => () => {
- m.current && H.removeQueries({ queryKey: XZ(e, t) });
+ m.current && H.removeQueries({ queryKey: QZ(e, t) });
}, [e, t]);
let g = It({
- mutationFn: (n) => OOe(e, t, n),
+ mutationFn: (n) => jOe(e, t, n),
onSuccess: () => {
m.current = !0, i(), r();
}
}), _ = It({
- mutationFn: (n) => ROe(e, t, n),
+ mutationFn: (n) => VOe(e, t, n),
onMutate: () => {
g.reset();
},
@@ -65546,39 +65559,39 @@ function BOe({ 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 ? lr(g.error) : "") || (!d && _.error ? lr(_.error) : "") || (h.error ? lr(h.error) : ""), w = g.isPending || _.isPending, T = d ? "" : jOe(x), E = !!C && !!h.error && C === lr(h.error), D = h.isPending || S.length > 0;
+ let x = h.data, S = x?.choices ?? [], C = (g.error ? lr(g.error) : "") || (!d && _.error ? lr(_.error) : "") || (h.error ? lr(h.error) : ""), w = g.isPending || _.isPending, T = d ? "" : POe(x), E = !!C && !!h.error && C === lr(h.error), D = h.isPending || S.length > 0;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, I.jsx)(oV, { children: /* @__PURE__ */ (0, I.jsx)(YB, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, I.jsx)(cV, { children: /* @__PURE__ */ (0, I.jsx)(ZB, { className: "size-6" }) }),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(RL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(BL, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: d ? "框出头像那一块" : "更换头像"
- }), !d && S.length ? /* @__PURE__ */ (0, I.jsxs)(UU, {
+ }), !d && S.length ? /* @__PURE__ */ (0, I.jsxs)(GU, {
color: "soft",
children: [S.length.toLocaleString(), " 张可选"]
}) : null]
}),
/* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: d ? MOe(d.choice) : kOe(n, x)
+ children: d ? FOe(d.choice) : MOe(n, x)
}),
- T ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ T ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "neutral",
children: T
}) : null,
- C ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ C ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "error",
action: E ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...fV(h.isFetching),
+ ...mV(h.isFetching),
onClick: () => {
h.isFetching || h.refetch();
},
@@ -65588,14 +65601,14 @@ function BOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(iL, {
- icon: SB,
+ /* @__PURE__ */ (0, I.jsx)(oL, {
+ icon: wB,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
- }), d ? /* @__PURE__ */ (0, I.jsx)(HOe, {
+ }), d ? /* @__PURE__ */ (0, I.jsx)(GOe, {
kind: e,
entityId: t,
choice: d.choice,
@@ -65615,7 +65628,7 @@ function BOe({ 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: IOe }, (e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: h.isPending ? Array.from({ length: zOe }, (e, t) => /* @__PURE__ */ (0, I.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",
@@ -65628,8 +65641,8 @@ function BOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: FOe(n),
- ...fV(w),
+ title: ROe(n),
+ ...mV(w),
onClick: () => {
w || (n.crop ? (g.reset(), _.reset(), f({ choice: n })) : _.mutate({
via: "choice",
@@ -65638,8 +65651,8 @@ function BOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
},
className: "relative flex cursor-pointer flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-center text-caption-1-regular text-text-secondary outline-none hover:border-border-button-hover hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-selected:border-border-focus-ring aria-selected:bg-background-tertiary-default aria-selected:text-text-primary aria-disabled:cursor-progress aria-disabled:opacity-60",
children: [
- /* @__PURE__ */ (0, I.jsx)(VOe, {
- src: QZ(e, t, n.ref, $Z(n, n.ref)),
+ /* @__PURE__ */ (0, I.jsx)(WOe, {
+ src: eQ(e, t, n.ref, tQ(n, n.ref)),
choice: n
}),
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -65648,15 +65661,15 @@ function BOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}),
n.current ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "absolute top-1 left-1",
- children: /* @__PURE__ */ (0, I.jsx)(UU, {
+ children: /* @__PURE__ */ (0, I.jsx)(GU, {
variant: "caption",
color: "gray",
children: "在用"
})
}) : null,
- rQ(n) ? /* @__PURE__ */ (0, I.jsx)("span", {
+ aQ(n) ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, I.jsxs)(UU, {
+ children: /* @__PURE__ */ (0, I.jsxs)(GU, {
variant: "caption",
color: "gray",
children: [n.cast.toLocaleString(), " 人"]
@@ -65678,7 +65691,7 @@ function BOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
},
children: [/* @__PURE__ */ (0, I.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, I.jsx)(iV, {
+ children: /* @__PURE__ */ (0, I.jsx)(oV, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
@@ -65688,7 +65701,7 @@ function BOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
type: "submit",
variant: "secondary",
disabled: !l.trim(),
- ...fV(v("code")),
+ ...mV(v("code")),
children: "取封面来框"
})]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -65697,7 +65710,7 @@ function BOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
onClick: () => a.current?.click(),
- ...fV(v("file")),
+ ...mV(v("file")),
children: "从本机选图片"
}),
/* @__PURE__ */ (0, I.jsx)("input", {
@@ -65717,7 +65730,7 @@ function BOe({ 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, I.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, I.jsx)(iV, {
+ children: /* @__PURE__ */ (0, I.jsx)(oV, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
@@ -65727,7 +65740,7 @@ function BOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
disabled: !s.trim(),
- ...fV(v("url")),
+ ...mV(v("url")),
onClick: () => {
w || _.mutate({
via: "url",
@@ -65741,7 +65754,7 @@ function BOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})]
})] })] });
}
-function VOe({ src: e, choice: t }) {
+function WOe({ src: e, choice: t }) {
let n = (0, F.useRef)(null), [r, i] = (0, F.useState)(!1), [a, o] = (0, F.useState)(!1);
(0, F.useEffect)(() => {
n.current?.complete && n.current.naturalWidth && i(!0);
@@ -65749,7 +65762,7 @@ function VOe({ src: e, choice: t }) {
let s = {
width: t.width,
height: t.height
- }, c = DOe(t) ? gOe(tQ(t, s, LOe), s) : null, l = r || a ? !0 : void 0;
+ }, c = AOe(t) ? yOe(rQ(t, s, BOe), s) : null, l = r || a ? !0 : void 0;
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-choice-lost": a || void 0,
className: "relative block w-full aspect-avatar-choice overflow-hidden",
@@ -65775,23 +65788,23 @@ function VOe({ src: e, choice: t }) {
})]
});
}
-function HOe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
- let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, F.useState)(o[0]), [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(null), p = $Z(n, s), m = QZ(e, t, s, p), h = LV();
+function GOe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
+ let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, F.useState)(o[0]), [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(null), p = tQ(n, s), m = eQ(e, t, s, p), h = zV();
function g(e) {
c(e), u(null), f(null);
}
- let _ = d && l ? hOe(d, l) : null;
+ let _ = d && l ? vOe(d, l) : null;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
ref: h,
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
- children: [m ? /* @__PURE__ */ (0, I.jsx)(qZ, {
+ children: [m ? /* @__PURE__ */ (0, I.jsx)(YZ, {
src: m,
aspect: 1,
box: d,
size: l,
label: `${n.label} 的头像取景框`,
onSize: (e) => {
- u(e), BZ(e) && f(s === n.ref ? tQ(n, e, 1) : VZ(e, 1));
+ u(e), HZ(e) && f(s === n.ref ? rQ(n, e, 1) : UZ(e, 1));
},
onBox: f
}) : null, o.length > 1 ? /* @__PURE__ */ (0, I.jsx)("div", {
@@ -65805,7 +65818,7 @@ function HOe({ 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: POe(e)
+ children: LOe(e)
}, e))
}) : null]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -65825,12 +65838,12 @@ function HOe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
onClick: i,
- ...fV(r),
+ ...mV(r),
children: "返回备选图片"
}),
n.crop ? null : /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...fV(r),
+ ...mV(r),
onClick: () => {
r || a(null);
},
@@ -65838,7 +65851,7 @@ function HOe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
}),
/* @__PURE__ */ (0, I.jsx)(J, {
disabled: !d || !l,
- ...fV(r),
+ ...mV(r),
onClick: () => {
d && !r && a({
ref: s,
@@ -65853,17 +65866,17 @@ function HOe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
})] });
}
// src/react/components/source-picture.tsx
-var iQ = (e, t, n = 0) => `/jav-image?code=${encodeURIComponent(e)}&image=${encodeURIComponent(t)}${n ? `&attempt=${n}` : ""}`;
-function aQ({ title: e, detail: t, busy: n, onRetry: r }) {
+var oQ = (e, t, n = 0) => `/jav-image?code=${encodeURIComponent(e)}&image=${encodeURIComponent(t)}${n ? `&attempt=${n}` : ""}`;
+function sQ({ title: e, detail: t, busy: n, onRetry: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-jav-picture-wait": "",
- children: /* @__PURE__ */ (0, I.jsx)(cV, {
+ children: /* @__PURE__ */ (0, I.jsx)(uV, {
size: "compact",
- icon: PB,
+ icon: IB,
title: e,
actions: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
- ...fV(!!n),
+ ...mV(!!n),
onClick: r,
children: "立即重试"
}),
@@ -65871,9 +65884,9 @@ function aQ({ title: e, detail: t, busy: n, onRetry: r }) {
})
});
}
-function UOe({ code: e }) {
- let t = fH(), [n, r] = (0, F.useState)("");
- return /* @__PURE__ */ (0, I.jsx)(aQ, {
+function KOe({ code: e }) {
+ let t = mH(), [n, r] = (0, F.useState)("");
+ return /* @__PURE__ */ (0, I.jsx)(sQ, {
title: "封面未取得",
detail: t.error || n,
busy: !!t.busy,
@@ -65888,8 +65901,8 @@ function UOe({ code: e }) {
}
});
}
-function oQ({ item: e, image: t, thumbnail: n = !1 }) {
- let [r, i] = (0, F.useState)(0), [a, o] = (0, F.useState)(null), [s, c] = (0, F.useState)(""), l = (0, F.useRef)(null), u = t === "cover" && e.has_cover, d = !u && (t !== "cover" || e.source_image), f = n ? "" : t === "cover" ? `${e.code} 封面` : `${e.code} 预览 ${Number(t) + 1}`, p = d ? iQ(e.code, t, r) : u ? lo(e, !0) : e.cover_url || "";
+function cQ({ item: e, image: t, thumbnail: n = !1 }) {
+ let [r, i] = (0, F.useState)(0), [a, o] = (0, F.useState)(null), [s, c] = (0, F.useState)(""), l = (0, F.useRef)(null), u = t === "cover" && e.has_cover, d = !u && (t !== "cover" || e.source_image), f = n ? "" : t === "cover" ? `${e.code} 封面` : `${e.code} 预览 ${Number(t) + 1}`, p = d ? oQ(e.code, t, r) : u ? lo(e, !0) : e.cover_url || "";
if ((0, F.useLayoutEffect)(() => {
let e = l.current;
e?.complete && e.naturalWidth > 0 && o({
@@ -65906,8 +65919,8 @@ function oQ({ item: e, image: t, thumbnail: n = !1 }) {
src: p,
alt: f
})
- }) : n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "封面未取得" }) : /* @__PURE__ */ (0, I.jsx)(UOe, { code: e.code });
- if (s === p) return n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, I.jsx)(aQ, {
+ }) : n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "封面未取得" }) : /* @__PURE__ */ (0, I.jsx)(KOe, { code: e.code });
+ if (s === p) return n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, I.jsx)(sQ, {
title: "图片未取得",
onRetry: () => i((e) => e + 1)
});
@@ -65956,8 +65969,8 @@ function oQ({ item: e, image: t, thumbnail: n = !1 }) {
] });
}
// src/react/components/source-avatar.tsx
-function sQ({ code: e, person: t, detail: n = !1 }) {
- tL();
+function lQ({ code: e, person: t, detail: n = !1 }) {
+ rL();
let r = (0, F.useRef)(null), [i, a] = (0, F.useState)(n || typeof IntersectionObserver > "u");
(0, F.useEffect)(() => {
if (!r.current || i) return;
@@ -65971,7 +65984,7 @@ function sQ({ code: e, person: t, detail: n = !1 }) {
"data-source-initial": "",
children: er(nn("performer", t.name))
}), i && t.source_actor_id ? /* @__PURE__ */ (0, I.jsx)("img", {
- src: iQ(e, `actor:${t.source_actor_id}`),
+ src: oQ(e, `actor:${t.source_actor_id}`),
alt: "",
"data-drop": "self"
}) : null] });
@@ -65981,8 +65994,8 @@ function sQ({ code: e, person: t, detail: n = !1 }) {
}) : o;
}
// src/react/feed-new/feed-new-row.tsx
-function cQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
- let a = (0, F.useContext)(qW), o = (0, F.useRef)(null), [s, c] = (0, F.useState)([]), l = e?.items.length ? e.html : "";
+function uQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
+ let a = (0, F.useContext)(YW), o = (0, F.useRef)(null), [s, c] = (0, F.useState)([]), l = e?.items.length ? e.html : "";
(0, F.useLayoutEffect)(() => {
t.removeAttribute("aria-busy"), t.hidden = !l, e && i?.(!!l);
}, [
@@ -66014,7 +66027,7 @@ function cQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
u(e);
},
dangerouslySetInnerHTML: { __html: l }
- }), s.map((e, t) => (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(sQ, {
+ }), s.map((e, t) => (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(lQ, {
code: e.dataset.code,
person: {
name: e.dataset.name,
@@ -66023,7 +66036,7 @@ function cQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
}), e, `${l.length}:${t}`))] }) : null;
}
// src/react/entity-hero/glyph.tsx
-function lQ({ name: e }) {
+function dQ({ name: e }) {
let { wide: t, viewBox: n } = Cn(e);
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: n,
@@ -66033,20 +66046,20 @@ function lQ({ name: e }) {
});
}
// src/react/entity-hero/hero-pop.tsx
-function uQ(e, t) {
+function fQ(e, t) {
t.style.removeProperty("max-height");
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect();
t.style.left = `${Math.max(8, Math.min(innerWidth - r.width - 8, n.left))}px`;
let i = n.bottom + 8, a = innerHeight - 8 - i, o = n.top - 16, s = r.height <= a || r.height > o && a >= o, c = Math.max(0, s ? a : o);
r.height > c && (t.style.maxHeight = `${c}px`), t.style.top = `${s ? i : n.top - 8 - Math.min(r.height, c)}px`;
}
-var dQ = (e) => !!e?.isConnected && e.matches(":popover-open");
-function fQ(e, t, n, r) {
+var pQ = (e) => !!e?.isConnected && e.matches(":popover-open");
+function mQ(e, t, n, r) {
let i = (0, F.useRef)(r);
i.current = r, (0, F.useEffect)(() => {
if (!e) return;
let r = () => {
- t.current && dQ(n.current) ? uQ(t.current, n.current) : i.current();
+ t.current && pQ(n.current) ? fQ(t.current, n.current) : i.current();
};
return addEventListener("scroll", r, {
capture: !0,
@@ -66060,17 +66073,17 @@ function fQ(e, t, n, r) {
n
]);
}
-function pQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
+function hQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
let o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(!1), u = (0, F.useRef)(!1), d = (0, F.useRef)(0), f = () => {
- clearTimeout(d.current), u.current = !1, dQ(s.current) && s.current.hidePopover(), l(!1);
+ clearTimeout(d.current), u.current = !1, pQ(s.current) && s.current.hidePopover(), l(!1);
}, p = () => {
- clearTimeout(d.current), s.current && o.current && !dQ(s.current) && (s.current.showPopover(), uQ(o.current, s.current), l(!0));
+ clearTimeout(d.current), s.current && o.current && !pQ(s.current) && (s.current.showPopover(), fQ(o.current, s.current), l(!0));
}, m = () => {
clearTimeout(d.current), d.current = window.setTimeout(() => {
u.current || o.current?.matches(":hover,:focus-visible") || s.current?.matches(":hover") || f();
}, 150);
};
- return fQ(c, o, s, f), (0, F.useEffect)(() => {
+ return mQ(c, o, s, f), (0, F.useEffect)(() => {
if (!c) return;
let e = (e) => {
let t = e.target;
@@ -66096,7 +66109,7 @@ function pQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
u.current ? f() : (p(), u.current = !0);
},
onKeyDown: (e) => {
- e.key === "Escape" && dQ(s.current) && (e.preventDefault(), f());
+ e.key === "Escape" && pQ(s.current) && (e.preventDefault(), f());
},
children: ["+", t]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -66114,16 +66127,16 @@ function pQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
}), a]
})] });
}
-function WOe({ following: e, busy: t, onToggle: n, tip: r }) {
+function qOe({ following: e, busy: t, onToggle: n, tip: r }) {
let i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), [s, c] = (0, F.useState)(!1), l = (0, F.useRef)(!1), u = () => {
- dQ(o.current) && o.current.hidePopover(), c(!1);
+ pQ(o.current) && o.current.hidePopover(), c(!1);
}, d = () => {
- !l.current && o.current && i.current && !dQ(o.current) && (o.current.showPopover(), uQ(i.current, o.current), c(!0));
+ !l.current && o.current && i.current && !pQ(o.current) && (o.current.showPopover(), fQ(i.current, o.current), c(!0));
}, f = () => {
l.current = !1, u();
};
- return fQ(s, i, o, () => c(!1)), (0, F.useEffect)(() => {
- i.current && dQ(o.current) && uQ(i.current, o.current);
+ return mQ(s, i, o, () => c(!1)), (0, F.useEffect)(() => {
+ i.current && pQ(o.current) && fQ(i.current, o.current);
}, [r]), /* @__PURE__ */ (0, I.jsxs)("label", {
ref: i,
"data-entry-feed": "",
@@ -66132,7 +66145,7 @@ function WOe({ following: e, busy: t, onToggle: n, tip: r }) {
a.current?.matches(":focus-visible") || f();
},
children: [
- /* @__PURE__ */ (0, I.jsx)(lQ, { name: "rss" }),
+ /* @__PURE__ */ (0, I.jsx)(dQ, { name: "rss" }),
/* @__PURE__ */ (0, I.jsx)("input", {
ref: a,
type: "checkbox",
@@ -66166,29 +66179,29 @@ function WOe({ following: e, busy: t, onToggle: n, tip: r }) {
});
}
// src/react/entity-hero/name-picker.tsx
-function GOe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
+function JOe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let [i, a] = (0, F.useState)(!1), o = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
o.current?.setAttribute("title", "名字与别名");
- }, []), /* @__PURE__ */ (0, I.jsxs)(Eme, {
+ }, []), /* @__PURE__ */ (0, I.jsxs)(kme, {
isOpen: i,
onOpenChange: a,
- children: [/* @__PURE__ */ (0, I.jsx)(IL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(RL, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
- children: /* @__PURE__ */ (0, I.jsx)(lQ, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, I.jsx)(lz, {
+ children: /* @__PURE__ */ (0, I.jsx)(dQ, { name: "chevron-down" })
+ }), /* @__PURE__ */ (0, I.jsx)(dz, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
- className: kV,
+ className: jV,
"data-namepick-menu": "",
- children: /* @__PURE__ */ (0, I.jsxs)(Ome, {
+ children: /* @__PURE__ */ (0, I.jsxs)(jme, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(_z, {
+ /* @__PURE__ */ (0, I.jsx)(yz, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -66196,34 +66209,34 @@ function GOe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let r = [...t][0];
r && r !== e && n(r);
},
- children: t.map((e) => /* @__PURE__ */ (0, I.jsxs)(yz, {
+ children: t.map((e) => /* @__PURE__ */ (0, I.jsxs)(xz, {
id: e.value,
textValue: e.label,
"data-namepick-name": e.value,
- children: [/* @__PURE__ */ (0, I.jsx)(lQ, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.label })]
+ children: [/* @__PURE__ */ (0, I.jsx)(dQ, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.label })]
}, e.value))
}),
- /* @__PURE__ */ (0, I.jsx)(lme, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, I.jsx)(_z, { children: /* @__PURE__ */ (0, I.jsxs)(yz, {
+ /* @__PURE__ */ (0, I.jsx)(fme, { "data-namepick-rule": "" }),
+ /* @__PURE__ */ (0, I.jsx)(yz, { children: /* @__PURE__ */ (0, I.jsxs)(xz, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
onAction: r,
- children: [/* @__PURE__ */ (0, I.jsx)(lQ, { name: "plus" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "添加别名…" })]
+ children: [/* @__PURE__ */ (0, I.jsx)(dQ, { name: "plus" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "添加别名…" })]
}) })
]
})
})]
});
}
-var KOe = (e) => e === "studio" || e === "agency", mQ = (e) => e === "performer" || e === "creator", qOe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
-function JOe(e, t = "zh-CN") {
+var YOe = (e) => e === "studio" || e === "agency", gQ = (e) => e === "performer" || e === "creator", XOe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
+function ZOe(e, t = "zh-CN") {
return e.name_display ? e.name_display.choices[t] : [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t).map((e) => ({
value: e,
label: e
}));
}
-function hQ(e) {
+function _Q(e) {
if (e.agency) return {
name: e.agency.canonical_name,
linked: !0,
@@ -66235,13 +66248,13 @@ function hQ(e) {
linked: !1
} : null;
}
-function gQ(e, t) {
+function vQ(e, t) {
let n = Kn(e, "performer"), r = Un(t);
return r && [e.label, n].map(Un).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";
}
-var _Q = (e) => ({ site: zn(e) });
-function YOe(e, t) {
- let n = hQ(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
+var yQ = (e) => ({ site: zn(e) });
+function QOe(e, t) {
+ let n = _Q(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
type: "icon",
url: e.url,
title: e.label,
@@ -66251,7 +66264,7 @@ function YOe(e, t) {
let t = e.retired_year ? `已于 ${e.retired_year} 年隐退` : "链接已失效";
return {
type: "gone",
- title: `${gQ(e, n)} · ${t}`
+ title: `${vQ(e, n)} · ${t}`
};
}
let r = e.url || "";
@@ -66259,11 +66272,11 @@ function YOe(e, t) {
type: "private",
label: e.label || e.hostname || "已记录"
};
- if (mQ(t) && e.link_kind !== "social") return {
+ if (gQ(t) && e.link_kind !== "social") return {
type: "icon",
url: r,
- title: gQ(e, n),
- mark: _Q(e)
+ title: vQ(e, n),
+ mark: yQ(e)
};
if (e.link_kind === "social") {
let t = Hn(r);
@@ -66271,7 +66284,7 @@ function YOe(e, t) {
type: "icon",
url: r,
title: e.label || "",
- mark: t ? { brand: t } : _Q(e)
+ mark: t ? { brand: t } : yQ(e)
};
}
return {
@@ -66279,12 +66292,12 @@ function YOe(e, t) {
url: r,
title: e.label || "",
text: Kn(e, t, i),
- mark: _Q(e)
+ mark: yQ(e)
};
});
- return [...r, ...XOe(a)];
+ return [...r, ...$Oe(a)];
}
-function XOe(e) {
+function $Oe(e) {
let t = e.filter((e) => e.type === "private");
return t.length < 2 ? e : [...e.filter((e) => e.type !== "private"), {
type: "private",
@@ -66292,8 +66305,8 @@ function XOe(e) {
sources: t.map((e) => e.label)
}];
}
-var vQ = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
-function ZOe(e) {
+var bQ = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
+function eke(e) {
return [
[
"legal_name",
@@ -66349,7 +66362,7 @@ function ZOe(e) {
}]
}] : []);
}
-function QOe(e) {
+function tke(e) {
if (!e) return [];
let t = [];
e.birth_date && t.push({
@@ -66406,14 +66419,14 @@ function QOe(e) {
tags: e.tags
}), t;
}
-function yQ(e, t = 4) {
+function xQ(e, t = 4) {
let n = e.length > t + 1 ? t : e.length;
return {
shown: e.slice(0, n),
rest: e.length - n
};
}
-function $Oe(e) {
+function nke(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 ? {
@@ -66423,7 +66436,7 @@ function $Oe(e) {
} : null;
}
// src/react/entity-hero/entity-hero-page.tsx
-function eke(e) {
+function rke(e) {
return go({
id: e.id,
hasImage: e.has_image,
@@ -66434,9 +66447,9 @@ function eke(e) {
standIn: e.avatar_stand_in
});
}
-function tke({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
- tL();
- let s = nn(e, n.canonical_name, Number(n.id)), c = rn(e, n.canonical_name, Number(n.id)), l = mQ(e), u = KOe(e), d = l ? QOe(n.profile) : u ? ZOe(n.company_profile) : [], f = YOe(n, e), p = vQ(n), m = e === "agency" ? [] : n.related_performers || [], h = (0, F.useRef)(null), g = (0, F.useRef)(null);
+function ike({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
+ rL();
+ let s = nn(e, n.canonical_name, Number(n.id)), c = rn(e, n.canonical_name, Number(n.id)), l = gQ(e), u = YOe(e), d = l ? tke(n.profile) : u ? eke(n.company_profile) : [], f = QOe(n, e), p = bQ(n), m = e === "agency" ? [] : n.related_performers || [], h = (0, F.useRef)(null), g = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
o.wireScroller(h.current);
}, [o, f.length]), (0, F.useEffect)(() => {
@@ -66449,7 +66462,7 @@ function tke({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-entity-portrait-wrap": "",
- children: [/* @__PURE__ */ (0, I.jsx)(nke, {
+ children: [/* @__PURE__ */ (0, I.jsx)(ake, {
kind: e,
name: s,
helpers: o,
@@ -66457,7 +66470,7 @@ function tke({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
company: u
}), l && n.id ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-avatar-picker": "",
- children: /* @__PURE__ */ (0, I.jsx)(zOe, {
+ children: /* @__PURE__ */ (0, I.jsx)(HOe, {
kind: e,
entityId: Number(n.id),
name: s || t,
@@ -66472,17 +66485,17 @@ function tke({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
"data-entity-title": "",
children: [
/* @__PURE__ */ (0, I.jsx)("h2", {
- lang: LI(s),
+ lang: zI(s),
title: c || void 0,
children: s
}),
- e === "tag" ? null : /* @__PURE__ */ (0, I.jsx)(GOe, {
+ e === "tag" ? null : /* @__PURE__ */ (0, I.jsx)(JOe, {
current: n.canonical_name,
- choices: JOe(n, Xt()),
+ choices: ZOe(n, Xt()),
onChoose: a.chooseName,
onAddAlias: a.addAlias
}),
- n.id ? /* @__PURE__ */ (0, I.jsx)(wV, { item: {
+ n.id ? /* @__PURE__ */ (0, I.jsx)(EV, { item: {
entity_id: Number(n.id),
kind: e,
name: n.canonical_name || t,
@@ -66496,7 +66509,7 @@ function tke({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
className: "text-caption-1-regular text-text-secondary",
children: c
}) : null,
- /* @__PURE__ */ (0, I.jsx)(rke, {
+ /* @__PURE__ */ (0, I.jsx)(oke, {
kind: e,
entity: n,
actions: a
@@ -66517,14 +66530,14 @@ function tke({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
f.length ? /* @__PURE__ */ (0, I.jsx)("div", {
ref: h,
"data-entity-links": "",
- children: f.map((e, t) => /* @__PURE__ */ (0, I.jsx)(lke, { link: e }, t))
+ children: f.map((e, t) => /* @__PURE__ */ (0, I.jsx)(fke, { link: e }, t))
}) : null,
- p.length || n.feed ? /* @__PURE__ */ (0, I.jsx)(uke, {
+ p.length || n.feed ? /* @__PURE__ */ (0, I.jsx)(pke, {
entity: n,
actions: a,
helpers: o
}) : null,
- n.follow?.held.length ? /* @__PURE__ */ (0, I.jsx)(oke, {
+ n.follow?.held.length ? /* @__PURE__ */ (0, I.jsx)(lke, {
follow: n.follow,
displayName: s,
actions: a
@@ -66533,11 +66546,11 @@ function tke({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
}),
d.length ? /* @__PURE__ */ (0, I.jsx)("dl", {
"data-entity-facts": "",
- children: d.map((e) => /* @__PURE__ */ (0, I.jsx)(ske, {
+ children: d.map((e) => /* @__PURE__ */ (0, I.jsx)(uke, {
glyph: e.glyph,
label: e.label,
clip: e.clip,
- children: e.tags ? /* @__PURE__ */ (0, I.jsx)(cke, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: e.tags ? /* @__PURE__ */ (0, I.jsx)(dke, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
"data-fact-tone": e.tone === "plain" ? void 0 : e.tone,
children: [t ? " " : "", e.text]
}, t))
@@ -66556,7 +66569,7 @@ function tke({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
onClick: () => a.openEntity("performer", e.k),
children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-hero-ring": "",
- dangerouslySetInnerHTML: { __html: `<span>${z(er(nn("performer", e.k, e.id)))}</span>${eke(e)}` }
+ dangerouslySetInnerHTML: { __html: `<span>${z(er(nn("performer", e.k, e.id)))}</span>${rke(e)}` }
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-hero-costar-name": "",
children: nn("performer", e.k, e.id)
@@ -66564,14 +66577,14 @@ function tke({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
}, e.k))
})
}) : null]
- }), i ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(cQ, {
+ }), i ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(uQ, {
feedNew: r,
host: i,
wire: o.wireFeedRow,
act: (e, t) => a.feedAction(e, t)
}), i) : null] });
}
-function nke({ kind: e, name: t, helpers: n, people: r, company: i }) {
+function ake({ kind: e, name: t, helpers: n, people: r, company: i }) {
let a = (0, F.useRef)(null), [o] = (0, F.useState)(() => `${n.portraitImg()}<span data-portrait-initial="">${z(er(t))}</span>`);
return (0, F.useLayoutEffect)(() => {
let e = a.current?.querySelector("[data-portrait-initial]");
@@ -66585,8 +66598,8 @@ function nke({ kind: e, name: t, helpers: n, people: r, company: i }) {
dangerouslySetInnerHTML: { __html: o }
});
}
-function rke({ kind: e, entity: t, actions: n }) {
- let r = hQ(t), i = (e, t) => (r) => {
+function oke({ kind: e, entity: t, actions: n }) {
+ let r = _Q(t), i = (e, t) => (r) => {
r.preventDefault(), n.openEntity(e, t);
}, a = r ? r.linked ? /* @__PURE__ */ (0, I.jsx)("a", {
href: Pn("agency", r.name, r.id),
@@ -66595,44 +66608,44 @@ function rke({ kind: e, entity: t, actions: n }) {
children: r.name
}) : r.name : null, o = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("b", { children: t.asset_count.toLocaleString() }), " 个视频"] });
if (e === "performer" || e === "creator") {
- let e = t.name_display?.groups[Xt()] ?? t.name_groups, r = $Oe(e);
+ let e = t.name_display?.groups[Xt()] ?? t.name_groups, r = nke(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-entity-alias": "meta",
children: [
- /* @__PURE__ */ (0, I.jsx)(bQ, { entity: t }),
+ /* @__PURE__ */ (0, I.jsx)(SQ, { entity: t }),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, I.jsx)(lQ, { name: "film" }), /* @__PURE__ */ (0, I.jsx)("span", { children: o })]
+ children: [/* @__PURE__ */ (0, I.jsx)(dQ, { name: "film" }), /* @__PURE__ */ (0, I.jsx)("span", { children: o })]
}),
- t.follow?.key ? /* @__PURE__ */ (0, I.jsx)(ake, {
+ t.follow?.key ? /* @__PURE__ */ (0, I.jsx)(cke, {
follow: t.follow,
actions: n
}) : null,
a ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, I.jsx)(lQ, { name: "briefcase" }), /* @__PURE__ */ (0, I.jsx)("span", { children: a })]
+ children: [/* @__PURE__ */ (0, I.jsx)(dQ, { name: "briefcase" }), /* @__PURE__ */ (0, I.jsx)("span", { children: a })]
}) : null,
r ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-meta-item": "names",
children: [
- /* @__PURE__ */ (0, I.jsx)(lQ, { name: "id-card" }),
+ /* @__PURE__ */ (0, I.jsx)(dQ, { name: "id-card" }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: r.names.map((e, t) => /* @__PURE__ */ (0, I.jsx)("span", {
- lang: LI(e),
+ lang: zI(e),
children: e
}, t))
}),
- r.rest > 0 ? /* @__PURE__ */ (0, I.jsx)(pQ, {
+ r.rest > 0 ? /* @__PURE__ */ (0, I.jsx)(hQ, {
id: "entityAliasPop",
hook: "alias",
rest: r.rest,
label: `另外 ${r.rest.toLocaleString()} 个别名`,
heading: `${r.total.toLocaleString()} 个别名`,
- children: /* @__PURE__ */ (0, I.jsx)("dl", { children: (e?.groups || []).map((e, t) => /* @__PURE__ */ (0, I.jsx)(xQ, {
+ children: /* @__PURE__ */ (0, I.jsx)("dl", { children: (e?.groups || []).map((e, t) => /* @__PURE__ */ (0, I.jsx)(CQ, {
label: e.label,
names: e.names
}, t)) })
@@ -66654,61 +66667,61 @@ function rke({ kind: e, entity: t, actions: n }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-entity-alias": "meta",
children: [
- e === "creator" ? /* @__PURE__ */ (0, I.jsx)(bQ, { entity: t }) : null,
+ e === "creator" ? /* @__PURE__ */ (0, I.jsx)(SQ, { entity: t }) : null,
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, I.jsx)(lQ, { name: "film" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [o, c] })]
+ children: [/* @__PURE__ */ (0, I.jsx)(dQ, { name: "film" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [o, c] })]
}),
a ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, I.jsx)(lQ, { name: "briefcase" }), /* @__PURE__ */ (0, I.jsx)("span", { children: a })]
+ children: [/* @__PURE__ */ (0, I.jsx)(dQ, { name: "briefcase" }), /* @__PURE__ */ (0, I.jsx)("span", { children: a })]
}) : null,
l ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
title: "片商",
- children: [/* @__PURE__ */ (0, I.jsx)(lQ, { name: "clapperboard" }), /* @__PURE__ */ (0, I.jsx)("a", {
+ children: [/* @__PURE__ */ (0, I.jsx)(dQ, { name: "clapperboard" }), /* @__PURE__ */ (0, I.jsx)("a", {
href: Pn("studio", l.name, l.id),
"data-studio-link": l.name,
onClick: i("studio", l.name),
children: l.name
})]
}) : null,
- s.length ? /* @__PURE__ */ (0, I.jsx)(ike, { aliases: s }) : null
+ s.length ? /* @__PURE__ */ (0, I.jsx)(ske, { aliases: s }) : null
]
});
}
-function ike({ aliases: e }) {
- let { shown: t, rest: n } = yQ(e, 3);
+function ske({ aliases: e }) {
+ let { shown: t, rest: n } = xQ(e, 3);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-meta-item": "names",
"data-company-names": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(lQ, { name: "id-card" }),
+ /* @__PURE__ */ (0, I.jsx)(dQ, { name: "id-card" }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: t.map((e, t) => /* @__PURE__ */ (0, I.jsx)("span", { children: e }, t))
}),
- n ? /* @__PURE__ */ (0, I.jsx)(pQ, {
+ n ? /* @__PURE__ */ (0, I.jsx)(hQ, {
id: "entityAliasPop",
hook: "alias",
rest: n,
label: `另外 ${n.toLocaleString()} 个别名`,
heading: `${e.length.toLocaleString()} 个别名`,
- children: /* @__PURE__ */ (0, I.jsx)("dl", { children: /* @__PURE__ */ (0, I.jsx)(xQ, { names: e.map((e) => ({ name: e })) }) })
+ children: /* @__PURE__ */ (0, I.jsx)("dl", { children: /* @__PURE__ */ (0, I.jsx)(CQ, { names: e.map((e) => ({ name: e })) }) })
}) : null
]
});
}
-function ake({ follow: e, actions: t }) {
+function cke({ follow: e, actions: t }) {
let n = e.providers.join(" · ");
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
"data-entity-follow": "",
title: n ? `关注 · ${n}` : "关注",
- children: [/* @__PURE__ */ (0, I.jsx)(lQ, { name: "rss" }), /* @__PURE__ */ (0, I.jsxs)("a", {
+ children: [/* @__PURE__ */ (0, I.jsx)(dQ, { name: "rss" }), /* @__PURE__ */ (0, I.jsxs)("a", {
href: "?media=online",
onClick: (n) => {
n.preventDefault(), t.openFollowAuthor(e.key);
@@ -66717,7 +66730,7 @@ function ake({ follow: e, actions: t }) {
})]
});
}
-function oke({ follow: e, displayName: t, actions: n }) {
+function lke({ follow: e, displayName: t, actions: n }) {
let [r, i] = (0, F.useState)(""), a = async (e, t) => {
if (!r) {
i(e);
@@ -66731,12 +66744,12 @@ function oke({ follow: e, displayName: t, actions: n }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-held": "",
className: "flex flex-col gap-2",
- children: e.held.map((e) => /* @__PURE__ */ (0, I.jsxs)(sV, {
+ children: e.held.map((e) => /* @__PURE__ */ (0, I.jsxs)(lV, {
tone: "info",
title: `关注里有同名作者 ${e.name}`,
action: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
- ...fV(r === e.key),
+ ...mV(r === e.key),
onClick: () => {
a(e.key, e.name);
},
@@ -66751,37 +66764,37 @@ function oke({ follow: e, displayName: t, actions: n }) {
}, e.key))
});
}
-function bQ({ entity: e }) {
+function SQ({ entity: e }) {
return e.identity_labels?.length ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "classification",
"data-identity-classification": "",
- children: [/* @__PURE__ */ (0, I.jsx)(lQ, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.identity_labels.join(" · ") })]
+ children: [/* @__PURE__ */ (0, I.jsx)(dQ, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.identity_labels.join(" · ") })]
}) : null;
}
-function xQ({ label: e, names: t }) {
+function CQ({ label: e, names: t }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)("dt", { children: e }) : null, /* @__PURE__ */ (0, I.jsx)("dd", {
"data-wide": e ? void 0 : "",
children: t.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
"data-pop-name": "",
- lang: LI(e.name),
+ lang: zI(e.name),
children: [e.name, e.reading ? /* @__PURE__ */ (0, I.jsx)("small", { children: e.reading }) : null]
}, t))
})] });
}
-function ske({ glyph: e, label: t, clip: n, children: r }) {
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("dt", { children: [/* @__PURE__ */ (0, I.jsx)(lQ, { name: e }), t] }), /* @__PURE__ */ (0, I.jsx)("dd", {
+function uke({ glyph: e, label: t, clip: n, children: r }) {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("dt", { children: [/* @__PURE__ */ (0, I.jsx)(dQ, { name: e }), t] }), /* @__PURE__ */ (0, I.jsx)("dd", {
"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,
title: n,
children: r
})] });
}
-function cke({ tags: e }) {
- let { shown: t, rest: n } = yQ(e);
+function dke({ tags: e }) {
+ let { shown: t, rest: n } = xQ(e);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, I.jsx)("span", {
"data-fact-tag": "",
title: e,
children: e
- }, e)), n ? /* @__PURE__ */ (0, I.jsx)(pQ, {
+ }, e)), n ? /* @__PURE__ */ (0, I.jsx)(hQ, {
id: "entityTagPop",
hook: "fact",
rest: n,
@@ -66797,10 +66810,10 @@ function cke({ tags: e }) {
})
}) : null] });
}
-function SQ({ mark: e }) {
+function wQ({ mark: e }) {
if ("brand" in e) return /* @__PURE__ */ (0, I.jsx)("span", {
"data-link-icon": "brand",
- children: /* @__PURE__ */ (0, I.jsx)(lQ, { name: e.brand })
+ children: /* @__PURE__ */ (0, I.jsx)(dQ, { name: e.brand })
});
let t = R("globe") + ("site" in e ? `<img src="${z(e.site)}" alt="" width="20" height="20" loading="lazy" decoding="async" referrerpolicy="no-referrer" data-drop="self">` : "");
return /* @__PURE__ */ (0, I.jsx)("span", {
@@ -66808,7 +66821,7 @@ function SQ({ mark: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-function lke({ link: e }) {
+function fke({ link: e }) {
switch (e.type) {
case "icon": return /* @__PURE__ */ (0, I.jsx)("a", {
"data-link": "icon",
@@ -66817,19 +66830,19 @@ function lke({ link: e }) {
rel: "noopener noreferrer",
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, I.jsx)(SQ, { mark: e.mark })
+ children: /* @__PURE__ */ (0, I.jsx)(wQ, { mark: e.mark })
});
case "gone": return /* @__PURE__ */ (0, I.jsx)("span", {
"data-link": "gone",
tabIndex: 0,
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, I.jsx)(SQ, { mark: { globe: !0 } })
+ children: /* @__PURE__ */ (0, I.jsx)(wQ, { mark: { globe: !0 } })
});
case "private": return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-link": "private",
title: e.sources ? e.sources.join("\n") : e.label,
- children: [/* @__PURE__ */ (0, I.jsx)(SQ, { mark: { globe: !0 } }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(wQ, { mark: { globe: !0 } }), /* @__PURE__ */ (0, I.jsx)("span", {
"data-link-label": "",
children: e.sources ? e.label : `来源 · ${e.label}`
})]
@@ -66841,7 +66854,7 @@ function lke({ link: e }) {
rel: "noopener noreferrer",
title: e.title,
children: [
- /* @__PURE__ */ (0, I.jsx)(SQ, { mark: e.mark }),
+ /* @__PURE__ */ (0, I.jsx)(wQ, { mark: e.mark }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-link-label": "",
children: e.text
@@ -66856,7 +66869,7 @@ function lke({ link: e }) {
});
}
}
-function uke({ entity: e, actions: t, helpers: n }) {
+function pke({ entity: e, actions: t, helpers: n }) {
let [r, i] = (0, F.useState)(!!e.feed?.following), [a, o] = (0, F.useState)(!1), s = (0, F.useRef)(!1), c = async (e) => {
if (s.current) return !1;
s.current = !0, o(!0);
@@ -66874,33 +66887,33 @@ function uke({ entity: e, actions: t, helpers: n }) {
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-entry-marks": "",
- children: [vQ(e).map((e, t) => /* @__PURE__ */ (0, I.jsxs)("a", {
+ children: [bQ(e).map((e, t) => /* @__PURE__ */ (0, I.jsxs)("a", {
"data-entry-mark": "",
href: e.url,
target: "_blank",
rel: "noopener noreferrer",
title: e.label,
"aria-label": e.label,
- children: [e.mark ? /* @__PURE__ */ (0, I.jsx)(lQ, { name: e.mark }) : /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [e.mark ? /* @__PURE__ */ (0, I.jsx)(dQ, { name: e.mark }) : /* @__PURE__ */ (0, I.jsxs)("span", {
"data-missav-mark": "",
children: [/* @__PURE__ */ (0, I.jsx)("span", { children: "MISS" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "AV" })]
}), e.ordinal ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-entry-ordinal": "",
children: e.ordinal
}) : null]
- }, t)), e.feed ? /* @__PURE__ */ (0, I.jsx)(WOe, {
+ }, t)), e.feed ? /* @__PURE__ */ (0, I.jsx)(qOe, {
following: r,
busy: a,
onToggle: (e) => {
l(e);
},
- tip: qOe(r)
+ tip: XOe(r)
}) : null]
});
}
// src/react/entity-page/use-entity-online.ts
-var dke = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
-function fke(e, t, n) {
+var mke = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
+function hke(e, t, n) {
let [r, i] = (0, F.useState)(() => _a(e));
r.author !== e && i(_a(e));
let [a, o] = (0, F.useState)({
@@ -66979,7 +66992,7 @@ function fke(e, t, n) {
onlineMedia: (e) => c(e),
onlineShuffle: () => T({
sort: ea,
- seed: dke()
+ seed: mke()
}),
onlineImagesOnly: (e) => n.setImagesOnly(e),
onlineStatus: (e) => T({ status: e }),
@@ -67009,8 +67022,8 @@ function fke(e, t, n) {
};
}
// src/react/entity-page/entity-page-view.tsx
-function pke(e) {
- let { kind: t, name: n } = e, r = Ft(IX(t, n)), i = !!r.data?.error, a = r.data?.canonical_name, o = r.data?.redirect ?? (a && a !== n ? {
+function gke(e) {
+ let { kind: t, name: n } = e, r = Ft(RX(t, n)), i = !!r.data?.error, a = r.data?.canonical_name, o = r.data?.redirect ?? (a && a !== n ? {
kind: t,
name: a
} : void 0), { actions: s } = e;
@@ -67028,17 +67041,17 @@ function pke(e) {
s,
o?.kind,
o?.name
- ]), r.isError ? /* @__PURE__ */ (0, I.jsx)(FG, {
+ ]), r.isError ? /* @__PURE__ */ (0, I.jsx)(LG, {
message: lr(r.error),
onRetry: () => {
r.refetch();
}
- }) : !r.data || i || o ? null : /* @__PURE__ */ (0, I.jsx)(gke, {
+ }) : !r.data || i || o ? null : /* @__PURE__ */ (0, I.jsx)(yke, {
...e,
entity: r.data
});
}
-function CQ(e) {
+function TQ(e) {
let [t, n] = (0, F.useState)({
key: e,
n: 1
@@ -67050,22 +67063,22 @@ function CQ(e) {
};
return n(r), r.n;
}
-var mke = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
-function hke(e, t) {
+var _ke = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
+function vke(e, t) {
return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t.toLocaleString()} 部作品` : ""].filter(Boolean).join(" · ")}`;
}
-function gke(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 = Lt(LX(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 || RX(p).length > 0, g = t === "creator" && r.follow?.key || "", _ = !!g && !r.asset_count, v = a.media === "photos" && h ? a : (a.media === "online" || _) && g ? {
+function yke(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 = Lt(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 || BX(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
- } : kX, [y, b] = (0, F.useState)("people"), x = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [S, C] = (0, F.useState)(x);
+ } : jX, [y, b] = (0, F.useState)("people"), x = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [S, C] = (0, F.useState)(x);
S !== x && (C(x), b("videos"));
- let w = l && y === "people" && u.length ? "people" : v.media, T = fke(g, w === "online", {
+ let w = l && y === "people" && u.length ? "people" : v.media, T = hke(g, w === "online", {
photoLayout: e.photoLayout,
photoLayouts: e.photoLayouts,
imagesOnly: e.followImagesOnly,
setImagesOnly: e.follow.actions.setImagesOnly
- }), E = w === "photos" || w === "online" && T.media === "images", [D, O] = (0, F.useState)(0), k = FX(e), A = Ft(k), j = CQ(JSON.stringify([k.queryKey, D])), [M] = (0, F.useState)(() => (t === "performer" || t === "studio") && (e.jav || (A.data?.items || []).some((e) => e.is_jav)));
+ }), E = w === "photos" || w === "online" && T.media === "images", [D, O] = (0, F.useState)(0), k = LX(e), A = Ft(k), j = TQ(JSON.stringify([k.queryKey, D])), [M] = (0, F.useState)(() => (t === "performer" || t === "studio") && (e.jav || (A.data?.items || []).some((e) => e.is_jav)));
(0, F.useLayoutEffect)(() => {
s.javContext(M);
}, [s, M]);
@@ -67075,26 +67088,26 @@ function gke(e) {
}, [e.layout, M]), N = {
jav: e.jav,
seed: e.seed
- }, te = (0, F.useCallback)((e, r, a) => PX(t, n, i, N, e, r, a), [j]), [P, ne] = (0, F.useState)({}), re = v.set, ie = P[re] || "", ae = Lt({
- ...LX(t, n, re, ie),
+ }, te = (0, F.useCallback)((e, r, a) => IX(t, n, i, N, e, r, a), [j]), [P, ne] = (0, F.useState)({}), re = v.set, ie = P[re] || "", ae = Lt({
+ ...zX(t, n, re, ie),
enabled: w === "photos"
- }), oe = ae.data?.pages[0], se = CQ(JSON.stringify(jX(t, n, re, ie))), ce = (0, F.useMemo)(() => {
+ }), oe = ae.data?.pages[0], se = TQ(JSON.stringify(NX(t, n, re, ie))), ce = (0, F.useMemo)(() => {
let e = ae.data?.pages;
if (!e?.[0] || e[0].error) return null;
let t = e[0];
return {
revision: se,
- codeSets: t.id ? [] : RX(t),
+ codeSets: t.id ? [] : BX(t),
items: e.flatMap((e) => e.items || []),
total: t.total || 0,
hasMore: !!e[e.length - 1]?.has_more
};
}, [ae.data, se]), le = ae.refetch, ue = ae.fetchNextPage, de = Ft({
- ...EX(d, o.feedRowHtml),
+ ...OX(d, o.feedRowHtml),
enabled: !!d
}), fe = (0, F.useRef)(e.feedRevision);
(0, F.useEffect)(() => {
- fe.current !== e.feedRevision && (fe.current = e.feedRevision, H.invalidateQueries({ queryKey: TX(d) }));
+ fe.current !== e.feedRevision && (fe.current = e.feedRevision, H.invalidateQueries({ queryKey: DX(d) }));
}, [d, e.feedRevision]);
let pe = !!A.data;
(0, F.useEffect)(() => {
@@ -67108,11 +67121,11 @@ function gke(e) {
pe,
T.key
]), (0, F.useEffect)(() => {
- c.body.isConnected && !document.getElementById("index")?.hidden && (lm("entity", {
+ c.body.isConnected && !document.getElementById("index")?.hidden && (mm("entity", {
seed: e.seed,
revision: e.revision,
jav: e.jav
- }), !A.isPending && !ae.isPending && pm(() => c.body.isConnected && !document.getElementById("index")?.hidden, c.filter));
+ }), !A.isPending && !ae.isPending && vm(() => c.body.isConnected && !document.getElementById("index")?.hidden, c.filter));
}, [
c,
e.seed,
@@ -67128,7 +67141,7 @@ function gke(e) {
me.current = !1;
}, []);
let he = (0, F.useCallback)(async () => {
- await H.invalidateQueries({ queryKey: ["entity-route"] }), await H.invalidateQueries({ queryKey: AX(t, n) }), await H.invalidateQueries({ queryKey: [
+ await H.invalidateQueries({ queryKey: ["entity-route"] }), await H.invalidateQueries({ queryKey: MX(t, n) }), await H.invalidateQueries({ queryKey: [
"entity-items",
t,
n
@@ -67162,7 +67175,7 @@ function gke(e) {
enabled: e
})
}),
- onSuccess: (e, r) => H.setQueryData(AX(t, n), (e) => e && {
+ onSuccess: (e, r) => H.setQueryData(MX(t, n), (e) => e && {
...e,
feed: {
...e.feed,
@@ -67216,10 +67229,10 @@ function gke(e) {
let e = await Tn("/api/feeds/check").catch(() => null);
if (!e || e.status !== "running") break;
}
- me.current && await H.invalidateQueries({ queryKey: TX(d) });
+ me.current && await H.invalidateQueries({ queryKey: DX(d) });
})();
},
- feedAction: DX,
+ feedAction: kX,
avatarPicked: () => {
s.avatarChanged(), he().then(() => {
me.current && O((e) => e + 1);
@@ -67267,19 +67280,19 @@ function gke(e) {
(e !== w || v.set) && (b(e === "people" ? "people" : "videos"), s.route(i, e === "photos" || e === "online" ? {
media: e,
set: 0
- } : kX));
+ } : jX));
},
setState: (e) => s.route({
...i,
state: e
- }, kX),
+ }, jX),
toggleTag: s.toggleTag,
clearFilter: s.clearFilter,
clearAll: s.clearAll,
setSort: s.setSort,
reshuffle: async () => {
if (w !== "photos") {
- let r = s.reshuffleVideos(), a = FX({
+ let r = s.reshuffleVideos(), a = LX({
kind: t,
name: n,
filters: {
@@ -67293,7 +67306,7 @@ function gke(e) {
await H.fetchQuery(a).catch(() => null);
return;
}
- let r = mke(), a = await H.fetchInfiniteQuery(LX(t, n, re, r)).catch(() => null);
+ let r = _ke(), a = await H.fetchInfiniteQuery(zX(t, n, re, r)).catch(() => null);
me.current && a?.pages[0] && !a.pages[0].error && ne((e) => ({
...e,
[re]: r
@@ -67328,7 +67341,7 @@ function gke(e) {
k: e.k,
label: Ll(e.k),
n: e.n,
- selected: YEe(i.tag, e.k)
+ selected: QEe(i.tag, e.k)
})), Te = [
u.length,
!_,
@@ -67363,14 +67376,14 @@ function gke(e) {
creator: "",
studio: "",
owner: ""
- }, kX), Ne = "", Pe = !1;
+ }, jX), Ne = "", Pe = !1;
if (w === "people") Ne = `${t === "studio" ? "厂牌" : "艺人"} · ${u.length.toLocaleString()}`;
else if (w === "online") Pe = T.busy, Ne = `在线 · ${(T.total ?? r.follow?.n ?? 0).toLocaleString()} 项更新`;
else if (w === "videos") {
Pe = !A.data;
- let e = MX(i.tag).length;
+ let e = PX(i.tag).length;
Ne = `视频 · ${(A.data?.work_total ?? A.data?.total ?? 0).toLocaleString()}${e ? ` · 已选 ${e.toLocaleString()} 个标签` : ""}`;
- } else oe && !oe.error ? Ne = De ? `${oe.title} · ${(oe.total || 0).toLocaleString()} 张` : hke(oe, RX(oe).length) : Pe = ae.isPending;
+ } else oe && !oe.error ? Ne = De ? `${oe.title} · ${(oe.total || 0).toLocaleString()} 张` : vke(oe, BX(oe).length) : Pe = ae.isPending;
let Fe = (0, F.useMemo)(() => ({
...e.card.actions,
loadMorePhotos: async () => {
@@ -67387,7 +67400,7 @@ function gke(e) {
u
]);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(tke, {
+ /* @__PURE__ */ (0, I.jsx)(ike, {
kind: t,
name: n,
entity: r,
@@ -67397,7 +67410,7 @@ function gke(e) {
actions: be,
helpers: xe
}, D),
- (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Rbe, {
+ (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Vbe, {
kind: t,
name: n,
view: w,
@@ -67414,9 +67427,9 @@ function gke(e) {
actions: Se,
helpers: Ce
}), c.filter),
- (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Tbe, {
+ (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Obe, {
enabled: w === "videos",
- children: w === "online" ? /* @__PURE__ */ (0, I.jsx)(cOe, {
+ children: w === "online" ? /* @__PURE__ */ (0, I.jsx)(dOe, {
view: T.view,
media: T.media,
result: T.result,
@@ -67430,16 +67443,16 @@ function gke(e) {
actions: e.follow.actions,
canLoadMore: e.canLoadMore,
clearFilters: T.clearFilters
- }) : w === "videos" && A.isError ? /* @__PURE__ */ (0, I.jsx)(FG, {
+ }) : w === "videos" && A.isError ? /* @__PURE__ */ (0, I.jsx)(LG, {
message: lr(A.error),
onRetry: () => {
A.refetch();
}
- }) : je ? /* @__PURE__ */ (0, I.jsx)(_ke, {
+ }) : je ? /* @__PURE__ */ (0, I.jsx)(bke, {
filtered: Ae,
onShowAll: Me,
onOnline: g ? () => Se.setView("online") : void 0
- }) : /* @__PURE__ */ (0, I.jsx)(ODe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(jDe, {
kind: t,
name: n,
view: w,
@@ -67472,9 +67485,9 @@ function gke(e) {
}), c.body)
] });
}
-function _ke({ filtered: e, onShowAll: t, onOnline: n }) {
- return e ? /* @__PURE__ */ (0, I.jsx)(cV, {
- icon: uV("search"),
+function bke({ filtered: e, onShowAll: t, onOnline: n }) {
+ return e ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ icon: fV("search"),
title: "没有符合条件的视频",
actions: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
@@ -67482,14 +67495,14 @@ function _ke({ filtered: e, onShowAll: t, onOnline: n }) {
children: "清除筛选"
}),
children: "清除筛选后查看名下全部视频。"
- }) : /* @__PURE__ */ (0, I.jsx)(cV, {
- icon: uV("film"),
+ }) : /* @__PURE__ */ (0, I.jsx)(uV, {
+ icon: fV("film"),
title: "还没有视频",
actions: n ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
onClick: n,
children: "查看在线作品"
- }) : /* @__PURE__ */ (0, I.jsx)(gL, {
+ }) : /* @__PURE__ */ (0, I.jsx)(vL, {
size: "small",
href: "/",
children: "浏览馆藏"
@@ -67498,30 +67511,30 @@ function _ke({ filtered: e, onShowAll: t, onOnline: n }) {
});
}
// src/react/diagnostics/diagnostics.ts
-var wQ = ["diagnostics"], TQ = (e) => B("/api/diagnostics", e);
-async function vke(e) {
+var EQ = ["diagnostics"], DQ = (e) => B("/api/diagnostics", e);
+async function xke(e) {
await H.fetchQuery({
- queryKey: wQ,
- queryFn: () => TQ(e),
+ queryKey: EQ,
+ queryFn: () => DQ(e),
staleTime: 1e4
});
}
// src/react/feed-new/feed-new-page.tsx
-function yke({ host: e, revision: t, helpers: n, actions: r }) {
- let i = Ft(EX(null, n.feedRowHtml)), a = (0, F.useRef)(t);
+function Ske({ host: e, revision: t, helpers: n, actions: r }) {
+ let i = Ft(OX(null, n.feedRowHtml)), a = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
- a.current !== t && (a.current = t, H.invalidateQueries({ queryKey: TX(null) }));
- }, [t]), (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(cQ, {
+ a.current !== t && (a.current = t, H.invalidateQueries({ queryKey: DX(null) }));
+ }, [t]), (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(uQ, {
feedNew: i.data ?? null,
host: e,
wire: n.wireFeedRow,
- act: DX,
+ act: kX,
settled: r.settled
}), e);
}
// src/react/index/index-search.tsx
-var bke = uV("search");
-function EQ({ label: e, value: t, onQuery: n }) {
+var Cke = fV("search");
+function OQ({ label: e, value: t, onQuery: n }) {
let [r, i] = (0, F.useState)(t), a = (0, F.useRef)(!1), o = (0, F.useRef)(void 0);
(0, F.useEffect)(() => {
clearTimeout(o.current), i(t);
@@ -67538,27 +67551,27 @@ function EQ({ label: e, value: t, onQuery: n }) {
onCompositionEnd: (e) => {
a.current = !1, s(e.target.value);
},
- children: /* @__PURE__ */ (0, I.jsx)(tV, {
+ children: /* @__PURE__ */ (0, I.jsx)(rV, {
"aria-label": e,
value: r,
onChange: (e) => {
i(e), a.current || s(e);
},
- children: /* @__PURE__ */ (0, I.jsx)(rV, {
+ children: /* @__PURE__ */ (0, I.jsx)(aV, {
type: "search",
- leadingIcon: bke,
+ leadingIcon: Cke,
spellCheck: !1,
autoComplete: "off",
enterKeyHint: "search",
onKeyDown: (e) => {
- e.key !== "Enter" || a.current || QU(e.nativeEvent) || (e.preventDefault(), clearTimeout(o.current), n(r.trim()));
+ e.key !== "Enter" || a.current || eW(e.nativeEvent) || (e.preventDefault(), clearTimeout(o.current), n(r.trim()));
}
})
})
});
}
// src/react/index/tag-pagination.ts
-function DQ(e) {
+function kQ(e) {
let [t, n] = (0, F.useState)({
filter: e,
pageIndex: 0,
@@ -67575,7 +67588,7 @@ function DQ(e) {
}), [e])
};
}
-function OQ(e, t, n) {
+function AQ(e, t, n) {
let { pageIndex: r, pageSize: i } = t;
(0, F.useEffect)(() => {
if (e === void 0) return;
@@ -67592,11 +67605,11 @@ function OQ(e, t, n) {
]);
}
// src/react/index/index-tags.tsx
-var kQ = () => /* @__PURE__ */ (0, I.jsx)("span", {
+var jQ = () => /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
-}), AQ = uV("pencil"), jQ = (e, t) => ({
+}), MQ = fV("pencil"), NQ = (e, t) => ({
kind: "tag",
name: e.k,
favorite: e.favorite,
@@ -67605,7 +67618,7 @@ var kQ = () => /* @__PURE__ */ (0, I.jsx)("span", {
tag_id: e.id || e.k
} : { entity_id: e.entity_id }
});
-function xke({ tag: e, actions: t }) {
+function wke({ tag: e, actions: t }) {
let n = t.picked.has(e.k);
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 items-center gap-1",
@@ -67614,13 +67627,13 @@ function xke({ tag: e, actions: t }) {
type: "button",
"data-alpha-tag": "",
"data-k": e.k,
- "data-tag-cat": QX(t.online, e.cat),
+ "data-tag-cat": eZ(t.online, e.cat),
"aria-pressed": n,
title: e.label,
onClick: () => t.press(e.k),
className: "flex h-9 min-w-0 flex-1 cursor-pointer items-center gap-2.25 rounded-lg px-2.5 text-left text-body-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: [
- /* @__PURE__ */ (0, I.jsx)(kQ, {}),
+ /* @__PURE__ */ (0, I.jsx)(jQ, {}),
/* @__PURE__ */ (0, I.jsx)("span", {
className: "min-w-0 flex-1 truncate",
children: e.label
@@ -67631,32 +67644,32 @@ function xke({ tag: e, actions: t }) {
})
]
}),
- t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(wV, { item: jQ(e, t.online) }),
- t.edit ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(EV, { item: NQ(e, t.online) }),
+ t.edit ? /* @__PURE__ */ (0, I.jsx)(TV, {
label: `编辑标签 ${e.label}`,
onClick: () => t.edit?.(e.k),
- children: /* @__PURE__ */ (0, I.jsx)(AQ, {})
+ children: /* @__PURE__ */ (0, I.jsx)(MQ, {})
}) : null
]
});
}
-function MQ({ groups: e, actions: t }) {
+function PQ({ groups: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-alphabet": "",
className: "flex flex-col gap-4",
children: e.map(([e, n], r) => /* @__PURE__ */ (0, I.jsxs)("section", {
"data-alpha-group": r,
- className: bU({
+ className: SU({
radius: "plain",
padding: "none",
className: "px-5 pt-4 pb-3"
}),
children: [/* @__PURE__ */ (0, I.jsxs)("h3", {
className: "mb-2 flex items-center text-title-2-medium text-text-primary",
- children: [e, /* @__PURE__ */ (0, I.jsx)(pW, { value: n.length })]
+ children: [e, /* @__PURE__ */ (0, I.jsx)(hW, { value: n.length })]
}), /* @__PURE__ */ (0, I.jsx)("div", {
className: "index-tag-list gap-x-4 gap-y-0.5",
- children: n.map((e) => /* @__PURE__ */ (0, I.jsx)(xke, {
+ children: n.map((e) => /* @__PURE__ */ (0, I.jsx)(wke, {
tag: e,
actions: t
}, e.k))
@@ -67664,26 +67677,26 @@ function MQ({ groups: e, actions: t }) {
}, e))
});
}
-var Ske = "\xA0";
-function NQ({ tags: e, actions: t }) {
+var Tke = "\xA0";
+function FQ({ tags: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-tag-cloud": "",
className: "flex flex-wrap gap-1.75",
children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)("span", {
"data-tag-token": "",
- "data-tag-cat": QX(t.online, e.cat),
+ "data-tag-cat": eZ(t.online, e.cat),
className: "inline-flex max-w-full min-w-0 items-center gap-1 rounded-lg border p-1",
children: [/* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-tag-chip": "",
"data-k": e.k,
- "data-tag-cat": QX(t.online, e.cat),
+ "data-tag-cat": eZ(t.online, e.cat),
"aria-pressed": t.picked.has(e.k),
onClick: () => t.press(e.k),
className: "inline-flex max-w-full min-w-0 cursor-pointer items-center rounded-lg px-2 py-0.5 text-body-2-regular text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "min-w-0 truncate",
- children: e.label + Ske
+ children: e.label + Tke
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-tag-n": "",
className: "text-caption-1-regular opacity-60",
@@ -67692,16 +67705,16 @@ function NQ({ tags: e, actions: t }) {
}), t.favorites !== !1 || t.edit ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-tag-actions": "",
className: "inline-flex flex-none items-center gap-1",
- children: [t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(wV, { item: jQ(e, t.online) }), t.edit ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ children: [t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(EV, { item: NQ(e, t.online) }), t.edit ? /* @__PURE__ */ (0, I.jsx)(TV, {
label: `编辑标签 ${e.label}`,
onClick: () => t.edit?.(e.k),
- children: /* @__PURE__ */ (0, I.jsx)(AQ, {})
+ children: /* @__PURE__ */ (0, I.jsx)(MQ, {})
}) : null]
}) : null]
}, e.k))
});
}
-var Cke = [[
+var Eke = [[
"cloud",
"标签云",
"tags"
@@ -67710,34 +67723,34 @@ var Cke = [[
"字母表",
"text-aa"
]];
-function PQ({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c, status: l, actions: u }) {
- let d = sL();
- return /* @__PURE__ */ (0, I.jsx)(lL, {
+function IQ({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c, status: l, actions: u }) {
+ let d = lL();
+ return /* @__PURE__ */ (0, I.jsx)(dL, {
label: "标签筛选",
topLabel: "标签类型",
top: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [l ? /* @__PURE__ */ (0, I.jsxs)("div", {
role: "group",
"aria-label": "标签状态",
className: "flex flex-none items-center gap-1.75 border-r border-(--glass-low) pr-3",
- children: [[[!1, "使用中"], [!0, "已隐藏"]].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(uL, {
+ children: [[[!1, "使用中"], [!0, "已隐藏"]].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(fL, {
"data-tag-pill": "",
"data-tag-cat": "all",
pressed: !l.blocked && l.hidden === e,
onPress: () => l.onChange(!!e),
children: t
- }, String(e))), l.onBlocked ? /* @__PURE__ */ (0, I.jsx)(uL, {
+ }, String(e))), l.onBlocked ? /* @__PURE__ */ (0, I.jsx)(fL, {
"data-tag-pill": "",
"data-tag-cat": "all",
pressed: !!l.blocked,
onPress: l.onBlocked,
children: "已屏蔽内容"
}) : null]
- }) : null, e.map(([e, r]) => /* @__PURE__ */ (0, I.jsxs)(uL, {
+ }) : null, e.map(([e, r]) => /* @__PURE__ */ (0, I.jsxs)(fL, {
"data-tag-pill": "",
- "data-tag-cat": e === "all" ? "all" : QX(n, e),
+ "data-tag-cat": e === "all" ? "all" : eZ(n, e),
pressed: t === e,
onPress: () => o(e),
- children: [/* @__PURE__ */ (0, I.jsx)(kQ, {}), r]
+ children: [/* @__PURE__ */ (0, I.jsx)(jQ, {}), r]
}, e))] }),
bottom: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -67758,19 +67771,19 @@ function PQ({ categories: e, category: t, online: n, readout: r, letters: i, vie
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, I.jsx)(kz, {
+ /* @__PURE__ */ (0, I.jsx)(jz, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${rU}`,
- children: Cke.map(([e, t, n]) => {
- let r = uV(n);
- return /* @__PURE__ */ (0, I.jsx)(Az, {
+ className: `ml-auto ${aU}`,
+ children: Eke.map(([e, t, n]) => {
+ let r = fV(n);
+ return /* @__PURE__ */ (0, I.jsx)(Mz, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: iU,
+ className: oU,
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
className: "contents",
@@ -67782,13 +67795,13 @@ function PQ({ categories: e, category: t, online: n, readout: r, letters: i, vie
] })
});
}
-function wke({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
- return /* @__PURE__ */ (0, I.jsxs)(yj, {
+function Dke({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
+ return /* @__PURE__ */ (0, I.jsxs)(xj, {
visible: e > 0,
label: "所选标签操作",
count: `已选 ${e.toLocaleString()} 个标签`,
children: [
- /* @__PURE__ */ (0, I.jsx)(IV, {
+ /* @__PURE__ */ (0, I.jsx)(RV, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
children: /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -67819,74 +67832,74 @@ function wke({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
});
}
// src/react/toaster.tsx
-var FQ = (e, t) => /* @__PURE__ */ (0, I.jsx)("span", {
+var LQ = (e, t) => /* @__PURE__ */ (0, I.jsx)("span", {
"data-toast-glyph": t ? "draw" : "still",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: e }
-}), IQ = null, LQ = { "--floating-radius": "var(--radius-2xl)" }, RQ = (e) => `max(${e}px, var(--selection-dock-space, 0px), var(--miniplayer-space, 0px))`;
-function zQ() {
- let e = IQ;
- IQ = null, e?.root.unmount();
-}
-var BQ = (e, t) => {
- if (IQ?.host === e) return;
- zQ();
+}), RQ = null, zQ = { "--floating-radius": "var(--radius-2xl)" }, BQ = (e) => `max(${e}px, var(--selection-dock-space, 0px), var(--miniplayer-space, 0px))`;
+function VQ() {
+ let e = RQ;
+ RQ = null, e?.root.unmount();
+}
+var HQ = (e, t) => {
+ if (RQ?.host === e) return;
+ VQ();
let n = (0, zt.createRoot)(e);
- IQ = {
+ RQ = {
host: e,
root: n
- }, n.render(/* @__PURE__ */ (0, I.jsxs)(zV, { children: [/* @__PURE__ */ (0, I.jsx)(qV, {
+ }, n.render(/* @__PURE__ */ (0, I.jsxs)(VV, { children: [/* @__PURE__ */ (0, I.jsx)(YV, {
id: "receipts",
position: "bottom-right",
closeButton: !0,
gap: 8,
style: {
- ...LQ,
+ ...zQ,
"--width": "min(560px, calc(100vw - 48px))"
},
offset: {
right: 24,
- bottom: `calc(${RQ(24)} + var(--processing-toast-space, 0px))`
+ bottom: `calc(${BQ(24)} + var(--processing-toast-space, 0px))`
},
mobileOffset: {
right: 16,
left: 16,
- bottom: `calc(${RQ(16)} + var(--processing-toast-space, 0px))`
+ bottom: `calc(${BQ(16)} + var(--processing-toast-space, 0px))`
},
toastOptions: { closeButtonAriaLabel: "关闭提示" },
containerAriaLabel: "通知",
icons: {
- success: FQ(t.success, !0),
- error: FQ(t.error, !1)
+ success: LQ(t.success, !0),
+ error: LQ(t.error, !1)
}
- }), /* @__PURE__ */ (0, I.jsx)(qV, {
+ }), /* @__PURE__ */ (0, I.jsx)(YV, {
id: "processing",
position: "bottom-right",
gap: 8,
expand: !0,
style: {
- ...LQ,
+ ...zQ,
"--width": "min(400px, calc(100vw - 32px))"
},
offset: {
right: 24,
- bottom: RQ(24)
+ bottom: BQ(24)
},
mobileOffset: {
right: 16,
left: 16,
- bottom: RQ(16)
+ bottom: BQ(16)
},
toastOptions: { closeButtonAriaLabel: "关闭任务提示" },
containerAriaLabel: "后台任务"
})] }));
-}, Tke = 6e3, VQ = (e, t) => {
+}, Oke = 6e3, UQ = (e, t) => {
if (!String(t.html ?? "").trim()) return;
- let n = t.alert ? HV.error : HV.success, r = t.action;
+ let n = t.alert ? WV.error : WV.success, r = t.action;
n(/* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
id: e,
toasterId: "receipts",
- duration: t.timeout > 0 ? t.timeout : Tke,
+ duration: t.timeout > 0 ? t.timeout : Oke,
action: r ? {
label: r.label,
onClick: (e) => {
@@ -67894,7 +67907,7 @@ var BQ = (e, t) => {
}
} : void 0
});
-}, HQ = (e) => e.id ?? e.entity_id, UQ = {
+}, WQ = (e) => e.id ?? e.entity_id, GQ = {
rename: "重命名标签",
merge: "合并标签",
hide: "隐藏标签",
@@ -67902,26 +67915,26 @@ var BQ = (e, t) => {
repair: "整理重复标签",
block: "屏蔽内容",
unblock: "恢复内容"
-}, WQ = (e, t) => V("/api/tag-management/preview", e, "POST", t);
-async function GQ(e, t, n) {
+}, KQ = (e, t) => V("/api/tag-management/preview", e, "POST", t);
+async function qQ(e, t, n) {
if (n?.aborted) return !1;
let r = t.tags.map((e) => `「${e.k}」`).join("、"), i = e.operation === "merge" || e.operation === "repair" ? `合并 ${t.tags.length} 个标签,涉及 ${t.assets} 个资源,重叠关联 ${t.overlap} 个。旧名称保留为别名。此操作无法直接撤销。` : e.operation === "rename" ? `${r}将更名为「${t.name || e.name}」,涉及 ${t.assets} 个资源。旧名称保留为别名。` : e.operation === "block" ? `屏蔽带有${r}任一标签的内容及其其它版本,涉及 ${t.assets} 个资源。可在「已屏蔽内容」中恢复。` : e.operation === "unblock" ? `解除${r}的内容屏蔽,涉及 ${t.assets} 个资源。` : `${e.operation === "hide" ? "隐藏" : "恢复"} ${t.tags.length} 个标签,涉及 ${t.assets} 个资源。${e.operation === "hide" ? "可在“已隐藏”中恢复。" : ""}`;
return !(await ll({
- title: UQ[e.operation],
+ title: GQ[e.operation],
body: i,
- confirmLabel: UQ[e.operation],
+ confirmLabel: GQ[e.operation],
onConfirm: () => V("/api/tag-management", {
...e,
token: t.token
}, "POST", n)
- })).confirmed || n?.aborted ? !1 : (await H.invalidateQueries(), VQ(`tag-management-${Date.now()}`, {
- html: `已${UQ[e.operation]}`,
+ })).confirmed || n?.aborted ? !1 : (await H.invalidateQueries(), UQ(`tag-management-${Date.now()}`, {
+ html: `已${GQ[e.operation]}`,
alert: !1,
timeout: 6e3,
action: null
}), !0);
}
-function KQ({ operation: e, selected: t, close: n, done: r, scope: i = "local" }) {
+function JQ({ operation: e, selected: t, close: n, done: r, scope: i = "local" }) {
let a = (0, F.useRef)({
operation: e,
selected: t,
@@ -67930,24 +67943,24 @@ function KQ({ operation: e, selected: t, close: n, done: r, scope: i = "local" }
scope: i
}), o = (0, F.useRef)({
name: t[0]?.k || "",
- target_id: t[0] ? HQ(t[0]) : 0
+ target_id: t[0] ? WQ(t[0]) : 0
}), [s, c] = (0, F.useState)(null);
return (0, F.useEffect)(() => {
let e = new AbortController(), t = a.current, n = sl({
- title: UQ[t.operation],
+ title: GQ[t.operation],
confirmLabel: "预览影响范围",
confirmDisabled: !0,
body: "<div class=\"peach-react\" data-tag-editor-fields></div>",
onConfirm: async () => {
let n = {
operation: t.operation,
- ids: t.selected.map(HQ),
+ ids: t.selected.map(WQ),
...t.scope === "online" ? { scope: t.scope } : {},
...t.operation === "rename" ? { name: o.current.name.trim() } : { target_id: o.current.target_id }
};
return {
command: n,
- plan: await WQ(n, e.signal)
+ plan: await KQ(n, e.signal)
};
}
});
@@ -67958,14 +67971,14 @@ function KQ({ operation: e, selected: t, close: n, done: r, scope: i = "local" }
if (!e.signal.aborted) {
if (n.confirmed) {
let r = n.result;
- await GQ(r.command, r.plan, e.signal) && t.done();
+ await qQ(r.command, r.plan, e.signal) && t.done();
}
e.signal.aborted || t.close();
}
}), () => {
e.abort(), n.close();
};
- }, []), s ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Eke, {
+ }, []), s ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(kke, {
operation: a.current.operation,
selected: a.current.selected,
dialog: s.dialog,
@@ -67974,8 +67987,8 @@ function KQ({ operation: e, selected: t, close: n, done: r, scope: i = "local" }
}
}), s.host) : null;
}
-function Eke({ operation: e, selected: t, dialog: n, update: r }) {
- let [i, a] = (0, F.useState)(t[0]?.k || ""), [o, s] = (0, F.useState)(t[0] ? HQ(t[0]) : 0);
+function kke({ operation: e, selected: t, dialog: n, update: r }) {
+ let [i, a] = (0, F.useState)(t[0]?.k || ""), [o, s] = (0, F.useState)(t[0] ? WQ(t[0]) : 0);
return (0, F.useEffect)(() => {
r({
name: i,
@@ -67988,28 +68001,28 @@ function Eke({ operation: e, selected: t, dialog: n, update: r }) {
e,
t,
r
- ]), e === "rename" ? /* @__PURE__ */ (0, I.jsx)(iV, {
+ ]), e === "rename" ? /* @__PURE__ */ (0, I.jsx)(oV, {
autoFocus: !0,
"aria-label": "标签名称",
value: i,
onChange: a,
maxLength: 80
- }) : /* @__PURE__ */ (0, I.jsx)(LJ, {
+ }) : /* @__PURE__ */ (0, I.jsx)(zJ, {
"aria-label": "保留的标签",
prefix: "保留",
selectedKey: String(o),
onSelectionChange: (e) => {
- let n = t.find((t) => String(HQ(t)) === String(e));
- n && s(HQ(n));
+ let n = t.find((t) => String(WQ(t)) === String(e));
+ n && s(WQ(n));
},
- children: t.map((e) => /* @__PURE__ */ (0, I.jsx)(VU, {
- id: String(HQ(e)),
+ children: t.map((e) => /* @__PURE__ */ (0, I.jsx)(UU, {
+ id: String(WQ(e)),
children: e.k
- }, HQ(e)))
+ }, WQ(e)))
});
}
// src/react/index/tag-manager.tsx
-function qQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r, onView: i, onJump: a, scope: o = "local" }) {
+function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r, onView: i, onJump: a, scope: o = "local" }) {
let s = o === "online", c = (0, F.useRef)(null), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(t), [p, m] = (0, F.useState)(n), h = r ? t : d, g = i ? n : p, _ = e ?? l, [v, y] = (0, F.useState)(!1), [b, x] = (0, F.useState)(!1), S = JSON.stringify([
o,
_,
@@ -68017,7 +68030,7 @@ function qQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
g,
v,
b
- ]), { pagination: C, onChange: w } = DQ(S), T = new URLSearchParams({
+ ]), { pagination: C, onChange: w } = kQ(S), T = new URLSearchParams({
limit: String(C.pageSize),
offset: String(C.pageIndex * C.pageSize),
q: _,
@@ -68034,25 +68047,25 @@ function qQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
],
queryFn: ({ signal: e }) => B(`/api/tag-management?${T}`, e)
});
- OQ(E.data?.total, C, w);
+ AQ(E.data?.total, C, w);
let [D, O] = (0, F.useState)(/* @__PURE__ */ new Map());
(0, F.useEffect)(() => {
O(/* @__PURE__ */ new Map());
}, [S]);
- let k = new Set(D.keys()), [A, j] = (0, F.useState)(null), M = fH(), ee = E.data?.items || [], N = ee, te = (s ? UX : HX).filter(([e]) => e === "all" || e === h || E.isPending || Number(E.data?.categories[e]) > 0), P = N.map((e) => ({
+ let k = new Set(D.keys()), [A, j] = (0, F.useState)(null), M = mH(), ee = E.data?.items || [], N = ee, te = (s ? GX : WX).filter(([e]) => e === "all" || e === h || E.isPending || Number(E.data?.categories[e]) > 0), P = N.map((e) => ({
...e,
label: e.k
- })), ne = g === "alphabet" ? $X(P, (e) => e) : [], re = [...D.values()], ie = (e) => {
+ })), ne = g === "alphabet" ? tZ(P, (e) => e) : [], re = [...D.values()], ie = (e) => {
M.run(e.operation, async (t) => {
let n = s ? {
...e,
scope: o
} : e;
- return GQ(n, await WQ(n, t), t);
+ return qQ(n, await KQ(n, t), t);
}, (e) => {
e && O(/* @__PURE__ */ new Map());
});
- }, ae = re.map(HQ), oe = {
+ }, ae = re.map(WQ), oe = {
online: s,
favorites: s,
picked: k,
@@ -68073,13 +68086,13 @@ function qQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
children: [
e === void 0 ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "mb-4 flex",
- children: /* @__PURE__ */ (0, I.jsx)(EQ, {
+ children: /* @__PURE__ */ (0, I.jsx)(OQ, {
label: "过滤标签",
value: l,
onQuery: u
})
}) : null,
- /* @__PURE__ */ (0, I.jsx)(PQ, {
+ /* @__PURE__ */ (0, I.jsx)(IQ, {
categories: te,
category: h,
online: s,
@@ -68107,7 +68120,7 @@ function qQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
} } : {}
},
actions: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- E.data?.duplicate_groups.length ? /* @__PURE__ */ (0, I.jsx)(dL, {
+ E.data?.duplicate_groups.length ? /* @__PURE__ */ (0, I.jsx)(pL, {
busy: M.busy === "repair",
onPress: () => ie({
operation: "repair",
@@ -68115,11 +68128,11 @@ function qQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
}),
children: "整理重复标签"
}) : null,
- N.length ? /* @__PURE__ */ (0, I.jsx)(dL, {
+ N.length ? /* @__PURE__ */ (0, I.jsx)(pL, {
onPress: () => O((e) => new Map([...e, ...N.map((e) => [e.k, e])])),
children: "选择本页"
}) : null,
- k.size ? /* @__PURE__ */ (0, I.jsx)(dL, {
+ k.size ? /* @__PURE__ */ (0, I.jsx)(pL, {
onPress: () => O(/* @__PURE__ */ new Map()),
children: "清空选择"
}) : null
@@ -68128,7 +68141,7 @@ function qQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
E.isPending ? /* @__PURE__ */ (0, I.jsx)("div", { dangerouslySetInnerHTML: { __html: rc({
mode: g,
pageSize: C.pageSize
- }) } }) : E.isError ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ }) } }) : E.isError ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -68136,19 +68149,19 @@ function qQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
children: "立即重试"
}),
children: "无法读取标签"
- }) : N.length ? g === "alphabet" ? /* @__PURE__ */ (0, I.jsx)(MQ, {
+ }) : N.length ? g === "alphabet" ? /* @__PURE__ */ (0, I.jsx)(PQ, {
groups: ne,
actions: oe
- }) : /* @__PURE__ */ (0, I.jsx)(NQ, {
+ }) : /* @__PURE__ */ (0, I.jsx)(FQ, {
tags: P,
actions: oe
- }) : /* @__PURE__ */ (0, I.jsx)(sV, {
+ }) : /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "neutral",
children: "没有符合条件的标签。"
}),
E.data ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "mt-5",
- children: /* @__PURE__ */ (0, I.jsx)(BJ, {
+ children: /* @__PURE__ */ (0, I.jsx)(HJ, {
label: "标签管理",
total: E.data.total,
pagination: C,
@@ -68158,11 +68171,11 @@ function qQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
pageSizes: nc
})
}) : null,
- M.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ M.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "error",
children: M.error
}) : null,
- /* @__PURE__ */ (0, I.jsxs)(yj, {
+ /* @__PURE__ */ (0, I.jsxs)(xj, {
label: "标签管理操作",
count: `已选 ${k.size} 个标签`,
visible: k.size > 0,
@@ -68184,7 +68197,7 @@ function qQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...fV(!!M.busy),
+ ...mV(!!M.busy),
onClick: () => ie({
operation: v ? "restore" : "hide",
ids: ae
@@ -68194,7 +68207,7 @@ function qQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
s ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...fV(!!M.busy),
+ ...mV(!!M.busy),
onClick: () => ie({
operation: b ? "unblock" : "block",
ids: ae
@@ -68203,7 +68216,7 @@ function qQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
}) : null
]
}),
- A ? /* @__PURE__ */ (0, I.jsx)(KQ, {
+ A ? /* @__PURE__ */ (0, I.jsx)(JQ, {
operation: A,
selected: re,
scope: o,
@@ -68214,7 +68227,7 @@ function qQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
});
}
// src/react/index/index-page.tsx
-var Dke = [
+var Ake = [
{
value: "studios",
label: "厂牌",
@@ -68230,7 +68243,7 @@ var Dke = [
label: "系列",
symbol: "list"
}
-], Oke = [{
+], jke = [{
value: "local",
label: "本地",
symbol: "hard-drive"
@@ -68238,7 +68251,7 @@ var Dke = [
value: "online",
label: "在线",
symbol: "rss"
-}], kke = [
+}], Mke = [
{
value: "performers",
label: "艺人",
@@ -68254,7 +68267,7 @@ var Dke = [
label: "在线",
symbol: "rss"
}
-], Ake = {
+], Nke = {
people: [[
"big",
"大图 · 竖幅头像",
@@ -68283,20 +68296,20 @@ var Dke = [
"layout-grid"
]]
};
-function jke({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, I.jsx)(eU, {
- "aria-label": `${VX[e]}索引版式`,
+function Pke({ kind: e, layout: t, onChange: n }) {
+ return /* @__PURE__ */ (0, I.jsx)(nU, {
+ "aria-label": `${UX[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none ${tU}`,
- children: Ake[e === "series" ? "series" : KX(e) ? "company" : "people"].map(([e, t, n]) => {
- let r = uV(n);
- return /* @__PURE__ */ (0, I.jsx)(Az, {
+ className: `flex-none ${rU}`,
+ children: Nke[e === "series" ? "series" : JX(e) ? "company" : "people"].map(([e, t, n]) => {
+ let r = fV(n);
+ return /* @__PURE__ */ (0, I.jsx)(Mz, {
value: e,
"aria-label": t,
- className: Pve,
+ className: Lve,
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
className: "contents",
@@ -68306,8 +68319,8 @@ function jke({ kind: e, layout: t, onChange: n }) {
})
});
}
-function Mke(e) {
- let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(() => qX({
+function Fke(e) {
+ let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(() => YX({
kind: e.kind,
q: e.q,
scope: e.scope,
@@ -68320,8 +68333,8 @@ function Mke(e) {
e.view,
e.category
]), [o, s] = (0, F.useState)(a);
- a !== o && (s(a), i(qX(e)));
- let [c, l] = (0, F.useState)(e.layout), [u, d] = (0, F.useState)(/* @__PURE__ */ new Set()), [f, p] = (0, F.useState)("any"), m = (0, F.useRef)(null), { kind: h, q: g, scope: _, view: v, category: y } = r, b = VX[h], x = h === "tags" && _ === "online", S = h === "performers" && _ === "online";
+ a !== o && (s(a), i(YX(e)));
+ let [c, l] = (0, F.useState)(e.layout), [u, d] = (0, F.useState)(/* @__PURE__ */ new Set()), [f, p] = (0, F.useState)("any"), m = (0, F.useRef)(null), { kind: h, q: g, scope: _, view: v, category: y } = r, b = UX[h], x = h === "tags" && _ === "online", S = h === "performers" && _ === "online";
(0, F.useEffect)(() => {
if (r.kind === e.kind && r.scope === e.scope && r.category === e.category) return;
let t = !0;
@@ -68340,7 +68353,7 @@ function Mke(e) {
...t
};
i(o), e.route(o, { replace: a });
- }, { pagination: w, onChange: T } = DQ(JSON.stringify(r)), E = ZX(JX(r), w.pageSize), D = Lt({
+ }, { pagination: w, onChange: T } = kQ(JSON.stringify(r)), E = $X(XX(r), w.pageSize), D = Lt({
queryKey: h === "tags" && (w.pageIndex || w.pageSize !== 100) ? [
...E.queryKey,
"page",
@@ -68355,16 +68368,16 @@ function Mke(e) {
getNextPageParam: h === "tags" ? () => void 0 : E.getNextPageParam,
enabled: !(t && h === "tags"),
placeholderData: ke
- }), O = uDe(D.data), k = D.isPending || D.isPlaceholderData, A = !!D.hasNextPage && !D.isPlaceholderData, j = D.data?.pages[0]?.total;
+ }), O = pDe(D.data), k = D.isPending || D.isPlaceholderData, A = !!D.hasNextPage && !D.isPlaceholderData, j = D.data?.pages[0]?.total;
(0, F.useEffect)(() => {
- pm(() => window.location.pathname === `/${h}` && !!m.current?.isConnected, m.current?.querySelector("[data-index-body]"), { pending: k });
+ vm(() => window.location.pathname === `/${h}` && !!m.current?.isConnected, m.current?.querySelector("[data-index-body]"), { pending: k });
}, [
D.data,
D.isPending,
D.isPlaceholderData,
r
- ]), OQ(h === "tags" && !D.isPlaceholderData ? j : void 0, w, T);
- let M = h === "tags" ? D.isPending || D.isError ? "" : `${(j ?? O.length).toLocaleString()} 个标签` : dDe(O.length, !!D.hasNextPage), ee = `${h}:${_}:${g}`, N = (0, F.useRef)(null), te = D.data?.pages[0]?.categories;
+ ]), AQ(h === "tags" && !D.isPlaceholderData ? j : void 0, w, T);
+ let M = h === "tags" ? D.isPending || D.isError ? "" : `${(j ?? O.length).toLocaleString()} 个标签` : mDe(O.length, !!D.hasNextPage), ee = `${h}:${_}:${g}`, N = (0, F.useRef)(null), te = D.data?.pages[0]?.categories;
te && !D.isPlaceholderData && (N.current = {
key: ee,
counts: te
@@ -68380,15 +68393,15 @@ function Mke(e) {
O,
h,
x
- ]), ae = (0, F.useMemo)(() => h === "tags" && v === "alphabet" ? $X(ie, (t) => x ? t : e.tagLabel(t)) : [], [
+ ]), ae = (0, F.useMemo)(() => h === "tags" && v === "alphabet" ? tZ(ie, (t) => x ? t : e.tagLabel(t)) : [], [
ie,
v,
h,
x
]), oe = (t) => {
l(t), e.savePreference({ layout: t });
- }, se = h === "tags" ? /* @__PURE__ */ (0, I.jsx)(mW, {
- tabs: Oke,
+ }, se = h === "tags" ? /* @__PURE__ */ (0, I.jsx)(gW, {
+ tabs: jke,
value: _,
label: "词表",
onChange: (e) => {
@@ -68398,8 +68411,8 @@ function Mke(e) {
view: e === "online" ? "alphabet" : v
});
}
- }) : KX(h) || h === "series" ? /* @__PURE__ */ (0, I.jsx)(mW, {
- tabs: Dke,
+ }) : JX(h) || h === "series" ? /* @__PURE__ */ (0, I.jsx)(gW, {
+ tabs: Ake,
value: h,
label: "资料类型",
onChange: (e) => C({ kind: e })
@@ -68408,7 +68421,7 @@ function Mke(e) {
let n = new Set(e);
return n.delete(t) || n.add(t), n;
}) : ie.find((e) => e.k === t)?.entity_id ? e.openEntity("tag", t) : e.showTags([t], "all");
- }, le = (x ? UX : HX).filter(re);
+ }, le = (x ? GX : WX).filter(re);
return /* @__PURE__ */ (0, I.jsxs)("div", {
ref: m,
"data-index-page": h,
@@ -68423,10 +68436,10 @@ function Mke(e) {
className: "flex flex-none items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",
children: b
}),
- GX(h) ? /* @__PURE__ */ (0, I.jsx)("span", {
+ qX(h) ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-index-count": "",
className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums max-board-narrow:order-1 max-board-narrow:basis-full",
- children: /* @__PURE__ */ (0, I.jsx)(nL, {
+ children: /* @__PURE__ */ (0, I.jsx)(iL, {
text: k ? void 0 : D.isError ? "" : M,
busy: k,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -68435,18 +68448,18 @@ function Mke(e) {
})
})
}) : null,
- GX(h) ? /* @__PURE__ */ (0, I.jsx)(jke, {
+ qX(h) ? /* @__PURE__ */ (0, I.jsx)(Pke, {
kind: h,
layout: c,
onChange: oe
}) : null,
- /* @__PURE__ */ (0, I.jsx)(TV, { kind: h === "tags" ? "tag" : h === "series" ? "series" : h === "studios" ? "studio" : h === "agencies" ? "agency" : h === "creators" ? "creator" : "performer" }),
+ /* @__PURE__ */ (0, I.jsx)(DV, { kind: h === "tags" ? "tag" : h === "series" ? "series" : h === "studios" ? "studio" : h === "agencies" ? "agency" : h === "creators" ? "creator" : "performer" }),
h === "tags" ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: t ? "primary" : "ghost",
iconOnly: !0,
className: "flex-none",
"data-tag-mode": "",
- leadingIcon: uV("pencil"),
+ leadingIcon: fV("pencil"),
"aria-label": t ? "返回标签浏览" : "管理标签",
title: t ? "返回标签浏览" : "管理标签",
"aria-pressed": t,
@@ -68454,7 +68467,7 @@ function Mke(e) {
e.exitSelectMode(), d(/* @__PURE__ */ new Set()), n(!t);
}
}) : null,
- /* @__PURE__ */ (0, I.jsx)(EQ, {
+ /* @__PURE__ */ (0, I.jsx)(OQ, {
label: `过滤${b}`,
value: g,
onQuery: (e) => {
@@ -68463,8 +68476,8 @@ function Mke(e) {
})
]
}),
- h === "performers" || h === "creators" ? /* @__PURE__ */ (0, I.jsx)(mW, {
- tabs: kke,
+ h === "performers" || h === "creators" ? /* @__PURE__ */ (0, I.jsx)(gW, {
+ tabs: Mke,
value: S ? "online" : h,
label: "人物名册",
onChange: (t) => {
@@ -68476,7 +68489,7 @@ function Mke(e) {
}
}) : null,
se,
- t && h === "tags" ? /* @__PURE__ */ (0, I.jsx)(qQ, {
+ t && h === "tags" ? /* @__PURE__ */ (0, I.jsx)(YQ, {
scope: _,
search: g,
category: y,
@@ -68490,8 +68503,8 @@ function Mke(e) {
}, _) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
h === "performers" && _ === "local" ? /* @__PURE__ */ (0, I.jsx)("div", {
"aria-label": "身份分类",
- className: BX,
- children: zX.filter((e) => e[0] === y || re(e)).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(J, {
+ className: HX,
+ children: VX.filter((e) => e[0] === y || re(e)).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(J, {
variant: y === e ? "primary" : "secondary",
size: "small",
"aria-pressed": y === e,
@@ -68499,7 +68512,7 @@ function Mke(e) {
children: t
}, e))
}) : null,
- h === "tags" ? /* @__PURE__ */ (0, I.jsx)(PQ, {
+ h === "tags" ? /* @__PURE__ */ (0, I.jsx)(IQ, {
categories: le,
category: y,
online: x,
@@ -68515,7 +68528,7 @@ function Mke(e) {
}) : null,
/* @__PURE__ */ (0, I.jsx)("div", {
"data-index-body": "",
- children: /* @__PURE__ */ (0, I.jsx)(IG, {
+ children: /* @__PURE__ */ (0, I.jsx)(RG, {
pending: k,
skeletonHtml: () => h === "tags" ? rc({
mode: v,
@@ -68527,8 +68540,8 @@ function Mke(e) {
}),
children: (() => {
if (k) return null;
- if (D.isError) return /* @__PURE__ */ (0, I.jsx)(cV, {
- icon: uV("alert"),
+ if (D.isError) return /* @__PURE__ */ (0, I.jsx)(uV, {
+ icon: fV("alert"),
title: `没能读取${b}`,
actions: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -68537,7 +68550,7 @@ function Mke(e) {
}),
children: xn(D.error)
});
- if (!O.length) return /* @__PURE__ */ (0, I.jsx)(Pke, {
+ if (!O.length) return /* @__PURE__ */ (0, I.jsx)(Lke, {
kind: h,
filtered: !!g || y !== "all",
online: x || S,
@@ -68546,12 +68559,12 @@ function Mke(e) {
category: "all"
})
});
- if (S) return /* @__PURE__ */ (0, I.jsx)(gDe, {
+ if (S) return /* @__PURE__ */ (0, I.jsx)(yDe, {
items: O,
layout: c,
props: e
});
- if (GX(h)) return /* @__PURE__ */ (0, I.jsx)(nZ, {
+ if (qX(h)) return /* @__PURE__ */ (0, I.jsx)(iZ, {
kind: h,
items: O,
layout: c,
@@ -68562,10 +68575,10 @@ function Mke(e) {
picked: u,
press: ce
};
- return v === "alphabet" ? /* @__PURE__ */ (0, I.jsx)(MQ, {
+ return v === "alphabet" ? /* @__PURE__ */ (0, I.jsx)(PQ, {
groups: ae,
actions: t
- }) : /* @__PURE__ */ (0, I.jsx)(NQ, {
+ }) : /* @__PURE__ */ (0, I.jsx)(FQ, {
tags: ie,
actions: t
});
@@ -68574,7 +68587,7 @@ function Mke(e) {
}),
h === "tags" && !k && !D.isError ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "mt-5",
- children: /* @__PURE__ */ (0, I.jsx)(BJ, {
+ children: /* @__PURE__ */ (0, I.jsx)(HJ, {
label: "标签",
total: j ?? O.length,
pagination: w,
@@ -68599,7 +68612,7 @@ function Mke(e) {
}) : null, "载入更多"]
})
}) : null,
- h === "tags" && !x && e.selectMode ? /* @__PURE__ */ (0, I.jsx)(wke, {
+ h === "tags" && !x && e.selectMode ? /* @__PURE__ */ (0, I.jsx)(Dke, {
count: u.size,
match: f,
onMatch: p,
@@ -68613,7 +68626,7 @@ function Mke(e) {
]
});
}
-var Nke = {
+var Ike = {
tags: "标签",
performers: "艺人",
creators: "卖家",
@@ -68621,9 +68634,9 @@ var Nke = {
agencies: "事务所",
series: "系列"
};
-function Pke({ kind: e, filtered: t, online: n, onClear: r }) {
- if (t) return /* @__PURE__ */ (0, I.jsx)(cV, {
- icon: uV("search"),
+function Lke({ kind: e, filtered: t, online: n, onClear: r }) {
+ if (t) return /* @__PURE__ */ (0, I.jsx)(uV, {
+ icon: fV("search"),
title: "没有符合条件的内容",
actions: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
@@ -68632,16 +68645,16 @@ function Pke({ kind: e, filtered: t, online: n, onClear: r }) {
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : Nke[e], a = /* @__PURE__ */ (0, I.jsx)(gL, {
+ let i = n && e === "performers" ? "创作者" : Ike[e], a = /* @__PURE__ */ (0, I.jsx)(vL, {
size: "small",
variant: n ? "primary" : "secondary",
href: "/subscriptions?tab=add",
children: "添加关注"
});
- return /* @__PURE__ */ (0, I.jsx)(cV, {
- icon: uV(e === "tags" ? "tags" : "user-round"),
+ return /* @__PURE__ */ (0, I.jsx)(uV, {
+ icon: fV(e === "tags" ? "tags" : "user-round"),
title: `还没有${i}`,
- actions: n ? a : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(gL, {
+ actions: n ? a : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(vL, {
size: "small",
href: "/settings/library",
children: "添加媒体"
@@ -68649,15 +68662,15 @@ function Pke({ kind: e, filtered: t, online: n, onClear: r }) {
children: n ? `添加关注来源并获取内容后,这里会显示来源上的${i}。` : "添加内容并补充资料后,这里会显示对应信息。"
});
}
-var JQ = {
+var XQ = {
video: ["视频", "play"],
image: ["图片", "pics"],
archive: ["压缩包", "file-archive"],
audio: ["音频", "file-audio"],
url: ["网址快捷方式", "globe"],
other: ["其它文件", "hard-drive"]
-}, Fke = (e) => JQ[e.junk_kind || "other"] || JQ.other;
-function Ike(e) {
+}, Rke = (e) => XQ[e.junk_kind || "other"] || XQ.other;
+function zke(e) {
return e === "dismissed" ? {
operation: "reconsider-junk",
label: "重新判断",
@@ -68668,40 +68681,40 @@ function Ike(e) {
glyph: "check"
};
}
-var YQ = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), Lke = (e, t) => [
+var ZQ = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), Bke = (e, t) => [
"junk-queue",
e.view,
e.kind,
t
];
-function Rke({ kind: e, view: t }) {
+function Vke({ kind: e, view: t }) {
let n = new URLSearchParams({
limit: "200",
status: t
});
return e && n.set("kind", e), n.toString();
}
-async function zke(e, t) {
- let n = await B(`/api/ads?${Rke(e)}`, t);
+async function Hke(e, t) {
+ let n = await B(`/api/ads?${Vke(e)}`, t);
return {
...n,
items: n.items || []
};
}
// src/react/junk-queue/junk-card.tsx
-function XQ({ name: e }) {
+function QQ({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-var ZQ = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
-function Bke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
- let o = (0, F.useRef)(null), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = e.junk_kind || "other", [f, p] = Fke(e), m = String(e.name || ""), h = Ike(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]") || ZQ(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
+var $Q = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
+function Uke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
+ let o = (0, F.useRef)(null), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = e.junk_kind || "other", [f, p] = Rke(e), m = String(e.name || ""), h = zke(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]") || $Q(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
}, y = (t) => {
- t.stopPropagation(), ZQ(r, t) ? (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey)) : o.current && a.open(e, o.current);
+ t.stopPropagation(), $Q(r, t) ? (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey)) : o.current && a.open(e, o.current);
}, b = (t) => {
t.preventDefault(), t.stopPropagation(), s !== "reveal" && (c("reveal"), u(""), a.reveal(e).then(u, () => {}).finally(() => c("")));
}, x = (t) => (n) => {
@@ -68732,7 +68745,7 @@ function Bke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"data-junk-kind": d,
"data-selected": n ? "" : void 0,
onClick: v,
- onMouseDown: nK,
+ onMouseDown: iK,
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-pic": "",
@@ -68740,7 +68753,7 @@ function Bke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
children: [
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, I.jsx)(XQ, { name: p }), /* @__PURE__ */ (0, I.jsx)("b", { children: f })]
+ children: [/* @__PURE__ */ (0, I.jsx)(QQ, { name: p }), /* @__PURE__ */ (0, I.jsx)("b", { children: f })]
}),
g ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-art": "thumb",
@@ -68752,7 +68765,7 @@ function Bke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
}),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, I.jsx)(XQ, { name: "check" })
+ children: /* @__PURE__ */ (0, I.jsx)(QQ, { name: "check" })
})
]
}),
@@ -68789,7 +68802,7 @@ function Bke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
children: [s === "reveal" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-junk-spinner": "",
dangerouslySetInnerHTML: { __html: Bs("正在定位") }
- }) : /* @__PURE__ */ (0, I.jsx)(XQ, { name: "folder-open" }), /* @__PURE__ */ (0, I.jsx)("span", {
+ }) : /* @__PURE__ */ (0, I.jsx)(QQ, { name: "folder-open" }), /* @__PURE__ */ (0, I.jsx)("span", {
"data-junk-label": "",
children: "打开位置"
})]
@@ -68801,7 +68814,7 @@ function Bke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"aria-label": h.label,
...S(h.operation),
onClick: x(h.operation),
- children: [/* @__PURE__ */ (0, I.jsx)(XQ, { name: h.glyph }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(QQ, { name: h.glyph }), /* @__PURE__ */ (0, I.jsx)("span", {
"data-junk-label": "",
children: h.label
})]
@@ -68813,7 +68826,7 @@ function Bke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"aria-label": "移入回收站",
...S("dispose"),
onClick: x("dispose"),
- children: [/* @__PURE__ */ (0, I.jsx)(XQ, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(QQ, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("span", {
"data-junk-label": "",
children: "移入回收站"
})]
@@ -68828,9 +68841,9 @@ function Bke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
]
});
}
-var Vke = (0, F.memo)(Bke);
+var Wke = (0, F.memo)(Uke);
// src/react/components/collection-summary.tsx
-function QQ({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
+function e$({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-collection-summary": "",
className: `${i ? "" : "mb-5 "}flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5
@@ -68856,31 +68869,31 @@ function QQ({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !
});
}
// src/react/junk-queue/junk-count.tsx
-function $Q({ name: e }) {
+function t$({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function e$({ scope: e, count: t }) {
+function n$({ scope: e, count: t }) {
return t ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [" ", /* @__PURE__ */ (0, I.jsx)("span", {
"data-count-badge": `junk:${e}`,
children: t.toLocaleString()
})] }) : null;
}
-function Hke({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = LV(), a = (0, F.useRef)(null), { kind: o, view: s } = e, c = mL(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? NU.map(([e]) => YQ(t, e)).join(",") : ""}`), l = IU(s), u = (e) => {
+function Gke({ route: e, page: t, failed: n, onNavigate: r }) {
+ let i = zV(), a = (0, F.useRef)(null), { kind: o, view: s } = e, c = gL(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? FU.map(([e]) => ZQ(t, e)).join(",") : ""}`), l = RU(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") || FU()));
+ !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || LU()));
}, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-junk-count": "",
children: [/* @__PURE__ */ (0, I.jsx)("div", {
"data-junk-summary": "",
"aria-live": "polite",
- children: /* @__PURE__ */ (0, I.jsx)(QQ, {
- label: LU(s),
+ children: /* @__PURE__ */ (0, I.jsx)(e$, {
+ label: zU(s),
figure: d,
pending: !t && !n,
flush: !0
@@ -68900,17 +68913,17 @@ function Hke({ route: e, page: t, failed: n, onNavigate: r }) {
onClick: u,
onPointerLeave: c.leave,
children: [
- NU.map(([e, n, r]) => /* @__PURE__ */ (0, I.jsxs)("a", {
- href: FU(e, s),
+ FU.map(([e, n, r]) => /* @__PURE__ */ (0, I.jsxs)("a", {
+ href: LU(e, s),
"data-junk-kind-link": e,
"aria-current": e === o ? "page" : void 0,
onPointerEnter: c.hover,
children: [
- /* @__PURE__ */ (0, I.jsx)($Q, { name: r }),
+ /* @__PURE__ */ (0, I.jsx)(t$, { name: r }),
n,
- /* @__PURE__ */ (0, I.jsx)(e$, {
+ /* @__PURE__ */ (0, I.jsx)(n$, {
scope: e,
- count: t ? YQ(t, e) : 0
+ count: t ? ZQ(t, e) : 0
})
]
}, e || "all")),
@@ -68924,9 +68937,9 @@ function Hke({ route: e, page: t, failed: n, onNavigate: r }) {
"aria-current": s === "dismissed" ? "page" : void 0,
onPointerEnter: s === "dismissed" ? void 0 : c.hover,
children: [
- /* @__PURE__ */ (0, I.jsx)($Q, { name: l.glyph }),
+ /* @__PURE__ */ (0, I.jsx)(t$, { name: l.glyph }),
l.label,
- /* @__PURE__ */ (0, I.jsx)(e$, {
+ /* @__PURE__ */ (0, I.jsx)(n$, {
scope: "dismissed",
count: Number(t?.dismissed_total || 0)
})
@@ -68938,33 +68951,33 @@ function Hke({ route: e, page: t, failed: n, onNavigate: r }) {
});
}
// src/react/junk-queue/junk-queue-page.tsx
-var Uke = uV("check"), Wke = (e, t) => e[1] === t.view && e[2] === t.kind;
-function Gke(e) {
+var Kke = fV("check"), qke = (e, t) => e[1] === t.view && e[2] === t.kind;
+function Jke(e) {
let t = {
kind: e.kind,
view: e.view
}, n = Ft({
- queryKey: Lke(t, e.revision),
- queryFn: ({ signal: e }) => zke(t, e),
- placeholderData: (e, n) => n && Wke(n.queryKey, t) ? e : void 0
+ queryKey: Bke(t, e.revision),
+ queryFn: ({ signal: e }) => Hke(t, e),
+ placeholderData: (e, n) => n && qke(n.queryKey, t) ? e : void 0
});
(0, F.useEffect)(() => {
n.isFetching || e.settled?.(e.revision);
}, [n.isFetching, e.revision]);
- let r = Kke(e.countRow), i = n.isPending;
+ let r = Yke(e.countRow), i = n.isPending;
(0, F.useLayoutEffect)(() => {
let t = e.countRow;
t && (i ? t.setAttribute("aria-busy", "true") : t.removeAttribute("aria-busy"));
}, [e.countRow, i]), (0, F.useLayoutEffect)(() => {
r && n.data && ec(r, "junk");
}, [r, n.data]);
- let { navigate: a } = e.actions, o = r ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Hke, {
+ let { navigate: a } = e.actions, o = r ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Gke, {
route: t,
page: n.data,
failed: n.isError && !n.data,
onNavigate: a
}), r) : null;
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [o, /* @__PURE__ */ (0, I.jsx)(qke, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [o, /* @__PURE__ */ (0, I.jsx)(Xke, {
props: e,
data: n.data,
pending: i,
@@ -68972,7 +68985,7 @@ function Gke(e) {
retry: () => void n.refetch()
}, `${t.view}:${t.kind}`)] });
}
-function Kke(e) {
+function Yke(e) {
let [t, n] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
if (!e) return;
@@ -68982,8 +68995,8 @@ function Kke(e) {
};
}, [e]), t;
}
-function qke({ props: e, data: t, pending: n, error: r, retry: i }) {
- let a = ixe(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, F.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, F.useCallback)(() => {
+function Xke({ props: e, data: t, pending: n, error: r, retry: i }) {
+ let a = sxe(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, F.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, F.useCallback)(() => {
d?.() !== !1 && c((e) => e + 1);
}, [d]);
return /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -68991,16 +69004,16 @@ function qke({ 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, I.jsx)(FG, {
+ if (!t) return /* @__PURE__ */ (0, I.jsx)(LG, {
message: xn(r),
onRetry: i
});
if (!l.length) {
let t = e.view === "dismissed";
- return /* @__PURE__ */ (0, I.jsx)(cV, {
- icon: Uke,
+ return /* @__PURE__ */ (0, I.jsx)(uV, {
+ icon: Kke,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
- actions: t ? /* @__PURE__ */ (0, I.jsx)(gL, {
+ actions: t ? /* @__PURE__ */ (0, I.jsx)(vL, {
size: "small",
href: "/junk-files",
children: "查看待判断"
@@ -69013,7 +69026,7 @@ function qke({ 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, I.jsx)(Vke, {
+ children: u.map((t) => /* @__PURE__ */ (0, I.jsx)(Wke, {
item: t,
view: e.view,
selected: e.selected.has(t.id),
@@ -69022,7 +69035,7 @@ function qke({ props: e, data: t, pending: n, error: r, retry: i }) {
actions: e.actions
}, t.id))
}),
- u.length < l.length ? /* @__PURE__ */ (0, I.jsx)(Jke, { onMore: f }, s) : null,
+ u.length < l.length ? /* @__PURE__ */ (0, I.jsx)(Zke, { onMore: f }, s) : null,
u.length >= l.length && Number(t.total || 0) > l.length ? /* @__PURE__ */ (0, I.jsx)("p", {
"data-junk-truncated": "",
className: "py-6 text-center text-caption-1-regular text-text-secondary",
@@ -69032,14 +69045,14 @@ function qke({ props: e, data: t, pending: n, error: r, retry: i }) {
})()]
});
}
-function Jke({ onMore: e }) {
+function Zke({ onMore: e }) {
let t = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
let n = t.current;
if (!n || typeof IntersectionObserver > "u") return;
let r = new IntersectionObserver((t) => {
t.some((e) => e.isIntersecting) && e();
- }, { rootMargin: PG });
+ }, { rootMargin: IG });
return r.observe(n), () => r.disconnect();
}, [e]), /* @__PURE__ */ (0, I.jsx)("div", {
ref: t,
@@ -69049,22 +69062,22 @@ function Jke({ onMore: e }) {
});
}
// src/react/components/fieldset-layout.ts
-var Yke = bU({
+var Qke = SU({
padding: "none",
className: "overflow-hidden"
-}), t$ = {
+}), r$ = {
split: "min-w-0 p-6",
stack: "flex min-h-30 min-w-0 flex-1 flex-col px-5 pt-5 pb-4 max-cleanup-tight:min-h-0 max-cleanup-tight:p-4.5"
-}, n$ = {
+}, i$ = {
split: "flex flex-wrap items-center justify-end gap-2 self-stretch p-6 max-[1001px]:justify-start max-[1001px]:pt-0",
stack: "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t border-border-button-default bg-card-footer px-5 py-3 max-cleanup-tight:px-4.5"
};
-function r$(e) {
- return `${Yke} ${e === "split" ? "fieldset-split" : "flex flex-col"}`;
+function a$(e) {
+ return `${Qke} ${e === "split" ? "fieldset-split" : "flex flex-col"}`;
}
// src/react/data-cleanup/cleanup-entry.ts
-var i$ = "inline-grid w-full grid-cols-2 gap-3 max-cleanup-tight:grid-cols-1", a$ = {
- face: bU({
+var o$ = "inline-grid w-full grid-cols-2 gap-3 max-cleanup-tight:grid-cols-1", s$ = {
+ face: SU({
padding: "none",
radius: "plain",
interactive: !0,
@@ -69076,34 +69089,34 @@ var i$ = "inline-grid w-full grid-cols-2 gap-3 max-cleanup-tight:grid-cols-1", a
summary: "text-body-2-regular tabular-nums text-text-secondary wrap-anywhere",
detail: "text-caption-1-regular text-text-tertiary wrap-anywhere",
arrow: "size-4 shrink-0 self-center text-foreground-icon-tertiary"
-}, Xke = [
+}, $ke = [
"text-chart-6",
"text-chart-5",
"text-chart-7",
"text-chart-8"
-], Zke = [
+], eAe = [
"bg-chart-6/10",
"bg-chart-5/10",
"bg-chart-7/10",
"bg-chart-8/10"
];
-function Qke(e = {}) {
- return `${bU({
+function tAe(e = {}) {
+ return `${SU({
...e,
padding: "none"
})} flex flex-col overflow-hidden pt-4 text-left`;
}
-var $ke = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", eAe = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
-function o$({ interactive: e = !1 } = {}) {
- return bU({
+var nAe = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", rAe = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
+function c$({ interactive: e = !1 } = {}) {
+ return SU({
padding: "none",
radius: "plain",
interactive: e,
className: "flex min-h-33 flex-col gap-2 p-4 text-left"
});
}
-var s$ = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
-function tAe({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
+var l$ = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
+function iAe({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 text-body-medium text-text-secondary",
@@ -69136,13 +69149,13 @@ function tAe({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMet
})
] });
}
-function nAe({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
+function aAe({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3",
children: [t ? /* @__PURE__ */ (0, I.jsx)("i", {
"aria-hidden": !0,
- className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${Xke[n % 4]} ${Zke[n % 4]}`,
+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${$ke[n % 4]} ${eAe[n % 4]}`,
children: /* @__PURE__ */ (0, I.jsx)(t, {
"aria-hidden": !0,
className: "size-4"
@@ -69163,96 +69176,96 @@ function nAe({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
] });
}
// src/management.ts
-var c$ = "发现新文件,补全新增及未完成影片的资料和预览。需要检查全部影片时,使用全库维护。", l$ = "部分视频文件可能播放卡顿、打不开,修复缺时间戳表和缺索引的问题。", u$ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", d$ = "disabled data-skeleton-action", rAe = "aria-disabled=\"true\"", f$ = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, p$ = (e, t, n) => `<div class="${t$[n]}"><div class="flex flex-col gap-2">
+var u$ = "发现新文件,补全新增及未完成影片的资料和预览。需要检查全部影片时,使用全库维护。", d$ = "部分视频文件可能播放卡顿、打不开,修复缺时间戳表和缺索引的问题。", f$ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", p$ = "disabled data-skeleton-action", oAe = "aria-disabled=\"true\"", m$ = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, h$ = (e, t, n) => `<div class="${r$[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 iAe() {
- return f$(`<section aria-label="扫描与采集" class="${r$("stack")}" data-cleanup-task data-cleanup-processing>
- ${p$("扫描与采集", c$, "stack")}
- <footer class="${n$.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>${Ts("arrow-up", "size-(--icon-inline) shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${Os({
+function sAe() {
+ return m$(`<section aria-label="扫描与采集" class="${a$("stack")}" data-cleanup-task data-cleanup-processing>
+ ${h$("扫描与采集", u$, "stack")}
+ <footer class="${i$.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>${Ts("arrow-up", "size-(--icon-inline) shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${Os({
label: "同步新增文件",
- attrs: d$
+ attrs: p$
})}${Os({
glyph: "chevron-down",
- attrs: `${d$} aria-label="更多同步方式"`
+ attrs: `${p$} aria-label="更多同步方式"`
})}</span></footer>
</section>`);
}
-function aAe() {
- return f$(`<section aria-label="媒体修复" class="${r$("split")}" data-cleanup-task data-cleanup-processing>
- ${p$("媒体修复", l$, "split")}
- <footer class="${n$.split}">${As(u$, {
+function cAe() {
+ return m$(`<section aria-label="媒体修复" class="${a$("split")}" data-cleanup-task data-cleanup-processing>
+ ${h$("媒体修复", d$, "split")}
+ <footer class="${i$.split}">${As(f$, {
className: "w-48",
- attrs: rAe
+ attrs: oAe
})}${Os({
label: "开始修复",
- attrs: d$
+ attrs: p$
})}</footer>
</section>`);
}
-function oAe() {
- let e = (e, t, n, r = "") => `<div class="${a$.face}"><span class="${a$.icon}">${Ts(t, "size-5")}</span><span class="${a$.body}"><span class="${a$.title}">${e}</span><span class="${a$.summary}">${n}</span>${r ? `<span class="${a$.detail}">${r}</span>` : ""}</span>${Ts("chevron-right", a$.arrow)}</div>`, t = (e, t) => `<div class="${o$()}"><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">${Ts(t, "size-4")}</i><span>${e}</span></span><strong class="block text-title-1-medium tabular-nums text-text-primary">${u$}</strong><span class="block min-h-4 text-caption-1-regular text-text-tertiary">${u$}</span></div>`, n = (e) => `<h2 class="text-title-2-medium! m-0! text-text-primary">${e}</h2>`, r = (t) => Yf.filter((e) => e.key === "batch-delete" === t).map((t) => e(t.title, t.icon, t.description)).join("");
+function lAe() {
+ let e = (e, t, n, r = "") => `<div class="${s$.face}"><span class="${s$.icon}">${Ts(t, "size-5")}</span><span class="${s$.body}"><span class="${s$.title}">${e}</span><span class="${s$.summary}">${n}</span>${r ? `<span class="${s$.detail}">${r}</span>` : ""}</span>${Ts("chevron-right", s$.arrow)}</div>`, t = (e, t) => `<div class="${c$()}"><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">${Ts(t, "size-4")}</i><span>${e}</span></span><strong class="block text-title-1-medium tabular-nums text-text-primary">${f$}</strong><span class="block min-h-4 text-caption-1-regular text-text-tertiary">${f$}</span></div>`, n = (e) => `<h2 class="text-title-2-medium! m-0! text-text-primary">${e}</h2>`, r = (t) => Yf.filter((e) => e.key === "batch-delete" === t).map((t) => e(t.title, t.icon, t.description)).join("");
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">
- <section class="flex flex-col gap-4">${n("待处理事项")}<div class="${s$}">${[
+ <section class="flex flex-col gap-4">${n("待处理事项")}<div class="${l$}">${[
["人工复核", "square-check-big"],
["重复文件", "file-stack"],
["垃圾文件", "file-archive"],
["高清版", "sparkles"],
["回收站", "trash"]
].map(([e, n]) => t(e, n)).join("")}</div></section>
- <div id="libraryProcessing" class="scroll-mt-20">${iAe()}</div>
- <section class="flex flex-col gap-4">${n("整理与维护")}<div class="${i$}">${r(!1)}</div></section>
- <section class="flex flex-col gap-4">${n("清理与删除")}<div class="${i$}">${r(!0)}</div></section>
+ <div id="libraryProcessing" class="scroll-mt-20">${sAe()}</div>
+ <section class="flex flex-col gap-4">${n("整理与维护")}<div class="${o$}">${r(!1)}</div></section>
+ <section class="flex flex-col gap-4">${n("清理与删除")}<div class="${o$}">${r(!0)}</div></section>
</div></div>`;
}
// src/react/components/fieldset.tsx
-var sAe = bU({
+var uAe = SU({
padding: "none",
radius: "surface",
className: "overflow-hidden"
-}), cAe = "border-t border-border-button-default p-4 first:border-t-0";
-function lAe({ id: e, children: t }) {
+}), dAe = "border-t border-border-button-default p-4 first:border-t-0";
+function fAe({ id: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("h2", {
id: e,
className: "text-title-2-medium! m-0! text-text-primary",
children: t
});
}
-function m$({ id: e, gap: t = "none", children: n }) {
+function g$({ id: e, gap: t = "none", children: n }) {
return /* @__PURE__ */ (0, I.jsx)("h3", {
id: e,
className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,
children: n
});
}
-function h$({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
+function _$({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
return /* @__PURE__ */ (0, I.jsxs)("section", {
id: r,
"aria-label": t,
"aria-labelledby": n,
...o,
- className: r$(e),
+ className: a$(e),
children: [/* @__PURE__ */ (0, I.jsx)("div", {
- className: t$[e],
+ className: r$[e],
children: a
}), i ? /* @__PURE__ */ (0, I.jsx)("footer", {
- className: n$[e],
+ className: i$[e],
children: i
}) : null]
});
}
// src/react/components/name-link.tsx
-function g$({ className: e, ...t }) {
+function v$({ className: e, ...t }) {
return /* @__PURE__ */ (0, I.jsx)("a", {
...t,
className: q("text-body-2-medium underline-offset-4 hover:underline", e)
});
}
// src/react/components/issue-row.tsx
-function _$({ title: e, href: t, children: n }) {
+function y$({ title: e, href: t, children: n }) {
return /* @__PURE__ */ (0, I.jsxs)("li", {
className: "flex min-w-0 flex-col gap-1 border-b border-current/15 py-2 pr-6 wrap-anywhere first:pt-0 last:border-b-0 last:pb-0",
- children: [t ? /* @__PURE__ */ (0, I.jsx)(g$, {
+ children: [t ? /* @__PURE__ */ (0, I.jsx)(v$, {
href: t,
children: e
}) : /* @__PURE__ */ (0, I.jsx)("span", {
@@ -69262,23 +69275,23 @@ function _$({ title: e, href: t, children: n }) {
});
}
// src/react/components/status-label.tsx
-var uAe = {
+var pAe = {
success: "lime",
progress: "blue",
warning: "yellow",
error: "rose",
neutral: "neutral"
};
-function v$({ tone: e = "neutral", ...t }) {
- return /* @__PURE__ */ (0, I.jsx)(UU, {
+function b$({ tone: e = "neutral", ...t }) {
+ return /* @__PURE__ */ (0, I.jsx)(GU, {
"data-status-tone": e,
variant: "caption",
- color: uAe[e],
+ color: pAe[e],
...t
});
}
// src/react/components/path-line.tsx
-function dAe({ className: e }) {
+function mAe({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -69291,8 +69304,8 @@ function dAe({ className: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-folder-open" })
});
}
-var fAe = "打开文件管理器失败,请重试";
-function y$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
+var hAe = "打开文件管理器失败,请重试";
+function x$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
let [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(""), l = (0, F.useRef)(!0);
(0, F.useEffect)(() => () => {
l.current = !1;
@@ -69303,7 +69316,7 @@ function y$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
try {
await V("/api/reveal", { path: e }), i?.("已在资源管理器中显示");
} catch (e) {
- l.current && c(e instanceof sr ? e.message : fAe);
+ l.current && c(e instanceof sr ? e.message : hAe);
} finally {
l.current && o(!1);
}
@@ -69318,12 +69331,12 @@ function y$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
children: [t, e]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(iL, {
- icon: dAe,
+ children: [/* @__PURE__ */ (0, I.jsx)(oL, {
+ icon: mAe,
size: "small",
"aria-label": "在资源管理器中显示",
onClick: () => void u(),
- ...fV(a)
+ ...mV(a)
}), r]
})]
}), s ? /* @__PURE__ */ (0, I.jsx)("p", {
@@ -69333,7 +69346,7 @@ function y$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
});
}
// src/react/library-processing/issue-export.ts
-async function pAe(e, t) {
+async function gAe(e, t) {
if (!e.job_id) throw Error("请先选择有问题记录的任务");
let n = [], r = 1, i = "";
for (let a = 0; a < r; a += 200) {
@@ -69356,69 +69369,69 @@ async function pAe(e, t) {
rows: n
}, null, 2);
}
-function mAe(e, t) {
+function _Ae(e, t) {
let n = URL.createObjectURL(new Blob([t], { type: "application/json;charset=utf-8" })), r = document.createElement("a");
r.href = n, r.download = `peach-issues-${e}.json`, r.click(), URL.revokeObjectURL(n);
}
// src/react/library-processing/library-processing-card.tsx
-var hAe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", gAe = (e) => {
+var vAe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", yAe = (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(",")}。`;
-}, _Ae = (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} 部视频预览。` : "") + gAe(e);
-function vAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = Z_e(e), o = fH(), s = fH(), [c, l] = (0, F.useState)(""), u = QV(e), d = e.status === "failed" && !!e.retryable_asset_ids?.length, f = J_e(e.notes || {}), p = !!t || !e.archived && e.status === "failed", m = !t && !e.archived && $V(e), h = p || !e.archived && !u && (!!f || !!e.issue_count), g = !u && !!e.job_id && !e.archived, _ = e.issues_log || "", v = XV(e), y = LV(), b = (t) => void s.run(t ? "archive" : "unarchive", (n) => V(JV, {
+}, bAe = (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} 部视频预览。` : "") + yAe(e);
+function xAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
+ let a = eve(e), o = mH(), s = mH(), [c, l] = (0, F.useState)(""), u = eH(e), d = e.status === "failed" && !!e.retryable_asset_ids?.length, f = Z_e(e.notes || {}), p = !!t || !e.archived && e.status === "failed", m = !t && !e.archived && tH(e), h = p || !e.archived && !u && (!!f || !!e.issue_count), g = !u && !!e.job_id && !e.archived, _ = e.issues_log || "", v = QV(e), y = zV(), b = (t) => void s.run(t ? "archive" : "unarchive", (n) => V(XV, {
action: t ? "archive" : "unarchive",
job_id: e.job_id
}, "POST", n), (n) => {
- H.setQueryData(YV, n), l(t ? e.job_id : "");
+ H.setQueryData(ZV, n), l(t ? e.job_id : "");
}), x = e.issue_count && !u ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...fV(!!o.busy),
- onClick: () => void o.run("export", (t) => pAe(e, t), (t) => {
- mAe(e.job_id, t), i("已导出问题清单");
+ ...mV(!!o.busy),
+ onClick: () => void o.run("export", (t) => gAe(e, t), (t) => {
+ _Ae(e.job_id, t), i("已导出问题清单");
}),
children: "导出完整问题清单"
}) : null, S = p ? [
t || e.error || "处理未完成,请重试",
- m ? eH : "",
+ m ? nH : "",
f
].filter(Boolean).join("\n") : f || `这一趟有 ${(e.issue_count || 0).toLocaleString()} 项问题。`;
return /* @__PURE__ */ (0, I.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
children: [
- v ? /* @__PURE__ */ (0, I.jsx)(eve, {
+ v ? /* @__PURE__ */ (0, I.jsx)(rve, {
state: e,
slow: v
- }) : e.status === "running" && e.stalled ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ }) : e.status === "running" && e.stalled ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "warning",
title: "处理较慢",
- children: hAe
+ children: vAe
}) : null,
- n?.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ n?.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "success",
title: "处理完成",
- children: _Ae(n)
+ children: bAe(n)
}) : null,
- (n ?? e).status === "cancelled" && !e.archived ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ (n ?? e).status === "cancelled" && !e.archived ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "neutral",
title: "已取消上次任务",
children: "已取得的资料和预览已保留,这一轮不会自动继续,需要时重新同步。"
}) : null,
- h ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ h ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: p ? m ? "warning" : "error" : "neutral",
className: "gap-0 p-3",
title: p ? m ? "处理已结束,部分项目需处理" : "处理未完成" : void 0,
action: /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- m ? /* @__PURE__ */ (0, I.jsx)(dH, {
- href: tH,
+ m ? /* @__PURE__ */ (0, I.jsx)(pH, {
+ href: rH,
size: "small",
- trailingIcon: gB,
+ trailingIcon: vB,
children: "查看全部内容"
}) : null,
d ? /* @__PURE__ */ (0, I.jsx)(J, {
@@ -69432,7 +69445,7 @@ function vAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
variant: "secondary",
size: "small",
"aria-label": "归档提示",
- ...fV(!!s.busy),
+ ...mV(!!s.busy),
onClick: () => b(!0),
children: "归档"
}) : null
@@ -69440,7 +69453,7 @@ function vAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}),
extra: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [a ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "-mx-3 mt-3 border-t border-current/20 px-3 pt-3",
- children: /* @__PURE__ */ (0, I.jsx)(IH, {
+ children: /* @__PURE__ */ (0, I.jsx)(RH, {
summary: a.label,
contentClassName: "gap-0",
children: /* @__PURE__ */ (0, I.jsx)("div", {
@@ -69448,7 +69461,7 @@ function vAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
children: /* @__PURE__ */ (0, I.jsx)("ul", {
ref: y,
className: "max-h-96 overflow-y-auto",
- children: a.items.map((e) => /* @__PURE__ */ (0, I.jsxs)(_$, {
+ children: a.items.map((e) => /* @__PURE__ */ (0, I.jsxs)(y$, {
title: e.label,
href: e.href,
children: [/* @__PURE__ */ (0, I.jsx)("span", {
@@ -69464,7 +69477,7 @@ function vAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
})
}) : null, _ ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "-mx-3 mt-3 border-t border-current/20 px-3 pt-3 text-text-secondary",
- children: /* @__PURE__ */ (0, I.jsx)(y$, {
+ children: /* @__PURE__ */ (0, I.jsx)(x$, {
path: _,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -69477,70 +69490,70 @@ function vAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : null] }),
children: S
}) : null,
- e.archived && c === e.job_id && !t ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ e.archived && c === e.job_id && !t ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...fV(!!s.busy),
+ ...mV(!!s.busy),
onClick: () => b(!1),
children: "撤销"
}),
children: "已归档上一趟的问题提示,完整记录仍保留。"
}) : null,
- o.error || s.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ o.error || s.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "warning",
children: o.error || s.error
}) : null
]
});
}
-function b$(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = CH(e), o = It({
- mutationFn: (e) => V(JV, e),
+function S$(e) {
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = TH(e), o = It({
+ mutationFn: (e) => V(XV, e),
onSuccess: (e) => {
- a(), H.setQueryData(YV, e), H.invalidateQueries({ queryKey: YV });
+ a(), H.setQueryData(ZV, e), H.invalidateQueries({ queryKey: ZV });
}
});
(0, F.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = s.job_id || "unavailable", { hidden: l } = QH(c), u = o.error ? lr(o.error) : r.isError ? r.data ? aH : lr(r.error) : "", d = o.isPending || QV(s), f = async (e) => {
+ let s = r.data ?? { status: "idle" }, c = s.job_id || "unavailable", { hidden: l } = eU(c), u = o.error ? lr(o.error) : r.isError ? r.data ? sH : lr(r.error) : "", d = o.isPending || eH(s), f = async (e) => {
d || (o.reset(), await o.mutateAsync(e));
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, I.jsx)(h$, {
+ children: [/* @__PURE__ */ (0, I.jsx)(_$, {
layout: "stack",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(dH, {
+ /* @__PURE__ */ (0, I.jsx)(pH, {
href: "/sources",
size: "small",
- trailingIcon: gB,
+ trailingIcon: vB,
children: "来源和凭证"
}),
- /* @__PURE__ */ (0, I.jsx)(dH, {
+ /* @__PURE__ */ (0, I.jsx)(pH, {
href: "/settings/diagnostics",
size: "small",
- trailingIcon: gB,
+ trailingIcon: vB,
children: "诊断与日志"
}),
- s.candidates ? /* @__PURE__ */ (0, I.jsx)(dH, {
+ s.candidates ? /* @__PURE__ */ (0, I.jsx)(pH, {
href: "/review",
size: "small",
- trailingIcon: gB,
+ trailingIcon: vB,
children: "复核资料"
}) : null,
- /* @__PURE__ */ (0, I.jsx)(OK, {
+ /* @__PURE__ */ (0, I.jsx)(AK, {
scan: !0,
busy: o.isPending,
- occupied: QV(s),
+ occupied: eH(s),
metadataOnly: s?.metadata_only,
speedMode: s.speed_mode,
pendingCount: s.new_asset_count,
onRun: f,
- onOccupied: () => t(K_e(s))
+ onOccupied: () => t(Y_e(s))
})
] }),
children: /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -69550,7 +69563,7 @@ function b$(e) {
className: "flex flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(m$, { children: "扫描与采集" }), s.new_asset_count ? /* @__PURE__ */ (0, I.jsx)(UU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(g$, { children: "扫描与采集" }), s.new_asset_count ? /* @__PURE__ */ (0, I.jsx)(GU, {
variant: "caption",
color: "blue",
children: /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -69558,31 +69571,31 @@ function b$(e) {
children: [s.new_asset_count.toLocaleString(), " 部待补全"]
})
}) : null]
- }), l && (QV(s) || s.status === "failed" || r.isError) ? /* @__PURE__ */ (0, I.jsx)(J, {
+ }), l && (eH(s) || s.status === "failed" || r.isError) ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- onClick: () => ZH(c, !0),
+ onClick: () => $H(c, !0),
children: "显示进度浮窗"
}) : null]
}),
/* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: c$
+ children: u$
}),
s.status === "paused" && !s.total ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, I.jsx)(v$, { children: "已暂停" })
- }) : QV(s) ? /* @__PURE__ */ (0, I.jsx)(cve, { state: s }) : null,
- QV(s) ? /* @__PURE__ */ (0, I.jsx)("p", {
+ children: /* @__PURE__ */ (0, I.jsx)(b$, { children: "已暂停" })
+ }) : eH(s) ? /* @__PURE__ */ (0, I.jsx)(dve, { state: s }) : null,
+ eH(s) ? /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular text-text-secondary tabular-nums",
"data-processing-eta": "",
- children: nH(s)
+ children: iH(s)
}) : null,
- QV(s) ? /* @__PURE__ */ (0, I.jsx)(WH, { traffic: s.traffic }) : null,
- QV(s) ? /* @__PURE__ */ (0, I.jsx)(SH, { state: s }) : null
+ eH(s) ? /* @__PURE__ */ (0, I.jsx)(KH, { traffic: s.traffic }) : null,
+ eH(s) ? /* @__PURE__ */ (0, I.jsx)(wH, { state: s }) : null
]
})
- }), /* @__PURE__ */ (0, I.jsx)(vAe, {
+ }), /* @__PURE__ */ (0, I.jsx)(xAe, {
state: s,
problem: u,
settled: i,
@@ -69597,32 +69610,32 @@ function b$(e) {
});
}
// src/react/playlists/playlists.ts
-var yAe = "/api/playlists", x$ = "/api/playlist", S$ = ["playlists"], C$ = (e) => B(yAe, e);
-async function bAe(e) {
+var SAe = "/api/playlists", C$ = "/api/playlist", w$ = ["playlists"], T$ = (e) => B(SAe, e);
+async function CAe(e) {
await H.fetchQuery({
- queryKey: S$,
- queryFn: () => C$(e),
+ queryKey: w$,
+ queryFn: () => T$(e),
staleTime: 0
});
}
-var xAe = () => H.invalidateQueries({
- queryKey: S$,
+var wAe = () => H.invalidateQueries({
+ queryKey: w$,
exact: !0
-}), SAe = (e) => e.current_asset_id || e.preview_asset_id || null, CAe = (e) => `/poster?id=${e}&c=4`, wAe = (e) => V(x$, {
+}), TAe = (e) => e.current_asset_id || e.preview_asset_id || null, EAe = (e) => `/poster?id=${e}&c=4`, DAe = (e) => V(C$, {
action: "create",
name: e,
asset_ids: []
-}), TAe = (e, t) => V(x$, {
+}), OAe = (e, t) => V(C$, {
action: "rename",
id: e,
name: t
-}), EAe = (e) => V(x$, {
+}), kAe = (e) => V(C$, {
action: "delete",
id: e
-}), DAe = (e) => B(`${x$}?id=${e}`).catch(() => null);
-function OAe(e) {
+}), AAe = (e) => B(`${C$}?id=${e}`).catch(() => null);
+function jAe(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
- return V(x$, {
+ return V(C$, {
action: "create",
name: e.name,
asset_ids: t,
@@ -69631,44 +69644,44 @@ function OAe(e) {
});
}
// src/react/scraping/custom-source-data.ts
-var w$ = "/api/custom-metadata", T$ = ["custom-metadata"], E$ = (e) => B(w$, e), kAe = "/api/scraping", AAe = "/api/scraping/settings", jAe = "/api/scraping/check", D$ = "/api/scraping/cover", MAe = "/api/scraping/amane-bridge", NAe = "/api/scraping/amane-bridge/check", PAe = "/api/scraping/amane-bridge/rebuild", O$ = ["scraping"], k$ = ["scraping", "cover"], A$ = ["scraping", "amane-bridge"], FAe = 262144, j$ = (e) => B(kAe, e), M$ = (e) => B(D$, e), N$ = (e) => B(MAe, e);
-async function IAe(e) {
+var E$ = "/api/custom-metadata", D$ = ["custom-metadata"], O$ = (e) => B(E$, e), MAe = "/api/scraping", NAe = "/api/scraping/settings", PAe = "/api/scraping/check", k$ = "/api/scraping/cover", FAe = "/api/scraping/amane-bridge", IAe = "/api/scraping/amane-bridge/check", LAe = "/api/scraping/amane-bridge/rebuild", A$ = ["scraping"], j$ = ["scraping", "cover"], M$ = ["scraping", "amane-bridge"], RAe = 262144, N$ = (e) => B(MAe, e), P$ = (e) => B(k$, e), F$ = (e) => B(FAe, e);
+async function zAe(e) {
await Promise.all([
H.fetchQuery({
- queryKey: O$,
- queryFn: () => j$(e)
+ queryKey: A$,
+ queryFn: () => N$(e)
}),
H.fetchQuery({
- queryKey: k$,
- queryFn: () => M$(e)
+ queryKey: j$,
+ queryFn: () => P$(e)
}),
H.fetchQuery({
- queryKey: A$,
- queryFn: () => N$(e)
+ queryKey: M$,
+ queryFn: () => F$(e)
}),
H.fetchQuery({
- queryKey: T$,
- queryFn: () => E$(e)
+ queryKey: D$,
+ queryFn: () => O$(e)
})
]);
}
-function LAe(e, t) {
+function BAe(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}` : "");
}
-var P$ = /* @__PURE__ */ new Set([
+var I$ = /* @__PURE__ */ new Set([
"performer",
"creator",
"studio",
"agency",
"series"
-]), F$ = /* @__PURE__ */ new Set([
+]), L$ = /* @__PURE__ */ new Set([
"asset",
"jav",
"post",
"photo",
"release"
]);
-function I$(e) {
+function R$(e) {
let t = e.pool ?? [], n = Math.min(e.size ?? e.items.length, t.length);
if (t.length <= n) return e;
let r = ((e.offset ?? 0) + n) % t.length;
@@ -69678,15 +69691,15 @@ function I$(e) {
items: Array.from({ length: n }, (e, n) => t[(r + n) % t.length])
};
}
-var L$ = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
-function RAe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o, recommendations: s = [] }) {
+var z$ = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
+function VAe({ 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,
index: c++
};
return l.push(t), t;
- }, d = t.filter((t) => !e || L$(t).includes(L$(e)));
+ }, d = t.filter((t) => !e || z$(t).includes(z$(e)));
if (!e) {
if (s.length) {
let e = ({ pending: e, pool: t, offset: n, size: r, ...i }) => ({
@@ -69697,9 +69710,9 @@ function RAe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
kind: i.kind,
item: e
})),
- pending: e ? F$.has(i.kind) ? 5 : 3 : void 0,
+ pending: e ? L$.has(i.kind) ? 5 : 3 : void 0,
shuffle: (t?.length ?? 0) > i.items.length || void 0
- }), t = s.filter((e) => !F$.has(e.kind)).map(e);
+ }), t = s.filter((e) => !L$.has(e.kind)).map(e);
return d.length && t.push({
label: "搜索记录",
options: d.map((e) => u({
@@ -69710,7 +69723,7 @@ function RAe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
tabs: null,
recent: null,
left: t,
- right: s.filter((e) => F$.has(e.kind)).map(e),
+ right: s.filter((e) => L$.has(e.kind)).map(e),
empty: !1,
options: l
};
@@ -69760,7 +69773,7 @@ function RAe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: n,
more: r
};
- }, g = m.filter((e) => !F$.has(e.kind)).map(h), _ = m.filter((e) => F$.has(e.kind)).map(h), v = f && !m.some((e) => e.items.length);
+ }, g = m.filter((e) => !L$.has(e.kind)).map(h), _ = m.filter((e) => L$.has(e.kind)).map(h), v = f && !m.some((e) => e.items.length);
return {
tabs: f && a.length > 1 ? [...a] : null,
recent: p,
@@ -69770,16 +69783,16 @@ function RAe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: l
};
}
-function zAe(e, t, n = Math.random) {
+function HAe(e, t, n = Math.random) {
let r = [...e];
for (let e = r.length - 1; e > 0; --e) {
let t = Math.floor(n() * (e + 1));
[r[e], r[t]] = [r[t], r[e]];
}
- return r.filter((e) => !t.some((t) => L$(t) === L$(e))).slice(0, 5);
+ return r.filter((e) => !t.some((t) => z$(t) === z$(e))).slice(0, 5);
}
// src/react/search/search-page.tsx
-var BAe = () => ({
+var UAe = () => ({
dismissed: !1,
history: [],
pool: [],
@@ -69805,7 +69818,7 @@ var BAe = () => ({
active: -1,
reveal: !1,
rewind: !1
-}), R$ = (e) => RAe({
+}), B$ = (e) => VAe({
query: e.query,
history: e.history,
picks: e.picks,
@@ -69814,27 +69827,27 @@ var BAe = () => ({
tabs: e.tabs,
kind: e.kind,
recommendations: e.recommendations
-}), VAe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), z$ = 4e3, HAe = 5e3, B$ = 1200;
-function UAe(e) {
+}), WAe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), V$ = 4e3, GAe = 5e3, H$ = 1200;
+function KAe(e) {
if (window.requestIdleCallback) {
- let t = window.requestIdleCallback(e, { timeout: z$ });
+ let t = window.requestIdleCallback(e, { timeout: V$ });
return () => window.cancelIdleCallback(t);
}
- let t = window.setTimeout(e, z$);
+ let t = window.setTimeout(e, V$);
return () => window.clearTimeout(t);
}
-var V$ = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
+var U$ = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
-function WAe(e) {
+function qAe(e) {
let t = (0, F.useRef)(e);
t.current = e;
let n = (0, F.useRef)(null);
- n.current ??= BAe();
+ n.current ??= UAe();
let r = n.current, i = (0, F.useRef)(null), [, a] = (0, F.useReducer)((e) => e + 1, 0), o = (0, F.useRef)(null);
- o.current ??= KAe(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
+ o.current ??= YAe(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
let s = o.current;
(0, F.useLayoutEffect)(() => {
let { input: e } = t.current, n = (e) => s.input(e), i = () => {
@@ -69845,7 +69858,7 @@ function WAe(e) {
e.addEventListener("input", n), e.addEventListener("compositionend", n), e.addEventListener("compositionstart", i), e.addEventListener("keydown", a), e.addEventListener("focus", o), e.addEventListener("click", c);
let l = { close: s.close };
t.current.expose(l), s.warm();
- let u = window.setInterval(s.rotatePlaceholder, HAe);
+ let u = window.setInterval(s.rotatePlaceholder, GAe);
return () => {
e.removeEventListener("input", n), e.removeEventListener("compositionend", n), e.removeEventListener("compositionstart", i), e.removeEventListener("keydown", a), e.removeEventListener("focus", o), e.removeEventListener("click", c), clearTimeout(r.timer), r.cancelIdle(), window.clearInterval(u), r.cancelRoll(), r.recommendationRequest++, t.current.expose(null);
};
@@ -69853,7 +69866,7 @@ function WAe(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 = R$(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, I.jsx)(JAe, {
+ let c = B$(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, I.jsx)(ZAe, {
entry: t,
active: t.index === r.active,
helpers: e.helpers,
@@ -69862,7 +69875,7 @@ function WAe(e) {
onRemove: s.remove
}, `${t.type}:${t.value}:${t.index}`), d = (e) => e.href ? /* @__PURE__ */ (0, I.jsx)("a", {
href: e.href,
- onMouseDown: W$,
+ onMouseDown: K$,
onClick: (t) => {
t.ctrlKey || t.metaKey || t.shiftKey || t.altKey || (t.preventDefault(), s.openPath(e.href));
},
@@ -69879,15 +69892,15 @@ function WAe(e) {
"aria-label": `${e.label}换一批`,
title: "换一批",
"aria-busy": f(e.kind) || void 0,
- onMouseDown: W$,
+ onMouseDown: K$,
onClick: () => s.reshuffle(e.kind),
- children: /* @__PURE__ */ (0, I.jsx)(V$, { name: "shuffle" })
+ children: /* @__PURE__ */ (0, I.jsx)(U$, { name: "shuffle" })
}), d(e)]
}) : d(e)] }),
e.pending ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-search-items": "",
"aria-busy": "true",
- children: GAe(e)
+ children: JAe(e)
}) : e.kind ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-search-items": "",
children: e.options.map(u)
@@ -69901,7 +69914,7 @@ function WAe(e) {
"data-search-recommendations": !r.query && r.recommendations.length ? "" : void 0,
"data-history-limit": l,
children: [
- c.tabs ? /* @__PURE__ */ (0, I.jsx)(qAe, {
+ c.tabs ? /* @__PURE__ */ (0, I.jsx)(XAe, {
tabs: c.tabs,
kind: r.kind,
onPick: s.pickKind,
@@ -69927,7 +69940,7 @@ function WAe(e) {
]
});
}
-function H$(e, t) {
+function W$(e, t) {
let n = e.flatMap((e) => e.items.flatMap((e) => [
e.card ? t.coverHtml(e.card) : "",
e.avatarHtml || "",
@@ -69939,9 +69952,9 @@ function H$(e, t) {
t && (new Image().src = t);
}
}
-var U$ = "\xA0";
-function GAe(e) {
- let t = F$.has(e.kind ?? "");
+var G$ = "\xA0";
+function JAe(e) {
+ let t = L$.has(e.kind ?? "");
return Array.from({ length: e.pending ?? 0 }, (e, n) => t ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-search-option": "work",
"data-search-placeholder": "",
@@ -69953,10 +69966,10 @@ function GAe(e) {
"data-search-meta": "",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-search-name": "",
- children: U$
+ children: G$
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-search-sub": "",
- children: U$
+ children: G$
})]
})]
}, n) : /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -69967,15 +69980,15 @@ function GAe(e) {
"data-search-meta": "",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-search-name": "",
- children: U$
+ children: G$
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-search-sub": "",
- children: U$
+ children: G$
})]
})]
}, n));
}
-function KAe(e, t, n, r) {
+function YAe(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 () => {
@@ -69986,7 +69999,7 @@ function KAe(e, t, n, r) {
t.history = Array.isArray(e.items) ? e.items.map(String) : [];
} catch {}
}, l = (t) => {
- t && e().historyLimit && (s([t, ...o().filter((e) => L$(e) !== L$(t))]), V("/api/search-history", { query: t }).catch(() => null));
+ t && e().historyLimit && (s([t, ...o().filter((e) => z$(e) !== z$(t))]), V("/api/search-history", { query: t }).catch(() => null));
}, u = (n) => {
let r = i();
r.dataset.suggestion = n, t.cancelRoll();
@@ -70011,7 +70024,7 @@ function KAe(e, t, n, r) {
t.recommendationLoading = !0;
let r = t.recommendationRequest;
n.recommendations().then(({ groups: n, words: o }) => {
- r === t.recommendationRequest && (t.words = o, !i().dataset.suggestion && !a() && o.length && u(o[Math.floor(Math.random() * o.length)]), t.recommendationsFilling ? (t.recommendations = n, t.recommendationsFilling = !1, H$(n.map(I$), e().helpers), a() && !i().value.trim() && x()) : (t.nextRecommendations = n, H$(n, e().helpers)));
+ r === t.recommendationRequest && (t.words = o, !i().dataset.suggestion && !a() && o.length && u(o[Math.floor(Math.random() * o.length)]), t.recommendationsFilling ? (t.recommendations = n, t.recommendationsFilling = !1, W$(n.map(R$), e().helpers), a() && !i().value.trim() && x()) : (t.nextRecommendations = n, W$(n, e().helpers)));
}, () => {
r === t.recommendationRequest && t.recommendationsFilling && (t.recommendations = [], t.recommendationsFilling = !1, a() && !i().value.trim() && x());
}).finally(() => {
@@ -70019,18 +70032,18 @@ function KAe(e, t, n, r) {
});
}, m = () => {
let n = e().helpers;
- n.recommendations && (t.nextRecommendations && (t.recommendations = t.nextRecommendations, t.nextRecommendations = null, H$(t.recommendations.map(I$), n)), !t.recommendations.length && (t.recommendations = n.pendingRecommendations?.() ?? [], t.recommendationsFilling = !0, p()));
+ n.recommendations && (t.nextRecommendations && (t.recommendations = t.nextRecommendations, t.nextRecommendations = null, W$(t.recommendations.map(R$), n)), !t.recommendations.length && (t.recommendations = n.pendingRecommendations?.() ?? [], t.recommendationsFilling = !0, p()));
}, h = () => {
- t.cancelIdle(), t.cancelIdle = UAe(() => {
+ t.cancelIdle(), t.cancelIdle = KAe(() => {
t.nextRecommendations || p();
});
}, g = h, _ = (n) => {
- t.recommendations = t.recommendations.map((e) => e.kind === n ? I$(e) : e), t.shuffled = {
+ t.recommendations = t.recommendations.map((e) => e.kind === n ? R$(e) : e), t.shuffled = {
...t.shuffled,
- [n]: Date.now() + B$
- }, window.setTimeout(r, B$);
+ [n]: Date.now() + H$
+ }, window.setTimeout(r, H$);
let i = t.recommendations.find((e) => e.kind === n);
- i && H$([I$(i)], e().helpers), r();
+ i && W$([R$(i)], e().helpers), r();
}, v = async (e, n = "") => {
let r = ++t.suggestRequest;
n || (t.asked = e);
@@ -70057,9 +70070,9 @@ function KAe(e, t, n, r) {
i && e().helpers.dismiss(i), t.active = -1, h(), r();
}, x = () => {
if (t.dismissed) return;
- t.query = i().value.trim(), t.picks = t.query ? [] : zAe(t.pool, o()), t.active = -1;
+ t.query = i().value.trim(), t.picks = t.query ? [] : HAe(t.pool, o()), t.active = -1;
let a = n();
- a && (VAe(R$(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
+ a && (WAe(B$(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
}, S = () => {
t.active = -1, t.kind = "", clearTimeout(t.timer);
let e = i().value.trim();
@@ -70071,7 +70084,7 @@ function KAe(e, t, n, r) {
n && e !== t.kind && (t.kind = e, clearTimeout(t.timer), x(), t.rewind = !0, v(n, e).then(() => {
a() && t.kind === e && x();
}));
- }, w = () => y() ? R$(t).options : [], T = (e) => {
+ }, w = () => y() ? B$(t).options : [], T = (e) => {
let n = w();
return n.length ? (t.active = (t.active + e + n.length) % n.length, t.reveal = !0, r(), !0) : !1;
}, E = (t, n) => {
@@ -70080,16 +70093,16 @@ function KAe(e, t, n, r) {
}, D = (t, n) => {
i().blur(), l(n), e().actions.openEntity(t, n);
}, O = (t) => {
- t.type === "suggest" && t.item.followMedia && t.item.id && e().actions.openFollow ? (i().blur(), e().actions.openFollow(t.item.id, t.item.followMedia, t.item.mediaIndex ?? null)) : t.type === "suggest" && t.item.href ? k(t.item.href) : t.type === "more" ? (E(!1, !0), i().blur()) : t.type === "suggest" && t.kind === "asset" && t.item.id != null ? (i().blur(), e().actions.openItem(t.item.id)) : t.type === "suggest" && P$.has(t.kind) ? D(t.kind, t.value) : (i().value = t.value, E(!1, !0));
+ t.type === "suggest" && t.item.followMedia && t.item.id && e().actions.openFollow ? (i().blur(), e().actions.openFollow(t.item.id, t.item.followMedia, t.item.mediaIndex ?? null)) : t.type === "suggest" && t.item.href ? k(t.item.href) : t.type === "more" ? (E(!1, !0), i().blur()) : t.type === "suggest" && t.kind === "asset" && t.item.id != null ? (i().blur(), e().actions.openItem(t.item.id)) : t.type === "suggest" && I$.has(t.kind) ? D(t.kind, t.value) : (i().value = t.value, E(!1, !0));
}, k = (t) => {
b(), i().blur(), e().actions.openPath?.(t);
};
return {
input: (n) => {
- t.cancelRoll(), !QU(n) && (t.dismissed = !1, e().helpers.typed(i()), S());
+ t.cancelRoll(), !eW(n) && (t.dismissed = !1, e().helpers.typed(i()), S());
},
key: (n) => {
- if (QU(n)) return;
+ if (eW(n)) return;
let r = i();
if (n.key === "Escape") {
if (y()) {
@@ -70126,7 +70139,7 @@ function KAe(e, t, n, r) {
await V("/api/search-history", {
operation: "remove",
query: e
- }).catch(() => null), s(o().filter((t) => L$(t) !== L$(e))), t.active = -1, r();
+ }).catch(() => null), s(o().filter((t) => z$(t) !== z$(e))), t.active = -1, r();
},
pickKind: C,
openPath: k,
@@ -70136,7 +70149,7 @@ function KAe(e, t, n, r) {
rotatePlaceholder: d
};
}
-function qAe({ tabs: e, kind: t, onPick: n, wire: r }) {
+function XAe({ tabs: e, kind: t, onPick: n, wire: r }) {
let i = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => {
r(i.current);
@@ -70150,9 +70163,9 @@ function qAe({ tabs: e, kind: t, onPick: n, wire: r }) {
"data-pill-variant": "gray",
onMouseDown: (e) => e.preventDefault(),
onClick: () => n(e),
- children: [r, i ? /* @__PURE__ */ (0, I.jsx)(pW, { value: i }) : null]
+ children: [r, i ? /* @__PURE__ */ (0, I.jsx)(hW, { value: i }) : null]
}, e || "all");
- return /* @__PURE__ */ (0, I.jsxs)(NI, {
+ return /* @__PURE__ */ (0, I.jsxs)(FI, {
ref: i,
"data-search-tabs": "",
"data-pill-nav": "",
@@ -70161,9 +70174,9 @@ function qAe({ tabs: e, kind: t, onPick: n, wire: r }) {
children: [a("", "全部"), e.map((e) => a(e.kind, e.label, e.total))]
});
}
-var W$ = (e) => e.preventDefault();
-function JAe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
- tL();
+var K$ = (e) => e.preventDefault();
+function ZAe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
+ rL();
let o = {
"data-search-value": e.value,
"data-active": t ? "" : void 0,
@@ -70175,33 +70188,33 @@ function JAe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
type: "button",
"data-search-option": "more",
...o,
- onMouseDown: W$,
+ onMouseDown: K$,
children: [
"查看全部 ",
e.total.toLocaleString(),
" 个视频",
- /* @__PURE__ */ (0, I.jsx)(V$, { name: "chevron-right" })
+ /* @__PURE__ */ (0, I.jsx)(U$, { name: "chevron-right" })
]
});
if (e.type !== "suggest") return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-search-option": "",
...o,
children: [
- /* @__PURE__ */ (0, I.jsx)(V$, { name: e.type === "history" ? "history" : "sparkles" }),
+ /* @__PURE__ */ (0, I.jsx)(U$, { name: e.type === "history" ? "history" : "sparkles" }),
/* @__PURE__ */ (0, I.jsx)("span", { children: e.value }),
e.type === "history" ? /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-remove-history": e.value,
"aria-label": `删除历史 ${e.value}`,
- onMouseDown: W$,
+ onMouseDown: K$,
onClick: (t) => {
t.stopPropagation(), a(e.value);
},
- children: /* @__PURE__ */ (0, I.jsx)(V$, { name: "x" })
+ children: /* @__PURE__ */ (0, I.jsx)(U$, { name: "x" })
}) : null
]
});
- let { item: s, kind: c } = e, l = P$.has(c) ? c : void 0;
+ let { item: s, kind: c } = e, l = I$.has(c) ? c : void 0;
if ([
"asset",
"jav",
@@ -70215,8 +70228,8 @@ function JAe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-search-option": "work",
"data-open-item": c === "asset" ? s.id : void 0,
...o,
- onMouseDown: W$,
- children: [/* @__PURE__ */ (0, I.jsx)(G$, {
+ onMouseDown: K$,
+ children: [/* @__PURE__ */ (0, I.jsx)(q$, {
card: s.card,
helpers: n
}), /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -70245,9 +70258,9 @@ function JAe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-search-option": "person",
"data-open-entity": l,
...o,
- onMouseDown: W$,
+ onMouseDown: K$,
children: [
- /* @__PURE__ */ (0, I.jsx)(K$, {
+ /* @__PURE__ */ (0, I.jsx)(J$, {
item: s,
kind: c
}),
@@ -70270,11 +70283,11 @@ function JAe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
type: "button",
"data-open-work": e.id,
"aria-label": `打开 ${e.code || s.value}`,
- onMouseDown: W$,
+ onMouseDown: K$,
onClick: (t) => {
t.stopPropagation(), i(e);
},
- children: /* @__PURE__ */ (0, I.jsx)(G$, {
+ children: /* @__PURE__ */ (0, I.jsx)(q$, {
card: e,
helpers: n
})
@@ -70288,7 +70301,7 @@ function JAe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-open-entity": l,
...o,
children: [
- c === "studio" || c === "agency" ? /* @__PURE__ */ (0, I.jsx)(K$, {
+ c === "studio" || c === "agency" ? /* @__PURE__ */ (0, I.jsx)(J$, {
item: s,
kind: c
}) : null,
@@ -70301,13 +70314,13 @@ function JAe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
]
});
}
-function G$({ card: e, helpers: t }) {
+function q$({ card: e, helpers: t }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-search-pic": "",
dangerouslySetInnerHTML: { __html: t.coverHtml(e) }
});
}
-function K$({ item: e, kind: t }) {
+function J$({ item: e, kind: t }) {
if (e.avatarHtml) return /* @__PURE__ */ (0, I.jsx)("span", {
"data-search-face": "",
dangerouslySetInnerHTML: { __html: e.avatarHtml }
@@ -70326,24 +70339,24 @@ function K$({ item: e, kind: t }) {
});
}
// src/react/settings/configuration.ts
-var q$ = ["configuration"], J$ = (e) => B(BY, e);
-async function YAe(e) {
+var Y$ = ["configuration"], X$ = (e) => B(HY, e);
+async function QAe(e) {
await H.fetchQuery({
- queryKey: q$,
- queryFn: () => J$(e)
+ queryKey: Y$,
+ queryFn: () => X$(e)
});
}
// src/react/settings-panel/legacy-controls.tsx
-var Y$ = (e) => e.map(([e, t, n]) => n ? [
+var Z$ = (e) => e.map(([e, t, n]) => n ? [
e,
t,
n
] : [e, t]);
-function X$({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
+function Q$({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
let u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(l);
return f.current = l, (0, F.useLayoutEffect)(() => {
let e = u.current;
- e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = $c(t, n, Y$(r), i, {
+ e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = $c(t, n, Z$(r), i, {
attr: a,
className: o,
text: s
@@ -70361,13 +70374,13 @@ function X$({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant:
ref: u
});
}
-function Z$({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a = !1, hidden: o, describedBy: s, epoch: c, onPick: l, decorate: u }) {
+function $$({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a = !1, hidden: o, describedBy: s, epoch: c, onPick: l, decorate: u }) {
let d = (0, F.useRef)(null), f = (0, F.useRef)(null), p = (0, F.useRef)(-1), m = (0, F.useRef)(l);
return m.current = l, (0, F.useLayoutEffect)(() => {
let e = d.current;
if (!e) return;
if (p.current !== c || !f.current) {
- e.innerHTML = ms(Y$(n), r, { label: t });
+ e.innerHTML = ms(Z$(n), r, { label: t });
let i = hs(e.firstElementChild);
i.addEventListener("change", () => m.current(i.value)), f.current = i, p.current = c;
}
@@ -70380,7 +70393,7 @@ function Z$({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a =
"aria-describedby": s
});
}
-function XAe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
+function $Ae({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
let s = (0, F.useRef)(null), c = (0, F.useRef)(null), l = (0, F.useRef)({
onStep: a,
onSettle: o
@@ -70414,7 +70427,7 @@ function XAe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSet
});
}
// src/react/settings-panel/glow-settings.tsx
-var ZAe = [
+var eje = [
[
"strength",
"强度",
@@ -70441,8 +70454,8 @@ var ZAe = [
100
]
];
-function QAe({ host: e, spot: t, index: n, glow: r }) {
- let i = fle[n], a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = LV(), [l, u] = (0, F.useState)("all");
+function tje({ host: e, spot: t, index: n, glow: r }) {
+ let i = hle[n], a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = zV(), [l, u] = (0, F.useState)("all");
(0, F.useLayoutEffect)(() => {
let [e, t, n] = [
a.current,
@@ -70455,7 +70468,7 @@ function QAe({ host: e, spot: t, index: n, glow: r }) {
}, []);
let d = r[t].color, f = (n) => {
let r = e.store.value.homeGlow;
- r[t].color = Gj(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), os(), o.current?.focus();
+ r[t].color = qj(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), os(), o.current?.focus();
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-glow-stop": t,
@@ -70480,7 +70493,7 @@ function QAe({ host: e, spot: t, index: n, glow: r }) {
children: d
})]
}),
- /* @__PURE__ */ (0, I.jsx)(BF, { name: "chevron-down" })
+ /* @__PURE__ */ (0, I.jsx)(HF, { name: "chevron-down" })
]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "popmenu",
@@ -70492,7 +70505,7 @@ function QAe({ host: e, spot: t, index: n, glow: r }) {
"data-glow-pills": "",
role: "group",
"aria-label": "色系",
- children: hle.map(([e, t]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: vle.map(([e, t]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-pill": e,
"aria-pressed": e === l,
@@ -70506,7 +70519,7 @@ function QAe({ host: e, spot: t, index: n, glow: r }) {
"data-glow-palette": "",
role: "radiogroup",
"aria-label": `${i}颜色`,
- children: gle.map(([e, t, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: yle.map(([e, t, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
role: "radio",
"aria-checked": n === d,
@@ -70523,8 +70536,8 @@ function QAe({ host: e, spot: t, index: n, glow: r }) {
})]
});
}
-function $Ae({ host: e }) {
- let t = e.store.value.homeGlow, n = Rj(t.preset);
+function nje({ host: e }) {
+ let t = e.store.value.homeGlow, n = Bj(t.preset);
return /* @__PURE__ */ (0, I.jsxs)("section", {
"data-glow-setting": "",
id: "homeGlowControls",
@@ -70543,10 +70556,10 @@ function $Ae({ host: e }) {
"data-glow-current": "",
children: ["当前配色", /* @__PURE__ */ (0, I.jsx)("b", {
"data-glow-preset-name": "",
- children: ple(t.preset)
+ children: gle(t.preset)
})]
}),
- /* @__PURE__ */ (0, I.jsx)(FM, {
+ /* @__PURE__ */ (0, I.jsx)(LM, {
store: e.store,
label: "光晕配色"
}),
@@ -70557,7 +70570,7 @@ function $Ae({ host: e }) {
}),
/* @__PURE__ */ (0, I.jsx)("div", {
"data-glow-fields": "",
- children: ZAe.map(([r, i, a]) => /* @__PURE__ */ (0, I.jsx)(XAe, {
+ children: eje.map(([r, i, a]) => /* @__PURE__ */ (0, I.jsx)($Ae, {
field: r,
label: i,
max: a,
@@ -70578,7 +70591,7 @@ function $Ae({ host: e }) {
className: "geist-button",
"data-glow-reset": "",
onClick: () => {
- e.store.value.homeGlow = qj(null), e.store.save(), e.changed("glow");
+ e.store.value.homeGlow = Yj(null), e.store.save(), e.changed("glow");
},
children: "恢复默认"
})
@@ -70597,7 +70610,7 @@ function $Ae({ host: e }) {
"data-glow-colour-card": "",
children: /* @__PURE__ */ (0, I.jsx)("div", {
"data-glow-stops": "",
- children: Fj.map((n, r) => /* @__PURE__ */ (0, I.jsx)(QAe, {
+ children: Lj.map((n, r) => /* @__PURE__ */ (0, I.jsx)(tje, {
host: e,
spot: n,
index: r,
@@ -70609,7 +70622,7 @@ function $Ae({ host: e }) {
});
}
// src/react/settings-panel/number-setting.tsx
-var eje = {
+var rje = {
batchSizeSetting: {
min: 1,
max: 200,
@@ -70656,22 +70669,22 @@ var eje = {
optional: !0,
fallback: 60
}
-}, Q$ = (e) => `peach.number.${e}`;
-function $$(e, t) {
+}, e1 = (e) => `peach.number.${e}`;
+function t1(e, t) {
if (t !== "分钟" || !Number.isInteger(e) || e < 1440) return "";
let n = e / 1440;
return Number.isInteger(n) ? `${n.toLocaleString()} 天` : `约 ${n.toFixed(1)} 天`;
}
-function e1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
- let a = eje[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, F.useRef)(0);
- d.current ||= wj(Number(localStorage.getItem(Q$(e))), o, s, n && n > 0 ? n : l);
+function n1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
+ let a = rje[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, F.useRef)(0);
+ d.current ||= Ej(Number(localStorage.getItem(e1(e))), o, s, n && n > 0 ? n : l);
let [f, p] = (0, F.useState)(n ?? 0), [m, h] = (0, F.useState)(String(n && n > 0 ? n : d.current)), [g, _] = (0, F.useState)(""), v = (0, F.useRef)(null), y = (0, F.useRef)(i);
y.current = i, (0, F.useLayoutEffect)(() => {
n !== null && (p(n), n > 0 && h(String(n)));
}, [n]);
let b = () => {
let t = v.current;
- t && (!t.value || !t.checkValidity() ? (t.setAttribute("aria-invalid", "true"), _(`请输入 ${o}–${s} 的整数(${c})`)) : (t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem(Q$(e), String(d.current)), y.current(d.current)));
+ t && (!t.value || !t.checkValidity() ? (t.setAttribute("aria-invalid", "true"), _(`请输入 ${o}–${s} 的整数(${c})`)) : (t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem(e1(e), String(d.current)), y.current(d.current)));
}, x = (0, F.useRef)(b);
x.current = b, (0, F.useEffect)(() => {
let e = v.current;
@@ -70681,7 +70694,7 @@ function e1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
}, []);
let S = f > 0, C = () => {
let t = v.current;
- t?.removeAttribute("aria-invalid"), _(""), S ? (t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(Q$(e), String(d.current)), p(0), y.current(0)) : (p(d.current), h(String(d.current)), y.current(d.current));
+ t?.removeAttribute("aria-invalid"), _(""), S ? (t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(e1(e), String(d.current)), p(0), y.current(0)) : (p(d.current), h(String(d.current)), y.current(d.current));
}, w = r || n === null;
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-number-setting": "",
@@ -70718,7 +70731,7 @@ function e1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
}
}), /* @__PURE__ */ (0, I.jsxs)("span", {
"aria-hidden": "true",
- children: [c, $$(Number(m), c) ? ` · ${$$(Number(m), c)}` : ""]
+ children: [c, t1(Number(m), c) ? ` · ${t1(Number(m), c)}` : ""]
})]
}), /* @__PURE__ */ (0, I.jsx)("small", {
id: `${e}-error`,
@@ -70731,7 +70744,7 @@ function e1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
});
}
// src/react/boardui/components/base/kbd/kbd.tsx
-function tje({ className: e, ref: t, ...n }) {
+function ije({ className: e, ref: t, ...n }) {
return /* @__PURE__ */ (0, I.jsx)("kbd", {
ref: t,
className: q("inline-flex items-center justify-center rounded-full bg-kbd-background px-1 py-0.5 font-sans text-caption-1-semibold tracking-normal whitespace-nowrap text-kbd-foreground", e),
@@ -70739,7 +70752,7 @@ function tje({ className: e, ref: t, ...n }) {
});
}
// src/react/components/keycap.tsx
-function nje({ keys: e, plus: t }) {
+function aje({ keys: e, plus: t }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-keycaps": "",
children: e.map((e, n) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [t && n ? /* @__PURE__ */ (0, I.jsx)("span", {
@@ -70754,15 +70767,15 @@ function nje({ keys: e, plus: t }) {
});
}
// src/keyboard-shortcut.ts
-var t1 = "peach.sfw-shortcut", rje = "Shift+KeyS", n1 = /^(?:Key[A-Z]|Digit[0-9]|F(?:[1-9]|1[0-2]))$/, ije = /^(?:Shift|Control|Alt|Meta|OS)(?:Left|Right)?$/, aje = /* @__PURE__ */ new Set([
+var r1 = "peach.sfw-shortcut", oje = "Shift+KeyS", i1 = /^(?:Key[A-Z]|Digit[0-9]|F(?:[1-9]|1[0-2]))$/, sje = /^(?:Shift|Control|Alt|Meta|OS)(?:Left|Right)?$/, cje = /* @__PURE__ */ new Set([
"KeyW",
"KeyT",
"KeyN",
"KeyQ"
]);
-function r1(e) {
+function a1(e) {
let t = String(e || "").split("+"), n = t.pop() || "", r = new Set(t);
- if (!n1.test(n) || [...r].some((e) => ![
+ if (!i1.test(n) || [...r].some((e) => ![
"Ctrl",
"Alt",
"Shift",
@@ -70775,9 +70788,9 @@ function r1(e) {
shift: r.has("Shift"),
meta: r.has("Meta")
};
- return a1(i) ? null : i;
+ return s1(i) ? null : i;
}
-function i1(e) {
+function o1(e) {
return [
e.ctrl && "Ctrl",
e.alt && "Alt",
@@ -70786,15 +70799,15 @@ function i1(e) {
e.code
].filter(Boolean).join("+");
}
-function a1(e) {
- return !e.ctrl && !e.alt && !e.shift && !e.meta ? "至少要带一个修饰键,单独的字母会和播放器快捷键冲突" : (e.ctrl || e.meta) && aje.has(e.code) ? "这个组合被浏览器占用,页面收不到" : "";
+function s1(e) {
+ return !e.ctrl && !e.alt && !e.shift && !e.meta ? "至少要带一个修饰键,单独的字母会和播放器快捷键冲突" : (e.ctrl || e.meta) && cje.has(e.code) ? "这个组合被浏览器占用,页面收不到" : "";
}
-function o1(e) {
- return ije.test(e);
+function c1(e) {
+ return sje.test(e);
}
-function oje(e) {
- if (o1(e.code)) return { state: "waiting" };
- if (!n1.test(e.code)) return {
+function lje(e) {
+ if (c1(e.code)) return { state: "waiting" };
+ if (!i1.test(e.code)) return {
state: "invalid",
problem: "只支持字母、数字和 F1–F12 作主键"
};
@@ -70804,7 +70817,7 @@ function oje(e) {
alt: e.altKey,
shift: e.shiftKey,
meta: e.metaKey
- }, n = a1(t);
+ }, n = s1(t);
return n ? {
state: "invalid",
problem: n
@@ -70813,13 +70826,13 @@ function oje(e) {
shortcut: t
};
}
-function sje(e, t) {
+function uje(e, t) {
return e.code === t.code && e.ctrlKey === t.ctrl && e.altKey === t.alt && e.shiftKey === t.shift && e.metaKey === t.meta;
}
-function s1(e = navigator) {
+function l1(e = navigator) {
return /mac|iphone|ipad|ipod/i.test(e.userAgentData?.platform || e.platform || "");
}
-var cje = {
+var dje = {
ArrowLeft: "←",
ArrowRight: "→",
ArrowUp: "↑",
@@ -70830,10 +70843,10 @@ var cje = {
Backspace: "Backspace",
Tab: "Tab"
};
-function lje(e) {
- return cje[e] ?? e.replace(/^Key|^Digit|^Numpad/, "");
+function fje(e) {
+ return dje[e] ?? e.replace(/^Key|^Digit|^Numpad/, "");
}
-function c1(e, t, n = s1()) {
+function u1(e, t, n = l1()) {
let r = n ? [
"⌃",
"⌥",
@@ -70850,30 +70863,30 @@ function c1(e, t, n = s1()) {
e.shift,
e.meta
];
- return [...r.filter((e, t) => i[t]), ...t ? [lje(t)] : []];
+ return [...r.filter((e, t) => i[t]), ...t ? [fje(t)] : []];
}
-function l1(e, t = s1()) {
- return c1(e, e.code, t).join(t ? "" : "+");
+function d1(e, t = l1()) {
+ return u1(e, e.code, t).join(t ? "" : "+");
}
// src/react/settings-panel/shortcut-setting.tsx
-var uje = 600, u1 = {
+var pje = 600, f1 = {
ctrl: !1,
alt: !1,
shift: !1,
meta: !1
-}, d1 = (e) => ({
+}, p1 = (e) => ({
ctrl: e.ctrlKey,
alt: e.altKey,
shift: e.shiftKey,
meta: e.metaKey
});
-function dje({ current: e, onChange: t }) {
+function mje({ current: e, onChange: t }) {
let [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(""), [o, s] = (0, F.useState)({
- modifiers: u1,
+ modifiers: f1,
code: null
}), [c, l] = (0, F.useState)(null), u = () => {
r(!1), a(""), s({
- modifiers: u1,
+ modifiers: f1,
code: null
});
};
@@ -70884,16 +70897,16 @@ function dje({ current: e, onChange: t }) {
u();
return;
}
- let n = o1(e.code);
+ let n = c1(e.code);
s({
- modifiers: d1(e),
+ modifiers: p1(e),
code: n ? null : e.code
}), a("");
- let r = oje(e);
+ let r = lje(e);
r.state === "invalid" && a(r.problem), r.state === "done" && (t(r.shortcut), l(r.shortcut), u());
}, r = (e) => {
e.stopPropagation(), s((t) => t.code === null ? {
- modifiers: d1(e),
+ modifiers: p1(e),
code: null
} : t);
};
@@ -70902,16 +70915,16 @@ function dje({ current: e, onChange: t }) {
};
}, [n, t]), (0, F.useEffect)(() => {
if (!c) return;
- let e = window.setTimeout(() => l(null), uje);
+ let e = window.setTimeout(() => l(null), pje);
return () => window.clearTimeout(e);
}, [c]);
- let d = s1(), f = (e, t, n) => c1(e, t, d).map((e) => ({
+ let d = l1(), f = (e, t, n) => u1(e, t, d).map((e) => ({
label: e,
state: n
})), p = (e) => ({
label: e,
state: "slot"
- }), m = o.modifiers.ctrl || o.modifiers.alt || o.modifiers.shift || o.modifiers.meta, h = c ? f(c, c.code, "done") : n ? o.code ? f(o.modifiers, o.code, i ? "invalid" : "down") : m ? [...f(o.modifiers, null, "down"), p("键")] : [p("修饰键"), p("键")] : null, g = i1(e) !== rje, _ = c ? `已改为 ${l1(c, d)}` : n ? i || "按下新的组合键,Esc 取消" : "输入框外随时开关。";
+ }), m = o.modifiers.ctrl || o.modifiers.alt || o.modifiers.shift || o.modifiers.meta, h = c ? f(c, c.code, "done") : n ? o.code ? f(o.modifiers, o.code, i ? "invalid" : "down") : m ? [...f(o.modifiers, null, "down"), p("键")] : [p("修饰键"), p("键")] : null, g = o1(e) !== oje, _ = c ? `已改为 ${d1(c, d)}` : n ? i || "按下新的组合键,Esc 取消" : "输入框外随时开关。";
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-setting-row": "",
children: [/* @__PURE__ */ (0, I.jsxs)("span", { children: [/* @__PURE__ */ (0, I.jsx)("b", { children: "SFW 快捷键" }), /* @__PURE__ */ (0, I.jsx)("small", {
@@ -70922,13 +70935,13 @@ function dje({ current: e, onChange: t }) {
"data-setting-shortcut": "",
className: "peach-react",
children: [
- h ? /* @__PURE__ */ (0, I.jsx)(nje, {
+ h ? /* @__PURE__ */ (0, I.jsx)(aje, {
keys: h,
plus: !d
- }) : /* @__PURE__ */ (0, I.jsx)(tje, {
+ }) : /* @__PURE__ */ (0, I.jsx)(ije, {
"data-shortcut-keys": "",
- "aria-label": `当前快捷键 ${l1(e, d)}`,
- children: l1(e, d)
+ "aria-label": `当前快捷键 ${d1(e, d)}`,
+ children: d1(e, d)
}),
g && !n && !c ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -70951,13 +70964,13 @@ function dje({ current: e, onChange: t }) {
});
}
// src/react/sidebar/sidebar-order.ts
-function f1(e) {
- let { mutate: t } = ZY();
+function m1(e) {
+ let { mutate: t } = $Y();
return (0, F.useCallback)((n) => {
e.value.sidebarOrder = n, e.save(), t({ sidebarOrder: n }, { onError: () => {} });
}, [e, t]);
}
-function p1(e, t, n, r) {
+function h1(e, t, n, r) {
if (t === n) return null;
let i = [...e], a = i.indexOf(t);
if (a < 0) return null;
@@ -70966,17 +70979,17 @@ function p1(e, t, n, r) {
return o < 0 ? null : (i.splice(o + +!!r, 0, t), i);
}
// src/react/settings-panel/sidebar-order.tsx
-var fje = "__home__", m1 = (e) => e === "" ? fje : e;
-function pje({ host: e }) {
- let t = f1(e.store), n = e.store.value.sidebarOrder, r = new Map(e.navCatalog.map((e) => [e[0], e])), i = n.map((e) => r.get(e)).filter((e) => e !== void 0), a = e.navCatalog.filter(([e]) => !n.includes(e)), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(!1), [u, d] = (0, F.useState)(null), [f, p] = (0, F.useState)(null), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (e, r, i) => {
- let a = p1(n, e, r, i);
+var hje = "__home__", g1 = (e) => e === "" ? hje : e;
+function gje({ host: e }) {
+ let t = m1(e.store), n = e.store.value.sidebarOrder, r = new Map(e.navCatalog.map((e) => [e[0], e])), i = n.map((e) => r.get(e)).filter((e) => e !== void 0), a = e.navCatalog.filter(([e]) => !n.includes(e)), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(!1), [u, d] = (0, F.useState)(null), [f, p] = (0, F.useState)(null), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (e, r, i) => {
+ let a = h1(n, e, r, i);
a && t(a);
}, _ = (e, r) => {
let i = n.indexOf(e), a = i + r;
if (i < 0 || a < 0 || a >= n.length) return;
let o = [...n];
[o[i], o[a]] = [o[a], o[i]], t(o);
- }, v = a.find(([e]) => m1(e) === o) ?? a[0], y = () => {
+ }, v = a.find(([e]) => g1(e) === o) ?? a[0], y = () => {
h.current && ls(h.current), l(!1);
}, b = () => {
let e = h.current;
@@ -70997,7 +71010,7 @@ function pje({ host: e }) {
}, C = (e) => ({
draggable: !0,
onDragStart: (t) => {
- d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", m1(e));
+ d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", g1(e));
},
onDragOver: (t) => {
if (u === null || u === e) return;
@@ -71029,9 +71042,9 @@ function pje({ host: e }) {
/* @__PURE__ */ (0, I.jsx)("i", {
"data-sidebar-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(BF, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, I.jsx)(HF, { name: "grip-vertical" })
}),
- /* @__PURE__ */ (0, I.jsx)(BF, { name: a ?? "" }),
+ /* @__PURE__ */ (0, I.jsx)(HF, { name: a ?? "" }),
/* @__PURE__ */ (0, I.jsx)("b", { children: r })
]
}), /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -71045,7 +71058,7 @@ function pje({ host: e }) {
title: "上移",
disabled: o === 0,
onClick: () => _(e, -1),
- children: /* @__PURE__ */ (0, I.jsx)(BF, { name: "chevron-up" })
+ children: /* @__PURE__ */ (0, I.jsx)(HF, { name: "chevron-up" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -71055,7 +71068,7 @@ function pje({ host: e }) {
title: "下移",
disabled: o === i.length - 1,
onClick: () => _(e, 1),
- children: /* @__PURE__ */ (0, I.jsx)(BF, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, I.jsx)(HF, { name: "chevron-down" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -71067,11 +71080,11 @@ function pje({ host: e }) {
onClick: () => {
n.length > 1 && t(n.filter((t) => t !== e));
},
- children: /* @__PURE__ */ (0, I.jsx)(BF, { name: "eye-off" })
+ children: /* @__PURE__ */ (0, I.jsx)(HF, { name: "eye-off" })
})
]
})]
- }, m1(e))), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }, g1(e))), /* @__PURE__ */ (0, I.jsxs)("div", {
"data-sidebar-add-row": "",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-sidebar-add-picker": "",
@@ -71087,13 +71100,13 @@ function pje({ host: e }) {
ref: m,
onClick: b,
children: v ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(BF, { name: v[2] ?? "" }),
+ /* @__PURE__ */ (0, I.jsx)(HF, { name: v[2] ?? "" }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-sidebar-add-label": "",
children: v[1]
}),
- /* @__PURE__ */ (0, I.jsx)(BF, { name: "chevron-down" })
- ] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(BF, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部页面都已显示" })] })
+ /* @__PURE__ */ (0, I.jsx)(HF, { name: "chevron-down" })
+ ] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(HF, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部页面都已显示" })] })
}), a.length ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "popmenu",
"data-sidebar-add-menu": "",
@@ -71104,15 +71117,15 @@ function pje({ host: e }) {
children: a.map(([e, t, n]) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
role: "option",
- "data-sidebar-add-option": m1(e),
+ "data-sidebar-add-option": g1(e),
"aria-selected": v?.[0] === e,
tabIndex: v?.[0] === e ? 0 : -1,
onKeyDown: x,
onClick: () => {
- s(m1(e)), y(), m.current?.focus();
+ s(g1(e)), y(), m.current?.focus();
},
- children: [/* @__PURE__ */ (0, I.jsx)(BF, { name: n ?? "" }), /* @__PURE__ */ (0, I.jsx)("span", { children: t })]
- }, m1(e)))
+ children: [/* @__PURE__ */ (0, I.jsx)(HF, { name: n ?? "" }), /* @__PURE__ */ (0, I.jsx)("span", { children: t })]
+ }, g1(e)))
}) : null]
}), /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -71128,13 +71141,13 @@ function pje({ host: e }) {
});
}
// src/react/settings-panel/settings-panel.tsx
-var h1 = [
+var _1 = [
["外观与导航", "ri-palette-line"],
["浏览与播放", "ri-play-circle-line"],
["JAV 与新作", "jav"],
["搜索与推荐", "ri-search-line"],
["内容显示", "ri-shield-check-line"]
-], mje = [
+], _je = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -71143,7 +71156,7 @@ var h1 = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], hje = [["desc", "降序"], ["asc", "升序"]], gje = [[
+], vje = [["desc", "降序"], ["asc", "升序"]], yje = [[
"cover",
"官方封面",
""
@@ -71151,7 +71164,7 @@ var h1 = [
"thumbnail",
"预览图",
""
-]], _je = [
+]], bje = [
[
"feedHideGroupSetting",
"feedHideGroupCompilations",
@@ -71170,88 +71183,88 @@ var h1 = [
"切片",
"隐藏切片"
]
-], vje = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", g1 = null, _1 = {
+], xje = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", v1 = null, y1 = {
open: !1,
closing: !1,
epoch: 0,
tab: 0,
configurable: null
-}, v1 = 0, y1 = null, b1 = /* @__PURE__ */ new Set();
-function yje(e) {
- return b1.add(e), () => {
- b1.delete(e);
+}, b1 = 0, x1 = null, S1 = /* @__PURE__ */ new Set();
+function Sje(e) {
+ return S1.add(e), () => {
+ S1.delete(e);
};
}
-function bje() {
- for (let e of [...b1]) e();
+function Cje() {
+ for (let e of [...S1]) e();
}
-function x1(e) {
- _1 = {
- ..._1,
+function C1(e) {
+ y1 = {
+ ...y1,
...e
- }, (0, Rt.flushSync)(bje);
+ }, (0, Rt.flushSync)(Cje);
}
-async function xje(e) {
- let t = _1.epoch, n = await e.configurable();
- _1.open && _1.epoch === t && x1({ configurable: n });
+async function wje(e) {
+ let t = y1.epoch, n = await e.configurable();
+ y1.open && y1.epoch === t && C1({ configurable: n });
}
-function Sje(e = "") {
- let t = g1;
+function Tje(e = "") {
+ let t = v1;
if (!t) return;
- let n = h1.findIndex(([t]) => t === e);
- if (_1.open && !_1.closing) {
- n >= 0 && n !== _1.tab && x1({ tab: n });
+ let n = _1.findIndex(([t]) => t === e);
+ if (y1.open && !y1.closing) {
+ n >= 0 && n !== y1.tab && C1({ tab: n });
return;
}
- os(), v1 += 1, y1 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
- let r = qTe();
- x1({
+ os(), b1 += 1, x1 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
+ let r = XTe();
+ C1({
open: !0,
closing: !1,
configurable: null,
- epoch: _1.epoch + 1,
- tab: n >= 0 ? n : _1.tab
+ epoch: y1.epoch + 1,
+ tab: n >= 0 ? n : y1.tab
}), r.then((e) => {
e && t.syncRemote(e);
- }), xje(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
+ }), wje(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
}
-function S1(e = !0) {
- if (!_1.open || _1.closing) return;
- let t = ++v1;
- e && g1?.closed?.(), x1({ closing: !0 });
+function w1(e = !0) {
+ if (!y1.open || y1.closing) return;
+ let t = ++b1;
+ e && v1?.closed?.(), C1({ closing: !0 });
let n = () => {
- t === v1 && _1.closing && (x1({
+ t === b1 && y1.closing && (C1({
open: !1,
closing: !1
- }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), y1 instanceof HTMLElement && document.contains(y1) && y1.focus(), y1 = null);
+ }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), x1 instanceof HTMLElement && document.contains(x1) && x1.focus(), x1 = null);
};
matchMedia("(prefers-reduced-motion: reduce)").matches ? queueMicrotask(n) : (document.querySelector("#settingsPanel > [data-settings-card]")?.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 380));
}
-var Cje = {
- open: Sje,
- close: S1,
- isOpen: () => _1.open,
+var Eje = {
+ open: Tje,
+ close: w1,
+ isOpen: () => y1.open,
reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))
};
-function wje(e) {
- return g1 = e, Cje;
+function Dje(e) {
+ return v1 = e, Eje;
}
-function Tje() {
- let e = (0, F.useSyncExternalStore)(yje, () => _1);
- return g1 ? /* @__PURE__ */ (0, I.jsx)(Oje, {
- host: g1,
+function Oje() {
+ let e = (0, F.useSyncExternalStore)(Sje, () => y1);
+ return v1 ? /* @__PURE__ */ (0, I.jsx)(jje, {
+ host: v1,
view: e
}) : null;
}
-function Eje(e) {
+function kje(e) {
if (e.key !== "Tab") return;
- let t = [...e.currentTarget.querySelectorAll(vje)].filter((e) => e.getClientRects().length > 0);
+ let t = [...e.currentTarget.querySelectorAll(xje)].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 C1 = (e) => `settings-tab-${e}`, w1 = (e) => `settings-group-${e}`;
-function Dje({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
+var T1 = (e) => `settings-tab-${e}`, E1 = (e) => `settings-group-${e}`;
+function Aje({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
let a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useRef)(e), l = (0, F.useRef)([]), u = (e, t) => {
let n = o.current;
if (!n) return;
@@ -71279,7 +71292,7 @@ function Dje({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
c.current = e, d.current(l.current[e], t);
}, [e, t]);
let f = (e, t) => {
- let n = h1.length, r = t;
+ let n = _1.length, r = t;
if (e.key === "ArrowRight" || e.key === "ArrowDown") r = (t + 1) % n;
else if (e.key === "ArrowLeft" || e.key === "ArrowUp") r = (t + n - 1) % n;
else if (e.key === "Home") r = 0;
@@ -71308,11 +71321,11 @@ function Dje({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
role: "presentation",
children: "设置"
}),
- h1.map(([t, n], r) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ _1.map(([t, n], r) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
role: "tab",
- id: C1(r),
- "aria-controls": w1(r),
+ id: T1(r),
+ "aria-controls": E1(r),
"aria-selected": r === e,
tabIndex: r === e ? 0 : -1,
ref: (e) => {
@@ -71323,7 +71336,7 @@ function Dje({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
onPointerEnter: (e) => {
e.pointerType !== "touch" && u(e.currentTarget, !0);
},
- children: [n === "jav" ? /* @__PURE__ */ (0, I.jsx)(BF, { name: n }) : /* @__PURE__ */ (0, I.jsx)(Xde, { name: n }), t]
+ children: [n === "jav" ? /* @__PURE__ */ (0, I.jsx)(HF, { name: n }) : /* @__PURE__ */ (0, I.jsx)($de, { name: n }), t]
}, t)),
/* @__PURE__ */ (0, I.jsx)("div", {
"data-settings-service": "",
@@ -71334,27 +71347,27 @@ function Dje({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
onClick: r,
title: n === !1 ? "请在运行 Peach 的设备上打开 Peach 配置" : void 0,
children: [
- /* @__PURE__ */ (0, I.jsx)(BF, { name: "folder-cog" }),
+ /* @__PURE__ */ (0, I.jsx)(HF, { name: "folder-cog" }),
"Peach 配置",
- /* @__PURE__ */ (0, I.jsx)(BF, { name: "chevron-right" })
+ /* @__PURE__ */ (0, I.jsx)(HF, { name: "chevron-right" })
]
})
})
]
});
}
-function T1({ index: e, tab: t, children: n, cards: r = !1 }) {
+function D1({ index: e, tab: t, children: n, cards: r = !1 }) {
return /* @__PURE__ */ (0, I.jsxs)("section", {
"data-setting-group": "",
"data-setting-layout": r ? "cards" : void 0,
- id: w1(e),
+ id: E1(e),
role: "tabpanel",
- "aria-labelledby": C1(e),
+ "aria-labelledby": T1(e),
hidden: e !== t,
- children: [/* @__PURE__ */ (0, I.jsx)("h3", { children: h1[e][0] }), n]
+ children: [/* @__PURE__ */ (0, I.jsx)("h3", { children: _1[e][0] }), n]
});
}
-function E1({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
+function O1({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
return /* @__PURE__ */ (0, I.jsxs)("label", {
"data-setting-row": "",
children: [/* @__PURE__ */ (0, I.jsxs)("span", { children: [/* @__PURE__ */ (0, I.jsx)("b", { children: t }), n ? /* @__PURE__ */ (0, I.jsx)("small", {
@@ -71371,7 +71384,7 @@ function E1({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Se
})]
});
}
-function D1({ title: e, description: t, kind: n, children: r }) {
+function k1({ title: e, description: t, kind: n, children: r }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-setting-row": "",
"data-setting-sort": n === "sort" ? "" : void 0,
@@ -71379,7 +71392,7 @@ function D1({ title: e, description: t, kind: n, children: r }) {
children: [/* @__PURE__ */ (0, I.jsxs)("span", { children: [/* @__PURE__ */ (0, I.jsx)("b", { children: e }), typeof t == "string" ? /* @__PURE__ */ (0, I.jsx)("small", { children: t }) : t] }), r]
});
}
-function Oje({ host: e, view: t }) {
+function jje({ host: e, view: t }) {
(0, F.useSyncExternalStore)(e.store.subscribe, e.store.version);
let n = e.store.value, r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useRef)(t.tab), l = () => {
let [e, t] = [i.current, o.current];
@@ -71400,7 +71413,7 @@ function Oje({ host: e, view: t }) {
s.current?.();
});
let d = t.epoch, f = (t) => {
- t !== _1.tab && (x1({ tab: t }), e.selectSection?.(h1[t][0]));
+ t !== y1.tab && (C1({ tab: t }), e.selectSection?.(_1[t][0]));
}, p = () => e.store.save();
return /* @__PURE__ */ (0, I.jsx)("section", {
"data-settings-panel": "",
@@ -71411,9 +71424,9 @@ function Oje({ host: e, view: t }) {
"aria-labelledby": "settingsTitle",
"data-closing": t.closing ? "" : void 0,
ref: r,
- onKeyDown: Eje,
+ onKeyDown: kje,
onClick: (e) => {
- e.target === e.currentTarget && S1();
+ e.target === e.currentTarget && w1();
},
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-settings-card": "",
@@ -71424,27 +71437,27 @@ function Oje({ host: e, view: t }) {
ref: a,
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
id: "settingsTitle",
- children: h1[t.tab][0]
- }), /* @__PURE__ */ (0, I.jsx)(dV, {
+ children: _1[t.tab][0]
+ }), /* @__PURE__ */ (0, I.jsx)(pV, {
id: "settingsClose",
label: "关闭设置",
- onPress: () => S1()
+ onPress: () => w1()
})]
}),
- /* @__PURE__ */ (0, I.jsx)(Dje, {
+ /* @__PURE__ */ (0, I.jsx)(Aje, {
tab: t.tab,
epoch: d,
configurable: t.configurable,
onSelect: f,
openConfiguration: () => {
- S1(!1), e.openConfiguration();
+ w1(!1), e.openConfiguration();
}
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-settings-scroll": "",
ref: o,
children: [
- /* @__PURE__ */ (0, I.jsxs)(T1, {
+ /* @__PURE__ */ (0, I.jsxs)(D1, {
index: 0,
tab: t.tab,
cards: !0,
@@ -71452,9 +71465,9 @@ function Oje({ host: e, view: t }) {
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-setting-card": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(D1, {
+ /* @__PURE__ */ (0, I.jsx)(k1, {
title: "主题",
- children: /* @__PURE__ */ (0, I.jsx)(X$, {
+ children: /* @__PURE__ */ (0, I.jsx)(Q$, {
id: "themeSetting",
name: "theme",
legend: "主题",
@@ -71482,7 +71495,7 @@ function Oje({ host: e, view: t }) {
onChange: (t) => e.setHighContrast(t.target.checked)
})]
}),
- /* @__PURE__ */ (0, I.jsx)(E1, {
+ /* @__PURE__ */ (0, I.jsx)(O1, {
id: "uiSoundsSetting",
title: "界面音效",
checked: n.uiSounds,
@@ -71490,7 +71503,7 @@ function Oje({ host: e, view: t }) {
n.uiSounds = t, p(), e.changed("uiSounds");
}
}),
- /* @__PURE__ */ (0, I.jsx)(E1, {
+ /* @__PURE__ */ (0, I.jsx)(O1, {
id: "homeGlowSetting",
title: "侧栏光晕",
checked: n.homeGlow.on,
@@ -71500,7 +71513,7 @@ function Oje({ host: e, view: t }) {
})
]
}),
- /* @__PURE__ */ (0, I.jsx)($Ae, { host: e }),
+ /* @__PURE__ */ (0, I.jsx)(nje, { host: e }),
/* @__PURE__ */ (0, I.jsxs)("section", {
"data-setting-block": "",
"aria-labelledby": "sidebarOrderTitle",
@@ -71512,35 +71525,35 @@ function Oje({ host: e, view: t }) {
"data-setting-card": "",
children: /* @__PURE__ */ (0, I.jsx)("section", {
"data-sidebar-setting": "",
- children: /* @__PURE__ */ (0, I.jsx)(pje, { host: e })
+ children: /* @__PURE__ */ (0, I.jsx)(gje, { host: e })
})
})]
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(Aje, {
+ /* @__PURE__ */ (0, I.jsx)(Nje, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, I.jsx)(jje, {
+ /* @__PURE__ */ (0, I.jsx)(Pje, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, I.jsxs)(T1, {
+ /* @__PURE__ */ (0, I.jsxs)(D1, {
index: 3,
tab: t.tab,
children: [
- /* @__PURE__ */ (0, I.jsx)(Fje, {
+ /* @__PURE__ */ (0, I.jsx)(Rje, {
host: e,
epoch: d
}),
- /* @__PURE__ */ (0, I.jsx)(D1, {
+ /* @__PURE__ */ (0, I.jsx)(k1, {
title: "相关推荐数量",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "relatedLimitSetting",
- children: /* @__PURE__ */ (0, I.jsx)(e1, {
+ children: /* @__PURE__ */ (0, I.jsx)(n1, {
id: "relatedLimitSetting",
label: "相关推荐数量",
value: n.relatedLimit,
@@ -71550,31 +71563,31 @@ function Oje({ host: e, view: t }) {
}, d)
})
}),
- /* @__PURE__ */ (0, I.jsx)(D1, {
+ /* @__PURE__ */ (0, I.jsx)(k1, {
title: "口味与记录",
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(gL, {
+ children: /* @__PURE__ */ (0, I.jsx)(vL, {
variant: "secondary",
href: "/taste",
- onClick: () => S1(!1),
+ onClick: () => w1(!1),
children: "打开口味与记录"
})
})
})
]
}),
- /* @__PURE__ */ (0, I.jsxs)(T1, {
+ /* @__PURE__ */ (0, I.jsxs)(D1, {
index: 4,
tab: t.tab,
- children: [/* @__PURE__ */ (0, I.jsx)(E1, {
+ children: [/* @__PURE__ */ (0, I.jsx)(O1, {
id: "censorSetting",
title: "SFW 模式",
describedBy: "sfwDescription",
checked: e.censored(),
description: "隐藏敏感画面,停止悬停预览。",
onToggle: (t) => e.setCensored(t)
- }), /* @__PURE__ */ (0, I.jsx)(dje, {
+ }), /* @__PURE__ */ (0, I.jsx)(mje, {
current: e.sfwShortcut(),
onChange: e.setSfwShortcut
})]
@@ -71585,7 +71598,7 @@ function Oje({ host: e, view: t }) {
})
});
}
-function kje(e, t) {
+function Mje(e, t) {
let n = e.querySelector("[data-select-label]");
if (!n) return;
n.querySelector("[data-icon-swap]") || (n.innerHTML = Ks("arrow-up", "arrow-down", "a", {
@@ -71595,9 +71608,9 @@ function kje(e, t) {
let r = n.querySelector("[data-sort-direction-label]");
r && (r.textContent = t ? "升序" : "降序");
}
-function Aje({ host: e, tab: t, epoch: n }) {
+function Nje({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save(), a = r.defaultSort === "seed", o = r.defaultSortDirection === "asc";
- return /* @__PURE__ */ (0, I.jsxs)(T1, {
+ return /* @__PURE__ */ (0, I.jsxs)(D1, {
index: 1,
tab: t,
children: [
@@ -71605,11 +71618,11 @@ function Aje({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "作品列表"
}),
- /* @__PURE__ */ (0, I.jsx)(D1, {
+ /* @__PURE__ */ (0, I.jsx)(k1, {
title: "每批加载作品",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "batchSizeSetting",
- children: /* @__PURE__ */ (0, I.jsx)(e1, {
+ children: /* @__PURE__ */ (0, I.jsx)(n1, {
id: "batchSizeSetting",
label: "每批作品",
value: r.batchSize,
@@ -71619,24 +71632,24 @@ function Aje({ host: e, tab: t, epoch: n }) {
}, n)
})
}),
- /* @__PURE__ */ (0, I.jsx)(D1, {
+ /* @__PURE__ */ (0, I.jsx)(k1, {
title: "默认排序",
kind: "sort",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-setting-sort-controls": "",
- children: [/* @__PURE__ */ (0, I.jsx)(Z$, {
+ children: [/* @__PURE__ */ (0, I.jsx)($$, {
id: "defaultSortSetting",
label: "默认排序",
- options: mje,
+ options: _je,
value: r.defaultSort,
epoch: n,
onPick: (t) => {
r.defaultSort = t, i(), e.changed("defaultSort");
}
- }), /* @__PURE__ */ (0, I.jsx)(Z$, {
+ }), /* @__PURE__ */ (0, I.jsx)($$, {
id: "defaultSortDirectionSetting",
label: "默认排序方向",
- options: hje,
+ options: vje,
value: o ? "asc" : "desc",
hidden: a,
disabled: a,
@@ -71644,13 +71657,13 @@ function Aje({ host: e, tab: t, epoch: n }) {
onPick: (t) => {
r.defaultSortDirection = t, i(), e.changed("sortDirection");
},
- decorate: (e) => kje(e, o)
+ decorate: (e) => Mje(e, o)
})]
})
}),
- /* @__PURE__ */ (0, I.jsx)(D1, {
+ /* @__PURE__ */ (0, I.jsx)(k1, {
title: "视频卡片大小",
- children: /* @__PURE__ */ (0, I.jsx)(X$, {
+ children: /* @__PURE__ */ (0, I.jsx)(Q$, {
id: "javSizeSetting",
name: "video-size",
legend: "视频卡片大小",
@@ -71676,16 +71689,16 @@ function Aje({ host: e, tab: t, epoch: n }) {
}
})]
}),
- /* @__PURE__ */ (0, I.jsx)(D1, {
+ /* @__PURE__ */ (0, I.jsx)(k1, {
title: "悬停预览延迟",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "hoverDelaySetting",
- children: /* @__PURE__ */ (0, I.jsx)(e1, {
+ children: /* @__PURE__ */ (0, I.jsx)(n1, {
id: "hoverDelaySetting",
label: "悬停预览延迟",
value: r.hoverDelaySeconds,
onApply: (t) => {
- r.hoverDelaySeconds = wj(t, 0, 60, 5), i(), e.changed("hoverDelay");
+ r.hoverDelaySeconds = Ej(t, 0, 60, 5), i(), e.changed("hoverDelay");
}
}, n)
})
@@ -71694,16 +71707,16 @@ function Aje({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "播放"
}),
- /* @__PURE__ */ (0, I.jsx)(Pje, {
+ /* @__PURE__ */ (0, I.jsx)(Lje, {
host: e,
epoch: n
})
]
});
}
-function jje({ host: e, tab: t, epoch: n }) {
+function Pje({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save();
- return /* @__PURE__ */ (0, I.jsxs)(T1, {
+ return /* @__PURE__ */ (0, I.jsxs)(D1, {
index: 2,
tab: t,
children: [
@@ -71711,17 +71724,17 @@ function jje({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "作品显示"
}),
- /* @__PURE__ */ (0, I.jsx)(Mje, {
+ /* @__PURE__ */ (0, I.jsx)(Fje, {
host: e,
epoch: n
}),
- /* @__PURE__ */ (0, I.jsx)(D1, {
+ /* @__PURE__ */ (0, I.jsx)(k1, {
title: "默认图片",
- children: /* @__PURE__ */ (0, I.jsx)(X$, {
+ children: /* @__PURE__ */ (0, I.jsx)(Q$, {
id: "javImageSetting",
name: "jav-image",
legend: "默认图片",
- options: gje,
+ options: yje,
value: r.javImage,
attr: "data-jav-image-choice",
variant: "javimageswitch",
@@ -71736,21 +71749,21 @@ function jje({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "新作显示"
}),
- /* @__PURE__ */ (0, I.jsx)(D1, {
+ /* @__PURE__ */ (0, I.jsx)(k1, {
title: "显示数量",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "feedLimitSetting",
- children: /* @__PURE__ */ (0, I.jsx)(e1, {
+ children: /* @__PURE__ */ (0, I.jsx)(n1, {
id: "feedLimitSetting",
label: "新作显示数量",
value: r.feedLimit,
onApply: (t) => {
- r.feedLimit = wj(t, 1, 100, 12), i(), e.changed("feedLimit");
+ r.feedLimit = Ej(t, 1, 100, 12), i(), e.changed("feedLimit");
}
}, n)
})
}),
- /* @__PURE__ */ (0, I.jsx)(E1, {
+ /* @__PURE__ */ (0, I.jsx)(O1, {
id: "feedAutoScrollSetting",
title: "自动滚动",
checked: r.feedAutoScroll,
@@ -71758,7 +71771,7 @@ function jje({ host: e, tab: t, epoch: n }) {
r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");
}
}),
- _je.map(([t, n, r, i]) => /* @__PURE__ */ (0, I.jsx)(Nje, {
+ bje.map(([t, n, r, i]) => /* @__PURE__ */ (0, I.jsx)(Ije, {
host: e,
id: t,
settingKey: n,
@@ -71768,19 +71781,19 @@ function jje({ host: e, tab: t, epoch: n }) {
]
});
}
-function Mje({ host: e, epoch: t }) {
+function Fje({ host: e, epoch: t }) {
let n = Ft({
- queryKey: KY,
- queryFn: ({ signal: e }) => XY(e),
+ queryKey: JY,
+ queryFn: ({ signal: e }) => QY(e),
staleTime: 0
- }), r = ZY(), [i, a] = (0, F.useState)(null), o = n.data?.performerNameLanguage;
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(D1, {
+ }), r = $Y(), [i, a] = (0, F.useState)(null), o = n.data?.performerNameLanguage;
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(k1, {
title: "女优名称",
description: /* @__PURE__ */ (0, I.jsx)("small", {
"data-copy-key": "performer-name-language-help",
children: "名称与别名只显示所选语言的写法;缺少对应时保留当前名称。偏好保存在数据库,其他设备读取同一份设置。"
}),
- children: /* @__PURE__ */ (0, I.jsx)(Z$, {
+ children: /* @__PURE__ */ (0, I.jsx)($$, {
id: "performerNameLanguageSetting",
label: "女优名称",
epoch: t,
@@ -71798,13 +71811,13 @@ function Mje({ host: e, epoch: t }) {
}));
}
})
- }), n.isError ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ }), n.isError ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "error",
children: "未取得数据库中的名称偏好,请重新打开设置。"
}) : null] });
}
-function Nje({ host: e, id: t, settingKey: n, label: r, title: i }) {
- let a = ZY(), [o, s] = (0, F.useState)(null), c = (0, F.useRef)(null), l = e.store.value, u = (t) => {
+function Ije({ host: e, id: t, settingKey: n, label: r, title: i }) {
+ let a = $Y(), [o, s] = (0, F.useState)(null), c = (0, F.useRef)(null), l = e.store.value, u = (t) => {
s(t), Xc(c.current), a.mutate({ [n]: t }, {
onSuccess: (i) => {
l[n] = i[n] === !0, e.store.save(), e.changed("feedCompilations"), e.receipt(t ? `新作已收起${r}` : `新作已列出${r}`);
@@ -71828,10 +71841,10 @@ function Nje({ host: e, id: t, settingKey: n, label: r, title: i }) {
})]
});
}
-function Pje({ host: e, epoch: t }) {
+function Lje({ host: e, epoch: t }) {
let n = e.store.value, r = () => e.store.save();
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(E1, {
+ /* @__PURE__ */ (0, I.jsx)(O1, {
id: "detailAutoplaySetting",
title: "打开详情自动播放",
checked: n.detailAutoplay,
@@ -71839,7 +71852,7 @@ function Pje({ host: e, epoch: t }) {
n.detailAutoplay = e, r();
}
}),
- /* @__PURE__ */ (0, I.jsx)(E1, {
+ /* @__PURE__ */ (0, I.jsx)(O1, {
id: "miniplayerSetting",
title: "离开详情后小窗播放",
checked: n.miniplayer,
@@ -71847,11 +71860,11 @@ function Pje({ host: e, epoch: t }) {
n.miniplayer = t, r(), e.changed("miniplayer");
}
}),
- /* @__PURE__ */ (0, I.jsx)(D1, {
+ /* @__PURE__ */ (0, I.jsx)(k1, {
title: "快进 / 快退步长",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "seekSecondsSetting",
- children: /* @__PURE__ */ (0, I.jsx)(e1, {
+ children: /* @__PURE__ */ (0, I.jsx)(n1, {
id: "seekSecondsSetting",
label: "快进 / 快退",
value: n.seekSeconds,
@@ -71863,25 +71876,25 @@ function Pje({ host: e, epoch: t }) {
})
] });
}
-function Fje({ host: e, epoch: t }) {
- let n = e.store.value, r = ZY();
- return /* @__PURE__ */ (0, I.jsx)(D1, {
+function Rje({ host: e, epoch: t }) {
+ let n = e.store.value, r = $Y();
+ return /* @__PURE__ */ (0, I.jsx)(k1, {
title: "搜索记录数量",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "searchHistoryLimitSetting",
- children: /* @__PURE__ */ (0, I.jsx)(e1, {
+ children: /* @__PURE__ */ (0, I.jsx)(n1, {
id: "searchHistoryLimitSetting",
label: "搜索记录",
value: n.searchHistoryLimit,
onApply: (t) => {
- n.searchHistoryLimit = wj(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
+ n.searchHistoryLimit = Ej(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
}
}, t)
})
});
}
// src/react/sidebar/use-sidebar-reorder.ts
-function Ije(e, t, n, r) {
+function zje(e, t, n, r) {
let [i, a] = (0, F.useState)(null), [o, s] = (0, F.useState)(""), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(!1), d = (0, F.useRef)({
order: t,
commit: n,
@@ -71916,7 +71929,7 @@ function Ije(e, t, n, r) {
let m = (t) => {
let n = c.current;
if (!n || (c.current = null, !n.started)) return;
- let r = d.current.picked, i = n.keys.filter((e) => e !== n.key), o = t ? r.slot : null, l = o === null || o === r.origin ? null : p1(d.current.order, n.key, i[Math.min(o, i.length - 1)], o === i.length);
+ let r = d.current.picked, i = n.keys.filter((e) => e !== n.key), o = t ? r.slot : null, l = o === null || o === r.origin ? null : h1(d.current.order, n.key, i[Math.min(o, i.length - 1)], o === i.length);
p(), e.current.style.minHeight = n.minHeight, document.body.style.cursor = n.cursor, n.node.style.removeProperty("--sidebar-drag-x"), n.node.style.removeProperty("--sidebar-drag-y"), u.current = !0, (0, Rt.flushSync)(() => {
a(null), l && d.current.commit(l), s(l ? `${n.node.ariaLabel},已移动到第 ${o + 1} 项` : t && o === r.origin ? "顺序未变" : "已取消排序");
}), d.current.settled();
@@ -71978,7 +71991,7 @@ function Ije(e, t, n, r) {
e.preventDefault();
let a = f().map((e) => e.dataset.nav), o = a.indexOf(i), c = e.key === "ArrowDown", l = a[o + (c ? 1 : -1)];
if (l === void 0) return;
- let u = p1(t, i, l, c);
+ let u = h1(t, i, l, c);
u && (p(), (0, Rt.flushSync)(() => n(u)), s(`${e.currentTarget.ariaLabel},已移动到第 ${o + (c ? 2 : 0)} 项`), r());
}, v = i ? f().filter((e) => e.dataset.nav !== i.key) : [], y = !!i && i.slot !== null && i.slot !== i.origin;
return {
@@ -72017,68 +72030,68 @@ function Ije(e, t, n, r) {
};
}
// src/react/sidebar/sidebar-island.tsx
-var O1 = "__home__", Lje = {
+var A1 = "__home__", Bje = {
creator: 26,
tag: 30,
tech: 16
-}, k1 = 180, A1 = null, j1 = {
+}, j1 = 180, M1 = null, N1 = {
props: {
content: null,
filters: {},
latest: null
},
epoch: 0
-}, M1 = /* @__PURE__ */ new Set();
-function Rje(e) {
- return M1.add(e), () => {
- M1.delete(e);
+}, P1 = /* @__PURE__ */ new Set();
+function Vje(e) {
+ return P1.add(e), () => {
+ P1.delete(e);
};
}
-function N1() {
- for (let e of [...M1]) e();
+function F1() {
+ for (let e of [...P1]) e();
}
-var zje = {
+var Hje = {
render(e) {
- j1 = {
- ...j1,
+ N1 = {
+ ...N1,
props: e
- }, (0, Rt.flushSync)(N1);
+ }, (0, Rt.flushSync)(F1);
},
navChanged() {
- j1 = {
- ...j1,
- epoch: j1.epoch + 1
- }, (0, Rt.flushSync)(N1);
+ N1 = {
+ ...N1,
+ epoch: N1.epoch + 1
+ }, (0, Rt.flushSync)(F1);
}
};
-function Bje(e) {
- return A1 = e, j1 = {
- ...j1,
+function Uje(e) {
+ return M1 = e, N1 = {
+ ...N1,
props: {
content: null,
filters: {},
latest: null
}
- }, zje;
+ }, Hje;
}
-function Vje() {
- let e = (0, F.useSyncExternalStore)(Rje, () => j1);
- return A1 ? /* @__PURE__ */ (0, I.jsx)(Hje, {
- host: A1,
+function Wje() {
+ let e = (0, F.useSyncExternalStore)(Vje, () => N1);
+ return M1 ? /* @__PURE__ */ (0, I.jsx)(Gje, {
+ host: M1,
props: e.props,
epoch: e.epoch
}) : null;
}
-function Hje({ host: e, props: t, epoch: n }) {
+function Gje({ host: e, props: t, epoch: n }) {
let r = (0, F.useSyncExternalStore)(e.store.subscribe, e.store.version);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsx)("div", { "data-sidebar-head": "" }),
- /* @__PURE__ */ (0, I.jsx)(Uje, {
+ /* @__PURE__ */ (0, I.jsx)(Kje, {
host: e,
epoch: n,
version: r
}),
- t.content ? /* @__PURE__ */ (0, I.jsx)(Gje, {
+ t.content ? /* @__PURE__ */ (0, I.jsx)(Jje, {
host: e,
content: t.content,
filters: t.filters,
@@ -72086,8 +72099,8 @@ function Hje({ host: e, props: t, epoch: n }) {
}) : null
] });
}
-function Uje({ host: e, epoch: t, version: n }) {
- let r = f1(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = mL(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || O1 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
+function Kje({ host: e, epoch: t, version: n }) {
+ let r = m1(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = gL(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || A1 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
(0, F.useEffect)(() => {
let t = e.scroll, n = t.parentElement, r = t.querySelector(":scope > [data-sidebar-head]"), i = new ResizeObserver(() => d());
[
@@ -72106,7 +72119,7 @@ function Uje({ host: e, epoch: t, version: n }) {
i.disconnect(), cancelAnimationFrame(a), document.removeEventListener("board:sidebar", o);
};
}, [e, d]);
- let f = Ije(c, i, r, () => requestAnimationFrame(d)), p = e.scroll.parentElement;
+ let f = zje(c, i, r, () => requestAnimationFrame(d)), p = e.scroll.parentElement;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-sidebar-nav": "",
ref: c,
@@ -72142,8 +72155,8 @@ function Uje({ host: e, epoch: t, version: n }) {
alt: "",
decoding: "async",
draggable: !1
- }) : /* @__PURE__ */ (0, I.jsx)(BF, { name: r }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
- }, t || O1);
+ }) : /* @__PURE__ */ (0, I.jsx)(HF, { name: r }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
+ }, t || A1);
}),
f.hint ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-sidebar-drop-line": "",
@@ -72164,8 +72177,8 @@ function Uje({ host: e, epoch: t, version: n }) {
ref: l
}), p) : null] });
}
-var P1 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
-function Wje(e) {
+var I1 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
+function qje(e) {
if (!e) return null;
let t = /* @__PURE__ */ new Map(), n = [
["loc", e.locations],
@@ -72179,7 +72192,7 @@ function Wje(e) {
for (let [e, r] of n) for (let n of r) t.set(`${e}\n${n.value}`, n.n ?? 0);
return t;
}
-function Gje({ host: e, content: t, filters: n, latest: r }) {
+function Jje({ host: e, content: t, filters: n, latest: r }) {
let i = t.kind === "catalog" ? t.key : `follow:${t.selected.join(",")}:${t.tags.map((e) => e.value).join(",")}:${(t.providers || []).map((e) => e.value).join(",")}:${n.provider ?? ""}:${+!!t.duration}:${n.dur_min ?? ""}:${n.dur_max ?? ""}`;
(0, F.useLayoutEffect)(() => {
t.kind === "catalog" && ec(e.scroll, "drawer");
@@ -72188,8 +72201,8 @@ function Gje({ host: e, content: t, filters: n, latest: r }) {
i,
t.kind
]);
- let a = t.kind === "catalog" ? Kje(e, t.facets, n, r, i) : qje(e, t, n), o = 0;
- return a.map((e) => e && /* @__PURE__ */ (0, I.jsx)(Jje, {
+ let a = t.kind === "catalog" ? Yje(e, t.facets, n, r, i) : Xje(e, t, n), o = 0;
+ return a.map((e) => e && /* @__PURE__ */ (0, I.jsx)(Zje, {
title: e.title,
kind: e.kind,
active: e.active,
@@ -72198,11 +72211,11 @@ function Gje({ host: e, content: t, filters: n, latest: r }) {
children: e.body
}, e.title));
}
-function Kje(e, t, n, r, i) {
- let a = Wje(r), o = (t, r, i) => {
+function Yje(e, t, n, r, i) {
+ let a = qje(r), o = (t, r, i) => {
if (!t.length) return null;
- let o = P1(n, r);
- return /* @__PURE__ */ (0, I.jsx)(L1, {
+ let o = I1(n, r);
+ return /* @__PURE__ */ (0, I.jsx)(z1, {
rows: t,
filterKey: r,
multi: i,
@@ -72212,7 +72225,7 @@ function Kje(e, t, n, r, i) {
});
}, s = (t, s, c, l, u, d) => {
if (!c.length) return null;
- let f = P1(n, l), p = c.some((e) => f.includes(e.value));
+ let f = I1(n, l), p = c.some((e) => f.includes(e.value));
if (!d) return {
title: t,
kind: s,
@@ -72224,12 +72237,12 @@ function Kje(e, t, n, r, i) {
title: t,
kind: s,
active: p,
- body: /* @__PURE__ */ (0, I.jsx)(Xje, {
+ body: /* @__PURE__ */ (0, I.jsx)($je, {
epoch: i,
title: t,
rows: c,
latest: m ?? null,
- limit: Lje[d],
+ limit: Bje[d],
filterKey: l,
selected: f,
counts: a,
@@ -72244,7 +72257,7 @@ function Kje(e, t, n, r, i) {
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, I.jsx)(B1, {
+ body: /* @__PURE__ */ (0, I.jsx)(H1, {
host: e,
filters: n
})
@@ -72259,7 +72272,7 @@ function Kje(e, t, n, r, i) {
title: "关注标签",
kind: "online",
active: !1,
- body: /* @__PURE__ */ (0, I.jsx)(R1, {
+ body: /* @__PURE__ */ (0, I.jsx)(B1, {
rows: t.followTags,
host: e,
selected: null,
@@ -72268,14 +72281,14 @@ function Kje(e, t, n, r, i) {
} : null
];
}
-function qje(e, t, n) {
- let r = t.providers || [], i = P1(n, "provider"), a = new Set(t.selected);
+function Xje(e, t, n) {
+ let r = t.providers || [], i = I1(n, "provider"), a = new Set(t.selected);
return [
r.length ? {
title: "来源",
kind: "src",
active: r.some((e) => i.includes(e.value)),
- body: /* @__PURE__ */ (0, I.jsx)(L1, {
+ body: /* @__PURE__ */ (0, I.jsx)(z1, {
rows: r,
filterKey: "provider",
multi: !1,
@@ -72289,7 +72302,7 @@ function qje(e, t, n) {
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, I.jsx)(B1, {
+ body: /* @__PURE__ */ (0, I.jsx)(H1, {
host: e,
filters: n,
commit: e.setFollowDuration
@@ -72299,7 +72312,7 @@ function qje(e, t, n) {
title: "内容标签",
kind: "online",
active: t.tags.some((e) => a.has(e.value)),
- body: /* @__PURE__ */ (0, I.jsx)(R1, {
+ body: /* @__PURE__ */ (0, I.jsx)(B1, {
rows: t.tags,
host: e,
selected: a,
@@ -72308,19 +72321,19 @@ function qje(e, t, n) {
} : null
];
}
-function F1(e, t) {
+function L1(e, t) {
let n = null;
try {
n = sessionStorage.getItem(`peach.sidebar.group.${e}`);
} catch {}
return n === null ? t : n === "open";
}
-function Jje({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
- let o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(() => F1(e, n)), u = (0, F.useRef)(!1);
+function Zje({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
+ let o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(() => L1(e, n)), u = (0, F.useRef)(!1);
(0, F.useLayoutEffect)(() => {
let t = o.current, r = s.current;
if (!t || !r) return;
- let i = u.current ? F1(e, n) : c;
+ let i = u.current ? L1(e, n) : c;
u.current = !0, t.open !== i && (t.open = i, r.inert = !i, r.style.height = "", r.classList.contains("ui-fcollapse") && r.classList.toggle("ui-fcollapse-settled", i), l(i));
}, [i]);
let d = (t) => {
@@ -72341,7 +72354,7 @@ function Jje({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
"aria-expanded": c,
"aria-controls": f,
onClick: d,
- children: [/* @__PURE__ */ (0, I.jsx)(BF, { name: "chevron-right" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, I.jsx)(HF, { name: "chevron-right" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
}), /* @__PURE__ */ (0, I.jsx)("div", {
ref: s,
"data-sidebar-collapse": "",
@@ -72352,7 +72365,7 @@ function Jje({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
children: /* @__PURE__ */ (0, I.jsx)("div", {
"data-sidebar-body": "",
id: `sidebar-group-${encodeURIComponent(e)}`,
- children: /* @__PURE__ */ (0, I.jsx)(I1.Provider, {
+ children: /* @__PURE__ */ (0, I.jsx)(R1.Provider, {
value: d,
children: a
})
@@ -72361,15 +72374,15 @@ function Jje({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
})]
});
}
-var I1 = (0, F.createContext)(() => {});
-function Yje({ dot: e }) {
- return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, I.jsx)(BF, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, I.jsx)("img", {
+var R1 = (0, F.createContext)(() => {});
+function Qje({ dot: e }) {
+ return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, I.jsx)(HF, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, I.jsx)("img", {
"data-sidebar-source-icon": "",
src: e.src,
alt: ""
}) : /* @__PURE__ */ (0, I.jsx)("i", { "data-sidebar-cost": e.cost }) : null;
}
-function L1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a, onToggle: o = a.toggleChip }) {
+function z1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a, onToggle: o = a.toggleChip }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-sidebar-chips": "",
children: e.map((e) => {
@@ -72386,7 +72399,7 @@ function L1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a,
title: e.offline || e.label,
onClick: () => o(t, e.value, n),
children: [
- /* @__PURE__ */ (0, I.jsx)(Yje, { dot: e.dot }),
+ /* @__PURE__ */ (0, I.jsx)(Qje, { dot: e.dot }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-sidebar-chip-label": "",
children: e.label
@@ -72401,8 +72414,8 @@ function L1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a,
})
});
}
-function Xje({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
- let u = (0, F.useContext)(I1), [d, f] = (0, F.useState)(null), [p, m] = (0, F.useState)(e);
+function $je({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
+ let u = (0, F.useContext)(R1), [d, f] = (0, F.useState)(null), [p, m] = (0, F.useState)(e);
p !== e && (m(e), f(null));
let h = (0, F.useRef)(null), g = (0, F.useRef)(null), _ = !!d?.all, v = d ? d.rows : n;
return (0, F.useLayoutEffect)(() => {
@@ -72417,7 +72430,7 @@ function Xje({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
e.body.classList.add("ui-fcollapse"), Wo(e.body, e.before, () => !!t?.open && !e.body.inert);
}
t(), requestAnimationFrame(t);
- }, [d, _]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(L1, {
+ }, [d, _]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(z1, {
rows: _ ? v : v.slice(0, i),
filterKey: a,
multi: !1,
@@ -72442,10 +72455,10 @@ function Xje({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
all: !_
}), _ && u());
},
- children: /* @__PURE__ */ (0, I.jsx)(BF, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, I.jsx)(HF, { name: "chevron-down" })
}) : null] });
}
-function R1({ rows: e, host: t, selected: n, badges: r }) {
+function B1({ rows: e, host: t, selected: n, badges: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-sidebar-chips": "",
children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)("button", {
@@ -72467,10 +72480,10 @@ function R1({ rows: e, host: t, selected: n, badges: r }) {
}, e.value))
});
}
-var z1 = (e, t) => e ? Math.min(k1, Number(e) / 60) : t;
-function B1({ host: e, filters: t, commit: n = e.setDuration }) {
- let r = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [i, a] = (0, F.useState)(r), [o, s] = (0, F.useState)(() => [z1(t.dur_min, 0), z1(t.dur_max, k1)]), [c, l] = (0, F.useState)("max");
- i !== r && (a(r), s([z1(t.dur_min, 0), z1(t.dur_max, k1)]));
+var V1 = (e, t) => e ? Math.min(j1, Number(e) / 60) : t;
+function H1({ host: e, filters: t, commit: n = e.setDuration }) {
+ let r = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [i, a] = (0, F.useState)(r), [o, s] = (0, F.useState)(() => [V1(t.dur_min, 0), V1(t.dur_max, j1)]), [c, l] = (0, F.useState)("max");
+ i !== r && (a(r), s([V1(t.dur_min, 0), V1(t.dur_max, j1)]));
let [u, d] = o, f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = (0, F.useRef)(null), h = (0, F.useRef)(o);
h.current = o;
let g = (e, t) => {
@@ -72483,11 +72496,11 @@ function B1({ host: e, filters: t, commit: n = e.setDuration }) {
}, [n]), (0, F.useLayoutEffect)(() => {
let e = f.current;
if (!e) return;
- e.style.setProperty("--lo", `${u / k1 * 100}%`), e.style.setProperty("--hi", `${d / k1 * 100}%`);
+ e.style.setProperty("--lo", `${u / j1 * 100}%`), e.style.setProperty("--hi", `${d / j1 * 100}%`);
let t = e.getBoundingClientRect();
e.querySelectorAll("[data-sidebar-range-tip]").forEach((e) => {
let n = e.dataset.rangeEnd === "max" ? d : u;
- e.style.left = `${n / k1 * 100}%`, e.style.setProperty("--range-tip-shift", "0px");
+ e.style.left = `${n / j1 * 100}%`, e.style.setProperty("--range-tip-shift", "0px");
let r = e.getBoundingClientRect(), i = r.right > t.right ? t.right - r.right : r.left < t.left ? t.left - r.left : 0;
i && e.style.setProperty("--range-tip-shift", `${Math.round(i)}px`);
});
@@ -72497,7 +72510,7 @@ function B1({ host: e, filters: t, commit: n = e.setDuration }) {
"data-range-end": e,
"data-range-active": c === e ? "" : void 0,
"aria-hidden": "true",
- children: e === "max" && t >= k1 ? "不限" : `${t} 分钟`
+ children: e === "max" && t >= j1 ? "不限" : `${t} 分钟`
});
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-sidebar-duration": "",
@@ -72512,7 +72525,7 @@ function B1({ host: e, filters: t, commit: n = e.setDuration }) {
id: "durMin",
type: "range",
min: "0",
- max: k1,
+ max: j1,
step: "5",
value: u,
"aria-label": "最短时长(分钟)",
@@ -72523,7 +72536,7 @@ function B1({ host: e, filters: t, commit: n = e.setDuration }) {
id: "durMax",
type: "range",
min: "0",
- max: k1,
+ max: j1,
step: "5",
value: d,
"aria-label": "最长时长(分钟)",
@@ -72537,7 +72550,7 @@ function B1({ host: e, filters: t, commit: n = e.setDuration }) {
});
}
// src/diagnostics-skeleton.ts
-function V1() {
+function U1() {
let e = (e) => Os({
label: e,
variant: "secondary",
@@ -72551,11 +72564,11 @@ function V1() {
</div></div>`;
}
// src/react/settings/library-policy-copy.ts
-var H1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", Zje = [
+var W1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", eMe = [
"自动补全",
"仅使用本地资料",
"自定义"
-], Qje = [
+], tMe = [
[
"读本地 NFO 和图片",
"✓",
@@ -72586,7 +72599,7 @@ var H1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
"—",
"可选"
]
-], $je = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", U1 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", W1 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", G1 = "只填域名,留空用默认地址", eMe = [
+], nMe = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", G1 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", K1 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", q1 = "只填域名,留空用默认地址", rMe = [
{
provider: "coomer",
label: "Coomer",
@@ -72676,8 +72689,8 @@ var H1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
label: "SubscribeStar",
requirement: "none"
}
-], K1 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", tMe = "peach.configuration.shape.v1";
-function q1() {
+], J1 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", iMe = "peach.configuration.shape.v1";
+function Y1() {
try {
let e = JSON.parse(localStorage.getItem("peach.configuration.shape.v1") || "{}");
return e && typeof e == "object" ? e : {};
@@ -72685,31 +72698,31 @@ function q1() {
return {};
}
}
-function nMe(e, t) {
+function aMe(e, t) {
try {
- let n = q1();
+ let n = Y1();
if (JSON.stringify(n[e]) === JSON.stringify(t)) return;
- localStorage.setItem(tMe, JSON.stringify({
+ localStorage.setItem(iMe, JSON.stringify({
...n,
[e]: t
}));
} catch {}
}
-var J1 = (e) => q1()[e], Y1 = (e) => e === !0, X1 = (e, t) => Number.isInteger(e) && e > 0 ? Math.min(e, t) : 0, Z1 = (e, t, n) => Array.isArray(e) ? e.slice(0, t).map(n) : [], Q1 = "disabled data-skeleton-action", $1 = (e = "60%") => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, e0 = (e = "100%") => `<span class="skeleton ui-configuration-skeleton-input" style="width:${e}"></span>`, t0 = (e, t) => `<span class="skeleton shrink-0" style="width:${e};height:${t}"></span>`, n0 = (e = "3em") => t0(e, "24px"), r0 = () => t0("var(--icon-inline)", "var(--icon-inline)"), i0 = (e, t = "primary", n = "medium") => Os({
+var X1 = (e) => Y1()[e], Z1 = (e) => e === !0, Q1 = (e, t) => Number.isInteger(e) && e > 0 ? Math.min(e, t) : 0, $1 = (e, t, n) => Array.isArray(e) ? e.slice(0, t).map(n) : [], e0 = "disabled data-skeleton-action", t0 = (e = "60%") => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, n0 = (e = "100%") => `<span class="skeleton ui-configuration-skeleton-input" style="width:${e}"></span>`, r0 = (e, t) => `<span class="skeleton shrink-0" style="width:${e};height:${t}"></span>`, i0 = (e = "3em") => r0(e, "24px"), a0 = () => r0("var(--icon-inline)", "var(--icon-inline)"), o0 = (e, t = "primary", n = "medium") => Os({
label: e,
variant: t,
size: n,
- attrs: Q1
-}), a0 = (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>`, o0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, rMe = (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">${r0()}${e}</span>` : e}</p>`;
+ attrs: e0
+}), s0 = (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>`, c0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, oMe = (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">${a0()}${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;
-}, s0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${rMe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? a0(n, i) : ""}</div></section>`, c0 = (e, t, n, r = "") => {
+}, l0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${oMe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? s0(n, i) : ""}</div></section>`, u0 = (e, t, n, r = "") => {
let i = `<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>`;
return `<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">${r ? `<div class="flex min-w-0 items-center gap-3">${r}${i}</div>` : i}${n}</div>`;
-}, l0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => c0(e, t, `<span class="skeleton ${n}"></span>`), u0 = (e, t = "", n = "4em") => c0(e, t, $1(n)), d0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, f0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, p0 = (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>${e0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, m0 = (e) => `<div class="flex flex-col gap-1">${f0(e)}${As($1("8em"))}</div>`, h0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${t0("16px", "16px")}${e}</span>`, g0 = (e) => `<span class="inline-flex items-center gap-1">${r0()}${e}</span>`, _0 = (e, t = !1) => `<span class="flex w-fit items-center gap-1 text-body-2-medium text-text-secondary">${Ts("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, iMe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), v0 = (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">${iMe.has(e) ? $1("100%") + $1("80%") + $1("6em") : $1("6em")}</dd></div>`).join("")}</dl>`, aMe = eMe;
-function oMe(e = J1("credentials")) {
- let t = new Set(Z1(e?.done, 64, String));
- return aMe.map((e) => {
+}, d0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => u0(e, t, `<span class="skeleton ${n}"></span>`), f0 = (e, t = "", n = "4em") => u0(e, t, t0(n)), p0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, m0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, h0 = (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>${n0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, g0 = (e) => `<div class="flex flex-col gap-1">${m0(e)}${As(t0("8em"))}</div>`, _0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${r0("16px", "16px")}${e}</span>`, v0 = (e) => `<span class="inline-flex items-center gap-1">${a0()}${e}</span>`, y0 = (e, t = !1) => `<span class="flex w-fit items-center gap-1 text-body-2-medium text-text-secondary">${Ts("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, sMe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), b0 = (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">${sMe.has(e) ? t0("100%") + t0("80%") + t0("6em") : t0("6em")}</dd></div>`).join("")}</dl>`, cMe = rMe;
+function lMe(e = X1("credentials")) {
+ let t = new Set($1(e?.done, 64, String));
+ return cMe.map((e) => {
let n = t.has(e.provider);
return {
...e,
@@ -72718,141 +72731,141 @@ function oMe(e = J1("credentials")) {
};
});
}
-function sMe(e) {
- let t = e.fields ?? [], n = e.requirement !== "none" && e.requirement !== "blocked", r = n0() + (n && !e.done ? t.map(() => n0("4.5em")).join("") : ""), i = `<span class="flex min-w-0 flex-wrap items-center gap-2">${t0("14px", "14px")}<b class="min-w-0 text-body-medium wrap-anywhere text-text-primary">${z(e.label)}</b>${r}</span>`;
- if (!n) return `<div class="flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}${e.requirement === "blocked" && e.why ? d0(z(e.why)) : ""}</div>`;
- let a = e.open ? "<div class=\"flex flex-col gap-2 pt-3\"><div class=\"flex flex-col gap-3\">" + d0(`${z(e.why ?? "")}${e.where ? " 获取凭据" : ""}`) + (e.howto ? d0(z(e.howto)) : "") + `<div class="flex w-full flex-col gap-3">${t.map((e) => p0(z(e))).join("")}</div><div class="flex flex-wrap items-center gap-2">${i0("保存配置")}</div>${_0("凭据文件")}</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>${_0(e.done ? "修改凭据" : "填写凭据", e.open)}${a}</div></div>`;
+function uMe(e) {
+ let t = e.fields ?? [], n = e.requirement !== "none" && e.requirement !== "blocked", r = i0() + (n && !e.done ? t.map(() => i0("4.5em")).join("") : ""), i = `<span class="flex min-w-0 flex-wrap items-center gap-2">${r0("14px", "14px")}<b class="min-w-0 text-body-medium wrap-anywhere text-text-primary">${z(e.label)}</b>${r}</span>`;
+ if (!n) return `<div class="flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}${e.requirement === "blocked" && e.why ? p0(z(e.why)) : ""}</div>`;
+ let a = e.open ? "<div class=\"flex flex-col gap-2 pt-3\"><div class=\"flex flex-col gap-3\">" + p0(`${z(e.why ?? "")}${e.where ? " 获取凭据" : ""}`) + (e.howto ? p0(z(e.howto)) : "") + `<div class="flex w-full flex-col gap-3">${t.map((e) => h0(z(e))).join("")}</div><div class="flex flex-wrap items-center gap-2">${o0("保存配置")}</div>${y0("凭据文件")}</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>${y0(e.done ? "修改凭据" : "填写凭据", e.open)}${a}</div></div>`;
}
-function y0() {
- let e = oMe(), t = e.filter((e) => e.requirement === "required" && !e.done).length;
- return s0("来源凭据", o0(`<div class="flex flex-col gap-4">${[
+function x0() {
+ let e = lMe(), t = e.filter((e) => e.requirement === "required" && !e.done).length;
+ return l0("来源凭据", c0(`<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(sMe).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? $1("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(uMe).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? t0("5em") : "" });
}
-function b0() {
- let e = Z1(J1("indexers")?.open, 20, Y1).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">${Ts("chevron-right", `size-(--icon-inline) shrink-0 text-text-secondary${e ? " rotate-90" : ""}`)}${$1("6em")}${$1("12em")}</span>` + (e ? `<div class="flex flex-col gap-2 pt-3"><div class="flex min-w-0 flex-col gap-4">${p0("名称")}${p0("Torznab 地址")}${p0("API key")}<div class="flex flex-wrap items-center gap-x-6 gap-y-2">${h0("启用")}${i0("移除", "secondary", "small")}</div></div></div>` : "") + "</div>").join("");
- return s0("资源搜索", o0(`<div class="flex min-w-0 flex-col gap-4">${_0("索引器连接帮助")}${e}</div>`), i0("添加索引器", "secondary") + i0("保存配置"));
+function S0() {
+ let e = $1(X1("indexers")?.open, 20, Z1).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">${Ts("chevron-right", `size-(--icon-inline) shrink-0 text-text-secondary${e ? " rotate-90" : ""}`)}${t0("6em")}${t0("12em")}</span>` + (e ? `<div class="flex flex-col gap-2 pt-3"><div class="flex min-w-0 flex-col gap-4">${h0("名称")}${h0("Torznab 地址")}${h0("API key")}<div class="flex flex-wrap items-center gap-x-6 gap-y-2">${_0("启用")}${o0("移除", "secondary", "small")}</div></div></div>` : "") + "</div>").join("");
+ return l0("资源搜索", c0(`<div class="flex min-w-0 flex-col gap-4">${y0("索引器连接帮助")}${e}</div>`), o0("添加索引器", "secondary") + o0("保存配置"));
}
-function x0() {
- let e = J1("javBrowser"), t = Y1(e?.enabled);
- return s0("浏览器添加 JAV", o0(`<div class="flex min-w-0 flex-col gap-4">${`<div class="min-w-0 bg-background-primary-default rounded-2xl shadow-card p-5 border border-border-button-default flex flex-col gap-3"><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-medium text-text-primary">Peach 用户脚本</span>${$1("4em")}</div><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-regular text-text-secondary">浏览器添加</span>${n0()}</div><p class="text-caption-1-regular text-text-secondary">${$1("70%")}</p><div class="flex flex-wrap items-center gap-2">${i0("重新检测", "secondary")}</div></div>`}${m0("浏览器添加的下载渠道")}${Y1(e?.ready) ? "" : d0("请在媒体库中添加支持云下载的网盘,并配置账号与目标目录。")}${p0("Peach 地址")}</div>`), (t ? i0("关闭浏览器添加", "secondary") : "") + i0(t ? "更新渠道与令牌" : "启用并生成令牌"));
-}
-var S0 = (e, t) => `<div class="flex min-w-0 flex-col gap-3">${f0(e)}${As($1("6em"))}` + (t ? `<div class="flex flex-wrap gap-3"><div class="min-w-40 flex-1">${p0(`${e}地址`)}</div><div class="w-full sm:w-28">${p0(`${e}端口`)}</div></div>${_0("代理认证")}` : "") + "</div>";
function C0() {
- let e = J1("cloudProxy"), t = Z1(e?.accounts, 12, (e) => Array.isArray(e) ? [Y1(e[0]), Y1(e[1])] : [!1, !1]), n = X1(e?.unlinked, 12), r = t.length || n ? Array.from({ length: n }, () => `<div class="flex min-w-0 flex-col gap-1">${f0(g0($1("6em")))}${d0($1("9em"))}</div>`).join("") + t.map(([e, t]) => `<div class="flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4">${f0(g0($1("8em")))}${d0($1("50%"))}${S0("数据代理", e)}${S0("API 代理", t)}<div class="flex justify-end">${i0("保存配置")}</div></div>`).join("") : d0($1("60%"));
- return s0("CloudDrive 代理", o0(`${d0(K1)}<div class="flex min-w-0 flex-col gap-4">${r}</div>`), i0("重新读取", "secondary"));
+ let e = X1("javBrowser"), t = Z1(e?.enabled);
+ return l0("浏览器添加 JAV", c0(`<div class="flex min-w-0 flex-col gap-4">${`<div class="min-w-0 bg-background-primary-default rounded-2xl shadow-card p-5 border border-border-button-default flex flex-col gap-3"><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-medium text-text-primary">Peach 用户脚本</span>${t0("4em")}</div><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-regular text-text-secondary">浏览器添加</span>${i0()}</div><p class="text-caption-1-regular text-text-secondary">${t0("70%")}</p><div class="flex flex-wrap items-center gap-2">${o0("重新检测", "secondary")}</div></div>`}${g0("浏览器添加的下载渠道")}${Z1(e?.ready) ? "" : p0("请在媒体库中添加支持云下载的网盘,并配置账号与目标目录。")}${h0("Peach 地址")}</div>`), (t ? o0("关闭浏览器添加", "secondary") : "") + o0(t ? "更新渠道与令牌" : "启用并生成令牌"));
}
-var w0 = (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>`, cMe = (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">${e0()}</span>${Os({
+var w0 = (e, t) => `<div class="flex min-w-0 flex-col gap-3">${m0(e)}${As(t0("6em"))}` + (t ? `<div class="flex flex-wrap gap-3"><div class="min-w-40 flex-1">${h0(`${e}地址`)}</div><div class="w-full sm:w-28">${h0(`${e}端口`)}</div></div>${y0("代理认证")}` : "") + "</div>";
+function T0() {
+ let e = X1("cloudProxy"), t = $1(e?.accounts, 12, (e) => Array.isArray(e) ? [Z1(e[0]), Z1(e[1])] : [!1, !1]), n = Q1(e?.unlinked, 12), r = t.length || n ? Array.from({ length: n }, () => `<div class="flex min-w-0 flex-col gap-1">${m0(v0(t0("6em")))}${p0(t0("9em"))}</div>`).join("") + t.map(([e, t]) => `<div class="flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4">${m0(v0(t0("8em")))}${p0(t0("50%"))}${w0("数据代理", e)}${w0("API 代理", t)}<div class="flex justify-end">${o0("保存配置")}</div></div>`).join("") : p0(t0("60%"));
+ return l0("CloudDrive 代理", c0(`${p0(J1)}<div class="flex min-w-0 flex-col gap-4">${r}</div>`), o0("重新读取", "secondary"));
+}
+var E0 = (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>`, dMe = (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">${n0()}</span>${Os({
glyph: "folder-search",
variant: "secondary",
- attrs: Q1
+ attrs: e0
})}</div>
- <div class="flex flex-wrap items-end gap-2"><div class="flex w-full flex-wrap items-start gap-2">${w0("来源", As($1("6em")), "w-full @lg:w-60")}${w0("读取策略", As($1("4em")), "w-full @lg:w-32")}${e > 1 ? w0("移到媒体库", As($1("4em")), "w-full @lg:w-48") : ""}</div></div>
- </div>`, lMe = (e, t) => `<div data-library-block class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col p-2">
+ <div class="flex flex-wrap items-end gap-2"><div class="flex w-full flex-wrap items-start gap-2">${E0("来源", As(t0("6em")), "w-full @lg:w-60")}${E0("读取策略", As(t0("4em")), "w-full @lg:w-32")}${e > 1 ? E0("移到媒体库", As(t0("4em")), "w-full @lg:w-48") : ""}</div></div>
+ </div>`, fMe = (e, t) => `<div data-library-block class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col p-2">
<div data-library-head>${Os({
label: "自动识别",
variant: "secondary",
- attrs: Q1
-})}${e0()}<span class="skeleton ui-configuration-skeleton-input" style="width:136px"></span>${As($1("4em"), { prefix: "处理方式" })}</div>
- <div data-library-folders>${cMe(t).repeat(e)}<div class="flex">${Os({
+ attrs: e0
+})}${n0()}<span class="skeleton ui-configuration-skeleton-input" style="width:136px"></span>${As(t0("4em"), { prefix: "处理方式" })}</div>
+ <div data-library-folders>${dMe(t).repeat(e)}<div class="flex">${Os({
label: "添加文件夹",
variant: "secondary",
- attrs: Q1
-})}</div></div></div>`, uMe = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${H1}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, dMe = "<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 fMe(e = J1("media")) {
- let t = Z1(e?.folders, 12, (e) => X1(e, 50)).filter(Boolean);
+ attrs: e0
+})}</div></div></div>`, pMe = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${W1}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, mMe = "<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 hMe(e = X1("media")) {
+ let t = $1(e?.folders, 12, (e) => Q1(e, 50)).filter(Boolean);
return t.length ? {
folders: t,
- cloud: Y1(e?.cloud)
+ cloud: Z1(e?.cloud)
} : {
folders: [1],
cloud: !1
};
}
-function pMe() {
- let e = J1("discovery"), t = Y1(e?.enabled), n = t && Y1(e?.cloud), r = n && Y1(e?.webhook), i = `<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${e0()}</span>${As($1("4em"), { prefix: "对应目录" })}${Os({
+function gMe() {
+ let e = X1("discovery"), t = Z1(e?.enabled), n = t && Z1(e?.cloud), r = n && Z1(e?.webhook), i = `<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${n0()}</span>${As(t0("4em"), { prefix: "对应目录" })}${Os({
glyph: "trash",
variant: "secondary",
- attrs: Q1
+ attrs: e0
})}</div>`;
- return s0("自动发现新文件", o0(`<div class="flex flex-wrap items-center gap-2"><span class="text-body-regular text-text-secondary">本机监视</span>${n0()}</div>`) + l0("发现新文件后自动入库", t ? $1("10em") : "") + l0("监视本机文件夹", t && Y1(e?.watchLocal) ? $1("12em") : "") + l0("接收 CloudDrive2 通知", "网盘目录有变化时由 CloudDrive2 推送过来。") + (n ? c0("Webhook 配置", $1("20em"), "") : "") + (r ? o0(_0("查看配置"), !0) : "") + (n ? o0(`<div class="flex flex-col gap-3">${f0("云端路径前缀")}<div class="flex flex-col gap-3">${i.repeat(X1(e?.prefixes, 20))}</div><div>${i0("添加前缀", "secondary")}</div></div>`, !0) : ""), (r ? i0("更换密钥", "secondary") : "") + i0("保存配置"));
-}
-var mMe = () => {
- let e = fMe();
- return s0("媒体库与目录", o0(`${uMe}<div class="flex flex-col gap-4">${e.folders.map((t) => lMe(t, e.folders.length)).join("")}</div>
- <div class="self-start">${i0("添加媒体库", "secondary")}</div>
- <p class="text-body-2-regular text-text-secondary">${U1}</p>
- ${e.cloud ? dMe : ""}<span class="text-body-medium text-text-primary">${$1("15em")}</span>`), i0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? C0() : "") + pMe() + s0("番号识别规则", o0(`${$1("90%")}${$1("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), i0("保存配置")) + s0("视频预览", l0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + l0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + l0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));
-}, hMe = () => `<div>${i0("采集来源与登录状态", "secondary")}</div>` + y0() + s0("关注采集", c0("自动检查更新", "", "<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>") + u0("订阅源拉取") + l0("首次采集范围", "新关注的来源第一次回看多久以前的内容。", "ui-configuration-skeleton-select") + u0("头像刷新", "重新获取关注创作者的头像。") + u0("favicon 刷新", "重新获取来源站点的图标。")) + b0() + s0("作品资料站点", o0(`<p class="text-body-2-regular text-text-secondary">${W1}</p>${p0(g0("JavDB 地址"), G1)}${p0(g0("MISSAV 地址"), G1)}`), i0("保存配置")), gMe = () => {
- let e = J1("downloads"), t = Y1(e?.pikpak), n = Y1(e?.pikpakRoots) ? m0(g0("PikPak 根目录对应的媒体目录")) : `<div class="flex flex-col gap-1">${f0(g0("PikPak 根目录对应的媒体目录"))}${d0("先在「媒体库与入库」添加 PikPak 挂载文件夹。")}</div>`, r = Y1(e?.cloud) ? s0("云下载", o0(p0("CloudDrive2 地址") + p0("CloudDrive2 API 令牌", "需要离线任务权限。") + (Y1(e?.has115) ? p0(g0("115 目标目录"), "应位于自动入库的云端路径前缀内。") : "") + (t ? p0(g0("PikPak 目标目录"), "目录要已经存在。") + n : "") + p0("等待上限(小时)", $1("14em"))), i0("检查连接", "secondary") + i0("保存配置")) : "", i = Y1(e?.pikpakLoggedIn);
- return r + (t ? s0("PikPak 账号", i ? v0(["账号", $1("4em")]) : o0(p0("账号") + p0("密码") + h0("保存密码,登录过期时自动重新登录")), i ? i0("登出", "secondary") : (Y1(e?.browserLogin) ? i0("用浏览器登录", "secondary") : "") + i0("登录"), {
- aside: n0(),
+ return l0("自动发现新文件", c0(`<div class="flex flex-wrap items-center gap-2"><span class="text-body-regular text-text-secondary">本机监视</span>${i0()}</div>`) + d0("发现新文件后自动入库", t ? t0("10em") : "") + d0("监视本机文件夹", t && Z1(e?.watchLocal) ? t0("12em") : "") + d0("接收 CloudDrive2 通知", "网盘目录有变化时由 CloudDrive2 推送过来。") + (n ? u0("Webhook 配置", t0("20em"), "") : "") + (r ? c0(y0("查看配置"), !0) : "") + (n ? c0(`<div class="flex flex-col gap-3">${m0("云端路径前缀")}<div class="flex flex-col gap-3">${i.repeat(Q1(e?.prefixes, 20))}</div><div>${o0("添加前缀", "secondary")}</div></div>`, !0) : ""), (r ? o0("更换密钥", "secondary") : "") + o0("保存配置"));
+}
+var _Me = () => {
+ let e = hMe();
+ return l0("媒体库与目录", c0(`${pMe}<div class="flex flex-col gap-4">${e.folders.map((t) => fMe(t, e.folders.length)).join("")}</div>
+ <div class="self-start">${o0("添加媒体库", "secondary")}</div>
+ <p class="text-body-2-regular text-text-secondary">${G1}</p>
+ ${e.cloud ? mMe : ""}<span class="text-body-medium text-text-primary">${t0("15em")}</span>`), o0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? T0() : "") + gMe() + l0("番号识别规则", c0(`${t0("90%")}${t0("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), o0("保存配置")) + l0("视频预览", d0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + d0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + d0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));
+}, vMe = () => `<div>${o0("采集来源与登录状态", "secondary")}</div>` + x0() + l0("关注采集", u0("自动检查更新", "", "<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>") + f0("订阅源拉取") + d0("首次采集范围", "新关注的来源第一次回看多久以前的内容。", "ui-configuration-skeleton-select") + f0("头像刷新", "重新获取关注创作者的头像。") + f0("favicon 刷新", "重新获取来源站点的图标。")) + S0() + l0("作品资料站点", c0(`<p class="text-body-2-regular text-text-secondary">${K1}</p>${h0(v0("JavDB 地址"), q1)}${h0(v0("MISSAV 地址"), q1)}`), o0("保存配置")), yMe = () => {
+ let e = X1("downloads"), t = Z1(e?.pikpak), n = Z1(e?.pikpakRoots) ? g0(v0("PikPak 根目录对应的媒体目录")) : `<div class="flex flex-col gap-1">${m0(v0("PikPak 根目录对应的媒体目录"))}${p0("先在「媒体库与入库」添加 PikPak 挂载文件夹。")}</div>`, r = Z1(e?.cloud) ? l0("云下载", c0(h0("CloudDrive2 地址") + h0("CloudDrive2 API 令牌", "需要离线任务权限。") + (Z1(e?.has115) ? h0(v0("115 目标目录"), "应位于自动入库的云端路径前缀内。") : "") + (t ? h0(v0("PikPak 目标目录"), "目录要已经存在。") + n : "") + h0("等待上限(小时)", t0("14em"))), o0("检查连接", "secondary") + o0("保存配置")) : "", i = Z1(e?.pikpakLoggedIn);
+ return r + (t ? l0("PikPak 账号", i ? b0(["账号", t0("4em")]) : c0(h0("账号") + h0("密码") + _0("保存密码,登录过期时自动重新登录")), i ? o0("登出", "secondary") : (Z1(e?.browserLogin) ? o0("用浏览器登录", "secondary") : "") + o0("登录"), {
+ aside: i0(),
mark: !0
- }) : "") + x0();
-}, T0 = {
+ }) : "") + C0();
+}, D0 = {
legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
-}, E0 = {
+}, O0 = {
quick: "临时预览用,地址随机,重启后会变。启动前要先设置访问密码。",
named: "使用你在 Cloudflare 绑定的固定域名。启动前要先设置访问密码。"
};
-function _Me(e) {
- let t = e === "locked" ? "" : p0(e === "password" ? "新访问密码 *" : "设置访问密码 *", "至少 8 个字符。保存后其他设备需要重新登录。") + p0(e === "password" ? "确认新访问密码 *" : "确认访问密码 *");
- return (T0[e] ? d0(T0[e]) : "") + (e === "open" ? t0("100%", "64px") : "") + (e === "password" || e === "legacy" ? h0("关闭访问密码") : "") + (e === "password" ? p0("当前访问密码 *") : "") + t;
+function bMe(e) {
+ let t = e === "locked" ? "" : h0(e === "password" ? "新访问密码 *" : "设置访问密码 *", "至少 8 个字符。保存后其他设备需要重新登录。") + h0(e === "password" ? "确认新访问密码 *" : "确认访问密码 *");
+ return (D0[e] ? p0(D0[e]) : "") + (e === "open" ? r0("100%", "64px") : "") + (e === "password" || e === "legacy" ? _0("关闭访问密码") : "") + (e === "password" ? h0("当前访问密码 *") : "") + t;
}
-function D0() {
- let e = J1("devices");
- return s0("已登录的设备", Array.from({ length: Math.max(1, X1(e?.rows, 8)) }, () => c0($1("8em"), $1("14em"), $1("3em"), t0("20px", "20px"))).join(""), Y1(e?.manageable) ? i0("撤销其他设备", "secondary") : "", Y1(e?.manageable) ? { status: "修改访问密码会让全部设备退出。" } : {});
+function k0() {
+ let e = X1("devices");
+ return l0("已登录的设备", Array.from({ length: Math.max(1, Q1(e?.rows, 8)) }, () => u0(t0("8em"), t0("14em"), t0("3em"), r0("20px", "20px"))).join(""), Z1(e?.manageable) ? o0("撤销其他设备", "secondary") : "", Z1(e?.manageable) ? { status: "修改访问密码会让全部设备退出。" } : {});
}
-var vMe = () => {
- let e = J1("network"), t = typeof e?.access == "string" && e.access ? e.access : "legacy", n = Y1(e?.tunnelNamed), r = (n && Y1(e?.tunnelNamedMode) ? d0(E0.named) + p0("公开主机名", "Cloudflare Zero Trust 里指向这台电脑的主机名。") + p0("隧道令牌", $1("16em")) : d0(E0.quick)) + (Y1(e?.tunnelNote) ? t0("100%", "64px") : ""), i = X1(e?.addresses, 3), a = Array.from({ length: i }, (e, t) => `<div class="flex min-w-0 flex-wrap items-end gap-2"><div class="min-w-0 flex-1">${p0([
+var xMe = () => {
+ let e = X1("network"), t = typeof e?.access == "string" && e.access ? e.access : "legacy", n = Z1(e?.tunnelNamed), r = (n && Z1(e?.tunnelNamedMode) ? p0(O0.named) + h0("公开主机名", "Cloudflare Zero Trust 里指向这台电脑的主机名。") + h0("隧道令牌", t0("16em")) : p0(O0.quick)) + (Z1(e?.tunnelNote) ? r0("100%", "64px") : ""), i = Q1(e?.addresses, 3), a = Array.from({ length: i }, (e, t) => `<div class="flex min-w-0 flex-wrap items-end gap-2"><div class="min-w-0 flex-1">${h0([
"本机地址",
"手机连接地址",
"备用 IP 地址"
- ][t])}</div>${i0("复制地址", "secondary")}</div>`).join("");
- return (i || Y1(e?.port) ? s0("访问地址", o0(a + (i ? t0("100%", "40px") : "") + (Y1(e?.networkEditable) ? `<div class="flex flex-col gap-1.5">${f0("谁可以访问")}${t0("min(100%, 20em)", "36px")}</div>` + (Y1(e?.lan) ? p0("局域网访问地址") : "") : "") + (Y1(e?.port) ? p0("端口") : "")), Y1(e?.port) ? i0("保存配置") : "", Y1(e?.port) ? { status: "保存后 Peach 会重启,并跳转到新地址。" } : {}) : "") + s0("访问密码", o0(_Me(t)), t === "locked" ? "" : i0("保存配置")) + (t === "password" || t === "legacy" ? D0() : "") + s0("Cloudflare 公网入口", o0((n ? t0("10.5em", "36px") : "") + r), i0("启动公网入口", n ? "secondary" : "primary") + (n ? i0("保存配置") : ""), { aside: n0() }) + s0("Peach 代理", l0("连接方式", "Peach 访问外网和采集来源时使用。", "ui-configuration-skeleton-select") + (Y1(e?.proxyAddress) ? o0(p0("代理地址"), !0) : ""), i0("保存配置"));
-}, yMe = [
+ ][t])}</div>${o0("复制地址", "secondary")}</div>`).join("");
+ return (i || Z1(e?.port) ? l0("访问地址", c0(a + (i ? r0("100%", "40px") : "") + (Z1(e?.networkEditable) ? `<div class="flex flex-col gap-1.5">${m0("谁可以访问")}${r0("min(100%, 20em)", "36px")}</div>` + (Z1(e?.lan) ? h0("局域网访问地址") : "") : "") + (Z1(e?.port) ? h0("端口") : "")), Z1(e?.port) ? o0("保存配置") : "", Z1(e?.port) ? { status: "保存后 Peach 会重启,并跳转到新地址。" } : {}) : "") + l0("访问密码", c0(bMe(t)), t === "locked" ? "" : o0("保存配置")) + (t === "password" || t === "legacy" ? k0() : "") + l0("Cloudflare 公网入口", c0((n ? r0("10.5em", "36px") : "") + r), o0("启动公网入口", n ? "secondary" : "primary") + (n ? o0("保存配置") : ""), { aside: i0() }) + l0("Peach 代理", d0("连接方式", "Peach 访问外网和采集来源时使用。", "ui-configuration-skeleton-select") + (Z1(e?.proxyAddress) ? c0(h0("代理地址"), !0) : ""), o0("保存配置"));
+}, SMe = [
"版本",
"操作系统",
"数据目录",
"设置文件",
"日志目录"
-], bMe = () => {
- let e = J1("maintenance"), t = [
+], CMe = () => {
+ let e = X1("maintenance"), t = [
"当前版本",
"安装方式",
"更新通道",
"最新版本",
"下载内容"
- ].slice(0, Math.max(4, X1(e?.releaseFacts, 5))), n = X1(e?.releaseNotes, 4), r = X1(e?.storageRows, 12), i = X1(e?.storageNotes, 3), a = Z1(e?.facts, 12, (e) => z(String(e))), o = `<span class="self-start">${n0("6em")}</span>`, s = (t) => !e || Y1(t), c = s(e?.reporting) ? l0("发送版本统计与错误诊断(推荐)", "上传版本、系统信息、故障类型、代码位置与发生次数。") + (Y1(e?.reportingIdle) ? o0(o, !0) : "") : "", l = s(e?.sharing) ? `<div class="border-t border-separator-border">${l0("上传馆藏与口味明细", Y1(e?.sharingNotice) ? $1("12em") : "")}${Y1(e?.sharingIdle) ? o0(o, !0) : ""}${a0(i0("预览上传内容", "secondary"))}</div>` : "";
- return s0("检查更新", v0(t) + (n ? o0(d0($1("50%")).repeat(n), !0) : ""), i0("检查更新"), {
- aside: n0("4em"),
- status: $1("5em")
- }) + s0("自动更新", l0("自动检查新版本") + l0("自动下载更新", "发现新版本后先下载,重启安装前会询问。") + l0("检查频率", Y1(e?.autoUpdateHelp) ? $1("12em") : "", "ui-configuration-skeleton-select"), i0("保存配置")) + s0("开机自启", l0("开机后启动 Peach") + l0("只启动托盘,不打开网页", "开机后在后台运行,需要时从托盘打开页面。") + l0("在桌面创建快捷方式", Y1(e?.desktopNote) ? $1("12em") : "") + (Y1(e?.startupNote) ? o0(d0($1("60%")), !0) : ""), i0("保存配置")) + s0("视频播放", l0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + s0("存储空间", v0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => c0($1("6em"), "", $1("4em"))).join("") : o0(d0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? o0(d0($1("80%")).repeat(i), !0) : ""), i0("更改位置", "secondary") + i0(r ? "重新统计" : "统计占用")) + (c || l ? s0("数据上传", c + l) : "") + s0("运行信息", v0(a.length ? a : yMe)) + `<section aria-label="新手教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${c0("新手教程", "在所有设备上恢复右上角教程入口,保留已读进度", i0("重新打开", "secondary"))}</div></section>` + (s(e?.uninstall) ? s0("卸载 Peach", (Y1(e?.uninstallHelp) ? o0(d0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + l0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + o0(_0("数据目录"), !0), i0("卸载 Peach"), { status: $1("16em") }) : "");
+ ].slice(0, Math.max(4, Q1(e?.releaseFacts, 5))), n = Q1(e?.releaseNotes, 4), r = Q1(e?.storageRows, 12), i = Q1(e?.storageNotes, 3), a = $1(e?.facts, 12, (e) => z(String(e))), o = `<span class="self-start">${i0("6em")}</span>`, s = (t) => !e || Z1(t), c = s(e?.reporting) ? d0("发送版本统计与错误诊断(推荐)", "上传版本、系统信息、故障类型、代码位置与发生次数。") + (Z1(e?.reportingIdle) ? c0(o, !0) : "") : "", l = s(e?.sharing) ? `<div class="border-t border-separator-border">${d0("上传馆藏与口味明细", Z1(e?.sharingNotice) ? t0("12em") : "")}${Z1(e?.sharingIdle) ? c0(o, !0) : ""}${s0(o0("预览上传内容", "secondary"))}</div>` : "";
+ return l0("检查更新", b0(t) + (n ? c0(p0(t0("50%")).repeat(n), !0) : ""), o0("检查更新"), {
+ aside: i0("4em"),
+ status: t0("5em")
+ }) + l0("自动更新", d0("自动检查新版本") + d0("自动下载更新", "发现新版本后先下载,重启安装前会询问。") + d0("检查频率", Z1(e?.autoUpdateHelp) ? t0("12em") : "", "ui-configuration-skeleton-select"), o0("保存配置")) + l0("开机自启", d0("开机后启动 Peach") + d0("只启动托盘,不打开网页", "开机后在后台运行,需要时从托盘打开页面。") + d0("在桌面创建快捷方式", Z1(e?.desktopNote) ? t0("12em") : "") + (Z1(e?.startupNote) ? c0(p0(t0("60%")), !0) : ""), o0("保存配置")) + l0("视频播放", d0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + l0("存储空间", b0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => u0(t0("6em"), "", t0("4em"))).join("") : c0(p0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? c0(p0(t0("80%")).repeat(i), !0) : ""), o0("更改位置", "secondary") + o0(r ? "重新统计" : "统计占用")) + (c || l ? l0("数据上传", c + l) : "") + l0("运行信息", b0(a.length ? a : SMe)) + `<section aria-label="新手教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${u0("新手教程", "在所有设备上恢复右上角教程入口,保留已读进度", o0("重新打开", "secondary"))}</div></section>` + (s(e?.uninstall) ? l0("卸载 Peach", (Z1(e?.uninstallHelp) ? c0(p0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + d0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + c0(y0("数据目录"), !0), o0("卸载 Peach"), { status: t0("16em") }) : "");
};
-function xMe(e) {
+function wMe(e) {
switch (e) {
- case "系统诊断": return V1();
- case "来源与订阅": return hMe();
- case "下载渠道": return gMe();
- case "网络与访问": return vMe();
- case "应用与维护": return bMe();
- default: return mMe();
+ case "系统诊断": return U1();
+ case "来源与订阅": return vMe();
+ case "下载渠道": return yMe();
+ case "网络与访问": return xMe();
+ case "应用与维护": return CMe();
+ default: return _Me();
}
}
-function SMe(e = "媒体库与入库") {
- return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${Object.values(kf).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">${xMe(e)}</div></div></div>`;
+function TMe(e = "媒体库与入库") {
+ return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${Object.values(kf).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">${wMe(e)}</div></div></div>`;
}
// src/filter-controls-skeleton.ts
-var O0 = (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>` : Ts(e, "size-4 shrink-0"), k0 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", A0 = (e, t, n) => `<span data-entity-layout="" class="${rU}" role="radiogroup" aria-label="${z(e)}">${n.map(([e, n, r]) => `<span class="${iU}" role="radio" aria-label="${z(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${k0}>${O0(r)}</span>`).join("")}</span>`;
-function j0(e, t, { folders: n = !0 } = {}) {
- let r = nG(), i = new URLSearchParams(location.search), a = t && r === "cards" ? A0(t.label, t.value, t.options) : "", o = n ? `<button type="button" data-folder-mode-toggle="" aria-label="文件夹模式" aria-pressed="${i.get("browse") === "folders" || !!i.get("folder")}" ${k0}>${O0("ri-folder-3-line")}</button>` : "";
- return `<span data-entity-sorts=""><button type="button" data-entity-batch="" data-filter-action="" aria-label="换一批" ${k0}>${O0("shuffle")}</button>${a}${A0("馆藏显示方式", r, [[
+var A0 = (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>` : Ts(e, "size-4 shrink-0"), j0 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", M0 = (e, t, n) => `<span data-entity-layout="" class="${aU}" role="radiogroup" aria-label="${z(e)}">${n.map(([e, n, r]) => `<span class="${oU}" role="radio" aria-label="${z(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${j0}>${A0(r)}</span>`).join("")}</span>`;
+function N0(e, t, { folders: n = !0 } = {}) {
+ let r = iG(), i = new URLSearchParams(location.search), a = t && r === "cards" ? M0(t.label, t.value, t.options) : "", o = n ? `<button type="button" data-folder-mode-toggle="" aria-label="文件夹模式" aria-pressed="${i.get("browse") === "folders" || !!i.get("folder")}" ${j0}>${A0("ri-folder-3-line")}</button>` : "";
+ return `<span data-entity-sorts=""><button type="button" data-entity-batch="" data-filter-action="" aria-label="换一批" ${j0}>${A0("shuffle")}</button>${a}${M0("馆藏显示方式", r, [[
"cards",
"卡片",
"ri-layout-grid-line"
@@ -72860,21 +72873,21 @@ function j0(e, t, { folders: n = !0 } = {}) {
"list",
"列表",
"ri-list-unordered"
- ]])}${o}${e.map((e) => `<button type="button" data-entity-sort="${z(e.key)}" aria-pressed="${e.pressed}" ${k0}>${z(e.label)}${e.dir ? O0(e.dir === "asc" ? "arrow-up" : "arrow-down") : ""}</button>`).join("")}</span>`;
+ ]])}${o}${e.map((e) => `<button type="button" data-entity-sort="${z(e.key)}" aria-pressed="${e.pressed}" ${j0}>${z(e.label)}${e.dir ? A0(e.dir === "asc" ? "arrow-up" : "arrow-down") : ""}</button>`).join("")}</span>`;
}
// src/catalog-filter-skeleton.ts
-var M0 = 64, N0 = (e) => e.replace(/[&<>"]/g, (e) => ({
+var P0 = 64, F0 = (e) => e.replace(/[&<>"]/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;"
-})[e]), CMe = (e) => e.repeat(M0), P0 = (e) => CMe(`<span data-catalog-placeholder="${e}" aria-hidden="true"><span></span><span>&nbsp;</span></span>`);
-function wMe(e, t, n) {
- let r = e.map((e) => `<a href="${N0(e.href)}" data-catalog-view="${N0(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${N0(e.label)}</a>`).join(""), i = jG();
- 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">${P0("performer")}</div>` : "") + (i.studios ? `<div data-catalog-tier="studios">${P0("studio")}</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(M0) + `</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>${Es()}</span>` + (n ? j0(n.sorts, n.layout) : "") + "</div></div></div></div>";
+})[e]), EMe = (e) => e.repeat(P0), I0 = (e) => EMe(`<span data-catalog-placeholder="${e}" aria-hidden="true"><span></span><span>&nbsp;</span></span>`);
+function DMe(e, t, n) {
+ let r = e.map((e) => `<a href="${F0(e.href)}" data-catalog-view="${F0(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${F0(e.label)}</a>`).join(""), i = NG();
+ 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">${I0("performer")}</div>` : "") + (i.studios ? `<div data-catalog-tier="studios">${I0("studio")}</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(P0) + `</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>${Es()}</span>` + (n ? N0(n.sorts, n.layout) : "") + "</div></div></div></div>";
}
// src/react/jav/release-table-columns.ts
-var F0 = "peach.table.jav-releases.widths.v1", I0 = "peach.table.jav-releases.visibility.v1", TMe = {
+var L0 = "peach.table.jav-releases.widths.v1", R0 = "peach.table.jav-releases.visibility.v1", OMe = {
name: {
width: 300,
min: 240,
@@ -72920,7 +72933,7 @@ var F0 = "peach.table.jav-releases.widths.v1", I0 = "peach.table.jav-releases.vi
min: 112,
max: 320
}
-}, EMe = {
+}, kMe = {
name: "作品",
people: "艺人",
studio: "厂牌",
@@ -72930,12 +72943,12 @@ var F0 = "peach.table.jav-releases.widths.v1", I0 = "peach.table.jav-releases.vi
score: "来源评分",
release: "发行时间",
actions: "操作"
-}, DMe = {
+}, AMe = {
code: "code",
dur: "duration",
score: "source_score",
release: "release_date"
-}, L0 = [
+}, z0 = [
"name",
"people",
"studio",
@@ -72947,18 +72960,18 @@ var F0 = "peach.table.jav-releases.widths.v1", I0 = "peach.table.jav-releases.vi
"code"
].map((e) => ({
id: e,
- label: EMe[e],
- ...TMe[e],
+ label: kMe[e],
+ ...OMe[e],
flex: e === "name",
required: e === "name",
visible: e !== "code"
}));
-function OMe() {
- return AJ(L0, F0, I0);
+function jMe() {
+ return MJ(z0, L0, R0);
}
// src/jav-skeleton.ts
-var R0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, kMe = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, z0 = "w-full min-w-0";
-function B0() {
+var B0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, MMe = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, V0 = "w-full min-w-0";
+function H0() {
return [
"w-20",
"w-16",
@@ -72968,83 +72981,83 @@ function B0() {
"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 V0(e, t = uM()) {
- if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${R0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${kMe("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">${R0("80%")}${R0("60%")}${R0("40%")}</div></div>`).join("")}</div>`;
- let n = vM({
- ..._M({
+function U0(e, t = fM()) {
+ if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${B0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${MMe("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">${B0("80%")}${B0("60%")}${B0("40%")}</div></div>`).join("")}</div>`;
+ let n = bM({
+ ...yM({
active: !0,
home: !1,
portrait: !1
}),
size: t
});
- return `<div data-media-grid class="${z0}" data-skeleton="jav-discover">${Array.from({ length: 6 }, () => `<div data-jav-skeleton-card data-media-card data-jav-card class="flex min-w-0 flex-col gap-3">
+ return `<div data-media-grid class="${V0}" data-skeleton="jav-discover">${Array.from({ length: 6 }, () => `<div data-jav-skeleton-card data-media-card data-jav-card class="flex min-w-0 flex-col gap-3">
<span data-jav-skeleton-cover class="skeleton block w-full rounded-2lg" style="aspect-ratio:${n}"></span>
<div data-media-meta><span data-jav-skeleton-avatar class="skeleton block shrink-0"></span><div data-media-text>
- <div data-media-title>${R0("85%")}${R0("65%")}</div><div data-media-byline>${R0("55%")}</div>
+ <div data-media-title>${B0("85%")}${B0("65%")}</div><div data-media-byline>${B0("55%")}</div>
<div data-media-tags><span class="skeleton block h-5 w-20 rounded-md"></span><span class="skeleton block h-5 w-24 rounded-md"></span></div>
</div></div>
<div data-jav-skeleton-actions class="flex flex-wrap gap-2"><span data-jav-skeleton-action class="skeleton block h-9 w-20 rounded-md"></span><span data-jav-skeleton-action class="skeleton block h-9 w-12 rounded-md"></span><span data-jav-skeleton-action class="skeleton block h-9 w-26 rounded-md"></span></div>
</div>`).join("")}</div>`;
}
-var AMe = {
+var NMe = {
releases: "筛选新作",
discover: "筛选推荐",
wants: "筛选想要"
};
-function jMe(e) {
- let t = new URLSearchParams(location.search).get("q") || "", n = 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>${R0("100%")}</div>${V0(e)}` : e === "releases" ? `<section class="flex min-w-0 flex-col gap-4">${MMe()}${nG() === "list" ? `<div data-catalog-table>${PJ(OMe())}</div>` : V0(e)}</section>` : `<section class="flex min-w-0 flex-col gap-4">${NMe()}${V0(e)}</section>`;
+function PMe(e) {
+ let t = new URLSearchParams(location.search).get("q") || "", n = 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>${B0("100%")}</div>${U0(e)}` : e === "releases" ? `<section class="flex min-w-0 flex-col gap-4">${FMe()}${iG() === "list" ? `<div data-catalog-table>${IJ(jMe())}</div>` : U0(e)}</section>` : `<section class="flex min-w-0 flex-col gap-4">${IMe()}${U0(e)}</section>`;
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 min-w-0 flex-wrap items-center gap-3 max-board-narrow:gap-x-2"><h2 data-page-title class="text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium">JAV</h2><div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Ds("", t, AMe[e] || "筛选")}</div>${Os({
+ <div class="flex w-full flex-col gap-4"><div class="flex min-w-0 flex-wrap items-center gap-3 max-board-narrow:gap-x-2"><h2 data-page-title class="text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium">JAV</h2><div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Ds("", t, NMe[e] || "筛选")}</div>${Os({
variant: "primary",
label: "查找资源",
attrs: "disabled data-skeleton-action"
})}</div>
- <div class="relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0">${aU.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>
+ <div class="relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0">${sU.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>
${n}</div></div>`;
}
-function MMe() {
- let e = new URLSearchParams(location.search), t = e.get("sort") || "release_date", n = e.get("dir") === "asc" ? "asc" : "desc", r = sW.map(([e, r, i]) => ({
+function FMe() {
+ let e = new URLSearchParams(location.search), t = e.get("sort") || "release_date", n = e.get("dir") === "asc" ? "asc" : "desc", r = lW.map(([e, r, i]) => ({
key: e,
label: r,
ariaLabel: i,
pressed: e === t,
dir: e === t ? n : ""
}));
- return `<div data-catalog-tiers="" aria-busy="true"><div data-catalog-tier="performers" data-skeleton="tiers">${P0("performer")}</div><div data-catalog-tier="studios">${P0("studio")}</div></div>
+ return `<div data-catalog-tiers="" aria-busy="true"><div data-catalog-tier="performers" data-skeleton="tiers">${I0("performer")}</div><div data-catalog-tier="studios">${I0("studio")}</div></div>
<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-tags>${B0()}</div></div>
+ <div data-catalog-scroll><div data-catalog-tags>${H0()}</div></div>
</div>
<div data-filter-row="bottom" aria-busy="true" class="flex min-h-12 min-w-0 items-center gap-3 px-3 py-2">
<span data-catalog-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"></span></span>
- ${j0(r, {
+ ${N0(r, {
name: "jav-layout",
label: "JAV 卡片版式",
- value: uM(),
- options: aM
+ value: fM(),
+ options: sM
}, { folders: !1 })}
</div>
</div>`;
}
-function NMe() {
- 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="" ${uM() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${Ts(t, "size-4")}</span>`;
+function IMe() {
+ 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="" ${fM() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${Ts(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>${B0()}</div></div>
+ <div data-catalog-scroll><div data-catalog-views>${e("external", "库外发现")}${e("library", "馆藏探索")}<span data-entity-sep aria-hidden="true"></span></div><div data-catalog-tags>${H0()}</div></div>
</div>
<div data-filter-row="bottom" aria-busy="true" class="flex min-h-12 min-w-0 items-center gap-3 px-3 py-2">
<span data-catalog-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"></span></span>
${Es()}
<span data-entity-sorts><button type="button" data-entity-batch data-filter-action data-skeleton-action data-jav-metadata-update title="更新资料" aria-label="更新资料" disabled>${Ts("refresh-cw", "size-4")}</button><span data-entity-layout class="inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg">${t("big", "maximize")}${t("small", "layout-grid")}</span>
- ${oW.map(([e, t]) => `<button type="button" data-entity-sort="${e}" data-entity-press aria-pressed="${e === "taste"}">${t}${e === "taste" ? Ts("arrow-down", "size-3.5") : ""}</button>`).join("")}
+ ${cW.map(([e, t]) => `<button type="button" data-entity-sort="${e}" data-entity-press aria-pressed="${e === "taste"}">${t}${e === "taste" ? Ts("arrow-down", "size-3.5") : ""}</button>`).join("")}
</span>
</div>
</div>`;
}
// src/management-skeletons.ts
-var H0 = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", U0 = (e = "60%") => `<span class="${H0} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, W0 = "disabled data-skeleton-action", G0 = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
-function PMe() {
+var W0 = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", G0 = (e = "60%") => `<span class="${W0} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, K0 = "disabled data-skeleton-action", q0 = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
+function LMe() {
let e = [
"馆藏视频",
"看过",
@@ -73052,27 +73065,27 @@ function PMe() {
"使用空间"
].map((e, t) => `
<div class="min-w-0 rounded-2xl shadow-card flex flex-col overflow-hidden pt-4 text-left ${t === 0 ? "ring-2 ring-border-focus-ring bg-background-primary-default" : "bg-background-secondary-default"}">
- <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${H0} size-7 max-sm:size-6"></i>${e}</span>
- <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3 max-sm:text-title-3-medium">${U0("4em")}</b>
- <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${U0("6em")}</small>
- </div>`).join(""), t = (e) => `<section class="${G0}" data-stats-chart>
- <header class="flex flex-wrap items-end justify-between gap-x-4 gap-y-1"><span class="flex min-w-0 flex-col gap-1"><h3 class="text-title-2-medium text-text-primary">${e}</h3><b class="text-display-4-medium">${U0("4em")}</b></span><small class="text-caption-1-regular text-text-secondary">个视频</small></header>
+ <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${W0} size-7 max-sm:size-6"></i>${e}</span>
+ <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3 max-sm:text-title-3-medium">${G0("4em")}</b>
+ <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${G0("6em")}</small>
+ </div>`).join(""), t = (e) => `<section class="${q0}" data-stats-chart>
+ <header class="flex flex-wrap items-end justify-between gap-x-4 gap-y-1"><span class="flex min-w-0 flex-col gap-1"><h3 class="text-title-2-medium text-text-primary">${e}</h3><b class="text-display-4-medium">${G0("4em")}</b></span><small class="text-caption-1-regular text-text-secondary">个视频</small></header>
<svg class="h-75 w-full max-sm:h-65 text-background-tertiary-default" viewBox="0 0 200 200" fill="none" stroke="currentColor" stroke-width="12">${[
76,
54,
32
].map((e) => `<circle cx="100" cy="100" r="${e}"/>`).join("")}</svg>
- <div class="inline-grid w-full grid-cols-3 gap-2 max-sm:grid-cols-2">${Array.from({ length: 3 }, () => `<div class="flex min-w-0 flex-col gap-1 rounded-xl bg-background-tertiary-default p-2.5"><span class="text-caption-1-regular">${U0()}</span><b class="text-title-2-medium">${U0("3em")}</b><small class="text-caption-1-regular">${U0()}</small></div>`).join("")}</div>
+ <div class="inline-grid w-full grid-cols-3 gap-2 max-sm:grid-cols-2">${Array.from({ length: 3 }, () => `<div class="flex min-w-0 flex-col gap-1 rounded-xl bg-background-tertiary-default p-2.5"><span class="text-caption-1-regular">${G0()}</span><b class="text-title-2-medium">${G0("3em")}</b><small class="text-caption-1-regular">${G0()}</small></div>`).join("")}</div>
</section>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
- <p class="text-caption-1-regular text-text-secondary">数据库中的当前统计 · ${U0("12em")}</p>
+ <p class="text-caption-1-regular text-text-secondary">数据库中的当前统计 · ${G0("12em")}</p>
<div class="flex flex-col gap-4"><div class="inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4" data-stats-metrics>${e}</div>
<div class="flex flex-col gap-5"><div class="inline-grid w-full gap-5 md:grid-cols-2">${t("网盘与本地")}${t("媒体库")}</div>
<div class="inline-grid w-full gap-5 md:grid-cols-2 xl:grid-cols-3">${[
"时长",
"画质",
"文件类型"
- ].map((e) => `<section class="${G0}"><h3 class="text-title-2-medium">${e}</h3><div class="${H0} h-64"></div></section>`).join("")}</div>
+ ].map((e) => `<section class="${q0}"><h3 class="text-title-2-medium">${e}</h3><div class="${W0} h-64"></div></section>`).join("")}</div>
</div>
</div>
<section class="rounded-surface bg-background-secondary-default dark:bg-background-primary-default">
@@ -73081,11 +73094,11 @@ function PMe() {
"最近看过",
"标签来源"
].map((e) => `<span>${e}</span>`).join("")}</div>
- <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${H0} h-7"></div>`).join("")}</div>
+ <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${W0} h-7"></div>`).join("")}</div>
</section>
</div></div>`;
}
-function FMe() {
+function RMe() {
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 = [
"浏览记录",
"口味维度",
@@ -73093,20 +73106,20 @@ function FMe() {
"私有导出"
].map((e) => `
<div class="min-w-0 rounded-2xl shadow-card bg-background-secondary-default flex flex-col overflow-hidden pt-4 text-left">
- <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${H0} size-7 max-sm:size-6"></i>${e}</span>
- <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3">${U0("4em")}</b>
- <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${U0("6em")}</small>
- </div>`).join(""), n = Array.from({ length: 6 }, () => `<div class="${H0} h-6"></div>`).join(""), r = (e) => `<section class="${G0}"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="${H0} h-40"></div></section>`;
+ <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${W0} size-7 max-sm:size-6"></i>${e}</span>
+ <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3">${G0("4em")}</b>
+ <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${G0("6em")}</small>
+ </div>`).join(""), n = Array.from({ length: 6 }, () => `<div class="${W0} h-6"></div>`).join(""), r = (e) => `<section class="${q0}"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="${W0} h-40"></div></section>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
<div class="flex flex-col gap-5">
<div class="flex flex-wrap items-center justify-between gap-3">${e(["浏览器记录", "Peach 内部"])}
<div class="flex flex-wrap items-center gap-2">${As("全部时间")}<span data-button-group data-split-button data-variant="primary">${Os({
glyph: "compass",
label: "读取浏览器历史",
- attrs: W0
+ attrs: K0
})}${Os({
glyph: "chevron-down",
- attrs: W0
+ attrs: K0
})}</span></div>
</div>
<div class="inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4" data-taste-metrics>${t}</div>
@@ -73124,11 +73137,11 @@ function FMe() {
4,
5
].map((t) => `${(100 + e * Math.sin(t * Math.PI / 3)).toFixed(1)},${(100 - e * Math.cos(t * Math.PI / 3)).toFixed(1)}`).join(" ")}"/>`).join("")}</svg>
- <small class="text-caption-1-regular">${U0("8em")}</small></div>
+ <small class="text-caption-1-regular">${G0("8em")}</small></div>
<div class="flex min-w-0 grow flex-col justify-around gap-3">${n}</div>
</section>
<div class="inline-grid w-full items-start gap-5 lg:grid-cols-2">${r("浏览活跃时间")}${r("每日活跃")}</div>
- <section class="${G0}"><h3 class="text-title-2-medium text-text-primary">创作者线索来源</h3><div class="${H0} h-72 max-sm:h-48"></div></section>
+ <section class="${q0}"><h3 class="text-title-2-medium text-text-primary">创作者线索来源</h3><div class="${W0} h-72 max-sm:h-48"></div></section>
<section class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col">
<div class="px-4 pt-3">${e([
"标签",
@@ -73136,20 +73149,20 @@ function FMe() {
"常访问网站",
"浏览线索"
])}</div>
- <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${H0} h-7"></div>`).join("")}</div>
+ <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${W0} h-7"></div>`).join("")}</div>
</section>
</div>
</div></div>`;
}
-function IMe() {
+function zMe() {
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="${H0} 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">${U0("70%")}</span>
- ${Array.from({ length: 3 }, () => `<span class="font-mono text-caption-1-regular leading-5">${U0("3em")}</span>`).join("")}
- <span class="col-start-2 -col-end-1 min-w-0 pt-0.5 font-mono text-caption-1-regular leading-5 max-duplicate-narrow:col-span-full">${U0("75%")}</span>
+ <span class="${W0} 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">${G0("70%")}</span>
+ ${Array.from({ length: 3 }, () => `<span class="font-mono text-caption-1-regular leading-5">${G0("3em")}</span>`).join("")}
+ <span class="col-start-2 -col-end-1 min-w-0 pt-0.5 font-mono text-caption-1-regular leading-5 max-duplicate-narrow:col-span-full">${G0("75%")}</span>
</div>`, t = `<section class="mb-6 overflow-hidden rounded-surface bg-background-secondary-default dark:bg-background-primary-default" data-duplicate-group>
<div class="flex flex-wrap items-center gap-3 bg-background-tertiary-default p-5 max-compact:p-4 dark:bg-background-secondary-default">
- <b class="text-title-2-medium">${U0("5em")}</b><span class="font-mono text-caption-1-regular leading-5">${U0("8em")}</span>
+ <b class="text-title-2-medium">${G0("5em")}</b><span class="font-mono text-caption-1-regular leading-5">${G0("8em")}</span>
<span class="ml-auto flex flex-wrap gap-2 max-compact:ml-0 max-compact:w-full">${[
"留最大",
"留最长",
@@ -73158,27 +73171,27 @@ function IMe() {
variant: "secondary",
size: "small",
label: e,
- attrs: W0
+ attrs: K0
})).join("")}</span>
</div>${e.repeat(2)}</section>`;
return `<div class="peach-react"><div class="mx-auto w-full max-w-board pb-10.5">
<div data-collection-summary class="mb-5 flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5 max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4 dark:bg-background-primary-default">
- <div class="flex min-w-0 flex-col gap-2"><span class="text-body-regular text-text-secondary">重复内容</span><strong class="text-display-4-medium">${U0("4em")}</strong></div><p class="text-body-regular text-text-secondary">${U0("12em")}</p>
+ <div class="flex min-w-0 flex-col gap-2"><span class="text-body-regular text-text-secondary">重复内容</span><strong class="text-display-4-medium">${G0("4em")}</strong></div><p class="text-body-regular text-text-secondary">${G0("12em")}</p>
</div>
- <div data-filter-glass data-glass-pane class="mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5"><h3 class="mr-1 text-body-medium">批量保留</h3>${["全部保留最大", "全部保留最长"].map((e) => `<button ${W0} class="h-8 rounded-full border border-separator-border px-3 text-body-2-medium">${e}</button>`).join("")}</div>
+ <div data-filter-glass data-glass-pane class="mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5"><h3 class="mr-1 text-body-medium">批量保留</h3>${["全部保留最大", "全部保留最长"].map((e) => `<button ${K0} class="h-8 rounded-full border border-separator-border px-3 text-body-2-medium">${e}</button>`).join("")}</div>
${t.repeat(2)}
</div></div>`;
}
-function LMe() {
+function BMe() {
let e = `<li class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-3 p-3">
- <div class="flex min-w-0 gap-4"><span class="${H0} 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">${U0("80%")}</h3><p class="text-body-2-regular">${U0("60%")}</p></div>
+ <div class="flex min-w-0 gap-4"><span class="${W0} 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">${G0("80%")}</h3><p class="text-body-2-regular">${G0("60%")}</p></div>
</div>
<footer class="flex justify-end">${Os({
variant: "secondary",
size: "small",
label: "查看版本",
- attrs: W0
+ attrs: K0
})}</footer>
</li>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
@@ -73187,20 +73200,20 @@ function LMe() {
</div></div>`;
}
// src/board-skeleton.ts
-var K0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, RMe = () => `${K0("80%")}${K0("48%")}`, q0 = (e, t) => e.repeat(t), J0 = "disabled data-skeleton-action", Y0 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, X0 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, zMe = "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", Z0 = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
+var J0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, VMe = () => `${J0("80%")}${J0("48%")}`, Y0 = (e, t) => e.repeat(t), X0 = "disabled data-skeleton-action", Z0 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, Q0 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, HMe = "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", $0 = () => `<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="${zMe}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${Y0("3em")}</b></div>`).join("")}</div>`, BMe = (e = "") => DZ.some(([t]) => t === e) ? e : "list", Q0 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${DZ.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, $0 = (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>`, VMe = ({ table: e, sort: t, dir: n }) => {
+].map((e) => `<div class="${HMe}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${Z0("3em")}</b></div>`).join("")}</div>`, UMe = (e = "") => kZ.some(([t]) => t === e) ? e : "list", e2 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${kZ.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, t2 = (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>`, WMe = ({ table: e, sort: t, dir: n }) => {
let r = ur.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">${Y0("132px")}</span></span><div data-follow-toolbar-actions data-toolbar-actions>${Os({
+ 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">${Z0("132px")}</span></span><div data-follow-toolbar-actions data-toolbar-actions>${Os({
glyph: "refresh-cw",
label: "检查全部",
compact: !0,
- attrs: J0
+ attrs: X0
})}<span data-follow-toolbar-controls class="contents"><span data-button-group role="group">${Os({
variant: "ghost",
glyph: "layout-grid",
@@ -73217,42 +73230,42 @@ var K0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, RMe
glyph: "chevron-up",
label: "全部收起",
compact: !0,
- attrs: J0
+ attrs: X0
})}</span></div></div>`;
-}, e2 = () => `<span class="flex shrink-0 items-center gap-1">${Os({
+}, n2 = () => `<span class="flex shrink-0 items-center gap-1">${Os({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
- attrs: J0
+ attrs: X0
})}${Os({
variant: "secondary",
size: "small",
glyph: "trash",
- attrs: J0
-})}</span>`, HMe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${$0()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${Y0("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${X0(14, 14)}</span>${X0(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">${Y0("113px")}</span>${e2()}</span></div>`, t2 = (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>${X0(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${Y0("92px")}</b><span data-follow-author-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-2 max-sm:w-full">${Os({
+ attrs: X0
+})}</span>`, GMe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${t2()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${Z0("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${Q0(14, 14)}</span>${Q0(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">${Z0("113px")}</span>${n2()}</span></div>`, r2 = (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>${Q0(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${Z0("92px")}</b><span data-follow-author-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-2 max-sm:w-full">${Os({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
- attrs: J0
-})}<span class="flex shrink-0 items-center gap-1 max-sm:mr-auto">${X0(14, 14)}${X0(14, 14)}</span><span class="flex flex-none items-center gap-2">${Os({
+ attrs: X0
+})}<span class="flex shrink-0 items-center gap-1 max-sm:mr-auto">${Q0(14, 14)}${Q0(14, 14)}</span><span class="flex flex-none items-center gap-2">${Os({
variant: "secondary",
size: "small",
glyph: "check-check",
label: "全选",
- attrs: J0
+ attrs: X0
})}${Os({
variant: "secondary",
size: "small",
glyph: "chevron-up",
label: "收起",
- attrs: J0
-})}</span></span></div><div data-source-divider>${q0(HMe(), e)}</div></section>`, UMe = () => {
+ attrs: X0
+})}</span></span></div><div data-source-divider>${Y0(GMe(), e)}</div></section>`, KMe = () => {
try {
return Number(JSON.parse(localStorage.getItem("peach.settings.v1") || "{}").followPageSize) || 20;
} catch {
return 20;
}
-}, WMe = [
+}, qMe = [
["select", ""],
["author", "创作者"],
["source", "来源"],
@@ -73260,92 +73273,92 @@ var K0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, RMe
["status", "状态"],
["checked", "上次检查"],
["actions", ""]
-], GMe = {
+], JMe = {
name: "author",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, n2 = "<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>", KMe = (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>${WMe.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${GMe[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${n2}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${q0(`<tr>${[
- $0(),
- `<span class="flex min-w-0 items-center gap-2">${X0(32, 32, !0)}${Y0("5em")}</span>`,
- Y0("10em"),
- `<span class="flex items-center gap-1.5">${X0(14, 14)}${Y0("4em")}</span>`,
- X0(48, 24),
- Y0("113px"),
- e2()
-].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, qMe = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${Y0("111px")}</span><div data-toolbar-actions>${As(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${X0(204, 32)}</div></div>`, JMe = () => `<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">${Y0("120px")}</h3>${[
+}, i2 = "<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>", YMe = (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>${qMe.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${JMe[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${i2}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${Y0(`<tr>${[
+ t2(),
+ `<span class="flex min-w-0 items-center gap-2">${Q0(32, 32, !0)}${Z0("5em")}</span>`,
+ Z0("10em"),
+ `<span class="flex items-center gap-1.5">${Q0(14, 14)}${Z0("4em")}</span>`,
+ Q0(48, 24),
+ Z0("113px"),
+ n2()
+].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, XMe = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${Z0("111px")}</span><div data-toolbar-actions>${As(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${Q0(204, 32)}</div></div>`, ZMe = () => `<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">${Z0("120px")}</h3>${[
"72%",
"56%",
"64%",
"40%"
-].map((e) => `<span class="text-body-medium">${Y0(e)}</span>`).join("")}</div>`, YMe = (e) => {
- let t = BMe(e.followTab);
- if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${Z0()}<div class="flex flex-col gap-6">${Q0(t)}<div class="flex flex-col gap-4">${JMe()}</div></div></div></div>`;
- let n = e.followLayout === "table", r = mr(e.followSort, e.followDir), i = e.followPageSize || UMe(), a = n ? KMe(i, r) : `${$0("全选本页")}<div class="flex flex-col gap-3">${t2(3)}${t2(4)}${t2(3)}</div>`;
- return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${Z0()}<div class="flex flex-col gap-6">${Q0(t)}<div class="flex flex-col gap-4"><div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface" data-layout="${n ? "table" : "default"}">${VMe({
+].map((e) => `<span class="text-body-medium">${Z0(e)}</span>`).join("")}</div>`, QMe = (e) => {
+ let t = UMe(e.followTab);
+ if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${$0()}<div class="flex flex-col gap-6">${e2(t)}<div class="flex flex-col gap-4">${ZMe()}</div></div></div></div>`;
+ let n = e.followLayout === "table", r = mr(e.followSort, e.followDir), i = e.followPageSize || KMe(), a = n ? YMe(i, r) : `${t2("全选本页")}<div class="flex flex-col gap-3">${r2(3)}${r2(4)}${r2(3)}</div>`;
+ return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${$0()}<div class="flex flex-col gap-6">${e2(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"}">${WMe({
table: n,
...r
- })}${a}${qMe(n, i)}</div></div></div></div></div>`;
+ })}${a}${XMe(n, i)}</div></div></div></div></div>`;
};
-function XMe() {
- 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">${K0("85%")}${K0("65%")}${q0(RMe(), 4)}</div></aside></div>`;
+function $Me() {
+ 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">${J0("85%")}${J0("65%")}${Y0(VMe(), 4)}</div></aside></div>`;
}
-function ZMe(e, t = {}) {
+function eNe(e, t = {}) {
let n = "";
- if (e === "/stats") n = PMe();
+ if (e === "/stats") n = LMe();
else if (e === "/jav") {
- let e = oU(new URLSearchParams(location.search).get("tab"));
- n = jMe(e === "library" ? "discover" : e);
- } else if (e === "/taste") n = FMe();
- else if (e === "/subscriptions") n = YMe(t);
- else if (e.startsWith("/settings/") && e.split("/")[2] in kf) n = SMe(kf[e.split("/")[2]]);
+ let e = cU(new URLSearchParams(location.search).get("tab"));
+ n = PMe(e === "library" ? "discover" : e);
+ } else if (e === "/taste") n = RMe();
+ else if (e === "/subscriptions") n = QMe(t);
+ else if (e.startsWith("/settings/") && e.split("/")[2] in kf) n = TMe(kf[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 bg-background-secondary-default"><div class="flex flex-col gap-1.5 px-5 pt-5 pb-4"><span class="text-title-1-medium">${Y0("8em")}</span><span class="text-caption-1-regular">${Y0("14em")}</span>${Y0("60%")}${Y0("40%")}</div><div class="border-t border-separator-border px-5 py-2.5">${Y0("6em")}</div></div></section>`).join("")}</div></div>`;
- else if (e === "/duplicates") n = IMe();
- else if (e === "/quality-goals") n = LMe();
+ ].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 bg-background-secondary-default"><div class="flex flex-col gap-1.5 px-5 pt-5 pb-4"><span class="text-title-1-medium">${Z0("8em")}</span><span class="text-caption-1-regular">${Z0("14em")}</span>${Z0("60%")}${Z0("40%")}</div><div class="border-t border-separator-border px-5 py-2.5">${Z0("6em")}</div></div></section>`).join("")}</div></div>`;
+ else if (e === "/duplicates") n = zMe();
+ else if (e === "/quality-goals") n = BMe();
else if (e === "/playlists") n = `<div class="peach-react"><section class="w-full pt-1 pb-10.5"><header class="mb-4 flex items-start justify-between gap-4.5 max-board-narrow:flex-col max-board-narrow:items-stretch"><div><h2 class="mb-1 text-display-4-medium! text-text-primary">播放列表</h2><p class="text-body-2-regular text-text-secondary">保存 Mix,按自己的顺序继续播放。</p></div><div class="flex flex-wrap items-end gap-2"><div class="min-w-50 max-w-80 flex-1 basis-50 max-board-narrow:min-w-0 max-board-narrow:max-w-none"><span class="text-body-medium">新播放列表</span><span class="skeleton ui-configuration-skeleton-input mt-1.5"></span></div>${Os({
label: "新建",
- attrs: J0
- })}</div></header><div class="mx-auto w-full max-w-board"><div class="ui-playlistcards card-grid-cover gap-4.5">${q0("<article class=\"playlistcard skeletoncard\"><i></i><b></b><em></em></article>", 6)}</div></div></section></div>`;
+ attrs: X0
+ })}</div></header><div class="mx-auto w-full max-w-board"><div class="ui-playlistcards card-grid-cover gap-4.5">${Y0("<article class=\"playlistcard skeletoncard\"><i></i><b></b><em></em></article>", 6)}</div></div></section></div>`;
else return "";
return `<div class="board-page-skeleton" data-skeleton="board${e}" role="status" aria-label="正在读取页面"><div aria-hidden="true" inert>${n}</div></div>`;
}
// src/react/components/overlay-host.ts
-function QMe(e) {
+function tNe(e) {
let t = e.querySelector(":scope > [data-react-overlays]");
if (t) return t;
let n = e.ownerDocument.createElement("div");
return n.className = "peach-react", n.dataset.reactOverlays = "", e.append(n), n;
}
-function r2(e) {
+function a2(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return QMe(n ?? t.body);
+ return tNe(n ?? t.body);
}
-var i2 = "[role=\"dialog\"],[role=\"listbox\"],[role=\"menu\"]";
-function $Me(e) {
+var o2 = "[role=\"dialog\"],[role=\"listbox\"],[role=\"menu\"]";
+function nNe(e) {
let t = e.querySelector(":scope > [data-react-overlays]");
for (let e = t?.lastElementChild; e; e = e.previousElementSibling) {
- let t = e.matches(i2) ? e : e.querySelector(i2);
+ let t = e.matches(o2) ? e : e.querySelector(o2);
if (t) return t;
}
return null;
}
-function a2(e) {
+function s2(e) {
let t = document.getElementById("toasts"), n = e?.open ? e : document.body;
t && t.parentElement !== n && n.append(t);
}
// src/react/follow-detail/follow-detail.ts
-var o2 = (e) => ["follow-item", e], eNe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, tNe = "/api/follow/save", nNe = "/api/follow/media/hide", s2 = class extends Error {
+var c2 = (e) => ["follow-item", e], rNe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, iNe = "/api/follow/save", aNe = "/api/follow/media/hide", l2 = class extends Error {
constructor() {
super("这条关注内容已不存在");
}
};
-async function c2(e, t) {
- let n = await B(eNe(e), t);
+async function u2(e, t) {
+ let n = await B(rNe(e), t);
for (let t of n.groups || []) {
let r = la(t).find((t) => t.id === e);
if (r) return {
@@ -73355,9 +73368,9 @@ async function c2(e, t) {
aliases: n.author_aliases || []
};
}
- throw new s2();
+ throw new l2();
}
-function rNe(e) {
+function oNe(e) {
for (let [, t] of H.getQueriesData({ queryKey: ["follow-item"] })) {
if (!t?.group) continue;
let n = la(t.group).find((t) => t.id === e);
@@ -73368,20 +73381,20 @@ function rNe(e) {
}
return null;
}
-async function l2(e, t) {
- let n = o2(e.id), r = ua(e.id), i = H.getQueryData(ia) ? null : H.fetchQuery({
+async function d2(e, t) {
+ let n = c2(e.id), r = ua(e.id), i = H.getQueryData(ia) ? null : H.fetchQuery({
queryKey: ia,
queryFn: () => aa(t)
}), a = r ? {
...r,
item: r.item
- } : H.getQueryData(n) ?? rNe(e.id);
+ } : H.getQueryData(n) ?? oNe(e.id);
a ? H.setQueryData(n, a) : await H.fetchQuery({
queryKey: n,
- queryFn: () => c2(e.id, t)
+ queryFn: () => u2(e.id, t)
}), await i;
}
-function iNe(e, t, n, r) {
+function sNe(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 && va(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,
@@ -73396,32 +73409,32 @@ function iNe(e, t, n, r) {
src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""
};
}
-var aNe = (e) => la(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), oNe = {
+var cNe = (e) => la(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), lNe = {
"gofile.io": "Gofile",
"pixeldrain.com": "Pixeldrain",
"mega.nz": "MEGA",
"mega.io": "MEGA",
"mediafire.com": "MediaFire",
"drive.google.com": "Google Drive"
-}, sNe = {
+}, uNe = {
gofile: "Gofile",
pixeldrain: "Pixeldrain",
mega: "MEGA",
mediafire: "MediaFire",
google_drive: "Google Drive"
};
-function cNe(e) {
+function dNe(e) {
try {
let t = new URL(e).hostname.replace(/^www\./, "");
- return oNe[t] || t;
+ return lNe[t] || t;
} catch {
return "外部文件页";
}
}
-function u2(e, t) {
- return sNe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
+function f2(e, t) {
+ return uNe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
}
-function lNe(e, t, n = "") {
+function fNe(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;
@@ -73430,54 +73443,54 @@ function lNe(e, t, n = "") {
title: e.is_release && t.author ? `${t.author}:${i}` : i
};
}
-var uNe = (e) => String(e.name || "").trim(), d2 = (e, t) => e.tag_types?.[t] || "unknown", dNe = /* @__PURE__ */ new Set([
+var pNe = (e) => String(e.name || "").trim(), p2 = (e, t) => e.tag_types?.[t] || "unknown", mNe = /* @__PURE__ */ new Set([
"artist",
"character",
"copyright",
"metadata",
"unknown"
]);
-function fNe(e, t) {
- let n = d2(e, t);
- return `r34-${dNe.has(n) ? n : "general"}`;
+function hNe(e, t) {
+ let n = p2(e, t);
+ return `r34-${mNe.has(n) ? n : "general"}`;
}
-var f2 = [
+var m2 = [
"copyright",
"character",
"artist",
"general",
"metadata"
];
-function pNe(e, t) {
+function gNe(e, t) {
let n = e.detail_tags || e.tags || [], r = (t) => {
- let n = f2.indexOf(d2(e, t));
- return n < 0 ? f2.length : n;
+ let n = m2.indexOf(p2(e, t));
+ return n < 0 ? m2.length : n;
};
return [...n].sort((e, n) => r(e) - r(n) || t(e).localeCompare(t(n)));
}
-function p2(e, t) {
+function h2(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 mNe = (e, t) => ({
+var _Ne = (e, t) => ({
sources: e.sources,
aliases: e.aliases,
credentials: t
-}), m2 = (e) => e?.size ? { size: e.size } : {};
-function hNe(e, t) {
+}), g2 = (e) => e?.size ? { size: e.size } : {};
+function vNe(e, t) {
let { images: n, kind: r, src: i, selected: a } = t;
return n.length ? n.map((t) => ({
src: `/follow-stream?id=${e.id}&media=${t.index}`,
thumb: t.thumb_url || e.thumb_url || `/follow-stream?id=${e.id}&media=${t.index}`,
name: t.name || e.title,
- source: u2(t, e),
- ...m2(t)
+ source: f2(t, e),
+ ...g2(t)
})) : r === "image" && i ? [{
src: i,
thumb: e.thumb_url || i,
name: e.title,
- source: u2(a, e),
- ...m2(a)
+ source: f2(a, e),
+ ...g2(a)
}] : e.thumb_url ? [{
src: e.thumb_url,
thumb: e.thumb_url,
@@ -73485,7 +73498,7 @@ function hNe(e, t) {
source: e.provider_label || e.provider || "在线图片"
}] : [];
}
-var gNe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", h2 = "清理文件名中的特殊符号与乱码,也可按模板改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。", g2 = "指定路径时包含子目录,目录模板以该路径为起点。模板均留空时只清理文件名。", _2 = "点击参数插入光标处,选中文字可替换。方括号里的内容在字段为空时整段省略。", v2 = "按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。", y2 = "这些作品的源文件已删除,喜欢、稍后看、播放列表与观看历史仍保留。选择替代文件后,这些记录会转移到该文件,旧作品记录随之删除。", b2 = "勾选女优,永久删除她们在全部来源中的影片文件、影片资料和观看记录,包括回收站中的影片。女优档案和照片保留。共同出演的同一文件只删除一次。", x2 = "disabled data-skeleton-action", S2 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, C2 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, w2 = (e, t) => `<h3 class="text-title-2-medium text-text-primary${t ? ` ${t}` : ""}">${e}</h3>`, T2 = (e, { label: t = "", className: n = "" } = {}) => `<div data-input-size="medium" class="group flex h-max w-full flex-col items-start gap-1${n ? ` ${n}` : ""}">${t ? `<span class="flex items-center gap-0.5 text-body-medium text-text-primary">${t}</span>` : ""}<div class="relative flex w-full items-center rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent p-2"><div class="flex w-full items-center gap-2 min-w-0"><div class="flex flex-1 items-center gap-0.5 min-w-0"><span class="flex min-w-0 flex-1 items-center pl-1 font-sans text-body-regular text-text-tertiary">${e}&#8203;</span></div></div></div></div>`, _Ne = [
+var yNe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", _2 = "清理文件名中的特殊符号与乱码,也可按模板改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。", v2 = "指定路径时包含子目录,目录模板以该路径为起点。模板均留空时只清理文件名。", y2 = "点击参数插入光标处,选中文字可替换。方括号里的内容在字段为空时整段省略。", b2 = "按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。", x2 = "这些作品的源文件已删除,喜欢、稍后看、播放列表与观看历史仍保留。选择替代文件后,这些记录会转移到该文件,旧作品记录随之删除。", S2 = "勾选女优,永久删除她们在全部来源中的影片文件、影片资料和观看记录,包括回收站中的影片。女优档案和照片保留。共同出演的同一文件只删除一次。", C2 = "disabled data-skeleton-action", w2 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, T2 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, E2 = (e, t) => `<h3 class="text-title-2-medium text-text-primary${t ? ` ${t}` : ""}">${e}</h3>`, D2 = (e, { label: t = "", className: n = "" } = {}) => `<div data-input-size="medium" class="group flex h-max w-full flex-col items-start gap-1${n ? ` ${n}` : ""}">${t ? `<span class="flex items-center gap-0.5 text-body-medium text-text-primary">${t}</span>` : ""}<div class="relative flex w-full items-center rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent p-2"><div class="flex w-full items-center gap-2 min-w-0"><div class="flex flex-1 items-center gap-0.5 min-w-0"><span class="flex min-w-0 flex-1 items-center pl-1 font-sans text-body-regular text-text-tertiary">${e}&#8203;</span></div></div></div></div>`, bNe = [
"3em",
"5em",
"5em",
@@ -73495,7 +73508,7 @@ var gNe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", h2
"8em",
"8em",
"10em"
-], vNe = [
+], xNe = [
"5.8em",
"6.4em",
"7em",
@@ -73505,70 +73518,70 @@ var gNe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", h2
"5.8em",
"9em",
"9em"
-], E2 = (e, t) => Os({
+], O2 = (e, t) => Os({
variant: e,
size: "small",
- label: S2(t)
+ label: w2(t)
});
-function yNe() {
- return `<section class="${r$("stack")}">
- <div class="${t$.stack}">${w2("整理", "mb-3")}
- <p class="text-body-regular text-text-secondary">${h2}</p>
+function SNe() {
+ return `<section class="${a$("stack")}">
+ <div class="${r$.stack}">${E2("整理", "mb-3")}
+ <p class="text-body-regular text-text-secondary">${_2}</p>
<div class="mt-3 flex flex-col gap-3">
- <div class="flex min-w-0 flex-wrap items-start gap-2">${As(S2("3em"), {
+ <div class="flex min-w-0 flex-wrap items-start gap-2">${As(w2("3em"), {
prefix: "来源",
className: "w-fit min-w-25",
attrs: "aria-disabled=\"true\""
})}
- <div class="flex min-w-0 basis-64 flex-1 items-start gap-2">${T2("留空整理整个来源", { className: "min-w-0 flex-1" })}<button type="button" class="relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg bg-background-primary-default text-foreground-icon-primary border border-border-button-default shadow-xs size-9">${Ts("folder-search", "size-5 shrink-0")}</button></div>
+ <div class="flex min-w-0 basis-64 flex-1 items-start gap-2">${D2("留空整理整个来源", { className: "min-w-0 flex-1" })}<button type="button" class="relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg bg-background-primary-default text-foreground-icon-primary border border-border-button-default shadow-xs size-9">${Ts("folder-search", "size-5 shrink-0")}</button></div>
</div>
- <p class="text-caption-1-regular text-text-secondary">${g2}</p>
- ${T2(S2("12em"), { label: "文件名模板" })}${T2(S2("8em"), { label: "目录模板" })}
- <div class="flex flex-col gap-2"><p class="text-caption-1-medium text-text-secondary">套用模板</p><div class="flex flex-wrap gap-2">${_Ne.map((e) => E2("secondary", e)).join("")}</div></div>
- <p class="text-caption-1-regular text-text-secondary">路径示例:${S2("16em")}</p>
- <div class="flex flex-col gap-2"><p class="text-caption-1-regular text-text-secondary"><strong class="text-caption-1-semibold text-text-primary">插入参数</strong>(到文件名模板)</p><div class="flex flex-wrap gap-1">${vNe.map((e) => E2("ghost", e)).join("")}</div></div>
- <p class="text-caption-1-regular leading-4.5 text-text-secondary">${_2}</p>
+ <p class="text-caption-1-regular text-text-secondary">${v2}</p>
+ ${D2(w2("12em"), { label: "文件名模板" })}${D2(w2("8em"), { label: "目录模板" })}
+ <div class="flex flex-col gap-2"><p class="text-caption-1-medium text-text-secondary">套用模板</p><div class="flex flex-wrap gap-2">${bNe.map((e) => O2("secondary", e)).join("")}</div></div>
+ <p class="text-caption-1-regular text-text-secondary">路径示例:${w2("16em")}</p>
+ <div class="flex flex-col gap-2"><p class="text-caption-1-regular text-text-secondary"><strong class="text-caption-1-semibold text-text-primary">插入参数</strong>(到文件名模板)</p><div class="flex flex-wrap gap-1">${xNe.map((e) => O2("ghost", e)).join("")}</div></div>
+ <p class="text-caption-1-regular leading-4.5 text-text-secondary">${y2}</p>
</div>
</div>
- <footer class="${n$.stack}">${Os({
+ <footer class="${i$.stack}">${Os({
label: "预览",
- attrs: x2
+ attrs: C2
})}</footer>
</section>`;
}
-var bNe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
- <section class="${r$("split")}"><div class="${t$.split}">${w2("资源同步", "mb-2")}
- <p class="max-w-190 text-body-2-regular leading-5 text-text-secondary">${v2}</p></div>
- <footer class="${n$.split}">${Os({
+var CNe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
+ <section class="${a$("split")}"><div class="${r$.split}">${E2("资源同步", "mb-2")}
+ <p class="max-w-190 text-body-2-regular leading-5 text-text-secondary">${b2}</p></div>
+ <footer class="${i$.split}">${Os({
glyph: "git-compare",
label: "检查文件",
- attrs: x2
+ attrs: C2
})}</footer></section>
-</section>`, D2 = (e, t = !1) => `<div class="flex min-w-0 flex-col gap-0.5"><span class="text-caption-1-regular leading-5 text-text-secondary">${e}</span><b class="text-title-2-semibold font-bold leading-5 tabular-nums text-text-primary">${S2("3em")}</b>${t ? `<small class="text-caption-1-regular leading-5 text-text-secondary">${S2("14em")}</small>` : ""}</div>`, xNe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
- <section class="${r$("stack")}"><div class="${t$.stack}">${w2("链接管理", "mb-2")}
- <div class="link-stat-grid mt-4 gap-x-8 gap-y-3">${D2("链接总数", !0)}${[
+</section>`, k2 = (e, t = !1) => `<div class="flex min-w-0 flex-col gap-0.5"><span class="text-caption-1-regular leading-5 text-text-secondary">${e}</span><b class="text-title-2-semibold font-bold leading-5 tabular-nums text-text-primary">${w2("3em")}</b>${t ? `<small class="text-caption-1-regular leading-5 text-text-secondary">${w2("14em")}</small>` : ""}</div>`, wNe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
+ <section class="${a$("stack")}"><div class="${r$.stack}">${E2("链接管理", "mb-2")}
+ <div class="link-stat-grid mt-4 gap-x-8 gap-y-3">${k2("链接总数", !0)}${[
0,
1,
2
-].map(() => D2(S2("5em"))).join("")}</div>
+].map(() => k2(w2("5em"))).join("")}</div>
<div class="mt-4 flex min-w-0 flex-col gap-0.5"><span class="text-caption-1-regular text-text-secondary">主要站点</span><div class="flex min-w-0 flex-wrap gap-x-5 gap-y-2">${[
"7em",
"10em",
"8em"
-].map((e) => `<span class="inline-flex min-w-0 items-center gap-1.5 text-body-2-medium">${C2(16, 16)}${S2(e)}${C2(28, 24)}</span>`).join("")}</div></div></div>
- <footer class="${n$.stack}">${Os({
+].map((e) => `<span class="inline-flex min-w-0 items-center gap-1.5 text-body-2-medium">${T2(16, 16)}${w2(e)}${T2(28, 24)}</span>`).join("")}</div></div></div>
+ <footer class="${i$.stack}">${Os({
glyph: "link",
label: "检查死链",
- attrs: x2
+ attrs: C2
})}</footer></section>
</section>`;
-function O2({ title: e, description: t, search: n = "", columns: r, rows: i }) {
- let a = r.reduce((e, { width: t }) => e + t, 48), o = `<th style="width:48px"><span class="flex items-center gap-0.5">${$0()}</span></th>${r.map(({ label: e, width: t }, n) => `<th${n ? ` style="width:${t}px"` : ""}><span class="flex items-center gap-0.5">${e}<span data-sort-indicator>${n2}</span></span></th>`).join("")}<th data-table-space style="width:0"></th>`, s = `<tr><td>${$0()}</td>${r.map(({ cell: e }) => `<td>${e}</td>`).join("")}<td data-table-space></td></tr>`, c = n ? `<div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Ds("", "", n)}</div>` : "";
- return `<div data-data-table-panel class="${bU({
+function A2({ title: e, description: t, search: n = "", columns: r, rows: i }) {
+ let a = r.reduce((e, { width: t }) => e + t, 48), o = `<th style="width:48px"><span class="flex items-center gap-0.5">${t2()}</span></th>${r.map(({ label: e, width: t }, n) => `<th${n ? ` style="width:${t}px"` : ""}><span class="flex items-center gap-0.5">${e}<span data-sort-indicator>${i2}</span></span></th>`).join("")}<th data-table-space style="width:0"></th>`, s = `<tr><td>${t2()}</td>${r.map(({ cell: e }) => `<td>${e}</td>`).join("")}<td data-table-space></td></tr>`, c = n ? `<div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Ds("", "", n)}</div>` : "";
+ return `<div data-data-table-panel class="${SU({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
})}">
- <div data-responsive-toolbar><div data-toolbar-heading>${w2(e, "")}<span class="text-body-2-regular tabular-nums text-text-secondary">${S2("4em")}</span></div>
+ <div data-responsive-toolbar><div data-toolbar-heading>${E2(e, "")}<span class="text-body-2-regular tabular-nums text-text-secondary">${w2("4em")}</span></div>
<div data-toolbar-actions>${c}<div class="flex flex-none gap-2">${Os({
variant: "secondary",
label: "显示列"
@@ -73579,38 +73592,38 @@ function O2({ title: e, description: t, search: n = "", columns: r, rows: i }) {
<span class="flex flex-none items-center gap-2">${As("默认顺序", { prefix: "排序" })}${Os({
variant: "secondary",
glyph: "arrow-up",
- attrs: x2
+ attrs: C2
})}</span></div></div>
<p class="text-body-2-regular text-text-secondary">${t}</p>
<div data-board-data-table data-resizable-table data-follow-table><div class="relative min-w-0"><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm" style="min-width:${a}px"><thead><tr>${o}</tr></thead><tbody>${s.repeat(i)}</tbody></table></div></div></div>
- <div data-table-pagination class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular tabular-nums text-text-secondary">${S2("8em")}</span><div data-toolbar-actions>${As("每页 20 条", { size: "sm" })}</div></div>
+ <div data-table-pagination class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular tabular-nums text-text-secondary">${w2("8em")}</span><div data-toolbar-actions>${As("每页 20 条", { size: "sm" })}</div></div>
</div>`;
}
-var SNe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span class="text-body-regular">${S2(e)}</span><small class="text-caption-1-regular">${S2(t)}</small></span>`, CNe = {
+var TNe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span class="text-body-regular">${w2(e)}</span><small class="text-caption-1-regular">${w2(t)}</small></span>`, ENe = {
organize: {
label: "正在读取整理配置",
- body: yNe
+ body: SNe
},
"resource-sync": {
label: "正在读取资源同步状态",
- body: bNe
+ body: CNe
},
"orphan-records": {
label: "正在读取文件已丢失的记录",
- body: () => `<section class="flex scroll-mt-20 flex-col gap-4">${O2({
+ body: () => `<section class="flex scroll-mt-20 flex-col gap-4">${A2({
title: "文件已丢失的记录",
- description: y2,
+ description: x2,
rows: 4,
columns: [
{
label: "作品",
width: 480,
- cell: `<span class="flex min-w-0 items-center gap-3"><span class="skeleton flex-none rounded-lg max-cleanup-tight:hidden" style="width:96px;height:60px"></span>${SNe("70%", "40%")}</span>`
+ cell: `<span class="flex min-w-0 items-center gap-3"><span class="skeleton flex-none rounded-lg max-cleanup-tight:hidden" style="width:96px;height:60px"></span>${TNe("70%", "40%")}</span>`
},
{
label: "个人记录",
width: 176,
- cell: S2("6em")
+ cell: w2("6em")
},
{
label: "操作",
@@ -73619,7 +73632,7 @@ var SNe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span cl
variant: "secondary",
size: "small",
label: "删除记录",
- attrs: x2
+ attrs: C2
})
}
]
@@ -73627,50 +73640,50 @@ var SNe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span cl
},
"media-repair": {
label: "正在读取媒体修复状态",
- body: aAe
+ body: cAe
},
links: {
label: "正在读取链接统计",
- body: xNe
+ body: wNe
},
"batch-delete": {
label: "正在读取女优列表",
- body: () => `<section class="flex min-w-0 scroll-mt-20 flex-col gap-3">${O2({
+ body: () => `<section class="flex min-w-0 scroll-mt-20 flex-col gap-3">${A2({
title: "批量删除",
- description: b2,
+ description: S2,
search: "搜索女优姓名或别名",
rows: 12,
columns: [
{
label: "女优",
width: 280,
- cell: `<span class="flex min-w-0 items-center gap-3">${C2(32, 32, !0)}${S2("5em")}</span>`
+ cell: `<span class="flex min-w-0 items-center gap-3">${T2(32, 32, !0)}${w2("5em")}</span>`
},
{
label: "影片",
width: 104,
- cell: S2("3em")
+ cell: w2("3em")
},
{
label: "文件",
width: 104,
- cell: S2("3em")
+ cell: w2("3em")
},
{
label: "登记大小",
width: 136,
- cell: S2("4em")
+ cell: w2("4em")
}
]
})}</section>`
}
};
-function k2(e) {
- let { label: t, body: n } = CNe[e];
+function j2(e) {
+ let { label: t, body: n } = ENe[e];
return `<div class="peach-react" data-skeleton="cleanup/${e}" aria-busy="true" role="status" aria-label="${t}"><div aria-hidden="true" inert class="mx-auto flex w-full max-w-board flex-col gap-8">${n()}</div></div>`;
}
// src/management-placeholder.ts
-var A2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => ac(e, {
+var M2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => ac(e, {
variant: r || (t ? "cards" : "panel"),
className: n,
gridClass: s,
@@ -73678,7 +73691,7 @@ var A2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill
...i ? { count: i } : {},
...a === void 0 ? {} : { fill: a },
...o ? { cardRatio: o } : {}
-}), wNe = [
+}), DNe = [
"元数据字段",
"创作者标签",
"厂牌 Logo",
@@ -73688,39 +73701,39 @@ var A2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill
"FC2 评论标记",
"FC2 跨号相似",
"片尾/出处证据"
-], TNe = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${z(e)}">
+], ONe = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${z(e)}">
<div class="reviewcontrols" data-section-nav><h2 class="review-category-title">复核分类</h2>
- <div class="reviewtabs" data-section-items>${wNe.map((e, t) => `<button type="button" disabled aria-selected="${t === 0}">${z(e)}<span class="skeleton reviewcountskeleton" aria-hidden="true"></span></button>`).join("")}</div></div>
+ <div class="reviewtabs" data-section-items>${DNe.map((e, t) => `<button type="button" disabled aria-selected="${t === 0}">${z(e)}<span class="skeleton reviewcountskeleton" aria-hidden="true"></span></button>`).join("")}</div></div>
<div class="reviewbulkbar reviewbulktoolbar" aria-hidden="true">${"<span class=\"skeleton reviewtoolskeleton\"></span>".repeat(3)}</div>
- <section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, ENe = {
- "/data-cleanup": () => oAe(),
- ...Object.fromEntries(Yf.map((e) => [e.path, () => k2(e.key)])),
- "/resource-sync": () => k2("resource-sync"),
- "/review": () => TNe(),
+ <section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, kNe = {
+ "/data-cleanup": () => lAe(),
+ ...Object.fromEntries(Yf.map((e) => [e.path, () => j2(e.key)])),
+ "/resource-sync": () => j2("resource-sync"),
+ "/review": () => ONe(),
"/sources": () => `<div class="scraping-page"><p>高清图片可能要经代理才能下载,先检查连接。</p>
- ${A2("正在读取采集来源", {
+ ${M2("正在读取采集来源", {
cards: !0,
count: 4,
fill: !1,
className: "cleanup-skeleton"
})}</div>`
};
-function j2(e, { followLayout: t, followSort: n, followDir: r }) {
- return ZMe(e, {
+function N2(e, { followLayout: t, followSort: n, followDir: r }) {
+ return eNe(e, {
followLayout: t,
...e === "/subscriptions" ? {
followSort: n,
followDir: r
} : {}
- }) || (ENe[e] ?? (() => A2("正在读取页面")))();
+ }) || (kNe[e] ?? (() => M2("正在读取页面")))();
}
-var M2 = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
-function N2(e, t) {
- let n = e.querySelector("[data-skeleton]")?.dataset.skeleton || "", r = M2(t);
+var P2 = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
+function F2(e, t) {
+ let n = e.querySelector("[data-skeleton]")?.dataset.skeleton || "", r = P2(t);
r && r === n || (e.innerHTML = t, pc(e));
}
// src/react/components/related-section.tsx
-function P2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a, online: o = !1, ...s }) {
+function I2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a, online: o = !1, ...s }) {
let c = (0, F.useCallback)((e) => {
e && (pc(e), t(e));
}, [t]);
@@ -73733,17 +73746,17 @@ function P2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a,
children: "接着看"
}), i ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-related-state": "",
- children: /* @__PURE__ */ (0, I.jsx)(FG, {
+ children: /* @__PURE__ */ (0, I.jsx)(LG, {
message: i,
onRetry: a || (() => {})
})
}) : r && !n ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-related-state": "",
- children: /* @__PURE__ */ (0, I.jsx)(cV, {
+ children: /* @__PURE__ */ (0, I.jsx)(uV, {
size: "compact",
- icon: XB,
+ icon: QB,
title: "暂无接着看的内容",
- actions: /* @__PURE__ */ (0, I.jsx)(gL, {
+ actions: /* @__PURE__ */ (0, I.jsx)(vL, {
size: "small",
href: o ? "/follow" : "/",
children: o ? "返回关注" : "浏览馆藏"
@@ -73759,7 +73772,7 @@ function P2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a,
});
}
// src/react/components/detail-continuation.tsx
-function F2({ queue: e, children: t, queueCards: n }) {
+function L2({ queue: e, children: t, queueCards: n }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-detail-continuation": "",
"data-queue-cards": n == null ? void 0 : Math.min(3, n),
@@ -73767,7 +73780,7 @@ function F2({ queue: e, children: t, queueCards: n }) {
});
}
// src/react/components/media-carousel.tsx
-function I2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail: i }) {
+function R2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail: i }) {
let a = (0, F.useRef)(null), o = e.some((e) => e.video), s = !!i;
if ((0, F.useLayoutEffect)(() => {
let e = a.current?.querySelector("[data-media-thumbnails]");
@@ -73847,7 +73860,7 @@ function I2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail
"data-media-thumbnails": "",
role: "group",
"aria-label": "媒体缩略图",
- children: e.map((e, r) => /* @__PURE__ */ (0, I.jsx)(DNe, {
+ children: e.map((e, r) => /* @__PURE__ */ (0, I.jsx)(ANe, {
item: e,
selected: r === t,
onSelect: n,
@@ -73866,7 +73879,7 @@ function I2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail
]
});
}
-function DNe({ item: e, selected: t, onSelect: n, render: r }) {
+function ANe({ item: e, selected: t, onSelect: n, render: r }) {
let i = (0, F.useRef)(null), [a, o] = (0, F.useState)(typeof IntersectionObserver > "u");
return (0, F.useEffect)(() => {
if (!i.current || a) return;
@@ -73892,14 +73905,14 @@ function DNe({ item: e, selected: t, onSelect: n, render: r }) {
});
}
// src/react/follow-detail/follow-related.ts
-var ONe = (e, t, n) => [
+var jNe = (e, t, n) => [
"follow-feed",
"related",
e,
t,
n
];
-function L2(e, t, n, r) {
+function z2(e, t, n, r) {
let i = new Set((t.group ? la(t.group) : [t.item]).map((e) => e.id)), a = /* @__PURE__ */ new Set(), o = new Set(t.item.tags || []), s = t.sources.find((e) => e.id === t.item.source_id)?.author_key, c = new Map(e.flatMap((e) => e.sources || []).map((e) => [e.id, e]));
return e.flatMap((e) => e.groups || []).filter((e) => {
let t = la(e);
@@ -73914,19 +73927,19 @@ function L2(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);
}
-var kNe = /* @__PURE__ */ new Set(["metadata", "artist"]);
-function ANe(e, t, n) {
+var MNe = /* @__PURE__ */ new Set(["metadata", "artist"]);
+function NNe(e, t, n) {
let r = (e) => e.detail_tags || e.tags || [], i = new Set(r(t.item)), a = t.sources.find((e) => e.id === t.item.source_id)?.author_key, o = new Map(e.flatMap((e) => e.sources || []).map((e) => [e.id, e])), s = /* @__PURE__ */ new Map();
for (let t of e.flatMap((e) => e.groups || [])) for (let e of r(ga(t, n))) s.set(e, (s.get(e) || 0) + 1);
return (e) => {
- let t = ga(e, n), c = t.source_id === void 0 ? void 0 : o.get(t.source_id), l = r(t).filter((e) => i.has(e) && !kNe.has(t.tag_types?.[e] || "")).sort((e, t) => (s.get(e) || 0) - (s.get(t) || 0) || e.localeCompare(t));
+ let t = ga(e, n), c = t.source_id === void 0 ? void 0 : o.get(t.source_id), l = r(t).filter((e) => i.has(e) && !MNe.has(t.tag_types?.[e] || "")).sort((e, t) => (s.get(e) || 0) - (s.get(t) || 0) || e.localeCompare(t));
return {
reasons: a && c?.author_key === a ? ["同创作者"] : [],
tags: l
};
};
}
-async function jNe(e, t, n, r) {
+async function PNe(e, t, n, r) {
let i = e.sources.find((t) => t.id === e.item.source_id)?.author_key || "", a = {
..._a(i),
status: "new",
@@ -73940,22 +73953,22 @@ async function jNe(e, t, n, r) {
}, t), r);
return o.push(n), n;
}, c = await s(i, 0);
- return L2(o, e, t, n).length < n && c.has_more && await s(i, (c.offset || 0) + 100), i && L2(o, e, t, n).length < n && await s("", 0), {
+ return z2(o, e, t, n).length < n && c.has_more && await s(i, (c.offset || 0) + 100), i && z2(o, e, t, n).length < n && await s("", 0), {
pages: o,
pageParams: o.map((e) => e.offset || 0)
};
}
// src/react/components/detail-tags.tsx
-var R2 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var B2 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
-}), MNe = 20;
-function z2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, label: a, onOpen: o, onAdd: s, onRemove: c, busyAttrs: l }) {
+}), FNe = 20;
+function V2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, label: a, onOpen: o, onAdd: s, onRemove: c, busyAttrs: l }) {
let [u, d] = (0, F.useState)(null), [f, p] = (0, F.useState)(!1), m = Ft({
queryKey: ["tag-management", n],
queryFn: ({ signal: e }) => B(`/api/tag-management${n === "online" ? "?scope=online" : ""}`, e),
enabled: f && (n === "online" || !t.length)
- }), h = m.data?.items?.filter((e) => !e.hidden && !e.blocked && (n === "online" || e.cat !== "meta")) || t, g = fH(), _ = (e) => {
+ }), h = m.data?.items?.filter((e) => !e.hidden && !e.blocked && (n === "online" || e.cat !== "meta")) || t, g = mH(), _ = (e) => {
g.run("rename", async (t) => {
let r = (await H.fetchQuery({
queryKey: ["tag-management", n],
@@ -73966,7 +73979,7 @@ function z2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
}, (e) => d(e));
}, [v, y] = (0, F.useState)(!1), [b, x] = (0, F.useState)([]), S = (e) => {
x((t) => [...t, Un(e)]), s(e);
- }, C = e.length > 24, w = C && !v ? e.filter((e, t) => t < MNe || b.includes(Un(e.k))) : e;
+ }, C = e.length > 24, w = C && !v ? e.filter((e, t) => t < FNe || b.includes(Un(e.k))) : e;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-tags": "",
@@ -73990,9 +74003,9 @@ function z2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
"data-edit-tag": e.k,
title: "修改标签名称",
"aria-label": `修改标签 ${a(e.k)}`,
- ...fV(!!g.busy),
+ ...mV(!!g.busy),
onClick: () => _(e),
- children: /* @__PURE__ */ (0, I.jsx)(R2, { name: "pencil" })
+ children: /* @__PURE__ */ (0, I.jsx)(B2, { name: "pencil" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -74001,7 +74014,7 @@ function z2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
"aria-label": `删除标签 ${a(e.k)}`,
...l(e.k),
onClick: () => c(e),
- children: /* @__PURE__ */ (0, I.jsx)(R2, { name: "x" })
+ children: /* @__PURE__ */ (0, I.jsx)(B2, { name: "x" })
})
]
}, e.k)),
@@ -74010,11 +74023,11 @@ function z2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
size: "small",
"data-tags-more": "",
"aria-expanded": v,
- trailingIcon: v ? vB : hB,
+ trailingIcon: v ? bB : _B,
onClick: () => y(!v),
children: v ? "收起" : `还有 ${e.length - w.length} 个`
}) : null,
- /* @__PURE__ */ (0, I.jsx)(NNe, {
+ /* @__PURE__ */ (0, I.jsx)(INe, {
tags: e,
candidates: h,
label: a,
@@ -74026,11 +74039,11 @@ function z2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
})
]
}),
- g.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ g.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "error",
children: g.error
}) : null,
- m.isError ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ m.isError ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -74039,7 +74052,7 @@ function z2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
}),
children: "无法读取标签候选"
}) : null,
- u ? /* @__PURE__ */ (0, I.jsx)(KQ, {
+ u ? /* @__PURE__ */ (0, I.jsx)(JQ, {
operation: "rename",
selected: [u],
scope: n,
@@ -74048,8 +74061,8 @@ function z2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
}) : null
] });
}
-function NNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a, onOpen: o, loading: s }) {
- let c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = LV(), d = (0, F.useRef)(null), f = (0, F.useRef)(!1), [p, m] = (0, F.useState)(!1), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(""), [y, b] = (0, F.useState)(-1), x = (0, F.useRef)({
+function INe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a, onOpen: o, loading: s }) {
+ let c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = zV(), d = (0, F.useRef)(null), f = (0, F.useRef)(!1), [p, m] = (0, F.useState)(!1), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(""), [y, b] = (0, F.useState)(-1), x = (0, F.useRef)({
adding: i,
query: h,
tags: e,
@@ -74094,7 +74107,7 @@ function NNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
_,
t.length
]);
- let w = p ? tde(_, t, NP()) : {
+ let w = p ? ide(_, t, FP()) : {
recent: [],
results: [],
create: ""
@@ -74108,7 +74121,7 @@ function NNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
], E = (e, t) => {
C(), t || r(e.k);
}, D = (t) => {
- if (!QU(t.nativeEvent)) {
+ if (!eW(t.nativeEvent)) {
if (t.key === "Escape") t.preventDefault(), t.stopPropagation(), C(), c.current?.focus();
else if (t.key === "ArrowDown" || t.key === "ArrowUp") {
if (t.preventDefault(), !T.length) return;
@@ -74137,7 +74150,7 @@ function NNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
"aria-pressed": i,
onClick: () => E(t, i),
children: [
- /* @__PURE__ */ (0, I.jsx)(R2, { name: i ? "check" : "tags" }),
+ /* @__PURE__ */ (0, I.jsx)(B2, { name: i ? "check" : "tags" }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-pick-name": "",
children: n(t.k)
@@ -74157,8 +74170,8 @@ function NNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
title: "添加标签",
"aria-label": "添加标签",
"aria-expanded": p,
- ...fV(!!i),
- children: /* @__PURE__ */ (0, I.jsx)(R2, { name: "plus" })
+ ...mV(!!i),
+ children: /* @__PURE__ */ (0, I.jsx)(B2, { name: "plus" })
}), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: l,
id: "tagPicker",
@@ -74171,7 +74184,7 @@ function NNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
children: [s ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: Bs("正在读取标签") }
- }) : /* @__PURE__ */ (0, I.jsx)(R2, { name: "search" }), /* @__PURE__ */ (0, I.jsx)("input", {
+ }) : /* @__PURE__ */ (0, I.jsx)(B2, { name: "search" }), /* @__PURE__ */ (0, I.jsx)("input", {
ref: d,
id: "tagPickSearch",
maxLength: 80,
@@ -74215,7 +74228,7 @@ function NNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
onClick: () => {
C(), r(w.create);
},
- children: [/* @__PURE__ */ (0, I.jsx)(R2, { name: "plus" }), /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(B2, { name: "plus" }), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-pick-name": "",
children: [
"新建“",
@@ -74232,8 +74245,8 @@ function NNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
})] });
}
// src/react/follow-detail/follow-tags.tsx
-function PNe({ item: e, label: t, actions: n }) {
- let r = fH(), i = () => H.invalidateQueries({ predicate: (e) => [
+function LNe({ item: e, label: t, actions: n }) {
+ let r = mH(), i = () => H.invalidateQueries({ predicate: (e) => [
"follow-feed",
"follow",
"tag-management"
@@ -74256,7 +74269,7 @@ function PNe({ item: e, label: t, actions: n }) {
}, "POST", t);
a(n), await i();
}, () => {
- o === "add" && PP(s);
+ o === "add" && IP(s);
let r = o === "add" ? "remove" : e.custom_tags?.includes(s) ? "add" : "restore";
n.toast(o === "add" ? `已添加标签「${t(s)}」` : `已删除标签「${t(s)}」`, { undo: async () => {
let t = await V("/api/follow/tag", {
@@ -74272,10 +74285,10 @@ function PNe({ item: e, label: t, actions: n }) {
"aria-label": "内容标签",
"data-follow-tag-editor": "",
"data-follow-detail-tags": "",
- children: [/* @__PURE__ */ (0, I.jsx)(z2, {
- tags: pNe(e, t).map((t) => ({
+ children: [/* @__PURE__ */ (0, I.jsx)(V2, {
+ tags: gNe(e, t).map((t) => ({
k: t,
- cat: fNe(e, t)
+ cat: hNe(e, t)
})),
scope: "online",
adding: !!r.busy,
@@ -74284,30 +74297,30 @@ function PNe({ item: e, label: t, actions: n }) {
onOpen: n.openTag,
onAdd: (e) => o("add", e),
onRemove: (e) => o("remove", e.k),
- busyAttrs: () => fV(!!r.busy)
- }), r.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ busyAttrs: () => mV(!!r.busy)
+ }), r.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "error",
children: r.error
}) : null]
});
}
// src/react/follow-detail/follow-detail-page.tsx
-var B2 = (e) => Number(e) > 0, FNe = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var H2 = (e) => Number(e) > 0, RNe = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
-}), V2 = R("external-link", "ui-externalmark");
-function INe(e) {
+}), U2 = R("external-link", "ui-externalmark");
+function zNe(e) {
let { id: t, actions: n } = e, r = Ft({
- queryKey: o2(t),
- queryFn: ({ signal: e }) => c2(t, e)
+ queryKey: c2(t),
+ queryFn: ({ signal: e }) => u2(t, e)
}), i = Ft({
queryKey: ia,
queryFn: ({ signal: e }) => aa(e)
}), a = (0, F.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, F.useState)(e.mediaIndex);
- return r.data ? /* @__PURE__ */ (0, I.jsx)(zNe, {
+ return r.data ? /* @__PURE__ */ (0, I.jsx)(HNe, {
...e,
data: r.data,
- context: mNe(r.data, a),
+ context: _Ne(r.data, a),
mediaIndex: o,
onMedia: s
}) : /* @__PURE__ */ (0, I.jsx)("div", {
@@ -74316,9 +74329,9 @@ function INe(e) {
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-media": "",
"data-follow-detail-media": "none",
- children: [/* @__PURE__ */ (0, I.jsx)(H2, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
+ children: [/* @__PURE__ */ (0, I.jsx)(W2, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-detail-placeholder": "",
- children: r.isError ? LNe(r.error) ? /* @__PURE__ */ (0, I.jsx)(RNe, { onBack: n.close }) : /* @__PURE__ */ (0, I.jsx)(FG, {
+ children: r.isError ? BNe(r.error) ? /* @__PURE__ */ (0, I.jsx)(VNe, { onBack: n.close }) : /* @__PURE__ */ (0, I.jsx)(LG, {
message: xn(r.error),
onRetry: () => void r.refetch()
}) : null
@@ -74326,8 +74339,8 @@ function INe(e) {
})
});
}
-var LNe = (e) => e instanceof s2 || e instanceof sr && e.status === 404;
-function RNe({ onBack: e }) {
+var BNe = (e) => e instanceof l2 || e instanceof sr && e.status === 404;
+function VNe({ onBack: e }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-detail-gone": "",
onClick: (t) => {
@@ -74336,7 +74349,7 @@ function RNe({ onBack: e }) {
dangerouslySetInnerHTML: { __html: zs("这条关注内容已不存在,可能已被来源删除或已清理。", { actionLabel: "回到关注" }) }
});
}
-var H2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
+var W2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -74345,8 +74358,8 @@ var H2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function zNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
- let { item: c, group: l } = e, u = iNe(c, l, n, i), d = GNe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, F.useState)({
+function HNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
+ let { item: c, group: l } = e, u = sNe(c, l, n, i), d = JNe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, F.useState)({
key: "",
kind: ""
}), h = {
@@ -74366,20 +74379,20 @@ function zNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
c,
u.kind
]);
- let g = !u.embedded.length && u.collection ? aNe(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, I.jsx)(K2, {
+ let g = !u.embedded.length && u.collection ? cNe(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, I.jsx)(J2, {
item: c,
current: u.selected.index,
helpers: o,
actions: s,
onMedia: r
- }) : u.collection ? g ? /* @__PURE__ */ (0, I.jsx)(K2, {
+ }) : u.collection ? g ? /* @__PURE__ */ (0, I.jsx)(J2, {
item: g,
current: null,
helpers: o,
actions: s,
onMedia: r,
currentId: c.id
- }) : /* @__PURE__ */ (0, I.jsx)(HNe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(GNe, {
group: u.collection,
itemId: c.id,
helpers: o,
@@ -74389,14 +74402,14 @@ function zNe({ 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, I.jsx)(VNe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(WNe, {
item: c,
media: u,
helpers: o,
actions: s,
onMedia: r,
issues: h
- }, f), /* @__PURE__ */ (0, I.jsx)(UNe, {
+ }, f), /* @__PURE__ */ (0, I.jsx)(KNe, {
item: c,
data: e,
context: t,
@@ -74406,9 +74419,9 @@ function zNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
helpers: o,
actions: s
})]
- }), /* @__PURE__ */ (0, I.jsx)(F2, {
+ }), /* @__PURE__ */ (0, I.jsx)(L2, {
queue: _,
- children: a > 0 ? /* @__PURE__ */ (0, I.jsx)(BNe, {
+ children: a > 0 ? /* @__PURE__ */ (0, I.jsx)(UNe, {
data: e,
media: u.kind === "image" ? "images" : u.kind === "video" ? "videos" : i,
limit: a,
@@ -74418,23 +74431,23 @@ function zNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
}) : null
})] });
}
-function BNe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
+function UNe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
let o = Ft({
- queryKey: ONe(e.item.id, t, n),
- queryFn: ({ signal: r }) => jNe(e, t, n, r)
- }), [s] = (0, F.useState)(() => A2("正在读取推荐", {
+ queryKey: jNe(e.item.id, t, n),
+ queryFn: ({ signal: r }) => PNe(e, t, n, r)
+ }), [s] = (0, F.useState)(() => M2("正在读取推荐", {
cards: !0,
className: "related-skeleton"
})), c = (0, F.useMemo)(() => ({
openDetail: a.openItem,
openAuthor: a.openAuthor,
canFlip: a.canFlip
- }), [a]), l = L2(o.data?.pages || [], e, t, n), u = ANe(o.data?.pages || [], e, t), d = o.data?.pages.at(-1)?.sources || e.sources, f = {
+ }), [a]), l = z2(o.data?.pages || [], e, t, n), u = NNe(o.data?.pages || [], e, t), d = o.data?.pages.at(-1)?.sources || e.sources, f = {
...r,
sources: d,
aliases: o.data?.pages.at(-1)?.author_aliases || r.aliases
};
- return /* @__PURE__ */ (0, I.jsx)(P2, {
+ return /* @__PURE__ */ (0, I.jsx)(I2, {
online: !0,
"data-follow-related": "",
wireDrag: i.wireDrag,
@@ -74444,11 +74457,11 @@ function BNe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }
onRetry: () => {
o.refetch();
},
- children: o.data ? l.map((e) => /* @__PURE__ */ (0, I.jsx)(EZ, {
+ children: o.data ? l.map((e) => /* @__PURE__ */ (0, I.jsx)(OZ, {
variant: "next",
group: e,
media: t,
- authorSources: p2(e.primary, d),
+ authorSources: h2(e.primary, d),
context: f,
selected: !1,
selectMode: !1,
@@ -74462,8 +74475,8 @@ function BNe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }
})
});
}
-function VNe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
- let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, F.useRef)(null), p = hNe(e, t), m = o?.thumb_url || e.thumb_url || "", h = e.playable && a === "video", g = e.playable && a === "image" ? s : e.thumb_url || "", _ = e.playable && a === "image" && m && m !== s ? m : "", [v, y] = (0, F.useState)(g), b = (0, F.useRef)({
+function WNe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
+ let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, F.useRef)(null), p = vNe(e, t), m = o?.thumb_url || e.thumb_url || "", h = e.playable && a === "video", g = e.playable && a === "image" ? s : e.thumb_url || "", _ = e.playable && a === "image" && m && m !== s ? m : "", [v, y] = (0, F.useState)(g), b = (0, F.useRef)({
item: e,
selected: o
}), x = (0, F.useRef)(i.failed);
@@ -74477,14 +74490,14 @@ function VNe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
"data-framed": d ? "" : void 0,
style: { "--follow-frame-ratio": d ? d.toFixed(4) : void 0 },
children: [
- /* @__PURE__ */ (0, I.jsx)(H2, { onClose: n.close }),
+ /* @__PURE__ */ (0, I.jsx)(W2, { onClose: n.close }),
h ? null : g ? /* @__PURE__ */ (0, I.jsx)("img", {
"data-follow-detail-poster": "",
"data-zoomable": p.length ? "" : void 0,
src: v,
alt: e.title,
referrerPolicy: "no-referrer",
- onClick: p.length ? () => void hZ(Math.max(0, l), p) : void 0,
+ onClick: p.length ? () => void _Z(Math.max(0, l), p) : void 0,
onError: () => {
_ && v !== _ ? (y(_), i.thumbFallback()) : i.failed();
}
@@ -74492,10 +74505,10 @@ function VNe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
"data-follow-detail-placeholder": "",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: lG(e.resource_provider || e.provider) }
+ dangerouslySetInnerHTML: { __html: dG(e.resource_provider || e.provider) }
}), /* @__PURE__ */ (0, I.jsx)("span", { children: "没有可用预览" })]
}),
- u ? /* @__PURE__ */ (0, I.jsx)(I2, {
+ u ? /* @__PURE__ */ (0, I.jsx)(R2, {
items: c,
position: l,
onSelect: r,
@@ -74512,11 +74525,11 @@ function VNe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
]
});
}
-var U2 = ({ kind: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var G2 = ({ kind: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-nothumb": "",
dangerouslySetInnerHTML: { __html: R(e === "image" ? "image-off" : "play") }
});
-function W2({ src: e }) {
+function K2({ src: e }) {
let [t, n] = (0, F.useState)(!1);
return t ? null : /* @__PURE__ */ (0, I.jsx)("img", {
src: e,
@@ -74526,27 +74539,27 @@ function W2({ src: e }) {
onError: () => n(!0)
});
}
-function G2(e) {
+function q2(e) {
return (0, F.useCallback)((t) => {
t && e.wireDrag(t);
}, [e]);
}
-function HNe({ group: e, itemId: t, helpers: n, actions: r }) {
- let i = va(e), a = G2(n);
- return /* @__PURE__ */ (0, I.jsx)(vK, {
+function GNe({ group: e, itemId: t, helpers: n, actions: r }) {
+ let i = va(e), a = q2(n);
+ return /* @__PURE__ */ (0, I.jsx)(bK, {
kind: "collection",
"data-follow-queue": "",
title: "视频合集",
onClose: r.close,
listRef: a,
- summary: `${dG(e.primary)} · ${i.length} 个视频`,
+ summary: `${pG(e.primary)} · ${i.length} 个视频`,
children: i.map((n) => {
- let i = e.duplicates.includes(n), a = lNe(e, n, i ? n.provider_label : ""), o = i ? lG(n.provider, n.provider_label) : "";
- return /* @__PURE__ */ (0, I.jsxs)(yK, {
+ let i = e.duplicates.includes(n), a = fNe(e, n, i ? n.provider_label : ""), o = i ? dG(n.provider, n.provider_label) : "";
+ return /* @__PURE__ */ (0, I.jsxs)(xK, {
current: n.id === t,
"data-follow-queue-item": n.id,
onClick: () => r.openItem(n.id),
- pic: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, I.jsx)(W2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(U2, { kind: "video" }), B2(n.duration) ? /* @__PURE__ */ (0, I.jsx)("i", {
+ pic: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, I.jsx)(K2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(G2, { kind: "video" }), H2(n.duration) ? /* @__PURE__ */ (0, I.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: Jn(n.duration)
@@ -74564,15 +74577,15 @@ function HNe({ group: e, itemId: t, helpers: n, actions: r }) {
children: a.label
}), /* @__PURE__ */ (0, I.jsx)("time", {
dateTime: n.published_at || "",
- children: bG(n)
+ children: SG(n)
})]
})]
}, n.id);
})
});
}
-function K2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
- let o = e.media_items || [], s = G2(r), c = [];
+function J2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
+ let o = e.media_items || [], s = q2(r), c = [];
o.forEach((e) => {
let t = e.resource_group || "ungrouped", n = c.find((e) => e.key === t);
n || (n = {
@@ -74582,26 +74595,26 @@ function K2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, c.push(n)), n.items.push(e);
});
let l = (t) => e.id === n ? a(t.index) : i.openItem(e.id, t.index);
- return /* @__PURE__ */ (0, I.jsx)(vK, {
+ return /* @__PURE__ */ (0, I.jsx)(bK, {
kind: "media",
"data-follow-queue": "",
title: "多媒体",
onClose: i.close,
listRef: s,
- summary: `${dG(e)} · ${o.length} 个媒体`,
- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, I.jsx)(Lxe, {
+ summary: `${pG(e)} · ${o.length} 个媒体`,
+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, I.jsx)(Bxe, {
label: n.label,
count: n.items.length
- }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, I.jsxs)(yK, {
+ }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, I.jsxs)(xK, {
current: n.index === t,
"data-follow-media-owner": e.id,
"data-follow-media-item": n.index,
"data-media-kind": n.media_kind || "",
onClick: () => l(n),
- pic: n.thumb_url ? /* @__PURE__ */ (0, I.jsx)(W2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(U2, { kind: n.media_kind || "" }),
+ pic: n.thumb_url ? /* @__PURE__ */ (0, I.jsx)(K2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(G2, { kind: n.media_kind || "" }),
children: [/* @__PURE__ */ (0, I.jsx)("b", {
"data-middle-truncate": "",
- children: uNe(n)
+ children: pNe(n)
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-truncate-end": "",
children: n.media_kind === "image" ? "图片" : "视频"
@@ -74609,13 +74622,13 @@ function K2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, n.index))])
});
}
-function UNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
+function KNe({ 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 = _G(d, e), p = hG(e, p2(e, t.sources), n), m = p.credited ? "" : e.author && Un(e.author) !== Un(p.author) ? e.author : "", h = vG(e, n), g = e.status === "saved", { busy: _ } = i, v = (e) => _.has(e) ? {
+ }, f = yG(d, e), p = _G(e, h2(e, t.sources), n), m = p.credited ? "" : e.author && Un(e.author) !== Un(p.author) ? e.author : "", h = bG(e, n), g = e.status === "saved", { busy: _ } = i, v = (e) => _.has(e) ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
@@ -74631,7 +74644,7 @@ function UNe({ 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: gG(d, e) + z(dG(e)) }
+ dangerouslySetInnerHTML: { __html: vG(d, e) + z(pG(e)) }
}), e.url ? /* @__PURE__ */ (0, I.jsx)("a", {
"data-follow-origin": "",
href: e.url,
@@ -74639,7 +74652,7 @@ function UNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
rel: "noreferrer noopener",
title: "打开来源页面",
"aria-label": "打开来源页面",
- dangerouslySetInnerHTML: { __html: V2 }
+ dangerouslySetInnerHTML: { __html: U2 }
}) : null]
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -74647,8 +74660,8 @@ function UNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-stage-meta": "",
"data-reveal-line": "",
children: [
- /* @__PURE__ */ (0, I.jsx)("span", { children: bG(e) }),
- B2(e.duration) ? /* @__PURE__ */ (0, I.jsx)("span", { children: Jn(e.duration) }) : null,
+ /* @__PURE__ */ (0, I.jsx)("span", { children: SG(e) }),
+ H2(e.duration) ? /* @__PURE__ */ (0, I.jsx)("span", { children: Jn(e.duration) }) : null,
f ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: f }
@@ -74665,7 +74678,7 @@ function UNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
children: "创作者"
}), /* @__PURE__ */ (0, I.jsx)("div", {
"data-id-row": "",
- children: p.entityName ? /* @__PURE__ */ (0, I.jsxs)(wZ, {
+ children: p.entityName ? /* @__PURE__ */ (0, I.jsxs)(EZ, {
name: p.entityName,
actions: s,
"data-id-cell": "creator",
@@ -74697,7 +74710,7 @@ function UNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
children: [m ? /* @__PURE__ */ (0, I.jsxs)("span", { children: ["发布者 ", m] }) : null, p.credited ? /* @__PURE__ */ (0, I.jsxs)("span", { children: ["署名含 ", p.credited] }) : null]
}) : null]
}),
- e.summary ? /* @__PURE__ */ (0, I.jsx)(WNe, { text: e.summary }, e.id) : null,
+ e.summary ? /* @__PURE__ */ (0, I.jsx)(qNe, { text: e.summary }, e.id) : null,
h ? /* @__PURE__ */ (0, I.jsx)("p", {
"data-follow-media-issue": "",
children: h
@@ -74720,9 +74733,9 @@ function UNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
href: e,
target: "_blank",
rel: "noreferrer noopener",
- children: [cNe(e), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [dNe(e), /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: V2 }
+ dangerouslySetInnerHTML: { __html: U2 }
})]
}, e))
}) : null,
@@ -74822,7 +74835,7 @@ function UNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"aria-label": `恢复显示 ${e.name || ""}`,
...v(`restore:${e.index}`),
onClick: () => i.restore(e.index),
- children: [e.thumb_url ? /* @__PURE__ */ (0, I.jsx)(W2, { src: e.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(FNe, { name: "image-off" }), /* @__PURE__ */ (0, I.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
+ children: [e.thumb_url ? /* @__PURE__ */ (0, I.jsx)(K2, { src: e.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(RNe, { name: "image-off" }), /* @__PURE__ */ (0, I.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
}, e.index))
})]
}) : null,
@@ -74831,7 +74844,7 @@ function UNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"aria-live": "polite",
children: i.failure
}),
- /* @__PURE__ */ (0, I.jsx)(PNe, {
+ /* @__PURE__ */ (0, I.jsx)(LNe, {
item: e,
label: o.tagLabel,
actions: s
@@ -74840,7 +74853,7 @@ function UNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
})
});
}
-function WNe({ text: e }) {
+function qNe({ text: e }) {
let t = (0, F.useRef)(null), [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(!1);
return (0, F.useLayoutEffect)(() => {
let e = t.current;
@@ -74853,7 +74866,7 @@ function WNe({ text: e }) {
ref: t,
"data-follow-detail-summary": "",
"data-long-text": "",
- lang: LI(e),
+ lang: zI(e),
"data-clamped": n ? void 0 : "",
children: e
}), i || n ? /* @__PURE__ */ (0, I.jsx)(J, {
@@ -74865,8 +74878,8 @@ function WNe({ text: e }) {
children: n ? "收起" : "展开"
}) : null] });
}
-function GNe(e, t, n) {
- let r = e.id, i = o2(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), l = (e, t) => o((n) => {
+function JNe(e, t, n) {
+ let r = e.id, i = c2(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), l = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), u = (e) => {
@@ -74885,7 +74898,7 @@ function GNe(e, t, n) {
to: e
}),
onSuccess: (e, { to: n, was: i }) => {
- u(n), c(""), n === "ignored" && aW(), t.toast(gNe(n), { undo: i === "saved" ? void 0 : async () => {
+ u(n), c(""), n === "ignored" && sW(), t.toast(yNe(n), { undo: i === "saved" ? void 0 : async () => {
await V(Mr, {
item: r,
to: i
@@ -74895,7 +74908,7 @@ function GNe(e, t, n) {
onError: d,
onSettled: (e, t, { to: n }) => l(n, !1)
}), p = It({
- mutationFn: () => V(tNe, { item: r }),
+ mutationFn: () => V(iNe, { item: r }),
onSuccess: () => {
u("saved"), c(""), t.toast("已保存到数据库");
},
@@ -74903,7 +74916,7 @@ function GNe(e, t, n) {
onSettled: () => l("save", !1)
}), m = It({
mutationFn: async ({ index: e, hidden: t }) => {
- await V(nNe, {
+ await V(aNe, {
item: r,
media: e,
hidden: t
@@ -74919,12 +74932,12 @@ function GNe(e, t, n) {
onError: d,
onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)
}), h = Ft({
- queryKey: kye(r),
- queryFn: ({ signal: e }) => Mye(r, e)
+ queryKey: Mye(r),
+ queryFn: ({ signal: e }) => Fye(r, e)
}).data?.want ?? null, g = It({
- mutationFn: async (e) => (e ? await iW([e.id]) : await rW({ follow: r }), !e),
+ mutationFn: async (e) => (e ? await oW([e.id]) : await aW({ follow: r }), !e),
onSuccess: (e) => {
- c(""), t.toast(e ? "已加入想要" : "已取消想要"), aW();
+ c(""), t.toast(e ? "已加入想要" : "已取消想要"), sW();
},
onError: d,
onSettled: () => l("want", !1)
@@ -74963,8 +74976,8 @@ function GNe(e, t, n) {
};
}
// src/react/components/identity-cell.tsx
-function q2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {
- tL();
+function Y2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {
+ rL();
let o = nn(e, t.name, t.id), s = e === "performer" || e === "creator" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-id-face": "",
dangerouslySetInnerHTML: { __html: `<span>${z(er(o))}</span>` + go({
@@ -75010,7 +75023,7 @@ function q2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a })
children: c
});
}
-function J2({ people: e, onOpen: t }) {
+function X2({ people: e, onOpen: t }) {
if (!e.length) return null;
let n = (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
@@ -75043,7 +75056,7 @@ function J2({ people: e, onOpen: t }) {
});
}
// src/react/components/folded-title.ts
-function Y2(e) {
+function Z2(e) {
let t = (0, F.useRef)(null), [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(!1);
return (0, F.useLayoutEffect)(() => {
let e = t.current;
@@ -75060,9 +75073,9 @@ function Y2(e) {
};
}
// src/react/item-detail/catalog-picture.tsx
-function X2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
+function Q2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
let [i, a] = (0, F.useState)(""), [o, s] = (0, F.useState)(0);
- if (n && t > 0 && e.code) return /* @__PURE__ */ (0, I.jsx)(oQ, {
+ if (n && t > 0 && e.code) return /* @__PURE__ */ (0, I.jsx)(cQ, {
item: {
code: e.code,
has_cover: !1,
@@ -75076,7 +75089,7 @@ function X2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
src: c,
alt: "",
onError: () => a(c)
- }) : i === c ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ }) : i === c ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -75094,34 +75107,34 @@ function X2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
}, o);
}
// src/react/jav-detail/jav-detail.ts
-var Z2 = (e) => ["jav-detail", e], Q2 = (e, t, n = !1) => B(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), KNe = (e, t, n, r = !1) => B(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), $2 = (e, t) => H.ensureQueryData({
- queryKey: Z2(e.code),
- queryFn: () => Q2(e.code, t),
+var $2 = (e) => ["jav-detail", e], e4 = (e, t, n = !1) => B(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), YNe = (e, t, n, r = !1) => B(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), t4 = (e, t) => H.ensureQueryData({
+ queryKey: $2(e.code),
+ queryFn: () => e4(e.code, t),
staleTime: 216e5,
revalidateIfStale: !0
});
-function qNe(e, t) {
+function XNe(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;
}
// src/react/item-detail/external-playback.tsx
-var e4 = "peach.playback-target.v1", t4 = [["m3u", "M3U 播放列表"], ["url", "网络播放地址 / VR"]];
-function JNe() {
+var n4 = "peach.playback-target.v1", r4 = [["m3u", "M3U 播放列表"], ["url", "网络播放地址 / VR"]];
+function ZNe() {
try {
- return localStorage.getItem(e4) || `local:${localStorage.getItem("peach.local-player.v1") || "default"}`;
+ return localStorage.getItem(n4) || `local:${localStorage.getItem("peach.local-player.v1") || "default"}`;
} catch {
return "local:default";
}
}
-function n4({ id: e, onOpened: t }) {
- let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(JNe), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(0), f = fH();
+function i4({ id: e, onOpened: t }) {
+ let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(ZNe), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(0), f = mH();
(0, F.useEffect)(() => {
let e = new AbortController();
return B("/api/local-players", e.signal).then((t) => {
- e.signal.aborted || (r(t.players), a((e) => t.players.some((t) => `local:${t.id}` === e) || t4.some(([t]) => t === e) ? e : t.players.length ? `local:${t.players[0].id}` : "m3u"));
+ e.signal.aborted || (r(t.players), a((e) => t.players.some((t) => `local:${t.id}` === e) || r4.some(([t]) => t === e) ? e : t.players.length ? `local:${t.players[0].id}` : "m3u"));
}).catch((t) => {
- e.signal.aborted || (r([]), a((e) => t4.some(([t]) => t === e) ? e : "m3u"), l(String(t.message || t)));
+ e.signal.aborted || (r([]), a((e) => r4.some(([t]) => t === e) ? e : "m3u"), l(String(t.message || t)));
}), () => e.abort();
}, [u]);
let p = () => void f.run("open", async (t) => {
@@ -75145,29 +75158,29 @@ function n4({ id: e, onOpened: t }) {
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-local-playback-row": "",
- children: [/* @__PURE__ */ (0, I.jsx)(Z$, {
+ children: [/* @__PURE__ */ (0, I.jsx)($$, {
id: `external-player-${e}`,
label: "外部播放器",
- options: [...(n || []).map((e) => [`local:${e.id}`, e.label]), ...t4],
+ options: [...(n || []).map((e) => [`local:${e.id}`, e.label]), ...r4],
value: i,
disabled: n === null || !!f.busy,
epoch: u * 2 + Number(n !== null),
onPick: (e) => {
a(e), s(null), f.setError("");
try {
- localStorage.setItem(e4, e);
+ localStorage.setItem(n4, e);
} catch {}
}
}), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
"aria-label": "使用外部播放器打开",
disabled: n === null,
- ...fV(f.busy === "open"),
+ ...mV(f.busy === "open"),
onClick: p,
children: "打开"
})]
}),
- f.error || c ? /* @__PURE__ */ (0, I.jsx)(PH, { children: f.error || c }) : null,
+ f.error || c ? /* @__PURE__ */ (0, I.jsx)(IH, { children: f.error || c }) : null,
c ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
disabled: !!f.busy,
@@ -75176,16 +75189,16 @@ function n4({ id: e, onOpened: t }) {
},
children: "重新检测播放器"
}) : null,
- o ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(iV, {
+ o ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(oV, {
label: "网络播放地址",
value: o.url,
isReadOnly: !0
- }), /* @__PURE__ */ (0, I.jsx)(NH, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })] }) : null
+ }), /* @__PURE__ */ (0, I.jsx)(FH, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })] }) : null
]
});
}
// src/react/boardui/components/base/switch/switch.tsx
-var YNe = jI({
+var QNe = NI({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -75247,8 +75260,8 @@ var YNe = jI({
}
}
});
-function XNe({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = YNe[t];
+function $Ne({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = QNe[t];
return /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
className: q("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? q("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"),
@@ -75258,12 +75271,12 @@ function XNe({ state: e, size: t = "md", shape: n = "pill" }) {
})
});
}
-function r4({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(Zme, {
+function a4({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsx)(ehe, {
ref: i,
...a,
className: (t) => q("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
- children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(XNe, {
+ children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)($Ne, {
state: e,
size: n,
shape: r
@@ -75274,12 +75287,12 @@ function r4({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
});
}
// src/react/cover-crop/cover-crop.ts
-var ZNe = "/api/cover-crop", QNe = (e, t) => V(ZNe, {
+var ePe = "/api/cover-crop", tPe = (e, t) => V(ePe, {
code: e,
box: t
});
// src/react/cover-crop/cover-crop-page.tsx
-function i4({ className: e }) {
+function o4({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -75292,7 +75305,7 @@ function i4({ className: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-crop" })
});
}
-function $Ne({ code: e, coverUrl: t, box: n, onSaved: r }) {
+function nPe({ code: e, coverUrl: t, box: n, onSaved: r }) {
let [i, a] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -75302,13 +75315,13 @@ function $Ne({ code: e, coverUrl: t, box: n, onSaved: r }) {
title: "裁剪封面:框出正封那一块",
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, I.jsx)(i4, { className: "size-3.75" })
- }), /* @__PURE__ */ (0, I.jsx)(aV, {
+ children: /* @__PURE__ */ (0, I.jsx)(o4, { className: "size-3.75" })
+ }), /* @__PURE__ */ (0, I.jsx)(sV, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
label: "裁剪封面",
- children: /* @__PURE__ */ (0, I.jsx)(ePe, {
+ children: /* @__PURE__ */ (0, I.jsx)(rPe, {
code: e,
coverUrl: t,
box: n,
@@ -75317,9 +75330,9 @@ function $Ne({ code: e, coverUrl: t, box: n, onSaved: r }) {
})
})] });
}
-function ePe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
- let [a, o] = (0, F.useState)(null), [s, c] = (0, F.useState)(null), [l, u] = (0, F.useState)(!0), d = LV(), f = It({
- mutationFn: (t) => QNe(e, t),
+function rPe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
+ let [a, o] = (0, F.useState)(null), [s, c] = (0, F.useState)(null), [l, u] = (0, F.useState)(!0), d = zV(), f = It({
+ mutationFn: (t) => tPe(e, t),
onSuccess: (e) => {
i(), r(e.poster_box);
}
@@ -75331,19 +75344,19 @@ function ePe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : dOe(e, no);
- c(HZ(t, e, null));
+ } : mOe(e, no);
+ c(WZ(t, e, null));
}
let m = f.isPending;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, I.jsx)(oV, { children: /* @__PURE__ */ (0, I.jsx)(i4, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, I.jsx)(cV, { children: /* @__PURE__ */ (0, I.jsx)(o4, { className: "size-6" }) }),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(RL, {
+ /* @__PURE__ */ (0, I.jsx)(BL, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "裁剪封面"
@@ -75352,14 +75365,14 @@ function ePe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
className: "text-body-2-regular text-text-secondary",
children: [e, ":框出正封那一块,封面原图不动。拖动方框移动,滚轮或角上那枚方块改大小。"]
}),
- f.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ f.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "error",
children: lr(f.error)
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(iL, {
- icon: SB,
+ /* @__PURE__ */ (0, I.jsx)(oL, {
+ icon: wB,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -75369,24 +75382,24 @@ function ePe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
/* @__PURE__ */ (0, I.jsx)("div", {
ref: d,
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
- children: /* @__PURE__ */ (0, I.jsx)(qZ, {
+ children: /* @__PURE__ */ (0, I.jsx)(YZ, {
src: t,
aspect: l ? no : null,
box: s,
size: a,
label: `${e} 的正封取景框`,
onSize: (e) => {
- BZ(e) && p(e);
+ HZ(e) && p(e);
},
onBox: c
})
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",
- children: [/* @__PURE__ */ (0, I.jsx)(r4, {
+ children: [/* @__PURE__ */ (0, I.jsx)(a4, {
isSelected: l,
onChange: (e) => {
- u(e), e && s && a && c(HZ(s, a, no));
+ u(e), e && s && a && c(WZ(s, a, no));
},
children: /* @__PURE__ */ (0, I.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -75396,14 +75409,14 @@ function ePe({ 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, I.jsx)(J, {
variant: "secondary",
- ...fV(m),
+ ...mV(m),
onClick: () => {
m || f.mutate(null);
},
children: "恢复默认"
}), /* @__PURE__ */ (0, I.jsx)(J, {
disabled: !s || !a,
- ...fV(m),
+ ...mV(m),
onClick: () => {
s && !m && f.mutate(s);
},
@@ -75414,21 +75427,21 @@ function ePe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
] });
}
// src/react/item-detail/item-detail-page.tsx
-var a4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var s4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
-}), o4 = ({ html: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+}), c4 = ({ html: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: e }
-}), s4 = (e) => Number(e) > 0 ? Xn(Number(e)) : "大小未知";
-function tPe(e) {
+}), l4 = (e) => Number(e) > 0 ? Xn(Number(e)) : "大小未知";
+function iPe(e) {
let { queue: t, actions: n } = e, r = Ft({
- queryKey: t ? mP(t) : ["item-queue", "none"],
- queryFn: ({ signal: n }) => CP(t, e.helpers, n),
+ queryKey: t ? gP(t) : ["item-queue", "none"],
+ queryFn: ({ signal: n }) => TP(t, e.helpers, n),
enabled: !!t
- }), i = t && r.data || null, a = i ? EP(i, e.id) : t ? null : e.id, o = Ft({
- queryKey: pP(a ?? 0),
- queryFn: ({ signal: e }) => SP(a, e),
+ }), i = t && r.data || null, a = i ? OP(i, e.id) : t ? null : e.id, o = Ft({
+ queryKey: hP(a ?? 0),
+ queryFn: ({ signal: e }) => wP(a, e),
enabled: a != null
});
if (!o.data || t && !i) {
@@ -75439,9 +75452,9 @@ function tPe(e) {
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-media": "",
"data-item-media": "none",
- children: [/* @__PURE__ */ (0, I.jsx)(c4, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
+ children: [/* @__PURE__ */ (0, I.jsx)(u4, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
"data-item-placeholder": "",
- children: e ? /* @__PURE__ */ (0, I.jsx)(FG, {
+ children: e ? /* @__PURE__ */ (0, I.jsx)(LG, {
message: xn(e),
onRetry: () => {
r.error && r.refetch(), o.error && o.refetch();
@@ -75451,13 +75464,13 @@ function tPe(e) {
})
});
}
- return /* @__PURE__ */ (0, I.jsx)(nPe, {
+ return /* @__PURE__ */ (0, I.jsx)(aPe, {
...e,
- item: Que(o.data, i),
+ item: tde(o.data, i),
queue: i
}, o.data.id);
}
-var c4 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
+var u4 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -75466,23 +75479,23 @@ var c4 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function nPe(e) {
- let { item: t, queue: n, actions: r, helpers: i } = e, a = _Pe(t, r, i.tagLabel), o = (0, F.useRef)(t);
+function aPe(e) {
+ let { item: t, queue: n, actions: r, helpers: i } = e, a = bPe(t, r, i.tagLabel), o = (0, F.useRef)(t);
(0, F.useLayoutEffect)(() => {
r.present(o.current, n);
}, [r]), (0, F.useEffect)(() => {
- n?.kind === "playlist" && V(hP, {
+ n?.kind === "playlist" && V(_P, {
action: "progress",
id: n.playlistId,
asset_id: t.id
}).catch(() => {});
}, []);
- let s = qN() ? "" : cde(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = DP(n, t.id);
+ let s = YN() ? "" : dde(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = kP(n, t.id);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-grid": "",
"data-with-queue": n ? "" : void 0,
"data-item-detail": "",
- children: [/* @__PURE__ */ (0, I.jsx)(rPe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(oPe, {
item: t,
gate: s,
helpers: i,
@@ -75495,22 +75508,22 @@ function nPe(e) {
autoplay: !0
}, c.id);
}
- }), /* @__PURE__ */ (0, I.jsx)(cPe, {
+ }), /* @__PURE__ */ (0, I.jsx)(dPe, {
item: t,
queue: n,
write: a,
helpers: i,
actions: r
})]
- }), /* @__PURE__ */ (0, I.jsx)(F2, {
+ }), /* @__PURE__ */ (0, I.jsx)(L2, {
queueCards: n?.kind === "parts" || n?.kind === "editions" ? n.items.length : void 0,
- queue: n ? /* @__PURE__ */ (0, I.jsx)(aPe, {
+ queue: n ? /* @__PURE__ */ (0, I.jsx)(cPe, {
queue: n,
itemId: t.id,
helpers: i,
actions: r
}) : null,
- children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, I.jsx)(gPe, {
+ children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, I.jsx)(yPe, {
...e,
item: n ? {
...t,
@@ -75519,12 +75532,12 @@ function nPe(e) {
}) : null
})] });
}
-function rPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
+function oPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
let [o, s] = (0, F.useState)(t ? "" : "auto"), c = (0, F.useRef)(null), [l, u] = (0, F.useState)(-2), d = (0, F.useRef)(!1), f = Ft({
- queryKey: Z2(e.code || ""),
+ queryKey: $2(e.code || ""),
queryFn: ({ signal: t }) => {
let n = d.current;
- return d.current = !1, Q2(e.code, t, n);
+ return d.current = !1, e4(e.code, t, n);
},
staleTime: 216e5,
enabled: !!e.is_jav && !!e.code && !e.sample_images?.length
@@ -75569,7 +75582,7 @@ function rPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
"data-item-gallery": h ? "" : void 0,
"data-item-picture": l === -2 ? void 0 : "",
children: [
- /* @__PURE__ */ (0, I.jsx)(c4, { onClose: r.close }),
+ /* @__PURE__ */ (0, I.jsx)(u4, { onClose: r.close }),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-player-toolbar": "",
children: [
@@ -75579,21 +75592,21 @@ function rPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
"data-jav-preview-toggle": "",
"aria-pressed": l !== -2,
onClick: () => g(l === -2 ? m[0].index : -2),
- children: [/* @__PURE__ */ (0, I.jsx)(a4, { name: l === -2 ? "image" : "play" }), l === -2 ? "查看图片" : "播放正片"]
+ children: [/* @__PURE__ */ (0, I.jsx)(s4, { name: l === -2 ? "image" : "play" }), l === -2 ? "查看图片" : "播放正片"]
}) : null,
/* @__PURE__ */ (0, I.jsx)("span", { "data-player-net-slot": "" })
]
}),
- h ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [l === -2 ? null : /* @__PURE__ */ (0, I.jsx)(X2, {
+ h ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [l === -2 ? null : /* @__PURE__ */ (0, I.jsx)(Q2, {
item: e,
image: l,
source: p.find((e) => e.index === l)?.source
- }, e.id), /* @__PURE__ */ (0, I.jsx)(I2, {
+ }, e.id), /* @__PURE__ */ (0, I.jsx)(R2, {
items: m,
position: Math.max(0, m.findIndex((e) => e.index === l)),
onSelect: g,
below: !0,
- renderThumbnail: (t) => /* @__PURE__ */ (0, I.jsx)(X2, {
+ renderThumbnail: (t) => /* @__PURE__ */ (0, I.jsx)(Q2, {
item: e,
image: t.index === -2 ? m[0].index : t.index,
source: p.find((e) => e.index === (t.index === -2 ? m[0].index : t.index))?.source,
@@ -75609,7 +75622,7 @@ function rPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
className: "relative block h-12 w-20 skeleton-sheen"
}) : /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...fV(f.isFetching),
+ ...mV(f.isFetching),
title: f.data?.message || xn(f.error),
"aria-label": "立即重试样图",
onClick: () => {
@@ -75618,7 +75631,7 @@ function rPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
children: "立即重试"
})
}) : null,
- t === "offline" ? /* @__PURE__ */ (0, I.jsx)(iPe, {
+ t === "offline" ? /* @__PURE__ */ (0, I.jsx)(sPe, {
item: e,
badge: y,
helpers: n,
@@ -75629,7 +75642,7 @@ function rPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
children: [
/* @__PURE__ */ (0, I.jsx)("b", { children: "ISO 原盘" }),
/* @__PURE__ */ (0, I.jsx)("span", { children: "请使用支持原盘的外部播放器打开。" }),
- /* @__PURE__ */ (0, I.jsx)(n4, {
+ /* @__PURE__ */ (0, I.jsx)(i4, {
id: e.id,
onOpened: () => r.toast("已请求打开本地播放器")
}, e.id)
@@ -75639,7 +75652,7 @@ function rPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
role: "status",
"data-item-gate": "online",
children: [
- /* @__PURE__ */ (0, I.jsx)(o4, { html: y }),
+ /* @__PURE__ */ (0, I.jsx)(c4, { html: y }),
/* @__PURE__ */ (0, I.jsx)("b", { children: "在线作品" }),
/* @__PURE__ */ (0, I.jsx)("span", { children: "这条没有对应的关注条目,媒体地址无从解析。" }),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -75654,12 +75667,12 @@ function rPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
id: "gate",
"data-item-gate": "metered",
onClick: () => s("clicked"),
- children: [/* @__PURE__ */ (0, I.jsx)(o4, { html: y }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["点此开始拉流 · ", s4(e.size)] })]
+ children: [/* @__PURE__ */ (0, I.jsx)(c4, { html: y }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["点此开始拉流 · ", l4(e.size)] })]
}) : null
]
});
}
-function iPe({ item: e, badge: t, helpers: n, actions: r }) {
+function sPe({ item: e, badge: t, helpers: n, actions: r }) {
let [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(!1), c = async () => {
a(!0);
let t = await r.checkSource(e.location || "").catch(() => !1);
@@ -75670,7 +75683,7 @@ function iPe({ item: e, badge: t, helpers: n, actions: r }) {
role: "status",
"data-item-gate": "offline",
children: [
- /* @__PURE__ */ (0, I.jsx)(o4, { html: t }),
+ /* @__PURE__ */ (0, I.jsx)(c4, { html: t }),
/* @__PURE__ */ (0, I.jsx)("b", { children: "媒体目录无法访问" }),
/* @__PURE__ */ (0, I.jsx)("span", { children: n.offlineReason(String(e.root_id || e.location || "")) }),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -75684,8 +75697,8 @@ function iPe({ item: e, badge: t, helpers: n, actions: r }) {
]
});
}
-function aPe({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = ide(e), a = (0, F.useRef)(null), o = sPe(e, t, r), s = (0, F.useRef)(o);
+function cPe({ queue: e, itemId: t, helpers: n, actions: r }) {
+ let i = sde(e), a = (0, F.useRef)(null), o = uPe(e, t, r), s = (0, F.useRef)(o);
s.current = o;
let c = (0, F.useCallback)((t) => {
a.current = t, t && (n.wireDrag(t), e.kind === "playlist" && n.wireDragReorder(t, {
@@ -75693,7 +75706,7 @@ function aPe({ 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 = oPe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)("button", {
+ }, [n, e.kind]), l = lPe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-save-mix": "",
title: "保存为播放列表",
@@ -75712,7 +75725,7 @@ function aPe({ queue: e, itemId: t, helpers: n, actions: r }) {
seedId: e.seedId,
playlistId: e.playlistId
};
- return /* @__PURE__ */ (0, I.jsx)(vK, {
+ return /* @__PURE__ */ (0, I.jsx)(bK, {
kind: e.kind,
title: i.title,
summary: i.summary,
@@ -75721,11 +75734,11 @@ function aPe({ 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, I.jsx)("i", {
- className: `javedition ${nde[i.edition_label] || "censored"}`,
+ className: `javedition ${ade[i.edition_label] || "censored"}`,
"data-queue-edition": "",
children: i.edition_label
- }) : null, s = e.kind === "playlist" && TP(i);
- return /* @__PURE__ */ (0, I.jsxs)(yK, {
+ }) : null, s = e.kind === "playlist" && DP(i);
+ return /* @__PURE__ */ (0, I.jsxs)(xK, {
current: i.id === t,
"data-queue-item": i.id,
row: { "data-queue-row": i.id },
@@ -75735,25 +75748,25 @@ function aPe({ queue: e, itemId: t, helpers: n, actions: r }) {
onClick: () => {
s || r.openQueueItem(d, i.id);
},
- pic: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(o4, { html: Oo(i, n.javImage()) }), /* @__PURE__ */ (0, I.jsx)("i", {
+ pic: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(c4, { html: Oo(i, n.javImage()) }), /* @__PURE__ */ (0, I.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: Jn(i.duration)
})] }),
- lead: /* @__PURE__ */ (0, I.jsx)(o4, { html: jo(i) }),
+ lead: /* @__PURE__ */ (0, I.jsx)(c4, { html: jo(i) }),
after: e.kind === "playlist" ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-queue-edit": "",
children: [/* @__PURE__ */ (0, I.jsx)("i", {
"data-queue-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(a4, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, I.jsx)(s4, { name: "grip-vertical" })
}), /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-queue-remove": i.id,
title: "移出播放列表",
"aria-label": "移出播放列表",
onClick: () => o.remove(i.id),
- children: /* @__PURE__ */ (0, I.jsx)(a4, { name: "x" })
+ children: /* @__PURE__ */ (0, I.jsx)(s4, { name: "x" })
})]
}) : null,
children: [/* @__PURE__ */ (0, I.jsxs)("span", {
@@ -75764,14 +75777,14 @@ function aPe({ queue: e, itemId: t, helpers: n, actions: r }) {
})]
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-truncate-end": "",
- children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? FP(i.part_label) : Mo(i, n.tagLabel)
+ children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? LP(i.part_label) : Mo(i, n.tagLabel)
})]
}, i.id);
})
});
}
-function oPe(e, t) {
- let n = It({ mutationFn: (t) => V(hP, {
+function lPe(e, t) {
+ let n = It({ mutationFn: (t) => V(_P, {
action: "create",
name: t,
asset_ids: e.items.map((e) => e.id),
@@ -75784,11 +75797,11 @@ function oPe(e, t) {
save: (e) => n.mutateAsync(e)
});
}
-function sPe(e, t, n) {
- let r = mP({
+function uPe(e, t, n) {
+ let r = gP({
kind: "playlist",
playlistId: e.playlistId
- }), i = (e) => (H.setQueryData(r, wP(e)), e), a = (t) => V(hP, {
+ }), i = (e) => (H.setQueryData(r, EP(e)), e), a = (t) => V(_P, {
id: e.playlistId,
...t
}).then((e) => e.playlist), o = It({
@@ -75804,8 +75817,8 @@ function sPe(e, t, n) {
return {
move: async (t, r, c) => {
if (e.kind !== "playlist") return;
- let l = ode(s, t, r, c);
- if (sde(l, s)) return;
+ let l = lde(s, t, r, c);
+ if (ude(l, s)) return;
let u = s;
await o.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {
i(await a({
@@ -75847,7 +75860,7 @@ function sPe(e, t, n) {
}
};
}
-function cPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
+function dPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
let a = e.location === "online", o = n.busyAttrs, [s, c] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-stage-side": "",
@@ -75855,7 +75868,7 @@ function cPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-side-content": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(lPe, {
+ /* @__PURE__ */ (0, I.jsx)(fPe, {
item: e,
queue: t,
helpers: r,
@@ -75867,7 +75880,7 @@ function cPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-live": "polite",
children: n.sourceState
}),
- /* @__PURE__ */ (0, I.jsx)(dPe, {
+ /* @__PURE__ */ (0, I.jsx)(mPe, {
item: e,
write: n
}),
@@ -75878,7 +75891,7 @@ function cPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: [
e.width && e.height ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, I.jsx)(a4, { name: "monitor" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [
+ children: [/* @__PURE__ */ (0, I.jsx)(s4, { name: "monitor" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [
e.width,
"×",
e.height
@@ -75886,11 +75899,11 @@ function cPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
}) : null,
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, I.jsx)(a4, { name: "hard-drive" }), /* @__PURE__ */ (0, I.jsx)("span", { children: s4(e.size) })]
+ children: [/* @__PURE__ */ (0, I.jsx)(s4, { name: "hard-drive" }), /* @__PURE__ */ (0, I.jsx)("span", { children: l4(e.size) })]
}),
e.release_date ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, I.jsx)(a4, { name: "calendar" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.release_date })]
+ children: [/* @__PURE__ */ (0, I.jsx)(s4, { name: "calendar" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.release_date })]
}) : null,
e.region_label ? /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
@@ -75898,32 +75911,32 @@ function cPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"data-open-region": e.region || "",
title: e.region_settled ? "已判定的产地;打开同产地的作品" : "按番号或厂牌推断的产地,批量判定后不再变;打开同产地的作品",
onClick: () => i.openRegion(e.region || ""),
- children: [/* @__PURE__ */ (0, I.jsx)(a4, { name: "globe" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
+ children: [/* @__PURE__ */ (0, I.jsx)(s4, { name: "globe" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
}) : null
]
}),
- (e.medium || "video") === "video" && !a && !String(e.name || "").toLowerCase().endsWith(".iso") ? /* @__PURE__ */ (0, I.jsx)(n4, {
+ (e.medium || "video") === "video" && !a && !String(e.name || "").toLowerCase().endsWith(".iso") ? /* @__PURE__ */ (0, I.jsx)(i4, {
id: e.id,
onOpened: () => i.toast("已请求打开本地播放器")
}, e.id) : null,
- /* @__PURE__ */ (0, I.jsx)(fPe, {
+ /* @__PURE__ */ (0, I.jsx)(hPe, {
item: e,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, I.jsx)(pPe, {
+ /* @__PURE__ */ (0, I.jsx)(gPe, {
item: e,
write: n,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, I.jsx)(AK, {
- assetIds: kK([e], r.javImage()),
+ /* @__PURE__ */ (0, I.jsx)(MK, {
+ assetIds: jK([e], r.javImage()),
onComplete: () => {
- H.invalidateQueries({ queryKey: pP(e.id) });
+ H.invalidateQueries({ queryKey: hP(e.id) });
}
}),
- /* @__PURE__ */ (0, I.jsx)(mPe, { item: e }),
+ /* @__PURE__ */ (0, I.jsx)(_Pe, { item: e }),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-actions": "",
"data-item-feedback": "",
@@ -75937,7 +75950,7 @@ function cPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.liked,
...o("like"),
onClick: () => n.preference({ liked: !e.liked }),
- children: /* @__PURE__ */ (0, I.jsx)(a4, { name: "thumbs-up" })
+ children: /* @__PURE__ */ (0, I.jsx)(s4, { name: "thumbs-up" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -75949,7 +75962,7 @@ function cPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-controls": "preferencePanel",
"data-has-reason": String(!!e.like_reason),
onClick: () => c((e) => !e),
- children: /* @__PURE__ */ (0, I.jsx)(a4, { name: "notebook-pen" })
+ children: /* @__PURE__ */ (0, I.jsx)(s4, { name: "notebook-pen" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -75960,7 +75973,7 @@ function cPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "dislike",
...o("dislike"),
onClick: () => n.feedback("dislike"),
- children: /* @__PURE__ */ (0, I.jsx)(a4, { name: "thumbs-down" })
+ children: /* @__PURE__ */ (0, I.jsx)(s4, { name: "thumbs-down" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -75971,7 +75984,7 @@ function cPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "seen",
...o("seen"),
onClick: () => n.feedback("seen"),
- children: /* @__PURE__ */ (0, I.jsx)(a4, { name: "eye" })
+ children: /* @__PURE__ */ (0, I.jsx)(s4, { name: "eye" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -75982,7 +75995,7 @@ function cPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.watch_later,
...o("later"),
onClick: n.later,
- children: /* @__PURE__ */ (0, I.jsx)(a4, { name: e.watch_later ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, I.jsx)(s4, { name: e.watch_later ? "check" : "bookmark-plus" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -75991,7 +76004,7 @@ function cPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-label": "加入播放列表",
title: "加入播放列表",
onClick: () => i.addToPlaylist(e),
- children: /* @__PURE__ */ (0, I.jsx)(a4, { name: "playlist" })
+ children: /* @__PURE__ */ (0, I.jsx)(s4, { name: "playlist" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -76002,7 +76015,7 @@ function cPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.better_version,
...o("quality"),
onClick: n.quality,
- children: /* @__PURE__ */ (0, I.jsx)(a4, { name: "sparkles" })
+ children: /* @__PURE__ */ (0, I.jsx)(s4, { name: "sparkles" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -76013,11 +76026,11 @@ function cPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.disposal === "trash",
...o("dispose"),
onClick: () => n.feedback("dispose"),
- children: /* @__PURE__ */ (0, I.jsx)(a4, { name: "trash" })
+ children: /* @__PURE__ */ (0, I.jsx)(s4, { name: "trash" })
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(hPe, {
+ /* @__PURE__ */ (0, I.jsx)(vPe, {
item: e,
open: s,
write: n
@@ -76028,7 +76041,7 @@ function cPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
...o("o"),
onClick: () => n.feedback("o"),
children: [
- /* @__PURE__ */ (0, I.jsx)(a4, { name: "sperm" }),
+ /* @__PURE__ */ (0, I.jsx)(s4, { name: "sperm" }),
/* @__PURE__ */ (0, I.jsx)("span", { children: "记一次高潮" }),
/* @__PURE__ */ (0, I.jsx)("b", {
className: "mono",
@@ -76041,8 +76054,8 @@ function cPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
});
}
-function lPe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
- let { text: a, expanded: o, foldable: s, toggle: c } = Y2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + ade(e, t);
+function fPe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
+ let { text: a, expanded: o, foldable: s, toggle: c } = Z2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + cde(e, t);
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-item-title": "",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -76069,23 +76082,23 @@ function lPe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
"aria-label": o ? "收起标题" : "展开标题",
title: o ? "收起标题" : "展开完整标题",
onClick: c,
- children: /* @__PURE__ */ (0, I.jsx)(AH, {})
+ children: /* @__PURE__ */ (0, I.jsx)(MH, {})
}),
e.has_cover && (e.cover_key || e.code) ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-cover-crop-host": "",
- children: /* @__PURE__ */ (0, I.jsx)($Ne, {
+ children: /* @__PURE__ */ (0, I.jsx)(nPe, {
code: e.cover_key || e.code || "",
coverUrl: lo(e),
box: e.poster_box || null,
onSaved: (t) => {
H.invalidateQueries({
- queryKey: pP(e.id),
+ queryKey: hP(e.id),
exact: !0
- }), lP((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
+ }), dP((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
}
})
}) : null,
- e.location === "online" ? null : /* @__PURE__ */ (0, I.jsx)(uPe, {
+ e.location === "online" ? null : /* @__PURE__ */ (0, I.jsx)(pPe, {
id: e.id,
actions: r,
onStatus: i
@@ -76095,7 +76108,7 @@ function lPe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
})
});
}
-function uPe({ id: e, actions: t, onStatus: n }) {
+function pPe({ id: e, actions: t, onStatus: n }) {
let [r, i] = (0, F.useState)(""), a = async () => {
r || (i("reveal"), n(""), n(await t.reveal(e)), i(""));
}, o = async () => {
@@ -76125,18 +76138,18 @@ function uPe({ id: e, actions: t, onStatus: n }) {
"aria-disabled": !0
} : {},
onClick: () => void o(),
- children: /* @__PURE__ */ (0, I.jsx)(a4, { name: "folder-sync" })
+ children: /* @__PURE__ */ (0, I.jsx)(s4, { name: "folder-sync" })
})] });
}
-function dPe({ item: e, write: t }) {
- let n = dP(e.rating);
+function mPe({ item: e, write: t }) {
+ let n = pP(e.rating);
return /* @__PURE__ */ (0, I.jsxs)("div", {
id: "detailRating",
role: "group",
"data-item-rating": "",
"aria-label": "评分",
- "data-value": uP(e.rating),
- children: [/* @__PURE__ */ (0, I.jsx)(GJ, {
+ "data-value": fP(e.rating),
+ children: [/* @__PURE__ */ (0, I.jsx)(qJ, {
value: n,
onRate: (e) => t.rate(e),
busyStar: [
@@ -76150,14 +76163,14 @@ function dPe({ item: e, write: t }) {
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-rating-value": "",
"aria-live": "polite",
- children: Jue(e.rating)
+ children: Zue(e.rating)
})]
});
}
-function fPe({ item: e, actions: t }) {
- let n = (0, F.useMemo)(() => $ue(e), [e]), [r, i] = (0, F.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
+function hPe({ item: e, actions: t }) {
+ let n = (0, F.useMemo)(() => nde(e), [e]), [r, i] = (0, F.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
let a = e === "performer" && i >= 8 && !r;
- return /* @__PURE__ */ (0, I.jsx)(q2, {
+ return /* @__PURE__ */ (0, I.jsx)(Y2, {
kind: e,
person: n,
onOpen: t.openEntity,
@@ -76189,7 +76202,7 @@ function fPe({ item: e, actions: t }) {
onClick: t.openUnowned,
children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-id-face": "",
- children: /* @__PURE__ */ (0, I.jsx)(a4, { name: "user-round" })
+ children: /* @__PURE__ */ (0, I.jsx)(s4, { name: "user-round" })
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-id-name": "",
children: "未归属"
@@ -76201,7 +76214,7 @@ function fPe({ item: e, actions: t }) {
size: "small",
id: "castMore",
"data-cast-more": "",
- trailingIcon: hB,
+ trailingIcon: _B,
"aria-expanded": !1,
onClick: () => i(!0),
children: [
@@ -76220,18 +76233,18 @@ function fPe({ item: e, actions: t }) {
children: [c.length ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-identity-primary": "",
children: c
- }) : null, /* @__PURE__ */ (0, I.jsx)(J2, {
+ }) : null, /* @__PURE__ */ (0, I.jsx)(X2, {
people: n.series,
onOpen: t.openEntity
})]
});
}
-function pPe({ item: e, write: t, helpers: n, actions: r }) {
+function gPe({ item: e, write: t, helpers: n, actions: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-item-tags": "",
- children: /* @__PURE__ */ (0, I.jsx)(z2, {
+ children: /* @__PURE__ */ (0, I.jsx)(V2, {
id: "detailTags",
- tags: ede(e, n),
+ tags: rde(e, n),
candidates: n.tagCandidates(),
label: n.tagLabel,
adding: [...t.busy].some((e) => e.startsWith("add:")),
@@ -76242,8 +76255,8 @@ function pPe({ item: e, write: t, helpers: n, actions: r }) {
}, e.id)
});
}
-function mPe({ item: e }) {
- let t = lde(e);
+function _Pe({ item: e }) {
+ let t = fde(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-item-trace": "",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -76277,7 +76290,7 @@ function mPe({ item: e }) {
})]
});
}
-function hPe({ item: e, open: t, write: n }) {
+function vPe({ item: e, open: t, write: n }) {
let [r, i] = (0, F.useState)(e.like_reason || ""), a = (0, F.useRef)(null);
(0, F.useEffect)(() => {
t && a.current?.focus();
@@ -76316,12 +76329,12 @@ function hPe({ item: e, open: t, write: n }) {
})]
});
}
-function gPe(e) {
+function yPe(e) {
let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = Ft({
- queryKey: Yue(t.id, n),
- queryFn: async ({ signal: e }) => (await B(Zue(t.id, n), e)).items || []
+ queryKey: Que(t.id, n),
+ queryFn: async ({ signal: e }) => (await B(ede(t.id, n), e)).items || []
}), [o] = (0, F.useState)(() => r.relatedSkeletonHtml());
- return /* @__PURE__ */ (0, I.jsx)(P2, {
+ return /* @__PURE__ */ (0, I.jsx)(I2, {
wireDrag: r.wireDrag,
busy: a.isPending,
empty: a.data?.length === 0,
@@ -76329,7 +76342,7 @@ function gPe(e) {
onRetry: () => {
a.refetch();
},
- children: a.data ? /* @__PURE__ */ (0, I.jsx)(tY, {
+ children: a.data ? /* @__PURE__ */ (0, I.jsx)(rY, {
mode: "items",
variant: "next",
items: a.data,
@@ -76342,11 +76355,11 @@ function gPe(e) {
revision: 0,
wireDrag: r.wireDrag,
skeletonHtml: () => ""
- }) : /* @__PURE__ */ (0, I.jsx)(o4, { html: o })
+ }) : /* @__PURE__ */ (0, I.jsx)(c4, { html: o })
});
}
-function _Pe(e, t, n) {
- let r = e.id, i = pP(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = (e, t) => o((n) => {
+function bPe(e, t, n) {
+ let r = e.id, i = hP(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), f = () => H.getQueryData(i) || e, p = (e) => {
@@ -76362,7 +76375,7 @@ function _Pe(e, t, n) {
rating: t.rating,
o_count: t.o_count
};
- return cP(r, n), t;
+ return uP(r, n), t;
}, m = (e, t) => V(e, {
id: r,
...t
@@ -76377,7 +76390,7 @@ function _Pe(e, t, n) {
run: n
}));
}, _ = async (e, t) => {
- let n = await m(gP, t === void 0 ? { kind: e } : {
+ let n = await m(vP, t === void 0 ? { kind: e } : {
kind: e,
value: t
});
@@ -76397,21 +76410,21 @@ function _Pe(e, t, n) {
"aria-disabled": !0
} : {},
rate: (e) => g(`rate:${e}`, "评分", async () => {
- let n = f().rating || 0, r = fP(n, e);
- await _("rate", r), t.toast(r ? `已评 ${dP(r)} 星` : "已取消评分", { undo: async () => {
+ let n = f().rating || 0, r = mP(n, e);
+ await _("rate", r), t.toast(r ? `已评 ${pP(r)} 星` : "已取消评分", { undo: async () => {
await _("rate", n);
} });
}),
feedback: (e) => g(e, "操作", async () => {
let n = { feedback: f().feedback || null }, r = await _(e);
- t.toast(IP(e, r), { undo: async () => {
+ t.toast(RP(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(vP, {});
+ let e = await m(bP, {});
p({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
- p({ watch_later: (await m(vP, {})).watch_later });
+ p({ watch_later: (await m(bP, {})).watch_later });
} });
}),
quality: () => g("quality", "更新版本需求", async () => {
@@ -76421,9 +76434,9 @@ function _Pe(e, t, n) {
}, n = (e) => p({
better_version: e.better_version,
better_version_reason: e.better_version_reason || ""
- }), r = await m(yP, { wanted: !e.wanted });
+ }), r = await m(xP, { wanted: !e.wanted });
n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {
- n(await m(yP, e));
+ n(await m(xP, e));
} });
}),
preference: ({ liked: e, reason: n }) => {
@@ -76437,7 +76450,7 @@ function _Pe(e, t, n) {
});
u("保存中…");
try {
- o(await m(bP, {
+ o(await m(SP, {
liked: a,
reason: i
}));
@@ -76447,7 +76460,7 @@ function _Pe(e, t, n) {
u("已保存"), setTimeout(() => u((e) => e === "已保存" ? "" : e), 1400);
let s = f();
t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {
- o(await m(bP, r));
+ o(await m(SP, r));
} });
});
},
@@ -76456,41 +76469,41 @@ function _Pe(e, t, n) {
operation: "remove",
tag: e.k
})).ok) throw Error("标签未删除");
- p((t) => AP(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
- await m(_P, {
+ p((t) => MP(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
+ await m(yP, {
operation: "add",
tag: e.k
- }), p((t) => jP(t, e));
+ }), p((t) => NP(t, e));
} });
}),
addTag: (e) => {
let r = e.trim();
r && g(`add:${r}`, "添加标签", async () => {
- let e = await m(_P, {
+ let e = await m(yP, {
operation: "add",
tag: r
});
if (!e.ok) return;
let i = e.tag || r;
- kP(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => jP(e, {
+ jP(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => NP(e, {
k: i,
cat: "general"
- })), PP(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
- await m(_P, {
+ })), IP(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
+ await m(yP, {
operation: "remove",
tag: i
- }), p((e) => AP(e, i));
+ }), p((e) => MP(e, i));
} }));
});
}
};
}
// src/react/publication-cache.ts
-var l4 = 864e5, u4 = (e) => {
+var d4 = 864e5, f4 = (e) => {
let t = new Date(e);
return Date.UTC(t.getFullYear(), t.getMonth(), t.getDate());
};
-function d4(e) {
+function p4(e) {
let t = /^(\d{4})-(\d{2})-(\d{2})(?:$|T)/.exec(e || "");
if (!t) return;
let n = Number(t[1]), r = Number(t[2]) - 1, i = Number(t[3]), a = new Date(Date.UTC(n, r, i));
@@ -76498,25 +76511,25 @@ function d4(e) {
let o = new Date(Date.UTC(n, r + 2, 0)).getUTCDate();
return Date.UTC(n, r + 1, Math.min(i, o));
}
-function vPe(e, t = Date.now()) {
- let n = d4(e);
- return n !== void 0 && u4(t) > n ? Infinity : l4;
+function xPe(e, t = Date.now()) {
+ let n = p4(e);
+ return n !== void 0 && f4(t) > n ? Infinity : d4;
}
-function f4(e, t, n = Date.now()) {
- return !Number.isFinite(e) || e <= 0 || e > n ? !1 : vPe(t, n) === Infinity ? u4(e) > d4(t) : n - e < l4;
+function m4(e, t, n = Date.now()) {
+ return !Number.isFinite(e) || e <= 0 || e > n ? !1 : xPe(t, n) === Infinity ? f4(e) > p4(t) : n - e < d4;
}
// src/react/wants/resource-cache.ts
-var p4 = "peach.want-resources.v2";
-function m4(e) {
+var h4 = "peach.want-resources.v2";
+function g4(e) {
return !e.cache_stale && (e.complete === !0 || !e.warnings?.length);
}
-function h4(e, t, n) {
- return !!e && !e.cache_stale && (e.state === "error" || !m4(e) ? Date.now() - t < 6e4 : f4(t, n));
+function _4(e, t, n) {
+ return !!e && !e.cache_stale && (e.state === "error" || !g4(e) ? Date.now() - t < 6e4 : m4(t, n));
}
-function g4() {
+function v4() {
try {
- let e = JSON.parse(localStorage.getItem(p4) || "[]");
- return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items) && m4(e.result) && e.result.items.every((e) => e && [
+ let e = JSON.parse(localStorage.getItem(h4) || "[]");
+ return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items) && g4(e.result) && e.result.items.every((e) => e && [
"magnet",
"ed2k",
"url"
@@ -76525,23 +76538,23 @@ function g4() {
return [];
}
}
-function yPe(e, t) {
- let n = g4().find((t) => t.code === e);
- return n && f4(n.saved, t) ? n : void 0;
+function SPe(e, t) {
+ let n = v4().find((t) => t.code === e);
+ return n && m4(n.saved, t) ? n : void 0;
}
-function bPe(e) {
- let t = new Map(g4().map((e) => [e.code, e])), n = /* @__PURE__ */ new Map();
+function CPe(e) {
+ let t = new Map(v4().map((e) => [e.code, e])), n = /* @__PURE__ */ new Map();
for (let r of e) {
if (!r.code) continue;
let e = t.get(`all-sources:${r.code}`);
- e && f4(e.saved, r.release_date) && n.set(r.code, e.result.items.some((e) => e.protocol === "magnet"));
+ e && m4(e.saved, r.release_date) && n.set(r.code, e.result.items.some((e) => e.protocol === "magnet"));
}
return n;
}
-function xPe(e, t) {
- if (t.state === "ready" && m4(t)) try {
- let n = g4().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
- localStorage.setItem(p4, JSON.stringify([{
+function wPe(e, t) {
+ if (t.state === "ready" && g4(t)) try {
+ let n = v4().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
+ localStorage.setItem(h4, JSON.stringify([{
code: e,
saved: Number.isFinite(r) ? r : Date.now(),
result: t
@@ -76549,15 +76562,15 @@ function xPe(e, t) {
} catch {}
}
// src/react/wants/resource-display.ts
-function SPe(e) {
+function TPe(e) {
let t = (e ?? "").trim(), n = /^([\d,]+)\s*B$/i.exec(t);
return /^[\d,.]+$/.test(t) ? "大小未知" : n ? Xn(Number(n[1].replaceAll(",", ""))) : e || "大小未知";
}
-function CPe(e) {
+function EPe(e) {
return /^更多评论.*(?:VIP|官方 App)/.test(e) ? "来源只返回了部分评论,资源链接可能不完整。" : e;
}
// src/react/wants/want-magnets.tsx
-function _4({ icon: e, children: t, title: n }) {
+function y4({ icon: e, children: t, title: n }) {
return /* @__PURE__ */ (0, I.jsxs)("span", {
title: n,
className: "inline-flex items-center gap-1",
@@ -76567,8 +76580,8 @@ function _4({ icon: e, children: t, title: n }) {
}), t]
});
}
-function v4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a, queryUrl: o }) {
- let s = (0, F.useRef)(null), [c, l] = (0, F.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, F.useState)([]), f = fH(), p = ae(), m = (0, F.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, F.useMemo)(() => yPe(h, e.release_date), [h, e.release_date]);
+function b4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a, queryUrl: o }) {
+ let s = (0, F.useRef)(null), [c, l] = (0, F.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, F.useState)([]), f = mH(), p = ae(), m = (0, F.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, F.useMemo)(() => SPe(h, e.release_date), [h, e.release_date]);
(0, F.useEffect)(() => {
if (!s.current || c) return;
let e = new IntersectionObserver((t) => {
@@ -76588,22 +76601,22 @@ function v4({ 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 B(`${r}${n ? `${r.includes("?") ? "&" : "?"}refresh=1` : ""}`, t);
- return m.current = n && i.state === "busy", xPe(h, i), i;
+ return m.current = n && i.state === "busy", wPe(h, i), i;
},
initialData: g?.result,
initialDataUpdatedAt: g?.saved,
enabled: c,
retry: !1,
- staleTime: (t) => h4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) ? Infinity : 0,
+ staleTime: (t) => _4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) ? Infinity : 0,
gcTime: 864e5,
- refetchOnMount: (t) => !h4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) && "always",
+ refetchOnMount: (t) => !_4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) && "always",
refetchOnWindowFocus: !1,
refetchInterval: (e) => e.state.data?.state === "busy" && 3e3
});
(0, F.useEffect)(() => {
_.data?.source_url && a?.(_.data.source_url);
}, [_.data?.source_url, a]), (0, F.useEffect)(() => {
- !o && _.data && (_.data.state === "ready" || _.data.items.length > 0) && jye(e.id, _.data.items.some((e) => e.protocol === "magnet"));
+ !o && _.data && (_.data.state === "ready" || _.data.items.length > 0) && Pye(e.id, _.data.items.some((e) => e.protocol === "magnet"));
}, [
_.data,
o,
@@ -76611,7 +76624,7 @@ function v4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
]);
let v = n?.providers.find((e) => e.key === r && e.configured), y = (r) => {
!t && n?.available && v && r.protocol === "magnet" && f.run(r.id, async (t) => {
- let n = await V(GU, {
+ let n = await V(qU, {
magnet: r.uri,
provider: v.key,
target: v.target,
@@ -76622,7 +76635,7 @@ function v4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
if (!n.ok) throw Error(n.task.failure_detail || n.task.failure_label || "添加下载失败");
return n;
}, (e) => {
- d((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), p.invalidateQueries({ queryKey: KU });
+ d((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), p.invalidateQueries({ queryKey: JU });
});
}, b = (e) => {
f.run(`copy:${e.id}`, () => navigator.clipboard.writeText(e.uri), () => i("已复制链接"));
@@ -76640,39 +76653,39 @@ function v4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
}), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: VB,
- ...fV(x),
+ leadingIcon: UB,
+ ...mV(x),
onClick: () => {
x || (m.current = !0, _.refetch());
},
children: "重新查询"
})]
}),
- x ? /* @__PURE__ */ (0, I.jsx)(wH, { label: "正在查找资源链接" }) : null,
- S ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ x ? /* @__PURE__ */ (0, I.jsx)(EH, { label: "正在查找资源链接" }) : null,
+ S ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "error",
title: "资源链接未取得",
children: S
}) : null,
- _.data?.warnings?.map((e) => /* @__PURE__ */ (0, I.jsx)(sV, {
+ _.data?.warnings?.map((e) => /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "neutral",
- children: CPe(e)
+ children: EPe(e)
}, e)),
- _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, I.jsx)(gL, {
+ _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, I.jsx)(vL, {
variant: "secondary",
size: "small",
className: "self-start",
- trailingIcon: EB,
+ trailingIcon: OB,
href: _.data.source_url,
target: "_blank",
rel: "noopener noreferrer",
children: "查看来源页"
}) : null,
- _.data?.state === "ready" && !_.data.items.length && !_.data.warnings?.length ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ _.data?.state === "ready" && !_.data.items.length && !_.data.warnings?.length ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "neutral",
children: "暂未找到资源链接。"
}) : null,
- f.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ f.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "error",
title: "操作未完成",
children: f.error
@@ -76687,7 +76700,7 @@ function v4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
className: "flex min-w-0 flex-col gap-1",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(UU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(GU, {
variant: "caption",
color: e.protocol === "magnet" ? "blue" : e.protocol === "ed2k" ? "purple" : "neutral",
children: e.protocol === "magnet" ? "磁链" : e.protocol === "ed2k" ? "ED2K" : "网页链接"
@@ -76701,26 +76714,26 @@ function v4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
"data-resource-facts": "",
className: "flex flex-wrap gap-x-2 gap-y-1 text-caption-1-regular text-text-secondary",
children: [
- /* @__PURE__ */ (0, I.jsx)(_4, {
- icon: Pge,
+ /* @__PURE__ */ (0, I.jsx)(y4, {
+ icon: Lge,
children: e.source
}),
- /* @__PURE__ */ (0, I.jsx)(_4, {
- icon: NB,
+ /* @__PURE__ */ (0, I.jsx)(y4, {
+ icon: FB,
title: e.size ? `来源大小:${e.size}` : void 0,
- children: SPe(e.size)
+ children: TPe(e.size)
}),
- e.files ? /* @__PURE__ */ (0, I.jsx)(_4, {
- icon: Cge,
+ e.files ? /* @__PURE__ */ (0, I.jsx)(y4, {
+ icon: Ege,
children: e.files.replaceAll("個", "个")
}) : null,
- /* @__PURE__ */ (0, I.jsx)(_4, {
- icon: lge,
+ /* @__PURE__ */ (0, I.jsx)(y4, {
+ icon: fge,
title: e.source === "JavDB 评论" ? "评论日期" : "收录日期",
children: e.date ? e.date.slice(0, 10) : "日期未知"
}),
- e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, I.jsx)(_4, {
- icon: BB,
+ e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, I.jsx)(y4, {
+ icon: HB,
children: e
}, e))
]
@@ -76729,11 +76742,11 @@ function v4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
"data-resource-actions": "",
className: "flex flex-wrap gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(gL, {
+ /* @__PURE__ */ (0, I.jsx)(vL, {
"data-button-link": "",
variant: "secondary",
size: "small",
- trailingIcon: EB,
+ trailingIcon: OB,
href: e.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@ -76742,18 +76755,18 @@ function v4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: xge,
- ...fV(f.busy === `copy:${e.id}`),
+ leadingIcon: wge,
+ ...mV(f.busy === `copy:${e.id}`),
onClick: () => b(e),
children: "复制链接"
}),
e.protocol === "magnet" ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "primary",
size: "small",
- leadingIcon: v ? zH(v.key) : mge,
+ leadingIcon: v ? VH(v.key) : _ge,
title: v ? `下载到 ${v.label}` : void 0,
disabled: t || !n?.available || !v || r,
- ...fV(f.busy === e.id),
+ ...mV(f.busy === e.id),
onClick: () => y(e),
children: r ? "已添加" : "添加下载"
}) : null
@@ -76764,7 +76777,7 @@ function v4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: e.slice(0, 3)
- }), e.length > 3 ? /* @__PURE__ */ (0, I.jsx)(IH, {
+ }), e.length > 3 ? /* @__PURE__ */ (0, I.jsx)(RH, {
summary: `更多资源(${e.length - 3} 条)`,
children: /* @__PURE__ */ (0, I.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
@@ -76776,10 +76789,10 @@ function v4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
});
}
// src/react/jav-detail/review-cache.ts
-var y4 = "peach.jav-reviews.v2";
-function b4() {
+var x4 = "peach.jav-reviews.v2";
+function S4() {
try {
- let e = localStorage.getItem(y4) || "[]";
+ let e = localStorage.getItem(x4) || "[]";
if (e.length > 2e6) return [];
let t = JSON.parse(e);
return Array.isArray(t) ? t.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.ok === !0 && !e.result.cache_stale && Number.isInteger(e.result.page) && e.result.page >= 1 && e.result.page <= 8 && Array.isArray(e.result.items) && e.result.items.length <= 10 && e.result.items.every((e) => typeof e?.id == "string" && typeof e.content == "string" && typeof e.username == "string" && typeof e.created_at == "string")) : [];
@@ -76787,21 +76800,21 @@ function b4() {
return [];
}
}
-function wPe(e, t) {
+function DPe(e, t) {
if (t.ok && !t.cache_stale) try {
let n = Date.parse(t.checked_at || ""), r = [{
code: e,
saved: Number.isFinite(n) ? n : Date.now(),
result: t
- }, ...b4().filter((n) => n.code !== e || n.result.page !== t.page)].slice(0, 128), i = JSON.stringify(r);
- i.length <= 2e6 && localStorage.setItem(y4, i);
+ }, ...S4().filter((n) => n.code !== e || n.result.page !== t.page)].slice(0, 128), i = JSON.stringify(r);
+ i.length <= 2e6 && localStorage.setItem(x4, i);
} catch {}
}
-function TPe(e, t) {
- let n = b4(), r = [], i = Infinity;
+function OPe(e, t) {
+ let n = S4(), r = [], i = Infinity;
for (let a = 1; a <= 8; a++) {
let o = n.find((t) => t.code === e && t.result.page === a);
- if (!o || !f4(o.saved, t) || (r.push(o.result), i = Math.min(i, o.saved), !o.result.more)) break;
+ if (!o || !m4(o.saved, t) || (r.push(o.result), i = Math.min(i, o.saved), !o.result.more)) break;
}
return r.length ? {
pages: r,
@@ -76809,16 +76822,16 @@ function TPe(e, t) {
saved: i
} : void 0;
}
-function EPe(e, t, n) {
- return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && f4(Date.parse(e.checked_at || "") || t, n));
+function kPe(e, t, n) {
+ return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && m4(Date.parse(e.checked_at || "") || t, n));
}
// src/react/jav-detail/jav-detail-page.tsx
-function DPe(e) {
+function APe(e) {
let t = (0, F.useRef)(!1), n = Ft({
- queryKey: Z2(e.code),
+ queryKey: $2(e.code),
queryFn: ({ signal: n }) => {
let r = t.current;
- return t.current = !1, Q2(e.code, n, r);
+ return t.current = !1, e4(e.code, n, r);
},
staleTime: 216e5
}), r = () => {
@@ -76828,21 +76841,21 @@ function DPe(e) {
"data-jav-detail": "",
"data-item-detail": "",
"data-stage-grid": "",
- children: n.data ? /* @__PURE__ */ (0, I.jsx)(OPe, {
+ children: n.data ? /* @__PURE__ */ (0, I.jsx)(jPe, {
...e,
item: n.data,
retry: r,
retrying: n.isFetching
}, e.code) : /* @__PURE__ */ (0, I.jsxs)("div", {
"data-jav-failure": "",
- children: [/* @__PURE__ */ (0, I.jsx)(x4, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, I.jsx)(FG, {
+ children: [/* @__PURE__ */ (0, I.jsx)(C4, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, I.jsx)(LG, {
message: lr(n.error),
onRetry: r
}) : null]
})
});
}
-var x4 = ({ close: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
+var C4 = ({ close: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -76851,7 +76864,7 @@ var x4 = ({ close: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function OPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {
+function jPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {
(0, F.useEffect)(() => {
n.canonicalCode?.(t.code);
}, [n, t.code]), (0, F.useEffect)(() => {
@@ -76871,13 +76884,13 @@ function OPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
label: "视频预览",
video: !0
}] : []
- ], [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(t.want_id), p = fH(), m = () => {
- p.run("want", async (e) => d ? (await iW([d], e), null) : (await rW({ code: t.code }, e)).want.id, (t) => {
- f(t), H.setQueryData(Z2(e), (e) => e && {
+ ], [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(t.want_id), p = mH(), m = () => {
+ p.run("want", async (e) => d ? (await oW([d], e), null) : (await aW({ code: t.code }, e)).want.id, (t) => {
+ f(t), H.setQueryData($2(e), (e) => e && {
...e,
wanted: !!t,
want_id: t
- }), n.receipt(t ? "已加入想要" : "已取消想要"), aW(), H.invalidateQueries({ queryKey: ["feed-new"] }), H.invalidateQueries({ queryKey: ["jav-discoveries"] });
+ }), n.receipt(t ? "已加入想要" : "已取消想要"), sW(), H.invalidateQueries({ queryKey: ["feed-new"] }), H.invalidateQueries({ queryKey: ["jav-discoveries"] });
});
};
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
@@ -76886,24 +76899,24 @@ function OPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
"data-jav-art": "",
"data-jav-playing": o === -2 ? "" : void 0,
children: [
- /* @__PURE__ */ (0, I.jsx)(x4, { close: n.close }),
+ /* @__PURE__ */ (0, I.jsx)(C4, { close: n.close }),
t.preview_video_url ? /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-jav-preview-toggle": "",
"aria-pressed": o === -2,
onClick: () => s(o === -2 ? -1 : -2),
- children: [/* @__PURE__ */ (0, I.jsx)(S4, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]
+ children: [/* @__PURE__ */ (0, I.jsx)(w4, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]
}) : null,
- o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, I.jsx)(jPe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, I.jsx)(oQ, {
+ o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, I.jsx)(PPe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, I.jsx)(cQ, {
item: t,
image: o === -1 ? "cover" : String(o)
}, t.code),
- /* @__PURE__ */ (0, I.jsx)(I2, {
+ /* @__PURE__ */ (0, I.jsx)(R2, {
items: c,
position: Math.max(0, c.findIndex((e) => e.index === o)),
onSelect: s,
below: !0,
- renderThumbnail: (e) => /* @__PURE__ */ (0, I.jsx)(oQ, {
+ renderThumbnail: (e) => /* @__PURE__ */ (0, I.jsx)(cQ, {
item: t,
image: e.index < 0 ? "cover" : String(e.index),
thumbnail: !0
@@ -76917,33 +76930,33 @@ function OPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
"data-stage-side-content": "",
"data-jav-info": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(kPe, { item: t }),
- Number(t.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(w4, { score: Number(t.score) }) : null,
+ /* @__PURE__ */ (0, I.jsx)(MPe, { item: t }),
+ Number(t.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(E4, { score: Number(t.score) }) : null,
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "mono",
"data-stage-meta": "",
"data-reveal-line": "",
- children: [/* @__PURE__ */ (0, I.jsx)(C4, {
+ children: [/* @__PURE__ */ (0, I.jsx)(T4, {
glyph: "calendar",
label: "发行日期",
value: t.release_date
- }), /* @__PURE__ */ (0, I.jsx)(C4, {
+ }), /* @__PURE__ */ (0, I.jsx)(T4, {
glyph: "clock",
label: "时长",
value: t.duration ? `${t.duration} 分钟` : void 0
})]
}),
- /* @__PURE__ */ (0, I.jsx)(APe, {
+ /* @__PURE__ */ (0, I.jsx)(NPe, {
item: t,
navigate: n.navigate
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-jav-facts": "",
- children: [/* @__PURE__ */ (0, I.jsx)(C4, {
+ children: [/* @__PURE__ */ (0, I.jsx)(T4, {
glyph: "briefcase",
label: "发行商",
value: t.publisher
- }), /* @__PURE__ */ (0, I.jsx)(C4, {
+ }), /* @__PURE__ */ (0, I.jsx)(T4, {
glyph: "clapperboard",
label: "导演",
value: t.director
@@ -76972,14 +76985,14 @@ function OPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
t.summary ? /* @__PURE__ */ (0, I.jsx)("p", {
"data-jav-summary": "",
"data-long-text": "",
- lang: LI(t.summary),
+ lang: zI(t.summary),
children: t.summary
}) : null,
- t.message ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ t.message ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...fV(a),
+ ...mV(a),
onClick: i,
children: "立即重试"
}),
@@ -76988,10 +77001,10 @@ function OPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-jav-actions": "",
children: [
- t.source_url ? /* @__PURE__ */ (0, I.jsx)(gL, {
+ t.source_url ? /* @__PURE__ */ (0, I.jsx)(vL, {
"data-button-link": "",
variant: "secondary",
- trailingIcon: EB,
+ trailingIcon: OB,
href: t.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@ -77001,7 +77014,7 @@ function OPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
variant: "secondary",
disabled: r,
"aria-pressed": !!d,
- ...fV(!!p.busy),
+ ...mV(!!p.busy),
onClick: m,
children: d ? "取消想要" : "想要"
}),
@@ -77019,16 +77032,16 @@ function OPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
})
]
}),
- p.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ p.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "error",
children: p.error
}) : null,
- /* @__PURE__ */ (0, I.jsx)(MPe, {
+ /* @__PURE__ */ (0, I.jsx)(FPe, {
code: t.code,
count: t.comments_count,
released: t.release_date
}),
- /* @__PURE__ */ (0, I.jsx)(NPe, {
+ /* @__PURE__ */ (0, I.jsx)(IPe, {
item: t,
actions: n,
readOnly: r
@@ -77036,24 +77049,24 @@ function OPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
]
})
}),
- /* @__PURE__ */ (0, I.jsx)($U, {
+ /* @__PURE__ */ (0, I.jsx)(tW, {
prefill: l,
close: () => u(null),
receipt: n.receipt
})
] });
}
-var S4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var w4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: R(e) }
-}), C4 = ({ glyph: e, label: t, value: n }) => n ? /* @__PURE__ */ (0, I.jsxs)("span", {
+}), T4 = ({ glyph: e, label: t, value: n }) => n ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-spec-item": "",
title: t,
- children: [/* @__PURE__ */ (0, I.jsx)(S4, { name: e }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
+ children: [/* @__PURE__ */ (0, I.jsx)(w4, { name: e }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
}) : null;
-function kPe({ item: e }) {
- let { text: t, expanded: n, foldable: r, toggle: i } = Y2(e.title), a = e.title === e.code ? "" : e.title;
+function MPe({ item: e }) {
+ let { text: t, expanded: n, foldable: r, toggle: i } = Z2(e.title), a = e.title === e.code ? "" : e.title;
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-item-title": "",
children: [/* @__PURE__ */ (0, I.jsx)("h1", {
@@ -77069,7 +77082,7 @@ function kPe({ item: e }) {
r && !String(getSelection() || "") && i();
},
children: [/* @__PURE__ */ (0, I.jsx)("b", { children: e.code }), a ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [" ", /* @__PURE__ */ (0, I.jsx)("span", {
- lang: LI(a),
+ lang: zI(a),
children: a
})] }) : null]
})
@@ -77083,25 +77096,25 @@ function kPe({ item: e }) {
"aria-label": n ? "收起标题" : "展开标题",
title: n ? "收起标题" : "展开完整标题",
onClick: i,
- children: /* @__PURE__ */ (0, I.jsx)(AH, {})
+ children: /* @__PURE__ */ (0, I.jsx)(MH, {})
})
})]
});
}
-function w4({ score: e, review: t = !1 }) {
+function E4({ score: e, review: t = !1 }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-item-rating": "",
"data-jav-rating": "",
"data-review-rating": t ? "" : void 0,
role: "img",
"aria-label": `${t ? "评论" : "JavDB"}评分 ${e} / 5`,
- children: [/* @__PURE__ */ (0, I.jsx)(GJ, { value: e }), /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(qJ, { value: e }), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-rating-value": "",
children: [e.toFixed(1), " / 5"]
})]
});
}
-function APe({ item: e, navigate: t }) {
+function NPe({ item: e, navigate: t }) {
let n = (e, n) => t(Pn(e, n)), r = (t, r, i, a) => i.length ? /* @__PURE__ */ (0, I.jsxs)("section", {
"data-id-group": t,
"data-id-gender": a,
@@ -77110,14 +77123,14 @@ function APe({ item: e, navigate: t }) {
children: r
}), /* @__PURE__ */ (0, I.jsx)("div", {
"data-id-row": "",
- children: i.map((r) => /* @__PURE__ */ (0, I.jsx)(q2, {
+ children: i.map((r) => /* @__PURE__ */ (0, I.jsx)(Y2, {
kind: t,
person: {
...r,
id: r.id ?? null
},
onOpen: n,
- face: t === "performer" && !r.has_image && !r.has_avatar && r.source_avatar && r.source_actor_id ? /* @__PURE__ */ (0, I.jsx)(sQ, {
+ face: t === "performer" && !r.has_image && !r.has_avatar && r.source_avatar && r.source_actor_id ? /* @__PURE__ */ (0, I.jsx)(lQ, {
code: e.code,
person: r,
detail: !0
@@ -77134,7 +77147,7 @@ function APe({ item: e, navigate: t }) {
r("performer", "出演者", e.performer_refs.filter((e) => !e.gender || e.gender === "unknown"), "unknown"),
r("studio", "厂牌", e.studio_refs)
]
- }), /* @__PURE__ */ (0, I.jsx)(J2, {
+ }), /* @__PURE__ */ (0, I.jsx)(X2, {
people: e.series_refs.map((e) => ({
...e,
id: e.id ?? null
@@ -77143,18 +77156,18 @@ function APe({ item: e, navigate: t }) {
})]
});
}
-function jPe({ src: e }) {
+function PPe({ src: e }) {
let t = (0, F.useRef)(null), [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(0);
return (0, F.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), Fue(i, {
+ return i.className = "video-js vjs-big-play-centered", i.controls = !0, i.setAttribute("playsinline", ""), i.setAttribute("aria-label", "视频预览"), n.append(i), Rue(i, {
src: e,
type: /\.m3u8(?:\?|$)/i.test(e) ? "application/x-mpegURL" : "video/mp4"
}, () => r(!0));
}, [e, i]), /* @__PURE__ */ (0, I.jsx)("div", {
ref: t,
"data-jav-video": "",
- children: n ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ children: n ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -77167,8 +77180,8 @@ function jPe({ src: e }) {
}) : null
});
}
-function MPe({ code: e, count: t, released: n }) {
- let r = ae(), [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => TPe(e, n), [e, n]), s = (0, F.useRef)(!1), c = Lt({
+function FPe({ code: e, count: t, released: n }) {
+ let r = ae(), [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => OPe(e, n), [e, n]), s = (0, F.useRef)(!1), c = Lt({
queryKey: ["jav-reviews", e],
enabled: i,
initialPageParam: 1,
@@ -77177,12 +77190,12 @@ function MPe({ code: e, count: t, released: n }) {
pageParams: o.pageParams
} : void 0,
initialDataUpdatedAt: o?.saved,
- staleTime: (e) => EPe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
+ staleTime: (e) => kPe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
gcTime: 864e5,
refetchOnWindowFocus: !1,
queryFn: async ({ signal: t, pageParam: n }) => {
- let i = await KNe(e, n, t, s.current);
- if (wPe(e, i), !i.ok || i.cache_stale) {
+ let i = await YNe(e, n, t, s.current);
+ if (DPe(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,
@@ -77192,7 +77205,7 @@ function MPe({ code: e, count: t, released: n }) {
}
return i;
},
- getNextPageParam: qNe
+ getNextPageParam: XNe
});
(0, F.useEffect)(() => {
c.isFetching || (s.current = !1);
@@ -77200,10 +77213,10 @@ function MPe({ 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 ? lr(c.error) : l.find((e) => !e.ok || e.cache_stale)?.message;
return /* @__PURE__ */ (0, I.jsx)("section", {
"data-jav-reviews": "",
- children: /* @__PURE__ */ (0, I.jsxs)(IH, {
+ children: /* @__PURE__ */ (0, I.jsxs)(RH, {
trailing: !0,
summary: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(uge, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, I.jsx)(pge, { "aria-hidden": !0 }),
"评论",
t > 0 ? ` · ${t}` : ""
] }),
@@ -77240,7 +77253,7 @@ function MPe({ code: e, count: t, released: n }) {
"data-jav-review-meta": "",
children: [
/* @__PURE__ */ (0, I.jsx)("b", { children: e.username }),
- Number(e.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(w4, {
+ Number(e.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(E4, {
score: Number(e.score),
review: !0
}) : null,
@@ -77252,28 +77265,28 @@ function MPe({ code: e, count: t, released: n }) {
]
}), /* @__PURE__ */ (0, I.jsx)("p", {
"data-long-text": "",
- lang: LI(e.content),
+ lang: zI(e.content),
children: e.content
})]
}, e.id)),
- d ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ d ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...fV(c.isFetching),
+ ...mV(c.isFetching),
onClick: () => {
s.current = !0, c.refetch();
},
children: "立即重试"
}),
children: d
- }) : !c.isPending && !u.length ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ }) : !c.isPending && !u.length ? /* @__PURE__ */ (0, I.jsx)(lV, {
tone: "neutral",
children: "暂无评论"
}) : null,
!d && l.length ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...fV(c.isFetching),
+ ...mV(c.isFetching),
onClick: () => {
s.current = !0, c.refetch();
},
@@ -77281,13 +77294,13 @@ function MPe({ code: e, count: t, released: n }) {
}) : null,
c.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...fV(c.isFetchingNextPage),
+ ...mV(c.isFetchingNextPage),
onClick: () => {
c.isFetchingNextPage || c.fetchNextPage();
},
children: "更多评论"
}) : null,
- !d && l.at(-1)?.page === 8 && t > u.length ? /* @__PURE__ */ (0, I.jsxs)(sV, {
+ !d && l.at(-1)?.page === 8 && t > u.length ? /* @__PURE__ */ (0, I.jsxs)(lV, {
tone: "neutral",
children: [
"已显示 ",
@@ -77299,21 +77312,21 @@ function MPe({ code: e, count: t, released: n }) {
})
});
}
-function NPe({ item: e, actions: t, readOnly: n }) {
+function IPe({ item: e, actions: t, readOnly: n }) {
let [r, i] = (0, F.useState)(!1), a = Ft({
- queryKey: KU,
+ queryKey: JU,
enabled: r,
- queryFn: ({ signal: e }) => B(`${GU}?limit=50`, e)
+ queryFn: ({ signal: e }) => B(`${qU}?limit=50`, e)
}), o = a.data?.providers.find((e) => e.configured)?.key || "", [s, c] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsx)("section", {
"data-jav-resources": "",
- children: /* @__PURE__ */ (0, I.jsx)(IH, {
+ children: /* @__PURE__ */ (0, I.jsx)(RH, {
trailing: !0,
- summary: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(S4, { name: "link" }), "资源"] }),
+ summary: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(w4, { name: "link" }), "资源"] }),
onOpenChange: (e) => {
i(e), e && c(!0);
},
- children: s ? /* @__PURE__ */ (0, I.jsx)(v4, {
+ children: s ? /* @__PURE__ */ (0, I.jsx)(b4, {
want: {
id: 0,
code: e.code,
@@ -77330,31 +77343,31 @@ function NPe({ item: e, actions: t, readOnly: n }) {
});
}
// src/react/stage/stage-player.ts
-var T4 = null, E4 = null, D4 = null, O4 = null, k4 = null, A4 = !1, j4 = 0, M4 = null, N4 = () => !1, P4 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
-function PPe(e, t) {
- T4 = e, N4 = () => t.isOpen(), M4 = () => t.requestClose(), qle({
+var D4 = null, O4 = null, k4 = null, A4 = null, j4 = null, M4 = !1, N4 = 0, P4 = null, F4 = () => !1, I4 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
+function LPe(e, t) {
+ D4 = e, F4 = () => t.isOpen(), P4 = () => t.requestClose(), Xle({
...e.player,
stage: () => document.getElementById("stage")
- }), Jle({
- inMiniplayer: (e) => E4?.player === e,
- kind: (e) => E4?.player === e ? E4.kind : D4?.kind ?? O4?.kind ?? "item",
- expand: () => e3(),
- toMiniplayer: () => t3()
- }), F4 || (F4 = !0, addEventListener("pagehide", () => HN()));
-}
-var F4 = !1;
-function I4() {
- if (!T4) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
- return T4;
-}
-function L4(e) {
- O4 = e;
-}
-var FPe = () => O4;
-function R4(e, t) {
- let { kind: n, item: r, media: i = null } = t, a = P4(n, r.id, i?.index ?? null);
- if (E4 && E4.key === a) return LPe(e, E4);
- E4 && $4();
+ }), Zle({
+ inMiniplayer: (e) => O4?.player === e,
+ kind: (e) => O4?.player === e ? O4.kind : k4?.kind ?? A4?.kind ?? "item",
+ expand: () => n3(),
+ toMiniplayer: () => r3()
+ }), L4 || (L4 = !0, addEventListener("pagehide", () => WN()));
+}
+var L4 = !1;
+function R4() {
+ if (!D4) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
+ return D4;
+}
+function z4(e) {
+ A4 = e;
+}
+var RPe = () => A4;
+function B4(e, t) {
+ let { kind: n, item: r, media: i = null } = t, a = I4(n, r.id, i?.index ?? null);
+ if (O4 && O4.key === a) return BPe(e, O4);
+ O4 && t3();
let o = {
player: null,
kind: n,
@@ -77362,52 +77375,52 @@ function R4(e, t) {
mediaIndex: i?.index ?? null,
key: a
};
- D4 = o;
+ k4 = 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 = tP(s, {
+ let c = rP(s, {
kind: n,
item: r,
media: i,
autoplay: t.autoplay,
resume: t.resume ?? null,
onPlayer: (e) => {
- D4 === o && (o.player = e);
+ k4 === o && (o.player = e);
},
- handedOff: (e) => E4?.player === e
+ handedOff: (e) => O4?.player === e
});
return () => {
- let e = !!o.player && E4?.player === o.player;
- D4 === o && (D4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), HN());
+ let e = !!o.player && O4?.player === o.player;
+ k4 === o && (k4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), WN());
};
}
-async function IPe(e, t, n) {
+async function zPe(e, t, n) {
let r = await Tn(`/api/item?id=${e.id}`, { signal: n });
if (n.throwIfAborted(), !r || r.error) throw Error(r?.error || "作品未取得");
if (r.medium && r.medium !== "video") throw Error("这条作品没有可播放的视频");
if (r.location === "online") throw Error("请打开详情播放在线作品");
if (r.cost === "metered") throw Error("请打开详情确认计费来源");
- let i = await I4().player.loadSourceStatus();
- if (n.throwIfAborted(), i[String(r.root_id || r.location || "")] === !1) throw Error(I4().player.offlineReason(String(r.root_id || r.location || "")));
+ let i = await R4().player.loadSourceStatus();
+ if (n.throwIfAborted(), i[String(r.root_id || r.location || "")] === !1) throw Error(R4().player.offlineReason(String(r.root_id || r.location || "")));
let a = {
kind: "item",
item: r,
title: String(r.title || r.name || ""),
sub: String(r.performers?.[0] || r.creator || "未归属")
};
- L4(a);
- let o = R4(t, {
+ z4(a);
+ let o = B4(t, {
kind: "item",
item: r,
autoplay: !0
}), s = !1;
return (e = !1) => {
- s || (s = !0, e && O4 === a && B4(!0), o(), O4 === a && L4(null));
+ s || (s = !0, e && A4 === a && H4(!0), o(), A4 === a && z4(null));
};
}
-function LPe(e, t) {
+function BPe(e, t) {
let { player: n } = t;
- Z4(t), E4 = null, Q4(), n.el().classList.remove("vjs-peach-mini"), $N(e), e.append(n.el()), GM(n);
+ $4(t), O4 = null, e3(), n.el().classList.remove("vjs-peach-mini"), tP(e), e.append(n.el()), qM(n);
let r = {
player: n,
kind: t.kind,
@@ -77415,23 +77428,23 @@ function LPe(e, t) {
mediaIndex: t.mediaIndex,
key: t.key
};
- D4 = r;
- let i = eP(n, e);
- return KM(n), () => {
- D4 === r && (D4 = null), i(), E4?.player !== n && (WM() === n && GM(null), NN(n), HN());
+ k4 = r;
+ let i = nP(n, e);
+ return JM(n), () => {
+ k4 === r && (k4 = null), i(), O4?.player !== n && (KM() === n && qM(null), FN(n), WN());
};
}
-var z4 = () => {
- let e = D4?.player;
+var V4 = () => {
+ let e = k4?.player;
return e && !e.isDisposed() ? e : null;
};
-function B4(e) {
- let t = A4;
- A4 = !1, E4?.pending && $4();
- let n = D4, r = n?.player, i = O4;
- if (!n || !r || r.isDisposed() || !i || !k4) return;
- let a = I4().player.settings();
- (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && VPe({
+function H4(e) {
+ let t = M4;
+ M4 = !1, O4?.pending && t3();
+ let n = k4, r = n?.player, i = A4;
+ if (!n || !r || r.isDisposed() || !i || !j4) return;
+ let a = R4().player.settings();
+ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && WPe({
player: r,
kind: n.kind,
item: n.item,
@@ -77439,46 +77452,46 @@ function B4(e) {
key: n.key
}, i);
}
-function V4(e, t) {
- A4 = !1, E4 && (E4.kind === e && E4.item.id === t ? (E4.pending = !0, Q4()) : $4());
+function U4(e, t) {
+ M4 = !1, O4 && (O4.kind === e && O4.item.id === t ? (O4.pending = !0, e3()) : t3());
}
-function H4(e) {
- k4 = e, k4 && Y4();
+function W4(e) {
+ j4 = e, j4 && Z4();
}
-var U4 = () => !!E4 && !E4.pending && !E4.player.isDisposed();
-function RPe() {
- return U4() ? k4?.frame.querySelector("video") ?? null : null;
+var G4 = () => !!O4 && !O4.pending && !O4.player.isDisposed();
+function VPe() {
+ return G4() ? j4?.frame.querySelector("video") ?? null : null;
}
-function zPe() {
- return N4() ? document.getElementById("stage")?.querySelector("video") ?? null : z4()?.el().querySelector("video") ?? RPe();
+function HPe() {
+ return F4() ? document.getElementById("stage")?.querySelector("video") ?? null : V4()?.el().querySelector("video") ?? VPe();
}
-function W4(e) {
- k4 && (k4.title.textContent = e.title || "", k4.sub.textContent = e.sub || "", k4.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
+function K4(e) {
+ j4 && (j4.title.textContent = e.title || "", j4.sub.textContent = e.sub || "", j4.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
}
-function G4(e = E4?.item) {
- if (!k4) return;
- let t = k4.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
- k4.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
+function q4(e = O4?.item) {
+ if (!j4) return;
+ let t = j4.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
+ j4.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
}
-function K4() {
- let e = E4?.player;
- if (!e || e.isDisposed() || !k4) return;
+function J4() {
+ let e = O4?.player;
+ if (!e || e.isDisposed() || !j4) return;
let t = e.paused();
- k4.play.setAttribute("aria-label", t ? "播放" : "暂停"), k4.play.querySelector("[data-icon-swap]") || (k4.play.innerHTML = Ks("player-pause", "player-play", t ? "b" : "a")), qs(k4.play, t ? "b" : "a");
+ j4.play.setAttribute("aria-label", t ? "播放" : "暂停"), j4.play.querySelector("[data-icon-swap]") || (j4.play.innerHTML = Ks("player-pause", "player-play", t ? "b" : "a")), qs(j4.play, t ? "b" : "a");
}
-function q4() {
- let e = E4?.player;
- if (!e || e.isDisposed() || !k4) return;
- let t = qn(E4?.item.duration) || qn(e.duration());
- k4.time.textContent = `${Yn(e.currentTime())} / ${t ? Yn(t) : "0:00"}`;
-}
-var J4 = () => Math.max(1, Number(I4().player.settings().seekSeconds) || 10);
function Y4() {
- if (!k4 || !T4) return;
- let e = J4();
- for (let [t, n] of [[k4.back, `后退 ${e} 秒`], [k4.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
-}
-function X4(e) {
+ let e = O4?.player;
+ if (!e || e.isDisposed() || !j4) return;
+ let t = qn(O4?.item.duration) || qn(e.duration());
+ j4.time.textContent = `${Yn(e.currentTime())} / ${t ? Yn(t) : "0:00"}`;
+}
+var X4 = () => Math.max(1, Number(R4().player.settings().seekSeconds) || 10);
+function Z4() {
+ if (!j4 || !D4) return;
+ let e = X4();
+ for (let [t, n] of [[j4.back, `后退 ${e} 秒`], [j4.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
+}
+function Q4(e) {
let t = (t, n) => {
e.player.on(t, n), e.off.push(() => {
try {
@@ -77490,17 +77503,17 @@ function X4(e) {
"play",
"pause",
"ended"
- ], K4), t([
+ ], J4), t([
"timeupdate",
"durationchange",
"loadedmetadata"
- ], q4), t("loadedmetadata", () => G4()), K4(), q4(), G4(), Y4();
+ ], Y4), t("loadedmetadata", () => q4()), J4(), Y4(), q4(), Z4();
}
-function Z4(e) {
+function $4(e) {
e.off.forEach((e) => e()), e.off = [];
}
-function BPe() {
- let e = k4?.root;
+function UPe() {
+ let e = j4?.root;
if (!e) return;
let t = e.hidden;
if (e.hidden = !1, !t) return;
@@ -77508,8 +77521,8 @@ function BPe() {
let n = () => e.removeAttribute("data-miniplayer-enter");
e.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 500);
}
-function Q4() {
- let e = k4?.root;
+function e3() {
+ let e = j4?.root;
if (e) {
e.hidden = !0;
for (let t of [
@@ -77520,73 +77533,73 @@ function Q4() {
e.style.transform = "";
}
}
-function VPe(e, t) {
- if (!k4) return;
+function WPe(e, t) {
+ if (!j4) return;
let n = {
...e,
meta: t,
off: [],
pending: !1
};
- E4 = n, j4++, e.player.el().classList.add("vjs-peach-mini"), k4.frame.prepend(e.player.el()), W4(t), X4(n), BPe(), KM(e.player);
+ O4 = n, N4++, e.player.el().classList.add("vjs-peach-mini"), j4.frame.prepend(e.player.el()), K4(t), Q4(n), UPe(), JM(e.player);
}
-function $4() {
- let e = E4;
- e && Z4(e), E4 = null, j4++;
+function t3() {
+ let e = O4;
+ e && $4(e), O4 = null, N4++;
let t = e?.player ?? null;
- t && WM() === t && GM(null), NN(t), t && HN(), k4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), HM(), Q4();
+ t && KM() === t && qM(null), FN(t), t && WN(), j4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), WM(), e3();
}
-function e3() {
- if (!U4() || !E4) return;
- let { kind: e, item: t, mediaIndex: n } = E4;
- I4().expand(e, t.id, n);
+function n3() {
+ if (!G4() || !O4) return;
+ let { kind: e, item: t, mediaIndex: n } = O4;
+ R4().expand(e, t.id, n);
}
-function t3() {
- U4() && !N4() ? e3() : N4() && z4() && M4 && (A4 = !0, M4());
+function r3() {
+ G4() && !F4() ? n3() : F4() && V4() && P4 && (M4 = !0, P4());
}
-function HPe() {
- let e = E4?.player;
+function GPe() {
+ let e = O4?.player;
e && !e.isDisposed() && (e.paused() ? e.play()?.catch(() => {}) : e.pause());
}
-function n3(e) {
- let t = E4?.player;
+function i3(e) {
+ let t = O4?.player;
if (!t || t.isDisposed()) return;
- let n = qn(t.duration()) || qn(E4?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + J4() * e);
+ let n = qn(t.duration()) || qn(O4?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + X4() * e);
t.currentTime(n ? Math.min(n, r) : r);
}
-function r3(e) {
- return !(!U4() || !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 || I4().sourceOffline(String(e.root_id || e.location || "")));
+function a3(e) {
+ return !(!G4() || !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 || R4().sourceOffline(String(e.root_id || e.location || "")));
}
-async function UPe(e) {
- if (!U4() || !E4 || !k4) return;
- let t = ++j4, n = await Tn(`/api/item?id=${e}`).catch(() => null);
- if (t !== j4 || !U4() || !E4 || !k4 || !n || n.error) return;
- if (!r3(n)) {
- I4().openItem(e);
+async function KPe(e) {
+ if (!G4() || !O4 || !j4) return;
+ let t = ++N4, n = await Tn(`/api/item?id=${e}`).catch(() => null);
+ if (t !== N4 || !G4() || !O4 || !j4 || !n || n.error) return;
+ if (!a3(n)) {
+ R4().openItem(e);
return;
}
- let r = E4;
- Z4(r), WM() === r.player && GM(null), NN(r.player), HN(), k4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
+ let r = O4;
+ $4(r), KM() === r.player && qM(null), FN(r.player), WN(), j4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
let i = document.createElement("video");
- i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", k4.frame.prepend(i);
+ i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", j4.frame.prepend(i);
let a = {
kind: "item",
item: n,
title: String(n.title || n.name || ""),
sub: String(n.performers?.[0] || n.creator || "未归属")
};
- W4(a), tP(i, {
+ K4(a), rP(i, {
kind: "item",
item: n,
autoplay: !0,
chrome: !1,
onPlayer: (r) => {
- if (t !== j4) {
- r && WM() === r && GM(null), NN(r);
+ if (t !== N4) {
+ r && KM() === r && qM(null), FN(r);
return;
}
if (!r) {
- $4(), I4().openItem(e);
+ t3(), R4().openItem(e);
return;
}
r.el().classList.add("vjs-peach-mini");
@@ -77595,25 +77608,25 @@ async function UPe(e) {
kind: "item",
item: n,
mediaIndex: null,
- key: P4("item", n.id, null),
+ key: I4("item", n.id, null),
meta: a,
off: [],
pending: !1
};
- E4 = i, X4(i);
+ O4 = i, Q4(i);
}
- }), G4(n);
+ }), q4(n);
}
// src/react/stage/miniplayer.tsx
-var i3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
+var o3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
-}), WPe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, a3 = (e) => (t) => {
+}), qPe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, s3 = (e) => (t) => {
t.stopPropagation(), e();
-}, GPe = (0, F.memo)(function() {
+}, JPe = (0, F.memo)(function() {
let e = (0, F.useRef)(null), t = (0, F.useRef)(null), n = (0, F.useRef)(null), r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useRef)(null), l = (0, F.useRef)(null);
- return (0, F.useLayoutEffect)(() => (H4({
+ return (0, F.useLayoutEffect)(() => (W4({
root: e.current,
frame: n.current,
play: r.current,
@@ -77623,7 +77636,7 @@ var i3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
title: s.current,
sub: c.current,
info: l.current
- }), () => H4(null)), []), (0, F.useEffect)(() => JPe(e.current, t.current), []), (0, F.useEffect)(() => KPe(e.current), []), /* @__PURE__ */ (0, I.jsx)("aside", {
+ }), () => W4(null)), []), (0, F.useEffect)(() => ZPe(e.current, t.current), []), (0, F.useEffect)(() => YPe(e.current), []), /* @__PURE__ */ (0, I.jsx)("aside", {
ref: e,
"data-miniplayer": "",
id: "miniplayer",
@@ -77647,24 +77660,24 @@ var i3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
id: "miniplayerExpand",
"aria-label": "展开到详情",
"aria-keyshortcuts": "i",
- onClick: a3(e3),
- children: /* @__PURE__ */ (0, I.jsx)(i3, { name: "maximize-2" })
+ onClick: s3(n3),
+ children: /* @__PURE__ */ (0, I.jsx)(o3, { name: "maximize-2" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-miniplayer-button": "close",
id: "miniplayerClose",
"aria-label": "关闭小窗",
- onClick: a3($4),
- children: /* @__PURE__ */ (0, I.jsx)(i3, { name: "x" })
+ onClick: s3(t3),
+ children: /* @__PURE__ */ (0, I.jsx)(o3, { name: "x" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
ref: a,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerBack",
- onClick: a3(() => n3(-1)),
- children: /* @__PURE__ */ (0, I.jsx)(i3, { name: "rotate-ccw" })
+ onClick: s3(() => i3(-1)),
+ children: /* @__PURE__ */ (0, I.jsx)(o3, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
ref: r,
@@ -77673,16 +77686,16 @@ var i3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
id: "miniplayerPlay",
"aria-label": "暂停",
"aria-keyshortcuts": "k",
- onClick: a3(HPe),
- dangerouslySetInnerHTML: WPe
+ onClick: s3(GPe),
+ dangerouslySetInnerHTML: qPe
}),
/* @__PURE__ */ (0, I.jsx)("button", {
ref: o,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerAhead",
- onClick: a3(() => n3(1)),
- children: /* @__PURE__ */ (0, I.jsx)(i3, { name: "rotate-cw" })
+ onClick: s3(() => i3(1)),
+ children: /* @__PURE__ */ (0, I.jsx)(o3, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, I.jsx)("span", {
ref: i,
@@ -77699,7 +77712,7 @@ var i3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
"data-miniplayer-info": "",
id: "miniplayerInfo",
"aria-label": "展开到详情",
- onClick: () => e3(),
+ onClick: () => n3(),
children: [/* @__PURE__ */ (0, I.jsx)("span", {
ref: s,
"data-miniplayer-title": "",
@@ -77713,7 +77726,7 @@ var i3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
})
});
});
-function KPe(e) {
+function YPe(e) {
let t = () => {
let t = e.dataset.corner || "";
!e.hidden && t.startsWith("b") && (t === "br" || innerWidth <= 600) ? document.documentElement.style.setProperty("--miniplayer-space", `${Math.ceil(e.offsetHeight + 16 + 12)}px`) : document.documentElement.style.removeProperty("--miniplayer-space");
@@ -77727,7 +77740,7 @@ function KPe(e) {
n.disconnect(), r.disconnect(), window.removeEventListener("resize", t), document.documentElement.style.removeProperty("--miniplayer-space");
};
}
-function qPe(e, t, n) {
+function XPe(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
@@ -77749,7 +77762,7 @@ function qPe(e, t, n) {
};
e.addEventListener("transitionend", u), setTimeout(u, 600);
}
-function JPe(e, t) {
+function ZPe(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 = {
@@ -77775,7 +77788,7 @@ function JPe(e, t) {
} catch {}
i.moved && (e.dataset.dragged = "1", setTimeout(() => {
delete e.dataset.dragged;
- }, 0), qPe(e, i.dx, i.dy));
+ }, 0), XPe(e, i.dx, i.dy));
}, o = (t) => {
e.dataset.dragged && (t.stopPropagation(), t.preventDefault());
}, s = (e) => {
@@ -77786,57 +77799,57 @@ function JPe(e, t) {
};
}
// src/react/stage/stage.tsx
-var o3 = null, s3 = null, c3 = null, l3 = /* @__PURE__ */ new Set(), u3 = 0, d3 = null, f3 = !1, p3 = !1, m3 = () => {
+var c3 = null, l3 = null, u3 = null, d3 = /* @__PURE__ */ new Set(), f3 = 0, p3 = null, m3 = !1, h3 = !1, g3 = () => {
let e = document.getElementById("stage");
return e instanceof HTMLDialogElement ? e : null;
};
-function h3() {
- if (!o3) throw Error("舞台还没有接上宿主(configureStage)");
- return o3;
+function _3() {
+ if (!c3) throw Error("舞台还没有接上宿主(configureStage)");
+ return c3;
}
-function YPe(e) {
- return l3.add(e), () => {
- l3.delete(e);
+function QPe(e) {
+ return d3.add(e), () => {
+ d3.delete(e);
};
}
-function XPe() {
- for (let e of [...l3]) e();
+function $Pe() {
+ for (let e of [...d3]) e();
}
-function g3() {
- (0, Rt.flushSync)(XPe);
+function v3() {
+ (0, Rt.flushSync)($Pe);
}
-function ZPe({ view: e }) {
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)(QPe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, I.jsx)(GPe, {})] });
+function eFe({ view: e }) {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)(tFe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, I.jsx)(JPe, {})] });
}
-var _3 = () => /* @__PURE__ */ (0, I.jsx)("div", {
+var y3 = () => /* @__PURE__ */ (0, I.jsx)("div", {
"data-skeleton": "detail",
role: "status",
"aria-label": "正在读取作品详情",
- dangerouslySetInnerHTML: { __html: XMe() }
+ dangerouslySetInnerHTML: { __html: $Me() }
});
-function v3(e) {
+function b3(e) {
let t = e.currentTarget;
if (e.target !== t) return !1;
let n = t.getBoundingClientRect();
return e.clientX < n.left || e.clientX > n.right || e.clientY < n.top || e.clientY > n.bottom;
}
-function y3() {
- let e = m3(), t = e && $Me(e);
+function x3() {
+ let e = g3(), t = e && nNe(e);
t ? (t.focus({ preventScroll: !0 }), t.dispatchEvent(new KeyboardEvent("keydown", {
key: "Escape",
bubbles: !0,
cancelable: !0
- }))) : b3();
+ }))) : S3();
}
-function QPe({ view: e }) {
+function tFe({ view: e }) {
let t = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => {
let e = t.current, n = (t) => {
- t.target === e && (t.preventDefault(), y3());
+ t.target === e && (t.preventDefault(), x3());
};
return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);
}, []);
- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, I.jsx)(tPe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, I.jsx)(DPe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, I.jsx)(INe, { ...r.props }, r.props.id);
+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, I.jsx)(iPe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, I.jsx)(APe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, I.jsx)(zNe, { ...r.props }, r.props.id);
return /* @__PURE__ */ (0, I.jsxs)("dialog", {
ref: t,
id: "stage",
@@ -77844,27 +77857,27 @@ function QPe({ view: e }) {
"data-stage-kind": r.kind,
"aria-label": "作品详情",
onKeyDown: (e) => {
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), y3());
+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), x3());
},
onPointerDown: (e) => {
- p3 = v3(e);
+ h3 = b3(e);
},
onClick: (e) => {
- p3 && v3(e) && b3();
+ h3 && b3(e) && S3();
},
children: [
- n === "skeleton" ? /* @__PURE__ */ (0, I.jsx)(_3, {}, "skeleton") : null,
+ n === "skeleton" ? /* @__PURE__ */ (0, I.jsx)(y3, {}, "skeleton") : null,
n === "reveal" ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-stage-fade": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(_3, {})
+ children: /* @__PURE__ */ (0, I.jsx)(y3, {})
}, "fade") : null,
n === "skeleton" ? null : /* @__PURE__ */ (0, I.jsx)("div", {
"data-stage-scroll": "",
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(bD, {
- getContainer: () => r2(t.current),
+ children: /* @__PURE__ */ (0, I.jsx)(wD, {
+ getContainer: () => a2(t.current),
children: i
})
})
@@ -77872,14 +77885,14 @@ function QPe({ view: e }) {
]
});
}
-function b3() {
- s3 && !f3 && (f3 = !0, s3.request.actions.close());
+function S3() {
+ l3 && !m3 && (m3 = !0, l3.request.actions.close());
}
-function x3(e, t) {
- let n = m3();
+function C3(e, t) {
+ let n = g3();
n?.toggleAttribute("data-ambient", e), n?.toggleAttribute("data-theater", t);
}
-function S3(e) {
+function w3(e) {
if (e.kind === "jav") return {
kind: "jav",
props: {
@@ -77887,30 +77900,30 @@ function S3(e) {
readOnly: e.readOnly,
actions: {
...e.actions,
- close: b3
+ close: S3
}
}
};
let t = e.resume ?? null, n = (n) => {
let r = t && (e.id == null || e.id === n) ? t : null;
return t = null, r;
- }, r = () => h3().player.settings(), i = () => s3?.request === e;
+ }, r = () => _3().player.settings(), i = () => l3?.request === e;
if (e.kind === "item") {
let { kind: t, resume: a, actions: o, ...s } = e, c = {
...o,
- close: b3,
+ close: S3,
present: (e, t) => {
let n = e.performers;
- L4({
+ z4({
kind: "item",
item: e,
title: String(e.title || e.name || ""),
sub: String(n?.[0] || e.creator || "未归属")
- }), x3(r().ambientMode, r().theaterMode), queueMicrotask(() => {
+ }), C3(r().ambientMode, r().theaterMode), queueMicrotask(() => {
i() && o.present(e, t);
});
},
- mountPlayer: (e, t, r, i) => R4(e, {
+ mountPlayer: (e, t, r, i) => B4(e, {
kind: "item",
item: t,
autoplay: i?.autoplay,
@@ -77928,18 +77941,18 @@ function S3(e) {
}
let { kind: a, resume: o, actions: s, ...c } = e, l = {
...s,
- close: b3,
+ close: S3,
present: (e, t) => {
- L4({
+ z4({
kind: "follow",
item: e,
title: e.title || "",
sub: e.author || e.source_label || ""
- }), x3(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {
+ }), C3(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {
i() && s.present(e, t);
});
},
- mountPlayer: (e, t, r, i) => R4(e, {
+ mountPlayer: (e, t, r, i) => B4(e, {
kind: "follow",
item: t,
media: r,
@@ -77956,106 +77969,106 @@ function S3(e) {
}
};
}
-function $Pe(e, t) {
+function nFe(e, t) {
let n = e.querySelector(":scope > [data-stage-fade]");
e.setAttribute("data-stage-reveal", ""), e.getBoundingClientRect(), e.setAttribute("data-stage-revealing", "");
let r = 0, i = () => {
- clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), s3?.generation === t && s3.phase === "reveal" && (s3 = {
- ...s3,
+ clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), l3?.generation === t && l3.phase === "reveal" && (l3 = {
+ ...l3,
phase: "content"
- }, g3());
+ }, v3());
}, a = (e) => {
e.target === n && i();
};
n?.addEventListener("transitionend", a), r = window.setTimeout(i, 1e3);
}
-function C3(e) {
- let t = m3();
- return !s3 || s3.content.kind !== e || f3 || !t?.open || t.hasAttribute("data-closing") ? null : t;
+function T3(e) {
+ let t = g3();
+ return !l3 || l3.content.kind !== e || m3 || !t?.open || t.hasAttribute("data-closing") ? null : t;
}
-async function eFe(e) {
- !c3 && document.activeElement instanceof HTMLElement && document.activeElement !== document.body && (c3 = {
+async function rFe(e) {
+ !u3 && document.activeElement instanceof HTMLElement && document.activeElement !== document.body && (u3 = {
left: window.scrollX,
top: window.scrollY,
anchor: document.activeElement
});
- let t = C3(e.kind);
+ let t = T3(e.kind);
if (t) {
- await nFe(e, t);
+ await aFe(e, t);
return;
}
- s3 && w3({ miniplayer: !1 });
- let n = ++u3, r = new AbortController();
- d3 = r, f3 = !1, p3 = !1, e.kind === "jav" ? $4() : V4(e.kind, e.id ?? NaN);
- let i = S3(e);
- s3 = {
+ l3 && E3({ miniplayer: !1 });
+ let n = ++f3, r = new AbortController();
+ p3 = r, m3 = !1, h3 = !1, e.kind === "jav" ? t3() : U4(e.kind, e.id ?? NaN);
+ let i = w3(e);
+ l3 = {
generation: n,
request: e,
content: i,
phase: "skeleton"
};
- let a = i.kind === "item" ? OP(i.props, r.signal) : i.kind === "jav" ? $2(i.props, r.signal) : l2(i.props, r.signal);
- if (n !== u3 || s3?.request !== e) {
+ let a = i.kind === "item" ? AP(i.props, r.signal) : i.kind === "jav" ? t4(i.props, r.signal) : d2(i.props, r.signal);
+ if (n !== f3 || l3?.request !== e) {
await a.catch(() => {});
return;
}
- let o = tFe(i);
- s3 = {
- ...s3,
+ let o = iFe(i);
+ l3 = {
+ ...l3,
phase: o ? "content" : "skeleton"
- }, g3();
- let s = m3();
+ }, v3();
+ let s = g3();
if (!s) {
await a.catch(() => {});
return;
}
- o || pc(s), document.body.setAttribute("data-detail-open", ""), s.open || s.showModal(), a2(s);
+ o || pc(s), document.body.setAttribute("data-detail-open", ""), s.open || s.showModal(), s2(s);
try {
await a;
} catch {
if (r.signal.aborted) return;
}
- if (n !== u3 || !s3 || o) return;
+ if (n !== f3 || !l3 || o) return;
let c = !!s.querySelector(".skeleton-awaiting");
- s3 = {
- ...s3,
+ l3 = {
+ ...l3,
phase: c ? "content" : "reveal"
- }, g3(), c || $Pe(s, n), tc(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, v3(), c || nFe(s, n), tc(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let l = document.activeElement;
l !== s && s.contains(l) || s.querySelector("#closeStage")?.focus();
}
-function tFe(e) {
- if (e.kind === "jav") return !!H.getQueryData(Z2(e.props.code));
- if (e.kind === "follow") return !!H.getQueryData(o2(e.props.id));
- let { queue: t, id: n } = e.props, r = t ? H.getQueryData(mP(t)) : null;
+function iFe(e) {
+ if (e.kind === "jav") return !!H.getQueryData($2(e.props.code));
+ if (e.kind === "follow") return !!H.getQueryData(c2(e.props.id));
+ let { queue: t, id: n } = e.props, r = t ? H.getQueryData(gP(t)) : null;
if (t && !r) return !1;
- let i = r ? EP(r, n) : n;
- return i != null && !!H.getQueryData(pP(i));
+ let i = r ? OP(r, n) : n;
+ return i != null && !!H.getQueryData(hP(i));
}
-async function nFe(e, t) {
- let n = ++u3;
- d3?.abort();
+async function aFe(e, t) {
+ let n = ++f3;
+ p3?.abort();
let r = new AbortController();
- d3 = r, p3 = !1;
- let i = S3(e);
+ p3 = r, h3 = !1;
+ let i = w3(e);
try {
- i.kind === "item" ? await OP(i.props, r.signal) : i.kind === "jav" ? await $2(i.props, r.signal) : await l2(i.props, r.signal);
+ i.kind === "item" ? await AP(i.props, r.signal) : i.kind === "jav" ? await t4(i.props, r.signal) : await d2(i.props, r.signal);
} catch {
if (r.signal.aborted) return;
}
- if (n !== u3 || !s3 || C3(e.kind) !== t) return;
- e.kind === "jav" ? $4() : V4(e.kind, e.id ?? NaN), Nl(t), HM(), s3 = {
- ...s3,
+ if (n !== f3 || !l3 || T3(e.kind) !== t) return;
+ e.kind === "jav" ? t3() : U4(e.kind, e.id ?? NaN), Nl(t), WM(), l3 = {
+ ...l3,
request: e,
content: i,
phase: "content"
- }, g3(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), tc(t, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, v3(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), tc(t, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let a = document.activeElement;
a !== t && t.contains(a) || (t.querySelector("[data-mix-item][aria-current=\"true\"]") || t.querySelector("#closeStage"))?.focus({ preventScroll: !0 });
}
-function rFe() {
- a2(null);
- let e = m3();
+function oFe() {
+ s2(null);
+ let e = g3();
return !e?.open || e.hasAttribute("data-closing") || matchMedia("(prefers-reduced-motion: reduce)").matches ? Promise.resolve() : (e.setAttribute("data-closing", ""), new Promise((t) => {
let n = 0, r = () => {
clearTimeout(n), e.removeEventListener("animationend", i), t();
@@ -78065,14 +78078,14 @@ function rFe() {
e.addEventListener("animationend", i), n = window.setTimeout(r, 380);
}));
}
-function w3({ miniplayer: e = !0 } = {}) {
- if (u3++, d3?.abort(), d3 = null, B4(e), !s3) return;
- let t = m3();
- t && Nl(t), HM(), a2(null), t?.open && t.close(), s3 = null, f3 = !1, p3 = !1, g3(), L4(null), document.body.removeAttribute("data-detail-open");
- let n = c3;
- c3 = null;
+function E3({ miniplayer: e = !0 } = {}) {
+ if (f3++, p3?.abort(), p3 = null, H4(e), !l3) return;
+ let t = g3();
+ t && Nl(t), WM(), s2(null), t?.open && t.close(), l3 = null, m3 = !1, h3 = !1, v3(), z4(null), document.body.removeAttribute("data-detail-open");
+ let n = u3;
+ u3 = null;
let r = () => {
- !s3 && n?.anchor.isConnected && n.anchor.getClientRects().length && window.scrollTo({
+ !l3 && n?.anchor.isConnected && n.anchor.getClientRects().length && window.scrollTo({
left: n.left,
top: n.top,
behavior: "instant"
@@ -78080,80 +78093,80 @@ function w3({ miniplayer: e = !0 } = {}) {
};
r(), requestAnimationFrame(r);
}
-function iFe(e) {
- s3 && (s3 = {
- ...s3,
- content: s3.content.kind === "item" ? {
+function sFe(e) {
+ l3 && (l3 = {
+ ...l3,
+ content: l3.content.kind === "item" ? {
kind: "item",
props: {
- ...s3.content.props,
+ ...l3.content.props,
...e
}
- } : s3.content.kind === "jav" ? s3.content : {
+ } : l3.content.kind === "jav" ? l3.content : {
kind: "follow",
props: {
- ...s3.content.props,
+ ...l3.content.props,
...e.relatedLimit === void 0 ? {} : { relatedLimit: e.relatedLimit }
}
}
- }, g3());
+ }, v3());
}
-function aFe() {
- let e = FPe(), t = e?.kind === "item" ? e.item : null, n = t ? ko(t, h3().player.settings().javImage) : "";
+function cFe() {
+ let e = RPe(), t = e?.kind === "item" ? e.item : null, n = t ? ko(t, _3().player.settings().javImage) : "";
if (!n) return;
- let r = z4();
+ let r = V4();
r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);
}
-var oFe = {
- open: eFe,
- update: iFe,
- exit: rFe,
- dispose: w3,
- requestClose: b3,
- requestEscape: y3,
- repaintPoster: aFe,
- isOpen: () => !!s3,
- showing: () => s3 && C3(s3.content.kind) ? s3.content.kind : null,
- activeVideo: () => zPe(),
- mountWallPlayer: IPe,
+var lFe = {
+ open: rFe,
+ update: sFe,
+ exit: oFe,
+ dispose: E3,
+ requestClose: S3,
+ requestEscape: x3,
+ repaintPoster: cFe,
+ isOpen: () => !!l3,
+ showing: () => l3 && T3(l3.content.kind) ? l3.content.kind : null,
+ activeVideo: () => HPe(),
+ mountWallPlayer: zPe,
toggleTheater: () => {
- s3 && bN(!h3().player.settings().theaterMode);
+ l3 && SN(!_3().player.settings().theaterMode);
},
- toggleMiniplayer: () => t3(),
- closeMiniplayer: () => $4(),
- miniplayerActive: () => U4(),
- miniplayerTakesCard: (e) => r3(e),
+ toggleMiniplayer: () => r3(),
+ closeMiniplayer: () => t3(),
+ miniplayerActive: () => G4(),
+ miniplayerTakesCard: (e) => a3(e),
miniplayerPlay: (e) => {
- UPe(e);
+ KPe(e);
}
};
-function sFe(e) {
- return o3 = e, PPe(e, {
- isOpen: () => !!s3,
- requestClose: b3
- }), oFe;
+function uFe(e) {
+ return c3 = e, LPe(e, {
+ isOpen: () => !!l3,
+ requestClose: S3
+ }), lFe;
}
-function cFe() {
- let e = (0, F.useSyncExternalStore)(YPe, () => s3);
- return o3 ? /* @__PURE__ */ (0, I.jsx)(ZPe, { view: e }) : null;
+function dFe() {
+ let e = (0, F.useSyncExternalStore)(QPe, () => l3);
+ return c3 ? /* @__PURE__ */ (0, I.jsx)(eFe, { view: e }) : null;
}
// src/react/stats/stats.ts
-var lFe = "/api/stats", T3 = ["stats"], E3 = (e) => B(lFe, e);
-async function uFe(e) {
+var fFe = "/api/stats", D3 = ["stats"], O3 = (e) => B(fFe, e);
+async function pFe(e) {
await H.fetchQuery({
- queryKey: T3,
- queryFn: () => E3(e)
+ queryKey: D3,
+ queryFn: () => O3(e)
});
}
-var D3 = (e) => e != null && Number.isFinite(e), dFe = (e) => D3(e) ? e.toLocaleString() : "未取得", fFe = (e, t) => D3(e) && D3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, pFe = (e, t) => {
- let n = fFe(e, t);
- return !n && D3(e) && e > 0 && D3(t) && t > 0 ? "<1%" : `${n}%`;
-}, O3 = (e) => {
- if (!D3(e)) return "未取得";
+var k3 = (e) => e != null && Number.isFinite(e), mFe = (e) => k3(e) ? e.toLocaleString() : "未取得", hFe = (e, t) => k3(e) && k3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, gFe = (e, t) => {
+ let n = hFe(e, t);
+ return !n && k3(e) && e > 0 && k3(t) && t > 0 ? "<1%" : `${n}%`;
+}, A3 = (e) => {
+ if (!k3(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)} 分钟`;
-}, k3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, A3 = (e) => (e.max_reached || 0) * 100, mFe = (e) => e.kind === "online" ? "在线直接观看" : k3(e) < A3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", hFe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
-function gFe(e, t = 6) {
+}, j3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, M3 = (e) => (e.max_reached || 0) * 100, _Fe = (e) => e.kind === "online" ? "在线直接观看" : j3(e) < M3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", vFe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
+function yFe(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);
@@ -78163,7 +78176,7 @@ function gFe(e, t = 6) {
bytes: i.reduce((e, t) => e + (t.bytes ?? 0), 0)
}];
}
-var _Fe = (e) => Math.max(1, ...e) * 1.1, vFe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, yFe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), bFe = {
+var bFe = (e) => Math.max(1, ...e) * 1.1, xFe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, SFe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), CFe = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -78171,18 +78184,18 @@ var _Fe = (e) => Math.max(1, ...e) * 1.1, vFe = (e, t) => e > 0 ? Math.max(e, t
audio: "音频",
account: "账号",
other: "其它文件"
-}, xFe = (e) => e.map((e) => ({
- name: bFe[e.k] ?? e.k,
+}, wFe = (e) => e.map((e) => ({
+ name: CFe[e.k] ?? e.k,
value: e.n
-})).sort((e, t) => t.value - e.value), SFe = {
+})).sort((e, t) => t.value - e.value), TFe = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
长: ">40 分钟"
-}, j3 = (e, t = {}) => e.map((e) => ({
+}, N3 = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), CFe = (e) => j3(e, SFe), wFe = [
+})), EFe = (e) => N3(e, TFe), DFe = [
[
1,
1,
@@ -78218,12 +78231,12 @@ var _Fe = (e) => Math.max(1, ...e) * 1.1, vFe = (e, t) => e > 0 ? Math.max(e, t
Infinity,
"≥10"
]
-], TFe = (e) => wFe.map(([t, n, r]) => ({
+], OFe = (e) => DFe.map(([t, n, r]) => ({
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
}));
// node_modules/d3-array/src/max.js
-function M3(e, t) {
+function P3(e, t) {
let n;
if (t === void 0) for (let t of e) t != null && (n < t || n === void 0 && t >= t) && (n = t);
else {
@@ -78233,7 +78246,7 @@ function M3(e, t) {
return n;
}
// node_modules/d3-array/src/min.js
-function N3(e, t) {
+function F3(e, t) {
let n;
if (t === void 0) for (let t of e) t != null && (n > t || n === void 0 && t >= t) && (n = t);
else {
@@ -78243,7 +78256,7 @@ function N3(e, t) {
return n;
}
// node_modules/d3-array/src/sum.js
-function P3(e, t) {
+function I3(e, t) {
let n = 0;
if (t === void 0) for (let t of e) (t = +t) && (n += t);
else {
@@ -78253,64 +78266,64 @@ function P3(e, t) {
return n;
}
// node_modules/d3-sankey/src/align.js
-function EFe(e, t) {
+function kFe(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
// node_modules/d3-sankey/src/constant.js
-function F3(e) {
+function L3(e) {
return function() {
return e;
};
}
// node_modules/d3-sankey/src/sankey.js
-function I3(e, t) {
- return R3(e.source, t.source) || e.index - t.index;
+function R3(e, t) {
+ return B3(e.source, t.source) || e.index - t.index;
}
-function L3(e, t) {
- return R3(e.target, t.target) || e.index - t.index;
+function z3(e, t) {
+ return B3(e.target, t.target) || e.index - t.index;
}
-function R3(e, t) {
+function B3(e, t) {
return e.y0 - t.y0;
}
-function z3(e) {
+function V3(e) {
return e.value;
}
-function DFe(e) {
+function AFe(e) {
return e.index;
}
-function OFe(e) {
+function jFe(e) {
return e.nodes;
}
-function kFe(e) {
+function MFe(e) {
return e.links;
}
-function B3(e, t) {
+function H3(e, t) {
let n = e.get(t);
if (!n) throw Error("missing: " + t);
return n;
}
-function V3({ nodes: e }) {
+function U3({ nodes: e }) {
for (let t of e) {
let e = t.y0, n = e;
for (let n of t.sourceLinks) n.y0 = e + n.width / 2, e += n.width;
for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;
}
}
-function AFe() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = DFe, c = EFe, l, u, d = OFe, f = kFe, p = 6;
+function NFe() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = AFe, c = kFe, l, u, d = jFe, f = MFe, p = 6;
function m() {
let e = {
nodes: d.apply(null, arguments),
links: f.apply(null, arguments)
};
- return h(e), g(e), _(e), v(e), x(e), V3(e), e;
+ return h(e), g(e), _(e), v(e), x(e), U3(e), e;
}
m.update = function(e) {
- return V3(e), e;
+ return U3(e), e;
}, m.nodeId = function(e) {
- return arguments.length ? (s = typeof e == "function" ? e : F3(e), m) : s;
+ return arguments.length ? (s = typeof e == "function" ? e : L3(e), m) : s;
}, m.nodeAlign = function(e) {
- return arguments.length ? (c = typeof e == "function" ? e : F3(e), m) : c;
+ return arguments.length ? (c = typeof e == "function" ? e : L3(e), m) : c;
}, m.nodeSort = function(e) {
return arguments.length ? (l = e, m) : l;
}, m.nodeWidth = function(e) {
@@ -78318,9 +78331,9 @@ function AFe() {
}, m.nodePadding = function(e) {
return arguments.length ? (a = o = +e, m) : a;
}, m.nodes = function(e) {
- return arguments.length ? (d = typeof e == "function" ? e : F3(e), m) : d;
+ return arguments.length ? (d = typeof e == "function" ? e : L3(e), m) : d;
}, m.links = function(e) {
- return arguments.length ? (f = typeof e == "function" ? e : F3(e), m) : f;
+ return arguments.length ? (f = typeof e == "function" ? e : L3(e), m) : f;
}, m.linkSort = function(e) {
return arguments.length ? (u = e, m) : u;
}, m.size = function(i) {
@@ -78336,12 +78349,12 @@ function AFe() {
for (let [e, r] of t.entries()) {
r.index = e;
let { source: t, target: i } = r;
- typeof t != "object" && (t = r.source = B3(n, t)), typeof i != "object" && (i = r.target = B3(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
+ typeof t != "object" && (t = r.source = H3(n, t)), typeof i != "object" && (i = r.target = H3(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
}
if (u != null) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(u), n.sort(u);
}
function g({ nodes: e }) {
- for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(P3(t.sourceLinks, z3), P3(t.targetLinks, z3)) : t.fixedValue;
+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(I3(t.sourceLinks, V3), I3(t.targetLinks, V3)) : t.fixedValue;
}
function _({ nodes: e }) {
let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
@@ -78366,7 +78379,7 @@ function AFe() {
}
}
function y({ nodes: t }) {
- let r = M3(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
+ let r = P3(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
for (let n of t) {
let t = Math.max(0, Math.min(r - 1, Math.floor(c.call(null, n, r))));
n.layer = t, n.x0 = e + t * a, n.x1 = n.x0 + i, o[t] ? o[t].push(n) : o[t] = [n];
@@ -78375,7 +78388,7 @@ function AFe() {
return o;
}
function b(e) {
- let n = N3(e, (e) => (r - t - (e.length - 1) * o) / P3(e, z3));
+ let n = F3(e, (e) => (r - t - (e.length - 1) * o) / I3(e, V3));
for (let i of e) {
let e = t;
for (let t of i) {
@@ -78392,7 +78405,7 @@ function AFe() {
}
function x(e) {
let n = y(e);
- o = Math.min(a, (r - t) / (M3(n, (e) => e.length) - 1)), b(n);
+ o = Math.min(a, (r - t) / (P3(n, (e) => e.length) - 1)), b(n);
for (let e = 0; e < p; ++e) {
let t = .99 ** e, r = Math.max(1 - t, (e + 1) / p);
C(n, t, r), S(n, t, r);
@@ -78411,7 +78424,7 @@ function AFe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(R3), w(i, n);
+ l === void 0 && i.sort(B3), w(i, n);
}
}
function C(e, t, n) {
@@ -78427,7 +78440,7 @@ function AFe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(R3), w(i, n);
+ l === void 0 && i.sort(B3), w(i, n);
}
}
function w(e, n) {
@@ -78448,12 +78461,12 @@ function AFe() {
}
function D({ sourceLinks: e, targetLinks: t }) {
if (u === void 0) {
- for (let { source: { sourceLinks: e } } of t) e.sort(L3);
- for (let { target: { targetLinks: t } } of e) t.sort(I3);
+ for (let { source: { sourceLinks: e } } of t) e.sort(z3);
+ for (let { target: { targetLinks: t } } of e) t.sort(R3);
}
}
function O(e) {
- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(L3), n.sort(I3);
+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(z3), n.sort(R3);
}
function k(e, t) {
let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;
@@ -78482,15 +78495,15 @@ function AFe() {
return m;
}
// node_modules/d3-path/src/path.js
-var H3 = Math.PI, U3 = 2 * H3, W3 = 1e-6, jFe = U3 - W3;
-function G3() {
+var W3 = Math.PI, G3 = 2 * W3, K3 = 1e-6, PFe = G3 - K3;
+function q3() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
-function K3() {
- return new G3();
+function J3() {
+ return new q3();
}
-G3.prototype = K3.prototype = {
- constructor: G3,
+q3.prototype = J3.prototype = {
+ constructor: q3,
moveTo: function(e, t) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
},
@@ -78511,11 +78524,11 @@ G3.prototype = K3.prototype = {
var a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;
if (i < 0) throw Error("negative radius: " + i);
if (this._x1 === null) this._ += "M" + (this._x1 = e) + "," + (this._y1 = t);
- else if (d > W3) {
- if (!(Math.abs(u * s - c * l) > W3) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
+ else if (d > K3) {
+ if (!(Math.abs(u * s - c * l) > K3) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
else {
- var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((H3 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > W3 && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
+ var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((W3 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > K3 && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
}
}
},
@@ -78523,7 +78536,7 @@ G3.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) > W3 || Math.abs(this._y1 - l) > W3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % U3 + U3), d > jFe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > W3 && (this._ += "A" + n + "," + n + ",0," + +(d >= H3) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
+ this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > K3 || Math.abs(this._y1 - l) > K3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % G3 + G3), d > PFe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > K3 && (this._ += "A" + n + "," + n + ",0," + +(d >= W3) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
},
rect: function(e, t, n, r) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t) + "h" + +n + "v" + +r + "h" + -n + "Z";
@@ -78533,93 +78546,93 @@ G3.prototype = K3.prototype = {
}
};
// node_modules/d3-shape/src/constant.js
-function q3(e) {
+function Y3(e) {
return function() {
return e;
};
}
// node_modules/d3-shape/src/point.js
-function MFe(e) {
+function FFe(e) {
return e[0];
}
-function NFe(e) {
+function IFe(e) {
return e[1];
}
// node_modules/d3-shape/src/array.js
-var PFe = Array.prototype.slice;
+var LFe = Array.prototype.slice;
// node_modules/d3-shape/src/link/index.js
-function FFe(e) {
+function RFe(e) {
return e.source;
}
-function IFe(e) {
+function zFe(e) {
return e.target;
}
-function LFe(e) {
- var t = FFe, n = IFe, r = MFe, i = NFe, a = null;
+function BFe(e) {
+ var t = RFe, n = zFe, r = FFe, i = IFe, a = null;
function o() {
- var o, s = PFe.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;
+ var o, s = LFe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ if (a ||= o = J3(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
}
return o.source = function(e) {
return arguments.length ? (t = e, o) : t;
}, o.target = function(e) {
return arguments.length ? (n = e, o) : n;
}, o.x = function(e) {
- return arguments.length ? (r = typeof e == "function" ? e : q3(+e), o) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : Y3(+e), o) : r;
}, o.y = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : q3(+e), o) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : Y3(+e), o) : i;
}, o.context = function(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function RFe(e, t, n, r, i) {
+function VFe(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function zFe() {
- return LFe(RFe);
+function HFe() {
+ return BFe(VFe);
}
// node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function BFe(e) {
+function UFe(e) {
return [e.source.x1, e.y0];
}
-function VFe(e) {
+function WFe(e) {
return [e.target.x0, e.y1];
}
-function HFe() {
- return zFe().source(BFe).target(VFe);
+function GFe() {
+ return HFe().source(UFe).target(WFe);
}
// src/react/taste/taste.ts
-var UFe = "/api/taste", J3 = "/api/taste/refresh", WFe = "/api/taste/import", Y3 = "/api/taste/source", X3 = (e) => ["taste", e], GFe = ["taste", "refresh"], KFe = [
+var KFe = "/api/taste", X3 = "/api/taste/refresh", qFe = "/api/taste/import", Z3 = "/api/taste/source", Q3 = (e) => ["taste", e], JFe = ["taste", "refresh"], YFe = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], qFe = 2e3, JFe = (e) => e?.stale && !e.error ? qFe : !1, YFe = (e) => e ? new Date(e).toLocaleString("zh-CN", {
+], XFe = 2e3, ZFe = (e) => e?.stale && !e.error ? XFe : !1, QFe = (e) => e ? new Date(e).toLocaleString("zh-CN", {
month: "numeric",
day: "numeric",
hour: "2-digit",
minute: "2-digit"
-}) : "—", XFe = (e, t) => V(Y3, {
+}) : "—", $Fe = (e, t) => V(Z3, {
...e,
window: t
-}), Z3 = (e, t, n = !1) => B(`${UFe}?window=${e}${n ? "&retry=1" : ""}`, t), ZFe = (e) => B(J3, e);
-async function QFe(e, t) {
+}), $3 = (e, t, n = !1) => B(`${KFe}?window=${e}${n ? "&retry=1" : ""}`, t), eIe = (e) => B(X3, e);
+async function tIe(e, t) {
await H.fetchQuery({
- queryKey: X3(e),
- queryFn: () => Z3(e, t)
+ queryKey: Q3(e),
+ queryFn: () => $3(e, t)
});
}
-var $Fe = (e) => V(J3, {
+var nIe = (e) => V(X3, {
window: e,
background: !0
-}), eIe = (e, t) => V(Y3, {
+}), rIe = (e, t) => V(Z3, {
operation: "remove",
source_key: e,
window: t
});
-async function tIe(e) {
- let t = await fetch(WFe, {
+async function iIe(e) {
+ let t = await fetch(qFe, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -78637,52 +78650,52 @@ async function tIe(e) {
}
return n;
}
-var nIe = 1e4, Q3 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
-function rIe(e) {
+var aIe = 1e4, e6 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
+function oIe(e) {
let t = `${Number(e.history_sources || 0).toLocaleString()} 个数据源`;
if (!e.range_start && !e.range_end) return t;
let n = e.range_start?.slice(0, 4) === e.range_end?.slice(0, 4), r = (e) => e && n ? new Date(e).toLocaleDateString("zh-CN", {
month: "numeric",
day: "numeric"
- }) : Q3(e);
+ }) : e6(e);
return `${t} · ${r(e.range_start)}–${r(e.range_end)}`;
}
-var iIe = O3, aIe = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), oIe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function sIe(e) {
+var sIe = A3, cIe = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), lIe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function uIe(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 cIe(e) {
- let t = e.map(oIe), n = Math.max(1, ...t);
+function dIe(e) {
+ let t = e.map(lIe), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
-var $3 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
+var t6 = (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 lIe(e) {
- let t = $3(e, 6);
+function fIe(e) {
+ let t = t6(e, 6);
return t.length < 3 ? [] : t;
}
-var e6 = {
+var n6 = {
width: 720,
height: 435
-}, uIe = {
+}, pIe = {
source: 145,
target: 545
-}, t6 = 30, dIe = 240;
-function n6(e, t, n) {
+}, r6 = 30, mIe = 240;
+function i6(e, t, n) {
let r = /* @__PURE__ */ new Map();
for (let n of e) r.set(n[t], (r.get(n[t]) ?? 0) + n.value);
if (r.size <= 12) return (e) => e;
let i = [...r].sort((e, t) => t[1] - e[1]).map(([e]) => e), a = new Set(i.slice(0, 11)), o = n(i.length - a.size);
return (e) => a.has(e) ? e : o;
}
-function fIe(e = []) {
+function hIe(e = []) {
let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
if (!t.length) return null;
- let n = n6(t, "source", (e) => `其余 ${e.toLocaleString()} 个网站`), r = n6(t, "target", (e) => `其余 ${e.toLocaleString()} 位创作者`), i = /* @__PURE__ */ new Map();
+ let n = i6(t, "source", (e) => `其余 ${e.toLocaleString()} 个网站`), r = i6(t, "target", (e) => `其余 ${e.toLocaleString()} 位创作者`), i = /* @__PURE__ */ new Map();
for (let e of t) {
let t = n(e.source), a = r(e.target), o = JSON.stringify([t, a]), s = i.get(o);
s ? s.value += e.value : i.set(o, {
@@ -78691,7 +78704,7 @@ function fIe(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) * t6 + dIe), u = AFe().nodeId((e) => e.id).nodeWidth(10).nodePadding(t6).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) * r6 + mIe), u = NFe().nodeId((e) => e.id).nodeWidth(10).nodePadding(r6).extent([[155, 16], [535, l]])({
nodes: [...o.map((e) => ({
id: `source:${e}`,
name: e,
@@ -78706,7 +78719,7 @@ function fIe(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), d = a.reduce((e, t) => e + t.value, 0), f = HFe();
+ }), d = a.reduce((e, t) => e + t.value, 0), f = GFe();
return {
nodes: u.nodes.map((e) => ({
id: e.id,
@@ -78734,17 +78747,17 @@ function fIe(e = []) {
};
}),
total: d,
- height: l + e6.height - 404
+ height: l + n6.height - 404
};
}
-var pIe = (e) => tr(e, 17), r6 = {
+var gIe = (e) => tr(e, 17), a6 = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
series: "系列",
tags: "标签"
-}, mIe = [[
+}, _Ie = [[
"big",
"大图 · 竖幅头像",
"maximize"
@@ -78752,7 +78765,7 @@ var pIe = (e) => tr(e, 17), r6 = {
"compact",
"紧凑 · 圆形头像",
"layout-grid"
-]], hIe = [[
+]], vIe = [[
"big",
"大图 · 完整标识",
"maximize"
@@ -78760,7 +78773,7 @@ var pIe = (e) => tr(e, 17), r6 = {
"compact",
"紧凑 · 圆形标识",
"layout-grid"
-]], gIe = [[
+]], yIe = [[
"big",
"大图 · 系列图片",
"maximize"
@@ -78768,7 +78781,7 @@ var pIe = (e) => tr(e, 17), r6 = {
"compact",
"紧凑 · 系列图片",
"layout-grid"
-]], _Ie = [
+]], bIe = [
[
"studios",
"厂牌",
@@ -78784,7 +78797,7 @@ var pIe = (e) => tr(e, 17), r6 = {
"系列",
"file-stack"
]
-], vIe = [[
+], xIe = [[
"local",
"本地",
"hard-drive"
@@ -78792,7 +78805,7 @@ var pIe = (e) => tr(e, 17), r6 = {
"online",
"在线",
"rss"
-]], yIe = [
+]], SIe = [
[
"performers",
"艺人",
@@ -78808,7 +78821,7 @@ var pIe = (e) => tr(e, 17), r6 = {
"在线",
"rss"
]
-], bIe = [[
+], CIe = [[
"cloud",
"标签云",
"tags"
@@ -78816,8 +78829,8 @@ var pIe = (e) => tr(e, 17), r6 = {
"alphabet",
"字母表",
"text-aa"
-]], i6 = (e) => e === "compact" ? "compact" : "big";
-function a6(e, t) {
+]], o6 = (e) => e === "compact" ? "compact" : "big";
+function s6(e, t) {
let n = new URLSearchParams(t);
return {
kind: e,
@@ -78827,7 +78840,7 @@ function a6(e, t) {
category: n.get("category") || "all"
};
}
-var o6 = (e, t, n) => Us(e.map(([e, t, n]) => ({
+var c6 = (e, t, n) => Us(e.map(([e, t, n]) => ({
value: e,
label: t,
symbol: n
@@ -78835,12 +78848,12 @@ var o6 = (e, t, n) => Us(e.map(([e, t, n]) => ({
active: t,
label: n,
className: "indextabs"
-}), xIe = (e) => `<div class="peach-react contents"><div data-filter-glass data-glass-pane class="sticky top-topbar z-10 mb-5.5 flex flex-col">
+}), wIe = (e) => `<div class="peach-react contents"><div data-filter-glass data-glass-pane class="sticky top-topbar z-10 mb-5.5 flex flex-col">
<div class="flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2" data-filter-row="top" data-skeleton-tier="filter-pill" aria-label="标签类型"></div>
<div class="flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2" data-filter-row="bottom"><span class="countskeleton"></span>
- <span class="ml-auto">${$c("tag-view", "标签视图", bIe, e, { className: "tag-skeleton-view" })}</span></div></div></div>`;
-function SIe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
- let o = r6[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies" || e === "series", l = s ? $c("people-layout", o + "索引版式", e === "series" ? gIe : c ? hIe : mIe, a) : "";
+ <span class="ml-auto">${$c("tag-view", "标签视图", CIe, e, { className: "tag-skeleton-view" })}</span></div></div></div>`;
+function TIe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
+ let o = a6[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies" || e === "series", l = s ? $c("people-layout", o + "索引版式", e === "series" ? yIe : c ? vIe : _Ie, 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}
@@ -78852,26 +78865,26 @@ function SIe({ 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">${Ds("", t, "过滤" + o)}</div>
</div>
- ${e === "tags" ? o6(vIe, n, "词表") : e === "performers" || e === "creators" ? o6(yIe, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? o6(_Ie, e, "资料类型") : ""}
- ${e === "tags" ? xIe(r) : ""}
- ${e === "performers" && n !== "online" ? QEe(i) : ""}
+ ${e === "tags" ? c6(xIe, n, "词表") : e === "performers" || e === "creators" ? c6(SIe, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? c6(bIe, e, "资料类型") : ""}
+ ${e === "tags" ? wIe(r) : ""}
+ ${e === "performers" && n !== "online" ? tDe(i) : ""}
${oc({
kind: e,
layout: a,
mode: r
})}`;
}
-var CIe = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
-function s6(e, t, n) {
- let r = SIe(t, n);
- e.querySelector("[data-skeleton]")?.dataset.skeleton !== CIe(r) && (e.innerHTML = r, pc(e));
+var EIe = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
+function l6(e, t, n) {
+ let r = TIe(t, n);
+ e.querySelector("[data-skeleton]")?.dataset.skeleton !== EIe(r) && (e.innerHTML = r, pc(e));
}
// src/react/router/pages/index-entity.tsx
-var wIe = () => pu, TIe = () => Ql, c6 = () => document.getElementById("index");
-function l6(e, t, n = {}) {
- let r = (0, F.useSyncExternalStore)(Cu, wIe);
+var DIe = () => pu, OIe = () => Ql, u6 = () => document.getElementById("index");
+function d6(e, t, n = {}) {
+ let r = (0, F.useSyncExternalStore)(Cu, DIe);
ef();
- let i = Bf(Op.navigation.location.pathname), a = (0, F.useRef)({
+ let i = Bf(Np.navigation.location.pathname), a = (0, F.useRef)({
mounted: !0,
epoch: -1,
opens: -1,
@@ -78896,7 +78909,7 @@ function l6(e, t, n = {}) {
let t = a.current;
if (!t.mounted) return;
let n = t.epoch !== e || t.opens !== pu, r = t.opens !== pu;
- if (t.epoch = e, t.opens = pu, Bf(Op.navigation.location.pathname)) {
+ if (t.epoch = e, t.opens = pu, Bf(Np.navigation.location.pathname)) {
n && o.current.options.onCovered?.();
return;
}
@@ -78917,11 +78930,11 @@ function l6(e, t, n = {}) {
i
]);
}
-async function EIe(e, t, n, r) {
- let i = c6();
+async function kIe(e, t, n, r) {
+ let i = u6();
if (!i) return;
- let a = `/${t}`, o = a6(t, n), s = i6($j().value.peopleLayout), c = !!i.querySelector("[data-index-page]") && !i.hidden;
- c || (e.surfaceChanged("index", a), s6(i, o, s), pm(r, i, { pending: !0 })), await mp(a, {
+ let a = `/${t}`, o = s6(t, n), s = o6(tM().value.peopleLayout), c = !!i.querySelector("[data-index-page]") && !i.hidden;
+ c || (e.surfaceChanged("index", a), l6(i, o, s), vm(r, i, { pending: !0 })), await yp(a, {
...o,
layout: s,
selectMode: Ql,
@@ -78930,25 +78943,25 @@ async function EIe(e, t, n, r) {
container: i,
isCurrent: r,
reuse: c
- }) && r() && (e.surfaceShown?.("index", a), pm(r, i));
+ }) && r() && (e.surfaceShown?.("index", a), vm(r, i));
}
-function DIe(e) {
- let t = c6(), n = t ? lp(t) : null;
+function AIe(e) {
+ let t = u6(), n = t ? mp(t) : null;
return !!t && !t.hidden && !!n && n.path === e && n.host.isConnected;
}
-function OIe({ epoch: e }) {
- let t = (0, F.useContext)(qW), n = ef(), r = n.pathname.split("/").filter(Boolean)[0];
- return l6(e, (e, i) => {
- t && EIe(t, r, n.search, i);
- }, { shown: () => DIe(`/${r}`) }), null;
+function jIe({ epoch: e }) {
+ let t = (0, F.useContext)(YW), n = ef(), r = n.pathname.split("/").filter(Boolean)[0];
+ return d6(e, (e, i) => {
+ t && kIe(t, r, n.search, i);
+ }, { shown: () => AIe(`/${r}`) }), null;
}
-function kIe() {
- let e = KW(), t = (0, F.useSyncExternalStore)(Cu, TIe), n = (0, F.useRef)(t);
+function MIe() {
+ let e = JW(), t = (0, F.useSyncExternalStore)(Cu, OIe), n = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
- n.current !== t && (n.current = t, window.location.pathname === "/tags" && gp(c6(), { selectMode: t }));
- }, [t]), /* @__PURE__ */ (0, I.jsx)(OIe, { epoch: e }, e);
+ n.current !== t && (n.current = t, window.location.pathname === "/tags" && xp(u6(), { selectMode: t }));
+ }, [t]), /* @__PURE__ */ (0, I.jsx)(jIe, { epoch: e }, e);
}
-function AIe(e) {
+function NIe(e) {
let t;
try {
t = decodeURIComponent(e);
@@ -78962,9 +78975,9 @@ function AIe(e) {
name: a
} : null;
}
-var u6 = /* @__PURE__ */ new WeakMap();
-function jIe(e) {
- let t = u6.get(e);
+var f6 = /* @__PURE__ */ new WeakMap();
+function PIe(e) {
+ let t = f6.get(e);
return t || (t = {
helpers: {
...e.grid.helpers,
@@ -78974,14 +78987,14 @@ function jIe(e) {
...e.grid.actions,
revealSource: e.revealSource
}
- }, u6.set(e, t)), t;
+ }, f6.set(e, t)), t;
}
-function d6() {
- let e = c6(), t = e ? lp(e) : null;
+function p6() {
+ let e = u6(), t = e ? mp(e) : null;
return !!t && t.path.endsWith("/*") && t.host.isConnected;
}
-async function MIe(e, t, n, r, i, a, o) {
- let s = c6();
+async function FIe(e, t, n, r, i, a, o) {
+ let s = u6();
if (!s) return;
let { segment: c, kind: l, name: u } = n;
if (!a()) return;
@@ -78994,9 +79007,9 @@ async function MIe(e, t, n, r, i, a, o) {
body: d.content.querySelector("[data-entity-body]>.peach-react")
}, h = {
...t.props(l, u, i),
- ...um("entity")
+ ...hm("entity")
};
- lm("entity", {
+ mm("entity", {
seed: h.seed,
revision: h.revision,
jav: h.jav
@@ -79004,9 +79017,9 @@ async function MIe(e, t, n, r, i, a, o) {
let g = {
...h,
hosts: m,
- card: jIe(e),
+ card: PIe(e),
resolvedEntity: o,
- restoreNavigation: dm(),
+ restoreNavigation: gm(),
actions: {
...h.actions,
javContext: (e) => {
@@ -79014,21 +79027,21 @@ async function MIe(e, t, n, r, i, a, o) {
}
}
};
- await mp(`/${c}/*`, g, {
+ await yp(`/${c}/*`, g, {
container: s,
isCurrent: a,
beforePlace: () => e.surfaceChanged("entity", r),
place: (e) => (e.replaceChildren(...f), p.firstElementChild)
- }) && a() && d6() && (e.surfaceShown?.("entity", r), pm(a, m.filter));
+ }) && a() && p6() && (e.surfaceShown?.("entity", r), vm(a, m.filter));
}
-function NIe({ target: e }) {
- let t = (0, F.useContext)(qW), n = KW(), r = ef();
- return l6(n, (n, i) => {
+function IIe({ target: e }) {
+ let t = (0, F.useContext)(YW), n = JW(), r = ef();
+ return d6(n, (n, i) => {
let a = t?.entity;
t && a && (async () => {
- if (n || !d6()) {
+ if (n || !p6()) {
if (t.surfaceChanged("entity", r.pathname), await a.loading(e.kind, e.name, i), !i()) return;
- pm(i, c6(), { pending: !0 });
+ vm(i, u6(), { pending: !0 });
}
let o = new URLSearchParams({ kind: e.kind });
o.set(/^[0-9]+$/.test(e.name) ? "id" : "name", e.name);
@@ -79039,131 +79052,131 @@ function NIe({ target: e }) {
e.name
],
queryFn: ({ signal: e }) => B(`/api/entity?${o}`, e),
- staleTime: dm() ? Infinity : 0
+ staleTime: gm() ? Infinity : 0
}).catch(() => null);
if (!i()) return;
if (s?.redirect) {
- kp(Pn(s.redirect.kind, s.redirect.name, s.redirect.id) + r.search + r.hash, {
+ Pp(Pn(s.redirect.kind, s.redirect.name, s.redirect.id) + r.search + r.hash, {
replace: !0,
- state: Op.navigation.location.state
+ state: Np.navigation.location.state
});
return;
}
if (!s?.id || s.error) {
- a.missing(e.kind), pm(i);
+ a.missing(e.kind), vm(i);
return;
}
let c = String(s.canonical_name || e.name), l = Pn(e.kind, c, Number(s.id));
- l === r.pathname ? !n && a.refresh(e.kind, c, r.search) ? pm(i, c6()?.querySelector("[data-entity-filter]")) : MIe(t, a, {
+ l === r.pathname ? !n && a.refresh(e.kind, c, r.search) ? vm(i, u6()?.querySelector("[data-entity-filter]")) : FIe(t, a, {
...e,
name: c
- }, r.pathname, r.search, i, s) : kp(l + r.search + r.hash, {
+ }, r.pathname, r.search, i, s) : Pp(l + r.search + r.hash, {
replace: !0,
- state: Op.navigation.location.state
+ state: Np.navigation.location.state
});
})();
- }, { shown: () => d6() && !c6()?.hidden }), null;
+ }, { shown: () => p6() && !u6()?.hidden }), null;
}
-function PIe() {
- let e = AIe(ef().pathname);
- return e ? /* @__PURE__ */ (0, I.jsx)(NIe, { target: e }, JSON.stringify([e.kind, e.name])) : null;
+function LIe() {
+ let e = NIe(ef().pathname);
+ return e ? /* @__PURE__ */ (0, I.jsx)(IIe, { target: e }, JSON.stringify([e.kind, e.name])) : null;
}
// src/react/router/pages/follow.tsx
-var f6 = () => document.getElementById("stats"), FIe = () => yu;
-async function IIe(e, t) {
- let n = f6(), r = e.follow;
+var m6 = () => document.getElementById("stats"), RIe = () => yu;
+async function zIe(e, t) {
+ let n = m6(), r = e.follow;
if (!n || !r) return;
- let i = um("follow"), a = r.refresh(i), o = r.props();
- if (lm("follow", {
+ let i = hm("follow"), a = r.refresh(i), o = r.props();
+ if (mm("follow", {
view: o.view,
seed: o.seed,
revision: o.revision
}), a) return;
let s = H.getQueryData(ra(o.view, o.revision).queryKey) !== void 0;
- s || (e.surfaceChanged("follow", "/follow"), N2(n, r.skeleton()), pm(t, n, { pending: !0 })), await mp("/follow", o, {
+ s || (e.surfaceChanged("follow", "/follow"), F2(n, r.skeleton()), vm(t, n, { pending: !0 })), await yp("/follow", o, {
container: n,
isCurrent: t,
beforePlace: s ? () => e.surfaceChanged("follow", "/follow") : void 0
- }), t() && pm(t, n.querySelector("[data-filter-frame]"));
+ }), t() && vm(t, n.querySelector("[data-filter-frame]"));
}
-function LIe() {
- let e = f6(), t = e ? lp(e) : null;
+function BIe() {
+ let e = m6(), t = e ? mp(e) : null;
return !!e && !e.hidden && !!t && t.path === "/follow" && t.host.isConnected;
}
-function RIe() {
- let e = (0, F.useContext)(qW);
- return l6(KW(), (t, n) => {
- e && IIe(e, n);
+function VIe() {
+ let e = (0, F.useContext)(YW);
+ return d6(JW(), (t, n) => {
+ e && zIe(e, n);
}, {
- shown: LIe,
+ shown: BIe,
onCovered: () => {
- Op.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();
+ Np.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();
}
}), null;
}
-function p6(e) {
- let t = e ? lp(e) : null;
+function h6(e) {
+ let t = e ? mp(e) : null;
return !!t && t.path === "/playlists" && t.host.isConnected;
}
-async function zIe(e, t) {
- let n = f6();
- n && (e.surfaceChanged("playlists", "/playlists"), N2(n, j2("/playlists", {
+async function HIe(e, t) {
+ let n = m6();
+ n && (e.surfaceChanged("playlists", "/playlists"), F2(n, N2("/playlists", {
followLayout: "",
followSort: "",
followDir: ""
- })), pm(t, n, { pending: !0 }), await mp("/playlists", { revision: yu }, {
+ })), vm(t, n, { pending: !0 }), await yp("/playlists", { revision: yu }, {
container: n,
isCurrent: t
- }), t() && pm(t));
+ }), t() && vm(t));
}
-function BIe() {
- let e = (0, F.useContext)(qW), t = (0, F.useSyncExternalStore)(Cu, FIe), n = (0, F.useRef)(t);
+function UIe() {
+ let e = (0, F.useContext)(YW), t = (0, F.useSyncExternalStore)(Cu, RIe), n = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
if (n.current === t) return;
n.current = t;
- let e = f6();
- p6(e) && gp(e, { revision: t });
- }, [t]), l6(KW(), (t, n) => {
- e && zIe(e, n);
+ let e = m6();
+ h6(e) && xp(e, { revision: t });
+ }, [t]), d6(JW(), (t, n) => {
+ e && HIe(e, n);
}, { shown: () => {
- let e = f6();
- return p6(e) && !e.hidden;
+ let e = m6();
+ return h6(e) && !e.hidden;
} }), null;
}
// src/react/router/pages/immerse.tsx
-function VIe() {
- let e = new URLSearchParams(Op.navigation.location.search).get("id");
+function WIe() {
+ let e = new URLSearchParams(Np.navigation.location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
-function HIe() {
- let e = (0, F.useContext)(qW);
- return WW(() => {
- e?.openImmerse(VIe());
+function GIe() {
+ let e = (0, F.useContext)(YW);
+ return KW(() => {
+ e?.openImmerse(WIe());
}, !0), null;
}
-function UIe() {
- return /* @__PURE__ */ (0, I.jsx)(HIe, {}, KW());
+function KIe() {
+ return /* @__PURE__ */ (0, I.jsx)(GIe, {}, JW());
}
// src/react/router/pages/managed.tsx
-var WIe = () => pu > 0, m6 = () => (0, F.useSyncExternalStore)(Cu, WIe), h6 = () => $j().value.followLayout === "table" ? "table" : "default", g6 = () => new URLSearchParams(window.location.search);
-function _6(e) {
+var qIe = () => pu > 0, g6 = () => (0, F.useSyncExternalStore)(Cu, qIe), _6 = () => tM().value.followLayout === "table" ? "table" : "default", v6 = () => new URLSearchParams(window.location.search);
+function y6(e) {
return Tn("/healthz", { signal: e.controller.signal }).catch((e) => {
if (En(e)) return null;
throw e;
});
}
-function v6(e, t) {
+function b6(e, t) {
return {
readOnly: !!e?.ledger_read_only,
readOnlyMessage: e?.ledger_read_only_message || "本机当前只能浏览",
writerUrl: e?.ledger_writer_origin ? new URL(t, e.ledger_writer_origin).href : ""
};
}
-async function GIe(e, t) {
+async function JIe(e, t) {
if (e === "/jav") {
- let e = await _6(t);
+ let e = await y6(t);
return t.live ? {
- tab: oU(g6().get("tab")),
+ tab: cU(v6().get("tab")),
readOnly: !!e?.ledger_read_only
} : null;
}
@@ -79174,51 +79187,51 @@ async function GIe(e, t) {
}
if (e.startsWith("/settings/")) {
window.location.hash === "#peachProxy" && W({ configurationRequestedSection: "网络与访问" });
- let t = g6().get("section") || uu || Af(e);
+ let t = v6().get("section") || uu || Af(e);
return t ? { section: t } : {};
}
if (e === "/review") {
- let e = g6().get("category") || "", n = await _6(t);
+ let e = v6().get("category") || "", n = await y6(t);
return t.live ? {
- category: xY(e) ? e : "",
- queue: wY(g6().get("queue")),
- ...v6(n, "/review")
+ category: CY(e) ? e : "",
+ queue: EY(v6().get("queue")),
+ ...b6(n, "/review")
} : null;
}
if (e === "/subscriptions") {
- let e = kZ("?" + g6().toString()), n = await _6(t);
+ let e = jZ("?" + v6().toString()), n = await y6(t);
if (!t.live) return null;
- let r = $j().value;
+ let r = tM().value;
return {
...e,
pageSize: Number(r.followPageSize) || 20,
- layout: h6(),
- ...v6(n, "/subscriptions")
+ layout: _6(),
+ ...b6(n, "/subscriptions")
};
}
return {};
}
-async function KIe(e, t, n) {
- let r = Op.navigation.seq, i = () => n.live && Op.navigation.seq === r;
- if (e === "/jav" && oU(g6().get("tab")) === "library") {
- Op.replace(Fve(window.location.search));
+async function YIe(e, t, n) {
+ let r = Np.navigation.seq, i = () => n.live && Np.navigation.seq === r;
+ if (e === "/jav" && cU(v6().get("tab")) === "library") {
+ Np.replace(Rve(window.location.search));
return;
}
- if (e === "/subscriptions" && g6().get("tab") === "wants") {
- kp("/jav?tab=wants", { replace: !0 });
+ if (e === "/subscriptions" && v6().get("tab") === "wants") {
+ Pp("/jav?tab=wants", { replace: !0 });
return;
}
- if (e === "/subscriptions" && g6().get("tab") === "source") {
- kp("/settings/subscriptions", { replace: !0 });
+ if (e === "/subscriptions" && v6().get("tab") === "source") {
+ Pp("/settings/subscriptions", { replace: !0 });
return;
}
let a = document.getElementById("stats");
if (!a) return;
- t.surfaceChanged("management", e), N2(a, j2(e, {
- followLayout: h6(),
- followSort: g6().get("sort") || "",
- followDir: g6().get("dir") || ""
- })), pm(i, a, { pending: !0 }), e === "/taste" && (W({ state: {
+ t.surfaceChanged("management", e), F2(a, N2(e, {
+ followLayout: _6(),
+ followSort: v6().get("sort") || "",
+ followDir: v6().get("dir") || ""
+ })), vm(i, a, { pending: !0 }), e === "/taste" && (W({ state: {
...U,
creator: "",
studio: "",
@@ -79233,37 +79246,37 @@ async function KIe(e, t, n) {
q: "",
jav: ""
} }), t.clearSearch());
- let o = await GIe(e, n);
+ let o = await JIe(e, n);
if (!o) return;
- let s = await mp(e, o, {
+ let s = await yp(e, o, {
container: a,
isCurrent: i
});
- if (s && (n.revision = lp(a)?.revision ?? 0), e.startsWith("/settings/") && s && W({ configurationRequestedSection: "" }), s && i()) {
+ if (s && (n.revision = mp(a)?.revision ?? 0), e.startsWith("/settings/") && s && W({ configurationRequestedSection: "" }), s && i()) {
let { hash: t } = window.location;
e === "/settings/library" && t === "#libraryProcessing" ? queueMicrotask(() => {
- i() && kp("/data-cleanup#libraryProcessing", {
+ i() && Pp("/data-cleanup#libraryProcessing", {
replace: !0,
state: null
});
- }) : pm(i);
+ }) : vm(i);
}
}
-function y6({ path: e }) {
- let t = KW();
+function x6({ path: e }) {
+ let t = JW();
ef();
- let n = Bf(Op.navigation.location.pathname), r = (0, F.useRef)(n ? null : t), i = (0, F.useRef)(n);
+ let n = Bf(Np.navigation.location.pathname), r = (0, F.useRef)(n ? null : t), i = (0, F.useRef)(n);
n || i.current && r.current !== null || (r.current = t), i.current = n;
let a = e.startsWith("/settings/") ? "/settings/configuration" : e;
- return /* @__PURE__ */ (0, I.jsx)(qIe, {
+ return /* @__PURE__ */ (0, I.jsx)(XIe, {
path: e,
covered: r.current === null
}, `${a} ${r.current ?? "covered"}`);
}
-function qIe({ path: e, covered: t }) {
- let n = (0, F.useContext)(qW), r = m6(), i = (0, F.useRef)(null);
+function XIe({ path: e, covered: t }) {
+ let n = (0, F.useContext)(YW), r = g6(), i = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
- e.startsWith("/settings/") && gp(document.getElementById("stats"), { section: Af(e) });
+ e.startsWith("/settings/") && xp(document.getElementById("stats"), { section: Af(e) });
}, [e]), (0, F.useEffect)(() => {
if (t || !n || !r || i.current) return;
let a = {
@@ -79272,45 +79285,45 @@ function qIe({ path: e, covered: t }) {
controller: new AbortController()
};
i.current = a, queueMicrotask(() => {
- a.live && KIe(e, n, a);
+ a.live && YIe(e, n, a);
});
}, [r]), (0, F.useEffect)(() => () => {
let e = i.current;
e && (e.live = !1, e.controller.abort());
}, []), null;
}
-function JIe() {
- let e = m6(), t = (0, F.useRef)(!1);
+function ZIe() {
+ let e = g6(), t = (0, F.useRef)(!1);
return (0, F.useEffect)(() => {
- if (!e || t.current || Bf(Op.navigation.location.pathname)) return;
+ if (!e || t.current || Bf(Np.navigation.location.pathname)) return;
t.current = !0;
let n = !0;
return queueMicrotask(() => {
- n && kp("/data-cleanup/resource-sync", { replace: !0 });
+ n && Pp("/data-cleanup/resource-sync", { replace: !0 });
}), () => {
n = !1;
};
}, [e]), null;
}
// src/react/router/route-chunk.ts
-var b6 = [], x6 = "peach.chunkReloadAt", YIe = 3e4;
-async function XIe() {
+var S6 = [], C6 = "peach.chunkReloadAt", QIe = 3e4;
+async function $Ie() {
try {
- let e = Number(sessionStorage.getItem(x6) || 0);
- if (Date.now() - e < YIe || !(await fetch("/healthz", {
+ let e = Number(sessionStorage.getItem(C6) || 0);
+ if (Date.now() - e < QIe || !(await fetch("/healthz", {
cache: "no-store",
credentials: "same-origin"
})).ok) return;
- sessionStorage.setItem(x6, String(Date.now())), location.reload();
+ sessionStorage.setItem(C6, String(Date.now())), location.reload();
} catch {}
}
-function S6(e) {
+function w6(e) {
let t = null, n = null, r = () => n ??= e().then((e) => (t = { module: e }, e), (e) => {
throw n = null, e;
});
- return b6.push(r), {
+ return S6.push(r), {
preload: () => r().catch(async (e) => {
- throw await XIe(), e;
+ throw await $Ie(), e;
}),
get: () => {
if (!t) throw Error("页面代码还没装载");
@@ -79318,10 +79331,10 @@ function S6(e) {
}
};
}
-function ZIe() {
+function eLe() {
let e = globalThis.requestIdleCallback;
if (typeof e != "function") return;
- let t = [...b6], n = () => {
+ let t = [...S6], n = () => {
let r = t.shift();
r && e(() => {
r().catch(() => {}).finally(n);
@@ -79330,31 +79343,31 @@ function ZIe() {
document.readyState === "complete" ? n() : window.addEventListener("load", n, { once: !0 });
}
// src/react/router/managed-routes.tsx
-async function C6(e, t) {
+async function T6(e, t) {
let [n, r] = await Promise.allSettled([e.preload(), t]);
if (r.status === "rejected") throw r.reason;
if (n.status === "rejected") throw n.reason;
}
-var w6 = S6(() => import("./peach-app.jav-page-CvsnSwyE.js")), T6 = S6(() => import("./peach-app.stats-page-Domc7MK7.js")), E6 = S6(() => import("./peach-app.taste-page-DBsNS6-3.js")), D6 = S6(() => import("./peach-app.review-page-DL1KGdJQ.js")), O6 = S6(() => import("./peach-app.data-cleanup-page-CZOBqkVd.js")), k6 = S6(() => import("./peach-app.duplicates-page-Bau8HIlx.js")), A6 = S6(() => import("./peach-app.quality-goals-page-Deoy7rhD.js")), j6 = S6(() => import("./peach-app.scraping-page-C4xFEKWF.js")), M6 = S6(async () => {
+var E6 = w6(() => import("./peach-app.jav-page-CvsnSwyE.js")), D6 = w6(() => import("./peach-app.stats-page-Domc7MK7.js")), O6 = w6(() => import("./peach-app.taste-page-DBsNS6-3.js")), k6 = w6(() => import("./peach-app.review-page-DL1KGdJQ.js")), A6 = w6(() => import("./peach-app.data-cleanup-page-CZOBqkVd.js")), j6 = w6(() => import("./peach-app.duplicates-page-Bau8HIlx.js")), M6 = w6(() => import("./peach-app.quality-goals-page-Deoy7rhD.js")), N6 = w6(() => import("./peach-app.scraping-page-C4xFEKWF.js")), P6 = w6(async () => {
let [{ ConfigurationPage: e }, { DiagnosticsPage: t }] = await Promise.all([import("./peach-app.configuration-page-ubxQHJd0.js"), import("./peach-app.diagnostics-page-DS1L_wLs.js")]);
return {
ConfigurationPage: e,
DiagnosticsPage: t
};
-}), N6 = S6(() => import("./peach-app.activity-page-Ba2ZG9aL.js")), P6 = S6(() => import("./peach-app.follow-manage-page-DfAEh_7P.js")), F6 = S6(() => import("./peach-app.playlists-page-Be7ygGCR.js"));
-function QIe(e, t, n) {
+}), F6 = w6(() => import("./peach-app.activity-page-Ba2ZG9aL.js")), I6 = w6(() => import("./peach-app.follow-manage-page-DfAEh_7P.js")), L6 = w6(() => import("./peach-app.playlists-page-Be7ygGCR.js"));
+function tLe(e, t, n) {
if (e === "duplicates") {
n("/duplicates");
return;
}
let r = t.managePath(e);
- R6(r) ? n(r) : t.openManage(e);
+ B6(r) ? n(r) : t.openManage(e);
}
-var I6 = (e) => ({
- element: /* @__PURE__ */ (0, I.jsx)(y6, { path: e }),
- prefetch: (t, n) => C6(M6, Promise.all([YAe(n), ...e === "/settings/diagnostics" ? [vke(n)] : []]).then(() => {})),
+var R6 = (e) => ({
+ element: /* @__PURE__ */ (0, I.jsx)(x6, { path: e }),
+ prefetch: (t, n) => T6(P6, Promise.all([QAe(n), ...e === "/settings/diagnostics" ? [xke(n)] : []]).then(() => {})),
page: (t, n) => {
- let { ConfigurationPage: r, DiagnosticsPage: i } = M6.get();
+ let { ConfigurationPage: r, DiagnosticsPage: i } = P6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
receipt: (e) => n.receipt(e),
reopenTutorial: n.reopenTutorial,
@@ -79365,12 +79378,12 @@ var I6 = (e) => ({
})
});
}
-}), L6 = {
+}), z6 = {
...Yf.reduce((e, t) => (e[t.path] = {
- element: /* @__PURE__ */ (0, I.jsx)(y6, { path: t.path }),
- prefetch: (e, n) => C6(O6, HEe(t.key, n)),
+ element: /* @__PURE__ */ (0, I.jsx)(x6, { path: t.path }),
+ prefetch: (e, n) => T6(A6, GEe(t.key, n)),
page: (e, n) => {
- let { DataCleanupToolPage: r } = O6.get();
+ let { DataCleanupToolPage: r } = A6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
tool: t.key,
failure: n.failure,
@@ -79379,10 +79392,10 @@ var I6 = (e) => ({
}
}, e), {}),
"/jav": {
- element: /* @__PURE__ */ (0, I.jsx)(y6, { path: "/jav" }),
- prefetch: (e, t) => C6(w6, Bye(e.tab, t)),
+ element: /* @__PURE__ */ (0, I.jsx)(x6, { path: "/jav" }),
+ prefetch: (e, t) => T6(E6, Uye(e.tab, t)),
page: (e, t) => {
- let { JavPage: n } = w6.get();
+ let { JavPage: n } = E6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
...e,
navigate: t.navigate,
@@ -79391,10 +79404,10 @@ var I6 = (e) => ({
}
},
"/stats": {
- element: /* @__PURE__ */ (0, I.jsx)(y6, { path: "/stats" }),
- prefetch: (e, t) => C6(T6, uFe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(x6, { path: "/stats" }),
+ prefetch: (e, t) => T6(D6, pFe(t)),
page: (e, t) => {
- let { StatsPage: n } = T6.get();
+ let { StatsPage: n } = D6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
tagLabel: Ll,
onTag: t.openTag
@@ -79402,10 +79415,10 @@ var I6 = (e) => ({
}
},
"/taste": {
- element: /* @__PURE__ */ (0, I.jsx)(y6, { path: "/taste" }),
- prefetch: (e, t) => C6(E6, QFe("all", t)),
+ element: /* @__PURE__ */ (0, I.jsx)(x6, { path: "/taste" }),
+ prefetch: (e, t) => T6(O6, tIe("all", t)),
page: (e, t, n) => {
- let { TastePage: r } = E6.get();
+ let { TastePage: r } = O6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
onSignal: t.openTasteSignal,
navigate: n,
@@ -79415,10 +79428,10 @@ var I6 = (e) => ({
}
},
"/review": {
- element: /* @__PURE__ */ (0, I.jsx)(y6, { path: "/review" }),
- prefetch: (e, t) => C6(D6, jTe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(x6, { path: "/review" }),
+ prefetch: (e, t) => T6(k6, PTe(t)),
page: (e, t) => {
- let { ReviewPage: n } = D6.get();
+ let { ReviewPage: n } = k6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
...e,
route: t.routeReview,
@@ -79430,23 +79443,23 @@ var I6 = (e) => ({
}
},
"/data-cleanup": {
- element: /* @__PURE__ */ (0, I.jsx)(y6, { path: "/data-cleanup" }),
- prefetch: (e, t) => C6(O6, VEe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(x6, { path: "/data-cleanup" }),
+ prefetch: (e, t) => T6(A6, WEe(t)),
page: (e, t, n) => {
- let { DataCleanupPage: r } = O6.get();
+ let { DataCleanupPage: r } = A6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
navigate: n,
failure: t.failure,
- open: (e) => QIe(e, t, n),
+ open: (e) => tLe(e, t, n),
toast: (e, { warning: n = !1 } = {}) => n ? t.toast({ text: e }, { sound: "warning" }) : t.receipt(e)
});
}
},
"/duplicates": {
- element: /* @__PURE__ */ (0, I.jsx)(y6, { path: "/duplicates" }),
- prefetch: (e, t) => C6(k6, qwe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(x6, { path: "/duplicates" }),
+ prefetch: (e, t) => T6(j6, Xwe(t)),
page: (e, t) => {
- let { DuplicatesPage: n } = k6.get();
+ let { DuplicatesPage: n } = j6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
openItem: t.openItem,
failure: t.failure,
@@ -79455,46 +79468,46 @@ var I6 = (e) => ({
}
},
"/quality-goals": {
- element: /* @__PURE__ */ (0, I.jsx)(y6, { path: "/quality-goals" }),
- prefetch: (e, t) => C6(A6, aTe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(x6, { path: "/quality-goals" }),
+ prefetch: (e, t) => T6(M6, cTe(t)),
page: (e, t) => {
- let { QualityGoalsPage: n } = A6.get();
+ let { QualityGoalsPage: n } = M6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
openItem: t.openItem,
- javTitleHtml: BI,
- javDisplayName: zI,
+ javTitleHtml: HI,
+ javDisplayName: VI,
toast: (e) => t.receipt(e),
srcBadge: t.srcBadge
});
}
},
"/sources": {
- element: /* @__PURE__ */ (0, I.jsx)(y6, { path: "/sources" }),
- prefetch: (e, t) => C6(j6, IAe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(x6, { path: "/sources" }),
+ prefetch: (e, t) => T6(N6, zAe(t)),
page: (e, t) => {
- let { ScrapingPage: n } = j6.get();
+ let { ScrapingPage: n } = N6.get();
return /* @__PURE__ */ (0, I.jsx)(n, { toast: (e) => t.toast(e) });
}
},
- "/settings/library": I6("/settings/library"),
- "/settings/subscriptions": I6("/settings/subscriptions"),
- "/settings/downloads": I6("/settings/downloads"),
- "/settings/network": I6("/settings/network"),
- "/settings/maintenance": I6("/settings/maintenance"),
- "/settings/diagnostics": I6("/settings/diagnostics"),
+ "/settings/library": R6("/settings/library"),
+ "/settings/subscriptions": R6("/settings/subscriptions"),
+ "/settings/downloads": R6("/settings/downloads"),
+ "/settings/network": R6("/settings/network"),
+ "/settings/maintenance": R6("/settings/maintenance"),
+ "/settings/diagnostics": R6("/settings/diagnostics"),
"/tasks": {
- element: /* @__PURE__ */ (0, I.jsx)(y6, { path: "/tasks" }),
- prefetch: (e, t) => C6(N6, hpe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(x6, { path: "/tasks" }),
+ prefetch: (e, t) => T6(F6, vpe(t)),
page: () => {
- let { ActivityPage: e } = N6.get();
+ let { ActivityPage: e } = F6.get();
return /* @__PURE__ */ (0, I.jsx)(e, {});
}
},
"/subscriptions": {
- element: /* @__PURE__ */ (0, I.jsx)(y6, { path: "/subscriptions" }),
- prefetch: (e, t) => C6(P6, Ri(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(x6, { path: "/subscriptions" }),
+ prefetch: (e, t) => T6(I6, Ri(t)),
page: (e, t) => {
- let { FollowManagePage: n } = P6.get();
+ let { FollowManagePage: n } = I6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
...e,
route: t.routeFollowManage,
@@ -79504,12 +79517,12 @@ var I6 = (e) => ({
});
}
}
-}, R6 = (e) => Object.hasOwn(L6, e), $Ie = { "/resource-sync": { element: /* @__PURE__ */ (0, I.jsx)(JIe, {}) } }, eLe = { "/immerse": { element: /* @__PURE__ */ (0, I.jsx)(UIe, {}) } }, z6 = {
+}, B6 = (e) => Object.hasOwn(z6, e), nLe = { "/resource-sync": { element: /* @__PURE__ */ (0, I.jsx)(ZIe, {}) } }, rLe = { "/immerse": { element: /* @__PURE__ */ (0, I.jsx)(KIe, {}) } }, V6 = {
"/playlists": {
- element: /* @__PURE__ */ (0, I.jsx)(BIe, {}),
- prefetch: (e, t) => C6(F6, bAe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(UIe, {}),
+ prefetch: (e, t) => T6(L6, CAe(t)),
page: (e, t) => {
- let { PlaylistsPage: n } = F6.get();
+ let { PlaylistsPage: n } = L6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
revision: e.revision,
openPlaylist: t.openPlaylist,
@@ -79520,14 +79533,14 @@ var I6 = (e) => ({
}
},
"/follow": {
- element: /* @__PURE__ */ (0, I.jsx)(RIe, {}),
+ element: /* @__PURE__ */ (0, I.jsx)(VIe, {}),
prefetch: (e, t) => oa(e, t),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(XDe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)($De, { ...e })
}
-}, B6 = (e) => Object.hasOwn(z6, e), V6 = {
- element: /* @__PURE__ */ (0, I.jsx)(kIe, {}),
- prefetch: (e, t) => lDe(e, t),
- page: (e, t) => /* @__PURE__ */ (0, I.jsx)(Mke, {
+}, H6 = (e) => Object.hasOwn(V6, e), U6 = {
+ element: /* @__PURE__ */ (0, I.jsx)(MIe, {}),
+ prefetch: (e, t) => fDe(e, t),
+ page: (e, t) => /* @__PURE__ */ (0, I.jsx)(Fke, {
...e,
route: t.routeIndex,
savePreference: t.savePeopleLayout,
@@ -79540,82 +79553,82 @@ var I6 = (e) => ({
openFollowAuthor: t.openFollowAuthor,
openFollowTag: t.openFollowTag
})
-}, H6 = {
- "/performers": V6,
- "/creators": V6,
- "/studios": V6,
- "/agencies": V6,
- "/tags": V6,
- "/series": V6
-}, U6 = {
- element: /* @__PURE__ */ (0, I.jsx)(PIe, {}),
- prefetch: (e) => ZEe(e),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(pke, { ...e })
}, W6 = {
- "/performers/*": U6,
- "/studios/*": U6,
- "/creators/*": U6,
- "/series/*": U6,
- "/agencies/*": U6,
- "/tags/*": U6
+ "/performers": U6,
+ "/creators": U6,
+ "/studios": U6,
+ "/agencies": U6,
+ "/tags": U6,
+ "/series": U6
}, G6 = {
+ element: /* @__PURE__ */ (0, I.jsx)(LIe, {}),
+ prefetch: (e) => eDe(e),
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(gke, { ...e })
+}, K6 = {
+ "/performers/*": G6,
+ "/studios/*": G6,
+ "/creators/*": G6,
+ "/series/*": G6,
+ "/agencies/*": G6,
+ "/tags/*": G6
+}, q6 = {
"/": {
- element: /* @__PURE__ */ (0, I.jsx)(HW, {}),
+ element: /* @__PURE__ */ (0, I.jsx)(WW, {}),
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(tY, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(rY, { ...e })
},
"/junk-files": {
- element: /* @__PURE__ */ (0, I.jsx)(HW, {}),
+ element: /* @__PURE__ */ (0, I.jsx)(WW, {}),
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(Gke, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(Jke, { ...e })
}
-}, K6 = (e) => Object.hasOwn(G6, e), tLe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, I.jsx)(Tve, { ...e }) : /* @__PURE__ */ (0, I.jsx)(b$, { ...e }), q6 = {
+}, J6 = (e) => Object.hasOwn(q6, e), iLe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, I.jsx)(Ove, { ...e }) : /* @__PURE__ */ (0, I.jsx)(S$, { ...e }), Y6 = {
"catalog-filter": {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(Xbe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)($be, { ...e })
},
"feed-new": {
- prefetch: (e) => qEe(e),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(yke, { ...e })
+ prefetch: (e) => XEe(e),
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(Ske, { ...e })
},
"library-processing": {
- prefetch: (e, t) => iH(t),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(tLe, { ...e })
+ prefetch: (e, t) => oH(t),
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(iLe, { ...e })
},
search: {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(WAe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(qAe, { ...e })
}
-}, J6 = (e) => Object.hasOwn(q6, e), Y6 = {
+}, X6 = (e) => Object.hasOwn(Y6, e), Z6 = {
"batch-dock": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(lle, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(fle, {})
},
"glow-picker": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Gle, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Jle, {})
},
"manage-header": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Jfe, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Zfe, {})
},
immerse: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Wde, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(qde, {})
},
"settings-panel": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Tje, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Oje, {})
},
sidebar: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Vje, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Wje, {})
},
stage: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(cFe, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(dFe, {})
}
-}, X6 = (e) => Object.hasOwn(Y6, e), Z6 = [
+}, Q6 = (e) => Object.hasOwn(Z6, e), $6 = [
"/",
"/wall",
"/unseen",
@@ -79625,99 +79638,99 @@ var I6 = (e) => ({
"/junk-files"
];
[
- ...Object.keys(L6),
...Object.keys(z6),
- ...Object.keys(H6),
+ ...Object.keys(V6),
...Object.keys(W6),
- ...Z6
+ ...Object.keys(K6),
+ ...$6
];
-var Q6 = (e) => R6(e) || B6(e) || Object.hasOwn(H6, e) || Object.hasOwn(W6, e) || K6(e) || J6(e) || X6(e);
-function $6(e) {
- return R6(e) ? L6[e] : B6(e) ? z6[e] : K6(e) ? G6[e] : J6(e) ? q6[e] : X6(e) ? Y6[e] : Object.hasOwn(H6, e) ? H6[e] : W6[e];
+var e8 = (e) => B6(e) || H6(e) || Object.hasOwn(W6, e) || Object.hasOwn(K6, e) || J6(e) || X6(e) || Q6(e);
+function t8(e) {
+ return B6(e) ? z6[e] : H6(e) ? V6[e] : J6(e) ? q6[e] : X6(e) ? Y6[e] : Q6(e) ? Z6[e] : Object.hasOwn(W6, e) ? W6[e] : K6[e];
}
-function nLe(e, t, n) {
- return Q6(e) ? $6(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
+function aLe(e, t, n) {
+ return e8(e) ? t8(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
}
-function rLe(e, t, n, r) {
- return $6(e).page(t, n, r);
+function oLe(e, t, n, r) {
+ return t8(e).page(t, n, r);
}
// src/react/application-residents.ts
-var e8 = null, t8 = null, n8 = 0, r8 = /* @__PURE__ */ new Set();
-function iLe(e) {
- return e8 = e, t8 && e(t8), () => {
- e8 === e && (e8 = null);
+var n8 = null, r8 = null, i8 = 0, a8 = /* @__PURE__ */ new Set();
+function sLe(e) {
+ return n8 = e, r8 && e(r8), () => {
+ n8 === e && (n8 = null);
};
}
-function aLe(e) {
- return e8 && (t8 = e, e8(e), cp(Promise.resolve(nLe)), ZIe()), Promise.resolve();
+function cLe(e) {
+ return n8 && (r8 = e, n8(e), pp(Promise.resolve(aLe)), eLe()), Promise.resolve();
}
-async function i8(e, t, n = (e) => e) {
- let r = n8;
- if (t.isConnected || r8.add(t), !await mp(e, {}, {
+async function o8(e, t, n = (e) => e) {
+ let r = i8;
+ if (t.isConnected || a8.add(t), !await yp(e, {}, {
container: t,
resident: !0,
- isCurrent: () => !!e8 && r === n8,
+ isCurrent: () => !!n8 && r === i8,
place: () => n(t)
- }) || r !== n8 || !e8) throw new DOMException("应用已卸载", "AbortError");
-}
-function oLe() {
- n8 += 1, e8 = null, t8 = null, a8 = null, o8 = null, l8 = null, u8 = null, f8 = null, p8 = null, h8 = null, g8 = null, v8 = null, y8 = null, x8 = null, S8 = null, w8 = null;
- for (let e of r8) e.remove();
- r8.clear(), zQ();
+ }) || r !== i8 || !n8) throw new DOMException("应用已卸载", "AbortError");
}
-var a8 = null, o8 = null;
-function s8(e) {
- return a8 ??= (async () => {
- let t = sFe(e), n = document.createElement("div");
- return n.dataset.stageHost = "", await i8("stage", n, (e) => (document.body.append(e), e)), o8 = t, t;
- })(), a8;
+function lLe() {
+ i8 += 1, n8 = null, r8 = null, s8 = null, c8 = null, d8 = null, f8 = null, m8 = null, h8 = null, _8 = null, v8 = null, b8 = null, x8 = null, C8 = null, w8 = null, E8 = null;
+ for (let e of a8) e.remove();
+ a8.clear(), VQ();
}
-var c8 = () => o8, l8 = null, u8 = null;
-function sLe(e) {
- return l8 ??= (async () => {
- let t = Ude(e), n = document.createElement("div");
- return n.dataset.immerseHost = "", await i8("immerse", n, (e) => (document.body.append(e), e)), u8 = t, t;
- })(), l8;
+var s8 = null, c8 = null;
+function l8(e) {
+ return s8 ??= (async () => {
+ let t = uFe(e), n = document.createElement("div");
+ return n.dataset.stageHost = "", await o8("stage", n, (e) => (document.body.append(e), e)), c8 = t, t;
+ })(), s8;
}
-var d8 = () => u8, f8 = null, p8 = null;
-function cLe(e) {
- return f8 ??= (async () => {
- let t = wje(e), n = document.createElement("div");
- return n.dataset.settingsHost = "", await i8("settings-panel", n, (e) => (document.body.append(e), e)), p8 = t, t;
- })(), f8;
-}
-var m8 = () => p8, h8 = null, g8 = null;
-function lLe(e) {
- return h8 ??= (async () => {
- let t = Bje(e);
- return await i8("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), g8 = t, t;
- })(), h8;
-}
-var _8 = () => g8, v8 = null, y8 = null;
+var u8 = () => c8, d8 = null, f8 = null;
function uLe(e) {
- return v8 ??= (async () => {
- let t = qfe(e);
- return await i8("manage-header", e.root, (e) => (e.replaceChildren(), e)), y8 = t, t;
- })(), v8;
+ return d8 ??= (async () => {
+ let t = Kde(e), n = document.createElement("div");
+ return n.dataset.immerseHost = "", await o8("immerse", n, (e) => (document.body.append(e), e)), f8 = t, t;
+ })(), d8;
}
-var b8 = () => y8, x8 = null, S8 = null;
+var p8 = () => f8, m8 = null, h8 = null;
function dLe(e) {
- return x8 ??= (async () => {
- let t = cle(e);
- return await i8("batch-dock", e.root), S8 = t, t;
- })(), x8;
+ return m8 ??= (async () => {
+ let t = Dje(e), n = document.createElement("div");
+ return n.dataset.settingsHost = "", await o8("settings-panel", n, (e) => (document.body.append(e), e)), h8 = t, t;
+ })(), m8;
}
-var C8 = () => S8, w8 = null;
+var g8 = () => h8, _8 = null, v8 = null;
function fLe(e) {
- return w8 ??= (async () => {
- Wle(e), await i8("glow-picker", e.root);
- })(), w8;
-}
-function T8(e, t, n, r) {
- BQ(e, t), VQ(n, r);
+ return _8 ??= (async () => {
+ let t = Uje(e);
+ return await o8("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), v8 = t, t;
+ })(), _8;
+}
+var y8 = () => v8, b8 = null, x8 = null;
+function pLe(e) {
+ return b8 ??= (async () => {
+ let t = Xfe(e);
+ return await o8("manage-header", e.root, (e) => (e.replaceChildren(), e)), x8 = t, t;
+ })(), b8;
+}
+var S8 = () => x8, C8 = null, w8 = null;
+function mLe(e) {
+ return C8 ??= (async () => {
+ let t = dle(e);
+ return await o8("batch-dock", e.root), w8 = t, t;
+ })(), C8;
+}
+var T8 = () => w8, E8 = null;
+function hLe(e) {
+ return E8 ??= (async () => {
+ qle(e), await o8("glow-picker", e.root);
+ })(), E8;
+}
+function D8(e, t, n, r) {
+ HQ(e, t), UQ(n, r);
}
// src/application/receipts.js
-var E8 = {
+var O8 = {
toastBody: void 0,
toastSeq: void 0,
toast: void 0,
@@ -79726,13 +79739,13 @@ var E8 = {
rollSeed: void 0,
seededSample: void 0
};
-function pLe() {
- BQ(L("#toasts"), {
+function gLe() {
+ HQ(L("#toasts"), {
success: R("check"),
error: R("circle-alert")
- }), E8.toastBody = (e) => e && typeof e == "object" && "html" in e ? String(e.html) : z(e && typeof e == "object" ? e.text ?? "" : e ?? ""), E8.toastSeq = 0, E8.toast = (e, { timeout: t = 6e3, warn: n = !1, action: r = null, sound: i = null } = {}) => {
- let a = `toast-${++E8.toastSeq}`, o = (e, t, n, r) => {
- Qo(i || (t ? "error" : "success")), T8(L("#toasts"), {
+ }), O8.toastBody = (e) => e && typeof e == "object" && "html" in e ? String(e.html) : z(e && typeof e == "object" ? e.text ?? "" : e ?? ""), O8.toastSeq = 0, O8.toast = (e, { timeout: t = 6e3, warn: n = !1, action: r = null, sound: i = null } = {}) => {
+ let a = `toast-${++O8.toastSeq}`, o = (e, t, n, r) => {
+ Qo(i || (t ? "error" : "success")), D8(L("#toasts"), {
success: R("check"),
error: R("circle-alert")
}, a, {
@@ -79747,10 +79760,10 @@ function pLe() {
} : null
});
};
- return o(E8.toastBody(e), n, t, r), { replaceMessage: (e, { warn: t = !1, timeout: n = 4e3 } = {}) => o(E8.toastBody(e), t, n, null) };
- }, E8.actionReceipt = (e, { undo: t = null, timeout: n = t ? 8e3 : 6e3 } = {}) => {
+ return o(O8.toastBody(e), n, t, r), { replaceMessage: (e, { warn: t = !1, timeout: n = 4e3 } = {}) => o(O8.toastBody(e), t, n, null) };
+ }, O8.actionReceipt = (e, { undo: t = null, timeout: n = t ? 8e3 : 6e3 } = {}) => {
let r = null;
- return r = E8.toast({ text: e }, {
+ return r = O8.toast({ text: e }, {
timeout: n,
action: t ? {
label: "撤销",
@@ -79763,14 +79776,14 @@ function pLe() {
}
} : null
}), r;
- }, E8.actionFailure = (e, t) => E8.toast({ text: `${e}失败:${t?.message || "请重试"}` }, { warn: !0 }), E8.rollSeed = () => ir(), E8.seededSample = (e, t, n, r = (e) => e.k) => {
+ }, O8.actionFailure = (e, t) => O8.toast({ text: `${e}失败:${t?.message || "请重试"}` }, { warn: !0 }), O8.rollSeed = () => ir(), O8.seededSample = (e, t, n, r = (e) => e.k) => {
if (e.length <= t) return e;
let i = new Set([...e].sort((e, t) => rr(n, r(e)) - rr(n, r(t))).slice(0, t).map(r));
return e.filter((e) => i.has(r(e)));
};
}
// src/react/catalog-grid/catalog-state.ts
-var mLe = [
+var _Le = [
"loc",
"creator",
"studio",
@@ -79791,10 +79804,10 @@ var mLe = [
"folder",
"folder_recursive"
];
-function D8(e, t, n, r = n.defaultSort) {
- return Pj(e, t, n.defaultSort, n.defaultSortDirection, r);
+function k8(e, t, n, r = n.defaultSort) {
+ return Ij(e, t, n.defaultSort, n.defaultSortDirection, r);
}
-function hLe(e, t, n) {
+function vLe(e, t, n) {
let r = decodeURIComponent(e.pathname), i = new URLSearchParams(e.search), a = jn(r) || r === "/trash", o = (e) => a ? i.get(e) : null;
return {
loc: i.get("loc") ?? "local,115",
@@ -79810,7 +79823,7 @@ function hLe(e, t, n) {
region: o("region") || "",
year: o("year") || "",
state: kn[r] || o("state") || "",
- ...D8(o("sort"), o("dir"), t),
+ ...k8(o("sort"), o("dir"), t),
seed: o("seed") || n(),
q: o("q") || "",
jav: o("jav") || "",
@@ -79820,18 +79833,18 @@ function hLe(e, t, n) {
folder_recursive: o("folder_recursive") === "0" ? "0" : ""
};
}
-function gLe(e, t) {
+function yLe(e, t) {
return e.split(",").filter(Boolean).filter((e) => t[e] !== !1).join(",") || e;
}
-function _Le(e) {
+function bLe(e) {
let t = On[e.state ?? ""] || "/", n = new URLSearchParams();
- for (let t of mLe) {
+ for (let t of _Le) {
let r = e[t];
- !r || t === "tag_match" && r === "all" || t === "dir" && r === jj(e.sort ?? "") || n.set(t, r);
+ !r || t === "tag_match" && r === "all" || t === "dir" && r === Nj(e.sort ?? "") || n.set(t, r);
}
return !On[e.state ?? ""] && e.state && n.set("state", e.state), t + (n.size ? `?${n}` : "");
}
-function vLe(e, t, n) {
+function xLe(e, t, n) {
return {
loc: e.loc ?? "",
creator: "",
@@ -79847,7 +79860,7 @@ function vLe(e, t, n) {
year: "",
state: "",
sort: t.defaultSort,
- dir: Nj(t.defaultSort, t.defaultSort, t.defaultSortDirection),
+ dir: Fj(t.defaultSort, t.defaultSort, t.defaultSortDirection),
seed: n(),
q: "",
jav: "",
@@ -79857,7 +79870,7 @@ function vLe(e, t, n) {
folder_recursive: ""
};
}
-function O8(e) {
+function A8(e) {
return {
state: e,
barsContext: {
@@ -79868,7 +79881,7 @@ function O8(e) {
};
}
// src/react/catalog-grid/catalog-controller.ts
-var yLe = class {
+var SLe = class {
currentRevision = 0;
currentPage = "";
painting = null;
@@ -79913,44 +79926,44 @@ var yLe = class {
let e = [...this.waiters.values()];
this.waiters.clear(), e.forEach((e) => e());
}
-}, k8 = Infinity, A8 = 0, bLe = (e, t = A8) => [
+}, j8 = Infinity, M8 = 0, CLe = (e, t = M8) => [
"facets",
e,
t
-], xLe = (e, t, n = A8) => [
+], wLe = (e, t, n = M8) => [
"tops",
e,
t,
n
-], SLe = (e, t = A8) => [
+], TLe = (e, t = M8) => [
"tops",
e,
t
];
-async function j8(e) {
+async function N8(e) {
let t = String(e), n = await Tn(`/api/tops?${t}`), r = new URLSearchParams(t);
return n.performers.length || n.studios.length || !r.has("state") ? n : (r.delete("state"), await Tn(`/api/tops?${r}`));
}
-function CLe(e, t) {
+function ELe(e, t) {
return Promise.all([H.fetchQuery({
- queryKey: bLe(e),
+ queryKey: CLe(e),
queryFn: () => Tn(`/api/facets${e ? `?${e}` : ""}`),
- staleTime: k8
+ staleTime: j8
}), H.fetchQuery({
- queryKey: xLe(t, e),
- queryFn: () => j8(t),
- staleTime: k8
+ queryKey: wLe(t, e),
+ queryFn: () => N8(t),
+ staleTime: j8
})]);
}
-function wLe(e) {
+function DLe(e) {
return H.fetchQuery({
- queryKey: SLe(e),
- queryFn: () => j8(e),
- staleTime: k8
+ queryKey: TLe(e),
+ queryFn: () => N8(e),
+ staleTime: j8
});
}
-function M8() {
- A8 += 1;
+function P8() {
+ M8 += 1;
let e = (e) => e.state.fetchStatus === "idle";
H.removeQueries({
queryKey: ["facets"],
@@ -79961,7 +79974,7 @@ function M8() {
});
}
// src/application/navigation-items.ts
-var N8 = [
+var F8 = [
[
"",
"首页",
@@ -80012,7 +80025,7 @@ var N8 = [
"管理",
"wrench"
]
-], P8 = [
+], I8 = [
[
"stats",
"统计",
@@ -80058,18 +80071,18 @@ var N8 = [
"Peach 配置",
"folder-cog"
]
-], F8 = [
+], L8 = [
"stats",
"taste",
"cleanup",
"follow",
"activity",
"configuration"
-], TLe = (e) => P8.filter(([t]) => F8.includes(t) && (t !== "configuration" || e)), I8 = P8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
+], OLe = (e) => I8.filter(([t]) => L8.includes(t) && (t !== "configuration" || e)), R8 = I8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
e === "follow" ? "follow-manage" : e === "cleanup" ? "data-cleanup" : e,
t,
n
-]]), ELe = [...N8, ...I8], DLe = {
+]]), kLe = [...F8, ...R8], ALe = {
stats: "stats",
review: "review",
"data-cleanup": "cleanup",
@@ -80077,18 +80090,18 @@ var N8 = [
"follow-manage": "follow",
quality: "quality",
activity: "activity"
-}, L8 = [
+}, z8 = [
["0", "不限时间"],
["7", "最近 7 天"],
["30", "最近 30 天"],
["90", "最近 90 天"]
];
// src/react/index/index-controller.ts
-function R8({ kind: e, q: t, scope: n, view: r, category: i }) {
+function B8({ kind: e, q: t, scope: n, view: r, category: i }) {
let a = new URLSearchParams();
return t && a.set("q", t), e === "tags" && (a.set("view", r), n === "online" && a.set("scope", n), i !== "all" && a.set("category", i)), e === "performers" && n === "online" && a.set("scope", n), e === "performers" && n !== "online" && i !== "all" && a.set("category", i), `/${e}` + (a.size ? `?${a}` : "");
}
-function z8(e, t, n) {
+function V8(e, t, n) {
let r = e.entity_id || e.id, i = t === "studio" || t === "agency";
return {
html: _o(e.k, r ? {
@@ -80101,20 +80114,20 @@ function z8(e, t, n) {
face: yo(e.avatar_focus)
};
}
-function B8(e) {
+function H8(e) {
let t = String(e.k || ""), n = (t.match(/[A-Za-z0-9]/)?.[0] || Array.from(t)[0] || "?").toUpperCase(), r = e.avatar ? `<img src="${z(e.avatar)}" alt="" loading="lazy" referrerpolicy="no-referrer" ${Va({ fallbacks: [e.avatar_fallback || ""] })}>` : "";
return `<span class="ini">${z(n)}</span>${r}`;
}
-function OLe(e) {
+function jLe(e) {
let t = (t) => {
e.adoptFollowView(t), e.hideIndex(), e.openPage(ka(t));
};
return {
route(t, { replace: n = !1 } = {}) {
- e.route(R8(t), n);
+ e.route(B8(t), n);
},
- personAvatar: z8,
- authorAvatar: B8,
+ personAvatar: V8,
+ authorAvatar: H8,
openFollowAuthor(n) {
t(Aa(e.followView(), n));
},
@@ -80124,7 +80137,7 @@ function OLe(e) {
};
}
// src/application/effects.ts
-var V8 = class {
+var U8 = class {
cleanups = /* @__PURE__ */ new Set();
active = !0;
disposed = !1;
@@ -80205,12 +80218,12 @@ var V8 = class {
}
if (e.length) throw AggregateError(e, "应用资源清理未全部完成");
}
-}, H8 = new V8();
-function kLe() {
- return H8.dispose(), H8 = new V8(), H8;
+}, W8 = new U8();
+function MLe() {
+ return W8.dispose(), W8 = new U8(), W8;
}
// src/application/source-action.ts
-function ALe(e) {
+function NLe(e) {
return async (t, n, { button: r = null } = {}) => {
if (r?.getAttribute("aria-busy") === "true") return;
let i = r?.innerHTML ?? "", a = r?.textContent?.trim() ?? "";
@@ -80225,36 +80238,36 @@ function ALe(e) {
};
}
// src/react/entity-page/entity-route.ts
-var U8 = () => Object.fromEntries(OX.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));
-function W8(e, t) {
- let n = new URLSearchParams(e), r = U8();
- for (let e of OX) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");
+var G8 = () => Object.fromEntries(AX.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));
+function K8(e, t) {
+ let n = new URLSearchParams(e), r = G8();
+ for (let e of AX) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");
return {
...r,
- ...Pj(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
+ ...Ij(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
};
}
-function G8(e) {
+function q8(e) {
let t = new URLSearchParams();
- for (let n of OX) !e[n] || n === "sort" && e[n] === "new" || n === "dir" && e[n] === jj(e.sort || "") || t.set(n, e[n]);
+ for (let n of AX) !e[n] || n === "sort" && e[n] === "new" || n === "dir" && e[n] === Nj(e.sort || "") || t.set(n, e[n]);
return t.toString();
}
-function K8(e) {
+function J8(e) {
let t = new URLSearchParams(e), n = t.get("set") || "", r = t.get("media");
return {
media: r === "photos" || r === "online" ? r : "videos",
set: r === "photos" && /^\d+$/.test(n) ? Number(n) : 0
};
}
-function q8(e, t) {
- let n = new URLSearchParams(G8(e));
+function Y8(e, t) {
+ let n = new URLSearchParams(q8(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 jLe(e, t, n, r) {
- let i = q8(n, r);
+function PLe(e, t, n, r) {
+ let i = Y8(n, r);
return Pn(e, t) + (i ? `?${i}` : "");
}
-function MLe() {
+function FLe() {
let e = "";
return {
fresh(t, n) {
@@ -80263,22 +80276,22 @@ function MLe() {
read(t, n, r, i) {
let a = e === Pn(t, n) && !r;
e = "";
- let o = a ? U8() : { ...W8(r, i) };
+ let o = a ? G8() : { ...K8(r, i) };
return t === "creator" && (o.creator = ""), {
filters: o,
media: a ? {
media: "videos",
set: 0
- } : K8(r)
+ } : J8(r)
};
}
};
}
// src/react/entity-page/photo-surface.ts
-function NLe(e, t) {
+function ILe(e, t) {
return e.entityWall && e.entityCurrent && e.indexVisible || e.pathname === "/follow" && e.followMedia === "images" && e.statsVisible ? !0 : t();
}
-function PLe(e) {
+function LLe(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);
@@ -80300,12 +80313,12 @@ function PLe(e) {
};
}
// src/react/entity-page/entity-controller.ts
-function FLe(e, t, n) {
+function RLe(e, t, n) {
let r = (t, n, r, i = {
media: "videos",
set: 0
}, { push: a = !0 } = {}) => {
- if (a && e.route(jLe(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
+ if (a && e.route(PLe(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
e.releaseBodyPreviews();
let o = e.state();
return e.push({
@@ -80319,7 +80332,7 @@ function FLe(e, t, n) {
if (s) return s;
let c = () => {
let n = e.context();
- return n?.kind === t && n.name === a ? n.filters : U8();
+ return n?.kind === t && n.name === a ? n.filters : G8();
}, l = {
...n,
route: (e, n) => {
@@ -80332,7 +80345,7 @@ function FLe(e, t, n) {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let n = c(), i = Mj(e, n.sort || "new", n.dir || "");
+ let n = c(), i = Pj(e, n.sort || "new", n.dir || "");
i && r(t, a, {
...n,
...i
@@ -80383,7 +80396,7 @@ function FLe(e, t, n) {
};
}
// src/react/entity-page/entity-loading.ts
-function ILe(e) {
+function zLe(e) {
return async (t, n, r) => {
e.paintSkeleton(t, n), e.resetView(), e.shapesReady(t, n) || e.waitShapes().then(() => {
r() && e.syncParts(t, n);
@@ -80393,7 +80406,7 @@ function ILe(e) {
};
}
// src/react/entity-page/entity-portrait.ts
-function LLe(e, t) {
+function BLe(e, t) {
let n = e === "studio" || e === "agency", r = t.id ? go({
kind: e,
id: t.id,
@@ -80415,11 +80428,11 @@ function LLe(e, t) {
return r || (i?.avatar ? `<img src="${z(i.avatar)}" alt="${z(t.canonical_name)}" referrerpolicy="no-referrer" ${Va({ fallbacks: [i.avatar_fallback || ""] })}>` : "");
}
// src/react/entity-page/entity-application.ts
-function RLe(e) {
- let t = MLe(), n = {
+function VLe(e) {
+ let t = FLe(), n = {
...e.helpers,
- portraitImg: LLe
- }, r = FLe(e.controller, n, e.actions);
+ portraitImg: BLe
+ }, r = RLe(e.controller, n, e.actions);
return {
...r,
helpers: n,
@@ -80428,12 +80441,12 @@ function RLe(e) {
let { filters: o, media: s } = t.read(n, i, a, e.sortPreference());
return r.props(n, i, o, s);
},
- loading: ILe(e.loading),
- photos: PLe(e.photos)
+ loading: zLe(e.loading),
+ photos: LLe(e.photos)
};
}
// src/card-art/feed-identity.ts
-function zLe(e) {
+function HLe(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="${z(e.code)}" data-actor="${z(t.source_actor_id)}" data-name="${z(t.name)}"` : "", i = n ? "" : _o(t.name, t, null);
return "id" in t && t.id ? `<a class="mav"${r} href="${z(Pn("performer", t.name, t.id))}" aria-label="打开女优页:${z(t.name)}">${i}</a>` : `<span class="mav"${r} title="${z(t.name)}">${i}</span>`;
@@ -80441,7 +80454,7 @@ function zLe(e) {
return r.length > 1 ? `<div class="mavstack">${i}</div>` : i;
}
// src/application/feed.js
-var J8 = {
+var X8 = {
FEED_SKELETON_CARDS: void 0,
feedNewSkeletonHtml: void 0,
entityShapes: void 0,
@@ -80457,56 +80470,56 @@ var J8 = {
feedNewActions: void 0,
HERO_WIDE_PX: void 0
};
-function Y8(e) {
+function Z8(e) {
return e.has_cover ? So(e, "big") : !e.cover_url || !e.code ? e.cover_fetching ? `<span class="nopic" data-feed-cover-state="fetching">${Hs("抓取中")}</span>` : "<span class=\"nopic\" data-feed-cover-state=\"missing\">无封面</span>" : So(e, "big").replace(/ src="[^"]*"/, ` src="${z(fo(e))}" data-panel-prior="1"`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"封面未取得\" data-drop-class=\"nopic\"");
}
-function BLe(e) {
- let t = [e.performers && `<span class="feednewperformers" title="${z(e.performers)}">${z(e.performers)}</span>`, e.release_date && `<span>${z(e.release_date)}</span>`].filter(Boolean).join(""), n = Y8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? BI({
+function ULe(e) {
+ let t = [e.performers && `<span class="feednewperformers" title="${z(e.performers)}">${z(e.performers)}</span>`, e.release_date && `<span>${z(e.release_date)}</span>`].filter(Boolean).join(""), n = Z8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? HI({
is_jav: !0,
code: e.code,
name: e.code,
display_title: e.title || ""
}) : z(r), a = e.code ? `<a class="feednewopen" href="/works/${encodeURIComponent(e.code)}" aria-label="打开 ${z(r)} 的作品详情"></a>` : "";
return `<article class="card feednewcard${e.read ? " isread" : ""}" data-feed-id="${e.id}">
- ${a}<div class="pic" style="--card-ratio:${cM}">${n}
+ ${a}<div class="pic" style="--card-ratio:${uM}">${n}
<div class="hovertools feednewtools">
<button type="button" data-feed-action="${e.wanted ? "unwant" : "want"}" aria-pressed="${!!e.wanted}" title="${e.wanted ? "取消想要" : "想要"}" aria-label="想要 ${z(r)}">${R("star")}</button>
<button type="button" data-feed-action="ignore" title="不想看" aria-label="不想看 ${z(r)}">${R("x")}</button>
<button type="button" data-feed-action="read" title="标为已看过" aria-label="标为已看过 ${z(r)}">${R("check")}</button></div></div>
- <div class="meta">${zLe(e)}<div class="mtext"><span class="t">${i}</span>
+ <div class="meta">${HLe(e)}<div class="mtext"><span class="t">${i}</span>
<div class="s mono">${t || (e.title ? "" : "资料还没取到")}</div></div></div></article>`;
}
-function VLe() {
+function WLe() {
let e = document.getElementById("peach-entity-shape");
if (e) try {
let t = JSON.parse(e.textContent || "null");
if (!t?.id || typeof t.kind != "string" || !Array.isArray(t.names) || !Array.isArray(t.parts)) return;
- J8.entityShapes = new Map([String(t.id), ...t.names].map((e) => [`${t.kind}/${Un(e)}`, t.parts]));
+ X8.entityShapes = new Map([String(t.id), ...t.names].map((e) => [`${t.kind}/${Un(e)}`, t.parts]));
} catch {}
}
-async function X8() {
- let e = H8, t = await Tn("/api/entity/shapes", { signal: e.signal }).catch(() => null);
- return e.isActive && t && !t.error && (J8.entityShapesComplete = !0, J8.entityShapes = new Map((t.entities || []).flatMap((e) => [String(e.id), ...e.names].map((t) => [`${e.kind}/${Un(t)}`, e.parts]))), typeof t.home?.feed == "boolean" && Q8(t.home.feed), n5(location.pathname) && $8(L("#feedNew"))), J8.entityShapes;
+async function Q8() {
+ let e = W8, t = await Tn("/api/entity/shapes", { signal: e.signal }).catch(() => null);
+ return e.isActive && t && !t.error && (X8.entityShapesComplete = !0, X8.entityShapes = new Map((t.entities || []).flatMap((e) => [String(e.id), ...e.names].map((t) => [`${e.kind}/${Un(t)}`, e.parts]))), typeof t.home?.feed == "boolean" && e5(t.home.feed), i5(location.pathname) && t5(L("#feedNew"))), X8.entityShapes;
}
-var Z8 = "peach.home-feed.v1";
-function Q8(e) {
+var $8 = "peach.home-feed.v1";
+function e5(e) {
X.homeHasFeed = e;
try {
- localStorage.setItem(Z8, e ? "1" : "0");
+ localStorage.setItem($8, e ? "1" : "0");
} catch {}
}
-function HLe() {
+function GLe() {
try {
- let e = localStorage.getItem(Z8);
+ let e = localStorage.getItem($8);
return e === "1" || e !== "0" && null;
} catch {
return null;
}
}
-function $8(e) {
- !e || up(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = J8.feedNewSkeletonHtml())));
+function t5(e) {
+ !e || hp(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = X8.feedNewSkeletonHtml())));
}
-function ULe(e, t) {
+function KLe(e, t) {
return !(e > 0) || !t.some((e) => !e.has_cover) ? "" : zs(`${e} 部新作的封面连不上 DMM 图片主机,中国移动宽带常见。把 DMM / FANZA 的连接方式设成 Peach 代理,下一轮会自动重取。`, {
variant: "warning",
className: "feednetwork",
@@ -80514,55 +80527,55 @@ function ULe(e, t) {
actionHref: "/sources"
});
}
-function e5(e, t = "") {
- let n = e && !e.error && e.items || [], r = t && n.length ? `<a class="feednewall" href="${z(t)}" style="--card-ratio:${cM}">${R("chevron-right")}<span>查看全部新作</span></a>` : "";
- return ULe(e?.cover_network, n) + `<div class="feednewrow srow">${n.map(BLe).join("")}${r}</div>`;
+function n5(e, t = "") {
+ let n = e && !e.error && e.items || [], r = t && n.length ? `<a class="feednewall" href="${z(t)}" style="--card-ratio:${uM}">${R("chevron-right")}<span>查看全部新作</span></a>` : "";
+ return KLe(e?.cover_network, n) + `<div class="feednewrow srow">${n.map(ULe).join("")}${r}</div>`;
}
-function t5(e) {
- e && (a9(e), Z.appSettings.feedAutoScroll && Bc(e));
+function r5(e) {
+ e && (s9(e), Z.appSettings.feedAutoScroll && Bc(e));
}
-function n5(e) {
+function i5(e) {
return jn(e) && e !== "/junk-files";
}
-function WLe() {
+function qLe() {
let e = L("#feedNew");
- up(e) ? e.hidden = X.homeHasFeed !== !0 : ($8(e), mp("feed-new", {
+ hp(e) ? e.hidden = X.homeHasFeed !== !0 : (t5(e), yp("feed-new", {
host: e,
- revision: J8.feedRevision,
- helpers: J8.feedNewHelpers,
- actions: J8.feedNewActions
+ revision: X8.feedRevision,
+ helpers: X8.feedNewHelpers,
+ actions: X8.feedNewActions
}, {
container: e,
- isCurrent: () => n5(location.pathname)
+ isCurrent: () => i5(location.pathname)
}));
}
-function r5() {
+function a5() {
let e = L("#feedNew");
e.querySelectorAll(".feednewrow").forEach(Vc), e.hidden = !0;
}
-function i5() {
- J8.feedRevision += 1, gp(L("#feedNew"), { revision: J8.feedRevision }), s5({ feedRevision: J8.feedRevision });
+function o5() {
+ X8.feedRevision += 1, xp(L("#feedNew"), { revision: X8.feedRevision }), l5({ feedRevision: X8.feedRevision });
}
-function GLe() {
+function JLe() {
document.querySelectorAll(".feednewrow").forEach((e) => Z.appSettings.feedAutoScroll ? Bc(e) : Vc(e));
}
-var a5 = 0;
-function KLe([e]) {
- let t = e.contentRect.width >= J8.HERO_WIDE_PX;
- cancelAnimationFrame(a5), a5 = requestAnimationFrame(() => {
- a5 = 0, L("#index")?.toggleAttribute("data-hero-wide", t);
+var s5 = 0;
+function YLe([e]) {
+ let t = e.contentRect.width >= X8.HERO_WIDE_PX;
+ cancelAnimationFrame(s5), s5 = requestAnimationFrame(() => {
+ s5 = 0, L("#index")?.toggleAttribute("data-hero-wide", t);
});
}
-function qLe() {
- J8.FEED_SKELETON_CARDS = 8, J8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" data-skeleton="feed/new" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${cM}"></div>
+function XLe() {
+ X8.FEED_SKELETON_CARDS = 8, X8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" data-skeleton="feed/new" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${uM}"></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(J8.FEED_SKELETON_CARDS)}</div>`, J8.entityShapes = null, J8.entityShapesComplete = !1, J8.hasEntityShape = (e, t) => J8.entityShapesComplete || !!J8.entityShapes?.has(`${e}/${Un(t)}`), J8.hasEntityPart = (e, t, n) => !!t && !!J8.entityShapes?.get(`${e}/${Un(t)}`)?.includes(n), J8.feedNewSkeletonSection = () => `<section class="feednew">${J8.feedNewSkeletonHtml()}</section>`, J8.COSTAR_SKELETON_PEOPLE = 12, J8.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(J8.COSTAR_SKELETON_PEOPLE)}</div></div>`, J8.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, J8.feedRevision = 0, J8.feedNewHelpers = {
- feedRowHtml: e5,
- wireFeedRow: (e) => t5(e)
- }, J8.feedNewActions = { settled: (e) => Q8(e) }, J8.HERO_WIDE_PX = 900, H8.resize(KLe).observe(L("#index"));
+ <div class="s mono"><span class="skeleton">&#8203;</span></div></div></div></article>`.repeat(X8.FEED_SKELETON_CARDS)}</div>`, X8.entityShapes = null, X8.entityShapesComplete = !1, X8.hasEntityShape = (e, t) => X8.entityShapesComplete || !!X8.entityShapes?.has(`${e}/${Un(t)}`), X8.hasEntityPart = (e, t, n) => !!t && !!X8.entityShapes?.get(`${e}/${Un(t)}`)?.includes(n), X8.feedNewSkeletonSection = () => `<section class="feednew">${X8.feedNewSkeletonHtml()}</section>`, X8.COSTAR_SKELETON_PEOPLE = 12, X8.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(X8.COSTAR_SKELETON_PEOPLE)}</div></div>`, X8.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, X8.feedRevision = 0, X8.feedNewHelpers = {
+ feedRowHtml: n5,
+ wireFeedRow: (e) => r5(e)
+ }, X8.feedNewActions = { settled: (e) => e5(e) }, X8.HERO_WIDE_PX = 900, W8.resize(YLe).observe(L("#index"));
}
// src/entity-skeleton.ts
-function JLe(e, t, n, r = "") {
+function ZLe(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">
@@ -80601,16 +80614,16 @@ var Y = {
sourceToolButtons: void 0,
application: void 0
};
-function o5() {
- let e = lp(L("#index"));
+function c5() {
+ let e = mp(L("#index"));
return e && e.path.endsWith("/*") && e.host.isConnected ? e : null;
}
-function s5(e) {
- Y.entityPageCurrent() && gp(L("#index"), e);
+function l5(e) {
+ Y.entityPageCurrent() && xp(L("#index"), e);
}
-function c5() {
+function u5() {
if (Jl.type === "item") return Jl;
- let e = o5();
+ let e = c5();
if (e) {
let { kind: t, name: n, filters: r } = e.props;
return {
@@ -80622,23 +80635,23 @@ function c5() {
}
return Jl;
}
-function l5(e, t, n = o7()) {
- return VRe(n).map(([n, r]) => {
- let i = e === n, a = Mj(n, e, t);
+function d5(e, t, n = c7()) {
+ return WRe(n).map(([n, r]) => {
+ let i = e === n, a = Pj(n, e, t);
return {
key: n,
label: r,
pressed: i,
- dir: i && Aj(n, t) ? t === "asc" ? "asc" : "desc" : "",
- ariaLabel: a ? `按${r}${a.dir ? Aj(a.sort, a.dir) : ""}排序` : ""
+ dir: i && Mj(n, t) ? t === "asc" ? "asc" : "desc" : "",
+ ariaLabel: a ? `按${r}${a.dir ? Mj(a.sort, a.dir) : ""}排序` : ""
};
});
}
-function u5(e, t, n, r = Y.EMPTY_ENTITY_MEDIA, i = {}) {
+function f5(e, t, n, r = Y.EMPTY_ENTITY_MEDIA, i = {}) {
return Y.application.route(e, t, n, r, i);
}
-function d5() {
- return NLe({
+function p5() {
+ return ILe({
entityWall: Y.entityPageWall,
entityCurrent: Y.entityPageCurrent(),
indexVisible: !L("#index").hidden,
@@ -80647,37 +80660,37 @@ function d5() {
statsVisible: !L("#stats").hidden
}, () => [...document.querySelectorAll(".followphotowall")].some((e) => e.getClientRects().length > 0));
}
-function f5() {
+function m5() {
Y.photos.sync();
}
-function p5() {
- d5() ? Lle(mM()) : DM();
+function h5() {
+ p5() ? Ble(gM()) : kM();
}
-function YLe(e) {
+function QLe(e) {
Y.photos.setSize(e);
}
-var m5 = ALe({
+var g5 = NLe({
request: (e) => Tn("/api/reveal", {
method: "POST",
body: JSON.stringify({ id: e })
}),
- success: () => E8.toast({ text: "已在资源管理器中显示" }),
+ success: () => O8.toast({ text: "已在资源管理器中显示" }),
failureText: (e) => Y.sourceHint(e instanceof Error ? e.message : String(e))
});
-async function h5(e) {
+async function _5(e) {
let t = { textContent: "" };
- return await m5(e, t), t.textContent;
+ return await g5(e, t), t.textContent;
}
-async function XLe(e) {
+async function $Le(e) {
let t = { textContent: "" }, n = [];
- return await g5(e, t, (e) => {
+ return await v5(e, t, (e) => {
e.items && (n = e.items.map((e) => e.id));
}), {
text: t.textContent,
removed: n
};
}
-async function g5(e, t, n) {
+async function v5(e, t, n) {
t.textContent = "正在核对目录…";
try {
let r = await Tn("/api/purge-missing", {
@@ -80690,7 +80703,7 @@ async function g5(e, t, n) {
}
if (t.textContent = r.removed ? `${Y.syncedText(r)}(核对 ${r.checked} 项${r.unreadable ? `,${r.unreadable} 项未能读取` : ""})` : r.unreadable ? `目录有 ${r.unreadable} 项暂时无法读取,本次未改动` : `目录内 ${r.checked} 项都还在,无需改动`, r.removed) {
let e = (r.items || []).filter((e) => e.disposal !== "reattached").map((e) => e.id);
- n && n(r), E8.actionReceipt(Y.syncedText(r), { undo: e.length ? async () => {
+ n && n(r), O8.actionReceipt(Y.syncedText(r), { undo: e.length ? async () => {
await Tn("/api/batch", {
method: "POST",
body: JSON.stringify({
@@ -80702,22 +80715,22 @@ async function g5(e, t, n) {
restored: e.length
});
} : null });
- } else E8.actionReceipt("目录核对完成,无需改动");
+ } else O8.actionReceipt("目录核对完成,无需改动");
} catch (e) {
- t.textContent = Y.sourceHint(e.message), E8.actionFailure("核对目录", e);
+ t.textContent = Y.sourceHint(e.message), O8.actionFailure("核对目录", e);
}
}
-function ZLe(e) {
+function eRe(e) {
return `<div class="srctools">${Y.sourceToolButtons(e)}
<span class="srcstate" aria-live="polite"></span></div>`;
}
-function QLe(e, t) {
+function tRe(e, t) {
let n = e.querySelector(".srcstate");
if (!n) return;
let r = e.querySelector("[data-reveal]"), i = e.querySelector("[data-sync]");
- r && H8.handler(r, "onclick", () => m5(Number(r.dataset.reveal), n, { button: r })), i && H8.handler(i, "onclick", () => g5(Number(i.dataset.sync), n, t));
+ r && W8.handler(r, "onclick", () => g5(Number(r.dataset.reveal), n, { button: r })), i && W8.handler(i, "onclick", () => v5(Number(i.dataset.sync), n, t));
}
-async function $Le(e, t) {
+async function nRe(e, t) {
let n = sl({
title: "添加别名",
description: "图库按名字查找图片,添加别名可能找到更多备选图片;也可以将别名设为统一显示的名称。",
@@ -80729,9 +80742,9 @@ async function $Le(e, t) {
confirmDisabled: !0,
onConfirm: () => t({ alias: r.value.trim() })
}), r = n.dialog.querySelector("[name=alias]");
- H8.handler(r, "oninput", () => {
+ W8.handler(r, "oninput", () => {
n.confirmButton.disabled = !r.value.trim();
- }), n.dialog.querySelectorAll("[data-alias-drop]").forEach((e) => H8.handler(e, "onclick", async () => {
+ }), n.dialog.querySelectorAll("[data-alias-drop]").forEach((e) => W8.handler(e, "onclick", async () => {
let r = e.dataset.aliasDrop;
n.close();
try {
@@ -80740,53 +80753,53 @@ async function $Le(e, t) {
remove: !0
});
} catch (e) {
- E8.actionFailure("撤销别名", e);
+ O8.actionFailure("撤销别名", e);
return;
}
- E8.actionReceipt(`已撤销别名 ${r}`, { undo: async () => {
+ O8.actionReceipt(`已撤销别名 ${r}`, { undo: async () => {
await t({ alias: r });
} });
}));
let { confirmed: i, result: a } = await n.done;
- i && (a?.added ? E8.actionReceipt(`已添加别名 ${a.alias}`, { undo: async () => {
+ i && (a?.added ? O8.actionReceipt(`已添加别名 ${a.alias}`, { undo: async () => {
await t({
alias: a.alias,
remove: !0
});
- } }) : E8.actionReceipt(`${a?.alias} 已经是这份档案中的名字`));
+ } }) : O8.actionReceipt(`${a?.alias} 已经是这份档案中的名字`));
}
-function _5(e, t) {
- let n = ["performer", "studio"].includes(e) && J8.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>${Es()}${e === "agency" ? "" : j0(l5(U.sort, U.dir, n), n ? {
+function y5(e, t) {
+ let n = ["performer", "studio"].includes(e) && X8.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>${Es()}${e === "agency" ? "" : N0(d5(U.sort, U.dir, n), n ? {
name: "jav-layout",
label: "JAV 卡片版式",
- value: uM(),
- options: aM
- } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${k0}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${k0}>${R("pics")}</button></div><span data-entity-sep></span><div data-entity-scroll><div data-entity-states>${X.catalogViews().map((e) => `<button type="button" data-entity-state="${z(e.k)}" aria-pressed="${U.state === e.k}" ${k0}>${z(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = JLe(e, r, e === "agency" ? oc({
+ value: fM(),
+ options: sM
+ } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${j0}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${j0}>${R("pics")}</button></div><span data-entity-sep></span><div data-entity-scroll><div data-entity-states>${X.catalogViews().map((e) => `<button type="button" data-entity-state="${z(e.k)}" aria-pressed="${U.state === e.k}" ${j0}>${z(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = ZLe(e, r, e === "agency" ? oc({
kind: "performers",
- layout: N5.peopleIndexLayout()
- }) : FJ("正在读取作品", vM(_M({
+ layout: F5.peopleIndexLayout()
+ }) : LJ("正在读取作品", bM(yM({
active: n,
home: !1,
portrait: !1
}))), i);
- L("#index").firstElementChild?.dataset.skeleton === `entity/${e}` ? v5(e, t) : (L("#index").innerHTML = a, v5(e, t), pc(L("#index")));
+ L("#index").firstElementChild?.dataset.skeleton === `entity/${e}` ? b5(e, t) : (L("#index").innerHTML = a, b5(e, t), pc(L("#index")));
}
-function v5(e, t) {
+function b5(e, t) {
let n = L("#index").firstElementChild;
if (n?.dataset.skeleton !== `entity/${e}`) return;
let r = (e, t, n) => {
t && !e ? n() : !t && e && e.remove();
};
- r(n.querySelector(".entityfoot"), e !== "agency" && J8.hasEntityPart(e, t, "costars"), () => n.querySelector(".entityhero")?.insertAdjacentHTML("beforeend", J8.costarSkeletonFoot())), r(n.querySelector(".feednew"), J8.hasEntityPart(e, t, "feed"), () => n.querySelector(".entitysection")?.insertAdjacentHTML("beforebegin", J8.feedNewSkeletonSection())), r(n.querySelector(".entityfacts"), e === "performer" && J8.hasEntityPart(e, t, "facts"), () => n.querySelector(".entityprofile")?.insertAdjacentHTML("beforeend", J8.factsSkeleton()));
+ r(n.querySelector(".entityfoot"), e !== "agency" && X8.hasEntityPart(e, t, "costars"), () => n.querySelector(".entityhero")?.insertAdjacentHTML("beforeend", X8.costarSkeletonFoot())), r(n.querySelector(".feednew"), X8.hasEntityPart(e, t, "feed"), () => n.querySelector(".entitysection")?.insertAdjacentHTML("beforebegin", X8.feedNewSkeletonSection())), r(n.querySelector(".entityfacts"), e === "performer" && X8.hasEntityPart(e, t, "facts"), () => n.querySelector(".entityprofile")?.insertAdjacentHTML("beforeend", X8.factsSkeleton()));
}
-function y5(e) {
- let t = Mn[e] || e, n = r6[t] || "条目", r = r6[t] ? `<a class="geist-button primary" href="/${t}">返回${n}列表</a>` : "";
+function x5(e) {
+ let t = Mn[e] || e, n = a6[t] || "条目", r = a6[t] ? `<a class="geist-button primary" href="/${t}">返回${n}列表</a>` : "";
L("#index").innerHTML = Z.emptyState("search-x", `找不到这个${n}`, "名字可能拼错了,或者已经合并到别的名字下;回列表里重新找。", { actions: r });
}
-function b5(e, t) {
- C9(Y.application.fresh(e, t));
+function S5(e, t) {
+ T9(Y.application.fresh(e, t));
}
-function eRe() {
+function rRe() {
Y.ENTITY_FILTER_KEYS = [
"loc",
"creator",
@@ -80798,40 +80811,40 @@ function eRe() {
"year",
"sort",
"dir"
- ], Y.emptyEntityFilters = U8, Y.parseEntityFilters = (e) => W8(e, {
+ ], Y.emptyEntityFilters = G8, Y.parseEntityFilters = (e) => K8(e, {
sort: Z.appSettings.defaultSort,
dir: Z.appSettings.defaultSortDirection
- }), Y.entityFilterSearch = G8, Y.cloneBarsContext = (e) => e && e.type === "entity" ? {
+ }), Y.entityFilterSearch = q8, Y.cloneBarsContext = (e) => e && e.type === "entity" ? {
...e,
filters: { ...e.filters }
} : e, Y.activeFilterState = () => {
- let e = c5();
+ let e = u5();
return e.type === "home" ? U : e.filters;
}, L("#q").value = U.q, X.rememberSearchValue();
}
-function tRe() {
- Y.entityPageView = "", Y.entityPageWall = !1, Y.entityPageRevision = 0, Y.entityPageCurrent = () => !!o5(), Y.entityPageLive = (e, t) => {
- let n = o5();
+function iRe() {
+ Y.entityPageView = "", Y.entityPageWall = !1, Y.entityPageRevision = 0, Y.entityPageCurrent = () => !!c5(), Y.entityPageLive = (e, t) => {
+ let n = c5();
return !!n && !L("#index").hidden && n.props.kind === e && n.props.name === t;
}, Y.EMPTY_ENTITY_MEDIA = {
media: "videos",
set: 0
- }, Y.parseMediaView = K8, Y.entityViewSearch = q8, Y.entityBodyCanLoadMore = () => !L("#index").hidden && L("#stats").hidden, Y.entityBodySkeleton = () => Y7(), Y.entityPageHelpers = {
+ }, Y.parseMediaView = J8, Y.entityViewSearch = Y8, Y.entityBodyCanLoadMore = () => !L("#index").hidden && L("#stats").hidden, Y.entityBodySkeleton = () => Z7(), Y.entityPageHelpers = {
wireDrag: (e) => {
- e && a9(e);
+ e && s9(e);
},
wireScroller: (e) => {
e && Ac(e);
},
- wireFeedRow: (e) => t5(e),
- feedRowHtml: e5,
- receipt: (e, t) => E8.actionReceipt(e, t),
- failure: (e, t) => E8.actionFailure(e, t),
- aliasForm: (e, t) => $Le(e, t),
- sourceToolsHtml: (e) => ZLe(e),
- wireSourceTools: (e, t) => QLe(e, t),
- comboItems: (e) => R7(e),
- sortKeys: (e, t, n) => l5(e, t, n)
+ wireFeedRow: (e) => r5(e),
+ feedRowHtml: n5,
+ receipt: (e, t) => O8.actionReceipt(e, t),
+ failure: (e, t) => O8.actionFailure(e, t),
+ aliasForm: (e, t) => nRe(e, t),
+ sourceToolsHtml: (e) => eRe(e),
+ wireSourceTools: (e, t) => tRe(e, t),
+ comboItems: (e) => B7(e),
+ sortKeys: (e, t, n) => d5(e, t, n)
}, Y.entityFollowActions = {
...$.followFeedActions,
route: () => {},
@@ -80854,11 +80867,11 @@ function tRe() {
<button type="button" data-sync="${e}" title="核对该目录:磁盘上已删除的移入 Peach 回收站,带个人记录的标为已消失"
aria-label="同步删除">${R("folder-sync")}</button>`;
}
-function nRe() {
- Y.application = RLe({
+function aRe() {
+ Y.application = VLe({
controller: {
context: () => {
- let e = c5();
+ let e = u5();
return e.type === "entity" ? e : null;
},
live: (e, t) => Y.entityPageLive(e, t),
@@ -80870,28 +80883,28 @@ function nRe() {
filters: U
} }),
releaseBodyPreviews: () => Nl(L("#index [data-entity-body]")),
- push: s5,
+ push: l5,
state: () => ({
seed: String(U.seed || ""),
jav: U.jav === "1"
}),
preferences: () => ({
revision: Y.entityPageRevision,
- feedRevision: J8.feedRevision,
- photoSize: mM(),
- photoLayout: hM(),
- photoLayouts: sM,
+ feedRevision: X8.feedRevision,
+ photoSize: gM(),
+ photoLayout: _M(),
+ photoLayouts: lM,
followImagesOnly: !!Z.appSettings.followImagesOnly,
- javLayout: uM(),
- javLayouts: aM,
+ javLayout: fM(),
+ javLayouts: sM,
states: X.VIEW_PILLS,
- peopleLayout: N5.peopleIndexLayout(),
- layout: J7(),
+ peopleLayout: F5.peopleIndexLayout(),
+ layout: X7(),
selectMode: Ql,
selected: new Set(Xl),
seekSeconds: Z.appSettings.seekSeconds,
groupCollapse: Z.appSettings.groupCollapse,
- wireDrag: a9,
+ wireDrag: s9,
skeletonHtml: Y.entityBodySkeleton,
canLoadMore: Y.entityBodyCanLoadMore,
follow: {
@@ -80899,52 +80912,52 @@ function nRe() {
actions: Y.entityFollowActions
}
}),
- changeFilter: T7,
- rollSeed: () => E8.rollSeed(),
+ changeFilter: D7,
+ rollSeed: () => O8.rollSeed(),
writeSeed: (e) => {
U.seed = e, Su();
},
- setJavLayout: l7,
- javLayout: uM,
- setPhotoLayout: bM,
- syncPhotoWalls: f5,
- openEntity: b5,
- photoViewActive: d5,
+ setJavLayout: d7,
+ javLayout: fM,
+ setPhotoLayout: SM,
+ syncPhotoWalls: m5,
+ openEntity: S5,
+ photoViewActive: p5,
recordPainted: (e, t) => {
Y.entityPageView = e, Y.entityPageWall = t;
},
- syncDensity: p5,
- scheduleSticky: g7,
- releasePage: () => _p(L("#index")),
- showMissing: y5,
- dropBars: M8
+ syncDensity: h5,
+ scheduleSticky: v7,
+ releasePage: () => Sp(L("#index")),
+ showMissing: x5,
+ dropBars: P8
},
loading: {
- shapesReady: (e, t) => J8.hasEntityShape(e, t),
- waitShapes: B5,
- paintSkeleton: _5,
+ shapesReady: (e, t) => X8.hasEntityShape(e, t),
+ waitShapes: H5,
+ paintSkeleton: y5,
resetView: () => {
W({ detailReturnBarsContext: null }), Y.entityPageView = "", Y.entityPageWall = !1;
},
- loadShapes: X8,
- syncParts: v5
+ loadShapes: Q8,
+ syncParts: b5
},
photos: {
preferences: () => ({
- size: mM(),
- layout: hM(),
+ size: gM(),
+ layout: _M(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
walls: () => document.querySelectorAll(".followphotowall"),
- pushEntity: s5,
- pushFollow: O9,
- syncDensity: p5,
- storeSize: Fle
+ pushEntity: l5,
+ pushFollow: A9,
+ syncDensity: h5,
+ storeSize: Rle
},
helpers: Y.entityPageHelpers,
actions: {
- toggleTag: L7,
- openFollowAuthor: I5,
+ toggleTag: z7,
+ openFollowAuthor: R5,
javContext: (e) => W({ entityJavLayout: !!e })
},
sortPreference: () => ({
@@ -80954,8 +80967,8 @@ function nRe() {
}), Y.photos = Y.application.photos, Y.entityPageHelpers = Y.application.helpers;
}
// src/application/playlists.js
-var x5 = { playlistWrite: void 0 };
-function rRe(e, t) {
+var C5 = { playlistWrite: void 0 };
+function oRe(e, t) {
e === "tag" ? (W({ state: {
...U,
tag: t,
@@ -80965,17 +80978,17 @@ function rRe(e, t) {
q: "",
state: "",
orient: ""
- } }), X.clearSearchField(), Q.route(v7()), G5(), F7()) : b5(e, t);
+ } }), X.clearSearchField(), Q.route(b7()), q5(), L7()) : S5(e, t);
}
-function S5(e = "") {
+function w5(e = "") {
return `<label class="modalfield"><span>名称</span><input class="geist-input" name="name"
maxlength="80" placeholder="输入名称" value="${z(e)}"></label>`;
}
-async function iRe({ title: e, count: t, save: n }) {
+async function sRe({ title: e, count: t, save: n }) {
let r = sl({
title: "保存为播放列表",
description: `这个 Mix 的 ${t} 个视频会存成一份可以继续播放的列表。`,
- body: S5(e),
+ body: w5(e),
confirmLabel: "保存为播放列表",
onConfirm: () => {
let e = r.dialog.querySelector("[name=\"name\"]").value.trim();
@@ -80985,28 +80998,28 @@ async function iRe({ title: e, count: t, save: n }) {
});
r.dialog.querySelector("[name=\"name\"]").select();
let { confirmed: i, result: a } = await r.done;
- i && (await d9(a.id, a.current_asset_id, !0), E8.actionReceipt("已保存为播放列表", { undo: async () => {
- await x5.playlistWrite({
+ i && (await p9(a.id, a.current_asset_id, !0), O8.actionReceipt("已保存为播放列表", { undo: async () => {
+ await C5.playlistWrite({
action: "delete",
id: a.id
- }), C9("/playlists");
+ }), T9("/playlists");
} }));
}
-async function aRe(e) {
+async function cRe(e) {
let t = ((await Tn("/api/playlists")).items || []).map((e) => `<label class="pickrow">${Gs(`data-pick-playlist="${e.id}"`)}
<span class="pickrowtext"><b>${z(e.name)}</b><small>${e.item_count} 个视频</small></span></label>`).join(""), n = sl({
title: "加入播放列表",
description: "勾选要加入的列表,或者填个名称新建一份。",
- body: S5() + (t ? `<div class="picklist" role="group" aria-label="已有播放列表">${t}</div>` : zs("还没有播放列表,填个名称就能新建一份。", { size: "small" })),
+ body: w5() + (t ? `<div class="picklist" role="group" aria-label="已有播放列表">${t}</div>` : zs("还没有播放列表,填个名称就能新建一份。", { size: "small" })),
confirmLabel: "保存",
confirmDisabled: !0,
onConfirm: async () => {
- let t = n.dialog.querySelector("[name=\"name\"]").value.trim(), r = [...n.dialog.querySelectorAll("[data-pick-playlist]:checked")].map((e) => +e.dataset.pickPlaylist), i = t ? (await x5.playlistWrite({
+ let t = n.dialog.querySelector("[name=\"name\"]").value.trim(), r = [...n.dialog.querySelectorAll("[data-pick-playlist]:checked")].map((e) => +e.dataset.pickPlaylist), i = t ? (await C5.playlistWrite({
action: "create",
name: t,
asset_ids: [e.id]
})).playlist : null;
- for (let t of r) await x5.playlistWrite({
+ for (let t of r) await C5.playlistWrite({
action: "add",
id: t,
asset_ids: [e.id]
@@ -81020,46 +81033,46 @@ async function aRe(e) {
let e = n.dialog.querySelector("[name=\"name\"]").value.trim();
n.confirmButton.disabled = !e && !n.dialog.querySelector("[data-pick-playlist]:checked");
};
- H8.listen(n.dialog, "input", r), H8.listen(n.dialog, "change", r);
+ W8.listen(n.dialog, "input", r), W8.listen(n.dialog, "change", r);
let { confirmed: i, result: a } = await n.done;
if (!i) return;
let o = +!!a.created + a.added.length;
- E8.actionReceipt(`已加入 ${o} 个播放列表`, { undo: async () => {
- for (let t of a.added) await x5.playlistWrite({
+ O8.actionReceipt(`已加入 ${o} 个播放列表`, { undo: async () => {
+ for (let t of a.added) await C5.playlistWrite({
action: "remove",
id: t,
asset_id: e.id
});
- a.created && await x5.playlistWrite({
+ a.created && await C5.playlistWrite({
action: "delete",
id: a.created.id
});
} });
}
-function C5() {
- Nl(), l9(!1), W5();
- let e = lp(L("#stats"));
- e?.path !== "/playlists" || !e.host.isConnected ? W({ pageOpens: pu + 1 }) : (U5({ manage: !1 }), W({ playlistsRevision: yu + 1 }));
+function T5() {
+ Nl(), d9(!1), K5();
+ let e = mp(L("#stats"));
+ e?.path !== "/playlists" || !e.host.isConnected ? W({ pageOpens: pu + 1 }) : (G5({ manage: !1 }), W({ playlistsRevision: yu + 1 }));
}
-function oRe(e) {
+function lRe(e) {
let t = new URLSearchParams(location.search);
for (let n of ["category", "queue"]) e[n] ? t.set(n, e[n]) : t.delete(n);
Q.route("/review" + (t.size ? "?" + t : ""));
}
-function w5(e) {
+function E5(e) {
W({ configurationRequestedSection: e }), Q.navigatePath(Pf(e));
}
-function sRe() {
- x5.playlistWrite = (e) => Tn("/api/playlist", {
+function uRe() {
+ C5.playlistWrite = (e) => Tn("/api/playlist", {
method: "POST",
body: JSON.stringify(e)
});
}
// src/react/catalog-grid/selection-controller.ts
-function T5(e) {
+function D5(e) {
return e === "/follow" ? "follow" : e === "/junk-files" ? "junk" : "catalog";
}
-function E5(e, t, n, r, i = !1) {
+function O5(e, t, n, r, i = !1) {
return i && (e.selected.clear(), e.followSelected.clear()), {
selectMode: r,
selectSurface: r ? t.selectMode ? t.selectSurface : n : "",
@@ -81067,23 +81080,23 @@ function E5(e, t, n, r, i = !1) {
followLastSelectedId: i ? null : t.followLastSelectedId
};
}
-function D5(e, t, n, r, i, a = !1) {
- let o = n === "follow", s = vY(o ? e.followSelected : e.selected, r, o ? t.followLastSelectedId : t.lastSelectedId, i, a);
+function k5(e, t, n, r, i, a = !1) {
+ let o = n === "follow", s = bY(o ? e.followSelected : e.selected, r, o ? t.followLastSelectedId : t.lastSelectedId, i, a);
return {
- ...E5(e, t, n, !0),
+ ...O5(e, t, n, !0),
...o ? { followLastSelectedId: s } : { lastSelectedId: s }
};
}
-function cRe(e, t, n, r) {
- let i = T5(t);
+function dRe(e, t, n, r) {
+ let i = D5(t);
return {
count: (i === "follow" ? e.followSelected : e.selected).size,
context: i === "catalog" && r === "trash" ? "trash" : i,
- junkDismissed: PU(n).view === "dismissed"
+ junkDismissed: IU(n).view === "dismissed"
};
}
// src/application/selection.js
-var O5 = {
+var A5 = {
batchDockProps: void 0,
trashCount: void 0,
currentSelectSurface: void 0,
@@ -81091,43 +81104,43 @@ var O5 = {
BATCH_RUNNERS: void 0,
coverRecheck: void 0
};
-function k5() {
- K7({
+function j5() {
+ J7({
selected: new Set(Xl),
selectMode: Ql
- }), s5({
+ }), l5({
selected: new Set(Xl),
selectMode: Ql
- }), O9({
+ }), A9({
selected: new Set(Zl),
selectMode: Ql
- }), O5.batchDockProps = vRe(), C8() && (C8().render(O5.batchDockProps), Z.syncGlassOptics());
+ }), A5.batchDockProps = xRe(), T8() && (T8().render(A5.batchDockProps), Z.syncGlassOptics());
}
-function A5(e, t = !1) {
- W(E5({
+function M5(e, t = !1) {
+ W(O5({
selected: Xl,
followSelected: Zl
- }, M5(), T5(location.pathname), !!e, t)), document.body.classList.toggle("select-mode", Ql), Ql && Nl(), L("#selectMode").setAttribute("aria-pressed", String(Ql)), k5();
+ }, P5(), D5(location.pathname), !!e, t)), document.body.classList.toggle("select-mode", Ql), Ql && Nl(), L("#selectMode").setAttribute("aria-pressed", String(Ql)), j5();
}
-function lRe() {
- return [...L5.gridCards()].map((e) => +e.dataset.id);
+function fRe() {
+ return [...z5.gridCards()].map((e) => +e.dataset.id);
}
-function j5(e, t = !1) {
- W(D5({
+function N5(e, t = !1) {
+ W(k5({
selected: Xl,
followSelected: Zl
- }, M5(), T5(location.pathname), lRe(), e, t)), A5(!0);
+ }, P5(), D5(location.pathname), fRe(), e, t)), M5(!0);
}
-function uRe() {
+function pRe() {
return [...document.querySelectorAll("[data-follow-list] > [data-follow-item]")].map((e) => +e.dataset.followItem);
}
-function dRe(e, t = !1) {
- W(D5({
+function mRe(e, t = !1) {
+ W(k5({
selected: Xl,
followSelected: Zl
- }, M5(), "follow", uRe(), e, t)), A5(!0);
+ }, P5(), "follow", pRe(), e, t)), M5(!0);
}
-async function fRe(e, t) {
+async function hRe(e, t) {
let n = {
like: "喜欢",
seen: "标为看过",
@@ -81159,9 +81172,9 @@ async function fRe(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"));
- A5(!1, !0), await d7();
+ M5(!1, !0), await p7();
let r = e === "dispose" ? "restore" : e === "restore" ? "dispose" : null;
- E8.actionReceipt(`已${n[e]} ${i.length} 项`, { undo: r ? async () => {
+ O8.actionReceipt(`已${n[e]} ${i.length} 项`, { undo: r ? async () => {
if (r === "dispose" && t.restored_reasons) for (let e of [
null,
"manual",
@@ -81186,23 +81199,23 @@ async function fRe(e, t) {
operation: r
})
});
- await d7();
+ await p7();
} : null });
} catch (e) {
throw Xc(t, !1), e;
} finally {
- Xc(t, !1), k5();
+ Xc(t, !1), j5();
}
}
});
}
-async function pRe() {
+async function gRe() {
let e = [...Xl];
if (!e.length) return;
let t = sl({
title: "判定产地",
description: `选中的 ${e.length} 项归为同一个产地。判定之后,刮削和自动推断不再改写产地。`,
- body: "<div class=\"chips\" role=\"group\" aria-label=\"产地\">" + O5.REGION_CHOICES.map(([e, t]) => `<button type="button" class="chip" aria-pressed="false" data-region-pick="${e}">
+ body: "<div class=\"chips\" role=\"group\" aria-label=\"产地\">" + A5.REGION_CHOICES.map(([e, t]) => `<button type="button" class="chip" aria-pressed="false" data-region-pick="${e}">
<span class="chip-label">${t}</span></button>`).join("") + "</div>",
confirmLabel: "判定产地",
confirmDisabled: !0,
@@ -81222,13 +81235,13 @@ async function pRe() {
};
}
});
- t.dialog.querySelectorAll("[data-region-pick]").forEach((e) => H8.handler(e, "onclick", () => {
+ t.dialog.querySelectorAll("[data-region-pick]").forEach((e) => W8.handler(e, "onclick", () => {
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 && (A5(!1, !0), await d7(), E8.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));
+ n && (M5(!1, !0), await p7(), O8.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));
}
-async function mRe(e, t) {
+async function _Re(e, t) {
let n = [...Zl];
if (!n.length) return;
let r = {
@@ -81254,16 +81267,16 @@ async function mRe(e, t) {
items: n,
to: e
})
- }), A5(!1, !0), location.pathname === "/follow" && W({ pageOpens: pu + 1 }), E8.actionReceipt(`已${r[e]} ${n.length} 项`);
+ }), M5(!1, !0), location.pathname === "/follow" && W({ pageOpens: pu + 1 }), O8.actionReceipt(`已${r[e]} ${n.length} 项`);
} catch (e) {
throw Xc(t, !1), e;
} finally {
- Xc(t, !1), k5();
+ Xc(t, !1), j5();
}
}
});
}
-async function hRe(e, t) {
+async function vRe(e, t) {
let n = [...Xl];
if (!n.length) return;
let r = {
@@ -81290,68 +81303,68 @@ async function hRe(e, t) {
operation: e,
...e === "dispose" ? { disposal_reason: "junk" } : {}
})
- }), A5(!1, !0), await B7();
+ }), M5(!1, !0), await H7();
let t = e === "dispose" ? "restore" : e === "dismiss-junk" ? "reconsider-junk" : e === "reconsider-junk" ? "dismiss-junk" : null;
- E8.actionReceipt(`已批量${r[e]}:${n.length} 项`, { undo: t ? async () => {
+ O8.actionReceipt(`已批量${r[e]}:${n.length} 项`, { undo: t ? async () => {
await Tn("/api/batch", {
method: "POST",
body: JSON.stringify({
ids: n,
operation: t
})
- }), await B7();
+ }), await H7();
} : null });
} catch (e) {
throw Xc(t, !1), e;
} finally {
- Xc(t, !1), k5();
+ Xc(t, !1), j5();
}
}
});
}
-function gRe() {
- dLe({
+function yRe() {
+ mLe({
root: L("[data-batch-dock]"),
run: (e, t, n) => {
- O5.BATCH_RUNNERS[e]?.(t, n);
+ A5.BATCH_RUNNERS[e]?.(t, n);
}
}).then((e) => {
- e.render(O5.batchDockProps), Z.syncGlassOptics();
+ e.render(A5.batchDockProps), Z.syncGlassOptics();
}).catch(() => {});
}
-function _Re() {
- O5.batchDockProps = {
+function bRe() {
+ A5.batchDockProps = {
count: 0,
context: "catalog",
junkDismissed: !1
- }, O5.trashCount = null, O5.currentSelectSurface = () => T5(location.pathname), H8.handler(L("#selectMode"), "onclick", () => A5(!Ql, !!Ql)), O5.REGION_CHOICES = [
+ }, A5.trashCount = null, A5.currentSelectSurface = () => D5(location.pathname), W8.handler(L("#selectMode"), "onclick", () => M5(!Ql, !!Ql)), A5.REGION_CHOICES = [
["jp", "日本"],
["kr", "韩国"],
["cn", "国产"],
["west", "欧美"],
["other", "其他"],
["none", "撤回判定"]
- ], O5.BATCH_RUNNERS = {
- batch: fRe,
- region: pRe,
- follow: mRe,
- junk: hRe,
- clear: () => A5(!1, !0)
- }, H8.handler(L("#density"), "onclick", () => {
- d5() ? YLe(mM() === "big" ? "small" : "big") : Ile();
- }), DM(), jl({
+ ], A5.BATCH_RUNNERS = {
+ batch: hRe,
+ region: gRe,
+ follow: _Re,
+ junk: vRe,
+ clear: () => M5(!1, !0)
+ }, W8.handler(L("#density"), "onclick", () => {
+ p5() ? QLe(gM() === "big" ? "small" : "big") : zle();
+ }), kM(), jl({
selecting: () => Ql,
- censored: () => t9(),
+ censored: () => r9(),
delaySeconds: () => Z.appSettings.hoverDelaySeconds
- }), H8.listen(window, "pagehide", () => Nl()), H8.listen(document, "visibilitychange", () => {
+ }), W8.listen(window, "pagehide", () => Nl()), W8.listen(document, "visibilitychange", () => {
document.hidden && Nl();
- }), Ol(), O5.coverRecheck = 0, H8.listen(window, "resize", () => {
- Tl(L("#index")), clearTimeout(O5.coverRecheck), O5.coverRecheck = H8.delay(() => L("#index").querySelectorAll("img.cover").forEach((e) => {
+ }), Ol(), A5.coverRecheck = 0, W8.listen(window, "resize", () => {
+ Tl(L("#index")), clearTimeout(A5.coverRecheck), A5.coverRecheck = W8.delay(() => L("#index").querySelectorAll("img.cover").forEach((e) => {
e.complete && gl(e);
}), 200);
}, { passive: !0 });
}
-function M5() {
+function P5() {
return {
selectMode: Ql,
selectSurface: tu,
@@ -81359,73 +81372,73 @@ function M5() {
followLastSelectedId: eu
};
}
-function vRe() {
- return cRe({
+function xRe() {
+ return dRe({
selected: Xl,
followSelected: Zl
}, location.pathname, location.search, U.state);
}
// src/application/index.js
-var N5 = {
+var F5 = {
peopleIndexLayout: void 0,
personAvatar: void 0
};
-function yRe() {
+function SRe() {
return Z.appSettings.followLayout === "table" ? "table" : "default";
}
-function bRe() {
- return kZ(location.search);
+function CRe() {
+ return jZ(location.search);
}
-function xRe(e) {
- return AZ(e);
+function wRe(e) {
+ return MZ(e);
}
-function SRe(e) {
- Q.route(xRe(e));
+function TRe(e) {
+ Q.route(wRe(e));
}
-function CRe(e = "") {
- return jZ(location.search, e);
+function ERe(e = "") {
+ return NZ(location.search, e);
}
-function wRe(e) {
- return B8(e);
+function DRe(e) {
+ return H8(e);
}
-function P5(e) {
- return R8(e);
+function I5(e) {
+ return B8(e);
}
-function F5() {
- L("#stats").hidden = !0, L("#index").hidden = !1, H7(), X.hideCatalogCombo(), L("#count").textContent = "", L("#loadSentinel").hidden = !0;
+function L5() {
+ L("#stats").hidden = !0, L("#index").hidden = !1, W7(), X.hideCatalogCombo(), L("#count").textContent = "", L("#loadSentinel").hidden = !0;
}
-function TRe(e, t) {
+function ORe(e, t) {
W({ state: {
...U,
state: "",
tag: e.join(","),
tag_match: t
- } }), A5(!1, !1), Q.route(v7()), G5(), y9(), F7();
+ } }), M5(!1, !1), Q.route(b7()), q5(), x9(), L7();
}
-function I5(e) {
- N5.controller.openFollowAuthor(e);
+function R5(e) {
+ F5.controller.openFollowAuthor(e);
}
-function ERe(e) {
- N5.controller.openFollowTag(e);
+function kRe(e) {
+ F5.controller.openFollowTag(e);
}
-function DRe() {
- $.FOLLOW_MANAGE_TABS = OZ, H8.listen(document, "click", (e) => {
- e.target.closest?.("[data-empty-settings]") && w5("媒体库与入库");
- }), N5.peopleIndexLayout = () => i6(Z.appSettings.peopleLayout), N5.personAvatar = z8;
+function ARe() {
+ $.FOLLOW_MANAGE_TABS = AZ, W8.listen(document, "click", (e) => {
+ e.target.closest?.("[data-empty-settings]") && E5("媒体库与入库");
+ }), F5.peopleIndexLayout = () => o6(Z.appSettings.peopleLayout), F5.personAvatar = V8;
}
-function ORe() {
- N5.controller = OLe({
+function jRe() {
+ F5.controller = jLe({
route: Q.route,
- followView: T9,
- adoptFollowView: E9,
+ followView: D9,
+ adoptFollowView: O9,
hideIndex: () => {
L("#index").hidden = !0;
},
- openPage: C9
+ openPage: T9
});
}
// src/application/loading.js
-var L5 = {
+var z5 = {
setGridCards: void 0,
gridCards: void 0,
managementPlaceholder: void 0,
@@ -81434,58 +81447,58 @@ var L5 = {
ENTITY_SHAPES_WAIT: void 0,
syncPageTitle: void 0
};
-function R5(e = "正在读取作品") {
+function B5(e = "正在读取作品") {
if (location.pathname === "/wall") {
L("#loadSentinel").hidden = !0;
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 = mye(PU(location.search)), pc(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", U && D7({
+ 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 = _ye(IU(location.search)), pc(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", U && k7({
count: null,
- ...A7()
- })), L("#loadSentinel").hidden = !0, G7()) return;
- let r = L("#grid"), i = Y7(e), a = r.querySelector(".catalog-skeleton");
- (a?.dataset.skeleton !== M2(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== X7()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : L5.setGridCards(i), pc(L("#grid")));
+ ...M7()
+ })), L("#loadSentinel").hidden = !0, q7()) return;
+ let r = L("#grid"), i = Z7(e), a = r.querySelector(".catalog-skeleton");
+ (a?.dataset.skeleton !== P2(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== Q7()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : z5.setGridCards(i), pc(L("#grid")));
}
-function z5() {
- L("#catalogFilter").style.display = "none", E7();
+function V5() {
+ L("#catalogFilter").style.display = "none", O7();
}
-function B5() {
+function H5() {
let e = new Promise((e) => {
- let t = L5.ENTITY_SHAPES_WAIT, n = performance.now(), r = () => {
+ let t = z5.ENTITY_SHAPES_WAIT, n = performance.now(), r = () => {
let i = performance.now();
- t -= Math.min(i - n, 50), n = i, t > 0 ? H8.delay(r, Math.min(t, 50)) : e();
+ t -= Math.min(i - n, 50), n = i, t > 0 ? W8.delay(r, Math.min(t, 50)) : e();
};
- H8.delay(r, 50);
+ W8.delay(r, 50);
});
- return Promise.race([L5.entityShapesReady ||= X8(), e]);
+ return Promise.race([z5.entityShapesReady ||= Q8(), e]);
}
-function kRe() {
+function MRe() {
let e = decodeURIComponent(location.pathname);
- if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), z5(), tbe();
- else if (/^\/assets\/\d+$/.test(e)) z5();
- else if (e === "/settings" || /^\/settings\/(appearance|playback|jav|search|content)$/.test(e) || e.startsWith("/posts/") || e.startsWith("/works/")) z5();
- else if (e === "/junk-files") R5("正在读取垃圾文件");
- else if (e === "/jav" && oU(new URLSearchParams(location.search).get("tab")) === "library") R5("正在读取馆藏");
+ if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), V5(), ibe();
+ else if (/^\/assets\/\d+$/.test(e)) V5();
+ else if (e === "/settings" || /^\/settings\/(appearance|playback|jav|search|content)$/.test(e) || e.startsWith("/posts/") || e.startsWith("/works/")) V5();
+ else if (e === "/junk-files") B5("正在读取垃圾文件");
+ else if (e === "/jav" && cU(new URLSearchParams(location.search).get("tab")) === "library") B5("正在读取馆藏");
else if (Q.managedPagePath(e)) {
- z5();
+ V5();
let t = L("#stats");
- t.hidden = !1, H7(), t.innerHTML = e.startsWith("/follow") && e !== "/subscriptions" ? $.followSkeletonHtml("正在读取关注内容") : L5.managementPlaceholder(e), pc(t);
- } else if (/^\/(performers|creators|studios|agencies|tags)$/.test(e)) z5(), F5(), s6(L("#index"), a6(e.slice(1), location.search), N5.peopleIndexLayout());
+ t.hidden = !1, W7(), t.innerHTML = e.startsWith("/follow") && e !== "/subscriptions" ? $.followSkeletonHtml("正在读取关注内容") : z5.managementPlaceholder(e), pc(t);
+ } else if (/^\/(performers|creators|studios|agencies|tags)$/.test(e)) V5(), L5(), l6(L("#index"), s6(e.slice(1), location.search), F5.peopleIndexLayout());
else if (/^\/(?:performers|creators|studios|agencies|series|tags)\//.test(e)) {
- z5(), L("#index").hidden = !1, H7();
+ V5(), L("#index").hidden = !1, W7();
let t = Nn[e.split("/")[1]], n = e.split("/").slice(2).join("/");
- (J8.hasEntityShape(t, n) ? Promise.resolve() : B5()).then(() => {
- L("#index").firstElementChild || decodeURIComponent(location.pathname) !== e || (_5(t, n), pc(L("#index")));
+ (X8.hasEntityShape(t, n) ? Promise.resolve() : H5()).then(() => {
+ L("#index").firstElementChild || decodeURIComponent(location.pathname) !== e || (y5(t, n), pc(L("#index")));
});
- } else Q.routeMeta(e) ? R5() : (H7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0);
+ } else Q.routeMeta(e) ? B5() : (W7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0);
}
-function ARe() {
- $.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => A2(t, {
+function NRe() {
+ $.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => M2(t, {
cards: !0,
className: "follow-content-skeleton postercard-skeleton",
gridClass: e === "images" ? "followlist followphotowall" : "",
- gridSize: mM()
+ gridSize: gM()
}), $.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>
@@ -81493,37 +81506,37 @@ function ARe() {
<div class="board-filter-frame" data-filter-frame>
<div class="tagbar followfilters" data-filter-row="top" data-skeleton-tier="pill"></div>
<div class="count followcount" data-filter-row="bottom"><span class="mono"><span class="countskeleton"></span></span></div></div>
- ${$.followContentSkeletonHtml(void 0, e)}</div></div>`, L("#loadSentinel").innerHTML = Hs(Vs), L5.setGridCards = (e) => ic(L("#grid"), () => {
+ ${$.followContentSkeletonHtml(void 0, e)}</div></div>`, L("#loadSentinel").innerHTML = Hs(Vs), z5.setGridCards = (e) => ic(L("#grid"), () => {
L("#grid").innerHTML = `<div class="grid">${e}</div>`;
- }), L5.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), L5.managementPlaceholder = (e) => j2(e, {
- followLayout: yRe(),
+ }), z5.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), z5.managementPlaceholder = (e) => N2(e, {
+ followLayout: SRe(),
...(({ sort: e, dir: t, tab: n }) => ({
followSort: e,
followDir: t,
followTab: n
- }))(bRe())
- }), L5.wantsDiscoveryBars = () => L("#catalogFilter").style.display !== "none", L5.entityShapesReady = null, L5.ENTITY_SHAPES_WAIT = 400, L5.syncPageTitle = (e) => {
+ }))(CRe())
+ }), z5.wantsDiscoveryBars = () => L("#catalogFilter").style.display !== "none", z5.entityShapesReady = null, z5.ENTITY_SHAPES_WAIT = 400, z5.syncPageTitle = (e) => {
let t = new URL(e, location.origin), n = ep(decodeURIComponent(t.pathname))?.title;
- document.title = n ? `${n} · Peach` : "Peach · 蜜桃", document.body.dataset.surface = t.pathname, _9();
+ document.title = n ? `${n} · Peach` : "Peach · 蜜桃", document.body.dataset.surface = t.pathname, y9();
};
}
// src/sidebar-skeleton.ts
-var V5 = (e) => e.replace(/[&<>"']/g, (e) => ({
+var U5 = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
})[e]);
-function jRe(e, t, n) {
+function PRe(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-${V5(r)}"/></svg>`;
- return `<button type="button" data-nav="${V5(e)}" aria-pressed="${n(e)}" aria-label="${V5(t)}">${i}<span>${V5(t)}</span></button>`;
+ let i = e === "" ? "<img data-sidebar-home-logo=\"\" src=\"/peach-logo-64.png\" srcset=\"/peach-logo-64.png 64w, /peach-logo-128.png 128w\" sizes=\"24px\" width=\"24\" height=\"24\" alt=\"\" decoding=\"async\">" : `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${U5(r)}"/></svg>`;
+ return `<button type="button" data-nav="${U5(e)}" aria-pressed="${n(e)}" aria-label="${U5(t)}">${i}<span>${U5(t)}</span></button>`;
}).join("")}</div>`;
}
// src/application/filter-scroll.js
-function MRe(e, t, n, r = !1) {
+function FRe(e, t, n, r = !1) {
if (t = Math.max(0, t), !e || !n || r || t <= 8) return {
y: t,
origin: t,
@@ -81541,7 +81554,7 @@ function MRe(e, t, n, r = !1) {
};
}
// src/application/layout.js
-var H5 = {
+var W5 = {
sidebarProps: void 0,
sidebarSurface: void 0,
sidebarCatalog: void 0,
@@ -81563,20 +81576,20 @@ var H5 = {
mobileFilterHost: void 0,
mobileFilterPath: void 0
};
-function U5({ manage: e = !0, placeholder: t = "" } = {}) {
- L("#stats").hidden = !1, L("#index").hidden = !0, H7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0, e ? $5() : (e7(""), y9()), t && N2(L("#stats"), t);
+function G5({ manage: e = !0, placeholder: t = "" } = {}) {
+ L("#stats").hidden = !1, L("#index").hidden = !0, W7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0, e ? t7() : (n7(""), x9()), t && F2(L("#stats"), t);
}
-function W5() {
- L("#javLibraryHeader").hidden = !0, X.hideCatalogCombo(), z5(), document.body.classList.remove("entity-open", "index-open");
+function K5() {
+ L("#javLibraryHeader").hidden = !0, X.hideCatalogCombo(), V5(), document.body.classList.remove("entity-open", "index-open");
}
-function G5() {
- L("#javLibraryHeader").hidden = !jn(location.pathname) || !o7(), document.body.classList.remove("entity-open", "index-open"), _p(L("#index")), L("#stats").hidden = !0, L("#index").hidden = !0, n5(location.pathname) || (L("#feedNew").hidden = !0), L("#catalogFilter").style.display = "", E7(), $5(), t7();
+function q5() {
+ L("#javLibraryHeader").hidden = !jn(location.pathname) || !c7(), document.body.classList.remove("entity-open", "index-open"), Sp(L("#index")), L("#stats").hidden = !0, L("#index").hidden = !0, i5(location.pathname) || (L("#feedNew").hidden = !0), L("#catalogFilter").style.display = "", O7(), t7(), r7();
}
-function NRe() {
- Q.route("/"), G5();
+function IRe() {
+ Q.route("/"), q5();
}
-function K5({ tags: e = [], providers: t = [], duration: n = !1 }) {
- v9({
+function J5({ tags: e = [], providers: t = [], duration: n = !1 }) {
+ b9({
content: e.length || t.length || n ? {
kind: "follow",
tags: e.map(([e, t]) => ({
@@ -81599,72 +81612,72 @@ function K5({ tags: e = [], providers: t = [], duration: n = !1 }) {
filters: $.followSidebarFilters()
});
}
-function q5(e) {
- Pze({
- ...T9(),
+function Y5(e) {
+ Lze({
+ ...D9(),
...e
- }), v9({ filters: $.followSidebarFilters() });
+ }), b9({ filters: $.followSidebarFilters() });
}
-function J5() {
+function X5() {
return matchMedia("(max-width:760px)").matches;
}
-function Y5(e) {
+function Z5(e) {
let t = L("#drawer"), n = !e && t.contains(document.activeElement);
- t.inert = !e && J5(), 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");
+ t.inert = !e && X5(), 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 X5() {
- J5() && Y5(!1);
+function Q5() {
+ X5() && Z5(!1);
}
-function PRe() {
+function LRe() {
du === null && (W({ runtimeConfigurable: !1 }), Tn("/healthz").then((e) => {
- W({ runtimeConfigurable: !!e.configurable }), du && Q5() && $5();
+ W({ runtimeConfigurable: !!e.configurable }), du && e7() && t7();
}).catch(() => {}));
}
-function Z5(e = "", t = !1) {
+function $5(e = "", t = !1) {
if (!t && !Mf(location.pathname)) {
- let t = Op.navigation;
- Op.push(Pf(e), { settingsBackground: {
+ let t = Np.navigation;
+ Np.push(Pf(e), { settingsBackground: {
pathname: location.pathname,
search: location.search,
state: t.location.state,
seq: t.seq
} });
- } else !t && e && kp(Pf(e), {
+ } else !t && e && Pp(Pf(e), {
replace: !0,
- state: Op.navigation.location.state
+ state: Np.navigation.location.state
});
- return e ||= Nf(location.pathname), cLe(H5.settingsHost()).then((t) => (t.open(e), t));
+ return e ||= Nf(location.pathname), dLe(W5.settingsHost()).then((t) => (t.open(e), t));
}
-function FRe() {
- Mf(location.pathname) && (Ff(Op.navigation.location.state) ? Op.go(-1) : Q.navigatePath("/", !0));
+function RRe() {
+ Mf(location.pathname) && (Ff(Np.navigation.location.state) ? Np.go(-1) : Q.navigatePath("/", !0));
}
-function IRe() {
+function zRe() {
return {
scroll: L("#drawerScroll"),
store: Z.settingsStore,
- navCatalog: H5.NAV_CATALOG,
- navOn: p7,
- navTo: m7,
+ navCatalog: W5.NAV_CATALOG,
+ navOn: h7,
+ navTo: g7,
navToTop: () => {
- X5(), fm();
+ Q5(), _m();
},
- toggleChip: (e, t, n) => T7((r) => {
+ toggleChip: (e, t, n) => D7((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) => T7((n) => {
+ setDuration: (e, t) => D7((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]), Y5(!1), C9(w9());
+ $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followFilter = "saved", $.followDurMin = $.followDurMax = 0, $.followTags = /* @__PURE__ */ new Set([e]), Z5(!1), T9(E9());
},
selectFollowTag: (e) => {
- $.followTags = /* @__PURE__ */ new Set([e]), Y5(!1), C9(w9());
+ $.followTags = /* @__PURE__ */ new Set([e]), Z5(!1), T9(E9());
},
- selectFollowProvider: (e) => q5({ provider: $.followProviders.has(e) ? "" : e }),
- setFollowDuration: (e, t) => q5({
+ selectFollowProvider: (e) => Y5({ provider: $.followProviders.has(e) ? "" : e }),
+ setFollowDuration: (e, t) => Y5({
durMin: e ? e * 60 : 0,
durMax: t < 180 ? t * 60 : 0
}),
@@ -81673,76 +81686,76 @@ function IRe() {
}
};
}
-function LRe() {
+function BRe() {
let e = L("#drawerScroll"), t = [...e.querySelector("[data-sidebar-head]")?.children || []];
- e.innerHTML = jRe(Z.appSettings.sidebarOrder, H5.NAV_CATALOG, p7), e.querySelector("[data-sidebar-head]").append(...t), H8.listen(e, "click", (e) => {
- if (_8()) return;
+ e.innerHTML = PRe(Z.appSettings.sidebarOrder, W5.NAV_CATALOG, h7), e.querySelector("[data-sidebar-head]").append(...t), W8.listen(e, "click", (e) => {
+ if (y8()) return;
let t = e.target.closest?.("[data-nav]");
- t && m7(t.dataset.nav);
- }), lLe(IRe()).then((e) => e.render(H5.sidebarProps)).catch(() => {});
+ t && g7(t.dataset.nav);
+ }), fLe(zRe()).then((e) => e.render(W5.sidebarProps)).catch(() => {});
}
-async function RRe() {
- let e = H8, t = null;
+async function VRe() {
+ let e = W8, t = null;
try {
t = await Tn("/api/settings", { signal: e.signal });
} catch {
return;
}
- e.isActive && eM(t, (e) => Z.settingsEffects[e]?.());
+ e.isActive && nM(t, (e) => Z.settingsEffects[e]?.());
}
-function Q5() {
+function e7() {
return Q.routeMeta(decodeURIComponent(location.pathname))?.route.section || (U.state === "ads" ? "cleanup" : "");
}
-function $5() {
- let e = Q5();
- PRe(), e && z5(), L("#count").classList.toggle("no-tagbar", !!e), y9(), e !== "trash" && (O5.trashCount = null), e7(e);
+function t7() {
+ let e = e7();
+ LRe(), e && V5(), L("#count").classList.toggle("no-tagbar", !!e), x9(), e !== "trash" && (A5.trashCount = null), n7(e);
}
-function zRe(e) {
+function HRe(e) {
return {
section: e,
path: decodeURIComponent(location.pathname),
- sections: H5.MANAGE_SECTIONS,
- menu: e ? H5.manageMenuSections() : [],
- trash: O5.trashCount
+ sections: W5.MANAGE_SECTIONS,
+ menu: e ? W5.manageMenuSections() : [],
+ trash: A5.trashCount
};
}
-function e7(e = Q5()) {
- t7();
- let t = zRe(e), n = b8();
+function n7(e = e7()) {
+ r7();
+ let t = HRe(e), n = S8();
if (n) n.render(t);
else {
- let e = Jde(t);
- e !== H5.manageHeaderSkeleton && (H5.manageHeaderSkeleton = e, H5.manageHeaderRoot().innerHTML = e);
+ let e = Zde(t);
+ e !== W5.manageHeaderSkeleton && (W5.manageHeaderSkeleton = e, W5.manageHeaderRoot().innerHTML = e);
}
- let r = IF(t)?.title || "";
- r !== H5.lastManagePageLabel && (H5.lastManagePageLabel = r, r && tc(H5.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));
+ let r = RF(t)?.title || "";
+ r !== W5.lastManagePageLabel && (W5.lastManagePageLabel = r, r && tc(W5.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));
}
-function BRe() {
- let e = H5.manageHeaderRoot();
- H8.listen(e, "click", (e) => {
- if (b8()) return;
+function URe() {
+ let e = W5.manageHeaderRoot();
+ W8.listen(e, "click", (e) => {
+ if (S8()) return;
let t = e.target.closest?.("[data-manage]");
- if (t) a7(t.dataset.manage);
+ if (t) s7(t.dataset.manage);
else if (e.target.closest?.("[data-manage-crumb] a[href]")) {
if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button) return;
e.preventDefault(), Q.navigatePath("/data-cleanup");
- } else e.target.closest?.("[data-empty-trash]") && I7();
- }), uLe({
+ } else e.target.closest?.("[data-empty-trash]") && R7();
+ }), pLe({
root: e,
- openManage: a7,
+ openManage: s7,
openDataCleanup: () => Q.navigatePath("/data-cleanup"),
- emptyTrash: I7
- }).then(() => e7()).catch(() => {});
+ emptyTrash: R7
+ }).then(() => n7()).catch(() => {});
}
-function t7() {
+function r7() {
let e = L("#listTitle");
if (!e) return;
- let t = decodeURIComponent(location.pathname), n = !Q5() && jn(t) && An[U.state] || "";
+ let t = decodeURIComponent(location.pathname), n = !e7() && jn(t) && An[U.state] || "";
e.hidden = !n, n && (e.textContent = n);
let r = L("#catalogPageHeading");
- r.hidden = !!Q5() || !jn(t) || !!n || U.jav === "1", n7(r, U.q);
+ r.hidden = !!e7() || !jn(t) || !!n || U.jav === "1", i7(r, U.q);
}
-function n7(e, t) {
+function i7(e, t) {
let n = e?.querySelector("[data-page-title]");
if (!n) return;
let r = String(t || "").trim(), i = r ? `搜索结果:「${r}」` : "首页";
@@ -81755,10 +81768,10 @@ function n7(e, t) {
let n = document.createElement("span");
return n.textContent = e, t !== void 0 && (n.dataset.titleWords = t), n;
};
- n.replaceChildren(a("搜索结果:「"), a(r, r), a("」")), n.title = i, i7(n), r7 ??= new ResizeObserver((e) => e.forEach((e) => i7(e.target))), r7.observe(n), document.fonts?.ready.then(() => i7(n));
+ n.replaceChildren(a("搜索结果:「"), a(r, r), a("」")), n.title = i, o7(n), a7 ??= new ResizeObserver((e) => e.forEach((e) => o7(e.target))), a7.observe(n), document.fonts?.ready.then(() => o7(n));
}
-var r7 = null;
-function i7(e) {
+var a7 = null;
+function o7(e) {
let t = e.querySelector("[data-title-words]");
if (!t || !e.clientWidth) return;
let n = t.dataset.titleWords;
@@ -81770,44 +81783,44 @@ function i7(e) {
}
t.textContent = r.slice(0, o).join("") + "…";
}
-function a7(e = "stats") {
+function s7(e = "stats") {
let t = Q.routePathOf("section", e);
- t ? Q.openRoutePath(t) : (U.orient = "", U.state = "ads", Su(), Q.route(FU()), G5(), y9(), F7());
+ t ? Q.openRoutePath(t) : (U.orient = "", U.state = "ads", Su(), Q.route(LU()), q5(), x9(), L7());
}
-function o7() {
+function c7() {
let e = decodeURIComponent(location.pathname);
return e === "/" ? U.jav === "1" : e.startsWith("/performers/") || e.startsWith("/studios/") ? U.jav === "1" || hu : !1;
}
-function VRe(e = o7()) {
- let t = Tj.filter(([e]) => e !== "seed");
- return e ? [Ej, ...t] : t;
+function WRe(e = c7()) {
+ let t = Dj.filter(([e]) => e !== "seed");
+ return e ? [Oj, ...t] : t;
}
-function s7() {
+function l7() {
return decodeURIComponent(location.pathname) === "/" && U.jav !== "1";
}
-function c7() {
- return dM(s7());
+function u7() {
+ return pM(l7());
}
-function HRe(e) {
- Nle(e), u7(), L("#grid").hidden || Z7();
+function GRe(e) {
+ Ile(e), f7(), L("#grid").hidden || $7();
}
-function l7(e) {
- yM(e), u7(), Z7();
+function d7(e) {
+ xM(e), f7(), $7();
}
-function u7() {
+function f7() {
document.querySelectorAll("[data-video-layout]").forEach((e) => {
- e.checked = e.value === c7();
- }), X.catalogFilterProps && D7({ layout: k7() });
+ e.checked = e.value === u7();
+ }), X.catalogFilterProps && k7({ layout: j7() });
}
-function URe(e) {
- Ple(e), u7(), Z7();
+function KRe(e) {
+ Lle(e), f7(), $7();
}
-async function d7() {
- M8(), X.mixRelatedCache.clear(), await Promise.all([f7(), F7()]);
+async function p7() {
+ P8(), X.mixRelatedCache.clear(), await Promise.all([m7(), L7()]);
}
-async function f7() {
+async function m7() {
if (Y.entityPageCurrent() && !L("#index").hidden) {
- s5({ revision: ++Y.entityPageRevision });
+ l5({ revision: ++Y.entityPageRevision });
return;
}
let e = decodeURIComponent(location.pathname);
@@ -81816,30 +81829,30 @@ async function f7() {
return;
}
let t = Q.routeMeta(e);
- t?.route.reload ? await t.route.reload() : await B7();
+ t?.route.reload ? await t.route.reload() : await H7();
}
-function p7(e) {
- let t = decodeURIComponent(location.pathname), n = Q.routeMeta(t)?.route.nav || "", r = H5.DIRECT_MANAGE_NAV[e];
- if (r) return Q5() === r;
+function h7(e) {
+ let t = decodeURIComponent(location.pathname), n = Q.routeMeta(t)?.route.nav || "", r = W5.DIRECT_MANAGE_NAV[e];
+ if (r) return e7() === r;
if (e === "manage") {
- let e = Q5();
- return !!e && !Z.appSettings.sidebarOrder.some((t) => H5.DIRECT_MANAGE_NAV[t] === e);
+ let e = e7();
+ return !!e && !Z.appSettings.sidebarOrder.some((t) => W5.DIRECT_MANAGE_NAV[t] === e);
}
- return e === "jav" ? t === "/jav" || o7() : e === "shorts" ? U.orient === "竖屏" : e === "" ? t === "/" && !Q5() && !U.state && !o7() && U.orient !== "竖屏" : On[e] ? n === e && U.orient !== "竖屏" : n ? n === e : t === "/" && U.state === e && U.orient !== "竖屏";
+ return e === "jav" ? t === "/jav" || c7() : e === "shorts" ? U.orient === "竖屏" : e === "" ? t === "/" && !e7() && !U.state && !c7() && U.orient !== "竖屏" : On[e] ? n === e && U.orient !== "竖屏" : n ? n === e : t === "/" && U.state === e && U.orient !== "竖屏";
}
-function m7(e) {
- let t = om(e);
+function g7(e) {
+ let t = dm(e);
if (t === location.pathname + location.search + location.hash) return;
- if (X5(), t) {
+ if (Q5(), t) {
Q.navigatePath(t);
return;
}
- if (H5.DIRECT_MANAGE_NAV[e]) {
- a7(H5.DIRECT_MANAGE_NAV[e]);
+ if (W5.DIRECT_MANAGE_NAV[e]) {
+ s7(W5.DIRECT_MANAGE_NAV[e]);
return;
}
if (e === "manage") {
- a7();
+ s7();
return;
}
if (e === "jav") {
@@ -81847,25 +81860,25 @@ function m7(e) {
return;
}
if (e === "") {
- y7();
+ x7();
return;
}
let n = On[e] ? null : Q.routePathOf("nav", e);
- n ? Q.openRoutePath(n) : (e === "shorts" ? (U.orient = "竖屏", U.state = "") : (U.orient = "", U.state = e), Su(), Q.route(v7()), y9(), F7());
+ n ? Q.openRoutePath(n) : (e === "shorts" ? (U.orient = "竖屏", U.state = "") : (U.orient = "", U.state = e), Su(), Q.route(b7()), x9(), L7());
}
-function h7() {
+function _7() {
let e = decodeURIComponent(location.pathname), t = e.split("/").filter(Boolean);
- Ql && tu !== O5.currentSelectSurface() && A5(!1, !0);
+ Ql && tu !== A5.currentSelectSurface() && M5(!1, !0);
let n = t.length > 1 && Object.prototype.hasOwnProperty.call(Nn, t[0]), r = jn(e) || e === "/trash", i = r || n || e === "/tags" || e === "/follow", a = r || n || e === "/follow";
- L("#selectMode").hidden = !i, L("#density").hidden = !a, f5(), !i && Ql && A5(!1, !0);
+ L("#selectMode").hidden = !i, L("#density").hidden = !a, m5(), !i && Ql && M5(!1, !0);
}
-function WRe() {
+function qRe() {
let e = [...document.querySelectorAll("[data-filter-frame]")], t = e.find((e) => e.offsetParent !== null);
- (t !== H5.mobileFilterHost || location.pathname !== H5.mobileFilterPath) && (H5.mobileFilterScroll = null), H5.mobileFilterHost = t, H5.mobileFilterPath = location.pathname;
+ (t !== W5.mobileFilterHost || location.pathname !== W5.mobileFilterPath) && (W5.mobileFilterScroll = null), W5.mobileFilterHost = t, W5.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\"]");
- H5.mobileFilterScroll = MRe(H5.mobileFilterScroll, n, innerWidth <= 760, r);
+ W5.mobileFilterScroll = FRe(W5.mobileFilterScroll, n, innerWidth <= 760, r);
for (let n of e) {
- let e = n === t && H5.mobileFilterScroll.free;
+ let e = n === t && W5.mobileFilterScroll.free;
if (e && n.style.setProperty("--filter-free-top", `${-n.offsetHeight - 12}px`), e === n.hasAttribute("data-filter-free")) continue;
let r = n.getBoundingClientRect().top;
n.getAnimations().forEach((e) => e.id === "filter-slide" && e.cancel()), n.toggleAttribute("data-filter-free", e);
@@ -81877,54 +81890,54 @@ function WRe() {
});
}
}
-function GRe() {
- WRe(), [".board-filter-frame", "#count"].forEach((e) => {
+function JRe() {
+ qRe(), [".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 g7() {
- H5.stickyFrame ||= H8.frame(() => {
- H5.stickyFrame = 0, GRe();
+function v7() {
+ W5.stickyFrame ||= W8.frame(() => {
+ W5.stickyFrame = 0, JRe();
});
}
-function KRe() {
+function YRe() {
$.followSidebarFilters = () => ({
provider: [...$.followProviders][0] || "",
dur_min: $.followDurMin || "",
dur_max: $.followDurMax || ""
- }), H8.handler(L("#filterBtn"), "onclick", () => Y5(!L("#drawer").classList.contains("open"))), H5.SIDEBAR_ITEMS = N8, H5.MANAGE_SECTIONS = P8, H5.MANAGE_MENU_SECTIONS = F8, H5.manageMenuSections = () => TLe(du === !0), H5.OPTIONAL_SIDEBAR_ITEMS = I8, H5.NAV_CATALOG = ELe, H5.DIRECT_MANAGE_NAV = DLe, H5.settingsHost = () => ({
- selectSection: (e) => kp(Pf(e), {
+ }), W8.handler(L("#filterBtn"), "onclick", () => Z5(!L("#drawer").classList.contains("open"))), W5.SIDEBAR_ITEMS = F8, W5.MANAGE_SECTIONS = I8, W5.MANAGE_MENU_SECTIONS = L8, W5.manageMenuSections = () => OLe(du === !0), W5.OPTIONAL_SIDEBAR_ITEMS = R8, W5.NAV_CATALOG = kLe, W5.DIRECT_MANAGE_NAV = ALe, W5.settingsHost = () => ({
+ selectSection: (e) => Pp(Pf(e), {
replace: !0,
- state: Op.navigation.location.state
+ state: Np.navigation.location.state
}),
- closed: FRe,
+ closed: RRe,
store: Z.settingsStore,
changed: (e) => Z.settingsEffects[e]?.(),
sound: (e) => Qo(e),
- navCatalog: H5.NAV_CATALOG,
- themeOptions: Ole,
- videoLayouts: aM,
- followInitialRanges: L8,
- videoLayout: () => c7(),
- setVideoLayout: URe,
- censored: t9,
- setCensored: r9,
- sfwShortcut: i9,
- setSfwShortcut: pze,
+ navCatalog: W5.NAV_CATALOG,
+ themeOptions: jle,
+ videoLayouts: sM,
+ followInitialRanges: z8,
+ videoLayout: () => u7(),
+ setVideoLayout: KRe,
+ censored: r9,
+ setCensored: a9,
+ sfwShortcut: o9,
+ setSfwShortcut: gze,
highContrast: () => document.documentElement.classList.contains("board-high-contrast"),
- setHighContrast: mze,
- receipt: (e) => E8.actionReceipt(e),
- failure: E8.actionFailure,
- syncRemote: (e) => eM(e, (e) => Z.settingsEffects[e]?.()),
+ setHighContrast: _ze,
+ receipt: (e) => O8.actionReceipt(e),
+ failure: O8.actionFailure,
+ syncRemote: (e) => nM(e, (e) => Z.settingsEffects[e]?.()),
openConfiguration: () => Q.navigatePath("/settings/library"),
attached: () => Z.syncGlassOptics(),
configurable: () => Tn("/healthz").then((e) => (W({ runtimeConfigurable: !!e.configurable }), du)).catch(() => null)
- }), H8.handler(L("#settingsBtn"), "onclick", () => void Z5()), H5.lastManagePageLabel = "", H5.manageHeaderSkeleton = "", H5.manageHeaderRoot = () => L("[data-manage-header]"), window.__scrolling = !1, H5.scrollT = null, H5.stickyFrame = 0, H5.mobileFilterScroll = null, H5.mobileFilterHost = null, H5.mobileFilterPath = "", H8.listen(document, "focusin", g7), H8.listen(document, "focusout", g7), H8.listen(window, "scroll", () => {
- g7(), location.pathname === "/follow" && D9() && W({ followScrollY: scrollY }), window.__scrolling = !0, Nl(), clearTimeout(H5.scrollT), H5.scrollT = H8.delay(() => {
+ }), W8.handler(L("#settingsBtn"), "onclick", () => void $5()), W5.lastManagePageLabel = "", W5.manageHeaderSkeleton = "", W5.manageHeaderRoot = () => L("[data-manage-header]"), window.__scrolling = !1, W5.scrollT = null, W5.stickyFrame = 0, W5.mobileFilterScroll = null, W5.mobileFilterHost = null, W5.mobileFilterPath = "", W8.listen(document, "focusin", v7), W8.listen(document, "focusout", v7), W8.listen(window, "scroll", () => {
+ v7(), location.pathname === "/follow" && k9() && W({ followScrollY: scrollY }), window.__scrolling = !0, Nl(), clearTimeout(W5.scrollT), W5.scrollT = W8.delay(() => {
window.__scrolling = !1;
}, 180);
- }, { passive: !0 }), H8.listen(window, "resize", g7, { passive: !0 }), H8.handler(L("#scrim"), "onclick", () => Y5(!1));
+ }, { passive: !0 }), W8.listen(window, "resize", v7, { passive: !0 }), W8.handler(L("#scrim"), "onclick", () => Z5(!1));
}
// src/application/catalog.js
var X = {
@@ -81963,43 +81976,43 @@ var X = {
junkQueueHelpers: void 0,
junkQueueActions: void 0
};
-function qRe() {
- X.initialParams.has("loc") || (U.loc = _7(U.loc), Su());
+function XRe() {
+ X.initialParams.has("loc") || (U.loc = y7(U.loc), Su());
}
-function _7(e) {
- return gLe(e, Z.sourceOnline);
+function y7(e) {
+ return yLe(e, Z.sourceOnline);
}
-function v7(e = U) {
- return _Le(e);
+function b7(e = U) {
+ return bLe(e);
}
-function JRe() {
- W(O8(vLe(U, Z.appSettings, E8.rollSeed)));
+function ZRe() {
+ W(A8(xLe(U, Z.appSettings, O8.rollSeed)));
}
-function y7(e = null) {
- JRe(), e && (Object.assign(U, e), Su()), Q.route(e ? v7() : "/"), X.clearSearchField(), l9(!1), y9(), F7();
+function x7(e = null) {
+ ZRe(), e && (Object.assign(U, e), Su()), Q.route(e ? b7() : "/"), X.clearSearchField(), d9(!1), x9(), L7();
}
-function YRe(e, t = null) {
+function QRe(e, t = null) {
let n = e.id;
- !e.medium || e.medium === "video" ? p9(n, !0, null, t) : e.medium === "image" && e.location !== "online" ? window.open("/photo?id=" + n, "_blank", "noopener") : j5(n);
+ !e.medium || e.medium === "video" ? h9(n, !0, null, t) : e.medium === "image" && e.location !== "online" ? window.open("/photo?id=" + n, "_blank", "noopener") : N5(n);
}
-function b7(e) {
+function S7(e) {
return X.mixRelatedCache.has(e) || X.mixRelatedCache.set(e, Tn("/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 XRe(e, t) {
- c8()?.miniplayerTakesCard(e) ? c8().miniplayerPlay(e.id) : x7(e, t);
+function $Re(e, t) {
+ u8()?.miniplayerTakesCard(e) ? u8().miniplayerPlay(e.id) : C7(e, t);
}
-function x7(e, t) {
- e.edition_group ? xze(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? Sze(e.part_group.seed_id, e.id, !0, t) : p9(e.id, !0, null, t);
+function C7(e, t) {
+ e.edition_group ? wze(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? Tze(e.part_group.seed_id, e.id, !0, t) : h9(e.id, !0, null, t);
}
-async function ZRe(e, t) {
+async function eze(e, t) {
try {
let n = await Tn("/api/watch-later", {
method: "POST",
body: JSON.stringify({ id: e.id })
});
- e.watch_later = n.watch_later, t(!!n.watch_later), E8.actionReceipt(n.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
+ e.watch_later = n.watch_later, t(!!n.watch_later), O8.actionReceipt(n.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
let n = await Tn("/api/watch-later", {
method: "POST",
body: JSON.stringify({ id: e.id })
@@ -82007,10 +82020,10 @@ async function ZRe(e, t) {
e.watch_later = n.watch_later, t(!!n.watch_later);
} });
} catch (e) {
- E8.actionFailure("更新稍后看", e);
+ O8.actionFailure("更新稍后看", e);
}
}
-async function QRe(e, t) {
+async function tze(e, t) {
try {
await Tn("/api/batch", {
method: "POST",
@@ -82018,9 +82031,9 @@ async function QRe(e, t) {
ids: [e.id],
operation: t
})
- }), await B7();
+ }), await H7();
let n = t === "restore" ? "dispose" : "restore";
- E8.actionReceipt(t === "restore" ? "已还原" : "已移入回收站", { undo: async () => {
+ O8.actionReceipt(t === "restore" ? "已还原" : "已移入回收站", { undo: async () => {
await Tn("/api/batch", {
method: "POST",
body: JSON.stringify({
@@ -82028,14 +82041,14 @@ async function QRe(e, t) {
operation: n,
...n === "dispose" ? { disposal_reason: e.disposal_reason ?? null } : {}
})
- }), await B7();
+ }), await H7();
} });
} catch (e) {
- throw E8.actionFailure("操作", e), e;
+ throw O8.actionFailure("操作", e), e;
}
}
-async function $Re(e, t, n, r) {
- let i = Number(e.rating) || 0, a = fP(i, t), o = async (t, r) => {
+async function nze(e, t, n, r) {
+ let i = Number(e.rating) || 0, a = mP(i, t), o = async (t, r) => {
let i = (await Tn("/api/feedback", {
method: "POST",
body: JSON.stringify({
@@ -82049,14 +82062,14 @@ async function $Re(e, t, n, r) {
};
try {
let e = await o(a, r);
- E8.actionReceipt(e ? `已评 ${dP(e)} 星` : "已取消评分", { undo: () => o(i) });
+ O8.actionReceipt(e ? `已评 ${pP(e)} 星` : "已取消评分", { undo: () => o(i) });
} catch (e) {
- throw r?.aborted || E8.actionFailure("评分", e), e;
+ throw r?.aborted || O8.actionFailure("评分", e), e;
}
}
-async function S7(e) {
+async function w7(e) {
let t = new URLSearchParams();
- if (o7() && t.set("jav", "1"), e.type === "entity" ? (t.set("scope_kind", e.kind), t.set("scope_name", e.name)) : e.type === "item" && t.set("id", String(e.id)), e.type === "home" && U.state && t.set("state", U.state), e.type !== "item") {
+ if (c7() && t.set("jav", "1"), e.type === "entity" ? (t.set("scope_kind", e.kind), t.set("scope_name", e.name)) : e.type === "item" && t.set("id", String(e.id)), e.type === "home" && U.state && t.set("state", U.state), e.type !== "item") {
let e = Y.activeFilterState();
[
"loc",
@@ -82078,33 +82091,33 @@ async function S7(e) {
e[n] && t.set(n, e[n]);
});
}
- return CLe(t.toString(), X.topsQueryParams(e).toString());
+ return ELe(t.toString(), X.topsQueryParams(e).toString());
}
-function C7(e) {
- c5().type !== "entity" && D7({ tags: j7(e) }), v9({ filters: { ...e } }), z7();
+function T7(e) {
+ u5().type !== "entity" && k7({ tags: N7(e) }), b9({ filters: { ...e } }), V7();
}
-async function w7(e) {
- let t = ++X.facetCountsSeq, [n] = await S7(e);
- t === X.facetCountsSeq && (e.type === "home" && (o9.facets = n), v9({ latest: e9(n, e) }));
+async function E7(e) {
+ let t = ++X.facetCountsSeq, [n] = await w7(e);
+ t === X.facetCountsSeq && (e.type === "home" && (c9.facets = n), b9({ latest: n9(n, e) }));
}
-function T7(e) {
- let t = c5();
+function D7(e) {
+ let t = u5();
if (t.type === "entity") {
let n = { ...t.filters };
- e(n), u5(t.kind, t.name, n), C7(n), w7(c5());
+ e(n), f5(t.kind, t.name, n), T7(n), E7(u5());
} else if (t.type === "item") {
let t = Y.cloneBarsContext(Yl);
- if (l9(!1), W({ detailReturnBarsContext: null }), t && t.type === "entity") {
- e(t.filters), u5(t.kind, t.name, t.filters) ? F7() : W({ pageOpens: pu + 1 });
+ if (d9(!1), W({ detailReturnBarsContext: null }), t && t.type === "entity") {
+ e(t.filters), f5(t.kind, t.name, t.filters) ? L7() : W({ pageOpens: pu + 1 });
return;
}
e(U), W({ barsContext: {
type: "home",
filters: U
- } }), Q.route(v7()), G5(), F7();
- } else e(U), Su(), Q.route(v7()), C7(U), w7(Jl);
+ } }), Q.route(b7()), q5(), L7();
+ } else e(U), Su(), Q.route(b7()), T7(U), E7(Jl);
}
-function eze() {
+function rze() {
return {
tiers: null,
tiersPending: !1,
@@ -82122,94 +82135,94 @@ function eze() {
combo: [],
comboHidden: !0,
comboHost: L("#combo"),
- actions: O7(),
+ actions: A7(),
helpers: {
- wireDrag: a9,
+ wireDrag: s9,
wireScroller: (e) => {
e && Ac(e);
}
}
};
}
-function E7() {
- X.catalogFilterProps && D7({});
+function O7() {
+ X.catalogFilterProps && k7({});
}
-function D7(e) {
+function k7(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 || eze(),
+ ...X.catalogFilterProps || rze(),
...e
- }, !X.catalogFilterMounting && (up(t) ? gp(t, e) : (!t.firstChild && !n && (t.innerHTML = wMe(X.catalogViews(), X.catalogFilterProps.state, A7()), pc(t)), X.catalogFilterMounting = mp("catalog-filter", X.catalogFilterProps, {
+ }, !X.catalogFilterMounting && (hp(t) ? xp(t, e) : (!t.firstChild && !n && (t.innerHTML = DMe(X.catalogViews(), X.catalogFilterProps.state, M7()), pc(t)), X.catalogFilterMounting = yp("catalog-filter", X.catalogFilterProps, {
container: t,
isCurrent: () => !0
- }).then(() => gp(t, X.catalogFilterProps)).finally(() => {
+ }).then(() => xp(t, X.catalogFilterProps)).finally(() => {
X.catalogFilterMounting = null;
})));
}
-function O7() {
+function A7() {
return {
currentHref: () => {
- let e = new URL(v7(), location.origin);
+ let e = new URL(b7(), location.origin);
return e.searchParams.set("loc", U.loc || ""), e.searchParams.set("thumb", U.thumb || "0"), e.searchParams.set("sort", U.sort || ""), e.searchParams.set("dir", U.dir || ""), e.pathname + e.search;
},
- openEntity: (e, t) => b5(e, t),
+ openEntity: (e, t) => S5(e, t),
setView: (e) => {
- U.state = e, Su(), D7({ state: e }), Q.route(v7()), F7();
+ U.state = e, Su(), k7({ state: e }), Q.route(b7()), L7();
},
- toggleTag: (e) => L7(e),
- clearFilter: (e) => T7((t) => {
+ toggleTag: (e) => z7(e),
+ clearFilter: (e) => D7((t) => {
t[e] = "";
}),
- clearAll: () => T7((e) => {
+ clearAll: () => D7((e) => {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let t = Mj(e, U.sort, U.dir);
- t && (U.sort = t.sort, U.dir = t.dir, Su(), $7());
+ let t = Pj(e, U.sort, U.dir);
+ t && (U.sort = t.sort, U.dir = t.dir, Su(), t9());
},
- reshuffle: () => fze(),
+ reshuffle: () => hze(),
setLayout: (e) => {
- o7() ? l7(e) : HRe(e);
+ c7() ? d7(e) : GRe(e);
},
moreTops: async (e) => {
let t = X.catalogTopsPages;
if (!t) return [];
- let n = (await wLe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
- return e === "performers" ? n.map(M7) : n.map(N7);
+ let n = (await DLe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
+ return e === "performers" ? n.map(P7) : n.map(F7);
}
};
}
-function k7() {
- return o7() ? {
+function j7() {
+ return c7() ? {
name: "jav-layout",
label: "JAV 卡片版式",
- value: uM(),
- options: aM
- } : s7() ? {
+ value: fM(),
+ options: sM
+ } : l7() ? {
name: "home-layout",
label: "首页卡片版式",
- value: c7(),
- options: aM
+ value: u7(),
+ options: sM
} : null;
}
-function A7() {
+function M7() {
return {
- sorts: l5(U.sort, U.dir),
- layout: k7(),
+ sorts: d5(U.sort, U.dir),
+ layout: j7(),
state: U.state || "",
trash: U.state === "trash"
};
}
-function j7(e) {
+function N7(e) {
return X.catalogTagRows.map((t) => ({
...t,
selected: X.tagPressed(e.tag, t.k)
}));
}
-function M7(e) {
+function P7(e) {
return {
name: e.k,
ringHtml: `<span data-tier-initial>${z(er(nn("performer", e.k, e.id)))}</span>${go({
@@ -82223,102 +82236,102 @@ function M7(e) {
})}`
};
}
-function N7(e) {
+function F7(e) {
return {
name: e.k,
fallback: $n(e.k, 2),
logo: e.has_logo ? po(e.k, "icon", e.logo_version) : ""
};
}
-function tze(e, t) {
- X.barsPendingSeq = t, X.catalogFilterProps?.tiers ? D7({
+function ize(e, t) {
+ X.barsPendingSeq = t, X.catalogFilterProps?.tiers ? k7({
tiersPending: !0,
state: e.state || ""
- }) : (X.barsRendered = "", D7({
+ }) : (X.barsRendered = "", k7({
tiers: null,
tiersPending: !0,
state: e.state || ""
}));
}
-function P7(e) {
- X.barsPendingSeq === e && (X.barsPendingSeq = 0, D7({ tiersPending: !1 }));
+function I7(e) {
+ X.barsPendingSeq === e && (X.barsPendingSeq = 0, k7({ tiersPending: !1 }));
}
-async function F7() {
+async function L7() {
let e = ++X.barsRequestSeq;
- if (v9(), !Gl(location.pathname) || Jl.type === "item") return;
- let t = c5(), n = Y.activeFilterState(), r = JSON.stringify([
+ if (b9(), !Gl(location.pathname) || Jl.type === "item") return;
+ let t = u5(), n = Y.activeFilterState(), r = JSON.stringify([
t,
n,
U.state || "",
U.seed || "",
- o7()
+ c7()
]);
- tze(n, e);
+ ize(n, e);
let i;
try {
- i = await S7(t);
+ i = await w7(t);
} catch (t) {
- throw P7(e), t;
+ throw I7(e), t;
}
let [a, o] = i;
if (e !== X.barsRequestSeq) {
- P7(e);
+ I7(e);
return;
}
let s = r + "\n" + JSON.stringify([a, o]);
if (s === X.barsRendered) {
- X.barsPendingSeq = 0, D7({ tiersPending: !1 }), H5.sidebarCatalog && v9({
- content: H5.sidebarCatalog,
+ X.barsPendingSeq = 0, k7({ tiersPending: !1 }), W5.sidebarCatalog && b9({
+ content: W5.sidebarCatalog,
filters: { ...n }
});
return;
}
- X.barsRendered = s, t.type === "home" && (o9.facets = a);
+ X.barsRendered = s, t.type === "home" && (c9.facets = a);
let c = a.tags || [];
Xa(o.performers), Xa(o.studios);
- let l = t.type === "home" && !o7() && !U.state && !U.q && !a.locations.some((e) => e.n > 0);
+ let l = t.type === "home" && !c7() && !U.state && !U.q && !a.locations.some((e) => e.n > 0);
X.catalogTopsPages = {
context: t,
performers: 0,
studios: 0
};
- let u = X.tagList(n.tag), d = new Map(c.map((e) => [e.k, e])), f = u.map((e) => d.get(e) || { k: e }), p = c.filter((e) => !u.includes(e.k)), m = E8.seededSample(p, X.TAGS_FIRST, `tags:${U.seed || ""}`), h = new Set(m.map((e) => e.k));
+ let u = X.tagList(n.tag), d = new Map(c.map((e) => [e.k, e])), f = u.map((e) => d.get(e) || { k: e }), p = c.filter((e) => !u.includes(e.k)), m = O8.seededSample(p, X.TAGS_FIRST, `tags:${U.seed || ""}`), h = new Set(m.map((e) => e.k));
X.catalogTagRows = f.concat(m, p.filter((e) => !h.has(e.k))).map((e) => ({
k: e.k,
label: Ll(e.k),
n: e.n ?? null
- })), X.barsPendingSeq = 0, D7({
+ })), X.barsPendingSeq = 0, k7({
tiers: {
key: String(X.barsRequestSeq),
- performers: o.performers.map(M7),
- studios: o.studios.map(N7)
+ performers: o.performers.map(P7),
+ studios: o.studios.map(F7)
},
tiersPending: !1,
empty: l,
- tags: j7(n),
+ tags: N7(n),
tagFirst: f.length + m.length,
views: X.catalogViews(),
state: n.state || ""
- }), z7(), H5.sidebarCatalog = {
+ }), V7(), W5.sidebarCatalog = {
kind: "catalog",
- key: String(++H5.sidebarContentSeq),
- facets: e9(a, t)
- }, v9({
- content: H5.sidebarCatalog,
+ key: String(++W5.sidebarContentSeq),
+ facets: n9(a, t)
+ }, b9({
+ content: W5.sidebarCatalog,
filters: { ...n },
latest: null
});
}
-function nze(e, t) {
- o9.total = e, U.state === "trash" && (O5.trashCount = {
- total: o9.total,
+function aze(e, t) {
+ c9.total = e, U.state === "trash" && (A5.trashCount = {
+ total: c9.total,
shown: t
- }), $5(), D7({ count: {
- total: o9.total,
+ }), t7(), k7({ count: {
+ total: c9.total,
shown: t
} });
}
-function I7() {
+function R7() {
return ll({
title: "清空回收站",
body: "回收站中的全部文件和馆藏记录将永久删除,无法恢复。",
@@ -82328,19 +82341,19 @@ function I7() {
try {
let e = await Tn("/api/trash/empty", { method: "POST" });
if (e.blocked && e.blocked.length) throw Error(`已永久删除 ${e.purged} 项;${e.blocked.length} 项未能删除,仍在回收站:\n` + e.blocked.slice(0, 5).map((e) => `${e.path}(${e.reason})`).join("\n"));
- E8.actionReceipt(`已永久删除 ${e.purged} 项`);
+ O8.actionReceipt(`已永久删除 ${e.purged} 项`);
} finally {
- await B7();
+ await H7();
}
}
});
}
-function L7(e) {
- T7((t) => {
+function z7(e) {
+ D7((t) => {
t.tag = e ? X.withTagToggled(t.tag, e) : "";
});
}
-function R7(e) {
+function B7(e) {
let t = [];
return e.creator && t.push({
kind: "clear",
@@ -82364,13 +82377,13 @@ function R7(e) {
label: Ll(e)
})), t;
}
-function z7() {
- D7({
- combo: R7(U),
+function V7() {
+ k7({
+ combo: B7(U),
comboHidden: !X.catalogOnScreen()
});
}
-async function B7() {
+async function H7() {
let e = Q.claimSurface(Q.surfacePath());
if (W({
barsContext: {
@@ -82378,113 +82391,113 @@ async function B7() {
filters: U
},
detailReturnBarsContext: null
- }), l9(!1), U.state === "ads") return aze(e);
- X.controller.page === "/junk-files" && H7(), R5(), G5();
- let t = U7(e);
- if (n5(location.pathname) && U.browse !== "folders") {
- if (await L5.entityShapesReady, !Q.surfaceCurrent(e)) return;
- WLe();
- } else r5();
- return z7(), L("#count").classList.remove("manage-static", "junkcount"), t;
-}
-function V7(e) {
+ }), d9(!1), U.state === "ads") return cze(e);
+ X.controller.page === "/junk-files" && W7(), B5(), q5();
+ let t = G7(e);
+ if (i5(location.pathname) && U.browse !== "folders") {
+ if (await z5.entityShapesReady, !Q.surfaceCurrent(e)) return;
+ qLe();
+ } else a5();
+ return V7(), L("#count").classList.remove("manage-static", "junkcount"), t;
+}
+function U7(e) {
X.controller.settle(e);
}
-function H7() {
+function W7() {
let e = L("#grid");
- Nl(e), _p(e), X.controller.clear(), e.innerHTML = "";
+ Nl(e), Sp(e), X.controller.clear(), e.innerHTML = "";
}
-function U7(e) {
- return q7("/", ize, e, { place: Ize });
+function G7(e) {
+ return Y7("/", sze, e, { place: zze });
}
-function rze(e) {
- return q7("/junk-files", sze, e);
+function oze(e) {
+ return Y7("/junk-files", uze, e);
}
-function W7() {
- return !!lp(L("#grid"));
+function K7() {
+ return !!mp(L("#grid"));
}
-function G7() {
- return X.controller.taken(W7());
+function q7() {
+ return X.controller.taken(K7());
}
-function K7(e) {
- gp(L("#grid"), e);
+function J7(e) {
+ xp(L("#grid"), e);
}
-function q7(e, t, n, r = {}) {
+function Y7(e, t, n, r = {}) {
let i = L("#grid");
- X.controller.page && X.controller.page !== e && H7();
- let a = X.controller.begin(e, W7()), o = t();
- if (!a.mount) return K7(o), a.settled;
+ X.controller.page && X.controller.page !== e && W7();
+ let a = X.controller.begin(e, K7()), o = t();
+ if (!a.mount) return J7(o), a.settled;
Nl(i);
- let s = () => _p(i);
- return a.signal.addEventListener("abort", s, { once: !0 }), mp(e, o, {
+ let s = () => Sp(i);
+ return a.signal.addEventListener("abort", s, { once: !0 }), yp(e, o, {
...r,
container: i,
isCurrent: () => Q.surfaceCurrent(n) && a.isCurrent()
}).catch((e) => console.error(e)).finally(() => {
- a.signal.removeEventListener("abort", s), a.finish(W7());
+ a.signal.removeEventListener("abort", s), a.finish(K7());
}), a.settled;
}
-function J7() {
- let e = s7();
- return _M({
- active: o7() || e,
+function X7() {
+ let e = l7();
+ return yM({
+ active: c7() || e,
home: e,
portrait: U.orient === "竖屏"
});
}
-function Y7(e = "正在读取作品") {
- return FJ(e, X7());
+function Z7(e = "正在读取作品") {
+ return LJ(e, Q7());
}
-function X7() {
- return U ? vM(J7()) : 16 / 9;
+function Q7() {
+ return U ? bM(X7()) : 16 / 9;
}
-function Z7() {
- G7() && (Nl(L("#grid")), K7({
- layout: J7(),
+function $7() {
+ q7() && (Nl(L("#grid")), J7({
+ layout: X7(),
seekSeconds: Z.appSettings.seekSeconds
- })), Y.entityPageCurrent() && (Nl(L("#index [data-entity-hero]")), s5({
- layout: J7(),
+ })), Y.entityPageCurrent() && (Nl(L("#index [data-entity-hero]")), l5({
+ layout: X7(),
seekSeconds: Z.appSettings.seekSeconds
}));
}
-function ize() {
+function sze() {
let e = decodeURIComponent(location.pathname), t = jn(e), n = U.state === "trash";
return {
mode: "catalog",
helpers: X.gridHelpers,
actions: X.gridActions,
- layout: J7(),
+ layout: X7(),
wall: e === "/wall",
- restoreNavigation: dm(),
+ restoreNavigation: gm(),
selectMode: Ql,
selected: new Set(Xl),
seekSeconds: Z.appSettings.seekSeconds,
revision: X.controller.revision,
- wireDrag: a9,
- settled: V7,
- skeletonHtml: () => Y7(),
+ wireDrag: s9,
+ settled: U7,
+ skeletonHtml: () => Z7(),
filters: { ...U },
batchSize: Z.appSettings.batchSize,
groupCollapse: Z.appSettings.groupCollapse,
excludeVertical: t && e !== "/wall" && !U.q && !U.orient && U.browse !== "folders" || U.jav === "1",
mix: t && e !== "/wall" && !n && U.browse !== "folders",
- shorts: t && e !== "/wall" && !o7() && U.orient !== "竖屏" && !n && U.browse !== "folders",
+ shorts: t && e !== "/wall" && !c7() && U.orient !== "竖屏" && !n && U.browse !== "folders",
countRow: L("#count"),
- onCount: nze,
- onCountFailed: () => D7({ count: !1 }),
- emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : TK({
- jav: o7() && !t,
+ onCount: aze,
+ onCountFailed: () => k7({ count: !1 }),
+ emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : DK({
+ jav: c7() && !t,
configurable: du,
filtered: !t
}),
canLoadMore: () => L("#stats").hidden && L("#index").hidden
};
}
-function aze(e) {
+function cze(e) {
let t = L("#count");
- return X.controller.page === "/junk-files" && W7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (H7(), R5("正在读取垃圾文件")), G5(), z7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), rze(e);
+ return X.controller.page === "/junk-files" && K7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (W7(), B5("正在读取垃圾文件")), q5(), V7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), oze(e);
}
-async function oze(e, t) {
+async function lze(e, t) {
let n = [e.id], r = t === "dispose", i = t === "reconsider-junk";
try {
await Tn("/api/batch", {
@@ -82494,24 +82507,24 @@ async function oze(e, t) {
operation: t,
...r ? { disposal_reason: "junk" } : {}
})
- }), await B7();
+ }), await H7();
let e = r ? "restore" : i ? "dismiss-junk" : "reconsider-junk";
- E8.actionReceipt(r ? "已移入回收站" : i ? "已重新加入垃圾判断" : "已标记为不是垃圾", { undo: async () => {
+ O8.actionReceipt(r ? "已移入回收站" : i ? "已重新加入垃圾判断" : "已标记为不是垃圾", { undo: async () => {
await Tn("/api/batch", {
method: "POST",
body: JSON.stringify({
ids: n,
operation: e
})
- }), await B7();
+ }), await H7();
} });
} catch (e) {
- throw E8.actionFailure("操作", e), e;
+ throw O8.actionFailure("操作", e), e;
}
}
-function sze() {
+function uze() {
return {
- ...PU(location.search),
+ ...IU(location.search),
helpers: X.junkQueueHelpers,
actions: X.junkQueueActions,
batchSize: Z.appSettings.batchSize,
@@ -82519,16 +82532,16 @@ function sze() {
selectMode: Ql,
selected: new Set(Xl),
countRow: L("#count"),
- settled: V7,
- skeletonHtml: () => A2("正在读取垃圾文件", {
+ settled: U7,
+ skeletonHtml: () => M2("正在读取垃圾文件", {
cards: !0,
className: "catalog-skeleton postercard-skeleton"
}),
canLoadMore: () => L("#stats").hidden && L("#index").hidden
};
}
-function cze() {
- X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => D8(e, t, Z.appSettings, n), W(O8(hLe(location, Z.appSettings, E8.rollSeed))), X.searchValueSnapshot = {
+function dze() {
+ X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => k8(e, t, Z.appSettings, n), W(A8(vLe(location, Z.appSettings, O8.rollSeed))), X.searchValueSnapshot = {
text: "",
scrollLeft: 0
}, X.cancelSearchDissolve = () => {}, X.rememberSearchValue = (e = L("#q")) => {
@@ -82549,52 +82562,52 @@ function cze() {
};
};
}
-function lze() {
- H8.handler(L("#wallBtn"), "onclick", () => {
- A5(!1, !0);
- let e = c5(), t = {
+function fze() {
+ W8.handler(L("#wallBtn"), "onclick", () => {
+ M5(!1, !0);
+ let e = u5(), t = {
...Y.activeFilterState(),
- jav: o7() ? "1" : ""
+ jav: c7() ? "1" : ""
};
- e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(zxe(void 0, t));
+ e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(Hxe(void 0, t));
}), X.mixRelatedCache = /* @__PURE__ */ new Map(), X.reduceMotion = () => matchMedia("(prefers-reduced-motion:reduce)").matches, X.tagList = (e = U.tag) => String(e || "").split(",").filter(Boolean), X.tagPressed = (e, t) => X.tagList(e).includes(String(t)), X.withTagToggled = (e, t) => {
let n = X.tagList(e), r = n.indexOf(t);
return r >= 0 ? n.splice(r, 1) : n.push(t), n.join(",");
}, X.gridHelpers = {
badgeHtml: (e, t) => Z.srcBadge(e, t),
- titleHtml: (e, t) => BI(e, t),
- displayName: (e, t) => zI(e, t),
+ titleHtml: (e, t) => HI(e, t),
+ displayName: (e, t) => VI(e, t),
tagLabel: (e) => Ll(e)
}, X.gridActions = {
wallPlayer: async (e, t, n) => {
- let r = await s8(o9.stageHost);
+ let r = await l8(c9.stageHost);
return n.throwIfAborted(), r.mountWallPlayer(e, t, n);
},
- wallDetails: x7,
- open: (e, t) => XRe(e, t),
- openResource: (e, t) => c8()?.miniplayerTakesCard(e) ? c8().miniplayerPlay(e.id) : YRe(e, t),
- openShort: (e) => c8()?.miniplayerTakesCard(e) ? c8().miniplayerPlay(e.id) : g9(e.id),
- openShorts: () => g9(),
- openMix: (e, t) => bze(e, e, !0, t),
- openEntity: (e, t) => b5(e, t),
- openUnowned: () => y7({ owner: "none" }),
+ wallDetails: C7,
+ open: (e, t) => $Re(e, t),
+ openResource: (e, t) => u8()?.miniplayerTakesCard(e) ? u8().miniplayerPlay(e.id) : QRe(e, t),
+ openShort: (e) => u8()?.miniplayerTakesCard(e) ? u8().miniplayerPlay(e.id) : v9(e.id),
+ openShorts: () => v9(),
+ openMix: (e, t) => Cze(e, e, !0, t),
+ openEntity: (e, t) => S5(e, t),
+ openUnowned: () => x7({ owner: "none" }),
toggleTag: (e) => {
- T7((t) => {
+ D7((t) => {
t.tag = X.tagPressed(t.tag, e) ? "" : e;
});
},
- toggleSelection: (e, t) => j5(e, t),
- watchLater: (e, t) => ZRe(e, t),
- rate: (e, t, n, r) => $Re(e, t, n, r),
- resourceOperation: (e, t) => QRe(e, t),
- mixRelated: (e) => b7(e),
- canFlip: () => !Ql && !t9() && !window.__scrolling && !X.reduceMotion()
+ toggleSelection: (e, t) => N5(e, t),
+ watchLater: (e, t) => eze(e, t),
+ rate: (e, t, n, r) => nze(e, t, n, r),
+ resourceOperation: (e, t) => tze(e, t),
+ mixRelated: (e) => S7(e),
+ canFlip: () => !Ql && !r9() && !window.__scrolling && !X.reduceMotion()
}, X.topsQueryParams = (e, t = 0) => {
let n = new URLSearchParams({
n: "60",
seed: U.seed || ""
});
- return t && n.set("page", String(t)), o7() && n.set("jav", "1"), e.type === "home" && U.state && n.set("state", U.state), e.type === "home" && U.folder && (n.set("folder", U.folder), U.folder_recursive && n.set("folder_recursive", U.folder_recursive)), n;
+ return t && n.set("page", String(t)), c7() && n.set("jav", "1"), e.type === "home" && U.state && n.set("state", U.state), e.type === "home" && U.folder && (n.set("folder", U.folder), U.folder_recursive && n.set("folder_recursive", U.folder_recursive)), n;
}, X.facetCountsSeq = 0, X.VIEW_PILLS = [
{
k: "",
@@ -82615,38 +82628,38 @@ function lze() {
], X.catalogViews = () => X.VIEW_PILLS.map((e) => ({
...e,
href: e.k ? On[e.k] : "/"
- })), X.TAGS_FIRST = 26, H8.listen(L("#catalogFilter"), "click", (e) => {
+ })), X.TAGS_FIRST = 26, W8.listen(L("#catalogFilter"), "click", (e) => {
let t = e.target.closest?.("[data-catalog-view]");
- t && !e.defaultPrevented && (e.preventDefault(), O7().setView(t.dataset.catalogView));
+ t && !e.defaultPrevented && (e.preventDefault(), A7().setView(t.dataset.catalogView));
}), X.catalogOnScreen = () => L("#index").hidden && L("#stats").hidden, X.COMBO_LABELS = {
creator: "创作者",
studio: "厂牌",
owner: "归属"
}, X.hideCatalogCombo = () => {
- X.catalogFilterProps && D7({ comboHidden: !0 });
+ X.catalogFilterProps && k7({ comboHidden: !0 });
};
}
-function uze() {
+function pze() {
X.junkQueueHelpers = { badgeHtml: (e, t) => Z.srcBadge(e, t) }, X.junkQueueActions = {
navigate: (e) => {
- Ql && A5(!1, !0), Q.route(e);
+ Ql && M5(!1, !0), Q.route(e);
},
- toggleSelection: (e, t) => j5(e, t),
- open: (e, t) => e.junk_kind === "image" ? window.open("/photo?id=" + e.id, "_blank", "noopener") : p9(e.id, !0, null, t),
+ toggleSelection: (e, t) => N5(e, t),
+ open: (e, t) => e.junk_kind === "image" ? window.open("/photo?id=" + e.id, "_blank", "noopener") : h9(e.id, !0, null, t),
reveal: async (e) => {
try {
return await Tn("/api/reveal", {
method: "POST",
body: JSON.stringify({ id: e.id })
- }), E8.toast({ text: "已在资源管理器中显示" }), "";
+ }), O8.toast({ text: "已在资源管理器中显示" }), "";
} catch (e) {
return Y.sourceHint(e.message);
}
},
- operate: (e, t) => oze(e, t)
+ operate: (e, t) => lze(e, t)
};
}
-X.controller = new yLe();
+X.controller = new SLe();
// src/application/preferences.js
var Z = {
sourceOnline: void 0,
@@ -82669,8 +82682,8 @@ var Z = {
emptyState: void 0,
CENSOR_KEY: void 0
};
-async function Q7() {
- let e = H8;
+async function e9() {
+ let e = W8;
try {
let t = await Sr(e.signal);
if (!e.isActive) return Z.sourceOnline;
@@ -82680,18 +82693,18 @@ async function Q7() {
if (!e.isActive) return Z.sourceOnline;
Z.sourceOnline = {}, Z.sourceProblems = {};
}
- return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), qRe(), Z.sourceOnline;
+ return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), XRe(), Z.sourceOnline;
}
-function $7() {
+function t9() {
let e = Q.surfacePath();
- if (!jn(e) || e === "/junk-files") return B7();
+ if (!jn(e) || e === "/junk-files") return H7();
let t = Z.nextCatalogLoad();
- return kp(v7(), {
+ return Pp(b7(), {
replace: !0,
- state: Op.navigation.location.state
+ state: Np.navigation.location.state
}), t;
}
-function dze(e) {
+function mze(e) {
if (e === "local") return {
kind: "glyph",
name: "hard-drive"
@@ -82712,7 +82725,7 @@ function dze(e) {
cost: "free"
};
}
-function e9(e, t) {
+function n9(e, t) {
let n = (e, t = (e) => e.label || Ll(e.k)) => (e || []).map((e) => ({
value: String(e.k),
label: t(e),
@@ -82723,7 +82736,7 @@ function e9(e, t) {
value: e.k,
label: nr[e.k] || e.k,
n: e.n ?? null,
- dot: dze(e.k),
+ dot: mze(e.k),
...Z.sourceOffline(e.k) ? { offline: Z.OFFLINE_HINT } : {}
})),
regions: n(e.regions),
@@ -82736,25 +82749,25 @@ function e9(e, t) {
duration: !!e.stats?.duration
};
}
-async function fze(e = !1) {
- if (e && (document.hidden || !jn(decodeURIComponent(location.pathname)) || o9.stageOpen() || o9.immerseOpen() || Ql || Xl.size || document.activeElement === L("#q"))) return !1;
+async function hze(e = !1) {
+ if (e && (document.hidden || !jn(decodeURIComponent(location.pathname)) || c9.stageOpen() || c9.immerseOpen() || Ql || Xl.size || document.activeElement === L("#q"))) return !1;
if (!L("#stats").hidden) {
let e = decodeURIComponent(location.pathname), t = Q.routeMeta(e)?.route.refresh;
if (t === "skip") return;
if (e === "/playlists") {
- C5();
+ T5();
return;
}
let n = t === "reopen" ? e : "/stats";
- sm(), n === e ? Q.navigatePath(location.pathname + location.search + location.hash, !0, Op.navigation.location.state) : Q.navigatePath(n);
+ fm(), n === e ? Q.navigatePath(location.pathname + location.search + location.hash, !0, Np.navigation.location.state) : Q.navigatePath(n);
} else if (L("#index").hidden) {
- U.sort = "seed", U.dir = "", U.seed = E8.rollSeed(), Su(), M8(), D7({ refreshing: !0 });
+ U.sort = "seed", U.dir = "", U.seed = O8.rollSeed(), Su(), P8(), k7({ refreshing: !0 });
try {
- sm();
- let e = $7();
- await null, await Promise.all([e, F7()]);
+ fm();
+ let e = t9();
+ await null, await Promise.all([e, L7()]);
} finally {
- D7({ refreshing: !1 });
+ k7({ refreshing: !1 });
}
return e || window.scrollTo({
top: 0,
@@ -82762,77 +82775,77 @@ async function fze(e = !1) {
}), !0;
}
}
-function t9() {
+function r9() {
return document.body.classList.contains("censor");
}
-function n9(e) {
+function i9(e) {
document.body.classList.toggle("censor", e), Z.settingsStore.notify();
}
-function r9(e) {
- localStorage.setItem(Z.CENSOR_KEY, e ? "1" : "0"), n9(e), e && Nl();
+function a9(e) {
+ localStorage.setItem(Z.CENSOR_KEY, e ? "1" : "0"), i9(e), e && Nl();
}
-function i9() {
- return r1(localStorage.getItem("peach.sfw-shortcut")) || r1("Shift+KeyS");
+function o9() {
+ return a1(localStorage.getItem("peach.sfw-shortcut")) || a1("Shift+KeyS");
}
-function pze(e) {
- e ? localStorage.setItem(t1, i1(e)) : localStorage.removeItem(t1), Z.settingsStore.notify();
+function gze(e) {
+ e ? localStorage.setItem(r1, o1(e)) : localStorage.removeItem(r1), Z.settingsStore.notify();
}
-function mze(e) {
+function _ze(e) {
localStorage.setItem("peach.high-contrast", String(e)), document.documentElement.classList.toggle("board-high-contrast", e), Z.settingsStore.notify();
}
-function a9(e) {
+function s9(e) {
return Ac(e, { drag: !0 });
}
-function hze() {
- ["#nrow", "#count"].forEach((e) => a9(L(e))), document.querySelectorAll(".tier,.srow").forEach(a9);
+function vze() {
+ ["#nrow", "#count"].forEach((e) => s9(L(e))), document.querySelectorAll(".tier,.srow").forEach(s9);
}
-function gze() {
+function yze() {
let e = new URLSearchParams(location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
-function _ze() {
+function bze() {
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 = $j(), Z.appSettings = Z.settingsStore.value, Zt(Z.appSettings.performerNameLanguage), Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), Zo(Z.appSettings.uiSounds), rs(), rM(), jle(), OM(), jM(), MM(), Z.catalogLoadWaiters = [], Z.nextCatalogLoad = () => new Promise((e) => Z.catalogLoadWaiters.push(e)), Z.handOff = (e) => (Z.catalogLoadWaiters.splice(0).forEach((t) => t(e)), e), Z.settingsEffects = {
+ }, Z.offlineReason = (e) => Z.sourceProblems[e] || Z.OFFLINE_REASON[e] || "无法读取这个来源的媒体目录,请检查目录权限及挂载状态。", Z.settingsStore = tM(), Z.appSettings = Z.settingsStore.value, Zt(Z.appSettings.performerNameLanguage), Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), Zo(Z.appSettings.uiSounds), rs(), aM(), Ple(), AM(), NM(), PM(), 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 = {
performerNameLanguage: () => {
- Zt(Z.appSettings.performerNameLanguage), L5.syncPageTitle(location.href), X.barsRendered = "", F7();
+ Zt(Z.appSettings.performerNameLanguage), z5.syncPageTitle(location.href), X.barsRendered = "", L7();
},
- theme: () => rM(),
+ theme: () => aM(),
uiSounds: () => {
Zo(Z.appSettings.uiSounds), Z.appSettings.uiSounds && Qo("toggle-on");
},
- glowFrame: () => AM(),
+ glowFrame: () => MM(),
glow: () => {
- AM(), jM();
+ MM(), NM();
},
batchSize: () => {
- location.pathname === "/" && B7();
+ location.pathname === "/" && H7();
},
defaultSort: () => {
- U.sort = Z.appSettings.defaultSort, U.dir = Nj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Su(), location.pathname === "/" && $7();
+ U.sort = Z.appSettings.defaultSort, U.dir = Fj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Su(), location.pathname === "/" && t9();
},
sortDirection: () => {
- U.dir = Nj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Su(), location.pathname === "/" && $7();
+ U.dir = Fj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Su(), location.pathname === "/" && t9();
},
hoverDelay: () => {
Z.appSettings.hoverDelaySeconds || document.querySelectorAll("[data-previewing],[data-longhover]").forEach((e) => {
Fl(e, "previewing", !1), Fl(e, "longhover", !1);
}), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`);
},
- seekSeconds: () => Z7(),
- groupCollapse: () => f7(),
- feedAutoScroll: () => GLe(),
- feedLimit: () => i5(),
- feedCompilations: () => i5(),
+ seekSeconds: () => $7(),
+ groupCollapse: () => m7(),
+ feedAutoScroll: () => JLe(),
+ feedLimit: () => o5(),
+ feedCompilations: () => o5(),
miniplayer: () => {
- Z.appSettings.miniplayer || c8()?.closeMiniplayer();
+ Z.appSettings.miniplayer || u8()?.closeMiniplayer();
},
javImage: () => {
- ao(document, Z.appSettings.javImage), Z7(), document.querySelectorAll("img[data-jav-image].cover").forEach(fl), yze();
+ ao(document, Z.appSettings.javImage), $7(), document.querySelectorAll("img[data-jav-image].cover").forEach(fl), Sze();
},
- searchHistoryLimit: () => gp(L("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })
+ searchHistoryLimit: () => xp(L("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })
}, Z.syncGlassOptics = () => {}, Z.placeSidebarHead = () => {}, Z.SRCICON = {
...Object.fromEntries(Object.entries(_s).map(([e, t]) => [e, t.startsWith("data:") ? `<img class="source-icon" src="${t}" alt="">` : R(t)])),
online: R("rss")
@@ -82841,11 +82854,11 @@ function _ze() {
return `<span class="${n || "src"} ${t === "metered" ? "metered" : "free"}" title="${z(r)}" aria-label="${z(r)}">` + (Z.SRCICON[e] || "") + "</span>";
}, Z.emptyState = Ws;
}
-function vze() {
- Z.CENSOR_KEY = "peach-censor", n9(localStorage.getItem(Z.CENSOR_KEY) === "1");
+function xze() {
+ Z.CENSOR_KEY = "peach-censor", i9(localStorage.getItem(Z.CENSOR_KEY) === "1");
}
// src/application/media.js
-var o9 = {
+var c9 = {
total: void 0,
facets: void 0,
stageHost: void 0,
@@ -82856,18 +82869,18 @@ var o9 = {
immerseOpen: void 0,
requestedImmerseId: void 0
};
-function s9() {
+function l9() {
let e = Number(new URLSearchParams(location.search).get("t"));
return Number.isFinite(e) && e > 0 ? {
time: e,
autoplay: !1
} : null;
}
-function c9() {
- return c8()?.exit() || Promise.resolve();
+function u9() {
+ return u8()?.exit() || Promise.resolve();
}
-function l9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null } = {}) {
- Q.queueOpenRequest !== r && b9(), c8()?.dispose({ miniplayer: n }), W({
+function d9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null } = {}) {
+ Q.queueOpenRequest !== r && S9(), u8()?.dispose({ miniplayer: n }), W({
activeQueue: null,
pendingQueueRoute: null,
presentedItem: null
@@ -82875,12 +82888,12 @@ function l9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null
detailOriginAnchor: null,
detailOriginAbove: !1,
detailReturnNeedsRestore: !1
- }), g7(), e && Q.route(nu || "/");
+ }), v7(), e && Q.route(nu || "/");
}
-function yze() {
- c8()?.repaintPoster();
+function Sze() {
+ u8()?.repaintPoster();
}
-function u9(e, t, n, r, i = null, a = {}) {
+function f9(e, t, n, r, i = null, a = {}) {
t = +t;
let o = ou?.kind === e && (e === "playlist" ? ou.playlistId : ou.seedId) === t;
r && !o && W({ detailReturnPath: location.pathname + location.search }), r && Wf();
@@ -82894,38 +82907,38 @@ function u9(e, t, n, r, i = null, a = {}) {
fresh: !o
};
if (a.autoplay && (s.autoplay = !0), r) {
- b9();
+ S9();
let e = Q.queueOpenRequest = {
- seq: Op.navigation.seq,
+ seq: Np.navigation.seq,
cancelled: !1
};
- Q.requestedQueue = () => p9(n == null ? null : +n, !1, s, i, !0, e), W({ queueOpens: mu + 1 });
- } else return p9(n == null ? null : +n, !1, s, i, r);
+ Q.requestedQueue = () => h9(n == null ? null : +n, !1, s, i, !0, e), W({ queueOpens: mu + 1 });
+ } else return h9(n == null ? null : +n, !1, s, i, r);
}
-function bze(e, t = e, n = !0, r = null) {
- return u9("mix", e, t, n, r);
+function Cze(e, t = e, n = !0, r = null) {
+ return f9("mix", e, t, n, r);
}
-function xze(e, t = e, n = !0, r = null) {
- return u9("editions", e, t, n, r);
+function wze(e, t = e, n = !0, r = null) {
+ return f9("editions", e, t, n, r);
}
-function Sze(e, t = e, n = !0, r = null) {
- return u9("parts", e, t, n, r);
+function Tze(e, t = e, n = !0, r = null) {
+ return f9("parts", e, t, n, r);
}
-function d9(e, t = null, n = !0) {
- return u9("playlist", e, t, n);
+function p9(e, t = null, n = !0) {
+ return f9("playlist", e, t, n);
}
-function f9() {
+function m9() {
return !!L("#grid").querySelector("[data-id],[data-mix-seed]") || !!document.querySelector("[data-video-wall]") || !L("#index").hidden || !L("#stats").hidden;
}
-async function p9(e, t = !0, n = null, r = null, i = !1, a = null) {
+async function h9(e, t = !0, n = null, r = null, i = !1, a = null) {
if (a?.cancelled) return;
- if (a || b9(), t && !n) {
- W({ detailReturnPath: location.pathname + location.search }), x9("/assets/" + +e, "item", () => p9(e, !1, null, r));
+ if (a || S9(), t && !n) {
+ W({ detailReturnPath: location.pathname + location.search }), C9("/assets/" + +e, "item", () => h9(e, !1, null, r));
return;
}
Nl(), e = e == null ? null : +e;
- let o = r?.isConnected ? r : ru?.isConnected ? ru : null, s = r?.isConnected ? r.getBoundingClientRect().top + r.getBoundingClientRect().height / 2 > window.innerHeight / 2 : iu, c = f9(), l = au || !t && !c, u = Jl.type === "item" ? Yl : Y.cloneBarsContext(c5());
- t ? W({ detailReturnPath: location.pathname + location.search }) : i || W({ detailReturnPath: qf() || nu }), t && Wf(), c8()?.showing() !== "item" && l9(!1, !0, {
+ let o = r?.isConnected ? r : ru?.isConnected ? ru : null, s = r?.isConnected ? r.getBoundingClientRect().top + r.getBoundingClientRect().height / 2 > window.innerHeight / 2 : iu, c = m9(), l = au || !t && !c, u = Jl.type === "item" ? Yl : Y.cloneBarsContext(u5());
+ t ? W({ detailReturnPath: location.pathname + location.search }) : i || W({ detailReturnPath: qf() || nu }), t && Wf(), u8()?.showing() !== "item" && d9(!1, !0, {
miniplayer: !1,
preserveQueueRequest: a
}), W({
@@ -82937,113 +82950,113 @@ async function p9(e, t = !0, n = null, r = null, i = !1, a = null) {
seedId: n.seedId,
playlistId: n.playlistId
} }), W({ pendingQueueRoute: n && i ? `${n.kind}=${n.kind === "playlist" ? n.playlistId : n.seedId}` : null }), t && !n && Q.route("/assets/" + e, !1, Jf("item"));
- let d = await s8(o9.stageHost);
+ let d = await l8(c9.stageHost);
if (a?.cancelled) return;
let f = a ? {
- ...o9.itemDetailActions,
+ ...c9.itemDetailActions,
present: (e, t) => {
- a.cancelled || o9.itemDetailActions.present(e, t);
+ a.cancelled || c9.itemDetailActions.present(e, t);
},
redirect: (e) => {
- a.cancelled || o9.itemDetailActions.redirect(e);
+ a.cancelled || c9.itemDetailActions.redirect(e);
}
- } : o9.itemDetailActions;
+ } : c9.itemDetailActions;
await d.open({
kind: "item",
id: e,
queue: n,
relatedLimit: Z.appSettings.relatedLimit > 0 ? +Z.appSettings.relatedLimit : 0,
- helpers: o9.itemDetailHelpers,
+ helpers: c9.itemDetailHelpers,
actions: f,
grid: {
helpers: X.gridHelpers,
actions: X.gridActions
},
- layout: J7(),
+ layout: X7(),
selectMode: Ql,
selected: new Set(Xl),
seekSeconds: Z.appSettings.seekSeconds,
- resume: t || e == null ? null : s9()
- }), g7();
+ resume: t || e == null ? null : l9()
+ }), v7();
}
-async function m9() {
+async function g9() {
let e = Y.cloneBarsContext(Yl), t = nu || "/", n = au;
- await c9(), l9(!1, !1, { miniplayer: !1 }), W({ detailReturnBarsContext: null }), Gf(), W({ barsContext: e || {
+ await u9(), d9(!1, !1, { miniplayer: !1 }), W({ detailReturnBarsContext: null }), Gf(), W({ barsContext: e || {
type: "home",
filters: U
- } }), n && Q.managedPagePath(new URL(t, location.href).pathname) ? Q.navigatePath(t) : (Q.route(t), n ? W({ pageOpens: pu + 1 }) : (F7(), location.pathname === "/playlists" && C5()));
+ } }), n && Q.managedPagePath(new URL(t, location.href).pathname) ? Q.navigatePath(t) : (Q.route(t), n ? W({ pageOpens: pu + 1 }) : (L7(), location.pathname === "/playlists" && T5()));
}
-async function h9(e, t = !0) {
+async function _9(e, t = !0) {
if (t) {
- W({ detailReturnPath: location.pathname + location.search }), x9("/works/" + encodeURIComponent(e), "jav", () => h9(e, !1));
+ W({ detailReturnPath: location.pathname + location.search }), C9("/works/" + encodeURIComponent(e), "jav", () => _9(e, !1));
return;
}
- let n = Op.navigation.seq, r = Y.cloneBarsContext(c5()), i = !f9(), a = qf() || (i ? "/jav?tab=discover" : nu) || "/jav?tab=discover";
- c8()?.showing() !== "jav" && l9(!1, !0, { miniplayer: !1 }), W({
+ let n = Np.navigation.seq, r = Y.cloneBarsContext(u5()), i = !m9(), a = qf() || (i ? "/jav?tab=discover" : nu) || "/jav?tab=discover";
+ u8()?.showing() !== "jav" && d9(!1, !0, { miniplayer: !1 }), W({
detailReturnPath: a,
detailReturnBarsContext: r,
detailReturnNeedsRestore: i
}), Nl();
- let [o, s] = await Promise.all([s8(o9.stageHost), B("/healthz")]);
- Op.navigation.seq === n && (await o.open({
+ let [o, s] = await Promise.all([l8(c9.stageHost), B("/healthz")]);
+ Np.navigation.seq === n && (await o.open({
kind: "jav",
code: e,
readOnly: !!s.ledger_read_only,
actions: {
- close: () => void m9(),
+ close: () => void g9(),
navigate: (e) => Q.navigatePath(e),
canonicalCode: (t) => {
- Op.navigation.seq === n && t && t !== e && kp("/works/" + encodeURIComponent(t) + location.search + location.hash, {
+ Np.navigation.seq === n && t && t !== e && Pp("/works/" + encodeURIComponent(t) + location.search + location.hash, {
replace: !0,
- state: Op.navigation.location.state
+ state: Np.navigation.location.state
});
},
- openTag: (e) => T7((t) => {
+ openTag: (e) => D7((t) => {
t.tag = e;
}),
- receipt: (e) => E8.toast({ text: e })
+ receipt: (e) => O8.toast({ text: e })
}
- }), g7());
+ }), v7());
}
-async function g9(e = null, t = !0) {
- t ? (o9.requestedImmerseId = e, Q.route("/immerse")) : (c8()?.closeMiniplayer(), await (await sLe(o9.immerseHost)).open(e));
+async function v9(e = null, t = !0) {
+ t ? (c9.requestedImmerseId = e, Q.route("/immerse")) : (u8()?.closeMiniplayer(), await (await uLe(c9.immerseHost)).open(e));
}
-function Cze() {
- o9.total = 0, o9.facets = null, o9.stageHost = {
+function Eze() {
+ c9.total = 0, c9.facets = null, c9.stageHost = {
player: {
settings: () => Z.appSettings,
saveSettings: () => Z.saveSettings(),
- toast: (e, t) => E8.toast({ text: e }, t),
- loadSourceStatus: () => Q7(),
+ toast: (e, t) => O8.toast({ text: e }, t),
+ loadSourceStatus: () => e9(),
offlineReason: (e) => Z.offlineReason(e)
},
sourceOffline: (e) => Z.sourceOffline(e),
expand: (e, t, n) => {
- e === "follow" ? A9(t, !0, n) : p9(t, !0);
+ e === "follow" ? M9(t, !0, n) : h9(t, !0);
},
- openItem: (e) => void p9(e)
- }, o9.stageOpen = () => !!c8()?.isOpen();
+ openItem: (e) => void h9(e)
+ }, c9.stageOpen = () => !!u8()?.isOpen();
}
-function wze() {
- o9.itemDetailHelpers = {
+function Dze() {
+ c9.itemDetailHelpers = {
badgeHtml: (e, t, n) => Z.srcBadge(e, t, n),
- titleHtml: (e) => BI(e),
- displayName: (e) => zI(e),
+ titleHtml: (e) => HI(e),
+ displayName: (e) => VI(e),
javImage: () => Z.appSettings.javImage,
tagLabel: (e) => Ll(e),
isDurationTag: (e) => ar.has(e),
- tagCandidates: () => o9.facets && o9.facets.tags || [],
+ tagCandidates: () => c9.facets && c9.facets.tags || [],
sourceOffline: (e) => Z.sourceOffline(e),
offlineReason: (e) => Z.offlineReason(e),
- relatedSkeletonHtml: () => A2("正在读取推荐", {
+ relatedSkeletonHtml: () => M2("正在读取推荐", {
cards: !0,
className: "related-skeleton"
}),
- mixRelated: (e) => b7(e),
- wireDrag: (e) => a9(e),
+ mixRelated: (e) => S7(e),
+ wireDrag: (e) => s9(e),
wireDragReorder: (e, t) => al(e, t)
- }, o9.itemDetailActions = {
- close: () => m9(),
+ }, c9.itemDetailActions = {
+ close: () => g9(),
present: (e) => {
W({ presentedItem: e });
let t = Yl;
@@ -83051,57 +83064,57 @@ function wze() {
type: "item",
id: e.id,
filters: t?.type === "entity" ? { ...t.filters } : Y.emptyEntityFilters()
- } }), su && (Q.queueOpenRequest = null, Q.route(`/assets/${e.id}?${su}`, !1, Jf("item")), W({ pendingQueueRoute: null })), F7();
+ } }), su && (Q.queueOpenRequest = null, Q.route(`/assets/${e.id}?${su}`, !1, Jf("item")), W({ pendingQueueRoute: null })), L7();
},
redirect: (e) => {
let t = !!su;
e.kind === "follow" ? (Q.queueOpenRequest = null, W({
pendingQueueRoute: null,
followDetailReturnPath: nu || "/"
- }), Q.route(`/posts/${e.id}`, !t, Jf("follow")), A9(e.id, !1, null, !0)) : e.kind === "item" ? p9(e.id, !0) : e.kind === "playlists" ? t || location.pathname !== "/playlists" ? C9("/playlists") : C5() : l9(!1);
+ }), Q.route(`/posts/${e.id}`, !t, Jf("follow")), M9(e.id, !1, null, !0)) : e.kind === "item" ? h9(e.id, !0) : e.kind === "playlists" ? t || location.pathname !== "/playlists" ? T9("/playlists") : T5() : d9(!1);
},
- openQueueItem: (e, t, n = !0) => void u9(e.kind, e.kind === "playlist" ? e.playlistId : e.seedId, t, n, null, { autoplay: e.autoplay }),
+ openQueueItem: (e, t, n = !0) => void f9(e.kind, e.kind === "playlist" ? e.playlistId : e.seedId, t, n, null, { autoplay: e.autoplay }),
reopen: () => {
let e = cu;
if (!e) return;
let t = ou;
- t ? u9(t.kind, t.kind === "playlist" ? t.playlistId : t.seedId, e.id, !1) : p9(e.id, !1);
+ t ? f9(t.kind, t.kind === "playlist" ? t.playlistId : t.seedId, e.id, !1) : h9(e.id, !1);
},
- checkSource: async (e) => (await Q7())[e] !== !1,
+ checkSource: async (e) => (await e9())[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", C9(w9());
+ $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followDurMin = $.followDurMax = 0, $.followFilter = "saved", T9(E9());
},
- openEntity: (e, t) => b5(e, t),
- openUnowned: () => y7({ owner: "none" }),
- openRegion: (e) => y7({ region: e || "none" }),
- openTag: (e) => T7((t) => {
+ openEntity: (e, t) => S5(e, t),
+ openUnowned: () => x7({ owner: "none" }),
+ openRegion: (e) => x7({ region: e || "none" }),
+ openTag: (e) => D7((t) => {
t.tag = e;
}),
- addToPlaylist: (e) => aRe(e),
- saveMix: (e) => iRe(e),
- editPlaylist: () => C9("/playlists"),
- openPlaylists: () => C9("/playlists"),
- reveal: (e) => h5(e),
- sync: (e) => XLe(e),
+ addToPlaylist: (e) => cRe(e),
+ saveMix: (e) => sRe(e),
+ editPlaylist: () => T9("/playlists"),
+ openPlaylists: () => T9("/playlists"),
+ reveal: (e) => _5(e),
+ sync: (e) => $Le(e),
trashChanged: async (e, t) => {
- U.state === "ads" && (t || e === "trash") && (t || (Gf(), l9(!0, !1, { miniplayer: !1 })), await B7());
+ U.state === "ads" && (t || e === "trash") && (t || (Gf(), d9(!0, !1, { miniplayer: !1 })), await H7());
},
- toast: (e, { undo: t } = {}) => E8.actionReceipt(e, { undo: t }),
- failure: (e, t) => E8.actionFailure(e, t)
- }, o9.immerseHost = {
+ toast: (e, { undo: t } = {}) => O8.actionReceipt(e, { undo: t }),
+ failure: (e, t) => O8.actionFailure(e, t)
+ }, c9.immerseHost = {
filters: () => U,
seekSeconds: () => Z.appSettings.seekSeconds,
sourceOffline: (e) => Z.sourceOffline(e),
- displayName: (e) => zI(e),
+ displayName: (e) => VI(e),
route: (e) => Q.route("/immerse?id=" + e, !0),
- closed: () => y7(),
- openItem: (e) => void p9(e),
- openEntity: (e, t) => b5(e, t),
- openUnowned: () => y7({ owner: "none" }),
- toast: (e, { undo: t } = {}) => E8.actionReceipt(e, { undo: t }),
- warn: (e) => E8.toast({ text: e }, { sound: "warning" }),
- failure: (e, t) => E8.actionFailure(e, t)
- }, o9.immerseOpen = () => !!d8()?.isOpen(), H8.handler(L("#immerseBtn"), "onclick", () => g9());
+ closed: () => x7(),
+ openItem: (e) => void h9(e),
+ openEntity: (e, t) => S5(e, t),
+ openUnowned: () => x7({ owner: "none" }),
+ toast: (e, { undo: t } = {}) => O8.actionReceipt(e, { undo: t }),
+ warn: (e) => O8.toast({ text: e }, { sound: "warning" }),
+ failure: (e, t) => O8.actionFailure(e, t)
+ }, c9.immerseOpen = () => !!p8()?.isOpen(), W8.handler(L("#immerseBtn"), "onclick", () => v9());
}
// src/application/navigation.js
var Q = {
@@ -83123,40 +83136,40 @@ var Q = {
queueOpenRequest: void 0,
initialOverlayOpened: void 0
};
-function _9() {
- let e = _8();
- e ? e.navChanged() : L("#drawerScroll")?.querySelectorAll("[data-nav]").forEach((e) => e.setAttribute("aria-pressed", String(p7(e.dataset.nav))));
+function y9() {
+ let e = y8();
+ e ? e.navChanged() : L("#drawerScroll")?.querySelectorAll("[data-nav]").forEach((e) => e.setAttribute("aria-pressed", String(h7(e.dataset.nav))));
}
-function v9(e = {}) {
+function b9(e = {}) {
let t = Q.surfacePath();
- t !== H5.sidebarSurface && (H5.sidebarSurface = t, H5.sidebarProps = {
- ...H5.sidebarProps,
+ t !== W5.sidebarSurface && (W5.sidebarSurface = t, W5.sidebarProps = {
+ ...W5.sidebarProps,
content: null,
latest: null
- }), H5.sidebarProps = {
- ...H5.sidebarProps,
+ }), W5.sidebarProps = {
+ ...W5.sidebarProps,
...e
- }, _8()?.render(H5.sidebarProps);
+ }, y8()?.render(W5.sidebarProps);
}
-function y9() {
- v9(), _9(), h7();
+function x9() {
+ b9(), y9(), _7();
}
-function b9() {
+function S9() {
Q.queueOpenRequest && (Q.queueOpenRequest.cancelled = !0), Q.queueOpenRequest = null, Q.requestedQueue = null, W({ pendingQueueRoute: null });
}
-function x9(e, t, n) {
- b9(), Wf(), Q.requestedOverlay = {
+function C9(e, t, n) {
+ S9(), Wf(), Q.requestedOverlay = {
path: e,
open: n
}, Q.route(e, !1, Jf(t));
}
-function S9() {
- Q.surfaceEpoch++, X.barsRequestSeq++, L5.syncPageTitle(location.href), v9(), Gf();
+function w9() {
+ Q.surfaceEpoch++, X.barsRequestSeq++, z5.syncPageTitle(location.href), b9(), Gf();
}
-function C9(e) {
+function T9(e) {
Q.route(e), W({ pageOpens: pu + 1 });
}
-function Tze() {
+function Oze() {
Q.routeMeta = (e) => {
let t = ep(e);
return t ? { route: t } : null;
@@ -83164,7 +83177,7 @@ function Tze() {
let t = ep(e);
return !!t && t.reload !== "reopen" && !Q.catalogPage(e) && !Bf(e) && e !== "/immerse";
}, Q.openRoutePath = (e) => {
- e === "/immerse" ? g9(gze()) : e === "/follow" ? k9() : e === "/playlists" || Q.catalogPage(e) ? C9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? CRe() : e) : (A5(!1, !0), C9(P5({
+ e === "/immerse" ? v9(yze()) : e === "/follow" ? j9() : e === "/playlists" || Q.catalogPage(e) ? T9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? ERe() : e) : (M5(!1, !0), T9(I5({
kind: e.slice(1),
q: "",
scope: "local",
@@ -83173,34 +83186,34 @@ function Tze() {
})));
};
}
-function Eze() {
+function kze() {
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) => (n5(e) || r5(), _p(L("#stats"), L("#index")), !jn(e) && e !== "/trash" && H7(), Q.surfaceRequests?.abort(), Q.surfaceRequests = new AbortController(), Q.surfaceEpoch++, Q.surfaceToken(e)), Q.route = (e, t = !1, n) => {
- Q.surfaceEpoch++, X.barsRequestSeq++, kp(e, {
+ }), Q.surfaceCurrent = (e) => e.epoch === Q.surfaceEpoch && Q.surfacePath() === e.path, Q.claimSurface = (e) => (i5(e) || a5(), Sp(L("#stats"), L("#index")), !jn(e) && e !== "/trash" && W7(), Q.surfaceRequests?.abort(), Q.surfaceRequests = new AbortController(), Q.surfaceEpoch++, Q.surfaceToken(e)), Q.route = (e, t = !1, n) => {
+ Q.surfaceEpoch++, X.barsRequestSeq++, Pp(e, {
replace: t,
state: n
- }), L5.syncPageTitle(e), queueMicrotask(() => {
- h7(), t7(), v9();
+ }), z5.syncPageTitle(e), queueMicrotask(() => {
+ _7(), r7(), b9();
});
}, Q.navigatePath = (e, t = !1, n) => {
- t ? Op.replace(e, n) : Op.push(e, n), queueMicrotask(() => {
- h7(), t7();
+ t ? Np.replace(e, n) : Np.push(e, n), queueMicrotask(() => {
+ _7(), r7();
});
}, Q.requestedOverlay = null, Q.requestedQueue = null, Q.queueOpenRequest = null, Q.initialOverlayOpened = !1;
}
// src/jobs.ts
-function Dze(e, t, n) {
+function Aze(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="${z(e)}" aria-valuemin="0" aria-valuemax="${n}" aria-valuenow="${r}"><svg width="36" height="36" viewBox="0 0 36 36" aria-hidden="true"><circle class="ui-board-job-track" cx="18" cy="18" r="15"/><circle class="ui-board-job-fill" cx="18" cy="18" r="15" pathLength="100" stroke-dasharray="${i} ${100 - i}" transform="rotate(-90 18 18)"/></svg><span>${z(e)}<small>${Math.round(i)}%</small></span></div>`;
}
-function Oze(e, t = 0, n = 0) {
- return n > 0 ? Dze(e, t, n) : Hs(e);
+function jze(e, t = 0, n = 0) {
+ return n > 0 ? Aze(e, t, n) : Hs(e);
}
-async function kze(e) {
+async function Mze(e) {
let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;
for (; e.active();) {
let r;
@@ -83215,14 +83228,14 @@ async function kze(e) {
await t(2e3);
}
}
-function Aze(e) {
+function Nze(e) {
let t = e.note || ((e) => zs(e, {
label: "任务状态",
variant: "error"
- })), n = e.loading || Hs, r = e.progress || ((e, t, n) => Oze(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 || Hs, r = e.progress || ((e, t, n) => jze(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;
- kze({
+ Mze({
read: e.read,
active: () => !c && e.active() && a.isConnected,
keepWatching: e.watchIdle !== !1,
@@ -83271,25 +83284,25 @@ var $ = {
FOLLOW_MANAGE_TABS: void 0,
followSidebarFilters: void 0
};
-function jze(e) {
+function Pze(e) {
let t = (e.results || []).filter((e) => !e.ok).length;
- E8.toast({ text: Hi(e) }, {
+ O8.toast({ text: Hi(e) }, {
warn: !!t,
timeout: t ? 8e3 : 6e3,
sound: t ? "warning" : "success",
action: {
label: "查看",
- run: () => k9(!0)
+ run: () => j9(!0)
}
});
}
-function w9() {
- return ka(T9());
+function E9() {
+ return ka(D9());
}
-function Mze() {
+function Fze() {
return $.controller.read();
}
-function T9() {
+function D9() {
return {
status: $.followFilter,
media: $.followMediaView,
@@ -83304,33 +83317,33 @@ function T9() {
seed: $.followSeed
};
}
-function E9(e) {
+function O9(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 Nze() {
- let e = lp(L("#stats"));
+function Ize() {
+ let e = mp(L("#stats"));
return e && e.path === "/follow" && e.host.isConnected ? e : null;
}
-function D9() {
- return !!Nze();
+function k9() {
+ return !!Ize();
}
-function O9(e) {
- D9() && gp(L("#stats"), e);
+function A9(e) {
+ k9() && xp(L("#stats"), e);
}
-function Pze(e, t = {}) {
+function Lze(e, t = {}) {
return $.controller.route(e, t);
}
-function k9(e = !1) {
+function j9(e = !1) {
$.controller.enter(e);
}
-async function A9(e, t = !0, n = null, r = !1) {
+async function M9(e, t = !0, n = null, r = !1) {
if (t) {
- !location.pathname.startsWith("/posts/") && !r && W({ followDetailReturnPath: location.pathname + location.search }), x9(`/posts/${+e}`, "follow", () => A9(e, !1, n, r));
+ !location.pathname.startsWith("/posts/") && !r && W({ followDetailReturnPath: location.pathname + location.search }), C9(`/posts/${+e}`, "follow", () => M9(e, !1, n, r));
return;
}
Nl(), e = +e;
let i = !location.pathname.startsWith("/posts/");
- t && i && !r && W({ followDetailReturnPath: location.pathname + location.search }), !t && !r && W({ followDetailReturnPath: qf() || "/follow" }), t && Wf(), c8()?.showing() !== "follow" && l9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, Jf("follow")), await (await s8(o9.stageHost)).open({
+ t && i && !r && W({ followDetailReturnPath: location.pathname + location.search }), !t && !r && W({ followDetailReturnPath: qf() || "/follow" }), t && Wf(), u8()?.showing() !== "follow" && d9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, Jf("follow")), await (await l8(c9.stageHost)).open({
kind: "follow",
id: e,
mediaIndex: n,
@@ -83338,67 +83351,67 @@ async function A9(e, t = !0, n = null, r = !1) {
relatedLimit: Z.appSettings.relatedLimit > 0 ? +Z.appSettings.relatedLimit : 0,
helpers: $.followFeedHelpers,
actions: $.followDetailActions,
- resume: t ? null : s9()
- }), g7();
+ resume: t ? null : l9()
+ }), v7();
}
-async function Fze() {
- await c9(), l9(!1, !1, { miniplayer: !1 }), Gf(), Q.route(lu || "/follow"), !(Y.entityPageView && Y.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && D9() ? (Mze(), O9({ view: T9() })) : W({ pageOpens: pu + 1 }));
+async function Rze() {
+ await u9(), d9(!1, !1, { miniplayer: !1 }), Gf(), Q.route(lu || "/follow"), !(Y.entityPageView && Y.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && k9() ? (Fze(), A9({ view: D9() })) : W({ pageOpens: pu + 1 }));
}
-function Ize(e) {
+function zze(e) {
let t = document.createElement("div");
return t.className = "peach-react", ic(e, () => {
e.textContent = "", e.append(t);
}), t;
}
-function Lze() {
+function Bze() {
$.followFeedHelpers = zl({
wireDrag: (e) => {
- e && a9(e);
+ e && s9(e);
},
wireScroller: (e) => {
e && Ac(e);
},
listSkeletonHtml: (e) => $.followContentSkeletonHtml(e),
- jobProgress: Aze
+ jobProgress: Nze
}), $.followFeedActions = {
- loaded: (e) => K5(e),
- openDetail: (e) => A9(e),
+ loaded: (e) => J5(e),
+ openDetail: (e) => M9(e),
openAuthor: (e) => Q.navigatePath(Pn("creator", e)),
- toggleSelection: (e, t) => dRe(e, t),
+ toggleSelection: (e, t) => mRe(e, t),
setImagesOnly: (e) => {
- Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), f5();
+ Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), m5();
},
setPhotoLayout: (e) => {
- bM(e), f5();
+ SM(e), m5();
},
- canFlip: () => !Ql && !t9() && !window.__scrolling && !X.reduceMotion(),
- toast: (e, { undo: t } = {}) => E8.actionReceipt(e, { undo: t }),
- failure: (e, t) => E8.actionFailure(e, t),
- checkReport: (e) => jze(e)
+ canFlip: () => !Ql && !r9() && !window.__scrolling && !X.reduceMotion(),
+ toast: (e, { undo: t } = {}) => O8.actionReceipt(e, { undo: t }),
+ failure: (e, t) => O8.actionFailure(e, t),
+ checkReport: (e) => Pze(e)
}, $.followFeedShell = {
skeleton: () => $.followSkeletonHtml("正在读取关注内容"),
ground: () => {
- c8()?.showing() !== "follow" && (Nl(), l9(!1), W5(), !D9() && (Q.claimSurface(Q.surfacePath()), U5({ manage: !1 }), L("#stats").querySelector(".peach-react") && _p(L("#stats")), L("#stats").replaceChildren()));
+ u8()?.showing() !== "follow" && (Nl(), d9(!1), K5(), !k9() && (Q.claimSurface(Q.surfacePath()), G5({ manage: !1 }), L("#stats").querySelector(".peach-react") && Sp(L("#stats")), L("#stats").replaceChildren()));
}
}, $.followDetailActions = ql({
- view: T9,
- adoptView: E9,
+ view: D9,
+ adoptView: O9,
rememberReturn: (e) => W({ followDetailReturnPath: e }),
- close: () => void Fze(),
- open: (e, t, n) => void A9(e, !0, t, n),
- drawer: K5,
+ close: () => void Rze(),
+ open: (e, t, n) => void M9(e, !0, t, n),
+ drawer: J5,
openAuthor: (e) => Q.navigatePath(Pn("creator", e))
}, {
- toast: (e, { undo: t } = {}) => E8.actionReceipt(e, { undo: t }),
- failure: E8.actionFailure,
+ toast: (e, { undo: t } = {}) => O8.actionReceipt(e, { undo: t }),
+ failure: O8.actionFailure,
canFlip: $.followFeedActions.canFlip
});
}
-function Rze() {
+function Vze() {
$.controller = Ma({
location: () => location,
- view: T9,
- adoptView: E9,
+ view: D9,
+ adoptView: O9,
session: () => ({
discoverySeed: gu,
revision: _u,
@@ -83412,61 +83425,61 @@ function Rze() {
preferences: () => ({
selectMode: Ql,
selected: Zl,
- photoSize: mM(),
- photoLayout: hM(),
+ photoSize: gM(),
+ photoLayout: _M(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
- live: D9,
- push: O9,
+ live: k9,
+ push: A9,
route: (e) => {
- Q.route(e), lm("follow", {
- view: T9(),
+ Q.route(e), mm("follow", {
+ view: D9(),
seed: gu,
revision: _u
});
},
- openPage: C9,
- rollSeed: () => Number(E8.rollSeed()),
+ openPage: T9,
+ rollSeed: () => Number(O8.rollSeed()),
enterSeed: () => Math.floor(Math.random() * 4294967295),
revealFeed: () => {
- Nl(), W5(), U5({ manage: !1 });
+ Nl(), K5(), G5({ manage: !1 });
},
- syncPhotoWalls: f5,
+ syncPhotoWalls: m5,
scrollTop: () => {
- pm(() => location.pathname === "/follow", L("#stats").querySelector("[data-filter-frame]"));
+ vm(() => location.pathname === "/follow", L("#stats").querySelector("[data-filter-frame]"));
}
}, $.followFeedHelpers, $.followFeedActions), $.followFeedActions = $.controller.actions, $.followFeedProps = $.controller.props, $.followFeedShell.refresh = $.controller.refresh, $.followFeedShell.props = $.controller.props;
}
// src/application/lifecycle.js
-function zze() {
- vDe(), Qc(document), Ro(document.documentElement, { variant: "page" }), Ro(L("#drawerScroll")), H8.own(Yc()), Wa(document.body), X.homeHasFeed = HLe(), X.barsRequestSeq = 0, X.barsPendingSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, H5.sidebarProps = {
+function Hze() {
+ xDe(), Qc(document), Ro(document.documentElement, { variant: "page" }), Ro(L("#drawerScroll")), W8.own(Yc()), Wa(document.body), X.homeHasFeed = GLe(), X.barsRequestSeq = 0, X.barsPendingSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, W5.sidebarProps = {
content: null,
filters: {},
latest: null
- }, H5.sidebarSurface = "", H5.sidebarCatalog = null, H5.sidebarContentSeq = 0, $.followFilter = "", $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.FOLLOW_FEED_SORTS = [
+ }, W5.sidebarSurface = "", W5.sidebarCatalog = null, W5.sidebarContentSeq = 0, $.followFilter = "", $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.FOLLOW_FEED_SORTS = [
["new", "更新时间"],
["hot", "热度"],
["dur", "时长"]
], $.FOLLOW_RANDOM_SORT = "rand", $.followSort = "new", $.followDir = "desc", $.followSeed = 0, $.followDurMin = 0, $.followDurMax = 0;
}
// src/application/tutorial.js
-async function Bze() {
- yU({ reopen: !0 });
+async function Uze() {
+ xU({ reopen: !0 });
}
-function Vze() {
+function Wze() {
let e = new URL(location.href), t = e.searchParams.get("onboarding") === "1";
- W({ cameFromSetup: t }), H8.handler(document.getElementById("tutorialBtn"), "onclick", () => yU()), yU({ invitation: !0 }), t && e.searchParams.delete("onboarding");
+ W({ cameFromSetup: t }), W8.handler(document.getElementById("tutorialBtn"), "onclick", () => xU()), xU({ invitation: !0 }), t && e.searchParams.delete("onboarding");
let n = e.searchParams.get("agentation");
try {
localStorage.removeItem("peach.agentation");
} catch {}
- n !== null && e.searchParams.delete("agentation"), e.href !== location.href && kp(e, {
+ n !== null && e.searchParams.delete("agentation"), e.href !== location.href && Pp(e, {
replace: !0,
- state: Op.navigation.location.state
+ state: Np.navigation.location.state
}), n === "on" && import("/dev/agentation.js").catch(() => {});
}
// src/react/search/recommendations.ts
-var j9 = [
+var N9 = [
{
kind: "performer",
label: "艺人与新作",
@@ -83517,15 +83530,15 @@ var j9 = [
size: 5
}
];
-function Hze() {
- return j9.map((e) => ({
+function Gze() {
+ return N9.map((e) => ({
...e,
items: [],
pending: !0
}));
}
-var Uze = (e) => e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10), M9 = (e, t = e.length) => t > 1 ? `${e[0]} 等 ${t} 人` : e[0] || "";
-async function Wze(e) {
+var Kze = (e) => e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10), P9 = (e, t = e.length) => t > 1 ? `${e[0]} 等 ${t} 人` : e[0] || "";
+async function qze(e) {
let t = await e("/api/search/recommendations"), n = (e, t, n, r = "") => ({
value: String(e.code || e.display_title || e.title || e.name || "未命名作品"),
id: e.id,
@@ -83539,10 +83552,10 @@ async function Wze(e) {
let { kind: t, name: r, coStarred: i, refs: a, total: o } = Ao(e);
if (!t) return n(e, void 0, "");
let s = t === "performer" ? a[0] : e.creator_entity, c = nn(t, r, s?.id);
- return n(e, void 0, i ? M9([c], o) : c, vo(r, s ?? null, t));
+ return n(e, void 0, i ? P9([c], o) : c, vo(r, s ?? null, t));
}, i = (e, t) => {
let r = e.performer_refs || [], i = r.length ? r.map((e) => e.name) : String(e.performers || "").split(/[,,、;/]/).map((e) => e.trim()).filter(Boolean), a = i[0] ? vo(i[0], r[0] ?? null, "performer") : "";
- return n(e, t, M9(i), a);
+ return n(e, t, P9(i), a);
}, a = {};
a.asset = t.items ? (t.items.items || []).map(r) : null;
let o = t.jav ? t.jav.items || [] : null;
@@ -83560,7 +83573,7 @@ async function Wze(e) {
avatar_focus: n.avatar_focus,
rep: n.has_avatar ? n.rep : null,
works: [e],
- subtitle: r ? `最新作 ${r.code || "无番号"} · ${Uze(r.release_date)}` : "最新作未取得"
+ subtitle: r ? `最新作 ${r.code || "无番号"} · ${Kze(r.release_date)}` : "最新作未取得"
});
}
a.performer = o && [...s.values()];
@@ -83575,9 +83588,9 @@ async function Wze(e) {
let i = ha(r);
for (let a of ["videos", "images"]) {
if (a === "images" ? !i.has("image") : i.size && !i.has("video")) continue;
- let o = ga(r, a), s = n.sources.find((e) => e.id === o.source_id), c = hG(o, s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], n), l = a === "images" ? o.media_items?.find((e) => e.media_kind === "image") : void 0;
+ let o = ga(r, a), s = n.sources.find((e) => e.id === o.source_id), c = _G(o, s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], n), l = a === "images" ? o.media_items?.find((e) => e.media_kind === "image") : void 0;
(a === "images" ? t : e).push({
- value: dG(o),
+ value: pG(o),
id: o.id,
who: c.author,
whoAvatarHtml: c.avatar,
@@ -83599,10 +83612,10 @@ async function Wze(e) {
}, `/works/${encodeURIComponent(e.code)}`)) : null, a.author = t.authors ? (t.authors.items || []).map((e) => ({
value: e.k,
href: e.entity_id ? `/creators/${e.entity_id}` : `/follow?author=${encodeURIComponent(e.key)}`,
- avatarHtml: B8(e),
- subtitle: e.latest ? `最新更新于 ${xG({ published_at: e.latest })}` : "更新时间未取得"
+ avatarHtml: H8(e),
+ subtitle: e.latest ? `最新更新于 ${CG({ published_at: e.latest })}` : "更新时间未取得"
})) : null, {
- groups: j9.map((e) => {
+ groups: N9.map((e) => {
let t = a[e.kind] ?? [];
return {
...e,
@@ -83615,7 +83628,7 @@ async function Wze(e) {
};
}
// src/application/search-morph.js
-function Gze(e, t, n, r, i, a, o) {
+function Jze(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);
@@ -83630,67 +83643,67 @@ function Gze(e, t, n, r, i, a, o) {
});
}
// src/application/search.js
-var N9 = {
+var F9 = {
searchControl: void 0,
searchActions: void 0,
searchHelpers: void 0,
searchMorph: void 0,
searchMorphViewport: void 0
};
-function P9() {
- N9.searchControl?.close();
+function I9() {
+ F9.searchControl?.close();
}
-function Kze(e) {
+function Yze(e) {
let t = e ? to({
...e,
is_jav: !!e.code
}, Z.appSettings.javImage) : "";
return t === "cover" ? So(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 F9() {
- N9.searchMorph?.cancel(), N9.searchMorph = null, L(".search").classList.remove("search-morphing");
+function L9() {
+ F9.searchMorph?.cancel(), F9.searchMorph = null, L(".search").classList.remove("search-morphing");
}
-function I9(e) {
+function R9(e) {
let t = L(".search"), n = L("#searchBtn");
if (t.classList.contains("open") === e) return;
- let r = !!N9.searchMorph, i = t.getBoundingClientRect(), a = parseFloat(getComputedStyle(t).paddingLeft);
- F9(), t.classList.remove("open");
+ let r = !!F9.searchMorph, i = t.getBoundingClientRect(), a = parseFloat(getComputedStyle(t).paddingLeft);
+ L9(), 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 = Uc();
t.classList.add("search-morphing");
- let h = t.animate(Gze(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
+ let h = t.animate(Jze(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
duration: m.duration,
easing: "linear",
fill: "both"
});
- N9.searchMorph = h, H8.handler(h, "onfinish", () => {
- N9.searchMorph === h && F9();
+ F9.searchMorph = h, W8.handler(h, "onfinish", () => {
+ F9.searchMorph === h && L9();
});
}
-function qze() {
- return o9.immerseOpen() ? d8().activeVideo() : c8()?.activeVideo() || null;
+function Xze() {
+ return c9.immerseOpen() ? p8().activeVideo() : u8()?.activeVideo() || null;
}
-function Jze(e) {
+function Zze(e) {
return !!e && (e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable);
}
-function Yze() {
- N9.searchControl = null, N9.searchActions = {
+function Qze() {
+ F9.searchControl = null, F9.searchActions = {
search: (e) => {
- X.rememberSearchValue(), l9(!1), U.q = e, Su(), Q.route(U.jav === "1" ? v7() : U.q ? "/?q=" + encodeURIComponent(U.q) : "/", !0);
+ X.rememberSearchValue(), d9(!1), U.q = e, Su(), Q.route(U.jav === "1" ? b7() : U.q ? "/?q=" + encodeURIComponent(U.q) : "/", !0);
},
- openItem: (e) => p9(e),
- openEntity: (e, t) => b5(e, t),
+ openItem: (e) => h9(e),
+ openEntity: (e, t) => S5(e, t),
openPath: (e) => Q.route(e, !1),
openFollow: (e, t, n) => {
- $.followMediaView = t, A9(e, !0, n);
+ $.followMediaView = t, M9(e, !0, n);
}
- }, N9.searchHelpers = {
- pool: () => Hxe(U, Tn),
- recommendations: () => Wze(Tn),
- pendingRecommendations: Hze,
+ }, F9.searchHelpers = {
+ pool: () => Gxe(U, Tn),
+ recommendations: () => qze(Tn),
+ pendingRecommendations: Gze,
rollPlaceholder: (e, t) => Qs(e, t),
- coverHtml: (e) => `<span class="pic">${e?.thumb_url ? `<img src="${z(e.thumb_url)}" width="640" height="360" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : e?.sourceWork ? Y8(e) : Kze(e)}</span>`,
+ coverHtml: (e) => `<span class="pic">${e?.thumb_url ? `<img src="${z(e.thumb_url)}" width="640" height="360" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : e?.sourceWork ? Z8(e) : Yze(e)}</span>`,
present: (e) => cs(e),
dismiss: (e) => ls(e),
wireScroller: (e) => Ac(e),
@@ -83705,70 +83718,70 @@ function Yze() {
text: e.value,
scrollLeft: e.scrollLeft || X.searchValueSnapshot.scrollLeft
})
- }, mp("search", {
+ }, yp("search", {
input: L("#q"),
historyLimit: Z.appSettings.searchHistoryLimit,
- actions: N9.searchActions,
- helpers: N9.searchHelpers,
+ actions: F9.searchActions,
+ helpers: F9.searchHelpers,
expose: (e) => {
- N9.searchControl = e;
+ F9.searchControl = e;
}
}, {
container: L("#searchMenu"),
isCurrent: () => !0
- }), H8.listen(L("#q"), "beforeinput", (e) => {
+ }), W8.listen(L("#q"), "beforeinput", (e) => {
e.isComposing || X.rememberSearchValue(e.currentTarget);
- }), H8.listen(L("#q"), "scroll", (e) => {
+ }), W8.listen(L("#q"), "scroll", (e) => {
e.currentTarget.value && X.rememberSearchValue(e.currentTarget);
- }), H8.listen(L("#q"), "pointerdown", (e) => {
+ }), W8.listen(L("#q"), "pointerdown", (e) => {
e.currentTarget.value && X.rememberSearchValue(e.currentTarget);
});
}
-function Xze() {
- N9.searchMorph = null, N9.searchMorphViewport = innerWidth, H8.listen.bind(H8, window)("resize", () => {
- innerWidth !== N9.searchMorphViewport && (N9.searchMorphViewport = innerWidth, F9());
- }, { passive: !0 }), H8.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", F9), H8.handler(L("#searchBtn"), "onclick", () => {
- I9(!0), L("#q").focus({ preventScroll: !0 });
- }), H8.handler(L("#searchBack"), "onclick", () => {
- I9(!1), P9(), L("#q").blur(), L("#searchBtn").focus({ preventScroll: !0 });
+function $ze() {
+ F9.searchMorph = null, F9.searchMorphViewport = innerWidth, W8.listen.bind(W8, window)("resize", () => {
+ innerWidth !== F9.searchMorphViewport && (F9.searchMorphViewport = innerWidth, L9());
+ }, { passive: !0 }), W8.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", L9), W8.handler(L("#searchBtn"), "onclick", () => {
+ R9(!0), L("#q").focus({ preventScroll: !0 });
+ }), W8.handler(L("#searchBack"), "onclick", () => {
+ R9(!1), I9(), 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 || I9(!1), P9());
+ e.target.closest(".search") || (e.type !== "focusin" || e.target !== document.body && e.target !== document.documentElement) && (L("#q").value || R9(!1), I9());
};
- H8.listen(document, "pointerdown", e, !0), H8.listen(document, "focusin", e), H8.handler(L("#brandHome"), "onclick", (e) => {
- e.preventDefault(), y7();
- }), H8.listen(document, "keydown", (e) => {
+ W8.listen(document, "pointerdown", e, !0), W8.listen(document, "focusin", e), W8.handler(L("#brandHome"), "onclick", (e) => {
+ e.preventDefault(), x7();
+ }), W8.listen(document, "keydown", (e) => {
if (e.key === "Escape") {
- let t = m8();
+ let t = g8();
if (t?.isOpen()) {
t.close();
return;
}
if (!L("#searchMenu").hidden) {
- P9();
+ I9();
return;
}
- if (o9.immerseOpen()) {
- d8().close();
+ if (c9.immerseOpen()) {
+ p8().close();
return;
}
- if (o9.stageOpen()) {
- e.defaultPrevented || (e.preventDefault(), c8().requestEscape());
+ if (c9.stageOpen()) {
+ e.defaultPrevented || (e.preventDefault(), u8().requestEscape());
return;
}
if (L("#drawer").classList.contains("open")) {
- Y5(!1);
+ Z5(!1);
return;
}
if (Ql || Xl.size || Zl.size) {
- A5(!1, !0);
+ M5(!1, !0);
return;
}
return;
}
- if (Jze(e.target)) return;
- if (!e.defaultPrevented && sje(e, i9())) {
- e.preventDefault(), r9(!t9());
+ if (Zze(e.target)) return;
+ if (!e.defaultPrevented && uje(e, o9())) {
+ e.preventDefault(), a9(!r9());
return;
}
if (e.ctrlKey || e.metaKey || e.altKey) return;
@@ -83779,37 +83792,37 @@ function Xze() {
return;
}
}
- let t = qze();
+ let t = Xze();
if (t) {
if (e.key === "t" || e.key === "T") {
- e.preventDefault(), c8()?.toggleTheater();
+ e.preventDefault(), u8()?.toggleTheater();
return;
}
if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
- e.preventDefault(), rP(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
+ e.preventDefault(), aP(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
return;
}
if (e.key === " " || e.key === "k" || e.key === "K") {
- e.preventDefault(), nP(t);
+ e.preventDefault(), iP(t);
return;
}
if (e.key === "m" || e.key === "M") {
- e.preventDefault(), _N(t, ".vjs-mute-control");
+ e.preventDefault(), yN(t, ".vjs-mute-control");
return;
}
if (e.key === "f" || e.key === "F") {
- e.preventDefault(), _N(t, ".vjs-fullscreen-control");
+ e.preventDefault(), yN(t, ".vjs-fullscreen-control");
return;
}
if (e.key === "i" || e.key === "I") {
- e.preventDefault(), c8()?.toggleMiniplayer();
+ e.preventDefault(), u8()?.toggleMiniplayer();
return;
}
}
});
}
// src/history/links.ts
-function Zze(e) {
+function eBe(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;
@@ -83828,74 +83841,74 @@ function Zze(e) {
return n.startsWith("#") && !a?.section || !zf(i.pathname, i.search) && !a ? null : i.pathname + i.search + i.hash;
}
// src/application/composition.js
-var L9 = {
+var z9 = {
shellActions: void 0,
routing: void 0
};
-function Qze() {
- let e = H8, t = (e) => {
- e.kind === "item" ? p9(e.id, !1) : e.kind === "jav" ? h9(e.code, !1) : e.kind === "follow" ? A9(e.id, !1) : u9(e.queue, e.key, e.item, !1);
+function tBe() {
+ let e = W8, t = (e) => {
+ e.kind === "item" ? h9(e.id, !1) : e.kind === "jav" ? _9(e.code, !1) : e.kind === "follow" ? M9(e.id, !1) : f9(e.queue, e.key, e.item, !1);
};
- if (VLe(), L5.entityShapesReady = X8(), kRe(), location.pathname === "/") {
+ if (WLe(), z5.entityShapesReady = Q8(), MRe(), location.pathname === "/") {
let e = new URLSearchParams(location.search);
- !e.has("state") && e.get("jav") !== "1" && (L("#catalogPageHeading").hidden = !1, n7(L("#catalogPageHeading"), e.get("q")));
+ !e.has("state") && e.get("jav") !== "1" && (L("#catalogPageHeading").hidden = !1, i7(L("#catalogPageHeading"), e.get("q")));
}
- n5(decodeURIComponent(location.pathname)) && $8(L("#feedNew")), LRe(), L9.shellActions = {
- openSettings: (e) => Z5(e, !0),
- closeSettings: () => m8()?.close(!1),
- openItem: (e) => void p9(e),
- openEntity: (e, t) => void b5(e, t),
+ i5(decodeURIComponent(location.pathname)) && t5(L("#feedNew")), BRe(), z9.shellActions = {
+ openSettings: (e) => $5(e, !0),
+ closeSettings: () => g8()?.close(!1),
+ openItem: (e) => void h9(e),
+ openEntity: (e, t) => void S5(e, t),
openTag: (e) => {
- NRe(), L7(e);
+ IRe(), z7(e);
},
- openTasteSignal: rRe,
+ openTasteSignal: oRe,
navigate: (e) => {
let n = new URL(e, location.href), r = zf(n.pathname, n.search);
if (r) {
let e = r.kind === "queue" ? "item" : r.kind;
- x9(n.pathname + n.search + n.hash, e, () => t(r));
+ C9(n.pathname + n.search + n.hash, e, () => t(r));
} else if (n.hash && n.pathname === location.pathname && n.search === location.search && !Bf(location.pathname)) {
Q.route(e);
- let t = Op.navigation.seq;
- Np(n.hash, () => Op.navigation.seq === t);
+ let t = Np.navigation.seq;
+ Rp(n.hash, () => Np.navigation.seq === t);
} else Q.navigatePath(e);
},
- openManage: a7,
+ openManage: s7,
managePath: (e) => Q.routePathOf("section", e) || "",
- openFollow: () => k9(),
- receipt: (e, t) => E8.actionReceipt(e, t),
- toast: (e, t) => E8.toast(e, t),
- failure: E8.actionFailure,
- revealSource: h5,
- reopenTutorial: Bze,
- routeReview: oRe,
- routeFollowManage: SRe,
+ openFollow: () => j9(),
+ receipt: (e, t) => O8.actionReceipt(e, t),
+ toast: (e, t) => O8.toast(e, t),
+ failure: O8.actionFailure,
+ revealSource: _5,
+ reopenTutorial: Uze,
+ routeReview: lRe,
+ routeFollowManage: TRe,
saveFollowPreference: (e) => {
e.pageSize !== void 0 && (Z.appSettings.followPageSize = e.pageSize), e.layout !== void 0 && (Z.appSettings.followLayout = e.layout), Z.saveSettings();
},
srcBadge: (e, t) => Z.srcBadge(e, t),
- routeIndex: (e, { replace: t = !1 } = {}) => Q.route(P5(e), t),
+ routeIndex: (e, { replace: t = !1 } = {}) => Q.route(I5(e), t),
savePeopleLayout: ({ layout: e }) => {
Z.appSettings.peopleLayout = e, Z.saveSettings();
},
- exitSelectMode: () => A5(!1, !1),
- personAvatar: (e, t, n) => N5.personAvatar(e, t, n),
- authorAvatar: (e) => wRe(e),
- showIndexTags: TRe,
- openFollowAuthor: I5,
- openFollowTag: ERe,
- openPlaylist: (e, t) => void d9(e, t, !0),
- canFlip: () => !Ql && !t9() && !window.__scrolling && !X.reduceMotion(),
+ exitSelectMode: () => M5(!1, !1),
+ personAvatar: (e, t, n) => F5.personAvatar(e, t, n),
+ authorAvatar: (e) => DRe(e),
+ showIndexTags: ORe,
+ openFollowAuthor: R5,
+ openFollowTag: kRe,
+ openPlaylist: (e, t) => void p9(e, t, !0),
+ canFlip: () => !Ql && !r9() && !window.__scrolling && !X.reduceMotion(),
surfaceChanged: (e, t) => {
e === "entity" ? (Nl(), W({ barsContext: {
type: "home",
filters: U
- } }), G5(), document.body.classList.add("entity-open"), E7(), F5()) : e === "index" ? (Nl(), document.body.classList.remove("entity-open"), Q.claimSurface(t), G5(), document.body.classList.add("index-open"), E7(), F5()) : (Nl(), Q.claimSurface(t), e === "catalog" ? G5() : (W5(), U5({ manage: e === "management" })));
+ } }), q5(), document.body.classList.add("entity-open"), O7(), L5()) : e === "index" ? (Nl(), document.body.classList.remove("entity-open"), Q.claimSurface(t), q5(), document.body.classList.add("index-open"), O7(), L5()) : (Nl(), Q.claimSurface(t), e === "catalog" ? q5() : (K5(), G5({ manage: e === "management" })));
},
clearSearch: () => X.clearSearchField(),
openImmerse: (e) => {
- let t = o9.requestedImmerseId === void 0 ? e : o9.requestedImmerseId;
- o9.requestedImmerseId = void 0, g9(t, !1);
+ let t = c9.requestedImmerseId === void 0 ? e : c9.requestedImmerseId;
+ c9.requestedImmerseId = void 0, v9(t, !1);
},
openQueueRequest: () => {
let e = Q.requestedQueue;
@@ -83903,10 +83916,10 @@ function Qze() {
},
openOverlay: (e) => {
let n = Q.requestedOverlay;
- Q.requestedOverlay = null, Op.navigation.claimed && (!Ap() || Q.initialOverlayOpened) ? n?.path === location.pathname + location.search + location.hash && n.open() : (Ap() && (Q.initialOverlayOpened = !0), t(e));
+ Q.requestedOverlay = null, Np.navigation.claimed && (!Fp() || Q.initialOverlayOpened) ? n?.path === location.pathname + location.search + location.hash && n.open() : (Fp() && (Q.initialOverlayOpened = !0), t(e));
},
closeStage: () => {
- o9.stageOpen() && l9(!1);
+ c9.stageOpen() && d9(!1);
},
grid: {
helpers: X.gridHelpers,
@@ -83914,60 +83927,60 @@ function Qze() {
},
configurable: () => !!du,
surfaceShown: (e) => {
- e === "index" ? (y9(), g7()) : F7();
+ e === "index" ? (x9(), v7()) : L7();
},
entity: {
missing: (e) => {
- L9.shellActions.surfaceChanged("entity", location.pathname), y5(e);
+ z9.shellActions.surfaceChanged("entity", location.pathname), x5(e);
},
loading: (e, t, n) => Y.application.loading(e, t, n),
props: (e, t, n) => Y.application.addressProps(e, t, n),
refresh: (e, t, n) => {
let r = Y.parseEntityFilters(n);
e === "creator" && (r.creator = "");
- let i = c5();
- return i.type !== "entity" || i.kind !== e || i.name !== t || !u5(e, t, r, Y.parseMediaView(n), { push: !1 }) ? !1 : (C7(r), w7(c5()), !0);
+ let i = u5();
+ return i.type !== "entity" || i.kind !== e || i.name !== t || !f5(e, t, r, Y.parseMediaView(n), { push: !1 }) ? !1 : (T7(r), E7(u5()), !0);
}
},
follow: $.followFeedShell,
catalog: {
- defaultLoc: () => _7("local,115"),
- open: (e, { entering: t = !1, retitle: n = !1 } = {}) => (n && (S9(), h7(), t7()), t && M8(), e === "/trash" ? X.clearSearchField() : (L("#q").value = U.q, X.rememberSearchValue()), y9(), F7(), Z.handOff(B7())),
- load: () => Z.handOff(B7()),
+ defaultLoc: () => y7("local,115"),
+ open: (e, { entering: t = !1, retitle: n = !1 } = {}) => (n && (w9(), _7(), r7()), t && P8(), e === "/trash" ? X.clearSearchField() : (L("#q").value = U.q, X.rememberSearchValue()), x9(), L7(), Z.handOff(H7())),
+ load: () => Z.handOff(H7()),
fill: () => {
- if (G7() || !Ap() && !L("#grid").querySelector(".catalog-skeleton")) return;
+ if (q7() || !Fp() && !L("#grid").querySelector(".catalog-skeleton")) return;
let e = L("#count");
- e.removeAttribute("aria-busy"), e.removeAttribute("aria-label"), U7(Q.surfaceToken(Q.surfacePath()));
+ e.removeAttribute("aria-busy"), e.removeAttribute("aria-label"), G7(Q.surfaceToken(Q.surfacePath()));
},
release: () => {
- H7(), r5();
- }
- }
- }, L9.routing = !1, e.listen(document, "click", (e) => {
- let t = Zze(e);
- t && (e.preventDefault(), L9.shellActions.navigate(t));
- }), H8.own(Op.listen((e) => {
- Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !Bf(e.location.pathname) && l9(!1), L9.routing && !e.claimed && S9();
- })), aLe(L9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), BRe(), gRe(), $5(), Promise.all([
- Q7(),
- RRe(),
- L5.entityShapesReady
+ W7(), a5();
+ }
+ }
+ }, z9.routing = !1, e.listen(document, "click", (e) => {
+ let t = eBe(e);
+ t && (e.preventDefault(), z9.shellActions.navigate(t));
+ }), W8.own(Np.listen((e) => {
+ Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !Bf(e.location.pathname) && d9(!1), z9.routing && !e.claimed && w9();
+ })), cLe(z9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), URe(), yRe(), t7(), Promise.all([
+ e9(),
+ VRe(),
+ z5.entityShapesReady
]).then(() => {
- e.isActive && (L5.wantsDiscoveryBars() && F7().catch((e) => console.error("首页横条装载失败", e)), y9(), hze(), L9.routing = !0, W({ pageOpens: 1 }), S9(), g7());
+ e.isActive && (z5.wantsDiscoveryBars() && L7().catch((e) => console.error("首页横条装载失败", e)), x9(), vze(), z9.routing = !0, W({ pageOpens: 1 }), w9(), v7());
}).catch((t) => {
e.isActive && console.error("应用启动失败", t);
});
}
// src/theme-transition.ts
-var R9 = !1;
-async function $ze(e, t) {
- if (R9) return;
+var B9 = !1;
+async function nBe(e, t) {
+ if (B9) 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}}`, R9 = !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}}`, B9 = !0, document.head.append(o);
let s = document.documentElement;
s.dataset.themeSnapshot = "true";
let c = !1, l = () => {
@@ -83978,13 +83991,13 @@ async function $ze(e, t) {
} catch {
l();
} finally {
- delete s.dataset.themeSnapshot, o.remove(), R9 = !1;
+ delete s.dataset.themeSnapshot, o.remove(), B9 = !1;
}
}
// src/application/chrome.js
-function eBe() {
+function rBe() {
(() => {
- let e = H8, t = [
+ let e = W8, t = [
"#brandHome",
"#filterBtn",
"#settingsBtn"
@@ -84044,7 +84057,7 @@ function eBe() {
e.key === "Escape" && (e.stopPropagation(), u.setOpen(!1), c.focus());
}), Tn("/api/libraries", { signal: e.signal }).then((t) => {
if (!e.isActive) return;
- GG(t.libraries);
+ qG(t.libraries);
let n = [[
"",
"全部媒体库",
@@ -84065,7 +84078,7 @@ function eBe() {
s.className = "mark", s.setAttribute("aria-hidden", "true"), s.innerHTML = o(n.find((e) => e[0] === i)?.[2] || "database"), c.querySelector(".mark").replaceWith(s), l.innerHTML = `<p>媒体库</p><div class="board-library-rows">${n.map(([e, t, n]) => `<button type="button" data-library="${z(e)}" aria-pressed="${e === i}"><span class="board-library-avatar">${o(n)}</span><span>${z(t)}</span></button>`).join("")}</div><footer><button type="button" class="geist-button primary" data-library-manage>管理媒体库</button></footer>`, l.querySelectorAll("[data-library]").forEach((t) => e.handler(t, "onclick", () => {
sessionStorage.setItem("peach.library", t.dataset.library), sessionStorage.setItem("peach.library-label", n.find((e) => e[0] === t.dataset.library)?.[1] || "全部媒体库"), location.assign("/");
})), e.handler(l.querySelector("[data-library-manage]"), "onclick", () => {
- u.setOpen(!1), Y5(!1), w5("媒体库与入库");
+ u.setOpen(!1), Z5(!1), E5("媒体库与入库");
});
let d = l.querySelector(".board-library-rows");
e.listen(d, "pointerover", (e) => {
@@ -84082,18 +84095,18 @@ function eBe() {
(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" && $ze(t, () => {
- Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), rM();
+ t.getAttribute("aria-pressed") !== "true" && nBe(t, () => {
+ Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), aM();
});
- })), rM();
+ })), aM();
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 = fs(g, v, _);
- e.own(y.dispose), e.own(Ule(v)), fLe({
+ e.own(y.dispose), e.own(Kle(v)), hLe({
root: _,
store: Z.settingsStore,
openDetails: () => {
- e.isActive && (y.setOpen(!1), Y5(!1), Z5("外观与导航").then((t) => {
+ e.isActive && (y.setOpen(!1), Z5(!1), $5("外观与导航").then((t) => {
e.isActive && t.reveal("#homeGlowControls");
}));
}
@@ -84105,17 +84118,17 @@ function eBe() {
let t = document.querySelector("#drawerScroll > [data-sidebar-head]"), n = document.querySelector("#drawer");
if (!t) return;
c.setAttribute("aria-label", "选择媒体库"), c.parentElement !== t && t.prepend(c);
- let r = n.classList.contains("open"), i = !J5();
+ let r = n.classList.contains("open"), i = !X5();
i || r ? m.parentElement !== t && t.append(m) : m.parentElement !== h.parentElement && h.after(m), n.inert = !i && !r;
}
- Z.placeSidebarHead = b, b(), e.listen(document, "board:sidebar", b), e.listen.bind(H8, window)("resize", b);
+ Z.placeSidebarHead = b, b(), e.listen(document, "board:sidebar", b), e.listen.bind(W8, window)("resize", b);
let x = !1;
function S() {
x = !1, document.body.classList.toggle("board-scrolled", scrollY > 8);
}
- if (e.listen.bind(H8, window)("scroll", () => {
+ if (e.listen.bind(W8, window)("scroll", () => {
x || (x = !0, e.frame(S));
- }, { passive: !0 }), e.listen.bind(H8, window)("resize", S), S(), /Chrome|Chromium|Edg\//.test(navigator.userAgent)) {
+ }, { passive: !0 }), e.listen.bind(W8, window)("resize", S), S(), /Chrome|Chromium|Edg\//.test(navigator.userAgent)) {
let t = "http://www.w3.org/2000/svg", n = document.createElementNS(t, "svg");
n.setAttribute("width", "0"), n.setAttribute("height", "0"), n.setAttribute("aria-hidden", "true"), n.style.position = "fixed", n.style.pointerEvents = "none";
let r = document.createElementNS(t, "defs");
@@ -84229,18 +84242,52 @@ function eBe() {
subtree: !0
}), y();
}
- })(), Y5(!J5() && sessionStorage.getItem("board.sidebar") !== "closed");
+ })(), Z5(!X5() && sessionStorage.getItem("board.sidebar") !== "closed");
+}
+// src/navigation-progress.ts
+var iBe = 200, aBe = 400, oBe = 240;
+function sBe() {
+ let e = document.createElement("div");
+ e.className = "navprogress", e.setAttribute("aria-hidden", "true"), e.append(document.createElement("i")), document.body.append(e);
+ let t = /* @__PURE__ */ new Set(), n = 0, r = 0, i = 0, a = !1, o = () => up() || t.size > 0, s = () => {
+ if (o()) {
+ if (clearTimeout(r), r = 0, e.dataset.state) {
+ e.dataset.state = "running";
+ return;
+ }
+ n ||= window.setTimeout(() => {
+ n = 0, i = performance.now(), e.dataset.state = "running";
+ }, iBe);
+ } else clearTimeout(n), n = 0, !(e.dataset.state !== "running" || r) && (r = window.setTimeout(() => {
+ e.dataset.state = "done", r = window.setTimeout(() => {
+ r = 0, delete e.dataset.state;
+ }, oBe);
+ }, Math.max(0, aBe - (performance.now() - i))));
+ }, c = () => {
+ a || (a = !0, queueMicrotask(() => {
+ a = !1, s();
+ }));
+ }, l = (e) => {
+ let { status: n, fetchStatus: r, errorUpdateCount: i } = e.state;
+ n === "pending" && r === "fetching" && !i && e.getObserversCount() > 0 ? t.add(e) : t.delete(e);
+ }, u = H.getQueryCache().subscribe((e) => {
+ e.type === "removed" ? t.delete(e.query) : l(e.query), c();
+ }), d = dp(c);
+ for (let e of H.getQueryCache().getAll()) l(e);
+ return c(), () => {
+ u(), d(), clearTimeout(n), clearTimeout(r), e.remove();
+ };
}
// src/application/initialize.js
-function tBe() {
- zze(), Tze(), ARe(), Eze(), _ze(), pLe(), cze(), Vze(), eRe(), Cze(), _Re(), lze(), qLe(), sRe(), Lze(), DRe(), tRe(), Rze(), ORe(), nRe(), KRe(), uze(), Yze(), wze(), Xze(), vze(), Qze(), eBe(), H8.own(H7), H8.own(b9);
+function cBe() {
+ Hze(), Oze(), NRe(), kze(), bze(), gLe(), dze(), Wze(), rRe(), Eze(), bRe(), fze(), XLe(), uRe(), Bze(), ARe(), iRe(), Vze(), jRe(), aRe(), YRe(), pze(), Qze(), Dze(), $ze(), xze(), tBe(), rBe(), W8.own(sBe()), W8.own(W7), W8.own(S9);
}
// src/ui-kit/middle-truncate.ts
-var nBe = "…", z9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, B9 = /* @__PURE__ */ new WeakMap(), V9 = /* @__PURE__ */ new Set(), H9 = 0, U9 = /* @__PURE__ */ new WeakSet(), W9 = null, G9 = null, K9 = (e) => z9 ? [...z9.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? "")), q9 = (e, t) => {
+var lBe = "…", uBe = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, V9 = /* @__PURE__ */ new WeakMap(), H9 = /* @__PURE__ */ new Set(), U9 = 0, W9 = /* @__PURE__ */ new WeakSet(), G9 = null, K9 = null, dBe = (e) => uBe ? [...uBe.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? "")), q9 = (e, t) => {
if (t >= e.length) return e.join("");
let n = Math.ceil(t / 2), r = Math.floor(t / 2);
- return e.slice(0, n).join("") + nBe + (r ? e.slice(-r).join("") : "");
-}, rBe = (e, t) => {
+ return e.slice(0, n).join("") + lBe + (r ? e.slice(-r).join("") : "");
+}, fBe = (e, t) => {
if (!e.length || t(e.join(""))) return e.length;
let n = 0, r = e.length - 1, i = 0;
for (; n <= r;) {
@@ -84248,23 +84295,23 @@ var nBe = "…", z9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
t(q9(e, a)) ? (i = a, n = a + 1) : r = a - 1;
}
return i;
-}, iBe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul} -〿＀-￯]/u, aBe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}]/u, oBe = /[\p{Script=Latin}\p{Script=Greek}\p{Script=Cyrillic}\p{Nd}]/u, sBe = /[＀-￯]/u, cBe = (e) => aBe.test(e) ? 1 : oBe.test(e) && !sBe.test(e) ? 2 : 0, lBe = (e) => {
+}, pBe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul} -〿＀-￯]/u, mBe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}]/u, hBe = /[\p{Script=Latin}\p{Script=Greek}\p{Script=Cyrillic}\p{Nd}]/u, gBe = /[＀-￯]/u, _Be = (e) => mBe.test(e) ? 1 : hBe.test(e) && !gBe.test(e) ? 2 : 0, vBe = (e) => {
let t = 0, n = 0;
for (let r of e) {
- let e = cBe(r);
+ let e = _Be(r);
n && e && n !== e && t++, n = e;
}
return t;
-}, uBe = null, dBe = (e, t) => {
- let n = getComputedStyle(e), r = (uBe ||= document.createElement("canvas")).getContext("2d");
+}, yBe = null, bBe = (e, t) => {
+ let n = getComputedStyle(e), r = (yBe ||= document.createElement("canvas")).getContext("2d");
if (!r) return () => Infinity;
r.font = n.font || `${n.fontStyle} ${n.fontWeight} ${n.fontSize} ${n.fontFamily}`;
let i = parseFloat(n.letterSpacing), a = parseFloat(n.wordSpacing), o = n.getPropertyValue("text-autospace"), s = t && o && o !== "no-autospace" ? (parseFloat(n.fontSize) || 0) / 8 : 0;
return (e) => {
let t = r.measureText(e).width;
- return Number.isFinite(i) && (t += Math.max(0, K9(e).length - 1) * i), Number.isFinite(a) && (t += (e.match(/\s/g) || []).length * a), s && (t += lBe(e) * s), t;
+ return Number.isFinite(i) && (t += Math.max(0, dBe(e).length - 1) * i), Number.isFinite(a) && (t += (e.match(/\s/g) || []).length * a), s && (t += vBe(e) * s), t;
};
-}, fBe = [
+}, xBe = [
"font-family",
"font-size",
"font-weight",
@@ -84289,7 +84336,7 @@ var nBe = "…", z9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
"text-autospace",
"text-spacing-trim",
"white-space-collapse"
-], J9 = null, pBe = (e) => {
+], J9 = null, SBe = (e) => {
if (!J9) {
let e = document.createElement("div");
e.setAttribute("aria-hidden", "true"), e.dataset.middleTruncateProbe = "", e.style.cssText = "position:fixed;left:0;top:0;width:0;height:0;overflow:hidden;visibility:hidden;pointer-events:none;contain:strict", J9 = {
@@ -84298,10 +84345,10 @@ var nBe = "…", z9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
};
}
J9.box.isConnected || document.documentElement.append(J9.box);
- let t = getComputedStyle(e), n = fBe.map((e) => t.getPropertyValue(e)), r = e.closest("[lang]")?.getAttribute("lang") || "", i = n.join("\n") + "\n" + r, a = J9.groups.get(i);
- return a || (a = document.createElement("div"), n.forEach((e, t) => a.style.setProperty(fBe[t], e)), a.lang = r, J9.box.append(a), J9.groups.set(i, a)), a;
-}, mBe = 8, hBe = (e) => {
- for (let t = 0; e.length && t < mBe; t++) {
+ let t = getComputedStyle(e), n = xBe.map((e) => t.getPropertyValue(e)), r = e.closest("[lang]")?.getAttribute("lang") || "", i = n.join("\n") + "\n" + r, a = J9.groups.get(i);
+ return a || (a = document.createElement("div"), n.forEach((e, t) => a.style.setProperty(xBe[t], e)), a.lang = r, J9.box.append(a), J9.groups.set(i, a)), a;
+}, CBe = 8, wBe = (e) => {
+ for (let t = 0; e.length && t < CBe; t++) {
let t = e.map((e) => e.tries.map((t) => {
let n = document.createElement("span");
return n.style.cssText = "display:block;width:max-content;text-wrap-mode:nowrap", n.textContent = q9(e.fit.parts, t), e.group.append(n), n;
@@ -84319,28 +84366,28 @@ var nBe = "…", z9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
])].filter((t) => t > e.fits && t < e.fails), !0;
});
}
-}, gBe = (e) => {
+}, TBe = (e) => {
let t = [];
for (let n of e) {
- let e = n.state.full, r = iBe.test(e), i = dBe(n.element, r);
- if (n.kept = rBe(n.parts, (e) => i(e) <= n.available), !r) continue;
+ let e = n.state.full, r = pBe.test(e), i = bBe(n.element, r);
+ if (n.kept = fBe(n.parts, (e) => i(e) <= n.available), !r) continue;
let a = [n.kept, n.kept + 1].filter((e) => e > 0 && e <= n.parts.length);
t.push({
fit: n,
- group: pBe(n.element),
+ group: SBe(n.element),
fits: 0,
fails: n.parts.length + 1,
tries: a
});
}
- hBe(t);
-}, _Be = (e) => {
+ wBe(t);
+}, EBe = (e) => {
let t = getComputedStyle(e), n = parseFloat(t.width);
if (!Number.isFinite(n)) return e.clientWidth;
let r = t.boxSizing === "border-box" ? n - (parseFloat(t.borderLeftWidth) || 0) - (parseFloat(t.borderRightWidth) || 0) : n + (parseFloat(t.paddingLeft) || 0) + (parseFloat(t.paddingRight) || 0);
return Math.max(e.clientWidth, r + 1 / 64);
-}, vBe = (e) => {
- if (e.dataset.middleTruncateWithin === void 0) return _Be(e);
+}, DBe = (e) => {
+ if (e.dataset.middleTruncateWithin === void 0) return EBe(e);
let t = e.parentElement;
if (!t) return e.clientWidth;
let n = getComputedStyle(t), r = parseFloat(n.columnGap) || 0, i = 0, a = 0;
@@ -84349,20 +84396,20 @@ var nBe = "…", z9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
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);
-}, yBe = () => {
- H9 = 0;
+}, OBe = () => {
+ U9 = 0;
let e = [];
- for (let t of V9) {
- let n = B9.get(t);
+ for (let t of H9) {
+ let n = V9.get(t);
n && t.isConnected && e.push({
element: t,
state: n,
- available: vBe(t),
- parts: K9(n.full),
+ available: DBe(t),
+ parts: dBe(n.full),
kept: 0
});
}
- V9.clear(), gBe(e.filter((e) => e.available > 0));
+ H9.clear(), TBe(e.filter((e) => e.available > 0));
for (let { element: t, state: n, available: r, parts: i, kept: a } of e) {
let e = r > 0 ? q9(i, a) : n.full;
n.rendered = e, t.textContent !== e && (t.textContent = e);
@@ -84370,31 +84417,31 @@ var nBe = "…", z9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
t.classList.toggle("middle-truncated", o), t.setAttribute("aria-label", n.full), t.hasAttribute("title") && t.dataset.middleTitle !== "true" || (t.title = n.full, t.dataset.middleTitle = "true");
}
}, Y9 = (e) => {
- B9.has(e) && (V9.add(e), H9 ||= requestAnimationFrame(yBe));
-}, bBe = (e) => {
- e instanceof HTMLElement && (B9.has(e) || B9.set(e, {
+ V9.has(e) && (H9.add(e), U9 ||= requestAnimationFrame(OBe));
+}, kBe = (e) => {
+ e instanceof HTMLElement && (V9.has(e) || V9.set(e, {
full: e.textContent || "",
rendered: e.textContent || ""
- }), U9.has(e) || (U9.add(e), e.dataset.middleTruncateWithin !== void 0 && e.parentElement ? W9?.observe(e.parentElement) : W9?.observe(e)), Y9(e));
-}, xBe = (e) => {
+ }), W9.has(e) || (W9.add(e), e.dataset.middleTruncateWithin !== void 0 && e.parentElement ? G9?.observe(e.parentElement) : G9?.observe(e)), Y9(e));
+}, ABe = (e) => {
if (e.nodeType !== Node.ELEMENT_NODE) return;
let t = e;
- t.matches("[data-middle-truncate]") && bBe(t), t.querySelectorAll("[data-middle-truncate]").forEach(bBe);
+ t.matches("[data-middle-truncate]") && kBe(t), t.querySelectorAll("[data-middle-truncate]").forEach(kBe);
};
-function SBe(e = document) {
- G9?.(), U9 = /* @__PURE__ */ new WeakSet();
+function jBe(e = document) {
+ K9?.(), W9 = /* @__PURE__ */ new WeakSet();
let t = !0;
- W9 = new ResizeObserver((e) => e.forEach((e) => {
+ G9 = new ResizeObserver((e) => e.forEach((e) => {
t && (Y9(e.target), e.target.querySelectorAll?.(":scope>[data-middle-truncate-within]").forEach(Y9));
}));
- let n = W9;
- xBe(e.documentElement || e);
+ let n = G9;
+ ABe(e.documentElement || e);
let r = new MutationObserver((e) => e.forEach((e) => {
if (!t) return;
- e.addedNodes.forEach(xBe);
+ e.addedNodes.forEach(ABe);
let n = (e.target.nodeType === Node.TEXT_NODE ? e.target.parentElement : e.target)?.closest?.("[data-middle-truncate]");
if (!n) return;
- let r = B9.get(n);
+ let r = V9.get(n);
r && n.textContent !== r.rendered && (r.full = n.textContent || "", n.dataset.middleTitle === "true" && n.removeAttribute("title"), Y9(n));
}));
r.observe(e.body || e, {
@@ -84407,17 +84454,17 @@ function SBe(e = document) {
let i = (e) => {
let t = document.getSelection();
if (!t || t.isCollapsed) return;
- let n = (t.anchorNode?.nodeType === Node.ELEMENT_NODE ? t.anchorNode : t.anchorNode?.parentElement)?.closest?.("[data-middle-truncate]"), r = n && B9.get(n);
+ let n = (t.anchorNode?.nodeType === Node.ELEMENT_NODE ? t.anchorNode : t.anchorNode?.parentElement)?.closest?.("[data-middle-truncate]"), r = n && V9.get(n);
r && n.contains(t.focusNode) && e.clipboardData && (e.clipboardData?.setData("text/plain", r.full), e.preventDefault());
};
e.addEventListener("copy", i);
let a = () => {
- t && (t = !1, n.disconnect(), r.disconnect(), e.removeEventListener("copy", i), J9?.box.remove(), H9 && cancelAnimationFrame(H9), H9 = 0, V9.clear(), G9 === a && (G9 = null, W9 = null));
+ t && (t = !1, n.disconnect(), r.disconnect(), e.removeEventListener("copy", i), J9?.box.remove(), U9 && cancelAnimationFrame(U9), U9 = 0, H9.clear(), K9 === a && (K9 = null, G9 = null));
};
- return G9 = a, a;
+ return K9 = a, a;
}
// src/react/result-updates.tsx
-var CBe = [
+var MBe = [
"catalog-grid",
"catalog-folders",
"item",
@@ -84442,15 +84489,15 @@ var CBe = [
"follow",
"entity",
"index"
-], wBe = [
+], NBe = [
"feed-new",
"jav-discoveries",
"jav-detail",
"wants",
"index"
-], TBe = {
+], PBe = {
catalog: [
- ...CBe,
+ ...MBe,
...X9,
"review",
"taste"
@@ -84460,19 +84507,19 @@ var CBe = [
"stats",
"taste"
],
- discoveries: wBe,
+ discoveries: NBe,
review: ["review"],
artwork: [
- ...CBe,
+ ...MBe,
...X9,
- ...wBe,
+ ...NBe,
"avatar-choices"
]
};
-function EBe() {
+function FBe() {
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 TBe[t] || []) e.add(n);
+ for (let t of Object.keys(r)) if (r[t] !== n[t]) for (let n of PBe[t] || []) e.add(n);
return !t && e.size && (t = (async () => {
for (; e.size;) {
let t = new Set(e);
@@ -84485,67 +84532,67 @@ function EBe() {
})), t || Promise.resolve();
};
}
-function DBe() {
+function IBe() {
let e = Ft({
- queryKey: HI,
- queryFn: ({ signal: e }) => WI(e),
- refetchInterval: (e) => UI(e.state.data)
- }), t = (0, F.useRef)(void 0), [n] = (0, F.useState)(EBe), r = e.data?.result_versions;
+ queryKey: WI,
+ queryFn: ({ signal: e }) => KI(e),
+ refetchInterval: (e) => GI(e.state.data)
+ }), t = (0, F.useRef)(void 0), [n] = (0, F.useState)(FBe), r = e.data?.result_versions;
return (0, F.useEffect)(() => {
r && (t.current && n(t.current, r), t.current = r);
}, [r, n]), null;
}
// src/react/application.tsx
var Z9 = null;
-function OBe(e) {
+function LBe(e) {
Z9 !== e || e.owners || (Z9 = null, e.effects.dispose());
}
-function kBe() {
+function RBe() {
if (!Z9) {
- let e = kLe();
+ let e = MLe();
Z9 = {
effects: e,
owners: 0
- }, e.own(SBe(document)), e.own(() => {
+ }, e.own(jBe(document)), e.own(() => {
Nl(), H.cancelQueries();
- }), e.own(oLe), e.own(vp), e.own(os);
+ }), e.own(lLe), e.own(Cp), e.own(os);
}
return Z9.owners += 1, Z9.effects.resume(), Z9;
}
-function ABe() {
+function zBe() {
let [e, t] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
- let e = Z9 === null, n = kBe(), r = iLe(t);
+ let e = Z9 === null, n = RBe(), r = sLe(t);
if (e) try {
- tBe();
+ cBe();
} catch (e) {
throw r(), n.effects.dispose(), Z9 = null, e;
}
return () => {
- r(), --n.owners, !n.owners && (n.effects.pause(), queueMicrotask(() => OBe(n)));
+ r(), --n.owners, !n.owners && (n.effects.pause(), queueMicrotask(() => LBe(n)));
};
- }, []), /* @__PURE__ */ (0, I.jsx)(bbe, {
+ }, []), /* @__PURE__ */ (0, I.jsx)(Cbe, {
actions: e,
processing: !0,
- background: e ? /* @__PURE__ */ (0, I.jsx)(DBe, {}) : null
+ background: e ? /* @__PURE__ */ (0, I.jsx)(IBe, {}) : null
});
}
var Q9 = /* @__PURE__ */ new WeakMap();
-function jBe(e) {
+function BBe(e) {
let t = Q9.get(e);
if (t) return t;
- let n = (0, zt.createRoot)(e, xbe);
+ let n = (0, zt.createRoot)(e, wbe);
Q9.set(e, n);
let r = n.unmount.bind(n);
return n.unmount = () => {
- Q9.get(e) === n && (Q9.delete(e), r(), Z9 && OBe(Z9));
- }, (0, Rt.flushSync)(() => n.render(/* @__PURE__ */ (0, I.jsx)(ABe, {}))), n;
+ Q9.get(e) === n && (Q9.delete(e), r(), Z9 && LBe(Z9));
+ }, (0, Rt.flushSync)(() => n.render(/* @__PURE__ */ (0, I.jsx)(zBe, {}))), n;
}
// src/react/bootstrap.tsx
O();
var $9 = document.getElementById("appRoot");
if (!$9) throw Error("主界面宿主缺失");
-jBe($9);
-export { RL as $2ec61d1d4f780267$export$a8a3e93435678ff9, KL as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, lz as $542a13ca2fa5b484$export$5b6b19405a83ff9d, bD as $72abaeab4d80592f$export$78efe591171d7d45, tB as $76d00c5a4edb230a$export$76ccd210b9029917, Qz as $76d00c5a4edb230a$export$816b5d811295e6bc, iB as $76d00c5a4edb230a$export$b59bdbef9ce70de2, oB as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, Zz as $76d00c5a4edb230a$export$f850895b287ef28e, Bhe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, zhe as $b4f18e3395fe64d7$export$3e41faf802a29e71, Ihe as $b4f18e3395fe64d7$export$b2539bed5023c21c, uB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, Uhe as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, sE as $ea3928288112382f$export$439d29a4e110a164, Sz as $f2ff30fde7b014be$export$3ddf2d174ce01153, kz as $fe21c36db05242bb$export$a98f0dcb43a68a25, Az as $fe21c36db05242bb$export$d7b12c4107be0d61, Ege as $l, Vj as ACCENTS, NAe as AMANE_BRIDGE_CHECK_URL, A$ as AMANE_BRIDGE_KEY, PAe as AMANE_BRIDGE_REBUILD_URL, sr as ApiError, WU as ArtSlot, b2 as BATCH_DELETE_TEXT, J as Button, gL as ButtonLink, HB as Bx, a$ as CLEANUP_ENTRY, i$ as CLEANUP_ENTRY_GRID, Zf as CLEANUP_HASH_REDIRECTS, Yf as CLEANUP_TOOLS, vn as CLOUD_LOCATIONS, K1 as CLOUD_PROXY_HELP, Kr as COLUMN_SORT, q$ as CONFIGURATION_KEY, BY as CONFIGURATION_URL, FAe as COOKIE_TEXT_LIMIT, k$ as COVER_JOB_KEY, Yi as CREDENTIAL_STATE, T$ as CUSTOM_SOURCES_KEY, w$ as CUSTOM_SOURCES_URL, iG as CatalogViewToggle, IV as Checkbox, FV as CheckboxGlyph, EV as ChevronSortDown, UU as Chip, $U as CloudDownloadDialog, AH as CollapseChevron, kH as CollapseRegion, QQ as CollectionSummary, dTe as DEFAULT_CATEGORY, dr as DEFAULT_SORT, wQ as DIAGNOSTICS_KEY, dEe as DIRECTORY_TEMPLATE_ERROR, oW as DISCOVERY_SORTS, KU as DOWNLOADS_KEY, GU as DOWNLOADS_URL, oY as DUPLICATES_KEY, BJ as DataTableFooter, IJ as DataTableFrame, zJ as DataTableSort, IH as Disclosure, xye as DownloadsPanel, hge as E3, fTe as ENTITY_REVIEW_KINDS, W1 as ENTRY_LINKS_HELP, G1 as ENTRY_LINKS_HINT, PB as Ea, $ge as EmptyFocusButton, cV as EmptyState, PH as ErrorText, Uge as Eu, hve as ExternalLink, Vr as FEEDS_KEY, VTe as FEED_SCHEDULE_KEY, n$ as FIELDSET_FOOT, uIe as FLOW_LABEL_X, e6 as FLOW_VIEWBOX, zr as FOLLOW_CHECK_KEY, Rr as FOLLOW_CREDENTIALS_KEY, L8 as FOLLOW_INITIAL_RANGE_OPTIONS, Lr as FOLLOW_MANAGE_KEY, DZ as FOLLOW_MANAGE_NAV, Br as FOLLOW_RESOLVE_KEY, qY as FOLLOW_SCHEDULE_KEY, vve as Fact, _ve as FactList, FH as FieldLabel, h$ as Fieldset, m$ as FieldsetTitle, Lpe as FilterGlass, lL as FilterGlassRows, cL as FilterIconButton, uL as FilterPill, mve as Footer, zB as Gg, dL as GlassPill, KB as HN, NH as Help, $B as HintText, nIe as IDLE_POLL_MS, eTe as IDLE_REPAIR, iL as IconButton, EQ as IndexSearch, iV as Input, rV as InputBase, _$ as IssueRow, aM as JAV_LAYOUTS, z0 as JAV_RECOMMENDATION_GRID, vX as JUNK_KEY, hW as JavHeader, Jwe as KEEP_LABELS, age as L1, Ur as LAYOUTS, U1 as LIBRARY_FOLDER_HELP, YV as LIBRARY_PROCESSING_KEY, MY as LINKS_KEY, NY as LINK_CHECK_KEY, ITe as LINK_KINDS, PY as LINK_PRUNE_KEY, nr as LOC, QB as Label, b$ as LibraryProcessingCard, TV as LibraryShortcuts, dH as LinkButton, Oge as Lo, wH as LoadingDots, _ge as M6, HTe as MEDIA_PROCESSING_KEY, YY as MEDIA_PROCESSING_URL, dY as MEDIA_REPAIR_KEY, uY as MEDIA_REPAIR_URL, yr as MEDIA_SOURCES_KEY, _s as MEDIA_SOURCE_ICONS, gn as MEDIA_SOURCE_OPTIONS, AV as MENU_ITEM, jV as MENU_ITEM_INTERACTIVE, kV as MENU_POPOVER_SURFACE, Age as Ma, hH as MenuDialog, mK as MixCard, aV as ModalFrame, vx as MotionConfigContext, XB as NR, g$ as NameLink, sV as Note, Yge as OA, QY as ORGANIZE_KEY, _2 as ORGANIZE_PARAMETER_HINT, g2 as ORGANIZE_SCOPE_HINT, h2 as ORGANIZE_TEXT, tX as ORPHAN_RECORDS_KEY, y2 as ORPHAN_RECORDS_TEXT, LB as OV, SB as P7, hX as PERFORMER_DELETE_KEY, Aye as PHASES, VY as PICK_FOLDER_URL, s$ as PLAIN_STAT_STRIP, S$ as PLAYLISTS_KEY, Zje as POLICY_COLUMNS, $je as POLICY_COVER_NOTE, Qje as POLICY_MATRIX, H1 as POLICY_SUMMARY, RJ as Pagination, y$ as PathLine, JB as Pf, NI as PillTabList, tAe as PlainStat, EH as Progress, gY as QUALITY_GOALS_KEY, qB as RB, I0 as RELEASE_COLUMN_VISIBILITY_KEY, F0 as RELEASE_COLUMN_WIDTHS_KEY, sW as RELEASE_SORTS, DMe as RELEASE_SORT_COLUMNS, l$ as REPAIR_CARD_TEXT, fY as REPAIR_LIBRARIES_KEY, oX as RESOURCE_APPLY_KEY, aX as RESOURCE_SCAN_KEY, v2 as RESOURCE_SYNC_TEXT, sAe as RESULT_PANEL, cAe as RESULT_SECTION, uTe as REVIEW_CATEGORIES, _X as REVIEW_COUNTS_KEY, pTe as REVIEW_DECISION_LABELS, yY as REVIEW_KEY, bY as REVIEW_LABELS, SY as REVIEW_QUEUES, CY as REVIEW_QUEUE_LABELS, FG as RetryNote, qge as Rf, ZB as Rk, dve as Rows, jAe as SCRAPING_CHECK_URL, D$ as SCRAPING_COVER_URL, O$ as SCRAPING_KEY, AAe as SCRAPING_SETTINGS_URL, nU as SEGMENT, tU as SEGMENTED_TRACK, KY as SETTINGS_KEY, HY as SETTINGS_URL, fr as SORT_DEFAULT_DIR, ur as SORT_OPTIONS, yn as SOURCE_LABELS, T3 as STATS_KEY, $ke as STAT_STRIP, eAe as STAT_STRIP_SIX, uve as Section, lAe as SectionHeading, pve as SectionSkeleton, eU as SegmentedRadioGroup, Nve as SegmentedTabList, OG as Segments, LJ as Select, BU as Select$1, Z$ as SelectField, VU as SelectItem, qJ as SelectionActions, yj as SelectionDock, JJ as SelectionPopover, jH as SettingsCard, lve as SettingsRow, MH as SettingsSectionLabel, kG as Shuffle, Sve as SiteLabel, oG as SortDirectionIcon, AG as SortKeys, sQ as SourceAvatar, BH as SourceLabel, LH as SourceMark, fve as Stack, nAe as StatCard, v$ as StatusLabel, Wge as Su, r4 as Switch, HI as TASKS_KEY, GFe as TASTE_REFRESH_KEY, KFe as TASTE_WINDOWS, JY as THUMBNAIL_JOBS_KEY, bX as TRASH_KEY, gpe as TRIGGER_LABELS, TJ as Table, YJ as TableColumnControls, XJ as TableColumnResizer, QJ as TableSelectionHeader, qQ as TagManager, gve as TaskCenterLink, DH as TaskProgress, tV as TextField, eV as TextFieldContext, FB as Un, Jge as Uz, tW as WANTS_KEY, v4 as WantMagnets, Gg as WithPromise, EB as Wt, NB as Xc, YB as Xf, OB as Xl, DB as Xt, wB as _8, o as __commonJSMin, s as __exportAll, l as __toESM, GB as _p, Kge as aB, Ei as addAlias, Ti as addSource, rW as addWant, sS as animate, B as apiGet, V as apiSend, $j as appSettingsStore, AEe as applyConfirmText, mX as applyLeftovers, kEe as applyPlanText, MEe as applyText, rM as applyTheme, gy as asNumber, vEe as attachOrphan, ci as authorAvatar, ui as authorGroups, si as authorInitial, oi as authorName, pq as autoResetPageIndex, _o as avatarInner, j3 as bandRows, fEe as baseName, $we as batchOperate, Mue as beginPlayerGuidePreview, wj as boundedPreference, Xwe as bulkCloudPreferences, fV as busyProps, Gge as cB, bPe as cachedMagnetStates, zg as calcGeneratorVelocity, bTe as canApprove, mg as cancelFrame, CEe as candidateText, bU as cardClass, vM as cardRatio, NJ as catalogListSkeletonCellHtml, MB as cc, Gi as checkEvidenceGap, Wi as checkFailures, Fi as checkFeeds, BTe as checkLine, Hi as checkReceipt, Ui as checkSummary, LAe as checkText, Ki as checkedText, tK as clickedBlank, X5 as closeDrawerAfterNav, Hwe as cloudLocations, C0 as cloudProxySkeleton, BC as clsx, Nge as cn, av as collectMotionValues, Nq as columnVisibilityFeature, bJ as column_getCanSort, gJ as column_getSortFn, vTe as commonReviewSources, QU as composingKey, Af as configurationSection, XFe as configureTasteBrowser, ll as confirmModal, mpe as controlTask, YK as copyInstancePropertiesWithoutMemos, lo as coverUrl, wq as createColumnHelper, wAe as createPlaylist, Xi as credentialDone, y0 as credentialsSkeleton, kTe as currentReviewRow, q as cx, vge as d6, VB as dZ, ETe as decisionPayload, DTe as decisionReceipt, TTe as defaultChoice, PEe as deletePerformerVideos, EAe as deletePlaylist, D0 as devicesSkeleton, x as diagnosticHeaders, V1 as diagnosticsSkeleton, zye as discoveryArtwork, cW as discoveryKey, Iye as discoveryScore, l9 as disposeStage, Kwe as distinctName, Bi as dropSources, Hge as du, Zwe as duplicateVictims, YI as elapsedText, nn as entityDisplayName, go as entityFaceImg, Pn as entityPath, ti as errorHeadline, lr as errorMessage, z as esc, fq as expandRowModel, hB as f1, bo as facePos, ei as feedIntervalText, N$ as fetchAmaneBridge, vi as fetchCheckJob, J$ as fetchConfiguration, M$ as fetchCoverJob, _i as fetchCredentials, E$ as fetchCustomSources, gX as fetchDeletePerformers, NEe as fetchDeletePlan, TQ as fetchDiagnostics, lW as fetchDiscoveries, cY as fetchDuplicates, upe as fetchEarlier, GTe as fetchFeedSchedule, Mi as fetchFeeds, gi as fetchFollow, WTe as fetchFollowSchedule, SX as fetchJunkSummary, rH as fetchLibraryProcessing, LY as fetchLinkCheck, RY as fetchLinkPrune, IY as fetchLinkStats, UTe as fetchMediaProcessing, pY as fetchMediaRepair, br as fetchMediaSources, $Y as fetchOrganize, iEe as fetchOrganizeExample, nX as fetchOrphanRecords, ji as fetchPending, C$ as fetchPlaylists, _Y as fetchQualityGoals, fW as fetchReleases, mY as fetchRepairLibraries, yi as fetchResolveJob, cX as fetchResourceApply, sX as fetchResourceScan, kY as fetchReview, xX as fetchReviewCounts, XY as fetchSettings, j$ as fetchSources, E3 as fetchStats, bi as fetchSuggestions, WI as fetchTasks, Z3 as fetchTaste, ZFe as fetchTasteJob, KTe as fetchThumbnailJobs, CX as fetchTrashSummary, nW as fetchWants, gTe as filterReviewRows, er as firstGrapheme, jK as flexRender, fIe as flowGraph, pIe as flowLabel, dFe as fmtCount, Jn as fmtDur, Xn as fmtSize, lpe as foldByKind, Epe as foldRoutine, Li as followFeedByName, Hr as followSuggestKey, Ope as followupDetail, cpe as followupTally, pg as frame, bB as g4, Iq as getDefaultPaginationState, _M as gridLayout, li as groupByAuthor, Tpe as groupFollowups, EY as groupReviewRows, DEe as hasChanges, lX as hasResourceRoots, KI as hasResultProblems, rIe as historySpan, gB as i2, tIe as importTasteExport, b0 as indexersSkeleton, Fg as interpolate, aW as invalidateWants, JI as isActive, $r as isBroken, qr as isLayout, gv as isMotionValue, xY as isReviewCategory, Dpe as isRoutine, x0 as javBrowserSkeleton, V0 as javContentSkeleton, uM as javLayout, B0 as javTagSkeleton, zEe as junkBreakdown, DAe as keepPlaylist, ke as keepPreviousData, pi as keepSelected, D3 as known, ige as l1, dge as l7, wpe as latestOfKind, $n as leadingGraphemes, CFe as lengthRows, Cr as localTime, po as logoUrl, Ii as lookupFeedActor, xB as m7, BB as mM, Dn as mapLimit, Ai as markItem, M3 as max, xFe as mediumRows, dpe as mergeFinished, N3 as min, PTe as mirrorText, rTe as missingToolText, lY as mixedCloudPreferences, $I as momentText, cS as motion, sv as motionValue, rn as nameFallback, Ue as notifyManager, yge as oe, mEe as organizeOutcome, r2 as overlayHost, Jr as pageSizeOf, fi as pageWindow, hr as paginationRange, zi as patchSource, Op as peachHistory, Op as peachHistory$1, wTe as pendingGenres, pFe as percentText, sEe as pickOrganizeFolder, o$ as plainStatClass, pEe as planSummary, O3 as playedFor, hFe as playedItemUrl, UI as pollInterval, Ys as popCount, CAe as posterUrl, fxe as previewLibraryColor, oEe as previewOrganize, oTe as previewUrl, Spe as problemDestination, QV as processingActive, XI as progressText, zH as providerIcon, zTe as pruneText, dX as purgeCount, yEe as purgeOrphan, UB as pv, Vge as qE, H as queryClient, _B as r2, lIe as radarRows, vFe as radialArc, yFe as radialBarSize, _Fe as radialCeiling, gFe as radialSlices, PN as randomId, sIe as rankDetail, cIe as rankShares, A3 as reachedShare, ZI as readableErrorHeadline, Lye as recommendationScore, ATe as recordGenre, xEe as recordsText, OAe as recreatePlaylist, xAe as refreshPlaylists, El as relayoutCovers, L0 as releaseColumns, uW as releaseFilters, dW as releaseKey, Vi as reloadFollowManage, NTe as reloadReview, nMe as rememberShape, lEe as rememberTemplates, Di as removeAlias, Pi as removeFeed, wi as removeSource, eIe as removeTasteSource, iW as removeWants, Oi as renameAliasGroup, TAe as renamePlaylist, Se as replaceEqualDeep, TFe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, GK as require_with_selector, Nye as resetWants, mr as resolveFollowSort, Hg as resolveStartTime, G_e as restartEffectText, SAe as resumeAssetId, hTe as reviewGroupingOptions, TY as reviewQueueData, wY as reviewQueueOf, REe as reviewSummary, _Te as reviewWindow, STe as rowEvidence, OY as rowFieldName, Uq as rowPaginationFeature, uJ as rowSelectionFeature, CJ as rowSortingFeature, DY as rowSubject, CTe as rowTags, xTe as rowTitle, cge as s5, ki as saveCredential, OEe as scanLine, ZTe as schedulePollInterval, Fye as searchNote, yTe as selectReviewRange, mi as selectionState, Ni as setFeedEnabled, Ci as setSourceEnabled, Pf as settingsPath, MTe as settleReviewRows, Gwe as sharedNamePrefix, kp as shellNavigate, T8 as showToast, Bn as siteMarkUrl, rq as skipFirstRun, jI as sortCx, Xr as sortLabel, bn as sourceDefaultCost, Ji as sourceIconUrl, jEe as sourceMeta, Bs as spinnerHtml, Ng as spring, uV as spriteGlyph, xi as startCheck, LTe as startLinkCheck, RTe as startLinkPrune, cEe as startOrganize, Si as startResolve, TEe as startResourceApply, wEe as startResourceScan, $Fe as startTasteRefresh, Qke as statCardClass, vpe as statusLabel, nTe as statusLine, Qr as statusText, yM as storeJavLayout, OTe as submitDecision, eL as summaryItems, Tq as tableFeatures, iq as tableMemo, di as tableRows, xpe as taskIssues, Cpe as taskSubject, Q3 as tasteDate, aIe as tasteDimensions, iIe as tasteHours, X3 as tasteKey, JFe as tasteRefetchInterval, YFe as tasteTime, LI as textLang, P0 as tierPlaceholdersHtml, rh as time, wge as tl, hi as toggleGroup, $3 as topScores, Fge as um, kge as uo, fH as useAction, SZ as useBackgroundJob, rG as useCatalogView, MU as useClientUpdates, hm as useConstant, tL as useEntityNames, sL as useHorizontalScroller, gm as useIsomorphicLayoutEffect, eK as useLibraryTints, It as useMutation, LV as useOverlayScrollbar, Ft as useQuery, ae as useQueryClient, Xx as useReducedMotion, XTe as useRunSchedule, JTe as useSaveFollowSchedule, ZY as useSaveSettings, QTe as useSaveThumbnailMode, wJ as useTable, UJ as useTablePreferences, mL as useViewGlide, Qwe as victimBytes, Tge as vl, Pye as wantName, mFe as watchNote, k3 as watchedShare, Ac as wireHorizontalScroller, uEe as withOrganizeJob, Rye as writeJavQuery, gge as z3 };
+BBe($9);
+export { BL as $2ec61d1d4f780267$export$a8a3e93435678ff9, JL as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, dz as $542a13ca2fa5b484$export$5b6b19405a83ff9d, wD as $72abaeab4d80592f$export$78efe591171d7d45, rB as $76d00c5a4edb230a$export$76ccd210b9029917, eB as $76d00c5a4edb230a$export$816b5d811295e6bc, oB as $76d00c5a4edb230a$export$b59bdbef9ce70de2, cB as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, $z as $76d00c5a4edb230a$export$f850895b287ef28e, Uhe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, Hhe as $b4f18e3395fe64d7$export$3e41faf802a29e71, zhe as $b4f18e3395fe64d7$export$b2539bed5023c21c, fB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, Khe as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, dE as $ea3928288112382f$export$439d29a4e110a164, wz as $f2ff30fde7b014be$export$3ddf2d174ce01153, jz as $fe21c36db05242bb$export$a98f0dcb43a68a25, Mz as $fe21c36db05242bb$export$d7b12c4107be0d61, kge as $l, Uj as ACCENTS, IAe as AMANE_BRIDGE_CHECK_URL, M$ as AMANE_BRIDGE_KEY, LAe as AMANE_BRIDGE_REBUILD_URL, sr as ApiError, KU as ArtSlot, S2 as BATCH_DELETE_TEXT, J as Button, vL as ButtonLink, WB as Bx, s$ as CLEANUP_ENTRY, o$ as CLEANUP_ENTRY_GRID, Zf as CLEANUP_HASH_REDIRECTS, Yf as CLEANUP_TOOLS, vn as CLOUD_LOCATIONS, J1 as CLOUD_PROXY_HELP, Kr as COLUMN_SORT, Y$ as CONFIGURATION_KEY, HY as CONFIGURATION_URL, RAe as COOKIE_TEXT_LIMIT, j$ as COVER_JOB_KEY, Yi as CREDENTIAL_STATE, D$ as CUSTOM_SOURCES_KEY, E$ as CUSTOM_SOURCES_URL, oG as CatalogViewToggle, RV as Checkbox, LV as CheckboxGlyph, OV as ChevronSortDown, GU as Chip, tW as CloudDownloadDialog, MH as CollapseChevron, jH as CollapseRegion, e$ as CollectionSummary, mTe as DEFAULT_CATEGORY, dr as DEFAULT_SORT, EQ as DIAGNOSTICS_KEY, mEe as DIRECTORY_TEMPLATE_ERROR, cW as DISCOVERY_SORTS, JU as DOWNLOADS_KEY, qU as DOWNLOADS_URL, cY as DUPLICATES_KEY, HJ as DataTableFooter, RJ as DataTableFrame, VJ as DataTableSort, RH as Disclosure, wye as DownloadsPanel, vge as E3, hTe as ENTITY_REVIEW_KINDS, K1 as ENTRY_LINKS_HELP, q1 as ENTRY_LINKS_HINT, IB as Ea, n_e as EmptyFocusButton, uV as EmptyState, IH as ErrorText, Kge as Eu, vve as ExternalLink, Vr as FEEDS_KEY, XY as FEED_SCHEDULE_KEY, i$ as FIELDSET_FOOT, pIe as FLOW_LABEL_X, n6 as FLOW_VIEWBOX, zr as FOLLOW_CHECK_KEY, Rr as FOLLOW_CREDENTIALS_KEY, z8 as FOLLOW_INITIAL_RANGE_OPTIONS, Lr as FOLLOW_MANAGE_KEY, kZ as FOLLOW_MANAGE_NAV, Br as FOLLOW_RESOLVE_KEY, YY as FOLLOW_SCHEDULE_KEY, xve as Fact, bve as FactList, LH as FieldLabel, _$ as Fieldset, g$ as FieldsetTitle, Bpe as FilterGlass, dL as FilterGlassRows, uL as FilterIconButton, fL as FilterPill, _ve as Footer, VB as Gg, pL as GlassPill, JB as HN, FH as Help, tV as HintText, aIe as IDLE_POLL_MS, rTe as IDLE_REPAIR, oL as IconButton, OQ as IndexSearch, oV as Input, aV as InputBase, y$ as IssueRow, sM as JAV_LAYOUTS, V0 as JAV_RECOMMENDATION_GRID, bX as JUNK_KEY, _W as JavHeader, Zwe as KEEP_LABELS, cge as L1, Ur as LAYOUTS, G1 as LIBRARY_FOLDER_HELP, ZV as LIBRARY_PROCESSING_KEY, PY as LINKS_KEY, FY as LINK_CHECK_KEY, zTe as LINK_KINDS, IY as LINK_PRUNE_KEY, nr as LOC, eV as Label, S$ as LibraryProcessingCard, DV as LibraryShortcuts, pH as LinkButton, jge as Lo, EH as LoadingDots, bge as M6, GTe as MEDIA_PROCESSING_KEY, WTe as MEDIA_PROCESSING_URL, pY as MEDIA_REPAIR_KEY, fY as MEDIA_REPAIR_URL, yr as MEDIA_SOURCES_KEY, _s as MEDIA_SOURCE_ICONS, gn as MEDIA_SOURCE_OPTIONS, MV as MENU_ITEM, NV as MENU_ITEM_INTERACTIVE, jV as MENU_POPOVER_SURFACE, Nge as Ma, _H as MenuDialog, gK as MixCard, sV as ModalFrame, Sx as MotionConfigContext, QB as NR, v$ as NameLink, lV as Note, Qge as OA, eX as ORGANIZE_KEY, y2 as ORGANIZE_PARAMETER_HINT, v2 as ORGANIZE_SCOPE_HINT, _2 as ORGANIZE_TEXT, rX as ORPHAN_RECORDS_KEY, x2 as ORPHAN_RECORDS_TEXT, zB as OV, wB as P7, _X as PERFORMER_DELETE_KEY, Nye as PHASES, UY as PICK_FOLDER_URL, l$ as PLAIN_STAT_STRIP, w$ as PLAYLISTS_KEY, eMe as POLICY_COLUMNS, nMe as POLICY_COVER_NOTE, tMe as POLICY_MATRIX, W1 as POLICY_SUMMARY, BJ as Pagination, x$ as PathLine, XB as Pf, FI as PillTabList, iAe as PlainStat, OH as Progress, vY as QUALITY_GOALS_KEY, YB as RB, R0 as RELEASE_COLUMN_VISIBILITY_KEY, L0 as RELEASE_COLUMN_WIDTHS_KEY, lW as RELEASE_SORTS, AMe as RELEASE_SORT_COLUMNS, d$ as REPAIR_CARD_TEXT, mY as REPAIR_LIBRARIES_KEY, cX as RESOURCE_APPLY_KEY, sX as RESOURCE_SCAN_KEY, b2 as RESOURCE_SYNC_TEXT, uAe as RESULT_PANEL, dAe as RESULT_SECTION, pTe as REVIEW_CATEGORIES, yX as REVIEW_COUNTS_KEY, gTe as REVIEW_DECISION_LABELS, xY as REVIEW_KEY, SY as REVIEW_LABELS, wY as REVIEW_QUEUES, TY as REVIEW_QUEUE_LABELS, LG as RetryNote, Xge as Rf, $B as Rk, mve as Rows, PAe as SCRAPING_CHECK_URL, k$ as SCRAPING_COVER_URL, A$ as SCRAPING_KEY, NAe as SCRAPING_SETTINGS_URL, iU as SEGMENT, rU as SEGMENTED_TRACK, JY as SETTINGS_KEY, WY as SETTINGS_URL, fr as SORT_DEFAULT_DIR, ur as SORT_OPTIONS, yn as SOURCE_LABELS, D3 as STATS_KEY, nAe as STAT_STRIP, rAe as STAT_STRIP_SIX, pve as Section, fAe as SectionHeading, gve as SectionSkeleton, nU as SegmentedRadioGroup, Ive as SegmentedTabList, AG as Segments, zJ as Select, HU as Select$1, $$ as SelectField, UU as SelectItem, YJ as SelectionActions, xj as SelectionDock, XJ as SelectionPopover, NH as SettingsCard, fve as SettingsRow, PH as SettingsSectionLabel, jG as Shuffle, Tve as SiteLabel, cG as SortDirectionIcon, MG as SortKeys, lQ as SourceAvatar, HH as SourceLabel, zH as SourceMark, hve as Stack, aAe as StatCard, b$ as StatusLabel, qge as Su, a4 as Switch, WI as TASKS_KEY, JFe as TASTE_REFRESH_KEY, YFe as TASTE_WINDOWS, ZY as THUMBNAIL_JOBS_KEY, SX as TRASH_KEY, ype as TRIGGER_LABELS, DJ as Table, ZJ as TableColumnControls, QJ as TableColumnResizer, eY as TableSelectionHeader, YQ as TagManager, yve as TaskCenterLink, kH as TaskProgress, rV as TextField, nV as TextFieldContext, LB as Un, Zge as Uz, rW as WANTS_KEY, b4 as WantMagnets, Yg as WithPromise, OB as Wt, FB as Xc, ZB as Xf, AB as Xl, kB as Xt, EB as _8, o as __commonJSMin, s as __exportAll, l as __toESM, qB as _p, Yge as aB, Ei as addAlias, Ti as addSource, aW as addWant, dS as animate, B as apiGet, V as apiSend, tM as appSettingsStore, NEe as applyConfirmText, gX as applyLeftovers, MEe as applyPlanText, FEe as applyText, aM as applyTheme, by as asNumber, xEe as attachOrphan, ci as authorAvatar, ui as authorGroups, si as authorInitial, oi as authorName, hq as autoResetPageIndex, _o as avatarInner, N3 as bandRows, hEe as baseName, nTe as batchOperate, Fue as beginPlayerGuidePreview, Ej as boundedPreference, $we as bulkCloudPreferences, mV as busyProps, Jge as cB, CPe as cachedMagnetStates, Ug as calcGeneratorVelocity, CTe as canApprove, vg as cancelFrame, EEe as candidateText, SU as cardClass, bM as cardRatio, FJ as catalogListSkeletonCellHtml, PB as cc, Gi as checkEvidenceGap, Wi as checkFailures, Fi as checkFeeds, UTe as checkLine, Hi as checkReceipt, Ui as checkSummary, BAe as checkText, Ki as checkedText, rK as clickedBlank, Q5 as closeDrawerAfterNav, Gwe as cloudLocations, T0 as cloudProxySkeleton, WC as clsx, Ige as cn, lv as collectMotionValues, Fq as columnVisibilityFeature, SJ as column_getCanSort, vJ as column_getSortFn, xTe as commonReviewSources, eW as composingKey, Af as configurationSection, $Fe as configureTasteBrowser, ll as confirmModal, _pe as controlTask, ZK as copyInstancePropertiesWithoutMemos, lo as coverUrl, Eq as createColumnHelper, DAe as createPlaylist, Xi as credentialDone, x0 as credentialsSkeleton, MTe as currentReviewRow, q as cx, xge as d6, UB as dZ, kTe as decisionPayload, ATe as decisionReceipt, OTe as defaultChoice, LEe as deletePerformerVideos, kAe as deletePlaylist, k0 as devicesSkeleton, x as diagnosticHeaders, U1 as diagnosticsSkeleton, Hye as discoveryArtwork, uW as discoveryKey, zye as discoveryScore, d9 as disposeStage, Ywe as distinctName, Bi as dropSources, Gge as du, eTe as duplicateVictims, ZI as elapsedText, nn as entityDisplayName, go as entityFaceImg, Pn as entityPath, ti as errorHeadline, lr as errorMessage, z as esc, mq as expandRowModel, _B as f1, bo as facePos, ei as feedIntervalText, F$ as fetchAmaneBridge, vi as fetchCheckJob, X$ as fetchConfiguration, P$ as fetchCoverJob, _i as fetchCredentials, O$ as fetchCustomSources, vX as fetchDeletePerformers, IEe as fetchDeletePlan, DQ as fetchDiagnostics, dW as fetchDiscoveries, uY as fetchDuplicates, ppe as fetchEarlier, JTe as fetchFeedSchedule, Mi as fetchFeeds, gi as fetchFollow, qTe as fetchFollowSchedule, wX as fetchJunkSummary, aH as fetchLibraryProcessing, zY as fetchLinkCheck, BY as fetchLinkPrune, RY as fetchLinkStats, KTe as fetchMediaProcessing, hY as fetchMediaRepair, br as fetchMediaSources, tX as fetchOrganize, sEe as fetchOrganizeExample, iX as fetchOrphanRecords, ji as fetchPending, T$ as fetchPlaylists, yY as fetchQualityGoals, mW as fetchReleases, gY as fetchRepairLibraries, yi as fetchResolveJob, uX as fetchResourceApply, lX as fetchResourceScan, jY as fetchReview, CX as fetchReviewCounts, QY as fetchSettings, N$ as fetchSources, O3 as fetchStats, bi as fetchSuggestions, KI as fetchTasks, $3 as fetchTaste, eIe as fetchTasteJob, YTe as fetchThumbnailJobs, TX as fetchTrashSummary, iW as fetchWants, yTe as filterReviewRows, er as firstGrapheme, NK as flexRender, hIe as flowGraph, gIe as flowLabel, mFe as fmtCount, Jn as fmtDur, Xn as fmtSize, fpe as foldByKind, kpe as foldRoutine, Li as followFeedByName, Hr as followSuggestKey, jpe as followupDetail, dpe as followupTally, _g as frame, SB as g4, Rq as getDefaultPaginationState, yM as gridLayout, li as groupByAuthor, Ope as groupFollowups, OY as groupReviewRows, AEe as hasChanges, dX as hasResourceRoots, JI as hasResultProblems, oIe as historySpan, vB as i2, iIe as importTasteExport, S0 as indexersSkeleton, zg as interpolate, sW as invalidateWants, XI as isActive, $r as isBroken, qr as isLayout, bv as isMotionValue, CY as isReviewCategory, Ape as isRoutine, C0 as javBrowserSkeleton, U0 as javContentSkeleton, fM as javLayout, H0 as javTagSkeleton, HEe as junkBreakdown, AAe as keepPlaylist, ke as keepPreviousData, pi as keepSelected, k3 as known, sge as l1, mge as l7, Dpe as latestOfKind, $n as leadingGraphemes, EFe as lengthRows, Cr as localTime, po as logoUrl, Ii as lookupFeedActor, CB as m7, HB as mM, Dn as mapLimit, Ai as markItem, P3 as max, wFe as mediumRows, mpe as mergeFinished, F3 as min, LTe as mirrorText, oTe as missingToolText, dY as mixedCloudPreferences, tL as momentText, fS as motion, dv as motionValue, rn as nameFallback, Ue as notifyManager, Sge as oe, _Ee as organizeOutcome, a2 as overlayHost, Jr as pageSizeOf, fi as pageWindow, hr as paginationRange, zi as patchSource, Np as peachHistory, Np as peachHistory$1, DTe as pendingGenres, gFe as percentText, uEe as pickOrganizeFolder, c$ as plainStatClass, gEe as planSummary, A3 as playedFor, vFe as playedItemUrl, GI as pollInterval, Ys as popCount, EAe as posterUrl, hxe as previewLibraryColor, lEe as previewOrganize, lTe as previewUrl, Tpe as problemDestination, eH as processingActive, QI as progressText, VH as providerIcon, HTe as pruneText, pX as purgeCount, SEe as purgeOrphan, GB as pv, Wge as qE, H as queryClient, yB as r2, fIe as radarRows, xFe as radialArc, SFe as radialBarSize, bFe as radialCeiling, yFe as radialSlices, IN as randomId, uIe as rankDetail, dIe as rankShares, M3 as reachedShare, $I as readableErrorHeadline, Bye as recommendationScore, NTe as recordGenre, wEe as recordsText, jAe as recreatePlaylist, wAe as refreshPlaylists, El as relayoutCovers, z0 as releaseColumns, fW as releaseFilters, pW as releaseKey, Vi as reloadFollowManage, ITe as reloadReview, aMe as rememberShape, fEe as rememberTemplates, Di as removeAlias, Pi as removeFeed, wi as removeSource, rIe as removeTasteSource, oW as removeWants, Oi as renameAliasGroup, OAe as renamePlaylist, Se as replaceEqualDeep, OFe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, qK as require_with_selector, Iye as resetWants, mr as resolveFollowSort, Kg as resolveStartTime, J_e as restartEffectText, TAe as resumeAssetId, vTe as reviewGroupingOptions, DY as reviewQueueData, EY as reviewQueueOf, VEe as reviewSummary, bTe as reviewWindow, TTe as rowEvidence, AY as rowFieldName, Gq as rowPaginationFeature, fJ as rowSelectionFeature, TJ as rowSortingFeature, kY as rowSubject, ETe as rowTags, wTe as rowTitle, dge as s5, ki as saveCredential, jEe as scanLine, eEe as schedulePollInterval, Rye as searchNote, STe as selectReviewRange, mi as selectionState, Ni as setFeedEnabled, Ci as setSourceEnabled, Pf as settingsPath, FTe as settleReviewRows, Jwe as sharedNamePrefix, Pp as shellNavigate, D8 as showToast, Bn as siteMarkUrl, aq as skipFirstRun, NI as sortCx, Xr as sortLabel, bn as sourceDefaultCost, Ji as sourceIconUrl, PEe as sourceMeta, Bs as spinnerHtml, Lg as spring, fV as spriteGlyph, xi as startCheck, BTe as startLinkCheck, VTe as startLinkPrune, dEe as startOrganize, Si as startResolve, OEe as startResourceApply, DEe as startResourceScan, nIe as startTasteRefresh, tAe as statCardClass, xpe as statusLabel, aTe as statusLine, Qr as statusText, xM as storeJavLayout, jTe as submitDecision, nL as summaryItems, Dq as tableFeatures, oq as tableMemo, di as tableRows, wpe as taskIssues, Epe as taskSubject, e6 as tasteDate, cIe as tasteDimensions, sIe as tasteHours, Q3 as tasteKey, ZFe as tasteRefetchInterval, QFe as tasteTime, zI as textLang, I0 as tierPlaceholdersHtml, ch as time, Dge as tl, hi as toggleGroup, t6 as topScores, Rge as um, Mge as uo, mH as useAction, wZ as useBackgroundJob, aG as useCatalogView, PU as useClientUpdates, bm as useConstant, rL as useEntityNames, lL as useHorizontalScroller, xm as useIsomorphicLayoutEffect, nK as useLibraryTints, It as useMutation, zV as useOverlayScrollbar, Ft as useQuery, ae as useQueryClient, eS as useReducedMotion, $Te as useRunSchedule, ZTe as useSaveFollowSchedule, $Y as useSaveSettings, tEe as useSaveThumbnailMode, EJ as useTable, GJ as useTablePreferences, gL as useViewGlide, tTe as victimBytes, Oge as vl, Lye as wantName, _Fe as watchNote, j3 as watchedShare, Ac as wireHorizontalScroller, pEe as withOrganizeJob, Vye as writeJavQuery, yge as z3 };
-//# debugId=540b9b62-d78e-4a7d-9c0c-86b1e13694db
\ No newline at end of file
+//# debugId=76b73096-fbeb-471c-9720-1d2b57ab8884
\ No newline at end of file