Skip to content

armgit / peach

Public Imported from GitHub
0

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

build(web): 并入入库通知后统一重建前端产物

longmeidao01fbadc24adc
diff --git a/web/dist/peach-app.js b/web/dist/peach-app.js
index ff3a229c0..cee8861b5 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] = "47ac12be-9799-4945-8514-f22d55a6be73", e._sentryDebugIdIdentifier = "sentry-dbid-47ac12be-9799-4945-8514-f22d55a6be73");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "d6467764-0f93-45a7-b767-ca2eb42b19fe", e._sentryDebugIdIdentifier = "sentry-dbid-d6467764-0f93-45a7-b767-ca2eb42b19fe");
} 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) => {
@@ -28404,12 +28404,12 @@ var Ok = {
width: "totalWidth",
height: "totalHeight"
}, Mk = {}, fce = () => typeof document < "u" ? window.visualViewport : null;
-function pce(e, t) {
+function Nk(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} = Fk(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ } else ({width: n, height: r, top: o, left: s} = Ik(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
return ZS() && (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,
@@ -28420,7 +28420,7 @@ function pce(e, t) {
left: s
};
}
-function mce(e) {
+function pce(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -28428,11 +28428,11 @@ function mce(e) {
height: e.scrollHeight
};
}
-function hce(e, t, n, r, i, a, o) {
+function mce(e, t, n, r, i, a, o) {
let s = i.scroll[e] ?? 0, c = r[Ak[e]], l = o[e] + r.scroll[Ok[e]] + a, u = o[e] + r.scroll[Ok[e]] + c - a, d = t - s + r.scroll[Ok[e]] + o[e] - r[Ok[e]], f = t - s + n + r.scroll[Ok[e]] + o[e] - r[Ok[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function gce(e) {
+function hce(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -28441,7 +28441,7 @@ function gce(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function _ce(e) {
+function gce(e) {
if (Mk[e]) return Mk[e];
let [t, n] = e.split(" "), r = Ok[t] || "right", i = dce[r];
Ok[n] || (n = "center");
@@ -28455,7 +28455,7 @@ function _ce(e) {
crossSize: o
}, Mk[e];
}
-function Nk(e, t, n, r, i, a, o, s, c, l, u) {
+function Pk(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;
@@ -28465,29 +28465,29 @@ function Nk(e, t, n, r, i, a, o, s, c, l, u) {
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function vce(e, t, n, r, i, a, o, s, c, l, u) {
+function _ce(e, t, n, r, i, a, o, s, c, l, u) {
let d = (e.top == null ? c[jk.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 yce(e, t, n, r, i, a, o, s) {
+function vce(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[kk[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[kk[l]] - i);
}
-function bce(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = _ce(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Nk(t, s, n, v, u, d, l, f, m, h, c), T = u, E = yce(s, l, t, i, a + u, v, c, g);
+function yce(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = gce(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Pk(t, s, n, v, u, d, l, f, m, h, c), T = u, E = vce(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = _ce(`${kk[S]} ${C}`), r = Nk(t, s, n, e, u, d, l, f, m, h, c);
- yce(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = gce(`${kk[S]} ${C}`), r = Pk(t, s, n, e, u, d, l, f, m, h, c);
+ vce(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 = hce(b, w[b], n[x], s, c, a, l);
+ let O = mce(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = vce(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = Nk(t, s, n, v, T, d, l, f, m, h, c), O = hce(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let k = _ce(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = Pk(t, s, n, v, T, d, l, f, m, h, c), O = mce(b, w[b], n[x], s, c, a, l), w[b] += O;
let A = {}, j = t[b] - w[b] - i[Ok[b]], M = j + .5 * t[x], ee = m / 2 + h, N = Ok[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - N - m / 2 - h;
A[b] = iE(iE(M, t[b] + m / 2 - (w[b] + i[Ok[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Ok[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 = {
@@ -28503,17 +28503,17 @@ function bce(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
triggerAnchorPoint: ne
};
}
-function xce(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 ? Cce(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Fk(n, !1, p) : Sce(n, h, !1, p);
+function bce(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 ? Sce(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Ik(n, !1, p) : xce(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 = Fk(r, !0), x = gce(r);
+ let b = Ik(r, !0), x = hce(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = mce(i), C = pce(s, m), w = pce(h, m), T;
+ let S = pce(i), C = Nk(s, m), w = Nk(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = Pk(h, !1);
+ let e = Fk(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -28525,11 +28525,11 @@ function xce(e) {
left: 0,
width: 0,
height: 0
- } : Sce(s, h, !1);
+ } : xce(s, h, !1);
let E = jS(s, h);
- return bce(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ return yce(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function Pk(e, t) {
+function Fk(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,
@@ -28538,8 +28538,8 @@ function Pk(e, t) {
height: a
};
}
-function Fk(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || Pk(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function Ik(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || Fk(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -28547,28 +28547,28 @@ function Fk(e, t, n) {
height: o
};
}
-function Sce(e, t, n, r) {
+function xce(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || Pk(e, n);
+ if (i.position === "fixed") a = r || Fk(e, n);
else {
- a = Fk(e, n, r);
- let i = Fk(t, n), o = window.getComputedStyle(t);
+ a = Ik(e, n, r);
+ let i = Ik(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 Cce(e) {
+function Sce(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !wce(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !wce(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !Cce(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !Cce(t);) t = t.parentElement;
return t || document.documentElement;
}
-function wce(e) {
+function Cce(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 Ik = typeof document < "u" ? window.visualViewport : null;
-function Tce(e) {
+var Lk = typeof document < "u" ? window.visualViewport : null;
+function wce(e) {
let { direction: t } = Iw(), { 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,
@@ -28586,12 +28586,12 @@ function Tce(e) {
g,
_,
n
- ], S = (0, F.useRef)(Ik?.scale);
+ ], S = (0, F.useRef)(Lk?.scale);
(0, F.useEffect)(() => {
- m && (S.current = Ik?.scale);
+ m && (S.current = Lk?.scale);
}, [m]);
let C = (0, F.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || Ik?.scale !== S.current) return;
+ if (p === !1 || !m || !i.current || !r.current || !u || Lk?.scale !== S.current) return;
let e = null;
if (o.current && PS(o.current)) {
let t = MS()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
@@ -28602,8 +28602,8 @@ function Tce(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 = xce({
- placement: Dce(s, t),
+ let y = bce({
+ placement: Ece(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -28613,7 +28613,7 @@ function Tce(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? Pk(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? Fk(a.current, !0).width : 0),
arrowBoundaryOffset: _,
targetRect: v?.(r.current)
});
@@ -28626,7 +28626,7 @@ function Tce(e) {
}
b(y);
}, x);
- BS(C, x), Ece(C), MO({
+ BS(C, x), Tce(C), MO({
ref: i,
onResize: C
}), MO({
@@ -28642,10 +28642,10 @@ function Tce(e) {
}, n = () => {
w.current && t();
};
- Ik?.addEventListener("resize", t), Ik?.addEventListener("scroll", n);
+ Lk?.addEventListener("resize", t), Lk?.addEventListener("scroll", n);
let r = OS(NS(window), "scroll", n);
return () => {
- Ik?.removeEventListener("resize", t), Ik?.removeEventListener("scroll", n), r();
+ Lk?.removeEventListener("resize", t), Lk?.removeEventListener("scroll", n), r();
};
}, [C]);
let T = (0, F.useCallback)(() => {
@@ -28677,16 +28677,16 @@ function Tce(e) {
updatePosition: C
};
}
-function Ece(e) {
+function Tce(e) {
BS(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function Dce(e, t) {
+function Ece(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 Oce(e, t) {
+function Dce(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 } = gk({
isOpen: t.isOpen,
onClose: t.close,
@@ -28694,7 +28694,7 @@ function Oce(e, t) {
isDismissable: !a || l,
isKeyboardDismissDisabled: o,
shouldCloseOnInteractOutside: s
- }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Tce({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = wce({
...c,
targetRef: n,
overlayRef: r,
@@ -28720,9 +28720,9 @@ function Oce(e, t) {
};
}
// node_modules/react-aria/dist/private/radio/utils.mjs
-var Lk = /* @__PURE__ */ new WeakMap();
+var Rk = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/radio/useRadio.mjs
-function kce(e, t, n) {
+function Oce(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: _ } = iT({
@@ -28745,7 +28745,7 @@ function kce(e, t, n) {
}
}), { focusableProps: b } = ew(q(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = q(g, b), S = Ww(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 } = Lk.get(t);
+ let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = Rk.get(t);
BT(n, t.defaultSelectedValue, t.setSelectedValue), VT({ validationBehavior: O }, t, n);
let k = HT();
return {
@@ -28778,7 +28778,7 @@ function kce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function Ace(e, t) {
+function kce(e, t) {
let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Iw(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = eE({
...e,
labelElementType: "span",
@@ -28807,7 +28807,7 @@ function Ace(e, t) {
},
allowRepeats: !0
}), x = BC(n);
- return Lk.set(t, {
+ return Rk.set(t, {
name: x,
form: r,
descriptionId: h.id,
@@ -28835,8 +28835,8 @@ function Ace(e, t) {
};
}
// node_modules/react-aria/dist/private/select/useSelect.mjs
-var Rk = /* @__PURE__ */ new WeakMap();
-function jce(e, t, n) {
+var zk = /* @__PURE__ */ new WeakMap();
+function Ace(e, t, n) {
let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = CD({
usage: "search",
sensitivity: "base"
@@ -28879,7 +28879,7 @@ function jce(e, t, n) {
});
t.selectionManager.selectionMode === "multiple" && (m = {});
let S = Ww(e, { labelable: !0 }), C = q(m, d, y), w = BC();
- return Rk.set(t, {
+ return zk.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -28939,8 +28939,8 @@ function jce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function Mce(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 } = dE({ style: {
+function jce(e, t, n) {
+ let r = zk.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = dE({ style: {
position: "fixed",
top: 0,
left: 0
@@ -28975,8 +28975,8 @@ function Mce(e, t, n) {
}
};
}
-function Nce(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 } = Mce({
+function Mce(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 } = jce({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -29000,7 +29000,7 @@ function Nce(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = Rk.get(t) || {};
+ let { validationBehavior: e } = zk.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -29030,7 +29030,7 @@ function Nce(e) {
return null;
}
// node_modules/react-aria/dist/private/separator/useSeparator.mjs
-function Pce(e) {
+function Nce(e) {
let t = Ww(e, { labelable: !0 }), n;
return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {
...t,
@@ -29039,7 +29039,7 @@ function Pce(e) {
} };
}
// node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function Fce(e, t, n) {
+function Pce(e, t, n) {
let { labelProps: r, inputProps: i, isSelected: a, ...o } = ZT(e, t, n);
return {
labelProps: r,
@@ -29053,10 +29053,10 @@ function Fce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var zk = class {
+var Bk = 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 Ice(e.layout) : new wE(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new Fce(e.layout) : new wE(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -29222,7 +29222,7 @@ var zk = class {
}
return null;
}
-}, Ice = class {
+}, Fce = class {
constructor(e) {
this.layout = e;
}
@@ -29235,15 +29235,15 @@ var zk = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, Bk = /* @__PURE__ */ new WeakMap();
+}, Vk = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/grid/useGrid.mjs
-function Lce(e, t, n) {
+function Ice(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 = CD({
usage: "search",
sensitivity: "base"
- }), { direction: g } = Iw(), _ = t.selectionManager.disabledBehavior, v = (0, F.useMemo)(() => a || new zk({
+ }), { direction: g } = Iw(), _ = t.selectionManager.disabledBehavior, v = (0, F.useMemo)(() => a || new Bk({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -29269,7 +29269,7 @@ function Lce(e, t, n) {
disallowTypeAhead: i,
escapeKeyBehavior: d
}), b = BC(e.id);
- Bk.set(t, {
+ Vk.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -29294,26 +29294,26 @@ function Lce(e, t, n) {
return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), yO({ getRowText: c }, t), { gridProps: E };
}
// node_modules/react-aria/dist/private/table/utils.mjs
-var Vk = /* @__PURE__ */ new WeakMap();
-function Hk(e) {
+var Hk = /* @__PURE__ */ new WeakMap();
+function Uk(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function Uk(e, t) {
- let n = Vk.get(e);
+function Wk(e, t) {
+ let n = Hk.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${Hk(t)}`;
+ return `${n}-${Uk(t)}`;
}
-function Wk(e, t, n) {
- let r = Vk.get(e);
+function Gk(e, t, n) {
+ let r = Hk.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${Hk(t)}-${Hk(n)}`;
+ return `${r}-${Uk(t)}-${Uk(n)}`;
}
-function Gk(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => Wk(e, t, n)).join(" ");
+function Kk(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => Gk(e, t, n)).join(" ");
}
// node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var Kk = {};
-Kk = {
+var qk = {};
+qk = {
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: "طي",
@@ -29327,8 +29327,8 @@ Kk = {
sortable: "عمود قابل للترتيب"
};
// node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var qk = {};
-qk = {
+var Jk = {};
+Jk = {
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: "Свиване",
@@ -29342,8 +29342,8 @@ qk = {
sortable: "сортираща колона"
};
// node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var Jk = {};
-Jk = {
+var Yk = {};
+Yk = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -29357,8 +29357,8 @@ Jk = {
sortable: "sloupec s možností řazení"
};
// node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var Yk = {};
-Yk = {
+var Xk = {};
+Xk = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -29372,8 +29372,8 @@ Yk = {
sortable: "sorterbar kolonne"
};
// node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var Xk = {};
-Xk = {
+var Zk = {};
+Zk = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -29387,8 +29387,8 @@ Xk = {
sortable: "sortierbare Spalte"
};
// node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var Zk = {};
-Zk = {
+var Qk = {};
+Qk = {
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: "Σύμπτυξη",
@@ -29402,8 +29402,8 @@ Zk = {
sortable: "Στήλη διαλογής"
};
// node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var Qk = {};
-Qk = {
+var $k = {};
+$k = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -29417,8 +29417,8 @@ Qk = {
collapse: "Collapse"
};
// node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var $k = {};
-$k = {
+var eA = {};
+eA = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -29432,8 +29432,8 @@ $k = {
sortable: "columna ordenable"
};
// node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var Rce = {};
-Rce = {
+var tA = {};
+tA = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -29447,8 +29447,8 @@ Rce = {
sortable: "sorditav veerg"
};
// node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var eA = {};
-eA = {
+var Lce = {};
+Lce = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -29462,8 +29462,8 @@ eA = {
sortable: "lajiteltava sarake"
};
// node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var tA = {};
-tA = {
+var nA = {};
+nA = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -29477,8 +29477,8 @@ tA = {
sortable: "colonne triable"
};
// node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var nA = {};
-nA = {
+var rA = {};
+rA = {
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: "כווץ",
@@ -29492,8 +29492,8 @@ nA = {
sortable: "עמודה שניתן למיין"
};
// node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var rA = {};
-rA = {
+var iA = {};
+iA = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -29507,8 +29507,8 @@ rA = {
sortable: "stupac koji se može razvrstati"
};
// node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var iA = {};
-iA = {
+var aA = {};
+aA = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -29522,8 +29522,8 @@ iA = {
sortable: "rendezendő oszlop"
};
// node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var aA = {};
-aA = {
+var oA = {};
+oA = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -29537,8 +29537,8 @@ aA = {
sortable: "colonna ordinabile"
};
// node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var oA = {};
-oA = {
+var sA = {};
+sA = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -29552,8 +29552,8 @@ oA = {
sortable: "並べ替え可能な列"
};
// node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var sA = {};
-sA = {
+var cA = {};
+cA = {
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: "접기",
@@ -29567,8 +29567,8 @@ sA = {
sortable: "정렬 가능한 열"
};
// node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var cA = {};
-cA = {
+var lA = {};
+lA = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -29582,8 +29582,8 @@ cA = {
sortable: "rikiuojamas stulpelis"
};
// node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var lA = {};
-lA = {
+var uA = {};
+uA = {
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",
@@ -29597,8 +29597,8 @@ lA = {
sortable: "kārtojamā kolonna"
};
// node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var uA = {};
-uA = {
+var dA = {};
+dA = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -29612,8 +29612,8 @@ uA = {
sortable: "kolonne som kan sorteres"
};
// node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var dA = {};
-dA = {
+var fA = {};
+fA = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -29627,8 +29627,8 @@ dA = {
sortable: "sorteerbare kolom"
};
// node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var fA = {};
-fA = {
+var pA = {};
+pA = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -29642,8 +29642,8 @@ fA = {
sortable: "kolumna z możliwością sortowania"
};
// node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var pA = {};
-pA = {
+var mA = {};
+mA = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -29657,8 +29657,8 @@ pA = {
sortable: "coluna classificável"
};
// node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var mA = {};
-mA = {
+var hA = {};
+hA = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -29672,8 +29672,8 @@ mA = {
sortable: "Coluna ordenável"
};
// node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var hA = {};
-hA = {
+var gA = {};
+gA = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -29687,8 +29687,8 @@ hA = {
sortable: "coloană sortabilă"
};
// node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var gA = {};
-gA = {
+var _A = {};
+_A = {
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: "Свернуть",
@@ -29702,8 +29702,8 @@ gA = {
sortable: "сортируемый столбец"
};
// node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var _A = {};
-_A = {
+var vA = {};
+vA = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -29717,8 +29717,8 @@ _A = {
sortable: "zoraditeľný stĺpec"
};
// node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var vA = {};
-vA = {
+var yA = {};
+yA = {
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",
@@ -29732,8 +29732,8 @@ vA = {
sortable: "razvrstljivi stolpec"
};
// node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var yA = {};
-yA = {
+var bA = {};
+bA = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -29747,8 +29747,8 @@ yA = {
sortable: "kolona koja se može sortirati"
};
// node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var bA = {};
-bA = {
+var xA = {};
+xA = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -29762,8 +29762,8 @@ bA = {
sortable: "sorterbar kolumn"
};
// node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var xA = {};
-xA = {
+var SA = {};
+SA = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -29777,8 +29777,8 @@ xA = {
sortable: "Sıralanabilir sütun"
};
// node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var SA = {};
-SA = {
+var CA = {};
+CA = {
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: "Згорнути",
@@ -29792,8 +29792,8 @@ SA = {
sortable: "сортувальний стовпець"
};
// node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var CA = {};
-CA = {
+var wA = {};
+wA = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -29807,8 +29807,8 @@ CA = {
sortable: "可排序的列"
};
// node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var wA = {};
-wA = {
+var TA = {};
+TA = {
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: "收合",
@@ -29822,45 +29822,45 @@ wA = {
sortable: "可排序的欄"
};
// node_modules/react-aria/dist/private/table/intlStrings.mjs
-var TA = {};
-TA = {
- "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": Rce,
- "fi-FI": eA,
- "fr-FR": tA,
- "he-IL": nA,
- "hr-HR": rA,
- "hu-HU": iA,
- "it-IT": aA,
- "ja-JP": oA,
- "ko-KR": sA,
- "lt-LT": cA,
- "lv-LV": lA,
- "nb-NO": uA,
- "nl-NL": dA,
- "pl-PL": fA,
- "pt-BR": pA,
- "pt-PT": mA,
- "ro-RO": hA,
- "ru-RU": gA,
- "sk-SK": _A,
- "sl-SI": vA,
- "sr-SP": yA,
- "sv-SE": bA,
- "tr-TR": xA,
- "uk-UA": SA,
- "zh-CN": CA,
- "zh-TW": wA
+var EA = {};
+EA = {
+ "ar-AE": qk,
+ "bg-BG": Jk,
+ "cs-CZ": Yk,
+ "da-DK": Xk,
+ "de-DE": Zk,
+ "el-GR": Qk,
+ "en-US": $k,
+ "es-ES": eA,
+ "et-EE": tA,
+ "fi-FI": Lce,
+ "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
};
// node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var zce = class extends zk {
+var Rce = class extends Bk {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -29937,14 +29937,14 @@ var zce = class extends zk {
}
};
// node_modules/react-aria/dist/private/table/useTable.mjs
-function Bce(e) {
+function zce(e) {
return e && e.__esModule ? e.default : e;
}
-function Vce(e, t, n) {
+function Bce(e, t, n) {
let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = CD({
usage: "search",
sensitivity: "base"
- }), { direction: c } = Iw(), l = t.selectionManager.disabledBehavior, u = (0, F.useMemo)(() => r || new zce({
+ }), { direction: c } = Iw(), l = t.selectionManager.disabledBehavior, u = (0, F.useMemo)(() => r || new Rce({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -29964,14 +29964,14 @@ function Vce(e, t, n) {
a,
o
]), d = BC(e.id);
- Vk.set(t, d);
- let { gridProps: f } = Lce({
+ Hk.set(t, d);
+ let { gridProps: f } = Ice({
...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 = Hw(Bce(TA), "@react-aria/table"), g = (0, F.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = Hw(zce(EA), "@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;
}, [
@@ -29984,8 +29984,8 @@ function Vce(e, t, n) {
}, [g]), { gridProps: q(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
}
// node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function EA(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Iw(), { 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 DA(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Iw(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = Vk.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = () => {
if (n.current) {
let e = ET(n.current);
if (p === "child") {
@@ -29999,7 +29999,7 @@ function EA(e, t, n) {
return;
}
}
- let o = t.selectionManager.childFocusStrategy === "last" ? DA(e) : e.firstChild();
+ let o = t.selectionManager.childFocusStrategy === "last" ? OA(e) : e.firstChild();
if (o) {
FC(o);
return;
@@ -30031,7 +30031,7 @@ function EA(e, t, n) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "rtl" ? (FC(n.current), LT(n.current, { containingElement: PT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : DA(a), t && (FC(t), LT(t, { containingElement: PT(n.current) })));
+ p === "cell" && l === "rtl" ? (FC(n.current), LT(n.current, { containingElement: PT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : OA(a), t && (FC(t), LT(t, { containingElement: PT(n.current) })));
}
break;
}
@@ -30043,7 +30043,7 @@ function EA(e, t, n) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "ltr" ? (FC(n.current), LT(n.current, { containingElement: PT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? DA(a) : a.firstChild(), t && (FC(t), LT(t, { containingElement: PT(n.current) })));
+ p === "cell" && l === "ltr" ? (FC(n.current), LT(n.current, { containingElement: PT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? OA(a) : a.firstChild(), t && (FC(t), LT(t, { containingElement: PT(n.current) })));
}
break;
}
@@ -30084,7 +30084,7 @@ function EA(e, t, n) {
isPressed: v
};
}
-function DA(e) {
+function OA(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -30092,19 +30092,19 @@ function DA(e) {
return t;
}
// node_modules/react-aria/dist/private/table/useTableCell.mjs
-function Hce(e, t, n) {
- let { gridCellProps: r, isPressed: i } = EA(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 Vce(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 = Gk(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
}
// node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function Uce(e) {
+function Hce(e) {
return e && e.__esModule ? e.default : e;
}
-function Wce(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = EA({
+function Uce(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = DA({
focusMode: "child",
...e
}, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = iT({
@@ -30115,7 +30115,7 @@ function Wce(e, t, n) {
ref: n
}), { focusableProps: l } = ew({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
r.props.allowsSorting && !$S() && (u = d ? f : "none");
- let p = Hw(Uce(TA), "@react-aria/table"), m;
+ let p = Hw(Hce(EA), "@react-aria/table"), m;
i && (m = `${p.format("sortable")}`, d && f && $S() && (m = `${m}, ${p.format(f)}`));
let h = zT(m), g = t.collection.size === 0;
return (0, F.useEffect)(() => {
@@ -30128,7 +30128,7 @@ function Wce(e, t, n) {
columnHeaderProps: {
...q(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: Uk(t, r.key),
+ id: Wk(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -30136,11 +30136,11 @@ function Wce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableColumnResize.mjs
-function Gce(e) {
+function Wce(e) {
return e && e.__esModule ? e.default : e;
}
-function Kce(e, t, n) {
- let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = Hw(Gce(TA), "@react-aria/table"), d = BC(), 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 } = Iw(), b = (0, F.useCallback)((e) => {
+function Gce(e, t, n) {
+ let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = Hw(Wce(EA), "@react-aria/table"), d = BC(), 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 } = Iw(), 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);
@@ -30182,7 +30182,7 @@ function Kce(e, t, n) {
let M = zT(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} ${Wk(t.tableState, r.key)}`,
"aria-valuetext": u.format("columnSize", { value: A }),
type: "range",
min: O,
@@ -30237,13 +30237,13 @@ function Kce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function qce(e, t, n) {
+function Kce(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 Jce(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 } = wO({
+function qce(e, t, n) {
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = Vk.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = wO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -30263,10 +30263,10 @@ function Jce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableRow.mjs
-function Yce(e) {
+function Jce(e) {
return e && e.__esModule ? e.default : e;
}
-var OA = {
+var kA = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -30276,21 +30276,21 @@ var OA = {
rtl: "ArrowRight"
}
};
-function Xce(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Jce(e, t, n), { direction: s } = Iw();
+function Yce(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = qce(e, t, n), { direction: s } = Iw();
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 = Hw(Yce(TA), "@react-aria/table"), u = Aw({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = Hw(Jce(EA), "@react-aria/table"), u = Aw({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": Gk(t, r.key)
+ "aria-labelledby": Kk(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = kA(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 = kA(t.collection, a);
+ 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);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === OA.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === OA.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 === 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()));
},
"aria-expanded": i ? t.expandedKeys === "all" || t.expandedKeys.has(r.key) : void 0,
"aria-level": e.level + 1,
@@ -30312,38 +30312,38 @@ function Xce(e, t, n) {
return {
rowProps: {
...q(a, d, m),
- "aria-labelledby": Gk(t, r.key)
+ "aria-labelledby": Kk(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function kA(e, t) {
+function AA(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 Zce() {
+function Xce() {
return { rowGroupProps: { role: "rowgroup" } };
}
// node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function AA() {
- return Zce();
+function jA() {
+ return Xce();
}
// node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function Qce(e) {
+function Zce(e) {
return e && e.__esModule ? e.default : e;
}
-function $ce(e, t) {
+function Qce(e, t) {
let { key: n } = e, { checkboxProps: r } = AO(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${Gk(t, n)}`
+ "aria-labelledby": `${r.id} ${Kk(t, n)}`
} };
}
-function ele(e) {
+function $ce(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": Hw(Qce(TA), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": Hw(Zce(EA), "@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,
@@ -30351,12 +30351,12 @@ function ele(e) {
} };
}
// node_modules/react-aria/dist/private/tabs/utils.mjs
-var jA = /* @__PURE__ */ new WeakMap();
-function MA(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${jA.get(e)}-${n}-${t}`) : "";
+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}`) : "";
}
// node_modules/react-aria/dist/private/tabs/useTab.mjs
-function tle(e, t, n) {
+function ele(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 } = wO({
selectionManager: o,
key: r,
@@ -30364,7 +30364,7 @@ function tle(e, t, n) {
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = MA(t, r, "tab"), m = MA(t, r, "tabpanel"), { tabIndex: h } = d, g = Ww(u?.props, { labelable: !0 });
+ }), p = NA(t, r, "tab"), m = NA(t, r, "tabpanel"), { tabIndex: h } = d, g = Ww(u?.props, { labelable: !0 });
delete g.id;
let _ = iC(u?.props), { focusableProps: v } = ew({
...u?.props,
@@ -30385,7 +30385,7 @@ function tle(e, t, n) {
};
}
// node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var nle = class {
+var tle = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -30428,11 +30428,11 @@ var nle = class {
}
};
// node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function rle(e, t, n) {
+function nle(e, t, n) {
let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Iw(), { collectionProps: l } = pD({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, F.useMemo)(() => new nle(a, c, r, s), [
+ keyboardDelegate: (0, F.useMemo)(() => new tle(a, c, r, s), [
a,
s,
r,
@@ -30443,7 +30443,7 @@ function rle(e, t, n) {
scrollRef: n,
linkBehavior: "selection"
}), u = BC();
- return jA.set(t, u), { tabListProps: {
+ return MA.set(t, u), { tabListProps: {
...q(l, Aw({
...e,
id: u
@@ -30454,12 +30454,12 @@ function rle(e, t, n) {
} };
}
// node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function ile(e, t, n) {
- let r = xO(n) ? void 0 : 0, i = MA(t, e.id ?? t?.selectedKey, "tabpanel");
+function rle(e, t, n) {
+ let r = xO(n) ? void 0 : 0, i = NA(t, e.id ?? t?.selectedKey, "tabpanel");
return { tabPanelProps: q(Aw({
...e,
id: i,
- "aria-labelledby": MA(t, t?.selectedKey, "tab")
+ "aria-labelledby": NA(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -30468,258 +30468,258 @@ function ile(e, t, n) {
}) };
}
// node_modules/react-aria/dist/private/tree/useTree.mjs
-function ale(e, t, n) {
+function ile(e, t, n) {
let { gridProps: r } = Use(e, t, n);
return r.role = "treegrid", { gridProps: r };
}
// node_modules/react-aria/dist/private/intl/tree/ar-AE.mjs
-var NA = {};
-NA = {
+var PA = {};
+PA = {
collapse: "طي",
expand: "تمديد"
};
// node_modules/react-aria/dist/private/intl/tree/bg-BG.mjs
-var PA = {};
-PA = {
+var FA = {};
+FA = {
collapse: "Свиване",
expand: "Разширяване"
};
// node_modules/react-aria/dist/private/intl/tree/cs-CZ.mjs
-var FA = {};
-FA = {
+var IA = {};
+IA = {
collapse: "Sbalit",
expand: "Roztáhnout"
};
// node_modules/react-aria/dist/private/intl/tree/da-DK.mjs
-var IA = {};
-IA = {
+var LA = {};
+LA = {
collapse: "Skjul",
expand: "Udvid"
};
// node_modules/react-aria/dist/private/intl/tree/de-DE.mjs
-var LA = {};
-LA = {
+var RA = {};
+RA = {
collapse: "Reduzieren",
expand: "Erweitern"
};
// node_modules/react-aria/dist/private/intl/tree/el-GR.mjs
-var RA = {};
-RA = {
+var zA = {};
+zA = {
collapse: "Σύμπτυξη",
expand: "Ανάπτυξη"
};
// node_modules/react-aria/dist/private/intl/tree/en-US.mjs
-var zA = {};
-zA = {
+var BA = {};
+BA = {
expand: "Expand",
collapse: "Collapse"
};
// node_modules/react-aria/dist/private/intl/tree/es-ES.mjs
-var BA = {};
-BA = {
+var VA = {};
+VA = {
collapse: "Contraer",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/et-EE.mjs
-var VA = {};
-VA = {
+var HA = {};
+HA = {
collapse: "Ahenda",
expand: "Laienda"
};
// node_modules/react-aria/dist/private/intl/tree/fi-FI.mjs
-var HA = {};
-HA = {
+var UA = {};
+UA = {
collapse: "Pienennä",
expand: "Laajenna"
};
// node_modules/react-aria/dist/private/intl/tree/fr-FR.mjs
-var UA = {};
-UA = {
+var WA = {};
+WA = {
collapse: "Réduire",
expand: "Développer"
};
// node_modules/react-aria/dist/private/intl/tree/he-IL.mjs
-var WA = {};
-WA = {
+var GA = {};
+GA = {
collapse: "כווץ",
expand: "הרחב"
};
// node_modules/react-aria/dist/private/intl/tree/hr-HR.mjs
-var GA = {};
-GA = {
+var KA = {};
+KA = {
collapse: "Sažmi",
expand: "Proširi"
};
// node_modules/react-aria/dist/private/intl/tree/hu-HU.mjs
-var KA = {};
-KA = {
+var qA = {};
+qA = {
collapse: "Összecsukás",
expand: "Kibontás"
};
// node_modules/react-aria/dist/private/intl/tree/it-IT.mjs
-var qA = {};
-qA = {
+var JA = {};
+JA = {
collapse: "Comprimi",
expand: "Espandi"
};
// node_modules/react-aria/dist/private/intl/tree/ja-JP.mjs
-var JA = {};
-JA = {
+var YA = {};
+YA = {
collapse: "折りたたむ",
expand: "展開"
};
// node_modules/react-aria/dist/private/intl/tree/ko-KR.mjs
-var YA = {};
-YA = {
+var XA = {};
+XA = {
collapse: "접기",
expand: "펼치기"
};
// node_modules/react-aria/dist/private/intl/tree/lt-LT.mjs
-var XA = {};
-XA = {
+var ZA = {};
+ZA = {
collapse: "Sutraukti",
expand: "Išskleisti"
};
// node_modules/react-aria/dist/private/intl/tree/lv-LV.mjs
-var ZA = {};
-ZA = {
+var QA = {};
+QA = {
collapse: "Sakļaut",
expand: "Izvērst"
};
// node_modules/react-aria/dist/private/intl/tree/nb-NO.mjs
-var QA = {};
-QA = {
+var $A = {};
+$A = {
collapse: "Skjul",
expand: "Utvid"
};
// node_modules/react-aria/dist/private/intl/tree/nl-NL.mjs
-var $A = {};
-$A = {
+var ej = {};
+ej = {
collapse: "Samenvouwen",
expand: "Uitvouwen"
};
// node_modules/react-aria/dist/private/intl/tree/pl-PL.mjs
-var ej = {};
-ej = {
+var tj = {};
+tj = {
collapse: "Zwiń",
expand: "Rozwiń"
};
// node_modules/react-aria/dist/private/intl/tree/pt-BR.mjs
-var tj = {};
-tj = {
+var nj = {};
+nj = {
collapse: "Recolher",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/pt-PT.mjs
-var nj = {};
-nj = {
+var rj = {};
+rj = {
collapse: "Colapsar",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/ro-RO.mjs
-var rj = {};
-rj = {
+var ij = {};
+ij = {
collapse: "Restrângeți",
expand: "Extindeți"
};
// node_modules/react-aria/dist/private/intl/tree/ru-RU.mjs
-var ij = {};
-ij = {
+var aj = {};
+aj = {
collapse: "Свернуть",
expand: "Развернуть"
};
// node_modules/react-aria/dist/private/intl/tree/sk-SK.mjs
-var aj = {};
-aj = {
+var oj = {};
+oj = {
collapse: "Zbaliť",
expand: "Rozbaliť"
};
// node_modules/react-aria/dist/private/intl/tree/sl-SI.mjs
-var oj = {};
-oj = {
+var sj = {};
+sj = {
collapse: "Strni",
expand: "Razširi"
};
// node_modules/react-aria/dist/private/intl/tree/sr-SP.mjs
-var sj = {};
-sj = {
+var cj = {};
+cj = {
collapse: " Skupi",
expand: "Proširi"
};
// node_modules/react-aria/dist/private/intl/tree/sv-SE.mjs
-var cj = {};
-cj = {
+var lj = {};
+lj = {
collapse: "Dölj",
expand: "Expandera"
};
// node_modules/react-aria/dist/private/intl/tree/tr-TR.mjs
-var lj = {};
-lj = {
+var uj = {};
+uj = {
collapse: "Daralt",
expand: "Genişlet"
};
// node_modules/react-aria/dist/private/intl/tree/uk-UA.mjs
-var uj = {};
-uj = {
+var dj = {};
+dj = {
collapse: "Згорнути",
expand: "Розгорнути"
};
// node_modules/react-aria/dist/private/intl/tree/zh-CN.mjs
-var dj = {};
-dj = {
+var fj = {};
+fj = {
collapse: "折叠",
expand: "扩展"
};
// node_modules/react-aria/dist/private/intl/tree/zh-TW.mjs
-var fj = {};
-fj = {
+var pj = {};
+pj = {
collapse: "收合",
expand: "展開"
};
// node_modules/react-aria/dist/private/tree/intlStrings.mjs
-var pj = {};
-pj = {
- "ar-AE": NA,
- "bg-BG": PA,
- "cs-CZ": FA,
- "da-DK": IA,
- "de-DE": LA,
- "el-GR": RA,
- "en-US": zA,
- "es-ES": BA,
- "et-EE": VA,
- "fi-FI": HA,
- "fr-FR": UA,
- "he-IL": WA,
- "hr-HR": GA,
- "hu-HU": KA,
- "it-IT": qA,
- "ja-JP": JA,
- "ko-KR": YA,
- "lt-LT": XA,
- "lv-LV": ZA,
- "nb-NO": QA,
- "nl-NL": $A,
- "pl-PL": ej,
- "pt-BR": tj,
- "pt-PT": nj,
- "ro-RO": rj,
- "ru-RU": ij,
- "sk-SK": aj,
- "sl-SI": oj,
- "sr-SP": sj,
- "sv-SE": cj,
- "tr-TR": lj,
- "uk-UA": uj,
- "zh-CN": dj,
- "zh-TW": fj
+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
};
// node_modules/react-aria/dist/private/tree/useTreeItem.mjs
-function ole(e) {
+function ale(e) {
return e && e.__esModule ? e.default : e;
}
-function mj(e, t, n) {
- let { node: r } = e, i = Wse(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = Hw(ole(pj), "@react-aria/tree"), s = {
+function hj(e, t, n) {
+ let { node: r } = e, i = Wse(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = Hw(ale(mj), "@react-aria/tree"), s = {
onPress: () => {
i.isDisabled || (t.toggleKey(r.key), t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r.key));
},
@@ -30737,15 +30737,15 @@ function mj(e, t, n) {
};
}
// src/react/components/selection-dock.tsx
-var hj = "(prefers-reduced-motion: reduce)", sle = () => matchMedia(hj).matches, cle = (e) => {
- let t = matchMedia(hj);
+var gj = "(prefers-reduced-motion: reduce)", ole = () => matchMedia(gj).matches, sle = (e) => {
+ let t = matchMedia(gj);
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
-}, gj = /* @__PURE__ */ new Map(), _j = () => {
+}, _j = /* @__PURE__ */ new Map(), vj = () => {
let e = document.documentElement;
- gj.size ? e.style.setProperty("--selection-dock-space", `${Math.max(...gj.values())}px`) : e.style.removeProperty("--selection-dock-space");
+ _j.size ? e.style.setProperty("--selection-dock-space", `${Math.max(..._j.values())}px`) : e.style.removeProperty("--selection-dock-space");
};
-function lle({ children: e, count: t, label: n }) {
- let r = (0, F.useRef)(null), i = Ox(), a = (0, F.useSyncExternalStore)(cle, sle, () => !1), { isFocusVisible: o } = DC(), s = a || o, c = {
+function cle({ children: e, count: t, label: n }) {
+ let r = (0, F.useRef)(null), i = Ox(), a = (0, F.useSyncExternalStore)(sle, ole, () => !1), { isFocusVisible: o } = DC(), s = a || o, c = {
opacity: 0,
transform: "translate(-50%, 8px)"
};
@@ -30753,10 +30753,10 @@ function lle({ children: e, count: t, label: n }) {
let e = r.current;
if (!e || !i) return;
let t = () => {
- gj.set(e, Math.ceil(e.offsetHeight + (parseFloat(getComputedStyle(e).bottom) || 0) + 16)), _j();
+ _j.set(e, Math.ceil(e.offsetHeight + (parseFloat(getComputedStyle(e).bottom) || 0) + 16)), vj();
}, n = new ResizeObserver(t);
return n.observe(e), window.addEventListener("resize", t), t(), () => {
- n.disconnect(), window.removeEventListener("resize", t), gj.delete(e), _j();
+ n.disconnect(), window.removeEventListener("resize", t), _j.delete(e), vj();
};
}, [i]), /* @__PURE__ */ (0, I.jsxs)(pS.div, {
ref: r,
@@ -30791,17 +30791,17 @@ function lle({ children: e, count: t, label: n }) {
}), e]
});
}
-function vj({ visible: e, ...t }) {
- return /* @__PURE__ */ (0, I.jsx)(jx, { children: e ? /* @__PURE__ */ (0, I.jsx)(lle, { ...t }, "selection") : null });
+function yj({ visible: e, ...t }) {
+ return /* @__PURE__ */ (0, I.jsx)(jx, { children: e ? /* @__PURE__ */ (0, I.jsx)(cle, { ...t }, "selection") : null });
}
// src/react/batch-dock/batch-dock-api.ts
-var yj = {
+var bj = {
group: "clear",
operation: "clear",
label: "取消",
glyph: "x"
};
-function ule(e, t = !1) {
+function lle(e, t = !1) {
switch (e) {
case "trash": return [
{
@@ -30817,7 +30817,7 @@ function ule(e, t = !1) {
glyph: "trash",
danger: !0
},
- yj
+ bj
];
case "junk": return [
t ? {
@@ -30838,7 +30838,7 @@ function ule(e, t = !1) {
glyph: "trash",
danger: !0
},
- yj
+ bj
];
case "follow": return [
{
@@ -30859,7 +30859,7 @@ function ule(e, t = !1) {
label: "忽略",
glyph: "eye-off"
},
- yj
+ bj
];
default: return [
{
@@ -30893,38 +30893,38 @@ function ule(e, t = !1) {
glyph: "trash",
danger: !0
},
- yj
+ bj
];
}
}
// src/react/batch-dock/batch-dock-island.tsx
-var bj = null, xj = {
+var xj = null, Sj = {
count: 0,
context: "catalog",
junkDismissed: !1
-}, Sj = /* @__PURE__ */ new Set();
-function dle(e) {
- return Sj.add(e), () => {
- Sj.delete(e);
+}, Cj = /* @__PURE__ */ new Set();
+function ule(e) {
+ return Cj.add(e), () => {
+ Cj.delete(e);
};
}
-function fle() {
- for (let e of [...Sj]) e();
+function dle() {
+ for (let e of [...Cj]) e();
}
-var ple = { render(e) {
- xj = e, (0, Rt.flushSync)(fle);
+var fle = { render(e) {
+ Sj = e, (0, Rt.flushSync)(dle);
} };
-function mle(e) {
- return bj = e, ple;
+function ple(e) {
+ return xj = e, fle;
}
-function hle() {
- let e = (0, F.useSyncExternalStore)(dle, () => xj);
- return bj ? /* @__PURE__ */ (0, I.jsx)(gle, {
- host: bj,
+function mle() {
+ let e = (0, F.useSyncExternalStore)(ule, () => Sj);
+ return xj ? /* @__PURE__ */ (0, I.jsx)(hle, {
+ host: xj,
props: e
}) : null;
}
-function gle({ host: e, props: t }) {
+function hle({ host: e, props: t }) {
let n = t.count > 0;
return (0, F.useLayoutEffect)(() => {
document.body.toggleAttribute("data-batch-dock-open", n);
@@ -30934,11 +30934,11 @@ function gle({ host: e, props: t }) {
className: "peach-react",
"data-batch-scope": "",
"data-context": t.context,
- children: /* @__PURE__ */ (0, I.jsx)(vj, {
+ children: /* @__PURE__ */ (0, I.jsx)(yj, {
label: "所选项目操作",
visible: t.count > 0,
count: `已选 ${t.count.toLocaleString()} 项`,
- children: ule(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: lle(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-batch-group": t.group,
"data-batch-action": t.operation,
@@ -30954,11 +30954,11 @@ function gle({ host: e, props: t }) {
});
}
// src/number-setting.ts
-function Cj(e, t, n, r) {
+function wj(e, t, n, r) {
return Number.isInteger(e) && e >= t && e <= n ? e : r;
}
// src/settings-store.ts
-function _le(e, t) {
+function gle(e, t) {
let n = /* @__PURE__ */ new Set(), r = 0, i = () => {
r += 1, n.forEach((e) => e());
};
@@ -30977,7 +30977,7 @@ function _le(e, t) {
};
}
// src/sort-preferences.ts
-var wj = [
+var Tj = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -30986,7 +30986,7 @@ var wj = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], Tj = ["release", "发行时间"], Ej = [...wj, Tj].map(([e]) => e), Dj = {
+], Ej = ["release", "发行时间"], Dj = [...Tj, Ej].map(([e]) => e), Oj = {
rating: ["从高到低", "从低到高"],
o: ["从多到少", "从少到多"],
plays: ["从多到少", "从少到多"],
@@ -30995,43 +30995,43 @@ var wj = [
new: ["从新到旧", "从旧到新"],
played: ["从近到远", "从远到近"],
release: ["从新到旧", "从旧到新"]
-}, Oj = {
+}, kj = {
big: ["size", "desc"],
short: ["dur", "asc"],
long: ["dur", "desc"]
-}, kj = (e, t, n = Dj) => (n[e] || [])[+(t === "asc")] || "", Aj = (e, t = Dj) => t[e] ? "desc" : "";
-function jj(e, t, n, r = Dj) {
+}, Aj = (e, t, n = Oj) => (n[e] || [])[+(t === "asc")] || "", jj = (e, t = Oj) => t[e] ? "desc" : "";
+function Mj(e, t, n, r = Oj) {
return e === t ? r[e] ? {
sort: e,
dir: n === "asc" ? "desc" : "asc"
} : null : {
sort: e,
- dir: Aj(e, r)
+ dir: jj(e, r)
};
}
-function Mj(e, t, n) {
+function Nj(e, t, n) {
return e === "seed" ? "" : e === t && n === "asc" ? "asc" : "desc";
}
-function Nj(e, t, n, r, i = n) {
- let a = e ? Oj[e] : void 0, o = a ? a[0] : e, s = o && Ej.includes(o) ? o : i;
- return Dj[s] ? {
+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] ? {
sort: s,
- dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : Mj(s, n, r)
+ dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : Nj(s, n, r)
} : {
sort: s,
dir: ""
};
}
// src/appearance/home-glow.ts
-var Pj = [
+var Fj = [
"spot1",
"spot2",
"spot3"
-], vle = [
+], _le = [
"光晕一",
"光晕二",
"光晕三"
-], Fj = "native", Ij = [
+], Ij = "native", Lj = [
[
"ash",
"灰雾",
@@ -31337,7 +31337,7 @@ var Pj = [
"rose"
],
[
- Fj,
+ Ij,
"玻璃原色",
{
spot1: {
@@ -31355,7 +31355,7 @@ var Pj = [
},
"blue"
]
-], Lj = (e) => e === Fj, Rj = [...Ij.map(([e, t]) => [e, t]), ["custom", "自定义"]], yle = (e) => (Rj.find(([t]) => t === e) || Rj[0])[1], zj = (e) => structuredClone((Ij.find(([t]) => t === e) || Ij[0])[2]), Bj = [
+], Rj = (e) => e === Ij, zj = [...Lj.map(([e, t]) => [e, t]), ["custom", "自定义"]], vle = (e) => (zj.find(([t]) => t === e) || zj[0])[1], Bj = (e) => structuredClone((Lj.find(([t]) => t === e) || Lj[0])[2]), Vj = [
["red", "红"],
["orange", "橙"],
["amber", "琥珀"],
@@ -31368,7 +31368,7 @@ var Pj = [
["violet", "紫罗兰"],
["fuchsia", "品红"],
["rose", "玫红"]
-], Vj = "blue", Hj = (e) => Bj.some(([t]) => t === e) ? e : Vj, ble = (e) => (Ij.find(([t]) => t === e) || [])[3] || "blue", xle = [
+], Hj = "blue", Uj = (e) => Vj.some(([t]) => t === e) ? e : Hj, yle = (e) => (Lj.find(([t]) => t === e) || [])[3] || "blue", ble = [
["all", "全部"],
["gray", "灰"],
["red", "红"],
@@ -31378,7 +31378,7 @@ var Pj = [
["blue", "蓝"],
["purple", "紫"],
["brown", "棕"]
-], Sle = [
+], xle = [
[
"gray",
"云灰",
@@ -31774,11 +31774,11 @@ var Pj = [
"霁蓝",
"#6686b8"
]
-], Uj = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, Wj = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, Cle = (e, t) => `rgba(${[
+], 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, Sle = (e, t) => `rgba(${[
1,
3,
5
-].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, wle = {
+].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, Cle = {
strength: [
0,
100,
@@ -31804,7 +31804,7 @@ var Pj = [
100,
50
]
-}, Gj = {
+}, Kj = {
on: !0,
preset: "ash",
strength: 100,
@@ -31812,56 +31812,56 @@ var Pj = [
speed: 100,
soften: 50,
size: 50,
- ...zj("ash")
+ ...Bj("ash")
};
-function Kj(e) {
- let t = e && typeof e == "object" ? e : {}, n = Rj.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = zj(r === "custom" ? "ash" : r), a = {
+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 = {
on: t.on !== !1,
preset: r
};
- for (let [e, [n, r, i]] of Object.entries(wle)) a[e] = Uj(+t[e], n, r, i);
- for (let e of Pj) {
+ for (let [e, [n, r, i]] of Object.entries(Cle)) a[e] = Wj(+t[e], n, r, i);
+ for (let e of Fj) {
let r = n && t[e] && typeof t[e] == "object" ? t[e] : {}, o = i[e];
a[e] = {
- color: Wj(r.color, o.color),
- alpha: Uj(+r.alpha, 0, 100, o.alpha)
+ color: Gj(r.color, o.color),
+ alpha: Wj(+r.alpha, 0, 100, o.alpha)
};
}
return a;
}
-var Tle = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, qj = /* @__PURE__ */ new WeakMap();
-function Ele(e, t) {
+var wle = (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 Tle(e, t) {
if (!e) return;
- let n = qj.get(e);
- n || (n = /* @__PURE__ */ new Map(), qj.set(e, n));
- let r = t.on && !Lj(t.preset), i = (t, r) => {
+ let n = Jj.get(e);
+ n || (n = /* @__PURE__ */ new Map(), Jj.set(e, n));
+ let r = t.on && !Rj(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"), Pj.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"), Fj.forEach((e, n) => {
let r = t[e];
- i(`--glow-spot-${n + 1}-color`, Cle(r.color, r.alpha));
+ i(`--glow-spot-${n + 1}-color`, Sle(r.color, r.alpha));
});
}
-function Dle(e, t) {
+function Ele(e, t) {
if (!e) return;
- let n = !t.on || Lj(t.preset);
+ let n = !t.on || Rj(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 Ole = "peach.settings.v1", kle = [
+var Dle = "peach.settings.v1", Ole = [
"system",
"light",
"dark"
-], Jj = [
+], Yj = [
0,
7,
30,
90
-], Ale = [
+], kle = [
"feedHideGroupCompilations",
"feedHideSoloCompilations",
"feedHideExcerpts"
-], Yj = {
+], Xj = {
batchSize: 60,
defaultSort: "seed",
sortDefaultsVersion: 3,
@@ -31882,56 +31882,56 @@ var Ole = "peach.settings.v1", kle = [
theme: "system",
groupCollapse: !0,
sidebarOrder: [...Vl],
- homeGlow: Gj,
- accent: Vj,
+ homeGlow: Kj,
+ accent: Hj,
performerNameLanguage: "zh-CN"
-}, Xj = (e, t, n) => t.includes(e) ? e : n;
-function jle(e) {
+}, Zj = (e, t, n) => t.includes(e) ? e : n;
+function Ale(e) {
let t = e && typeof e == "object" ? e : {}, n = {
- ...Yj,
+ ...Xj,
...t
};
- n.followInitialDays = Jj.includes(+n.followInitialDays) ? +n.followInitialDays : 30, delete n.rotateMinutes;
+ n.followInitialDays = Yj.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 = Oj[n.defaultSort];
- return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = Cj(+n.batchSize, 1, 200, 60), n.defaultSort = Xj(n.defaultSort, Ej, "seed"), n.hoverDelaySeconds = Cj(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = Cj(+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 = Cj(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = Cj(+n.relatedLimit, 0, 60, 20), n.feedLimit = Cj(+n.feedLimit, 1, 100, 12), Object.assign(n, eo(n)), n.theme = Xj(n.theme, kle, "system"), n.performerNameLanguage = Xj(n.performerNameLanguage, ["zh-CN", "ja"], "zh-CN"), n.homeGlow = Kj(n.homeGlow), n.accent = Hj(n.accent), n.sidebarOrder = Gl(n.sidebarOrder), {
+ 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, eo(n)), n.theme = Zj(n.theme, Ole, "system"), n.performerNameLanguage = Zj(n.performerNameLanguage, ["zh-CN", "ja"], "zh-CN"), n.homeGlow = qj(n.homeGlow), n.accent = Uj(n.accent), n.sidebarOrder = Gl(n.sidebarOrder), {
settings: n,
migrated: r
};
}
-function Mle(e) {
+function jle(e) {
let t = {};
try {
t = JSON.parse(e.getItem("peach.settings.v1") || "{}");
} catch {}
- return jle(t);
+ return Ale(t);
}
-var Zj = null;
-function Qj() {
- if (Zj) return Zj;
- let { settings: e, migrated: t } = Mle(localStorage);
- return Zj = _le(Ole, e), t && Zj.save(), Zj;
+var Qj = null;
+function $j() {
+ if (Qj) return Qj;
+ let { settings: e, migrated: t } = jle(localStorage);
+ return Qj = gle(Dle, e), t && Qj.save(), Qj;
}
-function $j(e, t, n = Qj()) {
+function eM(e, t, n = $j()) {
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;
- Jj.includes(a) && (r.followInitialDays = a, n.save());
- for (let t of Ale) typeof e?.[t] == "boolean" && e[t] !== r[t] && (r[t] = e[t], n.save());
+ Yj.includes(a) && (r.followInitialDays = a, n.save());
+ for (let t of kle) 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 = Cj(o, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== Yj.searchHistoryLimit && Nle(n);
+ 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 && Mle(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 Nle(e = Qj()) {
+function Mle(e = $j()) {
return Tn("/api/settings", {
method: "POST",
body: JSON.stringify({ searchHistoryLimit: e.value.searchHistoryLimit })
}).catch(() => {});
}
// src/appearance/theme.ts
-var Ple = [
+var Nle = [
[
"system",
"跟随系统",
@@ -31947,31 +31947,31 @@ var Ple = [
"深色",
"moon"
]
-], Fle = null, eM = () => Fle ??= matchMedia("(prefers-color-scheme: dark)"), tM = null;
-function Ile() {
- return tM || (tM = document.createElement("style"), tM.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), tM.isConnected || document.head.append(tM), () => {
+], Ple = null, tM = () => Ple ??= matchMedia("(prefers-color-scheme: dark)"), nM = null;
+function Fle() {
+ return nM || (nM = document.createElement("style"), nM.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), nM.isConnected || document.head.append(nM), () => {
getComputedStyle(document.documentElement).opacity;
let e = () => {
- cancelAnimationFrame(t), clearTimeout(n), tM?.remove();
+ cancelAnimationFrame(t), clearTimeout(n), nM?.remove();
}, t = requestAnimationFrame(e), n = setTimeout(e, 100);
};
}
-function nM(e = Qj().value.theme) {
- let t = Ile(), n = document.documentElement;
+function rM(e = $j().value.theme) {
+ let t = Fle(), n = document.documentElement;
e === "system" ? delete n.dataset.theme : n.dataset.theme = e;
- let r = e === "dark" || e === "system" && eM().matches;
+ let r = e === "dark" || e === "system" && tM().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 rM = !1;
-function Lle() {
- rM || (rM = !0, eM().addEventListener("change", () => {
- Qj().value.theme === "system" && nM();
+var iM = !1;
+function Ile() {
+ iM || (iM = !0, tM().addEventListener("change", () => {
+ $j().value.theme === "system" && rM();
}));
}
// src/appearance/layout.ts
-var iM = [[
+var aM = [[
"big",
"大图",
"maximize"
@@ -31979,7 +31979,7 @@ var iM = [[
"small",
"小图",
"layout-grid"
-]], aM = [[
+]], oM = [[
"big",
"大图",
"maximize"
@@ -31987,7 +31987,7 @@ var iM = [[
"small",
"小图",
"layout-grid"
-]], oM = [[
+]], sM = [[
"fixed",
"固定比例",
"layout-grid"
@@ -31995,127 +31995,127 @@ var iM = [[
"masonry",
"瀑布流",
"columns-2"
-]], sM = .75, cM = () => Qj().value, lM = (e = cM()) => $a(e.javLayout), Rle = (e = cM()) => $a(e.homeLayout), uM = (e, t = cM()) => e ? Rle(t) : lM(t), dM = aM.map(([e]) => e), fM = oM.map(([e]) => e), pM = (e = cM()) => Xj(e.photoSize, dM, "small"), mM = (e = cM()) => Xj(e.photoLayout, fM, "masonry"), hM = null;
-function gM(e, t = cM()) {
+]], cM = .75, lM = () => $j().value, uM = (e = lM()) => $a(e.javLayout), Lle = (e = lM()) => $a(e.homeLayout), dM = (e, t = lM()) => e ? Lle(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()) {
let n = {
active: e.active,
- size: uM(e.home, t),
+ size: dM(e.home, t),
portrait: e.portrait,
javImage: t.javImage
- }, r = hM;
- return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (hM = n), hM;
+ }, r = gM;
+ return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (gM = n), gM;
}
-function _M(e) {
- return e.portrait ? 9 / 16 : e.active && e.size === "big" ? sM : 16 / 9;
+function vM(e) {
+ return e.portrait ? 9 / 16 : e.active && e.size === "big" ? cM : 16 / 9;
}
-function zle(e, t = Qj()) {
+function Rle(e, t = $j()) {
t.value.homeLayout = $a(e), t.save();
}
-function vM(e, t = Qj()) {
+function yM(e, t = $j()) {
t.value.javLayout = $a(e), t.save();
}
-function Ble(e, t = Qj()) {
+function zle(e, t = $j()) {
t.value.homeLayout = t.value.javLayout = $a(e), t.save();
}
-function Vle(e, t = Qj()) {
- t.value.photoSize = Xj(e, dM, "small"), t.save();
+function Ble(e, t = $j()) {
+ t.value.photoSize = Zj(e, fM, "small"), t.save();
}
-function yM(e, t = Qj()) {
- t.value.photoLayout = Xj(e, fM, "masonry"), t.save();
+function bM(e, t = $j()) {
+ t.value.photoLayout = Zj(e, pM, "masonry"), t.save();
}
// src/appearance/density.ts
-var bM = "density", xM = {
+var xM = "density", SM = {
big: "336px",
dense: "168px"
-}, SM = () => localStorage.getItem(bM) === "dense" ? "dense" : "big";
-function CM(e, t) {
- let [n, r] = aM;
+}, CM = () => localStorage.getItem(xM) === "dense" ? "dense" : "big";
+function wM(e, t) {
+ let [n, r] = oM;
if (e.querySelector("[data-icon-swap]")) Js(e, t === r[0] ? "b" : "a");
else {
let i = e.querySelector(":scope > [data-glass-drift]");
e.innerHTML = qs(n[2], r[2], t === r[0] ? "b" : "a"), i && e.append(i);
}
- wM(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");
+ TM(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");
}
-function wM(e, t, n) {
+function TM(e, t, n) {
e.getAttribute(t) !== n && e.setAttribute(t, n);
}
-var TM = () => document.querySelector("#density");
-function EM(e = SM()) {
+var EM = () => document.querySelector("#density");
+function DM(e = CM()) {
let t = document.documentElement;
- t.style.getPropertyValue("--tile") !== xM[e] && t.style.setProperty("--tile", xM[e]), wM(document.body, "data-density", e);
- let n = TM();
- n && (wM(n, "aria-pressed", String(e === "dense")), wM(n, "title", "当前:" + (e === "big" ? "大图" : "密集")), CM(n, e === "big" ? "big" : "small"));
+ 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"));
}
-function Hle() {
- let e = SM() === "big" ? "dense" : "big";
- localStorage.setItem(bM, e), EM(e);
+function Vle() {
+ let e = CM() === "big" ? "dense" : "big";
+ localStorage.setItem(xM, e), DM(e);
}
-function Ule(e) {
- let t = TM();
- t && (wM(t, "aria-pressed", String(e === "small")), wM(t, "title", "当前:" + (e === "big" ? "大图" : "小图")), CM(t, e));
+function Hle(e) {
+ let t = EM();
+ t && (TM(t, "aria-pressed", String(e === "small")), TM(t, "title", "当前:" + (e === "big" ? "大图" : "小图")), wM(t, e));
}
// src/appearance/glow.ts
-function DM(e = Qj()) {
- Ele(document.querySelector(".glowlayer"), e.value.homeGlow);
+function OM(e = $j()) {
+ Tle(document.querySelector(".glowlayer"), e.value.homeGlow);
}
-var OM = 0;
-function kM(e = Qj()) {
- OM ||= requestAnimationFrame(() => {
- OM = 0, DM(e);
+var kM = 0;
+function AM(e = $j()) {
+ kM ||= requestAnimationFrame(() => {
+ kM = 0, OM(e);
});
}
-function AM(e = Qj()) {
- Dle(document.documentElement, e.value.homeGlow);
+function jM(e = $j()) {
+ Ele(document.documentElement, e.value.homeGlow);
}
-function jM(e = Qj()) {
+function MM(e = $j()) {
document.documentElement.dataset.accent = e.value.accent;
}
-var MM = (e, t, n) => ({
+var NM = (e, t, n) => ({
key: e,
label: t,
- native: Lj(e),
- fill: Lj(e) ? "" : Tle(n)
+ native: Rj(e),
+ fill: Rj(e) ? "" : wle(n)
});
-function Wle(e) {
- let t = Ij.map(([e, t, n]) => MM(e, t, Pj.map((e) => n[e].color)));
- return e.preset === "custom" && t.push(MM("custom", "自定义", Pj.map((t) => e[t].color))), t;
+function Ule(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;
}
-var Gle = Bj;
-function Kle(e, t = Qj()) {
+var Wle = Vj;
+function Gle(e, t = $j()) {
if (e === "custom") return;
let n = t.value.homeGlow;
- n.preset = e, Object.assign(n, zj(e)), t.value.accent = ble(e), t.save(), kM(t), AM(t), jM(t);
+ n.preset = e, Object.assign(n, Bj(e)), t.value.accent = yle(e), t.save(), AM(t), jM(t), MM(t);
}
-function qle(e, t = Qj()) {
- t.value.accent = Hj(e), t.save(), jM(t);
+function Kle(e, t = $j()) {
+ t.value.accent = Uj(e), t.save(), MM(t);
}
-function Jle(e = Qj()) {
+function qle(e = $j()) {
let t = e.value.homeGlow;
- t.preset = Gj.preset, Object.assign(t, zj(t.preset)), e.value.accent = Vj, e.save(), kM(e), AM(e), jM(e);
+ t.preset = Kj.preset, Object.assign(t, Bj(t.preset)), e.value.accent = Hj, e.save(), AM(e), jM(e), MM(e);
}
-function NM(e, t) {
- e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && Lj(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
+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 Yle(e, t = Qj()) {
- return NM(e, t.value.homeGlow), t.subscribe(() => NM(e, t.value.homeGlow));
+function Jle(e, t = $j()) {
+ return PM(e, t.value.homeGlow), t.subscribe(() => PM(e, t.value.homeGlow));
}
// src/react/components/glow-preset-grid.tsx
-function PM({ store: e, label: t, hidden: n }) {
+function FM({ 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: Wle(r).map((t) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: Ule(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: () => Kle(t.key, e),
+ onClick: () => Gle(t.key, e),
children: /* @__PURE__ */ (0, I.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@ -32126,14 +32126,14 @@ function PM({ store: e, label: t, hidden: n }) {
});
}
// src/react/glow-picker/glow-picker-island.tsx
-var FM = null;
-function Xle(e) {
- FM = e;
+var IM = null;
+function Yle(e) {
+ IM = e;
}
-function Zle() {
- return FM ? /* @__PURE__ */ (0, I.jsx)(Qle, { host: FM }) : null;
+function Xle() {
+ return IM ? /* @__PURE__ */ (0, I.jsx)(Zle, { host: IM }) : null;
}
-function Qle({ host: e }) {
+function Zle({ host: e }) {
let { store: t } = e;
(0, F.useSyncExternalStore)(t.subscribe, t.version);
let { homeGlow: n, accent: r } = t.value;
@@ -32145,11 +32145,11 @@ function Qle({ host: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", { children: "光晕" }), /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-preset-reset": "",
- onClick: () => Jle(t),
+ onClick: () => qle(t),
children: "重置"
})]
}),
- /* @__PURE__ */ (0, I.jsx)(PM, {
+ /* @__PURE__ */ (0, I.jsx)(FM, {
store: t,
label: "光晕",
hidden: !n.on
@@ -32163,14 +32163,14 @@ function Qle({ host: e }) {
"data-accent-grid": "",
role: "group",
"aria-label": "强调色",
- children: Gle.map(([e, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: Wle.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: () => qle(e, t),
+ onClick: () => Kle(e, t),
children: /* @__PURE__ */ (0, I.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@ -32188,31 +32188,31 @@ function Qle({ host: e }) {
] });
}
// src/player/host.ts
-var IM = null;
-function $le(e) {
- IM = e;
+var LM = null;
+function Qle(e) {
+ LM = e;
}
-function LM() {
- if (!IM) throw Error("播放器还没有接上宿主(configurePlayer)");
- return IM;
+function RM() {
+ if (!LM) throw Error("播放器还没有接上宿主(configurePlayer)");
+ return LM;
}
// src/player/menu.ts
-var RM = null;
-function eue(e) {
- RM = e;
+var zM = null;
+function $le(e) {
+ zM = e;
}
-function tue() {
+function eue() {
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 zM = null, BM = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
-function VM() {
+var BM = null, VM = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
+function HM() {
let e = document.getElementById("playerMenu");
e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && us(e, () => {
e.innerHTML = "";
- }), zM &&= (zM(), null);
+ }), BM &&= (BM(), null);
}
-async function nue(e) {
+async function tue(e) {
try {
return await navigator.clipboard.writeText(e), !0;
} catch {
@@ -32225,8 +32225,8 @@ async function nue(e) {
return t.remove(), n;
}
}
-function rue(e) {
- let t = !!RM?.inMiniplayer(e), n = e.peachItem, r = RM?.kind(e) ?? "item", i = (t) => {
+function nue(e) {
+ let t = !!zM?.inMiniplayer(e), n = e.peachItem, r = zM?.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);
@@ -32242,7 +32242,7 @@ function rue(e) {
}
return t && i.searchParams.set("t", String(Math.floor(e.currentTime() || 0))), i.href;
}, a = (e, t) => {
- nue(i(e)).then((e) => LM().toast(e ? t : "复制失败,请手动复制地址栏", {
+ tue(i(e)).then((e) => RM().toast(e ? t : "复制失败,请手动复制地址栏", {
timeout: 4e3,
warn: !e
}));
@@ -32254,11 +32254,11 @@ function rue(e) {
}, t ? {
icon: "maximize-2",
label: "展开",
- run: () => RM?.expand()
+ run: () => zM?.expand()
} : {
icon: "picture-in-picture-2",
label: "迷你播放器",
- run: () => RM?.toMiniplayer()
+ run: () => zM?.toMiniplayer()
}];
document.pictureInPictureEnabled && o.push({
icon: "player-pip",
@@ -32281,29 +32281,29 @@ function rue(e) {
run: () => s.click()
}), o;
}
-function iue(e, t, n) {
- let r = tue();
- VM();
- let i = LM().stage();
+function rue(e, t, n) {
+ let r = eue();
+ HM();
+ let i = RM().stage();
i instanceof HTMLDialogElement && i.open && i.append(r), r.setAttribute("popover", "manual");
- let a = rue(e);
+ let a = nue(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}">${BM(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${z(e.label)}</span>${n ? BM(R("check"), "data-player-menu-check") : ""}</button>`;
+ 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>`;
}).join(""), ls(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)];
- VM(), n?.run();
+ HM(), n?.run();
};
});
let s = (e) => {
- r.contains(e.target) || VM();
+ r.contains(e.target) || HM();
}, c = (e) => {
if (e.key === "Escape") {
- e.preventDefault(), e.stopPropagation(), VM();
+ e.preventDefault(), e.stopPropagation(), HM();
return;
}
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
@@ -32311,49 +32311,49 @@ function iue(e, t, n) {
let t = o.indexOf(document.activeElement);
o[(t + (e.key === "ArrowDown" ? 1 : -1) + o.length) % o.length]?.focus();
}, l = (t) => {
- fs(t, e.el()) && VM();
+ fs(t, e.el()) && HM();
};
setTimeout(() => {
document.addEventListener("pointerdown", s, !0), document.addEventListener("keydown", c, !0), window.addEventListener("scroll", l, {
capture: !0,
passive: !0
});
- }, 0), zM = () => {
+ }, 0), BM = () => {
document.removeEventListener("pointerdown", s, !0), document.removeEventListener("keydown", c, !0), window.removeEventListener("scroll", l, !0);
}, o[0]?.focus();
}
-function aue(e) {
+function iue(e) {
e.el().addEventListener("contextmenu", (t) => {
- t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), iue(e, t.clientX, t.clientY));
- }), e.on("dispose", VM);
+ t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), rue(e, t.clientX, t.clientY));
+ }), e.on("dispose", HM);
}
// src/player/registry.ts
-var HM = null, UM = () => HM;
-function WM(e) {
- HM = e;
-}
+var UM = null, WM = () => UM;
function GM(e) {
+ UM = e;
+}
+function KM(e) {
e && !e.isDisposed() && requestAnimationFrame(() => {
e.isDisposed() || e.trigger("resize");
});
}
// src/player/stats.ts
-function KM(e) {
+function qM(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 oue(e) {
+function aue(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 qM = 3e3;
-function JM(e, t) {
+var JM = 3e3;
+function YM(e, t) {
let n = Number(e) || 0, r = qn(t) || 0;
return n > 0 && r > 0 ? n * 8 / r : 0;
}
-function sue(e) {
+function oue(e) {
let t = [], n = null, r = 0, i = 0;
return {
bitrate: Number(e) || 0,
@@ -32368,10 +32368,10 @@ function sue(e) {
},
sample(e) {
if (!e) return i;
- let a = performance.now(), o = oue(e), s = e.currentTime || 0;
+ let a = performance.now(), o = aue(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 > qM * 2 && (t.length = 0);
+ !i && c > 0 && (r += c), e * 1e3 > JM * 2 && (t.length = 0);
}
for (n = {
at: a,
@@ -32380,55 +32380,55 @@ function sue(e) {
}, t.push({
at: a,
advanced: r
- }); t.length > 2 && a - t[0].at > qM;) t.shift();
+ }); t.length > 2 && a - t[0].at > JM;) 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 YM = 24;
-function XM(e, t) {
- e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > YM && e.splice(0, e.length - YM);
+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 ZM = "peach-player-panel";
-function QM(e, t, n, r) {
- let i = [...Array(Math.max(0, YM - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
+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) => {
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 cue() {
+function sue() {
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 $M(e, t = "") {
+function eN(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 eN(e, t = "") {
- let n = $M(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 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;
return r > 0 && i > 0 ? r * 8 / i : 0;
}
-function tN(e, t, n = "", r = null) {
+function nN(e, t, n = "", r = null) {
let i = 0;
try {
i = Number(e?.bandwidth?.()) || 0;
} catch {}
- return i > 0 ? i : r ? Number(r.bits) || 0 : eN(t, n);
+ return i > 0 ? i : r ? Number(r.bits) || 0 : tN(t, n);
}
-function nN(e) {
+function rN(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 lue(e, t) {
- return e > 0 ? nN(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : nN(0);
+function cue(e, t) {
+ return e > 0 ? rN(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : rN(0);
}
// src/player/subtitle-style.ts
-var rN = {
+var iN = {
font: {
label: "字体",
values: [
@@ -32531,7 +32531,7 @@ var rN = {
["shadow", "阴影"]
]
}
-}, iN = {
+}, aN = {
font: "sans",
size: "100",
color: "white",
@@ -32541,7 +32541,7 @@ var rN = {
window: "black",
windowOpacity: "0",
edge: "shadow"
-}, aN = "peach.caption-style.v1", uue = {
+}, oN = "peach.caption-style.v1", lue = {
white: "255,255,255",
yellow: "255,255,0",
green: "0,255,0",
@@ -32550,7 +32550,7 @@ var rN = {
magenta: "255,0,255",
red: "255,0,0",
black: "0,0,0"
-}, due = {
+}, uue = {
sans: "Arial,sans-serif",
mono: "Consolas,monospace",
serif: "Georgia,serif",
@@ -32558,28 +32558,28 @@ var rN = {
casual: "\"Comic Sans MS\",sans-serif",
cursive: "cursive",
"small-caps": "Arial,sans-serif"
-}, fue = {
+}, due = {
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 pue() {
+function fue() {
let e = {};
try {
- e = JSON.parse(localStorage.getItem(aN) || "{}") || {};
+ e = JSON.parse(localStorage.getItem(oN) || "{}") || {};
} catch {}
- return Object.fromEntries(Object.entries(iN).map(([t, n]) => [t, rN[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
+ return Object.fromEntries(Object.entries(aN).map(([t, n]) => [t, iN[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
}
-function oN(e, t, n, r) {
- let i = pue(), a = /* @__PURE__ */ new Set(), o = document.createElement("div");
+function sN(e, t, n, r) {
+ let i = fue(), 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(${uue[e]},${Number(t) / 100})`;
- e.style.setProperty("--peach-caption-font", due[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", fue[i.edge]), e.style.setProperty("--peach-caption-variant", i.font === "small-caps" ? "small-caps" : "normal");
+ let t = (e, t) => `rgba(${lue[e]},${Number(t) / 100})`;
+ e.style.setProperty("--peach-caption-font", uue[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", due[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 || [])) {
@@ -32595,15 +32595,15 @@ function oN(e, t, n, r) {
if (!n.aborted) {
if (e.caption_style) {
let t = {
- ...iN,
+ ...aN,
...e.caption_style
};
- for (let e of Object.keys(iN)) a.has(e) || (i[e] = t[e]);
+ for (let e of Object.keys(aN)) a.has(e) || (i[e] = t[e]);
c();
} else {
let e = !1;
try {
- e = !!localStorage.getItem(aN);
+ e = !!localStorage.getItem(oN);
} catch {}
e && !a.size && r.save({ caption_style: i }).catch(() => {});
}
@@ -32611,18 +32611,18 @@ function oN(e, t, n, r) {
}), {
current: () => i,
set(e, t) {
- rN[e].values.some(([e]) => e === t) && (a.add(e), i = {
+ iN[e].values.some(([e]) => e === t) && (a.add(e), i = {
...i,
[e]: t
}, c(), r?.save({ caption_style: { [e]: t } }).catch(() => {}));
},
reset() {
- Object.keys(iN).forEach((e) => a.add(e)), i = { ...iN }, c(), r?.save({ caption_style: i }).catch(() => {});
+ Object.keys(aN).forEach((e) => a.add(e)), i = { ...aN }, c(), r?.save({ caption_style: i }).catch(() => {});
}
};
}
// src/player/memory.ts
-var sN = /* @__PURE__ */ new Map(), cN = /* @__PURE__ */ new WeakMap(), mue = class {
+var cN = /* @__PURE__ */ new Map(), lN = /* @__PURE__ */ new WeakMap(), pue = class {
cleanup = new AbortController();
reading;
listeners = /* @__PURE__ */ new Set();
@@ -32650,7 +32650,7 @@ var sN = /* @__PURE__ */ new Map(), cN = /* @__PURE__ */ new WeakMap(), mue = cl
}
load() {
return this.url ? this.reading ||= (async () => {
- await sN.get(this.url)?.catch(() => {});
+ await cN.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) => {
@@ -32662,7 +32662,7 @@ var sN = /* @__PURE__ */ new Map(), cN = /* @__PURE__ */ new WeakMap(), mue = cl
}
save(e) {
if (!this.url) return Promise.resolve();
- let t = (sN.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
+ let t = (cN.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
let t = {
...this.unsaved,
...e,
@@ -32689,8 +32689,8 @@ var sN = /* @__PURE__ */ new Map(), cN = /* @__PURE__ */ new WeakMap(), mue = cl
this.changed();
}
});
- return sN.set(this.url, t), t.finally(() => {
- sN.get(this.url) === t && sN.delete(this.url);
+ return cN.set(this.url, t), t.finally(() => {
+ cN.get(this.url) === t && cN.delete(this.url);
}).catch(() => {}), t;
}
async retry() {
@@ -32699,12 +32699,12 @@ var sN = /* @__PURE__ */ new Map(), cN = /* @__PURE__ */ new WeakMap(), mue = cl
} catch {}
}
};
-function lN(e) {
- let t = cN.get(e);
- return t || (t = new mue(e), cN.set(e, t)), t;
+function uN(e) {
+ let t = lN.get(e);
+ return t || (t = new pue(e), lN.set(e, t)), t;
}
-function uN(e, t) {
- let n = lN(e), r = Number(e.playbackRate()) || 1, i = !1, a = () => {
+function dN(e, t) {
+ let n = uN(e), r = Number(e.playbackRate()) || 1, i = !1, a = () => {
t.defaultPlaybackRate = r, Number(e.playbackRate()) !== r && e.playbackRate(r);
};
return n.restore((t) => {
@@ -32717,7 +32717,7 @@ function uN(e, t) {
};
}
// src/player/subtitle-memory.ts
-var dN = class {
+var fN = class {
player;
video;
changed;
@@ -32728,7 +32728,7 @@ var dN = class {
ready;
error = "";
constructor(e, t, n = () => {}) {
- this.player = e, this.video = t, this.changed = n, this.memory = lN(e);
+ this.player = e, this.video = t, this.changed = n, this.memory = uN(e);
let r = this.cleanup.signal;
t.textTracks.addEventListener("addtrack", () => {
this.apply(), this.changed();
@@ -32825,7 +32825,7 @@ var dN = class {
throw a.remove(), URL.revokeObjectURL(i), e;
}
}
-}, fN = () => "<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>", hue = class {
+}, 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>", mue = class {
player;
video;
panels;
@@ -32844,7 +32844,7 @@ var dN = class {
more = !1;
searched = !1;
constructor(e, t, n) {
- this.player = e, this.video = t, this.panels = n, this.styles = oN(e.el(), t, this.cleanup.signal, lN(e)), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = fN(), this.cc.onclick = () => {
+ 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 = () => {
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", () => {
@@ -32854,7 +32854,7 @@ var dN = class {
this.sync(), this.page === "tracks" && this.show(0);
}, { signal: this.cleanup.signal }), e.on("dispose", () => {
this.hide(), this.cleanup.abort();
- }), this.session = new dN(e, t, () => {
+ }), this.session = new fN(e, t, () => {
this.sync(), this.page === "tracks" && this.show(0);
}), this.sync();
}
@@ -32902,7 +32902,7 @@ var dN = 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(rN).map(([e, n]) => {
+ let t = this.styles.current(), n = this.panel(this.header("字幕选项") + `<div class="vjs-peach-panel-menu">${Object.entries(iN).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);
@@ -32914,7 +32914,7 @@ var dN = class {
}
styleOptions(e) {
this.page = "style";
- let t = rN[e];
+ let t = iN[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>`;
@@ -33030,7 +33030,7 @@ var dN = class {
}
};
// src/player/timeline.ts
-function gue(e, t) {
+function hue(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;
@@ -33041,8 +33041,8 @@ function gue(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 _ue(e, t) {
- let n = gue(e, t);
+function gue(e, t) {
+ let n = hue(e, t);
if (n === null) return null;
let r = t.columns || 10, i = r * (t.rows || 10), a = Math.floor(n / i);
return {
@@ -33052,15 +33052,15 @@ function _ue(e, t) {
rows: Math.ceil(Math.min(i, t.frames - a * i) / r)
};
}
-function vue(e, t, n, r = 0) {
+function _ue(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 yue(e) {
+function vue(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 pN(e, t, n = {}) {
+function mN(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) => {
@@ -33068,7 +33068,7 @@ function pN(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 < yue(e); t++) {
+ if (m && u) for (let e of [u, u.fallback]) for (let t = 0; t < vue(e); t++) {
let n = v(e, t);
if (_.some((e) => e.dataset.source === n)) continue;
let r = new Image();
@@ -33079,7 +33079,7 @@ function pN(e, t, n = {}) {
!h && e && e.frames > 0 && (e.interval > 0 || e.cues?.length) && (u = e, y());
}).catch(() => {});
let b = (e, n) => {
- let r = _ue(e, n);
+ let r = gue(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);
@@ -33106,7 +33106,7 @@ function pN(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 = `${vue(o * l, l, i.offsetWidth, n.inset)}px`;
+ i.style.left = `${_ue(o * l, l, i.offsetWidth, n.inset)}px`;
},
hide() {
i.hidden = !0;
@@ -33117,8 +33117,8 @@ function pN(e, t, n = {}) {
};
}
// src/player/rotation.ts
-function mN(e, t) {
- let n = 0, r = !1, i = lN(e), a = e.el(), o = a.querySelector("media-container") || a, s = [
+function hN(e, t) {
+ let n = 0, r = !1, i = uN(e), a = e.el(), o = a.querySelector("media-container") || a, s = [
"width",
"height",
"inset",
@@ -33146,7 +33146,7 @@ function mN(e, t) {
};
}
// src/player/pip.ts
-function bue(e, t, n, r) {
+function yue(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";
@@ -33178,7 +33178,7 @@ function bue(e, t, n, r) {
});
}
// src/player/controls.ts
-function hN(e, t, n = "") {
+function gN(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));
@@ -33189,27 +33189,27 @@ function hN(e, t, n = "") {
};
return o(), o;
}
-function gN(e, t) {
+function _N(e, t) {
e?.closest(".video-js")?.querySelector(`.vjs-control-bar ${t}`)?.click();
}
-function xue(e, t = !0) {
- let n = LM(), r = n.settings();
+function bue(e, t = !0) {
+ let n = RM(), 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 _N = /* @__PURE__ */ new WeakMap();
-function vN(e) {
+var vN = /* @__PURE__ */ new WeakMap();
+function yN(e) {
if (!e) return;
- let t = LM().settings().theaterMode;
- e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), _N.get(e)?.(t ? "默认视图" : "影院模式");
+ 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 ? "默认视图" : "影院模式");
}
-function yN(e, t = !0) {
- let n = LM(), r = n.settings();
+function bN(e, t = !0) {
+ let n = RM(), r = n.settings();
r.theaterMode = !!e, t && n.saveSettings();
let i = n.stage();
- i?.toggleAttribute("data-theater", r.theaterMode), vN(i?.querySelector("[data-player-theater]")), GM(UM());
+ i?.toggleAttribute("data-theater", r.theaterMode), yN(i?.querySelector("[data-player-theater]")), KM(WM());
}
-function Sue(e) {
- let t = LM().stage(), n = t?.querySelector("[data-ambient-canvas]");
+function xue(e) {
+ let t = RM().stage(), n = t?.querySelector("[data-ambient-canvas]");
if (!t || !n) return () => {};
let r = n.getContext("2d", { alpha: !1 });
if (!r) return () => {};
@@ -33232,9 +33232,9 @@ function Sue(e) {
}, u = (t) => {
e.requestVideoFrameCallback ? e.requestVideoFrameCallback((e) => d(t, e)) : requestAnimationFrame((e) => d(t, e));
}, d = (t, n) => {
- i || t !== o || (LM().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
+ i || t !== o || (RM().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
}, f = () => {
- !i && LM().settings().ambientMode && (l(), e.paused || u(++o));
+ !i && RM().settings().ambientMode && (l(), e.paused || u(++o));
}, p = (e) => {
let n = !!e.detail.enabled;
t.toggleAttribute("data-ambient", n), n ? f() : (o++, c());
@@ -33243,7 +33243,7 @@ function Sue(e) {
i = !0, o++, document.removeEventListener("peachambientchange", p), e.removeEventListener("play", f), e.removeEventListener("loadeddata", f), c();
};
}
-function bN(e, t, n = 0, r = null) {
+function xN(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");
@@ -33253,8 +33253,8 @@ function bN(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]");
- hN(s, "设置");
- let l = a.querySelector(".vjs-peach-settings-menu"), u = mN(e, t), d = uN(e, t), f = lN(e), p, m = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, h = r, g = "auto", _ = (e, t) => {
+ 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) => {
let n = [Number(e), Number(t)].filter((e) => e > 0);
return n.length ? Math.min(...n) : 0;
}, v = () => {
@@ -33293,11 +33293,11 @@ function bN(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(ZM, { detail: "settings" }));
+ l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e || p?.hide(), e && document.dispatchEvent(new CustomEvent(QM, { detail: "settings" }));
}, S = () => x(!1), C = (e) => {
e.detail !== "settings" && S();
};
- document.addEventListener(ZM, C);
+ document.addEventListener(QM, 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;
@@ -33313,15 +33313,15 @@ function bN(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="${LM().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="${RM().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">${fN()}</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">${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-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 = () => {
- xue(!LM().settings().ambientMode), k();
+ bue(!RM().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();
@@ -33425,8 +33425,8 @@ function bN(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(ZM, C), w && clearTimeout(w);
- }), p = new hue(e, t, {
+ 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 mue(e, t, {
render: E,
open: () => {
O = "subtitles", x(!0);
@@ -33435,21 +33435,21 @@ function bN(e, t, n = 0, r = null) {
back: () => {
p?.hide(), k(-1);
}
- }), y(), Cue(e, a), wue(e), (e) => {
+ }), y(), Sue(e, a), Cue(e), (e) => {
h = e?.length ? e : null, re();
};
}
-function Cue(e, t) {
+function Sue(e, t) {
let n = e.el().querySelector(".vjs-control-bar");
if (!n || n.querySelector("[data-player-theater]")) return;
- let r = LM().settings().theaterMode, i = document.createElement("div");
+ let r = RM().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");
- _N.set(a, hN(a, "影院模式", "T")), vN(a), a.onclick = (e) => {
- e.stopPropagation(), yN(!LM().settings().theaterMode);
+ vN.set(a, gN(a, "影院模式", "T")), yN(a), a.onclick = (e) => {
+ e.stopPropagation(), bN(!RM().settings().theaterMode);
};
}
-function wue(e) {
+function Cue(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");
@@ -33461,7 +33461,7 @@ function wue(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 = hN(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 = gN(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 ? "播放" : "暂停");
};
@@ -33472,7 +33472,7 @@ function wue(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 = hN(p, "静音", "M"), g = () => {
+ let h = gN(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 ? "取消静音" : "静音");
};
@@ -33498,7 +33498,7 @@ function wue(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 = hN(x, "显示剩余时间"), T = () => {
+ let C = x.querySelector(".vjs-peach-time-text"), w = gN(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)};点击显示剩余时间`);
};
@@ -33510,10 +33510,10 @@ function wue(e) {
"loadedmetadata"
], T), T(), f ? f.insertAdjacentElement("afterend", x) : t.append(x);
let E = t.querySelector(":scope>.vjs-picture-in-picture-control");
- hN(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip"), bue(e, E, hN(E, "画中画"), (e) => LM().toast(e, { warn: !0 }));
- let D = t.querySelector(":scope>.vjs-fullscreen-control"), O = r(D, "player-fullscreen-enter"), k = hN(D, "全屏", "F"), A = () => {
+ gN(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip"), yue(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 = () => {
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 ? "退出全屏" : "全屏"), GM(e);
+ e.el().toggleAttribute("data-peach-fullscreen", t), O?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), k(t ? "退出全屏" : "全屏"), KM(e);
};
e.on([
"fullscreenchange",
@@ -33534,7 +33534,7 @@ function wue(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 = hN(N, "展开控件"), P = (t) => {
+ let N = ee.querySelector("button"), te = gN(N, "展开控件"), P = (t) => {
e.el().classList.toggle("vjs-peach-right-expanded", t), N.setAttribute("aria-expanded", String(t)), te(t ? "收起控件" : "展开控件");
};
N.onclick = (t) => {
@@ -33546,10 +33546,10 @@ function wue(e) {
}, re = new ResizeObserver(ne);
re.observe(e.el()), e.on("dispose", () => re.disconnect()), P(!1), ne();
}
-function xN(e, t, n = {}) {
+function SN(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 = pN(r, t, n), a = (n) => {
+ let i = mN(r, t, n), a = (n) => {
let a = qn(e.duration()) || qn(t?.duration);
if (!a) return;
let o = r.getBoundingClientRect();
@@ -33569,13 +33569,13 @@ function xN(e, t, n = {}) {
i.dispose();
});
}
-function Tue(e, t) {
+function wue(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(LM().settings().seekSeconds) || 10), o = [
+ }, a = () => Math.max(1, Number(RM().settings().seekSeconds) || 10), o = [
["play", () => {
e.play();
}],
@@ -33616,11 +33616,11 @@ function Tue(e, t) {
} catch {}
});
}
-function SN(e) {
+function CN(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 CN(e, t) {
+function wN(e, t) {
Tn(`/api/assets/${t}/subtitles`).then((t) => {
e && !e.isDisposed() && (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {
e.addRemoteTextTrack({
@@ -33636,35 +33636,35 @@ function CN(e, t) {
}).catch(() => {});
}
// src/player/progress.ts
-var wN = "peach.playback-position.v1", TN = /* @__PURE__ */ new WeakMap();
-function EN(e) {
- TN.get(e)?.(), TN.delete(e);
+var TN = "peach.playback-position.v1", EN = /* @__PURE__ */ new WeakMap();
+function DN(e) {
+ EN.get(e)?.(), EN.delete(e);
}
-function DN(e, t, n = null) {
+function ON(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 Eue(e) {
+function Tue(e) {
try {
- let t = localStorage.getItem(`${wN}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
+ let t = localStorage.getItem(`${TN}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
return Number.isFinite(n) && n >= 0 ? n : null;
} catch {
return null;
}
}
-function Due(e, t) {
- let n = Eue(e);
+function Eue(e, t) {
+ let n = Tue(e);
if (n !== null) return n;
let r = Number(t.leave_ratio);
return r > 0 && r < 1 ? r * qn(t.duration) : 0;
}
-function Oue(e, t) {
- EN(t);
+function Due(e, t) {
+ DN(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(`${wN}:${e}`, String(r));
+ localStorage.setItem(`${TN}:${e}`, String(r));
} catch {}
}, i = () => {
n = !0;
@@ -33678,7 +33678,7 @@ function Oue(e, t) {
"pause",
"ended"
]) t.addEventListener(e, r);
- window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), TN.set(t, () => {
+ window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), EN.set(t, () => {
r(), t.removeEventListener("loadedmetadata", i), t.removeEventListener("emptied", a);
for (let e of [
"timeupdate",
@@ -33690,19 +33690,19 @@ function Oue(e, t) {
});
}
// src/player/telemetry.ts
-var ON = /* @__PURE__ */ new WeakMap();
-function kN(e) {
- ON.get(e)?.(), ON.delete(e);
+var kN = /* @__PURE__ */ new WeakMap();
+function AN(e) {
+ kN.get(e)?.(), kN.delete(e);
}
-function AN(e, t, n, r) {
+function jN(e, t, n, r) {
let i = () => t(!1), a = () => {
n(), t(!1);
};
- e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), ON.set(e, () => {
+ e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), kN.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 jN(e, t, n = {}) {
+function MN(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);
@@ -33743,11 +33743,11 @@ function jN(e, t, n = {}) {
u(), l(!1);
}, t.onended = () => {
u(), l(!0), n.onEnded?.();
- }, AN(t, l, u, () => {
+ }, jN(t, l, u, () => {
a++;
}), c();
}
-function kue(e, t) {
+function Oue(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", {
@@ -33778,22 +33778,22 @@ function kue(e, t) {
s(), o(!1);
}, t.onended = () => {
s(), o(!0);
- }, AN(t, o, s, () => {});
+ }, jN(t, o, s, () => {});
}
// src/player/dispose.ts
-function MN(e) {
+function NN(e) {
if (!e || e.isDisposed()) return;
let t = e.el()?.querySelector("video");
try {
e.pause();
} catch {}
- t && (EN(t), kN(t));
+ t && (DN(t), AN(t));
try {
e.dispose();
} catch {}
}
// src/core/random-id.ts
-function NN() {
+function PN() {
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;
@@ -33801,23 +33801,23 @@ function NN() {
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 PN() {
- return NN();
+function FN() {
+ return PN();
}
-function FN(e, t) {
+function IN(e, t) {
return {
src: `/stream?id=${e.id}&session=${encodeURIComponent(t)}`,
type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"
};
}
-function Aue(e) {
+function kue(e) {
return e.location === "online" && e.follow_item_id ? {
src: `/follow-stream?id=${e.follow_item_id}`,
type: "video/mp4"
} : null;
}
-async function IN(e, t) {
- let n = Aue(e);
+async function LN(e, t) {
+ let n = kue(e);
if (n) return n;
try {
let n = await Tn(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(t)}`);
@@ -33826,9 +33826,9 @@ async function IN(e, t) {
type: n.mime_type || (n.protocol === "hls" ? "application/vnd.apple.mpegurl" : "video/mp4")
};
} catch {}
- return FN(e, t);
+ return IN(e, t);
}
-function LN(e) {
+function RN(e) {
e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {
method: "POST",
credentials: "same-origin",
@@ -33837,22 +33837,22 @@ function LN(e) {
document.documentElement.dataset.peachStreamCancel = JSON.stringify(e);
}).catch(() => {});
}
-var RN = "";
-function zN() {
- return RN;
-}
+var zN = "";
function BN() {
- return RN ||= PN(), RN;
+ return zN;
}
-var jue = (e) => FN(e, BN()), Mue = (e) => IN(e, BN());
function VN() {
- let e = RN;
- e && (RN = "", LN(e));
+ return zN ||= FN(), zN;
+}
+var Aue = (e) => IN(e, VN()), jue = (e) => LN(e, VN());
+function HN() {
+ let e = zN;
+ e && (zN = "", RN(e));
}
// src/player/v10-player.ts
-var HN = (e) => typeof e == "string" ? [e] : e, Nue = (e, t) => {
+var UN = (e) => typeof e == "string" ? [e] : e, Mue = (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-${NN()}`, n.setAttribute("lang", "zh-CN");
+ n.className = "video-js vjs-paused vjs-user-active", n.id = e.id || `peach-player-${PN()}`, 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 = {
@@ -33947,9 +33947,9 @@ var HN = (e) => typeof e == "string" ? [e] : e, Nue = (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) => HN(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
- off: (e, t) => HN(e).forEach((e) => o.removeEventListener(e, t)),
- one: (e, t) => HN(e).forEach((e) => o.addEventListener(e, t, {
+ 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, {
once: !0,
signal: c
})),
@@ -34004,7 +34004,7 @@ var HN = (e) => typeof e == "string" ? [e] : e, Nue = (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);
}
};
-}, Pue = "/vendor/videojs/10.2.0/", Fue = [
+}, Nue = "/vendor/videojs/10.2.0/", Pue = [
"video-player.js",
"media/hlsjs-video.js",
"media/dash-video.js",
@@ -34022,17 +34022,17 @@ var HN = (e) => typeof e == "string" ? [e] : e, Nue = (e, t) => {
"ui/slider-value.js",
"i18n.js",
"locales/zh-CN.js"
-], UN = null;
-function WN() {
- return UN ??= Promise.all(Fue.map((e) => import(
+], WN = null;
+function GN() {
+ return WN ??= Promise.all(Pue.map((e) => import(
/* @vite-ignore */
- `${Pue}${e}`
-))).then(() => Nue).catch((e) => {
- throw UN = null, e;
- }), UN;
+ `${Nue}${e}`
+))).then(() => Mue).catch((e) => {
+ throw WN = null, e;
+ }), WN;
}
// src/player/immerse-player.ts
-var Iue = {
+var Fue = {
controls: !1,
preload: "auto",
posterImage: !1,
@@ -34044,45 +34044,45 @@ var Iue = {
errorDisplay: !1,
textTrackSettings: !1
};
-function Lue(e, t) {
+function Iue(e, t) {
let { item: n, session: r } = t, i = null, a = !1;
- return Promise.all([IN(n, r), WN().catch(() => null)]).then(([o, s]) => {
+ return Promise.all([LN(n, r), GN().catch(() => null)]).then(([o, s]) => {
if (a) return;
- let c = FN(n, r), l = String(o.type || "").includes("mpegurl");
+ let c = IN(n, r), l = String(o.type || "").includes("mpegurl");
if (!s) e.src = (l ? c : o).src;
else {
- let t = s(e, Iue);
- i = t, t.peachItem = n, t.peachPlaybackKey = DN("item", n);
+ let t = s(e, Fue);
+ i = t, t.peachItem = n, t.peachPlaybackKey = ON("item", n);
let r = new AbortController();
- oN(t.el(), e, r.signal, lN(t)), mN(t, e), uN(t, e), t.on("dispose", () => r.abort()), new dN(t, e), CN(t, n.id), l && t.one("error", () => {
+ 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", () => {
a || t.src(c);
}), t.src(o);
}
- jN(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
+ MN(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
}), () => {
- a || (a = !0, LN(r), i ? MN(i) : (e.pause(), kN(e), e.removeAttribute("src"), e.load()));
+ a || (a = !0, RN(r), i ? NN(i) : (e.pause(), AN(e), e.removeAttribute("src"), e.load()));
};
}
// src/player/guide-preview.ts
-var GN = !1, KN = () => GN;
-function Rue() {
- return GN = !0, () => {
- GN = !1;
+var KN = !1, qN = () => KN;
+function Lue() {
+ return KN = !0, () => {
+ KN = !1;
};
}
// src/player/detail-player.ts
-var qN = /* @__PURE__ */ new WeakMap(), JN = null, YN = null, XN = null;
-function ZN() {
- JN &&= (clearInterval(JN), null), YN &&= (clearInterval(YN), null), XN &&= (clearTimeout(XN), null);
+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);
}
-async function zue(e, t, n, r = {}) {
- let i = UM();
+async function Rue(e, t, n, r = {}) {
+ let i = WM();
if (i && !i.isDisposed()) return i;
- let a = LM(), o = r.resume ?? null;
+ let a = RM(), o = r.resume ?? null;
o?.autoplay && (n = !0), r.guidePreview && (n = !1);
- let s = () => r.source ? Promise.resolve(r.source) : Mue(e), c;
+ let s = () => r.source ? Promise.resolve(r.source) : jue(e), c;
try {
- c = await WN();
+ c = await GN();
} catch {
return t.controls = !0, r.guidePreview || s().then((e) => {
t.addEventListener("loadedmetadata", () => {
@@ -34108,7 +34108,7 @@ async function zue(e, t, n, r = {}) {
} }
}
});
- WM(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || DN("item", e), aue(l), l.on("loadedmetadata", () => {
+ GM(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || ON("item", e), iue(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}`);
});
@@ -34116,7 +34116,7 @@ async function zue(e, t, n, r = {}) {
speed: [],
activity: [],
buffer: []
- }, f = Number(r.size ?? e.size) || 0, p = sue(JM(f, e.duration)), m = 0, h = !1, g = () => UM() === l && !l.isDisposed(), _ = () => {
+ }, f = Number(r.size ?? e.size) || 0, p = oue(YM(f, e.duration)), m = 0, h = !1, g = () => WM() === 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(() => {
@@ -34127,15 +34127,15 @@ async function zue(e, t, n, r = {}) {
ready: !1,
updateStats: () => {}
};
- qN.set(l, y), y.updateStats = () => {
+ JN.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 = zN(), h = s ? $M(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 = 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;
p.sample(t);
- let x = tN(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 = 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);
m = S;
- let w = KM(t);
- XM(d.speed, x), XM(d.activity, C), XM(d.buffer, w);
+ let w = qM(t);
+ ZM(d.speed, x), ZM(d.activity, C), ZM(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} 请求`,
@@ -34153,17 +34153,17 @@ async function zue(e, t, n, r = {}) {
[
"连接速度",
D,
- QM(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
+ $M(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
],
[
k[0],
k[1],
- QM(d.activity, "activity", Math.max(1, ...d.activity), k[2])
+ $M(d.activity, "activity", Math.max(1, ...d.activity), k[2])
],
[
"缓冲健康",
`${w.toFixed(1)} 秒`,
- QM(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
+ $M(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
],
["播放时间", `${Yn(t.currentTime)} / ${Yn(u || l.duration())}`],
["日期", (/* @__PURE__ */ new Date()).toLocaleString()]
@@ -34179,15 +34179,15 @@ async function zue(e, t, n, r = {}) {
if (!n || l.isDisposed()) return;
let r = v();
r || p.sample(t);
- let i = tN(l, e.id, zN(), r ? null : p), a = r ? nN(i) : lue(i, KM(t));
+ let i = nN(l, e.id, BN(), r ? null : p), a = r ? rN(i) : cue(i, qM(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(), YN && clearInterval(YN), YN = setInterval(S, 500));
+ e && e.isConnected && (e.hidden = !1, S(), XN && clearInterval(XN), XN = setInterval(S, 500));
}, w = () => {
let e = y.chrome?.netBadge;
- e && (XN && clearTimeout(XN), XN = setTimeout(() => {
- e.hidden = !0, YN &&= (clearInterval(YN), null);
+ e && (ZN && clearTimeout(ZN), ZN = setTimeout(() => {
+ e.hidden = !0, XN &&= (clearInterval(XN), null);
}, 1400));
};
return l.on([
@@ -34198,7 +34198,7 @@ async function zue(e, t, n, r = {}) {
], C), l.on(["canplay", "playing"], () => {
S(), w();
}), l.on("error", () => {
- b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(jue(e)), n && l.play()?.catch(() => {})) : r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
+ b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(Aue(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))}`
@@ -34206,13 +34206,13 @@ async function zue(e, t, n, r = {}) {
});
}), l.ready(() => {
_();
- let n = bN(l, t, e.height, r.qualities ?? null);
+ let n = xN(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 = JM(r, e.duration));
- }).catch(() => {}), xN(l, e, { thumbnail: !r.source }), r.guidePreview || Tue(l, e), SN(l), r.source || CN(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
+ r > 0 && !f && (f = r, p.bitrate = YM(r, e.duration));
+ }).catch(() => {}), SN(l, e, { thumbnail: !r.source }), r.guidePreview || wue(l, e), CN(l), r.source || wN(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;
@@ -34221,16 +34221,16 @@ async function zue(e, t, n, r = {}) {
}), l.src(e), _(), setTimeout(_, 0), setTimeout(_, 250), n && l.play()?.catch(() => {}));
}).catch(() => {}), l;
}
-var Bue = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
-function QN(e, t = null) {
- if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", Bue), e.querySelector("#playerStatsBtn")) return;
+var zue = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
+function $N(e, t = null) {
+ if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", zue), e.querySelector("#playerStatsBtn")) return;
let n = document.createElement("template");
- n.innerHTML = cue();
+ n.innerHTML = sue();
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 $N(e, t) {
- let n = qN.get(e);
+function eP(e, t) {
+ let n = JN.get(e);
if (!n || e.isDisposed()) return () => {};
let r = (e) => t.querySelector(`#${e}`), i = {
statsButton: r("playerStatsBtn"),
@@ -34242,30 +34242,30 @@ function $N(e, t) {
if (a && o) {
a.hidden = !n.ready;
let e = () => {
- o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), JN &&= (clearInterval(JN), null));
+ o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), YN &&= (clearInterval(YN), null));
};
a.onclick = () => {
- o.hidden ? (document.dispatchEvent(new CustomEvent(ZM, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), JN && clearInterval(JN), JN = setInterval(n.updateStats, 1e3)) : e();
+ 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();
};
let t = (t) => {
t.detail !== "stats" && e();
};
- document.addEventListener(ZM, t), s = () => document.removeEventListener(ZM, t);
+ document.addEventListener(QM, t), s = () => document.removeEventListener(QM, t);
}
- let c = e.el().querySelector("video"), l = c ? Sue(c) : () => {}, u = !0, d = () => {
- u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, ZN()));
+ let c = e.el().querySelector("video"), l = c ? xue(c) : () => {}, u = !0, d = () => {
+ u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, QN()));
};
return e.one("dispose", d), d;
}
-function eP(e, t) {
- if (t.kind === "immerse") return Lue(e, t);
- let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = KN(), c = LM(), l = t.chrome === !1 ? null : e.parentElement;
- l && QN(l, e);
- let u = DN(n, r, i?.index ?? null), d = {
+function tP(e, t) {
+ if (t.kind === "immerse") return Iue(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 = {
guidePreview: s,
playbackKey: u,
resume: s ? null : t.resume ?? {
- time: Due(u, r),
+ time: Eue(u, r),
autoplay: !1
}
};
@@ -34285,36 +34285,36 @@ function eP(e, t) {
t && (e.poster = t);
}
let f = null, p = !1, m = () => {}, h = e, g = () => {
- m(), !(f && a?.(f)) && (EN(h), f ? (UM() === f && (WM(null), ZN()), MN(f)) : kN(h));
+ m(), !(f && a?.(f)) && (DN(h), f ? (WM() === f && (GM(null), QN()), NN(f)) : AN(h));
};
- return zue(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)) : (Oue(u, h), n === "follow" ? kue(r, h) : (h.addEventListener("play", () => {
+ return Rue(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)) : (Due(u, h), n === "follow" ? Oue(r, h) : (h.addEventListener("play", () => {
Tn("/api/play", {
method: "POST",
body: JSON.stringify({ id: r.id })
}).catch(() => {});
- }, { once: !0 }), jN(r, h, {
+ }, { once: !0 }), MN(r, h, {
watched: "#watched",
mark: "#mark",
ratio: "#ratioTxt"
- })), t ? (l && (m = $N(t, l)), o?.(t)) : o?.(null)));
+ })), t ? (l && (m = eP(t, l)), o?.(t)) : o?.(null)));
}), () => {
p = !0, g();
};
}
// src/player/playback.ts
-function tP(e) {
+function nP(e) {
e && (e.paused ? e.play()?.catch(() => {}) : e.pause());
}
-function nP(e, t) {
+function rP(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 Vue(e, t, n) {
+function Bue(e, t, n) {
e.controls = !1;
let r = !1, i = null;
- return WN().then((a) => {
+ return GN().then((a) => {
if (r) return;
i = a(e, {
controls: !0,
@@ -34339,30 +34339,30 @@ function Vue(e, t, n) {
o.on("error", () => {
r || n();
}), o.ready(() => {
- r || o.isDisposed() || (bN(o, e), xN(o, null, { thumbnail: !1 }), SN(o));
+ r || o.isDisposed() || (xN(o, e), SN(o, null, { thumbnail: !1 }), CN(o));
}), o.src(t);
}).catch(() => {
r || n();
}), () => {
- r = !0, MN(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
+ r = !0, NN(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
};
}
-function rP(e, t) {
+function iP(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return t && n.set("exclude_vertical", "1"), n.toString();
}
-var Hue = (e, t) => [
+var Vue = (e, t) => [
"catalog-grid",
"catalog",
e,
t
-], Uue = (e, t) => [
+], Hue = (e, t) => [
"catalog-grid",
"entity",
e,
t
];
-async function Wue(e, t, n, r, i) {
+async function Uue(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 = {
@@ -34372,22 +34372,22 @@ async function Wue(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 Gue = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Kue = (e, t) => {
+var Wue = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Gue = (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 que(e) {
- let t = rP(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
+function Kue(e) {
+ let t = iP(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
return {
- queryKey: Hue(t, e.revision || 0),
- queryFn: ({ pageParam: e, signal: i }) => Wue(t, e, n, r, i),
+ queryKey: Vue(t, e.revision || 0),
+ queryFn: ({ pageParam: e, signal: i }) => Uue(t, e, n, r, i),
initialPageParam: 0,
- getNextPageParam: Gue(n)
+ getNextPageParam: Wue(n)
};
}
-function Jue(e) {
+function que(e) {
return {
- queryKey: Uue(e.entityKey || "", e.revision || 0),
+ queryKey: Hue(e.entityKey || "", e.revision || 0),
queryFn: async ({ pageParam: t, signal: n }) => {
if (!e.fetchPage) return {
items: [],
@@ -34402,14 +34402,14 @@ function Jue(e) {
};
},
initialPageParam: 0,
- getNextPageParam: Kue
+ getNextPageParam: Gue
};
}
-function iP(e) {
+function aP(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 aP(e, t, n) {
+function oP(e, t, n) {
return n ? e.filter((e) => {
let n = e.part_group?.key;
if (n) {
@@ -34424,24 +34424,24 @@ function aP(e, t, n) {
return !0;
}) : [...e];
}
-var oP = (e, t) => !!e && !!no(e, t);
-function Yue(e, t) {
- let n = (e) => oP(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) => oP(e, t)) || e[e.length - 1];
+var sP = (e, t) => !!e && !!no(e, t);
+function Jue(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];
}
-function Xue(e, { collapse: t, mix: n, javImage: r }) {
+function Yue(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 = aP(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
+ let e = oP(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 = Yue(e, r);
+ let t = Jue(e, r);
t && l.splice(7, 0, {
kind: "mix",
seed: t
@@ -34454,16 +34454,16 @@ function Xue(e, { collapse: t, mix: n, javImage: r }) {
pageStarts: s
};
}
-function Zue(e, t, n) {
+function Xue(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 Que(e, t) {
+function Zue(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 $ue(e, t) {
+function Que(e, t) {
let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;
for (let t of n) r.push({
start: i,
@@ -34476,10 +34476,10 @@ function $ue(e, t) {
strip: null
}), r;
}
-function sP(e, t) {
- cP((t) => t.id === e, t);
-}
function cP(e, t) {
+ lP((t) => t.id === e, t);
+}
+function lP(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) => ({
@@ -34509,34 +34509,34 @@ function cP(e, t) {
} : n)
});
}
-var lP = (e) => Math.min(Math.max(e || 0, 0), 100), uP = (e) => Math.round(lP(e) / 20), ede = (e) => {
- let t = uP(e);
+var uP = (e) => Math.min(Math.max(e || 0, 0), 100), dP = (e) => Math.round(uP(e) / 20), $ue = (e) => {
+ let t = dP(e);
return t ? `${t} 星` : "未评分";
-}, dP = (e, t) => t === uP(e) ? 0 : t * 20, fP = (e) => ["item", e], pP = (e) => [
+}, fP = (e, t) => t === dP(e) ? 0 : t * 20, pP = (e) => ["item", e], mP = (e) => [
"item-queue",
e.kind,
e.kind === "playlist" ? e.playlistId : e.seedId
-], tde = (e, t) => [
+], ede = (e, t) => [
"item-related",
e,
t
-], nde = (e) => `/api/item?id=${e}`, rde = (e, t) => `/api/related?id=${e}&limit=${t}`, mP = "/api/playlist", hP = "/api/feedback", gP = "/api/item-tag", _P = "/api/watch-later", vP = "/api/quality-goal", yP = "/api/preference", bP = class extends Error {};
-async function xP(e, t) {
- let n = await B(nde(e), t);
- if (n.error) throw new bP(n.error);
+], tde = (e) => `/api/item?id=${e}`, nde = (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(tde(e), t);
+ if (n.error) throw new xP(n.error);
return n;
}
-async function SP(e, t, n) {
+async function CP(e, t, n) {
if (e.kind === "mix") {
- let r = e.seedId, [i, a] = await Promise.all([xP(r, n), t.mixRelated(r)]);
- return H.setQueryData(fP(i.id), i), {
+ let r = e.seedId, [i, a] = await Promise.all([SP(r, n), t.mixRelated(r)]);
+ return H.setQueryData(pP(i.id), i), {
kind: "mix",
seedId: r,
title: `Mix · ${No(i, t.tagLabel)}`,
items: [i, ...a.filter((e) => e.id !== i.id)]
};
}
- if (e.kind === "playlist") return CP(await B(`${mP}?id=${e.playlistId}`, n));
+ if (e.kind === "playlist") return wP(await B(`${hP}?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 {
@@ -34547,19 +34547,19 @@ async function SP(e, t, n) {
versionCount: e.kind === "editions" ? r.count : void 0
};
}
-var CP = (e) => ({
+var wP = (e) => ({
kind: "playlist",
playlistId: e.id,
title: e.name,
items: e.items || [],
currentAssetId: e.current_asset_id
-}), wP = (e) => e.disposal === "vanished";
-function TP(e, t) {
+}), TP = (e) => e.disposal === "vanished";
+function EP(e, t) {
if (e.kind === "mix") return t;
- let n = e.kind === "playlist" ? e.items.filter((e) => !wP(e)) : e.items;
+ let n = e.kind === "playlist" ? e.items.filter((e) => !TP(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 ide(e, t) {
+function rde(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 : {
@@ -34567,20 +34567,20 @@ function ide(e, t) {
part_label: n
};
}
-function EP(e, t) {
+function DP(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 DP(e, t) {
+async function OP(e, t) {
let { queue: n, actions: r } = e, i = null, a = !1;
if (n) {
- let o = pP(n);
+ let o = mP(n);
try {
let r = n.fresh ? void 0 : H.getQueryData(o);
a = !r && n.kind === "mix", i = r || await H.fetchQuery({
queryKey: o,
- queryFn: () => SP(n, e.helpers, t),
+ queryFn: () => CP(n, e.helpers, t),
staleTime: 0
});
} catch (n) {
@@ -34592,21 +34592,21 @@ async function DP(e, t) {
return;
}
}
- let o = i ? TP(i, e.id) : e.id;
+ let o = i ? EP(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(fP(o)) : void 0;
+ let s, c = a && o === i?.seedId ? H.getQueryData(pP(o)) : void 0;
try {
s = c || await H.fetchQuery({
- queryKey: fP(o),
- queryFn: () => xP(o, t),
+ queryKey: pP(o),
+ queryFn: () => SP(o, t),
staleTime: 0
});
} catch (e) {
if (t.aborted) throw e;
- if (e instanceof bP) {
+ if (e instanceof xP) {
r.redirect({ kind: "gone" });
return;
}
@@ -34617,7 +34617,7 @@ async function DP(e, t) {
id: Number(s.follow_item_id)
});
}
-function ade(e) {
+function ide(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);
@@ -34639,35 +34639,35 @@ function ade(e) {
unowned: !i.length && !c.length && !String(e.creator || "").trim()
};
}
-function ode(e, t) {
+function ade(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 OP = (e, t) => (e.tags || []).some((e) => Un(e.k) === Un(t)), kP = (e, t) => ({
+var kP = (e, t) => (e.tags || []).some((e) => Un(e.k) === Un(t)), AP = (e, t) => ({
...e,
tags: (e.tags || []).filter((e) => Un(e.k) !== Un(t))
-}), AP = (e, t) => OP(e, t.k) ? e : {
+}), jP = (e, t) => kP(e, t.k) ? e : {
...e,
tags: [...e.tags || [], t]
-}, jP = "peach.recentTags";
-function MP() {
+}, MP = "peach.recentTags";
+function NP() {
try {
- let e = JSON.parse(localStorage.getItem(jP) || "[]");
+ let e = JSON.parse(localStorage.getItem(MP) || "[]");
return Array.isArray(e) ? e.map(String) : [];
} catch {
return [];
}
}
-function NP(e) {
+function PP(e) {
try {
- let t = MP().filter((t) => Un(t) !== Un(e));
- localStorage.setItem(jP, JSON.stringify([e, ...t].slice(0, 12)));
+ let t = NP().filter((t) => Un(t) !== Un(e));
+ localStorage.setItem(MP, JSON.stringify([e, ...t].slice(0, 12)));
} catch {}
}
-function sde(e, t, n) {
+function ode(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
@@ -34678,73 +34678,73 @@ function sde(e, t, n) {
create: r && !s ? e.trim() : ""
};
}
-var cde = {
+var sde = {
中字: "subtitle",
无码: "uncensored",
无码流出: "leaked",
无码破解: "cracked",
有码: "censored"
-}, lde = {
+}, cde = {
mix: "Mix",
parts: "分卷",
editions: "版本",
playlist: "播放列表"
};
-function ude(e) {
+function lde(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: lde[e.kind],
+ title: cde[e.kind],
summary: e.kind === "editions" ? n : `${e.title} · ${n}`
};
}
-var PP = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, dde = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${z(PP(e.part_label))}</small>` : "";
-function fde(e, t, n, r) {
+var FP = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, ude = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${z(FP(e.part_label))}</small>` : "";
+function dde(e, t, n, r) {
let i = e.filter((e) => e !== t), a = i.indexOf(n);
return i.splice(a + +!!r, 0, t), i;
}
-var pde = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
-function mde(e, t) {
+var fde = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
+function pde(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 hde(e) {
+function mde(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 FP(e, t) {
+function IP(e, t) {
return e === "dislike" ? t.feedback === "dislike" ? "已标记不合口味" : "已取消不合口味" : e === "seen" ? t.feedback === "seen" ? "已标记看过" : "已取消看过" : e === "dispose" ? t.disposal === "trash" ? "已移入回收站" : "已移出回收站" : "已记录一次高潮";
}
// src/react/immerse/immerse.ts
-var gde = (e, t, n) => [
+var hde = (e, t, n) => [
"immerse-list",
e,
t,
n
];
-function _de(e) {
+function gde(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 vde = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.root_id || e.location || ""));
-function yde(e, t = Math.random) {
+var _de = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.root_id || e.location || ""));
+function vde(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 bde(e, t) {
- return yde(((await B(`/api/items?${e}`)).items || []).filter((e) => vde(e, t)));
+async function yde(e, t) {
+ return vde(((await B(`/api/items?${e}`)).items || []).filter((e) => _de(e, t)));
}
-var IP = (e) => H.ensureQueryData({
- queryKey: fP(e),
- queryFn: ({ signal: t }) => xP(e, t)
+var LP = (e) => H.ensureQueryData({
+ queryKey: pP(e),
+ queryFn: ({ signal: t }) => SP(e, t)
});
-function xde(e, t) {
+function bde(e, t) {
let n = new Set(e.map((e) => e.id));
return e.concat(t.filter((e) => !n.has(e.id)));
}
-function Sde(e) {
+function xde(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,
@@ -34753,313 +34753,313 @@ function Sde(e) {
ref: r && e.entity_refs?.[r]?.[0] || null
};
}
-function Cde(e, t, n) {
+function Sde(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 wde(e, t) {
+function Cde(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 Tde = 15e3, LP = {
+var wde = 15e3, RP = {
open: !1,
idle: !1,
wide: !1,
loading: null,
shown: null
-}, RP = null, zP = null, BP = LP, VP = /* @__PURE__ */ new Set(), HP = 0, UP = 0, WP = 0, GP = "", KP = [], qP = 0, JP = !1, YP = !1, XP = null, ZP = /* @__PURE__ */ new Set(), QP = "", $P = null, eF = 0, tF = null, nF = !1, rF = null;
-function iF() {
- if (!RP) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
- return RP;
+}, 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;
}
-function Ede(e) {
- return VP.add(e), () => {
- VP.delete(e);
+function Tde(e) {
+ return HP.add(e), () => {
+ HP.delete(e);
};
}
-function Dde() {
- for (let e of [...VP]) e();
-}
-function aF() {
- (0, Rt.flushSync)(Dde);
+function Ede() {
+ for (let e of [...HP]) e();
}
function oF() {
- let e = $P ? eN($P.id) : 0;
- return e ? `${QP} · ${nN(e)}` : QP;
+ (0, Rt.flushSync)(Ede);
}
-function sF(e, t = null) {
- clearInterval(eF), eF = 0, e === null ? (BP = {
- ...BP,
+function sF() {
+ let e = eF ? tN(eF.id) : 0;
+ return e ? `${$P} · ${rN(e)}` : $P;
+}
+function cF(e, t = null) {
+ clearInterval(tF), tF = 0, e === null ? (VP = {
+ ...VP,
loading: null
- }, aF()) : (QP = e, $P = t, BP = {
- ...BP,
- loading: oF()
- }, aF(), eF = window.setInterval(() => {
- $P = KP[qP] ?? null, BP = {
- ...BP,
- loading: oF()
- }, aF();
+ }, oF()) : ($P = e, eF = t, VP = {
+ ...VP,
+ loading: sF()
+ }, oF(), tF = window.setInterval(() => {
+ eF = qP[JP] ?? null, VP = {
+ ...VP,
+ loading: sF()
+ }, oF();
}, 500));
}
-function Ode(e) {
+function Dde(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), zP.track.append(t);
- let r = PN(), i = () => {}, a = {
+ n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), BP.track.append(t);
+ let r = FN(), i = () => {}, a = {
el: t,
video: n,
session: r,
- release: () => LN(r),
+ release: () => RN(r),
disposed: !1,
gone: new Promise((e) => {
i = e;
}),
leave: i
};
- return ZP.add(a), a;
+ return QP.add(a), a;
}
-function kde(e, t) {
+function Ode(e, t) {
return new Promise((n) => {
- e.release = eP(e.video, {
+ e.release = tP(e.video, {
kind: "immerse",
item: t,
session: e.session,
onLoaded: n,
onEnded: () => {
- BP.open && hF(1);
+ VP.open && gF(1);
}
}), e.gone.then(n);
});
}
-function cF(e) {
- e && !e.disposed && (e.disposed = !0, ZP.delete(e), e.leave(), e.release(), e.el.remove(), XP === e && (XP = null));
+function lF(e) {
+ e && !e.disposed && (e.disposed = !0, QP.delete(e), e.leave(), e.release(), e.el.remove(), ZP === e && (ZP = null));
}
-var lF = [
+var uF = [
"loadeddata",
"canplay",
"error"
];
-function Ade(e) {
+function kde(e) {
let { video: t } = e;
return t.readyState >= 3 ? Promise.resolve() : new Promise((n) => {
let r = !1, i = () => {
- r || (r = !0, clearTimeout(a), lF.forEach((e) => t.removeEventListener(e, i)), n());
+ r || (r = !0, clearTimeout(a), uF.forEach((e) => t.removeEventListener(e, i)), n());
};
- lF.forEach((e) => t.addEventListener(e, i, { once: !0 }));
- let a = setTimeout(i, Tde);
+ uF.forEach((e) => t.addEventListener(e, i, { once: !0 }));
+ let a = setTimeout(i, wde);
e.gone.then(i);
});
}
-function uF(e) {
- let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = Cde(e.videoWidth, e.videoHeight, n);
+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 = Sde(e.videoWidth, e.videoHeight, n);
r === "contain" ? e.dataset.fit = "contain" : r && delete e.dataset.fit;
}
-var dF = () => zP?.track.querySelectorAll("video").forEach(uF);
-function jde(e) {
- delete e.dataset.fit, e.readyState >= 1 ? uF(e) : e.addEventListener("loadedmetadata", () => uF(e), { once: !0 });
+var fF = () => BP?.track.querySelectorAll("video").forEach(dF);
+function Ade(e) {
+ delete e.dataset.fit, e.readyState >= 1 ? dF(e) : e.addEventListener("loadedmetadata", () => dF(e), { once: !0 });
}
-function Mde(e) {
- BP = {
- ...BP,
+function jde(e) {
+ VP = {
+ ...VP,
wide: e
- }, aF(), dF();
+ }, oF(), fF();
}
-var fF = () => {
- let e = GP;
+var pF = () => {
+ let e = KP;
return H.fetchQuery({
- queryKey: gde(e, UP, WP),
- queryFn: () => bde(e, iF().sourceOffline),
+ queryKey: hde(e, WP, GP),
+ queryFn: () => yde(e, aF().sourceOffline),
staleTime: Infinity
});
};
-function Nde(e, t) {
+function Mde(e, t) {
let n = () => qn(e.duration) || qn(t.duration);
e.addEventListener("timeupdate", () => {
let t = n();
- t && zP && (zP.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
- }), tF = {
+ t && BP && (BP.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
+ }), nF = {
video: e,
duration: n
- }, rF?.dispose(), rF = zP ? pN(zP.bar, t, { inset: 12 }) : null;
+ }, iF?.dispose(), iF = BP ? mN(BP.bar, t, { inset: 12 }) : null;
}
-function pF(e) {
- let t = tF?.duration();
- rF && t && (rF.prime(), rF.show(e, t));
+function mF(e) {
+ let t = nF?.duration();
+ iF && t && (iF.prime(), iF.show(e, t));
}
-async function mF(e = 0) {
- let t = KP[qP];
- if (!t || JP) return;
- let n = HP;
- iF().route(t.id), JP = !0, sF(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);
let r = null;
try {
- if (await IP(t.id).catch((e) => {
- if (!(e instanceof bP)) throw e;
- }), n !== HP) return;
- let i = XP, a = !!(e && i);
- a || cF(i);
- let o = Ode(a ? e > 0 ? 100 : -100 : 0);
- if (r = o, jde(o.video), await kde(o, t), await Ade(o), o.disposed || (Mde(wde(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
+ 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 = Dde(a ? e > 0 ? 100 : -100 : 0);
+ if (r = o, Ade(o.video), await Ode(o, t), await kde(o), o.disposed || (jde(Cde(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)), cF(i), o.el.style.transform = ""), o.disposed)) return;
- XP = o, r = null, o.video.play()?.catch(() => {}), BP = {
- ...BP,
+ })), 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,
idle: !1,
shown: {
item: t,
- index: qP,
- length: KP.length
+ index: JP,
+ length: qP.length
}
- }, Nde(o.video, t), V("/api/play", { id: t.id }).catch(() => {}), sF(null);
+ }, Mde(o.video, t), V("/api/play", { id: t.id }).catch(() => {}), cF(null);
} catch {
- cF(r), n === HP && sF(null);
+ lF(r), n === UP && cF(null);
} finally {
- n === HP && (JP = !1);
+ n === UP && (YP = !1);
}
}
-async function hF(e) {
- if (JP || !BP.open) return;
- let t = HP;
- if (qP += e, sF("切换中", KP[qP] ?? null), qP >= KP.length - 3 && !YP) {
- YP = !0;
+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;
try {
- WP += 1;
- let e = await fF();
- t === HP && (KP = xde(KP, e));
+ GP += 1;
+ let e = await pF();
+ t === UP && (qP = bde(qP, e));
} catch {} finally {
- YP = !1;
+ XP = !1;
}
}
- t === HP && (qP >= KP.length && (qP = 0), qP < 0 && (qP = KP.length - 1), await mF(e));
+ t === UP && (JP >= qP.length && (JP = 0), JP < 0 && (JP = qP.length - 1), await hF(e));
}
-async function Pde(e) {
- let t = ++HP;
- gF(), UP += 1, WP = 0, GP = _de(iF().filters()), H.removeQueries({ queryKey: ["immerse-list"] }), BP = {
- ...BP,
+async function Nde(e) {
+ let t = ++UP;
+ _F(), WP += 1, GP = 0, KP = gde(aF().filters()), H.removeQueries({ queryKey: ["immerse-list"] }), VP = {
+ ...VP,
open: !0,
idle: !0,
shown: null
- }, document.body.setAttribute("data-immerse-open", ""), sF("加载内容");
+ }, document.body.setAttribute("data-immerse-open", ""), cF("加载内容");
try {
- let n = await fF();
+ let n = await pF();
if (e && !n.some((t) => t.id === e)) {
- let t = await IP(e).catch((e) => {
- if (e instanceof bP) return null;
+ let t = await LP(e).catch((e) => {
+ if (e instanceof xP) return null;
throw e;
});
t?.id && (n = [t, ...n.filter((t) => t.id !== e)]);
}
- if (t !== HP) return;
- if (KP = n, !KP.length) {
- _F(), iF().warn("当前筛选下没有可直接播放的内容");
+ if (t !== UP) return;
+ if (qP = n, !qP.length) {
+ vF(), aF().warn("当前筛选下没有可直接播放的内容");
return;
}
- qP = Math.max(0, KP.findIndex((t) => t.id === e)), await mF();
+ JP = Math.max(0, qP.findIndex((t) => t.id === e)), await hF();
} catch {
- if (t !== HP) return;
- sF(null), _F();
+ if (t !== UP) return;
+ cF(null), vF();
}
}
-function gF() {
- clearInterval(eF), eF = 0, CF(), xF = null, tF = null, nF = !1, rF?.dispose(), rF = null, [...ZP].forEach(cF), JP = !1;
-}
function _F() {
- BP.open && (HP++, gF(), BP = LP, document.body.removeAttribute("data-immerse-open"), aF(), iF().closed());
+ clearInterval(tF), tF = 0, wF(), SF = null, nF = null, rF = !1, iF?.dispose(), iF = null, [...QP].forEach(lF), YP = !1;
+}
+function vF() {
+ VP.open && (UP++, _F(), VP = RP, document.body.removeAttribute("data-immerse-open"), oF(), aF().closed());
}
-var vF = 0, yF = null, bF = 0, xF = null, SF = 0;
-function CF() {
- clearTimeout(vF), vF = 0, yF = null;
+var yF = 0, bF = null, xF = 0, SF = null, CF = 0;
+function wF() {
+ clearTimeout(yF), yF = 0, bF = null;
}
-function Fde(e) {
- let t = XP?.video;
+function Pde(e) {
+ let t = ZP?.video;
if (!t) return;
let n = e < window.innerWidth / 2 ? -1 : 1, r = Date.now();
- yF && yF.side === n && r - yF.at <= 280 ? (CF(), nP(t, iF().seekSeconds() * n)) : (vF && (clearTimeout(vF), vF = 0, tP(t)), yF = {
+ bF && bF.side === n && r - bF.at <= 280 ? (wF(), rP(t, aF().seekSeconds() * n)) : (yF && (clearTimeout(yF), yF = 0, nP(t)), bF = {
side: n,
at: r
- }, vF = window.setTimeout(() => {
- vF = 0, yF = null, BP.open && tP(XP?.video);
+ }, yF = window.setTimeout(() => {
+ yF = 0, bF = null, VP.open && nP(ZP?.video);
}, 280));
}
-function Ide() {
- Date.now() < bF || tP(XP?.video);
-}
-var wF = (e) => zP?.bar.toggleAttribute("data-scrubbing", e);
-function TF(e) {
- zP && (zP.progress.style.width = `${(e * 100).toFixed(2)}%`);
+function Fde() {
+ Date.now() < xF || nP(ZP?.video);
}
+var TF = (e) => BP?.bar.toggleAttribute("data-scrubbing", e);
function EF(e) {
+ BP && (BP.progress.style.width = `${(e * 100).toFixed(2)}%`);
+}
+function DF(e) {
let t = e.target;
if (e.touches.length !== 1 || !t?.closest("[data-immerse-track]")) {
- xF = null;
+ SF = null;
return;
}
- let n = XP?.video;
- xF = {
+ let n = ZP?.video;
+ SF = {
x: e.touches[0].clientX,
y: e.touches[0].clientY,
axis: "",
from: n && n.currentTime || 0
};
}
-function DF(e) {
- if (!xF || e.touches.length !== 1) return;
- let t = e.touches[0].clientX - xF.x, n = e.touches[0].clientY - xF.y;
- if (!xF.axis) {
+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) {
if (Math.abs(t) < 12 && Math.abs(n) < 12) return;
- xF.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", xF.axis === "x" && wF(!0);
+ SF.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", SF.axis === "x" && TF(!0);
}
- if (xF.axis !== "x") return;
- let r = XP?.video, i = r && r.duration || 0;
- i && (e.preventDefault(), xF.to = Math.min(i, Math.max(0, xF.from + t / window.innerWidth * i)), TF(xF.to / i), pF(xF.to / i));
+ 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));
}
-function OF(e) {
- if (!xF) return;
- let t = xF;
- if (xF = null, bF = Date.now() + 700, wF(!1), rF?.hide(), t.axis === "x") {
- let e = XP?.video;
+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;
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 ? (CF(), hF(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), Fde(n.clientX));
+ Math.abs(i) > 60 ? (wF(), gF(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), Pde(n.clientX));
}
-function kF() {
- xF = null, wF(!1), rF?.hide();
+function AF() {
+ SF = null, TF(!1), iF?.hide();
}
-function AF(e) {
+function jF(e) {
let t = Date.now();
- t - SF < 260 || (SF = t, hF(e.deltaY > 0 ? 1 : -1));
+ t - CF < 260 || (CF = t, gF(e.deltaY > 0 ? 1 : -1));
}
-function jF(e) {
- let t = zP.bar.getBoundingClientRect();
+function MF(e) {
+ let t = BP.bar.getBoundingClientRect();
return Math.min(1, Math.max(0, (e.clientX - t.left) / t.width));
}
+function Ide(e) {
+ nF?.duration() && (rF = !0, TF(!0), e.currentTarget.setPointerCapture(e.pointerId), EF(MF(e)), mF(MF(e)), e.preventDefault());
+}
function Lde(e) {
- tF?.duration() && (nF = !0, wF(!0), e.currentTarget.setPointerCapture(e.pointerId), TF(jF(e)), pF(jF(e)), e.preventDefault());
+ rF && EF(MF(e)), mF(MF(e));
}
function Rde(e) {
- nF && TF(jF(e)), pF(jF(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 zde(e) {
- if (e.pointerType !== "mouse" && rF?.hide(), !nF) return;
- nF = !1, wF(!1);
- let t = tF?.duration();
- tF && t && (tF.video.currentTime = t * jF(e));
+function zde() {
+ rF = !1, TF(!1), iF?.hide();
}
function Bde() {
- nF = !1, wF(!1), rF?.hide();
+ rF || iF?.hide();
}
-function Vde() {
- nF || rF?.hide();
-}
-async function MF(e, t) {
- let n = await V(hP, {
+async function NF(e, t) {
+ let n = await V(gP, {
id: e,
kind: t
- }), r = H.getQueryData(fP(e));
- if (!r) return sP(e, {
+ }), r = H.getQueryData(pP(e));
+ if (!r) return cP(e, {
feedback: n.feedback ?? void 0,
o_count: n.o_count
}), n;
@@ -35068,7 +35068,7 @@ async function MF(e, t) {
feedback: n.feedback ?? void 0,
o_count: n.o_count
};
- return H.setQueryData(fP(e), i), sP(e, {
+ return H.setQueryData(pP(e), i), cP(e, {
feedback: i.feedback,
disposal: i.disposal,
watch_later: i.watch_later,
@@ -35076,7 +35076,7 @@ async function MF(e, t) {
o_count: i.o_count
}), n;
}
-var Hde = [
+var Vde = [
{
kind: "dislike",
glyph: "thumbs-down",
@@ -35093,31 +35093,31 @@ var Hde = [
label: "记一次高潮"
}
];
-function NF(e) {
+function PF(e) {
return Ft({
- queryKey: fP(e ?? 0),
- queryFn: ({ signal: t }) => xP(e, t),
+ queryKey: pP(e ?? 0),
+ queryFn: ({ signal: t }) => SP(e, t),
enabled: e != null,
staleTime: Infinity
}).data;
}
-function Ude({ kind: e, glyph: t, label: n, id: r }) {
- let i = NF(r), a = It({
+function Hde({ kind: e, glyph: t, label: n, id: r }) {
+ let i = PF(r), a = It({
mutationFn: async (t) => {
- let n = H.getQueryData(fP(t))?.feedback || null;
+ let n = H.getQueryData(pP(t))?.feedback || null;
return {
- result: await MF(t, e),
+ result: await NF(t, e),
before: n
};
},
onSuccess: ({ result: t, before: n }, r) => {
- iF().toast(FP(e, t), { undo: async () => {
- e === "o" ? await MF(r, "o-undo") : (t.feedback && await MF(r, t.feedback), n && await MF(r, n));
+ 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));
} }), e === "dislike" && t.feedback === "dislike" && setTimeout(() => {
- hF(1);
+ gF(1);
}, 260);
},
- onError: (e) => iF().failure("更新反馈", e)
+ onError: (e) => aF().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": "",
@@ -35148,11 +35148,11 @@ function Ude({ kind: e, glyph: t, label: n, id: r }) {
})]
});
}
-function Wde({ shown: e }) {
- let t = e?.item ?? null, n = NF(t?.id ?? null), r = n ? Sde(n) : null, i = iF(), a = (e) => {
- e.preventDefault(), n && (_F(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
+function Ude({ shown: e }) {
+ let t = e?.item ?? null, n = PF(t?.id ?? null), r = n ? xde(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());
}, o = () => {
- t && (_F(), i.openItem(t.id));
+ t && (vF(), i.openItem(t.id));
}, s = r ? vo(r.name, r.ref, Qa(r.name), r.kind || "performer") : "";
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-immerse-ui": "",
@@ -35181,18 +35181,18 @@ function Wde({ shown: e }) {
})]
});
}
-var Gde = { __html: Vs("媒体加载中") };
-function Kde({ view: e }) {
+var Wde = { __html: Vs("媒体加载中") };
+function Gde({ 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 zP = {
+ return BP = {
root: e,
track: n.current,
bar: r.current,
progress: i.current
- }, e.addEventListener("touchstart", EF, { passive: !0 }), e.addEventListener("touchmove", DF, { passive: !1 }), e.addEventListener("touchend", OF, { passive: !1 }), e.addEventListener("touchcancel", kF, { passive: !0 }), e.addEventListener("wheel", AF, { passive: !0 }), () => {
- e.removeEventListener("touchstart", EF), e.removeEventListener("touchmove", DF), e.removeEventListener("touchend", OF), e.removeEventListener("touchcancel", kF), e.removeEventListener("wheel", AF), zP = null;
+ }, 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;
};
}, []);
let a = e.shown?.item.id ?? null, o = (e) => e ? "" : void 0;
@@ -35209,10 +35209,10 @@ function Kde({ view: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("div", {
ref: n,
"data-immerse-track": "",
- onClick: Ide
+ onClick: Fde
}), /* @__PURE__ */ (0, I.jsx)("div", {
"data-immerse-actions": "",
- children: Hde.map((e) => /* @__PURE__ */ (0, I.jsx)(Ude, {
+ children: Vde.map((e) => /* @__PURE__ */ (0, I.jsx)(Hde, {
...e,
id: a
}, e.kind))
@@ -35225,7 +35225,7 @@ function Kde({ view: e }) {
hidden: e.loading === null,
children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-immerse-spinner": "",
- dangerouslySetInnerHTML: Gde
+ dangerouslySetInnerHTML: Wde
}), /* @__PURE__ */ (0, I.jsx)("span", { children: e.loading ?? "" })]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -35233,7 +35233,7 @@ function Kde({ view: e }) {
"data-immerse-close": "",
title: "关闭",
"aria-label": "关闭",
- onClick: _F,
+ onClick: vF,
children: /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-x" })
@@ -35242,42 +35242,42 @@ function Kde({ view: e }) {
/* @__PURE__ */ (0, I.jsx)("div", {
ref: r,
"data-immerse-bar": "",
- onPointerDown: Lde,
- onPointerMove: Rde,
- onPointerUp: zde,
- onPointerCancel: Bde,
- onPointerLeave: Vde,
+ onPointerDown: Ide,
+ onPointerMove: Lde,
+ onPointerUp: Rde,
+ onPointerCancel: zde,
+ onPointerLeave: Bde,
children: /* @__PURE__ */ (0, I.jsx)("i", { ref: i })
}),
- /* @__PURE__ */ (0, I.jsx)(Wde, { shown: e.shown })
+ /* @__PURE__ */ (0, I.jsx)(Ude, { shown: e.shown })
]
});
}
-var qde = {
- open: Pde,
- close: _F,
- isOpen: () => BP.open,
- activeVideo: () => BP.open ? XP?.video ?? null : null
+var Kde = {
+ open: Nde,
+ close: vF,
+ isOpen: () => VP.open,
+ activeVideo: () => VP.open ? ZP?.video ?? null : null
};
-function Jde(e) {
- if (!BP.open) return;
+function qde(e) {
+ if (!VP.open) return;
let t = e.target;
- t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && hF(1), e.key === "ArrowUp" && hF(-1));
+ 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));
}
-function Yde(e) {
- let t = !RP;
- return RP = e, t && (document.addEventListener("keydown", Jde), addEventListener("resize", () => {
- BP.open && dF();
+function Jde(e) {
+ let t = !zP;
+ return zP = e, t && (document.addEventListener("keydown", qde), addEventListener("resize", () => {
+ VP.open && fF();
}), addEventListener("pagehide", () => {
- ZP.forEach((e) => LN(e.session));
- })), qde;
+ QP.forEach((e) => RN(e.session));
+ })), Kde;
}
-function Xde() {
- let e = (0, F.useSyncExternalStore)(Ede, () => BP);
- return RP ? /* @__PURE__ */ (0, I.jsx)(Kde, { view: e }) : null;
+function Yde() {
+ let e = (0, F.useSyncExternalStore)(Tde, () => VP);
+ return zP ? /* @__PURE__ */ (0, I.jsx)(Gde, { view: e }) : null;
}
// src/manage-header.ts
-var PF = {
+var FF = {
...Zf,
"/junk-files": "垃圾文件",
"/duplicates": "重复文件",
@@ -35285,47 +35285,47 @@ var PF = {
"/trash": "回收站",
"/quality-goals": "高清版",
"/sources": "来源和凭证"
-}, Zde = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
-function Qde(e) {
- let t = PF[e.path] ? "cleanup" : e.section;
+}, Xde = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
+function Zde(e) {
+ let t = FF[e.path] ? "cleanup" : e.section;
return e.menu.some(([e]) => e === t) ? t : "";
}
-var $de = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
-function FF(e) {
+var Qde = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
+function IF(e) {
let t = e.sections.find(([t]) => t === e.section);
if (!t) return null;
- let n = PF[e.path] ?? "";
+ let n = FF[e.path] ?? "";
return {
title: e.section === "cleanup" && n || t[1],
- pressed: Qde(e),
+ pressed: Zde(e),
crumb: n,
- compact: Zde.has(e.path) || e.section === "configuration",
+ compact: Xde.has(e.path) || e.section === "configuration",
lede: e.section === "trash" ? e.trash ? {
kind: "count",
- text: $de(e.trash),
+ text: Qde(e.trash),
total: e.trash.total
} : { kind: "skeleton" } : { kind: "none" }
};
}
-var IF = (e) => e.replace(/[&<>"']/g, (e) => ({
+var LF = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
-})[e]), LF = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${IF(e)}"/></svg>`, RF = "<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 efe(e) {
- let t = FF(e);
+})[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 $de(e) {
+ let t = IF(e);
if (!t) return "";
let n = e.menu.map(([e, n, r]) => {
let i = e === t.pressed;
- return `<button type="button" data-manage="${IF(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${LF(r)}<span>${IF(n)}</span></button>`;
- }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${LF("chevron-right")}</li><li aria-current="true"><span>${IF(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? RF : `<span data-lede-text="">${IF(t.lede.text)}</span>${t.lede.total ? tfe : ""}`}</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=\"\"" : ""}>${IF(t.title)}</h2>` + i;
+ 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 ? efe : ""}`}</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;
}
-var tfe = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
+var efe = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
// src/react/settings-panel/icon.tsx
-function zF({ name: e }) {
+function BF({ name: e }) {
let { wide: t, viewBox: n } = Cn(e);
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: n,
@@ -35334,7 +35334,7 @@ function zF({ name: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function nfe({ name: e }) {
+function tfe({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -35342,88 +35342,88 @@ function nfe({ name: e }) {
});
}
// node_modules/tailwind-merge/dist/bundle-mjs.mjs
-var rfe = (e, t) => {
+var nfe = (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;
-}, ife = (e, t) => ({
+}, rfe = (e, t) => ({
classGroupId: e,
validator: t
-}), BF = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), VF = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), VF = "-", HF = [], afe = "arbitrary..", ofe = (e) => {
- let t = cfe(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), HF = "-", UF = [], ife = "arbitrary..", afe = (e) => {
+ let t = sfe(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return sfe(e);
- let n = e.split(VF);
- return UF(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return ofe(e);
+ let n = e.split(HF);
+ return WF(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? rfe(i, t) : t : i || HF;
+ return t ? i ? nfe(i, t) : t : i || UF;
}
- return n[e] || HF;
+ return n[e] || UF;
}
};
-}, UF = (e, t, n) => {
+}, WF = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = UF(e, t + 1, i);
+ let n = WF(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(VF) : e.slice(t).join(VF), s = a.length;
+ let o = t === 0 ? e.join(HF) : e.slice(t).join(HF), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, sfe = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, ofe = (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 ? afe + r : void 0;
-})(), cfe = (e) => {
+ return r ? ife + r : void 0;
+})(), sfe = (e) => {
let { theme: t, classGroups: n } = e;
- return lfe(n, t);
-}, lfe = (e, t) => {
- let n = BF();
+ return cfe(n, t);
+}, cfe = (e, t) => {
+ let n = VF();
for (let r in e) {
let i = e[r];
- WF(i, n, r, t);
+ GF(i, n, r, t);
}
return n;
-}, WF = (e, t, n, r) => {
+}, GF = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- ufe(i, t, n, r);
+ lfe(i, t, n, r);
}
-}, ufe = (e, t, n, r) => {
- typeof e == "string" ? dfe(e, t, n) : typeof e == "function" ? ffe(e, t, n, r) : pfe(e, t, n, r);
-}, dfe = (e, t, n) => {
- let r = e === "" ? t : GF(t, e);
+}, lfe = (e, t, n, r) => {
+ typeof e == "string" ? ufe(e, t, n) : typeof e == "function" ? dfe(e, t, n, r) : ffe(e, t, n, r);
+}, ufe = (e, t, n) => {
+ let r = e === "" ? t : KF(t, e);
r.classGroupId = n;
+}, dfe = (e, t, n, r) => {
+ pfe(e) ? GF(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(rfe(n, e)));
}, ffe = (e, t, n, r) => {
- mfe(e) ? WF(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(ife(n, e)));
-}, pfe = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- WF(o, GF(t, a), n, r);
+ GF(o, KF(t, a), n, r);
}
-}, GF = (e, t) => {
- let n = e, r = t.split(VF), i = r.length;
+}, KF = (e, t) => {
+ let n = e, r = t.split(HF), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = BF(), n.nextPart.set(t, i)), n = i;
+ i || (i = VF(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, mfe = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, hfe = (e) => {
+}, pfe = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, mfe = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -35441,19 +35441,19 @@ var rfe = (e, t) => {
e in n ? n[e] = t : i(e, t);
}
};
-}, KF = "!", qF = ":", gfe = [], JF = (e, t, n, r, i) => ({
+}, qF = "!", JF = ":", hfe = [], YF = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), _fe = (e) => {
+}), gfe = (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 === qF) {
+ if (o === JF) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -35465,13 +35465,13 @@ var rfe = (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(KF) ? (c = s.slice(0, -1), l = !0) : s.startsWith(KF) && (c = s.slice(1), l = !0);
+ s.endsWith(qF) ? (c = s.slice(0, -1), l = !0) : s.startsWith(qF) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return JF(t, l, c, u);
+ return YF(t, l, c, u);
};
if (t) {
- let e = t + qF, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : JF(gfe, !1, t, void 0, !0);
+ let e = t + JF, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : YF(hfe, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -35481,7 +35481,7 @@ var rfe = (e, t) => {
});
}
return r;
-}, vfe = (e) => {
+}, _fe = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -35493,18 +35493,18 @@ var rfe = (e, t) => {
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, yfe = (e) => ({
- cache: hfe(e.cacheSize),
- parseClassName: _fe(e),
- sortModifiers: vfe(e),
- postfixLookupClassGroupIds: bfe(e),
- ...ofe(e)
-}), bfe = (e) => {
+}, vfe = (e) => ({
+ cache: mfe(e.cacheSize),
+ parseClassName: gfe(e),
+ sortModifiers: _fe(e),
+ postfixLookupClassGroupIds: yfe(e),
+ ...afe(e)
+}), yfe = (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;
-}, xfe = /\s+/, Sfe = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(xfe), l = "";
+}, bfe = /\s+/, xfe = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(bfe), 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) {
@@ -35524,7 +35524,7 @@ var rfe = (e, t) => {
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + KF : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + qF : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -35535,34 +35535,34 @@ var rfe = (e, t) => {
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, Cfe = (...e) => {
+}, Sfe = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = YF(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = XF(n)) && (i && (i += " "), i += r);
return i;
-}, YF = (e) => {
+}, XF = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = YF(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = XF(e[r])) && (n && (n += " "), n += t);
return n;
-}, XF = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = yfe(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, ZF = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = vfe(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 = Sfe(e, n);
+ let a = xfe(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(Cfe(...e));
-}, wfe = [], ZF = (e) => {
- let t = (t) => t[e] || wfe;
+ return a = o, (...e) => a(Sfe(...e));
+}, Cfe = [], QF = (e) => {
+ let t = (t) => t[e] || Cfe;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, QF = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, $F = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Tfe = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Efe = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Dfe = /\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$/, Ofe = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, kfe = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Afe = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, eI = (e) => Tfe.test(e), tI = (e) => !!e && !Number.isNaN(Number(e)), nI = (e) => !!e && Number.isInteger(Number(e)), rI = (e) => e.endsWith("%") && tI(e.slice(0, -1)), iI = (e) => Efe.test(e), aI = () => !0, jfe = (e) => Dfe.test(e) && !Ofe.test(e), oI = () => !1, Mfe = (e) => kfe.test(e), Nfe = (e) => Afe.test(e), Pfe = (e) => !sI(e) && !fI(e), Ffe = (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)), Ife = (e) => gI(e, bI, oI), sI = (e) => QF.test(e), cI = (e) => gI(e, xI, jfe), lI = (e) => gI(e, Wfe, tI), Lfe = (e) => gI(e, CI, aI), Rfe = (e) => gI(e, SI, oI), uI = (e) => gI(e, vI, oI), zfe = (e) => gI(e, yI, Nfe), dI = (e) => gI(e, wI, Mfe), fI = (e) => $F.test(e), pI = (e) => _I(e, xI), Bfe = (e) => _I(e, SI), mI = (e) => _I(e, vI), Vfe = (e) => _I(e, bI), Hfe = (e) => _I(e, yI), hI = (e) => _I(e, wI, !0), Ufe = (e) => _I(e, CI, !0), gI = (e, t, n) => {
- let r = QF.exec(e);
- return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, _I = (e, t, n = !1) => {
+}, $F = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, eI = /^\((?:(\w[\w-]*):)?(.+)\)$/i, wfe = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Tfe = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Efe = /\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$/, Dfe = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Ofe = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, kfe = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, tI = (e) => wfe.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) => Tfe.test(e), oI = () => !0, Afe = (e) => Efe.test(e) && !Dfe.test(e), sI = () => !1, jfe = (e) => Ofe.test(e), Mfe = (e) => kfe.test(e), Nfe = (e) => !cI(e) && !pI(e), Pfe = (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)), Ffe = (e) => _I(e, xI, sI), cI = (e) => $F.test(e), lI = (e) => _I(e, SI, Afe), uI = (e) => _I(e, Ufe, nI), Ife = (e) => _I(e, wI, oI), Lfe = (e) => _I(e, CI, sI), dI = (e) => _I(e, yI, sI), Rfe = (e) => _I(e, bI, Mfe), fI = (e) => _I(e, TI, jfe), pI = (e) => eI.test(e), mI = (e) => vI(e, SI), zfe = (e) => vI(e, CI), hI = (e) => vI(e, yI), Bfe = (e) => vI(e, xI), Vfe = (e) => vI(e, bI), gI = (e) => vI(e, TI, !0), Hfe = (e) => vI(e, wI, !0), _I = (e, t, n) => {
let r = $F.exec(e);
+ return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
+}, vI = (e, t, n = !1) => {
+ let r = eI.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, vI = (e) => e === "position" || e === "percentage", yI = (e) => e === "image" || e === "url", bI = (e) => e === "length" || e === "size" || e === "bg-size", xI = (e) => e === "length", Wfe = (e) => e === "number", SI = (e) => e === "family-name", CI = (e) => e === "number" || e === "weight", wI = (e) => e === "shadow", TI = () => {
- let e = ZF("color"), t = ZF("font"), n = ZF("text"), r = ZF("font-weight"), i = ZF("tracking"), a = ZF("leading"), o = ZF("breakpoint"), s = ZF("container"), c = ZF("spacing"), l = ZF("radius"), u = ZF("shadow"), d = ZF("inset-shadow"), f = ZF("text-shadow"), p = ZF("drop-shadow"), m = ZF("blur"), h = ZF("perspective"), g = ZF("aspect"), _ = ZF("ease"), v = ZF("animate"), y = () => [
+}, 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", Ufe = (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 = () => [
"auto",
"avoid",
"all",
@@ -35587,8 +35587,8 @@ var rfe = (e, t) => {
"left-bottom"
], x = () => [
...b(),
- fI,
- sI
+ pI,
+ cI
], S = () => [
"auto",
"hidden",
@@ -35600,43 +35600,43 @@ var rfe = (e, t) => {
"contain",
"none"
], w = () => [
- fI,
- sI,
+ pI,
+ cI,
c
], T = () => [
- eI,
+ tI,
"full",
"auto",
...w()
], E = () => [
- nI,
+ rI,
"none",
"subgrid",
- fI,
- sI
+ pI,
+ cI
], D = () => [
"auto",
{ span: [
"full",
- nI,
- fI,
- sI
+ rI,
+ pI,
+ cI
] },
- nI,
- fI,
- sI
+ rI,
+ pI,
+ cI
], O = () => [
- nI,
+ rI,
"auto",
- fI,
- sI
+ pI,
+ cI
], k = () => [
"auto",
"min",
"max",
"fr",
- fI,
- sI
+ pI,
+ cI
], A = () => [
"start",
"end",
@@ -35656,7 +35656,7 @@ var rfe = (e, t) => {
"center-safe",
"end-safe"
], M = () => ["auto", ...w()], ee = () => [
- eI,
+ tI,
"auto",
"full",
"dvw",
@@ -35671,7 +35671,7 @@ var rfe = (e, t) => {
...w()
], N = () => [
s,
- eI,
+ tI,
"screen",
"full",
"dvw",
@@ -35682,7 +35682,7 @@ var rfe = (e, t) => {
"fit",
...w()
], te = () => [
- eI,
+ tI,
"screen",
"full",
"lh",
@@ -35695,13 +35695,13 @@ var rfe = (e, t) => {
...w()
], P = () => [
e,
- fI,
- sI
+ pI,
+ cI
], ne = () => [
...b(),
- mI,
- uI,
- { position: [fI, sI] }
+ hI,
+ dI,
+ { position: [pI, cI] }
], re = () => ["no-repeat", { repeat: [
"",
"x",
@@ -35712,25 +35712,25 @@ var rfe = (e, t) => {
"auto",
"cover",
"contain",
- Vfe,
- Ife,
- { size: [fI, sI] }
+ Bfe,
+ Ffe,
+ { size: [pI, cI] }
], I = () => [
- rI,
- pI,
- cI
+ iI,
+ mI,
+ lI
], ie = () => [
"",
"none",
"full",
l,
- fI,
- sI
- ], ae = () => [
- "",
- tI,
pI,
cI
+ ], ae = () => [
+ "",
+ nI,
+ mI,
+ lI
], oe = () => [
"solid",
"dashed",
@@ -35754,32 +35754,32 @@ var rfe = (e, t) => {
"color",
"luminosity"
], ce = () => [
- tI,
- rI,
- mI,
- uI
+ nI,
+ iI,
+ hI,
+ dI
], le = () => [
"",
"none",
m,
- fI,
- sI
+ pI,
+ cI
], ue = () => [
"none",
- tI,
- fI,
- sI
+ nI,
+ pI,
+ cI
], de = () => [
"none",
- tI,
- fI,
- sI
+ nI,
+ pI,
+ cI
], fe = () => [
- tI,
- fI,
- sI
+ nI,
+ pI,
+ cI
], pe = () => [
- eI,
+ tI,
"full",
...w()
];
@@ -35793,17 +35793,17 @@ var rfe = (e, t) => {
"bounce"
],
aspect: ["video"],
- blur: [iI],
- breakpoint: [iI],
- color: [aI],
- container: [iI],
- "drop-shadow": [iI],
+ blur: [aI],
+ breakpoint: [aI],
+ color: [oI],
+ container: [aI],
+ "drop-shadow": [aI],
ease: [
"in",
"out",
"in-out"
],
- font: [Pfe],
+ font: [Nfe],
"font-weight": [
"thin",
"extralight",
@@ -35815,7 +35815,7 @@ var rfe = (e, t) => {
"extrabold",
"black"
],
- "inset-shadow": [iI],
+ "inset-shadow": [aI],
leading: [
"none",
"tight",
@@ -35832,11 +35832,11 @@ var rfe = (e, t) => {
"distant",
"none"
],
- radius: [iI],
- shadow: [iI],
- spacing: ["px", tI],
- text: [iI],
- "text-shadow": [iI],
+ radius: [aI],
+ shadow: [aI],
+ spacing: ["px", nI],
+ text: [aI],
+ "text-shadow": [aI],
tracking: [
"tighter",
"tight",
@@ -35850,9 +35850,9 @@ var rfe = (e, t) => {
aspect: [{ aspect: [
"auto",
"square",
- eI,
- sI,
- fI,
+ tI,
+ cI,
+ pI,
g
] }],
container: ["container"],
@@ -35860,15 +35860,15 @@ var rfe = (e, t) => {
"",
"normal",
"size",
- fI,
- sI
+ pI,
+ cI
] }],
- "container-named": [Ffe],
+ "container-named": [Pfe],
columns: [{ columns: [
- tI,
+ nI,
"auto",
- sI,
- fI,
+ cI,
+ pI,
s
] }],
"break-after": [{ "break-after": y() }],
@@ -35965,13 +35965,13 @@ var rfe = (e, t) => {
"collapse"
],
z: [{ z: [
- nI,
+ rI,
"auto",
- fI,
- sI
+ pI,
+ cI
] }],
basis: [{ basis: [
- eI,
+ tI,
"full",
"auto",
s,
@@ -35989,32 +35989,32 @@ var rfe = (e, t) => {
"wrap-reverse"
] }],
flex: [{ flex: [
+ nI,
tI,
- eI,
"auto",
"initial",
"none",
- sI
+ cI
] }],
grow: [{ grow: [
"",
- tI,
- fI,
- sI
+ nI,
+ pI,
+ cI
] }],
shrink: [{ shrink: [
"",
- tI,
- fI,
- sI
+ nI,
+ pI,
+ cI
] }],
order: [{ order: [
- nI,
+ rI,
"first",
"last",
"none",
- fI,
- sI
+ pI,
+ cI
] }],
"grid-cols": [{ "grid-cols": E() }],
"col-start-end": [{ col: D() }],
@@ -36121,15 +36121,15 @@ var rfe = (e, t) => {
"font-size": [{ text: [
"base",
n,
- pI,
- cI
+ mI,
+ lI
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- Ufe,
- Lfe
+ Hfe,
+ Ife
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -36141,15 +36141,15 @@ var rfe = (e, t) => {
"expanded",
"extra-expanded",
"ultra-expanded",
- rI,
- sI
+ iI,
+ cI
] }],
"font-family": [{ font: [
- Bfe,
- Rfe,
+ zfe,
+ Lfe,
t
] }],
- "font-features": [{ "font-features": [sI] }],
+ "font-features": [{ "font-features": [cI] }],
"fvn-normal": ["normal-nums"],
"fvn-ordinal": ["ordinal"],
"fvn-slashed-zero": ["slashed-zero"],
@@ -36158,14 +36158,14 @@ var rfe = (e, t) => {
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
tracking: [{ tracking: [
i,
- fI,
- sI
+ pI,
+ cI
] }],
"line-clamp": [{ "line-clamp": [
- tI,
+ nI,
"none",
- fI,
- lI
+ pI,
+ uI
] }],
leading: [{ leading: [
"none",
@@ -36174,16 +36174,16 @@ var rfe = (e, t) => {
] }],
"list-image": [{ "list-image": [
"none",
- fI,
- sI
+ pI,
+ cI
] }],
"list-style-position": [{ list: ["inside", "outside"] }],
"list-style-type": [{ list: [
"disc",
"decimal",
"none",
- fI,
- sI
+ pI,
+ cI
] }],
"text-alignment": [{ text: [
"left",
@@ -36203,18 +36203,18 @@ var rfe = (e, t) => {
],
"text-decoration-style": [{ decoration: [...oe(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- tI,
+ nI,
"from-font",
"auto",
- fI,
- cI
+ pI,
+ lI
] }],
"text-decoration-color": [{ decoration: P() }],
"underline-offset": [{ "underline-offset": [
- tI,
+ nI,
"auto",
- fI,
- sI
+ pI,
+ cI
] }],
"text-transform": [
"uppercase",
@@ -36235,9 +36235,9 @@ var rfe = (e, t) => {
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- nI,
- fI,
- sI
+ rI,
+ pI,
+ cI
] }],
"vertical-align": [{ align: [
"baseline",
@@ -36248,8 +36248,8 @@ var rfe = (e, t) => {
"text-bottom",
"sub",
"super",
- fI,
- sI
+ pI,
+ cI
] }],
whitespace: [{ whitespace: [
"normal",
@@ -36277,8 +36277,8 @@ var rfe = (e, t) => {
] }],
content: [{ content: [
"none",
- fI,
- sI
+ pI,
+ cI
] }],
"bg-attachment": [{ bg: [
"fixed",
@@ -36313,24 +36313,24 @@ var rfe = (e, t) => {
"l",
"tl"
] },
- nI,
- fI,
- sI
+ rI,
+ pI,
+ cI
],
radial: [
"",
- fI,
- sI
+ pI,
+ cI
],
conic: [
"",
- nI,
- fI,
- sI
+ rI,
+ pI,
+ cI
]
},
- Hfe,
- zfe
+ Vfe,
+ Rfe
] }],
"bg-color": [{ bg: P() }],
"gradient-from-pos": [{ from: I() }],
@@ -36397,15 +36397,15 @@ var rfe = (e, t) => {
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- tI,
- fI,
- sI
+ nI,
+ pI,
+ cI
] }],
"outline-w": [{ outline: [
"",
- tI,
- pI,
- cI
+ nI,
+ mI,
+ lI
] }],
"outline-color": [{ outline: P() }],
shadow: [{ shadow: [
@@ -36413,35 +36413,35 @@ var rfe = (e, t) => {
"inner",
"none",
u,
- hI,
- dI
+ gI,
+ fI
] }],
"shadow-color": [{ shadow: P() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- hI,
- dI
+ gI,
+ fI
] }],
"inset-shadow-color": [{ "inset-shadow": P() }],
"ring-w": [{ ring: ae() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: P() }],
- "ring-offset-w": [{ "ring-offset": [tI, cI] }],
+ "ring-offset-w": [{ "ring-offset": [nI, lI] }],
"ring-offset-color": [{ "ring-offset": P() }],
"inset-ring-w": [{ "inset-ring": ae() }],
"inset-ring-color": [{ "inset-ring": P() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- hI,
- dI
+ gI,
+ fI
] }],
"text-shadow-color": [{ "text-shadow": P() }],
opacity: [{ opacity: [
- tI,
- fI,
- sI
+ nI,
+ pI,
+ cI
] }],
"mix-blend": [{ "mix-blend": [
...se(),
@@ -36463,7 +36463,7 @@ var rfe = (e, t) => {
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [tI] }],
+ "mask-image-linear-pos": [{ "mask-linear": [nI] }],
"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() }],
@@ -36492,7 +36492,7 @@ var rfe = (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": [fI, sI] }],
+ "mask-image-radial": [{ "mask-radial": [pI, cI] }],
"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() }],
@@ -36503,7 +36503,7 @@ var rfe = (e, t) => {
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [tI] }],
+ "mask-image-conic-pos": [{ "mask-conic": [nI] }],
"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() }],
@@ -36527,111 +36527,111 @@ var rfe = (e, t) => {
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
"mask-image": [{ mask: [
"none",
- fI,
- sI
+ pI,
+ cI
] }],
filter: [{ filter: [
"",
"none",
- fI,
- sI
+ pI,
+ cI
] }],
blur: [{ blur: le() }],
brightness: [{ brightness: [
- tI,
- fI,
- sI
+ nI,
+ pI,
+ cI
] }],
contrast: [{ contrast: [
- tI,
- fI,
- sI
+ nI,
+ pI,
+ cI
] }],
"drop-shadow": [{ "drop-shadow": [
"",
"none",
p,
- hI,
- dI
+ gI,
+ fI
] }],
"drop-shadow-color": [{ "drop-shadow": P() }],
grayscale: [{ grayscale: [
"",
- tI,
- fI,
- sI
+ nI,
+ pI,
+ cI
] }],
"hue-rotate": [{ "hue-rotate": [
- tI,
- fI,
- sI
+ nI,
+ pI,
+ cI
] }],
invert: [{ invert: [
"",
- tI,
- fI,
- sI
+ nI,
+ pI,
+ cI
] }],
saturate: [{ saturate: [
- tI,
- fI,
- sI
+ nI,
+ pI,
+ cI
] }],
sepia: [{ sepia: [
"",
- tI,
- fI,
- sI
+ nI,
+ pI,
+ cI
] }],
"backdrop-filter": [{ "backdrop-filter": [
"",
"none",
- fI,
- sI
+ pI,
+ cI
] }],
"backdrop-blur": [{ "backdrop-blur": le() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- tI,
- fI,
- sI
+ nI,
+ pI,
+ cI
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- tI,
- fI,
- sI
+ nI,
+ pI,
+ cI
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- tI,
- fI,
- sI
+ nI,
+ pI,
+ cI
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- tI,
- fI,
- sI
+ nI,
+ pI,
+ cI
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- tI,
- fI,
- sI
+ nI,
+ pI,
+ cI
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- tI,
- fI,
- sI
+ nI,
+ pI,
+ cI
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- tI,
- fI,
- sI
+ nI,
+ pI,
+ cI
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- tI,
- fI,
- sI
+ nI,
+ pI,
+ cI
] }],
"border-collapse": [{ border: ["collapse", "separate"] }],
"border-spacing": [{ "border-spacing": w() }],
@@ -36647,39 +36647,39 @@ var rfe = (e, t) => {
"shadow",
"transform",
"none",
- fI,
- sI
+ pI,
+ cI
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- tI,
+ nI,
"initial",
- fI,
- sI
+ pI,
+ cI
] }],
ease: [{ ease: [
"linear",
"initial",
_,
- fI,
- sI
+ pI,
+ cI
] }],
delay: [{ delay: [
- tI,
- fI,
- sI
+ nI,
+ pI,
+ cI
] }],
animate: [{ animate: [
"none",
v,
- fI,
- sI
+ pI,
+ cI
] }],
backface: [{ backface: ["hidden", "visible"] }],
perspective: [{ perspective: [
h,
- fI,
- sI
+ pI,
+ cI
] }],
"perspective-origin": [{ "perspective-origin": x() }],
rotate: [{ rotate: ue() }],
@@ -36695,8 +36695,8 @@ var rfe = (e, t) => {
"skew-x": [{ "skew-x": fe() }],
"skew-y": [{ "skew-y": fe() }],
transform: [{ transform: [
- fI,
- sI,
+ pI,
+ cI,
"",
"none",
"gpu",
@@ -36710,9 +36710,9 @@ var rfe = (e, t) => {
"translate-z": [{ "translate-z": pe() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- nI,
- fI,
- sI
+ rI,
+ pI,
+ cI
] }],
accent: [{ accent: P() }],
appearance: [{ appearance: ["none", "auto"] }],
@@ -36762,8 +36762,8 @@ var rfe = (e, t) => {
"nwse-resize",
"zoom-in",
"zoom-out",
- fI,
- sI
+ pI,
+ cI
] }],
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
@@ -36849,15 +36849,15 @@ var rfe = (e, t) => {
"scroll",
"contents",
"transform",
- fI,
- sI
+ pI,
+ cI
] }],
fill: [{ fill: ["none", ...P()] }],
"stroke-w": [{ stroke: [
- tI,
- pI,
- cI,
- lI
+ nI,
+ mI,
+ lI,
+ uI
] }],
stroke: [{ stroke: ["none", ...P()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -37115,16 +37115,16 @@ var rfe = (e, t) => {
"selection"
]
};
-}, Gfe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (EI(e, "cacheSize", t), EI(e, "prefix", n), EI(e, "experimentalParseClassName", r), DI(e.theme, a.theme), DI(e.classGroups, a.classGroups), DI(e.conflictingClassGroups, a.conflictingClassGroups), DI(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), EI(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), EI(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), OI(e.theme, i.theme), OI(e.classGroups, i.classGroups), OI(e.conflictingClassGroups, i.conflictingClassGroups), OI(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), kI(e, i, "postfixLookupClassGroups"), kI(e, i, "orderSensitiveModifiers"), e), EI = (e, t, n) => {
+}, Wfe = (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) => {
n !== void 0 && (e[t] = n);
-}, DI = (e, t) => {
- if (t) for (let n in t) EI(e, n, t[n]);
}, OI = (e, t) => {
- if (t) for (let n in t) kI(e, t, n);
-}, kI = (e, t, n) => {
+ 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) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, Kfe = (e, ...t) => typeof e == "function" ? XF(TI, e, ...t) : XF(() => Gfe(TI(), e), ...t), qfe = [
+}, Gfe = (e, ...t) => typeof e == "function" ? ZF(EI, e, ...t) : ZF(() => Wfe(EI(), e), ...t), Kfe = [
"large-title",
"display-1",
"display-2",
@@ -37138,17 +37138,17 @@ var rfe = (e, t) => {
"body-2",
"caption-1",
"caption-2"
-], Jfe = [
+], qfe = [
"regular",
"medium",
"semibold",
"bold"
-], J = Kfe({ extend: { classGroups: { "font-size": [{ text: qfe.flatMap((e) => Jfe.map((t) => `${e}-${t}`)) }] } } });
-function AI(e) {
+], J = Gfe({ extend: { classGroups: { "font-size": [{ text: Kfe.flatMap((e) => qfe.map((t) => `${e}-${t}`)) }] } } });
+function jI(e) {
return e;
}
// src/react/components/pill-tab.tsx
-var Yfe = typeof window < "u" ? F.useLayoutEffect : F.useEffect, jI = AI({
+var Jfe = typeof window < "u" ? F.useLayoutEffect : F.useEffect, MI = jI({
radius: {
blue: "rounded-full",
gray: "rounded-2lg"
@@ -37170,9 +37170,9 @@ var Yfe = typeof window < "u" ? F.useLayoutEffect : F.useEffect, jI = AI({
gray: "text-text-primary"
}
});
-function MI({ children: e, className: t, ref: n, container: r, ...i }) {
+function NI({ children: e, className: t, ref: n, container: r, ...i }) {
let a = (0, F.useRef)(null), [o, s] = (0, F.useState)(null);
- Yfe(() => {
+ Jfe(() => {
let e = r === void 0 ? a.current : r;
if (!e) return;
let t = () => {
@@ -37208,7 +37208,7 @@ function MI({ children: e, className: t, ref: n, container: r, ...i }) {
}, l = o && /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
"data-pill-thumb": "",
- className: J("pointer-events-none absolute left-0 top-0", jI.radius[o.variant], jI.thumb[o.variant]),
+ className: J("pointer-events-none absolute left-0 top-0", MI.radius[o.variant], MI.thumb[o.variant]),
style: {
"--pill-left": `${o.left}px`,
"--pill-top": `${o.top}px`,
@@ -37225,37 +37225,37 @@ function MI({ 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 NI = null, PI = null, FI = /* @__PURE__ */ new Set();
-function Xfe(e) {
- return FI.add(e), () => {
- FI.delete(e);
+var PI = null, FI = null, II = /* @__PURE__ */ new Set();
+function Yfe(e) {
+ return II.add(e), () => {
+ II.delete(e);
};
}
-function Zfe() {
- for (let e of [...FI]) e();
+function Xfe() {
+ for (let e of [...II]) e();
}
-var Qfe = { render(e) {
- PI = e, (0, Rt.flushSync)(Zfe);
+var Zfe = { render(e) {
+ FI = e, (0, Rt.flushSync)(Xfe);
} };
-function $fe(e) {
- return NI = e, PI = null, Qfe;
+function Qfe(e) {
+ return PI = e, FI = null, Zfe;
}
-function epe() {
- let e = (0, F.useSyncExternalStore)(Xfe, () => PI);
- return NI && e ? /* @__PURE__ */ (0, I.jsx)(tpe, {
- host: NI,
+function $fe() {
+ let e = (0, F.useSyncExternalStore)(Yfe, () => FI);
+ return PI && e ? /* @__PURE__ */ (0, I.jsx)(epe, {
+ host: PI,
props: e
}) : null;
}
-function tpe({ host: e, props: t }) {
- let n = FF(t);
+function epe({ host: e, props: t }) {
+ let n = IF(t);
return n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(npe, {
+ /* @__PURE__ */ (0, I.jsx)(tpe, {
host: e,
pressed: n.pressed,
menu: t.menu
}),
- n.crumb ? /* @__PURE__ */ (0, I.jsx)(rpe, {
+ n.crumb ? /* @__PURE__ */ (0, I.jsx)(npe, {
host: e,
label: n.crumb
}) : null,
@@ -37264,13 +37264,13 @@ function tpe({ host: e, props: t }) {
"data-compact": n.compact ? "" : void 0,
children: n.title
}),
- n.lede.kind === "none" ? null : /* @__PURE__ */ (0, I.jsx)(ipe, {
+ n.lede.kind === "none" ? null : /* @__PURE__ */ (0, I.jsx)(rpe, {
host: e,
lede: n.lede
})
] }) : null;
}
-function npe({ host: e, pressed: t, menu: n }) {
+function tpe({ 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\"]");
@@ -37280,7 +37280,7 @@ function npe({ host: e, pressed: t, menu: n }) {
}, [t, n]), /* @__PURE__ */ (0, I.jsx)("nav", {
"data-manage-bar": "",
"aria-label": "管理",
- children: /* @__PURE__ */ (0, I.jsx)(MI, {
+ children: /* @__PURE__ */ (0, I.jsx)(NI, {
ref: r,
"data-manage-menu": "",
"data-pill-nav": "",
@@ -37294,13 +37294,13 @@ function npe({ 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)(zF, { name: i }), /* @__PURE__ */ (0, I.jsx)("span", { children: r })]
+ children: [/* @__PURE__ */ (0, I.jsx)(BF, { name: i }), /* @__PURE__ */ (0, I.jsx)("span", { children: r })]
}, n);
})
})
});
}
-function rpe({ host: e, label: t }) {
+function npe({ host: e, label: t }) {
return /* @__PURE__ */ (0, I.jsx)("nav", {
"data-manage-crumb": "",
"aria-label": "当前位置",
@@ -37310,20 +37310,20 @@ function rpe({ host: e, label: t }) {
t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || t.button || (t.preventDefault(), e.openDataCleanup());
},
children: "数据管理"
- }), /* @__PURE__ */ (0, I.jsx)(zF, { name: "chevron-right" })] }), /* @__PURE__ */ (0, I.jsx)("li", {
+ }), /* @__PURE__ */ (0, I.jsx)(BF, { name: "chevron-right" })] }), /* @__PURE__ */ (0, I.jsx)("li", {
"aria-current": "true",
children: /* @__PURE__ */ (0, I.jsx)("span", { children: t })
})] })
});
}
-function ipe({ host: e, lede: t }) {
+function rpe({ 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: RF }
- }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(ape, { text: t.text }), t.total ? /* @__PURE__ */ (0, I.jsx)("button", {
+ dangerouslySetInnerHTML: { __html: zF }
+ }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(ipe, { text: t.text }), t.total ? /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-empty-trash": "",
"data-danger": "",
@@ -37333,7 +37333,7 @@ function ipe({ host: e, lede: t }) {
}) : null] })
});
}
-function ape({ text: e }) {
+function ipe({ text: e }) {
let t = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
Ys(t.current, e);
@@ -37343,29 +37343,29 @@ function ape({ text: e }) {
});
}
// src/core/text-lang.ts
-var ope = /[぀-ヿㇰ-ㇿヲ-゚]/, spe = /[㐀-鿿豈-﫿]/, cpe = /[A-Za-z]/;
-function II(e) {
+var ape = /[぀-ヿㇰ-ㇿヲ-゚]/, ope = /[㐀-鿿豈-﫿]/, spe = /[A-Za-z]/;
+function LI(e) {
let t = String(e ?? "");
- if (ope.test(t)) return "ja";
- if (!spe.test(t) && cpe.test(t)) return "en";
+ if (ape.test(t)) return "ja";
+ if (!ope.test(t) && spe.test(t)) return "en";
}
-var lpe = (e) => {
- let t = II(e);
+var cpe = (e) => {
+ let t = LI(e);
return t ? ` lang="${t}"` : "";
-}, upe = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, dpe = (e, t = e?.name) => {
+}, lpe = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, upe = (e, t = e?.name) => {
let n = String(t || "").trim();
- return e?.is_jav ? n.replace(upe, "") : n;
-}, fpe = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), ppe = (e) => {
+ return e?.is_jav ? n.replace(lpe, "") : n;
+}, dpe = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), fpe = (e) => {
let t = [e?.catalog_title, e?.original_title].map((e) => String(e || "").trim()).filter(Boolean);
- return t.find(fpe) || t[0] || "";
+ return t.find(dpe) || t[0] || "";
};
-function LI(e, t = e?.name) {
- let n = dpe(e, t), r = String(e?.code || "").trim().toUpperCase();
+function RI(e, t = e?.name) {
+ let n = upe(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 = ppe(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 = fpe(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) => [
"中字",
"无码",
"无码流出",
@@ -37377,23 +37377,23 @@ function LI(e, t = e?.name) {
badges: f
};
}
-var RI = (e, t = e?.name) => {
- let { code: n, title: r, badges: i = [] } = LI(e, t);
+var zI = (e, t = e?.name) => {
+ let { code: n, title: r, badges: i = [] } = RI(e, t);
return n ? [
n,
...i,
r
].filter(Boolean).join(" ") : r;
};
-function zI(e, t = e?.name) {
- let { code: n, title: r, badges: i = [] } = LI(e, t);
+function BI(e, t = e?.name) {
+ let { code: n, title: r, badges: i = [] } = RI(e, t);
if (!n) return z(r);
let a = i.map((e) => `<small class="javedition ${e === "中字" ? "subtitle" : e === "无码" ? "uncensored" : e === "无码流出" ? "leaked" : 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"${lpe(r)}>${z(r)}</span>` : ""}`;
+ return `<span class="ui-javidentity"><strong class="ui-javcode">${z(n)}</strong>${a}</span>${r ? ` <span class="ui-javtitle"${cpe(r)}>${z(r)}</span>` : ""}`;
}
// src/react/activity/tasks.ts
-var BI = "/api/tasks", VI = ["tasks"];
-function mpe(e, t) {
+var VI = "/api/tasks", HI = ["tasks"];
+function ppe(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 {
@@ -37404,7 +37404,7 @@ function mpe(e, t) {
settled: n - r
};
}
-function hpe(e) {
+function mpe(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
let e = t.get(n.task_key);
@@ -37415,11 +37415,11 @@ function hpe(e) {
}
return [...t.values()];
}
-var gpe = (e, t) => B(`${BI}?${new URLSearchParams({
+var hpe = (e, t) => B(`${VI}?${new URLSearchParams({
before_finished_at: e.finished_at || "",
before_id: String(e.id)
})}`, t);
-function _pe(...e) {
+function gpe(...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) => {
@@ -37427,26 +37427,26 @@ function _pe(...e) {
return n === r ? t.id - e.id : n < r ? 1 : -1;
});
}
-var vpe = 2e3, ype = 1e4, HI = (e) => e?.running?.length ? vpe : ype, UI = (e) => B(BI, e), bpe = (e, t, n) => V(`${BI}/${e}/control`, { action: t }, "POST", n);
-async function xpe(e) {
+var _pe = 2e3, vpe = 1e4, UI = (e) => e?.running?.length ? _pe : vpe, WI = (e) => B(VI, e), ype = (e, t, n) => V(`${VI}/${e}/control`, { action: t }, "POST", n);
+async function bpe(e) {
await H.fetchQuery({
- queryKey: VI,
- queryFn: () => UI(e)
+ queryKey: HI,
+ queryFn: () => WI(e)
});
}
-var Spe = {
+var xpe = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, Cpe = {
+}, Spe = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "意外中断"
-}, wpe = (e) => Cpe[e] || e, WI = {
+}, Cpe = (e) => Spe[e] || e, GI = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -37523,7 +37523,7 @@ var Spe = {
without_code: "未识别番号",
incomplete: "资料或封面未取得",
result: "结果"
-}, Tpe = [
+}, wpe = [
"gone_count",
"unclear_count",
"source_failed",
@@ -37545,14 +37545,14 @@ var Spe = {
"paused_count",
"miss",
"incomplete"
-], Epe = ["face_match_unavailable"], GI = (e) => e.result_summary?.ok === !1 || !!e.result_summary?.error || Epe.some((t) => e.result_summary?.[t] === !0) || Tpe.some((t) => Number(e.result_summary?.[t]) > 0);
-function Dpe(e) {
+], Tpe = ["face_match_unavailable"], KI = (e) => e.result_summary?.ok === !1 || !!e.result_summary?.error || Tpe.some((t) => e.result_summary?.[t] === !0) || wpe.some((t) => Number(e.result_summary?.[t]) > 0);
+function Epe(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 KI = /* @__PURE__ */ new Set(["library-processing"]);
-function Ope(e, t = !0) {
- if (!GI(e) && e.status !== "failed" || KI.has(e.task_key) && !t) return null;
+var qI = /* @__PURE__ */ new Set(["library-processing"]);
+function Dpe(e, t = !0) {
+ if (!KI(e) && e.status !== "failed" || qI.has(e.task_key) && !t) return null;
let n = {
"link-check": ["/data-cleanup#link-manager", "查看有问题的链接"],
"link-prune": ["/data-cleanup#link-manager", "查看有问题的链接"],
@@ -37570,19 +37570,19 @@ function Ope(e, t = !0) {
label: n[1]
} : null;
}
-function kpe(e) {
+function Ope(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 Ape(e) {
+function kpe(e) {
let t = /* @__PURE__ */ new Map();
- for (let n of e) KI.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) qI.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 jpe(e) {
+function Ape(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
if (!n.followup_key || n.parent_run_id == null) continue;
@@ -37591,7 +37591,7 @@ function jpe(e) {
}
return t;
}
-function Mpe(e, t) {
+function jpe(e, t) {
let n = [], r = /* @__PURE__ */ new Map();
for (let i of e) {
if (!t(i)) {
@@ -37613,12 +37613,12 @@ function Mpe(e, t) {
}
return n;
}
-var Npe = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !GI(e) && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), qI = (e) => e.status === "pending" || e.status === "running";
-function Ppe(e) {
+var Mpe = (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 Npe(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, XI(e.error) || Vpe(o) || (qI(e) && i > 0 ? `${YI(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
+ return [r, ZI(e.error) || Bpe(o) || (JI(e) && i > 0 ? `${XI(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
}
-function JI(e) {
+function YI(e) {
if (typeof e != "number" || !Number.isFinite(e) || e < 0) return "";
let t = Math.floor(e);
if (t < 60) return `${t} 秒`;
@@ -37627,19 +37627,19 @@ function JI(e) {
let r = Math.floor(n / 60);
return r < 48 ? `${r} 小时 ${n % 60} 分` : `${Math.floor(r / 24).toLocaleString()} 天 ${r % 24} 小时`;
}
-function YI(e, t) {
+function XI(e, t) {
let n = Math.max(0, Number(t) || 0);
return `${Math.min(n, Math.max(0, Number(e) || 0)).toLocaleString()} / ${n.toLocaleString()}`;
}
-function Fpe(e) {
+function Ppe(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 XI(e) {
- let t = Fpe(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);
+function ZI(e) {
+ let t = Ppe(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);
return n ? xn(n[1]) : t;
}
-var Ipe = {
+var Fpe = {
partial: "处理已结束,部分项目需处理",
complete: "处理完成",
interrupted: "处理已中断",
@@ -37657,11 +37657,11 @@ var Ipe = {
三站都没对上她: "三个来源均未找到与该人物相符的资料页",
已有身份: "已有创作者分类",
已变: "资料已被其他操作修改,本次未保存"
-}, ZI = {
+}, QI = {
avwikidb: "AVWikiDB",
javdb: "JavDB",
"minnano-av": "みんなのAV"
-}, Lpe = {
+}, Ipe = {
like: "标记喜欢",
seen: "标记看过",
later: "加入稍后看",
@@ -37672,8 +37672,8 @@ var Ipe = {
"dismiss-junk": "确认不是垃圾",
"reconsider-junk": "重新判定垃圾",
region: "判定产地"
-}, Rpe = (e) => Ipe[e] || e.replace(/(avwikidb|javdb|minnano-av) (绑定|写入)/gi, (e, t, n) => n === "绑定" ? `已关联 ${ZI[t.toLowerCase()]} 资料页` : `已保存来自 ${ZI[t.toLowerCase()]} 的资料`);
-function QI(e) {
+}, Lpe = (e) => Fpe[e] || e.replace(/(avwikidb|javdb|minnano-av) (绑定|写入)/gi, (e, t, n) => n === "绑定" ? `已关联 ${QI[t.toLowerCase()]} 资料页` : `已保存来自 ${QI[t.toLowerCase()]} 的资料`);
+function $I(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -37683,7 +37683,7 @@ function QI(e) {
minute: "2-digit"
});
}
-var zpe = /* @__PURE__ */ new Set([
+var Rpe = /* @__PURE__ */ new Set([
"blocked_by",
"status",
"run_id",
@@ -37692,20 +37692,20 @@ var zpe = /* @__PURE__ */ new Set([
"completed_at",
"finished_at"
]);
-function $I(e) {
- let t = Bpe(e);
+function eL(e) {
+ let t = zpe(e);
return e?.face_match_unavailable === !0 && !t.some((e) => /不可用|未生效/.test(e)) && t.push("人脸模型不可用,未做人脸核对"), t;
}
-function Bpe(e) {
- return Object.entries(e || {}).filter(([e, t]) => !zpe.has(e) && (e in WI || 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" ? XI(String(t)) : e === "outcome" || e === "result" ? Rpe(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${WI[e]} ${Xn(Number(t))}` : e === "operation" ? `操作:${Lpe[String(t)] || "批量操作"}` : `${WI[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);
+function zpe(e) {
+ return Object.entries(e || {}).filter(([e, t]) => !Rpe.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" ? Lpe(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${GI[e]} ${Xn(Number(t))}` : e === "operation" ? `操作:${Ipe[String(t)] || "批量操作"}` : `${GI[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);
}
-var Vpe = (e) => $I(e).join(" · ");
+var Bpe = (e) => eL(e).join(" · ");
// src/react/use-entity-names.ts
-function eL() {
+function tL() {
return (0, F.useSyncExternalStore)(Yt, Jt, Jt);
}
// src/react/components/async-text.tsx
-function tL({ text: e, busy: t, placeholder: n }) {
+function nL({ 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 && mc(r.current) : i.current = e;
@@ -37726,7 +37726,7 @@ function tL({ text: e, busy: t, placeholder: n }) {
});
}
// src/react/boardui/components/base/buttons/icon-button.tsx
-var nL = AI({
+var rL = jI({
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",
@@ -37737,20 +37737,20 @@ var nL = AI({
small: "size-4 shrink-0"
}
});
-function rL({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function iL({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
ref: i,
type: r,
- className: J(nL.base, nL.size[t], n),
+ className: J(rL.base, rL.size[t], n),
...a,
children: /* @__PURE__ */ (0, I.jsx)(e, {
- className: nL.icon[t],
+ className: rL.icon[t],
"aria-hidden": !0
})
});
}
// src/react/components/glass-drift.tsx
-function iL() {
+function aL() {
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-glass-drift": "",
"aria-hidden": "true",
@@ -37764,7 +37764,7 @@ function iL() {
});
}
// src/react/components/use-stuck.ts
-function aL(e) {
+function oL(e) {
(0, F.useEffect)(() => {
let t = e.current;
if (!t) return;
@@ -37781,7 +37781,7 @@ function aL(e) {
}, [e]);
}
// src/react/components/use-horizontal-scroller.ts
-function oL(e, t = !0) {
+function sL(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]);
@@ -37795,17 +37795,17 @@ function oL(e, t = !0) {
}, [n, t]), i;
}
// src/react/components/filter-glass.tsx
-var Hpe = ({ className: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var Vpe = ({ className: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
className: e,
dangerouslySetInnerHTML: { __html: Vs("正在处理") }
});
-function sL({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(rL, {
+function cL({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsx)(iL, {
...a,
"data-filter-action": "",
size: "small",
- icon: n && r === "spinner" ? Hpe : t,
+ icon: n && r === "spinner" ? Vpe : t,
"aria-label": e,
title: a.title || e,
"aria-busy": n || void 0,
@@ -37815,9 +37815,9 @@ function sL({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress
}
});
}
-function Upe({ title: e, children: t }) {
+function Hpe({ title: e, children: t }) {
let n = (0, F.useRef)(null);
- return aL(n), /* @__PURE__ */ (0, I.jsxs)("div", {
+ return oL(n), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: n,
role: "group",
"aria-label": e,
@@ -37830,13 +37830,13 @@ function Upe({ title: e, children: t }) {
children: e
}),
t,
- /* @__PURE__ */ (0, I.jsx)(iL, {})
+ /* @__PURE__ */ (0, I.jsx)(aL, {})
]
});
}
-function cL({ 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 = oL(), p = oL(u);
- return aL(d), /* @__PURE__ */ (0, I.jsxs)("div", {
+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", {
ref: d,
role: "group",
"aria-label": e,
@@ -37861,27 +37861,27 @@ function cL({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassNa
className: J("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
children: r
}),
- /* @__PURE__ */ (0, I.jsx)(iL, {})
+ /* @__PURE__ */ (0, I.jsx)(aL, {})
]
});
}
-var Wpe = "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 lL({ children: e, pressed: t, onPress: n, className: r, ...i }) {
+var Upe = "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 }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
...i,
"aria-pressed": t,
- className: J(Wpe, r),
+ className: J(Upe, r),
onClick: n,
children: e
});
}
-var Gpe = "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 uL({ children: e, onPress: t, busy: n = !1 }) {
+var Wpe = "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 }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glass-pill": "",
- className: Gpe,
+ className: Wpe,
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
onClick: () => {
@@ -37891,13 +37891,13 @@ function uL({ children: e, onPress: t, busy: n = !1 }) {
});
}
// src/react/components/use-view-glide.ts
-var dL = (e, t) => [
+var fL = (e, t) => [
"x",
"y",
"w",
"h"
].every((n) => e[n] === t[n]);
-function fL(e, t, n) {
+function pL(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;
@@ -37921,17 +37921,17 @@ function fL(e, t, n) {
h: e.offsetHeight
};
}
-function pL(e, t, n, r, { axis: i = "x" } = {}) {
+function mL(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 ? fL(u, l, i) : null;
+ let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? pL(u, l, i) : null;
if (!d || !d.w || !d.h) {
qc(s), s.hidden = !0, a.current = null;
return;
}
let f = s.hidden ? null : a.current;
- s.hidden = !1, a.current = d, !(o && f && dL(f, d)) && Gc(s, o ? f : null, d, i);
+ s.hidden = !1, a.current = d, !(o && f && fL(f, d)) && Gc(s, o ? f : null, d, i);
}, [
e,
t,
@@ -37952,8 +37952,8 @@ function pL(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 ? fL(o, r, i) : null, l = a.current;
- s && l && dL(s, l) || c();
+ 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();
}), u = t.current;
if (u && r) {
l.observe(u);
@@ -37984,7 +37984,7 @@ function pL(e, t, n, r, { axis: i = "x" } = {}) {
};
}
// src/react/boardui/components/base/buttons/button.tsx
-var mL = AI({
+var hL = jI({
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",
@@ -38017,52 +38017,52 @@ function Y({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadi
return /* @__PURE__ */ (0, I.jsxs)("button", {
ref: c,
type: s,
- className: J(mL.base, mL.size[t], mL.variant[e], n && mL.iconOnlySize[t], o),
+ className: J(hL.base, hL.size[t], hL.variant[e], n && hL.iconOnlySize[t], o),
...l,
children: [
r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: mL.icon[t],
+ className: hL.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, I.jsx)("span", {
- className: mL.label[t],
+ className: hL.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, I.jsx)(i, {
- className: mL.icon[t],
+ className: hL.icon[t],
"aria-hidden": !0
}) : null
]
});
}
-function hL({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
+function gL({ 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: J(mL.base, mL.size[t], mL.variant[e], n && mL.iconOnlySize[t], o),
+ className: J(hL.base, hL.size[t], hL.variant[e], n && hL.iconOnlySize[t], o),
...c,
children: [
r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: mL.icon[t],
+ className: hL.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, I.jsx)("span", {
- className: mL.label[t],
+ className: hL.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, I.jsx)(i, {
- className: mL.icon[t],
+ className: hL.icon[t],
"aria-hidden": !0
}) : null
]
});
}
// node_modules/react-aria-components/dist/private/utils.mjs
-var gL = Symbol("default");
-function _L({ values: e, children: t }) {
+var _L = Symbol("default");
+function vL({ values: e, children: t }) {
for (let [n, r] of e) t = /*#__PURE__*/ F.createElement(n.Provider, { value: r }, t);
return t;
}
-function vL(e) {
+function yL(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;
@@ -38096,11 +38096,11 @@ function vL(e) {
c
]);
}
-function yL(e, t) {
+function bL(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 || gL;
+ let e = t || _L;
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}.`);
@@ -38109,8 +38109,8 @@ function yL(e, t) {
}
return n;
}
-function bL(e, t, n) {
- let { ref: r, ...i } = yL(n, e.slot) || {}, a = ZC((0, F.useMemo)(() => HC(t, r), [t, r])), o = q(i, e);
+function xL(e, t, n) {
+ let { ref: r, ...i } = bL(n, e.slot) || {}, a = ZC((0, F.useMemo)(() => HC(t, r), [t, r])), o = q(i, e);
return "style" in i && i.style && "style" in e && e.style && (o.style = typeof i.style == "function" || typeof e.style == "function" ? (t) => {
let n = typeof i.style == "function" ? i.style(t) : i.style, r = {
...t.defaultStyle,
@@ -38128,7 +38128,7 @@ function bL(e, t, n) {
...e.style
}), [o, a];
}
-function xL(e = !0) {
+function SL(e = !0) {
let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(!1), i = (0, F.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
@@ -38136,12 +38136,12 @@ function xL(e = !0) {
r.current || n(!1);
}, []), [i, t];
}
-function SL(e) {
+function CL(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function Kpe(e, t, n) {
+function Gpe(e, t, n) {
let { render: r, ...i } = t, a = (0, F.useRef)(null), o = (0, F.useMemo)(() => HC(n, a), [n, a]);
BS(() => {}, [e, r]);
let s = {
@@ -38150,19 +38150,19 @@ function Kpe(e, t, n) {
};
return r ? r(s, void 0) : /*#__PURE__*/ F.createElement(e, s);
}
-var CL = {}, wL = new Proxy({}, { get(e, t) {
+var wL = {}, TL = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = CL[t];
- return n || (n = /*#__PURE__*/ (0, F.forwardRef)(Kpe.bind(null, t)), CL[t] = n), n;
-} }), TL = /*#__PURE__*/ (0, F.createContext)(null), EL = /*#__PURE__*/ (0, F.createContext)(null), DL = /*#__PURE__*/ (0, F.createContext)(null), OL = {
+ let n = wL[t];
+ return n || (n = /*#__PURE__*/ (0, F.forwardRef)(Gpe.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 = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return kL(e, null, t);
+ return AL(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return kL(e, t, n);
+ return AL(e, t, n);
}
};
-function kL(e, t, n) {
+function AL(e, t, n) {
return SS({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
@@ -38173,11 +38173,11 @@ function kL(e, t, n) {
type: "item",
key: t.key,
dropPosition: "before"
- }), r, qpe(e, t, n));
+ }), r, Kpe(e, t, n));
}
});
}
-function qpe(e, t, n) {
+function Kpe(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);
@@ -38196,23 +38196,23 @@ function qpe(e, t, n) {
}
return s;
}
-var AL = /*#__PURE__*/ (0, F.createContext)(OL);
-function jL(e) {
+var jL = /*#__PURE__*/ (0, F.createContext)(kL);
+function ML(e) {
return (0, F.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
// node_modules/react-aria-components/dist/private/Label.mjs
-var ML = /*#__PURE__*/ (0, F.createContext)({}), NL = /*#__PURE__*/ nw(function(e, t) {
- [e, t] = bL(e, t, ML);
- let { elementType: n = "label", ...r } = e, i = wL[n];
+var NL = /*#__PURE__*/ (0, F.createContext)({}), PL = /*#__PURE__*/ nw(function(e, t) {
+ [e, t] = xL(e, t, NL);
+ let { elementType: n = "label", ...r } = e, i = TL[n];
return /*#__PURE__*/ F.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), Jpe = /*#__PURE__*/ (0, F.createContext)(null), PL = /*#__PURE__*/ (0, F.createContext)({}), FL = /*#__PURE__*/ nw(function(e, t) {
- [e, t] = bL(e, t, PL);
+}), qpe = /*#__PURE__*/ (0, F.createContext)(null), FL = /*#__PURE__*/ (0, F.createContext)({}), IL = /*#__PURE__*/ nw(function(e, t) {
+ [e, t] = xL(e, t, FL);
let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Goe(e, t);
- i = Xpe(i, r);
+ i = Ype(i, r);
let { focusProps: o, isFocused: s, isFocusVisible: c } = AD(e), { hoverProps: l, isHovered: u } = PD({
...e,
isDisabled: e.isDisabled || r
@@ -38223,7 +38223,7 @@ var ML = /*#__PURE__*/ (0, F.createContext)({}), NL = /*#__PURE__*/ nw(function(
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = vL({
+ }, f = yL({
...e,
values: d,
defaultClassName: "react-aria-Button"
@@ -38240,7 +38240,7 @@ var ML = /*#__PURE__*/ (0, F.createContext)({}), NL = /*#__PURE__*/ nw(function(
p
]);
let _ = Ww(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ F.createElement(wL.button, {
+ return delete _.onClick, /*#__PURE__*/ F.createElement(TL.button, {
...q(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
@@ -38254,61 +38254,61 @@ var ML = /*#__PURE__*/ (0, F.createContext)({}), NL = /*#__PURE__*/ nw(function(
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ F.createElement(Jpe.Provider, { value: { id: m } }, f.children));
-}), Ype = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function Xpe(e, t) {
+ }, /*#__PURE__*/ F.createElement(qpe.Provider, { value: { id: m } }, f.children));
+}), Jpe = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function Ype(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !Ype.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !Jpe.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 IL = /*#__PURE__*/ (0, F.createContext)({}), LL = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = bL(e, t, IL);
- let { children: n, level: r = 3, className: i, ...a } = e, o = wL[`h${r}`];
+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}`];
return /*#__PURE__*/ F.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), RL = /*#__PURE__*/ (0, F.createContext)({}), Zpe = /*#__PURE__*/ nw(function(e, t) {
- [e, t] = bL(e, t, RL);
- let { elementType: n = "span", ...r } = e, i = wL[n];
+}), zL = /*#__PURE__*/ (0, F.createContext)({}), Xpe = /*#__PURE__*/ nw(function(e, t) {
+ [e, t] = xL(e, t, zL);
+ let { elementType: n = "span", ...r } = e, i = TL[n];
return /*#__PURE__*/ F.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), zL = /*#__PURE__*/ (0, F.createContext)(null), BL = /*#__PURE__*/ (0, F.createContext)(null), VL = /*#__PURE__*/ (0, F.createContext)(null), HL = /*#__PURE__*/ (0, F.createContext)(null), Qpe = /*#__PURE__*/ (0, F.createContext)(null), UL = /*#__PURE__*/ (0, F.createContext)(null);
-function $pe(e, t) {
- let { validationBehavior: n } = yL(BL) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useContext)(Qpe), a = ZC((0, F.useMemo)(() => HC(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...SL(e),
+}), BL = /*#__PURE__*/ (0, F.createContext)(null), VL = /*#__PURE__*/ (0, F.createContext)(null), HL = /*#__PURE__*/ (0, F.createContext)(null), UL = /*#__PURE__*/ (0, F.createContext)(null), Zpe = /*#__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)(Zpe), a = ZC((0, F.useMemo)(() => HC(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...CL(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
return [i ? mse(o, i, a) : QT(o, rE(e), a), a];
}
-var eme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+var $pe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = bL(r, t, VL);
- let [i, a] = $pe(e, n);
- return /*#__PURE__*/ F.createElement(UL.Provider, { value: {
+ [e, t] = xL(r, t, HL);
+ let [i, a] = Qpe(e, n);
+ return /*#__PURE__*/ F.createElement(WL.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ F.createElement(tme, {
+ } }, /*#__PURE__*/ F.createElement(eme, {
...e,
ref: t
}));
-}), tme = /*#__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)(UL), { isFocused: p, isFocusVisible: m, focusProps: h } = AD(), g = a || o, { hoverProps: _, isHovered: v } = PD({
+}), eme = /*#__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 } = AD(), g = a || o, { hoverProps: _, isHovered: v } = PD({
...e,
isDisabled: g
- }), y = vL({
+ }), y = yL({
...e,
defaultClassName: u,
values: {
@@ -38324,7 +38324,7 @@ var eme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
isRequired: f || !1
}
}), b = Ww(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(wL.label, {
+ return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(TL.label, {
...q(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -38342,8 +38342,8 @@ var eme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
...q(r, h),
ref: l
})), y.children);
-}), WL = /*#__PURE__*/ (0, F.createContext)({}), GL = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = bL(e, t, WL);
+}), GL = /*#__PURE__*/ (0, F.createContext)({}), KL = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = xL(e, t, GL);
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 } = PD({
@@ -38351,7 +38351,7 @@ var eme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = AD({ within: !0 }), m = vL({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = AD({ within: !0 }), m = yL({
...e,
values: {
isHovered: u,
@@ -38362,7 +38362,7 @@ var eme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ F.createElement(wL.div, {
+ return /*#__PURE__*/ F.createElement(TL.div, {
...q(c, p, l),
...m,
ref: t,
@@ -38375,18 +38375,18 @@ var eme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), KL = /*#__PURE__*/ (0, F.createContext)({}), nme = (e) => {
+}), qL = /*#__PURE__*/ (0, F.createContext)({}), tme = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, rme = /*#__PURE__*/ nw(function(e, t) {
- [e, t] = bL(e, t, KL);
+}, nme = /*#__PURE__*/ nw(function(e, t) {
+ [e, t] = xL(e, t, qL);
let { hoverProps: n, isHovered: r } = PD({
...e,
isDisabled: e.disabled
}), { isFocused: i, isFocusVisible: a, focusProps: o } = AD({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = vL({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = yL({
...e,
values: {
isHovered: r,
@@ -38397,8 +38397,8 @@ var eme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ F.createElement(wL.input, {
- ...q(nme(e), o, n),
+ return /*#__PURE__*/ F.createElement(TL.input, {
+ ...q(tme(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -38407,9 +38407,9 @@ var eme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), ime = 0, ame = 100, ome = 1;
-function sme(e) {
- let { isDisabled: t = !1, minValue: n = ime, maxValue: r = ame, numberFormatter: i, step: a = ome, orientation: o = "horizontal" } = e, s = (0, F.useMemo)(() => {
+}), rme = 0, ime = 100, ame = 1;
+function ome(e) {
+ let { isDisabled: t = !1, minValue: n = rme, maxValue: r = ime, numberFormatter: i, step: a = ame, orientation: o = "horizontal" } = e, s = (0, F.useMemo)(() => {
let e = (r - n) / 10;
return e = oE(e, 0, e + a, a), Math.max(e, a);
}, [
@@ -38420,11 +38420,11 @@ function sme(e) {
n,
r,
a
- ]), l = (0, F.useMemo)(() => c(JL(e.value)), [e.value, c]), u = (0, F.useMemo)(() => c(JL(e.defaultValue) ?? [n]), [
+ ]), l = (0, F.useMemo)(() => c(YL(e.value)), [e.value, c]), u = (0, F.useMemo)(() => c(YL(e.defaultValue) ?? [n]), [
e.defaultValue,
n,
c
- ]), d = YL(e.value, e.defaultValue, e.onChange), f = YL(e.value, e.defaultValue, e.onChangeEnd), [p, m] = nE(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 = XL(e.value, e.defaultValue, e.onChange), f = XL(e.value, e.defaultValue, e.onChangeEnd), [p, m] = nE(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);
@@ -38448,14 +38448,14 @@ function sme(e) {
if (t || !O(e)) return;
let r = E(e), i = D(e);
n = oE(n, r, i, a);
- let o = qL(x.current, e, n);
+ let o = JL(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 = qL(S.current, e, n), w(S.current), f && r && !S.current.some(Boolean) && f(x.current);
+ S.current = JL(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) {
@@ -38513,31 +38513,31 @@ function sme(e) {
isDisabled: t
};
}
-function qL(e, t, n) {
+function JL(e, t, n) {
return e[t] === n ? e : [
...e.slice(0, t),
n,
...e.slice(t + 1)
];
}
-function JL(e) {
+function YL(e) {
if (e != null) return Array.isArray(e) ? e : [e];
}
-function YL(e, t, n) {
+function XL(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 cme = /*#__PURE__*/ (0, F.createContext)(null), XL = /*#__PURE__*/ (0, F.createContext)(null), ZL = /*#__PURE__*/ (0, F.createContext)(null), lme = /*#__PURE__*/ (0, F.createContext)(null), ume = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = bL(e, t, cme);
- let n = (0, F.useRef)(null), r = yse(e.formatOptions), i = sme({
+var sme = /*#__PURE__*/ (0, F.createContext)(null), ZL = /*#__PURE__*/ (0, F.createContext)(null), QL = /*#__PURE__*/ (0, F.createContext)(null), cme = /*#__PURE__*/ (0, F.createContext)(null), lme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = xL(e, t, sme);
+ let n = (0, F.useRef)(null), r = yse(e.formatOptions), i = ome({
...e,
numberFormatter: r
- }), [a, o] = xL(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = bse({
+ }), [a, o] = SL(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = bse({
...e,
label: o
- }, i, n), d = vL({
+ }, i, n), d = yL({
...e,
values: {
orientation: i.orientation,
@@ -38546,31 +38546,31 @@ var cme = /*#__PURE__*/ (0, F.createContext)(null), XL = /*#__PURE__*/ (0, F.cre
},
defaultClassName: "react-aria-Slider"
}), f = Ww(e, { global: !0 });
- return delete f.id, /*#__PURE__*/ F.createElement(_L, { values: [
- [XL, i],
- [ZL, {
+ return delete f.id, /*#__PURE__*/ F.createElement(vL, { values: [
+ [ZL, i],
+ [QL, {
...c,
ref: n
}],
- [lme, u],
- [ML, {
+ [cme, u],
+ [NL, {
...l,
ref: a
}]
- ] }, /*#__PURE__*/ F.createElement(wL.div, {
+ ] }, /*#__PURE__*/ F.createElement(TL.div, {
...q(f, d, s),
ref: t,
slot: e.slot || void 0,
"data-orientation": i.orientation,
"data-disabled": i.isDisabled || void 0
}));
-}), dme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = bL(e, t, ZL);
- let n = (0, F.useContext)(XL), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = PD({
+}), ume = /*#__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 } = PD({
onHoverStart: r,
onHoverEnd: i,
onHoverChange: a
- }), l = vL({
+ }), l = yL({
...e,
defaultClassName: "react-aria-SliderTrack",
values: {
@@ -38580,7 +38580,7 @@ var cme = /*#__PURE__*/ (0, F.createContext)(null), XL = /*#__PURE__*/ (0, F.cre
state: n
}
});
- return /*#__PURE__*/ F.createElement(wL.div, {
+ return /*#__PURE__*/ F.createElement(TL.div, {
...q(o, s),
...l,
ref: t,
@@ -38588,14 +38588,14 @@ var cme = /*#__PURE__*/ (0, F.createContext)(null), XL = /*#__PURE__*/ (0, F.cre
"data-orientation": n.orientation || void 0,
"data-disabled": n.isDisabled || void 0
});
-}), fme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { inputRef: n = null } = e, r = (0, F.useContext)(XL), { ref: i } = yL(ZL), { index: a = 0 } = e, o = (0, F.useRef)(null), s = n || o, [c, l] = xL(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = xse({
+}), dme = /*#__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({
...e,
index: a,
trackRef: i,
inputRef: s,
label: l
- }, r), { focusProps: g, isFocusVisible: _ } = AD(), { hoverProps: v, isHovered: y } = PD(e), b = vL({
+ }, r), { focusProps: g, isFocusVisible: _ } = AD(), { hoverProps: v, isHovered: y } = PD(e), b = yL({
...e,
defaultClassName: "react-aria-SliderThumb",
values: {
@@ -38607,7 +38607,7 @@ var cme = /*#__PURE__*/ (0, F.createContext)(null), XL = /*#__PURE__*/ (0, F.cre
isDisabled: h
}
}), x = Ww(e, { global: !0 });
- return delete x.id, /*#__PURE__*/ F.createElement(wL.div, {
+ return delete x.id, /*#__PURE__*/ F.createElement(TL.div, {
...q(x, u, v),
...b,
ref: t,
@@ -38623,327 +38623,327 @@ var cme = /*#__PURE__*/ (0, F.createContext)(null), XL = /*#__PURE__*/ (0, F.cre
}, /*#__PURE__*/ F.createElement(fE, null, /*#__PURE__*/ F.createElement("input", {
ref: s,
...q(d, g)
- })), /*#__PURE__*/ F.createElement(_L, { values: [[ML, {
+ })), /*#__PURE__*/ F.createElement(vL, { values: [[NL, {
...f,
ref: c
}]] }, b.children));
-}), QL = {};
-QL = {
+}), $L = {};
+$L = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
tableResizer: "أداة تغيير الحجم"
};
// node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var $L = {};
-$L = {
+var eR = {};
+eR = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
tableResizer: "Преоразмерител"
};
// node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var eR = {};
-eR = {
+var tR = {};
+tR = {
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 tR = {};
-tR = {
+var nR = {};
+nR = {
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 nR = {};
-nR = {
+var rR = {};
+rR = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
tableResizer: "Größenanpassung"
};
// node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var rR = {};
-rR = {
+var iR = {};
+iR = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
tableResizer: "Αλλαγή μεγέθους"
};
// node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var iR = {};
-iR = {
+var aR = {};
+aR = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
colorSwatchPicker: "Color swatches"
};
// node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var aR = {};
-aR = {
+var oR = {};
+oR = {
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 oR = {};
-oR = {
+var sR = {};
+sR = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
tableResizer: "Suuruse muutja"
};
// node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var sR = {};
-sR = {
+var cR = {};
+cR = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
tableResizer: "Koon muuttaja"
};
// node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var cR = {};
-cR = {
+var lR = {};
+lR = {
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 lR = {};
-lR = {
+var uR = {};
+uR = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
tableResizer: "שינוי גודל"
};
// node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var uR = {};
-uR = {
+var dR = {};
+dR = {
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 dR = {};
-dR = {
+var fR = {};
+fR = {
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 fR = {};
-fR = {
+var pR = {};
+pR = {
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 pR = {};
-pR = {
+var mR = {};
+mR = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
tableResizer: "サイズ変更ツール"
};
// node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var mR = {};
-mR = {
+var hR = {};
+hR = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
tableResizer: "크기 조정기"
};
// node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var hR = {};
-hR = {
+var gR = {};
+gR = {
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 gR = {};
-gR = {
+var _R = {};
+_R = {
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 _R = {};
-_R = {
+var vR = {};
+vR = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
tableResizer: "Størrelsesendrer"
};
// node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var vR = {};
-vR = {
+var yR = {};
+yR = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
tableResizer: "Resizer"
};
// node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var yR = {};
-yR = {
+var bR = {};
+bR = {
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 bR = {};
-bR = {
+var xR = {};
+xR = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
tableResizer: "Redimensionador"
};
// node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var xR = {};
-xR = {
+var SR = {};
+SR = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
tableResizer: "Redimensionador"
};
// node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var SR = {};
-SR = {
+var CR = {};
+CR = {
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 CR = {};
-CR = {
+var wR = {};
+wR = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
tableResizer: "Средство изменения размера"
};
// node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var wR = {};
-wR = {
+var TR = {};
+TR = {
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 TR = {};
-TR = {
+var ER = {};
+ER = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
tableResizer: "Spreminjanje velikosti"
};
// node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var ER = {};
-ER = {
+var DR = {};
+DR = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
tableResizer: "Promena veličine"
};
// node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var DR = {};
-DR = {
+var OR = {};
+OR = {
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 OR = {};
-OR = {
+var kR = {};
+kR = {
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 kR = {};
-kR = {
+var AR = {};
+AR = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
tableResizer: "Засіб змінення розміру"
};
// node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var AR = {};
-AR = {
+var jR = {};
+jR = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
tableResizer: "尺寸调整器"
};
// node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var jR = {};
-jR = {
+var MR = {};
+MR = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
tableResizer: "大小調整器"
};
// node_modules/react-aria-components/dist/private/intlStrings.mjs
-var MR = {};
-MR = {
- "ar-AE": QL,
- "bg-BG": $L,
- "cs-CZ": eR,
- "da-DK": tR,
- "de-DE": nR,
- "el-GR": rR,
- "en-US": iR,
- "es-ES": aR,
- "et-EE": oR,
- "fi-FI": sR,
- "fr-FR": cR,
- "he-IL": lR,
- "hr-HR": uR,
- "hu-HU": dR,
- "it-IT": fR,
- "ja-JP": pR,
- "ko-KR": mR,
- "lt-LT": hR,
- "lv-LV": gR,
- "nb-NO": _R,
- "nl-NL": vR,
- "pl-PL": yR,
- "pt-BR": bR,
- "pt-PT": xR,
- "ro-RO": SR,
- "ru-RU": CR,
- "sk-SK": wR,
- "sl-SI": TR,
- "sr-SP": ER,
- "sv-SE": DR,
- "tr-TR": OR,
- "uk-UA": kR,
- "zh-CN": AR,
- "zh-TW": jR
+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
};
// node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var NR = /*#__PURE__*/ (0, F.createContext)({}), PR = /*#__PURE__*/ (0, F.createContext)(null), pme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { render: n } = (0, F.useContext)(PR);
+var PR = /*#__PURE__*/ (0, F.createContext)({}), FR = /*#__PURE__*/ (0, F.createContext)(null), fme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { render: n } = (0, F.useContext)(FR);
return /*#__PURE__*/ F.createElement(F.Fragment, null, n(e, t));
});
-function FR(e, t) {
+function IR(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(pme, { target: e });
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ F.createElement(fme, { target: e });
}, [
t?.target,
r,
@@ -38951,7 +38951,7 @@ function FR(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function IR(e, t, n) {
+function LR(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;
@@ -38972,13 +38972,13 @@ function IR(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 LR = /*#__PURE__*/ (0, F.createContext)({}), mme = /*#__PURE__*/ (0, F.createContext)(null);
-function RR(e) {
+var RR = /*#__PURE__*/ (0, F.createContext)({}), pme = /*#__PURE__*/ (0, F.createContext)(null);
+function zR(e) {
let t = (0, F.useRef)({});
- return /*#__PURE__*/ F.createElement(mme.Provider, { value: t }, e.children);
+ return /*#__PURE__*/ F.createElement(pme.Provider, { value: t }, e.children);
}
// node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var zR = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), BR = /*#__PURE__*/ (0, F.createContext)({}), hme = /*#__PURE__*/ uw(class extends mS {
+var BR = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), VR = /*#__PURE__*/ (0, F.createContext)({}), mme = /*#__PURE__*/ uw(class extends mS {
static {
this.type = "separator";
}
@@ -38991,10 +38991,10 @@ var zR = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), BR = /*#__PURE_
return null;
}
}, function(e, t) {
- [e, t] = bL(e, t, BR);
+ [e, t] = xL(e, t, VR);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = wL[c], { separatorProps: u } = Pce({
+ let l = TL[c], { separatorProps: u } = Nce({
...s,
elementType: n,
orientation: r
@@ -39009,12 +39009,12 @@ var zR = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), BR = /*#__PURE_
});
});
// node_modules/react-aria/dist/private/utils/inertValue.mjs
-function VR(e) {
+function HR(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 HR = class {
+var UR = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -39058,19 +39058,19 @@ var HR = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, UR = class e extends Set {
+}, WR = 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 gme(e, t) {
+function hme(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function WR(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] = nE((0, F.useMemo)(() => GR(e.selectedKeys), [e.selectedKeys]), (0, F.useMemo)(() => GR(e.defaultSelectedKeys, new UR()), [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 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] = nE((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);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, F.useRef)(i);
return (0, F.useEffect)(() => {
@@ -39097,17 +39097,17 @@ function WR(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !gme(e, d)) && f(e);
+ (r || !hme(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function GR(e, t) {
- return e ? e === "all" ? "all" : new UR(e) : t;
+function KR(e, t) {
+ return e ? e === "all" ? "all" : new WR(e) : t;
}
// node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var KR = class e {
+var qR = 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;
}
@@ -39190,10 +39190,10 @@ var KR = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new UR([t], t, t);
+ if (this.state.selectedKeys === "all") n = new WR([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new UR(e, r, t);
+ n = new WR(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);
}
@@ -39227,19 +39227,19 @@ var KR = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new UR(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new WR(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 UR([t], t, t) : new UR();
+ let n = this.canSelectItem(t) ? new WR([t], t, t) : new WR();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new UR();
+ let t = new WR();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -39262,7 +39262,7 @@ var KR = 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 UR());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new WR());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -39303,9 +39303,9 @@ var KR = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, _me = class {
+}, gme = class {
build(e, t) {
- return this.context = t, qR(() => this.iterateCollection(e));
+ return this.context = t, JR(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
@@ -39387,10 +39387,10 @@ var KR = class e {
...a,
key: l,
index: s,
- wrapper: vme(e.wrapper, a.wrapper)
+ wrapper: _me(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 <${JR(t.type)}> in <${JR(r?.type ?? "unknown parent type")}>. Only <${JR(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 <${YR(t.type)}> in <${YR(r?.type ?? "unknown parent type")}>. Only <${YR(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -39412,7 +39412,7 @@ var KR = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: qR(function* () {
+ childNodes: JR(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -39431,7 +39431,7 @@ var KR = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function qR(e) {
+function JR(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -39439,17 +39439,17 @@ function qR(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function vme(e, t) {
+function _me(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function JR(e) {
+function YR(e) {
return e[0].toUpperCase() + e.slice(1);
}
// node_modules/react-stately/dist/private/collections/useCollection.mjs
-function YR(e, t, n) {
- let r = (0, F.useMemo)(() => new _me(), []), { children: i, items: a, collection: o } = e;
+function XR(e, t, n) {
+ let r = (0, F.useMemo)(() => new gme(), []), { children: i, items: a, collection: o } = e;
return (0, F.useMemo)(() => o || t(r.build({
children: i,
items: a
@@ -39463,27 +39463,27 @@ function YR(e, t, n) {
]);
}
// node_modules/react-stately/dist/private/list/useListState.mjs
-function XR(e) {
- let { filter: t, layoutDelegate: n } = e, r = WR(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = YR(e, (0, F.useCallback)((e) => t ? new HR(t(e)) : new HR(e), [t]), (0, F.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, F.useMemo)(() => new KR(a, r, { layoutDelegate: n }), [
+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 }), [
a,
r,
n
]);
- return ZR(a, o), {
+ return QR(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function yme(e, t) {
+function vme(e, t) {
let n = (0, F.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return ZR(n, r), {
+ return QR(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function ZR(e, t) {
+function QR(e, t) {
let n = (0, F.useRef)(null);
(0, F.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@ -39510,7 +39510,7 @@ function ZR(e, t) {
}, [e, t]);
}
// node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function QR(e, t) {
+function $R(e, t) {
let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, F.useRef)(null), s = Ow((e) => {
for (let t of e) t.isIntersecting && r && r();
});
@@ -39533,42 +39533,42 @@ function QR(e, t) {
]);
}
// node_modules/react-aria-components/dist/private/ListBox.mjs
-var $R = /*#__PURE__*/ (0, F.createContext)(null), ez = /*#__PURE__*/ (0, F.createContext)(null), bme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = bL(e, t, $R);
- let n = (0, F.useContext)(ez);
- return n ? /*#__PURE__*/ F.createElement(tz, {
+var ez = /*#__PURE__*/ (0, F.createContext)(null), tz = /*#__PURE__*/ (0, F.createContext)(null), yme = /*#__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, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ F.createElement(sw, { content: /*#__PURE__*/ F.createElement(mw, e) }, (n) => /*#__PURE__*/ F.createElement(xme, {
+ }) : /*#__PURE__*/ F.createElement(sw, { content: /*#__PURE__*/ F.createElement(mw, e) }, (n) => /*#__PURE__*/ F.createElement(bme, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function xme({ props: e, listBoxRef: t, collection: n }) {
+function bme({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, F.useContext)(AL), i = XR({
+ let { layoutDelegate: r } = (0, F.useContext)(jL), i = ZR({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ F.createElement(tz, {
+ return /*#__PURE__*/ F.createElement(nz, {
state: i,
props: e,
listBoxRef: t
});
}
-function tz({ state: e, props: t, listBoxRef: n }) {
- [t, n] = bL(t, n, TL);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = yme(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Iw(), { disabledBehavior: p, disabledKeys: m } = l, h = CD({
+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 = vme(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Iw(), { disabledBehavior: p, disabledKeys: m } = l, h = CD({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, F.useContext)(AL), b = (0, F.useMemo)(() => t.keyboardDelegate || new TE({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, F.useContext)(jL), b = (0, F.useMemo)(() => t.keyboardDelegate || new TE({
collection: c,
collator: h,
ref: n,
@@ -39629,7 +39629,7 @@ function tz({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, ee = vL({
+ }, ee = yL({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
@@ -39640,7 +39640,7 @@ function tz({ state: e, props: t, listBoxRef: n }) {
style: { display: "contents" }
}, t.renderEmptyState(M)));
let te = Ww(t, { global: !0 });
- return /*#__PURE__*/ F.createElement(mT, null, /*#__PURE__*/ F.createElement(wL.div, {
+ return /*#__PURE__*/ F.createElement(mT, null, /*#__PURE__*/ F.createElement(TL.div, {
...q(te, ee, x, O, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
@@ -39651,52 +39651,52 @@ function tz({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": A || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ F.createElement(_L, { values: [
- [$R, t],
- [ez, s],
- [NR, {
+ }, /*#__PURE__*/ F.createElement(vL, { values: [
+ [ez, t],
+ [tz, s],
+ [PR, {
dragAndDropHooks: r,
dragState: S,
dropState: C
}],
- [BR, { elementType: "div" }],
- [PR, { render: wme }],
- [DL, {
+ [VR, { elementType: "div" }],
+ [FR, { render: Cme }],
+ [OL, {
name: "ListBoxSection",
- render: Sme
+ render: xme
}]
- ] }, /*#__PURE__*/ F.createElement(RR, null, /*#__PURE__*/ F.createElement(y, {
+ ] }, /*#__PURE__*/ F.createElement(zR, null, /*#__PURE__*/ F.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: IR(l, r, C),
- renderDropIndicator: FR(r, C)
+ persistedKeys: LR(l, r, C),
+ renderDropIndicator: IR(r, C)
}))), N, E));
}
-function Sme(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, F.useContext)(ez), { dragAndDropHooks: a, dropState: o } = (0, F.useContext)(NR), { CollectionBranch: s } = (0, F.useContext)(AL), [c, l] = xL(), { headingProps: u, groupProps: d } = Yse({
+function xme(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({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = vL({
+ }), f = yL({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
}), p = Ww(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ F.createElement(wL.section, {
+ return delete p.id, /*#__PURE__*/ F.createElement(TL.section, {
...q(p, f, d),
ref: t
- }, /*#__PURE__*/ F.createElement(LR.Provider, { value: {
+ }, /*#__PURE__*/ F.createElement(RR.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ F.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: FR(a, o)
+ renderDropIndicator: IR(a, o)
})));
}
-var Cme = /*#__PURE__*/ uw(_S, function(e, t, n) {
- let r = ZC(t), i = (0, F.useContext)(ez), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(NR), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Xse({
+var Sme = /*#__PURE__*/ uw(_S, function(e, t, n) {
+ let r = ZC(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({
key: n.key,
"aria-label": e?.["aria-label"]
}, i, r), { hoverProps: p, isHovered: m } = PD({
@@ -39715,7 +39715,7 @@ var Cme = /*#__PURE__*/ uw(_S, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = vL({
+ let y = o && o.isDragging(n.key), b = yL({
...e,
id: void 0,
children: e.children,
@@ -39733,7 +39733,7 @@ var Cme = /*#__PURE__*/ uw(_S, function(e, t, n) {
(0, F.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? wL.a : wL.div, S = Ww(e, { global: !0 });
+ let x = e.href ? TL.a : TL.div, S = Ww(e, { global: !0 });
return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ F.createElement(x, {
...q(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
@@ -39747,29 +39747,29 @@ var Cme = /*#__PURE__*/ uw(_S, 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(_L, { values: [[RL, { slots: {
- [gL]: u,
+ }, /*#__PURE__*/ F.createElement(vL, { values: [[zL, { slots: {
+ [_L]: u,
label: u,
description: d
- } }], [zR, { isSelected: f.isSelected }]] }, b.children));
+ } }], [BR, { isSelected: f.isSelected }]] }, b.children));
});
-function wme(e, t) {
+function Cme(e, t) {
t = ZC(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(NR), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ F.createElement(Eme, {
+ 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(Tme, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function Tme(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = vL({
+function wme(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = yL({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(wL.div, {
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(TL.div, {
...n,
...a,
role: "option",
@@ -39777,10 +39777,10 @@ function Tme(e, t) {
"data-drop-target": r || void 0
}));
}
-var Eme = /*#__PURE__*/ (0, F.forwardRef)(Tme);
+var Tme = /*#__PURE__*/ (0, F.forwardRef)(wme);
uw(gS, function(e, t, n) {
- let r = (0, F.useContext)(ez), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
- QR((0, F.useMemo)(() => ({
+ let r = (0, F.useContext)(tz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
+ $R((0, F.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -39790,7 +39790,7 @@ uw(gS, function(e, t, n) {
o,
r?.collection
]), c);
- let l = vL({
+ let l = yL({
...s,
id: void 0,
children: n.rendered,
@@ -39803,7 +39803,7 @@ uw(gS, function(e, t, n) {
width: 0,
height: 0
},
- inert: VR(!0)
+ inert: HR(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -39812,7 +39812,7 @@ uw(gS, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(wL.div, {
+ })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(TL.div, {
...q(Ww(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
@@ -39820,9 +39820,9 @@ uw(gS, function(e, t, n) {
}, l.children)));
});
// node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var Dme = /*#__PURE__*/ (0, F.createContext)({ placement: "bottom" });
+var Eme = /*#__PURE__*/ (0, F.createContext)({ placement: "bottom" });
// node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function nz(e) {
+function rz(e) {
let [t, n] = nE(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, F.useState)(null);
return {
isOpen: t,
@@ -39841,15 +39841,15 @@ function nz(e) {
};
}
// node_modules/react-aria/dist/private/utils/animation.mjs
-function rz(e, t = !0, n) {
+function iz(e, t = !0, n) {
let [r, i] = (0, F.useState)(!0), a = r && t;
return BS(() => {
if (!t && e.current) return IC(kS(e.current, "opacity", "0"), kS(e.current, "clip", "rect(0 0 0 0)"), kS(e.current, "clip-path", "inset(50%)"), kS(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
}, [e, t]), BS(() => {
if (a && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, a]), az(e, a, n, (0, F.useCallback)(() => i(!1), [])), a;
+ }, [e, a]), oz(e, a, n, (0, F.useCallback)(() => i(!1), [])), a;
}
-function iz(e, t, n) {
+function az(e, t, n) {
let [r, i] = (0, F.useState)(t ? "open" : "closed");
switch (r) {
case "open":
@@ -39859,11 +39859,11 @@ function iz(e, t, n) {
case "exiting": t && i("open");
}
let a = r === "exiting";
- return az(e, a, n, (0, F.useCallback)(() => {
+ return oz(e, a, n, (0, F.useCallback)(() => {
i((e) => e === "exiting" ? "closed" : e);
}, [])), a;
}
-function az(e, t, n, r) {
+function oz(e, t, n, r) {
let i = (0, F.useRef)(null), a = Ow(n);
BS(() => {
if (t && e.current && i.current !== t) {
@@ -39890,9 +39890,9 @@ function az(e, t, n, r) {
]);
}
// node_modules/react-aria-components/dist/private/Popover.mjs
-var oz = /*#__PURE__*/ (0, F.createContext)(null), sz = /*#__PURE__*/ (0, F.createContext)(null), cz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = bL(e, t, oz);
- let n = (0, F.useContext)(bz), r = nz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = iz(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = rw(), { direction: c } = Iw();
+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 = rw(), { direction: c } = Iw();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -39903,7 +39903,7 @@ var oz = /*#__PURE__*/ (0, F.createContext)(null), sz = /*#__PURE__*/ (0, F.crea
defaultChildren: null
})), /*#__PURE__*/ F.createElement(F.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ F.createElement(Ome, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ F.createElement(Dme, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -39912,13 +39912,13 @@ var oz = /*#__PURE__*/ (0, F.createContext)(null), sz = /*#__PURE__*/ (0, F.crea
dir: c
});
});
-function Ome({ 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)(sz), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, F.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Oce({
+function Dme({ 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 } = Dce({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), g = i.popoverRef, _ = rz(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = vL({
+ }, e), g = i.popoverRef, _ = iz(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = yL({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -39939,7 +39939,7 @@ function Ome({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
]);
let C = (0, F.useMemo)(() => {
let e = y.children;
- for (let t of [oz, ...r ?? []]) e = /*#__PURE__*/ F.createElement(t.Provider, { value: null }, e);
+ for (let t of [sz, ...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");
@@ -39955,7 +39955,7 @@ function Ome({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"--trigger-width": y.style?.["--trigger-width"] || w
};
BS(() => xk(() => u(!0)), []);
- let O = /*#__PURE__*/ F.createElement(wL.div, {
+ let O = /*#__PURE__*/ F.createElement(TL.div, {
...q(Ww(i, { global: !0 }), d),
...y,
id: x ? i.id : void 0,
@@ -39971,7 +39971,7 @@ function Ome({ 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(mk, { onDismiss: e.close }), /*#__PURE__*/ F.createElement(Dme.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ F.createElement(mk, { onDismiss: e.close }), /*#__PURE__*/ F.createElement(Eme.Provider, { value: {
...p,
placement: m,
ref: a
@@ -39996,13 +39996,13 @@ function Ome({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}), /*#__PURE__*/ F.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ F.createElement(sz.Provider, { value: o }, O)));
+ }, /*#__PURE__*/ F.createElement(cz.Provider, { value: o }, O)));
}
// node_modules/react-aria-components/dist/private/Keyboard.mjs
-var kme = /*#__PURE__*/ (0, F.createContext)({});
+var Ome = /*#__PURE__*/ (0, F.createContext)({});
// node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
-function lz(e) {
- let t = nz(e), [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)([]), o = () => {
+function uz(e) {
+ let t = rz(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]);
@@ -40027,7 +40027,7 @@ function lz(e) {
};
}
// node_modules/react-stately/dist/private/tree/TreeCollection.mjs
-var Ame = class {
+var kme = 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) => {
@@ -40070,8 +40070,8 @@ var Ame = class {
}
};
// node_modules/react-stately/dist/private/tree/useTreeState.mjs
-function uz(e) {
- let { onExpandedChange: t } = e, [n, r] = nE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = WR(e), a = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = YR(e, (0, F.useCallback)((e) => new Ame(e, { expandedKeys: n }), [n]), null);
+function dz(e) {
+ let { onExpandedChange: t } = e, [n, r] = nE(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 kme(e, { expandedKeys: n }), [n]), null);
return (0, F.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -40079,31 +40079,31 @@ function uz(e) {
expandedKeys: n,
disabledKeys: a,
toggleKey: (e) => {
- r(jme(n, e));
+ r(Ame(n, e));
},
setExpandedKeys: r,
- selectionManager: new KR(o, i)
+ selectionManager: new qR(o, i)
};
}
-function jme(e, t) {
+function Ame(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 dz = /*#__PURE__*/ (0, F.createContext)(null), fz = /*#__PURE__*/ (0, F.createContext)(null), pz = /*#__PURE__*/ (0, F.createContext)(null), mz = /*#__PURE__*/ (0, F.createContext)(null);
-function Mme(e) {
- let t = lz(e), n = (0, F.useRef)(null), { menuTriggerProps: r, menuProps: i } = lD({
+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 jme(e) {
+ let t = uz(e), n = (0, F.useRef)(null), { menuTriggerProps: r, menuProps: i } = lD({
...e,
type: "menu"
}, t, n), a = (0, F.useRef)(null);
- return rw() ? null : /*#__PURE__*/ F.createElement(_L, { values: [
- [dz, {
+ return rw() ? null : /*#__PURE__*/ F.createElement(vL, { values: [
+ [fz, {
...i,
ref: a
}],
- [bz, t],
- [pz, t],
- [oz, {
+ [xz, t],
+ [mz, t],
+ [sz, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@ -40117,7 +40117,7 @@ function Mme(e) {
isPressed: t.isOpen
}, e.children));
}
-var Nme = /*#__PURE__*/ (0, F.createContext)(null);
+var Mme = /*#__PURE__*/ (0, F.createContext)(null);
(class extends mS {
static {
this.type = "submenutrigger";
@@ -40131,24 +40131,24 @@ var Nme = /*#__PURE__*/ (0, F.createContext)(null);
return null;
}
});
-var Pme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return [e, t] = bL(e, t, dz), /*#__PURE__*/ F.createElement(sw, { content: /*#__PURE__*/ F.createElement(mw, e) }, (n) => /*#__PURE__*/ F.createElement(Fme, {
+var Nme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return [e, t] = xL(e, t, fz), /*#__PURE__*/ F.createElement(sw, { content: /*#__PURE__*/ F.createElement(mw, e) }, (n) => /*#__PURE__*/ F.createElement(Pme, {
props: e,
collection: n,
menuRef: t
}));
});
-function Fme({ props: e, collection: t, menuRef: n }) {
- [e, n] = bL(e, n, TL);
- let { filter: r, ...i } = e, a = (0, F.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = uz({
+function Pme({ 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({
...e,
collection: a,
children: void 0
- }), s = (0, F.useContext)(pz), { isVirtualized: c, CollectionRoot: l } = (0, F.useContext)(AL), { menuProps: u } = Zse({
+ }), s = (0, F.useContext)(mz), { isVirtualized: c, CollectionRoot: l } = (0, F.useContext)(jL), { menuProps: u } = Zse({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
- }, o, n), d = vL({
+ }, o, n), d = yL({
...e,
children: void 0,
defaultClassName: "react-aria-Menu",
@@ -40159,35 +40159,35 @@ function Fme({ props: e, collection: t, menuRef: n }) {
style: { display: "contents" }
}, e.renderEmptyState()));
let p = Ww(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(mT, null, /*#__PURE__*/ F.createElement(wL.div, {
+ return /*#__PURE__*/ F.createElement(mT, null, /*#__PURE__*/ F.createElement(TL.div, {
...q(p, d, u),
ref: n,
slot: e.slot || void 0,
"data-empty": o.collection.size === 0 || void 0,
onScroll: e.onScroll
- }, /*#__PURE__*/ F.createElement(_L, { values: [
- [fz, o],
- [BR, { elementType: "div" }],
- [DL, {
+ }, /*#__PURE__*/ F.createElement(vL, { values: [
+ [pz, o],
+ [VR, { elementType: "div" }],
+ [OL, {
name: "MenuSection",
- render: hz
+ render: gz
}],
- [Nme, {
+ [Mme, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [_z, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
- [TL, null],
+ [vz, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
[EL, null],
- [mz, o.selectionManager],
- [pz, s ?? lz({})]
- ] }, /*#__PURE__*/ F.createElement(RR, null, /*#__PURE__*/ F.createElement(l, {
+ [DL, null],
+ [hz, o.selectionManager],
+ [mz, s ?? uz({})]
+ ] }, /*#__PURE__*/ F.createElement(zR, null, /*#__PURE__*/ F.createElement(l, {
collection: o.collection,
- persistedKeys: jL(o.selectionManager.focusedKey),
+ persistedKeys: ML(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
-var Ime = class extends KR {
+var Fme = class extends qR {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -40207,11 +40207,11 @@ var Ime = class extends KR {
return this.parent.childFocusStrategy;
}
};
-function hz(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, F.useContext)(fz), { CollectionBranch: a } = (0, F.useContext)(AL), [o, s] = xL(), { headingProps: c, groupProps: l } = $se({
+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({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
- }), u = vL({
+ }), u = yL({
...e,
id: void 0,
children: void 0,
@@ -40219,31 +40219,31 @@ function hz(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, F.useContext)(mz), f = WR(e), p = e.selectionMode == null ? d : new Ime(d, f), m = yL(_z)?.shouldCloseOnSelect, h = Ww(e, { global: !0 });
- return delete h.id, /*#__PURE__*/ F.createElement(wL.section, {
+ }), d = (0, F.useContext)(hz), f = GR(e), p = e.selectionMode == null ? d : new Fme(d, f), m = bL(vz)?.shouldCloseOnSelect, h = Ww(e, { global: !0 });
+ return delete h.id, /*#__PURE__*/ F.createElement(TL.section, {
...q(h, u, l),
ref: t
- }, /*#__PURE__*/ F.createElement(_L, { values: [
- [LR, {
+ }, /*#__PURE__*/ F.createElement(vL, { values: [
+ [RR, {
...c,
ref: o
}],
- [mz, p],
- [_z, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ [hz, p],
+ [vz, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
] }, /*#__PURE__*/ F.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var gz = /*#__PURE__*/ dw(dae, hz), _z = /*#__PURE__*/ (0, F.createContext)(null), vz = /*#__PURE__*/ uw(_S, function(e, t, n) {
- [e, t] = bL(e, t, _z);
- let r = yL(_z)?.id, i = (0, F.useContext)(fz), a = ZC(t), o = (0, F.useContext)(mz), { isVirtualized: s } = (0, F.useContext)(AL), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Qse({
+var _z = /*#__PURE__*/ dw(dae, gz), vz = /*#__PURE__*/ (0, F.createContext)(null), yz = /*#__PURE__*/ uw(_S, function(e, t, n) {
+ [e, t] = xL(e, t, vz);
+ let r = bL(vz)?.id, i = (0, F.useContext)(pz), a = ZC(t), o = (0, F.useContext)(hz), { isVirtualized: s } = (0, F.useContext)(jL), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Qse({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = PD({ isDisabled: f.isDisabled }), h = vL({
+ }, i, a), { hoverProps: p, isHovered: m } = PD({ isDisabled: f.isDisabled }), h = yL({
...e,
id: void 0,
children: n.rendered,
@@ -40257,7 +40257,7 @@ var gz = /*#__PURE__*/ dw(dae, hz), _z = /*#__PURE__*/ (0, F.createContext)(null
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? wL.a : wL.div, _ = Ww(e, { global: !0 });
+ }), g = e.href ? TL.a : TL.div, _ = Ww(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(g, {
...q(_, h, c, p),
ref: a,
@@ -40270,19 +40270,19 @@ var gz = /*#__PURE__*/ dw(dae, hz), _z = /*#__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(_L, { values: [
- [RL, { slots: {
- [gL]: l,
+ }, /*#__PURE__*/ F.createElement(vL, { values: [
+ [zL, { slots: {
+ [_L]: l,
label: l,
description: u
} }],
- [kme, d],
- [zR, { isSelected: f.isSelected }]
+ [Ome, d],
+ [BR, { isSelected: f.isSelected }]
] }, h.children));
});
uw(gS, function(e, t, n) {
- let r = (0, F.useContext)(fz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
- QR((0, F.useMemo)(() => ({
+ let r = (0, F.useContext)(pz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
+ $R((0, F.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -40292,7 +40292,7 @@ uw(gS, function(e, t, n) {
o,
r?.collection
]), c);
- let l = vL({
+ let l = yL({
...s,
id: void 0,
children: n.rendered,
@@ -40305,7 +40305,7 @@ uw(gS, function(e, t, n) {
width: 0,
height: 0
},
- inert: VR(!0)
+ inert: HR(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -40314,7 +40314,7 @@ uw(gS, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(wL.div, {
+ })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(TL.div, {
...q(Ww(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
@@ -40322,81 +40322,81 @@ uw(gS, function(e, t, n) {
}, l.children)));
});
// node_modules/react-aria-components/dist/private/Dialog.mjs
-var yz = /*#__PURE__*/ (0, F.createContext)(null), bz = /*#__PURE__*/ (0, F.createContext)(null), xz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+var bz = /*#__PURE__*/ (0, F.createContext)(null), xz = /*#__PURE__*/ (0, F.createContext)(null), Sz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = bL(e, t, yz);
+ [e, t] = xL(e, t, bz);
let { dialogProps: r, titleProps: i, contentProps: a } = Fse({
...e,
"aria-labelledby": n
- }, t), o = (0, F.useContext)(bz);
+ }, t), o = (0, F.useContext)(xz);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = vL({
+ let s = yL({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
}), c = Ww(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(wL.section, {
+ return /*#__PURE__*/ F.createElement(TL.section, {
...q(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ F.createElement(_L, { values: [
- [IL, { slots: {
- [gL]: {},
+ }, /*#__PURE__*/ F.createElement(vL, { values: [
+ [LL, { slots: {
+ [_L]: {},
title: {
...i,
level: 2
}
} }],
- [RL, { slots: {
- [gL]: {},
+ [zL, { slots: {
+ [_L]: {},
description: a
} }],
- [PL, { slots: {
- [gL]: {},
+ [FL, { slots: {
+ [_L]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), Sz = typeof document < "u" && window.visualViewport;
-function Lme() {
+}), Cz = typeof document < "u" && window.visualViewport;
+function Ime() {
let e = cC(), t = (0, F.useRef)(null), [n, r] = (0, F.useState)(() => e ? {
width: 0,
height: 0
- } : Cz());
+ } : wz());
return (0, F.useEffect)(() => {
let e = (e) => {
r((t) => e.width === t.width && e.height === t.height ? t : e);
}, n = () => {
- Sz && Sz.scale > 1 || e(Cz());
+ Cz && Cz.scale > 1 || e(wz());
}, i = (n) => {
- Sz && Sz.scale > 1 || Tw(K(n)) && (t.current = xk((t) => {
+ Cz && Cz.scale > 1 || Tw(K(n)) && (t.current = xk((t) => {
t || e({
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight
});
}));
};
- return e(Cz()), XS() && ZS() && window.addEventListener("blur", i, !0), Sz ? Sz.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
- t.current?.(), XS() && ZS() && window.removeEventListener("blur", i, !0), Sz ? Sz.removeEventListener("resize", n) : window.removeEventListener("resize", n);
+ return e(wz()), XS() && ZS() && window.addEventListener("blur", i, !0), Cz ? Cz.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
+ t.current?.(), XS() && ZS() && window.removeEventListener("blur", i, !0), Cz ? Cz.removeEventListener("resize", n) : window.removeEventListener("resize", n);
};
}, []), n;
}
-function Cz() {
+function wz() {
return {
- width: Sz ? Math.min(Sz.width * Sz.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: Sz ? Sz.height * Sz.scale : document.documentElement.clientHeight
+ width: Cz ? Math.min(Cz.width * Cz.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: Cz ? Cz.height * Cz.scale : document.documentElement.clientHeight
};
}
// node_modules/react-aria-components/dist/private/Modal.mjs
-var Rme = /*#__PURE__*/ (0, F.createContext)(null), wz = /*#__PURE__*/ (0, F.createContext)(null), zme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- if ((0, F.useContext)(wz)) return /*#__PURE__*/ F.createElement(Ez, {
+var Lme = /*#__PURE__*/ (0, F.createContext)(null), Tz = /*#__PURE__*/ (0, F.createContext)(null), Rme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ if ((0, F.useContext)(Tz)) return /*#__PURE__*/ F.createElement(Dz, {
...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(Tz, {
+ return /*#__PURE__*/ F.createElement(Ez, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -40406,15 +40406,15 @@ var Rme = /*#__PURE__*/ (0, F.createContext)(null), wz = /*#__PURE__*/ (0, F.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ F.createElement(Ez, {
+ }, /*#__PURE__*/ F.createElement(Dz, {
...f,
modalRef: t
}, s));
});
-function Bme(e, t) {
- [e, t] = bL(e, t, Rme);
- let n = (0, F.useContext)(bz), r = nz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = ZC(t), o = (0, F.useRef)(null), s = iz(a, i.isOpen, e.onExit), c = (0, F.useRef)(null), l = iz(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = cC();
- return !i.isOpen && !u || d ? null : /*#__PURE__*/ F.createElement(Vme, {
+function zme(e, t) {
+ [e, t] = xL(e, t, Lme);
+ let n = (0, F.useContext)(xz), r = rz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = ZC(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 = cC();
+ return !i.isOpen && !u || d ? null : /*#__PURE__*/ F.createElement(Bme, {
...e,
state: i,
isExiting: u,
@@ -40423,12 +40423,12 @@ function Bme(e, t) {
onExitRef: c
});
}
-var Tz = /*#__PURE__*/ (0, F.forwardRef)(Bme);
-function Vme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
- let r = n.modalRef, { state: i } = n, [a, o] = (0, F.useState)(!1), s = rz(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = uce({
+var Ez = /*#__PURE__*/ (0, F.forwardRef)(zme);
+function Bme({ 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({
...n,
isEntering: c
- }, i, r), d = (0, F.useContext)(yz), f = t ? Hme(d, { isEntering: c }) : d, p = vL({
+ }, i, r), d = (0, F.useContext)(bz), f = t ? Vme(d, { isEntering: c }) : d, p = yL({
...n,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -40436,7 +40436,7 @@ function Vme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isExiting: n.isExiting,
state: i
}
- }), m = Lme(), h, g;
+ }), m = Ime(), h, g;
if (typeof document < "u") {
let e = NT(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;
@@ -40451,15 +40451,15 @@ function Vme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
return BS(() => xk(() => o(!0)), []), /*#__PURE__*/ F.createElement(OD, {
isExiting: n.isExiting,
portalContainer: e
- }, /*#__PURE__*/ F.createElement(wL.div, {
+ }, /*#__PURE__*/ F.createElement(TL.div, {
...q(Ww(n, { global: !0 }), u),
...p,
style: _,
ref: n.overlayRef,
"data-entering": s || void 0,
"data-exiting": n.isExiting || void 0
- }, /*#__PURE__*/ F.createElement(_L, { values: [
- [wz, {
+ }, /*#__PURE__*/ F.createElement(vL, { values: [
+ [Tz, {
modalProps: l,
modalRef: r,
isExiting: n.isExiting,
@@ -40467,11 +40467,11 @@ function Vme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isOpen: a,
isDismissable: n.isDismissable
}],
- [bz, i],
- [yz, f]
+ [xz, i],
+ [bz, f]
] }, p.children)));
}
-function Hme(e, t) {
+function Vme(e, t) {
if (e && "slots" in e && e.slots) {
let n = {};
for (let r in e.slots) n[r] = {
@@ -40488,8 +40488,8 @@ function Hme(e, t) {
...t
};
}
-function Ez(e) {
- let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, F.useContext)(wz), s = (0, F.useContext)(bz), c = ZC((0, F.useMemo)(() => HC(e.modalRef, n), [e.modalRef, n])), l = rz(c, o, e.onEnter), u = vL({
+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 = ZC((0, F.useMemo)(() => HC(e.modalRef, n), [e.modalRef, n])), l = iz(c, o, e.onEnter), u = yL({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -40500,7 +40500,7 @@ function Ez(e) {
});
return BS(() => {
i && (i.current = e.onExit);
- }), /*#__PURE__*/ F.createElement(wL.div, {
+ }), /*#__PURE__*/ F.createElement(TL.div, {
...q(Ww(e, { global: !0 }), t),
...u,
ref: c,
@@ -40509,9 +40509,9 @@ function Ez(e) {
}, a && /*#__PURE__*/ F.createElement(mk, { onDismiss: s.close }), u.children);
}
// node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var Ume = Math.round(Math.random() * 1e10), Wme = 0;
-function Gme(e) {
- let t = (0, F.useMemo)(() => e.name || `radio-group-${Ume}-${++Wme}`, [e.name]), [n, r] = nE(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, F.useState)(n), [a, o] = (0, F.useState)(null), s = qT({
+var Hme = Math.round(Math.random() * 1e10), Ume = 0;
+function Wme(e) {
+ let t = (0, F.useMemo)(() => e.name || `radio-group-${Hme}-${++Ume}`, [e.name]), [n, r] = nE(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, F.useState)(n), [a, o] = (0, F.useState)(null), s = qT({
...e,
value: n
}), c = (t) => {
@@ -40533,16 +40533,16 @@ function Gme(e) {
};
}
// node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var Kme = /*#__PURE__*/ (0, F.createContext)(null), qme = /*#__PURE__*/ (0, F.createContext)(null), Dz = /*#__PURE__*/ (0, F.createContext)(null), Oz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = bL(e, t, Kme);
- let { validationBehavior: n } = yL(BL) || {}, r = e.validationBehavior ?? n ?? "native", i = Gme({
+var Gme = /*#__PURE__*/ (0, F.createContext)(null), Kme = /*#__PURE__*/ (0, F.createContext)(null), Oz = /*#__PURE__*/ (0, F.createContext)(null), kz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = xL(e, t, Gme);
+ let { validationBehavior: n } = bL(VL) || {}, r = e.validationBehavior ?? n ?? "native", i = Wme({
...e,
validationBehavior: r
- }), [a, o] = xL(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Ace({
+ }), [a, o] = SL(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = kce({
...e,
label: o,
validationBehavior: r
- }, i), f = vL({
+ }, i), f = yL({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -40554,7 +40554,7 @@ var Kme = /*#__PURE__*/ (0, F.createContext)(null), qme = /*#__PURE__*/ (0, F.cr
},
defaultClassName: "react-aria-RadioGroup"
}), p = Ww(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(wL.div, {
+ return /*#__PURE__*/ F.createElement(TL.div, {
...q(p, f, s),
ref: t,
slot: e.slot || void 0,
@@ -40563,39 +40563,39 @@ var Kme = /*#__PURE__*/ (0, F.createContext)(null), qme = /*#__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(_L, { values: [
- [Dz, i],
- [ML, {
+ }, /*#__PURE__*/ F.createElement(vL, { values: [
+ [Oz, i],
+ [NL, {
...c,
ref: a,
elementType: "span"
}],
- [RL, { slots: {
+ [zL, { slots: {
description: l,
errorMessage: u
} }],
- [zL, d]
- ] }, /*#__PURE__*/ F.createElement(RR, null, f.children)));
-}), kz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [BL, d]
+ ] }, /*#__PURE__*/ F.createElement(zR, null, f.children)));
+}), Az = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = bL(r, t, qme);
- let i = F.useContext(Dz), a = ZC((0, F.useMemo)(() => HC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = kce({
- ...SL(e),
+ [e, t] = xL(r, t, Kme);
+ let i = F.useContext(Oz), a = ZC((0, F.useMemo)(() => HC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Oce({
+ ...CL(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ F.createElement(Az.Provider, { value: {
+ return /*#__PURE__*/ F.createElement(jz.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ F.createElement(Jme, {
+ } }, /*#__PURE__*/ F.createElement(qme, {
...e,
ref: t
}));
-}), Az = /*#__PURE__*/ (0, F.createContext)(null), Jme = /*#__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)(Az), l = F.useContext(Dz), { isFocused: u, isFocusVisible: d, focusProps: f } = AD(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = PD({
+}), jz = /*#__PURE__*/ (0, F.createContext)(null), qme = /*#__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 } = AD(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = PD({
...e,
isDisabled: p
- }), g = vL({
+ }), g = yL({
...e,
defaultClassName: s,
values: {
@@ -40610,7 +40610,7 @@ var Kme = /*#__PURE__*/ (0, F.createContext)(null), qme = /*#__PURE__*/ (0, F.cr
isRequired: l.isRequired
}
}), _ = Ww(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(wL.label, {
+ return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(TL.label, {
...q(_, n, m, g),
ref: t,
"data-selected": i || void 0,
@@ -40628,8 +40628,8 @@ var Kme = /*#__PURE__*/ (0, F.createContext)(null), qme = /*#__PURE__*/ (0, F.cr
})), g.children);
});
// node_modules/react-stately/dist/private/select/useSelectState.mjs
-function Yme(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = nz(e), [i, a] = (0, F.useState)(null), o = (0, F.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function Jme(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, [
e.defaultValue,
e.defaultSelectedKey,
t
@@ -40645,12 +40645,12 @@ function Yme(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = XR({
+ }, d = ZR({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, F.useMemo)(() => Xme(l), [l]),
+ selectedKeys: (0, F.useMemo)(() => Yme(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -40687,15 +40687,15 @@ function Yme(e) {
setFocused: g
};
}
-function Xme(e) {
+function Yme(e) {
if (e !== void 0) return e === null ? [] : Array.isArray(e) ? e : [e];
}
// node_modules/react-aria-components/dist/private/Select.mjs
-function Zme(e) {
+function Xme(e) {
return e && e.__esModule ? e.default : e;
}
-var jz = /*#__PURE__*/ (0, F.createContext)(null), Mz = /*#__PURE__*/ (0, F.createContext)(null), Qme = /*#__PURE__*/ nw(function(e, t) {
- [e, t] = bL(e, t, jz);
+var Mz = /*#__PURE__*/ (0, F.createContext)(null), Nz = /*#__PURE__*/ (0, F.createContext)(null), Zme = /*#__PURE__*/ nw(function(e, t) {
+ [e, t] = xL(e, t, Mz);
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,
@@ -40710,24 +40710,24 @@ var jz = /*#__PURE__*/ (0, F.createContext)(null), Mz = /*#__PURE__*/ (0, F.crea
i,
a
]);
- return /*#__PURE__*/ F.createElement(sw, { content: o }, (n) => /*#__PURE__*/ F.createElement(ehe, {
+ return /*#__PURE__*/ F.createElement(sw, { content: o }, (n) => /*#__PURE__*/ F.createElement($me, {
props: e,
collection: n,
selectRef: t
}));
-}), $me = [
- ML,
- PL,
- RL
+}), Qme = [
+ NL,
+ FL,
+ zL
];
-function ehe({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = yL(BL) || {}, i = e.validationBehavior ?? r ?? "native", a = Yme({
+function $me({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = bL(VL) || {}, i = e.validationBehavior ?? r ?? "native", a = Jme({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = AD({ within: !0 }), c = (0, F.useRef)(null), [l, u] = xL(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = jce({
- ...SL(e),
+ }), { isFocusVisible: o, focusProps: s } = AD({ 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 } = Ace({
+ ...CL(e),
label: u,
validationBehavior: i
}, a, c), y = (0, F.useMemo)(() => ({
@@ -40744,48 +40744,48 @@ function ehe({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = vL({
+ ]), b = yL({
...e,
values: y,
defaultClassName: "react-aria-Select"
}), x = Ww(e, { global: !0 });
delete x.id;
let S = (0, F.useRef)(null);
- return /*#__PURE__*/ F.createElement(_L, { values: [
- [jz, e],
- [Mz, a],
- [Nz, p],
- [ML, {
+ return /*#__PURE__*/ F.createElement(vL, { values: [
+ [Mz, e],
+ [Nz, a],
+ [Pz, p],
+ [NL, {
...d,
ref: l,
elementType: "span"
}],
- [PL, {
+ [FL, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [bz, a],
- [oz, {
+ [xz, a],
+ [sz, {
trigger: "Select",
triggerRef: c,
scrollRef: S,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: $me
+ clearContexts: Qme
}],
- [$R, {
+ [ez, {
...m,
ref: S
}],
- [ez, a],
- [RL, { slots: {
+ [tz, a],
+ [zL, { slots: {
description: h,
errorMessage: g
} }],
- [zL, v]
- ] }, /*#__PURE__*/ F.createElement(wL.div, {
+ [BL, v]
+ ] }, /*#__PURE__*/ F.createElement(TL.div, {
...q(x, b, s),
ref: t,
slot: e.slot || void 0,
@@ -40795,14 +40795,14 @@ function ehe({ 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(Nce, {
+ }, b.children, /*#__PURE__*/ F.createElement(Mce, {
..._,
autoComplete: e.autoComplete
})));
}
-for (var Nz = /*#__PURE__*/ (0, F.createContext)(null), the = /*#__PURE__*/ nw(function(e, t) {
- [e, t] = bL(e, t, Nz);
- let n = (0, F.useContext)(Mz), { placeholder: r } = yL(jz), i = n.selectedItems.map((e) => {
+for (var Pz = /*#__PURE__*/ (0, F.createContext)(null), ehe = /*#__PURE__*/ nw(function(e, t) {
+ [e, t] = xL(e, t, Pz);
+ let n = (0, F.useContext)(Nz), { placeholder: r } = bL(Mz), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -40829,7 +40829,7 @@ for (var Nz = /*#__PURE__*/ (0, F.createContext)(null), the = /*#__PURE__*/ nw(f
a,
o,
i
- ]), u = Hw(Zme(MR), "react-aria-components"), d = vL({
+ ]), u = Hw(Xme(NR), "react-aria-components"), d = yL({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -40841,32 +40841,32 @@ for (var Nz = /*#__PURE__*/ (0, F.createContext)(null), the = /*#__PURE__*/ nw(f
state: n
}
}), f = Ww(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(wL.span, {
+ return /*#__PURE__*/ F.createElement(TL.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ F.createElement(RL.Provider, { value: void 0 }, d.children));
-}), nhe = /*#__PURE__*/ (0, F.createContext)(null), Pz = /*#__PURE__*/ (0, F.createContext)(null), rhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ F.createElement(zL.Provider, { value: void 0 }, d.children));
+}), the = /*#__PURE__*/ (0, F.createContext)(null), Fz = /*#__PURE__*/ (0, F.createContext)(null), nhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = bL(r, t, nhe);
- let i = ZC((0, F.useMemo)(() => HC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = rE(e), o = Fce({
- ...SL(e),
+ [e, t] = xL(r, t, the);
+ let i = ZC((0, F.useMemo)(() => HC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = rE(e), o = Pce({
+ ...CL(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ F.createElement(_L, { values: [[Pz, a], [Fz, {
+ return /*#__PURE__*/ F.createElement(vL, { values: [[Fz, a], [Iz, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ F.createElement(ihe, {
+ }]] }, /*#__PURE__*/ F.createElement(rhe, {
...e,
ref: t
}));
-}), Fz = /*#__PURE__*/ (0, F.createContext)(null), ihe = /*#__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)(Fz), { isFocused: f, isFocusVisible: p, focusProps: m } = AD(), h = a || o, g = (0, F.useContext)(Pz), { hoverProps: _, isHovered: v } = PD({
+}), Iz = /*#__PURE__*/ (0, F.createContext)(null), rhe = /*#__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 } = AD(), h = a || o, g = (0, F.useContext)(Fz), { hoverProps: _, isHovered: v } = PD({
...e,
isDisabled: h
- }), y = vL({
+ }), y = yL({
...e,
defaultClassName: u,
values: {
@@ -40882,7 +40882,7 @@ for (var Nz = /*#__PURE__*/ (0, F.createContext)(null), the = /*#__PURE__*/ nw(f
state: g
}
}), b = Ww(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(wL.label, {
+ return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(TL.label, {
...q(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -40899,7 +40899,7 @@ for (var Nz = /*#__PURE__*/ (0, F.createContext)(null), the = /*#__PURE__*/ nw(f
...q(r, m),
ref: l
})), y.children);
-}), Iz = 10, Lz = 5, Rz = class {
+}), Lz = 10, Rz = 5, zz = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -40909,7 +40909,7 @@ for (var Nz = /*#__PURE__*/ (0, F.createContext)(null), the = /*#__PURE__*/ nw(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) > Lz && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > Iz && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ 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") {
let t = this.state.collection.getKeyBefore(e.key);
for (; t != null;) {
let e = this.state.collection.getItem(t);
@@ -40988,11 +40988,11 @@ for (var Nz = /*#__PURE__*/ (0, F.createContext)(null), the = /*#__PURE__*/ nw(f
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > Lz && i) {
+ if (Math.abs(r - c.lastSwitchY) > Rz && 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 > Iz && a) {
+ if (l > Lz && 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;
}
@@ -41007,7 +41007,7 @@ for (var Nz = /*#__PURE__*/ (0, F.createContext)(null), the = /*#__PURE__*/ nw(f
boundaryContext: null
};
}
-}, ahe = class {
+}, ihe = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -41077,8 +41077,8 @@ for (var Nz = /*#__PURE__*/ (0, F.createContext)(null), the = /*#__PURE__*/ nw(f
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, zz = "row-header-column-" + Math.random().toString(36).slice(2), Bz = "row-header-column-" + Math.random().toString(36).slice(2); zz === Bz;) Bz = "row-header-column-" + Math.random().toString(36).slice(2);
-function Vz(e, t) {
+}, 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) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -41162,13 +41162,13 @@ function Vz(e, t) {
textValue: ""
}));
}
-var ohe = class extends ahe {
+var ahe = class extends ihe {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: zz,
+ key: Bz,
value: null,
textValue: "",
level: 0,
@@ -41183,7 +41183,7 @@ var ohe = class extends ahe {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: Bz,
+ key: Vz,
value: null,
textValue: "",
level: 0,
@@ -41210,7 +41210,7 @@ var ohe = class extends ahe {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = Vz(s, a);
+ let l = Hz(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -41270,15 +41270,15 @@ var ohe = class extends ahe {
}
};
// node_modules/react-stately/dist/private/table/TableUtils.mjs
-function she(e) {
+function ohe(e) {
return e != null && (!isNaN(e) || String(e).match(/^(\d+)(?=%$)/) !== null);
}
-function che(e) {
+function she(e) {
if (!e || typeof e == "number") return 1;
let t = e.match(/^(.+)(?=fr$)/);
return t ? parseFloat(t[0]) : 1;
}
-function Hz(e, t) {
+function Uz(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");
@@ -41286,19 +41286,19 @@ function Hz(e, t) {
}
return e;
}
-function Uz(e, t) {
- return e == null ? 2 ** 53 - 1 : Hz(e, t);
-}
function Wz(e, t) {
- return e == null ? 0 : Hz(e, t);
+ return e == null ? 2 ** 53 - 1 : Uz(e, t);
+}
+function Gz(e, t) {
+ return e == null ? 0 : Uz(e, t);
}
-function lhe(e, t, n, r, i) {
+function che(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;
- she(o) ? (l = Hz(o, e), s = !0) : (u = che(o), u <= 0 && (s = !0));
- let f = Wz(t.minWidth ?? i?.(a) ?? 0, e), p = Uz(t.maxWidth, e), m = Math.max(f, Math.min(l, p));
+ ohe(o) ? (l = Uz(o, e), s = !0) : (u = she(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));
return s ? d = m : l > m && (s = !0, d = m), s || (c = !0), {
frozen: s,
baseSize: l,
@@ -41332,14 +41332,14 @@ function lhe(e, t, n, r, i) {
i === 0 || Math.sign(i) === Math.sign(e.violation) ? e.frozen = !0 : e.frozen || (c = !0);
});
}
- let u = uhe(l);
+ let u = lhe(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 uhe(e) {
+function lhe(e) {
let t = 0, n = 0, r = [];
return e.forEach(function(e) {
let i = e.targetMainSize, a = Math.round(i + t) - n;
@@ -41347,7 +41347,7 @@ function uhe(e) {
}), r;
}
// node_modules/react-stately/dist/private/table/TableColumnLayout.mjs
-var dhe = class {
+var uhe = 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);
}
@@ -41376,18 +41376,18 @@ var dhe = class {
}), o;
}
buildColumnWidths(e, t, n) {
- return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), lhe(e, t.columns.map((e) => ({
+ return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), che(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, Wz(a.props.minWidth ?? this.getDefaultMinWidth(a), e)), this.columnMaxWidths.set(i, Uz(a.props.maxWidth, e));
+ 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;
}
};
// node_modules/react-stately/dist/private/table/useTableColumnResizeState.mjs
-function fhe(e, t) {
- let { getDefaultWidth: n, getDefaultMinWidth: r, tableWidth: i = 0 } = e, [a, o] = (0, F.useState)(null), s = (0, F.useMemo)(() => new dhe({
+function dhe(e, t) {
+ let { getDefaultWidth: n, getDefaultMinWidth: r, tableWidth: i = 0 } = e, [a, o] = (0, F.useState)(null), s = (0, F.useMemo)(() => new uhe({
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);
@@ -41438,8 +41438,8 @@ function fhe(e, t) {
]);
}
// node_modules/react-stately/dist/private/grid/useGridState.mjs
-function phe(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || WR(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+function fhe(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;
r.setFocusedKey = (e, r) => {
if (n === "cell" && e != null) {
let n = t.getItem(e);
@@ -41450,7 +41450,7 @@ function phe(e) {
}
a(e, r);
};
- let o = (0, F.useMemo)(() => new KR(t, r), [t, r]), s = (0, F.useRef)(null);
+ let o = (0, F.useMemo)(() => new qR(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;
@@ -41488,11 +41488,11 @@ function phe(e) {
};
}
// node_modules/react-stately/dist/private/table/useTableState.mjs
-var mhe = {
+var phe = {
ascending: "descending",
descending: "ascending"
};
-function hhe(e) {
+function mhe(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,
@@ -41503,7 +41503,7 @@ function hhe(e) {
i,
r,
a
- ]), c = YR(e, (0, F.useCallback)((e) => new ohe(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = phe({
+ ]), c = XR(e, (0, F.useCallback)((e) => new ahe(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = fhe({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
@@ -41519,7 +41519,7 @@ function hhe(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? mhe[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? phe[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -41532,7 +41532,7 @@ function hhe(e) {
treeColumn: o
};
}
-function ghe(e, t) {
+function hhe(e, t) {
let n = (0, F.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
@@ -41541,10 +41541,10 @@ function ghe(e, t) {
};
}
// node_modules/react-aria-components/dist/private/Table.mjs
-function _he(e) {
+function ghe(e) {
return e && e.__esModule ? e.default : e;
}
-var vhe = class extends vS {
+var _he = class extends vS {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -41559,7 +41559,7 @@ var vhe = class extends vS {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new $z(-2);
+ return new eB(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -41585,7 +41585,7 @@ var vhe = class extends vS {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = Vz(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 = 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");
}
get columnCount() {
return this.columns.length;
@@ -41666,9 +41666,9 @@ var vhe = class extends vS {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new Yz(-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 Xz(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, Gz = /*#__PURE__*/ (0, F.createContext)(null), yhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+}, Kz = /*#__PURE__*/ (0, F.createContext)(null), vhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let n = ZC(t), r = (0, F.useRef)(null), i = (0, F.useRef)(null), [a, o] = (0, F.useState)(0);
BS(() => {
let e = r.current;
@@ -41687,7 +41687,7 @@ var vhe = class extends vS {
tableRef: r,
scrollRef: i,
tableWidth: a,
- useTableColumnResizeState: fhe,
+ useTableColumnResizeState: dhe,
onResizeStart: e.onResizeStart,
onResize: e.onResize,
onResizeEnd: e.onResizeEnd
@@ -41698,17 +41698,17 @@ var vhe = class extends vS {
e.onResize,
e.onResizeEnd
]);
- return /*#__PURE__*/ F.createElement(wL.div, {
+ return /*#__PURE__*/ F.createElement(TL.div, {
render: e.render,
...Ww(e, { global: !0 }),
ref: n,
className: e.className || "react-aria-ResizableTableContainer",
style: e.style,
onScroll: e.onScroll
- }, /*#__PURE__*/ F.createElement(Gz.Provider, { value: s }, e.children));
-}), bhe = /*#__PURE__*/ (0, F.createContext)(null), Kz = /*#__PURE__*/ (0, F.createContext)(null), qz = /*#__PURE__*/ (0, F.createContext)(null), xhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = bL(e, t, bhe);
- let n = WR(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, F.useMemo)(() => ({
+ }, /*#__PURE__*/ F.createElement(Kz.Provider, { value: s }, e.children));
+}), yhe = /*#__PURE__*/ (0, F.createContext)(null), qz = /*#__PURE__*/ (0, F.createContext)(null), Jz = /*#__PURE__*/ (0, F.createContext)(null), bhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = xL(e, t, yhe);
+ let n = GR(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,
@@ -41718,26 +41718,26 @@ var vhe = class extends vS {
i,
a,
o
- ]), c = /*#__PURE__*/ F.createElement(whe.Provider, { value: s }, /*#__PURE__*/ F.createElement(mw, e));
+ ]), c = /*#__PURE__*/ F.createElement(Che.Provider, { value: s }, /*#__PURE__*/ F.createElement(mw, e));
return /*#__PURE__*/ F.createElement(sw, {
content: c,
- createCollection: () => new vhe()
- }, (r) => /*#__PURE__*/ F.createElement(Che, {
+ createCollection: () => new _he()
+ }, (r) => /*#__PURE__*/ F.createElement(She, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), She = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(AL);
- return n ? /*#__PURE__*/ F.createElement(wL.div, {
+}), xhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(jL);
+ return n ? /*#__PURE__*/ F.createElement(TL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(wL.table, {
+ }) : /*#__PURE__*/ F.createElement(TL.table, {
...e,
ref: t
});
-}), Jz = {
+}), Yz = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -41747,26 +41747,26 @@ var vhe = class extends vS {
rtl: "ArrowRight"
}
};
-function Che({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
- [e, t] = bL(e, t, TL);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, F.useContext)(Gz);
+function She({ 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 = ZC((0, F.useMemo)(() => HC(t, c?.tableRef), [t, c?.tableRef]));
let [l, u] = nE(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 = hhe({
+ let d = mhe({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = ghe(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, F.useContext)(AL), { dragAndDropHooks: _ } = e, { gridProps: v } = Vce({
+ }), f = hhe(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, F.useContext)(jL), { dragAndDropHooks: _ } = e, { gridProps: v } = Bce({
...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 } = Iw(), [k] = (0, F.useState)(() => new Rz());
+ let S, C, w, T = !1, E = null, D = (0, F.useRef)(null), { direction: O } = Iw(), [k] = (0, F.useState)(() => new zz());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -41801,12 +41801,12 @@ function Che({ 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 === Jz.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === Jz.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(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);
}
}
}, C, t), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: A, isFocused: j, isFocusVisible: M } = AD(), ee = vL({
+ let { focusProps: A, isFocused: j, isFocusVisible: M } = AD(), ee = yL({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -41823,18 +41823,18 @@ function Che({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
width: "min-content"
}));
let ne = Ww(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(_L, { values: [
- [Kz, f],
- [qz, P],
- [NR, {
+ return /*#__PURE__*/ F.createElement(vL, { values: [
+ [qz, f],
+ [Jz, P],
+ [PR, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [PR, { render: Phe }],
- [TL, null],
- [EL, null]
- ] }, /*#__PURE__*/ F.createElement(mT, null, /*#__PURE__*/ F.createElement(She, {
+ [FR, { render: Nhe }],
+ [EL, null],
+ [DL, null]
+ ] }, /*#__PURE__*/ F.createElement(mT, null, /*#__PURE__*/ F.createElement(xhe, {
...q(ne, ee, v, A, w?.collectionProps),
style: te,
ref: t,
@@ -41844,45 +41844,45 @@ function Che({ 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(RR, null, /*#__PURE__*/ F.createElement(g, {
+ }, /*#__PURE__*/ F.createElement(zR, null, /*#__PURE__*/ F.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: IR(y, _, C)
+ persistedKeys: LR(y, _, C)
})))), E);
}
-var whe = /*#__PURE__*/ (0, F.createContext)(null), Yz = class extends mS {
+var Che = /*#__PURE__*/ (0, F.createContext)(null), Xz = class extends mS {
static {
this.type = "tableheader";
}
-}, The = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(AL);
- return n ? /*#__PURE__*/ F.createElement(wL.div, {
+}, whe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(jL);
+ return n ? /*#__PURE__*/ F.createElement(TL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(wL.thead, {
+ }) : /*#__PURE__*/ F.createElement(TL.thead, {
...e,
ref: t
});
-}), Xz = /*#__PURE__*/ dw(Yz, (e, t) => {
- let n = (0, F.useContext)(Kz).collection, r = SS({
+}), Zz = /*#__PURE__*/ dw(Xz, (e, t) => {
+ let n = (0, F.useContext)(qz).collection, r = SS({
items: n.headerRows,
children: (0, F.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ F.createElement(Dhe, { item: e });
+ case "headerrow": return /*#__PURE__*/ F.createElement(Ehe, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = AA(), { hoverProps: a, isHovered: o } = PD({
+ }), { rowGroupProps: i } = jA(), { hoverProps: a, isHovered: o } = PD({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), s = vL({
+ }), s = yL({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ F.createElement(The, {
+ return /*#__PURE__*/ F.createElement(whe, {
...q(Ww(e, { global: !0 }), i, a),
...s,
ref: t,
@@ -41891,8 +41891,8 @@ var whe = /*#__PURE__*/ (0, F.createContext)(null), Yz = class extends mS {
}, (e) => /*#__PURE__*/ F.createElement(mw, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), Ehe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(AL);
+}, e.children)), The = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(jL);
return n ? /*#__PURE__*/ F.createElement("div", {
...e,
ref: t
@@ -41901,41 +41901,41 @@ var whe = /*#__PURE__*/ (0, F.createContext)(null), Yz = class extends mS {
ref: t
});
});
-function Dhe({ item: e }) {
- let t = (0, F.useRef)(null), n = (0, F.useContext)(Kz), { isVirtualized: r, CollectionBranch: i } = (0, F.useContext)(AL), { rowProps: a } = qce({
+function Ehe({ item: e }) {
+ let t = (0, F.useRef)(null), n = (0, F.useContext)(qz), { isVirtualized: r, CollectionBranch: i } = (0, F.useContext)(jL), { rowProps: a } = Kce({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = ele(n);
- return /*#__PURE__*/ F.createElement(Ehe, {
+ }, n, t), { checkboxProps: o } = $ce(n);
+ return /*#__PURE__*/ F.createElement(The, {
...a,
ref: t
- }, /*#__PURE__*/ F.createElement(_L, { values: [[VL, { slots: { selection: o } }], [HL, { slots: { selection: o } }]] }, /*#__PURE__*/ F.createElement(i, {
+ }, /*#__PURE__*/ F.createElement(vL, { values: [[HL, { slots: { selection: o } }], [UL, { slots: { selection: o } }]] }, /*#__PURE__*/ F.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var Ohe = class extends mS {
+var Dhe = class extends mS {
static {
this.type = "column";
}
-}, khe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(AL);
- return n ? /*#__PURE__*/ F.createElement(wL.div, {
+}, Ohe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(jL);
+ return n ? /*#__PURE__*/ F.createElement(TL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(wL.th, {
+ }) : /*#__PURE__*/ F.createElement(TL.th, {
...e,
ref: t
});
-}), Zz = /*#__PURE__*/ uw(Ohe, (e, t, n) => {
- let r = ZC(t), i = (0, F.useContext)(Kz), { isVirtualized: a } = (0, F.useContext)(AL), { columnHeaderProps: o, isPressed: s } = Wce({
+}), Qz = /*#__PURE__*/ uw(Dhe, (e, t, n) => {
+ let r = ZC(t), i = (0, F.useContext)(qz), { isVirtualized: a } = (0, F.useContext)(jL), { columnHeaderProps: o, isPressed: s } = Uce({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = AD(), d = (0, F.useContext)(qz), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = AD(), d = (0, F.useContext)(Jz), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = PD({ isDisabled: !e.allowsSorting }), h = vL({
+ let { hoverProps: p, isHovered: m } = PD({ isDisabled: !e.allowsSorting }), h = yL({
...e,
id: void 0,
children: n.rendered,
@@ -41962,7 +41962,7 @@ var Ohe = class extends mS {
width: d.getColumnWidth(n.key)
});
let _ = Ww(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ F.createElement(khe, {
+ return delete _.id, /*#__PURE__*/ F.createElement(Ohe, {
...q(_, o, u, p),
...h,
style: g,
@@ -41974,14 +41974,14 @@ var Ohe = class extends mS {
"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(_L, { values: [[Qz, {
+ }, /*#__PURE__*/ F.createElement(vL, { values: [[$z, {
column: n,
triggerRef: r
- }], [AL, OL]] }, h.children));
-}), Qz = /*#__PURE__*/ (0, F.createContext)(null), Ahe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let n = (0, F.useContext)(qz);
+ }], [jL, kL]] }, h.children));
+}), $z = /*#__PURE__*/ (0, F.createContext)(null), khe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let n = (0, F.useContext)(Jz);
if (!n) throw Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
- let r = Hw(_he(MR), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, F.useContext)(Gz), { column: s, triggerRef: c } = (0, F.useContext)(Qz), l = (0, F.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = Kce({
+ let r = Hw(ghe(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 } = Gce({
column: s,
"aria-label": e["aria-label"] || r.format("tableResizer"),
onResizeStart: i,
@@ -41996,7 +41996,7 @@ var Ohe = class extends mS {
let e = window.getComputedStyle(C.current);
T(e.cursor);
}, [C, S]);
- let E = vL({
+ let E = yL({
...e,
defaultClassName: "react-aria-ColumnResizer",
values: {
@@ -42007,7 +42007,7 @@ var Ohe = class extends mS {
resizableDirection: S
}
}), D = Ww(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(wL.div, {
+ return /*#__PURE__*/ F.createElement(TL.div, {
ref: C,
role: "presentation",
...q(D, E, u, _),
@@ -42030,24 +42030,24 @@ var Ohe = class extends mS {
},
"data-testid": "cursor-overlay"
}), document.body));
-}), $z = class extends hS {
+}), eB = class extends hS {
static {
this.type = "tablebody";
}
-}, jhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(AL);
- return n ? /*#__PURE__*/ F.createElement(wL.div, {
+}, Ahe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(jL);
+ return n ? /*#__PURE__*/ F.createElement(TL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(wL.tbody, {
+ }) : /*#__PURE__*/ F.createElement(TL.tbody, {
...e,
ref: t
});
-}), eB = /*#__PURE__*/ dw($z, (e, t, n) => {
- let r = (0, F.useContext)(Kz), { isVirtualized: i } = (0, F.useContext)(AL), a = r.collection, { CollectionBranch: o } = (0, F.useContext)(AL), { dragAndDropHooks: s, dropState: c } = (0, F.useContext)(NR), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), tB = /*#__PURE__*/ dw(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 = {
isDropTarget: u,
isEmpty: d
- }, p = vL({
+ }, p = yL({
...e,
id: void 0,
children: void 0,
@@ -42056,25 +42056,25 @@ var Ohe = class extends mS {
}), 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(nB, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ F.createElement(rB, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ F.createElement(iB, {
+ }, /*#__PURE__*/ F.createElement(aB, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = AA(), _ = Ww(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(jhe, {
+ let { rowGroupProps: g } = jA(), _ = Ww(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(Ahe, {
...q(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ F.createElement(zhe, null), /*#__PURE__*/ F.createElement(o, {
+ }, l && /*#__PURE__*/ F.createElement(Rhe, null), /*#__PURE__*/ F.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: FR(s, c)
+ renderDropIndicator: IR(s, c)
}), m);
});
(class extends hS {
@@ -42082,7 +42082,7 @@ var Ohe = class extends mS {
this.type = "tablefooter";
}
});
-var tB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Mhe = class extends mS {
+var nB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), jhe = class extends mS {
static {
this.type = "item";
}
@@ -42094,17 +42094,17 @@ var tB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Mh
}
return null;
}
-}, nB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(AL);
- return n ? /*#__PURE__*/ F.createElement(wL.div, {
+}, rB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(jL);
+ return n ? /*#__PURE__*/ F.createElement(TL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(wL.tr, {
+ }) : /*#__PURE__*/ F.createElement(TL.tr, {
...e,
ref: t
});
-}), rB = /*#__PURE__*/ dw(Mhe, (e, t, n) => {
- let r = ZC(t), i = (0, F.useContext)(Kz), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(NR), { isVirtualized: c, CollectionBranch: l } = (0, F.useContext)(AL), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Xce({
+}), iB = /*#__PURE__*/ dw(jhe, (e, t, n) => {
+ let r = ZC(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 } = Yce({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
@@ -42113,7 +42113,7 @@ var tB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Mh
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: x } = $ce({ key: n.key }, i), S;
+ }), { checkboxProps: x } = Qce({ key: n.key }, i), S;
o && a && (S = a.useDraggableItem({
key: n.key,
hasDragButton: !0
@@ -42128,7 +42128,7 @@ var tB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Mh
(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 = vL({
+ 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({
...k,
id: void 0,
defaultClassName: "react-aria-Row",
@@ -42150,10 +42150,10 @@ var tB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Mh
level: n.level + 1
}
}), ee = Ww(e, { global: !0 });
- return delete ee.id, delete ee.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, C && !C.isHidden && /*#__PURE__*/ F.createElement(nB, {
+ return delete ee.id, delete ee.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, C && !C.isHidden && /*#__PURE__*/ F.createElement(rB, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ F.createElement(iB, {
+ }, /*#__PURE__*/ F.createElement(aB, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -42162,7 +42162,7 @@ var tB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Mh
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ F.createElement(nB, {
+ }))), /*#__PURE__*/ F.createElement(rB, {
...q(ee, M, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
@@ -42178,17 +42178,17 @@ var tB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Mh
"data-expanded": j || void 0,
"data-has-child-items": A || void 0,
"data-level": n.level + 1
- }, /*#__PURE__*/ F.createElement(_L, { values: [
- [VL, { slots: {
- [gL]: {},
+ }, /*#__PURE__*/ F.createElement(vL, { values: [
+ [HL, { slots: {
+ [_L]: {},
selection: x
} }],
- [HL, { slots: {
- [gL]: {},
+ [UL, { slots: {
+ [_L]: {},
selection: x
} }],
- [PL, { slots: {
- [gL]: {},
+ [FL, { slots: {
+ [_L]: {},
chevron: f,
drag: {
...S?.dragButtonProps,
@@ -42196,8 +42196,8 @@ var tB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Mh
style: { pointerEvents: "none" }
}
} }],
- [zR, { isSelected: p.isSelected }],
- [tB, { isFocusVisibleWithinRow: _ }]
+ [BR, { isSelected: p.isSelected }],
+ [nB, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ F.createElement(l, {
collection: i.collection,
parent: n
@@ -42210,29 +42210,29 @@ var tB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Mh
items: e.columns,
idScope: e.id
}, e.children);
-}), Nhe = class extends mS {
+}), Mhe = class extends mS {
static {
this.type = "cell";
}
-}, iB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(AL);
- return n ? /*#__PURE__*/ F.createElement(wL.div, {
+}, aB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(jL);
+ return n ? /*#__PURE__*/ F.createElement(TL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(wL.td, {
+ }) : /*#__PURE__*/ F.createElement(TL.td, {
...e,
ref: t
});
-}), aB = /*#__PURE__*/ uw(Nhe, (e, t, n) => {
- let r = ZC(t), i = (0, F.useContext)(Kz), { dragState: a } = (0, F.useContext)(NR), { isVirtualized: o } = (0, F.useContext)(AL);
+}), oB = /*#__PURE__*/ uw(Mhe, (e, t, n) => {
+ let r = ZC(t), i = (0, F.useContext)(qz), { dragState: a } = (0, F.useContext)(PR), { isVirtualized: o } = (0, F.useContext)(jL);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = Hce({
+ let { gridCellProps: s, isPressed: c } = Vce({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = AD(), { hoverProps: f, isHovered: p } = PD({}), { isFocusVisibleWithinRow: m } = (0, F.useContext)(tB), 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 = vL({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = AD(), { hoverProps: f, isHovered: p } = PD({}), { 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({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -42252,7 +42252,7 @@ var tB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Mh
isTreeColumn: n.column.key === i.treeColumn
}
}), S = Ww(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ F.createElement(iB, {
+ return delete S.id, /*#__PURE__*/ F.createElement(aB, {
...q(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
@@ -42266,14 +42266,14 @@ var tB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Mh
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": b || void 0
- }, /*#__PURE__*/ F.createElement(AL.Provider, { value: OL }, x.children));
+ }, /*#__PURE__*/ F.createElement(jL.Provider, { value: kL }, x.children));
});
-function Phe(e, t) {
+function Nhe(e, t) {
t = ZC(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(NR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+ 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);
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(Rhe, {
+ return /*#__PURE__*/ F.createElement(Lhe, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -42282,40 +42282,40 @@ function Phe(e, t) {
ref: t
});
}
-var Fhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(AL);
- return n ? /*#__PURE__*/ F.createElement(wL.div, {
+var Phe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(jL);
+ return n ? /*#__PURE__*/ F.createElement(TL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(wL.tr, {
+ }) : /*#__PURE__*/ F.createElement(TL.tr, {
...e,
ref: t
});
-}), Ihe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(AL);
- return n ? /*#__PURE__*/ F.createElement(wL.div, {
+}), Fhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(jL);
+ return n ? /*#__PURE__*/ F.createElement(TL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(wL.td, {
+ }) : /*#__PURE__*/ F.createElement(TL.td, {
...e,
ref: t
});
});
-function Lhe(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, F.useContext)(Kz), { visuallyHiddenProps: c } = dE(), l = vL({
+function Ihe(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, F.useContext)(qz), { visuallyHiddenProps: c } = dE(), l = yL({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(Fhe, {
+ return /*#__PURE__*/ F.createElement(Phe, {
...Ww(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ F.createElement(Ihe, {
+ }, /*#__PURE__*/ F.createElement(Fhe, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@ -42326,14 +42326,14 @@ function Lhe(e, t) {
ref: i
}), l.children));
}
-var Rhe = /*#__PURE__*/ (0, F.forwardRef)(Lhe);
-function zhe() {
- let e = (0, F.useContext)(Kz), { dragAndDropHooks: t, dropState: n } = (0, F.useContext)(NR), r = (0, F.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = dE();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ F.createElement(nB, {
+var Lhe = /*#__PURE__*/ (0, F.forwardRef)(Ihe);
+function Rhe() {
+ 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 } = dE();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ F.createElement(rB, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ F.createElement(iB, {
+ }, /*#__PURE__*/ F.createElement(aB, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -42345,8 +42345,8 @@ function zhe() {
})));
}
uw(gS, function(e, t, n) {
- let r = (0, F.useContext)(Kz), { isVirtualized: i } = (0, F.useContext)(AL), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, F.useRef)(null);
- QR((0, F.useMemo)(() => ({
+ 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)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -42356,7 +42356,7 @@ uw(gS, function(e, t, n) {
s,
r?.collection
]), u);
- let d = vL({
+ let d = yL({
...c,
id: void 0,
children: n.rendered,
@@ -42364,10 +42364,10 @@ uw(gS, 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(nB, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(rB, {
style: { height: 0 },
- inert: VR(!0)
- }, /*#__PURE__*/ F.createElement(iB, { style: {
+ inert: HR(!0)
+ }, /*#__PURE__*/ F.createElement(aB, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ F.createElement("div", {
@@ -42378,22 +42378,22 @@ uw(gS, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ F.createElement(nB, {
+ }))), a && d.children && /*#__PURE__*/ F.createElement(rB, {
...q(Ww(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ F.createElement(iB, {
+ }, /*#__PURE__*/ F.createElement(aB, {
role: "rowheader",
...p,
style: m
}, d.children)));
});
// node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function Bhe(e) {
- let [t, n] = nE(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, F.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = XR({
+function zhe(e) {
+ let [t, n] = nE(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, F.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = ZR({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -42415,24 +42415,24 @@ function Bhe(e) {
};
}
// node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function Vhe(e) {
- let t = Bhe({
+function Bhe(e) {
+ let t = zhe({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? oB(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? sB(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 = oB(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 = 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;
}), {
...t,
isDisabled: e.isDisabled || !1
};
}
-function oB(e, t) {
+function sB(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);
@@ -42441,20 +42441,20 @@ function oB(e, t) {
return n;
}
// node_modules/react-aria-components/dist/private/Tabs.mjs
-var sB = /*#__PURE__*/ (0, F.createContext)(null), cB = /*#__PURE__*/ (0, F.createContext)(null), Hhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = bL(e, t, sB);
+var cB = /*#__PURE__*/ (0, F.createContext)(null), lB = /*#__PURE__*/ (0, F.createContext)(null), Vhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = xL(e, t, cB);
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(sw, { content: n }, (n) => /*#__PURE__*/ F.createElement(Uhe, {
+ }) : n, [n, r]), /*#__PURE__*/ F.createElement(sw, { content: n }, (n) => /*#__PURE__*/ F.createElement(Hhe, {
props: e,
collection: n,
tabsRef: t
}));
});
-function Uhe({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = Vhe({
+function Hhe({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = Bhe({
...e,
collection: n,
children: void 0
@@ -42466,12 +42466,12 @@ function Uhe({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = vL({
+ ]), l = yL({
...e,
defaultClassName: "react-aria-Tabs",
values: c
}), u = Ww(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(wL.div, {
+ return /*#__PURE__*/ F.createElement(TL.div, {
...q(u, l, a),
ref: t,
slot: e.slot || void 0,
@@ -42479,20 +42479,20 @@ function Uhe({ props: e, tabsRef: t, collection: n }) {
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ F.createElement(_L, { values: [[sB, e], [cB, i]] }, l.children));
+ }, /*#__PURE__*/ F.createElement(vL, { values: [[cB, e], [lB, i]] }, l.children));
}
-var lB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return (0, F.useContext)(cB) ? /*#__PURE__*/ F.createElement(Whe, {
+var uB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return (0, F.useContext)(lB) ? /*#__PURE__*/ F.createElement(Uhe, {
props: e,
forwardedRef: t
}) : /*#__PURE__*/ F.createElement(mw, e);
});
-function Whe({ props: e, forwardedRef: t }) {
- let n = (0, F.useContext)(cB), { CollectionRoot: r } = (0, F.useContext)(AL), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = yL(sB), o = ZC(t), { tabListProps: s } = rle({
+function Uhe({ 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 = ZC(t), { tabListProps: s } = nle({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = vL({
+ }, n, o), c = yL({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -42501,21 +42501,21 @@ function Whe({ props: e, forwardedRef: t }) {
state: n
}
}), l = Ww(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ F.createElement(wL.div, {
+ return delete l.id, /*#__PURE__*/ F.createElement(TL.div, {
...q(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ F.createElement(RR, null, /*#__PURE__*/ F.createElement(r, {
+ }, /*#__PURE__*/ F.createElement(zR, null, /*#__PURE__*/ F.createElement(r, {
collection: n.collection,
- persistedKeys: jL(n.selectionManager.focusedKey)
+ persistedKeys: ML(n.selectionManager.focusedKey)
})));
}
-var Ghe = /*#__PURE__*/ uw(class extends mS {
+var Whe = /*#__PURE__*/ uw(class extends mS {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, F.useContext)(cB), i = ZC(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = tle({
+ let r = (0, F.useContext)(lB), i = ZC(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = ele({
key: n.key,
...e
}, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = AD(), { hoverProps: f, isHovered: p } = PD({
@@ -42523,7 +42523,7 @@ var Ghe = /*#__PURE__*/ uw(class extends mS {
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
- }), m = vL({
+ }), m = yL({
...e,
id: void 0,
children: n.rendered,
@@ -42536,7 +42536,7 @@ var Ghe = /*#__PURE__*/ uw(class extends mS {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? wL.a : wL.div, g = Ww(e, { global: !0 });
+ }), h = n.props.href ? TL.a : TL.div, g = Ww(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ F.createElement(h, {
...q(g, m, a, l, f),
ref: i,
@@ -42546,26 +42546,26 @@ var Ghe = /*#__PURE__*/ uw(class extends mS {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ F.createElement(zR.Provider, { value: { isSelected: o } }, m.children));
-}), Khe = /*#__PURE__*/ nw(function(e, t) {
- let n = (0, F.useContext)(cB), r = ZC(t), i = n.selectedKey === e.id, [a, o] = (0, F.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ F.createElement(BR.Provider, { value: { isSelected: o } }, m.children));
+}), Ghe = /*#__PURE__*/ nw(function(e, t) {
+ let n = (0, F.useContext)(lB), r = ZC(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 = iz(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ F.createElement(qhe, {
+ let s = az(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ F.createElement(Khe, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function qhe(e) {
- let t = (0, F.useContext)(cB), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = ile(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = AD(), d = t.selectedKey === e.id, f = rz(r) && !i, p = vL({
+function Khe(e) {
+ let t = (0, F.useContext)(lB), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = rle(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = AD(), d = t.selectedKey === e.id, f = iz(r) && !i, p = yL({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: VR(!d),
+ isInert: HR(!d),
isEntering: f,
isExiting: a,
state: t
@@ -42573,27 +42573,27 @@ function qhe(e) {
}), m = Ww(o, { global: !0 });
delete m.id;
let h = d ? q(m, s, c, p) : q(m, p);
- return /*#__PURE__*/ F.createElement(wL.div, {
+ return /*#__PURE__*/ F.createElement(TL.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: VR(!d || e.inert),
+ inert: HR(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ F.createElement(_L, { values: [[sB, null], [cB, null]] }, /*#__PURE__*/ F.createElement(AL.Provider, { value: OL }, p.children)));
+ }, /*#__PURE__*/ F.createElement(vL, { values: [[cB, null], [lB, null]] }, /*#__PURE__*/ F.createElement(jL.Provider, { value: kL }, p.children)));
}
// node_modules/react-aria-components/dist/private/TextArea.mjs
-var uB = /*#__PURE__*/ (0, F.createContext)({}), Jhe = (e) => {
+var dB = /*#__PURE__*/ (0, F.createContext)({}), qhe = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, Yhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = bL(e, t, uB);
+}, Jhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = xL(e, t, dB);
let { hoverProps: n, isHovered: r } = PD(e), { isFocused: i, isFocusVisible: a, focusProps: o } = AD({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = vL({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = yL({
...e,
values: {
isHovered: r,
@@ -42604,8 +42604,8 @@ var uB = /*#__PURE__*/ (0, F.createContext)({}), Jhe = (e) => {
},
defaultClassName: "react-aria-TextArea"
});
- return /*#__PURE__*/ F.createElement(wL.textarea, {
- ...q(Jhe(e), o, n),
+ return /*#__PURE__*/ F.createElement(TL.textarea, {
+ ...q(qhe(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -42614,18 +42614,18 @@ var uB = /*#__PURE__*/ (0, F.createContext)({}), Jhe = (e) => {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), Xhe = /*#__PURE__*/ (0, F.createContext)(null), Zhe = /*#__PURE__*/ nw(function(e, t) {
- [e, t] = bL(e, t, Xhe);
- let { validationBehavior: n } = yL(BL) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useRef)(null);
- [e, i] = bL(e, i, EL);
- let [a, o] = xL(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, F.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = vse({
- ...SL(e),
+}), Yhe = /*#__PURE__*/ (0, F.createContext)(null), Xhe = /*#__PURE__*/ nw(function(e, t) {
+ [e, t] = xL(e, t, Yhe);
+ 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),
inputElementType: s,
label: o,
validationBehavior: r
}, i), m = (0, F.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = vL({
+ }, [i]), h = yL({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -42635,7 +42635,7 @@ var uB = /*#__PURE__*/ (0, F.createContext)({}), Jhe = (e) => {
},
defaultClassName: "react-aria-TextField"
}), g = Ww(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ F.createElement(wL.div, {
+ return delete g.id, /*#__PURE__*/ F.createElement(TL.div, {
...g,
...h,
ref: t,
@@ -42644,31 +42644,31 @@ var uB = /*#__PURE__*/ (0, F.createContext)({}), Jhe = (e) => {
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ F.createElement(_L, { values: [
- [ML, {
+ }, /*#__PURE__*/ F.createElement(vL, { values: [
+ [NL, {
...l,
ref: a
}],
- [KL, {
+ [qL, {
...u,
ref: m
}],
- [uB, {
+ [dB, {
...u,
ref: m
}],
- [WL, {
+ [GL, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [RL, { slots: {
+ [zL, { slots: {
description: d,
errorMessage: f
} }],
- [zL, p]
+ [BL, p]
] }, h.children));
-}), Qhe = class e extends vS {
+}), Zhe = class e extends vS {
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;
@@ -42740,16 +42740,16 @@ var uB = /*#__PURE__*/ (0, F.createContext)({}), Jhe = (e) => {
constructor(...e) {
super(...e), this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, $he = /*#__PURE__*/ (0, F.createContext)(null), dB = /*#__PURE__*/ (0, F.createContext)(null), ege = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return [e, t] = bL(e, t, $he), /*#__PURE__*/ F.createElement(sw, {
+}, Qhe = /*#__PURE__*/ (0, F.createContext)(null), fB = /*#__PURE__*/ (0, F.createContext)(null), $he = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return [e, t] = xL(e, t, Qhe), /*#__PURE__*/ F.createElement(sw, {
content: /*#__PURE__*/ F.createElement(mw, e),
- createCollection: () => new Qhe()
- }, (n) => /*#__PURE__*/ F.createElement(tge, {
+ createCollection: () => new Zhe()
+ }, (n) => /*#__PURE__*/ F.createElement(ege, {
props: e,
collection: n,
treeRef: t
}));
-}), fB = {
+}), pB = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -42759,7 +42759,7 @@ var uB = /*#__PURE__*/ (0, F.createContext)({}), Jhe = (e) => {
rtl: "ArrowRight"
}
};
-function tge({ props: e, collection: t, treeRef: n }) {
+function ege({ props: e, collection: t, treeRef: n }) {
let { dragAndDropHooks: r } = e, { direction: i } = Iw(), a = CD({
usage: "search",
sensitivity: "base"
@@ -42767,9 +42767,9 @@ function tge({ props: e, collection: t, treeRef: n }) {
(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)(AL), [y, b] = nE(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));
- cge(C, y) && t === x || (E(t.withExpandedKeys(C, y)), S(t), w(y));
- let D = uz({
+ 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] = nE(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));
+ sge(C, y) && t === x || (E(t.withExpandedKeys(C, y)), S(t), w(y));
+ let D = dz({
...e,
selectionMode: u,
expandedKeys: y,
@@ -42777,7 +42777,7 @@ function tge({ props: e, collection: t, treeRef: n }) {
collection: T,
children: void 0,
disabledBehavior: m
- }), { gridProps: O } = ale({
+ }), { gridProps: O } = ile({
...e,
isVirtualized: g,
layoutDelegate: _
@@ -42791,7 +42791,7 @@ function tge({ 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 Rz());
+ let [te] = (0, F.useState)(() => new zz());
if (s && r) {
A = r.useDroppableCollectionState({
collection: D.collection,
@@ -42821,7 +42821,7 @@ function tge({ 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 === fB.expand[i] && n?.hasChildNodes && !D.expandedKeys.has(t.key) || e.key === fB.collapse[i] && n?.hasChildNodes && D.expandedKeys.has(t.key)) && D.toggleKey(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);
}
}
}, A, n), M = A.isDropTarget({ type: "root" });
@@ -42834,7 +42834,7 @@ function tge({ props: e, collection: t, treeRef: n }) {
selectionMode: D.selectionManager.selectionMode,
allowsDragging: !!P,
state: D
- }, ae = vL({
+ }, ae = yL({
...e,
children: void 0,
defaultClassName: "react-aria-Tree",
@@ -42852,7 +42852,7 @@ function tge({ props: e, collection: t, treeRef: n }) {
}, r));
}
let se = Ww(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(mT, null, /*#__PURE__*/ F.createElement(wL.div, {
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(mT, null, /*#__PURE__*/ F.createElement(TL.div, {
...q(se, ae, O, ne, j?.collectionProps),
ref: n,
slot: e.slot || void 0,
@@ -42862,39 +42862,39 @@ function tge({ 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(_L, { values: [
- [dB, D],
- [NR, {
+ }, /*#__PURE__*/ F.createElement(vL, { values: [
+ [fB, D],
+ [PR, {
dragAndDropHooks: r,
dragState: k,
dropState: A
}],
- [PR, { render: ige }]
- ] }, s && /*#__PURE__*/ F.createElement(sge, null), /*#__PURE__*/ F.createElement(RR, null, /*#__PURE__*/ F.createElement(h, {
+ [FR, { render: rge }]
+ ] }, s && /*#__PURE__*/ F.createElement(oge, null), /*#__PURE__*/ F.createElement(zR, null, /*#__PURE__*/ F.createElement(h, {
collection: D.collection,
- persistedKeys: IR(D.selectionManager, r, A),
+ persistedKeys: LR(D.selectionManager, r, A),
scrollRef: n,
- renderDropIndicator: FR(r, A)
+ renderDropIndicator: IR(r, A)
}))), oe)), ee);
}
-var nge = /*#__PURE__*/ uw(class extends mS {
+var tge = /*#__PURE__*/ uw(class extends mS {
static {
this.type = "content";
}
}, function(e) {
- let t = (0, F.useContext)(pB), n = vL({
+ let t = (0, F.useContext)(mB), n = yL({
children: e.children,
values: t
});
- return /*#__PURE__*/ F.createElement(AL.Provider, { value: OL }, n.children);
-}), pB = /*#__PURE__*/ (0, F.createContext)(null), rge = /*#__PURE__*/ dw(class extends mS {
+ return /*#__PURE__*/ F.createElement(jL.Provider, { value: kL }, n.children);
+}), mB = /*#__PURE__*/ (0, F.createContext)(null), nge = /*#__PURE__*/ dw(class extends mS {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, F.useContext)(dB);
+ let r = (0, F.useContext)(fB);
t = ZC(t);
- let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, F.useContext)(NR), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = mj({
+ 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({
node: n,
shouldSelectOnPressUp: !!a,
focusMode: e.focusMode,
@@ -42948,7 +42948,7 @@ var nge = /*#__PURE__*/ uw(class extends mS {
A,
M,
j
- ]), N = vL({
+ ]), N = yL({
...e,
id: void 0,
children: n.rendered,
@@ -42998,7 +42998,7 @@ var nge = /*#__PURE__*/ uw(class extends mS {
"aria-labelledby": `${ne} ${c.id}`,
tabIndex: -1,
ref: D
- }))), /*#__PURE__*/ F.createElement(wL.div, {
+ }))), /*#__PURE__*/ F.createElement(TL.div, {
...q(re, c, y, g, x, C?.dragProps),
...N,
ref: t,
@@ -43018,17 +43018,17 @@ var nge = /*#__PURE__*/ uw(class extends mS {
}, /*#__PURE__*/ F.createElement("div", {
...l,
style: { display: "contents" }
- }, /*#__PURE__*/ F.createElement(_L, { values: [
- [VL, { slots: {
- [gL]: {},
+ }, /*#__PURE__*/ F.createElement(vL, { values: [
+ [HL, { slots: {
+ [_L]: {},
selection: S
} }],
- [HL, { slots: {
- [gL]: {},
+ [UL, { slots: {
+ [_L]: {},
selection: S
} }],
- [PL, { slots: {
- [gL]: {},
+ [FL, { slots: {
+ [_L]: {},
chevron: {
...u,
ref: T
@@ -43039,13 +43039,13 @@ var nge = /*#__PURE__*/ uw(class extends mS {
style: { pointerEvents: "none" }
}
} }],
- [pB, { ...ee }],
- [zR, { isSelected: f.isSelected }]
+ [mB, { ...ee }],
+ [BR, { isSelected: f.isSelected }]
] }, P))));
});
uw(gS, function(e, t, n) {
- let { isVirtualized: r } = (0, F.useContext)(AL), i = (0, F.useContext)(dB), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, F.useRef)(null);
- QR((0, F.useMemo)(() => ({
+ 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)(() => ({
onLoadMore: o,
collection: i?.collection,
sentinelRef: l,
@@ -43055,10 +43055,10 @@ uw(gS, function(e, t, n) {
s,
i?.collection
]), l), t = ZC(t);
- let { rowProps: u, gridCellProps: d } = mj({ node: n }, i, t), f = u["aria-level"] || 1, p = {
+ let { rowProps: u, gridCellProps: d } = hj({ node: n }, i, t), f = u["aria-level"] || 1, p = {
role: "row",
"aria-level": u["aria-level"]
- }, m = vL({
+ }, m = yL({
...c,
id: void 0,
children: n.rendered,
@@ -43071,7 +43071,7 @@ uw(gS, function(e, t, n) {
width: 0,
height: 0
},
- inert: VR(!0)
+ inert: HR(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: l,
@@ -43080,7 +43080,7 @@ uw(gS, function(e, t, n) {
height: 1,
width: 1
}
- })), a && m.children && /*#__PURE__*/ F.createElement(wL.div, {
+ })), a && m.children && /*#__PURE__*/ F.createElement(TL.div, {
ref: t,
...q(Ww(e), p),
...m,
@@ -43090,12 +43090,12 @@ uw(gS, function(e, t, n) {
style: h
}, m.children)));
});
-function ige(e, t) {
+function rge(e, t) {
t = ZC(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(NR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+ 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);
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(oge, {
+ return /*#__PURE__*/ F.createElement(age, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -43104,8 +43104,8 @@ function ige(e, t) {
level: c
});
}
-function age(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = dE(), c = vL({
+function ige(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = dE(), c = yL({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: {
@@ -43114,7 +43114,7 @@ function age(e, t) {
},
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(wL.div, {
+ return /*#__PURE__*/ F.createElement(TL.div, {
...c,
role: "row",
"aria-level": a,
@@ -43127,9 +43127,9 @@ function age(e, t) {
ref: i
}), c.children));
}
-var oge = /*#__PURE__*/ (0, F.forwardRef)(age);
-function sge() {
- let { dragAndDropHooks: e, dropState: t } = (0, F.useContext)(NR), n = (0, F.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = dE();
+var age = /*#__PURE__*/ (0, F.forwardRef)(ige);
+function oge() {
+ 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 } = dE();
return !i && r["aria-hidden"] ? null : /*#__PURE__*/ F.createElement("div", {
role: "row",
"aria-hidden": r["aria-hidden"],
@@ -43141,13 +43141,13 @@ function sge() {
ref: n
})));
}
-function cge(e, t) {
+function sge(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 lge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+var 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,
@@ -43155,7 +43155,7 @@ var lge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), uge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), 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,
@@ -43163,7 +43163,7 @@ var lge = ({ 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" })), dge = ({ 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" })), 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,
@@ -43171,7 +43171,7 @@ var lge = ({ 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" })), fge = ({ 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" })), 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,
@@ -43179,7 +43179,7 @@ var lge = ({ 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" })), mB = ({ 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" })), 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,
@@ -43187,7 +43187,7 @@ var lge = ({ 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" })), hB = ({ 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" })), 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,
@@ -43195,7 +43195,7 @@ var lge = ({ 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" })), gB = ({ 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" })), _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,
@@ -43203,7 +43203,7 @@ var lge = ({ 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" })), pge = ({ 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" })), 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,
@@ -43211,7 +43211,7 @@ var lge = ({ 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" })), _B = ({ 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" })), 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,
@@ -43219,7 +43219,7 @@ var lge = ({ 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" })), vB = ({ 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" })), 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,
@@ -43227,7 +43227,7 @@ var lge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 12H5V21H3V12ZM19 8H21V21H19V8ZM11 2H13V21H11V2Z" })), yB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 12H5V21H3V12ZM19 8H21V21H19V8ZM11 2H13V21H11V2Z" })), 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,
@@ -43235,7 +43235,7 @@ var lge = ({ 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" })), mge = ({ 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" })), 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,
@@ -43243,7 +43243,7 @@ var lge = ({ 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" })), hge = ({ 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" })), 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,
@@ -43251,7 +43251,7 @@ var lge = ({ 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" })), gge = ({ 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" })), 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,
@@ -43259,7 +43259,7 @@ var lge = ({ 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" })), _ge = ({ 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" })), 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,
@@ -43267,7 +43267,7 @@ var lge = ({ 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" })), vge = ({ 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" })), _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,
@@ -43275,7 +43275,7 @@ var lge = ({ 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" })), yge = ({ 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" })), 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,
@@ -43283,7 +43283,7 @@ var lge = ({ 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" })), bB = ({ 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" })), 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,
@@ -43291,7 +43291,7 @@ var lge = ({ 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" })), xB = ({ 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" })), 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,
@@ -43299,7 +43299,7 @@ var lge = ({ 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" })), bge = ({ 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" })), 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,
@@ -43307,7 +43307,7 @@ var lge = ({ 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" })), SB = ({ 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" })), 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,
@@ -43315,7 +43315,7 @@ var lge = ({ 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" })), xge = ({ 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" })), 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,
@@ -43323,7 +43323,7 @@ var lge = ({ 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" })), Sge = ({ 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" })), 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,
@@ -43331,7 +43331,7 @@ var lge = ({ 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" })), CB = ({ 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" })), 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,
@@ -43339,7 +43339,7 @@ var lge = ({ 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" })), Cge = ({ 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" })), 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,
@@ -43347,7 +43347,7 @@ var lge = ({ 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" })), wge = ({ 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" })), 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,
@@ -43355,7 +43355,7 @@ var lge = ({ 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" })), Tge = ({ 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" })), 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,
@@ -43363,7 +43363,7 @@ var lge = ({ 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" })), wB = ({ 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" })), 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,
@@ -43371,7 +43371,7 @@ var lge = ({ 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" })), Ege = ({ 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" })), 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,
@@ -43379,7 +43379,7 @@ var lge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 19H21V21H3V19ZM13 13.1716L19.0711 7.1005L20.4853 8.51472L12 17L3.51472 8.51472L4.92893 7.1005L11 13.1716V2H13V13.1716Z" })), Dge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 19H21V21H3V19ZM13 13.1716L19.0711 7.1005L20.4853 8.51472L12 17L3.51472 8.51472L4.92893 7.1005L11 13.1716V2H13V13.1716Z" })), 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,
@@ -43387,7 +43387,7 @@ var lge = ({ 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" })), TB = ({ 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" })), 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,
@@ -43395,7 +43395,7 @@ var lge = ({ 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" })), EB = ({ 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" })), 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,
@@ -43403,7 +43403,7 @@ var lge = ({ 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" })), Oge = ({ 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" })), 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,
@@ -43411,7 +43411,7 @@ var lge = ({ 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" })), kge = ({ 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" })), 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,
@@ -43419,7 +43419,7 @@ var lge = ({ 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" })), Age = ({ 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" })), 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,
@@ -43427,7 +43427,7 @@ var lge = ({ 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" })), jge = ({ 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" })), 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,
@@ -43435,7 +43435,7 @@ var lge = ({ 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" })), Mge = ({ 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" })), 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,
@@ -43443,7 +43443,7 @@ var lge = ({ 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" })), DB = ({ 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" })), 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,
@@ -43451,7 +43451,7 @@ var lge = ({ 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" })), Nge = ({ 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" })), 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,
@@ -43459,7 +43459,7 @@ var lge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), OB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), 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,
@@ -43467,7 +43467,7 @@ var lge = ({ 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" })), kB = ({ 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" })), 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,
@@ -43475,7 +43475,7 @@ var lge = ({ 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" })), AB = ({ 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" })), 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,
@@ -43483,7 +43483,7 @@ var lge = ({ 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" })), Pge = ({ 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" })), 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,
@@ -43491,7 +43491,7 @@ var lge = ({ 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" })), jB = ({ 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" })), 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,
@@ -43499,7 +43499,7 @@ var lge = ({ 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" })), MB = ({ 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" })), 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,
@@ -43507,7 +43507,7 @@ var lge = ({ 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" })), Fge = ({ 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" })), 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,
@@ -43515,7 +43515,7 @@ var lge = ({ 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" })), Ige = ({ 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" })), 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,
@@ -43523,7 +43523,7 @@ var lge = ({ 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" })), Lge = ({ 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" })), 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,
@@ -43531,7 +43531,7 @@ var lge = ({ 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" })), NB = ({ 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" })), 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,
@@ -43539,7 +43539,7 @@ var lge = ({ 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" })), Rge = ({ 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" })), 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,
@@ -43547,7 +43547,7 @@ var lge = ({ 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" })), zge = ({ 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" })), 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,
@@ -43555,7 +43555,7 @@ var lge = ({ 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" })), Bge = ({ 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" })), 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,
@@ -43563,7 +43563,7 @@ var lge = ({ 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" })), PB = ({ 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" })), 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,
@@ -43571,7 +43571,7 @@ var lge = ({ 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" })), Vge = ({ 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" })), 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,
@@ -43579,7 +43579,7 @@ var lge = ({ 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" })), Hge = ({ 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" })), 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,
@@ -43587,7 +43587,7 @@ var lge = ({ 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" })), Uge = ({ 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" })), 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,
@@ -43595,7 +43595,7 @@ var lge = ({ 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" })), FB = ({ 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" })), 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,
@@ -43603,7 +43603,7 @@ var lge = ({ 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" })), IB = ({ 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" })), 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,
@@ -43611,7 +43611,7 @@ var lge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })), LB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })), 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,
@@ -43619,7 +43619,7 @@ var lge = ({ 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" })), RB = ({ 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" })), 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,
@@ -43627,7 +43627,7 @@ var lge = ({ 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" })), zB = ({ 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" })), 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,
@@ -43635,7 +43635,7 @@ var lge = ({ 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" })), Wge = ({ 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" })), 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,
@@ -43643,7 +43643,7 @@ var lge = ({ 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" })), BB = ({ 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" })), 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,
@@ -43651,7 +43651,7 @@ var lge = ({ 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" })), Gge = ({ 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" })), 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,
@@ -43659,7 +43659,7 @@ var lge = ({ 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" })), Kge = ({ 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" })), 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,
@@ -43667,7 +43667,7 @@ var lge = ({ 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" })), VB = ({ 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" })), 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,
@@ -43675,7 +43675,7 @@ var lge = ({ 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" })), HB = ({ 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" })), 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,
@@ -43683,7 +43683,7 @@ var lge = ({ 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" })), UB = ({ 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" })), 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,
@@ -43691,7 +43691,7 @@ var lge = ({ 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" })), qge = ({ 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" })), 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,
@@ -43699,7 +43699,7 @@ var lge = ({ 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" })), WB = ({ 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" })), 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,
@@ -43707,7 +43707,7 @@ var lge = ({ 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" })), Jge = ({ 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" })), 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,
@@ -43715,7 +43715,7 @@ var lge = ({ 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" })), GB = ({ 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" })), 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,
@@ -43723,7 +43723,7 @@ var lge = ({ 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" })), Yge = ({ 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" })), 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,
@@ -43731,7 +43731,7 @@ var lge = ({ 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" })), Xge = ({ 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" })), 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,
@@ -43739,7 +43739,7 @@ var lge = ({ 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" })), Zge = ({ 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" })), 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,
@@ -43747,7 +43747,7 @@ var lge = ({ 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" })), Qge = ({ 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" })), 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,
@@ -43755,7 +43755,7 @@ var lge = ({ 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" })), $ge = ({ 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" })), 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,
@@ -43763,7 +43763,7 @@ var lge = ({ 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" })), KB = ({ 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" })), 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,
@@ -43771,7 +43771,7 @@ var lge = ({ 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" })), e_e = ({ 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" })), $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,
@@ -43779,7 +43779,7 @@ var lge = ({ 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" })), qB = ({ 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" })), 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,
@@ -43787,7 +43787,7 @@ var lge = ({ 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" })), JB = ({ 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" })), 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,
@@ -43795,7 +43795,7 @@ var lge = ({ 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" })), YB = ({ 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" })), 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,
@@ -43803,7 +43803,7 @@ var lge = ({ 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" })), t_e = ({ 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" })), e_e = ({ 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,
@@ -43811,7 +43811,7 @@ var lge = ({ 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" })), n_e = ({ 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" })), t_e = ({ 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,
@@ -43819,7 +43819,7 @@ var lge = ({ 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" })), XB = ({ 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" })), 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,
@@ -43827,7 +43827,7 @@ var lge = ({ 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" })), r_e = ({ 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" })), n_e = ({ 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,
@@ -43837,8 +43837,8 @@ var lge = ({ 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 ZB({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsxs)(NL, {
+function QB({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsxs)(PL, {
"data-label": "true",
...a,
className: J("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
@@ -43849,7 +43849,7 @@ function ZB({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, I.jsx)(Rge, {
+ n && /* @__PURE__ */ (0, I.jsx)(Lge, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -43857,23 +43857,23 @@ function ZB({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
});
}
// src/react/boardui/components/base/input/hint-text.tsx
-function QB({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, I.jsx)(Zpe, {
+function $B({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, I.jsx)(Xpe, {
slot: e ? "errorMessage" : "description",
...n,
className: J("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
});
}
// src/react/boardui/components/base/input/input.tsx
-var $B = (0, F.createContext)({});
-function eV({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)($B.Provider, {
+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, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, I.jsx)(Zhe, {
+ children: /* @__PURE__ */ (0, I.jsx)(Xhe, {
...a,
"data-input-size": e,
className: J("group flex h-max w-full flex-col items-start gap-1", r),
@@ -43881,8 +43881,8 @@ function eV({ size: e = "medium", fieldClassName: t, inputClassName: n, classNam
})
});
}
-eV.displayName = "TextField";
-var tV = AI({
+tV.displayName = "TextField";
+var nV = jI({
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",
@@ -43897,44 +43897,44 @@ var tV = AI({
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 nV({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, F.useContext)($B), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, I.jsx)(GL, {
+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, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => J(tV.field, d ? tV.fieldWithAddonSize[u] : tV.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 }) => J(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),
children: /* @__PURE__ */ (0, I.jsxs)("div", {
- className: tV.content,
+ className: nV.content,
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
- className: tV.leftSection,
+ className: nV.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, I.jsx)(t, {
- className: tV.icon,
+ className: nV.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, I.jsx)(rme, {
+ }) : null, /* @__PURE__ */ (0, I.jsx)(nme, {
ref: o,
...c,
- className: J(tV.input, l.inputClassName, a)
+ className: J(nV.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, I.jsx)(n, {
- className: tV.icon,
+ className: nV.icon,
"aria-hidden": !0
}) : null]
})
});
}
-nV.displayName = "InputBase";
-function rV({ 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)(eV, {
+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, {
...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)(ZB, {
+ e && /* @__PURE__ */ (0, I.jsx)(QB, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, I.jsx)(nV, {
+ /* @__PURE__ */ (0, I.jsx)(rV, {
ref: c,
groupRef: l,
placeholder: r,
@@ -43943,25 +43943,25 @@ function rV({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, I.jsx)(QB, {
+ t && /* @__PURE__ */ (0, I.jsx)($B, {
isInvalid: d,
children: t
})
] })
});
}
-rV.displayName = "Input";
+iV.displayName = "Input";
// src/react/components/modal-frame.tsx
-var i_e = {
+var r_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 iV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfaceClassName: a = "" }) {
+function aV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfaceClassName: a = "" }) {
let { isFocusVisible: o } = DC();
- return /* @__PURE__ */ (0, I.jsx)(Tz, {
+ return /* @__PURE__ */ (0, I.jsx)(Ez, {
isOpen: e,
onOpenChange: t,
isDismissable: !0,
@@ -43969,11 +43969,11 @@ function iV({ 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)(zme, {
+ children: /* @__PURE__ */ (0, I.jsx)(Rme, {
"data-modal-surface": "",
"data-modal-width": n,
- className: J("flex max-h-full w-full flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown", i_e[n], a),
- children: /* @__PURE__ */ (0, I.jsx)(xz, {
+ className: J("flex max-h-full w-full flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown", r_e[n], a),
+ children: /* @__PURE__ */ (0, I.jsx)(Sz, {
"aria-label": r,
className: "flex min-h-0 flex-col overflow-y-auto overscroll-contain outline-none",
children: i
@@ -43981,7 +43981,7 @@ function iV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfa
})
});
}
-function aV({ children: e }) {
+function oV({ 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",
@@ -43989,7 +43989,7 @@ function aV({ children: e }) {
});
}
// src/react/components/note.tsx
-function oV({ tone: e, title: t, action: n, extra: r, children: i, actionLayout: a = "inline", className: o }) {
+function sV({ 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: J("flex gap-3", a === "inline" ? "flex-wrap items-center justify-between" : "flex-col items-start"),
@@ -44037,11 +44037,11 @@ function oV({ tone: e, title: t, action: n, extra: r, children: i, actionLayout:
}
}
// src/react/components/empty-state.tsx
-var a_e = {
+var i_e = {
standard: "min-h-80 px-6 py-12",
compact: "min-h-60 px-4 py-6"
};
-function o_e({ target: e, children: t }) {
+function a_e({ target: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
variant: "secondary",
@@ -44049,11 +44049,11 @@ function o_e({ target: e, children: t }) {
children: t
});
}
-function sV({ icon: e, title: t, actions: n, children: r, size: i = "standard" }) {
+function cV({ 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 ${a_e[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 ${i_e[i]}`,
children: [
/* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
@@ -44079,9 +44079,9 @@ function sV({ icon: e, title: t, actions: n, children: r, size: i = "standard" }
});
}
// src/react/components/sprite-glyph.tsx
-var cV = /* @__PURE__ */ new Map();
-function lV(e) {
- let t = cV.get(e);
+var lV = /* @__PURE__ */ new Map();
+function uV(e) {
+ let t = lV.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,
@@ -44097,10 +44097,10 @@ function lV(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})`, cV.set(e, i), i;
+ return i.displayName = `SpriteGlyph(${e})`, lV.set(e, i), i;
}
// src/react/components/settings-dialog-close.tsx
-function uV({ label: e, id: t, onPress: n }) {
+function dV({ label: e, id: t, onPress: n }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
id: t,
@@ -44115,60 +44115,60 @@ function uV({ label: e, id: t, onPress: n }) {
});
}
// src/react/settings/busy-props.ts
-function dV(e) {
+function fV(e) {
return e ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
}
// src/react/library-shortcuts/library-shortcuts.ts
-var fV = ["library-shortcuts"], pV = "/api/library-shortcuts";
-function mV(e = !0) {
+var pV = ["library-shortcuts"], mV = "/api/library-shortcuts";
+function hV(e = !0) {
return Ft({
- queryKey: fV,
- queryFn: ({ signal: e }) => B(pV, e),
+ queryKey: pV,
+ queryFn: ({ signal: e }) => B(mV, e),
enabled: e,
refetchOnMount: e ? "always" : !1
});
}
-function hV() {
+function gV() {
return It({
- mutationKey: fV,
- mutationFn: (e) => V(pV, e),
+ mutationKey: pV,
+ mutationFn: (e) => V(mV, e),
onSuccess: (e, t) => {
- H.setQueryData(fV, e), t.action === "favorite" && t.scope === "online" && (H.invalidateQueries({ queryKey: ["follow", "tags"] }), H.invalidateQueries({ queryKey: ["tag-management"] }));
+ H.setQueryData(pV, e), t.action === "favorite" && t.scope === "online" && (H.invalidateQueries({ queryKey: ["follow", "tags"] }), H.invalidateQueries({ queryKey: ["tag-management"] }));
}
});
}
-function gV(e, t) {
+function _V(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 s_e(e) {
+function o_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 _V = lV("star"), c_e = lV("bookmark-plus"), vV = lV("chevron-right"), yV = {
+var vV = uV("star"), s_e = uV("bookmark-plus"), yV = uV("chevron-right"), bV = {
performer: "艺人",
creator: "创作者",
studio: "片商与厂牌",
series: "系列",
agency: "事务所",
tag: "标签"
-}, bV = {
- all: lV("star"),
- performer: lV("user-round"),
- creator: lV("user-round"),
- studio: lV("clapperboard"),
- series: lV("film"),
- agency: lV("briefcase"),
- tag: lV("tags"),
- filters: lV("list-filter")
-}, xV = [
+}, 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 = [
["all", "全部"],
- ...Object.entries(yV),
+ ...Object.entries(bV),
["filters", "保存的筛选"]
];
-function SV({ label: e, children: t, ...n }) {
+function CV({ label: e, children: t, ...n }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
...n,
@@ -44178,20 +44178,20 @@ function SV({ label: e, children: t, ...n }) {
children: t
});
}
-function CV({ item: e }) {
- return /* @__PURE__ */ (0, I.jsx)(l_e, { item: e }, `${e.scope || "local"}:${e.kind}:${e.tag_id || e.entity_id}:${e.name}`);
+function wV({ item: e }) {
+ return /* @__PURE__ */ (0, I.jsx)(c_e, { item: e }, `${e.scope || "local"}:${e.kind}:${e.tag_id || e.entity_id}:${e.name}`);
}
-function l_e({ item: e }) {
- eL();
- let t = mV(!1), n = (0, F.useRef)(t.data), r = hV(), i = t.data && t.data !== n.current ? gV(t.data.favorites || [], e) : e.favorite ?? (t.data ? gV(t.data.favorites || [], e) : !1);
+function c_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);
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex min-w-0 flex-col gap-1",
children: [
- /* @__PURE__ */ (0, I.jsx)(SV, {
+ /* @__PURE__ */ (0, I.jsx)(CV, {
"data-favorite": "",
"aria-pressed": !!i,
label: `${i ? "取消收藏" : "收藏"}${nn(e.kind, e.name, e.entity_id)}`,
- ...dV(r.isPending),
+ ...fV(r.isPending),
onClick: () => {
r.isPending || r.mutate({
action: "favorite",
@@ -44202,9 +44202,9 @@ function l_e({ item: e }) {
children: r.isPending ? /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: Vs("") }
- }) : /* @__PURE__ */ (0, I.jsx)(_V, {})
+ }) : /* @__PURE__ */ (0, I.jsx)(vV, {})
}),
- r.isError ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ r.isError ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
children: lr(r.error)
}) : null,
@@ -44218,38 +44218,38 @@ function l_e({ item: e }) {
]
});
}
-function wV({ currentHref: e, kind: t }) {
+function TV({ 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)(sL, {
+ children: /* @__PURE__ */ (0, I.jsx)(cL, {
"data-shortcuts-trigger": "",
label: "我的收藏",
- icon: _V,
+ icon: vV,
"aria-haspopup": "dialog",
"aria-expanded": n,
onPress: () => r(!0)
})
- }), /* @__PURE__ */ (0, I.jsx)(iV, {
+ }), /* @__PURE__ */ (0, I.jsx)(aV, {
isOpen: n,
onOpenChange: r,
width: "collections",
label: "我的收藏",
- children: n ? /* @__PURE__ */ (0, I.jsx)(u_e, {
+ children: n ? /* @__PURE__ */ (0, I.jsx)(l_e, {
currentHref: e,
kind: t,
close: () => r(!1)
}) : null
})] });
}
-function u_e({ currentHref: e, kind: t, close: n }) {
- eL();
- let r = mV(), i = hV(), [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 l_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);
(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 = pL(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 = mL(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });
(0, F.useLayoutEffect)(() => {
b.current && (x.current = zo(b.current) || null);
}, []), (0, F.useLayoutEffect)(() => {
@@ -44262,7 +44262,7 @@ function u_e({ currentHref: e, kind: t, close: n }) {
}, [s]), (0, F.useLayoutEffect)(() => {
x.current?.();
});
- let C = xV.find(([e]) => e === s)?.[1] || "全部", w = (e) => {
+ let C = SV.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;
@@ -44285,7 +44285,7 @@ function u_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)(uV, {
+ }), /* @__PURE__ */ (0, I.jsx)(dV, {
label: "关闭我的收藏",
onPress: n
})]
@@ -44315,8 +44315,8 @@ function u_e({ currentHref: e, kind: t, close: n }) {
role: "presentation",
children: "我的收藏"
}),
- xV.map(([e, t]) => {
- let n = bV[e] || _V, r = e === "filters" ? E?.filters.length || 0 : (E?.favorites || []).filter((t) => e === "all" || t.kind === e).length;
+ 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;
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
role: "tab",
@@ -44348,17 +44348,17 @@ function u_e({ currentHref: e, kind: t, close: n }) {
href: "/flagged",
onClick: n,
children: [
- /* @__PURE__ */ (0, I.jsx)(_V, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, I.jsx)(vV, { "aria-hidden": !0 }),
"已标记",
- /* @__PURE__ */ (0, I.jsx)(vV, { "aria-hidden": !0 })
+ /* @__PURE__ */ (0, I.jsx)(yV, { "aria-hidden": !0 })
]
}), /* @__PURE__ */ (0, I.jsxs)("a", {
href: "/watch-later",
onClick: n,
children: [
- /* @__PURE__ */ (0, I.jsx)(c_e, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, I.jsx)(s_e, { "aria-hidden": !0 }),
"稍后看",
- /* @__PURE__ */ (0, I.jsx)(vV, { "aria-hidden": !0 })
+ /* @__PURE__ */ (0, I.jsx)(yV, { "aria-hidden": !0 })
]
})]
})]
@@ -44377,7 +44377,7 @@ function u_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)(oV, {
+ r.isError ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
@@ -44386,16 +44386,16 @@ function u_e({ currentHref: e, kind: t, close: n }) {
}),
children: lr(r.error)
}) : null,
- i.isError ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ i.isError ? /* @__PURE__ */ (0, I.jsx)(sV, {
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)(sV, {
+ E.filters.length ? null : /* @__PURE__ */ (0, I.jsx)(cV, {
size: "compact",
- icon: lV("list-filter"),
+ icon: uV("list-filter"),
title: "还没有保存的筛选",
- actions: /* @__PURE__ */ (0, I.jsx)(hL, {
+ actions: /* @__PURE__ */ (0, I.jsx)(gL, {
size: "small",
href: "/",
onClick: n,
@@ -44414,7 +44414,7 @@ function u_e({ currentHref: e, kind: t, close: n }) {
variant: "secondary",
size: "small",
"aria-label": `删除筛选${e.name}`,
- ...dV(i.isPending),
+ ...fV(i.isPending),
onClick: () => {
i.isPending || i.mutate({
action: "delete_filter",
@@ -44429,7 +44429,7 @@ function u_e({ currentHref: e, kind: t, close: n }) {
className: "flex flex-col gap-3",
"aria-label": "保存当前筛选",
children: [
- /* @__PURE__ */ (0, I.jsx)(rV, {
+ /* @__PURE__ */ (0, I.jsx)(iV, {
label: "筛选名称",
value: a,
onChange: o,
@@ -44438,7 +44438,7 @@ function u_e({ currentHref: e, kind: t, close: n }) {
/* @__PURE__ */ (0, I.jsx)(Y, {
type: "submit",
disabled: !a.trim(),
- ...dV(i.isPending),
+ ...fV(i.isPending),
children: "保存当前筛选"
}),
d ? /* @__PURE__ */ (0, I.jsx)("span", {
@@ -44449,16 +44449,16 @@ function u_e({ currentHref: e, kind: t, close: n }) {
]
}) : null
] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(rV, {
+ /* @__PURE__ */ (0, I.jsx)(iV, {
"aria-label": "搜索收藏",
placeholder: "搜索收藏",
- leadingIcon: lV("search"),
+ leadingIcon: uV("search"),
value: l,
onChange: u
}),
- O.length ? null : /* @__PURE__ */ (0, I.jsx)(sV, {
+ O.length ? null : /* @__PURE__ */ (0, I.jsx)(cV, {
size: "compact",
- icon: _V,
+ icon: vV,
title: l ? "没有匹配的收藏" : E.favorites.length ? "还没有此类收藏" : "还没有收藏",
actions: l ? /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
@@ -44468,7 +44468,7 @@ function u_e({ currentHref: e, kind: t, close: n }) {
size: "small",
onClick: () => c("all"),
children: "查看全部收藏"
- }) : /* @__PURE__ */ (0, I.jsx)(hL, {
+ }) : /* @__PURE__ */ (0, I.jsx)(gL, {
size: "small",
href: "/",
onClick: n,
@@ -44482,25 +44482,25 @@ function u_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: s_e(e),
+ href: o_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)(d_e, { item: e }, e.image_url), /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(u_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" ? "在线标签" : yV[e.kind]
+ children: e.scope === "online" ? "在线标签" : bV[e.kind]
})]
})]
}), /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
"aria-label": `取消收藏${nn(e.kind, e.name, e.entity_id)}`,
- ...dV(i.isPending),
+ ...fV(i.isPending),
onClick: () => {
i.isPending || i.mutate({
action: "favorite",
@@ -44518,8 +44518,8 @@ function u_e({ currentHref: e, kind: t, close: n }) {
]
});
}
-function d_e({ item: e }) {
- let t = bV[e.kind] || _V;
+function u_e({ item: e }) {
+ let t = xV[e.kind] || vV;
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-shortcuts-avatar": "",
title: e.image_label || e.name,
@@ -44537,11 +44537,11 @@ function d_e({ item: e }) {
});
}
// src/react/components/board-navigation-link.tsx
-function f_e(e) {
+function d_e(e) {
return /* @__PURE__ */ (0, I.jsx)("a", { ...e });
}
// src/react/boardui/components/foundations/icons/chevrons.tsx
-function p_e(e) {
+function f_e(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -44555,7 +44555,7 @@ function p_e(e) {
})
});
}
-function m_e(e) {
+function p_e(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 12 12",
fill: "none",
@@ -44569,7 +44569,7 @@ function m_e(e) {
})
});
}
-function TV(e) {
+function EV(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
@@ -44582,7 +44582,7 @@ function TV(e) {
});
}
// src/react/boardui/components/base/breadcrumb/breadcrumb.tsx
-function h_e({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r }) {
+function m_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,
@@ -44590,14 +44590,14 @@ function h_e({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r
className: J("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)(m_e, {
+ children: i.map((e, t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, I.jsx)(p_e, {
className: "size-3 shrink-0 text-text-tertiary",
"aria-hidden": !0
}), e] }, e.key ?? t))
})
});
}
-function EV({ children: e, icon: t, href: n, onClick: r, current: i = !1, className: a }) {
+function DV({ 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
@@ -44610,7 +44610,7 @@ function EV({ children: e, icon: t, href: n, onClick: r, current: i = !1, classN
let s = J("-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)(f_e, {
+ children: n ? /* @__PURE__ */ (0, I.jsx)(d_e, {
href: n,
className: s,
children: o
@@ -44623,14 +44623,14 @@ function EV({ children: e, icon: t, href: n, onClick: r, current: i = !1, classN
});
}
// src/react/boardui/components/foundations/direction/direction.tsx
-function DV() {
+function OV() {
return Iw().direction;
}
// src/react/boardui/components/base/dropdown/menu-styles.ts
-var OV = "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", g_e = "w-[266px]", __e = "flex w-full flex-col gap-1 outline-none", kV = "flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left text-text-primary outline-none transition-colors", AV = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
+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", h_e = "w-[266px]", g_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";
// src/react/boardui/components/base/tree-view/tree-view.tsx
-function v_e({ size: e = "md", showGuides: t = !0, selectionMode: n = "single", renderEmptyState: r = () => "No items.", className: i, onKeyDownCapture: a, ref: o, ...s }) {
- let c = DV(), l = (0, F.useContext)(AL), u = l === OL && !s.dragAndDropHooks ? MV : l;
+function __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;
return /* @__PURE__ */ (0, I.jsx)("div", {
className: "contents",
onKeyDownCapture: (e) => {
@@ -44647,23 +44647,23 @@ function v_e({ size: e = "md", showGuides: t = !0, selectionMode: n = "single",
}
}
},
- children: /* @__PURE__ */ (0, I.jsx)(AL.Provider, {
+ children: /* @__PURE__ */ (0, I.jsx)(jL.Provider, {
value: u,
- children: /* @__PURE__ */ (0, I.jsx)(ege, {
+ children: /* @__PURE__ */ (0, I.jsx)($he, {
...s,
ref: o,
selectionMode: n,
"data-size": e,
"data-show-guides": t,
renderEmptyState: r,
- className: (e) => J("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 === MV ? "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) => J("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)
})
})
});
}
-function jV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassName: i, trailingContent: a, children: o, className: s, style: c, ref: l, ...u }) {
- let d = DV();
- return /* @__PURE__ */ (0, I.jsxs)(rge, {
+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)(nge, {
...u,
ref: l,
textValue: t,
@@ -44672,10 +44672,10 @@ function jV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
...typeof c == "function" ? c(e) : c
}),
className: (e) => J("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)(nge, { children: ({ hasChildItems: t, isExpanded: o, isDisabled: s, level: c, state: l, id: u }) => {
- let f = n === null ? null : o && r ? r : n ?? (t ? o ? AB : OB : kge);
+ children: [/* @__PURE__ */ (0, I.jsx)(tge, { 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 : Oge);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(b_e, {
+ /* @__PURE__ */ (0, I.jsx)(y_e, {
state: l,
id: u,
level: c,
@@ -44685,11 +44685,11 @@ function jV({ 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)(FL, {
+ children: [t ? /* @__PURE__ */ (0, I.jsx)(IL, {
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)(gB, {
+ children: /* @__PURE__ */ (0, I.jsx)(_B, {
"aria-hidden": !0,
className: J("size-4 opacity-50 transition-transform duration-150 motion-reduce:transition-none", o ? "rotate-90" : d === "rtl" && "rotate-180")
})
@@ -44713,24 +44713,24 @@ function jV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
} }), o]
});
}
-var MV = {
- ...OL,
- CollectionRoot: y_e
+var NV = {
+ ...kL,
+ CollectionRoot: v_e
};
-function y_e({ collection: e, ...t }) {
- let n = (0, F.useContext)(dB);
+function v_e({ collection: e, ...t }) {
+ let n = (0, F.useContext)(fB);
return n ? /* @__PURE__ */ (0, I.jsx)(jx, {
initial: !1,
- children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, I.jsx)(x_e, {
+ children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, I.jsx)(b_e, {
state: n,
children: e.render?.(e)
}, e.key))
- }) : /* @__PURE__ */ (0, I.jsx)(OL.CollectionRoot, {
+ }) : /* @__PURE__ */ (0, I.jsx)(kL.CollectionRoot, {
collection: e,
...t
});
}
-function b_e({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction: a }) {
+function y_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;
@@ -44789,7 +44789,7 @@ function b_e({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction
]
});
}
-function x_e({ state: e, children: t }) {
+function b_e({ state: e, children: t }) {
let n = Ox(), r = tS(), [i, a] = (0, F.useState)(e);
return n && i !== e && a(e), /* @__PURE__ */ (0, I.jsx)(pS.div, {
role: "presentation",
@@ -44830,14 +44830,14 @@ function x_e({ state: e, children: t }) {
1
]
},
- children: /* @__PURE__ */ (0, I.jsx)(dB.Provider, {
+ children: /* @__PURE__ */ (0, I.jsx)(fB.Provider, {
value: n ? e : i,
children: t
})
});
}
// src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var NV = {
+var PV = {
md: {
box: "size-4",
glyph: "size-4",
@@ -44851,8 +44851,8 @@ var NV = {
gap: "gap-1.5"
}
};
-function PV({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = NV[t], c = n || r, l = o && !a;
+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;
return /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
className: J("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? J("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : J("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"),
@@ -44878,13 +44878,13 @@ function PV({ state: e, size: t = "md" }) {
});
}
// src/react/boardui/components/base/checkbox/checkbox.tsx
-function FV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = NV[n];
- return /* @__PURE__ */ (0, I.jsx)(eme, {
+function IV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = PV[n];
+ return /* @__PURE__ */ (0, I.jsx)($pe, {
ref: r,
...i,
className: (t) => J("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)(PV, {
+ children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(FV, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, I.jsx)("span", {
@@ -44894,7 +44894,7 @@ function FV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
});
}
// src/react/components/overlay-scrollbar.ts
-function IV() {
+function LV() {
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 ? {
@@ -44906,43 +44906,43 @@ function IV() {
}, []), e;
}
// src/react/providers.tsx
-var LV = null;
-function S_e() {
- return LV?.isConnected || (LV = document.createElement("div"), LV.className = "peach-react", LV.dataset.reactOverlays = "", document.body.append(LV)), LV;
+var RV = null;
+function x_e() {
+ return RV?.isConnected || (RV = document.createElement("div"), RV.className = "peach-react", RV.dataset.reactOverlays = "", document.body.append(RV)), RV;
}
-function RV({ children: e }) {
+function zV({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)(oe, {
client: H,
children: /* @__PURE__ */ (0, I.jsx)(rie, {
reducedMotion: "user",
children: /* @__PURE__ */ (0, I.jsx)(TD, {
- getContainer: S_e,
+ getContainer: x_e,
children: e
})
})
});
}
// node_modules/sonner/dist/index.mjs
-function C_e(e) {
+function S_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 w_e = (e) => {
+var C_e = (e) => {
switch (e) {
- case "success": return D_e;
- case "info": return k_e;
- case "warning": return O_e;
- case "error": return A_e;
+ case "success": return E_e;
+ case "info": return O_e;
+ case "warning": return D_e;
+ case "error": return k_e;
default: return null;
}
-}, T_e = Array(12).fill(0), E_e = ({ visible: e, className: t }) => /*#__PURE__*/ F.createElement("div", {
+}, w_e = Array(12).fill(0), T_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" }, T_e.map((e, t) => /*#__PURE__*/ F.createElement("div", {
+}, /*#__PURE__*/ F.createElement("div", { className: "sonner-spinner" }, w_e.map((e, t) => /*#__PURE__*/ F.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
-})))), D_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",
@@ -44953,7 +44953,7 @@ var w_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"
-})), O_e = /*#__PURE__*/ F.createElement("svg", {
+})), D_e = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
@@ -44964,7 +44964,7 @@ var w_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"
-})), k_e = /*#__PURE__*/ F.createElement("svg", {
+})), O_e = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44975,7 +44975,7 @@ var w_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"
-})), A_e = /*#__PURE__*/ F.createElement("svg", {
+})), k_e = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44986,7 +44986,7 @@ var w_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"
-})), j_e = /*#__PURE__*/ F.createElement("svg", {
+})), A_e = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
@@ -45007,7 +45007,7 @@ var w_e = (e) => {
y1: "6",
x2: "18",
y2: "18"
-})), M_e = () => {
+})), j_e = () => {
let [e, t] = F.useState(document.hidden);
return F.useEffect(() => {
let e = () => {
@@ -45015,7 +45015,7 @@ var w_e = (e) => {
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, N_e = 1, P_e = 100, zV = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : N_e++, BV = new class {
+}, M_e = 1, N_e = 100, BV = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : M_e++, VV = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -45025,10 +45025,10 @@ var w_e = (e) => {
}, this.addToast = (e) => {
this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
}, this.trimHistory = () => {
- let e = this.toasts.length - P_e;
+ let e = this.toasts.length - N_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 = zV(e), i = this.pendingDismissals.get(r);
+ let { message: t, ...n } = e, r = BV(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({
@@ -45103,7 +45103,7 @@ var w_e = (e) => {
type: "default",
message: e
});
- else if (I_e(e) && !e.ok) {
+ else if (F_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({
@@ -45147,7 +45147,7 @@ var w_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 = zV(t);
+ let n = BV(t);
return this.create({
...t,
jsx: e(n),
@@ -45156,34 +45156,34 @@ var w_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();
}
-}(), F_e = (e, t) => BV.message(e, t), I_e = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", VV = Object.assign(F_e, {
- success: BV.success,
- info: BV.info,
- warning: BV.warning,
- error: BV.error,
- custom: BV.custom,
- message: BV.message,
- promise: BV.promise,
- dismiss: BV.dismiss,
- loading: BV.loading
+}(), P_e = (e, t) => VV.message(e, t), F_e = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", HV = Object.assign(P_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
}, {
- getHistory: () => BV.toasts,
- getToasts: () => BV.getActiveToasts()
+ getHistory: () => VV.toasts,
+ getToasts: () => VV.getActiveToasts()
});
-C_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 HV(e) {
+S_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) {
return e.label !== void 0;
}
-var L_e = 3, R_e = "24px", z_e = "16px", UV = 4e3, B_e = 356, V_e = 14, H_e = 45, U_e = 200;
-function WV(...e) {
+var I_e = 3, L_e = "24px", R_e = "16px", WV = 4e3, z_e = 356, B_e = 14, V_e = 45, H_e = 200;
+function GV(...e) {
return e.filter(Boolean).join(" ");
}
-function W_e(e) {
+function U_e(e) {
let [t, n] = e.split("-"), r = [];
return t && r.push(t), n && r.push(n), r;
}
-var G_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 || UV), 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 || UV, [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 = M_e(), ke = F.useMemo(() => e.swipeDirections ?? W_e(b), [e.swipeDirections, b]), Ae = n.invert || t, je = pe === "loading";
+var W_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 = j_e(), ke = F.useMemo(() => e.swipeDirections ?? U_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(() => {
@@ -45224,7 +45224,7 @@ var G_e = (e) => {
let Me = F.useCallback(() => {
ee(!0), ae(Se.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
- }, U_e);
+ }, H_e);
}, [
n,
d,
@@ -45255,18 +45255,18 @@ var G_e = (e) => {
}, [Me, n.delete]);
function Ne() {
return w?.loading ? /*#__PURE__*/ F.createElement("div", {
- className: WV(C?.loader, n?.classNames?.loader, "sonner-loader"),
+ className: GV(C?.loader, n?.classNames?.loader, "sonner-loader"),
"data-visible": pe === "loading"
- }, w.loading) : /*#__PURE__*/ F.createElement(E_e, {
- className: WV(C?.loader, n?.classNames?.loader),
+ }, w.loading) : /*#__PURE__*/ F.createElement(T_e, {
+ className: GV(C?.loader, n?.classNames?.loader),
visible: pe === "loading"
});
}
- let Pe = n.icon || w?.[pe] || w_e(pe);
+ let Pe = n.icon || w?.[pe] || C_e(pe);
return /*#__PURE__*/ F.createElement("li", {
tabIndex: 0,
ref: ue,
- className: WV(_, ge, C?.toast, n?.classNames?.toast, C?.[me], n?.classNames?.[me]),
+ className: GV(_, 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),
@@ -45309,7 +45309,7 @@ var G_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) >= H_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) >= V_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);
@@ -45348,46 +45348,46 @@ var G_e = (e) => {
onClick: je || !he ? () => {} : () => {
Me(), n.onDismiss == null || n.onDismiss.call(n, n);
},
- className: WV(C?.closeButton, n?.classNames?.closeButton)
- }, w?.close ?? j_e) : null, (pe || n.icon || n.promise) && n.icon !== null && (w?.[pe] !== null || n.icon) ? /*#__PURE__*/ F.createElement("div", {
+ className: GV(C?.closeButton, n?.classNames?.closeButton)
+ }, w?.close ?? A_e) : null, (pe || n.icon || n.promise) && n.icon !== null && (w?.[pe] !== null || n.icon) ? /*#__PURE__*/ F.createElement("div", {
"data-icon": "",
- className: WV(C?.icon, n?.classNames?.icon)
+ className: GV(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: WV(C?.content, n?.classNames?.content)
+ className: GV(C?.content, n?.classNames?.content)
}, /*#__PURE__*/ F.createElement("div", {
"data-title": "",
- className: WV(C?.title, n?.classNames?.title)
+ className: GV(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: WV(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 && HV(n.cancel) ? /*#__PURE__*/ F.createElement("button", {
+ 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", {
"data-button": !0,
"data-cancel": !0,
style: n.cancelButtonStyle || h,
onClick: (e) => {
- HV(n.cancel) && he && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Me());
+ UV(n.cancel) && he && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Me());
},
- className: WV(C?.cancelButton, n?.classNames?.cancelButton)
- }, n.cancel.label) : null, /*#__PURE__*/ F.isValidElement(n.action) ? n.action : n.action && HV(n.action) ? /*#__PURE__*/ F.createElement("button", {
+ 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", {
"data-button": !0,
"data-action": !0,
style: n.actionButtonStyle || g,
onClick: (e) => {
- HV(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Me());
+ UV(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Me());
},
- className: WV(C?.actionButton, n?.classNames?.actionButton)
+ className: GV(C?.actionButton, n?.classNames?.actionButton)
}, n.action.label) : null);
};
-function GV() {
+function KV() {
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 K_e(e, t) {
+function G_e(e, t) {
let n = {};
return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? z_e : R_e;
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? R_e : L_e;
function o(e) {
[
"top",
@@ -45408,11 +45408,11 @@ function K_e(e, t) {
}) : o(a);
}), n;
}
-var KV = /*#__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 = L_e, toastOptions: g, dir: _ = GV(), gap: v = V_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 || BV.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
+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 = I_e, toastOptions: g, dir: _ = KV(), gap: v = B_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)));
}, []);
- return F.useEffect(() => BV.subscribe((e) => {
+ return F.useEffect(() => VV.subscribe((e) => {
e.dismiss ? requestAnimationFrame(() => {
C((t) => t.map((t) => t.id === e.id ? {
...t,
@@ -45481,7 +45481,7 @@ var KV = /*#__PURE__*/ F.forwardRef(function(e, t) {
let [i, a] = t.split("-");
return w.length ? /*#__PURE__*/ F.createElement("ol", {
key: t,
- dir: _ === "auto" ? GV() : _,
+ dir: _ === "auto" ? KV() : _,
tabIndex: -1,
ref: N,
className: c,
@@ -45491,10 +45491,10 @@ var KV = /*#__PURE__*/ F.forwardRef(function(e, t) {
"data-x-position": a,
style: {
"--front-toast-height": `${E[0]?.height || 0}px`,
- "--width": `${B_e}px`,
+ "--width": `${z_e}px`,
"--gap": `${v}px`,
...m,
- ...K_e(l, u)
+ ...G_e(l, u)
},
onBlur: (e) => {
ne.current && !e.currentTarget.contains(e.relatedTarget) && (ne.current = !1, P.current &&= (P.current.focus({ preventScroll: !0 }), null));
@@ -45512,7 +45512,7 @@ var KV = /*#__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(G_e, {
+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ F.createElement(W_e, {
key: n.id,
icons: y,
index: i,
@@ -45542,35 +45542,35 @@ var KV = /*#__PURE__*/ F.forwardRef(function(e, t) {
swipeDirections: e.swipeDirections
}))) : null;
}));
-}), qV = "/api/library-processing", JV = ["library-processing"], q_e = (e, t, n) => {
+}), JV = "/api/library-processing", YV = ["library-processing"], K_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(`${qV}?${r}`, t);
-}, J_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(`${JV}?${r}`, t);
+}, q_e = {
fetching_cover: "封面",
querying_metadata: "资料"
};
-function YV(e) {
+function XV(e) {
if (e?.status !== "running" || e.current_asset_id == null) return null;
- let t = J_e[e.current_action || ""];
+ let t = q_e[e.current_action || ""];
return !t || (e.waited_seconds || 0) < 120 ? null : {
what: t,
source: e.current_source
};
}
-function XV({ what: e, source: t }) {
+function ZV({ what: e, source: t }) {
return `${`${t?.label ? `${t.label} ` : "外部来源"}迟迟没有返回${e}`}。可以先跳过这部,任务结束后再重试。`;
}
-var ZV = (e) => !!e && [
+var QV = (e) => !!e && [
"running",
"pausing",
"paused",
"stopping"
-].includes(e.status), QV = (e) => e?.status === "failed" && e.outcome === "partial", $V = "已入库的视频可在全部内容中浏览,未完成项可单独重试。", eH = "/?loc=&thumb=0";
-function tH(e) {
- if (!ZV(e)) return "";
+].includes(e.status), $V = (e) => e?.status === "failed" && e.outcome === "partial", eH = "已入库的视频可在全部内容中浏览,未完成项可单独重试。", tH = "/?loc=&thumb=0";
+function nH(e) {
+ if (!QV(e)) return "";
if (e.status === "stopping") return "正在取消,等待当前步骤退出;已取得的结果会保留";
if (e.status === "paused") return "已暂停,继续后更新预估";
if (e.status === "pausing") return "正在暂停,当前步骤结束后暂停";
@@ -45581,30 +45581,30 @@ function tH(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 nH = (e) => B(qV, e);
-async function rH(e) {
+var rH = (e) => B(JV, e);
+async function iH(e) {
await H.fetchQuery({
- queryKey: JV,
- queryFn: () => nH(e)
+ queryKey: YV,
+ queryFn: () => rH(e)
});
}
-var Y_e = 2e3, X_e = 1e4, iH = "连接中断,正在重新读取处理进度", Z_e = {
+var J_e = 2e3, Y_e = 1e4, aH = "连接中断,正在重新读取处理进度", X_e = {
manual: "在网页发起",
scheduled: "定时发起",
startup: "服务启动时自动发起",
cli: "由命令行或托盘发起"
};
-function Q_e(e, t) {
+function Z_e(e, t) {
return `保存后 Peach 会重新启动。${e.trigger === "cli" ? "这个任务由命令行或托盘发起,在独立进程里运行,不受重启影响。" : e.status === "paused" ? "已暂停的任务会保持暂停,重启后点继续即可接着处理。" : "正在进行的任务会随重启中断,重启后从中断处继续。"}${t ? "勾选的「保存后扫描并补全资料」会排在当前任务之后。" : ""}`;
}
-function $_e(e) {
- let t = Z_e[e.trigger || ""];
+function Q_e(e) {
+ let t = X_e[e.trigger || ""];
return `当前的扫描与采集任务${t ? `(${t})` : ""}还没结束,等它完成或取消后再开始新的同步`;
}
-function aH(e, t) {
- return ZV(e) ? Y_e : t ? X_e : !1;
+function oH(e, t) {
+ return QV(e) ? J_e : t ? Y_e : !1;
}
-var eve = {
+var $_e = {
scanning_files: "扫描文件",
reading_local: "检查配套文件",
reading_local_cover: "读取配套图片",
@@ -45613,25 +45613,25 @@ var eve = {
skipped: "已跳过",
generating_preview: "生成视频预览",
writing_candidates: "保存待确认资料"
-}, oH = {
+}, sH = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
-function tve(e) {
- let t = Object.entries(e).filter(([e, t]) => oH[e] && t > 0).map(([e, t]) => `${oH[e]} ${t.toLocaleString()} 部`);
+function eve(e) {
+ let t = Object.entries(e).filter(([e, t]) => sH[e] && t > 0).map(([e, t]) => `${sH[e]} ${t.toLocaleString()} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function nve(e) {
+function tve(e) {
if (e.status === "paused") return "已暂停";
if (e.status === "pausing") return "正在暂停";
- let t = eve[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${JI(e.waited_seconds)}` : "";
+ let t = $_e[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${YI(e.waited_seconds)}` : "";
return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;
}
-function rve(e) {
- let t = e.total ? `${YI(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
- return nve(e) + (t ? ` · ${t}` : "");
+function nve(e) {
+ let t = e.total ? `${XI(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
+ return tve(e) + (t ? ` · ${t}` : "");
}
-function ive(e) {
+function rve(e) {
let t = e.issue_preview || [];
return t.length ? {
label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
@@ -45645,22 +45645,22 @@ function ive(e) {
log: e.issues_log || ""
} : null;
}
-var sH = "peach.library-processing.announced", ave = 120;
-function cH(e) {
+var cH = "peach.library-processing.announced", ive = 120;
+function lH(e) {
let t = e.completed_at == null ? Infinity : Date.now() / 1e3 - e.completed_at;
- return !!e.job_id && t >= 0 && t < ave;
+ return !!e.job_id && t >= 0 && t < ive;
}
-function ove(e, t, n) {
- if (e.status === "complete" && (n || cH(e))) {
+function ave(e, t, n) {
+ if (e.status === "complete" && (n || lH(e))) {
try {
- if (e.job_id && localStorage.getItem(sH) === e.job_id) return;
- e.job_id && localStorage.setItem(sH, e.job_id);
+ if (e.job_id && localStorage.getItem(cH) === e.job_id) return;
+ e.job_id && localStorage.setItem(cH, 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 lH = AI({
+var uH = jI({
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",
@@ -45677,15 +45677,15 @@ var lH = AI({
secondary: "text-text-secondary active:text-text-primary disabled:text-text-tertiary aria-disabled:text-text-tertiary"
}
});
-function uH({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = J(lH.base, lH.size[t], lH.variant[e], a), l = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
+function dH({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = J(uH.base, uH.size[t], uH.variant[e], a), l = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
n ? /* @__PURE__ */ (0, I.jsx)(n, {
- className: lH.icon[t],
+ className: uH.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, I.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: lH.icon[t],
+ className: uH.icon[t],
"aria-hidden": !0
}) : null
] });
@@ -45711,7 +45711,7 @@ function uH({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
});
}
// src/react/settings/use-action.ts
-function dH(e = "") {
+function fH(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) {
@@ -45736,10 +45736,10 @@ function dH(e = "") {
};
}
// src/react/library-processing/slow-item.tsx
-function fH({ state: e }) {
- let t = dH(), n = (e) => {
- t.busy || t.run(e.action, (t) => V(qV, e, "POST", t), (e) => {
- H.setQueryData(JV, e), H.invalidateQueries({ queryKey: JV });
+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 });
});
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -45751,7 +45751,7 @@ function fH({ state: e }) {
size: "small",
variant: "secondary",
disabled: e.skip_requested,
- ...dV(t.busy === "skip_current"),
+ ...fV(t.busy === "skip_current"),
onClick: () => {
e.job_id && e.current_asset_id != null && n({
action: "skip_current",
@@ -45775,25 +45775,25 @@ function fH({ state: e }) {
]
});
}
-function sve({ state: e, slow: t }) {
- return /* @__PURE__ */ (0, I.jsx)(oV, {
+function ove({ state: e, slow: t }) {
+ return /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "warning",
- action: /* @__PURE__ */ (0, I.jsx)(fH, { state: e }),
- children: XV(t)
+ action: /* @__PURE__ */ (0, I.jsx)(pH, { state: e }),
+ children: ZV(t)
});
}
-function cve({ state: e, slow: t }) {
+function sve({ 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: XV(t)
- }), /* @__PURE__ */ (0, I.jsx)(fH, { state: e })]
+ children: ZV(t)
+ }), /* @__PURE__ */ (0, I.jsx)(pH, { state: e })]
});
}
// src/react/components/use-moving-surface.ts
-var lve = {
+var cve = {
selection: {
type: Lg,
duration: .16,
@@ -45805,7 +45805,7 @@ var lve = {
bounce: 0
}
};
-function pH(e) {
+function mH(e) {
let [t, n] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
if (!t) return;
@@ -45826,7 +45826,7 @@ function pH(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] }, lve[e]);
+ l = uae(n, { transform: [r, E] }, cve[e]);
} else n.style.transform = E;
s = h, c = w, t.dataset.surfaceReady = "";
}, m = (t) => {
@@ -45862,24 +45862,24 @@ function pH(e) {
}, [t, e]), n;
}
// src/react/components/menu-dialog.tsx
-function mH(e) {
- let t = pH("hover");
- return /* @__PURE__ */ (0, I.jsx)(xz, {
+function hH(e) {
+ let t = mH("hover");
+ return /* @__PURE__ */ (0, I.jsx)(Sz, {
...e,
ref: t
});
}
// src/react/library-processing/processing-effort.tsx
-var hH = [
+var gH = [
"low",
"standard",
"high"
-], gH = [
+], _H = [
"低占用",
"标准",
"全速"
-], _H = lV("snail"), vH = lV("zap");
-function yH({ className: e }) {
+], vH = uV("snail"), yH = uV("zap");
+function bH({ className: e }) {
return /* @__PURE__ */ (0, I.jsxs)("svg", {
className: `processing-effort-double ${e ?? ""}`,
"aria-hidden": "true",
@@ -45910,12 +45910,12 @@ function yH({ className: e }) {
]
});
}
-var uve = [
- _H,
+var lve = [
vH,
- yH
+ yH,
+ bH
];
-function dve({ animate: e }) {
+function uve({ animate: e }) {
let [t, n] = (0, F.useState)(document.hidden);
return (0, F.useEffect)(() => {
let e = () => n(document.hidden);
@@ -45947,8 +45947,8 @@ function dve({ animate: e }) {
} }, t))]
});
}
-function bH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
- let i = Math.max(0, hH.indexOf(e)), [a, o] = (0, F.useState)(i);
+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);
return (0, F.useEffect)(() => {
t || o(i);
}, [i, t]), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -45959,7 +45959,7 @@ function bH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "text-text-tertiary",
children: "处理强度 "
- }), gH[a]]
+ }), _H[a]]
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "processing-effort-scale text-caption-1-regular text-text-tertiary",
@@ -45967,19 +45967,19 @@ function bH({ 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)(_H, {}), "最慢"]
+ children: [/* @__PURE__ */ (0, I.jsx)(vH, {}), "最慢"]
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-selected": a === 1 || void 0,
- children: [/* @__PURE__ */ (0, I.jsx)(vH, {}), "标准"]
+ children: [/* @__PURE__ */ (0, I.jsx)(yH, {}), "标准"]
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-selected": a === 2 || void 0,
- children: [/* @__PURE__ */ (0, I.jsx)(yH, {}), "最快"]
+ children: [/* @__PURE__ */ (0, I.jsx)(bH, {}), "最快"]
})
]
}),
- /* @__PURE__ */ (0, I.jsxs)(ume, {
+ /* @__PURE__ */ (0, I.jsxs)(lme, {
"aria-label": "处理速度",
minValue: 0,
maxValue: 2,
@@ -45988,10 +45988,10 @@ function bH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
isDisabled: t,
onChange: o,
onChangeEnd: (e) => {
- e !== i && n(hH[e]);
+ e !== i && n(gH[e]);
},
className: "processing-effort-slider",
- children: [/* @__PURE__ */ (0, I.jsx)(NL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(PL, {
className: "processing-effort-label",
children: "处理速度"
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -46011,11 +46011,11 @@ function bH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
/* @__PURE__ */ (0, I.jsx)("i", {})
]
}),
- a === 2 ? /* @__PURE__ */ (0, I.jsx)(dve, { animate: r }) : null,
- /* @__PURE__ */ (0, I.jsx)(dme, {
+ a === 2 ? /* @__PURE__ */ (0, I.jsx)(uve, { animate: r }) : null,
+ /* @__PURE__ */ (0, I.jsx)(ume, {
className: "processing-effort-hit",
- children: /* @__PURE__ */ (0, I.jsx)(fme, {
- "aria-label": gH[a],
+ children: /* @__PURE__ */ (0, I.jsx)(dme, {
+ "aria-label": _H[a],
className: "processing-effort-thumb"
})
})
@@ -46029,8 +46029,8 @@ function bH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
]
});
}
-function fve({ 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, hH.indexOf(e));
+function dve({ 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));
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "processing-effort-trigger",
"data-speed": e,
@@ -46038,28 +46038,28 @@ function fve({ value: e, busy: t, onChange: n, animate: r = !0 }) {
ref: i,
size: "small",
variant: "secondary",
- "aria-label": `处理速度:${gH[s]}`,
+ "aria-label": `处理速度:${_H[s]}`,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-disabled": t,
- leadingIcon: uve[s],
- trailingIcon: mB,
+ leadingIcon: lve[s],
+ trailingIcon: hB,
onClick: () => {
t || o(!a);
},
- children: gH[s]
+ children: _H[s]
})
- }), /* @__PURE__ */ (0, I.jsx)(cz, {
+ }), /* @__PURE__ */ (0, I.jsx)(lz, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "top start",
offset: 8,
- className: OV,
- children: /* @__PURE__ */ (0, I.jsx)(mH, {
+ className: kV,
+ children: /* @__PURE__ */ (0, I.jsx)(hH, {
"aria-label": "处理速度",
className: "outline-none",
- children: /* @__PURE__ */ (0, I.jsx)(bH, {
+ children: /* @__PURE__ */ (0, I.jsx)(xH, {
value: e,
busy: t,
onChange: n,
@@ -46069,10 +46069,10 @@ function fve({ value: e, busy: t, onChange: n, animate: r = !0 }) {
})] });
}
// src/react/library-processing/processing-controls.tsx
-function xH({ state: e, disabled: t = !1 }) {
- let n = dH(), r = (0, F.useRef)(!1), i = ZV(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(qV, e, "POST", t), (e) => {
- H.setQueryData(JV, e), H.invalidateQueries({ queryKey: JV });
+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 });
});
}, l = () => {
let i = e.job_id;
@@ -46096,7 +46096,7 @@ function xH({ state: e, disabled: t = !1 }) {
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(fve, {
+ /* @__PURE__ */ (0, I.jsx)(dve, {
value: e.speed_mode || "standard",
busy: t || !!n.busy || a,
animate: e.status !== "paused" && e.status !== "pausing",
@@ -46110,11 +46110,11 @@ function xH({ state: e, disabled: t = !1 }) {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: e.status === "paused" ? RB : IB,
+ leadingIcon: e.status === "paused" ? zB : LB,
"aria-label": o,
title: o,
disabled: t || !e.job_id || e.status === "pausing" || a,
- ...dV(n.busy === "pause" || n.busy === "resume"),
+ ...fV(n.busy === "pause" || n.busy === "resume"),
onClick: () => {
e.job_id && c({
action: e.status === "paused" ? "resume" : "pause",
@@ -46126,11 +46126,11 @@ function xH({ state: e, disabled: t = !1 }) {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: GB,
+ leadingIcon: KB,
"aria-label": s,
title: s,
disabled: t || !e.job_id || a,
- ...dV(n.busy === "cancel"),
+ ...fV(n.busy === "cancel"),
onClick: l
}) : null
]
@@ -46142,11 +46142,11 @@ function xH({ state: e, disabled: t = !1 }) {
});
}
// src/react/library-processing/use-library-processing.ts
-function SH({ toast: e, mode: t, monitor: n }) {
+function CH({ toast: e, mode: t, monitor: n }) {
let r = t === "notice" || !!n, i = Ft({
- queryKey: JV,
- queryFn: ({ signal: e }) => nH(e),
- refetchInterval: (e) => aH(e.state.data, r)
+ queryKey: YV,
+ queryFn: ({ signal: e }) => rH(e),
+ refetchInterval: (e) => oH(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;
@@ -46157,8 +46157,8 @@ function SH({ toast: e, mode: t, monitor: n }) {
"pausing",
"paused",
"stopping"
- ].includes(n) && !ZV(c);
- r && o(c), (r || t === "notice") && ove(c, e, r);
+ ].includes(n) && !QV(c);
+ r && o(c), (r || t === "notice") && ave(c, e, r);
}, [
c,
t,
@@ -46170,7 +46170,7 @@ function SH({ toast: e, mode: t, monitor: n }) {
};
}
// src/react/components/loading-dots.tsx
-function CH({ label: e }) {
+function wH({ 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",
@@ -46189,21 +46189,21 @@ function CH({ label: e }) {
});
}
// src/react/components/progress.tsx
-var wH = 100, pve = .4;
-function TH({ 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 * wH;
+var TH = 100, fve = .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;
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 ${wH} 1`,
+ viewBox: `0 0 ${TH} 1`,
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
/* @__PURE__ */ (0, I.jsx)("rect", {
- width: wH,
+ width: TH,
height: 1,
className: i ? "fill-text-primary/10" : "fill-background-tertiary-default"
}),
@@ -46214,7 +46214,7 @@ function TH({ 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: pve,
+ width: fve,
height: 1,
className: "fill-background-secondary-default"
}, e))
@@ -46222,11 +46222,11 @@ function TH({ label: e, value: t, max: n = 100, stops: r = [], tinted: i = !1, m
});
}
// src/react/components/task-progress.tsx
-function EH({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
+function DH({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-task-progress": r ? "embedded" : "framed",
className: J("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)(TH, {
+ children: n && n > 0 ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(EH, {
label: e,
value: t,
max: n,
@@ -46234,11 +46234,11 @@ function EH({ 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)(CH, { label: e })
+ })] }) : /* @__PURE__ */ (0, I.jsx)(wH, { label: e })
});
}
// src/react/library-processing/processing-line.tsx
-function DH(e) {
+function OH(e) {
let [t, n] = (0, F.useState)({
snapshot: e,
seconds: 0
@@ -46254,17 +46254,17 @@ function DH(e) {
return () => window.clearInterval(r);
}, [e, i]);
let a = i && t.snapshot === e ? t.seconds : 0;
- return rve(a ? {
+ return nve(a ? {
...e,
waited_seconds: r + a
} : e);
}
-function mve({ state: e }) {
- return DH(e);
+function pve({ state: e }) {
+ return OH(e);
}
-function hve({ state: e }) {
- let t = DH(e);
- return /* @__PURE__ */ (0, I.jsx)(EH, {
+function mve({ state: e }) {
+ let t = OH(e);
+ return /* @__PURE__ */ (0, I.jsx)(DH, {
embedded: !0,
label: t,
value: Math.min(e.checked || 0, e.total || 0),
@@ -46272,7 +46272,7 @@ function hve({ state: e }) {
});
}
// src/react/components/collapse-region.tsx
-function OH({ open: e, children: t, ...n }) {
+function kH({ open: e, children: t, ...n }) {
let r = (0, F.useRef)(null), i = (0, F.useRef)(!1);
return (0, F.useLayoutEffect)(() => {
let t = r.current;
@@ -46283,7 +46283,7 @@ function OH({ open: e, children: t, ...n }) {
children: t
});
}
-function kH(e) {
+function AH(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
...e,
"aria-hidden": !0,
@@ -46298,19 +46298,19 @@ function kH(e) {
});
}
// src/react/boardui/components/application/settings/settings-rows.tsx
-function AH({ className: e, children: t }) {
+function jH({ className: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
className: J("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function jH({ className: e, children: t }) {
+function MH({ className: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
className: J("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function gve({ label: e, description: t, children: n }) {
+function hve({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: J("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", {
@@ -46326,7 +46326,7 @@ function gve({ label: e, description: t, children: n }) {
});
}
// src/react/settings/section.tsx
-function _ve({ title: e, guide: t, icon: n, id: r, aside: i, onSubmit: a, children: o }) {
+function gve({ 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]
@@ -46334,12 +46334,12 @@ function _ve({ 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)(jH, { children: s })
+ children: /* @__PURE__ */ (0, I.jsx)(MH, { children: s })
}), /* @__PURE__ */ (0, I.jsx)("div", {
className: "flex min-w-0 max-w-full",
children: i
})]
- }) : /* @__PURE__ */ (0, I.jsx)(jH, { children: s }), /* @__PURE__ */ (0, I.jsx)(AH, { children: o })] });
+ }) : /* @__PURE__ */ (0, I.jsx)(MH, { children: s }), /* @__PURE__ */ (0, I.jsx)(jH, { children: o })] });
return a ? /* @__PURE__ */ (0, I.jsx)("form", {
id: r,
"data-guide-target": t,
@@ -46356,13 +46356,13 @@ function _ve({ title: e, guide: t, icon: n, id: r, aside: i, onSubmit: a, childr
children: c
});
}
-function vve({ children: e }) {
+function _ve({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
className: "ui-settings-rows flex flex-col empty:hidden",
children: e
});
}
-function yve({ divided: e = !1, children: t }) {
+function vve({ 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
@@ -46371,7 +46371,7 @@ function yve({ divided: e = !1, children: t }) {
children: t
});
}
-function bve({ label: e, html: t }) {
+function yve({ label: e, html: t }) {
let [n] = (0, F.useState)(t);
return /* @__PURE__ */ (0, I.jsx)("div", {
className: "contents",
@@ -46381,7 +46381,7 @@ function bve({ label: e, html: t }) {
dangerouslySetInnerHTML: { __html: n }
});
}
-function xve({ status: e, children: t }) {
+function bve({ 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", {
@@ -46390,21 +46390,21 @@ function xve({ status: e, children: t }) {
}) : null, t]
});
}
-function MH({ role: e, children: t }) {
+function NH({ role: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function NH({ children: e }) {
+function PH({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function Sve({ label: e, steps: t }) {
+function xve({ label: e, steps: t }) {
return /* @__PURE__ */ (0, I.jsx)("ol", {
className: "flex list-decimal flex-col gap-2 pl-5 text-body-2-regular text-text-secondary",
"aria-label": e,
@@ -46414,20 +46414,20 @@ function Sve({ label: e, steps: t }) {
})] }, e.command))
});
}
-function PH({ children: e }) {
+function FH({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function Cve({ href: e, children: t, leadingIcon: n }) {
- return /* @__PURE__ */ (0, I.jsx)(uH, {
+function Sve({ href: e, children: t, leadingIcon: n }) {
+ return /* @__PURE__ */ (0, I.jsx)(dH, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
size: "small",
leadingIcon: n,
- trailingIcon: TB,
+ trailingIcon: EB,
className: "min-w-0 max-w-full",
children: /* @__PURE__ */ (0, I.jsx)("span", {
className: "min-w-0 whitespace-normal break-all",
@@ -46435,22 +46435,22 @@ function Cve({ href: e, children: t, leadingIcon: n }) {
})
});
}
-function wve() {
- return /* @__PURE__ */ (0, I.jsx)(uH, {
+function Cve() {
+ return /* @__PURE__ */ (0, I.jsx)(dH, {
href: "/tasks",
size: "small",
- trailingIcon: hB,
+ trailingIcon: gB,
className: "self-start",
children: "在任务中心查看进度"
});
}
-function Tve({ children: e }) {
+function wve({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("dl", {
className: "ui-settings-facts flex flex-col empty:hidden",
children: e
});
}
-function Eve({ term: e, children: t }) {
+function Tve({ 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", {
@@ -46462,7 +46462,7 @@ function Eve({ term: e, children: t }) {
})]
});
}
-function FH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing: i = !1, onOpenChange: a, contentClassName: o }) {
+function IH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing: i = !1, onOpenChange: a, contentClassName: o }) {
let s = (0, F.useId)(), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(!1), [d, f] = (0, F.useState)(n ?? t);
return (0, F.useLayoutEffect)(() => {
n !== void 0 && n !== d && c.current && l.current && (Vo(c.current, l.current, n), f(n));
@@ -46478,12 +46478,12 @@ function FH({ 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)(gB, {
+ i ? null : /* @__PURE__ */ (0, I.jsx)(_B, {
"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)(gB, {
+ i ? /* @__PURE__ */ (0, I.jsx)(_B, {
"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
@@ -46499,7 +46499,7 @@ function FH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing:
})]
});
}
-function Dve({ name: e }) {
+function Eve({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": !0,
"data-source-mark": e,
@@ -46509,34 +46509,34 @@ function Dve({ name: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function IH({ mark: e }) {
+function LH({ 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)(Dve, { name: e });
+ }) : /* @__PURE__ */ (0, I.jsx)(Eve, { name: e });
}
// src/react/components/source-label.tsx
-var LH = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, Ove = Object.fromEntries(Object.entries(vs).map(([e, t]) => [e, function({ className: e }) {
+var RH = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, Dve = Object.fromEntries(Object.entries(vs).map(([e, t]) => [e, function({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
className: e,
- children: /* @__PURE__ */ (0, I.jsx)(IH, { mark: t })
+ children: /* @__PURE__ */ (0, I.jsx)(LH, { mark: t })
});
}]));
-function kve({ className: e }) {
+function Ove({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
className: e,
- children: /* @__PURE__ */ (0, I.jsx)(IH, { mark: "database" })
+ children: /* @__PURE__ */ (0, I.jsx)(LH, { mark: "database" })
});
}
-var RH = (e) => Ove[LH(e)] ?? kve;
-function Ave({ site: e, label: t }) {
+var zH = (e) => Dve[RH(e)] ?? Ove;
+function kve({ 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)(IH, { mark: "globe" }) : /* @__PURE__ */ (0, I.jsx)("img", {
+ children: [n || !i ? /* @__PURE__ */ (0, I.jsx)(LH, { mark: "globe" }) : /* @__PURE__ */ (0, I.jsx)("img", {
src: i,
alt: "",
className: "size-(--icon-inline) shrink-0 object-contain",
@@ -46547,24 +46547,24 @@ function Ave({ site: e, label: t }) {
})]
});
}
-function zH({ source: e, label: t }) {
- let n = LH(e);
+function BH({ source: e, label: t }) {
+ let n = RH(e);
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, I.jsx)(IH, { mark: vs[n] || (n === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(LH, { mark: vs[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 BH = (e) => Xn(e).replace(/\s/g, ""), VH = (e) => e >= 1024 ** 2 && e < 1024 ** 3 ? `${Number((e / 1024 ** 2).toFixed(1))}MB` : BH(e), jve = (e, t) => {
- if (e === t) return BH(t);
+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), Ave = (e, t) => {
+ if (e === t) return VH(t);
let [n, r] = Xn(e).split(" "), [i, a] = Xn(t).split(" ");
- return r === a ? `${n}-${i}${a}` : `${BH(e)}-${BH(t)}`;
-}, HH = (e, t, n) => e === void 0 ? jve(t, n) : `${e > 0 ? "约 " : ""}${BH(e)}`;
-function UH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDetailsChange: i }) {
- let a = IV(), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = r ?? o;
+ return r === a ? `${n}-${i}${a}` : `${VH(e)}-${VH(t)}`;
+}, UH = (e, t, n) => e === void 0 ? Ave(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;
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", {
@@ -46601,7 +46601,7 @@ function UH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
children: "部分目录无法读取,数量和预估不完整"
}) : null
]
- }), /* @__PURE__ */ (0, I.jsx)(OH, {
+ }), /* @__PURE__ */ (0, I.jsx)(kH, {
open: !n,
"data-processing-estimate": "",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -46615,25 +46615,25 @@ function UH({ 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)(jB, {
+ children: [/* @__PURE__ */ (0, I.jsx)(MB, {
"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: HH(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)
+ children: UH(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)
}),
/* @__PURE__ */ (0, I.jsxs)("p", { children: [
e.unknown_route_estimated_bytes ? "已确认代理" : "代理",
" ",
- HH(e.metered_estimated_bytes, e.metered_estimated_min_bytes, e.metered_estimated_max_bytes)
+ UH(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 ? "约 " : "", BH(e.used_bytes)] }),
+ /* @__PURE__ */ (0, I.jsxs)("span", { children: [e.partial ? "约 " : "", VH(e.used_bytes)] }),
" · 代理 ",
- BH(e.metered_used_bytes)
+ VH(e.metered_used_bytes)
] })
]
}), e.disk ? /* @__PURE__ */ (0, I.jsxs)("section", {
@@ -46642,25 +46642,25 @@ function UH({ 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)(XB, {
+ children: [/* @__PURE__ */ (0, I.jsx)(ZB, {
"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: ["约 ", BH(e.disk.estimated_bytes)]
+ children: ["约 ", VH(e.disk.estimated_bytes)]
}),
- e.disk.temporary_bytes > 0 ? /* @__PURE__ */ (0, I.jsxs)("p", { children: ["抽帧临时文件约 ", VH(e.disk.temporary_bytes)] }) : null,
+ e.disk.temporary_bytes > 0 ? /* @__PURE__ */ (0, I.jsxs)("p", { children: ["抽帧临时文件约 ", HH(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 ? "未取得" : BH(e.free_bytes)
+ e.free_bytes == null ? "未取得" : VH(e.free_bytes)
] }), e.can_fit === !1 ? /* @__PURE__ */ (0, I.jsxs)("p", {
role: "status",
- children: ["空间不足,还差 ", BH(e.shortfall_bytes || 0)]
+ children: ["空间不足,还差 ", VH(e.shortfall_bytes || 0)]
}) : null]
}, e.path)),
e.disk.cache_unknown ? /* @__PURE__ */ (0, I.jsx)("p", {
@@ -46676,7 +46676,7 @@ function UH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
className: "self-start",
"aria-expanded": l,
"aria-controls": c,
- trailingIcon: l ? _B : mB,
+ trailingIcon: l ? vB : hB,
onClick: () => {
s(!l), i?.(!l);
},
@@ -46695,12 +46695,12 @@ function UH({ 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)(zH, {
+ children: [e.root ? /* @__PURE__ */ (0, I.jsx)(BH, {
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)(IH, { mark: "globe" }), e.label]
+ children: [/* @__PURE__ */ (0, I.jsx)(LH, { mark: "globe" }), e.label]
}), /* @__PURE__ */ (0, I.jsx)("span", {
className: "shrink-0",
children: e.connection === "system" ? "跟随系统" : e.connection === "unknown" ? "连接待确认" : e.metered ? "代理" : "直连"
@@ -46722,7 +46722,7 @@ function UH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
"待补资料 ",
u(e.workload.pending_jav_titles),
" 部 · 平均约 ",
- VH(e.workload.metadata_average_bytes || 0),
+ HH(e.workload.metadata_average_bytes || 0),
"/部"
]
}) : null,
@@ -46732,8 +46732,8 @@ function UH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
"已用",
e.unobserved.length ? "约" : "",
" ",
- BH(e.used_bytes)
- ] }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["预计 ", HH(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)] })]
+ VH(e.used_bytes)
+ ] }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["预计 ", UH(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)] })]
})
]
}, e.key))
@@ -46746,15 +46746,15 @@ function UH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
});
}
// src/react/library-processing/library-processing-notice.tsx
-var WH = "peach.library-processing.collapsed";
-function GH(e) {
+var GH = "peach.library-processing.collapsed";
+function KH(e) {
try {
- return !e || sessionStorage.getItem(WH) !== e;
+ return !e || sessionStorage.getItem(GH) !== e;
} catch {
return !0;
}
}
-function Mve({ value: e, max: t }) {
+function jve({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
return /* @__PURE__ */ (0, I.jsxs)("svg", {
role: "progressbar",
@@ -46784,17 +46784,17 @@ function Mve({ value: e, max: t }) {
})]
});
}
-function KH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
- let [i, a] = (0, F.useState)(() => GH(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 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);
d.current = u;
- let f = (0, F.useId)(), [p, m] = (0, F.useState)(!1), h = (0, F.useRef)(null), g = !t && QV(e), _ = e?.status === "failed" && !g, v = ZV(e);
+ 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);
(0, F.useEffect)(() => {
- a(GH(e?.job_id)), m(!1);
+ a(KH(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(WH, e.job_id) : sessionStorage.removeItem(WH);
+ i && e?.job_id ? sessionStorage.setItem(GH, e.job_id) : sessionStorage.removeItem(GH);
} catch {}
i && m(!1), a(!i);
}
@@ -46824,7 +46824,7 @@ function KH({ 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 : YV(e), x = !!t || !!e?.stalled || g || !!b, S = g ? "处理已结束,部分项目需处理" : _ ? "扫描与采集已中断" : e?.status === "paused" ? "扫描与采集已暂停" : "扫描与采集";
+ let b = t ? null : XV(e), x = !!t || !!e?.stalled || g || !!b, S = g ? "处理已结束,部分项目需处理" : _ ? "扫描与采集已中断" : e?.status === "paused" ? "扫描与采集已暂停" : "扫描与采集";
return /* @__PURE__ */ (0, I.jsxs)("aside", {
ref: h,
"data-processing-dock": "",
@@ -46838,13 +46838,13 @@ function KH({ 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)(Mve, {
+ v && e?.total ? /* @__PURE__ */ (0, I.jsx)(jve, {
value: e.checked || 0,
max: e.total
- }) : _ || x ? /* @__PURE__ */ (0, I.jsx)(Dge, {
+ }) : _ || x ? /* @__PURE__ */ (0, I.jsx)(Ege, {
"aria-hidden": !0,
className: "size-5 shrink-0"
- }) : /* @__PURE__ */ (0, I.jsx)(zge, {
+ }) : /* @__PURE__ */ (0, I.jsx)(Rge, {
"aria-hidden": !0,
className: "size-5 shrink-0"
}),
@@ -46856,14 +46856,14 @@ function KH({ 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: tH(e)
+ children: nH(e)
}) : null]
}),
/* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: kH,
+ leadingIcon: AH,
"data-processing-toggle": "",
"data-collapse-upward": "",
"aria-label": u ? "收起任务详情" : "展开任务详情",
@@ -46875,24 +46875,24 @@ function KH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: xB,
+ leadingIcon: SB,
"aria-label": "隐藏任务提示",
onClick: r
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(UH, {
+ /* @__PURE__ */ (0, I.jsx)(WH, {
traffic: e?.traffic,
compact: !u,
detailsOpen: p,
onDetailsChange: m
}),
- b ? /* @__PURE__ */ (0, I.jsx)(cve, {
+ b ? /* @__PURE__ */ (0, I.jsx)(sve, {
state: e,
slow: b
}) : null
]
- }), /* @__PURE__ */ (0, I.jsx)(OH, {
+ }), /* @__PURE__ */ (0, I.jsx)(kH, {
id: f,
open: u,
"data-processing-body": "",
@@ -46909,10 +46909,10 @@ function KH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
"aria-current": e.status === "current" ? "step" : void 0,
className: J("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)(vge, {
+ e.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(_ge, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
- }) : /* @__PURE__ */ (0, I.jsx)(yge, {
+ }) : /* @__PURE__ */ (0, I.jsx)(vge, {
"aria-hidden": !0,
className: J("size-(--icon-inline) shrink-0", e.status === "current" && "text-border-focus-ring")
}),
@@ -46929,11 +46929,11 @@ function KH({ 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)(mve, { state: e }))
+ children: t || (_ || g ? e?.error || "请查看并处理未完成项" : /* @__PURE__ */ (0, I.jsx)(pve, { state: e }))
}),
g ? /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular wrap-anywhere",
- children: $V
+ children: eH
}) : null,
v && e?.stage && !e.steps?.length ? /* @__PURE__ */ (0, I.jsxs)("p", {
className: "text-caption-1-regular text-text-tertiary",
@@ -46947,20 +46947,20 @@ function KH({ 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)(uH, {
+ /* @__PURE__ */ (0, I.jsx)(dH, {
href: "/data-cleanup#libraryProcessing",
variant: "secondary",
size: "small",
- trailingIcon: hB,
+ trailingIcon: gB,
children: t || _ || g ? "打开扫描与采集" : "任务详情"
}),
- g ? /* @__PURE__ */ (0, I.jsx)(uH, {
- href: eH,
+ g ? /* @__PURE__ */ (0, I.jsx)(dH, {
+ href: tH,
size: "small",
- trailingIcon: hB,
+ trailingIcon: gB,
children: "查看全部内容"
}) : null,
- v ? /* @__PURE__ */ (0, I.jsx)(xH, {
+ v ? /* @__PURE__ */ (0, I.jsx)(SH, {
state: e,
disabled: !!t
}) : null
@@ -46970,67 +46970,67 @@ function KH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
})]
});
}
-function Nve(e) {
- let { job: t } = SH(e);
- return /* @__PURE__ */ (0, I.jsx)(KH, {
+function Mve(e) {
+ let { job: t } = CH(e);
+ return /* @__PURE__ */ (0, I.jsx)(qH, {
state: t.data,
- problem: t.isError ? t.data ? iH : lr(t.error) : ""
+ problem: t.isError ? t.data ? aH : lr(t.error) : ""
});
}
// src/react/library-processing/processing-notice-visibility.ts
-var qH = "peach.library-processing.visibility", JH = /* @__PURE__ */ new Set(), YH = "";
-function Pve() {
+var JH = "peach.library-processing.visibility", YH = /* @__PURE__ */ new Set(), XH = "";
+function Nve() {
try {
- return sessionStorage.getItem(qH) || "";
+ return sessionStorage.getItem(JH) || "";
} catch {
- return YH;
+ return XH;
}
}
-function Fve(e) {
- return JH.add(e), () => {
- JH.delete(e);
+function Pve(e) {
+ return YH.add(e), () => {
+ YH.delete(e);
};
}
-function XH(e, t) {
- YH = `${t ? "shown" : "hidden"}:${e}`;
+function ZH(e, t) {
+ XH = `${t ? "shown" : "hidden"}:${e}`;
try {
- sessionStorage.setItem(qH, YH);
+ sessionStorage.setItem(JH, XH);
} catch {}
- JH.forEach((e) => e());
+ YH.forEach((e) => e());
}
-function ZH(e) {
- let t = (0, F.useSyncExternalStore)(Fve, Pve, () => "");
+function QH(e) {
+ let t = (0, F.useSyncExternalStore)(Pve, Nve, () => "");
return {
hidden: t === `hidden:${e}`,
requested: t === `shown:${e}`
};
}
// src/react/library-processing/library-processing-dock.tsx
-var QH = "peach-library-processing";
-function Ive({ toast: e }) {
- let { job: t, settled: n } = SH({
+var $H = "peach-library-processing";
+function Fve({ toast: e }) {
+ let { job: t, settled: n } = CH({
toast: e,
mode: "notice"
- }), r = (0, F.useRef)(!1), i = t.data, a = i?.job_id || "unavailable", { hidden: o, requested: s } = ZH(a), c = t.isError ? i ? iH : lr(t.error) : "";
+ }), 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) : "";
return (0, F.useEffect)(() => {
- let e = ZV(i), t = i?.status === "failed" && (n?.job_id === i.job_id || cH(i));
- o || i?.archived && !c || !e && !c && !t && !(s && i?.status === "failed") ? (r.current && VV.dismiss(QH), r.current = !1) : (VV.custom(() => /* @__PURE__ */ (0, I.jsx)("div", {
+ 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", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(KH, {
+ children: /* @__PURE__ */ (0, I.jsx)(qH, {
state: i,
problem: c,
measure: !0,
- onHide: () => XH(a, !1)
+ onHide: () => ZH(a, !1)
})
}), {
- id: QH,
+ id: $H,
toasterId: "processing",
duration: Infinity,
dismissible: !1,
closeButton: !1,
className: "processing-task-toast",
onDismiss: () => {
- XH(a, !1), r.current = !1;
+ ZH(a, !1), r.current = !1;
}
}), r.current = !0);
}, [
@@ -47041,19 +47041,19 @@ function Ive({ toast: e }) {
o,
s
]), (0, F.useEffect)(() => () => {
- r.current && VV.dismiss(QH), r.current = !1;
+ r.current && HV.dismiss($H), r.current = !1;
}, []), null;
}
// src/react/network-banner.tsx
-var Lve = ["network-status"], Rve = "Peach 连不上外网,资料采集、关注更新和在线来源暂不可用;本机媒体照常浏览和播放。";
-function zve(e) {
+var Ive = ["network-status"], Lve = "Peach 连不上外网,资料采集、关注更新和在线来源暂不可用;本机媒体照常浏览和播放。";
+function Rve(e) {
return e?.state === "online" ? 12e4 : 3e4;
}
-function Bve() {
+function zve() {
let e = Ft({
- queryKey: Lve,
+ queryKey: Ive,
queryFn: ({ signal: e }) => B("/api/network-status", e),
- refetchInterval: (e) => zve(e.state.data),
+ refetchInterval: (e) => Rve(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", {
@@ -47064,56 +47064,56 @@ function Bve() {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-alert" })
- }), /* @__PURE__ */ (0, I.jsx)("p", { children: Rve })] }), /* @__PURE__ */ (0, I.jsx)("a", {
+ }), /* @__PURE__ */ (0, I.jsx)("p", { children: Lve })] }), /* @__PURE__ */ (0, I.jsx)("a", {
href: "/settings/network#peachProxy",
children: "检查 Peach 代理"
})]
}), t);
}
// src/react/components/segmented.tsx
-function Vve(e) {
- let t = oL(pH("selection"));
- return /* @__PURE__ */ (0, I.jsx)(lB, {
+function Bve(e) {
+ let t = sL(mH("selection"));
+ return /* @__PURE__ */ (0, I.jsx)(uB, {
...e,
ref: t
});
}
-function $H(e) {
- let t = oL(pH("selection"));
- return /* @__PURE__ */ (0, I.jsx)(Oz, {
+function eU(e) {
+ let t = sL(mH("selection"));
+ return /* @__PURE__ */ (0, I.jsx)(kz, {
...e,
ref: t
});
}
-var eU = "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", tU = "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", Hve = "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", nU = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", rU = "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)", iU = [
+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", Vve = "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 = [
["library", "馆藏"],
["releases", "新作"],
["discover", "发现"],
["wants", "想要"]
-], aU = (e) => iU.some(([t]) => t === e) ? e : "library", oU = (e) => aU(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
-function Uve(e) {
+], oU = (e) => aU.some(([t]) => t === e) ? e : "library", sU = (e) => oU(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
+function Hve(e) {
let t = new URLSearchParams(e);
return t.delete("tab"), t.set("jav", "1"), "/?" + t;
}
// src/onboarding/guide-catalog.ts
-var sU = (e, t, n, r, i, a) => ({
+var cU = (e, t, n, r, i, a) => ({
id: e,
title: t,
body: n,
route: r,
target: i,
scope: a
-}), cU = (e, t, n, r, i) => sU(e, t, n, r, i), lU = [
+}), lU = (e, t, n, r, i) => cU(e, t, n, r, i), uU = [
{
id: "basics",
kind: "interface",
title: "认识界面",
summary: "4 步认识搜索、导航、作品详情和设置。",
steps: [
- cU("search", "搜索馆藏", "输入作品名、番号、艺人、厂牌或标签。搜索结果来自已经入库的内容。", "/", "#q, #searchBtn"),
- cU("navigation", "切换浏览入口", "在侧栏按人物、厂牌和标签浏览。手机上用导航按钮展开侧栏;入口与顺序可以在设置里调整。", "/", "#filterBtn, [data-sidebar-nav]"),
- cU("cards", "打开作品详情", "选择作品查看资料、版本和播放入口。首次扫描尚未入库时,可以先继续认识导航。", "/", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),
- cU("preferences", "调整自己的界面", "侧栏底部的设置包含显示与播放偏好;手机上先展开侧栏。媒体目录、网络和后台服务放在其中的 Peach 配置入口。", "/", "#settingsBtn, #filterBtn")
+ 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")
]
},
{
@@ -47122,23 +47122,23 @@ var sU = (e, t, n, r, i, a) => ({
title: "找到并播放",
summary: "搜索、筛选、详情、版本、字幕和播放器。",
steps: [
- cU("library", "选择媒体库", "导航顶部可以切换全部媒体库或某个媒体库;手机上先展开侧栏。媒体库把不同目录组织成一组。", "/", "#brandHome, #filterBtn"),
- cU("search", "按关键词找内容", "输入作品、番号或人物名称,结合筛选与排序定位内容。搜索记录数量可在搜索与推荐中设置。", "/", "#q, #searchBtn"),
- cU("filter", "筛选与清除", "多个筛选条件会共同缩小结果。找不到内容时先检查媒体库和筛选条件。", "/", "[data-catalog-frame]"),
+ lU("library", "选择媒体库", "导航顶部可以切换全部媒体库或某个媒体库;手机上先展开侧栏。媒体库把不同目录组织成一组。", "/", "#brandHome, #filterBtn"),
+ lU("search", "按关键词找内容", "输入作品、番号或人物名称,结合筛选与排序定位内容。搜索记录数量可在搜索与推荐中设置。", "/", "#q, #searchBtn"),
+ lU("filter", "筛选与清除", "多个筛选条件会共同缩小结果。找不到内容时先检查媒体库和筛选条件。", "/", "[data-catalog-frame]"),
{
- ...sU("detail", "作品详情", "这里显示当前作品的标题和源文件工具。评分、人物和标签在下方;有分卷或版本的作品可从馆藏卡片进入相应队列。", "/", "[data-item-title]"),
+ ...cU("detail", "作品详情", "这里显示当前作品的标题和源文件工具。评分、人物和标签在下方;有分卷或版本的作品可从馆藏卡片进入相应队列。", "/", "[data-item-title]"),
surface: "detail"
},
{
- ...sU("player", "播放器控件", "底部控制条提供播放、进度、音量和全屏。右侧齿轮打开播放速度、字幕、画面旋转和清晰度等选项。", "/", "#stage .vjs-control-bar"),
+ ...cU("player", "播放器控件", "底部控制条提供播放、进度、音量和全屏。右侧齿轮打开播放速度、字幕、画面旋转和清晰度等选项。", "/", "#stage .vjs-control-bar"),
surface: "player"
},
{
- ...sU("subtitles", "字幕与播放选项", "从播放器齿轮菜单进入字幕,可以选择已有字幕、加载本地字幕文件或搜索字幕;播放速度和清晰度也在这个菜单中。", "/", "#stage [data-player-subtitles]"),
+ ...cU("subtitles", "字幕与播放选项", "从播放器齿轮菜单进入字幕,可以选择已有字幕、加载本地字幕文件或搜索字幕;播放速度和清晰度也在这个菜单中。", "/", "#stage [data-player-subtitles]"),
surface: "subtitles"
},
{
- ...sU("external", "外部播放器", "在这里选择本地播放器、M3U 播放列表或网络播放地址,再点打开。另一台设备需要能访问当前 Peach 地址。", "/", "#stage [data-local-playback-row]"),
+ ...cU("external", "外部播放器", "在这里选择本地播放器、M3U 播放列表或网络播放地址,再点打开。另一台设备需要能访问当前 Peach 地址。", "/", "#stage [data-local-playback-row]"),
surface: "detail"
}
]
@@ -47150,15 +47150,15 @@ var sU = (e, t, n, r, i, a) => ({
summary: "评分、标记、播放列表与当前播放队列。",
steps: [
{
- ...cU("marks", "评分", "点击星星给作品评分;下方的喜欢、稍后看和加入播放列表用于保存感兴趣的内容。", "/", "#stage [data-item-rating]"),
+ ...lU("marks", "评分", "点击星星给作品评分;下方的喜欢、稍后看和加入播放列表用于保存感兴趣的内容。", "/", "#stage [data-item-rating]"),
surface: "detail"
},
{
- ...cU("mark-actions", "标记与加入列表", "喜欢影响口味推荐,稍后看便于回找;加入播放列表可把作品整理到自己的列表。", "/", "#stage [data-item-feedback]"),
+ ...lU("mark-actions", "标记与加入列表", "喜欢影响口味推荐,稍后看便于回找;加入播放列表可把作品整理到自己的列表。", "/", "#stage [data-item-feedback]"),
surface: "detail"
},
- cU("lists", "建立播放列表", "在这里输入名称,创建自己的播放列表。之后从作品详情的加入播放列表按钮添加内容。", "/playlists", "[data-playlist-create]"),
- cU("queue", "从列表开始播放", "选择一张播放列表卡片进入队列,查看和调整播放顺序。没有列表时先创建,再加入作品。", "/playlists", "[data-playlist-card]")
+ lU("lists", "建立播放列表", "在这里输入名称,创建自己的播放列表。之后从作品详情的加入播放列表按钮添加内容。", "/playlists", "[data-playlist-create]"),
+ lU("queue", "从列表开始播放", "选择一张播放列表卡片进入队列,查看和调整播放顺序。没有列表时先创建,再加入作品。", "/playlists", "[data-playlist-card]")
]
},
{
@@ -47167,10 +47167,10 @@ var sU = (e, t, n, r, i, a) => ({
title: "按人物与主题浏览",
summary: "从人物、厂牌和标签继续发现相关馆藏。",
steps: [
- cU("people", "艺人与创作者", "选择人物卡片进入资料页,查看相关作品、照片与已连接的来源。上方可以切换艺人、卖家与在线人物。", "/performers", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),
- cU("studios", "厂牌", "选择厂牌卡片集中查看作品。资料页中的作品仍会受到当前媒体库范围影响。", "/studios", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),
- cU("tags", "标签与主题", "选择标签继续浏览相关馆藏;本地与在线使用不同的标签词表。", "/tags", "[data-index-body] [data-alpha-tag], [data-index-body] [data-tag-chip], [data-index-body] [data-empty-state]"),
- cU("manage-tags", "管理标签", "铅笔按钮打开标签管理,用于整理标签名称和关系;再次点击返回浏览。", "/tags", "[data-tag-mode]")
+ 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]")
]
},
{
@@ -47179,10 +47179,10 @@ var sU = (e, t, n, r, i, a) => ({
title: "JAV 与追新",
summary: "馆藏、新作、想要清单与高清版。",
steps: [
- cU("library", "JAV 馆藏", "按番号、出演者和厂牌查找已入库的作品,可以选择官方封面或预览图。", oU("library"), "[data-catalog-frame]"),
- cU("new", "发现推荐", "发现页按口味推荐作品。在这里切换馆藏或外部内容,并按标签筛选。", oU("discover"), "[data-jav-filter] [data-catalog-views]"),
- cU("wants", "查看想要清单", "喜欢的外部作品可以加入想要清单;在这里切换馆藏、发现与想要。", oU("discover"), "[aria-label=\"JAV 分区\"]"),
- cU("quality", "高清版", "待升级卡片列出当前版本信息和判定原因,可以查看版本或查找资源;没有目标时这里显示空状态。", "/quality-goals", "[data-goal-id], #main [data-empty-state]")
+ 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]")
]
},
{
@@ -47191,9 +47191,9 @@ var sU = (e, t, n, r, i, a) => ({
title: "关注创作者",
summary: "多来源更新、同作品合并和来源状态。",
steps: [
- cU("feed", "集中看关注更新", "来自不同来源的创作者更新汇集在这里,选择一项更新查看内容;尚未关注来源时,按空状态中的入口添加。", "/follow", "[data-follow-item], [data-follow-empty] [data-empty-state]"),
- cU("sources", "管理关注来源", "从列表查看启用状态、采集结果和失败原因;切换到添加区域,添加创作者或订阅来源。", "/subscriptions", "[aria-label=\"关注管理区域\"]"),
- cU("credentials", "按需配置凭据", "部分来源需要登录凭据;先确认要启用的来源,再展开对应站点,填写其要求的信息。", "/settings/subscriptions", "[data-guide-target=\"credentials\"]")
+ 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\"]")
]
},
{
@@ -47202,9 +47202,9 @@ var sU = (e, t, n, r, i, a) => ({
title: "专注观看",
summary: "播放墙、沉浸模式与详情小窗。",
steps: [
- cU("wall", "播放墙", "播放墙提供多画面观看入口。结束导览后点击进入,再选择要播放的内容。", "/", "#wallBtn"),
- cU("immerse", "沉浸模式", "沉浸模式适合连续观看。点击入口会进入观看流程,请在准备好播放时使用。", "/", "#immerseBtn"),
- cU("mini", "离开详情后继续看", "开启小窗播放后,离开详情可以继续观看。自动播放、小窗和快进步长都在浏览与播放设置中。", "/settings/playback", "#miniplayerSetting")
+ lU("wall", "播放墙", "播放墙提供多画面观看入口。结束导览后点击进入,再选择要播放的内容。", "/", "#wallBtn"),
+ lU("immerse", "沉浸模式", "沉浸模式适合连续观看。点击入口会进入观看流程,请在准备好播放时使用。", "/", "#immerseBtn"),
+ lU("mini", "离开详情后继续看", "开启小窗播放后,离开详情可以继续观看。自动播放、小窗和快进步长都在浏览与播放设置中。", "/settings/playback", "#miniplayerSetting")
]
},
{
@@ -47213,11 +47213,11 @@ var sU = (e, t, n, r, i, a) => ({
title: "整理与维护",
summary: "扫描、补资料、复核、文件整理与回收站。",
steps: [
- cU("scan", "扫描与补资料", "在媒体库处理区域选择扫描和资料处理范围。读取策略取决于媒体库配置;导览不会启动任务。", "/data-cleanup", "#libraryProcessing"),
- cU("review", "人工复核", "先按分类找到待复核资料,再查看项目的来源和证据后作决定。", "/review", "[aria-labelledby=\"reviewcategories\"]"),
- cU("organize", "文件整理", "文件整理先查看预览,确认命名与目标目录再执行。资料整理和真实文件操作有不同的影响范围。", "/data-cleanup", "[data-cleanup-organize]"),
- cU("trash", "回收站", "查看已移入回收站的作品,按需要恢复或处理。永久删除前认真核对确认框中的范围。", "/trash", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),
- cU("tasks", "任务与失败原因", "任务记录显示处理状态;展开记录查看详情与失败原因。还没有任务时,这里会说明哪些操作会留下记录。", "/tasks", "[data-run-id], #main [data-empty-state]")
+ 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]")
]
},
{
@@ -47226,10 +47226,10 @@ var sU = (e, t, n, r, i, a) => ({
title: "了解自己的馆藏",
summary: "统计、口味,以及浏览历史和书签来源。",
steps: [
- cU("stats", "馆藏统计", "选择统计视图查看馆藏、存储和观看情况,各视图中的入口可继续查看相关作品。", "/stats", "[aria-label=\"统计视图\"]"),
- cU("taste", "口味与记录", "在这里切换浏览器记录与 Peach 观看评价,分析各自的口味。", "/taste", "[aria-label=\"口味分析的数据来源\"]"),
- cU("import", "取得浏览历史与书签", "读取浏览器记录需要在运行 Peach 的电脑操作;更多方式菜单可以导入历史或书签文件,适合其它设备。", "/taste", "[data-guide-target=\"history-import\"]"),
- cU("history", "管理记录来源", "已取得的记录来源集中列在这里,可以停用本机浏览器读取或移除已导入的数据源;导览不会修改这些记录。", "/taste", "section[aria-label=\"数据源\"]")
+ 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=\"数据源\"]")
]
},
{
@@ -47238,9 +47238,9 @@ var sU = (e, t, n, r, i, a) => ({
title: "从外部加入内容",
summary: "云下载、目录映射与浏览器添加。",
steps: [
- cU("downloads", "配置下载渠道", "先连接支持的渠道,再指定云端目标目录与本地媒体目录。下载完成后按目录规则入库。", "/settings/downloads", "[data-guide-target=\"download\"]"),
- cU("search", "搜索资源", "资源搜索使用配置的索引器。查到结果后还需要你主动选择下载。", "/settings/subscriptions", "[data-guide-target=\"indexers\"]"),
- cU("browser", "浏览器添加 JAV", "用户脚本与 Peach 配对后可从浏览器添加作品。专用令牌、默认渠道和开关在下载渠道里管理。", "/settings/downloads", "[data-guide-target=\"browser\"]")
+ 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\"]")
]
},
{
@@ -47249,18 +47249,18 @@ var sU = (e, t, n, r, i, a) => ({
title: "手机与其他设备",
summary: "访问地址、密码、局域网和公网入口。",
steps: [
- cU("address", "找到访问地址", "同一局域网的设备使用 Peach 的局域网地址。仅本机访问时,其它设备无法连接。", "/settings/network", "[data-guide-target=\"port\"]"),
- cU("password", "访问密码", "能连接到 Peach 的设备按访问密码登录。显示偏好与访问权限是不同的设置。", "/settings/network", "[data-guide-target=\"access\"]"),
- cU("tunnel", "需要时启用公网入口", "Cloudflare 公网入口适合离开局域网后访问,需要按实际部署配置连接信息。", "/settings/network", "[data-guide-target=\"tunnel\"]")
+ 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\"]")
]
}
-], Wve = "当前浏览器 · 修改后自动保存", uU = "跟随馆藏 · 修改后自动保存", dU = "运行 Peach 的电脑 · 确认后保存配置", fU = (e, t, n = Wve) => t.map(([t, r, i, a, o]) => sU(t, r, i, `/settings/${e}`, a || `[data-guide-target="${t}"]`, o || n)), pU = [
+], Uve = "当前浏览器 · 修改后自动保存", dU = "跟随馆藏 · 修改后自动保存", fU = "运行 Peach 的电脑 · 确认后保存配置", pU = (e, t, n = Uve) => t.map(([t, r, i, a, o]) => cU(t, r, i, `/settings/${e}`, a || `[data-guide-target="${t}"]`, o || n)), mU = [
{
id: "appearance",
kind: "settings",
title: kf.appearance,
summary: "主题、光晕与导航入口。",
- steps: fU("appearance", [
+ steps: pU("appearance", [
[
"theme",
"主题",
@@ -47290,7 +47290,7 @@ var sU = (e, t, n, r, i, a) => ({
"导航入口与顺序",
"把常用入口放到侧栏,拖动调整顺序。",
"[data-sidebar-setting]",
- uU
+ dU
]
])
},
@@ -47299,7 +47299,7 @@ var sU = (e, t, n, r, i, a) => ({
kind: "settings",
title: kf.playback,
summary: "列表呈现、悬停预览与播放行为。",
- steps: fU("playback", [
+ steps: pU("playback", [
[
"batch",
"每批作品",
@@ -47355,13 +47355,13 @@ var sU = (e, t, n, r, i, a) => ({
kind: "settings",
title: kf.jav,
summary: "封面与新作筛选。",
- steps: fU("jav", [
+ steps: pU("jav", [
[
"names",
"女优名称",
"选择中文或日文名称;偏好跟随馆藏,其他设备读取同一份设置。",
"#performerNameLanguageSetting",
- uU
+ dU
],
[
"image",
@@ -47386,21 +47386,21 @@ var sU = (e, t, n, r, i, a) => ({
"隐藏大合集",
"过滤新作中的大合集,只影响新作展示,馆藏仍可查找。",
"#feedHideGroupSetting",
- uU
+ dU
],
[
"solo-compilations",
"隐藏单人合集",
"过滤新作中的单人合集,只影响新作展示,馆藏仍可查找。",
"#feedHideSoloSetting",
- uU
+ dU
],
[
"excerpts",
"隐藏切片",
"过滤新作中的切片,只影响新作展示,馆藏仍可查找。",
"#feedHideExcerptSetting",
- uU
+ dU
]
])
},
@@ -47409,12 +47409,12 @@ var sU = (e, t, n, r, i, a) => ({
kind: "settings",
title: kf.search,
summary: "搜索记录、推荐数量与口味入口。",
- steps: [...fU("search", [[
+ steps: [...pU("search", [[
"history",
"搜索记录",
"设置保留的搜索记录上限,0 表示不记录。",
"#searchHistoryLimitSetting"
- ]], uU), ...fU("search", [[
+ ]], dU), ...pU("search", [[
"related",
"相关推荐数量",
"决定详情中显示多少项相关推荐。口味和记录来源在口味页面管理。",
@@ -47426,7 +47426,7 @@ var sU = (e, t, n, r, i, a) => ({
kind: "settings",
title: kf.content,
summary: "SFW 模式与画面显示。",
- steps: fU("content", [[
+ steps: pU("content", [[
"sfw",
"SFW 模式",
"隐藏敏感画面并停止悬停预览,适合需要遮挡画面的环境。访问控制请另设访问密码。",
@@ -47438,7 +47438,7 @@ var sU = (e, t, n, r, i, a) => ({
kind: "settings",
title: Af.library,
summary: "媒体库、目录、读取与处理方式。",
- steps: fU("library", [
+ steps: pU("library", [
[
"media",
"媒体库名称与外观",
@@ -47489,14 +47489,14 @@ var sU = (e, t, n, r, i, a) => ({
"视频预览",
"生成视频预览会读取视频并产生缓存。时间轴预览的开关与采集间隔控制本机磁盘缩略图;抽帧解码方式决定生成预览使用的解码器。修改后自动保存,并受媒体库处理方式与读取策略约束。"
]
- ], dU)
+ ], fU)
},
{
id: "subscriptions",
kind: "settings",
title: Af.subscriptions,
summary: "资料来源、关注、索引器与站点入口。",
- steps: fU("subscriptions", [
+ steps: pU("subscriptions", [
[
"sources",
"采集来源与登录状态",
@@ -47523,14 +47523,14 @@ var sU = (e, t, n, r, i, a) => ({
"作品资料站点",
"配置资料站点和镜像入口,用于打开相关作品页面。地址和登录凭据分别管理。"
]
- ], dU)
+ ], fU)
},
{
id: "downloads",
kind: "settings",
title: Af.downloads,
summary: "云下载目录、账号与浏览器配对。",
- steps: fU("downloads", [
+ steps: pU("downloads", [
[
"download",
"云下载",
@@ -47546,14 +47546,14 @@ var sU = (e, t, n, r, i, a) => ({
"浏览器添加 JAV",
"安装用户脚本并配对 Peach。默认渠道决定提交到哪里;启用开关控制功能,专用令牌可更新或关闭,脚本检测帮助确认配对。"
]
- ], dU)
+ ], fU)
},
{
id: "network",
kind: "settings",
title: Af.network,
summary: "访问端口、代理、密码和公网入口。",
- steps: fU("network", [
+ steps: pU("network", [
[
"port",
"访问地址与端口",
@@ -47574,14 +47574,14 @@ var sU = (e, t, n, r, i, a) => ({
"Cloudflare 公网入口",
"临时链接用于临时连接,命名隧道使用主机名与隧道令牌。连接状态显示是否已可用,按需要启用。"
]
- ], dU)
+ ], fU)
},
{
id: "app-maintenance",
kind: "settings",
title: Af.maintenance,
summary: "更新、存储、数据选择与应用维护。",
- steps: fU("maintenance", [
+ steps: pU("maintenance", [
[
"updates",
"检查更新",
@@ -47627,14 +47627,14 @@ var sU = (e, t, n, r, i, a) => ({
"卸载 Peach",
"卸载移除程序;完全卸载还移除设置、资料库、记录、凭据和缓存。执行前核对页面列出的数据目录与确认内容。"
]
- ], dU)
+ ], fU)
},
{
id: "diagnostics",
kind: "settings",
title: Af.diagnostics,
summary: "遇到问题时查看检查项与诊断报告。",
- steps: fU("diagnostics", [
+ steps: pU("diagnostics", [
[
"attention",
"需要关注的检查项",
@@ -47659,7 +47659,7 @@ var sU = (e, t, n, r, i, a) => ({
]
], "只读检查 · 重新检查与下载由你主动执行")
}
-], Gve = {
+], Wve = {
glow: [
["配色预设", "一次应用一组配色和参数,适合先挑选整体外观。"],
["强度", "控制光晕的明亮程度;太抢眼时降低。"],
@@ -47766,8 +47766,8 @@ var sU = (e, t, n, r, i, a) => ({
["上传预览", "查看本次会包含的内容,再决定是否启用明细上传。"]
]
};
-for (let e of pU) for (let t of e.steps) t.details = Gve[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 mU = [...lU, ...pU], Kve = [
+for (let e of mU) for (let t of e.steps) t.details = Wve[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], Gve = [
{
id: "browse",
kind: "interface",
@@ -47845,35 +47845,35 @@ var mU = [...lU, ...pU], Kve = [
]
}
];
-function qve(e) {
- return e === "/" ? lU[0] : pU.find((t) => t.steps[0]?.route === e) || lU.find((t) => t.id !== "basics" && t.steps.some((t) => t.route === e)) || lU[0];
+function Kve(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];
}
// src/onboarding/guide-state.ts
-var Jve = () => ({
+var qve = () => ({
version: 1,
campaign: "",
invited: !1,
completed: !1,
chapters: {}
});
-function hU(e, t) {
+function gU(e, t) {
let n = e.chapters[t.id]?.read || [];
return t.steps.every((e) => n.includes(e.id));
}
-function Yve(e, t) {
+function Jve(e, t) {
let n = e.chapters[t.id];
- return !n || hU(e, t) ? 0 : n.next < t.steps.length ? n.next : t.steps.findIndex((e) => !n.read.includes(e.id));
+ return !n || gU(e, t) ? 0 : n.next < t.steps.length ? n.next : t.steps.findIndex((e) => !n.read.includes(e.id));
}
-function Xve() {
+function Yve() {
return B("/api/tutorial-progress");
}
-function Zve(e, t) {
+function Xve(e, t) {
return V("/api/tutorial-progress", {
campaign: e,
...t
});
}
-function Qve(e, t, n, r, i) {
+function Zve(e, t, n, r, i) {
let a = e.chapters[t] || {
next: 0,
read: [],
@@ -47891,99 +47891,99 @@ function Qve(e, t, n, r, i) {
}
};
}
-var gU = null, _U = /* @__PURE__ */ new Set();
-function vU(e = {}) {
- _U.size || (gU = e);
- for (let t of _U) t(e);
-}
-function $ve(e) {
- if (_U.add(e), gU) {
- let t = gU;
- gU = null, queueMicrotask(() => {
- _U.has(e) && e(t);
+var _U = null, vU = /* @__PURE__ */ new Set();
+function yU(e = {}) {
+ vU.size || (_U = e);
+ for (let t of vU) t(e);
+}
+function Qve(e) {
+ if (vU.add(e), _U) {
+ let t = _U;
+ _U = null, queueMicrotask(() => {
+ vU.has(e) && e(t);
});
}
return () => {
- _U.delete(e);
+ vU.delete(e);
};
}
// src/react/components/card.tsx
-var eye = "min-w-0", tye = {
+var $ve = "min-w-0", eye = {
filled: "bg-background-secondary-default",
outlined: "border border-separator-border bg-background-primary-default",
raised: "bg-background-primary-default"
-}, nye = {
+}, tye = {
default: "rounded-2xl shadow-card",
chart: "rounded-2-5xl",
surface: "rounded-surface",
plain: "rounded-2xl"
-}, rye = {
+}, nye = {
line: "border border-border-button-default",
soft: "border border-separator-border",
error: "outline-1 -outline-offset-1 outline-border-error-default"
-}, iye = {
+}, rye = {
none: "",
default: "p-5"
-}, aye = "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", oye = "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 yU(e = {}) {
+}, iye = "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", aye = "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 = {}) {
let { variant: t = "filled", padding: n = "default", interactive: r, selectable: i, bordered: a, className: o } = e, s = e.radius ?? (t === "outlined" ? "surface" : "default");
return [
- eye,
- tye[t],
- nye[s],
- iye[n],
- a ? rye[a] : "",
- r ? aye : "",
- i ? oye : "",
+ $ve,
+ eye[t],
+ tye[s],
+ rye[n],
+ a ? nye[a] : "",
+ r ? iye : "",
+ i ? aye : "",
o ?? ""
].filter(Boolean).join(" ");
}
// src/react/onboarding/guide-directory.tsx
-var sye = {
- browse: HB,
- collect: yB,
- watch: LB,
- manage: kB,
- experience: FB,
- discovery: VB,
- storage: CB,
- system: UB
-}, cye = {
- basics: SB,
- "find-play": HB,
- entities: qB,
- jav: DB,
- save: yB,
- follow: VB,
- insights: vB,
- viewing: LB,
- devices: WB,
- external: wB,
- maintenance: KB,
- appearance: FB,
- playback: LB,
- content: EB,
- "search-settings": HB,
- "jav-settings": DB,
- subscriptions: VB,
- library: CB,
- downloads: wB,
- network: WB,
- "app-maintenance": KB,
- diagnostics: Wge
+var oye = {
+ browse: UB,
+ collect: bB,
+ watch: RB,
+ manage: AB,
+ experience: IB,
+ discovery: HB,
+ storage: wB,
+ system: WB
+}, sye = {
+ 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: Uge
};
-function lye({ chapter: e, className: t = "size-5" }) {
- let n = cye[e] || SB;
+function cye({ chapter: e, className: t = "size-5" }) {
+ let n = sye[e] || CB;
return /* @__PURE__ */ (0, I.jsx)(n, {
"aria-hidden": !0,
className: J(t, "shrink-0")
});
}
-function bU({ icon: e, title: t, description: n, children: r, completed: i = !1 }) {
+function xU({ 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: yU({
+ className: bU({
radius: "plain",
className: "flex flex-col gap-4"
}),
@@ -48012,8 +48012,8 @@ function bU({ icon: e, title: t, description: n, children: r, completed: i = !1
})]
});
}
-function xU({ chapter: e, progress: t, loading: n, start: r }) {
- let i = hU(t, e), a = !i && !!t.chapters[e.id];
+function SU({ chapter: e, progress: t, loading: n, start: r }) {
+ let i = gU(t, e), a = !i && !!t.chapters[e.id];
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
disabled: n,
@@ -48023,7 +48023,7 @@ function xU({ chapter: e, progress: t, loading: n, start: r }) {
children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(lye, { chapter: e.id })
+ children: /* @__PURE__ */ (0, I.jsx)(cye, { chapter: e.id })
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 flex-1 flex-col gap-1",
@@ -48035,7 +48035,7 @@ function xU({ chapter: e, progress: t, loading: n, start: r }) {
children: e.summary
})]
}),
- i ? /* @__PURE__ */ (0, I.jsx)(SU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
+ i ? /* @__PURE__ */ (0, I.jsx)(CU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
className: "shrink-0 text-caption-1-regular tabular-nums text-text-secondary",
children: [
a ? "继续 · " : "",
@@ -48043,17 +48043,17 @@ function xU({ chapter: e, progress: t, loading: n, start: r }) {
" 步"
]
}),
- /* @__PURE__ */ (0, I.jsx)(gB, {
+ /* @__PURE__ */ (0, I.jsx)(_B, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0 text-text-secondary"
})
]
});
}
-function SU() {
+function CU() {
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)(bB, {
+ children: [/* @__PURE__ */ (0, I.jsx)(xB, {
"aria-hidden": !0,
className: "size-4"
}), /* @__PURE__ */ (0, I.jsx)("span", {
@@ -48062,17 +48062,17 @@ function SU() {
})]
});
}
-function uye({ kind: e, query: t, setQuery: n, context: r, progress: i, loading: a, start: o }) {
- let [s, c] = (0, F.useState)(null), l = mU.find((t) => t.id === (e === "interface" ? "basics" : "appearance")), u = hU(i, l), d = !u && !!i.chapters[l.id], f = t.trim().toLowerCase(), p = mU.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 lye({ 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));
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, I.jsxs)(bU, {
+ /* @__PURE__ */ (0, I.jsxs)(xU, {
completed: u,
- icon: e === "interface" ? SB : UB,
+ icon: e === "interface" ? CB : WB,
title: e === "interface" ? "先认识 Peach" : "按习惯调整 Peach",
description: e === "interface" ? "先用 4 步认识常用入口,其余功能用到时再看。" : "先了解外观与导航,其余设置按需要查看。",
- children: [u ? /* @__PURE__ */ (0, I.jsx)(SU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [u ? /* @__PURE__ */ (0, I.jsx)(CU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
className: "text-body-2-regular text-text-secondary",
children: [l.steps.length, " 步 · 随时可以退出"]
}), /* @__PURE__ */ (0, I.jsx)(Y, {
@@ -48085,26 +48085,26 @@ function uye({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
})
})]
}),
- /* @__PURE__ */ (0, I.jsx)(eV, {
+ /* @__PURE__ */ (0, I.jsx)(tV, {
"aria-label": "搜索教程",
value: t,
onChange: n,
- children: /* @__PURE__ */ (0, I.jsx)(nV, {
+ children: /* @__PURE__ */ (0, I.jsx)(rV, {
type: "search",
placeholder: e === "settings" ? "搜索设置名称或用途" : "搜索功能或页面",
- leadingIcon: HB
+ leadingIcon: UB
})
}),
f ? p.length ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-chapters",
- children: p.map((e) => /* @__PURE__ */ (0, I.jsx)(xU, {
+ children: p.map((e) => /* @__PURE__ */ (0, I.jsx)(SU, {
chapter: e,
progress: i,
loading: a,
start: o
}, e.id))
- }) : /* @__PURE__ */ (0, I.jsx)(sV, {
- icon: HB,
+ }) : /* @__PURE__ */ (0, I.jsx)(cV, {
+ icon: UB,
title: "没有匹配的教程",
size: "compact",
children: "试试功能名或设置名称。"
@@ -48122,12 +48122,12 @@ function uye({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
}) : null]
}), /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-topics",
- children: Kve.filter((t) => t.kind === e).map((e) => {
- let t = sye[e.id];
+ children: Gve.filter((t) => t.kind === e).map((e) => {
+ let t = oye[e.id];
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-guide-topic": e.id,
className: "peach-guide-topic",
- children: /* @__PURE__ */ (0, I.jsx)(FH, {
+ children: /* @__PURE__ */ (0, I.jsx)(IH, {
trailing: !0,
isOpen: s === e.id,
onOpenChange: (t) => c(t ? e.id : null),
@@ -48152,8 +48152,8 @@ function uye({ 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)(xU, {
- chapter: mU.find((t) => t.id === e),
+ children: e.chapters.map((e) => /* @__PURE__ */ (0, I.jsx)(SU, {
+ chapter: hU.find((t) => t.id === e),
progress: i,
loading: a,
start: o
@@ -48167,14 +48167,14 @@ function uye({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
});
}
// src/onboarding/guide-entry.ts
-var CU = "侧栏收起时,先点左上角的导航按钮。", wU = (...e) => ({
+var wU = "侧栏收起时,先点左上角的导航按钮。", TU = (...e) => ({
path: ["侧栏", ...e],
- hint: CU
-}), TU = (e) => ({
+ hint: wU
+}), EU = (e) => ({
path: ["侧栏底部的设置", e],
- hint: CU
+ hint: wU
});
-function dye(e) {
+function uye(e) {
if (e.surface) return e.id === "external" ? { path: [
"作品卡片",
"作品详情",
@@ -48192,7 +48192,7 @@ function dye(e) {
let [t = "/", n = ""] = e.route.split("#")[0].split("?"), r = t.split("/")[2];
if (t.startsWith("/settings/")) {
let e = kf[r];
- if (e) return TU(e);
+ if (e) return EU(e);
let t = Af[r];
if (t) return {
path: [
@@ -48200,11 +48200,11 @@ function dye(e) {
"Peach 配置",
t
],
- hint: CU
+ hint: wU
};
}
let i = new URLSearchParams(n);
- if (t === "/jav" || i.get("jav") === "1") return wU("JAV", iU.find(([e]) => e === (i.get("tab") || "library"))?.[1] || iU[0][1]);
+ if (t === "/jav" || i.get("jav") === "1") return TU("JAV", aU.find(([e]) => e === (i.get("tab") || "library"))?.[1] || aU[0][1]);
if (t === "/") {
switch (e.id) {
case "search": return {
@@ -48214,9 +48214,9 @@ function dye(e) {
case "navigation": return { path: ["左上角导航按钮", "侧栏中的浏览入口"] };
case "library": return {
path: ["侧栏顶部", "媒体库选择器"],
- hint: CU
+ hint: wU
};
- case "preferences": return TU(kf.appearance);
+ case "preferences": return EU(kf.appearance);
case "wall": return { path: ["页面顶部", "播放墙按钮"] };
case "immerse": return { path: ["页面顶部", "沉浸模式按钮"] };
case "cards":
@@ -48238,22 +48238,22 @@ function dye(e) {
hint: "来源、时长等更多筛选位于侧栏。"
};
}
- return wU("首页");
+ return TU("首页");
}
if ([
"/review",
"/quality-goals",
"/trash"
- ].includes(t)) return wU("管理", ep["/data-cleanup"].title, t === "/trash" ? "回收站" : ep[t].title);
+ ].includes(t)) return TU("管理", ep["/data-cleanup"].title, t === "/trash" ? "回收站" : ep[t].title);
let a = ep[t];
if (a?.nav && a.title) {
- let e = wU(a.title);
+ let e = TU(a.title);
return t === "/playlists" && (e.hint = "若侧栏没有播放列表,到设置 → 外观与导航 → 导航入口与顺序添加;手机上先展开侧栏。"), e;
}
- if (a?.section && a.title) return wU("管理", a.title);
+ if (a?.section && a.title) return TU("管理", a.title);
}
// src/react/onboarding/guide-help.tsx
-function fye({ details: e }) {
+function dye({ 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", {
@@ -48269,8 +48269,8 @@ function fye({ details: e }) {
}) : null;
}
// src/react/onboarding/guide-popover.tsx
-function pye({ step: e, position: t, total: n, missing: r, next: i, previous: a, close: o, invitation: s }) {
- let c = IV(), l = dye(e);
+function fye({ step: e, position: t, total: n, missing: r, next: i, previous: a, close: o, invitation: s }) {
+ let c = LV(), l = uye(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "peach-guide-popover-content",
onPointerDown: (e) => e.stopPropagation(),
@@ -48281,7 +48281,7 @@ function pye({ 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)(uV, {
+ }), /* @__PURE__ */ (0, I.jsx)(dV, {
label: s ? "关闭教程提示" : "结束导览",
onPress: o
})]
@@ -48298,7 +48298,7 @@ function pye({ 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)(Kge, {
+ children: [/* @__PURE__ */ (0, I.jsx)(Gge, {
className: "size-4 shrink-0",
"aria-hidden": "true"
}), "打开方式"]
@@ -48307,7 +48307,7 @@ function pye({ 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)(gB, {
+ children: [t ? /* @__PURE__ */ (0, I.jsx)(_B, {
className: "size-4 shrink-0 text-text-secondary",
"aria-hidden": "true"
}) : null, /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
@@ -48328,15 +48328,15 @@ function pye({ 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)(FH, {
+ e.details?.length ? /* @__PURE__ */ (0, I.jsx)(IH, {
summary: "更多说明",
- children: /* @__PURE__ */ (0, I.jsx)(fye, { details: e.details })
+ children: /* @__PURE__ */ (0, I.jsx)(dye, { 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)(oV, {
+ r ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "neutral",
children: e.surface ? "尚未取得可演示的视频或对应控件。请先添加视频,或跳过后稍后重看。" : "当前页面未显示这个入口,可能尚无内容、没有配置权限或仍在加载。可以跳过,稍后重看。"
}) : null
@@ -48390,14 +48390,14 @@ function pye({ step: e, position: t, total: n, missing: r, next: i, previous: a,
]
});
}
-function EU(e, t, n) {
+function DU(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)(pye, { ...n }))), () => i.unmount();
+ return (0, Rt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(fye, { ...n }))), () => i.unmount();
}
// src/react/onboarding/tutorial-center.tsx
-function mye({ go: e }) {
+function pye({ 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();
@@ -48411,8 +48411,8 @@ function mye({ go: e }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, I.jsxs)(bU, {
- icon: Gge,
+ /* @__PURE__ */ (0, I.jsxs)(xU, {
+ icon: Wge,
title: "从第一份收藏开始",
description: "连接媒体目录,查看入库结果,再打开馆藏。",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
@@ -48423,7 +48423,7 @@ function mye({ go: e }) {
children: "连接媒体目录"
})]
}),
- r ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ r ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
@@ -48439,7 +48439,7 @@ function mye({ go: e }) {
/* @__PURE__ */ (0, I.jsxs)("li", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(kB, {
+ children: /* @__PURE__ */ (0, I.jsx)(AB, {
"aria-hidden": !0,
className: "size-5"
})
@@ -48458,7 +48458,7 @@ function mye({ go: e }) {
/* @__PURE__ */ (0, I.jsxs)("li", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(r_e, {
+ children: /* @__PURE__ */ (0, I.jsx)(n_e, {
"aria-hidden": !0,
className: "size-5"
})
@@ -48477,7 +48477,7 @@ function mye({ go: e }) {
/* @__PURE__ */ (0, I.jsxs)("li", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(LB, {
+ children: /* @__PURE__ */ (0, I.jsx)(RB, {
"aria-hidden": !0,
className: "size-5"
})
@@ -48495,7 +48495,7 @@ function mye({ go: e }) {
] })
]
}),
- /* @__PURE__ */ (0, I.jsx)(FH, {
+ /* @__PURE__ */ (0, I.jsx)(IH, {
summary: "更多接入方式",
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-routes",
@@ -48504,31 +48504,31 @@ function mye({ go: e }) {
title: "关注创作者",
description: l ? "当前启用来源的必要凭据已具备。" : s.length ? "已有关注来源,请检查必要凭据。" : "添加想持续追踪的创作者与来源。",
path: "/subscriptions",
- icon: VB
+ icon: HB
},
{
title: "口味与记录",
description: t?.taste.history_sources ? `已导入 ${t.taste.history_sources} 份浏览器历史。` : "按需要导入浏览历史或书签。",
path: "/taste",
- icon: vB
+ icon: yB
},
{
title: "云下载与浏览器添加",
description: "连接渠道、设置目标目录,按需要配对用户脚本。",
path: "/settings/downloads",
- icon: wB
+ icon: TB
},
{
title: "手机访问",
description: "查看访问范围、地址与密码。",
path: "/settings/network",
- icon: WB
+ icon: GB
},
...u ? [{
title: "人工复核",
description: `当前有 ${u.toLocaleString()} 条待复核资料。`,
path: "/review",
- icon: bB
+ icon: xB
}] : []
].map(({ title: t, description: n, path: r, icon: i }) => /* @__PURE__ */ (0, I.jsxs)("div", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -48555,16 +48555,16 @@ function mye({ go: e }) {
]
});
}
-var DU = "tutorial-sync";
-function hye({ 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)(Jve), [d, f] = (0, F.useState)(!1), [p, m] = (0, F.useState)(""), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(!1), y = IV(), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(0), C = (0, F.useRef)(l);
+var OU = "tutorial-sync";
+function mye({ 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)(qve), [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);
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 Xve();
+ let n = await Yve();
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;
@@ -48574,7 +48574,7 @@ function hye({ actions: e }) {
let n = ++j.current;
A.current += 1, k.current = k.current.then(async () => {
try {
- let r = await Zve(e.campaign, t);
+ let r = await Xve(e.campaign, t);
M.current && n === j.current && ee(r);
} catch {
M.current && (m("教程进度未保存到本机账本,其他设备尚未同步。请重新读取后继续。"), n === j.current && await N(!1));
@@ -48584,8 +48584,8 @@ function hye({ actions: e }) {
});
}, P = (0, F.useRef)(N);
P.current = N, (0, F.useEffect)(() => {
- !p || t ? VV.dismiss(DU) : VV.error(p, {
- id: DU,
+ !p || t ? HV.dismiss(OU) : HV.error(p, {
+ id: OU,
toasterId: "receipts",
duration: Infinity,
action: {
@@ -48596,7 +48596,7 @@ function hye({ actions: e }) {
}
});
}, [p, t]), (0, F.useEffect)(() => () => {
- VV.dismiss(DU);
+ HV.dismiss(OU);
}, []), (0, F.useEffect)(() => {
if (!d && !p) return;
let e = document.getElementById("tutorialBtn");
@@ -48617,7 +48617,7 @@ function hye({ actions: e }) {
let i = !1, a = null;
return import("./peach-app.guide-driver-BZX0VpRC.js").then(({ createGuideSession: t }) => {
i || (a = t({
- mountPopover: EU,
+ mountPopover: DU,
invitation: !0,
navigate: e.navigate,
previous: () => {},
@@ -48656,12 +48656,12 @@ function hye({ actions: e }) {
D.current = !1;
});
document.addEventListener("input", e), document.addEventListener("change", e);
- let r = $ve((e) => {
+ let r = Qve((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 = mU.find((t) => t.id === e.chapter);
+ let r = hU.find((t) => t.id === e.chapter);
e.reopen ? (i(!1), te({
...C.current,
invited: !0,
@@ -48690,11 +48690,11 @@ function hye({ actions: e }) {
g("请先关闭当前详情或对话框,再开始导览。");
return;
}
- if (t.steps.some((e) => e.surface) && d8()?.miniplayerActive()) {
+ if (t.steps.some((e) => e.surface) && f8()?.miniplayerActive()) {
g("请先关闭正在播放的小窗,再开始播放器导览。");
return;
}
- let i = r ? Yve(C.current, t) : 0;
+ let i = r ? Jve(C.current, t) : 0;
if (D.current && t.steps.some((e) => e.route && e.route !== location.pathname)) {
g("当前配置表单有编辑内容。请先处理表单,再开启需要切换页面的章节。");
return;
@@ -48728,7 +48728,7 @@ function hye({ actions: e }) {
}), b.current?.show(t.steps[w.current], w.current, t.steps.length);
};
b.current = r({
- mountPopover: EU,
+ mountPopover: DU,
navigate: e.navigate,
close: () => {
ie(!0), o(t.kind);
@@ -48739,18 +48739,18 @@ function hye({ actions: e }) {
},
next: async (e = !1) => {
let n = w.current + 1;
- if (te(Qve(C.current, t.id, t.steps[w.current].id, n, e), {
+ if (te(Zve(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" && hU(C.current, t) && te({
+ if (t.id === "basics" && gU(C.current, t) && te({
...C.current,
completed: !0
}, { action: "complete" }), await k.current, a !== S.current) return;
- ie(!0), o(t.kind), g(hU(C.current, t) ? t.id === "basics" ? C.current.completed ? "快速导览已完成,所有设备的教程入口都会收起。以后可到设置 → Peach 配置 → 应用与维护 → 新手教程重新打开,其余内容按需查看。" : "导览已结束,但完成状态未保存。请重新读取教程状态后再试。" : "这段导览已完成。需要时再了解其他功能。" : "本章已结束,未显示的步骤尚未完成,可以稍后继续。");
+ ie(!0), o(t.kind), g(gU(C.current, t) ? t.id === "basics" ? C.current.completed ? "快速导览已完成,所有设备的教程入口都会收起。以后可到设置 → Peach 配置 → 应用与维护 → 新手教程重新打开,其余内容按需查看。" : "导览已结束,但完成状态未保存。请重新读取教程状态后再试。" : "这段导览已完成。需要时再了解其他功能。" : "本章已结束,未显示的步骤尚未完成,可以稍后继续。");
} else w.current = n, l();
}
}), l();
@@ -48763,8 +48763,8 @@ function hye({ actions: e }) {
O.current = (e, t) => {
se(e, t);
};
- let ce = qve(location.pathname);
- return (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: /* @__PURE__ */ (0, I.jsxs)(iV, {
+ let ce = Kve(location.pathname);
+ return (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: /* @__PURE__ */ (0, I.jsxs)(aV, {
isOpen: t,
onOpenChange: (e) => {
e || ae();
@@ -48779,18 +48779,18 @@ function hye({ actions: e }) {
id: "guideTitle",
className: "text-title-2-medium text-text-primary",
children: "新手教程"
- }), /* @__PURE__ */ (0, I.jsx)(uV, {
+ }), /* @__PURE__ */ (0, I.jsx)(dV, {
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)($H, {
+ children: /* @__PURE__ */ (0, I.jsx)(eU, {
"aria-label": "教程路径",
name: "guide-path",
orientation: "horizontal",
- className: eU,
+ className: tU,
value: a,
onChange: (e) => {
o(e), c(""), g("");
@@ -48799,9 +48799,9 @@ function hye({ actions: e }) {
["start", "开始使用"],
["interface", "界面导览"],
["settings", "设置导览"]
- ].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(kz, {
+ ].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Az, {
value: e,
- className: tU,
+ className: nU,
children: t
}, e))
})
@@ -48812,7 +48812,7 @@ function hye({ actions: e }) {
ref: y,
className: "peach-guide-body",
children: [
- p ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ p ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
className: "mb-4",
action: /* @__PURE__ */ (0, I.jsx)(Y, {
@@ -48824,12 +48824,12 @@ function hye({ actions: e }) {
}),
children: p
}) : null,
- h ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ h ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "neutral",
className: "mb-4",
children: h
}) : null,
- a === "start" ? /* @__PURE__ */ (0, I.jsx)(mye, { go: oe }) : /* @__PURE__ */ (0, I.jsx)(uye, {
+ a === "start" ? /* @__PURE__ */ (0, I.jsx)(pye, { go: oe }) : /* @__PURE__ */ (0, I.jsx)(lye, {
kind: a,
query: s,
setQuery: c,
@@ -48847,15 +48847,15 @@ function hye({ actions: e }) {
}) }), document.body);
}
// src/react/client-updates.tsx
-var gye = 12e4, _ye = 15e3, OU = () => document.visibilityState !== "hidden", kU = /* @__PURE__ */ new Set([
+var hye = 12e4, gye = 15e3, kU = () => document.visibilityState !== "hidden", AU = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), AU = "/settings/maintenance#releaseUpdates";
-function vye() {
+]), jU = "/settings/maintenance#releaseUpdates";
+function _ye() {
try {
let e = JSON.parse(document.getElementById("peach-client-runtime")?.textContent || "null");
return typeof e?.version == "string" && typeof e?.build_id == "string" ? {
@@ -48866,23 +48866,23 @@ function vye() {
return null;
}
}
-function jU() {
- let e = (0, F.useRef)(vye()), [t, n] = (0, F.useState)(null);
+function MU() {
+ let e = (0, F.useRef)(_ye()), [t, n] = (0, F.useState)(null);
return (0, F.useEffect)(() => {
let t = !1, r, i, a = async () => {
- if (t || !OU()) return;
+ if (t || !kU()) return;
let o = new AbortController();
i = o;
- let s = setTimeout(() => o.abort(), _ye);
+ let s = setTimeout(() => o.abort(), gye);
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 && OU() && (r = setTimeout(a, gye)));
+ clearTimeout(s), i === o && (i = void 0, !t && kU() && (r = setTimeout(a, hye)));
}
}, o = () => {
- clearTimeout(r), i?.abort(), i = void 0, OU() && a();
+ clearTimeout(r), i?.abort(), i = void 0, kU() && 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);
@@ -48892,12 +48892,12 @@ function jU() {
refresh: !!t && !!e.current && (t.runtime.version !== e.current.version || t.runtime.build_id !== e.current.build_id)
};
}
-function yye({ navigate: e }) {
- let { snapshot: t, refresh: n } = jU(), [r, i] = (0, F.useState)(""), a = document.querySelector("[data-network-banner]");
+function vye({ navigate: e }) {
+ let { snapshot: t, refresh: n } = MU(), [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" : kU.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" : AU.has(s.state) ? "preparing" : o.state === "available" && o.latest_version ? "available" : null;
if (!l) return null;
- let u = (s.state === "ready" || kU.has(s.state)) && s.version || o.latest_version, d = JSON.stringify(l === "refresh" ? [
+ let u = (s.state === "ready" || AU.has(s.state)) && s.version || o.latest_version, d = JSON.stringify(l === "refresh" ? [
l,
c.version,
c.build_id
@@ -48920,22 +48920,22 @@ function yye({ navigate: e }) {
children: [" Peach ", u]
}) : null] })] }), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex-wrap",
- children: [l === "refresh" ? /* @__PURE__ */ (0, I.jsx)(uH, {
+ children: [l === "refresh" ? /* @__PURE__ */ (0, I.jsx)(dH, {
variant: "secondary",
size: "small",
onClick: () => window.location.reload(),
"data-copy-key": "clientUpdates.refresh.action",
children: "刷新页面"
- }) : /* @__PURE__ */ (0, I.jsx)(uH, {
+ }) : /* @__PURE__ */ (0, I.jsx)(dH, {
variant: "secondary",
size: "small",
- href: AU,
+ href: jU,
onClick: (t) => {
- t.button !== 0 || t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || (t.preventDefault(), e(AU));
+ t.button !== 0 || t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || (t.preventDefault(), e(jU));
},
"data-copy-key": `clientUpdates.${l}.action`,
children: l === "preparing" ? "查看进度" : "查看更新"
- }), /* @__PURE__ */ (0, I.jsx)(uH, {
+ }), /* @__PURE__ */ (0, I.jsx)(dH, {
variant: "secondary",
size: "small",
onClick: () => i(d),
@@ -48946,8 +48946,8 @@ function yye({ navigate: e }) {
}, d), a);
}
// src/react/router/pages/settings.tsx
-function bye() {
- let e = (0, F.useContext)(KW), { pathname: t } = tf();
+function yye() {
+ let e = (0, F.useContext)(qW), { pathname: t } = tf();
return (0, F.useEffect)(() => {
e?.openSettings?.(Pf(t));
}, [e, t]), (0, F.useEffect)(() => () => {
@@ -48957,7 +48957,7 @@ function bye() {
}, [e]), null;
}
// src/junk-queue.ts
-var MU = [
+var NU = [
[
"",
"全部",
@@ -48993,40 +48993,40 @@ var MU = [
"其它",
"hard-drive"
]
-], xye = (e) => MU.find(([t]) => t === e)?.[0] ?? "";
-function NU(e) {
+], bye = (e) => NU.find(([t]) => t === e)?.[0] ?? "";
+function PU(e) {
let t = new URLSearchParams(e);
return {
- kind: xye(t.get("type")),
+ kind: bye(t.get("type")),
view: t.get("view") === "dismissed" ? "dismissed" : "pending"
};
}
-function PU(e = "", t = "pending") {
+function FU(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 FU(e) {
+function IU(e) {
return e === "dismissed" ? {
view: "pending",
label: "返回待判断",
glyph: "rotate-ccw",
- href: PU("", "pending")
+ href: FU("", "pending")
} : {
view: "dismissed",
label: "已排除",
glyph: "eye-off",
- href: PU("", "dismissed")
+ href: FU("", "dismissed")
};
}
-var IU = (e) => e === "dismissed" ? "已排除" : "待判断", LU = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
-function Sye({ kind: e, view: t }) {
- let n = MU.map(([n, r, i]) => `<a href="${PU(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${LU(i)}${z(r)}</a>`).join(""), r = FU(t);
- return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Ls(IU(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\"" : ""}>${LU(r.glyph)}${r.label}</a></nav></div></div></div>`;
+var LU = (e) => e === "dismissed" ? "已排除" : "待判断", RU = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
+function xye({ 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">${Ls(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>`;
}
// src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function Cye(e, t, n) {
+function Sye(e, t, n) {
(0, F.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -49040,7 +49040,7 @@ function Cye(e, t, n) {
n
]);
}
-function wye(e, t) {
+function Cye(e, t) {
let n = (0, F.useRef)(!1);
return (0, F.useEffect)(() => {
if (!e) return;
@@ -49053,33 +49053,33 @@ function wye(e, t) {
}, [e, t]), (e) => e && n.current ? (n.current = !1, !1) : !0;
}
// src/react/boardui/components/base/select/select.tsx
-var RU = (0, F.createContext)("md");
-function zU({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+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 }) {
let l = (0, F.useRef)(null), u = (0, F.useRef)(null), [d, f] = (0, F.useState)(!1);
- Cye(d, () => f(!1), [l, u]);
- let p = wye(d, l);
- return /* @__PURE__ */ (0, I.jsx)(Qme, {
+ Sye(d, () => f(!1), [l, u]);
+ let p = Cye(d, l);
+ return /* @__PURE__ */ (0, I.jsx)(Zme, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
className: J("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)(FL, {
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)(IL, {
ref: l,
className: J("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)(the, {
+ children: [/* @__PURE__ */ (0, I.jsx)(ehe, {
className: J("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, I.jsx)(p_e, { className: J("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, I.jsx)(cz, {
+ }), /* @__PURE__ */ (0, I.jsx)(f_e, { className: J("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, {
ref: u,
isNonModal: !0,
offset: 4,
- className: J(g_e, OV, "p-2", n),
- children: /* @__PURE__ */ (0, I.jsx)(bme, {
+ className: J(h_e, kV, "p-2", n),
+ children: /* @__PURE__ */ (0, I.jsx)(yme, {
items: a,
- className: J(__e, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, I.jsx)(RU.Provider, {
+ className: J(g_e, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, I.jsx)(zU.Provider, {
value: r,
children: i
})
@@ -49087,16 +49087,16 @@ function zU({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function BU({ className: e, children: t, ...n }) {
- let r = (0, F.useContext)(RU);
- return /* @__PURE__ */ (0, I.jsx)(Cme, {
+function VU({ className: e, children: t, ...n }) {
+ let r = (0, F.useContext)(zU);
+ return /* @__PURE__ */ (0, I.jsx)(Sme, {
...n,
- className: (t) => J(kV, 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) => J(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),
children: t
});
}
// src/react/boardui/components/base/badges/chip.tsx
-var VU = AI({
+var HU = jI({
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",
@@ -49115,15 +49115,15 @@ var VU = AI({
soft: "bg-background-secondary-default text-text-secondary"
}
});
-function HU({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+function UU({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
ref: r,
- className: J(VU.base, VU.variant[e], VU.color[t], n),
+ className: J(HU.base, HU.variant[e], HU.color[t], n),
...i
});
}
// src/react/components/art-slot.tsx
-function UU({ artwork: e, identity: t = e.html, relayout: n }) {
+function WU({ artwork: e, identity: t = e.html, relayout: n }) {
let [r, i] = (0, F.useState)({
identity: t,
artwork: e
@@ -49142,7 +49142,7 @@ function UU({ artwork: e, identity: t = e.html, relayout: n }) {
});
}
// src/react/activity/downloads-panel.tsx
-var WU = "/api/downloads", GU = ["downloads"], Tye = "/api/downloads/cancel", Eye = "/api/downloads/postprocess", KU = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, Dye = {
+var GU = "/api/downloads", KU = ["downloads"], wye = "/api/downloads/cancel", Tye = "/api/downloads/postprocess", qU = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, Eye = {
ingested: "lime",
failed: "rose",
cancelled: "neutral",
@@ -49152,21 +49152,21 @@ var WU = "/api/downloads", GU = ["downloads"], Tye = "/api/downloads/cancel", Ey
landed: "lime",
submitted: "neutral",
submit_pending: "yellow"
-}, qU = (e) => {
- let t = e.display_code || e.code || "", { title: n } = LI({
+}, JU = (e) => {
+ let t = e.display_code || e.code || "", { title: n } = RI({
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}`;
-}, JU = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", Oye = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");
-function kye() {
+}, YU = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", Dye = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");
+function Oye() {
let e = (0, F.useId)(), t = Lt({
- queryKey: [...GU, "pages"],
+ queryKey: [...KU, "pages"],
initialPageParam: null,
- queryFn: ({ signal: e, pageParam: t }) => B(`${WU}?limit=20${t === null ? "" : `&before_id=${t}`}`, e),
+ queryFn: ({ signal: e, pageParam: t }) => B(`${GU}?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) => KU(e) === 5e3) ? 5e3 : 3e4
+ refetchInterval: (e) => e.state.data?.pages.some((e) => qU(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",
@@ -49178,14 +49178,14 @@ function kye() {
className: "text-title-2-medium text-text-primary",
children: "云下载"
}),
- t.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ t.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
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)(Aye, {
+ children: r.map((e) => /* @__PURE__ */ (0, I.jsx)(kye, {
task: e,
writable: n[0]?.available ?? !1
}, e.id))
@@ -49193,9 +49193,9 @@ function kye() {
t.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
- leadingIcon: mB,
+ leadingIcon: hB,
className: "self-start",
- ...dV(t.isFetchingNextPage),
+ ...fV(t.isFetchingNextPage),
onClick: () => {
t.isFetching || t.fetchNextPage();
},
@@ -49204,16 +49204,16 @@ function kye() {
]
});
}
-function Aye({ task: e, writable: t }) {
- eL();
- let n = ae(), r = dH(), [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = JU(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 kye({ 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 = [
e.display_code || e.code ? "" : "番号未识别",
e.target,
- QI(e.submitted_at)
+ $I(e.submitted_at)
].filter(Boolean).join(" · "), h = () => {
- n.invalidateQueries({ queryKey: GU });
+ n.invalidateQueries({ queryKey: KU });
}, g = () => {
- r.run("cancel", (t) => V(Tye, { id: e.id }, "POST", t), h);
+ r.run("cancel", (t) => V(wye, { id: e.id }, "POST", t), h);
}, _ = () => {
let t = {
magnet: e.source_uri,
@@ -49223,16 +49223,16 @@ function Aye({ task: e, writable: t }) {
title: e.title,
origin: e.origin
};
- r.run("resubmit", (e) => V(WU, t, "POST", e), h);
+ r.run("resubmit", (e) => V(GU, t, "POST", e), h);
}, v = () => {
navigator.clipboard.writeText(e.source_uri).then(() => a(!0), () => a(!1));
}, y = () => {
- r.run("postprocess", (t) => V(Eye, { id: e.id }, "POST", t), h);
+ r.run("postprocess", (t) => V(Tye, { id: e.id }, "POST", t), h);
};
return /* @__PURE__ */ (0, I.jsxs)("li", {
"data-download-state": e.state,
"data-download-id": e.id,
- className: yU({
+ className: bU({
padding: "none",
bordered: p ? "error" : void 0,
className: "flex flex-col"
@@ -49243,14 +49243,14 @@ function Aye({ task: e, writable: t }) {
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-download-cover": "",
"data-media-pic": "",
- style: { "--card-ratio": String(sM) },
+ style: { "--card-ratio": String(cM) },
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)(UU, {
+ u?.has_cover ? /* @__PURE__ */ (0, I.jsx)(WU, {
artwork: {
kind: "cover",
html: Co(u, "big")
@@ -49260,7 +49260,7 @@ function Aye({ task: e, writable: t }) {
f ? /* @__PURE__ */ (0, I.jsx)("a", {
"data-download-cover-link": "",
href: f,
- "aria-label": `打开作品详情:${qU(e)}`,
+ "aria-label": `打开作品详情:${JU(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
]
@@ -49271,19 +49271,19 @@ function Aye({ 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: qU(e),
+ title: JU(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: qU(e)
- }) : qU(e)
+ children: JU(e)
+ }) : JU(e)
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(HU, {
- color: Dye[e.state] ?? "neutral",
+ children: [/* @__PURE__ */ (0, I.jsx)(UU, {
+ color: Eye[e.state] ?? "neutral",
children: e.state_label
- }), e.state === "ingested" ? /* @__PURE__ */ (0, I.jsx)(HU, {
+ }), e.state === "ingested" ? /* @__PURE__ */ (0, I.jsx)(UU, {
color: e.postprocess_state === "complete" ? "lime" : e.postprocess_state === "failed" ? "rose" : e.postprocess_state === "running" ? "blue" : "neutral",
children: e.postprocess_label
}) : null]
@@ -49293,7 +49293,7 @@ function Aye({ 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)(zH, {
+ children: /* @__PURE__ */ (0, I.jsx)(BH, {
source: e.provider,
label: e.provider_label
})
@@ -49320,7 +49320,7 @@ function Aye({ 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)(TH, {
+ e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, I.jsx)(EH, {
label: "远端下载进度",
value: Math.round(e.progress * 100),
max: 100
@@ -49330,7 +49330,7 @@ function Aye({ task: e, writable: t }) {
title: e.ledger_path,
children: e.ledger_path
}) : null,
- r.error ? /* @__PURE__ */ (0, I.jsx)(NH, { children: r.error }) : null,
+ r.error ? /* @__PURE__ */ (0, I.jsx)(PH, { 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",
@@ -49355,21 +49355,21 @@ function Aye({ task: e, writable: t }) {
e.cancellable ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
- ...dV(r.busy === "cancel"),
+ ...fV(r.busy === "cancel"),
onClick: g,
children: "取消"
}) : null,
e.resubmittable ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
- ...dV(r.busy === "resubmit"),
+ ...fV(r.busy === "resubmit"),
onClick: _,
children: "重新提交"
}) : null,
e.postprocess_retryable ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
- ...dV(r.busy === "postprocess"),
+ ...fV(r.busy === "postprocess"),
onClick: y,
children: "重试入库后整理"
}) : null
@@ -49384,41 +49384,41 @@ function Aye({ 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: qU(e)
+ children: JU(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 || Oye(e)
+ children: l || Dye(e)
})
}) : null
]
});
}
// src/react/activity/work-code.ts
-var YU = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), XU = (e, t) => !!YU(e) && YU(e) === YU(t);
+var XU = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), ZU = (e, t) => !!XU(e) && XU(e) === XU(t);
// src/react/components/ime.ts
-function ZU(e) {
+function QU(e) {
return e.isComposing || e.keyCode === 229;
}
// src/react/activity/resource-search.tsx
-function jye({ className: e }) {
+function Aye({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
className: e,
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: Vs("") }
});
}
-function Mye(e) {
+function jye(e) {
return ["中字", "中文字幕"].includes(e?.trim() ?? "") ? "chinese" : [
"无码",
"无码流出",
"无码破解"
].includes(e?.trim() ?? "") ? "uncensored" : "quality";
}
-function Nye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
- let [a, o] = (0, F.useState)(e), [s, c] = (0, F.useState)(() => Mye(t)), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(""), [p, m] = (0, F.useState)(null), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(""), y = dH(), b = (0, F.useRef)(null);
+function Mye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
+ let [a, o] = (0, F.useState)(e), [s, c] = (0, F.useState)(() => jye(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);
(0, F.useEffect)(() => () => b.current?.abort(), []);
let x = () => {
if (!a.trim() || y.busy) return;
@@ -49434,7 +49434,7 @@ function Nye({ 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) => XU(e.code, t));
+ let r = (n.items || []).find((e) => ZU(e.code, t));
i(r ? {
code: r.code,
title: String(r.catalog_title || r.name || ""),
@@ -49455,28 +49455,28 @@ function Nye({ 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)(MH, { children: [
+ t ? /* @__PURE__ */ (0, I.jsxs)(NH, { children: [
"版本目标:",
t,
"。可在下方调整搜索优先项;完整度与水印需要逐条复核。"
] }) : null,
- /* @__PURE__ */ (0, I.jsx)(rV, {
+ /* @__PURE__ */ (0, I.jsx)(iV, {
label: "按番号查找资源",
value: a,
maxLength: 80,
placeholder: "输入番号,按回车搜索",
enterKeyHint: "search",
- leadingIcon: y.busy ? jye : HB,
+ leadingIcon: y.busy ? Aye : UB,
isReadOnly: !!y.busy,
"aria-busy": !!y.busy,
onChange: o,
onKeyDown: (e) => {
- e.key === "Enter" && !ZU(e.nativeEvent) && (e.preventDefault(), x());
+ e.key === "Enter" && !QU(e.nativeEvent) && (e.preventDefault(), x());
}
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, I.jsx)(PH, { children: "优先寻找" }), /* @__PURE__ */ (0, I.jsxs)(zU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(FH, { children: "优先寻找" }), /* @__PURE__ */ (0, I.jsxs)(BU, {
"aria-label": "优先寻找",
selectedKey: s,
isDisabled: !!y.busy,
@@ -49484,15 +49484,15 @@ function Nye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
e !== null && c(String(e));
},
children: [
- /* @__PURE__ */ (0, I.jsx)(BU, {
+ /* @__PURE__ */ (0, I.jsx)(VU, {
id: "quality",
children: "高清"
}),
- /* @__PURE__ */ (0, I.jsx)(BU, {
+ /* @__PURE__ */ (0, I.jsx)(VU, {
id: "chinese",
children: "中字"
}),
- /* @__PURE__ */ (0, I.jsx)(BU, {
+ /* @__PURE__ */ (0, I.jsx)(VU, {
id: "uncensored",
children: "无码"
})
@@ -49501,32 +49501,32 @@ function Nye({ 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)(rV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(iV, {
label: "最小体积(GiB)",
inputMode: "decimal",
value: l,
onChange: u
- }), /* @__PURE__ */ (0, I.jsx)(rV, {
+ }), /* @__PURE__ */ (0, I.jsx)(iV, {
label: "最大体积(GiB)",
inputMode: "decimal",
value: d,
onChange: f
})]
}),
- y.busy ? /* @__PURE__ */ (0, I.jsx)(MH, {
+ y.busy ? /* @__PURE__ */ (0, I.jsx)(NH, {
role: "status",
children: "正在搜索资源"
}) : null,
- y.error ? /* @__PURE__ */ (0, I.jsx)(NH, { children: y.error }) : null,
- p?.error ? /* @__PURE__ */ (0, I.jsx)(MH, {
+ y.error ? /* @__PURE__ */ (0, I.jsx)(PH, { children: y.error }) : null,
+ p?.error ? /* @__PURE__ */ (0, I.jsx)(NH, {
role: "status",
children: p.error
}) : null,
- p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, I.jsx)(MH, {
+ p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, I.jsx)(NH, {
role: "status",
children: "没有符合条件的资源。"
}) : null,
- p?.warnings.map((e) => /* @__PURE__ */ (0, I.jsx)(MH, { children: e }, e)),
+ p?.warnings.map((e) => /* @__PURE__ */ (0, I.jsx)(NH, { 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", {
@@ -49536,7 +49536,7 @@ function Nye({ 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)(MH, { children: [
+ /* @__PURE__ */ (0, I.jsx)(NH, { children: [
e.size > 0 ? `${(e.size / 1024 ** 3).toFixed(2)} GiB` : "体积未取得",
e.seeders >= 0 ? `${e.seeders} 个做种` : "做种未取得",
e.resolution ? `${e.resolution}p` : "",
@@ -49560,20 +49560,20 @@ function Nye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
});
}
// src/react/activity/cloud-download-dialog.tsx
-var Pye = {
+var Nye = {
submitted: "已提交离线下载,进度在任务中心",
adopted: "这个磁力已有任务,没有重复提交",
adopted_remote: "网盘中已有相同的下载任务,Peach 已开始跟踪进度",
deferred: "网盘暂时没有响应,Peach 会自动重新提交,进度在任务中心"
};
-function QU({ prefill: e, close: t, receipt: n, provider: r }) {
- return /* @__PURE__ */ (0, I.jsx)(iV, {
+function $U({ prefill: e, close: t, receipt: n, provider: r }) {
+ return /* @__PURE__ */ (0, I.jsx)(aV, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
},
width: "form",
- children: e ? /* @__PURE__ */ (0, I.jsx)(Fye, {
+ children: e ? /* @__PURE__ */ (0, I.jsx)(Pye, {
prefill: e,
close: t,
receipt: n,
@@ -49581,26 +49581,26 @@ function QU({ prefill: e, close: t, receipt: n, provider: r }) {
}) : null
});
}
-function Fye({ prefill: e, close: t, receipt: n, provider: r }) {
+function Pye({ prefill: e, close: t, receipt: n, provider: r }) {
let i = Ft({
- queryKey: GU,
- queryFn: ({ signal: e }) => B(`${WU}?limit=50`, e),
- refetchInterval: (e) => KU(e.state.data)
+ queryKey: KU,
+ queryFn: ({ signal: e }) => B(`${GU}?limit=50`, e),
+ refetchInterval: (e) => qU(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)(LL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(RL, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "查找资源"
}), /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: xB,
+ leadingIcon: SB,
"aria-label": "关闭资源面板",
onClick: t
})]
});
- return a ? /* @__PURE__ */ (0, I.jsx)(Iye, {
+ return a ? /* @__PURE__ */ (0, I.jsx)(Fye, {
header: o,
snapshot: a,
prefill: e,
@@ -49613,7 +49613,7 @@ function Fye({ 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)(oV, {
+ children: i.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
children: lr(i.error)
}) : null
@@ -49629,8 +49629,8 @@ function Fye({ prefill: e, close: t, receipt: n, provider: r }) {
]
});
}
-function Iye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
- let o = ae(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, F.useState)(c?.key || ""), [d, f] = (0, F.useState)(""), [p, m] = (0, F.useState)(n.code ?? ""), [h, g] = (0, F.useState)(c?.target || ""), [_, v] = (0, F.useState)(n.code ? n : null), [y, b] = (0, F.useState)(""), x = t.available && s.some((e) => e.key === l), S = dH(), C = (0, F.useRef)(null), w = (e) => {
+function Fye({ 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) => {
u(e), g(s.find((t) => t.key === e)?.target ?? "");
};
return /* @__PURE__ */ (0, I.jsxs)("form", {
@@ -49646,14 +49646,14 @@ function Iye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
title: _?.title,
origin: _?.origin
};
- b(""), S.run("submit", (e) => V(WU, t, "POST", e), (e) => {
- o.invalidateQueries({ queryKey: GU });
- let t = Pye[e.outcome];
+ b(""), S.run("submit", (e) => V(GU, t, "POST", e), (e) => {
+ o.invalidateQueries({ queryKey: KU });
+ let t = Nye[e.outcome];
if (e.ok && t) {
i(t), r();
return;
}
- let n = JU(e.task);
+ let n = YU(e.task);
b(e.outcome === "refused" ? "这个资源被判为违规,不再提交。" : n ? `提交没有成功:${n}` : "提交没有成功。");
});
},
@@ -49677,7 +49677,7 @@ function Iye({ 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)(MH, { children: [
+ }), _ ? /* @__PURE__ */ (0, I.jsx)(NH, { children: [
_.performers,
_.studio,
_.release_date,
@@ -49685,22 +49685,22 @@ function Iye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
].filter(Boolean).join(" · ") }) : null]
})]
}) : null,
- /* @__PURE__ */ (0, I.jsx)(Nye, {
+ /* @__PURE__ */ (0, I.jsx)(Mye, {
initialCode: n.code ?? "",
reason: n.searchReason,
onSearch: (e) => {
- XU(e, _?.code) || (v(XU(e, n.code) ? n : null), f("")), m(e);
+ ZU(e, _?.code) || (v(ZU(e, n.code) ? n : null), f("")), m(e);
},
- onWork: (e) => v((t) => e ? XU(t?.code, e.code) ? {
+ onWork: (e) => v((t) => e ? ZU(t?.code, e.code) ? {
...t,
...e,
origin: t?.origin || e.origin
- } : e : XU(t?.code, n.code) ? t : null),
+ } : e : ZU(t?.code, n.code) ? t : null),
choose: (e, t) => {
f(e), m(t), C.current?.focus();
}
}),
- /* @__PURE__ */ (0, I.jsx)(rV, {
+ /* @__PURE__ */ (0, I.jsx)(iV, {
ref: C,
label: "磁力链接",
placeholder: "magnet:?xt=urn:btih:…",
@@ -49712,38 +49712,38 @@ function Iye({ 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)(PH, { children: "下载到" }),
- /* @__PURE__ */ (0, I.jsx)(zU, {
+ /* @__PURE__ */ (0, I.jsx)(FH, { children: "下载到" }),
+ /* @__PURE__ */ (0, I.jsx)(BU, {
"aria-label": "下载到",
selectedKey: l || null,
isDisabled: !s.length,
onSelectionChange: (e) => {
e !== null && w(String(e));
},
- children: s.map((e) => /* @__PURE__ */ (0, I.jsx)(BU, {
+ children: s.map((e) => /* @__PURE__ */ (0, I.jsx)(VU, {
id: e.key,
textValue: e.label,
- children: /* @__PURE__ */ (0, I.jsx)(zH, {
+ children: /* @__PURE__ */ (0, I.jsx)(BH, {
source: e.key,
label: e.label
})
}, e.key))
}),
- l === "115" ? /* @__PURE__ */ (0, I.jsx)(MH, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
+ l === "115" ? /* @__PURE__ */ (0, I.jsx)(NH, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
]
}),
- t.available ? null : /* @__PURE__ */ (0, I.jsx)(oV, {
+ t.available ? null : /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "neutral",
children: "云下载只在允许修改数据库的设备上可用。"
}),
- s.length ? null : /* @__PURE__ */ (0, I.jsxs)(oV, {
+ s.length ? null : /* @__PURE__ */ (0, I.jsxs)(sV, {
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)(rV, {
+ /* @__PURE__ */ (0, I.jsx)(iV, {
label: "目标目录",
placeholder: "/云下载",
autoComplete: "off",
@@ -49751,17 +49751,17 @@ function Iye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
value: h,
onChange: g
}),
- n.code ? null : /* @__PURE__ */ (0, I.jsx)(rV, {
+ n.code ? null : /* @__PURE__ */ (0, I.jsx)(iV, {
label: "番号",
placeholder: "可不填",
autoComplete: "off",
maxLength: 60,
value: p,
onChange: (e) => {
- m(e), XU(e, _?.code) || v(null);
+ m(e), ZU(e, _?.code) || v(null);
}
}),
- y || S.error ? /* @__PURE__ */ (0, I.jsx)(NH, { children: y || S.error }) : null
+ y || S.error ? /* @__PURE__ */ (0, I.jsx)(PH, { children: y || S.error }) : null
]
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -49773,7 +49773,7 @@ function Iye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
}), /* @__PURE__ */ (0, I.jsx)(Y, {
type: "submit",
disabled: !d.trim() || !x,
- ...dV(S.busy === "submit"),
+ ...fV(S.busy === "submit"),
children: "提交下载"
})]
})
@@ -49781,18 +49781,18 @@ function Iye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
});
}
// src/react/wants/wants.ts
-var $U = "/api/wants", eW = ["wants"], Lye = (e) => [
+var eW = "/api/wants", tW = ["wants"], Iye = (e) => [
"wants",
"follow",
e
-], Rye = [
+], Lye = [
["searching", "待找"],
["unreleased", "未发售"],
["given_up", "暂时放弃"],
["acquired", "已入库"]
-], tW = (e) => B($U, e);
-function zye(e, t) {
- H.setQueryData(eW, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
+], nW = (e) => B(eW, e);
+function Rye(e, t) {
+ H.setQueryData(tW, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
...n,
items: n.items.map((n) => n.id === e ? {
...n,
@@ -49800,21 +49800,21 @@ function zye(e, t) {
} : n)
} : n);
}
-var Bye = (e, t) => B(`${$U}?follow=${encodeURIComponent(e)}`, t), nW = (e, t) => V($U, {
+var zye = (e, t) => B(`${eW}?follow=${encodeURIComponent(e)}`, t), rW = (e, t) => V(eW, {
action: "add",
...e
-}, "POST", t), rW = (e, t) => V($U, {
+}, "POST", t), iW = (e, t) => V(eW, {
action: "remove",
ids: e
-}, "POST", t), Vye = (e, t) => V($U, {
+}, "POST", t), Bye = (e, t) => V(eW, {
action: "reset",
ids: e
-}, "POST", t), iW = () => H.invalidateQueries({ queryKey: eW }), Hye = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
-function Uye(e) {
+}, "POST", t), aW = () => H.invalidateQueries({ queryKey: tW }), Vye = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
+function Hye(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 aW = [
+var oW = [
[
"taste",
"口味",
@@ -49822,7 +49822,7 @@ var aW = [
],
[
"release_date",
- Tj[1],
+ Ej[1],
"按发行日期排序"
],
[
@@ -49840,10 +49840,10 @@ var aW = [
"番号",
"按番号排序"
]
-], oW = [
+], sW = [
[
"release_date",
- Tj[1],
+ Ej[1],
"按发行日期排序"
],
[
@@ -49867,10 +49867,10 @@ var aW = [
"按口味匹配排序"
]
];
-function Wye(e) {
+function Uye(e) {
return typeof e == "number" && Number.isFinite(e) ? e.toFixed(3) : "—";
}
-function Gye(e) {
+function Wye(e) {
if (typeof e != "number" || !Number.isFinite(e)) return {
score: "—",
label: "资料未取得",
@@ -49895,7 +49895,7 @@ function Gye(e) {
};
}
// src/react/jav/jav.ts
-function Kye(e) {
+function Gye(e) {
let t = new URLSearchParams(location.search);
for (let [n, r] of Object.entries(e)) r ? t.set(n, r) : t.delete(n);
Fp(location.pathname + (t.size ? `?${t}` : ""), {
@@ -49903,13 +49903,13 @@ function Kye(e) {
state: Pp.navigation.location.state
});
}
-var sW = (e, t = "taste", n = "desc") => [
+var cW = (e, t = "taste", n = "desc") => [
"jav-discoveries",
e,
t,
n
];
-function cW(e, t, n = {}) {
+function lW(e, t, n = {}) {
let r = new URLSearchParams({
scope: e,
limit: "100",
@@ -49918,7 +49918,7 @@ function cW(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 lW(e) {
+function uW(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),
@@ -49926,12 +49926,12 @@ function lW(e) {
studio: t.get("studio") || "",
tag: t.get("tag") || "",
q: (t.get("q") || "").trim(),
- sort: n === "random" && r ? "random" : oW.find(([e]) => e === n)?.[0] || "release_date",
+ sort: n === "random" && r ? "random" : sW.find(([e]) => e === n)?.[0] || "release_date",
dir: t.get("dir") === "asc" ? "asc" : "desc",
seed: r
};
}
-var uW = (e) => [
+var dW = (e) => [
"jav-releases",
e.page,
e.performer,
@@ -49942,7 +49942,7 @@ var uW = (e) => [
e.dir,
e.seed
];
-function dW(e, t, n = "") {
+function fW(e, t, n = "") {
let r = new URLSearchParams({
page: String(e.page),
size: "24",
@@ -49958,7 +49958,7 @@ function dW(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 qye(e, t, n) {
+function Kye(e, t, n) {
let r = To({
...e,
is_jav: !0
@@ -49967,40 +49967,40 @@ function qye(e, t, n) {
let i = z(po(e));
return Co(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 Jye(e, t) {
+async function qye(e, t) {
if (e === "wants") await H.ensureQueryData({
- queryKey: eW,
- queryFn: () => tW(t),
+ queryKey: tW,
+ queryFn: () => nW(t),
staleTime: 3e4,
revalidateIfStale: !0
});
else if (e === "discover") await H.ensureQueryData({
- queryKey: sW("external"),
- queryFn: () => cW("external", t),
+ queryKey: cW("external"),
+ queryFn: () => lW("external", t),
staleTime: 3e4,
revalidateIfStale: !0
});
else if (e === "releases") {
- let e = lW(location.search);
+ let e = uW(location.search);
await H.ensureQueryData({
- queryKey: uW(e),
- queryFn: () => dW(e, t),
+ queryKey: dW(e),
+ queryFn: () => fW(e, t),
staleTime: 3e4,
revalidateIfStale: !0
});
}
}
// src/react/components/board-tabs.tsx
-function fW({ value: e }) {
+function pW({ 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 Yye = "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 pW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {
- let a = (0, F.useRef)(null), o = oL(a);
+var Jye = "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);
return (0, F.useLayoutEffect)(() => {
let e = a.current;
e && (() => {
@@ -50009,7 +50009,7 @@ function pW({ 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)(MI, {
+ }, [t]), /* @__PURE__ */ (0, I.jsx)(NI, {
ref: o,
role: "tablist",
"aria-label": n,
@@ -50024,7 +50024,7 @@ function pW({ 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 ? lV(e.symbol) : null, i = e.value === t;
+ let n = e.symbol ? uV(e.symbol) : null, i = e.value === t;
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
role: "tab",
@@ -50033,7 +50033,7 @@ function pW({ 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: Yye,
+ className: Jye,
onClick: () => {
i || r(e.value);
},
@@ -50043,7 +50043,7 @@ function pW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
});
}
// src/react/jav/jav-header.tsx
-function mW({ tab: e, navigate: t, find: n, search: r }) {
+function hW({ 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", {
@@ -50062,32 +50062,32 @@ function mW({ tab: e, navigate: t, find: n, search: r }) {
children: "查找资源"
})
]
- }), /* @__PURE__ */ (0, I.jsx)(pW, {
- tabs: iU.map(([e, t]) => ({
+ }), /* @__PURE__ */ (0, I.jsx)(mW, {
+ tabs: aU.map(([e, t]) => ({
value: e,
label: t
})),
value: e,
label: "JAV 分区",
className: "",
- onChange: (e) => t(oU(e))
+ onChange: (e) => t(sU(e))
})]
});
}
-function Xye({ navigate: e, receipt: t }) {
+function Yye({ navigate: e, receipt: t }) {
let [n, r] = (0, F.useState)(null);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(mW, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(hW, {
tab: "library",
navigate: e,
find: () => r({})
- }), /* @__PURE__ */ (0, I.jsx)(QU, {
+ }), /* @__PURE__ */ (0, I.jsx)($U, {
prefill: n,
close: () => r(null),
receipt: t
})] });
}
// src/react/video-wall/folia/blockReflows.ts
-var Zye = [
+var Xye = [
[
[
{
@@ -53648,7 +53648,7 @@ var Zye = [
}
]
]
-], hW = [
+], gW = [
[
{
x: 0,
@@ -53945,89 +53945,89 @@ var Zye = [
rows: 2
}
]
-], gW = (e) => e.map((e) => ({
+], _W = (e) => e.map((e) => ({
...e,
x: 12 - e.x - e.cols
-})), _W = (e) => e.map((e) => ({
+})), vW = (e) => e.map((e) => ({
...e,
y: 8 - e.y - e.rows
-})), vW = [
+})), yW = [
(e) => e,
- gW,
_W,
- (e) => gW(_W(e))
-], yW = hW.flatMap((e) => vW.map((t) => t(e))), Qye = Zye.flatMap((e) => vW.map((t) => e.map(t)));
-yW.length;
-var $ye = (e, t) => {
+ vW,
+ (e) => _W(vW(e))
+], bW = gW.flatMap((e) => yW.map((t) => t(e))), Zye = Xye.flatMap((e) => yW.map((t) => e.map(t)));
+bW.length;
+var Qye = (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;
-}, bW = (e, t) => {
- let n = hW.length;
- return ((e + t * 2) % n + n) % n * vW.length + $ye(e, t) % vW.length;
-}, ebe = (e, t) => yW[bW(e, t)], tbe = (e, t, n) => n < 0 || n >= 12 ? null : Qye[bW(e, t)][n], xW = 103.36, SW = 6.08, CW = 12 * xW, wW = 8 * xW, TW = 12, EW = (e, t) => (e % t + t) % t, nbe = (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 DW(e, t) {
- let n = Math.max(1, Math.ceil(e / TW)), r = t ? 3 : Math.min(3, n);
+}, xW = (e, t) => {
+ let n = gW.length;
+ return ((e + t * 2) % n + n) % n * yW.length + Qye(e, t) % yW.length;
+}, $ye = (e, t) => bW[xW(e, t)], ebe = (e, t, n) => n < 0 || n >= 12 ? null : Zye[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, tbe = (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);
return {
columns: r,
- width: r * CW,
- height: Math.ceil(n / r) * wW
+ width: r * wW,
+ height: Math.ceil(n / r) * TW
};
}
-function OW(e, t, n) {
- let { x: r, y: i, cols: a, rows: o } = ebe(e, t)[n];
+function kW(e, t, n) {
+ let { x: r, y: i, cols: a, rows: o } = $ye(e, t)[n];
return {
- x: e * CW + r * xW,
- y: t * wW + i * xW,
- width: a * xW - SW,
- height: o * xW - SW
+ x: e * wW + r * SW,
+ y: t * TW + i * SW,
+ width: a * SW - CW,
+ height: o * SW - CW
};
}
-function rbe(e) {
+function nbe(e) {
return (!e.medium || e.medium === "video") && !!e.has_cover && !!(e.cover_key || e.code);
}
-function kW(e, t, n) {
+function AW(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 >= TW) return null;
- let o = DW(e, t), s = o.height / wW;
+ ].every(Number.isInteger) || a < 0 || a >= EW) return null;
+ let o = OW(e, t), s = o.height / TW;
if (t && (r < 0 || r >= o.columns || i < 0 || i >= s)) return null;
- let c = t ? r : EW(r, o.columns), l = ((t ? i : EW(i, s)) * o.columns + c) * TW + a;
+ let c = t ? r : DW(r, o.columns), l = ((t ? i : DW(i, s)) * o.columns + c) * EW + a;
return t && l >= e ? null : {
- ...OW(r, i, a),
+ ...kW(r, i, a),
index: l % e,
key: n
};
}
-function ibe(e, t) {
+function rbe(e, t) {
if (t < 0 || t >= e) return null;
- let n = Math.floor(t / TW);
- return kW(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % TW}`);
+ let n = Math.floor(t / EW);
+ return AW(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % EW}`);
}
-function AW(e, t, n) {
- let [r, i, a] = n.key.split(":").map(Number), o = tbe(r, i, a);
+function jW(e, t, n) {
+ let [r, i, a] = n.key.split(":").map(Number), o = ebe(r, i, a);
return new Map((o || []).map((e, t) => [`${r}:${i}:${t}`, {
- x: r * CW + e.x * xW,
- y: i * wW + e.y * xW,
- width: e.cols * xW - SW,
- height: e.rows * xW - SW
+ x: r * wW + e.x * SW,
+ y: i * TW + e.y * SW,
+ width: e.cols * SW - CW,
+ height: e.rows * SW - CW
}]));
}
-function abe(e) {
+function ibe(e) {
let t = 0, n = 0;
for (let r = Math.max(0, e - 36); r < e; r += 1) {
- let e = Math.floor(r / TW), i = OW(e % 3, Math.floor(e / 3), r % TW);
+ let e = Math.floor(r / EW), i = kW(e % 3, Math.floor(e / 3), r % EW);
t = Math.max(t, i.x + i.width), n = Math.max(n, i.y + i.height);
}
return {
- width: e >= 36 ? 3 * CW - SW : t,
+ width: e >= 36 ? 3 * wW - CW : t,
height: n
};
}
-function obe(e, t, n, r) {
+function abe(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 {
@@ -54036,22 +54036,22 @@ function obe(e, t, n, r) {
y: i(e.y, n.height, t.height)
};
}
-function jW(e, t, n, r) {
+function MW(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 = DW(e, t), s = o.height / wW, c = [];
- for (let n = Math.floor(a.y / wW); n <= Math.floor((a.y + a.height) / wW); n += 1) for (let r = Math.floor(a.x / CW); r <= Math.floor((a.x + a.width) / CW); r += 1) {
+ }, 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) {
if (t && (r < 0 || r >= o.columns || n < 0 || n >= s)) continue;
- let i = t ? r : EW(r, o.columns), l = t ? n : EW(n, s);
- for (let s = 0; s < TW; s += 1) {
- let u = (l * o.columns + i) * TW + s;
+ 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;
if (t && u >= e) continue;
- let d = OW(r, n, s);
- nbe(d, a) && c.push({
+ let d = kW(r, n, s);
+ tbe(d, a) && c.push({
...d,
index: u % e,
key: `${r}:${n}:${s}`
@@ -54060,7 +54060,7 @@ function jW(e, t, n, r) {
}
return c;
}
-var sbe = class {
+var obe = class {
positions = /* @__PURE__ */ new Map();
used = /* @__PURE__ */ new Set();
cursor = 0;
@@ -54072,7 +54072,7 @@ var sbe = class {
this.cursor = e;
}
tile(e, t) {
- let n = this.positions.get(e), r = n === void 0 ? null : kW(t, !1, e);
+ let n = this.positions.get(e), r = n === void 0 ? null : AW(t, !1, e);
return r ? {
...r,
index: n
@@ -54102,7 +54102,7 @@ var sbe = class {
let e = 0;
for (let t of this.positions.keys()) e = Math.max(e, Number(t.split(":")[0]));
return {
- x: (e + 2) * CW,
+ x: (e + 2) * wW,
y: 0
};
}
@@ -54115,10 +54115,10 @@ var sbe = class {
c < i && (r = s, i = c);
}
if (r) return r;
- let a = this.fresh(), o = `${Math.round(a.x / CW)}:0:0`;
+ let a = this.fresh(), o = `${Math.round(a.x / wW)}:0:0`;
return this.positions.set(o, t), this.used.add(t), this.tile(o, e);
}
-}, MW = [
+}, NW = [
"q",
"performer",
"series",
@@ -54133,39 +54133,39 @@ var sbe = class {
"dur_max",
"region"
];
-function cbe(e = {}) {
- return MW.some((t) => !!e[t]);
+function sbe(e = {}) {
+ return NW.some((t) => !!e[t]);
}
// src/react/video-wall/wall-boot.ts
-function lbe() {
+function cbe() {
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 = jW(12, !1, {
+ t.querySelector("[data-wall-world]").innerHTML = MW(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 NW() {
+function PW() {
document.querySelectorAll("[data-wall-boot]").forEach((e) => e.remove());
}
// src/react/router/pages/catalog.tsx
-var ube = () => mu, PW = Pp.navigation.seq, FW = Pp.navigation.openEpoch, IW = Pp.navigation.location.pathname, LW = {
- seq: PW,
+var lbe = () => mu, FW = Pp.navigation.seq, IW = Pp.navigation.openEpoch, LW = Pp.navigation.location.pathname, RW = {
+ seq: FW,
claimed: !0,
- from: IW
+ from: LW
};
Pp.listen((e) => {
- LW = {
+ RW = {
seq: e.seq,
- claimed: e.openEpoch === FW,
- from: IW
- }, FW = e.openEpoch, IW = e.location.pathname;
+ claimed: e.openEpoch === IW,
+ from: LW
+ }, IW = e.openEpoch, LW = e.location.pathname;
});
-var RW = !1;
-function zW(e) {
+var zW = !1;
+function BW(e) {
let { seq: t, openEpoch: n, location: r } = Pp.navigation, i = Vf(r.pathname), a = Lp() ?? r, o = U ?? {};
return {
seq: t,
@@ -54177,7 +54177,7 @@ function zW(e) {
opened: e
};
}
-function dbe(e, t, n, r) {
+function ube(e, t, n, r) {
let i = { ...U }, a = gm("catalog");
if (a) return { ...a };
if (e === "/trash") return {
@@ -54189,7 +54189,7 @@ function dbe(e, t, n, r) {
state: "trash",
q: ""
};
- let o = new URLSearchParams(t), { defaultSort: s, defaultSortDirection: c } = Qj().value;
+ let o = new URLSearchParams(t), { defaultSort: s, defaultSortDirection: c } = $j().value;
return {
...i,
loc: o.get("loc") ?? r.defaultLoc(),
@@ -54203,7 +54203,7 @@ function dbe(e, t, n, r) {
dur_max: o.get("dur_max") || "",
orient: o.get("orient") || "",
state: kn[e] || o.get("state") || "",
- ...Nj(o.get("sort"), o.get("dir"), s, c),
+ ...Pj(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") || "",
@@ -54214,14 +54214,14 @@ function dbe(e, t, n, r) {
folder_recursive: o.get("folder_recursive") === "0" ? "0" : ""
};
}
-function BW(e) {
+function VW(e) {
let t = Pp.navigation.seq;
hm("catalog", { ...U });
let n = e(), r = () => Pp.navigation.seq === t, i = () => document.querySelector("#grid");
ym(r, i(), { pending: !0 }), Promise.resolve(n).then(() => ym(r, i()));
}
-function fbe(e, t) {
- let n = { ...e }, r = zW(n.opened);
+function dbe(e, t) {
+ let n = { ...e }, r = BW(n.opened);
Object.assign(e, r);
let i = t.catalog;
if (!i || r.opens === 0) return;
@@ -54233,39 +54233,39 @@ function fbe(e, t) {
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;
- BW(() => i.load());
+ VW(() => i.load());
return;
}
- r.epoch !== n.epoch && (a = Pp.navigation.action === "POP" && LW.from !== "/");
+ r.epoch !== n.epoch && (a = Pp.navigation.action === "POP" && RW.from !== "/");
}
let { pathname: o, search: s } = Pp.navigation.location;
if (o === "/" && new URLSearchParams(s).get("state") === "ads") {
- let { kind: e, view: t } = NU(s);
- RW = !0, Fp(PU(e, t), { replace: !0 });
+ let { kind: e, view: t } = PU(s);
+ zW = !0, Fp(FU(e, t), { replace: !0 });
return;
}
- let c = RW;
- RW = !1, a &&= o === "/" && !_m(), e.opened = !0, W({ state: dbe(o, s, a, i) }), BW(() => i.open(o, {
+ let c = zW;
+ zW = !1, a &&= o === "/" && !_m(), e.opened = !0, W({ state: ube(o, s, a, i) }), VW(() => i.open(o, {
entering: a,
retitle: c
}));
}
-function pbe() {
- let e = (0, F.useContext)(KW), t = GW(), n = (0, F.useSyncExternalStore)(wu, ube), r = tf(), i = (0, F.useRef)(null), a = (0, F.useRef)({
+function fbe() {
+ let e = (0, F.useContext)(qW), t = KW(), n = (0, F.useSyncExternalStore)(wu, lbe), r = tf(), 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 = zW(!Vf(Pp.navigation.location.pathname));
- return !t.covered && t.opens > 0 && (RW || LW.seq === PW ? t.opens = -1 : LW.claimed ? t.seq = -1 : t.epoch = -1), i.current = t, () => {
+ let t = BW(!Vf(Pp.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, () => {
e.mounted = !1;
};
}, []), (0, F.useEffect)(() => {
let t = a.current;
!t.queued && e && (t.queued = !0, queueMicrotask(() => {
- t.queued = !1, t.mounted && i.current && fbe(i.current, e);
+ t.queued = !1, t.mounted && i.current && dbe(i.current, e);
}));
}, [
t,
@@ -54274,7 +54274,7 @@ function pbe() {
e
]), null;
}
-function VW() {
+function HW() {
let { pathname: e } = tf();
return (0, F.useLayoutEffect)(() => {
if (e !== "/wall") return;
@@ -54283,23 +54283,23 @@ function VW() {
return t.forEach((e) => {
e.inert = !0;
}), () => {
- document.body.removeAttribute("data-wall-open"), NW(), t.forEach((e, t) => {
+ document.body.removeAttribute("data-wall-open"), PW(), t.forEach((e, t) => {
e.inert = n[t] || !1;
});
};
- }, [e]), Vf(e) && !Bf(e) ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(pbe, {}, e === "/junk-files" ? "/junk-files" : "/"), jn(e) ? /* @__PURE__ */ (0, I.jsx)(ZW, {}) : null] });
+ }, [e]), Vf(e) && !Bf(e) ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(fbe, {}, e === "/junk-files" ? "/junk-files" : "/"), jn(e) ? /* @__PURE__ */ (0, I.jsx)(QW, {}) : null] });
}
-function mbe() {
- let e = (0, F.useContext)(KW), t = document.getElementById("javLibraryHeader");
- return t && e ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Xye, {
+function pbe() {
+ let e = (0, F.useContext)(qW), t = document.getElementById("javLibraryHeader");
+ return t && e ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Yye, {
navigate: e.navigate,
receipt: (t) => e.receipt(t)
}), t) : null;
}
// src/react/router/pages/overlay.tsx
-var HW = () => mu, hbe = () => hu;
-function gbe() {
- let e = (0, F.useContext)(KW), t = (0, F.useSyncExternalStore)(wu, hbe), n = (0, F.useSyncExternalStore)(wu, HW);
+var UW = () => mu, mbe = () => hu;
+function hbe() {
+ let e = (0, F.useContext)(qW), t = (0, F.useSyncExternalStore)(wu, mbe), n = (0, F.useSyncExternalStore)(wu, UW);
return (0, F.useEffect)(() => {
if (!t || !n) return;
let r = !0;
@@ -54314,8 +54314,8 @@ function gbe() {
e
]), null;
}
-function UW(e, t = !1) {
- let n = (0, F.useSyncExternalStore)(wu, HW), r = (0, F.useRef)(void 0);
+function WW(e, t = !1) {
+ let n = (0, F.useSyncExternalStore)(wu, UW), r = (0, F.useRef)(void 0);
if (r.current === void 0) {
let { claimed: e } = Pp.navigation;
r.current = mu === 0 || Ip() ? "boot" : e && !t ? null : "history";
@@ -54334,11 +54334,11 @@ function UW(e, t = !1) {
}));
}, [n]);
}
-function _be() {
- let e = (0, F.useContext)(KW), t = (0, F.useRef)(e);
+function gbe() {
+ let e = (0, F.useContext)(qW), t = (0, F.useRef)(e);
return (0, F.useLayoutEffect)(() => {
t.current = e;
- }, [e]), UW((t) => {
+ }, [e]), WW((t) => {
let n = Pp.navigation.location, { pathname: r, search: i } = Nf(n.pathname) && If(n.state) || n, a = Bf(r, i);
e && a && (Kf(), t || qf(Pp.navigation.location.state), e.openOverlay(a));
}, !0), (0, F.useEffect)(() => () => {
@@ -54347,8 +54347,8 @@ function _be() {
});
}, []), null;
}
-function vbe({ path: e }) {
- GW();
+function _be({ path: e }) {
+ KW();
let { location: t, seq: n, action: r } = Pp.navigation, i = Nf(t.pathname) ? If(t.state) : null, a = (i || t).pathname + (i || t).search, o = (0, F.useRef)({
identity: a,
seq: i?.seq ?? n,
@@ -54360,24 +54360,24 @@ function vbe({ path: e }) {
seq: n,
navigationSeq: n,
settings: !1
- }), /* @__PURE__ */ (0, I.jsx)(_be, {}, `${e} ${o.current.seq}`);
+ }), /* @__PURE__ */ (0, I.jsx)(gbe, {}, `${e} ${o.current.seq}`);
}
-function ybe() {
- let e = (0, F.useContext)(KW);
- return UW(() => {
+function vbe() {
+ let e = (0, F.useContext)(qW);
+ return WW(() => {
e?.follow?.ground();
}), null;
}
-function bbe() {
- return /* @__PURE__ */ (0, I.jsx)(ybe, {}, GW());
+function ybe() {
+ return /* @__PURE__ */ (0, I.jsx)(vbe, {}, KW());
}
// src/react/router/router.tsx
-var WW = (0, F.createContext)(0), GW = () => (0, F.useContext)(WW), KW = (0, F.createContext)(null);
-function xbe({ children: e }) {
+var GW = (0, F.createContext)(0), KW = () => (0, F.useContext)(GW), qW = (0, F.createContext)(null);
+function bbe({ children: e }) {
let [t, n] = (0, F.useState)(() => Pp.navigation);
return (0, F.useLayoutEffect)(() => (n(Pp.navigation), Pp.listen((e) => {
(0, Rt.flushSync)(() => n(e));
- })), []), /* @__PURE__ */ (0, I.jsx)(WW.Provider, {
+ })), []), /* @__PURE__ */ (0, I.jsx)(GW.Provider, {
value: t.openEpoch,
children: /* @__PURE__ */ (0, I.jsx)(Ef, {
location: t.location,
@@ -54387,34 +54387,34 @@ function xbe({ children: e }) {
})
});
}
-function Sbe({ target: e }) {
+function xbe({ target: e }) {
let t = rf();
return (0, F.useLayoutEffect)(() => {
e.current = t;
}), null;
}
-function Cbe(e, t, n) {
+function Sbe(e, t, n) {
let r = new URL(e, window.location.href);
- V6(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);
+ H6(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);
}
-function wbe() {
- let e = (0, F.useContext)(KW), [t, n] = (0, F.useState)(_p), r = (0, F.useRef)(null);
+function Cbe() {
+ let e = (0, F.useContext)(qW), [t, n] = (0, F.useState)(_p), r = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => (n(_p()), vp((e, t) => {
t ? (0, Rt.flushSync)(() => n(e)) : n(e);
})), []);
let i = (0, F.useMemo)(() => (t) => {
- e && r.current && Cbe(t, e, r.current);
+ e && r.current && Sbe(t, e, r.current);
}, [e]);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Sbe, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, I.jsx)(Tbe, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(xbe, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, I.jsx)(wbe, {
entry: t,
- children: /* @__PURE__ */ (0, I.jsx)(Ebe, {
+ children: /* @__PURE__ */ (0, I.jsx)(Tbe, {
entry: t,
actions: e,
go: i
})
}, t.revision)) : null] });
}
-var Tbe = class extends F.Component {
+var wbe = class extends F.Component {
state = { failed: !1 };
static getDerivedStateFromError() {
return { failed: !0 };
@@ -54425,48 +54425,48 @@ var Tbe = class extends F.Component {
render() {
return this.state.failed ? null : this.props.children;
}
-}, Ebe = (0, F.memo)(function({ entry: e, actions: t, go: n }) {
- return t8(e.path) ? (0, Rt.createPortal)(dLe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
+}, Tbe = (0, F.memo)(function({ entry: e, actions: t, go: n }) {
+ return n8(e.path) ? (0, Rt.createPortal)(uLe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
});
-function Dbe({ children: e }) {
+function Ebe({ children: e }) {
let t = tf();
- GW();
+ KW();
let n = Lp(), r = Nf(t.pathname) && !Ip() ? If(t.state) : null;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsxs)(Df, {
location: n ?? t,
children: [
- Object.entries(B6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Tf, {
+ Object.entries(V6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Tf, {
path: e,
element: t.element
}, e)),
- Object.entries(sLe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Tf, {
+ Object.entries(oLe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Tf, {
path: e,
element: t.element
}, e)),
- Object.entries(H6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Tf, {
+ Object.entries(U6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Tf, {
path: e,
element: t.element
}, e)),
- Object.entries(G6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Tf, {
+ Object.entries(K6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Tf, {
path: e,
element: t.element
}, e)),
- Object.entries(q6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Tf, {
+ Object.entries(J6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Tf, {
path: e,
element: t.element
}, e)),
- e8.map((e) => /* @__PURE__ */ (0, I.jsx)(Tf, {
+ t8.map((e) => /* @__PURE__ */ (0, I.jsx)(Tf, {
path: e,
- element: J6["/"].element
+ element: Y6["/"].element
}, e)),
- Object.entries(cLe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Tf, {
+ Object.entries(sLe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Tf, {
path: e,
element: t.element
}, e)),
Lf.map((e) => /* @__PURE__ */ (0, I.jsx)(Tf, {
path: e,
- element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, I.jsx)(bbe, {}) : J6["/"].element
+ element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, I.jsx)(ybe, {}) : Y6["/"].element
}, e)),
Mf.map((e) => /* @__PURE__ */ (0, I.jsx)(Tf, {
path: e,
@@ -54482,7 +54482,7 @@ function Dbe({ children: e }) {
location: r ?? t,
children: [Lf.map((e) => /* @__PURE__ */ (0, I.jsx)(Tf, {
path: e,
- element: /* @__PURE__ */ (0, I.jsx)(vbe, { path: e })
+ element: /* @__PURE__ */ (0, I.jsx)(_be, { path: e })
}, e)), /* @__PURE__ */ (0, I.jsx)(Tf, {
path: "*",
element: null
@@ -54490,38 +54490,38 @@ function Dbe({ children: e }) {
}),
/* @__PURE__ */ (0, I.jsxs)(Df, { children: [Mf.map((e) => /* @__PURE__ */ (0, I.jsx)(Tf, {
path: e,
- element: /* @__PURE__ */ (0, I.jsx)(bye, {})
+ element: /* @__PURE__ */ (0, I.jsx)(yye, {})
}, e)), /* @__PURE__ */ (0, I.jsx)(Tf, {
path: "*",
element: null
})] })
] });
}
-function Obe({ children: e, actions: t = null, background: n, processing: r = !1 }) {
- return /* @__PURE__ */ (0, I.jsxs)(RV, { children: [n, /* @__PURE__ */ (0, I.jsx)(KW.Provider, {
+function Dbe({ children: e, actions: t = null, background: n, processing: r = !1 }) {
+ return /* @__PURE__ */ (0, I.jsxs)(zV, { children: [n, /* @__PURE__ */ (0, I.jsx)(qW.Provider, {
value: t,
- children: /* @__PURE__ */ (0, I.jsxs)(xbe, { children: [
- /* @__PURE__ */ (0, I.jsx)(wbe, {}),
- /* @__PURE__ */ (0, I.jsx)(mbe, {}),
- /* @__PURE__ */ (0, I.jsx)(gbe, {}),
- r && t ? /* @__PURE__ */ (0, I.jsx)(Ive, { toast: t.toast }) : null,
- r && t ? /* @__PURE__ */ (0, I.jsx)(Bve, {}) : null,
- r && t ? /* @__PURE__ */ (0, I.jsx)(yye, { navigate: t.navigate }) : null,
- r && t ? /* @__PURE__ */ (0, I.jsx)(hye, { actions: t }) : null,
- /* @__PURE__ */ (0, I.jsx)(Dbe, { children: e })
+ children: /* @__PURE__ */ (0, I.jsxs)(bbe, { children: [
+ /* @__PURE__ */ (0, I.jsx)(Cbe, {}),
+ /* @__PURE__ */ (0, I.jsx)(pbe, {}),
+ /* @__PURE__ */ (0, I.jsx)(hbe, {}),
+ r && t ? /* @__PURE__ */ (0, I.jsx)(Fve, { toast: t.toast }) : null,
+ r && t ? /* @__PURE__ */ (0, I.jsx)(zve, {}) : null,
+ r && t ? /* @__PURE__ */ (0, I.jsx)(vye, { navigate: t.navigate }) : null,
+ r && t ? /* @__PURE__ */ (0, I.jsx)(mye, { actions: t }) : null,
+ /* @__PURE__ */ (0, I.jsx)(Ebe, { children: e })
] })
})] });
}
-var kbe = { onCaughtError: (e) => {
+var Obe = { onCaughtError: (e) => {
globalThis.reportError?.(e);
-} }, qW = {
+} }, JW = {
category: "个人分类",
creator: "创作者/账号",
performer: "人物",
seller: "卖家",
studio: "厂牌"
};
-function JW(e, t = "", n = "") {
+function YW(e, t = "", n = "") {
let r = new URLSearchParams({
...e,
folder: t,
@@ -54533,14 +54533,14 @@ function JW(e, t = "", n = "") {
queryFn: ({ signal: e }) => B(`/api/folders?${r}`, e)
};
}
-function YW(e, t) {
+function XW(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 Abe({ folder: e, rule: t, revision: n, close: r }) {
- let i = (0, F.useContext)(KW), a = dH(), [o, s] = (0, F.useState)(t?.purpose || "category"), [c, l] = (0, F.useState)(t?.name || ""), [u, d] = (0, F.useState)(t?.recursive ?? !0), [f, p] = (0, F.useState)(t?.future ?? !1), [m, h] = (0, F.useState)(null), [g, _] = (0, F.useState)(!1), v = {
+function kbe({ 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 = {
folder: e.id,
purpose: o,
name: c,
@@ -54569,7 +54569,7 @@ function Abe({ 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: Vs(t) } }), t] }) : null;
- return g ? null : /* @__PURE__ */ (0, I.jsx)(iV, {
+ return g ? null : /* @__PURE__ */ (0, I.jsx)(aV, {
isOpen: !0,
onOpenChange: (e) => {
!e && !w && r();
@@ -54583,7 +54583,7 @@ function Abe({ 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)(LL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(RL, {
slot: "title",
className: "text-title-2-medium",
children: "设置目录用途"
@@ -54591,7 +54591,7 @@ function Abe({ 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)(uV, {
+ }), /* @__PURE__ */ (0, I.jsx)(dV, {
label: "关闭目录用途",
onPress: () => {
w || r();
@@ -54603,20 +54603,20 @@ function Abe({ 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)(ZB, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, I.jsx)(zU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(QB, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, I.jsx)(BU, {
"aria-label": "这个文件夹用于",
selectedKey: o,
isDisabled: w,
onSelectionChange: (e) => {
s(e), y();
},
- children: Object.entries(qW).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(BU, {
+ children: Object.entries(JW).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(VU, {
id: e,
children: t
}, e))
})]
}),
- o === "category" ? null : /* @__PURE__ */ (0, I.jsx)(rV, {
+ o === "category" ? null : /* @__PURE__ */ (0, I.jsx)(iV, {
label: "关联名称",
value: c,
onChange: (e) => {
@@ -54627,7 +54627,7 @@ function Abe({ folder: e, rule: t, revision: n, close: r }) {
isDisabled: w,
isRequired: !0
}),
- /* @__PURE__ */ (0, I.jsx)(FV, {
+ /* @__PURE__ */ (0, I.jsx)(IV, {
isSelected: u,
isDisabled: w,
onChange: (e) => {
@@ -54635,7 +54635,7 @@ function Abe({ folder: e, rule: t, revision: n, close: r }) {
},
children: "应用到子文件夹"
}),
- /* @__PURE__ */ (0, I.jsx)(FV, {
+ /* @__PURE__ */ (0, I.jsx)(IV, {
isSelected: f,
isDisabled: w,
onChange: (e) => {
@@ -54672,9 +54672,9 @@ function Abe({ folder: e, rule: t, revision: n, close: r }) {
children: e.name
}, e.id))
}) : null,
- m.conflicts.length ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ m.conflicts.length ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "warning",
- extra: /* @__PURE__ */ (0, I.jsx)(FH, {
+ extra: /* @__PURE__ */ (0, I.jsx)(IH, {
summary: "查看归属冲突",
children: /* @__PURE__ */ (0, I.jsx)("ul", {
className: "mt-2 flex flex-col gap-2",
@@ -54692,7 +54692,7 @@ function Abe({ folder: e, rule: t, revision: n, close: r }) {
}) : null
]
}) : null,
- a.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ a.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
children: a.error
}) : null
@@ -54707,7 +54707,7 @@ function Abe({ folder: e, rule: t, revision: n, close: r }) {
onClick: () => {
w || C();
},
- ...dV(a.busy === "remove"),
+ ...fV(a.busy === "remove"),
children: "移除规则"
}) : null,
/* @__PURE__ */ (0, I.jsx)(Y, {
@@ -54719,13 +54719,13 @@ function Abe({ folder: e, rule: t, revision: n, close: r }) {
}),
m ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "primary",
- ...dV(a.busy === "save"),
+ ...fV(a.busy === "save"),
onClick: S,
children: T("save", "正在保存") || "保存目录用途"
}) : /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "primary",
disabled: o !== "category" && !c.trim(),
- ...dV(a.busy === "preview"),
+ ...fV(a.busy === "preview"),
onClick: () => {
x();
},
@@ -54738,7 +54738,7 @@ function Abe({ folder: e, rule: t, revision: n, close: r }) {
});
}
// src/react/catalog-folders/use-folder-sticky-offset.ts
-function jbe(e, t) {
+function Abe(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 = () => {
@@ -54761,34 +54761,34 @@ function jbe(e, t) {
}, [e, t]);
}
// src/react/catalog-folders/catalog-folders-page.tsx
-function XW() {
- return ef() ? /* @__PURE__ */ (0, I.jsx)(Mbe, {}) : null;
+function ZW() {
+ return ef() ? /* @__PURE__ */ (0, I.jsx)(jbe, {}) : null;
}
-function Mbe() {
- let e = tf(), t = (0, F.useContext)(KW);
+function jbe() {
+ let e = tf(), t = (0, F.useContext)(qW);
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)(rL, {
+ return /* @__PURE__ */ (0, I.jsx)(iL, {
size: "small",
"data-folder-mode-toggle": "",
"aria-label": "文件夹模式",
title: "文件夹模式",
"aria-pressed": r,
- icon: OB,
- onClick: () => t?.navigate(YW(e, r ? {
+ icon: kB,
+ onClick: () => t?.navigate(XW(e, r ? {
browse: null,
folder: null,
folder_recursive: null
} : { browse: "folders" }))
});
}
-function Nbe({ children: e, enabled: t }) {
- return ef() ? /* @__PURE__ */ (0, I.jsx)(Pbe, {
+function Mbe({ children: e, enabled: t }) {
+ return ef() ? /* @__PURE__ */ (0, I.jsx)(Nbe, {
enabled: t,
children: e
}) : /* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: e });
}
-function Pbe({ children: e, enabled: t }) {
+function Nbe({ children: e, enabled: t }) {
let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(null), o = tf(), s = new URLSearchParams(o.search), c = t && (s.get("browse") === "folders" || !!s.get("folder"));
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "entity-folder-workspace",
@@ -54808,7 +54808,7 @@ function Pbe({ children: e, enabled: t }) {
hidden: !c
}), e]
}),
- n && i ? /* @__PURE__ */ (0, I.jsx)(ZW, {
+ n && i ? /* @__PURE__ */ (0, I.jsx)(QW, {
treeTarget: n,
headerTarget: i,
enabled: t
@@ -54816,14 +54816,14 @@ function Pbe({ children: e, enabled: t }) {
]
});
}
-function ZW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
- let r = tf(), i = (0, F.useContext)(KW), a = new URLSearchParams(r.search), o = n && (a.get("browse") === "folders" || !!a.get("folder")), s = {
+function QW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
+ let r = tf(), i = (0, F.useContext)(qW), a = new URLSearchParams(r.search), o = n && (a.get("browse") === "folders" || !!a.get("folder")), s = {
loc: a.get("loc") ?? "",
library: a.get("library") ?? ""
};
- jbe(o, e);
+ Abe(o, e);
let c = a.get("folder") || "", l = Ft({
- ...JW(s, c),
+ ...YW(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), () => {
@@ -54837,11 +54837,11 @@ function ZW({ 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(YW(r, {
+ d(!1), i.navigate(XW(r, {
browse: "folders",
folder: e
}));
- }, _ = l.data, v = /* @__PURE__ */ (0, I.jsx)(Ibe, {
+ }, _ = l.data, v = /* @__PURE__ */ (0, I.jsx)(Fbe, {
scope: s,
selected: c,
current: _,
@@ -54858,21 +54858,21 @@ function ZW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "folder-drawer-trigger",
- children: /* @__PURE__ */ (0, I.jsx)(rL, {
+ children: /* @__PURE__ */ (0, I.jsx)(iL, {
"aria-label": "打开文件夹目录",
- icon: qge,
+ icon: Kge,
size: "small",
onClick: () => d(!0)
})
}),
- /* @__PURE__ */ (0, I.jsxs)(h_e, {
+ /* @__PURE__ */ (0, I.jsxs)(m_e, {
"aria-label": "文件夹路径",
- children: [/* @__PURE__ */ (0, I.jsx)(EV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(DV, {
current: !c,
onClick: () => g(""),
- icon: OB,
+ icon: kB,
children: "全部文件夹"
- }), _?.ancestors.map((e, t) => /* @__PURE__ */ (0, I.jsx)(EV, {
+ }), _?.ancestors.map((e, t) => /* @__PURE__ */ (0, I.jsx)(DV, {
current: t === _.ancestors.length - 1,
onClick: () => g(e.id),
children: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -54882,15 +54882,15 @@ function ZW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
})
}, e.id))]
}),
- _?.selected ? /* @__PURE__ */ (0, I.jsx)(rL, {
+ _?.selected ? /* @__PURE__ */ (0, I.jsx)(iL, {
"aria-label": "设置目录用途",
- icon: Pge,
+ icon: Nge,
size: "small",
onClick: () => p(!0)
}) : null
]
}),
- l.error && !u ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ l.error && !u ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
@@ -54902,7 +54902,7 @@ function ZW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}),
children: lr(l.error)
}) : null,
- _?.conflicts?.length ? /* @__PURE__ */ (0, I.jsxs)(oV, {
+ _?.conflicts?.length ? /* @__PURE__ */ (0, I.jsxs)(sV, {
tone: "warning",
action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
@@ -54914,14 +54914,14 @@ function ZW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}) : null,
_?.selected ? /* @__PURE__ */ (0, I.jsxs)("div", {
className: "folder-scope-row",
- children: [/* @__PURE__ */ (0, I.jsx)(FV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(IV, {
size: "sm",
isSelected: a.get("folder_recursive") !== "0",
- onChange: (e) => i.navigate(YW(r, { folder_recursive: e ? null : "0" })),
+ onChange: (e) => i.navigate(XW(r, { folder_recursive: e ? null : "0" })),
children: "包含子文件夹"
}), /* @__PURE__ */ (0, I.jsx)("span", {
className: "text-caption-1-regular text-text-tertiary",
- children: _.rule ? `${qW[_.rule.purpose]}${_.rule.name ? ` · ${_.rule.name}` : ""}` : "个人分类"
+ children: _.rule ? `${JW[_.rule.purpose]}${_.rule.name ? ` · ${_.rule.name}` : ""}` : "个人分类"
})]
}) : null,
l.isPending ? /* @__PURE__ */ (0, I.jsx)("div", {
@@ -54931,13 +54931,13 @@ function ZW({ 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)(Fbe, {
+ _?.children.length ? /* @__PURE__ */ (0, I.jsx)(Pbe, {
nodes: _.children,
go: g
}, c) : null
]
}), h),
- /* @__PURE__ */ (0, I.jsxs)(iV, {
+ /* @__PURE__ */ (0, I.jsxs)(aV, {
isOpen: u,
onOpenChange: d,
width: "form",
@@ -54947,7 +54947,7 @@ function ZW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
className: "text-title-2-medium",
children: "文件夹"
- }), /* @__PURE__ */ (0, I.jsx)(uV, {
+ }), /* @__PURE__ */ (0, I.jsx)(dV, {
label: "关闭文件夹目录",
onPress: () => d(!1)
})]
@@ -54956,7 +54956,7 @@ function ZW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: u ? v : null
})]
}),
- f && _?.selected ? /* @__PURE__ */ (0, I.jsx)(Abe, {
+ f && _?.selected ? /* @__PURE__ */ (0, I.jsx)(kbe, {
folder: _.selected,
rule: _.rule,
revision: _.rules_revision,
@@ -54964,7 +54964,7 @@ function ZW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}, _.selected.id) : null
] });
}
-function Fbe({ nodes: e, go: t }) {
+function Pbe({ 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",
@@ -54975,7 +54975,7 @@ function Fbe({ nodes: e, go: t }) {
children: a.map((e) => /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
- leadingIcon: OB,
+ leadingIcon: kB,
onClick: () => t(e.id),
children: /* @__PURE__ */ (0, I.jsx)("span", {
className: "truncate",
@@ -54992,28 +54992,28 @@ function Fbe({ nodes: e, go: t }) {
}) : null]
});
}
-function Ibe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
- let a = Ft(JW(e)), [o, s] = (0, F.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, F.useState)(""), u = (0, F.useDeferredValue)(c), d = Ft({
- ...JW(e, "", u),
+function Fbe({ 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),
enabled: !!u.trim()
- }), f = IV();
+ }), f = LV();
(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) => JW(e, t)) }), h = /* @__PURE__ */ new Map();
+ let p = [...o].map(String), m = Nt({ queries: p.map((t) => YW(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)(jV, {
+ return /* @__PURE__ */ (0, I.jsx)(MV, {
id: e.id,
label: e.name,
- icon: OB,
- expandedIcon: AB,
+ icon: kB,
+ expandedIcon: jB,
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)(jV, {
+ children: e.has_children ? t ? t.map(g) : /* @__PURE__ */ (0, I.jsx)(MV, {
id: `${e.id}:loading`,
label: "正在读取文件夹",
isDisabled: !0
@@ -55029,15 +55029,15 @@ function Ibe({ 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)(rV, {
+ /* @__PURE__ */ (0, I.jsx)(iV, {
"aria-label": "查找文件夹",
placeholder: "查找文件夹",
- leadingIcon: HB,
+ leadingIcon: UB,
value: c,
onChange: l,
size: "small"
}),
- v ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ v ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
@@ -55072,20 +55072,20 @@ function Ibe({ 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)(oV, {
+ }) : d.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
children: lr(d.error)
}) : d.data?.matches.length ? d.data.matches.map((e) => /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
- leadingIcon: OB,
+ leadingIcon: kB,
onClick: () => {
l(""), r(e.id);
},
children: e.name
- }, e.id)) : /* @__PURE__ */ (0, I.jsx)(sV, {
+ }, e.id)) : /* @__PURE__ */ (0, I.jsx)(cV, {
size: "compact",
- icon: HB,
+ icon: UB,
title: "没有匹配的文件夹",
actions: /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
@@ -55094,7 +55094,7 @@ function Ibe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
}),
children: "换个目录名称试试。"
})
- }) : a.data?.roots.length ? /* @__PURE__ */ (0, I.jsx)(v_e, {
+ }) : a.data?.roots.length ? /* @__PURE__ */ (0, I.jsx)(__e, {
"aria-label": "媒体目录",
size: "sm",
expandedKeys: o,
@@ -55102,11 +55102,11 @@ function Ibe({ 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)(sV, {
+ }) : /* @__PURE__ */ (0, I.jsx)(cV, {
size: "compact",
- icon: OB,
+ icon: kB,
title: "尚未添加媒体目录",
- actions: /* @__PURE__ */ (0, I.jsx)(hL, {
+ actions: /* @__PURE__ */ (0, I.jsx)(gL, {
size: "small",
href: "/settings/library",
children: "添加媒体"
@@ -55119,63 +55119,63 @@ function Ibe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
});
}
// src/react/catalog-grid/catalog-view.ts
-var QW = "peach.catalog-view.v1", $W = /* @__PURE__ */ new Set(), eG = "cards";
-function tG() {
+var $W = "peach.catalog-view.v1", eG = /* @__PURE__ */ new Set(), tG = "cards";
+function nG() {
try {
- return localStorage.getItem(QW) === "list" ? "list" : "cards";
+ return localStorage.getItem($W) === "list" ? "list" : "cards";
} catch {
- return eG;
+ return tG;
}
}
-function Lbe(e) {
- eG = e === "list" ? "list" : "cards";
+function Ibe(e) {
+ tG = e === "list" ? "list" : "cards";
try {
- localStorage.setItem(QW, eG);
+ localStorage.setItem($W, tG);
} catch {}
- $W.forEach((e) => e());
+ eG.forEach((e) => e());
}
-function Rbe(e) {
- $W.add(e);
+function Lbe(e) {
+ eG.add(e);
let t = (t) => {
- (t.key === QW || t.key === null) && e();
+ (t.key === $W || t.key === null) && e();
};
return addEventListener("storage", t), () => {
- $W.delete(e), removeEventListener("storage", t);
+ eG.delete(e), removeEventListener("storage", t);
};
}
-var nG = () => (0, F.useSyncExternalStore)(Rbe, tG, () => "cards");
+var rG = () => (0, F.useSyncExternalStore)(Lbe, nG, () => "cards");
// src/react/catalog-grid/catalog-view-toggle.tsx
-function rG() {
- let e = nG();
- return /* @__PURE__ */ (0, I.jsxs)(Oz, {
+function iG() {
+ let e = rG();
+ return /* @__PURE__ */ (0, I.jsxs)(kz, {
"aria-label": "馆藏显示方式",
orientation: "horizontal",
value: e,
- onChange: Lbe,
+ onChange: Ibe,
"data-entity-layout": "",
- className: nU,
- children: [/* @__PURE__ */ (0, I.jsx)(kz, {
+ className: rU,
+ children: [/* @__PURE__ */ (0, I.jsx)(Az, {
value: "cards",
"aria-label": "卡片",
- className: rU,
+ className: iU,
"data-glass-segment": "",
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: "卡片",
className: "pointer-events-none contents",
- children: /* @__PURE__ */ (0, I.jsx)(PB, {
+ children: /* @__PURE__ */ (0, I.jsx)(FB, {
"aria-hidden": "true",
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, I.jsx)(kz, {
+ }), /* @__PURE__ */ (0, I.jsx)(Az, {
value: "list",
"aria-label": "列表",
- className: rU,
+ className: iU,
"data-glass-segment": "",
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: "列表",
className: "pointer-events-none contents",
- children: /* @__PURE__ */ (0, I.jsx)(Uge, {
+ children: /* @__PURE__ */ (0, I.jsx)(Hge, {
"aria-hidden": "true",
className: "size-4"
})
@@ -55184,7 +55184,7 @@ function rG() {
});
}
// src/react/components/icon-swap.tsx
-function iG({ a: e, b: t, state: n, className: r }) {
+function aG({ a: e, b: t, state: n, className: r }) {
let { isFocusVisible: i } = DC();
return /* @__PURE__ */ (0, I.jsxs)("span", {
"aria-hidden": !0,
@@ -55201,114 +55201,114 @@ function iG({ a: e, b: t, state: n, className: r }) {
})]
});
}
-function aG({ className: e }) {
- return /* @__PURE__ */ (0, I.jsx)(iG, {
- a: pge,
- b: fge,
+function oG({ className: e }) {
+ return /* @__PURE__ */ (0, I.jsx)(aG, {
+ a: fge,
+ b: dge,
className: e
});
}
// src/react/follow-feed/follow-marks.ts
-var oG = (e) => typeof e == "string" ? e : "", sG = (e) => e.aliases;
-function cG(e, t = "") {
+var sG = (e) => typeof e == "string" ? e : "", cG = (e) => e.aliases;
+function lG(e, t = "") {
let n = Yi(e);
return n ? `<img data-follow-site-icon="" src="${n}" alt="${z(t)}"${t ? ` title="${z(t)}"` : ""} loading="lazy" data-drop="self">` : "";
}
-function lG(e, t = "") {
+function uG(e, t = "") {
let n = z(si(t || e)), r = Yi(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 uG = (e) => oG(e.title).trim() || "未命名内容", dG = (e, t) => oi(e, sG(t));
-function fG(e) {
+var dG = (e) => sG(e.title).trim() || "未命名内容", fG = (e, t) => oi(e, cG(t));
+function pG(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 = oG(n.entity_name);
+ let n = t[0], r = sG(n.entity_name);
return ln("creator", r, n.entity_id), r;
}
-function pG(e, t) {
+function mG(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 mG(e, t, n) {
- let r = sG(n), i = e.credit, a = i?.poster;
+function hG(e, t, n) {
+ let r = cG(n), i = e.credit, a = i?.poster;
if (!a) {
let n = oi(t, r);
return {
- author: n || oG(e.author) || oG(e.source_label) || "创作者未取得",
- avatar: pG(t, n),
+ author: n || sG(e.author) || sG(e.source_label) || "创作者未取得",
+ avatar: mG(t, n),
credited: "",
- entityName: fG(t)
+ entityName: pG(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: pG(c, l),
+ avatar: mG(c, l),
credited: i.credited || "",
- entityName: fG(c)
+ entityName: pG(c)
};
}
-function hG(e, t = e.primary) {
+function gG(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 = oG(e.primary.version);
+ let i = sG(e.primary.version);
i && n.push(r("version", z(i)));
- let a = oG(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
+ let a = sG(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
return o && n.push(r(a, o)), n.join("");
}
-function gG(e, t = e.primary) {
+function _G(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]) => cG(e, t) || `<span>${z(t)}</span>`).join("");
+ let r = [...n].map(([e, t]) => lG(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 _G(e, t) {
- let n = oG(e.media_error);
+function vG(e, t) {
+ let n = sG(e.media_error);
return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";
}
-var zbe = 864e5, Bbe = (e, t) => {
+var Rbe = 864e5, zbe = (e, t) => {
let n = new Date(/[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`).getTime();
- return Number.isFinite(n) && n - t > zbe;
+ return Number.isFinite(n) && n - t > Rbe;
};
-function vG(e, t) {
- let n = oG(e.published_at);
+function yG(e, t) {
+ let n = sG(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: Bbe(n, t) ? " · 晚于现在" : ""
+ suffix: zbe(n, t) ? " · 晚于现在" : ""
};
}
-function yG(e, t = Date.now()) {
- let n = vG(e, t);
+function bG(e, t = Date.now()) {
+ let n = yG(e, t);
return n ? `${n.prefix}${n.full}${n.suffix}` : "时间未取得";
}
-function bG(e, t = Date.now()) {
- let n = vG(e, t);
+function xG(e, t = Date.now()) {
+ let n = yG(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 xG = /* @__PURE__ */ new Set(), SG = [], CG = null;
-function wG() {
- if (CG = null, !SG.length) return;
- let e = SG.splice(0, 200);
+var SG = /* @__PURE__ */ new Set(), CG = [], wG = null;
+function TG() {
+ if (wG = null, !CG.length) return;
+ let e = CG.splice(0, 200);
Tn("/api/follow/image-dims", {
method: "POST",
body: JSON.stringify({ entries: e })
- }).catch(() => {}), SG.length && (CG = setTimeout(wG, 800));
+ }).catch(() => {}), CG.length && (wG = setTimeout(TG, 800));
}
-function Vbe(e, t, n, r) {
+function Bbe(e, t, n, r) {
let i = `${e}:${t ?? ""}`;
- xG.has(i) || (xG.add(i), SG.push(t === null ? {
+ SG.has(i) || (SG.add(i), CG.push(t === null ? {
item: e,
width: n,
height: r
@@ -55317,25 +55317,25 @@ function Vbe(e, t, n, r) {
width: n,
height: r,
media: t
- }), CG ||= setTimeout(wG, 800));
+ }), wG ||= setTimeout(TG, 800));
}
// src/react/entity-filter/entity-filter.ts
-var Hbe = (e) => e === "videos", TG = () => /* @__PURE__ */ (0, I.jsx)("span", {
+var Vbe = (e) => e === "videos", EG = () => /* @__PURE__ */ (0, I.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), Ube = lV("shuffle"), Wbe = lV("arrow-up"), Gbe = lV("arrow-down");
-function Kbe(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Hbe(t), u = t === "online" ? e.online : null, d = l || !!u, f = u ? u.status : r, p = u ? u.statuses.map(([e, t]) => ({
+}), Hbe = uV("shuffle"), Ube = uV("arrow-up"), Wbe = uV("arrow-down");
+function Gbe(e) {
+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Vbe(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 = pL(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = pL(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 = pL(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 = 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}`);
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)(EG, {
+ }, [c]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(DG, {
items: o,
hidden: !l,
actions: s
- }), /* @__PURE__ */ (0, I.jsx)(cL, {
+ }), /* @__PURE__ */ (0, I.jsx)(lL, {
label: "筛选与排序",
topLabel: "媒体与标签",
attrs: {
@@ -55364,19 +55364,19 @@ function Kbe(e) {
})
] }),
top: !n && !d ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Xbe, {
+ n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Ybe, {
keys: n,
view: t,
row: _,
glide: S,
onView: s.setView
- }), d ? /* @__PURE__ */ (0, I.jsx)(TG, {}) : null] }) : null,
- T ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Jbe, {
+ }), d ? /* @__PURE__ */ (0, I.jsx)(EG, {}) : null] }) : null,
+ T ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(qbe, {
head: T,
row: w,
glide: E,
onMedia: s.onlineMedia
- }), /* @__PURE__ */ (0, I.jsx)(TG, {})] }) : null,
+ }), /* @__PURE__ */ (0, I.jsx)(EG, {})] }) : null,
/* @__PURE__ */ (0, I.jsxs)("div", {
ref: v,
"data-entity-scroll": "",
@@ -55397,11 +55397,11 @@ function Kbe(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)(TG, {}) : null]
+ }, e.k)), !u || u.providers.length || u.tags.length ? /* @__PURE__ */ (0, I.jsx)(EG, {}) : null]
}), /* @__PURE__ */ (0, I.jsx)("div", {
ref: y,
"data-entity-tags": "",
- children: l ? a.map((e) => /* @__PURE__ */ (0, I.jsxs)(lL, {
+ children: l ? a.map((e) => /* @__PURE__ */ (0, I.jsxs)(uL, {
"data-entity-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -55410,17 +55410,17 @@ function Kbe(e) {
"data-count-badge": e.k,
children: e.n.toLocaleString()
})]
- }, e.k)) : u ? /* @__PURE__ */ (0, I.jsx)(Ybe, {
+ }, e.k)) : u ? /* @__PURE__ */ (0, I.jsx)(Jbe, {
head: u,
actions: s
}) : null
})]
})
] }),
- bottom: /* @__PURE__ */ (0, I.jsx)(Zbe, { ...e })
+ bottom: /* @__PURE__ */ (0, I.jsx)(Xbe, { ...e })
})] });
}
-var qbe = [[
+var Kbe = [[
"videos",
"视频",
"play",
@@ -55431,7 +55431,7 @@ var qbe = [[
"pics",
"image"
]];
-function Jbe({ head: e, row: t, glide: n, onMedia: r }) {
+function qbe({ head: e, row: t, glide: n, onMedia: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
ref: t,
role: "group",
@@ -55439,7 +55439,7 @@ function Jbe({ head: e, row: t, glide: n, onMedia: r }) {
"data-entity-media": "",
"data-online-media": "",
onPointerLeave: n.leave,
- children: qbe.map(([t, i, a, o]) => {
+ children: Kbe.map(([t, i, a, o]) => {
let s = `${i} ${Math.max(0, e.mediaCounts?.[t] || 0).toLocaleString()}`;
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -55457,7 +55457,7 @@ function Jbe({ head: e, row: t, glide: n, onMedia: r }) {
})
});
}
-function Ybe({ head: e, actions: t }) {
+function Jbe({ head: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
e.providers.map(([n, r]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -55467,10 +55467,10 @@ function Ybe({ head: e, actions: t }) {
title: r,
"aria-label": `来源:${r}`,
onClick: () => t.onlineProvider(n),
- dangerouslySetInnerHTML: { __html: cG(n) }
+ dangerouslySetInnerHTML: { __html: lG(n) }
}, n)),
- e.providers.length && e.tags.length ? /* @__PURE__ */ (0, I.jsx)(TG, {}) : null,
- e.tags.map((e) => /* @__PURE__ */ (0, I.jsxs)(lL, {
+ e.providers.length && e.tags.length ? /* @__PURE__ */ (0, I.jsx)(EG, {}) : null,
+ e.tags.map((e) => /* @__PURE__ */ (0, I.jsxs)(uL, {
"data-follow-tag": e.k,
"data-entity-press": "",
"data-tag-cat": `r34-${e.cat}`,
@@ -55483,7 +55483,7 @@ function Ybe({ head: e, actions: t }) {
}, e.k))
] });
}
-function Xbe({ keys: e, view: t, row: n, glide: r, onView: i }) {
+function Ybe({ keys: e, view: t, row: n, glide: r, onView: i }) {
let a = [];
return e.people && a.push({
value: "people",
@@ -55531,7 +55531,7 @@ function Xbe({ keys: e, view: t, row: n, glide: r, onView: i }) {
})
});
}
-function EG({ items: e, hidden: t, actions: n }) {
+function DG({ items: e, hidden: t, actions: n }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-combo": "",
hidden: t,
@@ -55551,7 +55551,7 @@ function EG({ items: e, hidden: t, actions: n }) {
})] }) : null
});
}
-function Zbe(e) {
+function Xbe(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", {
@@ -55563,30 +55563,30 @@ function Zbe(e) {
dangerouslySetInnerHTML: { __html: R("chevron-left") }
}), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部照片" })]
}) : null,
- /* @__PURE__ */ (0, I.jsx)(Qbe, {
+ /* @__PURE__ */ (0, I.jsx)(Zbe, {
text: n,
busy: r
}),
- /* @__PURE__ */ (0, I.jsx)(wV, { currentHref: () => location.pathname + location.search }),
- t === "videos" && i ? /* @__PURE__ */ (0, I.jsx)($be, {
+ /* @__PURE__ */ (0, I.jsx)(TV, { currentHref: () => location.pathname + location.search }),
+ t === "videos" && i ? /* @__PURE__ */ (0, I.jsx)(Qbe, {
head: i,
actions: o
}) : null,
- t === "photos" && a ? /* @__PURE__ */ (0, I.jsx)(txe, {
+ t === "photos" && a ? /* @__PURE__ */ (0, I.jsx)(exe, {
head: a,
actions: o,
helpers: s
}) : null,
- t === "online" && e.online ? /* @__PURE__ */ (0, I.jsx)(exe, {
+ t === "online" && e.online ? /* @__PURE__ */ (0, I.jsx)($be, {
head: e.online,
actions: o
}) : null
] });
}
-function Qbe({ text: e, busy: t }) {
+function Zbe({ text: e, busy: t }) {
return /* @__PURE__ */ (0, I.jsx)("h3", {
"data-entity-readout": "",
- children: /* @__PURE__ */ (0, I.jsx)(tL, {
+ children: /* @__PURE__ */ (0, I.jsx)(nL, {
text: t ? void 0 : e,
busy: t,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -55597,22 +55597,22 @@ function Qbe({ text: e, busy: t }) {
})
});
}
-function DG({ name: e, label: t, value: n, options: r, onChange: i }) {
- return /* @__PURE__ */ (0, I.jsx)(Oz, {
+function OG({ name: e, label: t, value: n, options: r, onChange: i }) {
+ return /* @__PURE__ */ (0, I.jsx)(kz, {
name: e,
"aria-label": t,
orientation: "horizontal",
value: n,
onChange: i,
"data-entity-layout": "",
- className: nU,
+ className: rU,
children: r.map(([e, t, n]) => {
- let r = lV(n);
- return /* @__PURE__ */ (0, I.jsx)(kz, {
+ let r = uV(n);
+ return /* @__PURE__ */ (0, I.jsx)(Az, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: rU,
+ className: iU,
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
className: "contents",
@@ -55622,38 +55622,38 @@ function DG({ name: e, label: t, value: n, options: r, onChange: i }) {
})
});
}
-function OG({ onPress: e, busy: t = !1 }) {
- return /* @__PURE__ */ (0, I.jsx)(sL, {
+function kG({ onPress: e, busy: t = !1 }) {
+ return /* @__PURE__ */ (0, I.jsx)(cL, {
"data-entity-batch": "",
label: "换一批",
busy: t,
busyStyle: "strand",
- icon: Ube,
+ icon: Hbe,
onPress: e
});
}
-function $be({ head: e, actions: t }) {
- let n = nG();
+function Qbe({ head: e, actions: t }) {
+ let n = rG();
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(OG, { onPress: () => void t.reshuffle() }),
- e.jav && n === "cards" ? /* @__PURE__ */ (0, I.jsx)(DG, {
+ /* @__PURE__ */ (0, I.jsx)(kG, { onPress: () => void t.reshuffle() }),
+ e.jav && n === "cards" ? /* @__PURE__ */ (0, I.jsx)(OG, {
label: "JAV 卡片版式",
value: e.jav.layout,
options: e.jav.options,
onChange: t.setJavLayout
}) : null,
- /* @__PURE__ */ (0, I.jsx)(rG, {}),
- /* @__PURE__ */ (0, I.jsx)(XW, {}),
- /* @__PURE__ */ (0, I.jsx)(kG, {
+ /* @__PURE__ */ (0, I.jsx)(iG, {}),
+ /* @__PURE__ */ (0, I.jsx)(ZW, {}),
+ /* @__PURE__ */ (0, I.jsx)(AG, {
sorts: e.sorts,
onSort: t.setSort
})
]
});
}
-function kG({ sorts: e, onSort: t }) {
+function AG({ 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,
@@ -55661,20 +55661,20 @@ function kG({ 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)(iG, {
- a: Wbe,
- b: Gbe,
+ children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, I.jsx)(aG, {
+ a: Ube,
+ b: Wbe,
state: e.dir === "asc" ? "a" : "b",
className: "size-(--icon-inline)"
}) : null]
}, e.key)) });
}
-function exe({ head: e, actions: t }) {
+function $be({ head: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(OG, { onPress: t.onlineShuffle }),
- e.media === "images" ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(DG, {
+ /* @__PURE__ */ (0, I.jsx)(kG, { onPress: t.onlineShuffle }),
+ e.media === "images" ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(OG, {
label: "图片布局",
value: e.photoLayout,
options: e.photoLayouts,
@@ -55694,27 +55694,27 @@ function exe({ head: e, actions: t }) {
dangerouslySetInnerHTML: { __html: R("captions-off") }
})]
})] }) : null,
- /* @__PURE__ */ (0, I.jsx)(kG, {
+ /* @__PURE__ */ (0, I.jsx)(AG, {
sorts: e.sorts,
onSort: t.onlineSort
})
]
});
}
-function txe({ head: e, actions: t, helpers: n }) {
+function exe({ 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)(OG, {
+ e.shuffle ? /* @__PURE__ */ (0, I.jsx)(kG, {
onPress: () => {
i(!0), t.reshuffle().finally(() => i(!1));
},
busy: r
}) : null,
- /* @__PURE__ */ (0, I.jsx)(DG, {
+ /* @__PURE__ */ (0, I.jsx)(OG, {
label: "图片布局",
value: e.layout,
options: e.layouts,
@@ -55729,8 +55729,8 @@ function txe({ head: e, actions: t, helpers: n }) {
});
}
// src/react/catalog-filter/catalog-filter.ts
-var nxe = "peach.catalog.tiers.v1";
-function AG() {
+var txe = "peach.catalog.tiers.v1";
+function jG() {
try {
let e = JSON.parse(localStorage.getItem("peach.catalog.tiers.v1") || "{}");
return {
@@ -55744,40 +55744,40 @@ function AG() {
};
}
}
-function rxe(e) {
+function nxe(e) {
try {
let t = JSON.stringify({
performers: e.performers,
studios: e.studios
});
- localStorage.getItem("peach.catalog.tiers.v1") !== t && localStorage.setItem(nxe, t);
+ localStorage.getItem("peach.catalog.tiers.v1") !== t && localStorage.setItem(txe, t);
} catch {}
}
// src/react/catalog-filter/catalog-filter-page.tsx
-function ixe(e) {
- let t = !e.tiers, n = dxe(e.comboHost);
+function rxe(e) {
+ let t = !e.tiers, n = uxe(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)(EG, {
+ n ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(DG, {
items: e.combo,
hidden: e.comboHidden,
actions: e.actions
}), n) : null,
- /* @__PURE__ */ (0, I.jsx)(sxe, { ...e }),
- e.offscreen ? null : /* @__PURE__ */ (0, I.jsx)(axe, { ...e })
+ /* @__PURE__ */ (0, I.jsx)(oxe, { ...e }),
+ e.offscreen ? null : /* @__PURE__ */ (0, I.jsx)(ixe, { ...e })
]
});
}
-function axe(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 = pL(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
+function ixe(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);
(0, F.useEffect)(() => {
n.wireDrag(o.current), n.wireScroller(a.current), n.wireDrag(s.current);
}, [n]);
- let d = !e.tiers, f = MG(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
+ let d = !e.tiers, f = NG(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
return (0, F.useLayoutEffect)(() => {
if (d) {
l(!1);
@@ -55801,7 +55801,7 @@ function axe(e) {
e.sorts
]), (0, F.useLayoutEffect)(() => {
tc(o.current, "tagbar");
- }, [f]), /* @__PURE__ */ (0, I.jsx)(cL, {
+ }, [f]), /* @__PURE__ */ (0, I.jsx)(lL, {
label: "筛选与排序",
topLabel: "视图与标签",
attrs: {
@@ -55845,23 +55845,23 @@ function axe(e) {
}), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: o,
"data-catalog-tags": "",
- children: [e.empty || d ? /* @__PURE__ */ (0, I.jsx)(jG, { kind: "tag" }) : null, f.map((n) => /* @__PURE__ */ (0, I.jsx)(oxe, {
+ children: [e.empty || d ? /* @__PURE__ */ (0, I.jsx)(MG, { kind: "tag" }) : null, f.map((n) => /* @__PURE__ */ (0, I.jsx)(axe, {
tag: n,
pending: e.tiersPending,
onPress: t.toggleTag
}, n.k))]
})]
}),
- bottom: e.trash ? null : /* @__PURE__ */ (0, I.jsx)(lxe, { ...e })
+ bottom: e.trash ? null : /* @__PURE__ */ (0, I.jsx)(cxe, { ...e })
});
}
-function oxe({ tag: e, pending: t, onPress: n }) {
- return /* @__PURE__ */ (0, I.jsxs)(lL, {
+function axe({ tag: e, pending: t, onPress: n }) {
+ return /* @__PURE__ */ (0, I.jsxs)(uL, {
"data-catalog-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
onPress: () => n(e.k),
- children: [/* @__PURE__ */ (0, I.jsx)(tL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(nL, {
text: e.label,
busy: t
}), e.n == null ? null : /* @__PURE__ */ (0, I.jsx)("span", {
@@ -55870,15 +55870,15 @@ function oxe({ tag: e, pending: t, onPress: n }) {
})]
});
}
-function sxe(e) {
- eL();
+function oxe(e) {
+ tL();
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 = MG(o, r.performers, r.key, 24, a ? void 0 : c("performers")), u = MG(s, r.studios, r.key, 24, a ? void 0 : c("studios")), d = (0, F.useMemo)(() => i ? AG() : 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 = 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;
return (0, F.useEffect)(() => {
- i || rxe({
+ i || nxe({
performers: f,
studios: p
});
@@ -55899,7 +55899,7 @@ function sxe(e) {
children: [f ? /* @__PURE__ */ (0, I.jsx)("div", {
ref: o,
"data-catalog-tier": "performers",
- children: a ? /* @__PURE__ */ (0, I.jsx)(jG, { kind: "performer" }) : l.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: a ? /* @__PURE__ */ (0, I.jsx)(MG, { kind: "performer" }) : l.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-tier-performer": "",
"data-entity-kind": "performer",
@@ -55910,7 +55910,7 @@ function sxe(e) {
dangerouslySetInnerHTML: { __html: n.ringHtml }
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-tier-name": "",
- children: /* @__PURE__ */ (0, I.jsx)(tL, {
+ children: /* @__PURE__ */ (0, I.jsx)(nL, {
text: nn("performer", n.name),
busy: e.tiersPending
})
@@ -55919,13 +55919,13 @@ function sxe(e) {
}) : null, p ? /* @__PURE__ */ (0, I.jsx)("div", {
ref: s,
"data-catalog-tier": "studios",
- children: a ? /* @__PURE__ */ (0, I.jsx)(jG, { kind: "studio" }) : u.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: a ? /* @__PURE__ */ (0, I.jsx)(MG, { 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)(cxe, { studio: n }), /* @__PURE__ */ (0, I.jsx)(tL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(sxe, { studio: n }), /* @__PURE__ */ (0, I.jsx)(nL, {
text: n.name,
busy: e.tiersPending
})]
@@ -55933,7 +55933,7 @@ function sxe(e) {
}) : null]
});
}
-function cxe({ studio: e }) {
+function sxe({ studio: e }) {
let [t, n] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-tier-mark": "",
@@ -55951,7 +55951,7 @@ function cxe({ studio: e }) {
}) : e.fallback
});
}
-function jG({ kind: e }) {
+function MG({ kind: e }) {
let t = Array.from({ length: 64 }, (e, t) => t);
return e === "tag" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-catalog-placeholder": "tag",
@@ -55967,43 +55967,43 @@ function jG({ kind: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", {}), /* @__PURE__ */ (0, I.jsx)("span", { children: "\xA0" })]
}, t)) });
}
-function lxe({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
- let a = nG(), [o, s] = (0, F.useState)(!1);
+function cxe({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
+ let a = rG(), [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)(uxe, { count: e }), /* @__PURE__ */ (0, I.jsx)(wV, { currentHref: i.currentHref })]
+ children: [/* @__PURE__ */ (0, I.jsx)(lxe, { count: e }), /* @__PURE__ */ (0, I.jsx)(TV, { currentHref: i.currentHref })]
}), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(OG, {
+ /* @__PURE__ */ (0, I.jsx)(kG, {
onPress: () => {
s(!0), i.reshuffle().finally(() => s(!1));
},
busy: o || t
}),
- n && a === "cards" ? /* @__PURE__ */ (0, I.jsx)(DG, {
+ n && a === "cards" ? /* @__PURE__ */ (0, I.jsx)(OG, {
name: n.name,
label: n.label,
value: n.value,
options: n.options,
onChange: i.setLayout
}, n.name) : null,
- /* @__PURE__ */ (0, I.jsx)(rG, {}),
- /* @__PURE__ */ (0, I.jsx)(XW, {}),
- /* @__PURE__ */ (0, I.jsx)(kG, {
+ /* @__PURE__ */ (0, I.jsx)(iG, {}),
+ /* @__PURE__ */ (0, I.jsx)(ZW, {}),
+ /* @__PURE__ */ (0, I.jsx)(AG, {
sorts: r,
onSort: i.setSort
})
]
})] });
}
-function uxe({ count: e }) {
+function lxe({ 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)(tL, {
+ children: /* @__PURE__ */ (0, I.jsx)(nL, {
text: t,
busy: e === null,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -56014,7 +56014,7 @@ function uxe({ count: e }) {
})
});
}
-function dxe(e) {
+function uxe(e) {
let [t, n] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
if (!e) return;
@@ -56024,7 +56024,7 @@ function dxe(e) {
};
}, [e]), t;
}
-function MG(e, t, n, r, i) {
+function NG(e, t, n, r, i) {
let a = () => ({
key: n,
limit: r,
@@ -56067,8 +56067,8 @@ function MG(e, t, n, r, i) {
}), l.slice(0, c.limit);
}
// src/react/components/grid-reveal.tsx
-var NG = "100% 0px";
-function fxe(e, t) {
+var PG = "100% 0px";
+function dxe(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 && mc(a.current);
@@ -56094,7 +56094,7 @@ function fxe(e, t) {
fading: n === "fade"
};
}
-function PG({ message: e, onRetry: t }) {
+function FG({ message: e, onRetry: t }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-media-error": "",
onClick: (e) => {
@@ -56107,7 +56107,7 @@ function PG({ message: e, onRetry: t }) {
});
}
// src/react/components/skeleton-content.tsx
-function FG({ pending: e, skeletonHtml: t, children: n }) {
+function IG({ 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);
@@ -56131,25 +56131,25 @@ function FG({ pending: e, skeletonHtml: t, children: n }) {
});
}
// src/react/components/card-meta.tsx
-function IG({ name: e }) {
+function LG({ 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 LG({ name: e }) {
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(IG, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: 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 RG({ value: e, label: t, title: n }) {
+function zG({ 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)(IG, { name: "calendar" }), t]
+ children: [/* @__PURE__ */ (0, I.jsx)(LG, { name: "calendar" }), t]
});
}
-function zG({ tags: e, label: t, readOnly: n = !1, attrs: r, ...i }) {
+function BG({ tags: e, label: t, readOnly: n = !1, attrs: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
...i,
"data-media-tags": "",
@@ -56167,12 +56167,12 @@ function zG({ tags: e, label: t, readOnly: n = !1, attrs: r, ...i }) {
});
}
// src/react/components/recommendation-reason.tsx
-var pxe = 3;
-function mxe(e, t, n = pxe) {
+var fxe = 3;
+function pxe(e, t, n = fxe) {
return [...e, t.slice(0, n).join("、")].filter(Boolean).join(" · ");
}
-function BG({ reasons: e, tags: t = [] }) {
- let n = (0, F.useRef)(null), [r, i] = (0, F.useState)(!1), a = mxe(e, t);
+function VG({ reasons: e, tags: t = [] }) {
+ let n = (0, F.useRef)(null), [r, i] = (0, F.useState)(!1), a = pxe(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", {
@@ -56187,15 +56187,15 @@ function BG({ reasons: e, tags: t = [] }) {
e.stopPropagation(), i(!0);
},
children: a
- }), /* @__PURE__ */ (0, I.jsx)(cz, {
+ }), /* @__PURE__ */ (0, I.jsx)(lz, {
triggerRef: n,
isOpen: r,
onOpenChange: i,
placement: "top",
offset: 8,
containerPadding: 12,
- className: OV,
- children: /* @__PURE__ */ (0, I.jsx)(xz, {
+ className: kV,
+ children: /* @__PURE__ */ (0, I.jsx)(Sz, {
"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",
@@ -56204,63 +56204,63 @@ function BG({ reasons: e, tags: t = [] }) {
})] });
}
// src/library-catalog.ts
-var VG = "peach.library-colors.v1", HG = null, UG = /* @__PURE__ */ new Set();
-function hxe() {
+var HG = "peach.library-colors.v1", UG = null, WG = /* @__PURE__ */ new Set();
+function mxe() {
try {
- let e = JSON.parse(localStorage.getItem(VG) || "{}");
+ let e = JSON.parse(localStorage.getItem(HG) || "{}");
return e && typeof e == "object" ? e : {};
} catch {
return {};
}
}
-function WG(e) {
- HG = e;
+function GG(e) {
+ UG = e;
try {
- localStorage.setItem(VG, JSON.stringify(Object.fromEntries(e.filter((e) => e.color).map((e) => [e.id, e.color]))));
+ localStorage.setItem(HG, JSON.stringify(Object.fromEntries(e.filter((e) => e.color).map((e) => [e.id, e.color]))));
} catch {}
- UG.forEach((t) => t(e));
+ WG.forEach((t) => t(e));
}
-function GG() {
- return HG;
+function KG() {
+ return UG;
}
-function gxe(e) {
- return UG.add(e), () => {
- UG.delete(e);
+function hxe(e) {
+ return WG.add(e), () => {
+ WG.delete(e);
};
}
// src/react/components/library-tint.ts
-var KG = /* @__PURE__ */ new Map(), qG = !1, JG = /* @__PURE__ */ new Set();
-function _xe(e) {
+var qG = /* @__PURE__ */ new Map(), JG = !1, YG = /* @__PURE__ */ new Set();
+function gxe(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 YG(e) {
- KG = e;
+function XG(e) {
+ qG = e;
let t = document.getElementById("peach-library-tints");
- t || (t = document.createElement("style"), t.id = "peach-library-tints", document.head.append(t)), t.textContent = [...KG.values()].filter((e) => e.color).map((e) => `[data-library="${CSS.escape(e.id)}"]{--library-color:${_xe(e.color)}}`).join("\n");
+ 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:${gxe(e.color)}}`).join("\n");
}
-function XG(e) {
- YG(e), JG.forEach((e) => e());
+function ZG(e) {
+ XG(e), YG.forEach((e) => e());
}
-var ZG = (e) => new Map(e.map((e) => [e.id, {
+var QG = (e) => new Map(e.map((e) => [e.id, {
id: e.id,
name: e.name,
icon: vs[e.icon || ""] || e.icon || "database",
location: e.roots?.[0]?.location || "",
color: e.color || ""
-}])), QG = !1;
-function vxe() {
- if (QG) return;
- QG = !0, gxe((e) => XG(ZG(e)));
- let e = GG();
+}])), $G = !1;
+function _xe() {
+ if ($G) return;
+ $G = !0, hxe((e) => ZG(QG(e)));
+ let e = KG();
if (e) {
- YG(ZG(e));
+ XG(QG(e));
return;
}
- let t = Object.entries(hxe()).filter(([, e]) => e);
- t.length && YG(new Map(t.map(([e, t]) => [e, {
+ let t = Object.entries(mxe()).filter(([, e]) => e);
+ t.length && XG(new Map(t.map(([e, t]) => [e, {
id: e,
name: "",
icon: "database",
@@ -56268,56 +56268,56 @@ function vxe() {
color: t
}])));
}
-function yxe() {
- qG || GG() || (qG = !0, B("/api/libraries").then((e) => WG(e.libraries || [])).catch(() => {
- qG = !1;
+function vxe() {
+ JG || KG() || (JG = !0, B("/api/libraries").then((e) => GG(e.libraries || [])).catch(() => {
+ JG = !1;
}));
}
-function bxe(e, t) {
- let n = KG.get(e) ?? {
+function yxe(e, t) {
+ let n = qG.get(e) ?? {
id: e,
name: "",
icon: "database",
location: "",
color: ""
};
- XG(new Map([...KG, [e, {
+ ZG(new Map([...qG, [e, {
...n,
color: t
}]]));
}
-function xxe(e) {
- return JG.add(e), () => {
- JG.delete(e);
+function bxe(e) {
+ return YG.add(e), () => {
+ YG.delete(e);
};
}
-function $G({ names: e = !1 } = {}) {
- return vxe(), e && yxe(), (0, F.useSyncExternalStore)(xxe, () => KG, () => KG);
+function eK({ names: e = !1 } = {}) {
+ return _xe(), e && vxe(), (0, F.useSyncExternalStore)(bxe, () => qG, () => qG);
}
// src/react/components/row-click.ts
-var Sxe = "a,button,input,select,textarea,label,[role=\"checkbox\"],[role=\"switch\"],[role=\"button\"],[role=\"link\"],[role=\"menu\"]";
-function eK(e, t) {
+var xxe = "a,button,input,select,textarea,label,[role=\"checkbox\"],[role=\"switch\"],[role=\"button\"],[role=\"link\"],[role=\"menu\"]";
+function tK(e, t) {
let n = e.target;
if (!(n instanceof Element) || !t.contains(n)) return !1;
- let r = n.closest(Sxe);
+ let r = n.closest(xxe);
return !r || !t.contains(r) || r === t;
}
-function tK(e) {
+function nK(e) {
e.shiftKey && e.preventDefault();
}
// src/react/components/media-card.tsx
-var nK = 9 / 16, rK = "未命名视频", Cxe = {
+var rK = 9 / 16, iK = "未命名视频", Sxe = {
image: "图片",
audio: "音频",
archive: "压缩包",
other: "其它文件"
-}, wxe = {
+}, Cxe = {
manual: "手动",
junk: "垃圾",
duplicate: "重复",
missing: "文件缺失"
};
-function Txe(e) {
+function wxe(e) {
if (Number(e.duration) < 0) return {
key: "unavailable",
label: "探查错误"
@@ -56345,16 +56345,16 @@ function Txe(e) {
label: "尚未探查"
};
}
-function iK({ item: e }) {
+function aK({ item: e }) {
if (e.disposal !== "trash") return null;
- let t = e.disposal_reason && wxe[e.disposal_reason] || "原因未记录";
+ let t = e.disposal_reason && Cxe[e.disposal_reason] || "原因未记录";
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-disposal-reason": "",
title: `归入原因:${t}`,
children: t
});
}
-function aK({ item: e, actions: t }) {
+function oK({ 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",
@@ -56373,10 +56373,10 @@ function aK({ item: e, actions: t }) {
children: i
}) : null] });
}
-function oK(e, t, n) {
- return t === "short" ? nK : _M(n);
+function sK(e, t, n) {
+ return t === "short" ? rK : vM(n);
}
-function sK(e) {
+function cK(e) {
let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = jo(e), s = i[0] || "", c = go(e);
return {
avatar: r ? /* @__PURE__ */ (0, I.jsx)("div", {
@@ -56408,7 +56408,7 @@ function sK(e) {
"data-entity-kind": "performer",
"data-entity-name": s,
title: nn("performer", s),
- children: /* @__PURE__ */ (0, I.jsx)(LG, { name: nn("performer", s) })
+ children: /* @__PURE__ */ (0, I.jsx)(RG, { name: nn("performer", s) })
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-who-more": "",
children: `等 ${o} 人`
@@ -56418,16 +56418,16 @@ function sK(e) {
"data-entity-kind": t,
"data-entity-name": n,
title: nn(t, n),
- children: /* @__PURE__ */ (0, I.jsx)(LG, { name: nn(t, n) })
+ children: /* @__PURE__ */ (0, I.jsx)(RG, { name: nn(t, n) })
}) : /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-media-who": "",
"data-open-unowned": "",
- children: /* @__PURE__ */ (0, I.jsx)(LG, { name: n })
+ children: /* @__PURE__ */ (0, I.jsx)(RG, { name: n })
})
};
}
-function Exe() {
+function Txe() {
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-media-preview": "",
@@ -56446,7 +56446,7 @@ function Exe() {
})]
});
}
-function Dxe({ item: e, actions: t, on: n, onChange: r }) {
+function Exe({ item: e, actions: t, on: n, onChange: r }) {
let [i, a] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-media-later": "",
@@ -56461,22 +56461,22 @@ function Dxe({ item: e, actions: t, on: n, onChange: r }) {
},
"aria-busy": i || void 0,
"aria-disabled": i || void 0,
- children: /* @__PURE__ */ (0, I.jsx)(IG, { name: n ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, I.jsx)(LG, { name: n ? "check" : "bookmark-plus" })
})
});
}
-function cK(e, t) {
+function lK(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 Oxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {
- eL();
- let u = (0, F.useRef)(null), [d, f] = (0, F.useState)(null), p = d?.id === e.id ? d.on : !!e.watch_later, m = $G(), 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 Dxe({ 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);
_.current = e;
let v = (0, F.useCallback)((e) => {
let t = _.current;
u.current && u.current !== e && Fl(u.current), u.current = e, e && (!t.medium || t.medium === "video") && Ll(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 = oK(e, t, n), w = S ? n.size : "small", T = C === nK && !!e.is_jav, E = T ? Oo(e, !1) : Eo(e, w, !1, n.javImage), D = T || w === "small" ? E.html : Eo(e, "small", !1, n.javImage).html, O = y?.title || e.name || "", k = o.displayName(e, O).trim() || rK, A = o.titleHtml(e, O).trim() || z(rK), j = y?.total_size ?? e.size, M = y?.total_duration ?? e.duration, ee = Number(M) > 0 ? null : Txe(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 } = sK(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 = sK(e, t, n), w = S ? n.size : "small", T = C === rK && !!e.is_jav, E = T ? Oo(e, !1) : Eo(e, w, !1, n.javImage), D = T || w === "small" ? E.html : Eo(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 : wxe(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) => {
let n = t.target;
if (n.closest("[data-media-reason-dialog]")) return;
let r = u.current;
@@ -56503,10 +56503,10 @@ function Oxe({ 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 === nK ? "" : void 0,
+ "data-pic-portrait": C === rK ? "" : void 0,
style: { "--card-ratio": String(C) },
children: [
- E.html ? /* @__PURE__ */ (0, I.jsx)(UU, {
+ E.html ? /* @__PURE__ */ (0, I.jsx)(WU, {
artwork: E,
identity: D,
relayout: (e) => Dl(e, w)
@@ -56520,11 +56520,11 @@ function Oxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
}),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, I.jsx)(IG, { name: "check" })
+ children: /* @__PURE__ */ (0, I.jsx)(LG, { name: "check" })
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, I.jsx)(IG, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, I.jsx)(LG, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
}),
y && !b ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-group": "",
@@ -56540,7 +56540,7 @@ function Oxe({ 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)(aK, {
+ !i && e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)(oK, {
item: e,
actions: s
}) : null,
@@ -56556,22 +56556,22 @@ function Oxe({ 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)(Exe, {}),
+ /* @__PURE__ */ (0, I.jsx)(Txe, {}),
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)(IG, { name: "bookmark" })
+ children: /* @__PURE__ */ (0, I.jsx)(LG, { 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)(IG, { name: "heart" })
+ children: /* @__PURE__ */ (0, I.jsx)(LG, { name: "heart" })
}) : null]
}) : null,
- i ? null : /* @__PURE__ */ (0, I.jsx)(Dxe, {
+ i ? null : /* @__PURE__ */ (0, I.jsx)(Exe, {
item: e,
actions: s,
on: p,
@@ -56586,27 +56586,27 @@ function Oxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), cK(u.current, -a);
+ e.stopPropagation(), lK(u.current, -a);
},
title: `后退 ${a} 秒`,
"aria-label": `后退 ${a} 秒`,
- children: /* @__PURE__ */ (0, I.jsx)(IG, { name: "rotate-ccw" })
+ children: /* @__PURE__ */ (0, I.jsx)(LG, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), cK(u.current, a);
+ e.stopPropagation(), lK(u.current, a);
},
title: `前进 ${a} 秒`,
"aria-label": `前进 ${a} 秒`,
- children: /* @__PURE__ */ (0, I.jsx)(IG, { name: "rotate-cw" })
+ children: /* @__PURE__ */ (0, I.jsx)(LG, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-open": "",
title: "打开详情",
"aria-label": "打开详情",
- children: /* @__PURE__ */ (0, I.jsx)(IG, { name: "expand" })
+ children: /* @__PURE__ */ (0, I.jsx)(LG, { name: "expand" })
})
]
})
@@ -56626,7 +56626,7 @@ function Oxe({ 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: tK,
+ onMouseDown: nK,
children: [
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -56664,33 +56664,33 @@ function Oxe({ 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)(RG, {
+ children: [e.is_jav && e.release_date ? /* @__PURE__ */ (0, I.jsx)(zG, {
value: e.release_date,
label: e.release_date
}) : null, /* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-size": "",
- children: [/* @__PURE__ */ (0, I.jsx)(IG, { name: "hard-drive" }), Number(j) > 0 ? Xn(Number(j)) : "大小未知"]
+ children: [/* @__PURE__ */ (0, I.jsx)(LG, { name: "hard-drive" }), Number(j) > 0 ? Xn(Number(j)) : "大小未知"]
})]
})
]
}),
- t === "next" ? /* @__PURE__ */ (0, I.jsx)(BG, {
+ t === "next" ? /* @__PURE__ */ (0, I.jsx)(VG, {
reasons: e.why ? e.why.split(" · ") : [],
tags: (e.why_tags || []).map(o.tagLabel)
- }) : ne.length || e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)(zG, {
+ }) : ne.length || e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)(BG, {
tags: ne,
label: o.tagLabel,
readOnly: !!e.follow_item_id
}) : null,
- /* @__PURE__ */ (0, I.jsx)(iK, { item: e })
+ /* @__PURE__ */ (0, I.jsx)(aK, { item: e })
]
})]
})
]
});
}
-function kxe({ 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") ? "网址快捷方式" : Cxe[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
+function Oxe({ 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") ? "网址快捷方式" : Sxe[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
return /* @__PURE__ */ (0, I.jsxs)("article", {
ref: o,
"data-media-card": "",
@@ -56702,14 +56702,14 @@ function kxe({ 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: tK,
+ onMouseDown: nK,
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)(IG, { name: u }), /* @__PURE__ */ (0, I.jsx)("b", { children: l })]
+ children: [/* @__PURE__ */ (0, I.jsx)(LG, { name: u }), /* @__PURE__ */ (0, I.jsx)("b", { children: l })]
}),
s ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-art": "thumb",
@@ -56721,13 +56721,13 @@ function kxe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
}),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, I.jsx)(IG, { name: "check" })
+ children: /* @__PURE__ */ (0, I.jsx)(LG, { name: "check" })
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, I.jsx)(IG, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, I.jsx)(LG, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
}),
- n ? null : /* @__PURE__ */ (0, I.jsx)(aK, {
+ n ? null : /* @__PURE__ */ (0, I.jsx)(oK, {
item: e,
actions: i
})
@@ -56738,7 +56738,7 @@ function kxe({ 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)(IG, { name: u })
+ children: /* @__PURE__ */ (0, I.jsx)(LG, { name: u })
}), /* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-text": "",
children: [
@@ -56766,29 +56766,29 @@ function kxe({ 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)(iK, { item: e })
+ /* @__PURE__ */ (0, I.jsx)(aK, { item: e })
]
})]
})]
});
}
-function Axe(e) {
- return e.variant === "resource" ? /* @__PURE__ */ (0, I.jsx)(kxe, { ...e }) : /* @__PURE__ */ (0, I.jsx)(Oxe, { ...e });
+function kxe(e) {
+ return e.variant === "resource" ? /* @__PURE__ */ (0, I.jsx)(Oxe, { ...e }) : /* @__PURE__ */ (0, I.jsx)(Dxe, { ...e });
}
-var lK = (0, F.memo)(Axe), jxe = 1100, Mxe = 340, Nxe = 5e3;
-function Pxe(e, t, n) {
+var uK = (0, F.memo)(kxe), Axe = 1100, jxe = 340, Mxe = 5e3;
+function Nxe(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, Nxe);
+ }, s = () => o(!1), c = setTimeout(s, Mxe);
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 uK({ load: e, canFlip: t, referrerPolicy: n }) {
+function dK({ 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,
@@ -56830,11 +56830,11 @@ function uK({ load: e, canFlip: t, referrerPolicy: n }) {
return;
}
if (!r() || !u.current.canFlip() || a.length < 2) return;
- let s = await Promise.all(a.map((t) => Pxe(t, e, n)));
+ let s = await Promise.all(a.map((t) => Nxe(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, jxe);
+ p(), e.cycle = setInterval(p, Axe);
}));
};
return (0, F.useEffect)(() => d, [d]), {
@@ -56843,7 +56843,7 @@ function uK({ 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(Mxe, () => {
+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(jxe, () => {
e.armed = null, m();
});
},
@@ -56853,8 +56853,8 @@ function uK({ load: e, canFlip: t, referrerPolicy: n }) {
};
}
// src/react/components/mix-card.tsx
-var dK = lV("play");
-function Fxe({ src: e }) {
+var fK = uV("play");
+function Pxe({ src: e }) {
let [t, n] = (0, F.useState)(!1);
return t ? null : /* @__PURE__ */ (0, I.jsx)("img", {
"data-mix-poster": "",
@@ -56867,8 +56867,8 @@ function Fxe({ src: e }) {
className: "absolute inset-0 block size-full object-contain"
});
}
-var fK = "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 Ixe({ faces: e, fallback: t, onOpenEntity: n }) {
+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 Fxe({ 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", {
@@ -56876,18 +56876,18 @@ function Ixe({ faces: e, fallback: t, onOpenEntity: n }) {
title: `打开资料页:${e.name}`,
"aria-label": `打开资料页:${e.name}`,
onClick: () => n(e.kind, e.name),
- className: `${fK} cursor-pointer outline-none`,
+ className: `${pK} cursor-pointer outline-none`,
dangerouslySetInnerHTML: { __html: vo(e.name, e, Qa(e.name), e.kind) }
}, `${e.kind}:${e.id}`))
}) : /* @__PURE__ */ (0, I.jsx)("span", {
"data-mix-initial": "",
"aria-hidden": !0,
- className: `${fK} mt-0.5`,
+ className: `${pK} mt-0.5`,
children: t
});
}
-function pK({ 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 = uK({
+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({
load: i,
canFlip: a
}), x = (0, F.useRef)(b.onPointerLeave);
@@ -56914,11 +56914,11 @@ function pK({ 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)(UU, {
+ f?.html ? /* @__PURE__ */ (0, I.jsx)(WU, {
artwork: f,
identity: p,
relayout: m
- }) : r ? /* @__PURE__ */ (0, I.jsx)(Fxe, { src: r }, r) : /* @__PURE__ */ (0, I.jsx)("span", {
+ }) : r ? /* @__PURE__ */ (0, I.jsx)(Pxe, { src: r }, r) : /* @__PURE__ */ (0, I.jsx)("span", {
className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",
children: "无预览"
}),
@@ -56948,7 +56948,7 @@ function pK({ 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)(dK, {
+ children: [/* @__PURE__ */ (0, I.jsx)(fK, {
"aria-hidden": !0,
className: "size-(--icon-inline)"
}), g ?? `${n.toLocaleString()} 个视频`]
@@ -56961,8 +56961,8 @@ function pK({ 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)(dK, {})
- }) : /* @__PURE__ */ (0, I.jsx)(Ixe, {
+ children: /* @__PURE__ */ (0, I.jsx)(fK, {})
+ }) : /* @__PURE__ */ (0, I.jsx)(Fxe, {
faces: o,
fallback: er(e),
onOpenEntity: s
@@ -56985,20 +56985,20 @@ function pK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
});
}
// src/react/video-wall/use-wall-camera.ts
-var mK = {
+var hK = {
x: 16,
y: 16,
scale: 1
-}, Lxe = .65, Rxe = 1.6, hK = (e) => Math.min(Rxe, Math.max(Lxe, e)), gK = (e, t, n, r) => ({
+}, Ixe = .65, Lxe = 1.6, gK = (e) => Math.min(Lxe, Math.max(Ixe, e)), _K = (e, t, n, r) => ({
scale: t,
x: n - (n - e.x) * t / e.scale,
y: r - (r - e.y) * t / e.scale
});
-function zxe(e, t, n) {
+function Rxe(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 Bxe(e, t, n = mK, r = !1) {
+function zxe(e, t, n = hK, r = !1) {
let i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)({
width: 0,
height: 0
@@ -57030,12 +57030,12 @@ function Bxe(e, t, n = mK, r = !1) {
previous: 0
});
}, []), y = (0, F.useCallback)((e, t = !1, n = !1) => {
- let { count: r, finite: c, focused: f } = d.current, p = obe(e, o.current, abe(r), c && !f && !n), h = s.current;
+ let { count: r, finite: c, focused: f } = d.current, p = abe(e, o.current, ibe(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 || !zxe(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 || !Rxe(p, u.current, o.current)) && (u.current = p, l({
camera: p,
size: { ...o.current }
}));
@@ -57065,7 +57065,7 @@ function Bxe(e, t, n = mK, r = !1) {
let r = s.current, i = r;
if (t.scale) {
let e = Math.abs(t.scale - r.scale) < .002;
- i = gK(r, e ? t.scale : r.scale + (t.scale - r.scale) * n, t.anchorX, t.anchorY), e && (t.scale = 0);
+ i = _K(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({
@@ -57078,13 +57078,13 @@ function Bxe(e, t, n = mK, r = !1) {
let n = h.current;
if (b()) {
let n = s.current;
- t && (n = gK(n, hK(n.scale * t.factor), t.x, t.y)), e && (n = {
+ t && (n = _K(n, gK(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: hK((n.scale || s.current.scale) * t.factor),
+ scale: gK((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));
@@ -57151,7 +57151,7 @@ function Bxe(e, t, n = mK, r = !1) {
}),
snapshot: () => ({ ...s.current }),
reset: () => {
- v(), y({ ...mK }, !0);
+ v(), y({ ...hK }, !0);
},
pan: (e, t) => {
v(), y({
@@ -57212,16 +57212,16 @@ function Bxe(e, t, n = mK, r = !1) {
};
}
// src/react/video-wall/wall-motion.ts
-var Vxe = {
+var Bxe = {
type: "spring",
stiffness: 300,
damping: 34
-}, Hxe = {
+}, Vxe = {
delay: .14,
duration: .24
};
// src/react/video-wall/use-wall-playback.ts
-function Uxe(e, t, n) {
+function Hxe(e, t, n) {
let [r, i] = (0, F.useState)({
paused: !0,
time: 0,
@@ -57262,8 +57262,8 @@ function Uxe(e, t, n) {
};
}
// src/react/video-wall/wall-controls.tsx
-function Wxe({ 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 = tS(), x = Uxe(t, n, v), S = x.duration || Number(e.duration) || 0, C = r || i, w = !t || x.paused, T = async () => {
+function Uxe({ 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 = tS(), x = Hxe(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) {
@@ -57280,7 +57280,7 @@ function Wxe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
opacity: 1,
transform: "translateY(0px)"
},
- transition: b ? { duration: 0 } : Hxe,
+ transition: b ? { duration: 0 } : Vxe,
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-wall-control-row": "",
children: [
@@ -57288,7 +57288,7 @@ function Wxe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
type: "button",
"data-wall-play": "",
"data-wall-pause": w ? void 0 : "",
- ...dV(C),
+ ...fV(C),
"aria-label": r ? "正在打开" : i ? "正在读取版本" : w ? "播放" : "暂停",
title: w ? "播放" : "暂停",
onClick: () => void T(),
@@ -57338,7 +57338,7 @@ function Wxe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
- ...dV(d),
+ ...fV(d),
"aria-label": u ? "移出稍后看" : "稍后看",
title: "稍后看",
"aria-pressed": u,
@@ -57384,7 +57384,7 @@ function Wxe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
});
}
// src/react/components/mix-queue.tsx
-function _K({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
+function vK({ 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]);
@@ -57420,7 +57420,7 @@ function _K({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a,
})]
});
}
-function vK({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
+function yK({ 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
@@ -57443,7 +57443,7 @@ function vK({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }
}), r]
});
}
-var Gxe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {
+var Wxe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {
"data-mix-group-label": "",
children: [
e,
@@ -57452,28 +57452,28 @@ var Gxe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {
]
});
// src/react/video-wall/wall-queue.tsx
-function Kxe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
+function Gxe({ 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)(_K, {
+ children: /* @__PURE__ */ (0, I.jsx)(vK, {
kind: n,
title: n === "parts" ? "分卷" : n === "editions" ? "版本" : "作品",
summary: `${e.length} 个视频`,
onClose: a,
- children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)(vK, {
+ children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)(yK, {
current: e.id === t,
"data-wall-source": e.id,
"aria-label": [
e.edition_label,
- e.part_label ? PP(e.part_label) : "",
+ e.part_label ? FP(e.part_label) : "",
r(e)
].filter(Boolean).join(" · "),
onClick: () => i(e),
- pic: /* @__PURE__ */ (0, I.jsx)(UU, { artwork: Eo(e, "small", !0, "cover") }),
+ pic: /* @__PURE__ */ (0, I.jsx)(WU, { artwork: Eo(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 ? PP(e.part_label) : "",
+ e.part_label ? FP(e.part_label) : "",
Jn(e.duration)
].filter(Boolean).join(" · ") })]
}, e.id))
@@ -57481,7 +57481,7 @@ function Kxe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a })
});
}
// src/react/video-wall/wall-route.ts
-function qxe(e = `${location.pathname}${location.search}`, t = {}) {
+function Kxe(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",
@@ -57496,17 +57496,17 @@ function qxe(e = `${location.pathname}${location.search}`, t = {}) {
}
return s.set("returnTo", `${n.pathname}${n.search}`), `/wall?${s}`;
}
-function yK(e = `${location.pathname}${location.search}`) {
+function bK(e = `${location.pathname}${location.search}`) {
let t = new URL(e, location.origin).searchParams;
- for (let e of MW) t.delete(e);
+ for (let e of NW) t.delete(e);
return t.delete("tag_match"), `/wall${t.size ? `?${t}` : ""}`;
}
-function bK() {
+function xK() {
let e = new URLSearchParams(Pp.navigation.location.search).get("returnTo") || "/";
Pp.replace(e.startsWith("/") && !e.startsWith("//") && !e.startsWith("/wall") ? e : "/");
}
// src/react/video-wall/video-wall.tsx
-var xK = /* @__PURE__ */ new Map(), SK = (0, F.memo)(function({ item: e, image: t, big: n = !1, ratio: r = 1 }) {
+var SK = /* @__PURE__ */ new Map(), CK = (0, F.memo)(function({ item: e, image: t, big: n = !1, ratio: r = 1 }) {
let i = Eo(!e.is_jav && t === "thumbnail" && e.has_thumb ? {
...e,
has_cover: !1
@@ -57519,7 +57519,7 @@ var xK = /* @__PURE__ */ new Map(), SK = (0, F.memo)(function({ item: e, image:
ref: a,
"data-media-pic": "",
style: { "--card-ratio": String(r) },
- children: /* @__PURE__ */ (0, I.jsx)(UU, {
+ children: /* @__PURE__ */ (0, I.jsx)(WU, {
artwork: i,
relayout: (e) => e.querySelectorAll("img.cover").forEach((e) => {
e.complete && e.naturalWidth && pl(e, r);
@@ -57527,27 +57527,27 @@ var xK = /* @__PURE__ */ new Map(), SK = (0, F.memo)(function({ item: e, image:
})
});
});
-function Jxe({ 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 qxe({ 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 = xK.get(f);
+ let e = SK.get(f);
return e && (i || t || e.pool === p) ? e : void 0;
- }), [h] = (0, F.useState)(() => m?.exploration || new sbe()), 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 obe()), 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: pP(M || {
+ queryKey: mP(M || {
kind: "parts",
seedId: 0
}),
enabled: !!M,
- queryFn: ({ signal: e }) => SP(M, {
+ queryFn: ({ signal: e }) => CP(M, {
tagLabel: u.tagLabel,
mixRelated: async () => []
}, e)
- }), N = M ? ee.data : void 0, te = N?.items.find((e) => e.id === TP(N, O || w?.id || null)) || w, P = Bxe(e.length, t && !!e.length, m?.camera || {
+ }), N = M ? ee.data : void 0, te = N?.items.find((e) => e.id === EP(N, O || w?.id || null)) || w, P = zxe(e.length, t && !!e.length, m?.camera || {
x: 0,
y: 0,
scale: innerWidth < 640 ? .68 : 1
@@ -57566,7 +57566,7 @@ function Jxe({ 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), NW(), P.viewport.current?.focus({ preventScroll: !0 });
+ document.body.append(Ce), PW(), P.viewport.current?.focus({ preventScroll: !0 });
}, [Ce]), (0, F.useEffect)(() => () => Ce.remove(), [Ce]);
let [we, Te] = (0, F.useState)(() => Vf(Pp.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;
@@ -57585,20 +57585,20 @@ function Jxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
pool: p
};
let Me = () => {
- Ae.current && (xK.delete(f), xK.set(f, {
+ Ae.current && (SK.delete(f), SK.set(f, {
...je.current,
camera: P.snapshot(),
exploration: h
- }), xK.size > 8 && xK.delete(xK.keys().next().value));
+ }), SK.size > 8 && SK.delete(SK.keys().next().value));
};
(0, F.useLayoutEffect)(Me);
- let Ne = jW(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 = MW(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 ? kW(e.length, !0, E) : h.tile(E, e.length)), Ie = Fe ? AW(e.length, t, Fe) : /* @__PURE__ */ new Map();
+ }), Fe = w && (t ? AW(e.length, !0, E) : h.tile(E, e.length)), Ie = Fe ? jW(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);
@@ -57639,7 +57639,7 @@ function Jxe({ 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(AW(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(jW(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) => {
@@ -57661,7 +57661,7 @@ function Jxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
C.current === t && de(!1);
}
}, Ue = () => {
- let e = EP(N || null, oe || 0);
+ let e = DP(N || null, oe || 0);
e && (k(e.id), He(e));
};
(0, F.useEffect)(() => {
@@ -57683,7 +57683,7 @@ function Jxe({ 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 ? ibe(e.length, i) : h.nearest(e.length, i, a);
+ }, o = t ? rbe(e.length, i) : h.nearest(e.length, i, a);
o && (Be(n, o), le(n.id));
}, qe = async () => {
if (!(r || g.current)) {
@@ -57775,7 +57775,7 @@ function Jxe({ 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)(SK, {
+ children: /* @__PURE__ */ (0, I.jsx)(CK, {
item: w,
image: Ee,
big: !0
@@ -57783,7 +57783,7 @@ function Jxe({ 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)(SK, {
+ children: /* @__PURE__ */ (0, I.jsx)(CK, {
item: w,
image: Ee,
big: !0
@@ -57812,7 +57812,7 @@ function Jxe({ 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 ? PP(Qe.part_label) : ""].filter(Boolean).join(" · ") }) : null
+ N ? /* @__PURE__ */ (0, I.jsx)("small", { children: [Qe.edition_label, Qe.part_label ? FP(Qe.part_label) : ""].filter(Boolean).join(" · ") }) : null
]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -57829,7 +57829,7 @@ function Jxe({ 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)(oV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
children: fe || xn(ee.error)
}), ee.error && !N ? /* @__PURE__ */ (0, I.jsx)(Y, {
@@ -57839,7 +57839,7 @@ function Jxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
children: "立即重试"
}) : null]
}) : null,
- /* @__PURE__ */ (0, I.jsx)(Wxe, {
+ /* @__PURE__ */ (0, I.jsx)(Uxe, {
item: Qe,
playing: oe,
frame: b,
@@ -57861,7 +57861,7 @@ function Jxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
ended: Ue,
error: pe
}),
- A ? /* @__PURE__ */ (0, I.jsx)(Kxe, {
+ A ? /* @__PURE__ */ (0, I.jsx)(Gxe, {
items: We,
activeId: Qe.id,
kind: N?.kind || "wall",
@@ -57877,7 +57877,7 @@ function Jxe({ 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() : bK());
+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), e.stopPropagation(), A ? j(!1) : w ? ze() : be ? Re() : xK());
},
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -57888,7 +57888,7 @@ function Jxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
"data-wall-back": "",
"aria-label": "退出播放墙",
title: "返回",
- onClick: bK,
+ onClick: xK,
children: /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -57897,7 +57897,7 @@ function Jxe({ 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)(OG, {
+ children: /* @__PURE__ */ (0, I.jsx)(kG, {
busy: r,
onPress: () => void Ye()
})
@@ -57963,7 +57963,7 @@ function Jxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}), /* @__PURE__ */ (0, I.jsx)("p", { children: "当前仅显示筛选结果" })] }), /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
variant: "ghost",
- onClick: () => Pp.push(yK()),
+ onClick: () => Pp.push(bK()),
children: "清除筛选"
})]
}) : null
@@ -58040,7 +58040,7 @@ function Jxe({ 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: Vxe,
+ layout: Bxe,
transform: a ? {
type: "spring",
stiffness: 360,
@@ -58073,7 +58073,7 @@ function Jxe({ 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)(SK, {
+ /* @__PURE__ */ (0, I.jsx)(CK, {
item: r,
image: Ee,
ratio: i.width / i.height
@@ -58111,7 +58111,7 @@ function Jxe({ 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)(oV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
children: a
}), /* @__PURE__ */ (0, I.jsx)(Y, {
@@ -58141,20 +58141,20 @@ function Jxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
children: /* @__PURE__ */ (0, I.jsxs)(Y, {
size: "small",
variant: "secondary",
- ...dV(r),
+ ...fV(r),
onClick: () => void qe(),
children: [r ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Vs() } }) : null, "载入更多"]
})
}) : null,
me ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-wall-error": "",
- children: [/* @__PURE__ */ (0, I.jsx)(oV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
children: me
}), /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
variant: "ghost",
- ...dV(r),
+ ...fV(r),
onClick: () => void qe(),
children: "立即重试"
})]
@@ -58164,7 +58164,7 @@ function Jxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
return (0, Rt.createPortal)(et, Ce);
}
// src/catalog-onboarding.ts
-var CK = [
+var wK = [
"loc",
"creator",
"performer",
@@ -58183,19 +58183,19 @@ var CK = [
"jav",
"thumb"
];
-function Yxe(e = typeof location > "u" ? "/" : location.href) {
+function Jxe(e = typeof location > "u" ? "/" : location.href) {
let t = new URL(e, "http://localhost");
for (let e of [
- ...CK,
+ ...wK,
"q",
"category",
"cat"
]) t.searchParams.delete(e);
return t.searchParams.set("thumb", "0"), t.pathname + (t.search ? t.search : "") + t.hash;
}
-async function Xxe(e, t) {
+async function Yxe(e, t) {
let n = new URLSearchParams();
- for (let t of CK) e[t] && n.set(t, e[t]);
+ for (let t of wK) 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 || [],
@@ -58206,9 +58206,9 @@ async function Xxe(e, t) {
return r.set("q", e), r.set("limit", "1"), (await t("/api/items?" + r)).total > 0 ? e : "";
}))).filter(Boolean);
}
-function wK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
+function TK({ 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 Gs("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(Yxe()) : "/?loc=&thumb=0"}">${t ? "清除筛选" : "查看全部内容"}</a>` });
+ if (t || n) return Gs("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(Jxe()) : "/?loc=&thumb=0"}">${t ? "清除筛选" : "查看全部内容"}</a>` });
if (e !== "catalog") {
let t = (i ? {
tags: "标签",
@@ -58226,12 +58226,12 @@ function wK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable:
return Gs("play", "还没有视频", "添加媒体目录或关注来源,开始建立你的馆藏。", { actions: a + o });
}
// src/react/video-wall/wall-empty.ts
-function Zxe({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {
- return e ? r || wK() : t ? Gs("image", "这些视频还没有封面", n ? "载入更多作品后继续浏览。" : "为作品补充封面后,可在播放墙中查看。", { actions: "<a class=\"geist-button primary\" href=\"/data-cleanup\">补全封面</a>" + (n ? "<button type=\"button\" class=\"geist-button\" data-wall-load-more>加载更多</button>" : "") }) : Gs("search", "没有符合筛选条件的视频", "清除筛选条件后查看全部视频。", { actions: `<a class="geist-button primary" href="${yK()}">清除筛选</a>` });
+function Xxe({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {
+ return e ? r || TK() : t ? Gs("image", "这些视频还没有封面", n ? "载入更多作品后继续浏览。" : "为作品补充封面后,可在播放墙中查看。", { actions: "<a class=\"geist-button primary\" href=\"/data-cleanup\">补全封面</a>" + (n ? "<button type=\"button\" class=\"geist-button\" data-wall-load-more>加载更多</button>" : "") }) : Gs("search", "没有符合筛选条件的视频", "清除筛选条件后查看全部视频。", { actions: `<a class="geist-button primary" href="${bK()}">清除筛选</a>` });
}
// src/react/library-processing/processing-actions.tsx
-function TK({ label: e, maintenance: t = !1, children: n }) {
- let r = pH("hover");
+function EK({ label: e, maintenance: t = !1, children: n }) {
+ let r = mH("hover");
return /* @__PURE__ */ (0, I.jsx)("div", {
ref: r,
role: "group",
@@ -58241,13 +58241,13 @@ function TK({ label: e, maintenance: t = !1, children: n }) {
children: n
});
}
-function EK({ option: e, metadataOnly: t, onRun: n }) {
+function DK({ 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: J(kV, i ? "cursor-not-allowed opacity-50" : AV, "text-body-2-medium"),
+ className: J(AV, i ? "cursor-not-allowed opacity-50" : jV, "text-body-2-medium"),
onClick: () => n(e.command),
children: /* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
@@ -58258,12 +58258,12 @@ function EK({ option: e, metadataOnly: t, onRun: n }) {
})
});
}
-function Qxe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
+function Zxe({ 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 q_e(e, t.signal, a);
+ let o = await K_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(() => {
@@ -58288,7 +58288,7 @@ function Qxe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
}),
/* @__PURE__ */ (0, I.jsx)("div", {
className: "flex justify-center",
- children: /* @__PURE__ */ (0, I.jsx)(bH, {
+ children: /* @__PURE__ */ (0, I.jsx)(xH, {
value: a,
busy: i,
onChange: (e) => {
@@ -58296,7 +58296,7 @@ function Qxe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
}
})
}),
- s ? /* @__PURE__ */ (0, I.jsx)(UH, {
+ s ? /* @__PURE__ */ (0, I.jsx)(WH, {
traffic: s,
initial: !0
}) : null,
@@ -58308,7 +58308,7 @@ function Qxe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
]
});
}
-function DK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, speedMode: i = "standard", pendingCount: a = 0, onRun: o, onOccupied: s }) {
+function OK({ 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 = {
@@ -58356,7 +58356,7 @@ function DK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
description: "为已入库的本地视频生成九宫格",
command: { stage: "previews" }
}
- ], v = e || t, y = e ? dV(!0) : t ? { "aria-disabled": !0 } : {}, b = (a) => {
+ ], v = e || t, y = e ? fV(!0) : t ? { "aria-disabled": !0 } : {}, b = (a) => {
if (e) return;
if (t) {
s?.();
@@ -58391,7 +58391,7 @@ function DK({ 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)(Qxe, {
+ u ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Zxe, {
command: u.command,
dialog: u.dialog,
speed: i,
@@ -58400,11 +58400,11 @@ function DK({ 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)(uH, {
+ u ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(dH, {
href: "/settings/library",
size: "small",
variant: "primary",
- trailingIcon: hB,
+ trailingIcon: gB,
disabled: v,
onClick: (e) => {
u.dialog.confirmButton.getAttribute("aria-busy") === "true" ? e.preventDefault() : u.dialog.close();
@@ -58422,7 +58422,7 @@ function DK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
}), /* @__PURE__ */ (0, I.jsx)(Y, {
ref: c,
iconOnly: !0,
- leadingIcon: mB,
+ leadingIcon: hB,
"aria-label": "更多同步方式",
"aria-haspopup": "dialog",
"aria-expanded": p,
@@ -58432,27 +58432,27 @@ function DK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
}
})]
}),
- /* @__PURE__ */ (0, I.jsx)(cz, {
+ /* @__PURE__ */ (0, I.jsx)(lz, {
triggerRef: c,
isOpen: p,
onOpenChange: m,
placement: "bottom end",
offset: 4,
- className: OV,
- children: /* @__PURE__ */ (0, I.jsxs)(xz, {
+ className: kV,
+ children: /* @__PURE__ */ (0, I.jsxs)(Sz, {
"aria-label": "同步方式",
className: "flex w-80 flex-col gap-1 outline-none",
- children: [n ? /* @__PURE__ */ (0, I.jsxs)(TK, {
+ children: [n ? /* @__PURE__ */ (0, I.jsxs)(EK, {
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)(EK, {
+ }), g.map((e) => /* @__PURE__ */ (0, I.jsx)(DK, {
option: e,
metadataOnly: r,
onRun: b
}, e.label))]
- }) : null, /* @__PURE__ */ (0, I.jsxs)(TK, {
+ }) : null, /* @__PURE__ */ (0, I.jsxs)(EK, {
label: n ? "全库维护" : "补全方式",
maintenance: n,
children: [n ? /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -58464,7 +58464,7 @@ function DK({ 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)(EK, {
+ }) : null, _.map((e) => /* @__PURE__ */ (0, I.jsx)(DK, {
option: e,
metadataOnly: r,
onRun: b
@@ -58475,48 +58475,48 @@ function DK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
] });
}
// src/react/library-processing/library-completion.tsx
-function OK(e, t) {
+function kK(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) && !Eo(e, "small", !1, t).html).map((e) => e.id))];
}
-function kK({ assetIds: e, onComplete: t, className: n = "mb-4" }) {
- return e.length ? /* @__PURE__ */ (0, I.jsx)($xe, {
+function AK({ assetIds: e, onComplete: t, className: n = "mb-4" }) {
+ return e.length ? /* @__PURE__ */ (0, I.jsx)(Qxe, {
assetIds: e,
onComplete: t,
className: n
}) : null;
}
-function $xe({ assetIds: e, onComplete: t, className: n }) {
+function Qxe({ assetIds: e, onComplete: t, className: n }) {
let r = Ft({
- queryKey: JV,
- queryFn: ({ signal: e }) => nH(e),
- refetchInterval: (e) => aH(e.state.data, !0)
+ queryKey: YV,
+ queryFn: ({ signal: e }) => rH(e),
+ refetchInterval: (e) => oH(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(qV, {
+ mutationFn: (t) => V(JV, {
...t,
asset_ids: e
}),
onSuccess: (e) => {
- a(e.job_id || null), H.setQueryData(JV, e), H.invalidateQueries({ queryKey: JV });
+ a(e.job_id || null), H.setQueryData(YV, e), H.invalidateQueries({ queryKey: YV });
}
}), u = r.data;
(0, F.useEffect)(() => {
- u && i && u.job_id === i && !ZV(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 && !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,
t
]);
- let d = l.isPending || ZV(u), f = l.error ? lr(l.error) : r.error ? iH : i && u?.job_id === i && u.status === "failed" ? u.error || "补全未完成" : "", p = f || (l.isPending ? "正在启动补全…" : o || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,${ZV(u) ? "当前任务结束后可单独补全。" : "可补全资料与图片。"}`);
+ 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) ? "当前任务结束后可单独补全。" : "可补全资料与图片。"}`);
return /* @__PURE__ */ (0, I.jsx)("section", {
"aria-label": "补全预览",
"aria-live": "polite",
"data-library-completion": "",
className: J("@container", n),
- children: /* @__PURE__ */ (0, I.jsxs)(oV, {
+ children: /* @__PURE__ */ (0, I.jsxs)(sV, {
tone: f ? "warning" : "neutral",
action: /* @__PURE__ */ (0, I.jsx)("div", {
className: "flex flex-wrap items-center gap-2",
- children: /* @__PURE__ */ (0, I.jsx)(DK, {
+ children: /* @__PURE__ */ (0, I.jsx)(OK, {
busy: d,
metadataOnly: u?.metadata_only,
onRun: (e) => {
@@ -58527,10 +58527,10 @@ function $xe({ assetIds: e, onComplete: t, className: n }) {
children: [
p,
" ",
- /* @__PURE__ */ (0, I.jsx)(uH, {
+ /* @__PURE__ */ (0, I.jsx)(dH, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: hB,
+ trailingIcon: gB,
children: f ? "打开扫描与采集" : "查看处理详情"
})
]
@@ -58538,31 +58538,31 @@ function $xe({ assetIds: e, onComplete: t, className: n }) {
});
}
// node_modules/@tanstack/react-table/dist/FlexRender.js
-function eSe(e) {
- return tSe(e) || typeof e == "function" || nSe(e);
+function $xe(e) {
+ return eSe(e) || typeof e == "function" || tSe(e);
}
-function tSe(e) {
+function eSe(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
-function nSe(e) {
+function tSe(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
-function AK(e, t) {
- return e == null ? null : eSe(e) ? /* @__PURE__ */ F.createElement(e, t) : e;
+function jK(e, t) {
+ return e == null ? null : $xe(e) ? /* @__PURE__ */ F.createElement(e, t) : e;
}
-function rSe(e) {
+function nSe(e) {
if ("cell" in e && e.cell) {
let t = e.cell, n = t.column.columnDef, r = t, i = n;
- return r.getIsAggregated?.() ? AK(i.aggregatedCell ?? n.cell, t.getContext()) : r.getIsPlaceholder?.() ? null : AK(n.cell, t.getContext());
+ return r.getIsAggregated?.() ? jK(i.aggregatedCell ?? n.cell, t.getContext()) : r.getIsPlaceholder?.() ? null : jK(n.cell, t.getContext());
}
- return "header" in e && e.header ? AK(e.header.column.columnDef.header, e.header.getContext()) : "footer" in e && e.footer ? AK(e.footer.column.columnDef.footer, e.footer.getContext()) : null;
+ 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;
}
// node_modules/@tanstack/store/dist/alien.js
/* @__NO_SIDE_EFFECTS__ */
-function iSe({ update: e, notify: t, unwatched: n }) {
+function rSe({ update: e, notify: t, unwatched: n }) {
return {
link: r,
unlink: i,
@@ -58679,7 +58679,7 @@ function iSe({ update: e, notify: t, unwatched: n }) {
}
}
// node_modules/@tanstack/store/dist/atom.js
-function aSe(e, t, n) {
+function iSe(e, t, n) {
let r = typeof e == "object", i = r ? e : void 0;
return {
next: (r ? e.next : e)?.bind(i),
@@ -58687,38 +58687,38 @@ function aSe(e, t, n) {
complete: (r ? e.complete : n)?.bind(i)
};
}
-var jK = [], MK = 0, { link: NK, unlink: oSe, propagate: sSe, checkDirty: PK, shallowPropagate: FK } = /* @__PURE__ */ iSe({
+var MK = [], NK = 0, { link: PK, unlink: aSe, propagate: oSe, checkDirty: FK, shallowPropagate: IK } = /* @__PURE__ */ rSe({
update(e) {
return e._update();
},
notify(e) {
- jK[LK++] = e, e.flags &= -3;
+ MK[RK++] = e, e.flags &= -3;
},
unwatched(e) {
- e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, BK(e));
+ e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, VK(e));
}
-}), IK = 0, LK = 0, RK, zK = 0;
-function cSe(e) {
+}), LK = 0, RK = 0, zK, BK = 0;
+function sSe(e) {
try {
- ++zK, e();
+ ++BK, e();
} finally {
- --zK || VK();
+ --BK || HK();
}
}
-function BK(e) {
+function VK(e) {
let t = e.depsTail, n = t === void 0 ? e.deps : t.nextDep;
- for (; n !== void 0;) n = oSe(n, e);
+ for (; n !== void 0;) n = aSe(n, e);
}
-function VK() {
- if (!(zK > 0)) {
- for (; IK < LK;) {
- let e = jK[IK];
- jK[IK++] = void 0, e.notify();
+function HK() {
+ if (!(BK > 0)) {
+ for (; LK < RK;) {
+ let e = MK[LK];
+ MK[LK++] = void 0, e.notify();
}
- IK = 0, LK = 0;
+ LK = 0, RK = 0;
}
}
-function lSe(e, t) {
+function cSe(e, t) {
let n = typeof e == "function", r = e, i = {
_snapshot: n ? void 0 : e,
subs: void 0,
@@ -58727,53 +58727,53 @@ function lSe(e, t) {
depsTail: void 0,
flags: +!n,
get() {
- return RK !== void 0 && NK(i, RK, MK), i._snapshot;
+ return zK !== void 0 && PK(i, zK, NK), i._snapshot;
},
subscribe(e) {
- let t = aSe(e), n = { current: !1 }, r = uSe(() => {
- i.get(), n.current ? (RK = void 0, t.next?.(i._snapshot)) : n.current = !0;
+ let t = iSe(e), n = { current: !1 }, r = lSe(() => {
+ i.get(), n.current ? (zK = void 0, t.next?.(i._snapshot)) : n.current = !0;
});
return { unsubscribe: () => {
r.stop();
} };
},
_update(e) {
- let a = RK, o = t?.compare ?? Object.is;
- if (n) RK = i, ++MK, i.depsTail = void 0;
+ let a = zK, o = t?.compare ?? Object.is;
+ if (n) zK = i, ++NK, 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 {
- RK = a, n && (i.flags &= -5), BK(i);
+ zK = a, n && (i.flags &= -5), VK(i);
}
}
};
return n ? (i.flags = 17, i.get = function() {
let e = i.flags;
- if (e & 16 || e & 32 && PK(i.deps, i)) {
+ if (e & 16 || e & 32 && FK(i.deps, i)) {
if (i._update()) {
let e = i.subs;
- e !== void 0 && FK(e);
+ e !== void 0 && IK(e);
}
} else e & 32 && (i.flags = e & -33);
- return RK !== void 0 && NK(i, RK, MK), i._snapshot;
+ return zK !== void 0 && PK(i, zK, NK), i._snapshot;
}) : i.set = function(e) {
if (i._update(e)) {
let e = i.subs;
- e !== void 0 && (sSe(e), FK(e), VK());
+ e !== void 0 && (oSe(e), IK(e), HK());
}
}, i;
}
-function uSe(e) {
+function lSe(e) {
let t = () => {
- let t = RK;
- RK = n, ++MK, n.depsTail = void 0, n.flags = 6;
+ let t = zK;
+ zK = n, ++NK, n.depsTail = void 0, n.flags = 6;
try {
return e();
} finally {
- RK = t, n.flags &= -5, BK(n);
+ zK = t, n.flags &= -5, VK(n);
}
}, n = {
deps: void 0,
@@ -58783,16 +58783,16 @@ function uSe(e) {
flags: 6,
notify() {
let e = this.flags;
- e & 16 || e & 32 && PK(this.deps, this) ? t() : this.flags = 2;
+ e & 16 || e & 32 && FK(this.deps, this) ? t() : this.flags = 2;
},
stop() {
- this.flags = 0, this.depsTail = void 0, BK(this);
+ this.flags = 0, this.depsTail = void 0, VK(this);
}
};
return t(), n;
}
// node_modules/@tanstack/store/dist/shallow.js
-function HK(e, t) {
+function UK(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) {
@@ -58806,16 +58806,16 @@ function HK(e, t) {
return !0;
}
if (e instanceof Date && t instanceof Date) return e.getTime() === t.getTime();
- let n = UK(e);
- if (n.length !== UK(t).length) return !1;
+ let n = WK(e);
+ if (n.length !== WK(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 UK(e) {
+function WK(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 dSe = /* @__PURE__ */ o(((e) => {
+var uSe = /* @__PURE__ */ o(((e) => {
var t = A(), n = iw();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -58860,33 +58860,33 @@ var dSe = /* @__PURE__ */ o(((e) => {
f.hasValue = !0, f.value = p;
}, [p]), l(p), p;
};
-})), WK = /* @__PURE__ */ o(((e, t) => {
- t.exports = dSe();
-})), fSe = WK();
-function pSe(e, t) {
+})), GK = /* @__PURE__ */ o(((e, t) => {
+ t.exports = uSe();
+})), dSe = GK();
+function fSe(e, t) {
return e === t;
}
-function GK(e, t = (e) => e, n) {
- let r = n?.compare ?? pSe, i = (0, F.useCallback)((t) => {
+function KK(e, t = (e) => e, n) {
+ let r = n?.compare ?? fSe, i = (0, F.useCallback)((t) => {
let { unsubscribe: n } = e.subscribe(t);
return n;
}, [e]), a = (0, F.useCallback)(() => e.get(), [e]);
- return (0, fSe.useSyncExternalStoreWithSelector)(i, a, a, t, r);
+ return (0, dSe.useSyncExternalStoreWithSelector)(i, a, a, t, r);
}
// node_modules/@tanstack/react-table/dist/Subscribe.js
-function mSe(e) {
- let t = GK(e.source, e.selector, { compare: HK });
+function pSe(e) {
+ let t = KK(e.source, e.selector, { compare: UK });
return typeof e.children == "function" ? e.children(t) : e.children;
}
// node_modules/@tanstack/table-core/dist/core/reactivity/coreReactivityFeature.utils.js
-function hSe(e) {
+function mSe(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 gSe(e) {
+function hSe(e) {
let { createAtom: t, batch: n } = e, r = t(0);
return {
createOptionsStore: !1,
@@ -58916,7 +58916,7 @@ function gSe(e) {
}
};
}
-function _Se(e, t = Object.is) {
+function gSe(e, t = Object.is) {
let n = !1, r;
return {
get: e.get,
@@ -58929,28 +58929,28 @@ function _Se(e, t = Object.is) {
};
}
// node_modules/@tanstack/react-table/dist/reactivity.js
-function vSe() {
- return gSe({
- createAtom: lSe,
- batch: cSe
+function _Se() {
+ return hSe({
+ createAtom: cSe,
+ batch: sSe
});
}
// node_modules/@tanstack/table-core/dist/utils.js
-function KK(e, t) {
+function qK(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function qK(e) {
- if (Array.isArray(e)) return e.map(qK);
+function JK(e) {
+ if (Array.isArray(e)) return e.map(JK);
if (e && typeof e == "object") {
let t = Object.getPrototypeOf(e);
if (t !== Object.prototype && t !== null) return e;
- let n = t === null ? YK() : {}, r = Object.keys(e);
+ let n = t === null ? XK() : {}, 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: qK(e[i]),
+ value: JK(e[i]),
writable: !0
});
}
@@ -58958,7 +58958,7 @@ function qK(e) {
}
return e;
}
-function JK(e, t) {
+function YK(e, t) {
let n = Object.keys(t), r = e;
for (let e = 0; e < n.length; e++) {
let i = n[e];
@@ -58966,53 +58966,53 @@ function JK(e, t) {
}
return e;
}
-function YK() {
+function XK() {
return Object.create(null);
}
-function XK(e, t) {
+function ZK(e, t) {
return Object.prototype.hasOwnProperty.call(e, t);
}
-function ZK(e, t) {
+function QK(e, t) {
return (n) => {
- (t.options.atoms?.[e] ?? t.baseAtoms[e]).set((e) => KK(n, e));
+ (t.options.atoms?.[e] ?? t.baseAtoms[e]).set((e) => qK(n, e));
};
}
-function QK(e) {
+function $K(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 $K(e) {
+function eq(e) {
return Reflect.ownKeys(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
}
-var ySe = 3;
-function bSe(e, t) {
- return eq(e, t, ySe);
+var vSe = 3;
+function ySe(e, t) {
+ return tq(e, t, vSe);
}
-function eq(e, t, n) {
+function tq(e, t, n) {
if (Object.is(e, t)) return !0;
- if (n <= 0 || !QK(e) || !QK(t) || (Array.isArray(e) || Array.isArray(t)) && (!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length)) return !1;
- let r = $K(e), i = $K(t);
+ if (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 (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) || !eq(a[i], o[i], n - 1)) return !1;
+ if (!Object.prototype.propertyIsEnumerable.call(t, i) || !tq(a[i], o[i], n - 1)) return !1;
}
return !0;
}
-function tq(e, t, n, r = bSe) {
+function nq(e, t, n, r = ySe) {
let i = `on${t.charAt(0).toUpperCase()}${t.slice(1)}Change`, a = e.options[i];
a && a((e) => {
- let t = KK(n, e);
+ let t = qK(n, e);
return r(e, t) ? e : t;
});
}
-function xSe(e) {
+function bSe(e) {
return e instanceof Function;
}
-function SSe(e, t) {
+function xSe(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -59022,7 +59022,7 @@ function SSe(e, t) {
};
return r(e), n;
}
-var CSe = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
+var SSe = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
let o = [], s;
return (c) => {
i?.();
@@ -59036,23 +59036,23 @@ var CSe = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCo
return n?.(u), u && (o = l, a?.(), s = e(...l ?? []), r?.(s)), s;
};
};
-function nq(e) {
+function rq(e) {
let t = !1;
return () => {
t ? e() : t = !0;
};
}
-function rq({ feature: e, fnName: t, objectId: n, onAfterUpdate: r, table: i, ...a }) {
+function iq({ 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 CSe({
+ return SSe({
...a,
...o
});
}
-function iq(e, t = "_") {
+function aq(e, t = "_") {
let [n, r] = e.replace(t, " ").split(" ");
return {
fnKey: r,
@@ -59060,10 +59060,10 @@ function iq(e, t = "_") {
parentName: n
};
}
-function aq(e, t, n) {
+function oq(e, t, n) {
for (let [r, { fn: i, memoDeps: a }] of Object.entries(n)) {
- let { fnKey: n, fnName: o } = iq(r);
- t[n] = a ? rq({
+ let { fnKey: n, fnName: o } = aq(r);
+ t[n] = a ? iq({
memoDeps: a,
fn: i,
fnName: o,
@@ -59072,15 +59072,15 @@ function aq(e, t, n) {
}) : i;
}
}
-function oq(e, t, n, r) {
+function sq(e, t, n, r) {
for (let [i, { fn: a, memoDeps: o }] of Object.entries(r)) {
- let { fnKey: r, fnName: s } = iq(i);
+ let { fnKey: r, fnName: s } = aq(i);
if (o) {
let i = `_memo_${r}`;
t[r] = function(...t) {
if (!this[i]) {
let t = this;
- this[i] = rq({
+ this[i] = iq({
memoDeps: (e) => o(t, e),
fn: (...e) => a(t, ...e),
fnName: s,
@@ -59096,17 +59096,17 @@ function oq(e, t, n, r) {
};
}
}
-function sq(e, t, n, ...r) {
+function cq(e, t, n, ...r) {
return e[t]?.(...r) ?? n(e, ...r);
}
// node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.utils.js
-function wSe(e) {
+function CSe(e) {
return e.row.getValue(e.column.id);
}
-function TSe(e) {
+function wSe(e) {
return e.getValue() ?? e.table.options.renderFallbackValue;
}
-function ESe(e) {
+function TSe(e) {
return {
table: e.table,
column: e.column,
@@ -59117,18 +59117,18 @@ function ESe(e) {
};
}
// node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.js
-var DSe = { assignCellPrototype: (e, t) => {
- oq("coreCellsFeature", e, t, {
- cell_getValue: { fn: (e) => wSe(e) },
- cell_renderValue: { fn: (e) => TSe(e) },
+var ESe = { assignCellPrototype: (e, t) => {
+ sq("coreCellsFeature", e, t, {
+ cell_getValue: { fn: (e) => CSe(e) },
+ cell_renderValue: { fn: (e) => wSe(e) },
cell_getContext: {
- fn: (e) => ESe(e),
+ fn: (e) => TSe(e),
memoDeps: (e) => [e]
}
});
} };
// node_modules/@tanstack/table-core/dist/core/columns/constructColumn.js
-function OSe(e) {
+function DSe(e) {
if (!e._columnPrototype) {
e._columnPrototype = { table: e };
let t = Object.values(e._features);
@@ -59136,7 +59136,7 @@ function OSe(e) {
}
return e._columnPrototype;
}
-function kSe(e, t, n, r) {
+function OSe(e, t, n, r) {
let i = {
...e.getDefaultColumnDef(),
...t
@@ -59156,53 +59156,53 @@ function kSe(e, t, n, r) {
} else c = (e) => e[i.accessorKey];
}
if (!s) throw Error();
- let l = OSe(e), u = Object.create(l);
+ let l = DSe(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 cq(e) {
+function lq(e) {
return e.getIsVisible?.() ?? !0;
}
-function ASe(e) {
+function kSe(e) {
return e.getVisibleLeafColumns?.() ?? e.getAllLeafColumns();
}
-function lq(e, t) {
+function uq(e, t) {
let n = e, r = t;
return n.getOrderColumnsFn?.()(r) ?? n._orderGroupedColumns?.(r) ?? t;
}
-function uq(e, t, n, r) {
+function dq(e, t, n, r) {
return e._orderByColumnPinning?.(t, n, r) ?? t;
}
-function dq(e, t) {
+function fq(e, t) {
return e._expandRows?.(t) ?? t;
}
-function jSe(e) {
+function ASe(e) {
e.autoResetExpanded?.();
}
-function fq(e) {
+function pq(e) {
e.autoResetPageIndex?.();
}
-function MSe(e) {
+function jSe(e) {
e.autoResetSorting?.();
}
-function NSe(e) {
+function MSe(e) {
e.autoResetCellSelection?.();
}
// node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.utils.js
-function PSe(e) {
+function NSe(e) {
return [e, ...e.columns.flatMap((e) => e.getFlatColumns())];
}
-function FSe(e) {
+function PSe(e) {
if (e.columns.length) {
let t = e.columns.flatMap((e) => e.getLeafColumns());
- return lq(e.table, t);
+ return uq(e.table, t);
}
return [e];
}
-function ISe(e) {
+function FSe(e) {
return {
header: (e) => {
let t = e.header.column.columnDef;
@@ -59213,53 +59213,53 @@ function ISe(e) {
...e.options.defaultColumn
};
}
-function pq(e, t, n, r = 0) {
+function mq(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 = kSe(e, o, r, n), c = o;
- s.columns = c.columns ? pq(e, c.columns, s, r + 1) : [], i[a] = s;
+ let o = t[a], s = OSe(e, o, r, n), c = o;
+ s.columns = c.columns ? mq(e, c.columns, s, r + 1) : [], i[a] = s;
}
return i;
}
-function LSe(e) {
- return pq(e, e.options.columns);
+function ISe(e) {
+ return mq(e, e.options.columns);
}
-function RSe(e) {
+function LSe(e) {
return e.getAllColumns().flatMap((e) => e.getFlatColumns());
}
-function zSe(e) {
- let t = YK(), n = e.getAllFlatColumns();
+function RSe(e) {
+ let t = XK(), n = e.getAllFlatColumns();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.id] = r;
}
return t;
}
-function BSe(e) {
- return lq(e, e.getAllColumns().flatMap((e) => e.getLeafColumns()));
+function zSe(e) {
+ return uq(e, e.getAllColumns().flatMap((e) => e.getLeafColumns()));
}
-function VSe(e) {
- let t = YK(), n = e.getAllLeafColumns();
+function BSe(e) {
+ let t = XK(), n = e.getAllLeafColumns();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.id] = r;
}
return t;
}
-function HSe(e, t) {
+function VSe(e, t) {
return e.getAllFlatColumnsById()[t];
}
// node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.js
-var USe = {
+var HSe = {
assignColumnPrototype: (e, t) => {
- oq("coreColumnsFeature", e, t, {
+ sq("coreColumnsFeature", e, t, {
column_getFlatColumns: {
- fn: (e) => PSe(e),
+ fn: (e) => NSe(e),
memoDeps: (e) => [e.table.options.columns]
},
column_getLeafColumns: {
- fn: (e) => FSe(e),
+ fn: (e) => PSe(e),
memoDeps: (e) => [
e.table.atoms.columnOrder?.get(),
e.table.atoms.grouping?.get(),
@@ -59270,25 +59270,25 @@ var USe = {
});
},
constructTableAPIs: (e) => {
- aq("coreColumnsFeature", e, {
+ oq("coreColumnsFeature", e, {
table_getDefaultColumnDef: {
- fn: () => ISe(e),
+ fn: () => FSe(e),
memoDeps: () => [e.options.defaultColumn]
},
table_getAllColumns: {
- fn: () => LSe(e),
+ fn: () => ISe(e),
memoDeps: () => [e.options.columns]
},
table_getAllFlatColumns: {
- fn: () => RSe(e),
+ fn: () => LSe(e),
memoDeps: () => [e.options.columns]
},
table_getAllFlatColumnsById: {
- fn: () => zSe(e),
+ fn: () => RSe(e),
memoDeps: () => [e.options.columns]
},
table_getAllLeafColumns: {
- fn: () => BSe(e),
+ fn: () => zSe(e),
memoDeps: () => [
e.atoms.columnOrder?.get(),
e.atoms.grouping?.get(),
@@ -59297,15 +59297,15 @@ var USe = {
]
},
table_getAllLeafColumnsById: {
- fn: () => VSe(e),
+ fn: () => BSe(e),
memoDeps: () => [e.getAllLeafColumns()]
},
- table_getColumn: { fn: (t) => HSe(e, t) }
+ table_getColumn: { fn: (t) => VSe(e, t) }
});
}
};
// node_modules/@tanstack/table-core/dist/core/headers/constructHeader.js
-function WSe(e) {
+function USe(e) {
if (!e._headerPrototype) {
e._headerPrototype = { table: e };
let t = Object.values(e._features);
@@ -59313,38 +59313,38 @@ function WSe(e) {
}
return e._headerPrototype;
}
-function mq(e, t, n) {
- let r = WSe(e), i = Object.create(r);
+function hq(e, t, n) {
+ let r = USe(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 hq(e, t = 1) {
+function gq(e, t = 1) {
let n = t;
for (let r = 0; r < e.length; r++) {
let i = e[r];
- cq(i) && i.columns.length && (n = Math.max(n, hq(i.columns, t + 1)));
+ lq(i) && i.columns.length && (n = Math.max(n, gq(i.columns, t + 1)));
}
return n;
}
-function GSe(e, t) {
+function WSe(e, t) {
return e ? `${e}_${t}` : String(t);
}
-function KSe(e, t, n, r) {
+function GSe(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 qSe(e, t) {
+function KSe(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) e[r].column === t && n++;
return n;
}
-function gq(e, t, n, r, i, a) {
+function _q(e, t, n, r, i, a) {
let o = {
depth: t,
- id: GSe(r, t),
+ id: WSe(r, t),
headers: []
}, s = [];
for (let i = 0; i < e.length; i++) {
@@ -59352,10 +59352,10 @@ function gq(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 = mq(n, u, {
- id: KSe(r, t, u.id, a.id),
+ let e = hq(n, u, {
+ id: GSe(r, t, u.id, a.id),
isPlaceholder: d,
- placeholderId: d ? String(qSe(s, u)) : void 0,
+ placeholderId: d ? String(KSe(s, u)) : void 0,
depth: t,
index: s.length
});
@@ -59364,18 +59364,18 @@ function gq(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 && gq(s, t - 1, n, r, i, a);
+ i.push(o), t > 0 && _q(s, t - 1, n, r, i, a);
}
-function _q(e) {
+function vq(e) {
for (let t = 0; t < e.length; t++) {
let n = e[t];
- if (!cq(n.column)) continue;
+ if (!lq(n.column)) continue;
let r = 0;
if (n.subHeaders.length) {
- _q(n.subHeaders);
+ vq(n.subHeaders);
for (let e = 0; e < n.subHeaders.length; e++) {
let t = n.subHeaders[e];
- cq(t.column) && (r += t.colSpan);
+ lq(t.column) && (r += t.colSpan);
}
} else r = 1;
if (n.colSpan = r, n.isPlaceholder && n.subHeaders.length === 1 && n.subHeaders[0].column === n.column) {
@@ -59385,37 +59385,37 @@ function _q(e) {
} else n.rowSpan = 1;
}
}
-function JSe(e, t, n, r) {
- let i = hq(e), a = [], o = n._headerGroupInstanceInitFns, s = Array(t.length);
- for (let e = 0; e < t.length; e++) e in t && (s[e] = mq(n, t[e], {
+function qSe(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], {
depth: i,
index: e
}));
- return gq(s, i - 1, n, r, a, o), a.reverse(), _q(a[0]?.headers ?? []), a;
+ return _q(s, i - 1, n, r, a, o), a.reverse(), vq(a[0]?.headers ?? []), a;
}
// node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.utils.js
-function vq(e, t) {
- for (let n = 0; n < e.subHeaders.length; n++) vq(e.subHeaders[n], t);
+function yq(e, t) {
+ for (let n = 0; n < e.subHeaders.length; n++) yq(e.subHeaders[n], t);
t.push(e);
}
-function YSe(e) {
+function JSe(e) {
let t = [];
- return vq(e, t), t;
+ return yq(e, t), t;
}
-function XSe(e) {
+function YSe(e) {
return {
column: e.column,
header: e,
table: e.column.table
};
}
-function ZSe(e) {
- return JSe(e.getAllColumns(), uq(e, ASe(e), (e) => e.id), e);
+function XSe(e) {
+ return qSe(e.getAllColumns(), dq(e, kSe(e), (e) => e.id), e);
}
-function QSe(e) {
+function ZSe(e) {
return [...e.getHeaderGroups()].reverse();
}
-function $Se(e) {
+function QSe(e) {
let t = e.getHeaderGroups(), n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e].headers;
@@ -59423,7 +59423,7 @@ function $Se(e) {
}
return n;
}
-function eCe(e) {
+function $Se(e) {
let t = e.getHeaderGroups()[0]?.headers ?? [], n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e].getLeafHeaders();
@@ -59432,23 +59432,23 @@ function eCe(e) {
return n;
}
// node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.js
-var tCe = {
+var eCe = {
assignHeaderPrototype: (e, t) => {
- oq("coreHeadersFeature", e, t, {
+ sq("coreHeadersFeature", e, t, {
header_getLeafHeaders: {
- fn: (e) => YSe(e),
+ fn: (e) => JSe(e),
memoDeps: (e) => [e.column.table.options.columns]
},
header_getContext: {
- fn: (e) => XSe(e),
+ fn: (e) => YSe(e),
memoDeps: (e) => [e.column.table.options.columns]
}
});
},
constructTableAPIs: (e) => {
- aq("coreHeadersFeature", e, {
+ oq("coreHeadersFeature", e, {
table_getHeaderGroups: {
- fn: () => ZSe(e),
+ fn: () => XSe(e),
memoDeps: () => [
e.options.columns,
e.atoms.columnOrder?.get(),
@@ -59459,22 +59459,22 @@ var tCe = {
]
},
table_getFooterGroups: {
- fn: () => QSe(e),
+ fn: () => ZSe(e),
memoDeps: () => [e.getHeaderGroups()]
},
table_getFlatHeaders: {
- fn: () => $Se(e),
+ fn: () => QSe(e),
memoDeps: () => [e.getHeaderGroups()]
},
table_getLeafHeaders: {
- fn: () => eCe(e),
+ fn: () => $Se(e),
memoDeps: () => [e.getHeaderGroups()]
}
});
}
};
// node_modules/@tanstack/table-core/dist/core/rows/constructRow.js
-function nCe(e) {
+function tCe(e) {
if (!e._rowPrototype) {
e._rowPrototype = { table: e };
let t = Object.values(e._features);
@@ -59482,98 +59482,98 @@ function nCe(e) {
}
return e._rowPrototype;
}
-var rCe = (e, t, n, r, i, a, o) => {
- let s = nCe(e), c = Object.create(s);
- c._displayIndexCache = -1, c._uniqueValuesCache = YK(), c._valuesCache = YK(), c.depth = i, c.id = t, c.index = r, c.original = n, c.parentId = o, c.subRows = a ?? [];
+var nCe = (e, t, n, r, i, a, o) => {
+ let s = tCe(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 ?? [];
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 iCe() {
- return (e) => rq({
+function rCe() {
+ return (e) => iq({
feature: "coreRowModelsFeature",
table: e,
fnName: "table.getCoreRowModel",
memoDeps: () => [e.options.data],
- fn: () => aCe(e, e.options.data),
- onAfterUpdate: nq(() => {
- jSe(e), fq(e), MSe(e), NSe(e);
+ fn: () => iCe(e, e.options.data),
+ onAfterUpdate: rq(() => {
+ ASe(e), pq(e), jSe(e), MSe(e);
})
});
}
-function yq(e, t, n, r = 0, i) {
+function bq(e, t, n, r = 0, i) {
let a = [];
for (let o = 0; o < n.length; o++) {
- let s = n[o], c = rCe(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 = yq(e, t, c.originalSubRows, r + 1, c)));
+ let s = n[o], c = nCe(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)));
}
return a;
}
-function aCe(e, t) {
+function iCe(e, t) {
let n = {
rows: [],
flatRows: [],
- rowsById: YK()
+ rowsById: XK()
};
- return n.rows = yq(e, n, t), n;
+ return n.rows = bq(e, n, t), n;
}
// node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.utils.js
-function oCe(e) {
- return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? iCe()(e)), e._rowModels.coreRowModel();
+function aCe(e) {
+ return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? rCe()(e)), e._rowModels.coreRowModel();
}
-function sCe(e) {
+function oCe(e) {
return e.getCoreRowModel();
}
-function cCe(e) {
+function sCe(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 lCe(e) {
+function cCe(e) {
return e.getFilteredRowModel();
}
-function uCe(e) {
+function lCe(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 dCe(e) {
+function uCe(e) {
return e.getGroupedRowModel();
}
-function fCe(e) {
+function dCe(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 pCe(e) {
+function fCe(e) {
return e.getSortedRowModel();
}
-function mCe(e) {
+function pCe(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 hCe(e) {
+function mCe(e) {
return e.getExpandedRowModel();
}
-function gCe(e) {
+function hCe(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 _Ce(e) {
+function gCe(e) {
return e.getPaginatedRowModel();
}
// node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.js
-var vCe = { constructTableAPIs: (e) => {
- aq("coreRowModelsFeature", e, {
- table_getCoreRowModel: { fn: () => oCe(e) },
- table_getPreFilteredRowModel: { fn: () => sCe(e) },
- table_getFilteredRowModel: { fn: () => cCe(e) },
- table_getPreGroupedRowModel: { fn: () => lCe(e) },
- table_getGroupedRowModel: { fn: () => uCe(e) },
- table_getPreSortedRowModel: { fn: () => dCe(e) },
- table_getSortedRowModel: { fn: () => fCe(e) },
- table_getPreExpandedRowModel: { fn: () => pCe(e) },
- table_getExpandedRowModel: { fn: () => mCe(e) },
- table_getPrePaginatedRowModel: { fn: () => hCe(e) },
- table_getPaginatedRowModel: { fn: () => gCe(e) },
- table_getRowModel: { fn: () => _Ce(e) }
+var _Ce = { constructTableAPIs: (e) => {
+ oq("coreRowModelsFeature", e, {
+ table_getCoreRowModel: { fn: () => aCe(e) },
+ table_getPreFilteredRowModel: { fn: () => oCe(e) },
+ table_getFilteredRowModel: { fn: () => sCe(e) },
+ table_getPreGroupedRowModel: { fn: () => cCe(e) },
+ table_getGroupedRowModel: { fn: () => lCe(e) },
+ table_getPreSortedRowModel: { fn: () => uCe(e) },
+ table_getSortedRowModel: { fn: () => dCe(e) },
+ table_getPreExpandedRowModel: { fn: () => fCe(e) },
+ table_getExpandedRowModel: { fn: () => pCe(e) },
+ table_getPrePaginatedRowModel: { fn: () => mCe(e) },
+ table_getPaginatedRowModel: { fn: () => hCe(e) },
+ table_getRowModel: { fn: () => gCe(e) }
});
} };
// node_modules/@tanstack/table-core/dist/core/cells/constructCell.js
-function yCe(e) {
+function vCe(e) {
if (!e._cellPrototype) {
e._cellPrototype = { table: e };
let t = Object.values(e._features);
@@ -59581,48 +59581,48 @@ function yCe(e) {
}
return e._cellPrototype;
}
-function bCe(e, t, n) {
- let r = yCe(n), i = Object.create(r);
+function yCe(e, t, n) {
+ let r = vCe(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 xCe(e) {
+function bCe(e) {
let t = e.table.getRowsInDisplayOrder(), n = e._displayIndexCache;
return t[n] === e ? n : -1;
}
-function SCe(e) {
- let t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? dq(e, t).rows : t.rows;
+function xCe(e) {
+ let t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? fq(e, t).rows : t.rows;
for (let e = 0; e < n.length; e++) n[e]._displayIndexCache = e;
return n;
}
-function CCe(e, t) {
- if (XK(e._valuesCache, t)) return e._valuesCache[t];
+function SCe(e, t) {
+ if (ZK(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 wCe(e, t) {
- if (XK(e._uniqueValuesCache, t)) return e._uniqueValuesCache[t];
+function CCe(e, t) {
+ if (ZK(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 TCe(e, t) {
+function wCe(e, t) {
return e.getValue(t) ?? e.table.options.renderFallbackValue;
}
-function ECe(e) {
- return SSe(e.subRows, (e) => e.subRows);
+function TCe(e) {
+ return xSe(e.subRows, (e) => e.subRows);
}
-function DCe(e) {
+function ECe(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 OCe(e) {
+function DCe(e) {
if (e.parentId) return e.table.getCoreRowModel().rowsById[e.parentId] ?? e.table.getRow(e.parentId, !0);
}
-function kCe(e) {
+function OCe(e) {
let t = [], n = e;
for (;;) {
let e = n.getParentRow();
@@ -59631,77 +59631,77 @@ function kCe(e) {
}
return t.reverse();
}
-function ACe(e) {
+function kCe(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 = bCe(a, e, e.table), n.set(a, o)), r[i] = o;
+ o || (o = yCe(a, e, e.table), n.set(a, o)), r[i] = o;
}
return r;
}
-function jCe(e) {
- let t = YK(), n = e.getAllCells();
+function ACe(e) {
+ let t = XK(), n = e.getAllCells();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.column.id] = r;
}
return t;
}
-function MCe(e, t, n, r) {
+function jCe(e, t, n, r) {
return t.options.getRowId?.(e, n, r) ?? (r ? `${r.id}.${n}` : String(n));
}
-function NCe(e, t, n) {
+function MCe(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 PCe = {
+var NCe = {
assignRowPrototype: (e, t) => {
- oq("coreRowsFeature", e, t, {
- row_getDisplayIndex: { fn: (e) => xCe(e) },
+ sq("coreRowsFeature", e, t, {
+ row_getDisplayIndex: { fn: (e) => bCe(e) },
row_getAllCellsByColumnId: {
- fn: (e) => jCe(e),
+ fn: (e) => ACe(e),
memoDeps: (e) => [e.getAllCells()]
},
row_getAllCells: {
- fn: (e) => ACe(e),
+ fn: (e) => kCe(e),
memoDeps: (e) => [e.table.getAllLeafColumns()]
},
row_getLeafRows: {
- fn: (e) => ECe(e),
+ fn: (e) => TCe(e),
memoDeps: (e) => [e.subRows]
},
- row_getParentRow: { fn: (e) => OCe(e) },
- row_getParentRows: { fn: (e) => kCe(e) },
- row_getUniqueValues: { fn: (e, t) => wCe(e, t) },
- row_getValue: { fn: (e, t) => CCe(e, t) },
- row_renderValue: { fn: (e, t) => TCe(e, t) }
+ row_getParentRow: { fn: (e) => DCe(e) },
+ row_getParentRows: { fn: (e) => OCe(e) },
+ row_getUniqueValues: { fn: (e, t) => CCe(e, t) },
+ row_getValue: { fn: (e, t) => SCe(e, t) },
+ row_renderValue: { fn: (e, t) => wCe(e, t) }
});
},
constructTableAPIs: (e) => {
- aq("coreRowsFeature", e, {
+ oq("coreRowsFeature", e, {
table_getRowsInDisplayOrder: {
- fn: () => SCe(e),
+ fn: () => xCe(e),
memoDeps: () => [
e.getPrePaginatedRowModel().rows,
e.options.paginateExpandedRows,
e.options.paginateExpandedRows === !1 ? e.atoms.expanded?.get() : void 0
]
},
- table_getRowId: { fn: (t, n, r) => MCe(t, e, n, r) },
- table_getRow: { fn: (t, n) => NCe(e, t, n) },
+ table_getRowId: { fn: (t, n, r) => jCe(t, e, n, r) },
+ table_getRow: { fn: (t, n) => MCe(e, t, n) },
table_getMaxSubRowDepth: {
- fn: () => DCe(e),
+ fn: () => ECe(e),
memoDeps: () => [e.getCoreRowModel()]
}
});
}
};
// node_modules/@tanstack/table-core/dist/core/table/coreTablesFeature.utils.js
-function bq(e, t, n = (e, t) => e === t) {
+function xq(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) {
@@ -59712,13 +59712,13 @@ function bq(e, t, n = (e, t) => e === t) {
}
});
}
-function xq(e, t, n = (e, t) => e === t) {
+function Sq(e, t, n = (e, t) => e === t) {
e._reactivity.batch(() => {
- bq(e, t, n), e._reactivity.commit?.();
+ xq(e, t, n), e._reactivity.commit?.();
});
}
-function FCe(e) {
- let t = qK(e.initialState);
+function PCe(e) {
+ let t = JK(e.initialState);
e._reactivity.batch(() => {
let n = Object.keys(t);
for (let r = 0; r < n.length; r++) {
@@ -59729,7 +59729,7 @@ function FCe(e) {
let n = Object.values(e._features);
for (let t = 0; t < n.length; t++) n[t].resetTableInstanceData?.(e);
}
-function ICe(e, t) {
+function FCe(e, t) {
let { features: n, atoms: r, initialState: i } = e.options;
if (!e.options.mergeOptions) return {
...e.options,
@@ -59761,26 +59761,26 @@ function ICe(e, t) {
}
});
}
-function Sq(e, t, n) {
- let r = ICe(e, KK(t, e.options));
- e.optionsStore ? e.optionsStore.set(() => r) : e.options = r, n?.syncExternalState !== !1 && xq(e, r.state ?? null);
+function Cq(e, t, n) {
+ let r = FCe(e, qK(t, e.options));
+ e.optionsStore ? e.optionsStore.set(() => r) : e.options = r, n?.syncExternalState !== !1 && Sq(e, r.state ?? null);
}
// node_modules/@tanstack/table-core/dist/core/coreFeatures.js
-var LCe = {
- coreCellsFeature: DSe,
- coreColumnsFeature: USe,
- coreHeadersFeature: tCe,
- coreRowModelsFeature: vCe,
- coreRowsFeature: PCe,
+var ICe = {
+ coreCellsFeature: ESe,
+ coreColumnsFeature: HSe,
+ coreHeadersFeature: eCe,
+ coreRowModelsFeature: _Ce,
+ coreRowsFeature: NCe,
coreTablesFeature: { constructTableAPIs: (e) => {
- aq("coreTablesFeature", e, {
- table_reset: { fn: () => FCe(e) },
- table_setOptions: { fn: (t) => Sq(e, t) }
+ oq("coreTablesFeature", e, {
+ table_reset: { fn: () => PCe(e) },
+ table_setOptions: { fn: (t) => Cq(e, t) }
});
} }
};
// node_modules/@tanstack/table-core/dist/helpers/columnHelper.js
-function Cq() {
+function wq() {
return {
accessor: (e, t) => typeof e == "function" ? {
...t,
@@ -59795,21 +59795,21 @@ function Cq() {
};
}
// node_modules/@tanstack/table-core/dist/helpers/tableFeatures.js
-function wq(e) {
+function Tq(e) {
return e;
}
// node_modules/@tanstack/table-core/dist/core/table/constructTable.js
-function RCe(e, t = {}) {
+function LCe(e, t = {}) {
return Object.values(e).forEach((e) => {
t = e.getInitialState?.(t) ?? t;
- }), qK(t);
+ }), JK(t);
}
-function zCe(e) {
+function RCe(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: {
- ...LCe,
+ ...ICe,
..._
},
_headerGroupInstanceInitFns: [],
@@ -59847,7 +59847,7 @@ function zCe(e) {
set(e) {
v.optionsStore.set(() => e);
}
- })) : v.options = b, v.initialState = RCe(v._features, v.options.initialState);
+ })) : v.options = b, v.initialState = LCe(v._features, v.options.initialState);
let x = Object.keys(v.initialState);
for (let e = 0; e < x.length; e++) {
let n = x[e];
@@ -59855,14 +59855,14 @@ function zCe(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 && XK(i, n)) {
+ if (i && ZK(i, n)) {
let e = i[n];
return e === void 0 ? v.initialState[n] : e;
}
return r;
}, { debugName: `table/atoms/${n}` });
}
- bq(v), v.store = hSe(t.createReadonlyAtom(() => {
+ xq(v), v.store = mSe(t.createReadonlyAtom(() => {
let e = {};
for (let t = 0; t < x.length; t++) {
let n = x[t];
@@ -59870,7 +59870,7 @@ function zCe(e) {
}
return e;
}, {
- compare: HK,
+ compare: UK,
debugName: "table/store"
}));
for (let e = 0; e < y.length; e++) {
@@ -59880,107 +59880,107 @@ function zCe(e) {
return v;
}
// node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.utils.js
-function BCe() {
- return YK();
+function zCe() {
+ return XK();
}
-function Tq(e, t) {
- Dq(e) && kq(e.table, (n) => {
- let r = Object.assign(YK(), n), i = t ?? !sq(e, "getIsVisible", Eq), a = e.getLeafColumns();
+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();
for (let e = 0; e < a.length; e++) {
let t = a[e];
- Dq(t) && (r[t.id] = i);
+ Oq(t) && (r[t.id] = i);
}
return r;
});
}
-function Eq(e) {
+function Dq(e) {
let t = e.table.atoms.columnVisibility?.get();
if (!t) return !0;
let n = e.columns;
- return n.length ? n.some((e) => sq(e, "getIsVisible", Eq)) : (XK(t, e.id) ? t[e.id] : void 0) ?? !0;
+ return n.length ? n.some((e) => cq(e, "getIsVisible", Dq)) : (ZK(t, e.id) ? t[e.id] : void 0) ?? !0;
}
-function Dq(e) {
+function Oq(e) {
return (e.columnDef.enableHiding ?? !0) && (e.table.options.enableHiding ?? !0);
}
-function VCe(e) {
+function BCe(e) {
return (t) => {
- Tq(e, t.target.checked);
+ Eq(e, t.target.checked);
};
}
-function HCe(e) {
+function VCe(e) {
let t = e.getAllCells(), n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e];
- sq(r.column, "getIsVisible", Eq) && n.push(r);
+ cq(r.column, "getIsVisible", Dq) && n.push(r);
}
- return uq(e.table, n, (e) => e.column.id, () => sq(e, "getVisibleCellsByColumnId", Oq));
+ return dq(e.table, n, (e) => e.column.id, () => cq(e, "getVisibleCellsByColumnId", kq));
}
-function Oq(e) {
- let t = YK(), n = e.getAllCells();
+function kq(e) {
+ let t = XK(), n = e.getAllCells();
for (let e = 0; e < n.length; e++) {
let r = n[e];
- sq(r.column, "getIsVisible", Eq) && (t[r.column.id] = r);
+ cq(r.column, "getIsVisible", Dq) && (t[r.column.id] = r);
}
return t;
}
-function UCe(e) {
- return e.getAllFlatColumns().filter((e) => sq(e, "getIsVisible", Eq));
+function HCe(e) {
+ return e.getAllFlatColumns().filter((e) => cq(e, "getIsVisible", Dq));
}
-function WCe(e) {
- return e.getAllLeafColumns().filter((e) => sq(e, "getIsVisible", Eq));
+function UCe(e) {
+ return e.getAllLeafColumns().filter((e) => cq(e, "getIsVisible", Dq));
}
-function kq(e, t) {
- tq(e, "columnVisibility", t);
+function Aq(e, t) {
+ nq(e, "columnVisibility", t);
}
-function GCe(e, t) {
- kq(e, t ? YK() : Object.assign(YK(), qK(e.initialState.columnVisibility ?? {})));
+function WCe(e, t) {
+ Aq(e, t ? XK() : Object.assign(XK(), JK(e.initialState.columnVisibility ?? {})));
}
-function Aq(e, t) {
- t ??= !jq(e);
- let n = YK(), r = e.getAllLeafColumns();
+function jq(e, t) {
+ t ??= !Mq(e);
+ let n = XK(), r = e.getAllLeafColumns();
for (let e = 0; e < r.length; e++) {
let i = r[e];
- n[i.id] = t || !Dq(i);
+ n[i.id] = t || !Oq(i);
}
- kq(e, n);
+ Aq(e, n);
}
-function jq(e) {
- return !e.getAllLeafColumns().some((e) => !sq(e, "getIsVisible", Eq));
+function Mq(e) {
+ return !e.getAllLeafColumns().some((e) => !cq(e, "getIsVisible", Dq));
}
-function KCe(e) {
- return e.getAllLeafColumns().some((e) => sq(e, "getIsVisible", Eq));
+function GCe(e) {
+ return e.getAllLeafColumns().some((e) => cq(e, "getIsVisible", Dq));
}
-function qCe(e) {
+function KCe(e) {
return (t) => {
- Aq(e, t.target.checked);
+ jq(e, t.target.checked);
};
}
// node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.js
-var Mq = {
+var Nq = {
getInitialState: (e) => ({
- columnVisibility: BCe(),
+ columnVisibility: zCe(),
...e
}),
- getDefaultTableOptions: (e) => ({ onColumnVisibilityChange: ZK("columnVisibility", e) }),
+ getDefaultTableOptions: (e) => ({ onColumnVisibilityChange: QK("columnVisibility", e) }),
assignColumnPrototype: (e, t) => {
- oq("columnVisibilityFeature", e, t, {
+ sq("columnVisibilityFeature", e, t, {
column_getIsVisible: {
- fn: (e) => Eq(e),
+ fn: (e) => Dq(e),
memoDeps: (e) => [
t.options.columns,
t.atoms.columnVisibility?.get(),
e.columns
]
},
- column_getCanHide: { fn: (e) => Dq(e) },
- column_getToggleVisibilityHandler: { fn: (e) => VCe(e) },
- column_toggleVisibility: { fn: (e, t) => Tq(e, t) }
+ column_getCanHide: { fn: (e) => Oq(e) },
+ column_getToggleVisibilityHandler: { fn: (e) => BCe(e) },
+ column_toggleVisibility: { fn: (e, t) => Eq(e, t) }
});
},
assignRowPrototype: (e, t) => {
- oq("columnVisibilityFeature", e, t, {
+ sq("columnVisibilityFeature", e, t, {
row_getVisibleCells: {
- fn: (e) => HCe(e),
+ fn: (e) => VCe(e),
memoDeps: (e) => [
e.getAllCells(),
t.atoms.columnPinning?.get(),
@@ -59988,15 +59988,15 @@ var Mq = {
]
},
row_getVisibleCellsByColumnId: {
- fn: (e) => Oq(e),
+ fn: (e) => kq(e),
memoDeps: (e) => [e.getAllCells(), t.atoms.columnVisibility?.get()]
}
});
},
constructTableAPIs: (e) => {
- aq("columnVisibilityFeature", e, {
+ oq("columnVisibilityFeature", e, {
table_getVisibleFlatColumns: {
- fn: () => UCe(e),
+ fn: () => HCe(e),
memoDeps: () => [
e.atoms.columnVisibility?.get(),
e.atoms.columnOrder?.get(),
@@ -60006,7 +60006,7 @@ var Mq = {
]
},
table_getVisibleLeafColumns: {
- fn: () => WCe(e),
+ fn: () => UCe(e),
memoDeps: () => [
e.atoms.columnVisibility?.get(),
e.atoms.columnOrder?.get(),
@@ -60015,51 +60015,51 @@ var Mq = {
e.options.groupedColumnMode
]
},
- table_setColumnVisibility: { fn: (t) => kq(e, t) },
- table_resetColumnVisibility: { fn: (t) => GCe(e, t) },
- table_toggleAllColumnsVisible: { fn: (t) => Aq(e, t) },
- table_getIsAllColumnsVisible: { fn: () => jq(e) },
- table_getIsSomeColumnsVisible: { fn: () => KCe(e) },
- table_getToggleAllColumnsVisibilityHandler: { fn: () => qCe(e) }
+ table_setColumnVisibility: { fn: (t) => Aq(e, t) },
+ table_resetColumnVisibility: { fn: (t) => WCe(e, t) },
+ table_toggleAllColumnsVisible: { fn: (t) => jq(e, t) },
+ table_getIsAllColumnsVisible: { fn: () => Mq(e) },
+ table_getIsSomeColumnsVisible: { fn: () => GCe(e) },
+ table_getToggleAllColumnsVisibilityHandler: { fn: () => KCe(e) }
});
}
-}, Nq = 0, Pq = 10;
-function Fq() {
+}, Pq = 0, Fq = 10;
+function Iq() {
return {
- pageIndex: Nq,
- pageSize: Pq
+ pageIndex: Pq,
+ pageSize: Fq
};
}
-function JCe(e) {
+function qCe(e) {
if (e.options.autoResetAll ?? e.options.autoResetPageIndex ?? !e.options.manualPagination) {
- if ((e.atoms.pagination?.get()?.pageIndex ?? Nq) === Nq) return;
- Rq(e, !0);
+ if ((e.atoms.pagination?.get()?.pageIndex ?? Pq) === Pq) return;
+ zq(e, !0);
}
}
-function Iq(e, t) {
- tq(e, "pagination", t);
+function Lq(e, t) {
+ nq(e, "pagination", t);
}
-function YCe(e, t) {
- Iq(e, t ? Fq() : qK(e.initialState.pagination ?? Fq()));
+function JCe(e, t) {
+ Lq(e, t ? Iq() : JK(e.initialState.pagination ?? Iq()));
}
-function Lq(e, t) {
- Iq(e, (n) => {
- let r = KK(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
+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;
return r = Math.max(0, Math.min(r, i)), {
...n,
pageIndex: r
};
});
}
-function Rq(e, t) {
- Lq(e, t ? Nq : e.initialState.pagination?.pageIndex ?? Nq);
+function zq(e, t) {
+ Rq(e, t ? Pq : e.initialState.pagination?.pageIndex ?? Pq);
}
-function XCe(e, t) {
- zq(e, t ? Pq : e.initialState.pagination?.pageSize ?? Pq);
+function YCe(e, t) {
+ Bq(e, t ? Fq : e.initialState.pagination?.pageSize ?? Fq);
}
-function zq(e, t) {
- Iq(e, (e) => {
- let n = Math.max(1, KK(t, e.pageSize)), r = e.pageSize === Infinity ? 0 : e.pageSize * e.pageIndex, i = n === Infinity ? 0 : Math.floor(r / n);
+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);
return {
...e,
pageIndex: i,
@@ -60067,231 +60067,231 @@ function zq(e, t) {
};
});
}
-function ZCe(e) {
- let t = Bq(e), n = [];
+function XCe(e) {
+ let t = Vq(e), n = [];
return t && t > 0 && (n = [...Array(t)].fill(null).map((e, t) => t)), n;
}
-function QCe(e) {
+function ZCe(e) {
return (e.atoms.pagination?.get()?.pageIndex ?? 0) > 0;
}
-function $Ce(e) {
- let t = e.atoms.pagination?.get()?.pageIndex ?? Nq, n = Bq(e);
+function QCe(e) {
+ let t = e.atoms.pagination?.get()?.pageIndex ?? Pq, n = Vq(e);
return n === -1 || n !== 0 && t < n - 1;
}
-function ewe(e) {
- let t = e.atoms.pagination?.get()?.pageIndex ?? Nq, n = Bq(e);
+function $Ce(e) {
+ let t = e.atoms.pagination?.get()?.pageIndex ?? Pq, n = Vq(e);
return Number.isFinite(n) && n > 0 && t < n - 1;
}
+function ewe(e) {
+ return Rq(e, (e) => e - 1);
+}
function twe(e) {
- return Lq(e, (e) => e - 1);
+ return Rq(e, (e) => e + 1);
}
function nwe(e) {
- return Lq(e, (e) => e + 1);
+ return Rq(e, 0);
}
function rwe(e) {
- return Lq(e, 0);
-}
-function iwe(e) {
- let t = Bq(e);
- if (!(!Number.isFinite(t) || t <= 0)) return Lq(e, t - 1);
+ let t = Vq(e);
+ if (!(!Number.isFinite(t) || t <= 0)) return Rq(e, t - 1);
}
-function Bq(e) {
+function Vq(e) {
let t = e.options.pageCount;
if (t != null) return t;
- let n = Vq(e), r = e.atoms.pagination?.get()?.pageSize ?? Pq;
+ let n = Hq(e), r = e.atoms.pagination?.get()?.pageSize ?? Fq;
return r === Infinity && Number.isFinite(n) && n > 0 ? 1 : Math.ceil(n / r);
}
-function Vq(e) {
+function Hq(e) {
return e.options.rowCount ?? e.getPrePaginatedRowModel().rows.length;
}
// node_modules/@tanstack/table-core/dist/features/row-pagination/rowPaginationFeature.js
-var Hq = {
+var Uq = {
getInitialState: (e) => ({
...e,
pagination: {
- ...Fq(),
+ ...Iq(),
...e.pagination
}
}),
- getDefaultTableOptions: (e) => ({ onPaginationChange: ZK("pagination", e) }),
+ getDefaultTableOptions: (e) => ({ onPaginationChange: QK("pagination", e) }),
constructTableAPIs: (e) => {
- aq("rowPaginationFeature", e, {
- table_autoResetPageIndex: { fn: () => JCe(e) },
- table_setPagination: { fn: (t) => Iq(e, t) },
- table_resetPagination: { fn: (t) => YCe(e, t) },
- table_setPageIndex: { fn: (t) => Lq(e, t) },
- table_resetPageIndex: { fn: (t) => Rq(e, t) },
- table_setPageSize: { fn: (t) => zq(e, t) },
- table_getPageCount: { fn: () => Bq(e) },
- table_resetPageSize: { fn: (t) => XCe(e, t) },
- table_getPageOptions: { fn: () => ZCe(e) },
- table_getCanPreviousPage: { fn: () => QCe(e) },
- table_getCanNextPage: { fn: () => $Ce(e) },
- table_getCanLastPage: { fn: () => ewe(e) },
- table_previousPage: { fn: () => twe(e) },
- table_nextPage: { fn: () => nwe(e) },
- table_firstPage: { fn: () => rwe(e) },
- table_lastPage: { fn: () => iwe(e) },
- table_getRowCount: { fn: () => Vq(e) }
+ oq("rowPaginationFeature", e, {
+ table_autoResetPageIndex: { fn: () => qCe(e) },
+ table_setPagination: { fn: (t) => Lq(e, t) },
+ table_resetPagination: { fn: (t) => JCe(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) => YCe(e, t) },
+ table_getPageOptions: { fn: () => XCe(e) },
+ table_getCanPreviousPage: { fn: () => ZCe(e) },
+ table_getCanNextPage: { fn: () => QCe(e) },
+ table_getCanLastPage: { fn: () => $Ce(e) },
+ table_previousPage: { fn: () => ewe(e) },
+ table_nextPage: { fn: () => twe(e) },
+ table_firstPage: { fn: () => nwe(e) },
+ table_lastPage: { fn: () => rwe(e) },
+ table_getRowCount: { fn: () => Hq(e) }
});
}
};
// node_modules/@tanstack/table-core/dist/features/row-selection/rowSelectionFeature.utils.js
-function awe() {
- return YK();
+function iwe() {
+ return XK();
}
-function Uq(e, t) {
+function Wq(e, t) {
e.options.onRowSelectionChange?.(t);
}
-function owe(e, t) {
- e._lastSelectedRowId = null, Uq(e, t ? YK() : Object.assign(YK(), qK(e.initialState.rowSelection ?? {})));
+function awe(e, t) {
+ e._lastSelectedRowId = null, Wq(e, t ? XK() : Object.assign(XK(), JK(e.initialState.rowSelection ?? {})));
}
-function Wq(e, t, n) {
- e._lastSelectedRowId = null, Uq(e, (r) => {
- if (t = t === void 0 ? !sq(e, "getIsAllRowsSelected", qq) : t, n?.deselectAll && !t) return YK();
- let i = Object.assign(YK(), r), a = e.getPreGroupedRowModel().flatRows;
+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;
if (t) {
let e = /* @__PURE__ */ new Map();
a.forEach((t) => {
- rJ(t, e) && (i[t.id] = !0);
+ iJ(t, e) && (i[t.id] = !0);
});
} else a.forEach((e) => {
- $q(e) && delete i[e.id];
+ eJ(e) && delete i[e.id];
});
return i;
});
}
-function Gq(e, t, n) {
- e._lastSelectedRowId = null, Uq(e, (r) => {
- let i = t === void 0 ? !sq(e, "getIsAllPageRowsSelected", Jq) : t;
- if (n?.deselectAll && !i) return YK();
- let a = Object.assign(YK(), r);
+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);
return e.getRowModel().rows.forEach((t) => {
- nJ(a, t.id, i, !0, e, !0);
+ rJ(a, t.id, i, !0, e, !0);
}), a;
});
}
-function swe(e) {
+function owe(e) {
return e.getCoreRowModel();
}
-function cwe(e) {
+function swe(e) {
let t = e.getCoreRowModel();
- return sq(e, "getIsSomeRowsSelected", Yq) ? oJ(t, e) : {
+ return cq(e, "getIsSomeRowsSelected", Xq) ? sJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: YK()
+ rowsById: XK()
};
}
-function lwe(e) {
+function cwe(e) {
let t = e.getFilteredRowModel();
- return sq(e, "getIsSomeRowsSelected", Yq) ? oJ(t, e) : {
+ return cq(e, "getIsSomeRowsSelected", Xq) ? sJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: YK()
+ rowsById: XK()
};
}
-function uwe(e) {
+function lwe(e) {
let t = e.getSortedRowModel();
- return sq(e, "getIsSomeRowsSelected", Yq) ? oJ(t, e) : {
+ return cq(e, "getIsSomeRowsSelected", Xq) ? sJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: YK()
+ rowsById: XK()
};
}
-function Kq(e) {
+function qq(e) {
return Object.keys(e.atoms.rowSelection?.get() ?? {});
}
-function qq(e) {
+function Jq(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) => !sJ(t, n) && rJ(t, e)) && (r = !1);
+ t.some((t) => !cJ(t, n) && iJ(t, e)) && (r = !1);
}
return r;
}
-function Jq(e) {
+function Yq(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 (sJ(a, n)) !i && rJ(a, r) && (i = !0);
- else if (rJ(a, r)) return !1;
+ if (cJ(a, n)) !i && iJ(a, r) && (i = !0);
+ else if (iJ(a, r)) return !1;
}
return i;
}
-function Yq(e) {
- return sq(e, "getSelectedRowIds", Kq).length > 0;
+function Xq(e) {
+ return cq(e, "getSelectedRowIds", qq).length > 0;
}
-function dwe(e) {
- return e.getPaginatedRowModel().flatRows.filter((e) => $q(e)).some((e) => Zq(e) || sq(e, "getIsSomeSelected", Qq));
+function uwe(e) {
+ return e.getPaginatedRowModel().flatRows.filter((e) => eJ(e)).some((e) => Qq(e) || cq(e, "getIsSomeSelected", $q));
}
-function fwe(e) {
+function dwe(e) {
return (t) => {
- Wq(e, t.target.checked);
+ Gq(e, t.target.checked);
};
}
-function pwe(e) {
+function fwe(e) {
return (t) => {
- Gq(e, t.target.checked);
+ Kq(e, t.target.checked);
};
}
-function Xq(e, t, n) {
- let r = Zq(e);
- Uq(e.table, (i) => {
+function Zq(e, t, n) {
+ let r = Qq(e);
+ Wq(e.table, (i) => {
t = t === void 0 ? !r : t;
- let a = Object.assign(YK(), i);
- return nJ(a, e.id, t, (n?.selectChildren ?? !0) && tJ(e), e.table), !t && n?.deselectParents && iJ(a, e), a;
+ 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;
});
}
-function Zq(e) {
- return sJ(e, e.table.atoms.rowSelection?.get() ?? {});
-}
function Qq(e) {
- return cJ(e) === "some";
-}
-function mwe(e) {
- return cJ(e) === "all";
+ return cJ(e, e.table.atoms.rowSelection?.get() ?? {});
}
function $q(e) {
+ return lJ(e) === "some";
+}
+function pwe(e) {
+ return lJ(e) === "all";
+}
+function eJ(e) {
let t = e.table.options;
return typeof t.enableRowSelection == "function" ? t.enableRowSelection(e) : t.enableRowSelection ?? !0;
}
-function eJ(e) {
+function tJ(e) {
let t = e.table.options;
return typeof t.enableSubRowSelection == "function" ? t.enableSubRowSelection(e) : t.enableSubRowSelection ?? !0;
}
-function tJ(e) {
+function nJ(e) {
let t = e.table.options;
return typeof t.enableMultiRowSelection == "function" ? t.enableMultiRowSelection(e) : t.enableMultiRowSelection ?? !0;
}
-function hwe(e, t) {
- let n = $q(e);
+function mwe(e, t) {
+ let n = eJ(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 && tJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1) && gwe(e, s, o, t) || Xq(e, o, t), a._lastSelectedRowId = e.id;
+ a.options.enableRowRangeSelection !== !1 && s !== null && nJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1) && hwe(e, s, o, t) || Zq(e, o, t), a._lastSelectedRowId = e.id;
};
}
-function gwe(e, t, n, r) {
+function hwe(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 || !tJ(s) || !tJ(e)) return !1;
+ 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;
let f = Math.min(c, l), p = Math.max(c, l);
- return Uq(a, (e) => {
- let t = Object.assign(YK(), e);
+ return Wq(a, (e) => {
+ let t = Object.assign(XK(), e);
for (let e = f; e <= p; e++) {
let s = o[e];
- $q(s) && tJ(s) && (nJ(t, s.id, n, i, a), !n && r?.deselectParents && iJ(t, s));
+ eJ(s) && nJ(s) && (rJ(t, s.id, n, i, a), !n && r?.deselectParents && aJ(t, s));
}
return t;
}), !0;
}
-function nJ(e, t, n, r, i, a) {
+function rJ(e, t, n, r, i, a) {
let o = i.getRow(t, !0);
- n ? (tJ(o) || Object.keys(e).forEach((t) => delete e[t]), $q(o) && (e[t] = !0)) : (!a || $q(o)) && delete e[t], r && o.subRows.length && eJ(o) && o.subRows.forEach((t) => nJ(e, t.id, n, r, i, a));
+ 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));
}
-function rJ(e, t) {
- if (!$q(e)) return !1;
+function iJ(e, t) {
+ if (!eJ(e)) return !1;
let n = e.table;
if (n.options.enableSubRowSelection === !0) return !0;
let r = e.parentId;
@@ -60307,7 +60307,7 @@ function rJ(e, t) {
}
o.push(c);
let r = a[c] ?? n.getRow(c, !0);
- if (!eJ(r)) {
+ if (!tJ(r)) {
s = !1;
break;
}
@@ -60315,50 +60315,50 @@ function rJ(e, t) {
}
return o.forEach((e) => t.set(e, s)), s;
}
-function iJ(e, t) {
+function aJ(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 aJ(e, t, n, r) {
+function oJ(e, t, n, r) {
let i = [];
for (let a = 0; a < e.length; a++) {
- let o = e[a], s = sJ(o, t);
+ let o = e[a], s = cJ(o, t);
if (s && (n.push(o), r[o.id] = o), o.subRows.length) {
- let e = aJ(o.subRows, t, n, r);
+ let e = oJ(o.subRows, t, n, r);
if (s) {
let t = Object.create(Object.getPrototypeOf(o));
- JK(t, o), t.subRows = e, i.push(t);
+ YK(t, o), t.subRows = e, i.push(t);
}
} else s && i.push(o);
}
return i;
}
-function oJ(e, t) {
- let n = [], r = YK(), i = t.atoms.rowSelection?.get() ?? {};
+function sJ(e, t) {
+ let n = [], r = XK(), i = t.atoms.rowSelection?.get() ?? {};
return {
- rows: aJ(e.rows, i, n, r),
+ rows: oJ(e.rows, i, n, r),
flatRows: n,
rowsById: r
};
}
-function sJ(e, t) {
- return !!(XK(t, e.id) && t[e.id]);
+function cJ(e, t) {
+ return !!(ZK(t, e.id) && t[e.id]);
}
-function cJ(e) {
+function lJ(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 ($q(o) && (i = !0, sJ(o, t) ? n = !0 : r = !1), o.subRows.length) {
- let e = cJ(o);
+ if (eJ(o) && (i = !0, cJ(o, t) ? n = !0 : r = !1), o.subRows.length) {
+ let e = lJ(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 lJ = {
+var uJ = {
initTableInstanceData: (e) => {
e._lastSelectedRowId = null;
},
@@ -60366,11 +60366,11 @@ var lJ = {
e._lastSelectedRowId = null;
},
getInitialState: (e) => ({
- rowSelection: awe(),
+ rowSelection: iwe(),
...e
}),
getDefaultTableOptions: (e) => ({
- onRowSelectionChange: ZK("rowSelection", e),
+ onRowSelectionChange: QK("rowSelection", e),
enableRowSelection: !0,
enableMultiRowSelection: !0,
enableRowRangeSelection: !0,
@@ -60381,11 +60381,11 @@ var lJ = {
}
}),
assignRowPrototype: (e, t) => {
- oq("rowSelectionFeature", e, t, {
- row_toggleSelected: { fn: (e, t, n) => Xq(e, t, n) },
- row_getIsSelected: { fn: (e) => Zq(e) },
+ sq("rowSelectionFeature", e, t, {
+ row_toggleSelected: { fn: (e, t, n) => Zq(e, t, n) },
+ row_getIsSelected: { fn: (e) => Qq(e) },
row_getIsSomeSelected: {
- fn: (e) => Qq(e),
+ fn: (e) => $q(e),
memoDeps: (e) => [
e.subRows,
e.table.atoms.rowSelection?.get(),
@@ -60393,44 +60393,44 @@ var lJ = {
]
},
row_getIsAllSubRowsSelected: {
- fn: (e) => mwe(e),
+ fn: (e) => pwe(e),
memoDeps: (e) => [
e.subRows,
e.table.atoms.rowSelection?.get(),
e.table.options.enableRowSelection
]
},
- row_getCanSelect: { fn: (e) => $q(e) },
- row_getCanSelectSubRows: { fn: (e) => eJ(e) },
- row_getCanMultiSelect: { fn: (e) => tJ(e) },
- row_getToggleSelectedHandler: { fn: (e, t) => hwe(e, t) }
+ row_getCanSelect: { fn: (e) => eJ(e) },
+ row_getCanSelectSubRows: { fn: (e) => tJ(e) },
+ row_getCanMultiSelect: { fn: (e) => nJ(e) },
+ row_getToggleSelectedHandler: { fn: (e, t) => mwe(e, t) }
});
},
constructTableAPIs: (e) => {
- aq("rowSelectionFeature", e, {
- table_setRowSelection: { fn: (t) => Uq(e, t) },
- table_resetRowSelection: { fn: (t) => owe(e, t) },
- table_toggleAllRowsSelected: { fn: (t, n) => Wq(e, t, n) },
- table_toggleAllPageRowsSelected: { fn: (t, n) => Gq(e, t, n) },
- table_getPreSelectedRowModel: { fn: () => swe(e) },
+ oq("rowSelectionFeature", e, {
+ table_setRowSelection: { fn: (t) => Wq(e, t) },
+ table_resetRowSelection: { fn: (t) => awe(e, t) },
+ table_toggleAllRowsSelected: { fn: (t, n) => Gq(e, t, n) },
+ table_toggleAllPageRowsSelected: { fn: (t, n) => Kq(e, t, n) },
+ table_getPreSelectedRowModel: { fn: () => owe(e) },
table_getSelectedRowModel: {
- fn: () => cwe(e),
+ fn: () => swe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getCoreRowModel()]
},
table_getFilteredSelectedRowModel: {
- fn: () => lwe(e),
+ fn: () => cwe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getFilteredRowModel()]
},
table_getGroupedSelectedRowModel: {
- fn: () => uwe(e),
+ fn: () => lwe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getSortedRowModel()]
},
table_getSelectedRowIds: {
- fn: () => Kq(e),
+ fn: () => qq(e),
memoDeps: () => [e.atoms.rowSelection?.get()]
},
table_getIsAllRowsSelected: {
- fn: () => qq(e),
+ fn: () => Jq(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getFilteredRowModel(),
@@ -60439,7 +60439,7 @@ var lJ = {
]
},
table_getIsAllPageRowsSelected: {
- fn: () => Jq(e),
+ fn: () => Yq(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getPaginatedRowModel(),
@@ -60448,48 +60448,48 @@ var lJ = {
]
},
table_getIsSomeRowsSelected: {
- fn: () => Yq(e),
+ fn: () => Xq(e),
memoDeps: () => [e.atoms.rowSelection?.get()]
},
table_getIsSomePageRowsSelected: {
- fn: () => dwe(e),
+ fn: () => uwe(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getPaginatedRowModel(),
e.options.enableRowSelection
]
},
- table_getToggleAllRowsSelectedHandler: { fn: () => fwe(e) },
- table_getToggleAllPageRowsSelectedHandler: { fn: () => pwe(e) }
+ table_getToggleAllRowsSelectedHandler: { fn: () => dwe(e) },
+ table_getToggleAllPageRowsSelectedHandler: { fn: () => fwe(e) }
});
}
-}, _we = /([0-9]+)/gm;
+}, gwe = /([0-9]+)/gm;
/* @__NO_SIDE_EFFECTS__ */
-function vwe(e) {
+function _we(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 uJ = /* @__PURE__ */ vwe({ sort: (e, t) => ywe(e, t) });
-function ywe(e, t) {
+var dJ = /* @__PURE__ */ _we({ sort: (e, t) => vwe(e, t) });
+function vwe(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
// node_modules/@tanstack/table-core/dist/features/row-sorting/rowSortingFeature.utils.js
-function bwe() {
+function ywe() {
return [];
}
-function dJ(e, t) {
- tq(e, "sorting", t);
-}
function fJ(e, t) {
- dJ(e, t ? [] : qK(e.initialState.sorting ?? []));
+ nq(e, "sorting", t);
}
-function xwe(e) {
- e.atoms.sorting && (e.options.autoResetAll ?? e.options.autoResetSorting ?? !1) && fJ(e);
+function pJ(e, t) {
+ fJ(e, t ? [] : JK(e.initialState.sorting ?? []));
+}
+function bwe(e) {
+ e.atoms.sorting && (e.options.autoResetAll ?? e.options.autoResetSorting ?? !1) && pJ(e);
}
-function pJ(e) {
+function mJ(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);
@@ -60497,7 +60497,7 @@ function pJ(e) {
r = "datetime";
break;
}
- if (typeof a == "string" && (i = !0, a.split(_we).length > 1)) {
+ if (typeof a == "string" && (i = !0, a.split(gwe).length > 1)) {
r = "alphanumeric";
break;
}
@@ -60506,9 +60506,9 @@ function pJ(e) {
let e = t?.[r];
if (e || r === "alphanumeric" && (e = t?.text), e) return e;
}
- return uJ;
+ return dJ;
}
-function mJ(e) {
+function hJ(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);
@@ -60516,14 +60516,14 @@ function mJ(e) {
}
return "desc";
}
-function hJ(e) {
+function gJ(e) {
let t = e.table._rowModelFns.sortFns;
- return xSe(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? pJ(e) : t?.[e.columnDef.sortFn] ?? uJ;
+ return bSe(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? mJ(e) : t?.[e.columnDef.sortFn] ?? dJ;
}
-function gJ(e, t, n) {
- let r = vJ(e, n && bJ(e)), i = t !== void 0;
- dJ(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 && bJ(e) && n);
+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);
return l = d ? s ? "toggle" : "add" : s ? "toggle" : "replace", l === "toggle" && (i || r || (l = "remove")), l === "add" ? (c = [...a, {
id: e.id,
desc: u
@@ -60539,40 +60539,40 @@ function gJ(e, t, n) {
}], c;
});
}
-function _J(e) {
- return e.columnDef.sortDescFirst ?? e.table.options.sortDescFirst ?? mJ(e) === "desc" ? "desc" : "asc";
+function vJ(e) {
+ return e.columnDef.sortDescFirst ?? e.table.options.sortDescFirst ?? hJ(e) === "desc" ? "desc" : "asc";
}
-function vJ(e, t) {
- let n = _J(e), r = xJ(e);
+function yJ(e, t) {
+ let n = vJ(e), r = SJ(e);
return r ? r !== n && (e.table.options.enableSortingRemoval ?? !0) && (!t || (e.table.options.enableMultiRemove ?? !0)) ? !1 : r === "desc" ? "asc" : "desc" : n;
}
-function yJ(e) {
+function bJ(e) {
return (e.columnDef.enableSorting ?? !0) && (e.table.options.enableSorting ?? !0) && !!e.accessorFn;
}
-function bJ(e) {
+function xJ(e) {
return e.columnDef.enableMultiSort ?? e.table.options.enableMultiSort ?? !!e.accessorFn;
}
-function xJ(e) {
+function SJ(e) {
let t = e.table.atoms.sorting?.get()?.find((t) => t.id === e.id);
return t ? t.desc ? "desc" : "asc" : !1;
}
-function Swe(e) {
+function xwe(e) {
return e.table.atoms.sorting?.get()?.findIndex((t) => t.id === e.id) ?? -1;
}
-function Cwe(e) {
- dJ(e.table, (t) => t.length ? t.filter((t) => t.id !== e.id) : []);
+function Swe(e) {
+ fJ(e.table, (t) => t.length ? t.filter((t) => t.id !== e.id) : []);
}
-function wwe(e) {
- let t = yJ(e);
+function Cwe(e) {
+ let t = bJ(e);
return (n) => {
- t && gJ(e, void 0, bJ(e) ? e.table.options.isMultiSortEvent?.(n) : !1);
+ t && _J(e, void 0, xJ(e) ? e.table.options.isMultiSortEvent?.(n) : !1);
};
}
// node_modules/@tanstack/table-core/dist/features/row-sorting/rowSortingFeature.js
-var SJ = {
+var CJ = {
getInitialState(e) {
return {
- sorting: bwe(),
+ sorting: ywe(),
...e
};
},
@@ -60585,58 +60585,58 @@ var SJ = {
getDefaultTableOptions(e) {
return {
autoResetSorting: !1,
- onSortingChange: ZK("sorting", e),
+ onSortingChange: QK("sorting", e),
isMultiSortEvent: (e) => e.shiftKey
};
},
assignColumnPrototype(e, t) {
- oq("rowSortingFeature", e, t, {
- column_getAutoSortFn: { fn: (e) => pJ(e) },
- column_getAutoSortDir: { fn: (e) => mJ(e) },
- column_getSortFn: { fn: (e) => hJ(e) },
- column_toggleSorting: { fn: (e, t, n) => gJ(e, t, n) },
- column_getFirstSortDir: { fn: (e) => _J(e) },
- column_getNextSortingOrder: { fn: (e, t) => vJ(e, t) },
- column_getCanSort: { fn: (e) => yJ(e) },
- column_getCanMultiSort: { fn: (e) => bJ(e) },
- column_getIsSorted: { fn: (e) => xJ(e) },
- column_getSortIndex: { fn: (e) => Swe(e) },
- column_clearSorting: { fn: (e) => Cwe(e) },
- column_getToggleSortingHandler: { fn: (e) => wwe(e) }
+ 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) => xwe(e) },
+ column_clearSorting: { fn: (e) => Swe(e) },
+ column_getToggleSortingHandler: { fn: (e) => Cwe(e) }
});
},
constructTableAPIs(e) {
- aq("rowSortingFeature", e, {
- table_autoResetSorting: { fn: () => xwe(e) },
- table_setSorting: { fn: (t) => dJ(e, t) },
- table_resetSorting: { fn: (t) => fJ(e, t) }
+ oq("rowSortingFeature", e, {
+ table_autoResetSorting: { fn: () => bwe(e) },
+ table_setSorting: { fn: (t) => fJ(e, t) },
+ table_resetSorting: { fn: (t) => pJ(e, t) }
});
}
-}, Twe = typeof window > "u" ? F.useEffect : F.useLayoutEffect;
-function CJ(e, t) {
+}, wwe = typeof window > "u" ? F.useEffect : F.useLayoutEffect;
+function wJ(e, t) {
let [{ table: n, rootSource: r }] = (0, F.useState)(() => {
- let t = zCe({
+ let t = RCe({
...e,
features: {
- coreReactivityFeature: vSe(),
+ coreReactivityFeature: _Se(),
...e.features
}
});
- return t.Subscribe = ((e) => mSe({
+ return t.Subscribe = ((e) => pSe({
...e,
source: e.source ?? t.store
- })), t.FlexRender = rSe, {
+ })), t.FlexRender = nSe, {
table: t,
- rootSource: _Se(t.store, HK)
+ rootSource: gSe(t.store, UK)
};
}), i = n;
- Sq(i, (t) => ({
+ Cq(i, (t) => ({
...t,
...e
}), { syncExternalState: !1 });
- let a = i.options.state, o = r.get(), s = GK(r, t, { compare: HK });
- return Twe(() => {
- r.markCommitted(o), xq(i, a ?? null, HK);
+ let a = i.options.state, o = r.get(), s = KK(r, t, { compare: UK });
+ return wwe(() => {
+ r.markCommitted(o), Sq(i, a ?? null, UK);
}), (0, F.useMemo)(() => ({
...n,
options: e,
@@ -60648,10 +60648,10 @@ function CJ(e, t) {
]);
}
// src/react/boardui/components/base/table/table.tsx
-function wJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
+function TJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
className: J("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, I.jsx)(xhe, {
+ children: /* @__PURE__ */ (0, I.jsx)(bhe, {
ref: r,
...i,
className: J("bui-table", e === "sm" && "bui-table-sm", t)
@@ -60659,7 +60659,7 @@ function wJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i
});
}
// src/react/catalog-grid/catalog-table-columns.ts
-var TJ = "peach.catalog-column-widths.v1", EJ = "peach.catalog-column-visibility.v1", Ewe = {
+var EJ = "peach.catalog-column-widths.v1", DJ = "peach.catalog-column-visibility.v1", Twe = {
select: {
width: 48,
min: 48,
@@ -60735,14 +60735,14 @@ var TJ = "peach.catalog-column-widths.v1", EJ = "peach.catalog-column-visibility
min: 112,
max: 400
}
-}, Dwe = {
+}, Ewe = {
release: !1,
played: !1,
o: !1,
resolution: !1,
size: !1,
code: !1
-}, Owe = {
+}, Dwe = {
select: "选择",
name: "作品",
dur: "时长",
@@ -60758,7 +60758,7 @@ var TJ = "peach.catalog-column-widths.v1", EJ = "peach.catalog-column-visibility
tags: "标签",
library: "媒体库",
people: "艺人"
-}, DJ = [
+}, OJ = [
"select",
"name",
"people",
@@ -60776,13 +60776,13 @@ var TJ = "peach.catalog-column-widths.v1", EJ = "peach.catalog-column-visibility
"code"
].map((e) => ({
id: e,
- label: Owe[e],
- ...Ewe[e],
+ label: Dwe[e],
+ ...Twe[e],
flex: e === "name",
required: e === "select" || e === "name",
- visible: Dwe[e] !== !1
+ visible: Ewe[e] !== !1
}));
-function OJ(e) {
+function kJ(e) {
try {
let t = JSON.parse(localStorage.getItem(e) || "{}");
return t && typeof t == "object" && !Array.isArray(t) ? t : {};
@@ -60790,11 +60790,11 @@ function OJ(e) {
return {};
}
}
-function kwe() {
- return kJ(DJ, TJ, EJ);
+function Owe() {
+ return AJ(OJ, EJ, DJ);
}
-function kJ(e, t, n) {
- let r = OJ(t), i = OJ(n);
+function AJ(e, t, n) {
+ let r = kJ(t), i = kJ(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 {
@@ -60806,43 +60806,43 @@ function kJ(e, t, n) {
});
}
// src/react/library-processing/completion-row.ts
-var AJ = "peach.catalog.completion-row";
-function jJ() {
+var jJ = "peach.catalog.completion-row";
+function MJ() {
try {
- return localStorage.getItem(AJ) === "1";
+ return localStorage.getItem(jJ) === "1";
} catch {
return !1;
}
}
-function Awe(e) {
+function kwe(e) {
try {
- e ? localStorage.setItem(AJ, "1") : localStorage.removeItem(AJ);
+ e ? localStorage.setItem(jJ, "1") : localStorage.removeItem(jJ);
} catch {}
}
-var jwe = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";
+var Awe = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";
// src/catalog-content-skeleton.ts
-function MJ(e) {
+function NJ(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 Mwe(e) {
- return `<div class="peach-react catalog-skeleton" data-skeleton="catalog/list" role="status" aria-busy="true" aria-label="${z(e)}">` + NJ(kwe(), jJ() ? jwe : "") + "</div>";
+function jwe(e) {
+ return `<div class="peach-react catalog-skeleton" data-skeleton="catalog/list" role="status" aria-busy="true" aria-label="${z(e)}">` + PJ(Owe(), MJ() ? Awe : "") + "</div>";
}
-function NJ(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>${MJ(e.id)}</td>`).join("")}${n ? "" : "<td></td>"}</tr>`;
+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>`;
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 PJ(e, t) {
- return tG() === "list" ? Mwe(e) : oc(e, {
+function FJ(e, t) {
+ return nG() === "list" ? jwe(e) : oc(e, {
variant: "cards",
className: "catalog-skeleton postercard-skeleton",
cardRatio: t
});
}
// src/react/components/data-table-frame.tsx
-var Nwe = () => {
+var Mwe = () => {
document.documentElement.dataset.columnResizing = "";
};
-function FJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
+function IJ({ 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;
@@ -60856,11 +60856,11 @@ function FJ({ 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 && eK(e, r) && n(r.dataset.key);
+ r && tK(e, r) && n(r.dataset.key);
} : void 0,
- children: r ? /* @__PURE__ */ (0, I.jsx)(yhe, {
+ children: r ? /* @__PURE__ */ (0, I.jsx)(vhe, {
className: "relative min-w-0",
- onResizeStart: Nwe,
+ onResizeStart: Mwe,
onResize: r.resize,
onResizeEnd: (e) => {
delete document.documentElement.dataset.columnResizing, r.save(e);
@@ -60870,8 +60870,8 @@ function FJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
});
}
// src/react/components/select.tsx
-function IJ({ prefix: e, renderValue: t, size: n, ...r }) {
- if (e == null) return /* @__PURE__ */ (0, I.jsx)(zU, {
+function LJ({ prefix: e, renderValue: t, size: n, ...r }) {
+ if (e == null) return /* @__PURE__ */ (0, I.jsx)(BU, {
...r,
size: n,
renderValue: t
@@ -60881,14 +60881,14 @@ function IJ({ 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)(zU, {
+ return /* @__PURE__ */ (0, I.jsx)(BU, {
...r,
size: n,
renderValue: a
});
}
// src/react/components/table-pagination.tsx
-function LJ({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
+function RJ({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
return t <= 1 ? null : /* @__PURE__ */ (0, I.jsxs)("nav", {
"aria-label": r,
"data-pagination-layout": "",
@@ -60927,11 +60927,11 @@ function LJ({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
});
}
// src/react/components/table-controls.tsx
-function RJ({ label: e, options: t, sorting: n, onChange: r }) {
+function zJ({ 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)(IJ, {
+ children: [/* @__PURE__ */ (0, I.jsxs)(LJ, {
"aria-label": `${e}排序`,
prefix: "排序",
selectedKey: i?.id ?? "default",
@@ -60941,10 +60941,10 @@ function RJ({ label: e, options: t, sorting: n, onChange: r }) {
desc: i?.desc ?? !1
}]);
},
- children: [/* @__PURE__ */ (0, I.jsx)(BU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(VU, {
id: "default",
children: "默认顺序"
- }), t.map((e) => /* @__PURE__ */ (0, I.jsx)(BU, {
+ }), t.map((e) => /* @__PURE__ */ (0, I.jsx)(VU, {
id: e.id,
children: e.label
}, e.id))]
@@ -60952,7 +60952,7 @@ function RJ({ label: e, options: t, sorting: n, onChange: r }) {
variant: "secondary",
iconOnly: !0,
disabled: !i,
- leadingIcon: aG,
+ leadingIcon: oG,
"data-icon-state": i?.desc ? "b" : "a",
"aria-label": `${e}改为${i?.desc ? "升序" : "降序"}`,
onClick: () => {
@@ -60964,7 +60964,7 @@ function RJ({ label: e, options: t, sorting: n, onChange: r }) {
})]
});
}
-function zJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记录", pageUnit: a = "条", pageSizes: o = [
+function BJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记录", pageUnit: a = "条", pageSizes: o = [
10,
20,
50,
@@ -60979,7 +60979,7 @@ function zJ({ 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)(IJ, {
+ children: [/* @__PURE__ */ (0, I.jsx)(LJ, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(n.pageSize),
@@ -60989,11 +60989,11 @@ function zJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记
pageSize: Number(e)
});
},
- children: o.map((e) => /* @__PURE__ */ (0, I.jsx)(BU, {
+ children: o.map((e) => /* @__PURE__ */ (0, I.jsx)(VU, {
id: String(e),
children: `每页 ${e} ${a}`
}, e))
- }), /* @__PURE__ */ (0, I.jsx)(LJ, {
+ }), /* @__PURE__ */ (0, I.jsx)(RJ, {
label: `${e}分页`,
page: c + 1,
pages: s,
@@ -61006,7 +61006,7 @@ function zJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记
});
}
// src/react/components/table-column-preferences.ts
-function BJ(e) {
+function VJ(e) {
try {
let t = JSON.parse(localStorage.getItem(e) || "{}");
return t && typeof t == "object" && !Array.isArray(t) ? t : {};
@@ -61014,17 +61014,17 @@ function BJ(e) {
return {};
}
}
-function VJ(e, t) {
+function HJ(e, t) {
try {
localStorage.setItem(e, JSON.stringify(t));
} catch {}
}
-function Pwe(e, t) {
+function Nwe(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 = BJ(e);
+ let r = VJ(e);
for (let [e, n] of Object.entries(t)) n.flex && r[e] === n.width && delete r[e];
return n(r);
});
@@ -61041,7 +61041,7 @@ function Pwe(e, t) {
...r,
...Object.fromEntries(t)
});
- i(a), VJ(e, a);
+ i(a), HJ(e, a);
},
reset: () => {
i(n({}));
@@ -61051,26 +61051,26 @@ function Pwe(e, t) {
}
};
}
-function Fwe(e, t, n, r = {}) {
+function Pwe(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(BJ(e)));
+ }), [a, o] = (0, F.useState)(() => i(VJ(e)));
return {
visibility: a,
change: (t) => {
let n = i(typeof t == "function" ? t(a) : t);
- o(n), VJ(e, n);
+ o(n), HJ(e, n);
}
};
}
-function HJ(e, t, n) {
+function UJ(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 = Pwe(n?.widths ?? `peach.table.${e}.widths.v1`, r), a = Fwe(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 = Nwe(n?.widths ?? `peach.table.${e}.widths.v1`, r), a = Pwe(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,
@@ -61089,15 +61089,15 @@ function HJ(e, t, n) {
};
}
// src/react/catalog-grid/catalog-column-widths.ts
-function Iwe() {
- return HJ("catalog", DJ, {
- widths: TJ,
- visibility: EJ
+function Fwe() {
+ return UJ("catalog", OJ, {
+ widths: EJ,
+ visibility: DJ
});
}
// src/react/components/rating-stars.tsx
-var UJ = lV("star");
-function WJ({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
+var WJ = uV("star");
+function GJ({ 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": "",
@@ -61120,25 +61120,25 @@ function WJ({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
onClick: () => {
n || t(e);
},
- children: n === e ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Vs("正在保存评分") } }) : /* @__PURE__ */ (0, I.jsx)(UJ, {})
+ children: n === e ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Vs("正在保存评分") } }) : /* @__PURE__ */ (0, I.jsx)(WJ, {})
}, 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)(UJ, {}), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(WJ, {}), /* @__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)(UJ, {})
+ children: /* @__PURE__ */ (0, I.jsx)(WJ, {})
})]
})
}, e))
});
}
// src/react/catalog-grid/catalog-table-controls.tsx
-function Lwe({ item: e, actions: t }) {
- let { rating: n } = e, r = dH(), i = (0, F.useRef)(0), a = uP(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
- sP(e.id, { rating: t }), H.setQueryData(["item", e.id], (e) => e && {
+function Iwe({ 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 && {
...e,
rating: t
});
@@ -61150,11 +61150,11 @@ function Lwe({ item: e, actions: t }) {
role: "group",
"aria-label": o,
title: o,
- children: [/* @__PURE__ */ (0, I.jsx)(WJ, {
+ children: [/* @__PURE__ */ (0, I.jsx)(GJ, {
value: a,
onRate: c,
busyStar: r.busy ? Number(r.busy) : void 0
- }), r.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ }), r.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
@@ -61167,7 +61167,7 @@ function Lwe({ item: e, actions: t }) {
}) : null]
});
}
-function GJ(e) {
+function KJ(e) {
if (e == null || e === "") return "—";
let t = String(e);
if (/^\d{4}-\d{2}-\d{2}$/.test(t)) return t;
@@ -61182,7 +61182,7 @@ function GJ(e) {
});
}
// src/react/components/selection-actions.tsx
-function KJ({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
+function qJ({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-selection-actions": "",
"data-action-layout": t,
@@ -61194,10 +61194,10 @@ function KJ({ 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)(uH, {
+ }, e.label) : /* @__PURE__ */ (0, I.jsx)(dH, {
size: "small",
href: e.href,
- trailingIcon: hB,
+ trailingIcon: gB,
className: t === "inline" ? "shrink-0" : "w-full",
disabled: e.disabled,
onClick: r,
@@ -61206,15 +61206,15 @@ function KJ({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
});
}
// src/react/components/selection-popover.tsx
-function qJ({ 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)(KJ, {
+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, {
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)(FV, {
+ children: r.length ? r.map((e) => /* @__PURE__ */ (0, I.jsx)(IV, {
isSelected: e.selected,
className: "min-w-0 [&>span:last-child]:min-w-0 [&>span:last-child]:wrap-anywhere",
isDisabled: e.disabled,
@@ -61234,14 +61234,14 @@ function qJ({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i,
"aria-label": t,
onClick: () => u(!0),
children: t
- }), /* @__PURE__ */ (0, I.jsx)(cz, {
+ }), /* @__PURE__ */ (0, I.jsx)(lz, {
triggerRef: c,
isOpen: l,
onOpenChange: u,
placement: "bottom end",
offset: 4,
- className: J(OV, "w-max overscroll-contain"),
- children: ({ placement: t }) => /* @__PURE__ */ (0, I.jsx)(mH, {
+ className: J(kV, "w-max overscroll-contain"),
+ children: ({ placement: t }) => /* @__PURE__ */ (0, I.jsx)(hH, {
"aria-label": e,
"data-selection-placement": t ?? "bottom",
className: "flex w-max max-w-full flex-col gap-2 outline-none",
@@ -61250,13 +61250,13 @@ function qJ({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i,
})] });
}
// src/react/components/table-column-controls.tsx
-function JJ({ preferences: e, label: t = "表格" }) {
+function YJ({ 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)(qJ, {
+ children: [/* @__PURE__ */ (0, I.jsx)(JJ, {
label: `${t}显示列`,
triggerLabel: "显示列",
actionLayout: "fullWidth",
@@ -61284,39 +61284,39 @@ function JJ({ preferences: e, label: t = "表格" }) {
})]
});
}
-function YJ({ preferences: e, id: t }) {
+function XJ({ preferences: e, id: t }) {
let n = e.columns.find((e) => e.id === t);
- return e.canResize(t) ? /* @__PURE__ */ (0, I.jsx)(Ahe, { "aria-label": `调整${n.label}列宽` }) : null;
+ return e.canResize(t) ? /* @__PURE__ */ (0, I.jsx)(khe, { "aria-label": `调整${n.label}列宽` }) : null;
}
// src/react/components/table-selection-header.tsx
-function XJ(e, t) {
+function ZJ(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 ZJ({ table: e, label: t, page: n = !1, disabled: r = !1 }) {
- let { all: i, some: a } = XJ(e, n);
- return /* @__PURE__ */ (0, I.jsx)(FV, {
+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, {
slot: null,
"aria-label": t,
isDisabled: r,
isSelected: i,
isIndeterminate: a,
onChange: () => {
- let t = !XJ(e, n).all;
+ let t = !ZJ(e, n).all;
n ? e.toggleAllPageRowsSelected(t) : e.toggleAllRowsSelected(t);
}
});
}
// src/react/catalog-grid/catalog-list-page.tsx
-var Rwe = wq({
- rowSortingFeature: SJ,
- rowSelectionFeature: lJ,
- rowPaginationFeature: Hq,
- columnVisibilityFeature: Mq
-}), QJ = DJ.map((e) => e.id), zwe = [
+var Lwe = Tq({
+ rowSortingFeature: CJ,
+ rowSelectionFeature: uJ,
+ rowPaginationFeature: Uq,
+ columnVisibilityFeature: Nq
+}), $J = OJ.map((e) => e.id), Rwe = [
{
id: "name",
label: "名称"
@@ -61353,12 +61353,12 @@ var Rwe = wq({
id: "played",
label: "观看时间"
}
-], $J = /* @__PURE__ */ new Map();
-function Bwe(e) {
- let t = Iwe(), n = $G(), r = rP(e.filters || {}, !1), [i] = (0, F.useState)(() => {
+], eY = /* @__PURE__ */ new Map();
+function zwe(e) {
+ let t = Fwe(), n = eK(), r = iP(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)(() => $J.get(i) || {
+ }), [a, o] = (0, F.useState)(() => eY.get(i) || {
sorting: [],
pagination: {
pageIndex: 0,
@@ -61366,7 +61366,7 @@ function Bwe(e) {
}
}), { sorting: s, pagination: c } = a;
(0, F.useEffect)(() => {
- $J.set(i, a);
+ eY.set(i, a);
}, [i, a]);
let l = c.pageIndex * c.pageSize, u = s[0], d = Ft({
queryKey: [
@@ -61397,9 +61397,9 @@ function Bwe(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" ? [] : OK(f, e.layout.javImage), [h] = (0, F.useState)(jJ);
+ }), 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);
(0, F.useEffect)(() => {
- d.data && !d.isPlaceholderData && Awe(m.length > 0);
+ d.data && !d.isPlaceholderData && kwe(m.length > 0);
}, [
d.data,
d.isPlaceholderData,
@@ -61431,19 +61431,19 @@ function Bwe(e) {
p,
c.pageIndex
]);
- let g = e.selectMode ? Object.fromEntries([...e.selected].map((e) => [String(e), !0])) : {}, _ = CJ({
- features: Rwe,
+ let g = e.selectMode ? Object.fromEntries([...e.selected].map((e) => [String(e), !0])) : {}, _ = wJ({
+ features: Lwe,
columns: (0, F.useMemo)(() => {
- let t = Cq();
+ let t = wq();
return t.columns([
t.display({
id: "select",
- header: ({ table: e }) => /* @__PURE__ */ (0, I.jsx)(ZJ, {
+ header: ({ table: e }) => /* @__PURE__ */ (0, I.jsx)(QJ, {
table: e,
label: "全选本页作品",
disabled: d.isPlaceholderData
}),
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(FV, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(IV, {
slot: null,
"aria-label": `选择 ${e.helpers.displayName(t.original, t.original.name || "")}`,
isDisabled: d.isPlaceholderData,
@@ -61455,7 +61455,7 @@ function Bwe(e) {
id: "name",
header: "作品",
enableSorting: !0,
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Vwe, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Bwe, {
item: t.original,
props: e,
disabled: d.isPlaceholderData
@@ -61464,12 +61464,12 @@ function Bwe(e) {
t.display({
id: "library",
header: "媒体库",
- cell: ({ row: e }) => /* @__PURE__ */ (0, I.jsx)(Hwe, { item: e.original })
+ cell: ({ row: e }) => /* @__PURE__ */ (0, I.jsx)(Vwe, { item: e.original })
}),
t.display({
id: "people",
header: "艺人",
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Uwe, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Hwe, {
item: t.original,
props: e
})
@@ -61525,7 +61525,7 @@ function Bwe(e) {
id: "rating",
header: "评分",
enableSorting: !0,
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Lwe, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Iwe, {
item: t.original,
actions: e.actions
})
@@ -61546,13 +61546,13 @@ function Bwe(e) {
id: "played",
header: "观看时间",
enableSorting: !0,
- cell: ({ row: e }) => GJ(e.original.last_played)
+ cell: ({ row: e }) => KJ(e.original.last_played)
}),
t.accessor((e) => e.first_seen, {
id: "new",
header: "入库时间",
enableSorting: !0,
- cell: ({ row: e }) => GJ(e.original.first_seen)
+ cell: ({ row: e }) => KJ(e.original.first_seen)
}),
t.accessor((e) => e.release_date, {
id: "release",
@@ -61560,7 +61560,7 @@ function Bwe(e) {
enableSorting: !0,
cell: ({ row: e }) => e.original.release_date || "—"
})
- ]).sort((e, t) => QJ.indexOf(e.id) - QJ.indexOf(t.id));
+ ]).sort((e, t) => $J.indexOf(e.id) - $J.indexOf(t.id));
}, [
e.helpers,
e.actions,
@@ -61623,9 +61623,9 @@ function Bwe(e) {
"aria-label": "作品列表工具栏",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-toolbar-actions": "",
- children: [/* @__PURE__ */ (0, I.jsx)(JJ, { preferences: t }), /* @__PURE__ */ (0, I.jsx)(RJ, {
+ children: [/* @__PURE__ */ (0, I.jsx)(YJ, { preferences: t }), /* @__PURE__ */ (0, I.jsx)(zJ, {
label: "作品列表",
- options: zwe,
+ options: Rwe,
sorting: s,
onChange: (e) => _.setSorting(e)
})]
@@ -61635,21 +61635,21 @@ function Bwe(e) {
"data-completion-skeleton": "",
"aria-hidden": "true",
className: "skeleton-sheen"
- }) : null : /* @__PURE__ */ (0, I.jsx)(kK, {
+ }) : null : /* @__PURE__ */ (0, I.jsx)(AK, {
className: "",
assetIds: m
}),
- d.isError ? /* @__PURE__ */ (0, I.jsx)(PG, {
+ d.isError ? /* @__PURE__ */ (0, I.jsx)(FG, {
message: xn(d.error),
onRetry: () => void d.refetch()
}) : null,
- /* @__PURE__ */ (0, I.jsx)(FJ, {
+ /* @__PURE__ */ (0, I.jsx)(IJ, {
follow: !0,
preferences: t,
onRowClick: e.selectMode ? (t) => {
d.isPlaceholderData || e.actions.toggleSelection(Number(t), !1);
} : void 0,
- children: /* @__PURE__ */ (0, I.jsxs)(wJ, {
+ children: /* @__PURE__ */ (0, I.jsxs)(TJ, {
"aria-label": "作品列表",
size: "sm",
sortDescriptor: u ? {
@@ -61660,48 +61660,48 @@ function Bwe(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, I.jsxs)(Xz, { children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(Zz, {
+ children: [/* @__PURE__ */ (0, I.jsxs)(Zz, { children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(Qz, {
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: [AK(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [jK(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)(TV, {})
+ children: /* @__PURE__ */ (0, I.jsx)(EV, {})
}) : null]
- }), /* @__PURE__ */ (0, I.jsx)(YJ, {
+ }), /* @__PURE__ */ (0, I.jsx)(XJ, {
preferences: t,
id: e.id
})] })
- }, e.id)), /* @__PURE__ */ (0, I.jsx)(Zz, {
+ }, e.id)), /* @__PURE__ */ (0, I.jsx)(Qz, {
id: "remaining-space",
"aria-label": "行空白区域",
"data-table-space": "",
width: t.spaceWidth,
minWidth: 0
- })] }), /* @__PURE__ */ (0, I.jsx)(eB, {
+ })] }), /* @__PURE__ */ (0, I.jsx)(tB, {
renderEmptyState: () => d.isError ? "作品列表未取得" : "没有符合的作品",
- children: d.isPending ? Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, I.jsxs)(rB, {
+ children: d.isPending ? Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, I.jsxs)(iB, {
id: `skeleton-${t}`,
"data-list-skeleton-row": "",
"aria-hidden": "true",
- children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(aB, { children: /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: MJ(e.id) } }) }, e.id)), /* @__PURE__ */ (0, I.jsx)(aB, { "data-table-space": "" })]
- }, `skeleton-${t}`)) : _.getRowModel().rows.map((e) => /* @__PURE__ */ (0, I.jsxs)(rB, {
+ 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, {
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)(aB, { children: AK(e.column.columnDef.cell, e.getContext()) }, e.id)), /* @__PURE__ */ (0, I.jsx)(aB, { "data-table-space": "" })]
+ 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": "" })]
}, e.id))
})]
})
}),
- d.data ? /* @__PURE__ */ (0, I.jsx)(zJ, {
+ d.data ? /* @__PURE__ */ (0, I.jsx)(BJ, {
label: "作品列表",
total: p,
pagination: c,
@@ -61712,9 +61712,9 @@ function Bwe(e) {
]
});
}
-function Vwe({ item: e, props: t, disabled: n }) {
+function Bwe({ item: e, props: t, disabled: n }) {
let r = Eo(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() || "未命名作品";
- eL();
+ tL();
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",
@@ -61734,7 +61734,7 @@ function Vwe({ item: e, props: t, disabled: n }) {
children: /* @__PURE__ */ (0, I.jsxs)("span", {
"data-list-picture": "",
children: [
- r.html ? /* @__PURE__ */ (0, I.jsx)(UU, {
+ r.html ? /* @__PURE__ */ (0, I.jsx)(WU, {
artwork: r,
relayout: (e) => Dl(e, "small")
}) : /* @__PURE__ */ (0, I.jsx)("span", { children: "无预览" }),
@@ -61786,17 +61786,17 @@ function Vwe({ item: e, props: t, disabled: n }) {
})]
});
}
-function Hwe({ item: e }) {
- let t = $G({ names: !0 }), n = e.library_id ? t.get(e.library_id) : void 0;
+function Vwe({ item: e }) {
+ let t = eK({ 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)(IH, { mark: n.icon }), /* @__PURE__ */ (0, I.jsx)("span", { children: n.name })]
+ children: [/* @__PURE__ */ (0, I.jsx)(LH, { mark: n.icon }), /* @__PURE__ */ (0, I.jsx)("span", { children: n.name })]
}) : "—";
}
-function Uwe({ item: e, props: t }) {
- eL();
- let { avatar: n, who: r } = sK(e);
+function Hwe({ item: e, props: t }) {
+ tL();
+ let { avatar: n, who: r } = cK(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-list-people": "",
onClick: (e) => {
@@ -61808,22 +61808,22 @@ function Uwe({ item: e, props: t }) {
});
}
// src/react/catalog-grid/catalog-grid-page.tsx
-function eY(e) {
- let t = nG();
- if (e.mode === "items") return /* @__PURE__ */ (0, I.jsx)(Gwe, { ...e });
- let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${rP(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
- if (t === "list" && !e.wall) return /* @__PURE__ */ (0, I.jsx)(Bwe, { ...e }, n);
+function tY(e) {
+ let t = rG();
+ if (e.mode === "items") return /* @__PURE__ */ (0, I.jsx)(Wwe, { ...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)(zwe, { ...e }, n);
let r = e.mode === "entity" ? "entity" : `catalog:${!!e.wall}`;
- return /* @__PURE__ */ (0, I.jsx)(Kwe, { ...e }, r);
+ return /* @__PURE__ */ (0, I.jsx)(Gwe, { ...e }, r);
}
-function Wwe({ name: e }) {
+function Uwe({ 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 tY({ children: e, selectMode: t }) {
+function nY({ children: e, selectMode: t }) {
let n = (0, F.useRef)(null), [r, i] = (0, F.useState)(!1);
return (0, F.useLayoutEffect)(() => {
let e = n.current;
@@ -61839,8 +61839,8 @@ function tY({ children: e, selectMode: t }) {
children: e
});
}
-function Gwe(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)(lK, {
+function Wwe(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, {
item: i,
variant: r,
layout: e.layout,
@@ -61854,13 +61854,13 @@ function Gwe(e) {
return r === "next" ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-media-next-row": "",
children: i
- }) : /* @__PURE__ */ (0, I.jsx)(tY, {
+ }) : /* @__PURE__ */ (0, I.jsx)(nY, {
selectMode: e.selectMode,
children: i
});
}
-function Kwe(e) {
- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Jue(e) : que(e), [s] = (0, F.useState)(() => e.wall ? iP(o.queryKey) : void 0), c = JSON.stringify(o.queryKey), l = (0, F.useMemo)(() => e.restoreNavigation ? iP(o.queryKey) : void 0, [c, e.restoreNavigation]) || s || (i && e.initial ? {
+function Gwe(e) {
+ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? que(e) : Kue(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 ? {
pages: [{
...e.initial,
items: e.initial.items || [],
@@ -61886,7 +61886,7 @@ function Kwe(e) {
u.isPlaceholderData,
e.revision
]);
- let { tiles: f, pageStarts: p } = (0, F.useMemo)(() => Xue(u.data?.pages || [], {
+ let { tiles: f, pageStarts: p } = (0, F.useMemo)(() => Yue(u.data?.pages || [], {
collapse: e.groupCollapse !== !1,
mix: !!e.mix && !a,
javImage: r.javImage
@@ -61896,7 +61896,7 @@ function Kwe(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 || cbe(e.filters), _ = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, v = f.flatMap((e) => e.kind === "card" && rbe(e.item) ? [e.item] : []), y = a ? [] : OK(f.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), b = (0, F.useRef)(null), x = qwe(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 || sbe(e.filters), _ = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, v = f.flatMap((e) => e.kind === "card" && nbe(e.item) ? [e.item] : []), y = a ? [] : kK(f.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), b = (0, F.useRef)(null), x = Kwe(e, u.isPlaceholderData ? void 0 : u.data, f, p, b);
(0, F.useLayoutEffect)(() => {
if (!u.data || u.isPlaceholderData) return;
let t = !0;
@@ -61924,12 +61924,12 @@ function Kwe(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)(Ywe, {
+ }, [u.fetchNextPage]), D = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)(Jwe, {
seed: i.seed,
layout: r,
helpers: t,
actions: n
- }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, I.jsx)(lK, {
+ }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, I.jsx)(uK, {
item: i.item,
grouped: e.groupCollapse !== !1,
variant: a && i.item.medium && i.item.medium !== "video" ? "resource" : "grid",
@@ -61941,8 +61941,8 @@ function Kwe(e) {
actions: n,
onOpen: a ? w : C
}, i.item.id), O = () => {
- if (_ && e.wall) return /* @__PURE__ */ (0, I.jsx)(Jxe, {
- sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${rP(e.filters || {}, !!e.excludeVertical)}`,
+ if (_ && e.wall) return /* @__PURE__ */ (0, I.jsx)(qxe, {
+ sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${iP(e.filters || {}, !!e.excludeVertical)}`,
items: v,
finite: g,
hasMore: !!u.hasNextPage,
@@ -61950,7 +61950,7 @@ function Kwe(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 ? Zxe({
+ emptyHtml: u.data && !v.length ? Xxe({
libraryEmpty: !!u.data.pages[0]?.libraryEmpty,
matches: h,
hasMore: !!u.hasNextPage,
@@ -61965,7 +61965,7 @@ function Kwe(e) {
javImage: r.javImage
}, g ? "finite" : "explore");
if (u.isPending) return null;
- if (!u.data) return /* @__PURE__ */ (0, I.jsx)(PG, {
+ if (!u.data) return /* @__PURE__ */ (0, I.jsx)(FG, {
message: xn(u.error),
onRetry: () => void u.refetch()
});
@@ -61982,12 +61982,12 @@ function Kwe(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: $ue(f, x).map((t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(tY, { children: t.tiles.map(D) }), t.strip ? /* @__PURE__ */ (0, I.jsx)(Jwe, {
+ 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)(qwe, {
cut: t.strip,
props: e,
onOpen: T
}) : null] }, t.start))
- }), u.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(nY, {
+ }), u.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(rY, {
entity: i,
load: E,
enabled: () => !u.isPlaceholderData && e.canLoadMore?.() !== !1
@@ -61997,14 +61997,14 @@ function Kwe(e) {
ref: b,
"data-media-body": "",
"aria-busy": u.isFetching && !u.isFetchingNextPage,
- children: [/* @__PURE__ */ (0, I.jsx)(kK, { assetIds: y }), e.wall ? O() : /* @__PURE__ */ (0, I.jsx)(FG, {
+ children: [/* @__PURE__ */ (0, I.jsx)(AK, { assetIds: y }), e.wall ? O() : /* @__PURE__ */ (0, I.jsx)(IG, {
pending: u.isPending,
skeletonHtml: e.skeletonHtml,
children: O()
})]
});
}
-function nY({ entity: e, load: t, enabled: n, children: r }) {
+function rY({ 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: ""
@@ -62046,7 +62046,7 @@ function nY({ entity: e, load: t, enabled: n, children: r }) {
if (!e) return;
let t = new IntersectionObserver((e) => {
e.some((e) => e.isIntersecting) && d(!1);
- }, { rootMargin: NG });
+ }, { rootMargin: PG });
return a.current = t, t.observe(e), () => {
t.disconnect(), a.current = null;
};
@@ -62069,18 +62069,18 @@ function nY({ entity: e, load: t, enabled: n, children: r }) {
hidden: !!c.error,
onClick: () => void d(!0),
dangerouslySetInnerHTML: { __html: Us(Hs) }
- }), c.error ? /* @__PURE__ */ (0, I.jsx)(PG, {
+ }), c.error ? /* @__PURE__ */ (0, I.jsx)(FG, {
message: c.error,
onRetry: () => void d(!0)
}) : null] });
}
-function qwe(e, t, n, r, i) {
- let a = ["catalog-short-layout", rP(e.filters || {}, !!e.excludeVertical)], o = `${a[1]}:${e.revision}`, s = () => {
+function Kwe(e, t, n, r, i) {
+ let a = ["catalog-short-layout", iP(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 && aP(t.cuts.flatMap((e) => e.items), n, e.groupCollapse !== !1), {
+ return t && oP(t.cuts.flatMap((e) => e.items), n, e.groupCollapse !== !1), {
stamp: o,
cuts: t?.cuts || [],
offset: t?.offset || 0,
@@ -62106,7 +62106,7 @@ function qwe(e, t, n, r, i) {
let r = new AbortController();
p.controllers.push(r);
let i = n - 1;
- B(`/api/items?${Que(e.filters || {}, p.offset)}`, r.signal).then((e) => {
+ B(`/api/items?${Zue(e.filters || {}, p.offset)}`, r.signal).then((e) => {
if (c.current !== p || r.signal.aborted) return;
let t = e.items || [];
t.length ? f({
@@ -62120,9 +62120,9 @@ function qwe(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 = Zue(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 = Xue(n.length - t, h, l);
if (!g.length) return;
- let _ = aP(d.items, p.groups, e.groupCollapse !== !1);
+ let _ = oP(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,
@@ -62139,7 +62139,7 @@ function qwe(e, t, n, r, i) {
});
}, [d]), m;
}
-function Jwe({ cut: e, props: t, onOpen: n }) {
+function qwe({ cut: e, props: t, onOpen: n }) {
let r = (0, F.useRef)(null), { wireDrag: i } = t;
return (0, F.useEffect)(() => {
r.current && i(r.current);
@@ -62155,12 +62155,12 @@ function Jwe({ cut: e, props: t, onOpen: n }) {
type: "button",
"data-shorts-enter": "",
onClick: () => t.actions.openShorts(),
- children: [/* @__PURE__ */ (0, I.jsx)(Wwe, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "进入沉浸模式" })]
+ children: [/* @__PURE__ */ (0, I.jsx)(Uwe, { 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)(lK, {
+ children: e.items.map((e) => /* @__PURE__ */ (0, I.jsx)(uK, {
item: e,
variant: "short",
layout: t.layout,
@@ -62175,17 +62175,17 @@ function Jwe({ cut: e, props: t, onOpen: n }) {
})]
});
}
-function rY(e, t, n) {
+function iY(e, t, n) {
return Do(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);
}
-function Ywe({ seed: e, layout: t, helpers: n, actions: r }) {
+function Jwe({ 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 = No(e, n.tagLabel), s = (0, F.useCallback)(async () => {
- let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => oP(e, t.javImage)).slice(0, 9);
- return i.current = new Map(n.map((e) => [String(e.id), rY(e, t, !0).html])), n.map((e) => String(e.id));
- }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = rY(e, t, !1);
- return /* @__PURE__ */ (0, I.jsx)(pK, {
+ 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, {
"data-mix-seed": String(e.id),
name: `Mix · ${o}`,
caption: `${n.displayName(e, e.name || "")}及相似作品`,
@@ -62195,12 +62195,12 @@ function Ywe({ seed: e, layout: t, helpers: n, actions: r }) {
wholeCard: !0,
poster: null,
artwork: l,
- artworkIdentity: c === "small" ? l.html : rY(e, {
+ artworkIdentity: c === "small" ? l.html : iY(e, {
...t,
size: "small"
}, !1).html,
relayoutArt: (e) => Dl(e, c),
- ratio: oK(e, "grid", t),
+ ratio: sK(e, "grid", t),
flipImages: s,
faceHtml: (e) => i.current.get(e) || "",
canFlip: r.canFlip,
@@ -62211,40 +62211,40 @@ function Ywe({ seed: e, layout: t, helpers: n, actions: r }) {
});
}
// src/react/media-sources.ts
-async function iY(e) {
+async function aY(e) {
await H.fetchQuery({
queryKey: yr,
queryFn: () => br(e)
});
}
-var Xwe = (e) => (e?.sources ?? []).filter((e) => vn.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Zwe = "/api/duplicates?limit=120", aY = ["duplicates"], oY = "/api/batch", Qwe = (e, t) => V(oY, {
+var Ywe = (e) => (e?.sources ?? []).filter((e) => vn.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Xwe = "/api/duplicates?limit=120", oY = ["duplicates"], sY = "/api/batch", Zwe = (e, t) => V(sY, {
ids: e,
operation: t ? "keep-duplicates" : "reconsider-duplicates"
-}), sY = (e) => B(Zwe, e), $we = /[\s\-_.()[\]【】/\\]/;
-function eTe(e) {
+}), cY = (e) => B(Xwe, e), Qwe = /[\s\-_.()[\]【】/\\]/;
+function $we(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 && !$we.test(n[r - 1]);) --r;
+ for (; r > 0 && !Qwe.test(n[r - 1]);) --r;
return r >= 8 ? n.slice(0, r) : "";
}
-var tTe = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
-async function nTe(e) {
+var eTe = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
+async function tTe(e) {
await Promise.all([H.fetchQuery({
- queryKey: aY,
- queryFn: () => sY(e)
- }), iY(e)]);
+ queryKey: oY,
+ queryFn: () => cY(e)
+ }), aY(e)]);
}
-var rTe = {
+var nTe = {
largest: "最大的一个",
longest: "最长的一个",
115: "115(没有则留最大)",
pikpak: "PikPak(没有则留最大)",
all: "零个文件"
-}, iTe = (e, t) => t.filter((t) => e.some((e) => e.location === t)), cY = (e, t) => iTe(e, t).filter((t) => e.some((e) => e.location !== t)), aTe = (e, t) => t.filter((t) => e.some((e) => cY(e.files, [t]).length));
-function oTe(e, t) {
+}, rTe = (e, t) => t.filter((t) => e.some((e) => e.location === t)), lY = (e, t) => rTe(e, t).filter((t) => e.some((e) => e.location !== t)), iTe = (e, t) => t.filter((t) => e.some((e) => lY(e.files, [t]).length));
+function aTe(e, t) {
let n = [];
for (let r of e) {
if (t === "all") {
@@ -62263,19 +62263,19 @@ function oTe(e, t) {
}
return n;
}
-function sTe(e, t) {
+function oTe(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 cTe(e, t) {
- for (let n = 0; n < e.length; n += 200) await V(oY, {
+async function sTe(e, t) {
+ for (let n = 0; n < e.length; n += 200) await V(sY, {
ids: e.slice(n, n + 200),
operation: t,
...t === "dispose" ? { disposal_reason: "duplicate" } : {}
});
}
// src/react/media-repair/media-repair.ts
-var lY = "/api/media-repair", uY = ["media-repair"], dY = ["media-repair", "libraries"], lTe = {
+var uY = "/api/media-repair", dY = ["media-repair"], fY = ["media-repair", "libraries"], cTe = {
status: "idle",
library: "",
stage: "",
@@ -62287,39 +62287,39 @@ var lY = "/api/media-repair", uY = ["media-repair"], dY = ["media-repair", "libr
missing_tool: 0,
skipped: 0,
message: ""
-}, fY = (e) => B(lY, e), pY = async (e) => (await B("/api/libraries", e)).libraries || [];
-async function uTe(e) {
+}, pY = (e) => B(uY, e), mY = async (e) => (await B("/api/libraries", e)).libraries || [];
+async function lTe(e) {
await Promise.all([H.fetchQuery({
- queryKey: uY,
- queryFn: () => fY(e)
- }), H.fetchQuery({
queryKey: dY,
queryFn: () => pY(e)
+ }), H.fetchQuery({
+ queryKey: fY,
+ queryFn: () => mY(e)
})]);
}
-var mY = (e) => Number(e).toLocaleString();
-function dTe(e) {
+var hY = (e) => Number(e).toLocaleString();
+function uTe(e) {
if (e.status === "running") {
- let t = e.total ? `${mY(Math.min(e.checked || 0, e.total))} / ${mY(e.total)}` : "准备中";
+ let t = e.total ? `${hY(Math.min(e.checked || 0, e.total))} / ${hY(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${mY(e.repaired)} 部,${mY(e.failed)} 部修不了` : `修好 ${mY(e.repaired)} 部` : "";
+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${hY(e.repaired)} 部,${hY(e.failed)} 部修不了` : `修好 ${hY(e.repaired)} 部` : "";
}
-var fTe = (e) => `${mY(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, pTe = "/api/quality-goals?limit=200", hY = ["quality-goals"], gY = (e) => B(pTe, e);
-async function mTe(e) {
+var dTe = (e) => `${hY(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, fTe = "/api/quality-goals?limit=200", gY = ["quality-goals"], _Y = (e) => B(fTe, e);
+async function pTe(e) {
await H.fetchQuery({
- queryKey: hY,
- queryFn: () => gY(e)
+ queryKey: gY,
+ queryFn: () => _Y(e)
});
}
-var hTe = (e) => e.has_cover ? uo(e) : `/poster?id=${e.id}&c=4`;
+var mTe = (e) => e.has_cover ? uo(e) : `/poster?id=${e.id}&c=4`;
// src/selection.ts
-function _Y(e, t, n, r, i, a = i || !e.has(r)) {
+function vY(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 gTe = "/api/review", _Te = "/api/review/decision", vTe = "/api/review/genre", vY = ["review"], yY = {
+var hTe = "/api/review", gTe = "/api/review/decision", _Te = "/api/review/genre", yY = ["review"], bY = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -62329,40 +62329,40 @@ var gTe = "/api/review", _Te = "/api/review/decision", vTe = "/api/review/genre"
fc2_markings: "FC2 评论标记",
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据"
-}, yTe = Object.keys(yY), bTe = "metadata_fields", bY = (e) => typeof e == "string" && Object.hasOwn(yY, e), xTe = {
+}, vTe = Object.keys(bY), yTe = "metadata_fields", xY = (e) => typeof e == "string" && Object.hasOwn(bY, e), bTe = {
creator_tags: "creator",
western_identity: "creator"
-}, xY = [
+}, SY = [
"pending",
"later",
"ignored"
-], SY = {
+], CY = {
pending: "待处理",
later: "稍后处理",
ignored: "已忽略"
-}, STe = {
+}, xTe = {
approved: "已通过",
rejected: "已忽略",
skipped: "稍后处理"
-}, CY = (e) => e === "later" || e === "ignored" ? e : "pending", wY = (e, t) => t === "pending" ? {
+}, wY = (e) => e === "later" || e === "ignored" ? e : "pending", TY = (e, t) => t === "pending" ? {
sections: e.sections,
counts: e.counts
} : e.queues[t];
-function CTe(e, t) {
+function STe(e, t) {
return {
...e,
- ...t(wY(e, "pending")),
+ ...t(TY(e, "pending")),
queues: {
later: t(e.queues.later),
ignored: t(e.queues.ignored)
}
};
}
-function wTe(e, t) {
+function CTe(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 TY(e, t) {
+function EY(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -62379,10 +62379,10 @@ function TY(e, t) {
}
return [...n.values()];
}
-function TTe(e, t, n) {
- return n && TY(e, t).find((e) => e.key === n)?.rows || e;
+function wTe(e, t, n) {
+ return n && EY(e, t).find((e) => e.key === n)?.rows || e;
}
-function ETe(e, t) {
+function TTe(e, t) {
let n = gr(e.length, 20), r = _r(t, n);
return {
page: r,
@@ -62390,32 +62390,32 @@ function ETe(e, t) {
rows: e.slice((r - 1) * 20, r * 20)
};
}
-function DTe(e) {
+function ETe(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 OTe(e, t, n, r, i, a) {
- return _Y(e, t, n, r, i, a);
+function DTe(e, t, n, r, i, a) {
+ return vY(e, t, n, r, i, a);
}
-function kTe(e, t) {
+function OTe(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
-function EY(e, t) {
+function DY(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
-var DY = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
-function ATe(e, t) {
- let n = EY(e, t), r = DY(e, t);
+var OY = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
+function kTe(e, t) {
+ let n = DY(e, t), r = OY(e, t);
return r ? `${n} · ${r}` : n;
}
-var jTe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", MTe = (e) => String(e.tags || "").split("|").filter(Boolean), NTe = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
-function PTe(e) {
+var ATe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", jTe = (e) => String(e.tags || "").split("|").filter(Boolean), MTe = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
+function NTe(e) {
let t = e.candidates || [];
return {
candidateKey: t.length === 1 ? t[0].candidate_key : "",
assets: (e.preview_assets || []).map((e) => e.id)
};
}
-function FTe(e, t, n, r) {
+function PTe(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@ -62431,22 +62431,22 @@ function FTe(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var ITe = (e) => ({
+var FTe = (e) => ({
approved: "已通过资料",
rejected: "已忽略资料",
skipped: "已移至稍后处理",
restore: "已恢复待处理"
})[e];
-async function OY(e) {
- let t = await B(gTe, e);
- for (let e of ["later", "ignored"]) if (!t.queues?.[e]?.sections || !t.queues[e].counts) throw Error(`${SY[e]}状态未取得,请刷新或更新写入端`);
+async function kY(e) {
+ let t = await B(hTe, e);
+ for (let e of ["later", "ignored"]) if (!t.queues?.[e]?.sections || !t.queues[e].counts) throw Error(`${CY[e]}状态未取得,请刷新或更新写入端`);
return t;
}
-async function LTe(e) {
- let t = await V(_Te, e);
+async function ITe(e) {
+ let t = await V(gTe, e);
if (t.ok && t.asset_revisions) {
let e = t.asset_revisions;
- H.setQueryData(vY, (t) => t && CTe(t, (t) => ({
+ H.setQueryData(yY, (t) => t && STe(t, (t) => ({
...t,
sections: {
...t.sections,
@@ -62462,33 +62462,33 @@ async function LTe(e) {
}
return t;
}
-function RTe(e, t) {
- let n = H.getQueryData(vY);
- return n && xY.flatMap((t) => wY(n, t).sections[e] || []).find((e) => e.item_key === t.item_key) || t;
+function LTe(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;
}
-var zTe = (e, t) => V(vTe, {
+var RTe = (e, t) => V(_Te, {
genre: e,
tag: t
});
-async function BTe(e) {
+async function zTe(e) {
await H.fetchQuery({
- queryKey: vY,
- queryFn: () => OY(e)
+ queryKey: yY,
+ queryFn: () => kY(e)
});
}
-function VTe(e, t, n) {
+function BTe(e, t, n) {
let r = new Set(t);
- r.size && H.setQueryData(vY, (t) => {
+ r.size && H.setQueryData(yY, (t) => {
if (!t) return t;
- let i = xY.flatMap((n) => wY(t, n).sections[e] || []).filter((e) => r.has(e.item_key));
+ let i = SY.flatMap((n) => TY(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(xY.map((o) => {
- let s = wY(t, o), c = (s.sections[e] || []).filter((e) => !r.has(e.item_key)), l = a === o ? [...c, ...i.map((e) => ({
+ }[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) => ({
...e,
decision: n === "restore" ? "pending" : n,
decision_note: ""
@@ -62515,258 +62515,254 @@ function VTe(e, t, n) {
};
});
}
-var HTe = () => H.invalidateQueries({
- queryKey: vY,
+var VTe = () => H.invalidateQueries({
+ queryKey: yY,
exact: !0
});
-function UTe(e, t) {
+function HTe(e, t) {
return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${Cr(e.fetched_at)} 的缓存` : e?.error || t;
}
// src/react/data-cleanup/links.ts
-var WTe = "/api/links", kY = "/api/links/check", AY = "/api/links/prune", jY = ["links"], MY = ["links", "check"], NY = ["links", "prune"], GTe = {
+var UTe = "/api/links", AY = "/api/links/check", jY = "/api/links/prune", MY = ["links"], NY = ["links", "check"], PY = ["links", "prune"], WTe = {
official: "官网/事务所",
social: "社交账号",
catalog: "作品资料站",
source_reference: "资料出处"
};
-async function PY(e) {
+async function FY(e) {
let t = await e;
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
-var FY = (e) => B(WTe, e), IY = (e) => V(kY, { status_only: !0 }, "POST", e), KTe = ({ retry: e, checkId: t }) => PY(V(kY, e ? {
+var IY = (e) => B(UTe, e), LY = (e) => V(AY, { status_only: !0 }, "POST", e), GTe = ({ retry: e, checkId: t }) => FY(V(AY, e ? {
retry: e,
check_id: t
-} : { restart: !0 })), LY = (e) => B(AY, e), qTe = ({ checkId: e, ids: t }) => PY(V(AY, {
+} : { restart: !0 })), RY = (e) => B(jY, e), KTe = ({ checkId: e, ids: t }) => FY(V(jY, {
confirm: !0,
check_id: e,
background: !0,
...t ? { ids: t } : {}
-})), RY = (e) => Number(e || 0).toLocaleString(), JTe = (e) => `已删除 ${RY(e.removed)} 条;${e.marked ? `已隐退女优的 ${RY(e.marked)} 条留作不可点的记录;` : ""}保留 ${RY(e.recovered)} 条未确认失效的链接。`;
-function YTe(e) {
+})), zY = (e) => Number(e || 0).toLocaleString(), qTe = (e) => `已删除 ${zY(e.removed)} 条;${e.marked ? `已隐退女优的 ${zY(e.marked)} 条留作不可点的记录;` : ""}保留 ${zY(e.recovered)} 条未确认失效的链接。`;
+function JTe(e) {
let t = e.scope === "retry";
- return e.total ? `${t ? "已重验" : "已检查"} ${RY(e.checked)} / ${RY(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
+ return e.total ? `${t ? "已重验" : "已检查"} ${zY(e.checked)} / ${zY(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
// src/configuration-endpoints.ts
-var zY = "/api/configuration", BY = "/api/pick-folder", VY = "/api/settings", HY = "/api/follow/schedule", UY = "/api/feeds/schedule", WY = "/api/thumbnail-jobs", GY = ["settings"], KY = ["follow-schedule"], qY = ["feed-schedule"], JY = ["thumbnail-jobs"], YY = "/api/media-processing", XTe = ["media-processing"], ZTe = (e) => B(YY, e), XY = (e) => B(VY, e), QTe = (e) => B(HY, e), $Te = (e) => B(UY, e), eEe = (e) => B(WY, e);
-function tEe(e = H) {
+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"], JY = ["feed-schedule"], YY = ["thumbnail-jobs"], XY = "/api/media-processing", YTe = ["media-processing"], XTe = (e) => B(XY, e), ZY = (e) => B(HY, e), ZTe = (e) => B(UY, e), QTe = (e) => B(WY, e), $Te = (e) => B(GY, e);
+function eEe(e = H) {
return e.fetchQuery({
- queryKey: GY,
- queryFn: ({ signal: e }) => XY(e),
+ queryKey: KY,
+ queryFn: ({ signal: e }) => ZY(e),
staleTime: 0
}).catch(() => null);
}
-function ZY() {
+function QY() {
return It({
- mutationFn: (e) => V(VY, e),
- onSuccess: (e) => H.setQueryData(GY, e)
+ mutationFn: (e) => V(HY, e),
+ onSuccess: (e) => H.setQueryData(KY, e)
});
}
-function nEe() {
+function tEe() {
return It({
- mutationFn: (e) => V(HY, {
+ mutationFn: (e) => V(UY, {
enabled: e > 0,
interval_minutes: e || 60
}),
- onSuccess: (e) => H.setQueryData(KY, e)
+ onSuccess: (e) => H.setQueryData(qY, e)
});
}
-var rEe = {
+var nEe = {
follow: {
- url: `${HY}/run`,
- key: KY
- },
- feed: {
url: `${UY}/run`,
key: qY
+ },
+ feed: {
+ url: `${WY}/run`,
+ key: JY
}
};
-function iEe(e) {
- let { url: t, key: n } = rEe[e];
+function rEe(e) {
+ let { url: t, key: n } = nEe[e];
return It({
mutationFn: () => V(t, {}),
onSuccess: (e) => H.setQueryData(n, e)
});
}
-var aEe = (e) => e?.running ? 3e3 : !1;
-function oEe() {
+var iEe = (e) => e?.running ? 3e3 : !1;
+function aEe() {
return It({
- mutationFn: (e) => V(WY, { mode: e }),
- onSuccess: (e) => H.setQueryData(JY, e)
+ mutationFn: (e) => V(GY, { mode: e }),
+ onSuccess: (e) => H.setQueryData(YY, e)
});
}
// src/react/data-cleanup/organize.ts
-var sEe = "/api/organize", cEe = "/api/organize/preview", lEe = "/api/organize/apply", uEe = "/api/organize/rollback", QY = ["organize"], dEe = "/api/organize/example", fEe = (e, t, n) => B(`${dEe}?${new URLSearchParams({
+var oEe = "/api/organize", sEe = "/api/organize/preview", cEe = "/api/organize/apply", lEe = "/api/organize/rollback", $Y = ["organize"], uEe = "/api/organize/example", dEe = (e, t, n) => B(`${uEe}?${new URLSearchParams({
file_template: e,
dir_template: t
-})}`, n), $Y = (e) => B(sEe, e);
-async function pEe(e) {
+})}`, n), eX = (e) => B(oEe, e);
+async function fEe(e) {
await H.fetchQuery({
- queryKey: QY,
- queryFn: () => $Y(e)
+ queryKey: $Y,
+ queryFn: () => eX(e)
});
}
-var mEe = (e) => V(cEe, e), hEe = (e) => V(BY, { initial: e }), gEe = (e) => e.kind === "apply" ? V(lEe, {
+var pEe = (e) => V(sEe, e), mEe = (e) => V(VY, { initial: e }), hEe = (e) => e.kind === "apply" ? V(cEe, {
...e.request,
confirm: !0
-}) : V(uEe, { confirm: !0 });
-async function _Ee(e) {
- H.setQueryData(QY, (t) => t && {
+}) : V(lEe, { confirm: !0 });
+async function gEe(e) {
+ H.setQueryData($Y, (t) => t && {
...t,
templates: e
});
try {
- await V(VY, { organizeTemplates: e });
+ await V(HY, { organizeTemplates: e });
} catch {}
}
-var vEe = (e, t) => e && {
+var _Ee = (e, t) => e && {
...e,
...t
-}, yEe = /目录模板|分隔符|盘符|`\.`/;
-function bEe(e) {
+}, vEe = /目录模板|分隔符|盘符|`\.`/;
+function yEe(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
-var eX = (e) => Number(e || 0).toLocaleString();
-function xEe(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 tX = (e) => Number(e || 0).toLocaleString();
+function bEe(e) {
+ let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${tX(t)}`).join(" · ");
+ return Number(e.counts?.change || 0) ? `${tX(e.counts.change)} 个文件会改名或移动,${tX(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
}
-function SEe(e) {
+function xEe(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 ? `已退回 ${tX(r)} 个文件${n ? `,${tX(n)} 行未能退回` : ""}。` : `已整理 ${tX(r)} 个文件${n ? `,${tX(n)} 行未能处理` : ""}。`,
failed: n,
rollback: t
};
}
// src/react/data-cleanup/orphan-records.ts
-var CEe = "/api/orphan-records", wEe = "/api/orphan-records/attach", tX = ["orphan-records"], TEe = [
+var SEe = "/api/orphan-records", CEe = "/api/orphan-records/attach", nX = ["orphan-records"], wEe = [
["asset_preference", "喜欢与理由"],
["watch_queue", "稍后看"],
["playlist_item", "播放列表"],
["asset_quality_goal", "寻找更好版本"],
["activity_event", "观看历史"],
["asset_tag_preference", "隐藏标签"]
-], nX = (e) => B(CEe, e), EEe = (e, t) => V(wEe, {
+], rX = (e) => B(SEe, e), TEe = (e, t) => V(CEe, {
id: e,
target: t
-}), DEe = (e) => V(oY, {
+}), EEe = (e) => V(sY, {
ids: Array.isArray(e) ? e : [e],
operation: "delete"
-}), OEe = (e) => [
+}), DEe = (e) => [
e.rating ? `评分 ${e.rating}` : "",
e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",
e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""
-], kEe = (e) => [...TEe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...OEe(e)].filter(Boolean).join(" · "), AEe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", jEe = (e) => [e.name, AEe(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, {
+], OEe = (e) => [...wEe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...DEe(e)].filter(Boolean).join(" · "), kEe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", AEe = (e) => [e.name, kEe(e.duration)].filter(Boolean).join(" · "), iX = "/api/resource-sync/scan", aX = "/api/resource-sync/apply", oX = ["resource-sync", "scan"], sX = ["resource-sync", "apply"], cX = (e) => V(iX, {
background: !0,
status_only: !0
-}, "POST", e), MEe = () => V(rX, {
+}, "POST", e), jEe = () => V(iX, {
background: !0,
restart: !0
-}), cX = (e) => B(iX, e), NEe = (e) => V(iX, {
+}), lX = (e) => B(aX, e), MEe = (e) => V(aX, {
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 PEe(e) {
- lX(H.getQueryData(yr)) && await Promise.all([H.fetchQuery({
- queryKey: aX,
- queryFn: () => sX(e)
- }), H.fetchQuery({
+}), uX = (e) => (e?.sources ?? []).some((e) => _n.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
+async function NEe(e) {
+ uX(H.getQueryData(yr)) && await Promise.all([H.fetchQuery({
queryKey: oX,
queryFn: () => cX(e)
+ }), H.fetchQuery({
+ queryKey: sX,
+ queryFn: () => lX(e)
})]);
}
-var FEe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), uX = (e) => Number(e || 0).toLocaleString(), IEe = (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 ? "这几样不可撤销。" : "这一步不可撤销。", LEe = (e) => `将永久删除文件已不在盘上的 ${uX(dX(e))} 条记录和 ${uX(e.empty)} 个空文件夹,并清理 ${uX(e.cache?.files)} 个闲置缓存。${pX(e)}${fX(e)}`, REe = (e) => `将永久删除文件已不在盘上的 ${uX(dX(e))} 条记录(含回收站里的)、${uX(e.empty)} 个空文件夹,并清理 ${uX(e.cache?.files)} 个闲置缓存。来源根目录保留。${pX(e)}${fX(e)}`, zEe = (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 PEe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), dX = (e) => Number(e || 0).toLocaleString(), FEe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", fX = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), pX = (e) => e.vanish ? `${dX(e.vanish)} 条作品记录的文件已丢失,个人记录保留,可在「文件已丢失的记录」中转移个人记录或删除记录。` : "", mX = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", IEe = (e) => `将永久删除文件已不在盘上的 ${dX(fX(e))} 条记录和 ${dX(e.empty)} 个空文件夹,并清理 ${dX(e.cache?.files)} 个闲置缓存。${mX(e)}${pX(e)}`, LEe = (e) => `将永久删除文件已不在盘上的 ${dX(fX(e))} 条记录(含回收站里的)、${dX(e.empty)} 个空文件夹,并清理 ${dX(e.cache?.files)} 个闲置缓存。来源根目录保留。${mX(e)}${pX(e)}`, REe = (e) => e.online ? [
+ `找不到文件 · 共 ${dX(e.total)} 项`,
+ e.vanish ? `${dX(e.vanish)} 项带个人记录` : "",
+ e.empty ? `空文件夹 ${dX(e.empty)} 个` : ""
+].filter(Boolean).join(" · ") : `馆藏中有 ${dX(e.total)} 项`;
+function hX(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 ? `${dX(t.length)} 条记录没有删除(${o})` : "",
+ n ? `${dX(n)} 个文件夹没有删除` : "",
+ r.length ? `${dX(r.length)} 个缓存没有清理` : ""
].filter(Boolean).join(",")
};
}
-var BEe = (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 zEe = (e, t) => {
+ let { rest: n } = hX(e), r = `已永久删除 ${dX(e.purged)} 条失效记录和 ${dX(e.dirs_removed)} 个空文件夹,清理 ${dX(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${dX(e.vanished)} 条作品记录已标为文件丢失,可在「文件已丢失的记录」中处理。` : "") + (e.reattached ? `${dX(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
return n ? `${r}${n},重新检查后可再试。` : r;
-}, hX = ["performer-delete-candidates"], gX = (e) => B("/api/performer/delete-candidates", e), VEe = (e, t) => B(`/api/performer/delete-plan?${new URLSearchParams({ ids: e.join(",") })}`, t), HEe = (e) => V("/api/performer/delete", {
+}, gX = ["performer-delete-candidates"], _X = (e) => B("/api/performer/delete-candidates", e), BEe = (e, t) => B(`/api/performer/delete-plan?${new URLSearchParams({ ids: e.join(",") })}`, t), VEe = (e) => V("/api/performer/delete", {
entity_ids: e.entity_ids,
plan: e.plan
-}), UEe = "/api/review?counts=1", _X = ["review", "counts"], WEe = "/api/ads?limit=1", vX = ["junk-summary"], yX = "/api/items?state=trash&limit=1", bX = ["trash-summary"], GEe = [
+}), HEe = "/api/review?counts=1", vX = ["review", "counts"], UEe = "/api/ads?limit=1", yX = ["junk-summary"], bX = "/api/items?state=trash&limit=1", xX = ["trash-summary"], WEe = [
["video", "视频"],
["image", "图片"],
["archive", "压缩包"],
["audio", "音频"],
["url", "网址"],
["other", "其它"]
-], xX = (e) => B(UEe, e), SX = (e) => B(WEe, e), CX = (e) => {
+], SX = (e) => B(HEe, e), CX = (e) => B(UEe, e), wX = (e) => {
let t = sessionStorage.getItem("peach.library");
- return B(t ? `${yX}&library=${encodeURIComponent(t)}` : yX, e);
-}, wX = (e) => Number(e || 0).toLocaleString();
-function KEe(e) {
- let t = yY, 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 ? `${bX}&library=${encodeURIComponent(t)}` : bX, e);
+}, TX = (e) => Number(e || 0).toLocaleString();
+function GEe(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 a && i.push(`其余 ${a.toLocaleString()}`), {
figure: `${r.toLocaleString()} 条待复核`,
meta: i.join(" · ")
};
}
-function qEe(e) {
+function KEe(e) {
if (!e) return "";
- let t = GEe.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(" · ");
+ let t = WEe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${TX(e.counts[t])}`);
+ return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${TX(e.dismissed_total)}`), t.join(" · ");
}
-var JEe = [
- [_X, ({ signal: e }) => xX(e)],
- [hY, ({ signal: e }) => gY(e)],
- [bX, ({ signal: e }) => CX(e)],
+var qEe = [
[vX, ({ signal: e }) => SX(e)],
- [aY, ({ signal: e }) => sY(e)]
+ [gY, ({ signal: e }) => _Y(e)],
+ [xX, ({ signal: e }) => wX(e)],
+ [yX, ({ signal: e }) => CX(e)],
+ [oY, ({ signal: e }) => cY(e)]
];
-async function YEe(e) {
- for (let [t, n] of JEe) H.prefetchQuery({
+async function JEe(e) {
+ for (let [t, n] of qEe) H.prefetchQuery({
queryKey: t,
queryFn: () => n({ signal: e })
});
- await rH(e);
+ await iH(e);
}
-async function XEe(e, t) {
+async function YEe(e, t) {
switch (e) {
case "organize":
- await pEe(t);
+ await fEe(t);
break;
case "media-repair":
- await uTe(t);
+ await lTe(t);
break;
case "resource-sync":
- await iY(t), await PEe(t);
+ await aY(t), await NEe(t);
break;
case "orphan-records":
await H.prefetchQuery({
- queryKey: tX,
- queryFn: () => nX(t)
+ queryKey: nX,
+ queryFn: () => rX(t)
});
break;
case "batch-delete":
await H.prefetchQuery({
- queryKey: hX,
- queryFn: () => gX(t)
+ queryKey: gX,
+ queryFn: () => _X(t)
});
break;
case "links": await Promise.all([
- H.prefetchQuery({
- queryKey: jY,
- queryFn: () => FY(t)
- }),
H.prefetchQuery({
queryKey: MY,
queryFn: () => IY(t)
@@ -62774,13 +62770,17 @@ async function XEe(e, t) {
H.prefetchQuery({
queryKey: NY,
queryFn: () => LY(t)
+ }),
+ H.prefetchQuery({
+ queryKey: PY,
+ queryFn: () => RY(t)
})
]);
}
}
// src/react/feed-new/feed-new.ts
-var TX = (e) => ["feed-new", e ?? "home"], ZEe = 8, QEe = 1500;
-function $Ee(e, t, n) {
+var EX = (e) => ["feed-new", e ?? "home"], XEe = 8, ZEe = 1500;
+function QEe(e, t, n) {
let r = document.createElement("template");
r.innerHTML = e;
let i = [...r.content.querySelectorAll("img[src]")].slice(0, t).map((e) => {
@@ -62791,33 +62791,33 @@ function $Ee(e, t, n) {
setTimeout(e, n);
})]);
}
-async function eDe(e, t, n) {
- let r = new URLSearchParams({ limit: String(Qj().value.feedLimit) });
+async function $Ee(e, t, n) {
+ let r = new URLSearchParams({ limit: String($j().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 $Ee(s, ZEe, QEe), {
+ return n && o.length && await QEe(s, XEe, ZEe), {
items: o,
html: s,
fetching: o.some((e) => e.cover_fetching && !e.has_cover)
};
}
-var EX = (e, t, n = !1) => ({
- queryKey: TX(e),
- queryFn: () => eDe(e, t, n),
+var DX = (e, t, n = !1) => ({
+ queryKey: EX(e),
+ queryFn: () => $Ee(e, t, n),
staleTime: Infinity,
refetchInterval: (e) => e.state.data?.fetching ? 2e3 : !1
-}), DX = (e, t) => Tn("/api/feeds/discovery", {
+}), OX = (e, t) => Tn("/api/feeds/discovery", {
method: "POST",
body: JSON.stringify({
action: t,
ids: [e]
})
}).then(() => void 0, () => void 0);
-async function tDe(e) {
- H.removeQueries({ queryKey: TX(null) }), await H.fetchQuery(EX(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
+async function eDe(e) {
+ H.removeQueries({ queryKey: EX(null) }), await H.fetchQuery(DX(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
}
// src/react/entity-page/entity-page.ts
-var OX = [
+var kX = [
"loc",
"creator",
"tag",
@@ -62831,52 +62831,52 @@ var OX = [
"browse",
"folder",
"folder_recursive"
-], kX = {
+], AX = {
media: "videos",
set: 0
-}, AX = (e, t) => [
+}, jX = (e, t) => [
"entity",
e,
t
-], nDe = (e, t, n, r) => [
+], tDe = (e, t, n, r) => [
"entity-items",
e,
t,
n,
r
-], jX = (e, t, n, r) => [
+], MX = (e, t, n, r) => [
"entity-photos",
e,
t,
n,
r
-], MX = (e) => String(e || "").split(",").filter(Boolean), rDe = (e, t) => MX(e).includes(t);
-function NX(e, t, n, r, i = 0) {
+], NX = (e) => String(e || "").split(",").filter(Boolean), nDe = (e, t) => NX(e).includes(t);
+function PX(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, ...NX(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 kX) 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 FX(e, t, n, r, i, a, o) {
+ let s = PX(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 IX = (e) => {
let t = {
jav: e.jav,
seed: e.seed
- }, n = NX(e.kind, e.name, e.filters, t).toString();
+ }, n = PX(e.kind, e.name, e.filters, t).toString();
return {
- queryKey: nDe(e.kind, e.name, n, e.revision),
- queryFn: ({ signal: n }) => PX(e.kind, e.name, e.filters, t, 0, n),
+ queryKey: tDe(e.kind, e.name, n, e.revision),
+ queryFn: ({ signal: n }) => FX(e.kind, e.name, e.filters, t, 0, n),
staleTime: Infinity
};
-}, IX = (e, t) => ({
- queryKey: AX(e, t),
+}, LX = (e, t) => ({
+ queryKey: jX(e, t),
queryFn: ({ signal: n }) => Tn(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`, { signal: n }),
staleTime: Infinity
});
-function iDe(e, t, n, r, i, a) {
+function rDe(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)}` : ""}`;
@@ -62885,10 +62885,10 @@ function iDe(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 RX = (e, t, n, r) => ({
+ queryKey: MX(e, t, n, r),
queryFn: async ({ pageParam: i }) => {
- let a = await Tn(iDe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
+ let a = await Tn(rDe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
if (i) throw e;
return { error: String(e) };
});
@@ -62901,8 +62901,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 aDe(e) {
+}), zX = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
+async function iDe(e) {
let { kind: t, name: n } = e;
if (!e.restoreNavigation) for (let e of [
"entity",
@@ -62913,25 +62913,25 @@ async function aDe(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(jX(t, n), e.resolvedEntity), await Promise.all([
+ H.fetchQuery(LX(t, n)).then((t) => !t || t.error || !t.id ? null : (e.restoreNavigation || H.removeQueries({ queryKey: EX(Number(t.id)) }), H.fetchQuery(DX(Number(t.id), e.helpers.feedRowHtml, !0)))),
+ H.fetchQuery(IX(e)),
+ H.fetchInfiniteQuery(RX(t, n, 0, "")),
+ e.media.media === "photos" && e.media.set ? H.fetchInfiniteQuery(RX(t, n, e.media.set, "")) : null
]);
}
// src/identity-filter.ts
-var zX = [
+var BX = [
["all", "全部"],
["japanese_av", "女优"],
["amateur", "素人"],
["western", "西方"],
["blogger", "网黄博主"],
["animation", "动画作者"]
-], BX = "mb-4 flex flex-wrap gap-2";
-function oDe(e) {
- let t = zX.some(([t]) => t === e) ? e : "all";
- return `<div class="peach-react"><div aria-label="身份分类" class="${BX}">${zX.map(([e, n]) => ks({
+], VX = "mb-4 flex flex-wrap gap-2";
+function aDe(e) {
+ let t = BX.some(([t]) => t === e) ? e : "all";
+ return `<div class="peach-react"><div aria-label="身份分类" class="${VX}">${BX.map(([e, n]) => ks({
variant: e === t ? "primary" : "secondary",
size: "small",
label: n,
@@ -62939,45 +62939,45 @@ function oDe(e) {
})).join("")}</div></div>`;
}
// src/react/follow/online-vocab.ts
-var sDe = "/api/follow/authors", cDe = "/api/follow/tags", lDe = (e) => [
+var oDe = "/api/follow/authors", sDe = "/api/follow/tags", cDe = (e) => [
"follow",
"authors",
e
-], uDe = (e, t) => [
+], lDe = (e, t) => [
"follow",
"tags",
e,
t
];
-function dDe(e, t, n) {
+function uDe(e, t, n) {
let r = new URLSearchParams({
limit: String(t),
offset: String(n)
});
- return e && r.set("q", e), `${sDe}?${r}`;
+ return e && r.set("q", e), `${oDe}?${r}`;
}
-function fDe(e, t, n, r) {
+function dDe(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), `${cDe}?${i}`;
+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${sDe}?${i}`;
}
-var pDe = (e, t, n, r) => B(dDe(e, t, n), r), mDe = (e, t, n, r, i) => B(fDe(e, t, n, r), i), hDe = "/api/index", VX = {
+var fDe = (e, t, n, r) => B(uDe(e, t, n), r), pDe = (e, t, n, r, i) => B(dDe(e, t, n, r), i), mDe = "/api/index", HX = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
series: "系列",
tags: "标签"
-}, gDe = {
+}, hDe = {
performers: "performer",
creators: "creator",
studios: "studio",
agencies: "agency",
series: "series"
-}, HX = [
+}, UX = [
["all", "全部"],
["meta", "影片属性"],
["relationship", "人物关系"],
@@ -62987,31 +62987,31 @@ var pDe = (e, t, n, r) => B(dDe(e, t, n), r), mDe = (e, t, n, r, i) => B(fDe(e,
["story", "故事剧情"],
["position", "性交体位"],
["general", "其他内容"]
-], UX = [
+], WX = [
["all", "全部"],
["general", "通用"],
["artist", "创作者"],
["character", "角色"],
["copyright", "作品"],
["metadata", "元数据"]
-], WX = {
+], GX = {
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({
+}, KX = (e) => e !== "tags", qX = (e) => e === "studios" || e === "agencies";
+function JX(e) {
+ if (e.kind === "creators" && e.category === "animation") return JX({
...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" ? WX : UX : e.kind === "performers" && t === "local" ? BX : []).some(([t]) => t === e.category);
return {
...e,
scope: t,
category: n ? e.category : "all"
};
}
-function JX(e) {
+function YX(e) {
let { kind: t, q: n, scope: r, category: i } = e;
return t === "tags" ? r === "online" ? {
what: "online-tags",
@@ -63031,50 +63031,50 @@ function JX(e) {
...i && i !== "all" ? { category: i } : {}
};
}
-var YX = (e, t, n = "all") => [
+var XX = (e, t, n = "all") => [
"index",
e,
t,
...e === "tags" || n !== "all" ? [n] : []
];
-function XX(e, t, n, r, i) {
+function ZX(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), `${hDe}?${a}`;
+ return t && a.set("q", t), n !== "all" && a.set("category", n), `${mDe}?${a}`;
}
-function ZX(e, t = WX.tags) {
- let n = e.what === "people" || e.what === "online-authors" ? WX.people : t, r = {
+function QX(e, t = GX.tags) {
+ let n = e.what === "people" || e.what === "online-authors" ? GX.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: XX(e.kind, e.q, e.category || "all"),
+ queryFn: ({ pageParam: t, signal: r }) => B(ZX(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: XX("tags", e.q, e.category),
+ queryFn: ({ pageParam: t, signal: r }) => B(ZX("tags", e.q, e.category, n, t), r)
};
case "online-authors": return {
...r,
- queryKey: lDe(e.q),
- queryFn: ({ pageParam: t, signal: r }) => pDe(e.q, n, t, r)
+ queryKey: cDe(e.q),
+ queryFn: ({ pageParam: t, signal: r }) => fDe(e.q, n, t, r)
};
case "online-tags": return {
...r,
- queryKey: uDe(e.q, e.category),
- queryFn: ({ pageParam: t, signal: r }) => mDe(e.q, e.category, n, t, r)
+ queryKey: lDe(e.q, e.category),
+ queryFn: ({ pageParam: t, signal: r }) => pDe(e.q, e.category, n, t, r)
};
}
}
-async function _De(e, t) {
- let n = ZX(JX(qX(e)));
+async function gDe(e, t) {
+ let n = QX(YX(JX(e)));
await H.fetchInfiniteQuery({
queryKey: n.queryKey,
queryFn: ({ pageParam: e }) => n.queryFn({
@@ -63086,20 +63086,20 @@ async function _De(e, t) {
staleTime: Infinity
});
}
-var vDe = (e) => e ? e.pages.flatMap((e) => e.items) : [], yDe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, QX = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", bDe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, xDe = {
+var _De = (e) => e ? e.pages.flatMap((e) => e.items) : [], vDe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, $X = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", yDe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, bDe = {
numeric: !0,
sensitivity: "base"
};
-function $X(e, t) {
+function eZ(e, t) {
let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", xDe))) {
+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", bDe))) {
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 tZ({ 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");
@@ -63111,18 +63111,18 @@ function eZ({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var SDe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", CDe = lV("rss");
-function tZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a, ...o }) {
+var xDe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", SDe = uV("rss");
+function nZ({ 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: yU({
+ className: bU({
radius: "plain",
padding: "none",
interactive: !0,
- className: `${SDe} ${n ? "items-stretch text-left" : "items-center text-center"}`
+ className: `${xDe} ${n ? "items-stretch text-left" : "items-center text-center"}`
}),
children: [
r,
@@ -63131,10 +63131,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)(HU, {
+ children: /* @__PURE__ */ (0, I.jsx)(UU, {
variant: "caption",
color: "soft",
- children: /* @__PURE__ */ (0, I.jsx)(CDe, {})
+ children: /* @__PURE__ */ (0, I.jsx)(SDe, {})
})
}) : null,
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -63150,9 +63150,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";
- eL();
+function rZ({ kind: e, items: t, layout: n, props: r }) {
+ let i = qX(e) || e === "series";
+ tL();
let a = n === "big";
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-index-grid": "",
@@ -63160,16 +63160,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 || gDe[e], o = r.personAvatar(t, n, a);
- return /* @__PURE__ */ (0, I.jsx)(tZ, {
+ let n = t.entity_kind || hDe[e], o = r.personAvatar(t, n, a);
+ return /* @__PURE__ */ (0, I.jsx)(nZ, {
"data-k": t.k,
"data-kind": n,
name: nn(n, t.k, t.entity_id),
- readout: `${bDe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
+ readout: `${yDe(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)(tZ, {
html: o.html,
face: o.face,
company: i,
@@ -63179,15 +63179,15 @@ function nZ({ kind: e, items: t, layout: n, props: r }) {
})
});
}
-function wDe({ items: e, layout: t, props: n }) {
- eL();
+function CDe({ items: e, layout: t, props: n }) {
+ tL();
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)(nZ, {
"data-follow-author": e.key,
"data-kind": "performer",
name: nn("creator", e.k, e.entity_id),
@@ -63196,7 +63196,7 @@ function wDe({ 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)(tZ, {
html: n.authorAvatar(e),
company: !1,
big: r
@@ -63205,8 +63205,8 @@ function wDe({ items: e, layout: t, props: n }) {
});
}
// src/board-tooltip.ts
-var rZ = (e) => e.replace(/\s+/g, " ").trim();
-function iZ(e) {
+var iZ = (e) => e.replace(/\s+/g, " ").trim();
+function aZ(e) {
let t = document.createTreeWalker(e, NodeFilter.SHOW_TEXT), n = "", r;
for (; r = t.nextNode();) {
let e = r.parentElement;
@@ -63214,12 +63214,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 iZ(n);
}
-function aZ(e) {
+function oZ(e) {
let t = e.getBoundingClientRect();
if (t.width && t.height) {
- if (e.matches("a") && iZ(e) && !oZ(e)) {
+ if (e.matches("a") && aZ(e) && !sZ(e)) {
let t = document.createRange();
t.selectNodeContents(e);
let n = t.getBoundingClientRect();
@@ -63232,7 +63232,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 sZ(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);
@@ -63243,19 +63243,19 @@ function oZ(e) {
}
return !1;
}
-function TDe() {
+function wDe() {
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 = oZ(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"), (aZ(d) !== iZ(n) || sZ(d)) && (i = setTimeout(() => {
+ if (t !== d || !d.isConnected || !oZ(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(" "));
@@ -63280,32 +63280,32 @@ function TDe() {
e.key === "Escape" && !c() && u();
}), document.addEventListener("scroll", (n) => {
if (!t || !fs(n, t)) return;
- let r = aZ(t);
+ let r = oZ(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 cZ(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 EDe() {
- if (cZ.has(document)) return;
- cZ.add(document);
+var lZ = /* @__PURE__ */ new WeakSet();
+function TDe() {
+ if (lZ.has(document)) return;
+ lZ.add(document);
let e = (e) => {
- e.querySelectorAll("input[type=range]").forEach(sZ), ODe(e), DDe(e);
+ e.querySelectorAll("input[type=range]").forEach(cZ), DDe(e), EDe(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]") && cZ(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);
- }), TDe();
+ e.target instanceof HTMLInputElement && e.target.type === "range" && cZ(e.target);
+ }), wDe();
}
-function DDe(e) {
+function EDe(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;
@@ -63329,15 +63329,15 @@ function DDe(e) {
r.observe(e);
});
}
-var lZ = /* @__PURE__ */ new Map();
-function ODe(e) {
+var uZ = /* @__PURE__ */ new Map();
+function DDe(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 = uZ.get(n) ?? null, i = () => {
let i = e.querySelector("label:has(input:checked),button[aria-selected=true]");
if (!i || !i.offsetWidth) return;
let a = {
@@ -63346,7 +63346,7 @@ function ODe(e) {
w: i.offsetWidth,
h: i.offsetHeight
};
- Gc(t, r, a, "x"), r = a, lZ.set(n, a);
+ Gc(t, r, a, "x"), r = a, uZ.set(n, a);
};
e.addEventListener("change", i);
let a = new MutationObserver(i);
@@ -63362,8 +63362,8 @@ function ODe(e) {
});
}
// src/react/photo-lightbox/photo-lightbox.ts
-var uZ = "/vendor/swiper/14.4.0/", dZ = null, kDe = () => dZ ??= Promise.all([new Promise((e, t) => {
- let n = `${uZ}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
+var dZ = "/vendor/swiper/14.4.0/", fZ = null, ODe = () => fZ ??= Promise.all([new Promise((e, t) => {
+ let n = `${dZ}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
if (r?.sheet) {
e();
return;
@@ -63377,11 +63377,11 @@ var uZ = "/vendor/swiper/14.4.0/", dZ = null, kDe = () => 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 = `${dZ}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 fZ = null, e;
});
-function ADe(e, t, n) {
+function kDe(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);
@@ -63402,46 +63402,46 @@ function ADe(e, t, n) {
}
};
}
-var fZ = (e) => {
+var pZ = (e) => {
let t = Number(e) || 0;
return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : Xn(t)).replace(" ", "\xA0") : "大小未知";
-}, jDe = (e) => e.asset?.name || e.name || "未命名图片";
-function MDe(e, t) {
+}, ADe = (e) => e.asset?.name || e.name || "未命名图片";
+function jDe(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 || "来源未知", pZ(n.size)].join(" · ");
let r = t?.[0] && t[1] ? `${t[0]} × ${t[1]}` : "";
return [
e.source || "在线图片",
r,
- e.size ? fZ(e.size) : ""
+ e.size ? pZ(e.size) : ""
].filter(Boolean).join(" · ");
}
// src/react/photo-lightbox/photo-lightbox-dialog.tsx
-var pZ = null, mZ = null, NDe = 0;
-function PDe() {
- 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 mZ = null, hZ = null, MDe = 0;
+function NDe() {
+ return hZ && mZ?.isConnected || (hZ?.unmount(), mZ = document.createElement("div"), mZ.className = "peach-react", mZ.dataset.photoLightboxHost = "", document.body.append(mZ), hZ = (0, zt.createRoot)(mZ)), hZ;
}
-async function hZ(e, t, n) {
+async function gZ(e, t, n) {
if (!t.length || e < 0 || e >= t.length) return;
let r;
try {
- r = await kDe();
+ r = await ODe();
} catch {
window.open(t[e].src, "_blank", "noopener");
return;
}
- let i = PDe();
- (0, Rt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(FDe, {
+ let i = NDe();
+ (0, Rt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(PDe, {
slides: t,
index: e,
Swiper: r,
host: n ?? null
- }, ++NDe)));
+ }, ++MDe)));
}
-function gZ() {
- mZ && (0, Rt.flushSync)(() => mZ.render(null));
+function _Z() {
+ hZ && (0, Rt.flushSync)(() => hZ.render(null));
}
-function FDe({ slides: e, index: t, Swiper: n, host: r }) {
+function PDe({ 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: ""
@@ -63484,7 +63484,7 @@ function FDe({ slides: e, index: t, Swiper: n, host: r }) {
v(this.activeIndex), i(this.activeIndex);
} }
});
- i(t, 0), h.current = ADe(e, a, b);
+ i(t, 0), h.current = kDe(e, a, b);
let m = al(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();
};
@@ -63501,13 +63501,13 @@ function FDe({ 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) : _Z());
};
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 && cZ(m.current);
}, [y]);
let j = e[_], M = j.asset ?? null, ee = async (e) => {
if (!M || !r || e.getAttribute("aria-busy") === "true") return;
@@ -63538,18 +63538,18 @@ function FDe({ slides: e, index: t, Swiper: n, host: r }) {
"data-photo-lightbox": "",
"data-has-strip": i ? "" : void 0,
onCancel: (e) => {
- e.preventDefault(), gZ();
+ e.preventDefault(), _Z();
},
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")) && _Z();
},
children: [
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-photo-close": "",
"aria-label": "关闭",
- onClick: gZ,
+ onClick: _Z,
dangerouslySetInnerHTML: { __html: R("x") }
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -63685,10 +63685,10 @@ function FDe({ slides: e, index: t, Swiper: n, host: r }) {
id: `${a}-title`,
"data-middle-truncate": "",
tabIndex: -1,
- children: jDe(j)
+ children: ADe(j)
}, _), /* @__PURE__ */ (0, I.jsx)("span", {
"data-photo-detail-meta": "",
- children: MDe(j, x[_])
+ children: jDe(j, x[_])
})]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -63726,41 +63726,41 @@ function FDe({ slides: e, index: t, Swiper: n, host: r }) {
});
}
// src/react/entity-body/entity-body-page.tsx
-function IDe(e) {
- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, I.jsx)(LDe, {
+function FDe(e) {
+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, I.jsx)(IDe, {
roster: e.roster,
props: e
- }) : e.view === "videos" ? /* @__PURE__ */ (0, I.jsx)(RDe, { ...e }) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, I.jsx)(VDe, {
+ }) : e.view === "videos" ? /* @__PURE__ */ (0, I.jsx)(LDe, { ...e }) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, I.jsx)(BDe, {
photos: e.photos,
props: e
}, e.photos.revision) : null;
}
-var _Z = WX.people;
-function LDe({ roster: e, props: t }) {
+var vZ = GX.people;
+function IDe({ 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)(vZ), s = (0, F.useMemo)(() => e.people.slice(0, a), [e.people, a]), c = (0, F.useCallback)(async () => {
+ o((e) => e + vZ);
}, []);
- 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)(rZ, {
kind: e.kind,
items: s,
layout: e.layout,
props: i
- }), a < e.people.length ? /* @__PURE__ */ (0, I.jsx)(nY, {
+ }), a < e.people.length ? /* @__PURE__ */ (0, I.jsx)(rY, {
entity: !0,
load: c,
enabled: () => !0
}, a) : null] });
}
-function RDe(e) {
+function LDe(e) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-grid": "",
- children: /* @__PURE__ */ (0, I.jsx)(FG, {
+ children: /* @__PURE__ */ (0, I.jsx)(IG, {
pending: !e.items,
skeletonHtml: e.skeletonHtml,
- children: e.items ? /* @__PURE__ */ (0, I.jsx)(eY, {
+ children: e.items ? /* @__PURE__ */ (0, I.jsx)(tY, {
mode: "entity",
entityKey: e.listScope || `${e.kind}:${e.name}`,
revision: e.revision,
@@ -63782,33 +63782,33 @@ function RDe(e) {
})
});
}
-var zDe = (e) => Array.from({ length: e.n }, (t, n) => ({
+var RDe = (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}`, BDe = (e) => vZ(e) ? {
- src: `/sample-image?${yZ(e)}`,
- thumb: bZ(e),
+})), yZ = (e) => e.sample === !0, bZ = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, xZ = (e) => yZ(e) ? `/sample-thumb?${bZ(e)}` : `/photo-thumb?id=${e.id}`, zDe = (e) => yZ(e) ? {
+ src: `/sample-image?${bZ(e)}`,
+ thumb: xZ(e),
name: e.name,
asset: null,
source: e.source
} : {
src: `/photo?id=${e.id}`,
- thumb: bZ(e),
+ thumb: xZ(e),
name: e.name || "",
asset: e
};
-function VDe({ photos: e, props: t }) {
- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, F.useMemo)(() => [...e.codeSets.flatMap(zDe), ...e.items], [e]), [s, c] = (0, F.useState)(() => /* @__PURE__ */ new Set()), l = (0, F.useCallback)((e) => c((t) => {
+function BDe({ photos: e, props: t }) {
+ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, F.useMemo)(() => [...e.codeSets.flatMap(RDe), ...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(BDe), { revealSource: i.revealSource });
- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, I.jsx)(HDe, {
+ gZ(e, o.map(zDe), { revealSource: i.revealSource });
+ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, I.jsx)(VDe, {
item: e,
index: t,
lost: s.has(t),
@@ -63826,7 +63826,7 @@ function VDe({ 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)(SZ, {
label: e.code,
title: e.name,
meta: [
@@ -63838,7 +63838,7 @@ function VDe({ 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)(SZ, {
label: "本地图片",
meta: `${e.total.toLocaleString()} 张`
}) : null,
@@ -63847,14 +63847,14 @@ function VDe({ 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)(nY, {
+ e.hasMore ? /* @__PURE__ */ (0, I.jsx)(rY, {
entity: !0,
load: i.loadMorePhotos,
enabled: () => a?.() !== !1
}, e.items.length) : null
] });
}
-function xZ({ label: e, title: t, meta: n }) {
+function SZ({ label: e, title: t, meta: n }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-photo-group": "",
children: [
@@ -63871,7 +63871,7 @@ function xZ({ label: e, title: t, meta: n }) {
]
});
}
-function HDe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
+function VDe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
let a = e.name ?? "";
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -63880,7 +63880,7 @@ function HDe({ 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: xZ(e),
alt: a,
loading: "lazy",
decoding: "async",
@@ -63890,9 +63890,9 @@ function HDe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
});
}
// src/react/background-job.ts
-var UDe = 2e3, WDe = (e) => e, GDe = (e, t) => t;
-function SZ(e) {
- let { queryKey: t, jobOf: n = WDe, withJob: r = GDe, idlePollMs: i } = e, [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(null), l = (0, F.useRef)(e);
+var HDe = 2e3, UDe = (e) => e, WDe = (e, t) => t;
+function CZ(e) {
+ let { queryKey: t, jobOf: n = UDe, withJob: r = WDe, 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;
});
@@ -63901,7 +63901,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" ? UDe : i ?? !1;
+ return t !== void 0 && n(t)?.status === "running" ? HDe : i ?? !1;
}
}), d = It({
mutationFn: (e) => l.current.start(e),
@@ -63925,13 +63925,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 KDe(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 wZ = (e) => [...new Set(e)].filter((e) => Number.isSafeInteger(e) && e > 0);
+function GDe(e, t) {
+ return t ? wZ(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 qDe({ sources: e, report: t }) {
- let n = CZ(e), [r, i] = (0, F.useState)(""), { running: a, start: o } = SZ({
+function KDe({ sources: e, report: t }) {
+ let n = wZ(e), [r, i] = (0, F.useState)(""), { running: a, start: o } = CZ({
queryKey: zr,
queryFn: ({ signal: e }) => vi(e),
start: (e) => xi(e),
@@ -63945,20 +63945,20 @@ function qDe({ sources: e, report: t }) {
children: [/* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
disabled: !n.length,
- ...dV(s),
+ ...fV(s),
onClick: () => {
n.length && !s && (i(""), o.mutate(n));
},
children: "检查更新"
- }), r ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ }), r ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
children: r
}) : null]
});
}
// src/react/follow-feed/follow-card.tsx
-var JDe = (e) => Number(e) > 0;
-function wZ({ name: e, actions: t, children: n, ...r }) {
+var qDe = (e) => Number(e) > 0;
+function TZ({ name: e, actions: t, children: n, ...r }) {
return /* @__PURE__ */ (0, I.jsx)("a", {
...r,
href: Pn("creator", e),
@@ -63968,15 +63968,15 @@ function wZ({ name: e, actions: t, children: n, ...r }) {
children: n
});
}
-var TZ = ({ provider: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var EZ = ({ provider: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-nothumb": "",
- dangerouslySetInnerHTML: { __html: lG(e) }
+ dangerouslySetInnerHTML: { __html: uG(e) }
});
-function YDe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a, retryKey: o }) {
+function JDe({ 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)(EZ, { provider: i }) : /* @__PURE__ */ (0, I.jsx)("img", {
src: l ? t : e,
alt: "",
loading: "lazy",
@@ -63995,8 +63995,8 @@ function YDe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a
} : void 0
});
}
-function XDe(e) {
- let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = _a(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) => Vbe(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? ya(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = xa({
+function YDe(e) {
+ let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = _a(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) => Bbe(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? ya(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = xa({
cover: p,
coverFace: (f?.thumb_url ? f : u).face,
stack: t.stack,
@@ -64004,7 +64004,7 @@ function XDe(e) {
limit: 9
}), S = (0, F.useRef)(x.faces);
S.current = x.faces;
- let C = uK({
+ let C = dK({
load: async () => S.current,
canFlip: () => S.current.length > 1 && l.canFlip(),
referrerPolicy: "no-referrer"
@@ -64012,7 +64012,7 @@ function XDe(e) {
w.current = C.onPointerLeave;
let T = (0, F.useCallback)((e) => {
e && (e._stopHover = () => w.current());
- }, []), E = mG(u, n, i), D = uG(u), O = u.resource_provider || u.provider, k = (u.tags || []).slice(0, 3), A = _G(u, i), j = gG(t, u), M = u.status === "saved", ee = (e) => {
+ }, []), 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.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();
@@ -64027,7 +64027,7 @@ function XDe(e) {
"data-collection": x.isMix ? "" : void 0,
"data-selected": a ? "" : void 0,
onClick: ee,
- onMouseDown: tK,
+ onMouseDown: nK,
onMouseEnter: C.onPointerEnter,
onMouseLeave: C.onPointerLeave,
children: [
@@ -64041,7 +64041,7 @@ function XDe(e) {
}), /* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-pic": "",
children: [
- p ? /* @__PURE__ */ (0, I.jsx)(YDe, {
+ p ? /* @__PURE__ */ (0, I.jsx)(JDe, {
src: p,
fallback: m,
width: _?.width,
@@ -64049,7 +64049,7 @@ function XDe(e) {
provider: O,
onLearn: v,
retryKey: e.retryKey
- }, p) : /* @__PURE__ */ (0, I.jsx)(TZ, { provider: O }),
+ }, p) : /* @__PURE__ */ (0, I.jsx)(EZ, { provider: O }),
x.faces.length > 1 ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-mix-faces": "",
hidden: !C.faces.length,
@@ -64069,7 +64069,7 @@ function XDe(e) {
"data-media-badge": "",
title: u.provider_label || u.provider,
"aria-label": `来源:${u.provider_label || u.provider}`,
- dangerouslySetInnerHTML: { __html: lG(u.provider, u.provider_label) }
+ dangerouslySetInnerHTML: { __html: uG(u.provider, u.provider_label) }
}), j ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: j }
@@ -64082,7 +64082,7 @@ function XDe(e) {
},
dangerouslySetInnerHTML: { __html: R("check") }
}) : null,
- JDe(u.duration) ? /* @__PURE__ */ (0, I.jsx)("span", {
+ qDe(u.duration) ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-duration": "",
children: Jn(u.duration)
}) : null,
@@ -64153,7 +64153,7 @@ function XDe(e) {
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-meta": "",
- children: [E.entityName ? /* @__PURE__ */ (0, I.jsx)(wZ, {
+ children: [E.entityName ? /* @__PURE__ */ (0, I.jsx)(TZ, {
name: E.entityName,
actions: l,
"data-media-avatar": "",
@@ -64171,31 +64171,31 @@ function XDe(e) {
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-media-title": "",
- dangerouslySetInnerHTML: { __html: hG(t, u) + z(D) }
+ dangerouslySetInnerHTML: { __html: gG(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)(TZ, {
name: E.entityName,
actions: l,
"data-media-who": "",
"data-follow-author": "",
title: E.author,
- children: /* @__PURE__ */ (0, I.jsx)(LG, { name: E.author })
+ children: /* @__PURE__ */ (0, I.jsx)(RG, { name: E.author })
}) : /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-who": "",
"data-follow-author": "",
title: E.author,
- children: /* @__PURE__ */ (0, I.jsx)(LG, { name: E.author })
+ children: /* @__PURE__ */ (0, I.jsx)(RG, { name: E.author })
}),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-media-facts": "",
- children: /* @__PURE__ */ (0, I.jsx)(RG, {
+ children: /* @__PURE__ */ (0, I.jsx)(zG, {
value: u.published_at || "",
- label: bG(u),
- title: yG(u)
+ label: xG(u),
+ title: bG(u)
})
}),
E.credited ? /* @__PURE__ */ (0, I.jsx)("span", {
@@ -64205,10 +64205,10 @@ function XDe(e) {
}) : null
]
}),
- e.variant === "next" ? e.reason ? /* @__PURE__ */ (0, I.jsx)(BG, {
+ e.variant === "next" ? e.reason ? /* @__PURE__ */ (0, I.jsx)(VG, {
reasons: e.reason.reasons,
tags: e.reason.tags.map((e) => Rl(e))
- }) : null : /* @__PURE__ */ (0, I.jsx)(zG, {
+ }) : null : /* @__PURE__ */ (0, I.jsx)(BG, {
"data-follow-labels": "",
tags: k,
label: Rl,
@@ -64233,9 +64233,9 @@ function XDe(e) {
]
});
}
-var EZ = (0, F.memo)(XDe);
+var DZ = (0, F.memo)(YDe);
// src/react/components/use-masonry-grid.ts
-function ZDe(e, t) {
+function XDe(e, t) {
let n = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
let t = n.current;
@@ -64270,37 +64270,37 @@ function ZDe(e, t) {
}, [e, t]), n;
}
// src/react/follow-manage/manage-route.ts
-var DZ = [
+var OZ = [
["list", "关注列表"],
["add", "添加关注"],
["tags", "标签管理"]
-], OZ = DZ.map(([e]) => e);
-function kZ(e) {
+], kZ = OZ.map(([e]) => e);
+function AZ(e) {
let t = new URLSearchParams(e), n = t.get("tab");
return {
- tab: OZ.find((e) => e === n) || "list",
+ tab: kZ.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 jZ(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 MZ(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" : jZ({
+ tab: t || AZ(e).tab,
page: 1,
sort: "",
dir: ""
});
}
// src/react/follow-feed/follow-feed-page.tsx
-var MZ = () => /* @__PURE__ */ (0, I.jsx)("span", {
+var NZ = () => /* @__PURE__ */ (0, I.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), QDe = lV("settings"), NZ = lV("chevron-down"), $De = lV("history"), eOe = lV("arrow-up"), tOe = lV("arrow-down"), nOe = [[
+}), ZDe = uV("settings"), PZ = uV("chevron-down"), QDe = uV("history"), $De = uV("arrow-up"), eOe = uV("arrow-down"), tOe = [[
"fixed",
"固定比例",
"layout-grid"
@@ -64309,7 +64309,7 @@ var MZ = () => /* @__PURE__ */ (0, I.jsx)("span", {
"瀑布流",
"columns-2"
]];
-function rOe(e, t, n) {
+function nOe(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) => {
@@ -64357,7 +64357,7 @@ function rOe(e, t, n) {
n
]);
}
-function iOe(e) {
+function rOe(e) {
let { view: t, seed: n, revision: r, actions: i } = e, a = Lt(ia(t, r)), o = Ft({
queryKey: aa,
queryFn: ({ signal: e }) => oa(e)
@@ -64365,7 +64365,7 @@ function iOe(e) {
sources: s?.sources || [],
aliases: s?.author_aliases || [],
credentials: c
- }), [s, c]), u = rOe(s, t, n), d = a.isPending || a.isPlaceholderData, f = !d && !!s;
+ }), [s, c]), u = nOe(s, t, n), d = a.isPending || a.isPlaceholderData, f = !d && !!s;
(0, F.useEffect)(() => {
ym(() => location.pathname === "/follow", document.querySelector("#stats [data-filter-frame]"), { pending: d });
}, [
@@ -64399,10 +64399,10 @@ function iOe(e) {
p,
i
]);
- let m = oOe(e, !!s);
+ let m = aOe(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)(PG, {
+ children: [/* @__PURE__ */ (0, I.jsx)(FZ, {}), /* @__PURE__ */ (0, I.jsx)(FG, {
message: xn(a.error),
onRetry: () => void a.refetch()
})]
@@ -64415,7 +64415,7 @@ function iOe(e) {
author: u.author,
provider: u.provider
}, {
- authors: new Map([...u.authorSources].map(([e, t]) => [e, dG(t, l)])),
+ authors: new Map([...u.authorSources].map(([e, t]) => [e, fG(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);
@@ -64424,7 +64424,7 @@ function iOe(e) {
ref: m.host,
"data-follow-progress": ""
}, m.generation),
- !m.busy && m.report ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ !m.busy && m.report ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "neutral",
title: "检查结果",
children: m.report
@@ -64433,7 +64433,7 @@ function iOe(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)(Y, {
+ /* @__PURE__ */ (0, I.jsx)(FZ, { children: u.sources.length ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "primary",
"data-follow-recheck": "",
"aria-label": "检查每个来源的更新",
@@ -64444,20 +64444,20 @@ function iOe(e) {
dangerouslySetInnerHTML: { __html: Vs("检查中") }
}) : "检查更新"
}) : null }),
- /* @__PURE__ */ (0, I.jsx)(sOe, {
+ /* @__PURE__ */ (0, I.jsx)(oOe, {
facets: u,
pressed: u.author,
context: l,
props: e,
onPick: (e) => h({ author: u.author === e ? "" : e })
}),
- /* @__PURE__ */ (0, I.jsx)(cOe, {
+ /* @__PURE__ */ (0, I.jsx)(sOe, {
rows: u.workRows,
pressed: t.work,
props: e,
onPick: (e) => h({ work: t.work === e ? "" : e })
}),
- /* @__PURE__ */ (0, I.jsx)(lOe, {
+ /* @__PURE__ */ (0, I.jsx)(cOe, {
facets: u,
view: t,
total: _,
@@ -64465,7 +64465,7 @@ function iOe(e) {
props: e,
route: h
}),
- /* @__PURE__ */ (0, I.jsx)(uOe, {
+ /* @__PURE__ */ (0, I.jsx)(lOe, {
conditions: g,
onDrop: (e) => i.route(Da(t, e)),
onClear: () => h({
@@ -64477,8 +64477,8 @@ function iOe(e) {
durMax: 0
})
}),
- u.broken.length ? /* @__PURE__ */ (0, I.jsx)(dOe, { count: u.broken.length }) : null,
- /* @__PURE__ */ (0, I.jsx)(fOe, {
+ u.broken.length ? /* @__PURE__ */ (0, I.jsx)(uOe, { count: u.broken.length }) : null,
+ /* @__PURE__ */ (0, I.jsx)(dOe, {
retryKey: a.dataUpdatedAt,
pending: d,
facets: u,
@@ -64501,14 +64501,14 @@ function iOe(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)(nY, {
+ children: s.groups.length < 500 ? /* @__PURE__ */ (0, I.jsxs)(rY, {
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)(aOe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(PZ, { className: "size-(--icon-inline)" }), "加载更多"]
+ }, a.data?.pages.length) : /* @__PURE__ */ (0, I.jsx)(iOe, {
busy: a.isFetchingNextPage,
error: a.isFetchNextPageError ? xn(a.error) : "",
load: () => {
@@ -64519,7 +64519,7 @@ function iOe(e) {
"data-follow-page-action": "",
children: [/* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
- leadingIcon: m.olderBusy ? void 0 : $De,
+ leadingIcon: m.olderBusy ? void 0 : QDe,
"data-follow-older": "",
"aria-busy": m.busy || void 0,
onClick: () => void m.start(!0),
@@ -64537,7 +64537,7 @@ function iOe(e) {
})
] });
}
-function PZ({ children: e }) {
+function FZ({ children: e }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-follow-head": "",
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
@@ -64545,30 +64545,30 @@ function PZ({ children: e }) {
children: "关注"
}), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-follow-head-actions": "",
- children: [/* @__PURE__ */ (0, I.jsx)(hL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(gL, {
variant: "secondary",
- leadingIcon: QDe,
+ leadingIcon: ZDe,
"data-follow-manage": "",
- href: FZ(),
+ href: IZ(),
children: "管理关注"
}), e]
})]
});
}
-function aOe({ busy: e, error: t, load: n }) {
+function iOe({ 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)(PG, {
+ children: [/* @__PURE__ */ (0, I.jsx)(PZ, { className: "size-(--icon-inline)" }), "加载更多"]
+ }), t ? /* @__PURE__ */ (0, I.jsx)(FG, {
message: t,
onRetry: n
}) : null] });
}
-function oOe(e, t) {
+function aOe(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
@@ -64630,12 +64630,12 @@ function oOe(e, t) {
olderBusy: c === "older" || f && o
};
}
-function sOe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
+function oOe({ 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) => dG(e.authorSources.get(t) || [], n);
+ let o = (t) => fG(e.authorSources.get(t) || [], n);
return e.authorOrder.length ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-authors-bar": "",
children: /* @__PURE__ */ (0, I.jsx)("div", {
@@ -64643,14 +64643,14 @@ function sOe({ 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 = fG(a), c = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ let a = e.authorSources.get(n) || [], s = pG(a), c = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-ring": "",
- dangerouslySetInnerHTML: { __html: pG(a, o(n)) }
+ dangerouslySetInnerHTML: { __html: mG(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)(TZ, {
name: s,
actions: r.actions,
"data-follow-author": n,
@@ -64667,7 +64667,7 @@ function sOe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
})
}) : null;
}
-function cOe({ rows: e, pressed: t, props: n, onPick: r }) {
+function sOe({ rows: e, pressed: t, props: n, onPick: r }) {
let i = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
n.helpers.wireDrag(i.current);
@@ -64688,13 +64688,13 @@ function cOe({ rows: e, pressed: t, props: n, onPick: r }) {
}, e[0]))
}) : null;
}
-function lOe({ 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 = pL(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = pL(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
+function cOe({ 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}`);
(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)(cL, {
+ return /* @__PURE__ */ (0, I.jsx)(lL, {
label: "筛选与排序",
topLabel: m ? "媒体与关注筛选" : "关注筛选",
attrs: {
@@ -64746,7 +64746,7 @@ function lOe({ 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)(NZ, {})] }) : null, /* @__PURE__ */ (0, I.jsxs)("div", {
ref: f,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -64766,7 +64766,7 @@ function lOe({ 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)(NZ, {}) : null]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: p,
"data-entity-tags": "",
@@ -64779,10 +64779,10 @@ function lOe({ 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: lG(t, n) }
+ dangerouslySetInnerHTML: { __html: uG(t, n) }
}, t)),
- _.length && e.tagRows.length ? /* @__PURE__ */ (0, I.jsx)(MZ, {}) : null,
- e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, I.jsxs)(lL, {
+ _.length && e.tagRows.length ? /* @__PURE__ */ (0, I.jsx)(NZ, {}) : null,
+ e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, I.jsxs)(uL, {
"data-follow-tag": n,
"data-entity-press": "",
"data-tag-cat": `r34-${Oa(e.groups, n)}`,
@@ -64800,23 +64800,23 @@ function lOe({ 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)(tL, {
+ children: /* @__PURE__ */ (0, I.jsx)(nL, {
text: `${n.toLocaleString()} 项更新 · 显示 ${e.visible.length.toLocaleString()}`,
busy: r
})
}),
- /* @__PURE__ */ (0, I.jsx)(wV, {
+ /* @__PURE__ */ (0, I.jsx)(TV, {
currentHref: () => location.pathname + location.search,
kind: "creator"
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(OG, { onPress: s.shuffle }),
- y ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(DG, {
+ /* @__PURE__ */ (0, I.jsx)(kG, { onPress: s.shuffle }),
+ y ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(OG, {
label: "图片布局",
value: i.photoLayout,
- options: nOe,
+ options: tOe,
onChange: (e) => s.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")
}), /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
@@ -64846,9 +64846,9 @@ function lOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
let n = Ca(e, t.sort, t.dir);
n && a(n);
},
- children: [n, r ? /* @__PURE__ */ (0, I.jsx)(iG, {
- a: eOe,
- b: tOe,
+ children: [n, r ? /* @__PURE__ */ (0, I.jsx)(aG, {
+ a: $De,
+ b: eOe,
state: t.dir === "asc" ? "a" : "b",
className: "size-(--icon-inline)"
}) : null]
@@ -64859,7 +64859,7 @@ function lOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
] })
});
}
-function uOe({ conditions: e, onDrop: t, onClear: n }) {
+function lOe({ conditions: e, onDrop: t, onClear: n }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-combo": "",
"data-follow-combo": "",
@@ -64884,21 +64884,21 @@ function uOe({ conditions: e, onDrop: t, onClear: n }) {
})] }) : null
});
}
-function dOe({ count: e }) {
+function uOe({ 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(IZ())}" data-follow-manage>管理关注</a>看原因。</span></div>` }
});
}
-var FZ = () => jZ(window.location.search);
-function fOe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a, checkAction: o }) {
+var IZ = () => MZ(window.location.search);
+function dOe({ 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)(FG, {
+ children: /* @__PURE__ */ (0, I.jsx)(IG, {
pending: e,
skeletonHtml: () => c.listSkeletonHtml(s.media),
- children: e ? null : /* @__PURE__ */ (0, I.jsx)(pOe, {
+ children: e ? null : /* @__PURE__ */ (0, I.jsx)(fOe, {
facets: t,
data: n,
context: r,
@@ -64910,29 +64910,29 @@ function fOe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a
})
});
}
-function pOe({ 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 fOe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a, checkAction: o }) {
+ let { view: s, actions: c } = r, l = RZ(r), u = i ? {
"data-size": r.photoSize,
"data-layout": r.photoLayout,
"data-images-only": String(r.imagesOnly)
- } : {}, d = ZDe(i && r.photoLayout === "masonry", `${r.photoSize}:${e.visible.map((e) => e.primary.id).join(",")}`), f;
+ } : {}, d = XDe(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)(DZ, {
group: t,
authorSources: o,
media: s.media,
retryKey: a,
context: n,
- selected: r.selected.has(IZ(t, s)),
+ selected: r.selected.has(LZ(t, s)),
selectMode: r.selectMode,
- busy: l.busy.get(IZ(t, s)) || "",
- failure: l.failures.get(IZ(t, s)) || "",
+ busy: l.busy.get(LZ(t, s)) || "",
+ failure: l.failures.get(LZ(t, s)) || "",
actions: c,
onStatus: l.status,
onSave: l.save
}, `${u}:${s.media}`);
- }) : /* @__PURE__ */ (0, I.jsx)(mOe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(pOe, {
data: t,
filtered: !!(s.status || e.author || e.provider || s.work || s.tags.length || s.durMin || s.durMax),
checkAction: o,
@@ -64955,22 +64955,22 @@ function pOe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a,
children: f
});
}
-function IZ(e, t) {
+function LZ(e, t) {
return _a(e, t.media).id;
}
-function mOe({ data: e, filtered: t, clear: n, checkAction: r }) {
+function pOe({ 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)(sV, {
- icon: lV(i ? "search-x" : "rss"),
+ children: /* @__PURE__ */ (0, I.jsx)(cV, {
+ icon: uV(i ? "search-x" : "rss"),
title: i ? "当前筛选下没有更新" : a ? "还没有更新" : "还没有关注任何来源",
actions: i ? /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
onClick: n,
children: "清除筛选"
- }) : a ? r : /* @__PURE__ */ (0, I.jsx)(hL, {
+ }) : a ? r : /* @__PURE__ */ (0, I.jsx)(gL, {
size: "small",
href: "/subscriptions?tab=add",
children: "添加关注"
@@ -64979,12 +64979,12 @@ function mOe({ data: e, filtered: t, clear: n, checkAction: r }) {
})
});
}
-var hOe = {
+var mOe = {
new: "已恢复未看",
seen: "已标记已看",
ignored: "已忽略"
};
-function LZ(e) {
+function RZ(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 = ia(t, n).queryKey, l = (e, t, n) => n((n) => {
let r = new Map(n);
return t ? r.set(e, t) : r.delete(e), r;
@@ -65007,7 +65007,7 @@ function LZ(e) {
to: t
}),
onSuccess: (e, { id: t, to: n, was: i }) => {
- u(t, n), d(), r.toast(hOe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
+ u(t, n), d(), r.toast(mOe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
await V(Mr, {
item: t,
to: i
@@ -65052,9 +65052,9 @@ function LZ(e) {
};
}
// src/react/entity-body/entity-online.tsx
-function gOe(e) {
+function hOe(e) {
let { result: t, data: n, media: r, helpers: i } = e, a = t.isPending || t.isPlaceholderData;
- return !n && t.isError ? /* @__PURE__ */ (0, I.jsx)(PG, {
+ return !n && t.isError ? /* @__PURE__ */ (0, I.jsx)(FG, {
message: xn(t.error),
onRetry: () => {
t.refetch();
@@ -65062,13 +65062,13 @@ function gOe(e) {
}) : /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-list-body": "",
"data-entity-online": "",
- children: /* @__PURE__ */ (0, I.jsxs)(FG, {
+ children: /* @__PURE__ */ (0, I.jsxs)(IG, {
pending: a,
skeletonHtml: () => i.listSkeletonHtml(r),
- children: [a || !n ? null : /* @__PURE__ */ (0, I.jsx)(_Oe, {
+ children: [a || !n ? null : /* @__PURE__ */ (0, I.jsx)(gOe, {
...e,
data: n
- }), !a && n?.has_more ? /* @__PURE__ */ (0, I.jsx)(nY, {
+ }), !a && n?.has_more ? /* @__PURE__ */ (0, I.jsx)(rY, {
entity: !0,
enabled: () => e.canLoadMore?.() !== !1,
load: async () => {
@@ -65078,8 +65078,8 @@ function gOe(e) {
})
});
}
-function _Oe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c, clearFilters: l }) {
- let u = LZ({
+function gOe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c, clearFilters: l }) {
+ let u = RZ({
view: e,
revision: 0,
actions: c
@@ -65097,7 +65097,7 @@ function _Oe({ 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 = _a(e, t).id, r = d.byId.get(e.primary?.source_id)?.author_key;
- return /* @__PURE__ */ (0, I.jsx)(EZ, {
+ return /* @__PURE__ */ (0, I.jsx)(DZ, {
group: e,
authorSources: r && d.byAuthor.get(r) || [],
media: t,
@@ -65110,11 +65110,11 @@ function _Oe({ 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)(vOe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(_Oe, {
searched: !!(n.groups || []).length || !!(e.status || e.provider || e.tags.length || e.durMin || e.durMax),
clear: l,
actions: c,
- sources: KDe(n.sources || [], e.author)
+ sources: GDe(n.sources || [], e.author)
});
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-list": "",
@@ -65123,21 +65123,21 @@ function _Oe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
children: m
});
}
-function vOe({ searched: e, clear: t, actions: n, sources: r }) {
+function _Oe({ searched: e, clear: t, actions: n, sources: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-empty": "",
className: "contents",
- children: /* @__PURE__ */ (0, I.jsx)(sV, {
- icon: lV(e ? "search-x" : "rss"),
+ children: /* @__PURE__ */ (0, I.jsx)(cV, {
+ icon: uV(e ? "search-x" : "rss"),
title: e ? "当前筛选下没有更新" : "还没有抓到更新",
actions: e ? /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
onClick: t,
children: "清除筛选"
- }) : r.length ? /* @__PURE__ */ (0, I.jsx)(qDe, {
+ }) : r.length ? /* @__PURE__ */ (0, I.jsx)(KDe, {
sources: r,
report: n.checkReport
- }) : /* @__PURE__ */ (0, I.jsx)(hL, {
+ }) : /* @__PURE__ */ (0, I.jsx)(gL, {
size: "small",
href: "/subscriptions?tab=add",
children: "添加关注"
@@ -65146,7 +65146,7 @@ function vOe({ searched: e, clear: t, actions: n, sources: r }) {
})
});
}
-function RZ(e) {
+function zZ(e) {
return {
x0: 0,
y0: 0,
@@ -65154,7 +65154,7 @@ function RZ(e) {
y1: e.height
};
}
-function zZ(e) {
+function BZ(e) {
return {
x0: Math.round(e.x0),
y0: Math.round(e.y0),
@@ -65162,40 +65162,40 @@ function zZ(e) {
y1: Math.round(e.y1)
};
}
-function BZ(e) {
+function VZ(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 HZ(e, t) {
+ if (!VZ(e)) return {
x0: 0,
y0: 0,
x1: 0,
y1: 0
};
- if (t == null || !(t > 0)) return RZ(e);
+ if (t == null || !(t > 0)) return zZ(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 BZ({
x0: i,
y0: a,
x1: i + n,
y1: a + r
});
}
-function yOe(e, t) {
- if (!BZ(e) || !(t > 0)) return RZ(e);
+function vOe(e, t) {
+ if (!VZ(e) || !(t > 0)) return zZ(e);
let n = Math.min(e.width, e.height * t);
- return zZ({
+ return BZ({
x0: e.width - n,
y0: 0,
x1: e.width,
y1: e.height
});
}
-function bOe(e, t, n) {
- if (!BZ(t) || !(n > 0)) return RZ(t);
- let r = HZ(e, t), i = VZ({
+function yOe(e, t, n) {
+ if (!VZ(t) || !(n > 0)) return zZ(t);
+ let r = UZ(e, t), i = HZ({
width: r.x1 - r.x0,
height: r.y1 - r.y0
}, n);
@@ -65206,8 +65206,8 @@ function bOe(e, t, n) {
y1: r.y0 + i.y1
};
}
-function HZ(e, t, n = null, r = "width") {
- if (!BZ(t)) return {
+function UZ(e, t, n = null, r = "width") {
+ if (!VZ(t)) return {
x0: 0,
y0: 0,
x1: 0,
@@ -65216,43 +65216,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 BZ({
x0: s,
y0: c,
x1: s + a,
y1: c + o
});
}
-function UZ(e, t, n, r) {
+function WZ(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 BZ({
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 GZ(e, t, n, r = null) {
+ if (!VZ(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 UZ({
x0: i - o / 2,
y0: a - s / 2,
x1: i + o / 2,
y1: a + s / 2
}, n, r);
}
-function xOe(e, t, n, r, i = null) {
+function bOe(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 UZ(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
-function SOe(e, t) {
- return BZ(t) ? {
+function xOe(e, t) {
+ return VZ(t) ? {
left: e.x0 / t.width * 100,
top: e.y0 / t.height * 100,
width: (e.x1 - e.x0) / t.width * 100,
@@ -65264,8 +65264,8 @@ function SOe(e, t) {
height: 0
};
}
-function COe(e, t) {
- if (!BZ(t)) return {
+function SOe(e, t) {
+ if (!VZ(t)) return {
size: "cover",
position: "50% 50%"
};
@@ -65275,7 +65275,7 @@ function COe(e, t) {
position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`
};
}
-function wOe(e, t) {
+function COe(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}%`,
@@ -65284,15 +65284,15 @@ function wOe(e, t) {
height: `${t.height / r * 100}%`
};
}
-function GZ(e, t, n) {
+function KZ(e, t, n) {
return t > 0 ? e * n / t : 0;
}
-function TOe(e, t) {
+function wOe(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 EOe = .02, KZ = 1.08;
-function qZ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
+var TOe = .02, qZ = 1.08;
+function JZ({ 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);
@@ -65311,8 +65311,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: KZ(e, n.clientWidth, r.width),
+ dy: KZ(t, n.clientHeight, r.height)
};
}, [r]);
function m(e) {
@@ -65329,22 +65329,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(xOe(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(WZ(n.box, o.dx, o.dy, r)) : i(bOe(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) * EOe), o = {
+ let a = Math.max(1, (n.x1 - n.x0) * TOe), 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(WZ(n, o[e.key][0], o[e.key][1], r))) : (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(GZ(n, e.key === "-" ? 1 / qZ : qZ, r, t)));
}
- let v = n && r ? SOe(HZ(n, r, t), r) : null, y = v ? TOe(v, d) : !1, b = v ? {
+ let v = n && r ? xOe(UZ(n, r, t), r) : null, y = v ? wOe(v, d) : !1, b = v ? {
"--crop-l": `${v.left}%`,
"--crop-t": `${v.top}%`,
"--crop-w": `${v.width}%`,
@@ -65363,7 +65363,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({
+ VZ({
width: t.naturalWidth,
height: t.naturalHeight
}) && a({
@@ -65402,7 +65402,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(GZ(n, e.deltaY > 0 ? qZ : 1 / qZ, 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", {
@@ -65424,13 +65424,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 DOe = "/api/avatar-choices", JZ = "/api/avatar-pick", OOe = "/api/avatar-code-cover", YZ = "/api/avatar-frame", kOe = "/avatar-choice", XZ = (e, t) => [
+var EOe = "/api/avatar-choices", YZ = "/api/avatar-pick", DOe = "/api/avatar-code-cover", XZ = "/api/avatar-frame", OOe = "/avatar-choice", ZZ = (e, t) => [
"avatar-choices",
e,
t
-], ZZ = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, QZ = (e, t, n, r = "") => `${kOe}${ZZ(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), $Z = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", AOe = (e, t, n) => B(DOe + ZZ(e, t), n), jOe = (e) => V(OOe, { code: e });
-async function MOe(e, t, n) {
- let r = await V(YZ, {
+], QZ = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, $Z = (e, t, n, r = "") => `${OOe}${QZ(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), eQ = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", kOe = (e, t, n) => B(EOe + QZ(e, t), n), AOe = (e) => V(DOe, { code: e });
+async function jOe(e, t, n) {
+ let r = await V(XZ, {
kind: e,
id: t,
ref: n.ref
@@ -65443,12 +65443,12 @@ async function MOe(e, t, n) {
bases: r.bases
};
}
-var NOe = (e, t, n) => V(YZ, {
+var MOe = (e, t, n) => V(XZ, {
kind: e,
id: t,
url: n
-}), POe = (e, t, n) => eQ(`${YZ}${ZZ(e, t)}&name=${encodeURIComponent(n.name)}`, n);
-async function eQ(e, t) {
+}), NOe = (e, t, n) => tQ(`${XZ}${QZ(e, t)}&name=${encodeURIComponent(n.name)}`, n);
+async function tQ(e, t) {
let n = await fetch(e, {
method: "POST",
credentials: "same-origin",
@@ -65457,17 +65457,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 nQ(e, t, n) {
let r = t.width === e.width && t.height === e.height;
- return e.focus && r ? bOe(e.focus, t, n) : VZ(t, n);
+ return e.focus && r ? yOe(e.focus, t, n) : HZ(t, n);
}
-var FOe = (e) => e.crop && BZ({
+var POe = (e) => e.crop && VZ({
width: e.width,
height: e.height
});
-async function IOe(e, t, n) {
+async function FOe(e, t, n) {
if (!("file" in n)) {
- await V(JZ, {
+ await V(YZ, {
kind: e,
id: t,
...n
@@ -65480,19 +65480,19 @@ async function IOe(e, t, n) {
i.x1,
i.y1
].join(",")}` : "";
- await eQ(`${JZ}${ZZ(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);
+ await tQ(`${YZ}${QZ(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);
}
-var nQ = 2;
-function LOe(e, t) {
+var rQ = 2;
+function IOe(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, rQ).join("」「")}」`}${n.length > rQ ? `等 ${n.length.toLocaleString()} 个名字` : ""}找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:还没有备选图片,可输入番号、图片地址或从本机选择。`;
}
-var ROe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
-function zOe(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 ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${ROe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
+var LOe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
+function ROe(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 ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${LOe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var rQ = (e) => e.cast > 1, BOe = (e) => rQ(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, VOe = {
+var iQ = (e) => e.cast > 1, zOe = (e) => iQ(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, BOe = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
@@ -65502,7 +65502,7 @@ var rQ = (e) => e.cast > 1, BOe = (e) => rQ(e) ? `${e.label}:${e.cast.toLocale
social: "社媒头像",
online: "在线作品"
};
-function HOe(e) {
+function VOe(e) {
if (e.startsWith("follow:")) {
let t = e.split(":")[2];
return t === "cover" ? "作品封面" : `内容图片 ${Number(t.replace("image", "") || 0) + 1}`;
@@ -65513,19 +65513,19 @@ function HOe(e) {
let n = Number(t.replace("cell", ""));
return Number.isFinite(n) ? `第 ${n + 1} 格` : t;
}
-var UOe = (e) => `${VOe[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}` : ""), WOe = 8, GOe = 3 / 4;
-async function KOe(e, t, n) {
+var HOe = (e) => `${BOe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (iQ(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), UOe = 8, WOe = 3 / 4;
+async function GOe(e, t, n) {
switch (n.via) {
- case "choice": return { choice: await MOe(e, t, n.choice) };
- case "code": return { choice: await jOe(n.code) };
- case "url": return { choice: await NOe(e, t, n.url) };
+ case "choice": return { choice: await jOe(e, t, n.choice) };
+ case "code": return { choice: await AOe(n.code) };
+ case "url": return { choice: await MOe(e, t, n.url) };
case "file": return {
- choice: await POe(e, t, n.file),
+ choice: await NOe(e, t, n.file),
file: n.file
};
}
}
-function qOe({ kind: e, entityId: t, name: n, onPicked: r }) {
+function KOe({ 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",
@@ -65535,17 +65535,17 @@ function qOe({ 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)(lge, {
+ children: /* @__PURE__ */ (0, I.jsx)(cge, {
"aria-hidden": !0,
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, I.jsx)(iV, {
+ }), /* @__PURE__ */ (0, I.jsx)(aV, {
isOpen: i,
onOpenChange: a,
width: "avatar-picker",
label: "更换头像",
- children: /* @__PURE__ */ (0, I.jsx)(JOe, {
+ children: /* @__PURE__ */ (0, I.jsx)(qOe, {
kind: e,
entityId: t,
name: n,
@@ -65554,24 +65554,24 @@ function qOe({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function JOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, F.useRef)(null), o = IV(), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(null), p = XZ(e, t), m = (0, F.useRef)(!1), h = Ft({
+function qOe({ 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 = ZZ(e, t), m = (0, F.useRef)(!1), h = Ft({
queryKey: p,
- queryFn: ({ signal: n }) => AOe(e, t, n),
+ queryFn: ({ signal: n }) => kOe(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: ZZ(e, t) });
}, [e, t]);
let g = It({
- mutationFn: (n) => IOe(e, t, n),
+ mutationFn: (n) => FOe(e, t, n),
onSuccess: () => {
m.current = !0, i(), r();
}
}), _ = It({
- mutationFn: (n) => KOe(e, t, n),
+ mutationFn: (n) => GOe(e, t, n),
onMutate: () => {
g.reset();
},
@@ -65592,39 +65592,39 @@ function JOe({ 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 ? "" : zOe(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 ? "" : ROe(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)(aV, { children: /* @__PURE__ */ (0, I.jsx)(JB, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, I.jsx)(oV, { children: /* @__PURE__ */ (0, I.jsx)(YB, { 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)(LL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(RL, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: d ? "框出头像那一块" : "更换头像"
- }), !d && S.length ? /* @__PURE__ */ (0, I.jsxs)(HU, {
+ }), !d && S.length ? /* @__PURE__ */ (0, I.jsxs)(UU, {
color: "soft",
children: [S.length.toLocaleString(), " 张可选"]
}) : null]
}),
/* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: d ? BOe(d.choice) : LOe(n, x)
+ children: d ? zOe(d.choice) : IOe(n, x)
}),
- T ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ T ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "neutral",
children: T
}) : null,
- C ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ C ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
action: E ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
- ...dV(h.isFetching),
+ ...fV(h.isFetching),
onClick: () => {
h.isFetching || h.refetch();
},
@@ -65634,14 +65634,14 @@ function JOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(rL, {
- icon: xB,
+ /* @__PURE__ */ (0, I.jsx)(iL, {
+ icon: SB,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
- }), d ? /* @__PURE__ */ (0, I.jsx)(XOe, {
+ }), d ? /* @__PURE__ */ (0, I.jsx)(YOe, {
kind: e,
entityId: t,
choice: d.choice,
@@ -65661,7 +65661,7 @@ function JOe({ 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: WOe }, (e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: h.isPending ? Array.from({ length: UOe }, (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",
@@ -65674,8 +65674,8 @@ function JOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: UOe(n),
- ...dV(w),
+ title: HOe(n),
+ ...fV(w),
onClick: () => {
w || (n.crop ? (g.reset(), _.reset(), f({ choice: n })) : _.mutate({
via: "choice",
@@ -65684,8 +65684,8 @@ function JOe({ 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)(YOe, {
- src: QZ(e, t, n.ref, $Z(n, n.ref)),
+ /* @__PURE__ */ (0, I.jsx)(JOe, {
+ src: $Z(e, t, n.ref, eQ(n, n.ref)),
choice: n
}),
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -65694,15 +65694,15 @@ function JOe({ 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)(HU, {
+ children: /* @__PURE__ */ (0, I.jsx)(UU, {
variant: "caption",
color: "gray",
children: "在用"
})
}) : null,
- rQ(n) ? /* @__PURE__ */ (0, I.jsx)("span", {
+ iQ(n) ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, I.jsxs)(HU, {
+ children: /* @__PURE__ */ (0, I.jsxs)(UU, {
variant: "caption",
color: "gray",
children: [n.cast.toLocaleString(), " 人"]
@@ -65724,7 +65724,7 @@ function JOe({ 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)(rV, {
+ children: /* @__PURE__ */ (0, I.jsx)(iV, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
@@ -65734,7 +65734,7 @@ function JOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
type: "submit",
variant: "secondary",
disabled: !l.trim(),
- ...dV(v("code")),
+ ...fV(v("code")),
children: "取封面来框"
})]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -65743,7 +65743,7 @@ function JOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
/* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
onClick: () => a.current?.click(),
- ...dV(v("file")),
+ ...fV(v("file")),
children: "从本机选图片"
}),
/* @__PURE__ */ (0, I.jsx)("input", {
@@ -65763,7 +65763,7 @@ function JOe({ 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)(rV, {
+ children: /* @__PURE__ */ (0, I.jsx)(iV, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
@@ -65773,7 +65773,7 @@ function JOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}), /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
disabled: !s.trim(),
- ...dV(v("url")),
+ ...fV(v("url")),
onClick: () => {
w || _.mutate({
via: "url",
@@ -65787,7 +65787,7 @@ function JOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})]
})] })] });
}
-function YOe({ src: e, choice: t }) {
+function JOe({ 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);
@@ -65795,7 +65795,7 @@ function YOe({ src: e, choice: t }) {
let s = {
width: t.width,
height: t.height
- }, c = FOe(t) ? wOe(tQ(t, s, GOe), s) : null, l = r || a ? !0 : void 0;
+ }, c = POe(t) ? COe(nQ(t, s, WOe), 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",
@@ -65821,23 +65821,23 @@ function YOe({ src: e, choice: t }) {
})]
});
}
-function XOe({ 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 = IV();
+function YOe({ 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 = eQ(n, s), m = $Z(e, t, s, p), h = LV();
function g(e) {
c(e), u(null), f(null);
}
- let _ = d && l ? COe(d, l) : null;
+ let _ = d && l ? SOe(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)(JZ, {
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), VZ(e) && f(s === n.ref ? nQ(n, e, 1) : HZ(e, 1));
},
onBox: f
}) : null, o.length > 1 ? /* @__PURE__ */ (0, I.jsx)("div", {
@@ -65851,7 +65851,7 @@ function XOe({ 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: HOe(e)
+ children: VOe(e)
}, e))
}) : null]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -65871,12 +65871,12 @@ function XOe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
/* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
onClick: i,
- ...dV(r),
+ ...fV(r),
children: "返回备选图片"
}),
n.crop ? null : /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
- ...dV(r),
+ ...fV(r),
onClick: () => {
r || a(null);
},
@@ -65884,7 +65884,7 @@ function XOe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
}),
/* @__PURE__ */ (0, I.jsx)(Y, {
disabled: !d || !l,
- ...dV(r),
+ ...fV(r),
onClick: () => {
d && !r && a({
ref: s,
@@ -65899,17 +65899,17 @@ function XOe({ 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 aQ = (e, t, n = 0) => `/jav-image?code=${encodeURIComponent(e)}&image=${encodeURIComponent(t)}${n ? `&attempt=${n}` : ""}`;
+function oQ({ title: e, detail: t, busy: n, onRetry: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-jav-picture-wait": "",
- children: /* @__PURE__ */ (0, I.jsx)(sV, {
+ children: /* @__PURE__ */ (0, I.jsx)(cV, {
size: "compact",
- icon: NB,
+ icon: PB,
title: e,
actions: /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
- ...dV(!!n),
+ ...fV(!!n),
onClick: r,
children: "立即重试"
}),
@@ -65917,9 +65917,9 @@ function aQ({ title: e, detail: t, busy: n, onRetry: r }) {
})
});
}
-function ZOe({ code: e }) {
- let t = dH(), [n, r] = (0, F.useState)("");
- return /* @__PURE__ */ (0, I.jsx)(aQ, {
+function XOe({ code: e }) {
+ let t = fH(), [n, r] = (0, F.useState)("");
+ return /* @__PURE__ */ (0, I.jsx)(oQ, {
title: "封面未取得",
detail: t.error || n,
busy: !!t.busy,
@@ -65934,8 +65934,8 @@ function ZOe({ 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 ? uo(e, !0) : e.cover_url || "";
+function sQ({ 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 ? aQ(e.code, t, r) : u ? uo(e, !0) : e.cover_url || "";
if ((0, F.useLayoutEffect)(() => {
let e = l.current;
e?.complete && e.naturalWidth > 0 && o({
@@ -65952,8 +65952,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)(ZOe, { 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)(XOe, { code: e.code });
+ if (s === p) return n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, I.jsx)(oQ, {
title: "图片未取得",
onRetry: () => i((e) => e + 1)
});
@@ -66002,8 +66002,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 }) {
- eL();
+function cQ({ code: e, person: t, detail: n = !1 }) {
+ tL();
let r = (0, F.useRef)(null), [i, a] = (0, F.useState)(n || typeof IntersectionObserver > "u");
(0, F.useEffect)(() => {
if (!r.current || i) return;
@@ -66017,7 +66017,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: aQ(e, `actor:${t.source_actor_id}`),
alt: "",
"data-drop": "self"
}) : null] });
@@ -66027,8 +66027,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)(KW), o = (0, F.useRef)(null), [s, c] = (0, F.useState)([]), l = e?.items.length ? e.html : "";
+function lQ({ 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 : "";
(0, F.useLayoutEffect)(() => {
t.removeAttribute("aria-busy"), t.hidden = !l, e && i?.(!!l);
}, [
@@ -66060,7 +66060,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)(cQ, {
code: e.dataset.code,
person: {
name: e.dataset.name,
@@ -66069,7 +66069,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 uQ({ name: e }) {
let { wide: t, viewBox: n } = Cn(e);
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: n,
@@ -66079,20 +66079,20 @@ function lQ({ name: e }) {
});
}
// src/react/entity-hero/hero-pop.tsx
-function uQ(e, t) {
+function dQ(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 fQ = (e) => !!e?.isConnected && e.matches(":popover-open");
+function pQ(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 && fQ(n.current) ? dQ(t.current, n.current) : i.current();
};
return addEventListener("scroll", r, {
capture: !0,
@@ -66106,17 +66106,17 @@ function fQ(e, t, n, r) {
n
]);
}
-function pQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
+function mQ({ 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, fQ(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 && !fQ(s.current) && (s.current.showPopover(), dQ(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 pQ(c, o, s, f), (0, F.useEffect)(() => {
if (!c) return;
let e = (e) => {
let t = e.target;
@@ -66142,7 +66142,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" && fQ(s.current) && (e.preventDefault(), f());
},
children: ["+", t]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -66160,16 +66160,16 @@ function pQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
}), a]
})] });
}
-function QOe({ following: e, busy: t, onToggle: n, tip: r }) {
+function ZOe({ 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);
+ fQ(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 && !fQ(o.current) && (o.current.showPopover(), dQ(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 pQ(s, i, o, () => c(!1)), (0, F.useEffect)(() => {
+ i.current && fQ(o.current) && dQ(i.current, o.current);
}, [r]), /* @__PURE__ */ (0, I.jsxs)("label", {
ref: i,
"data-entry-feed": "",
@@ -66178,7 +66178,7 @@ function QOe({ 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)(uQ, { name: "rss" }),
/* @__PURE__ */ (0, I.jsx)("input", {
ref: a,
type: "checkbox",
@@ -66212,29 +66212,29 @@ function QOe({ following: e, busy: t, onToggle: n, tip: r }) {
});
}
// src/react/entity-hero/name-picker.tsx
-function $Oe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
+function QOe({ 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)(Mme, {
+ }, []), /* @__PURE__ */ (0, I.jsxs)(jme, {
isOpen: i,
onOpenChange: a,
- children: [/* @__PURE__ */ (0, I.jsx)(FL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(IL, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
- children: /* @__PURE__ */ (0, I.jsx)(lQ, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, I.jsx)(cz, {
+ children: /* @__PURE__ */ (0, I.jsx)(uQ, { name: "chevron-down" })
+ }), /* @__PURE__ */ (0, I.jsx)(lz, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
- className: OV,
+ className: kV,
"data-namepick-menu": "",
- children: /* @__PURE__ */ (0, I.jsxs)(Pme, {
+ children: /* @__PURE__ */ (0, I.jsxs)(Nme, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(gz, {
+ /* @__PURE__ */ (0, I.jsx)(_z, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -66242,34 +66242,34 @@ function $Oe({ 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)(vz, {
+ children: t.map((e) => /* @__PURE__ */ (0, I.jsxs)(yz, {
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)(uQ, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.label })]
}, e.value))
}),
- /* @__PURE__ */ (0, I.jsx)(hme, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, I.jsx)(gz, { children: /* @__PURE__ */ (0, I.jsxs)(vz, {
+ /* @__PURE__ */ (0, I.jsx)(mme, { "data-namepick-rule": "" }),
+ /* @__PURE__ */ (0, I.jsx)(_z, { children: /* @__PURE__ */ (0, I.jsxs)(yz, {
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)(uQ, { name: "plus" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "添加别名…" })]
}) })
]
})
})]
});
}
-var eke = (e) => e === "studio" || e === "agency", mQ = (e) => e === "performer" || e === "creator", tke = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
-function nke(e, t = "zh-CN") {
+var $Oe = (e) => e === "studio" || e === "agency", hQ = (e) => e === "performer" || e === "creator", eke = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
+function tke(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 gQ(e) {
if (e.agency) return {
name: e.agency.canonical_name,
linked: !0,
@@ -66281,13 +66281,13 @@ function hQ(e) {
linked: !1
} : null;
}
-function gQ(e, t) {
+function _Q(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 rke(e, t) {
- let n = hQ(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
+var vQ = (e) => ({ site: zn(e) });
+function nke(e, t) {
+ let n = gQ(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
type: "icon",
url: e.url,
title: e.label,
@@ -66297,7 +66297,7 @@ function rke(e, t) {
let t = e.retired_year ? `已于 ${e.retired_year} 年隐退` : "链接已失效";
return {
type: "gone",
- title: `${gQ(e, n)} · ${t}`
+ title: `${_Q(e, n)} · ${t}`
};
}
let r = e.url || "";
@@ -66305,11 +66305,11 @@ function rke(e, t) {
type: "private",
label: e.label || e.hostname || "已记录"
};
- if (mQ(t) && e.link_kind !== "social") return {
+ if (hQ(t) && e.link_kind !== "social") return {
type: "icon",
url: r,
- title: gQ(e, n),
- mark: _Q(e)
+ title: _Q(e, n),
+ mark: vQ(e)
};
if (e.link_kind === "social") {
let t = Hn(r);
@@ -66317,7 +66317,7 @@ function rke(e, t) {
type: "icon",
url: r,
title: e.label || "",
- mark: t ? { brand: t } : _Q(e)
+ mark: t ? { brand: t } : vQ(e)
};
}
return {
@@ -66325,12 +66325,12 @@ function rke(e, t) {
url: r,
title: e.label || "",
text: Kn(e, t, i),
- mark: _Q(e)
+ mark: vQ(e)
};
});
- return [...r, ...ike(a)];
+ return [...r, ...rke(a)];
}
-function ike(e) {
+function rke(e) {
let t = e.filter((e) => e.type === "private");
return t.length < 2 ? e : [...e.filter((e) => e.type !== "private"), {
type: "private",
@@ -66338,8 +66338,8 @@ function ike(e) {
sources: t.map((e) => e.label)
}];
}
-var vQ = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
-function ake(e) {
+var yQ = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
+function ike(e) {
return [
[
"legal_name",
@@ -66395,7 +66395,7 @@ function ake(e) {
}]
}] : []);
}
-function oke(e) {
+function ake(e) {
if (!e) return [];
let t = [];
e.birth_date && t.push({
@@ -66452,14 +66452,14 @@ function oke(e) {
tags: e.tags
}), t;
}
-function yQ(e, t = 4) {
+function bQ(e, t = 4) {
let n = e.length > t + 1 ? t : e.length;
return {
shown: e.slice(0, n),
rest: e.length - n
};
}
-function ske(e) {
+function oke(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 ? {
@@ -66469,7 +66469,7 @@ function ske(e) {
} : null;
}
// src/react/entity-hero/entity-hero-page.tsx
-function cke(e) {
+function ske(e) {
return _o({
id: e.id,
hasImage: e.has_image,
@@ -66480,9 +66480,9 @@ function cke(e) {
standIn: e.avatar_stand_in
});
}
-function lke({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
- eL();
- let s = nn(e, n.canonical_name, Number(n.id)), c = rn(e, n.canonical_name, Number(n.id)), l = mQ(e), u = eke(e), d = l ? oke(n.profile) : u ? ake(n.company_profile) : [], f = rke(n, e), p = vQ(n), m = e === "agency" ? [] : n.related_performers || [], h = (0, F.useRef)(null), g = (0, F.useRef)(null);
+function cke({ 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 = hQ(e), u = $Oe(e), d = l ? ake(n.profile) : u ? ike(n.company_profile) : [], f = nke(n, e), p = yQ(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)(() => {
@@ -66495,7 +66495,7 @@ function lke({ 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)(uke, {
+ children: [/* @__PURE__ */ (0, I.jsx)(lke, {
kind: e,
name: s,
helpers: o,
@@ -66503,7 +66503,7 @@ function lke({ 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)(qOe, {
+ children: /* @__PURE__ */ (0, I.jsx)(KOe, {
kind: e,
entityId: Number(n.id),
name: s || t,
@@ -66518,17 +66518,17 @@ function lke({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
"data-entity-title": "",
children: [
/* @__PURE__ */ (0, I.jsx)("h2", {
- lang: II(s),
+ lang: LI(s),
title: c || void 0,
children: s
}),
- e === "tag" ? null : /* @__PURE__ */ (0, I.jsx)($Oe, {
+ e === "tag" ? null : /* @__PURE__ */ (0, I.jsx)(QOe, {
current: n.canonical_name,
- choices: nke(n, Xt()),
+ choices: tke(n, Xt()),
onChoose: a.chooseName,
onAddAlias: a.addAlias
}),
- n.id ? /* @__PURE__ */ (0, I.jsx)(CV, { item: {
+ n.id ? /* @__PURE__ */ (0, I.jsx)(wV, { item: {
entity_id: Number(n.id),
kind: e,
name: n.canonical_name || t,
@@ -66542,7 +66542,7 @@ function lke({ 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)(dke, {
+ /* @__PURE__ */ (0, I.jsx)(uke, {
kind: e,
entity: n,
actions: a
@@ -66563,14 +66563,14 @@ function lke({ 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)(_ke, { link: e }, t))
+ children: f.map((e, t) => /* @__PURE__ */ (0, I.jsx)(gke, { link: e }, t))
}) : null,
- p.length || n.feed ? /* @__PURE__ */ (0, I.jsx)(vke, {
+ p.length || n.feed ? /* @__PURE__ */ (0, I.jsx)(_ke, {
entity: n,
actions: a,
helpers: o
}) : null,
- n.follow?.held.length ? /* @__PURE__ */ (0, I.jsx)(mke, {
+ n.follow?.held.length ? /* @__PURE__ */ (0, I.jsx)(pke, {
follow: n.follow,
displayName: s,
actions: a
@@ -66579,11 +66579,11 @@ function lke({ 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)(hke, {
+ children: d.map((e) => /* @__PURE__ */ (0, I.jsx)(mke, {
glyph: e.glyph,
label: e.label,
clip: e.clip,
- children: e.tags ? /* @__PURE__ */ (0, I.jsx)(gke, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: e.tags ? /* @__PURE__ */ (0, I.jsx)(hke, { 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))
@@ -66602,7 +66602,7 @@ function lke({ 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>${cke(e)}` }
+ dangerouslySetInnerHTML: { __html: `<span>${z(er(nn("performer", e.k, e.id)))}</span>${ske(e)}` }
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-hero-costar-name": "",
children: nn("performer", e.k, e.id)
@@ -66610,14 +66610,14 @@ function lke({ 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)(lQ, {
feedNew: r,
host: i,
wire: o.wireFeedRow,
act: (e, t) => a.feedAction(e, t)
}), i) : null] });
}
-function uke({ kind: e, name: t, helpers: n, people: r, company: i }) {
+function lke({ 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]");
@@ -66631,8 +66631,8 @@ function uke({ kind: e, name: t, helpers: n, people: r, company: i }) {
dangerouslySetInnerHTML: { __html: o }
});
}
-function dke({ kind: e, entity: t, actions: n }) {
- let r = hQ(t), i = (e, t) => (r) => {
+function uke({ kind: e, entity: t, actions: n }) {
+ let r = gQ(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),
@@ -66641,44 +66641,44 @@ function dke({ 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 = ske(e);
+ let e = t.name_display?.groups[Xt()] ?? t.name_groups, r = oke(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-entity-alias": "meta",
children: [
- /* @__PURE__ */ (0, I.jsx)(bQ, { entity: t }),
+ /* @__PURE__ */ (0, I.jsx)(xQ, { 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)(uQ, { name: "film" }), /* @__PURE__ */ (0, I.jsx)("span", { children: o })]
}),
- t.follow?.key ? /* @__PURE__ */ (0, I.jsx)(pke, {
+ t.follow?.key ? /* @__PURE__ */ (0, I.jsx)(fke, {
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)(uQ, { 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)(uQ, { name: "id-card" }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: r.names.map((e, t) => /* @__PURE__ */ (0, I.jsx)("span", {
- lang: II(e),
+ lang: LI(e),
children: e
}, t))
}),
- r.rest > 0 ? /* @__PURE__ */ (0, I.jsx)(pQ, {
+ r.rest > 0 ? /* @__PURE__ */ (0, I.jsx)(mQ, {
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)(SQ, {
label: e.label,
names: e.names
}, t)) })
@@ -66700,61 +66700,61 @@ function dke({ 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)(xQ, { 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)(uQ, { 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)(uQ, { 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)(uQ, { 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)(fke, { aliases: s }) : null
+ s.length ? /* @__PURE__ */ (0, I.jsx)(dke, { aliases: s }) : null
]
});
}
-function fke({ aliases: e }) {
- let { shown: t, rest: n } = yQ(e, 3);
+function dke({ aliases: e }) {
+ let { shown: t, rest: n } = bQ(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)(uQ, { 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)(mQ, {
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)(SQ, { names: e.map((e) => ({ name: e })) }) })
}) : null
]
});
}
-function pke({ follow: e, actions: t }) {
+function fke({ 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)(uQ, { name: "rss" }), /* @__PURE__ */ (0, I.jsxs)("a", {
href: "?media=online",
onClick: (n) => {
n.preventDefault(), t.openFollowAuthor(e.key);
@@ -66763,7 +66763,7 @@ function pke({ follow: e, actions: t }) {
})]
});
}
-function mke({ follow: e, displayName: t, actions: n }) {
+function pke({ follow: e, displayName: t, actions: n }) {
let [r, i] = (0, F.useState)(""), a = async (e, t) => {
if (!r) {
i(e);
@@ -66777,12 +66777,12 @@ function mke({ 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)(oV, {
+ children: e.held.map((e) => /* @__PURE__ */ (0, I.jsxs)(sV, {
tone: "info",
title: `关注里有同名作者 ${e.name}`,
action: /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
- ...dV(r === e.key),
+ ...fV(r === e.key),
onClick: () => {
a(e.key, e.name);
},
@@ -66797,37 +66797,37 @@ function mke({ follow: e, displayName: t, actions: n }) {
}, e.key))
});
}
-function bQ({ entity: e }) {
+function xQ({ 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)(uQ, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.identity_labels.join(" · ") })]
}) : null;
}
-function xQ({ label: e, names: t }) {
+function SQ({ 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: II(e.name),
+ lang: LI(e.name),
children: [e.name, e.reading ? /* @__PURE__ */ (0, I.jsx)("small", { children: e.reading }) : null]
}, t))
})] });
}
-function hke({ 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 mke({ 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)(uQ, { 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 gke({ tags: e }) {
- let { shown: t, rest: n } = yQ(e);
+function hke({ tags: e }) {
+ let { shown: t, rest: n } = bQ(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)(mQ, {
id: "entityTagPop",
hook: "fact",
rest: n,
@@ -66843,10 +66843,10 @@ function gke({ tags: e }) {
})
}) : null] });
}
-function SQ({ mark: e }) {
+function CQ({ 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)(uQ, { 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", {
@@ -66854,7 +66854,7 @@ function SQ({ mark: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-function _ke({ link: e }) {
+function gke({ link: e }) {
switch (e.type) {
case "icon": return /* @__PURE__ */ (0, I.jsx)("a", {
"data-link": "icon",
@@ -66863,19 +66863,19 @@ function _ke({ 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)(CQ, { 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)(CQ, { 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)(CQ, { mark: { globe: !0 } }), /* @__PURE__ */ (0, I.jsx)("span", {
"data-link-label": "",
children: e.sources ? e.label : `来源 · ${e.label}`
})]
@@ -66887,7 +66887,7 @@ function _ke({ link: e }) {
rel: "noopener noreferrer",
title: e.title,
children: [
- /* @__PURE__ */ (0, I.jsx)(SQ, { mark: e.mark }),
+ /* @__PURE__ */ (0, I.jsx)(CQ, { mark: e.mark }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-link-label": "",
children: e.text
@@ -66902,7 +66902,7 @@ function _ke({ link: e }) {
});
}
}
-function vke({ entity: e, actions: t, helpers: n }) {
+function _ke({ 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);
@@ -66920,33 +66920,33 @@ function vke({ 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: [yQ(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)(uQ, { 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)(QOe, {
+ }, t)), e.feed ? /* @__PURE__ */ (0, I.jsx)(ZOe, {
following: r,
busy: a,
onToggle: (e) => {
l(e);
},
- tip: tke(r)
+ tip: eke(r)
}) : null]
});
}
// src/react/entity-page/use-entity-online.ts
-var yke = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
-function bke(e, t, n) {
+var vke = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
+function yke(e, t, n) {
let [r, i] = (0, F.useState)(() => va(e));
r.author !== e && i(va(e));
let [a, o] = (0, F.useState)({
@@ -67025,7 +67025,7 @@ function bke(e, t, n) {
onlineMedia: (e) => c(e),
onlineShuffle: () => T({
sort: ta,
- seed: yke()
+ seed: vke()
}),
onlineImagesOnly: (e) => n.setImagesOnly(e),
onlineStatus: (e) => T({ status: e }),
@@ -67055,8 +67055,8 @@ function bke(e, t, n) {
};
}
// src/react/entity-page/entity-page-view.tsx
-function xke(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 bke(e) {
+ let { kind: t, name: n } = e, r = Ft(LX(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;
@@ -67074,17 +67074,17 @@ function xke(e) {
s,
o?.kind,
o?.name
- ]), r.isError ? /* @__PURE__ */ (0, I.jsx)(PG, {
+ ]), r.isError ? /* @__PURE__ */ (0, I.jsx)(FG, {
message: lr(r.error),
onRetry: () => {
r.refetch();
}
- }) : !r.data || i || o ? null : /* @__PURE__ */ (0, I.jsx)(wke, {
+ }) : !r.data || i || o ? null : /* @__PURE__ */ (0, I.jsx)(Cke, {
...e,
entity: r.data
});
}
-function CQ(e) {
+function wQ(e) {
let [t, n] = (0, F.useState)({
key: e,
n: 1
@@ -67096,22 +67096,22 @@ function CQ(e) {
};
return n(r), r.n;
}
-var Ske = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
-function Cke(e, t) {
+var xke = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
+function Ske(e, t) {
return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t.toLocaleString()} 部作品` : ""].filter(Boolean).join(" · ")}`;
}
-function wke(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 Cke(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(RX(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 || zX(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);
+ } : AX, [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 = bke(g, w === "online", {
+ let w = l && y === "people" && u.length ? "people" : v.media, T = yke(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 = IX(e), A = Ft(k), j = wQ(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]);
@@ -67121,26 +67121,26 @@ function wke(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) => FX(t, n, i, N, e, r, a), [j]), [P, ne] = (0, F.useState)({}), re = v.set, ie = P[re] || "", ae = Lt({
+ ...RX(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 = wQ(JSON.stringify(MX(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 ? [] : zX(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),
+ ...DX(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: EX(d) }));
}, [d, e.feedRevision]);
let pe = !!A.data;
(0, F.useEffect)(() => {
@@ -67174,7 +67174,7 @@ function wke(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: jX(t, n) }), await H.invalidateQueries({ queryKey: [
"entity-items",
t,
n
@@ -67208,7 +67208,7 @@ function wke(e) {
enabled: e
})
}),
- onSuccess: (e, r) => H.setQueryData(AX(t, n), (e) => e && {
+ onSuccess: (e, r) => H.setQueryData(jX(t, n), (e) => e && {
...e,
feed: {
...e.feed,
@@ -67262,10 +67262,10 @@ function wke(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: EX(d) });
})();
},
- feedAction: DX,
+ feedAction: OX,
avatarPicked: () => {
s.avatarChanged(), he().then(() => {
me.current && O((e) => e + 1);
@@ -67313,19 +67313,19 @@ function wke(e) {
(e !== w || v.set) && (b(e === "people" ? "people" : "videos"), s.route(i, e === "photos" || e === "online" ? {
media: e,
set: 0
- } : kX));
+ } : AX));
},
setState: (e) => s.route({
...i,
state: e
- }, kX),
+ }, AX),
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 = IX({
kind: t,
name: n,
filters: {
@@ -67339,7 +67339,7 @@ function wke(e) {
await H.fetchQuery(a).catch(() => null);
return;
}
- let r = Ske(), a = await H.fetchInfiniteQuery(LX(t, n, re, r)).catch(() => null);
+ let r = xke(), a = await H.fetchInfiniteQuery(RX(t, n, re, r)).catch(() => null);
me.current && a?.pages[0] && !a.pages[0].error && ne((e) => ({
...e,
[re]: r
@@ -67374,7 +67374,7 @@ function wke(e) {
k: e.k,
label: Rl(e.k),
n: e.n,
- selected: rDe(i.tag, e.k)
+ selected: nDe(i.tag, e.k)
})), Te = [
u.length,
!_,
@@ -67409,14 +67409,14 @@ function wke(e) {
creator: "",
studio: "",
owner: ""
- }, kX), Ne = "", Pe = !1;
+ }, AX), 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 = NX(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()} 张` : Cke(oe, RX(oe).length) : Pe = ae.isPending;
+ } else oe && !oe.error ? Ne = De ? `${oe.title} · ${(oe.total || 0).toLocaleString()} 张` : Ske(oe, zX(oe).length) : Pe = ae.isPending;
let Fe = (0, F.useMemo)(() => ({
...e.card.actions,
loadMorePhotos: async () => {
@@ -67433,7 +67433,7 @@ function wke(e) {
u
]);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(lke, {
+ /* @__PURE__ */ (0, I.jsx)(cke, {
kind: t,
name: n,
entity: r,
@@ -67443,7 +67443,7 @@ function wke(e) {
actions: be,
helpers: xe
}, D),
- (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Kbe, {
+ (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Gbe, {
kind: t,
name: n,
view: w,
@@ -67460,9 +67460,9 @@ function wke(e) {
actions: Se,
helpers: Ce
}), c.filter),
- (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Nbe, {
+ (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Mbe, {
enabled: w === "videos",
- children: w === "online" ? /* @__PURE__ */ (0, I.jsx)(gOe, {
+ children: w === "online" ? /* @__PURE__ */ (0, I.jsx)(hOe, {
view: T.view,
media: T.media,
result: T.result,
@@ -67476,16 +67476,16 @@ function wke(e) {
actions: e.follow.actions,
canLoadMore: e.canLoadMore,
clearFilters: T.clearFilters
- }) : w === "videos" && A.isError ? /* @__PURE__ */ (0, I.jsx)(PG, {
+ }) : w === "videos" && A.isError ? /* @__PURE__ */ (0, I.jsx)(FG, {
message: lr(A.error),
onRetry: () => {
A.refetch();
}
- }) : je ? /* @__PURE__ */ (0, I.jsx)(Tke, {
+ }) : je ? /* @__PURE__ */ (0, I.jsx)(wke, {
filtered: Ae,
onShowAll: Me,
onOnline: g ? () => Se.setView("online") : void 0
- }) : /* @__PURE__ */ (0, I.jsx)(IDe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(FDe, {
kind: t,
name: n,
view: w,
@@ -67518,9 +67518,9 @@ function wke(e) {
}), c.body)
] });
}
-function Tke({ filtered: e, onShowAll: t, onOnline: n }) {
- return e ? /* @__PURE__ */ (0, I.jsx)(sV, {
- icon: lV("search"),
+function wke({ filtered: e, onShowAll: t, onOnline: n }) {
+ return e ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ icon: uV("search"),
title: "没有符合条件的视频",
actions: /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
@@ -67528,14 +67528,14 @@ function Tke({ filtered: e, onShowAll: t, onOnline: n }) {
children: "清除筛选"
}),
children: "清除筛选后查看名下全部视频。"
- }) : /* @__PURE__ */ (0, I.jsx)(sV, {
- icon: lV("film"),
+ }) : /* @__PURE__ */ (0, I.jsx)(cV, {
+ icon: uV("film"),
title: "还没有视频",
actions: n ? /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
onClick: n,
children: "查看在线作品"
- }) : /* @__PURE__ */ (0, I.jsx)(hL, {
+ }) : /* @__PURE__ */ (0, I.jsx)(gL, {
size: "small",
href: "/",
children: "浏览馆藏"
@@ -67544,30 +67544,30 @@ function Tke({ filtered: e, onShowAll: t, onOnline: n }) {
});
}
// src/react/diagnostics/diagnostics.ts
-var wQ = ["diagnostics"], TQ = (e) => B("/api/diagnostics", e);
-async function Eke(e) {
+var TQ = ["diagnostics"], EQ = (e) => B("/api/diagnostics", e);
+async function Tke(e) {
await H.fetchQuery({
- queryKey: wQ,
- queryFn: () => TQ(e),
+ queryKey: TQ,
+ queryFn: () => EQ(e),
staleTime: 1e4
});
}
// src/react/feed-new/feed-new-page.tsx
-function Dke({ host: e, revision: t, helpers: n, actions: r }) {
- let i = Ft(EX(null, n.feedRowHtml)), a = (0, F.useRef)(t);
+function Eke({ host: e, revision: t, helpers: n, actions: r }) {
+ let i = Ft(DX(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: EX(null) }));
+ }, [t]), (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(lQ, {
feedNew: i.data ?? null,
host: e,
wire: n.wireFeedRow,
- act: DX,
+ act: OX,
settled: r.settled
}), e);
}
// src/react/index/index-search.tsx
-var Oke = lV("search");
-function EQ({ label: e, value: t, onQuery: n }) {
+var Dke = uV("search");
+function DQ({ 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);
@@ -67584,27 +67584,27 @@ function EQ({ label: e, value: t, onQuery: n }) {
onCompositionEnd: (e) => {
a.current = !1, s(e.target.value);
},
- children: /* @__PURE__ */ (0, I.jsx)(eV, {
+ children: /* @__PURE__ */ (0, I.jsx)(tV, {
"aria-label": e,
value: r,
onChange: (e) => {
i(e), a.current || s(e);
},
- children: /* @__PURE__ */ (0, I.jsx)(nV, {
+ children: /* @__PURE__ */ (0, I.jsx)(rV, {
type: "search",
- leadingIcon: Oke,
+ leadingIcon: Dke,
spellCheck: !1,
autoComplete: "off",
enterKeyHint: "search",
onKeyDown: (e) => {
- e.key !== "Enter" || a.current || ZU(e.nativeEvent) || (e.preventDefault(), clearTimeout(o.current), n(r.trim()));
+ e.key !== "Enter" || a.current || QU(e.nativeEvent) || (e.preventDefault(), clearTimeout(o.current), n(r.trim()));
}
})
})
});
}
// src/react/index/tag-pagination.ts
-function DQ(e) {
+function OQ(e) {
let [t, n] = (0, F.useState)({
filter: e,
pageIndex: 0,
@@ -67621,7 +67621,7 @@ function DQ(e) {
}), [e])
};
}
-function OQ(e, t, n) {
+function kQ(e, t, n) {
let { pageIndex: r, pageSize: i } = t;
(0, F.useEffect)(() => {
if (e === void 0) return;
@@ -67638,11 +67638,11 @@ function OQ(e, t, n) {
]);
}
// src/react/index/index-tags.tsx
-var kQ = () => /* @__PURE__ */ (0, I.jsx)("span", {
+var AQ = () => /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
-}), AQ = lV("pencil"), jQ = (e, t) => ({
+}), jQ = uV("pencil"), MQ = (e, t) => ({
kind: "tag",
name: e.k,
favorite: e.favorite,
@@ -67651,7 +67651,7 @@ var kQ = () => /* @__PURE__ */ (0, I.jsx)("span", {
tag_id: e.id || e.k
} : { entity_id: e.entity_id }
});
-function kke({ tag: e, actions: t }) {
+function Oke({ 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",
@@ -67660,13 +67660,13 @@ function kke({ tag: e, actions: t }) {
type: "button",
"data-alpha-tag": "",
"data-k": e.k,
- "data-tag-cat": QX(t.online, e.cat),
+ "data-tag-cat": $X(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)(AQ, {}),
/* @__PURE__ */ (0, I.jsx)("span", {
className: "min-w-0 flex-1 truncate",
children: e.label
@@ -67677,32 +67677,32 @@ function kke({ tag: e, actions: t }) {
})
]
}),
- t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(CV, { item: jQ(e, t.online) }),
- t.edit ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(wV, { item: MQ(e, t.online) }),
+ t.edit ? /* @__PURE__ */ (0, I.jsx)(CV, {
label: `编辑标签 ${e.label}`,
onClick: () => t.edit?.(e.k),
- children: /* @__PURE__ */ (0, I.jsx)(AQ, {})
+ children: /* @__PURE__ */ (0, I.jsx)(jQ, {})
}) : null
]
});
}
-function MQ({ groups: e, actions: t }) {
+function NQ({ 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: yU({
+ className: bU({
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)(fW, { value: n.length })]
+ children: [e, /* @__PURE__ */ (0, I.jsx)(pW, { 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)(kke, {
+ children: n.map((e) => /* @__PURE__ */ (0, I.jsx)(Oke, {
tag: e,
actions: t
}, e.k))
@@ -67710,26 +67710,26 @@ function MQ({ groups: e, actions: t }) {
}, e))
});
}
-var Ake = "\xA0";
-function NQ({ tags: e, actions: t }) {
+var kke = "\xA0";
+function PQ({ 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": $X(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": $X(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 + Ake
+ children: e.label + kke
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-tag-n": "",
className: "text-caption-1-regular opacity-60",
@@ -67738,16 +67738,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)(CV, { item: jQ(e, t.online) }), t.edit ? /* @__PURE__ */ (0, I.jsx)(SV, {
+ children: [t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(wV, { item: MQ(e, t.online) }), t.edit ? /* @__PURE__ */ (0, I.jsx)(CV, {
label: `编辑标签 ${e.label}`,
onClick: () => t.edit?.(e.k),
- children: /* @__PURE__ */ (0, I.jsx)(AQ, {})
+ children: /* @__PURE__ */ (0, I.jsx)(jQ, {})
}) : null]
}) : null]
}, e.k))
});
}
-var jke = [[
+var Ake = [[
"cloud",
"标签云",
"tags"
@@ -67756,34 +67756,34 @@ var jke = [[
"字母表",
"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 = oL();
- return /* @__PURE__ */ (0, I.jsx)(cL, {
+function FQ({ 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, {
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)(lL, {
+ children: [[[!1, "使用中"], [!0, "已隐藏"]].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(uL, {
"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)(lL, {
+ }, String(e))), l.onBlocked ? /* @__PURE__ */ (0, I.jsx)(uL, {
"data-tag-pill": "",
"data-tag-cat": "all",
pressed: !!l.blocked,
onPress: l.onBlocked,
children: "已屏蔽内容"
}) : null]
- }) : null, e.map(([e, r]) => /* @__PURE__ */ (0, I.jsxs)(lL, {
+ }) : null, e.map(([e, r]) => /* @__PURE__ */ (0, I.jsxs)(uL, {
"data-tag-pill": "",
- "data-tag-cat": e === "all" ? "all" : QX(n, e),
+ "data-tag-cat": e === "all" ? "all" : $X(n, e),
pressed: t === e,
onPress: () => o(e),
- children: [/* @__PURE__ */ (0, I.jsx)(kQ, {}), r]
+ children: [/* @__PURE__ */ (0, I.jsx)(AQ, {}), r]
}, e))] }),
bottom: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -67804,19 +67804,19 @@ function PQ({ categories: e, category: t, online: n, readout: r, letters: i, vie
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, I.jsx)(Oz, {
+ /* @__PURE__ */ (0, I.jsx)(kz, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${nU}`,
- children: jke.map(([e, t, n]) => {
- let r = lV(n);
- return /* @__PURE__ */ (0, I.jsx)(kz, {
+ className: `ml-auto ${rU}`,
+ children: Ake.map(([e, t, n]) => {
+ let r = uV(n);
+ return /* @__PURE__ */ (0, I.jsx)(Az, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: rU,
+ className: iU,
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
className: "contents",
@@ -67828,13 +67828,13 @@ function PQ({ categories: e, category: t, online: n, readout: r, letters: i, vie
] })
});
}
-function Mke({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
- return /* @__PURE__ */ (0, I.jsxs)(vj, {
+function jke({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
+ return /* @__PURE__ */ (0, I.jsxs)(yj, {
visible: e > 0,
label: "所选标签操作",
count: `已选 ${e.toLocaleString()} 个标签`,
children: [
- /* @__PURE__ */ (0, I.jsx)(FV, {
+ /* @__PURE__ */ (0, I.jsx)(IV, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
children: /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -67865,74 +67865,74 @@ function Mke({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
});
}
// src/react/toaster.tsx
-var FQ = (e, t) => /* @__PURE__ */ (0, I.jsx)("span", {
+var IQ = (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();
+}), LQ = null, RQ = { "--floating-radius": "var(--radius-2xl)" }, zQ = (e) => `max(${e}px, var(--selection-dock-space, 0px), var(--miniplayer-space, 0px))`;
+function BQ() {
+ let e = LQ;
+ LQ = null, e?.root.unmount();
+}
+var VQ = (e, t) => {
+ if (LQ?.host === e) return;
+ BQ();
let n = (0, zt.createRoot)(e);
- IQ = {
+ LQ = {
host: e,
root: n
- }, n.render(/* @__PURE__ */ (0, I.jsxs)(RV, { children: [/* @__PURE__ */ (0, I.jsx)(KV, {
+ }, n.render(/* @__PURE__ */ (0, I.jsxs)(zV, { children: [/* @__PURE__ */ (0, I.jsx)(qV, {
id: "receipts",
position: "bottom-right",
closeButton: !0,
gap: 8,
style: {
- ...LQ,
+ ...RQ,
"--width": "min(560px, calc(100vw - 48px))"
},
offset: {
right: 24,
- bottom: `calc(${RQ(24)} + var(--processing-toast-space, 0px))`
+ bottom: `calc(${zQ(24)} + var(--processing-toast-space, 0px))`
},
mobileOffset: {
right: 16,
left: 16,
- bottom: `calc(${RQ(16)} + var(--processing-toast-space, 0px))`
+ bottom: `calc(${zQ(16)} + var(--processing-toast-space, 0px))`
},
toastOptions: { closeButtonAriaLabel: "关闭提示" },
containerAriaLabel: "通知",
icons: {
- success: FQ(t.success, !0),
- error: FQ(t.error, !1)
+ success: IQ(t.success, !0),
+ error: IQ(t.error, !1)
}
- }), /* @__PURE__ */ (0, I.jsx)(KV, {
+ }), /* @__PURE__ */ (0, I.jsx)(qV, {
id: "processing",
position: "bottom-right",
gap: 8,
expand: !0,
style: {
- ...LQ,
+ ...RQ,
"--width": "min(400px, calc(100vw - 32px))"
},
offset: {
right: 24,
- bottom: RQ(24)
+ bottom: zQ(24)
},
mobileOffset: {
right: 16,
left: 16,
- bottom: RQ(16)
+ bottom: zQ(16)
},
toastOptions: { closeButtonAriaLabel: "关闭任务提示" },
containerAriaLabel: "后台任务"
})] }));
-}, Nke = 6e3, VQ = (e, t) => {
+}, Mke = 6e3, HQ = (e, t) => {
if (!String(t.html ?? "").trim()) return;
- let n = t.alert ? VV.error : VV.success, r = t.action;
+ let n = t.alert ? HV.error : HV.success, r = t.action;
n(/* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
id: e,
toasterId: "receipts",
- duration: t.timeout > 0 ? t.timeout : Nke,
+ duration: t.timeout > 0 ? t.timeout : Mke,
action: r ? {
label: r.label,
onClick: (e) => {
@@ -67940,7 +67940,7 @@ var BQ = (e, t) => {
}
} : void 0
});
-}, HQ = (e) => e.id ?? e.entity_id, UQ = {
+}, UQ = (e) => e.id ?? e.entity_id, WQ = {
rename: "重命名标签",
merge: "合并标签",
hide: "隐藏标签",
@@ -67948,26 +67948,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) {
+}, GQ = (e, t) => V("/api/tag-management/preview", e, "POST", t);
+async function KQ(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 ul({
- title: UQ[e.operation],
+ title: WQ[e.operation],
body: i,
- confirmLabel: UQ[e.operation],
+ confirmLabel: WQ[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(), HQ(`tag-management-${Date.now()}`, {
+ html: `已${WQ[e.operation]}`,
alert: !1,
timeout: 6e3,
action: null
}), !0);
}
-function KQ({ operation: e, selected: t, close: n, done: r, scope: i = "local" }) {
+function qQ({ operation: e, selected: t, close: n, done: r, scope: i = "local" }) {
let a = (0, F.useRef)({
operation: e,
selected: t,
@@ -67976,24 +67976,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] ? UQ(t[0]) : 0
}), [s, c] = (0, F.useState)(null);
return (0, F.useEffect)(() => {
let e = new AbortController(), t = a.current, n = cl({
- title: UQ[t.operation],
+ title: WQ[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(UQ),
...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 GQ(n, e.signal)
};
}
});
@@ -68004,14 +68004,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 KQ(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)(Pke, {
+ }, []), s ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Nke, {
operation: a.current.operation,
selected: a.current.selected,
dialog: s.dialog,
@@ -68020,8 +68020,8 @@ function KQ({ operation: e, selected: t, close: n, done: r, scope: i = "local" }
}
}), s.host) : null;
}
-function Pke({ 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 Nke({ operation: e, selected: t, dialog: n, update: r }) {
+ let [i, a] = (0, F.useState)(t[0]?.k || ""), [o, s] = (0, F.useState)(t[0] ? UQ(t[0]) : 0);
return (0, F.useEffect)(() => {
r({
name: i,
@@ -68034,28 +68034,28 @@ function Pke({ operation: e, selected: t, dialog: n, update: r }) {
e,
t,
r
- ]), e === "rename" ? /* @__PURE__ */ (0, I.jsx)(rV, {
+ ]), e === "rename" ? /* @__PURE__ */ (0, I.jsx)(iV, {
autoFocus: !0,
"aria-label": "标签名称",
value: i,
onChange: a,
maxLength: 80
- }) : /* @__PURE__ */ (0, I.jsx)(IJ, {
+ }) : /* @__PURE__ */ (0, I.jsx)(LJ, {
"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(UQ(t)) === String(e));
+ n && s(UQ(n));
},
- children: t.map((e) => /* @__PURE__ */ (0, I.jsx)(BU, {
- id: String(HQ(e)),
+ children: t.map((e) => /* @__PURE__ */ (0, I.jsx)(VU, {
+ id: String(UQ(e)),
children: e.k
- }, HQ(e)))
+ }, UQ(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 JQ({ 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,
_,
@@ -68063,7 +68063,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 } = OQ(S), T = new URLSearchParams({
limit: String(C.pageSize),
offset: String(C.pageIndex * C.pageSize),
q: _,
@@ -68080,25 +68080,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);
+ kQ(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 = dH(), 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 = fH(), ee = E.data?.items || [], N = ee, te = (s ? WX : UX).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" ? eZ(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 KQ(n, await GQ(n, t), t);
}, (e) => {
e && O(/* @__PURE__ */ new Map());
});
- }, ae = re.map(HQ), oe = {
+ }, ae = re.map(UQ), oe = {
online: s,
favorites: s,
picked: k,
@@ -68119,13 +68119,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)(DQ, {
label: "过滤标签",
value: l,
onQuery: u
})
}) : null,
- /* @__PURE__ */ (0, I.jsx)(PQ, {
+ /* @__PURE__ */ (0, I.jsx)(FQ, {
categories: te,
category: h,
online: s,
@@ -68153,7 +68153,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)(uL, {
+ E.data?.duplicate_groups.length ? /* @__PURE__ */ (0, I.jsx)(dL, {
busy: M.busy === "repair",
onPress: () => ie({
operation: "repair",
@@ -68161,11 +68161,11 @@ function qQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
}),
children: "整理重复标签"
}) : null,
- N.length ? /* @__PURE__ */ (0, I.jsx)(uL, {
+ N.length ? /* @__PURE__ */ (0, I.jsx)(dL, {
onPress: () => O((e) => new Map([...e, ...N.map((e) => [e.k, e])])),
children: "选择本页"
}) : null,
- k.size ? /* @__PURE__ */ (0, I.jsx)(uL, {
+ k.size ? /* @__PURE__ */ (0, I.jsx)(dL, {
onPress: () => O(/* @__PURE__ */ new Map()),
children: "清空选择"
}) : null
@@ -68174,7 +68174,7 @@ function qQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
E.isPending ? /* @__PURE__ */ (0, I.jsx)("div", { dangerouslySetInnerHTML: { __html: ic({
mode: g,
pageSize: C.pageSize
- }) } }) : E.isError ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ }) } }) : E.isError ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
@@ -68182,19 +68182,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)(NQ, {
groups: ne,
actions: oe
- }) : /* @__PURE__ */ (0, I.jsx)(NQ, {
+ }) : /* @__PURE__ */ (0, I.jsx)(PQ, {
tags: P,
actions: oe
- }) : /* @__PURE__ */ (0, I.jsx)(oV, {
+ }) : /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "neutral",
children: "没有符合条件的标签。"
}),
E.data ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "mt-5",
- children: /* @__PURE__ */ (0, I.jsx)(zJ, {
+ children: /* @__PURE__ */ (0, I.jsx)(BJ, {
label: "标签管理",
total: E.data.total,
pagination: C,
@@ -68204,11 +68204,11 @@ function qQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
pageSizes: rc
})
}) : null,
- M.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ M.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
children: M.error
}) : null,
- /* @__PURE__ */ (0, I.jsxs)(vj, {
+ /* @__PURE__ */ (0, I.jsxs)(yj, {
label: "标签管理操作",
count: `已选 ${k.size} 个标签`,
visible: k.size > 0,
@@ -68230,7 +68230,7 @@ function qQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
/* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
- ...dV(!!M.busy),
+ ...fV(!!M.busy),
onClick: () => ie({
operation: v ? "restore" : "hide",
ids: ae
@@ -68240,7 +68240,7 @@ function qQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
s ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
- ...dV(!!M.busy),
+ ...fV(!!M.busy),
onClick: () => ie({
operation: b ? "unblock" : "block",
ids: ae
@@ -68249,7 +68249,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)(qQ, {
operation: A,
selected: re,
scope: o,
@@ -68260,7 +68260,7 @@ function qQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
});
}
// src/react/index/index-page.tsx
-var Fke = [
+var Pke = [
{
value: "studios",
label: "厂牌",
@@ -68276,7 +68276,7 @@ var Fke = [
label: "系列",
symbol: "list"
}
-], Ike = [{
+], Fke = [{
value: "local",
label: "本地",
symbol: "hard-drive"
@@ -68284,7 +68284,7 @@ var Fke = [
value: "online",
label: "在线",
symbol: "rss"
-}], Lke = [
+}], Ike = [
{
value: "performers",
label: "艺人",
@@ -68300,7 +68300,7 @@ var Fke = [
label: "在线",
symbol: "rss"
}
-], Rke = {
+], Lke = {
people: [[
"big",
"大图 · 竖幅头像",
@@ -68329,20 +68329,20 @@ var Fke = [
"layout-grid"
]]
};
-function zke({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, I.jsx)($H, {
- "aria-label": `${VX[e]}索引版式`,
+function Rke({ kind: e, layout: t, onChange: n }) {
+ return /* @__PURE__ */ (0, I.jsx)(eU, {
+ "aria-label": `${HX[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none ${eU}`,
- children: Rke[e === "series" ? "series" : KX(e) ? "company" : "people"].map(([e, t, n]) => {
- let r = lV(n);
- return /* @__PURE__ */ (0, I.jsx)(kz, {
+ className: `flex-none ${tU}`,
+ children: Lke[e === "series" ? "series" : qX(e) ? "company" : "people"].map(([e, t, n]) => {
+ let r = uV(n);
+ return /* @__PURE__ */ (0, I.jsx)(Az, {
value: e,
"aria-label": t,
- className: Hve,
+ className: Vve,
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
className: "contents",
@@ -68352,8 +68352,8 @@ function zke({ kind: e, layout: t, onChange: n }) {
})
});
}
-function Bke(e) {
- let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(() => qX({
+function zke(e) {
+ let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(() => JX({
kind: e.kind,
q: e.q,
scope: e.scope,
@@ -68366,8 +68366,8 @@ function Bke(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(JX(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 = HX[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;
@@ -68386,7 +68386,7 @@ function Bke(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 } = OQ(JSON.stringify(r)), E = QX(YX(r), w.pageSize), D = Lt({
queryKey: h === "tags" && (w.pageIndex || w.pageSize !== 100) ? [
...E.queryKey,
"page",
@@ -68401,7 +68401,7 @@ function Bke(e) {
getNextPageParam: h === "tags" ? () => void 0 : E.getNextPageParam,
enabled: !(t && h === "tags"),
placeholderData: ke
- }), O = vDe(D.data), k = D.isPending || D.isPlaceholderData, A = !!D.hasNextPage && !D.isPlaceholderData, j = D.data?.pages[0]?.total;
+ }), O = _De(D.data), k = D.isPending || D.isPlaceholderData, A = !!D.hasNextPage && !D.isPlaceholderData, j = D.data?.pages[0]?.total;
(0, F.useEffect)(() => {
ym(() => window.location.pathname === `/${h}` && !!m.current?.isConnected, m.current?.querySelector("[data-index-body]"), { pending: k });
}, [
@@ -68409,8 +68409,8 @@ function Bke(e) {
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()} 个标签` : yDe(O.length, !!D.hasNextPage), ee = `${h}:${_}:${g}`, N = (0, F.useRef)(null), te = D.data?.pages[0]?.categories;
+ ]), kQ(h === "tags" && !D.isPlaceholderData ? j : void 0, w, T);
+ let M = h === "tags" ? D.isPending || D.isError ? "" : `${(j ?? O.length).toLocaleString()} 个标签` : vDe(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
@@ -68426,15 +68426,15 @@ function Bke(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" ? eZ(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)(pW, {
- tabs: Ike,
+ }, se = h === "tags" ? /* @__PURE__ */ (0, I.jsx)(mW, {
+ tabs: Fke,
value: _,
label: "词表",
onChange: (e) => {
@@ -68444,8 +68444,8 @@ function Bke(e) {
view: e === "online" ? "alphabet" : v
});
}
- }) : KX(h) || h === "series" ? /* @__PURE__ */ (0, I.jsx)(pW, {
- tabs: Fke,
+ }) : qX(h) || h === "series" ? /* @__PURE__ */ (0, I.jsx)(mW, {
+ tabs: Pke,
value: h,
label: "资料类型",
onChange: (e) => C({ kind: e })
@@ -68454,7 +68454,7 @@ function Bke(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 ? WX : UX).filter(re);
return /* @__PURE__ */ (0, I.jsxs)("div", {
ref: m,
"data-index-page": h,
@@ -68469,10 +68469,10 @@ function Bke(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", {
+ KX(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)(tL, {
+ children: /* @__PURE__ */ (0, I.jsx)(nL, {
text: k ? void 0 : D.isError ? "" : M,
busy: k,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -68481,18 +68481,18 @@ function Bke(e) {
})
})
}) : null,
- GX(h) ? /* @__PURE__ */ (0, I.jsx)(zke, {
+ KX(h) ? /* @__PURE__ */ (0, I.jsx)(Rke, {
kind: h,
layout: c,
onChange: oe
}) : null,
- /* @__PURE__ */ (0, I.jsx)(wV, { kind: h === "tags" ? "tag" : h === "series" ? "series" : h === "studios" ? "studio" : h === "agencies" ? "agency" : h === "creators" ? "creator" : "performer" }),
+ /* @__PURE__ */ (0, I.jsx)(TV, { kind: h === "tags" ? "tag" : h === "series" ? "series" : h === "studios" ? "studio" : h === "agencies" ? "agency" : h === "creators" ? "creator" : "performer" }),
h === "tags" ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: t ? "primary" : "ghost",
iconOnly: !0,
className: "flex-none",
"data-tag-mode": "",
- leadingIcon: lV("pencil"),
+ leadingIcon: uV("pencil"),
"aria-label": t ? "返回标签浏览" : "管理标签",
title: t ? "返回标签浏览" : "管理标签",
"aria-pressed": t,
@@ -68500,7 +68500,7 @@ function Bke(e) {
e.exitSelectMode(), d(/* @__PURE__ */ new Set()), n(!t);
}
}) : null,
- /* @__PURE__ */ (0, I.jsx)(EQ, {
+ /* @__PURE__ */ (0, I.jsx)(DQ, {
label: `过滤${b}`,
value: g,
onQuery: (e) => {
@@ -68509,8 +68509,8 @@ function Bke(e) {
})
]
}),
- h === "performers" || h === "creators" ? /* @__PURE__ */ (0, I.jsx)(pW, {
- tabs: Lke,
+ h === "performers" || h === "creators" ? /* @__PURE__ */ (0, I.jsx)(mW, {
+ tabs: Ike,
value: S ? "online" : h,
label: "人物名册",
onChange: (t) => {
@@ -68522,7 +68522,7 @@ function Bke(e) {
}
}) : null,
se,
- t && h === "tags" ? /* @__PURE__ */ (0, I.jsx)(qQ, {
+ t && h === "tags" ? /* @__PURE__ */ (0, I.jsx)(JQ, {
scope: _,
search: g,
category: y,
@@ -68536,8 +68536,8 @@ function Bke(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)(Y, {
+ className: VX,
+ children: BX.filter((e) => e[0] === y || re(e)).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Y, {
variant: y === e ? "primary" : "secondary",
size: "small",
"aria-pressed": y === e,
@@ -68545,7 +68545,7 @@ function Bke(e) {
children: t
}, e))
}) : null,
- h === "tags" ? /* @__PURE__ */ (0, I.jsx)(PQ, {
+ h === "tags" ? /* @__PURE__ */ (0, I.jsx)(FQ, {
categories: le,
category: y,
online: x,
@@ -68561,7 +68561,7 @@ function Bke(e) {
}) : null,
/* @__PURE__ */ (0, I.jsx)("div", {
"data-index-body": "",
- children: /* @__PURE__ */ (0, I.jsx)(FG, {
+ children: /* @__PURE__ */ (0, I.jsx)(IG, {
pending: k,
skeletonHtml: () => h === "tags" ? ic({
mode: v,
@@ -68573,8 +68573,8 @@ function Bke(e) {
}),
children: (() => {
if (k) return null;
- if (D.isError) return /* @__PURE__ */ (0, I.jsx)(sV, {
- icon: lV("alert"),
+ if (D.isError) return /* @__PURE__ */ (0, I.jsx)(cV, {
+ icon: uV("alert"),
title: `没能读取${b}`,
actions: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
@@ -68583,7 +68583,7 @@ function Bke(e) {
}),
children: xn(D.error)
});
- if (!O.length) return /* @__PURE__ */ (0, I.jsx)(Hke, {
+ if (!O.length) return /* @__PURE__ */ (0, I.jsx)(Vke, {
kind: h,
filtered: !!g || y !== "all",
online: x || S,
@@ -68592,12 +68592,12 @@ function Bke(e) {
category: "all"
})
});
- if (S) return /* @__PURE__ */ (0, I.jsx)(wDe, {
+ if (S) return /* @__PURE__ */ (0, I.jsx)(CDe, {
items: O,
layout: c,
props: e
});
- if (GX(h)) return /* @__PURE__ */ (0, I.jsx)(nZ, {
+ if (KX(h)) return /* @__PURE__ */ (0, I.jsx)(rZ, {
kind: h,
items: O,
layout: c,
@@ -68608,10 +68608,10 @@ function Bke(e) {
picked: u,
press: ce
};
- return v === "alphabet" ? /* @__PURE__ */ (0, I.jsx)(MQ, {
+ return v === "alphabet" ? /* @__PURE__ */ (0, I.jsx)(NQ, {
groups: ae,
actions: t
- }) : /* @__PURE__ */ (0, I.jsx)(NQ, {
+ }) : /* @__PURE__ */ (0, I.jsx)(PQ, {
tags: ie,
actions: t
});
@@ -68620,7 +68620,7 @@ function Bke(e) {
}),
h === "tags" && !k && !D.isError ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "mt-5",
- children: /* @__PURE__ */ (0, I.jsx)(zJ, {
+ children: /* @__PURE__ */ (0, I.jsx)(BJ, {
label: "标签",
total: j ?? O.length,
pagination: w,
@@ -68645,7 +68645,7 @@ function Bke(e) {
}) : null, "载入更多"]
})
}) : null,
- h === "tags" && !x && e.selectMode ? /* @__PURE__ */ (0, I.jsx)(Mke, {
+ h === "tags" && !x && e.selectMode ? /* @__PURE__ */ (0, I.jsx)(jke, {
count: u.size,
match: f,
onMatch: p,
@@ -68659,7 +68659,7 @@ function Bke(e) {
]
});
}
-var Vke = {
+var Bke = {
tags: "标签",
performers: "艺人",
creators: "卖家",
@@ -68667,9 +68667,9 @@ var Vke = {
agencies: "事务所",
series: "系列"
};
-function Hke({ kind: e, filtered: t, online: n, onClear: r }) {
- if (t) return /* @__PURE__ */ (0, I.jsx)(sV, {
- icon: lV("search"),
+function Vke({ kind: e, filtered: t, online: n, onClear: r }) {
+ if (t) return /* @__PURE__ */ (0, I.jsx)(cV, {
+ icon: uV("search"),
title: "没有符合条件的内容",
actions: /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
@@ -68678,16 +68678,16 @@ function Hke({ kind: e, filtered: t, online: n, onClear: r }) {
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : Vke[e], a = /* @__PURE__ */ (0, I.jsx)(hL, {
+ let i = n && e === "performers" ? "创作者" : Bke[e], a = /* @__PURE__ */ (0, I.jsx)(gL, {
size: "small",
variant: n ? "primary" : "secondary",
href: "/subscriptions?tab=add",
children: "添加关注"
});
- return /* @__PURE__ */ (0, I.jsx)(sV, {
- icon: lV(e === "tags" ? "tags" : "user-round"),
+ return /* @__PURE__ */ (0, I.jsx)(cV, {
+ icon: uV(e === "tags" ? "tags" : "user-round"),
title: `还没有${i}`,
- actions: n ? a : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(hL, {
+ actions: n ? a : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(gL, {
size: "small",
href: "/settings/library",
children: "添加媒体"
@@ -68695,15 +68695,15 @@ function Hke({ kind: e, filtered: t, online: n, onClear: r }) {
children: n ? `添加关注来源并获取内容后,这里会显示来源上的${i}。` : "添加内容并补充资料后,这里会显示对应信息。"
});
}
-var JQ = {
+var YQ = {
video: ["视频", "play"],
image: ["图片", "pics"],
archive: ["压缩包", "file-archive"],
audio: ["音频", "file-audio"],
url: ["网址快捷方式", "globe"],
other: ["其它文件", "hard-drive"]
-}, Uke = (e) => JQ[e.junk_kind || "other"] || JQ.other;
-function Wke(e) {
+}, Hke = (e) => YQ[e.junk_kind || "other"] || YQ.other;
+function Uke(e) {
return e === "dismissed" ? {
operation: "reconsider-junk",
label: "重新判断",
@@ -68714,40 +68714,40 @@ function Wke(e) {
glyph: "check"
};
}
-var YQ = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), Gke = (e, t) => [
+var XQ = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), Wke = (e, t) => [
"junk-queue",
e.view,
e.kind,
t
];
-function Kke({ kind: e, view: t }) {
+function Gke({ kind: e, view: t }) {
let n = new URLSearchParams({
limit: "200",
status: t
});
return e && n.set("kind", e), n.toString();
}
-async function qke(e, t) {
- let n = await B(`/api/ads?${Kke(e)}`, t);
+async function Kke(e, t) {
+ let n = await B(`/api/ads?${Gke(e)}`, t);
return {
...n,
items: n.items || []
};
}
// src/react/junk-queue/junk-card.tsx
-function XQ({ name: e }) {
+function ZQ({ 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 Jke({ 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] = Uke(e), m = String(e.name || ""), h = Wke(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 QQ = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
+function qke({ 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] = Hke(e), m = String(e.name || ""), h = Uke(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]") || QQ(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(), QQ(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) => {
@@ -68778,7 +68778,7 @@ function Jke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"data-junk-kind": d,
"data-selected": n ? "" : void 0,
onClick: v,
- onMouseDown: tK,
+ onMouseDown: nK,
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-pic": "",
@@ -68786,7 +68786,7 @@ function Jke({ 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)(ZQ, { name: p }), /* @__PURE__ */ (0, I.jsx)("b", { children: f })]
}),
g ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-art": "thumb",
@@ -68798,7 +68798,7 @@ function Jke({ 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)(ZQ, { name: "check" })
})
]
}),
@@ -68835,7 +68835,7 @@ function Jke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
children: [s === "reveal" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-junk-spinner": "",
dangerouslySetInnerHTML: { __html: Vs("正在定位") }
- }) : /* @__PURE__ */ (0, I.jsx)(XQ, { name: "folder-open" }), /* @__PURE__ */ (0, I.jsx)("span", {
+ }) : /* @__PURE__ */ (0, I.jsx)(ZQ, { name: "folder-open" }), /* @__PURE__ */ (0, I.jsx)("span", {
"data-junk-label": "",
children: "打开位置"
})]
@@ -68847,7 +68847,7 @@ function Jke({ 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)(ZQ, { name: h.glyph }), /* @__PURE__ */ (0, I.jsx)("span", {
"data-junk-label": "",
children: h.label
})]
@@ -68859,7 +68859,7 @@ function Jke({ 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)(ZQ, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("span", {
"data-junk-label": "",
children: "移入回收站"
})]
@@ -68874,9 +68874,9 @@ function Jke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
]
});
}
-var Yke = (0, F.memo)(Jke);
+var Jke = (0, F.memo)(qke);
// src/react/components/collection-summary.tsx
-function QQ({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
+function $Q({ 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
@@ -68902,31 +68902,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 e$({ 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 t$({ 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 Xke({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = IV(), a = (0, F.useRef)(null), { kind: o, view: s } = e, c = pL(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? MU.map(([e]) => YQ(t, e)).join(",") : ""}`), l = FU(s), u = (e) => {
+function Yke({ 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]) => XQ(t, e)).join(",") : ""}`), l = IU(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") || PU()));
+ !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || FU()));
}, 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: IU(s),
+ children: /* @__PURE__ */ (0, I.jsx)($Q, {
+ label: LU(s),
figure: d,
pending: !t && !n,
flush: !0
@@ -68946,17 +68946,17 @@ function Xke({ route: e, page: t, failed: n, onNavigate: r }) {
onClick: u,
onPointerLeave: c.leave,
children: [
- MU.map(([e, n, r]) => /* @__PURE__ */ (0, I.jsxs)("a", {
- href: PU(e, s),
+ NU.map(([e, n, r]) => /* @__PURE__ */ (0, I.jsxs)("a", {
+ href: FU(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)(e$, { name: r }),
n,
- /* @__PURE__ */ (0, I.jsx)(e$, {
+ /* @__PURE__ */ (0, I.jsx)(t$, {
scope: e,
- count: t ? YQ(t, e) : 0
+ count: t ? XQ(t, e) : 0
})
]
}, e || "all")),
@@ -68970,9 +68970,9 @@ function Xke({ 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)(e$, { name: l.glyph }),
l.label,
- /* @__PURE__ */ (0, I.jsx)(e$, {
+ /* @__PURE__ */ (0, I.jsx)(t$, {
scope: "dismissed",
count: Number(t?.dismissed_total || 0)
})
@@ -68984,33 +68984,33 @@ function Xke({ route: e, page: t, failed: n, onNavigate: r }) {
});
}
// src/react/junk-queue/junk-queue-page.tsx
-var Zke = lV("check"), Qke = (e, t) => e[1] === t.view && e[2] === t.kind;
-function $ke(e) {
+var Xke = uV("check"), Zke = (e, t) => e[1] === t.view && e[2] === t.kind;
+function Qke(e) {
let t = {
kind: e.kind,
view: e.view
}, n = Ft({
- queryKey: Gke(t, e.revision),
- queryFn: ({ signal: e }) => qke(t, e),
- placeholderData: (e, n) => n && Qke(n.queryKey, t) ? e : void 0
+ queryKey: Wke(t, e.revision),
+ queryFn: ({ signal: e }) => Kke(t, e),
+ placeholderData: (e, n) => n && Zke(n.queryKey, t) ? e : void 0
});
(0, F.useEffect)(() => {
n.isFetching || e.settled?.(e.revision);
}, [n.isFetching, e.revision]);
- let r = eAe(e.countRow), i = n.isPending;
+ let r = $ke(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 && tc(r, "junk");
}, [r, n.data]);
- let { navigate: a } = e.actions, o = r ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Xke, {
+ let { navigate: a } = e.actions, o = r ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Yke, {
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)(tAe, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [o, /* @__PURE__ */ (0, I.jsx)(eAe, {
props: e,
data: n.data,
pending: i,
@@ -69018,7 +69018,7 @@ function $ke(e) {
retry: () => void n.refetch()
}, `${t.view}:${t.kind}`)] });
}
-function eAe(e) {
+function $ke(e) {
let [t, n] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
if (!e) return;
@@ -69028,8 +69028,8 @@ function eAe(e) {
};
}, [e]), t;
}
-function tAe({ props: e, data: t, pending: n, error: r, retry: i }) {
- let a = fxe(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 eAe({ props: e, data: t, pending: n, error: r, retry: i }) {
+ let a = dxe(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", {
@@ -69037,16 +69037,16 @@ function tAe({ 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)(PG, {
+ if (!t) return /* @__PURE__ */ (0, I.jsx)(FG, {
message: xn(r),
onRetry: i
});
if (!l.length) {
let t = e.view === "dismissed";
- return /* @__PURE__ */ (0, I.jsx)(sV, {
- icon: Zke,
+ return /* @__PURE__ */ (0, I.jsx)(cV, {
+ icon: Xke,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
- actions: t ? /* @__PURE__ */ (0, I.jsx)(hL, {
+ actions: t ? /* @__PURE__ */ (0, I.jsx)(gL, {
size: "small",
href: "/junk-files",
children: "查看待判断"
@@ -69059,7 +69059,7 @@ function tAe({ 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)(Yke, {
+ children: u.map((t) => /* @__PURE__ */ (0, I.jsx)(Jke, {
item: t,
view: e.view,
selected: e.selected.has(t.id),
@@ -69068,7 +69068,7 @@ function tAe({ props: e, data: t, pending: n, error: r, retry: i }) {
actions: e.actions
}, t.id))
}),
- u.length < l.length ? /* @__PURE__ */ (0, I.jsx)(nAe, { onMore: f }, s) : null,
+ u.length < l.length ? /* @__PURE__ */ (0, I.jsx)(tAe, { 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",
@@ -69078,14 +69078,14 @@ function tAe({ props: e, data: t, pending: n, error: r, retry: i }) {
})()]
});
}
-function nAe({ onMore: e }) {
+function tAe({ 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: NG });
+ }, { rootMargin: PG });
return r.observe(n), () => r.disconnect();
}, [e]), /* @__PURE__ */ (0, I.jsx)("div", {
ref: t,
@@ -69095,22 +69095,22 @@ function nAe({ onMore: e }) {
});
}
// src/react/components/fieldset-layout.ts
-var rAe = yU({
+var nAe = bU({
padding: "none",
className: "overflow-hidden"
-}), t$ = {
+}), n$ = {
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$ = {
+}, r$ = {
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 `${rAe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`;
+function i$(e) {
+ return `${nAe} ${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: yU({
+var a$ = "inline-grid w-full grid-cols-2 gap-3 max-cleanup-tight:grid-cols-1", o$ = {
+ face: bU({
padding: "none",
radius: "plain",
interactive: !0,
@@ -69122,34 +69122,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"
-}, iAe = [
+}, rAe = [
"text-chart-6",
"text-chart-5",
"text-chart-7",
"text-chart-8"
-], aAe = [
+], iAe = [
"bg-chart-6/10",
"bg-chart-5/10",
"bg-chart-7/10",
"bg-chart-8/10"
];
-function oAe(e = {}) {
- return `${yU({
+function aAe(e = {}) {
+ return `${bU({
...e,
padding: "none"
})} flex flex-col overflow-hidden pt-4 text-left`;
}
-var sAe = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", cAe = "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 yU({
+var oAe = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", sAe = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
+function s$({ interactive: e = !1 } = {}) {
+ return bU({
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 lAe({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
+var c$ = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
+function cAe({ 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",
@@ -69182,13 +69182,13 @@ function lAe({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMet
})
] });
}
-function uAe({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
+function lAe({ 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 ${iAe[n % 4]} ${aAe[n % 4]}`,
+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${rAe[n % 4]} ${iAe[n % 4]}`,
children: /* @__PURE__ */ (0, I.jsx)(t, {
"aria-hidden": !0,
className: "size-4"
@@ -69209,96 +69209,96 @@ function uAe({ 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", dAe = "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 l$ = "发现新文件,补全新增及未完成影片的资料和预览。需要检查全部影片时,使用全库维护。", u$ = "部分视频文件可能播放卡顿、打不开,修复缺时间戳表和缺索引的问题。", d$ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", f$ = "disabled data-skeleton-action", uAe = "aria-disabled=\"true\"", p$ = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, m$ = (e, t, n) => `<div class="${n$[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 fAe() {
- 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>${Es("arrow-up", "size-(--icon-inline) shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${ks({
+function dAe() {
+ return p$(`<section aria-label="扫描与采集" class="${i$("stack")}" data-cleanup-task data-cleanup-processing>
+ ${m$("扫描与采集", l$, "stack")}
+ <footer class="${r$.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>${Es("arrow-up", "size-(--icon-inline) shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${ks({
label: "同步新增文件",
- attrs: d$
+ attrs: f$
})}${ks({
glyph: "chevron-down",
- attrs: `${d$} aria-label="更多同步方式"`
+ attrs: `${f$} aria-label="更多同步方式"`
})}</span></footer>
</section>`);
}
-function pAe() {
- return f$(`<section aria-label="媒体修复" class="${r$("split")}" data-cleanup-task data-cleanup-processing>
- ${p$("媒体修复", l$, "split")}
- <footer class="${n$.split}">${js(u$, {
+function fAe() {
+ return p$(`<section aria-label="媒体修复" class="${i$("split")}" data-cleanup-task data-cleanup-processing>
+ ${m$("媒体修复", u$, "split")}
+ <footer class="${r$.split}">${js(d$, {
className: "w-48",
- attrs: dAe
+ attrs: uAe
})}${ks({
label: "开始修复",
- attrs: d$
+ attrs: f$
})}</footer>
</section>`);
}
-function mAe() {
- let e = (e, t, n, r = "") => `<div class="${a$.face}"><span class="${a$.icon}">${Es(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>${Es("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">${Es(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) => Xf.filter((e) => e.key === "batch-delete" === t).map((t) => e(t.title, t.icon, t.description)).join("");
+function pAe() {
+ let e = (e, t, n, r = "") => `<div class="${o$.face}"><span class="${o$.icon}">${Es(t, "size-5")}</span><span class="${o$.body}"><span class="${o$.title}">${e}</span><span class="${o$.summary}">${n}</span>${r ? `<span class="${o$.detail}">${r}</span>` : ""}</span>${Es("chevron-right", o$.arrow)}</div>`, t = (e, t) => `<div class="${s$()}"><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">${Es(t, "size-4")}</i><span>${e}</span></span><strong class="block text-title-1-medium tabular-nums text-text-primary">${d$}</strong><span class="block min-h-4 text-caption-1-regular text-text-tertiary">${d$}</span></div>`, n = (e) => `<h2 class="text-title-2-medium! m-0! text-text-primary">${e}</h2>`, r = (t) => Xf.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="${c$}">${[
["人工复核", "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">${fAe()}</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">${dAe()}</div>
+ <section class="flex flex-col gap-4">${n("整理与维护")}<div class="${a$}">${r(!1)}</div></section>
+ <section class="flex flex-col gap-4">${n("清理与删除")}<div class="${a$}">${r(!0)}</div></section>
</div></div>`;
}
// src/react/components/fieldset.tsx
-var hAe = yU({
+var mAe = bU({
padding: "none",
radius: "surface",
className: "overflow-hidden"
-}), gAe = "border-t border-border-button-default p-4 first:border-t-0";
-function _Ae({ id: e, children: t }) {
+}), hAe = "border-t border-border-button-default p-4 first:border-t-0";
+function gAe({ 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 h$({ 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 g$({ 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: i$(e),
children: [/* @__PURE__ */ (0, I.jsx)("div", {
- className: t$[e],
+ className: n$[e],
children: a
}), i ? /* @__PURE__ */ (0, I.jsx)("footer", {
- className: n$[e],
+ className: r$[e],
children: i
}) : null]
});
}
// src/react/components/name-link.tsx
-function g$({ className: e, ...t }) {
+function _$({ className: e, ...t }) {
return /* @__PURE__ */ (0, I.jsx)("a", {
...t,
className: J("text-body-2-medium underline-offset-4 hover:underline", e)
});
}
// src/react/components/issue-row.tsx
-function _$({ title: e, href: t, children: n }) {
+function v$({ 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)(_$, {
href: t,
children: e
}) : /* @__PURE__ */ (0, I.jsx)("span", {
@@ -69308,23 +69308,23 @@ function _$({ title: e, href: t, children: n }) {
});
}
// src/react/components/status-label.tsx
-var vAe = {
+var _Ae = {
success: "lime",
progress: "blue",
warning: "yellow",
error: "rose",
neutral: "neutral"
};
-function v$({ tone: e = "neutral", ...t }) {
- return /* @__PURE__ */ (0, I.jsx)(HU, {
+function y$({ tone: e = "neutral", ...t }) {
+ return /* @__PURE__ */ (0, I.jsx)(UU, {
"data-status-tone": e,
variant: "caption",
- color: vAe[e],
+ color: _Ae[e],
...t
});
}
// src/react/components/path-line.tsx
-function yAe({ className: e }) {
+function vAe({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -69337,8 +69337,8 @@ function yAe({ className: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-folder-open" })
});
}
-var bAe = "打开文件管理器失败,请重试";
-function y$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
+var yAe = "打开文件管理器失败,请重试";
+function b$({ 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;
@@ -69349,7 +69349,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 : bAe);
+ l.current && c(e instanceof sr ? e.message : yAe);
} finally {
l.current && o(!1);
}
@@ -69364,12 +69364,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)(rL, {
- icon: yAe,
+ children: [/* @__PURE__ */ (0, I.jsx)(iL, {
+ icon: vAe,
size: "small",
"aria-label": "在资源管理器中显示",
onClick: () => void u(),
- ...dV(a)
+ ...fV(a)
}), r]
})]
}), s ? /* @__PURE__ */ (0, I.jsx)("p", {
@@ -69379,7 +69379,7 @@ function y$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
});
}
// src/react/library-processing/issue-export.ts
-async function xAe(e, t) {
+async function bAe(e, t) {
if (!e.job_id) throw Error("请先选择有问题记录的任务");
let n = [], r = 1, i = "";
for (let a = 0; a < r; a += 200) {
@@ -69402,69 +69402,69 @@ async function xAe(e, t) {
rows: n
}, null, 2);
}
-function SAe(e, t) {
+function xAe(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 CAe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", wAe = (e) => {
+var SAe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", CAe = (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(",")}。`;
-}, TAe = (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} 部视频预览。` : "") + wAe(e);
-function EAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = ive(e), o = dH(), s = dH(), [c, l] = (0, F.useState)(""), u = ZV(e), d = e.status === "failed" && !!e.retryable_asset_ids?.length, f = tve(e.notes || {}), p = !!t || !e.archived && e.status === "failed", m = !t && !e.archived && QV(e), h = p || !e.archived && !u && (!!f || !!e.issue_count), g = !u && !!e.job_id && !e.archived, _ = e.issues_log || "", v = YV(e), y = IV(), b = (t) => void s.run(t ? "archive" : "unarchive", (n) => V(qV, {
+}, wAe = (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} 部视频预览。` : "") + CAe(e);
+function TAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
+ let a = rve(e), o = fH(), s = fH(), [c, l] = (0, F.useState)(""), u = QV(e), d = e.status === "failed" && !!e.retryable_asset_ids?.length, f = eve(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, {
action: t ? "archive" : "unarchive",
job_id: e.job_id
}, "POST", n), (n) => {
- H.setQueryData(JV, n), l(t ? e.job_id : "");
+ H.setQueryData(YV, n), l(t ? e.job_id : "");
}), x = e.issue_count && !u ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
- ...dV(!!o.busy),
- onClick: () => void o.run("export", (t) => xAe(e, t), (t) => {
- SAe(e.job_id, t), i("已导出问题清单");
+ ...fV(!!o.busy),
+ onClick: () => void o.run("export", (t) => bAe(e, t), (t) => {
+ xAe(e.job_id, t), i("已导出问题清单");
}),
children: "导出完整问题清单"
}) : null, S = p ? [
t || e.error || "处理未完成,请重试",
- m ? $V : "",
+ m ? eH : "",
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)(sve, {
+ v ? /* @__PURE__ */ (0, I.jsx)(ove, {
state: e,
slow: v
- }) : e.status === "running" && e.stalled ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ }) : e.status === "running" && e.stalled ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "warning",
title: "处理较慢",
- children: CAe
+ children: SAe
}) : null,
- n?.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ n?.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "success",
title: "处理完成",
- children: TAe(n)
+ children: wAe(n)
}) : null,
- (n ?? e).status === "cancelled" && !e.archived ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ (n ?? e).status === "cancelled" && !e.archived ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "neutral",
title: "已取消上次任务",
children: "已取得的资料和预览已保留,这一轮不会自动继续,需要时重新同步。"
}) : null,
- h ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ h ? /* @__PURE__ */ (0, I.jsx)(sV, {
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)(uH, {
- href: eH,
+ m ? /* @__PURE__ */ (0, I.jsx)(dH, {
+ href: tH,
size: "small",
- trailingIcon: hB,
+ trailingIcon: gB,
children: "查看全部内容"
}) : null,
d ? /* @__PURE__ */ (0, I.jsx)(Y, {
@@ -69478,7 +69478,7 @@ function EAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
variant: "secondary",
size: "small",
"aria-label": "归档提示",
- ...dV(!!s.busy),
+ ...fV(!!s.busy),
onClick: () => b(!0),
children: "归档"
}) : null
@@ -69486,7 +69486,7 @@ function EAe({ 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)(FH, {
+ children: /* @__PURE__ */ (0, I.jsx)(IH, {
summary: a.label,
contentClassName: "gap-0",
children: /* @__PURE__ */ (0, I.jsx)("div", {
@@ -69494,7 +69494,7 @@ function EAe({ 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)(v$, {
title: e.label,
href: e.href,
children: [/* @__PURE__ */ (0, I.jsx)("span", {
@@ -69510,7 +69510,7 @@ function EAe({ 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)(b$, {
path: _,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -69523,70 +69523,70 @@ function EAe({ 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)(oV, {
+ e.archived && c === e.job_id && !t ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
- ...dV(!!s.busy),
+ ...fV(!!s.busy),
onClick: () => b(!1),
children: "撤销"
}),
children: "已归档上一趟的问题提示,完整记录仍保留。"
}) : null,
- o.error || s.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ o.error || s.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "warning",
children: o.error || s.error
}) : null
]
});
}
-function b$(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = SH(e), o = It({
- mutationFn: (e) => V(qV, e),
+function x$(e) {
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = CH(e), o = It({
+ mutationFn: (e) => V(JV, e),
onSuccess: (e) => {
- a(), H.setQueryData(JV, e), H.invalidateQueries({ queryKey: JV });
+ a(), H.setQueryData(YV, e), H.invalidateQueries({ queryKey: YV });
}
});
(0, F.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = s.job_id || "unavailable", { hidden: l } = ZH(c), u = o.error ? lr(o.error) : r.isError ? r.data ? iH : lr(r.error) : "", d = o.isPending || ZV(s), f = async (e) => {
+ 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) => {
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)(g$, {
layout: "stack",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(uH, {
+ /* @__PURE__ */ (0, I.jsx)(dH, {
href: "/sources",
size: "small",
- trailingIcon: hB,
+ trailingIcon: gB,
children: "来源和凭证"
}),
- /* @__PURE__ */ (0, I.jsx)(uH, {
+ /* @__PURE__ */ (0, I.jsx)(dH, {
href: "/settings/diagnostics",
size: "small",
- trailingIcon: hB,
+ trailingIcon: gB,
children: "诊断与日志"
}),
- s.candidates ? /* @__PURE__ */ (0, I.jsx)(uH, {
+ s.candidates ? /* @__PURE__ */ (0, I.jsx)(dH, {
href: "/review",
size: "small",
- trailingIcon: hB,
+ trailingIcon: gB,
children: "复核资料"
}) : null,
- /* @__PURE__ */ (0, I.jsx)(DK, {
+ /* @__PURE__ */ (0, I.jsx)(OK, {
scan: !0,
busy: o.isPending,
- occupied: ZV(s),
+ occupied: QV(s),
metadataOnly: s?.metadata_only,
speedMode: s.speed_mode,
pendingCount: s.new_asset_count,
onRun: f,
- onOccupied: () => t($_e(s))
+ onOccupied: () => t(Q_e(s))
})
] }),
children: /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -69596,7 +69596,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)(HU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(h$, { children: "扫描与采集" }), s.new_asset_count ? /* @__PURE__ */ (0, I.jsx)(UU, {
variant: "caption",
color: "blue",
children: /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -69604,31 +69604,31 @@ function b$(e) {
children: [s.new_asset_count.toLocaleString(), " 部待补全"]
})
}) : null]
- }), l && (ZV(s) || s.status === "failed" || r.isError) ? /* @__PURE__ */ (0, I.jsx)(Y, {
+ }), l && (QV(s) || s.status === "failed" || r.isError) ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
- onClick: () => XH(c, !0),
+ onClick: () => ZH(c, !0),
children: "显示进度浮窗"
}) : null]
}),
/* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: c$
+ children: l$
}),
s.status === "paused" && !s.total ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, I.jsx)(v$, { children: "已暂停" })
- }) : ZV(s) ? /* @__PURE__ */ (0, I.jsx)(hve, { state: s }) : null,
- ZV(s) ? /* @__PURE__ */ (0, I.jsx)("p", {
+ children: /* @__PURE__ */ (0, I.jsx)(y$, { children: "已暂停" })
+ }) : QV(s) ? /* @__PURE__ */ (0, I.jsx)(mve, { state: s }) : null,
+ QV(s) ? /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular text-text-secondary tabular-nums",
"data-processing-eta": "",
- children: tH(s)
+ children: nH(s)
}) : null,
- ZV(s) ? /* @__PURE__ */ (0, I.jsx)(UH, { traffic: s.traffic }) : null,
- ZV(s) ? /* @__PURE__ */ (0, I.jsx)(xH, { state: s }) : null
+ QV(s) ? /* @__PURE__ */ (0, I.jsx)(WH, { traffic: s.traffic }) : null,
+ QV(s) ? /* @__PURE__ */ (0, I.jsx)(SH, { state: s }) : null
]
})
- }), /* @__PURE__ */ (0, I.jsx)(EAe, {
+ }), /* @__PURE__ */ (0, I.jsx)(TAe, {
state: s,
problem: u,
settled: i,
@@ -69643,32 +69643,32 @@ function b$(e) {
});
}
// src/react/playlists/playlists.ts
-var DAe = "/api/playlists", x$ = "/api/playlist", S$ = ["playlists"], C$ = (e) => B(DAe, e);
-async function OAe(e) {
+var EAe = "/api/playlists", S$ = "/api/playlist", C$ = ["playlists"], w$ = (e) => B(EAe, e);
+async function DAe(e) {
await H.fetchQuery({
- queryKey: S$,
- queryFn: () => C$(e),
+ queryKey: C$,
+ queryFn: () => w$(e),
staleTime: 0
});
}
-var kAe = () => H.invalidateQueries({
- queryKey: S$,
+var OAe = () => H.invalidateQueries({
+ queryKey: C$,
exact: !0
-}), AAe = (e) => e.current_asset_id || e.preview_asset_id || null, jAe = (e) => `/poster?id=${e}&c=4`, MAe = (e) => V(x$, {
+}), kAe = (e) => e.current_asset_id || e.preview_asset_id || null, AAe = (e) => `/poster?id=${e}&c=4`, jAe = (e) => V(S$, {
action: "create",
name: e,
asset_ids: []
-}), NAe = (e, t) => V(x$, {
+}), MAe = (e, t) => V(S$, {
action: "rename",
id: e,
name: t
-}), PAe = (e) => V(x$, {
+}), NAe = (e) => V(S$, {
action: "delete",
id: e
-}), FAe = (e) => B(`${x$}?id=${e}`).catch(() => null);
-function IAe(e) {
+}), PAe = (e) => B(`${S$}?id=${e}`).catch(() => null);
+function FAe(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
- return V(x$, {
+ return V(S$, {
action: "create",
name: e.name,
asset_ids: t,
@@ -69677,13 +69677,9 @@ function IAe(e) {
});
}
// src/react/scraping/custom-source-data.ts
-var w$ = "/api/custom-metadata", T$ = ["custom-metadata"], E$ = (e) => B(w$, e), LAe = "/api/scraping", RAe = "/api/scraping/settings", zAe = "/api/scraping/check", D$ = "/api/scraping/check-all", O$ = "/api/scraping/cover", BAe = "/api/scraping/amane-bridge", VAe = "/api/scraping/amane-bridge/check", HAe = "/api/scraping/amane-bridge/rebuild", k$ = ["scraping"], A$ = ["scraping", "cover"], j$ = ["scraping", "check-all"], M$ = ["scraping", "amane-bridge"], UAe = 262144, N$ = (e) => B(LAe, e), P$ = (e) => B(O$, e), F$ = (e) => B(D$, e), I$ = (e) => B(BAe, e);
-async function WAe(e) {
+var T$ = "/api/custom-metadata", E$ = ["custom-metadata"], D$ = (e) => B(T$, e), IAe = "/api/scraping", LAe = "/api/scraping/settings", RAe = "/api/scraping/check", O$ = "/api/scraping/check-all", k$ = "/api/scraping/cover", zAe = "/api/scraping/amane-bridge", BAe = "/api/scraping/amane-bridge/check", VAe = "/api/scraping/amane-bridge/rebuild", A$ = ["scraping"], j$ = ["scraping", "cover"], M$ = ["scraping", "check-all"], N$ = ["scraping", "amane-bridge"], HAe = 262144, P$ = (e) => B(IAe, e), F$ = (e) => B(k$, e), I$ = (e) => B(O$, e), L$ = (e) => B(zAe, e);
+async function UAe(e) {
await Promise.all([
- H.fetchQuery({
- queryKey: k$,
- queryFn: () => N$(e)
- }),
H.fetchQuery({
queryKey: A$,
queryFn: () => P$(e)
@@ -69697,28 +69693,32 @@ async function WAe(e) {
queryFn: () => I$(e)
}),
H.fetchQuery({
- queryKey: T$,
- queryFn: () => E$(e)
+ queryKey: N$,
+ queryFn: () => L$(e)
+ }),
+ H.fetchQuery({
+ queryKey: E$,
+ queryFn: () => D$(e)
})
]);
}
-function GAe(e, t) {
+function WAe(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 L$ = /* @__PURE__ */ new Set([
+var R$ = /* @__PURE__ */ new Set([
"performer",
"creator",
"studio",
"agency",
"series"
-]), R$ = /* @__PURE__ */ new Set([
+]), z$ = /* @__PURE__ */ new Set([
"asset",
"jav",
"post",
"photo",
"release"
]);
-function z$(e) {
+function B$(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;
@@ -69728,15 +69728,15 @@ function z$(e) {
items: Array.from({ length: n }, (e, n) => t[(r + n) % t.length])
};
}
-var B$ = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
-function KAe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o, recommendations: s = [] }) {
+var V$ = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
+function GAe({ 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 || B$(t).includes(B$(e)));
+ }, d = t.filter((t) => !e || V$(t).includes(V$(e)));
if (!e) {
if (s.length) {
let e = ({ pending: e, pool: t, offset: n, size: r, ...i }) => ({
@@ -69747,9 +69747,9 @@ function KAe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
kind: i.kind,
item: e
})),
- pending: e ? R$.has(i.kind) ? 5 : 3 : void 0,
+ pending: e ? z$.has(i.kind) ? 5 : 3 : void 0,
shuffle: (t?.length ?? 0) > i.items.length || void 0
- }), t = s.filter((e) => !R$.has(e.kind)).map(e);
+ }), t = s.filter((e) => !z$.has(e.kind)).map(e);
return d.length && t.push({
label: "搜索记录",
options: d.map((e) => u({
@@ -69760,7 +69760,7 @@ function KAe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
tabs: null,
recent: null,
left: t,
- right: s.filter((e) => R$.has(e.kind)).map(e),
+ right: s.filter((e) => z$.has(e.kind)).map(e),
empty: !1,
options: l
};
@@ -69810,7 +69810,7 @@ function KAe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: n,
more: r
};
- }, g = m.filter((e) => !R$.has(e.kind)).map(h), _ = m.filter((e) => R$.has(e.kind)).map(h), v = f && !m.some((e) => e.items.length);
+ }, g = m.filter((e) => !z$.has(e.kind)).map(h), _ = m.filter((e) => z$.has(e.kind)).map(h), v = f && !m.some((e) => e.items.length);
return {
tabs: f && a.length > 1 ? [...a] : null,
recent: p,
@@ -69820,16 +69820,16 @@ function KAe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: l
};
}
-function qAe(e, t, n = Math.random) {
+function KAe(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) => B$(t) === B$(e))).slice(0, 5);
+ return r.filter((e) => !t.some((t) => V$(t) === V$(e))).slice(0, 5);
}
// src/react/search/search-page.tsx
-var JAe = () => ({
+var qAe = () => ({
dismissed: !1,
history: [],
pool: [],
@@ -69855,7 +69855,7 @@ var JAe = () => ({
active: -1,
reveal: !1,
rewind: !1
-}), V$ = (e) => KAe({
+}), H$ = (e) => GAe({
query: e.query,
history: e.history,
picks: e.picks,
@@ -69864,27 +69864,27 @@ var JAe = () => ({
tabs: e.tabs,
kind: e.kind,
recommendations: e.recommendations
-}), YAe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), H$ = 4e3, XAe = 5e3, U$ = 1200;
-function ZAe(e) {
+}), JAe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), U$ = 4e3, YAe = 5e3, W$ = 1200;
+function XAe(e) {
if (window.requestIdleCallback) {
- let t = window.requestIdleCallback(e, { timeout: H$ });
+ let t = window.requestIdleCallback(e, { timeout: U$ });
return () => window.cancelIdleCallback(t);
}
- let t = window.setTimeout(e, H$);
+ let t = window.setTimeout(e, U$);
return () => window.clearTimeout(t);
}
-var W$ = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
+var G$ = ({ 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 QAe(e) {
+function ZAe(e) {
let t = (0, F.useRef)(e);
t.current = e;
let n = (0, F.useRef)(null);
- n.current ??= JAe();
+ n.current ??= qAe();
let r = n.current, i = (0, F.useRef)(null), [, a] = (0, F.useReducer)((e) => e + 1, 0), o = (0, F.useRef)(null);
- o.current ??= eje(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
+ o.current ??= $Ae(() => 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 = () => {
@@ -69895,7 +69895,7 @@ function QAe(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, XAe);
+ let u = window.setInterval(s.rotatePlaceholder, YAe);
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);
};
@@ -69903,7 +69903,7 @@ function QAe(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 = V$(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, I.jsx)(nje, {
+ let c = H$(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, I.jsx)(tje, {
entry: t,
active: t.index === r.active,
helpers: e.helpers,
@@ -69912,7 +69912,7 @@ function QAe(e) {
onRemove: s.remove
}, `${t.type}:${t.value}:${t.index}`), d = (e) => e.href ? /* @__PURE__ */ (0, I.jsx)("a", {
href: e.href,
- onMouseDown: q$,
+ onMouseDown: J$,
onClick: (t) => {
t.ctrlKey || t.metaKey || t.shiftKey || t.altKey || (t.preventDefault(), s.openPath(e.href));
},
@@ -69929,15 +69929,15 @@ function QAe(e) {
"aria-label": `${e.label}换一批`,
title: "换一批",
"aria-busy": f(e.kind) || void 0,
- onMouseDown: q$,
+ onMouseDown: J$,
onClick: () => s.reshuffle(e.kind),
- children: /* @__PURE__ */ (0, I.jsx)(W$, { name: "shuffle" })
+ children: /* @__PURE__ */ (0, I.jsx)(G$, { name: "shuffle" })
}), d(e)]
}) : d(e)] }),
e.pending ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-search-items": "",
"aria-busy": "true",
- children: $Ae(e)
+ children: QAe(e)
}) : e.kind ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-search-items": "",
children: e.options.map(u)
@@ -69951,7 +69951,7 @@ function QAe(e) {
"data-search-recommendations": !r.query && r.recommendations.length ? "" : void 0,
"data-history-limit": l,
children: [
- c.tabs ? /* @__PURE__ */ (0, I.jsx)(tje, {
+ c.tabs ? /* @__PURE__ */ (0, I.jsx)(eje, {
tabs: c.tabs,
kind: r.kind,
onPick: s.pickKind,
@@ -69977,7 +69977,7 @@ function QAe(e) {
]
});
}
-function G$(e, t) {
+function K$(e, t) {
let n = e.flatMap((e) => e.items.flatMap((e) => [
e.card ? t.coverHtml(e.card) : "",
e.avatarHtml || "",
@@ -69989,9 +69989,9 @@ function G$(e, t) {
t && (new Image().src = t);
}
}
-var K$ = "\xA0";
-function $Ae(e) {
- let t = R$.has(e.kind ?? "");
+var q$ = "\xA0";
+function QAe(e) {
+ let t = z$.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": "",
@@ -70003,10 +70003,10 @@ function $Ae(e) {
"data-search-meta": "",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-search-name": "",
- children: K$
+ children: q$
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-search-sub": "",
- children: K$
+ children: q$
})]
})]
}, n) : /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -70017,15 +70017,15 @@ function $Ae(e) {
"data-search-meta": "",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-search-name": "",
- children: K$
+ children: q$
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-search-sub": "",
- children: K$
+ children: q$
})]
})]
}, n));
}
-function eje(e, t, n, r) {
+function $Ae(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 () => {
@@ -70036,7 +70036,7 @@ function eje(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) => B$(e) !== B$(t))]), V("/api/search-history", { query: t }).catch(() => null));
+ t && e().historyLimit && (s([t, ...o().filter((e) => V$(e) !== V$(t))]), V("/api/search-history", { query: t }).catch(() => null));
}, u = (n) => {
let r = i();
r.dataset.suggestion = n, t.cancelRoll();
@@ -70061,7 +70061,7 @@ function eje(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, G$(n.map(z$), e().helpers), a() && !i().value.trim() && x()) : (t.nextRecommendations = n, G$(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, K$(n.map(B$), e().helpers), a() && !i().value.trim() && x()) : (t.nextRecommendations = n, K$(n, e().helpers)));
}, () => {
r === t.recommendationRequest && t.recommendationsFilling && (t.recommendations = [], t.recommendationsFilling = !1, a() && !i().value.trim() && x());
}).finally(() => {
@@ -70069,18 +70069,18 @@ function eje(e, t, n, r) {
});
}, m = () => {
let n = e().helpers;
- n.recommendations && (t.nextRecommendations && (t.recommendations = t.nextRecommendations, t.nextRecommendations = null, G$(t.recommendations.map(z$), n)), !t.recommendations.length && (t.recommendations = n.pendingRecommendations?.() ?? [], t.recommendationsFilling = !0, p()));
+ n.recommendations && (t.nextRecommendations && (t.recommendations = t.nextRecommendations, t.nextRecommendations = null, K$(t.recommendations.map(B$), n)), !t.recommendations.length && (t.recommendations = n.pendingRecommendations?.() ?? [], t.recommendationsFilling = !0, p()));
}, h = () => {
- t.cancelIdle(), t.cancelIdle = ZAe(() => {
+ t.cancelIdle(), t.cancelIdle = XAe(() => {
t.nextRecommendations || p();
});
}, g = h, _ = (n) => {
- t.recommendations = t.recommendations.map((e) => e.kind === n ? z$(e) : e), t.shuffled = {
+ t.recommendations = t.recommendations.map((e) => e.kind === n ? B$(e) : e), t.shuffled = {
...t.shuffled,
- [n]: Date.now() + U$
- }, window.setTimeout(r, U$);
+ [n]: Date.now() + W$
+ }, window.setTimeout(r, W$);
let i = t.recommendations.find((e) => e.kind === n);
- i && G$([z$(i)], e().helpers), r();
+ i && K$([B$(i)], e().helpers), r();
}, v = async (e, n = "") => {
let r = ++t.suggestRequest;
n || (t.asked = e);
@@ -70107,9 +70107,9 @@ function eje(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 ? [] : qAe(t.pool, o()), t.active = -1;
+ t.query = i().value.trim(), t.picks = t.query ? [] : KAe(t.pool, o()), t.active = -1;
let a = n();
- a && (YAe(V$(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
+ a && (JAe(H$(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
}, S = () => {
t.active = -1, t.kind = "", clearTimeout(t.timer);
let e = i().value.trim();
@@ -70121,7 +70121,7 @@ function eje(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() ? V$(t).options : [], T = (e) => {
+ }, w = () => y() ? H$(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) => {
@@ -70130,16 +70130,16 @@ function eje(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" && L$.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" && R$.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(), !ZU(n) && (t.dismissed = !1, e().helpers.typed(i()), S());
+ t.cancelRoll(), !QU(n) && (t.dismissed = !1, e().helpers.typed(i()), S());
},
key: (n) => {
- if (ZU(n)) return;
+ if (QU(n)) return;
let r = i();
if (n.key === "Escape") {
if (y()) {
@@ -70176,7 +70176,7 @@ function eje(e, t, n, r) {
await V("/api/search-history", {
operation: "remove",
query: e
- }).catch(() => null), s(o().filter((t) => B$(t) !== B$(e))), t.active = -1, r();
+ }).catch(() => null), s(o().filter((t) => V$(t) !== V$(e))), t.active = -1, r();
},
pickKind: C,
openPath: k,
@@ -70186,7 +70186,7 @@ function eje(e, t, n, r) {
rotatePlaceholder: d
};
}
-function tje({ tabs: e, kind: t, onPick: n, wire: r }) {
+function eje({ tabs: e, kind: t, onPick: n, wire: r }) {
let i = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => {
r(i.current);
@@ -70200,9 +70200,9 @@ function tje({ 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)(fW, { value: i }) : null]
+ children: [r, i ? /* @__PURE__ */ (0, I.jsx)(pW, { value: i }) : null]
}, e || "all");
- return /* @__PURE__ */ (0, I.jsxs)(MI, {
+ return /* @__PURE__ */ (0, I.jsxs)(NI, {
ref: i,
"data-search-tabs": "",
"data-pill-nav": "",
@@ -70211,9 +70211,9 @@ function tje({ tabs: e, kind: t, onPick: n, wire: r }) {
children: [a("", "全部"), e.map((e) => a(e.kind, e.label, e.total))]
});
}
-var q$ = (e) => e.preventDefault();
-function nje({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
- eL();
+var J$ = (e) => e.preventDefault();
+function tje({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
+ tL();
let o = {
"data-search-value": e.value,
"data-active": t ? "" : void 0,
@@ -70225,33 +70225,33 @@ function nje({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
type: "button",
"data-search-option": "more",
...o,
- onMouseDown: q$,
+ onMouseDown: J$,
children: [
"查看全部 ",
e.total.toLocaleString(),
" 个视频",
- /* @__PURE__ */ (0, I.jsx)(W$, { name: "chevron-right" })
+ /* @__PURE__ */ (0, I.jsx)(G$, { name: "chevron-right" })
]
});
if (e.type !== "suggest") return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-search-option": "",
...o,
children: [
- /* @__PURE__ */ (0, I.jsx)(W$, { name: e.type === "history" ? "history" : "sparkles" }),
+ /* @__PURE__ */ (0, I.jsx)(G$, { 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: q$,
+ onMouseDown: J$,
onClick: (t) => {
t.stopPropagation(), a(e.value);
},
- children: /* @__PURE__ */ (0, I.jsx)(W$, { name: "x" })
+ children: /* @__PURE__ */ (0, I.jsx)(G$, { name: "x" })
}) : null
]
});
- let { item: s, kind: c } = e, l = L$.has(c) ? c : void 0;
+ let { item: s, kind: c } = e, l = R$.has(c) ? c : void 0;
if ([
"asset",
"jav",
@@ -70265,8 +70265,8 @@ function nje({ 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: q$,
- children: [/* @__PURE__ */ (0, I.jsx)(J$, {
+ onMouseDown: J$,
+ children: [/* @__PURE__ */ (0, I.jsx)(Y$, {
card: s.card,
helpers: n
}), /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -70295,9 +70295,9 @@ function nje({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-search-option": "person",
"data-open-entity": l,
...o,
- onMouseDown: q$,
+ onMouseDown: J$,
children: [
- /* @__PURE__ */ (0, I.jsx)(Y$, {
+ /* @__PURE__ */ (0, I.jsx)(X$, {
item: s,
kind: c
}),
@@ -70320,11 +70320,11 @@ function nje({ 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: q$,
+ onMouseDown: J$,
onClick: (t) => {
t.stopPropagation(), i(e);
},
- children: /* @__PURE__ */ (0, I.jsx)(J$, {
+ children: /* @__PURE__ */ (0, I.jsx)(Y$, {
card: e,
helpers: n
})
@@ -70338,7 +70338,7 @@ function nje({ 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)(Y$, {
+ c === "studio" || c === "agency" ? /* @__PURE__ */ (0, I.jsx)(X$, {
item: s,
kind: c
}) : null,
@@ -70351,13 +70351,13 @@ function nje({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
]
});
}
-function J$({ card: e, helpers: t }) {
+function Y$({ card: e, helpers: t }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-search-pic": "",
dangerouslySetInnerHTML: { __html: t.coverHtml(e) }
});
}
-function Y$({ item: e, kind: t }) {
+function X$({ item: e, kind: t }) {
if (e.avatarHtml) return /* @__PURE__ */ (0, I.jsx)("span", {
"data-search-face": "",
dangerouslySetInnerHTML: { __html: e.avatarHtml }
@@ -70376,24 +70376,24 @@ function Y$({ item: e, kind: t }) {
});
}
// src/react/settings/configuration.ts
-var X$ = ["configuration"], Z$ = (e) => B(zY, e);
-async function rje(e) {
+var Z$ = ["configuration"], Q$ = (e) => B(BY, e);
+async function nje(e) {
await H.fetchQuery({
- queryKey: X$,
- queryFn: () => Z$(e)
+ queryKey: Z$,
+ queryFn: () => Q$(e)
});
}
// src/react/settings-panel/legacy-controls.tsx
-var Q$ = (e) => e.map(([e, t, n]) => n ? [
+var $$ = (e) => e.map(([e, t, n]) => n ? [
e,
t,
n
] : [e, t]);
-function $$({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
+function e1({ 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 = el(t, n, Q$(r), i, {
+ e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = el(t, n, $$(r), i, {
attr: a,
className: o,
text: s
@@ -70411,13 +70411,13 @@ function $$({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant:
ref: u
});
}
-function e1({ 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 t1({ 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 = hs(Q$(n), r, { label: t });
+ e.innerHTML = hs($$(n), r, { label: t });
let i = gs(e.firstElementChild);
i.addEventListener("change", () => m.current(i.value)), f.current = i, p.current = c;
}
@@ -70430,7 +70430,7 @@ function e1({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a =
"aria-describedby": s
});
}
-function ije({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
+function rje({ 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
@@ -70464,7 +70464,7 @@ function ije({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSet
});
}
// src/react/settings-panel/glow-settings.tsx
-var aje = [
+var ije = [
[
"strength",
"强度",
@@ -70491,8 +70491,8 @@ var aje = [
100
]
];
-function oje({ host: e, spot: t, index: n, glow: r }) {
- let i = vle[n], a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = IV(), [l, u] = (0, F.useState)("all");
+function aje({ host: e, spot: t, index: n, glow: r }) {
+ let i = _le[n], a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = LV(), [l, u] = (0, F.useState)("all");
(0, F.useLayoutEffect)(() => {
let [e, t, n] = [
a.current,
@@ -70505,7 +70505,7 @@ function oje({ host: e, spot: t, index: n, glow: r }) {
}, []);
let d = r[t].color, f = (n) => {
let r = e.store.value.homeGlow;
- r[t].color = Wj(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), ss(), o.current?.focus();
+ r[t].color = Gj(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), ss(), o.current?.focus();
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-glow-stop": t,
@@ -70530,7 +70530,7 @@ function oje({ host: e, spot: t, index: n, glow: r }) {
children: d
})]
}),
- /* @__PURE__ */ (0, I.jsx)(zF, { name: "chevron-down" })
+ /* @__PURE__ */ (0, I.jsx)(BF, { name: "chevron-down" })
]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "popmenu",
@@ -70542,7 +70542,7 @@ function oje({ host: e, spot: t, index: n, glow: r }) {
"data-glow-pills": "",
role: "group",
"aria-label": "色系",
- children: xle.map(([e, t]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: ble.map(([e, t]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-pill": e,
"aria-pressed": e === l,
@@ -70556,7 +70556,7 @@ function oje({ host: e, spot: t, index: n, glow: r }) {
"data-glow-palette": "",
role: "radiogroup",
"aria-label": `${i}颜色`,
- children: Sle.map(([e, t, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: xle.map(([e, t, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
role: "radio",
"aria-checked": n === d,
@@ -70573,8 +70573,8 @@ function oje({ host: e, spot: t, index: n, glow: r }) {
})]
});
}
-function sje({ host: e }) {
- let t = e.store.value.homeGlow, n = Lj(t.preset);
+function oje({ host: e }) {
+ let t = e.store.value.homeGlow, n = Rj(t.preset);
return /* @__PURE__ */ (0, I.jsxs)("section", {
"data-glow-setting": "",
id: "homeGlowControls",
@@ -70593,10 +70593,10 @@ function sje({ host: e }) {
"data-glow-current": "",
children: ["当前配色", /* @__PURE__ */ (0, I.jsx)("b", {
"data-glow-preset-name": "",
- children: yle(t.preset)
+ children: vle(t.preset)
})]
}),
- /* @__PURE__ */ (0, I.jsx)(PM, {
+ /* @__PURE__ */ (0, I.jsx)(FM, {
store: e.store,
label: "光晕配色"
}),
@@ -70607,7 +70607,7 @@ function sje({ host: e }) {
}),
/* @__PURE__ */ (0, I.jsx)("div", {
"data-glow-fields": "",
- children: aje.map(([r, i, a]) => /* @__PURE__ */ (0, I.jsx)(ije, {
+ children: ije.map(([r, i, a]) => /* @__PURE__ */ (0, I.jsx)(rje, {
field: r,
label: i,
max: a,
@@ -70628,7 +70628,7 @@ function sje({ host: e }) {
className: "geist-button",
"data-glow-reset": "",
onClick: () => {
- e.store.value.homeGlow = Kj(null), e.store.save(), e.changed("glow");
+ e.store.value.homeGlow = qj(null), e.store.save(), e.changed("glow");
},
children: "恢复默认"
})
@@ -70647,7 +70647,7 @@ function sje({ host: e }) {
"data-glow-colour-card": "",
children: /* @__PURE__ */ (0, I.jsx)("div", {
"data-glow-stops": "",
- children: Pj.map((n, r) => /* @__PURE__ */ (0, I.jsx)(oje, {
+ children: Fj.map((n, r) => /* @__PURE__ */ (0, I.jsx)(aje, {
host: e,
spot: n,
index: r,
@@ -70659,7 +70659,7 @@ function sje({ host: e }) {
});
}
// src/react/settings-panel/number-setting.tsx
-var cje = {
+var sje = {
batchSizeSetting: {
min: 1,
max: 200,
@@ -70706,22 +70706,22 @@ var cje = {
optional: !0,
fallback: 60
}
-}, t1 = (e) => `peach.number.${e}`;
-function n1(e, t) {
+}, n1 = (e) => `peach.number.${e}`;
+function r1(e, t) {
if (t !== "分钟" || !Number.isInteger(e) || e < 1440) return "";
let n = e / 1440;
return Number.isInteger(n) ? `${n.toLocaleString()} 天` : `约 ${n.toFixed(1)} 天`;
}
-function r1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
- let a = cje[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, F.useRef)(0);
- d.current ||= Cj(Number(localStorage.getItem(t1(e))), o, s, n && n > 0 ? n : l);
+function i1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
+ let a = sje[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(n1(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(t1(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(n1(e), String(d.current)), y.current(d.current)));
}, x = (0, F.useRef)(b);
x.current = b, (0, F.useEffect)(() => {
let e = v.current;
@@ -70731,7 +70731,7 @@ function r1({ 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(t1(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(n1(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": "",
@@ -70768,7 +70768,7 @@ function r1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
}
}), /* @__PURE__ */ (0, I.jsxs)("span", {
"aria-hidden": "true",
- children: [c, n1(Number(m), c) ? ` · ${n1(Number(m), c)}` : ""]
+ children: [c, r1(Number(m), c) ? ` · ${r1(Number(m), c)}` : ""]
})]
}), /* @__PURE__ */ (0, I.jsx)("small", {
id: `${e}-error`,
@@ -70781,7 +70781,7 @@ function r1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
});
}
// src/react/boardui/components/base/kbd/kbd.tsx
-function lje({ className: e, ref: t, ...n }) {
+function cje({ className: e, ref: t, ...n }) {
return /* @__PURE__ */ (0, I.jsx)("kbd", {
ref: t,
className: J("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),
@@ -70789,7 +70789,7 @@ function lje({ className: e, ref: t, ...n }) {
});
}
// src/react/components/keycap.tsx
-function uje({ keys: e, plus: t }) {
+function lje({ 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", {
@@ -70804,15 +70804,15 @@ function uje({ keys: e, plus: t }) {
});
}
// src/keyboard-shortcut.ts
-var i1 = "peach.sfw-shortcut", dje = "Shift+KeyS", a1 = /^(?:Key[A-Z]|Digit[0-9]|F(?:[1-9]|1[0-2]))$/, fje = /^(?:Shift|Control|Alt|Meta|OS)(?:Left|Right)?$/, pje = /* @__PURE__ */ new Set([
+var a1 = "peach.sfw-shortcut", uje = "Shift+KeyS", o1 = /^(?:Key[A-Z]|Digit[0-9]|F(?:[1-9]|1[0-2]))$/, dje = /^(?:Shift|Control|Alt|Meta|OS)(?:Left|Right)?$/, fje = /* @__PURE__ */ new Set([
"KeyW",
"KeyT",
"KeyN",
"KeyQ"
]);
-function o1(e) {
+function s1(e) {
let t = String(e || "").split("+"), n = t.pop() || "", r = new Set(t);
- if (!a1.test(n) || [...r].some((e) => ![
+ if (!o1.test(n) || [...r].some((e) => ![
"Ctrl",
"Alt",
"Shift",
@@ -70825,9 +70825,9 @@ function o1(e) {
shift: r.has("Shift"),
meta: r.has("Meta")
};
- return c1(i) ? null : i;
+ return l1(i) ? null : i;
}
-function s1(e) {
+function c1(e) {
return [
e.ctrl && "Ctrl",
e.alt && "Alt",
@@ -70836,15 +70836,15 @@ function s1(e) {
e.code
].filter(Boolean).join("+");
}
-function c1(e) {
- return !e.ctrl && !e.alt && !e.shift && !e.meta ? "至少要带一个修饰键,单独的字母会和播放器快捷键冲突" : (e.ctrl || e.meta) && pje.has(e.code) ? "这个组合被浏览器占用,页面收不到" : "";
-}
function l1(e) {
- return fje.test(e);
+ return !e.ctrl && !e.alt && !e.shift && !e.meta ? "至少要带一个修饰键,单独的字母会和播放器快捷键冲突" : (e.ctrl || e.meta) && fje.has(e.code) ? "这个组合被浏览器占用,页面收不到" : "";
+}
+function u1(e) {
+ return dje.test(e);
}
-function mje(e) {
- if (l1(e.code)) return { state: "waiting" };
- if (!a1.test(e.code)) return {
+function pje(e) {
+ if (u1(e.code)) return { state: "waiting" };
+ if (!o1.test(e.code)) return {
state: "invalid",
problem: "只支持字母、数字和 F1–F12 作主键"
};
@@ -70854,7 +70854,7 @@ function mje(e) {
alt: e.altKey,
shift: e.shiftKey,
meta: e.metaKey
- }, n = c1(t);
+ }, n = l1(t);
return n ? {
state: "invalid",
problem: n
@@ -70863,13 +70863,13 @@ function mje(e) {
shortcut: t
};
}
-function hje(e, t) {
+function mje(e, t) {
return e.code === t.code && e.ctrlKey === t.ctrl && e.altKey === t.alt && e.shiftKey === t.shift && e.metaKey === t.meta;
}
-function u1(e = navigator) {
+function d1(e = navigator) {
return /mac|iphone|ipad|ipod/i.test(e.userAgentData?.platform || e.platform || "");
}
-var gje = {
+var hje = {
ArrowLeft: "←",
ArrowRight: "→",
ArrowUp: "↑",
@@ -70880,10 +70880,10 @@ var gje = {
Backspace: "Backspace",
Tab: "Tab"
};
-function _je(e) {
- return gje[e] ?? e.replace(/^Key|^Digit|^Numpad/, "");
+function gje(e) {
+ return hje[e] ?? e.replace(/^Key|^Digit|^Numpad/, "");
}
-function d1(e, t, n = u1()) {
+function f1(e, t, n = d1()) {
let r = n ? [
"⌃",
"⌥",
@@ -70900,30 +70900,30 @@ function d1(e, t, n = u1()) {
e.shift,
e.meta
];
- return [...r.filter((e, t) => i[t]), ...t ? [_je(t)] : []];
+ return [...r.filter((e, t) => i[t]), ...t ? [gje(t)] : []];
}
-function f1(e, t = u1()) {
- return d1(e, e.code, t).join(t ? "" : "+");
+function p1(e, t = d1()) {
+ return f1(e, e.code, t).join(t ? "" : "+");
}
// src/react/settings-panel/shortcut-setting.tsx
-var vje = 600, p1 = {
+var _je = 600, m1 = {
ctrl: !1,
alt: !1,
shift: !1,
meta: !1
-}, m1 = (e) => ({
+}, h1 = (e) => ({
ctrl: e.ctrlKey,
alt: e.altKey,
shift: e.shiftKey,
meta: e.metaKey
});
-function yje({ current: e, onChange: t }) {
+function vje({ current: e, onChange: t }) {
let [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(""), [o, s] = (0, F.useState)({
- modifiers: p1,
+ modifiers: m1,
code: null
}), [c, l] = (0, F.useState)(null), u = () => {
r(!1), a(""), s({
- modifiers: p1,
+ modifiers: m1,
code: null
});
};
@@ -70934,16 +70934,16 @@ function yje({ current: e, onChange: t }) {
u();
return;
}
- let n = l1(e.code);
+ let n = u1(e.code);
s({
- modifiers: m1(e),
+ modifiers: h1(e),
code: n ? null : e.code
}), a("");
- let r = mje(e);
+ let r = pje(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: m1(e),
+ modifiers: h1(e),
code: null
} : t);
};
@@ -70952,16 +70952,16 @@ function yje({ current: e, onChange: t }) {
};
}, [n, t]), (0, F.useEffect)(() => {
if (!c) return;
- let e = window.setTimeout(() => l(null), vje);
+ let e = window.setTimeout(() => l(null), _je);
return () => window.clearTimeout(e);
}, [c]);
- let d = u1(), f = (e, t, n) => d1(e, t, d).map((e) => ({
+ let d = d1(), f = (e, t, n) => f1(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 = s1(e) !== dje, _ = c ? `已改为 ${f1(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 = c1(e) !== uje, _ = c ? `已改为 ${p1(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", {
@@ -70972,13 +70972,13 @@ function yje({ current: e, onChange: t }) {
"data-setting-shortcut": "",
className: "peach-react",
children: [
- h ? /* @__PURE__ */ (0, I.jsx)(uje, {
+ h ? /* @__PURE__ */ (0, I.jsx)(lje, {
keys: h,
plus: !d
- }) : /* @__PURE__ */ (0, I.jsx)(lje, {
+ }) : /* @__PURE__ */ (0, I.jsx)(cje, {
"data-shortcut-keys": "",
- "aria-label": `当前快捷键 ${f1(e, d)}`,
- children: f1(e, d)
+ "aria-label": `当前快捷键 ${p1(e, d)}`,
+ children: p1(e, d)
}),
g && !n && !c ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
@@ -71001,13 +71001,13 @@ function yje({ current: e, onChange: t }) {
});
}
// src/react/sidebar/sidebar-order.ts
-function h1(e) {
- let { mutate: t } = ZY();
+function g1(e) {
+ let { mutate: t } = QY();
return (0, F.useCallback)((n) => {
e.value.sidebarOrder = n, e.save(), t({ sidebarOrder: n }, { onError: () => {} });
}, [e, t]);
}
-function g1(e, t, n, r) {
+function _1(e, t, n, r) {
if (t === n) return null;
let i = [...e], a = i.indexOf(t);
if (a < 0) return null;
@@ -71016,17 +71016,17 @@ function g1(e, t, n, r) {
return o < 0 ? null : (i.splice(o + +!!r, 0, t), i);
}
// src/react/settings-panel/sidebar-order.tsx
-var bje = "__home__", _1 = (e) => e === "" ? bje : e;
-function xje({ host: e }) {
- let t = h1(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 = g1(n, e, r, i);
+var yje = "__home__", v1 = (e) => e === "" ? yje : e;
+function bje({ host: e }) {
+ let t = g1(e.store), n = e.store.value.sidebarOrder, r = new Map(e.navCatalog.map((e) => [e[0], e])), i = n.map((e) => r.get(e)).filter((e) => e !== void 0), a = e.navCatalog.filter(([e]) => !n.includes(e)), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(!1), [u, d] = (0, F.useState)(null), [f, p] = (0, F.useState)(null), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (e, r, i) => {
+ let a = _1(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]) => _1(e) === o) ?? a[0], y = () => {
+ }, v = a.find(([e]) => v1(e) === o) ?? a[0], y = () => {
h.current && us(h.current), l(!1);
}, b = () => {
let e = h.current;
@@ -71047,7 +71047,7 @@ function xje({ host: e }) {
}, C = (e) => ({
draggable: !0,
onDragStart: (t) => {
- d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", _1(e));
+ d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", v1(e));
},
onDragOver: (t) => {
if (u === null || u === e) return;
@@ -71079,9 +71079,9 @@ function xje({ host: e }) {
/* @__PURE__ */ (0, I.jsx)("i", {
"data-sidebar-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(zF, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, I.jsx)(BF, { name: "grip-vertical" })
}),
- /* @__PURE__ */ (0, I.jsx)(zF, { name: a ?? "" }),
+ /* @__PURE__ */ (0, I.jsx)(BF, { name: a ?? "" }),
/* @__PURE__ */ (0, I.jsx)("b", { children: r })
]
}), /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -71095,7 +71095,7 @@ function xje({ host: e }) {
title: "上移",
disabled: o === 0,
onClick: () => _(e, -1),
- children: /* @__PURE__ */ (0, I.jsx)(zF, { name: "chevron-up" })
+ children: /* @__PURE__ */ (0, I.jsx)(BF, { name: "chevron-up" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -71105,7 +71105,7 @@ function xje({ host: e }) {
title: "下移",
disabled: o === i.length - 1,
onClick: () => _(e, 1),
- children: /* @__PURE__ */ (0, I.jsx)(zF, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, I.jsx)(BF, { name: "chevron-down" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -71117,11 +71117,11 @@ function xje({ host: e }) {
onClick: () => {
n.length > 1 && t(n.filter((t) => t !== e));
},
- children: /* @__PURE__ */ (0, I.jsx)(zF, { name: "eye-off" })
+ children: /* @__PURE__ */ (0, I.jsx)(BF, { name: "eye-off" })
})
]
})]
- }, _1(e))), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }, v1(e))), /* @__PURE__ */ (0, I.jsxs)("div", {
"data-sidebar-add-row": "",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-sidebar-add-picker": "",
@@ -71137,13 +71137,13 @@ function xje({ host: e }) {
ref: m,
onClick: b,
children: v ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(zF, { name: v[2] ?? "" }),
+ /* @__PURE__ */ (0, I.jsx)(BF, { name: v[2] ?? "" }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-sidebar-add-label": "",
children: v[1]
}),
- /* @__PURE__ */ (0, I.jsx)(zF, { name: "chevron-down" })
- ] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(zF, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部页面都已显示" })] })
+ /* @__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: "全部页面都已显示" })] })
}), a.length ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "popmenu",
"data-sidebar-add-menu": "",
@@ -71154,15 +71154,15 @@ function xje({ host: e }) {
children: a.map(([e, t, n]) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
role: "option",
- "data-sidebar-add-option": _1(e),
+ "data-sidebar-add-option": v1(e),
"aria-selected": v?.[0] === e,
tabIndex: v?.[0] === e ? 0 : -1,
onKeyDown: x,
onClick: () => {
- s(_1(e)), y(), m.current?.focus();
+ s(v1(e)), y(), m.current?.focus();
},
- children: [/* @__PURE__ */ (0, I.jsx)(zF, { name: n ?? "" }), /* @__PURE__ */ (0, I.jsx)("span", { children: t })]
- }, _1(e)))
+ children: [/* @__PURE__ */ (0, I.jsx)(BF, { name: n ?? "" }), /* @__PURE__ */ (0, I.jsx)("span", { children: t })]
+ }, v1(e)))
}) : null]
}), /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -71178,13 +71178,13 @@ function xje({ host: e }) {
});
}
// src/react/settings-panel/settings-panel.tsx
-var v1 = [
+var y1 = [
["外观与导航", "ri-palette-line"],
["浏览与播放", "ri-play-circle-line"],
["JAV 与新作", "jav"],
["搜索与推荐", "ri-search-line"],
["内容显示", "ri-shield-check-line"]
-], Sje = [
+], xje = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -71193,7 +71193,7 @@ var v1 = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], Cje = [["desc", "降序"], ["asc", "升序"]], wje = [[
+], Sje = [["desc", "降序"], ["asc", "升序"]], Cje = [[
"cover",
"官方封面",
""
@@ -71201,7 +71201,7 @@ var v1 = [
"thumbnail",
"预览图",
""
-]], Tje = [
+]], wje = [
[
"feedHideGroupSetting",
"feedHideGroupCompilations",
@@ -71220,88 +71220,88 @@ var v1 = [
"切片",
"隐藏切片"
]
-], Eje = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", y1 = null, b1 = {
+], Tje = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", b1 = null, x1 = {
open: !1,
closing: !1,
epoch: 0,
tab: 0,
configurable: null
-}, x1 = 0, S1 = null, C1 = /* @__PURE__ */ new Set();
-function Dje(e) {
- return C1.add(e), () => {
- C1.delete(e);
+}, S1 = 0, C1 = null, w1 = /* @__PURE__ */ new Set();
+function Eje(e) {
+ return w1.add(e), () => {
+ w1.delete(e);
};
}
-function Oje() {
- for (let e of [...C1]) e();
+function Dje() {
+ for (let e of [...w1]) e();
}
-function w1(e) {
- b1 = {
- ...b1,
+function T1(e) {
+ x1 = {
+ ...x1,
...e
- }, (0, Rt.flushSync)(Oje);
+ }, (0, Rt.flushSync)(Dje);
}
-async function kje(e) {
- let t = b1.epoch, n = await e.configurable();
- b1.open && b1.epoch === t && w1({ configurable: n });
+async function Oje(e) {
+ let t = x1.epoch, n = await e.configurable();
+ x1.open && x1.epoch === t && T1({ configurable: n });
}
-function Aje(e = "") {
- let t = y1;
+function kje(e = "") {
+ let t = b1;
if (!t) return;
- let n = v1.findIndex(([t]) => t === e);
- if (b1.open && !b1.closing) {
- n >= 0 && n !== b1.tab && w1({ tab: n });
+ let n = y1.findIndex(([t]) => t === e);
+ if (x1.open && !x1.closing) {
+ n >= 0 && n !== x1.tab && T1({ tab: n });
return;
}
- ss(), x1 += 1, S1 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
- let r = tEe();
- w1({
+ ss(), S1 += 1, C1 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
+ let r = eEe();
+ T1({
open: !0,
closing: !1,
configurable: null,
- epoch: b1.epoch + 1,
- tab: n >= 0 ? n : b1.tab
+ epoch: x1.epoch + 1,
+ tab: n >= 0 ? n : x1.tab
}), r.then((e) => {
e && t.syncRemote(e);
- }), kje(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
+ }), Oje(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
}
-function T1(e = !0) {
- if (!b1.open || b1.closing) return;
- let t = ++x1;
- e && y1?.closed?.(), w1({ closing: !0 });
+function E1(e = !0) {
+ if (!x1.open || x1.closing) return;
+ let t = ++S1;
+ e && b1?.closed?.(), T1({ closing: !0 });
let n = () => {
- t === x1 && b1.closing && (w1({
+ t === S1 && x1.closing && (T1({
open: !1,
closing: !1
- }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), S1 instanceof HTMLElement && document.contains(S1) && S1.focus(), S1 = null);
+ }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), C1 instanceof HTMLElement && document.contains(C1) && C1.focus(), C1 = null);
};
matchMedia("(prefers-reduced-motion: reduce)").matches ? queueMicrotask(n) : (document.querySelector("#settingsPanel > [data-settings-card]")?.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 380));
}
-var jje = {
- open: Aje,
- close: T1,
- isOpen: () => b1.open,
+var Aje = {
+ open: kje,
+ close: E1,
+ isOpen: () => x1.open,
reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))
};
-function Mje(e) {
- return y1 = e, jje;
+function jje(e) {
+ return b1 = e, Aje;
}
-function Nje() {
- let e = (0, F.useSyncExternalStore)(Dje, () => b1);
- return y1 ? /* @__PURE__ */ (0, I.jsx)(Ije, {
- host: y1,
+function Mje() {
+ let e = (0, F.useSyncExternalStore)(Eje, () => x1);
+ return b1 ? /* @__PURE__ */ (0, I.jsx)(Fje, {
+ host: b1,
view: e
}) : null;
}
-function Pje(e) {
+function Nje(e) {
if (e.key !== "Tab") return;
- let t = [...e.currentTarget.querySelectorAll(Eje)].filter((e) => e.getClientRects().length > 0);
+ let t = [...e.currentTarget.querySelectorAll(Tje)].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 E1 = (e) => `settings-tab-${e}`, D1 = (e) => `settings-group-${e}`;
-function Fje({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
+var D1 = (e) => `settings-tab-${e}`, O1 = (e) => `settings-group-${e}`;
+function Pje({ 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;
@@ -71329,7 +71329,7 @@ function Fje({ 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 = v1.length, r = t;
+ let n = y1.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;
@@ -71358,11 +71358,11 @@ function Fje({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
role: "presentation",
children: "设置"
}),
- v1.map(([t, n], r) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ y1.map(([t, n], r) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
role: "tab",
- id: E1(r),
- "aria-controls": D1(r),
+ id: D1(r),
+ "aria-controls": O1(r),
"aria-selected": r === e,
tabIndex: r === e ? 0 : -1,
ref: (e) => {
@@ -71373,7 +71373,7 @@ function Fje({ 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)(zF, { name: n }) : /* @__PURE__ */ (0, I.jsx)(nfe, { name: n }), t]
+ children: [n === "jav" ? /* @__PURE__ */ (0, I.jsx)(BF, { name: n }) : /* @__PURE__ */ (0, I.jsx)(tfe, { name: n }), t]
}, t)),
/* @__PURE__ */ (0, I.jsx)("div", {
"data-settings-service": "",
@@ -71384,27 +71384,27 @@ function Fje({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
onClick: r,
title: n === !1 ? "请在运行 Peach 的设备上打开 Peach 配置" : void 0,
children: [
- /* @__PURE__ */ (0, I.jsx)(zF, { name: "folder-cog" }),
+ /* @__PURE__ */ (0, I.jsx)(BF, { name: "folder-cog" }),
"Peach 配置",
- /* @__PURE__ */ (0, I.jsx)(zF, { name: "chevron-right" })
+ /* @__PURE__ */ (0, I.jsx)(BF, { name: "chevron-right" })
]
})
})
]
});
}
-function O1({ index: e, tab: t, children: n, cards: r = !1 }) {
+function k1({ 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: D1(e),
+ id: O1(e),
role: "tabpanel",
- "aria-labelledby": E1(e),
+ "aria-labelledby": D1(e),
hidden: e !== t,
- children: [/* @__PURE__ */ (0, I.jsx)("h3", { children: v1[e][0] }), n]
+ children: [/* @__PURE__ */ (0, I.jsx)("h3", { children: y1[e][0] }), n]
});
}
-function k1({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
+function A1({ 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", {
@@ -71421,7 +71421,7 @@ function k1({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Se
})]
});
}
-function A1({ title: e, description: t, kind: n, children: r }) {
+function j1({ title: e, description: t, kind: n, children: r }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-setting-row": "",
"data-setting-sort": n === "sort" ? "" : void 0,
@@ -71429,7 +71429,7 @@ function A1({ 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 Ije({ host: e, view: t }) {
+function Fje({ 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];
@@ -71450,7 +71450,7 @@ function Ije({ host: e, view: t }) {
s.current?.();
});
let d = t.epoch, f = (t) => {
- t !== b1.tab && (w1({ tab: t }), e.selectSection?.(v1[t][0]));
+ t !== x1.tab && (T1({ tab: t }), e.selectSection?.(y1[t][0]));
}, p = () => e.store.save();
return /* @__PURE__ */ (0, I.jsx)("section", {
"data-settings-panel": "",
@@ -71461,9 +71461,9 @@ function Ije({ host: e, view: t }) {
"aria-labelledby": "settingsTitle",
"data-closing": t.closing ? "" : void 0,
ref: r,
- onKeyDown: Pje,
+ onKeyDown: Nje,
onClick: (e) => {
- e.target === e.currentTarget && T1();
+ e.target === e.currentTarget && E1();
},
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-settings-card": "",
@@ -71474,27 +71474,27 @@ function Ije({ host: e, view: t }) {
ref: a,
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
id: "settingsTitle",
- children: v1[t.tab][0]
- }), /* @__PURE__ */ (0, I.jsx)(uV, {
+ children: y1[t.tab][0]
+ }), /* @__PURE__ */ (0, I.jsx)(dV, {
id: "settingsClose",
label: "关闭设置",
- onPress: () => T1()
+ onPress: () => E1()
})]
}),
- /* @__PURE__ */ (0, I.jsx)(Fje, {
+ /* @__PURE__ */ (0, I.jsx)(Pje, {
tab: t.tab,
epoch: d,
configurable: t.configurable,
onSelect: f,
openConfiguration: () => {
- T1(!1), e.openConfiguration();
+ E1(!1), e.openConfiguration();
}
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-settings-scroll": "",
ref: o,
children: [
- /* @__PURE__ */ (0, I.jsxs)(O1, {
+ /* @__PURE__ */ (0, I.jsxs)(k1, {
index: 0,
tab: t.tab,
cards: !0,
@@ -71502,9 +71502,9 @@ function Ije({ host: e, view: t }) {
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-setting-card": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(A1, {
+ /* @__PURE__ */ (0, I.jsx)(j1, {
title: "主题",
- children: /* @__PURE__ */ (0, I.jsx)($$, {
+ children: /* @__PURE__ */ (0, I.jsx)(e1, {
id: "themeSetting",
name: "theme",
legend: "主题",
@@ -71532,7 +71532,7 @@ function Ije({ host: e, view: t }) {
onChange: (t) => e.setHighContrast(t.target.checked)
})]
}),
- /* @__PURE__ */ (0, I.jsx)(k1, {
+ /* @__PURE__ */ (0, I.jsx)(A1, {
id: "uiSoundsSetting",
title: "界面音效",
checked: n.uiSounds,
@@ -71540,7 +71540,7 @@ function Ije({ host: e, view: t }) {
n.uiSounds = t, p(), e.changed("uiSounds");
}
}),
- /* @__PURE__ */ (0, I.jsx)(k1, {
+ /* @__PURE__ */ (0, I.jsx)(A1, {
id: "homeGlowSetting",
title: "侧栏光晕",
checked: n.homeGlow.on,
@@ -71550,7 +71550,7 @@ function Ije({ host: e, view: t }) {
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(sje, { host: e }),
+ /* @__PURE__ */ (0, I.jsx)(oje, { host: e }),
/* @__PURE__ */ (0, I.jsxs)("section", {
"data-setting-block": "",
"aria-labelledby": "sidebarOrderTitle",
@@ -71562,35 +71562,35 @@ function Ije({ host: e, view: t }) {
"data-setting-card": "",
children: /* @__PURE__ */ (0, I.jsx)("section", {
"data-sidebar-setting": "",
- children: /* @__PURE__ */ (0, I.jsx)(xje, { host: e })
+ children: /* @__PURE__ */ (0, I.jsx)(bje, { host: e })
})
})]
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(Rje, {
+ /* @__PURE__ */ (0, I.jsx)(Lje, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, I.jsx)(zje, {
+ /* @__PURE__ */ (0, I.jsx)(Rje, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, I.jsxs)(O1, {
+ /* @__PURE__ */ (0, I.jsxs)(k1, {
index: 3,
tab: t.tab,
children: [
- /* @__PURE__ */ (0, I.jsx)(Uje, {
+ /* @__PURE__ */ (0, I.jsx)(Hje, {
host: e,
epoch: d
}),
- /* @__PURE__ */ (0, I.jsx)(A1, {
+ /* @__PURE__ */ (0, I.jsx)(j1, {
title: "相关推荐数量",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "relatedLimitSetting",
- children: /* @__PURE__ */ (0, I.jsx)(r1, {
+ children: /* @__PURE__ */ (0, I.jsx)(i1, {
id: "relatedLimitSetting",
label: "相关推荐数量",
value: n.relatedLimit,
@@ -71600,31 +71600,31 @@ function Ije({ host: e, view: t }) {
}, d)
})
}),
- /* @__PURE__ */ (0, I.jsx)(A1, {
+ /* @__PURE__ */ (0, I.jsx)(j1, {
title: "口味与记录",
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(hL, {
+ children: /* @__PURE__ */ (0, I.jsx)(gL, {
variant: "secondary",
href: "/taste",
- onClick: () => T1(!1),
+ onClick: () => E1(!1),
children: "打开口味与记录"
})
})
})
]
}),
- /* @__PURE__ */ (0, I.jsxs)(O1, {
+ /* @__PURE__ */ (0, I.jsxs)(k1, {
index: 4,
tab: t.tab,
- children: [/* @__PURE__ */ (0, I.jsx)(k1, {
+ children: [/* @__PURE__ */ (0, I.jsx)(A1, {
id: "censorSetting",
title: "SFW 模式",
describedBy: "sfwDescription",
checked: e.censored(),
description: "隐藏敏感画面,停止悬停预览。",
onToggle: (t) => e.setCensored(t)
- }), /* @__PURE__ */ (0, I.jsx)(yje, {
+ }), /* @__PURE__ */ (0, I.jsx)(vje, {
current: e.sfwShortcut(),
onChange: e.setSfwShortcut
})]
@@ -71635,7 +71635,7 @@ function Ije({ host: e, view: t }) {
})
});
}
-function Lje(e, t) {
+function Ije(e, t) {
let n = e.querySelector("[data-select-label]");
if (!n) return;
n.querySelector("[data-icon-swap]") || (n.innerHTML = qs("arrow-up", "arrow-down", "a", {
@@ -71645,9 +71645,9 @@ function Lje(e, t) {
let r = n.querySelector("[data-sort-direction-label]");
r && (r.textContent = t ? "升序" : "降序");
}
-function Rje({ host: e, tab: t, epoch: n }) {
+function Lje({ 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)(O1, {
+ return /* @__PURE__ */ (0, I.jsxs)(k1, {
index: 1,
tab: t,
children: [
@@ -71655,11 +71655,11 @@ function Rje({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "作品列表"
}),
- /* @__PURE__ */ (0, I.jsx)(A1, {
+ /* @__PURE__ */ (0, I.jsx)(j1, {
title: "每批加载作品",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "batchSizeSetting",
- children: /* @__PURE__ */ (0, I.jsx)(r1, {
+ children: /* @__PURE__ */ (0, I.jsx)(i1, {
id: "batchSizeSetting",
label: "每批作品",
value: r.batchSize,
@@ -71669,24 +71669,24 @@ function Rje({ host: e, tab: t, epoch: n }) {
}, n)
})
}),
- /* @__PURE__ */ (0, I.jsx)(A1, {
+ /* @__PURE__ */ (0, I.jsx)(j1, {
title: "默认排序",
kind: "sort",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-setting-sort-controls": "",
- children: [/* @__PURE__ */ (0, I.jsx)(e1, {
+ children: [/* @__PURE__ */ (0, I.jsx)(t1, {
id: "defaultSortSetting",
label: "默认排序",
- options: Sje,
+ options: xje,
value: r.defaultSort,
epoch: n,
onPick: (t) => {
r.defaultSort = t, i(), e.changed("defaultSort");
}
- }), /* @__PURE__ */ (0, I.jsx)(e1, {
+ }), /* @__PURE__ */ (0, I.jsx)(t1, {
id: "defaultSortDirectionSetting",
label: "默认排序方向",
- options: Cje,
+ options: Sje,
value: o ? "asc" : "desc",
hidden: a,
disabled: a,
@@ -71694,13 +71694,13 @@ function Rje({ host: e, tab: t, epoch: n }) {
onPick: (t) => {
r.defaultSortDirection = t, i(), e.changed("sortDirection");
},
- decorate: (e) => Lje(e, o)
+ decorate: (e) => Ije(e, o)
})]
})
}),
- /* @__PURE__ */ (0, I.jsx)(A1, {
+ /* @__PURE__ */ (0, I.jsx)(j1, {
title: "视频卡片大小",
- children: /* @__PURE__ */ (0, I.jsx)($$, {
+ children: /* @__PURE__ */ (0, I.jsx)(e1, {
id: "javSizeSetting",
name: "video-size",
legend: "视频卡片大小",
@@ -71726,16 +71726,16 @@ function Rje({ host: e, tab: t, epoch: n }) {
}
})]
}),
- /* @__PURE__ */ (0, I.jsx)(A1, {
+ /* @__PURE__ */ (0, I.jsx)(j1, {
title: "悬停预览延迟",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "hoverDelaySetting",
- children: /* @__PURE__ */ (0, I.jsx)(r1, {
+ children: /* @__PURE__ */ (0, I.jsx)(i1, {
id: "hoverDelaySetting",
label: "悬停预览延迟",
value: r.hoverDelaySeconds,
onApply: (t) => {
- r.hoverDelaySeconds = Cj(t, 0, 60, 5), i(), e.changed("hoverDelay");
+ r.hoverDelaySeconds = wj(t, 0, 60, 5), i(), e.changed("hoverDelay");
}
}, n)
})
@@ -71744,16 +71744,16 @@ function Rje({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "播放"
}),
- /* @__PURE__ */ (0, I.jsx)(Hje, {
+ /* @__PURE__ */ (0, I.jsx)(Vje, {
host: e,
epoch: n
})
]
});
}
-function zje({ host: e, tab: t, epoch: n }) {
+function Rje({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save();
- return /* @__PURE__ */ (0, I.jsxs)(O1, {
+ return /* @__PURE__ */ (0, I.jsxs)(k1, {
index: 2,
tab: t,
children: [
@@ -71761,17 +71761,17 @@ function zje({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "作品显示"
}),
- /* @__PURE__ */ (0, I.jsx)(Bje, {
+ /* @__PURE__ */ (0, I.jsx)(zje, {
host: e,
epoch: n
}),
- /* @__PURE__ */ (0, I.jsx)(A1, {
+ /* @__PURE__ */ (0, I.jsx)(j1, {
title: "默认图片",
- children: /* @__PURE__ */ (0, I.jsx)($$, {
+ children: /* @__PURE__ */ (0, I.jsx)(e1, {
id: "javImageSetting",
name: "jav-image",
legend: "默认图片",
- options: wje,
+ options: Cje,
value: r.javImage,
attr: "data-jav-image-choice",
variant: "javimageswitch",
@@ -71786,21 +71786,21 @@ function zje({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "新作显示"
}),
- /* @__PURE__ */ (0, I.jsx)(A1, {
+ /* @__PURE__ */ (0, I.jsx)(j1, {
title: "显示数量",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "feedLimitSetting",
- children: /* @__PURE__ */ (0, I.jsx)(r1, {
+ children: /* @__PURE__ */ (0, I.jsx)(i1, {
id: "feedLimitSetting",
label: "新作显示数量",
value: r.feedLimit,
onApply: (t) => {
- r.feedLimit = Cj(t, 1, 100, 12), i(), e.changed("feedLimit");
+ r.feedLimit = wj(t, 1, 100, 12), i(), e.changed("feedLimit");
}
}, n)
})
}),
- /* @__PURE__ */ (0, I.jsx)(k1, {
+ /* @__PURE__ */ (0, I.jsx)(A1, {
id: "feedAutoScrollSetting",
title: "自动滚动",
checked: r.feedAutoScroll,
@@ -71808,7 +71808,7 @@ function zje({ host: e, tab: t, epoch: n }) {
r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");
}
}),
- Tje.map(([t, n, r, i]) => /* @__PURE__ */ (0, I.jsx)(Vje, {
+ wje.map(([t, n, r, i]) => /* @__PURE__ */ (0, I.jsx)(Bje, {
host: e,
id: t,
settingKey: n,
@@ -71818,19 +71818,19 @@ function zje({ host: e, tab: t, epoch: n }) {
]
});
}
-function Bje({ host: e, epoch: t }) {
+function zje({ host: e, epoch: t }) {
let n = Ft({
- queryKey: GY,
- queryFn: ({ signal: e }) => XY(e),
+ queryKey: KY,
+ queryFn: ({ signal: e }) => ZY(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)(A1, {
+ }), r = QY(), [i, a] = (0, F.useState)(null), o = n.data?.performerNameLanguage;
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(j1, {
title: "女优名称",
description: /* @__PURE__ */ (0, I.jsx)("small", {
"data-copy-key": "performer-name-language-help",
children: "名称与别名只显示所选语言的写法;缺少对应时保留当前名称。偏好保存在数据库,其他设备读取同一份设置。"
}),
- children: /* @__PURE__ */ (0, I.jsx)(e1, {
+ children: /* @__PURE__ */ (0, I.jsx)(t1, {
id: "performerNameLanguageSetting",
label: "女优名称",
epoch: t,
@@ -71848,13 +71848,13 @@ function Bje({ host: e, epoch: t }) {
}));
}
})
- }), n.isError ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ }), n.isError ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
children: "未取得数据库中的名称偏好,请重新打开设置。"
}) : null] });
}
-function Vje({ 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 Bje({ host: e, id: t, settingKey: n, label: r, title: i }) {
+ let a = QY(), [o, s] = (0, F.useState)(null), c = (0, F.useRef)(null), l = e.store.value, u = (t) => {
s(t), Zc(c.current), a.mutate({ [n]: t }, {
onSuccess: (i) => {
l[n] = i[n] === !0, e.store.save(), e.changed("feedCompilations"), e.receipt(t ? `新作已收起${r}` : `新作已列出${r}`);
@@ -71878,10 +71878,10 @@ function Vje({ host: e, id: t, settingKey: n, label: r, title: i }) {
})]
});
}
-function Hje({ host: e, epoch: t }) {
+function Vje({ 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)(k1, {
+ /* @__PURE__ */ (0, I.jsx)(A1, {
id: "detailAutoplaySetting",
title: "打开详情自动播放",
checked: n.detailAutoplay,
@@ -71889,7 +71889,7 @@ function Hje({ host: e, epoch: t }) {
n.detailAutoplay = e, r();
}
}),
- /* @__PURE__ */ (0, I.jsx)(k1, {
+ /* @__PURE__ */ (0, I.jsx)(A1, {
id: "miniplayerSetting",
title: "离开详情后小窗播放",
checked: n.miniplayer,
@@ -71897,11 +71897,11 @@ function Hje({ host: e, epoch: t }) {
n.miniplayer = t, r(), e.changed("miniplayer");
}
}),
- /* @__PURE__ */ (0, I.jsx)(A1, {
+ /* @__PURE__ */ (0, I.jsx)(j1, {
title: "快进 / 快退步长",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "seekSecondsSetting",
- children: /* @__PURE__ */ (0, I.jsx)(r1, {
+ children: /* @__PURE__ */ (0, I.jsx)(i1, {
id: "seekSecondsSetting",
label: "快进 / 快退",
value: n.seekSeconds,
@@ -71913,25 +71913,25 @@ function Hje({ host: e, epoch: t }) {
})
] });
}
-function Uje({ host: e, epoch: t }) {
- let n = e.store.value, r = ZY();
- return /* @__PURE__ */ (0, I.jsx)(A1, {
+function Hje({ host: e, epoch: t }) {
+ let n = e.store.value, r = QY();
+ return /* @__PURE__ */ (0, I.jsx)(j1, {
title: "搜索记录数量",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "searchHistoryLimitSetting",
- children: /* @__PURE__ */ (0, I.jsx)(r1, {
+ children: /* @__PURE__ */ (0, I.jsx)(i1, {
id: "searchHistoryLimitSetting",
label: "搜索记录",
value: n.searchHistoryLimit,
onApply: (t) => {
- n.searchHistoryLimit = Cj(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
+ n.searchHistoryLimit = wj(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 Wje(e, t, n, r) {
+function Uje(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,
@@ -71966,7 +71966,7 @@ function Wje(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 : g1(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 : _1(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();
@@ -72028,7 +72028,7 @@ function Wje(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 = g1(t, i, l, c);
+ let u = _1(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 {
@@ -72067,68 +72067,68 @@ function Wje(e, t, n, r) {
};
}
// src/react/sidebar/sidebar-island.tsx
-var j1 = "__home__", Gje = {
+var M1 = "__home__", Wje = {
creator: 26,
tag: 30,
tech: 16
-}, M1 = 180, N1 = null, P1 = {
+}, N1 = 180, P1 = null, F1 = {
props: {
content: null,
filters: {},
latest: null
},
epoch: 0
-}, F1 = /* @__PURE__ */ new Set();
-function Kje(e) {
- return F1.add(e), () => {
- F1.delete(e);
+}, I1 = /* @__PURE__ */ new Set();
+function Gje(e) {
+ return I1.add(e), () => {
+ I1.delete(e);
};
}
-function I1() {
- for (let e of [...F1]) e();
+function L1() {
+ for (let e of [...I1]) e();
}
-var qje = {
+var Kje = {
render(e) {
- P1 = {
- ...P1,
+ F1 = {
+ ...F1,
props: e
- }, (0, Rt.flushSync)(I1);
+ }, (0, Rt.flushSync)(L1);
},
navChanged() {
- P1 = {
- ...P1,
- epoch: P1.epoch + 1
- }, (0, Rt.flushSync)(I1);
+ F1 = {
+ ...F1,
+ epoch: F1.epoch + 1
+ }, (0, Rt.flushSync)(L1);
}
};
-function Jje(e) {
- return N1 = e, P1 = {
- ...P1,
+function qje(e) {
+ return P1 = e, F1 = {
+ ...F1,
props: {
content: null,
filters: {},
latest: null
}
- }, qje;
+ }, Kje;
}
-function Yje() {
- let e = (0, F.useSyncExternalStore)(Kje, () => P1);
- return N1 ? /* @__PURE__ */ (0, I.jsx)(Xje, {
- host: N1,
+function Jje() {
+ let e = (0, F.useSyncExternalStore)(Gje, () => F1);
+ return P1 ? /* @__PURE__ */ (0, I.jsx)(Yje, {
+ host: P1,
props: e.props,
epoch: e.epoch
}) : null;
}
-function Xje({ host: e, props: t, epoch: n }) {
+function Yje({ 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)(Zje, {
+ /* @__PURE__ */ (0, I.jsx)(Xje, {
host: e,
epoch: n,
version: r
}),
- t.content ? /* @__PURE__ */ (0, I.jsx)($je, {
+ t.content ? /* @__PURE__ */ (0, I.jsx)(Qje, {
host: e,
content: t.content,
filters: t.filters,
@@ -72136,8 +72136,8 @@ function Xje({ host: e, props: t, epoch: n }) {
}) : null
] });
}
-function Zje({ host: e, epoch: t, version: n }) {
- let r = h1(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 = pL(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || j1 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
+function Xje({ host: e, epoch: t, version: n }) {
+ let r = g1(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = mL(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || M1 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
(0, F.useEffect)(() => {
let t = e.scroll, n = t.parentElement, r = t.querySelector(":scope > [data-sidebar-head]"), i = new ResizeObserver(() => d());
[
@@ -72156,7 +72156,7 @@ function Zje({ host: e, epoch: t, version: n }) {
i.disconnect(), cancelAnimationFrame(a), document.removeEventListener("board:sidebar", o);
};
}, [e, d]);
- let f = Wje(c, i, r, () => requestAnimationFrame(d)), p = e.scroll.parentElement;
+ let f = Uje(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,
@@ -72192,8 +72192,8 @@ function Zje({ host: e, epoch: t, version: n }) {
alt: "",
decoding: "async",
draggable: !1
- }) : /* @__PURE__ */ (0, I.jsx)(zF, { name: r }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
- }, t || j1);
+ }) : /* @__PURE__ */ (0, I.jsx)(BF, { name: r }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
+ }, t || M1);
}),
f.hint ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-sidebar-drop-line": "",
@@ -72214,8 +72214,8 @@ function Zje({ host: e, epoch: t, version: n }) {
ref: l
}), p) : null] });
}
-var L1 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
-function Qje(e) {
+var R1 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
+function Zje(e) {
if (!e) return null;
let t = /* @__PURE__ */ new Map(), n = [
["loc", e.locations],
@@ -72229,7 +72229,7 @@ function Qje(e) {
for (let [e, r] of n) for (let n of r) t.set(`${e}\n${n.value}`, n.n ?? 0);
return t;
}
-function $je({ host: e, content: t, filters: n, latest: r }) {
+function Qje({ 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" && tc(e.scroll, "drawer");
@@ -72238,8 +72238,8 @@ function $je({ host: e, content: t, filters: n, latest: r }) {
i,
t.kind
]);
- let a = t.kind === "catalog" ? eMe(e, t.facets, n, r, i) : tMe(e, t, n), o = 0;
- return a.map((e) => e && /* @__PURE__ */ (0, I.jsx)(nMe, {
+ let a = t.kind === "catalog" ? $je(e, t.facets, n, r, i) : eMe(e, t, n), o = 0;
+ return a.map((e) => e && /* @__PURE__ */ (0, I.jsx)(tMe, {
title: e.title,
kind: e.kind,
active: e.active,
@@ -72248,11 +72248,11 @@ function $je({ host: e, content: t, filters: n, latest: r }) {
children: e.body
}, e.title));
}
-function eMe(e, t, n, r, i) {
- let a = Qje(r), o = (t, r, i) => {
+function $je(e, t, n, r, i) {
+ let a = Zje(r), o = (t, r, i) => {
if (!t.length) return null;
- let o = L1(n, r);
- return /* @__PURE__ */ (0, I.jsx)(B1, {
+ let o = R1(n, r);
+ return /* @__PURE__ */ (0, I.jsx)(V1, {
rows: t,
filterKey: r,
multi: i,
@@ -72262,7 +72262,7 @@ function eMe(e, t, n, r, i) {
});
}, s = (t, s, c, l, u, d) => {
if (!c.length) return null;
- let f = L1(n, l), p = c.some((e) => f.includes(e.value));
+ let f = R1(n, l), p = c.some((e) => f.includes(e.value));
if (!d) return {
title: t,
kind: s,
@@ -72274,12 +72274,12 @@ function eMe(e, t, n, r, i) {
title: t,
kind: s,
active: p,
- body: /* @__PURE__ */ (0, I.jsx)(iMe, {
+ body: /* @__PURE__ */ (0, I.jsx)(rMe, {
epoch: i,
title: t,
rows: c,
latest: m ?? null,
- limit: Gje[d],
+ limit: Wje[d],
filterKey: l,
selected: f,
counts: a,
@@ -72294,7 +72294,7 @@ function eMe(e, t, n, r, i) {
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, I.jsx)(U1, {
+ body: /* @__PURE__ */ (0, I.jsx)(W1, {
host: e,
filters: n
})
@@ -72309,7 +72309,7 @@ function eMe(e, t, n, r, i) {
title: "关注标签",
kind: "online",
active: !1,
- body: /* @__PURE__ */ (0, I.jsx)(V1, {
+ body: /* @__PURE__ */ (0, I.jsx)(H1, {
rows: t.followTags,
host: e,
selected: null,
@@ -72318,14 +72318,14 @@ function eMe(e, t, n, r, i) {
} : null
];
}
-function tMe(e, t, n) {
- let r = t.providers || [], i = L1(n, "provider"), a = new Set(t.selected);
+function eMe(e, t, n) {
+ let r = t.providers || [], i = R1(n, "provider"), a = new Set(t.selected);
return [
r.length ? {
title: "来源",
kind: "src",
active: r.some((e) => i.includes(e.value)),
- body: /* @__PURE__ */ (0, I.jsx)(B1, {
+ body: /* @__PURE__ */ (0, I.jsx)(V1, {
rows: r,
filterKey: "provider",
multi: !1,
@@ -72339,7 +72339,7 @@ function tMe(e, t, n) {
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, I.jsx)(U1, {
+ body: /* @__PURE__ */ (0, I.jsx)(W1, {
host: e,
filters: n,
commit: e.setFollowDuration
@@ -72349,7 +72349,7 @@ function tMe(e, t, n) {
title: "内容标签",
kind: "online",
active: t.tags.some((e) => a.has(e.value)),
- body: /* @__PURE__ */ (0, I.jsx)(V1, {
+ body: /* @__PURE__ */ (0, I.jsx)(H1, {
rows: t.tags,
host: e,
selected: a,
@@ -72358,19 +72358,19 @@ function tMe(e, t, n) {
} : null
];
}
-function R1(e, t) {
+function z1(e, t) {
let n = null;
try {
n = sessionStorage.getItem(`peach.sidebar.group.${e}`);
} catch {}
return n === null ? t : n === "open";
}
-function nMe({ 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)(() => R1(e, n)), u = (0, F.useRef)(!1);
+function tMe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
+ let o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(() => z1(e, n)), u = (0, F.useRef)(!1);
(0, F.useLayoutEffect)(() => {
let t = o.current, r = s.current;
if (!t || !r) return;
- let i = u.current ? R1(e, n) : c;
+ let i = u.current ? z1(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) => {
@@ -72391,7 +72391,7 @@ function nMe({ 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)(zF, { name: "chevron-right" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, I.jsx)(BF, { name: "chevron-right" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
}), /* @__PURE__ */ (0, I.jsx)("div", {
ref: s,
"data-sidebar-collapse": "",
@@ -72402,7 +72402,7 @@ function nMe({ 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)(z1.Provider, {
+ children: /* @__PURE__ */ (0, I.jsx)(B1.Provider, {
value: d,
children: a
})
@@ -72411,15 +72411,15 @@ function nMe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
})]
});
}
-var z1 = (0, F.createContext)(() => {});
-function rMe({ dot: e }) {
- return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, I.jsx)(zF, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, I.jsx)("img", {
+var B1 = (0, F.createContext)(() => {});
+function nMe({ dot: e }) {
+ return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, I.jsx)(BF, { 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 B1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a, onToggle: o = a.toggleChip }) {
+function V1({ 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) => {
@@ -72436,7 +72436,7 @@ function B1({ 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)(rMe, { dot: e.dot }),
+ /* @__PURE__ */ (0, I.jsx)(nMe, { dot: e.dot }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-sidebar-chip-label": "",
children: e.label
@@ -72451,8 +72451,8 @@ function B1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a,
})
});
}
-function iMe({ 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)(z1), [d, f] = (0, F.useState)(null), [p, m] = (0, F.useState)(e);
+function rMe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
+ let u = (0, F.useContext)(B1), [d, f] = (0, F.useState)(null), [p, m] = (0, F.useState)(e);
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)(() => {
@@ -72467,7 +72467,7 @@ function iMe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
e.body.classList.add("ui-fcollapse"), Go(e.body, e.before, () => !!t?.open && !e.body.inert);
}
t(), requestAnimationFrame(t);
- }, [d, _]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(B1, {
+ }, [d, _]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(V1, {
rows: _ ? v : v.slice(0, i),
filterKey: a,
multi: !1,
@@ -72492,10 +72492,10 @@ function iMe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
all: !_
}), _ && u());
},
- children: /* @__PURE__ */ (0, I.jsx)(zF, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, I.jsx)(BF, { name: "chevron-down" })
}) : null] });
}
-function V1({ rows: e, host: t, selected: n, badges: r }) {
+function H1({ 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", {
@@ -72517,10 +72517,10 @@ function V1({ rows: e, host: t, selected: n, badges: r }) {
}, e.value))
});
}
-var H1 = (e, t) => e ? Math.min(M1, Number(e) / 60) : t;
-function U1({ 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)(() => [H1(t.dur_min, 0), H1(t.dur_max, M1)]), [c, l] = (0, F.useState)("max");
- i !== r && (a(r), s([H1(t.dur_min, 0), H1(t.dur_max, M1)]));
+var U1 = (e, t) => e ? Math.min(N1, Number(e) / 60) : t;
+function W1({ host: e, filters: t, commit: n = e.setDuration }) {
+ let r = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [i, a] = (0, F.useState)(r), [o, s] = (0, F.useState)(() => [U1(t.dur_min, 0), U1(t.dur_max, N1)]), [c, l] = (0, F.useState)("max");
+ i !== r && (a(r), s([U1(t.dur_min, 0), U1(t.dur_max, N1)]));
let [u, d] = o, f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = (0, F.useRef)(null), h = (0, F.useRef)(o);
h.current = o;
let g = (e, t) => {
@@ -72533,11 +72533,11 @@ function U1({ host: e, filters: t, commit: n = e.setDuration }) {
}, [n]), (0, F.useLayoutEffect)(() => {
let e = f.current;
if (!e) return;
- e.style.setProperty("--lo", `${u / M1 * 100}%`), e.style.setProperty("--hi", `${d / M1 * 100}%`);
+ e.style.setProperty("--lo", `${u / N1 * 100}%`), e.style.setProperty("--hi", `${d / N1 * 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 / M1 * 100}%`, e.style.setProperty("--range-tip-shift", "0px");
+ e.style.left = `${n / N1 * 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`);
});
@@ -72547,7 +72547,7 @@ function U1({ 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 >= M1 ? "不限" : `${t} 分钟`
+ children: e === "max" && t >= N1 ? "不限" : `${t} 分钟`
});
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-sidebar-duration": "",
@@ -72562,7 +72562,7 @@ function U1({ host: e, filters: t, commit: n = e.setDuration }) {
id: "durMin",
type: "range",
min: "0",
- max: M1,
+ max: N1,
step: "5",
value: u,
"aria-label": "最短时长(分钟)",
@@ -72573,7 +72573,7 @@ function U1({ host: e, filters: t, commit: n = e.setDuration }) {
id: "durMax",
type: "range",
min: "0",
- max: M1,
+ max: N1,
step: "5",
value: d,
"aria-label": "最长时长(分钟)",
@@ -72587,7 +72587,7 @@ function U1({ host: e, filters: t, commit: n = e.setDuration }) {
});
}
// src/diagnostics-skeleton.ts
-function W1() {
+function G1() {
let e = (e) => ks({
label: e,
variant: "secondary",
@@ -72601,11 +72601,11 @@ function W1() {
</div></div>`;
}
// src/react/settings/library-policy-copy.ts
-var G1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", aMe = [
+var K1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", iMe = [
"自动补全",
"仅使用本地资料",
"自定义"
-], oMe = [
+], aMe = [
[
"读本地 NFO 和图片",
"✓",
@@ -72636,7 +72636,7 @@ var G1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
"—",
"可选"
]
-], sMe = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", K1 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", q1 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", J1 = "只填域名,留空用默认地址", cMe = [
+], oMe = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", q1 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", J1 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", Y1 = "只填域名,留空用默认地址", sMe = [
{
provider: "coomer",
label: "Coomer",
@@ -72726,8 +72726,8 @@ var G1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
label: "SubscribeStar",
requirement: "none"
}
-], Y1 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", lMe = "peach.configuration.shape.v1";
-function X1() {
+], X1 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", cMe = "peach.configuration.shape.v1";
+function Z1() {
try {
let e = JSON.parse(localStorage.getItem("peach.configuration.shape.v1") || "{}");
return e && typeof e == "object" ? e : {};
@@ -72735,31 +72735,31 @@ function X1() {
return {};
}
}
-function uMe(e, t) {
+function lMe(e, t) {
try {
- let n = X1();
+ let n = Z1();
if (JSON.stringify(n[e]) === JSON.stringify(t)) return;
- localStorage.setItem(lMe, JSON.stringify({
+ localStorage.setItem(cMe, JSON.stringify({
...n,
[e]: t
}));
} catch {}
}
-var Z1 = (e) => X1()[e], Q1 = (e) => e === !0, $1 = (e, t) => Number.isInteger(e) && e > 0 ? Math.min(e, t) : 0, e0 = (e, t, n) => Array.isArray(e) ? e.slice(0, t).map(n) : [], t0 = "disabled data-skeleton-action", n0 = (e = "60%") => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, r0 = (e = "100%") => `<span class="skeleton ui-configuration-skeleton-input" style="width:${e}"></span>`, i0 = (e, t) => `<span class="skeleton shrink-0" style="width:${e};height:${t}"></span>`, a0 = (e = "3em") => i0(e, "24px"), o0 = () => i0("var(--icon-inline)", "var(--icon-inline)"), s0 = (e, t = "primary", n = "medium") => ks({
+var Q1 = (e) => Z1()[e], $1 = (e) => e === !0, e0 = (e, t) => Number.isInteger(e) && e > 0 ? Math.min(e, t) : 0, t0 = (e, t, n) => Array.isArray(e) ? e.slice(0, t).map(n) : [], n0 = "disabled data-skeleton-action", r0 = (e = "60%") => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, i0 = (e = "100%") => `<span class="skeleton ui-configuration-skeleton-input" style="width:${e}"></span>`, a0 = (e, t) => `<span class="skeleton shrink-0" style="width:${e};height:${t}"></span>`, o0 = (e = "3em") => a0(e, "24px"), s0 = () => a0("var(--icon-inline)", "var(--icon-inline)"), c0 = (e, t = "primary", n = "medium") => ks({
label: e,
variant: t,
size: n,
- attrs: t0
-}), c0 = (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>`, l0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, dMe = (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">${o0()}${e}</span>` : e}</p>`;
+ attrs: n0
+}), l0 = (e, t = "") => `<div class="-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3">${t ? `<div class="mr-auto min-w-0 text-body-2-regular text-text-secondary">${t}</div>` : ""}${e}</div>`, u0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, uMe = (e, t, n) => {
+ let r = `<p class="w-full px-3 text-body-2-medium text-text-secondary">${n ? `<span class="inline-flex items-center gap-1.5">${s0()}${e}</span>` : e}</p>`;
return t ? `<div class="flex w-full flex-wrap items-center justify-between gap-2"><div class="min-w-40 flex-1">${r}</div><div class="flex min-w-0 max-w-full">${t}</div></div>` : r;
-}, u0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${dMe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? c0(n, i) : ""}</div></section>`, d0 = (e, t, n, r = "") => {
+}, d0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${uMe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? l0(n, i) : ""}</div></section>`, f0 = (e, t, n, 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>`;
-}, f0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => d0(e, t, `<span class="skeleton ${n}"></span>`), p0 = (e, t = "", n = "4em") => d0(e, t, n0(n)), m0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, h0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, g0 = (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>${r0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, _0 = (e) => `<div class="flex flex-col gap-1">${h0(e)}${js(n0("8em"))}</div>`, v0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${i0("16px", "16px")}${e}</span>`, y0 = (e) => `<span class="inline-flex items-center gap-1">${o0()}${e}</span>`, b0 = (e, t = !1) => `<span class="flex w-fit items-center gap-1 text-body-2-medium text-text-secondary">${Es("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, fMe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), x0 = (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">${fMe.has(e) ? n0("100%") + n0("80%") + n0("6em") : n0("6em")}</dd></div>`).join("")}</dl>`, pMe = cMe;
-function mMe(e = Z1("credentials")) {
- let t = new Set(e0(e?.done, 64, String));
- return pMe.map((e) => {
+}, p0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => f0(e, t, `<span class="skeleton ${n}"></span>`), m0 = (e, t = "", n = "4em") => f0(e, t, r0(n)), h0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, g0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, _0 = (e, t = "") => `<div class="flex w-full flex-col items-start gap-1"><span class="flex items-center gap-0.5 text-body-medium text-text-primary">${e}</span>${i0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, v0 = (e) => `<div class="flex flex-col gap-1">${g0(e)}${js(r0("8em"))}</div>`, y0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${a0("16px", "16px")}${e}</span>`, b0 = (e) => `<span class="inline-flex items-center gap-1">${s0()}${e}</span>`, x0 = (e, t = !1) => `<span class="flex w-fit items-center gap-1 text-body-2-medium text-text-secondary">${Es("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, dMe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), S0 = (e) => `<dl class="ui-settings-facts flex flex-col">${e.map((e) => `<div class="flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0"><dt class="flex max-w-1/2 min-w-0 shrink-0 items-center gap-2 text-body-regular text-text-secondary">${e}</dt><dd class="flex min-w-0 flex-wrap items-center justify-end gap-2 text-body-regular text-text-primary">${dMe.has(e) ? r0("100%") + r0("80%") + r0("6em") : r0("6em")}</dd></div>`).join("")}</dl>`, fMe = sMe;
+function pMe(e = Q1("credentials")) {
+ let t = new Set(t0(e?.done, 64, String));
+ return fMe.map((e) => {
let n = t.has(e.provider);
return {
...e,
@@ -72768,141 +72768,141 @@ function mMe(e = Z1("credentials")) {
};
});
}
-function hMe(e) {
- let t = e.fields ?? [], n = e.requirement !== "none" && e.requirement !== "blocked", r = a0() + (n && !e.done ? t.map(() => a0("4.5em")).join("") : ""), i = `<span class="flex min-w-0 flex-wrap items-center gap-2">${i0("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 ? m0(z(e.why)) : ""}</div>`;
- let a = e.open ? "<div class=\"flex flex-col gap-2 pt-3\"><div class=\"flex flex-col gap-3\">" + m0(`${z(e.why ?? "")}${e.where ? " 获取凭据" : ""}`) + (e.howto ? m0(z(e.howto)) : "") + `<div class="flex w-full flex-col gap-3">${t.map((e) => g0(z(e))).join("")}</div><div class="flex flex-wrap items-center gap-2">${s0("保存配置")}</div>${b0("凭据文件")}</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>${b0(e.done ? "修改凭据" : "填写凭据", e.open)}${a}</div></div>`;
+function mMe(e) {
+ let t = e.fields ?? [], n = e.requirement !== "none" && e.requirement !== "blocked", r = o0() + (n && !e.done ? t.map(() => o0("4.5em")).join("") : ""), i = `<span class="flex min-w-0 flex-wrap items-center gap-2">${a0("14px", "14px")}<b class="min-w-0 text-body-medium wrap-anywhere text-text-primary">${z(e.label)}</b>${r}</span>`;
+ if (!n) return `<div class="flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}${e.requirement === "blocked" && e.why ? h0(z(e.why)) : ""}</div>`;
+ let a = e.open ? "<div class=\"flex flex-col gap-2 pt-3\"><div class=\"flex flex-col gap-3\">" + h0(`${z(e.why ?? "")}${e.where ? " 获取凭据" : ""}`) + (e.howto ? h0(z(e.howto)) : "") + `<div class="flex w-full flex-col gap-3">${t.map((e) => _0(z(e))).join("")}</div><div class="flex flex-wrap items-center gap-2">${c0("保存配置")}</div>${x0("凭据文件")}</div></div>` : "";
+ return `<div class="flex flex-col gap-2 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}<div>${x0(e.done ? "修改凭据" : "填写凭据", e.open)}${a}</div></div>`;
}
-function S0() {
- let e = mMe(), t = e.filter((e) => e.requirement === "required" && !e.done).length;
- return u0("来源凭据", l0(`<div class="flex flex-col gap-4">${[
+function C0() {
+ let e = pMe(), t = e.filter((e) => e.requirement === "required" && !e.done).length;
+ return d0("来源凭据", u0(`<div class="flex flex-col gap-4">${[
["可配置凭据", e.filter((e) => e.requirement !== "none" && e.requirement !== "blocked")],
["不需要凭据", e.filter((e) => e.requirement === "none")],
["暂不支持", e.filter((e) => e.requirement === "blocked")]
- ].filter(([, e]) => e.length).map(([e, t]) => `<div class="flex flex-col gap-2"><h4 class="text-body-medium text-text-secondary">${e}</h4><div class="min-w-0 border border-separator-border bg-background-primary-default rounded-surface flex flex-col overflow-hidden">${t.map(hMe).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? n0("5em") : "" });
-}
-function C0() {
- let e = e0(Z1("indexers")?.open, 20, Q1).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">${Es("chevron-right", `size-(--icon-inline) shrink-0 text-text-secondary${e ? " rotate-90" : ""}`)}${n0("6em")}${n0("12em")}</span>` + (e ? `<div class="flex flex-col gap-2 pt-3"><div class="flex min-w-0 flex-col gap-4">${g0("名称")}${g0("Torznab 地址")}${g0("API key")}<div class="flex flex-wrap items-center gap-x-6 gap-y-2">${v0("启用")}${s0("移除", "secondary", "small")}</div></div></div>` : "") + "</div>").join("");
- return u0("资源搜索", l0(`<div class="flex min-w-0 flex-col gap-4">${b0("索引器连接帮助")}${e}</div>`), s0("添加索引器", "secondary") + s0("保存配置"));
+ ].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(mMe).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? r0("5em") : "" });
}
function w0() {
- let e = Z1("javBrowser"), t = Q1(e?.enabled);
- return u0("浏览器添加 JAV", l0(`<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>${n0("4em")}</div><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-regular text-text-secondary">浏览器添加</span>${a0()}</div><p class="text-caption-1-regular text-text-secondary">${n0("70%")}</p><div class="flex flex-wrap items-center gap-2">${s0("重新检测", "secondary")}</div></div>`}${_0("浏览器添加的下载渠道")}${Q1(e?.ready) ? "" : m0("请在媒体库中添加支持云下载的网盘,并配置账号与目标目录。")}${g0("Peach 地址")}</div>`), (t ? s0("关闭浏览器添加", "secondary") : "") + s0(t ? "更新渠道与令牌" : "启用并生成令牌"));
+ let e = t0(Q1("indexers")?.open, 20, $1).map((e) => `<div class="min-w-0 border-t border-separator-border pt-2"><span class="flex w-full min-w-0 items-center gap-1 text-body-2-medium">${Es("chevron-right", `size-(--icon-inline) shrink-0 text-text-secondary${e ? " rotate-90" : ""}`)}${r0("6em")}${r0("12em")}</span>` + (e ? `<div class="flex flex-col gap-2 pt-3"><div class="flex min-w-0 flex-col gap-4">${_0("名称")}${_0("Torznab 地址")}${_0("API key")}<div class="flex flex-wrap items-center gap-x-6 gap-y-2">${y0("启用")}${c0("移除", "secondary", "small")}</div></div></div>` : "") + "</div>").join("");
+ return d0("资源搜索", u0(`<div class="flex min-w-0 flex-col gap-4">${x0("索引器连接帮助")}${e}</div>`), c0("添加索引器", "secondary") + c0("保存配置"));
+}
+function T0() {
+ let e = Q1("javBrowser"), t = $1(e?.enabled);
+ return d0("浏览器添加 JAV", u0(`<div class="flex min-w-0 flex-col gap-4">${`<div class="min-w-0 bg-background-primary-default rounded-2xl shadow-card p-5 border border-border-button-default flex flex-col gap-3"><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-medium text-text-primary">Peach 用户脚本</span>${r0("4em")}</div><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-regular text-text-secondary">浏览器添加</span>${o0()}</div><p class="text-caption-1-regular text-text-secondary">${r0("70%")}</p><div class="flex flex-wrap items-center gap-2">${c0("重新检测", "secondary")}</div></div>`}${v0("浏览器添加的下载渠道")}${$1(e?.ready) ? "" : h0("请在媒体库中添加支持云下载的网盘,并配置账号与目标目录。")}${_0("Peach 地址")}</div>`), (t ? c0("关闭浏览器添加", "secondary") : "") + c0(t ? "更新渠道与令牌" : "启用并生成令牌"));
}
-var T0 = (e, t) => `<div class="flex min-w-0 flex-col gap-3">${h0(e)}${js(n0("6em"))}` + (t ? `<div class="flex flex-wrap gap-3"><div class="min-w-40 flex-1">${g0(`${e}地址`)}</div><div class="w-full sm:w-28">${g0(`${e}端口`)}</div></div>${b0("代理认证")}` : "") + "</div>";
-function E0() {
- let e = Z1("cloudProxy"), t = e0(e?.accounts, 12, (e) => Array.isArray(e) ? [Q1(e[0]), Q1(e[1])] : [!1, !1]), n = $1(e?.unlinked, 12), r = t.length || n ? Array.from({ length: n }, () => `<div class="flex min-w-0 flex-col gap-1">${h0(y0(n0("6em")))}${m0(n0("9em"))}</div>`).join("") + t.map(([e, t]) => `<div class="flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4">${h0(y0(n0("8em")))}${m0(n0("50%"))}${T0("数据代理", e)}${T0("API 代理", t)}<div class="flex justify-end">${s0("保存配置")}</div></div>`).join("") : m0(n0("60%"));
- return u0("CloudDrive 代理", l0(`${m0(Y1)}<div class="flex min-w-0 flex-col gap-4">${r}</div>`), s0("重新读取", "secondary"));
+var E0 = (e, t) => `<div class="flex min-w-0 flex-col gap-3">${g0(e)}${js(r0("6em"))}` + (t ? `<div class="flex flex-wrap gap-3"><div class="min-w-40 flex-1">${_0(`${e}地址`)}</div><div class="w-full sm:w-28">${_0(`${e}端口`)}</div></div>${x0("代理认证")}` : "") + "</div>";
+function D0() {
+ let e = Q1("cloudProxy"), t = t0(e?.accounts, 12, (e) => Array.isArray(e) ? [$1(e[0]), $1(e[1])] : [!1, !1]), n = e0(e?.unlinked, 12), r = t.length || n ? Array.from({ length: n }, () => `<div class="flex min-w-0 flex-col gap-1">${g0(b0(r0("6em")))}${h0(r0("9em"))}</div>`).join("") + t.map(([e, t]) => `<div class="flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4">${g0(b0(r0("8em")))}${h0(r0("50%"))}${E0("数据代理", e)}${E0("API 代理", t)}<div class="flex justify-end">${c0("保存配置")}</div></div>`).join("") : h0(r0("60%"));
+ return d0("CloudDrive 代理", u0(`${h0(X1)}<div class="flex min-w-0 flex-col gap-4">${r}</div>`), c0("重新读取", "secondary"));
}
-var D0 = (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>`, gMe = (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">${r0()}</span>${ks({
+var O0 = (e, t, n) => `<div class="flex min-w-0 flex-col gap-1 ${n}"><span class="flex items-center gap-0.5 text-body-medium text-text-primary" aria-hidden="true">${e}</span>${t}</div>`, hMe = (e) => `<div data-folder-row class="@container flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3">
+ <div class="flex items-start gap-2"><span class="min-w-0 flex-1">${i0()}</span>${ks({
glyph: "folder-search",
variant: "secondary",
- attrs: t0
+ attrs: n0
})}</div>
- <div class="flex flex-wrap items-end gap-2"><div class="flex w-full flex-wrap items-start gap-2">${D0("来源", js(n0("6em")), "w-full @lg:w-60")}${D0("读取策略", js(n0("4em")), "w-full @lg:w-32")}${e > 1 ? D0("移到媒体库", js(n0("4em")), "w-full @lg:w-48") : ""}</div></div>
- </div>`, _Me = (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">${O0("来源", js(r0("6em")), "w-full @lg:w-60")}${O0("读取策略", js(r0("4em")), "w-full @lg:w-32")}${e > 1 ? O0("移到媒体库", js(r0("4em")), "w-full @lg:w-48") : ""}</div></div>
+ </div>`, gMe = (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>${ks({
label: "自动识别",
variant: "secondary",
- attrs: t0
-})}${r0()}<span class="skeleton ui-configuration-skeleton-input" style="width:136px"></span>${js(n0("4em"), { prefix: "处理方式" })}</div>
- <div data-library-folders>${gMe(t).repeat(e)}<div class="flex">${ks({
+ attrs: n0
+})}${i0()}<span class="skeleton ui-configuration-skeleton-input" style="width:136px"></span>${js(r0("4em"), { prefix: "处理方式" })}</div>
+ <div data-library-folders>${hMe(t).repeat(e)}<div class="flex">${ks({
label: "添加文件夹",
variant: "secondary",
- attrs: t0
-})}</div></div></div>`, vMe = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${G1}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, yMe = "<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 bMe(e = Z1("media")) {
- let t = e0(e?.folders, 12, (e) => $1(e, 50)).filter(Boolean);
+ attrs: n0
+})}</div></div></div>`, _Me = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${K1}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, vMe = "<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 yMe(e = Q1("media")) {
+ let t = t0(e?.folders, 12, (e) => e0(e, 50)).filter(Boolean);
return t.length ? {
folders: t,
- cloud: Q1(e?.cloud)
+ cloud: $1(e?.cloud)
} : {
folders: [1],
cloud: !1
};
}
-function xMe() {
- let e = Z1("discovery"), t = Q1(e?.enabled), n = t && Q1(e?.cloud), r = n && Q1(e?.webhook), i = `<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${r0()}</span>${js(n0("4em"), { prefix: "对应目录" })}${ks({
+function bMe() {
+ let e = Q1("discovery"), t = $1(e?.enabled), n = t && $1(e?.cloud), r = n && $1(e?.webhook), i = `<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${i0()}</span>${js(r0("4em"), { prefix: "对应目录" })}${ks({
glyph: "trash",
variant: "secondary",
- attrs: t0
+ attrs: n0
})}</div>`;
- return u0("自动发现新文件", l0(`<div class="flex flex-wrap items-center gap-2"><span class="text-body-regular text-text-secondary">本机监视</span>${a0()}</div>`) + f0("发现新文件后自动入库", t ? n0("10em") : "") + f0("监视本机文件夹", t && Q1(e?.watchLocal) ? n0("12em") : "") + f0("接收 CloudDrive2 通知", "网盘目录有变化时由 CloudDrive2 推送过来。") + (n ? d0("Webhook 配置", n0("20em"), "") : "") + (r ? l0(b0("查看配置"), !0) : "") + (n ? l0(`<div class="flex flex-col gap-3">${h0("云端路径前缀")}<div class="flex flex-col gap-3">${i.repeat($1(e?.prefixes, 20))}</div><div>${s0("添加前缀", "secondary")}</div></div>`, !0) : ""), (r ? s0("更换密钥", "secondary") : "") + s0("保存配置"));
-}
-var SMe = () => {
- let e = bMe();
- return u0("媒体库与目录", l0(`${vMe}<div class="flex flex-col gap-4">${e.folders.map((t) => _Me(t, e.folders.length)).join("")}</div>
- <div class="self-start">${s0("添加媒体库", "secondary")}</div>
- <p class="text-body-2-regular text-text-secondary">${K1}</p>
- ${e.cloud ? yMe : ""}<span class="text-body-medium text-text-primary">${n0("15em")}</span>`), s0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? E0() : "") + xMe() + u0("番号识别规则", l0(`${n0("90%")}${n0("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), s0("保存配置")) + u0("视频预览", f0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + f0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + f0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));
-}, CMe = () => `<div>${s0("采集来源与登录状态", "secondary")}</div>` + S0() + u0("关注采集", d0("自动检查更新", "", "<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>") + p0("订阅源拉取") + f0("首次采集范围", "新关注的来源第一次回看多久以前的内容。", "ui-configuration-skeleton-select") + p0("头像刷新", "重新获取关注创作者的头像。") + p0("favicon 刷新", "重新获取来源站点的图标。")) + C0() + u0("作品资料站点", l0(`<p class="text-body-2-regular text-text-secondary">${q1}</p>${g0(y0("JavDB 地址"), J1)}${g0(y0("MISSAV 地址"), J1)}`), s0("保存配置")), wMe = () => {
- let e = Z1("downloads"), t = Q1(e?.pikpak), n = Q1(e?.pikpakRoots) ? _0(y0("PikPak 根目录对应的媒体目录")) : `<div class="flex flex-col gap-1">${h0(y0("PikPak 根目录对应的媒体目录"))}${m0("先在「媒体库与入库」添加 PikPak 挂载文件夹。")}</div>`, r = Q1(e?.cloud) ? u0("云下载", l0(g0("CloudDrive2 地址") + g0("CloudDrive2 API 令牌", "需要离线任务权限。") + (Q1(e?.has115) ? g0(y0("115 目标目录"), "应位于自动入库的云端路径前缀内。") : "") + (t ? g0(y0("PikPak 目标目录"), "目录要已经存在。") + n : "") + g0("等待上限(小时)", n0("14em"))), s0("检查连接", "secondary") + s0("保存配置")) : "", i = Q1(e?.pikpakLoggedIn);
- return r + (t ? u0("PikPak 账号", i ? x0(["账号", n0("4em")]) : l0(g0("账号") + g0("密码") + v0("保存密码,登录过期时自动重新登录")), i ? s0("登出", "secondary") : (Q1(e?.browserLogin) ? s0("用浏览器登录", "secondary") : "") + s0("登录"), {
- aside: a0(),
+ return d0("自动发现新文件", u0(`<div class="flex flex-wrap items-center gap-2"><span class="text-body-regular text-text-secondary">本机监视</span>${o0()}</div>`) + p0("发现新文件后自动入库", t ? r0("10em") : "") + p0("监视本机文件夹", t && $1(e?.watchLocal) ? r0("12em") : "") + p0("接收 CloudDrive2 通知", "网盘目录有变化时由 CloudDrive2 推送过来。") + (n ? f0("Webhook 配置", r0("20em"), "") : "") + (r ? u0(x0("查看配置"), !0) : "") + (n ? u0(`<div class="flex flex-col gap-3">${g0("云端路径前缀")}<div class="flex flex-col gap-3">${i.repeat(e0(e?.prefixes, 20))}</div><div>${c0("添加前缀", "secondary")}</div></div>`, !0) : ""), (r ? c0("更换密钥", "secondary") : "") + c0("保存配置"));
+}
+var xMe = () => {
+ let e = yMe();
+ return d0("媒体库与目录", u0(`${_Me}<div class="flex flex-col gap-4">${e.folders.map((t) => gMe(t, e.folders.length)).join("")}</div>
+ <div class="self-start">${c0("添加媒体库", "secondary")}</div>
+ <p class="text-body-2-regular text-text-secondary">${q1}</p>
+ ${e.cloud ? vMe : ""}<span class="text-body-medium text-text-primary">${r0("15em")}</span>`), c0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? D0() : "") + bMe() + d0("番号识别规则", u0(`${r0("90%")}${r0("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), c0("保存配置")) + d0("视频预览", p0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + p0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + p0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));
+}, SMe = () => `<div>${c0("采集来源与登录状态", "secondary")}</div>` + C0() + d0("关注采集", f0("自动检查更新", "", "<span class=\"flex items-center gap-2\"><span class=\"skeleton ui-configuration-skeleton-toggle\"></span><span class=\"skeleton ui-configuration-skeleton-input\" style=\"width:96px\"></span></span>") + m0("订阅源拉取") + p0("首次采集范围", "新关注的来源第一次回看多久以前的内容。", "ui-configuration-skeleton-select") + m0("头像刷新", "重新获取关注创作者的头像。") + m0("favicon 刷新", "重新获取来源站点的图标。")) + w0() + d0("作品资料站点", u0(`<p class="text-body-2-regular text-text-secondary">${J1}</p>${_0(b0("JavDB 地址"), Y1)}${_0(b0("MISSAV 地址"), Y1)}`), c0("保存配置")), CMe = () => {
+ let e = Q1("downloads"), t = $1(e?.pikpak), n = $1(e?.pikpakRoots) ? v0(b0("PikPak 根目录对应的媒体目录")) : `<div class="flex flex-col gap-1">${g0(b0("PikPak 根目录对应的媒体目录"))}${h0("先在「媒体库与入库」添加 PikPak 挂载文件夹。")}</div>`, r = $1(e?.cloud) ? d0("云下载", u0(_0("CloudDrive2 地址") + _0("CloudDrive2 API 令牌", "需要离线任务权限。") + ($1(e?.has115) ? _0(b0("115 目标目录"), "应位于自动入库的云端路径前缀内。") : "") + (t ? _0(b0("PikPak 目标目录"), "目录要已经存在。") + n : "") + _0("等待上限(小时)", r0("14em"))), c0("检查连接", "secondary") + c0("保存配置")) : "", i = $1(e?.pikpakLoggedIn);
+ return r + (t ? d0("PikPak 账号", i ? S0(["账号", r0("4em")]) : u0(_0("账号") + _0("密码") + y0("保存密码,登录过期时自动重新登录")), i ? c0("登出", "secondary") : ($1(e?.browserLogin) ? c0("用浏览器登录", "secondary") : "") + c0("登录"), {
+ aside: o0(),
mark: !0
- }) : "") + w0();
-}, O0 = {
+ }) : "") + T0();
+}, k0 = {
legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
-}, k0 = {
+}, A0 = {
quick: "临时预览用,地址随机,重启后会变。启动前要先设置访问密码。",
named: "使用你在 Cloudflare 绑定的固定域名。启动前要先设置访问密码。"
};
-function TMe(e) {
- let t = e === "locked" ? "" : g0(e === "password" ? "新访问密码 *" : "设置访问密码 *", "至少 8 个字符。保存后其他设备需要重新登录。") + g0(e === "password" ? "确认新访问密码 *" : "确认访问密码 *");
- return (O0[e] ? m0(O0[e]) : "") + (e === "open" ? i0("100%", "64px") : "") + (e === "password" || e === "legacy" ? v0("关闭访问密码") : "") + (e === "password" ? g0("当前访问密码 *") : "") + t;
+function wMe(e) {
+ let t = e === "locked" ? "" : _0(e === "password" ? "新访问密码 *" : "设置访问密码 *", "至少 8 个字符。保存后其他设备需要重新登录。") + _0(e === "password" ? "确认新访问密码 *" : "确认访问密码 *");
+ return (k0[e] ? h0(k0[e]) : "") + (e === "open" ? a0("100%", "64px") : "") + (e === "password" || e === "legacy" ? y0("关闭访问密码") : "") + (e === "password" ? _0("当前访问密码 *") : "") + t;
}
-function A0() {
- let e = Z1("devices");
- return u0("已登录的设备", Array.from({ length: Math.max(1, $1(e?.rows, 8)) }, () => d0(n0("8em"), n0("14em"), n0("3em"), i0("20px", "20px"))).join(""), Q1(e?.manageable) ? s0("撤销其他设备", "secondary") : "", Q1(e?.manageable) ? { status: "修改访问密码会让全部设备退出。" } : {});
+function j0() {
+ let e = Q1("devices");
+ return d0("已登录的设备", Array.from({ length: Math.max(1, e0(e?.rows, 8)) }, () => f0(r0("8em"), r0("14em"), r0("3em"), a0("20px", "20px"))).join(""), $1(e?.manageable) ? c0("撤销其他设备", "secondary") : "", $1(e?.manageable) ? { status: "修改访问密码会让全部设备退出。" } : {});
}
-var EMe = () => {
- let e = Z1("network"), t = typeof e?.access == "string" && e.access ? e.access : "legacy", n = Q1(e?.tunnelNamed), r = (n && Q1(e?.tunnelNamedMode) ? m0(k0.named) + g0("公开主机名", "Cloudflare Zero Trust 里指向这台电脑的主机名。") + g0("隧道令牌", n0("16em")) : m0(k0.quick)) + (Q1(e?.tunnelNote) ? i0("100%", "64px") : ""), i = $1(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">${g0([
+var TMe = () => {
+ let e = Q1("network"), t = typeof e?.access == "string" && e.access ? e.access : "legacy", n = $1(e?.tunnelNamed), r = (n && $1(e?.tunnelNamedMode) ? h0(A0.named) + _0("公开主机名", "Cloudflare Zero Trust 里指向这台电脑的主机名。") + _0("隧道令牌", r0("16em")) : h0(A0.quick)) + ($1(e?.tunnelNote) ? a0("100%", "64px") : ""), i = e0(e?.addresses, 3), a = Array.from({ length: i }, (e, t) => `<div class="flex min-w-0 flex-wrap items-end gap-2"><div class="min-w-0 flex-1">${_0([
"本机地址",
"手机连接地址",
"备用 IP 地址"
- ][t])}</div>${s0("复制地址", "secondary")}</div>`).join("");
- return (i || Q1(e?.port) ? u0("访问地址", l0(a + (i ? i0("100%", "40px") : "") + (Q1(e?.networkEditable) ? `<div class="flex flex-col gap-1.5">${h0("谁可以访问")}${i0("min(100%, 20em)", "36px")}</div>` + (Q1(e?.lan) ? g0("局域网访问地址") : "") : "") + (Q1(e?.port) ? g0("端口") : "")), Q1(e?.port) ? s0("保存配置") : "", Q1(e?.port) ? { status: "保存后 Peach 会重启,并跳转到新地址。" } : {}) : "") + u0("访问密码", l0(TMe(t)), t === "locked" ? "" : s0("保存配置")) + (t === "password" || t === "legacy" ? A0() : "") + u0("Cloudflare 公网入口", l0((n ? i0("10.5em", "36px") : "") + r), s0("启动公网入口", n ? "secondary" : "primary") + (n ? s0("保存配置") : ""), { aside: a0() }) + u0("Peach 代理", f0("连接方式", "Peach 访问外网和采集来源时使用。", "ui-configuration-skeleton-select") + (Q1(e?.proxyAddress) ? l0(g0("代理地址"), !0) : ""), s0("保存配置"));
-}, DMe = [
+ ][t])}</div>${c0("复制地址", "secondary")}</div>`).join("");
+ return (i || $1(e?.port) ? d0("访问地址", u0(a + (i ? a0("100%", "40px") : "") + ($1(e?.networkEditable) ? `<div class="flex flex-col gap-1.5">${g0("谁可以访问")}${a0("min(100%, 20em)", "36px")}</div>` + ($1(e?.lan) ? _0("局域网访问地址") : "") : "") + ($1(e?.port) ? _0("端口") : "")), $1(e?.port) ? c0("保存配置") : "", $1(e?.port) ? { status: "保存后 Peach 会重启,并跳转到新地址。" } : {}) : "") + d0("访问密码", u0(wMe(t)), t === "locked" ? "" : c0("保存配置")) + (t === "password" || t === "legacy" ? j0() : "") + d0("Cloudflare 公网入口", u0((n ? a0("10.5em", "36px") : "") + r), c0("启动公网入口", n ? "secondary" : "primary") + (n ? c0("保存配置") : ""), { aside: o0() }) + d0("Peach 代理", p0("连接方式", "Peach 访问外网和采集来源时使用。", "ui-configuration-skeleton-select") + ($1(e?.proxyAddress) ? u0(_0("代理地址"), !0) : ""), c0("保存配置"));
+}, EMe = [
"版本",
"操作系统",
"数据目录",
"设置文件",
"日志目录"
-], OMe = () => {
- let e = Z1("maintenance"), t = [
+], DMe = () => {
+ let e = Q1("maintenance"), t = [
"当前版本",
"安装方式",
"更新通道",
"最新版本",
"下载内容"
- ].slice(0, Math.max(4, $1(e?.releaseFacts, 5))), n = $1(e?.releaseNotes, 4), r = $1(e?.storageRows, 12), i = $1(e?.storageNotes, 3), a = e0(e?.facts, 12, (e) => z(String(e))), o = `<span class="self-start">${a0("6em")}</span>`, s = (t) => !e || Q1(t), c = s(e?.reporting) ? f0("发送版本统计与错误诊断(推荐)", "上传版本、系统信息、故障类型、代码位置与发生次数。") + (Q1(e?.reportingIdle) ? l0(o, !0) : "") : "", l = s(e?.sharing) ? `<div class="border-t border-separator-border">${f0("上传馆藏与口味明细", Q1(e?.sharingNotice) ? n0("12em") : "")}${Q1(e?.sharingIdle) ? l0(o, !0) : ""}${c0(s0("预览上传内容", "secondary"))}</div>` : "";
- return u0("检查更新", x0(t) + (n ? l0(m0(n0("50%")).repeat(n), !0) : ""), s0("检查更新"), {
- aside: a0("4em"),
- status: n0("5em")
- }) + u0("自动更新", f0("自动检查新版本") + f0("自动下载更新", "发现新版本后先下载,重启安装前会询问。") + f0("检查频率", Q1(e?.autoUpdateHelp) ? n0("12em") : "", "ui-configuration-skeleton-select"), s0("保存配置")) + u0("开机自启", f0("开机后启动 Peach") + f0("只启动托盘,不打开网页", "开机后在后台运行,需要时从托盘打开页面。") + f0("在桌面创建快捷方式", Q1(e?.desktopNote) ? n0("12em") : "") + (Q1(e?.startupNote) ? l0(m0(n0("60%")), !0) : ""), s0("保存配置")) + u0("视频播放", f0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + u0("存储空间", x0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => d0(n0("6em"), "", n0("4em"))).join("") : l0(m0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? l0(m0(n0("80%")).repeat(i), !0) : ""), s0("更改位置", "secondary") + s0(r ? "重新统计" : "统计占用")) + (c || l ? u0("数据上传", c + l) : "") + u0("运行信息", x0(a.length ? a : DMe)) + `<section aria-label="新手教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${d0("新手教程", "在所有设备上恢复右上角教程入口,保留已读进度", s0("重新打开", "secondary"))}</div></section>` + (s(e?.uninstall) ? u0("卸载 Peach", (Q1(e?.uninstallHelp) ? l0(m0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + f0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + l0(b0("数据目录"), !0), s0("卸载 Peach"), { status: n0("16em") }) : "");
+ ].slice(0, Math.max(4, e0(e?.releaseFacts, 5))), n = e0(e?.releaseNotes, 4), r = e0(e?.storageRows, 12), i = e0(e?.storageNotes, 3), a = t0(e?.facts, 12, (e) => z(String(e))), o = `<span class="self-start">${o0("6em")}</span>`, s = (t) => !e || $1(t), c = s(e?.reporting) ? p0("发送版本统计与错误诊断(推荐)", "上传版本、系统信息、故障类型、代码位置与发生次数。") + ($1(e?.reportingIdle) ? u0(o, !0) : "") : "", l = s(e?.sharing) ? `<div class="border-t border-separator-border">${p0("上传馆藏与口味明细", $1(e?.sharingNotice) ? r0("12em") : "")}${$1(e?.sharingIdle) ? u0(o, !0) : ""}${l0(c0("预览上传内容", "secondary"))}</div>` : "";
+ return d0("检查更新", S0(t) + (n ? u0(h0(r0("50%")).repeat(n), !0) : ""), c0("检查更新"), {
+ aside: o0("4em"),
+ status: r0("5em")
+ }) + d0("自动更新", p0("自动检查新版本") + p0("自动下载更新", "发现新版本后先下载,重启安装前会询问。") + p0("检查频率", $1(e?.autoUpdateHelp) ? r0("12em") : "", "ui-configuration-skeleton-select"), c0("保存配置")) + d0("开机自启", p0("开机后启动 Peach") + p0("只启动托盘,不打开网页", "开机后在后台运行,需要时从托盘打开页面。") + p0("在桌面创建快捷方式", $1(e?.desktopNote) ? r0("12em") : "") + ($1(e?.startupNote) ? u0(h0(r0("60%")), !0) : ""), c0("保存配置")) + d0("视频播放", p0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + d0("存储空间", S0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => f0(r0("6em"), "", r0("4em"))).join("") : u0(h0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? u0(h0(r0("80%")).repeat(i), !0) : ""), c0("更改位置", "secondary") + c0(r ? "重新统计" : "统计占用")) + (c || l ? d0("数据上传", c + l) : "") + d0("运行信息", S0(a.length ? a : EMe)) + `<section aria-label="新手教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${f0("新手教程", "在所有设备上恢复右上角教程入口,保留已读进度", c0("重新打开", "secondary"))}</div></section>` + (s(e?.uninstall) ? d0("卸载 Peach", ($1(e?.uninstallHelp) ? u0(h0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + p0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + u0(x0("数据目录"), !0), c0("卸载 Peach"), { status: r0("16em") }) : "");
};
-function kMe(e) {
+function OMe(e) {
switch (e) {
- case "系统诊断": return W1();
- case "来源与订阅": return CMe();
- case "下载渠道": return wMe();
- case "网络与访问": return EMe();
- case "应用与维护": return OMe();
- default: return SMe();
+ case "系统诊断": return G1();
+ case "来源与订阅": return SMe();
+ case "下载渠道": return CMe();
+ case "网络与访问": return TMe();
+ case "应用与维护": return DMe();
+ default: return xMe();
}
}
-function AMe(e = "媒体库与入库") {
- return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${Object.values(Af).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">${kMe(e)}</div></div></div>`;
+function kMe(e = "媒体库与入库") {
+ return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${Object.values(Af).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">${OMe(e)}</div></div></div>`;
}
// src/filter-controls-skeleton.ts
-var j0 = (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>` : Es(e, "size-4 shrink-0"), M0 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", N0 = (e, t, n) => `<span data-entity-layout="" class="${nU}" role="radiogroup" aria-label="${z(e)}">${n.map(([e, n, r]) => `<span class="${rU}" role="radio" aria-label="${z(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${M0}>${j0(r)}</span>`).join("")}</span>`;
-function P0(e, t, { folders: n = !0 } = {}) {
- let r = tG(), i = new URLSearchParams(location.search), a = t && r === "cards" ? N0(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")}" ${M0}>${j0("ri-folder-3-line")}</button>` : "";
- return `<span data-entity-sorts=""><button type="button" data-entity-batch="" data-filter-action="" aria-label="换一批" ${M0}>${j0("shuffle")}</button>${a}${N0("馆藏显示方式", r, [[
+var M0 = (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>` : Es(e, "size-4 shrink-0"), N0 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", P0 = (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=\"\"" : ""} ${N0}>${M0(r)}</span>`).join("")}</span>`;
+function F0(e, t, { folders: n = !0 } = {}) {
+ let r = nG(), i = new URLSearchParams(location.search), a = t && r === "cards" ? P0(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")}" ${N0}>${M0("ri-folder-3-line")}</button>` : "";
+ return `<span data-entity-sorts=""><button type="button" data-entity-batch="" data-filter-action="" aria-label="换一批" ${N0}>${M0("shuffle")}</button>${a}${P0("馆藏显示方式", r, [[
"cards",
"卡片",
"ri-layout-grid-line"
@@ -72910,21 +72910,21 @@ function P0(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}" ${M0}>${z(e.label)}${e.dir ? j0(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}" ${N0}>${z(e.label)}${e.dir ? M0(e.dir === "asc" ? "arrow-up" : "arrow-down") : ""}</button>`).join("")}</span>`;
}
// src/catalog-filter-skeleton.ts
-var F0 = 64, I0 = (e) => e.replace(/[&<>"]/g, (e) => ({
+var I0 = 64, L0 = (e) => e.replace(/[&<>"]/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;"
-})[e]), jMe = (e) => e.repeat(F0), L0 = (e) => jMe(`<span data-catalog-placeholder="${e}" aria-hidden="true"><span></span><span>&nbsp;</span></span>`);
-function MMe(e, t, n) {
- let r = e.map((e) => `<a href="${I0(e.href)}" data-catalog-view="${I0(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${I0(e.label)}</a>`).join(""), i = AG();
- 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">${L0("performer")}</div>` : "") + (i.studios ? `<div data-catalog-tier="studios">${L0("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(F0) + `</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>${Ds()}</span>` + (n ? P0(n.sorts, n.layout) : "") + "</div></div></div></div>";
+})[e]), AMe = (e) => e.repeat(I0), R0 = (e) => AMe(`<span data-catalog-placeholder="${e}" aria-hidden="true"><span></span><span>&nbsp;</span></span>`);
+function jMe(e, t, n) {
+ let r = e.map((e) => `<a href="${L0(e.href)}" data-catalog-view="${L0(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${L0(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">${R0("performer")}</div>` : "") + (i.studios ? `<div data-catalog-tier="studios">${R0("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(I0) + `</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>${Ds()}</span>` + (n ? F0(n.sorts, n.layout) : "") + "</div></div></div></div>";
}
// src/react/jav/release-table-columns.ts
-var R0 = "peach.table.jav-releases.widths.v1", z0 = "peach.table.jav-releases.visibility.v1", NMe = {
+var z0 = "peach.table.jav-releases.widths.v1", B0 = "peach.table.jav-releases.visibility.v1", MMe = {
name: {
width: 300,
min: 240,
@@ -72970,7 +72970,7 @@ var R0 = "peach.table.jav-releases.widths.v1", z0 = "peach.table.jav-releases.vi
min: 112,
max: 320
}
-}, PMe = {
+}, NMe = {
name: "作品",
people: "艺人",
studio: "厂牌",
@@ -72980,12 +72980,12 @@ var R0 = "peach.table.jav-releases.widths.v1", z0 = "peach.table.jav-releases.vi
score: "来源评分",
release: "发行时间",
actions: "操作"
-}, FMe = {
+}, PMe = {
code: "code",
dur: "duration",
score: "source_score",
release: "release_date"
-}, B0 = [
+}, V0 = [
"name",
"people",
"studio",
@@ -72997,18 +72997,18 @@ var R0 = "peach.table.jav-releases.widths.v1", z0 = "peach.table.jav-releases.vi
"code"
].map((e) => ({
id: e,
- label: PMe[e],
- ...NMe[e],
+ label: NMe[e],
+ ...MMe[e],
flex: e === "name",
required: e === "name",
visible: e !== "code"
}));
-function IMe() {
- return kJ(B0, R0, z0);
+function FMe() {
+ return AJ(V0, z0, B0);
}
// src/jav-skeleton.ts
-var V0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, LMe = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, H0 = "w-full min-w-0";
-function U0() {
+var H0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, IMe = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, U0 = "w-full min-w-0";
+function W0() {
return [
"w-20",
"w-16",
@@ -73018,83 +73018,83 @@ function U0() {
"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 W0(e, t = lM()) {
- if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${V0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${LMe("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">${V0("80%")}${V0("60%")}${V0("40%")}</div></div>`).join("")}</div>`;
- let n = _M({
- ...gM({
+function G0(e, t = uM()) {
+ if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${H0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${IMe("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">${H0("80%")}${H0("60%")}${H0("40%")}</div></div>`).join("")}</div>`;
+ let n = vM({
+ ..._M({
active: !0,
home: !1,
portrait: !1
}),
size: t
});
- return `<div data-media-grid class="${H0}" 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="${U0}" 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>${V0("85%")}${V0("65%")}</div><div data-media-byline>${V0("55%")}</div>
+ <div data-media-title>${H0("85%")}${H0("65%")}</div><div data-media-byline>${H0("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 RMe = {
+var LMe = {
releases: "筛选新作",
discover: "筛选推荐",
wants: "筛选想要"
};
-function zMe(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>${V0("100%")}</div>${W0(e)}` : e === "releases" ? `<section class="flex min-w-0 flex-col gap-4">${BMe()}${tG() === "list" ? `<div data-catalog-table>${NJ(IMe())}</div>` : W0(e)}</section>` : `<section class="flex min-w-0 flex-col gap-4">${VMe()}${W0(e)}</section>`;
+function RMe(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>${H0("100%")}</div>${G0(e)}` : e === "releases" ? `<section class="flex min-w-0 flex-col gap-4">${zMe()}${nG() === "list" ? `<div data-catalog-table>${PJ(FMe())}</div>` : G0(e)}</section>` : `<section class="flex min-w-0 flex-col gap-4">${BMe()}${G0(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">${Os("", t, RMe[e] || "筛选")}</div>${ks({
+ <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">${Os("", t, LMe[e] || "筛选")}</div>${ks({
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">${iU.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">${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>
${n}</div></div>`;
}
-function BMe() {
- let e = new URLSearchParams(location.search), t = e.get("sort") || "release_date", n = e.get("dir") === "asc" ? "asc" : "desc", r = oW.map(([e, r, i]) => ({
+function zMe() {
+ 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]) => ({
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">${L0("performer")}</div><div data-catalog-tier="studios">${L0("studio")}</div></div>
+ return `<div data-catalog-tiers="" aria-busy="true"><div data-catalog-tier="performers" data-skeleton="tiers">${R0("performer")}</div><div data-catalog-tier="studios">${R0("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>${U0()}</div></div>
+ <div data-catalog-scroll><div data-catalog-tags>${W0()}</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>
- ${P0(r, {
+ ${F0(r, {
name: "jav-layout",
label: "JAV 卡片版式",
- value: lM(),
- options: iM
+ value: uM(),
+ options: aM
}, { folders: !1 })}
</div>
</div>`;
}
-function VMe() {
- 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="" ${lM() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${Es(t, "size-4")}</span>`;
+function BMe() {
+ 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">${Es(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>${U0()}</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>${W0()}</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>
${Ds()}
<span data-entity-sorts><button type="button" data-entity-batch data-filter-action data-skeleton-action data-jav-metadata-update title="更新资料" aria-label="更新资料" disabled>${Es("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>
- ${aW.map(([e, t]) => `<button type="button" data-entity-sort="${e}" data-entity-press aria-pressed="${e === "taste"}">${t}${e === "taste" ? Es("arrow-down", "size-3.5") : ""}</button>`).join("")}
+ ${oW.map(([e, t]) => `<button type="button" data-entity-sort="${e}" data-entity-press aria-pressed="${e === "taste"}">${t}${e === "taste" ? Es("arrow-down", "size-3.5") : ""}</button>`).join("")}
</span>
</div>
</div>`;
}
// src/management-skeletons.ts
-var G0 = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", K0 = (e = "60%") => `<span class="${G0} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, q0 = "disabled data-skeleton-action", J0 = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
-function HMe() {
+var K0 = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", q0 = (e = "60%") => `<span class="${K0} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, J0 = "disabled data-skeleton-action", Y0 = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
+function VMe() {
let e = [
"馆藏视频",
"看过",
@@ -73102,27 +73102,27 @@ function HMe() {
"使用空间"
].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="${G0} 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">${K0("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">${K0("6em")}</small>
- </div>`).join(""), t = (e) => `<section class="${J0}" 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">${K0("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="${K0} 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">${q0("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">${q0("6em")}</small>
+ </div>`).join(""), t = (e) => `<section class="${Y0}" 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">${q0("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">${K0()}</span><b class="text-title-2-medium">${K0("3em")}</b><small class="text-caption-1-regular">${K0()}</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">${q0()}</span><b class="text-title-2-medium">${q0("3em")}</b><small class="text-caption-1-regular">${q0()}</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">数据库中的当前统计 · ${K0("12em")}</p>
+ <p class="text-caption-1-regular text-text-secondary">数据库中的当前统计 · ${q0("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="${J0}"><h3 class="text-title-2-medium">${e}</h3><div class="${G0} h-64"></div></section>`).join("")}</div>
+ ].map((e) => `<section class="${Y0}"><h3 class="text-title-2-medium">${e}</h3><div class="${K0} h-64"></div></section>`).join("")}</div>
</div>
</div>
<section class="rounded-surface bg-background-secondary-default dark:bg-background-primary-default">
@@ -73131,11 +73131,11 @@ function HMe() {
"最近看过",
"标签来源"
].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="${G0} 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="${K0} h-7"></div>`).join("")}</div>
</section>
</div></div>`;
}
-function UMe() {
+function HMe() {
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 = [
"浏览记录",
"口味维度",
@@ -73143,20 +73143,20 @@ function UMe() {
"私有导出"
].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="${G0} 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">${K0("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">${K0("6em")}</small>
- </div>`).join(""), n = Array.from({ length: 6 }, () => `<div class="${G0} h-6"></div>`).join(""), r = (e) => `<section class="${J0}"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="${G0} 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="${K0} 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">${q0("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">${q0("6em")}</small>
+ </div>`).join(""), n = Array.from({ length: 6 }, () => `<div class="${K0} h-6"></div>`).join(""), r = (e) => `<section class="${Y0}"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="${K0} 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">${js("全部时间")}<span data-button-group data-split-button data-variant="primary">${ks({
glyph: "compass",
label: "读取浏览器历史",
- attrs: q0
+ attrs: J0
})}${ks({
glyph: "chevron-down",
- attrs: q0
+ attrs: J0
})}</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>
@@ -73174,11 +73174,11 @@ function UMe() {
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">${K0("8em")}</small></div>
+ <small class="text-caption-1-regular">${q0("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="${J0}"><h3 class="text-title-2-medium text-text-primary">创作者线索来源</h3><div class="${G0} h-72 max-sm:h-48"></div></section>
+ <section class="${Y0}"><h3 class="text-title-2-medium text-text-primary">创作者线索来源</h3><div class="${K0} 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([
"标签",
@@ -73186,20 +73186,20 @@ function UMe() {
"常访问网站",
"浏览线索"
])}</div>
- <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${G0} 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="${K0} h-7"></div>`).join("")}</div>
</section>
</div>
</div></div>`;
}
-function WMe() {
+function UMe() {
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="${G0} 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">${K0("70%")}</span>
- ${Array.from({ length: 3 }, () => `<span class="font-mono text-caption-1-regular leading-5">${K0("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">${K0("75%")}</span>
+ <span class="${K0} 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">${q0("70%")}</span>
+ ${Array.from({ length: 3 }, () => `<span class="font-mono text-caption-1-regular leading-5">${q0("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">${q0("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">${K0("5em")}</b><span class="font-mono text-caption-1-regular leading-5">${K0("8em")}</span>
+ <b class="text-title-2-medium">${q0("5em")}</b><span class="font-mono text-caption-1-regular leading-5">${q0("8em")}</span>
<span class="ml-auto flex flex-wrap gap-2 max-compact:ml-0 max-compact:w-full">${[
"留最大",
"留最长",
@@ -73208,27 +73208,27 @@ function WMe() {
variant: "secondary",
size: "small",
label: e,
- attrs: q0
+ attrs: J0
})).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">${K0("4em")}</strong></div><p class="text-body-regular text-text-secondary">${K0("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">${q0("4em")}</strong></div><p class="text-body-regular text-text-secondary">${q0("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 ${q0} 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 ${J0} 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 GMe() {
+function WMe() {
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="${G0} 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">${K0("80%")}</h3><p class="text-body-2-regular">${K0("60%")}</p></div>
+ <div class="flex min-w-0 gap-4"><span class="${K0} 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">${q0("80%")}</h3><p class="text-body-2-regular">${q0("60%")}</p></div>
</div>
<footer class="flex justify-end">${ks({
variant: "secondary",
size: "small",
label: "查看版本",
- attrs: q0
+ attrs: J0
})}</footer>
</li>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
@@ -73237,20 +73237,20 @@ function GMe() {
</div></div>`;
}
// src/board-skeleton.ts
-var Y0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, KMe = () => `${Y0("80%")}${Y0("48%")}`, X0 = (e, t) => e.repeat(t), Z0 = "disabled data-skeleton-action", Q0 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, $0 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, qMe = "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", e2 = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
+var X0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, GMe = () => `${X0("80%")}${X0("48%")}`, Z0 = (e, t) => e.repeat(t), Q0 = "disabled data-skeleton-action", $0 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, e2 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, KMe = "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", t2 = () => `<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="${qMe}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${Q0("3em")}</b></div>`).join("")}</div>`, JMe = (e = "") => DZ.some(([t]) => t === e) ? e : "list", t2 = (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>`, n2 = (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>`, YMe = ({ table: e, sort: t, dir: n }) => {
+].map((e) => `<div class="${KMe}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${$0("3em")}</b></div>`).join("")}</div>`, qMe = (e = "") => OZ.some(([t]) => t === e) ? e : "list", n2 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${OZ.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, r2 = (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>`, JMe = ({ 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">${Q0("132px")}</span></span><div data-follow-toolbar-actions data-toolbar-actions>${ks({
+ 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">${$0("132px")}</span></span><div data-follow-toolbar-actions data-toolbar-actions>${ks({
glyph: "refresh-cw",
label: "检查全部",
compact: !0,
- attrs: Z0
+ attrs: Q0
})}<span data-follow-toolbar-controls class="contents"><span data-button-group role="group">${ks({
variant: "ghost",
glyph: "layout-grid",
@@ -73267,42 +73267,42 @@ var Y0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, KMe
glyph: "chevron-up",
label: "全部收起",
compact: !0,
- attrs: Z0
+ attrs: Q0
})}</span></div></div>`;
-}, r2 = () => `<span class="flex shrink-0 items-center gap-1">${ks({
+}, i2 = () => `<span class="flex shrink-0 items-center gap-1">${ks({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
- attrs: Z0
+ attrs: Q0
})}${ks({
variant: "secondary",
size: "small",
glyph: "trash",
- attrs: Z0
-})}</span>`, XMe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${n2()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${Q0("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${$0(14, 14)}</span>${$0(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">${Q0("113px")}</span>${r2()}</span></div>`, i2 = (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>${$0(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${Q0("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">${ks({
+ attrs: Q0
+})}</span>`, YMe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${r2()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${$0("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${e2(14, 14)}</span>${e2(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">${$0("113px")}</span>${i2()}</span></div>`, a2 = (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>${e2(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${$0("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">${ks({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
- attrs: Z0
-})}<span class="flex shrink-0 items-center gap-1 max-sm:mr-auto">${$0(14, 14)}${$0(14, 14)}</span><span class="flex flex-none items-center gap-2">${ks({
+ attrs: Q0
+})}<span class="flex shrink-0 items-center gap-1 max-sm:mr-auto">${e2(14, 14)}${e2(14, 14)}</span><span class="flex flex-none items-center gap-2">${ks({
variant: "secondary",
size: "small",
glyph: "check-check",
label: "全选",
- attrs: Z0
+ attrs: Q0
})}${ks({
variant: "secondary",
size: "small",
glyph: "chevron-up",
label: "收起",
- attrs: Z0
-})}</span></span></div><div data-source-divider>${X0(XMe(), e)}</div></section>`, ZMe = () => {
+ attrs: Q0
+})}</span></span></div><div data-source-divider>${Z0(YMe(), e)}</div></section>`, XMe = () => {
try {
return Number(JSON.parse(localStorage.getItem("peach.settings.v1") || "{}").followPageSize) || 20;
} catch {
return 20;
}
-}, QMe = [
+}, ZMe = [
["select", ""],
["author", "创作者"],
["source", "来源"],
@@ -73310,92 +73310,92 @@ var Y0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, KMe
["status", "状态"],
["checked", "上次检查"],
["actions", ""]
-], $Me = {
+], QMe = {
name: "author",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, a2 = "<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>", eNe = (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${$Me[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${a2}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${X0(`<tr>${[
- n2(),
- `<span class="flex min-w-0 items-center gap-2">${$0(32, 32, !0)}${Q0("5em")}</span>`,
- Q0("10em"),
- `<span class="flex items-center gap-1.5">${$0(14, 14)}${Q0("4em")}</span>`,
- $0(48, 24),
- Q0("113px"),
- r2()
-].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, tNe = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${Q0("111px")}</span><div data-toolbar-actions>${js(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${$0(204, 32)}</div></div>`, nNe = () => `<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">${Q0("120px")}</h3>${[
+}, o2 = "<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>", $Me = (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>${ZMe.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${QMe[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${o2}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${Z0(`<tr>${[
+ r2(),
+ `<span class="flex min-w-0 items-center gap-2">${e2(32, 32, !0)}${$0("5em")}</span>`,
+ $0("10em"),
+ `<span class="flex items-center gap-1.5">${e2(14, 14)}${$0("4em")}</span>`,
+ e2(48, 24),
+ $0("113px"),
+ i2()
+].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, eNe = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${$0("111px")}</span><div data-toolbar-actions>${js(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${e2(204, 32)}</div></div>`, tNe = () => `<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">${$0("120px")}</h3>${[
"72%",
"56%",
"64%",
"40%"
-].map((e) => `<span class="text-body-medium">${Q0(e)}</span>`).join("")}</div>`, rNe = (e) => {
- let t = JMe(e.followTab);
- if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${e2()}<div class="flex flex-col gap-6">${t2(t)}<div class="flex flex-col gap-4">${nNe()}</div></div></div></div>`;
- let n = e.followLayout === "table", r = mr(e.followSort, e.followDir), i = e.followPageSize || ZMe(), a = n ? eNe(i, r) : `${n2("全选本页")}<div class="flex flex-col gap-3">${i2(3)}${i2(4)}${i2(3)}</div>`;
- return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${e2()}<div class="flex flex-col gap-6">${t2(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"}">${YMe({
+].map((e) => `<span class="text-body-medium">${$0(e)}</span>`).join("")}</div>`, nNe = (e) => {
+ let t = qMe(e.followTab);
+ if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${t2()}<div class="flex flex-col gap-6">${n2(t)}<div class="flex flex-col gap-4">${tNe()}</div></div></div></div>`;
+ let n = e.followLayout === "table", r = mr(e.followSort, e.followDir), i = e.followPageSize || XMe(), a = n ? $Me(i, r) : `${r2("全选本页")}<div class="flex flex-col gap-3">${a2(3)}${a2(4)}${a2(3)}</div>`;
+ return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${t2()}<div class="flex flex-col gap-6">${n2(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"}">${JMe({
table: n,
...r
- })}${a}${tNe(n, i)}</div></div></div></div></div>`;
+ })}${a}${eNe(n, i)}</div></div></div></div></div>`;
};
-function iNe() {
- 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">${Y0("85%")}${Y0("65%")}${X0(KMe(), 4)}</div></aside></div>`;
+function rNe() {
+ 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">${X0("85%")}${X0("65%")}${Z0(GMe(), 4)}</div></aside></div>`;
}
-function aNe(e, t = {}) {
+function iNe(e, t = {}) {
let n = "";
- if (e === "/stats") n = HMe();
+ if (e === "/stats") n = VMe();
else if (e === "/jav") {
- let e = aU(new URLSearchParams(location.search).get("tab"));
- n = zMe(e === "library" ? "discover" : e);
- } else if (e === "/taste") n = UMe();
- else if (e === "/subscriptions") n = rNe(t);
- else if (e.startsWith("/settings/") && e.split("/")[2] in Af) n = AMe(Af[e.split("/")[2]]);
+ let e = oU(new URLSearchParams(location.search).get("tab"));
+ n = RMe(e === "library" ? "discover" : e);
+ } else if (e === "/taste") n = HMe();
+ else if (e === "/subscriptions") n = nNe(t);
+ else if (e.startsWith("/settings/") && e.split("/")[2] in Af) n = kMe(Af[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">${Q0("8em")}</span><span class="text-caption-1-regular">${Q0("14em")}</span>${Q0("60%")}${Q0("40%")}</div><div class="border-t border-separator-border px-5 py-2.5">${Q0("6em")}</div></div></section>`).join("")}</div></div>`;
- else if (e === "/duplicates") n = WMe();
- else if (e === "/quality-goals") n = GMe();
+ ].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">${$0("8em")}</span><span class="text-caption-1-regular">${$0("14em")}</span>${$0("60%")}${$0("40%")}</div><div class="border-t border-separator-border px-5 py-2.5">${$0("6em")}</div></div></section>`).join("")}</div></div>`;
+ else if (e === "/duplicates") n = UMe();
+ else if (e === "/quality-goals") n = WMe();
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>${ks({
label: "新建",
- attrs: Z0
- })}</div></header><div class="mx-auto w-full max-w-board"><div class="ui-playlistcards card-grid-cover gap-4.5">${X0("<article class=\"playlistcard skeletoncard\"><i></i><b></b><em></em></article>", 6)}</div></div></section></div>`;
+ attrs: Q0
+ })}</div></header><div class="mx-auto w-full max-w-board"><div class="ui-playlistcards card-grid-cover gap-4.5">${Z0("<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 oNe(e) {
+function aNe(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 o2(e) {
+function s2(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return oNe(n ?? t.body);
+ return aNe(n ?? t.body);
}
-var s2 = "[role=\"dialog\"],[role=\"listbox\"],[role=\"menu\"]";
-function sNe(e) {
+var c2 = "[role=\"dialog\"],[role=\"listbox\"],[role=\"menu\"]";
+function oNe(e) {
let t = e.querySelector(":scope > [data-react-overlays]");
for (let e = t?.lastElementChild; e; e = e.previousElementSibling) {
- let t = e.matches(s2) ? e : e.querySelector(s2);
+ let t = e.matches(c2) ? e : e.querySelector(c2);
if (t) return t;
}
return null;
}
-function c2(e) {
+function l2(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 l2 = (e) => ["follow-item", e], cNe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, lNe = "/api/follow/save", uNe = "/api/follow/media/hide", u2 = class extends Error {
+var u2 = (e) => ["follow-item", e], sNe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, cNe = "/api/follow/save", lNe = "/api/follow/media/hide", d2 = class extends Error {
constructor() {
super("这条关注内容已不存在");
}
};
-async function d2(e, t) {
- let n = await B(cNe(e), t);
+async function f2(e, t) {
+ let n = await B(sNe(e), t);
for (let t of n.groups || []) {
let r = ua(t).find((t) => t.id === e);
if (r) return {
@@ -73405,9 +73405,9 @@ async function d2(e, t) {
aliases: n.author_aliases || []
};
}
- throw new u2();
+ throw new d2();
}
-function dNe(e) {
+function uNe(e) {
for (let [, t] of H.getQueriesData({ queryKey: ["follow-item"] })) {
if (!t?.group) continue;
let n = ua(t.group).find((t) => t.id === e);
@@ -73418,20 +73418,20 @@ function dNe(e) {
}
return null;
}
-async function f2(e, t) {
- let n = l2(e.id), r = da(e.id), i = H.getQueryData(aa) ? null : H.fetchQuery({
+async function p2(e, t) {
+ let n = u2(e.id), r = da(e.id), i = H.getQueryData(aa) ? null : H.fetchQuery({
queryKey: aa,
queryFn: () => oa(t)
}), a = r ? {
...r,
item: r.item
- } : H.getQueryData(n) ?? dNe(e.id);
+ } : H.getQueryData(n) ?? uNe(e.id);
a ? H.setQueryData(n, a) : await H.fetchQuery({
queryKey: n,
- queryFn: () => d2(e.id, t)
+ queryFn: () => f2(e.id, t)
}), await i;
}
-function fNe(e, t, n, r) {
+function dNe(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 && ya(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,
@@ -73446,32 +73446,32 @@ function fNe(e, t, n, r) {
src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""
};
}
-var pNe = (e) => ua(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), mNe = {
+var fNe = (e) => ua(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), pNe = {
"gofile.io": "Gofile",
"pixeldrain.com": "Pixeldrain",
"mega.nz": "MEGA",
"mega.io": "MEGA",
"mediafire.com": "MediaFire",
"drive.google.com": "Google Drive"
-}, hNe = {
+}, mNe = {
gofile: "Gofile",
pixeldrain: "Pixeldrain",
mega: "MEGA",
mediafire: "MediaFire",
google_drive: "Google Drive"
};
-function gNe(e) {
+function hNe(e) {
try {
let t = new URL(e).hostname.replace(/^www\./, "");
- return mNe[t] || t;
+ return pNe[t] || t;
} catch {
return "外部文件页";
}
}
-function p2(e, t) {
- return hNe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
+function m2(e, t) {
+ return mNe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
}
-function _Ne(e, t, n = "") {
+function gNe(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;
@@ -73480,54 +73480,54 @@ function _Ne(e, t, n = "") {
title: e.is_release && t.author ? `${t.author}:${i}` : i
};
}
-var vNe = (e) => String(e.name || "").trim(), m2 = (e, t) => e.tag_types?.[t] || "unknown", yNe = /* @__PURE__ */ new Set([
+var _Ne = (e) => String(e.name || "").trim(), h2 = (e, t) => e.tag_types?.[t] || "unknown", vNe = /* @__PURE__ */ new Set([
"artist",
"character",
"copyright",
"metadata",
"unknown"
]);
-function bNe(e, t) {
- let n = m2(e, t);
- return `r34-${yNe.has(n) ? n : "general"}`;
+function yNe(e, t) {
+ let n = h2(e, t);
+ return `r34-${vNe.has(n) ? n : "general"}`;
}
-var h2 = [
+var g2 = [
"copyright",
"character",
"artist",
"general",
"metadata"
];
-function xNe(e, t) {
+function bNe(e, t) {
let n = e.detail_tags || e.tags || [], r = (t) => {
- let n = h2.indexOf(m2(e, t));
- return n < 0 ? h2.length : n;
+ let n = g2.indexOf(h2(e, t));
+ return n < 0 ? g2.length : n;
};
return [...n].sort((e, n) => r(e) - r(n) || t(e).localeCompare(t(n)));
}
-function g2(e, t) {
+function _2(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 SNe = (e, t) => ({
+var xNe = (e, t) => ({
sources: e.sources,
aliases: e.aliases,
credentials: t
-}), _2 = (e) => e?.size ? { size: e.size } : {};
-function CNe(e, t) {
+}), v2 = (e) => e?.size ? { size: e.size } : {};
+function SNe(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: p2(t, e),
- ..._2(t)
+ source: m2(t, e),
+ ...v2(t)
})) : r === "image" && i ? [{
src: i,
thumb: e.thumb_url || i,
name: e.title,
- source: p2(a, e),
- ..._2(a)
+ source: m2(a, e),
+ ...v2(a)
}] : e.thumb_url ? [{
src: e.thumb_url,
thumb: e.thumb_url,
@@ -73535,7 +73535,7 @@ function CNe(e, t) {
source: e.provider_label || e.provider || "在线图片"
}] : [];
}
-var wNe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", v2 = "清理文件名中的特殊符号与乱码,也可按模板改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。", y2 = "指定路径时包含子目录,目录模板以该路径为起点。模板均留空时只清理文件名。", b2 = "点击参数插入光标处,选中文字可替换。方括号里的内容在字段为空时整段省略。", x2 = "按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。", S2 = "这些作品的源文件已删除,喜欢、稍后看、播放列表与观看历史仍保留。选择替代文件后,这些记录会转移到该文件,旧作品记录随之删除。", C2 = "勾选女优,永久删除她们在全部来源中的影片文件、影片资料和观看记录,包括回收站中的影片。女优档案和照片保留。共同出演的同一文件只删除一次。", w2 = "disabled data-skeleton-action", T2 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, E2 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, D2 = (e, t) => `<h3 class="text-title-2-medium text-text-primary${t ? ` ${t}` : ""}">${e}</h3>`, O2 = (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>`, TNe = [
+var CNe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", y2 = "清理文件名中的特殊符号与乱码,也可按模板改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。", b2 = "指定路径时包含子目录,目录模板以该路径为起点。模板均留空时只清理文件名。", x2 = "点击参数插入光标处,选中文字可替换。方括号里的内容在字段为空时整段省略。", S2 = "按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。", C2 = "这些作品的源文件已删除,喜欢、稍后看、播放列表与观看历史仍保留。选择替代文件后,这些记录会转移到该文件,旧作品记录随之删除。", w2 = "勾选女优,永久删除她们在全部来源中的影片文件、影片资料和观看记录,包括回收站中的影片。女优档案和照片保留。共同出演的同一文件只删除一次。", T2 = "disabled data-skeleton-action", E2 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, D2 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, O2 = (e, t) => `<h3 class="text-title-2-medium text-text-primary${t ? ` ${t}` : ""}">${e}</h3>`, k2 = (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>`, wNe = [
"3em",
"5em",
"5em",
@@ -73545,7 +73545,7 @@ var wNe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", v2
"8em",
"8em",
"10em"
-], ENe = [
+], TNe = [
"5.8em",
"6.4em",
"7em",
@@ -73555,70 +73555,70 @@ var wNe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", v2
"5.8em",
"9em",
"9em"
-], k2 = (e, t) => ks({
+], A2 = (e, t) => ks({
variant: e,
size: "small",
- label: T2(t)
+ label: E2(t)
});
-function DNe() {
- return `<section class="${r$("stack")}">
- <div class="${t$.stack}">${D2("整理", "mb-3")}
- <p class="text-body-regular text-text-secondary">${v2}</p>
+function ENe() {
+ return `<section class="${i$("stack")}">
+ <div class="${n$.stack}">${O2("整理", "mb-3")}
+ <p class="text-body-regular text-text-secondary">${y2}</p>
<div class="mt-3 flex flex-col gap-3">
- <div class="flex min-w-0 flex-wrap items-start gap-2">${js(T2("3em"), {
+ <div class="flex min-w-0 flex-wrap items-start gap-2">${js(E2("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">${O2("留空整理整个来源", { 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">${Es("folder-search", "size-5 shrink-0")}</button></div>
+ <div class="flex min-w-0 basis-64 flex-1 items-start gap-2">${k2("留空整理整个来源", { 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">${Es("folder-search", "size-5 shrink-0")}</button></div>
</div>
- <p class="text-caption-1-regular text-text-secondary">${y2}</p>
- ${O2(T2("12em"), { label: "文件名模板" })}${O2(T2("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">${TNe.map((e) => k2("secondary", e)).join("")}</div></div>
- <p class="text-caption-1-regular text-text-secondary">路径示例:${T2("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">${ENe.map((e) => k2("ghost", e)).join("")}</div></div>
- <p class="text-caption-1-regular leading-4.5 text-text-secondary">${b2}</p>
+ <p class="text-caption-1-regular text-text-secondary">${b2}</p>
+ ${k2(E2("12em"), { label: "文件名模板" })}${k2(E2("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">${wNe.map((e) => A2("secondary", e)).join("")}</div></div>
+ <p class="text-caption-1-regular text-text-secondary">路径示例:${E2("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">${TNe.map((e) => A2("ghost", e)).join("")}</div></div>
+ <p class="text-caption-1-regular leading-4.5 text-text-secondary">${x2}</p>
</div>
</div>
- <footer class="${n$.stack}">${ks({
+ <footer class="${r$.stack}">${ks({
label: "预览",
- attrs: w2
+ attrs: T2
})}</footer>
</section>`;
}
-var ONe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
- <section class="${r$("split")}"><div class="${t$.split}">${D2("资源同步", "mb-2")}
- <p class="max-w-190 text-body-2-regular leading-5 text-text-secondary">${x2}</p></div>
- <footer class="${n$.split}">${ks({
+var DNe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
+ <section class="${i$("split")}"><div class="${n$.split}">${O2("资源同步", "mb-2")}
+ <p class="max-w-190 text-body-2-regular leading-5 text-text-secondary">${S2}</p></div>
+ <footer class="${r$.split}">${ks({
glyph: "git-compare",
label: "检查文件",
- attrs: w2
+ attrs: T2
})}</footer></section>
-</section>`, A2 = (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">${T2("3em")}</b>${t ? `<small class="text-caption-1-regular leading-5 text-text-secondary">${T2("14em")}</small>` : ""}</div>`, kNe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
- <section class="${r$("stack")}"><div class="${t$.stack}">${D2("链接管理", "mb-2")}
- <div class="link-stat-grid mt-4 gap-x-8 gap-y-3">${A2("链接总数", !0)}${[
+</section>`, j2 = (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">${E2("3em")}</b>${t ? `<small class="text-caption-1-regular leading-5 text-text-secondary">${E2("14em")}</small>` : ""}</div>`, ONe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
+ <section class="${i$("stack")}"><div class="${n$.stack}">${O2("链接管理", "mb-2")}
+ <div class="link-stat-grid mt-4 gap-x-8 gap-y-3">${j2("链接总数", !0)}${[
0,
1,
2
-].map(() => A2(T2("5em"))).join("")}</div>
+].map(() => j2(E2("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">${E2(16, 16)}${T2(e)}${E2(28, 24)}</span>`).join("")}</div></div></div>
- <footer class="${n$.stack}">${ks({
+].map((e) => `<span class="inline-flex min-w-0 items-center gap-1.5 text-body-2-medium">${D2(16, 16)}${E2(e)}${D2(28, 24)}</span>`).join("")}</div></div></div>
+ <footer class="${r$.stack}">${ks({
glyph: "link",
label: "检查死链",
- attrs: w2
+ attrs: T2
})}</footer></section>
</section>`;
-function j2({ 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">${n2()}</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>${a2}</span></span></th>`).join("")}<th data-table-space style="width:0"></th>`, s = `<tr><td>${n2()}</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">${Os("", "", n)}</div>` : "";
- return `<div data-data-table-panel class="${yU({
+function M2({ 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">${r2()}</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>${o2}</span></span></th>`).join("")}<th data-table-space style="width:0"></th>`, s = `<tr><td>${r2()}</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">${Os("", "", n)}</div>` : "";
+ return `<div data-data-table-panel class="${bU({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
})}">
- <div data-responsive-toolbar><div data-toolbar-heading>${D2(e, "")}<span class="text-body-2-regular tabular-nums text-text-secondary">${T2("4em")}</span></div>
+ <div data-responsive-toolbar><div data-toolbar-heading>${O2(e, "")}<span class="text-body-2-regular tabular-nums text-text-secondary">${E2("4em")}</span></div>
<div data-toolbar-actions>${c}<div class="flex flex-none gap-2">${ks({
variant: "secondary",
label: "显示列"
@@ -73629,38 +73629,38 @@ function j2({ title: e, description: t, search: n = "", columns: r, rows: i }) {
<span class="flex flex-none items-center gap-2">${js("默认顺序", { prefix: "排序" })}${ks({
variant: "secondary",
glyph: "arrow-up",
- attrs: w2
+ attrs: T2
})}</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">${T2("8em")}</span><div data-toolbar-actions>${js("每页 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">${E2("8em")}</span><div data-toolbar-actions>${js("每页 20 条", { size: "sm" })}</div></div>
</div>`;
}
-var ANe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span class="text-body-regular">${T2(e)}</span><small class="text-caption-1-regular">${T2(t)}</small></span>`, jNe = {
+var kNe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span class="text-body-regular">${E2(e)}</span><small class="text-caption-1-regular">${E2(t)}</small></span>`, ANe = {
organize: {
label: "正在读取整理配置",
- body: DNe
+ body: ENe
},
"resource-sync": {
label: "正在读取资源同步状态",
- body: ONe
+ body: DNe
},
"orphan-records": {
label: "正在读取文件已丢失的记录",
- body: () => `<section class="flex scroll-mt-20 flex-col gap-4">${j2({
+ body: () => `<section class="flex scroll-mt-20 flex-col gap-4">${M2({
title: "文件已丢失的记录",
- description: S2,
+ description: C2,
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>${ANe("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>${kNe("70%", "40%")}</span>`
},
{
label: "个人记录",
width: 176,
- cell: T2("6em")
+ cell: E2("6em")
},
{
label: "操作",
@@ -73669,7 +73669,7 @@ var ANe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span cl
variant: "secondary",
size: "small",
label: "删除记录",
- attrs: w2
+ attrs: T2
})
}
]
@@ -73677,50 +73677,50 @@ var ANe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span cl
},
"media-repair": {
label: "正在读取媒体修复状态",
- body: pAe
+ body: fAe
},
links: {
label: "正在读取链接统计",
- body: kNe
+ body: ONe
},
"batch-delete": {
label: "正在读取女优列表",
- body: () => `<section class="flex min-w-0 scroll-mt-20 flex-col gap-3">${j2({
+ body: () => `<section class="flex min-w-0 scroll-mt-20 flex-col gap-3">${M2({
title: "批量删除",
- description: C2,
+ description: w2,
search: "搜索女优姓名或别名",
rows: 12,
columns: [
{
label: "女优",
width: 280,
- cell: `<span class="flex min-w-0 items-center gap-3">${E2(32, 32, !0)}${T2("5em")}</span>`
+ cell: `<span class="flex min-w-0 items-center gap-3">${D2(32, 32, !0)}${E2("5em")}</span>`
},
{
label: "影片",
width: 104,
- cell: T2("3em")
+ cell: E2("3em")
},
{
label: "文件",
width: 104,
- cell: T2("3em")
+ cell: E2("3em")
},
{
label: "登记大小",
width: 136,
- cell: T2("4em")
+ cell: E2("4em")
}
]
})}</section>`
}
};
-function M2(e) {
- let { label: t, body: n } = jNe[e];
+function N2(e) {
+ let { label: t, body: n } = ANe[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 N2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => oc(e, {
+var P2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => oc(e, {
variant: r || (t ? "cards" : "panel"),
className: n,
gridClass: s,
@@ -73728,7 +73728,7 @@ var N2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill
...i ? { count: i } : {},
...a === void 0 ? {} : { fill: a },
...o ? { cardRatio: o } : {}
-}), MNe = [
+}), jNe = [
"元数据字段",
"创作者标签",
"厂牌 Logo",
@@ -73738,39 +73738,39 @@ var N2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill
"FC2 评论标记",
"FC2 跨号相似",
"片尾/出处证据"
-], NNe = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${z(e)}">
+], MNe = (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>${MNe.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>${jNe.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>`, PNe = {
- "/data-cleanup": () => mAe(),
- ...Object.fromEntries(Xf.map((e) => [e.path, () => M2(e.key)])),
- "/resource-sync": () => M2("resource-sync"),
- "/review": () => NNe(),
+ <section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, NNe = {
+ "/data-cleanup": () => pAe(),
+ ...Object.fromEntries(Xf.map((e) => [e.path, () => N2(e.key)])),
+ "/resource-sync": () => N2("resource-sync"),
+ "/review": () => MNe(),
"/sources": () => `<div class="scraping-page"><p>高清图片可能要经代理才能下载,先检查连接。</p>
- ${N2("正在读取采集来源", {
+ ${P2("正在读取采集来源", {
cards: !0,
count: 4,
fill: !1,
className: "cleanup-skeleton"
})}</div>`
};
-function P2(e, { followLayout: t, followSort: n, followDir: r }) {
- return aNe(e, {
+function F2(e, { followLayout: t, followSort: n, followDir: r }) {
+ return iNe(e, {
followLayout: t,
...e === "/subscriptions" ? {
followSort: n,
followDir: r
} : {}
- }) || (PNe[e] ?? (() => N2("正在读取页面")))();
+ }) || (NNe[e] ?? (() => P2("正在读取页面")))();
}
-var F2 = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
-function I2(e, t) {
- let n = e.querySelector("[data-skeleton]")?.dataset.skeleton || "", r = F2(t);
+var I2 = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
+function L2(e, t) {
+ let n = e.querySelector("[data-skeleton]")?.dataset.skeleton || "", r = I2(t);
r && r === n || (e.innerHTML = t, mc(e));
}
// src/react/components/related-section.tsx
-function L2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a, online: o = !1, ...s }) {
+function R2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a, online: o = !1, ...s }) {
let c = (0, F.useCallback)((e) => {
e && (mc(e), t(e));
}, [t]);
@@ -73783,17 +73783,17 @@ function L2({ 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)(PG, {
+ children: /* @__PURE__ */ (0, I.jsx)(FG, {
message: i,
onRetry: a || (() => {})
})
}) : r && !n ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-related-state": "",
- children: /* @__PURE__ */ (0, I.jsx)(sV, {
+ children: /* @__PURE__ */ (0, I.jsx)(cV, {
size: "compact",
- icon: YB,
+ icon: XB,
title: "暂无接着看的内容",
- actions: /* @__PURE__ */ (0, I.jsx)(hL, {
+ actions: /* @__PURE__ */ (0, I.jsx)(gL, {
size: "small",
href: o ? "/follow" : "/",
children: o ? "返回关注" : "浏览馆藏"
@@ -73809,7 +73809,7 @@ function L2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a,
});
}
// src/react/components/detail-continuation.tsx
-function R2({ queue: e, children: t, queueCards: n }) {
+function z2({ 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),
@@ -73817,7 +73817,7 @@ function R2({ queue: e, children: t, queueCards: n }) {
});
}
// src/react/components/media-carousel.tsx
-function z2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail: i }) {
+function B2({ 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]");
@@ -73897,7 +73897,7 @@ function z2({ 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)(FNe, {
+ children: e.map((e, r) => /* @__PURE__ */ (0, I.jsx)(PNe, {
item: e,
selected: r === t,
onSelect: n,
@@ -73916,7 +73916,7 @@ function z2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail
]
});
}
-function FNe({ item: e, selected: t, onSelect: n, render: r }) {
+function PNe({ 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;
@@ -73942,14 +73942,14 @@ function FNe({ item: e, selected: t, onSelect: n, render: r }) {
});
}
// src/react/follow-detail/follow-related.ts
-var INe = (e, t, n) => [
+var FNe = (e, t, n) => [
"follow-feed",
"related",
e,
t,
n
];
-function B2(e, t, n, r) {
+function V2(e, t, n, r) {
let i = new Set((t.group ? ua(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 = ua(e);
@@ -73964,19 +73964,19 @@ function B2(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 LNe = /* @__PURE__ */ new Set(["metadata", "artist"]);
-function RNe(e, t, n) {
+var INe = /* @__PURE__ */ new Set(["metadata", "artist"]);
+function LNe(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(_a(t, n))) s.set(e, (s.get(e) || 0) + 1);
return (e) => {
- let t = _a(e, n), c = t.source_id === void 0 ? void 0 : o.get(t.source_id), l = r(t).filter((e) => i.has(e) && !LNe.has(t.tag_types?.[e] || "")).sort((e, t) => (s.get(e) || 0) - (s.get(t) || 0) || e.localeCompare(t));
+ let t = _a(e, n), c = t.source_id === void 0 ? void 0 : o.get(t.source_id), l = r(t).filter((e) => i.has(e) && !INe.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 zNe(e, t, n, r) {
+async function RNe(e, t, n, r) {
let i = e.sources.find((t) => t.id === e.item.source_id)?.author_key || "", a = {
...va(i),
status: "new",
@@ -73990,22 +73990,22 @@ async function zNe(e, t, n, r) {
}, t), r);
return o.push(n), n;
}, c = await s(i, 0);
- return B2(o, e, t, n).length < n && c.has_more && await s(i, (c.offset || 0) + 100), i && B2(o, e, t, n).length < n && await s("", 0), {
+ return V2(o, e, t, n).length < n && c.has_more && await s(i, (c.offset || 0) + 100), i && V2(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 V2 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var H2 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
-}), BNe = 20;
-function H2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, label: a, onOpen: o, onAdd: s, onRemove: c, busyAttrs: l }) {
+}), zNe = 20;
+function U2({ 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 = dH(), _ = (e) => {
+ }), h = m.data?.items?.filter((e) => !e.hidden && !e.blocked && (n === "online" || e.cat !== "meta")) || t, g = fH(), _ = (e) => {
g.run("rename", async (t) => {
let r = (await H.fetchQuery({
queryKey: ["tag-management", n],
@@ -74016,7 +74016,7 @@ function H2({ 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 < BNe || b.includes(Un(e.k))) : e;
+ }, C = e.length > 24, w = C && !v ? e.filter((e, t) => t < zNe || b.includes(Un(e.k))) : e;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-tags": "",
@@ -74040,9 +74040,9 @@ function H2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
"data-edit-tag": e.k,
title: "修改标签名称",
"aria-label": `修改标签 ${a(e.k)}`,
- ...dV(!!g.busy),
+ ...fV(!!g.busy),
onClick: () => _(e),
- children: /* @__PURE__ */ (0, I.jsx)(V2, { name: "pencil" })
+ children: /* @__PURE__ */ (0, I.jsx)(H2, { name: "pencil" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -74051,7 +74051,7 @@ function H2({ 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)(V2, { name: "x" })
+ children: /* @__PURE__ */ (0, I.jsx)(H2, { name: "x" })
})
]
}, e.k)),
@@ -74060,11 +74060,11 @@ function H2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
size: "small",
"data-tags-more": "",
"aria-expanded": v,
- trailingIcon: v ? _B : mB,
+ trailingIcon: v ? vB : hB,
onClick: () => y(!v),
children: v ? "收起" : `还有 ${e.length - w.length} 个`
}) : null,
- /* @__PURE__ */ (0, I.jsx)(VNe, {
+ /* @__PURE__ */ (0, I.jsx)(BNe, {
tags: e,
candidates: h,
label: a,
@@ -74076,11 +74076,11 @@ function H2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
})
]
}),
- g.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ g.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
children: g.error
}) : null,
- m.isError ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ m.isError ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
@@ -74089,7 +74089,7 @@ function H2({ 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)(qQ, {
operation: "rename",
selected: [u],
scope: n,
@@ -74098,8 +74098,8 @@ function H2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
}) : null
] });
}
-function VNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a, onOpen: o, loading: s }) {
- let c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = IV(), d = (0, F.useRef)(null), f = (0, F.useRef)(!1), [p, m] = (0, F.useState)(!1), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(""), [y, b] = (0, F.useState)(-1), x = (0, F.useRef)({
+function BNe({ 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)({
adding: i,
query: h,
tags: e,
@@ -74144,7 +74144,7 @@ function VNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
_,
t.length
]);
- let w = p ? sde(_, t, MP()) : {
+ let w = p ? ode(_, t, NP()) : {
recent: [],
results: [],
create: ""
@@ -74158,7 +74158,7 @@ function VNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
], E = (e, t) => {
C(), t || r(e.k);
}, D = (t) => {
- if (!ZU(t.nativeEvent)) {
+ if (!QU(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;
@@ -74187,7 +74187,7 @@ function VNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
"aria-pressed": i,
onClick: () => E(t, i),
children: [
- /* @__PURE__ */ (0, I.jsx)(V2, { name: i ? "check" : "tags" }),
+ /* @__PURE__ */ (0, I.jsx)(H2, { name: i ? "check" : "tags" }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-pick-name": "",
children: n(t.k)
@@ -74207,8 +74207,8 @@ function VNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
title: "添加标签",
"aria-label": "添加标签",
"aria-expanded": p,
- ...dV(!!i),
- children: /* @__PURE__ */ (0, I.jsx)(V2, { name: "plus" })
+ ...fV(!!i),
+ children: /* @__PURE__ */ (0, I.jsx)(H2, { name: "plus" })
}), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: l,
id: "tagPicker",
@@ -74221,7 +74221,7 @@ function VNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
children: [s ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: Vs("正在读取标签") }
- }) : /* @__PURE__ */ (0, I.jsx)(V2, { name: "search" }), /* @__PURE__ */ (0, I.jsx)("input", {
+ }) : /* @__PURE__ */ (0, I.jsx)(H2, { name: "search" }), /* @__PURE__ */ (0, I.jsx)("input", {
ref: d,
id: "tagPickSearch",
maxLength: 80,
@@ -74265,7 +74265,7 @@ function VNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
onClick: () => {
C(), r(w.create);
},
- children: [/* @__PURE__ */ (0, I.jsx)(V2, { name: "plus" }), /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(H2, { name: "plus" }), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-pick-name": "",
children: [
"新建“",
@@ -74282,8 +74282,8 @@ function VNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
})] });
}
// src/react/follow-detail/follow-tags.tsx
-function HNe({ item: e, label: t, actions: n }) {
- let r = dH(), i = () => H.invalidateQueries({ predicate: (e) => [
+function VNe({ item: e, label: t, actions: n }) {
+ let r = fH(), i = () => H.invalidateQueries({ predicate: (e) => [
"follow-feed",
"follow",
"tag-management"
@@ -74306,7 +74306,7 @@ function HNe({ item: e, label: t, actions: n }) {
}, "POST", t);
a(n), await i();
}, () => {
- o === "add" && NP(s);
+ o === "add" && PP(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", {
@@ -74322,10 +74322,10 @@ function HNe({ item: e, label: t, actions: n }) {
"aria-label": "内容标签",
"data-follow-tag-editor": "",
"data-follow-detail-tags": "",
- children: [/* @__PURE__ */ (0, I.jsx)(H2, {
- tags: xNe(e, t).map((t) => ({
+ children: [/* @__PURE__ */ (0, I.jsx)(U2, {
+ tags: bNe(e, t).map((t) => ({
k: t,
- cat: bNe(e, t)
+ cat: yNe(e, t)
})),
scope: "online",
adding: !!r.busy,
@@ -74334,30 +74334,30 @@ function HNe({ item: e, label: t, actions: n }) {
onOpen: n.openTag,
onAdd: (e) => o("add", e),
onRemove: (e) => o("remove", e.k),
- busyAttrs: () => dV(!!r.busy)
- }), r.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ busyAttrs: () => fV(!!r.busy)
+ }), r.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
children: r.error
}) : null]
});
}
// src/react/follow-detail/follow-detail-page.tsx
-var U2 = (e) => Number(e) > 0, UNe = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var W2 = (e) => Number(e) > 0, HNe = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
-}), W2 = R("external-link", "ui-externalmark");
-function WNe(e) {
+}), G2 = R("external-link", "ui-externalmark");
+function UNe(e) {
let { id: t, actions: n } = e, r = Ft({
- queryKey: l2(t),
- queryFn: ({ signal: e }) => d2(t, e)
+ queryKey: u2(t),
+ queryFn: ({ signal: e }) => f2(t, e)
}), i = Ft({
queryKey: aa,
queryFn: ({ signal: e }) => oa(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)(qNe, {
+ return r.data ? /* @__PURE__ */ (0, I.jsx)(KNe, {
...e,
data: r.data,
- context: SNe(r.data, a),
+ context: xNe(r.data, a),
mediaIndex: o,
onMedia: s
}) : /* @__PURE__ */ (0, I.jsx)("div", {
@@ -74366,9 +74366,9 @@ function WNe(e) {
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-media": "",
"data-follow-detail-media": "none",
- children: [/* @__PURE__ */ (0, I.jsx)(G2, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
+ children: [/* @__PURE__ */ (0, I.jsx)(K2, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-detail-placeholder": "",
- children: r.isError ? GNe(r.error) ? /* @__PURE__ */ (0, I.jsx)(KNe, { onBack: n.close }) : /* @__PURE__ */ (0, I.jsx)(PG, {
+ children: r.isError ? WNe(r.error) ? /* @__PURE__ */ (0, I.jsx)(GNe, { onBack: n.close }) : /* @__PURE__ */ (0, I.jsx)(FG, {
message: xn(r.error),
onRetry: () => void r.refetch()
}) : null
@@ -74376,8 +74376,8 @@ function WNe(e) {
})
});
}
-var GNe = (e) => e instanceof u2 || e instanceof sr && e.status === 404;
-function KNe({ onBack: e }) {
+var WNe = (e) => e instanceof d2 || e instanceof sr && e.status === 404;
+function GNe({ onBack: e }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-detail-gone": "",
onClick: (t) => {
@@ -74386,7 +74386,7 @@ function KNe({ onBack: e }) {
dangerouslySetInnerHTML: { __html: Bs("这条关注内容已不存在,可能已被来源删除或已清理。", { actionLabel: "回到关注" }) }
});
}
-var G2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
+var K2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -74395,8 +74395,8 @@ var G2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function qNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
- let { item: c, group: l } = e, u = fNe(c, l, n, i), d = $Ne(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, F.useState)({
+function KNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
+ let { item: c, group: l } = e, u = dNe(c, l, n, i), d = QNe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, F.useState)({
key: "",
kind: ""
}), h = {
@@ -74416,20 +74416,20 @@ function qNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
c,
u.kind
]);
- let g = !u.embedded.length && u.collection ? pNe(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, I.jsx)(Y2, {
+ let g = !u.embedded.length && u.collection ? fNe(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, I.jsx)(X2, {
item: c,
current: u.selected.index,
helpers: o,
actions: s,
onMedia: r
- }) : u.collection ? g ? /* @__PURE__ */ (0, I.jsx)(Y2, {
+ }) : u.collection ? g ? /* @__PURE__ */ (0, I.jsx)(X2, {
item: g,
current: null,
helpers: o,
actions: s,
onMedia: r,
currentId: c.id
- }) : /* @__PURE__ */ (0, I.jsx)(XNe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(YNe, {
group: u.collection,
itemId: c.id,
helpers: o,
@@ -74439,14 +74439,14 @@ function qNe({ 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)(YNe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(JNe, {
item: c,
media: u,
helpers: o,
actions: s,
onMedia: r,
issues: h
- }, f), /* @__PURE__ */ (0, I.jsx)(ZNe, {
+ }, f), /* @__PURE__ */ (0, I.jsx)(XNe, {
item: c,
data: e,
context: t,
@@ -74456,9 +74456,9 @@ function qNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
helpers: o,
actions: s
})]
- }), /* @__PURE__ */ (0, I.jsx)(R2, {
+ }), /* @__PURE__ */ (0, I.jsx)(z2, {
queue: _,
- children: a > 0 ? /* @__PURE__ */ (0, I.jsx)(JNe, {
+ children: a > 0 ? /* @__PURE__ */ (0, I.jsx)(qNe, {
data: e,
media: u.kind === "image" ? "images" : u.kind === "video" ? "videos" : i,
limit: a,
@@ -74468,23 +74468,23 @@ function qNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
}) : null
})] });
}
-function JNe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
+function qNe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
let o = Ft({
- queryKey: INe(e.item.id, t, n),
- queryFn: ({ signal: r }) => zNe(e, t, n, r)
- }), [s] = (0, F.useState)(() => N2("正在读取推荐", {
+ queryKey: FNe(e.item.id, t, n),
+ queryFn: ({ signal: r }) => RNe(e, t, n, r)
+ }), [s] = (0, F.useState)(() => P2("正在读取推荐", {
cards: !0,
className: "related-skeleton"
})), c = (0, F.useMemo)(() => ({
openDetail: a.openItem,
openAuthor: a.openAuthor,
canFlip: a.canFlip
- }), [a]), l = B2(o.data?.pages || [], e, t, n), u = RNe(o.data?.pages || [], e, t), d = o.data?.pages.at(-1)?.sources || e.sources, f = {
+ }), [a]), l = V2(o.data?.pages || [], e, t, n), u = LNe(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)(L2, {
+ return /* @__PURE__ */ (0, I.jsx)(R2, {
online: !0,
"data-follow-related": "",
wireDrag: i.wireDrag,
@@ -74494,11 +74494,11 @@ function JNe({ 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)(DZ, {
variant: "next",
group: e,
media: t,
- authorSources: g2(e.primary, d),
+ authorSources: _2(e.primary, d),
context: f,
selected: !1,
selectMode: !1,
@@ -74512,8 +74512,8 @@ function JNe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }
})
});
}
-function YNe({ 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 = CNe(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 JNe({ 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 = SNe(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);
@@ -74527,14 +74527,14 @@ function YNe({ 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)(G2, { onClose: n.close }),
+ /* @__PURE__ */ (0, I.jsx)(K2, { 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 gZ(Math.max(0, l), p) : void 0,
onError: () => {
_ && v !== _ ? (y(_), i.thumbFallback()) : i.failed();
}
@@ -74542,10 +74542,10 @@ function YNe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
"data-follow-detail-placeholder": "",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: cG(e.resource_provider || e.provider) }
+ dangerouslySetInnerHTML: { __html: lG(e.resource_provider || e.provider) }
}), /* @__PURE__ */ (0, I.jsx)("span", { children: "没有可用预览" })]
}),
- u ? /* @__PURE__ */ (0, I.jsx)(z2, {
+ u ? /* @__PURE__ */ (0, I.jsx)(B2, {
items: c,
position: l,
onSelect: r,
@@ -74562,11 +74562,11 @@ function YNe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
]
});
}
-var K2 = ({ kind: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var q2 = ({ kind: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-nothumb": "",
dangerouslySetInnerHTML: { __html: R(e === "image" ? "image-off" : "play") }
});
-function q2({ src: e }) {
+function J2({ src: e }) {
let [t, n] = (0, F.useState)(!1);
return t ? null : /* @__PURE__ */ (0, I.jsx)("img", {
src: e,
@@ -74576,27 +74576,27 @@ function q2({ src: e }) {
onError: () => n(!0)
});
}
-function J2(e) {
+function Y2(e) {
return (0, F.useCallback)((t) => {
t && e.wireDrag(t);
}, [e]);
}
-function XNe({ group: e, itemId: t, helpers: n, actions: r }) {
- let i = ya(e), a = J2(n);
- return /* @__PURE__ */ (0, I.jsx)(_K, {
+function YNe({ group: e, itemId: t, helpers: n, actions: r }) {
+ let i = ya(e), a = Y2(n);
+ return /* @__PURE__ */ (0, I.jsx)(vK, {
kind: "collection",
"data-follow-queue": "",
title: "视频合集",
onClose: r.close,
listRef: a,
- summary: `${uG(e.primary)} · ${i.length} 个视频`,
+ summary: `${dG(e.primary)} · ${i.length} 个视频`,
children: i.map((n) => {
- let i = e.duplicates.includes(n), a = _Ne(e, n, i ? n.provider_label : ""), o = i ? cG(n.provider, n.provider_label) : "";
- return /* @__PURE__ */ (0, I.jsxs)(vK, {
+ let i = e.duplicates.includes(n), a = gNe(e, n, i ? n.provider_label : ""), o = i ? lG(n.provider, n.provider_label) : "";
+ return /* @__PURE__ */ (0, I.jsxs)(yK, {
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)(q2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(K2, { kind: "video" }), U2(n.duration) ? /* @__PURE__ */ (0, I.jsx)("i", {
+ pic: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, I.jsx)(J2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(q2, { kind: "video" }), W2(n.duration) ? /* @__PURE__ */ (0, I.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: Jn(n.duration)
@@ -74614,15 +74614,15 @@ function XNe({ group: e, itemId: t, helpers: n, actions: r }) {
children: a.label
}), /* @__PURE__ */ (0, I.jsx)("time", {
dateTime: n.published_at || "",
- children: yG(n)
+ children: bG(n)
})]
})]
}, n.id);
})
});
}
-function Y2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
- let o = e.media_items || [], s = J2(r), c = [];
+function X2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
+ let o = e.media_items || [], s = Y2(r), c = [];
o.forEach((e) => {
let t = e.resource_group || "ungrouped", n = c.find((e) => e.key === t);
n || (n = {
@@ -74632,26 +74632,26 @@ function Y2({ 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)(_K, {
+ return /* @__PURE__ */ (0, I.jsx)(vK, {
kind: "media",
"data-follow-queue": "",
title: "多媒体",
onClose: i.close,
listRef: s,
- summary: `${uG(e)} · ${o.length} 个媒体`,
- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, I.jsx)(Gxe, {
+ summary: `${dG(e)} · ${o.length} 个媒体`,
+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, I.jsx)(Wxe, {
label: n.label,
count: n.items.length
- }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, I.jsxs)(vK, {
+ }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, I.jsxs)(yK, {
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)(q2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(K2, { kind: n.media_kind || "" }),
+ pic: n.thumb_url ? /* @__PURE__ */ (0, I.jsx)(J2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(q2, { kind: n.media_kind || "" }),
children: [/* @__PURE__ */ (0, I.jsx)("b", {
"data-middle-truncate": "",
- children: vNe(n)
+ children: _Ne(n)
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-truncate-end": "",
children: n.media_kind === "image" ? "图片" : "视频"
@@ -74659,13 +74659,13 @@ function Y2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, n.index))])
});
}
-function ZNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
+function XNe({ 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 = gG(d, e), p = mG(e, g2(e, t.sources), n), m = p.credited ? "" : e.author && Un(e.author) !== Un(p.author) ? e.author : "", h = _G(e, n), g = e.status === "saved", { busy: _ } = i, v = (e) => _.has(e) ? {
+ }, f = _G(d, e), p = hG(e, _2(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) ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
@@ -74681,7 +74681,7 @@ function ZNe({ 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: hG(d, e) + z(uG(e)) }
+ dangerouslySetInnerHTML: { __html: gG(d, e) + z(dG(e)) }
}), e.url ? /* @__PURE__ */ (0, I.jsx)("a", {
"data-follow-origin": "",
href: e.url,
@@ -74689,7 +74689,7 @@ function ZNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
rel: "noreferrer noopener",
title: "打开来源页面",
"aria-label": "打开来源页面",
- dangerouslySetInnerHTML: { __html: W2 }
+ dangerouslySetInnerHTML: { __html: G2 }
}) : null]
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -74697,8 +74697,8 @@ function ZNe({ 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: yG(e) }),
- U2(e.duration) ? /* @__PURE__ */ (0, I.jsx)("span", { children: Jn(e.duration) }) : null,
+ /* @__PURE__ */ (0, I.jsx)("span", { children: bG(e) }),
+ W2(e.duration) ? /* @__PURE__ */ (0, I.jsx)("span", { children: Jn(e.duration) }) : null,
f ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: f }
@@ -74715,7 +74715,7 @@ function ZNe({ 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)(TZ, {
name: p.entityName,
actions: s,
"data-id-cell": "creator",
@@ -74747,7 +74747,7 @@ function ZNe({ 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)(QNe, { text: e.summary }, e.id) : null,
+ e.summary ? /* @__PURE__ */ (0, I.jsx)(ZNe, { text: e.summary }, e.id) : null,
h ? /* @__PURE__ */ (0, I.jsx)("p", {
"data-follow-media-issue": "",
children: h
@@ -74770,9 +74770,9 @@ function ZNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
href: e,
target: "_blank",
rel: "noreferrer noopener",
- children: [gNe(e), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [hNe(e), /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: W2 }
+ dangerouslySetInnerHTML: { __html: G2 }
})]
}, e))
}) : null,
@@ -74872,7 +74872,7 @@ function ZNe({ 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)(q2, { src: e.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(UNe, { name: "image-off" }), /* @__PURE__ */ (0, I.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
+ children: [e.thumb_url ? /* @__PURE__ */ (0, I.jsx)(J2, { src: e.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(HNe, { name: "image-off" }), /* @__PURE__ */ (0, I.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
}, e.index))
})]
}) : null,
@@ -74881,7 +74881,7 @@ function ZNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"aria-live": "polite",
children: i.failure
}),
- /* @__PURE__ */ (0, I.jsx)(HNe, {
+ /* @__PURE__ */ (0, I.jsx)(VNe, {
item: e,
label: o.tagLabel,
actions: s
@@ -74890,7 +74890,7 @@ function ZNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
})
});
}
-function QNe({ text: e }) {
+function ZNe({ 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;
@@ -74903,7 +74903,7 @@ function QNe({ text: e }) {
ref: t,
"data-follow-detail-summary": "",
"data-long-text": "",
- lang: II(e),
+ lang: LI(e),
"data-clamped": n ? void 0 : "",
children: e
}), i || n ? /* @__PURE__ */ (0, I.jsx)(Y, {
@@ -74915,8 +74915,8 @@ function QNe({ text: e }) {
children: n ? "收起" : "展开"
}) : null] });
}
-function $Ne(e, t, n) {
- let r = e.id, i = l2(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), l = (e, t) => o((n) => {
+function QNe(e, t, n) {
+ let r = e.id, i = u2(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) => {
@@ -74935,7 +74935,7 @@ function $Ne(e, t, n) {
to: e
}),
onSuccess: (e, { to: n, was: i }) => {
- u(n), c(""), n === "ignored" && iW(), t.toast(wNe(n), { undo: i === "saved" ? void 0 : async () => {
+ u(n), c(""), n === "ignored" && aW(), t.toast(CNe(n), { undo: i === "saved" ? void 0 : async () => {
await V(Mr, {
item: r,
to: i
@@ -74945,7 +74945,7 @@ function $Ne(e, t, n) {
onError: d,
onSettled: (e, t, { to: n }) => l(n, !1)
}), p = It({
- mutationFn: () => V(lNe, { item: r }),
+ mutationFn: () => V(cNe, { item: r }),
onSuccess: () => {
u("saved"), c(""), t.toast("已保存到数据库");
},
@@ -74953,7 +74953,7 @@ function $Ne(e, t, n) {
onSettled: () => l("save", !1)
}), m = It({
mutationFn: async ({ index: e, hidden: t }) => {
- await V(uNe, {
+ await V(lNe, {
item: r,
media: e,
hidden: t
@@ -74969,12 +74969,12 @@ function $Ne(e, t, n) {
onError: d,
onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)
}), h = Ft({
- queryKey: Lye(r),
- queryFn: ({ signal: e }) => Bye(r, e)
+ queryKey: Iye(r),
+ queryFn: ({ signal: e }) => zye(r, e)
}).data?.want ?? null, g = It({
- mutationFn: async (e) => (e ? await rW([e.id]) : await nW({ follow: r }), !e),
+ mutationFn: async (e) => (e ? await iW([e.id]) : await rW({ follow: r }), !e),
onSuccess: (e) => {
- c(""), t.toast(e ? "已加入想要" : "已取消想要"), iW();
+ c(""), t.toast(e ? "已加入想要" : "已取消想要"), aW();
},
onError: d,
onSettled: () => l("want", !1)
@@ -75013,8 +75013,8 @@ function $Ne(e, t, n) {
};
}
// src/react/components/identity-cell.tsx
-function X2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {
- eL();
+function Z2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {
+ tL();
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>` + _o({
@@ -75060,7 +75060,7 @@ function X2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a })
children: c
});
}
-function Z2({ people: e, onOpen: t }) {
+function Q2({ 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",
@@ -75093,7 +75093,7 @@ function Z2({ people: e, onOpen: t }) {
});
}
// src/react/components/folded-title.ts
-function Q2(e) {
+function $2(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;
@@ -75110,9 +75110,9 @@ function Q2(e) {
};
}
// src/react/item-detail/catalog-picture.tsx
-function $2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
+function e4({ 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)(sQ, {
item: {
code: e.code,
has_cover: !1,
@@ -75126,7 +75126,7 @@ function $2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
src: c,
alt: "",
onError: () => a(c)
- }) : i === c ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ }) : i === c ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
@@ -75144,34 +75144,34 @@ function $2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
}, o);
}
// src/react/jav-detail/jav-detail.ts
-var e4 = (e) => ["jav-detail", e], t4 = (e, t, n = !1) => B(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), ePe = (e, t, n, r = !1) => B(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), n4 = (e, t) => H.ensureQueryData({
- queryKey: e4(e.code),
- queryFn: () => t4(e.code, t),
+var t4 = (e) => ["jav-detail", e], n4 = (e, t, n = !1) => B(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), $Ne = (e, t, n, r = !1) => B(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), r4 = (e, t) => H.ensureQueryData({
+ queryKey: t4(e.code),
+ queryFn: () => n4(e.code, t),
staleTime: 216e5,
revalidateIfStale: !0
});
-function tPe(e, t) {
+function ePe(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 r4 = "peach.playback-target.v1", i4 = [["m3u", "M3U 播放列表"], ["url", "网络播放地址 / VR"]];
-function nPe() {
+var i4 = "peach.playback-target.v1", a4 = [["m3u", "M3U 播放列表"], ["url", "网络播放地址 / VR"]];
+function tPe() {
try {
- return localStorage.getItem(r4) || `local:${localStorage.getItem("peach.local-player.v1") || "default"}`;
+ return localStorage.getItem(i4) || `local:${localStorage.getItem("peach.local-player.v1") || "default"}`;
} catch {
return "local:default";
}
}
-function a4({ id: e, onOpened: t }) {
- let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(nPe), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(0), f = dH();
+function o4({ id: e, onOpened: t }) {
+ let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(tPe), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(0), f = fH();
(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) || i4.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) || a4.some(([t]) => t === e) ? e : t.players.length ? `local:${t.players[0].id}` : "m3u"));
}).catch((t) => {
- e.signal.aborted || (r([]), a((e) => i4.some(([t]) => t === e) ? e : "m3u"), l(String(t.message || t)));
+ e.signal.aborted || (r([]), a((e) => a4.some(([t]) => t === e) ? e : "m3u"), l(String(t.message || t)));
}), () => e.abort();
}, [u]);
let p = () => void f.run("open", async (t) => {
@@ -75195,29 +75195,29 @@ function a4({ id: e, onOpened: t }) {
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-local-playback-row": "",
- children: [/* @__PURE__ */ (0, I.jsx)(e1, {
+ children: [/* @__PURE__ */ (0, I.jsx)(t1, {
id: `external-player-${e}`,
label: "外部播放器",
- options: [...(n || []).map((e) => [`local:${e.id}`, e.label]), ...i4],
+ options: [...(n || []).map((e) => [`local:${e.id}`, e.label]), ...a4],
value: i,
disabled: n === null || !!f.busy,
epoch: u * 2 + Number(n !== null),
onPick: (e) => {
a(e), s(null), f.setError("");
try {
- localStorage.setItem(r4, e);
+ localStorage.setItem(i4, e);
} catch {}
}
}), /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
"aria-label": "使用外部播放器打开",
disabled: n === null,
- ...dV(f.busy === "open"),
+ ...fV(f.busy === "open"),
onClick: p,
children: "打开"
})]
}),
- f.error || c ? /* @__PURE__ */ (0, I.jsx)(NH, { children: f.error || c }) : null,
+ f.error || c ? /* @__PURE__ */ (0, I.jsx)(PH, { children: f.error || c }) : null,
c ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
disabled: !!f.busy,
@@ -75226,16 +75226,16 @@ function a4({ id: e, onOpened: t }) {
},
children: "重新检测播放器"
}) : null,
- o ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(rV, {
+ o ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(iV, {
label: "网络播放地址",
value: o.url,
isReadOnly: !0
- }), /* @__PURE__ */ (0, I.jsx)(MH, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })] }) : null
+ }), /* @__PURE__ */ (0, I.jsx)(NH, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })] }) : null
]
});
}
// src/react/boardui/components/base/switch/switch.tsx
-var rPe = AI({
+var nPe = jI({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -75297,8 +75297,8 @@ var rPe = AI({
}
}
});
-function iPe({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = rPe[t];
+function rPe({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = nPe[t];
return /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
className: J("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? J("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"),
@@ -75308,12 +75308,12 @@ function iPe({ state: e, size: t = "md", shape: n = "pill" }) {
})
});
}
-function o4({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(rhe, {
+function s4({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsx)(nhe, {
ref: i,
...a,
className: (t) => J("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)(iPe, {
+ children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(rPe, {
state: e,
size: n,
shape: r
@@ -75324,12 +75324,12 @@ function o4({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
});
}
// src/react/cover-crop/cover-crop.ts
-var aPe = "/api/cover-crop", oPe = (e, t) => V(aPe, {
+var iPe = "/api/cover-crop", aPe = (e, t) => V(iPe, {
code: e,
box: t
});
// src/react/cover-crop/cover-crop-page.tsx
-function s4({ className: e }) {
+function c4({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -75342,7 +75342,7 @@ function s4({ className: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-crop" })
});
}
-function sPe({ code: e, coverUrl: t, box: n, onSaved: r }) {
+function oPe({ 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",
@@ -75352,13 +75352,13 @@ function sPe({ 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)(s4, { className: "size-3.75" })
- }), /* @__PURE__ */ (0, I.jsx)(iV, {
+ children: /* @__PURE__ */ (0, I.jsx)(c4, { className: "size-3.75" })
+ }), /* @__PURE__ */ (0, I.jsx)(aV, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
label: "裁剪封面",
- children: /* @__PURE__ */ (0, I.jsx)(cPe, {
+ children: /* @__PURE__ */ (0, I.jsx)(sPe, {
code: e,
coverUrl: t,
box: n,
@@ -75367,9 +75367,9 @@ function sPe({ code: e, coverUrl: t, box: n, onSaved: r }) {
})
})] });
}
-function cPe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
- let [a, o] = (0, F.useState)(null), [s, c] = (0, F.useState)(null), [l, u] = (0, F.useState)(!0), d = IV(), f = It({
- mutationFn: (t) => oPe(e, t),
+function sPe({ 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) => aPe(e, t),
onSuccess: (e) => {
i(), r(e.poster_box);
}
@@ -75381,19 +75381,19 @@ function cPe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : yOe(e, ro);
- c(HZ(t, e, null));
+ } : vOe(e, ro);
+ c(UZ(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)(aV, { children: /* @__PURE__ */ (0, I.jsx)(s4, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, I.jsx)(oV, { children: /* @__PURE__ */ (0, I.jsx)(c4, { className: "size-6" }) }),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(LL, {
+ /* @__PURE__ */ (0, I.jsx)(RL, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "裁剪封面"
@@ -75402,14 +75402,14 @@ function cPe({ 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)(oV, {
+ f.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
children: lr(f.error)
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(rL, {
- icon: xB,
+ /* @__PURE__ */ (0, I.jsx)(iL, {
+ icon: SB,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -75419,24 +75419,24 @@ function cPe({ 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)(JZ, {
src: t,
aspect: l ? ro : null,
box: s,
size: a,
label: `${e} 的正封取景框`,
onSize: (e) => {
- BZ(e) && p(e);
+ VZ(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)(o4, {
+ children: [/* @__PURE__ */ (0, I.jsx)(s4, {
isSelected: l,
onChange: (e) => {
- u(e), e && s && a && c(HZ(s, a, ro));
+ u(e), e && s && a && c(UZ(s, a, ro));
},
children: /* @__PURE__ */ (0, I.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -75446,14 +75446,14 @@ function cPe({ 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)(Y, {
variant: "secondary",
- ...dV(m),
+ ...fV(m),
onClick: () => {
m || f.mutate(null);
},
children: "恢复默认"
}), /* @__PURE__ */ (0, I.jsx)(Y, {
disabled: !s || !a,
- ...dV(m),
+ ...fV(m),
onClick: () => {
s && !m && f.mutate(s);
},
@@ -75464,21 +75464,21 @@ function cPe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
] });
}
// src/react/item-detail/item-detail-page.tsx
-var c4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var l4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
-}), l4 = ({ html: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+}), u4 = ({ html: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: e }
-}), u4 = (e) => Number(e) > 0 ? Xn(Number(e)) : "大小未知";
-function lPe(e) {
+}), d4 = (e) => Number(e) > 0 ? Xn(Number(e)) : "大小未知";
+function cPe(e) {
let { queue: t, actions: n } = e, r = Ft({
- queryKey: t ? pP(t) : ["item-queue", "none"],
- queryFn: ({ signal: n }) => SP(t, e.helpers, n),
+ queryKey: t ? mP(t) : ["item-queue", "none"],
+ queryFn: ({ signal: n }) => CP(t, e.helpers, n),
enabled: !!t
- }), i = t && r.data || null, a = i ? TP(i, e.id) : t ? null : e.id, o = Ft({
- queryKey: fP(a ?? 0),
- queryFn: ({ signal: e }) => xP(a, e),
+ }), 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),
enabled: a != null
});
if (!o.data || t && !i) {
@@ -75489,9 +75489,9 @@ function lPe(e) {
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-media": "",
"data-item-media": "none",
- children: [/* @__PURE__ */ (0, I.jsx)(d4, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
+ children: [/* @__PURE__ */ (0, I.jsx)(f4, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
"data-item-placeholder": "",
- children: e ? /* @__PURE__ */ (0, I.jsx)(PG, {
+ children: e ? /* @__PURE__ */ (0, I.jsx)(FG, {
message: xn(e),
onRetry: () => {
r.error && r.refetch(), o.error && o.refetch();
@@ -75501,13 +75501,13 @@ function lPe(e) {
})
});
}
- return /* @__PURE__ */ (0, I.jsx)(uPe, {
+ return /* @__PURE__ */ (0, I.jsx)(lPe, {
...e,
- item: ide(o.data, i),
+ item: rde(o.data, i),
queue: i
}, o.data.id);
}
-var d4 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
+var f4 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -75516,23 +75516,23 @@ var d4 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function uPe(e) {
- let { item: t, queue: n, actions: r, helpers: i } = e, a = TPe(t, r, i.tagLabel), o = (0, F.useRef)(t);
+function lPe(e) {
+ let { item: t, queue: n, actions: r, helpers: i } = e, a = wPe(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(mP, {
+ n?.kind === "playlist" && V(hP, {
action: "progress",
id: n.playlistId,
asset_id: t.id
}).catch(() => {});
}, []);
- let s = KN() ? "" : mde(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = EP(n, t.id);
+ let s = qN() ? "" : pde(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = DP(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)(dPe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(uPe, {
item: t,
gate: s,
helpers: i,
@@ -75545,22 +75545,22 @@ function uPe(e) {
autoplay: !0
}, c.id);
}
- }), /* @__PURE__ */ (0, I.jsx)(gPe, {
+ }), /* @__PURE__ */ (0, I.jsx)(hPe, {
item: t,
queue: n,
write: a,
helpers: i,
actions: r
})]
- }), /* @__PURE__ */ (0, I.jsx)(R2, {
+ }), /* @__PURE__ */ (0, I.jsx)(z2, {
queueCards: n?.kind === "parts" || n?.kind === "editions" ? n.items.length : void 0,
- queue: n ? /* @__PURE__ */ (0, I.jsx)(pPe, {
+ queue: n ? /* @__PURE__ */ (0, I.jsx)(fPe, {
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)(wPe, {
+ children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, I.jsx)(CPe, {
...e,
item: n ? {
...t,
@@ -75569,12 +75569,12 @@ function uPe(e) {
}) : null
})] });
}
-function dPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
+function uPe({ 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: e4(e.code || ""),
+ queryKey: t4(e.code || ""),
queryFn: ({ signal: t }) => {
let n = d.current;
- return d.current = !1, t4(e.code, t, n);
+ return d.current = !1, n4(e.code, t, n);
},
staleTime: 216e5,
enabled: !!e.is_jav && !!e.code && !e.sample_images?.length
@@ -75619,7 +75619,7 @@ function dPe({ 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)(d4, { onClose: r.close }),
+ /* @__PURE__ */ (0, I.jsx)(f4, { onClose: r.close }),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-player-toolbar": "",
children: [
@@ -75629,21 +75629,21 @@ function dPe({ 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)(c4, { name: l === -2 ? "image" : "play" }), l === -2 ? "查看图片" : "播放正片"]
+ children: [/* @__PURE__ */ (0, I.jsx)(l4, { 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)($2, {
+ h ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [l === -2 ? null : /* @__PURE__ */ (0, I.jsx)(e4, {
item: e,
image: l,
source: p.find((e) => e.index === l)?.source
- }, e.id), /* @__PURE__ */ (0, I.jsx)(z2, {
+ }, e.id), /* @__PURE__ */ (0, I.jsx)(B2, {
items: m,
position: Math.max(0, m.findIndex((e) => e.index === l)),
onSelect: g,
below: !0,
- renderThumbnail: (t) => /* @__PURE__ */ (0, I.jsx)($2, {
+ renderThumbnail: (t) => /* @__PURE__ */ (0, I.jsx)(e4, {
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,
@@ -75659,7 +75659,7 @@ function dPe({ 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)(Y, {
variant: "secondary",
- ...dV(f.isFetching),
+ ...fV(f.isFetching),
title: f.data?.message || xn(f.error),
"aria-label": "立即重试样图",
onClick: () => {
@@ -75668,7 +75668,7 @@ function dPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
children: "立即重试"
})
}) : null,
- t === "offline" ? /* @__PURE__ */ (0, I.jsx)(fPe, {
+ t === "offline" ? /* @__PURE__ */ (0, I.jsx)(dPe, {
item: e,
badge: y,
helpers: n,
@@ -75679,7 +75679,7 @@ function dPe({ 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)(a4, {
+ /* @__PURE__ */ (0, I.jsx)(o4, {
id: e.id,
onOpened: () => r.toast("已请求打开本地播放器")
}, e.id)
@@ -75689,7 +75689,7 @@ function dPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
role: "status",
"data-item-gate": "online",
children: [
- /* @__PURE__ */ (0, I.jsx)(l4, { html: y }),
+ /* @__PURE__ */ (0, I.jsx)(u4, { html: y }),
/* @__PURE__ */ (0, I.jsx)("b", { children: "在线作品" }),
/* @__PURE__ */ (0, I.jsx)("span", { children: "这条没有对应的关注条目,媒体地址无从解析。" }),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -75704,12 +75704,12 @@ function dPe({ 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)(l4, { html: y }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["点此开始拉流 · ", u4(e.size)] })]
+ children: [/* @__PURE__ */ (0, I.jsx)(u4, { html: y }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["点此开始拉流 · ", d4(e.size)] })]
}) : null
]
});
}
-function fPe({ item: e, badge: t, helpers: n, actions: r }) {
+function dPe({ 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);
@@ -75720,7 +75720,7 @@ function fPe({ item: e, badge: t, helpers: n, actions: r }) {
role: "status",
"data-item-gate": "offline",
children: [
- /* @__PURE__ */ (0, I.jsx)(l4, { html: t }),
+ /* @__PURE__ */ (0, I.jsx)(u4, { 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", {
@@ -75734,8 +75734,8 @@ function fPe({ item: e, badge: t, helpers: n, actions: r }) {
]
});
}
-function pPe({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = ude(e), a = (0, F.useRef)(null), o = hPe(e, t, r), s = (0, F.useRef)(o);
+function fPe({ queue: e, itemId: t, helpers: n, actions: r }) {
+ let i = lde(e), a = (0, F.useRef)(null), o = mPe(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, {
@@ -75743,7 +75743,7 @@ function pPe({ 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 = mPe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)("button", {
+ }, [n, e.kind]), l = pPe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-save-mix": "",
title: "保存为播放列表",
@@ -75762,7 +75762,7 @@ function pPe({ queue: e, itemId: t, helpers: n, actions: r }) {
seedId: e.seedId,
playlistId: e.playlistId
};
- return /* @__PURE__ */ (0, I.jsx)(_K, {
+ return /* @__PURE__ */ (0, I.jsx)(vK, {
kind: e.kind,
title: i.title,
summary: i.summary,
@@ -75771,11 +75771,11 @@ function pPe({ 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 ${cde[i.edition_label] || "censored"}`,
+ className: `javedition ${sde[i.edition_label] || "censored"}`,
"data-queue-edition": "",
children: i.edition_label
- }) : null, s = e.kind === "playlist" && wP(i);
- return /* @__PURE__ */ (0, I.jsxs)(vK, {
+ }) : null, s = e.kind === "playlist" && TP(i);
+ return /* @__PURE__ */ (0, I.jsxs)(yK, {
current: i.id === t,
"data-queue-item": i.id,
row: { "data-queue-row": i.id },
@@ -75785,25 +75785,25 @@ function pPe({ 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)(l4, { html: ko(i, n.javImage()) }), /* @__PURE__ */ (0, I.jsx)("i", {
+ pic: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(u4, { html: ko(i, n.javImage()) }), /* @__PURE__ */ (0, I.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: Jn(i.duration)
})] }),
- lead: /* @__PURE__ */ (0, I.jsx)(l4, { html: Mo(i) }),
+ lead: /* @__PURE__ */ (0, I.jsx)(u4, { html: Mo(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)(c4, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, I.jsx)(l4, { 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)(c4, { name: "x" })
+ children: /* @__PURE__ */ (0, I.jsx)(l4, { name: "x" })
})]
}) : null,
children: [/* @__PURE__ */ (0, I.jsxs)("span", {
@@ -75814,14 +75814,14 @@ function pPe({ 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 ? PP(i.part_label) : No(i, n.tagLabel)
+ children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? FP(i.part_label) : No(i, n.tagLabel)
})]
}, i.id);
})
});
}
-function mPe(e, t) {
- let n = It({ mutationFn: (t) => V(mP, {
+function pPe(e, t) {
+ let n = It({ mutationFn: (t) => V(hP, {
action: "create",
name: t,
asset_ids: e.items.map((e) => e.id),
@@ -75834,11 +75834,11 @@ function mPe(e, t) {
save: (e) => n.mutateAsync(e)
});
}
-function hPe(e, t, n) {
- let r = pP({
+function mPe(e, t, n) {
+ let r = mP({
kind: "playlist",
playlistId: e.playlistId
- }), i = (e) => (H.setQueryData(r, CP(e)), e), a = (t) => V(mP, {
+ }), i = (e) => (H.setQueryData(r, wP(e)), e), a = (t) => V(hP, {
id: e.playlistId,
...t
}).then((e) => e.playlist), o = It({
@@ -75854,8 +75854,8 @@ function hPe(e, t, n) {
return {
move: async (t, r, c) => {
if (e.kind !== "playlist") return;
- let l = fde(s, t, r, c);
- if (pde(l, s)) return;
+ let l = dde(s, t, r, c);
+ if (fde(l, s)) return;
let u = s;
await o.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {
i(await a({
@@ -75897,7 +75897,7 @@ function hPe(e, t, n) {
}
};
}
-function gPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
+function hPe({ 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": "",
@@ -75905,7 +75905,7 @@ function gPe({ 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)(_Pe, {
+ /* @__PURE__ */ (0, I.jsx)(gPe, {
item: e,
queue: t,
helpers: r,
@@ -75917,7 +75917,7 @@ function gPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-live": "polite",
children: n.sourceState
}),
- /* @__PURE__ */ (0, I.jsx)(yPe, {
+ /* @__PURE__ */ (0, I.jsx)(vPe, {
item: e,
write: n
}),
@@ -75928,7 +75928,7 @@ function gPe({ 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)(c4, { name: "monitor" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [
+ children: [/* @__PURE__ */ (0, I.jsx)(l4, { name: "monitor" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [
e.width,
"×",
e.height
@@ -75936,11 +75936,11 @@ function gPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
}) : null,
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, I.jsx)(c4, { name: "hard-drive" }), /* @__PURE__ */ (0, I.jsx)("span", { children: u4(e.size) })]
+ children: [/* @__PURE__ */ (0, I.jsx)(l4, { name: "hard-drive" }), /* @__PURE__ */ (0, I.jsx)("span", { children: d4(e.size) })]
}),
e.release_date ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, I.jsx)(c4, { name: "calendar" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.release_date })]
+ children: [/* @__PURE__ */ (0, I.jsx)(l4, { name: "calendar" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.release_date })]
}) : null,
e.region_label ? /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
@@ -75948,32 +75948,32 @@ function gPe({ 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)(c4, { name: "globe" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
+ children: [/* @__PURE__ */ (0, I.jsx)(l4, { 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)(a4, {
+ (e.medium || "video") === "video" && !a && !String(e.name || "").toLowerCase().endsWith(".iso") ? /* @__PURE__ */ (0, I.jsx)(o4, {
id: e.id,
onOpened: () => i.toast("已请求打开本地播放器")
}, e.id) : null,
- /* @__PURE__ */ (0, I.jsx)(bPe, {
+ /* @__PURE__ */ (0, I.jsx)(yPe, {
item: e,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, I.jsx)(xPe, {
+ /* @__PURE__ */ (0, I.jsx)(bPe, {
item: e,
write: n,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, I.jsx)(kK, {
- assetIds: OK([e], r.javImage()),
+ /* @__PURE__ */ (0, I.jsx)(AK, {
+ assetIds: kK([e], r.javImage()),
onComplete: () => {
- H.invalidateQueries({ queryKey: fP(e.id) });
+ H.invalidateQueries({ queryKey: pP(e.id) });
}
}),
- /* @__PURE__ */ (0, I.jsx)(SPe, { item: e }),
+ /* @__PURE__ */ (0, I.jsx)(xPe, { item: e }),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-actions": "",
"data-item-feedback": "",
@@ -75987,7 +75987,7 @@ function gPe({ 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)(c4, { name: "thumbs-up" })
+ children: /* @__PURE__ */ (0, I.jsx)(l4, { name: "thumbs-up" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -75999,7 +75999,7 @@ function gPe({ 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)(c4, { name: "notebook-pen" })
+ children: /* @__PURE__ */ (0, I.jsx)(l4, { name: "notebook-pen" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -76010,7 +76010,7 @@ function gPe({ 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)(c4, { name: "thumbs-down" })
+ children: /* @__PURE__ */ (0, I.jsx)(l4, { name: "thumbs-down" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -76021,7 +76021,7 @@ function gPe({ 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)(c4, { name: "eye" })
+ children: /* @__PURE__ */ (0, I.jsx)(l4, { name: "eye" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -76032,7 +76032,7 @@ function gPe({ 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)(c4, { name: e.watch_later ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, I.jsx)(l4, { name: e.watch_later ? "check" : "bookmark-plus" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -76041,7 +76041,7 @@ function gPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-label": "加入播放列表",
title: "加入播放列表",
onClick: () => i.addToPlaylist(e),
- children: /* @__PURE__ */ (0, I.jsx)(c4, { name: "playlist" })
+ children: /* @__PURE__ */ (0, I.jsx)(l4, { name: "playlist" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -76052,7 +76052,7 @@ function gPe({ 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)(c4, { name: "sparkles" })
+ children: /* @__PURE__ */ (0, I.jsx)(l4, { name: "sparkles" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -76063,11 +76063,11 @@ function gPe({ 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)(c4, { name: "trash" })
+ children: /* @__PURE__ */ (0, I.jsx)(l4, { name: "trash" })
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(CPe, {
+ /* @__PURE__ */ (0, I.jsx)(SPe, {
item: e,
open: s,
write: n
@@ -76078,7 +76078,7 @@ function gPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
...o("o"),
onClick: () => n.feedback("o"),
children: [
- /* @__PURE__ */ (0, I.jsx)(c4, { name: "sperm" }),
+ /* @__PURE__ */ (0, I.jsx)(l4, { name: "sperm" }),
/* @__PURE__ */ (0, I.jsx)("span", { children: "记一次高潮" }),
/* @__PURE__ */ (0, I.jsx)("b", {
className: "mono",
@@ -76091,8 +76091,8 @@ function gPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
});
}
-function _Pe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
- let { text: a, expanded: o, foldable: s, toggle: c } = Q2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + dde(e, t);
+function gPe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
+ let { text: a, expanded: o, foldable: s, toggle: c } = $2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + ude(e, t);
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-item-title": "",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -76119,23 +76119,23 @@ function _Pe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
"aria-label": o ? "收起标题" : "展开标题",
title: o ? "收起标题" : "展开完整标题",
onClick: c,
- children: /* @__PURE__ */ (0, I.jsx)(kH, {})
+ children: /* @__PURE__ */ (0, I.jsx)(AH, {})
}),
e.has_cover && (e.cover_key || e.code) ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-cover-crop-host": "",
- children: /* @__PURE__ */ (0, I.jsx)(sPe, {
+ children: /* @__PURE__ */ (0, I.jsx)(oPe, {
code: e.cover_key || e.code || "",
coverUrl: uo(e),
box: e.poster_box || null,
onSaved: (t) => {
H.invalidateQueries({
- queryKey: fP(e.id),
+ queryKey: pP(e.id),
exact: !0
- }), cP((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
+ }), lP((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
}
})
}) : null,
- e.location === "online" ? null : /* @__PURE__ */ (0, I.jsx)(vPe, {
+ e.location === "online" ? null : /* @__PURE__ */ (0, I.jsx)(_Pe, {
id: e.id,
actions: r,
onStatus: i
@@ -76145,7 +76145,7 @@ function _Pe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
})
});
}
-function vPe({ id: e, actions: t, onStatus: n }) {
+function _Pe({ 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 () => {
@@ -76175,18 +76175,18 @@ function vPe({ id: e, actions: t, onStatus: n }) {
"aria-disabled": !0
} : {},
onClick: () => void o(),
- children: /* @__PURE__ */ (0, I.jsx)(c4, { name: "folder-sync" })
+ children: /* @__PURE__ */ (0, I.jsx)(l4, { name: "folder-sync" })
})] });
}
-function yPe({ item: e, write: t }) {
- let n = uP(e.rating);
+function vPe({ item: e, write: t }) {
+ let n = dP(e.rating);
return /* @__PURE__ */ (0, I.jsxs)("div", {
id: "detailRating",
role: "group",
"data-item-rating": "",
"aria-label": "评分",
- "data-value": lP(e.rating),
- children: [/* @__PURE__ */ (0, I.jsx)(WJ, {
+ "data-value": uP(e.rating),
+ children: [/* @__PURE__ */ (0, I.jsx)(GJ, {
value: n,
onRate: (e) => t.rate(e),
busyStar: [
@@ -76200,14 +76200,14 @@ function yPe({ item: e, write: t }) {
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-rating-value": "",
"aria-live": "polite",
- children: ede(e.rating)
+ children: $ue(e.rating)
})]
});
}
-function bPe({ item: e, actions: t }) {
- let n = (0, F.useMemo)(() => ade(e), [e]), [r, i] = (0, F.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
+function yPe({ item: e, actions: t }) {
+ let n = (0, F.useMemo)(() => ide(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)(X2, {
+ return /* @__PURE__ */ (0, I.jsx)(Z2, {
kind: e,
person: n,
onOpen: t.openEntity,
@@ -76239,7 +76239,7 @@ function bPe({ item: e, actions: t }) {
onClick: t.openUnowned,
children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-id-face": "",
- children: /* @__PURE__ */ (0, I.jsx)(c4, { name: "user-round" })
+ children: /* @__PURE__ */ (0, I.jsx)(l4, { name: "user-round" })
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-id-name": "",
children: "未归属"
@@ -76251,7 +76251,7 @@ function bPe({ item: e, actions: t }) {
size: "small",
id: "castMore",
"data-cast-more": "",
- trailingIcon: mB,
+ trailingIcon: hB,
"aria-expanded": !1,
onClick: () => i(!0),
children: [
@@ -76270,18 +76270,18 @@ function bPe({ item: e, actions: t }) {
children: [c.length ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-identity-primary": "",
children: c
- }) : null, /* @__PURE__ */ (0, I.jsx)(Z2, {
+ }) : null, /* @__PURE__ */ (0, I.jsx)(Q2, {
people: n.series,
onOpen: t.openEntity
})]
});
}
-function xPe({ item: e, write: t, helpers: n, actions: r }) {
+function bPe({ item: e, write: t, helpers: n, actions: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-item-tags": "",
- children: /* @__PURE__ */ (0, I.jsx)(H2, {
+ children: /* @__PURE__ */ (0, I.jsx)(U2, {
id: "detailTags",
- tags: ode(e, n),
+ tags: ade(e, n),
candidates: n.tagCandidates(),
label: n.tagLabel,
adding: [...t.busy].some((e) => e.startsWith("add:")),
@@ -76292,8 +76292,8 @@ function xPe({ item: e, write: t, helpers: n, actions: r }) {
}, e.id)
});
}
-function SPe({ item: e }) {
- let t = hde(e);
+function xPe({ item: e }) {
+ let t = mde(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-item-trace": "",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -76327,7 +76327,7 @@ function SPe({ item: e }) {
})]
});
}
-function CPe({ item: e, open: t, write: n }) {
+function SPe({ 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();
@@ -76366,12 +76366,12 @@ function CPe({ item: e, open: t, write: n }) {
})]
});
}
-function wPe(e) {
+function CPe(e) {
let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = Ft({
- queryKey: tde(t.id, n),
- queryFn: async ({ signal: e }) => (await B(rde(t.id, n), e)).items || []
+ queryKey: ede(t.id, n),
+ queryFn: async ({ signal: e }) => (await B(nde(t.id, n), e)).items || []
}), [o] = (0, F.useState)(() => r.relatedSkeletonHtml());
- return /* @__PURE__ */ (0, I.jsx)(L2, {
+ return /* @__PURE__ */ (0, I.jsx)(R2, {
wireDrag: r.wireDrag,
busy: a.isPending,
empty: a.data?.length === 0,
@@ -76379,7 +76379,7 @@ function wPe(e) {
onRetry: () => {
a.refetch();
},
- children: a.data ? /* @__PURE__ */ (0, I.jsx)(eY, {
+ children: a.data ? /* @__PURE__ */ (0, I.jsx)(tY, {
mode: "items",
variant: "next",
items: a.data,
@@ -76392,11 +76392,11 @@ function wPe(e) {
revision: 0,
wireDrag: r.wireDrag,
skeletonHtml: () => ""
- }) : /* @__PURE__ */ (0, I.jsx)(l4, { html: o })
+ }) : /* @__PURE__ */ (0, I.jsx)(u4, { html: o })
});
}
-function TPe(e, t, n) {
- let r = e.id, i = fP(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 wPe(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) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), f = () => H.getQueryData(i) || e, p = (e) => {
@@ -76412,7 +76412,7 @@ function TPe(e, t, n) {
rating: t.rating,
o_count: t.o_count
};
- return sP(r, n), t;
+ return cP(r, n), t;
}, m = (e, t) => V(e, {
id: r,
...t
@@ -76427,7 +76427,7 @@ function TPe(e, t, n) {
run: n
}));
}, _ = async (e, t) => {
- let n = await m(hP, t === void 0 ? { kind: e } : {
+ let n = await m(gP, t === void 0 ? { kind: e } : {
kind: e,
value: t
});
@@ -76447,21 +76447,21 @@ function TPe(e, t, n) {
"aria-disabled": !0
} : {},
rate: (e) => g(`rate:${e}`, "评分", async () => {
- let n = f().rating || 0, r = dP(n, e);
- await _("rate", r), t.toast(r ? `已评 ${uP(r)} 星` : "已取消评分", { undo: async () => {
+ let n = f().rating || 0, r = fP(n, e);
+ await _("rate", r), t.toast(r ? `已评 ${dP(r)} 星` : "已取消评分", { undo: async () => {
await _("rate", n);
} });
}),
feedback: (e) => g(e, "操作", async () => {
let n = { feedback: f().feedback || null }, r = await _(e);
- t.toast(FP(e, r), { undo: async () => {
+ t.toast(IP(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(_P, {});
+ let e = await m(vP, {});
p({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
- p({ watch_later: (await m(_P, {})).watch_later });
+ p({ watch_later: (await m(vP, {})).watch_later });
} });
}),
quality: () => g("quality", "更新版本需求", async () => {
@@ -76471,9 +76471,9 @@ function TPe(e, t, n) {
}, n = (e) => p({
better_version: e.better_version,
better_version_reason: e.better_version_reason || ""
- }), r = await m(vP, { wanted: !e.wanted });
+ }), r = await m(yP, { wanted: !e.wanted });
n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {
- n(await m(vP, e));
+ n(await m(yP, e));
} });
}),
preference: ({ liked: e, reason: n }) => {
@@ -76487,7 +76487,7 @@ function TPe(e, t, n) {
});
u("保存中…");
try {
- o(await m(yP, {
+ o(await m(bP, {
liked: a,
reason: i
}));
@@ -76497,7 +76497,7 @@ function TPe(e, t, n) {
u("已保存"), setTimeout(() => u((e) => e === "已保存" ? "" : e), 1400);
let s = f();
t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {
- o(await m(yP, r));
+ o(await m(bP, r));
} });
});
},
@@ -76506,41 +76506,41 @@ function TPe(e, t, n) {
operation: "remove",
tag: e.k
})).ok) throw Error("标签未删除");
- p((t) => kP(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
- await m(gP, {
+ p((t) => AP(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
+ await m(_P, {
operation: "add",
tag: e.k
- }), p((t) => AP(t, e));
+ }), p((t) => jP(t, e));
} });
}),
addTag: (e) => {
let r = e.trim();
r && g(`add:${r}`, "添加标签", async () => {
- let e = await m(gP, {
+ let e = await m(_P, {
operation: "add",
tag: r
});
if (!e.ok) return;
let i = e.tag || r;
- OP(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => AP(e, {
+ kP(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => jP(e, {
k: i,
cat: "general"
- })), NP(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
- await m(gP, {
+ })), PP(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
+ await m(_P, {
operation: "remove",
tag: i
- }), p((e) => kP(e, i));
+ }), p((e) => AP(e, i));
} }));
});
}
};
}
// src/react/publication-cache.ts
-var f4 = 864e5, p4 = (e) => {
+var p4 = 864e5, m4 = (e) => {
let t = new Date(e);
return Date.UTC(t.getFullYear(), t.getMonth(), t.getDate());
};
-function m4(e) {
+function h4(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));
@@ -76548,25 +76548,25 @@ function m4(e) {
let o = new Date(Date.UTC(n, r + 2, 0)).getUTCDate();
return Date.UTC(n, r + 1, Math.min(i, o));
}
-function EPe(e, t = Date.now()) {
- let n = m4(e);
- return n !== void 0 && p4(t) > n ? Infinity : f4;
+function TPe(e, t = Date.now()) {
+ let n = h4(e);
+ return n !== void 0 && m4(t) > n ? Infinity : p4;
}
-function h4(e, t, n = Date.now()) {
- return !Number.isFinite(e) || e <= 0 || e > n ? !1 : EPe(t, n) === Infinity ? p4(e) > m4(t) : n - e < f4;
+function g4(e, t, n = Date.now()) {
+ return !Number.isFinite(e) || e <= 0 || e > n ? !1 : TPe(t, n) === Infinity ? m4(e) > h4(t) : n - e < p4;
}
// src/react/wants/resource-cache.ts
-var g4 = "peach.want-resources.v2";
-function _4(e) {
+var _4 = "peach.want-resources.v2";
+function v4(e) {
return !e.cache_stale && (e.complete === !0 || !e.warnings?.length);
}
-function v4(e, t, n) {
- return !!e && !e.cache_stale && (e.state === "error" || !_4(e) ? Date.now() - t < 6e4 : h4(t, n));
+function y4(e, t, n) {
+ return !!e && !e.cache_stale && (e.state === "error" || !v4(e) ? Date.now() - t < 6e4 : g4(t, n));
}
-function y4() {
+function b4() {
try {
- let e = JSON.parse(localStorage.getItem(g4) || "[]");
- return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items) && _4(e.result) && e.result.items.every((e) => e && [
+ let e = JSON.parse(localStorage.getItem(_4) || "[]");
+ return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items) && v4(e.result) && e.result.items.every((e) => e && [
"magnet",
"ed2k",
"url"
@@ -76575,23 +76575,23 @@ function y4() {
return [];
}
}
-function DPe(e, t) {
- let n = y4().find((t) => t.code === e);
- return n && h4(n.saved, t) ? n : void 0;
+function EPe(e, t) {
+ let n = b4().find((t) => t.code === e);
+ return n && g4(n.saved, t) ? n : void 0;
}
-function OPe(e) {
- let t = new Map(y4().map((e) => [e.code, e])), n = /* @__PURE__ */ new Map();
+function DPe(e) {
+ let t = new Map(b4().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 && h4(e.saved, r.release_date) && n.set(r.code, e.result.items.some((e) => e.protocol === "magnet"));
+ e && g4(e.saved, r.release_date) && n.set(r.code, e.result.items.some((e) => e.protocol === "magnet"));
}
return n;
}
-function kPe(e, t) {
- if (t.state === "ready" && _4(t)) try {
- let n = y4().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
- localStorage.setItem(g4, JSON.stringify([{
+function OPe(e, t) {
+ if (t.state === "ready" && v4(t)) try {
+ let n = b4().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
+ localStorage.setItem(_4, JSON.stringify([{
code: e,
saved: Number.isFinite(r) ? r : Date.now(),
result: t
@@ -76599,15 +76599,15 @@ function kPe(e, t) {
} catch {}
}
// src/react/wants/resource-display.ts
-function APe(e) {
+function kPe(e) {
let t = (e ?? "").trim(), n = /^([\d,]+)\s*B$/i.exec(t);
return /^[\d,.]+$/.test(t) ? "大小未知" : n ? Xn(Number(n[1].replaceAll(",", ""))) : e || "大小未知";
}
-function jPe(e) {
+function APe(e) {
return /^更多评论.*(?:VIP|官方 App)/.test(e) ? "来源只返回了部分评论,资源链接可能不完整。" : e;
}
// src/react/wants/want-magnets.tsx
-function b4({ icon: e, children: t, title: n }) {
+function x4({ icon: e, children: t, title: n }) {
return /* @__PURE__ */ (0, I.jsxs)("span", {
title: n,
className: "inline-flex items-center gap-1",
@@ -76617,8 +76617,8 @@ function b4({ icon: e, children: t, title: n }) {
}), t]
});
}
-function x4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a, queryUrl: o }) {
- let s = (0, F.useRef)(null), [c, l] = (0, F.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, F.useState)([]), f = dH(), p = ae(), m = (0, F.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, F.useMemo)(() => DPe(h, e.release_date), [h, e.release_date]);
+function S4({ 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)(() => EPe(h, e.release_date), [h, e.release_date]);
(0, F.useEffect)(() => {
if (!s.current || c) return;
let e = new IntersectionObserver((t) => {
@@ -76638,22 +76638,22 @@ function x4({ 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", kPe(h, i), i;
+ return m.current = n && i.state === "busy", OPe(h, i), i;
},
initialData: g?.result,
initialDataUpdatedAt: g?.saved,
enabled: c,
retry: !1,
- staleTime: (t) => v4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) ? Infinity : 0,
+ staleTime: (t) => y4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) ? Infinity : 0,
gcTime: 864e5,
- refetchOnMount: (t) => !v4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) && "always",
+ refetchOnMount: (t) => !y4(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) && zye(e.id, _.data.items.some((e) => e.protocol === "magnet"));
+ !o && _.data && (_.data.state === "ready" || _.data.items.length > 0) && Rye(e.id, _.data.items.some((e) => e.protocol === "magnet"));
}, [
_.data,
o,
@@ -76661,7 +76661,7 @@ function x4({ 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(WU, {
+ let n = await V(GU, {
magnet: r.uri,
provider: v.key,
target: v.target,
@@ -76672,7 +76672,7 @@ function x4({ 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: GU });
+ d((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), p.invalidateQueries({ queryKey: KU });
});
}, b = (e) => {
f.run(`copy:${e.id}`, () => navigator.clipboard.writeText(e.uri), () => i("已复制链接"));
@@ -76690,39 +76690,39 @@ function x4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
}), /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
- leadingIcon: BB,
- ...dV(x),
+ leadingIcon: VB,
+ ...fV(x),
onClick: () => {
x || (m.current = !0, _.refetch());
},
children: "重新查询"
})]
}),
- x ? /* @__PURE__ */ (0, I.jsx)(CH, { label: "正在查找资源链接" }) : null,
- S ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ x ? /* @__PURE__ */ (0, I.jsx)(wH, { label: "正在查找资源链接" }) : null,
+ S ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
title: "资源链接未取得",
children: S
}) : null,
- _.data?.warnings?.map((e) => /* @__PURE__ */ (0, I.jsx)(oV, {
+ _.data?.warnings?.map((e) => /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "neutral",
- children: jPe(e)
+ children: APe(e)
}, e)),
- _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, I.jsx)(hL, {
+ _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, I.jsx)(gL, {
variant: "secondary",
size: "small",
className: "self-start",
- trailingIcon: TB,
+ trailingIcon: EB,
href: _.data.source_url,
target: "_blank",
rel: "noopener noreferrer",
children: "查看来源页"
}) : null,
- _.data?.state === "ready" && !_.data.items.length && !_.data.warnings?.length ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ _.data?.state === "ready" && !_.data.items.length && !_.data.warnings?.length ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "neutral",
children: "暂未找到资源链接。"
}) : null,
- f.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ f.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
title: "操作未完成",
children: f.error
@@ -76737,7 +76737,7 @@ function x4({ 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)(HU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(UU, {
variant: "caption",
color: e.protocol === "magnet" ? "blue" : e.protocol === "ed2k" ? "purple" : "neutral",
children: e.protocol === "magnet" ? "磁链" : e.protocol === "ed2k" ? "ED2K" : "网页链接"
@@ -76751,26 +76751,26 @@ function x4({ 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)(b4, {
- icon: Vge,
+ /* @__PURE__ */ (0, I.jsx)(x4, {
+ icon: Bge,
children: e.source
}),
- /* @__PURE__ */ (0, I.jsx)(b4, {
- icon: MB,
+ /* @__PURE__ */ (0, I.jsx)(x4, {
+ icon: NB,
title: e.size ? `来源大小:${e.size}` : void 0,
- children: APe(e.size)
+ children: kPe(e.size)
}),
- e.files ? /* @__PURE__ */ (0, I.jsx)(b4, {
- icon: Age,
+ e.files ? /* @__PURE__ */ (0, I.jsx)(x4, {
+ icon: kge,
children: e.files.replaceAll("個", "个")
}) : null,
- /* @__PURE__ */ (0, I.jsx)(b4, {
- icon: hge,
+ /* @__PURE__ */ (0, I.jsx)(x4, {
+ icon: mge,
title: e.source === "JavDB 评论" ? "评论日期" : "收录日期",
children: e.date ? e.date.slice(0, 10) : "日期未知"
}),
- e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, I.jsx)(b4, {
- icon: zB,
+ e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, I.jsx)(x4, {
+ icon: BB,
children: e
}, e))
]
@@ -76779,11 +76779,11 @@ function x4({ 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)(hL, {
+ /* @__PURE__ */ (0, I.jsx)(gL, {
"data-button-link": "",
variant: "secondary",
size: "small",
- trailingIcon: TB,
+ trailingIcon: EB,
href: e.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@ -76792,18 +76792,18 @@ function x4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
/* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
- leadingIcon: Oge,
- ...dV(f.busy === `copy:${e.id}`),
+ leadingIcon: Dge,
+ ...fV(f.busy === `copy:${e.id}`),
onClick: () => b(e),
children: "复制链接"
}),
e.protocol === "magnet" ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "primary",
size: "small",
- leadingIcon: v ? RH(v.key) : bge,
+ leadingIcon: v ? zH(v.key) : yge,
title: v ? `下载到 ${v.label}` : void 0,
disabled: t || !n?.available || !v || r,
- ...dV(f.busy === e.id),
+ ...fV(f.busy === e.id),
onClick: () => y(e),
children: r ? "已添加" : "添加下载"
}) : null
@@ -76814,7 +76814,7 @@ function x4({ 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)(FH, {
+ }), e.length > 3 ? /* @__PURE__ */ (0, I.jsx)(IH, {
summary: `更多资源(${e.length - 3} 条)`,
children: /* @__PURE__ */ (0, I.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
@@ -76826,10 +76826,10 @@ function x4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
});
}
// src/react/jav-detail/review-cache.ts
-var S4 = "peach.jav-reviews.v2";
-function C4() {
+var C4 = "peach.jav-reviews.v2";
+function w4() {
try {
- let e = localStorage.getItem(S4) || "[]";
+ let e = localStorage.getItem(C4) || "[]";
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")) : [];
@@ -76837,21 +76837,21 @@ function C4() {
return [];
}
}
-function MPe(e, t) {
+function jPe(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
- }, ...C4().filter((n) => n.code !== e || n.result.page !== t.page)].slice(0, 128), i = JSON.stringify(r);
- i.length <= 2e6 && localStorage.setItem(S4, i);
+ }, ...w4().filter((n) => n.code !== e || n.result.page !== t.page)].slice(0, 128), i = JSON.stringify(r);
+ i.length <= 2e6 && localStorage.setItem(C4, i);
} catch {}
}
-function NPe(e, t) {
- let n = C4(), r = [], i = Infinity;
+function MPe(e, t) {
+ let n = w4(), r = [], i = Infinity;
for (let a = 1; a <= 8; a++) {
let o = n.find((t) => t.code === e && t.result.page === a);
- if (!o || !h4(o.saved, t) || (r.push(o.result), i = Math.min(i, o.saved), !o.result.more)) break;
+ if (!o || !g4(o.saved, t) || (r.push(o.result), i = Math.min(i, o.saved), !o.result.more)) break;
}
return r.length ? {
pages: r,
@@ -76859,16 +76859,16 @@ function NPe(e, t) {
saved: i
} : void 0;
}
-function PPe(e, t, n) {
- return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && h4(Date.parse(e.checked_at || "") || t, n));
+function NPe(e, t, n) {
+ return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && g4(Date.parse(e.checked_at || "") || t, n));
}
// src/react/jav-detail/jav-detail-page.tsx
-function FPe(e) {
+function PPe(e) {
let t = (0, F.useRef)(!1), n = Ft({
- queryKey: e4(e.code),
+ queryKey: t4(e.code),
queryFn: ({ signal: n }) => {
let r = t.current;
- return t.current = !1, t4(e.code, n, r);
+ return t.current = !1, n4(e.code, n, r);
},
staleTime: 216e5
}), r = () => {
@@ -76878,21 +76878,21 @@ function FPe(e) {
"data-jav-detail": "",
"data-item-detail": "",
"data-stage-grid": "",
- children: n.data ? /* @__PURE__ */ (0, I.jsx)(IPe, {
+ children: n.data ? /* @__PURE__ */ (0, I.jsx)(FPe, {
...e,
item: n.data,
retry: r,
retrying: n.isFetching
}, e.code) : /* @__PURE__ */ (0, I.jsxs)("div", {
"data-jav-failure": "",
- children: [/* @__PURE__ */ (0, I.jsx)(w4, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, I.jsx)(PG, {
+ children: [/* @__PURE__ */ (0, I.jsx)(T4, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, I.jsx)(FG, {
message: lr(n.error),
onRetry: r
}) : null]
})
});
}
-var w4 = ({ close: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
+var T4 = ({ close: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -76901,7 +76901,7 @@ var w4 = ({ close: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function IPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {
+function FPe({ 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)(() => {
@@ -76921,13 +76921,13 @@ function IPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
label: "视频预览",
video: !0
}] : []
- ], [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(t.want_id), p = dH(), m = () => {
- p.run("want", async (e) => d ? (await rW([d], e), null) : (await nW({ code: t.code }, e)).want.id, (t) => {
- f(t), H.setQueryData(e4(e), (e) => e && {
+ ], [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(t4(e), (e) => e && {
...e,
wanted: !!t,
want_id: t
- }), n.receipt(t ? "已加入想要" : "已取消想要"), iW(), H.invalidateQueries({ queryKey: ["feed-new"] }), H.invalidateQueries({ queryKey: ["jav-discoveries"] });
+ }), n.receipt(t ? "已加入想要" : "已取消想要"), aW(), H.invalidateQueries({ queryKey: ["feed-new"] }), H.invalidateQueries({ queryKey: ["jav-discoveries"] });
});
};
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
@@ -76936,24 +76936,24 @@ function IPe({ 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)(w4, { close: n.close }),
+ /* @__PURE__ */ (0, I.jsx)(T4, { 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)(T4, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]
+ children: [/* @__PURE__ */ (0, I.jsx)(E4, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]
}) : null,
- o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, I.jsx)(zPe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, I.jsx)(oQ, {
+ o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, I.jsx)(RPe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, I.jsx)(sQ, {
item: t,
image: o === -1 ? "cover" : String(o)
}, t.code),
- /* @__PURE__ */ (0, I.jsx)(z2, {
+ /* @__PURE__ */ (0, I.jsx)(B2, {
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)(sQ, {
item: t,
image: e.index < 0 ? "cover" : String(e.index),
thumbnail: !0
@@ -76967,33 +76967,33 @@ function IPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
"data-stage-side-content": "",
"data-jav-info": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(LPe, { item: t }),
- Number(t.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(D4, { score: Number(t.score) }) : null,
+ /* @__PURE__ */ (0, I.jsx)(IPe, { item: t }),
+ Number(t.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(O4, { score: Number(t.score) }) : null,
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "mono",
"data-stage-meta": "",
"data-reveal-line": "",
- children: [/* @__PURE__ */ (0, I.jsx)(E4, {
+ children: [/* @__PURE__ */ (0, I.jsx)(D4, {
glyph: "calendar",
label: "发行日期",
value: t.release_date
- }), /* @__PURE__ */ (0, I.jsx)(E4, {
+ }), /* @__PURE__ */ (0, I.jsx)(D4, {
glyph: "clock",
label: "时长",
value: t.duration ? `${t.duration} 分钟` : void 0
})]
}),
- /* @__PURE__ */ (0, I.jsx)(RPe, {
+ /* @__PURE__ */ (0, I.jsx)(LPe, {
item: t,
navigate: n.navigate
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-jav-facts": "",
- children: [/* @__PURE__ */ (0, I.jsx)(E4, {
+ children: [/* @__PURE__ */ (0, I.jsx)(D4, {
glyph: "briefcase",
label: "发行商",
value: t.publisher
- }), /* @__PURE__ */ (0, I.jsx)(E4, {
+ }), /* @__PURE__ */ (0, I.jsx)(D4, {
glyph: "clapperboard",
label: "导演",
value: t.director
@@ -77022,14 +77022,14 @@ function IPe({ 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: II(t.summary),
+ lang: LI(t.summary),
children: t.summary
}) : null,
- t.message ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ t.message ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
- ...dV(a),
+ ...fV(a),
onClick: i,
children: "立即重试"
}),
@@ -77038,10 +77038,10 @@ function IPe({ 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)(hL, {
+ t.source_url ? /* @__PURE__ */ (0, I.jsx)(gL, {
"data-button-link": "",
variant: "secondary",
- trailingIcon: TB,
+ trailingIcon: EB,
href: t.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@ -77051,7 +77051,7 @@ function IPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
variant: "secondary",
disabled: r,
"aria-pressed": !!d,
- ...dV(!!p.busy),
+ ...fV(!!p.busy),
onClick: m,
children: d ? "取消想要" : "想要"
}),
@@ -77069,16 +77069,16 @@ function IPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
})
]
}),
- p.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ p.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
children: p.error
}) : null,
- /* @__PURE__ */ (0, I.jsx)(BPe, {
+ /* @__PURE__ */ (0, I.jsx)(zPe, {
code: t.code,
count: t.comments_count,
released: t.release_date
}),
- /* @__PURE__ */ (0, I.jsx)(VPe, {
+ /* @__PURE__ */ (0, I.jsx)(BPe, {
item: t,
actions: n,
readOnly: r
@@ -77086,24 +77086,24 @@ function IPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
]
})
}),
- /* @__PURE__ */ (0, I.jsx)(QU, {
+ /* @__PURE__ */ (0, I.jsx)($U, {
prefill: l,
close: () => u(null),
receipt: n.receipt
})
] });
}
-var T4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var E4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: R(e) }
-}), E4 = ({ glyph: e, label: t, value: n }) => n ? /* @__PURE__ */ (0, I.jsxs)("span", {
+}), D4 = ({ glyph: e, label: t, value: n }) => n ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-spec-item": "",
title: t,
- children: [/* @__PURE__ */ (0, I.jsx)(T4, { name: e }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
+ children: [/* @__PURE__ */ (0, I.jsx)(E4, { name: e }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
}) : null;
-function LPe({ item: e }) {
- let { text: t, expanded: n, foldable: r, toggle: i } = Q2(e.title), a = e.title === e.code ? "" : e.title;
+function IPe({ item: e }) {
+ let { text: t, expanded: n, foldable: r, toggle: i } = $2(e.title), a = e.title === e.code ? "" : e.title;
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-item-title": "",
children: [/* @__PURE__ */ (0, I.jsx)("h1", {
@@ -77119,7 +77119,7 @@ function LPe({ 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: II(a),
+ lang: LI(a),
children: a
})] }) : null]
})
@@ -77133,25 +77133,25 @@ function LPe({ item: e }) {
"aria-label": n ? "收起标题" : "展开标题",
title: n ? "收起标题" : "展开完整标题",
onClick: i,
- children: /* @__PURE__ */ (0, I.jsx)(kH, {})
+ children: /* @__PURE__ */ (0, I.jsx)(AH, {})
})
})]
});
}
-function D4({ score: e, review: t = !1 }) {
+function O4({ 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)(WJ, { value: e }), /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(GJ, { value: e }), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-rating-value": "",
children: [e.toFixed(1), " / 5"]
})]
});
}
-function RPe({ item: e, navigate: t }) {
+function LPe({ 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,
@@ -77160,14 +77160,14 @@ function RPe({ item: e, navigate: t }) {
children: r
}), /* @__PURE__ */ (0, I.jsx)("div", {
"data-id-row": "",
- children: i.map((r) => /* @__PURE__ */ (0, I.jsx)(X2, {
+ children: i.map((r) => /* @__PURE__ */ (0, I.jsx)(Z2, {
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)(cQ, {
code: e.code,
person: r,
detail: !0
@@ -77184,7 +77184,7 @@ function RPe({ 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)(Z2, {
+ }), /* @__PURE__ */ (0, I.jsx)(Q2, {
people: e.series_refs.map((e) => ({
...e,
id: e.id ?? null
@@ -77193,18 +77193,18 @@ function RPe({ item: e, navigate: t }) {
})]
});
}
-function zPe({ src: e }) {
+function RPe({ 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), Vue(i, {
+ return i.className = "video-js vjs-big-play-centered", i.controls = !0, i.setAttribute("playsinline", ""), i.setAttribute("aria-label", "视频预览"), n.append(i), Bue(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)(oV, {
+ children: n ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
@@ -77217,8 +77217,8 @@ function zPe({ src: e }) {
}) : null
});
}
-function BPe({ code: e, count: t, released: n }) {
- let r = ae(), [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => NPe(e, n), [e, n]), s = (0, F.useRef)(!1), c = Lt({
+function zPe({ code: e, count: t, released: n }) {
+ let r = ae(), [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => MPe(e, n), [e, n]), s = (0, F.useRef)(!1), c = Lt({
queryKey: ["jav-reviews", e],
enabled: i,
initialPageParam: 1,
@@ -77227,12 +77227,12 @@ function BPe({ code: e, count: t, released: n }) {
pageParams: o.pageParams
} : void 0,
initialDataUpdatedAt: o?.saved,
- staleTime: (e) => PPe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
+ staleTime: (e) => NPe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
gcTime: 864e5,
refetchOnWindowFocus: !1,
queryFn: async ({ signal: t, pageParam: n }) => {
- let i = await ePe(e, n, t, s.current);
- if (MPe(e, i), !i.ok || i.cache_stale) {
+ let i = await $Ne(e, n, t, s.current);
+ if (jPe(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,
@@ -77242,7 +77242,7 @@ function BPe({ code: e, count: t, released: n }) {
}
return i;
},
- getNextPageParam: tPe
+ getNextPageParam: ePe
});
(0, F.useEffect)(() => {
c.isFetching || (s.current = !1);
@@ -77250,10 +77250,10 @@ function BPe({ 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)(FH, {
+ children: /* @__PURE__ */ (0, I.jsxs)(IH, {
trailing: !0,
summary: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(gge, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, I.jsx)(hge, { "aria-hidden": !0 }),
"评论",
t > 0 ? ` · ${t}` : ""
] }),
@@ -77290,7 +77290,7 @@ function BPe({ 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)(D4, {
+ Number(e.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(O4, {
score: Number(e.score),
review: !0
}) : null,
@@ -77302,28 +77302,28 @@ function BPe({ code: e, count: t, released: n }) {
]
}), /* @__PURE__ */ (0, I.jsx)("p", {
"data-long-text": "",
- lang: II(e.content),
+ lang: LI(e.content),
children: e.content
})]
}, e.id)),
- d ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ d ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
- ...dV(c.isFetching),
+ ...fV(c.isFetching),
onClick: () => {
s.current = !0, c.refetch();
},
children: "立即重试"
}),
children: d
- }) : !c.isPending && !u.length ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ }) : !c.isPending && !u.length ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "neutral",
children: "暂无评论"
}) : null,
!d && l.length ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
- ...dV(c.isFetching),
+ ...fV(c.isFetching),
onClick: () => {
s.current = !0, c.refetch();
},
@@ -77331,13 +77331,13 @@ function BPe({ code: e, count: t, released: n }) {
}) : null,
c.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
- ...dV(c.isFetchingNextPage),
+ ...fV(c.isFetchingNextPage),
onClick: () => {
c.isFetchingNextPage || c.fetchNextPage();
},
children: "更多评论"
}) : null,
- !d && l.at(-1)?.page === 8 && t > u.length ? /* @__PURE__ */ (0, I.jsxs)(oV, {
+ !d && l.at(-1)?.page === 8 && t > u.length ? /* @__PURE__ */ (0, I.jsxs)(sV, {
tone: "neutral",
children: [
"已显示 ",
@@ -77349,21 +77349,21 @@ function BPe({ code: e, count: t, released: n }) {
})
});
}
-function VPe({ item: e, actions: t, readOnly: n }) {
+function BPe({ item: e, actions: t, readOnly: n }) {
let [r, i] = (0, F.useState)(!1), a = Ft({
- queryKey: GU,
+ queryKey: KU,
enabled: r,
- queryFn: ({ signal: e }) => B(`${WU}?limit=50`, e)
+ queryFn: ({ signal: e }) => B(`${GU}?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)(FH, {
+ children: /* @__PURE__ */ (0, I.jsx)(IH, {
trailing: !0,
- summary: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(T4, { name: "link" }), "资源"] }),
+ summary: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(E4, { name: "link" }), "资源"] }),
onOpenChange: (e) => {
i(e), e && c(!0);
},
- children: s ? /* @__PURE__ */ (0, I.jsx)(x4, {
+ children: s ? /* @__PURE__ */ (0, I.jsx)(S4, {
want: {
id: 0,
code: e.code,
@@ -77380,31 +77380,31 @@ function VPe({ item: e, actions: t, readOnly: n }) {
});
}
// src/react/stage/stage-player.ts
-var O4 = null, k4 = null, A4 = null, j4 = null, M4 = null, N4 = !1, P4 = 0, F4 = null, I4 = () => !1, L4 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
-function HPe(e, t) {
- O4 = e, I4 = () => t.isOpen(), F4 = () => t.requestClose(), $le({
+var k4 = null, A4 = null, j4 = null, M4 = null, N4 = null, P4 = !1, F4 = 0, I4 = null, L4 = () => !1, R4 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
+function VPe(e, t) {
+ k4 = e, L4 = () => t.isOpen(), I4 = () => t.requestClose(), Qle({
...e.player,
stage: () => document.getElementById("stage")
- }), eue({
- inMiniplayer: (e) => k4?.player === e,
- kind: (e) => k4?.player === e ? k4.kind : A4?.kind ?? j4?.kind ?? "item",
- expand: () => r3(),
- toMiniplayer: () => i3()
- }), R4 || (R4 = !0, addEventListener("pagehide", () => VN()));
-}
-var R4 = !1;
-function z4() {
- if (!O4) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
- return O4;
-}
-function B4(e) {
- j4 = e;
-}
-var UPe = () => j4;
-function V4(e, t) {
- let { kind: n, item: r, media: i = null } = t, a = L4(n, r.id, i?.index ?? null);
- if (k4 && k4.key === a) return GPe(e, k4);
- k4 && n3();
+ }), $le({
+ inMiniplayer: (e) => A4?.player === e,
+ kind: (e) => A4?.player === e ? A4.kind : j4?.kind ?? M4?.kind ?? "item",
+ expand: () => i3(),
+ toMiniplayer: () => a3()
+ }), z4 || (z4 = !0, addEventListener("pagehide", () => HN()));
+}
+var z4 = !1;
+function B4() {
+ if (!k4) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
+ return k4;
+}
+function V4(e) {
+ M4 = e;
+}
+var HPe = () => M4;
+function H4(e, t) {
+ let { kind: n, item: r, media: i = null } = t, a = R4(n, r.id, i?.index ?? null);
+ if (A4 && A4.key === a) return WPe(e, A4);
+ A4 && r3();
let o = {
player: null,
kind: n,
@@ -77412,52 +77412,52 @@ function V4(e, t) {
mediaIndex: i?.index ?? null,
key: a
};
- A4 = o;
+ j4 = 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 = eP(s, {
+ let c = tP(s, {
kind: n,
item: r,
media: i,
autoplay: t.autoplay,
resume: t.resume ?? null,
onPlayer: (e) => {
- A4 === o && (o.player = e);
+ j4 === o && (o.player = e);
},
- handedOff: (e) => k4?.player === e
+ handedOff: (e) => A4?.player === e
});
return () => {
- let e = !!o.player && k4?.player === o.player;
- A4 === o && (A4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), VN());
+ let e = !!o.player && A4?.player === o.player;
+ j4 === o && (j4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), HN());
};
}
-async function WPe(e, t, n) {
+async function UPe(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 z4().player.loadSourceStatus();
- if (n.throwIfAborted(), i[String(r.root_id || r.location || "")] === !1) throw Error(z4().player.offlineReason(String(r.root_id || r.location || "")));
+ let i = await B4().player.loadSourceStatus();
+ if (n.throwIfAborted(), i[String(r.root_id || r.location || "")] === !1) throw Error(B4().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 || "未归属")
};
- B4(a);
- let o = V4(t, {
+ V4(a);
+ let o = H4(t, {
kind: "item",
item: r,
autoplay: !0
}), s = !1;
return (e = !1) => {
- s || (s = !0, e && j4 === a && U4(!0), o(), j4 === a && B4(null));
+ s || (s = !0, e && M4 === a && W4(!0), o(), M4 === a && V4(null));
};
}
-function GPe(e, t) {
+function WPe(e, t) {
let { player: n } = t;
- e3(t), k4 = null, t3(), n.el().classList.remove("vjs-peach-mini"), QN(e), e.append(n.el()), WM(n);
+ t3(t), A4 = null, n3(), n.el().classList.remove("vjs-peach-mini"), $N(e), e.append(n.el()), GM(n);
let r = {
player: n,
kind: t.kind,
@@ -77465,23 +77465,23 @@ function GPe(e, t) {
mediaIndex: t.mediaIndex,
key: t.key
};
- A4 = r;
- let i = $N(n, e);
- return GM(n), () => {
- A4 === r && (A4 = null), i(), k4?.player !== n && (UM() === n && WM(null), MN(n), VN());
+ j4 = r;
+ let i = eP(n, e);
+ return KM(n), () => {
+ j4 === r && (j4 = null), i(), A4?.player !== n && (WM() === n && GM(null), NN(n), HN());
};
}
-var H4 = () => {
- let e = A4?.player;
+var U4 = () => {
+ let e = j4?.player;
return e && !e.isDisposed() ? e : null;
};
-function U4(e) {
- let t = N4;
- N4 = !1, k4?.pending && n3();
- let n = A4, r = n?.player, i = j4;
- if (!n || !r || r.isDisposed() || !i || !M4) return;
- let a = z4().player.settings();
- (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && YPe({
+function W4(e) {
+ let t = P4;
+ P4 = !1, A4?.pending && r3();
+ let n = j4, r = n?.player, i = M4;
+ if (!n || !r || r.isDisposed() || !i || !N4) return;
+ let a = B4().player.settings();
+ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && JPe({
player: r,
kind: n.kind,
item: n.item,
@@ -77489,46 +77489,46 @@ function U4(e) {
key: n.key
}, i);
}
-function W4(e, t) {
- N4 = !1, k4 && (k4.kind === e && k4.item.id === t ? (k4.pending = !0, t3()) : n3());
+function G4(e, t) {
+ P4 = !1, A4 && (A4.kind === e && A4.item.id === t ? (A4.pending = !0, n3()) : r3());
}
-function G4(e) {
- M4 = e, M4 && Q4();
+function K4(e) {
+ N4 = e, N4 && $4();
}
-var K4 = () => !!k4 && !k4.pending && !k4.player.isDisposed();
-function KPe() {
- return K4() ? M4?.frame.querySelector("video") ?? null : null;
+var q4 = () => !!A4 && !A4.pending && !A4.player.isDisposed();
+function GPe() {
+ return q4() ? N4?.frame.querySelector("video") ?? null : null;
}
-function qPe() {
- return I4() ? document.getElementById("stage")?.querySelector("video") ?? null : H4()?.el().querySelector("video") ?? KPe();
+function KPe() {
+ return L4() ? document.getElementById("stage")?.querySelector("video") ?? null : U4()?.el().querySelector("video") ?? GPe();
}
-function q4(e) {
- M4 && (M4.title.textContent = e.title || "", M4.sub.textContent = e.sub || "", M4.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
+function J4(e) {
+ N4 && (N4.title.textContent = e.title || "", N4.sub.textContent = e.sub || "", N4.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
}
-function J4(e = k4?.item) {
- if (!M4) return;
- let t = M4.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
- M4.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
+function Y4(e = A4?.item) {
+ if (!N4) return;
+ let t = N4.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
+ N4.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
}
-function Y4() {
- let e = k4?.player;
- if (!e || e.isDisposed() || !M4) return;
+function X4() {
+ let e = A4?.player;
+ if (!e || e.isDisposed() || !N4) return;
let t = e.paused();
- M4.play.setAttribute("aria-label", t ? "播放" : "暂停"), M4.play.querySelector("[data-icon-swap]") || (M4.play.innerHTML = qs("player-pause", "player-play", t ? "b" : "a")), Js(M4.play, t ? "b" : "a");
+ N4.play.setAttribute("aria-label", t ? "播放" : "暂停"), N4.play.querySelector("[data-icon-swap]") || (N4.play.innerHTML = qs("player-pause", "player-play", t ? "b" : "a")), Js(N4.play, t ? "b" : "a");
}
-function X4() {
- let e = k4?.player;
- if (!e || e.isDisposed() || !M4) return;
- let t = qn(k4?.item.duration) || qn(e.duration());
- M4.time.textContent = `${Yn(e.currentTime())} / ${t ? Yn(t) : "0:00"}`;
-}
-var Z4 = () => Math.max(1, Number(z4().player.settings().seekSeconds) || 10);
-function Q4() {
- if (!M4 || !O4) return;
- let e = Z4();
- for (let [t, n] of [[M4.back, `后退 ${e} 秒`], [M4.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
-}
-function $4(e) {
+function Z4() {
+ let e = A4?.player;
+ if (!e || e.isDisposed() || !N4) return;
+ let t = qn(A4?.item.duration) || qn(e.duration());
+ N4.time.textContent = `${Yn(e.currentTime())} / ${t ? Yn(t) : "0:00"}`;
+}
+var Q4 = () => Math.max(1, Number(B4().player.settings().seekSeconds) || 10);
+function $4() {
+ if (!N4 || !k4) return;
+ let e = Q4();
+ for (let [t, n] of [[N4.back, `后退 ${e} 秒`], [N4.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
+}
+function e3(e) {
let t = (t, n) => {
e.player.on(t, n), e.off.push(() => {
try {
@@ -77540,17 +77540,17 @@ function $4(e) {
"play",
"pause",
"ended"
- ], Y4), t([
+ ], X4), t([
"timeupdate",
"durationchange",
"loadedmetadata"
- ], X4), t("loadedmetadata", () => J4()), Y4(), X4(), J4(), Q4();
+ ], Z4), t("loadedmetadata", () => Y4()), X4(), Z4(), Y4(), $4();
}
-function e3(e) {
+function t3(e) {
e.off.forEach((e) => e()), e.off = [];
}
-function JPe() {
- let e = M4?.root;
+function qPe() {
+ let e = N4?.root;
if (!e) return;
let t = e.hidden;
if (e.hidden = !1, !t) return;
@@ -77558,8 +77558,8 @@ function JPe() {
let n = () => e.removeAttribute("data-miniplayer-enter");
e.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 500);
}
-function t3() {
- let e = M4?.root;
+function n3() {
+ let e = N4?.root;
if (e) {
e.hidden = !0;
for (let t of [
@@ -77570,73 +77570,73 @@ function t3() {
e.style.transform = "";
}
}
-function YPe(e, t) {
- if (!M4) return;
+function JPe(e, t) {
+ if (!N4) return;
let n = {
...e,
meta: t,
off: [],
pending: !1
};
- k4 = n, P4++, e.player.el().classList.add("vjs-peach-mini"), M4.frame.prepend(e.player.el()), q4(t), $4(n), JPe(), GM(e.player);
-}
-function n3() {
- let e = k4;
- e && e3(e), k4 = null, P4++;
- let t = e?.player ?? null;
- t && UM() === t && WM(null), MN(t), t && VN(), M4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), VM(), t3();
+ A4 = n, F4++, e.player.el().classList.add("vjs-peach-mini"), N4.frame.prepend(e.player.el()), J4(t), e3(n), qPe(), KM(e.player);
}
function r3() {
- if (!K4() || !k4) return;
- let { kind: e, item: t, mediaIndex: n } = k4;
- z4().expand(e, t.id, n);
+ let e = A4;
+ e && t3(e), A4 = null, F4++;
+ let t = e?.player ?? null;
+ t && WM() === t && GM(null), NN(t), t && HN(), N4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), HM(), n3();
}
function i3() {
- K4() && !I4() ? r3() : I4() && H4() && F4 && (N4 = !0, F4());
+ if (!q4() || !A4) return;
+ let { kind: e, item: t, mediaIndex: n } = A4;
+ B4().expand(e, t.id, n);
+}
+function a3() {
+ q4() && !L4() ? i3() : L4() && U4() && I4 && (P4 = !0, I4());
}
-function XPe() {
- let e = k4?.player;
+function YPe() {
+ let e = A4?.player;
e && !e.isDisposed() && (e.paused() ? e.play()?.catch(() => {}) : e.pause());
}
-function a3(e) {
- let t = k4?.player;
+function o3(e) {
+ let t = A4?.player;
if (!t || t.isDisposed()) return;
- let n = qn(t.duration()) || qn(k4?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + Z4() * e);
+ let n = qn(t.duration()) || qn(A4?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + Q4() * e);
t.currentTime(n ? Math.min(n, r) : r);
}
-function o3(e) {
- return !(!K4() || !e || e.part_group || e.edition_group || e.medium && e.medium !== "video" || e.cost === "metered" && e.location !== "online" || e.location === "online" && !e.follow_item_id || z4().sourceOffline(String(e.root_id || e.location || "")));
-}
-async function ZPe(e) {
- if (!K4() || !k4 || !M4) return;
- let t = ++P4, n = await Tn(`/api/item?id=${e}`).catch(() => null);
- if (t !== P4 || !K4() || !k4 || !M4 || !n || n.error) return;
- if (!o3(n)) {
- z4().openItem(e);
+function s3(e) {
+ return !(!q4() || !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 || B4().sourceOffline(String(e.root_id || e.location || "")));
+}
+async function XPe(e) {
+ if (!q4() || !A4 || !N4) return;
+ let t = ++F4, n = await Tn(`/api/item?id=${e}`).catch(() => null);
+ if (t !== F4 || !q4() || !A4 || !N4 || !n || n.error) return;
+ if (!s3(n)) {
+ B4().openItem(e);
return;
}
- let r = k4;
- e3(r), UM() === r.player && WM(null), MN(r.player), VN(), M4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
+ let r = A4;
+ t3(r), WM() === r.player && GM(null), NN(r.player), HN(), N4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
let i = document.createElement("video");
- i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", M4.frame.prepend(i);
+ i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", N4.frame.prepend(i);
let a = {
kind: "item",
item: n,
title: String(n.title || n.name || ""),
sub: String(n.performers?.[0] || n.creator || "未归属")
};
- q4(a), eP(i, {
+ J4(a), tP(i, {
kind: "item",
item: n,
autoplay: !0,
chrome: !1,
onPlayer: (r) => {
- if (t !== P4) {
- r && UM() === r && WM(null), MN(r);
+ if (t !== F4) {
+ r && WM() === r && GM(null), NN(r);
return;
}
if (!r) {
- n3(), z4().openItem(e);
+ r3(), B4().openItem(e);
return;
}
r.el().classList.add("vjs-peach-mini");
@@ -77645,25 +77645,25 @@ async function ZPe(e) {
kind: "item",
item: n,
mediaIndex: null,
- key: L4("item", n.id, null),
+ key: R4("item", n.id, null),
meta: a,
off: [],
pending: !1
};
- k4 = i, $4(i);
+ A4 = i, e3(i);
}
- }), J4(n);
+ }), Y4(n);
}
// src/react/stage/miniplayer.tsx
-var s3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
+var c3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
-}), QPe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, c3 = (e) => (t) => {
+}), ZPe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, l3 = (e) => (t) => {
t.stopPropagation(), e();
-}, $Pe = (0, F.memo)(function() {
+}, QPe = (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)(() => (G4({
+ return (0, F.useLayoutEffect)(() => (K4({
root: e.current,
frame: n.current,
play: r.current,
@@ -77673,7 +77673,7 @@ var s3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
title: s.current,
sub: c.current,
info: l.current
- }), () => G4(null)), []), (0, F.useEffect)(() => nFe(e.current, t.current), []), (0, F.useEffect)(() => eFe(e.current), []), /* @__PURE__ */ (0, I.jsx)("aside", {
+ }), () => K4(null)), []), (0, F.useEffect)(() => tFe(e.current, t.current), []), (0, F.useEffect)(() => $Pe(e.current), []), /* @__PURE__ */ (0, I.jsx)("aside", {
ref: e,
"data-miniplayer": "",
id: "miniplayer",
@@ -77697,24 +77697,24 @@ var s3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
id: "miniplayerExpand",
"aria-label": "展开到详情",
"aria-keyshortcuts": "i",
- onClick: c3(r3),
- children: /* @__PURE__ */ (0, I.jsx)(s3, { name: "maximize-2" })
+ onClick: l3(i3),
+ children: /* @__PURE__ */ (0, I.jsx)(c3, { name: "maximize-2" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-miniplayer-button": "close",
id: "miniplayerClose",
"aria-label": "关闭小窗",
- onClick: c3(n3),
- children: /* @__PURE__ */ (0, I.jsx)(s3, { name: "x" })
+ onClick: l3(r3),
+ children: /* @__PURE__ */ (0, I.jsx)(c3, { name: "x" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
ref: a,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerBack",
- onClick: c3(() => a3(-1)),
- children: /* @__PURE__ */ (0, I.jsx)(s3, { name: "rotate-ccw" })
+ onClick: l3(() => o3(-1)),
+ children: /* @__PURE__ */ (0, I.jsx)(c3, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
ref: r,
@@ -77723,16 +77723,16 @@ var s3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
id: "miniplayerPlay",
"aria-label": "暂停",
"aria-keyshortcuts": "k",
- onClick: c3(XPe),
- dangerouslySetInnerHTML: QPe
+ onClick: l3(YPe),
+ dangerouslySetInnerHTML: ZPe
}),
/* @__PURE__ */ (0, I.jsx)("button", {
ref: o,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerAhead",
- onClick: c3(() => a3(1)),
- children: /* @__PURE__ */ (0, I.jsx)(s3, { name: "rotate-cw" })
+ onClick: l3(() => o3(1)),
+ children: /* @__PURE__ */ (0, I.jsx)(c3, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, I.jsx)("span", {
ref: i,
@@ -77749,7 +77749,7 @@ var s3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
"data-miniplayer-info": "",
id: "miniplayerInfo",
"aria-label": "展开到详情",
- onClick: () => r3(),
+ onClick: () => i3(),
children: [/* @__PURE__ */ (0, I.jsx)("span", {
ref: s,
"data-miniplayer-title": "",
@@ -77763,7 +77763,7 @@ var s3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
})
});
});
-function eFe(e) {
+function $Pe(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");
@@ -77777,7 +77777,7 @@ function eFe(e) {
n.disconnect(), r.disconnect(), window.removeEventListener("resize", t), document.documentElement.style.removeProperty("--miniplayer-space");
};
}
-function tFe(e, t, n) {
+function eFe(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
@@ -77799,7 +77799,7 @@ function tFe(e, t, n) {
};
e.addEventListener("transitionend", u), setTimeout(u, 600);
}
-function nFe(e, t) {
+function tFe(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 = {
@@ -77825,7 +77825,7 @@ function nFe(e, t) {
} catch {}
i.moved && (e.dataset.dragged = "1", setTimeout(() => {
delete e.dataset.dragged;
- }, 0), tFe(e, i.dx, i.dy));
+ }, 0), eFe(e, i.dx, i.dy));
}, o = (t) => {
e.dataset.dragged && (t.stopPropagation(), t.preventDefault());
}, s = (e) => {
@@ -77836,57 +77836,57 @@ function nFe(e, t) {
};
}
// src/react/stage/stage.tsx
-var l3 = null, u3 = null, d3 = null, f3 = /* @__PURE__ */ new Set(), p3 = 0, m3 = null, h3 = !1, g3 = !1, _3 = () => {
+var u3 = null, d3 = null, f3 = null, p3 = /* @__PURE__ */ new Set(), m3 = 0, h3 = null, g3 = !1, _3 = !1, v3 = () => {
let e = document.getElementById("stage");
return e instanceof HTMLDialogElement ? e : null;
};
-function v3() {
- if (!l3) throw Error("舞台还没有接上宿主(configureStage)");
- return l3;
+function y3() {
+ if (!u3) throw Error("舞台还没有接上宿主(configureStage)");
+ return u3;
}
-function rFe(e) {
- return f3.add(e), () => {
- f3.delete(e);
+function nFe(e) {
+ return p3.add(e), () => {
+ p3.delete(e);
};
}
-function iFe() {
- for (let e of [...f3]) e();
+function rFe() {
+ for (let e of [...p3]) e();
}
-function y3() {
- (0, Rt.flushSync)(iFe);
+function b3() {
+ (0, Rt.flushSync)(rFe);
}
-function aFe({ view: e }) {
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)(oFe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, I.jsx)($Pe, {})] });
+function iFe({ view: e }) {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)(aFe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, I.jsx)(QPe, {})] });
}
-var b3 = () => /* @__PURE__ */ (0, I.jsx)("div", {
+var x3 = () => /* @__PURE__ */ (0, I.jsx)("div", {
"data-skeleton": "detail",
role: "status",
"aria-label": "正在读取作品详情",
- dangerouslySetInnerHTML: { __html: iNe() }
+ dangerouslySetInnerHTML: { __html: rNe() }
});
-function x3(e) {
+function S3(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 S3() {
- let e = _3(), t = e && sNe(e);
+function C3() {
+ let e = v3(), t = e && oNe(e);
t ? (t.focus({ preventScroll: !0 }), t.dispatchEvent(new KeyboardEvent("keydown", {
key: "Escape",
bubbles: !0,
cancelable: !0
- }))) : C3();
+ }))) : w3();
}
-function oFe({ view: e }) {
+function aFe({ view: e }) {
let t = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => {
let e = t.current, n = (t) => {
- t.target === e && (t.preventDefault(), S3());
+ t.target === e && (t.preventDefault(), C3());
};
return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);
}, []);
- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, I.jsx)(lPe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, I.jsx)(FPe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, I.jsx)(WNe, { ...r.props }, r.props.id);
+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, I.jsx)(cPe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, I.jsx)(PPe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, I.jsx)(UNe, { ...r.props }, r.props.id);
return /* @__PURE__ */ (0, I.jsxs)("dialog", {
ref: t,
id: "stage",
@@ -77894,27 +77894,27 @@ function oFe({ view: e }) {
"data-stage-kind": r.kind,
"aria-label": "作品详情",
onKeyDown: (e) => {
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), S3());
+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), C3());
},
onPointerDown: (e) => {
- g3 = x3(e);
+ _3 = S3(e);
},
onClick: (e) => {
- g3 && x3(e) && C3();
+ _3 && S3(e) && w3();
},
children: [
- n === "skeleton" ? /* @__PURE__ */ (0, I.jsx)(b3, {}, "skeleton") : null,
+ n === "skeleton" ? /* @__PURE__ */ (0, I.jsx)(x3, {}, "skeleton") : null,
n === "reveal" ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-stage-fade": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(b3, {})
+ children: /* @__PURE__ */ (0, I.jsx)(x3, {})
}, "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)(TD, {
- getContainer: () => o2(t.current),
+ getContainer: () => s2(t.current),
children: i
})
})
@@ -77922,14 +77922,14 @@ function oFe({ view: e }) {
]
});
}
-function C3() {
- u3 && !h3 && (h3 = !0, u3.request.actions.close());
+function w3() {
+ d3 && !g3 && (g3 = !0, d3.request.actions.close());
}
-function w3(e, t) {
- let n = _3();
+function T3(e, t) {
+ let n = v3();
n?.toggleAttribute("data-ambient", e), n?.toggleAttribute("data-theater", t);
}
-function T3(e) {
+function E3(e) {
if (e.kind === "jav") return {
kind: "jav",
props: {
@@ -77937,30 +77937,30 @@ function T3(e) {
readOnly: e.readOnly,
actions: {
...e.actions,
- close: C3
+ close: w3
}
}
};
let t = e.resume ?? null, n = (n) => {
let r = t && (e.id == null || e.id === n) ? t : null;
return t = null, r;
- }, r = () => v3().player.settings(), i = () => u3?.request === e;
+ }, r = () => y3().player.settings(), i = () => d3?.request === e;
if (e.kind === "item") {
let { kind: t, resume: a, actions: o, ...s } = e, c = {
...o,
- close: C3,
+ close: w3,
present: (e, t) => {
let n = e.performers;
- B4({
+ V4({
kind: "item",
item: e,
title: String(e.title || e.name || ""),
sub: String(n?.[0] || e.creator || "未归属")
- }), w3(r().ambientMode, r().theaterMode), queueMicrotask(() => {
+ }), T3(r().ambientMode, r().theaterMode), queueMicrotask(() => {
i() && o.present(e, t);
});
},
- mountPlayer: (e, t, r, i) => V4(e, {
+ mountPlayer: (e, t, r, i) => H4(e, {
kind: "item",
item: t,
autoplay: i?.autoplay,
@@ -77978,18 +77978,18 @@ function T3(e) {
}
let { kind: a, resume: o, actions: s, ...c } = e, l = {
...s,
- close: C3,
+ close: w3,
present: (e, t) => {
- B4({
+ V4({
kind: "follow",
item: e,
title: e.title || "",
sub: e.author || e.source_label || ""
- }), w3(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {
+ }), T3(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {
i() && s.present(e, t);
});
},
- mountPlayer: (e, t, r, i) => V4(e, {
+ mountPlayer: (e, t, r, i) => H4(e, {
kind: "follow",
item: t,
media: r,
@@ -78006,106 +78006,106 @@ function T3(e) {
}
};
}
-function sFe(e, t) {
+function oFe(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"), u3?.generation === t && u3.phase === "reveal" && (u3 = {
- ...u3,
+ clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), d3?.generation === t && d3.phase === "reveal" && (d3 = {
+ ...d3,
phase: "content"
- }, y3());
+ }, b3());
}, a = (e) => {
e.target === n && i();
};
n?.addEventListener("transitionend", a), r = window.setTimeout(i, 1e3);
}
-function E3(e) {
- let t = _3();
- return !u3 || u3.content.kind !== e || h3 || !t?.open || t.hasAttribute("data-closing") ? null : t;
+function D3(e) {
+ let t = v3();
+ return !d3 || d3.content.kind !== e || g3 || !t?.open || t.hasAttribute("data-closing") ? null : t;
}
-async function cFe(e) {
- !d3 && document.activeElement instanceof HTMLElement && document.activeElement !== document.body && (d3 = {
+async function sFe(e) {
+ !f3 && document.activeElement instanceof HTMLElement && document.activeElement !== document.body && (f3 = {
left: window.scrollX,
top: window.scrollY,
anchor: document.activeElement
});
- let t = E3(e.kind);
+ let t = D3(e.kind);
if (t) {
- await uFe(e, t);
+ await lFe(e, t);
return;
}
- u3 && D3({ miniplayer: !1 });
- let n = ++p3, r = new AbortController();
- m3 = r, h3 = !1, g3 = !1, e.kind === "jav" ? n3() : W4(e.kind, e.id ?? NaN);
- let i = T3(e);
- u3 = {
+ d3 && O3({ miniplayer: !1 });
+ let n = ++m3, r = new AbortController();
+ h3 = r, g3 = !1, _3 = !1, e.kind === "jav" ? r3() : G4(e.kind, e.id ?? NaN);
+ let i = E3(e);
+ d3 = {
generation: n,
request: e,
content: i,
phase: "skeleton"
};
- let a = i.kind === "item" ? DP(i.props, r.signal) : i.kind === "jav" ? n4(i.props, r.signal) : f2(i.props, r.signal);
- if (n !== p3 || u3?.request !== e) {
+ let a = i.kind === "item" ? OP(i.props, r.signal) : i.kind === "jav" ? r4(i.props, r.signal) : p2(i.props, r.signal);
+ if (n !== m3 || d3?.request !== e) {
await a.catch(() => {});
return;
}
- let o = lFe(i);
- u3 = {
- ...u3,
+ let o = cFe(i);
+ d3 = {
+ ...d3,
phase: o ? "content" : "skeleton"
- }, y3();
- let s = _3();
+ }, b3();
+ let s = v3();
if (!s) {
await a.catch(() => {});
return;
}
- o || mc(s), document.body.setAttribute("data-detail-open", ""), s.open || s.showModal(), c2(s);
+ o || mc(s), document.body.setAttribute("data-detail-open", ""), s.open || s.showModal(), l2(s);
try {
await a;
} catch {
if (r.signal.aborted) return;
}
- if (n !== p3 || !u3 || o) return;
+ if (n !== m3 || !d3 || o) return;
let c = !!s.querySelector(".skeleton-awaiting");
- u3 = {
- ...u3,
+ d3 = {
+ ...d3,
phase: c ? "content" : "reveal"
- }, y3(), c || sFe(s, n), nc(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, b3(), c || oFe(s, n), nc(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let l = document.activeElement;
l !== s && s.contains(l) || s.querySelector("#closeStage")?.focus();
}
-function lFe(e) {
- if (e.kind === "jav") return !!H.getQueryData(e4(e.props.code));
- if (e.kind === "follow") return !!H.getQueryData(l2(e.props.id));
- let { queue: t, id: n } = e.props, r = t ? H.getQueryData(pP(t)) : null;
+function cFe(e) {
+ if (e.kind === "jav") return !!H.getQueryData(t4(e.props.code));
+ if (e.kind === "follow") return !!H.getQueryData(u2(e.props.id));
+ let { queue: t, id: n } = e.props, r = t ? H.getQueryData(mP(t)) : null;
if (t && !r) return !1;
- let i = r ? TP(r, n) : n;
- return i != null && !!H.getQueryData(fP(i));
+ let i = r ? EP(r, n) : n;
+ return i != null && !!H.getQueryData(pP(i));
}
-async function uFe(e, t) {
- let n = ++p3;
- m3?.abort();
+async function lFe(e, t) {
+ let n = ++m3;
+ h3?.abort();
let r = new AbortController();
- m3 = r, g3 = !1;
- let i = T3(e);
+ h3 = r, _3 = !1;
+ let i = E3(e);
try {
- i.kind === "item" ? await DP(i.props, r.signal) : i.kind === "jav" ? await n4(i.props, r.signal) : await f2(i.props, r.signal);
+ i.kind === "item" ? await OP(i.props, r.signal) : i.kind === "jav" ? await r4(i.props, r.signal) : await p2(i.props, r.signal);
} catch {
if (r.signal.aborted) return;
}
- if (n !== p3 || !u3 || E3(e.kind) !== t) return;
- e.kind === "jav" ? n3() : W4(e.kind, e.id ?? NaN), Pl(t), VM(), u3 = {
- ...u3,
+ if (n !== m3 || !d3 || D3(e.kind) !== t) return;
+ e.kind === "jav" ? r3() : G4(e.kind, e.id ?? NaN), Pl(t), HM(), d3 = {
+ ...d3,
request: e,
content: i,
phase: "content"
- }, y3(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), nc(t, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, b3(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), nc(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 dFe() {
- c2(null);
- let e = _3();
+function uFe() {
+ l2(null);
+ let e = v3();
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();
@@ -78115,14 +78115,14 @@ function dFe() {
e.addEventListener("animationend", i), n = window.setTimeout(r, 380);
}));
}
-function D3({ miniplayer: e = !0 } = {}) {
- if (p3++, m3?.abort(), m3 = null, U4(e), !u3) return;
- let t = _3();
- t && Pl(t), VM(), c2(null), t?.open && t.close(), u3 = null, h3 = !1, g3 = !1, y3(), B4(null), document.body.removeAttribute("data-detail-open");
- let n = d3;
- d3 = null;
+function O3({ miniplayer: e = !0 } = {}) {
+ if (m3++, h3?.abort(), h3 = null, W4(e), !d3) return;
+ let t = v3();
+ t && Pl(t), HM(), l2(null), t?.open && t.close(), d3 = null, g3 = !1, _3 = !1, b3(), V4(null), document.body.removeAttribute("data-detail-open");
+ let n = f3;
+ f3 = null;
let r = () => {
- !u3 && n?.anchor.isConnected && n.anchor.getClientRects().length && window.scrollTo({
+ !d3 && n?.anchor.isConnected && n.anchor.getClientRects().length && window.scrollTo({
left: n.left,
top: n.top,
behavior: "instant"
@@ -78130,80 +78130,80 @@ function D3({ miniplayer: e = !0 } = {}) {
};
r(), requestAnimationFrame(r);
}
-function fFe(e) {
- u3 && (u3 = {
- ...u3,
- content: u3.content.kind === "item" ? {
+function dFe(e) {
+ d3 && (d3 = {
+ ...d3,
+ content: d3.content.kind === "item" ? {
kind: "item",
props: {
- ...u3.content.props,
+ ...d3.content.props,
...e
}
- } : u3.content.kind === "jav" ? u3.content : {
+ } : d3.content.kind === "jav" ? d3.content : {
kind: "follow",
props: {
- ...u3.content.props,
+ ...d3.content.props,
...e.relatedLimit === void 0 ? {} : { relatedLimit: e.relatedLimit }
}
}
- }, y3());
+ }, b3());
}
-function pFe() {
- let e = UPe(), t = e?.kind === "item" ? e.item : null, n = t ? Ao(t, v3().player.settings().javImage) : "";
+function fFe() {
+ let e = HPe(), t = e?.kind === "item" ? e.item : null, n = t ? Ao(t, y3().player.settings().javImage) : "";
if (!n) return;
- let r = H4();
+ let r = U4();
r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);
}
-var mFe = {
- open: cFe,
- update: fFe,
- exit: dFe,
- dispose: D3,
- requestClose: C3,
- requestEscape: S3,
- repaintPoster: pFe,
- isOpen: () => !!u3,
- showing: () => u3 && E3(u3.content.kind) ? u3.content.kind : null,
- activeVideo: () => qPe(),
- mountWallPlayer: WPe,
+var pFe = {
+ open: sFe,
+ update: dFe,
+ exit: uFe,
+ dispose: O3,
+ requestClose: w3,
+ requestEscape: C3,
+ repaintPoster: fFe,
+ isOpen: () => !!d3,
+ showing: () => d3 && D3(d3.content.kind) ? d3.content.kind : null,
+ activeVideo: () => KPe(),
+ mountWallPlayer: UPe,
toggleTheater: () => {
- u3 && yN(!v3().player.settings().theaterMode);
+ d3 && bN(!y3().player.settings().theaterMode);
},
- toggleMiniplayer: () => i3(),
- closeMiniplayer: () => n3(),
- miniplayerActive: () => K4(),
- miniplayerTakesCard: (e) => o3(e),
+ toggleMiniplayer: () => a3(),
+ closeMiniplayer: () => r3(),
+ miniplayerActive: () => q4(),
+ miniplayerTakesCard: (e) => s3(e),
miniplayerPlay: (e) => {
- ZPe(e);
+ XPe(e);
}
};
-function hFe(e) {
- return l3 = e, HPe(e, {
- isOpen: () => !!u3,
- requestClose: C3
- }), mFe;
+function mFe(e) {
+ return u3 = e, VPe(e, {
+ isOpen: () => !!d3,
+ requestClose: w3
+ }), pFe;
}
-function gFe() {
- let e = (0, F.useSyncExternalStore)(rFe, () => u3);
- return l3 ? /* @__PURE__ */ (0, I.jsx)(aFe, { view: e }) : null;
+function hFe() {
+ let e = (0, F.useSyncExternalStore)(nFe, () => d3);
+ return u3 ? /* @__PURE__ */ (0, I.jsx)(iFe, { view: e }) : null;
}
// src/react/stats/stats.ts
-var _Fe = "/api/stats", O3 = ["stats"], k3 = (e) => B(_Fe, e);
-async function vFe(e) {
+var gFe = "/api/stats", k3 = ["stats"], A3 = (e) => B(gFe, e);
+async function _Fe(e) {
await H.fetchQuery({
- queryKey: O3,
- queryFn: () => k3(e)
+ queryKey: k3,
+ queryFn: () => A3(e)
});
}
-var A3 = (e) => e != null && Number.isFinite(e), yFe = (e) => A3(e) ? e.toLocaleString() : "未取得", bFe = (e, t) => A3(e) && A3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, xFe = (e, t) => {
- let n = bFe(e, t);
- return !n && A3(e) && e > 0 && A3(t) && t > 0 ? "<1%" : `${n}%`;
-}, j3 = (e) => {
- if (!A3(e)) return "未取得";
+var j3 = (e) => e != null && Number.isFinite(e), vFe = (e) => j3(e) ? e.toLocaleString() : "未取得", yFe = (e, t) => j3(e) && j3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, bFe = (e, t) => {
+ let n = yFe(e, t);
+ return !n && j3(e) && e > 0 && j3(t) && t > 0 ? "<1%" : `${n}%`;
+}, M3 = (e) => {
+ if (!j3(e)) return "未取得";
let t = Math.max(0, e);
return t >= 172800 ? `${(t / 86400).toLocaleString(void 0, { maximumFractionDigits: 1 })} 天` : t >= 3600 ? `${(t / 3600).toFixed(1)} 小时` : `${Math.round(t / 60)} 分钟`;
-}, M3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, N3 = (e) => (e.max_reached || 0) * 100, SFe = (e) => e.kind === "online" ? "在线直接观看" : M3(e) < N3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", CFe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
-function wFe(e, t = 6) {
+}, N3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, P3 = (e) => (e.max_reached || 0) * 100, xFe = (e) => e.kind === "online" ? "在线直接观看" : N3(e) < P3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", SFe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
+function CFe(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);
@@ -78213,7 +78213,7 @@ function wFe(e, t = 6) {
bytes: i.reduce((e, t) => e + (t.bytes ?? 0), 0)
}];
}
-var TFe = (e) => Math.max(1, ...e) * 1.1, EFe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, DFe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), OFe = {
+var wFe = (e) => Math.max(1, ...e) * 1.1, TFe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, EFe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), DFe = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -78221,18 +78221,18 @@ var TFe = (e) => Math.max(1, ...e) * 1.1, EFe = (e, t) => e > 0 ? Math.max(e, t
audio: "音频",
account: "账号",
other: "其它文件"
-}, kFe = (e) => e.map((e) => ({
- name: OFe[e.k] ?? e.k,
+}, OFe = (e) => e.map((e) => ({
+ name: DFe[e.k] ?? e.k,
value: e.n
-})).sort((e, t) => t.value - e.value), AFe = {
+})).sort((e, t) => t.value - e.value), kFe = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
长: ">40 分钟"
-}, P3 = (e, t = {}) => e.map((e) => ({
+}, F3 = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), jFe = (e) => P3(e, AFe), MFe = [
+})), AFe = (e) => F3(e, kFe), jFe = [
[
1,
1,
@@ -78268,12 +78268,12 @@ var TFe = (e) => Math.max(1, ...e) * 1.1, EFe = (e, t) => e > 0 ? Math.max(e, t
Infinity,
"≥10"
]
-], NFe = (e) => MFe.map(([t, n, r]) => ({
+], MFe = (e) => jFe.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 F3(e, t) {
+function I3(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 {
@@ -78283,7 +78283,7 @@ function F3(e, t) {
return n;
}
// node_modules/d3-array/src/min.js
-function I3(e, t) {
+function L3(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 {
@@ -78293,7 +78293,7 @@ function I3(e, t) {
return n;
}
// node_modules/d3-array/src/sum.js
-function L3(e, t) {
+function R3(e, t) {
let n = 0;
if (t === void 0) for (let t of e) (t = +t) && (n += t);
else {
@@ -78303,64 +78303,64 @@ function L3(e, t) {
return n;
}
// node_modules/d3-sankey/src/align.js
-function PFe(e, t) {
+function NFe(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
// node_modules/d3-sankey/src/constant.js
-function R3(e) {
+function z3(e) {
return function() {
return e;
};
}
// node_modules/d3-sankey/src/sankey.js
-function z3(e, t) {
- return V3(e.source, t.source) || e.index - t.index;
-}
function B3(e, t) {
- return V3(e.target, t.target) || e.index - t.index;
+ return H3(e.source, t.source) || e.index - t.index;
}
function V3(e, t) {
+ return H3(e.target, t.target) || e.index - t.index;
+}
+function H3(e, t) {
return e.y0 - t.y0;
}
-function H3(e) {
+function U3(e) {
return e.value;
}
-function FFe(e) {
+function PFe(e) {
return e.index;
}
-function IFe(e) {
+function FFe(e) {
return e.nodes;
}
-function LFe(e) {
+function IFe(e) {
return e.links;
}
-function U3(e, t) {
+function W3(e, t) {
let n = e.get(t);
if (!n) throw Error("missing: " + t);
return n;
}
-function W3({ nodes: e }) {
+function G3({ 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 RFe() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = FFe, c = PFe, l, u, d = IFe, f = LFe, p = 6;
+function LFe() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = PFe, c = NFe, l, u, d = FFe, f = IFe, 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), W3(e), e;
+ return h(e), g(e), _(e), v(e), x(e), G3(e), e;
}
m.update = function(e) {
- return W3(e), e;
+ return G3(e), e;
}, m.nodeId = function(e) {
- return arguments.length ? (s = typeof e == "function" ? e : R3(e), m) : s;
+ return arguments.length ? (s = typeof e == "function" ? e : z3(e), m) : s;
}, m.nodeAlign = function(e) {
- return arguments.length ? (c = typeof e == "function" ? e : R3(e), m) : c;
+ return arguments.length ? (c = typeof e == "function" ? e : z3(e), m) : c;
}, m.nodeSort = function(e) {
return arguments.length ? (l = e, m) : l;
}, m.nodeWidth = function(e) {
@@ -78368,9 +78368,9 @@ function RFe() {
}, m.nodePadding = function(e) {
return arguments.length ? (a = o = +e, m) : a;
}, m.nodes = function(e) {
- return arguments.length ? (d = typeof e == "function" ? e : R3(e), m) : d;
+ return arguments.length ? (d = typeof e == "function" ? e : z3(e), m) : d;
}, m.links = function(e) {
- return arguments.length ? (f = typeof e == "function" ? e : R3(e), m) : f;
+ return arguments.length ? (f = typeof e == "function" ? e : z3(e), m) : f;
}, m.linkSort = function(e) {
return arguments.length ? (u = e, m) : u;
}, m.size = function(i) {
@@ -78386,12 +78386,12 @@ function RFe() {
for (let [e, r] of t.entries()) {
r.index = e;
let { source: t, target: i } = r;
- typeof t != "object" && (t = r.source = U3(n, t)), typeof i != "object" && (i = r.target = U3(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
+ typeof t != "object" && (t = r.source = W3(n, t)), typeof i != "object" && (i = r.target = W3(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
}
if (u != null) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(u), n.sort(u);
}
function g({ nodes: e }) {
- for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(L3(t.sourceLinks, H3), L3(t.targetLinks, H3)) : t.fixedValue;
+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(R3(t.sourceLinks, U3), R3(t.targetLinks, U3)) : t.fixedValue;
}
function _({ nodes: e }) {
let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
@@ -78416,7 +78416,7 @@ function RFe() {
}
}
function y({ nodes: t }) {
- let r = F3(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
+ let r = I3(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];
@@ -78425,7 +78425,7 @@ function RFe() {
return o;
}
function b(e) {
- let n = I3(e, (e) => (r - t - (e.length - 1) * o) / L3(e, H3));
+ let n = L3(e, (e) => (r - t - (e.length - 1) * o) / R3(e, U3));
for (let i of e) {
let e = t;
for (let t of i) {
@@ -78442,7 +78442,7 @@ function RFe() {
}
function x(e) {
let n = y(e);
- o = Math.min(a, (r - t) / (F3(n, (e) => e.length) - 1)), b(n);
+ o = Math.min(a, (r - t) / (I3(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);
@@ -78461,7 +78461,7 @@ function RFe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(V3), w(i, n);
+ l === void 0 && i.sort(H3), w(i, n);
}
}
function C(e, t, n) {
@@ -78477,7 +78477,7 @@ function RFe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(V3), w(i, n);
+ l === void 0 && i.sort(H3), w(i, n);
}
}
function w(e, n) {
@@ -78498,12 +78498,12 @@ function RFe() {
}
function D({ sourceLinks: e, targetLinks: t }) {
if (u === void 0) {
- for (let { source: { sourceLinks: e } } of t) e.sort(B3);
- for (let { target: { targetLinks: t } } of e) t.sort(z3);
+ for (let { source: { sourceLinks: e } } of t) e.sort(V3);
+ for (let { target: { targetLinks: t } } of e) t.sort(B3);
}
}
function O(e) {
- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(B3), n.sort(z3);
+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(V3), n.sort(B3);
}
function k(e, t) {
let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;
@@ -78532,15 +78532,15 @@ function RFe() {
return m;
}
// node_modules/d3-path/src/path.js
-var G3 = Math.PI, K3 = 2 * G3, q3 = 1e-6, zFe = K3 - q3;
-function J3() {
+var K3 = Math.PI, q3 = 2 * K3, J3 = 1e-6, RFe = q3 - J3;
+function Y3() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
-function Y3() {
- return new J3();
+function X3() {
+ return new Y3();
}
-J3.prototype = Y3.prototype = {
- constructor: J3,
+Y3.prototype = X3.prototype = {
+ constructor: Y3,
moveTo: function(e, t) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
},
@@ -78561,11 +78561,11 @@ J3.prototype = Y3.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 > q3) {
- if (!(Math.abs(u * s - c * l) > q3) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
+ else if (d > J3) {
+ if (!(Math.abs(u * s - c * l) > J3) || !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((G3 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > q3 && (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((K3 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > J3 && (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);
}
}
},
@@ -78573,7 +78573,7 @@ J3.prototype = Y3.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) > q3 || Math.abs(this._y1 - l) > q3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % K3 + K3), d > zFe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > q3 && (this._ += "A" + n + "," + n + ",0," + +(d >= G3) + "," + 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) > J3 || Math.abs(this._y1 - l) > J3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % q3 + q3), d > RFe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > J3 && (this._ += "A" + n + "," + n + ",0," + +(d >= K3) + "," + 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";
@@ -78583,93 +78583,93 @@ J3.prototype = Y3.prototype = {
}
};
// node_modules/d3-shape/src/constant.js
-function X3(e) {
+function Z3(e) {
return function() {
return e;
};
}
// node_modules/d3-shape/src/point.js
-function BFe(e) {
+function zFe(e) {
return e[0];
}
-function VFe(e) {
+function BFe(e) {
return e[1];
}
// node_modules/d3-shape/src/array.js
-var HFe = Array.prototype.slice;
+var VFe = Array.prototype.slice;
// node_modules/d3-shape/src/link/index.js
-function UFe(e) {
+function HFe(e) {
return e.source;
}
-function WFe(e) {
+function UFe(e) {
return e.target;
}
-function GFe(e) {
- var t = UFe, n = WFe, r = BFe, i = VFe, a = null;
+function WFe(e) {
+ var t = HFe, n = UFe, r = zFe, i = BFe, a = null;
function o() {
- var o, s = HFe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
- if (a ||= o = Y3(), 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 = VFe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ if (a ||= o = X3(), 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 : X3(+e), o) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : Z3(+e), o) : r;
}, o.y = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : X3(+e), o) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : Z3(+e), o) : i;
}, o.context = function(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function KFe(e, t, n, r, i) {
+function GFe(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function qFe() {
- return GFe(KFe);
+function KFe() {
+ return WFe(GFe);
}
// node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function JFe(e) {
+function qFe(e) {
return [e.source.x1, e.y0];
}
-function YFe(e) {
+function JFe(e) {
return [e.target.x0, e.y1];
}
-function XFe() {
- return qFe().source(JFe).target(YFe);
+function YFe() {
+ return KFe().source(qFe).target(JFe);
}
// src/react/taste/taste.ts
-var ZFe = "/api/taste", Z3 = "/api/taste/refresh", QFe = "/api/taste/import", Q3 = "/api/taste/source", $3 = (e) => ["taste", e], $Fe = ["taste", "refresh"], eIe = [
+var XFe = "/api/taste", Q3 = "/api/taste/refresh", ZFe = "/api/taste/import", $3 = "/api/taste/source", e6 = (e) => ["taste", e], QFe = ["taste", "refresh"], $Fe = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], tIe = 2e3, nIe = (e) => e?.stale && !e.error ? tIe : !1, rIe = (e) => e ? new Date(e).toLocaleString("zh-CN", {
+], eIe = 2e3, tIe = (e) => e?.stale && !e.error ? eIe : !1, nIe = (e) => e ? new Date(e).toLocaleString("zh-CN", {
month: "numeric",
day: "numeric",
hour: "2-digit",
minute: "2-digit"
-}) : "—", iIe = (e, t) => V(Q3, {
+}) : "—", rIe = (e, t) => V($3, {
...e,
window: t
-}), e6 = (e, t, n = !1) => B(`${ZFe}?window=${e}${n ? "&retry=1" : ""}`, t), aIe = (e) => B(Z3, e);
-async function oIe(e, t) {
+}), t6 = (e, t, n = !1) => B(`${XFe}?window=${e}${n ? "&retry=1" : ""}`, t), iIe = (e) => B(Q3, e);
+async function aIe(e, t) {
await H.fetchQuery({
- queryKey: $3(e),
- queryFn: () => e6(e, t)
+ queryKey: e6(e),
+ queryFn: () => t6(e, t)
});
}
-var sIe = (e) => V(Z3, {
+var oIe = (e) => V(Q3, {
window: e,
background: !0
-}), cIe = (e, t) => V(Q3, {
+}), sIe = (e, t) => V($3, {
operation: "remove",
source_key: e,
window: t
});
-async function lIe(e) {
- let t = await fetch(QFe, {
+async function cIe(e) {
+ let t = await fetch(ZFe, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -78687,52 +78687,52 @@ async function lIe(e) {
}
return n;
}
-var uIe = 1e4, t6 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
-function dIe(e) {
+var lIe = 1e4, n6 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
+function uIe(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"
- }) : t6(e);
+ }) : n6(e);
return `${t} · ${r(e.range_start)}–${r(e.range_end)}`;
}
-var fIe = j3, pIe = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), mIe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function hIe(e) {
+var dIe = M3, fIe = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), pIe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function mIe(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 gIe(e) {
- let t = e.map(mIe), n = Math.max(1, ...t);
+function hIe(e) {
+ let t = e.map(pIe), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
-var n6 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
+var r6 = (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 _Ie(e) {
- let t = n6(e, 6);
+function gIe(e) {
+ let t = r6(e, 6);
return t.length < 3 ? [] : t;
}
-var r6 = {
+var i6 = {
width: 720,
height: 435
-}, vIe = {
+}, _Ie = {
source: 145,
target: 545
-}, i6 = 30, yIe = 240;
-function a6(e, t, n) {
+}, a6 = 30, vIe = 240;
+function o6(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 bIe(e = []) {
+function yIe(e = []) {
let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
if (!t.length) return null;
- let n = a6(t, "source", (e) => `其余 ${e.toLocaleString()} 个网站`), r = a6(t, "target", (e) => `其余 ${e.toLocaleString()} 位创作者`), i = /* @__PURE__ */ new Map();
+ let n = o6(t, "source", (e) => `其余 ${e.toLocaleString()} 个网站`), r = o6(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, {
@@ -78741,7 +78741,7 @@ function bIe(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) * i6 + yIe), u = RFe().nodeId((e) => e.id).nodeWidth(10).nodePadding(i6).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) * a6 + vIe), u = LFe().nodeId((e) => e.id).nodeWidth(10).nodePadding(a6).extent([[155, 16], [535, l]])({
nodes: [...o.map((e) => ({
id: `source:${e}`,
name: e,
@@ -78756,7 +78756,7 @@ function bIe(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), d = a.reduce((e, t) => e + t.value, 0), f = XFe();
+ }), d = a.reduce((e, t) => e + t.value, 0), f = YFe();
return {
nodes: u.nodes.map((e) => ({
id: e.id,
@@ -78784,17 +78784,17 @@ function bIe(e = []) {
};
}),
total: d,
- height: l + r6.height - 404
+ height: l + i6.height - 404
};
}
-var xIe = (e) => tr(e, 17), o6 = {
+var bIe = (e) => tr(e, 17), s6 = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
series: "系列",
tags: "标签"
-}, SIe = [[
+}, xIe = [[
"big",
"大图 · 竖幅头像",
"maximize"
@@ -78802,7 +78802,7 @@ var xIe = (e) => tr(e, 17), o6 = {
"compact",
"紧凑 · 圆形头像",
"layout-grid"
-]], CIe = [[
+]], SIe = [[
"big",
"大图 · 完整标识",
"maximize"
@@ -78810,7 +78810,7 @@ var xIe = (e) => tr(e, 17), o6 = {
"compact",
"紧凑 · 圆形标识",
"layout-grid"
-]], wIe = [[
+]], CIe = [[
"big",
"大图 · 系列图片",
"maximize"
@@ -78818,7 +78818,7 @@ var xIe = (e) => tr(e, 17), o6 = {
"compact",
"紧凑 · 系列图片",
"layout-grid"
-]], TIe = [
+]], wIe = [
[
"studios",
"厂牌",
@@ -78834,7 +78834,7 @@ var xIe = (e) => tr(e, 17), o6 = {
"系列",
"file-stack"
]
-], EIe = [[
+], TIe = [[
"local",
"本地",
"hard-drive"
@@ -78842,7 +78842,7 @@ var xIe = (e) => tr(e, 17), o6 = {
"online",
"在线",
"rss"
-]], DIe = [
+]], EIe = [
[
"performers",
"艺人",
@@ -78858,7 +78858,7 @@ var xIe = (e) => tr(e, 17), o6 = {
"在线",
"rss"
]
-], OIe = [[
+], DIe = [[
"cloud",
"标签云",
"tags"
@@ -78866,8 +78866,8 @@ var xIe = (e) => tr(e, 17), o6 = {
"alphabet",
"字母表",
"text-aa"
-]], s6 = (e) => e === "compact" ? "compact" : "big";
-function c6(e, t) {
+]], c6 = (e) => e === "compact" ? "compact" : "big";
+function l6(e, t) {
let n = new URLSearchParams(t);
return {
kind: e,
@@ -78877,7 +78877,7 @@ function c6(e, t) {
category: n.get("category") || "all"
};
}
-var l6 = (e, t, n) => Ws(e.map(([e, t, n]) => ({
+var u6 = (e, t, n) => Ws(e.map(([e, t, n]) => ({
value: e,
label: t,
symbol: n
@@ -78885,12 +78885,12 @@ var l6 = (e, t, n) => Ws(e.map(([e, t, n]) => ({
active: t,
label: n,
className: "indextabs"
-}), kIe = (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">
+}), OIe = (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">${el("tag-view", "标签视图", OIe, e, { className: "tag-skeleton-view" })}</span></div></div></div>`;
-function AIe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
- let o = o6[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies" || e === "series", l = s ? el("people-layout", o + "索引版式", e === "series" ? wIe : c ? CIe : SIe, a) : "";
+ <span class="ml-auto">${el("tag-view", "标签视图", DIe, e, { className: "tag-skeleton-view" })}</span></div></div></div>`;
+function kIe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
+ let o = s6[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies" || e === "series", l = s ? el("people-layout", o + "索引版式", e === "series" ? CIe : c ? SIe : xIe, 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}
@@ -78902,24 +78902,24 @@ function AIe({ 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">${Os("", t, "过滤" + o)}</div>
</div>
- ${e === "tags" ? l6(EIe, n, "词表") : e === "performers" || e === "creators" ? l6(DIe, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? l6(TIe, e, "资料类型") : ""}
- ${e === "tags" ? kIe(r) : ""}
- ${e === "performers" && n !== "online" ? oDe(i) : ""}
+ ${e === "tags" ? u6(TIe, n, "词表") : e === "performers" || e === "creators" ? u6(EIe, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? u6(wIe, e, "资料类型") : ""}
+ ${e === "tags" ? OIe(r) : ""}
+ ${e === "performers" && n !== "online" ? aDe(i) : ""}
${sc({
kind: e,
layout: a,
mode: r
})}`;
}
-var jIe = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
-function u6(e, t, n) {
- let r = AIe(t, n);
- e.querySelector("[data-skeleton]")?.dataset.skeleton !== jIe(r) && (e.innerHTML = r, mc(e));
+var AIe = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
+function d6(e, t, n) {
+ let r = kIe(t, n);
+ e.querySelector("[data-skeleton]")?.dataset.skeleton !== AIe(r) && (e.innerHTML = r, mc(e));
}
// src/react/router/pages/index-entity.tsx
-var MIe = () => mu, NIe = () => $l, d6 = () => document.getElementById("index");
-function f6(e, t, n = {}) {
- let r = (0, F.useSyncExternalStore)(wu, MIe);
+var jIe = () => mu, MIe = () => $l, f6 = () => document.getElementById("index");
+function p6(e, t, n = {}) {
+ let r = (0, F.useSyncExternalStore)(wu, jIe);
tf();
let i = Vf(Pp.navigation.location.pathname), a = (0, F.useRef)({
mounted: !0,
@@ -78967,11 +78967,11 @@ function f6(e, t, n = {}) {
i
]);
}
-async function PIe(e, t, n, r) {
- let i = d6();
+async function NIe(e, t, n, r) {
+ let i = f6();
if (!i) return;
- let a = `/${t}`, o = c6(t, n), s = s6(Qj().value.peopleLayout), c = !!i.querySelector("[data-index-page]") && !i.hidden;
- c || (e.surfaceChanged("index", a), u6(i, o, s), ym(r, i, { pending: !0 })), await bp(a, {
+ let a = `/${t}`, o = l6(t, n), s = c6($j().value.peopleLayout), c = !!i.querySelector("[data-index-page]") && !i.hidden;
+ c || (e.surfaceChanged("index", a), d6(i, o, s), ym(r, i, { pending: !0 })), await bp(a, {
...o,
layout: s,
selectMode: $l,
@@ -78982,23 +78982,23 @@ async function PIe(e, t, n, r) {
reuse: c
}) && r() && (e.surfaceShown?.("index", a), ym(r, i));
}
-function FIe(e) {
- let t = d6(), n = t ? hp(t) : null;
+function PIe(e) {
+ let t = f6(), n = t ? hp(t) : null;
return !!t && !t.hidden && !!n && n.path === e && n.host.isConnected;
}
-function IIe({ epoch: e }) {
- let t = (0, F.useContext)(KW), n = tf(), r = n.pathname.split("/").filter(Boolean)[0];
- return f6(e, (e, i) => {
- t && PIe(t, r, n.search, i);
- }, { shown: () => FIe(`/${r}`) }), null;
+function FIe({ epoch: e }) {
+ let t = (0, F.useContext)(qW), n = tf(), r = n.pathname.split("/").filter(Boolean)[0];
+ return p6(e, (e, i) => {
+ t && NIe(t, r, n.search, i);
+ }, { shown: () => PIe(`/${r}`) }), null;
}
-function LIe() {
- let e = GW(), t = (0, F.useSyncExternalStore)(wu, NIe), n = (0, F.useRef)(t);
+function IIe() {
+ let e = KW(), t = (0, F.useSyncExternalStore)(wu, MIe), n = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
- n.current !== t && (n.current = t, window.location.pathname === "/tags" && Sp(d6(), { selectMode: t }));
- }, [t]), /* @__PURE__ */ (0, I.jsx)(IIe, { epoch: e }, e);
+ n.current !== t && (n.current = t, window.location.pathname === "/tags" && Sp(f6(), { selectMode: t }));
+ }, [t]), /* @__PURE__ */ (0, I.jsx)(FIe, { epoch: e }, e);
}
-function RIe(e) {
+function LIe(e) {
let t;
try {
t = decodeURIComponent(e);
@@ -79012,9 +79012,9 @@ function RIe(e) {
name: a
} : null;
}
-var p6 = /* @__PURE__ */ new WeakMap();
-function zIe(e) {
- let t = p6.get(e);
+var m6 = /* @__PURE__ */ new WeakMap();
+function RIe(e) {
+ let t = m6.get(e);
return t || (t = {
helpers: {
...e.grid.helpers,
@@ -79024,14 +79024,14 @@ function zIe(e) {
...e.grid.actions,
revealSource: e.revealSource
}
- }, p6.set(e, t)), t;
+ }, m6.set(e, t)), t;
}
-function m6() {
- let e = d6(), t = e ? hp(e) : null;
+function h6() {
+ let e = f6(), t = e ? hp(e) : null;
return !!t && t.path.endsWith("/*") && t.host.isConnected;
}
-async function BIe(e, t, n, r, i, a, o) {
- let s = d6();
+async function zIe(e, t, n, r, i, a, o) {
+ let s = f6();
if (!s) return;
let { segment: c, kind: l, name: u } = n;
if (!a()) return;
@@ -79054,7 +79054,7 @@ async function BIe(e, t, n, r, i, a, o) {
let g = {
...h,
hosts: m,
- card: zIe(e),
+ card: RIe(e),
resolvedEntity: o,
restoreNavigation: _m(),
actions: {
@@ -79069,16 +79069,16 @@ async function BIe(e, t, n, r, i, a, o) {
isCurrent: a,
beforePlace: () => e.surfaceChanged("entity", r),
place: (e) => (e.replaceChildren(...f), p.firstElementChild)
- }) && a() && m6() && (e.surfaceShown?.("entity", r), ym(a, m.filter));
+ }) && a() && h6() && (e.surfaceShown?.("entity", r), ym(a, m.filter));
}
-function VIe({ target: e }) {
- let t = (0, F.useContext)(KW), n = GW(), r = tf();
- return f6(n, (n, i) => {
+function BIe({ target: e }) {
+ let t = (0, F.useContext)(qW), n = KW(), r = tf();
+ return p6(n, (n, i) => {
let a = t?.entity;
t && a && (async () => {
- if (n || !m6()) {
+ if (n || !h6()) {
if (t.surfaceChanged("entity", r.pathname), await a.loading(e.kind, e.name, i), !i()) return;
- ym(i, d6(), { pending: !0 });
+ ym(i, f6(), { pending: !0 });
}
let o = new URLSearchParams({ kind: e.kind });
o.set(/^[0-9]+$/.test(e.name) ? "id" : "name", e.name);
@@ -79104,7 +79104,7 @@ function VIe({ target: e }) {
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) ? ym(i, d6()?.querySelector("[data-entity-filter]")) : BIe(t, a, {
+ l === r.pathname ? !n && a.refresh(e.kind, c, r.search) ? ym(i, f6()?.querySelector("[data-entity-filter]")) : zIe(t, a, {
...e,
name: c
}, r.pathname, r.search, i, s) : Fp(l + r.search + r.hash, {
@@ -79112,16 +79112,16 @@ function VIe({ target: e }) {
state: Pp.navigation.location.state
});
})();
- }, { shown: () => m6() && !d6()?.hidden }), null;
+ }, { shown: () => h6() && !f6()?.hidden }), null;
}
-function HIe() {
- let e = RIe(tf().pathname);
- return e ? /* @__PURE__ */ (0, I.jsx)(VIe, { target: e }, JSON.stringify([e.kind, e.name])) : null;
+function VIe() {
+ let e = LIe(tf().pathname);
+ return e ? /* @__PURE__ */ (0, I.jsx)(BIe, { target: e }, JSON.stringify([e.kind, e.name])) : null;
}
// src/react/router/pages/follow.tsx
-var h6 = () => document.getElementById("stats"), UIe = () => bu;
-async function WIe(e, t) {
- let n = h6(), r = e.follow;
+var g6 = () => document.getElementById("stats"), HIe = () => bu;
+async function UIe(e, t) {
+ let n = g6(), r = e.follow;
if (!n || !r) return;
let i = gm("follow"), a = r.refresh(i), o = r.props();
if (hm("follow", {
@@ -79130,34 +79130,34 @@ async function WIe(e, t) {
revision: o.revision
}), a) return;
let s = H.getQueryData(ia(o.view, o.revision).queryKey) !== void 0;
- s || (e.surfaceChanged("follow", "/follow"), I2(n, r.skeleton()), ym(t, n, { pending: !0 })), await bp("/follow", o, {
+ s || (e.surfaceChanged("follow", "/follow"), L2(n, r.skeleton()), ym(t, n, { pending: !0 })), await bp("/follow", o, {
container: n,
isCurrent: t,
beforePlace: s ? () => e.surfaceChanged("follow", "/follow") : void 0
}), t() && ym(t, n.querySelector("[data-filter-frame]"));
}
-function GIe() {
- let e = h6(), t = e ? hp(e) : null;
+function WIe() {
+ let e = g6(), t = e ? hp(e) : null;
return !!e && !e.hidden && !!t && t.path === "/follow" && t.host.isConnected;
}
-function KIe() {
- let e = (0, F.useContext)(KW);
- return f6(GW(), (t, n) => {
- e && WIe(e, n);
+function GIe() {
+ let e = (0, F.useContext)(qW);
+ return p6(KW(), (t, n) => {
+ e && UIe(e, n);
}, {
- shown: GIe,
+ shown: WIe,
onCovered: () => {
Pp.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();
}
}), null;
}
-function g6(e) {
+function _6(e) {
let t = e ? hp(e) : null;
return !!t && t.path === "/playlists" && t.host.isConnected;
}
-async function qIe(e, t) {
- let n = h6();
- n && (e.surfaceChanged("playlists", "/playlists"), I2(n, P2("/playlists", {
+async function KIe(e, t) {
+ let n = g6();
+ n && (e.surfaceChanged("playlists", "/playlists"), L2(n, F2("/playlists", {
followLayout: "",
followSort: "",
followDir: ""
@@ -79166,54 +79166,54 @@ async function qIe(e, t) {
isCurrent: t
}), t() && ym(t));
}
-function JIe() {
- let e = (0, F.useContext)(KW), t = (0, F.useSyncExternalStore)(wu, UIe), n = (0, F.useRef)(t);
+function qIe() {
+ let e = (0, F.useContext)(qW), t = (0, F.useSyncExternalStore)(wu, HIe), n = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
if (n.current === t) return;
n.current = t;
- let e = h6();
- g6(e) && Sp(e, { revision: t });
- }, [t]), f6(GW(), (t, n) => {
- e && qIe(e, n);
+ let e = g6();
+ _6(e) && Sp(e, { revision: t });
+ }, [t]), p6(KW(), (t, n) => {
+ e && KIe(e, n);
}, { shown: () => {
- let e = h6();
- return g6(e) && !e.hidden;
+ let e = g6();
+ return _6(e) && !e.hidden;
} }), null;
}
// src/react/router/pages/immerse.tsx
-function YIe() {
+function JIe() {
let e = new URLSearchParams(Pp.navigation.location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
-function XIe() {
- let e = (0, F.useContext)(KW);
- return UW(() => {
- e?.openImmerse(YIe());
+function YIe() {
+ let e = (0, F.useContext)(qW);
+ return WW(() => {
+ e?.openImmerse(JIe());
}, !0), null;
}
-function ZIe() {
- return /* @__PURE__ */ (0, I.jsx)(XIe, {}, GW());
+function XIe() {
+ return /* @__PURE__ */ (0, I.jsx)(YIe, {}, KW());
}
// src/react/router/pages/managed.tsx
-var QIe = () => mu > 0, _6 = () => (0, F.useSyncExternalStore)(wu, QIe), v6 = () => Qj().value.followLayout === "table" ? "table" : "default", y6 = () => new URLSearchParams(window.location.search);
-function b6(e) {
+var ZIe = () => mu > 0, v6 = () => (0, F.useSyncExternalStore)(wu, ZIe), y6 = () => $j().value.followLayout === "table" ? "table" : "default", b6 = () => new URLSearchParams(window.location.search);
+function x6(e) {
return Tn("/healthz", { signal: e.controller.signal }).catch((e) => {
if (En(e)) return null;
throw e;
});
}
-function x6(e, t) {
+function S6(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 $Ie(e, t) {
+async function QIe(e, t) {
if (e === "/jav") {
- let e = await b6(t);
+ let e = await x6(t);
return t.live ? {
- tab: aU(y6().get("tab")),
+ tab: oU(b6().get("tab")),
readOnly: !!e?.ledger_read_only
} : null;
}
@@ -79224,50 +79224,50 @@ async function $Ie(e, t) {
}
if (e.startsWith("/settings/")) {
window.location.hash === "#peachProxy" && W({ configurationRequestedSection: "网络与访问" });
- let t = y6().get("section") || du || jf(e);
+ let t = b6().get("section") || du || jf(e);
return t ? { section: t } : {};
}
if (e === "/review") {
- let e = y6().get("category") || "", n = await b6(t);
+ let e = b6().get("category") || "", n = await x6(t);
return t.live ? {
- category: bY(e) ? e : "",
- queue: CY(y6().get("queue")),
- ...x6(n, "/review")
+ category: xY(e) ? e : "",
+ queue: wY(b6().get("queue")),
+ ...S6(n, "/review")
} : null;
}
if (e === "/subscriptions") {
- let e = kZ("?" + y6().toString()), n = await b6(t);
+ let e = AZ("?" + b6().toString()), n = await x6(t);
if (!t.live) return null;
- let r = Qj().value;
+ let r = $j().value;
return {
...e,
pageSize: Number(r.followPageSize) || 20,
- layout: v6(),
- ...x6(n, "/subscriptions")
+ layout: y6(),
+ ...S6(n, "/subscriptions")
};
}
return {};
}
-async function eLe(e, t, n) {
+async function $Ie(e, t, n) {
let r = Pp.navigation.seq, i = () => n.live && Pp.navigation.seq === r;
- if (e === "/jav" && aU(y6().get("tab")) === "library") {
- Pp.replace(Uve(window.location.search));
+ if (e === "/jav" && oU(b6().get("tab")) === "library") {
+ Pp.replace(Hve(window.location.search));
return;
}
- if (e === "/subscriptions" && y6().get("tab") === "wants") {
+ if (e === "/subscriptions" && b6().get("tab") === "wants") {
Fp("/jav?tab=wants", { replace: !0 });
return;
}
- if (e === "/subscriptions" && y6().get("tab") === "source") {
+ if (e === "/subscriptions" && b6().get("tab") === "source") {
Fp("/settings/subscriptions", { replace: !0 });
return;
}
let a = document.getElementById("stats");
if (!a) return;
- t.surfaceChanged("management", e), I2(a, P2(e, {
- followLayout: v6(),
- followSort: y6().get("sort") || "",
- followDir: y6().get("dir") || ""
+ t.surfaceChanged("management", e), L2(a, F2(e, {
+ followLayout: y6(),
+ followSort: b6().get("sort") || "",
+ followDir: b6().get("dir") || ""
})), ym(i, a, { pending: !0 }), e === "/taste" && (W({ state: {
...U,
creator: "",
@@ -79283,7 +79283,7 @@ async function eLe(e, t, n) {
q: "",
jav: ""
} }), t.clearSearch());
- let o = await $Ie(e, n);
+ let o = await QIe(e, n);
if (!o) return;
let s = await bp(e, o, {
container: a,
@@ -79299,19 +79299,19 @@ async function eLe(e, t, n) {
}) : ym(i);
}
}
-function S6({ path: e }) {
- let t = GW();
+function C6({ path: e }) {
+ let t = KW();
tf();
let n = Vf(Pp.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)(tLe, {
+ return /* @__PURE__ */ (0, I.jsx)(eLe, {
path: e,
covered: r.current === null
}, `${a} ${r.current ?? "covered"}`);
}
-function tLe({ path: e, covered: t }) {
- let n = (0, F.useContext)(KW), r = _6(), i = (0, F.useRef)(null);
+function eLe({ path: e, covered: t }) {
+ let n = (0, F.useContext)(qW), r = v6(), i = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
e.startsWith("/settings/") && Sp(document.getElementById("stats"), { section: jf(e) });
}, [e]), (0, F.useEffect)(() => {
@@ -79322,15 +79322,15 @@ function tLe({ path: e, covered: t }) {
controller: new AbortController()
};
i.current = a, queueMicrotask(() => {
- a.live && eLe(e, n, a);
+ a.live && $Ie(e, n, a);
});
}, [r]), (0, F.useEffect)(() => () => {
let e = i.current;
e && (e.live = !1, e.controller.abort());
}, []), null;
}
-function nLe() {
- let e = _6(), t = (0, F.useRef)(!1);
+function tLe() {
+ let e = v6(), t = (0, F.useRef)(!1);
return (0, F.useEffect)(() => {
if (!e || t.current || Vf(Pp.navigation.location.pathname)) return;
t.current = !0;
@@ -79343,24 +79343,24 @@ function nLe() {
}, [e]), null;
}
// src/react/router/route-chunk.ts
-var C6 = [], w6 = "peach.chunkReloadAt", rLe = 3e4;
-async function iLe() {
+var w6 = [], T6 = "peach.chunkReloadAt", nLe = 3e4;
+async function rLe() {
try {
- let e = Number(sessionStorage.getItem(w6) || 0);
- if (Date.now() - e < rLe || !(await fetch("/healthz", {
+ let e = Number(sessionStorage.getItem(T6) || 0);
+ if (Date.now() - e < nLe || !(await fetch("/healthz", {
cache: "no-store",
credentials: "same-origin"
})).ok) return;
- sessionStorage.setItem(w6, String(Date.now())), location.reload();
+ sessionStorage.setItem(T6, String(Date.now())), location.reload();
} catch {}
}
-function T6(e) {
+function E6(e) {
let t = null, n = null, r = () => n ??= e().then((e) => (t = { module: e }, e), (e) => {
throw n = null, e;
});
- return C6.push(r), {
+ return w6.push(r), {
preload: () => r().catch(async (e) => {
- throw await iLe(), e;
+ throw await rLe(), e;
}),
get: () => {
if (!t) throw Error("页面代码还没装载");
@@ -79368,10 +79368,10 @@ function T6(e) {
}
};
}
-function aLe() {
+function iLe() {
let e = globalThis.requestIdleCallback;
if (typeof e != "function") return;
- let t = [...C6], n = () => {
+ let t = [...w6], n = () => {
let r = t.shift();
r && e(() => {
r().catch(() => {}).finally(n);
@@ -79380,31 +79380,31 @@ function aLe() {
document.readyState === "complete" ? n() : window.addEventListener("load", n, { once: !0 });
}
// src/react/router/managed-routes.tsx
-async function E6(e, t) {
+async function D6(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 D6 = T6(() => import("./peach-app.jav-page-CvsnSwyE.js")), O6 = T6(() => import("./peach-app.stats-page-Domc7MK7.js")), k6 = T6(() => import("./peach-app.taste-page-DBsNS6-3.js")), A6 = T6(() => import("./peach-app.review-page-B1VG9j0D.js")), j6 = T6(() => import("./peach-app.data-cleanup-page-CZOBqkVd.js")), M6 = T6(() => import("./peach-app.duplicates-page-BHkh7UmS.js")), N6 = T6(() => import("./peach-app.quality-goals-page-Deoy7rhD.js")), P6 = T6(() => import("./peach-app.scraping-page-C1N85_Sm.js")), F6 = T6(async () => {
+var O6 = E6(() => import("./peach-app.jav-page-CvsnSwyE.js")), k6 = E6(() => import("./peach-app.stats-page-Domc7MK7.js")), A6 = E6(() => import("./peach-app.taste-page-DBsNS6-3.js")), j6 = E6(() => import("./peach-app.review-page-B1VG9j0D.js")), M6 = E6(() => import("./peach-app.data-cleanup-page-CZOBqkVd.js")), N6 = E6(() => import("./peach-app.duplicates-page-BHkh7UmS.js")), P6 = E6(() => import("./peach-app.quality-goals-page-Deoy7rhD.js")), F6 = E6(() => import("./peach-app.scraping-page-C1N85_Sm.js")), I6 = E6(async () => {
let [{ ConfigurationPage: e }, { DiagnosticsPage: t }] = await Promise.all([import("./peach-app.configuration-page-C6CCxz0L.js"), import("./peach-app.diagnostics-page-DS1L_wLs.js")]);
return {
ConfigurationPage: e,
DiagnosticsPage: t
};
-}), I6 = T6(() => import("./peach-app.activity-page-B3CjUhvF.js")), L6 = T6(() => import("./peach-app.follow-manage-page-CePb_ntJ.js")), R6 = T6(() => import("./peach-app.playlists-page-Be7ygGCR.js"));
-function oLe(e, t, n) {
+}), L6 = E6(() => import("./peach-app.activity-page-B3CjUhvF.js")), R6 = E6(() => import("./peach-app.follow-manage-page-CePb_ntJ.js")), z6 = E6(() => import("./peach-app.playlists-page-Be7ygGCR.js"));
+function aLe(e, t, n) {
if (e === "duplicates") {
n("/duplicates");
return;
}
let r = t.managePath(e);
- V6(r) ? n(r) : t.openManage(e);
+ H6(r) ? n(r) : t.openManage(e);
}
-var z6 = (e) => ({
- element: /* @__PURE__ */ (0, I.jsx)(S6, { path: e }),
- prefetch: (t, n) => E6(F6, Promise.all([rje(n), ...e === "/settings/diagnostics" ? [Eke(n)] : []]).then(() => {})),
+var B6 = (e) => ({
+ element: /* @__PURE__ */ (0, I.jsx)(C6, { path: e }),
+ prefetch: (t, n) => D6(I6, Promise.all([nje(n), ...e === "/settings/diagnostics" ? [Tke(n)] : []]).then(() => {})),
page: (t, n) => {
- let { ConfigurationPage: r, DiagnosticsPage: i } = F6.get();
+ let { ConfigurationPage: r, DiagnosticsPage: i } = I6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
receipt: (e) => n.receipt(e),
reopenTutorial: n.reopenTutorial,
@@ -79415,12 +79415,12 @@ var z6 = (e) => ({
})
});
}
-}), B6 = {
+}), V6 = {
...Xf.reduce((e, t) => (e[t.path] = {
- element: /* @__PURE__ */ (0, I.jsx)(S6, { path: t.path }),
- prefetch: (e, n) => E6(j6, XEe(t.key, n)),
+ element: /* @__PURE__ */ (0, I.jsx)(C6, { path: t.path }),
+ prefetch: (e, n) => D6(M6, YEe(t.key, n)),
page: (e, n) => {
- let { DataCleanupToolPage: r } = j6.get();
+ let { DataCleanupToolPage: r } = M6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
tool: t.key,
failure: n.failure,
@@ -79429,10 +79429,10 @@ var z6 = (e) => ({
}
}, e), {}),
"/jav": {
- element: /* @__PURE__ */ (0, I.jsx)(S6, { path: "/jav" }),
- prefetch: (e, t) => E6(D6, Jye(e.tab, t)),
+ element: /* @__PURE__ */ (0, I.jsx)(C6, { path: "/jav" }),
+ prefetch: (e, t) => D6(O6, qye(e.tab, t)),
page: (e, t) => {
- let { JavPage: n } = D6.get();
+ let { JavPage: n } = O6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
...e,
navigate: t.navigate,
@@ -79441,10 +79441,10 @@ var z6 = (e) => ({
}
},
"/stats": {
- element: /* @__PURE__ */ (0, I.jsx)(S6, { path: "/stats" }),
- prefetch: (e, t) => E6(O6, vFe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(C6, { path: "/stats" }),
+ prefetch: (e, t) => D6(k6, _Fe(t)),
page: (e, t) => {
- let { StatsPage: n } = O6.get();
+ let { StatsPage: n } = k6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
tagLabel: Rl,
onTag: t.openTag
@@ -79452,10 +79452,10 @@ var z6 = (e) => ({
}
},
"/taste": {
- element: /* @__PURE__ */ (0, I.jsx)(S6, { path: "/taste" }),
- prefetch: (e, t) => E6(k6, oIe("all", t)),
+ element: /* @__PURE__ */ (0, I.jsx)(C6, { path: "/taste" }),
+ prefetch: (e, t) => D6(A6, aIe("all", t)),
page: (e, t, n) => {
- let { TastePage: r } = k6.get();
+ let { TastePage: r } = A6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
onSignal: t.openTasteSignal,
navigate: n,
@@ -79465,10 +79465,10 @@ var z6 = (e) => ({
}
},
"/review": {
- element: /* @__PURE__ */ (0, I.jsx)(S6, { path: "/review" }),
- prefetch: (e, t) => E6(A6, BTe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(C6, { path: "/review" }),
+ prefetch: (e, t) => D6(j6, zTe(t)),
page: (e, t) => {
- let { ReviewPage: n } = A6.get();
+ let { ReviewPage: n } = j6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
...e,
route: t.routeReview,
@@ -79480,23 +79480,23 @@ var z6 = (e) => ({
}
},
"/data-cleanup": {
- element: /* @__PURE__ */ (0, I.jsx)(S6, { path: "/data-cleanup" }),
- prefetch: (e, t) => E6(j6, YEe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(C6, { path: "/data-cleanup" }),
+ prefetch: (e, t) => D6(M6, JEe(t)),
page: (e, t, n) => {
- let { DataCleanupPage: r } = j6.get();
+ let { DataCleanupPage: r } = M6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
navigate: n,
failure: t.failure,
- open: (e) => oLe(e, t, n),
+ open: (e) => aLe(e, t, n),
toast: (e, { warning: n = !1 } = {}) => n ? t.toast({ text: e }, { sound: "warning" }) : t.receipt(e)
});
}
},
"/duplicates": {
- element: /* @__PURE__ */ (0, I.jsx)(S6, { path: "/duplicates" }),
- prefetch: (e, t) => E6(M6, nTe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(C6, { path: "/duplicates" }),
+ prefetch: (e, t) => D6(N6, tTe(t)),
page: (e, t) => {
- let { DuplicatesPage: n } = M6.get();
+ let { DuplicatesPage: n } = N6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
openItem: t.openItem,
failure: t.failure,
@@ -79505,46 +79505,46 @@ var z6 = (e) => ({
}
},
"/quality-goals": {
- element: /* @__PURE__ */ (0, I.jsx)(S6, { path: "/quality-goals" }),
- prefetch: (e, t) => E6(N6, mTe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(C6, { path: "/quality-goals" }),
+ prefetch: (e, t) => D6(P6, pTe(t)),
page: (e, t) => {
- let { QualityGoalsPage: n } = N6.get();
+ let { QualityGoalsPage: n } = P6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
openItem: t.openItem,
- javTitleHtml: zI,
- javDisplayName: RI,
+ javTitleHtml: BI,
+ javDisplayName: zI,
toast: (e) => t.receipt(e),
srcBadge: t.srcBadge
});
}
},
"/sources": {
- element: /* @__PURE__ */ (0, I.jsx)(S6, { path: "/sources" }),
- prefetch: (e, t) => E6(P6, WAe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(C6, { path: "/sources" }),
+ prefetch: (e, t) => D6(F6, UAe(t)),
page: (e, t) => {
- let { ScrapingPage: n } = P6.get();
+ let { ScrapingPage: n } = F6.get();
return /* @__PURE__ */ (0, I.jsx)(n, { toast: (e) => t.toast(e) });
}
},
- "/settings/library": z6("/settings/library"),
- "/settings/subscriptions": z6("/settings/subscriptions"),
- "/settings/downloads": z6("/settings/downloads"),
- "/settings/network": z6("/settings/network"),
- "/settings/maintenance": z6("/settings/maintenance"),
- "/settings/diagnostics": z6("/settings/diagnostics"),
+ "/settings/library": B6("/settings/library"),
+ "/settings/subscriptions": B6("/settings/subscriptions"),
+ "/settings/downloads": B6("/settings/downloads"),
+ "/settings/network": B6("/settings/network"),
+ "/settings/maintenance": B6("/settings/maintenance"),
+ "/settings/diagnostics": B6("/settings/diagnostics"),
"/tasks": {
- element: /* @__PURE__ */ (0, I.jsx)(S6, { path: "/tasks" }),
- prefetch: (e, t) => E6(I6, xpe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(C6, { path: "/tasks" }),
+ prefetch: (e, t) => D6(L6, bpe(t)),
page: () => {
- let { ActivityPage: e } = I6.get();
+ let { ActivityPage: e } = L6.get();
return /* @__PURE__ */ (0, I.jsx)(e, {});
}
},
"/subscriptions": {
- element: /* @__PURE__ */ (0, I.jsx)(S6, { path: "/subscriptions" }),
- prefetch: (e, t) => E6(L6, zi(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(C6, { path: "/subscriptions" }),
+ prefetch: (e, t) => D6(R6, zi(t)),
page: (e, t) => {
- let { FollowManagePage: n } = L6.get();
+ let { FollowManagePage: n } = R6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
...e,
route: t.routeFollowManage,
@@ -79554,12 +79554,12 @@ var z6 = (e) => ({
});
}
}
-}, V6 = (e) => Object.hasOwn(B6, e), sLe = { "/resource-sync": { element: /* @__PURE__ */ (0, I.jsx)(nLe, {}) } }, cLe = { "/immerse": { element: /* @__PURE__ */ (0, I.jsx)(ZIe, {}) } }, H6 = {
+}, H6 = (e) => Object.hasOwn(V6, e), oLe = { "/resource-sync": { element: /* @__PURE__ */ (0, I.jsx)(tLe, {}) } }, sLe = { "/immerse": { element: /* @__PURE__ */ (0, I.jsx)(XIe, {}) } }, U6 = {
"/playlists": {
- element: /* @__PURE__ */ (0, I.jsx)(JIe, {}),
- prefetch: (e, t) => E6(R6, OAe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(qIe, {}),
+ prefetch: (e, t) => D6(z6, DAe(t)),
page: (e, t) => {
- let { PlaylistsPage: n } = R6.get();
+ let { PlaylistsPage: n } = z6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
revision: e.revision,
openPlaylist: t.openPlaylist,
@@ -79570,14 +79570,14 @@ var z6 = (e) => ({
}
},
"/follow": {
- element: /* @__PURE__ */ (0, I.jsx)(KIe, {}),
+ element: /* @__PURE__ */ (0, I.jsx)(GIe, {}),
prefetch: (e, t) => sa(e, t),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(iOe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(rOe, { ...e })
}
-}, U6 = (e) => Object.hasOwn(H6, e), W6 = {
- element: /* @__PURE__ */ (0, I.jsx)(LIe, {}),
- prefetch: (e, t) => _De(e, t),
- page: (e, t) => /* @__PURE__ */ (0, I.jsx)(Bke, {
+}, W6 = (e) => Object.hasOwn(U6, e), G6 = {
+ element: /* @__PURE__ */ (0, I.jsx)(IIe, {}),
+ prefetch: (e, t) => gDe(e, t),
+ page: (e, t) => /* @__PURE__ */ (0, I.jsx)(zke, {
...e,
route: t.routeIndex,
savePreference: t.savePeopleLayout,
@@ -79590,82 +79590,82 @@ var z6 = (e) => ({
openFollowAuthor: t.openFollowAuthor,
openFollowTag: t.openFollowTag
})
-}, G6 = {
- "/performers": W6,
- "/creators": W6,
- "/studios": W6,
- "/agencies": W6,
- "/tags": W6,
- "/series": W6
}, K6 = {
- element: /* @__PURE__ */ (0, I.jsx)(HIe, {}),
- prefetch: (e) => aDe(e),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(xke, { ...e })
+ "/performers": G6,
+ "/creators": G6,
+ "/studios": G6,
+ "/agencies": G6,
+ "/tags": G6,
+ "/series": G6
}, q6 = {
- "/performers/*": K6,
- "/studios/*": K6,
- "/creators/*": K6,
- "/series/*": K6,
- "/agencies/*": K6,
- "/tags/*": K6
+ element: /* @__PURE__ */ (0, I.jsx)(VIe, {}),
+ prefetch: (e) => iDe(e),
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(bke, { ...e })
}, J6 = {
+ "/performers/*": q6,
+ "/studios/*": q6,
+ "/creators/*": q6,
+ "/series/*": q6,
+ "/agencies/*": q6,
+ "/tags/*": q6
+}, Y6 = {
"/": {
- element: /* @__PURE__ */ (0, I.jsx)(VW, {}),
+ element: /* @__PURE__ */ (0, I.jsx)(HW, {}),
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(eY, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(tY, { ...e })
},
"/junk-files": {
- element: /* @__PURE__ */ (0, I.jsx)(VW, {}),
+ element: /* @__PURE__ */ (0, I.jsx)(HW, {}),
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)($ke, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(Qke, { ...e })
}
-}, Y6 = (e) => Object.hasOwn(J6, e), lLe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, I.jsx)(Nve, { ...e }) : /* @__PURE__ */ (0, I.jsx)(b$, { ...e }), X6 = {
+}, X6 = (e) => Object.hasOwn(Y6, e), cLe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, I.jsx)(Mve, { ...e }) : /* @__PURE__ */ (0, I.jsx)(x$, { ...e }), Z6 = {
"catalog-filter": {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(ixe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(rxe, { ...e })
},
"feed-new": {
- prefetch: (e) => tDe(e),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(Dke, { ...e })
+ prefetch: (e) => eDe(e),
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(Eke, { ...e })
},
"library-processing": {
- prefetch: (e, t) => rH(t),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(lLe, { ...e })
+ prefetch: (e, t) => iH(t),
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(cLe, { ...e })
},
search: {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(QAe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(ZAe, { ...e })
}
-}, Z6 = (e) => Object.hasOwn(X6, e), Q6 = {
+}, Q6 = (e) => Object.hasOwn(Z6, e), $6 = {
"batch-dock": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(hle, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(mle, {})
},
"glow-picker": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Zle, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Xle, {})
},
"manage-header": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(epe, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)($fe, {})
},
immerse: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Xde, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Yde, {})
},
"settings-panel": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Nje, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Mje, {})
},
sidebar: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Yje, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Jje, {})
},
stage: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(gFe, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(hFe, {})
}
-}, $6 = (e) => Object.hasOwn(Q6, e), e8 = [
+}, e8 = (e) => Object.hasOwn($6, e), t8 = [
"/",
"/wall",
"/unseen",
@@ -79675,99 +79675,99 @@ var z6 = (e) => ({
"/junk-files"
];
[
- ...Object.keys(B6),
- ...Object.keys(H6),
- ...Object.keys(G6),
- ...Object.keys(q6),
- ...e8
+ ...Object.keys(V6),
+ ...Object.keys(U6),
+ ...Object.keys(K6),
+ ...Object.keys(J6),
+ ...t8
];
-var t8 = (e) => V6(e) || U6(e) || Object.hasOwn(G6, e) || Object.hasOwn(q6, e) || Y6(e) || Z6(e) || $6(e);
-function n8(e) {
- return V6(e) ? B6[e] : U6(e) ? H6[e] : Y6(e) ? J6[e] : Z6(e) ? X6[e] : $6(e) ? Q6[e] : Object.hasOwn(G6, e) ? G6[e] : q6[e];
+var n8 = (e) => H6(e) || W6(e) || Object.hasOwn(K6, e) || Object.hasOwn(J6, e) || X6(e) || Q6(e) || e8(e);
+function r8(e) {
+ return H6(e) ? V6[e] : W6(e) ? U6[e] : X6(e) ? Y6[e] : Q6(e) ? Z6[e] : e8(e) ? $6[e] : Object.hasOwn(K6, e) ? K6[e] : J6[e];
}
-function uLe(e, t, n) {
- return t8(e) ? n8(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
+function lLe(e, t, n) {
+ return n8(e) ? r8(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
}
-function dLe(e, t, n, r) {
- return n8(e).page(t, n, r);
+function uLe(e, t, n, r) {
+ return r8(e).page(t, n, r);
}
// src/react/application-residents.ts
-var r8 = null, i8 = null, a8 = 0, o8 = /* @__PURE__ */ new Set();
-function fLe(e) {
- return r8 = e, i8 && e(i8), () => {
- r8 === e && (r8 = null);
+var i8 = null, a8 = null, o8 = 0, s8 = /* @__PURE__ */ new Set();
+function dLe(e) {
+ return i8 = e, a8 && e(a8), () => {
+ i8 === e && (i8 = null);
};
}
-function pLe(e) {
- return r8 && (i8 = e, r8(e), mp(Promise.resolve(uLe)), aLe()), Promise.resolve();
+function fLe(e) {
+ return i8 && (a8 = e, i8(e), mp(Promise.resolve(lLe)), iLe()), Promise.resolve();
}
-async function s8(e, t, n = (e) => e) {
- let r = a8;
- if (t.isConnected || o8.add(t), !await bp(e, {}, {
+async function c8(e, t, n = (e) => e) {
+ let r = o8;
+ if (t.isConnected || s8.add(t), !await bp(e, {}, {
container: t,
resident: !0,
- isCurrent: () => !!r8 && r === a8,
+ isCurrent: () => !!i8 && r === o8,
place: () => n(t)
- }) || r !== a8 || !r8) throw new DOMException("应用已卸载", "AbortError");
-}
-function mLe() {
- a8 += 1, r8 = null, i8 = null, c8 = null, l8 = null, f8 = null, p8 = null, h8 = null, g8 = null, v8 = null, y8 = null, x8 = null, S8 = null, w8 = null, T8 = null, D8 = null;
- for (let e of o8) e.remove();
- o8.clear(), zQ();
-}
-var c8 = null, l8 = null;
-function u8(e) {
- return c8 ??= (async () => {
- let t = hFe(e), n = document.createElement("div");
- return n.dataset.stageHost = "", await s8("stage", n, (e) => (document.body.append(e), e)), l8 = t, t;
- })(), c8;
-}
-var d8 = () => l8, f8 = null, p8 = null;
+ }) || r !== o8 || !i8) throw new DOMException("应用已卸载", "AbortError");
+}
+function pLe() {
+ o8 += 1, i8 = null, a8 = null, l8 = null, u8 = null, p8 = null, m8 = null, g8 = null, _8 = null, y8 = null, b8 = null, S8 = null, C8 = null, T8 = null, E8 = null, O8 = null;
+ for (let e of s8) e.remove();
+ s8.clear(), BQ();
+}
+var l8 = null, u8 = null;
+function d8(e) {
+ return l8 ??= (async () => {
+ let t = mFe(e), n = document.createElement("div");
+ return n.dataset.stageHost = "", await c8("stage", n, (e) => (document.body.append(e), e)), u8 = t, t;
+ })(), l8;
+}
+var f8 = () => u8, p8 = null, m8 = null;
+function mLe(e) {
+ return p8 ??= (async () => {
+ let t = Jde(e), n = document.createElement("div");
+ return n.dataset.immerseHost = "", await c8("immerse", n, (e) => (document.body.append(e), e)), m8 = t, t;
+ })(), p8;
+}
+var h8 = () => m8, g8 = null, _8 = null;
function hLe(e) {
- return f8 ??= (async () => {
- let t = Yde(e), n = document.createElement("div");
- return n.dataset.immerseHost = "", await s8("immerse", n, (e) => (document.body.append(e), e)), p8 = t, t;
- })(), f8;
+ return g8 ??= (async () => {
+ let t = jje(e), n = document.createElement("div");
+ return n.dataset.settingsHost = "", await c8("settings-panel", n, (e) => (document.body.append(e), e)), _8 = t, t;
+ })(), g8;
}
-var m8 = () => p8, h8 = null, g8 = null;
+var v8 = () => _8, y8 = null, b8 = null;
function gLe(e) {
- return h8 ??= (async () => {
- let t = Mje(e), n = document.createElement("div");
- return n.dataset.settingsHost = "", await s8("settings-panel", n, (e) => (document.body.append(e), e)), g8 = t, t;
- })(), h8;
+ return y8 ??= (async () => {
+ let t = qje(e);
+ return await c8("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), b8 = t, t;
+ })(), y8;
}
-var _8 = () => g8, v8 = null, y8 = null;
+var x8 = () => b8, S8 = null, C8 = null;
function _Le(e) {
- return v8 ??= (async () => {
- let t = Jje(e);
- return await s8("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), y8 = t, t;
- })(), v8;
+ return S8 ??= (async () => {
+ let t = Qfe(e);
+ return await c8("manage-header", e.root, (e) => (e.replaceChildren(), e)), C8 = t, t;
+ })(), S8;
}
-var b8 = () => y8, x8 = null, S8 = null;
+var w8 = () => C8, T8 = null, E8 = null;
function vLe(e) {
- return x8 ??= (async () => {
- let t = $fe(e);
- return await s8("manage-header", e.root, (e) => (e.replaceChildren(), e)), S8 = t, t;
- })(), x8;
+ return T8 ??= (async () => {
+ let t = ple(e);
+ return await c8("batch-dock", e.root), E8 = t, t;
+ })(), T8;
}
-var C8 = () => S8, w8 = null, T8 = null;
+var D8 = () => E8, O8 = null;
function yLe(e) {
- return w8 ??= (async () => {
- let t = mle(e);
- return await s8("batch-dock", e.root), T8 = t, t;
- })(), w8;
-}
-var E8 = () => T8, D8 = null;
-function bLe(e) {
- return D8 ??= (async () => {
- Xle(e), await s8("glow-picker", e.root);
- })(), D8;
+ return O8 ??= (async () => {
+ Yle(e), await c8("glow-picker", e.root);
+ })(), O8;
}
-function O8(e, t, n, r) {
- BQ(e, t), VQ(n, r);
+function k8(e, t, n, r) {
+ VQ(e, t), HQ(n, r);
}
// src/application/receipts.js
-var k8 = {
+var A8 = {
toastBody: void 0,
toastSeq: void 0,
toast: void 0,
@@ -79776,13 +79776,13 @@ var k8 = {
rollSeed: void 0,
seededSample: void 0
};
-function xLe() {
- BQ(L("#toasts"), {
+function bLe() {
+ VQ(L("#toasts"), {
success: R("check"),
error: R("circle-alert")
- }), k8.toastBody = (e) => e && typeof e == "object" && "html" in e ? String(e.html) : z(e && typeof e == "object" ? e.text ?? "" : e ?? ""), k8.toastSeq = 0, k8.toast = (e, { timeout: t = 6e3, warn: n = !1, action: r = null, sound: i = null } = {}) => {
- let a = `toast-${++k8.toastSeq}`, o = (e, t, n, r) => {
- $o(i || (t ? "error" : "success")), O8(L("#toasts"), {
+ }), A8.toastBody = (e) => e && typeof e == "object" && "html" in e ? String(e.html) : z(e && typeof e == "object" ? e.text ?? "" : e ?? ""), A8.toastSeq = 0, A8.toast = (e, { timeout: t = 6e3, warn: n = !1, action: r = null, sound: i = null } = {}) => {
+ let a = `toast-${++A8.toastSeq}`, o = (e, t, n, r) => {
+ $o(i || (t ? "error" : "success")), k8(L("#toasts"), {
success: R("check"),
error: R("circle-alert")
}, a, {
@@ -79797,10 +79797,10 @@ function xLe() {
} : null
});
};
- return o(k8.toastBody(e), n, t, r), { replaceMessage: (e, { warn: t = !1, timeout: n = 4e3 } = {}) => o(k8.toastBody(e), t, n, null) };
- }, k8.actionReceipt = (e, { undo: t = null, timeout: n = t ? 8e3 : 6e3 } = {}) => {
+ return o(A8.toastBody(e), n, t, r), { replaceMessage: (e, { warn: t = !1, timeout: n = 4e3 } = {}) => o(A8.toastBody(e), t, n, null) };
+ }, A8.actionReceipt = (e, { undo: t = null, timeout: n = t ? 8e3 : 6e3 } = {}) => {
let r = null;
- return r = k8.toast({ text: e }, {
+ return r = A8.toast({ text: e }, {
timeout: n,
action: t ? {
label: "撤销",
@@ -79813,14 +79813,14 @@ function xLe() {
}
} : null
}), r;
- }, k8.actionFailure = (e, t) => k8.toast({ text: `${e}失败:${t?.message || "请重试"}` }, { warn: !0 }), k8.rollSeed = () => ir(), k8.seededSample = (e, t, n, r = (e) => e.k) => {
+ }, A8.actionFailure = (e, t) => A8.toast({ text: `${e}失败:${t?.message || "请重试"}` }, { warn: !0 }), A8.rollSeed = () => ir(), A8.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 SLe = [
+var xLe = [
"loc",
"creator",
"studio",
@@ -79841,10 +79841,10 @@ var SLe = [
"folder",
"folder_recursive"
];
-function A8(e, t, n, r = n.defaultSort) {
- return Nj(e, t, n.defaultSort, n.defaultSortDirection, r);
+function j8(e, t, n, r = n.defaultSort) {
+ return Pj(e, t, n.defaultSort, n.defaultSortDirection, r);
}
-function CLe(e, t, n) {
+function SLe(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",
@@ -79860,7 +79860,7 @@ function CLe(e, t, n) {
region: o("region") || "",
year: o("year") || "",
state: kn[r] || o("state") || "",
- ...A8(o("sort"), o("dir"), t),
+ ...j8(o("sort"), o("dir"), t),
seed: o("seed") || n(),
q: o("q") || "",
jav: o("jav") || "",
@@ -79870,18 +79870,18 @@ function CLe(e, t, n) {
folder_recursive: o("folder_recursive") === "0" ? "0" : ""
};
}
-function wLe(e, t) {
+function CLe(e, t) {
return e.split(",").filter(Boolean).filter((e) => t[e] !== !1).join(",") || e;
}
-function TLe(e) {
+function wLe(e) {
let t = On[e.state ?? ""] || "/", n = new URLSearchParams();
- for (let t of SLe) {
+ for (let t of xLe) {
let r = e[t];
- !r || t === "tag_match" && r === "all" || t === "dir" && r === Aj(e.sort ?? "") || n.set(t, r);
+ !r || t === "tag_match" && r === "all" || t === "dir" && r === jj(e.sort ?? "") || n.set(t, r);
}
return !On[e.state ?? ""] && e.state && n.set("state", e.state), t + (n.size ? `?${n}` : "");
}
-function ELe(e, t, n) {
+function TLe(e, t, n) {
return {
loc: e.loc ?? "",
creator: "",
@@ -79897,7 +79897,7 @@ function ELe(e, t, n) {
year: "",
state: "",
sort: t.defaultSort,
- dir: Mj(t.defaultSort, t.defaultSort, t.defaultSortDirection),
+ dir: Nj(t.defaultSort, t.defaultSort, t.defaultSortDirection),
seed: n(),
q: "",
jav: "",
@@ -79907,7 +79907,7 @@ function ELe(e, t, n) {
folder_recursive: ""
};
}
-function j8(e) {
+function M8(e) {
return {
state: e,
barsContext: {
@@ -79918,7 +79918,7 @@ function j8(e) {
};
}
// src/react/catalog-grid/catalog-controller.ts
-var DLe = class {
+var ELe = class {
currentRevision = 0;
currentPage = "";
painting = null;
@@ -79963,44 +79963,44 @@ var DLe = class {
let e = [...this.waiters.values()];
this.waiters.clear(), e.forEach((e) => e());
}
-}, M8 = Infinity, N8 = 0, OLe = (e, t = N8) => [
+}, N8 = Infinity, P8 = 0, DLe = (e, t = P8) => [
"facets",
e,
t
-], kLe = (e, t, n = N8) => [
+], OLe = (e, t, n = P8) => [
"tops",
e,
t,
n
-], ALe = (e, t = N8) => [
+], kLe = (e, t = P8) => [
"tops",
e,
t
];
-async function P8(e) {
+async function F8(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 jLe(e, t) {
+function ALe(e, t) {
return Promise.all([H.fetchQuery({
- queryKey: OLe(e),
+ queryKey: DLe(e),
queryFn: () => Tn(`/api/facets${e ? `?${e}` : ""}`),
- staleTime: M8
+ staleTime: N8
}), H.fetchQuery({
- queryKey: kLe(t, e),
- queryFn: () => P8(t),
- staleTime: M8
+ queryKey: OLe(t, e),
+ queryFn: () => F8(t),
+ staleTime: N8
})]);
}
-function MLe(e) {
+function jLe(e) {
return H.fetchQuery({
- queryKey: ALe(e),
- queryFn: () => P8(e),
- staleTime: M8
+ queryKey: kLe(e),
+ queryFn: () => F8(e),
+ staleTime: N8
});
}
-function F8() {
- N8 += 1;
+function I8() {
+ P8 += 1;
let e = (e) => e.state.fetchStatus === "idle";
H.removeQueries({
queryKey: ["facets"],
@@ -80011,7 +80011,7 @@ function F8() {
});
}
// src/application/navigation-items.ts
-var I8 = [
+var L8 = [
[
"",
"首页",
@@ -80062,7 +80062,7 @@ var I8 = [
"管理",
"wrench"
]
-], L8 = [
+], R8 = [
[
"stats",
"统计",
@@ -80108,18 +80108,18 @@ var I8 = [
"Peach 配置",
"folder-cog"
]
-], R8 = [
+], z8 = [
"stats",
"taste",
"cleanup",
"follow",
"activity",
"configuration"
-], NLe = (e) => L8.filter(([t]) => R8.includes(t) && (t !== "configuration" || e)), z8 = L8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
+], MLe = (e) => R8.filter(([t]) => z8.includes(t) && (t !== "configuration" || e)), B8 = R8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
e === "follow" ? "follow-manage" : e === "cleanup" ? "data-cleanup" : e,
t,
n
-]]), PLe = [...I8, ...z8], FLe = {
+]]), NLe = [...L8, ...B8], PLe = {
stats: "stats",
review: "review",
"data-cleanup": "cleanup",
@@ -80127,18 +80127,18 @@ var I8 = [
"follow-manage": "follow",
quality: "quality",
activity: "activity"
-}, B8 = [
+}, V8 = [
["0", "不限时间"],
["7", "最近 7 天"],
["30", "最近 30 天"],
["90", "最近 90 天"]
];
// src/react/index/index-controller.ts
-function V8({ kind: e, q: t, scope: n, view: r, category: i }) {
+function H8({ 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 H8(e, t, n) {
+function U8(e, t, n) {
let r = e.entity_id || e.id, i = t === "studio" || t === "agency";
return {
html: vo(e.k, r ? {
@@ -80151,20 +80151,20 @@ function H8(e, t, n) {
face: bo(e.avatar_focus)
};
}
-function U8(e) {
+function W8(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" ${Ha({ fallbacks: [e.avatar_fallback || ""] })}>` : "";
return `<span class="ini">${z(n)}</span>${r}`;
}
-function ILe(e) {
+function FLe(e) {
let t = (t) => {
e.adoptFollowView(t), e.hideIndex(), e.openPage(Aa(t));
};
return {
route(t, { replace: n = !1 } = {}) {
- e.route(V8(t), n);
+ e.route(H8(t), n);
},
- personAvatar: H8,
- authorAvatar: U8,
+ personAvatar: U8,
+ authorAvatar: W8,
openFollowAuthor(n) {
t(ja(e.followView(), n));
},
@@ -80174,7 +80174,7 @@ function ILe(e) {
};
}
// src/application/effects.ts
-var W8 = class {
+var G8 = class {
cleanups = /* @__PURE__ */ new Set();
active = !0;
disposed = !1;
@@ -80255,12 +80255,12 @@ var W8 = class {
}
if (e.length) throw AggregateError(e, "应用资源清理未全部完成");
}
-}, G8 = new W8();
-function LLe() {
- return G8.dispose(), G8 = new W8(), G8;
+}, K8 = new G8();
+function ILe() {
+ return K8.dispose(), K8 = new G8(), K8;
}
// src/application/source-action.ts
-function RLe(e) {
+function LLe(e) {
return async (t, n, { button: r = null } = {}) => {
if (r?.getAttribute("aria-busy") === "true") return;
let i = r?.innerHTML ?? "", a = r?.textContent?.trim() ?? "";
@@ -80275,36 +80275,36 @@ function RLe(e) {
};
}
// src/react/entity-page/entity-route.ts
-var K8 = () => Object.fromEntries(OX.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));
-function q8(e, t) {
- let n = new URLSearchParams(e), r = K8();
- for (let e of OX) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");
+var q8 = () => Object.fromEntries(kX.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));
+function J8(e, t) {
+ let n = new URLSearchParams(e), r = q8();
+ for (let e of kX) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");
return {
...r,
- ...Nj(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
+ ...Pj(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
};
}
-function J8(e) {
+function Y8(e) {
let t = new URLSearchParams();
- for (let n of OX) !e[n] || n === "sort" && e[n] === "new" || n === "dir" && e[n] === Aj(e.sort || "") || t.set(n, e[n]);
+ for (let n of kX) !e[n] || n === "sort" && e[n] === "new" || n === "dir" && e[n] === jj(e.sort || "") || t.set(n, e[n]);
return t.toString();
}
-function Y8(e) {
+function X8(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 X8(e, t) {
- let n = new URLSearchParams(J8(e));
+function Z8(e, t) {
+ let n = new URLSearchParams(Y8(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 zLe(e, t, n, r) {
- let i = X8(n, r);
+function RLe(e, t, n, r) {
+ let i = Z8(n, r);
return Pn(e, t) + (i ? `?${i}` : "");
}
-function BLe() {
+function zLe() {
let e = "";
return {
fresh(t, n) {
@@ -80313,22 +80313,22 @@ function BLe() {
read(t, n, r, i) {
let a = e === Pn(t, n) && !r;
e = "";
- let o = a ? K8() : { ...q8(r, i) };
+ let o = a ? q8() : { ...J8(r, i) };
return t === "creator" && (o.creator = ""), {
filters: o,
media: a ? {
media: "videos",
set: 0
- } : Y8(r)
+ } : X8(r)
};
}
};
}
// src/react/entity-page/photo-surface.ts
-function VLe(e, t) {
+function BLe(e, t) {
return e.entityWall && e.entityCurrent && e.indexVisible || e.pathname === "/follow" && e.followMedia === "images" && e.statsVisible ? !0 : t();
}
-function HLe(e) {
+function VLe(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);
@@ -80350,12 +80350,12 @@ function HLe(e) {
};
}
// src/react/entity-page/entity-controller.ts
-function ULe(e, t, n) {
+function HLe(e, t, n) {
let r = (t, n, r, i = {
media: "videos",
set: 0
}, { push: a = !0 } = {}) => {
- if (a && e.route(zLe(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
+ if (a && e.route(RLe(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
e.releaseBodyPreviews();
let o = e.state();
return e.push({
@@ -80369,7 +80369,7 @@ function ULe(e, t, n) {
if (s) return s;
let c = () => {
let n = e.context();
- return n?.kind === t && n.name === a ? n.filters : K8();
+ return n?.kind === t && n.name === a ? n.filters : q8();
}, l = {
...n,
route: (e, n) => {
@@ -80382,7 +80382,7 @@ function ULe(e, t, n) {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let n = c(), i = jj(e, n.sort || "new", n.dir || "");
+ let n = c(), i = Mj(e, n.sort || "new", n.dir || "");
i && r(t, a, {
...n,
...i
@@ -80433,7 +80433,7 @@ function ULe(e, t, n) {
};
}
// src/react/entity-page/entity-loading.ts
-function WLe(e) {
+function ULe(e) {
return async (t, n, r) => {
e.paintSkeleton(t, n), e.resetView(), e.shapesReady(t, n) || e.waitShapes().then(() => {
r() && e.syncParts(t, n);
@@ -80443,7 +80443,7 @@ function WLe(e) {
};
}
// src/react/entity-page/entity-portrait.ts
-function GLe(e, t) {
+function WLe(e, t) {
let n = e === "studio" || e === "agency", r = t.id ? _o({
kind: e,
id: t.id,
@@ -80465,11 +80465,11 @@ function GLe(e, t) {
return r || (i?.avatar ? `<img src="${z(i.avatar)}" alt="${z(t.canonical_name)}" referrerpolicy="no-referrer" ${Ha({ fallbacks: [i.avatar_fallback || ""] })}>` : "");
}
// src/react/entity-page/entity-application.ts
-function KLe(e) {
- let t = BLe(), n = {
+function GLe(e) {
+ let t = zLe(), n = {
...e.helpers,
- portraitImg: GLe
- }, r = ULe(e.controller, n, e.actions);
+ portraitImg: WLe
+ }, r = HLe(e.controller, n, e.actions);
return {
...r,
helpers: n,
@@ -80478,12 +80478,12 @@ function KLe(e) {
let { filters: o, media: s } = t.read(n, i, a, e.sortPreference());
return r.props(n, i, o, s);
},
- loading: WLe(e.loading),
- photos: HLe(e.photos)
+ loading: ULe(e.loading),
+ photos: VLe(e.photos)
};
}
// src/card-art/feed-identity.ts
-function qLe(e) {
+function KLe(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 ? "" : vo(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>`;
@@ -80491,7 +80491,7 @@ function qLe(e) {
return r.length > 1 ? `<div class="mavstack">${i}</div>` : i;
}
// src/application/feed.js
-var Z8 = {
+var Q8 = {
FEED_SKELETON_CARDS: void 0,
feedNewSkeletonHtml: void 0,
entityShapes: void 0,
@@ -80507,56 +80507,56 @@ var Z8 = {
feedNewActions: void 0,
HERO_WIDE_PX: void 0
};
-function Q8(e) {
+function $8(e) {
return e.has_cover ? Co(e, "big") : !e.cover_url || !e.code ? e.cover_fetching ? `<span class="nopic" data-feed-cover-state="fetching">${Us("抓取中")}</span>` : "<span class=\"nopic\" data-feed-cover-state=\"missing\">无封面</span>" : Co(e, "big").replace(/ src="[^"]*"/, ` src="${z(po(e))}" data-panel-prior="1"`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"封面未取得\" data-drop-class=\"nopic\"");
}
-function JLe(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 = Q8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? zI({
+function qLe(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 = $8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? BI({
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:${sM}">${n}
+ ${a}<div class="pic" style="--card-ratio:${cM}">${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">${qLe(e)}<div class="mtext"><span class="t">${i}</span>
+ <div class="meta">${KLe(e)}<div class="mtext"><span class="t">${i}</span>
<div class="s mono">${t || (e.title ? "" : "资料还没取到")}</div></div></div></article>`;
}
-function YLe() {
+function JLe() {
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;
- Z8.entityShapes = new Map([String(t.id), ...t.names].map((e) => [`${t.kind}/${Un(e)}`, t.parts]));
+ Q8.entityShapes = new Map([String(t.id), ...t.names].map((e) => [`${t.kind}/${Un(e)}`, t.parts]));
} catch {}
}
-async function $8() {
- let e = G8, t = await Tn("/api/entity/shapes", { signal: e.signal }).catch(() => null);
- return e.isActive && t && !t.error && (Z8.entityShapesComplete = !0, Z8.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" && t5(t.home.feed), a5(location.pathname) && n5(L("#feedNew"))), Z8.entityShapes;
+async function e5() {
+ let e = K8, t = await Tn("/api/entity/shapes", { signal: e.signal }).catch(() => null);
+ return e.isActive && t && !t.error && (Q8.entityShapesComplete = !0, Q8.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" && n5(t.home.feed), o5(location.pathname) && r5(L("#feedNew"))), Q8.entityShapes;
}
-var e5 = "peach.home-feed.v1";
-function t5(e) {
+var t5 = "peach.home-feed.v1";
+function n5(e) {
X.homeHasFeed = e;
try {
- localStorage.setItem(e5, e ? "1" : "0");
+ localStorage.setItem(t5, e ? "1" : "0");
} catch {}
}
-function XLe() {
+function YLe() {
try {
- let e = localStorage.getItem(e5);
+ let e = localStorage.getItem(t5);
return e === "1" || e !== "0" && null;
} catch {
return null;
}
}
-function n5(e) {
- !e || gp(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = Z8.feedNewSkeletonHtml())));
+function r5(e) {
+ !e || gp(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = Q8.feedNewSkeletonHtml())));
}
-function ZLe(e, t) {
+function XLe(e, t) {
return !(e > 0) || !t.some((e) => !e.has_cover) ? "" : Bs(`${e} 部新作的封面连不上 DMM 图片主机,中国移动宽带常见。把 DMM / FANZA 的连接方式设成 Peach 代理,下一轮会自动重取。`, {
variant: "warning",
className: "feednetwork",
@@ -80564,55 +80564,55 @@ function ZLe(e, t) {
actionHref: "/sources"
});
}
-function r5(e, t = "") {
- let n = e && !e.error && e.items || [], r = t && n.length ? `<a class="feednewall" href="${z(t)}" style="--card-ratio:${sM}">${R("chevron-right")}<span>查看全部新作</span></a>` : "";
- return ZLe(e?.cover_network, n) + `<div class="feednewrow srow">${n.map(JLe).join("")}${r}</div>`;
-}
-function i5(e) {
- e && (l9(e), Z.appSettings.feedAutoScroll && Vc(e));
+function i5(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 XLe(e?.cover_network, n) + `<div class="feednewrow srow">${n.map(qLe).join("")}${r}</div>`;
}
function a5(e) {
+ e && (u9(e), Z.appSettings.feedAutoScroll && Vc(e));
+}
+function o5(e) {
return jn(e) && e !== "/junk-files";
}
-function QLe() {
+function ZLe() {
let e = L("#feedNew");
- gp(e) ? e.hidden = X.homeHasFeed !== !0 : (n5(e), bp("feed-new", {
+ gp(e) ? e.hidden = X.homeHasFeed !== !0 : (r5(e), bp("feed-new", {
host: e,
- revision: Z8.feedRevision,
- helpers: Z8.feedNewHelpers,
- actions: Z8.feedNewActions
+ revision: Q8.feedRevision,
+ helpers: Q8.feedNewHelpers,
+ actions: Q8.feedNewActions
}, {
container: e,
- isCurrent: () => a5(location.pathname)
+ isCurrent: () => o5(location.pathname)
}));
}
-function o5() {
+function s5() {
let e = L("#feedNew");
e.querySelectorAll(".feednewrow").forEach(Hc), e.hidden = !0;
}
-function s5() {
- Z8.feedRevision += 1, Sp(L("#feedNew"), { revision: Z8.feedRevision }), d5({ feedRevision: Z8.feedRevision });
+function c5() {
+ Q8.feedRevision += 1, Sp(L("#feedNew"), { revision: Q8.feedRevision }), f5({ feedRevision: Q8.feedRevision });
}
-function $Le() {
+function QLe() {
document.querySelectorAll(".feednewrow").forEach((e) => Z.appSettings.feedAutoScroll ? Vc(e) : Hc(e));
}
-var c5 = 0;
-function eRe([e]) {
- let t = e.contentRect.width >= Z8.HERO_WIDE_PX;
- cancelAnimationFrame(c5), c5 = requestAnimationFrame(() => {
- c5 = 0, L("#index")?.toggleAttribute("data-hero-wide", t);
+var l5 = 0;
+function $Le([e]) {
+ let t = e.contentRect.width >= Q8.HERO_WIDE_PX;
+ cancelAnimationFrame(l5), l5 = requestAnimationFrame(() => {
+ l5 = 0, L("#index")?.toggleAttribute("data-hero-wide", t);
});
}
-function tRe() {
- Z8.FEED_SKELETON_CARDS = 8, Z8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" data-skeleton="feed/new" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${sM}"></div>
+function eRe() {
+ Q8.FEED_SKELETON_CARDS = 8, Q8.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>
<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(Z8.FEED_SKELETON_CARDS)}</div>`, Z8.entityShapes = null, Z8.entityShapesComplete = !1, Z8.hasEntityShape = (e, t) => Z8.entityShapesComplete || !!Z8.entityShapes?.has(`${e}/${Un(t)}`), Z8.hasEntityPart = (e, t, n) => !!t && !!Z8.entityShapes?.get(`${e}/${Un(t)}`)?.includes(n), Z8.feedNewSkeletonSection = () => `<section class="feednew">${Z8.feedNewSkeletonHtml()}</section>`, Z8.COSTAR_SKELETON_PEOPLE = 12, Z8.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(Z8.COSTAR_SKELETON_PEOPLE)}</div></div>`, Z8.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, Z8.feedRevision = 0, Z8.feedNewHelpers = {
- feedRowHtml: r5,
- wireFeedRow: (e) => i5(e)
- }, Z8.feedNewActions = { settled: (e) => t5(e) }, Z8.HERO_WIDE_PX = 900, G8.resize(eRe).observe(L("#index"));
+ <div class="s mono"><span class="skeleton">&#8203;</span></div></div></div></article>`.repeat(Q8.FEED_SKELETON_CARDS)}</div>`, Q8.entityShapes = null, Q8.entityShapesComplete = !1, Q8.hasEntityShape = (e, t) => Q8.entityShapesComplete || !!Q8.entityShapes?.has(`${e}/${Un(t)}`), Q8.hasEntityPart = (e, t, n) => !!t && !!Q8.entityShapes?.get(`${e}/${Un(t)}`)?.includes(n), Q8.feedNewSkeletonSection = () => `<section class="feednew">${Q8.feedNewSkeletonHtml()}</section>`, Q8.COSTAR_SKELETON_PEOPLE = 12, Q8.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(Q8.COSTAR_SKELETON_PEOPLE)}</div></div>`, Q8.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, Q8.feedRevision = 0, Q8.feedNewHelpers = {
+ feedRowHtml: i5,
+ wireFeedRow: (e) => a5(e)
+ }, Q8.feedNewActions = { settled: (e) => n5(e) }, Q8.HERO_WIDE_PX = 900, K8.resize($Le).observe(L("#index"));
}
// src/entity-skeleton.ts
-function nRe(e, t, n, r = "") {
+function tRe(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">
@@ -80626,7 +80626,7 @@ function nRe(e, t, n, r = "") {
<div class="entitysection">${o}</div></div></section>`;
}
// src/application/entity.js
-var l5 = {
+var u5 = {
ENTITY_FILTER_KEYS: void 0,
emptyEntityFilters: void 0,
parseEntityFilters: void 0,
@@ -80651,16 +80651,16 @@ var l5 = {
sourceToolButtons: void 0,
application: void 0
};
-function u5() {
+function d5() {
let e = hp(L("#index"));
return e && e.path.endsWith("/*") && e.host.isConnected ? e : null;
}
-function d5(e) {
- l5.entityPageCurrent() && Sp(L("#index"), e);
+function f5(e) {
+ u5.entityPageCurrent() && Sp(L("#index"), e);
}
-function f5() {
+function p5() {
if (Yl.type === "item") return Yl;
- let e = u5();
+ let e = d5();
if (e) {
let { kind: t, name: n, filters: r } = e.props;
return {
@@ -80672,62 +80672,62 @@ function f5() {
}
return Yl;
}
-function p5(e, t, n = u7()) {
- return YRe(n).map(([n, r]) => {
- let i = e === n, a = jj(n, e, t);
+function m5(e, t, n = d7()) {
+ return JRe(n).map(([n, r]) => {
+ let i = e === n, a = Mj(n, e, t);
return {
key: n,
label: r,
pressed: i,
- dir: i && kj(n, t) ? t === "asc" ? "asc" : "desc" : "",
- ariaLabel: a ? `按${r}${a.dir ? kj(a.sort, a.dir) : ""}排序` : ""
+ dir: i && Aj(n, t) ? t === "asc" ? "asc" : "desc" : "",
+ ariaLabel: a ? `按${r}${a.dir ? Aj(a.sort, a.dir) : ""}排序` : ""
};
});
}
-function m5(e, t, n, r = l5.EMPTY_ENTITY_MEDIA, i = {}) {
- return l5.application.route(e, t, n, r, i);
+function h5(e, t, n, r = u5.EMPTY_ENTITY_MEDIA, i = {}) {
+ return u5.application.route(e, t, n, r, i);
}
-function h5() {
- return VLe({
- entityWall: l5.entityPageWall,
- entityCurrent: l5.entityPageCurrent(),
+function g5() {
+ return BLe({
+ entityWall: u5.entityPageWall,
+ entityCurrent: u5.entityPageCurrent(),
indexVisible: !L("#index").hidden,
pathname: location.pathname,
followMedia: $.followMediaView,
statsVisible: !L("#stats").hidden
}, () => [...document.querySelectorAll(".followphotowall")].some((e) => e.getClientRects().length > 0));
}
-function g5() {
- l5.photos.sync();
-}
function _5() {
- h5() ? Ule(pM()) : EM();
+ u5.photos.sync();
+}
+function v5() {
+ g5() ? Hle(mM()) : DM();
}
-function rRe(e) {
- l5.photos.setSize(e);
+function nRe(e) {
+ u5.photos.setSize(e);
}
-var v5 = RLe({
+var y5 = LLe({
request: (e) => Tn("/api/reveal", {
method: "POST",
body: JSON.stringify({ id: e })
}),
- success: () => k8.toast({ text: "已在资源管理器中显示" }),
- failureText: (e) => l5.sourceHint(e instanceof Error ? e.message : String(e))
+ success: () => A8.toast({ text: "已在资源管理器中显示" }),
+ failureText: (e) => u5.sourceHint(e instanceof Error ? e.message : String(e))
});
-async function y5(e) {
+async function b5(e) {
let t = { textContent: "" };
- return await v5(e, t), t.textContent;
+ return await y5(e, t), t.textContent;
}
-async function iRe(e) {
+async function rRe(e) {
let t = { textContent: "" }, n = [];
- return await b5(e, t, (e) => {
+ return await x5(e, t, (e) => {
e.items && (n = e.items.map((e) => e.id));
}), {
text: t.textContent,
removed: n
};
}
-async function b5(e, t, n) {
+async function x5(e, t, n) {
t.textContent = "正在核对目录…";
try {
let r = await Tn("/api/purge-missing", {
@@ -80735,12 +80735,12 @@ async function b5(e, t, n) {
body: JSON.stringify({ id: e })
});
if (r.ok === !1) {
- t.textContent = l5.sourceHint(r.error);
+ t.textContent = u5.sourceHint(r.error);
return;
}
- if (t.textContent = r.removed ? `${l5.syncedText(r)}(核对 ${r.checked} 项${r.unreadable ? `,${r.unreadable} 项未能读取` : ""})` : r.unreadable ? `目录有 ${r.unreadable} 项暂时无法读取,本次未改动` : `目录内 ${r.checked} 项都还在,无需改动`, r.removed) {
+ if (t.textContent = r.removed ? `${u5.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), k8.actionReceipt(l5.syncedText(r), { undo: e.length ? async () => {
+ n && n(r), A8.actionReceipt(u5.syncedText(r), { undo: e.length ? async () => {
await Tn("/api/batch", {
method: "POST",
body: JSON.stringify({
@@ -80752,22 +80752,22 @@ async function b5(e, t, n) {
restored: e.length
});
} : null });
- } else k8.actionReceipt("目录核对完成,无需改动");
+ } else A8.actionReceipt("目录核对完成,无需改动");
} catch (e) {
- t.textContent = l5.sourceHint(e.message), k8.actionFailure("核对目录", e);
+ t.textContent = u5.sourceHint(e.message), A8.actionFailure("核对目录", e);
}
}
-function aRe(e) {
- return `<div class="srctools">${l5.sourceToolButtons(e)}
+function iRe(e) {
+ return `<div class="srctools">${u5.sourceToolButtons(e)}
<span class="srcstate" aria-live="polite"></span></div>`;
}
-function oRe(e, t) {
+function aRe(e, t) {
let n = e.querySelector(".srcstate");
if (!n) return;
let r = e.querySelector("[data-reveal]"), i = e.querySelector("[data-sync]");
- r && G8.handler(r, "onclick", () => v5(Number(r.dataset.reveal), n, { button: r })), i && G8.handler(i, "onclick", () => b5(Number(i.dataset.sync), n, t));
+ r && K8.handler(r, "onclick", () => y5(Number(r.dataset.reveal), n, { button: r })), i && K8.handler(i, "onclick", () => x5(Number(i.dataset.sync), n, t));
}
-async function sRe(e, t) {
+async function oRe(e, t) {
let n = cl({
title: "添加别名",
description: "图库按名字查找图片,添加别名可能找到更多备选图片;也可以将别名设为统一显示的名称。",
@@ -80779,9 +80779,9 @@ async function sRe(e, t) {
confirmDisabled: !0,
onConfirm: () => t({ alias: r.value.trim() })
}), r = n.dialog.querySelector("[name=alias]");
- G8.handler(r, "oninput", () => {
+ K8.handler(r, "oninput", () => {
n.confirmButton.disabled = !r.value.trim();
- }), n.dialog.querySelectorAll("[data-alias-drop]").forEach((e) => G8.handler(e, "onclick", async () => {
+ }), n.dialog.querySelectorAll("[data-alias-drop]").forEach((e) => K8.handler(e, "onclick", async () => {
let r = e.dataset.aliasDrop;
n.close();
try {
@@ -80790,54 +80790,54 @@ async function sRe(e, t) {
remove: !0
});
} catch (e) {
- k8.actionFailure("撤销别名", e);
+ A8.actionFailure("撤销别名", e);
return;
}
- k8.actionReceipt(`已撤销别名 ${r}`, { undo: async () => {
+ A8.actionReceipt(`已撤销别名 ${r}`, { undo: async () => {
await t({ alias: r });
} });
}));
let { confirmed: i, result: a } = await n.done;
- i && (a?.added ? k8.actionReceipt(`已添加别名 ${a.alias}`, { undo: async () => {
+ i && (a?.added ? A8.actionReceipt(`已添加别名 ${a.alias}`, { undo: async () => {
await t({
alias: a.alias,
remove: !0
});
- } }) : k8.actionReceipt(`${a?.alias} 已经是这份档案中的名字`));
+ } }) : A8.actionReceipt(`${a?.alias} 已经是这份档案中的名字`));
}
-function x5(e, t) {
- let n = ["performer", "studio"].includes(e) && Z8.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>${Ds()}${e === "agency" ? "" : P0(p5(U.sort, U.dir, n), n ? {
+function S5(e, t) {
+ let n = ["performer", "studio"].includes(e) && Q8.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>${Ds()}${e === "agency" ? "" : F0(m5(U.sort, U.dir, n), n ? {
name: "jav-layout",
label: "JAV 卡片版式",
- value: lM(),
- options: iM
- } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${M0}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${M0}>${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}" ${M0}>${z(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = nRe(e, r, e === "agency" ? sc({
+ 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" ${N0}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${N0}>${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}" ${N0}>${z(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = tRe(e, r, e === "agency" ? sc({
kind: "performers",
- layout: L5.peopleIndexLayout()
- }) : PJ("正在读取作品", _M(gM({
+ layout: R5.peopleIndexLayout()
+ }) : FJ("正在读取作品", vM(_M({
active: n,
home: !1,
portrait: !1
}))), i);
- L("#index").firstElementChild?.dataset.skeleton === `entity/${e}` ? S5(e, t) : (L("#index").innerHTML = a, S5(e, t), mc(L("#index")));
+ L("#index").firstElementChild?.dataset.skeleton === `entity/${e}` ? C5(e, t) : (L("#index").innerHTML = a, C5(e, t), mc(L("#index")));
}
-function S5(e, t) {
+function C5(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" && Z8.hasEntityPart(e, t, "costars"), () => n.querySelector(".entityhero")?.insertAdjacentHTML("beforeend", Z8.costarSkeletonFoot())), r(n.querySelector(".feednew"), Z8.hasEntityPart(e, t, "feed"), () => n.querySelector(".entitysection")?.insertAdjacentHTML("beforebegin", Z8.feedNewSkeletonSection())), r(n.querySelector(".entityfacts"), e === "performer" && Z8.hasEntityPart(e, t, "facts"), () => n.querySelector(".entityprofile")?.insertAdjacentHTML("beforeend", Z8.factsSkeleton()));
+ r(n.querySelector(".entityfoot"), e !== "agency" && Q8.hasEntityPart(e, t, "costars"), () => n.querySelector(".entityhero")?.insertAdjacentHTML("beforeend", Q8.costarSkeletonFoot())), r(n.querySelector(".feednew"), Q8.hasEntityPart(e, t, "feed"), () => n.querySelector(".entitysection")?.insertAdjacentHTML("beforebegin", Q8.feedNewSkeletonSection())), r(n.querySelector(".entityfacts"), e === "performer" && Q8.hasEntityPart(e, t, "facts"), () => n.querySelector(".entityprofile")?.insertAdjacentHTML("beforeend", Q8.factsSkeleton()));
}
-function C5(e) {
- let t = Mn[e] || e, n = o6[t] || "条目", r = o6[t] ? `<a class="geist-button primary" href="/${t}">返回${n}列表</a>` : "";
+function w5(e) {
+ let t = Mn[e] || e, n = s6[t] || "条目", r = s6[t] ? `<a class="geist-button primary" href="/${t}">返回${n}列表</a>` : "";
L("#index").innerHTML = Z.emptyState("search-x", `找不到这个${n}`, "名字可能拼错了,或者已经合并到别的名字下;回列表里重新找。", { actions: r });
}
-function w5(e, t) {
- D9(l5.application.fresh(e, t));
+function T5(e, t) {
+ O9(u5.application.fresh(e, t));
}
-function cRe() {
- l5.ENTITY_FILTER_KEYS = [
+function sRe() {
+ u5.ENTITY_FILTER_KEYS = [
"loc",
"creator",
"tag",
@@ -80848,71 +80848,71 @@ function cRe() {
"year",
"sort",
"dir"
- ], l5.emptyEntityFilters = K8, l5.parseEntityFilters = (e) => q8(e, {
+ ], u5.emptyEntityFilters = q8, u5.parseEntityFilters = (e) => J8(e, {
sort: Z.appSettings.defaultSort,
dir: Z.appSettings.defaultSortDirection
- }), l5.entityFilterSearch = J8, l5.cloneBarsContext = (e) => e && e.type === "entity" ? {
+ }), u5.entityFilterSearch = Y8, u5.cloneBarsContext = (e) => e && e.type === "entity" ? {
...e,
filters: { ...e.filters }
- } : e, l5.activeFilterState = () => {
- let e = f5();
+ } : e, u5.activeFilterState = () => {
+ let e = p5();
return e.type === "home" ? U : e.filters;
}, L("#q").value = U.q, X.rememberSearchValue();
}
-function lRe() {
- l5.entityPageView = "", l5.entityPageWall = !1, l5.entityPageRevision = 0, l5.entityPageCurrent = () => !!u5(), l5.entityPageLive = (e, t) => {
- let n = u5();
+function cRe() {
+ u5.entityPageView = "", u5.entityPageWall = !1, u5.entityPageRevision = 0, u5.entityPageCurrent = () => !!d5(), u5.entityPageLive = (e, t) => {
+ let n = d5();
return !!n && !L("#index").hidden && n.props.kind === e && n.props.name === t;
- }, l5.EMPTY_ENTITY_MEDIA = {
+ }, u5.EMPTY_ENTITY_MEDIA = {
media: "videos",
set: 0
- }, l5.parseMediaView = Y8, l5.entityViewSearch = X8, l5.entityBodyCanLoadMore = () => !L("#index").hidden && L("#stats").hidden, l5.entityBodySkeleton = () => $7(), l5.entityPageHelpers = {
+ }, u5.parseMediaView = X8, u5.entityViewSearch = Z8, u5.entityBodyCanLoadMore = () => !L("#index").hidden && L("#stats").hidden, u5.entityBodySkeleton = () => e9(), u5.entityPageHelpers = {
wireDrag: (e) => {
- e && l9(e);
+ e && u9(e);
},
wireScroller: (e) => {
e && jc(e);
},
- wireFeedRow: (e) => i5(e),
- feedRowHtml: r5,
- receipt: (e, t) => k8.actionReceipt(e, t),
- failure: (e, t) => k8.actionFailure(e, t),
- aliasForm: (e, t) => sRe(e, t),
- sourceToolsHtml: (e) => aRe(e),
- wireSourceTools: (e, t) => oRe(e, t),
- comboItems: (e) => H7(e),
- sortKeys: (e, t, n) => p5(e, t, n)
- }, l5.entityFollowActions = {
+ wireFeedRow: (e) => a5(e),
+ feedRowHtml: i5,
+ receipt: (e, t) => A8.actionReceipt(e, t),
+ failure: (e, t) => A8.actionFailure(e, t),
+ aliasForm: (e, t) => oRe(e, t),
+ sourceToolsHtml: (e) => iRe(e),
+ wireSourceTools: (e, t) => aRe(e, t),
+ comboItems: (e) => U7(e),
+ sortKeys: (e, t, n) => m5(e, t, n)
+ }, u5.entityFollowActions = {
...$.followFeedActions,
route: () => {},
shuffle: () => {},
loaded: () => {},
toggleSelection: () => {}
- }, l5.SOURCE_HINTS = {
+ }, u5.SOURCE_HINTS = {
"source offline": "媒体库无法访问,暂时无法核对文件;恢复连接后重试",
"source not mapped": "本机没有映射这个来源的盘符",
"file missing": "找不到源文件;点击右侧的扫描按钮,重新检查目录并更新数据库记录",
"unsupported platform": "当前服务端系统不支持直接定位文件",
"reveal failed": "打开文件管理器失败,请重试"
- }, l5.sourceHint = (e) => l5.SOURCE_HINTS[e] || e, l5.syncedText = (e) => [
+ }, u5.sourceHint = (e) => u5.SOURCE_HINTS[e] || e, u5.syncedText = (e) => [
e.trashed ? `已把 ${e.trashed} 项移入回收站` : "",
e.vanished ? `${e.vanished} 项带个人记录,已标为已消失` : "",
e.reattached ? `${e.reattached} 项的记录已接到库里的另一个版本` : ""
- ].filter(Boolean).join(","), l5.sourceToolButtons = (e) => `
+ ].filter(Boolean).join(","), u5.sourceToolButtons = (e) => `
<button type="button" data-reveal="${e}" title="在文件管理器里打开源文件所在目录"
aria-label="定位源文件">${R("folder-open")}</button>
<button type="button" data-sync="${e}" title="核对该目录:磁盘上已删除的移入 Peach 回收站,带个人记录的标为已消失"
aria-label="同步删除">${R("folder-sync")}</button>`;
}
-function uRe() {
- l5.application = KLe({
+function lRe() {
+ u5.application = GLe({
controller: {
context: () => {
- let e = f5();
+ let e = p5();
return e.type === "entity" ? e : null;
},
- live: (e, t) => l5.entityPageLive(e, t),
- current: () => l5.entityPageCurrent(),
+ live: (e, t) => u5.entityPageLive(e, t),
+ current: () => u5.entityPageCurrent(),
route: (e, t = !1) => Q.route(e, t),
suffix: () => location.search + location.hash,
restoreHomeContext: () => W({ barsContext: {
@@ -80920,92 +80920,92 @@ function uRe() {
filters: U
} }),
releaseBodyPreviews: () => Pl(L("#index [data-entity-body]")),
- push: d5,
+ push: f5,
state: () => ({
seed: String(U.seed || ""),
jav: U.jav === "1"
}),
preferences: () => ({
- revision: l5.entityPageRevision,
- feedRevision: Z8.feedRevision,
- photoSize: pM(),
- photoLayout: mM(),
- photoLayouts: oM,
+ revision: u5.entityPageRevision,
+ feedRevision: Q8.feedRevision,
+ photoSize: mM(),
+ photoLayout: hM(),
+ photoLayouts: sM,
followImagesOnly: !!Z.appSettings.followImagesOnly,
- javLayout: lM(),
- javLayouts: iM,
+ javLayout: uM(),
+ javLayouts: aM,
states: X.VIEW_PILLS,
- peopleLayout: L5.peopleIndexLayout(),
- layout: Q7(),
+ peopleLayout: R5.peopleIndexLayout(),
+ layout: $7(),
selectMode: $l,
selected: new Set(Zl),
seekSeconds: Z.appSettings.seekSeconds,
groupCollapse: Z.appSettings.groupCollapse,
- wireDrag: l9,
- skeletonHtml: l5.entityBodySkeleton,
- canLoadMore: l5.entityBodyCanLoadMore,
+ wireDrag: u9,
+ skeletonHtml: u5.entityBodySkeleton,
+ canLoadMore: u5.entityBodyCanLoadMore,
follow: {
helpers: $.followFeedHelpers,
- actions: l5.entityFollowActions
+ actions: u5.entityFollowActions
}
}),
- changeFilter: k7,
- rollSeed: () => k8.rollSeed(),
+ changeFilter: A7,
+ rollSeed: () => A8.rollSeed(),
writeSeed: (e) => {
U.seed = e, Cu();
},
- setJavLayout: p7,
- javLayout: lM,
- setPhotoLayout: yM,
- syncPhotoWalls: g5,
- openEntity: w5,
- photoViewActive: h5,
+ setJavLayout: m7,
+ javLayout: uM,
+ setPhotoLayout: bM,
+ syncPhotoWalls: _5,
+ openEntity: T5,
+ photoViewActive: g5,
recordPainted: (e, t) => {
- l5.entityPageView = e, l5.entityPageWall = t;
+ u5.entityPageView = e, u5.entityPageWall = t;
},
- syncDensity: _5,
- scheduleSticky: b7,
+ syncDensity: v5,
+ scheduleSticky: x7,
releasePage: () => Cp(L("#index")),
- showMissing: C5,
- dropBars: F8
+ showMissing: w5,
+ dropBars: I8
},
loading: {
- shapesReady: (e, t) => Z8.hasEntityShape(e, t),
- waitShapes: W5,
- paintSkeleton: x5,
+ shapesReady: (e, t) => Q8.hasEntityShape(e, t),
+ waitShapes: G5,
+ paintSkeleton: S5,
resetView: () => {
- W({ detailReturnBarsContext: null }), l5.entityPageView = "", l5.entityPageWall = !1;
+ W({ detailReturnBarsContext: null }), u5.entityPageView = "", u5.entityPageWall = !1;
},
- loadShapes: $8,
- syncParts: S5
+ loadShapes: e5,
+ syncParts: C5
},
photos: {
preferences: () => ({
- size: pM(),
- layout: mM(),
+ size: mM(),
+ layout: hM(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
walls: () => document.querySelectorAll(".followphotowall"),
- pushEntity: d5,
- pushFollow: M9,
- syncDensity: _5,
- storeSize: Vle
+ pushEntity: f5,
+ pushFollow: N9,
+ syncDensity: v5,
+ storeSize: Ble
},
- helpers: l5.entityPageHelpers,
+ helpers: u5.entityPageHelpers,
actions: {
- toggleTag: V7,
- openFollowAuthor: B5,
+ toggleTag: H7,
+ openFollowAuthor: V5,
javContext: (e) => W({ entityJavLayout: !!e })
},
sortPreference: () => ({
sort: Z.appSettings.defaultSort,
dir: Z.appSettings.defaultSortDirection
})
- }), l5.photos = l5.application.photos, l5.entityPageHelpers = l5.application.helpers;
+ }), u5.photos = u5.application.photos, u5.entityPageHelpers = u5.application.helpers;
}
// src/application/playlists.js
-var T5 = { playlistWrite: void 0 };
-function dRe(e, t) {
+var E5 = { playlistWrite: void 0 };
+function uRe(e, t) {
e === "tag" ? (W({ state: {
...U,
tag: t,
@@ -81015,17 +81015,17 @@ function dRe(e, t) {
q: "",
state: "",
orient: ""
- } }), X.clearSearchField(), Q.route(S7()), Y5(), z7()) : w5(e, t);
+ } }), X.clearSearchField(), Q.route(C7()), X5(), B7()) : T5(e, t);
}
-function E5(e = "") {
+function D5(e = "") {
return `<label class="modalfield"><span>名称</span><input class="geist-input" name="name"
maxlength="80" placeholder="输入名称" value="${z(e)}"></label>`;
}
-async function fRe({ title: e, count: t, save: n }) {
+async function dRe({ title: e, count: t, save: n }) {
let r = cl({
title: "保存为播放列表",
description: `这个 Mix 的 ${t} 个视频会存成一份可以继续播放的列表。`,
- body: E5(e),
+ body: D5(e),
confirmLabel: "保存为播放列表",
onConfirm: () => {
let e = r.dialog.querySelector("[name=\"name\"]").value.trim();
@@ -81035,28 +81035,28 @@ async function fRe({ title: e, count: t, save: n }) {
});
r.dialog.querySelector("[name=\"name\"]").select();
let { confirmed: i, result: a } = await r.done;
- i && (await h9(a.id, a.current_asset_id, !0), k8.actionReceipt("已保存为播放列表", { undo: async () => {
- await T5.playlistWrite({
+ i && (await g9(a.id, a.current_asset_id, !0), A8.actionReceipt("已保存为播放列表", { undo: async () => {
+ await E5.playlistWrite({
action: "delete",
id: a.id
- }), D9("/playlists");
+ }), O9("/playlists");
} }));
}
-async function pRe(e) {
+async function fRe(e) {
let t = ((await Tn("/api/playlists")).items || []).map((e) => `<label class="pickrow">${Ks(`data-pick-playlist="${e.id}"`)}
<span class="pickrowtext"><b>${z(e.name)}</b><small>${e.item_count} 个视频</small></span></label>`).join(""), n = cl({
title: "加入播放列表",
description: "勾选要加入的列表,或者填个名称新建一份。",
- body: E5() + (t ? `<div class="picklist" role="group" aria-label="已有播放列表">${t}</div>` : Bs("还没有播放列表,填个名称就能新建一份。", { size: "small" })),
+ body: D5() + (t ? `<div class="picklist" role="group" aria-label="已有播放列表">${t}</div>` : Bs("还没有播放列表,填个名称就能新建一份。", { 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 T5.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 E5.playlistWrite({
action: "create",
name: t,
asset_ids: [e.id]
})).playlist : null;
- for (let t of r) await T5.playlistWrite({
+ for (let t of r) await E5.playlistWrite({
action: "add",
id: t,
asset_ids: [e.id]
@@ -81070,46 +81070,46 @@ async function pRe(e) {
let e = n.dialog.querySelector("[name=\"name\"]").value.trim();
n.confirmButton.disabled = !e && !n.dialog.querySelector("[data-pick-playlist]:checked");
};
- G8.listen(n.dialog, "input", r), G8.listen(n.dialog, "change", r);
+ K8.listen(n.dialog, "input", r), K8.listen(n.dialog, "change", r);
let { confirmed: i, result: a } = await n.done;
if (!i) return;
let o = +!!a.created + a.added.length;
- k8.actionReceipt(`已加入 ${o} 个播放列表`, { undo: async () => {
- for (let t of a.added) await T5.playlistWrite({
+ A8.actionReceipt(`已加入 ${o} 个播放列表`, { undo: async () => {
+ for (let t of a.added) await E5.playlistWrite({
action: "remove",
id: t,
asset_id: e.id
});
- a.created && await T5.playlistWrite({
+ a.created && await E5.playlistWrite({
action: "delete",
id: a.created.id
});
} });
}
-function D5() {
- Pl(), p9(!1), J5();
+function O5() {
+ Pl(), m9(!1), Y5();
let e = hp(L("#stats"));
- e?.path !== "/playlists" || !e.host.isConnected ? W({ pageOpens: mu + 1 }) : (q5({ manage: !1 }), W({ playlistsRevision: bu + 1 }));
+ e?.path !== "/playlists" || !e.host.isConnected ? W({ pageOpens: mu + 1 }) : (J5({ manage: !1 }), W({ playlistsRevision: bu + 1 }));
}
-function mRe(e) {
+function pRe(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 O5(e) {
+function k5(e) {
W({ configurationRequestedSection: e }), Q.navigatePath(Ff(e));
}
-function hRe() {
- T5.playlistWrite = (e) => Tn("/api/playlist", {
+function mRe() {
+ E5.playlistWrite = (e) => Tn("/api/playlist", {
method: "POST",
body: JSON.stringify(e)
});
}
// src/react/catalog-grid/selection-controller.ts
-function k5(e) {
+function A5(e) {
return e === "/follow" ? "follow" : e === "/junk-files" ? "junk" : "catalog";
}
-function A5(e, t, n, r, i = !1) {
+function j5(e, t, n, r, i = !1) {
return i && (e.selected.clear(), e.followSelected.clear()), {
selectMode: r,
selectSurface: r ? t.selectMode ? t.selectSurface : n : "",
@@ -81117,23 +81117,23 @@ function A5(e, t, n, r, i = !1) {
followLastSelectedId: i ? null : t.followLastSelectedId
};
}
-function j5(e, t, n, r, i, a = !1) {
- let o = n === "follow", s = _Y(o ? e.followSelected : e.selected, r, o ? t.followLastSelectedId : t.lastSelectedId, i, a);
+function M5(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);
return {
- ...A5(e, t, n, !0),
+ ...j5(e, t, n, !0),
...o ? { followLastSelectedId: s } : { lastSelectedId: s }
};
}
-function gRe(e, t, n, r) {
- let i = k5(t);
+function hRe(e, t, n, r) {
+ let i = A5(t);
return {
count: (i === "follow" ? e.followSelected : e.selected).size,
context: i === "catalog" && r === "trash" ? "trash" : i,
- junkDismissed: NU(n).view === "dismissed"
+ junkDismissed: PU(n).view === "dismissed"
};
}
// src/application/selection.js
-var M5 = {
+var N5 = {
batchDockProps: void 0,
trashCount: void 0,
currentSelectSurface: void 0,
@@ -81141,43 +81141,43 @@ var M5 = {
BATCH_RUNNERS: void 0,
coverRecheck: void 0
};
-function N5() {
- X7({
+function P5() {
+ Z7({
selected: new Set(Zl),
selectMode: $l
- }), d5({
+ }), f5({
selected: new Set(Zl),
selectMode: $l
- }), M9({
+ }), N9({
selected: new Set(Ql),
selectMode: $l
- }), M5.batchDockProps = ERe(), E8() && (E8().render(M5.batchDockProps), Z.syncGlassOptics());
+ }), N5.batchDockProps = TRe(), D8() && (D8().render(N5.batchDockProps), Z.syncGlassOptics());
}
-function P5(e, t = !1) {
- W(A5({
+function F5(e, t = !1) {
+ W(j5({
selected: Zl,
followSelected: Ql
- }, I5(), k5(location.pathname), !!e, t)), document.body.classList.toggle("select-mode", $l), $l && Pl(), L("#selectMode").setAttribute("aria-pressed", String($l)), N5();
+ }, L5(), A5(location.pathname), !!e, t)), document.body.classList.toggle("select-mode", $l), $l && Pl(), L("#selectMode").setAttribute("aria-pressed", String($l)), P5();
}
-function _Re() {
- return [...V5.gridCards()].map((e) => +e.dataset.id);
+function gRe() {
+ return [...H5.gridCards()].map((e) => +e.dataset.id);
}
-function F5(e, t = !1) {
- W(j5({
+function I5(e, t = !1) {
+ W(M5({
selected: Zl,
followSelected: Ql
- }, I5(), k5(location.pathname), _Re(), e, t)), P5(!0);
+ }, L5(), A5(location.pathname), gRe(), e, t)), F5(!0);
}
-function vRe() {
+function _Re() {
return [...document.querySelectorAll("[data-follow-list] > [data-follow-item]")].map((e) => +e.dataset.followItem);
}
-function yRe(e, t = !1) {
- W(j5({
+function vRe(e, t = !1) {
+ W(M5({
selected: Zl,
followSelected: Ql
- }, I5(), "follow", vRe(), e, t)), P5(!0);
+ }, L5(), "follow", _Re(), e, t)), F5(!0);
}
-async function bRe(e, t) {
+async function yRe(e, t) {
let n = {
like: "喜欢",
seen: "标为看过",
@@ -81209,9 +81209,9 @@ async function bRe(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"));
- P5(!1, !0), await h7();
+ F5(!1, !0), await g7();
let r = e === "dispose" ? "restore" : e === "restore" ? "dispose" : null;
- k8.actionReceipt(`已${n[e]} ${i.length} 项`, { undo: r ? async () => {
+ A8.actionReceipt(`已${n[e]} ${i.length} 项`, { undo: r ? async () => {
if (r === "dispose" && t.restored_reasons) for (let e of [
null,
"manual",
@@ -81236,23 +81236,23 @@ async function bRe(e, t) {
operation: r
})
});
- await h7();
+ await g7();
} : null });
} catch (e) {
throw Zc(t, !1), e;
} finally {
- Zc(t, !1), N5();
+ Zc(t, !1), P5();
}
}
});
}
-async function xRe() {
+async function bRe() {
let e = [...Zl];
if (!e.length) return;
let t = cl({
title: "判定产地",
description: `选中的 ${e.length} 项归为同一个产地。判定之后,刮削和自动推断不再改写产地。`,
- body: "<div class=\"chips\" role=\"group\" aria-label=\"产地\">" + M5.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=\"产地\">" + N5.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,
@@ -81272,13 +81272,13 @@ async function xRe() {
};
}
});
- t.dialog.querySelectorAll("[data-region-pick]").forEach((e) => G8.handler(e, "onclick", () => {
+ t.dialog.querySelectorAll("[data-region-pick]").forEach((e) => K8.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 && (P5(!1, !0), await h7(), k8.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));
+ n && (F5(!1, !0), await g7(), A8.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));
}
-async function SRe(e, t) {
+async function xRe(e, t) {
let n = [...Ql];
if (!n.length) return;
let r = {
@@ -81304,16 +81304,16 @@ async function SRe(e, t) {
items: n,
to: e
})
- }), P5(!1, !0), location.pathname === "/follow" && W({ pageOpens: mu + 1 }), k8.actionReceipt(`已${r[e]} ${n.length} 项`);
+ }), F5(!1, !0), location.pathname === "/follow" && W({ pageOpens: mu + 1 }), A8.actionReceipt(`已${r[e]} ${n.length} 项`);
} catch (e) {
throw Zc(t, !1), e;
} finally {
- Zc(t, !1), N5();
+ Zc(t, !1), P5();
}
}
});
}
-async function CRe(e, t) {
+async function SRe(e, t) {
let n = [...Zl];
if (!n.length) return;
let r = {
@@ -81340,68 +81340,68 @@ async function CRe(e, t) {
operation: e,
...e === "dispose" ? { disposal_reason: "junk" } : {}
})
- }), P5(!1, !0), await W7();
+ }), F5(!1, !0), await G7();
let t = e === "dispose" ? "restore" : e === "dismiss-junk" ? "reconsider-junk" : e === "reconsider-junk" ? "dismiss-junk" : null;
- k8.actionReceipt(`已批量${r[e]}:${n.length} 项`, { undo: t ? async () => {
+ A8.actionReceipt(`已批量${r[e]}:${n.length} 项`, { undo: t ? async () => {
await Tn("/api/batch", {
method: "POST",
body: JSON.stringify({
ids: n,
operation: t
})
- }), await W7();
+ }), await G7();
} : null });
} catch (e) {
throw Zc(t, !1), e;
} finally {
- Zc(t, !1), N5();
+ Zc(t, !1), P5();
}
}
});
}
-function wRe() {
- yLe({
+function CRe() {
+ vLe({
root: L("[data-batch-dock]"),
run: (e, t, n) => {
- M5.BATCH_RUNNERS[e]?.(t, n);
+ N5.BATCH_RUNNERS[e]?.(t, n);
}
}).then((e) => {
- e.render(M5.batchDockProps), Z.syncGlassOptics();
+ e.render(N5.batchDockProps), Z.syncGlassOptics();
}).catch(() => {});
}
-function TRe() {
- M5.batchDockProps = {
+function wRe() {
+ N5.batchDockProps = {
count: 0,
context: "catalog",
junkDismissed: !1
- }, M5.trashCount = null, M5.currentSelectSurface = () => k5(location.pathname), G8.handler(L("#selectMode"), "onclick", () => P5(!$l, !!$l)), M5.REGION_CHOICES = [
+ }, N5.trashCount = null, N5.currentSelectSurface = () => A5(location.pathname), K8.handler(L("#selectMode"), "onclick", () => F5(!$l, !!$l)), N5.REGION_CHOICES = [
["jp", "日本"],
["kr", "韩国"],
["cn", "国产"],
["west", "欧美"],
["other", "其他"],
["none", "撤回判定"]
- ], M5.BATCH_RUNNERS = {
- batch: bRe,
- region: xRe,
- follow: SRe,
- junk: CRe,
- clear: () => P5(!1, !0)
- }, G8.handler(L("#density"), "onclick", () => {
- h5() ? rRe(pM() === "big" ? "small" : "big") : Hle();
- }), EM(), Ml({
+ ], N5.BATCH_RUNNERS = {
+ batch: yRe,
+ region: bRe,
+ follow: xRe,
+ junk: SRe,
+ clear: () => F5(!1, !0)
+ }, K8.handler(L("#density"), "onclick", () => {
+ g5() ? nRe(mM() === "big" ? "small" : "big") : Vle();
+ }), DM(), Ml({
selecting: () => $l,
- censored: () => a9(),
+ censored: () => o9(),
delaySeconds: () => Z.appSettings.hoverDelaySeconds
- }), G8.listen(window, "pagehide", () => Pl()), G8.listen(document, "visibilitychange", () => {
+ }), K8.listen(window, "pagehide", () => Pl()), K8.listen(document, "visibilitychange", () => {
document.hidden && Pl();
- }), kl(), M5.coverRecheck = 0, G8.listen(window, "resize", () => {
- El(L("#index")), clearTimeout(M5.coverRecheck), M5.coverRecheck = G8.delay(() => L("#index").querySelectorAll("img.cover").forEach((e) => {
+ }), kl(), N5.coverRecheck = 0, K8.listen(window, "resize", () => {
+ El(L("#index")), clearTimeout(N5.coverRecheck), N5.coverRecheck = K8.delay(() => L("#index").querySelectorAll("img.cover").forEach((e) => {
e.complete && _l(e);
}), 200);
}, { passive: !0 });
}
-function I5() {
+function L5() {
return {
selectMode: $l,
selectSurface: nu,
@@ -81409,73 +81409,73 @@ function I5() {
followLastSelectedId: tu
};
}
-function ERe() {
- return gRe({
+function TRe() {
+ return hRe({
selected: Zl,
followSelected: Ql
}, location.pathname, location.search, U.state);
}
// src/application/index.js
-var L5 = {
+var R5 = {
peopleIndexLayout: void 0,
personAvatar: void 0
};
-function DRe() {
+function ERe() {
return Z.appSettings.followLayout === "table" ? "table" : "default";
}
-function ORe() {
- return kZ(location.search);
+function DRe() {
+ return AZ(location.search);
}
-function kRe(e) {
- return AZ(e);
+function ORe(e) {
+ return jZ(e);
}
-function ARe(e) {
- Q.route(kRe(e));
+function kRe(e) {
+ Q.route(ORe(e));
}
-function jRe(e = "") {
- return jZ(location.search, e);
+function ARe(e = "") {
+ return MZ(location.search, e);
}
-function MRe(e) {
- return U8(e);
+function jRe(e) {
+ return W8(e);
}
-function R5(e) {
- return V8(e);
+function z5(e) {
+ return H8(e);
}
-function z5() {
- L("#stats").hidden = !0, L("#index").hidden = !1, K7(), X.hideCatalogCombo(), L("#count").textContent = "", L("#loadSentinel").hidden = !0;
+function B5() {
+ L("#stats").hidden = !0, L("#index").hidden = !1, q7(), X.hideCatalogCombo(), L("#count").textContent = "", L("#loadSentinel").hidden = !0;
}
-function NRe(e, t) {
+function MRe(e, t) {
W({ state: {
...U,
state: "",
tag: e.join(","),
tag_match: t
- } }), P5(!1, !1), Q.route(S7()), Y5(), C9(), z7();
+ } }), F5(!1, !1), Q.route(C7()), X5(), w9(), B7();
}
-function B5(e) {
- L5.controller.openFollowAuthor(e);
+function V5(e) {
+ R5.controller.openFollowAuthor(e);
}
-function PRe(e) {
- L5.controller.openFollowTag(e);
+function NRe(e) {
+ R5.controller.openFollowTag(e);
}
-function FRe() {
- $.FOLLOW_MANAGE_TABS = OZ, G8.listen(document, "click", (e) => {
- e.target.closest?.("[data-empty-settings]") && O5("媒体库与入库");
- }), L5.peopleIndexLayout = () => s6(Z.appSettings.peopleLayout), L5.personAvatar = H8;
+function PRe() {
+ $.FOLLOW_MANAGE_TABS = kZ, K8.listen(document, "click", (e) => {
+ e.target.closest?.("[data-empty-settings]") && k5("媒体库与入库");
+ }), R5.peopleIndexLayout = () => c6(Z.appSettings.peopleLayout), R5.personAvatar = U8;
}
-function IRe() {
- L5.controller = ILe({
+function FRe() {
+ R5.controller = FLe({
route: Q.route,
- followView: k9,
- adoptFollowView: A9,
+ followView: A9,
+ adoptFollowView: j9,
hideIndex: () => {
L("#index").hidden = !0;
},
- openPage: D9
+ openPage: O9
});
}
// src/application/loading.js
-var V5 = {
+var H5 = {
setGridCards: void 0,
gridCards: void 0,
managementPlaceholder: void 0,
@@ -81484,58 +81484,58 @@ var V5 = {
ENTITY_SHAPES_WAIT: void 0,
syncPageTitle: void 0
};
-function H5(e = "正在读取作品") {
+function U5(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 = Sye(NU(location.search)), mc(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", U && j7({
+ 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 = xye(PU(location.search)), mc(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", U && M7({
count: null,
- ...P7()
- })), L("#loadSentinel").hidden = !0, Y7()) return;
- let r = L("#grid"), i = $7(e), a = r.querySelector(".catalog-skeleton");
- (a?.dataset.skeleton !== F2(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== e9()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : V5.setGridCards(i), mc(L("#grid")));
-}
-function U5() {
- L("#catalogFilter").style.display = "none", A7();
+ ...F7()
+ })), L("#loadSentinel").hidden = !0, X7()) return;
+ let r = L("#grid"), i = e9(e), a = r.querySelector(".catalog-skeleton");
+ (a?.dataset.skeleton !== I2(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== t9()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : H5.setGridCards(i), mc(L("#grid")));
}
function W5() {
+ L("#catalogFilter").style.display = "none", j7();
+}
+function G5() {
let e = new Promise((e) => {
- let t = V5.ENTITY_SHAPES_WAIT, n = performance.now(), r = () => {
+ let t = H5.ENTITY_SHAPES_WAIT, n = performance.now(), r = () => {
let i = performance.now();
- t -= Math.min(i - n, 50), n = i, t > 0 ? G8.delay(r, Math.min(t, 50)) : e();
+ t -= Math.min(i - n, 50), n = i, t > 0 ? K8.delay(r, Math.min(t, 50)) : e();
};
- G8.delay(r, 50);
+ K8.delay(r, 50);
});
- return Promise.race([V5.entityShapesReady ||= $8(), e]);
+ return Promise.race([H5.entityShapesReady ||= e5(), e]);
}
-function LRe() {
+function IRe() {
let e = decodeURIComponent(location.pathname);
- if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), U5(), lbe();
- else if (/^\/assets\/\d+$/.test(e)) U5();
- else if (e === "/settings" || /^\/settings\/(appearance|playback|jav|search|content)$/.test(e) || e.startsWith("/posts/") || e.startsWith("/works/")) U5();
- else if (e === "/junk-files") H5("正在读取垃圾文件");
- else if (e === "/jav" && aU(new URLSearchParams(location.search).get("tab")) === "library") H5("正在读取馆藏");
+ if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), W5(), cbe();
+ else if (/^\/assets\/\d+$/.test(e)) W5();
+ else if (e === "/settings" || /^\/settings\/(appearance|playback|jav|search|content)$/.test(e) || e.startsWith("/posts/") || e.startsWith("/works/")) W5();
+ else if (e === "/junk-files") U5("正在读取垃圾文件");
+ else if (e === "/jav" && oU(new URLSearchParams(location.search).get("tab")) === "library") U5("正在读取馆藏");
else if (Q.managedPagePath(e)) {
- U5();
+ W5();
let t = L("#stats");
- t.hidden = !1, K7(), t.innerHTML = e.startsWith("/follow") && e !== "/subscriptions" ? $.followSkeletonHtml("正在读取关注内容") : V5.managementPlaceholder(e), mc(t);
- } else if (/^\/(performers|creators|studios|agencies|tags)$/.test(e)) U5(), z5(), u6(L("#index"), c6(e.slice(1), location.search), L5.peopleIndexLayout());
+ t.hidden = !1, q7(), t.innerHTML = e.startsWith("/follow") && e !== "/subscriptions" ? $.followSkeletonHtml("正在读取关注内容") : H5.managementPlaceholder(e), mc(t);
+ } else if (/^\/(performers|creators|studios|agencies|tags)$/.test(e)) W5(), B5(), d6(L("#index"), l6(e.slice(1), location.search), R5.peopleIndexLayout());
else if (/^\/(?:performers|creators|studios|agencies|series|tags)\//.test(e)) {
- U5(), L("#index").hidden = !1, K7();
+ W5(), L("#index").hidden = !1, q7();
let t = Nn[e.split("/")[1]], n = e.split("/").slice(2).join("/");
- (Z8.hasEntityShape(t, n) ? Promise.resolve() : W5()).then(() => {
- L("#index").firstElementChild || decodeURIComponent(location.pathname) !== e || (x5(t, n), mc(L("#index")));
+ (Q8.hasEntityShape(t, n) ? Promise.resolve() : G5()).then(() => {
+ L("#index").firstElementChild || decodeURIComponent(location.pathname) !== e || (S5(t, n), mc(L("#index")));
});
- } else Q.routeMeta(e) ? H5() : (K7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0);
+ } else Q.routeMeta(e) ? U5() : (q7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0);
}
-function RRe() {
- $.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => N2(t, {
+function LRe() {
+ $.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => P2(t, {
cards: !0,
className: "follow-content-skeleton postercard-skeleton",
gridClass: e === "images" ? "followlist followphotowall" : "",
- gridSize: pM()
+ gridSize: mM()
}), $.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>
@@ -81543,37 +81543,37 @@ function RRe() {
<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 = Us(Hs), V5.setGridCards = (e) => ac(L("#grid"), () => {
+ ${$.followContentSkeletonHtml(void 0, e)}</div></div>`, L("#loadSentinel").innerHTML = Us(Hs), H5.setGridCards = (e) => ac(L("#grid"), () => {
L("#grid").innerHTML = `<div class="grid">${e}</div>`;
- }), V5.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), V5.managementPlaceholder = (e) => P2(e, {
- followLayout: DRe(),
+ }), H5.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), H5.managementPlaceholder = (e) => F2(e, {
+ followLayout: ERe(),
...(({ sort: e, dir: t, tab: n }) => ({
followSort: e,
followDir: t,
followTab: n
- }))(ORe())
- }), V5.wantsDiscoveryBars = () => L("#catalogFilter").style.display !== "none", V5.entityShapesReady = null, V5.ENTITY_SHAPES_WAIT = 400, V5.syncPageTitle = (e) => {
+ }))(DRe())
+ }), H5.wantsDiscoveryBars = () => L("#catalogFilter").style.display !== "none", H5.entityShapesReady = null, H5.ENTITY_SHAPES_WAIT = 400, H5.syncPageTitle = (e) => {
let t = new URL(e, location.origin), n = tp(decodeURIComponent(t.pathname))?.title;
- document.title = n ? `${n} · Peach` : "Peach · 蜜桃", document.body.dataset.surface = t.pathname, x9();
+ document.title = n ? `${n} · Peach` : "Peach · 蜜桃", document.body.dataset.surface = t.pathname, S9();
};
}
// src/sidebar-skeleton.ts
-var G5 = (e) => e.replace(/[&<>"']/g, (e) => ({
+var K5 = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
})[e]);
-function zRe(e, t, n) {
+function RRe(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-${G5(r)}"/></svg>`;
- return `<button type="button" data-nav="${G5(e)}" aria-pressed="${n(e)}" aria-label="${G5(t)}">${i}<span>${G5(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-${K5(r)}"/></svg>`;
+ return `<button type="button" data-nav="${K5(e)}" aria-pressed="${n(e)}" aria-label="${K5(t)}">${i}<span>${K5(t)}</span></button>`;
}).join("")}</div>`;
}
// src/application/filter-scroll.js
-function BRe(e, t, n, r = !1) {
+function zRe(e, t, n, r = !1) {
if (t = Math.max(0, t), !e || !n || r || t <= 8) return {
y: t,
origin: t,
@@ -81591,7 +81591,7 @@ function BRe(e, t, n, r = !1) {
};
}
// src/application/layout.js
-var K5 = {
+var q5 = {
sidebarProps: void 0,
sidebarSurface: void 0,
sidebarCatalog: void 0,
@@ -81613,20 +81613,20 @@ var K5 = {
mobileFilterHost: void 0,
mobileFilterPath: void 0
};
-function q5({ manage: e = !0, placeholder: t = "" } = {}) {
- L("#stats").hidden = !1, L("#index").hidden = !0, K7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0, e ? r7() : (i7(""), C9()), t && I2(L("#stats"), t);
-}
-function J5() {
- L("#javLibraryHeader").hidden = !0, X.hideCatalogCombo(), U5(), document.body.classList.remove("entity-open", "index-open");
+function J5({ manage: e = !0, placeholder: t = "" } = {}) {
+ L("#stats").hidden = !1, L("#index").hidden = !0, q7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0, e ? i7() : (a7(""), w9()), t && L2(L("#stats"), t);
}
function Y5() {
- L("#javLibraryHeader").hidden = !jn(location.pathname) || !u7(), document.body.classList.remove("entity-open", "index-open"), Cp(L("#index")), L("#stats").hidden = !0, L("#index").hidden = !0, a5(location.pathname) || (L("#feedNew").hidden = !0), L("#catalogFilter").style.display = "", A7(), r7(), a7();
+ L("#javLibraryHeader").hidden = !0, X.hideCatalogCombo(), W5(), document.body.classList.remove("entity-open", "index-open");
}
-function VRe() {
- Q.route("/"), Y5();
+function X5() {
+ L("#javLibraryHeader").hidden = !jn(location.pathname) || !d7(), document.body.classList.remove("entity-open", "index-open"), Cp(L("#index")), L("#stats").hidden = !0, L("#index").hidden = !0, o5(location.pathname) || (L("#feedNew").hidden = !0), L("#catalogFilter").style.display = "", j7(), i7(), o7();
}
-function X5({ tags: e = [], providers: t = [], duration: n = !1 }) {
- S9({
+function BRe() {
+ Q.route("/"), X5();
+}
+function Z5({ tags: e = [], providers: t = [], duration: n = !1 }) {
+ C9({
content: e.length || t.length || n ? {
kind: "follow",
tags: e.map(([e, t]) => ({
@@ -81649,28 +81649,28 @@ function X5({ tags: e = [], providers: t = [], duration: n = !1 }) {
filters: $.followSidebarFilters()
});
}
-function Z5(e) {
- Hze({
- ...k9(),
+function Q5(e) {
+ Vze({
+ ...A9(),
...e
- }), S9({ filters: $.followSidebarFilters() });
+ }), C9({ filters: $.followSidebarFilters() });
}
-function Q5() {
+function $5() {
return matchMedia("(max-width:760px)").matches;
}
-function $5(e) {
+function e7(e) {
let t = L("#drawer"), n = !e && t.contains(document.activeElement);
- t.inert = !e && Q5(), 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 && $5(), 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 e7() {
- Q5() && $5(!1);
+function t7() {
+ $5() && e7(!1);
}
-function HRe() {
+function VRe() {
fu === null && (W({ runtimeConfigurable: !1 }), Tn("/healthz").then((e) => {
- W({ runtimeConfigurable: !!e.configurable }), fu && n7() && r7();
+ W({ runtimeConfigurable: !!e.configurable }), fu && r7() && i7();
}).catch(() => {}));
}
-function t7(e = "", t = !1) {
+function n7(e = "", t = !1) {
if (!t && !Nf(location.pathname)) {
let t = Pp.navigation;
Pp.push(Ff(e), { settingsBackground: {
@@ -81683,38 +81683,38 @@ function t7(e = "", t = !1) {
replace: !0,
state: Pp.navigation.location.state
});
- return e ||= Pf(location.pathname), gLe(K5.settingsHost()).then((t) => (t.open(e), t));
+ return e ||= Pf(location.pathname), hLe(q5.settingsHost()).then((t) => (t.open(e), t));
}
-function URe() {
+function HRe() {
Nf(location.pathname) && (If(Pp.navigation.location.state) ? Pp.go(-1) : Q.navigatePath("/", !0));
}
-function WRe() {
+function URe() {
return {
scroll: L("#drawerScroll"),
store: Z.settingsStore,
- navCatalog: K5.NAV_CATALOG,
- navOn: _7,
- navTo: v7,
+ navCatalog: q5.NAV_CATALOG,
+ navOn: v7,
+ navTo: y7,
navToTop: () => {
- e7(), vm();
+ t7(), vm();
},
- toggleChip: (e, t, n) => k7((r) => {
+ toggleChip: (e, t, n) => A7((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) => k7((n) => {
+ setDuration: (e, t) => A7((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]), $5(!1), D9(O9());
+ $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followFilter = "saved", $.followDurMin = $.followDurMax = 0, $.followTags = /* @__PURE__ */ new Set([e]), e7(!1), O9(k9());
},
selectFollowTag: (e) => {
- $.followTags = /* @__PURE__ */ new Set([e]), $5(!1), D9(O9());
+ $.followTags = /* @__PURE__ */ new Set([e]), e7(!1), O9(k9());
},
- selectFollowProvider: (e) => Z5({ provider: $.followProviders.has(e) ? "" : e }),
- setFollowDuration: (e, t) => Z5({
+ selectFollowProvider: (e) => Q5({ provider: $.followProviders.has(e) ? "" : e }),
+ setFollowDuration: (e, t) => Q5({
durMin: e ? e * 60 : 0,
durMax: t < 180 ? t * 60 : 0
}),
@@ -81723,76 +81723,76 @@ function WRe() {
}
};
}
-function GRe() {
+function WRe() {
let e = L("#drawerScroll"), t = [...e.querySelector("[data-sidebar-head]")?.children || []];
- e.innerHTML = zRe(Z.appSettings.sidebarOrder, K5.NAV_CATALOG, _7), e.querySelector("[data-sidebar-head]").append(...t), G8.listen(e, "click", (e) => {
- if (b8()) return;
+ e.innerHTML = RRe(Z.appSettings.sidebarOrder, q5.NAV_CATALOG, v7), e.querySelector("[data-sidebar-head]").append(...t), K8.listen(e, "click", (e) => {
+ if (x8()) return;
let t = e.target.closest?.("[data-nav]");
- t && v7(t.dataset.nav);
- }), _Le(WRe()).then((e) => e.render(K5.sidebarProps)).catch(() => {});
+ t && y7(t.dataset.nav);
+ }), gLe(URe()).then((e) => e.render(q5.sidebarProps)).catch(() => {});
}
-async function KRe() {
- let e = G8, t = null;
+async function GRe() {
+ let e = K8, t = null;
try {
t = await Tn("/api/settings", { signal: e.signal });
} catch {
return;
}
- e.isActive && $j(t, (e) => Z.settingsEffects[e]?.());
+ e.isActive && eM(t, (e) => Z.settingsEffects[e]?.());
}
-function n7() {
+function r7() {
return Q.routeMeta(decodeURIComponent(location.pathname))?.route.section || (U.state === "ads" ? "cleanup" : "");
}
-function r7() {
- let e = n7();
- HRe(), e && U5(), L("#count").classList.toggle("no-tagbar", !!e), C9(), e !== "trash" && (M5.trashCount = null), i7(e);
+function i7() {
+ let e = r7();
+ VRe(), e && W5(), L("#count").classList.toggle("no-tagbar", !!e), w9(), e !== "trash" && (N5.trashCount = null), a7(e);
}
-function qRe(e) {
+function KRe(e) {
return {
section: e,
path: decodeURIComponent(location.pathname),
- sections: K5.MANAGE_SECTIONS,
- menu: e ? K5.manageMenuSections() : [],
- trash: M5.trashCount
+ sections: q5.MANAGE_SECTIONS,
+ menu: e ? q5.manageMenuSections() : [],
+ trash: N5.trashCount
};
}
-function i7(e = n7()) {
- a7();
- let t = qRe(e), n = C8();
+function a7(e = r7()) {
+ o7();
+ let t = KRe(e), n = w8();
if (n) n.render(t);
else {
- let e = efe(t);
- e !== K5.manageHeaderSkeleton && (K5.manageHeaderSkeleton = e, K5.manageHeaderRoot().innerHTML = e);
+ let e = $de(t);
+ e !== q5.manageHeaderSkeleton && (q5.manageHeaderSkeleton = e, q5.manageHeaderRoot().innerHTML = e);
}
- let r = FF(t)?.title || "";
- r !== K5.lastManagePageLabel && (K5.lastManagePageLabel = r, r && nc(K5.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));
+ let r = IF(t)?.title || "";
+ r !== q5.lastManagePageLabel && (q5.lastManagePageLabel = r, r && nc(q5.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));
}
-function JRe() {
- let e = K5.manageHeaderRoot();
- G8.listen(e, "click", (e) => {
- if (C8()) return;
+function qRe() {
+ let e = q5.manageHeaderRoot();
+ K8.listen(e, "click", (e) => {
+ if (w8()) return;
let t = e.target.closest?.("[data-manage]");
- if (t) l7(t.dataset.manage);
+ if (t) u7(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]") && B7();
- }), vLe({
+ } else e.target.closest?.("[data-empty-trash]") && V7();
+ }), _Le({
root: e,
- openManage: l7,
+ openManage: u7,
openDataCleanup: () => Q.navigatePath("/data-cleanup"),
- emptyTrash: B7
- }).then(() => i7()).catch(() => {});
+ emptyTrash: V7
+ }).then(() => a7()).catch(() => {});
}
-function a7() {
+function o7() {
let e = L("#listTitle");
if (!e) return;
- let t = decodeURIComponent(location.pathname), n = !n7() && jn(t) && An[U.state] || "";
+ let t = decodeURIComponent(location.pathname), n = !r7() && jn(t) && An[U.state] || "";
e.hidden = !n, n && (e.textContent = n);
let r = L("#catalogPageHeading");
- r.hidden = !!n7() || !jn(t) || !!n || U.jav === "1", o7(r, U.q);
+ r.hidden = !!r7() || !jn(t) || !!n || U.jav === "1", s7(r, U.q);
}
-function o7(e, t) {
+function s7(e, t) {
let n = e?.querySelector("[data-page-title]");
if (!n) return;
let r = String(t || "").trim(), i = r ? `搜索结果:「${r}」` : "首页";
@@ -81805,10 +81805,10 @@ function o7(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, c7(n), s7 ??= new ResizeObserver((e) => e.forEach((e) => c7(e.target))), s7.observe(n), document.fonts?.ready.then(() => c7(n));
+ n.replaceChildren(a("搜索结果:「"), a(r, r), a("」")), n.title = i, l7(n), c7 ??= new ResizeObserver((e) => e.forEach((e) => l7(e.target))), c7.observe(n), document.fonts?.ready.then(() => l7(n));
}
-var s7 = null;
-function c7(e) {
+var c7 = null;
+function l7(e) {
let t = e.querySelector("[data-title-words]");
if (!t || !e.clientWidth) return;
let n = t.dataset.titleWords;
@@ -81820,44 +81820,44 @@ function c7(e) {
}
t.textContent = r.slice(0, o).join("") + "…";
}
-function l7(e = "stats") {
+function u7(e = "stats") {
let t = Q.routePathOf("section", e);
- t ? Q.openRoutePath(t) : (U.orient = "", U.state = "ads", Cu(), Q.route(PU()), Y5(), C9(), z7());
+ t ? Q.openRoutePath(t) : (U.orient = "", U.state = "ads", Cu(), Q.route(FU()), X5(), w9(), B7());
}
-function u7() {
+function d7() {
let e = decodeURIComponent(location.pathname);
return e === "/" ? U.jav === "1" : e.startsWith("/performers/") || e.startsWith("/studios/") ? U.jav === "1" || gu : !1;
}
-function YRe(e = u7()) {
- let t = wj.filter(([e]) => e !== "seed");
- return e ? [Tj, ...t] : t;
+function JRe(e = d7()) {
+ let t = Tj.filter(([e]) => e !== "seed");
+ return e ? [Ej, ...t] : t;
}
-function d7() {
+function f7() {
return decodeURIComponent(location.pathname) === "/" && U.jav !== "1";
}
-function f7() {
- return uM(d7());
+function p7() {
+ return dM(f7());
}
-function XRe(e) {
- zle(e), m7(), L("#grid").hidden || t9();
+function YRe(e) {
+ Rle(e), h7(), L("#grid").hidden || n9();
}
-function p7(e) {
- vM(e), m7(), t9();
+function m7(e) {
+ yM(e), h7(), n9();
}
-function m7() {
+function h7() {
document.querySelectorAll("[data-video-layout]").forEach((e) => {
- e.checked = e.value === f7();
- }), X.catalogFilterProps && j7({ layout: N7() });
-}
-function ZRe(e) {
- Ble(e), m7(), t9();
+ e.checked = e.value === p7();
+ }), X.catalogFilterProps && M7({ layout: P7() });
}
-async function h7() {
- F8(), X.mixRelatedCache.clear(), await Promise.all([g7(), z7()]);
+function XRe(e) {
+ zle(e), h7(), n9();
}
async function g7() {
- if (l5.entityPageCurrent() && !L("#index").hidden) {
- d5({ revision: ++l5.entityPageRevision });
+ I8(), X.mixRelatedCache.clear(), await Promise.all([_7(), B7()]);
+}
+async function _7() {
+ if (u5.entityPageCurrent() && !L("#index").hidden) {
+ f5({ revision: ++u5.entityPageRevision });
return;
}
let e = decodeURIComponent(location.pathname);
@@ -81866,30 +81866,30 @@ async function g7() {
return;
}
let t = Q.routeMeta(e);
- t?.route.reload ? await t.route.reload() : await W7();
+ t?.route.reload ? await t.route.reload() : await G7();
}
-function _7(e) {
- let t = decodeURIComponent(location.pathname), n = Q.routeMeta(t)?.route.nav || "", r = K5.DIRECT_MANAGE_NAV[e];
- if (r) return n7() === r;
+function v7(e) {
+ let t = decodeURIComponent(location.pathname), n = Q.routeMeta(t)?.route.nav || "", r = q5.DIRECT_MANAGE_NAV[e];
+ if (r) return r7() === r;
if (e === "manage") {
- let e = n7();
- return !!e && !Z.appSettings.sidebarOrder.some((t) => K5.DIRECT_MANAGE_NAV[t] === e);
+ let e = r7();
+ return !!e && !Z.appSettings.sidebarOrder.some((t) => q5.DIRECT_MANAGE_NAV[t] === e);
}
- return e === "jav" ? t === "/jav" || u7() : e === "shorts" ? U.orient === "竖屏" : e === "" ? t === "/" && !n7() && !U.state && !u7() && U.orient !== "竖屏" : On[e] ? n === e && U.orient !== "竖屏" : n ? n === e : t === "/" && U.state === e && U.orient !== "竖屏";
+ return e === "jav" ? t === "/jav" || d7() : e === "shorts" ? U.orient === "竖屏" : e === "" ? t === "/" && !r7() && !U.state && !d7() && U.orient !== "竖屏" : On[e] ? n === e && U.orient !== "竖屏" : n ? n === e : t === "/" && U.state === e && U.orient !== "竖屏";
}
-function v7(e) {
+function y7(e) {
let t = fm(e);
if (t === location.pathname + location.search + location.hash) return;
- if (e7(), t) {
+ if (t7(), t) {
Q.navigatePath(t);
return;
}
- if (K5.DIRECT_MANAGE_NAV[e]) {
- l7(K5.DIRECT_MANAGE_NAV[e]);
+ if (q5.DIRECT_MANAGE_NAV[e]) {
+ u7(q5.DIRECT_MANAGE_NAV[e]);
return;
}
if (e === "manage") {
- l7();
+ u7();
return;
}
if (e === "jav") {
@@ -81897,25 +81897,25 @@ function v7(e) {
return;
}
if (e === "") {
- C7();
+ w7();
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), Cu(), Q.route(S7()), C9(), z7());
+ n ? Q.openRoutePath(n) : (e === "shorts" ? (U.orient = "竖屏", U.state = "") : (U.orient = "", U.state = e), Cu(), Q.route(C7()), w9(), B7());
}
-function y7() {
+function b7() {
let e = decodeURIComponent(location.pathname), t = e.split("/").filter(Boolean);
- $l && nu !== M5.currentSelectSurface() && P5(!1, !0);
+ $l && nu !== N5.currentSelectSurface() && F5(!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, g5(), !i && $l && P5(!1, !0);
+ L("#selectMode").hidden = !i, L("#density").hidden = !a, _5(), !i && $l && F5(!1, !0);
}
-function QRe() {
+function ZRe() {
let e = [...document.querySelectorAll("[data-filter-frame]")], t = e.find((e) => e.offsetParent !== null);
- (t !== K5.mobileFilterHost || location.pathname !== K5.mobileFilterPath) && (K5.mobileFilterScroll = null), K5.mobileFilterHost = t, K5.mobileFilterPath = location.pathname;
+ (t !== q5.mobileFilterHost || location.pathname !== q5.mobileFilterPath) && (q5.mobileFilterScroll = null), q5.mobileFilterHost = t, q5.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\"]");
- K5.mobileFilterScroll = BRe(K5.mobileFilterScroll, n, innerWidth <= 760, r);
+ q5.mobileFilterScroll = zRe(q5.mobileFilterScroll, n, innerWidth <= 760, r);
for (let n of e) {
- let e = n === t && K5.mobileFilterScroll.free;
+ let e = n === t && q5.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);
@@ -81927,54 +81927,54 @@ function QRe() {
});
}
}
-function $Re() {
- QRe(), [".board-filter-frame", "#count"].forEach((e) => {
+function QRe() {
+ ZRe(), [".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 b7() {
- K5.stickyFrame ||= G8.frame(() => {
- K5.stickyFrame = 0, $Re();
+function x7() {
+ q5.stickyFrame ||= K8.frame(() => {
+ q5.stickyFrame = 0, QRe();
});
}
-function eze() {
+function $Re() {
$.followSidebarFilters = () => ({
provider: [...$.followProviders][0] || "",
dur_min: $.followDurMin || "",
dur_max: $.followDurMax || ""
- }), G8.handler(L("#filterBtn"), "onclick", () => $5(!L("#drawer").classList.contains("open"))), K5.SIDEBAR_ITEMS = I8, K5.MANAGE_SECTIONS = L8, K5.MANAGE_MENU_SECTIONS = R8, K5.manageMenuSections = () => NLe(fu === !0), K5.OPTIONAL_SIDEBAR_ITEMS = z8, K5.NAV_CATALOG = PLe, K5.DIRECT_MANAGE_NAV = FLe, K5.settingsHost = () => ({
+ }), K8.handler(L("#filterBtn"), "onclick", () => e7(!L("#drawer").classList.contains("open"))), q5.SIDEBAR_ITEMS = L8, q5.MANAGE_SECTIONS = R8, q5.MANAGE_MENU_SECTIONS = z8, q5.manageMenuSections = () => MLe(fu === !0), q5.OPTIONAL_SIDEBAR_ITEMS = B8, q5.NAV_CATALOG = NLe, q5.DIRECT_MANAGE_NAV = PLe, q5.settingsHost = () => ({
selectSection: (e) => Fp(Ff(e), {
replace: !0,
state: Pp.navigation.location.state
}),
- closed: URe,
+ closed: HRe,
store: Z.settingsStore,
changed: (e) => Z.settingsEffects[e]?.(),
sound: (e) => $o(e),
- navCatalog: K5.NAV_CATALOG,
- themeOptions: Ple,
- videoLayouts: iM,
- followInitialRanges: B8,
- videoLayout: () => f7(),
- setVideoLayout: ZRe,
- censored: a9,
- setCensored: s9,
- sfwShortcut: c9,
- setSfwShortcut: xze,
+ navCatalog: q5.NAV_CATALOG,
+ themeOptions: Nle,
+ videoLayouts: aM,
+ followInitialRanges: V8,
+ videoLayout: () => p7(),
+ setVideoLayout: XRe,
+ censored: o9,
+ setCensored: c9,
+ sfwShortcut: l9,
+ setSfwShortcut: bze,
highContrast: () => document.documentElement.classList.contains("board-high-contrast"),
- setHighContrast: Sze,
- receipt: (e) => k8.actionReceipt(e),
- failure: k8.actionFailure,
- syncRemote: (e) => $j(e, (e) => Z.settingsEffects[e]?.()),
+ setHighContrast: xze,
+ receipt: (e) => A8.actionReceipt(e),
+ failure: A8.actionFailure,
+ syncRemote: (e) => eM(e, (e) => Z.settingsEffects[e]?.()),
openConfiguration: () => Q.navigatePath("/settings/library"),
attached: () => Z.syncGlassOptics(),
configurable: () => Tn("/healthz").then((e) => (W({ runtimeConfigurable: !!e.configurable }), fu)).catch(() => null)
- }), G8.handler(L("#settingsBtn"), "onclick", () => void t7()), K5.lastManagePageLabel = "", K5.manageHeaderSkeleton = "", K5.manageHeaderRoot = () => L("[data-manage-header]"), window.__scrolling = !1, K5.scrollT = null, K5.stickyFrame = 0, K5.mobileFilterScroll = null, K5.mobileFilterHost = null, K5.mobileFilterPath = "", G8.listen(document, "focusin", b7), G8.listen(document, "focusout", b7), G8.listen(window, "scroll", () => {
- b7(), location.pathname === "/follow" && j9() && W({ followScrollY: scrollY }), window.__scrolling = !0, Pl(), clearTimeout(K5.scrollT), K5.scrollT = G8.delay(() => {
+ }), K8.handler(L("#settingsBtn"), "onclick", () => void n7()), q5.lastManagePageLabel = "", q5.manageHeaderSkeleton = "", q5.manageHeaderRoot = () => L("[data-manage-header]"), window.__scrolling = !1, q5.scrollT = null, q5.stickyFrame = 0, q5.mobileFilterScroll = null, q5.mobileFilterHost = null, q5.mobileFilterPath = "", K8.listen(document, "focusin", x7), K8.listen(document, "focusout", x7), K8.listen(window, "scroll", () => {
+ x7(), location.pathname === "/follow" && M9() && W({ followScrollY: scrollY }), window.__scrolling = !0, Pl(), clearTimeout(q5.scrollT), q5.scrollT = K8.delay(() => {
window.__scrolling = !1;
}, 180);
- }, { passive: !0 }), G8.listen(window, "resize", b7, { passive: !0 }), G8.handler(L("#scrim"), "onclick", () => $5(!1));
+ }, { passive: !0 }), K8.listen(window, "resize", x7, { passive: !0 }), K8.handler(L("#scrim"), "onclick", () => e7(!1));
}
// src/application/catalog.js
var X = {
@@ -82013,43 +82013,43 @@ var X = {
junkQueueHelpers: void 0,
junkQueueActions: void 0
};
-function tze() {
- X.initialParams.has("loc") || (U.loc = x7(U.loc), Cu());
+function eze() {
+ X.initialParams.has("loc") || (U.loc = S7(U.loc), Cu());
}
-function x7(e) {
- return wLe(e, Z.sourceOnline);
+function S7(e) {
+ return CLe(e, Z.sourceOnline);
}
-function S7(e = U) {
- return TLe(e);
+function C7(e = U) {
+ return wLe(e);
}
-function nze() {
- W(j8(ELe(U, Z.appSettings, k8.rollSeed)));
+function tze() {
+ W(M8(TLe(U, Z.appSettings, A8.rollSeed)));
}
-function C7(e = null) {
- nze(), e && (Object.assign(U, e), Cu()), Q.route(e ? S7() : "/"), X.clearSearchField(), p9(!1), C9(), z7();
+function w7(e = null) {
+ tze(), e && (Object.assign(U, e), Cu()), Q.route(e ? C7() : "/"), X.clearSearchField(), m9(!1), w9(), B7();
}
-function rze(e, t = null) {
+function nze(e, t = null) {
let n = e.id;
- !e.medium || e.medium === "video" ? _9(n, !0, null, t) : e.medium === "image" && e.location !== "online" ? window.open("/photo?id=" + n, "_blank", "noopener") : F5(n);
+ !e.medium || e.medium === "video" ? v9(n, !0, null, t) : e.medium === "image" && e.location !== "online" ? window.open("/photo?id=" + n, "_blank", "noopener") : I5(n);
}
-function w7(e) {
+function T7(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 ize(e, t) {
- d8()?.miniplayerTakesCard(e) ? d8().miniplayerPlay(e.id) : T7(e, t);
+function rze(e, t) {
+ f8()?.miniplayerTakesCard(e) ? f8().miniplayerPlay(e.id) : E7(e, t);
}
-function T7(e, t) {
- e.edition_group ? kze(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? Aze(e.part_group.seed_id, e.id, !0, t) : _9(e.id, !0, null, t);
+function E7(e, t) {
+ e.edition_group ? Oze(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? kze(e.part_group.seed_id, e.id, !0, t) : v9(e.id, !0, null, t);
}
-async function aze(e, t) {
+async function ize(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), k8.actionReceipt(n.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
+ e.watch_later = n.watch_later, t(!!n.watch_later), A8.actionReceipt(n.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
let n = await Tn("/api/watch-later", {
method: "POST",
body: JSON.stringify({ id: e.id })
@@ -82057,10 +82057,10 @@ async function aze(e, t) {
e.watch_later = n.watch_later, t(!!n.watch_later);
} });
} catch (e) {
- k8.actionFailure("更新稍后看", e);
+ A8.actionFailure("更新稍后看", e);
}
}
-async function oze(e, t) {
+async function aze(e, t) {
try {
await Tn("/api/batch", {
method: "POST",
@@ -82068,9 +82068,9 @@ async function oze(e, t) {
ids: [e.id],
operation: t
})
- }), await W7();
+ }), await G7();
let n = t === "restore" ? "dispose" : "restore";
- k8.actionReceipt(t === "restore" ? "已还原" : "已移入回收站", { undo: async () => {
+ A8.actionReceipt(t === "restore" ? "已还原" : "已移入回收站", { undo: async () => {
await Tn("/api/batch", {
method: "POST",
body: JSON.stringify({
@@ -82078,14 +82078,14 @@ async function oze(e, t) {
operation: n,
...n === "dispose" ? { disposal_reason: e.disposal_reason ?? null } : {}
})
- }), await W7();
+ }), await G7();
} });
} catch (e) {
- throw k8.actionFailure("操作", e), e;
+ throw A8.actionFailure("操作", e), e;
}
}
-async function sze(e, t, n, r) {
- let i = Number(e.rating) || 0, a = dP(i, t), o = async (t, r) => {
+async function oze(e, t, n, r) {
+ let i = Number(e.rating) || 0, a = fP(i, t), o = async (t, r) => {
let i = (await Tn("/api/feedback", {
method: "POST",
body: JSON.stringify({
@@ -82099,15 +82099,15 @@ async function sze(e, t, n, r) {
};
try {
let e = await o(a, r);
- k8.actionReceipt(e ? `已评 ${uP(e)} 星` : "已取消评分", { undo: () => o(i) });
+ A8.actionReceipt(e ? `已评 ${dP(e)} 星` : "已取消评分", { undo: () => o(i) });
} catch (e) {
- throw r?.aborted || k8.actionFailure("评分", e), e;
+ throw r?.aborted || A8.actionFailure("评分", e), e;
}
}
-async function E7(e) {
+async function D7(e) {
let t = new URLSearchParams();
- if (u7() && 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 = l5.activeFilterState();
+ if (d7() && 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 = u5.activeFilterState();
[
"loc",
"creator",
@@ -82128,33 +82128,33 @@ async function E7(e) {
e[n] && t.set(n, e[n]);
});
}
- return jLe(t.toString(), X.topsQueryParams(e).toString());
+ return ALe(t.toString(), X.topsQueryParams(e).toString());
}
-function D7(e) {
- f5().type !== "entity" && j7({ tags: F7(e) }), S9({ filters: { ...e } }), U7();
+function O7(e) {
+ p5().type !== "entity" && M7({ tags: I7(e) }), C9({ filters: { ...e } }), W7();
}
-async function O7(e) {
- let t = ++X.facetCountsSeq, [n] = await E7(e);
- t === X.facetCountsSeq && (e.type === "home" && (u9.facets = n), S9({ latest: i9(n, e) }));
+async function k7(e) {
+ let t = ++X.facetCountsSeq, [n] = await D7(e);
+ t === X.facetCountsSeq && (e.type === "home" && (d9.facets = n), C9({ latest: a9(n, e) }));
}
-function k7(e) {
- let t = f5();
+function A7(e) {
+ let t = p5();
if (t.type === "entity") {
let n = { ...t.filters };
- e(n), m5(t.kind, t.name, n), D7(n), O7(f5());
+ e(n), h5(t.kind, t.name, n), O7(n), k7(p5());
} else if (t.type === "item") {
- let t = l5.cloneBarsContext(Xl);
- if (p9(!1), W({ detailReturnBarsContext: null }), t && t.type === "entity") {
- e(t.filters), m5(t.kind, t.name, t.filters) ? z7() : W({ pageOpens: mu + 1 });
+ let t = u5.cloneBarsContext(Xl);
+ if (m9(!1), W({ detailReturnBarsContext: null }), t && t.type === "entity") {
+ e(t.filters), h5(t.kind, t.name, t.filters) ? B7() : W({ pageOpens: mu + 1 });
return;
}
e(U), W({ barsContext: {
type: "home",
filters: U
- } }), Q.route(S7()), Y5(), z7();
- } else e(U), Cu(), Q.route(S7()), D7(U), O7(Yl);
+ } }), Q.route(C7()), X5(), B7();
+ } else e(U), Cu(), Q.route(C7()), O7(U), k7(Yl);
}
-function cze() {
+function sze() {
return {
tiers: null,
tiersPending: !1,
@@ -82172,94 +82172,94 @@ function cze() {
combo: [],
comboHidden: !0,
comboHost: L("#combo"),
- actions: M7(),
+ actions: N7(),
helpers: {
- wireDrag: l9,
+ wireDrag: u9,
wireScroller: (e) => {
e && jc(e);
}
}
};
}
-function A7() {
- X.catalogFilterProps && j7({});
+function j7() {
+ X.catalogFilterProps && M7({});
}
-function j7(e) {
+function M7(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 || cze(),
+ ...X.catalogFilterProps || sze(),
...e
- }, !X.catalogFilterMounting && (gp(t) ? Sp(t, e) : (!t.firstChild && !n && (t.innerHTML = MMe(X.catalogViews(), X.catalogFilterProps.state, P7()), mc(t)), X.catalogFilterMounting = bp("catalog-filter", X.catalogFilterProps, {
+ }, !X.catalogFilterMounting && (gp(t) ? Sp(t, e) : (!t.firstChild && !n && (t.innerHTML = jMe(X.catalogViews(), X.catalogFilterProps.state, F7()), mc(t)), X.catalogFilterMounting = bp("catalog-filter", X.catalogFilterProps, {
container: t,
isCurrent: () => !0
}).then(() => Sp(t, X.catalogFilterProps)).finally(() => {
X.catalogFilterMounting = null;
})));
}
-function M7() {
+function N7() {
return {
currentHref: () => {
- let e = new URL(S7(), location.origin);
+ let e = new URL(C7(), 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) => w5(e, t),
+ openEntity: (e, t) => T5(e, t),
setView: (e) => {
- U.state = e, Cu(), j7({ state: e }), Q.route(S7()), z7();
+ U.state = e, Cu(), M7({ state: e }), Q.route(C7()), B7();
},
- toggleTag: (e) => V7(e),
- clearFilter: (e) => k7((t) => {
+ toggleTag: (e) => H7(e),
+ clearFilter: (e) => A7((t) => {
t[e] = "";
}),
- clearAll: () => k7((e) => {
+ clearAll: () => A7((e) => {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let t = jj(e, U.sort, U.dir);
- t && (U.sort = t.sort, U.dir = t.dir, Cu(), r9());
+ let t = Mj(e, U.sort, U.dir);
+ t && (U.sort = t.sort, U.dir = t.dir, Cu(), i9());
},
- reshuffle: () => bze(),
+ reshuffle: () => yze(),
setLayout: (e) => {
- u7() ? p7(e) : XRe(e);
+ d7() ? m7(e) : YRe(e);
},
moreTops: async (e) => {
let t = X.catalogTopsPages;
if (!t) return [];
- let n = (await MLe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
- return e === "performers" ? n.map(I7) : n.map(L7);
+ let n = (await jLe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
+ return e === "performers" ? n.map(L7) : n.map(R7);
}
};
}
-function N7() {
- return u7() ? {
+function P7() {
+ return d7() ? {
name: "jav-layout",
label: "JAV 卡片版式",
- value: lM(),
- options: iM
- } : d7() ? {
+ value: uM(),
+ options: aM
+ } : f7() ? {
name: "home-layout",
label: "首页卡片版式",
- value: f7(),
- options: iM
+ value: p7(),
+ options: aM
} : null;
}
-function P7() {
+function F7() {
return {
- sorts: p5(U.sort, U.dir),
- layout: N7(),
+ sorts: m5(U.sort, U.dir),
+ layout: P7(),
state: U.state || "",
trash: U.state === "trash"
};
}
-function F7(e) {
+function I7(e) {
return X.catalogTagRows.map((t) => ({
...t,
selected: X.tagPressed(e.tag, t.k)
}));
}
-function I7(e) {
+function L7(e) {
return {
name: e.k,
ringHtml: `<span data-tier-initial>${z(er(nn("performer", e.k, e.id)))}</span>${_o({
@@ -82273,102 +82273,102 @@ function I7(e) {
})}`
};
}
-function L7(e) {
+function R7(e) {
return {
name: e.k,
fallback: $n(e.k, 2),
logo: e.has_logo ? mo(e.k, "icon", e.logo_version) : ""
};
}
-function lze(e, t) {
- X.barsPendingSeq = t, X.catalogFilterProps?.tiers ? j7({
+function cze(e, t) {
+ X.barsPendingSeq = t, X.catalogFilterProps?.tiers ? M7({
tiersPending: !0,
state: e.state || ""
- }) : (X.barsRendered = "", j7({
+ }) : (X.barsRendered = "", M7({
tiers: null,
tiersPending: !0,
state: e.state || ""
}));
}
-function R7(e) {
- X.barsPendingSeq === e && (X.barsPendingSeq = 0, j7({ tiersPending: !1 }));
+function z7(e) {
+ X.barsPendingSeq === e && (X.barsPendingSeq = 0, M7({ tiersPending: !1 }));
}
-async function z7() {
+async function B7() {
let e = ++X.barsRequestSeq;
- if (S9(), !Kl(location.pathname) || Yl.type === "item") return;
- let t = f5(), n = l5.activeFilterState(), r = JSON.stringify([
+ if (C9(), !Kl(location.pathname) || Yl.type === "item") return;
+ let t = p5(), n = u5.activeFilterState(), r = JSON.stringify([
t,
n,
U.state || "",
U.seed || "",
- u7()
+ d7()
]);
- lze(n, e);
+ cze(n, e);
let i;
try {
- i = await E7(t);
+ i = await D7(t);
} catch (t) {
- throw R7(e), t;
+ throw z7(e), t;
}
let [a, o] = i;
if (e !== X.barsRequestSeq) {
- R7(e);
+ z7(e);
return;
}
let s = r + "\n" + JSON.stringify([a, o]);
if (s === X.barsRendered) {
- X.barsPendingSeq = 0, j7({ tiersPending: !1 }), K5.sidebarCatalog && S9({
- content: K5.sidebarCatalog,
+ X.barsPendingSeq = 0, M7({ tiersPending: !1 }), q5.sidebarCatalog && C9({
+ content: q5.sidebarCatalog,
filters: { ...n }
});
return;
}
- X.barsRendered = s, t.type === "home" && (u9.facets = a);
+ X.barsRendered = s, t.type === "home" && (d9.facets = a);
let c = a.tags || [];
Za(o.performers), Za(o.studios);
- let l = t.type === "home" && !u7() && !U.state && !U.q && !a.locations.some((e) => e.n > 0);
+ let l = t.type === "home" && !d7() && !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 = k8.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 = A8.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: Rl(e.k),
n: e.n ?? null
- })), X.barsPendingSeq = 0, j7({
+ })), X.barsPendingSeq = 0, M7({
tiers: {
key: String(X.barsRequestSeq),
- performers: o.performers.map(I7),
- studios: o.studios.map(L7)
+ performers: o.performers.map(L7),
+ studios: o.studios.map(R7)
},
tiersPending: !1,
empty: l,
- tags: F7(n),
+ tags: I7(n),
tagFirst: f.length + m.length,
views: X.catalogViews(),
state: n.state || ""
- }), U7(), K5.sidebarCatalog = {
+ }), W7(), q5.sidebarCatalog = {
kind: "catalog",
- key: String(++K5.sidebarContentSeq),
- facets: i9(a, t)
- }, S9({
- content: K5.sidebarCatalog,
+ key: String(++q5.sidebarContentSeq),
+ facets: a9(a, t)
+ }, C9({
+ content: q5.sidebarCatalog,
filters: { ...n },
latest: null
});
}
-function uze(e, t) {
- u9.total = e, U.state === "trash" && (M5.trashCount = {
- total: u9.total,
+function lze(e, t) {
+ d9.total = e, U.state === "trash" && (N5.trashCount = {
+ total: d9.total,
shown: t
- }), r7(), j7({ count: {
- total: u9.total,
+ }), i7(), M7({ count: {
+ total: d9.total,
shown: t
} });
}
-function B7() {
+function V7() {
return ul({
title: "清空回收站",
body: "回收站中的全部文件和馆藏记录将永久删除,无法恢复。",
@@ -82378,19 +82378,19 @@ function B7() {
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"));
- k8.actionReceipt(`已永久删除 ${e.purged} 项`);
+ A8.actionReceipt(`已永久删除 ${e.purged} 项`);
} finally {
- await W7();
+ await G7();
}
}
});
}
-function V7(e) {
- k7((t) => {
+function H7(e) {
+ A7((t) => {
t.tag = e ? X.withTagToggled(t.tag, e) : "";
});
}
-function H7(e) {
+function U7(e) {
let t = [];
return e.creator && t.push({
kind: "clear",
@@ -82414,13 +82414,13 @@ function H7(e) {
label: Rl(e)
})), t;
}
-function U7() {
- j7({
- combo: H7(U),
+function W7() {
+ M7({
+ combo: U7(U),
comboHidden: !X.catalogOnScreen()
});
}
-async function W7() {
+async function G7() {
let e = Q.claimSurface(Q.surfacePath());
if (W({
barsContext: {
@@ -82428,42 +82428,42 @@ async function W7() {
filters: U
},
detailReturnBarsContext: null
- }), p9(!1), U.state === "ads") return pze(e);
- X.controller.page === "/junk-files" && K7(), H5(), Y5();
- let t = q7(e);
- if (a5(location.pathname) && U.browse !== "folders") {
- if (await V5.entityShapesReady, !Q.surfaceCurrent(e)) return;
- QLe();
- } else o5();
- return U7(), L("#count").classList.remove("manage-static", "junkcount"), t;
-}
-function G7(e) {
+ }), m9(!1), U.state === "ads") return fze(e);
+ X.controller.page === "/junk-files" && q7(), U5(), X5();
+ let t = J7(e);
+ if (o5(location.pathname) && U.browse !== "folders") {
+ if (await H5.entityShapesReady, !Q.surfaceCurrent(e)) return;
+ ZLe();
+ } else s5();
+ return W7(), L("#count").classList.remove("manage-static", "junkcount"), t;
+}
+function K7(e) {
X.controller.settle(e);
}
-function K7() {
+function q7() {
let e = L("#grid");
Pl(e), Cp(e), X.controller.clear(), e.innerHTML = "";
}
-function q7(e) {
- return Z7("/", fze, e, { place: Wze });
+function J7(e) {
+ return Q7("/", dze, e, { place: Uze });
}
-function dze(e) {
- return Z7("/junk-files", hze, e);
+function uze(e) {
+ return Q7("/junk-files", mze, e);
}
-function J7() {
+function Y7() {
return !!hp(L("#grid"));
}
-function Y7() {
- return X.controller.taken(J7());
+function X7() {
+ return X.controller.taken(Y7());
}
-function X7(e) {
+function Z7(e) {
Sp(L("#grid"), e);
}
-function Z7(e, t, n, r = {}) {
+function Q7(e, t, n, r = {}) {
let i = L("#grid");
- X.controller.page && X.controller.page !== e && K7();
- let a = X.controller.begin(e, J7()), o = t();
- if (!a.mount) return X7(o), a.settled;
+ X.controller.page && X.controller.page !== e && q7();
+ let a = X.controller.begin(e, Y7()), o = t();
+ if (!a.mount) return Z7(o), a.settled;
Pl(i);
let s = () => Cp(i);
return a.signal.addEventListener("abort", s, { once: !0 }), bp(e, o, {
@@ -82471,70 +82471,70 @@ function Z7(e, t, n, r = {}) {
container: i,
isCurrent: () => Q.surfaceCurrent(n) && a.isCurrent()
}).catch((e) => console.error(e)).finally(() => {
- a.signal.removeEventListener("abort", s), a.finish(J7());
+ a.signal.removeEventListener("abort", s), a.finish(Y7());
}), a.settled;
}
-function Q7() {
- let e = d7();
- return gM({
- active: u7() || e,
+function $7() {
+ let e = f7();
+ return _M({
+ active: d7() || e,
home: e,
portrait: U.orient === "竖屏"
});
}
-function $7(e = "正在读取作品") {
- return PJ(e, e9());
-}
-function e9() {
- return U ? _M(Q7()) : 16 / 9;
+function e9(e = "正在读取作品") {
+ return FJ(e, t9());
}
function t9() {
- Y7() && (Pl(L("#grid")), X7({
- layout: Q7(),
+ return U ? vM($7()) : 16 / 9;
+}
+function n9() {
+ X7() && (Pl(L("#grid")), Z7({
+ layout: $7(),
seekSeconds: Z.appSettings.seekSeconds
- })), l5.entityPageCurrent() && (Pl(L("#index [data-entity-hero]")), d5({
- layout: Q7(),
+ })), u5.entityPageCurrent() && (Pl(L("#index [data-entity-hero]")), f5({
+ layout: $7(),
seekSeconds: Z.appSettings.seekSeconds
}));
}
-function fze() {
+function dze() {
let e = decodeURIComponent(location.pathname), t = jn(e), n = U.state === "trash";
return {
mode: "catalog",
helpers: X.gridHelpers,
actions: X.gridActions,
- layout: Q7(),
+ layout: $7(),
wall: e === "/wall",
restoreNavigation: _m(),
selectMode: $l,
selected: new Set(Zl),
seekSeconds: Z.appSettings.seekSeconds,
revision: X.controller.revision,
- wireDrag: l9,
- settled: G7,
- skeletonHtml: () => $7(),
+ wireDrag: u9,
+ settled: K7,
+ skeletonHtml: () => e9(),
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" && !u7() && U.orient !== "竖屏" && !n && U.browse !== "folders",
+ shorts: t && e !== "/wall" && !d7() && U.orient !== "竖屏" && !n && U.browse !== "folders",
countRow: L("#count"),
- onCount: uze,
- onCountFailed: () => j7({ count: !1 }),
- emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : wK({
- jav: u7() && !t,
+ onCount: lze,
+ onCountFailed: () => M7({ count: !1 }),
+ emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : TK({
+ jav: d7() && !t,
configurable: fu,
filtered: !t
}),
canLoadMore: () => L("#stats").hidden && L("#index").hidden
};
}
-function pze(e) {
+function fze(e) {
let t = L("#count");
- return X.controller.page === "/junk-files" && J7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (K7(), H5("正在读取垃圾文件")), Y5(), U7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), dze(e);
+ return X.controller.page === "/junk-files" && Y7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (q7(), U5("正在读取垃圾文件")), X5(), W7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), uze(e);
}
-async function mze(e, t) {
+async function pze(e, t) {
let n = [e.id], r = t === "dispose", i = t === "reconsider-junk";
try {
await Tn("/api/batch", {
@@ -82544,24 +82544,24 @@ async function mze(e, t) {
operation: t,
...r ? { disposal_reason: "junk" } : {}
})
- }), await W7();
+ }), await G7();
let e = r ? "restore" : i ? "dismiss-junk" : "reconsider-junk";
- k8.actionReceipt(r ? "已移入回收站" : i ? "已重新加入垃圾判断" : "已标记为不是垃圾", { undo: async () => {
+ A8.actionReceipt(r ? "已移入回收站" : i ? "已重新加入垃圾判断" : "已标记为不是垃圾", { undo: async () => {
await Tn("/api/batch", {
method: "POST",
body: JSON.stringify({
ids: n,
operation: e
})
- }), await W7();
+ }), await G7();
} });
} catch (e) {
- throw k8.actionFailure("操作", e), e;
+ throw A8.actionFailure("操作", e), e;
}
}
-function hze() {
+function mze() {
return {
- ...NU(location.search),
+ ...PU(location.search),
helpers: X.junkQueueHelpers,
actions: X.junkQueueActions,
batchSize: Z.appSettings.batchSize,
@@ -82569,16 +82569,16 @@ function hze() {
selectMode: $l,
selected: new Set(Zl),
countRow: L("#count"),
- settled: G7,
- skeletonHtml: () => N2("正在读取垃圾文件", {
+ settled: K7,
+ skeletonHtml: () => P2("正在读取垃圾文件", {
cards: !0,
className: "catalog-skeleton postercard-skeleton"
}),
canLoadMore: () => L("#stats").hidden && L("#index").hidden
};
}
-function gze() {
- X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => A8(e, t, Z.appSettings, n), W(j8(CLe(location, Z.appSettings, k8.rollSeed))), X.searchValueSnapshot = {
+function hze() {
+ X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => j8(e, t, Z.appSettings, n), W(M8(SLe(location, Z.appSettings, A8.rollSeed))), X.searchValueSnapshot = {
text: "",
scrollLeft: 0
}, X.cancelSearchDissolve = () => {}, X.rememberSearchValue = (e = L("#q")) => {
@@ -82599,52 +82599,52 @@ function gze() {
};
};
}
-function _ze() {
- G8.handler(L("#wallBtn"), "onclick", () => {
- P5(!1, !0);
- let e = f5(), t = {
- ...l5.activeFilterState(),
- jav: u7() ? "1" : ""
+function gze() {
+ K8.handler(L("#wallBtn"), "onclick", () => {
+ F5(!1, !0);
+ let e = p5(), t = {
+ ...u5.activeFilterState(),
+ jav: d7() ? "1" : ""
};
- e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(qxe(void 0, t));
+ e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(Kxe(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) => zI(e, t),
- displayName: (e, t) => RI(e, t),
+ titleHtml: (e, t) => BI(e, t),
+ displayName: (e, t) => zI(e, t),
tagLabel: (e) => Rl(e)
}, X.gridActions = {
wallPlayer: async (e, t, n) => {
- let r = await u8(u9.stageHost);
+ let r = await d8(d9.stageHost);
return n.throwIfAborted(), r.mountWallPlayer(e, t, n);
},
- wallDetails: T7,
- open: (e, t) => ize(e, t),
- openResource: (e, t) => d8()?.miniplayerTakesCard(e) ? d8().miniplayerPlay(e.id) : rze(e, t),
- openShort: (e) => d8()?.miniplayerTakesCard(e) ? d8().miniplayerPlay(e.id) : b9(e.id),
- openShorts: () => b9(),
- openMix: (e, t) => Oze(e, e, !0, t),
- openEntity: (e, t) => w5(e, t),
- openUnowned: () => C7({ owner: "none" }),
+ wallDetails: E7,
+ open: (e, t) => rze(e, t),
+ openResource: (e, t) => f8()?.miniplayerTakesCard(e) ? f8().miniplayerPlay(e.id) : nze(e, t),
+ openShort: (e) => f8()?.miniplayerTakesCard(e) ? f8().miniplayerPlay(e.id) : x9(e.id),
+ openShorts: () => x9(),
+ openMix: (e, t) => Dze(e, e, !0, t),
+ openEntity: (e, t) => T5(e, t),
+ openUnowned: () => w7({ owner: "none" }),
toggleTag: (e) => {
- k7((t) => {
+ A7((t) => {
t.tag = X.tagPressed(t.tag, e) ? "" : e;
});
},
- toggleSelection: (e, t) => F5(e, t),
- watchLater: (e, t) => aze(e, t),
- rate: (e, t, n, r) => sze(e, t, n, r),
- resourceOperation: (e, t) => oze(e, t),
- mixRelated: (e) => w7(e),
- canFlip: () => !$l && !a9() && !window.__scrolling && !X.reduceMotion()
+ toggleSelection: (e, t) => I5(e, t),
+ watchLater: (e, t) => ize(e, t),
+ rate: (e, t, n, r) => oze(e, t, n, r),
+ resourceOperation: (e, t) => aze(e, t),
+ mixRelated: (e) => T7(e),
+ canFlip: () => !$l && !o9() && !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)), u7() && 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)), d7() && 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: "",
@@ -82665,38 +82665,38 @@ function _ze() {
], X.catalogViews = () => X.VIEW_PILLS.map((e) => ({
...e,
href: e.k ? On[e.k] : "/"
- })), X.TAGS_FIRST = 26, G8.listen(L("#catalogFilter"), "click", (e) => {
+ })), X.TAGS_FIRST = 26, K8.listen(L("#catalogFilter"), "click", (e) => {
let t = e.target.closest?.("[data-catalog-view]");
- t && !e.defaultPrevented && (e.preventDefault(), M7().setView(t.dataset.catalogView));
+ t && !e.defaultPrevented && (e.preventDefault(), N7().setView(t.dataset.catalogView));
}), X.catalogOnScreen = () => L("#index").hidden && L("#stats").hidden, X.COMBO_LABELS = {
creator: "创作者",
studio: "厂牌",
owner: "归属"
}, X.hideCatalogCombo = () => {
- X.catalogFilterProps && j7({ comboHidden: !0 });
+ X.catalogFilterProps && M7({ comboHidden: !0 });
};
}
-function vze() {
+function _ze() {
X.junkQueueHelpers = { badgeHtml: (e, t) => Z.srcBadge(e, t) }, X.junkQueueActions = {
navigate: (e) => {
- $l && P5(!1, !0), Q.route(e);
+ $l && F5(!1, !0), Q.route(e);
},
- toggleSelection: (e, t) => F5(e, t),
- open: (e, t) => e.junk_kind === "image" ? window.open("/photo?id=" + e.id, "_blank", "noopener") : _9(e.id, !0, null, t),
+ toggleSelection: (e, t) => I5(e, t),
+ open: (e, t) => e.junk_kind === "image" ? window.open("/photo?id=" + e.id, "_blank", "noopener") : v9(e.id, !0, null, t),
reveal: async (e) => {
try {
return await Tn("/api/reveal", {
method: "POST",
body: JSON.stringify({ id: e.id })
- }), k8.toast({ text: "已在资源管理器中显示" }), "";
+ }), A8.toast({ text: "已在资源管理器中显示" }), "";
} catch (e) {
- return l5.sourceHint(e.message);
+ return u5.sourceHint(e.message);
}
},
- operate: (e, t) => mze(e, t)
+ operate: (e, t) => pze(e, t)
};
}
-X.controller = new DLe();
+X.controller = new ELe();
// src/application/preferences.js
var Z = {
sourceOnline: void 0,
@@ -82719,8 +82719,8 @@ var Z = {
emptyState: void 0,
CENSOR_KEY: void 0
};
-async function n9() {
- let e = G8;
+async function r9() {
+ let e = K8;
try {
let t = await Sr(e.signal);
if (!e.isActive) return Z.sourceOnline;
@@ -82730,18 +82730,18 @@ async function n9() {
if (!e.isActive) return Z.sourceOnline;
Z.sourceOnline = {}, Z.sourceProblems = {};
}
- return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), tze(), Z.sourceOnline;
+ return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), eze(), Z.sourceOnline;
}
-function r9() {
+function i9() {
let e = Q.surfacePath();
- if (!jn(e) || e === "/junk-files") return W7();
+ if (!jn(e) || e === "/junk-files") return G7();
let t = Z.nextCatalogLoad();
- return Fp(S7(), {
+ return Fp(C7(), {
replace: !0,
state: Pp.navigation.location.state
}), t;
}
-function yze(e) {
+function vze(e) {
if (e === "local") return {
kind: "glyph",
name: "hard-drive"
@@ -82762,7 +82762,7 @@ function yze(e) {
cost: "free"
};
}
-function i9(e, t) {
+function a9(e, t) {
let n = (e, t = (e) => e.label || Rl(e.k)) => (e || []).map((e) => ({
value: String(e.k),
label: t(e),
@@ -82773,7 +82773,7 @@ function i9(e, t) {
value: e.k,
label: nr[e.k] || e.k,
n: e.n ?? null,
- dot: yze(e.k),
+ dot: vze(e.k),
...Z.sourceOffline(e.k) ? { offline: Z.OFFLINE_HINT } : {}
})),
regions: n(e.regions),
@@ -82786,25 +82786,25 @@ function i9(e, t) {
duration: !!e.stats?.duration
};
}
-async function bze(e = !1) {
- if (e && (document.hidden || !jn(decodeURIComponent(location.pathname)) || u9.stageOpen() || u9.immerseOpen() || $l || Zl.size || document.activeElement === L("#q"))) return !1;
+async function yze(e = !1) {
+ if (e && (document.hidden || !jn(decodeURIComponent(location.pathname)) || d9.stageOpen() || d9.immerseOpen() || $l || Zl.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") {
- D5();
+ O5();
return;
}
let n = t === "reopen" ? e : "/stats";
pm(), n === e ? Q.navigatePath(location.pathname + location.search + location.hash, !0, Pp.navigation.location.state) : Q.navigatePath(n);
} else if (L("#index").hidden) {
- U.sort = "seed", U.dir = "", U.seed = k8.rollSeed(), Cu(), F8(), j7({ refreshing: !0 });
+ U.sort = "seed", U.dir = "", U.seed = A8.rollSeed(), Cu(), I8(), M7({ refreshing: !0 });
try {
pm();
- let e = r9();
- await null, await Promise.all([e, z7()]);
+ let e = i9();
+ await null, await Promise.all([e, B7()]);
} finally {
- j7({ refreshing: !1 });
+ M7({ refreshing: !1 });
}
return e || window.scrollTo({
top: 0,
@@ -82812,75 +82812,75 @@ async function bze(e = !1) {
}), !0;
}
}
-function a9() {
+function o9() {
return document.body.classList.contains("censor");
}
-function o9(e) {
+function s9(e) {
document.body.classList.toggle("censor", e), Z.settingsStore.notify();
}
-function s9(e) {
- localStorage.setItem(Z.CENSOR_KEY, e ? "1" : "0"), o9(e), e && Pl();
+function c9(e) {
+ localStorage.setItem(Z.CENSOR_KEY, e ? "1" : "0"), s9(e), e && Pl();
}
-function c9() {
- return o1(localStorage.getItem("peach.sfw-shortcut")) || o1("Shift+KeyS");
+function l9() {
+ return s1(localStorage.getItem("peach.sfw-shortcut")) || s1("Shift+KeyS");
}
-function xze(e) {
- e ? localStorage.setItem(i1, s1(e)) : localStorage.removeItem(i1), Z.settingsStore.notify();
+function bze(e) {
+ e ? localStorage.setItem(a1, c1(e)) : localStorage.removeItem(a1), Z.settingsStore.notify();
}
-function Sze(e) {
+function xze(e) {
localStorage.setItem("peach.high-contrast", String(e)), document.documentElement.classList.toggle("board-high-contrast", e), Z.settingsStore.notify();
}
-function l9(e) {
+function u9(e) {
return jc(e, { drag: !0 });
}
-function Cze() {
- ["#nrow", "#count"].forEach((e) => l9(L(e))), document.querySelectorAll(".tier,.srow").forEach(l9);
+function Sze() {
+ ["#nrow", "#count"].forEach((e) => u9(L(e))), document.querySelectorAll(".tier,.srow").forEach(u9);
}
-function wze() {
+function Cze() {
let e = new URLSearchParams(location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
-function Tze() {
+function wze() {
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 = Qj(), Z.appSettings = Z.settingsStore.value, Zt(Z.appSettings.performerNameLanguage), Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), Qo(Z.appSettings.uiSounds), is(), nM(), Lle(), DM(), AM(), jM(), 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 = $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`), Qo(Z.appSettings.uiSounds), is(), rM(), Ile(), 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 = {
performerNameLanguage: () => {
- Zt(Z.appSettings.performerNameLanguage), V5.syncPageTitle(location.href), X.barsRendered = "", z7();
+ Zt(Z.appSettings.performerNameLanguage), H5.syncPageTitle(location.href), X.barsRendered = "", B7();
},
- theme: () => nM(),
+ theme: () => rM(),
uiSounds: () => {
Qo(Z.appSettings.uiSounds), Z.appSettings.uiSounds && $o("toggle-on");
},
- glowFrame: () => kM(),
+ glowFrame: () => AM(),
glow: () => {
- kM(), AM();
+ AM(), jM();
},
batchSize: () => {
- location.pathname === "/" && W7();
+ location.pathname === "/" && G7();
},
defaultSort: () => {
- U.sort = Z.appSettings.defaultSort, U.dir = Mj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Cu(), location.pathname === "/" && r9();
+ U.sort = Z.appSettings.defaultSort, U.dir = Nj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Cu(), location.pathname === "/" && i9();
},
sortDirection: () => {
- U.dir = Mj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Cu(), location.pathname === "/" && r9();
+ U.dir = Nj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Cu(), location.pathname === "/" && i9();
},
hoverDelay: () => {
Z.appSettings.hoverDelaySeconds || document.querySelectorAll("[data-previewing],[data-longhover]").forEach((e) => {
Il(e, "previewing", !1), Il(e, "longhover", !1);
}), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`);
},
- seekSeconds: () => t9(),
- groupCollapse: () => g7(),
- feedAutoScroll: () => $Le(),
- feedLimit: () => s5(),
- feedCompilations: () => s5(),
+ seekSeconds: () => n9(),
+ groupCollapse: () => _7(),
+ feedAutoScroll: () => QLe(),
+ feedLimit: () => c5(),
+ feedCompilations: () => c5(),
miniplayer: () => {
- Z.appSettings.miniplayer || d8()?.closeMiniplayer();
+ Z.appSettings.miniplayer || f8()?.closeMiniplayer();
},
javImage: () => {
- oo(document, Z.appSettings.javImage), t9(), document.querySelectorAll("img[data-jav-image].cover").forEach(pl), Dze();
+ oo(document, Z.appSettings.javImage), n9(), document.querySelectorAll("img[data-jav-image].cover").forEach(pl), Eze();
},
searchHistoryLimit: () => Sp(L("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })
}, Z.syncGlassOptics = () => {}, Z.placeSidebarHead = () => {}, Z.SRCICON = {
@@ -82891,11 +82891,11 @@ function Tze() {
return `<span class="${n || "src"} ${t === "metered" ? "metered" : "free"}" title="${z(r)}" aria-label="${z(r)}">` + (Z.SRCICON[e] || "") + "</span>";
}, Z.emptyState = Gs;
}
-function Eze() {
- Z.CENSOR_KEY = "peach-censor", o9(localStorage.getItem(Z.CENSOR_KEY) === "1");
+function Tze() {
+ Z.CENSOR_KEY = "peach-censor", s9(localStorage.getItem(Z.CENSOR_KEY) === "1");
}
// src/application/media.js
-var u9 = {
+var d9 = {
total: void 0,
facets: void 0,
stageHost: void 0,
@@ -82906,18 +82906,18 @@ var u9 = {
immerseOpen: void 0,
requestedImmerseId: void 0
};
-function d9() {
+function f9() {
let e = Number(new URLSearchParams(location.search).get("t"));
return Number.isFinite(e) && e > 0 ? {
time: e,
autoplay: !1
} : null;
}
-function f9() {
- return d8()?.exit() || Promise.resolve();
+function p9() {
+ return f8()?.exit() || Promise.resolve();
}
-function p9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null } = {}) {
- Q.queueOpenRequest !== r && w9(), d8()?.dispose({ miniplayer: n }), W({
+function m9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null } = {}) {
+ Q.queueOpenRequest !== r && T9(), f8()?.dispose({ miniplayer: n }), W({
activeQueue: null,
pendingQueueRoute: null,
presentedItem: null
@@ -82925,12 +82925,12 @@ function p9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null
detailOriginAnchor: null,
detailOriginAbove: !1,
detailReturnNeedsRestore: !1
- }), b7(), e && Q.route(ru || "/");
+ }), x7(), e && Q.route(ru || "/");
}
-function Dze() {
- d8()?.repaintPoster();
+function Eze() {
+ f8()?.repaintPoster();
}
-function m9(e, t, n, r, i = null, a = {}) {
+function h9(e, t, n, r, i = null, a = {}) {
t = +t;
let o = su?.kind === e && (e === "playlist" ? su.playlistId : su.seedId) === t;
r && !o && W({ detailReturnPath: location.pathname + location.search }), r && Gf();
@@ -82944,38 +82944,38 @@ function m9(e, t, n, r, i = null, a = {}) {
fresh: !o
};
if (a.autoplay && (s.autoplay = !0), r) {
- w9();
+ T9();
let e = Q.queueOpenRequest = {
seq: Pp.navigation.seq,
cancelled: !1
};
- Q.requestedQueue = () => _9(n == null ? null : +n, !1, s, i, !0, e), W({ queueOpens: hu + 1 });
- } else return _9(n == null ? null : +n, !1, s, i, r);
+ Q.requestedQueue = () => v9(n == null ? null : +n, !1, s, i, !0, e), W({ queueOpens: hu + 1 });
+ } else return v9(n == null ? null : +n, !1, s, i, r);
+}
+function Dze(e, t = e, n = !0, r = null) {
+ return h9("mix", e, t, n, r);
}
function Oze(e, t = e, n = !0, r = null) {
- return m9("mix", e, t, n, r);
+ return h9("editions", e, t, n, r);
}
function kze(e, t = e, n = !0, r = null) {
- return m9("editions", e, t, n, r);
-}
-function Aze(e, t = e, n = !0, r = null) {
- return m9("parts", e, t, n, r);
+ return h9("parts", e, t, n, r);
}
-function h9(e, t = null, n = !0) {
- return m9("playlist", e, t, n);
+function g9(e, t = null, n = !0) {
+ return h9("playlist", e, t, n);
}
-function g9() {
+function _9() {
return !!L("#grid").querySelector("[data-id],[data-mix-seed]") || !!document.querySelector("[data-video-wall]") || !L("#index").hidden || !L("#stats").hidden;
}
-async function _9(e, t = !0, n = null, r = null, i = !1, a = null) {
+async function v9(e, t = !0, n = null, r = null, i = !1, a = null) {
if (a?.cancelled) return;
- if (a || w9(), t && !n) {
- W({ detailReturnPath: location.pathname + location.search }), T9("/assets/" + +e, "item", () => _9(e, !1, null, r));
+ if (a || T9(), t && !n) {
+ W({ detailReturnPath: location.pathname + location.search }), E9("/assets/" + +e, "item", () => v9(e, !1, null, r));
return;
}
Pl(), e = e == null ? null : +e;
- let o = r?.isConnected ? r : iu?.isConnected ? iu : null, s = r?.isConnected ? r.getBoundingClientRect().top + r.getBoundingClientRect().height / 2 > window.innerHeight / 2 : au, c = g9(), l = ou || !t && !c, u = Yl.type === "item" ? Xl : l5.cloneBarsContext(f5());
- t ? W({ detailReturnPath: location.pathname + location.search }) : i || W({ detailReturnPath: Jf() || ru }), t && Gf(), d8()?.showing() !== "item" && p9(!1, !0, {
+ let o = r?.isConnected ? r : iu?.isConnected ? iu : null, s = r?.isConnected ? r.getBoundingClientRect().top + r.getBoundingClientRect().height / 2 > window.innerHeight / 2 : au, c = _9(), l = ou || !t && !c, u = Yl.type === "item" ? Xl : u5.cloneBarsContext(p5());
+ t ? W({ detailReturnPath: location.pathname + location.search }) : i || W({ detailReturnPath: Jf() || ru }), t && Gf(), f8()?.showing() !== "item" && m9(!1, !0, {
miniplayer: !1,
preserveQueueRequest: a
}), W({
@@ -82987,60 +82987,60 @@ async function _9(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, Yf("item"));
- let d = await u8(u9.stageHost);
+ let d = await d8(d9.stageHost);
if (a?.cancelled) return;
let f = a ? {
- ...u9.itemDetailActions,
+ ...d9.itemDetailActions,
present: (e, t) => {
- a.cancelled || u9.itemDetailActions.present(e, t);
+ a.cancelled || d9.itemDetailActions.present(e, t);
},
redirect: (e) => {
- a.cancelled || u9.itemDetailActions.redirect(e);
+ a.cancelled || d9.itemDetailActions.redirect(e);
}
- } : u9.itemDetailActions;
+ } : d9.itemDetailActions;
await d.open({
kind: "item",
id: e,
queue: n,
relatedLimit: Z.appSettings.relatedLimit > 0 ? +Z.appSettings.relatedLimit : 0,
- helpers: u9.itemDetailHelpers,
+ helpers: d9.itemDetailHelpers,
actions: f,
grid: {
helpers: X.gridHelpers,
actions: X.gridActions
},
- layout: Q7(),
+ layout: $7(),
selectMode: $l,
selected: new Set(Zl),
seekSeconds: Z.appSettings.seekSeconds,
- resume: t || e == null ? null : d9()
- }), b7();
+ resume: t || e == null ? null : f9()
+ }), x7();
}
-async function v9() {
- let e = l5.cloneBarsContext(Xl), t = ru || "/", n = ou;
- await f9(), p9(!1, !1, { miniplayer: !1 }), W({ detailReturnBarsContext: null }), Kf(), W({ barsContext: e || {
+async function y9() {
+ let e = u5.cloneBarsContext(Xl), t = ru || "/", n = ou;
+ await p9(), m9(!1, !1, { miniplayer: !1 }), W({ detailReturnBarsContext: null }), Kf(), 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: mu + 1 }) : (z7(), location.pathname === "/playlists" && D5()));
+ } }), n && Q.managedPagePath(new URL(t, location.href).pathname) ? Q.navigatePath(t) : (Q.route(t), n ? W({ pageOpens: mu + 1 }) : (B7(), location.pathname === "/playlists" && O5()));
}
-async function y9(e, t = !0) {
+async function b9(e, t = !0) {
if (t) {
- W({ detailReturnPath: location.pathname + location.search }), T9("/works/" + encodeURIComponent(e), "jav", () => y9(e, !1));
+ W({ detailReturnPath: location.pathname + location.search }), E9("/works/" + encodeURIComponent(e), "jav", () => b9(e, !1));
return;
}
- let n = Pp.navigation.seq, r = l5.cloneBarsContext(f5()), i = !g9(), a = Jf() || (i ? "/jav?tab=discover" : ru) || "/jav?tab=discover";
- d8()?.showing() !== "jav" && p9(!1, !0, { miniplayer: !1 }), W({
+ let n = Pp.navigation.seq, r = u5.cloneBarsContext(p5()), i = !_9(), a = Jf() || (i ? "/jav?tab=discover" : ru) || "/jav?tab=discover";
+ f8()?.showing() !== "jav" && m9(!1, !0, { miniplayer: !1 }), W({
detailReturnPath: a,
detailReturnBarsContext: r,
detailReturnNeedsRestore: i
}), Pl();
- let [o, s] = await Promise.all([u8(u9.stageHost), B("/healthz")]);
+ let [o, s] = await Promise.all([d8(d9.stageHost), B("/healthz")]);
Pp.navigation.seq === n && (await o.open({
kind: "jav",
code: e,
readOnly: !!s.ledger_read_only,
actions: {
- close: () => void v9(),
+ close: () => void y9(),
navigate: (e) => Q.navigatePath(e),
canonicalCode: (t) => {
Pp.navigation.seq === n && t && t !== e && Fp("/works/" + encodeURIComponent(t) + location.search + location.hash, {
@@ -83048,110 +83048,110 @@ async function y9(e, t = !0) {
state: Pp.navigation.location.state
});
},
- openTag: (e) => k7((t) => {
+ openTag: (e) => A7((t) => {
t.tag = e;
}),
- receipt: (e) => k8.toast({ text: e })
+ receipt: (e) => A8.toast({ text: e })
}
- }), b7());
+ }), x7());
}
-async function b9(e = null, t = !0) {
- t ? (u9.requestedImmerseId = e, Q.route("/immerse")) : (d8()?.closeMiniplayer(), await (await hLe(u9.immerseHost)).open(e));
+async function x9(e = null, t = !0) {
+ t ? (d9.requestedImmerseId = e, Q.route("/immerse")) : (f8()?.closeMiniplayer(), await (await mLe(d9.immerseHost)).open(e));
}
-function jze() {
- u9.total = 0, u9.facets = null, u9.stageHost = {
+function Aze() {
+ d9.total = 0, d9.facets = null, d9.stageHost = {
player: {
settings: () => Z.appSettings,
saveSettings: () => Z.saveSettings(),
- toast: (e, t) => k8.toast({ text: e }, t),
- loadSourceStatus: () => n9(),
+ toast: (e, t) => A8.toast({ text: e }, t),
+ loadSourceStatus: () => r9(),
offlineReason: (e) => Z.offlineReason(e)
},
sourceOffline: (e) => Z.sourceOffline(e),
expand: (e, t, n) => {
- e === "follow" ? P9(t, !0, n) : _9(t, !0);
+ e === "follow" ? F9(t, !0, n) : v9(t, !0);
},
- openItem: (e) => void _9(e)
- }, u9.stageOpen = () => !!d8()?.isOpen();
+ openItem: (e) => void v9(e)
+ }, d9.stageOpen = () => !!f8()?.isOpen();
}
-function Mze() {
- u9.itemDetailHelpers = {
+function jze() {
+ d9.itemDetailHelpers = {
badgeHtml: (e, t, n) => Z.srcBadge(e, t, n),
- titleHtml: (e) => zI(e),
- displayName: (e) => RI(e),
+ titleHtml: (e) => BI(e),
+ displayName: (e) => zI(e),
javImage: () => Z.appSettings.javImage,
tagLabel: (e) => Rl(e),
isDurationTag: (e) => ar.has(e),
- tagCandidates: () => u9.facets && u9.facets.tags || [],
+ tagCandidates: () => d9.facets && d9.facets.tags || [],
sourceOffline: (e) => Z.sourceOffline(e),
offlineReason: (e) => Z.offlineReason(e),
- relatedSkeletonHtml: () => N2("正在读取推荐", {
+ relatedSkeletonHtml: () => P2("正在读取推荐", {
cards: !0,
className: "related-skeleton"
}),
- mixRelated: (e) => w7(e),
- wireDrag: (e) => l9(e),
+ mixRelated: (e) => T7(e),
+ wireDrag: (e) => u9(e),
wireDragReorder: (e, t) => ol(e, t)
- }, u9.itemDetailActions = {
- close: () => v9(),
+ }, d9.itemDetailActions = {
+ close: () => y9(),
present: (e) => {
W({ presentedItem: e });
let t = Xl;
W({ barsContext: {
type: "item",
id: e.id,
- filters: t?.type === "entity" ? { ...t.filters } : l5.emptyEntityFilters()
- } }), cu && (Q.queueOpenRequest = null, Q.route(`/assets/${e.id}?${cu}`, !1, Yf("item")), W({ pendingQueueRoute: null })), z7();
+ filters: t?.type === "entity" ? { ...t.filters } : u5.emptyEntityFilters()
+ } }), cu && (Q.queueOpenRequest = null, Q.route(`/assets/${e.id}?${cu}`, !1, Yf("item")), W({ pendingQueueRoute: null })), B7();
},
redirect: (e) => {
let t = !!cu;
e.kind === "follow" ? (Q.queueOpenRequest = null, W({
pendingQueueRoute: null,
followDetailReturnPath: ru || "/"
- }), Q.route(`/posts/${e.id}`, !t, Yf("follow")), P9(e.id, !1, null, !0)) : e.kind === "item" ? _9(e.id, !0) : e.kind === "playlists" ? t || location.pathname !== "/playlists" ? D9("/playlists") : D5() : p9(!1);
+ }), Q.route(`/posts/${e.id}`, !t, Yf("follow")), F9(e.id, !1, null, !0)) : e.kind === "item" ? v9(e.id, !0) : e.kind === "playlists" ? t || location.pathname !== "/playlists" ? O9("/playlists") : O5() : m9(!1);
},
- openQueueItem: (e, t, n = !0) => void m9(e.kind, e.kind === "playlist" ? e.playlistId : e.seedId, t, n, null, { autoplay: e.autoplay }),
+ openQueueItem: (e, t, n = !0) => void h9(e.kind, e.kind === "playlist" ? e.playlistId : e.seedId, t, n, null, { autoplay: e.autoplay }),
reopen: () => {
let e = lu;
if (!e) return;
let t = su;
- t ? m9(t.kind, t.kind === "playlist" ? t.playlistId : t.seedId, e.id, !1) : _9(e.id, !1);
+ t ? h9(t.kind, t.kind === "playlist" ? t.playlistId : t.seedId, e.id, !1) : v9(e.id, !1);
},
- checkSource: async (e) => (await n9())[e] !== !1,
+ checkSource: async (e) => (await r9())[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", D9(O9());
+ $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followDurMin = $.followDurMax = 0, $.followFilter = "saved", O9(k9());
},
- openEntity: (e, t) => w5(e, t),
- openUnowned: () => C7({ owner: "none" }),
- openRegion: (e) => C7({ region: e || "none" }),
- openTag: (e) => k7((t) => {
+ openEntity: (e, t) => T5(e, t),
+ openUnowned: () => w7({ owner: "none" }),
+ openRegion: (e) => w7({ region: e || "none" }),
+ openTag: (e) => A7((t) => {
t.tag = e;
}),
- addToPlaylist: (e) => pRe(e),
- saveMix: (e) => fRe(e),
- editPlaylist: () => D9("/playlists"),
- openPlaylists: () => D9("/playlists"),
- reveal: (e) => y5(e),
- sync: (e) => iRe(e),
+ addToPlaylist: (e) => fRe(e),
+ saveMix: (e) => dRe(e),
+ editPlaylist: () => O9("/playlists"),
+ openPlaylists: () => O9("/playlists"),
+ reveal: (e) => b5(e),
+ sync: (e) => rRe(e),
trashChanged: async (e, t) => {
- U.state === "ads" && (t || e === "trash") && (t || (Kf(), p9(!0, !1, { miniplayer: !1 })), await W7());
+ U.state === "ads" && (t || e === "trash") && (t || (Kf(), m9(!0, !1, { miniplayer: !1 })), await G7());
},
- toast: (e, { undo: t } = {}) => k8.actionReceipt(e, { undo: t }),
- failure: (e, t) => k8.actionFailure(e, t)
- }, u9.immerseHost = {
+ toast: (e, { undo: t } = {}) => A8.actionReceipt(e, { undo: t }),
+ failure: (e, t) => A8.actionFailure(e, t)
+ }, d9.immerseHost = {
filters: () => U,
seekSeconds: () => Z.appSettings.seekSeconds,
sourceOffline: (e) => Z.sourceOffline(e),
- displayName: (e) => RI(e),
+ displayName: (e) => zI(e),
route: (e) => Q.route("/immerse?id=" + e, !0),
- closed: () => C7(),
- openItem: (e) => void _9(e),
- openEntity: (e, t) => w5(e, t),
- openUnowned: () => C7({ owner: "none" }),
- toast: (e, { undo: t } = {}) => k8.actionReceipt(e, { undo: t }),
- warn: (e) => k8.toast({ text: e }, { sound: "warning" }),
- failure: (e, t) => k8.actionFailure(e, t)
- }, u9.immerseOpen = () => !!m8()?.isOpen(), G8.handler(L("#immerseBtn"), "onclick", () => b9());
+ closed: () => w7(),
+ openItem: (e) => void v9(e),
+ openEntity: (e, t) => T5(e, t),
+ openUnowned: () => w7({ owner: "none" }),
+ toast: (e, { undo: t } = {}) => A8.actionReceipt(e, { undo: t }),
+ warn: (e) => A8.toast({ text: e }, { sound: "warning" }),
+ failure: (e, t) => A8.actionFailure(e, t)
+ }, d9.immerseOpen = () => !!h8()?.isOpen(), K8.handler(L("#immerseBtn"), "onclick", () => x9());
}
// src/application/navigation.js
var Q = {
@@ -83173,40 +83173,40 @@ var Q = {
queueOpenRequest: void 0,
initialOverlayOpened: void 0
};
-function x9() {
- let e = b8();
- e ? e.navChanged() : L("#drawerScroll")?.querySelectorAll("[data-nav]").forEach((e) => e.setAttribute("aria-pressed", String(_7(e.dataset.nav))));
+function S9() {
+ let e = x8();
+ e ? e.navChanged() : L("#drawerScroll")?.querySelectorAll("[data-nav]").forEach((e) => e.setAttribute("aria-pressed", String(v7(e.dataset.nav))));
}
-function S9(e = {}) {
+function C9(e = {}) {
let t = Q.surfacePath();
- t !== K5.sidebarSurface && (K5.sidebarSurface = t, K5.sidebarProps = {
- ...K5.sidebarProps,
+ t !== q5.sidebarSurface && (q5.sidebarSurface = t, q5.sidebarProps = {
+ ...q5.sidebarProps,
content: null,
latest: null
- }), K5.sidebarProps = {
- ...K5.sidebarProps,
+ }), q5.sidebarProps = {
+ ...q5.sidebarProps,
...e
- }, b8()?.render(K5.sidebarProps);
-}
-function C9() {
- S9(), x9(), y7();
+ }, x8()?.render(q5.sidebarProps);
}
function w9() {
+ C9(), S9(), b7();
+}
+function T9() {
Q.queueOpenRequest && (Q.queueOpenRequest.cancelled = !0), Q.queueOpenRequest = null, Q.requestedQueue = null, W({ pendingQueueRoute: null });
}
-function T9(e, t, n) {
- w9(), Gf(), Q.requestedOverlay = {
+function E9(e, t, n) {
+ T9(), Gf(), Q.requestedOverlay = {
path: e,
open: n
}, Q.route(e, !1, Yf(t));
}
-function E9() {
- Q.surfaceEpoch++, X.barsRequestSeq++, V5.syncPageTitle(location.href), S9(), Kf();
+function D9() {
+ Q.surfaceEpoch++, X.barsRequestSeq++, H5.syncPageTitle(location.href), C9(), Kf();
}
-function D9(e) {
+function O9(e) {
Q.route(e), W({ pageOpens: mu + 1 });
}
-function Nze() {
+function Mze() {
Q.routeMeta = (e) => {
let t = tp(e);
return t ? { route: t } : null;
@@ -83214,7 +83214,7 @@ function Nze() {
let t = tp(e);
return !!t && t.reload !== "reopen" && !Q.catalogPage(e) && !Vf(e) && e !== "/immerse";
}, Q.openRoutePath = (e) => {
- e === "/immerse" ? b9(wze()) : e === "/follow" ? N9() : e === "/playlists" || Q.catalogPage(e) ? D9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? jRe() : e) : (P5(!1, !0), D9(R5({
+ e === "/immerse" ? x9(Cze()) : e === "/follow" ? P9() : e === "/playlists" || Q.catalogPage(e) ? O9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? ARe() : e) : (F5(!1, !0), O9(z5({
kind: e.slice(1),
q: "",
scope: "local",
@@ -83223,34 +83223,34 @@ function Nze() {
})));
};
}
-function Pze() {
+function Nze() {
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) => (a5(e) || o5(), Cp(L("#stats"), L("#index")), !jn(e) && e !== "/trash" && K7(), Q.surfaceRequests?.abort(), Q.surfaceRequests = new AbortController(), Q.surfaceEpoch++, Q.surfaceToken(e)), Q.route = (e, t = !1, n) => {
+ }), Q.surfaceCurrent = (e) => e.epoch === Q.surfaceEpoch && Q.surfacePath() === e.path, Q.claimSurface = (e) => (o5(e) || s5(), Cp(L("#stats"), L("#index")), !jn(e) && e !== "/trash" && q7(), Q.surfaceRequests?.abort(), Q.surfaceRequests = new AbortController(), Q.surfaceEpoch++, Q.surfaceToken(e)), Q.route = (e, t = !1, n) => {
Q.surfaceEpoch++, X.barsRequestSeq++, Fp(e, {
replace: t,
state: n
- }), V5.syncPageTitle(e), queueMicrotask(() => {
- y7(), a7(), S9();
+ }), H5.syncPageTitle(e), queueMicrotask(() => {
+ b7(), o7(), C9();
});
}, Q.navigatePath = (e, t = !1, n) => {
t ? Pp.replace(e, n) : Pp.push(e, n), queueMicrotask(() => {
- y7(), a7();
+ b7(), o7();
});
}, Q.requestedOverlay = null, Q.requestedQueue = null, Q.queueOpenRequest = null, Q.initialOverlayOpened = !1;
}
// src/jobs.ts
-function Fze(e, t, n) {
+function Pze(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 Ize(e, t = 0, n = 0) {
- return n > 0 ? Fze(e, t, n) : Us(e);
+function Fze(e, t = 0, n = 0) {
+ return n > 0 ? Pze(e, t, n) : Us(e);
}
-async function Lze(e) {
+async function Ize(e) {
let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;
for (; e.active();) {
let r;
@@ -83265,14 +83265,14 @@ async function Lze(e) {
await t(2e3);
}
}
-function Rze(e) {
+function Lze(e) {
let t = e.note || ((e) => Bs(e, {
label: "任务状态",
variant: "error"
- })), n = e.loading || Us, r = e.progress || ((e, t, n) => Ize(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 || Us, r = e.progress || ((e, t, n) => Fze(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;
- Lze({
+ Ize({
read: e.read,
active: () => !c && e.active() && a.isConnected,
keepWatching: e.watchIdle !== !1,
@@ -83321,25 +83321,25 @@ var $ = {
FOLLOW_MANAGE_TABS: void 0,
followSidebarFilters: void 0
};
-function zze(e) {
+function Rze(e) {
let t = (e.results || []).filter((e) => !e.ok).length;
- k8.toast({ text: Ui(e) }, {
+ A8.toast({ text: Ui(e) }, {
warn: !!t,
timeout: t ? 8e3 : 6e3,
sound: t ? "warning" : "success",
action: {
label: "查看",
- run: () => N9(!0)
+ run: () => P9(!0)
}
});
}
-function O9() {
- return Aa(k9());
+function k9() {
+ return Aa(A9());
}
-function Bze() {
+function zze() {
return $.controller.read();
}
-function k9() {
+function A9() {
return {
status: $.followFilter,
media: $.followMediaView,
@@ -83354,33 +83354,33 @@ function k9() {
seed: $.followSeed
};
}
-function A9(e) {
+function j9(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 Vze() {
+function Bze() {
let e = hp(L("#stats"));
return e && e.path === "/follow" && e.host.isConnected ? e : null;
}
-function j9() {
- return !!Vze();
+function M9() {
+ return !!Bze();
}
-function M9(e) {
- j9() && Sp(L("#stats"), e);
+function N9(e) {
+ M9() && Sp(L("#stats"), e);
}
-function Hze(e, t = {}) {
+function Vze(e, t = {}) {
return $.controller.route(e, t);
}
-function N9(e = !1) {
+function P9(e = !1) {
$.controller.enter(e);
}
-async function P9(e, t = !0, n = null, r = !1) {
+async function F9(e, t = !0, n = null, r = !1) {
if (t) {
- !location.pathname.startsWith("/posts/") && !r && W({ followDetailReturnPath: location.pathname + location.search }), T9(`/posts/${+e}`, "follow", () => P9(e, !1, n, r));
+ !location.pathname.startsWith("/posts/") && !r && W({ followDetailReturnPath: location.pathname + location.search }), E9(`/posts/${+e}`, "follow", () => F9(e, !1, n, r));
return;
}
Pl(), e = +e;
let i = !location.pathname.startsWith("/posts/");
- t && i && !r && W({ followDetailReturnPath: location.pathname + location.search }), !t && !r && W({ followDetailReturnPath: Jf() || "/follow" }), t && Gf(), d8()?.showing() !== "follow" && p9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, Yf("follow")), await (await u8(u9.stageHost)).open({
+ t && i && !r && W({ followDetailReturnPath: location.pathname + location.search }), !t && !r && W({ followDetailReturnPath: Jf() || "/follow" }), t && Gf(), f8()?.showing() !== "follow" && m9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, Yf("follow")), await (await d8(d9.stageHost)).open({
kind: "follow",
id: e,
mediaIndex: n,
@@ -83388,67 +83388,67 @@ async function P9(e, t = !0, n = null, r = !1) {
relatedLimit: Z.appSettings.relatedLimit > 0 ? +Z.appSettings.relatedLimit : 0,
helpers: $.followFeedHelpers,
actions: $.followDetailActions,
- resume: t ? null : d9()
- }), b7();
+ resume: t ? null : f9()
+ }), x7();
}
-async function Uze() {
- await f9(), p9(!1, !1, { miniplayer: !1 }), Kf(), Q.route(uu || "/follow"), !(l5.entityPageView && l5.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && j9() ? (Bze(), M9({ view: k9() })) : W({ pageOpens: mu + 1 }));
+async function Hze() {
+ await p9(), m9(!1, !1, { miniplayer: !1 }), Kf(), Q.route(uu || "/follow"), !(u5.entityPageView && u5.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && M9() ? (zze(), N9({ view: A9() })) : W({ pageOpens: mu + 1 }));
}
-function Wze(e) {
+function Uze(e) {
let t = document.createElement("div");
return t.className = "peach-react", ac(e, () => {
e.textContent = "", e.append(t);
}), t;
}
-function Gze() {
+function Wze() {
$.followFeedHelpers = Bl({
wireDrag: (e) => {
- e && l9(e);
+ e && u9(e);
},
wireScroller: (e) => {
e && jc(e);
},
listSkeletonHtml: (e) => $.followContentSkeletonHtml(e),
- jobProgress: Rze
+ jobProgress: Lze
}), $.followFeedActions = {
- loaded: (e) => X5(e),
- openDetail: (e) => P9(e),
+ loaded: (e) => Z5(e),
+ openDetail: (e) => F9(e),
openAuthor: (e) => Q.navigatePath(Pn("creator", e)),
- toggleSelection: (e, t) => yRe(e, t),
+ toggleSelection: (e, t) => vRe(e, t),
setImagesOnly: (e) => {
- Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), g5();
+ Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), _5();
},
setPhotoLayout: (e) => {
- yM(e), g5();
+ bM(e), _5();
},
- canFlip: () => !$l && !a9() && !window.__scrolling && !X.reduceMotion(),
- toast: (e, { undo: t } = {}) => k8.actionReceipt(e, { undo: t }),
- failure: (e, t) => k8.actionFailure(e, t),
- checkReport: (e) => zze(e)
+ canFlip: () => !$l && !o9() && !window.__scrolling && !X.reduceMotion(),
+ toast: (e, { undo: t } = {}) => A8.actionReceipt(e, { undo: t }),
+ failure: (e, t) => A8.actionFailure(e, t),
+ checkReport: (e) => Rze(e)
}, $.followFeedShell = {
skeleton: () => $.followSkeletonHtml("正在读取关注内容"),
ground: () => {
- d8()?.showing() !== "follow" && (Pl(), p9(!1), J5(), !j9() && (Q.claimSurface(Q.surfacePath()), q5({ manage: !1 }), L("#stats").querySelector(".peach-react") && Cp(L("#stats")), L("#stats").replaceChildren()));
+ f8()?.showing() !== "follow" && (Pl(), m9(!1), Y5(), !M9() && (Q.claimSurface(Q.surfacePath()), J5({ manage: !1 }), L("#stats").querySelector(".peach-react") && Cp(L("#stats")), L("#stats").replaceChildren()));
}
}, $.followDetailActions = Jl({
- view: k9,
- adoptView: A9,
+ view: A9,
+ adoptView: j9,
rememberReturn: (e) => W({ followDetailReturnPath: e }),
- close: () => void Uze(),
- open: (e, t, n) => void P9(e, !0, t, n),
- drawer: X5,
+ close: () => void Hze(),
+ open: (e, t, n) => void F9(e, !0, t, n),
+ drawer: Z5,
openAuthor: (e) => Q.navigatePath(Pn("creator", e))
}, {
- toast: (e, { undo: t } = {}) => k8.actionReceipt(e, { undo: t }),
- failure: k8.actionFailure,
+ toast: (e, { undo: t } = {}) => A8.actionReceipt(e, { undo: t }),
+ failure: A8.actionFailure,
canFlip: $.followFeedActions.canFlip
});
}
-function Kze() {
+function Gze() {
$.controller = Na({
location: () => location,
- view: k9,
- adoptView: A9,
+ view: A9,
+ adoptView: j9,
session: () => ({
discoverySeed: _u,
revision: vu,
@@ -83462,50 +83462,50 @@ function Kze() {
preferences: () => ({
selectMode: $l,
selected: Ql,
- photoSize: pM(),
- photoLayout: mM(),
+ photoSize: mM(),
+ photoLayout: hM(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
- live: j9,
- push: M9,
+ live: M9,
+ push: N9,
route: (e) => {
Q.route(e), hm("follow", {
- view: k9(),
+ view: A9(),
seed: _u,
revision: vu
});
},
- openPage: D9,
- rollSeed: () => Number(k8.rollSeed()),
+ openPage: O9,
+ rollSeed: () => Number(A8.rollSeed()),
enterSeed: () => Math.floor(Math.random() * 4294967295),
revealFeed: () => {
- Pl(), J5(), q5({ manage: !1 });
+ Pl(), Y5(), J5({ manage: !1 });
},
- syncPhotoWalls: g5,
+ syncPhotoWalls: _5,
scrollTop: () => {
ym(() => 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 qze() {
- EDe(), $c(document), zo(document.documentElement, { variant: "page" }), zo(L("#drawerScroll")), G8.own(Xc()), Ga(document.body), X.homeHasFeed = XLe(), X.barsRequestSeq = 0, X.barsPendingSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, K5.sidebarProps = {
+function Kze() {
+ TDe(), $c(document), zo(document.documentElement, { variant: "page" }), zo(L("#drawerScroll")), K8.own(Xc()), Ga(document.body), X.homeHasFeed = YLe(), X.barsRequestSeq = 0, X.barsPendingSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, q5.sidebarProps = {
content: null,
filters: {},
latest: null
- }, K5.sidebarSurface = "", K5.sidebarCatalog = null, K5.sidebarContentSeq = 0, $.followFilter = "", $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.FOLLOW_FEED_SORTS = [
+ }, q5.sidebarSurface = "", q5.sidebarCatalog = null, q5.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 Jze() {
- vU({ reopen: !0 });
+async function qze() {
+ yU({ reopen: !0 });
}
-function Yze() {
+function Jze() {
let e = new URL(location.href), t = e.searchParams.get("onboarding") === "1";
- W({ cameFromSetup: t }), G8.handler(document.getElementById("tutorialBtn"), "onclick", () => vU()), vU({ invitation: !0 }), t && e.searchParams.delete("onboarding");
+ W({ cameFromSetup: t }), K8.handler(document.getElementById("tutorialBtn"), "onclick", () => yU()), yU({ invitation: !0 }), t && e.searchParams.delete("onboarding");
let n = e.searchParams.get("agentation");
try {
localStorage.removeItem("peach.agentation");
@@ -83516,7 +83516,7 @@ function Yze() {
}), n === "on" && import("/dev/agentation.js").catch(() => {});
}
// src/react/search/recommendations.ts
-var Xze = [
+var Yze = [
{
kind: "performer",
label: "艺人与新作",
@@ -83567,15 +83567,15 @@ var Xze = [
size: 5
}
];
-function Zze() {
- return Xze.map((e) => ({
+function Xze() {
+ return Yze.map((e) => ({
...e,
items: [],
pending: !0
}));
}
-var Qze = (e) => e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10), $ze = (e, t = e.length) => t > 1 ? `${e[0]} 等 ${t} 人` : e[0] || "";
-async function eBe(e) {
+var Zze = (e) => e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10), Qze = (e, t = e.length) => t > 1 ? `${e[0]} 等 ${t} 人` : e[0] || "";
+async function $ze(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,
@@ -83589,10 +83589,10 @@ async function eBe(e) {
let { kind: t, name: r, coStarred: i, refs: a, total: o } = jo(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 ? $ze([c], o) : c, yo(r, s ?? null, t));
+ return n(e, void 0, i ? Qze([c], o) : c, yo(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] ? yo(i[0], r[0] ?? null, "performer") : "";
- return n(e, t, $ze(i), a);
+ return n(e, t, Qze(i), a);
}, a = {};
a.asset = t.items ? (t.items.items || []).map(r) : null;
let o = t.jav ? t.jav.items || [] : null;
@@ -83610,7 +83610,7 @@ async function eBe(e) {
avatar_focus: n.avatar_focus,
rep: n.has_avatar ? n.rep : null,
works: [e],
- subtitle: r ? `最新作 ${r.code || "无番号"} · ${Qze(r.release_date)}` : "最新作未取得"
+ subtitle: r ? `最新作 ${r.code || "无番号"} · ${Zze(r.release_date)}` : "最新作未取得"
});
}
a.performer = o && [...s.values()];
@@ -83625,9 +83625,9 @@ async function eBe(e) {
let i = ga(r);
for (let a of ["videos", "images"]) {
if (a === "images" ? !i.has("image") : i.size && !i.has("video")) continue;
- let o = _a(r, a), s = n.sources.find((e) => e.id === o.source_id), c = mG(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 = _a(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;
(a === "images" ? t : e).push({
- value: uG(o),
+ value: dG(o),
id: o.id,
who: c.author,
whoAvatarHtml: c.avatar,
@@ -83649,10 +83649,10 @@ async function eBe(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: U8(e),
- subtitle: e.latest ? `最新更新于 ${bG({ published_at: e.latest })}` : "更新时间未取得"
+ avatarHtml: W8(e),
+ subtitle: e.latest ? `最新更新于 ${xG({ published_at: e.latest })}` : "更新时间未取得"
})) : null, {
- groups: Xze.map((e) => {
+ groups: Yze.map((e) => {
let t = a[e.kind] ?? [];
return {
...e,
@@ -83665,7 +83665,7 @@ async function eBe(e) {
};
}
// src/application/search-morph.js
-function tBe(e, t, n, r, i, a, o) {
+function eBe(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);
@@ -83680,67 +83680,67 @@ function tBe(e, t, n, r, i, a, o) {
});
}
// src/application/search.js
-var F9 = {
+var I9 = {
searchControl: void 0,
searchActions: void 0,
searchHelpers: void 0,
searchMorph: void 0,
searchMorphViewport: void 0
};
-function I9() {
- F9.searchControl?.close();
+function L9() {
+ I9.searchControl?.close();
}
-function nBe(e) {
+function tBe(e) {
let t = e ? no({
...e,
is_jav: !!e.code
}, Z.appSettings.javImage) : "";
return t === "cover" ? Co(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 L9() {
- F9.searchMorph?.cancel(), F9.searchMorph = null, L(".search").classList.remove("search-morphing");
+function R9() {
+ I9.searchMorph?.cancel(), I9.searchMorph = null, L(".search").classList.remove("search-morphing");
}
-function R9(e) {
+function z9(e) {
let t = L(".search"), n = L("#searchBtn");
if (t.classList.contains("open") === e) return;
- let r = !!F9.searchMorph, i = t.getBoundingClientRect(), a = parseFloat(getComputedStyle(t).paddingLeft);
- L9(), t.classList.remove("open");
+ let r = !!I9.searchMorph, i = t.getBoundingClientRect(), a = parseFloat(getComputedStyle(t).paddingLeft);
+ R9(), 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 = Wc();
t.classList.add("search-morphing");
- let h = t.animate(tBe(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
+ let h = t.animate(eBe(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
duration: m.duration,
easing: "linear",
fill: "both"
});
- F9.searchMorph = h, G8.handler(h, "onfinish", () => {
- F9.searchMorph === h && L9();
+ I9.searchMorph = h, K8.handler(h, "onfinish", () => {
+ I9.searchMorph === h && R9();
});
}
-function rBe() {
- return u9.immerseOpen() ? m8().activeVideo() : d8()?.activeVideo() || null;
+function nBe() {
+ return d9.immerseOpen() ? h8().activeVideo() : f8()?.activeVideo() || null;
}
-function iBe(e) {
+function rBe(e) {
return !!e && (e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable);
}
-function aBe() {
- F9.searchControl = null, F9.searchActions = {
+function iBe() {
+ I9.searchControl = null, I9.searchActions = {
search: (e) => {
- X.rememberSearchValue(), p9(!1), U.q = e, Cu(), Q.route(U.jav === "1" ? S7() : U.q ? "/?q=" + encodeURIComponent(U.q) : "/", !0);
+ X.rememberSearchValue(), m9(!1), U.q = e, Cu(), Q.route(U.jav === "1" ? C7() : U.q ? "/?q=" + encodeURIComponent(U.q) : "/", !0);
},
- openItem: (e) => _9(e),
- openEntity: (e, t) => w5(e, t),
+ openItem: (e) => v9(e),
+ openEntity: (e, t) => T5(e, t),
openPath: (e) => Q.route(e, !1),
openFollow: (e, t, n) => {
- $.followMediaView = t, P9(e, !0, n);
+ $.followMediaView = t, F9(e, !0, n);
}
- }, F9.searchHelpers = {
- pool: () => Xxe(U, Tn),
- recommendations: () => eBe(Tn),
- pendingRecommendations: Zze,
+ }, I9.searchHelpers = {
+ pool: () => Yxe(U, Tn),
+ recommendations: () => $ze(Tn),
+ pendingRecommendations: Xze,
rollPlaceholder: (e, t) => $s(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 ? Q8(e) : nBe(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 ? $8(e) : tBe(e)}</span>`,
present: (e) => ls(e),
dismiss: (e) => us(e),
wireScroller: (e) => jc(e),
@@ -83758,67 +83758,67 @@ function aBe() {
}, bp("search", {
input: L("#q"),
historyLimit: Z.appSettings.searchHistoryLimit,
- actions: F9.searchActions,
- helpers: F9.searchHelpers,
+ actions: I9.searchActions,
+ helpers: I9.searchHelpers,
expose: (e) => {
- F9.searchControl = e;
+ I9.searchControl = e;
}
}, {
container: L("#searchMenu"),
isCurrent: () => !0
- }), G8.listen(L("#q"), "beforeinput", (e) => {
+ }), K8.listen(L("#q"), "beforeinput", (e) => {
e.isComposing || X.rememberSearchValue(e.currentTarget);
- }), G8.listen(L("#q"), "scroll", (e) => {
+ }), K8.listen(L("#q"), "scroll", (e) => {
e.currentTarget.value && X.rememberSearchValue(e.currentTarget);
- }), G8.listen(L("#q"), "pointerdown", (e) => {
+ }), K8.listen(L("#q"), "pointerdown", (e) => {
e.currentTarget.value && X.rememberSearchValue(e.currentTarget);
});
}
-function oBe() {
- F9.searchMorph = null, F9.searchMorphViewport = innerWidth, G8.listen.bind(G8, window)("resize", () => {
- innerWidth !== F9.searchMorphViewport && (F9.searchMorphViewport = innerWidth, L9());
- }, { passive: !0 }), G8.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", L9), G8.handler(L("#searchBtn"), "onclick", () => {
- R9(!0), L("#q").focus({ preventScroll: !0 });
- }), G8.handler(L("#searchBack"), "onclick", () => {
- R9(!1), I9(), L("#q").blur(), L("#searchBtn").focus({ preventScroll: !0 });
+function aBe() {
+ I9.searchMorph = null, I9.searchMorphViewport = innerWidth, K8.listen.bind(K8, window)("resize", () => {
+ innerWidth !== I9.searchMorphViewport && (I9.searchMorphViewport = innerWidth, R9());
+ }, { passive: !0 }), K8.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", R9), K8.handler(L("#searchBtn"), "onclick", () => {
+ z9(!0), L("#q").focus({ preventScroll: !0 });
+ }), K8.handler(L("#searchBack"), "onclick", () => {
+ z9(!1), L9(), 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 || R9(!1), I9());
+ e.target.closest(".search") || (e.type !== "focusin" || e.target !== document.body && e.target !== document.documentElement) && (L("#q").value || z9(!1), L9());
};
- G8.listen(document, "pointerdown", e, !0), G8.listen(document, "focusin", e), G8.handler(L("#brandHome"), "onclick", (e) => {
- e.preventDefault(), C7();
- }), G8.listen(document, "keydown", (e) => {
+ K8.listen(document, "pointerdown", e, !0), K8.listen(document, "focusin", e), K8.handler(L("#brandHome"), "onclick", (e) => {
+ e.preventDefault(), w7();
+ }), K8.listen(document, "keydown", (e) => {
if (e.key === "Escape") {
- let t = _8();
+ let t = v8();
if (t?.isOpen()) {
t.close();
return;
}
if (!L("#searchMenu").hidden) {
- I9();
+ L9();
return;
}
- if (u9.immerseOpen()) {
- m8().close();
+ if (d9.immerseOpen()) {
+ h8().close();
return;
}
- if (u9.stageOpen()) {
- e.defaultPrevented || (e.preventDefault(), d8().requestEscape());
+ if (d9.stageOpen()) {
+ e.defaultPrevented || (e.preventDefault(), f8().requestEscape());
return;
}
if (L("#drawer").classList.contains("open")) {
- $5(!1);
+ e7(!1);
return;
}
if ($l || Zl.size || Ql.size) {
- P5(!1, !0);
+ F5(!1, !0);
return;
}
return;
}
- if (iBe(e.target)) return;
- if (!e.defaultPrevented && hje(e, c9())) {
- e.preventDefault(), s9(!a9());
+ if (rBe(e.target)) return;
+ if (!e.defaultPrevented && mje(e, l9())) {
+ e.preventDefault(), c9(!o9());
return;
}
if (e.ctrlKey || e.metaKey || e.altKey) return;
@@ -83829,37 +83829,37 @@ function oBe() {
return;
}
}
- let t = rBe();
+ let t = nBe();
if (t) {
if (e.key === "t" || e.key === "T") {
- e.preventDefault(), d8()?.toggleTheater();
+ e.preventDefault(), f8()?.toggleTheater();
return;
}
if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
- e.preventDefault(), nP(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
+ e.preventDefault(), rP(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
return;
}
if (e.key === " " || e.key === "k" || e.key === "K") {
- e.preventDefault(), tP(t);
+ e.preventDefault(), nP(t);
return;
}
if (e.key === "m" || e.key === "M") {
- e.preventDefault(), gN(t, ".vjs-mute-control");
+ e.preventDefault(), _N(t, ".vjs-mute-control");
return;
}
if (e.key === "f" || e.key === "F") {
- e.preventDefault(), gN(t, ".vjs-fullscreen-control");
+ e.preventDefault(), _N(t, ".vjs-fullscreen-control");
return;
}
if (e.key === "i" || e.key === "I") {
- e.preventDefault(), d8()?.toggleMiniplayer();
+ e.preventDefault(), f8()?.toggleMiniplayer();
return;
}
}
});
}
// src/history/links.ts
-function sBe(e) {
+function oBe(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;
@@ -83878,74 +83878,74 @@ function sBe(e) {
return n.startsWith("#") && !a?.section || !Bf(i.pathname, i.search) && !a ? null : i.pathname + i.search + i.hash;
}
// src/application/composition.js
-var z9 = {
+var B9 = {
shellActions: void 0,
routing: void 0
};
-function cBe() {
- let e = G8, t = (e) => {
- e.kind === "item" ? _9(e.id, !1) : e.kind === "jav" ? y9(e.code, !1) : e.kind === "follow" ? P9(e.id, !1) : m9(e.queue, e.key, e.item, !1);
+function sBe() {
+ let e = K8, t = (e) => {
+ e.kind === "item" ? v9(e.id, !1) : e.kind === "jav" ? b9(e.code, !1) : e.kind === "follow" ? F9(e.id, !1) : h9(e.queue, e.key, e.item, !1);
};
- if (YLe(), V5.entityShapesReady = $8(), LRe(), location.pathname === "/") {
+ if (JLe(), H5.entityShapesReady = e5(), IRe(), location.pathname === "/") {
let e = new URLSearchParams(location.search);
- !e.has("state") && e.get("jav") !== "1" && (L("#catalogPageHeading").hidden = !1, o7(L("#catalogPageHeading"), e.get("q")));
+ !e.has("state") && e.get("jav") !== "1" && (L("#catalogPageHeading").hidden = !1, s7(L("#catalogPageHeading"), e.get("q")));
}
- a5(decodeURIComponent(location.pathname)) && n5(L("#feedNew")), GRe(), z9.shellActions = {
- openSettings: (e) => t7(e, !0),
- closeSettings: () => _8()?.close(!1),
- openItem: (e) => void _9(e),
- openEntity: (e, t) => void w5(e, t),
+ o5(decodeURIComponent(location.pathname)) && r5(L("#feedNew")), WRe(), B9.shellActions = {
+ openSettings: (e) => n7(e, !0),
+ closeSettings: () => v8()?.close(!1),
+ openItem: (e) => void v9(e),
+ openEntity: (e, t) => void T5(e, t),
openTag: (e) => {
- VRe(), V7(e);
+ BRe(), H7(e);
},
- openTasteSignal: dRe,
+ openTasteSignal: uRe,
navigate: (e) => {
let n = new URL(e, location.href), r = Bf(n.pathname, n.search);
if (r) {
let e = r.kind === "queue" ? "item" : r.kind;
- T9(n.pathname + n.search + n.hash, e, () => t(r));
+ E9(n.pathname + n.search + n.hash, e, () => t(r));
} else if (n.hash && n.pathname === location.pathname && n.search === location.search && !Vf(location.pathname)) {
Q.route(e);
let t = Pp.navigation.seq;
zp(n.hash, () => Pp.navigation.seq === t);
} else Q.navigatePath(e);
},
- openManage: l7,
+ openManage: u7,
managePath: (e) => Q.routePathOf("section", e) || "",
- openFollow: () => N9(),
- receipt: (e, t) => k8.actionReceipt(e, t),
- toast: (e, t) => k8.toast(e, t),
- failure: k8.actionFailure,
- revealSource: y5,
- reopenTutorial: Jze,
- routeReview: mRe,
- routeFollowManage: ARe,
+ openFollow: () => P9(),
+ receipt: (e, t) => A8.actionReceipt(e, t),
+ toast: (e, t) => A8.toast(e, t),
+ failure: A8.actionFailure,
+ revealSource: b5,
+ reopenTutorial: qze,
+ routeReview: pRe,
+ routeFollowManage: kRe,
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(R5(e), t),
+ routeIndex: (e, { replace: t = !1 } = {}) => Q.route(z5(e), t),
savePeopleLayout: ({ layout: e }) => {
Z.appSettings.peopleLayout = e, Z.saveSettings();
},
- exitSelectMode: () => P5(!1, !1),
- personAvatar: (e, t, n) => L5.personAvatar(e, t, n),
- authorAvatar: (e) => MRe(e),
- showIndexTags: NRe,
- openFollowAuthor: B5,
- openFollowTag: PRe,
- openPlaylist: (e, t) => void h9(e, t, !0),
- canFlip: () => !$l && !a9() && !window.__scrolling && !X.reduceMotion(),
+ exitSelectMode: () => F5(!1, !1),
+ personAvatar: (e, t, n) => R5.personAvatar(e, t, n),
+ authorAvatar: (e) => jRe(e),
+ showIndexTags: MRe,
+ openFollowAuthor: V5,
+ openFollowTag: NRe,
+ openPlaylist: (e, t) => void g9(e, t, !0),
+ canFlip: () => !$l && !o9() && !window.__scrolling && !X.reduceMotion(),
surfaceChanged: (e, t) => {
e === "entity" ? (Pl(), W({ barsContext: {
type: "home",
filters: U
- } }), Y5(), document.body.classList.add("entity-open"), A7(), z5()) : e === "index" ? (Pl(), document.body.classList.remove("entity-open"), Q.claimSurface(t), Y5(), document.body.classList.add("index-open"), A7(), z5()) : (Pl(), Q.claimSurface(t), e === "catalog" ? Y5() : (J5(), q5({ manage: e === "management" })));
+ } }), X5(), document.body.classList.add("entity-open"), j7(), B5()) : e === "index" ? (Pl(), document.body.classList.remove("entity-open"), Q.claimSurface(t), X5(), document.body.classList.add("index-open"), j7(), B5()) : (Pl(), Q.claimSurface(t), e === "catalog" ? X5() : (Y5(), J5({ manage: e === "management" })));
},
clearSearch: () => X.clearSearchField(),
openImmerse: (e) => {
- let t = u9.requestedImmerseId === void 0 ? e : u9.requestedImmerseId;
- u9.requestedImmerseId = void 0, b9(t, !1);
+ let t = d9.requestedImmerseId === void 0 ? e : d9.requestedImmerseId;
+ d9.requestedImmerseId = void 0, x9(t, !1);
},
openQueueRequest: () => {
let e = Q.requestedQueue;
@@ -83956,7 +83956,7 @@ function cBe() {
Q.requestedOverlay = null, Pp.navigation.claimed && (!Ip() || Q.initialOverlayOpened) ? n?.path === location.pathname + location.search + location.hash && n.open() : (Ip() && (Q.initialOverlayOpened = !0), t(e));
},
closeStage: () => {
- u9.stageOpen() && p9(!1);
+ d9.stageOpen() && m9(!1);
},
grid: {
helpers: X.gridHelpers,
@@ -83964,60 +83964,60 @@ function cBe() {
},
configurable: () => !!fu,
surfaceShown: (e) => {
- e === "index" ? (C9(), b7()) : z7();
+ e === "index" ? (w9(), x7()) : B7();
},
entity: {
missing: (e) => {
- z9.shellActions.surfaceChanged("entity", location.pathname), C5(e);
+ B9.shellActions.surfaceChanged("entity", location.pathname), w5(e);
},
- loading: (e, t, n) => l5.application.loading(e, t, n),
- props: (e, t, n) => l5.application.addressProps(e, t, n),
+ loading: (e, t, n) => u5.application.loading(e, t, n),
+ props: (e, t, n) => u5.application.addressProps(e, t, n),
refresh: (e, t, n) => {
- let r = l5.parseEntityFilters(n);
+ let r = u5.parseEntityFilters(n);
e === "creator" && (r.creator = "");
- let i = f5();
- return i.type !== "entity" || i.kind !== e || i.name !== t || !m5(e, t, r, l5.parseMediaView(n), { push: !1 }) ? !1 : (D7(r), O7(f5()), !0);
+ let i = p5();
+ return i.type !== "entity" || i.kind !== e || i.name !== t || !h5(e, t, r, u5.parseMediaView(n), { push: !1 }) ? !1 : (O7(r), k7(p5()), !0);
}
},
follow: $.followFeedShell,
catalog: {
- defaultLoc: () => x7("local,115"),
- open: (e, { entering: t = !1, retitle: n = !1 } = {}) => (n && (E9(), y7(), a7()), t && F8(), e === "/trash" ? X.clearSearchField() : (L("#q").value = U.q, X.rememberSearchValue()), C9(), z7(), Z.handOff(W7())),
- load: () => Z.handOff(W7()),
+ defaultLoc: () => S7("local,115"),
+ open: (e, { entering: t = !1, retitle: n = !1 } = {}) => (n && (D9(), b7(), o7()), t && I8(), e === "/trash" ? X.clearSearchField() : (L("#q").value = U.q, X.rememberSearchValue()), w9(), B7(), Z.handOff(G7())),
+ load: () => Z.handOff(G7()),
fill: () => {
- if (Y7() || !Ip() && !L("#grid").querySelector(".catalog-skeleton")) return;
+ if (X7() || !Ip() && !L("#grid").querySelector(".catalog-skeleton")) return;
let e = L("#count");
- e.removeAttribute("aria-busy"), e.removeAttribute("aria-label"), q7(Q.surfaceToken(Q.surfacePath()));
+ e.removeAttribute("aria-busy"), e.removeAttribute("aria-label"), J7(Q.surfaceToken(Q.surfacePath()));
},
release: () => {
- K7(), o5();
- }
- }
- }, z9.routing = !1, e.listen(document, "click", (e) => {
- let t = sBe(e);
- t && (e.preventDefault(), z9.shellActions.navigate(t));
- }), G8.own(Pp.listen((e) => {
- Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !Vf(e.location.pathname) && p9(!1), z9.routing && !e.claimed && E9();
- })), pLe(z9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), JRe(), wRe(), r7(), Promise.all([
- n9(),
- KRe(),
- V5.entityShapesReady
+ q7(), s5();
+ }
+ }
+ }, B9.routing = !1, e.listen(document, "click", (e) => {
+ let t = oBe(e);
+ t && (e.preventDefault(), B9.shellActions.navigate(t));
+ }), K8.own(Pp.listen((e) => {
+ Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !Vf(e.location.pathname) && m9(!1), B9.routing && !e.claimed && D9();
+ })), fLe(B9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), qRe(), CRe(), i7(), Promise.all([
+ r9(),
+ GRe(),
+ H5.entityShapesReady
]).then(() => {
- e.isActive && (V5.wantsDiscoveryBars() && z7().catch((e) => console.error("首页横条装载失败", e)), C9(), Cze(), z9.routing = !0, W({ pageOpens: 1 }), E9(), b7());
+ e.isActive && (H5.wantsDiscoveryBars() && B7().catch((e) => console.error("首页横条装载失败", e)), w9(), Sze(), B9.routing = !0, W({ pageOpens: 1 }), D9(), x7());
}).catch((t) => {
e.isActive && console.error("应用启动失败", t);
});
}
// src/theme-transition.ts
-var B9 = !1;
-async function lBe(e, t) {
- if (B9) return;
+var V9 = !1;
+async function cBe(e, t) {
+ if (V9) 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}}`, B9 = !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}}`, V9 = !0, document.head.append(o);
let s = document.documentElement;
s.dataset.themeSnapshot = "true";
let c = !1, l = () => {
@@ -84028,13 +84028,13 @@ async function lBe(e, t) {
} catch {
l();
} finally {
- delete s.dataset.themeSnapshot, o.remove(), B9 = !1;
+ delete s.dataset.themeSnapshot, o.remove(), V9 = !1;
}
}
// src/application/chrome.js
-function uBe() {
+function lBe() {
(() => {
- let e = G8, t = [
+ let e = K8, t = [
"#brandHome",
"#filterBtn",
"#settingsBtn"
@@ -84094,7 +84094,7 @@ function uBe() {
e.key === "Escape" && (e.stopPropagation(), u.setOpen(!1), c.focus());
}), Tn("/api/libraries", { signal: e.signal }).then((t) => {
if (!e.isActive) return;
- WG(t.libraries);
+ GG(t.libraries);
let n = [[
"",
"全部媒体库",
@@ -84115,7 +84115,7 @@ function uBe() {
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), $5(!1), O5("媒体库与入库");
+ u.setOpen(!1), e7(!1), k5("媒体库与入库");
});
let d = l.querySelector(".board-library-rows");
e.listen(d, "pointerover", (e) => {
@@ -84132,18 +84132,18 @@ function uBe() {
(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" && lBe(t, () => {
- Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), nM();
+ t.getAttribute("aria-pressed") !== "true" && cBe(t, () => {
+ Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), rM();
});
- })), nM();
+ })), rM();
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 = ps(g, v, _);
- e.own(y.dispose), e.own(Yle(v)), bLe({
+ e.own(y.dispose), e.own(Jle(v)), yLe({
root: _,
store: Z.settingsStore,
openDetails: () => {
- e.isActive && (y.setOpen(!1), $5(!1), t7("外观与导航").then((t) => {
+ e.isActive && (y.setOpen(!1), e7(!1), n7("外观与导航").then((t) => {
e.isActive && t.reveal("#homeGlowControls");
}));
}
@@ -84155,17 +84155,17 @@ function uBe() {
let t = document.querySelector("#drawerScroll > [data-sidebar-head]"), n = document.querySelector("#drawer");
if (!t) return;
c.setAttribute("aria-label", "选择媒体库"), c.parentElement !== t && t.prepend(c);
- let r = n.classList.contains("open"), i = !Q5();
+ let r = n.classList.contains("open"), i = !$5();
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(G8, window)("resize", b);
+ Z.placeSidebarHead = b, b(), e.listen(document, "board:sidebar", b), e.listen.bind(K8, window)("resize", b);
let x = !1;
function S() {
x = !1, document.body.classList.toggle("board-scrolled", scrollY > 8);
}
- if (e.listen.bind(G8, window)("scroll", () => {
+ if (e.listen.bind(K8, window)("scroll", () => {
x || (x = !0, e.frame(S));
- }, { passive: !0 }), e.listen.bind(G8, window)("resize", S), S(), /Chrome|Chromium|Edg\//.test(navigator.userAgent)) {
+ }, { passive: !0 }), e.listen.bind(K8, 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");
@@ -84279,11 +84279,11 @@ function uBe() {
subtree: !0
}), y();
}
- })(), $5(!Q5() && sessionStorage.getItem("board.sidebar") !== "closed");
+ })(), e7(!$5() && sessionStorage.getItem("board.sidebar") !== "closed");
}
// src/navigation-progress.ts
-var dBe = 200, fBe = 400, pBe = 240;
-function mBe() {
+var uBe = 200, dBe = 400, fBe = 240;
+function pBe() {
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 = () => dp() || t.size > 0, s = () => {
@@ -84294,12 +84294,12 @@ function mBe() {
}
n ||= window.setTimeout(() => {
n = 0, i = performance.now(), e.dataset.state = "running";
- }, dBe);
+ }, uBe);
} 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;
- }, pBe);
- }, Math.max(0, fBe - (performance.now() - i))));
+ }, fBe);
+ }, Math.max(0, dBe - (performance.now() - i))));
}, c = () => {
a || (a = !0, queueMicrotask(() => {
a = !1, s();
@@ -84316,39 +84316,39 @@ function mBe() {
};
}
// src/application/initialize.js
-function hBe() {
- qze(), Nze(), RRe(), Pze(), Tze(), xLe(), gze(), Yze(), cRe(), jze(), TRe(), _ze(), tRe(), hRe(), Gze(), FRe(), lRe(), Kze(), IRe(), uRe(), eze(), vze(), aBe(), Mze(), oBe(), Eze(), cBe(), uBe(), G8.own(mBe()), G8.own(K7), G8.own(w9);
+function mBe() {
+ Kze(), Mze(), LRe(), Nze(), wze(), bLe(), hze(), Jze(), sRe(), Aze(), wRe(), gze(), eRe(), mRe(), Wze(), PRe(), cRe(), Gze(), FRe(), lRe(), $Re(), _ze(), iBe(), jze(), aBe(), Tze(), sBe(), lBe(), K8.own(pBe()), K8.own(q7), K8.own(T9);
}
// src/ui-kit/middle-truncate.ts
-var gBe = "…", _Be = 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, vBe = (e) => _Be ? [..._Be.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? "")), q9 = (e, t) => {
+var hBe = "…", gBe = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, H9 = /* @__PURE__ */ new WeakMap(), U9 = /* @__PURE__ */ new Set(), W9 = 0, G9 = /* @__PURE__ */ new WeakSet(), K9 = null, q9 = null, _Be = (e) => gBe ? [...gBe.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? "")), J9 = (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("") + gBe + (r ? e.slice(-r).join("") : "");
-}, yBe = (e, t) => {
+ return e.slice(0, n).join("") + hBe + (r ? e.slice(-r).join("") : "");
+}, vBe = (e, t) => {
if (!e.length || t(e.join(""))) return e.length;
let n = 0, r = e.length - 1, i = 0;
for (; n <= r;) {
let a = n + r >> 1;
- t(q9(e, a)) ? (i = a, n = a + 1) : r = a - 1;
+ t(J9(e, a)) ? (i = a, n = a + 1) : r = a - 1;
}
return i;
-}, bBe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul} -〿＀-￯]/u, xBe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}]/u, SBe = /[\p{Script=Latin}\p{Script=Greek}\p{Script=Cyrillic}\p{Nd}]/u, CBe = /[＀-￯]/u, wBe = (e) => xBe.test(e) ? 1 : SBe.test(e) && !CBe.test(e) ? 2 : 0, TBe = (e) => {
+}, yBe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul} -〿＀-￯]/u, bBe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}]/u, xBe = /[\p{Script=Latin}\p{Script=Greek}\p{Script=Cyrillic}\p{Nd}]/u, SBe = /[＀-￯]/u, CBe = (e) => bBe.test(e) ? 1 : xBe.test(e) && !SBe.test(e) ? 2 : 0, wBe = (e) => {
let t = 0, n = 0;
for (let r of e) {
- let e = wBe(r);
+ let e = CBe(r);
n && e && n !== e && t++, n = e;
}
return t;
-}, EBe = null, DBe = (e, t) => {
- let n = getComputedStyle(e), r = (EBe ||= document.createElement("canvas")).getContext("2d");
+}, TBe = null, EBe = (e, t) => {
+ let n = getComputedStyle(e), r = (TBe ||= 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, vBe(e).length - 1) * i), Number.isFinite(a) && (t += (e.match(/\s/g) || []).length * a), s && (t += TBe(e) * s), t;
+ return Number.isFinite(i) && (t += Math.max(0, _Be(e).length - 1) * i), Number.isFinite(a) && (t += (e.match(/\s/g) || []).length * a), s && (t += wBe(e) * s), t;
};
-}, OBe = [
+}, DBe = [
"font-family",
"font-size",
"font-weight",
@@ -84373,22 +84373,22 @@ var gBe = "…", _Be = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(
"text-autospace",
"text-spacing-trim",
"white-space-collapse"
-], J9 = null, kBe = (e) => {
- if (!J9) {
+], Y9 = null, OBe = (e) => {
+ if (!Y9) {
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 = {
+ 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", Y9 = {
box: e,
groups: /* @__PURE__ */ new Map()
};
}
- J9.box.isConnected || document.documentElement.append(J9.box);
- let t = getComputedStyle(e), n = OBe.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(OBe[t], e)), a.lang = r, J9.box.append(a), J9.groups.set(i, a)), a;
-}, ABe = 8, jBe = (e) => {
- for (let t = 0; e.length && t < ABe; t++) {
+ Y9.box.isConnected || document.documentElement.append(Y9.box);
+ let t = getComputedStyle(e), n = DBe.map((e) => t.getPropertyValue(e)), r = e.closest("[lang]")?.getAttribute("lang") || "", i = n.join("\n") + "\n" + r, a = Y9.groups.get(i);
+ return a || (a = document.createElement("div"), n.forEach((e, t) => a.style.setProperty(DBe[t], e)), a.lang = r, Y9.box.append(a), Y9.groups.set(i, a)), a;
+}, kBe = 8, ABe = (e) => {
+ for (let t = 0; e.length && t < kBe; 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;
+ return n.style.cssText = "display:block;width:max-content;text-wrap-mode:nowrap", n.textContent = J9(e.fit.parts, t), e.group.append(n), n;
}));
e.forEach((e, n) => e.tries.forEach((r, i) => {
t[n][i].getBoundingClientRect().width <= e.fit.available ? e.fits = Math.max(e.fits, r) : e.fails = Math.min(e.fails, r);
@@ -84403,28 +84403,28 @@ var gBe = "…", _Be = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(
])].filter((t) => t > e.fits && t < e.fails), !0;
});
}
-}, MBe = (e) => {
+}, jBe = (e) => {
let t = [];
for (let n of e) {
- let e = n.state.full, r = bBe.test(e), i = DBe(n.element, r);
- if (n.kept = yBe(n.parts, (e) => i(e) <= n.available), !r) continue;
+ let e = n.state.full, r = yBe.test(e), i = EBe(n.element, r);
+ if (n.kept = vBe(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: kBe(n.element),
+ group: OBe(n.element),
fits: 0,
fails: n.parts.length + 1,
tries: a
});
}
- jBe(t);
-}, NBe = (e) => {
+ ABe(t);
+}, MBe = (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);
-}, PBe = (e) => {
- if (e.dataset.middleTruncateWithin === void 0) return NBe(e);
+}, NBe = (e) => {
+ if (e.dataset.middleTruncateWithin === void 0) return MBe(e);
let t = e.parentElement;
if (!t) return e.clientWidth;
let n = getComputedStyle(t), r = parseFloat(n.columnGap) || 0, i = 0, a = 0;
@@ -84433,75 +84433,75 @@ var gBe = "…", _Be = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(
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);
-}, FBe = () => {
- U9 = 0;
+}, PBe = () => {
+ W9 = 0;
let e = [];
- for (let t of H9) {
- let n = V9.get(t);
+ for (let t of U9) {
+ let n = H9.get(t);
n && t.isConnected && e.push({
element: t,
state: n,
- available: PBe(t),
- parts: vBe(n.full),
+ available: NBe(t),
+ parts: _Be(n.full),
kept: 0
});
}
- H9.clear(), MBe(e.filter((e) => e.available > 0));
+ U9.clear(), jBe(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;
+ let e = r > 0 ? J9(i, a) : n.full;
n.rendered = e, t.textContent !== e && (t.textContent = e);
let o = e !== n.full;
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) => {
- V9.has(e) && (H9.add(e), U9 ||= requestAnimationFrame(FBe));
-}, IBe = (e) => {
- e instanceof HTMLElement && (V9.has(e) || V9.set(e, {
+}, X9 = (e) => {
+ H9.has(e) && (U9.add(e), W9 ||= requestAnimationFrame(PBe));
+}, FBe = (e) => {
+ e instanceof HTMLElement && (H9.has(e) || H9.set(e, {
full: e.textContent || "",
rendered: e.textContent || ""
- }), W9.has(e) || (W9.add(e), e.dataset.middleTruncateWithin !== void 0 && e.parentElement ? G9?.observe(e.parentElement) : G9?.observe(e)), Y9(e));
-}, LBe = (e) => {
+ }), G9.has(e) || (G9.add(e), e.dataset.middleTruncateWithin !== void 0 && e.parentElement ? K9?.observe(e.parentElement) : K9?.observe(e)), X9(e));
+}, IBe = (e) => {
if (e.nodeType !== Node.ELEMENT_NODE) return;
let t = e;
- t.matches("[data-middle-truncate]") && IBe(t), t.querySelectorAll("[data-middle-truncate]").forEach(IBe);
+ t.matches("[data-middle-truncate]") && FBe(t), t.querySelectorAll("[data-middle-truncate]").forEach(FBe);
};
-function RBe(e = document) {
- K9?.(), W9 = /* @__PURE__ */ new WeakSet();
+function LBe(e = document) {
+ q9?.(), G9 = /* @__PURE__ */ new WeakSet();
let t = !0;
- G9 = new ResizeObserver((e) => e.forEach((e) => {
- t && (Y9(e.target), e.target.querySelectorAll?.(":scope>[data-middle-truncate-within]").forEach(Y9));
+ K9 = new ResizeObserver((e) => e.forEach((e) => {
+ t && (X9(e.target), e.target.querySelectorAll?.(":scope>[data-middle-truncate-within]").forEach(X9));
}));
- let n = G9;
- LBe(e.documentElement || e);
+ let n = K9;
+ IBe(e.documentElement || e);
let r = new MutationObserver((e) => e.forEach((e) => {
if (!t) return;
- e.addedNodes.forEach(LBe);
+ e.addedNodes.forEach(IBe);
let n = (e.target.nodeType === Node.TEXT_NODE ? e.target.parentElement : e.target)?.closest?.("[data-middle-truncate]");
if (!n) return;
- let r = V9.get(n);
- r && n.textContent !== r.rendered && (r.full = n.textContent || "", n.dataset.middleTitle === "true" && n.removeAttribute("title"), Y9(n));
+ let r = H9.get(n);
+ r && n.textContent !== r.rendered && (r.full = n.textContent || "", n.dataset.middleTitle === "true" && n.removeAttribute("title"), X9(n));
}));
r.observe(e.body || e, {
childList: !0,
characterData: !0,
subtree: !0
}), document.fonts?.ready?.then(() => {
- t && e.querySelectorAll("[data-middle-truncate]").forEach(Y9);
+ t && e.querySelectorAll("[data-middle-truncate]").forEach(X9);
});
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 && V9.get(n);
+ let n = (t.anchorNode?.nodeType === Node.ELEMENT_NODE ? t.anchorNode : t.anchorNode?.parentElement)?.closest?.("[data-middle-truncate]"), r = n && H9.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(), U9 && cancelAnimationFrame(U9), U9 = 0, H9.clear(), K9 === a && (K9 = null, G9 = null));
+ t && (t = !1, n.disconnect(), r.disconnect(), e.removeEventListener("copy", i), Y9?.box.remove(), W9 && cancelAnimationFrame(W9), W9 = 0, U9.clear(), q9 === a && (q9 = null, K9 = null));
};
- return K9 = a, a;
+ return q9 = a, a;
}
// src/react/result-updates.tsx
-var zBe = [
+var RBe = [
"catalog-grid",
"catalog-folders",
"item",
@@ -84519,44 +84519,44 @@ var zBe = [
"trash-summary",
"junk-summary",
"immerse-list"
-], X9 = [
+], Z9 = [
"follow-feed",
"follow-item",
"follow-manage",
"follow",
"entity",
"index"
-], BBe = [
+], zBe = [
"feed-new",
"jav-discoveries",
"jav-detail",
"wants",
"index"
-], VBe = {
+], BBe = {
catalog: [
- ...zBe,
- ...X9,
+ ...RBe,
+ ...Z9,
"review",
"taste"
],
follow: [
- ...X9,
+ ...Z9,
"stats",
"taste"
],
- discoveries: BBe,
+ discoveries: zBe,
review: ["review"],
artwork: [
+ ...RBe,
+ ...Z9,
...zBe,
- ...X9,
- ...BBe,
"avatar-choices"
]
};
-function HBe() {
+function VBe() {
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 VBe[t] || []) e.add(n);
+ for (let t of Object.keys(r)) if (r[t] !== n[t]) for (let n of BBe[t] || []) e.add(n);
return !t && e.size && (t = (async () => {
for (; e.size;) {
let t = new Set(e);
@@ -84569,67 +84569,101 @@ function HBe() {
})), t || Promise.resolve();
};
}
-function UBe() {
+var HBe = (e) => e.replace(/[&<>"']/g, (e) => `&#${e.charCodeAt(0)};`), UBe = 3, WBe = (e) => {
+ let t = HBe(e.label || "一部作品");
+ return e.kind === "download" ? `「${t}」已入库并整理完成` : `新文件已入库:「${t}」`;
+};
+function GBe(e, t) {
+ if (!t) return e;
+ let n = t.items.reduce((e, t) => Math.max(e, t.id), 0);
+ if (!e || e.epoch !== t.epoch) return {
+ epoch: t.epoch,
+ last: n
+ };
+ let r = t.items.filter((t) => t.id > e.last);
+ if (r.length > UBe) HQ(`ingest-${t.epoch}-${n}`, {
+ html: `${r.length} 部作品已入库`,
+ alert: !1,
+ timeout: 8e3,
+ action: null
+ });
+ else for (let e of r) HQ(`ingest-${t.epoch}-${e.id}`, {
+ html: WBe(e),
+ alert: !1,
+ timeout: 8e3,
+ action: {
+ label: "打开",
+ run: () => Fp(`/assets/${e.asset_id}`)
+ }
+ });
+ return {
+ epoch: t.epoch,
+ last: Math.max(e.last, n)
+ };
+}
+function KBe() {
let e = Ft({
- queryKey: VI,
- queryFn: ({ signal: e }) => UI(e),
- refetchInterval: (e) => HI(e.state.data)
- }), t = (0, F.useRef)(void 0), [n] = (0, F.useState)(HBe), r = e.data?.result_versions;
+ queryKey: HI,
+ queryFn: ({ signal: e }) => WI(e),
+ refetchInterval: (e) => UI(e.state.data)
+ }), t = (0, F.useRef)(void 0), n = (0, F.useRef)(null), [r] = (0, F.useState)(VBe), i = e.data?.result_versions, a = e.data?.ingest_notices;
return (0, F.useEffect)(() => {
- r && (t.current && n(t.current, r), t.current = r);
- }, [r, n]), null;
+ i && (t.current && r(t.current, i), t.current = i);
+ }, [i, r]), (0, F.useEffect)(() => {
+ n.current = GBe(n.current, a);
+ }, [a]), null;
}
// src/react/application.tsx
-var Z9 = null;
-function WBe(e) {
- Z9 !== e || e.owners || (Z9 = null, e.effects.dispose());
-}
-function GBe() {
- if (!Z9) {
- let e = LLe();
- Z9 = {
+var Q9 = null;
+function qBe(e) {
+ Q9 !== e || e.owners || (Q9 = null, e.effects.dispose());
+}
+function JBe() {
+ if (!Q9) {
+ let e = ILe();
+ Q9 = {
effects: e,
owners: 0
- }, e.own(RBe(document)), e.own(() => {
+ }, e.own(LBe(document)), e.own(() => {
Pl(), H.cancelQueries();
- }), e.own(mLe), e.own(wp), e.own(ss);
+ }), e.own(pLe), e.own(wp), e.own(ss);
}
- return Z9.owners += 1, Z9.effects.resume(), Z9;
+ return Q9.owners += 1, Q9.effects.resume(), Q9;
}
-function KBe() {
+function YBe() {
let [e, t] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
- let e = Z9 === null, n = GBe(), r = fLe(t);
+ let e = Q9 === null, n = JBe(), r = dLe(t);
if (e) try {
- hBe();
+ mBe();
} catch (e) {
- throw r(), n.effects.dispose(), Z9 = null, e;
+ throw r(), n.effects.dispose(), Q9 = null, e;
}
return () => {
- r(), --n.owners, !n.owners && (n.effects.pause(), queueMicrotask(() => WBe(n)));
+ r(), --n.owners, !n.owners && (n.effects.pause(), queueMicrotask(() => qBe(n)));
};
- }, []), /* @__PURE__ */ (0, I.jsx)(Obe, {
+ }, []), /* @__PURE__ */ (0, I.jsx)(Dbe, {
actions: e,
processing: !0,
- background: e ? /* @__PURE__ */ (0, I.jsx)(UBe, {}) : null
+ background: e ? /* @__PURE__ */ (0, I.jsx)(KBe, {}) : null
});
}
-var Q9 = /* @__PURE__ */ new WeakMap();
-function qBe(e) {
- let t = Q9.get(e);
+var $9 = /* @__PURE__ */ new WeakMap();
+function XBe(e) {
+ let t = $9.get(e);
if (t) return t;
- let n = (0, zt.createRoot)(e, kbe);
- Q9.set(e, n);
+ let n = (0, zt.createRoot)(e, Obe);
+ $9.set(e, n);
let r = n.unmount.bind(n);
return n.unmount = () => {
- Q9.get(e) === n && (Q9.delete(e), r(), Z9 && WBe(Z9));
- }, (0, Rt.flushSync)(() => n.render(/* @__PURE__ */ (0, I.jsx)(KBe, {}))), n;
+ $9.get(e) === n && ($9.delete(e), r(), Q9 && qBe(Q9));
+ }, (0, Rt.flushSync)(() => n.render(/* @__PURE__ */ (0, I.jsx)(YBe, {}))), n;
}
// src/react/bootstrap.tsx
O();
-var $9 = document.getElementById("appRoot");
-if (!$9) throw Error("主界面宿主缺失");
-qBe($9);
-export { LL as $2ec61d1d4f780267$export$a8a3e93435678ff9, GL as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, cz as $542a13ca2fa5b484$export$5b6b19405a83ff9d, TD as $72abaeab4d80592f$export$78efe591171d7d45, eB as $76d00c5a4edb230a$export$76ccd210b9029917, Zz as $76d00c5a4edb230a$export$816b5d811295e6bc, rB as $76d00c5a4edb230a$export$b59bdbef9ce70de2, aB as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, Xz as $76d00c5a4edb230a$export$f850895b287ef28e, Khe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, Ghe as $b4f18e3395fe64d7$export$3e41faf802a29e71, Hhe as $b4f18e3395fe64d7$export$b2539bed5023c21c, lB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, Yhe as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, fE as $ea3928288112382f$export$439d29a4e110a164, xz as $f2ff30fde7b014be$export$3ddf2d174ce01153, Oz as $fe21c36db05242bb$export$a98f0dcb43a68a25, kz as $fe21c36db05242bb$export$d7b12c4107be0d61, Nge as $l, Bj as ACCENTS, VAe as AMANE_BRIDGE_CHECK_URL, M$ as AMANE_BRIDGE_KEY, HAe as AMANE_BRIDGE_REBUILD_URL, sr as ApiError, UU as ArtSlot, C2 as BATCH_DELETE_TEXT, Y as Button, hL as ButtonLink, VB as Bx, j$ as CHECK_ALL_KEY, a$ as CLEANUP_ENTRY, i$ as CLEANUP_ENTRY_GRID, Qf as CLEANUP_HASH_REDIRECTS, Xf as CLEANUP_TOOLS, vn as CLOUD_LOCATIONS, Y1 as CLOUD_PROXY_HELP, Kr as COLUMN_SORT, X$ as CONFIGURATION_KEY, zY as CONFIGURATION_URL, UAe as COOKIE_TEXT_LIMIT, A$ as COVER_JOB_KEY, Xi as CREDENTIAL_STATE, T$ as CUSTOM_SOURCES_KEY, w$ as CUSTOM_SOURCES_URL, rG as CatalogViewToggle, FV as Checkbox, PV as CheckboxGlyph, TV as ChevronSortDown, HU as Chip, QU as CloudDownloadDialog, kH as CollapseChevron, OH as CollapseRegion, QQ as CollectionSummary, Sve as CommandSteps, bTe as DEFAULT_CATEGORY, dr as DEFAULT_SORT, wQ as DIAGNOSTICS_KEY, yEe as DIRECTORY_TEMPLATE_ERROR, aW as DISCOVERY_SORTS, GU as DOWNLOADS_KEY, WU as DOWNLOADS_URL, aY as DUPLICATES_KEY, zJ as DataTableFooter, FJ as DataTableFrame, RJ as DataTableSort, FH as Disclosure, kye as DownloadsPanel, xge as E3, xTe as ENTITY_REVIEW_KINDS, q1 as ENTRY_LINKS_HELP, J1 as ENTRY_LINKS_HINT, NB as Ea, o_e as EmptyFocusButton, sV as EmptyState, NH as ErrorText, Xge as Eu, Cve as ExternalLink, Vr as FEEDS_KEY, qY as FEED_SCHEDULE_KEY, n$ as FIELDSET_FOOT, vIe as FLOW_LABEL_X, r6 as FLOW_VIEWBOX, zr as FOLLOW_CHECK_KEY, Rr as FOLLOW_CREDENTIALS_KEY, B8 as FOLLOW_INITIAL_RANGE_OPTIONS, Lr as FOLLOW_MANAGE_KEY, DZ as FOLLOW_MANAGE_NAV, Br as FOLLOW_RESOLVE_KEY, KY as FOLLOW_SCHEDULE_KEY, Eve as Fact, Tve as FactList, PH as FieldLabel, h$ as Fieldset, m$ as FieldsetTitle, Upe as FilterGlass, cL as FilterGlassRows, sL as FilterIconButton, lL as FilterPill, xve as Footer, RB as Gg, uL as GlassPill, GB as HN, MH as Help, QB as HintText, uIe as IDLE_POLL_MS, lTe as IDLE_REPAIR, rL as IconButton, EQ as IndexSearch, rV as Input, nV as InputBase, _$ as IssueRow, iM as JAV_LAYOUTS, H0 as JAV_RECOMMENDATION_GRID, vX as JUNK_KEY, mW as JavHeader, rTe as KEEP_LABELS, dge as L1, Ur as LAYOUTS, K1 as LIBRARY_FOLDER_HELP, JV as LIBRARY_PROCESSING_KEY, jY as LINKS_KEY, MY as LINK_CHECK_KEY, GTe as LINK_KINDS, NY as LINK_PRUNE_KEY, nr as LOC, ZB as Label, b$ as LibraryProcessingCard, wV as LibraryShortcuts, uH as LinkButton, Fge as Lo, CH as LoadingDots, Cge as M6, XTe as MEDIA_PROCESSING_KEY, YY as MEDIA_PROCESSING_URL, uY as MEDIA_REPAIR_KEY, lY as MEDIA_REPAIR_URL, yr as MEDIA_SOURCES_KEY, vs as MEDIA_SOURCE_ICONS, gn as MEDIA_SOURCE_OPTIONS, kV as MENU_ITEM, AV as MENU_ITEM_INTERACTIVE, OV as MENU_POPOVER_SURFACE, Lge as Ma, mH as MenuDialog, pK as MixCard, iV as ModalFrame, Cx as MotionConfigContext, YB as NR, g$ as NameLink, oV as Note, n_e as OA, QY as ORGANIZE_KEY, b2 as ORGANIZE_PARAMETER_HINT, y2 as ORGANIZE_SCOPE_HINT, v2 as ORGANIZE_TEXT, tX as ORPHAN_RECORDS_KEY, S2 as ORPHAN_RECORDS_TEXT, IB as OV, xB as P7, hX as PERFORMER_DELETE_KEY, Rye as PHASES, BY as PICK_FOLDER_URL, s$ as PLAIN_STAT_STRIP, S$ as PLAYLISTS_KEY, aMe as POLICY_COLUMNS, sMe as POLICY_COVER_NOTE, oMe as POLICY_MATRIX, G1 as POLICY_SUMMARY, LJ as Pagination, y$ as PathLine, qB as Pf, MI as PillTabList, lAe as PlainStat, TH as Progress, hY as QUALITY_GOALS_KEY, KB as RB, z0 as RELEASE_COLUMN_VISIBILITY_KEY, R0 as RELEASE_COLUMN_WIDTHS_KEY, oW as RELEASE_SORTS, FMe as RELEASE_SORT_COLUMNS, l$ as REPAIR_CARD_TEXT, dY as REPAIR_LIBRARIES_KEY, oX as RESOURCE_APPLY_KEY, aX as RESOURCE_SCAN_KEY, x2 as RESOURCE_SYNC_TEXT, hAe as RESULT_PANEL, gAe as RESULT_SECTION, yTe as REVIEW_CATEGORIES, _X as REVIEW_COUNTS_KEY, STe as REVIEW_DECISION_LABELS, vY as REVIEW_KEY, yY as REVIEW_LABELS, xY as REVIEW_QUEUES, SY as REVIEW_QUEUE_LABELS, PG as RetryNote, e_e as Rf, XB as Rk, vve as Rows, D$ as SCRAPING_CHECK_ALL_URL, zAe as SCRAPING_CHECK_URL, O$ as SCRAPING_COVER_URL, k$ as SCRAPING_KEY, RAe as SCRAPING_SETTINGS_URL, tU as SEGMENT, eU as SEGMENTED_TRACK, GY as SETTINGS_KEY, VY as SETTINGS_URL, fr as SORT_DEFAULT_DIR, ur as SORT_OPTIONS, yn as SOURCE_LABELS, O3 as STATS_KEY, sAe as STAT_STRIP, cAe as STAT_STRIP_SIX, _ve as Section, _Ae as SectionHeading, bve as SectionSkeleton, $H as SegmentedRadioGroup, Vve as SegmentedTabList, DG as Segments, IJ as Select, zU as Select$1, e1 as SelectField, BU as SelectItem, KJ as SelectionActions, vj as SelectionDock, qJ as SelectionPopover, AH as SettingsCard, gve as SettingsRow, jH as SettingsSectionLabel, OG as Shuffle, Ave as SiteLabel, aG as SortDirectionIcon, kG as SortKeys, sQ as SourceAvatar, zH as SourceLabel, IH as SourceMark, yve as Stack, uAe as StatCard, v$ as StatusLabel, Zge as Su, o4 as Switch, VI as TASKS_KEY, $Fe as TASTE_REFRESH_KEY, eIe as TASTE_WINDOWS, JY as THUMBNAIL_JOBS_KEY, bX as TRASH_KEY, Spe as TRIGGER_LABELS, wJ as Table, JJ as TableColumnControls, YJ as TableColumnResizer, ZJ as TableSelectionHeader, qQ as TagManager, wve as TaskCenterLink, EH as TaskProgress, eV as TextField, $B as TextFieldContext, PB as Un, t_e as Uz, eW as WANTS_KEY, x4 as WantMagnets, Yg as WithPromise, TB as Wt, MB as Xc, JB as Xf, DB as Xl, EB as Xt, CB as _8, o as __commonJSMin, s as __exportAll, l as __toESM, WB as _p, $ge as aB, Ei as addAlias, Ti as addSource, nW as addWant, fS as animate, B as apiGet, V as apiSend, Qj as appSettingsStore, REe as applyConfirmText, mX as applyLeftovers, LEe as applyPlanText, BEe as applyText, nM as applyTheme, by as asNumber, EEe as attachOrphan, ci as authorAvatar, ui as authorGroups, si as authorInitial, oi as authorName, fq as autoResetPageIndex, vo as avatarInner, P3 as bandRows, bEe as baseName, cTe as batchOperate, Rue as beginPlayerGuidePreview, Cj as boundedPreference, aTe as bulkCloudPreferences, dV as busyProps, Qge as cB, OPe as cachedMagnetStates, Ug as calcGeneratorVelocity, kTe as canApprove, vg as cancelFrame, jEe as candidateText, yU as cardClass, _M as cardRatio, MJ as catalogListSkeletonCellHtml, jB as cc, Ki as checkEvidenceGap, Gi as checkFailures, Fi as checkFeeds, YTe as checkLine, Ui as checkReceipt, Wi as checkSummary, GAe as checkText, qi as checkedText, eK as clickedBlank, e7 as closeDrawerAfterNav, Xwe as cloudLocations, E0 as cloudProxySkeleton, GC as clsx, Bge as cn, lv as collectMotionValues, Mq as columnVisibilityFeature, yJ as column_getCanSort, hJ as column_getSortFn, DTe as commonReviewSources, ZU as composingKey, jf as configurationSection, iIe as configureTasteBrowser, ul as confirmModal, bpe as controlTask, JK as copyInstancePropertiesWithoutMemos, uo as coverUrl, Cq as createColumnHelper, MAe as createPlaylist, Zi as credentialDone, S0 as credentialsSkeleton, RTe as currentReviewRow, J as cx, wge as d6, BB as dZ, FTe as decisionPayload, ITe as decisionReceipt, PTe as defaultChoice, HEe as deletePerformerVideos, PAe as deletePlaylist, A0 as devicesSkeleton, x as diagnosticHeaders, W1 as diagnosticsSkeleton, qye as discoveryArtwork, sW as discoveryKey, Wye as discoveryScore, p9 as disposeStage, tTe as distinctName, Vi as dropSources, Yge as du, oTe as duplicateVictims, JI as elapsedText, nn as entityDisplayName, _o as entityFaceImg, Pn as entityPath, ti as errorHeadline, lr as errorMessage, z as esc, dq as expandRowModel, mB as f1, xo as facePos, ei as feedIntervalText, I$ as fetchAmaneBridge, F$ as fetchCheckAllJob, vi as fetchCheckJob, Z$ as fetchConfiguration, P$ as fetchCoverJob, _i as fetchCredentials, E$ as fetchCustomSources, gX as fetchDeletePerformers, VEe as fetchDeletePlan, TQ as fetchDiagnostics, cW as fetchDiscoveries, sY as fetchDuplicates, gpe as fetchEarlier, $Te as fetchFeedSchedule, Mi as fetchFeeds, gi as fetchFollow, QTe as fetchFollowSchedule, SX as fetchJunkSummary, nH as fetchLibraryProcessing, IY as fetchLinkCheck, LY as fetchLinkPrune, FY as fetchLinkStats, ZTe as fetchMediaProcessing, fY as fetchMediaRepair, br as fetchMediaSources, $Y as fetchOrganize, fEe as fetchOrganizeExample, nX as fetchOrphanRecords, ji as fetchPending, C$ as fetchPlaylists, gY as fetchQualityGoals, dW as fetchReleases, pY as fetchRepairLibraries, yi as fetchResolveJob, cX as fetchResourceApply, sX as fetchResourceScan, OY as fetchReview, xX as fetchReviewCounts, XY as fetchSettings, N$ as fetchSources, k3 as fetchStats, bi as fetchSuggestions, UI as fetchTasks, e6 as fetchTaste, aIe as fetchTasteJob, eEe as fetchThumbnailJobs, CX as fetchTrashSummary, tW as fetchWants, TTe as filterReviewRows, er as firstGrapheme, AK as flexRender, bIe as flowGraph, xIe as flowLabel, yFe as fmtCount, Jn as fmtDur, Xn as fmtSize, hpe as foldByKind, Mpe as foldRoutine, Li as followFeedByName, Ri as followFeedEntity, Hr as followSuggestKey, Ppe as followupDetail, mpe as followupTally, _g as frame, yB as g4, Fq as getDefaultPaginationState, gM as gridLayout, li as groupByAuthor, jpe as groupFollowups, TY as groupReviewRows, FEe as hasChanges, lX as hasResourceRoots, GI as hasResultProblems, dIe as historySpan, hB as i2, lIe as importTasteExport, C0 as indexersSkeleton, zg as interpolate, iW as invalidateWants, qI as isActive, $r as isBroken, qr as isLayout, bv as isMotionValue, bY as isReviewCategory, Npe as isRoutine, w0 as javBrowserSkeleton, W0 as javContentSkeleton, lM as javLayout, U0 as javTagSkeleton, qEe as junkBreakdown, Qwe as keepGroup, FAe as keepPlaylist, ke as keepPreviousData, pi as keepSelected, A3 as known, uge as l1, _ge as l7, Ape as latestOfKind, $n as leadingGraphemes, jFe as lengthRows, Cr as localTime, mo as logoUrl, Ii as lookupFeedActor, bB as m7, zB as mM, Dn as mapLimit, Ai as markItem, F3 as max, kFe as mediumRows, _pe as mergeFinished, I3 as min, UTe as mirrorText, fTe as missingToolText, cY as mixedCloudPreferences, QI as momentText, pS as motion, dv as motionValue, rn as nameFallback, Ue as notifyManager, Tge as oe, SEe as organizeOutcome, o2 as overlayHost, Jr as pageSizeOf, fi as pageWindow, hr as paginationRange, Bi as patchSource, Pp as peachHistory, Pp as peachHistory$1, NTe as pendingGenres, xFe as percentText, hEe as pickOrganizeFolder, o$ as plainStatClass, xEe as planSummary, j3 as playedFor, CFe as playedItemUrl, HI as pollInterval, Xs as popCount, jAe as posterUrl, bxe as previewLibraryColor, mEe as previewOrganize, hTe as previewUrl, Ope as problemDestination, ZV as processingActive, YI as progressText, RH as providerIcon, JTe as pruneText, dX as purgeCount, DEe as purgeOrphan, HB as pv, Jge as qE, H as queryClient, gB as r2, _Ie as radarRows, EFe as radialArc, DFe as radialBarSize, TFe as radialCeiling, wFe as radialSlices, NN as randomId, hIe as rankDetail, gIe as rankShares, N3 as reachedShare, XI as readableErrorHeadline, Gye as recommendationScore, zTe as recordGenre, kEe as recordsText, IAe as recreatePlaylist, kAe as refreshPlaylists, Dl as relayoutCovers, B0 as releaseColumns, lW as releaseFilters, uW as releaseKey, Hi as reloadFollowManage, HTe as reloadReview, uMe as rememberShape, _Ee as rememberTemplates, Di as removeAlias, Pi as removeFeed, wi as removeSource, cIe as removeTasteSource, rW as removeWants, Oi as renameAliasGroup, NAe as renamePlaylist, Se as replaceEqualDeep, NFe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, WK as require_with_selector, Vye as resetWants, mr as resolveFollowSort, Kg as resolveStartTime, Q_e as restartEffectText, AAe as resumeAssetId, wTe as reviewGroupingOptions, wY as reviewQueueData, CY as reviewQueueOf, KEe as reviewSummary, ETe as reviewWindow, jTe as rowEvidence, DY as rowFieldName, Hq as rowPaginationFeature, lJ as rowSelectionFeature, SJ as rowSortingFeature, EY as rowSubject, MTe as rowTags, ATe as rowTitle, mge as s5, ki as saveCredential, IEe as scanLine, aEe as schedulePollInterval, Uye as searchNote, OTe as selectReviewRange, mi as selectionState, Ni as setFeedEnabled, Ci as setSourceEnabled, Ff as settingsPath, VTe as settleReviewRows, eTe as sharedNamePrefix, Fp as shellNavigate, O8 as showToast, Bn as siteMarkUrl, nq as skipFirstRun, AI as sortCx, Xr as sortLabel, bn as sourceDefaultCost, Yi as sourceIconUrl, zEe as sourceMeta, Vs as spinnerHtml, Lg as spring, lV as spriteGlyph, xi as startCheck, KTe as startLinkCheck, qTe as startLinkPrune, gEe as startOrganize, Si as startResolve, NEe as startResourceApply, MEe as startResourceScan, sIe as startTasteRefresh, oAe as statCardClass, wpe as statusLabel, dTe as statusLine, Qr as statusText, vM as storeJavLayout, LTe as submitDecision, $I as summaryItems, wq as tableFeatures, rq as tableMemo, di as tableRows, Dpe as taskIssues, kpe as taskSubject, t6 as tasteDate, pIe as tasteDimensions, fIe as tasteHours, $3 as tasteKey, nIe as tasteRefetchInterval, rIe as tasteTime, II as textLang, L0 as tierPlaceholdersHtml, lh as time, jge as tl, hi as toggleGroup, n6 as topScores, Hge as um, Ige as uo, dH as useAction, SZ as useBackgroundJob, nG as useCatalogView, jU as useClientUpdates, xm as useConstant, eL as useEntityNames, oL as useHorizontalScroller, Sm as useIsomorphicLayoutEffect, $G as useLibraryTints, It as useMutation, IV as useOverlayScrollbar, Ft as useQuery, ae as useQueryClient, tS as useReducedMotion, iEe as useRunSchedule, nEe as useSaveFollowSchedule, ZY as useSaveSettings, oEe as useSaveThumbnailMode, CJ as useTable, HJ as useTablePreferences, pL as useViewGlide, sTe as victimBytes, Mge as vl, Hye as wantName, SFe as watchNote, M3 as watchedShare, Ege as we, jc as wireHorizontalScroller, vEe as withOrganizeJob, Kye as writeJavQuery, Sge as z3 };
+var ZBe = document.getElementById("appRoot");
+if (!ZBe) throw Error("主界面宿主缺失");
+XBe(ZBe);
+export { RL as $2ec61d1d4f780267$export$a8a3e93435678ff9, KL as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, lz as $542a13ca2fa5b484$export$5b6b19405a83ff9d, TD 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, Ghe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, Whe as $b4f18e3395fe64d7$export$3e41faf802a29e71, Vhe as $b4f18e3395fe64d7$export$b2539bed5023c21c, uB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, Jhe as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, fE as $ea3928288112382f$export$439d29a4e110a164, Sz as $f2ff30fde7b014be$export$3ddf2d174ce01153, kz as $fe21c36db05242bb$export$a98f0dcb43a68a25, Az as $fe21c36db05242bb$export$d7b12c4107be0d61, Mge as $l, Vj as ACCENTS, BAe as AMANE_BRIDGE_CHECK_URL, N$ as AMANE_BRIDGE_KEY, VAe as AMANE_BRIDGE_REBUILD_URL, sr as ApiError, WU as ArtSlot, w2 as BATCH_DELETE_TEXT, Y as Button, gL as ButtonLink, HB as Bx, M$ as CHECK_ALL_KEY, o$ as CLEANUP_ENTRY, a$ as CLEANUP_ENTRY_GRID, Qf as CLEANUP_HASH_REDIRECTS, Xf as CLEANUP_TOOLS, vn as CLOUD_LOCATIONS, X1 as CLOUD_PROXY_HELP, Kr as COLUMN_SORT, Z$ as CONFIGURATION_KEY, BY as CONFIGURATION_URL, HAe as COOKIE_TEXT_LIMIT, j$ as COVER_JOB_KEY, Xi as CREDENTIAL_STATE, E$ as CUSTOM_SOURCES_KEY, T$ 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, $Q as CollectionSummary, xve as CommandSteps, yTe as DEFAULT_CATEGORY, dr as DEFAULT_SORT, TQ as DIAGNOSTICS_KEY, vEe 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, Oye as DownloadsPanel, bge as E3, bTe as ENTITY_REVIEW_KINDS, J1 as ENTRY_LINKS_HELP, Y1 as ENTRY_LINKS_HINT, PB as Ea, a_e as EmptyFocusButton, cV as EmptyState, PH as ErrorText, Yge as Eu, Sve as ExternalLink, Vr as FEEDS_KEY, JY as FEED_SCHEDULE_KEY, r$ as FIELDSET_FOOT, _Ie as FLOW_LABEL_X, i6 as FLOW_VIEWBOX, zr as FOLLOW_CHECK_KEY, Rr as FOLLOW_CREDENTIALS_KEY, V8 as FOLLOW_INITIAL_RANGE_OPTIONS, Lr as FOLLOW_MANAGE_KEY, OZ as FOLLOW_MANAGE_NAV, Br as FOLLOW_RESOLVE_KEY, qY as FOLLOW_SCHEDULE_KEY, Tve as Fact, wve as FactList, FH as FieldLabel, g$ as Fieldset, h$ as FieldsetTitle, Hpe as FilterGlass, lL as FilterGlassRows, cL as FilterIconButton, uL as FilterPill, bve as Footer, zB as Gg, dL as GlassPill, KB as HN, NH as Help, $B as HintText, lIe as IDLE_POLL_MS, cTe as IDLE_REPAIR, iL as IconButton, DQ as IndexSearch, iV as Input, rV as InputBase, v$ as IssueRow, aM as JAV_LAYOUTS, U0 as JAV_RECOMMENDATION_GRID, yX as JUNK_KEY, hW as JavHeader, nTe as KEEP_LABELS, uge as L1, Ur as LAYOUTS, q1 as LIBRARY_FOLDER_HELP, YV as LIBRARY_PROCESSING_KEY, MY as LINKS_KEY, NY as LINK_CHECK_KEY, WTe as LINK_KINDS, PY as LINK_PRUNE_KEY, nr as LOC, QB as Label, x$ as LibraryProcessingCard, TV as LibraryShortcuts, dH as LinkButton, Pge as Lo, wH as LoadingDots, Sge as M6, YTe as MEDIA_PROCESSING_KEY, XY as MEDIA_PROCESSING_URL, dY as MEDIA_REPAIR_KEY, uY as MEDIA_REPAIR_URL, yr as MEDIA_SOURCES_KEY, vs as MEDIA_SOURCE_ICONS, gn as MEDIA_SOURCE_OPTIONS, AV as MENU_ITEM, jV as MENU_ITEM_INTERACTIVE, kV as MENU_POPOVER_SURFACE, Ige as Ma, hH as MenuDialog, mK as MixCard, aV as ModalFrame, Cx as MotionConfigContext, XB as NR, _$ as NameLink, sV as Note, t_e as OA, $Y as ORGANIZE_KEY, x2 as ORGANIZE_PARAMETER_HINT, b2 as ORGANIZE_SCOPE_HINT, y2 as ORGANIZE_TEXT, nX as ORPHAN_RECORDS_KEY, C2 as ORPHAN_RECORDS_TEXT, LB as OV, SB as P7, gX as PERFORMER_DELETE_KEY, Lye as PHASES, VY as PICK_FOLDER_URL, c$ as PLAIN_STAT_STRIP, C$ as PLAYLISTS_KEY, iMe as POLICY_COLUMNS, oMe as POLICY_COVER_NOTE, aMe as POLICY_MATRIX, K1 as POLICY_SUMMARY, RJ as Pagination, b$ as PathLine, JB as Pf, NI as PillTabList, cAe as PlainStat, EH as Progress, gY as QUALITY_GOALS_KEY, qB as RB, B0 as RELEASE_COLUMN_VISIBILITY_KEY, z0 as RELEASE_COLUMN_WIDTHS_KEY, sW as RELEASE_SORTS, PMe as RELEASE_SORT_COLUMNS, u$ as REPAIR_CARD_TEXT, fY as REPAIR_LIBRARIES_KEY, sX as RESOURCE_APPLY_KEY, oX as RESOURCE_SCAN_KEY, S2 as RESOURCE_SYNC_TEXT, mAe as RESULT_PANEL, hAe as RESULT_SECTION, vTe as REVIEW_CATEGORIES, vX as REVIEW_COUNTS_KEY, xTe as REVIEW_DECISION_LABELS, yY as REVIEW_KEY, bY as REVIEW_LABELS, SY as REVIEW_QUEUES, CY as REVIEW_QUEUE_LABELS, FG as RetryNote, $ge as Rf, ZB as Rk, _ve as Rows, O$ as SCRAPING_CHECK_ALL_URL, RAe as SCRAPING_CHECK_URL, k$ as SCRAPING_COVER_URL, A$ as SCRAPING_KEY, LAe 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, k3 as STATS_KEY, oAe as STAT_STRIP, sAe as STAT_STRIP_SIX, gve as Section, gAe as SectionHeading, yve as SectionSkeleton, eU as SegmentedRadioGroup, Bve as SegmentedTabList, OG as Segments, LJ as Select, BU as Select$1, t1 as SelectField, VU as SelectItem, qJ as SelectionActions, yj as SelectionDock, JJ as SelectionPopover, jH as SettingsCard, hve as SettingsRow, MH as SettingsSectionLabel, kG as Shuffle, kve as SiteLabel, oG as SortDirectionIcon, AG as SortKeys, cQ as SourceAvatar, BH as SourceLabel, LH as SourceMark, vve as Stack, lAe as StatCard, y$ as StatusLabel, Xge as Su, s4 as Switch, HI as TASKS_KEY, QFe as TASTE_REFRESH_KEY, $Fe as TASTE_WINDOWS, YY as THUMBNAIL_JOBS_KEY, xX as TRASH_KEY, xpe as TRIGGER_LABELS, TJ as Table, YJ as TableColumnControls, XJ as TableColumnResizer, QJ as TableSelectionHeader, JQ as TagManager, Cve as TaskCenterLink, DH as TaskProgress, tV as TextField, eV as TextFieldContext, FB as Un, e_e as Uz, tW as WANTS_KEY, S4 as WantMagnets, Yg 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, Qge as aB, Ei as addAlias, Ti as addSource, rW as addWant, fS as animate, B as apiGet, V as apiSend, $j as appSettingsStore, LEe as applyConfirmText, hX as applyLeftovers, IEe as applyPlanText, zEe as applyText, rM as applyTheme, by as asNumber, TEe as attachOrphan, ci as authorAvatar, ui as authorGroups, si as authorInitial, oi as authorName, pq as autoResetPageIndex, vo as avatarInner, F3 as bandRows, yEe as baseName, sTe as batchOperate, Lue as beginPlayerGuidePreview, wj as boundedPreference, iTe as bulkCloudPreferences, fV as busyProps, Zge as cB, DPe as cachedMagnetStates, Ug as calcGeneratorVelocity, OTe as canApprove, vg as cancelFrame, AEe as candidateText, bU as cardClass, vM as cardRatio, NJ as catalogListSkeletonCellHtml, MB as cc, Ki as checkEvidenceGap, Gi as checkFailures, Fi as checkFeeds, JTe as checkLine, Ui as checkReceipt, Wi as checkSummary, WAe as checkText, qi as checkedText, tK as clickedBlank, t7 as closeDrawerAfterNav, Ywe as cloudLocations, D0 as cloudProxySkeleton, GC as clsx, zge as cn, lv as collectMotionValues, Nq as columnVisibilityFeature, bJ as column_getCanSort, gJ as column_getSortFn, ETe as commonReviewSources, QU as composingKey, jf as configurationSection, rIe as configureTasteBrowser, ul as confirmModal, ype as controlTask, YK as copyInstancePropertiesWithoutMemos, uo as coverUrl, wq as createColumnHelper, jAe as createPlaylist, Zi as credentialDone, C0 as credentialsSkeleton, LTe as currentReviewRow, J as cx, Cge as d6, VB as dZ, PTe as decisionPayload, FTe as decisionReceipt, NTe as defaultChoice, VEe as deletePerformerVideos, NAe as deletePlaylist, j0 as devicesSkeleton, x as diagnosticHeaders, G1 as diagnosticsSkeleton, Kye as discoveryArtwork, cW as discoveryKey, Uye as discoveryScore, m9 as disposeStage, eTe as distinctName, Vi as dropSources, Jge as du, aTe as duplicateVictims, YI as elapsedText, nn as entityDisplayName, _o as entityFaceImg, Pn as entityPath, ti as errorHeadline, lr as errorMessage, z as esc, fq as expandRowModel, hB as f1, xo as facePos, ei as feedIntervalText, L$ as fetchAmaneBridge, I$ as fetchCheckAllJob, vi as fetchCheckJob, Q$ as fetchConfiguration, F$ as fetchCoverJob, _i as fetchCredentials, D$ as fetchCustomSources, _X as fetchDeletePerformers, BEe as fetchDeletePlan, EQ as fetchDiagnostics, lW as fetchDiscoveries, cY as fetchDuplicates, hpe as fetchEarlier, QTe as fetchFeedSchedule, Mi as fetchFeeds, gi as fetchFollow, ZTe as fetchFollowSchedule, CX as fetchJunkSummary, rH as fetchLibraryProcessing, LY as fetchLinkCheck, RY as fetchLinkPrune, IY as fetchLinkStats, XTe as fetchMediaProcessing, pY as fetchMediaRepair, br as fetchMediaSources, eX as fetchOrganize, dEe as fetchOrganizeExample, rX as fetchOrphanRecords, ji as fetchPending, w$ as fetchPlaylists, _Y as fetchQualityGoals, fW as fetchReleases, mY as fetchRepairLibraries, yi as fetchResolveJob, lX as fetchResourceApply, cX as fetchResourceScan, kY as fetchReview, SX as fetchReviewCounts, ZY as fetchSettings, P$ as fetchSources, A3 as fetchStats, bi as fetchSuggestions, WI as fetchTasks, t6 as fetchTaste, iIe as fetchTasteJob, $Te as fetchThumbnailJobs, wX as fetchTrashSummary, nW as fetchWants, wTe as filterReviewRows, er as firstGrapheme, jK as flexRender, yIe as flowGraph, bIe as flowLabel, vFe as fmtCount, Jn as fmtDur, Xn as fmtSize, mpe as foldByKind, jpe as foldRoutine, Li as followFeedByName, Ri as followFeedEntity, Hr as followSuggestKey, Npe as followupDetail, ppe as followupTally, _g as frame, bB as g4, Iq as getDefaultPaginationState, _M as gridLayout, li as groupByAuthor, Ape as groupFollowups, EY as groupReviewRows, PEe as hasChanges, uX as hasResourceRoots, KI as hasResultProblems, uIe as historySpan, gB as i2, cIe as importTasteExport, w0 as indexersSkeleton, zg as interpolate, aW as invalidateWants, JI as isActive, $r as isBroken, qr as isLayout, bv as isMotionValue, xY as isReviewCategory, Mpe as isRoutine, T0 as javBrowserSkeleton, G0 as javContentSkeleton, uM as javLayout, W0 as javTagSkeleton, KEe as junkBreakdown, Zwe as keepGroup, PAe as keepPlaylist, ke as keepPreviousData, pi as keepSelected, j3 as known, lge as l1, gge as l7, kpe as latestOfKind, $n as leadingGraphemes, AFe as lengthRows, Cr as localTime, mo as logoUrl, Ii as lookupFeedActor, xB as m7, BB as mM, Dn as mapLimit, Ai as markItem, I3 as max, OFe as mediumRows, gpe as mergeFinished, L3 as min, HTe as mirrorText, dTe as missingToolText, lY as mixedCloudPreferences, $I as momentText, pS as motion, dv as motionValue, rn as nameFallback, Ue as notifyManager, wge as oe, xEe as organizeOutcome, s2 as overlayHost, Jr as pageSizeOf, fi as pageWindow, hr as paginationRange, Bi as patchSource, Pp as peachHistory, Pp as peachHistory$1, MTe as pendingGenres, bFe as percentText, mEe as pickOrganizeFolder, s$ as plainStatClass, bEe as planSummary, M3 as playedFor, SFe as playedItemUrl, UI as pollInterval, Xs as popCount, AAe as posterUrl, yxe as previewLibraryColor, pEe as previewOrganize, mTe as previewUrl, Dpe as problemDestination, QV as processingActive, XI as progressText, zH as providerIcon, qTe as pruneText, fX as purgeCount, EEe as purgeOrphan, UB as pv, qge as qE, H as queryClient, _B as r2, gIe as radarRows, TFe as radialArc, EFe as radialBarSize, wFe as radialCeiling, CFe as radialSlices, PN as randomId, mIe as rankDetail, hIe as rankShares, P3 as reachedShare, ZI as readableErrorHeadline, Wye as recommendationScore, RTe as recordGenre, OEe as recordsText, FAe as recreatePlaylist, OAe as refreshPlaylists, Dl as relayoutCovers, V0 as releaseColumns, uW as releaseFilters, dW as releaseKey, Hi as reloadFollowManage, VTe as reloadReview, lMe as rememberShape, gEe as rememberTemplates, Di as removeAlias, Pi as removeFeed, wi as removeSource, sIe as removeTasteSource, iW as removeWants, Oi as renameAliasGroup, MAe as renamePlaylist, Se as replaceEqualDeep, MFe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, GK as require_with_selector, Bye as resetWants, mr as resolveFollowSort, Kg as resolveStartTime, Z_e as restartEffectText, kAe as resumeAssetId, CTe as reviewGroupingOptions, TY as reviewQueueData, wY as reviewQueueOf, GEe as reviewSummary, TTe as reviewWindow, ATe as rowEvidence, OY as rowFieldName, Uq as rowPaginationFeature, uJ as rowSelectionFeature, CJ as rowSortingFeature, DY as rowSubject, jTe as rowTags, kTe as rowTitle, pge as s5, ki as saveCredential, FEe as scanLine, iEe as schedulePollInterval, Hye as searchNote, DTe as selectReviewRange, mi as selectionState, Ni as setFeedEnabled, Ci as setSourceEnabled, Ff as settingsPath, BTe as settleReviewRows, $we as sharedNamePrefix, Fp as shellNavigate, k8 as showToast, Bn as siteMarkUrl, rq as skipFirstRun, jI as sortCx, Xr as sortLabel, bn as sourceDefaultCost, Yi as sourceIconUrl, REe as sourceMeta, Vs as spinnerHtml, Lg as spring, uV as spriteGlyph, xi as startCheck, GTe as startLinkCheck, KTe as startLinkPrune, hEe as startOrganize, Si as startResolve, MEe as startResourceApply, jEe as startResourceScan, oIe as startTasteRefresh, aAe as statCardClass, Cpe as statusLabel, uTe as statusLine, Qr as statusText, yM as storeJavLayout, ITe as submitDecision, eL as summaryItems, Tq as tableFeatures, iq as tableMemo, di as tableRows, Epe as taskIssues, Ope as taskSubject, n6 as tasteDate, fIe as tasteDimensions, dIe as tasteHours, e6 as tasteKey, tIe as tasteRefetchInterval, nIe as tasteTime, LI as textLang, R0 as tierPlaceholdersHtml, lh as time, Age as tl, hi as toggleGroup, r6 as topScores, Vge as um, Fge as uo, fH as useAction, CZ as useBackgroundJob, rG as useCatalogView, MU as useClientUpdates, xm as useConstant, tL as useEntityNames, sL as useHorizontalScroller, Sm as useIsomorphicLayoutEffect, eK as useLibraryTints, It as useMutation, LV as useOverlayScrollbar, Ft as useQuery, ae as useQueryClient, tS as useReducedMotion, rEe as useRunSchedule, tEe as useSaveFollowSchedule, QY as useSaveSettings, aEe as useSaveThumbnailMode, wJ as useTable, UJ as useTablePreferences, mL as useViewGlide, oTe as victimBytes, jge as vl, Vye as wantName, xFe as watchNote, N3 as watchedShare, Tge as we, jc as wireHorizontalScroller, _Ee as withOrganizeJob, Gye as writeJavQuery, xge as z3 };
-//# debugId=47ac12be-9799-4945-8514-f22d55a6be73
\ No newline at end of file
+//# debugId=d6467764-0f93-45a7-b767-ca2eb42b19fe
\ No newline at end of file