Skip to content

armgit / peach

Public Imported from GitHub
0

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

fix(catalog): 保留待找作品的来源资源与评论链接

longmeidao0989c8e7487c
diff --git a/docs/JAV_DISCOVERY.md b/docs/JAV_DISCOVERY.md
index fc20629f9..185a13f6e 100644
--- a/docs/JAV_DISCOVERY.md
+++ b/docs/JAV_DISCOVERY.md
@@ -34,4 +34,4 @@
资源协议用文字「磁链」「ED2K」「网页链接」。字节容量复用馆藏 `fmtSize` 口径显示,原始 URI 和来源容量字段保留;复制和下载使用原始链接。
-云下载的直接添加优先取得可用高清候选;「想要」的待找清单在同一请求预算内继续汇集 manko.fun、JavDB 和 sukebei,按画质与版本排序并去重。待找缓存与快速添加候选分开,已取得的多个资源保留展开入口。
+云下载的直接添加优先取得可用高清候选;「想要」的待找清单在同一请求预算内继续汇集 manko.fun、JavDB 和 sukebei,按画质与版本排序并去重。JavDB 资源区与评论中的磁链、ED2K 和网页链接按原协议保留,取得范围提示随来源返回。待找缓存与快速添加候选分开,已取得的多个资源保留展开入口。
diff --git a/frontend/src/jav-skeleton.ts b/frontend/src/jav-skeleton.ts
index 90f64335d..1f236d3bf 100644
--- a/frontend/src/jav-skeleton.ts
+++ b/frontend/src/jav-skeleton.ts
@@ -1,6 +1,7 @@
import { islandButton, islandGlyph, islandSearchInput } from './island-skeleton';
import { JAV_TABS } from './react/jav/jav-navigation';
import { cardRatio, gridLayout, javLayout } from './appearance';
+import { JAV_RELEASE_SORT } from './sort-preferences';
const text = (width: string) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${width}" aria-hidden="true"></span>`;
const cover = (classes: string) => `<span data-jav-skeleton-cover class="skeleton ${classes}"></span>`;
@@ -41,7 +42,7 @@ function javFilterSkeleton(): string {
<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>
<span data-entity-sorts><span data-entity-layout class="inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg">${size('big', 'maximize')}${size('small', 'layout-grid')}</span>
- <button type="button" data-entity-sort="taste" data-entity-press aria-pressed="true">口味${islandGlyph('arrow-down', 'size-3.5')}</button><button type="button" data-entity-sort="release" data-entity-press aria-pressed="false">发行</button>
+ <button type="button" data-entity-sort="taste" data-entity-press aria-pressed="true">口味${islandGlyph('arrow-down', 'size-3.5')}</button><button type="button" data-entity-sort="release" data-entity-press aria-pressed="false">${JAV_RELEASE_SORT[1]}</button>
</span>
</div>
</div>`;
diff --git a/frontend/src/react/jav/jav-page.tsx b/frontend/src/react/jav/jav-page.tsx
index a370ae83e..f9da2bd57 100644
--- a/frontend/src/react/jav/jav-page.tsx
+++ b/frontend/src/react/jav/jav-page.tsx
@@ -8,6 +8,7 @@ import { coverUrl } from '@peach/card-art';
import { relayoutCovers } from '../../card-art/framing';
import { wireHorizontalScroller } from '../../ui-kit/scroll';
import { feedIdentity } from '../../card-art/feed-identity';
+import { JAV_RELEASE_SORT } from '../../sort-preferences';
import { javContentSkeleton, JAV_RECOMMENDATION_GRID } from '../../jav-skeleton';
import { errorMessage } from '../../api';
import { CloudDownloadDialog, type DownloadPrefill } from '../activity/cloud-download-dialog';
@@ -88,7 +89,7 @@ function Discover({ readOnly, receipt, resource, query, navigate, clearText }: {
<span data-entity-sorts="">
<Segments label="JAV 卡片版式" value={layout} options={JAV_LAYOUTS} onChange={storeJavLayout} />
<SortKeys sorts={[{ key: 'taste', label: '口味', pressed: sort === 'taste', dir: ascending ? 'asc' : 'desc', ariaLabel: '按口味匹配排序' },
- { key: 'release', label: '发行', pressed: sort === 'release', dir: ascending ? 'asc' : 'desc', ariaLabel: '按发行日期排序' }]} onSort={key => {
+ { key: 'release', label: JAV_RELEASE_SORT[1], pressed: sort === 'release', dir: ascending ? 'asc' : 'desc', ariaLabel: '按发行日期排序' }]} onSort={key => {
if (key === sort) setAscending(!ascending); else { setSort(key); setAscending(false) }
}} /></span>
</>} />
diff --git a/src/peach/magnet_chain.py b/src/peach/magnet_chain.py
index 60e5fa8be..3f2b9dee9 100644
--- a/src/peach/magnet_chain.py
+++ b/src/peach/magnet_chain.py
@@ -164,6 +164,7 @@ def rank_candidates(items: list[dict], goal: str = "quality") -> list[dict]:
class Fetcher:
def __init__(self, root: Path, *, transport=None, deadline: float | None = None):
self.root = Path(root)
+ self.resource_result = {}
self.deadline = deadline or time.monotonic() + 45
self._owned = transport is None
self.transport = transport or HostLimitedTransport(
@@ -219,6 +220,7 @@ class Fetcher:
def javdb(self, code: str) -> list[dict]:
source = CHAIN[1]
result = JavDBSource().resources(code, session=self.session)
+ self.resource_result = result
return rank_candidates([candidate for item in result.get("items", ())
if (candidate := _normalise({**item, "source_url": result.get("source_url")},
source, code))])
@@ -288,8 +290,13 @@ def search(root: Path, code: str, *, transport=None, min_size: int = 0,
finally:
fetcher.close()
incomplete = bool(warnings) and not found
- return {"items": rank_candidates(found, goal), "warnings": warnings, "trace": trace,
+ result = {"items": rank_candidates(found, goal), "warnings": warnings, "trace": trace,
'state': 'error' if incomplete else 'ready',
'error': '部分来源未取得,请稍后重试或检查来源连接。' if incomplete else '',
"next_sources": [source.label for source in CHAIN[3:]],
"reference_only": list(REFERENCE_ONLY)}
+ if not stop_on_preferred:
+ linked = getattr(fetcher, 'resource_result', {})
+ result.update(linked_resources=linked.get('items', []), source_url=linked.get('source_url', ''))
+ result['warnings'].extend(linked.get('warnings') or [])
+ return result
diff --git a/src/peach/wants_magnets.py b/src/peach/wants_magnets.py
index 31841baf3..ca68786ba 100644
--- a/src/peach/wants_magnets.py
+++ b/src/peach/wants_magnets.py
@@ -1,4 +1,4 @@
-"""JAV 入库的只读磁链查询:串行请求、有限缓存、来源限速与失败冷却。"""
+"""想要作品的只读资源查询:串行请求、有限缓存、来源限速与失败冷却。"""
from __future__ import annotations
from collections import OrderedDict
@@ -14,8 +14,11 @@ from .sources import FailureReason, SourceFailure
def fetch(root: Path, code: str) -> dict:
from .magnet_chain import search
+ from .sources.javdb import merge_resources
result = search(root, code, stop_on_preferred=False)
- return {**result, 'items': [{**row, 'size': row['size_text']} for row in result['items']]}
+ linked = result.pop('linked_resources', [])
+ ranked = [{**row, 'id': 'magnet:' + row['info_hash'], 'size': row['size_text']} for row in result['items']]
+ return {**result, 'items': merge_resources([*ranked, *linked])[:128]}
def cache_lifetime(released: str | None, today: date | None = None) -> int:
diff --git a/src/peach/web_wants.py b/src/peach/web_wants.py
index ff477ac18..8abc12f6d 100644
--- a/src/peach/web_wants.py
+++ b/src/peach/web_wants.py
@@ -193,7 +193,7 @@ def _ids(body) -> list[int]:
def q_want_magnets(contract, args) -> dict:
- """只读磁链查询;未发售、已入库与没有番号的条目不请求来源。"""
+ """只读资源查询;未发售、已入库与没有番号的条目不请求来源。"""
from .wants_magnets import search_for
raw = str(args.get("id") or "")
diff --git a/tests/test_magnet_chain.py b/tests/test_magnet_chain.py
index 283437871..78b1f7938 100644
--- a/tests/test_magnet_chain.py
+++ b/tests/test_magnet_chain.py
@@ -25,6 +25,21 @@ def item(info_hash, **fields):
class MagnetChainTests(unittest.TestCase):
+ def test_wishlist_preserves_comment_links_and_more_than_eight_source_versions(self):
+ from peach.wants_magnets import fetch
+ links = [dict(id=f'magnet:{index:040x}', protocol='magnet', info_hash=f'{index:040x}',
+ uri=f'magnet:?xt=urn:btih:{index:040x}', name='ABC-123', size='2 GB', files='',
+ date='', attributes=[], source='JavDB', source_url='https://example.test/work', origins=['JavDB'])
+ for index in range(10)]
+ links.append({**links[0], 'id': 'ed2k:example', 'protocol': 'ed2k', 'info_hash': '',
+ 'uri': 'ed2k://|file|ABC-123|1234|' + 'a' * 32 + '|/', 'source': 'JavDB 评论'})
+ direct = _normalise({'uri': item(HASH_A)['uri'], 'size': '8 GiB'}, CHAIN[0], 'ABC-123')
+ with patch('peach.magnet_chain.search', return_value={'items': [direct], 'linked_resources': links}):
+ shown = fetch(Path('.'), 'ABC-123')['items']
+ self.assertEqual(len(shown), 12)
+ self.assertEqual(shown[-1]['protocol'], 'ed2k')
+ self.assertEqual(shown[0]['source'], 'manko.fun')
+
def test_direct_add_stops_at_preferred_hd_but_wishlist_collects_other_sources(self):
from peach.magnet_chain import Fetcher, search
from peach.wants_magnets import fetch
diff --git a/web/dist/peach-app.js b/web/dist/peach-app.js
index b5ba19eb3..de806f129 100644
--- a/web/dist/peach-app.js
+++ b/web/dist/peach-app.js
@@ -19048,7 +19048,7 @@ var ure = /*@__PURE__*/ ((e) => {
}
}, c_ = class extends s_ {
filter(e, t, n) {
- let [r, i] = pre(e, t, this.firstChildKey, n), a = this.clone();
+ let [r, i] = fre(e, t, this.firstChildKey, n), a = this.clone();
return a.firstChildKey = r, a.lastChildKey = i, a;
}
};
@@ -19084,7 +19084,7 @@ var l_ = class extends s_ {
}
return null;
}
-}, fre = class {
+}, d_ = class {
get size() {
return this.itemCount;
}
@@ -19159,14 +19159,14 @@ var l_ = class extends s_ {
this.firstKey = e, this.lastKey = t, this.frozen = !n;
}
filter(e) {
- let t = new this.constructor(), [n, r] = pre(this, t, this.firstKey, e);
+ let t = new this.constructor(), [n, r] = fre(this, t, this.firstKey, e);
return t?.commit(n, r), t;
}
constructor() {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.frozen = !1, this.itemCount = 0;
}
};
-function pre(e, t, n, r) {
+function fre(e, t, n, r) {
if (n == null) return [null, null];
let i = null, a = null, o = e.getItem(n);
for (; o != null;) {
@@ -19181,7 +19181,7 @@ function pre(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/collections/Document.mjs
-var mre = class {
+var pre = class {
constructor(e) {
this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;
}
@@ -19262,7 +19262,7 @@ var mre = class {
for (; e && e.isHidden;) e = e.previousSibling;
return e;
}
-}, d_ = class e extends mre {
+}, f_ = class e extends pre {
constructor(e, t) {
super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.isHidden = !1, this.node = null;
}
@@ -19313,7 +19313,7 @@ var mre = class {
setAttribute() {}
setAttributeNS() {}
removeAttribute() {}
-}, hre = class extends mre {
+}, mre = class extends pre {
constructor(e) {
super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = /* @__PURE__ */ new Set(), this.isSSR = !1, this.nodeId = 0, this.nodesByProps = /* @__PURE__ */ new WeakMap(), this.nextCollection = null, this.subscriptions = /* @__PURE__ */ new Set(), this.queuedRender = !1, this.inSubscription = !1, this.collection = e, this.nextCollection = e;
}
@@ -19321,7 +19321,7 @@ var mre = class {
return !0;
}
createElement(e) {
- return new d_(e, this);
+ return new f_(e, this);
}
getMutableCollection() {
return this.nextCollection ||= this.collection.clone(), this.nextCollection;
@@ -19343,8 +19343,8 @@ var mre = class {
return this.inSubscription || (this.queuedRender = !1, this.updateCollection()), this.collection;
}
updateCollection() {
- for (let e of this.dirtyNodes) e instanceof d_ && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
- for (let e of this.dirtyNodes) e instanceof d_ ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);
+ for (let e of this.dirtyNodes) e instanceof f_ && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
+ for (let e of this.dirtyNodes) e instanceof f_ ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);
this.nextCollection && (this.nextCollection.commit(this.firstVisibleChild?.node?.key ?? null, this.lastVisibleChild?.node?.key ?? null, this.isSSR), this.isSSR || (this.collection = this.nextCollection, this.nextCollection = null));
}
queueUpdate() {
@@ -19363,13 +19363,13 @@ var mre = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/collections/useCachedChildren.mjs
-function f_(e) {
+function p_(e) {
let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, b.useMemo)(() => void 0, [t]), s = (0, b.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
return (0, b.useMemo)(() => {
if (n && typeof t == "function") {
let e = [];
for (let a of n) {
- let n = gre(a) ? a : null, o = n ? s.get(n) : null;
+ let n = hre(a) ? a : null, o = n ? s.get(n) : null;
if (!o) {
o = t(a);
let c = o.props.id ?? a?.key ?? a?.id;
@@ -19394,7 +19394,7 @@ function f_(e) {
i
]);
}
-function gre(e) {
+function hre(e) {
switch (typeof e) {
case "object": return e != null;
case "function":
@@ -19404,26 +19404,26 @@ function gre(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs
-function p_(e) {
- if (_re()) e.focus({ preventScroll: !0 });
+function m_(e) {
+ if (gre()) e.focus({ preventScroll: !0 });
else {
- let t = vre(e);
- e.focus(), yre(t);
+ let t = _re(e);
+ e.focus(), vre(t);
}
}
-var m_ = null;
-function _re() {
- if (m_ == null) {
- m_ = !1;
+var h_ = null;
+function gre() {
+ if (h_ == null) {
+ h_ = !1;
try {
document.createElement("div").focus({ get preventScroll() {
- return m_ = !0, !0;
+ return h_ = !0, !0;
} });
} catch {}
}
- return m_;
+ return h_;
}
-function vre(e) {
+function _re(e) {
let t = e.parentNode, n = [], r = document.scrollingElement || document.documentElement;
for (; t instanceof HTMLElement && t !== r;) (t.offsetHeight < t.scrollHeight || t.offsetWidth < t.scrollWidth) && n.push({
element: t,
@@ -19436,25 +19436,25 @@ function vre(e) {
scrollLeft: r.scrollLeft
}), n;
}
-function yre(e) {
+function vre(e) {
for (let { element: t, scrollTop: n, scrollLeft: r } of e) t.scrollTop = n, t.scrollLeft = r;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/domHelpers.mjs
-var h_ = (e) => xre(e) ? e.document : Sre(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), g_ = (e) => h_(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
-function bre(e) {
+var g_ = (e) => bre(e) ? e.document : xre(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), __ = (e) => g_(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
+function yre(e) {
return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
}
-function xre(e) {
+function bre(e) {
return typeof e == "object" && !!e && "window" in e && e.window === e;
}
-function Sre(e) {
- return bre(e) && e.nodeType === 9;
+function xre(e) {
+ return yre(e) && e.nodeType === 9;
}
-function __(e) {
- return bre(e) && e.nodeType === 11 && "host" in e;
+function v_(e) {
+ return yre(e) && e.nodeType === 11 && "host" in e;
}
-function v_(e, t, n, r) {
+function y_(e, t, n, r) {
if (n == null || e == null) return () => {};
let i = Array.isArray(e) ? e : [e];
for (let e of i) e.addEventListener(t, n, r);
@@ -19462,7 +19462,7 @@ function v_(e, t, n, r) {
for (let e of i) e.removeEventListener(t, n, r);
};
}
-function y_(e, t, n, r) {
+function b_(e, t, n, r) {
if (e == null) return () => {};
let i = [], a = Array.isArray(e) ? e : [e];
for (let e of a) {
@@ -19477,73 +19477,73 @@ function y_(e, t, n, r) {
}
//#endregion
//#region node_modules/react-stately/dist/private/flags/flags.mjs
-var Cre = !1;
-function b_() {
- return Cre;
+var Sre = !1;
+function x_() {
+ return Sre;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs
-function x_(e, t) {
- if (!b_()) return t && e ? e.contains(t) : !1;
+function S_(e, t) {
+ if (!x_()) return t && e ? e.contains(t) : !1;
if (!e || !t) return !1;
let n = t;
for (; n !== null;) {
if (n === e) return !0;
- n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : __(n) ? n.host : n.parentNode;
+ n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : v_(n) ? n.host : n.parentNode;
}
return !1;
}
-var S_ = (e = document) => {
- if (!b_()) return e.activeElement;
+var C_ = (e = document) => {
+ if (!x_()) return e.activeElement;
let t = e.activeElement;
for (; t && "shadowRoot" in t && t.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;
return t;
};
-function C_(e) {
- if (b_() && e.target instanceof Element && e.target.shadowRoot) {
+function w_(e) {
+ if (x_() && e.target instanceof Element && e.target.shadowRoot) {
if ("composedPath" in e) return e.composedPath()[0] ?? null;
if ("composedPath" in e.nativeEvent) return e.nativeEvent.composedPath()[0] ?? null;
}
return e.target;
}
-function wre(e, t) {
+function Cre(e, t) {
if (t === null) return [];
- t ??= g_(e);
+ t ??= __(e);
let n = [t];
- if (!b_() || !e || e === t) return n;
+ if (!x_() || !e || e === t) return n;
let r = "getRootNode" in t ? t.getRootNode() : null, i = e.getRootNode() ?? null;
- for (; __(i) && i !== r;) n.push(i), i = i.host.getRootNode();
+ for (; v_(i) && i !== r;) n.push(i), i = i.host.getRootNode();
return n;
}
-function w_(e) {
+function T_(e) {
if (!e) return !1;
- let t = e.getRootNode(), n = g_(e);
+ let t = e.getRootNode(), n = __(e);
if (!(t instanceof n.Document || t instanceof n.ShadowRoot)) return !1;
let r = t.activeElement;
return r != null && e.contains(r);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isElementVisible.mjs
-var Tre = typeof Element < "u" && "checkVisibility" in Element.prototype;
-function Ere(e) {
- let t = g_(e);
+var wre = typeof Element < "u" && "checkVisibility" in Element.prototype;
+function Tre(e) {
+ let t = __(e);
if (!(e instanceof t.HTMLElement) && !(e instanceof t.SVGElement)) return !1;
let { display: n, visibility: r } = e.style, i = n !== "none" && r !== "hidden" && r !== "collapse";
if (i) {
- let { getComputedStyle: t } = g_(e), { display: n, visibility: r } = t(e);
+ let { getComputedStyle: t } = __(e), { display: n, visibility: r } = t(e);
i = n !== "none" && r !== "hidden" && r !== "collapse";
}
return i;
}
-function Dre(e, t) {
+function Ere(e, t) {
return !e.hasAttribute("hidden") && !e.hasAttribute("data-react-aria-prevent-focus") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);
}
-function T_(e, t) {
- return Tre ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && Ere(e) && Dre(e, t) && (!e.parentElement || T_(e.parentElement, e));
+function E_(e, t) {
+ return wre ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && Tre(e) && Ere(e, t) && (!e.parentElement || E_(e.parentElement, e));
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isFocusable.mjs
-var E_ = [
+var D_ = [
"input:not([disabled]):not([type=hidden])",
"select:not([disabled])",
"textarea:not([disabled])",
@@ -19558,60 +19558,60 @@ var E_ = [
"video[controls]",
"[contenteditable]:not([contenteditable^=\"false\"])",
"permission"
-], Ore = E_.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
-E_.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
-var kre = E_.join(":not([hidden]):not([tabindex=\"-1\"]),");
-function Are(e, t) {
- return e.matches(Ore) && !jre(e) && (t?.skipVisibilityCheck || T_(e));
+], Dre = D_.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
+D_.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
+var Ore = D_.join(":not([hidden]):not([tabindex=\"-1\"]),");
+function kre(e, t) {
+ return e.matches(Dre) && !Are(e) && (t?.skipVisibilityCheck || E_(e));
}
-function D_(e) {
- return e.matches(kre) && T_(e) && !jre(e);
+function O_(e) {
+ return e.matches(Ore) && E_(e) && !Are(e);
}
-function jre(e) {
+function Are(e) {
let t = e;
for (; t != null;) {
- if (t instanceof g_(t).HTMLElement && t.inert) return !0;
+ if (t instanceof __(t).HTMLElement && t.inert) return !0;
t = t.parentElement;
}
return !1;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs
-var O_ = typeof document < "u" ? b.useLayoutEffect : () => {};
+var k_ = typeof document < "u" ? b.useLayoutEffect : () => {};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/utils.mjs
-function k_(e) {
+function A_(e) {
let t = e;
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;
}
-function Mre(e, t) {
+function jre(e, t) {
Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });
}
-function Nre(e) {
+function Mre(e) {
let t = (0, b.useRef)({
isFocused: !1,
observer: null
});
- return O_(() => {
+ return k_(() => {
let e = t.current;
return () => {
e.observer &&= (e.observer.disconnect(), null);
};
}, []), (0, b.useCallback)((n) => {
- let r = C_(n);
+ let r = w_(n);
if (r instanceof HTMLButtonElement || r instanceof HTMLInputElement || r instanceof HTMLTextAreaElement || r instanceof HTMLSelectElement) {
t.current.isFocused = !0;
let n = r;
n.addEventListener("focusout", (r) => {
if (t.current.isFocused = !1, n.disabled) {
- let t = k_(r);
+ let t = A_(r);
e?.(t);
}
t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
}, { once: !0 }), t.current.observer = new MutationObserver(() => {
if (t.current.isFocused && n.disabled) {
t.current.observer?.disconnect();
- let e = n === S_() ? null : S_();
+ let e = n === C_() ? null : C_();
n.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), n.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: e
@@ -19624,87 +19624,87 @@ function Nre(e) {
}
}, [e]);
}
-var A_ = !1;
-function Pre(e) {
- for (; e && !Are(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
- let t = S_(g_(e).document);
+var j_ = !1;
+function Nre(e) {
+ for (; e && !kre(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
+ let t = C_(__(e).document);
if (!t || t === e) return;
- let n = e?.getRootNode(), r = n != null && __(n) ? n : g_(e), i = (t) => t === e || t != null && x_(e, t), a = (e) => e === t || t != null && e != null && x_(t, e);
- A_ = !0;
+ let n = e?.getRootNode(), r = n != null && v_(n) ? n : __(e), i = (t) => t === e || t != null && S_(e, t), a = (e) => e === t || t != null && e != null && S_(t, e);
+ j_ = !0;
let o = !1, s = (e) => {
- (a(C_(e)) || o) && e.stopImmediatePropagation();
+ (a(w_(e)) || o) && e.stopImmediatePropagation();
}, c = (n) => {
- (a(C_(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, p_(t), d()));
+ (a(w_(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, m_(t), d()));
}, l = (e) => {
- (i(C_(e)) || o) && e.stopImmediatePropagation();
+ (i(w_(e)) || o) && e.stopImmediatePropagation();
}, u = (e) => {
- (i(C_(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, p_(t), d()));
+ (i(w_(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, m_(t), d()));
};
r.addEventListener("blur", s, !0), r.addEventListener("focusout", c, !0), r.addEventListener("focusin", u, !0), r.addEventListener("focus", l, !0);
let d = () => {
- cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), A_ = !1, o = !1;
+ cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), j_ = !1, o = !1;
}, f = requestAnimationFrame(d);
return d;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/platform.mjs
-function j_(e) {
+function M_(e) {
if (typeof window > "u" || window.navigator == null) return !1;
let t = window.navigator.userAgentData?.brands;
return Array.isArray(t) && t.some((t) => e.test(t.brand)) || e.test(window.navigator.userAgent);
}
-function M_(e) {
+function N_(e) {
return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);
}
-function N_(e) {
+function P_(e) {
let t = null;
return () => (t ??= e(), t);
}
-var P_ = N_(function() {
- return M_(/^Mac/i);
-}), Fre = N_(function() {
- return M_(/^iPhone/i);
-}), Ire = N_(function() {
- return M_(/^iPad/i) || P_() && navigator.maxTouchPoints > 1;
-}), F_ = N_(function() {
- return Fre() || Ire();
-}), Lre = N_(function() {
- return P_() || F_();
-}), I_ = N_(function() {
- return j_(/AppleWebKit/i) && (F_() || !Rre());
-}), Rre = N_(function() {
- return j_(/Chrome|CriOS|CrMo/i);
-}), L_ = N_(function() {
- return j_(/Android/i);
-}), zre = N_(function() {
- return j_(/(Firefox|FxiOS)/i);
+var F_ = P_(function() {
+ return N_(/^Mac/i);
+}), Pre = P_(function() {
+ return N_(/^iPhone/i);
+}), Fre = P_(function() {
+ return N_(/^iPad/i) || F_() && navigator.maxTouchPoints > 1;
+}), I_ = P_(function() {
+ return Pre() || Fre();
+}), Ire = P_(function() {
+ return F_() || I_();
+}), L_ = P_(function() {
+ return M_(/AppleWebKit/i) && (I_() || !Lre());
+}), Lre = P_(function() {
+ return M_(/Chrome|CriOS|CrMo/i);
+}), R_ = P_(function() {
+ return M_(/Android/i);
+}), Rre = P_(function() {
+ return M_(/(Firefox|FxiOS)/i);
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs
-function Bre(e) {
- return e.pointerType === "" && e.isTrusted ? !0 : L_() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
+function zre(e) {
+ return e.pointerType === "" && e.isTrusted ? !0 : R_() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
}
-function Vre(e) {
- return !L_() && e.width === 0 && e.height === 0 || L_() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
+function Bre(e) {
+ return !R_() && e.width === 0 && e.height === 0 || R_() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/openLink.mjs
-var Hre = /*#__PURE__*/ (0, b.createContext)({
+var Vre = /*#__PURE__*/ (0, b.createContext)({
isNative: !0,
- open: Gre,
+ open: Wre,
useHref: (e) => e
});
-function R_() {
- return (0, b.useContext)(Hre);
+function z_() {
+ return (0, b.useContext)(Vre);
}
-function Ure(e, t) {
+function Hre(e, t) {
let n = e.getAttribute("target");
return (!n || n === "_self") && e.origin === location.origin && !e.hasAttribute("download") && !t.metaKey && !t.ctrlKey && !t.altKey && !t.shiftKey;
}
-function z_(e, t, n = !0) {
+function B_(e, t, n = !0) {
let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t;
- !I_() && zre() && window.event?.type?.startsWith("key") && e.target === "_blank" && (P_() ? r = !0 : i = !0);
- let s = I_() && P_() && !Ire() ? new KeyboardEvent("keydown", {
+ !L_() && Rre() && window.event?.type?.startsWith("key") && e.target === "_blank" && (F_() ? r = !0 : i = !0);
+ let s = L_() && F_() && !Fre() ? new KeyboardEvent("keydown", {
keyIdentifier: "Enter",
metaKey: r,
ctrlKey: i,
@@ -19719,21 +19719,21 @@ function z_(e, t, n = !0) {
bubbles: !0,
cancelable: !0
});
- z_.isOpening = n, p_(e), e.dispatchEvent(s), z_.isOpening = !1;
+ B_.isOpening = n, m_(e), e.dispatchEvent(s), B_.isOpening = !1;
}
-z_.isOpening = !1;
-function Wre(e, t) {
+B_.isOpening = !1;
+function Ure(e, t) {
if (e instanceof HTMLAnchorElement) t(e);
else if (e.hasAttribute("data-href")) {
let n = document.createElement("a");
n.href = e.getAttribute("data-href"), e.hasAttribute("data-target") && (n.target = e.getAttribute("data-target")), e.hasAttribute("data-rel") && (n.rel = e.getAttribute("data-rel")), e.hasAttribute("data-download") && (n.download = e.getAttribute("data-download")), e.hasAttribute("data-ping") && (n.ping = e.getAttribute("data-ping")), e.hasAttribute("data-referrer-policy") && (n.referrerPolicy = e.getAttribute("data-referrer-policy")), e.appendChild(n), t(n), e.removeChild(n);
}
}
-function Gre(e, t) {
- Wre(e, (e) => z_(e, t));
+function Wre(e, t) {
+ Ure(e, (e) => B_(e, t));
}
-function Kre(e) {
- let t = R_().useHref(e.href ?? "");
+function Gre(e) {
+ let t = z_().useHref(e.href ?? "");
return {
"data-href": e.href ? t : void 0,
"data-target": e.target,
@@ -19743,8 +19743,8 @@ function Kre(e) {
"data-referrer-policy": e.referrerPolicy
};
}
-function B_(e) {
- let t = R_().useHref(e?.href ?? ""), n = {};
+function V_(e) {
+ let t = z_().useHref(e?.href ?? ""), n = {};
if (e) for (let r of [
"href",
"target",
@@ -19755,134 +19755,134 @@ function B_(e) {
]) r in e && e[r] !== void 0 && (n[r] = r === "href" ? t : e[r]);
return n;
}
-function qre(e, t, n, r) {
- !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && Ure(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
+function Kre(e, t, n, r) {
+ !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && Hre(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
}
//#endregion
//#region node_modules/react-aria/dist/private/ssr/SSRProvider.mjs
-var Jre = {
+var qre = {
prefix: String(Math.round(Math.random() * 1e10)),
current: 0
-}, Yre = /*#__PURE__*/ b.createContext(Jre), Xre = /*#__PURE__*/ b.createContext(!1);
+}, Jre = /*#__PURE__*/ b.createContext(qre), Yre = /*#__PURE__*/ b.createContext(!1);
typeof window < "u" && window.document && window.document.createElement;
-var V_ = /* @__PURE__ */ new WeakMap();
-function Zre(e = !1) {
- let t = (0, b.useContext)(Yre), n = (0, b.useRef)(null);
+var H_ = /* @__PURE__ */ new WeakMap();
+function Xre(e = !1) {
+ let t = (0, b.useContext)(Jre), n = (0, b.useRef)(null);
if (n.current === null && !e) {
let e = b.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
if (e) {
- let n = V_.get(e);
- n == null ? V_.set(e, {
+ let n = H_.get(e);
+ n == null ? H_.set(e, {
id: t.current,
state: e.memoizedState
- }) : e.memoizedState !== n.state && (t.current = n.id, V_.delete(e));
+ }) : e.memoizedState !== n.state && (t.current = n.id, H_.delete(e));
}
n.current = ++t.current;
}
return n.current;
}
-function Qre(e) {
- let t = (0, b.useContext)(Yre), n = Zre(!!e), r = `react-aria${t.prefix}`;
+function Zre(e) {
+ let t = (0, b.useContext)(Jre), n = Xre(!!e), r = `react-aria${t.prefix}`;
return e || `${r}-${n}`;
}
-function $re(e) {
- let t = b.useId(), [n] = (0, b.useState)(H_()), r = n ? "react-aria" : `react-aria${Jre.prefix}`;
+function Qre(e) {
+ let t = b.useId(), [n] = (0, b.useState)(U_()), r = n ? "react-aria" : `react-aria${qre.prefix}`;
return e || `${r}-${t}`;
}
-var eie = typeof b.useId == "function" ? $re : Qre;
-function tie() {
+var $re = typeof b.useId == "function" ? Qre : Zre;
+function eie() {
return !1;
}
-function nie() {
+function tie() {
return !0;
}
-function rie(e) {
+function nie(e) {
return () => {};
}
-function H_() {
- return typeof b.useSyncExternalStore == "function" ? b.useSyncExternalStore(rie, tie, nie) : (0, b.useContext)(Xre);
+function U_() {
+ return typeof b.useSyncExternalStore == "function" ? b.useSyncExternalStore(nie, eie, tie) : (0, b.useContext)(Yre);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
-var U_ = null, W_ = /* @__PURE__ */ new Set(), G_ = /* @__PURE__ */ new Map(), K_ = !1, q_ = !1, iie = {
+var W_ = null, G_ = /* @__PURE__ */ new Set(), K_ = /* @__PURE__ */ new Map(), q_ = !1, J_ = !1, rie = {
Tab: !0,
Escape: !0
};
-function J_(e, t) {
- for (let n of W_) n(e, t);
-}
-function aie(e) {
- return !(e.metaKey || !P_() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
+function Y_(e, t) {
+ for (let n of G_) n(e, t);
}
-function Y_(e) {
- K_ = !0, !z_.isOpening && aie(e) && (U_ = "keyboard", J_("keyboard", e));
+function iie(e) {
+ return !(e.metaKey || !F_() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
}
function X_(e) {
- U_ = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (K_ = !0, J_("pointer", e));
+ q_ = !0, !B_.isOpening && iie(e) && (W_ = "keyboard", Y_("keyboard", e));
}
-function oie(e) {
- !z_.isOpening && Bre(e) && (K_ = !0, U_ = "virtual");
+function Z_(e) {
+ W_ = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (q_ = !0, Y_("pointer", e));
}
-function sie(e) {
- if (A_) return;
- let t = C_(e), n = g_(t), r = h_(t);
- t === n ? q_ = !0 : t !== r && e.isTrusted && (!K_ && !q_ && (U_ = "virtual", J_("virtual", e)), K_ = !1, q_ = !1);
+function aie(e) {
+ !B_.isOpening && zre(e) && (q_ = !0, W_ = "virtual");
}
-function cie() {
- A_ || (K_ = !1, q_ = !0);
+function oie(e) {
+ if (j_) return;
+ let t = w_(e), n = __(t), r = g_(t);
+ t === n ? J_ = !0 : t !== r && e.isTrusted && (!q_ && !J_ && (W_ = "virtual", Y_("virtual", e)), q_ = !1, J_ = !1);
}
-function Z_(e) {
+function sie() {
+ j_ || (q_ = !1, J_ = !0);
+}
+function Q_(e) {
if (typeof window > "u" || typeof document > "u") return;
- let t = g_(e), n = h_(e);
- if (G_.get(t)) return;
+ let t = __(e), n = g_(e);
+ if (K_.get(t)) return;
let r = t.HTMLElement.prototype.focus;
Reflect.defineProperty(t.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function() {
- K_ = !0, r.apply(this, arguments);
+ q_ = !0, r.apply(this, arguments);
}
- }), n.addEventListener("keydown", Y_, !0), n.addEventListener("keyup", Y_, !0), n.addEventListener("click", oie, !0), t.addEventListener("focus", sie, !0), t.addEventListener("blur", cie, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", X_, !0), n.addEventListener("pointermove", X_, !0), n.addEventListener("pointerup", X_, !0)), t.addEventListener("beforeunload", () => {
- lie(e);
- }, { once: !0 }), G_.set(t, { focus: r });
+ }), n.addEventListener("keydown", X_, !0), n.addEventListener("keyup", X_, !0), n.addEventListener("click", aie, !0), t.addEventListener("focus", oie, !0), t.addEventListener("blur", sie, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", Z_, !0), n.addEventListener("pointermove", Z_, !0), n.addEventListener("pointerup", Z_, !0)), t.addEventListener("beforeunload", () => {
+ cie(e);
+ }, { once: !0 }), K_.set(t, { focus: r });
}
-var lie = (e, t) => {
- let n = g_(e), r = h_(e);
- t && r.removeEventListener("DOMContentLoaded", t), G_.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
+var cie = (e, t) => {
+ let n = __(e), r = g_(e);
+ t && r.removeEventListener("DOMContentLoaded", t), K_.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
- value: G_.get(n).focus
- }), r.removeEventListener("keydown", Y_, !0), r.removeEventListener("keyup", Y_, !0), r.removeEventListener("click", oie, !0), n.removeEventListener("focus", sie, !0), n.removeEventListener("blur", cie, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", X_, !0), r.removeEventListener("pointermove", X_, !0), r.removeEventListener("pointerup", X_, !0)), G_.delete(n));
+ value: K_.get(n).focus
+ }), r.removeEventListener("keydown", X_, !0), r.removeEventListener("keyup", X_, !0), r.removeEventListener("click", aie, !0), n.removeEventListener("focus", oie, !0), n.removeEventListener("blur", sie, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", Z_, !0), r.removeEventListener("pointermove", Z_, !0), r.removeEventListener("pointerup", Z_, !0)), K_.delete(n));
};
-function uie(e) {
- let t = h_(e), n;
+function lie(e) {
+ let t = g_(e), n;
return t.readyState === "loading" ? (n = () => {
- Z_(e);
- }, t.addEventListener("DOMContentLoaded", n)) : Z_(e), () => lie(e, n);
-}
-typeof document < "u" && uie();
-function Q_() {
- return U_ !== "pointer";
+ Q_(e);
+ }, t.addEventListener("DOMContentLoaded", n)) : Q_(e), () => cie(e, n);
}
+typeof document < "u" && lie();
function $_() {
- return U_;
+ return W_ !== "pointer";
+}
+function ev() {
+ return W_;
}
-function ev(e) {
- U_ = e, J_(e, null);
+function tv(e) {
+ W_ = e, Y_(e, null);
}
-function die() {
- Z_();
- let [e, t] = (0, b.useState)(U_);
+function uie() {
+ Q_();
+ let [e, t] = (0, b.useState)(W_);
return (0, b.useEffect)(() => {
let e = () => {
- t(U_);
+ t(W_);
};
- return W_.add(e), () => {
- W_.delete(e);
+ return G_.add(e), () => {
+ G_.delete(e);
};
- }, []), H_() ? null : e;
+ }, []), U_() ? null : e;
}
-var fie = /* @__PURE__ */ new Set([
+var die = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -19893,89 +19893,89 @@ var fie = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function pie(e, t, n) {
- let r = n ? C_(n) : void 0, i = h_(r), a = g_(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = S_(i);
- return e = e || u instanceof o && !fie.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !iie[n.key]);
+function fie(e, t, n) {
+ let r = n ? w_(n) : void 0, i = g_(r), a = __(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = C_(i);
+ return e = e || u instanceof o && !die.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !rie[n.key]);
}
-function mie(e = {}) {
- let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, b.useState)(n || Q_());
- return hie((e) => {
+function pie(e = {}) {
+ let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, b.useState)(n || $_());
+ return mie((e) => {
i(e);
}, [t], { isTextInput: t }), { isFocusVisible: r };
}
-function hie(e, t, n) {
- Z_(), (0, b.useEffect)(() => {
+function mie(e, t, n) {
+ Q_(), (0, b.useEffect)(() => {
if (n?.enabled === !1) return;
let t = (t, r) => {
- pie(!!n?.isTextInput, t, r) && e(Q_());
+ fie(!!n?.isTextInput, t, r) && e($_());
};
- return W_.add(t), () => {
- W_.delete(t);
+ return G_.add(t), () => {
+ G_.delete(t);
};
}, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/runAfterTransition.mjs
-var tv = /* @__PURE__ */ new Map(), nv = /* @__PURE__ */ new Set();
-function gie() {
+var nv = /* @__PURE__ */ new Map(), rv = /* @__PURE__ */ new Set();
+function hie() {
if (typeof window > "u") return;
function e(e) {
return "propertyName" in e;
}
let t = (t) => {
- let r = C_(t);
+ let r = w_(t);
if (!e(t) || !r) return;
- let i = tv.get(r);
- i || (i = /* @__PURE__ */ new Set(), tv.set(r, i), r.addEventListener("transitioncancel", n, { once: !0 })), i.add(t.propertyName);
+ let i = nv.get(r);
+ i || (i = /* @__PURE__ */ new Set(), nv.set(r, i), r.addEventListener("transitioncancel", n, { once: !0 })), i.add(t.propertyName);
}, n = (t) => {
- let r = C_(t);
+ let r = w_(t);
if (!e(t) || !r) return;
- let i = tv.get(r);
- if (i && (i.delete(t.propertyName), i.size === 0 && (r.removeEventListener("transitioncancel", n), tv.delete(r)), tv.size === 0)) {
- for (let e of nv) e();
- nv.clear();
+ let i = nv.get(r);
+ if (i && (i.delete(t.propertyName), i.size === 0 && (r.removeEventListener("transitioncancel", n), nv.delete(r)), nv.size === 0)) {
+ for (let e of rv) e();
+ rv.clear();
}
};
document.body.addEventListener("transitionrun", t), document.body.addEventListener("transitionend", n);
}
-typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", gie) : gie());
-function _ie() {
- for (let [e] of tv) "isConnected" in e && !e.isConnected && tv.delete(e);
+typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", hie) : hie());
+function gie() {
+ for (let [e] of nv) "isConnected" in e && !e.isConnected && nv.delete(e);
}
-function vie(e) {
+function _ie(e) {
requestAnimationFrame(() => {
- _ie(), tv.size === 0 ? e() : nv.add(e);
+ gie(), nv.size === 0 ? e() : rv.add(e);
});
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/focusSafely.mjs
-function rv(e) {
+function iv(e) {
if (!e.isConnected) return;
- let t = h_(e);
- if ($_() === "virtual") {
- let n = S_(t);
- vie(() => {
- let r = S_(t);
- (r === n || r === t.body) && e.isConnected && p_(e);
+ let t = g_(e);
+ if (ev() === "virtual") {
+ let n = C_(t);
+ _ie(() => {
+ let r = C_(t);
+ (r === n || r === t.body) && e.isConnected && m_(e);
});
- } else p_(e);
+ } else m_(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/chain.mjs
-function iv(...e) {
+function av(...e) {
return (...t) => {
for (let n of e) typeof n == "function" && n(...t);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useValueEffect.mjs
-function yie(e) {
+function vie(e) {
let [t, n] = (0, b.useState)(e), r = (0, b.useRef)(t), i = (0, b.useRef)(null), a = (0, b.useRef)(() => {
if (!i.current) return;
let e = i.current.next();
e.done ? i.current = null : r.current === e.value ? a.current() : n(e.value);
});
- return O_(() => {
+ return k_(() => {
r.current = t, i.current && a.current();
}), [t, (0, b.useCallback)((e) => {
i.current = e(r.current), a.current();
@@ -19983,21 +19983,21 @@ function yie(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useId.mjs
-var bie = !!(typeof window < "u" && window.document && window.document.createElement), av = /* @__PURE__ */ new Map(), ov;
-typeof FinalizationRegistry < "u" && (ov = new FinalizationRegistry((e) => {
- av.delete(e);
+var yie = !!(typeof window < "u" && window.document && window.document.createElement), ov = /* @__PURE__ */ new Map(), sv;
+typeof FinalizationRegistry < "u" && (sv = new FinalizationRegistry((e) => {
+ ov.delete(e);
}));
-var sv = /* @__PURE__ */ new WeakMap();
-function cv(e) {
- let [t, n] = (0, b.useState)(e), r = (0, b.useRef)(null), i = eie(t), a = (0, b.useRef)(null), o = sv.get(a);
- if (ov && o !== i && (o != null && ov.unregister(a), ov.register(a, i, a), sv.set(a, i)), bie) {
- let e = av.get(i);
- e && !e.includes(r) ? e.push(r) : av.set(i, [r]);
- }
- return O_(() => {
+var cv = /* @__PURE__ */ new WeakMap();
+function lv(e) {
+ let [t, n] = (0, b.useState)(e), r = (0, b.useRef)(null), i = $re(t), a = (0, b.useRef)(null), o = cv.get(a);
+ if (sv && o !== i && (o != null && sv.unregister(a), sv.register(a, i, a), cv.set(a, i)), yie) {
+ let e = ov.get(i);
+ e && !e.includes(r) ? e.push(r) : ov.set(i, [r]);
+ }
+ return k_(() => {
let e = i;
return () => {
- ov && (ov.unregister(a), sv.delete(a)), av.delete(e);
+ sv && (sv.unregister(a), cv.delete(a)), ov.delete(e);
};
}, [i]), (0, b.useEffect)(() => {
let e = r.current;
@@ -20006,20 +20006,20 @@ function cv(e) {
};
}), i;
}
-function xie(e, t) {
+function bie(e, t) {
if (e === t) return e;
- let n = av.get(e);
+ let n = ov.get(e);
if (n) return n.forEach((e) => e.current = t), t;
- let r = av.get(t);
+ let r = ov.get(t);
return r ? (r.forEach((t) => t.current = e), e) : t;
}
-function lv(e = []) {
- let t = cv(), [n, r] = yie(t), i = (0, b.useCallback)(() => {
+function uv(e = []) {
+ let t = lv(), [n, r] = vie(t), i = (0, b.useCallback)(() => {
r(function* () {
yield t, yield document.getElementById(t) ? t : void 0;
});
}, [t, r]);
- return O_(i, [
+ return k_(i, [
t,
i,
...e
@@ -20027,38 +20027,38 @@ function lv(e = []) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/mergeRefs.mjs
-function uv(...e) {
+function dv(...e) {
return e.length === 1 && e[0] ? e[0] : (t) => {
let n = !1, r = e.map((e) => {
- let r = Sie(e, t);
+ let r = xie(e, t);
return n ||= typeof r == "function", r;
});
if (n) return () => {
r.forEach((t, n) => {
- typeof t == "function" ? t() : Sie(e[n], null);
+ typeof t == "function" ? t() : xie(e[n], null);
});
};
};
}
-function Sie(e, t) {
+function xie(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
//#endregion
//#region node_modules/clsx/dist/clsx.mjs
-function Cie(e) {
+function Sie(e) {
var t, n, r = "";
if (typeof e == "string" || typeof e == "number") r += e;
else if (typeof e == "object") {
if (Array.isArray(e)) {
var i = e.length;
- for (t = 0; t < i; t++) e[t] && (n = Cie(e[t])) && (r && (r += " "), r += n);
+ for (t = 0; t < i; t++) e[t] && (n = Sie(e[t])) && (r && (r += " "), r += n);
} else for (n in e) e[n] && (r && (r += " "), r += n);
}
return r;
}
-function dv() {
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Cie(e)) && (r && (r += " "), r += t);
+function fv() {
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Sie(e)) && (r && (r += " "), r += t);
return r;
}
//#endregion
@@ -20069,18 +20069,18 @@ function W(...e) {
let r = e[n];
for (let e in r) {
let n = t[e], i = r[e];
- typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = iv(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = dv(n, i) : e === "id" && n && i ? t.id = xie(n, i) : e === "ref" && n && i ? t.ref = uv(n, i) : t[e] = i === void 0 ? n : i;
+ typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = av(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = fv(n, i) : e === "id" && n && i ? t.id = bie(n, i) : e === "ref" && n && i ? t.ref = dv(n, i) : t[e] = i === void 0 ? n : i;
}
}
return t;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocus.mjs
-function fv(e) {
+function pv(e) {
let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, b.useCallback)((e) => {
- if (C_(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
- }, [r, i]), o = Nre(a), s = (0, b.useCallback)((e) => {
- let t = C_(e), r = h_(t), a = r ? S_(r) : S_();
+ if (w_(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
+ }, [r, i]), o = Mre(a), s = (0, b.useCallback)((e) => {
+ let t = w_(e), r = g_(t), a = r ? C_(r) : C_();
t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));
}, [
i,
@@ -20094,7 +20094,7 @@ function fv(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createEventHandler.mjs
-function pv(e) {
+function mv(e) {
if (e) return (t) => {
let n = !0;
e({
@@ -20119,33 +20119,33 @@ function pv(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs
-var wie = /* @__PURE__ */ new Set([
+var Cie = /* @__PURE__ */ new Set([
"shift",
"alt",
"control",
"meta",
"mod"
-]), Tie = [
+]), wie = [
"Alt",
"Control",
"Meta",
"Shift"
];
-function Eie(e) {
+function Tie(e) {
let t = /* @__PURE__ */ new Set();
- return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(P_() ? "Meta" : "Control"), t;
+ return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(F_() ? "Meta" : "Control"), t;
}
-function Die(e) {
+function Eie(e) {
let t = /* @__PURE__ */ new Set();
return e.altKey && t.add("Alt"), e.ctrlKey && t.add("Control"), e.metaKey && t.add("Meta"), e.shiftKey && t.add("Shift"), t;
}
-function Oie(e) {
- return Tie.filter((t) => e.has(t));
+function Die(e) {
+ return wie.filter((t) => e.has(t));
}
-function kie(e) {
+function Oie(e) {
let t = e.split("+").reduce((e, t) => {
let n = t.toLowerCase();
- return wie.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
+ return Cie.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
}, {
shift: !1,
alt: !1,
@@ -20157,10 +20157,10 @@ function kie(e) {
if (t.key === "") throw Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);
return t;
}
-function Aie(e) {
+function kie(e) {
return e.toLowerCase();
}
-var jie = {
+var Aie = {
space: " ",
esc: "escape",
del: "delete",
@@ -20172,26 +20172,26 @@ var jie = {
pageup: "pageup",
pagedown: "pagedown"
};
-function Mie(e) {
- let t = Aie(e);
- return jie[t] ?? t;
+function jie(e) {
+ let t = kie(e);
+ return Aie[t] ?? t;
}
-function Nie(e) {
- let t = Oie(Eie(e)), n = Mie(e.key);
+function Mie(e) {
+ let t = Die(Tie(e)), n = jie(e.key);
return t.length > 0 ? `${t.join("+")}+${n}` : n;
}
-function Pie(e) {
- let t = Oie(Die(e)), n = Aie(e.key);
+function Nie(e) {
+ let t = Die(Eie(e)), n = kie(e.key);
return (t.length > 0 ? `${t.join("+")}+` : "") + n;
}
-function Fie(e) {
+function Pie(e) {
let t = /* @__PURE__ */ new Map();
for (let [n, r] of Object.entries(e)) {
- let e = kie(n);
- t.set(Nie(e), r);
+ let e = Oie(n);
+ t.set(Mie(e), r);
}
return (e) => {
- let n = Pie(e), r = t.get(n), i = r?.(e);
+ let n = Nie(e), r = t.get(n), i = r?.(e);
i === void 0 && r !== void 0 ? i = {
shouldContinuePropagation: !1,
shouldPreventDefault: !0
@@ -20203,16 +20203,16 @@ function Fie(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useKeyboard.mjs
-function mv(e) {
+function hv(e) {
let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;
if (t) {
- let o = Fie(t), s = pv((e) => {
- x_(e.currentTarget, C_(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
- }), c = pv((e) => {
- x_(e.currentTarget, C_(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
+ let o = Pie(t), s = mv((e) => {
+ S_(e.currentTarget, w_(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
+ }), c = mv((e) => {
+ S_(e.currentTarget, w_(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
});
- i = e.onKeyDown ? iv(e.onKeyDown, s) : s, a = e.onKeyUp ? iv(e.onKeyUp, c) : c;
- } else i = pv(e.onKeyDown), a = pv(e.onKeyUp);
+ i = e.onKeyDown ? av(e.onKeyDown, s) : s, a = e.onKeyUp ? av(e.onKeyUp, c) : c;
+ } else i = mv(e.onKeyDown), a = mv(e.onKeyUp);
return { keyboardProps: e.isDisabled ? {} : {
onKeyDown: i,
onKeyUp: a
@@ -20220,7 +20220,7 @@ function mv(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useObjectRef.mjs
-function hv(e) {
+function gv(e) {
let t = (0, b.useRef)(null), n = (0, b.useRef)(void 0), r = (0, b.useCallback)((t) => {
if (typeof e == "function") {
let n = e, r = n(t);
@@ -20243,8 +20243,8 @@ function hv(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSyncRef.mjs
-function gv(e, t) {
- O_(() => {
+function _v(e, t) {
+ k_(() => {
if (e && e.ref && t) return e.ref.current = t.current, () => {
e.ref && (e.ref.current = null);
};
@@ -20252,17 +20252,17 @@ function gv(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusable.mjs
-var _v = /*#__PURE__*/ b.createContext(null);
-function Iie(e) {
- let t = (0, b.useContext)(_v) || {};
- gv(t, e);
+var vv = /*#__PURE__*/ b.createContext(null);
+function Fie(e) {
+ let t = (0, b.useContext)(vv) || {};
+ _v(t, e);
let { ref: n, ...r } = t;
return r;
}
-function vv(e, t) {
- let { focusProps: n } = fv(e), { keyboardProps: r } = mv(e), i = W(n, r), a = Iie(t), o = e.isDisabled ? {} : a, s = (0, b.useRef)(e.autoFocus);
+function yv(e, t) {
+ let { focusProps: n } = pv(e), { keyboardProps: r } = hv(e), i = W(n, r), a = Fie(t), o = e.isDisabled ? {} : a, s = (0, b.useRef)(e.autoFocus);
(0, b.useEffect)(() => {
- s.current && t.current && rv(t.current), s.current = !1;
+ s.current && t.current && iv(t.current), s.current = !1;
}, [t]);
let c = e.excludeFromTabOrder ? -1 : 0;
return e.isDisabled && (c = void 0), { focusableProps: W({
@@ -20297,22 +20297,22 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.p
return this.content.insertBefore(e, t);
}
}));
-var yv = /*#__PURE__*/ (0, b.createContext)(!1);
-function Lie(e) {
- if ((0, b.useContext)(yv)) return /*#__PURE__*/ b.createElement(b.Fragment, null, e.children);
- let t = /*#__PURE__*/ b.createElement(yv.Provider, { value: !0 }, e.children);
+var bv = /*#__PURE__*/ (0, b.createContext)(!1);
+function Iie(e) {
+ if ((0, b.useContext)(bv)) return /*#__PURE__*/ b.createElement(b.Fragment, null, e.children);
+ let t = /*#__PURE__*/ b.createElement(bv.Provider, { value: !0 }, e.children);
return /*#__PURE__*/ b.createElement("template", null, t);
}
-function bv(e) {
- let t = (t, n) => (0, b.useContext)(yv) ? null : e(t, n);
+function xv(e) {
+ let t = (t, n) => (0, b.useContext)(bv) ? null : e(t, n);
return t.displayName = e.displayName || e.name, (0, b.forwardRef)(t);
}
-function Rie() {
- return (0, b.useContext)(yv);
+function Lie() {
+ return (0, b.useContext)(bv);
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
-var zie = /* @__PURE__ */ o(((e) => {
+var Rie = /* @__PURE__ */ o(((e) => {
var t = d();
function n(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -20350,47 +20350,47 @@ var zie = /* @__PURE__ */ o(((e) => {
}
var f = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? u : c;
e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? f : t.useSyncExternalStore;
-})), Bie = /* @__PURE__ */ o(((e, t) => {
- t.exports = zie();
-})), Vie = Bie(), Hie = /*#__PURE__*/ (0, b.createContext)(!1), xv = /*#__PURE__*/ (0, b.createContext)(null);
-function Sv(e) {
- if ((0, b.useContext)(xv)) return e.content;
- let { collection: t, document: n } = Kie(e.createCollection);
- return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(Lie, null, /*#__PURE__*/ b.createElement(xv.Provider, { value: n }, e.content)), /*#__PURE__*/ b.createElement(Uie, {
+})), zie = /* @__PURE__ */ o(((e, t) => {
+ t.exports = Rie();
+})), Bie = zie(), Vie = /*#__PURE__*/ (0, b.createContext)(!1), Sv = /*#__PURE__*/ (0, b.createContext)(null);
+function Cv(e) {
+ if ((0, b.useContext)(Sv)) return e.content;
+ let { collection: t, document: n } = Gie(e.createCollection);
+ return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(Iie, null, /*#__PURE__*/ b.createElement(Sv.Provider, { value: n }, e.content)), /*#__PURE__*/ b.createElement(Hie, {
render: e.children,
collection: t
}));
}
-function Uie({ collection: e, render: t }) {
+function Hie({ collection: e, render: t }) {
return t(e);
}
-function Wie(e, t, n) {
- let r = H_(), i = (0, b.useRef)(r);
+function Uie(e, t, n) {
+ let r = U_(), i = (0, b.useRef)(r);
i.current = r;
let a = (0, b.useCallback)(() => i.current ? n() : t(), [t, n]);
- return (0, Vie.useSyncExternalStore)(e, a);
+ return (0, Bie.useSyncExternalStore)(e, a);
}
-var Gie = typeof b.useSyncExternalStore == "function" ? b.useSyncExternalStore : Wie;
-function Kie(e) {
- let [t] = (0, b.useState)(() => new hre(e?.() || new fre()));
+var Wie = typeof b.useSyncExternalStore == "function" ? b.useSyncExternalStore : Uie;
+function Gie(e) {
+ let [t] = (0, b.useState)(() => new mre(e?.() || new d_()));
return {
- collection: Gie((0, b.useCallback)((e) => t.subscribe(e), [t]), (0, b.useCallback)(() => {
+ collection: Wie((0, b.useCallback)((e) => t.subscribe(e), [t]), (0, b.useCallback)(() => {
let e = t.getCollection();
return t.isSSR && t.resetAfterSSR(), e;
}, [t]), (0, b.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
document: t
};
}
-var Cv = /*#__PURE__*/ (0, b.createContext)(null);
-function qie(e) {
+var wv = /*#__PURE__*/ (0, b.createContext)(null);
+function Kie(e) {
return class extends s_ {
static {
this.type = e;
}
};
}
-function wv(e, t, n, r, i, a) {
- typeof e == "string" && (e = qie(e));
+function Tv(e, t, n, r, i, a) {
+ typeof e == "string" && (e = Kie(e));
let o = (0, b.useCallback)((i) => {
i?.setProps(t, n, e, r, a);
}, [
@@ -20399,81 +20399,81 @@ function wv(e, t, n, r, i, a) {
r,
a,
e
- ]), s = (0, b.useContext)(Cv);
+ ]), s = (0, b.useContext)(wv);
if (s) {
let o = s.ownerDocument.nodesByProps.get(t);
- return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ b.createElement(Cv.Provider, { value: o }, i) : null;
+ return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ b.createElement(wv.Provider, { value: o }, i) : null;
}
return /*#__PURE__*/ b.createElement(e.type, { ref: o }, i);
}
-function Tv(e, t) {
+function Ev(e, t) {
let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, b.forwardRef)((r, i) => {
- let a = (0, b.useContext)(_v);
- if (!(0, b.useContext)(Hie)) {
+ let a = (0, b.useContext)(vv);
+ if (!(0, b.useContext)(Vie)) {
if (t.length >= 3) throw Error(t.name + " cannot be rendered outside a collection.");
return t(r, i);
}
- return wv(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ b.createElement(_v.Provider, { value: a }, /*#__PURE__*/ b.createElement(n, { node: e })));
+ return Tv(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ b.createElement(vv.Provider, { value: a }, /*#__PURE__*/ b.createElement(n, { node: e })));
});
return r.displayName = t.name, r;
}
-function Ev(e, t, n = Dv) {
- let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, b.forwardRef)((t, i) => wv(e, t, i, null, n(t), (e) => /*#__PURE__*/ b.createElement(r, { node: e })) ?? /*#__PURE__*/ b.createElement(b.Fragment, null));
+function Dv(e, t, n = Ov) {
+ let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, b.forwardRef)((t, i) => Tv(e, t, i, null, n(t), (e) => /*#__PURE__*/ b.createElement(r, { node: e })) ?? /*#__PURE__*/ b.createElement(b.Fragment, null));
return i.displayName = t.name, i;
}
-function Dv(e) {
- return f_({
+function Ov(e) {
+ return p_({
...e,
addIdAndValue: !0
});
}
-var Ov = /*#__PURE__*/ (0, b.createContext)(null);
-function kv(e) {
- let t = (0, b.useContext)(Ov), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = Dv({
+var kv = /*#__PURE__*/ (0, b.createContext)(null);
+function Av(e) {
+ let t = (0, b.useContext)(kv), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = Ov({
...e,
idScope: r,
dependencies: n
});
- return (0, b.useContext)(xv) && (i = /*#__PURE__*/ b.createElement(Jie, null, i)), t = (0, b.useMemo)(() => ({
+ return (0, b.useContext)(Sv) && (i = /*#__PURE__*/ b.createElement(qie, null, i)), t = (0, b.useMemo)(() => ({
dependencies: n,
idScope: r
- }), [r, ...n]), /*#__PURE__*/ b.createElement(Ov.Provider, { value: t }, i);
+ }), [r, ...n]), /*#__PURE__*/ b.createElement(kv.Provider, { value: t }, i);
}
-function Jie({ children: e }) {
- let t = (0, b.useContext)(xv), n = (0, b.useMemo)(() => /*#__PURE__*/ b.createElement(xv.Provider, { value: null }, /*#__PURE__*/ b.createElement(Hie.Provider, { value: !0 }, e)), [e]);
- return H_() ? /*#__PURE__*/ b.createElement(Cv.Provider, { value: t }, n) : /*#__PURE__*/ (0, mt.createPortal)(n, t);
+function qie({ children: e }) {
+ let t = (0, b.useContext)(Sv), n = (0, b.useMemo)(() => /*#__PURE__*/ b.createElement(Sv.Provider, { value: null }, /*#__PURE__*/ b.createElement(Vie.Provider, { value: !0 }, e)), [e]);
+ return U_() ? /*#__PURE__*/ b.createElement(wv.Provider, { value: t }, n) : /*#__PURE__*/ (0, mt.createPortal)(n, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/constants.mjs
-var Yie = "react-aria-clear-focus", Xie = "react-aria-focus";
+var Jie = "react-aria-clear-focus", Yie = "react-aria-focus";
//#endregion
//#region node_modules/react-aria/dist/private/focus/virtualFocus.mjs
-function Av(e) {
- let t = Qie(h_(e));
- t !== e && (t && Zie(t, e), e && jv(e, t));
+function jv(e) {
+ let t = Zie(g_(e));
+ t !== e && (t && Xie(t, e), e && Mv(e, t));
}
-function Zie(e, t) {
+function Xie(e, t) {
e.dispatchEvent(new FocusEvent("blur", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: t
}));
}
-function jv(e, t) {
+function Mv(e, t) {
e.dispatchEvent(new FocusEvent("focus", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusin", {
bubbles: !0,
relatedTarget: t
}));
}
-function Qie(e) {
- let t = S_(e), n = t?.getAttribute("aria-activedescendant");
+function Zie(e) {
+ let t = C_(e), n = t?.getAttribute("aria-activedescendant");
return n && e.getElementById(n) || t;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/keyboard.mjs
-function Mv(e) {
- return P_() ? e.metaKey : e.ctrlKey;
+function Nv(e) {
+ return F_() ? e.metaKey : e.ctrlKey;
}
-var $ie = /* @__PURE__ */ new Set([
+var Qie = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -20484,15 +20484,15 @@ var $ie = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function Nv(e) {
- return e instanceof HTMLInputElement && !$ie.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
+function Pv(e) {
+ return e instanceof HTMLInputElement && !Qie.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEffectEvent.mjs
-var eae = b.useInsertionEffect ?? O_;
-function Pv(e) {
+var $ie = b.useInsertionEffect ?? k_;
+function Fv(e) {
let t = (0, b.useRef)(null);
- return eae(() => {
+ return $ie(() => {
t.current = e;
}, [e]), (0, b.useCallback)((...e) => {
let n = t.current;
@@ -20501,10 +20501,10 @@ function Pv(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEvent.mjs
-function Fv(e, t, n, r) {
- let i = Pv(n), a = n == null;
+function Iv(e, t, n, r) {
+ let i = Fv(n), a = n == null;
(0, b.useEffect)(() => {
- if (!(a || e.current == null)) return v_(e.current, t, i, r);
+ if (!(a || e.current == null)) return y_(e.current, t, i, r);
}, [
e,
t,
@@ -20514,9 +20514,9 @@ function Fv(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLabels.mjs
-function Iv(e, t) {
+function Lv(e, t) {
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
- return n = cv(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
+ return n = lv(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
id: n,
"aria-label": r,
"aria-labelledby": i
@@ -20524,7 +20524,7 @@ function Iv(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/utils.mjs
-var tae = /* @__PURE__ */ new Set([
+var eae = /* @__PURE__ */ new Set([
"Arab",
"Syrc",
"Samr",
@@ -20535,7 +20535,7 @@ var tae = /* @__PURE__ */ new Set([
"Adlm",
"Rohg",
"Hebr"
-]), nae = /* @__PURE__ */ new Set([
+]), tae = /* @__PURE__ */ new Set([
"ae",
"ar",
"arc",
@@ -20556,20 +20556,20 @@ var tae = /* @__PURE__ */ new Set([
"ur",
"yi"
]);
-function rae(e) {
+function nae(e) {
if (Intl.Locale) {
let t = new Intl.Locale(e).maximize(), n = typeof t.getTextInfo == "function" ? t.getTextInfo() : t.textInfo;
if (n) return n.direction === "rtl";
- if (t.script) return tae.has(t.script);
+ if (t.script) return eae.has(t.script);
}
let t = e.split("-")[0];
- return nae.has(t);
+ return tae.has(t);
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs
-var Lv = Symbol.for("react-aria.i18n.locale");
-function Rv() {
- let e = typeof window < "u" && window[Lv] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
+var Rv = Symbol.for("react-aria.i18n.locale");
+function zv() {
+ let e = typeof window < "u" && window[Rv] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
try {
Intl.DateTimeFormat.supportedLocalesOf([e]);
} catch {
@@ -20577,33 +20577,33 @@ function Rv() {
}
return {
locale: e,
- direction: rae(e) ? "rtl" : "ltr"
+ direction: nae(e) ? "rtl" : "ltr"
};
}
-var zv = Rv(), Bv = /* @__PURE__ */ new Set();
-function Vv() {
- zv = Rv();
- for (let e of Bv) e(zv);
+var Bv = zv(), Vv = /* @__PURE__ */ new Set();
+function Hv() {
+ Bv = zv();
+ for (let e of Vv) e(Bv);
}
-function iae() {
- let e = H_(), [t, n] = (0, b.useState)(zv);
- return (0, b.useEffect)(() => (Bv.size === 0 && window.addEventListener("languagechange", Vv), Bv.add(n), () => {
- Bv.delete(n), Bv.size === 0 && window.removeEventListener("languagechange", Vv);
+function rae() {
+ let e = U_(), [t, n] = (0, b.useState)(Bv);
+ return (0, b.useEffect)(() => (Vv.size === 0 && window.addEventListener("languagechange", Hv), Vv.add(n), () => {
+ Vv.delete(n), Vv.size === 0 && window.removeEventListener("languagechange", Hv);
}), []), e ? {
- locale: typeof window < "u" && window[Lv] || "en-US",
+ locale: typeof window < "u" && window[Rv] || "en-US",
direction: "ltr"
} : t;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
-var aae = /*#__PURE__*/ b.createContext(null);
-function Hv() {
- let e = iae();
- return (0, b.useContext)(aae) || e;
+var iae = /*#__PURE__*/ b.createContext(null);
+function Uv() {
+ let e = rae();
+ return (0, b.useContext)(iae) || e;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
-var oae = Symbol.for("react-aria.i18n.locale"), sae = Symbol.for("react-aria.i18n.strings"), Uv = void 0, Wv = class e {
+var aae = Symbol.for("react-aria.i18n.locale"), oae = Symbol.for("react-aria.i18n.strings"), Wv = void 0, Gv = class e {
constructor(e, t = "en-US") {
this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;
}
@@ -20614,39 +20614,39 @@ var oae = Symbol.for("react-aria.i18n.locale"), sae = Symbol.for("react-aria.i18
}
getStringsForLocale(e) {
let t = this.strings[e];
- return t || (t = cae(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
+ return t || (t = sae(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
}
static getGlobalDictionaryForPackage(t) {
if (typeof window > "u") return null;
- let n = window[oae];
- if (Uv === void 0) {
- let t = window[sae];
+ let n = window[aae];
+ if (Wv === void 0) {
+ let t = window[oae];
if (!t) return null;
- Uv = {};
- for (let r in t) Uv[r] = new e({ [n]: t[r] }, n);
+ Wv = {};
+ for (let r in t) Wv[r] = new e({ [n]: t[r] }, n);
}
- let r = Uv?.[t];
+ let r = Wv?.[t];
if (!r) throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);
return r;
}
};
-function cae(e, t, n = "en-US") {
+function sae(e, t, n = "en-US") {
if (t[e]) return t[e];
- let r = lae(e), i = uae(e);
+ let r = cae(e), i = lae(e);
if (i && t[`${r}-${i}`]) return t[`${r}-${i}`];
if (t[r]) return t[r];
for (let e in t) if (e.startsWith(r + "-")) return t[e];
return t[n];
}
-function lae(e) {
+function cae(e) {
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
}
-function uae(e) {
+function lae(e) {
if (Intl.Locale) return new Intl.Locale(e).script;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
-var Gv = /* @__PURE__ */ new Map(), Kv = /* @__PURE__ */ new Map(), dae = class {
+var Kv = /* @__PURE__ */ new Map(), qv = /* @__PURE__ */ new Map(), uae = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -20657,37 +20657,37 @@ var Gv = /* @__PURE__ */ new Map(), Kv = /* @__PURE__ */ new Map(), dae = class
plural(e, t, n = "cardinal") {
let r = t["=" + e];
if (r) return typeof r == "function" ? r() : r;
- let i = this.locale + ":" + n, a = Gv.get(i);
- return a || (a = new Intl.PluralRules(this.locale, { type: n }), Gv.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
+ let i = this.locale + ":" + n, a = Kv.get(i);
+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), Kv.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
}
number(e) {
- let t = Kv.get(this.locale);
- return t || (t = new Intl.NumberFormat(this.locale), Kv.set(this.locale, t)), t.format(e);
+ let t = qv.get(this.locale);
+ return t || (t = new Intl.NumberFormat(this.locale), qv.set(this.locale, t)), t.format(e);
}
select(e, t) {
let n = e[t] || e.other;
return typeof n == "function" ? n() : n;
}
-}, qv = /* @__PURE__ */ new WeakMap();
-function fae(e) {
- let t = qv.get(e);
- return t || (t = new Wv(e), qv.set(e, t)), t;
+}, Jv = /* @__PURE__ */ new WeakMap();
+function dae(e) {
+ let t = Jv.get(e);
+ return t || (t = new Gv(e), Jv.set(e, t)), t;
}
-function pae(e, t) {
- return t && Wv.getGlobalDictionaryForPackage(t) || fae(e);
+function fae(e, t) {
+ return t && Gv.getGlobalDictionaryForPackage(t) || dae(e);
}
-function Jv(e, t) {
- let { locale: n } = Hv(), r = pae(e, t);
- return (0, b.useMemo)(() => new dae(n, r), [n, r]);
+function Yv(e, t) {
+ let { locale: n } = Uv(), r = fae(e, t);
+ return (0, b.useMemo)(() => new uae(n, r), [n, r]);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/filterDOMProps.mjs
-var mae = /* @__PURE__ */ new Set(["id"]), hae = /* @__PURE__ */ new Set([
+var pae = /* @__PURE__ */ new Set(["id"]), mae = /* @__PURE__ */ new Set([
"aria-label",
"aria-labelledby",
"aria-describedby",
"aria-details"
-]), gae = /* @__PURE__ */ new Set([
+]), hae = /* @__PURE__ */ new Set([
"href",
"hrefLang",
"target",
@@ -20695,71 +20695,71 @@ var mae = /* @__PURE__ */ new Set(["id"]), hae = /* @__PURE__ */ new Set([
"download",
"ping",
"referrerPolicy"
-]), _ae = /* @__PURE__ */ new Set([
+]), gae = /* @__PURE__ */ new Set([
"dir",
"lang",
"hidden",
"inert",
"translate"
-]), Yv = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), vae = /^(data-.*)$/;
-function Xv(e, t = {}) {
+]), Xv = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), _ae = /^(data-.*)$/;
+function Zv(e, t = {}) {
let { labelable: n, isLink: r, global: i, events: a = i, propNames: o } = t, s = {};
- for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (mae.has(t) || n && hae.has(t) || r && gae.has(t) || i && _ae.has(t) || a && (Yv.has(t) || t.endsWith("Capture") && Yv.has(t.slice(0, -7))) || o?.has(t) || vae.test(t)) && (s[t] = e[t]);
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (pae.has(t) || n && mae.has(t) || r && hae.has(t) || i && gae.has(t) || a && (Xv.has(t) || t.endsWith("Capture") && Xv.has(t.slice(0, -7))) || o?.has(t) || _ae.test(t)) && (s[t] = e[t]);
return s;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var Zv = "default", Qv = "", $v = /* @__PURE__ */ new WeakMap();
-function yae(e) {
- if (F_() && I_()) {
- if (Zv === "default") {
- let t = h_(e);
- Qv = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
- }
- Zv = "disabled";
+var Qv = "default", $v = "", ey = /* @__PURE__ */ new WeakMap();
+function vae(e) {
+ if (I_() && L_()) {
+ if (Qv === "default") {
+ let t = g_(e);
+ $v = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
+ }
+ Qv = "disabled";
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- $v.set(e, e.style[t]), e.style[t] = "none";
+ ey.set(e, e.style[t]), e.style[t] = "none";
}
}
-function ey(e) {
- if (F_() && I_()) {
- if (Zv !== "disabled") return;
- Zv = "restoring", setTimeout(() => {
- vie(() => {
- if (Zv === "restoring") {
- let t = h_(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Qv || ""), Qv = "", Zv = "default";
+function ty(e) {
+ if (I_() && L_()) {
+ if (Qv !== "disabled") return;
+ Qv = "restoring", setTimeout(() => {
+ _ie(() => {
+ if (Qv === "restoring") {
+ let t = g_(e);
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = $v || ""), $v = "", Qv = "default";
}
});
}, 300);
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && $v.has(e)) {
- let t = $v.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), $v.delete(e);
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && ey.has(e)) {
+ let t = ey.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), ey.delete(e);
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getMetaValue.mjs
-function bae(e, t) {
- let n = g_(t), r = h_(t);
+function yae(e, t) {
+ let n = __(t), r = g_(t);
if (r == null || n == null) return;
let i, a = `meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`, o = r.querySelector(a);
return o && o instanceof n.HTMLMetaElement && (e === "csp-nonce" && o.nonce && (i ??= o.nonce || void 0), o.content && (i ??= o.content || void 0)), e === "csp-nonce" && (i ??= n.__webpack_nonce__ || globalThis.__webpack_nonce__ || void 0), i;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getNonce.mjs
-var ty = /* @__PURE__ */ new WeakMap();
-function ny(e) {
- let t = h_(e), n = ty.get(t);
- return n ??= bae("csp-nonce", t), n !== void 0 && ty.set(t, n), n;
+var ny = /* @__PURE__ */ new WeakMap();
+function ry(e) {
+ let t = g_(e), n = ny.get(t);
+ return n ??= yae("csp-nonce", t), n !== void 0 && ny.set(t, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/context.mjs
-var ry = b.createContext({ register: () => {} });
-ry.displayName = "PressResponderContext";
+var iy = b.createContext({ register: () => {} });
+iy.displayName = "PressResponderContext";
//#endregion
//#region node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function iy() {
+function ay() {
let e = (0, b.useRef)(/* @__PURE__ */ new Map()), t = (0, b.useCallback)((t, n, r, i) => {
let a = i?.once ? (...t) => {
e.current.delete(r), r(...t);
@@ -20786,15 +20786,15 @@ function iy() {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/usePress.mjs
-function xae(e) {
- let t = (0, b.useContext)(ry);
+function bae(e) {
+ let t = (0, b.useContext)(iy);
if (t) {
let { register: n, ref: r, ...i } = t;
e = W(i, e), n();
}
- return gv(t, e.ref), e;
+ return _v(t, e.ref), e;
}
-var ay = class {
+var oy = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -20807,9 +20807,9 @@ var ay = class {
get shouldStopPropagation() {
return this.#e;
}
-}, oy = Symbol("linkClicked"), sy = "react-aria-pressable-style", cy = "data-react-aria-pressable";
-function ly(e) {
- let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = xae(e), [m, h] = (0, b.useState)(!1), g = (0, b.useRef)({
+}, sy = Symbol("linkClicked"), cy = "react-aria-pressable-style", ly = "data-react-aria-pressable";
+function uy(e) {
+ let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = bae(e), [m, h] = (0, b.useState)(!1), g = (0, b.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
didFirePressStart: !1,
@@ -20819,12 +20819,12 @@ function ly(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: _, removeAllGlobalListeners: v } = iy(), y = (0, b.useCallback)((e, t) => {
+ }), { addGlobalListener: _, removeAllGlobalListeners: v } = ay(), y = (0, b.useCallback)((e, t) => {
let i = g.current;
if (s || i.didFirePressStart) return !1;
let a = !0;
if (i.isTriggeringEvent = !0, r) {
- let n = new ay("pressstart", t, e);
+ let n = new oy("pressstart", t, e);
r(n), a = n.shouldStopPropagation;
}
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
@@ -20838,11 +20838,11 @@ function ly(e) {
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
let c = !0;
if (i) {
- let t = new ay("pressend", r, e);
+ let t = new oy("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new ay("press", r, e);
+ let n = new oy("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -20851,19 +20851,19 @@ function ly(e) {
i,
n,
t
- ]), S = Pv(x), C = Pv((0, b.useCallback)((e, t) => {
+ ]), S = Fv(x), C = Fv((0, b.useCallback)((e, t) => {
let n = g.current;
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new ay("pressup", t, e);
+ let r = new oy("pressup", t, e);
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
}
return !0;
}, [s, a])), w = (0, b.useCallback)((e) => {
let t = g.current;
if (t.isPressed && t.target) {
- t.didFirePressStart && t.pointerType != null && x(fy(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || ey(t.target);
+ t.didFirePressStart && t.pointerType != null && x(py(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || ty(t.target);
for (let e of t.disposables) e();
t.disposables = [];
}
@@ -20871,7 +20871,7 @@ function ly(e) {
d,
v,
x
- ]), T = Pv(w);
+ ]), T = Fv(w);
(0, b.useEffect)(() => {
s && g.current.isPressed && T({
currentTarget: g.current.target,
@@ -20888,39 +20888,39 @@ function ly(e) {
}, [s, o]), O = (0, b.useCallback)((e, t) => {
if (!s && o) {
let n = new MouseEvent("click", e);
- Mre(n, t), o(k_(n));
+ jre(n, t), o(A_(n));
}
}, [s, o]), k = (0, b.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (dy(t.nativeEvent, t.currentTarget) && x_(t.currentTarget, C_(t))) {
- py(C_(t), t.key) && t.preventDefault();
+ if (fy(t.nativeEvent, t.currentTarget) && S_(t.currentTarget, w_(t))) {
+ my(w_(t), t.key) && t.preventDefault();
let r = !0;
!e.isPressed && !t.repeat && (e.target = t.currentTarget, e.isPressed = !0, e.pointerType = "keyboard", r = y(t, "keyboard"));
let i = t.currentTarget;
- _(h_(t.currentTarget), "keyup", iv((t) => {
- dy(t, i) && !t.repeat && x_(i, C_(t)) && e.target && C(fy(e.target, t), "keyboard");
- }, n), !0), r && t.stopPropagation(), t.metaKey && P_() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
+ _(g_(t.currentTarget), "keyup", av((t) => {
+ fy(t, i) && !t.repeat && S_(i, w_(t)) && e.target && C(py(e.target, t), "keyboard");
+ }, n), !0), r && t.stopPropagation(), t.metaKey && F_() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
},
onClick(t) {
- if ((!t || x_(t.currentTarget, C_(t))) && t && t.button === 0 && !e.isTriggeringEvent && !z_.isOpening) {
+ if ((!t || S_(t.currentTarget, w_(t))) && t && t.button === 0 && !e.isTriggeringEvent && !B_.isOpening) {
let n = !0;
- if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || Bre(t.nativeEvent))) {
+ if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || zre(t.nativeEvent))) {
let e = y(t, "virtual"), r = C(t, "virtual"), i = S(t, "virtual");
D(t), n = e && r && i;
} else if (e.isPressed && e.pointerType !== "keyboard") {
- let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = C(fy(t.currentTarget, t), r), a = S(fy(t.currentTarget, t), r, !0);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = C(py(t.currentTarget, t), r), a = S(py(t.currentTarget, t), r, !0);
n = i && a, e.isOverTarget = !1, D(t), T(t);
}
e.ignoreEmulatedMouseEvents = !1, n && t.stopPropagation();
}
}
}, n = (t) => {
- if (e.isPressed && e.target && dy(t, e.target)) {
- py(C_(t), t.key) && t.preventDefault();
- let n = C_(t), r = x_(e.target, n);
- S(fy(e.target, t), "keyboard", r), r && O(t, e.target), v(), t.key !== "Enter" && uy(e.target) && x_(e.target, n) && !t[oy] && (t[oy] = !0, z_(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ if (e.isPressed && e.target && fy(t, e.target)) {
+ my(w_(t), t.key) && t.preventDefault();
+ let n = w_(t), r = S_(e.target, n);
+ S(py(e.target, t), "keyboard", r), r && O(t, e.target), v(), t.key !== "Enter" && dy(e.target) && S_(e.target, n) && !t[sy] && (t[sy] = !0, B_(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
} else if (t.key === "Meta" && e.metaKeyEvents?.size) {
let t = e.metaKeyEvents;
e.metaKeyEvents = void 0;
@@ -20929,39 +20929,39 @@ function ly(e) {
};
if (typeof PointerEvent < "u") {
t.onPointerDown = (t) => {
- if (t.button !== 0 || !x_(t.currentTarget, C_(t))) return;
- if (Vre(t.nativeEvent)) {
+ if (t.button !== 0 || !S_(t.currentTarget, w_(t))) return;
+ if (Bre(t.nativeEvent)) {
e.pointerType = "virtual";
return;
}
e.pointerType = t.pointerType;
let i = !0;
if (!e.isPressed) {
- e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || yae(e.target), i = y(t, e.pointerType);
- let a = C_(t);
- "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(h_(t.currentTarget), "pointerup", n, !1), _(h_(t.currentTarget), "pointercancel", r, !1);
+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || vae(e.target), i = y(t, e.pointerType);
+ let a = w_(t);
+ "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(g_(t.currentTarget), "pointerup", n, !1), _(g_(t.currentTarget), "pointercancel", r, !1);
}
i && t.stopPropagation();
}, t.onMouseDown = (t) => {
- if (x_(t.currentTarget, C_(t)) && t.button === 0) {
+ if (S_(t.currentTarget, w_(t)) && t.button === 0) {
if (l) {
- let n = Pre(t.target);
+ let n = Nre(t.target);
n && e.disposables.push(n);
}
t.stopPropagation();
}
}, t.onPointerUp = (t) => {
- x_(t.currentTarget, C_(t)) && e.pointerType !== "virtual" && t.button === 0 && !e.isPressed && C(t, e.pointerType || t.pointerType);
+ S_(t.currentTarget, w_(t)) && e.pointerType !== "virtual" && t.button === 0 && !e.isPressed && C(t, e.pointerType || t.pointerType);
}, t.onPointerEnter = (t) => {
- t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(fy(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(py(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, S(fy(e.target, t), e.pointerType, !1), E(t));
+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, S(py(e.target, t), e.pointerType, !1), E(t));
};
let n = (t) => {
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
- if (x_(e.target, C_(t)) && e.pointerType != null) {
+ if (S_(e.target, w_(t)) && e.pointerType != null) {
let n = !1, r = setTimeout(() => {
- e.isPressed && e.target instanceof HTMLElement && (n ? T(t) : (p_(e.target), e.target.click()));
+ e.isPressed && e.target instanceof HTMLElement && (n ? T(t) : (m_(e.target), e.target.click()));
}, 80);
_(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));
} else T(t);
@@ -20971,7 +20971,7 @@ function ly(e) {
T(e);
};
t.onDragStart = (e) => {
- x_(e.currentTarget, C_(e)) && T(e);
+ S_(e.currentTarget, w_(e)) && T(e);
};
}
return t;
@@ -20988,14 +20988,14 @@ function ly(e) {
]);
return (0, b.useEffect)(() => {
if (!f) return;
- let e = h_(f.current);
- if (!e || !e.head || e.getElementById(sy)) return;
+ let e = g_(f.current);
+ if (!e || !e.head || e.getElementById(cy)) return;
let t = e.createElement("style");
- t.id = sy;
- let n = ny(e);
+ t.id = cy;
+ let n = ry(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${cy}] {
+ [${ly}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
@@ -21003,23 +21003,23 @@ function ly(e) {
}, [f]), (0, b.useEffect)(() => {
let e = g.current;
return () => {
- d || ey(e.target ?? void 0);
+ d || ty(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: W(p, k, { [cy]: !0 })
+ pressProps: W(p, k, { [ly]: !0 })
};
}
-function uy(e) {
+function dy(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function dy(e, t) {
+function fy(e, t) {
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof g_(i).HTMLInputElement && !my(i, n) || i instanceof g_(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && uy(i)) && n !== "Enter");
+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof __(i).HTMLInputElement && !hy(i, n) || i instanceof __(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && dy(i)) && n !== "Enter");
}
-function fy(e, t) {
+function py(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -21032,13 +21032,13 @@ function fy(e, t) {
key: t.key
};
}
-function Sae(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !uy(e);
+function xae(e) {
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !dy(e);
}
-function py(e, t) {
- return P_() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !my(e, t) : Sae(e);
+function my(e, t) {
+ return F_() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !hy(e, t) : xae(e);
}
-var Cae = /* @__PURE__ */ new Set([
+var Sae = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -21049,12 +21049,12 @@ var Cae = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function my(e, t) {
- return e.type === "checkbox" || e.type === "radio" ? t === " " : Cae.has(e.type);
+function hy(e, t) {
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : Sae.has(e.type);
}
//#endregion
//#region node_modules/react-aria/dist/private/button/useButton.mjs
-function wae(e, t) {
+function Cae(e, t) {
let { elementType: n = "button", isDisabled: r, onPress: i, onPressStart: a, onPressEnd: o, onPressUp: s, onPressChange: c, preventFocusOnPress: l, allowFocusWhenDisabled: u, onClick: d, href: f, target: p, rel: m, type: h = "button" } = e, g;
g = n === "button" ? {
type: h,
@@ -21076,7 +21076,7 @@ function wae(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = ly({
+ let { pressProps: _, isPressed: v } = uy({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -21086,9 +21086,9 @@ function wae(e, t) {
isDisabled: r,
preventFocusOnPress: l,
ref: t
- }), { focusableProps: y } = vv(e, t);
+ }), { focusableProps: y } = yv(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = W(y, _, Xv(e, { labelable: !0 }));
+ let b = W(y, _, Zv(e, { labelable: !0 }));
return {
isPressed: v,
buttonProps: W(g, b, {
@@ -21103,7 +21103,7 @@ function wae(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs
-var Tae = class {
+var wae = class {
constructor(e, t, n, r) {
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {
if (e.nodeType === Node.ELEMENT_NODE) {
@@ -21128,7 +21128,7 @@ var Tae = class {
return this._currentNode;
}
set currentNode(e) {
- if (!x_(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
+ if (!S_(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
let t = [], n = e, r = e;
for (this._currentNode = e; n && n !== this.root;) if (n.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
let e = n, i = this._doc.createTreeWalker(e, this.whatToShow, { acceptNode: this._acceptNode });
@@ -21142,7 +21142,7 @@ var Tae = class {
}
firstChild() {
let e = this.currentNode, t = this.nextNode();
- return x_(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
+ return S_(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
}
lastChild() {
let e = this._walkerStack[0].lastChild();
@@ -21206,45 +21206,45 @@ var Tae = class {
return null;
}
};
-function hy(e, t, n, r) {
- return b_() ? new Tae(e, t, n, r) : e.createTreeWalker(t, n, r);
+function gy(e, t, n, r) {
+ return x_() ? new wae(e, t, n, r) : e.createTreeWalker(t, n, r);
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var gy = /*#__PURE__*/ b.createContext(null), _y = "react-aria-focus-scope-restore", vy = null;
-function yy(e) {
- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = (0, b.useRef)([]), { parentNode: c } = (0, b.useContext)(gy) || {}, l = (0, b.useMemo)(() => new My({ scopeRef: s }), [s]);
- O_(() => {
- let e = c || Ny.root;
- if (Ny.getTreeNode(e.scopeRef) && vy && !Ty(vy, e.scopeRef)) {
- let t = Ny.getTreeNode(vy);
+var _y = /*#__PURE__*/ b.createContext(null), vy = "react-aria-focus-scope-restore", yy = null;
+function by(e) {
+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = (0, b.useRef)([]), { parentNode: c } = (0, b.useContext)(_y) || {}, l = (0, b.useMemo)(() => new Ny({ scopeRef: s }), [s]);
+ k_(() => {
+ let e = c || Py.root;
+ if (Py.getTreeNode(e.scopeRef) && yy && !Ey(yy, e.scopeRef)) {
+ let t = Py.getTreeNode(yy);
t && (e = t);
}
- e.addChild(l), Ny.addNode(l);
- }, [l, c]), O_(() => {
- let e = Ny.getTreeNode(s);
+ e.addChild(l), Py.addNode(l);
+ }, [l, c]), k_(() => {
+ let e = Py.getTreeNode(s);
e && (e.contain = !!n);
- }, [n]), O_(() => {
+ }, [n]), k_(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(_y, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(vy, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(_y, n);
+ for (let e of t) e.removeEventListener(vy, n);
};
- }, [t]), Mae(s, r, n), kae(s, n), Nae(s, r, n), jae(s, i), (0, b.useEffect)(() => {
- let e = S_(h_(s.current ? s.current[0] : void 0)), t = null;
- if (Cy(e, s.current)) {
- for (let n of Ny.traverse()) n.scopeRef && Cy(e, n.scopeRef.current) && (t = n);
- t === Ny.getTreeNode(s) && (vy = t.scopeRef);
- }
- }, [s]), O_(() => () => {
- let e = Ny.getTreeNode(s)?.parent?.scopeRef ?? null;
- (s === vy || Ty(s, vy)) && (!e || Ny.getTreeNode(e)) && (vy = e), Ny.removeTreeNode(s);
+ }, [t]), jae(s, r, n), Oae(s, n), Mae(s, r, n), Aae(s, i), (0, b.useEffect)(() => {
+ let e = C_(g_(s.current ? s.current[0] : void 0)), t = null;
+ if (wy(e, s.current)) {
+ for (let n of Py.traverse()) n.scopeRef && wy(e, n.scopeRef.current) && (t = n);
+ t === Py.getTreeNode(s) && (yy = t.scopeRef);
+ }
+ }, [s]), k_(() => () => {
+ let e = Py.getTreeNode(s)?.parent?.scopeRef ?? null;
+ (s === yy || Ey(s, yy)) && (!e || Py.getTreeNode(e)) && (yy = e), Py.removeTreeNode(s);
}, [s]);
- let u = (0, b.useMemo)(() => Eae(s), []), d = (0, b.useMemo)(() => ({
+ let u = (0, b.useMemo)(() => Tae(s), []), d = (0, b.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ b.createElement(gy.Provider, { value: d }, /*#__PURE__*/ b.createElement("span", {
+ return /*#__PURE__*/ b.createElement(_y.Provider, { value: d }, /*#__PURE__*/ b.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
@@ -21254,154 +21254,154 @@ function yy(e) {
ref: o
}));
}
-function Eae(e) {
+function Tae(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || S_(h_(n[0] ?? void 0)), c = n[0].previousElementSibling, l = jy(by(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || C_(g_(n[0] ?? void 0)), c = n[0].previousElementSibling, l = My(xy(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = Cy(s, n) ? s : c;
+ l.currentNode = wy(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && Ey(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && Dy(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || S_(h_(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = jy(by(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || C_(g_(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = My(xy(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = Cy(s, n) ? s : c;
+ l.currentNode = wy(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && Ey(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && Dy(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = jy(by(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = My(xy(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && Ey(o, !0), o;
+ return o && Dy(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = jy(by(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = My(xy(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && Ey(o, !0), o;
+ return o && Dy(o, !0), o;
}
};
}
-function by(e) {
+function xy(e) {
return e[0].parentElement;
}
-function xy(e) {
- let t = Ny.getTreeNode(vy);
+function Sy(e) {
+ let t = Py.getTreeNode(yy);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
}
return !0;
}
-function Dae(e) {
- if (!e.form) return Array.from(h_(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
- let t = e.form.elements.namedItem(e.name), n = g_(e);
+function Eae(e) {
+ if (!e.form) return Array.from(g_(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
+ let t = e.form.elements.namedItem(e.name), n = __(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
-function Oae(e) {
+function Dae(e) {
if (e.checked) return !0;
- let t = Dae(e);
+ let t = Eae(e);
return t.length > 0 && !t.some((e) => e.checked);
}
-function kae(e, t) {
+function Oae(e, t) {
let n = (0, b.useRef)(void 0), r = (0, b.useRef)(void 0);
- O_(() => {
+ k_(() => {
let i = e.current;
if (!t) {
r.current &&= (cancelAnimationFrame(r.current), void 0);
return;
}
- let a = h_(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !xy(e) || t.isComposing) return;
- let n = S_(a), r = e.current;
- if (!r || !Cy(n, r)) return;
- let i = jy(by(r), { tabbable: !0 }, r);
+ let a = g_(i ? i[0] : void 0), o = (t) => {
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Sy(e) || t.isComposing) return;
+ let n = C_(a), r = e.current;
+ if (!r || !wy(n, r)) return;
+ let i = My(xy(r), { tabbable: !0 }, r);
if (!n) return;
i.currentNode = n;
let o = t.shiftKey ? i.previousNode() : i.nextNode();
- o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (Ey(o, !0), o instanceof g_(o).HTMLInputElement && o.select());
+ o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (Dy(o, !0), o instanceof __(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!vy || Ty(vy, e)) && Cy(C_(t), e.current) ? (vy = e, n.current = C_(t)) : xy(e) && !wy(C_(t), e) ? n.current ? Ey(n.current) : vy && vy.current && Oy(vy.current) : xy(e) && (n.current = C_(t));
+ (!yy || Ey(yy, e)) && wy(w_(t), e.current) ? (yy = e, n.current = w_(t)) : Sy(e) && !Ty(w_(t), e) ? n.current ? Dy(n.current) : yy && yy.current && ky(yy.current) : Sy(e) && (n.current = w_(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
- let r = $_(), i = (r === "virtual" || r === null) && L_() && Rre(), o = S_(a);
- if (!i && o && xy(e) && !wy(o, e)) {
- vy = e;
- let r = C_(t);
- r && r.isConnected ? (n.current = r, Ey(n.current)) : vy.current && Oy(vy.current);
+ let r = ev(), i = (r === "virtual" || r === null) && R_() && Lre(), o = C_(a);
+ if (!i && o && Sy(e) && !Ty(o, e)) {
+ yy = e;
+ let r = w_(t);
+ r && r.isConnected ? (n.current = r, Dy(n.current)) : yy.current && ky(yy.current);
}
});
};
return a.addEventListener("keydown", o, !1), a.addEventListener("focusin", s, !1), i?.forEach((e) => e.addEventListener("focusin", s, !1)), i?.forEach((e) => e.addEventListener("focusout", c, !1)), () => {
a.removeEventListener("keydown", o, !1), a.removeEventListener("focusin", s, !1), i?.forEach((e) => e.removeEventListener("focusin", s, !1)), i?.forEach((e) => e.removeEventListener("focusout", c, !1));
};
- }, [e, t]), O_(() => () => {
+ }, [e, t]), k_(() => () => {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function Sy(e) {
- return wy(e);
+function Cy(e) {
+ return Ty(e);
}
-function Cy(e, t) {
- return !e || !t ? !1 : t.some((t) => x_(t, e));
+function wy(e, t) {
+ return !e || !t ? !1 : t.some((t) => S_(t, e));
}
-function wy(e, t = null) {
+function Ty(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of Ny.traverse(Ny.getTreeNode(t))) if (n && Cy(e, n.current)) return !0;
+ for (let { scopeRef: n } of Py.traverse(Py.getTreeNode(t))) if (n && wy(e, n.current)) return !0;
return !1;
}
-function Aae(e) {
- return wy(e, vy);
+function kae(e) {
+ return Ty(e, yy);
}
-function Ty(e, t) {
- let n = Ny.getTreeNode(t)?.parent;
+function Ey(e, t) {
+ let n = Py.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function Ey(e, t = !1) {
+function Dy(e, t = !1) {
if (e != null && !t) try {
- rv(e);
+ iv(e);
} catch {}
else if (e != null) try {
e.focus();
} catch {}
}
-function Dy(e, t = !0) {
- let n = e[0].previousElementSibling, r = by(e), i = jy(r, { tabbable: t }, e);
+function Oy(e, t = !0) {
+ let n = e[0].previousElementSibling, r = xy(e), i = My(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = by(e), i = jy(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = xy(e), i = My(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function Oy(e, t = !0) {
- Ey(Dy(e, t));
+function ky(e, t = !0) {
+ Dy(Oy(e, t));
}
-function jae(e, t) {
+function Aae(e, t) {
let n = b.useRef(t);
(0, b.useEffect)(() => {
- n.current && (vy = e, !Cy(S_(h_(e.current ? e.current[0] : void 0)), vy.current) && e.current && Oy(e.current)), n.current = !1;
+ n.current && (yy = e, !wy(C_(g_(e.current ? e.current[0] : void 0)), yy.current) && e.current && ky(e.current)), n.current = !1;
}, [e]);
}
-function Mae(e, t, n) {
- O_(() => {
+function jae(e, t, n) {
+ k_(() => {
if (t || n) return;
- let r = e.current, i = h_(r ? r[0] : void 0), a = (t) => {
- let n = C_(t);
- Cy(n, e.current) ? vy = e : Sy(n) || (vy = null);
+ let r = e.current, i = g_(r ? r[0] : void 0), a = (t) => {
+ let n = w_(t);
+ wy(n, e.current) ? yy = e : Cy(n) || (yy = null);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
@@ -21412,43 +21412,43 @@ function Mae(e, t, n) {
n
]);
}
-function ky(e) {
- let t = Ny.getTreeNode(vy);
+function Ay(e) {
+ let t = Py.getTreeNode(yy);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
}
return t?.scopeRef === e;
}
-function Nae(e, t, n) {
- let r = (0, b.useRef)(typeof document < "u" ? S_(h_(e.current ? e.current[0] : void 0)) : null);
- O_(() => {
- let r = e.current, i = h_(r ? r[0] : void 0);
+function Mae(e, t, n) {
+ let r = (0, b.useRef)(typeof document < "u" ? C_(g_(e.current ? e.current[0] : void 0)) : null);
+ k_(() => {
+ let r = e.current, i = g_(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!vy || Ty(vy, e)) && Cy(S_(i), e.current) && (vy = e);
+ (!yy || Ey(yy, e)) && wy(C_(i), e.current) && (yy = e);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
};
- }, [e, n]), O_(() => {
- let r = h_(e.current ? e.current[0] : void 0);
+ }, [e, n]), k_(() => {
+ let r = g_(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !xy(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Sy(e) || t.isComposing) return;
let n = r.activeElement;
- if (!wy(n, e) || !ky(e)) return;
- let i = Ny.getTreeNode(e);
+ if (!Ty(n, e) || !Ay(e)) return;
+ let i = Py.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = jy(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = My(r.body, { tabbable: !0 });
o.currentNode = n;
let s = t.shiftKey ? o.previousNode() : o.nextNode();
- if ((!a || !a.isConnected || a === r.body) && (a = void 0, i.nodeToRestore = void 0), (!s || !wy(s, e)) && a) {
+ if ((!a || !a.isConnected || a === r.body) && (a = void 0, i.nodeToRestore = void 0), (!s || !Ty(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (wy(s, e));
- t.preventDefault(), t.stopPropagation(), s ? Ey(s, !0) : Sy(a) ? Ey(a, !0) : n.blur();
+ while (Ty(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? Dy(s, !0) : Cy(a) ? Dy(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -21458,31 +21458,31 @@ function Nae(e, t, n) {
e,
t,
n
- ]), O_(() => {
- let n = h_(e.current ? e.current[0] : void 0);
+ ]), k_(() => {
+ let n = g_(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = Ny.getTreeNode(e);
+ let i = Py.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = Ny.getTreeNode(e);
+ let r = Py.getTreeNode(e);
if (!r) return;
- let i = r.nodeToRestore, a = S_(n);
- if (t && i && (a && wy(a, e) || a === n.body && ky(e))) {
- let t = Ny.clone();
+ let i = r.nodeToRestore, a = C_(n);
+ if (t && i && (a && Ty(a, e) || a === n.body && Ay(e))) {
+ let t = Py.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- Ay(n.nodeToRestore);
+ jy(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && Ny.getTreeNode(n.scopeRef)) {
- let e = Dy(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && Py.getTreeNode(n.scopeRef)) {
+ let e = Oy(n.scopeRef.current, !0);
if (e) {
- Ay(e);
+ jy(e);
return;
}
}
@@ -21494,21 +21494,21 @@ function Nae(e, t, n) {
};
}, [e, t]);
}
-function Ay(e) {
- e.dispatchEvent(new CustomEvent(_y, {
+function jy(e) {
+ e.dispatchEvent(new CustomEvent(vy, {
bubbles: !0,
cancelable: !0
- })) && Ey(e);
+ })) && Dy(e);
}
-function jy(e, t, n) {
- let r = t?.tabbable ? D_ : Are, i = h_(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = hy(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return x_(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Oae(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || Cy(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function My(e, t, n) {
+ let r = t?.tabbable ? O_ : kre, i = g_(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = gy(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return S_(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Dae(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || wy(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
-var Pae = class e {
+var Nae = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new My({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new Ny({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -21519,7 +21519,7 @@ var Pae = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new My({ scopeRef: e });
+ let i = new Ny({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -21530,7 +21530,7 @@ var Pae = class e {
let t = this.fastMap.get(e);
if (!t) return;
let n = t.parent;
- for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && Cy(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
+ for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && wy(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
let r = t.children;
n && (n.removeChild(t), r.size > 0 && r.forEach((e) => n && n.addChild(e))), this.fastMap.delete(t.scopeRef);
}
@@ -21542,7 +21542,7 @@ var Pae = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, My = class {
+}, Ny = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -21552,13 +21552,13 @@ var Pae = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, Ny = new Pae(), Py = 7e3, Fy = null;
-function Iy(e, t = "assertive", n = Py) {
- Fy ? Fy.announce(e, t, n) : (Fy = new Fae(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? Fy.announce(e, t, n) : setTimeout(() => {
- Fy?.isAttached() && Fy?.announce(e, t, n);
+}, Py = new Nae(), Fy = 7e3, Iy = null;
+function Ly(e, t = "assertive", n = Fy) {
+ Iy ? Iy.announce(e, t, n) : (Iy = new Pae(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? Iy.announce(e, t, n) : setTimeout(() => {
+ Iy?.isAttached() && Iy?.announce(e, t, n);
}, 100));
}
-var Fae = class {
+var Pae = class {
constructor() {
this.node = null, this.assertiveLog = null, this.politeLog = null, typeof document < "u" && (this.node = document.createElement("div"), this.node.dataset.liveAnnouncer = "true", Object.assign(this.node.style, {
border: 0,
@@ -21583,7 +21583,7 @@ var Fae = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = Py) {
+ announce(e, t = "assertive", n = Fy) {
if (!this.node) return;
let r = document.createElement("div");
typeof e == "object" ? (r.setAttribute("role", "img"), r.setAttribute("aria-labelledby", e["aria-labelledby"])) : r.textContent = e, t === "assertive" ? this.assertiveLog?.appendChild(r) : this.politeLog?.appendChild(r), e !== "" && setTimeout(() => {
@@ -21596,8 +21596,8 @@ var Fae = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateEffect.mjs
-function Ly(e, t) {
- let n = (0, b.useRef)(!0), r = (0, b.useRef)(null), i = Pv(e);
+function Ry(e, t) {
+ let n = (0, b.useRef)(!0), r = (0, b.useRef)(null), i = Fv(e);
(0, b.useEffect)(() => (n.current = !0, () => {
n.current = !1;
}), []), (0, b.useEffect)(() => {
@@ -21607,33 +21607,33 @@ function Ly(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function Ry(e, t) {
+function zy(e, t) {
if (!e) return !1;
let n = window.getComputedStyle(e), r = document.scrollingElement || document.documentElement, i = /(auto|scroll)/.test(n.overflow + n.overflowX + n.overflowY);
return e === r && n.overflow !== "hidden" && (i = !0), i && t && (i = e.scrollHeight !== e.clientHeight || e.scrollWidth !== e.clientWidth), i;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getScrollParent.mjs
-function zy(e, t) {
+function By(e, t) {
let n = e;
- for (Ry(n, t) && (n = n.parentElement); n && !Ry(n, t);) n = n.parentElement;
+ for (zy(n, t) && (n = n.parentElement); n && !zy(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function By(e, t) {
+function Vy(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (Ry(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && (zy(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function Vy(e, t, n = {}) {
- e !== t && Iae(e, t, t.getBoundingClientRect(), n);
+function Hy(e, t, n = {}) {
+ e !== t && Fae(e, t, t.getBoundingClientRect(), n);
}
-function Iae(e, t, n, r = {}) {
+function Fae(e, t, n, r = {}) {
let { block: i = "nearest", inline: a = "nearest" } = r, o = e.scrollTop, s = e.scrollLeft, c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = n.top - _, A = n.bottom + v, j = n.left - y, M = n.right + b, N = e === d ? 0 : D + O, ee = e === d ? 0 : T + E, te = e === d ? 0 : e.offsetWidth - e.clientWidth - N, P = e === d ? 0 : e.offsetHeight - e.clientHeight - ee, ne = p + (f ? 0 : T) + x, re = m - (f ? 0 : E) - S - P, ie = h + (f ? 0 : D) + C, ae = g - (f ? 0 : O) - w;
- F_() && I_() || u.direction === "ltr" ? ae -= te : u.direction === "rtl" && (ie += te);
+ I_() && L_() || u.direction === "ltr" ? ae -= te : u.direction === "rtl" && (ie += te);
let oe = k < ne || A > re, se = j < ie || M > ae;
if (oe && i === "start") o += k - ne;
else if (oe && i === "center") o += (k + A) / 2 - (ne + re) / 2;
@@ -21654,7 +21654,7 @@ function Iae(e, t, n, r = {}) {
top: o
});
}
-function Hy(e, t = {}) {
+function Uy(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -21667,47 +21667,47 @@ function Hy(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = By(e, !0);
- for (let t of i) Vy(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = Vy(e, !0);
+ for (let t of i) Hy(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? By(n, !0) : [];
- for (let e of i) Vy(e, n, {
+ i = n ? Vy(n, !0) : [];
+ for (let e of i) Hy(e, n, {
block: "center",
inline: "center"
});
- for (let t of By(e, !0)) Vy(t, e);
+ for (let t of Vy(e, !0)) Hy(t, e);
}
}
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useDescription.mjs
-var Lae = 0, Uy = /* @__PURE__ */ new Map();
-function Wy(e) {
+var Iae = 0, Wy = /* @__PURE__ */ new Map();
+function Gy(e) {
let [t, n] = (0, b.useState)();
- return O_(() => {
+ return k_(() => {
if (!e) return;
- let t = Uy.get(e);
+ let t = Wy.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${Lae++}`;
+ let r = `react-aria-description-${Iae++}`;
n(r);
let i = document.createElement("div");
i.id = r, i.style.display = "none", i.textContent = e, document.body.appendChild(i), t = {
refCount: 0,
element: i
- }, Uy.set(e, t);
+ }, Wy.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), Uy.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), Wy.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function Gy(e, t, n) {
- let r = Pv((e) => {
+function Ky(e, t, n) {
+ let r = Fv((e) => {
n && !e.defaultPrevented && n(t);
});
(0, b.useEffect)(() => {
@@ -21719,21 +21719,21 @@ function Gy(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function Ky(e, t, n) {
+function qy(e, t, n) {
let { validationBehavior: r, focus: i } = e;
- O_(() => {
+ k_(() => {
if (r === "native" && n?.current && "setCustomValidity" in n.current && !n.current.disabled) {
let e = t.realtimeValidation.isInvalid ? t.realtimeValidation.validationErrors.join(" ") || "Invalid value." : "";
- n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(zae(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(Rae(n.current));
}
});
- let a = (0, b.useRef)(!1), o = Pv(() => {
+ let a = (0, b.useRef)(!1), o = Fv(() => {
a.current || t.resetValidation();
- }), s = Pv((e) => {
+ }), s = Fv((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && Bae(r) === n.current && (i ? i() : n.current?.focus(), ev("keyboard")), e.preventDefault();
- }), c = Pv(() => {
+ !e.defaultPrevented && n && r && zae(r) === n.current && (i ? i() : n.current?.focus(), tv("keyboard")), e.preventDefault();
+ }), c = Fv(() => {
t.commitValidation();
});
(0, b.useEffect)(() => {
@@ -21741,13 +21741,13 @@ function Ky(e, t, n) {
if (!e) return;
let t = e.form, r = t?.reset;
return t && (t.reset = () => {
- a.current = !window.event || window.event.type === "message" && C_(window.event) instanceof MessagePort, r?.call(t), a.current = !1;
+ a.current = !window.event || window.event.type === "message" && w_(window.event) instanceof MessagePort, r?.call(t), a.current = !1;
}), e.addEventListener("invalid", s), e.addEventListener("change", c), t?.addEventListener("reset", o), () => {
e.removeEventListener("invalid", s), e.removeEventListener("change", c), t?.removeEventListener("reset", o), t && (t.reset = r);
};
}, [n, r]);
}
-function Rae(e) {
+function Lae(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -21763,14 +21763,14 @@ function Rae(e) {
valid: t.valid
};
}
-function zae(e) {
+function Rae(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: Rae(e),
+ validationDetails: Lae(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function Bae(e) {
+function zae(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -21779,16 +21779,16 @@ function Bae(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSlot.mjs
-function Vae(e = !0) {
+function Bae(e = !0) {
let [t, n] = (0, b.useState)(e), r = (0, b.useRef)(!1), i = (0, b.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return O_(() => {
+ return k_(() => {
r.current || n(!1);
}, []), [i, t];
}
-function qy(e = !0) {
- let t = cv(), [n, r] = Vae(e);
+function Jy(e = !0) {
+ let t = lv(), [n, r] = Bae(e);
return {
id: r ? t : void 0,
ref: n
@@ -21796,7 +21796,7 @@ function qy(e = !0) {
}
//#endregion
//#region node_modules/react-stately/dist/private/form/useFormValidationState.mjs
-var Jy = {
+var Yy = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -21808,18 +21808,18 @@ var Jy = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, Yy = {
- ...Jy,
+}, Xy = {
+ ...Yy,
customError: !0,
valid: !1
-}, Xy = {
+}, Zy = {
isInvalid: !1,
- validationDetails: Jy,
+ validationDetails: Yy,
validationErrors: []
-}, Hae = (0, b.createContext)({}), Zy = "__reactAriaFormValidationState";
-function Qy(e) {
+}, Vae = (0, b.createContext)({}), Qy = "__reactAriaFormValidationState";
+function $y(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[Zy];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[Qy];
return {
realtimeValidation: t,
displayValidation: n,
@@ -21828,71 +21828,71 @@ function Qy(e) {
commitValidation: a
};
}
- return Uae(e);
+ return Hae(e);
}
-function Uae(e) {
+function Hae(e) {
let { isInvalid: t, validationState: n, name: r, value: i, builtinValidation: a, validate: o, validationBehavior: s = "aria" } = e;
n && (t ||= n === "invalid");
let c = t === void 0 ? null : {
isInvalid: t,
validationErrors: [],
- validationDetails: Yy
- }, l = (0, b.useMemo)(() => !o || i == null ? null : eb(Wae(o, i)), [o, i]);
+ validationDetails: Xy
+ }, l = (0, b.useMemo)(() => !o || i == null ? null : tb(Uae(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, b.useContext)(Hae), d = (0, b.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => $y(u[e])) : $y(u[r]) : [], [u, r]), [f, p] = (0, b.useState)(u), [m, h] = (0, b.useState)(!1);
+ let u = (0, b.useContext)(Vae), d = (0, b.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => eb(u[e])) : eb(u[r]) : [], [u, r]), [f, p] = (0, b.useState)(u), [m, h] = (0, b.useState)(!1);
u !== f && (p(u), h(!1));
- let g = (0, b.useMemo)(() => eb(m ? [] : d), [m, d]), _ = (0, b.useRef)(Xy), [v, y] = (0, b.useState)(Xy), x = (0, b.useRef)(Xy), S = () => {
+ let g = (0, b.useMemo)(() => tb(m ? [] : d), [m, d]), _ = (0, b.useRef)(Zy), [v, y] = (0, b.useState)(Zy), x = (0, b.useRef)(Zy), S = () => {
if (!C) return;
w(!1);
let e = l || a || _.current;
- tb(e, x.current) || (x.current = e, y(e));
+ nb(e, x.current) || (x.current = e, y(e));
}, [C, w] = (0, b.useState)(!1);
return (0, b.useEffect)(S), {
- realtimeValidation: c || g || l || a || Xy,
+ realtimeValidation: c || g || l || a || Zy,
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !tb(v, e) ? y(e) : _.current = e;
+ s === "aria" && !nb(v, e) ? y(e) : _.current = e;
},
resetValidation() {
- let e = Xy;
- tb(e, x.current) || (x.current = e, y(e)), s === "native" && w(!1), h(!0);
+ let e = Zy;
+ nb(e, x.current) || (x.current = e, y(e)), s === "native" && w(!1), h(!0);
},
commitValidation() {
s === "native" && w(!0), h(!0);
}
};
}
-function $y(e) {
+function eb(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function Wae(e, t) {
+function Uae(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return $y(n);
+ if (n && typeof n != "boolean") return eb(n);
}
return [];
}
-function eb(e) {
+function tb(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: Yy
+ validationDetails: Xy
} : null;
}
-function tb(e, t) {
+function nb(e, t) {
return e === t || !!e && !!t && e.isInvalid === t.isInvalid && e.validationErrors.length === t.validationErrors.length && e.validationErrors.every((e, n) => e === t.validationErrors[n]) && Object.entries(e.validationDetails).every(([e, n]) => t.validationDetails[e] === n);
}
//#endregion
//#region node_modules/react-aria/dist/private/toggle/useToggle.mjs
-function nb(e, t, n) {
- let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, x = Qy({
+function rb(e, t, n) {
+ let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, x = $y({
...e,
value: t.isSelected
}), { isInvalid: S, validationErrors: C, validationDetails: w } = x.displayValidation;
- Ky(e, x, n);
+ qy(e, x, n);
let T = (e) => {
- e.stopPropagation(), t.setSelected(C_(e).checked);
- }, { pressProps: E, isPressed: D } = ly({
+ e.stopPropagation(), t.setSelected(w_(e).checked);
+ }, { pressProps: E, isPressed: D } = uy({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
@@ -21900,7 +21900,7 @@ function nb(e, t, n) {
onPressUp: v,
onClick: y,
isDisabled: r
- }), [O, k] = (0, b.useState)(!1), { pressProps: A } = ly({
+ }), [O, k] = (0, b.useState)(!1), { pressProps: A } = uy({
onPressStart(e) {
e.pointerType === "keyboard" || e.pointerType === "virtual" ? e.continuePropagation() : (m?.(e), g?.(!0), k(!0));
},
@@ -21917,13 +21917,13 @@ function nb(e, t, n) {
return;
}
_?.(r), t.toggle(), n.current?.focus();
- let { [Zy]: i } = e, { commitValidation: a } = i || x;
+ let { [Qy]: i } = e, { commitValidation: a } = i || x;
a();
},
isDisabled: r || i
- }), { focusableProps: j } = vv(e, n), M = W(E, j), N = Xv(e, { labelable: !0 });
- Gy(n, t.defaultSelected, t.setSelected);
- let ee = qy(), te = qy();
+ }), { focusableProps: j } = yv(e, n), M = W(E, j), N = Zv(e, { labelable: !0 });
+ Ky(n, t.defaultSelected, t.setSelected);
+ let ee = Jy(), te = Jy();
return {
labelProps: W(A, { onClick: (e) => e.preventDefault() }),
inputProps: W(N, {
@@ -21960,8 +21960,8 @@ function nb(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function rb(e, t, n) {
- let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = nb(e, t, n), { isIndeterminate: m } = e;
+function ib(e, t, n) {
+ let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = rb(e, t, n), { isIndeterminate: m } = e;
return (0, b.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
@@ -21980,18 +21980,18 @@ function rb(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/utils.mjs
-var Gae = /* @__PURE__ */ new WeakMap();
+var Wae = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/label/useLabel.mjs
-function ib(e) {
+function ab(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
- t = cv(t);
- let o = cv(), s = {};
+ t = lv(t);
+ let o = lv(), s = {};
n && (r = r ? `${o} ${r}` : o, s = {
id: o,
htmlFor: a === "label" ? t : void 0
});
- let c = Iv({
+ let c = Lv({
id: t,
"aria-label": i,
"aria-labelledby": r
@@ -22003,13 +22003,13 @@ function ib(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/label/useField.mjs
-function ab(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = ib(e), s = lv([
+function ob(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = ab(e), s = uv([
!!t,
!!n,
r,
i
- ]), c = lv([
+ ]), c = uv([
!!t,
!!n,
r,
@@ -22028,26 +22028,26 @@ function ab(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function ob(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, b.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = iy(), c = (0, b.useCallback)((e) => {
- x_(e.currentTarget, C_(e)) && a.current.isFocusWithin && !x_(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
+function sb(e) {
+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, b.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = ay(), c = (0, b.useCallback)((e) => {
+ S_(e.currentTarget, w_(e)) && a.current.isFocusWithin && !S_(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
}, [
n,
i,
a,
s
- ]), l = Nre(c), u = (0, b.useCallback)((e) => {
- if (!x_(e.currentTarget, C_(e))) return;
- let t = C_(e), n = h_(t), s = S_(n);
+ ]), l = Mre(c), u = (0, b.useCallback)((e) => {
+ if (!S_(e.currentTarget, w_(e))) return;
+ let t = w_(e), n = g_(t), s = C_(n);
if (!a.current.isFocusWithin && s === t) {
r && r(e), i && i(!0), a.current.isFocusWithin = !0, l(e);
let t = e.currentTarget;
o(n, "focus", (e) => {
- let r = C_(e);
- if (a.current.isFocusWithin && !x_(t, r)) {
+ let r = w_(e);
+ if (a.current.isFocusWithin && !S_(t, r)) {
let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });
- Mre(e, t);
- let i = k_(e);
+ jre(e, t);
+ let i = A_(e);
c(i);
}
}, { capture: !0 });
@@ -22069,14 +22069,14 @@ function ob(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var Kae = typeof document < "u" ? b.useInsertionEffect ?? b.useLayoutEffect : () => {};
-function sb(e, t, n) {
+var Gae = typeof document < "u" ? b.useInsertionEffect ?? b.useLayoutEffect : () => {};
+function cb(e, t, n) {
let [r, i] = (0, b.useState)(e || t), a = (0, b.useRef)(r), o = (0, b.useRef)(e !== void 0), s = e !== void 0;
(0, b.useEffect)(() => {
o.current, o.current = s;
}, [s]);
let c = s ? e : r;
- Kae(() => {
+ Gae(() => {
a.current = c;
});
let [, l] = (0, b.useReducer)(() => ({}), {});
@@ -22087,8 +22087,8 @@ function sb(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function cb(e = {}) {
- let { isReadOnly: t } = e, [n, r] = sb(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, b.useState)(n);
+function lb(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = cb(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, b.useState)(n);
function a(e) {
t || r(e);
}
@@ -22104,26 +22104,26 @@ function cb(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function qae(e, t, n) {
- let r = cb({
+function Kae(e, t, n) {
+ let r = lb({
isReadOnly: e.isReadOnly || t.isReadOnly,
isSelected: t.isSelected(e.value),
defaultSelected: t.defaultValue.includes(e.value),
onChange(n) {
n ? t.addValue(e.value) : t.removeValue(e.value), e.onChange && e.onChange(n);
}
- }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = Gae.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = Wae.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = Qy({
+ let { realtimeValidation: l } = $y({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, b.useRef)(Xy), d = () => {
+ }), u = (0, b.useRef)(Zy), d = () => {
t.setInvalid(e.value, l.isInvalid ? l : u.current);
};
(0, b.useEffect)(d);
- let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = rb({
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = ib({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -22131,7 +22131,7 @@ function qae(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [Zy]: {
+ [Qy]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -22155,12 +22155,12 @@ function qae(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/number.mjs
-function lb(e, t = -Infinity, n = Infinity) {
+function ub(e, t = -Infinity, n = Infinity) {
return Math.min(Math.max(e, t), n);
}
//#endregion
//#region node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs
-var ub = {
+var db = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -22172,38 +22172,38 @@ var ub = {
width: "1px",
whiteSpace: "nowrap"
};
-function db(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, b.useState)(!1), { focusWithinProps: a } = ob({
+function fb(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, b.useState)(!1), { focusWithinProps: a } = sb({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
}), o = (0, b.useMemo)(() => r ? t : t ? {
- ...ub,
+ ...db,
...t
- } : ub, [r]);
+ } : db, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function fb(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = db(e);
+function pb(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = fb(e);
return /*#__PURE__*/ b.createElement(n, W(a, o), t);
}
//#endregion
//#region node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function Jae(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = sb(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = vv(e, t), d = Qy({
+function qae(e, t) {
+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = cb(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = yv(e, t), d = $y({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = ab({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = ob({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), y = Xv(e, { labelable: !0 }), x = {
+ }), y = Zv(e, { labelable: !0 }), x = {
type: o,
pattern: e.pattern
}, [S] = (0, b.useState)(c);
- return Gy(t, e.defaultValue ?? S, l), Ky(e, d, t), {
+ return Ky(t, e.defaultValue ?? S, l), qy(e, d, t), {
labelProps: h,
inputProps: W(y, n === "input" ? x : void 0, {
disabled: r,
@@ -22217,7 +22217,7 @@ function Jae(e, t) {
"aria-haspopup": e["aria-haspopup"],
"aria-controls": e["aria-controls"],
value: c,
- onChange: (e) => l(C_(e).value),
+ onChange: (e) => l(w_(e).value),
autoComplete: e.autoComplete,
autoCapitalize: e.autoCapitalize,
maxLength: e.maxLength,
@@ -22250,42 +22250,42 @@ function Jae(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs
-var Yae = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function pb(e) {
+var Jae = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
+function mb(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var mb = /* @__PURE__ */ new WeakMap(), hb = [];
-function gb(e, t) {
- let n = g_(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Yae, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {
+var hb = /* @__PURE__ */ new WeakMap(), gb = [];
+function _b(e, t) {
+ let n = __(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Jae, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {
a && e instanceof n.HTMLElement ? e.inert = t : t ? e.setAttribute("aria-hidden", "true") : (e.removeAttribute("aria-hidden"), e instanceof n.HTMLElement && (e.inert = !1));
}, u = /* @__PURE__ */ new Set();
- if (b_()) {
+ if (x_()) {
let t = i.getRootNode();
for (let n of e) {
let e = n.getRootNode();
- for (; __(e) && e !== t;) u.add(e), e = e.host.getRootNode();
+ for (; v_(e) && e !== t;) u.add(e), e = e.host.getRootNode();
}
}
let d = (e) => {
for (let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) o.add(t);
let t = (e) => {
if (s.has(e) || o.has(e) || e.parentElement && s.has(e.parentElement) && e.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
- for (let t of o) if (x_(e, t)) return NodeFilter.FILTER_SKIP;
+ for (let t of o) if (S_(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = hy(h_(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = gy(g_(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
if (r === NodeFilter.FILTER_ACCEPT && f(e), r !== NodeFilter.FILTER_REJECT) {
let e = n.nextNode();
for (; e != null;) f(e), e = n.nextNode();
}
}, f = (e) => {
- let t = mb.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), mb.set(e, t + 1));
+ let t = hb.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), hb.set(e, t + 1));
};
- hb.length && hb[hb.length - 1].disconnect(), d(i);
+ gb.length && gb[gb.length - 1].disconnect(), d(i);
let p = new MutationObserver((e) => {
for (let t of e) if (t.type === "childList") {
- if (t.target.isConnected && ![...o, ...s].some((e) => x_(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && pb(e) ? o.add(e) : e instanceof Element && d(e);
- if (b_()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => S_(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && mb(e) ? o.add(e) : e instanceof Element && d(e);
+ if (x_()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -22298,11 +22298,11 @@ function gb(e, t) {
subtree: !0
});
let m = /* @__PURE__ */ new Set();
- if (b_()) for (let e of u) {
+ if (x_()) for (let e of u) {
let t = new MutationObserver((e) => {
for (let t of e) if (t.type === "childList") {
- if (t.target.isConnected && ![...o, ...s].some((e) => x_(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && pb(e) ? o.add(e) : e instanceof Element && d(e);
- if (b_()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => S_(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && mb(e) ? o.add(e) : e instanceof Element && d(e);
+ if (x_()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -22328,59 +22328,59 @@ function gb(e, t) {
p.disconnect();
}
};
- return hb.push(h), () => {
- if (p.disconnect(), b_()) for (let e of m) e.disconnect();
+ return gb.push(h), () => {
+ if (p.disconnect(), x_()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = mb.get(e);
- t != null && (t === 1 ? (l(e, !1), mb.delete(e)) : mb.set(e, t - 1));
+ let t = hb.get(e);
+ t != null && (t === 1 ? (l(e, !1), hb.delete(e)) : hb.set(e, t - 1));
}
- h === hb[hb.length - 1] ? (hb.pop(), hb.length && hb[hb.length - 1].observe()) : hb.splice(hb.indexOf(h), 1);
+ h === gb[gb.length - 1] ? (gb.pop(), gb.length && gb[gb.length - 1].observe()) : gb.splice(gb.indexOf(h), 1);
};
}
-function Xae(e) {
- let t = hb[hb.length - 1];
+function Yae(e) {
+ let t = gb[gb.length - 1];
if (t && !t.visibleNodes.has(e)) return t.visibleNodes.add(e), () => {
t.visibleNodes.delete(e);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/utils.mjs
-var _b = /* @__PURE__ */ new WeakMap();
-function Zae(e) {
+var vb = /* @__PURE__ */ new WeakMap();
+function Xae(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function Qae(e, t) {
- let n = _b.get(e);
+function Zae(e, t) {
+ let n = vb.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${Zae(t)}`;
+ return `${n.id}-option-${Xae(t)}`;
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/utils.mjs
-function vb(e) {
- return Lre() ? e.altKey : e.ctrlKey;
+function yb(e) {
+ return Ire() ? e.altKey : e.ctrlKey;
}
-function yb(e, t) {
+function bb(e, t) {
let n = `[data-key="${CSS.escape(String(t))}"]`, r = e.current?.dataset.collection;
return r && (n = `[data-collection="${CSS.escape(r)}"]${n}`), e.current?.querySelector(n);
}
-var bb = /* @__PURE__ */ new WeakMap();
-function $ae(e) {
- let t = cv();
- return bb.set(e, t), t;
+var xb = /* @__PURE__ */ new WeakMap();
+function Qae(e) {
+ let t = lv();
+ return xb.set(e, t), t;
}
-function eoe(e) {
- return bb.get(e);
+function $ae(e) {
+ return xb.get(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var xb = class {
+var Sb = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : yb(this.ref, e);
+ let n = e == null ? null : bb(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -22406,12 +22406,12 @@ var xb = class {
height: e?.clientHeight ?? 0
};
}
-}, Sb = class {
+}, Cb = class {
constructor(...e) {
if (e.length === 1) {
let t = e[0];
- this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new xb(t.ref);
- } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new xb(this.ref);
+ this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new Sb(t.ref);
+ } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new Sb(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -22451,14 +22451,14 @@ var xb = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = yb(this.ref, e);
+ let t = this.getNextKey(e), n = bb(this.ref, e);
if (t != null) {
- let e = yb(this.ref, t);
+ let e = bb(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = yb(this.ref, r);
+ let e = bb(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -22492,7 +22492,7 @@ var xb = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !Ry(t)) return this.getFirstKey();
+ if (t && !zy(t)) return this.getFirstKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);
@@ -22507,7 +22507,7 @@ var xb = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !Ry(t)) return this.getLastKey();
+ if (t && !zy(t)) return this.getLastKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.min(this.layoutDelegate.getContentSize().width, n.x - n.width + this.layoutDelegate.getVisibleRect().width);
@@ -22530,184 +22530,184 @@ var xb = class {
}
return null;
}
-}, Cb = {};
-Cb = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+}, wb = {};
+wb = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var wb = {};
-wb = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var Tb = {};
+Tb = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var Tb = {};
-Tb = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var Eb = {};
+Eb = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/da-DK.mjs
-var Eb = {};
-Eb = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var Db = {};
+Db = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/de-DE.mjs
-var Db = {};
-Db = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var Ob = {};
+Ob = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/el-GR.mjs
-var Ob = {};
-Ob = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var kb = {};
+kb = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var kb = {};
-kb = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var Ab = {};
+Ab = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var Ab = {};
-Ab = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var jb = {};
+jb = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/et-EE.mjs
-var jb = {};
-jb = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var Mb = {};
+Mb = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/fi-FI.mjs
-var Mb = {};
-Mb = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var Nb = {};
+Nb = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/fr-FR.mjs
-var Nb = {};
-Nb = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var Pb = {};
+Pb = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/he-IL.mjs
-var Pb = {};
-Pb = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var Fb = {};
+Fb = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var Fb = {};
-Fb = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var Ib = {};
+Ib = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/hu-HU.mjs
-var Ib = {};
-Ib = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var Lb = {};
+Lb = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/it-IT.mjs
-var Lb = {};
-Lb = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var Rb = {};
+Rb = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ja-JP.mjs
-var Rb = {};
-Rb = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var zb = {};
+zb = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var zb = {};
-zb = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var Bb = {};
+Bb = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var Bb = {};
-Bb = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var Vb = {};
+Vb = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/lv-LV.mjs
-var Vb = {};
-Vb = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var Hb = {};
+Hb = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/nb-NO.mjs
-var Hb = {};
-Hb = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var Ub = {};
+Ub = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var Ub = {};
-Ub = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var Wb = {};
+Wb = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/pl-PL.mjs
-var Wb = {};
-Wb = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var Gb = {};
+Gb = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/pt-BR.mjs
-var Gb = {};
-Gb = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var Kb = {};
+Kb = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/pt-PT.mjs
-var Kb = {};
-Kb = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var qb = {};
+qb = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ro-RO.mjs
-var qb = {};
-qb = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var Jb = {};
+Jb = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ru-RU.mjs
-var Jb = {};
-Jb = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var Yb = {};
+Yb = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var Yb = {};
-Yb = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var Xb = {};
+Xb = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sl-SI.mjs
-var Xb = {};
-Xb = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var Zb = {};
+Zb = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sr-SP.mjs
-var Zb = {};
-Zb = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var Qb = {};
+Qb = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sv-SE.mjs
-var Qb = {};
-Qb = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var $b = {};
+$b = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/tr-TR.mjs
-var $b = {};
-$b = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var ex = {};
+ex = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/uk-UA.mjs
-var ex = {};
-ex = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var tx = {};
+tx = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var tx = {};
-tx = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var nx = {};
+nx = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var nx = {};
-nx = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var rx = {};
+rx = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
//#endregion
//#region node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var rx = {};
-rx = {
- "ar-AE": Cb,
- "bg-BG": wb,
- "cs-CZ": Tb,
- "da-DK": Eb,
- "de-DE": Db,
- "el-GR": Ob,
- "en-US": kb,
- "es-ES": Ab,
- "et-EE": jb,
- "fi-FI": Mb,
- "fr-FR": Nb,
- "he-IL": Pb,
- "hr-HR": Fb,
- "hu-HU": Ib,
- "it-IT": Lb,
- "ja-JP": Rb,
- "ko-KR": zb,
- "lt-LT": Bb,
- "lv-LV": Vb,
- "nb-NO": Hb,
- "nl-NL": Ub,
- "pl-PL": Wb,
- "pt-BR": Gb,
- "pt-PT": Kb,
- "ro-RO": qb,
- "ru-RU": Jb,
- "sk-SK": Yb,
- "sl-SI": Xb,
- "sr-SP": Zb,
- "sv-SE": Qb,
- "tr-TR": $b,
- "uk-UA": ex,
- "zh-CN": tx,
- "zh-TW": nx
+var ix = {};
+ix = {
+ "ar-AE": wb,
+ "bg-BG": Tb,
+ "cs-CZ": Eb,
+ "da-DK": Db,
+ "de-DE": Ob,
+ "el-GR": kb,
+ "en-US": Ab,
+ "es-ES": jb,
+ "et-EE": Mb,
+ "fi-FI": Nb,
+ "fr-FR": Pb,
+ "he-IL": Fb,
+ "hr-HR": Ib,
+ "hu-HU": Lb,
+ "it-IT": Rb,
+ "ja-JP": zb,
+ "ko-KR": Bb,
+ "lt-LT": Vb,
+ "lv-LV": Hb,
+ "nb-NO": Ub,
+ "nl-NL": Wb,
+ "pl-PL": Gb,
+ "pt-BR": Kb,
+ "pt-PT": qb,
+ "ro-RO": Jb,
+ "ru-RU": Yb,
+ "sk-SK": Xb,
+ "sl-SI": Zb,
+ "sr-SP": Qb,
+ "sv-SE": $b,
+ "tr-TR": ex,
+ "uk-UA": tx,
+ "zh-CN": nx,
+ "zh-TW": rx
};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useLongPress.mjs
-var toe = 500;
-function ix(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = toe, accessibilityDescription: s } = e, c = (0, b.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = iy(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = ly({
+var eoe = 500;
+function ax(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = eoe, accessibilityDescription: s } = e, c = (0, b.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = ay(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = uy({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -22715,12 +22715,12 @@ function ix(e) {
...e,
type: "longpressstart"
}), c.current = setTimeout(() => {
- e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), h_(e.target).activeElement !== e.target && p_(e.target), a && a({
+ e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), g_(e.target).activeElement !== e.target && m_(e.target), a && a({
...e,
type: "longpress"
}), c.current = void 0;
}, o), e.pointerType === "touch" && l(e.target, "contextmenu", (e) => e.preventDefault(), { once: !0 });
- let t = g_(e.target);
+ let t = __(e.target);
l(t, "pointerup", () => {
setTimeout(() => {
u();
@@ -22735,12 +22735,12 @@ function ix(e) {
});
}
});
- return { longPressProps: W(f, Wy(a && !t ? s : void 0)) };
+ return { longPressProps: W(f, Gy(a && !t ? s : void 0)) };
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
-function noe(e) {
- let { onContextMenu: t } = e, n = (0, b.useRef)(!1), { longPressProps: r } = ix({
+function toe(e) {
+ let { onContextMenu: t } = e, n = (0, b.useRef)(!1), { longPressProps: r } = ax({
onLongPressStart() {
n.current = !1;
},
@@ -22752,7 +22752,7 @@ function noe(e) {
});
}
});
- return t ? { contextMenuProps: W(F_() ? r : {}, {
+ return t ? { contextMenuProps: W(I_() ? r : {}, {
onContextMenu(e) {
e.stopPropagation(), e.preventDefault(), n.current = !0;
let r = e.currentTarget.getBoundingClientRect();
@@ -22763,7 +22763,7 @@ function noe(e) {
});
},
onKeyDown(e) {
- if (P_() && e.ctrlKey && e.key === "Enter") {
+ if (F_() && e.ctrlKey && e.key === "Enter") {
n.current = !1;
let r = e.currentTarget;
e.stopPropagation(), setTimeout(() => {
@@ -22783,13 +22783,13 @@ function noe(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var ax = /* @__PURE__ */ new WeakMap();
-function roe(e) {
+var ox = /* @__PURE__ */ new WeakMap();
+function noe(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
- (0, b.useEffect)(() => !n || r === null ? void 0 : v_(wre(t.current), "scroll", (e) => {
- let n = C_(e);
- if (!t.current || n instanceof Node && !x_(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
- let i = r || ax.get(t.current);
+ (0, b.useEffect)(() => !n || r === null ? void 0 : y_(Cre(t.current), "scroll", (e) => {
+ let n = w_(e);
+ if (!t.current || n instanceof Node && !S_(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
+ let i = r || ox.get(t.current);
i && i();
}, !0), [
n,
@@ -22799,14 +22799,14 @@ function roe(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
-function ioe(e, t, n) {
+function roe(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
(0, b.useEffect)(() => {
- n && n.current && ax.set(n.current, t.close);
+ n && n.current && ox.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
- let o = cv();
+ let o = lv();
return {
triggerProps: {
"aria-haspopup": a,
@@ -22819,14 +22819,14 @@ function ioe(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function aoe(e) {
+function ioe(e) {
return e && e.__esModule ? e.default : e;
}
-function ox(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = cv(), { triggerProps: s, overlayProps: c } = ioe({ type: r }, t, n), l = (e, n, r = "first") => {
+function sx(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = lv(), { triggerProps: s, overlayProps: c } = roe({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
- }, { keyboardProps: u } = mv({
+ }, { keyboardProps: u } = hv({
isDisabled: i,
shortcuts: {
Enter: (e) => l(a !== "longPress", e, "first"),
@@ -22838,7 +22838,7 @@ function ox(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = Jv(aoe(rx), "@react-aria/menu"), { longPressProps: f } = ix({
+ }), d = Yv(ioe(ix), "@react-aria/menu"), { longPressProps: f } = ax({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -22850,14 +22850,14 @@ function ox(e, t, n) {
}), p = {
preventFocusOnPress: !0,
onPressStart(e) {
- e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (p_(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
+ e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (m_(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
},
onPress(e) {
- e.pointerType === "touch" && !i && (p_(e.target), t.toggle());
+ e.pointerType === "touch" && !i && (m_(e.target), t.toggle());
}
};
delete s.onPress;
- let { contextMenuProps: m } = noe({ onContextMenu(e) {
+ let { contextMenuProps: m } = toe({ onContextMenu(e) {
let n = e.target.getBoundingClientRect();
t.setPoint({
x: n.x + e.x,
@@ -22867,7 +22867,7 @@ function ox(e, t, n) {
(0, b.useEffect)(() => {
if (t.isOpen && a === "contextMenu") {
let e = (e) => {
- (e.button === 2 || e.button === 0 && e.ctrlKey === !0) && C_(e) === document.body && t.close();
+ (e.button === 2 || e.button === 0 && e.ctrlKey === !0) && w_(e) === document.body && t.close();
};
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
}
@@ -22902,8 +22902,8 @@ function ox(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var sx = 1e3;
-function cx(e) {
+var cx = 1e3;
+function lx(e) {
let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, b.useRef)({
search: "",
timeout: void 0
@@ -22922,12 +22922,12 @@ function cx(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, sx);
+ }, cx);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
- let a = ooe(e.key);
- if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !x_(e.currentTarget, C_(e)) || i.current.search.length === 0 && a === " ")) {
+ let a = aoe(e.key);
+ if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !S_(e.currentTarget, w_(e)) || i.current.search.length === 0 && a === " ")) {
if (i.current.search += a, t.getKeyForSearch != null) {
let a = t.getKeyForSearch(i.current.search, n.focusedKey);
if (a ??= t.getKeyForSearch(i.current.search), a != null) n.setFocusedKey(a), r && r(a), e.preventDefault(), "continuePropagation" in e || e.stopPropagation();
@@ -22938,34 +22938,34 @@ function cx(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, sx);
+ }, cx);
}
} : void 0
} };
}
-function ooe(e) {
+function aoe(e) {
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function lx(e, t) {
+function ux(e, t) {
let n = (0, b.useRef)(!0), r = (0, b.useRef)(null);
- O_(() => (n.current = !0, () => {
+ k_(() => (n.current = !0, () => {
n.current = !1;
- }), []), O_(() => {
+ }), []), k_(() => {
n.current ? n.current = !1 : (!r.current || t.some((e, t) => !Object.is(e, r[t]))) && e(), r.current = t;
}, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableCollection.mjs
-function ux(e) {
- let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: i = !1, shouldFocusWrap: a = !1, disallowEmptySelection: o = !1, disallowSelectAll: s = !1, escapeKeyBehavior: c = "clearSelection", selectOnFocus: l = t.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: f = !1, scrollRef: p = r, linkBehavior: m = "action", UNSTABLE_focusOnEntry: h } = e, { direction: g } = Hv(), _ = R_(), v = (e, n, i) => {
+function dx(e) {
+ let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: i = !1, shouldFocusWrap: a = !1, disallowEmptySelection: o = !1, disallowSelectAll: s = !1, escapeKeyBehavior: c = "clearSelection", selectOnFocus: l = t.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: f = !1, scrollRef: p = r, linkBehavior: m = "action", UNSTABLE_focusOnEntry: h } = e, { direction: g } = Uv(), _ = z_(), v = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !vb(e)) {
+ if (t.isLink(n) && m === "selection" && l && !yb(e)) {
(0, mt.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = yb(r, n), o = t.getItemProps(n);
+ let a = bb(r, n), o = t.getItemProps(n);
if (a) {
_.open(a, e, o.href, o.routerOptions);
return;
@@ -22977,7 +22977,7 @@ function ux(e) {
t.extendSelection(n);
return;
}
- if (l && !vb(e)) {
+ if (l && !yb(e)) {
t.replaceSelection(n);
return;
}
@@ -23004,9 +23004,9 @@ function ux(e) {
}, S = (e) => {
if (n.getFirstKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getFirstKey(t.focusedKey, Mv(e));
+ let r = n.getFirstKey(t.focusedKey, Nv(e));
if (t.setFocusedKey(r), r != null) {
- if (Mv(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (Nv(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -23038,9 +23038,9 @@ function ux(e) {
}, T = (e) => {
if (n.getLastKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getLastKey(t.focusedKey, Mv(e));
+ let r = n.getLastKey(t.focusedKey, Nv(e));
if (t.setFocusedKey(r), r != null) {
- if (Mv(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (Nv(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -23071,12 +23071,12 @@ function ux(e) {
else return !1;
}, A = () => {
if (!f && r.current) {
- let e = jy(r.current, { tabbable: !0 }), t, n;
+ let e = My(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
- let i = S_();
- t && (!w_(t) || i && !D_(i)) && p_(t);
+ let i = C_();
+ t && (!T_(t) || i && !O_(i)) && m_(t);
}
return {
shouldContinuePropagation: !0,
@@ -23086,11 +23086,11 @@ function ux(e) {
shouldContinuePropagation: !0,
shouldPreventDefault: !1
}), M = (e, t) => ({
- [P_() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
+ [F_() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
[e + "+Shift"]: t,
- [P_() ? e + "+Alt" : e + "+Control"]: t,
+ [F_() ? e + "+Alt" : e + "+Control"]: t,
[e]: t
- }), { keyboardProps: N } = mv({
+ }), { keyboardProps: N } = hv({
shortcuts: {
...M("ArrowDown", y),
...M("ArrowUp", x),
@@ -23100,7 +23100,7 @@ function ux(e) {
...M("PageUp", D)
},
allowRepeats: !0
- }), { keyboardProps: ee } = mv({ shortcuts: {
+ }), { keyboardProps: ee } = hv({ shortcuts: {
...M("Home", S),
...M("End", T),
"Mod+A": O,
@@ -23111,7 +23111,7 @@ function ux(e) {
top: 0,
left: 0
});
- Fv(p, "scroll", () => {
+ Iv(p, "scroll", () => {
te.current = {
top: p.current?.scrollTop ?? 0,
left: p.current?.scrollLeft ?? 0
@@ -23119,11 +23119,11 @@ function ux(e) {
});
let P = (e) => {
if (t.isFocused) {
- x_(e.currentTarget, C_(e)) || t.setFocused(!1);
+ S_(e.currentTarget, w_(e)) || t.setFocused(!1);
return;
}
- if (!x_(e.currentTarget, C_(e))) return;
- let i = $_();
+ if (!S_(e.currentTarget, w_(e))) return;
+ let i = ev();
t.setFocused(!0);
let a = (e) => {
e != null && (t.setFocusedKey(e), l && !t.isSelected(e) && t.replaceSelection(e));
@@ -23134,27 +23134,27 @@ function ux(e) {
r && e.currentTarget.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_FOLLOWING ? a(t.lastSelectedKey ?? n.getLastKey?.()) : a(t.firstSelectedKey ?? n.getFirstKey?.());
} else p.current && (p.current.scrollTop = te.current.top, p.current.scrollLeft = te.current.left);
if (t.focusedKey != null && p.current) {
- let e = yb(r, t.focusedKey);
- e instanceof HTMLElement && (!w_(e) && !d && p_(e), (i === "keyboard" || h && i === "virtual") && Hy(e, { containingElement: r.current }));
+ let e = bb(r, t.focusedKey);
+ e instanceof HTMLElement && (!T_(e) && !d && m_(e), (i === "keyboard" || h && i === "virtual") && Uy(e, { containingElement: r.current }));
}
}, ne = (e) => {
- x_(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
+ S_(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
}, re = (0, b.useRef)(!1);
- Fv(r, Xie, d ? (e) => {
+ Iv(r, Yie, d ? (e) => {
let { detail: n } = e;
e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (re.current = !0);
} : void 0);
let ie = n.getFirstKey?.() ?? null;
- lx(() => {
+ ux(() => {
if (re.current) {
if (ie == null) {
- let e = S_();
- Av(r.current), jv(e, null), t.collection.size > 0 && (re.current = !1);
+ let e = C_();
+ jv(r.current), Mv(e, null), t.collection.size > 0 && (re.current = !1);
} else t.setFocusedKey(ie), re.current = !1;
}
- }, [ie, t.collection.size]), lx(() => {
+ }, [ie, t.collection.size]), ux(() => {
t.collection.size > 0 && (re.current = !1);
- }, [t.focusedKey]), Fv(r, Yie, d ? (e) => {
+ }, [t.focusedKey]), Iv(r, Jie, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
} : void 0);
let ae = (0, b.useRef)(i), oe = (0, b.useRef)(!1);
@@ -23169,22 +23169,22 @@ function ux(e) {
break;
}
}
- t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && rv(r.current), t.collection.size > 0 && (ae.current = !1, oe.current = !0);
+ t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && iv(r.current), t.collection.size > 0 && (ae.current = !1, oe.current = !0);
}
});
let se = (0, b.useRef)(t.focusedKey), ce = (0, b.useRef)(null);
(0, b.useEffect)(() => {
if (t.isFocused && t.focusedKey != null && (t.focusedKey !== se.current || oe.current) && p.current && r.current) {
- let e = $_(), n = yb(r, t.focusedKey);
+ let e = ev(), n = bb(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
(e === "keyboard" || oe.current) && (ce.current && cancelAnimationFrame(ce.current), ce.current = requestAnimationFrame(() => {
- p.current && (Vy(p.current, n), e !== "virtual" && Hy(n, { containingElement: r.current }));
+ p.current && (Hy(p.current, n), e !== "virtual" && Uy(n, { containingElement: r.current }));
}));
}
- !d && t.isFocused && t.focusedKey == null && se.current != null && r.current && rv(r.current), se.current = t.focusedKey, oe.current = !1;
+ !d && t.isFocused && t.focusedKey == null && se.current != null && r.current && iv(r.current), se.current = t.focusedKey, oe.current = !1;
}), (0, b.useEffect)(() => () => {
ce.current && cancelAnimationFrame(ce.current);
- }, []), Fv(r, "react-aria-focus-scope-restore", (e) => {
+ }, []), Iv(r, "react-aria-focus-scope-restore", (e) => {
e.preventDefault(), t.setFocused(!0);
});
let le = {
@@ -23192,16 +23192,16 @@ function ux(e) {
onFocus: P,
onBlur: ne,
onMouseDown(e) {
- p.current === C_(e) && e.preventDefault();
+ p.current === w_(e) && e.preventDefault();
}
- }, { typeSelectProps: ue } = cx({
+ }, { typeSelectProps: ue } = lx({
keyboardDelegate: n,
selectionManager: t
});
u || (le = W(ue, le));
let de;
d || (de = t.focusedKey == null ? 0 : -1);
- let fe = $ae(t.collection);
+ let fe = Qae(t.collection);
return { collectionProps: W(le, {
tabIndex: de,
"data-collection": fe
@@ -23209,13 +23209,13 @@ function ux(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function dx(e, t) {
+function fx(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function fx(e) {
- return px(e, 0);
+function px(e) {
+ return mx(e, 0);
}
-function px(e, t) {
+function mx(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -23223,112 +23223,112 @@ function px(e, t) {
n++;
}
}
-function mx(e) {
+function hx(e) {
let t;
for (let n of e) t = n;
return t;
}
-function hx(e, t, n) {
+function gx(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...gx(e, t), t], i = [...gx(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [..._x(e, t), t], i = [..._x(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
return a === -1 ? r.findIndex((e) => e === n) >= 0 ? 1 : (i.findIndex((e) => e === t), -1) : (t = r[a], n = i[a], t.index - n.index);
}
-function gx(e, t) {
+function _x(e, t) {
let n = [], r = t;
for (; r?.parentKey != null;) r = e.getItem(r.parentKey), r && n.unshift(r);
return n;
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/getItemCount.mjs
-var _x = /* @__PURE__ */ new WeakMap();
-function vx(e) {
- let t = _x.get(e);
+var vx = /* @__PURE__ */ new WeakMap();
+function yx(e) {
+ let t = vx.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(dx(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(fx(i, e)) : i.type === "item" && n++;
};
- return r(e), _x.set(e, n), n;
+ return r(e), vx.set(e, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useCollator.mjs
-var yx = /* @__PURE__ */ new Map();
-function bx(e) {
- let { locale: t } = Hv(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (yx.has(n)) return yx.get(n);
+var bx = /* @__PURE__ */ new Map();
+function xx(e) {
+ let { locale: t } = Uv(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
+ if (bx.has(n)) return bx.get(n);
let r = new Intl.Collator(t, e);
- return yx.set(n, r), r;
+ return bx.set(n, r), r;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-var soe = /*#__PURE__*/ b.forwardRef(({ children: e, ...t }, n) => {
- let r = (0, b.useRef)(!1), i = (0, b.useContext)(ry), a = W(i || {}, {
+var ooe = /*#__PURE__*/ b.forwardRef(({ children: e, ...t }, n) => {
+ let r = (0, b.useRef)(!1), i = (0, b.useContext)(iy), a = W(i || {}, {
...t,
register() {
r.current = !0, i && i.register();
}
});
- return a.ref = hv(n || i?.ref), gv(i, a.ref), (0, b.useEffect)(() => {
+ return a.ref = gv(n || i?.ref), _v(i, a.ref), (0, b.useEffect)(() => {
r.current ||= !0;
- }, []), /*#__PURE__*/ b.createElement(ry.Provider, { value: a }, e);
+ }, []), /*#__PURE__*/ b.createElement(iy.Provider, { value: a }, e);
});
-function coe({ children: e }) {
+function soe({ children: e }) {
let t = (0, b.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ b.createElement(ry.Provider, { value: t }, e);
+ return /*#__PURE__*/ b.createElement(iy.Provider, { value: t }, e);
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var xx = /*#__PURE__*/ (0, b.createContext)({});
-function Sx(e) {
- let { getContainer: t } = e, { getContainer: n } = Cx();
- return /*#__PURE__*/ b.createElement(xx.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var Sx = /*#__PURE__*/ (0, b.createContext)({});
+function Cx(e) {
+ let { getContainer: t } = e, { getContainer: n } = wx();
+ return /*#__PURE__*/ b.createElement(Sx.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function Cx() {
- return (0, b.useContext)(xx) ?? {};
+function wx() {
+ return (0, b.useContext)(Sx) ?? {};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var wx = /*#__PURE__*/ b.createContext(null);
-function Tx(e) {
- let t = H_(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, b.useState)(!1), o = (0, b.useMemo)(() => ({
+var Tx = /*#__PURE__*/ b.createContext(null);
+function Ex(e) {
+ let t = U_(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, b.useState)(!1), o = (0, b.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = Cx();
+ }), [i, a]), { getContainer: s } = wx();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ b.createElement(yy, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ b.createElement(by, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ b.createElement(wx.Provider, { value: o }, /*#__PURE__*/ b.createElement(coe, null, /*#__PURE__*/ b.createElement(_v.Provider, { value: null }, c))), /*#__PURE__*/ mt.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ b.createElement(Tx.Provider, { value: o }, /*#__PURE__*/ b.createElement(soe, null, /*#__PURE__*/ b.createElement(vv.Provider, { value: null }, c))), /*#__PURE__*/ mt.createPortal(c, n);
}
-function Ex() {
- let e = (0, b.useContext)(wx)?.setContain;
- O_(() => {
+function Dx() {
+ let e = (0, b.useContext)(Tx)?.setContain;
+ k_(() => {
e?.(!0);
}, [e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function loe(e, t) {
- let { role: n = "dialog" } = e, r = lv();
+function coe(e, t) {
+ let { role: n = "dialog" } = e, r = uv();
r = e["aria-label"] ? void 0 : r;
- let i = lv();
+ let i = uv();
i = n === "alertdialog" && !e["aria-describedby"] ? i : void 0;
let a = (0, b.useRef)(!1);
(0, b.useEffect)(() => {
- if (t.current && !w_(t.current)) {
- rv(t.current);
+ if (t.current && !T_(t.current)) {
+ iv(t.current);
let e = setTimeout(() => {
- (S_() === t.current || S_() === document.body) && (a.current = !0, t.current && (t.current.blur(), rv(t.current)), a.current = !1);
+ (C_() === t.current || C_() === document.body) && (a.current = !0, t.current && (t.current.blur(), iv(t.current)), a.current = !1);
}, 500);
return () => {
clearTimeout(e);
};
}
- }, [t]), Ex(), (0, b.useRef)(!1), (0, b.useEffect)(() => {});
+ }, [t]), Dx(), (0, b.useRef)(!1), (0, b.useEffect)(() => {});
let o = e["aria-describedby"] ?? i;
return {
dialogProps: {
- ...Xv(e, { labelable: !0 }),
+ ...Zv(e, { labelable: !0 }),
role: n,
tabIndex: -1,
"aria-labelledby": e["aria-labelledby"] ?? r,
@@ -23343,23 +23343,23 @@ function loe(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function Dx(e = {}) {
+function Ox(e = {}) {
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, b.useRef)({
isFocused: !1,
- isFocusVisible: t || Q_()
+ isFocusVisible: t || $_()
}), [a, o] = (0, b.useState)(!1), [s, c] = (0, b.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, b.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, b.useCallback)((e) => {
- i.current.isFocused = e, i.current.isFocusVisible = Q_(), o(e), l();
+ i.current.isFocused = e, i.current.isFocusVisible = $_(), o(e), l();
}, [l]);
- hie((e) => {
+ mie((e) => {
i.current.isFocusVisible = e, l();
}, [n, a], {
enabled: a,
isTextInput: n
});
- let { focusProps: d } = fv({
+ let { focusProps: d } = pv({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = ob({
+ }), { focusWithinProps: f } = sb({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -23371,42 +23371,42 @@ function Dx(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function uoe(e = {}) {
- let { locale: t } = Hv();
+function loe(e = {}) {
+ let { locale: t } = Uv();
return (0, b.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useHover.mjs
-var Ox = !1, kx = 0;
-function doe() {
- Ox = !0, setTimeout(() => {
- Ox = !1;
+var kx = !1, Ax = 0;
+function uoe() {
+ kx = !0, setTimeout(() => {
+ kx = !1;
}, 500);
}
-function Ax(e) {
- e.pointerType === "touch" && doe();
+function jx(e) {
+ e.pointerType === "touch" && uoe();
}
-function foe() {
- let e = h_(null);
- if (e !== void 0) return kx === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", Ax), kx++, () => {
- kx--, !(kx > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", Ax);
+function doe() {
+ let e = g_(null);
+ if (e !== void 0) return Ax === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", jx), Ax++, () => {
+ Ax--, !(Ax > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", jx);
};
}
-function jx(e) {
+function Mx(e) {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, b.useState)(!1), s = (0, b.useRef)({
isHovered: !1,
ignoreEmulatedMouseEvents: !1,
pointerType: "",
target: null
}).current;
- (0, b.useEffect)(foe, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = iy(), { hoverProps: u, triggerHoverEnd: d } = (0, b.useMemo)(() => {
+ (0, b.useEffect)(doe, []);
+ let { addGlobalListener: c, removeAllGlobalListeners: l } = ay(), { hoverProps: u, triggerHoverEnd: d } = (0, b.useMemo)(() => {
let e = (e, r) => {
- if (s.pointerType = r, i || r === "touch" || s.isHovered || !x_(e.currentTarget, C_(e))) return;
+ if (s.pointerType = r, i || r === "touch" || s.isHovered || !S_(e.currentTarget, w_(e))) return;
s.isHovered = !0;
let l = e.currentTarget;
- s.target = l, c(h_(C_(e)), "pointerover", (e) => {
- s.isHovered && s.target && !x_(s.target, C_(e)) && a(e, e.pointerType);
+ s.target = l, c(g_(w_(e)), "pointerover", (e) => {
+ s.isHovered && s.target && !S_(s.target, w_(e)) && a(e, e.pointerType);
}, { capture: !0 }), t && t({
type: "hoverstart",
target: l,
@@ -23421,9 +23421,9 @@ function jx(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- Ox && t.pointerType === "mouse" || e(t, t.pointerType);
+ kx && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
- !i && x_(e.currentTarget, C_(e)) && a(e, e.pointerType);
+ !i && S_(e.currentTarget, w_(e)) && a(e, e.pointerType);
}), {
hoverProps: u,
triggerHoverEnd: a
@@ -23446,22 +23446,22 @@ function jx(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs
-function poe(e) {
+function foe(e) {
let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, b.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
- }), o = Pv((e) => {
- n && Mx(e, t) && (i && i(e), a.current.isPointerDown = !0);
- }), s = Pv((e) => {
+ }), o = Fv((e) => {
+ n && Nx(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ }), s = Fv((e) => {
n && n(e);
});
(0, b.useEffect)(() => {
let e = a.current;
if (r) return;
- let n = t.current, i = h_(n);
+ let n = t.current, i = g_(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && Mx(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && Nx(n, t) && s(n), e.isPointerDown = !1;
};
return i.addEventListener("pointerdown", o, !0), i.addEventListener("click", n, !0), () => {
i.removeEventListener("pointerdown", o, !0), i.removeEventListener("click", n, !0);
@@ -23469,19 +23469,19 @@ function poe(e) {
}
}, [t, r]);
}
-function Mx(e, t) {
+function Nx(e, t) {
if (e.button > 0) return !1;
- let n = C_(e);
+ let n = w_(e);
if (n) {
let e = n.ownerDocument;
- if (!e || !x_(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
+ if (!e || !S_(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
}
return t.current ? !e.composedPath().includes(t.current) : !1;
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ar-AE.mjs
-var Nx = {};
-Nx = {
+var Px = {};
+Px = {
deselectedItem: (e) => `${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,
longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",
select: "تحديد",
@@ -23495,8 +23495,8 @@ Nx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/bg-BG.mjs
-var Px = {};
-Px = {
+var Fx = {};
+Fx = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,
longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",
select: "Изберете",
@@ -23510,8 +23510,8 @@ Px = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/cs-CZ.mjs
-var Fx = {};
-Fx = {
+var Ix = {};
+Ix = {
deselectedItem: (e) => `Polo\u{17E}ka ${e.item} nen\xed vybr\xe1na.`,
longPressToSelect: "Dlouhým stisknutím přejdete do režimu výběru.",
select: "Vybrat",
@@ -23525,8 +23525,8 @@ Fx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/da-DK.mjs
-var Ix = {};
-Ix = {
+var Lx = {};
+Lx = {
deselectedItem: (e) => `${e.item} ikke valgt.`,
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
select: "Vælg",
@@ -23540,8 +23540,8 @@ Ix = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/de-DE.mjs
-var Lx = {};
-Lx = {
+var Rx = {};
+Rx = {
deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,
longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",
select: "Auswählen",
@@ -23555,8 +23555,8 @@ Lx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/el-GR.mjs
-var Rx = {};
-Rx = {
+var zx = {};
+zx = {
deselectedItem: (e) => `\u{394}\u{3B5}\u{3BD} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${e.item}.`,
longPressToSelect: "Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",
select: "Επιλογή",
@@ -23570,8 +23570,8 @@ Rx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/en-US.mjs
-var zx = {};
-zx = {
+var Bx = {};
+Bx = {
deselectedItem: (e) => `${e.item} not selected.`,
select: "Select",
selectedCount: (e, t) => `${t.plural(e.count, {
@@ -23585,8 +23585,8 @@ zx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/es-ES.mjs
-var Bx = {};
-Bx = {
+var Vx = {};
+Vx = {
deselectedItem: (e) => `${e.item} no seleccionado.`,
longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",
select: "Seleccionar",
@@ -23600,8 +23600,8 @@ Bx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/et-EE.mjs
-var Vx = {};
-Vx = {
+var Hx = {};
+Hx = {
deselectedItem: (e) => `${e.item} pole valitud.`,
longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",
select: "Vali",
@@ -23615,8 +23615,8 @@ Vx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs
-var Hx = {};
-Hx = {
+var Ux = {};
+Ux = {
deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,
longPressToSelect: "Siirry valintatilaan painamalla pitkään.",
select: "Valitse",
@@ -23630,8 +23630,8 @@ Hx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs
-var Ux = {};
-Ux = {
+var Wx = {};
+Wx = {
deselectedItem: (e) => `${e.item} non s\xe9lectionn\xe9.`,
longPressToSelect: "Appuyez de manière prolongée pour passer en mode de sélection.",
select: "Sélectionner",
@@ -23645,8 +23645,8 @@ Ux = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/he-IL.mjs
-var Wx = {};
-Wx = {
+var Gx = {};
+Gx = {
deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",
select: "בחר",
@@ -23660,8 +23660,8 @@ Wx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs
-var Gx = {};
-Gx = {
+var Kx = {};
+Kx = {
deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,
longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",
select: "Odaberite",
@@ -23675,8 +23675,8 @@ Gx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs
-var Kx = {};
-Kx = {
+var qx = {};
+qx = {
deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,
longPressToSelect: "Nyomja hosszan a kijelöléshez.",
select: "Kijelölés",
@@ -23690,8 +23690,8 @@ Kx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/it-IT.mjs
-var qx = {};
-qx = {
+var Jx = {};
+Jx = {
deselectedItem: (e) => `${e.item} non selezionato.`,
longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",
select: "Seleziona",
@@ -23705,8 +23705,8 @@ qx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs
-var Jx = {};
-Jx = {
+var Yx = {};
+Yx = {
deselectedItem: (e) => `${e.item} \u{304C}\u{9078}\u{629E}\u{3055}\u{308C}\u{3066}\u{3044}\u{307E}\u{305B}\u{3093}\u{3002}`,
longPressToSelect: "長押しして選択モードを開きます。",
select: "選択",
@@ -23720,8 +23720,8 @@ Jx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ko-KR.mjs
-var Yx = {};
-Yx = {
+var Xx = {};
+Xx = {
deselectedItem: (e) => `${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C9C0} \u{C54A}\u{C558}\u{C2B5}\u{B2C8}\u{B2E4}.`,
longPressToSelect: "선택 모드로 들어가려면 길게 누르십시오.",
select: "선택",
@@ -23735,8 +23735,8 @@ Yx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lt-LT.mjs
-var Xx = {};
-Xx = {
+var Zx = {};
+Zx = {
deselectedItem: (e) => `${e.item} nepasirinkta.`,
longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",
select: "Pasirinkti",
@@ -23750,8 +23750,8 @@ Xx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs
-var Zx = {};
-Zx = {
+var Qx = {};
+Qx = {
deselectedItem: (e) => `Vienums ${e.item} nav atlas\u{12B}ts.`,
longPressToSelect: "Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",
select: "Atlasīt",
@@ -23765,8 +23765,8 @@ Zx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs
-var Qx = {};
-Qx = {
+var $x = {};
+$x = {
deselectedItem: (e) => `${e.item} er ikke valgt.`,
longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",
select: "Velg",
@@ -23780,8 +23780,8 @@ Qx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs
-var $x = {};
-$x = {
+var eS = {};
+eS = {
deselectedItem: (e) => `${e.item} niet geselecteerd.`,
longPressToSelect: "Druk lang om de selectiemodus te openen.",
select: "Selecteren",
@@ -23795,8 +23795,8 @@ $x = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs
-var eS = {};
-eS = {
+var tS = {};
+tS = {
deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
select: "Zaznacz",
@@ -23810,8 +23810,8 @@ eS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs
-var tS = {};
-tS = {
+var nS = {};
+nS = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",
select: "Selecionar",
@@ -23825,8 +23825,8 @@ tS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs
-var nS = {};
-nS = {
+var rS = {};
+rS = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Prima continuamente para entrar no modo de seleção.",
select: "Selecionar",
@@ -23840,8 +23840,8 @@ nS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs
-var rS = {};
-rS = {
+var iS = {};
+iS = {
deselectedItem: (e) => `${e.item} neselectat.`,
longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",
select: "Selectare",
@@ -23855,8 +23855,8 @@ rS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs
-var iS = {};
-iS = {
+var aS = {};
+aS = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Нажмите и удерживайте для входа в режим выбора.",
select: "Выбрать",
@@ -23870,8 +23870,8 @@ iS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sk-SK.mjs
-var aS = {};
-aS = {
+var oS = {};
+oS = {
deselectedItem: (e) => `Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,
longPressToSelect: "Dlhším stlačením prejdite do režimu výberu.",
select: "Vybrať",
@@ -23885,8 +23885,8 @@ aS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs
-var oS = {};
-oS = {
+var sS = {};
+sS = {
deselectedItem: (e) => `Element ${e.item} ni izbran.`,
longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",
select: "Izberite",
@@ -23900,8 +23900,8 @@ oS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs
-var sS = {};
-sS = {
+var cS = {};
+cS = {
deselectedItem: (e) => `${e.item} nije izabrano.`,
longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",
select: "Izaberite",
@@ -23915,8 +23915,8 @@ sS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs
-var cS = {};
-cS = {
+var lS = {};
+lS = {
deselectedItem: (e) => `${e.item} ej markerat.`,
longPressToSelect: "Tryck länge när du vill öppna väljarläge.",
select: "Markera",
@@ -23930,8 +23930,8 @@ cS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs
-var lS = {};
-lS = {
+var uS = {};
+uS = {
deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,
longPressToSelect: "Seçim moduna girmek için uzun basın.",
select: "Seç",
@@ -23945,8 +23945,8 @@ lS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var uS = {};
-uS = {
+var dS = {};
+dS = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Виконайте довге натиснення, щоб перейти в режим вибору.",
select: "Вибрати",
@@ -23960,8 +23960,8 @@ uS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-CN.mjs
-var dS = {};
-dS = {
+var fS = {};
+fS = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -23975,8 +23975,8 @@ dS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var fS = {};
-fS = {
+var pS = {};
+pS = {
deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,
longPressToSelect: "長按以進入選擇模式。",
select: "選取",
@@ -23990,55 +23990,55 @@ fS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/intlStrings.mjs
-var pS = {};
-pS = {
- "ar-AE": Nx,
- "bg-BG": Px,
- "cs-CZ": Fx,
- "da-DK": Ix,
- "de-DE": Lx,
- "el-GR": Rx,
- "en-US": zx,
- "es-ES": Bx,
- "et-EE": Vx,
- "fi-FI": Hx,
- "fr-FR": Ux,
- "he-IL": Wx,
- "hr-HR": Gx,
- "hu-HU": Kx,
- "it-IT": qx,
- "ja-JP": Jx,
- "ko-KR": Yx,
- "lt-LT": Xx,
- "lv-LV": Zx,
- "nb-NO": Qx,
- "nl-NL": $x,
- "pl-PL": eS,
- "pt-BR": tS,
- "pt-PT": nS,
- "ro-RO": rS,
- "ru-RU": iS,
- "sk-SK": aS,
- "sl-SI": oS,
- "sr-SP": sS,
- "sv-SE": cS,
- "tr-TR": lS,
- "uk-UA": uS,
- "zh-CN": dS,
- "zh-TW": fS
+var mS = {};
+mS = {
+ "ar-AE": Px,
+ "bg-BG": Fx,
+ "cs-CZ": Ix,
+ "da-DK": Lx,
+ "de-DE": Rx,
+ "el-GR": zx,
+ "en-US": Bx,
+ "es-ES": Vx,
+ "et-EE": Hx,
+ "fi-FI": Ux,
+ "fr-FR": Wx,
+ "he-IL": Gx,
+ "hr-HR": Kx,
+ "hu-HU": qx,
+ "it-IT": Jx,
+ "ja-JP": Yx,
+ "ko-KR": Xx,
+ "lt-LT": Zx,
+ "lv-LV": Qx,
+ "nb-NO": $x,
+ "nl-NL": eS,
+ "pl-PL": tS,
+ "pt-BR": nS,
+ "pt-PT": rS,
+ "ro-RO": iS,
+ "ru-RU": aS,
+ "sk-SK": oS,
+ "sl-SI": sS,
+ "sr-SP": cS,
+ "sv-SE": lS,
+ "tr-TR": uS,
+ "uk-UA": dS,
+ "zh-CN": fS,
+ "zh-TW": pS
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs
-function moe(e) {
+function poe(e) {
return e && e.__esModule ? e.default : e;
}
-function hoe(e, t) {
- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = Jv(moe(pS), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, b.useRef)(i), o = (0, b.useCallback)(() => {
+function moe(e, t) {
+ let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = Yv(poe(mS), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, b.useRef)(i), o = (0, b.useCallback)(() => {
if (!t.selectionManager.isFocused || i === a.current) {
a.current = i;
return;
}
- let e = mS(i, a.current), o = mS(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
+ let e = hS(i, a.current), o = hS(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
if (t.selectionManager.selectedKeys.size === 1 && s) {
let e = t.selectionManager.selectedKeys.keys().next().value;
if (e != null && t.collection.getItem(e)) {
@@ -24058,7 +24058,7 @@ function hoe(e, t) {
t && c.push(r.format("deselectedItem", { item: t }));
}
}
- t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && Iy(c.join(" ")), a.current = i;
+ t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && Ly(c.join(" ")), a.current = i;
}, [
i,
t.selectionManager.selectedKeys,
@@ -24069,7 +24069,7 @@ function hoe(e, t) {
n,
r
]);
- Ly(() => {
+ Ry(() => {
if (t.selectionManager.isFocused) o();
else {
let e = requestAnimationFrame(o);
@@ -24077,7 +24077,7 @@ function hoe(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function mS(e, t) {
+function hS(e, t) {
let n = /* @__PURE__ */ new Set();
if (e === "all" || t === "all") return n;
for (let r of e.keys()) t.has(r) || n.add(r);
@@ -24085,13 +24085,13 @@ function mS(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs
-function hS(e, t) {
+function gS(e, t) {
let n = t?.isDisabled, [r, i] = (0, b.useState)(!1);
- return O_(() => {
+ return k_(() => {
if (e?.current && !n) {
let t = () => {
if (e.current) {
- let t = jy(e.current, { tabbable: !0 });
+ let t = My(e.current, { tabbable: !0 });
i(!!t.nextNode());
}
};
@@ -24110,12 +24110,12 @@ function hS(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useHighlightSelectionDescription.mjs
-function goe(e) {
+function hoe(e) {
return e && e.__esModule ? e.default : e;
}
-function _oe(e) {
- let t = Jv(goe(pS), "@react-aria/grid"), n = die(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
- return Wy((0, b.useMemo)(() => {
+function goe(e) {
+ let t = Yv(hoe(mS), "@react-aria/grid"), n = uie(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
+ return Gy((0, b.useMemo)(() => {
let n = e.selectionManager.selectionMode, i = e.selectionManager.selectionBehavior, a;
return r && (a = t.format("longPressToSelect")), i === "replace" && n !== "none" && e.hasItemActions ? a : void 0;
}, [
@@ -24128,11 +24128,11 @@ function _oe(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function gS(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = bx({
+function _S(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = xx({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, b.useMemo)(() => a || new Sb({
+ }), l = t.disabledBehavior, u = (0, b.useMemo)(() => a || new Cb({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -24149,7 +24149,7 @@ function gS(e) {
c,
l,
s
- ]), { collectionProps: d } = ux({
+ ]), { collectionProps: d } = dx({
...e,
ref: i,
selectionManager: t,
@@ -24159,11 +24159,11 @@ function gS(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function _S(e) {
- let { id: t, selectionManager: n, key: r, ref: i, shouldSelectOnPressUp: a, shouldUseVirtualFocus: o, focus: s, isDisabled: c, onAction: l, allowsDifferentPressOrigin: u, linkBehavior: d = "action" } = e, f = R_();
- t = cv(t);
+function vS(e) {
+ let { id: t, selectionManager: n, key: r, ref: i, shouldSelectOnPressUp: a, shouldUseVirtualFocus: o, focus: s, isDisabled: c, onAction: l, allowsDifferentPressOrigin: u, linkBehavior: d = "action" } = e, f = z_();
+ t = lv(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && vb(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && yb(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -24174,11 +24174,11 @@ function _S(e) {
}
if (d === "override" || d === "none") return;
}
- n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (Mv(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
+ n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (Nv(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
}
};
(0, b.useEffect)(() => {
- r === n.focusedKey && n.isFocused && (o ? Av(i.current) : s ? s() : S_() !== i.current && i.current && rv(i.current));
+ r === n.focusedKey && n.isFocused && (o ? jv(i.current) : s ? s() : C_() !== i.current && i.current && iv(i.current));
}, [
i,
r,
@@ -24191,7 +24191,7 @@ function _S(e) {
!o && !c ? m = {
tabIndex: r === n.focusedKey ? 0 : -1,
onFocus(e) {
- C_(e) === i.current && n.setFocusedKey(r);
+ w_(e) === i.current && n.setFocusedKey(r);
}
} : c && (m.onMouseDown = (e) => {
e.preventDefault();
@@ -24206,22 +24206,22 @@ function _S(e) {
l && (l(), i.current?.dispatchEvent(new CustomEvent("react-aria-item-action", { bubbles: !0 }))), _ && i.current && f.open(i.current, e, O.href, O.routerOptions);
}, A = { ref: i };
a ? (A.onPressStart = (e) => {
- w.current = e.pointerType, E.current = T, e.pointerType === "keyboard" && (!C || yS(e.key)) && p(e);
+ w.current = e.pointerType, E.current = T, e.pointerType === "keyboard" && (!C || bS(e.key)) && p(e);
}, u ? (A.onPressUp = x ? void 0 : (e) => {
e.pointerType === "mouse" && v && p(e);
}, A.onPress = x ? k : (e) => {
e.pointerType !== "keyboard" && e.pointerType !== "mouse" && v && p(e);
}) : A.onPress = (e) => {
if (x || S && e.pointerType !== "mouse") {
- if (e.pointerType === "keyboard" && !vS(e.key)) return;
+ if (e.pointerType === "keyboard" && !yS(e.key)) return;
k(e);
} else e.pointerType !== "keyboard" && v && p(e);
}) : (A.onPressStart = (e) => {
- w.current = e.pointerType, E.current = T, D.current = x, v && (e.pointerType === "mouse" && !x || e.pointerType === "keyboard" && (!y || yS(e.key))) && p(e);
+ w.current = e.pointerType, E.current = T, D.current = x, v && (e.pointerType === "mouse" && !x || e.pointerType === "keyboard" && (!y || bS(e.key))) && p(e);
}, A.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && C && vS(e.key) || e.pointerType === "mouse" && D.current) && (C ? k(e) : v && p(e));
+ (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && C && yS(e.key) || e.pointerType === "mouse" && D.current) && (C ? k(e) : v && p(e));
});
- let j = eoe(n.collection);
+ let j = $ae(n.collection);
if (m["data-collection"] = j, m["data-key"] = r, A.preventFocusOnPress = o, o && (A = W(A, {
onPressStart(e) {
e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
@@ -24236,10 +24236,10 @@ function _S(e) {
"onPress",
"onPressUp",
"onClick"
- ]) O[e] && (A[e] = iv(A[e], O[e]));
- let { pressProps: M, isPressed: N } = ly(A), ee = S ? (e) => {
+ ]) O[e] && (A[e] = av(A[e], O[e]));
+ let { pressProps: M, isPressed: N } = uy(A), ee = S ? (e) => {
w.current === "mouse" && (e.stopPropagation(), e.preventDefault(), k(e));
- } : void 0, { longPressProps: te } = ix({
+ } : void 0, { longPressProps: te } = ax({
isDisabled: !T,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
@@ -24247,7 +24247,7 @@ function _S(e) {
}), P = (e) => {
w.current === "touch" && E.current && e.preventDefault();
}, ne = d !== "none" && n.isLink(r) ? (e) => {
- z_.isOpening || e.preventDefault();
+ B_.isOpening || e.preventDefault();
} : void 0, re = W(m, v || x || o && !c ? M : {}, T ? te : {}, {
onDoubleClick: ee,
onDragStartCapture: P,
@@ -24260,15 +24260,15 @@ function _S(e) {
if (e != null) return e !== j;
t = t.parentElement;
}
- return D_(e);
+ return O_(e);
}, ae = re.onPointerDown;
re.onPointerDown = (e) => {
- let t = C_(e);
+ let t = w_(e);
t && t !== i.current && ie(t) ? e.stopPropagation() : ae?.(e);
};
let oe = re.onMouseDown;
return re.onMouseDown = (e) => {
- let t = C_(e);
+ let t = w_(e);
t && t !== i.current && ie(t) ? e.stopPropagation() : oe?.(e);
}, {
itemProps: re,
@@ -24280,22 +24280,22 @@ function _S(e) {
hasAction: C
};
}
-function vS(e) {
+function yS(e) {
return e === "Enter";
}
-function yS(e) {
+function bS(e) {
return e === " ";
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionCheckbox.mjs
-function voe(e) {
+function _oe(e) {
return e && e.__esModule ? e.default : e;
}
-function yoe(e, t) {
- let { key: n } = e, r = t.selectionManager, i = cv(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
+function voe(e, t) {
+ let { key: n } = e, r = t.selectionManager, i = lv(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": Jv(voe(pS), "@react-aria/grid").format("select"),
+ "aria-label": Yv(_oe(mS), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
@@ -24303,22 +24303,22 @@ function yoe(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function boe(e, t, n) {
- let r = Xv(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+function yoe(e, t, n) {
+ let r = Zv(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
i === "toggle" && o === "action" && (o = "override");
- let { listProps: s } = gS({
+ let { listProps: s } = _S({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = ob({
+ }), { focusWithinProps: c } = sb({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
- }), l = cv(e.id);
- _b.set(t, {
+ }), l = lv(e.id);
+ vb.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -24328,7 +24328,7 @@ function boe(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = ib({
+ let { labelProps: u, fieldProps: d } = ab({
...e,
id: l,
labelElementType: "span"
@@ -24344,8 +24344,8 @@ function boe(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function xoe(e) {
- let { heading: t, "aria-label": n } = e, r = cv();
+function boe(e) {
+ let { heading: t, "aria-label": n } = e, r = lv();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -24364,8 +24364,8 @@ function xoe(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useOption.mjs
-function Soe(e, t, n) {
- let { key: r } = e, i = _b.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = lv(), f = lv(), p = {
+function xoe(e, t, n) {
+ let { key: r } = e, i = vb.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = uv(), f = uv(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -24375,9 +24375,9 @@ function Soe(e, t, n) {
}, m = t.collection.getItem(r);
if (u) {
let e = Number(m?.index);
- p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = vx(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = yx(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Qae(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = _S({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Zae(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = vS({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -24386,18 +24386,18 @@ function Soe(e, t, n) {
isVirtualized: u,
shouldUseVirtualFocus: l,
isDisabled: a,
- onAction: h || m?.props?.onAction ? iv(m?.props?.onAction, h) : void 0,
+ onAction: h || m?.props?.onAction ? av(m?.props?.onAction, h) : void 0,
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = jx({
+ }), { hoverProps: S } = Mx({
isDisabled: a || !c,
onHoverStart() {
- Q_() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
+ $_() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = Xv(m?.props);
+ }), C = Zv(m?.props);
delete C.id;
- let w = B_(m?.props);
+ let w = V_(m?.props);
return {
optionProps: {
...p,
@@ -24407,7 +24407,7 @@ function Soe(e, t, n) {
labelProps: { id: d },
descriptionProps: { id: f },
isFocused: y,
- isFocusVisible: y && t.selectionManager.isFocused && Q_(),
+ isFocusVisible: y && t.selectionManager.isFocused && $_(),
isSelected: o,
isDisabled: a,
isPressed: v,
@@ -24417,13 +24417,13 @@ function Soe(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/utils.mjs
-var bS = /* @__PURE__ */ new WeakMap();
+var xS = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenu.mjs
-function Coe(e, t, n) {
+function Soe(e, t, n) {
let { shouldFocusWrap: r = !0, onKeyDown: i, onKeyUp: a, ...o } = e;
!e["aria-label"] && e["aria-labelledby"];
- let s = Xv(e, { labelable: !0 }), { listProps: c } = gS({
+ let s = Zv(e, { labelable: !0 }), { listProps: c } = _S({
...o,
ref: n,
selectionManager: t.selectionManager,
@@ -24432,7 +24432,7 @@ function Coe(e, t, n) {
shouldFocusWrap: r,
linkBehavior: "override"
});
- return bS.set(t, {
+ return xS.set(t, {
onClose: e.onClose,
onAction: e.onAction,
shouldUseVirtualFocus: e.shouldUseVirtualFocus
@@ -24449,15 +24449,15 @@ function Coe(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuItem.mjs
-function woe(e, t, n) {
- let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: x, onFocusChange: S, onBlur: C, selectionManager: w = t.selectionManager } = e, T = !!c, E = T && e["aria-expanded"] === "true", D = e.isDisabled ?? w.isDisabled(i), O = e.isSelected ?? w.isSelected(i), k = bS.get(t), A = t.collection.getItem(i), j = e.onClose || k.onClose, M = R_(), N = () => {
+function Coe(e, t, n) {
+ let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: x, onFocusChange: S, onBlur: C, selectionManager: w = t.selectionManager } = e, T = !!c, E = T && e["aria-expanded"] === "true", D = e.isDisabled ?? w.isDisabled(i), O = e.isSelected ?? w.isSelected(i), k = xS.get(t), A = t.collection.getItem(i), j = e.onClose || k.onClose, M = z_(), N = () => {
if (!T && (A?.props?.onAction ? A.props.onAction() : e.onAction && e.onAction(i), k.onAction)) {
let e = k.onAction;
e(i, A?.value);
}
}, ee = "menuitem";
T || (w.selectionMode === "single" ? ee = "menuitemradio" : w.selectionMode === "multiple" && (ee = "menuitemcheckbox"));
- let te = lv(), P = lv(), ne = lv(), re = {
+ let te = uv(), P = uv(), ne = uv(), re = {
id: r,
"aria-disabled": D || void 0,
role: ee,
@@ -24474,17 +24474,17 @@ function woe(e, t, n) {
};
if (w.selectionMode !== "none" && !T && (re["aria-checked"] = O), s) {
let e = Number(A?.index);
- re["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, re["aria-setsize"] = vx(t.collection);
+ re["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, re["aria-setsize"] = yx(t.collection);
}
let ie = (0, b.useRef)(!1), ae = (e) => {
f?.(e), ie.current = e;
}, oe = (0, b.useRef)(null), se = (e) => {
e.pointerType !== "keyboard" && (oe.current = { pointerType: e.pointerType }), e.pointerType === "mouse" && (ie.current || e.target.click()), u?.(e);
}, ce = (e) => {
- m?.(e), N(), qre(e, M, A.props.href, A?.props.routerOptions);
+ m?.(e), N(), Kre(e, M, A.props.href, A?.props.routerOptions);
let t = oe.current?.pointerType === "keyboard" ? oe.current?.key === "Enter" || w.selectionMode === "none" || w.isLink(i) : w.selectionMode !== "multiple" || w.isLink(i);
t = o ?? a ?? t, j && !T && t && j(), oe.current = null;
- }, { itemProps: le, isFocused: ue } = _S({
+ }, { itemProps: le, isFocused: ue } = vS({
id: r,
selectionManager: w,
key: i,
@@ -24493,36 +24493,36 @@ function woe(e, t, n) {
allowsDifferentPressOrigin: !0,
linkBehavior: "none",
shouldUseVirtualFocus: k.shouldUseVirtualFocus
- }), { pressProps: de, isPressed: fe } = ly({
+ }), { pressProps: de, isPressed: fe } = uy({
onPressStart: l,
onPress: d,
onPressUp: se,
onPressChange: ae,
onPressEnd: p,
isDisabled: D
- }), { hoverProps: pe } = jx({
+ }), { hoverProps: pe } = Mx({
isDisabled: D,
onHoverStart(e) {
- !Q_() && !(E && c) && (w.setFocused(!0), w.setFocusedKey(i)), h?.(e);
+ !$_() && !(E && c) && (w.setFocused(!0), w.setFocusedKey(i)), h?.(e);
},
onHoverChange: g,
onHoverEnd: _
- }), { keyboardProps: me } = mv({
+ }), { keyboardProps: me } = hv({
shortcuts: {
" ": (e) => {
oe.current = {
pointerType: "keyboard",
key: " "
- }, C_(e).click(), ev("keyboard");
+ }, w_(e).click(), tv("keyboard");
},
Enter: (e) => {
oe.current = {
pointerType: "keyboard",
key: "Enter"
};
- let t = C_(e);
- if (t.tagName !== "A") t.click(), ev("keyboard");
- else return ev("keyboard"), {
+ let t = w_(e);
+ if (t.tagName !== "A") t.click(), tv("keyboard");
+ else return tv("keyboard"), {
shouldPreventDefault: !1,
shouldContinuePropagation: !1
};
@@ -24530,13 +24530,13 @@ function woe(e, t, n) {
},
onKeyDown: v,
onKeyUp: y
- }), { focusableProps: he } = vv({
+ }), { focusableProps: he } = yv({
onBlur: C,
onFocus: x,
onFocusChange: S
- }, n), ge = Xv(A?.props);
+ }, n), ge = Zv(A?.props);
delete ge.id;
- let _e = B_(A?.props);
+ let _e = V_(A?.props);
return {
menuItemProps: {
...re,
@@ -24551,7 +24551,7 @@ function woe(e, t, n) {
descriptionProps: { id: P },
keyboardShortcutProps: { id: ne },
isFocused: ue,
- isFocusVisible: ue && w.isFocused && Q_() && !E,
+ isFocusVisible: ue && w.isFocused && $_() && !E,
isSelected: O,
isPressed: fe,
isDisabled: D
@@ -24559,8 +24559,8 @@ function woe(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuSection.mjs
-function Toe(e) {
- let { heading: t, "aria-label": n } = e, r = cv();
+function woe(e) {
+ let { heading: t, "aria-label": n } = e, r = lv();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -24576,15 +24576,15 @@ function Toe(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function Eoe() {
+function Toe() {
return window.ResizeObserver !== void 0;
}
-function xS(e) {
- let { ref: t, box: n, onResize: r } = e, i = Pv(r);
+function SS(e) {
+ let { ref: t, box: n, onResize: r } = e, i = Fv(r);
(0, b.useEffect)(() => {
let e = t?.current;
if (e) {
- if (Eoe()) {
+ if (Toe()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -24600,189 +24600,189 @@ function xS(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var SS = {};
-SS = { dismiss: "تجاهل" };
+var CS = {};
+CS = { dismiss: "تجاهل" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var CS = {};
-CS = { dismiss: "Отхвърляне" };
+var wS = {};
+wS = { dismiss: "Отхвърляне" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var wS = {};
-wS = { dismiss: "Odstranit" };
+var TS = {};
+TS = { dismiss: "Odstranit" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var TS = {};
-TS = { dismiss: "Luk" };
+var ES = {};
+ES = { dismiss: "Luk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var ES = {};
-ES = { dismiss: "Schließen" };
+var DS = {};
+DS = { dismiss: "Schließen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var DS = {};
-DS = { dismiss: "Απόρριψη" };
+var OS = {};
+OS = { dismiss: "Απόρριψη" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var OS = {};
-OS = { dismiss: "Dismiss" };
+var kS = {};
+kS = { dismiss: "Dismiss" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var kS = {};
-kS = { dismiss: "Descartar" };
+var AS = {};
+AS = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var AS = {};
-AS = { dismiss: "Lõpeta" };
+var jS = {};
+jS = { dismiss: "Lõpeta" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var jS = {};
-jS = { dismiss: "Hylkää" };
+var MS = {};
+MS = { dismiss: "Hylkää" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var MS = {};
-MS = { dismiss: "Rejeter" };
+var NS = {};
+NS = { dismiss: "Rejeter" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var NS = {};
-NS = { dismiss: "התעלם" };
+var PS = {};
+PS = { dismiss: "התעלם" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var PS = {};
-PS = { dismiss: "Odbaci" };
+var FS = {};
+FS = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var FS = {};
-FS = { dismiss: "Elutasítás" };
+var IS = {};
+IS = { dismiss: "Elutasítás" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var IS = {};
-IS = { dismiss: "Ignora" };
+var LS = {};
+LS = { dismiss: "Ignora" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var LS = {};
-LS = { dismiss: "閉じる" };
+var RS = {};
+RS = { dismiss: "閉じる" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var RS = {};
-RS = { dismiss: "무시" };
+var zS = {};
+zS = { dismiss: "무시" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var zS = {};
-zS = { dismiss: "Atmesti" };
+var BS = {};
+BS = { dismiss: "Atmesti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var BS = {};
-BS = { dismiss: "Nerādīt" };
+var VS = {};
+VS = { dismiss: "Nerādīt" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var VS = {};
-VS = { dismiss: "Lukk" };
+var HS = {};
+HS = { dismiss: "Lukk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var HS = {};
-HS = { dismiss: "Negeren" };
+var US = {};
+US = { dismiss: "Negeren" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var US = {};
-US = { dismiss: "Zignoruj" };
+var WS = {};
+WS = { dismiss: "Zignoruj" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var WS = {};
-WS = { dismiss: "Descartar" };
+var GS = {};
+GS = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var GS = {};
-GS = { dismiss: "Dispensar" };
+var KS = {};
+KS = { dismiss: "Dispensar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var KS = {};
-KS = { dismiss: "Revocare" };
+var qS = {};
+qS = { dismiss: "Revocare" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var qS = {};
-qS = { dismiss: "Пропустить" };
+var JS = {};
+JS = { dismiss: "Пропустить" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var JS = {};
-JS = { dismiss: "Zrušiť" };
+var YS = {};
+YS = { dismiss: "Zrušiť" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var YS = {};
-YS = { dismiss: "Opusti" };
+var XS = {};
+XS = { dismiss: "Opusti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var XS = {};
-XS = { dismiss: "Odbaci" };
+var ZS = {};
+ZS = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var ZS = {};
-ZS = { dismiss: "Avvisa" };
+var QS = {};
+QS = { dismiss: "Avvisa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var QS = {};
-QS = { dismiss: "Kapat" };
+var $S = {};
+$S = { dismiss: "Kapat" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var $S = {};
-$S = { dismiss: "Скасувати" };
+var eC = {};
+eC = { dismiss: "Скасувати" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var eC = {};
-eC = { dismiss: "取消" };
+var tC = {};
+tC = { dismiss: "取消" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var tC = {};
-tC = { dismiss: "關閉" };
+var nC = {};
+nC = { dismiss: "關閉" };
//#endregion
//#region node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var nC = {};
-nC = {
- "ar-AE": SS,
- "bg-BG": CS,
- "cs-CZ": wS,
- "da-DK": TS,
- "de-DE": ES,
- "el-GR": DS,
- "en-US": OS,
- "es-ES": kS,
- "et-EE": AS,
- "fi-FI": jS,
- "fr-FR": MS,
- "he-IL": NS,
- "hr-HR": PS,
- "hu-HU": FS,
- "it-IT": IS,
- "ja-JP": LS,
- "ko-KR": RS,
- "lt-LT": zS,
- "lv-LV": BS,
- "nb-NO": VS,
- "nl-NL": HS,
- "pl-PL": US,
- "pt-BR": WS,
- "pt-PT": GS,
- "ro-RO": KS,
- "ru-RU": qS,
- "sk-SK": JS,
- "sl-SI": YS,
- "sr-SP": XS,
- "sv-SE": ZS,
- "tr-TR": QS,
- "uk-UA": $S,
- "zh-CN": eC,
- "zh-TW": tC
+var rC = {};
+rC = {
+ "ar-AE": CS,
+ "bg-BG": wS,
+ "cs-CZ": TS,
+ "da-DK": ES,
+ "de-DE": DS,
+ "el-GR": OS,
+ "en-US": kS,
+ "es-ES": AS,
+ "et-EE": jS,
+ "fi-FI": MS,
+ "fr-FR": NS,
+ "he-IL": PS,
+ "hr-HR": FS,
+ "hu-HU": IS,
+ "it-IT": LS,
+ "ja-JP": RS,
+ "ko-KR": zS,
+ "lt-LT": BS,
+ "lv-LV": VS,
+ "nb-NO": HS,
+ "nl-NL": US,
+ "pl-PL": WS,
+ "pt-BR": GS,
+ "pt-PT": KS,
+ "ro-RO": qS,
+ "ru-RU": JS,
+ "sk-SK": YS,
+ "sl-SI": XS,
+ "sr-SP": ZS,
+ "sv-SE": QS,
+ "tr-TR": $S,
+ "uk-UA": eC,
+ "zh-CN": tC,
+ "zh-TW": nC
};
//#endregion
//#region node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function Doe(e) {
+function Eoe(e) {
return e && e.__esModule ? e.default : e;
}
-function rC(e) {
- let { onDismiss: t, ...n } = e, r = Iv(n, Jv(Doe(nC), "@react-aria/overlays").format("dismiss")), i = () => {
+function iC(e) {
+ let { onDismiss: t, ...n } = e, r = Lv(n, Yv(Eoe(rC), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ b.createElement(fb, null, /*#__PURE__*/ b.createElement("button", {
+ return /*#__PURE__*/ b.createElement(pb, null, /*#__PURE__*/ b.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -24794,35 +24794,35 @@ function rC(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var iC = [];
-function aC(e, t) {
+var aC = [];
+function oC(e, t) {
let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, b.useRef)(void 0);
(0, b.useEffect)(() => {
- if (i && !iC.includes(t)) return iC.push(t), () => {
- let e = iC.indexOf(t);
- e >= 0 && iC.splice(e, 1);
+ if (i && !aC.includes(t)) return aC.push(t), () => {
+ let e = aC.indexOf(t);
+ e >= 0 && aC.splice(e, 1);
};
}, [i, t]);
let l = () => {
- iC[iC.length - 1] === t && n && n();
+ aC[aC.length - 1] === t && n && n();
}, u = (e) => {
- let n = iC[iC.length - 1];
- c.current = n, (!s || s(C_(e))) && n === t && e.stopPropagation();
+ let n = aC[aC.length - 1];
+ c.current = n, (!s || s(w_(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(C_(e))) && (iC[iC.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
- }, { keyboardProps: f } = mv({ shortcuts: { Escape: () => {
+ (!s || s(w_(e))) && (aC[aC.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ }, { keyboardProps: f } = hv({ shortcuts: { Escape: () => {
if (!o) l();
else return !1;
} } });
- poe({
+ foe({
ref: t,
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = ob({
+ let { focusWithinProps: p } = sb({
isDisabled: !r,
onBlurWithin: (e) => {
- e.relatedTarget && !Aae(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
+ e.relatedTarget && !kae(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
}
});
return {
@@ -24835,51 +24835,51 @@ function aC(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var oC = typeof document < "u" && window.visualViewport, sC = 0, cC;
-function lC(e = {}) {
+var sC = typeof document < "u" && window.visualViewport, cC = 0, lC;
+function uC(e = {}) {
let { isDisabled: t } = e;
- O_(() => {
- if (!t) return sC++, sC === 1 && (cC = F_() && I_() ? koe() : Ooe()), () => {
- sC--, sC === 0 && cC();
+ k_(() => {
+ if (!t) return cC++, cC === 1 && (lC = I_() && L_() ? Ooe() : Doe()), () => {
+ cC--, cC === 0 && lC();
};
}, [t]);
}
-function Ooe() {
+function Doe() {
let e = window.innerWidth - document.documentElement.clientWidth;
- return iv(e > 0 && ("scrollbarGutter" in document.documentElement.style ? y_(document.documentElement, "scrollbar-gutter", "stable") : y_(document.documentElement, "padding-right", `${e}px`)), y_(document.documentElement, "overflow", "hidden"));
+ return av(e > 0 && ("scrollbarGutter" in document.documentElement.style ? b_(document.documentElement, "scrollbar-gutter", "stable") : b_(document.documentElement, "padding-right", `${e}px`)), b_(document.documentElement, "overflow", "hidden"));
}
-function koe() {
- let e = y_(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
- let r = C_(e);
- t = Ry(r) ? r : zy(r, !0), n = !1;
+function Ooe() {
+ let e = b_(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
+ let r = w_(e);
+ t = zy(r) ? r : By(r, !0), n = !1;
let i = r.ownerDocument.defaultView.getSelection();
i && !i.isCollapsed && i.containsNode(r, !0) && (n = !0), e.composedPath().some((e) => e instanceof HTMLInputElement && e.type === "range") && (n = !0), "selectionStart" in r && "selectionEnd" in r && r.selectionStart < r.selectionEnd && r.ownerDocument.activeElement === r && (n = !0);
- }, i = document.createElement("style"), a = ny();
+ }, i = document.createElement("style"), a = ry();
a && (i.nonce = a), i.textContent = "@layer {\n * {\n overscroll-behavior: contain;\n }\n}", document.head.prepend(i);
let o = (e) => {
e.touches.length === 2 || n || (!t || t === document.documentElement || t === document.body || t.scrollHeight === t.clientHeight && t.scrollWidth === t.clientWidth) && e.preventDefault();
}, s = (e) => {
- let t = C_(e), n = e.relatedTarget;
- n && Nv(n) ? (n.focus({ preventScroll: !0 }), uC(n, Nv(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ let t = w_(e), n = e.relatedTarget;
+ n && Pv(n) ? (n.focus({ preventScroll: !0 }), dC(n, Pv(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, c = HTMLElement.prototype.focus;
Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function(e) {
- let t = S_(), n = t != null && Nv(t);
+ let t = C_(), n = t != null && Pv(t);
c.call(this, {
...e,
preventScroll: !0
- }), (!e || !e.preventScroll) && uC(this, n);
+ }), (!e || !e.preventScroll) && dC(this, n);
}
});
- let l = iv(v_(document, "touchstart", r, {
+ let l = av(y_(document, "touchstart", r, {
passive: !1,
capture: !0
- }), v_(document, "touchmove", o, {
+ }), y_(document, "touchmove", o, {
passive: !1,
capture: !0
- }), v_(document, "blur", s, !0));
+ }), y_(document, "blur", s, !0));
return () => {
e(), l(), i.remove(), Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -24888,18 +24888,18 @@ function koe() {
});
};
}
-function uC(e, t) {
- t || !oC ? dC(e) : oC.addEventListener("resize", () => dC(e), { once: !0 });
+function dC(e, t) {
+ t || !sC ? fC(e) : sC.addEventListener("resize", () => fC(e), { once: !0 });
}
-function dC(e) {
+function fC(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t;) {
- let e = zy(n);
+ let e = By(n);
if (e !== document.documentElement && e !== document.body && e !== n) {
let t = e.getBoundingClientRect(), r = n.getBoundingClientRect();
if (r.top < t.top || r.bottom > t.top + n.clientHeight) {
let n = t.bottom;
- oC && (n = Math.min(n, oC.offsetTop + oC.height));
+ sC && (n = Math.min(n, sC.offsetTop + sC.height));
let i = r.top - t.top - ((n - t.top) / 2 - r.height / 2);
e.scrollTo({
top: Math.max(0, Math.min(e.scrollHeight - e.clientHeight, e.scrollTop + i)),
@@ -24912,14 +24912,14 @@ function dC(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function Aoe(e, t, n) {
- let { overlayProps: r, underlayProps: i } = aC({
+function koe(e, t, n) {
+ let { overlayProps: r, underlayProps: i } = oC({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- return lC({ isDisabled: !t.isOpen }), Ex(), (0, b.useEffect)(() => {
- if (t.isOpen && n.current) return gb([n.current], { shouldUseInert: !0 });
+ return uC({ isDisabled: !t.isOpen }), Dx(), (0, b.useEffect)(() => {
+ if (t.isOpen && n.current) return _b([n.current], { shouldUseInert: !0 });
}, [t.isOpen, n]), {
modalProps: W(r),
underlayProps: i
@@ -24927,33 +24927,33 @@ function Aoe(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var fC = {
+var pC = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, pC = {
+}, mC = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, joe = {
+}, Aoe = {
top: "left",
left: "top"
-}, mC = {
+}, hC = {
top: "height",
left: "width"
-}, hC = {
+}, gC = {
width: "totalWidth",
height: "totalHeight"
-}, gC = {}, Moe = () => typeof document < "u" ? window.visualViewport : null;
-function _C(e, t) {
+}, _C = {}, joe = () => typeof document < "u" ? window.visualViewport : null;
+function vC(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} = CC(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
- return I_() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
+ } else ({width: n, height: r, top: o, left: s} = wC(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ return L_() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
width: n,
height: r,
totalWidth: i,
@@ -24963,7 +24963,7 @@ function _C(e, t) {
left: s
};
}
-function Noe(e) {
+function Moe(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -24971,11 +24971,11 @@ function Noe(e) {
height: e.scrollHeight
};
}
-function vC(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[mC[e]], l = o[e] + r.scroll[fC[e]] + a, u = o[e] + r.scroll[fC[e]] + c - a, d = t - s + r.scroll[fC[e]] + o[e] - r[fC[e]], f = t - s + n + r.scroll[fC[e]] + o[e] - r[fC[e]];
+function yC(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[hC[e]], l = o[e] + r.scroll[pC[e]] + a, u = o[e] + r.scroll[pC[e]] + c - a, d = t - s + r.scroll[pC[e]] + o[e] - r[pC[e]], f = t - s + n + r.scroll[pC[e]] + o[e] - r[pC[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function Poe(e) {
+function Noe(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -24984,55 +24984,55 @@ function Poe(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function yC(e) {
- if (gC[e]) return gC[e];
- let [t, n] = e.split(" "), r = fC[t] || "right", i = joe[r];
- fC[n] || (n = "center");
- let a = mC[r], o = mC[i];
- return gC[e] = {
+function bC(e) {
+ if (_C[e]) return _C[e];
+ let [t, n] = e.split(" "), r = pC[t] || "right", i = Aoe[r];
+ pC[n] || (n = "center");
+ let a = hC[r], o = hC[i];
+ return _C[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, gC[e];
+ }, _C[e];
}
-function bC(e, t, n, r, i, a, o, s, c, l, u) {
+function xC(e, t, n, r, i, a, o, s, c, l, u) {
let { placement: d, crossPlacement: f, axis: p, crossAxis: m, size: h, crossSize: g } = r, _ = {};
_[m] = e[m] ?? 0, f === "center" ? _[m] += ((e[g] ?? 0) - (n[g] ?? 0)) / 2 : f !== m && (_[m] += (e[g] ?? 0) - (n[g] ?? 0)), _[m] += a;
let v = e[m] - n[g] + c + l, y = e[m] + e[g] - c - l;
- if (_[m] = lb(_[m], v, y), d === p) {
- let t = s ? u[h] : u[hC[h]];
- _[pC[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = ub(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[gC[h]];
+ _[mC[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function Foe(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[hC.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function Poe(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[gC.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 xC(e, t, n, r, i, a, o, s) {
+function SC(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[pC[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[pC[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[mC[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[mC[l]] - i);
}
-function Ioe(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = yC(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = bC(t, s, n, v, u, d, l, f, m, h, c), T = u, E = xC(s, l, t, i, a + u, v, c, g);
+function Foe(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = bC(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = xC(t, s, n, v, u, d, l, f, m, h, c), T = u, E = SC(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = yC(`${pC[S]} ${C}`), r = bC(t, s, n, e, u, d, l, f, m, h, c);
- xC(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = bC(`${mC[S]} ${C}`), r = xC(t, s, n, e, u, d, l, f, m, h, c);
+ SC(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 = vC(b, w[b], n[x], s, c, a, l);
+ let O = yC(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = Foe(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = bC(t, s, n, v, T, d, l, f, m, h, c), O = vC(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[fC[b]], M = j + .5 * t[x], N = m / 2 + h, ee = fC[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - ee - m / 2 - h;
- A[b] = lb(lb(M, t[b] + m / 2 - (w[b] + i[fC[b]]), t[b] + t[x] - m / 2 - (w[b] + i[fC[b]])), N, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
+ let k = Poe(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = xC(t, s, n, v, T, d, l, f, m, h, c), O = yC(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[pC[b]], M = j + .5 * t[x], N = m / 2 + h, ee = pC[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - ee - m / 2 - h;
+ A[b] = ub(ub(M, t[b] + m / 2 - (w[b] + i[pC[b]]), t[b] + t[x] - m / 2 - (w[b] + i[pC[b]])), N, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
let P = S === "left" || S === "top" ? n[y] : 0, ne = {
x: S === "top" || S === "bottom" ? j : P,
y: S === "left" || S === "right" ? j : P
@@ -25046,17 +25046,17 @@ function Ioe(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
triggerAnchorPoint: ne
};
}
-function Loe(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 = Moe(), h = r instanceof HTMLElement ? Roe(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? CC(n, !1, p) : wC(n, h, !1, p);
+function Ioe(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 = joe(), h = r instanceof HTMLElement ? Loe(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? wC(n, !1, p) : TC(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 = CC(r, !0), x = Poe(r);
+ let b = wC(r, !0), x = Noe(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = Noe(i), C = _C(s, m), w = _C(h, m), T;
+ let S = Moe(i), C = vC(s, m), w = vC(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = SC(h, !1);
+ let e = CC(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -25068,11 +25068,11 @@ function Loe(e) {
left: 0,
width: 0,
height: 0
- } : wC(s, h, !1);
- let E = x_(s, h);
- return Ioe(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ } : TC(s, h, !1);
+ let E = S_(s, h);
+ return Foe(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function SC(e, t) {
+function CC(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,
@@ -25081,8 +25081,8 @@ function SC(e, t) {
height: a
};
}
-function CC(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || SC(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function wC(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || CC(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -25090,30 +25090,30 @@ function CC(e, t, n) {
height: o
};
}
-function wC(e, t, n, r) {
+function TC(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || SC(e, n);
+ if (i.position === "fixed") a = r || CC(e, n);
else {
- a = CC(e, n, r);
- let i = CC(t, n), o = window.getComputedStyle(t);
+ a = wC(e, n, r);
+ let i = wC(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 Roe(e) {
+function Loe(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !TC(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !TC(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !EC(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !EC(t);) t = t.parentElement;
return t || document.documentElement;
}
-function TC(e) {
+function EC(e) {
let t = window.getComputedStyle(e);
return t.transform !== "none" || /transform|perspective/.test(t.willChange) || t.filter !== "none" || t.contain === "paint" || "backdropFilter" in t && t.backdropFilter !== "none" || "WebkitBackdropFilter" in t && t.WebkitBackdropFilter !== "none";
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayPosition.mjs
-var EC = typeof document < "u" ? window.visualViewport : null;
-function zoe(e) {
- let { direction: t } = Hv(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, x] = (0, b.useState)(null), S = [
+var DC = typeof document < "u" ? window.visualViewport : null;
+function Roe(e) {
+ let { direction: t } = Uv(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, x] = (0, b.useState)(null), S = [
p,
s,
i.current,
@@ -25130,15 +25130,15 @@ function zoe(e) {
g,
_,
n
- ], C = (0, b.useRef)(EC?.scale);
+ ], C = (0, b.useRef)(DC?.scale);
(0, b.useEffect)(() => {
- m && (C.current = EC?.scale);
+ m && (C.current = DC?.scale);
}, [m]);
let w = (0, b.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || EC?.scale !== C.current) return;
+ if (p === !1 || !m || !i.current || !r.current || !u || DC?.scale !== C.current) return;
let e = null;
- if (o.current && w_(o.current)) {
- let t = S_()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
+ if (o.current && T_(o.current)) {
+ let t = C_()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
e = {
type: "top",
offset: (t?.top ?? 0) - n.top
@@ -25146,8 +25146,8 @@ function zoe(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 = Loe({
- placement: Voe(s, t),
+ let y = Ioe({
+ placement: Boe(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -25157,28 +25157,28 @@ function zoe(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? SC(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? CC(a.current, !0).width : 0),
arrowBoundaryOffset: _,
targetRect: v?.(r.current)
});
if (!y.position) return;
h.style.top = "", h.style.bottom = "", h.style.left = "", h.style.right = "", Object.keys(y.position).forEach((e) => h.style[e] = y.position[e] + "px"), h.style.maxHeight = y.maxHeight == null ? "" : y.maxHeight + "px";
- let b = S_();
+ let b = C_();
if (e && b && o.current) {
let t = b.getBoundingClientRect(), n = o.current.getBoundingClientRect(), r = t[e.type] - n[e.type];
o.current.scrollTop += r - e.offset;
}
x(y);
}, S);
- O_(w, S), Boe(w), xS({
+ k_(w, S), zoe(w), SS({
ref: i,
onResize: w
- }), xS({
+ }), SS({
ref: r,
onResize: w
});
let T = (0, b.useRef)(!1);
- O_(() => {
+ k_(() => {
let e, t = () => {
T.current = !0, clearTimeout(e), e = setTimeout(() => {
T.current = !1;
@@ -25186,16 +25186,16 @@ function zoe(e) {
}, n = () => {
T.current && t();
};
- EC?.addEventListener("resize", t), EC?.addEventListener("scroll", n);
- let r = v_(wre(window), "scroll", n);
+ DC?.addEventListener("resize", t), DC?.addEventListener("scroll", n);
+ let r = y_(Cre(window), "scroll", n);
return () => {
- EC?.removeEventListener("resize", t), EC?.removeEventListener("scroll", n), r();
+ DC?.removeEventListener("resize", t), DC?.removeEventListener("scroll", n), r();
};
}, [w]);
let E = (0, b.useCallback)(() => {
T.current || h?.();
}, [h, T]);
- return roe({
+ return noe({
triggerRef: r,
isOpen: m,
onClose: h && E
@@ -25221,25 +25221,25 @@ function zoe(e) {
updatePosition: w
};
}
-function Boe(e) {
- O_(() => (window.addEventListener("resize", e, !1), () => {
+function zoe(e) {
+ k_(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function Voe(e, t) {
+function Boe(e, t) {
return t === "rtl" ? e.replace("start", "right").replace("end", "left") : e.replace("start", "left").replace("end", "right");
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePopover.mjs
-function Hoe(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 } = aC({
+function Voe(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 } = oC({
isOpen: t.isOpen,
onClose: t.close,
shouldCloseOnBlur: !0,
isDismissable: !a || l,
isKeyboardDismissDisabled: o,
shouldCloseOnInteractOutside: s
- }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = zoe({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Roe({
...c,
targetRef: n,
overlayRef: r,
@@ -25247,15 +25247,15 @@ function Hoe(e, t) {
onClose: a && !l ? t.close : null,
getTargetRect: c.getTargetRect ?? (t.point ? () => new DOMRect(t.point.x, t.point.y, 0, 0) : void 0)
});
- lC({ isDisabled: a || !t.isOpen }), (0, b.useEffect)(() => {
- if (t.isOpen && r.current) return a ? Xae(i?.current ?? r.current) : gb([i?.current ?? r.current], { shouldUseInert: !0 });
+ uC({ isDisabled: a || !t.isOpen }), (0, b.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? Yae(i?.current ?? r.current) : _b([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = ob(e);
+ let { focusWithinProps: g } = sb(e);
return {
popoverProps: W(u, f, g),
arrowProps: p,
@@ -25266,13 +25266,13 @@ function Hoe(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/utils.mjs
-var DC = /* @__PURE__ */ new WeakMap();
+var OC = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadio.mjs
-function Uoe(e, t, n) {
+function Hoe(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: _ } = ly({
+ }, { pressProps: g, isPressed: _ } = uy({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -25280,7 +25280,7 @@ function Uoe(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: v, isPressed: y } = ly({
+ }), { pressProps: v, isPressed: y } = uy({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -25290,11 +25290,11 @@ function Uoe(e, t, n) {
onPress(e) {
u?.(e), t.setSelectedValue(r), n.current?.focus();
}
- }), { focusableProps: x } = vv(W(e, { onFocus: () => t.setLastFocusedValue(r) }), n), S = W(g, x), C = Xv(e, { labelable: !0 }), w = -1;
+ }), { focusableProps: x } = yv(W(e, { onFocus: () => t.setLastFocusedValue(r) }), n), S = W(g, x), C = Zv(e, { labelable: !0 }), w = -1;
t.selectedValue == null ? (t.lastFocusedValue === r || t.lastFocusedValue == null) && (w = 0) : t.selectedValue === r && (w = 0), p && (w = void 0);
- let { name: T, form: E, descriptionId: D, errorMessageId: O, validationBehavior: k } = DC.get(t);
- Gy(n, t.defaultSelectedValue, t.setSelectedValue), Ky({ validationBehavior: k }, t, n);
- let A = qy();
+ let { name: T, form: E, descriptionId: D, errorMessageId: O, validationBehavior: k } = OC.get(t);
+ Ky(n, t.defaultSelectedValue, t.setSelectedValue), qy({ validationBehavior: k }, t, n);
+ let A = Jy();
return {
labelProps: W(v, (0, b.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
@@ -25326,13 +25326,13 @@ function Uoe(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function Woe(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Hv(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = ab({
+function Uoe(e, t) {
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Uv(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = ob({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = Xv(e, { labelable: !0 }), { focusWithinProps: v } = ob({
+ }), _ = Zv(e, { labelable: !0 }), { focusWithinProps: v } = sb({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -25340,13 +25340,13 @@ function Woe(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = jy(n.currentTarget, {
- from: C_(n),
- accept: (e) => e instanceof g_(e).HTMLInputElement && e.type === "radio"
+ let r = My(n.currentTarget, {
+ from: w_(n),
+ accept: (e) => e instanceof __(e).HTMLInputElement && e.type === "radio"
}), i;
return e === "next" ? (i = r.nextNode(), i ||= (r.currentNode = n.currentTarget, r.firstChild())) : (i = r.previousNode(), i ||= (r.currentNode = n.currentTarget, r.lastChild())), i ? (i.focus(), t.setSelectedValue(i.value), !0) : !1;
}
- let { keyboardProps: b } = mv({
+ let { keyboardProps: b } = hv({
shortcuts: {
ArrowRight: (e) => y(l === "rtl" && s !== "vertical" ? "prev" : "next", e),
ArrowLeft: (e) => y(l === "rtl" && s !== "vertical" ? "next" : "prev", e),
@@ -25354,8 +25354,8 @@ function Woe(e, t) {
ArrowUp: (e) => y("prev", e)
},
allowRepeats: !0
- }), x = cv(n);
- return DC.set(t, {
+ }), x = lv(n);
+ return OC.set(t, {
name: x,
form: r,
descriptionId: h.id,
@@ -25384,21 +25384,21 @@ function Woe(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/useSelect.mjs
-var OC = /* @__PURE__ */ new WeakMap();
-function Goe(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = bx({
+var kC = /* @__PURE__ */ new WeakMap();
+function Woe(e, t, n) {
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = xx({
usage: "search",
sensitivity: "base"
- }), u = (0, b.useMemo)(() => r || new Sb(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, b.useMemo)(() => r || new Cb(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = ox({
+ ]), { menuTriggerProps: d, menuProps: f } = sx({
isDisabled: i,
type: "listbox"
- }, t, n), { keyboardProps: p } = mv({
+ }, t, n), { keyboardProps: p } = hv({
shortcuts: {
ArrowLeft: () => {
if (t.selectionManager.selectionMode === "multiple") return !1;
@@ -25414,21 +25414,21 @@ function Goe(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = cx({
+ }), { typeSelectProps: m } = lx({
keyboardDelegate: u,
selectionManager: t.selectionManager,
onTypeSelect(e) {
t.setSelectedKey(e);
}
- }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: x, errorMessageProps: S } = ab({
+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: x, errorMessageProps: S } = ob({
...e,
labelElementType: "span",
isInvalid: h,
errorMessage: e.errorMessage || g
});
t.selectionManager.selectionMode === "multiple" && (m = {});
- let C = Xv(e, { labelable: !0 }), w = W(m, d, y), T = cv();
- return OC.set(t, {
+ let C = Zv(e, { labelable: !0 }), w = W(m, d, y), T = lv();
+ return kC.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -25438,13 +25438,13 @@ function Goe(e, t, n) {
labelProps: {
...v,
onClick: () => {
- e.isDisabled || (n.current?.focus(), ev("keyboard"));
+ e.isDisabled || (n.current?.focus(), tv("keyboard"));
}
},
triggerProps: W(C, {
...w,
isDisabled: i,
- onKeyDown: iv(w.onKeyDown, p.onKeyDown),
+ onKeyDown: av(w.onKeyDown, p.onKeyDown),
onKeyUp: p.onKeyUp,
"aria-labelledby": [
T,
@@ -25468,7 +25468,7 @@ function Goe(e, t, n) {
disallowEmptySelection: !0,
linkBehavior: "selection",
onBlur: (n) => {
- x_(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
+ S_(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
},
"aria-labelledby": [y["aria-labelledby"], w["aria-label"] && !y["aria-labelledby"] ? w.id : null].filter(Boolean).join(" ")
},
@@ -25489,18 +25489,18 @@ function Goe(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function Koe(e, t, n) {
- let r = OC.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = db({ style: {
+function Goe(e, t, n) {
+ let r = kC.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = fb({ style: {
position: "fixed",
top: 0,
left: 0
} });
- Gy(e.selectRef, t.defaultValue, t.setValue), Ky({
+ Ky(e.selectRef, t.defaultValue, t.setValue), qy({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
let d = t.setValue, f = (0, b.useCallback)((e) => {
- let t = C_(e);
+ let t = w_(e);
t.multiple ? d(Array.from(t.selectedOptions, (e) => e.value)) : d(e.currentTarget.value);
}, [d]);
return {
@@ -25525,8 +25525,8 @@ function Koe(e, t, n) {
}
};
}
-function qoe(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, b.useRef)(null), c = (0, b.useRef)(null), { containerProps: l, selectProps: u } = Koe({
+function Koe(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, b.useRef)(null), c = (0, b.useRef)(null), { containerProps: l, selectProps: u } = Goe({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -25550,7 +25550,7 @@ function qoe(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = OC.get(t) || {};
+ let { validationBehavior: e } = kC.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -25581,8 +25581,8 @@ function qoe(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/separator/useSeparator.mjs
-function Joe(e) {
- let t = Xv(e, { labelable: !0 }), n;
+function qoe(e) {
+ let t = Zv(e, { labelable: !0 }), n;
return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {
...t,
role: "separator",
@@ -25591,8 +25591,8 @@ function Joe(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function Yoe(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = nb(e, t, n);
+function Joe(e, t, n) {
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = rb(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -25606,10 +25606,10 @@ function Yoe(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var kC = class {
+var AC = 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 Xoe(e.layout) : new xb(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new Yoe(e.layout) : new Sb(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -25645,7 +25645,7 @@ var kC = class {
let n = this.collection.getItem(e);
if (!n) return null;
let r = 0;
- for (let e of dx(n, this.collection)) {
+ for (let e of fx(n, this.collection)) {
if (e.colSpan && e.colSpan + r > t || (e.colSpan && (r = r + e.colSpan - 1), r === t)) return e.key ?? null;
r++;
}
@@ -25679,13 +25679,13 @@ var kC = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = dx(t, this.collection);
- return (this.direction === "rtl" ? mx(e)?.key : fx(e)?.key) ?? null;
+ let e = fx(t, this.collection);
+ return (this.direction === "rtl" ? hx(e)?.key : px(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = dx(n, this.collection), i = (this.direction === "rtl" ? px(r, t.index - 1) : px(r, t.index + 1)) ?? null;
+ let r = fx(n, this.collection), i = (this.direction === "rtl" ? mx(r, t.index - 1) : mx(r, t.index + 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getFirstKey(e) : this.getLastKey(e)) ?? null;
}
return null;
@@ -25694,13 +25694,13 @@ var kC = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = dx(t, this.collection);
- return (this.direction === "rtl" ? fx(e)?.key : mx(e)?.key) ?? null;
+ let e = fx(t, this.collection);
+ return (this.direction === "rtl" ? px(e)?.key : hx(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = dx(n, this.collection), i = (this.direction === "rtl" ? px(r, t.index + 1) : px(r, t.index - 1)) ?? null;
+ let r = fx(n, this.collection), i = (this.direction === "rtl" ? mx(r, t.index + 1) : mx(r, t.index - 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getLastKey(e) : this.getFirstKey(e)) ?? null;
}
return null;
@@ -25711,13 +25711,13 @@ var kC = class {
if (r = this.collection.getItem(n), !r) return null;
if (this.isCell(r) && !t && r.parentKey != null) {
let e = this.collection.getItem(r.parentKey);
- return e ? fx(dx(e, this.collection))?.key ?? null : null;
+ return e ? px(fx(e, this.collection))?.key ?? null : null;
}
}
if (n = this.findNextKey(void 0, (e) => e.type === "item"), n != null && (r && this.isCell(r) && t || this.focusMode === "cell")) {
let e = this.collection.getItem(n);
if (!e) return null;
- n = fx(dx(e, this.collection))?.key ?? null;
+ n = px(fx(e, this.collection))?.key ?? null;
}
return n;
}
@@ -25727,13 +25727,13 @@ var kC = class {
if (r = this.collection.getItem(n), !r) return null;
if (this.isCell(r) && !t && r.parentKey != null) {
let e = this.collection.getItem(r.parentKey);
- return e ? mx(dx(e, this.collection))?.key ?? null : null;
+ return e ? hx(fx(e, this.collection))?.key ?? null : null;
}
}
if (n = this.findPreviousKey(void 0, (e) => e.type === "item"), n != null && (r && this.isCell(r) && t || this.focusMode === "cell")) {
let e = this.collection.getItem(n);
if (!e) return null;
- n = mx(dx(e, this.collection))?.key ?? null;
+ n = hx(fx(e, this.collection))?.key ?? null;
}
return n;
}
@@ -25769,13 +25769,13 @@ var kC = class {
if (!t) return null;
if (t.textValue) {
let n = t.textValue.slice(0, e.length);
- if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? fx(dx(t, this.collection))?.key ?? null : t.key;
+ if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? px(fx(t, this.collection))?.key ?? null : t.key;
}
n = this.findNextKey(n, (e) => e.type === "item"), n == null && !a && (n = this.getFirstKey(), a = !0);
}
return null;
}
-}, Xoe = class {
+}, Yoe = class {
constructor(e) {
this.layout = e;
}
@@ -25788,16 +25788,16 @@ var kC = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, AC = /* @__PURE__ */ new WeakMap();
+}, jC = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGrid.mjs
-function Zoe(e, t, n) {
+function Xoe(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 = bx({
+ let h = xx({
usage: "search",
sensitivity: "base"
- }), { direction: g } = Hv(), _ = t.selectionManager.disabledBehavior, v = (0, b.useMemo)(() => a || new kC({
+ }), { direction: g } = Uv(), _ = t.selectionManager.disabledBehavior, v = (0, b.useMemo)(() => a || new AC({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -25814,7 +25814,7 @@ function Zoe(e, t, n) {
g,
h,
o
- ]), { collectionProps: y } = ux({
+ ]), { collectionProps: y } = dx({
ref: n,
selectionManager: m,
keyboardDelegate: v,
@@ -25822,8 +25822,8 @@ function Zoe(e, t, n) {
scrollRef: s,
disallowTypeAhead: i,
escapeKeyBehavior: d
- }), x = cv(e.id);
- AC.set(t, {
+ }), x = lv(e.id);
+ jC.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -25832,44 +25832,44 @@ function Zoe(e, t, n) {
shouldSelectOnPressUp: f,
keyboardNavigationBehavior: p
});
- let S = _oe({
+ let S = goe({
selectionManager: m,
hasItemActions: !!(l || u)
- }), C = Xv(e, { labelable: !0 }), w = (0, b.useCallback)((e) => {
- m.isFocused ? x_(e.currentTarget, C_(e)) || m.setFocused(!1) : x_(e.currentTarget, C_(e)) && m.setFocused(!0);
+ }), C = Zv(e, { labelable: !0 }), w = (0, b.useCallback)((e) => {
+ m.isFocused ? S_(e.currentTarget, w_(e)) || m.setFocused(!1) : S_(e.currentTarget, w_(e)) && m.setFocused(!0);
}, [m]), T = (0, b.useMemo)(() => ({
onBlur: y.onBlur,
onFocus: w
- }), [w, y.onBlur]), E = hS(n, { isDisabled: t.collection.size !== 0 }), D = W(C, {
+ }), [w, y.onBlur]), E = gS(n, { isDisabled: t.collection.size !== 0 }), D = W(C, {
role: "grid",
id: x,
"aria-multiselectable": m.selectionMode === "multiple" ? "true" : void 0
}, t.isKeyboardNavigationDisabled ? T : y, t.collection.size === 0 && { tabIndex: E ? -1 : 0 } || void 0, S);
- return r && (D["aria-rowcount"] = t.collection.size, D["aria-colcount"] = t.collection.columnCount), hoe({ getRowText: c }, t), { gridProps: D };
+ return r && (D["aria-rowcount"] = t.collection.size, D["aria-colcount"] = t.collection.columnCount), moe({ getRowText: c }, t), { gridProps: D };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/utils.mjs
-var jC = /* @__PURE__ */ new WeakMap();
-function MC(e) {
+var MC = /* @__PURE__ */ new WeakMap();
+function NC(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function Qoe(e, t) {
- let n = jC.get(e);
+function Zoe(e, t) {
+ let n = MC.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${MC(t)}`;
+ return `${n}-${NC(t)}`;
}
-function NC(e, t, n) {
- let r = jC.get(e);
+function PC(e, t, n) {
+ let r = MC.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${MC(t)}-${MC(n)}`;
+ return `${r}-${NC(t)}-${NC(n)}`;
}
-function PC(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => NC(e, t, n)).join(" ");
+function FC(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => PC(e, t, n)).join(" ");
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var FC = {};
-FC = {
+var IC = {};
+IC = {
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: "طي",
@@ -25884,8 +25884,8 @@ FC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var IC = {};
-IC = {
+var LC = {};
+LC = {
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: "Свиване",
@@ -25900,8 +25900,8 @@ IC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var LC = {};
-LC = {
+var RC = {};
+RC = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -25916,8 +25916,8 @@ LC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var RC = {};
-RC = {
+var zC = {};
+zC = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -25932,8 +25932,8 @@ RC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var zC = {};
-zC = {
+var BC = {};
+BC = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -25948,8 +25948,8 @@ zC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var BC = {};
-BC = {
+var VC = {};
+VC = {
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: "Σύμπτυξη",
@@ -25964,8 +25964,8 @@ BC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var VC = {};
-VC = {
+var HC = {};
+HC = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -25980,8 +25980,8 @@ VC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var HC = {};
-HC = {
+var UC = {};
+UC = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -25996,8 +25996,8 @@ HC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var UC = {};
-UC = {
+var WC = {};
+WC = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -26012,8 +26012,8 @@ UC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var WC = {};
-WC = {
+var GC = {};
+GC = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -26028,8 +26028,8 @@ WC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var GC = {};
-GC = {
+var KC = {};
+KC = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -26044,8 +26044,8 @@ GC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var KC = {};
-KC = {
+var qC = {};
+qC = {
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: "כווץ",
@@ -26060,8 +26060,8 @@ KC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var qC = {};
-qC = {
+var JC = {};
+JC = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -26076,8 +26076,8 @@ qC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var JC = {};
-JC = {
+var YC = {};
+YC = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -26092,8 +26092,8 @@ JC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var YC = {};
-YC = {
+var XC = {};
+XC = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -26108,8 +26108,8 @@ YC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var XC = {};
-XC = {
+var ZC = {};
+ZC = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -26124,8 +26124,8 @@ XC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var ZC = {};
-ZC = {
+var QC = {};
+QC = {
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: "접기",
@@ -26140,8 +26140,8 @@ ZC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var QC = {};
-QC = {
+var $C = {};
+$C = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -26156,8 +26156,8 @@ QC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var $C = {};
-$C = {
+var ew = {};
+ew = {
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",
@@ -26172,8 +26172,8 @@ $C = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var ew = {};
-ew = {
+var tw = {};
+tw = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -26188,8 +26188,8 @@ ew = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var tw = {};
-tw = {
+var nw = {};
+nw = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -26204,8 +26204,8 @@ tw = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var nw = {};
-nw = {
+var rw = {};
+rw = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -26220,8 +26220,8 @@ nw = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var rw = {};
-rw = {
+var iw = {};
+iw = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -26236,8 +26236,8 @@ rw = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var iw = {};
-iw = {
+var aw = {};
+aw = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -26252,8 +26252,8 @@ iw = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var aw = {};
-aw = {
+var ow = {};
+ow = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -26268,8 +26268,8 @@ aw = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var ow = {};
-ow = {
+var sw = {};
+sw = {
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: "Свернуть",
@@ -26284,8 +26284,8 @@ ow = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var sw = {};
-sw = {
+var cw = {};
+cw = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -26300,8 +26300,8 @@ sw = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var cw = {};
-cw = {
+var lw = {};
+lw = {
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",
@@ -26316,8 +26316,8 @@ cw = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var lw = {};
-lw = {
+var uw = {};
+uw = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -26332,8 +26332,8 @@ lw = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var uw = {};
-uw = {
+var dw = {};
+dw = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -26348,8 +26348,8 @@ uw = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var dw = {};
-dw = {
+var fw = {};
+fw = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -26364,8 +26364,8 @@ dw = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var fw = {};
-fw = {
+var pw = {};
+pw = {
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: "Згорнути",
@@ -26380,8 +26380,8 @@ fw = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var pw = {};
-pw = {
+var mw = {};
+mw = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -26396,8 +26396,8 @@ pw = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var mw = {};
-mw = {
+var hw = {};
+hw = {
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: "收合",
@@ -26412,46 +26412,46 @@ mw = {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/intlStrings.mjs
-var hw = {};
-hw = {
- "ar-AE": FC,
- "bg-BG": IC,
- "cs-CZ": LC,
- "da-DK": RC,
- "de-DE": zC,
- "el-GR": BC,
- "en-US": VC,
- "es-ES": HC,
- "et-EE": UC,
- "fi-FI": WC,
- "fr-FR": GC,
- "he-IL": KC,
- "hr-HR": qC,
- "hu-HU": JC,
- "it-IT": YC,
- "ja-JP": XC,
- "ko-KR": ZC,
- "lt-LT": QC,
- "lv-LV": $C,
- "nb-NO": ew,
- "nl-NL": tw,
- "pl-PL": nw,
- "pt-BR": rw,
- "pt-PT": iw,
- "ro-RO": aw,
- "ru-RU": ow,
- "sk-SK": sw,
- "sl-SI": cw,
- "sr-SP": lw,
- "sv-SE": uw,
- "tr-TR": dw,
- "uk-UA": fw,
- "zh-CN": pw,
- "zh-TW": mw
+var gw = {};
+gw = {
+ "ar-AE": IC,
+ "bg-BG": LC,
+ "cs-CZ": RC,
+ "da-DK": zC,
+ "de-DE": BC,
+ "el-GR": VC,
+ "en-US": HC,
+ "es-ES": UC,
+ "et-EE": WC,
+ "fi-FI": GC,
+ "fr-FR": KC,
+ "he-IL": qC,
+ "hr-HR": JC,
+ "hu-HU": YC,
+ "it-IT": XC,
+ "ja-JP": ZC,
+ "ko-KR": QC,
+ "lt-LT": $C,
+ "lv-LV": ew,
+ "nb-NO": tw,
+ "nl-NL": nw,
+ "pl-PL": rw,
+ "pt-BR": iw,
+ "pt-PT": aw,
+ "ro-RO": ow,
+ "ru-RU": sw,
+ "sk-SK": cw,
+ "sl-SI": lw,
+ "sr-SP": uw,
+ "sv-SE": dw,
+ "tr-TR": fw,
+ "uk-UA": pw,
+ "zh-CN": mw,
+ "zh-TW": hw
};
//#endregion
//#region node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var $oe = class extends kC {
+var Qoe = class extends AC {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -26459,7 +26459,7 @@ var $oe = class extends kC {
let n = this.collection.getItem(e);
if (!n) return null;
if (n.type === "column") {
- let e = fx(dx(n, this.collection));
+ let e = px(fx(n, this.collection));
if (e) return e.key;
let t = this.getFirstKey();
return t == null || !this.collection.getItem(t) ? null : super.getKeyForItemInRowByIndex(t, n.index);
@@ -26480,13 +26480,13 @@ var $oe = class extends kC {
let t = this.findNextKey(e.key, (e) => e.type === "column");
if (t != null) return t;
let n = this.collection.headerRows[e.level];
- for (let e of dx(n, this.collection)) if (e.type === "column") return e.key;
+ for (let e of fx(n, this.collection)) if (e.type === "column") return e.key;
return null;
}
findPreviousColumnKey(e) {
let t = this.findPreviousKey(e.key, (e) => e.type === "column");
if (t != null) return t;
- let n = this.collection.headerRows[e.level], r = [...dx(n, this.collection)];
+ let n = this.collection.headerRows[e.level], r = [...fx(n, this.collection)];
for (let e = r.length - 1; e >= 0; e--) {
let t = r[e];
if (t.type === "column") return t.key;
@@ -26515,7 +26515,7 @@ var $oe = class extends kC {
let t = o.textValue.slice(0, e.length);
if (this.collator.compare(t, e) === 0) return o.key;
}
- for (let r of dx(o, this.collection)) {
+ for (let r of fx(o, this.collection)) {
let a = n.columns[r.index];
if (n.rowHeaderColumnKeys.has(a.key) && r.textValue) {
let a = r.textValue.slice(0, e.length);
@@ -26529,14 +26529,14 @@ var $oe = class extends kC {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/useTable.mjs
-function ese(e) {
+function $oe(e) {
return e && e.__esModule ? e.default : e;
}
-function tse(e, t, n) {
- let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = bx({
+function ese(e, t, n) {
+ let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = xx({
usage: "search",
sensitivity: "base"
- }), { direction: c } = Hv(), l = t.selectionManager.disabledBehavior, u = (0, b.useMemo)(() => r || new $oe({
+ }), { direction: c } = Uv(), l = t.selectionManager.disabledBehavior, u = (0, b.useMemo)(() => r || new Qoe({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -26555,43 +26555,43 @@ function tse(e, t, n) {
s,
a,
o
- ]), d = cv(e.id);
- jC.set(t, d);
- let { gridProps: f } = Zoe({
+ ]), d = lv(e.id);
+ MC.set(t, d);
+ let { gridProps: f } = Xoe({
...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 = Jv(ese(hw), "@react-aria/table"), g = (0, b.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = Yv($oe(gw), "@react-aria/table"), g = (0, b.useMemo)(() => {
let e = t.collection.columns.find((e) => e.key === p)?.textValue ?? "";
return m && p ? h.format(`${m}Sort`, { columnName: e }) : void 0;
}, [
m,
p,
t.collection.columns
- ]), _ = Wy(g);
- return Ly(() => {
- g && Iy(g, "assertive", 500);
+ ]), _ = Gy(g);
+ return Ry(() => {
+ g && Ly(g, "assertive", 500);
}, [g]), { gridProps: W(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function gw(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Hv(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = AC.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, b.useRef)(null), h = () => {
+function _w(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Uv(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = jC.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, b.useRef)(null), h = () => {
if (n.current) {
- let e = jy(n.current);
+ let e = My(n.current);
if (p === "child") {
- if (w_(n.current) && n.current !== S_(h_(n.current))) return;
- let r = t.selectionManager.childFocusStrategy === "last" ? _w(e) : e.firstChild();
+ if (T_(n.current) && n.current !== C_(g_(n.current))) return;
+ let r = t.selectionManager.childFocusStrategy === "last" ? vw(e) : e.firstChild();
if (r) {
- rv(r);
+ iv(r);
return;
}
}
- (m.current != null && r.key !== m.current || !w_(n.current)) && rv(n.current);
+ (m.current != null && r.key !== m.current || !T_(n.current)) && iv(n.current);
}
- }, { itemProps: g, isPressed: _ } = _S({
+ }, { itemProps: g, isPressed: _ } = vS({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -26603,44 +26603,44 @@ function gw(e, t, n) {
}), v = W(g, {
role: "gridcell",
onKeyDownCapture: f !== "tab" || o ? (e) => {
- let i = S_(h_(n.current));
- if (!x_(e.currentTarget, C_(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
- let a = jy(n.current);
+ let i = C_(g_(n.current));
+ if (!S_(e.currentTarget, w_(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
+ let a = My(n.current);
switch (a.currentNode = i, e.key) {
case "ArrowLeft": {
let t = l === "rtl" ? a.nextNode() : a.previousNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) rv(t), Hy(t, { containingElement: zy(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) iv(t), Uy(t, { containingElement: By(n.current) });
else {
if (u.getKeyLeftOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "rtl" ? (rv(n.current), Hy(n.current, { containingElement: zy(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : _w(a), t && (rv(t), Hy(t, { containingElement: zy(n.current) })));
+ p === "cell" && l === "rtl" ? (iv(n.current), Uy(n.current, { containingElement: By(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : vw(a), t && (iv(t), Uy(t, { containingElement: By(n.current) })));
}
break;
}
case "ArrowRight": {
let t = l === "rtl" ? a.previousNode() : a.nextNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) rv(t), Hy(t, { containingElement: zy(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) iv(t), Uy(t, { containingElement: By(n.current) });
else {
if (u.getKeyRightOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "ltr" ? (rv(n.current), Hy(n.current, { containingElement: zy(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? _w(a) : a.firstChild(), t && (rv(t), Hy(t, { containingElement: zy(n.current) })));
+ p === "cell" && l === "ltr" ? (iv(n.current), Uy(n.current, { containingElement: By(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? vw(a) : a.firstChild(), t && (iv(t), Uy(t, { containingElement: By(n.current) })));
}
break;
}
case "ArrowUp":
- case "ArrowDown": !e.altKey && x_(n.current, C_(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && S_(n.current, w_(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
}
} : void 0,
onKeyDown: f === "tab" ? (e) => {
- let r = S_(h_(n.current));
- if (x_(e.currentTarget, C_(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {
- if (f === "tab" && C_(e) !== n.current && e.key !== "Tab") e.stopPropagation();
+ let r = C_(g_(n.current));
+ if (S_(e.currentTarget, w_(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {
+ if (f === "tab" && w_(e) !== n.current && e.key !== "Tab") e.stopPropagation();
else if (e.key === "Tab" && f === "tab") {
- let t = jy(n.current, { tabbable: !0 });
+ let t = My(n.current, { tabbable: !0 });
t.currentNode = r, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
@@ -26649,9 +26649,9 @@ function gw(e, t, n) {
"aria-colindex": r.colIndex == null ? void 0 : r.colIndex + 1,
colSpan: i ? void 0 : r.colSpan,
onFocus: (e) => {
- m.current = r.key, C_(e) === n.current ? p === "child" && e.relatedTarget && x_(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- p === "child" && S_(h_(n.current)) === n.current && h();
- }) : Q_() || t.selectionManager.setFocusedKey(r.key);
+ m.current = r.key, w_(e) === n.current ? p === "child" && e.relatedTarget && S_(n.current, e.relatedTarget) || requestAnimationFrame(() => {
+ p === "child" && C_(g_(n.current)) === n.current && h();
+ }) : $_() || t.selectionManager.setFocusedKey(r.key);
},
...p === "child" && f === "tab" ? { tabIndex: -1 } : {}
});
@@ -26665,7 +26665,7 @@ function gw(e, t, n) {
isPressed: _
};
}
-function _w(e) {
+function vw(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -26674,33 +26674,33 @@ function _w(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableCell.mjs
-function nse(e, t, n) {
- let { gridCellProps: r, isPressed: i } = gw(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = NC(t, e.node.parentKey, a)), {
+function tse(e, t, n) {
+ let { gridCellProps: r, isPressed: i } = _w(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = PC(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function rse(e) {
+function nse(e) {
return e && e.__esModule ? e.default : e;
}
-function ise(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = gw({
+function rse(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = _w({
focusMode: "child",
...e
- }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = ly({
+ }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = uy({
isDisabled: !i || o,
onPress() {
t.sort(r.key);
},
ref: n
- }), { focusableProps: l } = vv({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
- r.props.allowsSorting && !L_() && (u = d ? f : "none");
- let p = Jv(rse(hw), "@react-aria/table"), m;
- i && (m = `${p.format("sortable")}`, d && f && L_() && (m = `${m}, ${p.format(f)}`));
- let h = Wy(m), g = t.collection.size === 0;
+ }), { focusableProps: l } = yv({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
+ r.props.allowsSorting && !R_() && (u = d ? f : "none");
+ let p = Yv(nse(gw), "@react-aria/table"), m;
+ i && (m = `${p.format("sortable")}`, d && f && R_() && (m = `${m}, ${p.format(f)}`));
+ let h = Gy(m), g = t.collection.size === 0;
return (0, b.useEffect)(() => {
g && t.selectionManager.focusedKey === r.key && t.selectionManager.setFocusedKey(null);
}, [
@@ -26711,7 +26711,7 @@ function ise(e, t, n) {
columnHeaderProps: {
...W(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: Qoe(t, r.key),
+ id: Zoe(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -26720,20 +26720,20 @@ function ise(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function ase(e, t, n) {
+function ise(e, t, n) {
let { node: r, isVirtualized: i } = e, a = { role: "row" };
return i && t.treeColumn == null && (a["aria-rowindex"] = r.index + 1), { rowProps: a };
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRow.mjs
-function ose(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = AC.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = _S({
+function ase(e, t, n) {
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = jC.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = vS({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: c || a,
- onAction: l || r?.props?.onAction ? iv(r?.props?.onAction, l) : void 0,
+ onAction: l || r?.props?.onAction ? av(r?.props?.onAction, l) : void 0,
isDisabled: t.collection.size === 0
}), f = t.selectionManager.isSelected(r.key), p = {
role: "row",
@@ -26748,10 +26748,10 @@ function ose(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRow.mjs
-function sse(e) {
+function ose(e) {
return e && e.__esModule ? e.default : e;
}
-var vw = {
+var yw = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -26761,21 +26761,21 @@ var vw = {
rtl: "ArrowRight"
}
};
-function cse(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = ose(e, t, n), { direction: s } = Hv();
+function sse(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = ase(e, t, n), { direction: s } = Uv();
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 = Jv(sse(hw), "@react-aria/table"), u = Iv({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = Yv(ose(gw), "@react-aria/table"), u = Lv({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": PC(t, r.key)
+ "aria-labelledby": FC(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = yw(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 = yw(t.collection, a);
+ let n = bw(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 = bw(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === vw.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === vw.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 === yw.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === yw.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,
@@ -26793,45 +26793,45 @@ function cse(e, t, n) {
};
}
}
- let p = Kre(r.props), m = o.hasAction ? p : {};
+ let p = Gre(r.props), m = o.hasAction ? p : {};
return {
rowProps: {
...W(a, d, m),
- "aria-labelledby": PC(t, r.key)
+ "aria-labelledby": FC(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function yw(e, t) {
+function bw(e, t) {
return "lastChildKey" in t ? t.lastChildKey == null ? null : e.getItem(t.lastChildKey) : Array.from(t.childNodes).findLast((e) => e.parentKey === t.key);
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRowGroup.mjs
-function lse() {
+function cse() {
return { rowGroupProps: { role: "rowgroup" } };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function bw() {
- return lse();
+function xw() {
+ return cse();
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function use(e) {
+function lse(e) {
return e && e.__esModule ? e.default : e;
}
-function dse(e, t) {
- let { key: n } = e, { checkboxProps: r } = yoe(e, t);
+function use(e, t) {
+ let { key: n } = e, { checkboxProps: r } = voe(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${PC(t, n)}`
+ "aria-labelledby": `${r.id} ${FC(t, n)}`
} };
}
-function fse(e) {
+function dse(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": Jv(use(hw), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": Yv(lse(gw), "@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,
@@ -26840,23 +26840,23 @@ function fse(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/utils.mjs
-var xw = /* @__PURE__ */ new WeakMap();
-function Sw(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${xw.get(e)}-${n}-${t}`) : "";
+var Sw = /* @__PURE__ */ new WeakMap();
+function Cw(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${Sw.get(e)}-${n}-${t}`) : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTab.mjs
-function pse(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 } = _S({
+function fse(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 } = vS({
selectionManager: o,
key: r,
ref: n,
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = Sw(t, r, "tab"), m = Sw(t, r, "tabpanel"), { tabIndex: h } = d, g = Xv(u?.props, { labelable: !0 });
+ }), p = Cw(t, r, "tab"), m = Cw(t, r, "tabpanel"), { tabIndex: h } = d, g = Zv(u?.props, { labelable: !0 });
delete g.id;
- let _ = B_(u?.props), { focusableProps: v } = vv({
+ let _ = V_(u?.props), { focusableProps: v } = yv({
...u?.props,
isDisabled: l
}, n);
@@ -26876,7 +26876,7 @@ function pse(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var mse = class {
+var pse = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -26920,11 +26920,11 @@ var mse = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function hse(e, t, n) {
- let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Hv(), { collectionProps: l } = ux({
+function mse(e, t, n) {
+ let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Uv(), { collectionProps: l } = dx({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, b.useMemo)(() => new mse(a, c, r, s), [
+ keyboardDelegate: (0, b.useMemo)(() => new pse(a, c, r, s), [
a,
s,
r,
@@ -26934,9 +26934,9 @@ function hse(e, t, n) {
disallowEmptySelection: !0,
scrollRef: n,
linkBehavior: "selection"
- }), u = cv();
- return xw.set(t, u), { tabListProps: {
- ...W(l, Iv({
+ }), u = lv();
+ return Sw.set(t, u), { tabListProps: {
+ ...W(l, Lv({
...e,
id: u
})),
@@ -26947,12 +26947,12 @@ function hse(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function gse(e, t, n) {
- let r = hS(n) ? void 0 : 0, i = Sw(t, e.id ?? t?.selectedKey, "tabpanel");
- return { tabPanelProps: W(Iv({
+function hse(e, t, n) {
+ let r = gS(n) ? void 0 : 0, i = Cw(t, e.id ?? t?.selectedKey, "tabpanel");
+ return { tabPanelProps: W(Lv({
...e,
id: i,
- "aria-labelledby": Sw(t, t?.selectedKey, "tab")
+ "aria-labelledby": Cw(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -26962,12 +26962,12 @@ function gse(e, t, n) {
}
//#endregion
//#region src/react/components/selection-dock.tsx
-var Cw = "(prefers-reduced-motion: reduce)", _se = () => matchMedia(Cw).matches, vse = (e) => {
- let t = matchMedia(Cw);
+var ww = "(prefers-reduced-motion: reduce)", gse = () => matchMedia(ww).matches, _se = (e) => {
+ let t = matchMedia(ww);
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
};
-function yse({ children: e, count: t, label: n }) {
- let r = Yte(), i = (0, b.useSyncExternalStore)(vse, _se, () => !1), { isFocusVisible: a } = mie(), o = i || a, s = {
+function vse({ children: e, count: t, label: n }) {
+ let r = Yte(), i = (0, b.useSyncExternalStore)(_se, gse, () => !1), { isFocusVisible: a } = pie(), o = i || a, s = {
opacity: 0,
transform: "translate(-50%, 8px)"
};
@@ -27003,18 +27003,18 @@ function yse({ children: e, count: t, label: n }) {
}), e]
});
}
-function ww({ visible: e, ...t }) {
- return /* @__PURE__ */ (0, x.jsx)(Zte, { children: e ? /* @__PURE__ */ (0, x.jsx)(yse, { ...t }, "selection") : null });
+function Tw({ visible: e, ...t }) {
+ return /* @__PURE__ */ (0, x.jsx)(Zte, { children: e ? /* @__PURE__ */ (0, x.jsx)(vse, { ...t }, "selection") : null });
}
//#endregion
//#region src/react/batch-dock/batch-dock-api.ts
-var Tw = {
+var Ew = {
group: "clear",
operation: "clear",
label: "取消",
glyph: "x"
};
-function bse(e, t = !1) {
+function yse(e, t = !1) {
switch (e) {
case "trash": return [
{
@@ -27030,7 +27030,7 @@ function bse(e, t = !1) {
glyph: "trash",
danger: !0
},
- Tw
+ Ew
];
case "junk": return [
t ? {
@@ -27051,7 +27051,7 @@ function bse(e, t = !1) {
glyph: "trash",
danger: !0
},
- Tw
+ Ew
];
case "follow": return [
{
@@ -27072,7 +27072,7 @@ function bse(e, t = !1) {
label: "忽略",
glyph: "eye-off"
},
- Tw
+ Ew
];
default: return [
{
@@ -27106,48 +27106,48 @@ function bse(e, t = !1) {
glyph: "trash",
danger: !0
},
- Tw
+ Ew
];
}
}
//#endregion
//#region src/react/batch-dock/batch-dock-island.tsx
-var Ew = null, Dw = {
+var Dw = null, Ow = {
count: 0,
context: "catalog",
junkDismissed: !1
-}, Ow = /* @__PURE__ */ new Set();
-function xse(e) {
- return Ow.add(e), () => {
- Ow.delete(e);
+}, kw = /* @__PURE__ */ new Set();
+function bse(e) {
+ return kw.add(e), () => {
+ kw.delete(e);
};
}
-function Sse() {
- for (let e of [...Ow]) e();
+function xse() {
+ for (let e of [...kw]) e();
}
-var Cse = { render(e) {
- Dw = e, (0, mt.flushSync)(Sse);
+var Sse = { render(e) {
+ Ow = e, (0, mt.flushSync)(xse);
} };
-function wse(e) {
- return Ew = e, Cse;
+function Cse(e) {
+ return Dw = e, Sse;
}
-function Tse() {
- let e = (0, b.useSyncExternalStore)(xse, () => Dw);
- return Ew ? /* @__PURE__ */ (0, x.jsx)(Ese, {
- host: Ew,
+function wse() {
+ let e = (0, b.useSyncExternalStore)(bse, () => Ow);
+ return Dw ? /* @__PURE__ */ (0, x.jsx)(Tse, {
+ host: Dw,
props: e
}) : null;
}
-function Ese({ host: e, props: t }) {
+function Tse({ host: e, props: t }) {
return /* @__PURE__ */ (0, x.jsx)("div", {
className: "peach-react",
"data-batch-scope": "",
"data-context": t.context,
- children: /* @__PURE__ */ (0, x.jsx)(ww, {
+ children: /* @__PURE__ */ (0, x.jsx)(Tw, {
label: "所选项目操作",
visible: t.count > 0,
count: `已选 ${t.count.toLocaleString()} 项`,
- children: bse(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, x.jsxs)("button", {
+ children: yse(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
"data-batch-group": t.group,
"data-batch-action": t.operation,
@@ -27164,12 +27164,12 @@ function Ese({ host: e, props: t }) {
}
//#endregion
//#region src/number-setting.ts
-function kw(e, t, n, r) {
+function Aw(e, t, n, r) {
return Number.isInteger(e) && e >= t && e <= n ? e : r;
}
//#endregion
//#region src/settings-store.ts
-function Dse(e, t) {
+function Ese(e, t) {
let n = /* @__PURE__ */ new Set(), r = 0, i = () => {
r += 1, n.forEach((e) => e());
};
@@ -27189,7 +27189,7 @@ function Dse(e, t) {
}
//#endregion
//#region src/sort-preferences.ts
-var Aw = [
+var jw = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -27198,7 +27198,7 @@ var Aw = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], jw = ["release", "发行时间"], Mw = [...Aw, jw].map(([e]) => e), Nw = {
+], Mw = ["release", "发行时间"], Nw = [...jw, Mw].map(([e]) => e), Pw = {
rating: ["从高到低", "从低到高"],
o: ["从多到少", "从少到多"],
plays: ["从多到少", "从少到多"],
@@ -27207,28 +27207,28 @@ var Aw = [
new: ["从新到旧", "从旧到新"],
played: ["从近到远", "从远到近"],
release: ["从新到旧", "从旧到新"]
-}, Pw = {
+}, Fw = {
big: ["size", "desc"],
short: ["dur", "asc"],
long: ["dur", "desc"]
-}, Fw = (e, t, n = Nw) => (n[e] || [])[+(t === "asc")] || "", Iw = (e, t = Nw) => t[e] ? "desc" : "";
-function Lw(e, t, n, r = Nw) {
+}, Iw = (e, t, n = Pw) => (n[e] || [])[+(t === "asc")] || "", Lw = (e, t = Pw) => t[e] ? "desc" : "";
+function Rw(e, t, n, r = Pw) {
return e === t ? r[e] ? {
sort: e,
dir: n === "asc" ? "desc" : "asc"
} : null : {
sort: e,
- dir: Iw(e, r)
+ dir: Lw(e, r)
};
}
-function Rw(e, t, n) {
+function zw(e, t, n) {
return e === "seed" ? "" : e === t && n === "asc" ? "asc" : "desc";
}
-function zw(e, t, n, r, i = n) {
- let a = e ? Pw[e] : void 0, o = a ? a[0] : e, s = o && Mw.includes(o) ? o : i;
- return Nw[s] ? {
+function Bw(e, t, n, r, i = n) {
+ let a = e ? Fw[e] : void 0, o = a ? a[0] : e, s = o && Nw.includes(o) ? o : i;
+ return Pw[s] ? {
sort: s,
- dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : Rw(s, n, r)
+ dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : zw(s, n, r)
} : {
sort: s,
dir: ""
@@ -27236,15 +27236,15 @@ function zw(e, t, n, r, i = n) {
}
//#endregion
//#region src/appearance/home-glow.ts
-var Bw = [
+var Vw = [
"spot1",
"spot2",
"spot3"
-], Ose = [
+], Dse = [
"光晕一",
"光晕二",
"光晕三"
-], Vw = "native", Hw = [
+], Hw = "native", Uw = [
[
"ash",
"灰雾",
@@ -27550,7 +27550,7 @@ var Bw = [
"rose"
],
[
- Vw,
+ Hw,
"玻璃原色",
{
spot1: {
@@ -27568,7 +27568,7 @@ var Bw = [
},
"blue"
]
-], Uw = (e) => e === Vw, Ww = [...Hw.map(([e, t]) => [e, t]), ["custom", "自定义"]], kse = (e) => (Ww.find(([t]) => t === e) || Ww[0])[1], Gw = (e) => structuredClone((Hw.find(([t]) => t === e) || Hw[0])[2]), Kw = [
+], Ww = (e) => e === Hw, Gw = [...Uw.map(([e, t]) => [e, t]), ["custom", "自定义"]], Ose = (e) => (Gw.find(([t]) => t === e) || Gw[0])[1], Kw = (e) => structuredClone((Uw.find(([t]) => t === e) || Uw[0])[2]), qw = [
["red", "红"],
["orange", "橙"],
["amber", "琥珀"],
@@ -27581,7 +27581,7 @@ var Bw = [
["violet", "紫罗兰"],
["fuchsia", "品红"],
["rose", "玫红"]
-], qw = "blue", Jw = (e) => Kw.some(([t]) => t === e) ? e : qw, Ase = (e) => (Hw.find(([t]) => t === e) || [])[3] || "blue", jse = [
+], Jw = "blue", Yw = (e) => qw.some(([t]) => t === e) ? e : Jw, kse = (e) => (Uw.find(([t]) => t === e) || [])[3] || "blue", Ase = [
["all", "全部"],
["gray", "灰"],
["red", "红"],
@@ -27591,7 +27591,7 @@ var Bw = [
["blue", "蓝"],
["purple", "紫"],
["brown", "棕"]
-], Mse = [
+], jse = [
[
"gray",
"云灰",
@@ -27987,11 +27987,11 @@ var Bw = [
"霁蓝",
"#6686b8"
]
-], Yw = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, Xw = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, Nse = (e, t) => `rgba(${[
+], Xw = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, Zw = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, Mse = (e, t) => `rgba(${[
1,
3,
5
-].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, Pse = {
+].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, Nse = {
strength: [
0,
100,
@@ -28017,7 +28017,7 @@ var Bw = [
100,
50
]
-}, Zw = {
+}, Qw = {
on: !0,
preset: "ash",
strength: 100,
@@ -28025,62 +28025,62 @@ var Bw = [
speed: 100,
soften: 50,
size: 50,
- ...Gw("ash")
+ ...Kw("ash")
};
-function Qw(e) {
- let t = e && typeof e == "object" ? e : {}, n = Ww.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = Gw(r === "custom" ? "ash" : r), a = {
+function $w(e) {
+ let t = e && typeof e == "object" ? e : {}, n = Gw.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = Kw(r === "custom" ? "ash" : r), a = {
on: t.on !== !1,
preset: r
};
- for (let [e, [n, r, i]] of Object.entries(Pse)) a[e] = Yw(+t[e], n, r, i);
- for (let e of Bw) {
+ for (let [e, [n, r, i]] of Object.entries(Nse)) a[e] = Xw(+t[e], n, r, i);
+ for (let e of Vw) {
let r = n && t[e] && typeof t[e] == "object" ? t[e] : {}, o = i[e];
a[e] = {
- color: Xw(r.color, o.color),
- alpha: Yw(+r.alpha, 0, 100, o.alpha)
+ color: Zw(r.color, o.color),
+ alpha: Xw(+r.alpha, 0, 100, o.alpha)
};
}
return a;
}
-var Fse = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, $w = /* @__PURE__ */ new WeakMap();
-function Ise(e, t) {
+var Pse = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, eT = /* @__PURE__ */ new WeakMap();
+function Fse(e, t) {
if (!e) return;
- let n = $w.get(e);
- n || (n = /* @__PURE__ */ new Map(), $w.set(e, n));
- let r = t.on && !Uw(t.preset), i = (t, r) => {
+ let n = eT.get(e);
+ n || (n = /* @__PURE__ */ new Map(), eT.set(e, n));
+ let r = t.on && !Ww(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"), Bw.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"), Vw.forEach((e, n) => {
let r = t[e];
- i(`--glow-spot-${n + 1}-color`, Nse(r.color, r.alpha));
+ i(`--glow-spot-${n + 1}-color`, Mse(r.color, r.alpha));
});
}
-function Lse(e, t) {
+function Ise(e, t) {
if (!e) return;
- let n = !t.on || Uw(t.preset);
+ let n = !t.on || Ww(t.preset);
e.toggleAttribute("data-glow-native", n), e.style.setProperty("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), e.style.setProperty("--glow-drift-play", t.speed ? "running" : "paused"), n ? (e.style.removeProperty("--glass-tint-a"), e.style.removeProperty("--glass-tint-b")) : (e.style.setProperty("--glass-tint-a", t.spot1.color), e.style.setProperty("--glass-tint-b", t.spot2.color));
}
//#endregion
//#region src/appearance/settings.ts
-var Rse = "peach.settings.v1", zse = [
+var Lse = "peach.settings.v1", Rse = [
"system",
"light",
"dark"
-], eT = [
+], tT = [
0,
7,
30,
90
-], tT = [
+], nT = [
0,
7,
30,
90
-], Bse = [
+], zse = [
"feedHideGroupCompilations",
"feedHideSoloCompilations",
"feedHideExcerpts"
-], nT = {
+], rT = {
batchSize: 60,
defaultSort: "seed",
sortDefaultsVersion: 3,
@@ -28100,48 +28100,48 @@ var Rse = "peach.settings.v1", zse = [
theme: "system",
groupCollapse: !0,
sidebarOrder: [...Ys],
- homeGlow: Zw,
- accent: qw
-}, rT = (e, t, n) => t.includes(e) ? e : n;
-function Vse(e) {
+ homeGlow: Qw,
+ accent: Jw
+}, iT = (e, t, n) => t.includes(e) ? e : n;
+function Bse(e) {
let t = e && typeof e == "object" ? e : {}, n = {
- ...nT,
+ ...rT,
...t
};
- n.followInitialDays = eT.includes(+n.followInitialDays) ? +n.followInitialDays : 30, delete n.rotateMinutes;
+ n.followInitialDays = tT.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 = Pw[n.defaultSort];
- return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = kw(+n.batchSize, 1, 200, 60), n.defaultSort = rT(n.defaultSort, Mw, "seed"), n.hoverDelaySeconds = kw(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = kw(+n.seekSeconds, 1, 300, 10), delete n.loginDays, 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 = kw(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = kw(+n.relatedLimit, 0, 60, 20), n.metadataRefreshDays = rT(+n.metadataRefreshDays, tT, 30), Object.assign(n, zi(n)), n.theme = rT(n.theme, zse, "system"), n.homeGlow = Qw(n.homeGlow), n.accent = Jw(n.accent), n.sidebarOrder = dee(n.sidebarOrder), {
+ let a = Fw[n.defaultSort];
+ return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = Aw(+n.batchSize, 1, 200, 60), n.defaultSort = iT(n.defaultSort, Nw, "seed"), n.hoverDelaySeconds = Aw(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = Aw(+n.seekSeconds, 1, 300, 10), delete n.loginDays, 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 = Aw(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = Aw(+n.relatedLimit, 0, 60, 20), n.metadataRefreshDays = iT(+n.metadataRefreshDays, nT, 30), Object.assign(n, zi(n)), n.theme = iT(n.theme, Rse, "system"), n.homeGlow = $w(n.homeGlow), n.accent = Yw(n.accent), n.sidebarOrder = dee(n.sidebarOrder), {
settings: n,
migrated: r
};
}
-function Hse(e) {
+function Vse(e) {
let t = {};
try {
t = JSON.parse(e.getItem("peach.settings.v1") || "{}");
} catch {}
- return Vse(t);
+ return Bse(t);
}
-var iT = null;
-function aT() {
- if (iT) return iT;
- let { settings: e, migrated: t } = Hse(localStorage);
- return iT = Dse(Rse, e), t && iT.save(), iT;
+var aT = null;
+function oT() {
+ if (aT) return aT;
+ let { settings: e, migrated: t } = Vse(localStorage);
+ return aT = Ese(Lse, e), t && aT.save(), aT;
}
-function oT(e, t, n = aT()) {
+function sT(e, t, n = oT()) {
let r = n.value, i = e && e.followInitialDays;
- eT.includes(i) && (r.followInitialDays = i, n.save());
+ tT.includes(i) && (r.followInitialDays = i, n.save());
let a = e && e.metadataRefreshDays;
- tT.includes(a) && a !== r.metadataRefreshDays && (r.metadataRefreshDays = a, n.save());
- for (let t of Bse) typeof e?.[t] == "boolean" && e[t] !== r[t] && (r[t] = e[t], n.save());
+ nT.includes(a) && a !== r.metadataRefreshDays && (r.metadataRefreshDays = a, n.save());
+ for (let t of zse) 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 = kw(o, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== nT.searchHistoryLimit && Use(n);
+ Number.isInteger(o) && o >= 0 && o <= 50 ? o !== r.searchHistoryLimit && (r.searchHistoryLimit = Aw(o, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== rT.searchHistoryLimit && Hse(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 Use(e = aT()) {
+function Hse(e = oT()) {
return vt("/api/settings", {
method: "POST",
body: JSON.stringify({ searchHistoryLimit: e.value.searchHistoryLimit })
@@ -28149,7 +28149,7 @@ function Use(e = aT()) {
}
//#endregion
//#region src/appearance/theme.ts
-var Wse = [
+var Use = [
[
"system",
"跟随系统",
@@ -28165,32 +28165,32 @@ var Wse = [
"深色",
"moon"
]
-], Gse = null, sT = () => Gse ??= matchMedia("(prefers-color-scheme: dark)"), cT = null;
-function Kse() {
- return cT || (cT = document.createElement("style"), cT.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), cT.isConnected || document.head.append(cT), () => {
+], Wse = null, cT = () => Wse ??= matchMedia("(prefers-color-scheme: dark)"), lT = null;
+function Gse() {
+ return lT || (lT = document.createElement("style"), lT.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), lT.isConnected || document.head.append(lT), () => {
getComputedStyle(document.documentElement).opacity;
let e = () => {
- cancelAnimationFrame(t), clearTimeout(n), cT?.remove();
+ cancelAnimationFrame(t), clearTimeout(n), lT?.remove();
}, t = requestAnimationFrame(e), n = setTimeout(e, 100);
};
}
-function lT(e = aT().value.theme) {
- let t = Kse(), n = document.documentElement;
+function uT(e = oT().value.theme) {
+ let t = Gse(), n = document.documentElement;
e === "system" ? delete n.dataset.theme : n.dataset.theme = e;
- let r = e === "dark" || e === "system" && sT().matches;
+ let r = e === "dark" || e === "system" && cT().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 uT = !1;
-function qse() {
- uT || (uT = !0, sT().addEventListener("change", () => {
- aT().value.theme === "system" && lT();
+var dT = !1;
+function Kse() {
+ dT || (dT = !0, cT().addEventListener("change", () => {
+ oT().value.theme === "system" && uT();
}));
}
//#endregion
//#region src/appearance/layout.ts
-var dT = [[
+var fT = [[
"big",
"大图",
"maximize"
@@ -28198,7 +28198,7 @@ var dT = [[
"small",
"小图",
"layout-grid"
-]], fT = [[
+]], pT = [[
"big",
"大图",
"maximize"
@@ -28206,7 +28206,7 @@ var dT = [[
"small",
"小图",
"layout-grid"
-]], pT = [[
+]], mT = [[
"fixed",
"固定比例",
"layout-grid"
@@ -28214,121 +28214,121 @@ var dT = [[
"masonry",
"瀑布流",
"columns-2"
-]], mT = .75, hT = () => aT().value, gT = (e = hT()) => Ri(e.javLayout), Jse = (e = hT()) => Ri(e.homeLayout), _T = (e, t = hT()) => e ? Jse(t) : gT(t), vT = fT.map(([e]) => e), yT = pT.map(([e]) => e), bT = (e = hT()) => rT(e.photoSize, vT, "small"), xT = (e = hT()) => rT(e.photoLayout, yT, "masonry"), ST = null;
-function CT(e, t = hT()) {
+]], hT = .75, gT = () => oT().value, _T = (e = gT()) => Ri(e.javLayout), qse = (e = gT()) => Ri(e.homeLayout), vT = (e, t = gT()) => e ? qse(t) : _T(t), yT = pT.map(([e]) => e), bT = mT.map(([e]) => e), xT = (e = gT()) => iT(e.photoSize, yT, "small"), ST = (e = gT()) => iT(e.photoLayout, bT, "masonry"), CT = null;
+function wT(e, t = gT()) {
let n = {
active: e.active,
- size: _T(e.home, t),
+ size: vT(e.home, t),
portrait: e.portrait,
javImage: t.javImage
- }, r = ST;
- return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (ST = n), ST;
+ }, r = CT;
+ return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (CT = n), CT;
}
-function wT(e) {
- return e.portrait ? 9 / 16 : e.active && e.size === "big" ? mT : 16 / 9;
+function TT(e) {
+ return e.portrait ? 9 / 16 : e.active && e.size === "big" ? hT : 16 / 9;
}
-function Yse(e, t = aT()) {
+function Jse(e, t = oT()) {
t.value.homeLayout = Ri(e), t.save();
}
-function TT(e, t = aT()) {
+function ET(e, t = oT()) {
t.value.javLayout = Ri(e), t.save();
}
-function Xse(e, t = aT()) {
+function Yse(e, t = oT()) {
t.value.homeLayout = t.value.javLayout = Ri(e), t.save();
}
-function Zse(e, t = aT()) {
- t.value.photoSize = rT(e, vT, "small"), t.save();
+function Xse(e, t = oT()) {
+ t.value.photoSize = iT(e, yT, "small"), t.save();
}
-function ET(e, t = aT()) {
- t.value.photoLayout = rT(e, yT, "masonry"), t.save();
+function DT(e, t = oT()) {
+ t.value.photoLayout = iT(e, bT, "masonry"), t.save();
}
//#endregion
//#region src/appearance/density.ts
-var DT = "density", Qse = {
+var OT = "density", Zse = {
big: "336px",
dense: "168px"
-}, OT = () => localStorage.getItem(DT) === "dense" ? "dense" : "big";
-function kT(e, t) {
- let [n, r] = fT;
+}, kT = () => localStorage.getItem(OT) === "dense" ? "dense" : "big";
+function AT(e, t) {
+ let [n, r] = pT;
e.querySelector("[data-icon-swap]") ? to(e, t === r[0] ? "b" : "a") : e.innerHTML = eo(n[2], r[2], t === r[0] ? "b" : "a"), e.setAttribute("aria-label", t === "big" ? "切换为小图" : "切换为大图");
}
-var AT = () => document.querySelector("#density");
-function jT(e = OT()) {
- document.documentElement.style.setProperty("--tile", Qse[e]), document.body.dataset.density = e;
- let t = AT();
- t && (t.setAttribute("aria-pressed", String(e === "dense")), t.title = "当前:" + (e === "big" ? "大图" : "密集"), kT(t, e === "big" ? "big" : "small"));
+var jT = () => document.querySelector("#density");
+function MT(e = kT()) {
+ document.documentElement.style.setProperty("--tile", Zse[e]), document.body.dataset.density = e;
+ let t = jT();
+ t && (t.setAttribute("aria-pressed", String(e === "dense")), t.title = "当前:" + (e === "big" ? "大图" : "密集"), AT(t, e === "big" ? "big" : "small"));
}
-function $se() {
- let e = OT() === "big" ? "dense" : "big";
- localStorage.setItem(DT, e), jT(e);
+function Qse() {
+ let e = kT() === "big" ? "dense" : "big";
+ localStorage.setItem(OT, e), MT(e);
}
-function ece(e) {
- let t = AT();
- t && (t.setAttribute("aria-pressed", String(e === "small")), t.title = "当前:" + (e === "big" ? "大图" : "小图"), kT(t, e));
+function $se(e) {
+ let t = jT();
+ t && (t.setAttribute("aria-pressed", String(e === "small")), t.title = "当前:" + (e === "big" ? "大图" : "小图"), AT(t, e));
}
//#endregion
//#region src/appearance/glow.ts
-function MT(e = aT()) {
- Ise(document.querySelector(".glowlayer"), e.value.homeGlow);
+function NT(e = oT()) {
+ Fse(document.querySelector(".glowlayer"), e.value.homeGlow);
}
-var NT = 0;
-function PT(e = aT()) {
- NT ||= requestAnimationFrame(() => {
- NT = 0, MT(e);
+var PT = 0;
+function FT(e = oT()) {
+ PT ||= requestAnimationFrame(() => {
+ PT = 0, NT(e);
});
}
-function FT(e = aT()) {
- Lse(document.documentElement, e.value.homeGlow);
+function IT(e = oT()) {
+ Ise(document.documentElement, e.value.homeGlow);
}
-function IT(e = aT()) {
+function LT(e = oT()) {
document.documentElement.dataset.accent = e.value.accent;
}
-var LT = (e, t, n) => ({
+var RT = (e, t, n) => ({
key: e,
label: t,
- native: Uw(e),
- fill: Uw(e) ? "" : Fse(n)
+ native: Ww(e),
+ fill: Ww(e) ? "" : Pse(n)
});
-function tce(e) {
- let t = Hw.map(([e, t, n]) => LT(e, t, Bw.map((e) => n[e].color)));
- return e.preset === "custom" && t.push(LT("custom", "自定义", Bw.map((t) => e[t].color))), t;
+function ece(e) {
+ let t = Uw.map(([e, t, n]) => RT(e, t, Vw.map((e) => n[e].color)));
+ return e.preset === "custom" && t.push(RT("custom", "自定义", Vw.map((t) => e[t].color))), t;
}
-var nce = Kw;
-function rce(e, t = aT()) {
+var tce = qw;
+function nce(e, t = oT()) {
if (e === "custom") return;
let n = t.value.homeGlow;
- n.preset = e, Object.assign(n, Gw(e)), t.value.accent = Ase(e), t.save(), PT(t), FT(t), IT(t);
+ n.preset = e, Object.assign(n, Kw(e)), t.value.accent = kse(e), t.save(), FT(t), IT(t), LT(t);
}
-function ice(e, t = aT()) {
- t.value.accent = Jw(e), t.save(), IT(t);
+function rce(e, t = oT()) {
+ t.value.accent = Yw(e), t.save(), LT(t);
}
-function ace(e = aT()) {
+function ice(e = oT()) {
let t = e.value.homeGlow;
- t.preset = Zw.preset, Object.assign(t, Gw(t.preset)), e.value.accent = qw, e.save(), PT(e), FT(e), IT(e);
+ t.preset = Qw.preset, Object.assign(t, Kw(t.preset)), e.value.accent = Jw, e.save(), FT(e), IT(e), LT(e);
}
-function RT(e, t) {
- e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && Uw(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
+function zT(e, t) {
+ e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && Ww(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
}
-function oce(e, t = aT()) {
- return RT(e, t.value.homeGlow), t.subscribe(() => RT(e, t.value.homeGlow));
+function ace(e, t = oT()) {
+ return zT(e, t.value.homeGlow), t.subscribe(() => zT(e, t.value.homeGlow));
}
//#endregion
//#region src/react/components/glow-preset-grid.tsx
-function zT({ store: e, label: t, hidden: n }) {
+function BT({ store: e, label: t, hidden: n }) {
let r = e.value.homeGlow;
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-glow-grid": "",
role: "group",
"aria-label": t,
hidden: n,
- children: tce(r).map((t) => /* @__PURE__ */ (0, x.jsx)("button", {
+ children: ece(r).map((t) => /* @__PURE__ */ (0, x.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: () => rce(t.key, e),
+ onClick: () => nce(t.key, e),
children: /* @__PURE__ */ (0, x.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@ -28340,14 +28340,14 @@ function zT({ store: e, label: t, hidden: n }) {
}
//#endregion
//#region src/react/glow-picker/glow-picker-island.tsx
-var BT = null;
-function sce(e) {
- BT = e;
+var VT = null;
+function oce(e) {
+ VT = e;
}
-function cce() {
- return BT ? /* @__PURE__ */ (0, x.jsx)(lce, { host: BT }) : null;
+function sce() {
+ return VT ? /* @__PURE__ */ (0, x.jsx)(cce, { host: VT }) : null;
}
-function lce({ host: e }) {
+function cce({ host: e }) {
let { store: t } = e;
(0, b.useSyncExternalStore)(t.subscribe, t.version);
let { homeGlow: n, accent: r } = t.value;
@@ -28359,11 +28359,11 @@ function lce({ host: e }) {
children: [/* @__PURE__ */ (0, x.jsx)("span", { children: "光晕" }), /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
"data-glow-preset-reset": "",
- onClick: () => ace(t),
+ onClick: () => ice(t),
children: "重置"
})]
}),
- /* @__PURE__ */ (0, x.jsx)(zT, {
+ /* @__PURE__ */ (0, x.jsx)(BT, {
store: t,
label: "光晕",
hidden: !n.on
@@ -28377,14 +28377,14 @@ function lce({ host: e }) {
"data-accent-grid": "",
role: "group",
"aria-label": "强调色",
- children: nce.map(([e, n]) => /* @__PURE__ */ (0, x.jsx)("button", {
+ children: tce.map(([e, n]) => /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
"data-glow-chip": "",
"data-accent": e,
"aria-pressed": e === r,
title: n,
"aria-label": n,
- onClick: () => ice(e, t),
+ onClick: () => rce(e, t),
children: /* @__PURE__ */ (0, x.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@ -28403,32 +28403,32 @@ function lce({ host: e }) {
}
//#endregion
//#region src/player/host.ts
-var VT = null;
-function uce(e) {
- VT = e;
+var HT = null;
+function lce(e) {
+ HT = e;
}
-function HT() {
- if (!VT) throw Error("播放器还没有接上宿主(configurePlayer)");
- return VT;
+function UT() {
+ if (!HT) throw Error("播放器还没有接上宿主(configurePlayer)");
+ return HT;
}
//#endregion
//#region src/player/menu.ts
-var UT = null;
-function dce(e) {
- UT = e;
+var WT = null;
+function uce(e) {
+ WT = e;
}
-function fce() {
+function dce() {
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 WT = null, GT = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
-function KT() {
+var GT = null, KT = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
+function qT() {
let e = document.getElementById("playerMenu");
e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && La(e, () => {
e.innerHTML = "";
- }), WT &&= (WT(), null);
+ }), GT &&= (GT(), null);
}
-async function pce(e) {
+async function fce(e) {
try {
return await navigator.clipboard.writeText(e), !0;
} catch {
@@ -28441,12 +28441,12 @@ async function pce(e) {
return t.remove(), n;
}
}
-function mce(e) {
- let t = !!UT?.inMiniplayer(e), n = e.peachItem, r = UT?.kind(e) ?? "item", i = (t) => {
+function pce(e) {
+ let t = !!WT?.inMiniplayer(e), n = e.peachItem, r = WT?.kind(e) ?? "item", i = (t) => {
let i = new URL(r === "follow" ? `/follow/item/${n?.id}` : `/item/${n?.id}`, location.origin);
return t && i.searchParams.set("t", String(Math.floor(e.currentTime() || 0))), i.href;
}, a = (e, t) => {
- pce(i(e)).then((e) => HT().toast(e ? t : "复制失败,请手动复制地址栏", {
+ fce(i(e)).then((e) => UT().toast(e ? t : "复制失败,请手动复制地址栏", {
timeout: 4e3,
warn: !e
}));
@@ -28458,11 +28458,11 @@ function mce(e) {
}, t ? {
icon: "maximize-2",
label: "展开",
- run: () => UT?.expand()
+ run: () => WT?.expand()
} : {
icon: "picture-in-picture-2",
label: "迷你播放器",
- run: () => UT?.toMiniplayer()
+ run: () => WT?.toMiniplayer()
}];
document.pictureInPictureEnabled && o.push({
icon: "player-pip",
@@ -28485,29 +28485,29 @@ function mce(e) {
run: () => s.click()
}), o;
}
-function hce(e, t, n) {
- let r = fce();
- KT();
- let i = HT().stage();
+function mce(e, t, n) {
+ let r = dce();
+ qT();
+ let i = UT().stage();
i instanceof HTMLDialogElement && i.open && i.append(r), r.setAttribute("popover", "manual");
- let a = mce(e);
+ let a = pce(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}">${GT(I(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${L(e.label)}</span>${n ? GT(I("check"), "data-player-menu-check") : ""}</button>`;
+ return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${KT(I(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${L(e.label)}</span>${n ? KT(I("check"), "data-player-menu-check") : ""}</button>`;
}).join(""), Ia(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)];
- KT(), n?.run();
+ qT(), n?.run();
};
});
let s = (e) => {
- r.contains(e.target) || KT();
+ r.contains(e.target) || qT();
}, c = (e) => {
if (e.key === "Escape") {
- e.preventDefault(), e.stopPropagation(), KT();
+ e.preventDefault(), e.stopPropagation(), qT();
return;
}
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
@@ -28515,51 +28515,51 @@ function hce(e, t, n) {
let t = o.indexOf(document.activeElement);
o[(t + (e.key === "ArrowDown" ? 1 : -1) + o.length) % o.length]?.focus();
}, l = (t) => {
- za(t, e.el()) && KT();
+ za(t, e.el()) && qT();
};
setTimeout(() => {
document.addEventListener("pointerdown", s, !0), document.addEventListener("keydown", c, !0), window.addEventListener("scroll", l, {
capture: !0,
passive: !0
});
- }, 0), WT = () => {
+ }, 0), GT = () => {
document.removeEventListener("pointerdown", s, !0), document.removeEventListener("keydown", c, !0), window.removeEventListener("scroll", l, !0);
}, o[0]?.focus();
}
-function gce(e) {
+function hce(e) {
e.el().addEventListener("contextmenu", (t) => {
- t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), hce(e, t.clientX, t.clientY));
- }), e.on("dispose", KT);
+ t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), mce(e, t.clientX, t.clientY));
+ }), e.on("dispose", qT);
}
//#endregion
//#region src/player/registry.ts
-var qT = null, JT = () => qT;
-function YT(e) {
- qT = e;
-}
+var JT = null, YT = () => JT;
function XT(e) {
+ JT = e;
+}
+function ZT(e) {
e && !e.isDisposed() && requestAnimationFrame(() => {
e.isDisposed() || e.trigger("resize");
});
}
//#endregion
//#region src/player/stats.ts
-function ZT(e) {
+function QT(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 _ce(e) {
+function gce(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 QT = 3e3;
-function $T(e, t) {
+var $T = 3e3;
+function eE(e, t) {
let n = Number(e) || 0, r = Bt(t) || 0;
return n > 0 && r > 0 ? n * 8 / r : 0;
}
-function vce(e) {
+function _ce(e) {
let t = [], n = null, r = 0, i = 0;
return {
bitrate: Number(e) || 0,
@@ -28574,10 +28574,10 @@ function vce(e) {
},
sample(e) {
if (!e) return i;
- let a = performance.now(), o = _ce(e), s = e.currentTime || 0;
+ let a = performance.now(), o = gce(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 > QT * 2 && (t.length = 0);
+ !i && c > 0 && (r += c), e * 1e3 > $T * 2 && (t.length = 0);
}
for (n = {
at: a,
@@ -28586,56 +28586,56 @@ function vce(e) {
}, t.push({
at: a,
advanced: r
- }); t.length > 2 && a - t[0].at > QT;) t.shift();
+ }); t.length > 2 && a - t[0].at > $T;) 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 eE = 24;
-function tE(e, t) {
- e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > eE && e.splice(0, e.length - eE);
+var tE = 24;
+function nE(e, t) {
+ e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > tE && e.splice(0, e.length - tE);
}
-var nE = "peach-player-panel";
-function rE(e, t, n, r) {
- let i = [...Array(Math.max(0, eE - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
+var rE = "peach-player-panel";
+function iE(e, t, n, r) {
+ let i = [...Array(Math.max(0, tE - 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="${L(r)}">${o}</span>`;
}
-function yce() {
+function vce() {
return `<button data-player-stats-button="" id="playerStatsBtn" aria-label="播放统计" title="播放统计" aria-pressed="false" hidden>${I("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 iE(e, t = "") {
+function aE(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 aE(e, t = "") {
- let n = iE(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 oE(e, t = "") {
+ let n = aE(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 oE(e, t, n = "", r = null) {
+function sE(e, t, n = "", r = null) {
let i = 0;
try {
i = Number(e?.tech({ IWillNotUseThisInPlugins: !0 })?.vhs?.stats?.bandwidth) || 0;
} catch {}
- return i > 0 ? i : r ? Number(r.bits) || 0 : aE(t, n);
+ return i > 0 ? i : r ? Number(r.bits) || 0 : oE(t, n);
}
-function sE(e) {
+function cE(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 bce(e, t) {
- return e > 0 ? sE(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : sE(0);
+function yce(e, t) {
+ return e > 0 ? cE(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : cE(0);
}
//#endregion
//#region src/player/controls.ts
-function cE(e, t, n = "") {
+function lE(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));
@@ -28646,27 +28646,27 @@ function cE(e, t, n = "") {
};
return o(), o;
}
-function lE(e, t) {
+function uE(e, t) {
e?.closest(".video-js")?.querySelector(`.vjs-control-bar ${t}`)?.click();
}
-function xce(e, t = !0) {
- let n = HT(), r = n.settings();
+function bce(e, t = !0) {
+ let n = UT(), 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 uE = /* @__PURE__ */ new WeakMap();
-function dE(e) {
+var dE = /* @__PURE__ */ new WeakMap();
+function fE(e) {
if (!e) return;
- let t = HT().settings().theaterMode;
- e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), uE.get(e)?.(t ? "默认视图" : "影院模式");
+ let t = UT().settings().theaterMode;
+ e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), dE.get(e)?.(t ? "默认视图" : "影院模式");
}
-function fE(e, t = !0) {
- let n = HT(), r = n.settings();
+function pE(e, t = !0) {
+ let n = UT(), r = n.settings();
r.theaterMode = !!e, t && n.saveSettings();
let i = n.stage();
- i?.toggleAttribute("data-theater", r.theaterMode), dE(i?.querySelector("[data-player-theater]")), XT(JT());
+ i?.toggleAttribute("data-theater", r.theaterMode), fE(i?.querySelector("[data-player-theater]")), ZT(YT());
}
-function Sce(e) {
- let t = HT().stage(), n = t?.querySelector("[data-ambient-canvas]");
+function xce(e) {
+ let t = UT().stage(), n = t?.querySelector("[data-ambient-canvas]");
if (!t || !n) return () => {};
let r = n.getContext("2d", { alpha: !1 });
if (!r) return () => {};
@@ -28689,9 +28689,9 @@ function Sce(e) {
}, u = (t) => {
e.requestVideoFrameCallback ? e.requestVideoFrameCallback((e) => d(t, e)) : requestAnimationFrame((e) => d(t, e));
}, d = (t, n) => {
- i || t !== o || (HT().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
+ i || t !== o || (UT().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
}, f = () => {
- !i && HT().settings().ambientMode && (l(), e.paused || u(++o));
+ !i && UT().settings().ambientMode && (l(), e.paused || u(++o));
}, p = (e) => {
let n = !!e.detail.enabled;
t.toggleAttribute("data-ambient", n), n ? f() : (o++, c());
@@ -28700,7 +28700,7 @@ function Sce(e) {
i = !0, o++, document.removeEventListener("peachambientchange", p), e.removeEventListener("play", f), e.removeEventListener("loadeddata", f), c();
};
}
-function Cce(e, t, n = 0, r = null) {
+function Sce(e, t, n = 0, r = null) {
let i = e.getChild("controlBar")?.el();
if (!i || i.querySelector("[data-player-quality]")) return;
let a = document.createElement("div");
@@ -28710,7 +28710,7 @@ function Cce(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]");
- cE(s, "设置");
+ lE(s, "设置");
let l = a.querySelector(".vjs-peach-settings-menu"), u = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, d = r, f = "auto", p = (e, t) => {
let n = [Number(e), Number(t)].filter((e) => e > 0);
return n.length ? Math.min(...n) : 0;
@@ -28750,11 +28750,11 @@ function Cce(e, t, n = 0, r = null) {
active: n
};
}, g = () => l.getAttribute("aria-hidden") !== "true", _ = (e) => {
- l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e && document.dispatchEvent(new CustomEvent(nE, { detail: "settings" }));
+ l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e && document.dispatchEvent(new CustomEvent(rE, { detail: "settings" }));
}, v = () => _(!1), y = (e) => {
e.detail !== "settings" && v();
};
- document.addEventListener(nE, y);
+ document.addEventListener(rE, y);
let b = null, x = (e, t) => {
let n = l.querySelector(".vjs-peach-panel"), r = document.createElement("div");
if (r.className = "vjs-peach-panel", r.innerHTML = e, !n || !t || !g()) return l.replaceChildren(r), l.style.height = "", r;
@@ -28769,12 +28769,12 @@ function Cce(e, t, n = 0, r = null) {
}), r;
}, S = (e, t) => e.querySelector(t), C = "main", w = (t = 0) => {
C = "main";
- let { active: n } = h(), r = Number(e.playbackRate()) || 1, i = x(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${HT().settings().ambientMode}">
+ let { active: n } = h(), r = Number(e.playbackRate()) || 1, i = x(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${UT().settings().ambientMode}">
${I("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>${I("player-speed")}<span>播放速度</span><b>${r === 1 ? "正常" : `${r}×`}</b>${I("player-menu-next")}</button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-quality-view>${I("player-quality")}<span>清晰度</span><b>${L(n.label)}</b>${I("player-menu-next")}</button></div>`, t);
S(i, "[data-player-ambient]").onclick = () => {
- xce(!HT().settings().ambientMode), w();
+ bce(!UT().settings().ambientMode), w();
}, S(i, "[data-player-speed]").onclick = () => O(), S(i, "[data-player-quality-view]").onclick = () => A();
}, T = .05, E = [
1,
@@ -28850,22 +28850,22 @@ function Cce(e, t, n = 0, r = null) {
"removequalitylevel",
"change"
], j), e.on("dispose", () => {
- document.removeEventListener("pointerdown", M), document.removeEventListener(nE, y), b && clearTimeout(b);
- }), h(), wce(e, a), Tce(e), (e) => {
+ document.removeEventListener("pointerdown", M), document.removeEventListener(rE, y), b && clearTimeout(b);
+ }), h(), Cce(e, a), wce(e), (e) => {
d = e?.length ? e : null, j();
};
}
-function wce(e, t) {
+function Cce(e, t) {
let n = e.getChild("controlBar")?.el();
if (!n || n.querySelector("[data-player-theater]")) return;
- let r = HT().settings().theaterMode, i = document.createElement("div");
+ let r = UT().settings().theaterMode, i = document.createElement("div");
i.className = "vjs-peach-theater vjs-control", i.innerHTML = `<button type="button" data-player-theater aria-pressed="${r}">${I(r ? "theater-exit" : "theater-enter")}</button>`, n.insertBefore(i, t.nextSibling);
let a = i.querySelector("button");
- uE.set(a, cE(a, "影院模式", "T")), dE(a), a.onclick = (e) => {
- e.stopPropagation(), fE(!HT().settings().theaterMode);
+ dE.set(a, lE(a, "影院模式", "T")), fE(a), a.onclick = (e) => {
+ e.stopPropagation(), pE(!UT().settings().theaterMode);
};
}
-function Tce(e) {
+function wce(e) {
let t = e.getChild("controlBar")?.el();
if (!t || t.querySelector(".vjs-peach-right-controls")) return;
let n = t.querySelector(":scope>.vjs-play-control");
@@ -28877,7 +28877,7 @@ function Tce(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 = cE(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 = lE(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 ? "播放" : "暂停");
};
@@ -28888,7 +28888,7 @@ function Tce(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 = cE(p, "静音", "M"), g = () => {
+ let h = lE(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 ? "取消静音" : "静音");
};
@@ -28914,7 +28914,7 @@ function Tce(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 = cE(x, "显示剩余时间"), T = () => {
+ let C = x.querySelector(".vjs-peach-time-text"), w = lE(x, "显示剩余时间"), T = () => {
let t = Math.max(0, Number(e.currentTime()) || 0), n = Math.max(0, Number(e.duration()) || 0), r = Ht(Math.max(0, n - t));
C.textContent = `${S ? `-${r}` : Ht(t)} / ${Ht(n)}`, x.dataset.remaining = String(S), w(S ? "显示已播放时间" : "显示剩余时间", S ? `剩余 ${r},总时长 ${Ht(n)};点击显示已播放时间` : `已播放 ${Ht(t)},总时长 ${Ht(n)};点击显示剩余时间`);
};
@@ -28927,11 +28927,11 @@ function Tce(e) {
], T), T(), f ? f.insertAdjacentElement("afterend", x) : t.append(x);
let E = t.querySelector(":scope>.vjs-picture-in-picture-control");
r(E, "player-pip");
- let D = cE(E, "画中画");
+ let D = lE(E, "画中画");
e.on(["enterpictureinpicture", "leavepictureinpicture"], () => D(document.pictureInPictureElement ? "退出画中画" : "画中画"));
- let O = t.querySelector(":scope>.vjs-fullscreen-control"), k = r(O, "player-fullscreen-enter"), A = cE(O, "全屏", "F"), j = () => {
+ let O = t.querySelector(":scope>.vjs-fullscreen-control"), k = r(O, "player-fullscreen-enter"), A = lE(O, "全屏", "F"), j = () => {
let t = !!e.isFullscreen();
- e.el().toggleAttribute("data-peach-fullscreen", t), k?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), A(t ? "退出全屏" : "全屏"), XT(e);
+ e.el().toggleAttribute("data-peach-fullscreen", t), k?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), A(t ? "退出全屏" : "全屏"), ZT(e);
};
e.on([
"fullscreenchange",
@@ -28951,7 +28951,7 @@ function Tce(e) {
});
let ee = document.createElement("div");
ee.className = "vjs-peach-expand vjs-control", ee.innerHTML = `<button type="button" data-player-expand aria-expanded="false">${I("player-expand")}</button><span class="vjs-peach-hover" aria-hidden="true"></span>`, N.prepend(ee);
- let te = ee.querySelector("button"), P = cE(te, "展开控件"), ne = (t) => {
+ let te = ee.querySelector("button"), P = lE(te, "展开控件"), ne = (t) => {
e.el().classList.toggle("vjs-peach-right-expanded", t), te.setAttribute("aria-expanded", String(t)), P(t ? "收起控件" : "展开控件");
};
te.onclick = (t) => {
@@ -28963,7 +28963,7 @@ function Tce(e) {
}, ie = new ResizeObserver(re);
ie.observe(e.el()), e.on("dispose", () => ie.disconnect()), ne(!1), re();
}
-function Ece(e, t, n = {}) {
+function Tce(e, t, n = {}) {
let r = e.getChild("controlBar")?.el()?.querySelector(".vjs-progress-control");
if (!r || r.querySelector("[data-player-seek-preview]")) return;
let i = n.thumbnail !== !1, a = document.createElement("div");
@@ -28996,13 +28996,13 @@ function Ece(e, t, n = {}) {
r.removeEventListener("pointermove", p), r.removeEventListener("pointerleave", m);
});
}
-function Dce(e, t) {
+function Ece(e, t) {
let n = navigator.mediaSession;
if (!n || typeof n.setActionHandler != "function") return;
let r = () => Bt(e.duration()) || Bt(t.duration) || 0, i = (t) => {
let n = r();
e.currentTime(Math.max(0, n ? Math.min(n, t) : t));
- }, a = () => Math.max(1, Number(HT().settings().seekSeconds) || 10), o = [
+ }, a = () => Math.max(1, Number(UT().settings().seekSeconds) || 10), o = [
["play", () => {
e.play();
}],
@@ -29043,11 +29043,11 @@ function Dce(e, t) {
} catch {}
});
}
-function Oce(e) {
+function Dce(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 kce(e, t) {
+function Oce(e, t) {
vt(`/api/assets/${t}/subtitles`).then((t) => {
e && !e.isDisposed() && (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {
e.addRemoteTextTrack({
@@ -29062,7 +29062,7 @@ function kce(e, t) {
}
//#endregion
//#region src/player/dispose.ts
-function pE(e) {
+function mE(e) {
if (!e || e.isDisposed()) return;
let t = e.el()?.querySelector("video");
try {
@@ -29080,23 +29080,23 @@ function pE(e) {
}
//#endregion
//#region src/player/stream.ts
-function mE() {
+function hE() {
return globalThis.crypto?.randomUUID?.() || `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`;
}
-function hE(e, t) {
+function gE(e, t) {
return {
src: `/stream?id=${e.id}&session=${encodeURIComponent(t)}`,
type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"
};
}
-function Ace(e) {
+function kce(e) {
return e.location === "online" && e.follow_item_id ? {
src: `/follow-stream?id=${e.follow_item_id}`,
type: "video/mp4"
} : null;
}
-async function gE(e, t) {
- let n = Ace(e);
+async function _E(e, t) {
+ let n = kce(e);
if (n) return n;
try {
let n = await vt(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(t)}`);
@@ -29105,9 +29105,9 @@ async function gE(e, t) {
type: n.mime_type || "application/vnd.apple.mpegurl"
};
} catch {}
- return hE(e, t);
+ return gE(e, t);
}
-function _E(e) {
+function vE(e) {
e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {
method: "POST",
credentials: "same-origin",
@@ -29116,21 +29116,21 @@ function _E(e) {
document.documentElement.dataset.peachStreamCancel = JSON.stringify(e);
}).catch(() => {});
}
-var vE = "";
-function yE() {
- return vE;
-}
+var yE = "";
function bE() {
- return vE ||= mE(), vE;
+ return yE;
}
-var jce = (e) => hE(e, bE()), Mce = (e) => gE(e, bE());
function xE() {
- let e = vE;
- e && (vE = "", _E(e));
+ return yE ||= hE(), yE;
+}
+var Ace = (e) => gE(e, xE()), jce = (e) => _E(e, xE());
+function SE() {
+ let e = yE;
+ e && (yE = "", vE(e));
}
//#endregion
//#region src/player/telemetry.ts
-function SE(e, t, n = {}) {
+function CE(e, t, n = {}) {
if (!t) return;
let r = 0, i = 0, a = 0, o = null;
t.addEventListener("seeking", () => {
@@ -29178,7 +29178,7 @@ function SE(e, t, n = {}) {
u(), l(!1);
}, { once: !0 }), c();
}
-function Nce(e, t) {
+function Mce(e, t) {
let n = 0, r = 0, i = !1, a = null, o = (n) => {
let i = Bt(e.duration) || Bt(t.duration);
(r || n) && (vt("/api/follow/activity", {
@@ -29214,7 +29214,7 @@ function Nce(e, t) {
}
//#endregion
//#region src/player/videojs.ts
-var CE = "/vendor/videojs/8.24.1/", Pce = `${CE}video-js.min.css`, wE = (e) => new Promise((t, n) => {
+var wE = "/vendor/videojs/8.24.1/", Nce = `${wE}video-js.min.css`, TE = (e) => new Promise((t, n) => {
let r = document.head.querySelector(`script[src="${e}"]`);
if (r?.dataset.loaded) {
t();
@@ -29226,7 +29226,7 @@ var CE = "/vendor/videojs/8.24.1/", Pce = `${CE}video-js.min.css`, wE = (e) => n
}, { once: !0 }), i.addEventListener("error", () => {
i.remove(), n(/* @__PURE__ */ Error(`script unavailable: ${e}`));
}, { once: !0 }), r || (i.src = e, document.head.appendChild(i));
-}), Fce = (e) => new Promise((t) => {
+}), Pce = (e) => new Promise((t) => {
let n = document.head.querySelector(`link[rel="stylesheet"][href="${e}"]`);
if (n?.sheet) {
t();
@@ -29236,20 +29236,20 @@ var CE = "/vendor/videojs/8.24.1/", Pce = `${CE}video-js.min.css`, wE = (e) => n
r.addEventListener("load", () => t(), { once: !0 }), r.addEventListener("error", () => {
r.remove(), t();
}, { once: !0 }), n || (r.rel = "stylesheet", r.href = e, document.head.insertBefore(r, document.head.querySelector("link[rel=\"stylesheet\"]")));
-}), TE = () => globalThis.videojs, EE = null;
-function DE() {
- let e = TE();
- return e ? Promise.resolve(e) : (EE ??= Promise.all([Fce(Pce), wE(`${CE}video.min.js`).then(() => wE(`${CE}lang/zh-CN.js`))]).then(() => {
- let e = TE();
+}), EE = () => globalThis.videojs, DE = null;
+function OE() {
+ let e = EE();
+ return e ? Promise.resolve(e) : (DE ??= Promise.all([Pce(Nce), TE(`${wE}video.min.js`).then(() => TE(`${wE}lang/zh-CN.js`))]).then(() => {
+ let e = EE();
if (!e) throw Error("videojs unavailable");
return e;
}).catch((e) => {
- throw EE = null, e;
- }), EE);
+ throw DE = null, e;
+ }), DE);
}
//#endregion
//#region src/player/immerse-player.ts
-var Ice = {
+var Fce = {
controls: !1,
preload: "auto",
posterImage: !1,
@@ -29261,37 +29261,37 @@ var Ice = {
errorDisplay: !1,
textTrackSettings: !1
};
-function Lce(e, t) {
+function Ice(e, t) {
let { item: n, session: r } = t, i = null, a = !1;
- return Promise.all([gE(n, r), DE().catch(() => null)]).then(([o, s]) => {
+ return Promise.all([_E(n, r), OE().catch(() => null)]).then(([o, s]) => {
if (a) return;
- let c = hE(n, r), l = String(o.type || "").includes("mpegurl");
+ let c = gE(n, r), l = String(o.type || "").includes("mpegurl");
if (!s) e.src = (l ? c : o).src;
else {
- let t = s(e, Ice);
+ let t = s(e, Fce);
i = t, l && t.one("error", () => {
a || t.src(c);
}), t.src(o);
}
- SE(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
+ CE(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
}), () => {
- a || (a = !0, _E(r), i ? pE(i) : (e.pause(), e.removeAttribute("src"), e.load()));
+ a || (a = !0, vE(r), i ? mE(i) : (e.pause(), e.removeAttribute("src"), e.load()));
};
}
//#endregion
//#region src/player/detail-player.ts
-var OE = /* @__PURE__ */ new WeakMap(), kE = null, AE = null, jE = null;
-function ME() {
- kE &&= (clearInterval(kE), null), AE &&= (clearInterval(AE), null), jE &&= (clearTimeout(jE), null);
+var kE = /* @__PURE__ */ new WeakMap(), AE = null, jE = null, ME = null;
+function NE() {
+ AE &&= (clearInterval(AE), null), jE &&= (clearInterval(jE), null), ME &&= (clearTimeout(ME), null);
}
-async function Rce(e, t, n, r = {}) {
- let i = JT();
+async function Lce(e, t, n, r = {}) {
+ let i = YT();
if (i && !i.isDisposed()) return i;
- let a = HT(), o = r.resume ?? null;
+ let a = UT(), o = r.resume ?? null;
o?.autoplay && (n = !0);
- let s = () => r.source ? Promise.resolve(r.source) : Mce(e), c;
+ let s = () => r.source ? Promise.resolve(r.source) : jce(e), c;
try {
- c = await DE();
+ c = await OE();
} catch {
return t.controls = !0, s().then((e) => {
t.src = e.src, n && t.play().catch(() => {});
@@ -29315,7 +29315,7 @@ async function Rce(e, t, n, r = {}) {
} }
}
});
- YT(l), l.peachItem = e, gce(l), l.on("loadedmetadata", () => {
+ XT(l), l.peachItem = e, hce(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}`);
});
@@ -29323,7 +29323,7 @@ async function Rce(e, t, n, r = {}) {
speed: [],
activity: [],
buffer: []
- }, f = Number(r.size ?? e.size) || 0, p = vce($T(f, e.duration)), m = 0, h = !1, g = () => JT() === l && !l.isDisposed(), _ = () => {
+ }, f = Number(r.size ?? e.size) || 0, p = _ce(eE(f, e.duration)), m = 0, h = !1, g = () => YT() === 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(() => {
@@ -29334,15 +29334,15 @@ async function Rce(e, t, n, r = {}) {
ready: !1,
updateStats: () => {}
};
- OE.set(l, y), y.updateStats = () => {
+ kE.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 = yE(), h = s ? iE(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 = bE(), h = s ? aE(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 = oE(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 = sE(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 = ZT(t);
- tE(d.speed, x), tE(d.activity, C), tE(d.buffer, w);
+ let w = QT(t);
+ nE(d.speed, x), nE(d.activity, C), nE(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 ? [
"网络活动",
`${_ ? Ut(_) : "—"} · ${h.length} 请求`,
@@ -29360,17 +29360,17 @@ async function Rce(e, t, n, r = {}) {
[
"连接速度",
D,
- rE(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
+ iE(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
],
[
k[0],
k[1],
- rE(d.activity, "activity", Math.max(1, ...d.activity), k[2])
+ iE(d.activity, "activity", Math.max(1, ...d.activity), k[2])
],
[
"缓冲健康",
`${w.toFixed(1)} 秒`,
- rE(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
+ iE(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
],
["播放时间", `${Ht(t.currentTime)} / ${Ht(u || l.duration())}`],
["日期", (/* @__PURE__ */ new Date()).toLocaleString()]
@@ -29386,15 +29386,15 @@ async function Rce(e, t, n, r = {}) {
if (!n || l.isDisposed()) return;
let r = v();
r || p.sample(t);
- let i = oE(l, e.id, yE(), r ? null : p), a = r ? sE(i) : bce(i, ZT(t));
+ let i = sE(l, e.id, bE(), r ? null : p), a = r ? cE(i) : yce(i, QT(t));
n.innerHTML = `${I("gauge")}<span class="sr-only">加载速度</span><span>${L(a)}</span>`;
}, C = () => {
let e = y.chrome?.netBadge;
- e && e.isConnected && (e.hidden = !1, S(), AE && clearInterval(AE), AE = setInterval(S, 500));
+ e && e.isConnected && (e.hidden = !1, S(), jE && clearInterval(jE), jE = setInterval(S, 500));
}, w = () => {
let e = y.chrome?.netBadge;
- e && (jE && clearTimeout(jE), jE = setTimeout(() => {
- e.hidden = !0, AE &&= (clearInterval(AE), null);
+ e && (ME && clearTimeout(ME), ME = setTimeout(() => {
+ e.hidden = !0, jE &&= (clearInterval(jE), null);
}, 1400));
};
return l.on([
@@ -29405,7 +29405,7 @@ async function Rce(e, t, n, r = {}) {
], C), l.on(["canplay", "playing"], () => {
S(), w();
}), l.on("error", () => {
- b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(jce(e)), n && l.play()?.catch(() => {})) : r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
+ b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(Ace(e)), n && l.play()?.catch(() => {})) : r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
t[String(e.location)] !== !1 || l.isDisposed() || l.error({
code: 2,
message: `脱盘模式 · ${a.offlineReason(String(e.location))}`
@@ -29413,27 +29413,27 @@ async function Rce(e, t, n, r = {}) {
});
}), l.ready(() => {
_();
- let n = Cce(l, t, e.height, r.qualities ?? null);
+ let n = Sce(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 = $T(r, e.duration));
- }).catch(() => {}), Ece(l, e, { thumbnail: !r.source }), Dce(l, e), Oce(l), r.source || kce(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
+ r > 0 && !f && (f = r, p.bitrate = eE(r, e.duration));
+ }).catch(() => {}), Tce(l, e, { thumbnail: !r.source }), Ece(l, e), Dce(l), r.source || Oce(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
}), s().then((e) => {
g() && (b = String(e.type || "").includes("mpegurl"), l.src(e), _(), setTimeout(_, 0), setTimeout(_, 250), o && o.time > 0 && l.one("loadedmetadata", () => {
l.isDisposed() || l.currentTime(o.time);
}), n && l.play()?.catch(() => {}));
}).catch(() => {}), l;
}
-var zce = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
-function NE(e, t = null) {
- if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", zce), e.querySelector(":scope > #playerStatsBtn")) return;
+var Rce = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
+function PE(e, t = null) {
+ if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", Rce), e.querySelector(":scope > #playerStatsBtn")) return;
let n = document.createElement("template");
- n.innerHTML = yce(), e.insertBefore(n.content, t);
+ n.innerHTML = vce(), e.insertBefore(n.content, t);
}
-function PE(e, t) {
- let n = OE.get(e);
+function FE(e, t) {
+ let n = kE.get(e);
if (!n || e.isDisposed()) return () => {};
let r = (e) => t.querySelector(`:scope > #${e}`), i = {
statsButton: r("playerStatsBtn"),
@@ -29445,25 +29445,25 @@ function PE(e, t) {
if (a && o) {
a.hidden = !n.ready;
let e = () => {
- o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), kE &&= (clearInterval(kE), null));
+ o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), AE &&= (clearInterval(AE), null));
};
a.onclick = () => {
- o.hidden ? (document.dispatchEvent(new CustomEvent(nE, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), kE && clearInterval(kE), kE = setInterval(n.updateStats, 1e3)) : e();
+ o.hidden ? (document.dispatchEvent(new CustomEvent(rE, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), AE && clearInterval(AE), AE = setInterval(n.updateStats, 1e3)) : e();
};
let t = (t) => {
t.detail !== "stats" && e();
};
- document.addEventListener(nE, t), s = () => document.removeEventListener(nE, t);
+ document.addEventListener(rE, t), s = () => document.removeEventListener(rE, t);
}
- let c = e.el().querySelector("video"), l = c ? Sce(c) : () => {}, u = !0, d = () => {
- u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, ME()));
+ let c = e.el().querySelector("video"), l = c ? xce(c) : () => {}, u = !0, d = () => {
+ u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, NE()));
};
return e.one("dispose", d), d;
}
-function FE(e, t) {
- if (t.kind === "immerse") return Lce(e, t);
- let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = HT(), c = t.chrome === !1 ? null : e.parentElement;
- c && NE(c, e);
+function IE(e, t) {
+ if (t.kind === "immerse") return Ice(e, t);
+ let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = UT(), c = t.chrome === !1 ? null : e.parentElement;
+ c && PE(c, e);
let l = { resume: t.resume ?? null };
if (n === "follow") l = {
...l,
@@ -29483,46 +29483,46 @@ function FE(e, t) {
method: "POST",
body: JSON.stringify({ id: r.id })
}).catch(() => {});
- }, { once: !0 }), SE(r, e, {
+ }, { once: !0 }), CE(r, e, {
watched: "#watched",
mark: "#mark",
ratio: "#ratioTxt"
});
}
let u = null, d = !1, f = () => {}, p = () => {
- f(), u && !a?.(u) && (JT() === u && (YT(null), ME()), pE(u));
+ f(), u && !a?.(u) && (YT() === u && (XT(null), NE()), mE(u));
};
- return Rce(r, e, t.autoplay ?? s.settings().detailAutoplay, l).then((t) => {
- u = t, d ? p() : t ? (c && (f = PE(t, c)), n === "follow" && Nce(r, e), o?.(t)) : o?.(null);
+ return Lce(r, e, t.autoplay ?? s.settings().detailAutoplay, l).then((t) => {
+ u = t, d ? p() : t ? (c && (f = FE(t, c)), n === "follow" && Mce(r, e), o?.(t)) : o?.(null);
}), () => {
d = !0, p();
};
}
//#endregion
//#region src/player/playback.ts
-function IE(e) {
+function LE(e) {
e && (e.paused ? e.play()?.catch(() => {}) : e.pause());
}
-function LE(e, t) {
+function RE(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);
}
-function RE(e, t) {
+function zE(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return t && n.set("exclude_vertical", "1"), n.toString();
}
-var Bce = (e, t) => [
+var zce = (e, t) => [
"catalog-grid",
"catalog",
e,
t
-], Vce = (e, t) => [
+], Bce = (e, t) => [
"catalog-grid",
"entity",
e,
t
];
-async function Hce(e, t, n, r, i) {
+async function Vce(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 z(`/api/items?${a}`, i), s = {
@@ -29532,22 +29532,22 @@ async function Hce(e, t, n, r, i) {
};
return !t && !s.items.length && !r && (s.libraryEmpty = (await z("/api/items?limit=1&thumb=0", i)).total === 0), s;
}
-var Uce = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Wce = (e, t) => {
+var Hce = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Uce = (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 zE(e) {
- let t = RE(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
+function Wce(e) {
+ let t = zE(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
return {
- queryKey: Bce(t, e.revision || 0),
- queryFn: ({ pageParam: e, signal: i }) => Hce(t, e, n, r, i),
+ queryKey: zce(t, e.revision || 0),
+ queryFn: ({ pageParam: e, signal: i }) => Vce(t, e, n, r, i),
initialPageParam: 0,
- getNextPageParam: Uce(n)
+ getNextPageParam: Hce(n)
};
}
function Gce(e) {
return {
- queryKey: Vce(e.entityKey || "", e.revision || 0),
+ queryKey: Bce(e.entityKey || "", e.revision || 0),
queryFn: async ({ pageParam: t, signal: n }) => {
if (!e.fetchPage) return {
items: [],
@@ -29562,12 +29562,12 @@ function Gce(e) {
};
},
initialPageParam: 0,
- getNextPageParam: Wce
+ getNextPageParam: Uce
};
}
async function Kce(e, t) {
if (e.mode !== "catalog") return;
- let n = zE(e);
+ let n = Wce(e);
await V.fetchInfiniteQuery({
...n,
queryFn: ({ pageParam: e }) => n.queryFn({
@@ -29941,8 +29941,8 @@ function FD() {
(0, mt.flushSync)(kle);
}
function Ale() {
- let e = AD ? aE(AD.id) : 0;
- return e ? `${kD} · ${sE(e)}` : kD;
+ let e = AD ? oE(AD.id) : 0;
+ return e ? `${kD} · ${cE(e)}` : kD;
}
function ID(e, t = null) {
clearInterval(jD), jD = 0, e === null ? (_D = {
@@ -29963,11 +29963,11 @@ function jle(e) {
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), gD.track.append(t);
- let r = mE(), i = () => {}, a = {
+ let r = hE(), i = () => {}, a = {
el: t,
video: n,
session: r,
- release: () => _E(r),
+ release: () => vE(r),
disposed: !1,
gone: new Promise((e) => {
i = e;
@@ -29978,7 +29978,7 @@ function jle(e) {
}
function Mle(e, t) {
return new Promise((n) => {
- e.release = FE(e.video, {
+ e.release = IE(e.video, {
kind: "immerse",
item: t,
session: e.session,
@@ -30128,15 +30128,15 @@ function Gle(e) {
let t = DD?.video;
if (!t) return;
let n = e < window.innerWidth / 2 ? -1 : 1, r = Date.now();
- HD && HD.side === n && r - HD.at <= 280 ? (WD(), LE(t, PD().seekSeconds() * n)) : (VD && (clearTimeout(VD), VD = 0, IE(t)), HD = {
+ HD && HD.side === n && r - HD.at <= 280 ? (WD(), RE(t, PD().seekSeconds() * n)) : (VD && (clearTimeout(VD), VD = 0, LE(t)), HD = {
side: n,
at: r
}, VD = window.setTimeout(() => {
- VD = 0, HD = null, _D.open && IE(DD?.video);
+ VD = 0, HD = null, _D.open && LE(DD?.video);
}, 280));
}
function Kle() {
- Date.now() < Ule || IE(DD?.video);
+ Date.now() < Ule || LE(DD?.video);
}
var GD = (e) => gD?.bar.toggleAttribute("data-scrubbing", e);
function KD(e) {
@@ -30418,7 +30418,7 @@ function uue(e) {
return hD = e, t && (document.addEventListener("keydown", lue), addEventListener("resize", () => {
_D.open && Fle();
}), addEventListener("pagehide", () => {
- OD.forEach((e) => _E(e.session));
+ OD.forEach((e) => vE(e.session));
})), cue;
}
function due() {
@@ -34207,7 +34207,7 @@ function Mk(e, t) {
return n;
}
function Nk(e, t, n) {
- let { ref: r, ...i } = Mk(n, e.slot) || {}, a = hv((0, b.useMemo)(() => uv(t, r), [t, r])), o = W(i, e);
+ let { ref: r, ...i } = Mk(n, e.slot) || {}, a = gv((0, b.useMemo)(() => dv(t, r), [t, r])), o = W(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,
@@ -34229,7 +34229,7 @@ function Pk(e = !0) {
let [t, n] = (0, b.useState)(e), r = (0, b.useRef)(!1), i = (0, b.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return O_(() => {
+ return k_(() => {
r.current || n(!1);
}, []), [i, t];
}
@@ -34239,8 +34239,8 @@ function Fk(e) {
return n;
}
function Epe(e, t, n) {
- let { render: r, ...i } = t, a = (0, b.useRef)(null), o = (0, b.useMemo)(() => uv(n, a), [n, a]);
- O_(() => {}, [e, r]);
+ let { render: r, ...i } = t, a = (0, b.useRef)(null), o = (0, b.useMemo)(() => dv(n, a), [n, a]);
+ k_(() => {}, [e, r]);
let s = {
...i,
ref: o
@@ -34260,7 +34260,7 @@ var Dpe = {}, Ik = new Proxy({}, { get(e, t) {
}
};
function kpe(e, t, n) {
- return f_({
+ return p_({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
children(t) {
@@ -34299,7 +34299,7 @@ function jpe(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Label.mjs
-var Vk = /*#__PURE__*/ (0, b.createContext)({}), Mpe = /*#__PURE__*/ bv(function(e, t) {
+var Vk = /*#__PURE__*/ (0, b.createContext)({}), Mpe = /*#__PURE__*/ xv(function(e, t) {
[e, t] = Nk(e, t, Vk);
let { elementType: n = "label", ...r } = e, i = Ik[n];
return /*#__PURE__*/ b.createElement(i, {
@@ -34307,11 +34307,11 @@ var Vk = /*#__PURE__*/ (0, b.createContext)({}), Mpe = /*#__PURE__*/ bv(function
...r,
ref: t
});
-}), Npe = /*#__PURE__*/ (0, b.createContext)(null), Hk = /*#__PURE__*/ (0, b.createContext)({}), Ppe = /*#__PURE__*/ bv(function(e, t) {
+}), Npe = /*#__PURE__*/ (0, b.createContext)(null), Hk = /*#__PURE__*/ (0, b.createContext)({}), Ppe = /*#__PURE__*/ xv(function(e, t) {
[e, t] = Nk(e, t, Hk);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = wae(e, t);
+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Cae(e, t);
i = Ipe(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = Dx(e), { hoverProps: l, isHovered: u } = jx({
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = Ox(e), { hoverProps: l, isHovered: u } = Mx({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -34325,19 +34325,19 @@ var Vk = /*#__PURE__*/ (0, b.createContext)({}), Mpe = /*#__PURE__*/ bv(function
...e,
values: d,
defaultClassName: "react-aria-Button"
- }), p = cv(i.id), m = cv(), h = i["aria-labelledby"];
+ }), p = lv(i.id), m = lv(), h = i["aria-labelledby"];
r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));
let g = (0, b.useRef)(r);
(0, b.useEffect)(() => {
let e = { "aria-labelledby": h || p };
- (!g.current && s && r || g.current && s && !r) && Iy(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && Ly(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let _ = Xv(e, { global: !0 });
+ let _ = Zv(e, { global: !0 });
return delete _.onClick, /*#__PURE__*/ b.createElement(Ik.button, {
...W(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
@@ -34371,7 +34371,7 @@ var Lpe = /*#__PURE__*/ (0, b.createContext)({}), Uk = /*#__PURE__*/ (0, b.forwa
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), Wk = /*#__PURE__*/ (0, b.createContext)({}), Rpe = /*#__PURE__*/ bv(function(e, t) {
+}), Wk = /*#__PURE__*/ (0, b.createContext)({}), Rpe = /*#__PURE__*/ xv(function(e, t) {
[e, t] = Nk(e, t, Wk);
let { elementType: n = "span", ...r } = e, i = Ik[n];
return /*#__PURE__*/ b.createElement(i, {
@@ -34381,13 +34381,13 @@ var Lpe = /*#__PURE__*/ (0, b.createContext)({}), Uk = /*#__PURE__*/ (0, b.forwa
});
}), Gk = /*#__PURE__*/ (0, b.createContext)(null), Kk = /*#__PURE__*/ (0, b.createContext)(null), qk = /*#__PURE__*/ (0, b.createContext)(null), zpe = /*#__PURE__*/ (0, b.createContext)(null), Bpe = /*#__PURE__*/ (0, b.createContext)(null), Vpe = /*#__PURE__*/ (0, b.createContext)(null);
function Hpe(e, t) {
- let { validationBehavior: n } = Mk(Kk) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, b.useContext)(Bpe), a = hv((0, b.useMemo)(() => uv(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ let { validationBehavior: n } = Mk(Kk) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, b.useContext)(Bpe), a = gv((0, b.useMemo)(() => dv(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
...Fk(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? qae(o, i, a) : rb(o, cb(e), a), a];
+ return [i ? Kae(o, i, a) : ib(o, lb(e), a), a];
}
var Upe = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
@@ -34404,7 +34404,7 @@ var Upe = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
ref: t
}));
}), Wpe = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, b.useContext)(Vpe), { isFocused: p, isFocusVisible: m, focusProps: h } = Dx(), g = a || o, { hoverProps: _, isHovered: v } = jx({
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, b.useContext)(Vpe), { isFocused: p, isFocusVisible: m, focusProps: h } = Ox(), g = a || o, { hoverProps: _, isHovered: v } = Mx({
...e,
isDisabled: g
}), y = jk({
@@ -34422,7 +34422,7 @@ var Upe = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), x = Xv(e, { global: !0 });
+ }), x = Zv(e, { global: !0 });
return delete x.id, delete x.onClick, /*#__PURE__*/ b.createElement(Ik.label, {
...W(x, n, _, y),
ref: t,
@@ -34437,7 +34437,7 @@ var Upe = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": f || void 0
- }, /*#__PURE__*/ b.createElement(fb, { elementType: "span" }, /*#__PURE__*/ b.createElement("input", {
+ }, /*#__PURE__*/ b.createElement(pb, { elementType: "span" }, /*#__PURE__*/ b.createElement("input", {
...W(r, h),
ref: l
})), y.children);
@@ -34445,12 +34445,12 @@ var Upe = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
[e, t] = Nk(e, t, Gpe);
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 } = jx({
+ let { hoverProps: l, isHovered: u } = Mx({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = Dx({ within: !0 }), m = jk({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = Ox({ within: !0 }), m = jk({
...e,
values: {
isHovered: u,
@@ -34477,12 +34477,12 @@ var Upe = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
}), qpe = /*#__PURE__*/ (0, b.createContext)({}), Jpe = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, Ype = /*#__PURE__*/ bv(function(e, t) {
+}, Ype = /*#__PURE__*/ xv(function(e, t) {
[e, t] = Nk(e, t, qpe);
- let { hoverProps: n, isHovered: r } = jx({
+ let { hoverProps: n, isHovered: r } = Mx({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = Dx({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = Ox({
isTextInput: !0,
autoFocus: e.autoFocus
}), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = jk({
@@ -34894,7 +34894,7 @@ function Zk(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var Qk = /*#__PURE__*/ (0, b.createContext)({ isSelected: !1 }), $k = /*#__PURE__*/ (0, b.createContext)({}), Fme = /*#__PURE__*/ Tv(class extends s_ {
+var Qk = /*#__PURE__*/ (0, b.createContext)({ isSelected: !1 }), $k = /*#__PURE__*/ (0, b.createContext)({}), Fme = /*#__PURE__*/ Ev(class extends s_ {
static {
this.type = "separator";
}
@@ -34910,11 +34910,11 @@ var Qk = /*#__PURE__*/ (0, b.createContext)({ isSelected: !1 }), $k = /*#__PURE_
[e, t] = Nk(e, t, $k);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = Ik[c], { separatorProps: u } = Joe({
+ let l = Ik[c], { separatorProps: u } = qoe({
...s,
elementType: n,
orientation: r
- }), d = Xv(e, { global: !0 });
+ }), d = Zv(e, { global: !0 });
return /*#__PURE__*/ b.createElement(l, {
render: e.render,
...W(d, u),
@@ -34989,7 +34989,7 @@ function Lme(e, t) {
return !0;
}
function nA(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, b.useRef)(!1), [, s] = (0, b.useState)(!1), c = (0, b.useRef)(null), l = (0, b.useRef)(null), [, u] = (0, b.useState)(null), [d, f] = sb((0, b.useMemo)(() => Rme(e.selectedKeys), [e.selectedKeys]), (0, b.useMemo)(() => Rme(e.defaultSelectedKeys, new tA()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, b.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, b.useState)(i);
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, b.useRef)(!1), [, s] = (0, b.useState)(!1), c = (0, b.useRef)(null), l = (0, b.useRef)(null), [, u] = (0, b.useState)(null), [d, f] = cb((0, b.useMemo)(() => Rme(e.selectedKeys), [e.selectedKeys]), (0, b.useMemo)(() => Rme(e.defaultSelectedKeys, new tA()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, b.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, b.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, b.useRef)(i);
return (0, b.useEffect)(() => {
@@ -35083,7 +35083,7 @@ var rA = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && hx(this.collection, n, e) < 0) && (e = n);
+ (!e || n && gx(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -35091,7 +35091,7 @@ var rA = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && hx(this.collection, n, e) > 0) && (e = n);
+ (!e || n && gx(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -35121,7 +35121,7 @@ var rA = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? hx(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? gx(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
}
getKeyRangeInternal(e, t) {
if (this.layoutDelegate?.getKeyRange) return this.layoutDelegate.getKeyRange(e, t);
@@ -35171,7 +35171,7 @@ var rA = class e {
for (; r != null;) {
if (this.canSelectItemIn(r, e)) {
let i = e.getItem(r);
- i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(fx(dx(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(px(fx(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -35434,14 +35434,14 @@ function Ume(e, t) {
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
function sA(e, t) {
- let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, b.useRef)(null), s = Pv((e) => {
+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, b.useRef)(null), s = Fv((e) => {
for (let t of e) t.isIntersecting && r && r();
});
- O_(() => {
+ k_(() => {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
- root: zy(t?.current),
+ root: By(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -35464,7 +35464,7 @@ var cA = /*#__PURE__*/ (0, b.createContext)(null), lA = /*#__PURE__*/ (0, b.crea
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ b.createElement(Sv, { content: /*#__PURE__*/ b.createElement(kv, e) }, (n) => /*#__PURE__*/ b.createElement(Gme, {
+ }) : /*#__PURE__*/ b.createElement(Cv, { content: /*#__PURE__*/ b.createElement(Av, e) }, (n) => /*#__PURE__*/ b.createElement(Gme, {
props: e,
listBoxRef: t,
collection: n
@@ -35489,10 +35489,10 @@ function Gme({ props: e, listBoxRef: t, collection: n }) {
}
function Kme({ state: e, props: t, listBoxRef: n }) {
[t, n] = Nk(t, n, Lk);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Hme(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Hv(), { disabledBehavior: p, disabledKeys: m } = l, h = bx({
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Hme(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Uv(), { disabledBehavior: p, disabledKeys: m } = l, h = xx({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, b.useContext)(Bk), x = (0, b.useMemo)(() => t.keyboardDelegate || new Sb({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, b.useContext)(Bk), x = (0, b.useMemo)(() => t.keyboardDelegate || new Cb({
collection: c,
collator: h,
ref: n,
@@ -35513,7 +35513,7 @@ function Kme({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: S } = boe({
+ ]), { listBoxProps: S } = yoe({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: x,
@@ -35545,7 +35545,7 @@ function Kme({ state: e, props: t, listBoxRef: n }) {
dropTargetDelegate: e
}, w, n), E = w.isDropTarget({ type: "root" });
}
- let { focusProps: k, isFocused: A, isFocusVisible: j } = Dx(), M = s.collection.size === 0, N = {
+ let { focusProps: k, isFocused: A, isFocusVisible: j } = Ox(), M = s.collection.size === 0, N = {
isDropTarget: E,
isEmpty: M,
isFocused: A,
@@ -35563,8 +35563,8 @@ function Kme({ state: e, props: t, listBoxRef: n }) {
role: "option",
style: { display: "contents" }
}, t.renderEmptyState(N)));
- let P = Xv(t, { global: !0 });
- return /*#__PURE__*/ b.createElement(yy, null, /*#__PURE__*/ b.createElement(Ik.div, {
+ let P = Zv(t, { global: !0 });
+ return /*#__PURE__*/ b.createElement(by, null, /*#__PURE__*/ b.createElement(Ik.div, {
...W(P, ee, S, k, T?.collectionProps),
ref: n,
slot: t.slot || void 0,
@@ -35597,7 +35597,7 @@ function Kme({ state: e, props: t, listBoxRef: n }) {
}))), te, D));
}
function qme(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, b.useContext)(lA), { dragAndDropHooks: a, dropState: o } = (0, b.useContext)(Jk), { CollectionBranch: s } = (0, b.useContext)(Bk), [c, l] = Pk(), { headingProps: u, groupProps: d } = xoe({
+ let i = (0, b.useContext)(lA), { dragAndDropHooks: a, dropState: o } = (0, b.useContext)(Jk), { CollectionBranch: s } = (0, b.useContext)(Bk), [c, l] = Pk(), { headingProps: u, groupProps: d } = boe({
heading: l,
"aria-label": e["aria-label"] ?? void 0
}), f = jk({
@@ -35606,7 +35606,7 @@ function qme(e, t, n, r = "react-aria-ListBoxSection") {
children: void 0,
defaultClassName: r,
values: void 0
- }), p = Xv(e, { global: !0 });
+ }), p = Zv(e, { global: !0 });
return delete p.id, /*#__PURE__*/ b.createElement(Ik.section, {
...W(p, f, d),
ref: t
@@ -35619,16 +35619,16 @@ function qme(e, t, n, r = "react-aria-ListBoxSection") {
renderDropIndicator: Xk(a, o)
})));
}
-var Jme = /*#__PURE__*/ Tv(u_, function(e, t, n) {
- let r = hv(t), i = (0, b.useContext)(lA), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, b.useContext)(Jk), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Soe({
+var Jme = /*#__PURE__*/ Ev(u_, function(e, t, n) {
+ let r = gv(t), i = (0, b.useContext)(lA), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, b.useContext)(Jk), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = xoe({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = jx({
+ }, i, r), { hoverProps: p, isHovered: m } = Mx({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
onHoverEnd: n.props.onHoverEnd
- }), { keyboardProps: h } = mv(e), { focusProps: g } = fv(e), _ = null;
+ }), { keyboardProps: h } = hv(e), { focusProps: g } = pv(e), _ = null;
o && a && (_ = a.useDraggableItem({
key: n.key,
hasAction: f.hasAction
@@ -35657,7 +35657,7 @@ var Jme = /*#__PURE__*/ Tv(u_, function(e, t, n) {
(0, b.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let S = e.href ? Ik.a : Ik.div, C = Xv(e, { global: !0 });
+ let S = e.href ? Ik.a : Ik.div, C = Zv(e, { global: !0 });
return delete C.id, delete C.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ b.createElement(S, {
...W(C, x, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
@@ -35678,7 +35678,7 @@ var Jme = /*#__PURE__*/ Tv(u_, function(e, t, n) {
} }], [Qk, { isSelected: f.isSelected }]] }, x.children));
});
function Yme(e, t) {
- t = hv(t);
+ t = gv(t);
let { dragAndDropHooks: n, dropState: r } = (0, b.useContext)(Jk), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
return a ? null : /*#__PURE__*/ b.createElement(Zme, {
...e,
@@ -35702,7 +35702,7 @@ function Xme(e, t) {
}));
}
var Zme = /*#__PURE__*/ (0, b.forwardRef)(Xme);
-Tv(l_, function(e, t, n) {
+Ev(l_, function(e, t, n) {
let r = (0, b.useContext)(lA), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, b.useRef)(null);
sA((0, b.useMemo)(() => ({
onLoadMore: a,
@@ -35737,7 +35737,7 @@ Tv(l_, function(e, t, n) {
width: 1
}
})), i && l.children && /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(Ik.div, {
- ...W(Xv(e, { global: !0 }), { tabIndex: -1 }),
+ ...W(Zv(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
@@ -35749,7 +35749,7 @@ var Qme = /*#__PURE__*/ (0, b.createContext)({ placement: "bottom" });
//#endregion
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
function uA(e) {
- let [t, n] = sb(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, b.useState)(null);
+ let [t, n] = cb(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, b.useState)(null);
return {
isOpen: t,
setOpen: n,
@@ -35770,9 +35770,9 @@ function uA(e) {
//#region node_modules/react-aria/dist/private/utils/animation.mjs
function dA(e, t = !0) {
let [n, r] = (0, b.useState)(!0), i = n && t;
- return O_(() => {
+ return k_(() => {
if (i && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, i]), pA(e, i, (0, b.useCallback)(() => r(!1), [])), i;
+ }, [e, i]), $me(e, i, (0, b.useCallback)(() => r(!1), [])), i;
}
function fA(e, t) {
let [n, r] = (0, b.useState)(t ? "open" : "closed");
@@ -35784,12 +35784,12 @@ function fA(e, t) {
case "exiting": t && r("open");
}
let i = n === "exiting";
- return pA(e, i, (0, b.useCallback)(() => {
+ return $me(e, i, (0, b.useCallback)(() => {
r((e) => e === "exiting" ? "closed" : e);
}, [])), i;
}
-function pA(e, t, n) {
- O_(() => {
+function $me(e, t, n) {
+ k_(() => {
if (t && e.current) {
if (!("getAnimations" in e.current)) {
n();
@@ -35817,9 +35817,9 @@ function pA(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Popover.mjs
-var mA = /*#__PURE__*/ (0, b.createContext)(null), hA = /*#__PURE__*/ (0, b.createContext)(null), gA = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- [e, t] = Nk(e, t, mA);
- let n = (0, b.useContext)(EA), r = uA(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = fA(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Rie(), { direction: c } = Hv();
+var pA = /*#__PURE__*/ (0, b.createContext)(null), mA = /*#__PURE__*/ (0, b.createContext)(null), hA = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ [e, t] = Nk(e, t, pA);
+ let n = (0, b.useContext)(TA), r = uA(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = fA(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Lie(), { direction: c } = Uv();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -35830,7 +35830,7 @@ var mA = /*#__PURE__*/ (0, b.createContext)(null), hA = /*#__PURE__*/ (0, b.crea
defaultChildren: null
})), /*#__PURE__*/ b.createElement(b.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ b.createElement($me, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ b.createElement(ehe, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -35839,8 +35839,8 @@ var mA = /*#__PURE__*/ (0, b.createContext)(null), hA = /*#__PURE__*/ (0, b.crea
dir: c
});
});
-function $me({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = (0, b.useContext)(hA), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Hoe({
+function ehe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = (0, b.useContext)(mA), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Voe({
...i,
offset: i.offset ?? 8,
arrowRef: a,
@@ -35855,10 +35855,10 @@ function $me({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
isExiting: t
}
}), v = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [y, x] = (0, b.useState)(i.trigger === "PreviewTrigger");
- O_(() => {
+ k_(() => {
m.current && x(v && !m.current.querySelector("[role=dialog]"));
}, [m, v]), (0, b.useEffect)(() => {
- y && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || $_() !== "pointer") && m.current && !w_(m.current) && rv(m.current);
+ y && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || ev() !== "pointer") && m.current && !T_(m.current) && iv(m.current);
}, [
y,
m,
@@ -35871,7 +35871,7 @@ function $me({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}, [_.children, r]), [C, w] = (0, b.useState)(null), T = (0, b.useCallback)(() => {
i.triggerRef.current && w(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- O_(T, [T]), xS({
+ k_(T, [T]), SS({
ref: _.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: T
});
@@ -35881,7 +35881,7 @@ function $me({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
..._.style,
"--trigger-width": _.style?.["--trigger-width"] || C
}, D = /*#__PURE__*/ b.createElement(Ik.div, {
- ...W(Xv(i, { global: !0 }), l),
+ ...W(Zv(i, { global: !0 }), l),
..._,
id: y ? i.id : void 0,
role: y ? "dialog" : void 0,
@@ -35896,17 +35896,17 @@ function $me({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"data-placement": f,
"data-entering": g || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ b.createElement(rC, { onDismiss: e.close }), /*#__PURE__*/ b.createElement(Qme.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ b.createElement(iC, { onDismiss: e.close }), /*#__PURE__*/ b.createElement(Qme.Provider, { value: {
...d,
placement: f,
ref: a
- } }, S), /*#__PURE__*/ b.createElement(rC, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ b.createElement(Tx, {
+ } }, S), /*#__PURE__*/ b.createElement(iC, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ b.createElement(Ex, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, D) : /*#__PURE__*/ b.createElement(Tx, {
+ }, D) : /*#__PURE__*/ b.createElement(Ex, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
@@ -35921,14 +35921,14 @@ function $me({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}), /*#__PURE__*/ b.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ b.createElement(hA.Provider, { value: o }, D)));
+ }, /*#__PURE__*/ b.createElement(mA.Provider, { value: o }, D)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Keyboard.mjs
-var ehe = /*#__PURE__*/ (0, b.createContext)({});
+var the = /*#__PURE__*/ (0, b.createContext)({});
//#endregion
//#region node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
-function _A(e) {
+function gA(e) {
let t = uA(e), [n, r] = (0, b.useState)(null), [i, a] = (0, b.useState)([]), o = () => {
a([]), t.close();
}, s = (e, t) => {
@@ -35955,7 +35955,7 @@ function _A(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tree/TreeCollection.mjs
-var the = class {
+var nhe = 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) => {
@@ -35999,8 +35999,8 @@ var the = class {
};
//#endregion
//#region node_modules/react-stately/dist/private/tree/useTreeState.mjs
-function nhe(e) {
- let { onExpandedChange: t } = e, [n, r] = sb(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = nA(e), a = (0, b.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = aA(e, (0, b.useCallback)((e) => new the(e, { expandedKeys: n }), [n]), null);
+function rhe(e) {
+ let { onExpandedChange: t } = e, [n, r] = cb(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = nA(e), a = (0, b.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = aA(e, (0, b.useCallback)((e) => new nhe(e, { expandedKeys: n }), [n]), null);
return (0, b.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -36008,32 +36008,32 @@ function nhe(e) {
expandedKeys: n,
disabledKeys: a,
toggleKey: (e) => {
- r(rhe(n, e));
+ r(ihe(n, e));
},
setExpandedKeys: r,
selectionManager: new rA(o, i)
};
}
-function rhe(e, t) {
+function ihe(e, t) {
let n = new Set(e);
return n.has(t) ? n.delete(t) : n.add(t), n;
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Menu.mjs
-var vA = /*#__PURE__*/ (0, b.createContext)(null), yA = /*#__PURE__*/ (0, b.createContext)(null), bA = /*#__PURE__*/ (0, b.createContext)(null), xA = /*#__PURE__*/ (0, b.createContext)(null);
-function ihe(e) {
- let t = _A(e), n = (0, b.useRef)(null), { menuTriggerProps: r, menuProps: i } = ox({
+var _A = /*#__PURE__*/ (0, b.createContext)(null), vA = /*#__PURE__*/ (0, b.createContext)(null), yA = /*#__PURE__*/ (0, b.createContext)(null), bA = /*#__PURE__*/ (0, b.createContext)(null);
+function ahe(e) {
+ let t = gA(e), n = (0, b.useRef)(null), { menuTriggerProps: r, menuProps: i } = sx({
...e,
type: "menu"
}, t, n), a = (0, b.useRef)(null);
- return Rie() ? null : /*#__PURE__*/ b.createElement(Ak, { values: [
- [vA, {
+ return Lie() ? null : /*#__PURE__*/ b.createElement(Ak, { values: [
+ [_A, {
...i,
ref: a
}],
- [EA, t],
- [bA, t],
- [mA, {
+ [TA, t],
+ [yA, t],
+ [pA, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@ -36041,13 +36041,13 @@ function ihe(e) {
"aria-labelledby": i["aria-labelledby"],
offset: e.trigger === "contextMenu" ? 0 : void 0
}]
- ] }, /*#__PURE__*/ b.createElement(soe, {
+ ] }, /*#__PURE__*/ b.createElement(ooe, {
...r,
ref: n,
isPressed: t.isOpen
}, e.children));
}
-var ahe = /*#__PURE__*/ (0, b.createContext)(null);
+var ohe = /*#__PURE__*/ (0, b.createContext)(null);
(class extends s_ {
static {
this.type = "submenutrigger";
@@ -36061,20 +36061,20 @@ var ahe = /*#__PURE__*/ (0, b.createContext)(null);
return null;
}
});
-var ohe = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- return [e, t] = Nk(e, t, vA), /*#__PURE__*/ b.createElement(Sv, { content: /*#__PURE__*/ b.createElement(kv, e) }, (n) => /*#__PURE__*/ b.createElement(she, {
+var she = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ return [e, t] = Nk(e, t, _A), /*#__PURE__*/ b.createElement(Cv, { content: /*#__PURE__*/ b.createElement(Av, e) }, (n) => /*#__PURE__*/ b.createElement(che, {
props: e,
collection: n,
menuRef: t
}));
});
-function she({ props: e, collection: t, menuRef: n }) {
+function che({ props: e, collection: t, menuRef: n }) {
[e, n] = Nk(e, n, Lk);
- let { filter: r, ...i } = e, a = (0, b.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = nhe({
+ let { filter: r, ...i } = e, a = (0, b.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = rhe({
...e,
collection: a,
children: void 0
- }), s = (0, b.useContext)(bA), { isVirtualized: c, CollectionRoot: l } = (0, b.useContext)(Bk), { menuProps: u } = Coe({
+ }), s = (0, b.useContext)(yA), { isVirtualized: c, CollectionRoot: l } = (0, b.useContext)(Bk), { menuProps: u } = Soe({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
@@ -36088,36 +36088,36 @@ function she({ props: e, collection: t, menuRef: n }) {
role: "menuitem",
style: { display: "contents" }
}, e.renderEmptyState()));
- let p = Xv(e, { global: !0 });
- return /*#__PURE__*/ b.createElement(yy, null, /*#__PURE__*/ b.createElement(Ik.div, {
+ let p = Zv(e, { global: !0 });
+ return /*#__PURE__*/ b.createElement(by, null, /*#__PURE__*/ b.createElement(Ik.div, {
...W(p, d, u),
ref: n,
slot: e.slot || void 0,
"data-empty": o.collection.size === 0 || void 0,
onScroll: e.onScroll
}, /*#__PURE__*/ b.createElement(Ak, { values: [
- [yA, o],
+ [vA, o],
[$k, { elementType: "div" }],
[Ope, {
name: "MenuSection",
- render: SA
+ render: xA
}],
- [ahe, {
+ [ohe, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [wA, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [CA, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
[Lk, null],
[Rk, null],
- [xA, o.selectionManager],
- [bA, s ?? _A({})]
+ [bA, o.selectionManager],
+ [yA, s ?? gA({})]
] }, /*#__PURE__*/ b.createElement(Zk, null, /*#__PURE__*/ b.createElement(l, {
collection: o.collection,
persistedKeys: jpe(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
-var che = class extends rA {
+var lhe = class extends rA {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -36137,8 +36137,8 @@ var che = class extends rA {
return this.parent.childFocusStrategy;
}
};
-function SA(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, b.useContext)(yA), { CollectionBranch: a } = (0, b.useContext)(Bk), [o, s] = Pk(), { headingProps: c, groupProps: l } = Toe({
+function xA(e, t, n, r = "react-aria-MenuSection") {
+ let i = (0, b.useContext)(vA), { CollectionBranch: a } = (0, b.useContext)(Bk), [o, s] = Pk(), { headingProps: c, groupProps: l } = woe({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
}), u = jk({
@@ -36149,7 +36149,7 @@ function SA(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, b.useContext)(xA), f = nA(e), p = e.selectionMode == null ? d : new che(d, f), m = Mk(wA)?.shouldCloseOnSelect, h = Xv(e, { global: !0 });
+ }), d = (0, b.useContext)(bA), f = nA(e), p = e.selectionMode == null ? d : new lhe(d, f), m = Mk(CA)?.shouldCloseOnSelect, h = Zv(e, { global: !0 });
return delete h.id, /*#__PURE__*/ b.createElement(Ik.section, {
...W(h, u, l),
ref: t
@@ -36158,22 +36158,22 @@ function SA(e, t, n, r = "react-aria-MenuSection") {
...c,
ref: o
}],
- [xA, p],
- [wA, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ [bA, p],
+ [CA, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
] }, /*#__PURE__*/ b.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var CA = /*#__PURE__*/ Ev(dre, SA), wA = /*#__PURE__*/ (0, b.createContext)(null), TA = /*#__PURE__*/ Tv(u_, function(e, t, n) {
- [e, t] = Nk(e, t, wA);
- let r = Mk(wA)?.id, i = (0, b.useContext)(yA), a = hv(t), o = (0, b.useContext)(xA), { isVirtualized: s } = (0, b.useContext)(Bk), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = woe({
+var SA = /*#__PURE__*/ Dv(dre, xA), CA = /*#__PURE__*/ (0, b.createContext)(null), wA = /*#__PURE__*/ Ev(u_, function(e, t, n) {
+ [e, t] = Nk(e, t, CA);
+ let r = Mk(CA)?.id, i = (0, b.useContext)(vA), a = gv(t), o = (0, b.useContext)(bA), { isVirtualized: s } = (0, b.useContext)(Bk), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Coe({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = jx({ isDisabled: f.isDisabled }), h = jk({
+ }, i, a), { hoverProps: p, isHovered: m } = Mx({ isDisabled: f.isDisabled }), h = jk({
...e,
id: void 0,
children: n.rendered,
@@ -36187,7 +36187,7 @@ var CA = /*#__PURE__*/ Ev(dre, SA), wA = /*#__PURE__*/ (0, b.createContext)(null
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? Ik.a : Ik.div, _ = Xv(e, { global: !0 });
+ }), g = e.href ? Ik.a : Ik.div, _ = Zv(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ b.createElement(g, {
...W(_, h, c, p),
ref: a,
@@ -36206,12 +36206,12 @@ var CA = /*#__PURE__*/ Ev(dre, SA), wA = /*#__PURE__*/ (0, b.createContext)(null
label: l,
description: u
} }],
- [ehe, d],
+ [the, d],
[Qk, { isSelected: f.isSelected }]
] }, h.children));
});
-Tv(l_, function(e, t, n) {
- let r = (0, b.useContext)(yA), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, b.useRef)(null);
+Ev(l_, function(e, t, n) {
+ let r = (0, b.useContext)(vA), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, b.useRef)(null);
sA((0, b.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
@@ -36245,7 +36245,7 @@ Tv(l_, function(e, t, n) {
width: 1
}
})), i && l.children && /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(Ik.div, {
- ...W(Xv(e, { global: !0 }), { tabIndex: -1 }),
+ ...W(Zv(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
ref: t
@@ -36253,13 +36253,13 @@ Tv(l_, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/Dialog.mjs
-var lhe = /*#__PURE__*/ (0, b.createContext)(null), EA = /*#__PURE__*/ (0, b.createContext)(null), DA = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+var uhe = /*#__PURE__*/ (0, b.createContext)(null), TA = /*#__PURE__*/ (0, b.createContext)(null), EA = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = Nk(e, t, lhe);
- let { dialogProps: r, titleProps: i, contentProps: a } = loe({
+ [e, t] = Nk(e, t, uhe);
+ let { dialogProps: r, titleProps: i, contentProps: a } = coe({
...e,
"aria-labelledby": n
- }, t), o = (0, b.useContext)(EA);
+ }, t), o = (0, b.useContext)(TA);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
let s = jk({
defaultClassName: "react-aria-Dialog",
@@ -36267,7 +36267,7 @@ var lhe = /*#__PURE__*/ (0, b.createContext)(null), EA = /*#__PURE__*/ (0, b.cre
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = Xv(e, { global: !0 });
+ }), c = Zv(e, { global: !0 });
return /*#__PURE__*/ b.createElement(Ik.section, {
...W(c, s, r),
render: e.render,
@@ -36290,46 +36290,46 @@ var lhe = /*#__PURE__*/ (0, b.createContext)(null), EA = /*#__PURE__*/ (0, b.cre
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), OA = typeof document < "u" && window.visualViewport;
-function uhe() {
- let e = H_(), [t, n] = (0, b.useState)(() => e ? {
+}), DA = typeof document < "u" && window.visualViewport;
+function dhe() {
+ let e = U_(), [t, n] = (0, b.useState)(() => e ? {
width: 0,
height: 0
- } : kA());
+ } : OA());
return (0, b.useEffect)(() => {
let e = (e) => {
n((t) => e.width === t.width && e.height === t.height ? t : e);
}, t = () => {
- OA && OA.scale > 1 || e(kA());
+ DA && DA.scale > 1 || e(OA());
}, r, i = (t) => {
- OA && OA.scale > 1 || Nv(C_(t)) && (r = requestAnimationFrame(() => {
- let t = S_();
- (!t || !Nv(t)) && e({
+ DA && DA.scale > 1 || Pv(w_(t)) && (r = requestAnimationFrame(() => {
+ let t = C_();
+ (!t || !Pv(t)) && e({
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight
});
}));
};
- return e(kA()), F_() && I_() && window.addEventListener("blur", i, !0), OA ? OA.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
- cancelAnimationFrame(r), F_() && I_() && window.removeEventListener("blur", i, !0), OA ? OA.removeEventListener("resize", t) : window.removeEventListener("resize", t);
+ return e(OA()), I_() && L_() && window.addEventListener("blur", i, !0), DA ? DA.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
+ cancelAnimationFrame(r), I_() && L_() && window.removeEventListener("blur", i, !0), DA ? DA.removeEventListener("resize", t) : window.removeEventListener("resize", t);
};
}, []), t;
}
-function kA() {
+function OA() {
return {
- width: OA ? Math.min(OA.width * OA.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: OA ? OA.height * OA.scale : document.documentElement.clientHeight
+ width: DA ? Math.min(DA.width * DA.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: DA ? DA.height * DA.scale : document.documentElement.clientHeight
};
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Modal.mjs
-var dhe = /*#__PURE__*/ (0, b.createContext)(null), AA = /*#__PURE__*/ (0, b.createContext)(null), fhe = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- if ((0, b.useContext)(AA)) return /*#__PURE__*/ b.createElement(MA, {
+var fhe = /*#__PURE__*/ (0, b.createContext)(null), kA = /*#__PURE__*/ (0, b.createContext)(null), phe = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ if ((0, b.useContext)(kA)) return /*#__PURE__*/ b.createElement(jA, {
...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__*/ b.createElement(jA, {
+ return /*#__PURE__*/ b.createElement(AA, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -36339,15 +36339,15 @@ var dhe = /*#__PURE__*/ (0, b.createContext)(null), AA = /*#__PURE__*/ (0, b.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ b.createElement(MA, {
+ }, /*#__PURE__*/ b.createElement(jA, {
...f,
modalRef: t
}, s));
});
-function phe(e, t) {
- [e, t] = Nk(e, t, dhe);
- let n = (0, b.useContext)(EA), r = uA(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = hv(t), o = (0, b.useRef)(null), s = fA(a, i.isOpen), c = fA(o, i.isOpen), l = s || c || e.isExiting || !1, u = H_();
- return !i.isOpen && !l || u ? null : /*#__PURE__*/ b.createElement(mhe, {
+function mhe(e, t) {
+ [e, t] = Nk(e, t, fhe);
+ let n = (0, b.useContext)(TA), r = uA(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = gv(t), o = (0, b.useRef)(null), s = fA(a, i.isOpen), c = fA(o, i.isOpen), l = s || c || e.isExiting || !1, u = U_();
+ return !i.isOpen && !l || u ? null : /*#__PURE__*/ b.createElement(hhe, {
...e,
state: i,
isExiting: l,
@@ -36355,9 +36355,9 @@ function phe(e, t) {
modalRef: o
});
}
-var jA = /*#__PURE__*/ (0, b.forwardRef)(phe);
-function mhe({ UNSTABLE_portalContainer: e, ...t }) {
- let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Aoe(t, r, n), o = dA(t.overlayRef) || t.isEntering || !1, s = jk({
+var AA = /*#__PURE__*/ (0, b.forwardRef)(mhe);
+function hhe({ UNSTABLE_portalContainer: e, ...t }) {
+ let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = koe(t, r, n), o = dA(t.overlayRef) || t.isEntering || !1, s = jk({
...t,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -36365,9 +36365,9 @@ function mhe({ UNSTABLE_portalContainer: e, ...t }) {
isExiting: t.isExiting,
state: r
}
- }), c = uhe(), l, u;
+ }), c = dhe(), l, u;
if (typeof document < "u") {
- let e = Ry(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
+ let e = zy(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
l = e.scrollWidth - t, u = e.scrollHeight - n;
}
let d = {
@@ -36377,25 +36377,25 @@ function mhe({ UNSTABLE_portalContainer: e, ...t }) {
"--page-width": l === void 0 ? void 0 : l + "px",
"--page-height": u === void 0 ? void 0 : u + "px"
};
- return /*#__PURE__*/ b.createElement(Tx, {
+ return /*#__PURE__*/ b.createElement(Ex, {
isExiting: t.isExiting,
portalContainer: e
}, /*#__PURE__*/ b.createElement(Ik.div, {
- ...W(Xv(t, { global: !0 }), a),
+ ...W(Zv(t, { global: !0 }), a),
...s,
style: d,
ref: t.overlayRef,
"data-entering": o || void 0,
"data-exiting": t.isExiting || void 0
- }, /*#__PURE__*/ b.createElement(Ak, { values: [[AA, {
+ }, /*#__PURE__*/ b.createElement(Ak, { values: [[kA, {
modalProps: i,
modalRef: n,
isExiting: t.isExiting,
isDismissable: t.isDismissable
- }], [EA, r]] }, s.children)));
+ }], [TA, r]] }, s.children)));
}
-function MA(e) {
- let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, b.useContext)(AA), a = (0, b.useContext)(EA), o = hv((0, b.useMemo)(() => uv(e.modalRef, n), [e.modalRef, n])), s = dA(o), c = jk({
+function jA(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, b.useContext)(kA), a = (0, b.useContext)(TA), o = gv((0, b.useMemo)(() => dv(e.modalRef, n), [e.modalRef, n])), s = dA(o), c = jk({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -36405,18 +36405,18 @@ function MA(e) {
}
});
return /*#__PURE__*/ b.createElement(Ik.div, {
- ...W(Xv(e, { global: !0 }), t),
+ ...W(Zv(e, { global: !0 }), t),
...c,
ref: o,
"data-entering": s || void 0,
"data-exiting": r || void 0
- }, i && /*#__PURE__*/ b.createElement(rC, { onDismiss: a.close }), c.children);
+ }, i && /*#__PURE__*/ b.createElement(iC, { onDismiss: a.close }), c.children);
}
//#endregion
//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var hhe = Math.round(Math.random() * 1e10), ghe = 0;
-function _he(e) {
- let t = (0, b.useMemo)(() => e.name || `radio-group-${hhe}-${++ghe}`, [e.name]), [n, r] = sb(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, b.useState)(n), [a, o] = (0, b.useState)(null), s = Qy({
+var ghe = Math.round(Math.random() * 1e10), _he = 0;
+function vhe(e) {
+ let t = (0, b.useMemo)(() => e.name || `radio-group-${ghe}-${++_he}`, [e.name]), [n, r] = cb(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, b.useState)(n), [a, o] = (0, b.useState)(null), s = $y({
...e,
value: n
}), c = (t) => {
@@ -36439,12 +36439,12 @@ function _he(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var vhe = /*#__PURE__*/ (0, b.createContext)(null), yhe = /*#__PURE__*/ (0, b.createContext)(null), NA = /*#__PURE__*/ (0, b.createContext)(null), PA = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- [e, t] = Nk(e, t, vhe);
- let { validationBehavior: n } = Mk(Kk) || {}, r = e.validationBehavior ?? n ?? "native", i = _he({
+var yhe = /*#__PURE__*/ (0, b.createContext)(null), bhe = /*#__PURE__*/ (0, b.createContext)(null), MA = /*#__PURE__*/ (0, b.createContext)(null), NA = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ [e, t] = Nk(e, t, yhe);
+ let { validationBehavior: n } = Mk(Kk) || {}, r = e.validationBehavior ?? n ?? "native", i = vhe({
...e,
validationBehavior: r
- }), [a, o] = Pk(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Woe({
+ }), [a, o] = Pk(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Uoe({
...e,
label: o,
validationBehavior: r
@@ -36459,7 +36459,7 @@ var vhe = /*#__PURE__*/ (0, b.createContext)(null), yhe = /*#__PURE__*/ (0, b.cr
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = Xv(e, { global: !0 });
+ }), p = Zv(e, { global: !0 });
return /*#__PURE__*/ b.createElement(Ik.div, {
...W(p, f, s),
ref: t,
@@ -36470,7 +36470,7 @@ var vhe = /*#__PURE__*/ (0, b.createContext)(null), yhe = /*#__PURE__*/ (0, b.cr
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
}, /*#__PURE__*/ b.createElement(Ak, { values: [
- [NA, i],
+ [MA, i],
[Vk, {
...c,
ref: a,
@@ -36482,23 +36482,23 @@ var vhe = /*#__PURE__*/ (0, b.createContext)(null), yhe = /*#__PURE__*/ (0, b.cr
} }],
[Gk, d]
] }, /*#__PURE__*/ b.createElement(Zk, null, f.children)));
-}), FA = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+}), PA = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Nk(r, t, yhe);
- let i = b.useContext(NA), a = hv((0, b.useMemo)(() => uv(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Uoe({
+ [e, t] = Nk(r, t, bhe);
+ let i = b.useContext(MA), a = gv((0, b.useMemo)(() => dv(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Hoe({
...Fk(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ b.createElement(IA.Provider, { value: {
+ return /*#__PURE__*/ b.createElement(FA.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ b.createElement(bhe, {
+ } }, /*#__PURE__*/ b.createElement(xhe, {
...e,
ref: t
}));
-}), IA = /*#__PURE__*/ (0, b.createContext)(null), bhe = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, b.useContext)(IA), l = b.useContext(NA), { isFocused: u, isFocusVisible: d, focusProps: f } = Dx(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = jx({
+}), FA = /*#__PURE__*/ (0, b.createContext)(null), xhe = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, b.useContext)(FA), l = b.useContext(MA), { isFocused: u, isFocusVisible: d, focusProps: f } = Ox(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = Mx({
...e,
isDisabled: p
}), g = jk({
@@ -36515,7 +36515,7 @@ var vhe = /*#__PURE__*/ (0, b.createContext)(null), yhe = /*#__PURE__*/ (0, b.cr
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = Xv(e, { global: !0 });
+ }), _ = Zv(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ b.createElement(Ik.label, {
...W(_, n, m, g),
ref: t,
@@ -36528,19 +36528,19 @@ var vhe = /*#__PURE__*/ (0, b.createContext)(null), yhe = /*#__PURE__*/ (0, b.cr
"data-readonly": l.isReadOnly || void 0,
"data-invalid": l.isInvalid || void 0,
"data-required": l.isRequired || void 0
- }, /*#__PURE__*/ b.createElement(fb, { elementType: "span" }, /*#__PURE__*/ b.createElement("input", {
+ }, /*#__PURE__*/ b.createElement(pb, { elementType: "span" }, /*#__PURE__*/ b.createElement("input", {
...W(r, f),
ref: c
})), g.children);
});
//#endregion
//#region node_modules/react-stately/dist/private/select/useSelectState.mjs
-function xhe(e) {
+function She(e) {
let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = uA(e), [i, a] = (0, b.useState)(null), o = (0, b.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = sb((0, b.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = cb((0, b.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -36557,7 +36557,7 @@ function xhe(e) {
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, b.useMemo)(() => She(l), [l]),
+ selectedKeys: (0, b.useMemo)(() => Che(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -36567,7 +36567,7 @@ function xhe(e) {
n && r.close(), m.commitValidation();
}
}
- }), f = d.selectionManager.firstSelectedKey, p = (0, b.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = Qy({
+ }), f = d.selectionManager.firstSelectedKey, p = (0, b.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = $y({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
}), [h, g] = (0, b.useState)(!1), [_] = (0, b.useState)(l);
@@ -36594,16 +36594,16 @@ function xhe(e) {
setFocused: g
};
}
-function She(e) {
+function Che(e) {
if (e !== void 0) return e === null ? [] : Array.isArray(e) ? e : [e];
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Select.mjs
-function Che(e) {
+function whe(e) {
return e && e.__esModule ? e.default : e;
}
-var LA = /*#__PURE__*/ (0, b.createContext)(null), RA = /*#__PURE__*/ (0, b.createContext)(null), whe = /*#__PURE__*/ bv(function(e, t) {
- [e, t] = Nk(e, t, LA);
+var IA = /*#__PURE__*/ (0, b.createContext)(null), LA = /*#__PURE__*/ (0, b.createContext)(null), The = /*#__PURE__*/ xv(function(e, t) {
+ [e, t] = Nk(e, t, IA);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, b.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
@@ -36618,23 +36618,23 @@ var LA = /*#__PURE__*/ (0, b.createContext)(null), RA = /*#__PURE__*/ (0, b.crea
i,
a
]);
- return /*#__PURE__*/ b.createElement(Sv, { content: o }, (n) => /*#__PURE__*/ b.createElement(Ehe, {
+ return /*#__PURE__*/ b.createElement(Cv, { content: o }, (n) => /*#__PURE__*/ b.createElement(Dhe, {
props: e,
collection: n,
selectRef: t
}));
-}), The = [
+}), Ehe = [
Vk,
Hk,
Wk
];
-function Ehe({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = Mk(Kk) || {}, i = e.validationBehavior ?? r ?? "native", a = xhe({
+function Dhe({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = Mk(Kk) || {}, i = e.validationBehavior ?? r ?? "native", a = She({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = Dx({ within: !0 }), c = (0, b.useRef)(null), [l, u] = Pk(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Goe({
+ }), { isFocusVisible: o, focusProps: s } = Ox({ within: !0 }), c = (0, b.useRef)(null), [l, u] = Pk(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Woe({
...Fk(e),
label: u,
validationBehavior: i
@@ -36656,13 +36656,13 @@ function Ehe({ props: e, selectRef: t, collection: n }) {
...e,
values: y,
defaultClassName: "react-aria-Select"
- }), S = Xv(e, { global: !0 });
+ }), S = Zv(e, { global: !0 });
delete S.id;
let C = (0, b.useRef)(null);
return /*#__PURE__*/ b.createElement(Ak, { values: [
- [LA, e],
- [RA, a],
- [zA, p],
+ [IA, e],
+ [LA, a],
+ [RA, p],
[Vk, {
...d,
ref: l,
@@ -36674,14 +36674,14 @@ function Ehe({ props: e, selectRef: t, collection: n }) {
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [EA, a],
- [mA, {
+ [TA, a],
+ [pA, {
trigger: "Select",
triggerRef: c,
scrollRef: C,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: The
+ clearContexts: Ehe
}],
[cA, {
...m,
@@ -36703,14 +36703,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
- }, x.children, /*#__PURE__*/ b.createElement(qoe, {
+ }, x.children, /*#__PURE__*/ b.createElement(Koe, {
..._,
autoComplete: e.autoComplete
})));
}
-for (var zA = /*#__PURE__*/ (0, b.createContext)(null), Dhe = /*#__PURE__*/ bv(function(e, t) {
- [e, t] = Nk(e, t, zA);
- let n = (0, b.useContext)(RA), { placeholder: r } = Mk(LA), i = n.selectedItems.map((e) => {
+for (var RA = /*#__PURE__*/ (0, b.createContext)(null), Ohe = /*#__PURE__*/ xv(function(e, t) {
+ [e, t] = Nk(e, t, RA);
+ let n = (0, b.useContext)(LA), { placeholder: r } = Mk(IA), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -36722,7 +36722,7 @@ for (var zA = /*#__PURE__*/ (0, b.createContext)(null), Dhe = /*#__PURE__*/ bv(f
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = uoe(), o = (0, b.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, b.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
+ }), a = loe(), o = (0, b.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, b.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
s,
a,
o
@@ -36737,7 +36737,7 @@ for (var zA = /*#__PURE__*/ (0, b.createContext)(null), Dhe = /*#__PURE__*/ bv(f
a,
o,
i
- ]), u = Jv(Che(Ame), "react-aria-components"), d = jk({
+ ]), u = Yv(whe(Ame), "react-aria-components"), d = jk({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -36748,30 +36748,30 @@ for (var zA = /*#__PURE__*/ (0, b.createContext)(null), Dhe = /*#__PURE__*/ bv(f
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = Xv(e, { global: !0 });
+ }), f = Zv(e, { global: !0 });
return /*#__PURE__*/ b.createElement(Ik.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
}, /*#__PURE__*/ b.createElement(Wk.Provider, { value: void 0 }, d.children));
-}), Ohe = /*#__PURE__*/ (0, b.createContext)(null), BA = /*#__PURE__*/ (0, b.createContext)(null), khe = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+}), khe = /*#__PURE__*/ (0, b.createContext)(null), zA = /*#__PURE__*/ (0, b.createContext)(null), Ahe = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Nk(r, t, Ohe);
- let i = hv((0, b.useMemo)(() => uv(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = cb(e), o = Yoe({
+ [e, t] = Nk(r, t, khe);
+ let i = gv((0, b.useMemo)(() => dv(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = lb(e), o = Joe({
...Fk(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ b.createElement(Ak, { values: [[BA, a], [VA, {
+ return /*#__PURE__*/ b.createElement(Ak, { values: [[zA, a], [BA, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ b.createElement(Ahe, {
+ }]] }, /*#__PURE__*/ b.createElement(jhe, {
...e,
ref: t
}));
-}), VA = /*#__PURE__*/ (0, b.createContext)(null), Ahe = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, b.useContext)(VA), { isFocused: f, isFocusVisible: p, focusProps: m } = Dx(), h = a || o, g = (0, b.useContext)(BA), { hoverProps: _, isHovered: v } = jx({
+}), BA = /*#__PURE__*/ (0, b.createContext)(null), jhe = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, b.useContext)(BA), { isFocused: f, isFocusVisible: p, focusProps: m } = Ox(), h = a || o, g = (0, b.useContext)(zA), { hoverProps: _, isHovered: v } = Mx({
...e,
isDisabled: h
}), y = jk({
@@ -36789,7 +36789,7 @@ for (var zA = /*#__PURE__*/ (0, b.createContext)(null), Dhe = /*#__PURE__*/ bv(f
isRequired: d || !1,
state: g
}
- }), x = Xv(e, { global: !0 });
+ }), x = Zv(e, { global: !0 });
return delete x.id, delete x.onClick, /*#__PURE__*/ b.createElement(Ik.label, {
...W(x, n, _, y),
ref: t,
@@ -36803,11 +36803,11 @@ for (var zA = /*#__PURE__*/ (0, b.createContext)(null), Dhe = /*#__PURE__*/ bv(f
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ b.createElement(fb, { elementType: "span" }, /*#__PURE__*/ b.createElement("input", {
+ }, /*#__PURE__*/ b.createElement(pb, { elementType: "span" }, /*#__PURE__*/ b.createElement("input", {
...W(r, m),
ref: l
})), y.children);
-}), HA = 10, UA = 5, jhe = class {
+}), VA = 10, HA = 5, Mhe = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -36817,7 +36817,7 @@ for (var zA = /*#__PURE__*/ (0, b.createContext)(null), Dhe = /*#__PURE__*/ bv(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) > UA && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > HA && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > HA && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > VA && (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);
@@ -36896,11 +36896,11 @@ for (var zA = /*#__PURE__*/ (0, b.createContext)(null), Dhe = /*#__PURE__*/ bv(f
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > UA && i) {
+ if (Math.abs(r - c.lastSwitchY) > HA && 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 > HA && a) {
+ if (l > VA && 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;
}
@@ -36915,7 +36915,7 @@ for (var zA = /*#__PURE__*/ (0, b.createContext)(null), Dhe = /*#__PURE__*/ bv(f
boundaryContext: null
};
}
-}, Mhe = class {
+}, Nhe = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -36985,8 +36985,8 @@ for (var zA = /*#__PURE__*/ (0, b.createContext)(null), Dhe = /*#__PURE__*/ bv(f
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, WA = "row-header-column-" + Math.random().toString(36).slice(2), GA = "row-header-column-" + Math.random().toString(36).slice(2); WA === GA;) GA = "row-header-column-" + Math.random().toString(36).slice(2);
-function KA(e, t) {
+}, UA = "row-header-column-" + Math.random().toString(36).slice(2), WA = "row-header-column-" + Math.random().toString(36).slice(2); UA === WA;) WA = "row-header-column-" + Math.random().toString(36).slice(2);
+function GA(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -37070,13 +37070,13 @@ function KA(e, t) {
textValue: ""
}));
}
-var Nhe = class extends Mhe {
+var Phe = class extends Nhe {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: WA,
+ key: UA,
value: null,
textValue: "",
level: 0,
@@ -37091,7 +37091,7 @@ var Nhe = class extends Mhe {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: GA,
+ key: WA,
value: null,
textValue: "",
level: 0,
@@ -37118,7 +37118,7 @@ var Nhe = class extends Mhe {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = KA(s, a);
+ let l = GA(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -37144,10 +37144,10 @@ var Nhe = class extends Mhe {
return this.keyMap.get(e)?.nextKey ?? null;
}
getFirstKey() {
- return fx(this.body.childNodes)?.key ?? null;
+ return px(this.body.childNodes)?.key ?? null;
}
getLastKey() {
- return mx(this.body.childNodes)?.key ?? null;
+ return hx(this.body.childNodes)?.key ?? null;
}
getItem(e) {
return e === this.body.key ? this.body : this.keyMap.get(e) ?? null;
@@ -37179,14 +37179,14 @@ var Nhe = class extends Mhe {
};
//#endregion
//#region node_modules/react-stately/dist/private/grid/useGridState.mjs
-function Phe(e) {
+function Fhe(e) {
let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || nA(e), i = (0, b.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
r.setFocusedKey = (e, r) => {
if (n === "cell" && e != null) {
let n = t.getItem(e);
if (n?.type === "item") {
- let i = dx(n, t);
- e = r === "last" ? mx(i)?.key ?? null : fx(i)?.key ?? null;
+ let i = fx(n, t);
+ e = r === "last" ? hx(i)?.key ?? null : px(i)?.key ?? null;
}
}
a(e, r);
@@ -37211,7 +37211,7 @@ function Phe(e) {
}
}
if (u) {
- let i = u.hasChildNodes ? [...dx(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
+ let i = u.hasChildNodes ? [...fx(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
r.setFocusedKey(a);
} else r.setFocusedKey(null);
}
@@ -37230,11 +37230,11 @@ function Phe(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/table/useTableState.mjs
-var Fhe = {
+var Ihe = {
ascending: "descending",
descending: "ascending"
};
-function Ihe(e) {
+function Lhe(e) {
let [t, n] = (0, b.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, b.useMemo)(() => ({
showSelectionCheckboxes: i && r !== "none",
showDragButtons: a,
@@ -37245,11 +37245,11 @@ function Ihe(e) {
i,
r,
a
- ]), c = aA(e, (0, b.useCallback)((e) => new Nhe(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Phe({
+ ]), c = aA(e, (0, b.useCallback)((e) => new Phe(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Fhe({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
- }), [d, f] = sb(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ }), [d, f] = cb(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
return {
collection: c,
disabledKeys: l,
@@ -37261,7 +37261,7 @@ function Ihe(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? Fhe[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? Ihe[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -37274,7 +37274,7 @@ function Ihe(e) {
treeColumn: o
};
}
-function Lhe(e, t) {
+function Rhe(e, t) {
let n = (0, b.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
@@ -37284,7 +37284,7 @@ function Lhe(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Table.mjs
-var Rhe = class extends fre {
+var zhe = class extends d_ {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -37299,7 +37299,7 @@ var Rhe = class extends fre {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new $A(-2);
+ return new QA(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -37325,7 +37325,7 @@ var Rhe = class extends fre {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = KA(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 = GA(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;
@@ -37406,10 +37406,10 @@ var Rhe = class extends fre {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new XA(-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 YA(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, zhe = /*#__PURE__*/ (0, b.createContext)(null), Bhe = /*#__PURE__*/ (0, b.createContext)(null), qA = /*#__PURE__*/ (0, b.createContext)(null), JA = /*#__PURE__*/ (0, b.createContext)(null), Vhe = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- [e, t] = Nk(e, t, Bhe);
+}, Bhe = /*#__PURE__*/ (0, b.createContext)(null), Vhe = /*#__PURE__*/ (0, b.createContext)(null), KA = /*#__PURE__*/ (0, b.createContext)(null), qA = /*#__PURE__*/ (0, b.createContext)(null), Hhe = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ [e, t] = Nk(e, t, Vhe);
let n = nA(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, b.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
@@ -37420,17 +37420,17 @@ var Rhe = class extends fre {
i,
a,
o
- ]), c = /*#__PURE__*/ b.createElement(Whe.Provider, { value: s }, /*#__PURE__*/ b.createElement(kv, e));
- return /*#__PURE__*/ b.createElement(Sv, {
+ ]), c = /*#__PURE__*/ b.createElement(Ghe.Provider, { value: s }, /*#__PURE__*/ b.createElement(Av, e));
+ return /*#__PURE__*/ b.createElement(Cv, {
content: c,
- createCollection: () => new Rhe()
- }, (r) => /*#__PURE__*/ b.createElement(Uhe, {
+ createCollection: () => new zhe()
+ }, (r) => /*#__PURE__*/ b.createElement(Whe, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), Hhe = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+}), Uhe = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, b.useContext)(Bk);
return n ? /*#__PURE__*/ b.createElement(Ik.div, {
...e,
@@ -37439,7 +37439,7 @@ var Rhe = class extends fre {
...e,
ref: t
});
-}), YA = {
+}), JA = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -37449,26 +37449,26 @@ var Rhe = class extends fre {
rtl: "ArrowRight"
}
};
-function Uhe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+function Whe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
[e, t] = Nk(e, t, Lk);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, b.useContext)(zhe);
- t = hv((0, b.useMemo)(() => uv(t, c?.tableRef), [t, c?.tableRef]));
- let [l, u] = sb(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, b.useContext)(Bhe);
+ t = gv((0, b.useMemo)(() => dv(t, c?.tableRef), [t, c?.tableRef]));
+ let [l, u] = cb(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
r = (0, b.useMemo)(() => r.withExpandedKeys(l), [r, l]);
- let d = Ihe({
+ let d = Lhe({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = Lhe(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, b.useContext)(Bk), { dragAndDropHooks: _ } = e, { gridProps: v } = tse({
+ }), f = Rhe(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, b.useContext)(Bk), { dragAndDropHooks: _ } = e, { gridProps: v } = ese({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, x = !!_?.useDraggableCollectionState, S = !!_?.useDroppableCollectionState;
(0, b.useRef)(x), (0, b.useRef)(S), (0, b.useEffect)(() => {}, [x, S]);
- let C, w, T, E = !1, D = null, O = (0, b.useRef)(null), { direction: k } = Hv(), [A] = (0, b.useState)(() => new jhe());
+ let C, w, T, E = !1, D = null, O = (0, b.useRef)(null), { direction: k } = Uv(), [A] = (0, b.useState)(() => new Mhe());
if (x && _) {
C = _.useDraggableCollectionState({
collection: f.collection,
@@ -37483,7 +37483,7 @@ function Uhe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
collection: f.collection,
selectionManager: y
});
- let e = new Sb({
+ let e = new Cb({
collection: f.collection,
disabledKeys: y.disabledKeys,
disabledBehavior: y.disabledBehavior,
@@ -37503,12 +37503,12 @@ function Uhe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
let t = w?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = d.collection.getItem(t.key);
- (e.key === YA.expand[k] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === YA.collapse[k] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === JA.expand[k] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === JA.collapse[k] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
}
}
}, w, t), E = w.isDropTarget({ type: "root" });
}
- let { focusProps: j, isFocused: M, isFocusVisible: N } = Dx(), ee = jk({
+ let { focusProps: j, isFocused: M, isFocusVisible: N } = Ox(), ee = jk({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -37524,19 +37524,19 @@ function Uhe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
tableLayout: "fixed",
width: "min-content"
}));
- let re = Xv(e, { global: !0 });
+ let re = Zv(e, { global: !0 });
return /*#__PURE__*/ b.createElement(Ak, { values: [
- [qA, f],
- [JA, ne],
+ [KA, f],
+ [qA, ne],
[Jk, {
dragAndDropHooks: _,
dragState: C,
dropState: w
}],
- [Yk, { render: ege }],
+ [Yk, { render: tge }],
[Lk, null],
[Rk, null]
- ] }, /*#__PURE__*/ b.createElement(yy, null, /*#__PURE__*/ b.createElement(Hhe, {
+ ] }, /*#__PURE__*/ b.createElement(by, null, /*#__PURE__*/ b.createElement(Uhe, {
...W(re, ee, v, j, T?.collectionProps),
style: P,
ref: t,
@@ -37552,11 +37552,11 @@ function Uhe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
persistedKeys: Mme(y, _, w)
})))), D);
}
-var Whe = /*#__PURE__*/ (0, b.createContext)(null), XA = class extends s_ {
+var Ghe = /*#__PURE__*/ (0, b.createContext)(null), YA = class extends s_ {
static {
this.type = "tableheader";
}
-}, Ghe = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+}, Khe = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, b.useContext)(Bk);
return n ? /*#__PURE__*/ b.createElement(Ik.div, {
...e,
@@ -37565,16 +37565,16 @@ var Whe = /*#__PURE__*/ (0, b.createContext)(null), XA = class extends s_ {
...e,
ref: t
});
-}), ZA = /*#__PURE__*/ Ev(XA, (e, t) => {
- let n = (0, b.useContext)(qA).collection, r = f_({
+}), XA = /*#__PURE__*/ Dv(YA, (e, t) => {
+ let n = (0, b.useContext)(KA).collection, r = p_({
items: n.headerRows,
children: (0, b.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ b.createElement(qhe, { item: e });
+ case "headerrow": return /*#__PURE__*/ b.createElement(Jhe, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = bw(), { hoverProps: a, isHovered: o } = jx({
+ }), { rowGroupProps: i } = xw(), { hoverProps: a, isHovered: o } = Mx({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
@@ -37584,16 +37584,16 @@ var Whe = /*#__PURE__*/ (0, b.createContext)(null), XA = class extends s_ {
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ b.createElement(Ghe, {
- ...W(Xv(e, { global: !0 }), i, a),
+ return /*#__PURE__*/ b.createElement(Khe, {
+ ...W(Zv(e, { global: !0 }), i, a),
...s,
ref: t,
"data-hovered": o || void 0
}, r);
-}, (e) => /*#__PURE__*/ b.createElement(kv, {
+}, (e) => /*#__PURE__*/ b.createElement(Av, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), Khe = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+}, e.children)), qhe = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, b.useContext)(Bk);
return n ? /*#__PURE__*/ b.createElement("div", {
...e,
@@ -37603,12 +37603,12 @@ var Whe = /*#__PURE__*/ (0, b.createContext)(null), XA = class extends s_ {
ref: t
});
});
-function qhe({ item: e }) {
- let t = (0, b.useRef)(null), n = (0, b.useContext)(qA), { isVirtualized: r, CollectionBranch: i } = (0, b.useContext)(Bk), { rowProps: a } = ase({
+function Jhe({ item: e }) {
+ let t = (0, b.useRef)(null), n = (0, b.useContext)(KA), { isVirtualized: r, CollectionBranch: i } = (0, b.useContext)(Bk), { rowProps: a } = ise({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = fse(n);
- return /*#__PURE__*/ b.createElement(Khe, {
+ }, n, t), { checkboxProps: o } = dse(n);
+ return /*#__PURE__*/ b.createElement(qhe, {
...a,
ref: t
}, /*#__PURE__*/ b.createElement(Ak, { values: [[qk, { slots: { selection: o } }], [zpe, { slots: { selection: o } }]] }, /*#__PURE__*/ b.createElement(i, {
@@ -37616,11 +37616,11 @@ function qhe({ item: e }) {
parent: e
})));
}
-var Jhe = class extends s_ {
+var Yhe = class extends s_ {
static {
this.type = "column";
}
-}, Yhe = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+}, Xhe = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, b.useContext)(Bk);
return n ? /*#__PURE__*/ b.createElement(Ik.div, {
...e,
@@ -37629,15 +37629,15 @@ var Jhe = class extends s_ {
...e,
ref: t
});
-}), QA = /*#__PURE__*/ Tv(Jhe, (e, t, n) => {
- let r = hv(t), i = (0, b.useContext)(qA), { isVirtualized: a } = (0, b.useContext)(Bk), { columnHeaderProps: o, isPressed: s } = ise({
+}), ZA = /*#__PURE__*/ Ev(Yhe, (e, t, n) => {
+ let r = gv(t), i = (0, b.useContext)(KA), { isVirtualized: a } = (0, b.useContext)(Bk), { columnHeaderProps: o, isPressed: s } = rse({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = Dx(), d = (0, b.useContext)(JA), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = Ox(), d = (0, b.useContext)(qA), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = jx({ isDisabled: !e.allowsSorting }), h = jk({
+ let { hoverProps: p, isHovered: m } = Mx({ isDisabled: !e.allowsSorting }), h = jk({
...e,
id: void 0,
children: n.rendered,
@@ -37663,8 +37663,8 @@ var Jhe = class extends s_ {
...g,
width: d.getColumnWidth(n.key)
});
- let _ = Xv(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ b.createElement(Yhe, {
+ let _ = Zv(e, { global: !0 });
+ return delete _.id, /*#__PURE__*/ b.createElement(Xhe, {
...W(_, o, u, p),
...h,
style: g,
@@ -37676,15 +37676,15 @@ var Jhe = class extends s_ {
"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__*/ b.createElement(Ak, { values: [[Xhe, {
+ }, /*#__PURE__*/ b.createElement(Ak, { values: [[Zhe, {
column: n,
triggerRef: r
}], [Bk, zk]] }, h.children));
-}), Xhe = /*#__PURE__*/ (0, b.createContext)(null), $A = class extends c_ {
+}), Zhe = /*#__PURE__*/ (0, b.createContext)(null), QA = class extends c_ {
static {
this.type = "tablebody";
}
-}, Zhe = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+}, Qhe = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, b.useContext)(Bk);
return n ? /*#__PURE__*/ b.createElement(Ik.div, {
...e,
@@ -37693,8 +37693,8 @@ var Jhe = class extends s_ {
...e,
ref: t
});
-}), ej = /*#__PURE__*/ Ev($A, (e, t, n) => {
- let r = (0, b.useContext)(qA), { isVirtualized: i } = (0, b.useContext)(Bk), a = r.collection, { CollectionBranch: o } = (0, b.useContext)(Bk), { dragAndDropHooks: s, dropState: c } = (0, b.useContext)(Jk), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), $A = /*#__PURE__*/ Dv(QA, (e, t, n) => {
+ let r = (0, b.useContext)(KA), { isVirtualized: i } = (0, b.useContext)(Bk), a = r.collection, { CollectionBranch: o } = (0, b.useContext)(Bk), { dragAndDropHooks: s, dropState: c } = (0, b.useContext)(Jk), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
}, p = jk({
@@ -37706,22 +37706,22 @@ var Jhe = class extends s_ {
}), 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__*/ b.createElement(nj, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ b.createElement(tj, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ b.createElement(ij, {
+ }, /*#__PURE__*/ b.createElement(rj, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = bw(), _ = Xv(e, { global: !0 });
- return /*#__PURE__*/ b.createElement(Zhe, {
+ let { rowGroupProps: g } = xw(), _ = Zv(e, { global: !0 });
+ return /*#__PURE__*/ b.createElement(Qhe, {
...W(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ b.createElement(age, null), /*#__PURE__*/ b.createElement(o, {
+ }, l && /*#__PURE__*/ b.createElement(oge, null), /*#__PURE__*/ b.createElement(o, {
collection: a,
parent: n,
renderDropIndicator: Xk(s, c)
@@ -37732,7 +37732,7 @@ var Jhe = class extends s_ {
this.type = "tablefooter";
}
});
-var tj = /*#__PURE__*/ (0, b.createContext)({ isFocusVisibleWithinRow: !1 }), Qhe = class extends s_ {
+var ej = /*#__PURE__*/ (0, b.createContext)({ isFocusVisibleWithinRow: !1 }), $he = class extends s_ {
static {
this.type = "item";
}
@@ -37744,7 +37744,7 @@ var tj = /*#__PURE__*/ (0, b.createContext)({ isFocusVisibleWithinRow: !1 }), Qh
}
return null;
}
-}, nj = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+}, tj = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, b.useContext)(Bk);
return n ? /*#__PURE__*/ b.createElement(Ik.div, {
...e,
@@ -37753,22 +37753,22 @@ var tj = /*#__PURE__*/ (0, b.createContext)({ isFocusVisibleWithinRow: !1 }), Qh
...e,
ref: t
});
-}), rj = /*#__PURE__*/ Ev(Qhe, (e, t, n) => {
- let r = hv(t), i = (0, b.useContext)(qA), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, b.useContext)(Jk), { isVirtualized: c, CollectionBranch: l } = (0, b.useContext)(Bk), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = cse({
+}), nj = /*#__PURE__*/ Dv($he, (e, t, n) => {
+ let r = gv(t), i = (0, b.useContext)(KA), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, b.useContext)(Jk), { isVirtualized: c, CollectionBranch: l } = (0, b.useContext)(Bk), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = sse({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
- }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = Dx(), { isFocusVisible: _, focusProps: v } = Dx({ within: !0 }), { hoverProps: y, isHovered: x } = jx({
+ }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = Ox(), { isFocusVisible: _, focusProps: v } = Ox({ within: !0 }), { hoverProps: y, isHovered: x } = Mx({
isDisabled: !p.allowsSelection && !p.hasAction && !u,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: S } = dse({ key: n.key }, i), C;
+ }), { checkboxProps: S } = use({ key: n.key }, i), C;
o && a && (C = a.useDraggableItem({
key: n.key,
hasDragButton: !0
}, o));
- let w, T = (0, b.useRef)(null), { visuallyHiddenProps: E } = db();
+ let w, T = (0, b.useRef)(null), { visuallyHiddenProps: E } = fb();
s && a && (w = a.useDropIndicator({ target: {
type: "item",
key: n.key,
@@ -37799,11 +37799,11 @@ var tj = /*#__PURE__*/ (0, b.createContext)({ isFocusVisibleWithinRow: !1 }), Qh
isExpanded: M,
level: n.level + 1
}
- }), ee = Xv(e, { global: !0 });
- return delete ee.id, delete ee.onClick, /*#__PURE__*/ b.createElement(b.Fragment, null, w && !w.isHidden && /*#__PURE__*/ b.createElement(nj, {
+ }), ee = Zv(e, { global: !0 });
+ return delete ee.id, delete ee.onClick, /*#__PURE__*/ b.createElement(b.Fragment, null, w && !w.isHidden && /*#__PURE__*/ b.createElement(tj, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ b.createElement(ij, {
+ }, /*#__PURE__*/ b.createElement(rj, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -37812,7 +37812,7 @@ var tj = /*#__PURE__*/ (0, b.createContext)({ isFocusVisibleWithinRow: !1 }), Qh
...E,
...w.dropIndicatorProps,
ref: T
- }))), /*#__PURE__*/ b.createElement(nj, {
+ }))), /*#__PURE__*/ b.createElement(tj, {
...W(ee, N, d, g, y, C?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
@@ -37847,7 +37847,7 @@ var tj = /*#__PURE__*/ (0, b.createContext)({ isFocusVisibleWithinRow: !1 }), Qh
}
} }],
[Qk, { isSelected: p.isSelected }],
- [tj, { isFocusVisibleWithinRow: _ }]
+ [ej, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ b.createElement(l, {
collection: i.collection,
parent: n
@@ -37855,16 +37855,16 @@ var tj = /*#__PURE__*/ (0, b.createContext)({ isFocusVisibleWithinRow: !1 }), Qh
}, (e) => {
if (e.id == null && typeof e.children == "function") throw Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");
let t = [e.value].concat(e.dependencies);
- return /*#__PURE__*/ b.createElement(kv, {
+ return /*#__PURE__*/ b.createElement(Av, {
dependencies: t,
items: e.columns,
idScope: e.id
}, e.children);
-}), $he = class extends s_ {
+}), ege = class extends s_ {
static {
this.type = "cell";
}
-}, ij = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+}, rj = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, b.useContext)(Bk);
return n ? /*#__PURE__*/ b.createElement(Ik.div, {
...e,
@@ -37873,16 +37873,16 @@ var tj = /*#__PURE__*/ (0, b.createContext)({ isFocusVisibleWithinRow: !1 }), Qh
...e,
ref: t
});
-}), aj = /*#__PURE__*/ Tv($he, (e, t, n) => {
- let r = hv(t), i = (0, b.useContext)(qA), { dragState: a } = (0, b.useContext)(Jk), { isVirtualized: o } = (0, b.useContext)(Bk);
+}), ij = /*#__PURE__*/ Ev(ege, (e, t, n) => {
+ let r = gv(t), i = (0, b.useContext)(KA), { dragState: a } = (0, b.useContext)(Jk), { isVirtualized: o } = (0, b.useContext)(Bk);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = nse({
+ let { gridCellProps: s, isPressed: c } = tse({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = Dx(), { hoverProps: f, isHovered: p } = jx({}), { isFocusVisibleWithinRow: m } = (0, b.useContext)(tj), 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), x = i.selectionManager.isDisabled(n.parentKey), S = jk({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = Ox(), { hoverProps: f, isHovered: p } = Mx({}), { isFocusVisibleWithinRow: m } = (0, b.useContext)(ej), 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), x = i.selectionManager.isDisabled(n.parentKey), S = jk({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -37901,8 +37901,8 @@ var tj = /*#__PURE__*/ (0, b.createContext)({ isFocusVisibleWithinRow: !1 }), Qh
level: _.level + 1,
isTreeColumn: n.column.key === i.treeColumn
}
- }), C = Xv(e, { global: !0 });
- return delete C.id, /*#__PURE__*/ b.createElement(ij, {
+ }), C = Zv(e, { global: !0 });
+ return delete C.id, /*#__PURE__*/ b.createElement(rj, {
...W(C, S, s, d, f),
ref: r,
"data-focused": l || void 0,
@@ -37918,12 +37918,12 @@ var tj = /*#__PURE__*/ (0, b.createContext)({ isFocusVisibleWithinRow: !1 }), Qh
"data-disabled": x || void 0
}, /*#__PURE__*/ b.createElement(Bk.Provider, { value: zk }, S.children));
});
-function ege(e, t) {
- t = hv(t);
+function tge(e, t) {
+ t = gv(t);
let { dragAndDropHooks: n, dropState: r } = (0, b.useContext)(Jk), i = (0, b.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__*/ b.createElement(ige, {
+ return /*#__PURE__*/ b.createElement(age, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -37932,7 +37932,7 @@ function ege(e, t) {
ref: t
});
}
-var tge = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+var nge = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, b.useContext)(Bk);
return n ? /*#__PURE__*/ b.createElement(Ik.div, {
...e,
@@ -37941,7 +37941,7 @@ var tge = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
...e,
ref: t
});
-}), nge = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+}), rge = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, b.useContext)(Bk);
return n ? /*#__PURE__*/ b.createElement(Ik.div, {
...e,
@@ -37951,21 +37951,21 @@ var tge = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
ref: t
});
});
-function rge(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, b.useContext)(qA), { visuallyHiddenProps: c } = db(), l = jk({
+function ige(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, b.useContext)(KA), { visuallyHiddenProps: c } = fb(), l = jk({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ b.createElement(tge, {
- ...Xv(e, { global: !0 }),
+ return /*#__PURE__*/ b.createElement(nge, {
+ ...Zv(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ b.createElement(nge, {
+ }, /*#__PURE__*/ b.createElement(rge, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@ -37976,14 +37976,14 @@ function rge(e, t) {
ref: i
}), l.children));
}
-var ige = /*#__PURE__*/ (0, b.forwardRef)(rge);
-function age() {
- let e = (0, b.useContext)(qA), { dragAndDropHooks: t, dropState: n } = (0, b.useContext)(Jk), r = (0, b.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = db();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ b.createElement(nj, {
+var age = /*#__PURE__*/ (0, b.forwardRef)(ige);
+function oge() {
+ let e = (0, b.useContext)(KA), { dragAndDropHooks: t, dropState: n } = (0, b.useContext)(Jk), r = (0, b.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = fb();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ b.createElement(tj, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ b.createElement(ij, {
+ }, /*#__PURE__*/ b.createElement(rj, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -37994,8 +37994,8 @@ function age() {
ref: r
})));
}
-Tv(l_, function(e, t, n) {
- let r = (0, b.useContext)(qA), { isVirtualized: i } = (0, b.useContext)(Bk), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, b.useRef)(null);
+Ev(l_, function(e, t, n) {
+ let r = (0, b.useContext)(KA), { isVirtualized: i } = (0, b.useContext)(Bk), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, b.useRef)(null);
sA((0, b.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
@@ -38014,10 +38014,10 @@ Tv(l_, 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__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(nj, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(tj, {
style: { height: 0 },
inert: eA(!0)
- }, /*#__PURE__*/ b.createElement(ij, { style: {
+ }, /*#__PURE__*/ b.createElement(rj, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ b.createElement("div", {
@@ -38028,14 +38028,14 @@ Tv(l_, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ b.createElement(nj, {
- ...W(Xv(e, { global: !0 }), f),
+ }))), a && d.children && /*#__PURE__*/ b.createElement(tj, {
+ ...W(Zv(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ b.createElement(ij, {
+ }, /*#__PURE__*/ b.createElement(rj, {
role: "rowheader",
...p,
style: m
@@ -38043,8 +38043,8 @@ Tv(l_, function(e, t, n) {
});
//#endregion
//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function oge(e) {
- let [t, n] = sb(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, b.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = oA({
+function sge(e) {
+ let [t, n] = cb(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, b.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = oA({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -38067,24 +38067,24 @@ function oge(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function sge(e) {
- let t = oge({
+function cge(e) {
+ let t = sge({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? oj(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? aj(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
}), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, b.useRef)(i);
return (0, b.useEffect)(() => {
let o = i;
- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = oj(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 = aj(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 oj(e, t) {
+function aj(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);
@@ -38094,24 +38094,24 @@ function oj(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Tabs.mjs
-var sj = /*#__PURE__*/ (0, b.createContext)(null), cj = /*#__PURE__*/ (0, b.createContext)(null), lj = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- [e, t] = Nk(e, t, sj);
+var oj = /*#__PURE__*/ (0, b.createContext)(null), sj = /*#__PURE__*/ (0, b.createContext)(null), cj = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ [e, t] = Nk(e, t, oj);
let { children: n, orientation: r = "horizontal" } = e;
return n = (0, b.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ b.createElement(Sv, { content: n }, (n) => /*#__PURE__*/ b.createElement(cge, {
+ }) : n, [n, r]), /*#__PURE__*/ b.createElement(Cv, { content: n }, (n) => /*#__PURE__*/ b.createElement(lge, {
props: e,
collection: n,
tabsRef: t
}));
});
-function cge({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = sge({
+function lge({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = cge({
...e,
collection: n,
children: void 0
- }), { focusProps: a, isFocused: o, isFocusVisible: s } = Dx({ within: !0 }), c = (0, b.useMemo)(() => ({
+ }), { focusProps: a, isFocused: o, isFocusVisible: s } = Ox({ within: !0 }), c = (0, b.useMemo)(() => ({
orientation: r,
isFocusWithin: o,
isFocusVisible: s
@@ -38123,7 +38123,7 @@ function cge({ props: e, tabsRef: t, collection: n }) {
...e,
defaultClassName: "react-aria-Tabs",
values: c
- }), u = Xv(e, { global: !0 });
+ }), u = Zv(e, { global: !0 });
return /*#__PURE__*/ b.createElement(Ik.div, {
...W(u, l, a),
ref: t,
@@ -38132,16 +38132,16 @@ function cge({ props: e, tabsRef: t, collection: n }) {
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ b.createElement(Ak, { values: [[sj, e], [cj, i]] }, l.children));
+ }, /*#__PURE__*/ b.createElement(Ak, { values: [[oj, e], [sj, i]] }, l.children));
}
-var uj = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- return (0, b.useContext)(cj) ? /*#__PURE__*/ b.createElement(lge, {
+var lj = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ return (0, b.useContext)(sj) ? /*#__PURE__*/ b.createElement(uge, {
props: e,
forwardedRef: t
- }) : /*#__PURE__*/ b.createElement(kv, e);
+ }) : /*#__PURE__*/ b.createElement(Av, e);
});
-function lge({ props: e, forwardedRef: t }) {
- let n = (0, b.useContext)(cj), { CollectionRoot: r } = (0, b.useContext)(Bk), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = Mk(sj), o = hv(t), { tabListProps: s } = hse({
+function uge({ props: e, forwardedRef: t }) {
+ let n = (0, b.useContext)(sj), { CollectionRoot: r } = (0, b.useContext)(Bk), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = Mk(oj), o = gv(t), { tabListProps: s } = mse({
...e,
orientation: i,
keyboardActivation: a
@@ -38153,7 +38153,7 @@ function lge({ props: e, forwardedRef: t }) {
orientation: i,
state: n
}
- }), l = Xv(e, { global: !0 });
+ }), l = Zv(e, { global: !0 });
return delete l.id, /*#__PURE__*/ b.createElement(Ik.div, {
...W(l, c, s),
ref: o,
@@ -38163,15 +38163,15 @@ function lge({ props: e, forwardedRef: t }) {
persistedKeys: jpe(n.selectionManager.focusedKey)
})));
}
-var dj = /*#__PURE__*/ Tv(class extends s_ {
+var uj = /*#__PURE__*/ Ev(class extends s_ {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, b.useContext)(cj), i = hv(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = pse({
+ let r = (0, b.useContext)(sj), i = gv(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = fse({
key: n.key,
...e
- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = Dx(), { hoverProps: f, isHovered: p } = jx({
+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = Ox(), { hoverProps: f, isHovered: p } = Mx({
isDisabled: s,
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
@@ -38189,7 +38189,7 @@ var dj = /*#__PURE__*/ Tv(class extends s_ {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? Ik.a : Ik.div, g = Xv(e, { global: !0 });
+ }), h = n.props.href ? Ik.a : Ik.div, g = Zv(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ b.createElement(h, {
...W(g, m, a, l, f),
ref: i,
@@ -38200,19 +38200,19 @@ var dj = /*#__PURE__*/ Tv(class extends s_ {
"data-pressed": c || void 0,
"data-hovered": p || void 0
}, /*#__PURE__*/ b.createElement(Qk.Provider, { value: { isSelected: o } }, m.children));
-}), fj = /*#__PURE__*/ bv(function(e, t) {
- let n = (0, b.useContext)(cj), r = hv(t), i = n.selectedKey === e.id, [a, o] = (0, b.useState)(n.selectedKey == null ? null : i);
+}), dj = /*#__PURE__*/ xv(function(e, t) {
+ let n = (0, b.useContext)(sj), r = gv(t), i = n.selectedKey === e.id, [a, o] = (0, b.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
let s = fA(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ b.createElement(uge, {
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ b.createElement(dge, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function uge(e) {
- let t = (0, b.useContext)(cj), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = gse(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = Dx(), d = t.selectedKey === e.id, f = dA(r) && !i, p = jk({
+function dge(e) {
+ let t = (0, b.useContext)(sj), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = hse(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = Ox(), d = t.selectedKey === e.id, f = dA(r) && !i, p = jk({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
@@ -38223,7 +38223,7 @@ function uge(e) {
isExiting: a,
state: t
}
- }), m = Xv(o, { global: !0 });
+ }), m = Zv(o, { global: !0 });
delete m.id;
let h = d ? W(m, s, c, p) : W(m, p);
return /*#__PURE__*/ b.createElement(Ik.div, {
@@ -38235,15 +38235,15 @@ function uge(e) {
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ b.createElement(Ak, { values: [[sj, null], [cj, null]] }, /*#__PURE__*/ b.createElement(Bk.Provider, { value: zk }, p.children)));
+ }, /*#__PURE__*/ b.createElement(Ak, { values: [[oj, null], [sj, null]] }, /*#__PURE__*/ b.createElement(Bk.Provider, { value: zk }, p.children)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/TextArea.mjs
-var dge = /*#__PURE__*/ (0, b.createContext)({}), fge = /*#__PURE__*/ (0, b.createContext)(null), pge = /*#__PURE__*/ bv(function(e, t) {
- [e, t] = Nk(e, t, fge);
+var fge = /*#__PURE__*/ (0, b.createContext)({}), pge = /*#__PURE__*/ (0, b.createContext)(null), mge = /*#__PURE__*/ xv(function(e, t) {
+ [e, t] = Nk(e, t, pge);
let { validationBehavior: n } = Mk(Kk) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, b.useRef)(null);
[e, i] = Nk(e, i, Rk);
- let [a, o] = Pk(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, b.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = Jae({
+ let [a, o] = Pk(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, b.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = qae({
...Fk(e),
inputElementType: s,
label: o,
@@ -38259,7 +38259,7 @@ var dge = /*#__PURE__*/ (0, b.createContext)({}), fge = /*#__PURE__*/ (0, b.crea
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = Xv(e, { global: !0 });
+ }), g = Zv(e, { global: !0 });
return delete g.id, /*#__PURE__*/ b.createElement(Ik.div, {
...g,
...h,
@@ -38278,7 +38278,7 @@ var dge = /*#__PURE__*/ (0, b.createContext)({}), fge = /*#__PURE__*/ (0, b.crea
...u,
ref: m
}],
- [dge, {
+ [fge, {
...u,
ref: m
}],
@@ -38293,7 +38293,7 @@ var dge = /*#__PURE__*/ (0, b.createContext)({}), fge = /*#__PURE__*/ (0, b.crea
} }],
[Gk, p]
] }, h.children));
-}), mge = {
+}), hge = {
selection: {
type: id,
duration: .16,
@@ -38305,7 +38305,7 @@ var dge = /*#__PURE__*/ (0, b.createContext)({}), fge = /*#__PURE__*/ (0, b.crea
bounce: 0
}
};
-function pj(e) {
+function fj(e) {
let [t, n] = (0, b.useState)(null);
return (0, b.useLayoutEffect)(() => {
if (!t) return;
@@ -38326,7 +38326,7 @@ function pj(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 = ure(n, { transform: [r, E] }, mge[e]);
+ l = ure(n, { transform: [r, E] }, hge[e]);
} else n.style.transform = E;
s = h, c = w, t.dataset.surfaceReady = "";
}, m = (t) => {
@@ -38363,25 +38363,25 @@ function pj(e) {
}
//#endregion
//#region src/react/components/segmented.tsx
-function mj(e) {
- let t = pj("selection");
- return /* @__PURE__ */ (0, x.jsx)(uj, {
+function pj(e) {
+ let t = fj("selection");
+ return /* @__PURE__ */ (0, x.jsx)(lj, {
...e,
ref: t
});
}
-function hj(e) {
- let t = pj("selection");
- return /* @__PURE__ */ (0, x.jsx)(PA, {
+function mj(e) {
+ let t = fj("selection");
+ return /* @__PURE__ */ (0, x.jsx)(NA, {
...e,
ref: t
});
}
-var gj = "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", _j = "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", hge = "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", vj = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", yj = "flex size-7.5 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)", gge = { "text-aa": 1.435 }, bj = /* @__PURE__ */ new Map();
-function xj(e) {
- let t = bj.get(e);
+var hj = "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", gj = "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", gge = "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", _j = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", vj = "flex size-7.5 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)", _ge = { "text-aa": 1.435 }, yj = /* @__PURE__ */ new Map();
+function bj(e) {
+ let t = yj.get(e);
if (t) return t;
- let n = gge[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, x.jsx)("svg", {
+ let n = _ge[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, x.jsx)("svg", {
"aria-hidden": !0,
viewBox: `0 0 ${(24 * n).toFixed(2)} 24`,
className: `shrink-0 fill-current ${t ?? "h-4 w-auto"}`,
@@ -38395,108 +38395,108 @@ function xj(e) {
className: `shrink-0 stroke-current stroke-2 ${t ?? "size-4"}`,
children: /* @__PURE__ */ (0, x.jsx)("use", { href: `#i-${e}` })
});
- return r.displayName = `SpriteGlyph(${e})`, bj.set(e, r), r;
+ return r.displayName = `SpriteGlyph(${e})`, yj.set(e, r), r;
}
//#endregion
//#region src/react/follow-feed/follow-marks.ts
-var Sj = (e) => typeof e == "string" ? e : "", Cj = (e) => e.aliases;
-function wj(e, t = "") {
+var xj = (e) => typeof e == "string" ? e : "", Sj = (e) => e.aliases;
+function Cj(e, t = "") {
let n = Pr(e);
return n ? `<img data-follow-site-icon="" src="${n}" alt="${L(t)}"${t ? ` title="${L(t)}"` : ""} loading="lazy" data-drop="self">` : "";
}
-function Tj(e, t = "") {
+function wj(e, t = "") {
let n = L(Qn(t || e)), r = Pr(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 Ej = (e) => Sj(e.title).trim() || "未命名内容", Dj = (e, t) => Zn(e, Cj(t));
-function Oj(e) {
+var Tj = (e) => xj(e.title).trim() || "未命名内容", Ej = (e, t) => Zn(e, Sj(t));
+function Dj(e) {
let t = e.filter((e) => e.entity_id && e.entity_name);
- return new Set(t.map((e) => e.entity_id)).size === 1 ? Sj(t[0]?.entity_name) : "";
+ return new Set(t.map((e) => e.entity_id)).size === 1 ? xj(t[0]?.entity_name) : "";
}
-function kj(e, t) {
+function Oj(e, t) {
let { src: n, fallback: r } = $n(e), i = Qn(t);
if (!n) return `<span class="favatar none" title="没有可用头像">${L(i)}</span>`;
let a = r ? ` data-fallbacks="${L(r)}"` : "";
return `<img class="favatar" src="${L(n)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="initial"${a} data-initial="${L(i)}" data-drop-class="favatar none">`;
}
-function Aj(e, t, n) {
- let r = Cj(n), i = e.credit, a = i?.poster;
+function kj(e, t, n) {
+ let r = Sj(n), i = e.credit, a = i?.poster;
if (!a) {
let n = Zn(t, r);
return {
- author: n || Sj(e.author) || Sj(e.source_label) || "创作者未取得",
- avatar: kj(t, n),
+ author: n || xj(e.author) || xj(e.source_label) || "创作者未取得",
+ avatar: Oj(t, n),
credited: "",
- entityName: Oj(t)
+ entityName: Dj(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 && Zn(c, r) || a;
return {
author: l,
- avatar: kj(c, l),
+ avatar: Oj(c, l),
credited: i.credited || "",
- entityName: Oj(c)
+ entityName: Dj(c)
};
}
-function jj(e, t = e.primary) {
+function Aj(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 = Sj(e.primary.version);
+ let i = xj(e.primary.version);
i && n.push(r("version", L(i)));
- let a = Sj(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
+ let a = xj(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
return o && n.push(r(a, o)), n.join("");
}
-function Mj(e, t = e.primary) {
+function jj(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]) => wj(e, t) || `<span>${L(t)}</span>`).join("");
+ let r = [...n].map(([e, t]) => Cj(e, t) || `<span>${L(t)}</span>`).join("");
return `<span data-follow-seealso="" title="另见 ${L([...n.values()].join("、"))}">另见 ${r}</span>`;
}
-function Nj(e, t) {
- let n = Sj(e.media_error);
+function Mj(e, t) {
+ let n = xj(e.media_error);
return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";
}
-var _ge = 864e5, vge = (e, t) => {
+var vge = 864e5, yge = (e, t) => {
let n = new Date(/[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`).getTime();
- return Number.isFinite(n) && n - t > _ge;
+ return Number.isFinite(n) && n - t > vge;
};
-function Pj(e, t) {
- let n = Sj(e.published_at);
+function Nj(e, t) {
+ let n = xj(e.published_at);
if (!n) return null;
let r = e.published_precision === "approximate", i = gn(n);
return {
prefix: r ? "约 " : "",
full: r ? i.slice(0, 10) : i,
- suffix: vge(n, t) ? " · 晚于现在" : ""
+ suffix: yge(n, t) ? " · 晚于现在" : ""
};
}
-function Fj(e, t = Date.now()) {
- let n = Pj(e, t);
+function Pj(e, t = Date.now()) {
+ let n = Nj(e, t);
return n ? `${n.prefix}${n.full}${n.suffix}` : "时间未取得";
}
-function yge(e, t = Date.now()) {
- let n = Pj(e, t);
+function bge(e, t = Date.now()) {
+ let n = Nj(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 Ij = /* @__PURE__ */ new Set(), Lj = [], Rj = null;
-function zj() {
- if (Rj = null, !Lj.length) return;
- let e = Lj.splice(0, 200);
+var Fj = /* @__PURE__ */ new Set(), Ij = [], Lj = null;
+function Rj() {
+ if (Lj = null, !Ij.length) return;
+ let e = Ij.splice(0, 200);
vt("/api/follow/image-dims", {
method: "POST",
body: JSON.stringify({ entries: e })
- }).catch(() => {}), Lj.length && (Rj = setTimeout(zj, 800));
+ }).catch(() => {}), Ij.length && (Lj = setTimeout(Rj, 800));
}
-function bge(e, t, n, r) {
+function xge(e, t, n, r) {
let i = `${e}:${t ?? ""}`;
- Ij.has(i) || (Ij.add(i), Lj.push(t === null ? {
+ Fj.has(i) || (Fj.add(i), Ij.push(t === null ? {
item: e,
width: n,
height: r
@@ -38505,22 +38505,22 @@ function bge(e, t, n, r) {
width: n,
height: r,
media: t
- }), Rj ||= setTimeout(zj, 800));
+ }), Lj ||= setTimeout(Rj, 800));
}
//#endregion
//#region src/react/entity-filter/entity-filter.ts
-var xge = (e) => e === "videos", Bj = () => /* @__PURE__ */ (0, x.jsx)("span", {
+var Sge = (e) => e === "videos", zj = () => /* @__PURE__ */ (0, x.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
});
-function Sge(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = xge(t), u = t === "online" ? e.online : null, d = l || !!u, f = u ? u.status : r, p = u ? u.statuses.map(([e, t]) => ({
+function Cge(e) {
+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Sge(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, b.useRef)(null), h = (0, b.useRef)(null), g = (0, b.useRef)(null), _ = (0, b.useRef)(null), v = (0, b.useRef)(null), y = (0, b.useRef)(null), S = (0, b.useRef)(null), C = Ok(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), w = Ok(h, _, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`), T = (0, b.useRef)(null), E = (0, b.useRef)(null), D = u?.mediaCounts ? u : null, O = Ok(T, E, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!D}`);
return (0, b.useEffect)(() => {
c.wireDrag(y.current), c.wireScroller(v.current), c.wireDrag(S.current);
- }, [c]), /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(Vj, {
+ }, [c]), /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(Bj, {
items: o,
hidden: !l,
actions: s
@@ -38553,19 +38553,19 @@ function Sge(e) {
})
] }),
top: !n && !d ? null : /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
- n ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(Ege, {
+ n ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(Dge, {
keys: n,
view: t,
row: _,
glide: w,
onView: s.setView
- }), d ? /* @__PURE__ */ (0, x.jsx)(Bj, {}) : null] }) : null,
- D ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(wge, {
+ }), d ? /* @__PURE__ */ (0, x.jsx)(zj, {}) : null] }) : null,
+ D ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(Tge, {
head: D,
row: E,
glide: O,
onMedia: s.onlineMedia
- }), /* @__PURE__ */ (0, x.jsx)(Bj, {})] }) : null,
+ }), /* @__PURE__ */ (0, x.jsx)(zj, {})] }) : null,
/* @__PURE__ */ (0, x.jsxs)("div", {
ref: v,
"data-entity-scroll": "",
@@ -38586,7 +38586,7 @@ function Sge(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, x.jsx)(Bj, {}) : null]
+ }, e.k)), !u || u.providers.length || u.tags.length ? /* @__PURE__ */ (0, x.jsx)(zj, {}) : null]
}), /* @__PURE__ */ (0, x.jsx)("div", {
ref: y,
"data-entity-tags": "",
@@ -38599,17 +38599,17 @@ function Sge(e) {
"data-count-badge": e.k,
children: e.n.toLocaleString()
})]
- }, e.k)) : u ? /* @__PURE__ */ (0, x.jsx)(Tge, {
+ }, e.k)) : u ? /* @__PURE__ */ (0, x.jsx)(Ege, {
head: u,
actions: s
}) : null
})]
})
] }),
- bottom: /* @__PURE__ */ (0, x.jsx)(Dge, { ...e })
+ bottom: /* @__PURE__ */ (0, x.jsx)(Oge, { ...e })
})] });
}
-var Cge = [[
+var wge = [[
"videos",
"视频",
"play",
@@ -38620,7 +38620,7 @@ var Cge = [[
"pics",
"image"
]];
-function wge({ head: e, row: t, glide: n, onMedia: r }) {
+function Tge({ head: e, row: t, glide: n, onMedia: r }) {
return /* @__PURE__ */ (0, x.jsx)("div", {
ref: t,
role: "group",
@@ -38628,7 +38628,7 @@ function wge({ head: e, row: t, glide: n, onMedia: r }) {
"data-entity-media": "",
"data-online-media": "",
onPointerLeave: n.leave,
- children: Cge.map(([t, i, a, o]) => {
+ children: wge.map(([t, i, a, o]) => {
let s = `${i} ${Math.max(0, e.mediaCounts?.[t] || 0).toLocaleString()}`;
return /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
@@ -38646,7 +38646,7 @@ function wge({ head: e, row: t, glide: n, onMedia: r }) {
})
});
}
-function Tge({ head: e, actions: t }) {
+function Ege({ head: e, actions: t }) {
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
e.providers.map(([n, r]) => /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
@@ -38656,9 +38656,9 @@ function Tge({ head: e, actions: t }) {
title: r,
"aria-label": `来源:${r}`,
onClick: () => t.onlineProvider(n),
- dangerouslySetInnerHTML: { __html: wj(n) }
+ dangerouslySetInnerHTML: { __html: Cj(n) }
}, n)),
- e.providers.length && e.tags.length ? /* @__PURE__ */ (0, x.jsx)(Bj, {}) : null,
+ e.providers.length && e.tags.length ? /* @__PURE__ */ (0, x.jsx)(zj, {}) : null,
e.tags.map((e) => /* @__PURE__ */ (0, x.jsxs)(Ek, {
"data-follow-tag": e.k,
"data-entity-press": "",
@@ -38672,7 +38672,7 @@ function Tge({ head: e, actions: t }) {
}, e.k))
] });
}
-function Ege({ keys: e, view: t, row: n, glide: r, onView: i }) {
+function Dge({ keys: e, view: t, row: n, glide: r, onView: i }) {
let a = [];
return e.people && a.push({
value: "people",
@@ -38720,7 +38720,7 @@ function Ege({ keys: e, view: t, row: n, glide: r, onView: i }) {
})
});
}
-function Vj({ items: e, hidden: t, actions: n }) {
+function Bj({ items: e, hidden: t, actions: n }) {
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-entity-combo": "",
hidden: t,
@@ -38740,7 +38740,7 @@ function Vj({ items: e, hidden: t, actions: n }) {
})] }) : null
});
}
-function Dge(e) {
+function Oge(e) {
let { view: t, readout: n, busy: r, video: i, photo: a, actions: o, helpers: s } = e;
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
t === "photos" && a?.back ? /* @__PURE__ */ (0, x.jsxs)("button", {
@@ -38752,26 +38752,26 @@ function Dge(e) {
dangerouslySetInnerHTML: { __html: I("chevron-left") }
}), /* @__PURE__ */ (0, x.jsx)("span", { children: "全部照片" })]
}) : null,
- /* @__PURE__ */ (0, x.jsx)(Oge, {
+ /* @__PURE__ */ (0, x.jsx)(kge, {
text: n,
busy: r
}),
- t === "videos" && i ? /* @__PURE__ */ (0, x.jsx)(kge, {
+ t === "videos" && i ? /* @__PURE__ */ (0, x.jsx)(Age, {
head: i,
actions: o
}) : null,
- t === "photos" && a ? /* @__PURE__ */ (0, x.jsx)(jge, {
+ t === "photos" && a ? /* @__PURE__ */ (0, x.jsx)(Mge, {
head: a,
actions: o,
helpers: s
}) : null,
- t === "online" && e.online ? /* @__PURE__ */ (0, x.jsx)(Age, {
+ t === "online" && e.online ? /* @__PURE__ */ (0, x.jsx)(jge, {
head: e.online,
actions: o
}) : null
] });
}
-function Oge({ text: e, busy: t }) {
+function kge({ text: e, busy: t }) {
return /* @__PURE__ */ (0, x.jsx)("h3", {
"data-entity-readout": "",
children: t ? /* @__PURE__ */ (0, x.jsx)("span", {
@@ -38781,22 +38781,22 @@ function Oge({ text: e, busy: t }) {
}) : e
});
}
-function Hj({ name: e, label: t, value: n, options: r, onChange: i }) {
- return /* @__PURE__ */ (0, x.jsx)(PA, {
+function Vj({ name: e, label: t, value: n, options: r, onChange: i }) {
+ return /* @__PURE__ */ (0, x.jsx)(NA, {
name: e,
"aria-label": t,
orientation: "horizontal",
value: n,
onChange: i,
"data-entity-layout": "",
- className: vj,
+ className: _j,
children: r.map(([e, t, n]) => {
- let r = xj(n);
- return /* @__PURE__ */ (0, x.jsx)(FA, {
+ let r = bj(n);
+ return /* @__PURE__ */ (0, x.jsx)(PA, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: yj,
+ className: vj,
children: /* @__PURE__ */ (0, x.jsx)("span", {
title: t,
className: "contents",
@@ -38806,7 +38806,7 @@ function Hj({ name: e, label: t, value: n, options: r, onChange: i }) {
})
});
}
-function Uj({ onPress: e, busy: t = !1 }) {
+function Hj({ onPress: e, busy: t = !1 }) {
return /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
"data-entity-batch": "",
@@ -38820,27 +38820,27 @@ function Uj({ onPress: e, busy: t = !1 }) {
dangerouslySetInnerHTML: { __html: t ? Ya("正在换一批") : I("shuffle") }
});
}
-function kge({ head: e, actions: t }) {
+function Age({ head: e, actions: t }) {
return /* @__PURE__ */ (0, x.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, x.jsx)(Uj, { onPress: () => void t.reshuffle() }),
- e.jav ? /* @__PURE__ */ (0, x.jsx)(Hj, {
+ /* @__PURE__ */ (0, x.jsx)(Hj, { onPress: () => void t.reshuffle() }),
+ e.jav ? /* @__PURE__ */ (0, x.jsx)(Vj, {
label: "JAV 卡片版式",
value: e.jav.layout,
options: e.jav.options,
onChange: t.setJavLayout
}) : null,
- /* @__PURE__ */ (0, x.jsx)(Wj, {
+ /* @__PURE__ */ (0, x.jsx)(Uj, {
sorts: e.sorts,
onSort: t.setSort
})
]
});
}
-function Wj({ sorts: e, onSort: t }) {
+function Uj({ sorts: e, onSort: t }) {
return /* @__PURE__ */ (0, x.jsx)(x.Fragment, { children: e.map((e) => {
- let n = xj(e.dir === "asc" ? "arrow-up" : "arrow-down");
+ let n = bj(e.dir === "asc" ? "arrow-up" : "arrow-down");
return /* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
"data-entity-sort": e.key,
@@ -38852,12 +38852,12 @@ function Wj({ sorts: e, onSort: t }) {
}, e.key);
}) });
}
-function Age({ head: e, actions: t }) {
+function jge({ head: e, actions: t }) {
return /* @__PURE__ */ (0, x.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, x.jsx)(Uj, { onPress: t.onlineShuffle }),
- e.media === "images" ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(Hj, {
+ /* @__PURE__ */ (0, x.jsx)(Hj, { onPress: t.onlineShuffle }),
+ e.media === "images" ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(Vj, {
label: "图片布局",
value: e.photoLayout,
options: e.photoLayouts,
@@ -38877,27 +38877,27 @@ function Age({ head: e, actions: t }) {
dangerouslySetInnerHTML: { __html: I("captions-off") }
})]
})] }) : null,
- /* @__PURE__ */ (0, x.jsx)(Wj, {
+ /* @__PURE__ */ (0, x.jsx)(Uj, {
sorts: e.sorts,
onSort: t.onlineSort
})
]
});
}
-function jge({ head: e, actions: t, helpers: n }) {
+function Mge({ head: e, actions: t, helpers: n }) {
let [r, i] = (0, b.useState)(!1), a = (0, b.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";
return (0, b.useEffect)(() => {
a.current && o && n.wireSourceTools(a.current);
}, [n, o]), /* @__PURE__ */ (0, x.jsxs)("span", {
"data-entity-sorts": "",
children: [
- e.shuffle ? /* @__PURE__ */ (0, x.jsx)(Uj, {
+ e.shuffle ? /* @__PURE__ */ (0, x.jsx)(Hj, {
onPress: () => {
i(!0), t.reshuffle().finally(() => i(!1));
},
busy: r
}) : null,
- /* @__PURE__ */ (0, x.jsx)(Hj, {
+ /* @__PURE__ */ (0, x.jsx)(Vj, {
label: "图片布局",
value: e.layout,
options: e.layouts,
@@ -38913,31 +38913,31 @@ function jge({ head: e, actions: t, helpers: n }) {
}
//#endregion
//#region src/react/catalog-filter/catalog-filter-page.tsx
-var Gj = "";
-function Mge(e) {
- let t = !e.tiers, n = zge(e.comboHost);
+var Wj = "";
+function Nge(e) {
+ let t = !e.tiers, n = Bge(e.comboHost);
return /* @__PURE__ */ (0, x.jsxs)("div", {
"data-catalog-root": "",
"data-loading": t || void 0,
"data-refreshing": e.refreshing || void 0,
className: "contents",
children: [
- n ? (0, mt.createPortal)(/* @__PURE__ */ (0, x.jsx)(Vj, {
+ n ? (0, mt.createPortal)(/* @__PURE__ */ (0, x.jsx)(Bj, {
items: e.combo,
hidden: e.comboHidden,
actions: e.actions
}), n) : null,
- /* @__PURE__ */ (0, x.jsx)(Fge, { ...e }),
- e.offscreen ? null : /* @__PURE__ */ (0, x.jsx)(Nge, { ...e })
+ /* @__PURE__ */ (0, x.jsx)(Ige, { ...e }),
+ e.offscreen ? null : /* @__PURE__ */ (0, x.jsx)(Pge, { ...e })
]
});
}
-function Nge(e) {
+function Pge(e) {
let { actions: t, helpers: n } = e, r = (0, b.useRef)(null), i = (0, b.useRef)(null), a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = (0, b.useRef)(null), c = Ok(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
(0, b.useEffect)(() => {
n.wireDrag(o.current), n.wireScroller(a.current), n.wireDrag(s.current);
}, [n]);
- let l = !e.tiers, u = qj(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
+ let l = !e.tiers, u = Kj(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
return (0, b.useLayoutEffect)(() => {
oo(o.current, "tagbar");
}, [u]), /* @__PURE__ */ (0, x.jsx)(Tk, {
@@ -38983,16 +38983,16 @@ function Nge(e) {
}), /* @__PURE__ */ (0, x.jsxs)("div", {
ref: o,
"data-catalog-tags": "",
- children: [e.empty || l ? /* @__PURE__ */ (0, x.jsx)(Kj, { kind: "tag" }) : null, u.map((e) => /* @__PURE__ */ (0, x.jsx)(Pge, {
+ children: [e.empty || l ? /* @__PURE__ */ (0, x.jsx)(Gj, { kind: "tag" }) : null, u.map((e) => /* @__PURE__ */ (0, x.jsx)(Fge, {
tag: e,
onPress: t.toggleTag
}, e.k))]
})]
}),
- bottom: e.trash ? null : /* @__PURE__ */ (0, x.jsx)(Lge, { ...e })
+ bottom: e.trash ? null : /* @__PURE__ */ (0, x.jsx)(Rge, { ...e })
});
}
-function Pge({ tag: e, onPress: t }) {
+function Fge({ tag: e, onPress: t }) {
return /* @__PURE__ */ (0, x.jsxs)(Ek, {
"data-catalog-tag": e.k,
"data-entity-press": "",
@@ -39004,12 +39004,12 @@ function Pge({ tag: e, onPress: t }) {
})]
});
}
-function Fge(e) {
+function Ige(e) {
let { actions: t, helpers: n } = e, r = e.tiers ?? {
key: "",
performers: [],
studios: []
- }, i = e.empty || !e.tiers, a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = (0, b.useCallback)((e) => () => t.moreTops(e), [t]), c = qj(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = qj(o, r.studios, r.key, 24, i ? void 0 : s("studios")), u = i || r.performers.length > 0, d = i || r.studios.length > 0;
+ }, i = e.empty || !e.tiers, a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = (0, b.useCallback)((e) => () => t.moreTops(e), [t]), c = Kj(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = Kj(o, r.studios, r.key, 24, i ? void 0 : s("studios")), u = i || r.performers.length > 0, d = i || r.studios.length > 0;
return (0, b.useEffect)(() => {
n.wireDrag(a.current), n.wireDrag(o.current);
}, [
@@ -39022,7 +39022,7 @@ function Fge(e) {
children: [u ? /* @__PURE__ */ (0, x.jsx)("div", {
ref: a,
"data-catalog-tier": "performers",
- children: i ? /* @__PURE__ */ (0, x.jsx)(Kj, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, x.jsxs)("button", {
+ children: i ? /* @__PURE__ */ (0, x.jsx)(Gj, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
"data-tier-performer": "",
"data-entity-kind": "performer",
@@ -39039,18 +39039,18 @@ function Fge(e) {
}) : null, d ? /* @__PURE__ */ (0, x.jsx)("div", {
ref: o,
"data-catalog-tier": "studios",
- children: i ? /* @__PURE__ */ (0, x.jsx)(Kj, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, x.jsxs)("button", {
+ children: i ? /* @__PURE__ */ (0, x.jsx)(Gj, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
"data-tier-studio": "",
"data-entity-kind": "studio",
"data-entity-name": e.name,
onClick: () => t.openEntity("studio", e.name),
- children: [/* @__PURE__ */ (0, x.jsx)(Ige, { studio: e }), e.name]
+ children: [/* @__PURE__ */ (0, x.jsx)(Lge, { studio: e }), e.name]
}, e.name))
}) : null]
});
}
-function Ige({ studio: e }) {
+function Lge({ studio: e }) {
let [t, n] = (0, b.useState)(!1);
return /* @__PURE__ */ (0, x.jsx)("span", {
"data-tier-mark": "",
@@ -39064,7 +39064,7 @@ function Ige({ studio: e }) {
}) : e.fallback
});
}
-function Kj({ kind: e }) {
+function Gj({ kind: e }) {
let t = Array.from({ length: 64 }, (e, t) => t);
return e === "tag" ? /* @__PURE__ */ (0, x.jsx)("span", {
"data-catalog-placeholder": "tag",
@@ -39080,32 +39080,32 @@ function Kj({ kind: e }) {
children: [/* @__PURE__ */ (0, x.jsx)("span", {}), /* @__PURE__ */ (0, x.jsx)("span", { children: "\xA0" })]
}, t)) });
}
-function Lge({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
+function Rge({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
let [a, o] = (0, b.useState)(!1);
- return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(Rge, { count: e }), /* @__PURE__ */ (0, x.jsxs)("span", {
+ return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(zge, { count: e }), /* @__PURE__ */ (0, x.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, x.jsx)(Uj, {
+ /* @__PURE__ */ (0, x.jsx)(Hj, {
onPress: () => {
o(!0), i.reshuffle().finally(() => o(!1));
},
busy: a || t
}),
- n ? /* @__PURE__ */ (0, x.jsx)(Hj, {
+ n ? /* @__PURE__ */ (0, x.jsx)(Vj, {
name: n.name,
label: n.label,
value: n.value,
options: n.options,
onChange: i.setLayout
}, n.name) : null,
- /* @__PURE__ */ (0, x.jsx)(Wj, {
+ /* @__PURE__ */ (0, x.jsx)(Uj, {
sorts: r,
onSort: i.setSort
})
]
})] });
}
-function Rge({ count: e }) {
+function zge({ count: e }) {
let t = (0, b.useRef)(null), n = (0, b.useRef)(null), r = e ? `${e.total.toLocaleString()} 个符合 · 显示 ${e.shown.toLocaleString()}` : "";
return (0, b.useLayoutEffect)(() => {
if (e === !1) return;
@@ -39114,7 +39114,7 @@ function Rge({ count: e }) {
return;
}
let i = t.current;
- i && (Gj && i.dataset.popCount === void 0 && (i.dataset.popCount = Gj), Gj = r, ro(i, r));
+ i && (Wj && i.dataset.popCount === void 0 && (i.dataset.popCount = Wj), Wj = r, ro(i, r));
}, [e, r]), e === !1 ? /* @__PURE__ */ (0, x.jsx)("span", { "data-catalog-readout": "" }, "failed") : e ? /* @__PURE__ */ (0, x.jsx)("span", {
ref: t,
"data-catalog-readout": "",
@@ -39130,7 +39130,7 @@ function Rge({ count: e }) {
})
}, "skeleton");
}
-function zge(e) {
+function Bge(e) {
let [t, n] = (0, b.useState)(null);
return (0, b.useLayoutEffect)(() => {
if (!e) return;
@@ -39140,7 +39140,7 @@ function zge(e) {
};
}, [e]), t;
}
-function qj(e, t, n, r, i) {
+function Kj(e, t, n, r, i) {
let a = () => ({
key: n,
limit: r,
@@ -39180,7 +39180,7 @@ function qj(e, t, n, r, i) {
}
//#endregion
//#region src/react/components/grid-reveal.tsx
-function Jj(e, t) {
+function qj(e, t) {
let [n, r] = (0, b.useState)(e ? "skeleton" : "none"), [i] = (0, b.useState)(() => e ? t() : ""), a = (0, b.useRef)(null);
return (0, b.useLayoutEffect)(() => {
a.current && yo(a.current);
@@ -39206,7 +39206,7 @@ function Jj(e, t) {
fading: n === "fade"
};
}
-function Yj({ message: e, onRetry: t }) {
+function Jj({ message: e, onRetry: t }) {
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-media-error": "",
onClick: (e) => {
@@ -39220,7 +39220,7 @@ function Yj({ message: e, onRetry: t }) {
}
//#endregion
//#region src/react/components/art-slot.tsx
-function Xj({ artwork: e, identity: t = e.html, relayout: n }) {
+function Yj({ artwork: e, identity: t = e.html, relayout: n }) {
let [r, i] = (0, b.useState)({
identity: t,
artwork: e
@@ -39240,7 +39240,7 @@ function Xj({ artwork: e, identity: t = e.html, relayout: n }) {
}
//#endregion
//#region src/react/components/row-click.ts
-var Bge = [
+var Vge = [
"a",
"button",
"input",
@@ -39253,35 +39253,35 @@ var Bge = [
"[role=\"link\"]",
"[role=\"menu\"]"
].join(",");
-function Zj(e, t) {
+function Xj(e, t) {
let n = e.target;
if (!(n instanceof Element) || !t.contains(n)) return !1;
- let r = n.closest(Bge);
+ let r = n.closest(Vge);
return !r || !t.contains(r) || r === t;
}
-function Qj(e) {
+function Zj(e) {
e.shiftKey && e.preventDefault();
}
//#endregion
//#region src/react/components/media-card.tsx
-var Vge = 9 / 16, $j = "未命名视频";
-function eM({ name: e }) {
+var Hge = 9 / 16, Qj = "未命名视频";
+function $j({ name: e }) {
return /* @__PURE__ */ (0, x.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, x.jsx)("use", { href: `#i-${e}` })
});
}
-var Hge = {
+var Uge = {
image: "图片",
audio: "音频",
archive: "压缩包",
other: "其它文件"
};
-function tM(e, t, n) {
- return t === "short" ? Vge : wT(n);
+function eM(e, t, n) {
+ return t === "short" ? Hge : TT(n);
}
-function Uge(e) {
+function Wge(e) {
let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = da(e), s = i[0] || "", c = Zi(e);
return {
avatar: r ? /* @__PURE__ */ (0, x.jsx)("div", {
@@ -39328,7 +39328,7 @@ function Uge(e) {
})
};
}
-function Wge() {
+function Gge() {
return /* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
"data-media-preview": "",
@@ -39347,7 +39347,7 @@ function Wge() {
})]
});
}
-function Gge({ item: e, actions: t }) {
+function Kge({ item: e, actions: t }) {
let [n, r] = (0, b.useState)(null), [i, a] = (0, b.useState)(!1), o = n?.id === e.id ? n.on : !!e.watch_later;
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-media-later": "",
@@ -39365,21 +39365,21 @@ function Gge({ item: e, actions: t }) {
},
"aria-busy": i || void 0,
"aria-disabled": i || void 0,
- children: /* @__PURE__ */ (0, x.jsx)(eM, { name: o ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, x.jsx)($j, { name: o ? "check" : "bookmark-plus" })
})
});
}
-function nM(e, t) {
+function tM(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 Kge({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c }) {
+function qge({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c }) {
let l = (0, b.useRef)(null), u = (0, b.useRef)(e);
u.current = e;
let d = (0, b.useCallback)((e) => {
let t = u.current;
l.current && l.current !== e && Us(l.current), l.current = e, e && (!t.medium || t.medium === "video") && Gs(e, t);
- }, []), f = e.part_group || null, p = e.edition_group || null, m = !!(f || p), h = n.active && e.is_jav ? n.size : "small", g = sa(e, h, !1, n.javImage), _ = h === "small" ? g.html : sa(e, "small", !1, n.javImage).html, v = f?.title || e.name || "", y = o.displayName(e, v).trim() || $j, S = o.titleHtml(e, v).trim() || L($j), C = f?.total_size ?? e.size, w = f?.total_duration ?? e.duration, T = !f && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: E, who: D } = Uge(e), O = (e.follow_tags || e.tags || []).slice(0, 3), k = [
+ }, []), f = e.part_group || null, p = e.edition_group || null, m = !!(f || p), h = n.active && e.is_jav ? n.size : "small", g = sa(e, h, !1, n.javImage), _ = h === "small" ? g.html : sa(e, "small", !1, n.javImage).html, v = f?.title || e.name || "", y = o.displayName(e, v).trim() || Qj, S = o.titleHtml(e, v).trim() || L(Qj), C = f?.total_size ?? e.size, w = f?.total_duration ?? e.duration, T = !f && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: E, who: D } = Wge(e), O = (e.follow_tags || e.tags || []).slice(0, 3), k = [
e.feedback === "dislike" && "dislike",
e.feedback === "seen" && "seen",
e.disposal === "trash" && "dispose",
@@ -39409,9 +39409,9 @@ function Kge({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
u && r.contains(u) ? s.toggleTag(u.dataset.tag || "") : c(e, r);
}, j = /* @__PURE__ */ (0, x.jsxs)("div", {
"data-media-pic": "",
- style: { "--card-ratio": String(tM(e, t, n)) },
+ style: { "--card-ratio": String(eM(e, t, n)) },
children: [
- g.html ? /* @__PURE__ */ (0, x.jsx)(Xj, {
+ g.html ? /* @__PURE__ */ (0, x.jsx)(Yj, {
artwork: g,
identity: _,
relayout: (e) => Fs(e, h)
@@ -39425,11 +39425,11 @@ function Kge({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
}),
/* @__PURE__ */ (0, x.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, x.jsx)(eM, { name: "check" })
+ children: /* @__PURE__ */ (0, x.jsx)($j, { name: "check" })
}),
/* @__PURE__ */ (0, x.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, x.jsx)(eM, { name: "trash" }), /* @__PURE__ */ (0, x.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, x.jsx)($j, { name: "trash" }), /* @__PURE__ */ (0, x.jsx)("b", { children: "回收站" })]
}),
f && !p ? /* @__PURE__ */ (0, x.jsx)("span", {
"data-media-group": "",
@@ -39456,8 +39456,8 @@ function Kge({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
"data-media-scrub": "",
children: /* @__PURE__ */ (0, x.jsx)("i", { style: { "--media-fill": `${Math.round(e.leave_ratio * 100)}%` } })
}),
- /* @__PURE__ */ (0, x.jsx)(Wge, {}),
- /* @__PURE__ */ (0, x.jsx)(Gge, {
+ /* @__PURE__ */ (0, x.jsx)(Gge, {}),
+ /* @__PURE__ */ (0, x.jsx)(Kge, {
item: e,
actions: s
}),
@@ -39467,27 +39467,27 @@ function Kge({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
/* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), nM(l.current, -a);
+ e.stopPropagation(), tM(l.current, -a);
},
title: `后退 ${a} 秒`,
"aria-label": `后退 ${a} 秒`,
- children: /* @__PURE__ */ (0, x.jsx)(eM, { name: "rotate-ccw" })
+ children: /* @__PURE__ */ (0, x.jsx)($j, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), nM(l.current, a);
+ e.stopPropagation(), tM(l.current, a);
},
title: `前进 ${a} 秒`,
"aria-label": `前进 ${a} 秒`,
- children: /* @__PURE__ */ (0, x.jsx)(eM, { name: "rotate-cw" })
+ children: /* @__PURE__ */ (0, x.jsx)($j, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
"data-open": "",
title: "打开详情",
"aria-label": "打开详情",
- children: /* @__PURE__ */ (0, x.jsx)(eM, { name: "expand" })
+ children: /* @__PURE__ */ (0, x.jsx)($j, { name: "expand" })
})
]
})
@@ -39503,7 +39503,7 @@ function Kge({ 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: A,
- onMouseDown: Qj,
+ onMouseDown: Zj,
children: [
/* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
@@ -39564,8 +39564,8 @@ function Kge({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
]
});
}
-function qge({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
- let o = (0, b.useRef)(null), [s, c] = (0, b.useState)(!1), l = e.medium === "image" && e.location !== "online", u = String(e.name || ""), d = u.toLowerCase().endsWith(".url") ? "网址快捷方式" : Hge[e.medium || ""] || "其它文件", f = l ? "pics" : d === "网址快捷方式" ? "globe" : "hard-drive", p = e.disposal === "trash" ? "restore" : "dispose", m = p === "restore" ? "还原" : "移入回收站", h = (t) => {
+function Jge({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
+ let o = (0, b.useRef)(null), [s, c] = (0, b.useState)(!1), l = e.medium === "image" && e.location !== "online", u = String(e.name || ""), d = u.toLowerCase().endsWith(".url") ? "网址快捷方式" : Uge[e.medium || ""] || "其它文件", f = l ? "pics" : d === "网址快捷方式" ? "globe" : "hard-drive", p = e.disposal === "trash" ? "restore" : "dispose", m = p === "restore" ? "还原" : "移入回收站", h = (t) => {
t.preventDefault(), t.stopPropagation(), !s && (c(!0), i.resourceOperation(e, p).catch(() => {}).finally(() => c(!1)));
}, g = (t) => {
o.current && (n || t.shiftKey || t.ctrlKey || t.metaKey ? (t.preventDefault(), i.toggleSelection(e.id, t.shiftKey)) : a(e, o.current));
@@ -39579,14 +39579,14 @@ function qge({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
"data-pending-delete": e.disposal === "trash" ? "" : void 0,
"data-selected": t ? "" : void 0,
onClick: g,
- onMouseDown: Qj,
+ onMouseDown: Zj,
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
"data-media-pic": "",
style: { "--card-ratio": "1.7777777777777777" },
children: [
/* @__PURE__ */ (0, x.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, x.jsx)(eM, { name: f }), /* @__PURE__ */ (0, x.jsx)("b", { children: d })]
+ children: [/* @__PURE__ */ (0, x.jsx)($j, { name: f }), /* @__PURE__ */ (0, x.jsx)("b", { children: d })]
}),
l ? /* @__PURE__ */ (0, x.jsx)("span", {
"data-media-art": "thumb",
@@ -39598,11 +39598,11 @@ function qge({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
}),
/* @__PURE__ */ (0, x.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, x.jsx)(eM, { name: "check" })
+ children: /* @__PURE__ */ (0, x.jsx)($j, { name: "check" })
}),
/* @__PURE__ */ (0, x.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, x.jsx)(eM, { name: "trash" }), /* @__PURE__ */ (0, x.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, x.jsx)($j, { name: "trash" }), /* @__PURE__ */ (0, x.jsx)("b", { children: "回收站" })]
}),
/* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
@@ -39612,7 +39612,7 @@ function qge({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
onClick: h,
"aria-busy": s || void 0,
"aria-disabled": s || void 0,
- children: s ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)("span", { dangerouslySetInnerHTML: { __html: Ya(p === "restore" ? "正在还原" : "正在移入回收站") } }), /* @__PURE__ */ (0, x.jsx)("span", { children: _ })] }) : /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(eM, { name: p === "restore" ? "rotate-ccw" : "trash" }), /* @__PURE__ */ (0, x.jsx)("span", { children: m })] })
+ children: s ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)("span", { dangerouslySetInnerHTML: { __html: Ya(p === "restore" ? "正在还原" : "正在移入回收站") } }), /* @__PURE__ */ (0, x.jsx)("span", { children: _ })] }) : /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)($j, { name: p === "restore" ? "rotate-ccw" : "trash" }), /* @__PURE__ */ (0, x.jsx)("span", { children: m })] })
})
]
}), /* @__PURE__ */ (0, x.jsxs)("div", {
@@ -39621,7 +39621,7 @@ function qge({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
"data-media-avatar": "",
"data-media-kind-glyph": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, x.jsx)(eM, { name: f })
+ children: /* @__PURE__ */ (0, x.jsx)($j, { name: f })
}), /* @__PURE__ */ (0, x.jsxs)("div", {
"data-media-text": "",
children: [/* @__PURE__ */ (0, x.jsx)("span", {
@@ -39650,23 +39650,23 @@ function qge({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
})]
});
}
-function Jge(e) {
- return e.variant === "resource" ? /* @__PURE__ */ (0, x.jsx)(qge, { ...e }) : /* @__PURE__ */ (0, x.jsx)(Kge, { ...e });
+function Yge(e) {
+ return e.variant === "resource" ? /* @__PURE__ */ (0, x.jsx)(Jge, { ...e }) : /* @__PURE__ */ (0, x.jsx)(qge, { ...e });
}
-var rM = (0, b.memo)(Jge), Yge = 1100, Xge = 340, Zge = 5e3;
-function Qge(e, t, n) {
+var nM = (0, b.memo)(Yge), Xge = 1100, Zge = 340, Qge = 5e3;
+function $ge(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, Zge);
+ }, s = () => o(!1), c = setTimeout(s, Qge);
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 iM({ load: e, canFlip: t, referrerPolicy: n }) {
+function rM({ load: e, canFlip: t, referrerPolicy: n }) {
let [r, i] = (0, b.useState)([]), [a, o] = (0, b.useState)(0), [s, c] = (0, b.useState)(null), l = (0, b.useRef)({
live: !1,
generation: 0,
@@ -39708,11 +39708,11 @@ function iM({ load: e, canFlip: t, referrerPolicy: n }) {
return;
}
if (!r() || !u.current.canFlip() || a.length < 2) return;
- let s = await Promise.all(a.map((t) => Qge(t, e, n)));
+ let s = await Promise.all(a.map((t) => $ge(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, Yge);
+ p(), e.cycle = setInterval(p, Xge);
}));
};
return (0, b.useEffect)(() => d, [d]), {
@@ -39721,7 +39721,7 @@ function iM({ 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(Xge, () => {
+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(Zge, () => {
e.armed = null, m();
});
},
@@ -39732,8 +39732,8 @@ function iM({ load: e, canFlip: t, referrerPolicy: n }) {
}
//#endregion
//#region src/react/components/mix-card.tsx
-var aM = xj("play");
-function $ge({ src: e }) {
+var iM = bj("play");
+function e_e({ src: e }) {
let [t, n] = (0, b.useState)(!1);
return t ? null : /* @__PURE__ */ (0, x.jsx)("img", {
"data-mix-poster": "",
@@ -39746,8 +39746,8 @@ function $ge({ src: e }) {
className: "absolute inset-0 block size-full object-contain"
});
}
-var oM = "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 e_e({ faces: e, fallback: t, onOpenEntity: n }) {
+var aM = "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 t_e({ faces: e, fallback: t, onOpenEntity: n }) {
return e.length ? /* @__PURE__ */ (0, x.jsx)("div", {
"data-mix-avatars": "",
children: e.slice(0, 5).map((e) => /* @__PURE__ */ (0, x.jsx)("button", {
@@ -39755,18 +39755,18 @@ function e_e({ faces: e, fallback: t, onOpenEntity: n }) {
title: `打开资料页:${e.name}`,
"aria-label": `打开资料页:${e.name}`,
onClick: () => n(e.kind, e.name),
- className: `${oM} cursor-pointer outline-none`,
+ className: `${aM} cursor-pointer outline-none`,
dangerouslySetInnerHTML: { __html: $i(e.name, e, Li(e.name), e.kind) }
}, `${e.kind}:${e.id}`))
}) : /* @__PURE__ */ (0, x.jsx)("span", {
"data-mix-initial": "",
"aria-hidden": !0,
- className: `${oM} mt-0.5`,
+ className: `${aM} mt-0.5`,
children: t
});
}
-function sM({ 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 S = iM({
+function oM({ 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 S = rM({
load: i,
canFlip: a
}), C = (0, b.useRef)(S.onPointerLeave);
@@ -39793,11 +39793,11 @@ function sM({ 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, x.jsx)(Xj, {
+ f?.html ? /* @__PURE__ */ (0, x.jsx)(Yj, {
artwork: f,
identity: p,
relayout: m
- }) : r ? /* @__PURE__ */ (0, x.jsx)($ge, { src: r }, r) : /* @__PURE__ */ (0, x.jsx)("span", {
+ }) : r ? /* @__PURE__ */ (0, x.jsx)(e_e, { src: r }, r) : /* @__PURE__ */ (0, x.jsx)("span", {
className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",
children: "无预览"
}),
@@ -39827,7 +39827,7 @@ function sM({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
/* @__PURE__ */ (0, x.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, x.jsx)(aM, {
+ children: [/* @__PURE__ */ (0, x.jsx)(iM, {
"aria-hidden": !0,
className: "size-3.75"
}), g ?? `${n.toLocaleString()} 个视频`]
@@ -39840,8 +39840,8 @@ function sM({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
_ ? /* @__PURE__ */ (0, x.jsx)("span", {
"data-mix-glyph": "",
"aria-hidden": !0,
- children: /* @__PURE__ */ (0, x.jsx)(aM, {})
- }) : /* @__PURE__ */ (0, x.jsx)(e_e, {
+ children: /* @__PURE__ */ (0, x.jsx)(iM, {})
+ }) : /* @__PURE__ */ (0, x.jsx)(t_e, {
faces: o,
fallback: qt(e),
onOpenEntity: s
@@ -39865,20 +39865,20 @@ function sM({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
}
//#endregion
//#region src/react/catalog-grid/catalog-grid-page.tsx
-function cM(e) {
- if (e.mode === "items") return /* @__PURE__ */ (0, x.jsx)(n_e, { ...e });
- let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${RE(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
- return /* @__PURE__ */ (0, x.jsx)(r_e, { ...e }, t);
+function sM(e) {
+ if (e.mode === "items") return /* @__PURE__ */ (0, x.jsx)(r_e, { ...e });
+ let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${zE(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
+ return /* @__PURE__ */ (0, x.jsx)(i_e, { ...e }, t);
}
-function t_e({ name: e }) {
+function n_e({ name: e }) {
return /* @__PURE__ */ (0, x.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, x.jsx)("use", { href: `#i-${e}` })
});
}
-function n_e(e) {
- let { actions: t } = e, n = (0, b.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, x.jsx)(rM, {
+function r_e(e) {
+ let { actions: t } = e, n = (0, b.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, x.jsx)(nM, {
item: i,
variant: r,
layout: e.layout,
@@ -39898,8 +39898,8 @@ function n_e(e) {
children: i
});
}
-function r_e(e) {
- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Gce(e) : zE(e), s = i && e.initial ? {
+function i_e(e) {
+ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Gce(e) : Wce(e), s = i && e.initial ? {
pages: [{
...e.initial,
items: e.initial.items || [],
@@ -39929,7 +39929,7 @@ function r_e(e) {
e.mix,
a,
r.javImage
- ]), f = u.reduce((e, t) => e + +(t.kind === "card"), 0), p = Number(c.data?.pages[0]?.total || 0), m = Jj(c.isPending, e.skeletonHtml), h = (0, b.useRef)(null), g = i_e(e, c.data, u, d, h);
+ ]), f = u.reduce((e, t) => e + +(t.kind === "card"), 0), p = Number(c.data?.pages[0]?.total || 0), m = qj(c.isPending, e.skeletonHtml), h = (0, b.useRef)(null), g = a_e(e, c.data, u, d, h);
(0, b.useLayoutEffect)(() => {
if (!c.data) return;
let t = !0;
@@ -39956,12 +39956,12 @@ function r_e(e) {
let v = (0, b.useCallback)((e, t) => n.open(e, t), [n]), y = (0, b.useCallback)((e, t) => n.openResource(e, t), [n]), S = (0, b.useCallback)((e) => n.openShort(e), [n]), C = (0, b.useCallback)(async () => {
let e = await c.fetchNextPage({ cancelRefetch: !1 });
if (e.isFetchNextPageError) throw e.error;
- }, [c.fetchNextPage]), w = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, x.jsx)(o_e, {
+ }, [c.fetchNextPage]), w = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, x.jsx)(s_e, {
seed: i.seed,
layout: r,
helpers: t,
actions: n
- }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, x.jsx)(rM, {
+ }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, x.jsx)(nM, {
item: i.item,
variant: a && i.item.medium && i.item.medium !== "video" ? "resource" : "grid",
layout: r,
@@ -39978,7 +39978,7 @@ function r_e(e) {
"data-grid-reveal": m.fading ? "" : void 0,
children: [m.layer, (() => {
if (c.isPending) return null;
- if (!c.data) return /* @__PURE__ */ (0, x.jsx)(Yj, {
+ if (!c.data) return /* @__PURE__ */ (0, x.jsx)(Jj, {
message: _t(c.error),
onRetry: () => void c.refetch()
});
@@ -39998,12 +39998,12 @@ function r_e(e) {
children: Qce(u, g).map((t) => /* @__PURE__ */ (0, x.jsxs)(b.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)("div", {
"data-media-grid": "",
children: t.tiles.map(w)
- }), t.strip ? /* @__PURE__ */ (0, x.jsx)(a_e, {
+ }), t.strip ? /* @__PURE__ */ (0, x.jsx)(o_e, {
cut: t.strip,
props: e,
onOpen: S
}) : null] }, t.start))
- }), c.hasNextPage ? /* @__PURE__ */ (0, x.jsx)(lM, {
+ }), c.hasNextPage ? /* @__PURE__ */ (0, x.jsx)(cM, {
entity: i,
load: C,
enabled: () => e.canLoadMore?.() !== !1
@@ -40011,7 +40011,7 @@ function r_e(e) {
})()]
});
}
-function lM({ entity: e, load: t, enabled: n, children: r }) {
+function cM({ entity: e, load: t, enabled: n, children: r }) {
let i = (0, b.useRef)(null), a = (0, b.useRef)(!1), o = (0, b.useRef)(!1), [s, c] = (0, b.useState)({
busy: !1,
error: ""
@@ -40073,12 +40073,12 @@ function lM({ entity: e, load: t, enabled: n, children: r }) {
hidden: !!s.error,
onClick: () => void u(!0),
dangerouslySetInnerHTML: { __html: Xa("继续载入中…") }
- }), s.error ? /* @__PURE__ */ (0, x.jsx)(Yj, {
+ }), s.error ? /* @__PURE__ */ (0, x.jsx)(Jj, {
message: s.error,
onRetry: () => void u(!0)
}) : null] });
}
-function i_e(e, t, n, r, i) {
+function a_e(e, t, n, r, i) {
let [a, o] = (0, b.useState)([]), [s, c] = (0, b.useState)(null), l = (0, b.useRef)(0), u = (0, b.useRef)(0), d = (0, b.useRef)([]);
return (0, b.useEffect)(() => () => d.current.forEach((e) => e.abort()), []), (0, b.useEffect)(() => {
let n = t?.pages.length || 0;
@@ -40109,7 +40109,7 @@ function i_e(e, t, n, r, i) {
}]);
}, [s]), a;
}
-function a_e({ cut: e, props: t, onOpen: n }) {
+function o_e({ cut: e, props: t, onOpen: n }) {
let r = (0, b.useRef)(null), { wireDrag: i } = t;
return (0, b.useEffect)(() => {
r.current && i(r.current);
@@ -40125,12 +40125,12 @@ function a_e({ cut: e, props: t, onOpen: n }) {
type: "button",
"data-shorts-enter": "",
onClick: () => t.actions.openShorts(),
- children: [/* @__PURE__ */ (0, x.jsx)(t_e, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, x.jsx)("span", { children: "进入沉浸模式" })]
+ children: [/* @__PURE__ */ (0, x.jsx)(n_e, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, x.jsx)("span", { children: "进入沉浸模式" })]
})
] }), /* @__PURE__ */ (0, x.jsx)("div", {
ref: r,
"data-shorts-row": "",
- children: e.items.map((e) => /* @__PURE__ */ (0, x.jsx)(rM, {
+ children: e.items.map((e) => /* @__PURE__ */ (0, x.jsx)(nM, {
item: e,
variant: "short",
layout: t.layout,
@@ -40144,17 +40144,17 @@ function a_e({ cut: e, props: t, onOpen: n }) {
})]
});
}
-function uM(e, t, n) {
+function lM(e, t, n) {
return ca(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);
}
-function o_e({ seed: e, layout: t, helpers: n, actions: r }) {
+function s_e({ seed: e, layout: t, helpers: n, actions: r }) {
let i = (0, b.useRef)(/* @__PURE__ */ new Map()), a = (0, b.useRef)(t);
a.current = t;
let o = pa(e, n.tagLabel), s = (0, b.useCallback)(async () => {
let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => BE(e, t.javImage)).slice(0, 9);
- return i.current = new Map(n.map((e) => [String(e.id), uM(e, t, !0).html])), n.map((e) => String(e.id));
- }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = uM(e, t, !1);
- return /* @__PURE__ */ (0, x.jsx)(sM, {
+ return i.current = new Map(n.map((e) => [String(e.id), lM(e, t, !0).html])), n.map((e) => String(e.id));
+ }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = lM(e, t, !1);
+ return /* @__PURE__ */ (0, x.jsx)(oM, {
"data-mix-seed": String(e.id),
name: `Mix · ${o}`,
caption: `${n.displayName(e, e.name || "")}及相似作品`,
@@ -40164,12 +40164,12 @@ function o_e({ seed: e, layout: t, helpers: n, actions: r }) {
wholeCard: !0,
poster: null,
artwork: l,
- artworkIdentity: c === "small" ? l.html : uM(e, {
+ artworkIdentity: c === "small" ? l.html : lM(e, {
...t,
size: "small"
}, !1).html,
relayoutArt: (e) => Fs(e, c),
- ratio: tM(e, "grid", t),
+ ratio: eM(e, "grid", t),
flipImages: s,
faceHtml: (e) => i.current.get(e) || "",
canFlip: r.canFlip,
@@ -40181,41 +40181,41 @@ function o_e({ seed: e, layout: t, helpers: n, actions: r }) {
}
//#endregion
//#region src/react/media-sources.ts
-async function dM(e) {
+async function uM(e) {
await V.fetchQuery({
queryKey: fn,
queryFn: () => pn(e)
});
}
-var s_e = [
+var c_e = [
"local",
"115",
"pikpak"
-], c_e = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), l_e = "/api/duplicates?limit=120", fM = ["duplicates"], pM = "/api/batch", mM = (e) => z(l_e, e), u_e = /[\s\-_.()[\]【】/\\]/;
-function d_e(e) {
+], l_e = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), u_e = "/api/duplicates?limit=120", dM = ["duplicates"], fM = "/api/batch", pM = (e) => z(u_e, e), d_e = /[\s\-_.()[\]【】/\\]/;
+function f_e(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 && !u_e.test(n[r - 1]);) --r;
+ for (; r > 0 && !d_e.test(n[r - 1]);) --r;
return r >= 8 ? n.slice(0, r) : "";
}
-var f_e = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
-async function p_e(e) {
+var p_e = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
+async function m_e(e) {
await Promise.all([V.fetchQuery({
- queryKey: fM,
- queryFn: () => mM(e)
- }), dM(e)]);
+ queryKey: dM,
+ queryFn: () => pM(e)
+ }), uM(e)]);
}
-var hM = {
+var mM = {
largest: "最大的一个",
longest: "最长的一个",
115: "115(没有则留最大)",
pikpak: "PikPak(没有则留最大)",
all: "零个文件"
-}, m_e = (e, t) => t.filter((t) => e.some((e) => e.location === t)), gM = (e, t) => m_e(e, t).filter((t) => e.some((e) => e.location !== t)), h_e = (e, t) => t.filter((t) => e.some((e) => gM(e.files, [t]).length));
-function g_e(e, t) {
+}, h_e = (e, t) => t.filter((t) => e.some((e) => e.location === t)), hM = (e, t) => h_e(e, t).filter((t) => e.some((e) => e.location !== t)), g_e = (e, t) => t.filter((t) => e.some((e) => hM(e.files, [t]).length));
+function __e(e, t) {
let n = [];
for (let r of e) {
if (t === "all") {
@@ -40234,47 +40234,47 @@ function g_e(e, t) {
}
return n;
}
-function __e(e, t) {
+function v_e(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 _M(e, t) {
- for (let n = 0; n < e.length; n += 200) await B(pM, {
+async function gM(e, t) {
+ for (let n = 0; n < e.length; n += 200) await B(fM, {
ids: e.slice(n, n + 200),
operation: t
});
}
//#endregion
//#region src/react/library-processing/library-processing.ts
-var vM = "/api/library-processing", yM = ["library-processing"], bM = (e) => z(vM, e);
-async function xM(e) {
+var _M = "/api/library-processing", vM = ["library-processing"], yM = (e) => z(_M, e);
+async function bM(e) {
await V.fetchQuery({
- queryKey: yM,
- queryFn: () => bM(e)
+ queryKey: vM,
+ queryFn: () => yM(e)
});
}
-var v_e = 2e3, y_e = 1e4, SM = "连接中断,正在重新读取处理进度";
-function b_e(e, t) {
- return e?.status === "running" ? v_e : t ? y_e : !1;
+var y_e = 2e3, b_e = 1e4, xM = "连接中断,正在重新读取处理进度";
+function x_e(e, t) {
+ return e?.status === "running" ? y_e : t ? b_e : !1;
}
-var x_e = {
+var S_e = {
reading_local: "读取本地资料",
querying_metadata: "查询外部资料",
fetching_cover: "采集缺失封面",
writing_candidates: "保存资料候选"
-}, CM = {
+}, SM = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
-function S_e(e) {
- let t = Object.entries(e).filter(([e, t]) => CM[e] && t > 0).map(([e, t]) => `${CM[e]} ${t.toLocaleString()} 部`);
+function C_e(e) {
+ let t = Object.entries(e).filter(([e, t]) => SM[e] && t > 0).map(([e, t]) => `${SM[e]} ${t.toLocaleString()} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function wM(e) {
- let t = x_e[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${hk(e.waited_seconds)}` : "";
+function CM(e) {
+ let t = S_e[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${hk(e.waited_seconds)}` : "";
return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;
}
-function C_e(e) {
+function w_e(e) {
let t = e.issue_preview || [];
return t.length ? {
label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
@@ -40288,21 +40288,21 @@ function C_e(e) {
log: e.issues_log || ""
} : null;
}
-var TM = "peach.library-processing.announced", w_e = 120;
-function T_e(e, t, n) {
+var wM = "peach.library-processing.announced", T_e = 120;
+function E_e(e, t, n) {
if (e.status !== "complete") return;
- let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < w_e;
+ let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < T_e;
if (n || r) {
try {
- if (e.job_id && localStorage.getItem(TM) === e.job_id) return;
- e.job_id && localStorage.setItem(TM, e.job_id);
+ if (e.job_id && localStorage.getItem(wM) === e.job_id) return;
+ e.job_id && localStorage.setItem(wM, e.job_id);
} catch {}
t(`扫描与资料采集已完成:识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条`);
}
}
//#endregion
//#region src/react/media-repair/media-repair.ts
-var EM = "/api/media-repair", DM = ["media-repair"], OM = ["media-repair", "libraries"], E_e = {
+var TM = "/api/media-repair", EM = ["media-repair"], DM = ["media-repair", "libraries"], D_e = {
status: "idle",
library: "",
stage: "",
@@ -40314,41 +40314,41 @@ var EM = "/api/media-repair", DM = ["media-repair"], OM = ["media-repair", "libr
missing_tool: 0,
skipped: 0,
message: ""
-}, kM = (e) => z(EM, e), AM = async (e) => (await z("/api/libraries", e)).libraries || [];
-async function D_e(e) {
+}, OM = (e) => z(TM, e), kM = async (e) => (await z("/api/libraries", e)).libraries || [];
+async function O_e(e) {
await Promise.all([V.fetchQuery({
+ queryKey: EM,
+ queryFn: () => OM(e)
+ }), V.fetchQuery({
queryKey: DM,
queryFn: () => kM(e)
- }), V.fetchQuery({
- queryKey: OM,
- queryFn: () => AM(e)
})]);
}
-var jM = (e) => Number(e).toLocaleString();
-function O_e(e) {
+var AM = (e) => Number(e).toLocaleString();
+function k_e(e) {
if (e.status === "running") {
- let t = e.total ? `${jM(Math.min(e.checked || 0, e.total))} / ${jM(e.total)}` : "准备中";
+ let t = e.total ? `${AM(Math.min(e.checked || 0, e.total))} / ${AM(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${jM(e.repaired)} 部,${jM(e.failed)} 部修不了` : `修好 ${jM(e.repaired)} 部` : "";
+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${AM(e.repaired)} 部,${AM(e.failed)} 部修不了` : `修好 ${AM(e.repaired)} 部` : "";
}
-var k_e = (e) => `${jM(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, A_e = "/api/quality-goals?limit=200", MM = ["quality-goals"], NM = (e) => z(A_e, e);
-async function j_e(e) {
+var A_e = (e) => `${AM(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, j_e = "/api/quality-goals?limit=200", jM = ["quality-goals"], MM = (e) => z(j_e, e);
+async function M_e(e) {
await V.fetchQuery({
- queryKey: MM,
- queryFn: () => NM(e)
+ queryKey: jM,
+ queryFn: () => MM(e)
});
}
-var PM = (e) => e.has_cover ? Ji(e) : `/poster?id=${e.id}&c=4`;
+var NM = (e) => e.has_cover ? Ji(e) : `/poster?id=${e.id}&c=4`;
//#endregion
//#region src/selection.ts
-function FM(e, t, n, r, i, a = i || !e.has(r)) {
+function PM(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;
}
//#endregion
//#region src/react/review/review.ts
-var M_e = "/api/review", N_e = "/api/review/decision", P_e = "/api/review/genre", IM = ["review"], LM = {
+var N_e = "/api/review", P_e = "/api/review/decision", F_e = "/api/review/genre", FM = ["review"], IM = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -40358,15 +40358,15 @@ var M_e = "/api/review", N_e = "/api/review/decision", P_e = "/api/review/genre"
fc2_markings: "FC2 评论标记",
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据"
-}, F_e = Object.keys(LM), I_e = "metadata_fields", RM = (e) => typeof e == "string" && Object.hasOwn(LM, e), L_e = {
+}, I_e = Object.keys(IM), L_e = "metadata_fields", LM = (e) => typeof e == "string" && Object.hasOwn(IM, e), R_e = {
creator_tags: "creator",
western_identity: "creator"
};
-function R_e(e, t) {
+function z_e(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 zM(e, t) {
+function RM(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -40383,10 +40383,10 @@ function zM(e, t) {
}
return [...n.values()];
}
-function z_e(e, t, n) {
- return n && zM(e, t).find((e) => e.key === n)?.rows || e;
+function B_e(e, t, n) {
+ return n && RM(e, t).find((e) => e.key === n)?.rows || e;
}
-function B_e(e, t) {
+function V_e(e, t) {
let n = ln(e.length, 20), r = un(t, n);
return {
page: r,
@@ -40394,32 +40394,32 @@ function B_e(e, t) {
rows: e.slice((r - 1) * 20, r * 20)
};
}
-function V_e(e) {
+function H_e(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 H_e(e, t, n, r, i, a) {
- return FM(e, t, n, r, i, a);
+function U_e(e, t, n, r, i, a) {
+ return PM(e, t, n, r, i, a);
}
-function BM(e, t) {
+function zM(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
-function VM(e, t) {
+function BM(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
-var HM = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
-function U_e(e, t) {
- let n = VM(e, t), r = HM(e, t);
+var VM = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
+function W_e(e, t) {
+ let n = BM(e, t), r = VM(e, t);
return r ? `${n} · ${r}` : n;
}
-var W_e = (e) => e.reason || e.evidence || e.note || e.decision_note || "", G_e = (e) => String(e.tags || "").split("|").filter(Boolean), K_e = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
-function q_e(e) {
+var G_e = (e) => e.reason || e.evidence || e.note || e.decision_note || "", K_e = (e) => String(e.tags || "").split("|").filter(Boolean), q_e = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
+function J_e(e) {
let t = e.candidates || [];
return {
candidateKey: t.length === 1 ? t[0].candidate_key : "",
assets: (e.preview_assets || []).map((e) => e.id)
};
}
-function UM(e, t, n, r) {
+function HM(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@ -40435,19 +40435,19 @@ function UM(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var J_e = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", WM = (e) => z(M_e, e), GM = (e) => B(N_e, e), Y_e = (e, t) => B(P_e, {
+var Y_e = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", UM = (e) => z(N_e, e), WM = (e) => B(P_e, e), X_e = (e, t) => B(F_e, {
genre: e,
tag: t
});
-async function X_e(e) {
+async function Z_e(e) {
await V.fetchQuery({
- queryKey: IM,
- queryFn: () => WM(e)
+ queryKey: FM,
+ queryFn: () => UM(e)
});
}
-function KM(e, t) {
+function GM(e, t) {
let n = new Set(t);
- n.size && V.setQueryData(IM, (t) => {
+ n.size && V.setQueryData(FM, (t) => {
if (!t) return t;
let r = t.sections[e] || [], i = r.filter((e) => !n.has(String(e.item_key)));
return i.length === r.length ? t : {
@@ -40463,193 +40463,193 @@ function KM(e, t) {
};
});
}
-var Z_e = () => V.invalidateQueries({
- queryKey: IM,
+var Q_e = () => V.invalidateQueries({
+ queryKey: FM,
exact: !0
});
-function Q_e(e, t) {
+function $_e(e, t) {
return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${gn(e.fetched_at)} 的缓存` : e?.error || t;
}
//#endregion
//#region src/react/data-cleanup/links.ts
-var $_e = "/api/links", qM = "/api/links/check", JM = "/api/links/prune", YM = ["links"], XM = ["links", "check"], ZM = ["links", "prune"], QM = {
+var eve = "/api/links", KM = "/api/links/check", qM = "/api/links/prune", JM = ["links"], YM = ["links", "check"], XM = ["links", "prune"], ZM = {
official: "官网/事务所",
social: "社交账号",
catalog: "作品资料站",
source_reference: "资料出处"
};
-async function $M(e) {
+async function QM(e) {
let t = await e;
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
-var eN = (e) => z($_e, e), tN = (e) => B(qM, { status_only: !0 }, "POST", e), eve = ({ retry: e, checkId: t }) => $M(B(qM, e ? {
+var $M = (e) => z(eve, e), eN = (e) => B(KM, { status_only: !0 }, "POST", e), tve = ({ retry: e, checkId: t }) => QM(B(KM, e ? {
retry: e,
check_id: t
-} : { restart: !0 })), nN = (e) => z(JM, e), tve = (e) => $M(B(JM, {
+} : { restart: !0 })), tN = (e) => z(qM, e), nve = (e) => QM(B(qM, {
confirm: !0,
check_id: e,
background: !0
-})), rN = (e) => Number(e || 0).toLocaleString(), nve = (e) => `已删除 ${rN(e.removed)} 条;${e.marked ? `已隐退女优的 ${rN(e.marked)} 条留作不可点的记录;` : ""}保留 ${rN(e.recovered)} 条未确认失效的链接。`;
-function rve(e) {
+})), nN = (e) => Number(e || 0).toLocaleString(), rve = (e) => `已删除 ${nN(e.removed)} 条;${e.marked ? `已隐退女优的 ${nN(e.marked)} 条留作不可点的记录;` : ""}保留 ${nN(e.recovered)} 条未确认失效的链接。`;
+function ive(e) {
let t = e.scope === "retry";
- return e.total ? `${t ? "已重验" : "已检查"} ${rN(e.checked)} / ${rN(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
+ return e.total ? `${t ? "已重验" : "已检查"} ${nN(e.checked)} / ${nN(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
//#endregion
//#region src/react/settings-panel/settings-data.ts
-var iN = "/api/settings", aN = "/api/follow/schedule", oN = "/api/thumbnail-jobs", sN = ["settings"], cN = ["follow-schedule"], lN = ["thumbnail-jobs"], uN = (e) => z(iN, e), ive = (e) => z(aN, e), ave = (e) => z(oN, e);
-function ove(e = V) {
+var rN = "/api/settings", iN = "/api/follow/schedule", aN = "/api/thumbnail-jobs", oN = ["settings"], sN = ["follow-schedule"], cN = ["thumbnail-jobs"], lN = (e) => z(rN, e), ave = (e) => z(iN, e), ove = (e) => z(aN, e);
+function sve(e = V) {
return e.fetchQuery({
- queryKey: sN,
- queryFn: ({ signal: e }) => uN(e),
+ queryKey: oN,
+ queryFn: ({ signal: e }) => lN(e),
staleTime: 0
}).catch(() => null);
}
-function dN() {
+function uN() {
return ft({
- mutationFn: (e) => B(iN, e),
- onSuccess: (e) => V.setQueryData(sN, e)
+ mutationFn: (e) => B(rN, e),
+ onSuccess: (e) => V.setQueryData(oN, e)
});
}
-function sve() {
+function cve() {
return ft({
- mutationFn: (e) => B(aN, {
+ mutationFn: (e) => B(iN, {
enabled: e > 0,
interval_minutes: e || 60
}),
- onSuccess: (e) => V.setQueryData(cN, e)
+ onSuccess: (e) => V.setQueryData(sN, e)
});
}
-function cve() {
+function lve() {
return ft({
- mutationFn: (e) => B(oN, { mode: e }),
- onSuccess: (e) => V.setQueryData(lN, e)
+ mutationFn: (e) => B(aN, { mode: e }),
+ onSuccess: (e) => V.setQueryData(cN, e)
});
}
//#endregion
//#region src/react/data-cleanup/organize.ts
-var lve = "/api/organize", uve = "/api/organize/preview", dve = "/api/organize/apply", fve = "/api/organize/rollback", fN = ["organize"], pN = (e) => z(lve, e);
-async function pve(e) {
+var uve = "/api/organize", dve = "/api/organize/preview", fve = "/api/organize/apply", pve = "/api/organize/rollback", dN = ["organize"], fN = (e) => z(uve, e);
+async function mve(e) {
await V.fetchQuery({
- queryKey: fN,
- queryFn: () => pN(e)
+ queryKey: dN,
+ queryFn: () => fN(e)
});
}
-var mve = (e) => B(uve, e), hve = (e) => e.kind === "apply" ? B(dve, {
+var hve = (e) => B(dve, e), gve = (e) => e.kind === "apply" ? B(fve, {
...e.request,
confirm: !0
-}) : B(fve, { confirm: !0 });
-async function gve(e) {
- V.setQueryData(fN, (t) => t && {
+}) : B(pve, { confirm: !0 });
+async function _ve(e) {
+ V.setQueryData(dN, (t) => t && {
...t,
templates: e
});
try {
- await B(iN, { organizeTemplates: e });
+ await B(rN, { organizeTemplates: e });
} catch {}
}
-var _ve = (e, t) => e && {
+var vve = (e, t) => e && {
...e,
...t
-}, vve = /目录模板|分隔符|盘符|`\.`/;
-function mN(e) {
+}, yve = /目录模板|分隔符|盘符|`\.`/;
+function pN(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
-var hN = (e) => Number(e || 0).toLocaleString();
-function yve(e) {
- let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${hN(t)}`).join(" · ");
- return Number(e.counts?.change || 0) ? `${hN(e.counts.change)} 个文件会改名或移动,${hN(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
+var mN = (e) => Number(e || 0).toLocaleString();
+function bve(e) {
+ let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${mN(t)}`).join(" · ");
+ return Number(e.counts?.change || 0) ? `${mN(e.counts.change)} 个文件会改名或移动,${mN(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
}
-function gN(e) {
+function hN(e) {
let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);
return {
- text: t ? `已退回 ${hN(r)} 个文件${n ? `,${hN(n)} 行未能退回` : ""}。` : `已整理 ${hN(r)} 个文件${n ? `,${hN(n)} 行未能处理` : ""}。`,
+ text: t ? `已退回 ${mN(r)} 个文件${n ? `,${mN(n)} 行未能退回` : ""}。` : `已整理 ${mN(r)} 个文件${n ? `,${mN(n)} 行未能处理` : ""}。`,
failed: n,
rollback: t
};
}
//#endregion
//#region src/react/data-cleanup/resource-sync.ts
-var _N = "/api/resource-sync/scan", vN = "/api/resource-sync/apply", yN = ["resource-sync", "scan"], bN = ["resource-sync", "apply"], xN = (e) => B(_N, {
+var gN = "/api/resource-sync/scan", _N = "/api/resource-sync/apply", vN = ["resource-sync", "scan"], yN = ["resource-sync", "apply"], bN = (e) => B(gN, {
background: !0,
status_only: !0
-}, "POST", e), bve = () => B(_N, {
+}, "POST", e), xve = () => B(gN, {
background: !0,
restart: !0
-}), SN = (e) => z(vN, e), xve = (e) => B(vN, {
+}), xN = (e) => z(_N, e), Sve = (e) => B(_N, {
confirm: !0,
clean_cache: !0,
scan_id: e,
background: !0
-}), CN = (e) => (e?.sources ?? []).some((e) => s_e.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
-async function Sve(e) {
- CN(V.getQueryData(fn)) && await Promise.all([V.fetchQuery({
+}), SN = (e) => (e?.sources ?? []).some((e) => c_e.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
+async function Cve(e) {
+ SN(V.getQueryData(fn)) && await Promise.all([V.fetchQuery({
+ queryKey: vN,
+ queryFn: () => bN(e)
+ }), V.fetchQuery({
queryKey: yN,
queryFn: () => xN(e)
- }), V.fetchQuery({
- queryKey: bN,
- queryFn: () => SN(e)
})]);
}
-var Cve = (e) => !!(e?.missing || e?.empty || e?.cache?.files), wve = {
+var wve = (e) => !!(e?.missing || e?.empty || e?.cache?.files), Tve = {
local: "本地磁盘",
115: "115",
pikpak: "PikPak"
-}, wN = (e) => Number(e || 0).toLocaleString(), Tve = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", TN = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), EN = (e) => e.vanish ? `${wN(e.vanish)} 条带个人记录的标为已消失,记录留着,可在孤儿记录里接到新文件或彻底删除。` : "", DN = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", Eve = (e) => `将永久删除文件已不在盘上的 ${wN(TN(e))} 条记录和 ${wN(e.empty)} 个空文件夹,并清理 ${wN(e.cache?.files)} 个闲置缓存。${DN(e)}${EN(e)}`, Dve = (e) => `将永久删除文件已不在盘上的 ${wN(TN(e))} 条记录(含回收站里的)、${wN(e.empty)} 个空文件夹,并清理 ${wN(e.cache?.files)} 个闲置缓存。来源根目录保留。${DN(e)}${EN(e)}`, Ove = (e) => e.online ? [
- `找不到文件 · 共 ${wN(e.total)} 项`,
- e.vanish ? `${wN(e.vanish)} 项带个人记录` : "",
- e.empty ? `空文件夹 ${wN(e.empty)} 个` : "",
- e.unreadable ? `${wN(e.unreadable)} 个目录读取失败,已跳过` : ""
-].filter(Boolean).join(" · ") : `馆藏中有 ${wN(e.total)} 项`;
-function ON(e) {
+}, CN = (e) => Number(e || 0).toLocaleString(), Eve = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", wN = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), TN = (e) => e.vanish ? `${CN(e.vanish)} 条带个人记录的标为已消失,记录留着,可在孤儿记录里接到新文件或彻底删除。` : "", EN = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", Dve = (e) => `将永久删除文件已不在盘上的 ${CN(wN(e))} 条记录和 ${CN(e.empty)} 个空文件夹,并清理 ${CN(e.cache?.files)} 个闲置缓存。${EN(e)}${TN(e)}`, Ove = (e) => `将永久删除文件已不在盘上的 ${CN(wN(e))} 条记录(含回收站里的)、${CN(e.empty)} 个空文件夹,并清理 ${CN(e.cache?.files)} 个闲置缓存。来源根目录保留。${EN(e)}${TN(e)}`, kve = (e) => e.online ? [
+ `找不到文件 · 共 ${CN(e.total)} 项`,
+ e.vanish ? `${CN(e.vanish)} 项带个人记录` : "",
+ e.empty ? `空文件夹 ${CN(e.empty)} 个` : "",
+ e.unreadable ? `${CN(e.unreadable)} 个目录读取失败,已跳过` : ""
+].filter(Boolean).join(" · ") : `馆藏中有 ${CN(e.total)} 项`;
+function DN(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 ? `${wN(t.length)} 条记录没有删除(${o})` : "",
- n ? `${wN(n)} 个文件夹没有删除` : "",
- r.length ? `${wN(r.length)} 个缓存没有清理` : ""
+ t.length ? `${CN(t.length)} 条记录没有删除(${o})` : "",
+ n ? `${CN(n)} 个文件夹没有删除` : "",
+ r.length ? `${CN(r.length)} 个缓存没有清理` : ""
].filter(Boolean).join(",")
};
}
-var kve = (e, t) => {
- let { rest: n } = ON(e), r = `已永久删除 ${wN(e.purged)} 条失效记录和 ${wN(e.dirs_removed)} 个空文件夹,清理 ${wN(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${wN(e.vanished)} 条带个人记录的已标为已消失,可在孤儿记录里处理。` : "") + (e.reattached ? `${wN(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
+var Ave = (e, t) => {
+ let { rest: n } = DN(e), r = `已永久删除 ${CN(e.purged)} 条失效记录和 ${CN(e.dirs_removed)} 个空文件夹,清理 ${CN(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${CN(e.vanished)} 条带个人记录的已标为已消失,可在孤儿记录里处理。` : "") + (e.reattached ? `${CN(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
return n ? `${r}${n},重新检查后可再试。` : r;
-}, Ave = "/api/review?counts=1", kN = ["review", "counts"], jve = "/api/ads?limit=1", AN = ["junk-summary"], jN = "/api/items?state=trash&limit=1", MN = ["trash-summary"], Mve = [
+}, jve = "/api/review?counts=1", ON = ["review", "counts"], Mve = "/api/ads?limit=1", kN = ["junk-summary"], AN = "/api/items?state=trash&limit=1", jN = ["trash-summary"], Nve = [
["video", "视频"],
["image", "图片"],
["archive", "压缩包"],
["audio", "音频"],
["url", "网址"],
["other", "其它"]
-], NN = (e) => z(Ave, e), PN = (e) => z(jve, e), FN = (e) => {
+], MN = (e) => z(jve, e), NN = (e) => z(Mve, e), PN = (e) => {
let t = sessionStorage.getItem("peach.library");
- return z(t ? `${jN}&library=${encodeURIComponent(t)}` : jN, e);
-}, IN = (e) => Number(e || 0).toLocaleString();
-function Nve(e) {
- let t = LM, 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 z(t ? `${AN}&library=${encodeURIComponent(t)}` : AN, e);
+}, FN = (e) => Number(e || 0).toLocaleString();
+function Pve(e) {
+ let t = IM, 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 Pve(e) {
+function Fve(e) {
if (!e) return "";
- let t = Mve.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${IN(e.counts[t])}`);
- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${IN(e.dismissed_total)}`), t.join(" · ");
-}
-var Fve = [
- [kN, ({ signal: e }) => NN(e)],
- [MM, ({ signal: e }) => NM(e)],
- [MN, ({ signal: e }) => FN(e)],
+ let t = Nve.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${FN(e.counts[t])}`);
+ return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${FN(e.dismissed_total)}`), t.join(" · ");
+}
+var Ive = [
+ [ON, ({ signal: e }) => MN(e)],
+ [jM, ({ signal: e }) => MM(e)],
+ [jN, ({ signal: e }) => PN(e)],
+ [JM, ({ signal: e }) => $M(e)],
[YM, ({ signal: e }) => eN(e)],
- [XM, ({ signal: e }) => tN(e)],
- [ZM, ({ signal: e }) => nN(e)]
+ [XM, ({ signal: e }) => tN(e)]
];
-async function Ive(e) {
- let t = location.hash === "#resource-sync", n = Fve.map(([n, r]) => {
+async function Lve(e) {
+ let t = location.hash === "#resource-sync", n = Ive.map(([n, r]) => {
if (t) return V.fetchQuery({
queryKey: n,
queryFn: () => r({ signal: e })
@@ -40662,40 +40662,40 @@ async function Ive(e) {
await Promise.all([
...n,
V.fetchQuery({
- queryKey: AN,
- queryFn: () => PN(e)
+ queryKey: kN,
+ queryFn: () => NN(e)
}),
V.fetchQuery({
- queryKey: fM,
- queryFn: () => mM(e)
+ queryKey: dM,
+ queryFn: () => pM(e)
}),
- dM(e).then(() => Sve(e)),
- xM(e),
- D_e(e),
- pve(e)
+ uM(e).then(() => Cve(e)),
+ bM(e),
+ O_e(e),
+ mve(e)
]);
}
//#endregion
//#region src/react/components/stat-card.tsx
-var Lve = [
+var Rve = [
"text-chart-6",
"text-chart-5",
"text-chart-7",
"text-chart-8"
-], Rve = [
+], zve = [
"bg-chart-6/10",
"bg-chart-5/10",
"bg-chart-7/10",
"bg-chart-8/10"
];
-function LN(e = {}) {
+function IN(e = {}) {
return `${WO({
...e,
padding: "none"
})} flex flex-col overflow-hidden pt-4 text-left`;
}
-var RN = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", zve = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
-function zN({ interactive: e = !1 } = {}) {
+var LN = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", Bve = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
+function RN({ interactive: e = !1 } = {}) {
return WO({
padding: "none",
radius: "plain",
@@ -40703,8 +40703,8 @@ function zN({ interactive: e = !1 } = {}) {
className: "flex min-h-33 flex-col gap-2 p-4 text-left"
});
}
-var Bve = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
-function BN({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
+var Vve = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
+function zN({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
/* @__PURE__ */ (0, x.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 text-body-medium text-text-secondary",
@@ -40737,13 +40737,13 @@ function BN({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta
})
] });
}
-function VN({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
+function BN({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
/* @__PURE__ */ (0, x.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, x.jsx)("i", {
"aria-hidden": !0,
- className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${Lve[n % 4]} ${Rve[n % 4]}`,
+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${Rve[n % 4]} ${zve[n % 4]}`,
children: /* @__PURE__ */ (0, x.jsx)(t, {
"aria-hidden": !0,
className: "size-4"
@@ -40765,16 +40765,16 @@ function VN({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
}
//#endregion
//#region src/react/components/menu-dialog.tsx
-function HN(e) {
- let t = pj("hover");
- return /* @__PURE__ */ (0, x.jsx)(DA, {
+function VN(e) {
+ let t = fj("hover");
+ return /* @__PURE__ */ (0, x.jsx)(EA, {
...e,
ref: t
});
}
//#endregion
//#region src/react/boardui/components/base/dropdown/menu-styles.ts
-var UN = [
+var HN = [
"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",
@@ -40782,31 +40782,31 @@ var UN = [
"data-[exiting]:opacity-0 data-[exiting]:scale-95 data-[exiting]:blur-[2px]",
"data-[placement=bottom]:origin-top-left data-[placement=top]:origin-bottom-left",
"data-[placement=left]:origin-right data-[placement=right]:origin-left"
-].join(" "), Vve = "w-[266px]", Hve = "flex w-full flex-col gap-1 outline-none", WN = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), GN = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background", Uve = "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden font-sans", KN = {
+].join(" "), Hve = "w-[266px]", Uve = "flex w-full flex-col gap-1 outline-none", UN = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), WN = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background", Wve = "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden font-sans", GN = {
medium: "h-9 rounded-2lg p-2 text-body-medium",
small: "h-8 rounded-lg px-2 py-1.5 text-body-medium"
-}, Wve = {
- medium: KN.medium,
- small: "size-8 rounded-lg p-0 text-body-medium"
}, Gve = {
+ medium: GN.medium,
+ small: "size-8 rounded-lg p-0 text-body-medium"
+}, Kve = {
medium: "size-5 shrink-0",
small: "size-[18px] shrink-0"
-}, Kve = {
+}, qve = {
medium: "inline-flex items-center justify-center px-1 shrink-0",
small: "inline-flex items-center justify-center px-0.5 shrink-0"
-}, qve = {
+}, Jve = {
primary: "bg-button-primary text-text-white shadow-xs",
secondary: "bg-background-primary-default text-text-primary border border-border-button-default shadow-xs",
ghost: "bg-button-ghost-background text-button-ghost-foreground"
-}, qN = (e, t) => `<svg class="${t}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><use href="#i-${e}"/></svg>`;
-function JN(e, t = "", n = e) {
- return `<div data-input-size="medium" class="group flex h-max w-full flex-col items-start gap-1"><div data-rac class="relative flex w-full items-center rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent p-2"><div class="flex w-full items-center gap-2 min-w-0"><div class="flex flex-1 items-center gap-0.5 min-w-0">${qN("search", "size-5 shrink-0")}<input type="search" readonly tabindex="-1" aria-label="${L(n)}" value="${L(t)}" placeholder="${L(e)}" class="min-w-0 flex-1 bg-transparent border-0 outline-none p-0 m-0 font-sans text-body-regular text-text-primary pl-1 placeholder:text-text-tertiary"></div></div></div></div>`;
+}, KN = (e, t) => `<svg class="${t}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><use href="#i-${e}"/></svg>`;
+function qN(e, t = "", n = e) {
+ return `<div data-input-size="medium" class="group flex h-max w-full flex-col items-start gap-1"><div data-rac class="relative flex w-full items-center rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent p-2"><div class="flex w-full items-center gap-2 min-w-0"><div class="flex flex-1 items-center gap-0.5 min-w-0">${KN("search", "size-5 shrink-0")}<input type="search" readonly tabindex="-1" aria-label="${L(n)}" value="${L(t)}" placeholder="${L(e)}" class="min-w-0 flex-1 bg-transparent border-0 outline-none p-0 m-0 font-sans text-body-regular text-text-primary pl-1 placeholder:text-text-tertiary"></div></div></div></div>`;
}
-function YN({ variant: e = "primary", size: t = "medium", glyph: n, label: r, attrs: i = "", compact: a = !1 }) {
- let o = r ? KN[t] : Wve[t], s = n ? qN(n, Gve[t]) : "", c = r ? `<span class="${Kve[t]}"${a ? " data-compact-label" : ""}>${r}</span>` : "";
- return `<button type="button" class="${Uve} ${o} ${qve[e]}"${i ? ` ${i}` : ""}>${s}${c}</button>`;
+function JN({ variant: e = "primary", size: t = "medium", glyph: n, label: r, attrs: i = "", compact: a = !1 }) {
+ let o = r ? GN[t] : Gve[t], s = n ? KN(n, Kve[t]) : "", c = r ? `<span class="${qve[t]}"${a ? " data-compact-label" : ""}>${r}</span>` : "";
+ return `<button type="button" class="${Wve} ${o} ${Jve[e]}"${i ? ` ${i}` : ""}>${s}${c}</button>`;
}
-var Jve = {
+var Yve = {
md: {
box: "gap-1.5 px-2.5 py-2 text-body-medium",
value: "gap-[5px]",
@@ -40818,156 +40818,156 @@ var Jve = {
chevron: "size-3.5"
}
};
-function XN(e, { size: t = "md", className: n = "", attrs: r = "" } = {}) {
- let i = Jve[t];
- return `<div class="group flex flex-col${n ? ` ${n}` : ""}"><button type="button" aria-haspopup="listbox"${r ? ` ${r}` : ""} class="flex w-full items-center justify-between rounded-2lg border border-border-button-default bg-background-primary-default shadow-xs text-text-primary ${i.box}"><span class="flex min-w-0 items-center truncate ${i.value}">${e}</span>${qN("chevron-down", `shrink-0 text-text-secondary ${i.chevron}`)}</button></div>`;
+function YN(e, { size: t = "md", className: n = "", attrs: r = "" } = {}) {
+ let i = Yve[t];
+ return `<div class="group flex flex-col${n ? ` ${n}` : ""}"><button type="button" aria-haspopup="listbox"${r ? ` ${r}` : ""} class="flex w-full items-center justify-between rounded-2lg border border-border-button-default bg-background-primary-default shadow-xs text-text-primary ${i.box}"><span class="flex min-w-0 items-center truncate ${i.value}">${e}</span>${KN("chevron-down", `shrink-0 text-text-secondary ${i.chevron}`)}</button></div>`;
}
-var Yve = "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", Xve = "flex min-w-0 flex-col gap-2", Zve = "text-body-regular text-text-secondary", Qve = "text-display-4-medium tabular-nums text-text-primary", $ve = "relative inline-block h-8 w-24 rounded-2lg align-middle skeleton-sheen";
-function ZN(e) {
- return `<div data-collection-summary="" class="${Yve}"><div class="${Xve}"><span class="${Zve}">${e}</span><strong class="${Qve}"><span data-skeleton="count" aria-hidden="true" class="${$ve}"></span></strong></div></div>`;
+var Xve = "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", Zve = "flex min-w-0 flex-col gap-2", Qve = "text-body-regular text-text-secondary", $ve = "text-display-4-medium tabular-nums text-text-primary", eye = "relative inline-block h-8 w-24 rounded-2lg align-middle skeleton-sheen";
+function XN(e) {
+ return `<div data-collection-summary="" class="${Xve}"><div class="${Zve}"><span class="${Qve}">${e}</span><strong class="${$ve}"><span data-skeleton="count" aria-hidden="true" class="${eye}"></span></strong></div></div>`;
}
//#endregion
//#region src/management.ts
-var QN = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", $N = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", eP = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", tP = "type=\"button\" disabled data-skeleton-action", nP = "disabled data-skeleton-action", eye = "aria-disabled=\"true\"", rP = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, iP = (e, t) => `<div data-geist-fieldset-content>
+var ZN = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", QN = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", $N = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", eP = "type=\"button\" disabled data-skeleton-action", tP = "disabled data-skeleton-action", tye = "aria-disabled=\"true\"", nP = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, rP = (e, t) => `<div data-geist-fieldset-content>
<h3 class="text-title-2-medium text-text-primary">${e}</h3>
<p class="text-body-2-regular text-text-secondary">${t}</p></div>`;
-function tye() {
- return rP(`<section aria-label="扫描与采集" data-geist-fieldset data-cleanup-task data-cleanup-processing data-fieldset-stack>
- ${iP("扫描与采集", QN)}
- <footer data-geist-fieldset-footer><a href="/scraping" class="inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans rounded-sm text-body-medium text-accent-600"><span>来源和凭证</span>${qN("arrow-up", "size-[18px] shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${YN({
+function nye() {
+ return nP(`<section aria-label="扫描与采集" data-geist-fieldset data-cleanup-task data-cleanup-processing data-fieldset-stack>
+ ${rP("扫描与采集", ZN)}
+ <footer data-geist-fieldset-footer><a href="/scraping" class="inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans rounded-sm text-body-medium text-accent-600"><span>来源和凭证</span>${KN("arrow-up", "size-[18px] shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${JN({
glyph: "database",
label: "扫描并补全资料",
- attrs: nP
- })}${YN({
+ attrs: tP
+ })}${JN({
glyph: "chevron-down",
- attrs: `${nP} aria-label="更多扫描与采集方式"`
+ attrs: `${tP} aria-label="更多扫描与采集方式"`
})}</span></footer>
</section>`);
}
-function nye() {
- return rP(`<section aria-label="媒体修复" data-geist-fieldset data-cleanup-task data-cleanup-processing>
- ${iP("媒体修复", $N)}
- <footer data-geist-fieldset-footer>${XN(eP, {
+function rye() {
+ return nP(`<section aria-label="媒体修复" data-geist-fieldset data-cleanup-task data-cleanup-processing>
+ ${rP("媒体修复", QN)}
+ <footer data-geist-fieldset-footer>${YN($N, {
className: "w-48",
- attrs: eye
- })}${YN({
+ attrs: tye
+ })}${JN({
label: "开始修复",
- attrs: nP
+ attrs: tP
})}</footer>
</section>`);
}
-function aP() {
+function iP() {
let e = [
["人工复核", "square-check-big"],
["高清版", "sparkles"],
["重复文件", "file-stack"],
["垃圾文件", "file-archive"],
["回收站", "trash"]
- ], t = `<span class="geist-button ui-organize-preset-skeleton">${eP}</span>`.repeat(3), n = (e) => `<div class="ui-organizefield"><span>${e}</span>
- <span class="geist-input ui-organize-input-skeleton">${eP}</span></div>`;
+ ], t = `<span class="geist-button ui-organize-preset-skeleton">${$N}</span>`.repeat(3), n = (e) => `<div class="ui-organizefield"><span>${e}</span>
+ <span class="geist-input ui-organize-input-skeleton">${$N}</span></div>`;
return `<div class="ui-cleanuppage" data-skeleton="cleanup" aria-busy="true" aria-label="正在读取数据管理状态">
<div class="ui-cleanupstats">${e.map(([e, t]) => `
<button type="button" class="board-plain-stat" disabled>
<span class="ui-board-plain-stat-head"><span class="ui-board-stat-tile">${I(t)}</span>${e}</span>
- <strong>${eP}</strong><span class="cleanupmeta">${eP}</span></button>`).join("")}</div>
+ <strong>${$N}</strong><span class="cleanupmeta">${$N}</span></button>`).join("")}</div>
<div class="cleanupgrid">
- <div class="cleanupscraping">${tye()}</div>
- <div class="cleanupmediarepair">${nye()}</div>
+ <div class="cleanupscraping">${nye()}</div>
+ <div class="cleanupmediarepair">${rye()}</div>
<section class="cleanupfieldset cleanuporganize" data-geist-fieldset data-cleanup-task aria-labelledby="cleanup-loading-organize">
<div class="geist-fieldset-content"><h3 class="geist-fieldset-title" id="cleanup-loading-organize">整理</h3>
<p>按模板给文件改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。</p>
<div class="ui-organizefields">
- <div class="organizesource"><span class="ui-gselect"><span class="gselectfield organize-source-skeleton">${eP}${I("chevron-down")}</span></span></div>
+ <div class="organizesource"><span class="ui-gselect"><span class="gselectfield organize-source-skeleton">${$N}${I("chevron-down")}</span></span></div>
${n("文件名模板")}
${n("目录模板")}
<div class="ui-organizepresets">${t}</div>
- <p class="cleanupmeta">${eP}</p>
+ <p class="cleanupmeta">${$N}</p>
</div></div>
- <footer class="geist-fieldset-footer" data-geist-fieldset-footer><button class="geist-button primary" ${tP}>预览</button></footer>
+ <footer class="geist-fieldset-footer" data-geist-fieldset-footer><button class="geist-button primary" ${eP}>预览</button></footer>
</section></div>
<section class="ui-resourcesync" aria-labelledby="cleanup-loading-links">
<h2 id="cleanup-loading-links">链接管理</h2>
<div class="resourcesyncbox" data-geist-fieldset data-cleanup-task data-fieldset-stack>
<div class="resourcesyncbody geist-fieldset-content"><h3 class="geist-fieldset-title">站外链接</h3>
- <div class="linksummary"><div class="ui-linkstats"><div><span>链接总数</span><b>${eP}</b><small>${eP}</small></div>${[
+ <div class="linksummary"><div class="ui-linkstats"><div><span>链接总数</span><b>${$N}</b><small>${$N}</small></div>${[
"官网/事务所",
"社交账号",
"作品资料站"
- ].map((e) => `<div><span>${e}</span><b>${eP}</b></div>`).join("")}</div>
- <div class="ui-linkhosts"><span>主要站点</span><b>${eP}</b></div></div></div>
- <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${tP}>${I("unlink")}<span>检查死链</span></button></div>
+ ].map((e) => `<div><span>${e}</span><b>${$N}</b></div>`).join("")}</div>
+ <div class="ui-linkhosts"><span>主要站点</span><b>${$N}</b></div></div></div>
+ <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${eP}>${I("unlink")}<span>检查死链</span></button></div>
</div></section>
<section class="ui-resourcesync" aria-labelledby="cleanup-loading-sync">
<h2 id="cleanup-loading-sync">资源同步</h2>
<div class="resourcesyncbox" data-geist-fieldset data-cleanup-task>
<div class="resourcesyncbody geist-fieldset-content"><h3 class="geist-fieldset-title">文件与记录核对</h3>
<p>按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。</p></div>
- <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${tP}>${I("git-compare")}<span>检查文件</span></button></div>
+ <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${eP}>${I("git-compare")}<span>检查文件</span></button></div>
</div></section></div>`;
}
//#endregion
//#region src/react/components/fieldset.tsx
-var rye = WO({
+var iye = WO({
padding: "none",
bordered: "line",
className: "overflow-hidden"
-}), iye = {
+}), aye = {
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"
-}, aye = {
+}, oye = {
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"
-}, oye = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", sye = {
+}, sye = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", cye = {
neutral: "border-border-button-default bg-card-footer",
error: "border-border-error-default bg-background-tertiary-error"
-}, cye = WO({
+}, lye = WO({
padding: "none",
radius: "surface",
bordered: "line",
className: "overflow-hidden"
-}), oP = "border-t border-border-button-default p-4 first:border-t-0";
-function sP({ tone: e = "neutral", status: t, children: n }) {
+}), aP = "border-t border-border-button-default p-4 first:border-t-0";
+function oP({ tone: e = "neutral", status: t, children: n }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
- className: `${oye} ${sye[e]}`,
+ className: `${sye} ${cye[e]}`,
children: [t ? /* @__PURE__ */ (0, x.jsx)("p", {
className: `mr-auto min-w-0 text-caption-1-regular ${e === "error" ? "text-text-error-primary" : "text-text-secondary"}`,
children: t
}) : null, n]
});
}
-function cP({ id: e, children: t }) {
+function sP({ id: e, children: t }) {
return /* @__PURE__ */ (0, x.jsx)("h2", {
id: e,
className: "text-title-2-medium! m-0! text-text-primary",
children: t
});
}
-function lP({ id: e, gap: t = "none", children: n }) {
+function cP({ id: e, gap: t = "none", children: n }) {
return /* @__PURE__ */ (0, x.jsx)("h3", {
id: e,
className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,
children: n
});
}
-function uP({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
+function lP({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
return /* @__PURE__ */ (0, x.jsxs)("section", {
id: r,
"aria-label": t,
"aria-labelledby": n,
...o,
- className: `${rye} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
+ className: `${iye} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
children: [/* @__PURE__ */ (0, x.jsx)("div", {
- className: iye[e],
+ className: aye[e],
children: a
}), i ? /* @__PURE__ */ (0, x.jsx)("footer", {
- className: aye[e],
+ className: oye[e],
children: i
}) : null]
});
}
//#endregion
//#region src/react/components/overlay-scrollbar.ts
-function dP() {
+function uP() {
let e = (0, b.useRef)(null);
return (0, b.useEffect)(() => {
ma(e.current);
@@ -40975,7 +40975,7 @@ function dP() {
}
//#endregion
//#region src/react/boardui/components/base/buttons/icon-button.tsx
-var fP = zO({
+var dP = zO({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -40996,21 +40996,21 @@ var fP = zO({
small: "size-4 shrink-0"
}
});
-function pP({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function fP({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, x.jsx)("button", {
ref: i,
type: r,
- className: RO(fP.base, fP.size[t], n),
+ className: RO(dP.base, dP.size[t], n),
...a,
children: /* @__PURE__ */ (0, x.jsx)(e, {
- className: fP.icon[t],
+ className: dP.icon[t],
"aria-hidden": !0
})
});
}
//#endregion
//#region src/react/components/path-line.tsx
-function lye({ className: e }) {
+function uye({ className: e }) {
return /* @__PURE__ */ (0, x.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -41023,8 +41023,8 @@ function lye({ className: e }) {
children: /* @__PURE__ */ (0, x.jsx)("use", { href: "#i-folder-open" })
});
}
-var uye = "打开文件管理器失败,请重试";
-function mP({ path: e, prefix: t, className: n, onRevealed: r }) {
+var dye = "打开文件管理器失败,请重试";
+function pP({ path: e, prefix: t, className: n, onRevealed: r }) {
let [i, a] = (0, b.useState)(!1), [o, s] = (0, b.useState)(""), c = (0, b.useRef)(!0);
(0, b.useEffect)(() => () => {
c.current = !1;
@@ -41035,7 +41035,7 @@ function mP({ path: e, prefix: t, className: n, onRevealed: r }) {
try {
await B("/api/reveal", { path: e }), r?.("已在资源管理器中显示");
} catch (e) {
- c.current && s(e instanceof en ? e.message : uye);
+ c.current && s(e instanceof en ? e.message : dye);
} finally {
c.current && a(!1);
}
@@ -41048,8 +41048,8 @@ function mP({ path: e, prefix: t, className: n, onRevealed: r }) {
children: [/* @__PURE__ */ (0, x.jsxs)("p", {
className: RO("min-w-0 break-all", n),
children: [t, e]
- }), /* @__PURE__ */ (0, x.jsx)(pP, {
- icon: lye,
+ }), /* @__PURE__ */ (0, x.jsx)(fP, {
+ icon: uye,
size: "small",
className: "shrink-0",
"aria-label": "在资源管理器中显示",
@@ -41064,7 +41064,7 @@ function mP({ path: e, prefix: t, className: n, onRevealed: r }) {
}
//#endregion
//#region src/react/components/task-progress.tsx
-function hP({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
+function mP({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-task-progress": !0,
className: r ? "flex flex-col gap-1.5" : WO({
@@ -41084,18 +41084,18 @@ function hP({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
}
//#endregion
//#region src/react/library-processing/use-library-processing.ts
-function gP({ toast: e, mode: t, monitor: n }) {
+function hP({ toast: e, mode: t, monitor: n }) {
let r = t === "notice" || !!n, i = dt({
- queryKey: yM,
- queryFn: ({ signal: e }) => bM(e),
- refetchInterval: (e) => b_e(e.state.data, r)
+ queryKey: vM,
+ queryFn: ({ signal: e }) => yM(e),
+ refetchInterval: (e) => x_e(e.state.data, r)
}), [a, o] = (0, b.useState)(null), s = (0, b.useRef)(void 0), c = i.data;
return (0, b.useEffect)(() => {
if (!c) return;
let n = s.current;
s.current = c.status;
let r = n === "running" && c.status !== "running";
- r && o(c), (r || t === "notice") && T_e(c, e, r);
+ r && o(c), (r || t === "notice") && E_e(c, e, r);
}, [
c,
t,
@@ -41108,7 +41108,7 @@ function gP({ toast: e, mode: t, monitor: n }) {
}
//#endregion
//#region src/react/library-processing/library-processing-card.tsx
-var dye = [
+var fye = [
{
label: "扫描并补全资料",
icon: cO,
@@ -41124,13 +41124,13 @@ var dye = [
icon: Xue,
command: { stage: "collect" }
}
-], fye = RO(WN, GN, "text-body-2-medium"), pye = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", mye = (e) => {
+], pye = RO(UN, WN, "text-body-2-medium"), mye = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", hye = (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(",")}。`;
-}, hye = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + mye(e);
-function gye({ busy: e, onRun: t }) {
+}, gye = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + hye(e);
+function _ye({ busy: e, onRun: t }) {
let n = (0, b.useRef)(null), [r, i] = (0, b.useState)(!1), a = (n) => {
e || (i(!1), t(n));
};
@@ -41155,19 +41155,19 @@ function gye({ busy: e, onRun: t }) {
e || i(!0);
}
})]
- }), /* @__PURE__ */ (0, x.jsx)(gA, {
+ }), /* @__PURE__ */ (0, x.jsx)(hA, {
triggerRef: n,
isOpen: r,
onOpenChange: i,
placement: "bottom end",
offset: 4,
- className: UN,
- children: /* @__PURE__ */ (0, x.jsx)(HN, {
+ className: HN,
+ children: /* @__PURE__ */ (0, x.jsx)(VN, {
"aria-label": "更多扫描与采集方式",
className: "flex w-52 flex-col gap-1 outline-none",
- children: dye.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, x.jsxs)("button", {
+ children: fye.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
- className: fye,
+ className: pye,
onClick: () => a(n),
children: [/* @__PURE__ */ (0, x.jsx)(t, {
"aria-hidden": !0,
@@ -41177,8 +41177,8 @@ function gye({ busy: e, onRun: t }) {
})
})] });
}
-function _ye({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = C_e(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = S_e(e.notes || {}), c = dP();
+function vye({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
+ let a = w_e(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = C_e(e.notes || {}), c = uP();
return /* @__PURE__ */ (0, x.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
@@ -41186,7 +41186,7 @@ function _ye({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
e.status === "running" && e.stalled ? /* @__PURE__ */ (0, x.jsx)(K, {
tone: "warning",
title: "处理较慢",
- children: pye
+ children: mye
}) : null,
t || e.status === "failed" ? /* @__PURE__ */ (0, x.jsx)(K, {
tone: "error",
@@ -41229,7 +41229,7 @@ function _ye({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
})
}), a.log ? /* @__PURE__ */ (0, x.jsx)("div", {
className: "mt-2 border-t border-current/20 pt-2 text-text-secondary",
- children: /* @__PURE__ */ (0, x.jsx)(mP, {
+ children: /* @__PURE__ */ (0, x.jsx)(pP, {
path: a.log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -41243,13 +41243,13 @@ function _ye({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
n?.status === "complete" ? /* @__PURE__ */ (0, x.jsx)(K, {
tone: "success",
title: "处理完成",
- children: hye(n)
+ children: gye(n)
}) : null,
e.status !== "running" && s ? /* @__PURE__ */ (0, x.jsx)(K, {
tone: "neutral",
extra: e.issues_log ? /* @__PURE__ */ (0, x.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5 text-text-secondary",
- children: /* @__PURE__ */ (0, x.jsx)(mP, {
+ children: /* @__PURE__ */ (0, x.jsx)(pP, {
path: e.issues_log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -41261,22 +41261,22 @@ function _ye({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
]
});
}
-function _P(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = gP(e), o = ft({
- mutationFn: (e) => B(vM, e),
+function gP(e) {
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = hP(e), o = ft({
+ mutationFn: (e) => B(_M, e),
onSuccess: (e) => {
- a(), V.setQueryData(yM, e), V.invalidateQueries({ queryKey: yM });
+ a(), V.setQueryData(vM, e), V.invalidateQueries({ queryKey: vM });
}
});
(0, b.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = o.error ? R(o.error) : r.isError ? r.data ? SM : R(r.error) : "", l = o.isPending || s.status === "running", u = wM(s), d = (e) => {
+ let s = r.data ?? { status: "idle" }, c = o.error ? R(o.error) : r.isError ? r.data ? xM : R(r.error) : "", l = o.isPending || s.status === "running", u = CM(s), d = (e) => {
l || (o.reset(), o.mutate(e));
};
return /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, x.jsx)(uP, {
+ children: [/* @__PURE__ */ (0, x.jsx)(lP, {
layout: "stack",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
@@ -41292,7 +41292,7 @@ function _P(e) {
trailingIcon: iO,
children: "复核资料"
}) : null,
- /* @__PURE__ */ (0, x.jsx)(gye, {
+ /* @__PURE__ */ (0, x.jsx)(_ye, {
busy: l,
onRun: d
})
@@ -41300,12 +41300,12 @@ function _P(e) {
children: /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, x.jsx)(lP, { children: "扫描与采集" }),
+ /* @__PURE__ */ (0, x.jsx)(cP, { children: "扫描与采集" }),
/* @__PURE__ */ (0, x.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: QN
+ children: ZN
}),
- s.status === "running" ? /* @__PURE__ */ (0, x.jsx)(hP, {
+ s.status === "running" ? /* @__PURE__ */ (0, x.jsx)(mP, {
embedded: !0,
label: u,
value: Math.min(s.checked || 0, s.total || 0),
@@ -41313,7 +41313,7 @@ function _P(e) {
}) : null
]
})
- }), /* @__PURE__ */ (0, x.jsx)(_ye, {
+ }), /* @__PURE__ */ (0, x.jsx)(vye, {
state: s,
problem: c,
settled: i,
@@ -41329,7 +41329,7 @@ function _P(e) {
}
//#endregion
//#region src/react/boardui/components/foundations/icons/chevrons.tsx
-function vye(e) {
+function yye(e) {
return /* @__PURE__ */ (0, x.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -41343,7 +41343,7 @@ function vye(e) {
})
});
}
-function yye(e) {
+function bye(e) {
return /* @__PURE__ */ (0, x.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
@@ -41357,7 +41357,7 @@ function yye(e) {
}
//#endregion
//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function bye(e, t, n) {
+function xye(e, t, n) {
(0, b.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -41371,7 +41371,7 @@ function bye(e, t, n) {
n
]);
}
-function xye(e, t) {
+function Sye(e, t) {
let n = (0, b.useRef)(!1);
return (0, b.useEffect)(() => {
if (!e) return;
@@ -41385,12 +41385,12 @@ function xye(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/select/select.tsx
-var vP = (0, b.createContext)("md");
-function yP({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+var _P = (0, b.createContext)("md");
+function vP({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
let l = (0, b.useRef)(null), u = (0, b.useRef)(null), [d, f] = (0, b.useState)(!1);
- bye(d, () => f(!1), [l, u]);
- let p = xye(d, l);
- return /* @__PURE__ */ (0, x.jsx)(whe, {
+ xye(d, () => f(!1), [l, u]);
+ let p = Sye(d, l);
+ return /* @__PURE__ */ (0, x.jsx)(The, {
ref: s,
...c,
isOpen: d,
@@ -41399,19 +41399,19 @@ function yP({ className: e, triggerClassName: t, popoverClassName: n, size: r =
children: ({ isOpen: e }) => /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsxs)(Ppe, {
ref: l,
className: RO("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),
- children: [/* @__PURE__ */ (0, x.jsx)(Dhe, {
+ children: [/* @__PURE__ */ (0, x.jsx)(Ohe, {
className: RO("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, x.jsx)(vye, { className: RO("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, x.jsx)(gA, {
+ }), /* @__PURE__ */ (0, x.jsx)(yye, { className: RO("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, x.jsx)(hA, {
ref: u,
isNonModal: !0,
offset: 4,
- className: RO(Vve, UN, "p-2", n),
+ className: RO(Hve, HN, "p-2", n),
children: /* @__PURE__ */ (0, x.jsx)(Wme, {
items: a,
- className: RO(Hve, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, x.jsx)(vP.Provider, {
+ className: RO(Uve, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, x.jsx)(_P.Provider, {
value: r,
children: i
})
@@ -41419,19 +41419,19 @@ function yP({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function bP({ className: e, children: t, ...n }) {
- let r = (0, b.useContext)(vP);
+function yP({ className: e, children: t, ...n }) {
+ let r = (0, b.useContext)(_P);
return /* @__PURE__ */ (0, x.jsx)(Jme, {
...n,
- className: (t) => RO(WN, 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) => RO(UN, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
children: t
});
}
//#endregion
//#region src/react/background-job.ts
-var xP = 2e3, Sye = (e) => e, Cye = (e, t) => t;
-function SP(e) {
- let { queryKey: t, jobOf: n = Sye, withJob: r = Cye, idlePollMs: i } = e, [a, o] = (0, b.useState)(!1), [s, c] = (0, b.useState)(null), l = (0, b.useRef)(e);
+var bP = 2e3, Cye = (e) => e, wye = (e, t) => t;
+function xP(e) {
+ let { queryKey: t, jobOf: n = Cye, withJob: r = wye, idlePollMs: i } = e, [a, o] = (0, b.useState)(!1), [s, c] = (0, b.useState)(null), l = (0, b.useRef)(e);
(0, b.useEffect)(() => {
l.current = e;
});
@@ -41440,7 +41440,7 @@ function SP(e) {
queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),
refetchInterval: (e) => {
let t = e.state.data;
- return t !== void 0 && n(t)?.status === "running" ? xP : i ?? !1;
+ return t !== void 0 && n(t)?.status === "running" ? bP : i ?? !1;
}
}), d = ft({
mutationFn: (e) => l.current.start(e),
@@ -41465,32 +41465,32 @@ function SP(e) {
}
//#endregion
//#region src/react/media-repair/media-repair-card.tsx
-var wye = (e) => Wa[e] || e, CP = (e) => V.setQueryData(DM, e);
-function Tye() {
+var Tye = (e) => Wa[e] || e, SP = (e) => V.setQueryData(EM, e);
+function Eye() {
let e = dt({
- queryKey: DM,
- queryFn: ({ signal: e }) => kM(e),
- refetchInterval: (e) => e.state.data?.status === "running" && xP
+ queryKey: EM,
+ queryFn: ({ signal: e }) => OM(e),
+ refetchInterval: (e) => e.state.data?.status === "running" && bP
}), t = dt({
- queryKey: OM,
- queryFn: ({ signal: e }) => AM(e)
- }), [n, r] = (0, b.useState)(""), i = XO(), a = e.data ?? E_e, o = t.data ?? [], s = a.status === "running", c = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], l = () => {
+ queryKey: DM,
+ queryFn: ({ signal: e }) => kM(e)
+ }), [n, r] = (0, b.useState)(""), i = XO(), a = e.data ?? D_e, o = t.data ?? [], s = a.status === "running", c = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], l = () => {
c && is({
title: `修复媒体库「${c.name}」`,
body: "缺时间戳表的片子另存一份修好的头,原文件不动;缺索引的片子重建后替换原文件,坏原件改名成同目录的隐藏文件(.文件名.peach-original)留着。" + (c.metered ? "这个库在计费来源上,每修一部都要把片子完整拉一遍。" : ""),
confirmLabel: "修复媒体库",
- onConfirm: async () => CP(await B(EM, {
+ onConfirm: async () => SP(await B(TM, {
library: c.id,
restart: !0
}))
});
- }, u = () => void i.run("stop", (e) => B(EM, { stop: !0 }, "POST", e), CP), d = O_e(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
+ }, u = () => void i.run("stop", (e) => B(TM, { stop: !0 }, "POST", e), SP), d = k_e(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
return /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, x.jsx)(uP, {
+ children: [/* @__PURE__ */ (0, x.jsx)(lP, {
layout: "split",
label: "媒体修复",
- footer: /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(yP, {
+ footer: /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(vP, {
"aria-label": "媒体库",
className: "w-48",
selectedKey: c?.id ?? null,
@@ -41498,10 +41498,10 @@ function Tye() {
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: o.map((e) => /* @__PURE__ */ (0, x.jsxs)(bP, {
+ children: o.map((e) => /* @__PURE__ */ (0, x.jsxs)(yP, {
id: e.id,
textValue: e.name,
- children: [/* @__PURE__ */ (0, x.jsx)(dk, { mark: wye(e.icon) }), e.name]
+ children: [/* @__PURE__ */ (0, x.jsx)(dk, { mark: Tye(e.icon) }), e.name]
}, e.id))
}), s ? /* @__PURE__ */ (0, x.jsx)(G, {
onClick: u,
@@ -41515,10 +41515,10 @@ function Tye() {
children: /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, x.jsx)(lP, { children: "媒体修复" }),
+ /* @__PURE__ */ (0, x.jsx)(cP, { children: "媒体修复" }),
/* @__PURE__ */ (0, x.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: $N
+ children: QN
}),
s && a.total ? /* @__PURE__ */ (0, x.jsx)(YO, {
label: "修复进度",
@@ -41544,7 +41544,7 @@ function Tye() {
f && a.missing_tool ? /* @__PURE__ */ (0, x.jsx)(K, {
tone: "warning",
title: "缺少 untrunc",
- children: k_e(a)
+ children: A_e(a)
}) : null,
p ? /* @__PURE__ */ (0, x.jsx)(K, {
tone: "error",
@@ -41556,7 +41556,7 @@ function Tye() {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var wP = {
+var CP = {
md: {
box: "size-4",
glyph: "size-4",
@@ -41570,8 +41570,8 @@ var wP = {
gap: "gap-1.5"
}
};
-function TP({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = wP[t], c = n || r, l = o && !a;
+function wP({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = CP[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, x.jsx)("span", {
"aria-hidden": !0,
className: RO("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? RO("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : RO("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"),
@@ -41598,13 +41598,13 @@ function TP({ state: e, size: t = "md" }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox.tsx
-function EP({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = wP[n];
+function TP({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = CP[n];
return /* @__PURE__ */ (0, x.jsx)(Upe, {
ref: r,
...i,
className: (t) => RO("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
- children: (e) => /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(TP, {
+ children: (e) => /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(wP, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, x.jsx)("span", {
@@ -41615,10 +41615,10 @@ function EP({ className: e, children: t, size: n = "md", ref: r, ...i }) {
}
//#endregion
//#region src/react/boardui/components/base/table/table.tsx
-function DP({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
+function EP({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, x.jsx)("div", {
className: RO("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, x.jsx)(Vhe, {
+ children: /* @__PURE__ */ (0, x.jsx)(Hhe, {
ref: r,
...i,
className: RO("bui-table", e === "sm" && "bui-table-sm", t)
@@ -41627,7 +41627,7 @@ function DP({ size: e = "md", className: t, containerClassName: n, ref: r, ...i
}
//#endregion
//#region src/react/components/data-table-frame.tsx
-function OP({ children: e, follow: t = !1, onRowClick: n }) {
+function DP({ children: e, follow: t = !1, onRowClick: n }) {
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-board-data-table": !0,
"data-follow-table": t || void 0,
@@ -41635,15 +41635,15 @@ function OP({ children: e, follow: t = !1, onRowClick: n }) {
let t = e.target;
if (!(t instanceof Element)) return;
let r = t.closest("[role=\"row\"][data-key]");
- r && Zj(e, r) && n(r.dataset.key);
+ r && Xj(e, r) && n(r.dataset.key);
} : void 0,
children: e
});
}
//#endregion
//#region src/react/data-cleanup/link-manager.tsx
-var Eye = xj("unlink"), kP = xj("rotate-cw"), Dye = "站点返回 404 或 410,确认这个地址不存在。", Oye = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", kye = "删除前会逐条重验一次;此操作不可撤销。", Aye = "暂时无法读取进度,正在重新连接…", AP = (e) => Number(e || 0).toLocaleString();
-function jP({ label: e, value: t, note: n }) {
+var Dye = bj("unlink"), OP = bj("rotate-cw"), Oye = "站点返回 404 或 410,确认这个地址不存在。", kye = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", Aye = "删除前会逐条重验一次;此操作不可撤销。", jye = "暂时无法读取进度,正在重新连接…", kP = (e) => Number(e || 0).toLocaleString();
+function AP({ label: e, value: t, note: n }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex min-w-0 flex-col gap-0.5",
children: [
@@ -41662,12 +41662,12 @@ function jP({ label: e, value: t, note: n }) {
]
});
}
-function MP({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {
+function jP({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {
let [o, s] = (0, b.useState)(!1);
if (!t.length) return null;
let c = r ?? [], l = c.length > 0 && c.length === t.length, u = o ? t : t.slice(0, 10), d = t.length > 10;
return /* @__PURE__ */ (0, x.jsxs)("div", {
- className: oP,
+ className: aP,
children: [
/* @__PURE__ */ (0, x.jsxs)("h4", {
className: "mb-1 text-body-semibold text-text-primary",
@@ -41680,13 +41680,13 @@ function MP({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
className: "mb-3 text-caption-1-regular text-text-secondary",
children: n
}),
- /* @__PURE__ */ (0, x.jsx)(OP, { children: /* @__PURE__ */ (0, x.jsxs)(DP, {
+ /* @__PURE__ */ (0, x.jsx)(DP, { children: /* @__PURE__ */ (0, x.jsxs)(EP, {
"aria-label": e,
size: "sm",
- children: [/* @__PURE__ */ (0, x.jsxs)(ZA, { children: [
- i ? /* @__PURE__ */ (0, x.jsx)(QA, {
+ children: [/* @__PURE__ */ (0, x.jsxs)(XA, { children: [
+ i ? /* @__PURE__ */ (0, x.jsx)(ZA, {
id: "pick",
- children: /* @__PURE__ */ (0, x.jsx)(EP, {
+ children: /* @__PURE__ */ (0, x.jsx)(TP, {
slot: null,
"aria-label": "全选本次未访问成功的链接",
isSelected: l,
@@ -41694,53 +41694,53 @@ function MP({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
onChange: (e) => i(e ? t.map((e) => e.id) : [])
})
}) : null,
- /* @__PURE__ */ (0, x.jsx)(QA, {
+ /* @__PURE__ */ (0, x.jsx)(ZA, {
id: "entity",
isRowHeader: !0,
children: "所属"
}),
- /* @__PURE__ */ (0, x.jsx)(QA, {
+ /* @__PURE__ */ (0, x.jsx)(ZA, {
id: "kind",
children: "类型"
}),
- /* @__PURE__ */ (0, x.jsx)(QA, {
+ /* @__PURE__ */ (0, x.jsx)(ZA, {
id: "label",
children: "标签"
}),
- /* @__PURE__ */ (0, x.jsx)(QA, {
+ /* @__PURE__ */ (0, x.jsx)(ZA, {
id: "note",
children: "结果"
}),
- /* @__PURE__ */ (0, x.jsx)(QA, {
+ /* @__PURE__ */ (0, x.jsx)(ZA, {
id: "url",
children: "地址"
})
- ] }), /* @__PURE__ */ (0, x.jsx)(ej, { children: u.map((e) => /* @__PURE__ */ (0, x.jsxs)(rj, {
+ ] }), /* @__PURE__ */ (0, x.jsx)($A, { children: u.map((e) => /* @__PURE__ */ (0, x.jsxs)(nj, {
id: e.id,
children: [
- i ? /* @__PURE__ */ (0, x.jsx)(aj, { children: /* @__PURE__ */ (0, x.jsx)(EP, {
+ i ? /* @__PURE__ */ (0, x.jsx)(ij, { children: /* @__PURE__ */ (0, x.jsx)(TP, {
slot: null,
"aria-label": `选择 ${e.entity} 的${e.label || e.url}`,
isSelected: c.includes(e.id),
onChange: (t) => i(t ? [...c, e.id] : c.filter((t) => t !== e.id))
}) }) : null,
- /* @__PURE__ */ (0, x.jsx)(aj, { children: /* @__PURE__ */ (0, x.jsx)("span", {
+ /* @__PURE__ */ (0, x.jsx)(ij, { children: /* @__PURE__ */ (0, x.jsx)("span", {
className: "block min-w-24 wrap-anywhere",
children: e.entity
}) }),
- /* @__PURE__ */ (0, x.jsx)(aj, { children: QM[e.link_kind] || e.link_kind }),
- /* @__PURE__ */ (0, x.jsx)(aj, { children: /* @__PURE__ */ (0, x.jsx)("span", {
+ /* @__PURE__ */ (0, x.jsx)(ij, { children: ZM[e.link_kind] || e.link_kind }),
+ /* @__PURE__ */ (0, x.jsx)(ij, { children: /* @__PURE__ */ (0, x.jsx)("span", {
className: "block min-w-24 wrap-anywhere",
children: e.label || ""
}) }),
- /* @__PURE__ */ (0, x.jsx)(aj, { children: /* @__PURE__ */ (0, x.jsx)("div", {
+ /* @__PURE__ */ (0, x.jsx)(ij, { children: /* @__PURE__ */ (0, x.jsx)("div", {
className: "min-w-40 max-w-80",
children: /* @__PURE__ */ (0, x.jsx)(xk, {
text: e.note,
className: "tabular-nums text-text-error-primary"
})
}) }),
- /* @__PURE__ */ (0, x.jsx)(aj, { children: /* @__PURE__ */ (0, x.jsxs)("a", {
+ /* @__PURE__ */ (0, x.jsx)(ij, { children: /* @__PURE__ */ (0, x.jsxs)("a", {
href: e.url,
target: "_blank",
rel: "noreferrer",
@@ -41772,27 +41772,27 @@ function MP({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
]
});
}
-function jye() {
+function Mye() {
let e = dt({
- queryKey: YM,
- queryFn: ({ signal: e }) => eN(e)
- }), [t, n] = (0, b.useState)([]), r = SP({
- queryKey: ZM,
- queryFn: ({ signal: e }) => nN(e),
- start: tve,
+ queryKey: JM,
+ queryFn: ({ signal: e }) => $M(e)
+ }), [t, n] = (0, b.useState)([]), r = xP({
+ queryKey: XM,
+ queryFn: ({ signal: e }) => tN(e),
+ start: nve,
onFinish: () => {
V.invalidateQueries({
- queryKey: YM,
+ queryKey: JM,
exact: !0
}), V.invalidateQueries({
- queryKey: XM,
+ queryKey: YM,
exact: !0
});
}
- }), i = SP({
- queryKey: XM,
- queryFn: ({ signal: e }) => tN(e),
- start: eve,
+ }), i = xP({
+ queryKey: YM,
+ queryFn: ({ signal: e }) => eN(e),
+ start: tve,
onStarted: () => {
r.dismiss(), n([]);
}
@@ -41800,7 +41800,7 @@ function jye() {
(0, b.useEffect)(() => {
n([]);
}, [o]);
- let s = i.running || i.start.isPending, c = r.running || r.start.isPending, l = a?.status === "complete", u = a?.gone ?? [], d = a?.unclear ?? [], f = l ? d : [], p = e.data, m = (p?.top_hosts ?? []).slice(0, 3).map(([e, t]) => `${e} ${AP(t)}`).join(" · "), h = (e) => {
+ let s = i.running || i.start.isPending, c = r.running || r.start.isPending, l = a?.status === "complete", u = a?.gone ?? [], d = a?.unclear ?? [], f = l ? d : [], p = e.data, m = (p?.top_hosts ?? []).slice(0, 3).map(([e, t]) => `${e} ${kP(t)}`).join(" · "), h = (e) => {
s || e && !e.length || i.start.mutate(e ? {
retry: e,
checkId: o
@@ -41822,7 +41822,7 @@ function jye() {
else if (_) S = /* @__PURE__ */ (0, x.jsx)(K, {
tone: "success",
title: "完成",
- children: nve(_)
+ children: rve(_)
});
else if (v) S = /* @__PURE__ */ (0, x.jsx)(K, {
tone: "error",
@@ -41832,7 +41832,7 @@ function jye() {
else if (i.query.isError && a) S = /* @__PURE__ */ (0, x.jsx)(K, {
tone: "neutral",
title: "任务状态",
- children: Aye
+ children: jye
});
else if (a?.status === "failed") S = /* @__PURE__ */ (0, x.jsx)(K, {
tone: "error",
@@ -41840,12 +41840,12 @@ function jye() {
children: a.error || "检查失败"
});
else if (a && a.status !== "idle") {
- y = /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [a.status === "running" ? /* @__PURE__ */ (0, x.jsx)(hP, {
+ y = /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [a.status === "running" ? /* @__PURE__ */ (0, x.jsx)(mP, {
embedded: !0,
- label: rve(a),
+ label: ive(a),
value: Math.min(a.checked || 0, a.total || 0),
total: a.total
- }) : null, c ? /* @__PURE__ */ (0, x.jsx)(hP, {
+ }) : null, c ? /* @__PURE__ */ (0, x.jsx)(mP, {
embedded: !0,
label: r.job?.message || "正在重验并删除失效链接…",
value: Math.min(r.job?.checked || 0, r.job?.total || 0),
@@ -41853,38 +41853,38 @@ function jye() {
}) : null] });
let e = t.length ? `重试选中的 ${t.length} 条` : "重试选中的链接";
S = l || u.length || d.length ? /* @__PURE__ */ (0, x.jsxs)("div", {
- className: cye,
+ className: lye,
children: [
- /* @__PURE__ */ (0, x.jsx)(MP, {
+ /* @__PURE__ */ (0, x.jsx)(jP, {
title: "地址已失效",
items: u,
- hint: Dye
+ hint: Oye
}),
- /* @__PURE__ */ (0, x.jsx)(MP, {
+ /* @__PURE__ */ (0, x.jsx)(jP, {
title: "本次未访问成功",
items: d,
- hint: Oye,
+ hint: kye,
picked: f.length ? t : void 0,
onPick: f.length ? n : void 0,
children: f.length ? /* @__PURE__ */ (0, x.jsx)("div", {
className: "-mx-4 mt-3 -mb-4",
- children: /* @__PURE__ */ (0, x.jsxs)(sP, { children: [/* @__PURE__ */ (0, x.jsx)(G, {
- leadingIcon: kP,
+ children: /* @__PURE__ */ (0, x.jsxs)(oP, { children: [/* @__PURE__ */ (0, x.jsx)(G, {
+ leadingIcon: OP,
disabled: !t.length,
...q(s),
onClick: () => h(t),
children: e
}), /* @__PURE__ */ (0, x.jsx)(G, {
- leadingIcon: kP,
+ leadingIcon: OP,
...q(s),
onClick: () => h(f.map((e) => e.id)),
children: `全部重试(${f.length})`
})] })
}) : null
}),
- l && u.length ? /* @__PURE__ */ (0, x.jsx)(sP, {
+ l && u.length ? /* @__PURE__ */ (0, x.jsx)(oP, {
tone: "error",
- status: kye,
+ status: Aye,
children: /* @__PURE__ */ (0, x.jsx)(G, {
variant: "danger",
...q(c),
@@ -41893,7 +41893,7 @@ function jye() {
})
}) : null,
l && !u.length && !d.length ? /* @__PURE__ */ (0, x.jsx)("p", {
- className: `${oP} text-body-regular text-notification-success-foreground`,
+ className: `${aP} text-body-regular text-notification-success-foreground`,
children: "全部链接均可访问。"
}) : null
]
@@ -41904,21 +41904,21 @@ function jye() {
"aria-labelledby": "link-manager-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, x.jsx)(cP, {
+ /* @__PURE__ */ (0, x.jsx)(sP, {
id: "link-manager-title",
children: "链接管理"
}),
- /* @__PURE__ */ (0, x.jsxs)(uP, {
+ /* @__PURE__ */ (0, x.jsxs)(lP, {
layout: "stack",
labelledBy: "link-manager-box",
footer: /* @__PURE__ */ (0, x.jsx)(G, {
- leadingIcon: Eye,
+ leadingIcon: Dye,
...q(s),
onClick: () => h(),
children: s ? "检查中" : l ? "重新检查" : "检查死链"
}),
children: [
- /* @__PURE__ */ (0, x.jsx)(lP, {
+ /* @__PURE__ */ (0, x.jsx)(cP, {
id: "link-manager-box",
gap: "small",
children: "站外链接"
@@ -41929,13 +41929,13 @@ function jye() {
children: R(e.error)
}) : p ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsxs)("div", {
className: "link-stat-grid mt-4 gap-x-8 gap-y-3",
- children: [/* @__PURE__ */ (0, x.jsx)(jP, {
+ children: [/* @__PURE__ */ (0, x.jsx)(AP, {
label: "链接总数",
- value: AP(p.total),
- note: `分布在 ${AP(p.entities)} 个女优、厂牌与系列`
- }), Object.entries(p.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(jP, {
- label: QM[e] || e,
- value: AP(t)
+ value: kP(p.total),
+ note: `分布在 ${kP(p.entities)} 个女优、厂牌与系列`
+ }), Object.entries(p.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(AP, {
+ label: ZM[e] || e,
+ value: kP(t)
}, e))]
}), m ? /* @__PURE__ */ (0, x.jsxs)("div", {
className: "mt-4 flex min-w-0 flex-col gap-0.5",
@@ -41964,7 +41964,7 @@ function jye() {
}
//#endregion
//#region src/react/boardui/components/base/input/label.tsx
-function Mye({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+function Nye({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
return /* @__PURE__ */ (0, x.jsxs)(Mpe, {
"data-label": "true",
...a,
@@ -41985,7 +41985,7 @@ function Mye({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, child
}
//#endregion
//#region src/react/boardui/components/base/input/hint-text.tsx
-function Nye({ isInvalid: e = !1, className: t, ...n }) {
+function Pye({ isInvalid: e = !1, className: t, ...n }) {
return /* @__PURE__ */ (0, x.jsx)(Rpe, {
slot: e ? "errorMessage" : "description",
...n,
@@ -41994,15 +41994,15 @@ function Nye({ isInvalid: e = !1, className: t, ...n }) {
}
//#endregion
//#region src/react/boardui/components/base/input/input.tsx
-var NP = (0, b.createContext)({});
-function PP({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, x.jsx)(NP.Provider, {
+var MP = (0, b.createContext)({});
+function NP({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, x.jsx)(MP.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, x.jsx)(pge, {
+ children: /* @__PURE__ */ (0, x.jsx)(mge, {
...a,
"data-input-size": e,
className: RO("group flex h-max w-full flex-col items-start gap-1", r),
@@ -42010,8 +42010,8 @@ function PP({ size: e = "medium", fieldClassName: t, inputClassName: n, classNam
})
});
}
-PP.displayName = "TextField";
-var FP = zO({
+NP.displayName = "TextField";
+var PP = zO({
field: [
"relative flex w-full items-center",
"rounded-2lg",
@@ -42040,44 +42040,44 @@ var FP = zO({
].join(" "),
icon: "size-5 shrink-0"
});
-function IP({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, b.useContext)(NP), u = e ?? l.size ?? "medium", d = r != null;
+function FP({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, b.useContext)(MP), u = e ?? l.size ?? "medium", d = r != null;
return /* @__PURE__ */ (0, x.jsx)(Kpe, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => RO(FP.field, d ? FP.fieldWithAddonSize[u] : FP.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 }) => RO(PP.field, d ? PP.fieldWithAddonSize[u] : PP.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
children: /* @__PURE__ */ (0, x.jsxs)("div", {
- className: FP.content,
+ className: PP.content,
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
- className: FP.leftSection,
+ className: PP.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, x.jsx)(t, {
- className: FP.icon,
+ className: PP.icon,
"aria-hidden": !0
}) : null, /* @__PURE__ */ (0, x.jsx)(Ype, {
ref: o,
...c,
- className: RO(FP.input, l.inputClassName, a)
+ className: RO(PP.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, x.jsx)(n, {
- className: FP.icon,
+ className: PP.icon,
"aria-hidden": !0
}) : null]
})
});
}
-IP.displayName = "InputBase";
-function LP({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
- return /* @__PURE__ */ (0, x.jsx)(PP, {
+FP.displayName = "InputBase";
+function IP({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
+ return /* @__PURE__ */ (0, x.jsx)(NP, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
- e && /* @__PURE__ */ (0, x.jsx)(Mye, {
+ e && /* @__PURE__ */ (0, x.jsx)(Nye, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, x.jsx)(IP, {
+ /* @__PURE__ */ (0, x.jsx)(FP, {
ref: c,
groupRef: l,
placeholder: r,
@@ -42086,28 +42086,28 @@ function LP({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, x.jsx)(Nye, {
+ t && /* @__PURE__ */ (0, x.jsx)(Pye, {
isInvalid: d,
children: t
})
] })
});
}
-LP.displayName = "Input";
+IP.displayName = "Input";
//#endregion
//#region src/react/data-cleanup/organize-card.tsx
-var Pye = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, Fye = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", Iye = 8;
-function Lye({ plan: e }) {
+var Fye = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, Iye = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", Lye = 8;
+function Rye({ plan: e }) {
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)("ol", {
className: "mt-2 flex min-w-0 flex-col gap-1",
- children: e.rows.slice(0, Iye).map((e) => /* @__PURE__ */ (0, x.jsxs)("li", {
+ children: e.rows.slice(0, Lye).map((e) => /* @__PURE__ */ (0, x.jsxs)("li", {
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
children: [
/* @__PURE__ */ (0, x.jsx)("span", {
"data-middle-truncate": !0,
title: e.current_path,
className: "min-w-0 truncate",
- children: mN(e.current_path)
+ children: pN(e.current_path)
}),
/* @__PURE__ */ (0, x.jsx)("span", {
"aria-hidden": !0,
@@ -42117,7 +42117,7 @@ function Lye({ plan: e }) {
"data-middle-truncate": !0,
title: e.target_path,
className: "min-w-0 truncate text-text-primary",
- children: mN(e.target_path)
+ children: pN(e.target_path)
})
]
}, e.current_path))
@@ -42126,10 +42126,10 @@ function Lye({ plan: e }) {
children: "只列出前 8 行,完整计划在计划 CSV 里。"
}) : null] });
}
-function Rye({ toast: e, failure: t }) {
+function zye({ toast: e, failure: t }) {
let n = dt({
- queryKey: fN,
- queryFn: ({ signal: e }) => pN(e)
+ queryKey: dN,
+ queryFn: ({ signal: e }) => fN(e)
}), r = n.data, i = r?.locations ?? [], [a, o] = (0, b.useState)(""), s = i.some((e) => e.location === a) ? a : i[0]?.location ?? "", c = r?.templates?.[s], [l, u] = (0, b.useState)(null), d = l?.location === s ? l : {
location: s,
file: c?.file ?? "",
@@ -42142,38 +42142,38 @@ function Rye({ toast: e, failure: t }) {
file_template: d.file.trim(),
dir_template: d.dir.trim()
}), v = ft({
- mutationFn: mve,
+ mutationFn: hve,
onError: (e) => {
- let t = vve.test(R(e)) ? "dir" : "file";
+ let t = yve.test(R(e)) ? "dir" : "file";
m(t), (t === "dir" ? g : h).current?.focus();
}
- }), y = SP({
- queryKey: fN,
- queryFn: ({ signal: e }) => pN(e),
- start: hve,
+ }), y = xP({
+ queryKey: dN,
+ queryFn: ({ signal: e }) => fN(e),
+ start: gve,
jobOf: (e) => e,
- withJob: _ve,
+ withJob: vve,
onStarted: () => v.reset(),
onFinish: (n) => {
if (V.invalidateQueries({
- queryKey: fN,
+ queryKey: dN,
exact: !0
}), n.status !== "complete") return;
- let { text: r, failed: i } = gN(n);
+ let { text: r, failed: i } = hN(n);
i ? t("按模板整理", /* @__PURE__ */ Error(`${i} 行未能处理`)) : e(r.replace(/。$/, ""));
}
}), S = y.running || y.start.isPending, C = v.data, w = Number(C?.counts?.change || 0), T = Yt[s] || s, E = (r?.placeholders ?? []).map((e) => `{${e.key}} ${e.label}`).join(" · "), D = () => {
!v.isPending && s && (m(null), v.mutate(_()));
}, O = () => void is({
title: "按模板整理文件",
- body: Pye(T),
+ body: Fye(T),
confirmLabel: "整理文件",
onConfirm: async () => {
let e = _();
await y.start.mutateAsync({
kind: "apply",
request: e
- }), gve({
+ }), _ve({
...r?.templates ?? {},
[e.location]: {
file: e.file_template,
@@ -42183,13 +42183,13 @@ function Rye({ toast: e, failure: t }) {
}
}), k = () => void is({
title: "回滚上一批整理",
- body: Fye,
+ body: Iye,
confirmLabel: "回滚整理",
onConfirm: () => y.start.mutateAsync({ kind: "rollback" })
}), A = null, j = y.job, M = y.outcome;
if (j?.status === "running") {
let e = j.message || j.stage || "正在整理文件…";
- A = /* @__PURE__ */ (0, x.jsx)(hP, {
+ A = /* @__PURE__ */ (0, x.jsx)(mP, {
embedded: !0,
label: e,
value: Math.min(j.checked || 0, j.total || 0),
@@ -42201,7 +42201,7 @@ function Rye({ toast: e, failure: t }) {
children: M.error || "请查看任务记录,核对已处理的文件。"
});
else if (M) {
- let { text: e, failed: t } = gN(M);
+ let { text: e, failed: t } = hN(M);
A = /* @__PURE__ */ (0, x.jsx)(K, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "整理结果",
@@ -42211,7 +42211,7 @@ function Rye({ toast: e, failure: t }) {
tone: "error",
title: "整理失败",
children: R(y.start.error)
- }) : v.isPending ? A = /* @__PURE__ */ (0, x.jsx)(hP, {
+ }) : v.isPending ? A = /* @__PURE__ */ (0, x.jsx)(mP, {
embedded: !0,
label: "正在按模板算计划…"
}) : v.isError ? A = /* @__PURE__ */ (0, x.jsx)(K, {
@@ -42221,9 +42221,9 @@ function Rye({ toast: e, failure: t }) {
}) : C && (A = /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(K, {
tone: "neutral",
title: "预览结果",
- children: yve(C)
- }), w ? /* @__PURE__ */ (0, x.jsx)(Lye, { plan: C }) : null] }));
- return /* @__PURE__ */ (0, x.jsxs)(uP, {
+ children: bve(C)
+ }), w ? /* @__PURE__ */ (0, x.jsx)(Rye, { plan: C }) : null] }));
+ return /* @__PURE__ */ (0, x.jsxs)(lP, {
layout: "stack",
id: "organize",
labelledBy: "cleanup-organize-title",
@@ -42247,7 +42247,7 @@ function Rye({ toast: e, failure: t }) {
}) : null
] }),
children: [
- /* @__PURE__ */ (0, x.jsx)(lP, {
+ /* @__PURE__ */ (0, x.jsx)(cP, {
id: "cleanup-organize-title",
gap: "medium",
children: "整理"
@@ -42267,20 +42267,20 @@ function Rye({ toast: e, failure: t }) {
/* @__PURE__ */ (0, x.jsxs)("div", {
className: "mt-3 flex flex-col gap-3",
children: [
- i.length ? /* @__PURE__ */ (0, x.jsx)(yP, {
+ i.length ? /* @__PURE__ */ (0, x.jsx)(vP, {
"aria-label": "整理哪个来源",
className: "w-fit min-w-25",
selectedKey: s || null,
onSelectionChange: (e) => {
e !== null && (o(String(e)), m(null), v.reset());
},
- children: i.map((e) => /* @__PURE__ */ (0, x.jsxs)(bP, {
+ children: i.map((e) => /* @__PURE__ */ (0, x.jsxs)(yP, {
id: e.location,
textValue: Yt[e.location] || e.location,
children: [/* @__PURE__ */ (0, x.jsx)(dk, { mark: Wa[e.location] || "database" }), Yt[e.location] || e.location]
}, e.location))
}) : null,
- /* @__PURE__ */ (0, x.jsx)(LP, {
+ /* @__PURE__ */ (0, x.jsx)(IP, {
label: "文件名模板",
placeholder: "{number}[ {title}]",
value: d.file,
@@ -42291,7 +42291,7 @@ function Rye({ toast: e, failure: t }) {
f({ file: e }), m(null);
}
}),
- /* @__PURE__ */ (0, x.jsx)(LP, {
+ /* @__PURE__ */ (0, x.jsx)(IP, {
label: "目录模板",
placeholder: "留空表示原地改名",
value: d.dir,
@@ -42336,56 +42336,56 @@ function Rye({ toast: e, failure: t }) {
}
//#endregion
//#region src/react/data-cleanup/orphan-records.ts
-var zye = "/api/orphan-records", Bye = "/api/orphan-records/attach", RP = ["orphan-records"], Vye = [
+var Bye = "/api/orphan-records", Vye = "/api/orphan-records/attach", LP = ["orphan-records"], Hye = [
["asset_preference", "喜欢与理由"],
["watch_queue", "稍后看"],
["playlist_item", "播放列表"],
["asset_quality_goal", "寻找更好版本"],
["activity_event", "观看历史"],
["asset_tag_preference", "隐藏标签"]
-], Hye = (e) => z(zye, e), Uye = (e, t) => B(Bye, {
+], Uye = (e) => z(Bye, e), Wye = (e, t) => B(Vye, {
id: e,
target: t
-}), Wye = (e) => B(pM, {
+}), Gye = (e) => B(fM, {
ids: [e],
operation: "delete"
-}), Gye = (e) => [
+}), Kye = (e) => [
e.rating ? `评分 ${e.rating}` : "",
e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",
e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""
-], zP = (e) => [...Vye.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...Gye(e)].filter(Boolean).join(" · "), Kye = (e) => e ? `${Math.round(e / 60)} 分钟` : "", BP = (e) => [e.name, Kye(e.duration)].filter(Boolean).join(" · "), qye = xj("play"), VP = () => V.invalidateQueries({
- queryKey: RP,
+], RP = (e) => [...Hye.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...Kye(e)].filter(Boolean).join(" · "), qye = (e) => e ? `${Math.round(e / 60)} 分钟` : "", zP = (e) => [e.name, qye(e.duration)].filter(Boolean).join(" · "), Jye = bj("play"), BP = () => V.invalidateQueries({
+ queryKey: LP,
exact: !0
});
-function Jye({ item: e, toast: t }) {
+function Yye({ item: e, toast: t }) {
let [n, r] = (0, b.useState)(e.candidates[0]?.id ?? null), i = ft({
- mutationFn: () => Uye(e.id, Number(n)),
+ mutationFn: () => Wye(e.id, Number(n)),
onSuccess: (e) => {
- t(`记录已接到新文件,批次 ${e.batch}`), VP();
+ t(`记录已接到新文件,批次 ${e.batch}`), BP();
},
onError: (e) => t(R(e))
}), a = ft({
- mutationFn: () => Wye(e.id),
+ mutationFn: () => Gye(e.id),
onSuccess: (n) => {
- t(n.blocked.length ? `${e.name} 的文件又回到盘上,没有删除;下一次扫描会把它接回在库` : `已彻底删除 ${e.name}`), VP();
+ t(n.blocked.length ? `${e.name} 的文件又回到盘上,没有删除;下一次扫描会把它接回在库` : `已彻底删除 ${e.name}`), BP();
}
}), o = () => {
is({
title: "彻底删除",
- body: `将删除「${e.name}」这一条和它带的记录(${zP(e.records)})。此操作不可撤销。`,
+ body: `将删除「${e.name}」这一条和它带的记录(${RP(e.records)})。此操作不可撤销。`,
confirmLabel: "彻底删除",
danger: !0,
onConfirm: () => a.mutateAsync()
});
}, s = i.isPending || a.isPending;
- return /* @__PURE__ */ (0, x.jsxs)(rj, {
+ return /* @__PURE__ */ (0, x.jsxs)(nj, {
id: e.id,
children: [
- /* @__PURE__ */ (0, x.jsx)(aj, { children: /* @__PURE__ */ (0, x.jsxs)("span", {
+ /* @__PURE__ */ (0, x.jsx)(ij, { children: /* @__PURE__ */ (0, x.jsxs)("span", {
className: "flex min-w-0 items-center gap-3",
children: [/* @__PURE__ */ (0, x.jsxs)("span", {
className: "relative inline-grid aspect-16/10 w-24 flex-none place-items-center max-cleanup-tight:hidden overflow-hidden rounded-lg border border-separator-border bg-background-tertiary-default text-text-tertiary",
- children: [/* @__PURE__ */ (0, x.jsx)(qye, {
+ children: [/* @__PURE__ */ (0, x.jsx)(Jye, {
"aria-hidden": !0,
className: "size-5"
}), e.has_thumb ? /* @__PURE__ */ (0, x.jsx)("img", {
@@ -42407,27 +42407,27 @@ function Jye({ item: e, toast: t }) {
})]
})]
}) }),
- /* @__PURE__ */ (0, x.jsx)(aj, { children: /* @__PURE__ */ (0, x.jsx)("span", {
+ /* @__PURE__ */ (0, x.jsx)(ij, { children: /* @__PURE__ */ (0, x.jsx)("span", {
className: "block min-w-28",
- children: zP(e.records)
+ children: RP(e.records)
}) }),
- /* @__PURE__ */ (0, x.jsx)(aj, { children: e.candidates.length ? /* @__PURE__ */ (0, x.jsx)(yP, {
+ /* @__PURE__ */ (0, x.jsx)(ij, { children: e.candidates.length ? /* @__PURE__ */ (0, x.jsx)(vP, {
"aria-label": `把 ${e.name} 的记录接到哪个文件`,
className: "w-52",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(Number(e));
},
- children: e.candidates.map((e) => /* @__PURE__ */ (0, x.jsx)(bP, {
+ children: e.candidates.map((e) => /* @__PURE__ */ (0, x.jsx)(yP, {
id: e.id,
- textValue: BP(e),
- children: BP(e)
+ textValue: zP(e),
+ children: zP(e)
}, e.id))
}) : /* @__PURE__ */ (0, x.jsx)("span", {
className: "text-text-secondary",
children: "没有番号或文件名对得上的文件"
}) }),
- /* @__PURE__ */ (0, x.jsx)(aj, { children: /* @__PURE__ */ (0, x.jsxs)("span", {
+ /* @__PURE__ */ (0, x.jsx)(ij, { children: /* @__PURE__ */ (0, x.jsxs)("span", {
className: "flex flex-wrap gap-2",
children: [e.candidates.length ? /* @__PURE__ */ (0, x.jsx)(G, {
size: "small",
@@ -42447,23 +42447,23 @@ function Jye({ item: e, toast: t }) {
]
});
}
-function Yye({ toast: e }) {
+function Xye({ toast: e }) {
let t = dt({
- queryKey: RP,
- queryFn: ({ signal: e }) => Hye(e)
+ queryKey: LP,
+ queryFn: ({ signal: e }) => Uye(e)
}), n = t.data?.items ?? [], r = t.data?.total ?? n.length;
return !t.isError && !n.length ? null : /* @__PURE__ */ (0, x.jsxs)("section", {
id: "orphan-records",
"aria-labelledby": "orphan-records-title",
className: "flex scroll-mt-20 flex-col gap-4",
- children: [/* @__PURE__ */ (0, x.jsx)(cP, {
+ children: [/* @__PURE__ */ (0, x.jsx)(sP, {
id: "orphan-records-title",
children: "孤儿记录"
- }), /* @__PURE__ */ (0, x.jsxs)(uP, {
+ }), /* @__PURE__ */ (0, x.jsxs)(lP, {
layout: "stack",
labelledBy: "orphan-records-box",
children: [
- /* @__PURE__ */ (0, x.jsx)(lP, {
+ /* @__PURE__ */ (0, x.jsx)(cP, {
id: "orphan-records-box",
gap: "small",
children: "文件已消失的作品"
@@ -42476,28 +42476,28 @@ function Yye({ toast: e }) {
tone: "error",
title: "孤儿记录读取失败",
children: R(t.error)
- }) : /* @__PURE__ */ (0, x.jsx)(OP, { children: /* @__PURE__ */ (0, x.jsxs)(DP, {
+ }) : /* @__PURE__ */ (0, x.jsx)(DP, { children: /* @__PURE__ */ (0, x.jsxs)(EP, {
"aria-label": "文件已消失的作品",
size: "sm",
- children: [/* @__PURE__ */ (0, x.jsxs)(ZA, { children: [
- /* @__PURE__ */ (0, x.jsx)(QA, {
+ children: [/* @__PURE__ */ (0, x.jsxs)(XA, { children: [
+ /* @__PURE__ */ (0, x.jsx)(ZA, {
id: "item",
isRowHeader: !0,
children: "作品"
}),
- /* @__PURE__ */ (0, x.jsx)(QA, {
+ /* @__PURE__ */ (0, x.jsx)(ZA, {
id: "records",
children: "带的记录"
}),
- /* @__PURE__ */ (0, x.jsx)(QA, {
+ /* @__PURE__ */ (0, x.jsx)(ZA, {
id: "target",
children: "接到"
}),
- /* @__PURE__ */ (0, x.jsx)(QA, {
+ /* @__PURE__ */ (0, x.jsx)(ZA, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, x.jsx)(ej, { children: n.map((t) => /* @__PURE__ */ (0, x.jsx)(Jye, {
+ ] }), /* @__PURE__ */ (0, x.jsx)($A, { children: n.map((t) => /* @__PURE__ */ (0, x.jsx)(Yye, {
item: t,
toast: e
}, t.id)) })]
@@ -42512,99 +42512,99 @@ function Yye({ toast: e }) {
}
//#endregion
//#region src/react/data-cleanup/resource-sync-card.tsx
-var Xye = xj("git-compare"), Zye = xj("rotate-cw"), Qye = "暂时无法读取进度,正在重新连接…", HP = "清理失效条目", UP = "inline-grid w-full grid-flow-col auto-cols-fr gap-4 max-plain-stat-pair:grid-flow-row max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1", WP = (e) => Number(e || 0).toLocaleString();
-function $ye({ scan: e }) {
+var Zye = bj("git-compare"), Qye = bj("rotate-cw"), $ye = "暂时无法读取进度,正在重新连接…", VP = "清理失效条目", HP = "inline-grid w-full grid-flow-col auto-cols-fr gap-4 max-plain-stat-pair:grid-flow-row max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1", UP = (e) => Number(e || 0).toLocaleString();
+function ebe({ scan: e }) {
let t = e.cache ?? {
files: 0,
bytes: 0
};
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)("div", {
- className: UP,
+ className: HP,
children: (e.sources ?? []).map((e) => /* @__PURE__ */ (0, x.jsx)("article", {
- className: zN(),
- children: /* @__PURE__ */ (0, x.jsx)(BN, {
- label: wve[e.location] || "媒体来源",
+ className: RN(),
+ children: /* @__PURE__ */ (0, x.jsx)(zN, {
+ label: Tve[e.location] || "媒体来源",
mark: /* @__PURE__ */ (0, x.jsx)(dk, { mark: Wa[e.location] ?? "database" }),
aside: /* @__PURE__ */ (0, x.jsx)("span", {
className: e.online ? "text-notification-success-foreground" : "text-text-error-primary",
children: e.online ? "可访问" : "离线,已跳过"
}),
- figure: e.online ? `${WP(e.missing)} 项` : "—",
- meta: Ove(e),
+ figure: e.online ? `${UP(e.missing)} 项` : "—",
+ meta: kve(e),
wrapMeta: !0
})
}, e.location))
}), /* @__PURE__ */ (0, x.jsxs)("div", {
- className: UP,
+ className: HP,
children: [
/* @__PURE__ */ (0, x.jsx)("article", {
- className: zN(),
- children: /* @__PURE__ */ (0, x.jsx)(BN, {
+ className: RN(),
+ children: /* @__PURE__ */ (0, x.jsx)(zN, {
label: "待永久删除",
- figure: `${WP(TN(e))} 项`,
+ figure: `${UP(wN(e))} 项`,
meta: "文件已不在盘上,含回收站"
})
}),
/* @__PURE__ */ (0, x.jsx)("article", {
- className: zN(),
- children: /* @__PURE__ */ (0, x.jsx)(BN, {
+ className: RN(),
+ children: /* @__PURE__ */ (0, x.jsx)(zN, {
label: "将标为已消失",
- figure: `${WP(e.vanish)} 项`,
+ figure: `${UP(e.vanish)} 项`,
meta: "带个人记录,记录留着"
})
}),
/* @__PURE__ */ (0, x.jsx)("article", {
- className: zN(),
- children: /* @__PURE__ */ (0, x.jsx)(BN, {
+ className: RN(),
+ children: /* @__PURE__ */ (0, x.jsx)(zN, {
label: "空文件夹",
- figure: `${WP(e.empty)} 个`,
+ figure: `${UP(e.empty)} 个`,
meta: "保留来源根目录"
})
}),
/* @__PURE__ */ (0, x.jsx)("article", {
- className: zN(),
- children: /* @__PURE__ */ (0, x.jsx)(BN, {
+ className: RN(),
+ children: /* @__PURE__ */ (0, x.jsx)(zN, {
label: "可清理的缓存",
- figure: `${WP(t.files)} 个`,
+ figure: `${UP(t.files)} 个`,
meta: t.files ? Ut(t.bytes) : ""
})
})
]
})] });
}
-function ebe({ toast: e }) {
- let t = SP({
- queryKey: bN,
- queryFn: ({ signal: e }) => SN(e),
- start: xve,
+function tbe({ toast: e }) {
+ let t = xP({
+ queryKey: yN,
+ queryFn: ({ signal: e }) => xN(e),
+ start: Sve,
onFinish: (t) => {
if (V.invalidateQueries({
- queryKey: MN,
+ queryKey: jN,
exact: !0
}), V.invalidateQueries({
- queryKey: yN,
+ queryKey: vN,
exact: !0
}), t.status !== "complete") return;
- let { done: n, left: r } = ON(t);
- r ? e(`已完成 ${WP(n)} 项,${WP(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
+ let { done: n, left: r } = DN(t);
+ r ? e(`已完成 ${UP(n)} 项,${UP(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
}
- }), n = SP({
- queryKey: yN,
- queryFn: ({ signal: e }) => xN(e),
- start: bve,
+ }), n = xP({
+ queryKey: vN,
+ queryFn: ({ signal: e }) => bN(e),
+ start: xve,
onStarted: () => t.dismiss()
}), r = n.job, i = n.running || n.start.isPending, a = t.running || t.start.isPending, o = r?.status === "complete" || r?.status === "failed", s = i ? "扫描中" : o ? "重新扫描" : "检查文件", c = (e) => void is({
- title: HP,
- body: Dve(e),
- confirmLabel: HP,
+ title: VP,
+ body: Ove(e),
+ confirmLabel: VP,
danger: !0,
onConfirm: () => t.start.mutateAsync(e.scan_id || "")
}), l = t.outcome, u = (e) => {
- let t = ON(e).left > 0;
+ let t = DN(e).left > 0;
return /* @__PURE__ */ (0, x.jsx)(K, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "清理结果",
- children: kve(e, Ut)
+ children: Ave(e, Ut)
});
}, d = null, f = null;
if (l?.status === "failed") f = /* @__PURE__ */ (0, x.jsx)(K, {
@@ -42613,7 +42613,7 @@ function ebe({ toast: e }) {
children: l.error || "请查看任务记录,核对已处理的文件。"
});
else if (l) f = u(l);
- else if (t.running) d = /* @__PURE__ */ (0, x.jsx)(hP, {
+ else if (t.running) d = /* @__PURE__ */ (0, x.jsx)(mP, {
embedded: !0,
label: t.job?.message || "正在复核并清理失效条目…"
});
@@ -42625,11 +42625,11 @@ function ebe({ toast: e }) {
else if (n.query.isError && r) f = /* @__PURE__ */ (0, x.jsx)(K, {
tone: "neutral",
title: "任务状态",
- children: Qye
+ children: $ye
});
else if (r?.status === "running") {
- let e = Tve(r);
- d = /* @__PURE__ */ (0, x.jsx)(hP, {
+ let e = Eve(r);
+ d = /* @__PURE__ */ (0, x.jsx)(mP, {
embedded: !0,
label: e,
value: r.completed_sources,
@@ -42646,13 +42646,13 @@ function ebe({ toast: e }) {
children: "这次检查的结果已经清理,重新扫描可再核对。"
});
else if (r?.status === "complete") {
- let e = Cve(r);
+ let e = wve(r);
f = /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
- /* @__PURE__ */ (0, x.jsx)($ye, { scan: r }),
+ /* @__PURE__ */ (0, x.jsx)(ebe, { scan: r }),
e ? /* @__PURE__ */ (0, x.jsx)(K, {
tone: "neutral",
title: "清理内容",
- children: Eve(r)
+ children: Dve(r)
}) : null,
/* @__PURE__ */ (0, x.jsx)("div", {
className: "flex flex-wrap items-center justify-end gap-2",
@@ -42660,7 +42660,7 @@ function ebe({ toast: e }) {
variant: "danger",
...q(a),
onClick: () => c(r),
- children: a ? "正在复核并清理…" : HP
+ children: a ? "正在复核并清理…" : VP
}) : /* @__PURE__ */ (0, x.jsx)("p", {
className: "mr-auto text-body-regular text-notification-success-foreground",
children: "已检查可访问的来源,没有待清理的记录、空文件夹或缓存。"
@@ -42677,16 +42677,16 @@ function ebe({ toast: e }) {
"aria-labelledby": "resource-sync-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, x.jsx)(cP, {
+ /* @__PURE__ */ (0, x.jsx)(sP, {
id: "resource-sync-title",
children: "资源同步"
}),
- /* @__PURE__ */ (0, x.jsxs)(uP, {
+ /* @__PURE__ */ (0, x.jsxs)(lP, {
layout: "split",
labelledBy: "resource-sync-box",
footer: /* @__PURE__ */ (0, x.jsx)(G, {
"data-resource-scan": !0,
- leadingIcon: o && !i ? Zye : Xye,
+ leadingIcon: o && !i ? Qye : Zye,
...q(i),
onClick: () => {
i || n.start.mutate();
@@ -42694,7 +42694,7 @@ function ebe({ toast: e }) {
children: s
}),
children: [
- /* @__PURE__ */ (0, x.jsx)(lP, {
+ /* @__PURE__ */ (0, x.jsx)(cP, {
id: "resource-sync-box",
gap: "small",
children: "文件与记录核对"
@@ -42720,16 +42720,16 @@ function ebe({ toast: e }) {
}
//#endregion
//#region src/react/data-cleanup/data-cleanup-page.tsx
-function GP(e, t) {
+function WP(e, t) {
return e.data === void 0 ? { figure: e.isError ? "读取失败" : "—" } : t(e.data);
}
-function KP({ section: e, label: t, icon: n, value: r, open: i }) {
+function GP({ section: e, label: t, icon: n, value: r, open: i }) {
return /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
- className: zN({ interactive: !0 }),
+ className: RN({ interactive: !0 }),
"data-cleanup-go": e,
onClick: () => i(e),
- children: /* @__PURE__ */ (0, x.jsx)(BN, {
+ children: /* @__PURE__ */ (0, x.jsx)(zN, {
label: t,
icon: n,
figure: r.figure,
@@ -42737,80 +42737,80 @@ function KP({ section: e, label: t, icon: n, value: r, open: i }) {
})
});
}
-var tbe = xj("square-check-big"), nbe = xj("sparkles"), rbe = xj("file-stack"), ibe = xj("file-archive"), abe = xj("trash"), obe = [
- kN,
- MM,
- fM
-], sbe = () => {
- for (let e of obe) V.invalidateQueries({
+var nbe = bj("square-check-big"), rbe = bj("sparkles"), ibe = bj("file-stack"), abe = bj("file-archive"), obe = bj("trash"), sbe = [
+ ON,
+ jM,
+ dM
+], cbe = () => {
+ for (let e of sbe) V.invalidateQueries({
queryKey: e,
exact: !0
});
};
-function cbe({ toast: e, failure: t, open: n }) {
+function lbe({ toast: e, failure: t, open: n }) {
let r = dt({
- queryKey: kN,
- queryFn: ({ signal: e }) => NN(e)
+ queryKey: ON,
+ queryFn: ({ signal: e }) => MN(e)
}), i = dt({
- queryKey: MM,
- queryFn: ({ signal: e }) => NM(e)
+ queryKey: jM,
+ queryFn: ({ signal: e }) => MM(e)
}), a = dt({
- queryKey: fM,
- queryFn: ({ signal: e }) => mM(e)
+ queryKey: dM,
+ queryFn: ({ signal: e }) => pM(e)
}), o = dt({
- queryKey: AN,
- queryFn: ({ signal: e }) => PN(e)
+ queryKey: kN,
+ queryFn: ({ signal: e }) => NN(e)
}), s = dt({
- queryKey: MN,
- queryFn: ({ signal: e }) => FN(e)
+ queryKey: jN,
+ queryFn: ({ signal: e }) => PN(e)
}), c = dt({
queryKey: fn,
queryFn: ({ signal: e }) => pn(e)
}), l = (t) => e(t);
return /* @__PURE__ */ (0, x.jsxs)(qO, { children: [
/* @__PURE__ */ (0, x.jsxs)("div", {
- className: Bve,
+ className: Vve,
children: [
- /* @__PURE__ */ (0, x.jsx)(KP, {
+ /* @__PURE__ */ (0, x.jsx)(GP, {
section: "review",
label: "人工复核",
- icon: tbe,
+ icon: nbe,
open: n,
- value: GP(r, Nve)
+ value: WP(r, Pve)
}),
- /* @__PURE__ */ (0, x.jsx)(KP, {
+ /* @__PURE__ */ (0, x.jsx)(GP, {
section: "quality",
label: "高清版",
- icon: nbe,
+ icon: rbe,
open: n,
- value: GP(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
+ value: WP(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
}),
- /* @__PURE__ */ (0, x.jsx)(KP, {
+ /* @__PURE__ */ (0, x.jsx)(GP, {
section: "duplicates",
label: "重复文件",
- icon: rbe,
+ icon: ibe,
open: n,
- value: GP(a, (e) => Number(e.total || 0) ? {
+ value: WP(a, (e) => Number(e.total || 0) ? {
figure: `${Number(e.total).toLocaleString()} 组 · ${Number(e.files || 0).toLocaleString()} 个文件`,
meta: `可回收 ${Ut(e.reclaimable || 0)}`
} : { figure: "没有重复内容" })
}),
- /* @__PURE__ */ (0, x.jsx)(KP, {
+ /* @__PURE__ */ (0, x.jsx)(GP, {
section: "ads",
label: "垃圾文件",
- icon: ibe,
+ icon: abe,
open: n,
- value: GP(o, (e) => ({
+ value: WP(o, (e) => ({
figure: `${Number(e.pending_total || 0).toLocaleString()} 个待判断`,
- meta: Pve(e)
+ meta: Fve(e)
}))
}),
- /* @__PURE__ */ (0, x.jsx)(KP, {
+ /* @__PURE__ */ (0, x.jsx)(GP, {
section: "trash",
label: "回收站",
- icon: abe,
+ icon: obe,
open: n,
- value: GP(s, (e) => ({
+ value: WP(s, (e) => ({
figure: `${Number(e.total || 0).toLocaleString()} 项在回收站`,
meta: e.total ? `占用 ${Ut(e.bytes || 0)}` : ""
}))
@@ -42823,31 +42823,31 @@ function cbe({ toast: e, failure: t, open: n }) {
/* @__PURE__ */ (0, x.jsx)("div", {
id: "libraryProcessing",
className: "scroll-mt-20",
- children: /* @__PURE__ */ (0, x.jsx)(_P, {
+ children: /* @__PURE__ */ (0, x.jsx)(gP, {
toast: l,
monitor: !0,
- onComplete: sbe
+ onComplete: cbe
})
}),
/* @__PURE__ */ (0, x.jsx)("div", {
id: "mediaRepair",
- children: /* @__PURE__ */ (0, x.jsx)(Tye, {})
+ children: /* @__PURE__ */ (0, x.jsx)(Eye, {})
}),
- /* @__PURE__ */ (0, x.jsx)(Rye, {
+ /* @__PURE__ */ (0, x.jsx)(zye, {
toast: l,
failure: t
})
]
}),
- /* @__PURE__ */ (0, x.jsx)(jye, {}),
- /* @__PURE__ */ (0, x.jsx)(Yye, { toast: l }),
- CN(c.data) ? /* @__PURE__ */ (0, x.jsx)(ebe, { toast: e }) : null
+ /* @__PURE__ */ (0, x.jsx)(Mye, {}),
+ /* @__PURE__ */ (0, x.jsx)(Xye, { toast: l }),
+ SN(c.data) ? /* @__PURE__ */ (0, x.jsx)(tbe, { toast: e }) : null
] });
}
//#endregion
//#region src/react/feed-new/feed-new.ts
-var qP = (e) => ["feed-new", e ?? "home"], lbe = 8, ube = 1500;
-function dbe(e, t, n) {
+var KP = (e) => ["feed-new", e ?? "home"], ube = 8, dbe = 1500;
+function fbe(e, t, n) {
let r = document.createElement("template");
r.innerHTML = e;
let i = [...r.content.querySelectorAll("img[src]")].slice(0, t).map((e) => {
@@ -42858,32 +42858,32 @@ function dbe(e, t, n) {
setTimeout(e, n);
})]);
}
-async function fbe(e, t, n) {
+async function pbe(e, t, n) {
let r = new URLSearchParams({ limit: "12" });
e && r.set("entity", String(e));
let i = await vt(`/api/feeds/discoveries?${r}`).catch(() => null), a = i && !i.error ? i : null, o = a?.items || [], s = t(a);
- return n && o.length && await dbe(s, lbe, ube), {
+ return n && o.length && await fbe(s, ube, dbe), {
items: o,
html: s
};
}
-var JP = (e, t, n = !1) => ({
- queryKey: qP(e),
- queryFn: () => fbe(e, t, n),
+var qP = (e, t, n = !1) => ({
+ queryKey: KP(e),
+ queryFn: () => pbe(e, t, n),
staleTime: Infinity
-}), YP = (e, t) => vt("/api/feeds/discovery", {
+}), JP = (e, t) => vt("/api/feeds/discovery", {
method: "POST",
body: JSON.stringify({
action: t,
ids: [e]
})
}).then(() => void 0, () => void 0);
-async function pbe(e) {
- V.removeQueries({ queryKey: qP(null) }), await V.fetchQuery(JP(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
+async function mbe(e) {
+ V.removeQueries({ queryKey: KP(null) }), await V.fetchQuery(qP(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
}
//#endregion
//#region src/react/entity-page/entity-page.ts
-var XP = [
+var YP = [
"loc",
"creator",
"tag",
@@ -42893,51 +42893,51 @@ var XP = [
"orient",
"sort",
"dir"
-], ZP = {
+], XP = {
media: "videos",
set: 0
-}, QP = (e, t) => [
+}, ZP = (e, t) => [
"entity",
e,
t
-], mbe = (e, t, n, r) => [
+], hbe = (e, t, n, r) => [
"entity-items",
e,
t,
n,
r
-], $P = (e, t, n, r) => [
+], QP = (e, t, n, r) => [
"entity-photos",
e,
t,
n,
r
-], eF = (e) => String(e || "").split(",").filter(Boolean), hbe = (e, t) => eF(e).includes(t);
-function tF(e, t, n, r, i = 0) {
+], $P = (e) => String(e || "").split(",").filter(Boolean), gbe = (e, t) => $P(e).includes(t);
+function eF(e, t, n, r, i = 0) {
let a = new URLSearchParams();
a.set(e, t), 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 XP) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
+ for (let t of YP) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
return r.jav && a.set("jav", "1"), a;
}
-async function nF(e, t, n, r, i, a) {
- return await vt(`/api/items?${tF(e, t, n, r, i)}`, a ? { signal: a } : {});
+async function tF(e, t, n, r, i, a) {
+ return await vt(`/api/items?${eF(e, t, n, r, i)}`, a ? { signal: a } : {});
}
-var rF = (e) => {
+var nF = (e) => {
let t = {
jav: e.jav,
seed: e.seed
- }, n = tF(e.kind, e.name, e.filters, t).toString();
+ }, n = eF(e.kind, e.name, e.filters, t).toString();
return {
- queryKey: mbe(e.kind, e.name, n, e.revision),
- queryFn: ({ signal: n }) => nF(e.kind, e.name, e.filters, t, 0, n),
+ queryKey: hbe(e.kind, e.name, n, e.revision),
+ queryFn: ({ signal: n }) => tF(e.kind, e.name, e.filters, t, 0, n),
staleTime: Infinity
};
-}, iF = (e, t) => ({
- queryKey: QP(e, t),
+}, rF = (e, t) => ({
+ queryKey: ZP(e, t),
queryFn: ({ signal: n }) => vt(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`, { signal: n }),
staleTime: Infinity
});
-function gbe(e, t, n, r, i, a) {
+function _be(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)}` : ""}`;
@@ -42946,10 +42946,10 @@ function gbe(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 aF = (e, t, n, r) => ({
- queryKey: $P(e, t, n, r),
+var iF = (e, t, n, r) => ({
+ queryKey: QP(e, t, n, r),
queryFn: async ({ pageParam: i }) => {
- let a = await vt(gbe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
+ let a = await vt(_be(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
if (i) throw e;
return { error: String(e) };
});
@@ -42962,8 +42962,8 @@ var aF = (e, t, n, r) => ({
seed: t[0]?.seed || ""
} : void 0,
staleTime: Infinity
-}), oF = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
-async function _be(e) {
+}), aF = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
+async function vbe(e) {
let { kind: t, name: n } = e;
for (let e of [
"entity",
@@ -42975,25 +42975,25 @@ async function _be(e) {
n
] });
await Promise.all([
- V.fetchQuery(iF(t, n)).then((t) => !t || t.error || !t.id ? null : (V.removeQueries({ queryKey: qP(Number(t.id)) }), V.fetchQuery(JP(Number(t.id), e.helpers.feedRowHtml, !0)))),
- V.fetchQuery(rF(e)),
- V.fetchInfiniteQuery(aF(t, n, 0, "")),
- e.media.media === "photos" && e.media.set ? V.fetchInfiniteQuery(aF(t, n, e.media.set, "")) : null
+ V.fetchQuery(rF(t, n)).then((t) => !t || t.error || !t.id ? null : (V.removeQueries({ queryKey: KP(Number(t.id)) }), V.fetchQuery(qP(Number(t.id), e.helpers.feedRowHtml, !0)))),
+ V.fetchQuery(nF(e)),
+ V.fetchInfiniteQuery(iF(t, n, 0, "")),
+ e.media.media === "photos" && e.media.set ? V.fetchInfiniteQuery(iF(t, n, e.media.set, "")) : null
]);
}
//#endregion
//#region src/identity-filter.ts
-var sF = [
+var oF = [
["all", "全部"],
["japanese_av", "女优"],
["amateur", "素人"],
["western", "西方"],
["blogger", "网黄博主"],
["animation", "动画作者"]
-], cF = "mb-4 flex flex-wrap gap-2";
-function vbe(e) {
- let t = sF.some(([t]) => t === e) ? e : "all";
- return `<div class="peach-react"><div aria-label="身份分类" class="${cF}">${sF.map(([e, n]) => YN({
+], sF = "mb-4 flex flex-wrap gap-2";
+function ybe(e) {
+ let t = oF.some(([t]) => t === e) ? e : "all";
+ return `<div class="peach-react"><div aria-label="身份分类" class="${sF}">${oF.map(([e, n]) => JN({
variant: e === t ? "primary" : "secondary",
size: "small",
label: n,
@@ -43002,43 +43002,43 @@ function vbe(e) {
}
//#endregion
//#region src/react/follow/online-vocab.ts
-var ybe = "/api/follow/authors", bbe = "/api/follow/tags", xbe = (e) => [
+var bbe = "/api/follow/authors", xbe = "/api/follow/tags", Sbe = (e) => [
"follow",
"authors",
e
-], Sbe = (e, t) => [
+], Cbe = (e, t) => [
"follow",
"tags",
e,
t
];
-function Cbe(e, t, n) {
+function wbe(e, t, n) {
let r = new URLSearchParams({
limit: String(t),
offset: String(n)
});
- return e && r.set("q", e), `${ybe}?${r}`;
+ return e && r.set("q", e), `${bbe}?${r}`;
}
-function wbe(e, t, n, r) {
+function Tbe(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), `${bbe}?${i}`;
+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${xbe}?${i}`;
}
-var Tbe = (e, t, n, r) => z(Cbe(e, t, n), r), Ebe = (e, t, n, r, i) => z(wbe(e, t, n, r), i), Dbe = "/api/index", lF = {
+var Ebe = (e, t, n, r) => z(wbe(e, t, n), r), Dbe = (e, t, n, r, i) => z(Tbe(e, t, n, r), i), Obe = "/api/index", cF = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
tags: "标签"
-}, Obe = {
+}, kbe = {
performers: "performer",
creators: "creator",
studios: "studio",
agencies: "agency"
-}, uF = [
+}, lF = [
["all", "全部"],
["meta", "影片属性"],
["relationship", "人物关系"],
@@ -43048,31 +43048,31 @@ var Tbe = (e, t, n, r) => z(Cbe(e, t, n), r), Ebe = (e, t, n, r, i) => z(wbe(e,
["story", "故事剧情"],
["position", "性交体位"],
["general", "其他内容"]
-], dF = [
+], uF = [
["all", "全部"],
["general", "通用"],
["artist", "创作者"],
["character", "角色"],
["copyright", "作品"],
["metadata", "元数据"]
-], fF = {
+], dF = {
people: 120,
tags: 180
-}, pF = (e) => e !== "tags", mF = (e) => e === "studios" || e === "agencies";
-function hF(e) {
- if (e.kind === "creators" && e.category === "animation") return hF({
+}, fF = (e) => e !== "tags", pF = (e) => e === "studios" || e === "agencies";
+function mF(e) {
+ if (e.kind === "creators" && e.category === "animation") return mF({
...e,
kind: "performers",
scope: "local"
});
- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (e.kind === "tags" ? t === "online" ? dF : uF : e.kind === "performers" && t === "local" ? sF : []).some(([t]) => t === e.category);
+ let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (e.kind === "tags" ? t === "online" ? uF : lF : e.kind === "performers" && t === "local" ? oF : []).some(([t]) => t === e.category);
return {
...e,
scope: t,
category: n ? e.category : "all"
};
}
-function gF(e) {
+function hF(e) {
let { kind: t, q: n, scope: r, category: i } = e;
return t === "tags" ? r === "online" ? {
what: "online-tags",
@@ -43092,50 +43092,50 @@ function gF(e) {
...i && i !== "all" ? { category: i } : {}
};
}
-var _F = (e, t, n = "all") => [
+var gF = (e, t, n = "all") => [
"index",
e,
t,
...e === "tags" || n !== "all" ? [n] : []
];
-function vF(e, t, n, r, i) {
+function _F(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), `${Dbe}?${a}`;
+ return t && a.set("q", t), n !== "all" && a.set("category", n), `${Obe}?${a}`;
}
-function yF(e) {
- let t = e.what === "people" || e.what === "online-authors" ? fF.people : fF.tags, n = {
+function vF(e) {
+ let t = e.what === "people" || e.what === "online-authors" ? dF.people : dF.tags, n = {
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 {
...n,
- queryKey: _F(e.kind, e.q, e.category || "all"),
- queryFn: ({ pageParam: n, signal: r }) => z(vF(e.kind, e.q, e.category || "all", t, n), r)
+ queryKey: gF(e.kind, e.q, e.category || "all"),
+ queryFn: ({ pageParam: n, signal: r }) => z(_F(e.kind, e.q, e.category || "all", t, n), r)
};
case "tags": return {
...n,
- queryKey: _F("tags", e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => z(vF("tags", e.q, e.category, t, n), r)
+ queryKey: gF("tags", e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => z(_F("tags", e.q, e.category, t, n), r)
};
case "online-authors": return {
...n,
- queryKey: xbe(e.q),
- queryFn: ({ pageParam: n, signal: r }) => Tbe(e.q, t, n, r)
+ queryKey: Sbe(e.q),
+ queryFn: ({ pageParam: n, signal: r }) => Ebe(e.q, t, n, r)
};
case "online-tags": return {
...n,
- queryKey: Sbe(e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => Ebe(e.q, e.category, t, n, r)
+ queryKey: Cbe(e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => Dbe(e.q, e.category, t, n, r)
};
}
}
-async function kbe(e, t) {
- let n = yF(gF(hF(e)));
+async function Abe(e, t) {
+ let n = vF(hF(mF(e)));
V.removeQueries({
queryKey: n.queryKey,
exact: !0
@@ -43149,13 +43149,13 @@ async function kbe(e, t) {
getNextPageParam: n.getNextPageParam
});
}
-var Abe = (e) => e ? e.pages.flatMap((e) => e.items) : [], jbe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, bF = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", Mbe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, Nbe = {
+var jbe = (e) => e ? e.pages.flatMap((e) => e.items) : [], Mbe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, yF = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", Nbe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, Pbe = {
numeric: !0,
sensitivity: "base"
};
-function Pbe(e, t) {
+function Fbe(e, t) {
let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", Nbe))) {
+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", Pbe))) {
let e = qt(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]);
}
@@ -43163,7 +43163,7 @@ function Pbe(e, t) {
}
//#endregion
//#region src/react/index/index-people.tsx
-function xF({ html: e, face: t, company: n, big: r }) {
+function bF({ html: e, face: t, company: n, big: r }) {
let i = (0, b.useRef)(null);
return (0, b.useLayoutEffect)(() => {
t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");
@@ -43175,8 +43175,8 @@ function xF({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var Fbe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", Ibe = xj("rss");
-function SF({ name: e, readout: t, big: n, children: r, following: i, onPress: a, ...o }) {
+var Ibe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", Lbe = bj("rss");
+function xF({ name: e, readout: t, big: n, children: r, following: i, onPress: a, ...o }) {
return /* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
...o,
@@ -43186,7 +43186,7 @@ function SF({ name: e, readout: t, big: n, children: r, following: i, onPress: a
radius: "plain",
padding: "none",
interactive: !0,
- className: `${Fbe} ${n ? "items-stretch text-left" : "items-center text-center"}`
+ className: `${Ibe} ${n ? "items-stretch text-left" : "items-center text-center"}`
}),
children: [
r,
@@ -43198,7 +43198,7 @@ function SF({ name: e, readout: t, big: n, children: r, following: i, onPress: a
children: /* @__PURE__ */ (0, x.jsx)(VO, {
variant: "caption",
color: "blue",
- children: /* @__PURE__ */ (0, x.jsx)(Ibe, {})
+ children: /* @__PURE__ */ (0, x.jsx)(Lbe, {})
})
}) : null,
/* @__PURE__ */ (0, x.jsx)("span", {
@@ -43214,24 +43214,24 @@ function SF({ name: e, readout: t, big: n, children: r, following: i, onPress: a
]
});
}
-function CF({ kind: e, items: t, layout: n, props: r }) {
- let i = mF(e), a = n === "big";
+function SF({ kind: e, items: t, layout: n, props: r }) {
+ let i = pF(e), a = n === "big";
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-index-grid": "",
"data-layout": n,
"data-cells": i ? "company" : "people",
className: `${i ? "index-grid-company" : "index-grid-person"} gap-3`,
children: t.map((t) => {
- let n = t.entity_kind || Obe[e], o = r.personAvatar(t, n, a);
- return /* @__PURE__ */ (0, x.jsx)(SF, {
+ let n = t.entity_kind || kbe[e], o = r.personAvatar(t, n, a);
+ return /* @__PURE__ */ (0, x.jsx)(xF, {
"data-k": t.k,
"data-kind": n,
name: t.k,
- readout: `${Mbe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
+ readout: `${Nbe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
big: a,
following: t.following,
onPress: () => r.openEntity(n, t.k),
- children: /* @__PURE__ */ (0, x.jsx)(xF, {
+ children: /* @__PURE__ */ (0, x.jsx)(bF, {
html: o.html,
face: o.face,
company: i,
@@ -43241,14 +43241,14 @@ function CF({ kind: e, items: t, layout: n, props: r }) {
})
});
}
-function Lbe({ items: e, layout: t, props: n }) {
+function Rbe({ items: e, layout: t, props: n }) {
let r = t === "big";
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-index-grid": "",
"data-layout": t,
"data-cells": "people",
className: "index-grid-person gap-3",
- children: e.map((e) => /* @__PURE__ */ (0, x.jsx)(SF, {
+ children: e.map((e) => /* @__PURE__ */ (0, x.jsx)(xF, {
"data-follow-author": e.key,
"data-kind": "performer",
name: e.k,
@@ -43257,7 +43257,7 @@ function Lbe({ 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, x.jsx)(xF, {
+ children: /* @__PURE__ */ (0, x.jsx)(bF, {
html: n.authorAvatar(e),
company: !1,
big: r
@@ -43267,24 +43267,24 @@ function Lbe({ items: e, layout: t, props: n }) {
}
//#endregion
//#region src/board-controls.ts
-function wF(e) {
+function CF(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 TF = /* @__PURE__ */ new WeakSet();
-function Rbe() {
- if (TF.has(document)) return;
- TF.add(document);
+var wF = /* @__PURE__ */ new WeakSet();
+function zbe() {
+ if (wF.has(document)) return;
+ wF.add(document);
let e = (e) => {
- e.querySelectorAll("input[type=range]").forEach(wF), Bbe(e), zbe(e);
+ e.querySelectorAll("input[type=range]").forEach(CF), Vbe(e), Bbe(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]") && wF(t), e(t));
+ for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && CF(t), e(t));
}).observe(document.body, {
subtree: !0,
childList: !0
}), document.addEventListener("input", (e) => {
- e.target instanceof HTMLInputElement && e.target.type === "range" && wF(e.target);
+ e.target instanceof HTMLInputElement && e.target.type === "range" && CF(e.target);
});
let t = document.createElement("div");
t.className = "ui-board-tooltip", t.id = "board-control-tooltip", t.role = "tooltip", t.popover = "manual", t.hidden = !0, document.body.append(t);
@@ -43307,7 +43307,7 @@ function Rbe() {
n && za(e, n) && o();
}, !0), window.addEventListener("resize", o);
}
-function zbe(e) {
+function Bbe(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;
@@ -43331,15 +43331,15 @@ function zbe(e) {
r.observe(e);
});
}
-var EF = /* @__PURE__ */ new Map();
-function Bbe(e) {
+var TF = /* @__PURE__ */ new Map();
+function Vbe(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 = EF.get(n) ?? null, i = () => {
+ let n = e.className + (e.getAttribute("aria-label") ?? ""), r = TF.get(n) ?? null, i = () => {
let i = e.querySelector("label:has(input:checked),button[aria-selected=true]");
if (!i || !i.offsetWidth) return;
let a = {
@@ -43348,7 +43348,7 @@ function Bbe(e) {
w: i.offsetWidth,
h: i.offsetHeight
};
- Vo(t, r, a, "x"), r = a, EF.set(n, a);
+ Vo(t, r, a, "x"), r = a, TF.set(n, a);
};
e.addEventListener("change", i);
let a = new MutationObserver(i);
@@ -43365,8 +43365,8 @@ function Bbe(e) {
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox.ts
-var DF = "/vendor/swiper/14.3.0/", OF = null, Vbe = () => OF ??= Promise.all([new Promise((e, t) => {
- let n = `${DF}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
+var EF = "/vendor/swiper/14.3.0/", DF = null, Hbe = () => DF ??= Promise.all([new Promise((e, t) => {
+ let n = `${EF}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
if (r?.sheet) {
e();
return;
@@ -43380,11 +43380,11 @@ var DF = "/vendor/swiper/14.3.0/", OF = null, Vbe = () => OF ??= Promise.all([ne
return;
}
let r = document.createElement("script");
- r.src = `${DF}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
+ r.src = `${EF}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 OF = null, e;
+ throw DF = null, e;
});
-function Hbe(e, t, n) {
+function Ube(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);
@@ -43405,47 +43405,47 @@ function Hbe(e, t, n) {
}
};
}
-var kF = (e) => {
+var OF = (e) => {
let t = Number(e) || 0;
return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : Ut(t)).replace(" ", "\xA0") : "大小未知";
-}, Ube = (e) => e.asset?.name || e.name || "未命名图片";
-function Wbe(e, t) {
+}, Wbe = (e) => e.asset?.name || e.name || "未命名图片";
+function Gbe(e, t) {
let n = e.asset;
- if (n) return [Yt[n.location ?? ""] || n.location || "来源未知", kF(n.size)].join(" · ");
+ if (n) return [Yt[n.location ?? ""] || n.location || "来源未知", OF(n.size)].join(" · ");
let r = t?.[0] && t[1] ? `${t[0]} × ${t[1]}` : "";
return [
e.source || "在线图片",
r,
- e.size ? kF(e.size) : ""
+ e.size ? OF(e.size) : ""
].filter(Boolean).join(" · ");
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox-dialog.tsx
-var AF = null, jF = null, Gbe = 0;
-function Kbe() {
- return (!jF || !AF?.isConnected) && (jF?.unmount(), AF = document.createElement("div"), AF.className = "peach-react", AF.dataset.photoLightboxHost = "", document.body.append(AF), jF = (0, ht.createRoot)(AF)), jF;
+var kF = null, AF = null, Kbe = 0;
+function qbe() {
+ return (!AF || !kF?.isConnected) && (AF?.unmount(), kF = document.createElement("div"), kF.className = "peach-react", kF.dataset.photoLightboxHost = "", document.body.append(kF), AF = (0, ht.createRoot)(kF)), AF;
}
-async function MF(e, t, n) {
+async function jF(e, t, n) {
if (!t.length || e < 0 || e >= t.length) return;
let r;
try {
- r = await Vbe();
+ r = await Hbe();
} catch {
window.open(t[e].src, "_blank", "noopener");
return;
}
- let i = Kbe();
- (0, mt.flushSync)(() => i.render(/* @__PURE__ */ (0, x.jsx)(qbe, {
+ let i = qbe();
+ (0, mt.flushSync)(() => i.render(/* @__PURE__ */ (0, x.jsx)(Jbe, {
slides: t,
index: e,
Swiper: r,
host: n ?? null
- }, ++Gbe)));
+ }, ++Kbe)));
}
-function NF() {
- jF && (0, mt.flushSync)(() => jF.render(null));
+function MF() {
+ AF && (0, mt.flushSync)(() => AF.render(null));
}
-function qbe({ slides: e, index: t, Swiper: n, host: r }) {
+function Jbe({ slides: e, index: t, Swiper: n, host: r }) {
let i = e.length > 1, a = (0, b.useId)(), o = (0, b.useRef)(null), s = (0, b.useRef)(null), c = (0, b.useRef)(null), l = (0, b.useRef)(null), u = (0, b.useRef)(null), d = (0, b.useRef)(null), f = (0, b.useRef)(null), p = (0, b.useRef)(null), m = (0, b.useRef)(null), h = (0, b.useRef)(null), g = (0, b.useRef)(null), [_, v] = (0, b.useState)(t), [y, S] = (0, b.useState)(100), [C, w] = (0, b.useState)({}), [T, E] = (0, b.useState)(() => /* @__PURE__ */ new Set()), [D, O] = (0, b.useState)(() => /* @__PURE__ */ new Set()), [k, A] = (0, b.useState)(!1), [j, M] = (0, b.useState)({
at: t,
text: ""
@@ -43488,7 +43488,7 @@ function qbe({ slides: e, index: t, Swiper: n, host: r }) {
v(this.activeIndex), i(this.activeIndex);
} }
});
- i(t, 0), h.current = Hbe(e, a, S);
+ i(t, 0), h.current = Ube(e, a, S);
let m = $o(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();
};
@@ -43505,13 +43505,13 @@ function qbe({ slides: e, index: t, Swiper: n, host: r }) {
});
y.observe(e);
let b = (e) => {
- e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : NF());
+ e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : MF());
};
return document.addEventListener("keydown", b, !0), () => {
document.removeEventListener("keydown", b, !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, b.useLayoutEffect)(() => {
- m.current && wF(m.current);
+ m.current && CF(m.current);
}, [y]);
let N = e[_], ee = N.asset ?? null, te = async (e) => {
if (!ee || !r || e.getAttribute("aria-busy") === "true") return;
@@ -43542,18 +43542,18 @@ function qbe({ slides: e, index: t, Swiper: n, host: r }) {
"data-photo-lightbox": "",
"data-has-strip": i ? "" : void 0,
onCancel: (e) => {
- e.preventDefault(), NF();
+ e.preventDefault(), MF();
},
onClick: (e) => {
let t = e.target;
- g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && NF();
+ g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && MF();
},
children: [
/* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
"data-photo-close": "",
"aria-label": "关闭",
- onClick: NF,
+ onClick: MF,
dangerouslySetInnerHTML: { __html: I("x") }
}),
/* @__PURE__ */ (0, x.jsxs)("div", {
@@ -43689,10 +43689,10 @@ function qbe({ slides: e, index: t, Swiper: n, host: r }) {
id: `${a}-title`,
"data-middle-truncate": "",
tabIndex: -1,
- children: Ube(N)
+ children: Wbe(N)
}, _), /* @__PURE__ */ (0, x.jsx)("span", {
"data-photo-detail-meta": "",
- children: Wbe(N, C[_])
+ children: Gbe(N, C[_])
})]
}),
/* @__PURE__ */ (0, x.jsx)("button", {
@@ -43731,40 +43731,40 @@ function qbe({ slides: e, index: t, Swiper: n, host: r }) {
}
//#endregion
//#region src/react/entity-body/entity-body-page.tsx
-function Jbe(e) {
- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, x.jsx)(Ybe, {
+function Ybe(e) {
+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, x.jsx)(Xbe, {
roster: e.roster,
props: e
- }) : e.view === "videos" ? /* @__PURE__ */ (0, x.jsx)(Xbe, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, x.jsx)($be, {
+ }) : e.view === "videos" ? /* @__PURE__ */ (0, x.jsx)(Zbe, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, x.jsx)(exe, {
photos: e.photos,
props: e
}, e.photos.revision) : null;
}
-var PF = fF.people;
-function Ybe({ roster: e, props: t }) {
+var NF = dF.people;
+function Xbe({ roster: e, props: t }) {
let { helpers: n, actions: r } = t, i = (0, b.useMemo)(() => ({
personAvatar: n.personAvatar,
openEntity: r.openEntity
- }), [n, r]), [a, o] = (0, b.useState)(PF), s = (0, b.useMemo)(() => e.people.slice(0, a), [e.people, a]), c = (0, b.useCallback)(async () => {
- o((e) => e + PF);
+ }), [n, r]), [a, o] = (0, b.useState)(NF), s = (0, b.useMemo)(() => e.people.slice(0, a), [e.people, a]), c = (0, b.useCallback)(async () => {
+ o((e) => e + NF);
}, []);
- return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(CF, {
+ return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(SF, {
kind: e.kind,
items: s,
layout: e.layout,
props: i
- }), a < e.people.length ? /* @__PURE__ */ (0, x.jsx)(lM, {
+ }), a < e.people.length ? /* @__PURE__ */ (0, x.jsx)(cM, {
entity: !0,
load: c,
enabled: () => !0
}, a) : null] });
}
-function Xbe(e) {
- let t = Jj(!e.items, e.skeletonHtml);
+function Zbe(e) {
+ let t = qj(!e.items, e.skeletonHtml);
return /* @__PURE__ */ (0, x.jsxs)("div", {
"data-entity-grid": "",
"data-grid-reveal": t.fading ? "" : void 0,
- children: [t.layer, e.items ? /* @__PURE__ */ (0, x.jsx)(cM, {
+ children: [t.layer, e.items ? /* @__PURE__ */ (0, x.jsx)(sM, {
mode: "entity",
entityKey: `${e.kind}:${e.name}`,
revision: e.revision,
@@ -43783,33 +43783,33 @@ function Xbe(e) {
}) : null]
});
}
-var Zbe = (e) => Array.from({ length: e.n }, (t, n) => ({
+var Qbe = (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 || "官方样张"
-})), FF = (e) => e.sample === !0, IF = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, LF = (e) => FF(e) ? `/sample-thumb?${IF(e)}` : `/photo-thumb?id=${e.id}`, Qbe = (e) => FF(e) ? {
- src: `/sample-image?${IF(e)}`,
- thumb: LF(e),
+})), PF = (e) => e.sample === !0, FF = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, IF = (e) => PF(e) ? `/sample-thumb?${FF(e)}` : `/photo-thumb?id=${e.id}`, $be = (e) => PF(e) ? {
+ src: `/sample-image?${FF(e)}`,
+ thumb: IF(e),
name: e.name,
asset: null,
source: e.source
} : {
src: `/photo?id=${e.id}`,
- thumb: LF(e),
+ thumb: IF(e),
name: e.name || "",
asset: e
};
-function $be({ photos: e, props: t }) {
- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, b.useMemo)(() => [...e.codeSets.flatMap(Zbe), ...e.items], [e]), [s, c] = (0, b.useState)(() => /* @__PURE__ */ new Set()), l = (0, b.useCallback)((e) => c((t) => {
+function exe({ photos: e, props: t }) {
+ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, b.useMemo)(() => [...e.codeSets.flatMap(Qbe), ...e.items], [e]), [s, c] = (0, b.useState)(() => /* @__PURE__ */ new Set()), l = (0, b.useCallback)((e) => c((t) => {
if (t.has(e)) return t;
let n = new Set(t);
return n.add(e), n;
}), []), u = (0, b.useCallback)((e) => {
- MF(e, o.map(Qbe), { revealSource: i.revealSource });
- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, x.jsx)(exe, {
+ jF(e, o.map($be), { revealSource: i.revealSource });
+ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, x.jsx)(txe, {
item: e,
index: t,
lost: s.has(t),
@@ -43827,7 +43827,7 @@ function $be({ photos: e, props: t }) {
};
}), h = p;
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
- m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, x.jsxs)(b.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(RF, {
+ m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, x.jsxs)(b.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(LF, {
label: e.code,
title: e.name,
meta: [
@@ -43839,7 +43839,7 @@ function $be({ 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, x.jsx)(RF, {
+ m.length && e.total ? /* @__PURE__ */ (0, x.jsx)(LF, {
label: "本地图片",
meta: `${e.total.toLocaleString()} 张`
}) : null,
@@ -43848,14 +43848,14 @@ function $be({ 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, x.jsx)(lM, {
+ e.hasMore ? /* @__PURE__ */ (0, x.jsx)(cM, {
entity: !0,
load: i.loadMorePhotos,
enabled: () => a?.() !== !1
}, e.items.length) : null
] });
}
-function RF({ label: e, title: t, meta: n }) {
+function LF({ label: e, title: t, meta: n }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
"data-photo-group": "",
children: [
@@ -43872,7 +43872,7 @@ function RF({ label: e, title: t, meta: n }) {
]
});
}
-function exe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
+function txe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
let a = e.name ?? "";
return /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
@@ -43881,7 +43881,7 @@ function exe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
title: a,
onClick: () => i(t),
children: n ? null : /* @__PURE__ */ (0, x.jsx)("img", {
- src: LF(e),
+ src: IF(e),
alt: a,
loading: "lazy",
decoding: "async",
@@ -43892,8 +43892,8 @@ function exe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
}
//#endregion
//#region src/react/follow-feed/follow-card.tsx
-var txe = (e) => Number(e) > 0;
-function zF({ name: e, actions: t, children: n, ...r }) {
+var nxe = (e) => Number(e) > 0;
+function RF({ name: e, actions: t, children: n, ...r }) {
return /* @__PURE__ */ (0, x.jsx)("a", {
...r,
href: `/creators/${encodeURIComponent(e)}`,
@@ -43903,13 +43903,13 @@ function zF({ name: e, actions: t, children: n, ...r }) {
children: n
});
}
-var BF = ({ provider: e }) => /* @__PURE__ */ (0, x.jsx)("span", {
+var zF = ({ provider: e }) => /* @__PURE__ */ (0, x.jsx)("span", {
"data-follow-nothumb": "",
- dangerouslySetInnerHTML: { __html: Tj(e) }
+ dangerouslySetInnerHTML: { __html: wj(e) }
});
-function nxe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a }) {
+function rxe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a }) {
let [o, s] = (0, b.useState)(!1), [c, l] = (0, b.useState)(!1);
- return o ? /* @__PURE__ */ (0, x.jsx)(BF, { provider: i }) : /* @__PURE__ */ (0, x.jsx)("img", {
+ return o ? /* @__PURE__ */ (0, x.jsx)(zF, { provider: i }) : /* @__PURE__ */ (0, x.jsx)("img", {
src: c ? t : e,
alt: "",
loading: "lazy",
@@ -43925,8 +43925,8 @@ function nxe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a
} : void 0
});
}
-function rxe(e) {
- let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = ni(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) => bge(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? ii(t) : [], S = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, C = oi({
+function ixe(e) {
+ let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = ni(t, r), d = r === "images", f = d ? (u.media_items || []).find((e) => e.media_kind === "image") : void 0, p = f?.thumb_url || u.thumb_url || "", m = d && u.playable ? `/follow-stream?id=${u.id}${f ? `&media=${f.index}` : ""}` : void 0, h = f && f.thumb_url === p ? f : null, g = !h || p === u.thumb_url, _ = d ? [h, g ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, v = d && !_ && p ? (e, t) => xge(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? ii(t) : [], S = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, C = oi({
cover: p,
coverFace: (f?.thumb_url ? f : u).face,
stack: t.stack,
@@ -43934,7 +43934,7 @@ function rxe(e) {
limit: 9
}), w = (0, b.useRef)(C.faces);
w.current = C.faces;
- let T = iM({
+ let T = rM({
load: async () => w.current,
canFlip: () => w.current.length > 1 && l.canFlip(),
referrerPolicy: "no-referrer"
@@ -43942,7 +43942,7 @@ function rxe(e) {
E.current = T.onPointerLeave;
let D = (0, b.useCallback)((e) => {
e && (e._stopHover = () => E.current());
- }, []), O = Aj(u, n, i), k = Ej(u), A = u.resource_provider || u.provider, j = (u.tags || []).slice(0, 3), M = Nj(u, i), N = Mj(t, u), ee = u.status === "saved", te = (e) => {
+ }, []), O = kj(u, n, i), k = Tj(u), A = u.resource_provider || u.provider, j = (u.tags || []).slice(0, 3), M = Mj(u, i), N = jj(t, u), ee = u.status === "saved", te = (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));
}, P = (e, t) => {
e.stopPropagation(), t();
@@ -43957,7 +43957,7 @@ function rxe(e) {
"data-collection": C.isMix ? "" : void 0,
"data-selected": a ? "" : void 0,
onClick: te,
- onMouseDown: Qj,
+ onMouseDown: Zj,
onMouseEnter: T.onPointerEnter,
onMouseLeave: T.onPointerLeave,
children: [
@@ -43971,14 +43971,14 @@ function rxe(e) {
}), /* @__PURE__ */ (0, x.jsxs)("div", {
"data-media-pic": "",
children: [
- p ? /* @__PURE__ */ (0, x.jsx)(nxe, {
+ p ? /* @__PURE__ */ (0, x.jsx)(rxe, {
src: p,
fallback: m,
width: _?.width,
height: _?.height,
provider: A,
onLearn: v
- }, p) : /* @__PURE__ */ (0, x.jsx)(BF, { provider: A }),
+ }, p) : /* @__PURE__ */ (0, x.jsx)(zF, { provider: A }),
C.faces.length > 1 ? /* @__PURE__ */ (0, x.jsx)("div", {
"data-mix-faces": "",
hidden: !T.faces.length,
@@ -43996,7 +43996,7 @@ function rxe(e) {
"data-media-badge": "",
title: u.provider_label || u.provider,
"aria-label": `来源:${u.provider_label || u.provider}`,
- dangerouslySetInnerHTML: { __html: Tj(u.provider, u.provider_label) }
+ dangerouslySetInnerHTML: { __html: wj(u.provider, u.provider_label) }
}),
l.toggleSelection ? /* @__PURE__ */ (0, x.jsx)("span", {
"data-media-check": "",
@@ -44005,7 +44005,7 @@ function rxe(e) {
},
dangerouslySetInnerHTML: { __html: I("check") }
}) : null,
- txe(u.duration) ? /* @__PURE__ */ (0, x.jsx)("span", {
+ nxe(u.duration) ? /* @__PURE__ */ (0, x.jsx)("span", {
"data-media-duration": "",
children: Vt(u.duration)
}) : null,
@@ -44076,7 +44076,7 @@ function rxe(e) {
}),
/* @__PURE__ */ (0, x.jsxs)("div", {
"data-media-meta": "",
- children: [O.entityName ? /* @__PURE__ */ (0, x.jsx)(zF, {
+ children: [O.entityName ? /* @__PURE__ */ (0, x.jsx)(RF, {
name: O.entityName,
actions: l,
"data-media-avatar": "",
@@ -44094,11 +44094,11 @@ function rxe(e) {
/* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
"data-media-title": "",
- dangerouslySetInnerHTML: { __html: jj(t, u) + L(k) }
+ dangerouslySetInnerHTML: { __html: Aj(t, u) + L(k) }
}),
/* @__PURE__ */ (0, x.jsxs)("div", {
"data-follow-byline": "",
- children: [O.entityName ? /* @__PURE__ */ (0, x.jsx)(zF, {
+ children: [O.entityName ? /* @__PURE__ */ (0, x.jsx)(RF, {
name: O.entityName,
actions: l,
"data-follow-author": "",
@@ -44110,8 +44110,8 @@ function rxe(e) {
children: O.author
}), /* @__PURE__ */ (0, x.jsx)("time", {
dateTime: u.published_at || "",
- title: Fj(u),
- children: yge(u)
+ title: Pj(u),
+ children: bge(u)
})]
}),
O.credited ? /* @__PURE__ */ (0, x.jsx)("div", {
@@ -44147,10 +44147,10 @@ function rxe(e) {
]
});
}
-var VF = (0, b.memo)(rxe), HF = () => /* @__PURE__ */ (0, x.jsx)("span", {
+var BF = (0, b.memo)(ixe), VF = () => /* @__PURE__ */ (0, x.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), ixe = xj("settings"), UF = xj("chevron-down"), axe = xj("history"), oxe = [[
+}), axe = bj("settings"), HF = bj("chevron-down"), oxe = bj("history"), sxe = [[
"fixed",
"固定比例",
"layout-grid"
@@ -44159,7 +44159,7 @@ var VF = (0, b.memo)(rxe), HF = () => /* @__PURE__ */ (0, x.jsx)("span", {
"瀑布流",
"columns-2"
]];
-function sxe(e, t, n) {
+function cxe(e, t, n) {
return (0, b.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) => {
@@ -44207,7 +44207,7 @@ function sxe(e, t, n) {
n
]);
}
-function cxe(e) {
+function lxe(e) {
let { view: t, seed: n, revision: r, actions: i } = e, a = Ur(t, r), o = pt(a), s = dt({
queryKey: Wr,
queryFn: ({ signal: e }) => Gr(e)
@@ -44215,7 +44215,7 @@ function cxe(e) {
sources: c?.sources || [],
aliases: c?.author_aliases || [],
credentials: l
- }), [c, l]), d = sxe(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, b.useMemo)(() => ({
+ }), [c, l]), d = cxe(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, b.useMemo)(() => ({
tags: $s(d.visible.flatMap(Yr).map((e) => ({ tags: e.tags || [] }))),
providers: [...d.providers].map(([e, t]) => [
e,
@@ -44241,10 +44241,10 @@ function cxe(e) {
m,
i
]);
- let h = uxe(e, !!c);
+ let h = dxe(e, !!c);
if (!c) return o.isError ? /* @__PURE__ */ (0, x.jsxs)("div", {
"data-follow-feed": "",
- children: [/* @__PURE__ */ (0, x.jsx)(WF, { onManage: i.openManage }), /* @__PURE__ */ (0, x.jsx)(Yj, {
+ children: [/* @__PURE__ */ (0, x.jsx)(UF, { onManage: i.openManage }), /* @__PURE__ */ (0, x.jsx)(Jj, {
message: _t(o.error),
onRetry: () => void o.refetch()
})]
@@ -44257,7 +44257,7 @@ function cxe(e) {
author: d.author,
provider: d.provider
}, {
- authors: new Map([...d.authorSources].map(([e, t]) => [e, Dj(t, u)])),
+ authors: new Map([...d.authorSources].map(([e, t]) => [e, Ej(t, u)])),
providers: d.providers,
works: d.workNames
}), v = t.status ? d.counts[t.status] || 0 : d.allCount, y = d.sources.some((e) => e.can_backfill);
@@ -44268,7 +44268,7 @@ function cxe(e) {
"data-follow-feed": "",
"data-select-mode": e.selectMode ? "" : void 0,
children: [
- /* @__PURE__ */ (0, x.jsx)(WF, {
+ /* @__PURE__ */ (0, x.jsx)(UF, {
onManage: i.openManage,
children: d.sources.length ? /* @__PURE__ */ (0, x.jsx)(G, {
variant: "primary",
@@ -44282,20 +44282,20 @@ function cxe(e) {
}) : "检查更新"
}) : null
}),
- /* @__PURE__ */ (0, x.jsx)(dxe, {
+ /* @__PURE__ */ (0, x.jsx)(fxe, {
facets: d,
pressed: d.author,
context: u,
props: e,
onPick: (e) => g({ author: d.author === e ? "" : e })
}),
- /* @__PURE__ */ (0, x.jsx)(fxe, {
+ /* @__PURE__ */ (0, x.jsx)(pxe, {
rows: d.workRows,
pressed: t.work,
props: e,
onPick: (e) => g({ work: t.work === e ? "" : e })
}),
- /* @__PURE__ */ (0, x.jsx)(pxe, {
+ /* @__PURE__ */ (0, x.jsx)(mxe, {
facets: d,
view: t,
total: v,
@@ -44303,7 +44303,7 @@ function cxe(e) {
props: e,
route: g
}),
- /* @__PURE__ */ (0, x.jsx)(mxe, {
+ /* @__PURE__ */ (0, x.jsx)(hxe, {
conditions: _,
onDrop: (e) => i.route(fi(t, e)),
onClear: () => g({
@@ -44315,11 +44315,11 @@ function cxe(e) {
durMax: 0
})
}),
- d.broken.length ? /* @__PURE__ */ (0, x.jsx)(hxe, {
+ d.broken.length ? /* @__PURE__ */ (0, x.jsx)(gxe, {
count: d.broken.length,
onManage: i.openManage
}) : null,
- /* @__PURE__ */ (0, x.jsx)(gxe, {
+ /* @__PURE__ */ (0, x.jsx)(_xe, {
pending: f,
facets: d,
data: c,
@@ -44330,14 +44330,14 @@ function cxe(e) {
"data-follow-pagination": "",
children: [c.has_more ? /* @__PURE__ */ (0, x.jsx)("span", {
"data-follow-page-action": "",
- children: c.groups.length < 500 ? /* @__PURE__ */ (0, x.jsxs)(lM, {
+ children: c.groups.length < 500 ? /* @__PURE__ */ (0, x.jsxs)(cM, {
entity: !0,
enabled: () => !h.busyRef.current,
load: async () => {
await o.fetchNextPage({ throwOnError: !0 });
},
- children: [/* @__PURE__ */ (0, x.jsx)(UF, { className: "size-3.5" }), "加载更多"]
- }, o.data?.pages.length) : /* @__PURE__ */ (0, x.jsx)(lxe, {
+ children: [/* @__PURE__ */ (0, x.jsx)(HF, { className: "size-3.5" }), "加载更多"]
+ }, o.data?.pages.length) : /* @__PURE__ */ (0, x.jsx)(uxe, {
busy: o.isFetchingNextPage,
error: o.isFetchNextPageError ? _t(o.error) : "",
load: () => {
@@ -44348,7 +44348,7 @@ function cxe(e) {
"data-follow-page-action": "",
children: [/* @__PURE__ */ (0, x.jsx)(G, {
variant: "secondary",
- leadingIcon: h.olderBusy ? void 0 : axe,
+ leadingIcon: h.olderBusy ? void 0 : oxe,
"data-follow-older": "",
"aria-busy": h.busy || void 0,
onClick: () => void h.start(!0),
@@ -44365,7 +44365,7 @@ function cxe(e) {
]
})] });
}
-function WF({ onManage: e, children: t }) {
+function UF({ onManage: e, children: t }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
"data-follow-head": "",
children: [/* @__PURE__ */ (0, x.jsx)("h2", {
@@ -44375,7 +44375,7 @@ function WF({ onManage: e, children: t }) {
"data-follow-head-actions": "",
children: [/* @__PURE__ */ (0, x.jsx)(G, {
variant: "secondary",
- leadingIcon: ixe,
+ leadingIcon: axe,
"data-follow-manage": "",
onClick: e,
children: "管理关注"
@@ -44383,20 +44383,20 @@ function WF({ onManage: e, children: t }) {
})]
});
}
-function lxe({ busy: e, error: t, load: n }) {
+function uxe({ busy: e, error: t, load: n }) {
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
"data-entity-more": "",
"aria-busy": e || void 0,
"aria-disabled": e || void 0,
onClick: n,
- children: [/* @__PURE__ */ (0, x.jsx)(UF, { className: "size-3.5" }), "加载更多"]
- }), t ? /* @__PURE__ */ (0, x.jsx)(Yj, {
+ children: [/* @__PURE__ */ (0, x.jsx)(HF, { className: "size-3.5" }), "加载更多"]
+ }), t ? /* @__PURE__ */ (0, x.jsx)(Jj, {
message: t,
onRetry: n
}) : null] });
}
-function uxe(e, t) {
+function dxe(e, t) {
let { helpers: n, actions: r } = e, [i, a] = (0, b.useState)(0), [o, s] = (0, b.useState)(!1), [c, l] = (0, b.useState)(""), [u, d] = (0, b.useState)(!1), f = (0, b.useRef)(!1), p = (0, b.useRef)(null), m = (0, b.useRef)({
helpers: n,
actions: r
@@ -44454,12 +44454,12 @@ function uxe(e, t) {
olderBusy: c === "older" || u && o
};
}
-function dxe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
+function fxe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
let a = (0, b.useRef)(null);
(0, b.useEffect)(() => {
r.helpers.wireDrag(a.current);
}, [r.helpers]);
- let o = (t) => Dj(e.authorSources.get(t) || [], n);
+ let o = (t) => Ej(e.authorSources.get(t) || [], n);
return e.authorOrder.length ? /* @__PURE__ */ (0, x.jsx)("div", {
"data-follow-authors-bar": "",
children: /* @__PURE__ */ (0, x.jsx)("div", {
@@ -44467,14 +44467,14 @@ function dxe({ 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 = Oj(a), c = /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)("span", {
+ let a = e.authorSources.get(n) || [], s = Dj(a), c = /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)("span", {
"data-follow-ring": "",
- dangerouslySetInnerHTML: { __html: kj(a, o(n)) }
+ dangerouslySetInnerHTML: { __html: Oj(a, o(n)) }
}), /* @__PURE__ */ (0, x.jsx)("span", {
"data-follow-name": "",
children: o(n)
})] });
- return s ? /* @__PURE__ */ (0, x.jsx)(zF, {
+ return s ? /* @__PURE__ */ (0, x.jsx)(RF, {
name: s,
actions: r.actions,
"data-follow-author": n,
@@ -44491,7 +44491,7 @@ function dxe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
})
}) : null;
}
-function fxe({ rows: e, pressed: t, props: n, onPick: r }) {
+function pxe({ rows: e, pressed: t, props: n, onPick: r }) {
let i = (0, b.useRef)(null);
return (0, b.useEffect)(() => {
n.helpers.wireDrag(i.current);
@@ -44512,7 +44512,7 @@ function fxe({ rows: e, pressed: t, props: n, onPick: r }) {
}, e[0]))
}) : null;
}
-function pxe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
+function mxe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
let { helpers: o, actions: s } = i, c = (0, b.useRef)(null), l = (0, b.useRef)(null), u = (0, b.useRef)(null), d = (0, b.useRef)(null), f = (0, b.useRef)(null), p = (0, b.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = Ok(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = Ok(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
(0, b.useEffect)(() => {
o.wireDrag(f.current), o.wireDrag(p.current), o.wireScroller(p.current);
@@ -44570,7 +44570,7 @@ function pxe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: I(i) }
}, e);
})
- }), /* @__PURE__ */ (0, x.jsx)(HF, {})] }) : null, /* @__PURE__ */ (0, x.jsxs)("div", {
+ }), /* @__PURE__ */ (0, x.jsx)(VF, {})] }) : null, /* @__PURE__ */ (0, x.jsxs)("div", {
ref: f,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
@@ -44590,7 +44590,7 @@ function pxe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
t.status !== e && a({ status: e });
},
children: n
- }, e)), v ? /* @__PURE__ */ (0, x.jsx)(HF, {}) : null]
+ }, e)), v ? /* @__PURE__ */ (0, x.jsx)(VF, {}) : null]
}), /* @__PURE__ */ (0, x.jsxs)("div", {
ref: p,
"data-entity-tags": "",
@@ -44603,9 +44603,9 @@ function pxe({ 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: Tj(t, n) }
+ dangerouslySetInnerHTML: { __html: wj(t, n) }
}, t)),
- _.length && e.tagRows.length ? /* @__PURE__ */ (0, x.jsx)(HF, {}) : null,
+ _.length && e.tagRows.length ? /* @__PURE__ */ (0, x.jsx)(VF, {}) : null,
e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, x.jsxs)(Ek, {
"data-follow-tag": n,
"data-entity-press": "",
@@ -44627,11 +44627,11 @@ function pxe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
}), /* @__PURE__ */ (0, x.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, x.jsx)(Uj, { onPress: s.shuffle }),
- y ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(Hj, {
+ /* @__PURE__ */ (0, x.jsx)(Hj, { onPress: s.shuffle }),
+ y ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(Vj, {
label: "图片布局",
value: i.photoLayout,
- options: oxe,
+ options: sxe,
onChange: (e) => s.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")
}), /* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
@@ -44649,7 +44649,7 @@ function pxe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
})]
})] }) : null,
Rr.map(([e, n]) => {
- let r = t.sort === e, i = xj(t.dir === "asc" ? "arrow-up" : "arrow-down");
+ let r = t.sort === e, i = bj(t.dir === "asc" ? "arrow-up" : "arrow-down");
return /* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
"data-entity-sort": e,
@@ -44668,7 +44668,7 @@ function pxe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
})] })
});
}
-function mxe({ conditions: e, onDrop: t, onClear: n }) {
+function hxe({ conditions: e, onDrop: t, onClear: n }) {
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-entity-combo": "",
"data-follow-combo": "",
@@ -44693,7 +44693,7 @@ function mxe({ conditions: e, onDrop: t, onClear: n }) {
})] }) : null
});
}
-function hxe({ count: e, onManage: t }) {
+function gxe({ count: e, onManage: t }) {
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-follow-broken": "",
onClick: (e) => {
@@ -44702,12 +44702,12 @@ function hxe({ count: e, onManage: t }) {
dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${I("alert")}<span>${e} 个来源上次检查失败,去<button type="button" class="flink" data-follow-manage>管理关注</button>看原因。</span></div>` }
});
}
-function gxe({ pending: e, facets: t, data: n, context: r, props: i }) {
- let { view: a, helpers: o } = i, s = a.media === "images", c = Jj(e, () => o.listSkeletonHtml(a.media));
+function _xe({ pending: e, facets: t, data: n, context: r, props: i }) {
+ let { view: a, helpers: o } = i, s = a.media === "images", c = qj(e, () => o.listSkeletonHtml(a.media));
return /* @__PURE__ */ (0, x.jsxs)("div", {
"data-follow-list-body": "",
"data-grid-reveal": c.fading ? "" : void 0,
- children: [c.layer, e ? null : /* @__PURE__ */ (0, x.jsx)(_xe, {
+ children: [c.layer, e ? null : /* @__PURE__ */ (0, x.jsx)(vxe, {
facets: t,
data: n,
context: r,
@@ -44716,28 +44716,28 @@ function gxe({ pending: e, facets: t, data: n, context: r, props: i }) {
})]
});
}
-function _xe({ facets: e, data: t, context: n, props: r, images: i }) {
- let { view: a, actions: o } = r, s = KF(r), c = i ? {
+function vxe({ facets: e, data: t, context: n, props: r, images: i }) {
+ let { view: a, actions: o } = r, s = GF(r), c = i ? {
"data-size": r.photoSize,
"data-layout": r.photoLayout,
"data-images-only": String(r.imagesOnly)
} : {}, l;
return l = e.visible.length ? e.visible.map((t) => {
let i = e.byId.get(t.primary?.source_id), c = i?.author_key && e.authorSources.get(i.author_key) || [], l = t.primary.id;
- return /* @__PURE__ */ (0, x.jsx)(VF, {
+ return /* @__PURE__ */ (0, x.jsx)(BF, {
group: t,
authorSources: c,
media: a.media,
context: n,
- selected: r.selected.has(GF(t, a)),
+ selected: r.selected.has(WF(t, a)),
selectMode: r.selectMode,
- busy: s.busy.get(GF(t, a)) || "",
- failure: s.failures.get(GF(t, a)) || "",
+ busy: s.busy.get(WF(t, a)) || "",
+ failure: s.failures.get(WF(t, a)) || "",
actions: o,
onStatus: s.status,
onSave: s.save
}, `${l}:${a.media}`);
- }) : /* @__PURE__ */ (0, x.jsx)(vxe, {
+ }) : /* @__PURE__ */ (0, x.jsx)(yxe, {
data: t,
filtered: !!(a.status || e.author || e.provider || a.work || a.tags.length)
}), /* @__PURE__ */ (0, x.jsx)("div", {
@@ -44747,10 +44747,10 @@ function _xe({ facets: e, data: t, context: n, props: r, images: i }) {
children: l
});
}
-function GF(e, t) {
+function WF(e, t) {
return ni(e, t.media).id;
}
-function vxe({ data: e, filtered: t }) {
+function yxe({ data: e, filtered: t }) {
let n = (e.groups || []).length ? Qa("search-x", "当前筛选下没有更新", "切换媒体类型、创作者、来源、时长或标签后再试。") : (e.sources || []).length ? t ? Qa("rss", "没有符合条件的更新", "切换状态或来源筛选后再试。") : Qa("rss", "还没有更新", "点「检查更新」去各个来源取一遍;来源有新内容时会集中显示在这里。") : Qa("rss", "还没有关注任何来源", "添加创作者或订阅来源后,更新会集中显示在这里。", { actions: "<a class=\"geist-button primary\" href=\"/follow-manage?tab=add\">添加关注</a>" });
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-follow-empty": "",
@@ -44758,12 +44758,12 @@ function vxe({ data: e, filtered: t }) {
dangerouslySetInnerHTML: { __html: n }
});
}
-var yxe = {
+var bxe = {
new: "已恢复未看",
seen: "已标记已看",
ignored: "已忽略"
};
-function KF(e) {
+function GF(e) {
let { view: t, revision: n, actions: r } = e, [i, a] = (0, b.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, b.useState)(() => /* @__PURE__ */ new Map()), c = Ur(t, n).queryKey, l = (e, t, n) => n((n) => {
let r = new Map(n);
return t ? r.set(e, t) : r.delete(e), r;
@@ -44786,7 +44786,7 @@ function KF(e) {
to: t
}),
onSuccess: (e, { id: t, to: n, was: i }) => {
- u(t, n), d(), r.toast(yxe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
+ u(t, n), d(), r.toast(bxe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
await B(Tn, {
item: t,
to: i
@@ -44832,9 +44832,9 @@ function KF(e) {
}
//#endregion
//#region src/react/entity-body/entity-online.tsx
-function bxe(e) {
- let { result: t, data: n, media: r, helpers: i } = e, a = t.isPending || t.isPlaceholderData, o = Jj(a, () => i.listSkeletonHtml(r));
- return !n && t.isError ? /* @__PURE__ */ (0, x.jsx)(Yj, {
+function xxe(e) {
+ let { result: t, data: n, media: r, helpers: i } = e, a = t.isPending || t.isPlaceholderData, o = qj(a, () => i.listSkeletonHtml(r));
+ return !n && t.isError ? /* @__PURE__ */ (0, x.jsx)(Jj, {
message: _t(t.error),
onRetry: () => {
t.refetch();
@@ -44845,11 +44845,11 @@ function bxe(e) {
"data-grid-reveal": o.fading ? "" : void 0,
children: [
o.layer,
- a || !n ? null : /* @__PURE__ */ (0, x.jsx)(xxe, {
+ a || !n ? null : /* @__PURE__ */ (0, x.jsx)(Sxe, {
...e,
data: n
}),
- !a && n?.has_more ? /* @__PURE__ */ (0, x.jsx)(lM, {
+ !a && n?.has_more ? /* @__PURE__ */ (0, x.jsx)(cM, {
entity: !0,
enabled: () => e.canLoadMore?.() !== !1,
load: async () => {
@@ -44859,8 +44859,8 @@ function bxe(e) {
]
});
}
-function xxe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c }) {
- let l = KF({
+function Sxe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c }) {
+ let l = GF({
view: e,
revision: 0,
actions: c
@@ -44878,7 +44878,7 @@ function xxe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
"data-images-only": String(s)
} : {}, p = r.length ? r.map((e) => {
let n = ni(e, t).id, r = u.byId.get(e.primary?.source_id)?.author_key;
- return /* @__PURE__ */ (0, x.jsx)(VF, {
+ return /* @__PURE__ */ (0, x.jsx)(BF, {
group: e,
authorSources: r && u.byAuthor.get(r) || [],
media: t,
@@ -44891,7 +44891,7 @@ function xxe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
onStatus: l.status,
onSave: l.save
}, `${e.primary.id}:${t}`);
- }) : /* @__PURE__ */ (0, x.jsx)(Sxe, { searched: !!(n.groups || []).length || !!(e.status || e.provider || e.tags.length) });
+ }) : /* @__PURE__ */ (0, x.jsx)(Cxe, { searched: !!(n.groups || []).length || !!(e.status || e.provider || e.tags.length) });
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-follow-list": "",
"data-follow-wall": d ? "" : void 0,
@@ -44899,7 +44899,7 @@ function xxe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
children: p
});
}
-function Sxe({ searched: e }) {
+function Cxe({ searched: e }) {
let t = e ? Qa("search-x", "当前筛选下没有更新", "切换媒体类型、状态、来源或标签后再试。") : Qa("rss", "还没有抓到更新", "关注页检查更新之后,这位创作者的新内容会出现在这里。");
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-follow-empty": "",
@@ -44907,7 +44907,7 @@ function Sxe({ searched: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-function qF(e) {
+function KF(e) {
return {
x0: 0,
y0: 0,
@@ -44915,7 +44915,7 @@ function qF(e) {
y1: e.height
};
}
-function JF(e) {
+function qF(e) {
return {
x0: Math.round(e.x0),
y0: Math.round(e.y0),
@@ -44923,40 +44923,40 @@ function JF(e) {
y1: Math.round(e.y1)
};
}
-function YF(e) {
+function JF(e) {
return !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;
}
-function XF(e, t) {
- if (!YF(e)) return {
+function YF(e, t) {
+ if (!JF(e)) return {
x0: 0,
y0: 0,
x1: 0,
y1: 0
};
- if (t == null || !(t > 0)) return qF(e);
+ if (t == null || !(t > 0)) return KF(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 JF({
+ return qF({
x0: i,
y0: a,
x1: i + n,
y1: a + r
});
}
-function Cxe(e, t) {
- if (!YF(e) || !(t > 0)) return qF(e);
+function wxe(e, t) {
+ if (!JF(e) || !(t > 0)) return KF(e);
let n = Math.min(e.width, e.height * t);
- return JF({
+ return qF({
x0: e.width - n,
y0: 0,
x1: e.width,
y1: e.height
});
}
-function wxe(e, t, n) {
- if (!YF(t) || !(n > 0)) return qF(t);
- let r = ZF(e, t), i = XF({
+function Txe(e, t, n) {
+ if (!JF(t) || !(n > 0)) return KF(t);
+ let r = XF(e, t), i = YF({
width: r.x1 - r.x0,
height: r.y1 - r.y0
}, n);
@@ -44967,8 +44967,8 @@ function wxe(e, t, n) {
y1: r.y0 + i.y1
};
}
-function ZF(e, t, n = null, r = "width") {
- if (!YF(t)) return {
+function XF(e, t, n = null, r = "width") {
+ if (!JF(t)) return {
x0: 0,
y0: 0,
x1: 0,
@@ -44977,43 +44977,43 @@ function ZF(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 JF({
+ return qF({
x0: s,
y0: c,
x1: s + a,
y1: c + o
});
}
-function QF(e, t, n, r) {
+function ZF(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 JF({
+ return qF({
x0: o,
y0: s,
x1: o + i,
y1: s + a
});
}
-function $F(e, t, n, r = null) {
- if (!YF(n) || !(t > 0)) return e;
+function QF(e, t, n, r = null) {
+ if (!JF(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 ZF({
+ return XF({
x0: i - o / 2,
y0: a - s / 2,
x1: i + o / 2,
y1: a + s / 2
}, n, r);
}
-function Txe(e, t, n, r, i = null) {
+function Exe(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 ZF(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
+ return XF(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
-function Exe(e, t) {
- return YF(t) ? {
+function Dxe(e, t) {
+ return JF(t) ? {
left: e.x0 / t.width * 100,
top: e.y0 / t.height * 100,
width: (e.x1 - e.x0) / t.width * 100,
@@ -45025,8 +45025,8 @@ function Exe(e, t) {
height: 0
};
}
-function Dxe(e, t) {
- if (!YF(t)) return {
+function Oxe(e, t) {
+ if (!JF(t)) return {
size: "cover",
position: "50% 50%"
};
@@ -45036,7 +45036,7 @@ function Dxe(e, t) {
position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`
};
}
-function Oxe(e, t) {
+function kxe(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}%`,
@@ -45045,32 +45045,32 @@ function Oxe(e, t) {
height: `${t.height / r * 100}%`
};
}
-function eI(e, t, n) {
+function $F(e, t, n) {
return t > 0 ? e * n / t : 0;
}
-function kxe(e, t) {
+function Axe(e, t) {
return !t || !(t.width > 0) || !(t.height > 0) ? !1 : Math.min(e.width / 100 * t.width, e.height / 100 * t.height) < 36;
}
//#endregion
//#region src/react/components/modal-frame.tsx
-var Axe = {
+var jxe = {
"avatar-picker": "max-w-avatar-picker",
"cover-crop": "max-w-cover-crop",
form: "max-w-form-modal"
};
-function tI({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
- let { isFocusVisible: a } = mie();
- return /* @__PURE__ */ (0, x.jsx)(jA, {
+function eI({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
+ let { isFocusVisible: a } = pie();
+ return /* @__PURE__ */ (0, x.jsx)(AA, {
isOpen: e,
onOpenChange: t,
isDismissable: !0,
"data-modal-motion": "",
"data-motion-instant": a || void 0,
className: "fixed inset-0 z-dialog flex items-center justify-center bg-scrim p-4",
- children: /* @__PURE__ */ (0, x.jsx)(fhe, {
+ children: /* @__PURE__ */ (0, x.jsx)(phe, {
"data-modal-surface": "",
- className: `flex max-h-full w-full ${Axe[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
- children: /* @__PURE__ */ (0, x.jsx)(DA, {
+ className: `flex max-h-full w-full ${jxe[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
+ children: /* @__PURE__ */ (0, x.jsx)(EA, {
"aria-label": r,
className: "flex min-h-0 flex-col overflow-y-auto overscroll-contain outline-none",
children: i
@@ -45078,7 +45078,7 @@ function tI({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
})
});
}
-function nI({ children: e }) {
+function tI({ children: e }) {
return /* @__PURE__ */ (0, x.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",
@@ -45087,8 +45087,8 @@ function nI({ children: e }) {
}
//#endregion
//#region src/react/crop/crop-frame.tsx
-var jxe = .02, rI = 1.08;
-function iI({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
+var Mxe = .02, nI = 1.08;
+function rI({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
let s = (0, b.useRef)(null), c = (0, b.useRef)(null), [l, u] = (0, b.useState)(!1), [d, f] = (0, b.useState)(null);
(0, b.useEffect)(() => {
u(!1);
@@ -45107,8 +45107,8 @@ function iI({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
dx: 0,
dy: 0
} : {
- dx: eI(e, n.clientWidth, r.width),
- dy: eI(t, n.clientHeight, r.height)
+ dx: $F(e, n.clientWidth, r.width),
+ dy: $F(t, n.clientHeight, r.height)
};
}, [r]);
function m(e) {
@@ -45125,22 +45125,22 @@ function iI({ 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(QF(n.box, o.dx, o.dy, r)) : i(Txe(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(ZF(n.box, o.dx, o.dy, r)) : i(Exe(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) * jxe), o = {
+ let a = Math.max(1, (n.x1 - n.x0) * Mxe), o = {
ArrowLeft: [-a, 0],
ArrowRight: [a, 0],
ArrowUp: [0, -a],
ArrowDown: [0, a]
};
- o[e.key] ? (e.preventDefault(), i(QF(n, o[e.key][0], o[e.key][1], r))) : (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i($F(n, e.key === "-" ? 1 / rI : rI, r, t)));
+ o[e.key] ? (e.preventDefault(), i(ZF(n, o[e.key][0], o[e.key][1], r))) : (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(QF(n, e.key === "-" ? 1 / nI : nI, r, t)));
}
- let v = n && r ? Exe(ZF(n, r, t), r) : null, y = v ? kxe(v, d) : !1, S = v ? {
+ let v = n && r ? Dxe(XF(n, r, t), r) : null, y = v ? Axe(v, d) : !1, S = v ? {
"--crop-l": `${v.left}%`,
"--crop-t": `${v.top}%`,
"--crop-w": `${v.width}%`,
@@ -45159,7 +45159,7 @@ function iI({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
draggable: !1,
onLoad: (e) => {
let t = e.currentTarget;
- YF({
+ JF({
width: t.naturalWidth,
height: t.naturalHeight
}) && a({
@@ -45198,7 +45198,7 @@ function iI({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
onPointerCancel: g,
onKeyDown: _,
onWheel: (e) => {
- n && r && i($F(n, e.deltaY > 0 ? rI : 1 / rI, r, t));
+ n && r && i(QF(n, e.deltaY > 0 ? nI : 1 / nI, 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, x.jsx)("span", {
@@ -45221,13 +45221,13 @@ function iI({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
}
//#endregion
//#region src/react/avatar-picker/avatar-picker.ts
-var Mxe = "/api/avatar-choices", aI = "/api/avatar-pick", Nxe = "/api/avatar-code-cover", oI = "/api/avatar-frame", Pxe = "/avatar-choice", sI = (e, t) => [
+var Nxe = "/api/avatar-choices", iI = "/api/avatar-pick", Pxe = "/api/avatar-code-cover", aI = "/api/avatar-frame", Fxe = "/avatar-choice", oI = (e, t) => [
"avatar-choices",
e,
t
-], cI = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, lI = (e, t, n, r = "") => `${Pxe}${cI(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), uI = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", Fxe = (e, t, n) => z(Mxe + cI(e, t), n), Ixe = (e) => B(Nxe, { code: e });
-async function Lxe(e, t, n) {
- let r = await B(oI, {
+], sI = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, cI = (e, t, n, r = "") => `${Fxe}${sI(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), lI = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", Ixe = (e, t, n) => z(Nxe + sI(e, t), n), Lxe = (e) => B(Pxe, { code: e });
+async function Rxe(e, t, n) {
+ let r = await B(aI, {
kind: e,
id: t,
ref: n.ref
@@ -45240,12 +45240,12 @@ async function Lxe(e, t, n) {
bases: r.bases
};
}
-var Rxe = (e, t, n) => B(oI, {
+var zxe = (e, t, n) => B(aI, {
kind: e,
id: t,
url: n
-}), zxe = (e, t, n) => dI(`${oI}${cI(e, t)}&name=${encodeURIComponent(n.name)}`, n);
-async function dI(e, t) {
+}), Bxe = (e, t, n) => uI(`${aI}${sI(e, t)}&name=${encodeURIComponent(n.name)}`, n);
+async function uI(e, t) {
let n = await fetch(e, {
method: "POST",
credentials: "same-origin",
@@ -45254,17 +45254,17 @@ async function dI(e, t) {
if (n.ok) return r;
throw new en(r?.error || `请求失败(${n.status})`, n.status, r);
}
-function fI(e, t, n) {
+function dI(e, t, n) {
let r = t.width === e.width && t.height === e.height;
- return e.focus && r ? wxe(e.focus, t, n) : XF(t, n);
+ return e.focus && r ? Txe(e.focus, t, n) : YF(t, n);
}
-var Bxe = (e) => e.crop && YF({
+var Vxe = (e) => e.crop && JF({
width: e.width,
height: e.height
});
-async function Vxe(e, t, n) {
+async function Hxe(e, t, n) {
if (!("file" in n)) {
- await B(aI, {
+ await B(iI, {
kind: e,
id: t,
...n
@@ -45277,19 +45277,19 @@ async function Vxe(e, t, n) {
i.x1,
i.y1
].join(",")}` : "";
- await dI(`${aI}${cI(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);
+ await uI(`${iI}${sI(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);
}
-var pI = 2;
-function Hxe(e, t) {
+var fI = 2;
+function Uxe(e, t) {
if (!t) return e;
let n = t.matched_names.filter((t) => t !== e);
- return n.length ? `${e}:图库里按${`「${n.slice(0, pI).join("」「")}」`}${n.length > pI ? `等 ${n.length.toLocaleString()} 个名字` : ""}找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:还没有候选图片,可输入番号、图片地址或从本机选择。`;
+ return n.length ? `${e}:图库里按${`「${n.slice(0, fI).join("」「")}」`}${n.length > fI ? `等 ${n.length.toLocaleString()} 个名字` : ""}找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:还没有候选图片,可输入番号、图片地址或从本机选择。`;
}
-var Uxe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
-function Wxe(e) {
- return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${Uxe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
+var Wxe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
+function Gxe(e) {
+ return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${Wxe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var mI = (e) => e.cast > 1, Gxe = (e) => mI(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, Kxe = {
+var pI = (e) => e.cast > 1, Kxe = (e) => pI(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, qxe = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
@@ -45299,7 +45299,7 @@ var mI = (e) => e.cast > 1, Gxe = (e) => mI(e) ? `${e.label}:${e.cast.toLocale
social: "社媒头像",
online: "在线作品"
};
-function qxe(e) {
+function Jxe(e) {
if (e.startsWith("follow:")) {
let t = e.split(":")[2];
return t === "cover" ? "作品封面" : `内容图片 ${Number(t.replace("image", "") || 0) + 1}`;
@@ -45310,19 +45310,19 @@ function qxe(e) {
let n = Number(t.replace("cell", ""));
return Number.isFinite(n) ? `第 ${n + 1} 格` : t;
}
-var Jxe = (e) => `${Kxe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (mI(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), Yxe = 8, Xxe = 3 / 4;
-async function Zxe(e, t, n) {
+var Yxe = (e) => `${qxe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (pI(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), Xxe = 8, Zxe = 3 / 4;
+async function Qxe(e, t, n) {
switch (n.via) {
- case "choice": return { choice: await Lxe(e, t, n.choice) };
- case "code": return { choice: await Ixe(n.code) };
- case "url": return { choice: await Rxe(e, t, n.url) };
+ case "choice": return { choice: await Rxe(e, t, n.choice) };
+ case "code": return { choice: await Lxe(n.code) };
+ case "url": return { choice: await zxe(e, t, n.url) };
case "file": return {
- choice: await zxe(e, t, n.file),
+ choice: await Bxe(e, t, n.file),
file: n.file
};
}
}
-function Qxe({ kind: e, entityId: t, name: n, onPicked: r }) {
+function $xe({ kind: e, entityId: t, name: n, onPicked: r }) {
let [i, a] = (0, b.useState)(!1);
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)("span", {
className: "absolute right-1 bottom-1 z-10",
@@ -45337,12 +45337,12 @@ function Qxe({ kind: e, entityId: t, name: n, onPicked: r }) {
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, x.jsx)(tI, {
+ }), /* @__PURE__ */ (0, x.jsx)(eI, {
isOpen: i,
onOpenChange: a,
width: "avatar-picker",
label: "更换头像",
- children: /* @__PURE__ */ (0, x.jsx)($xe, {
+ children: /* @__PURE__ */ (0, x.jsx)(eSe, {
kind: e,
entityId: t,
name: n,
@@ -45351,22 +45351,22 @@ function Qxe({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function $xe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, b.useRef)(null), o = dP(), [s, c] = (0, b.useState)(""), [l, u] = (0, b.useState)(""), [d, f] = (0, b.useState)(null), p = sI(e, t), m = (0, b.useRef)(!1), h = dt({
+function eSe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
+ let a = (0, b.useRef)(null), o = uP(), [s, c] = (0, b.useState)(""), [l, u] = (0, b.useState)(""), [d, f] = (0, b.useState)(null), p = oI(e, t), m = (0, b.useRef)(!1), h = dt({
queryKey: p,
- queryFn: ({ signal: n }) => Fxe(e, t, n),
+ queryFn: ({ signal: n }) => Ixe(e, t, n),
retryOnMount: !0
});
(0, b.useEffect)(() => () => {
- m.current && V.removeQueries({ queryKey: sI(e, t) });
+ m.current && V.removeQueries({ queryKey: oI(e, t) });
}, [e, t]);
let g = ft({
- mutationFn: (n) => Vxe(e, t, n),
+ mutationFn: (n) => Hxe(e, t, n),
onSuccess: () => {
m.current = !0, i(), r();
}
}), _ = ft({
- mutationFn: (n) => Zxe(e, t, n),
+ mutationFn: (n) => Qxe(e, t, n),
onSuccess: f
}), v = (e) => _.isPending && _.variables?.via === e;
function y(e) {
@@ -45384,11 +45384,11 @@ function $xe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
crop: e.crop
} : { file: n }) : g.mutate(e ?? { ref: t.ref });
}
- let C = h.data, w = C?.choices ?? [], T = (g.error ? R(g.error) : "") || (!d && _.error ? R(_.error) : "") || (h.error ? R(h.error) : ""), E = g.isPending || _.isPending, D = d ? "" : Wxe(C), O = !!T && !!h.error && T === R(h.error), k = h.isPending || w.length > 0;
+ let C = h.data, w = C?.choices ?? [], T = (g.error ? R(g.error) : "") || (!d && _.error ? R(_.error) : "") || (h.error ? R(h.error) : ""), E = g.isPending || _.isPending, D = d ? "" : Gxe(C), O = !!T && !!h.error && T === R(h.error), k = h.isPending || w.length > 0;
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, x.jsx)(nI, { children: /* @__PURE__ */ (0, x.jsx)(ude, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, x.jsx)(tI, { children: /* @__PURE__ */ (0, x.jsx)(ude, { className: "size-6" }) }),
/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
@@ -45405,7 +45405,7 @@ function $xe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}),
/* @__PURE__ */ (0, x.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: d ? Gxe(d.choice) : Hxe(n, C)
+ children: d ? Kxe(d.choice) : Uxe(n, C)
}),
D ? /* @__PURE__ */ (0, x.jsx)(K, {
tone: "neutral",
@@ -45426,14 +45426,14 @@ function $xe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, x.jsx)(pP, {
+ /* @__PURE__ */ (0, x.jsx)(fP, {
icon: oO,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
- }), d ? /* @__PURE__ */ (0, x.jsx)(nSe, {
+ }), d ? /* @__PURE__ */ (0, x.jsx)(rSe, {
kind: e,
entityId: t,
choice: d.choice,
@@ -45452,7 +45452,7 @@ function $xe({ 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: Yxe }, (e, t) => /* @__PURE__ */ (0, x.jsxs)("span", {
+ children: h.isPending ? Array.from({ length: Xxe }, (e, t) => /* @__PURE__ */ (0, x.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",
@@ -45465,7 +45465,7 @@ function $xe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: Jxe(n),
+ title: Yxe(n),
...q(E),
onClick: () => {
E || (n.crop ? f({ choice: n }) : _.mutate({
@@ -45475,8 +45475,8 @@ function $xe({ 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, x.jsx)(eSe, {
- src: lI(e, t, n.ref, uI(n, n.ref)),
+ /* @__PURE__ */ (0, x.jsx)(tSe, {
+ src: cI(e, t, n.ref, lI(n, n.ref)),
choice: n
}),
/* @__PURE__ */ (0, x.jsx)("span", {
@@ -45491,7 +45491,7 @@ function $xe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
children: "在用"
})
}) : null,
- mI(n) ? /* @__PURE__ */ (0, x.jsx)("span", {
+ pI(n) ? /* @__PURE__ */ (0, x.jsx)("span", {
className: "absolute top-1 right-1",
children: /* @__PURE__ */ (0, x.jsxs)(VO, {
variant: "caption",
@@ -45515,7 +45515,7 @@ function $xe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
},
children: [/* @__PURE__ */ (0, x.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, x.jsx)(LP, {
+ children: /* @__PURE__ */ (0, x.jsx)(IP, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
@@ -45550,7 +45550,7 @@ function $xe({ 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, x.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, x.jsx)(LP, {
+ children: /* @__PURE__ */ (0, x.jsx)(IP, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
@@ -45573,7 +45573,7 @@ function $xe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})]
})] })] });
}
-function eSe({ src: e, choice: t }) {
+function tSe({ src: e, choice: t }) {
let n = (0, b.useRef)(null), [r, i] = (0, b.useState)(!1), [a, o] = (0, b.useState)(!1);
(0, b.useEffect)(() => {
n.current?.complete && n.current.naturalWidth && i(!0);
@@ -45581,7 +45581,7 @@ function eSe({ src: e, choice: t }) {
let s = {
width: t.width,
height: t.height
- }, c = Bxe(t) ? Oxe(fI(t, s, Xxe), s) : null, l = r || a ? !0 : void 0;
+ }, c = Vxe(t) ? kxe(dI(t, s, Zxe), s) : null, l = r || a ? !0 : void 0;
return /* @__PURE__ */ (0, x.jsxs)("span", {
"data-choice-lost": a || void 0,
className: "relative block w-full aspect-avatar-choice overflow-hidden",
@@ -45607,7 +45607,7 @@ function eSe({ src: e, choice: t }) {
})]
});
}
-function tSe(e) {
+function nSe(e) {
let [t, n] = (0, b.useState)("");
return (0, b.useEffect)(() => {
if (!e) return;
@@ -45615,23 +45615,23 @@ function tSe(e) {
return n(t), () => URL.revokeObjectURL(t);
}, [e]), t;
}
-function nSe({ kind: e, entityId: t, choice: n, file: r, busy: i, back: a, confirm: o }) {
- let s = n.bases.length ? n.bases : [n.ref], [c, l] = (0, b.useState)(s[0]), [u, d] = (0, b.useState)(null), [f, p] = (0, b.useState)(null), m = uI(n, c), h = tSe(r), g = r ? h : lI(e, t, c, m), _ = dP();
+function rSe({ kind: e, entityId: t, choice: n, file: r, busy: i, back: a, confirm: o }) {
+ let s = n.bases.length ? n.bases : [n.ref], [c, l] = (0, b.useState)(s[0]), [u, d] = (0, b.useState)(null), [f, p] = (0, b.useState)(null), m = lI(n, c), h = nSe(r), g = r ? h : cI(e, t, c, m), _ = uP();
function v(e) {
l(e), d(null), p(null);
}
- let y = f && u ? Dxe(f, u) : null;
+ let y = f && u ? Oxe(f, u) : null;
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsxs)("div", {
ref: _,
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: [g ? /* @__PURE__ */ (0, x.jsx)(iI, {
+ children: [g ? /* @__PURE__ */ (0, x.jsx)(rI, {
src: g,
aspect: 1,
box: f,
size: u,
label: `${n.label} 的头像取景框`,
onSize: (e) => {
- d(e), YF(e) && p(c === n.ref ? fI(n, e, 1) : XF(e, 1));
+ d(e), JF(e) && p(c === n.ref ? dI(n, e, 1) : YF(e, 1));
},
onBox: p
}) : null, s.length > 1 ? /* @__PURE__ */ (0, x.jsx)("div", {
@@ -45645,7 +45645,7 @@ function nSe({ kind: e, entityId: t, choice: n, file: r, busy: i, back: a, confi
"data-crop-base": !0,
onClick: () => v(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: qxe(e)
+ children: Jxe(e)
}, e))
}) : null]
}), /* @__PURE__ */ (0, x.jsxs)("div", {
@@ -45694,20 +45694,20 @@ function nSe({ kind: e, entityId: t, choice: n, file: r, busy: i, back: a, confi
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/url.js
-var rSe = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, hI = /^[\\/]{2}/;
-function iSe(e, t) {
+var iSe = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, mI = /^[\\/]{2}/;
+function aSe(e, t) {
return t + e.replace(/\\/g, "/");
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/history.js
-var gI = "popstate";
-function _I(e) {
+var hI = "popstate";
+function gI(e) {
return typeof e == "object" && !!e && "pathname" in e && "search" in e && "hash" in e && "state" in e && "key" in e;
}
-function aSe(e = {}) {
+function oSe(e = {}) {
function t(e, t) {
let n = t.state?.masked, { pathname: r, search: i, hash: a } = n || e.location;
- return xI("", {
+ return bI("", {
pathname: r,
search: i,
hash: a
@@ -45718,14 +45718,14 @@ function aSe(e = {}) {
} : void 0);
}
function n(e, t) {
- return typeof t == "string" ? t : SI(t);
+ return typeof t == "string" ? t : xI(t);
}
- return sSe(t, n, null, e);
+ return cSe(t, n, null, e);
}
-function vI(e, t) {
+function _I(e, t) {
if (e === !1 || e == null) throw Error(t);
}
-function yI(e, t) {
+function vI(e, t) {
if (!e) {
typeof console < "u" && console.warn(t);
try {
@@ -45733,10 +45733,10 @@ function yI(e, t) {
} catch {}
}
}
-function oSe() {
+function sSe() {
return Math.random().toString(36).substring(2, 10);
}
-function bI(e, t) {
+function yI(e, t) {
return {
usr: e.state,
key: e.key,
@@ -45748,21 +45748,21 @@ function bI(e, t) {
} : void 0
};
}
-function xI(e, t, n = null, r, i) {
+function bI(e, t, n = null, r, i) {
return {
pathname: typeof e == "string" ? e : e.pathname,
search: "",
hash: "",
- ...typeof t == "string" ? CI(t) : t,
+ ...typeof t == "string" ? SI(t) : t,
state: n,
- key: t && t.key || r || oSe(),
+ key: t && t.key || r || sSe(),
mask: i
};
}
-function SI({ pathname: e = "/", search: t = "", hash: n = "" }) {
+function xI({ pathname: e = "/", search: t = "", hash: n = "" }) {
return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), n && n !== "#" && (e += n.charAt(0) === "#" ? n : "#" + n), e;
}
-function CI(e) {
+function SI(e) {
let t = {};
if (e) {
let n = e.indexOf("#");
@@ -45772,7 +45772,7 @@ function CI(e) {
}
return t;
}
-function sSe(e, t, n, r = {}) {
+function cSe(e, t, n, r = {}) {
let { window: i = document.defaultView, v5Compat: a = !1 } = r, o = i.history, s = "POP", c = null, l = u();
l ?? (l = 0, o.replaceState({
...o.state,
@@ -45792,9 +45792,9 @@ function sSe(e, t, n, r = {}) {
}
function f(e, t) {
s = "PUSH";
- let r = _I(e) ? e : xI(h.location, e, t);
+ let r = gI(e) ? e : bI(h.location, e, t);
n && n(r, e), l = u() + 1;
- let d = bI(r, l), f = h.createHref(r.mask || r);
+ let d = yI(r, l), f = h.createHref(r.mask || r);
try {
o.pushState(d, "", f);
} catch (e) {
@@ -45809,9 +45809,9 @@ function sSe(e, t, n, r = {}) {
}
function p(e, t) {
s = "REPLACE";
- let r = _I(e) ? e : xI(h.location, e, t);
+ let r = gI(e) ? e : bI(h.location, e, t);
n && n(r, e), l = u();
- let i = bI(r, l), d = h.createHref(r.mask || r);
+ let i = yI(r, l), d = h.createHref(r.mask || r);
o.replaceState(i, "", d), a && c && c({
action: s,
location: h.location,
@@ -45819,7 +45819,7 @@ function sSe(e, t, n, r = {}) {
});
}
function m(e) {
- return cSe(i, e);
+ return lSe(i, e);
}
let h = {
get action() {
@@ -45830,8 +45830,8 @@ function sSe(e, t, n, r = {}) {
},
listen(e) {
if (c) throw Error("A history only accepts one active listener");
- return i.addEventListener(gI, d), c = e, () => {
- i.removeEventListener(gI, d), c = null;
+ return i.addEventListener(hI, d), c = e, () => {
+ i.removeEventListener(hI, d), c = null;
};
},
createHref(e) {
@@ -45854,29 +45854,29 @@ function sSe(e, t, n, r = {}) {
};
return h;
}
-function cSe(e, t, n = !1) {
+function lSe(e, t, n = !1) {
let r = "http://localhost";
- e && (r = e.location.origin === "null" ? e.location.href : e.location.origin), vI(r, "No window.location.(origin|href) available to create URL");
- let i = typeof t == "string" ? t : SI(t);
- return i = i.replace(/ $/, "%20"), !n && hI.test(i) && (i = r + i), new URL(i, r);
+ e && (r = e.location.origin === "null" ? e.location.href : e.location.origin), _I(r, "No window.location.(origin|href) available to create URL");
+ let i = typeof t == "string" ? t : xI(t);
+ return i = i.replace(/ $/, "%20"), !n && mI.test(i) && (i = r + i), new URL(i, r);
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/utils.js
-function lSe(e, t, n = "/") {
- return uSe(e, t, n, !1);
+function uSe(e, t, n = "/") {
+ return dSe(e, t, n, !1);
}
-function uSe(e, t, n, r, i) {
- let a = AI((typeof t == "string" ? CI(t) : t).pathname || "/", n);
+function dSe(e, t, n, r, i) {
+ let a = kI((typeof t == "string" ? SI(t) : t).pathname || "/", n);
if (a == null) return null;
- let o = i ?? dSe(e), s = null, c = wSe(a);
- for (let e = 0; s == null && e < o.length; ++e) s = CSe(o[e], c, r);
+ let o = i ?? fSe(e), s = null, c = TSe(a);
+ for (let e = 0; s == null && e < o.length; ++e) s = wSe(o[e], c, r);
return s;
}
-function dSe(e) {
- let t = wI(e);
- return fSe(t), t;
+function fSe(e) {
+ let t = CI(e);
+ return pSe(t), t;
}
-function wI(e, t = [], n = [], r = "", i = !1) {
+function CI(e, t = [], n = [], r = "", i = !1) {
let a = (e, a, o = i, s) => {
let c = {
relativePath: s === void 0 ? e.path || "" : s,
@@ -45886,14 +45886,14 @@ function wI(e, t = [], n = [], r = "", i = !1) {
};
if (c.relativePath.startsWith("/")) {
if (!c.relativePath.startsWith(r) && o) return;
- vI(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
+ _I(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
}
- let l = PI([r, c.relativePath]), u = n.concat(c);
- e.children && e.children.length > 0 && (vI(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), wI(e.children, t, u, l, o)), (e.path != null || e.index) && t.push({
+ let l = NI([r, c.relativePath]), u = n.concat(c);
+ e.children && e.children.length > 0 && (_I(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), CI(e.children, t, u, l, o)), (e.path != null || e.index) && t.push({
path: l,
- score: xSe(l, e.index),
+ score: SSe(l, e.index),
routesMeta: u.map((e, t) => {
- let [n, r] = kI(e.relativePath, e.caseSensitive, t === u.length - 1);
+ let [n, r] = OI(e.relativePath, e.caseSensitive, t === u.length - 1);
return {
...e,
matcher: n,
@@ -45904,68 +45904,68 @@ function wI(e, t = [], n = [], r = "", i = !1) {
};
return e.forEach((e, t) => {
if (e.path === "" || !e.path?.includes("?")) a(e, t);
- else for (let n of TI(e.path)) a(e, t, !0, n);
+ else for (let n of wI(e.path)) a(e, t, !0, n);
}), t;
}
-function TI(e) {
+function wI(e) {
let t = e.split("/");
if (t.length === 0) return [];
let [n, ...r] = t, i = n.endsWith("?"), a = n.replace(/\?$/, "");
if (r.length === 0) return i ? [a, ""] : [a];
- let o = TI(r.join("/")), s = [];
+ let o = wI(r.join("/")), s = [];
return s.push(...o.map((e) => e === "" ? a : [a, e].join("/"))), i && s.push(...o), s.map((t) => e.startsWith("/") && t === "" ? "/" : t);
}
-function fSe(e) {
- e.sort((e, t) => e.score === t.score ? SSe(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
+function pSe(e) {
+ e.sort((e, t) => e.score === t.score ? CSe(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
}
-var pSe = /^:[\w-]+$/, mSe = /^:[\w-]+/, hSe = 3.5, gSe = 3, _Se = 2, vSe = 1, ySe = 10, bSe = -2, EI = (e) => e === "*";
-function xSe(e, t) {
+var mSe = /^:[\w-]+$/, hSe = /^:[\w-]+/, gSe = 3.5, _Se = 3, vSe = 2, ySe = 1, bSe = 10, xSe = -2, TI = (e) => e === "*";
+function SSe(e, t) {
let n = e.split("/"), r = n.length;
- return n.some(EI) && (r += bSe), t && (r += _Se), n.filter((e) => !EI(e)).reduce((e, t) => e + (pSe.test(t) ? gSe : mSe.test(t) ? hSe : t === "" ? vSe : ySe), r);
+ return n.some(TI) && (r += xSe), t && (r += vSe), n.filter((e) => !TI(e)).reduce((e, t) => e + (mSe.test(t) ? _Se : hSe.test(t) ? gSe : t === "" ? ySe : bSe), r);
}
-function SSe(e, t) {
+function CSe(e, t) {
return e.length === t.length && e.slice(0, -1).every((e, n) => e === t[n]) ? e[e.length - 1] - t[t.length - 1] : 0;
}
-function CSe(e, t, n = !1) {
+function wSe(e, t, n = !1) {
let { routesMeta: r } = e, i = {}, a = "/", o = [];
for (let e = 0; e < r.length; ++e) {
let s = r[e], c = e === r.length - 1, l = a === "/" ? t : t.slice(a.length) || "/", u = {
path: s.relativePath,
caseSensitive: s.caseSensitive,
end: c
- }, d = s.matcher && s.compiledParams ? OI(u, l, s.matcher, s.compiledParams) : DI(u, l), f = s.route;
- if (!d && c && n && !r[r.length - 1].route.index && (d = DI({
+ }, d = s.matcher && s.compiledParams ? DI(u, l, s.matcher, s.compiledParams) : EI(u, l), f = s.route;
+ if (!d && c && n && !r[r.length - 1].route.index && (d = EI({
path: s.relativePath,
caseSensitive: s.caseSensitive,
end: !1
}, l)), !d) return null;
Object.assign(i, d.params), o.push({
params: i,
- pathname: PI([a, d.pathname]),
- pathnameBase: kSe(PI([a, d.pathnameBase])),
+ pathname: NI([a, d.pathname]),
+ pathnameBase: ASe(NI([a, d.pathnameBase])),
route: f
- }), d.pathnameBase !== "/" && (a = PI([a, d.pathnameBase]));
+ }), d.pathnameBase !== "/" && (a = NI([a, d.pathnameBase]));
}
return o;
}
-function DI(e, t) {
+function EI(e, t) {
typeof e == "string" && (e = {
path: e,
caseSensitive: !1,
end: !0
});
- let [n, r] = kI(e.path, e.caseSensitive, e.end);
- return OI(e, t, n, r);
+ let [n, r] = OI(e.path, e.caseSensitive, e.end);
+ return DI(e, t, n, r);
}
-function OI(e, t, n, r) {
+function DI(e, t, n, r) {
let i = t.match(n);
if (!i) return null;
- let a = i[0], o = FI(a, 1), s = i.slice(1);
+ let a = i[0], o = PI(a, 1), s = i.slice(1);
return {
params: r.reduce((e, { paramName: t, isOptional: n }, r) => {
if (t === "*") {
let e = s[r] || "";
- o = FI(a.slice(0, a.length - e.length), 1);
+ o = PI(a.slice(0, a.length - e.length), 1);
}
let i = s[r];
return e[t] = n && !i ? void 0 : (i || "").replace(/%2F/g, "/"), e;
@@ -45975,8 +45975,8 @@ function OI(e, t, n, r) {
pattern: e
};
}
-function kI(e, t = !1, n = !0) {
- yI(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
+function OI(e, t = !1, n = !0) {
+ vI(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (e, t, n, i, a) => {
if (r.push({
paramName: t,
@@ -45989,46 +45989,46 @@ function kI(e, t = !1, n = !0) {
}).replace(/\/([\w-]+)\?(?=\/|$|\()/g, "(?:/$1)?");
return e.endsWith("*") ? (r.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), r];
}
-function wSe(e) {
+function TSe(e) {
try {
return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");
} catch (t) {
- return yI(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
+ return vI(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
}
}
-function AI(e, t) {
+function kI(e, t) {
if (t === "/") return e;
if (!e.toLowerCase().startsWith(t.toLowerCase())) return null;
let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);
return r && r !== "/" ? null : e.slice(n) || "/";
}
-function TSe(e, t = "/") {
- let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? CI(e) : e, a;
- return n ? (n = NI(n), a = n.startsWith("/") || n.startsWith("\\") ? jI(n.substring(1), "/") : jI(n, t)) : a = t, {
+function ESe(e, t = "/") {
+ let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? SI(e) : e, a;
+ return n ? (n = MI(n), a = n.startsWith("/") || n.startsWith("\\") ? AI(n.substring(1), "/") : AI(n, t)) : a = t, {
pathname: a,
- search: ASe(r),
- hash: jSe(i)
+ search: jSe(r),
+ hash: MSe(i)
};
}
-function jI(e, t) {
- let n = FI(t).split("/");
+function AI(e, t) {
+ let n = PI(t).split("/");
return e.split("/").forEach((e) => {
e === ".." ? n.length > 1 && n.pop() : e !== "." && n.push(e);
}), n.length > 1 ? n.join("/") : "/";
}
-function MI(e, t, n, r) {
+function jI(e, t, n, r) {
return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
}
-function ESe(e) {
+function DSe(e) {
return e.filter((e, t) => t === 0 || e.route.path && e.route.path.length > 0);
}
-function DSe(e) {
- let t = ESe(e);
+function OSe(e) {
+ let t = DSe(e);
return t.map((e, n) => n === t.length - 1 ? e.pathname : e.pathnameBase);
}
-function OSe(e, t, n, r = !1) {
+function kSe(e, t, n, r = !1) {
let i;
- typeof e == "string" ? i = CI(e) : (i = { ...e }, vI(!i.pathname || !i.pathname.includes("?"), MI("?", "pathname", "search", i)), vI(!i.pathname || !i.pathname.includes("#"), MI("#", "pathname", "hash", i)), vI(!i.search || !i.search.includes("#"), MI("#", "search", "hash", i)));
+ typeof e == "string" ? i = SI(e) : (i = { ...e }, _I(!i.pathname || !i.pathname.includes("?"), jI("?", "pathname", "search", i)), _I(!i.pathname || !i.pathname.includes("#"), jI("#", "pathname", "hash", i)), _I(!i.search || !i.search.includes("#"), jI("#", "search", "hash", i)));
let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, s;
if (o == null) s = n;
else {
@@ -46040,16 +46040,16 @@ function OSe(e, t, n, r = !1) {
}
s = e >= 0 ? t[e] : "/";
}
- let c = TSe(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
+ let c = ESe(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
return !c.pathname.endsWith("/") && (l || u) && (c.pathname += "/"), c;
}
-var NI = (e) => e.replace(/[\\/]{2,}/g, "/"), PI = (e) => NI(e.join("/"));
-function FI(e, t = 0) {
+var MI = (e) => e.replace(/[\\/]{2,}/g, "/"), NI = (e) => MI(e.join("/"));
+function PI(e, t = 0) {
let n = e.length;
for (; n > t && e.charCodeAt(n - 1) === 47;) n--;
return n === e.length ? e : e.slice(0, n);
}
-var kSe = (e) => FI(e).replace(/^\/*/, "/"), ASe = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, jSe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, MSe = class {
+var ASe = (e) => PI(e).replace(/^\/*/, "/"), jSe = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, MSe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, NSe = class {
status;
statusText;
data;
@@ -46059,26 +46059,26 @@ var kSe = (e) => FI(e).replace(/^\/*/, "/"), ASe = (e) => !e || e === "?" ? "" :
this.status = e, this.statusText = t || "", this.internal = r, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n;
}
};
-function NSe(e) {
+function PSe(e) {
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
}
-function PSe(e) {
- return PI(e.map((e) => e.route.path).filter(Boolean)) || "/";
+function FSe(e) {
+ return NI(e.map((e) => e.route.path).filter(Boolean)) || "/";
}
-var II = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
-function FSe(e, t) {
+var FI = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
+function ISe(e, t) {
let n = e;
- if (typeof n != "string" || !rSe.test(n)) return {
+ if (typeof n != "string" || !iSe.test(n)) return {
absoluteURL: void 0,
isExternal: !1,
to: n
};
let r = n, i = !1;
- if (II) try {
- let e = new URL(window.location.href), r = hI.test(n) ? new URL(iSe(n, e.protocol)) : new URL(n), a = AI(r.pathname, t);
+ if (FI) try {
+ let e = new URL(window.location.href), r = mI.test(n) ? new URL(aSe(n, e.protocol)) : new URL(n), a = kI(r.pathname, t);
r.origin === e.origin && a != null ? n = a + r.search + r.hash : i = !0;
} catch {
- yI(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
+ vI(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
}
return {
absoluteURL: r,
@@ -46088,45 +46088,45 @@ function FSe(e, t) {
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/navigation.js
-var LI = new URL("http://localhost");
-function RI(e) {
+var II = new URL("http://localhost");
+function LI(e) {
if (e.createURL) return e.createURL("/");
try {
- return new URL(e.createHref("/"), LI);
+ return new URL(e.createHref("/"), II);
} catch {
- return LI;
+ return II;
}
}
-function zI(e, t) {
+function RI(e, t) {
return e.origin === t.origin && (e.origin !== "null" || e.protocol === t.protocol && e.host === t.host);
}
-function ISe(e, t) {
+function LSe(e, t) {
if (e.startsWith("//")) return !0;
let n = t.protocol.toLowerCase();
return e.toLowerCase().startsWith(n) ? t.host === "" || e.slice(n.length).startsWith("//") : !1;
}
-function BI(e, t, n, r) {
+function zI(e, t, n, r) {
let i = null;
try {
i = e == null ? null : new URL(e, n);
} catch {}
- let a = new URL(t, n), o = i != null && !zI(i, n), s = !zI(a, n);
+ let a = new URL(t, n), o = i != null && !RI(i, n), s = !RI(a, n);
if (r === "reject") {
if (o || s) throw Error("External navigation is not allowed");
- } else if (s && (i == null || !ISe(e, i) || !zI(i, a))) throw Error("External navigation is not allowed");
+ } else if (s && (i == null || !LSe(e, i) || !RI(i, a))) throw Error("External navigation is not allowed");
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/router.js
-var VI = [
+var BI = [
"POST",
"PUT",
"PATCH",
"DELETE"
];
-new Set(VI);
-var LSe = ["GET", ...VI];
-new Set(LSe);
-var RSe = [
+new Set(BI);
+var RSe = ["GET", ...BI];
+new Set(RSe);
+var zSe = [
"about:",
"blob:",
"chrome:",
@@ -46138,85 +46138,85 @@ var RSe = [
"filesystem:",
"javascript:"
];
-function zSe(e) {
+function BSe(e) {
try {
- return RSe.includes(new URL(e).protocol);
+ return zSe.includes(new URL(e).protocol);
} catch {
return !1;
}
}
//#endregion
//#region node_modules/react-router/dist/production/lib/context.js
-var HI = b.createContext(null);
-HI.displayName = "DataRouter";
-var BSe = b.createContext(null);
-BSe.displayName = "DataRouterState";
-var UI = b.createContext(null);
-UI.displayName = "DataRouterData";
+var VI = b.createContext(null);
+VI.displayName = "DataRouter";
var VSe = b.createContext(null);
-VSe.displayName = "DataRouterNavigation";
-var HSe = b.createContext(!1), USe = b.createContext({ isTransitioning: !1 });
-USe.displayName = "ViewTransition";
-var WSe = b.createContext(null);
-WSe.displayName = "Fetchers";
+VSe.displayName = "DataRouterState";
+var HI = b.createContext(null);
+HI.displayName = "DataRouterData";
+var HSe = b.createContext(null);
+HSe.displayName = "DataRouterNavigation";
+var USe = b.createContext(!1), WSe = b.createContext({ isTransitioning: !1 });
+WSe.displayName = "ViewTransition";
var GSe = b.createContext(null);
-GSe.displayName = "Await";
+GSe.displayName = "Fetchers";
+var KSe = b.createContext(null);
+KSe.displayName = "Await";
+var UI = b.createContext(null);
+UI.displayName = "Navigation";
var WI = b.createContext(null);
-WI.displayName = "Navigation";
-var GI = b.createContext(null);
-GI.displayName = "Location";
-var KI = b.createContext({
+WI.displayName = "Location";
+var GI = b.createContext({
outlet: null,
matches: [],
isDataRoute: !1
});
-KI.displayName = "Route";
-var qI = b.createContext(!1);
-qI.displayName = "IsDataRoute";
-var JI = b.createContext(void 0);
-JI.displayName = "RouteId";
-var YI = b.createContext(null);
-YI.displayName = "RouteError";
+GI.displayName = "Route";
+var KI = b.createContext(!1);
+KI.displayName = "IsDataRoute";
+var qI = b.createContext(void 0);
+qI.displayName = "RouteId";
+var JI = b.createContext(null);
+JI.displayName = "RouteError";
//#endregion
//#region node_modules/react-router/dist/production/lib/errors.js
-var XI = "REACT_ROUTER_ERROR", KSe = "REDIRECT", qSe = "ROUTE_ERROR_RESPONSE";
-function JSe(e) {
- if (e.startsWith(`${XI}:${KSe}:{`)) try {
+var YI = "REACT_ROUTER_ERROR", qSe = "REDIRECT", JSe = "ROUTE_ERROR_RESPONSE";
+function YSe(e) {
+ if (e.startsWith(`${YI}:${qSe}:{`)) try {
let t = JSON.parse(e.slice(28));
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string" && typeof t.location == "string" && typeof t.reloadDocument == "boolean" && typeof t.replace == "boolean") return t;
} catch {}
}
-function YSe(e) {
- if (e.startsWith(`${XI}:${qSe}:{`)) try {
+function XSe(e) {
+ if (e.startsWith(`${YI}:${JSe}:{`)) try {
let t = JSON.parse(e.slice(40));
- if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new MSe(t.status, t.statusText, t.data);
+ if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new NSe(t.status, t.statusText, t.data);
} catch {}
}
//#endregion
//#region node_modules/react-router/dist/production/lib/hooks.js
-function ZI() {
- return b.useContext(GI) != null;
-}
-function QI() {
- return vI(ZI(), "useLocation() may be used only in the context of a <Router> component."), b.useContext(GI).location;
+function XI() {
+ return b.useContext(WI) != null;
}
-var $I = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
-function XSe() {
- return b.useContext(qI) ? cCe() : ZSe();
+function ZI() {
+ return _I(XI(), "useLocation() may be used only in the context of a <Router> component."), b.useContext(WI).location;
}
+var QI = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
function ZSe() {
- vI(ZI(), "useNavigate() may be used only in the context of a <Router> component.");
- let e = b.useContext(HI), { basename: t, navigator: n } = b.useContext(WI), { matches: r } = b.useContext(KI), { pathname: i } = QI(), a = JSON.stringify(DSe(r)), o = b.useRef(!1);
+ return b.useContext(KI) ? lCe() : QSe();
+}
+function QSe() {
+ _I(XI(), "useNavigate() may be used only in the context of a <Router> component.");
+ let e = b.useContext(VI), { basename: t, navigator: n } = b.useContext(UI), { matches: r } = b.useContext(GI), { pathname: i } = ZI(), a = JSON.stringify(OSe(r)), o = b.useRef(!1);
return b.useLayoutEffect(() => {
o.current = !0;
}), b.useCallback((r, s = {}) => {
- if (yI(o.current, $I), !o.current) return;
+ if (vI(o.current, QI), !o.current) return;
if (typeof r == "number") {
n.go(r);
return;
}
- let c = OSe(r, JSON.parse(a), i, s.relative === "path");
- e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : PI([t, c.pathname])), BI(typeof r == "string" ? r : SI(r), n.createHref(c), RI(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
+ let c = kSe(r, JSON.parse(a), i, s.relative === "path");
+ e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : NI([t, c.pathname])), zI(typeof r == "string" ? r : xI(r), n.createHref(c), LI(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
}, [
t,
n,
@@ -46226,19 +46226,19 @@ function ZSe() {
]);
}
b.createContext(null);
-function QSe(e, t) {
- return eL(e, t);
+function $Se(e, t) {
+ return $I(e, t);
}
-function eL(e, t, n) {
- vI(ZI(), "useRoutes() may be used only in the context of a <Router> component.");
- let { navigator: r } = b.useContext(WI), { matches: i } = b.useContext(KI), a = i[i.length - 1], o = a ? a.params : {};
+function $I(e, t, n) {
+ _I(XI(), "useRoutes() may be used only in the context of a <Router> component.");
+ let { navigator: r } = b.useContext(UI), { matches: i } = b.useContext(GI), a = i[i.length - 1], o = a ? a.params : {};
a && a.pathname;
let s = a ? a.pathnameBase : "/";
a && a.route;
- let c = QI(), l;
+ let c = ZI(), l;
if (t) {
- let e = typeof t == "string" ? CI(t) : t;
- vI(s === "/" || e.pathname?.startsWith(s), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`), l = e;
+ let e = typeof t == "string" ? SI(t) : t;
+ _I(s === "/" || e.pathname?.startsWith(s), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`), l = e;
} else l = c;
let u = l.pathname || "/", d = u;
if (s !== "/") {
@@ -46246,13 +46246,13 @@ function eL(e, t, n) {
d = "/" + u.replace(/^\//, "").split("/").slice(e.length).join("/");
}
let f;
- f = n ? n.state.matches.length ? n.state.matches.map((e) => Object.assign(e, { route: n.manifest[e.route.id] || e.route })) : n.router.match(n.state.location) : lSe(e, { pathname: d });
- let p = iCe(f && f.map((e) => Object.assign({}, e, {
+ f = n ? n.state.matches.length ? n.state.matches.map((e) => Object.assign(e, { route: n.manifest[e.route.id] || e.route })) : n.router.match(n.state.location) : uSe(e, { pathname: d });
+ let p = aCe(f && f.map((e) => Object.assign({}, e, {
params: Object.assign({}, o, e.params),
- pathname: PI([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
- pathnameBase: e.pathnameBase === "/" ? s : PI([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
+ pathname: NI([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
+ pathnameBase: e.pathnameBase === "/" ? s : NI([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
})), i, n);
- return t && p ? /* @__PURE__ */ b.createElement(GI.Provider, { value: {
+ return t && p ? /* @__PURE__ */ b.createElement(WI.Provider, { value: {
location: {
pathname: "/",
search: "",
@@ -46265,14 +46265,14 @@ function eL(e, t, n) {
navigationType: "POP"
} }, p) : p;
}
-function $Se() {
- let e = sCe(), t = NSe(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null;
+function eCe() {
+ let e = cCe(), t = PSe(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null;
return /* @__PURE__ */ b.createElement(b.Fragment, null, /* @__PURE__ */ b.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ b.createElement("h3", { style: { fontStyle: "italic" } }, t), n ? /* @__PURE__ */ b.createElement("pre", { style: {
padding: "0.5rem",
backgroundColor: "rgba(200,200,200, 0.5)"
} }, n) : null, null);
}
-var eCe = /* @__PURE__ */ b.createElement($Se, null), tCe = class extends b.Component {
+var tCe = /* @__PURE__ */ b.createElement(eCe, null), nCe = class extends b.Component {
constructor(e) {
super(e), this.state = {
location: e.location,
@@ -46280,7 +46280,7 @@ var eCe = /* @__PURE__ */ b.createElement($Se, null), tCe = class extends b.Comp
error: e.error
};
}
- static contextType = HSe;
+ static contextType = USe;
static getDerivedStateFromError(e) {
return { error: e };
}
@@ -46301,30 +46301,30 @@ var eCe = /* @__PURE__ */ b.createElement($Se, null), tCe = class extends b.Comp
render() {
let e = this.state.error;
if (this.context && typeof e == "object" && e && "digest" in e && typeof e.digest == "string") {
- let t = YSe(e.digest);
+ let t = XSe(e.digest);
t && (e = t);
}
- let t = e === void 0 ? this.props.children : /* @__PURE__ */ b.createElement(KI.Provider, { value: this.props.routeContext }, /* @__PURE__ */ b.createElement(qI.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ b.createElement(JI.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ b.createElement(YI.Provider, {
+ let t = e === void 0 ? this.props.children : /* @__PURE__ */ b.createElement(GI.Provider, { value: this.props.routeContext }, /* @__PURE__ */ b.createElement(KI.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ b.createElement(qI.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ b.createElement(JI.Provider, {
value: e,
children: this.props.component
}))));
- return this.context ? /* @__PURE__ */ b.createElement(nCe, { error: e }, t) : t;
+ return this.context ? /* @__PURE__ */ b.createElement(rCe, { error: e }, t) : t;
}
-}, tL = /* @__PURE__ */ new WeakMap();
-function nCe({ children: e, error: t }) {
- let { basename: n, navigator: r } = b.useContext(WI);
+}, eL = /* @__PURE__ */ new WeakMap();
+function rCe({ children: e, error: t }) {
+ let { basename: n, navigator: r } = b.useContext(UI);
if (typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
- let e = JSe(t.digest);
+ let e = YSe(t.digest);
if (e) {
- let i = tL.get(t);
+ let i = eL.get(t);
if (i) throw i;
- let a = FSe(e.location, n), o = a.absoluteURL || a.to;
- if (BI(e.location, o, RI(r), "allow-explicit"), zSe(o)) throw Error("Invalid redirect location");
- if (II && !tL.get(t)) {
+ let a = ISe(e.location, n), o = a.absoluteURL || a.to;
+ if (zI(e.location, o, LI(r), "allow-explicit"), BSe(o)) throw Error("Invalid redirect location");
+ if (FI && !eL.get(t)) {
if (a.isExternal || e.reloadDocument) window.location.href = o;
else {
let n = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(a.to, { replace: e.replace }));
- throw tL.set(t, n), n;
+ throw eL.set(t, n), n;
}
}
return /* @__PURE__ */ b.createElement("meta", {
@@ -46335,11 +46335,11 @@ function nCe({ children: e, error: t }) {
}
return e;
}
-function rCe({ routeContext: e, match: t, children: n }) {
- let r = b.useContext(HI);
- return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ b.createElement(KI.Provider, { value: e }, /* @__PURE__ */ b.createElement(qI.Provider, { value: e.isDataRoute }, /* @__PURE__ */ b.createElement(JI.Provider, { value: t.route.id }, n)));
+function iCe({ routeContext: e, match: t, children: n }) {
+ let r = b.useContext(VI);
+ return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ b.createElement(GI.Provider, { value: e }, /* @__PURE__ */ b.createElement(KI.Provider, { value: e.isDataRoute }, /* @__PURE__ */ b.createElement(qI.Provider, { value: t.route.id }, n)));
}
-function iCe(e, t = [], n) {
+function aCe(e, t = [], n) {
let r = n?.state;
if (e == null) {
if (!r) return null;
@@ -46350,7 +46350,7 @@ function iCe(e, t = [], n) {
let i = e, a = r?.errors;
if (a != null) {
let e = i.findIndex((e) => e.route.id && a?.[e.route.id] !== void 0);
- vI(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`), i = i.slice(0, Math.min(i.length, e + 1));
+ _I(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`), i = i.slice(0, Math.min(i.length, e + 1));
}
let o = !1, s = -1;
if (n && r) {
@@ -46370,16 +46370,16 @@ function iCe(e, t = [], n) {
c(e, {
location: r.location,
params: r.matches?.[0]?.params ?? {},
- pattern: PSe(r.matches),
+ pattern: FSe(r.matches),
errorInfo: t
});
} : void 0;
return i.reduceRight((e, n, c) => {
let u, d = !1, f = null, p = null;
- r && (u = a && n.route.id ? a[n.route.id] : void 0, f = n.route.errorElement || eCe, o && (s < 0 && c === 0 ? (lCe("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), d = !0, p = null) : s === c && (d = !0, p = n.route.hydrateFallbackElement || null)));
+ r && (u = a && n.route.id ? a[n.route.id] : void 0, f = n.route.errorElement || tCe, o && (s < 0 && c === 0 ? (uCe("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), d = !0, p = null) : s === c && (d = !0, p = n.route.hydrateFallbackElement || null)));
let m = t.concat(i.slice(0, c + 1)), h = () => {
let t;
- return t = u ? f : d ? p : n.route.Component ? /* @__PURE__ */ b.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ b.createElement(rCe, {
+ return t = u ? f : d ? p : n.route.Component ? /* @__PURE__ */ b.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ b.createElement(iCe, {
match: n,
routeContext: {
outlet: e,
@@ -46389,7 +46389,7 @@ function iCe(e, t = [], n) {
children: t
});
};
- return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ b.createElement(tCe, {
+ return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ b.createElement(nCe, {
location: r.location,
revalidation: r.revalidation,
component: f,
@@ -46404,44 +46404,44 @@ function iCe(e, t = [], n) {
}) : h();
}, null);
}
-function nL(e) {
+function tL(e) {
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
}
-function aCe(e) {
- let t = b.useContext(HI);
- return vI(t, nL(e)), t;
-}
function oCe(e) {
- let t = b.useContext(UI);
- return vI(t, nL(e)), t;
+ let t = b.useContext(VI);
+ return _I(t, tL(e)), t;
+}
+function sCe(e) {
+ let t = b.useContext(HI);
+ return _I(t, tL(e)), t;
}
-function rL(e) {
- let t = b.useContext(JI);
- return vI(t, `${e} can only be used on routes that contain a unique "id"`), t;
+function nL(e) {
+ let t = b.useContext(qI);
+ return _I(t, `${e} can only be used on routes that contain a unique "id"`), t;
}
-function sCe() {
- let e = b.useContext(YI), t = oCe("useRouteError"), n = rL("useRouteError");
+function cCe() {
+ let e = b.useContext(JI), t = sCe("useRouteError"), n = nL("useRouteError");
return e === void 0 ? t.errors?.[n] : e;
}
-function cCe() {
- let { router: e } = aCe("useNavigate"), t = rL("useNavigate"), n = b.useRef(!1);
+function lCe() {
+ let { router: e } = oCe("useNavigate"), t = nL("useNavigate"), n = b.useRef(!1);
return b.useLayoutEffect(() => {
n.current = !0;
}), b.useCallback(async (r, i = {}) => {
- yI(n.current, $I), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {
+ vI(n.current, QI), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {
fromRouteId: t,
...i
}));
}, [e, t]);
}
-var iL = {};
-function lCe(e, t, n) {
- !t && !iL[e] && (iL[e] = !0, yI(!1, n));
+var rL = {};
+function uCe(e, t, n) {
+ !t && !rL[e] && (rL[e] = !0, vI(!1, n));
}
-b.memo(uCe);
-function uCe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
- let a = b.useContext(HI);
- return vI(a, "You must render this element inside a <DataRouterContext.Provider> element"), eL(e, void 0, {
+b.memo(dCe);
+function dCe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
+ let a = b.useContext(VI);
+ return _I(a, "You must render this element inside a <DataRouterContext.Provider> element"), $I(e, void 0, {
router: a.router,
manifest: t,
state: n,
@@ -46449,11 +46449,11 @@ function uCe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
onError: i
});
}
-function aL(e) {
- vI(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.");
+function iL(e) {
+ _I(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.");
}
-function dCe({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {
- vI(!ZI(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
+function fCe({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {
+ _I(!XI(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
let s = e.replace(/^\/*/, "/"), c = b.useMemo(() => ({
basename: s,
navigator: i,
@@ -46466,9 +46466,9 @@ function dCe({ basename: e = "/", children: t = null, location: n, navigationTyp
a,
o
]);
- typeof n == "string" && (n = CI(n));
+ typeof n == "string" && (n = SI(n));
let { pathname: l = "/", search: u = "", hash: d = "", state: f = null, key: p = "default", mask: m } = n, h = b.useMemo(() => {
- let e = AI(l, s);
+ let e = kI(l, s);
return e == null ? null : {
location: {
pathname: e,
@@ -46490,27 +46490,27 @@ function dCe({ basename: e = "/", children: t = null, location: n, navigationTyp
r,
m
]);
- return yI(h != null, `<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`), h == null ? null : /* @__PURE__ */ b.createElement(WI.Provider, { value: c }, /* @__PURE__ */ b.createElement(GI.Provider, {
+ return vI(h != null, `<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`), h == null ? null : /* @__PURE__ */ b.createElement(UI.Provider, { value: c }, /* @__PURE__ */ b.createElement(WI.Provider, {
children: t,
value: h
}));
}
-function oL({ children: e, location: t }) {
- return QSe(sL(e), t);
+function aL({ children: e, location: t }) {
+ return $Se(oL(e), t);
}
b.Component;
-function sL(e, t = []) {
+function oL(e, t = []) {
let n = [];
return b.Children.forEach(e, (e, r) => {
if (!b.isValidElement(e)) return;
let i = [...t, r];
if (e.type === b.Fragment) {
- n.push.apply(n, sL(e.props.children, i));
+ n.push.apply(n, oL(e.props.children, i));
return;
}
- vI(e.type === aL, `[${typeof e.type == "string" ? e.type : e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);
+ _I(e.type === iL, `[${typeof e.type == "string" ? e.type : e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);
let a = e.props;
- vI(!a.index || !a.children, "An index route cannot have child routes.");
+ _I(!a.index || !a.children, "An index route cannot have child routes.");
let o = {
id: a.id || i.join("-"),
caseSensitive: a.caseSensitive,
@@ -46529,12 +46529,12 @@ function sL(e, t = []) {
handle: a.handle,
lazy: a.lazy
};
- a.children && (o.children = sL(a.children, i)), n.push(o);
+ a.children && (o.children = oL(a.children, i)), n.push(o);
}), n;
}
//#endregion
//#region src/history/overlay.ts
-var cL = [
+var sL = [
"/item/:id",
"/mix/:seed/:item",
"/parts/:seed/:item",
@@ -46542,15 +46542,15 @@ var cL = [
"/playlists/:playlist/:item",
"/follow/item/:id",
"/jav/movie/:code"
-], fCe = {
+], pCe = {
"/mix/:seed/:item": "mix",
"/parts/:seed/:item": "parts",
"/editions/:seed/:item": "editions",
"/playlists/:playlist/:item": "playlist"
};
-function lL(e) {
- for (let t of cL) {
- let n = DI(t, e);
+function cL(e) {
+ for (let t of sL) {
+ let n = EI(t, e);
if (!n) continue;
if (t === "/jav/movie/:code") {
let e = n.params.code || "";
@@ -46575,7 +46575,7 @@ function lL(e) {
path: t,
target: {
kind: "queue",
- queue: fCe[t],
+ queue: pCe[t],
key: i,
item: a
}
@@ -46583,42 +46583,42 @@ function lL(e) {
}
return null;
}
-var uL = (e) => lL(e)?.target ?? null, dL = (e) => cL.some((t) => DI(t, e) !== null);
-function fL(e) {
+var lL = (e) => cL(e)?.target ?? null, uL = (e) => sL.some((t) => EI(t, e) !== null);
+function dL(e) {
let t = e?.backgroundLocation;
return typeof t?.pathname == "string" ? {
pathname: t.pathname,
search: typeof t.search == "string" ? t.search : ""
} : null;
}
-var pL = null, mL = null;
-function hL() {
+var fL = null, pL = null;
+function mL() {
let { pathname: e, search: t } = window.location;
- dL(e) || (pL = {
+ uL(e) || (fL = {
pathname: e,
search: t
});
}
-function gL() {
- pL = null, mL = null;
+function hL() {
+ fL = null, pL = null;
}
-function pCe(e) {
- let t = fL(e);
- t && (pL = t, mL = t.pathname + t.search);
+function mCe(e) {
+ let t = dL(e);
+ t && (fL = t, pL = t.pathname + t.search);
}
-function _L() {
- let e = mL;
- return mL = null, e;
+function gL() {
+ let e = pL;
+ return pL = null, e;
}
-function vL(e) {
- return pL ? {
- backgroundLocation: { ...pL },
+function _L(e) {
+ return fL ? {
+ backgroundLocation: { ...fL },
overlay: e
} : void 0;
}
//#endregion
//#region src/history/route-meta.ts
-var yL = {
+var vL = {
"/jav": {
nav: "jav",
title: "JAV",
@@ -46752,179 +46752,179 @@ var yL = {
title: "沉浸模式"
}
};
-function bL(e) {
- if (Object.hasOwn(yL, e)) return yL[e];
- let t = lL(e);
- if (t) return yL[t.path];
+function yL(e) {
+ if (Object.hasOwn(vL, e)) return vL[e];
+ let t = cL(e);
+ if (t) return vL[t.path];
let [n, ...r] = e.split("/").filter(Boolean);
if (!n) return null;
- if (!r.length) return Object.hasOwn(yL, `/${n}`) ? yL[`/${n}`] : null;
+ if (!r.length) return Object.hasOwn(vL, `/${n}`) ? vL[`/${n}`] : null;
let i = `/${n}/*`;
- return Object.hasOwn(yL, i) ? {
- ...yL[i],
+ return Object.hasOwn(vL, i) ? {
+ ...vL[i],
title: r.join("/")
} : null;
}
//#endregion
//#region src/history/managed.ts
-var xL = () => {}, SL = new Promise((e) => {
- xL = e;
+var bL = () => {}, xL = new Promise((e) => {
+ bL = e;
});
-SL.catch(() => {});
-var CL = null, wL = /* @__PURE__ */ new Map(), TL = /* @__PURE__ */ new Map(), EL = 0, DL = /* @__PURE__ */ new Set();
-function mCe(e) {
- xL(e);
+xL.catch(() => {});
+var SL = null, CL = /* @__PURE__ */ new Map(), wL = /* @__PURE__ */ new Map(), TL = 0, EL = /* @__PURE__ */ new Set();
+function hCe(e) {
+ bL(e);
}
-function OL(e) {
- return wL.get(e) ?? null;
+function DL(e) {
+ return CL.get(e) ?? null;
}
-function kL(e) {
- return !!e && (wL.has(e) || TL.has(e));
+function OL(e) {
+ return !!e && (CL.has(e) || wL.has(e));
}
-var AL = () => [...wL.values()];
-function hCe(e) {
- return DL.add(e), () => {
- DL.delete(e);
+var kL = () => [...CL.values()];
+function gCe(e) {
+ return EL.add(e), () => {
+ EL.delete(e);
};
}
-function jL(e) {
- let t = AL();
- for (let n of [...DL]) n(t, e);
+function AL(e) {
+ let t = kL();
+ for (let n of [...EL]) n(t, e);
}
-async function ML(e, t, n) {
+async function jL(e, t, n) {
let { container: r } = n;
- if (PL(r), !n.isCurrent()) return !1;
- EL += 1;
+ if (NL(r), !n.isCurrent()) return !1;
+ TL += 1;
let i = {
- revision: EL,
+ revision: TL,
controller: new AbortController()
};
- TL.set(r, i);
- let a = CL;
- CL = null, a?.();
- let o = await SL;
- if (TL.get(r) !== i) return !1;
+ wL.set(r, i);
+ let a = SL;
+ SL = null, a?.();
+ let o = await xL;
+ if (wL.get(r) !== i) return !1;
try {
await o(e, t, i.controller.signal);
} catch {
if (i.controller.signal.aborted) return !1;
}
- if (TL.get(r) !== i || (TL.delete(r), !n.isCurrent())) return !1;
- let s = n.place ? n.place(r) : gCe(r);
- return wL.set(r, {
+ if (wL.get(r) !== i || (wL.delete(r), !n.isCurrent())) return !1;
+ let s = n.place ? n.place(r) : _Ce(r);
+ return CL.set(r, {
path: e,
props: t,
revision: i.revision,
container: r,
host: s,
resident: !!n.resident
- }), jL(!0), !0;
+ }), AL(!0), !0;
}
-function gCe(e) {
+function _Ce(e) {
let t = e.ownerDocument.createElement("div");
return t.className = "peach-react", e.textContent = "", e.append(t), t;
}
-function NL(e, t) {
- let n = e ? wL.get(e) : void 0;
- n && (wL.set(n.container, {
+function ML(e, t) {
+ let n = e ? CL.get(e) : void 0;
+ n && (CL.set(n.container, {
...n,
props: {
...n.props,
...t
}
- }), jL(!1));
+ }), AL(!1));
}
-function PL(e, ...t) {
+function NL(e, ...t) {
let n = [];
for (let r of /* @__PURE__ */ new Set([e, ...t])) {
- let e = TL.get(r);
- e && (e.controller.abort(), TL.delete(r));
- let t = wL.get(r);
- t && (wL.delete(r), n.push(t));
+ let e = wL.get(r);
+ e && (e.controller.abort(), wL.delete(r));
+ let t = CL.get(r);
+ t && (CL.delete(r), n.push(t));
}
if (n.length) {
- jL(!0);
+ AL(!0);
for (let e of n) e.resident || e.host.remove();
}
}
-function _Ce() {
- let [e, ...t] = /* @__PURE__ */ new Set([...wL.keys(), ...TL.keys()]);
- e && PL(e, ...t);
+function vCe() {
+ let [e, ...t] = /* @__PURE__ */ new Set([...CL.keys(), ...wL.keys()]);
+ e && NL(e, ...t);
}
-function vCe(e, t) {
- let n = wL.get(e);
- n?.revision === t && (wL.delete(e), n.resident || n.host.remove(), queueMicrotask(() => {
- jL(!1);
+function yCe(e, t) {
+ let n = CL.get(e);
+ n?.revision === t && (CL.delete(e), n.resident || n.host.remove(), queueMicrotask(() => {
+ AL(!1);
}));
}
//#endregion
//#region src/history/index.ts
-var FL = aSe({ v5Compat: !0 }), IL = 0, LL = 0, RL = {
- action: FL.action,
- location: FL.location,
- seq: IL,
- openEpoch: LL,
+var PL = oSe({ v5Compat: !0 }), FL = 0, IL = 0, LL = {
+ action: PL.action,
+ location: PL.location,
+ seq: FL,
+ openEpoch: IL,
claimed: !0
-}, zL = /* @__PURE__ */ new Set(), BL = !1, VL = !0;
-FL.listen(({ action: e, location: t }) => {
- IL += 1, BL || (LL += 1), e !== "REPLACE" && (VL = !1), RL = {
+}, RL = /* @__PURE__ */ new Set(), zL = !1, BL = !0;
+PL.listen(({ action: e, location: t }) => {
+ FL += 1, zL || (IL += 1), e !== "REPLACE" && (BL = !1), LL = {
action: e,
location: t,
- seq: IL,
- openEpoch: LL,
- claimed: BL
+ seq: FL,
+ openEpoch: IL,
+ claimed: zL
};
- for (let e of [...zL]) e(RL);
+ for (let e of [...RL]) e(LL);
});
-var HL = {
+var VL = {
get navigation() {
- return RL;
+ return LL;
},
listen(e) {
- return zL.add(e), () => {
- zL.delete(e);
+ return RL.add(e), () => {
+ RL.delete(e);
};
},
- createHref: (e) => FL.createHref(e),
- createURL: (e) => FL.createURL(e),
- encodeLocation: (e) => FL.encodeLocation(e),
- go: (e) => FL.go(e),
- push: (e, t) => FL.push(e, t),
- replace: (e, t) => FL.replace(e, t)
+ createHref: (e) => PL.createHref(e),
+ createURL: (e) => PL.createURL(e),
+ encodeLocation: (e) => PL.encodeLocation(e),
+ go: (e) => PL.go(e),
+ push: (e, t) => PL.push(e, t),
+ replace: (e, t) => PL.replace(e, t)
};
-function UL(e, { replace: t = !1, state: n } = {}) {
+function HL(e, { replace: t = !1, state: n } = {}) {
let r = new URL(e, window.location.href), i = `${r.pathname}${r.search}${r.hash}`;
- BL = !0;
+ zL = !0;
try {
- t ? FL.replace(i, n) : FL.push(i, n);
+ t ? PL.replace(i, n) : PL.push(i, n);
} finally {
- BL = !1;
+ zL = !1;
}
}
-var WL = () => VL;
-function GL() {
- return VL ? null : fL(RL.location.state);
+var UL = () => BL;
+function WL() {
+ return BL ? null : dL(LL.location.state);
}
-function yCe(e) {
- let t = vL(e);
- t && dL(window.location.pathname) && UL(window.location.href, {
+function bCe(e) {
+ let t = _L(e);
+ t && uL(window.location.pathname) && HL(window.location.href, {
replace: !0,
state: t
});
}
//#endregion
//#region src/react/providers.tsx
-var KL = null;
-function bCe() {
- return KL?.isConnected || (KL = document.createElement("div"), KL.className = "peach-react", KL.dataset.reactOverlays = "", document.body.append(KL)), KL;
+var GL = null;
+function xCe() {
+ return GL?.isConnected || (GL = document.createElement("div"), GL.className = "peach-react", GL.dataset.reactOverlays = "", document.body.append(GL)), GL;
}
-function xCe({ children: e }) {
+function SCe({ children: e }) {
return /* @__PURE__ */ (0, x.jsx)(w, {
client: V,
children: /* @__PURE__ */ (0, x.jsx)(ene, {
reducedMotion: "user",
- children: /* @__PURE__ */ (0, x.jsx)(Sx, {
- getContainer: bCe,
+ children: /* @__PURE__ */ (0, x.jsx)(Cx, {
+ getContainer: xCe,
children: e
})
})
@@ -46932,9 +46932,9 @@ function xCe({ children: e }) {
}
//#endregion
//#region src/react/router/pages/overlay.tsx
-var qL = () => bc, SCe = () => xc;
-function CCe() {
- let e = (0, b.useContext)(ZL), t = (0, b.useSyncExternalStore)(jc, SCe), n = (0, b.useSyncExternalStore)(jc, qL);
+var KL = () => bc, CCe = () => xc;
+function wCe() {
+ let e = (0, b.useContext)(XL), t = (0, b.useSyncExternalStore)(jc, CCe), n = (0, b.useSyncExternalStore)(jc, KL);
return (0, b.useEffect)(() => {
if (!t || !n) return;
let r = !0;
@@ -46949,11 +46949,11 @@ function CCe() {
e
]), null;
}
-function JL(e, t = !1) {
- let n = (0, b.useSyncExternalStore)(jc, qL), r = (0, b.useRef)(void 0);
+function qL(e, t = !1) {
+ let n = (0, b.useSyncExternalStore)(jc, KL), r = (0, b.useRef)(void 0);
if (r.current === void 0) {
- let { claimed: e } = HL.navigation;
- r.current = bc === 0 || WL() ? "boot" : e && !t ? null : "history";
+ let { claimed: e } = VL.navigation;
+ r.current = bc === 0 || UL() ? "boot" : e && !t ? null : "history";
}
let i = (0, b.useRef)(e);
(0, b.useEffect)(() => {
@@ -46969,158 +46969,158 @@ function JL(e, t = !1) {
}));
}, [n]);
}
-function wCe() {
- let e = (0, b.useContext)(ZL), t = (0, b.useRef)(e);
+function TCe() {
+ let e = (0, b.useContext)(XL), t = (0, b.useRef)(e);
return (0, b.useLayoutEffect)(() => {
t.current = e;
- }, [e]), JL((t) => {
- let n = uL(HL.navigation.location.pathname);
- e && n && (gL(), t || pCe(HL.navigation.location.state), e.openOverlay(n));
+ }, [e]), qL((t) => {
+ let n = lL(VL.navigation.location.pathname);
+ e && n && (hL(), t || mCe(VL.navigation.location.state), e.openOverlay(n));
}, !0), (0, b.useEffect)(() => () => {
queueMicrotask(() => {
- dL(HL.navigation.location.pathname) || t.current?.closeStage();
+ uL(VL.navigation.location.pathname) || t.current?.closeStage();
});
}, []), null;
}
-function TCe({ path: e }) {
- return XL(), /* @__PURE__ */ (0, x.jsx)(wCe, {}, `${e} ${HL.navigation.seq}`);
+function ECe({ path: e }) {
+ return YL(), /* @__PURE__ */ (0, x.jsx)(TCe, {}, `${e} ${VL.navigation.seq}`);
}
-function ECe() {
- let e = (0, b.useContext)(ZL);
- return JL(() => {
+function DCe() {
+ let e = (0, b.useContext)(XL);
+ return qL(() => {
e?.follow?.ground();
}), null;
}
-function DCe() {
- return /* @__PURE__ */ (0, x.jsx)(ECe, {}, XL());
+function OCe() {
+ return /* @__PURE__ */ (0, x.jsx)(DCe, {}, YL());
}
//#endregion
//#region src/react/router/router.tsx
-var YL = (0, b.createContext)(0), XL = () => (0, b.useContext)(YL), ZL = (0, b.createContext)(null);
-function OCe({ children: e }) {
- let [t, n] = (0, b.useState)(() => HL.navigation);
- return (0, b.useLayoutEffect)(() => (n(HL.navigation), HL.listen((e) => {
+var JL = (0, b.createContext)(0), YL = () => (0, b.useContext)(JL), XL = (0, b.createContext)(null);
+function kCe({ children: e }) {
+ let [t, n] = (0, b.useState)(() => VL.navigation);
+ return (0, b.useLayoutEffect)(() => (n(VL.navigation), VL.listen((e) => {
(0, mt.flushSync)(() => n(e));
- })), []), /* @__PURE__ */ (0, x.jsx)(YL.Provider, {
+ })), []), /* @__PURE__ */ (0, x.jsx)(JL.Provider, {
value: t.openEpoch,
- children: /* @__PURE__ */ (0, x.jsx)(dCe, {
+ children: /* @__PURE__ */ (0, x.jsx)(fCe, {
location: t.location,
navigationType: t.action,
- navigator: HL,
+ navigator: VL,
children: e
})
});
}
-function kCe({ target: e }) {
- let t = XSe();
+function ACe({ target: e }) {
+ let t = ZSe();
return (0, b.useLayoutEffect)(() => {
e.current = t;
}), null;
}
-function ACe(e, t, n) {
+function jCe(e, t, n) {
let r = new URL(e, window.location.href);
- g5(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);
+ _5(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);
}
-function jCe() {
- let e = (0, b.useContext)(ZL), [t, n] = (0, b.useState)(AL), r = (0, b.useRef)(null);
- (0, b.useLayoutEffect)(() => (n(AL()), hCe((e, t) => {
+function MCe() {
+ let e = (0, b.useContext)(XL), [t, n] = (0, b.useState)(kL), r = (0, b.useRef)(null);
+ (0, b.useLayoutEffect)(() => (n(kL()), gCe((e, t) => {
t ? (0, mt.flushSync)(() => n(e)) : n(e);
})), []);
let i = (0, b.useMemo)(() => (t) => {
- e && r.current && ACe(t, e, r.current);
+ e && r.current && jCe(t, e, r.current);
}, [e]);
- return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(kCe, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, x.jsx)(MCe, {
+ return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(ACe, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, x.jsx)(NCe, {
entry: t,
- children: /* @__PURE__ */ (0, x.jsx)(NCe, {
+ children: /* @__PURE__ */ (0, x.jsx)(PCe, {
entry: t,
actions: e,
go: i
})
}, t.revision)) : null] });
}
-var MCe = class extends b.Component {
+var NCe = class extends b.Component {
state = { failed: !1 };
static getDerivedStateFromError() {
return { failed: !0 };
}
componentDidCatch() {
- vCe(this.props.entry.container, this.props.entry.revision);
+ yCe(this.props.entry.container, this.props.entry.revision);
}
render() {
return this.state.failed ? null : this.props.children;
}
-}, NCe = (0, b.memo)(function({ entry: e, actions: t, go: n }) {
- return Btt(e.path) ? (0, mt.createPortal)(Utt(e.path, e.props, t, n), e.host, String(e.revision)) : null;
+}, PCe = (0, b.memo)(function({ entry: e, actions: t, go: n }) {
+ return ztt(e.path) ? (0, mt.createPortal)(Htt(e.path, e.props, t, n), e.host, String(e.revision)) : null;
});
-function PCe({ children: e }) {
- let t = QI();
- XL();
- let n = GL();
- return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsxs)(oL, {
+function FCe({ children: e }) {
+ let t = ZI();
+ YL();
+ let n = WL();
+ return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsxs)(aL, {
location: n ?? t,
children: [
- Object.entries(h5).map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(aL, {
+ Object.entries(g5).map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(iL, {
path: e,
element: t.element
}, e)),
- Object.entries(Att).map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(aL, {
+ Object.entries(ktt).map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(iL, {
path: e,
element: t.element
}, e)),
- Object.entries(_5).map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(aL, {
+ Object.entries(v5).map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(iL, {
path: e,
element: t.element
}, e)),
- Object.entries(y5).map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(aL, {
+ Object.entries(b5).map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(iL, {
path: e,
element: t.element
}, e)),
- Object.entries(x5).map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(aL, {
+ Object.entries(S5).map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(iL, {
path: e,
element: t.element
}, e)),
- ztt.map((e) => /* @__PURE__ */ (0, x.jsx)(aL, {
+ Rtt.map((e) => /* @__PURE__ */ (0, x.jsx)(iL, {
path: e,
- element: S5["/"].element
+ element: C5["/"].element
}, e)),
- Object.entries(jtt).map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(aL, {
+ Object.entries(Att).map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(iL, {
path: e,
element: t.element
}, e)),
- cL.map((e) => /* @__PURE__ */ (0, x.jsx)(aL, {
+ sL.map((e) => /* @__PURE__ */ (0, x.jsx)(iL, {
path: e,
- element: e === "/jav/movie/:code" ? null : e === "/follow/item/:id" ? /* @__PURE__ */ (0, x.jsx)(DCe, {}) : S5["/"].element
+ element: e === "/jav/movie/:code" ? null : e === "/follow/item/:id" ? /* @__PURE__ */ (0, x.jsx)(OCe, {}) : C5["/"].element
}, e)),
- /* @__PURE__ */ (0, x.jsx)(aL, {
+ /* @__PURE__ */ (0, x.jsx)(iL, {
path: "*",
element: e
})
]
- }), /* @__PURE__ */ (0, x.jsxs)(oL, { children: [cL.map((e) => /* @__PURE__ */ (0, x.jsx)(aL, {
+ }), /* @__PURE__ */ (0, x.jsxs)(aL, { children: [sL.map((e) => /* @__PURE__ */ (0, x.jsx)(iL, {
path: e,
- element: /* @__PURE__ */ (0, x.jsx)(TCe, { path: e })
- }, e)), /* @__PURE__ */ (0, x.jsx)(aL, {
+ element: /* @__PURE__ */ (0, x.jsx)(ECe, { path: e })
+ }, e)), /* @__PURE__ */ (0, x.jsx)(iL, {
path: "*",
element: null
})] })] });
}
-function FCe({ children: e, actions: t = null }) {
- return /* @__PURE__ */ (0, x.jsx)(xCe, { children: /* @__PURE__ */ (0, x.jsx)(ZL.Provider, {
+function ICe({ children: e, actions: t = null }) {
+ return /* @__PURE__ */ (0, x.jsx)(SCe, { children: /* @__PURE__ */ (0, x.jsx)(XL.Provider, {
value: t,
- children: /* @__PURE__ */ (0, x.jsxs)(OCe, { children: [
- /* @__PURE__ */ (0, x.jsx)(jCe, {}),
- /* @__PURE__ */ (0, x.jsx)(CCe, {}),
- /* @__PURE__ */ (0, x.jsx)(PCe, { children: e })
+ children: /* @__PURE__ */ (0, x.jsxs)(kCe, { children: [
+ /* @__PURE__ */ (0, x.jsx)(MCe, {}),
+ /* @__PURE__ */ (0, x.jsx)(wCe, {}),
+ /* @__PURE__ */ (0, x.jsx)(FCe, { children: e })
] })
}) });
}
-var ICe = { onCaughtError: (e) => {
+var LCe = { onCaughtError: (e) => {
globalThis.reportError?.(e);
} };
//#endregion
//#region src/react/feed-new/feed-new-row.tsx
-function QL({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
- let a = (0, b.useContext)(ZL), o = (0, b.useRef)(null), s = e?.items.length ? e.html : "";
+function ZL({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
+ let a = (0, b.useContext)(XL), o = (0, b.useRef)(null), s = e?.items.length ? e.html : "";
(0, b.useLayoutEffect)(() => {
t.removeAttribute("aria-busy"), t.hidden = !s, e && i?.(!!s);
}, [
@@ -47156,12 +47156,12 @@ function QL({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
}
//#endregion
//#region src/react/entity-hero/glyph.tsx
-var LCe = {
+var RCe = {
"text-aa": 1.435,
"mark-javdb": 326 / 111
};
-function $L({ name: e }) {
- let t = LCe[e];
+function QL({ name: e }) {
+ let t = RCe[e];
return /* @__PURE__ */ (0, x.jsx)("svg", {
viewBox: t ? `0 0 ${(24 * t).toFixed(2)} 24` : "0 0 24 24",
"aria-hidden": "true",
@@ -47171,20 +47171,20 @@ function $L({ name: e }) {
}
//#endregion
//#region src/react/entity-hero/hero-pop.tsx
-function eR(e, t) {
+function $L(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 tR = (e) => !!e?.isConnected && e.matches(":popover-open");
-function nR(e, t, n, r) {
+var eR = (e) => !!e?.isConnected && e.matches(":popover-open");
+function tR(e, t, n, r) {
let i = (0, b.useRef)(r);
i.current = r, (0, b.useEffect)(() => {
if (!e) return;
let r = () => {
- t.current && tR(n.current) ? eR(t.current, n.current) : i.current();
+ t.current && eR(n.current) ? $L(t.current, n.current) : i.current();
};
return addEventListener("scroll", r, {
capture: !0,
@@ -47198,17 +47198,17 @@ function nR(e, t, n, r) {
n
]);
}
-function rR({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
+function nR({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
let o = (0, b.useRef)(null), s = (0, b.useRef)(null), [c, l] = (0, b.useState)(!1), u = (0, b.useRef)(!1), d = (0, b.useRef)(0), f = () => {
- clearTimeout(d.current), u.current = !1, tR(s.current) && s.current.hidePopover(), l(!1);
+ clearTimeout(d.current), u.current = !1, eR(s.current) && s.current.hidePopover(), l(!1);
}, p = () => {
- clearTimeout(d.current), s.current && o.current && !tR(s.current) && (s.current.showPopover(), eR(o.current, s.current), l(!0));
+ clearTimeout(d.current), s.current && o.current && !eR(s.current) && (s.current.showPopover(), $L(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 nR(c, o, s, f), (0, b.useEffect)(() => {
+ return tR(c, o, s, f), (0, b.useEffect)(() => {
if (!c) return;
let e = (e) => {
let t = e.target;
@@ -47234,7 +47234,7 @@ function rR({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
u.current ? f() : (p(), u.current = !0);
},
onKeyDown: (e) => {
- e.key === "Escape" && tR(s.current) && (e.preventDefault(), f());
+ e.key === "Escape" && eR(s.current) && (e.preventDefault(), f());
},
children: ["+", t]
}), /* @__PURE__ */ (0, x.jsxs)("div", {
@@ -47252,16 +47252,16 @@ function rR({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
}), a]
})] });
}
-function RCe({ following: e, busy: t, onToggle: n, tip: r }) {
+function zCe({ following: e, busy: t, onToggle: n, tip: r }) {
let i = (0, b.useRef)(null), a = (0, b.useRef)(null), o = (0, b.useRef)(null), [s, c] = (0, b.useState)(!1), l = (0, b.useRef)(!1), u = () => {
- tR(o.current) && o.current.hidePopover(), c(!1);
+ eR(o.current) && o.current.hidePopover(), c(!1);
}, d = () => {
- !l.current && o.current && i.current && !tR(o.current) && (o.current.showPopover(), eR(i.current, o.current), c(!0));
+ !l.current && o.current && i.current && !eR(o.current) && (o.current.showPopover(), $L(i.current, o.current), c(!0));
}, f = () => {
l.current = !1, u();
};
- return nR(s, i, o, () => c(!1)), (0, b.useEffect)(() => {
- i.current && tR(o.current) && eR(i.current, o.current);
+ return tR(s, i, o, () => c(!1)), (0, b.useEffect)(() => {
+ i.current && eR(o.current) && $L(i.current, o.current);
}, [r]), /* @__PURE__ */ (0, x.jsxs)("label", {
ref: i,
"data-entry-feed": "",
@@ -47270,7 +47270,7 @@ function RCe({ following: e, busy: t, onToggle: n, tip: r }) {
a.current?.matches(":focus-visible") || f();
},
children: [
- /* @__PURE__ */ (0, x.jsx)($L, { name: "rss" }),
+ /* @__PURE__ */ (0, x.jsx)(QL, { name: "rss" }),
/* @__PURE__ */ (0, x.jsx)("input", {
ref: a,
type: "checkbox",
@@ -47305,29 +47305,29 @@ function RCe({ following: e, busy: t, onToggle: n, tip: r }) {
}
//#endregion
//#region src/react/entity-hero/name-picker.tsx
-function zCe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
+function BCe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let [i, a] = (0, b.useState)(!1), o = (0, b.useRef)(null);
return (0, b.useEffect)(() => {
o.current?.setAttribute("title", "名字与别名");
- }, []), /* @__PURE__ */ (0, x.jsxs)(ihe, {
+ }, []), /* @__PURE__ */ (0, x.jsxs)(ahe, {
isOpen: i,
onOpenChange: a,
children: [/* @__PURE__ */ (0, x.jsx)(Ppe, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
- children: /* @__PURE__ */ (0, x.jsx)($L, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, x.jsx)(gA, {
+ children: /* @__PURE__ */ (0, x.jsx)(QL, { name: "chevron-down" })
+ }), /* @__PURE__ */ (0, x.jsx)(hA, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
- className: UN,
+ className: HN,
"data-namepick-menu": "",
- children: /* @__PURE__ */ (0, x.jsxs)(ohe, {
+ children: /* @__PURE__ */ (0, x.jsxs)(she, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, x.jsx)(CA, {
+ /* @__PURE__ */ (0, x.jsx)(SA, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -47335,31 +47335,31 @@ function zCe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let r = [...t][0];
r && r !== e && n(r);
},
- children: t.map((e) => /* @__PURE__ */ (0, x.jsxs)(TA, {
+ children: t.map((e) => /* @__PURE__ */ (0, x.jsxs)(wA, {
id: e,
textValue: e,
"data-namepick-name": e,
- children: [/* @__PURE__ */ (0, x.jsx)($L, { name: "check" }), /* @__PURE__ */ (0, x.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, x.jsx)(QL, { name: "check" }), /* @__PURE__ */ (0, x.jsx)("span", { children: e })]
}, e))
}),
/* @__PURE__ */ (0, x.jsx)(Fme, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, x.jsx)(CA, { children: /* @__PURE__ */ (0, x.jsxs)(TA, {
+ /* @__PURE__ */ (0, x.jsx)(SA, { children: /* @__PURE__ */ (0, x.jsxs)(wA, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
onAction: r,
- children: [/* @__PURE__ */ (0, x.jsx)($L, { name: "plus" }), /* @__PURE__ */ (0, x.jsx)("span", { children: "添加别名…" })]
+ children: [/* @__PURE__ */ (0, x.jsx)(QL, { name: "plus" }), /* @__PURE__ */ (0, x.jsx)("span", { children: "添加别名…" })]
}) })
]
})
})]
});
}
-var BCe = (e) => e === "studio" || e === "agency", iR = (e) => e === "performer" || e === "creator", VCe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
-function HCe(e) {
+var VCe = (e) => e === "studio" || e === "agency", rR = (e) => e === "performer" || e === "creator", HCe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
+function UCe(e) {
return [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t);
}
-function aR(e) {
+function iR(e) {
if (e.agency) return {
name: e.agency.canonical_name,
linked: !0
@@ -47370,13 +47370,13 @@ function aR(e) {
linked: !1
} : null;
}
-function oR(e, t) {
+function aR(e, t) {
let n = zt(e, "performer"), r = It(t);
return r && [e.label, n].map(It).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";
}
-var sR = (e) => ({ site: Mt(e) });
-function UCe(e, t) {
- let n = aR(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
+var oR = (e) => ({ site: Mt(e) });
+function WCe(e, t) {
+ let n = iR(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
type: "icon",
url: e.url,
title: e.label,
@@ -47386,7 +47386,7 @@ function UCe(e, t) {
let t = e.retired_year ? `已于 ${e.retired_year} 年隐退` : "链接已失效";
return {
type: "gone",
- title: `${oR(e, n)} · ${t}`
+ title: `${aR(e, n)} · ${t}`
};
}
let r = e.url || "";
@@ -47394,11 +47394,11 @@ function UCe(e, t) {
type: "private",
label: e.label || e.hostname || "已记录"
};
- if (iR(t) && e.link_kind !== "social") return {
+ if (rR(t) && e.link_kind !== "social") return {
type: "icon",
url: r,
- title: oR(e, n),
- mark: sR(e)
+ title: aR(e, n),
+ mark: oR(e)
};
if (e.link_kind === "social") {
let t = Ft(r);
@@ -47406,7 +47406,7 @@ function UCe(e, t) {
type: "icon",
url: r,
title: e.label || "",
- mark: t ? { brand: t } : sR(e)
+ mark: t ? { brand: t } : oR(e)
};
}
return {
@@ -47414,12 +47414,12 @@ function UCe(e, t) {
url: r,
title: e.label || "",
text: zt(e, t, i),
- mark: sR(e)
+ mark: oR(e)
};
});
- return [...r, ...WCe(a)];
+ return [...r, ...GCe(a)];
}
-function WCe(e) {
+function GCe(e) {
let t = e.filter((e) => e.type === "private");
return t.length < 2 ? e : [...e.filter((e) => e.type !== "private"), {
type: "private",
@@ -47427,8 +47427,8 @@ function WCe(e) {
sources: t.map((e) => e.label)
}];
}
-var cR = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
-function GCe(e) {
+var sR = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
+function KCe(e) {
return [
[
"legal_name",
@@ -47484,7 +47484,7 @@ function GCe(e) {
}]
}] : []);
}
-function KCe(e) {
+function qCe(e) {
if (!e) return [];
let t = [];
e.birth_date && t.push({
@@ -47541,14 +47541,14 @@ function KCe(e) {
tags: e.tags
}), t;
}
-function lR(e, t = 4) {
+function cR(e, t = 4) {
let n = e.length > t + 1 ? t : e.length;
return {
shown: e.slice(0, n),
rest: e.length - n
};
}
-function qCe(e) {
+function JCe(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 ? {
@@ -47559,7 +47559,7 @@ function qCe(e) {
}
//#endregion
//#region src/react/entity-hero/entity-hero-page.tsx
-function JCe(e) {
+function YCe(e) {
return Qi({
id: e.id,
hasImage: e.has_image,
@@ -47570,8 +47570,8 @@ function JCe(e) {
standIn: e.avatar_stand_in
});
}
-function YCe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
- let s = iR(e), c = BCe(e), l = s ? KCe(n.profile) : c ? GCe(n.company_profile) : [], u = UCe(n, e), d = cR(n), f = e === "agency" ? [] : n.related_performers || [], p = (0, b.useRef)(null), m = (0, b.useRef)(null);
+function XCe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
+ let s = rR(e), c = VCe(e), l = s ? qCe(n.profile) : c ? KCe(n.company_profile) : [], u = WCe(n, e), d = sR(n), f = e === "agency" ? [] : n.related_performers || [], p = (0, b.useRef)(null), m = (0, b.useRef)(null);
return (0, b.useEffect)(() => {
o.wireScroller(p.current);
}, [o, u.length]), (0, b.useEffect)(() => {
@@ -47584,7 +47584,7 @@ function YCe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
children: [
/* @__PURE__ */ (0, x.jsxs)("div", {
"data-entity-portrait-wrap": "",
- children: [/* @__PURE__ */ (0, x.jsx)(XCe, {
+ children: [/* @__PURE__ */ (0, x.jsx)(ZCe, {
kind: e,
name: t,
helpers: o,
@@ -47592,7 +47592,7 @@ function YCe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
company: c
}), s && n.id ? /* @__PURE__ */ (0, x.jsx)("span", {
"data-avatar-picker": "",
- children: /* @__PURE__ */ (0, x.jsx)(Qxe, {
+ children: /* @__PURE__ */ (0, x.jsx)($xe, {
kind: e,
entityId: Number(n.id),
name: n.canonical_name || t,
@@ -47605,14 +47605,14 @@ function YCe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
children: [
/* @__PURE__ */ (0, x.jsxs)("div", {
"data-entity-title": "",
- children: [/* @__PURE__ */ (0, x.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, x.jsx)(zCe, {
+ children: [/* @__PURE__ */ (0, x.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, x.jsx)(BCe, {
current: n.canonical_name,
- choices: HCe(n),
+ choices: UCe(n),
onChoose: a.chooseName,
onAddAlias: a.addAlias
})]
}),
- /* @__PURE__ */ (0, x.jsx)(ZCe, {
+ /* @__PURE__ */ (0, x.jsx)(QCe, {
kind: e,
entity: n,
actions: a
@@ -47633,14 +47633,14 @@ function YCe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
u.length ? /* @__PURE__ */ (0, x.jsx)("div", {
ref: p,
"data-entity-links": "",
- children: u.map((e, t) => /* @__PURE__ */ (0, x.jsx)(rwe, { link: e }, t))
+ children: u.map((e, t) => /* @__PURE__ */ (0, x.jsx)(iwe, { link: e }, t))
}) : null,
- d.length || n.feed ? /* @__PURE__ */ (0, x.jsx)(iwe, {
+ d.length || n.feed ? /* @__PURE__ */ (0, x.jsx)(awe, {
entity: n,
actions: a,
helpers: o
}) : null,
- n.follow?.held.length ? /* @__PURE__ */ (0, x.jsx)(ewe, {
+ n.follow?.held.length ? /* @__PURE__ */ (0, x.jsx)(twe, {
follow: n.follow,
entity: n,
actions: a
@@ -47649,11 +47649,11 @@ function YCe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
}),
l.length ? /* @__PURE__ */ (0, x.jsx)("dl", {
"data-entity-facts": "",
- children: l.map((e) => /* @__PURE__ */ (0, x.jsx)(twe, {
+ children: l.map((e) => /* @__PURE__ */ (0, x.jsx)(nwe, {
glyph: e.glyph,
label: e.label,
clip: e.clip,
- children: e.tags ? /* @__PURE__ */ (0, x.jsx)(nwe, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, x.jsxs)("span", {
+ children: e.tags ? /* @__PURE__ */ (0, x.jsx)(rwe, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, x.jsxs)("span", {
"data-fact-tone": e.tone === "plain" ? void 0 : e.tone,
children: [t ? " " : "", e.text]
}, t))
@@ -47672,7 +47672,7 @@ function YCe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
onClick: () => a.openEntity("performer", e.k),
children: [/* @__PURE__ */ (0, x.jsx)("span", {
"data-hero-ring": "",
- dangerouslySetInnerHTML: { __html: `<span>${L(qt(e.k))}</span>${JCe(e)}` }
+ dangerouslySetInnerHTML: { __html: `<span>${L(qt(e.k))}</span>${YCe(e)}` }
}), /* @__PURE__ */ (0, x.jsx)("span", {
"data-hero-costar-name": "",
children: e.k
@@ -47680,14 +47680,14 @@ function YCe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
}, e.k))
})
}) : null]
- }), i ? (0, mt.createPortal)(/* @__PURE__ */ (0, x.jsx)(QL, {
+ }), i ? (0, mt.createPortal)(/* @__PURE__ */ (0, x.jsx)(ZL, {
feedNew: r,
host: i,
wire: o.wireFeedRow,
act: (e, t) => a.feedAction(e, t)
}), i) : null] });
}
-function XCe({ kind: e, name: t, helpers: n, people: r, company: i }) {
+function ZCe({ kind: e, name: t, helpers: n, people: r, company: i }) {
let [a] = (0, b.useState)(() => `${n.portraitImg()}<span>${L(qt(t))}</span>`);
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-entity-portrait": r ? "round" : "square",
@@ -47696,8 +47696,8 @@ function XCe({ kind: e, name: t, helpers: n, people: r, company: i }) {
dangerouslySetInnerHTML: { __html: a }
});
}
-function ZCe({ kind: e, entity: t, actions: n }) {
- let r = aR(t), i = (e, t) => (r) => {
+function QCe({ kind: e, entity: t, actions: n }) {
+ let r = iR(t), i = (e, t) => (r) => {
r.preventDefault(), n.openEntity(e, t);
}, a = r ? r.linked ? /* @__PURE__ */ (0, x.jsx)("a", {
href: Dt("agency", r.name),
@@ -47706,41 +47706,41 @@ function ZCe({ kind: e, entity: t, actions: n }) {
children: r.name
}) : r.name : null, o = /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)("b", { children: t.asset_count.toLocaleString() }), " 个视频"] });
if (e === "performer" || e === "creator") {
- let e = qCe(t.name_groups);
+ let e = JCe(t.name_groups);
return /* @__PURE__ */ (0, x.jsxs)("div", {
"data-entity-alias": "meta",
children: [
- /* @__PURE__ */ (0, x.jsx)(uR, { entity: t }),
+ /* @__PURE__ */ (0, x.jsx)(lR, { entity: t }),
/* @__PURE__ */ (0, x.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, x.jsx)($L, { name: "film" }), /* @__PURE__ */ (0, x.jsx)("span", { children: o })]
+ children: [/* @__PURE__ */ (0, x.jsx)(QL, { name: "film" }), /* @__PURE__ */ (0, x.jsx)("span", { children: o })]
}),
- t.follow?.key ? /* @__PURE__ */ (0, x.jsx)($Ce, {
+ t.follow?.key ? /* @__PURE__ */ (0, x.jsx)(ewe, {
follow: t.follow,
actions: n
}) : null,
a ? /* @__PURE__ */ (0, x.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, x.jsx)($L, { name: "briefcase" }), /* @__PURE__ */ (0, x.jsx)("span", { children: a })]
+ children: [/* @__PURE__ */ (0, x.jsx)(QL, { name: "briefcase" }), /* @__PURE__ */ (0, x.jsx)("span", { children: a })]
}) : null,
e ? /* @__PURE__ */ (0, x.jsxs)("div", {
"data-meta-item": "names",
children: [
- /* @__PURE__ */ (0, x.jsx)($L, { name: "id-card" }),
+ /* @__PURE__ */ (0, x.jsx)(QL, { name: "id-card" }),
/* @__PURE__ */ (0, x.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: e.names.map((e, t) => /* @__PURE__ */ (0, x.jsx)("span", { children: e }, t))
}),
- e.rest > 0 ? /* @__PURE__ */ (0, x.jsx)(rR, {
+ e.rest > 0 ? /* @__PURE__ */ (0, x.jsx)(nR, {
id: "entityAliasPop",
hook: "alias",
rest: e.rest,
label: `另外 ${e.rest.toLocaleString()} 个别名`,
heading: `${e.total.toLocaleString()} 个别名`,
- children: /* @__PURE__ */ (0, x.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, x.jsx)(dR, {
+ children: /* @__PURE__ */ (0, x.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, x.jsx)(uR, {
label: e.label,
names: e.names
}, t)) })
@@ -47762,64 +47762,64 @@ function ZCe({ kind: e, entity: t, actions: n }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
"data-entity-alias": "meta",
children: [
- e === "creator" ? /* @__PURE__ */ (0, x.jsx)(uR, { entity: t }) : null,
+ e === "creator" ? /* @__PURE__ */ (0, x.jsx)(lR, { entity: t }) : null,
/* @__PURE__ */ (0, x.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, x.jsx)($L, { name: "film" }), /* @__PURE__ */ (0, x.jsxs)("span", { children: [o, c] })]
+ children: [/* @__PURE__ */ (0, x.jsx)(QL, { name: "film" }), /* @__PURE__ */ (0, x.jsxs)("span", { children: [o, c] })]
}),
a ? /* @__PURE__ */ (0, x.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, x.jsx)($L, { name: "briefcase" }), /* @__PURE__ */ (0, x.jsx)("span", { children: a })]
+ children: [/* @__PURE__ */ (0, x.jsx)(QL, { name: "briefcase" }), /* @__PURE__ */ (0, x.jsx)("span", { children: a })]
}) : null,
l ? /* @__PURE__ */ (0, x.jsxs)("span", {
"data-meta-item": "",
title: "片商",
- children: [/* @__PURE__ */ (0, x.jsx)($L, { name: "clapperboard" }), /* @__PURE__ */ (0, x.jsx)("a", {
+ children: [/* @__PURE__ */ (0, x.jsx)(QL, { name: "clapperboard" }), /* @__PURE__ */ (0, x.jsx)("a", {
href: Dt("studio", l.name),
"data-studio-link": l.name,
onClick: i("studio", l.name),
children: l.name
})]
}) : null,
- s.length ? /* @__PURE__ */ (0, x.jsx)(QCe, {
+ s.length ? /* @__PURE__ */ (0, x.jsx)($Ce, {
aliases: s,
wide: e === "studio" || e === "agency"
}) : null
]
});
}
-function QCe({ aliases: e, wide: t }) {
- let { shown: n, rest: r } = lR(e, 3);
+function $Ce({ aliases: e, wide: t }) {
+ let { shown: n, rest: r } = cR(e, 3);
return /* @__PURE__ */ (0, x.jsxs)("div", {
"data-meta-item": "names",
"data-company-names": t ? "" : void 0,
children: [
- /* @__PURE__ */ (0, x.jsx)($L, { name: "id-card" }),
+ /* @__PURE__ */ (0, x.jsx)(QL, { name: "id-card" }),
/* @__PURE__ */ (0, x.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: n.map((e, t) => /* @__PURE__ */ (0, x.jsx)("span", { children: e }, t))
}),
- r ? /* @__PURE__ */ (0, x.jsx)(rR, {
+ r ? /* @__PURE__ */ (0, x.jsx)(nR, {
id: "entityAliasPop",
hook: "alias",
rest: r,
label: `另外 ${r.toLocaleString()} 个别名`,
heading: `${e.length.toLocaleString()} 个别名`,
- children: /* @__PURE__ */ (0, x.jsx)("dl", { children: /* @__PURE__ */ (0, x.jsx)(dR, { names: e.map((e) => ({ name: e })) }) })
+ children: /* @__PURE__ */ (0, x.jsx)("dl", { children: /* @__PURE__ */ (0, x.jsx)(uR, { names: e.map((e) => ({ name: e })) }) })
}) : null
]
});
}
-function $Ce({ follow: e, actions: t }) {
+function ewe({ follow: e, actions: t }) {
let n = e.providers.join(" · ");
return /* @__PURE__ */ (0, x.jsxs)("span", {
"data-meta-item": "",
"data-entity-follow": "",
title: n ? `关注 · ${n}` : "关注",
- children: [/* @__PURE__ */ (0, x.jsx)($L, { name: "rss" }), /* @__PURE__ */ (0, x.jsxs)("a", {
+ children: [/* @__PURE__ */ (0, x.jsx)(QL, { name: "rss" }), /* @__PURE__ */ (0, x.jsxs)("a", {
href: "?media=online",
onClick: (n) => {
n.preventDefault(), t.openFollowAuthor(e.key);
@@ -47828,7 +47828,7 @@ function $Ce({ follow: e, actions: t }) {
})]
});
}
-function ewe({ follow: e, entity: t, actions: n }) {
+function twe({ follow: e, entity: t, actions: n }) {
let [r, i] = (0, b.useState)(""), a = async (e, t) => {
if (!r) {
i(e);
@@ -47862,14 +47862,14 @@ function ewe({ follow: e, entity: t, actions: n }) {
}, e.key))
});
}
-function uR({ entity: e }) {
+function lR({ entity: e }) {
return e.identity_labels?.length ? /* @__PURE__ */ (0, x.jsxs)("span", {
"data-meta-item": "classification",
"data-identity-classification": "",
- children: [/* @__PURE__ */ (0, x.jsx)($L, { name: "user-round" }), /* @__PURE__ */ (0, x.jsx)("span", { children: e.identity_labels.join(" · ") })]
+ children: [/* @__PURE__ */ (0, x.jsx)(QL, { name: "user-round" }), /* @__PURE__ */ (0, x.jsx)("span", { children: e.identity_labels.join(" · ") })]
}) : null;
}
-function dR({ label: e, names: t }) {
+function uR({ label: e, names: t }) {
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [e ? /* @__PURE__ */ (0, x.jsx)("dt", { children: e }) : null, /* @__PURE__ */ (0, x.jsx)("dd", {
"data-wide": e ? void 0 : "",
children: t.map((e, t) => /* @__PURE__ */ (0, x.jsxs)("span", {
@@ -47878,20 +47878,20 @@ function dR({ label: e, names: t }) {
}, t))
})] });
}
-function twe({ glyph: e, label: t, clip: n, children: r }) {
- return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsxs)("dt", { children: [/* @__PURE__ */ (0, x.jsx)($L, { name: e }), t] }), /* @__PURE__ */ (0, x.jsx)("dd", {
+function nwe({ glyph: e, label: t, clip: n, children: r }) {
+ return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsxs)("dt", { children: [/* @__PURE__ */ (0, x.jsx)(QL, { name: e }), t] }), /* @__PURE__ */ (0, x.jsx)("dd", {
"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,
title: n,
children: r
})] });
}
-function nwe({ tags: e }) {
- let { shown: t, rest: n } = lR(e);
+function rwe({ tags: e }) {
+ let { shown: t, rest: n } = cR(e);
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, x.jsx)("span", {
"data-fact-tag": "",
title: e,
children: e
- }, e)), n ? /* @__PURE__ */ (0, x.jsx)(rR, {
+ }, e)), n ? /* @__PURE__ */ (0, x.jsx)(nR, {
id: "entityTagPop",
hook: "fact",
rest: n,
@@ -47907,10 +47907,10 @@ function nwe({ tags: e }) {
})
}) : null] });
}
-function fR({ mark: e }) {
+function dR({ mark: e }) {
if ("brand" in e) return /* @__PURE__ */ (0, x.jsx)("span", {
"data-link-icon": "brand",
- children: /* @__PURE__ */ (0, x.jsx)($L, { name: e.brand })
+ children: /* @__PURE__ */ (0, x.jsx)(QL, { name: e.brand })
});
let t = I("globe") + ("site" in e ? `<img src="${L(e.site)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : "");
return /* @__PURE__ */ (0, x.jsx)("span", {
@@ -47918,7 +47918,7 @@ function fR({ mark: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-function rwe({ link: e }) {
+function iwe({ link: e }) {
switch (e.type) {
case "icon": return /* @__PURE__ */ (0, x.jsx)("a", {
"data-link": "icon",
@@ -47927,19 +47927,19 @@ function rwe({ link: e }) {
rel: "noreferrer",
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, x.jsx)(fR, { mark: e.mark })
+ children: /* @__PURE__ */ (0, x.jsx)(dR, { mark: e.mark })
});
case "gone": return /* @__PURE__ */ (0, x.jsx)("span", {
"data-link": "gone",
tabIndex: 0,
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, x.jsx)(fR, { mark: { globe: !0 } })
+ children: /* @__PURE__ */ (0, x.jsx)(dR, { mark: { globe: !0 } })
});
case "private": return /* @__PURE__ */ (0, x.jsxs)("span", {
"data-link": "private",
title: e.sources ? e.sources.join("\n") : e.label,
- children: [/* @__PURE__ */ (0, x.jsx)(fR, { mark: { globe: !0 } }), /* @__PURE__ */ (0, x.jsx)("span", {
+ children: [/* @__PURE__ */ (0, x.jsx)(dR, { mark: { globe: !0 } }), /* @__PURE__ */ (0, x.jsx)("span", {
"data-link-label": "",
children: e.sources ? e.label : `来源 · ${e.label}`
})]
@@ -47950,14 +47950,14 @@ function rwe({ link: e }) {
target: "_blank",
rel: "noreferrer",
title: e.title,
- children: [/* @__PURE__ */ (0, x.jsx)(fR, { mark: e.mark }), /* @__PURE__ */ (0, x.jsx)("span", {
+ children: [/* @__PURE__ */ (0, x.jsx)(dR, { mark: e.mark }), /* @__PURE__ */ (0, x.jsx)("span", {
"data-link-label": "",
children: e.text
})]
});
}
}
-function iwe({ entity: e, actions: t, helpers: n }) {
+function awe({ entity: e, actions: t, helpers: n }) {
let [r, i] = (0, b.useState)(!!e.feed?.following), [a, o] = (0, b.useState)(!1), s = (0, b.useRef)(!1), c = async (e) => {
if (s.current) return !1;
s.current = !0, o(!0);
@@ -47975,34 +47975,34 @@ function iwe({ entity: e, actions: t, helpers: n }) {
};
return /* @__PURE__ */ (0, x.jsxs)("div", {
"data-entry-marks": "",
- children: [cR(e).map((e, t) => /* @__PURE__ */ (0, x.jsxs)("a", {
+ children: [sR(e).map((e, t) => /* @__PURE__ */ (0, x.jsxs)("a", {
"data-entry-mark": "",
href: e.url,
target: "_blank",
rel: "noreferrer",
title: e.label,
"aria-label": e.label,
- children: [e.mark ? /* @__PURE__ */ (0, x.jsx)($L, { name: e.mark }) : /* @__PURE__ */ (0, x.jsxs)("span", {
+ children: [e.mark ? /* @__PURE__ */ (0, x.jsx)(QL, { name: e.mark }) : /* @__PURE__ */ (0, x.jsxs)("span", {
"data-missav-mark": "",
children: [/* @__PURE__ */ (0, x.jsx)("span", { children: "MISS" }), /* @__PURE__ */ (0, x.jsx)("span", { children: "AV" })]
}), e.ordinal ? /* @__PURE__ */ (0, x.jsx)("span", {
"data-entry-ordinal": "",
children: e.ordinal
}) : null]
- }, t)), e.feed ? /* @__PURE__ */ (0, x.jsx)(RCe, {
+ }, t)), e.feed ? /* @__PURE__ */ (0, x.jsx)(zCe, {
following: r,
busy: a,
onToggle: (e) => {
l(e);
},
- tip: VCe(r)
+ tip: HCe(r)
}) : null]
});
}
//#endregion
//#region src/react/entity-page/use-entity-online.ts
-var awe = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
-function owe(e, t, n) {
+var owe = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
+function swe(e, t, n) {
let [r, i] = (0, b.useState)(() => ri(e));
r.author !== e && i(ri(e));
let [a, o] = (0, b.useState)({
@@ -48081,7 +48081,7 @@ function owe(e, t, n) {
onlineMedia: (e) => c(e),
onlineShuffle: () => E({
sort: Br,
- seed: awe()
+ seed: owe()
}),
onlineImagesOnly: (e) => n.setImagesOnly(e),
onlineStatus: (e) => E({ status: e }),
@@ -48099,8 +48099,8 @@ function owe(e, t, n) {
}
//#endregion
//#region src/react/entity-page/entity-page-view.tsx
-function swe(e) {
- let { kind: t, name: n } = e, r = dt(iF(t, n)), i = !!r.data?.error, a = r.data?.redirect, { actions: o } = e;
+function cwe(e) {
+ let { kind: t, name: n } = e, r = dt(rF(t, n)), i = !!r.data?.error, a = r.data?.redirect, { actions: o } = e;
return (0, b.useLayoutEffect)(() => {
i && o.missing();
}, [o, i]), (0, b.useLayoutEffect)(() => {
@@ -48115,17 +48115,17 @@ function swe(e) {
o,
a?.kind,
a?.name
- ]), r.isError ? /* @__PURE__ */ (0, x.jsx)(Yj, {
+ ]), r.isError ? /* @__PURE__ */ (0, x.jsx)(Jj, {
message: R(r.error),
onRetry: () => {
r.refetch();
}
- }) : !r.data || i || a ? null : /* @__PURE__ */ (0, x.jsx)(uwe, {
+ }) : !r.data || i || a ? null : /* @__PURE__ */ (0, x.jsx)(dwe, {
...e,
entity: r.data
});
}
-function pR(e) {
+function fR(e) {
let [t, n] = (0, b.useState)({
key: e,
n: 1
@@ -48137,22 +48137,22 @@ function pR(e) {
};
return n(r), r.n;
}
-var cwe = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
-function lwe(e, t) {
+var lwe = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
+function uwe(e, t) {
return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t.toLocaleString()} 部作品` : ""].filter(Boolean).join(" · ")}`;
}
-function uwe(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 = pt(aF(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 || oF(p).length > 0, g = t === "creator" && r.follow?.key || "", _ = !!g && !r.asset_count, v = a.media === "photos" && h ? a : (a.media === "online" || _) && g ? {
+function dwe(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 = pt(iF(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 || aF(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
- } : ZP, [y, S] = (0, b.useState)("people"), C = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [w, T] = (0, b.useState)(C);
+ } : XP, [y, S] = (0, b.useState)("people"), C = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [w, T] = (0, b.useState)(C);
w !== C && (T(C), S("videos"));
- let E = l && y === "people" && u.length ? "people" : v.media, D = owe(g, E === "online", {
+ let E = l && y === "people" && u.length ? "people" : v.media, D = swe(g, E === "online", {
photoLayout: e.photoLayout,
photoLayouts: e.photoLayouts,
imagesOnly: e.followImagesOnly,
setImagesOnly: e.follow.actions.setImagesOnly
- }), O = E === "photos" || E === "online" && D.media === "images", [k, A] = (0, b.useState)(0), j = rF(e), M = dt(j), N = pR(JSON.stringify([j.queryKey, k])), [ee] = (0, b.useState)(() => (t === "performer" || t === "studio") && (e.jav || (M.data?.items || []).some((e) => e.is_jav)));
+ }), O = E === "photos" || E === "online" && D.media === "images", [k, A] = (0, b.useState)(0), j = nF(e), M = dt(j), N = fR(JSON.stringify([j.queryKey, k])), [ee] = (0, b.useState)(() => (t === "performer" || t === "studio") && (e.jav || (M.data?.items || []).some((e) => e.is_jav)));
(0, b.useLayoutEffect)(() => {
s.javContext(ee);
}, [s, ee]);
@@ -48162,26 +48162,26 @@ function uwe(e) {
}, [e.layout, ee]), P = {
jav: e.jav,
seed: e.seed
- }, ne = (0, b.useCallback)((e, r) => nF(t, n, i, P, e, r), [N]), [re, ie] = (0, b.useState)({}), ae = v.set, oe = re[ae] || "", se = pt({
- ...aF(t, n, ae, oe),
+ }, ne = (0, b.useCallback)((e, r) => tF(t, n, i, P, e, r), [N]), [re, ie] = (0, b.useState)({}), ae = v.set, oe = re[ae] || "", se = pt({
+ ...iF(t, n, ae, oe),
enabled: E === "photos"
- }), ce = se.data?.pages[0], le = pR(JSON.stringify($P(t, n, ae, oe))), ue = (0, b.useMemo)(() => {
+ }), ce = se.data?.pages[0], le = fR(JSON.stringify(QP(t, n, ae, oe))), ue = (0, b.useMemo)(() => {
let e = se.data?.pages;
if (!e?.[0] || e[0].error) return null;
let t = e[0];
return {
revision: le,
- codeSets: t.id ? [] : oF(t),
+ codeSets: t.id ? [] : aF(t),
items: e.flatMap((e) => e.items || []),
total: t.total || 0,
hasMore: !!e[e.length - 1]?.has_more
};
}, [se.data, le]), de = se.refetch, fe = se.fetchNextPage, pe = dt({
- ...JP(d, o.feedRowHtml),
+ ...qP(d, o.feedRowHtml),
enabled: !!d
}), me = (0, b.useRef)(e.feedRevision);
(0, b.useEffect)(() => {
- me.current !== e.feedRevision && (me.current = e.feedRevision, V.invalidateQueries({ queryKey: qP(d) }));
+ me.current !== e.feedRevision && (me.current = e.feedRevision, V.invalidateQueries({ queryKey: KP(d) }));
}, [d, e.feedRevision]);
let he = !!M.data;
(0, b.useEffect)(() => {
@@ -48200,7 +48200,7 @@ function uwe(e) {
ge.current = !1;
}, []);
let _e = (0, b.useCallback)(async () => {
- await V.invalidateQueries({ queryKey: QP(t, n) }), await V.invalidateQueries({ queryKey: [
+ await V.invalidateQueries({ queryKey: ZP(t, n) }), await V.invalidateQueries({ queryKey: [
"entity-items",
t,
n
@@ -48231,7 +48231,7 @@ function uwe(e) {
enabled: e
})
}),
- onSuccess: (e, r) => V.setQueryData(QP(t, n), (e) => e && {
+ onSuccess: (e, r) => V.setQueryData(ZP(t, n), (e) => e && {
...e,
feed: {
...e.feed,
@@ -48285,10 +48285,10 @@ function uwe(e) {
let e = await vt("/api/feeds/check").catch(() => null);
if (!e || e.status !== "running") break;
}
- ge.current && await V.invalidateQueries({ queryKey: qP(d) });
+ ge.current && await V.invalidateQueries({ queryKey: KP(d) });
})();
},
- feedAction: YP,
+ feedAction: JP,
avatarPicked: () => {
s.avatarChanged(), _e().then(() => {
ge.current && A((e) => e + 1);
@@ -48336,19 +48336,19 @@ function uwe(e) {
(e !== E || v.set) && (S(e === "people" ? "people" : "videos"), s.route(i, e === "photos" || e === "online" ? {
media: e,
set: 0
- } : ZP));
+ } : XP));
},
setState: (e) => s.route({
...i,
state: e
- }, ZP),
+ }, XP),
toggleTag: s.toggleTag,
clearFilter: s.clearFilter,
clearAll: s.clearAll,
setSort: s.setSort,
reshuffle: async () => {
if (E !== "photos") {
- let r = s.reshuffleVideos(), a = rF({
+ let r = s.reshuffleVideos(), a = nF({
kind: t,
name: n,
filters: {
@@ -48362,7 +48362,7 @@ function uwe(e) {
await V.fetchQuery(a).catch(() => null);
return;
}
- let r = cwe(), a = await V.fetchInfiniteQuery(aF(t, n, ae, r)).catch(() => null);
+ let r = lwe(), a = await V.fetchInfiniteQuery(iF(t, n, ae, r)).catch(() => null);
ge.current && a?.pages[0] && !a.pages[0].error && ie((e) => ({
...e,
[ae]: r
@@ -48397,7 +48397,7 @@ function uwe(e) {
k: e.k,
label: Ks(e.k),
n: e.n,
- selected: hbe(i.tag, e.k)
+ selected: gbe(i.tag, e.k)
})), De = [
u.length,
!_,
@@ -48432,14 +48432,14 @@ function uwe(e) {
creator: "",
studio: "",
owner: ""
- }, ZP), Fe = "", Ie = !1;
+ }, XP), Fe = "", Ie = !1;
if (E === "people") Fe = `${t === "studio" ? "厂牌" : "艺人"} · ${u.length.toLocaleString()}`;
else if (E === "online") Ie = D.busy, Fe = `在线 · ${(D.total ?? r.follow?.n ?? 0).toLocaleString()} 项更新`;
else if (E === "videos") {
Ie = !M.data;
- let e = eF(i.tag).length;
+ let e = $P(i.tag).length;
Fe = `视频 · ${(M.data?.work_total ?? M.data?.total ?? 0).toLocaleString()}${e ? ` · 已选 ${e.toLocaleString()} 个标签` : ""}`;
- } else ce && !ce.error ? Fe = ke ? `${ce.title} · ${(ce.total || 0).toLocaleString()} 张` : lwe(ce, oF(ce).length) : Ie = se.isPending;
+ } else ce && !ce.error ? Fe = ke ? `${ce.title} · ${(ce.total || 0).toLocaleString()} 张` : uwe(ce, aF(ce).length) : Ie = se.isPending;
let Le = (0, b.useMemo)(() => ({
...e.card.actions,
loadMorePhotos: async () => {
@@ -48456,7 +48456,7 @@ function uwe(e) {
u
]);
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
- /* @__PURE__ */ (0, x.jsx)(YCe, {
+ /* @__PURE__ */ (0, x.jsx)(XCe, {
kind: t,
name: n,
entity: r,
@@ -48466,7 +48466,7 @@ function uwe(e) {
actions: Se,
helpers: Ce
}, k),
- (0, mt.createPortal)(/* @__PURE__ */ (0, x.jsx)(Sge, {
+ (0, mt.createPortal)(/* @__PURE__ */ (0, x.jsx)(Cge, {
kind: t,
name: n,
view: E,
@@ -48483,7 +48483,7 @@ function uwe(e) {
actions: we,
helpers: Te
}), c.filter),
- (0, mt.createPortal)(E === "online" ? /* @__PURE__ */ (0, x.jsx)(bxe, {
+ (0, mt.createPortal)(E === "online" ? /* @__PURE__ */ (0, x.jsx)(xxe, {
view: D.view,
media: D.media,
result: D.result,
@@ -48496,15 +48496,15 @@ function uwe(e) {
helpers: e.follow.helpers,
actions: e.follow.actions,
canLoadMore: e.canLoadMore
- }, D.key) : E === "videos" && M.isError ? /* @__PURE__ */ (0, x.jsx)(Yj, {
+ }, D.key) : E === "videos" && M.isError ? /* @__PURE__ */ (0, x.jsx)(Jj, {
message: R(M.error),
onRetry: () => {
M.refetch();
}
- }) : Ne ? /* @__PURE__ */ (0, x.jsx)(dwe, {
+ }) : Ne ? /* @__PURE__ */ (0, x.jsx)(fwe, {
filtered: Me,
onShowAll: Pe
- }) : /* @__PURE__ */ (0, x.jsx)(Jbe, {
+ }) : /* @__PURE__ */ (0, x.jsx)(Ybe, {
kind: t,
name: n,
view: E,
@@ -48528,9 +48528,9 @@ function uwe(e) {
}), c.body)
] });
}
-function dwe({ filtered: e, onShowAll: t }) {
+function fwe({ filtered: e, onShowAll: t }) {
return e ? /* @__PURE__ */ (0, x.jsx)(GO, {
- icon: xj("search"),
+ icon: bj("search"),
title: "没有符合条件的视频",
actions: /* @__PURE__ */ (0, x.jsx)(G, {
variant: "secondary",
@@ -48539,14 +48539,14 @@ function dwe({ filtered: e, onShowAll: t }) {
}),
children: "清除筛选后查看名下全部视频。"
}) : /* @__PURE__ */ (0, x.jsx)(GO, {
- icon: xj("film"),
+ icon: bj("film"),
title: "还没有视频",
children: "署上这个名字的视频入库后会显示在这里。"
});
}
//#endregion
//#region src/react/components/collection-summary.tsx
-function mR({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
+function pR({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
return /* @__PURE__ */ (0, x.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
@@ -48573,29 +48573,29 @@ function mR({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !
}
//#endregion
//#region src/react/duplicates/duplicates-page.tsx
-var fwe = xj("play"), pwe = xj("file-stack"), mwe = WO({
+var pwe = bj("play"), mwe = bj("file-stack"), hwe = WO({
padding: "none",
radius: "surface",
className: "mb-6 overflow-hidden dark:bg-background-primary-default"
-}), hR = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", gR = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", _R = "font-mono text-caption-1-regular leading-5 text-text-secondary", vR = () => {
+}), mR = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", hR = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", gR = "font-mono text-caption-1-regular leading-5 text-text-secondary", _R = () => {
V.invalidateQueries({
- queryKey: fM,
+ queryKey: dM,
exact: !0
}), V.invalidateQueries({
- queryKey: MN,
+ queryKey: jN,
exact: !0
});
};
-function hwe(e) {
+function gwe(e) {
return e.identical ? /* @__PURE__ */ (0, x.jsx)("span", {
- className: `${gR} text-(--keep)`,
+ className: `${hR} text-(--keep)`,
children: "sha1 一致"
}) : /* @__PURE__ */ (0, x.jsx)("span", {
- className: `${gR} text-text-secondary`,
+ className: `${hR} text-text-secondary`,
children: e.evidence === "same_code_short_copy" ? "同番号短版本" : "时长推断"
});
}
-function gwe({ file: e, prefix: t, openItem: n }) {
+function _we({ file: e, prefix: t, openItem: n }) {
let r = () => n(e.id), i = Yt[e.location] || e.location || e.drive;
return /* @__PURE__ */ (0, x.jsxs)("div", {
className: "duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4",
@@ -48605,7 +48605,7 @@ function gwe({ file: e, prefix: t, openItem: n }) {
onClick: r,
"aria-label": `预览 ${e.name}`,
className: "relative row-span-2 inline-grid aspect-16/10 w-full cursor-pointer place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default text-text-secondary",
- children: [/* @__PURE__ */ (0, x.jsx)(fwe, {
+ children: [/* @__PURE__ */ (0, x.jsx)(pwe, {
"aria-hidden": !0,
className: "size-6"
}), /* @__PURE__ */ (0, x.jsx)("img", {
@@ -48625,20 +48625,20 @@ function gwe({ file: e, prefix: t, openItem: n }) {
"data-middle-truncate": !0,
"data-middle-truncate-within": !0,
className: "min-w-0 shrink cursor-pointer truncate text-left text-body-regular hover:text-text-secondary",
- children: f_e(e.name, t)
+ children: p_e(e.name, t)
}), e.is_largest || e.is_longest ? /* @__PURE__ */ (0, x.jsxs)("span", {
className: "flex flex-none gap-1",
children: [e.is_largest ? /* @__PURE__ */ (0, x.jsx)("i", {
- className: `${hR} not-italic bg-background-primary-hover text-text-secondary`,
+ className: `${mR} not-italic bg-background-primary-hover text-text-secondary`,
children: "最大"
}) : null, e.is_longest ? /* @__PURE__ */ (0, x.jsx)("i", {
- className: `${hR} not-italic bg-(--keep)/22 text-(--keep)`,
+ className: `${mR} not-italic bg-(--keep)/22 text-(--keep)`,
children: "最长"
}) : null]
}) : null]
}),
/* @__PURE__ */ (0, x.jsxs)("span", {
- className: `${_R} flex min-w-0 items-center gap-1.5`,
+ className: `${gR} flex min-w-0 items-center gap-1.5`,
children: [/* @__PURE__ */ (0, x.jsx)(dk, { mark: Wa[e.location] || "database" }), /* @__PURE__ */ (0, x.jsx)("span", {
title: i,
className: "min-w-0 truncate",
@@ -48646,37 +48646,37 @@ function gwe({ file: e, prefix: t, openItem: n }) {
})]
}),
/* @__PURE__ */ (0, x.jsx)("span", {
- className: _R,
+ className: gR,
children: Ut(e.size || 0)
}),
/* @__PURE__ */ (0, x.jsx)("span", {
- className: _R,
+ className: gR,
children: Vt(e.duration)
}),
/* @__PURE__ */ (0, x.jsx)("span", {
- className: `${_R} col-start-2 -col-end-1 min-w-0 pt-0.5 wrap-anywhere max-duplicate-narrow:col-span-full`,
+ className: `${gR} col-start-2 -col-end-1 min-w-0 pt-0.5 wrap-anywhere max-duplicate-narrow:col-span-full`,
children: e.path ?? ""
})
]
});
}
-function _we({ openItem: e, toast: t, failure: n }) {
+function vwe({ openItem: e, toast: t, failure: n }) {
let r = dt({
- queryKey: fM,
- queryFn: ({ signal: e }) => mM(e)
+ queryKey: dM,
+ queryFn: ({ signal: e }) => pM(e)
}), i = dt({
queryKey: fn,
queryFn: ({ signal: e }) => pn(e)
}), [a, o] = (0, b.useState)(""), s = ft({
- mutationFn: (e) => _M(e, "dispose"),
+ mutationFn: (e) => gM(e, "dispose"),
onSuccess: (e, r) => {
- vR(), t(`已把 ${r.length} 项移入回收站`, { undo: async () => {
+ _R(), t(`已把 ${r.length} 项移入回收站`, { undo: async () => {
try {
- await _M(r, "restore");
+ await gM(r, "restore");
} catch (e) {
n("撤销移入回收站", e);
} finally {
- vR();
+ _R();
}
} });
},
@@ -48690,12 +48690,12 @@ function _we({ openItem: e, toast: t, failure: n }) {
children: r.error ? R(r.error) : "未取得重复文件列表,请刷新页面重试。"
})
});
- let l = c.groups ?? [], u = c_e(i.data), d = ({ groups: e, keep: t, key: n }) => {
+ let l = c.groups ?? [], u = l_e(i.data), d = ({ groups: e, keep: t, key: n }) => {
if (s.isPending) return;
- let r = g_e(e, t);
+ let r = __e(e, t);
r.length && is({
title: "移入回收站",
- body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${hM[t] ?? hM.largest}。文件共 ${Ut(__e(e, r))},记录可从回收站还原。`,
+ body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${mM[t] ?? mM.largest}。文件共 ${Ut(v_e(e, r))},记录可从回收站还原。`,
confirmLabel: "移入回收站",
onConfirm: () => (o(n), s.mutateAsync(r))
});
@@ -48703,7 +48703,7 @@ function _we({ openItem: e, toast: t, failure: n }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
className: "mx-auto w-full max-w-board pb-10.5",
children: [
- /* @__PURE__ */ (0, x.jsx)(mR, {
+ /* @__PURE__ */ (0, x.jsx)(pR, {
label: "重复内容",
figure: `${Number(c.total || 0).toLocaleString()} 组`,
detail: `${Number(c.files || 0).toLocaleString()} 个文件 · 可回收 ${Ut(c.reclaimable)}`
@@ -48729,7 +48729,7 @@ function _we({ openItem: e, toast: t, failure: n }) {
}),
children: "全部保留最长"
}),
- h_e(l, u).map((e) => /* @__PURE__ */ (0, x.jsx)(Dk, {
+ g_e(l, u).map((e) => /* @__PURE__ */ (0, x.jsx)(Dk, {
busy: a === `all:${e}`,
onPress: () => d({
groups: l,
@@ -48752,10 +48752,10 @@ function _we({ openItem: e, toast: t, failure: n }) {
})
}) : null,
l.length ? l.map((t, n) => {
- let r = [t], i = d_e(t.files.map((e) => e.name)), a = (e) => `${n}:${e}`;
+ let r = [t], i = f_e(t.files.map((e) => e.name)), a = (e) => `${n}:${e}`;
return /* @__PURE__ */ (0, x.jsxs)("section", {
"aria-label": t.code,
- className: mwe,
+ className: hwe,
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-wrap items-center gap-3 bg-background-tertiary-default p-5 max-compact:p-4 dark:bg-background-secondary-default",
children: [
@@ -48767,9 +48767,9 @@ function _we({ openItem: e, toast: t, failure: n }) {
className: "font-mono text-caption-1-regular leading-5 text-text-primary",
children: `${Number(t.count || 0).toLocaleString()} 个 · 可回收 ${Ut(t.reclaimable)}`
}),
- hwe(t),
+ gwe(t),
t.cross_drive ? /* @__PURE__ */ (0, x.jsx)("span", {
- className: `${gR} text-text-secondary`,
+ className: `${hR} text-text-secondary`,
children: `跨盘 ${t.drives.join(" ")}`
}) : null,
/* @__PURE__ */ (0, x.jsxs)("span", {
@@ -48797,7 +48797,7 @@ function _we({ openItem: e, toast: t, failure: n }) {
}),
children: "留最长"
}),
- gM(t.files, u).map((e) => /* @__PURE__ */ (0, x.jsx)(G, {
+ hM(t.files, u).map((e) => /* @__PURE__ */ (0, x.jsx)(G, {
variant: "secondary",
size: "small",
...f(a(e)),
@@ -48825,14 +48825,14 @@ function _we({ openItem: e, toast: t, failure: n }) {
]
})
]
- }), /* @__PURE__ */ (0, x.jsx)("div", { children: t.files.map((t) => /* @__PURE__ */ (0, x.jsx)(gwe, {
+ }), /* @__PURE__ */ (0, x.jsx)("div", { children: t.files.map((t) => /* @__PURE__ */ (0, x.jsx)(_we, {
file: t,
prefix: i,
openItem: e
}, t.id)) })]
}, `${t.code}-${n}`);
}) : /* @__PURE__ */ (0, x.jsx)(GO, {
- icon: pwe,
+ icon: mwe,
title: "没有找到重复文件",
children: "所有来源之间没有检测到内容相同的文件。扫描新来源后,这里会自动更新。"
}),
@@ -48845,23 +48845,23 @@ function _we({ openItem: e, toast: t, failure: n }) {
}
//#endregion
//#region src/react/diagnostics/diagnostics.ts
-var yR = ["diagnostics"], bR = (e) => z("/api/diagnostics", e);
-async function vwe(e) {
+var vR = ["diagnostics"], yR = (e) => z("/api/diagnostics", e);
+async function ywe(e) {
await V.fetchQuery({
- queryKey: yR,
- queryFn: () => bR(e),
+ queryKey: vR,
+ queryFn: () => yR(e),
staleTime: 1e4
});
}
//#endregion
//#region src/react/diagnostics/diagnostics-page.tsx
-var xR = {
+var bR = {
ok: "正常",
warning: "需检查",
failed: "需处理",
unknown: "未取得",
disabled: "未配置"
-}, ywe = [
+}, bwe = [
["媒体库与挂载", ["media_mounts", "data_root"]],
["数据库与迁移", ["database", "schema"]],
["工具", ["ffmpeg"]],
@@ -48872,8 +48872,8 @@ var xR = {
"version"
]],
["后台任务", ["tasks"]]
-], SR = (e) => new Date(e).toLocaleString();
-function bwe({ name: e, check: t, navigate: n, configure: r }) {
+], xR = (e) => new Date(e).toLocaleString();
+function xwe({ name: e, check: t, navigate: n, configure: r }) {
let i = e === "security" || e === "port" ? "网络与访问" : "媒体库与入库";
return /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-2 border-b border-separator-border py-4 pr-3 last:border-b-0",
@@ -48885,7 +48885,7 @@ function bwe({ name: e, check: t, navigate: n, configure: r }) {
children: t.label
}), /* @__PURE__ */ (0, x.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
- children: xR[t.status] ?? "未取得"
+ children: bR[t.status] ?? "未取得"
})]
}),
/* @__PURE__ */ (0, x.jsx)("p", {
@@ -48905,8 +48905,8 @@ function bwe({ name: e, check: t, navigate: n, configure: r }) {
]
});
}
-function xwe({ group: e, openItem: t, receipt: n }) {
- let r = XO(), i = dP(), a = e.items.map((e) => e.code || `作品 #${e.id}`).join("\n");
+function Swe({ group: e, openItem: t, receipt: n }) {
+ let r = XO(), i = uP(), a = e.items.map((e) => e.code || `作品 #${e.id}`).join("\n");
return /* @__PURE__ */ (0, x.jsx)(uk, {
summary: `${e.label} · ${e.count === null ? "未取得" : `${e.count.toLocaleString()} 项`}`,
children: e.count === null ? /* @__PURE__ */ (0, x.jsx)(K, {
@@ -48955,10 +48955,10 @@ function xwe({ group: e, openItem: t, receipt: n }) {
})
});
}
-function Swe(e) {
+function Cwe(e) {
let t = dt({
- queryKey: yR,
- queryFn: ({ signal: e }) => bR(e),
+ queryKey: vR,
+ queryFn: ({ signal: e }) => yR(e),
staleTime: 1e4
}), n = XO(), [r, i] = (0, b.useState)(""), a = () => void n.run("refresh", async () => {
let e = await t.refetch();
@@ -48985,15 +48985,15 @@ function Swe(e) {
title: "库健康",
children: /* @__PURE__ */ (0, x.jsxs)(nk, { children: [o.library.issue_at ? /* @__PURE__ */ (0, x.jsxs)("p", {
className: "text-body-2-regular text-text-secondary",
- children: ["处理记录 · ", SR(o.library.issue_at)]
- }) : null, Object.entries(o.library.groups).map(([t, n]) => /* @__PURE__ */ (0, x.jsx)(xwe, {
+ children: ["处理记录 · ", xR(o.library.issue_at)]
+ }) : null, Object.entries(o.library.groups).map(([t, n]) => /* @__PURE__ */ (0, x.jsx)(Swe, {
group: n,
...e
}, t))] })
}),
- ywe.map(([t, n]) => /* @__PURE__ */ (0, x.jsx)(ek, {
+ bwe.map(([t, n]) => /* @__PURE__ */ (0, x.jsx)(ek, {
title: t,
- children: n.map((t) => o.checks[t] ? /* @__PURE__ */ (0, x.jsx)(bwe, {
+ children: n.map((t) => o.checks[t] ? /* @__PURE__ */ (0, x.jsx)(xwe, {
name: t,
check: o.checks[t],
...e
@@ -49009,7 +49009,7 @@ function Swe(e) {
children: [
e.label,
" · ",
- xR[e.status] ?? "未取得"
+ bR[e.status] ?? "未取得"
]
}),
/* @__PURE__ */ (0, x.jsx)(xk, {
@@ -49018,10 +49018,10 @@ function Swe(e) {
}),
/* @__PURE__ */ (0, x.jsxs)(ck, { children: [/* @__PURE__ */ (0, x.jsx)(lk, {
term: "上次解析成功",
- children: e.last_success_at ? SR(e.last_success_at) : "未取得"
+ children: e.last_success_at ? xR(e.last_success_at) : "未取得"
}), /* @__PURE__ */ (0, x.jsx)(lk, {
term: "冷却截止",
- children: e.cooldown_until ? SR(e.cooldown_until) : "未在冷却"
+ children: e.cooldown_until ? xR(e.cooldown_until) : "未在冷却"
})] })
]
}, e.source)), /* @__PURE__ */ (0, x.jsx)("div", { children: /* @__PURE__ */ (0, x.jsx)(G, {
@@ -49049,21 +49049,21 @@ function Swe(e) {
}
//#endregion
//#region src/react/feed-new/feed-new-page.tsx
-function Cwe({ host: e, revision: t, helpers: n, actions: r }) {
- let i = dt(JP(null, n.feedRowHtml)), a = (0, b.useRef)(t);
+function wwe({ host: e, revision: t, helpers: n, actions: r }) {
+ let i = dt(qP(null, n.feedRowHtml)), a = (0, b.useRef)(t);
return (0, b.useEffect)(() => {
- a.current !== t && (a.current = t, V.invalidateQueries({ queryKey: qP(null) }));
- }, [t]), (0, mt.createPortal)(/* @__PURE__ */ (0, x.jsx)(QL, {
+ a.current !== t && (a.current = t, V.invalidateQueries({ queryKey: KP(null) }));
+ }, [t]), (0, mt.createPortal)(/* @__PURE__ */ (0, x.jsx)(ZL, {
feedNew: i.data ?? null,
host: e,
wire: n.wireFeedRow,
- act: YP,
+ act: JP,
settled: r.settled
}), e);
}
//#endregion
//#region src/react/follow-manage/source-view.tsx
-function CR({ provider: e, label: t }) {
+function SR({ provider: e, label: t }) {
let n = Pr(e), [r, i] = (0, b.useState)(!1);
return !n || r ? t ? /* @__PURE__ */ (0, x.jsx)(x.Fragment, { children: t }) : null : /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)("img", {
src: n,
@@ -49073,9 +49073,9 @@ function CR({ provider: e, label: t }) {
loading: "lazy",
onError: () => i(!0),
className: "size-3.5 shrink-0 rounded-sm object-contain"
- }), t ? /* @__PURE__ */ (0, x.jsx)(fb, { children: t }) : null] });
+ }), t ? /* @__PURE__ */ (0, x.jsx)(pb, { children: t }) : null] });
}
-function wR({ group: e, name: t }) {
+function CR({ group: e, name: t }) {
let { src: n, fallback: r } = $n(e), [i, a] = (0, b.useState)(0), o = [n, r].filter(Boolean)[i];
return o ? /* @__PURE__ */ (0, x.jsx)("img", {
src: o,
@@ -49092,7 +49092,7 @@ function wR({ group: e, name: t }) {
children: Qn(t)
});
}
-function TR({ source: e }) {
+function wR({ source: e }) {
let t = Wn(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
return /* @__PURE__ */ (0, x.jsx)(VO, {
variant: "caption",
@@ -49100,7 +49100,7 @@ function TR({ source: e }) {
children: iee(e)
});
}
-function ER({ source: e }) {
+function TR({ source: e }) {
return /* @__PURE__ */ (0, x.jsx)("a", {
href: e.url,
target: "_blank",
@@ -49110,7 +49110,7 @@ function ER({ source: e }) {
children: e.label
});
}
-function DR({ text: e, prefix: t = "", tone: n = "error" }) {
+function ER({ text: e, prefix: t = "", tone: n = "error" }) {
let r = (0, b.useRef)(null), [i, a] = (0, b.useState)(!1), [o, s] = (0, b.useState)(!1), c = Kn(e);
(0, b.useLayoutEffect)(() => {
let e = r.current;
@@ -49141,11 +49141,11 @@ function DR({ text: e, prefix: t = "", tone: n = "error" }) {
}
//#endregion
//#region src/react/follow-manage/add-source.tsx
-var OR = RO(WN, GN, "text-body-2-medium"), wwe = "粘贴来源链接,或输入创作者名、id…", Twe = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", Ewe = "识别中…", Dwe = "站内没有查到来源", kR = (e, t) => `${e}:${t.url}`;
-function Owe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
+var DR = RO(UN, WN, "text-body-2-medium"), Twe = "粘贴来源链接,或输入创作者名、id…", Ewe = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", Dwe = "识别中…", Owe = "站内没有查到来源", OR = (e, t) => `${e}:${t.url}`;
+function kwe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
return (0, b.useEffect)(() => {
t.current?.querySelector("[aria-current=\"true\"]")?.scrollIntoView({ block: "nearest" });
- }, [t, r]), /* @__PURE__ */ (0, x.jsxs)(gA, {
+ }, [t, r]), /* @__PURE__ */ (0, x.jsxs)(hA, {
ref: t,
triggerRef: e,
isOpen: !0,
@@ -49157,7 +49157,7 @@ function Owe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
placement: "bottom start",
offset: 4,
"aria-label": "来源建议",
- className: RO(UN, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
+ className: RO(HN, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
children: [i && !n.length ? /* @__PURE__ */ (0, x.jsx)("div", {
className: "px-2 py-1.5",
children: /* @__PURE__ */ (0, x.jsx)(KO, { label: "正在查找建议" })
@@ -49167,7 +49167,7 @@ function Owe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
}), /* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
"aria-current": t === r ? "true" : void 0,
- className: t === r ? RO(OR, "bg-background-secondary-default") : OR,
+ className: t === r ? RO(DR, "bg-background-secondary-default") : DR,
onMouseDown: (e) => e.preventDefault(),
onClick: () => a(e.value),
children: [
@@ -49187,7 +49187,7 @@ function Owe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
})] }, `${e.group}-${e.value}`))]
});
}
-function kwe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
+function Awe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
let i = (0, b.useRef)(null), [a, o] = (0, b.useState)(!1), s = (e.providers || []).filter((e) => e.followable), c = s.filter((e) => !t.has(e.provider_label)).length, l = c === s.length ? "全部来源" : `${c}/${s.length} 个来源`, u = (e, r) => {
let i = new Set(t);
r ? i.delete(e) : i.add(e), n(i);
@@ -49201,14 +49201,14 @@ function kwe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
"aria-label": l,
onClick: () => o(!0),
children: l
- }), /* @__PURE__ */ (0, x.jsx)(gA, {
+ }), /* @__PURE__ */ (0, x.jsx)(hA, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom end",
offset: 4,
- className: UN,
- children: /* @__PURE__ */ (0, x.jsxs)(DA, {
+ className: HN,
+ children: /* @__PURE__ */ (0, x.jsxs)(EA, {
"aria-label": "来源筛选",
className: "flex w-64 flex-col gap-1 outline-none",
children: [s.length ? /* @__PURE__ */ (0, x.jsxs)("div", {
@@ -49228,12 +49228,12 @@ function kwe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
let n = e.requirement === "required" && (!e.present || (e.missing || []).length > 0);
return /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, x.jsx)(EP, {
+ children: [/* @__PURE__ */ (0, x.jsx)(TP, {
isSelected: !t.has(e.provider_label),
onChange: (t) => u(e.provider_label, t),
children: /* @__PURE__ */ (0, x.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, x.jsx)(CR, { provider: e.provider }), e.provider_label]
+ children: [/* @__PURE__ */ (0, x.jsx)(SR, { provider: e.provider }), e.provider_label]
})
}), n ? /* @__PURE__ */ (0, x.jsx)(G, {
variant: "ghost",
@@ -49249,7 +49249,7 @@ function kwe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
})
})] });
}
-function Awe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
+function jwe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
if (e.kind === "error") return /* @__PURE__ */ (0, x.jsx)(K, {
tone: "error",
title: e.line,
@@ -49268,15 +49268,15 @@ function Awe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
children: e.line
}),
a.length ? a.map((e) => {
- let n = kR(t, e);
- return /* @__PURE__ */ (0, x.jsx)(EP, {
+ let n = OR(t, e);
+ return /* @__PURE__ */ (0, x.jsx)(TP, {
isSelected: !e.known && !r.has(n),
isDisabled: e.known,
onChange: (e) => i(n, e),
children: /* @__PURE__ */ (0, x.jsxs)("span", {
className: "flex min-w-0 flex-wrap items-center gap-1.5",
children: [
- /* @__PURE__ */ (0, x.jsx)(CR, { provider: e.provider }),
+ /* @__PURE__ */ (0, x.jsx)(SR, { provider: e.provider }),
/* @__PURE__ */ (0, x.jsx)("b", {
className: "text-body-medium",
children: e.provider_label
@@ -49292,7 +49292,7 @@ function Awe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
]
})
}, n);
- }) : /* @__PURE__ */ (0, x.jsx)(ik, { children: Dwe }),
+ }) : /* @__PURE__ */ (0, x.jsx)(ik, { children: Owe }),
(e.external_searches || []).map((e) => /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [/* @__PURE__ */ (0, x.jsx)("small", {
@@ -49307,7 +49307,7 @@ function Awe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
]
});
}
-function jwe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
+function Mwe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
let [a, o] = (0, b.useState)(""), [s, c] = (0, b.useState)(""), [l, u] = (0, b.useState)(""), [d, f] = (0, b.useState)(!1), [p, m] = (0, b.useState)(null), [h, g] = (0, b.useState)(-1), _ = (0, b.useRef)(null), v = (0, b.useRef)(null), [y, S] = (0, b.useState)(/* @__PURE__ */ new Set()), [C, w] = (0, b.useState)(/* @__PURE__ */ new Set()), [T, E] = (0, b.useState)(""), [D, O] = (0, b.useState)(0);
(0, b.useEffect)(() => {
let e = a.trim();
@@ -49327,7 +49327,7 @@ function jwe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
matched: t.matched || "",
n: t.n || 0,
group: e.label
- }))), [k.data]), { job: j, running: M, outcome: N, start: ee, dismiss: te } = SP({
+ }))), [k.data]), { job: j, running: M, outcome: N, start: ee, dismiss: te } = xP({
queryKey: Nn,
queryFn: ({ signal: e }) => cr(e),
start: (e) => see([e]),
@@ -49359,7 +49359,7 @@ function jwe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
}
}, oe = N?.results || [], se = oe.flatMap((e, t) => (e.candidates || []).filter((e) => !e.known && !y.has(e.provider_label || "")).map((e) => ({
candidate: e,
- key: kR(t, e)
+ key: OR(t, e)
})).filter((e) => !C.has(e.key))), ce = ft({
mutationFn: async (e) => {
let t = [], n = [];
@@ -49409,16 +49409,16 @@ function jwe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
let t = e.relatedTarget;
!e.currentTarget.contains(t) && !v.current?.contains(t) && f(!1);
},
- children: [/* @__PURE__ */ (0, x.jsx)(LP, {
+ children: [/* @__PURE__ */ (0, x.jsx)(IP, {
"aria-label": "来源链接、名字或 id",
- placeholder: wwe,
+ placeholder: Twe,
value: a,
leadingIcon: hO,
enterKeyHint: "search",
isDisabled: n,
onChange: o,
onKeyDown: ae
- }), re ? /* @__PURE__ */ (0, x.jsx)(Owe, {
+ }), re ? /* @__PURE__ */ (0, x.jsx)(kwe, {
field: _,
menu: v,
options: A,
@@ -49428,7 +49428,7 @@ function jwe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
onClose: ie
}) : null]
}),
- /* @__PURE__ */ (0, x.jsx)(kwe, {
+ /* @__PURE__ */ (0, x.jsx)(Awe, {
credentials: t,
hidden: y,
onHidden: S,
@@ -49446,9 +49446,9 @@ function jwe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
/* @__PURE__ */ (0, x.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
- children: [M || ee.isPending ? /* @__PURE__ */ (0, x.jsx)(hP, {
+ children: [M || ee.isPending ? /* @__PURE__ */ (0, x.jsx)(mP, {
embedded: !0,
- label: j?.message || (j?.total ? `查找中:${j.checked || 0}/${j.total}` : ue ? Twe : Ewe),
+ label: j?.message || (j?.total ? `查找中:${j.checked || 0}/${j.total}` : ue ? Ewe : Dwe),
value: j?.checked,
total: j?.total
}) : null, T ? /* @__PURE__ */ (0, x.jsx)(K, {
@@ -49461,7 +49461,7 @@ function jwe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
className: "flex flex-col gap-3",
children: [
/* @__PURE__ */ (0, x.jsx)(ok, { children: "查找结果" }),
- oe.map((e, t) => /* @__PURE__ */ (0, x.jsx)(Awe, {
+ oe.map((e, t) => /* @__PURE__ */ (0, x.jsx)(jwe, {
row: e,
at: t,
hidden: y,
@@ -49516,16 +49516,16 @@ function jwe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
}
//#endregion
//#region src/react/follow-manage/alias-manager.tsx
-var Mwe = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, AR = (e) => e.alias;
-function Nwe(e, t, n) {
+var Nwe = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, kR = (e) => e.alias;
+function Pwe(e, t, n) {
let r = n ? `name:${n}` : "", i = r && e.find((e) => e.author_key === r) || e.find((e) => e.author_name === t || e.entity_name === t);
return i ? e.filter((e) => e.author_key === i.author_key) : [];
}
-function jR({ sources: e, name: t, canonicalKey: n }) {
+function AR({ sources: e, name: t, canonicalKey: n }) {
return /* @__PURE__ */ (0, x.jsxs)("span", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, x.jsx)(wR, {
- group: Nwe(e, t, n),
+ children: [/* @__PURE__ */ (0, x.jsx)(CR, {
+ group: Pwe(e, t, n),
name: t
}), /* @__PURE__ */ (0, x.jsx)("b", {
className: "text-body-medium",
@@ -49533,7 +49533,7 @@ function jR({ sources: e, name: t, canonicalKey: n }) {
})]
});
}
-function Pwe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
+function Fwe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
let [a, o] = (0, b.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, b.useState)(""), [l, u] = (0, b.useState)(""), [d, f] = (0, b.useState)(""), p = ft({
mutationFn: async (e) => {
let t = 0;
@@ -49573,7 +49573,7 @@ function Pwe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
confirmLabel: t ? "合并全部别名" : "合并所选别名",
onConfirm: () => p.mutateAsync(e)
});
- }, _ = t.filter((e) => a.has(AR(e))), v = t.length > 0 && _.length === t.length, y = q(p.isPending);
+ }, _ = t.filter((e) => a.has(kR(e))), v = t.length > 0 && _.length === t.length, y = q(p.isPending);
return /* @__PURE__ */ (0, x.jsxs)("div", {
className: WO({
padding: "none",
@@ -49589,7 +49589,7 @@ function Pwe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
children: [/* @__PURE__ */ (0, x.jsx)(ok, { children: "手动添加别名" }), /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [
- /* @__PURE__ */ (0, x.jsx)(LP, {
+ /* @__PURE__ */ (0, x.jsx)(IP, {
"aria-label": "规范创作者名",
placeholder: "规范创作者名",
value: l,
@@ -49597,7 +49597,7 @@ function Pwe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
isDisabled: r,
className: "w-56"
}),
- /* @__PURE__ */ (0, x.jsx)(LP, {
+ /* @__PURE__ */ (0, x.jsx)(IP, {
"aria-label": "平台别名",
placeholder: "平台别名",
value: d,
@@ -49646,44 +49646,44 @@ function Pwe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
children: `全部合并(${t.length})`
})
]
- }), /* @__PURE__ */ (0, x.jsx)(OP, { children: /* @__PURE__ */ (0, x.jsxs)(DP, {
+ }), /* @__PURE__ */ (0, x.jsx)(DP, { children: /* @__PURE__ */ (0, x.jsxs)(EP, {
"aria-label": "待合并创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, x.jsxs)(ZA, { children: [
- /* @__PURE__ */ (0, x.jsx)(QA, {
+ children: [/* @__PURE__ */ (0, x.jsxs)(XA, { children: [
+ /* @__PURE__ */ (0, x.jsx)(ZA, {
id: "select",
- children: /* @__PURE__ */ (0, x.jsx)(EP, {
+ children: /* @__PURE__ */ (0, x.jsx)(TP, {
slot: null,
isSelected: v,
isIndeterminate: _.length > 0 && !v,
"aria-label": "全选待合并别名",
- onChange: (e) => o(e ? new Set(t.map(AR)) : /* @__PURE__ */ new Set())
+ onChange: (e) => o(e ? new Set(t.map(kR)) : /* @__PURE__ */ new Set())
})
}),
- /* @__PURE__ */ (0, x.jsx)(QA, {
+ /* @__PURE__ */ (0, x.jsx)(ZA, {
id: "canonical",
children: "规范创作者"
}),
- /* @__PURE__ */ (0, x.jsx)(QA, {
+ /* @__PURE__ */ (0, x.jsx)(ZA, {
id: "alias",
isRowHeader: !0,
children: "平台别名"
}),
- /* @__PURE__ */ (0, x.jsx)(QA, {
+ /* @__PURE__ */ (0, x.jsx)(ZA, {
id: "evidence",
children: "依据"
}),
- /* @__PURE__ */ (0, x.jsx)(QA, {
+ /* @__PURE__ */ (0, x.jsx)(ZA, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, x.jsx)(ej, { children: t.map((e) => {
- let t = AR(e);
- return /* @__PURE__ */ (0, x.jsxs)(rj, {
+ ] }), /* @__PURE__ */ (0, x.jsx)($A, { children: t.map((e) => {
+ let t = kR(e);
+ return /* @__PURE__ */ (0, x.jsxs)(nj, {
id: t,
"data-board-selected": a.has(t) || void 0,
children: [
- /* @__PURE__ */ (0, x.jsx)(aj, { children: /* @__PURE__ */ (0, x.jsx)(EP, {
+ /* @__PURE__ */ (0, x.jsx)(ij, { children: /* @__PURE__ */ (0, x.jsx)(TP, {
slot: null,
isSelected: a.has(t),
"aria-label": `选择别名 ${e.alias},归入 ${e.canonical}`,
@@ -49692,16 +49692,16 @@ function Pwe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
e ? n.add(t) : n.delete(t), o(n);
}
}) }),
- /* @__PURE__ */ (0, x.jsx)(aj, { children: /* @__PURE__ */ (0, x.jsx)(jR, {
+ /* @__PURE__ */ (0, x.jsx)(ij, { children: /* @__PURE__ */ (0, x.jsx)(AR, {
sources: n,
name: e.canonical
}) }),
- /* @__PURE__ */ (0, x.jsx)(aj, { children: e.alias }),
- /* @__PURE__ */ (0, x.jsx)(aj, { children: /* @__PURE__ */ (0, x.jsx)("span", {
+ /* @__PURE__ */ (0, x.jsx)(ij, { children: e.alias }),
+ /* @__PURE__ */ (0, x.jsx)(ij, { children: /* @__PURE__ */ (0, x.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: e.evidence
}) }),
- /* @__PURE__ */ (0, x.jsx)(aj, { children: /* @__PURE__ */ (0, x.jsx)(G, {
+ /* @__PURE__ */ (0, x.jsx)(ij, { children: /* @__PURE__ */ (0, x.jsx)(G, {
variant: "secondary",
size: "small",
disabled: r,
@@ -49722,23 +49722,23 @@ function Pwe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
className: "text-body-2-regular text-text-secondary",
children: `${e.length} 组`
})]
- }), e.length ? /* @__PURE__ */ (0, x.jsx)(OP, { children: /* @__PURE__ */ (0, x.jsxs)(DP, {
+ }), e.length ? /* @__PURE__ */ (0, x.jsx)(DP, { children: /* @__PURE__ */ (0, x.jsxs)(EP, {
"aria-label": "已保存创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, x.jsxs)(ZA, { children: [/* @__PURE__ */ (0, x.jsx)(QA, {
+ children: [/* @__PURE__ */ (0, x.jsxs)(XA, { children: [/* @__PURE__ */ (0, x.jsx)(ZA, {
id: "canonical",
isRowHeader: !0,
children: "规范创作者"
- }), /* @__PURE__ */ (0, x.jsx)(QA, {
+ }), /* @__PURE__ */ (0, x.jsx)(ZA, {
id: "aliases",
children: "平台别名"
- })] }), /* @__PURE__ */ (0, x.jsx)(ej, { children: e.map((e) => /* @__PURE__ */ (0, x.jsxs)(rj, {
+ })] }), /* @__PURE__ */ (0, x.jsx)($A, { children: e.map((e) => /* @__PURE__ */ (0, x.jsxs)(nj, {
id: e.canonical_key,
- children: [/* @__PURE__ */ (0, x.jsx)(aj, { children: /* @__PURE__ */ (0, x.jsx)(jR, {
+ children: [/* @__PURE__ */ (0, x.jsx)(ij, { children: /* @__PURE__ */ (0, x.jsx)(AR, {
sources: n,
name: e.canonical_name,
canonicalKey: e.canonical_key
- }) }), /* @__PURE__ */ (0, x.jsx)(aj, { children: /* @__PURE__ */ (0, x.jsx)("span", {
+ }) }), /* @__PURE__ */ (0, x.jsx)(ij, { children: /* @__PURE__ */ (0, x.jsx)("span", {
className: "flex flex-wrap items-center gap-1.5",
children: e.aliases.map((e) => /* @__PURE__ */ (0, x.jsxs)("span", {
className: "inline-flex items-center gap-1 rounded-md bg-background-secondary-default px-1.5 py-1 text-caption-1-medium text-text-secondary",
@@ -49752,7 +49752,7 @@ function Pwe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
...q(h.isPending),
onClick: () => void is({
title: "移除创作者别名",
- body: Mwe(e.name),
+ body: Nwe(e.name),
confirmLabel: "移除创作者别名",
onConfirm: () => h.mutateAsync(e.name)
})
@@ -49772,7 +49772,7 @@ function Pwe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}
//#endregion
//#region node_modules/@tanstack/table-core/build/lib/index.mjs
-function MR() {
+function jR() {
return {
accessor: (e, t) => typeof e == "function" ? {
...t,
@@ -49785,24 +49785,24 @@ function MR() {
group: (e) => e
};
}
-function NR(e, t) {
+function MR(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function PR(e, t) {
+function NR(e, t) {
return (n) => {
t.setState((t) => ({
...t,
- [e]: NR(n, t[e])
+ [e]: MR(n, t[e])
}));
};
}
-function FR(e) {
+function PR(e) {
return e instanceof Function;
}
-function Fwe(e) {
+function Iwe(e) {
return Array.isArray(e) && e.every((e) => typeof e == "number");
}
-function Iwe(e, t) {
+function Lwe(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -49812,7 +49812,7 @@ function Iwe(e, t) {
};
return r(e), n;
}
-function IR(e, t, n) {
+function FR(e, t, n) {
let r = [], i;
return (a) => {
let o;
@@ -49834,21 +49834,21 @@ function IR(e, t, n) {
return i;
};
}
-function LR(e, t, n, r) {
+function IR(e, t, n, r) {
return {
debug: () => e?.debugAll ?? e[t],
key: !1,
onChange: r
};
}
-function Lwe(e, t, n, r) {
+function Rwe(e, t, n, r) {
let i = {
id: `${t.id}_${n.id}`,
row: t,
column: n,
getValue: () => t.getValue(r),
renderValue: () => i.getValue() ?? e.options.renderFallbackValue,
- getContext: IR(() => [
+ getContext: FR(() => [
e,
n,
t,
@@ -49860,13 +49860,13 @@ function Lwe(e, t, n, r) {
cell: r,
getValue: r.getValue,
renderValue: r.renderValue
- }), LR(e.options, "debugCells", "cell.getContext"))
+ }), IR(e.options, "debugCells", "cell.getContext"))
};
return e._features.forEach((r) => {
r.createCell == null || r.createCell(i, n, t, e);
}, {}), i;
}
-function Rwe(e, t, n, r) {
+function zwe(e, t, n, r) {
let i = {
...e._getDefaultColumnDef(),
...t
@@ -49883,17 +49883,17 @@ function Rwe(e, t, n, r) {
depth: n,
columnDef: i,
columns: [],
- getFlatColumns: IR(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], LR(e.options, "debugColumns", "column.getFlatColumns")),
- getLeafColumns: IR(() => [e._getOrderColumnsFn()], (e) => {
+ getFlatColumns: FR(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], IR(e.options, "debugColumns", "column.getFlatColumns")),
+ getLeafColumns: FR(() => [e._getOrderColumnsFn()], (e) => {
var t;
return (t = c.columns) != null && t.length ? e(c.columns.flatMap((e) => e.getLeafColumns())) : [c];
- }, LR(e.options, "debugColumns", "column.getLeafColumns"))
+ }, IR(e.options, "debugColumns", "column.getLeafColumns"))
};
for (let t of e._features) t.createColumn == null || t.createColumn(c, e);
return c;
}
-var RR = "debugHeaders";
-function zR(e, t, n) {
+var LR = "debugHeaders";
+function RR(e, t, n) {
let r = {
id: n.id ?? t.id,
column: t,
@@ -49921,42 +49921,42 @@ function zR(e, t, n) {
t.createHeader == null || t.createHeader(r, e);
}), r;
}
-var zwe = { createTable: (e) => {
- e.getHeaderGroups = IR(() => [
+var Bwe = { createTable: (e) => {
+ e.getHeaderGroups = FR(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left,
e.getState().columnPinning.right
], (t, n, r, i) => {
let a = r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], o = i?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], s = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id)));
- return BR(t, [
+ return zR(t, [
...a,
...s,
...o
], e);
- }, LR(e.options, RR, "getHeaderGroups")), e.getCenterHeaderGroups = IR(() => [
+ }, IR(e.options, LR, "getHeaderGroups")), e.getCenterHeaderGroups = FR(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left,
e.getState().columnPinning.right
- ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), BR(t, n, e, "center")), LR(e.options, RR, "getCenterHeaderGroups")), e.getLeftHeaderGroups = IR(() => [
+ ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), zR(t, n, e, "center")), IR(e.options, LR, "getCenterHeaderGroups")), e.getLeftHeaderGroups = FR(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left
- ], (t, n, r) => BR(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), LR(e.options, RR, "getLeftHeaderGroups")), e.getRightHeaderGroups = IR(() => [
+ ], (t, n, r) => zR(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), IR(e.options, LR, "getLeftHeaderGroups")), e.getRightHeaderGroups = FR(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.right
- ], (t, n, r) => BR(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), LR(e.options, RR, "getRightHeaderGroups")), e.getFooterGroups = IR(() => [e.getHeaderGroups()], (e) => [...e].reverse(), LR(e.options, RR, "getFooterGroups")), e.getLeftFooterGroups = IR(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), LR(e.options, RR, "getLeftFooterGroups")), e.getCenterFooterGroups = IR(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), LR(e.options, RR, "getCenterFooterGroups")), e.getRightFooterGroups = IR(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), LR(e.options, RR, "getRightFooterGroups")), e.getFlatHeaders = IR(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), LR(e.options, RR, "getFlatHeaders")), e.getLeftFlatHeaders = IR(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), LR(e.options, RR, "getLeftFlatHeaders")), e.getCenterFlatHeaders = IR(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), LR(e.options, RR, "getCenterFlatHeaders")), e.getRightFlatHeaders = IR(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), LR(e.options, RR, "getRightFlatHeaders")), e.getCenterLeafHeaders = IR(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
+ ], (t, n, r) => zR(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), IR(e.options, LR, "getRightHeaderGroups")), e.getFooterGroups = FR(() => [e.getHeaderGroups()], (e) => [...e].reverse(), IR(e.options, LR, "getFooterGroups")), e.getLeftFooterGroups = FR(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), IR(e.options, LR, "getLeftFooterGroups")), e.getCenterFooterGroups = FR(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), IR(e.options, LR, "getCenterFooterGroups")), e.getRightFooterGroups = FR(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), IR(e.options, LR, "getRightFooterGroups")), e.getFlatHeaders = FR(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), IR(e.options, LR, "getFlatHeaders")), e.getLeftFlatHeaders = FR(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), IR(e.options, LR, "getLeftFlatHeaders")), e.getCenterFlatHeaders = FR(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), IR(e.options, LR, "getCenterFlatHeaders")), e.getRightFlatHeaders = FR(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), IR(e.options, LR, "getRightFlatHeaders")), e.getCenterLeafHeaders = FR(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), LR(e.options, RR, "getCenterLeafHeaders")), e.getLeftLeafHeaders = IR(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
+ }), IR(e.options, LR, "getCenterLeafHeaders")), e.getLeftLeafHeaders = FR(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), LR(e.options, RR, "getLeftLeafHeaders")), e.getRightLeafHeaders = IR(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
+ }), IR(e.options, LR, "getLeftLeafHeaders")), e.getRightLeafHeaders = FR(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), LR(e.options, RR, "getRightLeafHeaders")), e.getLeafHeaders = IR(() => [
+ }), IR(e.options, LR, "getRightLeafHeaders")), e.getLeafHeaders = FR(() => [
e.getLeftHeaderGroups(),
e.getCenterHeaderGroups(),
e.getRightHeaderGroups()
@@ -49964,9 +49964,9 @@ var zwe = { createTable: (e) => {
...e[0]?.headers ?? [],
...t[0]?.headers ?? [],
...n[0]?.headers ?? []
- ].map((e) => e.getLeafHeaders()).flat(), LR(e.options, RR, "getLeafHeaders"));
+ ].map((e) => e.getLeafHeaders()).flat(), IR(e.options, LR, "getLeafHeaders"));
} };
-function BR(e, t, n, r) {
+function zR(e, t, n, r) {
let i = 0, a = function(e, t) {
t === void 0 && (t = 1), i = Math.max(i, t), e.filter((e) => e.getIsVisible()).forEach((e) => {
var n;
@@ -49984,7 +49984,7 @@ function BR(e, t, n, r) {
let o = [...a].reverse()[0], s = e.column.depth === i.depth, c, l = !1;
if (s && e.column.parent ? c = e.column.parent : (c = e.column, l = !0), o && o?.column === c) o.subHeaders.push(e);
else {
- let i = zR(n, c, {
+ let i = RR(n, c, {
id: [
r,
t,
@@ -50001,7 +50001,7 @@ function BR(e, t, n, r) {
i.headers.push(e), e.headerGroup = i;
}), o.push(i), t > 0 && s(a, t - 1);
};
- s(t.map((e, t) => zR(n, e, {
+ s(t.map((e, t) => RR(n, e, {
depth: i,
index: t
})), i - 1), o.reverse();
@@ -50019,7 +50019,7 @@ function BR(e, t, n, r) {
});
return c(o[0]?.headers ?? []), o;
}
-var Bwe = (e, t, n, r, i, a, o) => {
+var Vwe = (e, t, n, r, i, a, o) => {
let s = {
id: t,
index: r,
@@ -50040,7 +50040,7 @@ var Bwe = (e, t, n, r, i, a, o) => {
},
renderValue: (t) => s.getValue(t) ?? e.options.renderFallbackValue,
subRows: a ?? [],
- getLeafRows: () => Iwe(s.subRows, (e) => e.subRows),
+ getLeafRows: () => Lwe(s.subRows, (e) => e.subRows),
getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
getParentRows: () => {
let e = [], t = s;
@@ -50051,95 +50051,95 @@ var Bwe = (e, t, n, r, i, a, o) => {
}
return e.reverse();
},
- getAllCells: IR(() => [e.getAllLeafColumns()], (t) => t.map((t) => Lwe(e, s, t, t.id)), LR(e.options, "debugRows", "getAllCells")),
- _getAllCellsByColumnId: IR(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), LR(e.options, "debugRows", "getAllCellsByColumnId"))
+ getAllCells: FR(() => [e.getAllLeafColumns()], (t) => t.map((t) => Rwe(e, s, t, t.id)), IR(e.options, "debugRows", "getAllCells")),
+ _getAllCellsByColumnId: FR(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), IR(e.options, "debugRows", "getAllCellsByColumnId"))
};
for (let t = 0; t < e._features.length; t++) {
let n = e._features[t];
n == null || n.createRow == null || n.createRow(s, e);
}
return s;
-}, Vwe = { createColumn: (e, t) => {
+}, Hwe = { createColumn: (e, t) => {
e._getFacetedRowModel = t.options.getFacetedRowModel && t.options.getFacetedRowModel(t, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : t.getPreFilteredRowModel(), e._getFacetedUniqueValues = t.options.getFacetedUniqueValues && t.options.getFacetedUniqueValues(t, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = t.options.getFacetedMinMaxValues && t.options.getFacetedMinMaxValues(t, e.id), e.getFacetedMinMaxValues = () => {
if (e._getFacetedMinMaxValues) return e._getFacetedMinMaxValues();
};
-} }, VR = (e, t, n) => {
+} }, BR = (e, t, n) => {
var r, i;
let a = n == null || (r = n.toString()) == null ? void 0 : r.toLowerCase();
return !!((i = e.getValue(t)) != null && (i = i.toString()) != null && (i = i.toLowerCase()) != null && i.includes(a));
};
-VR.autoRemove = (e) => ZR(e);
-var HR = (e, t, n) => {
+BR.autoRemove = (e) => XR(e);
+var VR = (e, t, n) => {
var r;
return !!((r = e.getValue(t)) != null && (r = r.toString()) != null && r.includes(n));
};
-HR.autoRemove = (e) => ZR(e);
-var UR = (e, t, n) => {
+VR.autoRemove = (e) => XR(e);
+var HR = (e, t, n) => {
var r;
return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();
};
-UR.autoRemove = (e) => ZR(e);
-var WR = (e, t, n) => e.getValue(t)?.includes(n);
-WR.autoRemove = (e) => ZR(e);
-var GR = (e, t, n) => !n.some((n) => {
+HR.autoRemove = (e) => XR(e);
+var UR = (e, t, n) => e.getValue(t)?.includes(n);
+UR.autoRemove = (e) => XR(e);
+var WR = (e, t, n) => !n.some((n) => {
var r;
return !((r = e.getValue(t)) != null && r.includes(n));
});
-GR.autoRemove = (e) => ZR(e) || !(e != null && e.length);
-var KR = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
-KR.autoRemove = (e) => ZR(e) || !(e != null && e.length);
-var qR = (e, t, n) => e.getValue(t) === n;
-qR.autoRemove = (e) => ZR(e);
-var JR = (e, t, n) => e.getValue(t) == n;
-JR.autoRemove = (e) => ZR(e);
-var YR = (e, t, n) => {
+WR.autoRemove = (e) => XR(e) || !(e != null && e.length);
+var GR = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
+GR.autoRemove = (e) => XR(e) || !(e != null && e.length);
+var KR = (e, t, n) => e.getValue(t) === n;
+KR.autoRemove = (e) => XR(e);
+var qR = (e, t, n) => e.getValue(t) == n;
+qR.autoRemove = (e) => XR(e);
+var JR = (e, t, n) => {
let [r, i] = n, a = e.getValue(t);
return a >= r && a <= i;
};
-YR.resolveFilterValue = (e) => {
+JR.resolveFilterValue = (e) => {
let [t, n] = e, r = typeof t == "number" ? t : parseFloat(t), i = typeof n == "number" ? n : parseFloat(n), a = t === null || Number.isNaN(r) ? -Infinity : r, o = n === null || Number.isNaN(i) ? Infinity : i;
if (a > o) {
let e = a;
a = o, o = e;
}
return [a, o];
-}, YR.autoRemove = (e) => ZR(e) || ZR(e[0]) && ZR(e[1]);
-var XR = {
- includesString: VR,
- includesStringSensitive: HR,
- equalsString: UR,
- arrIncludes: WR,
- arrIncludesAll: GR,
- arrIncludesSome: KR,
- equals: qR,
- weakEquals: JR,
- inNumberRange: YR
+}, JR.autoRemove = (e) => XR(e) || XR(e[0]) && XR(e[1]);
+var YR = {
+ includesString: BR,
+ includesStringSensitive: VR,
+ equalsString: HR,
+ arrIncludes: UR,
+ arrIncludesAll: WR,
+ arrIncludesSome: GR,
+ equals: KR,
+ weakEquals: qR,
+ inNumberRange: JR
};
-function ZR(e) {
+function XR(e) {
return e == null || e === "";
}
-var Hwe = {
+var Uwe = {
getDefaultColumnDef: () => ({ filterFn: "auto" }),
getInitialState: (e) => ({
columnFilters: [],
...e
}),
getDefaultOptions: (e) => ({
- onColumnFiltersChange: PR("columnFilters", e),
+ onColumnFiltersChange: NR("columnFilters", e),
filterFromLeafRows: !1,
maxLeafRowFilterDepth: 100
}),
createColumn: (e, t) => {
e.getAutoFilterFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- return typeof n == "string" ? XR.includesString : typeof n == "number" ? XR.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? XR.equals : Array.isArray(n) ? XR.arrIncludes : XR.weakEquals;
- }, e.getFilterFn = () => FR(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? XR[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
+ return typeof n == "string" ? YR.includesString : typeof n == "number" ? YR.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? YR.equals : Array.isArray(n) ? YR.arrIncludes : YR.weakEquals;
+ }, e.getFilterFn = () => PR(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? YR[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
var n;
return (n = t.getState().columnFilters) == null || (n = n.find((t) => t.id === e.id)) == null ? void 0 : n.value;
}, e.getFilterIndex = () => t.getState().columnFilters?.findIndex((t) => t.id === e.id) ?? -1, e.setFilterValue = (n) => {
t.setColumnFilters((t) => {
- let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = NR(n, i ? i.value : void 0);
- if (QR(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
+ let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = MR(n, i ? i.value : void 0);
+ if (ZR(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
let o = {
id: e.id,
value: a
@@ -50154,19 +50154,19 @@ var Hwe = {
createTable: (e) => {
e.setColumnFilters = (t) => {
let n = e.getAllLeafColumns();
- e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => NR(t, e)?.filter((e) => {
+ e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => MR(t, e)?.filter((e) => {
let t = n.find((t) => t.id === e.id);
- return !(t && QR(t.getFilterFn(), e.value, t));
+ return !(t && ZR(t.getFilterFn(), e.value, t));
}));
}, e.resetColumnFilters = (t) => {
e.setColumnFilters(t ? [] : e.initialState?.columnFilters ?? []);
}, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
}
};
-function QR(e, t, n) {
+function ZR(e, t, n) {
return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || t === void 0 || typeof t == "string" && !t;
}
-var $R = {
+var QR = {
sum: (e, t, n) => n.reduce((t, n) => {
let r = n.getValue(e);
return t + (typeof r == "number" ? r : 0);
@@ -50202,7 +50202,7 @@ var $R = {
median: (e, t) => {
if (!t.length) return;
let n = t.map((t) => t.getValue(e));
- if (!Fwe(n)) return;
+ if (!Iwe(n)) return;
if (n.length === 1) return n[0];
let r = Math.floor(n.length / 2), i = n.sort((e, t) => e - t);
return n.length % 2 == 0 ? (i[r - 1] + i[r]) / 2 : i[r];
@@ -50210,7 +50210,7 @@ var $R = {
unique: (e, t) => Array.from(new Set(t.map((t) => t.getValue(e))).values()),
uniqueCount: (e, t) => new Set(t.map((t) => t.getValue(e))).size,
count: (e, t) => t.length
-}, Uwe = {
+}, Wwe = {
getDefaultColumnDef: () => ({
aggregatedCell: (e) => {
var t;
@@ -50223,7 +50223,7 @@ var $R = {
...e
}),
getDefaultOptions: (e) => ({
- onGroupingChange: PR("grouping", e),
+ onGroupingChange: NR("grouping", e),
groupedColumnMode: "reorder"
}),
createColumn: (e, t) => {
@@ -50236,11 +50236,11 @@ var $R = {
};
}, e.getAutoAggregationFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- if (typeof n == "number") return $R.sum;
- if (Object.prototype.toString.call(n) === "[object Date]") return $R.extent;
+ if (typeof n == "number") return QR.sum;
+ if (Object.prototype.toString.call(n) === "[object Date]") return QR.extent;
}, e.getAggregationFn = () => {
if (!e) throw Error();
- return FR(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? $R[e.columnDef.aggregationFn];
+ return PR(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? QR[e.columnDef.aggregationFn];
};
},
createTable: (e) => {
@@ -50262,27 +50262,27 @@ var $R = {
};
}
};
-function Wwe(e, t, n) {
+function Gwe(e, t, n) {
if (!(t != null && t.length) || !n) return e;
let r = e.filter((e) => !t.includes(e.id));
return n === "remove" ? r : [...t.map((t) => e.find((e) => e.id === t)).filter(Boolean), ...r];
}
-var Gwe = {
+var Kwe = {
getInitialState: (e) => ({
columnOrder: [],
...e
}),
- getDefaultOptions: (e) => ({ onColumnOrderChange: PR("columnOrder", e) }),
+ getDefaultOptions: (e) => ({ onColumnOrderChange: NR("columnOrder", e) }),
createColumn: (e, t) => {
- e.getIndex = IR((e) => [az(t, e)], (t) => t.findIndex((t) => t.id === e.id), LR(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => az(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
- let r = az(t, n);
+ e.getIndex = FR((e) => [iz(t, e)], (t) => t.findIndex((t) => t.id === e.id), IR(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => iz(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
+ let r = iz(t, n);
return r[r.length - 1]?.id === e.id;
};
},
createTable: (e) => {
e.setColumnOrder = (t) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(t), e.resetColumnOrder = (t) => {
e.setColumnOrder(t ? [] : e.initialState.columnOrder ?? []);
- }, e._getOrderColumnsFn = IR(() => [
+ }, e._getOrderColumnsFn = FR(() => [
e.getState().columnOrder,
e.getState().grouping,
e.options.groupedColumnMode
@@ -50297,18 +50297,18 @@ var Gwe = {
}
i = [...i, ...n];
}
- return Wwe(i, t, n);
- }, LR(e.options, "debugTable", "_getOrderColumnsFn"));
+ return Gwe(i, t, n);
+ }, IR(e.options, "debugTable", "_getOrderColumnsFn"));
}
-}, ez = () => ({
+}, $R = () => ({
left: [],
right: []
-}), Kwe = {
+}), qwe = {
getInitialState: (e) => ({
- columnPinning: ez(),
+ columnPinning: $R(),
...e
}),
- getDefaultOptions: (e) => ({ onColumnPinningChange: PR("columnPinning", e) }),
+ getDefaultOptions: (e) => ({ onColumnPinningChange: NR("columnPinning", e) }),
createColumn: (e, t) => {
e.pin = (n) => {
let r = e.getLeafColumns().map((e) => e.id).filter(Boolean);
@@ -50332,75 +50332,75 @@ var Gwe = {
};
},
createRow: (e, t) => {
- e.getCenterVisibleCells = IR(() => [
+ e.getCenterVisibleCells = FR(() => [
e._getAllVisibleCells(),
t.getState().columnPinning.left,
t.getState().columnPinning.right
], (e, t, n) => {
let r = [...t ?? [], ...n ?? []];
return e.filter((e) => !r.includes(e.column.id));
- }, LR(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = IR(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
+ }, IR(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = FR(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
...e,
position: "left"
- })), LR(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = IR(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
+ })), IR(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = FR(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
...e,
position: "right"
- })), LR(t.options, "debugRows", "getRightVisibleCells"));
+ })), IR(t.options, "debugRows", "getRightVisibleCells"));
},
createTable: (e) => {
- e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? ez() : e.initialState?.columnPinning ?? ez()), e.getIsSomeColumnsPinned = (t) => {
+ e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? $R() : e.initialState?.columnPinning ?? $R()), e.getIsSomeColumnsPinned = (t) => {
let n = e.getState().columnPinning;
return t ? !!n[t]?.length : !!(n.left?.length || n.right?.length);
- }, e.getLeftLeafColumns = IR(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), LR(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = IR(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), LR(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = IR(() => [
+ }, e.getLeftLeafColumns = FR(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), IR(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = FR(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), IR(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = FR(() => [
e.getAllLeafColumns(),
e.getState().columnPinning.left,
e.getState().columnPinning.right
], (e, t, n) => {
let r = [...t ?? [], ...n ?? []];
return e.filter((e) => !r.includes(e.id));
- }, LR(e.options, "debugColumns", "getCenterLeafColumns"));
+ }, IR(e.options, "debugColumns", "getCenterLeafColumns"));
}
};
-function qwe(e) {
+function Jwe(e) {
return e || (typeof document < "u" ? document : null);
}
-var tz = {
+var ez = {
size: 150,
minSize: 20,
maxSize: 2 ** 53 - 1
-}, nz = () => ({
+}, tz = () => ({
startOffset: null,
startSize: null,
deltaOffset: null,
deltaPercentage: null,
isResizingColumn: !1,
columnSizingStart: []
-}), Jwe = {
- getDefaultColumnDef: () => tz,
+}), Ywe = {
+ getDefaultColumnDef: () => ez,
getInitialState: (e) => ({
columnSizing: {},
- columnSizingInfo: nz(),
+ columnSizingInfo: tz(),
...e
}),
getDefaultOptions: (e) => ({
columnResizeMode: "onEnd",
columnResizeDirection: "ltr",
- onColumnSizingChange: PR("columnSizing", e),
- onColumnSizingInfoChange: PR("columnSizingInfo", e)
+ onColumnSizingChange: NR("columnSizing", e),
+ onColumnSizingInfoChange: NR("columnSizingInfo", e)
}),
createColumn: (e, t) => {
e.getSize = () => {
let n = t.getState().columnSizing[e.id];
- return Math.min(Math.max(e.columnDef.minSize ?? tz.minSize, n ?? e.columnDef.size ?? tz.size), e.columnDef.maxSize ?? tz.maxSize);
- }, e.getStart = IR((e) => [
+ return Math.min(Math.max(e.columnDef.minSize ?? ez.minSize, n ?? e.columnDef.size ?? ez.size), e.columnDef.maxSize ?? ez.maxSize);
+ }, e.getStart = FR((e) => [
e,
- az(t, e),
+ iz(t, e),
t.getState().columnSizing
- ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), LR(t.options, "debugColumns", "getStart")), e.getAfter = IR((e) => [
+ ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), IR(t.options, "debugColumns", "getStart")), e.getAfter = FR((e) => [
e,
- az(t, e),
+ iz(t, e),
t.getState().columnSizing
- ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), LR(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
+ ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), IR(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
t.setColumnSizing((t) => {
let { [e.id]: n, ...r } = t;
return r;
@@ -50422,8 +50422,8 @@ var tz = {
}, e.getResizeHandler = (n) => {
let r = t.getColumn(e.column.id), i = r?.getCanResize();
return (a) => {
- if (!r || !i || (a.persist == null || a.persist(), iz(a) && a.touches && a.touches.length > 1)) return;
- let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = iz(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
+ if (!r || !i || (a.persist == null || a.persist(), rz(a) && a.touches && a.touches.length > 1)) return;
+ let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = rz(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
typeof n == "number" && (t.setColumnSizingInfo((e) => {
let r = t.options.columnResizeDirection === "rtl" ? -1 : 1, i = (n - (e?.startOffset ?? 0)) * r, a = Math.max(i / (e?.startSize ?? 0), -.999999);
return e.columnSizingStart.forEach((e) => {
@@ -50448,7 +50448,7 @@ var tz = {
deltaPercentage: null,
columnSizingStart: []
}));
- }, p = qwe(n), m = {
+ }, p = Jwe(n), m = {
moveHandler: (e) => d(e.clientX),
upHandler: (e) => {
p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);
@@ -50458,8 +50458,8 @@ var tz = {
upHandler: (e) => {
p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);
}
- }, g = Ywe() ? { passive: !1 } : !1;
- iz(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
+ }, g = Xwe() ? { passive: !1 } : !1;
+ rz(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
...e,
startOffset: c,
startSize: o,
@@ -50475,12 +50475,12 @@ var tz = {
e.setColumnSizing = (t) => e.options.onColumnSizingChange == null ? void 0 : e.options.onColumnSizingChange(t), e.setColumnSizingInfo = (t) => e.options.onColumnSizingInfoChange == null ? void 0 : e.options.onColumnSizingInfoChange(t), e.resetColumnSizing = (t) => {
e.setColumnSizing(t ? {} : e.initialState.columnSizing ?? {});
}, e.resetHeaderSizeInfo = (t) => {
- e.setColumnSizingInfo(t ? nz() : e.initialState.columnSizingInfo ?? nz());
+ e.setColumnSizingInfo(t ? tz() : e.initialState.columnSizingInfo ?? tz());
}, e.getTotalSize = () => e.getHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getLeftTotalSize = () => e.getLeftHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getCenterTotalSize = () => e.getCenterHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getRightTotalSize = () => e.getRightHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0;
}
-}, rz = null;
-function Ywe() {
- if (typeof rz == "boolean") return rz;
+}, nz = null;
+function Xwe() {
+ if (typeof nz == "boolean") return nz;
let e = !1;
try {
let t = { get passive() {
@@ -50490,17 +50490,17 @@ function Ywe() {
} catch {
e = !1;
}
- return rz = e, rz;
+ return nz = e, nz;
}
-function iz(e) {
+function rz(e) {
return e.type === "touchstart";
}
-var Xwe = {
+var Zwe = {
getInitialState: (e) => ({
columnVisibility: {},
...e
}),
- getDefaultOptions: (e) => ({ onColumnVisibilityChange: PR("columnVisibility", e) }),
+ getDefaultOptions: (e) => ({ onColumnVisibilityChange: NR("columnVisibility", e) }),
createColumn: (e, t) => {
e.toggleVisibility = (n) => {
e.getCanHide() && t.setColumnVisibility((t) => ({
@@ -50515,7 +50515,7 @@ var Xwe = {
};
},
createRow: (e, t) => {
- e._getAllVisibleCells = IR(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), LR(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = IR(() => [
+ e._getAllVisibleCells = FR(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), IR(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = FR(() => [
e.getLeftVisibleCells(),
e.getCenterVisibleCells(),
e.getRightVisibleCells()
@@ -50523,10 +50523,10 @@ var Xwe = {
...e,
...t,
...n
- ], LR(t.options, "debugRows", "getVisibleCells"));
+ ], IR(t.options, "debugRows", "getVisibleCells"));
},
createTable: (e) => {
- let t = (t, n) => IR(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), LR(e.options, "debugColumns", t));
+ let t = (t, n) => FR(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), IR(e.options, "debugColumns", t));
e.getVisibleFlatColumns = t("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = t("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = t("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = t("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = t("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {
e.setColumnVisibility(t ? {} : e.initialState.columnVisibility ?? {});
}, e.toggleAllColumnsVisible = (t) => {
@@ -50539,20 +50539,20 @@ var Xwe = {
};
}
};
-function az(e, t) {
+function iz(e, t) {
return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
}
-var Zwe = { createTable: (e) => {
+var Qwe = { createTable: (e) => {
e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
if (e._getGlobalFacetedMinMaxValues) return e._getGlobalFacetedMinMaxValues();
};
-} }, Qwe = {
+} }, $we = {
getInitialState: (e) => ({
globalFilter: void 0,
...e
}),
getDefaultOptions: (e) => ({
- onGlobalFilterChange: PR("globalFilter", e),
+ onGlobalFilterChange: NR("globalFilter", e),
globalFilterFn: "auto",
getColumnCanGlobalFilter: (t) => {
var n;
@@ -50564,22 +50564,22 @@ var Zwe = { createTable: (e) => {
e.getCanGlobalFilter = () => (e.columnDef.enableGlobalFilter ?? !0) && (t.options.enableGlobalFilter ?? !0) && (t.options.enableFilters ?? !0) && ((t.options.getColumnCanGlobalFilter == null ? void 0 : t.options.getColumnCanGlobalFilter(e)) ?? !0) && !!e.accessorFn;
},
createTable: (e) => {
- e.getGlobalAutoFilterFn = () => XR.includesString, e.getGlobalFilterFn = () => {
+ e.getGlobalAutoFilterFn = () => YR.includesString, e.getGlobalFilterFn = () => {
let { globalFilterFn: t } = e.options;
- return FR(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? XR[t];
+ return PR(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? YR[t];
}, e.setGlobalFilter = (t) => {
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);
}, e.resetGlobalFilter = (t) => {
e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);
};
}
-}, $we = {
+}, eTe = {
getInitialState: (e) => ({
expanded: {},
...e
}),
getDefaultOptions: (e) => ({
- onExpandedChange: PR("expanded", e),
+ onExpandedChange: NR("expanded", e),
paginateExpandedRows: !0
}),
createTable: (e) => {
@@ -50647,18 +50647,18 @@ var Zwe = { createTable: (e) => {
};
};
}
-}, oz = 0, sz = 10, cz = () => ({
- pageIndex: oz,
- pageSize: sz
-}), eTe = {
+}, az = 0, oz = 10, sz = () => ({
+ pageIndex: az,
+ pageSize: oz
+}), tTe = {
getInitialState: (e) => ({
...e,
pagination: {
- ...cz(),
+ ...sz(),
...e?.pagination
}
}),
- getDefaultOptions: (e) => ({ onPaginationChange: PR("pagination", e) }),
+ getDefaultOptions: (e) => ({ onPaginationChange: NR("pagination", e) }),
createTable: (e) => {
let t = !1, n = !1;
e._autoResetPageIndex = () => {
@@ -50671,11 +50671,11 @@ var Zwe = { createTable: (e) => {
e.resetPageIndex(), n = !1;
});
}
- }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => NR(t, e)), e.resetPagination = (t) => {
- e.setPagination(t ? cz() : e.initialState.pagination ?? cz());
+ }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => MR(t, e)), e.resetPagination = (t) => {
+ e.setPagination(t ? sz() : e.initialState.pagination ?? sz());
}, e.setPageIndex = (t) => {
e.setPagination((n) => {
- let r = NR(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
+ let r = MR(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
@@ -50683,13 +50683,13 @@ var Zwe = { createTable: (e) => {
});
}, e.resetPageIndex = (t) => {
var n;
- e.setPageIndex(t ? oz : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? oz);
+ e.setPageIndex(t ? az : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? az);
}, e.resetPageSize = (t) => {
var n;
- e.setPageSize(t ? sz : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? sz);
+ e.setPageSize(t ? oz : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? oz);
}, e.setPageSize = (t) => {
e.setPagination((e) => {
- let n = Math.max(1, NR(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
+ let n = Math.max(1, MR(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
return {
...e,
pageIndex: i,
@@ -50697,28 +50697,28 @@ var Zwe = { createTable: (e) => {
};
});
}, e.setPageCount = (t) => e.setPagination((n) => {
- let r = NR(t, e.options.pageCount ?? -1);
+ let r = MR(t, e.options.pageCount ?? -1);
return typeof r == "number" && (r = Math.max(-1, r)), {
...n,
pageCount: r
};
- }), e.getPageOptions = IR(() => [e.getPageCount()], (e) => {
+ }), e.getPageOptions = FR(() => [e.getPageCount()], (e) => {
let t = [];
return e && e > 0 && (t = [...Array(e)].fill(null).map((e, t) => t)), t;
- }, LR(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
+ }, IR(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
let { pageIndex: t } = e.getState().pagination, n = e.getPageCount();
return n === -1 || n !== 0 && t < n - 1;
}, e.previousPage = () => e.setPageIndex((e) => e - 1), e.nextPage = () => e.setPageIndex((e) => e + 1), e.firstPage = () => e.setPageIndex(0), e.lastPage = () => e.setPageIndex(e.getPageCount() - 1), e.getPrePaginationRowModel = () => e.getExpandedRowModel(), e.getPaginationRowModel = () => (!e._getPaginationRowModel && e.options.getPaginationRowModel && (e._getPaginationRowModel = e.options.getPaginationRowModel(e)), e.options.manualPagination || !e._getPaginationRowModel ? e.getPrePaginationRowModel() : e._getPaginationRowModel()), e.getPageCount = () => e.options.pageCount ?? Math.ceil(e.getRowCount() / e.getState().pagination.pageSize), e.getRowCount = () => e.options.rowCount ?? e.getPrePaginationRowModel().rows.length;
}
-}, lz = () => ({
+}, cz = () => ({
top: [],
bottom: []
-}), tTe = {
+}), nTe = {
getInitialState: (e) => ({
- rowPinning: lz(),
+ rowPinning: cz(),
...e
}),
- getDefaultOptions: (e) => ({ onRowPinningChange: PR("rowPinning", e) }),
+ getDefaultOptions: (e) => ({ onRowPinningChange: NR("rowPinning", e) }),
createRow: (e, t) => {
e.pin = (n, r, i) => {
let a = r ? e.getLeafRows().map((e) => {
@@ -50757,7 +50757,7 @@ var Zwe = { createTable: (e) => {
};
},
createTable: (e) => {
- e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? lz() : e.initialState?.rowPinning ?? lz()), e.getIsSomeRowsPinned = (t) => {
+ e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? cz() : e.initialState?.rowPinning ?? cz()), e.getIsSomeRowsPinned = (t) => {
let n = e.getState().rowPinning;
return t ? !!n[t]?.length : !!(n.top?.length || n.bottom?.length);
}, e._getPinnedRows = (t, n, r) => (e.options.keepPinnedRows ?? !0 ? (n ?? []).map((t) => {
@@ -50766,22 +50766,22 @@ var Zwe = { createTable: (e) => {
}) : (n ?? []).map((e) => t.find((t) => t.id === e))).filter(Boolean).map((e) => ({
...e,
position: r
- })), e.getTopRows = IR(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), LR(e.options, "debugRows", "getTopRows")), e.getBottomRows = IR(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), LR(e.options, "debugRows", "getBottomRows")), e.getCenterRows = IR(() => [
+ })), e.getTopRows = FR(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), IR(e.options, "debugRows", "getTopRows")), e.getBottomRows = FR(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), IR(e.options, "debugRows", "getBottomRows")), e.getCenterRows = FR(() => [
e.getRowModel().rows,
e.getState().rowPinning.top,
e.getState().rowPinning.bottom
], (e, t, n) => {
let r = /* @__PURE__ */ new Set([...t ?? [], ...n ?? []]);
return e.filter((e) => !r.has(e.id));
- }, LR(e.options, "debugRows", "getCenterRows"));
+ }, IR(e.options, "debugRows", "getCenterRows"));
}
-}, nTe = {
+}, rTe = {
getInitialState: (e) => ({
rowSelection: {},
...e
}),
getDefaultOptions: (e) => ({
- onRowSelectionChange: PR("rowSelection", e),
+ onRowSelectionChange: NR("rowSelection", e),
enableRowSelection: !0,
enableMultiRowSelection: !0,
enableSubRowSelection: !0
@@ -50800,21 +50800,21 @@ var Zwe = { createTable: (e) => {
}, e.toggleAllPageRowsSelected = (t) => e.setRowSelection((n) => {
let r = t === void 0 ? !e.getIsAllPageRowsSelected() : t, i = { ...n };
return e.getRowModel().rows.forEach((t) => {
- uz(i, t.id, r, !0, e);
+ lz(i, t.id, r, !0, e);
}), i;
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = IR(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? dz(e, n) : {
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = FR(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? uz(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, LR(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = IR(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? dz(e, n) : {
+ }, IR(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = FR(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? uz(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, LR(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = IR(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? dz(e, n) : {
+ }, IR(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = FR(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? uz(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, LR(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
+ }, IR(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
let t = e.getFilteredRowModel().flatRows, { rowSelection: n } = e.getState(), r = !!(t.length && Object.keys(n).length);
return r && t.some((e) => e.getCanSelect() && !n[e.id]) && (r = !1), r;
}, e.getIsAllPageRowsSelected = () => {
@@ -50838,17 +50838,17 @@ var Zwe = { createTable: (e) => {
t.setRowSelection((a) => {
if (n = n === void 0 ? !i : n, e.getCanSelect() && i === n) return a;
let o = { ...a };
- return uz(o, e.id, n, r?.selectChildren ?? !0, t), o;
+ return lz(o, e.id, n, r?.selectChildren ?? !0, t), o;
});
}, e.getIsSelected = () => {
let { rowSelection: n } = t.getState();
- return fz(e, n);
+ return dz(e, n);
}, e.getIsSomeSelected = () => {
let { rowSelection: n } = t.getState();
- return pz(e, n) === "some";
+ return fz(e, n) === "some";
}, e.getIsAllSubRowsSelected = () => {
let { rowSelection: n } = t.getState();
- return pz(e, n) === "all";
+ return fz(e, n) === "all";
}, e.getCanSelect = () => typeof t.options.enableRowSelection == "function" ? t.options.enableRowSelection(e) : t.options.enableRowSelection ?? !0, e.getCanSelectSubRows = () => typeof t.options.enableSubRowSelection == "function" ? t.options.enableSubRowSelection(e) : t.options.enableSubRowSelection ?? !0, e.getCanMultiSelect = () => typeof t.options.enableMultiRowSelection == "function" ? t.options.enableMultiRowSelection(e) : t.options.enableMultiRowSelection ?? !0, e.getToggleSelectedHandler = () => {
let t = e.getCanSelect();
return (n) => {
@@ -50856,16 +50856,16 @@ var Zwe = { createTable: (e) => {
};
};
}
-}, uz = (e, t, n, r, i) => {
+}, lz = (e, t, n, r, i) => {
var a;
let o = i.getRow(t, !0);
- n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => uz(e, t.id, n, r, i));
+ n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => lz(e, t.id, n, r, i));
};
-function dz(e, t) {
+function uz(e, t) {
let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {
return e.map((e) => {
var t;
- let o = fz(e, n);
+ let o = dz(e, n);
if (o && (r.push(e), i[e.id] = e), (t = e.subRows) != null && t.length && (e = {
...e,
subRows: a(e.subRows)
@@ -50878,32 +50878,32 @@ function dz(e, t) {
rowsById: i
};
}
-function fz(e, t) {
+function dz(e, t) {
return t[e.id] ?? !1;
}
-function pz(e, t, n) {
+function fz(e, t, n) {
var r;
if (!((r = e.subRows) != null && r.length)) return !1;
let i = !0, a = !1;
return e.subRows.forEach((e) => {
- if ((!a || i) && (e.getCanSelect() && (fz(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
- let n = pz(e, t);
+ if ((!a || i) && (e.getCanSelect() && (dz(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
+ let n = fz(e, t);
n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);
}
}), i ? "all" : a ? "some" : !1;
}
-var mz = /([0-9]+)/gm, rTe = (e, t, n) => _z(gz(e.getValue(n)).toLowerCase(), gz(t.getValue(n)).toLowerCase()), iTe = (e, t, n) => _z(gz(e.getValue(n)), gz(t.getValue(n))), aTe = (e, t, n) => hz(gz(e.getValue(n)).toLowerCase(), gz(t.getValue(n)).toLowerCase()), oTe = (e, t, n) => hz(gz(e.getValue(n)), gz(t.getValue(n))), sTe = (e, t, n) => {
+var pz = /([0-9]+)/gm, iTe = (e, t, n) => gz(hz(e.getValue(n)).toLowerCase(), hz(t.getValue(n)).toLowerCase()), aTe = (e, t, n) => gz(hz(e.getValue(n)), hz(t.getValue(n))), oTe = (e, t, n) => mz(hz(e.getValue(n)).toLowerCase(), hz(t.getValue(n)).toLowerCase()), sTe = (e, t, n) => mz(hz(e.getValue(n)), hz(t.getValue(n))), cTe = (e, t, n) => {
let r = e.getValue(n), i = t.getValue(n);
return r > i ? 1 : r < i ? -1 : 0;
-}, cTe = (e, t, n) => hz(e.getValue(n), t.getValue(n));
-function hz(e, t) {
+}, lTe = (e, t, n) => mz(e.getValue(n), t.getValue(n));
+function mz(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
-function gz(e) {
+function hz(e) {
return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";
}
-function _z(e, t) {
- let n = e.split(mz).filter(Boolean), r = t.split(mz).filter(Boolean);
+function gz(e, t) {
+ let n = e.split(pz).filter(Boolean), r = t.split(pz).filter(Boolean);
for (; n.length && r.length;) {
let e = n.shift(), t = r.shift(), i = parseInt(e, 10), a = parseInt(t, 10), o = [i, a].sort();
if (isNaN(o[0])) {
@@ -50917,22 +50917,22 @@ function _z(e, t) {
}
return n.length - r.length;
}
-var vz = {
- alphanumeric: rTe,
- alphanumericCaseSensitive: iTe,
- text: aTe,
- textCaseSensitive: oTe,
- datetime: sTe,
- basic: cTe
-}, lTe = [
- zwe,
- Xwe,
- Gwe,
+var _z = {
+ alphanumeric: iTe,
+ alphanumericCaseSensitive: aTe,
+ text: oTe,
+ textCaseSensitive: sTe,
+ datetime: cTe,
+ basic: lTe
+}, uTe = [
+ Bwe,
+ Zwe,
Kwe,
- Vwe,
+ qwe,
Hwe,
- Zwe,
+ Uwe,
Qwe,
+ $we,
{
getInitialState: (e) => ({
sorting: [],
@@ -50943,7 +50943,7 @@ var vz = {
sortUndefined: 1
}),
getDefaultOptions: (e) => ({
- onSortingChange: PR("sorting", e),
+ onSortingChange: NR("sorting", e),
isMultiSortEvent: (e) => e.shiftKey
}),
createColumn: (e, t) => {
@@ -50951,13 +50951,13 @@ var vz = {
let n = t.getFilteredRowModel().flatRows.slice(10), r = !1;
for (let t of n) {
let n = t?.getValue(e.id);
- if (Object.prototype.toString.call(n) === "[object Date]") return vz.datetime;
- if (typeof n == "string" && (r = !0, n.split(mz).length > 1)) return vz.alphanumeric;
+ if (Object.prototype.toString.call(n) === "[object Date]") return _z.datetime;
+ if (typeof n == "string" && (r = !0, n.split(pz).length > 1)) return _z.alphanumeric;
}
- return r ? vz.text : vz.basic;
+ return r ? _z.text : _z.basic;
}, e.getAutoSortDir = () => typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id) == "string" ? "asc" : "desc", e.getSortingFn = () => {
if (!e) throw Error();
- return FR(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? vz[e.columnDef.sortingFn];
+ return PR(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? _z[e.columnDef.sortingFn];
}, e.toggleSorting = (n, r) => {
let i = e.getNextSortingOrder(), a = n != null;
t.setSorting((o) => {
@@ -50994,15 +50994,15 @@ var vz = {
}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
}
},
- Uwe,
- $we,
+ Wwe,
eTe,
tTe,
nTe,
- Jwe
+ rTe,
+ Ywe
];
-function uTe(e) {
- let t = [...lTe, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
+function dTe(e) {
+ let t = [...uTe, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
...r,
...e
}, a = { ...e.initialState ?? {} };
@@ -51028,7 +51028,7 @@ function uTe(e) {
n.setState(n.initialState);
},
setOptions: (e) => {
- let t = NR(e, n.options);
+ let t = MR(e, n.options);
n.options = i(t);
},
getState: () => n.options.state,
@@ -51043,7 +51043,7 @@ function uTe(e) {
if (!r && (r = n.getCoreRowModel().rowsById[e], !r)) throw Error();
return r;
},
- _getDefaultColumnDef: IR(() => [n.options.defaultColumn], (e) => (e ??= {}, {
+ _getDefaultColumnDef: FR(() => [n.options.defaultColumn], (e) => (e ??= {}, {
header: (e) => {
let t = e.header.column.columnDef;
return t.accessorKey ? t.accessorKey : t.accessorFn ? t.id : null;
@@ -51054,20 +51054,20 @@ function uTe(e) {
},
...n._features.reduce((e, t) => Object.assign(e, t.getDefaultColumnDef == null ? void 0 : t.getDefaultColumnDef()), {}),
...e
- }), LR(e, "debugColumns", "_getDefaultColumnDef")),
+ }), IR(e, "debugColumns", "_getDefaultColumnDef")),
_getColumnDefs: () => n.options.columns,
- getAllColumns: IR(() => [n._getColumnDefs()], (e) => {
+ getAllColumns: FR(() => [n._getColumnDefs()], (e) => {
let t = function(e, r, i) {
return i === void 0 && (i = 0), e.map((e) => {
- let a = Rwe(n, e, i, r), o = e;
+ let a = zwe(n, e, i, r), o = e;
return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;
});
};
return t(e);
- }, LR(e, "debugColumns", "getAllColumns")),
- getAllFlatColumns: IR(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), LR(e, "debugColumns", "getAllFlatColumns")),
- _getAllFlatColumnsById: IR(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), LR(e, "debugColumns", "getAllFlatColumnsById")),
- getAllLeafColumns: IR(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), LR(e, "debugColumns", "getAllLeafColumns")),
+ }, IR(e, "debugColumns", "getAllColumns")),
+ getAllFlatColumns: FR(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), IR(e, "debugColumns", "getAllFlatColumns")),
+ _getAllFlatColumnsById: FR(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), IR(e, "debugColumns", "getAllFlatColumnsById")),
+ getAllLeafColumns: FR(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), IR(e, "debugColumns", "getAllLeafColumns")),
getColumn: (e) => n._getAllFlatColumnsById()[e]
};
Object.assign(n, c);
@@ -51077,8 +51077,8 @@ function uTe(e) {
}
return n;
}
-function yz() {
- return (e) => IR(() => [e.options.data], (t) => {
+function vz() {
+ return (e) => FR(() => [e.options.data], (t) => {
let n = {
rows: [],
flatRows: [],
@@ -51087,7 +51087,7 @@ function yz() {
i === void 0 && (i = 0);
let o = [];
for (let c = 0; c < t.length; c++) {
- let l = Bwe(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
+ let l = Vwe(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
if (n.flatRows.push(l), n.rowsById[l.id] = l, o.push(l), e.options.getSubRows) {
var s;
l.originalSubRows = e.options.getSubRows(t[c], c), (s = l.originalSubRows) != null && s.length && (l.subRows = r(l.originalSubRows, i + 1, l));
@@ -51096,9 +51096,9 @@ function yz() {
return o;
};
return n.rows = r(t), n;
- }, LR(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
+ }, IR(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
}
-function dTe(e) {
+function fTe(e) {
let t = [], n = (e) => {
var r;
t.push(e), (r = e.subRows) != null && r.length && e.getIsExpanded() && e.subRows.forEach(n);
@@ -51109,8 +51109,8 @@ function dTe(e) {
rowsById: e.rowsById
};
}
-function bz(e) {
- return (e) => IR(() => [
+function yz(e) {
+ return (e) => FR(() => [
e.getState().pagination,
e.getPrePaginationRowModel(),
e.options.paginateExpandedRows ? void 0 : e.getState().expanded
@@ -51123,7 +51123,7 @@ function bz(e) {
rows: a,
flatRows: o,
rowsById: s
- } : dTe({
+ } : fTe({
rows: a,
flatRows: o,
rowsById: s
@@ -51132,32 +51132,32 @@ function bz(e) {
u.flatRows.push(e), e.subRows.length && e.subRows.forEach(d);
};
return u.rows.forEach(d), u;
- }, LR(e.options, "debugTable", "getPaginationRowModel"));
+ }, IR(e.options, "debugTable", "getPaginationRowModel"));
}
//#endregion
//#region node_modules/@tanstack/react-table/build/lib/index.mjs
-function xz(e, t) {
- return e ? fTe(e) ? /*#__PURE__*/ b.createElement(e, t) : e : null;
-}
-function fTe(e) {
- return pTe(e) || typeof e == "function" || mTe(e);
+function bz(e, t) {
+ return e ? pTe(e) ? /*#__PURE__*/ b.createElement(e, t) : e : null;
}
function pTe(e) {
+ return mTe(e) || typeof e == "function" || hTe(e);
+}
+function mTe(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
-function mTe(e) {
+function hTe(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
-function Sz(e) {
+function xz(e) {
let t = {
state: {},
onStateChange: () => {},
renderFallbackValue: null,
...e
- }, [n] = b.useState(() => ({ current: uTe(t) })), [r, i] = b.useState(() => n.current.initialState);
+ }, [n] = b.useState(() => ({ current: dTe(t) })), [r, i] = b.useState(() => n.current.initialState);
return n.current.setOptions((t) => ({
...t,
...e,
@@ -51172,7 +51172,7 @@ function Sz(e) {
}
//#endregion
//#region src/react/boardui/components/base/switch/switch.tsx
-var hTe = zO({
+var gTe = zO({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -51234,8 +51234,8 @@ var hTe = zO({
}
}
});
-function gTe({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = hTe[t];
+function _Te({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = gTe[t];
return /* @__PURE__ */ (0, x.jsx)("span", {
"aria-hidden": !0,
className: RO("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? RO("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"),
@@ -51245,12 +51245,12 @@ function gTe({ state: e, size: t = "md", shape: n = "pill" }) {
})
});
}
-function Cz({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, x.jsx)(khe, {
+function Sz({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, x.jsx)(Ahe, {
ref: i,
...a,
className: (t) => RO("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
- children: (e) => /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(gTe, {
+ children: (e) => /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(_Te, {
state: e,
size: n,
shape: r
@@ -51262,8 +51262,8 @@ function Cz({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
}
//#endregion
//#region src/react/components/legacy-avatar.ts
-var wz = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", _Te = "输入女优名,到 JavDB 找她的演员页";
-function vTe(e, t) {
+var Cz = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", vTe = "输入女优名,到 JavDB 找她的演员页";
+function yTe(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e.candidates) t.has(r.id) && r.held_by && n.set(r.held_by.id, r.held_by.name);
if (n.size > 1) return {
@@ -51282,10 +51282,10 @@ function vTe(e, t) {
blocked: !1
};
}
-function yTe({ card: e, picked: t, onPick: n }) {
+function bTe({ card: e, picked: t, onPick: n }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, x.jsx)(EP, {
+ children: [/* @__PURE__ */ (0, x.jsx)(TP, {
isSelected: t,
onChange: n,
children: /* @__PURE__ */ (0, x.jsxs)("span", {
@@ -51312,7 +51312,7 @@ function yTe({ card: e, picked: t, onPick: n }) {
})]
});
}
-function bTe({ readOnly: e, toast: t, onAdded: n }) {
+function xTe({ readOnly: e, toast: t, onAdded: n }) {
let [r, i] = (0, b.useState)(""), [a, o] = (0, b.useState)(null), [s, c] = (0, b.useState)(/* @__PURE__ */ new Set()), l = XO(), u = () => {
let t = r.trim();
t && !e && l.run("lookup", (e) => Cr(t, e), (e) => {
@@ -51326,7 +51326,7 @@ function bTe({ readOnly: e, toast: t, onAdded: n }) {
a && l.run("follow", (e) => wr(a.q, [...s], e), (e) => {
t(e.created ? `已新建「${e.entity_name}」并订阅她的新作` : `已订阅「${e.entity_name}」的新作`), i(""), f(), n();
});
- }, m = a ? vTe(a, s) : null;
+ }, m = a ? yTe(a, s) : null;
return /* @__PURE__ */ (0, x.jsxs)("div", {
className: WO({
padding: "none",
@@ -51341,9 +51341,9 @@ function bTe({ readOnly: e, toast: t, onAdded: n }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, x.jsx)("div", {
className: "min-w-64 grow",
- children: /* @__PURE__ */ (0, x.jsx)(LP, {
+ children: /* @__PURE__ */ (0, x.jsx)(IP, {
"aria-label": "女优名",
- placeholder: _Te,
+ placeholder: vTe,
value: r,
leadingIcon: hO,
enterKeyHint: "search",
@@ -51368,7 +51368,7 @@ function bTe({ readOnly: e, toast: t, onAdded: n }) {
className: "flex flex-col gap-3",
children: [
/* @__PURE__ */ (0, x.jsx)(ok, { children: "JavDB 上的演员卡" }),
- a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, x.jsx)(yTe, {
+ a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, x.jsx)(bTe, {
card: e,
picked: s.has(e.id),
onPick: (t) => c((n) => {
@@ -51403,19 +51403,19 @@ function bTe({ readOnly: e, toast: t, onAdded: n }) {
}
//#endregion
//#region src/react/follow-manage/source-list.tsx
-var Tz = (e) => (Number(e) || 0).toLocaleString(), xTe = Object.fromEntries(Object.entries(zn).map(([e, t]) => [t, e])), Ez = 740;
-function STe() {
+var wz = (e) => (Number(e) || 0).toLocaleString(), STe = Object.fromEntries(Object.entries(zn).map(([e, t]) => [t, e])), Tz = 740;
+function CTe() {
let [e, t] = (0, b.useState)(!1), n = (0, b.useRef)(null), r = (0, b.useCallback)((e) => {
if (n.current?.disconnect(), !e) {
n.current = null;
return;
}
- let r = new ResizeObserver(() => t(e.clientWidth < Ez));
- r.observe(e), n.current = r, t(e.clientWidth < Ez);
+ let r = new ResizeObserver(() => t(e.clientWidth < Tz));
+ r.observe(e), n.current = r, t(e.clientWidth < Tz);
}, []);
return (0, b.useEffect)(() => () => n.current?.disconnect(), []), [r, e];
}
-var CTe = {
+var wTe = {
select: "选择",
author: "创作者",
source: "来源",
@@ -51424,7 +51424,7 @@ var CTe = {
checked: "上次检查",
actions: "操作"
};
-function Dz({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
+function Ez({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
return t <= 1 ? null : /* @__PURE__ */ (0, x.jsxs)("nav", {
"aria-label": r,
className: "flex flex-wrap items-center justify-center gap-2",
@@ -51461,33 +51461,33 @@ function Dz({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
]
});
}
-function wTe({ source: e, selected: t, onToggle: n, handlers: r }) {
+function TTe({ source: e, selected: t, onToggle: n, handlers: r }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
"data-selected": t || void 0,
"data-follow-source-row": "",
className: "flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2",
onClick: (e) => {
- Zj(e, e.currentTarget) && n(!t);
+ Xj(e, e.currentTarget) && n(!t);
},
children: [
- /* @__PURE__ */ (0, x.jsx)(EP, {
+ /* @__PURE__ */ (0, x.jsx)(TP, {
isSelected: t,
onChange: n,
"aria-label": `选择 ${e.label}`
}),
/* @__PURE__ */ (0, x.jsxs)("span", {
className: "flex min-w-0 grow basis-0 flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, x.jsx)(ER, { source: e }), e.last_error ? /* @__PURE__ */ (0, x.jsx)(DR, { text: e.last_error }) : null]
+ children: [/* @__PURE__ */ (0, x.jsx)(TR, { source: e }), e.last_error ? /* @__PURE__ */ (0, x.jsx)(ER, { text: e.last_error }) : null]
}),
/* @__PURE__ */ (0, x.jsx)("span", {
className: "flex shrink-0 items-center gap-1.5 text-body-2-regular text-text-secondary",
title: e.provider_label,
- children: /* @__PURE__ */ (0, x.jsx)(CR, {
+ children: /* @__PURE__ */ (0, x.jsx)(SR, {
provider: e.provider,
label: e.provider_label
})
}),
- /* @__PURE__ */ (0, x.jsx)(TR, { source: e }),
+ /* @__PURE__ */ (0, x.jsx)(wR, { source: e }),
/* @__PURE__ */ (0, x.jsxs)("span", {
"data-follow-source-controls": "",
className: "contents max-sm:flex max-sm:w-full max-sm:flex-wrap max-sm:items-center max-sm:gap-1.5",
@@ -51496,7 +51496,7 @@ function wTe({ source: e, selected: t, onToggle: n, handlers: r }) {
className: "shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary max-sm:mr-auto max-sm:text-caption-1-regular",
children: Mr(e)
}),
- /* @__PURE__ */ (0, x.jsx)(Cz, {
+ /* @__PURE__ */ (0, x.jsx)(Sz, {
"aria-label": `启用 ${e.label}`,
isSelected: e.enabled,
isDisabled: r.readOnly,
@@ -51528,7 +51528,7 @@ function wTe({ source: e, selected: t, onToggle: n, handlers: r }) {
]
});
}
-function TTe({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {
+function ETe({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {
let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter(Wn).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = rr(r, c);
return /* @__PURE__ */ (0, x.jsxs)("section", {
"aria-label": `${t} 的关注来源`,
@@ -51542,7 +51542,7 @@ function TTe({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
"data-open": n || void 0,
className: "flex flex-wrap items-center gap-3 px-2 py-2.5",
children: [
- /* @__PURE__ */ (0, x.jsx)(wR, {
+ /* @__PURE__ */ (0, x.jsx)(CR, {
group: e,
name: t
}),
@@ -51567,7 +51567,7 @@ function TTe({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
/* @__PURE__ */ (0, x.jsxs)("span", {
className: "flex shrink-0 items-center gap-1 max-sm:mr-auto max-sm:min-w-0 max-sm:shrink max-sm:flex-wrap",
title: d,
- children: [e.map((e) => /* @__PURE__ */ (0, x.jsx)(CR, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, x.jsx)(fb, { children: `来源:${d}` })]
+ children: [e.map((e) => /* @__PURE__ */ (0, x.jsx)(SR, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, x.jsx)(pb, { children: `来源:${d}` })]
}),
u ? /* @__PURE__ */ (0, x.jsx)("span", {
className: "shrink-0 text-body-2-regular text-text-error-primary",
@@ -51599,7 +51599,7 @@ function TTe({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
id: f,
hidden: !n,
"data-source-divider": !0,
- children: e.map((e) => /* @__PURE__ */ (0, x.jsx)(wTe, {
+ children: e.map((e) => /* @__PURE__ */ (0, x.jsx)(TTe, {
source: e,
handlers: i,
selected: r.has(e.id),
@@ -51608,8 +51608,8 @@ function TTe({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
})]
});
}
-function ETe(e) {
- let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: l, onPage: u, onLayout: d, onPageSize: f, onSelected: p, toast: m, openFollow: h } = e, g = t.sources, _ = (0, b.useMemo)(() => t.author_aliases || [], [t.author_aliases]), v = t.counts || {}, [y, S] = (0, b.useState)(/* @__PURE__ */ new Set()), [C, w] = STe(), [T, E] = (0, b.useState)(""), D = (0, b.useMemo)(() => aee(g, n, r, _), [
+function DTe(e) {
+ let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: l, onPage: u, onLayout: d, onPageSize: f, onSelected: p, toast: m, openFollow: h } = e, g = t.sources, _ = (0, b.useMemo)(() => t.author_aliases || [], [t.author_aliases]), v = t.counts || {}, [y, S] = (0, b.useState)(/* @__PURE__ */ new Set()), [C, w] = CTe(), [T, E] = (0, b.useState)(""), D = (0, b.useMemo)(() => aee(g, n, r, _), [
g,
n,
r,
@@ -51619,7 +51619,7 @@ function ETe(e) {
n,
r,
_
- ]), { job: k, running: A, outcome: j, start: M } = SP({
+ ]), { job: k, running: A, outcome: j, start: M } = xP({
queryKey: Mn,
queryFn: ({ signal: e }) => sr(e),
start: (e) => ur(e),
@@ -51706,12 +51706,12 @@ function ETe(e) {
readOnly: c
};
let ce = se.current, le = (0, b.useMemo)(() => {
- let e = MR(), t = (e) => () => CTe[e] || e;
+ let e = jR(), t = (e) => () => wTe[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, x.jsx)(EP, {
+ cell: (e) => /* @__PURE__ */ (0, x.jsx)(TP, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
@@ -51723,7 +51723,7 @@ function ETe(e) {
header: t("author"),
cell: (e) => /* @__PURE__ */ (0, x.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, x.jsx)(wR, {
+ children: [/* @__PURE__ */ (0, x.jsx)(CR, {
group: e.row.original.group,
name: e.row.original.author
}), /* @__PURE__ */ (0, x.jsx)("span", {
@@ -51737,7 +51737,7 @@ function ETe(e) {
header: t("source"),
cell: (e) => /* @__PURE__ */ (0, x.jsxs)("span", {
className: "flex min-w-0 flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, x.jsx)(ER, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, x.jsx)(DR, { text: e.row.original.source.last_error }) : null]
+ children: [/* @__PURE__ */ (0, x.jsx)(TR, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, x.jsx)(ER, { text: e.row.original.source.last_error }) : null]
})
}),
e.accessor((e) => e.source.provider_label, {
@@ -51745,13 +51745,13 @@ function ETe(e) {
header: t("provider"),
cell: (e) => /* @__PURE__ */ (0, x.jsxs)("span", {
className: "flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, x.jsx)(CR, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
+ children: [/* @__PURE__ */ (0, x.jsx)(SR, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
})
}),
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, x.jsx)(TR, { source: e.row.original.source })
+ cell: (e) => /* @__PURE__ */ (0, x.jsx)(wR, { source: e.row.original.source })
}),
e.accessor((e) => e.source.last_checked_at || "", {
id: "checked",
@@ -51764,7 +51764,7 @@ function ETe(e) {
cell: (e) => /* @__PURE__ */ (0, x.jsxs)("span", {
className: "flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, x.jsx)(Cz, {
+ /* @__PURE__ */ (0, x.jsx)(Sz, {
"aria-label": `启用 ${e.row.original.source.label}`,
isSelected: e.row.original.source.enabled,
isDisabled: ce.readOnly,
@@ -51794,12 +51794,12 @@ function ETe(e) {
})
];
}, [ce]), ue = (0, b.useMemo)(() => {
- let e = xTe[n];
+ let e = STe[n];
return e ? [{
id: e,
desc: r === "desc"
}] : [];
- }, [n, r]), de = (0, b.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), fe = a === "table", pe = tr(fe ? O.length : D.length, o, i), me = Sz({
+ }, [n, r]), de = (0, b.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), fe = a === "table", pe = tr(fe ? O.length : D.length, o, i), me = xz({
data: O,
columns: le,
getRowId: (e) => String(e.source.id),
@@ -51830,8 +51830,8 @@ function ETe(e) {
}, n = typeof e == "function" ? e(t) : e;
n.pageSize === o ? n.pageIndex !== t.pageIndex && u(n.pageIndex + 1) : f(n.pageSize);
},
- getCoreRowModel: yz(),
- getPaginationRowModel: bz()
+ getCoreRowModel: vz(),
+ getPaginationRowModel: yz()
}), he = me.getRowModel().rows, ge = fe ? he.map((e) => e.original.source.id) : D.slice(pe.start, pe.end).flatMap((e) => e.map((e) => e.id)), _e = rr(s, ge), ve = [...s], ye = Ar(j), be = jr(j), xe = D.length > 0 && y.size >= D.length;
return g.length ? /* @__PURE__ */ (0, x.jsxs)("div", {
className: WO({
@@ -51851,7 +51851,7 @@ function ETe(e) {
children: "关注列表"
}), /* @__PURE__ */ (0, x.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
- children: `${g.length.toLocaleString()} 个来源${v.new ? ` · ${Tz(v.new)} 条未看` : ""}`
+ children: `${g.length.toLocaleString()} 个来源${v.new ? ` · ${wz(v.new)} 条未看` : ""}`
})]
}),
/* @__PURE__ */ (0, x.jsx)(G, {
@@ -51888,7 +51888,7 @@ function ETe(e) {
onClick: () => d("table")
})]
}),
- /* @__PURE__ */ (0, x.jsx)(yP, {
+ /* @__PURE__ */ (0, x.jsx)(vP, {
"aria-label": "关注列表排序",
selectedKey: n,
onSelectionChange: (e) => {
@@ -51896,7 +51896,7 @@ function ETe(e) {
let t = String(e);
l(t, an[t]);
},
- children: nn.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(bP, {
+ children: nn.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(yP, {
id: e,
children: t
}, e))
@@ -51924,7 +51924,7 @@ function ETe(e) {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- A ? /* @__PURE__ */ (0, x.jsx)(hP, {
+ A ? /* @__PURE__ */ (0, x.jsx)(mP, {
embedded: !0,
label: k?.message || (k?.total ? `${k.older ? "抓取历史" : "检查更新"}:已完成 ${k.checked || 0}/${k.total} 个来源` : "正在准备检查任务"),
value: k?.checked,
@@ -51950,7 +51950,7 @@ function ETe(e) {
}) : null
]
}),
- /* @__PURE__ */ (0, x.jsxs)(ww, {
+ /* @__PURE__ */ (0, x.jsxs)(Tw, {
label: "关注来源批量操作",
visible: ve.length > 0,
count: `已选 ${ve.length} 个来源`,
@@ -52010,10 +52010,10 @@ function ETe(e) {
})
]
}),
- fe ? /* @__PURE__ */ (0, x.jsx)(OP, {
+ fe ? /* @__PURE__ */ (0, x.jsx)(DP, {
follow: !0,
onRowClick: (e) => ee(Number(e), !s.has(Number(e))),
- children: /* @__PURE__ */ (0, x.jsxs)(DP, {
+ children: /* @__PURE__ */ (0, x.jsxs)(EP, {
"aria-label": "关注来源",
size: "sm",
sortDescriptor: ue[0] ? {
@@ -52024,9 +52024,9 @@ function ETe(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, x.jsx)(ZA, { children: me.getHeaderGroups()[0].headers.map((e) => {
- let t = e.column.id in zn, n = xz(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, x.jsx)(QA, {
+ children: [/* @__PURE__ */ (0, x.jsx)(XA, { children: me.getHeaderGroups()[0].headers.map((e) => {
+ let t = e.column.id in zn, n = bz(e.column.columnDef.header, e.getContext());
+ return /* @__PURE__ */ (0, x.jsx)(ZA, {
id: e.id,
allowsSorting: t,
isRowHeader: e.column.id === "source",
@@ -52035,20 +52035,20 @@ function ETe(e) {
children: [n, /* @__PURE__ */ (0, x.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": e || void 0,
- children: /* @__PURE__ */ (0, x.jsx)(yye, {})
+ children: /* @__PURE__ */ (0, x.jsx)(bye, {})
})]
- }) : /* @__PURE__ */ (0, x.jsx)(fb, { children: n })
+ }) : /* @__PURE__ */ (0, x.jsx)(pb, { children: n })
}, e.id);
- }) }), /* @__PURE__ */ (0, x.jsx)(ej, {
+ }) }), /* @__PURE__ */ (0, x.jsx)($A, {
renderEmptyState: () => "这一页没有来源",
- children: he.map((e) => /* @__PURE__ */ (0, x.jsx)(rj, {
+ children: he.map((e) => /* @__PURE__ */ (0, x.jsx)(nj, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, x.jsx)(aj, { children: xz(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, x.jsx)(ij, { children: bz(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id))
})]
})
- }) : /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(EP, {
+ }) : /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(TP, {
isSelected: _e.all,
isIndeterminate: _e.some,
onChange: (e) => te(ge, e),
@@ -52058,7 +52058,7 @@ function ETe(e) {
className: "flex flex-col gap-3",
children: D.slice(pe.start, pe.end).map((e) => {
let t = String(e[0].author_key || e[0].id);
- return /* @__PURE__ */ (0, x.jsx)(TTe, {
+ return /* @__PURE__ */ (0, x.jsx)(ETe, {
group: e,
name: Zn(e, _),
handlers: ce,
@@ -52078,21 +52078,21 @@ function ETe(e) {
children: [
/* @__PURE__ */ (0, x.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
- children: `${Tz(pe.start + 1)}–${Tz(pe.end)} / ${Tz(pe.total)} ${fe ? "个来源" : "位创作者"}`
+ children: `${wz(pe.start + 1)}–${wz(pe.end)} / ${wz(pe.total)} ${fe ? "个来源" : "位创作者"}`
}),
- /* @__PURE__ */ (0, x.jsx)(yP, {
+ /* @__PURE__ */ (0, x.jsx)(vP, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(o),
onSelectionChange: (e) => {
e !== null && me.setPageSize(Number(e));
},
- children: Ln.map((e) => /* @__PURE__ */ (0, x.jsx)(bP, {
+ children: Ln.map((e) => /* @__PURE__ */ (0, x.jsx)(yP, {
id: String(e),
children: `每页 ${e} ${fe ? "条" : "位"}`
}, e))
}),
- /* @__PURE__ */ (0, x.jsx)(Dz, {
+ /* @__PURE__ */ (0, x.jsx)(Ez, {
page: pe.page,
pages: pe.pages,
onPage: (e) => me.setPageIndex(e - 1)
@@ -52104,7 +52104,7 @@ function ETe(e) {
children: [
/* @__PURE__ */ (0, x.jsx)("span", {
className: "mr-auto text-body-2-regular text-text-secondary",
- children: `未看 ${Tz(v.new)} · 已看 ${Tz(v.seen)} · 已保存 ${Tz(v.saved)} · 已忽略 ${Tz(v.ignored)}`
+ children: `未看 ${wz(v.new)} · 已看 ${wz(v.seen)} · 已保存 ${wz(v.saved)} · 已忽略 ${wz(v.ignored)}`
}),
/* @__PURE__ */ (0, x.jsx)(G, {
variant: "secondary",
@@ -52156,7 +52156,7 @@ function ETe(e) {
}
//#endregion
//#region src/react/follow-manage/feed-sources.tsx
-var DTe = {
+var OTe = {
select: "选择",
name: "名称",
kind: "类型",
@@ -52166,18 +52166,18 @@ var DTe = {
fetched: "上次拉取",
fresh: "上次新增",
actions: "操作"
-}, OTe = /* @__PURE__ */ new Set(["select", "actions"]), Oz = () => V.invalidateQueries({
+}, kTe = /* @__PURE__ */ new Set(["select", "actions"]), Dz = () => V.invalidateQueries({
queryKey: Pn,
exact: !0
-}), kz = (e) => e.name || e.url;
-function kTe(e) {
+}), Oz = (e) => e.name || e.url;
+function ATe(e) {
try {
return new URL(e).hostname.replace(/^www\./, "");
} catch {
return e;
}
}
-function ATe({ source: e }) {
+function jTe({ source: e }) {
return e.last_error ? /* @__PURE__ */ (0, x.jsx)(VO, {
variant: "caption",
color: "rose",
@@ -52192,7 +52192,7 @@ function ATe({ source: e }) {
children: "已暂停"
});
}
-function jTe({ source: e }) {
+function MTe({ source: e }) {
let t = e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
@@ -52201,27 +52201,27 @@ function jTe({ source: e }) {
} : null;
return /* @__PURE__ */ (0, x.jsx)("span", {
"aria-hidden": !0,
- className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary ${wz}`,
- dangerouslySetInnerHTML: { __html: $i(kz(e), t, null, "performer") }
+ className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary ${Cz}`,
+ dangerouslySetInnerHTML: { __html: $i(Oz(e), t, null, "performer") }
});
}
-var MTe = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
-function NTe(e) {
+var NTe = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
+function PTe(e) {
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
for (let { entity_id: r } of e) r !== null && (t.has(r) ? n.add(r) : t.add(r));
return n;
}
-function Az(e, t) {
+function kz(e, t) {
let n = e.length === 1 ? e[0] : null;
return is({
title: n ? "移除订阅源" : `移除 ${e.length} 条订阅源`,
- body: n ? `将移除订阅源「${kz(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",
+ body: n ? `将移除订阅源「${Oz(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",
confirmLabel: n ? "移除订阅源" : "移除所选订阅源",
danger: !0,
onConfirm: t
});
}
-function PTe({ readOnly: e, toast: t }) {
+function FTe({ readOnly: e, toast: t }) {
let n = dt({
queryKey: Pn,
queryFn: ({ signal: e }) => yr(e)
@@ -52246,13 +52246,13 @@ function PTe({ readOnly: e, toast: t }) {
},
onSuccess: (e) => {
let n = e.results.filter((e) => !e.ok), i = e.ids.length - n.length;
- if (s(/* @__PURE__ */ new Set()), Oz(), e.action === "remove" && i && t(`已移除 ${i} 条订阅源`), n.length) {
+ if (s(/* @__PURE__ */ new Set()), Dz(), e.action === "remove" && i && t(`已移除 ${i} 条订阅源`), n.length) {
let e = n[0];
r.setError(`${n.length} 条没有写入:${e.ok ? "" : R(e.error)}`);
}
},
onError: (e) => r.setError(R(e))
- }), m = (0, b.useMemo)(() => NTe(a), [a]), h = (0, b.useRef)({
+ }), m = (0, b.useMemo)(() => PTe(a), [a]), h = (0, b.useRef)({
readOnly: e,
shared: m,
busy: null,
@@ -52264,34 +52264,34 @@ function PTe({ readOnly: e, toast: t }) {
readOnly: e,
shared: m,
busy: r.busy,
- toggle: (e, t) => void r.run(`enabled-${e.id}`, (n) => br(e.id, t, n), () => void Oz()),
- fetch: (e) => void r.run(`check-${e.id}`, (t) => Sr(t, [e.id]), () => void Oz()),
- remove: (e) => void Az([e], async () => {
- await xr(e.id), t(`已移除订阅源「${kz(e)}」`), Oz();
+ toggle: (e, t) => void r.run(`enabled-${e.id}`, (n) => br(e.id, t, n), () => void Dz()),
+ fetch: (e) => void r.run(`check-${e.id}`, (t) => Sr(t, [e.id]), () => void Dz()),
+ remove: (e) => void kz([e], async () => {
+ await xr(e.id), t(`已移除订阅源「${Oz(e)}」`), Dz();
})
};
let g = (0, b.useMemo)(() => {
- let e = MR(), t = (e) => () => DTe[e] || e;
+ let e = jR(), t = (e) => () => OTe[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, x.jsx)(EP, {
+ cell: (e) => /* @__PURE__ */ (0, x.jsx)(TP, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
- "aria-label": `选择 ${kz(e.row.original)}`
+ "aria-label": `选择 ${Oz(e.row.original)}`
})
}),
- e.accessor(kz, {
+ e.accessor(Oz, {
id: "name",
header: t("name"),
cell: (e) => {
- let t = MTe(e.row.original, h.current.shared);
+ let t = NTe(e.row.original, h.current.shared);
return /* @__PURE__ */ (0, x.jsxs)("span", {
className: "flex items-center gap-2 whitespace-nowrap text-body-medium text-text-primary",
children: [
- /* @__PURE__ */ (0, x.jsx)(jTe, { source: e.row.original }),
+ /* @__PURE__ */ (0, x.jsx)(MTe, { source: e.row.original }),
e.getValue(),
t ? /* @__PURE__ */ (0, x.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -52319,13 +52319,13 @@ function PTe({ readOnly: e, toast: t }) {
rel: "noreferrer noopener",
title: "打开来源页面",
className: "text-text-primary underline-offset-2 hover:underline",
- children: kTe(e.getValue())
+ children: ATe(e.getValue())
})
}),
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, x.jsx)(ATe, { source: e.row.original })
+ cell: (e) => /* @__PURE__ */ (0, x.jsx)(jTe, { source: e.row.original })
}),
e.accessor((e) => Gn(e.interval_minutes), {
id: "interval",
@@ -52357,8 +52357,8 @@ function PTe({ readOnly: e, toast: t }) {
cell: (e) => /* @__PURE__ */ (0, x.jsxs)("span", {
className: "flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, x.jsx)(Cz, {
- "aria-label": `启用 ${kz(e.row.original)}`,
+ /* @__PURE__ */ (0, x.jsx)(Sz, {
+ "aria-label": `启用 ${Oz(e.row.original)}`,
isSelected: e.row.original.enabled,
isDisabled: h.current.readOnly,
onChange: (t) => h.current.toggle(e.row.original, t)
@@ -52368,7 +52368,7 @@ function PTe({ readOnly: e, toast: t }) {
size: "xs",
iconOnly: !0,
leadingIcon: mO,
- "aria-label": `拉取 ${kz(e.row.original)}`,
+ "aria-label": `拉取 ${Oz(e.row.original)}`,
disabled: h.current.readOnly,
...q(h.current.busy === `check-${e.row.original.id}`),
onClick: () => h.current.fetch(e.row.original)
@@ -52378,7 +52378,7 @@ function PTe({ readOnly: e, toast: t }) {
size: "xs",
iconOnly: !0,
leadingIcon: lO,
- "aria-label": `移除 ${kz(e.row.original)}`,
+ "aria-label": `移除 ${Oz(e.row.original)}`,
disabled: h.current.readOnly,
onClick: () => h.current.remove(e.row.original)
})
@@ -52386,7 +52386,7 @@ function PTe({ readOnly: e, toast: t }) {
})
})
];
- }, []), _ = (0, b.useMemo)(() => Object.fromEntries([...o].map((e) => [String(e), !0])), [o]), v = Sz({
+ }, []), _ = (0, b.useMemo)(() => Object.fromEntries([...o].map((e) => [String(e), !0])), [o]), v = xz({
data: a,
columns: g,
getRowId: (e) => String(e.id),
@@ -52402,24 +52402,24 @@ function PTe({ readOnly: e, toast: t }) {
let t = typeof e == "function" ? e(_) : e;
s(new Set(Object.entries(t).filter(([, e]) => e).map(([e]) => Number(e))));
},
- getCoreRowModel: yz(),
- getPaginationRowModel: bz()
+ getCoreRowModel: vz(),
+ getPaginationRowModel: yz()
});
if (!i) return n.error ? /* @__PURE__ */ (0, x.jsx)(K, {
tone: "error",
title: "打不开订阅源",
children: R(n.error)
}) : /* @__PURE__ */ (0, x.jsx)(ik, { children: "正在读订阅源。" });
- let y = () => void r.run("check", (e) => Sr(e), () => void Oz()), S = (e) => s((t) => {
+ let y = () => void r.run("check", (e) => Sr(e), () => void Dz()), S = (e) => s((t) => {
let n = new Set(t);
return n.has(e) ? n.delete(e) : n.add(e), n;
}), C = a.filter((e) => o.has(e.id)), w = a.filter((e) => e.last_error);
return /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, x.jsx)(bTe, {
+ children: [/* @__PURE__ */ (0, x.jsx)(xTe, {
readOnly: e,
toast: t,
- onAdded: () => void Oz()
+ onAdded: () => void Dz()
}), /* @__PURE__ */ (0, x.jsxs)("section", {
"aria-label": "JAV 订阅列表",
className: WO({
@@ -52456,13 +52456,13 @@ function PTe({ readOnly: e, toast: t }) {
children: w.map((e) => /* @__PURE__ */ (0, x.jsx)("li", {
className: "min-w-0 truncate",
title: e.last_error || "",
- children: `${kz(e)}:${Kn(e.last_error || "") || "未说明原因"}`
+ children: `${Oz(e)}:${Kn(e.last_error || "") || "未说明原因"}`
}, e.id))
}),
children: "这些订阅源这一轮没有取到新条目。"
}) : null, r.error ? /* @__PURE__ */ (0, x.jsx)(ak, { children: r.error }) : null]
}) : null,
- /* @__PURE__ */ (0, x.jsxs)(ww, {
+ /* @__PURE__ */ (0, x.jsxs)(Tw, {
visible: C.length > 0,
label: "订阅源批量操作",
count: `已选 ${C.length} 条订阅源`,
@@ -52494,7 +52494,7 @@ function PTe({ readOnly: e, toast: t }) {
size: "small",
disabled: e,
...q(p.isPending),
- onClick: () => void Az(C, () => p.mutateAsync({
+ onClick: () => void kz(C, () => p.mutateAsync({
ids: C.map((e) => e.id),
action: "remove"
})),
@@ -52508,22 +52508,22 @@ function PTe({ readOnly: e, toast: t }) {
})
]
}),
- a.length ? /* @__PURE__ */ (0, x.jsx)(OP, {
+ a.length ? /* @__PURE__ */ (0, x.jsx)(DP, {
onRowClick: (e) => S(Number(e)),
- children: /* @__PURE__ */ (0, x.jsxs)(DP, {
+ children: /* @__PURE__ */ (0, x.jsxs)(EP, {
"aria-label": "JAV 订阅源",
size: "sm",
- children: [/* @__PURE__ */ (0, x.jsx)(ZA, { children: v.getHeaderGroups()[0].headers.map((e) => {
- let t = xz(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, x.jsx)(QA, {
+ children: [/* @__PURE__ */ (0, x.jsx)(XA, { children: v.getHeaderGroups()[0].headers.map((e) => {
+ let t = bz(e.column.columnDef.header, e.getContext());
+ return /* @__PURE__ */ (0, x.jsx)(ZA, {
id: e.id,
isRowHeader: e.column.id === "name",
- children: OTe.has(e.column.id) ? /* @__PURE__ */ (0, x.jsx)(fb, { children: t }) : t
+ children: kTe.has(e.column.id) ? /* @__PURE__ */ (0, x.jsx)(pb, { children: t }) : t
}, e.id);
- }) }), /* @__PURE__ */ (0, x.jsx)(ej, { children: v.getRowModel().rows.map((e) => /* @__PURE__ */ (0, x.jsx)(rj, {
+ }) }), /* @__PURE__ */ (0, x.jsx)($A, { children: v.getRowModel().rows.map((e) => /* @__PURE__ */ (0, x.jsx)(nj, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, x.jsx)(aj, { children: xz(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, x.jsx)(ij, { children: bz(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id)) })]
})
}) : /* @__PURE__ */ (0, x.jsx)(GO, {
@@ -52539,19 +52539,19 @@ function PTe({ readOnly: e, toast: t }) {
className: "text-body-2-regular text-text-secondary",
children: `${(f.start + 1).toLocaleString()}–${f.end.toLocaleString()} / ${f.total.toLocaleString()} 个订阅源`
}),
- /* @__PURE__ */ (0, x.jsx)(yP, {
+ /* @__PURE__ */ (0, x.jsx)(vP, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(u),
onSelectionChange: (e) => {
e !== null && (d(Number(e)), l(1));
},
- children: Ln.map((e) => /* @__PURE__ */ (0, x.jsx)(bP, {
+ children: Ln.map((e) => /* @__PURE__ */ (0, x.jsx)(yP, {
id: String(e),
children: `每页 ${e} 条`
}, e))
}),
- /* @__PURE__ */ (0, x.jsx)(Dz, {
+ /* @__PURE__ */ (0, x.jsx)(Ez, {
label: "JAV 订阅分页",
page: f.page,
pages: f.pages,
@@ -52573,12 +52573,12 @@ function PTe({ readOnly: e, toast: t }) {
}
//#endregion
//#region src/react/follow-manage/follow-manage-page.tsx
-var jz = [
+var Az = [
["list", "关注列表"],
["add", "添加关注"],
["feeds", "JAV 订阅源"]
-], Mz = (e) => jz.some(([t]) => t === e);
-function Nz({ term: e, figure: t, unit: n }) {
+], jz = (e) => Az.some(([t]) => t === e);
+function Mz({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
className: WO({
padding: "none",
@@ -52600,8 +52600,8 @@ function Nz({ term: e, figure: t, unit: n }) {
})]
});
}
-function FTe(e) {
- let { route: t, savePreference: n, toast: r, openFollow: i, openServiceConfiguration: a, readOnly: o, readOnlyMessage: s, writerUrl: c } = e, [l, u] = (0, b.useState)(Mz(e.tab) ? e.tab : "list"), [d, f] = (0, b.useState)(Math.max(1, Math.floor(e.page) || 1)), [p, m] = (0, b.useState)(() => sn(e.sort, e.dir).sort), [h, g] = (0, b.useState)(() => sn(e.sort, e.dir).dir), [_, v] = (0, b.useState)(Bn(e.layout) ? e.layout : "default"), [y, S] = (0, b.useState)(Vn(e.pageSize)), [C, w] = (0, b.useState)(/* @__PURE__ */ new Set()), T = dt({
+function ITe(e) {
+ let { route: t, savePreference: n, toast: r, openFollow: i, openServiceConfiguration: a, readOnly: o, readOnlyMessage: s, writerUrl: c } = e, [l, u] = (0, b.useState)(jz(e.tab) ? e.tab : "list"), [d, f] = (0, b.useState)(Math.max(1, Math.floor(e.page) || 1)), [p, m] = (0, b.useState)(() => sn(e.sort, e.dir).sort), [h, g] = (0, b.useState)(() => sn(e.sort, e.dir).dir), [_, v] = (0, b.useState)(Bn(e.layout) ? e.layout : "default"), [y, S] = (0, b.useState)(Vn(e.pageSize)), [C, w] = (0, b.useState)(/* @__PURE__ */ new Set()), T = dt({
queryKey: An,
queryFn: ({ signal: e }) => ar(e)
}), E = dt({
@@ -52644,64 +52644,64 @@ function FTe(e) {
children: s
}) : null,
/* @__PURE__ */ (0, x.jsxs)("div", {
- className: zve,
+ className: Bve,
"aria-label": "关注概览",
children: [
- /* @__PURE__ */ (0, x.jsx)(Nz, {
+ /* @__PURE__ */ (0, x.jsx)(Mz, {
term: "关注创作者",
figure: M.length,
unit: "位"
}),
- /* @__PURE__ */ (0, x.jsx)(Nz, {
+ /* @__PURE__ */ (0, x.jsx)(Mz, {
term: "启用来源",
figure: ee,
unit: `/ ${A.length}`
}),
- /* @__PURE__ */ (0, x.jsx)(Nz, {
+ /* @__PURE__ */ (0, x.jsx)(Mz, {
term: "检查失败",
figure: N,
unit: "个来源"
}),
- /* @__PURE__ */ (0, x.jsx)(Nz, {
+ /* @__PURE__ */ (0, x.jsx)(Mz, {
term: "未看更新",
figure: O.counts?.new || 0,
unit: "条"
}),
- /* @__PURE__ */ (0, x.jsx)(Nz, {
+ /* @__PURE__ */ (0, x.jsx)(Mz, {
term: "JAV 订阅",
figure: P,
unit: "位"
}),
- /* @__PURE__ */ (0, x.jsx)(Nz, {
+ /* @__PURE__ */ (0, x.jsx)(Mz, {
term: "未看新作",
figure: D.data?.unread || 0,
unit: "条"
})
]
}),
- /* @__PURE__ */ (0, x.jsxs)(lj, {
+ /* @__PURE__ */ (0, x.jsxs)(cj, {
selectedKey: l,
onSelectionChange: (e) => {
let t = String(e);
- Mz(t) && (u(t), j({ tab: t }));
+ jz(t) && (u(t), j({ tab: t }));
},
className: "flex flex-col gap-6",
children: [
- /* @__PURE__ */ (0, x.jsx)(uj, {
+ /* @__PURE__ */ (0, x.jsx)(lj, {
"aria-label": "关注管理区域",
"data-section-nav": !0,
"data-section-items": !0,
className: "flex max-w-full flex-nowrap overflow-x-auto",
- children: jz.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(dj, {
+ children: Az.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(uj, {
id: e,
className: "cursor-pointer whitespace-nowrap",
children: t
}, e))
}),
- /* @__PURE__ */ (0, x.jsx)(fj, {
+ /* @__PURE__ */ (0, x.jsx)(dj, {
id: "list",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, x.jsx)(ETe, {
+ children: /* @__PURE__ */ (0, x.jsx)(DTe, {
data: O,
sort: p,
dir: h,
@@ -52731,16 +52731,16 @@ function FTe(e) {
}
})
}),
- /* @__PURE__ */ (0, x.jsxs)(fj, {
+ /* @__PURE__ */ (0, x.jsxs)(dj, {
id: "add",
className: "flex flex-col gap-8",
- children: [/* @__PURE__ */ (0, x.jsx)(jwe, {
+ children: [/* @__PURE__ */ (0, x.jsx)(Mwe, {
data: O,
credentials: k,
readOnly: o,
toast: r,
openCredentials: a
- }), /* @__PURE__ */ (0, x.jsx)(Pwe, {
+ }), /* @__PURE__ */ (0, x.jsx)(Fwe, {
groups: O.author_aliases || [],
readOnly: o,
toast: r,
@@ -52748,10 +52748,10 @@ function FTe(e) {
sources: O.sources
})]
}),
- /* @__PURE__ */ (0, x.jsx)(fj, {
+ /* @__PURE__ */ (0, x.jsx)(dj, {
id: "feeds",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, x.jsx)(PTe, {
+ children: /* @__PURE__ */ (0, x.jsx)(FTe, {
readOnly: o,
toast: r
})
@@ -52767,15 +52767,15 @@ function FTe(e) {
}
//#endregion
//#region src/react/components/board-tabs.tsx
-function Pz({ value: e }) {
+function Nz({ value: e }) {
return /* @__PURE__ */ (0, x.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 ITe = "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 Fz({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {
+var LTe = "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 Pz({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {
let a = (0, b.useRef)(null);
return (0, b.useLayoutEffect)(() => {
let e = a.current;
@@ -52799,14 +52799,14 @@ function Fz({ 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 ? xj(e.symbol) : null, i = e.value === t;
+ let n = e.symbol ? bj(e.symbol) : null, i = e.value === t;
return /* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
role: "tab",
"data-tab": e.value,
"aria-selected": i,
tabIndex: i ? 0 : -1,
- className: ITe,
+ className: LTe,
onClick: () => {
i || r(e.value);
},
@@ -52817,24 +52817,24 @@ function Fz({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
}
//#endregion
//#region src/react/index/index-tags.tsx
-var Iz = () => /* @__PURE__ */ (0, x.jsx)("span", {
+var Fz = () => /* @__PURE__ */ (0, x.jsx)("span", {
"aria-hidden": !0,
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
});
-function LTe({ tag: e, actions: t }) {
+function RTe({ tag: e, actions: t }) {
let n = t.picked.has(e.k);
return /* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
"data-alpha-tag": "",
"data-k": e.k,
- "data-tag-cat": bF(t.online, e.cat),
+ "data-tag-cat": yF(t.online, e.cat),
"aria-pressed": n,
title: e.label,
onClick: () => t.press(e.k),
className: "flex h-9 min-w-0 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, x.jsx)(Iz, {}),
+ /* @__PURE__ */ (0, x.jsx)(Fz, {}),
/* @__PURE__ */ (0, x.jsx)("span", {
className: "min-w-0 flex-1 truncate",
children: e.label
@@ -52846,7 +52846,7 @@ function LTe({ tag: e, actions: t }) {
]
});
}
-function RTe({ groups: e, actions: t }) {
+function zTe({ groups: e, actions: t }) {
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-alphabet": "",
className: "flex flex-col gap-4",
@@ -52859,10 +52859,10 @@ function RTe({ groups: e, actions: t }) {
}),
children: [/* @__PURE__ */ (0, x.jsxs)("h3", {
className: "mb-2 flex items-center text-title-2-medium text-text-primary",
- children: [e, /* @__PURE__ */ (0, x.jsx)(Pz, { value: n.length })]
+ children: [e, /* @__PURE__ */ (0, x.jsx)(Nz, { value: n.length })]
}), /* @__PURE__ */ (0, x.jsx)("div", {
className: "index-tag-list gap-x-4 gap-y-0.5",
- children: n.map((e) => /* @__PURE__ */ (0, x.jsx)(LTe, {
+ children: n.map((e) => /* @__PURE__ */ (0, x.jsx)(RTe, {
tag: e,
actions: t
}, e.k))
@@ -52870,8 +52870,8 @@ function RTe({ groups: e, actions: t }) {
}, e))
});
}
-var zTe = "\xA0";
-function BTe({ tags: e, actions: t }) {
+var BTe = "\xA0";
+function VTe({ tags: e, actions: t }) {
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-tag-cloud": "",
className: "flex flex-wrap gap-1.75",
@@ -52879,11 +52879,11 @@ function BTe({ tags: e, actions: t }) {
type: "button",
"data-tag-chip": "",
"data-k": e.k,
- "data-tag-cat": bF(t.online, e.cat),
+ "data-tag-cat": yF(t.online, e.cat),
"aria-pressed": t.picked.has(e.k),
onClick: () => t.press(e.k),
className: "inline-flex cursor-pointer items-center rounded-lg border px-3 py-1.25 text-body-2-regular text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: [e.label + zTe, /* @__PURE__ */ (0, x.jsx)("span", {
+ children: [e.label + BTe, /* @__PURE__ */ (0, x.jsx)("span", {
"data-tag-n": "",
className: "text-caption-1-regular opacity-60",
children: e.n.toLocaleString()
@@ -52891,7 +52891,7 @@ function BTe({ tags: e, actions: t }) {
}, e.k))
});
}
-var VTe = [[
+var HTe = [[
"cloud",
"标签云",
"tags"
@@ -52900,16 +52900,16 @@ var VTe = [[
"字母表",
"text-aa"
]];
-function HTe({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
+function UTe({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
return /* @__PURE__ */ (0, x.jsx)(Tk, {
label: "标签筛选",
topLabel: "标签类型",
top: e.map(([e, r]) => /* @__PURE__ */ (0, x.jsxs)(Ek, {
"data-tag-pill": "",
- "data-tag-cat": e === "all" ? "all" : bF(n, e),
+ "data-tag-cat": e === "all" ? "all" : yF(n, e),
pressed: t === e,
onPress: () => o(e),
- children: [/* @__PURE__ */ (0, x.jsx)(Iz, {}), r]
+ children: [/* @__PURE__ */ (0, x.jsx)(Fz, {}), r]
}, e)),
bottom: /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
/* @__PURE__ */ (0, x.jsx)("span", {
@@ -52928,19 +52928,19 @@ function HTe({ categories: e, category: t, online: n, readout: r, letters: i, vi
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, x.jsx)(PA, {
+ /* @__PURE__ */ (0, x.jsx)(NA, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${vj}`,
- children: VTe.map(([e, t, n]) => {
- let r = xj(n);
- return /* @__PURE__ */ (0, x.jsx)(FA, {
+ className: `ml-auto ${_j}`,
+ children: HTe.map(([e, t, n]) => {
+ let r = bj(n);
+ return /* @__PURE__ */ (0, x.jsx)(PA, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: yj,
+ className: vj,
children: /* @__PURE__ */ (0, x.jsx)("span", {
title: t,
className: "contents",
@@ -52952,13 +52952,13 @@ function HTe({ categories: e, category: t, online: n, readout: r, letters: i, vi
] })
});
}
-function UTe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
- return /* @__PURE__ */ (0, x.jsxs)(ww, {
+function WTe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
+ return /* @__PURE__ */ (0, x.jsxs)(Tw, {
visible: e > 0,
label: "所选标签操作",
count: `已选 ${e.toLocaleString()} 个标签`,
children: [
- /* @__PURE__ */ (0, x.jsx)(EP, {
+ /* @__PURE__ */ (0, x.jsx)(TP, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
children: /* @__PURE__ */ (0, x.jsxs)("span", {
@@ -52990,7 +52990,7 @@ function UTe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
}
//#endregion
//#region src/react/index/index-page.tsx
-var WTe = [{
+var GTe = [{
value: "studios",
label: "厂牌",
symbol: "clapperboard"
@@ -52998,7 +52998,7 @@ var WTe = [{
value: "agencies",
label: "事务所",
symbol: "briefcase"
-}], GTe = [{
+}], KTe = [{
value: "local",
label: "本地",
symbol: "hard-drive"
@@ -53006,7 +53006,7 @@ var WTe = [{
value: "online",
label: "在线",
symbol: "rss"
-}], KTe = [
+}], qTe = [
{
value: "performers",
label: "艺人",
@@ -53022,7 +53022,7 @@ var WTe = [{
label: "在线",
symbol: "rss"
}
-], qTe = {
+], JTe = {
people: [[
"big",
"大图 · 竖幅头像",
@@ -53042,20 +53042,20 @@ var WTe = [{
"layout-grid"
]]
};
-function JTe({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, x.jsx)(hj, {
- "aria-label": `${lF[e]}索引版式`,
+function YTe({ kind: e, layout: t, onChange: n }) {
+ return /* @__PURE__ */ (0, x.jsx)(mj, {
+ "aria-label": `${cF[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none max-board-narrow:order-3 ${gj}`,
- children: qTe[mF(e) ? "company" : "people"].map(([e, t, n]) => {
- let r = xj(n);
- return /* @__PURE__ */ (0, x.jsx)(FA, {
+ className: `flex-none max-board-narrow:order-3 ${hj}`,
+ children: JTe[pF(e) ? "company" : "people"].map(([e, t, n]) => {
+ let r = bj(n);
+ return /* @__PURE__ */ (0, x.jsx)(PA, {
value: e,
"aria-label": t,
- className: hge,
+ className: gge,
children: /* @__PURE__ */ (0, x.jsx)("span", {
title: t,
className: "contents",
@@ -53065,8 +53065,8 @@ function JTe({ kind: e, layout: t, onChange: n }) {
})
});
}
-var YTe = xj("search");
-function XTe({ label: e, value: t, onQuery: n }) {
+var XTe = bj("search");
+function ZTe({ label: e, value: t, onQuery: n }) {
let [r, i] = (0, b.useState)(t), a = (0, b.useRef)(!1), o = (0, b.useRef)(void 0);
(0, b.useEffect)(() => () => clearTimeout(o.current), []);
let s = (e) => {
@@ -53081,16 +53081,16 @@ function XTe({ label: e, value: t, onQuery: n }) {
onCompositionEnd: (e) => {
a.current = !1, s(e.target.value);
},
- children: /* @__PURE__ */ (0, x.jsx)(PP, {
+ children: /* @__PURE__ */ (0, x.jsx)(NP, {
"aria-label": e,
value: r,
enterKeyHint: "search",
onChange: (e) => {
i(e), a.current || s(e);
},
- children: /* @__PURE__ */ (0, x.jsx)(IP, {
+ children: /* @__PURE__ */ (0, x.jsx)(FP, {
type: "search",
- leadingIcon: YTe,
+ leadingIcon: XTe,
spellCheck: !1,
autoComplete: "off",
onKeyDown: (e) => {
@@ -53100,14 +53100,14 @@ function XTe({ label: e, value: t, onQuery: n }) {
})
});
}
-function ZTe(e) {
- let [t, n] = (0, b.useState)(() => hF({
+function QTe(e) {
+ let [t, n] = (0, b.useState)(() => mF({
kind: e.kind,
q: e.q,
scope: e.scope,
view: e.view,
category: e.category
- })), [r, i] = (0, b.useState)(e.layout), [a, o] = (0, b.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, b.useState)("any"), l = (0, b.useRef)(null), { kind: u, q: d, scope: f, view: p, category: m } = t, h = lF[u], g = u === "tags" && f === "online", _ = u === "performers" && f === "online";
+ })), [r, i] = (0, b.useState)(e.layout), [a, o] = (0, b.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, b.useState)("any"), l = (0, b.useRef)(null), { kind: u, q: d, scope: f, view: p, category: m } = t, h = cF[u], g = u === "tags" && f === "online", _ = u === "performers" && f === "online";
(0, b.useEffect)(() => {
if (t.kind === e.kind && t.scope === e.scope && t.category === e.category) return;
let n = !0;
@@ -53125,7 +53125,7 @@ function ZTe(e) {
...r
};
y(Object.keys(r).every((e) => e === "q")), n(a), e.route(a, { replace: i });
- }, C = yF(gF(t)), w = pt({
+ }, C = vF(hF(t)), w = pt({
queryKey: C.queryKey,
queryFn: ({ pageParam: e, signal: t }) => C.queryFn({
pageParam: e,
@@ -53134,7 +53134,7 @@ function ZTe(e) {
initialPageParam: 0,
getNextPageParam: C.getNextPageParam,
placeholderData: v ? fe : void 0
- }), T = Abe(w.data), E = !!w.hasNextPage && !w.isPlaceholderData, D = jbe(T.length, !!w.hasNextPage), O = `${u}:${f}:${d}`, k = (0, b.useRef)(null), A = w.data?.pages[0]?.categories;
+ }), T = jbe(w.data), E = !!w.hasNextPage && !w.isPlaceholderData, D = Mbe(T.length, !!w.hasNextPage), O = `${u}:${f}:${d}`, k = (0, b.useRef)(null), A = w.data?.pages[0]?.categories;
A && !w.isPlaceholderData && (k.current = {
key: O,
counts: A
@@ -53146,14 +53146,14 @@ function ZTe(e) {
let ee = (0, b.useMemo)(() => u === "tags" ? T.map((t) => ({
...t,
label: e.tagLabel(t.k)
- })) : [], [T, u]), te = (0, b.useMemo)(() => u === "tags" && p === "alphabet" ? Pbe(ee, (t) => e.tagLabel(t)) : [], [
+ })) : [], [T, u]), te = (0, b.useMemo)(() => u === "tags" && p === "alphabet" ? Fbe(ee, (t) => e.tagLabel(t)) : [], [
ee,
p,
u
]), P = (t) => {
i(t), e.savePreference({ layout: t });
- }, ne = u === "tags" ? /* @__PURE__ */ (0, x.jsx)(Fz, {
- tabs: GTe,
+ }, ne = u === "tags" ? /* @__PURE__ */ (0, x.jsx)(Pz, {
+ tabs: KTe,
value: f,
label: "词表",
onChange: (e) => {
@@ -53163,8 +53163,8 @@ function ZTe(e) {
view: e === "online" ? "alphabet" : p
});
}
- }) : mF(u) ? /* @__PURE__ */ (0, x.jsx)(Fz, {
- tabs: WTe,
+ }) : pF(u) ? /* @__PURE__ */ (0, x.jsx)(Pz, {
+ tabs: GTe,
value: u,
label: "公司类型",
onChange: (e) => S({ kind: e })
@@ -53173,7 +53173,7 @@ function ZTe(e) {
let n = new Set(e);
return n.delete(t) || n.add(t), n;
}) : e.showTags([t], "all");
- }, ie = (g ? dF : uF).filter(N);
+ }, ie = (g ? uF : lF).filter(N);
return /* @__PURE__ */ (0, x.jsxs)("div", {
ref: l,
"data-index-page": u,
@@ -53188,12 +53188,12 @@ function ZTe(e) {
className: "flex items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",
children: h
}),
- pF(u) ? /* @__PURE__ */ (0, x.jsx)("span", {
+ fF(u) ? /* @__PURE__ */ (0, x.jsx)("span", {
"data-index-count": "",
className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums",
children: w.isPending || w.isError ? "" : D
}) : null,
- pF(u) ? /* @__PURE__ */ (0, x.jsx)(JTe, {
+ fF(u) ? /* @__PURE__ */ (0, x.jsx)(YTe, {
kind: u,
layout: r,
onChange: P
@@ -53202,7 +53202,7 @@ function ZTe(e) {
"aria-hidden": !0,
className: "hidden h-0 basis-full max-board-narrow:order-2 max-board-narrow:block"
}),
- /* @__PURE__ */ (0, x.jsx)(XTe, {
+ /* @__PURE__ */ (0, x.jsx)(ZTe, {
label: `过滤${h}`,
value: d,
onQuery: (e) => {
@@ -53211,8 +53211,8 @@ function ZTe(e) {
})
]
}),
- u === "performers" || u === "creators" ? /* @__PURE__ */ (0, x.jsx)(Fz, {
- tabs: KTe,
+ u === "performers" || u === "creators" ? /* @__PURE__ */ (0, x.jsx)(Pz, {
+ tabs: qTe,
value: _ ? "online" : u,
label: "人物名册",
onChange: (t) => {
@@ -53226,8 +53226,8 @@ function ZTe(e) {
ne,
u === "performers" && f === "local" ? /* @__PURE__ */ (0, x.jsx)("div", {
"aria-label": "身份分类",
- className: cF,
- children: sF.filter((e) => e[0] === m || N(e)).map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(G, {
+ className: sF,
+ children: oF.filter((e) => e[0] === m || N(e)).map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(G, {
variant: m === e ? "primary" : "secondary",
size: "small",
"aria-pressed": m === e,
@@ -53235,7 +53235,7 @@ function ZTe(e) {
children: t
}, e))
}) : null,
- u === "tags" ? /* @__PURE__ */ (0, x.jsx)(HTe, {
+ u === "tags" ? /* @__PURE__ */ (0, x.jsx)(UTe, {
categories: ie,
category: m,
online: g,
@@ -53261,7 +53261,7 @@ function ZTe(e) {
}) }
});
if (w.isError) return /* @__PURE__ */ (0, x.jsx)(GO, {
- icon: xj("alert"),
+ icon: bj("alert"),
title: `没能读取${h}`,
actions: /* @__PURE__ */ (0, x.jsx)(G, {
variant: "secondary",
@@ -53270,18 +53270,18 @@ function ZTe(e) {
}),
children: _t(w.error)
});
- if (!T.length) return /* @__PURE__ */ (0, x.jsx)($Te, {
+ if (!T.length) return /* @__PURE__ */ (0, x.jsx)(eEe, {
kind: u,
filtered: !!d || m !== "all",
online: g || _,
configurable: e.configurable
});
- if (_) return /* @__PURE__ */ (0, x.jsx)(Lbe, {
+ if (_) return /* @__PURE__ */ (0, x.jsx)(Rbe, {
items: T,
layout: r,
props: e
});
- if (pF(u)) return /* @__PURE__ */ (0, x.jsx)(CF, {
+ if (fF(u)) return /* @__PURE__ */ (0, x.jsx)(SF, {
kind: u,
items: T,
layout: r,
@@ -53292,10 +53292,10 @@ function ZTe(e) {
picked: a,
press: re
};
- return p === "alphabet" ? /* @__PURE__ */ (0, x.jsx)(RTe, {
+ return p === "alphabet" ? /* @__PURE__ */ (0, x.jsx)(zTe, {
groups: te,
actions: t
- }) : /* @__PURE__ */ (0, x.jsx)(BTe, {
+ }) : /* @__PURE__ */ (0, x.jsx)(VTe, {
tags: ee,
actions: t
});
@@ -53316,7 +53316,7 @@ function ZTe(e) {
}) : "载入更多"
})
}) : null,
- u === "tags" && !g && e.selectMode ? /* @__PURE__ */ (0, x.jsx)(UTe, {
+ u === "tags" && !g && e.selectMode ? /* @__PURE__ */ (0, x.jsx)(WTe, {
count: a.size,
match: s,
onMatch: c,
@@ -53329,16 +53329,16 @@ function ZTe(e) {
]
});
}
-var QTe = {
+var $Te = {
tags: "标签",
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所"
};
-function $Te({ kind: e, filtered: t, online: n, configurable: r }) {
+function eEe({ kind: e, filtered: t, online: n, configurable: r }) {
if (t) return /* @__PURE__ */ (0, x.jsx)(GO, {
- icon: xj("search"),
+ icon: bj("search"),
title: "没有符合条件的内容",
actions: /* @__PURE__ */ (0, x.jsx)(UO, {
variant: "primary",
@@ -53347,13 +53347,13 @@ function $Te({ kind: e, filtered: t, online: n, configurable: r }) {
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : QTe[e], a = /* @__PURE__ */ (0, x.jsx)(UO, {
+ let i = n && e === "performers" ? "创作者" : $Te[e], a = /* @__PURE__ */ (0, x.jsx)(UO, {
variant: !r || n ? "primary" : "secondary",
href: "/follow-manage?tab=add",
children: "添加关注"
});
return /* @__PURE__ */ (0, x.jsx)(GO, {
- icon: xj(e === "tags" ? "tags" : "user-round"),
+ icon: bj(e === "tags" ? "tags" : "user-round"),
title: `还没有${i}`,
actions: n ? a : /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [r ? /* @__PURE__ */ (0, x.jsx)(G, {
variant: "primary",
@@ -53363,15 +53363,15 @@ function $Te({ kind: e, filtered: t, online: n, configurable: r }) {
children: n ? `添加关注来源并获取内容后,这里会显示来源上的${i}。` : "添加内容并补充资料后,这里会显示对应信息。"
});
}
-var Lz = {
+var Iz = {
video: ["视频", "play"],
image: ["图片", "pics"],
archive: ["压缩包", "file-archive"],
audio: ["音频", "file-audio"],
url: ["网址快捷方式", "globe"],
other: ["其它文件", "hard-drive"]
-}, eEe = (e) => Lz[e.junk_kind || "other"] || Lz.other;
-function tEe(e) {
+}, tEe = (e) => Iz[e.junk_kind || "other"] || Iz.other;
+function nEe(e) {
return e === "dismissed" ? {
operation: "reconsider-junk",
label: "重新判断",
@@ -53382,21 +53382,21 @@ function tEe(e) {
glyph: "check"
};
}
-var Rz = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), nEe = (e, t) => [
+var Lz = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), rEe = (e, t) => [
"junk-queue",
e.view,
e.kind,
t
];
-function rEe({ kind: e, view: t }) {
+function iEe({ kind: e, view: t }) {
let n = new URLSearchParams({
limit: "200",
status: t
});
return e && n.set("kind", e), n.toString();
}
-async function iEe(e, t) {
- let n = await z(`/api/ads?${rEe(e)}`, t);
+async function aEe(e, t) {
+ let n = await z(`/api/ads?${iEe(e)}`, t);
return {
...n,
items: n.items || []
@@ -53404,19 +53404,19 @@ async function iEe(e, t) {
}
//#endregion
//#region src/react/junk-queue/junk-card.tsx
-function zz({ name: e }) {
+function Rz({ name: e }) {
return /* @__PURE__ */ (0, x.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, x.jsx)("use", { href: `#i-${e}` })
});
}
-var Bz = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
-function aEe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
- let o = (0, b.useRef)(null), [s, c] = (0, b.useState)(""), [l, u] = (0, b.useState)(""), d = e.junk_kind || "other", [f, p] = eEe(e), m = String(e.name || ""), h = tEe(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]") || Bz(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
+var zz = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
+function oEe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
+ let o = (0, b.useRef)(null), [s, c] = (0, b.useState)(""), [l, u] = (0, b.useState)(""), d = e.junk_kind || "other", [f, p] = tEe(e), m = String(e.name || ""), h = nEe(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]") || zz(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
}, y = (t) => {
- t.stopPropagation(), Bz(r, t) ? (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey)) : o.current && a.open(e, o.current);
+ t.stopPropagation(), zz(r, t) ? (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey)) : o.current && a.open(e, o.current);
}, S = (t) => {
t.preventDefault(), t.stopPropagation(), s !== "reveal" && (c("reveal"), u(""), a.reveal(e).then(u, () => {}).finally(() => c("")));
}, C = (t) => (n) => {
@@ -53447,7 +53447,7 @@ function aEe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"data-junk-kind": d,
"data-selected": n ? "" : void 0,
onClick: v,
- onMouseDown: Qj,
+ onMouseDown: Zj,
children: [
/* @__PURE__ */ (0, x.jsxs)("div", {
"data-media-pic": "",
@@ -53455,7 +53455,7 @@ function aEe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
children: [
/* @__PURE__ */ (0, x.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, x.jsx)(zz, { name: p }), /* @__PURE__ */ (0, x.jsx)("b", { children: f })]
+ children: [/* @__PURE__ */ (0, x.jsx)(Rz, { name: p }), /* @__PURE__ */ (0, x.jsx)("b", { children: f })]
}),
g ? /* @__PURE__ */ (0, x.jsx)("span", {
"data-media-art": "thumb",
@@ -53467,7 +53467,7 @@ function aEe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
}),
/* @__PURE__ */ (0, x.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, x.jsx)(zz, { name: "check" })
+ children: /* @__PURE__ */ (0, x.jsx)(Rz, { name: "check" })
})
]
}),
@@ -53504,7 +53504,7 @@ function aEe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
children: [s === "reveal" ? /* @__PURE__ */ (0, x.jsx)("span", {
"data-junk-spinner": "",
dangerouslySetInnerHTML: { __html: Ya("正在定位") }
- }) : /* @__PURE__ */ (0, x.jsx)(zz, { name: "folder-open" }), /* @__PURE__ */ (0, x.jsx)("span", {
+ }) : /* @__PURE__ */ (0, x.jsx)(Rz, { name: "folder-open" }), /* @__PURE__ */ (0, x.jsx)("span", {
"data-junk-label": "",
children: "打开位置"
})]
@@ -53516,7 +53516,7 @@ function aEe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"aria-label": h.label,
...w(h.operation),
onClick: C(h.operation),
- children: [/* @__PURE__ */ (0, x.jsx)(zz, { name: h.glyph }), /* @__PURE__ */ (0, x.jsx)("span", {
+ children: [/* @__PURE__ */ (0, x.jsx)(Rz, { name: h.glyph }), /* @__PURE__ */ (0, x.jsx)("span", {
"data-junk-label": "",
children: h.label
})]
@@ -53528,7 +53528,7 @@ function aEe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"aria-label": "移入回收站",
...w("dispose"),
onClick: C("dispose"),
- children: [/* @__PURE__ */ (0, x.jsx)(zz, { name: "trash" }), /* @__PURE__ */ (0, x.jsx)("span", {
+ children: [/* @__PURE__ */ (0, x.jsx)(Rz, { name: "trash" }), /* @__PURE__ */ (0, x.jsx)("span", {
"data-junk-label": "",
children: "移入回收站"
})]
@@ -53543,7 +53543,7 @@ function aEe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
]
});
}
-var oEe = (0, b.memo)(aEe), Vz = [
+var sEe = (0, b.memo)(oEe), Bz = [
[
"",
"全部",
@@ -53579,65 +53579,65 @@ var oEe = (0, b.memo)(aEe), Vz = [
"其它",
"hard-drive"
]
-], sEe = (e) => Vz.find(([t]) => t === e)?.[0] ?? "";
-function Hz(e) {
+], cEe = (e) => Bz.find(([t]) => t === e)?.[0] ?? "";
+function Vz(e) {
let t = new URLSearchParams(e);
return {
- kind: sEe(t.get("type")),
+ kind: cEe(t.get("type")),
view: t.get("view") === "dismissed" ? "dismissed" : "pending"
};
}
-function Uz(e = "", t = "pending") {
+function Hz(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 Wz(e) {
+function Uz(e) {
return e === "dismissed" ? {
view: "pending",
label: "返回待判断",
glyph: "rotate-ccw",
- href: Uz("", "pending")
+ href: Hz("", "pending")
} : {
view: "dismissed",
label: "已排除",
glyph: "eye-off",
- href: Uz("", "dismissed")
+ href: Hz("", "dismissed")
};
}
-var Gz = (e) => e === "dismissed" ? "已排除" : "待判断", Kz = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
-function cEe({ kind: e, view: t }) {
- let n = Vz.map(([n, r, i]) => `<a href="${Uz(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${Kz(i)}${L(r)}</a>`).join(""), r = Wz(t);
- return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${ZN(Gz(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\"" : ""}>${Kz(r.glyph)}${r.label}</a></nav></div></div></div>`;
+var Wz = (e) => e === "dismissed" ? "已排除" : "待判断", Gz = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
+function lEe({ kind: e, view: t }) {
+ let n = Bz.map(([n, r, i]) => `<a href="${Hz(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${Gz(i)}${L(r)}</a>`).join(""), r = Uz(t);
+ return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${XN(Wz(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\"" : ""}>${Gz(r.glyph)}${r.label}</a></nav></div></div></div>`;
}
//#endregion
//#region src/react/junk-queue/junk-count.tsx
-function qz({ name: e }) {
+function Kz({ name: e }) {
return /* @__PURE__ */ (0, x.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, x.jsx)("use", { href: `#i-${e}` })
});
}
-function Jz({ scope: e, count: t }) {
+function qz({ scope: e, count: t }) {
return t ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [" ", /* @__PURE__ */ (0, x.jsx)("span", {
"data-count-badge": `junk:${e}`,
children: t.toLocaleString()
})] }) : null;
}
-function lEe({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = dP(), a = (0, b.useRef)(null), { kind: o, view: s } = e, c = Ok(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? Vz.map(([e]) => Rz(t, e)).join(",") : ""}`), l = Wz(s), u = (e) => {
+function uEe({ route: e, page: t, failed: n, onNavigate: r }) {
+ let i = uP(), a = (0, b.useRef)(null), { kind: o, view: s } = e, c = Ok(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? Bz.map(([e]) => Lz(t, e)).join(",") : ""}`), l = Uz(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") || Uz()));
+ !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || Hz()));
}, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
return /* @__PURE__ */ (0, x.jsxs)("div", {
"data-junk-count": "",
children: [/* @__PURE__ */ (0, x.jsx)("div", {
"data-junk-summary": "",
"aria-live": "polite",
- children: /* @__PURE__ */ (0, x.jsx)(mR, {
- label: Gz(s),
+ children: /* @__PURE__ */ (0, x.jsx)(pR, {
+ label: Wz(s),
figure: d,
pending: !t && !n,
flush: !0
@@ -53657,17 +53657,17 @@ function lEe({ route: e, page: t, failed: n, onNavigate: r }) {
onClick: u,
onPointerLeave: c.leave,
children: [
- Vz.map(([e, n, r]) => /* @__PURE__ */ (0, x.jsxs)("a", {
- href: Uz(e, s),
+ Bz.map(([e, n, r]) => /* @__PURE__ */ (0, x.jsxs)("a", {
+ href: Hz(e, s),
"data-junk-kind-link": e,
"aria-current": e === o ? "page" : void 0,
onPointerEnter: c.hover,
children: [
- /* @__PURE__ */ (0, x.jsx)(qz, { name: r }),
+ /* @__PURE__ */ (0, x.jsx)(Kz, { name: r }),
n,
- /* @__PURE__ */ (0, x.jsx)(Jz, {
+ /* @__PURE__ */ (0, x.jsx)(qz, {
scope: e,
- count: t ? Rz(t, e) : 0
+ count: t ? Lz(t, e) : 0
})
]
}, e || "all")),
@@ -53681,9 +53681,9 @@ function lEe({ 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, x.jsx)(qz, { name: l.glyph }),
+ /* @__PURE__ */ (0, x.jsx)(Kz, { name: l.glyph }),
l.label,
- /* @__PURE__ */ (0, x.jsx)(Jz, {
+ /* @__PURE__ */ (0, x.jsx)(qz, {
scope: "dismissed",
count: Number(t?.dismissed_total || 0)
})
@@ -53696,33 +53696,33 @@ function lEe({ route: e, page: t, failed: n, onNavigate: r }) {
}
//#endregion
//#region src/react/junk-queue/junk-queue-page.tsx
-var uEe = xj("check"), dEe = (e, t) => e[1] === t.view && e[2] === t.kind;
-function fEe(e) {
+var dEe = bj("check"), fEe = (e, t) => e[1] === t.view && e[2] === t.kind;
+function pEe(e) {
let t = {
kind: e.kind,
view: e.view
}, n = dt({
- queryKey: nEe(t, e.revision),
- queryFn: ({ signal: e }) => iEe(t, e),
- placeholderData: (e, n) => n && dEe(n.queryKey, t) ? e : void 0
+ queryKey: rEe(t, e.revision),
+ queryFn: ({ signal: e }) => aEe(t, e),
+ placeholderData: (e, n) => n && fEe(n.queryKey, t) ? e : void 0
});
(0, b.useEffect)(() => {
n.isFetching || e.settled?.(e.revision);
}, [n.isFetching, e.revision]);
- let r = pEe(e.countRow), i = n.isPending;
+ let r = mEe(e.countRow), i = n.isPending;
(0, b.useLayoutEffect)(() => {
let t = e.countRow;
t && (i ? t.setAttribute("aria-busy", "true") : t.removeAttribute("aria-busy"));
}, [e.countRow, i]), (0, b.useLayoutEffect)(() => {
r && n.data && oo(r, "junk");
}, [r, n.data]);
- let { navigate: a } = e.actions, o = r ? (0, mt.createPortal)(/* @__PURE__ */ (0, x.jsx)(lEe, {
+ let { navigate: a } = e.actions, o = r ? (0, mt.createPortal)(/* @__PURE__ */ (0, x.jsx)(uEe, {
route: t,
page: n.data,
failed: n.isError && !n.data,
onNavigate: a
}), r) : null;
- return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [o, /* @__PURE__ */ (0, x.jsx)(mEe, {
+ return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [o, /* @__PURE__ */ (0, x.jsx)(hEe, {
props: e,
data: n.data,
pending: i,
@@ -53730,7 +53730,7 @@ function fEe(e) {
retry: () => void n.refetch()
}, `${t.view}:${t.kind}`)] });
}
-function pEe(e) {
+function mEe(e) {
let [t, n] = (0, b.useState)(null);
return (0, b.useLayoutEffect)(() => {
if (!e) return;
@@ -53740,8 +53740,8 @@ function pEe(e) {
};
}, [e]), t;
}
-function mEe({ props: e, data: t, pending: n, error: r, retry: i }) {
- let a = Jj(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, b.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, b.useCallback)(() => {
+function hEe({ props: e, data: t, pending: n, error: r, retry: i }) {
+ let a = qj(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, b.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, b.useCallback)(() => {
d?.() !== !1 && c((e) => e + 1);
}, [d]);
return /* @__PURE__ */ (0, x.jsxs)("div", {
@@ -53749,14 +53749,14 @@ function mEe({ 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, x.jsx)(Yj, {
+ if (!t) return /* @__PURE__ */ (0, x.jsx)(Jj, {
message: _t(r),
onRetry: i
});
if (!l.length) {
let t = e.view === "dismissed";
return /* @__PURE__ */ (0, x.jsx)(GO, {
- icon: uEe,
+ icon: dEe,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
children: t ? "点“不是垃圾”的资源会保留在这里,可随时重新判断。" : "当前分类没有候选文件。"
});
@@ -53766,7 +53766,7 @@ function mEe({ 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, x.jsx)(oEe, {
+ children: u.map((t) => /* @__PURE__ */ (0, x.jsx)(sEe, {
item: t,
view: e.view,
selected: e.selected.has(t.id),
@@ -53775,7 +53775,7 @@ function mEe({ props: e, data: t, pending: n, error: r, retry: i }) {
actions: e.actions
}, t.id))
}),
- u.length < l.length ? /* @__PURE__ */ (0, x.jsx)(hEe, { onMore: f }, s) : null,
+ u.length < l.length ? /* @__PURE__ */ (0, x.jsx)(gEe, { onMore: f }, s) : null,
u.length >= l.length && Number(t.total || 0) > l.length ? /* @__PURE__ */ (0, x.jsx)("p", {
"data-junk-truncated": "",
className: "py-6 text-center text-caption-1-regular text-text-secondary",
@@ -53785,7 +53785,7 @@ function mEe({ props: e, data: t, pending: n, error: r, retry: i }) {
})()]
});
}
-function hEe({ onMore: e }) {
+function gEe({ onMore: e }) {
let t = (0, b.useRef)(null);
return (0, b.useEffect)(() => {
let n = t.current;
@@ -53803,7 +53803,7 @@ function hEe({ onMore: e }) {
}
//#endregion
//#region src/card-art/feed-identity.ts
-function Yz(e) {
+function Jz(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((e) => {
let t = $i(e.name, e, null);
return "id" in e && e.id ? `<a class="mav" href="${L(Dt("performer", e.name))}" aria-label="打开女优页:${L(e.name)}">${t}</a>` : `<span class="mav" title="${L(e.name)}">${t}</span>`;
@@ -53812,51 +53812,51 @@ function Yz(e) {
}
//#endregion
//#region src/react/jav/jav-navigation.ts
-var Xz = [
+var Yz = [
["library", "我的馆藏"],
["discover", "发现"],
["wants", "想要"]
-], Zz = (e) => Xz.some(([t]) => t === e) ? e : "library", gEe = (e) => Zz(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
-function _Ee(e) {
+], Xz = (e) => Yz.some(([t]) => t === e) ? e : "library", _Ee = (e) => Xz(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
+function vEe(e) {
let t = new URLSearchParams(e);
return t.delete("tab"), t.set("jav", "1"), "/?" + t;
}
//#endregion
//#region src/jav-skeleton.ts
-var Qz = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, vEe = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, $z = "w-full min-w-0";
-function eB(e, t = gT()) {
- if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${Qz("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${vEe("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">${Qz("80%")}${Qz("60%")}${Qz("40%")}</div></div>`).join("")}</div>`;
- let n = wT({
- ...CT({
+var Zz = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, yEe = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, Qz = "w-full min-w-0";
+function $z(e, t = _T()) {
+ if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${Zz("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${yEe("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">${Zz("80%")}${Zz("60%")}${Zz("40%")}</div></div>`).join("")}</div>`;
+ let n = TT({
+ ...wT({
active: !0,
home: !1,
portrait: !1
}),
size: t
});
- return `<div data-media-grid class="${$z}" data-skeleton="jav-discover">${Array.from({ length: 6 }, () => `<div data-jav-skeleton-card class="flex min-w-0 flex-col gap-3">
+ return `<div data-media-grid class="${Qz}" data-skeleton="jav-discover">${Array.from({ length: 6 }, () => `<div data-jav-skeleton-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 class="flex h-10 flex-col">${Qz("85%")}${Qz("65%")}</div>
- <div class="flex h-10 items-center gap-2"><span data-jav-skeleton-avatar class="skeleton block shrink-0"></span>${Qz("55%")}</div>
+ <div class="flex h-10 flex-col">${Zz("85%")}${Zz("65%")}</div>
+ <div class="flex h-10 items-center gap-2"><span data-jav-skeleton-avatar class="skeleton block shrink-0"></span>${Zz("55%")}</div>
<div data-media-tags><span class="skeleton block h-5 w-24 rounded-md"></span></div>
- ${Qz("55%")}
+ ${Zz("55%")}
<div data-jav-skeleton-actions class="flex flex-wrap gap-2"><span class="skeleton block h-9 w-20 rounded-md"></span><span class="skeleton block h-9 w-12 rounded-md"></span><span class="skeleton block h-9 w-26 rounded-md"></span></div>
</div>`).join("")}</div>`;
}
-function yEe(e) {
+function bEe(e) {
let t = e === "wants" ? "筛选想要" : "筛选推荐";
return `<div class="peach-react"><div class="flex w-full flex-col gap-6">
- <div class="flex w-full flex-col gap-4"><div class="flex flex-wrap items-center justify-between gap-2"><h2 data-page-title class="text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium">JAV</h2>${YN({
+ <div class="flex w-full flex-col gap-4"><div class="flex flex-wrap items-center justify-between gap-2"><h2 data-page-title class="text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium">JAV</h2>${JN({
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">${Xz.map(([t, n]) => `<span class="relative flex flex-none items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular ${t === e ? "bg-background-tertiary-default text-text-primary" : "text-text-secondary"}">${n}</span>`).join("")}</div></div>
- <form aria-label="${t}">${JN("筛选番号、女优或标题", "", t)}</form>
- ${e === "wants" ? `<div class="rounded-2lg bg-background-secondary-default px-6 py-5"><h3 class="mb-4 text-title-2-medium text-text-primary">按番号添加</h3>${Qz("100%")}</div>${eB(e)}` : `<section class="flex min-w-0 flex-col gap-4">${bEe()}${eB(e)}</section>`}</div></div>`;
+ <div class="relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0">${Yz.map(([t, n]) => `<span class="relative flex flex-none items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular ${t === e ? "bg-background-tertiary-default text-text-primary" : "text-text-secondary"}">${n}</span>`).join("")}</div></div>
+ <form aria-label="${t}">${qN("筛选番号、女优或标题", "", t)}</form>
+ ${e === "wants" ? `<div class="rounded-2lg bg-background-secondary-default px-6 py-5"><h3 class="mb-4 text-title-2-medium text-text-primary">按番号添加</h3>${Zz("100%")}</div>${$z(e)}` : `<section class="flex min-w-0 flex-col gap-4">${xEe()}${$z(e)}</section>`}</div></div>`;
}
-function bEe() {
- let e = (e, t) => `<button type="button" data-entity-tag="${e}" data-entity-press="" aria-pressed="${e === "external"}" class="flex h-7.5 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="" ${gT() === e ? "data-selected=\"true\"" : ""} class="flex size-7.5 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${qN(t, "size-4")}</span>`;
+function xEe() {
+ let e = (e, t) => `<button type="button" data-entity-tag="${e}" data-entity-press="" aria-pressed="${e === "external"}" class="flex h-7.5 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="" ${_T() === e ? "data-selected=\"true\"" : ""} class="flex size-7.5 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${KN(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></div></div>
@@ -53864,28 +53864,28 @@ function bEe() {
<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>
<span data-entity-sorts><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>
- <button type="button" data-entity-sort="taste" data-entity-press aria-pressed="true">口味${qN("arrow-down", "size-3.5")}</button><button type="button" data-entity-sort="release" data-entity-press aria-pressed="false">发行</button>
+ <button type="button" data-entity-sort="taste" data-entity-press aria-pressed="true">口味${KN("arrow-down", "size-3.5")}</button><button type="button" data-entity-sort="release" data-entity-press aria-pressed="false">${Mw[1]}</button>
</span>
</div>
</div>`;
}
//#endregion
//#region src/react/activity/work-code.ts
-var tB = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), nB = (e, t) => !!tB(e) && tB(e) === tB(t);
+var eB = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), tB = (e, t) => !!eB(e) && eB(e) === eB(t);
//#endregion
//#region src/react/activity/resource-search.tsx
-function xEe({ className: e }) {
+function SEe({ className: e }) {
return /* @__PURE__ */ (0, x.jsx)("span", {
className: e,
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: Ya("") }
});
}
-function SEe(e) {
+function CEe(e) {
return ["中字", "中文字幕"].includes(e?.trim() ?? "") ? "chinese" : ["无码", "无码破解"].includes(e?.trim() ?? "") ? "uncensored" : "quality";
}
-function CEe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
- let [a, o] = (0, b.useState)(e), [s, c] = (0, b.useState)(() => SEe(t)), [l, u] = (0, b.useState)(""), [d, f] = (0, b.useState)(""), [p, m] = (0, b.useState)(null), [h, g] = (0, b.useState)(""), [_, v] = (0, b.useState)(""), y = XO(), S = (0, b.useRef)(null);
+function wEe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
+ let [a, o] = (0, b.useState)(e), [s, c] = (0, b.useState)(() => CEe(t)), [l, u] = (0, b.useState)(""), [d, f] = (0, b.useState)(""), [p, m] = (0, b.useState)(null), [h, g] = (0, b.useState)(""), [_, v] = (0, b.useState)(""), y = XO(), S = (0, b.useRef)(null);
(0, b.useEffect)(() => () => S.current?.abort(), []);
let C = () => {
if (!a.trim() || y.busy) return;
@@ -53901,7 +53901,7 @@ function CEe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
let e = new AbortController();
S.current = e, z(`/api/items?jav=1&q=${encodeURIComponent(t)}&limit=10`, e.signal).then((n) => {
if (e.signal.aborted) return;
- let r = (n.items || []).find((e) => nB(e.code, t));
+ let r = (n.items || []).find((e) => tB(e.code, t));
i(r ? {
code: r.code,
title: String(r.catalog_title || r.name || ""),
@@ -53927,13 +53927,13 @@ function CEe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
t,
"。可在下方调整搜索优先项;完整度与水印需要逐条复核。"
] }) : null,
- /* @__PURE__ */ (0, x.jsx)(LP, {
+ /* @__PURE__ */ (0, x.jsx)(IP, {
label: "按番号查找资源",
value: a,
maxLength: 80,
placeholder: "输入番号,按回车搜索",
enterKeyHint: "search",
- leadingIcon: y.busy ? xEe : hO,
+ leadingIcon: y.busy ? SEe : hO,
isReadOnly: !!y.busy,
"aria-busy": !!y.busy,
onChange: o,
@@ -53943,7 +53943,7 @@ function CEe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
}),
/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, x.jsx)(ok, { children: "优先寻找" }), /* @__PURE__ */ (0, x.jsxs)(yP, {
+ children: [/* @__PURE__ */ (0, x.jsx)(ok, { children: "优先寻找" }), /* @__PURE__ */ (0, x.jsxs)(vP, {
"aria-label": "优先寻找",
selectedKey: s,
isDisabled: !!y.busy,
@@ -53951,15 +53951,15 @@ function CEe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
e !== null && c(String(e));
},
children: [
- /* @__PURE__ */ (0, x.jsx)(bP, {
+ /* @__PURE__ */ (0, x.jsx)(yP, {
id: "quality",
children: "高清"
}),
- /* @__PURE__ */ (0, x.jsx)(bP, {
+ /* @__PURE__ */ (0, x.jsx)(yP, {
id: "chinese",
children: "中字"
}),
- /* @__PURE__ */ (0, x.jsx)(bP, {
+ /* @__PURE__ */ (0, x.jsx)(yP, {
id: "uncensored",
children: "无码"
})
@@ -53968,12 +53968,12 @@ function CEe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
}),
/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex gap-3 max-sm:flex-col",
- children: [/* @__PURE__ */ (0, x.jsx)(LP, {
+ children: [/* @__PURE__ */ (0, x.jsx)(IP, {
label: "最小体积(GiB)",
inputMode: "decimal",
value: l,
onChange: u
- }), /* @__PURE__ */ (0, x.jsx)(LP, {
+ }), /* @__PURE__ */ (0, x.jsx)(IP, {
label: "最大体积(GiB)",
inputMode: "decimal",
value: d,
@@ -54028,19 +54028,19 @@ function CEe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
}
//#endregion
//#region src/react/activity/cloud-download-dialog.tsx
-var wEe = {
+var TEe = {
submitted: "已提交离线下载,进度在活动页",
adopted: "这个磁力已有任务,没有重复提交",
adopted_remote: "远端已有同一任务,已接管"
};
-function rB({ prefill: e, close: t, receipt: n, provider: r }) {
- return /* @__PURE__ */ (0, x.jsx)(tI, {
+function nB({ prefill: e, close: t, receipt: n, provider: r }) {
+ return /* @__PURE__ */ (0, x.jsx)(eI, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
},
width: "form",
- children: e ? /* @__PURE__ */ (0, x.jsx)(TEe, {
+ children: e ? /* @__PURE__ */ (0, x.jsx)(EEe, {
prefill: e,
close: t,
receipt: n,
@@ -54048,7 +54048,7 @@ function rB({ prefill: e, close: t, receipt: n, provider: r }) {
}) : null
});
}
-function TEe({ prefill: e, close: t, receipt: n, provider: r }) {
+function EEe({ prefill: e, close: t, receipt: n, provider: r }) {
let i = dt({
queryKey: bk,
queryFn: ({ signal: e }) => z(`${yk}?limit=50`, e),
@@ -54067,7 +54067,7 @@ function TEe({ prefill: e, close: t, receipt: n, provider: r }) {
onClick: t
})]
});
- return a ? /* @__PURE__ */ (0, x.jsx)(EEe, {
+ return a ? /* @__PURE__ */ (0, x.jsx)(DEe, {
header: o,
snapshot: a,
prefill: e,
@@ -54096,7 +54096,7 @@ function TEe({ prefill: e, close: t, receipt: n, provider: r }) {
]
});
}
-function EEe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
+function DEe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
let o = C(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, b.useState)(c?.key || "pikpak"), [d, f] = (0, b.useState)(""), [p, m] = (0, b.useState)(n.code ?? ""), [h, g] = (0, b.useState)(c?.target || ""), [_, v] = (0, b.useState)(n.code ? n : null), [y, S] = (0, b.useState)(""), w = t.available && s.some((e) => e.key === l), T = XO(), E = (0, b.useRef)(null), D = (e) => {
u(e), g(s.find((t) => t.key === e)?.target ?? "");
};
@@ -54115,7 +54115,7 @@ function EEe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
};
S(""), T.run("submit", (e) => B(yk, t, "POST", e), (e) => {
o.invalidateQueries({ queryKey: bk });
- let t = wEe[e.outcome];
+ let t = TEe[e.outcome];
if (e.ok && t) {
i(t), r();
return;
@@ -54152,22 +54152,22 @@ function EEe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
].filter(Boolean).join(" · ") }) : null]
})]
}) : null,
- /* @__PURE__ */ (0, x.jsx)(CEe, {
+ /* @__PURE__ */ (0, x.jsx)(wEe, {
initialCode: n.code ?? "",
reason: n.searchReason,
onSearch: (e) => {
- nB(e, _?.code) || (v(nB(e, n.code) ? n : null), f("")), m(e);
+ tB(e, _?.code) || (v(tB(e, n.code) ? n : null), f("")), m(e);
},
- onWork: (e) => v((t) => e ? nB(t?.code, e.code) ? {
+ onWork: (e) => v((t) => e ? tB(t?.code, e.code) ? {
...t,
...e,
origin: t?.origin || e.origin
- } : e : nB(t?.code, n.code) ? t : null),
+ } : e : tB(t?.code, n.code) ? t : null),
choose: (e, t) => {
f(e), m(t), E.current?.focus();
}
}),
- /* @__PURE__ */ (0, x.jsx)(LP, {
+ /* @__PURE__ */ (0, x.jsx)(IP, {
ref: E,
label: "磁力链接",
placeholder: "magnet:?xt=urn:btih:…",
@@ -54180,14 +54180,14 @@ function EEe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
className: "flex flex-col gap-1",
children: [
/* @__PURE__ */ (0, x.jsx)(ok, { children: "下载到" }),
- /* @__PURE__ */ (0, x.jsx)(yP, {
+ /* @__PURE__ */ (0, x.jsx)(vP, {
"aria-label": "下载到",
selectedKey: l,
isDisabled: !s.length,
onSelectionChange: (e) => {
e !== null && D(String(e));
},
- children: s.map((e) => /* @__PURE__ */ (0, x.jsx)(bP, {
+ children: s.map((e) => /* @__PURE__ */ (0, x.jsx)(yP, {
id: e.key,
textValue: e.label,
children: /* @__PURE__ */ (0, x.jsx)(vk, {
@@ -54210,7 +54210,7 @@ function EEe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
children: "下载渠道设置"
})]
}),
- /* @__PURE__ */ (0, x.jsx)(LP, {
+ /* @__PURE__ */ (0, x.jsx)(IP, {
label: "目标目录",
placeholder: "/云下载",
autoComplete: "off",
@@ -54218,14 +54218,14 @@ function EEe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
value: h,
onChange: g
}),
- n.code ? null : /* @__PURE__ */ (0, x.jsx)(LP, {
+ n.code ? null : /* @__PURE__ */ (0, x.jsx)(IP, {
label: "番号",
placeholder: "可不填",
autoComplete: "off",
maxLength: 60,
value: p,
onChange: (e) => {
- m(e), nB(e, _?.code) || v(null);
+ m(e), tB(e, _?.code) || v(null);
}
}),
y || T.error ? /* @__PURE__ */ (0, x.jsx)(ak, { children: y || T.error }) : null
@@ -54249,16 +54249,16 @@ function EEe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
}
//#endregion
//#region src/react/wants/resource-cache.ts
-var iB = "peach.want-resources.v1", aB = 864e5;
-function oB(e, t = Date.now()) {
+var rB = "peach.want-resources.v1", iB = 864e5;
+function aB(e, t = Date.now()) {
let n = Date.parse(e || ""), r = new Date(t), i = new Date(Date.UTC(r.getFullYear(), r.getMonth(), r.getDate())), a = i.getUTCDate();
i.setUTCHours(0, 0, 0, 0), i.setUTCDate(1), i.setUTCMonth(i.getUTCMonth() - 3);
let o = new Date(Date.UTC(i.getUTCFullYear(), i.getUTCMonth() + 1, 0)).getUTCDate();
- return i.setUTCDate(Math.min(a, o)), Number.isFinite(n) && n < i.getTime() ? 365 * aB : 7 * aB;
+ return i.setUTCDate(Math.min(a, o)), Number.isFinite(n) && n < i.getTime() ? 365 * iB : 7 * iB;
}
-function sB() {
+function oB() {
try {
- let e = JSON.parse(localStorage.getItem(iB) || "[]");
+ let e = JSON.parse(localStorage.getItem(rB) || "[]");
return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items) && (e.result.items.length > 0 || !e.result.warnings?.length) && e.result.items.every((e) => e && [
"magnet",
"ed2k",
@@ -54268,14 +54268,14 @@ function sB() {
return [];
}
}
-function DEe(e, t) {
- let n = sB().find((t) => t.code === e);
- return n && Date.now() - n.saved < oB(t) ? n : void 0;
-}
function OEe(e, t) {
+ let n = oB().find((t) => t.code === e);
+ return n && Date.now() - n.saved < aB(t) ? n : void 0;
+}
+function kEe(e, t) {
if (t.state === "ready") try {
- let n = sB().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
- localStorage.setItem(iB, JSON.stringify([{
+ let n = oB().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
+ localStorage.setItem(rB, JSON.stringify([{
code: e,
saved: Number.isFinite(r) ? r : Date.now(),
result: t
@@ -54284,16 +54284,16 @@ function OEe(e, t) {
}
//#endregion
//#region src/react/wants/resource-display.ts
-function kEe(e) {
+function AEe(e) {
let t = /^([\d,]+)\s*B$/i.exec(e.trim());
return t ? Ut(Number(t[1].replaceAll(",", ""))) : e || "大小未知";
}
-function AEe(e) {
+function jEe(e) {
return /^更多评论.*(?:VIP|官方 App)/.test(e) ? "来源只返回了部分评论,资源链接可能不完整。" : e;
}
//#endregion
//#region src/react/wants/want-magnets.tsx
-function cB({ icon: e, children: t }) {
+function sB({ icon: e, children: t }) {
return /* @__PURE__ */ (0, x.jsxs)("span", {
className: "inline-flex items-center gap-1",
children: [/* @__PURE__ */ (0, x.jsx)(e, {
@@ -54302,8 +54302,8 @@ function cB({ icon: e, children: t }) {
}), t]
});
}
-function lB({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a, queryUrl: o }) {
- let s = (0, b.useRef)(null), [c, l] = (0, b.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, b.useState)([]), f = XO(), p = C(), m = (0, b.useRef)(!1), h = o ? `${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, b.useMemo)(() => DEe(h, e.release_date), [h, e.release_date]);
+function cB({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a, queryUrl: o }) {
+ let s = (0, b.useRef)(null), [c, l] = (0, b.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, b.useState)([]), f = XO(), p = C(), m = (0, b.useRef)(!1), h = o ? `${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, b.useMemo)(() => OEe(h, e.release_date), [h, e.release_date]);
(0, b.useEffect)(() => {
if (!s.current || c) return;
let e = new IntersectionObserver((t) => {
@@ -54323,15 +54323,15 @@ function lB({ 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 z(`${r}${n ? `${r.includes("?") ? "&" : "?"}refresh=1` : ""}`, t);
- return m.current = n && i.state === "busy", OEe(h, i), i;
+ return m.current = n && i.state === "busy", kEe(h, i), i;
},
initialData: g?.result,
initialDataUpdatedAt: g?.saved,
enabled: c,
retry: !1,
- staleTime: (t) => Date.now() - t.state.dataUpdatedAt < (t.state.data?.state === "error" ? 6e4 : oB(e.release_date)) ? Infinity : 0,
+ staleTime: (t) => Date.now() - t.state.dataUpdatedAt < (t.state.data?.state === "error" ? 6e4 : aB(e.release_date)) ? Infinity : 0,
gcTime: 864e5,
- refetchOnMount: (t) => Date.now() - t.state.dataUpdatedAt >= (t.state.data?.state === "error" ? 6e4 : oB(e.release_date)) && "always",
+ refetchOnMount: (t) => Date.now() - t.state.dataUpdatedAt >= (t.state.data?.state === "error" ? 6e4 : aB(e.release_date)) && "always",
refetchOnWindowFocus: !1,
refetchInterval: (e) => e.state.data?.state === "busy" && 3e3
});
@@ -54385,7 +54385,7 @@ function lB({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
}) : null,
_.data?.warnings?.map((e) => /* @__PURE__ */ (0, x.jsx)(K, {
tone: "neutral",
- children: AEe(e)
+ children: jEe(e)
}, e)),
_.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, x.jsx)(UO, {
variant: "secondary",
@@ -54427,23 +54427,23 @@ function lB({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
}), /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-wrap gap-x-3 gap-y-1 break-words text-caption-1-regular text-text-secondary",
children: [
- /* @__PURE__ */ (0, x.jsx)(cB, {
+ /* @__PURE__ */ (0, x.jsx)(sB, {
icon: nde,
children: e.source
}),
- /* @__PURE__ */ (0, x.jsx)(cB, {
+ /* @__PURE__ */ (0, x.jsx)(sB, {
icon: dO,
- children: kEe(e.size)
+ children: AEe(e.size)
}),
- e.files ? /* @__PURE__ */ (0, x.jsx)(cB, {
+ e.files ? /* @__PURE__ */ (0, x.jsx)(sB, {
icon: que,
children: e.files.replaceAll("個", "个")
}) : null,
- /* @__PURE__ */ (0, x.jsx)(cB, {
+ /* @__PURE__ */ (0, x.jsx)(sB, {
icon: Bue,
children: e.date ? `${e.source === "JavDB 评论" ? "评论" : "收录"} ${e.date}` : "日期未知"
}),
- e.attributes.map((e) => /* @__PURE__ */ (0, x.jsx)(cB, {
+ e.attributes.map((e) => /* @__PURE__ */ (0, x.jsx)(sB, {
icon: pO,
children: e
}, e))
@@ -54500,41 +54500,41 @@ function lB({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
}
//#endregion
//#region src/react/wants/wants.ts
-var uB = "/api/wants", dB = ["wants"], jEe = (e) => [
+var lB = "/api/wants", uB = ["wants"], MEe = (e) => [
"wants",
"follow",
e
-], MEe = [
+], NEe = [
["searching", "待找"],
["unreleased", "未发售"],
["given_up", "暂时放弃"],
["acquired", "已入库"]
-], fB = (e) => z(uB, e), NEe = (e, t) => z(`${uB}?follow=${encodeURIComponent(e)}`, t), pB = (e, t) => B(uB, {
+], dB = (e) => z(lB, e), PEe = (e, t) => z(`${lB}?follow=${encodeURIComponent(e)}`, t), fB = (e, t) => B(lB, {
action: "add",
...e
-}, "POST", t), mB = (e, t) => B(uB, {
+}, "POST", t), pB = (e, t) => B(lB, {
action: "remove",
ids: e
-}, "POST", t), PEe = (e, t) => B(uB, {
+}, "POST", t), FEe = (e, t) => B(lB, {
action: "reset",
ids: e
-}, "POST", t), hB = () => V.invalidateQueries({ queryKey: dB }), gB = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
-function FEe(e) {
+}, "POST", t), mB = () => V.invalidateQueries({ queryKey: uB }), hB = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
+function IEe(e) {
return e.phase === "acquired" ? e.acquired_at ? `入库于 ${e.acquired_at.slice(0, 10)}` : "已入库" : e.phase === "unreleased" ? e.release_date ? `${e.release_date} 发售` : "还没发售" : e.phase === "given_up" ? `查过 ${e.search_count} 次都没找到` : e.fresh ? "新片:查不到也一直留在待找" : e.search_count ? `查过 ${e.search_count} 次` : "还没查过";
}
//#endregion
//#region src/react/wants/want-list.tsx
-var IEe = {
+var LEe = {
code: "手动添加",
feed: "订阅新作",
follow: "关注"
-}, _B = (e) => [
+}, gB = (e) => [
e.release_date,
e.studio,
e.performers,
- IEe[e.origin]
+ LEe[e.origin]
].filter(Boolean).join(" · ");
-function LEe({ want: e }) {
+function REe({ want: e }) {
return /* @__PURE__ */ (0, x.jsxs)("span", {
className: "relative inline-grid w-card-cover shrink-0 aspect-card-cover place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default max-sm:w-24",
children: [/* @__PURE__ */ (0, x.jsx)("span", {
@@ -54550,7 +54550,7 @@ function LEe({ want: e }) {
}) : null]
});
}
-function REe({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDownload: a, downloads: o, provider: s, toast: c }) {
+function zEe({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDownload: a, downloads: o, provider: s, toast: c }) {
let [l, u] = (0, b.useState)(""), d = e.link || l || (e.code ? `https://javdb.com/search?q=${encodeURIComponent(e.code)}&f=all` : "");
return /* @__PURE__ */ (0, x.jsxs)("li", {
"data-want-id": e.id,
@@ -54560,29 +54560,29 @@ function REe({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo
}),
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex min-w-0 items-start gap-4 max-sm:gap-3",
- children: [/* @__PURE__ */ (0, x.jsx)(LEe, { want: e }), /* @__PURE__ */ (0, x.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, x.jsx)(REe, { want: e }), /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-1",
children: [
/* @__PURE__ */ (0, x.jsxs)("p", {
className: "flex min-w-0 flex-wrap items-baseline gap-x-2",
children: [/* @__PURE__ */ (0, x.jsx)("b", {
className: "min-w-0 text-headline-medium wrap-anywhere text-text-primary",
- children: gB(e)
+ children: hB(e)
}), e.code && e.title ? /* @__PURE__ */ (0, x.jsx)("span", {
className: "min-w-0 truncate text-body-2-regular text-text-secondary",
children: e.title
}) : null]
}),
- _B(e) ? /* @__PURE__ */ (0, x.jsx)("p", {
+ gB(e) ? /* @__PURE__ */ (0, x.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: _B(e)
+ children: gB(e)
}) : null,
!e.code || e.phase === "unreleased" || e.phase === "acquired" ? /* @__PURE__ */ (0, x.jsx)("p", {
"data-want-note": "",
className: "text-caption-1-regular text-text-secondary",
- children: FEe(e)
+ children: IEe(e)
}) : null,
- e.scrape_error ? /* @__PURE__ */ (0, x.jsx)(DR, {
+ e.scrape_error ? /* @__PURE__ */ (0, x.jsx)(ER, {
text: e.scrape_error,
prefix: "资料未取得:",
tone: "muted"
@@ -54627,7 +54627,7 @@ function REe({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo
})
]
})]
- }), e.code && (e.phase === "searching" || e.phase === "given_up") ? /* @__PURE__ */ (0, x.jsx)(lB, {
+ }), e.code && (e.phase === "searching" || e.phase === "given_up") ? /* @__PURE__ */ (0, x.jsx)(cB, {
want: e,
readOnly: t,
downloads: o,
@@ -54637,7 +54637,7 @@ function REe({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo
}) : null]
});
}
-function zEe({ phase: e, label: t, rows: n, row: r }) {
+function BEe({ phase: e, label: t, rows: n, row: r }) {
let [i, a] = (0, b.useState)(1), o = tr(n.length, 20, i);
return /* @__PURE__ */ (0, x.jsxs)("section", {
"aria-label": t,
@@ -54661,7 +54661,7 @@ function zEe({ phase: e, label: t, rows: n, row: r }) {
children: [/* @__PURE__ */ (0, x.jsx)("span", {
className: "text-body-2-regular tabular-nums text-text-secondary",
children: `${(o.start + 1).toLocaleString()}–${o.end.toLocaleString()} / ${o.total.toLocaleString()} 条`
- }), /* @__PURE__ */ (0, x.jsx)(Dz, {
+ }), /* @__PURE__ */ (0, x.jsx)(Ez, {
label: `${t}分页`,
page: o.page,
pages: o.pages,
@@ -54671,25 +54671,25 @@ function zEe({ phase: e, label: t, rows: n, row: r }) {
]
});
}
-function BEe({ readOnly: e, toast: t, query: n = "" }) {
+function VEe({ readOnly: e, toast: t, query: n = "" }) {
let [r, i] = (0, b.useState)(""), [a, o] = (0, b.useState)(null), s = XO(), c = dt({
- queryKey: dB,
- queryFn: ({ signal: e }) => fB(e),
+ queryKey: uB,
+ queryFn: ({ signal: e }) => dB(e),
refetchInterval: (e) => e.state.data?.scraping ? 3e3 : !1
}), l = () => {
let n = r.trim();
- n && !e && s.run("add", (e) => pB({ code: n }, e), (e) => {
- t(e.created ? `已加入想要:${gB(e.want)}` : `${gB(e.want)} 已经在想要里`), i(""), hB();
+ n && !e && s.run("add", (e) => fB({ code: n }, e), (e) => {
+ t(e.created ? `已加入想要:${hB(e.want)}` : `${hB(e.want)} 已经在想要里`), i(""), mB();
});
}, u = (e) => {
e.key === "Enter" && !e.nativeEvent.isComposing && (e.preventDefault(), l());
}, d = (e) => {
- s.run(`remove:${e.id}`, (t) => mB([e.id], t), () => {
- t(`已移除:${gB(e)}`), hB();
+ s.run(`remove:${e.id}`, (t) => pB([e.id], t), () => {
+ t(`已移除:${hB(e)}`), mB();
});
}, f = (e) => {
- s.run(`reset:${e.id}`, (t) => PEe([e.id], t), () => {
- t(`${gB(e)} 回到待找`), hB();
+ s.run(`reset:${e.id}`, (t) => FEe([e.id], t), () => {
+ t(`${hB(e)} 回到待找`), mB();
});
}, p = c.data, m = (p?.items || []).filter((e) => !n || [
e.code,
@@ -54718,7 +54718,7 @@ function BEe({ readOnly: e, toast: t, query: n = "" }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, x.jsx)("div", {
className: "min-w-64 grow max-sm:min-w-0",
- children: /* @__PURE__ */ (0, x.jsx)(LP, {
+ children: /* @__PURE__ */ (0, x.jsx)(IP, {
"aria-label": "番号",
placeholder: "输入番号,例如 SSIS-950",
value: r,
@@ -54749,7 +54749,7 @@ function BEe({ readOnly: e, toast: t, query: n = "" }) {
c.isPending ? /* @__PURE__ */ (0, x.jsx)("div", {
role: "status",
"aria-label": "正在读取想要",
- dangerouslySetInnerHTML: { __html: eB("wants") }
+ dangerouslySetInnerHTML: { __html: $z("wants") }
}) : null,
p?.scraping ? /* @__PURE__ */ (0, x.jsx)(ik, {
role: "status",
@@ -54777,13 +54777,13 @@ function BEe({ readOnly: e, toast: t, query: n = "" }) {
title: n ? "没有符合条件的作品" : "还没有想要的作品",
children: n ? "试试其他番号、女优或标题。" : "输入番号,添加想看的作品。"
}) : null,
- MEe.map(([n, r]) => {
+ NEe.map(([n, r]) => {
let i = m.filter((e) => e.phase === n);
- return i.length ? /* @__PURE__ */ (0, x.jsx)(zEe, {
+ return i.length ? /* @__PURE__ */ (0, x.jsx)(BEe, {
phase: n,
label: r,
rows: i,
- row: (n) => /* @__PURE__ */ (0, x.jsx)(REe, {
+ row: (n) => /* @__PURE__ */ (0, x.jsx)(zEe, {
want: n,
readOnly: e,
busy: s.busy,
@@ -54804,7 +54804,7 @@ function BEe({ readOnly: e, toast: t, query: n = "" }) {
}, n.id)
}, n) : null;
}),
- /* @__PURE__ */ (0, x.jsx)(rB, {
+ /* @__PURE__ */ (0, x.jsx)(nB, {
prefill: a,
close: () => o(null),
receipt: t,
@@ -54815,26 +54815,26 @@ function BEe({ readOnly: e, toast: t, query: n = "" }) {
}
//#endregion
//#region src/react/jav/jav.ts
-var vB = (e) => ["jav-discoveries", e], yB = (e, t) => z(`/api/jav/discoveries?scope=${e}&limit=100`, t);
-function bB(e, t, n) {
+var _B = (e) => ["jav-discoveries", e], vB = (e, t) => z(`/api/jav/discoveries?scope=${e}&limit=100`, t);
+function yB(e, t, n) {
let r = oa({
...e,
is_jav: !0
}, t, !1, n);
return r.html || !e.cover_url ? r.html : ia(e, t).replace(/ src="[^"]*"/, ` src="${L(e.cover_url)}" referrerpolicy="no-referrer" data-jav-image="${e.id}" data-jav-cover="${L(e.cover_url)}" data-jav-thumb="" data-jav-image-layout="${t}"${t === "big" ? " data-panel-prior=\"1\"" : ""}`);
}
-async function VEe(e, t) {
+async function HEe(e, t) {
e === "wants" ? await V.fetchQuery({
- queryKey: dB,
- queryFn: () => fB(t)
+ queryKey: uB,
+ queryFn: () => dB(t)
}) : e === "discover" && await V.fetchQuery({
- queryKey: vB("external"),
- queryFn: () => yB("external", t)
+ queryKey: _B("external"),
+ queryFn: () => vB("external", t)
});
}
//#endregion
//#region src/react/jav/jav-header.tsx
-function xB({ tab: e, navigate: t, find: n }) {
+function bB({ tab: e, navigate: t, find: n }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex w-full flex-col gap-4",
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
@@ -54848,25 +54848,25 @@ function xB({ tab: e, navigate: t, find: n }) {
onClick: n,
children: "查找资源"
})]
- }), /* @__PURE__ */ (0, x.jsx)(Fz, {
- tabs: Xz.map(([e, t]) => ({
+ }), /* @__PURE__ */ (0, x.jsx)(Pz, {
+ tabs: Yz.map(([e, t]) => ({
value: e,
label: t
})),
value: e,
label: "JAV 分区",
className: "",
- onChange: (e) => t(gEe(e))
+ onChange: (e) => t(_Ee(e))
})]
});
}
-function HEe({ navigate: e, receipt: t }) {
+function UEe({ navigate: e, receipt: t }) {
let [n, r] = (0, b.useState)(null);
- return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(xB, {
+ return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(bB, {
tab: "library",
navigate: e,
find: () => r({})
- }), /* @__PURE__ */ (0, x.jsx)(rB, {
+ }), /* @__PURE__ */ (0, x.jsx)(nB, {
prefill: n,
close: () => r(null),
receipt: t
@@ -54874,13 +54874,13 @@ function HEe({ navigate: e, receipt: t }) {
}
//#endregion
//#region src/react/jav/jav-page.tsx
-var UEe = xj("search");
-function WEe({ tab: e, readOnly: t, navigate: n, receipt: r }) {
+var WEe = bj("search");
+function GEe({ tab: e, readOnly: t, navigate: n, receipt: r }) {
let [i, a] = (0, b.useState)(null), [o, s] = (0, b.useState)("");
return /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex w-full flex-col gap-6",
children: [
- /* @__PURE__ */ (0, x.jsx)(xB, {
+ /* @__PURE__ */ (0, x.jsx)(bB, {
tab: e,
navigate: n,
find: () => a({})
@@ -54890,29 +54890,29 @@ function WEe({ tab: e, readOnly: t, navigate: n, receipt: r }) {
onSubmit: (e) => {
e.preventDefault();
},
- children: /* @__PURE__ */ (0, x.jsx)(LP, {
+ children: /* @__PURE__ */ (0, x.jsx)(IP, {
type: "search",
"aria-label": e === "discover" ? "筛选推荐" : "筛选想要",
placeholder: "筛选番号、女优或标题",
- leadingIcon: UEe,
+ leadingIcon: WEe,
value: o,
onChange: s,
enterKeyHint: "search"
})
}),
- e === "discover" ? /* @__PURE__ */ (0, x.jsx)(GEe, {
+ e === "discover" ? /* @__PURE__ */ (0, x.jsx)(KEe, {
readOnly: t,
receipt: r,
resource: a,
query: o.trim(),
navigate: n,
clearText: () => s("")
- }) : /* @__PURE__ */ (0, x.jsx)(BEe, {
+ }) : /* @__PURE__ */ (0, x.jsx)(VEe, {
readOnly: t,
toast: r,
query: o.trim()
}),
- /* @__PURE__ */ (0, x.jsx)(rB, {
+ /* @__PURE__ */ (0, x.jsx)(nB, {
prefill: i,
close: () => a(null),
receipt: r
@@ -54920,21 +54920,21 @@ function WEe({ tab: e, readOnly: t, navigate: n, receipt: r }) {
]
});
}
-function GEe({ readOnly: e, receipt: t, resource: n, query: r, navigate: i, clearText: a }) {
+function KEe({ readOnly: e, receipt: t, resource: n, query: r, navigate: i, clearText: a }) {
let [o, s] = (0, b.useState)("external"), [c, l] = (0, b.useState)(""), [u, d] = (0, b.useState)("taste"), [f, p] = (0, b.useState)(!1), m = (0, b.useRef)(null);
(0, b.useEffect)(() => {
let e = [...m.current?.querySelectorAll("[data-catalog-scroll],[data-catalog-tags],[data-filter-row=\"bottom\"]") || []].map((e) => Ao(e, { drag: !0 }));
return () => e.forEach((e) => e.destroy());
}, []);
- let h = aT();
+ let h = oT();
(0, b.useSyncExternalStore)(h.subscribe, h.version, h.version);
- let g = gT(), _ = wT(CT({
+ let g = _T(), _ = TT(wT({
active: !0,
home: !1,
portrait: !1
})), v = dt({
- queryKey: vB(o),
- queryFn: ({ signal: e }) => yB(o, e)
+ queryKey: _B(o),
+ queryFn: ({ signal: e }) => vB(o, e)
}), y = XO(), S = v.data?.items || [], C = [...new Set(S.flatMap((e) => e.tags || []))], w = S.filter((e) => (!c || e.tags?.includes(c)) && (!r || [
e.code,
e.title,
@@ -55009,12 +55009,12 @@ function GEe({ readOnly: e, receipt: t, resource: n, query: r, navigate: i, clea
}) : null,
/* @__PURE__ */ (0, x.jsxs)("span", {
"data-entity-sorts": "",
- children: [/* @__PURE__ */ (0, x.jsx)(Hj, {
+ children: [/* @__PURE__ */ (0, x.jsx)(Vj, {
label: "JAV 卡片版式",
value: g,
- options: dT,
- onChange: TT
- }), /* @__PURE__ */ (0, x.jsx)(Wj, {
+ options: fT,
+ onChange: ET
+ }), /* @__PURE__ */ (0, x.jsx)(Uj, {
sorts: [{
key: "taste",
label: "口味",
@@ -55023,7 +55023,7 @@ function GEe({ readOnly: e, receipt: t, resource: n, query: r, navigate: i, clea
ariaLabel: "按口味匹配排序"
}, {
key: "release",
- label: "发行",
+ label: Mw[1],
pressed: u === "release",
dir: f ? "asc" : "desc",
ariaLabel: "按发行日期排序"
@@ -55038,7 +55038,7 @@ function GEe({ readOnly: e, receipt: t, resource: n, query: r, navigate: i, clea
T ? /* @__PURE__ */ (0, x.jsx)("div", {
role: "status",
"aria-label": "正在读取推荐",
- dangerouslySetInnerHTML: { __html: eB("discover", g) }
+ dangerouslySetInnerHTML: { __html: $z("discover", g) }
}) : null,
v.error ? /* @__PURE__ */ (0, x.jsx)(K, {
tone: "error",
@@ -55062,10 +55062,10 @@ function GEe({ readOnly: e, receipt: t, resource: n, query: r, navigate: i, clea
}) : null,
/* @__PURE__ */ (0, x.jsx)("div", {
"data-media-grid": "",
- className: $z,
+ className: Qz,
style: { "--jav-cover-ratio": _ },
children: w.map((r) => {
- let a = bB(r, g, h.value.javImage);
+ let a = yB(r, g, h.value.javImage);
return /* @__PURE__ */ (0, x.jsxs)("article", {
"data-media-card": "",
"data-jav-card": "",
@@ -55082,12 +55082,12 @@ function GEe({ readOnly: e, receipt: t, resource: n, query: r, navigate: i, clea
"data-media-pic": "",
"data-jav-cover-box": "",
className: "relative inline-grid place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default",
- children: a ? /* @__PURE__ */ (0, x.jsx)(Xj, {
+ children: a ? /* @__PURE__ */ (0, x.jsx)(Yj, {
artwork: {
kind: "cover",
html: a
},
- identity: bB(r, "small", h.value.javImage),
+ identity: yB(r, "small", h.value.javImage),
relayout: (e) => Fs(e, g)
}) : /* @__PURE__ */ (0, x.jsx)("span", {
"data-media-nopic": "",
@@ -55107,7 +55107,7 @@ function GEe({ readOnly: e, receipt: t, resource: n, query: r, navigate: i, clea
"data-jav-identity": "",
children: [/* @__PURE__ */ (0, x.jsx)("div", {
"data-jav-faces": "",
- dangerouslySetInnerHTML: { __html: Yz(r) }
+ dangerouslySetInnerHTML: { __html: Jz(r) }
}), /* @__PURE__ */ (0, x.jsx)("p", {
className: "min-w-0 truncate text-body-2-regular text-text-secondary",
title: r.performers,
@@ -55148,8 +55148,8 @@ function GEe({ readOnly: e, receipt: t, resource: n, query: r, navigate: i, clea
disabled: e || r.wanted || !!r.asset_id,
...q(y.busy === String(r.id)),
onClick: () => {
- y.run(String(r.id), (e) => pB({ code: r.code }, e), () => {
- t("已加入想要"), hB(), v.refetch();
+ y.run(String(r.id), (e) => fB({ code: r.code }, e), () => {
+ t("已加入想要"), mB(), v.refetch();
});
},
children: r.asset_id ? "已入库" : r.wanted ? "已加入想要" : "想要"
@@ -55174,12 +55174,12 @@ function GEe({ readOnly: e, receipt: t, resource: n, query: r, navigate: i, clea
}
//#endregion
//#region src/react/library-processing/library-processing-notice.tsx
-var SB = "flex min-h-10 flex-wrap items-center justify-center gap-x-4 gap-y-2 border-y px-6 py-2 max-sm:justify-start", KEe = {
- gray: `${SB} border-separator-border bg-background-secondary-default text-text-secondary`,
- warning: `${SB} border-current/35 bg-status-yellow-background text-status-yellow-text`,
- error: `${SB} border-current/35 bg-background-tertiary-error text-text-error-primary`
+var xB = "flex min-h-10 flex-wrap items-center justify-center gap-x-4 gap-y-2 border-y px-6 py-2 max-sm:justify-start", qEe = {
+ gray: `${xB} border-separator-border bg-background-secondary-default text-text-secondary`,
+ warning: `${xB} border-current/35 bg-status-yellow-background text-status-yellow-text`,
+ error: `${xB} border-current/35 bg-background-tertiary-error text-text-error-primary`
};
-function qEe({ value: e, max: t }) {
+function JEe({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
return /* @__PURE__ */ (0, x.jsxs)("svg", {
role: "progressbar",
@@ -55207,16 +55207,16 @@ function qEe({ value: e, max: t }) {
})]
});
}
-function JEe(e) {
- let { job: t } = gP(e), n = t.data, r = t.isError ? n ? SM : R(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
+function YEe(e) {
+ let { job: t } = hP(e), n = t.data, r = t.isError ? n ? xM : R(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
if (!r && !o && !a) return null;
- let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.total || 0, l = Math.min(n?.checked || 0, c), u = r || (a ? "扫描与资料采集未完成" : wM(n) + (c ? ` · ${gk(l, c)}` : "")), d = s === "gray" ? $ue : Wue;
+ let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.total || 0, l = Math.min(n?.checked || 0, c), u = r || (a ? "扫描与资料采集未完成" : CM(n) + (c ? ` · ${gk(l, c)}` : "")), d = s === "gray" ? $ue : Wue;
return /* @__PURE__ */ (0, x.jsxs)("aside", {
role: a ? "alert" : "status",
- className: KEe[s],
+ className: qEe[s],
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
- children: [o && c ? /* @__PURE__ */ (0, x.jsx)(qEe, {
+ children: [o && c ? /* @__PURE__ */ (0, x.jsx)(JEe, {
value: l,
max: c
}) : /* @__PURE__ */ (0, x.jsx)(d, {
@@ -55236,32 +55236,32 @@ function JEe(e) {
}
//#endregion
//#region src/react/playlists/playlists.ts
-var YEe = "/api/playlists", CB = "/api/playlist", wB = ["playlists"], TB = (e) => z(YEe, e);
-async function XEe(e) {
+var XEe = "/api/playlists", SB = "/api/playlist", CB = ["playlists"], wB = (e) => z(XEe, e);
+async function ZEe(e) {
await V.fetchQuery({
- queryKey: wB,
- queryFn: () => TB(e),
+ queryKey: CB,
+ queryFn: () => wB(e),
staleTime: 0
});
}
-var EB = () => V.invalidateQueries({
- queryKey: wB,
+var TB = () => V.invalidateQueries({
+ queryKey: CB,
exact: !0
-}), ZEe = (e) => e.current_asset_id || e.preview_asset_id || null, DB = (e) => `/poster?id=${e}&c=4`, QEe = (e) => B(CB, {
+}), QEe = (e) => e.current_asset_id || e.preview_asset_id || null, EB = (e) => `/poster?id=${e}&c=4`, $Ee = (e) => B(SB, {
action: "create",
name: e,
asset_ids: []
-}), OB = (e, t) => B(CB, {
+}), DB = (e, t) => B(SB, {
action: "rename",
id: e,
name: t
-}), kB = (e) => B(CB, {
+}), OB = (e) => B(SB, {
action: "delete",
id: e
-}), $Ee = (e) => z(`${CB}?id=${e}`).catch(() => null);
-function eDe(e) {
+}), eDe = (e) => z(`${SB}?id=${e}`).catch(() => null);
+function tDe(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
- return B(CB, {
+ return B(SB, {
action: "create",
name: e.name,
asset_ids: t,
@@ -55271,18 +55271,18 @@ function eDe(e) {
}
//#endregion
//#region src/react/playlists/playlists-page.tsx
-var tDe = xj("ellipsis"), nDe = xj("pencil"), rDe = xj("trash"), iDe = xj("playlist"), AB = RO(WN, GN, "text-body-2-medium"), jB = "播放列表名称不能为空", MB = (e) => async () => {
+var nDe = bj("ellipsis"), rDe = bj("pencil"), iDe = bj("trash"), aDe = bj("playlist"), kB = RO(UN, WN, "text-body-2-medium"), AB = "播放列表名称不能为空", jB = (e) => async () => {
try {
await e();
} finally {
- EB();
+ TB();
}
};
-function aDe({ toast: e }) {
+function oDe({ toast: e }) {
let [t, n] = (0, b.useState)(""), [r, i] = (0, b.useState)(""), a = ft({
- mutationFn: (e) => QEe(e),
+ mutationFn: (e) => $Ee(e),
onSuccess: (t) => {
- n(""), i(""), EB(), e("已新建播放列表", { undo: MB(() => kB(t.playlist.id)) });
+ n(""), i(""), TB(), e("已新建播放列表", { undo: jB(() => OB(t.playlist.id)) });
},
onError: (e) => i(R(e) || "新建失败")
});
@@ -55290,12 +55290,12 @@ function aDe({ toast: e }) {
"data-playlist-create": "",
"aria-label": "新建播放列表",
onSubmit: (e) => {
- e.preventDefault(), !a.isPending && (t.trim() ? a.mutate(t) : i(jB));
+ e.preventDefault(), !a.isPending && (t.trim() ? a.mutate(t) : i(AB));
},
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, x.jsx)("div", {
className: "min-w-50 max-w-80 flex-1 basis-50 max-board-narrow:min-w-0 max-board-narrow:max-w-none",
- children: /* @__PURE__ */ (0, x.jsx)(LP, {
+ children: /* @__PURE__ */ (0, x.jsx)(IP, {
label: "新播放列表",
placeholder: "输入名称",
maxLength: 80,
@@ -55314,7 +55314,7 @@ function aDe({ toast: e }) {
})]
});
}
-function oDe({ target: e, close: t, toast: n }) {
+function sDe({ target: e, close: t, toast: n }) {
let [r, i] = (0, b.useState)(""), [a, o] = (0, b.useState)(""), s = (0, b.useRef)(null);
(0, b.useEffect)(() => {
if (!e) return;
@@ -55325,13 +55325,13 @@ function oDe({ target: e, close: t, toast: n }) {
return () => cancelAnimationFrame(t);
}, [e]);
let c = ft({
- mutationFn: ({ row: e, value: t }) => OB(e.id, t),
+ mutationFn: ({ row: e, value: t }) => DB(e.id, t),
onSuccess: (e, { row: r }) => {
- t(), EB(), n("已重命名播放列表", { undo: MB(() => OB(r.id, r.name)) });
+ t(), TB(), n("已重命名播放列表", { undo: jB(() => DB(r.id, r.name)) });
},
onError: (e) => o(R(e))
});
- return /* @__PURE__ */ (0, x.jsx)(tI, {
+ return /* @__PURE__ */ (0, x.jsx)(eI, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
@@ -55345,7 +55345,7 @@ function oDe({ target: e, close: t, toast: n }) {
n ? c.mutate({
row: e,
value: n
- }) : o(jB);
+ }) : o(AB);
},
className: "flex min-h-0 flex-col",
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
@@ -55354,7 +55354,7 @@ function oDe({ target: e, close: t, toast: n }) {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "编辑名称"
- }), /* @__PURE__ */ (0, x.jsx)(LP, {
+ }), /* @__PURE__ */ (0, x.jsx)(IP, {
ref: s,
label: "名称",
placeholder: "输入名称",
@@ -55382,7 +55382,7 @@ function oDe({ target: e, close: t, toast: n }) {
})
});
}
-function sDe({ name: e, onRename: t, onDelete: n }) {
+function cDe({ name: e, onRename: t, onDelete: n }) {
let r = (0, b.useRef)(null), [i, a] = (0, b.useState)(!1), o = (e) => {
a(!1), e();
};
@@ -55396,33 +55396,33 @@ function sDe({ name: e, onRename: t, onDelete: n }) {
"data-playlist-menu": "",
onClick: () => a(!0),
className: "flex size-7.5 flex-none cursor-pointer items-center justify-center rounded-2lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary aria-expanded:bg-background-primary-hover aria-expanded:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, x.jsx)(tDe, {
+ children: /* @__PURE__ */ (0, x.jsx)(nDe, {
"aria-hidden": !0,
className: "size-4.5"
})
- }), /* @__PURE__ */ (0, x.jsx)(gA, {
+ }), /* @__PURE__ */ (0, x.jsx)(hA, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: UN,
- children: /* @__PURE__ */ (0, x.jsxs)(HN, {
+ className: HN,
+ children: /* @__PURE__ */ (0, x.jsxs)(VN, {
"aria-label": `播放列表操作:${e}`,
className: "flex w-37.5 flex-col gap-0.5 outline-none",
children: [/* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
- className: AB,
+ className: kB,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, x.jsx)(nDe, {
+ children: [/* @__PURE__ */ (0, x.jsx)(rDe, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "编辑名称"]
}), /* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
- className: AB,
+ className: kB,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, x.jsx)(rDe, {
+ children: [/* @__PURE__ */ (0, x.jsx)(iDe, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "删除播放列表"]
@@ -55430,13 +55430,13 @@ function sDe({ name: e, onRename: t, onDelete: n }) {
})
})] });
}
-function cDe({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i }) {
+function lDe({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i }) {
let a = dt({
- queryKey: wB,
- queryFn: ({ signal: e }) => TB(e)
+ queryKey: CB,
+ queryFn: ({ signal: e }) => wB(e)
}), [o, s] = (0, b.useState)(null), c = (0, b.useRef)(i);
(0, b.useEffect)(() => {
- c.current !== i && (c.current = i, EB());
+ c.current !== i && (c.current = i, TB());
}, [i]);
let l = a.data, u = l?.items ?? [], d = (e) => {
is({
@@ -55445,8 +55445,8 @@ function cDe({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i
confirmLabel: "删除播放列表",
danger: !0,
onConfirm: async () => {
- let t = await $Ee(e.id);
- await kB(e.id), EB(), r("已删除播放列表", t ? { undo: MB(() => eDe(t)) } : void 0);
+ let t = await eDe(e.id);
+ await OB(e.id), TB(), r("已删除播放列表", t ? { undo: jB(() => tDe(t)) } : void 0);
}
});
};
@@ -55461,7 +55461,7 @@ function cDe({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i
}), /* @__PURE__ */ (0, x.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "保存 Mix,按自己的顺序继续播放。"
- })] }), /* @__PURE__ */ (0, x.jsx)(aDe, { toast: r })]
+ })] }), /* @__PURE__ */ (0, x.jsx)(oDe, { toast: r })]
}),
/* @__PURE__ */ (0, x.jsx)("div", {
className: "mx-auto w-full max-w-board",
@@ -55469,20 +55469,20 @@ function cDe({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i
"data-playlist-grid": "",
className: "card-grid-cover gap-4.5",
children: u.map((r) => {
- let i = ZEe(r), a = r.name.trim() || "未命名播放列表";
- return /* @__PURE__ */ (0, x.jsx)(sM, {
+ let i = QEe(r), a = r.name.trim() || "未命名播放列表";
+ return /* @__PURE__ */ (0, x.jsx)(oM, {
"data-playlist-card": String(r.id),
name: a,
caption: r.source_kind === "mix" ? "由 Mix 保存" : "手动播放列表",
count: r.item_count,
- poster: r.preview_asset_id ? DB(r.preview_asset_id) : null,
- flipImages: async () => (r.preview_ids || []).map(DB),
+ poster: r.preview_asset_id ? EB(r.preview_asset_id) : null,
+ flipImages: async () => (r.preview_ids || []).map(EB),
canFlip: n,
faces: r.faces || [],
onOpenEntity: t,
...i ? { onOpen: () => e(r.id, i) } : {},
openLabel: `打开播放列表 ${a}`,
- menu: /* @__PURE__ */ (0, x.jsx)(sDe, {
+ menu: /* @__PURE__ */ (0, x.jsx)(cDe, {
name: a,
onRename: () => s(r),
onDelete: () => d(r)
@@ -55490,15 +55490,15 @@ function cDe({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i
}, r.id);
})
}) : /* @__PURE__ */ (0, x.jsx)(GO, {
- icon: iDe,
+ icon: aDe,
title: "还没有播放列表",
children: "保存 Mix 或新建列表后,会在这里按自己的顺序继续播放。"
- }) : a.isError ? /* @__PURE__ */ (0, x.jsx)(Yj, {
+ }) : a.isError ? /* @__PURE__ */ (0, x.jsx)(Jj, {
message: R(a.error) || "播放列表读取失败",
onRetry: () => void a.refetch()
}) : null
}),
- /* @__PURE__ */ (0, x.jsx)(oDe, {
+ /* @__PURE__ */ (0, x.jsx)(sDe, {
target: o,
close: () => s(null),
toast: r
@@ -55508,7 +55508,7 @@ function cDe({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i
}
//#endregion
//#region src/react/quality-goals/quality-goals-page.tsx
-function lDe({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDisplayName: i, srcBadge: a }) {
+function uDe({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDisplayName: i, srcBadge: a }) {
let o = () => t(e.id);
return /* @__PURE__ */ (0, x.jsxs)("li", {
"data-goal-id": e.id,
@@ -55528,7 +55528,7 @@ function lDe({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDis
className: "text-caption-1-regular text-text-secondary",
children: "暂无预览"
}), /* @__PURE__ */ (0, x.jsx)("img", {
- src: PM(e),
+ src: NM(e),
alt: "",
loading: "lazy",
onError: (e) => e.currentTarget.remove(),
@@ -55576,7 +55576,7 @@ function lDe({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDis
origin: `asset:${e.id}`,
searchReason: e.reason || "",
duration: e.duration,
- cover: PM(e)
+ cover: NM(e)
}),
children: "查找资源"
}) : null, /* @__PURE__ */ (0, x.jsx)(G, {
@@ -55588,10 +55588,10 @@ function lDe({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDis
})]
});
}
-function uDe({ toast: e, ...t }) {
+function dDe({ toast: e, ...t }) {
let [n, r] = (0, b.useState)(null), i = dt({
- queryKey: MM,
- queryFn: ({ signal: e }) => NM(e)
+ queryKey: jM,
+ queryFn: ({ signal: e }) => MM(e)
}), a = i.data;
if (!a) return /* @__PURE__ */ (0, x.jsx)(qO, { children: /* @__PURE__ */ (0, x.jsx)(K, {
tone: "error",
@@ -55600,14 +55600,14 @@ function uDe({ toast: e, ...t }) {
}) });
let o = a.items || [];
return o.length ? /* @__PURE__ */ (0, x.jsxs)(qO, { children: [
- /* @__PURE__ */ (0, x.jsx)(mR, {
+ /* @__PURE__ */ (0, x.jsx)(pR, {
label: "待升级",
figure: `${Number(a.total || 0).toLocaleString()} 部作品`,
flush: !0
}),
/* @__PURE__ */ (0, x.jsx)("ul", {
className: "card-grid-cover gap-5",
- children: o.map((e) => /* @__PURE__ */ (0, x.jsx)(lDe, {
+ children: o.map((e) => /* @__PURE__ */ (0, x.jsx)(uDe, {
item: e,
...t,
searchResources: r
@@ -55617,7 +55617,7 @@ function uDe({ toast: e, ...t }) {
className: "mt-6 text-center text-caption-1-regular text-text-secondary",
children: `显示前 ${o.length.toLocaleString()} 部,共 ${Number(a.total).toLocaleString()} 部。`
}) : null,
- /* @__PURE__ */ (0, x.jsx)(rB, {
+ /* @__PURE__ */ (0, x.jsx)(nB, {
prefill: n,
close: () => r(null),
receipt: e
@@ -55631,8 +55631,8 @@ function uDe({ toast: e, ...t }) {
}
//#endregion
//#region src/react/review/bulk-toolbar.tsx
-function dDe(e) {
- let { groupOptions: t, groupBy: n, onGroupBy: r, groups: i, filter: a, onFilter: o, pageKeys: s, selected: c, onSelected: l, selectedRows: u, metadata: d, approvable: f, busy: p, feedback: m, onUnifySource: h, onRun: g } = e, _ = s.filter((e) => c.has(e)), v = _.length > 0 && _.length === s.length, y = V_e(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), S = y.length ? "统一选择来源" : "所选项目无共同来源";
+function fDe(e) {
+ let { groupOptions: t, groupBy: n, onGroupBy: r, groups: i, filter: a, onFilter: o, pageKeys: s, selected: c, onSelected: l, selectedRows: u, metadata: d, approvable: f, busy: p, feedback: m, onUnifySource: h, onRun: g } = e, _ = s.filter((e) => c.has(e)), v = _.length > 0 && _.length === s.length, y = H_e(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), S = y.length ? "统一选择来源" : "所选项目无共同来源";
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsxs)("div", {
role: "group",
"aria-label": "复核筛选",
@@ -55640,29 +55640,29 @@ function dDe(e) {
"data-glass-pane": "",
className: "sticky top-topbar z-10 flex flex-wrap items-center gap-2 p-3",
children: [
- /* @__PURE__ */ (0, x.jsx)(yP, {
+ /* @__PURE__ */ (0, x.jsx)(vP, {
"aria-label": "筛选分组方式",
size: "sm",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: t.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(bP, {
+ children: t.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(yP, {
id: e,
children: t
}, e))
}),
- i.length > 1 ? /* @__PURE__ */ (0, x.jsxs)(yP, {
+ i.length > 1 ? /* @__PURE__ */ (0, x.jsxs)(vP, {
"aria-label": n === "field" ? "筛选字段分类" : "筛选当前分类",
size: "sm",
selectedKey: a || "*",
onSelectionChange: (e) => {
e !== null && o(String(e) === "*" ? "" : String(e));
},
- children: [/* @__PURE__ */ (0, x.jsx)(bP, {
+ children: [/* @__PURE__ */ (0, x.jsx)(yP, {
id: "*",
children: "全部分类"
- }), i.map((e) => /* @__PURE__ */ (0, x.jsx)(bP, {
+ }), i.map((e) => /* @__PURE__ */ (0, x.jsx)(yP, {
id: e.key,
children: `${e.title} · ${e.rows.length}`
}, e.key))]
@@ -55681,12 +55681,12 @@ function dDe(e) {
children: v ? "清空当前选择" : a ? "全选当前分类" : "全选本页"
})
]
- }), /* @__PURE__ */ (0, x.jsxs)(ww, {
+ }), /* @__PURE__ */ (0, x.jsxs)(Tw, {
label: "复核所选项目",
visible: c.size > 0,
count: `已选 ${c.size} 项`,
children: [
- b ? /* @__PURE__ */ (0, x.jsxs)(yP, {
+ b ? /* @__PURE__ */ (0, x.jsxs)(vP, {
"aria-label": "统一选择来源",
size: "sm",
selectedKey: "",
@@ -55694,10 +55694,10 @@ function dDe(e) {
onSelectionChange: (e) => {
e !== null && e !== "" && h(String(e));
},
- children: [/* @__PURE__ */ (0, x.jsx)(bP, {
+ children: [/* @__PURE__ */ (0, x.jsx)(yP, {
id: "",
children: S
- }), y.map((e) => /* @__PURE__ */ (0, x.jsx)(bP, {
+ }), y.map((e) => /* @__PURE__ */ (0, x.jsx)(yP, {
id: e,
children: e
}, e))]
@@ -55733,7 +55733,7 @@ function dDe(e) {
}
//#endregion
//#region src/react/review/candidate-form.tsx
-var fDe = {
+var pDe = {
title: "标题",
original_title: "原标题",
runtime: "来源时长",
@@ -55743,14 +55743,14 @@ var fDe = {
cover_url: "封面",
screenshot_urls: "截图",
trailer_url: "预告片"
-}, NB = "reviewgenretags";
-function pDe({ tags: e }) {
+}, MB = "reviewgenretags";
+function mDe({ tags: e }) {
return e.length ? /* @__PURE__ */ (0, x.jsx)("datalist", {
- id: NB,
+ id: MB,
children: e.map((e) => /* @__PURE__ */ (0, x.jsx)("option", { value: e }, e))
}) : null;
}
-function PB({ candidate: e, selectable: t = !1 }) {
+function NB({ candidate: e, selectable: t = !1 }) {
let n = Object.entries(e.catalog_evidence || {}).filter(([, e]) => e && e.display_value), r = e.content_id || e.provider_id;
return /* @__PURE__ */ (0, x.jsxs)("span", {
className: "flex min-w-0 flex-1 flex-col",
@@ -55787,7 +55787,7 @@ function PB({ candidate: e, selectable: t = !1 }) {
children: [
/* @__PURE__ */ (0, x.jsx)("dt", {
className: "text-body-2-regular text-text-secondary",
- children: fDe[e] || e
+ children: pDe[e] || e
}),
/* @__PURE__ */ (0, x.jsx)("dd", {
className: "min-w-0 text-body-2-regular break-words text-text-primary",
@@ -55802,32 +55802,32 @@ function PB({ candidate: e, selectable: t = !1 }) {
}) : null]
});
}
-function mDe({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
+function hDe({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
let a = e.candidates || [];
return a.length ? a.length === 1 ? /* @__PURE__ */ (0, x.jsx)("div", {
className: "flex overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default",
- children: /* @__PURE__ */ (0, x.jsx)(PB, { candidate: a[0] })
- }) : /* @__PURE__ */ (0, x.jsx)(PA, {
+ children: /* @__PURE__ */ (0, x.jsx)(NB, { candidate: a[0] })
+ }) : /* @__PURE__ */ (0, x.jsx)(NA, {
"aria-label": `${t || "候选"}的来源`,
value: n,
isDisabled: i,
onChange: r,
className: "flex flex-col gap-2",
- children: a.map((e) => /* @__PURE__ */ (0, x.jsx)(FA, {
+ children: a.map((e) => /* @__PURE__ */ (0, x.jsx)(PA, {
value: e.candidate_key,
className: "group flex cursor-pointer items-center gap-2 overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:border-border-button-active data-disabled:cursor-not-allowed",
- children: /* @__PURE__ */ (0, x.jsx)(PB, {
+ children: /* @__PURE__ */ (0, x.jsx)(NB, {
candidate: e,
selectable: !0
})
}, e.candidate_key))
}) : null;
}
-function hDe({ genre: e, tags: t, locked: n, toast: r }) {
+function gDe({ genre: e, tags: t, locked: n, toast: r }) {
let [i, a] = (0, b.useState)(""), [o, s] = (0, b.useState)(""), c = ft({
- mutationFn: (t) => Y_e(e, t),
+ mutationFn: (t) => X_e(e, t),
onSuccess: async (t, n) => {
- t.ok ? (r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await Z_e()) : s(t.error || "服务端拒绝了这次收录");
+ t.ok ? (r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await Q_e()) : s(t.error || "服务端拒绝了这次收录");
},
onError: (e) => s(R(e))
}), l = () => {
@@ -55842,16 +55842,16 @@ function hDe({ genre: e, tags: t, locked: n, toast: r }) {
className: "text-body-medium text-text-primary",
children: e
}),
- /* @__PURE__ */ (0, x.jsx)(PP, {
+ /* @__PURE__ */ (0, x.jsx)(NP, {
"aria-label": `「${e}」收录成的中文标签`,
value: i,
onChange: a,
maxLength: 40,
isDisabled: n || c.isPending,
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, x.jsx)(IP, {
+ children: /* @__PURE__ */ (0, x.jsx)(FP, {
size: "small",
- list: t.length ? NB : void 0,
+ list: t.length ? MB : void 0,
autoComplete: "off",
placeholder: "中文标签",
onKeyDown: (e) => {
@@ -55883,8 +55883,8 @@ function hDe({ genre: e, tags: t, locked: n, toast: r }) {
]
});
}
-function gDe({ row: e, tags: t, locked: n, toast: r }) {
- let i = K_e(e);
+function _De({ row: e, tags: t, locked: n, toast: r }) {
+ let i = q_e(e);
return i.length ? /* @__PURE__ */ (0, x.jsxs)("div", {
role: "group",
"aria-label": "未收录 genre",
@@ -55892,7 +55892,7 @@ function gDe({ row: e, tags: t, locked: n, toast: r }) {
children: [/* @__PURE__ */ (0, x.jsx)("h5", {
className: "text-body-2-medium text-text-secondary",
children: `未收录 genre · ${i.length}`
- }), i.map((e) => /* @__PURE__ */ (0, x.jsx)(hDe, {
+ }), i.map((e) => /* @__PURE__ */ (0, x.jsx)(gDe, {
genre: e,
tags: t,
locked: n,
@@ -55902,9 +55902,9 @@ function gDe({ row: e, tags: t, locked: n, toast: r }) {
}
//#endregion
//#region src/react/review/review-evidence.tsx
-var FB = (e = "") => /^https?:\/\//i.test(e) ? e : "", _De = (e = "") => FB(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
-function IB({ url: e }) {
- let t = _De(e || ""), [n, r] = (0, b.useState)(!1);
+var PB = (e = "") => /^https?:\/\//i.test(e) ? e : "", vDe = (e = "") => PB(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
+function FB({ url: e }) {
+ let t = vDe(e || ""), [n, r] = (0, b.useState)(!1);
return /* @__PURE__ */ (0, x.jsx)("div", {
className: "flex h-review-image items-center justify-center overflow-hidden rounded-surface bg-background-secondary-default",
children: t && !n ? /* @__PURE__ */ (0, x.jsx)("img", {
@@ -55919,7 +55919,7 @@ function IB({ url: e }) {
})
});
}
-function LB({ asset: e, openItem: t }) {
+function IB({ asset: e, openItem: t }) {
let n = e.name || "";
return /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex min-w-0 items-center gap-2.5 rounded-surface bg-background-secondary-default p-2",
@@ -55935,7 +55935,7 @@ function LB({ asset: e, openItem: t }) {
}) : /* @__PURE__ */ (0, x.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: "无封面"
- }), /* @__PURE__ */ (0, x.jsx)(fb, { children: `打开原视频 ${n}` })]
+ }), /* @__PURE__ */ (0, x.jsx)(pb, { children: `打开原视频 ${n}` })]
}), /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex min-w-0 flex-col items-start gap-1",
children: [/* @__PURE__ */ (0, x.jsx)("b", {
@@ -55952,14 +55952,14 @@ function LB({ asset: e, openItem: t }) {
})]
});
}
-function vDe({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
+function yDe({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
children: [/* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
"aria-label": `打开创作者页:${t}`,
onClick: () => i(e, t),
- className: `relative inline-grid size-11 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full bg-background-secondary-default text-caption-1-medium text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring ${wz}`,
+ className: `relative inline-grid size-11 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full bg-background-secondary-default text-caption-1-medium text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring ${Cz}`,
dangerouslySetInnerHTML: { __html: r }
}), /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex min-w-0 flex-col items-start",
@@ -55975,8 +55975,8 @@ function vDe({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
})]
});
}
-function yDe({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
- let o = FB(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
+function bDe({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
+ let o = PB(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
return /* @__PURE__ */ (0, x.jsxs)("section", {
className: "flex flex-col gap-3",
children: [
@@ -56001,7 +56001,7 @@ function yDe({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
children: `查看全部 ${c.toLocaleString()} 部作品`
})]
}),
- /* @__PURE__ */ (0, x.jsx)(IB, { url: e.preview_url }),
+ /* @__PURE__ */ (0, x.jsx)(FB, { url: e.preview_url }),
/* @__PURE__ */ (0, x.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "通过后记录身份判断。"
@@ -56044,7 +56044,7 @@ function yDe({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
]
});
}
-function bDe({ assets: e, picked: t, onPicked: n, locked: r }) {
+function xDe({ assets: e, picked: t, onPicked: n, locked: r }) {
let [i, a] = (0, b.useState)(null), o = new Set(t), s = (t, s) => {
if (r) return;
let c = new Set(o);
@@ -56100,7 +56100,7 @@ function bDe({ assets: e, picked: t, onPicked: n, locked: r }) {
}),
/* @__PURE__ */ (0, x.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, x.jsx)(TP, {
+ children: /* @__PURE__ */ (0, x.jsx)(wP, {
size: "sm",
state: {
isSelected: n,
@@ -56111,7 +56111,7 @@ function bDe({ assets: e, picked: t, onPicked: n, locked: r }) {
}
})
}),
- /* @__PURE__ */ (0, x.jsx)(fb, { children: `${n ? "已选" : "未选"} ${e.name || e.id}` })
+ /* @__PURE__ */ (0, x.jsx)(pb, { children: `${n ? "已选" : "未选"} ${e.name || e.id}` })
]
}, e.id);
})
@@ -56120,22 +56120,22 @@ function bDe({ assets: e, picked: t, onPicked: n, locked: r }) {
}
//#endregion
//#region src/react/review/review-card.tsx
-var xDe = WO({
+var SDe = WO({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-4 px-5 pt-4"
-}), RB = "flex min-h-6 min-w-0 items-center", zB = 2, SDe = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
-function CDe(e) {
- let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, b.useRef)(!1), m = dP(), h = dP(), g = t === "metadata_fields", _ = L_e[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, S = U_e(t, n), C = HM(t, n), w = VM(t, n), T = W_e(n), E = G_e(n), D = BM(t, n), O = n.comparison_assets || [], k = n.preview_assets || [], A = String(n.decision || "pending") !== "pending", j = O.length > 1 ? /* @__PURE__ */ (0, x.jsxs)("div", {
+}), LB = "flex min-h-6 min-w-0 items-center", RB = 2, CDe = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
+function wDe(e) {
+ let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, b.useRef)(!1), m = uP(), h = uP(), g = t === "metadata_fields", _ = R_e[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, S = W_e(t, n), C = VM(t, n), w = BM(t, n), T = G_e(n), E = K_e(n), D = zM(t, n), O = n.comparison_assets || [], k = n.preview_assets || [], A = String(n.decision || "pending") !== "pending", j = O.length > 1 ? /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-3",
- children: [O.slice(0, zB).map((e) => /* @__PURE__ */ (0, x.jsx)(LB, {
+ children: [O.slice(0, RB).map((e) => /* @__PURE__ */ (0, x.jsx)(IB, {
asset: e,
openItem: f.openItem
- }, e.id)), O.length > zB ? /* @__PURE__ */ (0, x.jsx)("p", {
+ }, e.id)), O.length > RB ? /* @__PURE__ */ (0, x.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: `另有 ${(O.length - zB).toLocaleString()} 部对照作品`
+ children: `另有 ${(O.length - RB).toLocaleString()} 部对照作品`
}) : null]
- }) : y ? /* @__PURE__ */ (0, x.jsx)(vDe, {
+ }) : y ? /* @__PURE__ */ (0, x.jsx)(yDe, {
kind: _,
name: v,
works: Number(n.video_count || n.videos || 0),
@@ -56146,14 +56146,14 @@ function CDe(e) {
image_version: n.image_version,
avatar_focus: n.avatar_focus
} : null, null, _)
- }) : n.asset_id ? /* @__PURE__ */ (0, x.jsx)(LB, {
+ }) : n.asset_id ? /* @__PURE__ */ (0, x.jsx)(IB, {
openItem: f.openItem,
asset: {
id: n.asset_id,
name: n.asset_name,
preview_url: n.asset_preview_url
}
- }) : null, M = g ? /* @__PURE__ */ (0, x.jsx)(mDe, {
+ }) : null, M = g ? /* @__PURE__ */ (0, x.jsx)(hDe, {
row: n,
fieldName: C,
value: r.candidateKey,
@@ -56162,7 +56162,7 @@ function CDe(e) {
candidateKey: e
}),
locked: s
- }) : t === "creator_tags" ? k.length ? /* @__PURE__ */ (0, x.jsx)(bDe, {
+ }) : t === "creator_tags" ? k.length ? /* @__PURE__ */ (0, x.jsx)(xDe, {
assets: k,
picked: r.assets,
locked: s,
@@ -56175,15 +56175,15 @@ function CDe(e) {
icon: Zue,
title: "这批作品尚未抽帧",
children: `${n.video_count || ""} 条作品还没有可用预览;批准后仍会按候选写入标签。`
- }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, x.jsx)(yDe, {
+ }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, x.jsx)(bDe, {
row: n,
openItem: f.openItem,
openEntity: f.openEntity,
onReveal: f.onReveal,
revealing: f.revealing,
note: f.revealNote
- }) : /* @__PURE__ */ (0, x.jsx)(IB, { url: n.preview_url }), N = y ? j : C ? /* @__PURE__ */ (0, x.jsxs)("h4", {
- className: `${RB} flex-wrap gap-2`,
+ }) : /* @__PURE__ */ (0, x.jsx)(FB, { url: n.preview_url }), N = y ? j : C ? /* @__PURE__ */ (0, x.jsxs)("h4", {
+ className: `${LB} flex-wrap gap-2`,
children: [/* @__PURE__ */ (0, x.jsx)("span", {
title: C,
className: "flex max-w-full min-w-0 overflow-hidden rounded-md",
@@ -56198,7 +56198,7 @@ function CDe(e) {
children: w
})]
}) : /* @__PURE__ */ (0, x.jsx)("h4", {
- className: RB,
+ className: LB,
children: /* @__PURE__ */ (0, x.jsx)("span", {
title: S,
className: "min-w-0 truncate text-body-medium text-text-primary",
@@ -56208,20 +56208,20 @@ function CDe(e) {
return /* @__PURE__ */ (0, x.jsxs)("section", {
"aria-label": S,
"data-review-key": n.item_key,
- className: `${xDe} ${SDe(t)} overflow-hidden`,
+ className: `${SDe} ${CDe(t)} overflow-hidden`,
children: [
/* @__PURE__ */ (0, x.jsxs)("header", {
className: "flex min-w-0 shrink-0 items-start gap-2",
children: [
s ? null : /* @__PURE__ */ (0, x.jsx)("span", {
- className: `${RB} shrink-0`,
+ className: `${LB} shrink-0`,
onPointerDownCapture: (e) => {
p.current = e.shiftKey;
},
onKeyDownCapture: (e) => {
p.current = e.shiftKey;
},
- children: /* @__PURE__ */ (0, x.jsx)(EP, {
+ children: /* @__PURE__ */ (0, x.jsx)(TP, {
isSelected: a,
"aria-label": `选择 ${S}`,
onChange: (e) => o(p.current, e)
@@ -56265,7 +56265,7 @@ function CDe(e) {
})
}) : null,
M,
- /* @__PURE__ */ (0, x.jsx)(gDe, {
+ /* @__PURE__ */ (0, x.jsx)(_De, {
row: n,
tags: u,
locked: s,
@@ -56328,8 +56328,8 @@ function CDe(e) {
}
//#endregion
//#region src/react/review/review-page.tsx
-var wDe = "flex cursor-pointer items-center justify-between gap-2";
-function TDe({ page: e, pages: t, onPage: n }) {
+var TDe = "flex cursor-pointer items-center justify-between gap-2";
+function EDe({ page: e, pages: t, onPage: n }) {
return t <= 1 ? null : /* @__PURE__ */ (0, x.jsxs)("nav", {
"aria-label": "复核分页",
className: "flex w-full flex-wrap items-center justify-between gap-2",
@@ -56366,34 +56366,34 @@ function TDe({ page: e, pages: t, onPage: n }) {
]
});
}
-function EDe(e) {
+function DDe(e) {
let [t, n] = (0, b.useState)(() => matchMedia("(max-width:900px)").matches);
(0, b.useEffect)(() => {
let e = matchMedia("(max-width:900px)"), t = () => n(e.matches);
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
}, []);
- let { route: r, openItem: i, openEntity: a, revealSource: o, toast: s, readOnly: c, readOnlyMessage: l, writerUrl: u } = e, [d, f] = (0, b.useState)(RM(e.category) ? e.category : I_e), [p, m] = (0, b.useState)("candidates"), [h, g] = (0, b.useState)(""), [_, v] = (0, b.useState)(1), [y, S] = (0, b.useState)(/* @__PURE__ */ new Set()), [C, w] = (0, b.useState)(/* @__PURE__ */ new Map()), [T, E] = (0, b.useState)(/* @__PURE__ */ new Map()), [D, O] = (0, b.useState)(""), k = (0, b.useRef)(null), [A, j] = (0, b.useState)(0), [M, N] = (0, b.useState)(""), ee = (0, b.useRef)(!0);
+ let { route: r, openItem: i, openEntity: a, revealSource: o, toast: s, readOnly: c, readOnlyMessage: l, writerUrl: u } = e, [d, f] = (0, b.useState)(LM(e.category) ? e.category : L_e), [p, m] = (0, b.useState)("candidates"), [h, g] = (0, b.useState)(""), [_, v] = (0, b.useState)(1), [y, S] = (0, b.useState)(/* @__PURE__ */ new Set()), [C, w] = (0, b.useState)(/* @__PURE__ */ new Map()), [T, E] = (0, b.useState)(/* @__PURE__ */ new Map()), [D, O] = (0, b.useState)(""), k = (0, b.useRef)(null), [A, j] = (0, b.useState)(0), [M, N] = (0, b.useState)(""), ee = (0, b.useRef)(!0);
(0, b.useEffect)(() => () => {
ee.current = !1;
}, []);
let te = dt({
- queryKey: IM,
- queryFn: ({ signal: e }) => WM(e)
+ queryKey: FM,
+ queryFn: ({ signal: e }) => UM(e)
}), P = te.data || {
sections: {},
counts: {}
- }, ne = P.sections[d] || [], re = d === "metadata_fields", ie = c, ae = R_e(ne, re), oe = ae.some(([e]) => e === p) ? p : "candidates", se = zM(ne, oe), ce = se.some((e) => e.key === h) ? h : "", le = B_e(z_e(ne, oe, ce), _), ue = le.rows.map((e) => e.item_key), de = new Set(ue), fe = se.map((e) => ({
+ }, ne = P.sections[d] || [], re = d === "metadata_fields", ie = c, ae = z_e(ne, re), oe = ae.some(([e]) => e === p) ? p : "candidates", se = RM(ne, oe), ce = se.some((e) => e.key === h) ? h : "", le = V_e(B_e(ne, oe, ce), _), ue = le.rows.map((e) => e.item_key), de = new Set(ue), fe = se.map((e) => ({
...e,
rows: e.rows.filter((e) => de.has(e.item_key))
- })).filter((e) => e.rows.length), pe = (e) => C.get(e.item_key) || q_e(e), me = ne.filter((e) => y.has(e.item_key)), he = (e) => {
+ })).filter((e) => e.rows.length), pe = (e) => C.get(e.item_key) || J_e(e), me = ne.filter((e) => y.has(e.item_key)), he = (e) => {
let t = new Set(e);
S((e) => new Set([...e].filter((e) => !t.has(e)))), w((e) => new Map([...e].filter(([e]) => !t.has(e)))), E((e) => new Map([...e].filter(([e]) => !t.has(e))));
}, ge = (e, t) => E((n) => new Map(n).set(e, t)), _e = (e) => {
f(e), m("candidates"), g(""), v(1), S(/* @__PURE__ */ new Set()), w(/* @__PURE__ */ new Map()), E(/* @__PURE__ */ new Map()), O(""), k.current = null, r({ category: e === "metadata_fields" ? "" : e });
}, ve = ft({
- mutationFn: ({ row: e, status: t }) => GM(UM(d, e, t, pe(e))),
+ mutationFn: ({ row: e, status: t }) => WM(HM(d, e, t, pe(e))),
onSuccess: (e, { row: t, status: n }) => {
- e.ok ? (KM(d, [t.item_key]), he([t.item_key]), s(J_e(n))) : ge(t.item_key, e.error || "服务端拒绝了这次判定");
+ e.ok ? (GM(d, [t.item_key]), he([t.item_key]), s(Y_e(n))) : ge(t.item_key, e.error || "服务端拒绝了这次判定");
},
onError: (e, { row: t }) => ge(t.item_key, R(e))
}), ye = ft({
@@ -56403,7 +56403,7 @@ function EDe(e) {
if (!ee.current) break;
O(`正在处理 ${i} / ${t.length}`);
try {
- let t = await GM(UM(d, a, e, pe(a)));
+ let t = await WM(HM(d, a, e, pe(a)));
if (!t.ok) throw Error(t.error || "服务端未采用该项");
n.push(a.item_key);
} catch (e) {
@@ -56417,7 +56417,7 @@ function EDe(e) {
};
},
onSuccess: ({ status: e, done: t, failures: n }) => {
- KM(d, t), he(t), n.forEach(([e, t]) => ge(e, t)), O(""), s(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
+ GM(d, t), he(t), n.forEach(([e, t]) => ge(e, t)), O(""), s(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
},
onError: (e) => {
O(R(e));
@@ -56441,7 +56441,7 @@ function EDe(e) {
j(e), N("");
let t = await o(e);
ee.current && (j(0), N(t));
- }, Ce = Q_e(P.mirror, l), we = P.genre_tags || [], Te = {
+ }, Ce = $_e(P.mirror, l), we = P.genre_tags || [], Te = {
openItem: i,
openEntity: a,
onReveal: Se,
@@ -56465,13 +56465,13 @@ function EDe(e) {
}) : void 0,
children: Ce
}) : null,
- /* @__PURE__ */ (0, x.jsx)(pDe, { tags: we }),
- /* @__PURE__ */ (0, x.jsxs)(lj, {
+ /* @__PURE__ */ (0, x.jsx)(mDe, { tags: we }),
+ /* @__PURE__ */ (0, x.jsxs)(cj, {
orientation: t ? "horizontal" : "vertical",
selectedKey: d,
onSelectionChange: (e) => {
let t = String(e);
- RM(t) && _e(t);
+ LM(t) && _e(t);
},
className: "flex flex-col gap-5 review-split:flex-row review-split:items-start review-split:gap-6",
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
@@ -56480,27 +56480,27 @@ function EDe(e) {
children: [/* @__PURE__ */ (0, x.jsx)("h2", {
id: "reviewcategories",
children: "复核分类"
- }), /* @__PURE__ */ (0, x.jsx)(uj, {
+ }), /* @__PURE__ */ (0, x.jsx)(lj, {
"aria-labelledby": "reviewcategories",
"data-section-items": !0,
className: "flex review-split:flex-col review-split:items-stretch",
- children: F_e.map((e) => {
+ children: I_e.map((e) => {
let t = Number(P.counts[e] || 0);
- return /* @__PURE__ */ (0, x.jsxs)(dj, {
+ return /* @__PURE__ */ (0, x.jsxs)(uj, {
id: e,
- className: wDe,
- children: [LM[e], t ? /* @__PURE__ */ (0, x.jsx)("span", {
+ className: TDe,
+ children: [IM[e], t ? /* @__PURE__ */ (0, x.jsx)("span", {
className: "tabular-nums text-caption-1-medium text-text-secondary",
children: t.toLocaleString()
}) : null]
}, e);
})
})]
- }), /* @__PURE__ */ (0, x.jsxs)(fj, {
+ }), /* @__PURE__ */ (0, x.jsxs)(dj, {
id: d,
className: "flex min-w-0 flex-1 flex-col gap-5",
children: [
- ne.length && !ie ? /* @__PURE__ */ (0, x.jsx)(dDe, {
+ ne.length && !ie ? /* @__PURE__ */ (0, x.jsx)(fDe, {
groupOptions: ae,
groupBy: oe,
onGroupBy: (e) => {
@@ -56516,7 +56516,7 @@ function EDe(e) {
onSelected: S,
selectedRows: me,
metadata: re,
- approvable: me.every((e) => BM(d, e)),
+ approvable: me.every((e) => zM(d, e)),
busy: ye.isPending,
feedback: D,
onUnifySource: xe,
@@ -56541,7 +56541,7 @@ function EDe(e) {
})]
}) : null, /* @__PURE__ */ (0, x.jsx)("div", {
className: "review-grid gap-5",
- children: e.rows.map((e) => /* @__PURE__ */ (0, x.jsx)(CDe, {
+ children: e.rows.map((e) => /* @__PURE__ */ (0, x.jsx)(wDe, {
category: d,
row: e,
choice: pe(e),
@@ -56549,7 +56549,7 @@ function EDe(e) {
selected: y.has(e.item_key),
onSelect: (t, n) => S((r) => {
let i = new Set(r);
- return k.current = H_e(i, ue, k.current, e.item_key, t, n), i;
+ return k.current = U_e(i, ue, k.current, e.item_key, t, n), i;
}),
locked: ie,
busy: ve.isPending && ve.variables?.row.item_key === e.item_key,
@@ -56580,7 +56580,7 @@ function EDe(e) {
title: "此分类没有待复核项目",
children: "可切换分类查看其他候选。"
}),
- /* @__PURE__ */ (0, x.jsx)(TDe, {
+ /* @__PURE__ */ (0, x.jsx)(EDe, {
page: le.page,
pages: le.pages,
onPage: v
@@ -56593,9 +56593,13 @@ function EDe(e) {
}
//#endregion
//#region src/react/scraping/scraping.ts
-var DDe = "/api/scraping", ODe = "/api/scraping/settings", kDe = "/api/scraping/check", BB = "/api/scraping/cover", ADe = "/api/scraping/amane-bridge", jDe = "/api/scraping/amane-bridge/check", MDe = "/api/scraping/amane-bridge/rebuild", VB = ["scraping"], HB = ["scraping", "cover"], UB = ["scraping", "amane-bridge"], WB = (e) => z(DDe, e), GB = (e) => z(BB, e), KB = (e) => z(ADe, e);
-async function NDe(e) {
+var ODe = "/api/scraping", kDe = "/api/scraping/settings", ADe = "/api/scraping/check", zB = "/api/scraping/cover", jDe = "/api/scraping/amane-bridge", MDe = "/api/scraping/amane-bridge/check", NDe = "/api/scraping/amane-bridge/rebuild", BB = ["scraping"], VB = ["scraping", "cover"], HB = ["scraping", "amane-bridge"], UB = (e) => z(ODe, e), WB = (e) => z(zB, e), GB = (e) => z(jDe, e);
+async function PDe(e) {
await Promise.all([
+ V.fetchQuery({
+ queryKey: BB,
+ queryFn: () => UB(e)
+ }),
V.fetchQuery({
queryKey: VB,
queryFn: () => WB(e)
@@ -56603,31 +56607,27 @@ async function NDe(e) {
V.fetchQuery({
queryKey: HB,
queryFn: () => GB(e)
- }),
- V.fetchQuery({
- queryKey: UB,
- queryFn: () => KB(e)
})
]);
}
-function PDe(e, t) {
+function FDe(e, t) {
return `${t}${e.label === "来源页面" ? "" : " 高清图片"}:${e.ok ? "可连接" : "不能连接"}` + (e.width ? ` · ${e.width} × ${e.height}` : "") + (e.message ? `。${e.message}` : "");
}
//#endregion
//#region src/react/scraping/scraping-page.tsx
-var qB = [["peach", "Peach 代理"], ["direct", "直接连接"]];
-function FDe(e) {
- return qB.some(([t]) => t === e) || !e ? [...qB] : [...qB, [e, e]];
-}
+var KB = [["peach", "Peach 代理"], ["direct", "直接连接"]];
function IDe(e) {
+ return KB.some(([t]) => t === e) || !e ? [...KB] : [...KB, [e, e]];
+}
+function LDe(e) {
try {
return new URL(e).host || e;
} catch {
return e;
}
}
-var JB = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
-function YB({ source: e }) {
+var qB = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
+function JB({ source: e }) {
let t = [
"javten",
"fc2ppvdb",
@@ -56645,16 +56645,16 @@ function YB({ source: e }) {
className: "size-4 shrink-0 rounded-sm object-contain"
});
}
-function LDe() {
- return /* @__PURE__ */ (0, x.jsx)(YB, { source: "github" });
+function RDe() {
+ return /* @__PURE__ */ (0, x.jsx)(JB, { source: "github" });
}
-function RDe({ source: e, toast: t }) {
- let [n, r] = (0, b.useState)(e.network), [i, a] = (0, b.useState)(""), [o, s] = (0, b.useState)(""), [c, l] = (0, b.useState)(JB[0][0]), [u, d] = (0, b.useState)(""), [f, p] = (0, b.useState)(""), m = (0, b.useRef)(null);
+function zDe({ source: e, toast: t }) {
+ let [n, r] = (0, b.useState)(e.network), [i, a] = (0, b.useState)(""), [o, s] = (0, b.useState)(""), [c, l] = (0, b.useState)(qB[0][0]), [u, d] = (0, b.useState)(""), [f, p] = (0, b.useState)(""), m = (0, b.useRef)(null);
function h() {
a(""), s(""), d(""), p(""), m.current && (m.current.value = "");
}
let g = ft({
- mutationFn: (t) => B(ODe, {
+ mutationFn: (t) => B(kDe, {
source: e.source,
network: n,
cookie: i,
@@ -56662,12 +56662,12 @@ function RDe({ source: e, toast: t }) {
revoke: t
}),
onSuccess: (e, n) => {
- V.setQueryData(VB, (t) => t && {
+ V.setQueryData(BB, (t) => t && {
...t,
sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)
}), h(), t(n ? "Cookie 已撤销" : "来源设置已保存");
}
- }), _ = ft({ mutationFn: () => B(kDe, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
+ }), _ = ft({ mutationFn: () => B(ADe, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
e.preventDefault(), !v && (_.reset(), g.mutate(!1));
}, S = () => {
v || (_.reset(), g.mutate(!0));
@@ -56691,22 +56691,22 @@ function RDe({ source: e, toast: t }) {
onSubmit: y,
aside: /* @__PURE__ */ (0, x.jsxs)("span", {
className: "flex min-w-0 items-center gap-1",
- children: [/* @__PURE__ */ (0, x.jsx)(YB, { source: e.source }), /* @__PURE__ */ (0, x.jsx)(sk, {
+ children: [/* @__PURE__ */ (0, x.jsx)(JB, { source: e.source }), /* @__PURE__ */ (0, x.jsx)(sk, {
href: e.login,
- children: IDe(e.login)
+ children: LDe(e.login)
})]
}),
children: [
/* @__PURE__ */ (0, x.jsx)(tk, { children: /* @__PURE__ */ (0, x.jsx)(ZO, {
label: "连接方式",
- children: /* @__PURE__ */ (0, x.jsx)(yP, {
+ children: /* @__PURE__ */ (0, x.jsx)(vP, {
"aria-label": "连接方式",
className: "w-44 min-w-0",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: FDe(n).map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(bP, {
+ children: IDe(n).map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(yP, {
id: e,
children: t
}, e))
@@ -56733,20 +56733,20 @@ function RDe({ source: e, toast: t }) {
className: "text-body-2-regular text-text-secondary",
children: e.cookie_saved ? "Cookie 已保存;登录是否有效要到抓取时才知道。" : "需要登录时,任选一种方式提供 Cookie。"
}),
- /* @__PURE__ */ (0, x.jsx)(hj, {
+ /* @__PURE__ */ (0, x.jsx)(mj, {
"aria-label": "提供 Cookie 的方式(二选一)",
value: c,
onChange: (e) => {
l(e), h();
},
- className: gj,
- children: JB.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(FA, {
+ className: hj,
+ children: qB.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(PA, {
value: e,
- className: _j,
+ className: gj,
children: t
}, e))
}),
- c === "paste" ? /* @__PURE__ */ (0, x.jsx)(LP, {
+ c === "paste" ? /* @__PURE__ */ (0, x.jsx)(IP, {
type: "password",
label: "Cookie",
autoComplete: "off",
@@ -56784,7 +56784,7 @@ function RDe({ source: e, toast: t }) {
T ? /* @__PURE__ */ (0, x.jsx)(ak, { children: T }) : null,
E.map((t) => /* @__PURE__ */ (0, x.jsx)(K, {
tone: t.ok ? "success" : "error",
- children: PDe(t, e.label)
+ children: FDe(t, e.label)
}, t.label))
]
}) : null,
@@ -56810,11 +56810,11 @@ function RDe({ source: e, toast: t }) {
]
});
}
-function zDe({ toast: e }) {
- let [t, n] = (0, b.useState)(""), { running: r, outcome: i, start: a } = SP({
- queryKey: HB,
- queryFn: ({ signal: e }) => GB(e),
- start: () => B(BB, { code: t }),
+function BDe({ toast: e }) {
+ let [t, n] = (0, b.useState)(""), { running: r, outcome: i, start: a } = xP({
+ queryKey: VB,
+ queryFn: ({ signal: e }) => WB(e),
+ start: () => B(zB, { code: t }),
onFinish: (t) => {
t.status === "complete" && e(t.result || "封面采集完成");
}
@@ -56829,7 +56829,7 @@ function zDe({ toast: e }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, x.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, x.jsx)(LP, {
+ children: /* @__PURE__ */ (0, x.jsx)(IP, {
"aria-label": "馆藏番号",
isRequired: !0,
isDisabled: r,
@@ -56856,11 +56856,11 @@ function zDe({ toast: e }) {
] })
});
}
-function BDe({ toast: e }) {
- let { query: t, running: n, outcome: r, start: i } = SP({
- queryKey: UB,
- queryFn: ({ signal: e }) => KB(e),
- start: () => B(MDe, {}),
+function VDe({ toast: e }) {
+ let { query: t, running: n, outcome: r, start: i } = xP({
+ queryKey: HB,
+ queryFn: ({ signal: e }) => GB(e),
+ start: () => B(NDe, {}),
jobOf: (e) => e.job,
withJob: (e, t) => e && {
...e,
@@ -56869,7 +56869,7 @@ function BDe({ toast: e }) {
onFinish: (t) => {
t.status === "complete" && e(t.result || "amane 桥已重建");
}
- }), a = ft({ mutationFn: () => B(jDe, {}) }), o = t.data;
+ }), a = ft({ mutationFn: () => B(MDe, {}) }), o = t.data;
if (!o) return t.error ? /* @__PURE__ */ (0, x.jsx)(ek, {
title: "amane",
children: /* @__PURE__ */ (0, x.jsx)(nk, { children: /* @__PURE__ */ (0, x.jsx)(K, {
@@ -56882,7 +56882,7 @@ function BDe({ toast: e }) {
title: "amane",
aside: /* @__PURE__ */ (0, x.jsx)(sk, {
href: o.repository,
- leadingIcon: LDe,
+ leadingIcon: RDe,
children: o.repository
}),
children: [
@@ -56951,22 +56951,22 @@ function BDe({ toast: e }) {
]
});
}
-function VDe({ toast: e }) {
+function HDe({ toast: e }) {
let t = dt({
- queryKey: VB,
- queryFn: ({ signal: e }) => WB(e)
+ queryKey: BB,
+ queryFn: ({ signal: e }) => UB(e)
}), n = t.data;
return n ? /* @__PURE__ */ (0, x.jsxs)(qO, { children: [
/* @__PURE__ */ (0, x.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "高清图片可能要经代理才能下载,先检查连接。"
}),
- /* @__PURE__ */ (0, x.jsx)(zDe, { toast: e }),
- (n.sources || []).map((t) => /* @__PURE__ */ (0, x.jsx)(RDe, {
+ /* @__PURE__ */ (0, x.jsx)(BDe, { toast: e }),
+ (n.sources || []).map((t) => /* @__PURE__ */ (0, x.jsx)(zDe, {
source: t,
toast: e
}, t.source)),
- /* @__PURE__ */ (0, x.jsx)(BDe, { toast: e })
+ /* @__PURE__ */ (0, x.jsx)(VDe, { toast: e })
] }) : /* @__PURE__ */ (0, x.jsx)(qO, { children: /* @__PURE__ */ (0, x.jsx)(K, {
tone: "error",
title: "采集来源读取失败",
@@ -56975,21 +56975,21 @@ function VDe({ toast: e }) {
}
//#endregion
//#region src/react/search/search.ts
-var XB = /* @__PURE__ */ new Set([
+var YB = /* @__PURE__ */ new Set([
"performer",
"creator",
"studio",
"agency",
"series"
-]), ZB = /* @__PURE__ */ new Set(["asset"]), QB = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
-function HDe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o }) {
+]), XB = /* @__PURE__ */ new Set(["asset"]), ZB = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
+function UDe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o }) {
let s = 0, c = [], l = (e) => {
let t = {
...e,
index: s++
};
return c.push(t), t;
- }, u = t.filter((t) => !e || QB(t).includes(QB(e)));
+ }, u = t.filter((t) => !e || ZB(t).includes(ZB(e)));
if (!e) {
let e = u.length ? {
label: "搜索记录",
@@ -57036,7 +57036,7 @@ function HDe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: n,
more: r
};
- }, h = p.filter((e) => !ZB.has(e.kind)).map(m), g = p.filter((e) => ZB.has(e.kind)).map(m), _ = d && !p.some((e) => e.items.length);
+ }, h = p.filter((e) => !XB.has(e.kind)).map(m), g = p.filter((e) => XB.has(e.kind)).map(m), _ = d && !p.some((e) => e.items.length);
return {
tabs: d && a.length > 1 ? [...a] : null,
recent: f,
@@ -57046,17 +57046,17 @@ function HDe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: c
};
}
-function UDe(e, t, n = Math.random) {
+function WDe(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) => QB(t) === QB(e))).slice(0, 5);
+ return r.filter((e) => !t.some((t) => ZB(t) === ZB(e))).slice(0, 5);
}
//#endregion
//#region src/react/search/search-page.tsx
-var WDe = () => ({
+var GDe = () => ({
history: [],
pool: [],
poolRequest: 0,
@@ -57072,7 +57072,7 @@ var WDe = () => ({
active: -1,
reveal: !1,
rewind: !1
-}), $B = (e) => HDe({
+}), QB = (e) => UDe({
query: e.query,
history: e.history,
picks: e.picks,
@@ -57080,18 +57080,18 @@ var WDe = () => ({
groups: e.groups,
tabs: e.tabs,
kind: e.kind
-}), GDe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), eV = ({ name: e }) => /* @__PURE__ */ (0, x.jsx)("svg", {
+}), KDe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), $B = ({ name: e }) => /* @__PURE__ */ (0, x.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, x.jsx)("use", { href: `#i-${e}` })
});
-function KDe(e) {
+function qDe(e) {
let t = (0, b.useRef)(e);
t.current = e;
let n = (0, b.useRef)(null);
- n.current ??= WDe();
+ n.current ??= GDe();
let r = n.current, i = (0, b.useRef)(null), [, a] = (0, b.useReducer)((e) => e + 1, 0), o = (0, b.useRef)(null);
- o.current ??= qDe(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
+ o.current ??= JDe(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
let s = o.current;
(0, b.useLayoutEffect)(() => {
let { input: e } = t.current, n = (e) => s.input(e), i = () => t.current.helpers.composing(), a = (e) => s.key(e), o = () => s.focus();
@@ -57104,7 +57104,7 @@ function KDe(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 = $B(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, x.jsx)(YDe, {
+ let c = QB(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, x.jsx)(XDe, {
entry: t,
active: t.index === r.active,
helpers: e.helpers,
@@ -57128,7 +57128,7 @@ function KDe(e) {
"data-search-root": "",
"data-history-limit": l,
children: [
- c.tabs ? /* @__PURE__ */ (0, x.jsx)(JDe, {
+ c.tabs ? /* @__PURE__ */ (0, x.jsx)(YDe, {
tabs: c.tabs,
kind: r.kind,
onPick: s.pickKind,
@@ -57154,7 +57154,7 @@ function KDe(e) {
]
});
}
-function qDe(e, t, n, r) {
+function JDe(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 () => {
@@ -57165,7 +57165,7 @@ function qDe(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) => QB(e) !== QB(t))]), B("/api/search-history", { query: t }).catch(() => null));
+ t && e().historyLimit && (s([t, ...o().filter((e) => ZB(e) !== ZB(t))]), B("/api/search-history", { query: t }).catch(() => null));
}, u = async () => {
let n = ++t.poolRequest;
t.pool = [];
@@ -57202,9 +57202,9 @@ function qDe(e, t, n, r) {
let i = n();
i && e().helpers.dismiss(i), t.active = -1, r();
}, m = () => {
- t.query = i().value.trim(), t.picks = t.query ? [] : UDe(t.pool, o()), t.active = -1;
+ t.query = i().value.trim(), t.picks = t.query ? [] : WDe(t.pool, o()), t.active = -1;
let a = n();
- a && (GDe($B(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
+ a && (KDe(QB(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
}, h = () => {
t.active = -1, t.kind = "", clearTimeout(t.timer);
let e = i().value.trim();
@@ -57216,7 +57216,7 @@ function qDe(e, t, n, r) {
n && e !== t.kind && (t.kind = e, clearTimeout(t.timer), m(), t.rewind = !0, d(n, e).then(() => {
a() && t.kind === e && m();
}));
- }, _ = () => f() ? $B(t).options : [], v = (e) => {
+ }, _ = () => f() ? QB(t).options : [], v = (e) => {
let n = _();
return n.length ? (t.active = (t.active + e + n.length) % n.length, t.reveal = !0, r(), !0) : !1;
}, y = (t, n) => {
@@ -57225,7 +57225,7 @@ function qDe(e, t, n, r) {
}, b = (t, n) => {
i().blur(), l(n), e().actions.openEntity(t, n);
}, x = (t) => {
- t.type === "more" ? (y(!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" && XB.has(t.kind) ? b(t.kind, t.value) : (i().value = t.value, y(!1, !0));
+ t.type === "more" ? (y(!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" && YB.has(t.kind) ? b(t.kind, t.value) : (i().value = t.value, y(!1, !0));
};
return {
input: (t) => {
@@ -57269,12 +57269,12 @@ function qDe(e, t, n, r) {
await B("/api/search-history", {
operation: "remove",
query: e
- }).catch(() => null), s(o().filter((t) => QB(t) !== QB(e))), t.active = -1, r();
+ }).catch(() => null), s(o().filter((t) => ZB(t) !== ZB(e))), t.active = -1, r();
},
pickKind: g
};
}
-function JDe({ tabs: e, kind: t, onPick: n, wire: r }) {
+function YDe({ tabs: e, kind: t, onPick: n, wire: r }) {
let i = (0, b.useRef)(null);
(0, b.useLayoutEffect)(() => {
r(i.current);
@@ -57286,7 +57286,7 @@ function JDe({ tabs: e, kind: t, onPick: n, wire: r }) {
"aria-selected": t === e,
onMouseDown: (e) => e.preventDefault(),
onClick: () => n(e),
- children: [r, i ? /* @__PURE__ */ (0, x.jsx)(Pz, { value: i }) : null]
+ children: [r, i ? /* @__PURE__ */ (0, x.jsx)(Nz, { value: i }) : null]
}, e || "all");
return /* @__PURE__ */ (0, x.jsxs)("div", {
ref: i,
@@ -57296,8 +57296,8 @@ function JDe({ tabs: e, kind: t, onPick: n, wire: r }) {
children: [a("", "全部"), e.map((e) => a(e.kind, e.label, e.total))]
});
}
-var tV = (e) => e.preventDefault();
-function YDe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
+var eV = (e) => e.preventDefault();
+function XDe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
let o = {
"data-search-value": e.value,
"data-active": t ? "" : void 0,
@@ -57309,40 +57309,40 @@ function YDe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
type: "button",
"data-search-option": "more",
...o,
- onMouseDown: tV,
+ onMouseDown: eV,
children: [
"查看全部 ",
e.total.toLocaleString(),
" 个视频",
- /* @__PURE__ */ (0, x.jsx)(eV, { name: "chevron-right" })
+ /* @__PURE__ */ (0, x.jsx)($B, { name: "chevron-right" })
]
});
if (e.type !== "suggest") return /* @__PURE__ */ (0, x.jsxs)("div", {
"data-search-option": "",
...o,
children: [
- /* @__PURE__ */ (0, x.jsx)(eV, { name: e.type === "history" ? "history" : "sparkles" }),
+ /* @__PURE__ */ (0, x.jsx)($B, { name: e.type === "history" ? "history" : "sparkles" }),
/* @__PURE__ */ (0, x.jsx)("span", { children: e.value }),
e.type === "history" ? /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
"data-remove-history": e.value,
"aria-label": `删除历史 ${e.value}`,
- onMouseDown: tV,
+ onMouseDown: eV,
onClick: (t) => {
t.stopPropagation(), a(e.value);
},
- children: /* @__PURE__ */ (0, x.jsx)(eV, { name: "x" })
+ children: /* @__PURE__ */ (0, x.jsx)($B, { name: "x" })
}) : null
]
});
- let { item: s, kind: c } = e, l = XB.has(c) ? c : void 0;
+ let { item: s, kind: c } = e, l = YB.has(c) ? c : void 0;
if (c === "asset") {
let e = [s.who, s.code ? s.title : ""].filter(Boolean).join(" · ");
return /* @__PURE__ */ (0, x.jsxs)("div", {
"data-search-option": "work",
"data-open-item": s.id,
...o,
- children: [/* @__PURE__ */ (0, x.jsx)(nV, {
+ children: [/* @__PURE__ */ (0, x.jsx)(tV, {
card: s.card,
helpers: n
}), /* @__PURE__ */ (0, x.jsxs)("span", {
@@ -57368,7 +57368,7 @@ function YDe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-open-entity": l,
...o,
children: [
- /* @__PURE__ */ (0, x.jsx)(rV, {
+ /* @__PURE__ */ (0, x.jsx)(nV, {
item: s,
kind: c
}),
@@ -57388,11 +57388,11 @@ function YDe({ 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: tV,
+ onMouseDown: eV,
onClick: (t) => {
t.stopPropagation(), i(e);
},
- children: /* @__PURE__ */ (0, x.jsx)(nV, {
+ children: /* @__PURE__ */ (0, x.jsx)(tV, {
card: e,
helpers: n
})
@@ -57406,7 +57406,7 @@ function YDe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-open-entity": l,
...o,
children: [
- c === "studio" || c === "agency" ? /* @__PURE__ */ (0, x.jsx)(rV, {
+ c === "studio" || c === "agency" ? /* @__PURE__ */ (0, x.jsx)(nV, {
item: s,
kind: c
}) : null,
@@ -57419,13 +57419,13 @@ function YDe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
]
});
}
-function nV({ card: e, helpers: t }) {
+function tV({ card: e, helpers: t }) {
return /* @__PURE__ */ (0, x.jsx)("span", {
"data-search-pic": "",
dangerouslySetInnerHTML: { __html: t.coverHtml(e) }
});
}
-function rV({ item: e, kind: t }) {
+function nV({ item: e, kind: t }) {
let n = {
id: e.entity_id,
has_image: e.has_image,
@@ -57441,45 +57441,45 @@ function rV({ item: e, kind: t }) {
}
//#endregion
//#region src/configuration-endpoints.ts
-var iV = "/api/configuration", XDe = "/api/pick-folder", aV = ["configuration"], oV = (e) => z(iV, e);
-async function ZDe(e) {
+var rV = "/api/configuration", ZDe = "/api/pick-folder", iV = ["configuration"], aV = (e) => z(rV, e);
+async function QDe(e) {
await V.fetchQuery({
- queryKey: aV,
- queryFn: () => oV(e)
+ queryKey: iV,
+ queryFn: () => aV(e)
});
}
//#endregion
//#region src/react/settings/configuration-panel.ts
-var sV = "flex flex-col gap-6";
-function cV(e) {
+var oV = "flex flex-col gap-6";
+function sV(e) {
return e ? {
- className: e.active ? `${sV} ui-board-group-active` : sV,
+ className: e.active ? `${oV} ui-board-group-active` : oV,
"data-board-group": String(e.index),
id: e.id,
role: "tabpanel",
"aria-labelledby": e.labelledBy
- } : { className: sV };
+ } : { className: oV };
}
//#endregion
//#region src/react/settings/download-settings.tsx
-var QDe = "/api/configuration/downloads", lV = "/api/configuration/downloads/check", $De = "/api/configuration/downloads/folder", eOe = "/api/configuration/downloads/pikpak/login", tOe = "/api/configuration/downloads/pikpak/logout", uV = "/api/configuration/downloads/pikpak/browser-login", dV = 2e3;
-function nOe({ initial: e, receipt: t, panel: n }) {
+var $De = "/api/configuration/downloads", cV = "/api/configuration/downloads/check", eOe = "/api/configuration/downloads/folder", tOe = "/api/configuration/downloads/pikpak/login", nOe = "/api/configuration/downloads/pikpak/logout", lV = "/api/configuration/downloads/pikpak/browser-login", uV = 2e3;
+function rOe({ initial: e, receipt: t, panel: n }) {
return /* @__PURE__ */ (0, x.jsx)("div", {
- ...cV(n),
- children: /* @__PURE__ */ (0, x.jsx)(rOe, {
+ ...sV(n),
+ children: /* @__PURE__ */ (0, x.jsx)(iOe, {
initial: e,
receipt: t
})
});
}
-function rOe({ initial: e, receipt: t }) {
+function iOe({ initial: e, receipt: t }) {
let [n, r] = (0, b.useState)(e), [i, a] = (0, b.useState)(""), o = n.pikpak.logged_in || !!i.trim();
- return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(iOe, {
+ return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(aOe, {
state: n,
settle: r,
receipt: t,
pikpakAccount: o
- }), /* @__PURE__ */ (0, x.jsx)(oOe, {
+ }), /* @__PURE__ */ (0, x.jsx)(sOe, {
state: n,
settle: r,
receipt: t,
@@ -57487,8 +57487,8 @@ function rOe({ initial: e, receipt: t }) {
setUsername: a
})] });
}
-function iOe({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
- let [i, a] = (0, b.useState)(e.config), [o, s] = (0, b.useState)(""), [c, l] = (0, b.useState)(String(e.config.wait_hours)), [u, d] = (0, b.useState)(null), [f, p] = (0, b.useState)(""), [m, h] = (0, b.useState)(fV), [g, _] = (0, b.useState)(""), [v, y] = (0, b.useState)(!1), S = XO(), C = (e) => i.targets[e] ?? "", w = (e, t) => a({
+function aOe({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
+ let [i, a] = (0, b.useState)(e.config), [o, s] = (0, b.useState)(""), [c, l] = (0, b.useState)(String(e.config.wait_hours)), [u, d] = (0, b.useState)(null), [f, p] = (0, b.useState)(""), [m, h] = (0, b.useState)(dV), [g, _] = (0, b.useState)(""), [v, y] = (0, b.useState)(!1), S = XO(), C = (e) => i.targets[e] ?? "", w = (e, t) => a({
...i,
targets: {
...i.targets,
@@ -57517,7 +57517,7 @@ function iOe({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
target: !e.config.targets[115],
root: !e.config.pikpak_root
};
- S.run("auto", (e) => z(lV, e), (e) => E(e, t), (e) => _(R(e)));
+ S.run("auto", (e) => z(cV, e), (e) => E(e, t), (e) => _(R(e)));
}, []), /* @__PURE__ */ (0, x.jsxs)(ek, {
title: "云下载",
onSubmit: (e) => {
@@ -57531,18 +57531,18 @@ function iOe({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
token: o,
pikpak_account: r
};
- S.run("save", (e) => B(QDe, f, "POST", e), (e) => {
+ S.run("save", (e) => B($De, f, "POST", e), (e) => {
let { report: r, ...i } = e;
t(i), a(i.config), l(String(i.config.wait_hours)), s(""), r ? E(r, {
address: !i.config.clouddrive_address,
target: u,
root: !i.config.pikpak_root
- }, i.config.targets[115] ?? "") : (d(null), p(""), h(fV), y(!1), _("")), n("已保存配置");
+ }, i.config.targets[115] ?? "") : (d(null), p(""), h(dV), y(!1), _("")), n("已保存配置");
}, (e) => _(R(e)));
},
children: [
/* @__PURE__ */ (0, x.jsxs)(nk, { children: [
- /* @__PURE__ */ (0, x.jsx)(LP, {
+ /* @__PURE__ */ (0, x.jsx)(IP, {
label: "CloudDrive2 地址",
placeholder: "留空自动查找",
autoComplete: "off",
@@ -57554,7 +57554,7 @@ function iOe({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
clouddrive_address: e
})
}),
- /* @__PURE__ */ (0, x.jsx)(LP, {
+ /* @__PURE__ */ (0, x.jsx)(IP, {
label: "CloudDrive2 API 令牌",
type: "password",
autoComplete: "off",
@@ -57565,7 +57565,7 @@ function iOe({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
isDisabled: !e.available,
onChange: s
}),
- /* @__PURE__ */ (0, x.jsx)(LP, {
+ /* @__PURE__ */ (0, x.jsx)(IP, {
label: /* @__PURE__ */ (0, x.jsx)(vk, {
source: "115",
label: "115 目标目录"
@@ -57580,7 +57580,7 @@ function iOe({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
isDisabled: !e.available,
onChange: (e) => w("115", e)
}),
- /* @__PURE__ */ (0, x.jsx)(LP, {
+ /* @__PURE__ */ (0, x.jsx)(IP, {
label: /* @__PURE__ */ (0, x.jsx)(vk, {
source: "pikpak",
label: "PikPak 目标目录"
@@ -57598,7 +57598,7 @@ function iOe({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
children: [/* @__PURE__ */ (0, x.jsx)(ok, { children: /* @__PURE__ */ (0, x.jsx)(vk, {
source: "pikpak",
label: "PikPak 根目录对应的媒体文件夹"
- }) }), e.pikpak_roots.length ? /* @__PURE__ */ (0, x.jsx)(yP, {
+ }) }), e.pikpak_roots.length ? /* @__PURE__ */ (0, x.jsx)(vP, {
"aria-label": "PikPak 根目录对应的媒体文件夹",
selectedKey: i.pikpak_root || null,
isDisabled: !e.available,
@@ -57607,13 +57607,13 @@ function iOe({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
...i,
pikpak_root: e === null ? "" : String(e)
}),
- children: e.pikpak_roots.map((e) => /* @__PURE__ */ (0, x.jsx)(bP, {
+ children: e.pikpak_roots.map((e) => /* @__PURE__ */ (0, x.jsx)(yP, {
id: e,
children: e
}, e))
}) : /* @__PURE__ */ (0, x.jsx)(ik, { children: "先在「媒体库与入库」添加 PikPak 挂载文件夹。" })]
}),
- /* @__PURE__ */ (0, x.jsx)(LP, {
+ /* @__PURE__ */ (0, x.jsx)(IP, {
label: "等待上限(小时)",
type: "number",
inputMode: "numeric",
@@ -57628,7 +57628,7 @@ function iOe({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
divided: !0,
children: /* @__PURE__ */ (0, x.jsx)(KO, { label: "正在检查 CloudDrive2" })
}) : null,
- u ? /* @__PURE__ */ (0, x.jsx)(aOe, {
+ u ? /* @__PURE__ */ (0, x.jsx)(oOe, {
report: u,
detected: f,
suggested: m,
@@ -57640,7 +57640,7 @@ function iOe({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
pikpak_root: i.pikpak_root,
pikpak_account: r
};
- S.run("folder", (e) => B($De, t, "POST", e), (t) => {
+ S.run("folder", (e) => B(eOe, t, "POST", e), (t) => {
d(t), h((t) => ({
...t,
target: {
@@ -57672,7 +57672,7 @@ function iOe({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
pikpak_root: i.pikpak_root,
pikpak_account: r
};
- S.run("check", (e) => B(lV, t, "POST", e), (t) => E(t, e), (e) => _(R(e)));
+ S.run("check", (e) => B(cV, t, "POST", e), (t) => E(t, e), (e) => _(R(e)));
},
disabled: !e.available,
...q(S.busy === "check"),
@@ -57687,12 +57687,12 @@ function iOe({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
]
});
}
-var fV = {
+var dV = {
target: null,
root: "",
saved: !1
};
-function aOe({ report: e, detected: t, suggested: n, create: r, creating: i }) {
+function oOe({ report: e, detected: t, suggested: n, create: r, creating: i }) {
let a = n.target;
return /* @__PURE__ */ (0, x.jsxs)(nk, {
divided: !0,
@@ -57746,30 +57746,30 @@ function aOe({ report: e, detected: t, suggested: n, create: r, creating: i }) {
] }), e.problems.map((e) => /* @__PURE__ */ (0, x.jsx)(ak, { children: e }, e))]
});
}
-function oOe({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
+function sOe({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
let [a, o] = (0, b.useState)(""), [s, c] = (0, b.useState)(!1), [l, u] = (0, b.useState)(""), [d, f] = (0, b.useState)(""), [p, m] = (0, b.useState)(""), h = XO(), g = e.pikpak, _ = e.pikpak_browser, v = _.state === "waiting";
(0, b.useEffect)(() => {
if (!v) return;
let e = new AbortController(), r, i = async () => {
try {
- let r = await z(uV, e.signal);
+ let r = await z(lV, e.signal);
if (e.signal.aborted || (t(r), r.pikpak_browser.state === "done" ? n("已登录 PikPak") : r.pikpak_browser.state !== "waiting" && m(r.pikpak_browser.message), r.pikpak_browser.state !== "waiting")) return;
} catch (t) {
if (e.signal.aborted) return;
f(R(t));
}
- r = setTimeout(i, dV);
+ r = setTimeout(i, uV);
};
- return r = setTimeout(i, dV), () => {
+ return r = setTimeout(i, uV), () => {
e.abort(), clearTimeout(r);
};
}, [v]);
let y = () => {
- m(""), h.run("browser", (e) => B(uV, {}, "POST", e), (e) => {
+ m(""), h.run("browser", (e) => B(lV, {}, "POST", e), (e) => {
t(e), f("");
}, (e) => f(R(e)));
}, S = () => {
- h.run("cancel", (e) => B(`${uV}/cancel`, {}, "POST", e), (e) => {
+ h.run("cancel", (e) => B(`${lV}/cancel`, {}, "POST", e), (e) => {
t(e), f(""), m(e.pikpak_browser.message);
}, (e) => f(R(e)));
}, C = (e) => {
@@ -57779,15 +57779,15 @@ function oOe({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
password: a,
remember: s
};
- h.run("login", (e) => B(eOe, i, "POST", e), (e) => {
+ h.run("login", (e) => B(tOe, i, "POST", e), (e) => {
t(e.settings), f(""), e.ok ? (u(""), o(""), n("已登录 PikPak")) : u(e.captcha_url ?? "");
}, (e) => f(R(e)));
}, w = () => {
- h.run("logout", (e) => B(tOe, {}, "POST", e), (e) => {
+ h.run("logout", (e) => B(nOe, {}, "POST", e), (e) => {
t(e), f(""), n("已登出 PikPak");
}, (e) => f(R(e)));
}, T = /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
- /* @__PURE__ */ (0, x.jsx)(LP, {
+ /* @__PURE__ */ (0, x.jsx)(IP, {
label: "账号",
placeholder: "邮箱或手机号",
autoComplete: "username",
@@ -57796,7 +57796,7 @@ function oOe({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
isDisabled: !e.available,
onChange: i
}),
- /* @__PURE__ */ (0, x.jsx)(LP, {
+ /* @__PURE__ */ (0, x.jsx)(IP, {
label: "密码",
type: "password",
autoComplete: "current-password",
@@ -57805,7 +57805,7 @@ function oOe({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
isDisabled: !e.available,
onChange: o
}),
- /* @__PURE__ */ (0, x.jsx)(EP, {
+ /* @__PURE__ */ (0, x.jsx)(TP, {
isSelected: s,
isDisabled: !e.available,
onChange: c,
@@ -57887,28 +57887,28 @@ function oOe({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
}
//#endregion
//#region src/react/settings/maintenance-settings.tsx
-var sOe = [
+var cOe = [
["6", "每 6 小时"],
["24", "每天"],
["168", "每周"]
];
-function cOe({ data: e, receipt: t, reopenTutorial: n, panel: r }) {
+function lOe({ data: e, receipt: t, reopenTutorial: n, panel: r }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
- ...cV(r),
+ ...sV(r),
children: [
- /* @__PURE__ */ (0, x.jsx)(dOe, { facts: e.facts }),
- /* @__PURE__ */ (0, x.jsx)(lOe, {
+ /* @__PURE__ */ (0, x.jsx)(fOe, { facts: e.facts }),
+ /* @__PURE__ */ (0, x.jsx)(uOe, {
receipt: t,
reopenTutorial: n
}),
- e.uninstall ? /* @__PURE__ */ (0, x.jsx)(fOe, {
+ e.uninstall ? /* @__PURE__ */ (0, x.jsx)(pOe, {
uninstall: e.uninstall,
receipt: t
}) : null
]
});
}
-function lOe({ receipt: e, reopenTutorial: t }) {
+function uOe({ receipt: e, reopenTutorial: t }) {
let n = XO();
return /* @__PURE__ */ (0, x.jsx)("section", {
"aria-label": "安装教程",
@@ -57924,7 +57924,7 @@ function lOe({ receipt: e, reopenTutorial: t }) {
}) }), n.error ? /* @__PURE__ */ (0, x.jsx)(nk, { children: /* @__PURE__ */ (0, x.jsx)(ak, { children: n.error }) }) : null] })
});
}
-function uOe({ initial: e, receipt: t }) {
+function dOe({ initial: e, receipt: t }) {
let [n, r] = (0, b.useState)(e.mode), [i, a] = (0, b.useState)(e.interval_hours), o = XO(e.error), s = (r) => {
r.preventDefault(), e.available && o.run("save", (e) => B("/api/configuration/automatic-updates", {
mode: n,
@@ -57938,7 +57938,7 @@ function uOe({ initial: e, receipt: t }) {
/* @__PURE__ */ (0, x.jsxs)(tk, { children: [
/* @__PURE__ */ (0, x.jsx)(ZO, {
label: "自动检查新版本",
- children: /* @__PURE__ */ (0, x.jsx)(Cz, {
+ children: /* @__PURE__ */ (0, x.jsx)(Sz, {
"aria-label": "自动检查新版本",
isSelected: n !== "off",
isDisabled: !e.available,
@@ -57947,7 +57947,7 @@ function uOe({ initial: e, receipt: t }) {
}),
/* @__PURE__ */ (0, x.jsx)(ZO, {
label: "自动下载更新",
- children: /* @__PURE__ */ (0, x.jsx)(Cz, {
+ children: /* @__PURE__ */ (0, x.jsx)(Sz, {
"aria-label": "自动下载更新",
isSelected: n === "download",
isDisabled: !e.available || !e.download_available || n === "off",
@@ -57957,14 +57957,14 @@ function uOe({ initial: e, receipt: t }) {
/* @__PURE__ */ (0, x.jsx)(ZO, {
label: "检查频率",
description: c,
- children: /* @__PURE__ */ (0, x.jsx)(yP, {
+ children: /* @__PURE__ */ (0, x.jsx)(vP, {
"aria-label": "检查频率",
selectedKey: String(i),
isDisabled: !e.available,
onSelectionChange: (e) => {
e !== null && a(Number(e));
},
- children: sOe.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(bP, {
+ children: cOe.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(yP, {
id: e,
children: t
}, e))
@@ -57984,7 +57984,7 @@ function uOe({ initial: e, receipt: t }) {
]
});
}
-function dOe({ facts: e }) {
+function fOe({ facts: e }) {
return /* @__PURE__ */ (0, x.jsxs)(ek, {
title: "运行信息",
children: [/* @__PURE__ */ (0, x.jsx)(ck, { children: e.map((e) => /* @__PURE__ */ (0, x.jsxs)(lk, {
@@ -58003,7 +58003,7 @@ function dOe({ facts: e }) {
}) })]
});
}
-function fOe({ uninstall: e, receipt: t }) {
+function pOe({ uninstall: e, receipt: t }) {
let [n, r] = (0, b.useState)(!1), [i, a] = (0, b.useState)(""), o = () => void is({
title: "卸载 Peach",
danger: !0,
@@ -58025,7 +58025,7 @@ function fOe({ uninstall: e, receipt: t }) {
/* @__PURE__ */ (0, x.jsx)(ZO, {
label: "完全卸载",
description: "同时删除设置、本地数据库、观看记录、凭据和缓存",
- children: /* @__PURE__ */ (0, x.jsx)(Cz, {
+ children: /* @__PURE__ */ (0, x.jsx)(Sz, {
"aria-label": "完全卸载",
isSelected: n,
isDisabled: !e.full_available || !!i,
@@ -58034,7 +58034,7 @@ function fOe({ uninstall: e, receipt: t }) {
}),
/* @__PURE__ */ (0, x.jsx)(uk, {
summary: "数据目录",
- children: c.map((e) => /* @__PURE__ */ (0, x.jsx)(mP, {
+ children: c.map((e) => /* @__PURE__ */ (0, x.jsx)(pP, {
path: e,
className: "text-body-2-regular text-text-secondary",
onRevealed: t
@@ -58056,23 +58056,23 @@ function fOe({ uninstall: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/release-updates.tsx
-var pV = /* @__PURE__ */ new Set([
+var fV = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), pOe = [
+]), mOe = [
65,
67,
90
-], mV = 120;
-function mOe({ initial: e, initialJob: t }) {
+], pV = 120;
+function hOe({ initial: e, initialJob: t }) {
let [n, r] = (0, b.useState)(e), [i, a] = (0, b.useState)(t || {
state: "idle",
progress: 0
- }), [o, s] = (0, b.useState)(""), c = XO(), l = (0, b.useRef)(!1), u = (0, b.useRef)(!0), d = pV.has(i.state);
+ }), [o, s] = (0, b.useState)(""), c = XO(), l = (0, b.useRef)(!1), u = (0, b.useRef)(!0), d = fV.has(i.state);
(0, b.useEffect)(() => (u.current = !0, () => {
u.current = !1;
}), []);
@@ -58089,7 +58089,7 @@ function mOe({ initial: e, initialJob: t }) {
(0, b.useEffect)(() => {
i.state !== "ready" || l.current || (l.current = !0, p());
}, [i.state]), (0, b.useEffect)(() => {
- let e = new AbortController(), t = pV.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
+ let e = new AbortController(), t = fV.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
try {
let t = await z("/api/configuration/update-status", e.signal);
if (e.signal.aborted) return;
@@ -58102,9 +58102,9 @@ function mOe({ initial: e, initialJob: t }) {
let n = await z("/api/configuration/automatic-updates", e.signal);
!e.signal.aborted && n.result && r(n.result);
} catch {
- o += 1, o >= mV && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
+ o += 1, o >= pV && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
}
- !e.signal.aborted && o < mV && (n = setTimeout(c, t));
+ !e.signal.aborted && o < pV && (n = setTimeout(c, t));
};
return n = setTimeout(c, t), () => {
e.abort(), clearTimeout(n);
@@ -58159,7 +58159,7 @@ function mOe({ initial: e, initialJob: t }) {
/* @__PURE__ */ (0, x.jsx)(YO, {
label: "更新准备进度",
value: i.progress,
- stops: pOe
+ stops: mOe
}),
/* @__PURE__ */ (0, x.jsxs)(ik, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
/* @__PURE__ */ (0, x.jsx)(ik, { children: _ })
@@ -58196,26 +58196,26 @@ function mOe({ initial: e, initialJob: t }) {
}
//#endregion
//#region src/react/settings/general-settings.tsx
-function hOe({ data: e, receipt: t, panel: n }) {
+function gOe({ data: e, receipt: t, panel: n }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
- ...cV(n),
+ ...sV(n),
children: [
- e.startup ? /* @__PURE__ */ (0, x.jsx)(gOe, {
+ e.startup ? /* @__PURE__ */ (0, x.jsx)(_Oe, {
startup: e.startup,
receipt: t
}) : null,
- e.automatic_updates ? /* @__PURE__ */ (0, x.jsx)(uOe, {
+ e.automatic_updates ? /* @__PURE__ */ (0, x.jsx)(dOe, {
initial: e.automatic_updates,
receipt: t
}) : null,
- e.updates ? /* @__PURE__ */ (0, x.jsx)(mOe, {
+ e.updates ? /* @__PURE__ */ (0, x.jsx)(hOe, {
initial: e.updates,
initialJob: e.update_job
}) : null
]
});
}
-function gOe({ startup: e, receipt: t }) {
+function _Oe({ startup: e, receipt: t }) {
let [n, r] = (0, b.useState)(e.enabled), [i, a] = (0, b.useState)(e.silent), [o, s] = (0, b.useState)(e.desktop), c = XO(), l = e.available && !e.desktop_message;
return /* @__PURE__ */ (0, x.jsxs)(ek, {
title: "开机自启",
@@ -58230,7 +58230,7 @@ function gOe({ startup: e, receipt: t }) {
/* @__PURE__ */ (0, x.jsxs)(tk, { children: [
/* @__PURE__ */ (0, x.jsx)(ZO, {
label: "开机后启动 Peach",
- children: /* @__PURE__ */ (0, x.jsx)(Cz, {
+ children: /* @__PURE__ */ (0, x.jsx)(Sz, {
"aria-label": "开机后启动 Peach",
isSelected: n,
isDisabled: !e.available,
@@ -58239,7 +58239,7 @@ function gOe({ startup: e, receipt: t }) {
}),
/* @__PURE__ */ (0, x.jsx)(ZO, {
label: "只启动托盘,不打开网页",
- children: /* @__PURE__ */ (0, x.jsx)(Cz, {
+ children: /* @__PURE__ */ (0, x.jsx)(Sz, {
"aria-label": "只启动托盘,不打开网页",
isSelected: i,
isDisabled: !e.available || !n,
@@ -58249,7 +58249,7 @@ function gOe({ startup: e, receipt: t }) {
/* @__PURE__ */ (0, x.jsx)(ZO, {
label: "在桌面创建快捷方式",
description: e.desktop_message || void 0,
- children: /* @__PURE__ */ (0, x.jsx)(Cz, {
+ children: /* @__PURE__ */ (0, x.jsx)(Sz, {
"aria-label": "在桌面创建快捷方式",
isSelected: o,
isDisabled: !l,
@@ -58272,7 +58272,7 @@ function gOe({ startup: e, receipt: t }) {
}
//#endregion
//#region src/react/restart-redirect.ts
-var hV = 8e3, _Oe = [
+var mV = 8e3, vOe = [
{
name: "机械硬盘,或内存 8 GB 以内",
cache: "10–20 GiB",
@@ -58291,12 +58291,12 @@ var hV = 8e3, _Oe = [
read: "256 / 128 KB",
task: "2 个起步"
}
-], vOe = [
+], yOe = [
["cache", "缓存上限"],
["read", "读取长度(默认 / 最小)"],
["task", "同时处理视频"]
];
-function yOe() {
+function bOe() {
return /* @__PURE__ */ (0, x.jsx)("div", {
className: "@container flex flex-col gap-3",
children: /* @__PURE__ */ (0, x.jsxs)(uk, {
@@ -58310,14 +58310,14 @@ function yOe() {
/* @__PURE__ */ (0, x.jsx)("ul", {
"aria-label": "按缓存所在硬盘分档",
className: "flex flex-col gap-2",
- children: _Oe.map((e) => /* @__PURE__ */ (0, x.jsxs)("li", {
+ children: vOe.map((e) => /* @__PURE__ */ (0, x.jsxs)("li", {
className: "flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, x.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e.name
}), /* @__PURE__ */ (0, x.jsx)("dl", {
className: "inline-grid grid-cols-1 gap-2 @md:grid-cols-3",
- children: vOe.map(([t, n]) => /* @__PURE__ */ (0, x.jsxs)("div", {
+ children: yOe.map(([t, n]) => /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col",
children: [/* @__PURE__ */ (0, x.jsx)("dt", {
className: "text-caption-1-regular text-text-secondary",
@@ -58348,7 +58348,7 @@ function yOe() {
}
//#endregion
//#region src/react/settings/folder-rows.tsx
-function bOe({ className: e }) {
+function xOe({ className: e }) {
return /* @__PURE__ */ (0, x.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -58361,12 +58361,12 @@ function bOe({ className: e }) {
children: /* @__PURE__ */ (0, x.jsx)("use", { href: "#i-folder-search" })
});
}
-var gV = [
+var hV = [
["local", "本地磁盘"],
["115", "CloudDrive · 115"],
["pikpak", "CloudDrive · PikPak"]
-], _V = (e) => Wa[e] || "database", xOe = (e) => e === "115" || e === "pikpak";
-function SOe({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick: i = !1 }) {
+], gV = (e) => Wa[e] || "database", SOe = (e) => e === "115" || e === "pikpak";
+function COe({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick: i = !1 }) {
let [a, o] = (0, b.useState)(e), [s, c] = (0, b.useState)([]), [l, u] = (0, b.useState)(null), [d, f] = (0, b.useState)(null), p = (0, b.useRef)(!1), m = (0, b.useRef)([]);
(0, b.useLayoutEffect)(() => {
l !== null && (m.current[l]?.focus(), u(null));
@@ -58409,7 +58409,7 @@ function SOe({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick:
}
};
}
-function COe({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a, onPick: o, onRemove: s, status: c, children: l }) {
+function wOe({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a, onPick: o, onRemove: s, status: c, children: l }) {
let u = (0, b.useRef)(null), d = () => {
let e = u.current;
e && e.ownerDocument.activeElement !== e && (e.scrollLeft = e.scrollWidth);
@@ -58422,7 +58422,7 @@ function COe({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a,
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, x.jsx)(LP, {
+ /* @__PURE__ */ (0, x.jsx)(IP, {
className: "min-w-0 flex-1",
"aria-label": e,
placeholder: "本机文件夹路径",
@@ -58440,8 +58440,8 @@ function COe({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a,
className: "flex h-9 shrink-0 items-center",
children: c
}) : null,
- /* @__PURE__ */ (0, x.jsx)(pP, {
- icon: bOe,
+ /* @__PURE__ */ (0, x.jsx)(fP, {
+ icon: xOe,
"aria-label": "选择文件夹",
onClick: o,
...q(a)
@@ -58460,23 +58460,23 @@ function COe({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a,
})]
});
}
-function wOe({ index: e, value: t, onChange: n, options: r = gV }) {
- return /* @__PURE__ */ (0, x.jsx)(yP, {
+function TOe({ index: e, value: t, onChange: n, options: r = hV }) {
+ return /* @__PURE__ */ (0, x.jsx)(vP, {
className: "w-full @lg:w-60",
"aria-label": `媒体来源 ${e + 1}`,
selectedKey: t,
onSelectionChange: (e) => {
e !== null && n(String(e));
},
- children: r.map(([e, t]) => /* @__PURE__ */ (0, x.jsxs)(bP, {
+ children: r.map(([e, t]) => /* @__PURE__ */ (0, x.jsxs)(yP, {
id: e,
textValue: t,
- children: [/* @__PURE__ */ (0, x.jsx)(dk, { mark: _V(e) }), t]
+ children: [/* @__PURE__ */ (0, x.jsx)(dk, { mark: gV(e) }), t]
}, e))
});
}
-function TOe({ value: e, onChange: t, label: n = "Windows 中的对应路径", placeholder: r = "例如 B:\\" }) {
- return /* @__PURE__ */ (0, x.jsx)(LP, {
+function EOe({ value: e, onChange: t, label: n = "Windows 中的对应路径", placeholder: r = "例如 B:\\" }) {
+ return /* @__PURE__ */ (0, x.jsx)(IP, {
label: n,
placeholder: r,
value: e,
@@ -58485,7 +58485,7 @@ function TOe({ value: e, onChange: t, label: n = "Windows 中的对应路径", p
}
//#endregion
//#region src/react/settings/library-icon-picker.tsx
-var vV = [
+var _V = [
["", "自动识别"],
["hard-drive", "磁盘"],
["database", "资料库"],
@@ -58529,13 +58529,13 @@ var vV = [
["star", "收藏"],
["tags", "主题"]
];
-function EOe(e) {
+function DOe(e) {
let t = e === "local" ? "" : Wa[e];
return t ? [t, "自动识别"] : ["hard-drive", "默认"];
}
-var yV = "auto";
-function DOe({ value: e, label: t, kind: n = "local", onChange: r }) {
- let i = (0, b.useRef)(null), [a, o] = (0, b.useState)(!1), [s, c] = (0, b.useState)(e), [l, u] = EOe(n);
+var vV = "auto";
+function OOe({ value: e, label: t, kind: n = "local", onChange: r }) {
+ let i = (0, b.useRef)(null), [a, o] = (0, b.useState)(!1), [s, c] = (0, b.useState)(e), [l, u] = DOe(n);
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(G, {
ref: i,
variant: "secondary",
@@ -58549,16 +58549,16 @@ function DOe({ value: e, label: t, kind: n = "local", onChange: r }) {
children: /* @__PURE__ */ (0, x.jsxs)("span", {
"data-icon-choice": !0,
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, x.jsx)(dk, { mark: e || l }), ((e) => e && vV.find(([t]) => t === e)?.[1] || u)(e)]
+ children: [/* @__PURE__ */ (0, x.jsx)(dk, { mark: e || l }), ((e) => e && _V.find(([t]) => t === e)?.[1] || u)(e)]
})
- }), /* @__PURE__ */ (0, x.jsx)(gA, {
+ }), /* @__PURE__ */ (0, x.jsx)(hA, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom start",
offset: 4,
- className: UN,
- children: /* @__PURE__ */ (0, x.jsxs)(DA, {
+ className: HN,
+ children: /* @__PURE__ */ (0, x.jsxs)(EA, {
"aria-label": `${t}候选`,
className: "flex w-72 flex-col gap-3 outline-none",
children: [
@@ -58567,17 +58567,17 @@ function DOe({ value: e, label: t, kind: n = "local", onChange: r }) {
className: "px-1 text-body-medium text-text-primary",
children: "选择媒体库图标"
}),
- /* @__PURE__ */ (0, x.jsx)(PA, {
+ /* @__PURE__ */ (0, x.jsx)(NA, {
"aria-label": "候选图标",
- value: s || yV,
- onChange: (e) => c(e === yV ? "" : e),
+ value: s || vV,
+ onChange: (e) => c(e === vV ? "" : e),
className: "inline-grid grid-cols-7 gap-1",
- children: vV.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(FA, {
- value: e || yV,
+ children: _V.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(PA, {
+ value: e || vV,
"aria-label": e ? t : u,
className: "flex h-10 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none hover:bg-dropdown-item-hover-background focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-dropdown-item-hover-background data-selected:text-text-primary",
children: /* @__PURE__ */ (0, x.jsx)(dk, { mark: e || l })
- }, e || yV))
+ }, e || vV))
}),
/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",
@@ -58599,9 +58599,9 @@ function DOe({ value: e, label: t, kind: n = "local", onChange: r }) {
}
//#endregion
//#region src/react/settings/push-discovery-settings.tsx
-var OOe = "/api/configuration/push-discovery", kOe = "/api/configuration/push-discovery/secret";
-function AOe({ initial: e, receipt: t }) {
- let [n, r] = (0, b.useState)(e), [i, a] = (0, b.useState)(e.prefixes), [o, s] = (0, b.useState)(""), c = XO(), l = dP(), u = n.media_roots, [d, f] = (0, b.useState)(e), p = (e, n) => {
+var kOe = "/api/configuration/push-discovery", AOe = "/api/configuration/push-discovery/secret";
+function jOe({ initial: e, receipt: t }) {
+ let [n, r] = (0, b.useState)(e), [i, a] = (0, b.useState)(e.prefixes), [o, s] = (0, b.useState)(""), c = XO(), l = uP(), u = n.media_roots, [d, f] = (0, b.useState)(e), p = (e, n) => {
r(e), f(e), a(e.prefixes), s(""), t(n);
}, m = (e, t) => a((n) => n.map((n, r) => r === e ? {
...n,
@@ -58614,9 +58614,9 @@ function AOe({ initial: e, receipt: t }) {
cloud: n.cloud,
prefixes: i
};
- c.run("save", (e) => B(OOe, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(R(e)));
+ c.run("save", (e) => B(kOe, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(R(e)));
}, g = () => {
- c.run("secret", (e) => B(kOe, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(R(e)));
+ c.run("secret", (e) => B(AOe, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(R(e)));
}, _ = () => {
navigator.clipboard.writeText(d.config_toml).then(() => t("已复制 CloudDrive2 配置"), () => s("浏览器没让这一页写剪贴板,展开「查看配置」选中自己复制。"));
}, v = `已入库 ${d.queue.ingested} 个文件` + (d.queue.pending ? `,队列里还有 ${d.queue.pending} 条` : ""), y = d.local_running ? `正在监视 ${d.local_roots.join("、")}` : d.local_message || "没有运行";
@@ -58628,7 +58628,7 @@ function AOe({ initial: e, receipt: t }) {
/* @__PURE__ */ (0, x.jsx)(ZO, {
label: "新文件落地就入库",
description: d.enabled ? v : void 0,
- children: /* @__PURE__ */ (0, x.jsx)(Cz, {
+ children: /* @__PURE__ */ (0, x.jsx)(Sz, {
"aria-label": "新文件落地就入库",
isSelected: n.enabled,
isDisabled: !n.available,
@@ -58641,7 +58641,7 @@ function AOe({ initial: e, receipt: t }) {
/* @__PURE__ */ (0, x.jsx)(ZO, {
label: "监视本机文件夹",
description: d.enabled && d.watch_local ? y : void 0,
- children: /* @__PURE__ */ (0, x.jsx)(Cz, {
+ children: /* @__PURE__ */ (0, x.jsx)(Sz, {
"aria-label": "监视本机文件夹",
isSelected: n.watch_local,
isDisabled: !n.available || !n.enabled,
@@ -58653,7 +58653,7 @@ function AOe({ initial: e, receipt: t }) {
}),
/* @__PURE__ */ (0, x.jsx)(ZO, {
label: "接收 CloudDrive2 通知",
- children: /* @__PURE__ */ (0, x.jsx)(Cz, {
+ children: /* @__PURE__ */ (0, x.jsx)(Sz, {
"aria-label": "接收 CloudDrive2 通知",
isSelected: n.cloud,
isDisabled: !n.available || !n.enabled,
@@ -58705,7 +58705,7 @@ function AOe({ initial: e, receipt: t }) {
children: i.map((e, t) => /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, x.jsx)(LP, {
+ /* @__PURE__ */ (0, x.jsx)(IP, {
className: "min-w-0 flex-1",
"aria-label": `云端路径前缀 ${t + 1}`,
placeholder: "/115",
@@ -58714,13 +58714,13 @@ function AOe({ initial: e, receipt: t }) {
value: e.prefix,
onChange: (e) => m(t, { prefix: e })
}),
- /* @__PURE__ */ (0, x.jsx)(yP, {
+ /* @__PURE__ */ (0, x.jsx)(vP, {
"aria-label": `前缀 ${t + 1} 对应的媒体根`,
selectedKey: e.root,
onSelectionChange: (e) => {
e !== null && m(t, { root: String(e) });
},
- children: u.map((e) => /* @__PURE__ */ (0, x.jsx)(bP, {
+ children: u.map((e) => /* @__PURE__ */ (0, x.jsx)(yP, {
id: e,
children: e
}, e))
@@ -58768,27 +58768,27 @@ function AOe({ initial: e, receipt: t }) {
}
//#endregion
//#region src/application/initial-follow-ranges.ts
-var bV = [
+var yV = [
["0", "不限时间"],
["7", "最近 7 天"],
["30", "最近 30 天"],
["90", "最近 90 天"]
-], jOe = [
+], MOe = [
["off", "关闭"],
["precise", "每 10 秒一张"],
["coarse", "每 30 秒一张"]
-], MOe = [
+], NOe = [
["7", "每周"],
["30", "每月"],
["90", "每季"],
["0", "从不"]
];
-function NOe({ epoch: e = 0 }) {
+function POe({ epoch: e = 0 }) {
let t = dt({
- queryKey: lN,
- queryFn: ({ signal: e }) => ave(e),
+ queryKey: cN,
+ queryFn: ({ signal: e }) => ove(e),
refetchOnMount: "always"
- }), n = cve(), r = n.reset;
+ }), n = lve(), r = n.reset;
(0, b.useEffect)(() => {
r();
}, [e, r]);
@@ -58801,14 +58801,14 @@ function NOe({ epoch: e = 0 }) {
description: "仅采集本机磁盘上的视频。",
children: /* @__PURE__ */ (0, x.jsx)("div", {
id: "videoThumbnailSetting",
- children: /* @__PURE__ */ (0, x.jsx)(yP, {
+ children: /* @__PURE__ */ (0, x.jsx)(vP, {
"aria-label": "缩略图采集间隔",
selectedKey: i?.mode || "off",
isDisabled: !i || t.isFetching || n.isPending,
onSelectionChange: (e) => {
e !== null && n.mutate(String(e));
},
- children: jOe.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(bP, {
+ children: MOe.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(yP, {
id: e,
children: t
}, e))
@@ -58829,23 +58829,23 @@ function NOe({ epoch: e = 0 }) {
]
});
}
-function POe({ receipt: e }) {
- let t = aT();
+function FOe({ receipt: e }) {
+ let t = oT();
(0, b.useSyncExternalStore)(t.subscribe, t.version);
let n = dt({
- queryKey: sN,
- queryFn: ({ signal: e }) => uN(e),
+ queryKey: oN,
+ queryFn: ({ signal: e }) => lN(e),
refetchOnMount: "always"
- }), r = dN(), i = dN(), a = n.data?.followInitialDays ?? t.value.followInitialDays, o = n.data?.metadataRefreshDays ?? t.value.metadataRefreshDays, s = r.error || i.error || n.error;
+ }), r = uN(), i = uN(), a = n.data?.followInitialDays ?? t.value.followInitialDays, o = n.data?.metadataRefreshDays ?? t.value.metadataRefreshDays, s = r.error || i.error || n.error;
return /* @__PURE__ */ (0, x.jsxs)(ek, {
title: "关注采集",
children: [/* @__PURE__ */ (0, x.jsxs)(tk, { children: [
- /* @__PURE__ */ (0, x.jsx)(FOe, {}),
+ /* @__PURE__ */ (0, x.jsx)(IOe, {}),
/* @__PURE__ */ (0, x.jsx)(ZO, {
label: "首次采集范围",
children: /* @__PURE__ */ (0, x.jsx)("div", {
id: "followInitialDaysSetting",
- children: /* @__PURE__ */ (0, x.jsx)(yP, {
+ children: /* @__PURE__ */ (0, x.jsx)(vP, {
"aria-label": "首次采集范围",
selectedKey: String(a),
isDisabled: n.isFetching || r.isPending,
@@ -58854,7 +58854,7 @@ function POe({ receipt: e }) {
typeof n.followInitialDays == "number" && (t.value.followInitialDays = n.followInitialDays), t.save(), e("已保存首次采集范围");
} });
},
- children: bV.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(bP, {
+ children: yV.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(yP, {
id: e,
children: t
}, e))
@@ -58865,16 +58865,16 @@ function POe({ receipt: e }) {
label: "头像与图标刷新",
children: /* @__PURE__ */ (0, x.jsx)("div", {
id: "metadataRefreshSetting",
- children: /* @__PURE__ */ (0, x.jsx)(yP, {
+ children: /* @__PURE__ */ (0, x.jsx)(vP, {
"aria-label": "头像与图标刷新",
selectedKey: String(o),
isDisabled: n.isFetching || i.isPending,
onSelectionChange: (n) => {
- n !== null && tT.includes(Number(n)) && i.mutate({ metadataRefreshDays: Number(n) }, { onSuccess: (n) => {
+ n !== null && nT.includes(Number(n)) && i.mutate({ metadataRefreshDays: Number(n) }, { onSuccess: (n) => {
typeof n.metadataRefreshDays == "number" && (t.value.metadataRefreshDays = n.metadataRefreshDays), t.save(), e("已保存头像与图标刷新频率");
} });
},
- children: MOe.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(bP, {
+ children: NOe.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(yP, {
id: e,
children: t
}, e))
@@ -58887,12 +58887,12 @@ function POe({ receipt: e }) {
}) : null]
});
}
-function FOe() {
+function IOe() {
let e = dt({
- queryKey: cN,
- queryFn: ({ signal: e }) => ive(e),
+ queryKey: sN,
+ queryFn: ({ signal: e }) => ave(e),
refetchOnMount: "always"
- }), t = sve(), n = e.data, r = (0, b.useRef)(kw(Number(localStorage.getItem("peach.number.followScheduleSetting")), 15, 10080, 60)), [i, a] = (0, b.useState)("60"), [o, s] = (0, b.useState)(!1);
+ }), t = cve(), n = e.data, r = (0, b.useRef)(Aw(Number(localStorage.getItem("peach.number.followScheduleSetting")), 15, 10080, 60)), [i, a] = (0, b.useState)("60"), [o, s] = (0, b.useState)(!1);
(0, b.useEffect)(() => {
n?.enabled && (r.current = n.interval_minutes, a(String(n.interval_minutes)));
}, [n]);
@@ -58906,7 +58906,7 @@ function FOe() {
children: /* @__PURE__ */ (0, x.jsxs)("div", {
id: "followScheduleSetting",
className: "flex min-w-0 flex-wrap items-center justify-end gap-2",
- children: [/* @__PURE__ */ (0, x.jsx)(Cz, {
+ children: [/* @__PURE__ */ (0, x.jsx)(Sz, {
"aria-label": "自动检查更新",
isSelected: n?.enabled === !0,
isDisabled: c,
@@ -58915,7 +58915,7 @@ function FOe() {
}
}), n?.enabled ? /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, x.jsx)(LP, {
+ children: [/* @__PURE__ */ (0, x.jsx)(IP, {
type: "number",
inputMode: "numeric",
name: "follow-interval",
@@ -58950,29 +58950,29 @@ function FOe() {
}
//#endregion
//#region src/react/settings/media-settings.tsx
-var IOe = (e) => gV.find(([t]) => t === e)?.[1] ?? e, LOe = async (e) => (await B(XDe, { initial: e })).path, xV = (e = "") => ({
+var LOe = (e) => hV.find(([t]) => t === e)?.[1] ?? e, ROe = async (e) => (await B(ZDe, { initial: e })).path, bV = (e = "") => ({
path: e,
location: "local",
root: "",
library: "",
library_icon: ""
});
-function ROe(e) {
- let t = e.media_sources?.filter((e) => gV.some(([t]) => t === e.location));
+function zOe(e) {
+ let t = e.media_sources?.filter((e) => hV.some(([t]) => t === e.location));
return t?.length ? t.map((e) => ({
path: e.path,
location: e.location,
root: e.root,
library: e.library || "",
library_icon: e.library_icon || ""
- })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => xV(e));
+ })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => bV(e));
}
-var zOe = (e) => !(e instanceof en) || e.status !== 400 ? null : e.body?.errors ?? null;
-function BOe({ data: e, receipt: t, panel: n }) {
+var BOe = (e) => !(e instanceof en) || e.status !== 400 ? null : e.body?.errors ?? null;
+function VOe({ data: e, receipt: t, panel: n }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
- ...cV(n),
+ ...sV(n),
children: [
- e.editable ? /* @__PURE__ */ (0, x.jsx)(VOe, {
+ e.editable ? /* @__PURE__ */ (0, x.jsx)(HOe, {
data: e,
receipt: t
}) : /* @__PURE__ */ (0, x.jsx)(K, {
@@ -58980,29 +58980,29 @@ function BOe({ data: e, receipt: t, panel: n }) {
title: "只读",
children: e.notice
}),
- e.editable ? null : /* @__PURE__ */ (0, x.jsx)(HOe, { data: e }),
- e.push_discovery ? /* @__PURE__ */ (0, x.jsx)(AOe, {
+ e.editable ? null : /* @__PURE__ */ (0, x.jsx)(UOe, { data: e }),
+ e.push_discovery ? /* @__PURE__ */ (0, x.jsx)(jOe, {
initial: e.push_discovery,
receipt: t
}) : null,
- /* @__PURE__ */ (0, x.jsx)(NOe, {})
+ /* @__PURE__ */ (0, x.jsx)(POe, {})
]
});
}
-function VOe({ data: e, receipt: t }) {
- let { rows: n, edit: r, add: i, remove: a, errors: o, setErrors: s, picking: c, pick: l, inputRef: u } = SOe({
- initial: () => ROe(e),
- blank: () => xV(),
- pickFolder: LOe,
+function HOe({ data: e, receipt: t }) {
+ let { rows: n, edit: r, add: i, remove: a, errors: o, setErrors: s, picking: c, pick: l, inputRef: u } = COe({
+ initial: () => zOe(e),
+ blank: () => bV(),
+ pickFolder: ROe,
describe: R
}), [d, f] = (0, b.useState)(!1), [p, m] = (0, b.useState)(""), [h, g] = (0, b.useState)(null), _ = (0, b.useRef)(e.revision), v = XO();
(0, b.useEffect)(() => {
if (!h) return;
- let e = setTimeout(() => location.assign(h.url), hV);
+ let e = setTimeout(() => location.assign(h.url), mV);
return () => clearTimeout(e);
}, [h]);
let y = (r) => {
- r.preventDefault(), m(""), v.run("save", (t) => B(iV, {
+ r.preventDefault(), m(""), v.run("save", (t) => B(rV, {
revision: _.current,
media_dirs: n.map((e) => e.path),
...e.media_sources ? { media_sources: n } : {},
@@ -59011,7 +59011,7 @@ function VOe({ data: e, receipt: t }) {
}, "POST", t), (e) => {
_.current = e.revision, s([]), t("已保存配置"), g(e);
}, (e) => {
- let t = zOe(e);
+ let t = BOe(e);
s(t?.media_dirs ?? []), (!t || t.port) && m(t?.port || R(e));
});
};
@@ -59031,7 +59031,7 @@ function VOe({ data: e, receipt: t }) {
]
}) })
});
- let S = (t) => t ? e.media_sources?.find((e) => e.path === t) : void 0, C = n.some((e) => xOe(e.location)), w = C ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
+ let S = (t) => t ? e.media_sources?.find((e) => e.path === t) : void 0, C = n.some((e) => SOe(e.location)), w = C ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
return /* @__PURE__ */ (0, x.jsxs)(ek, {
title: "媒体文件夹",
onSubmit: y,
@@ -59044,7 +59044,7 @@ function VOe({ data: e, receipt: t }) {
role: "group",
"aria-label": "媒体文件夹",
className: "flex flex-col gap-3",
- children: n.map((t, i) => /* @__PURE__ */ (0, x.jsxs)(COe, {
+ children: n.map((t, i) => /* @__PURE__ */ (0, x.jsxs)(wOe, {
label: `媒体文件夹 ${i + 1}`,
path: t.path,
onPath: (e) => r(i, { path: e }),
@@ -59053,14 +59053,14 @@ function VOe({ data: e, receipt: t }) {
picking: c === i,
onPick: () => void l(i),
onRemove: n.length > 1 ? () => a(i) : void 0,
- status: S(t.path) ? /* @__PURE__ */ (0, x.jsx)(SV, { online: S(t.path)?.online }) : null,
+ status: S(t.path) ? /* @__PURE__ */ (0, x.jsx)(xV, { online: S(t.path)?.online }) : null,
children: [
- /* @__PURE__ */ (0, x.jsx)(wOe, {
+ /* @__PURE__ */ (0, x.jsx)(TOe, {
index: i,
value: t.location,
onChange: (e) => r(i, { location: e })
}),
- /* @__PURE__ */ (0, x.jsx)(LP, {
+ /* @__PURE__ */ (0, x.jsx)(IP, {
className: "min-w-40 flex-1",
"aria-label": `媒体库名称 ${i + 1}`,
maxLength: 80,
@@ -59068,13 +59068,13 @@ function VOe({ data: e, receipt: t }) {
value: t.library,
onChange: (e) => r(i, { library: e })
}),
- /* @__PURE__ */ (0, x.jsx)(DOe, {
+ /* @__PURE__ */ (0, x.jsx)(OOe, {
label: `媒体库图标 ${i + 1}`,
value: t.library_icon,
kind: t.location,
onChange: (e) => r(i, { library_icon: e })
}),
- e.windows === !1 ? /* @__PURE__ */ (0, x.jsx)(TOe, {
+ e.windows === !1 ? /* @__PURE__ */ (0, x.jsx)(EOe, {
value: t.root,
onChange: (e) => r(i, { root: e })
}) : null
@@ -59089,7 +59089,7 @@ function VOe({ data: e, receipt: t }) {
})
]
}),
- C ? /* @__PURE__ */ (0, x.jsx)(yOe, {}) : null,
+ C ? /* @__PURE__ */ (0, x.jsx)(bOe, {}) : null,
w.map((e) => /* @__PURE__ */ (0, x.jsxs)(ik, { children: [
"未检测到 ",
e.name,
@@ -59100,7 +59100,7 @@ function VOe({ data: e, receipt: t }) {
})
] }, e.name)),
e.windows === !1 ? /* @__PURE__ */ (0, x.jsx)(ik, { children: "Windows 对应路径应与馆藏中记录的路径一致。" }) : null,
- /* @__PURE__ */ (0, x.jsx)(EP, {
+ /* @__PURE__ */ (0, x.jsx)(TP, {
isSelected: d,
onChange: f,
children: "保存后扫描并补全资料"
@@ -59120,7 +59120,7 @@ function VOe({ data: e, receipt: t }) {
})]
});
}
-function SV({ online: e }) {
+function xV({ online: e }) {
return e === !0 ? /* @__PURE__ */ (0, x.jsxs)("span", {
"data-mount": "online",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-notification-success-foreground",
@@ -59144,14 +59144,14 @@ function SV({ online: e }) {
}), "未检测"]
});
}
-function HOe({ data: e }) {
+function UOe({ data: e }) {
let t = e.media_sources, n = XO();
return t ? /* @__PURE__ */ (0, x.jsxs)(ek, {
title: "挂载状态",
children: [
/* @__PURE__ */ (0, x.jsx)(ck, { children: t.map((e, t) => /* @__PURE__ */ (0, x.jsxs)(lk, {
- term: /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(dk, { mark: _V(e.location) }), IOe(e.location)] }),
- children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, x.jsx)(SV, { online: e.online })]
+ term: /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(dk, { mark: gV(e.location) }), LOe(e.location)] }),
+ children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, x.jsx)(xV, { online: e.online })]
}, t)) }),
n.error ? /* @__PURE__ */ (0, x.jsx)(nk, {
divided: !0,
@@ -59159,7 +59159,7 @@ function HOe({ data: e }) {
}) : null,
/* @__PURE__ */ (0, x.jsx)(rk, { children: /* @__PURE__ */ (0, x.jsx)(G, {
variant: "secondary",
- onClick: () => void n.run("refresh", (e) => oV(e), (e) => V.setQueryData(aV, e)),
+ onClick: () => void n.run("refresh", (e) => aV(e), (e) => V.setQueryData(iV, e)),
...q(n.busy === "refresh"),
children: "刷新挂载状态"
}) })
@@ -59168,8 +59168,8 @@ function HOe({ data: e }) {
}
//#endregion
//#region src/react/settings/password-pair.tsx
-function UOe({ label: e, password: t, confirmation: n, onPassword: r, onConfirmation: i, disabled: a = !1, passwordError: o, passwordHint: s, confirmationError: c, confirmationInvalid: l = !1 }) {
- return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(LP, {
+function WOe({ label: e, password: t, confirmation: n, onPassword: r, onConfirmation: i, disabled: a = !1, passwordError: o, passwordHint: s, confirmationError: c, confirmationInvalid: l = !1 }) {
+ return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(IP, {
id: "access-password",
type: "password",
label: e,
@@ -59182,7 +59182,7 @@ function UOe({ label: e, password: t, confirmation: n, onPassword: r, onConfirma
validationBehavior: "aria",
isInvalid: !a && !!o,
hint: a ? s : o || s
- }), /* @__PURE__ */ (0, x.jsx)(LP, {
+ }), /* @__PURE__ */ (0, x.jsx)(IP, {
id: "access-confirm",
type: "password",
label: "确认访问密码",
@@ -59199,12 +59199,12 @@ function UOe({ label: e, password: t, confirmation: n, onPassword: r, onConfirma
}
//#endregion
//#region src/react/settings/access-settings.tsx
-var WOe = {
+var GOe = {
legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
};
-function GOe({ initial: e, receipt: t }) {
+function KOe({ initial: e, receipt: t }) {
let [n, r] = (0, b.useState)(e), [i, a] = (0, b.useState)(""), [o, s] = (0, b.useState)(""), [c, l] = (0, b.useState)(""), [u, d] = (0, b.useState)(!1), [f, p] = (0, b.useState)({}), m = (0, b.useRef)(null), h = XO(), g = (e) => {
e.preventDefault();
let f = {};
@@ -59221,7 +59221,7 @@ function GOe({ initial: e, receipt: t }) {
let t = e instanceof en ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? p(n) : h.setError(R(e));
});
- }, _ = WOe[n.mode], v = n.mode !== "locked";
+ }, _ = GOe[n.mode], v = n.mode !== "locked";
return /* @__PURE__ */ (0, x.jsxs)(ek, {
title: "访问密码",
onSubmit: g,
@@ -59234,12 +59234,12 @@ function GOe({ initial: e, receipt: t }) {
title: "未设置访问密码",
children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"
}) : null,
- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, x.jsx)(EP, {
+ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, x.jsx)(TP, {
isSelected: u,
onChange: d,
children: "关闭访问密码"
}) : null,
- n.mode === "password" ? /* @__PURE__ */ (0, x.jsx)(LP, {
+ n.mode === "password" ? /* @__PURE__ */ (0, x.jsx)(IP, {
id: "access-current",
type: "password",
label: "当前访问密码",
@@ -59252,7 +59252,7 @@ function GOe({ initial: e, receipt: t }) {
isInvalid: !!f.current_password,
hint: f.current_password
}) : null,
- v ? /* @__PURE__ */ (0, x.jsx)(UOe, {
+ v ? /* @__PURE__ */ (0, x.jsx)(WOe, {
label: n.mode === "password" ? "新访问密码" : "设置访问密码",
password: o,
confirmation: c,
@@ -59279,11 +59279,11 @@ function GOe({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/port-settings.tsx
-function KOe({ data: e, receipt: t }) {
+function qOe({ data: e, receipt: t }) {
let [n, r] = (0, b.useState)(String(e.port)), [i, a] = (0, b.useState)(""), [o, s] = (0, b.useState)(null), c = XO();
return (0, b.useEffect)(() => {
if (!o) return;
- let e = setTimeout(() => location.assign(o.url), hV);
+ let e = setTimeout(() => location.assign(o.url), mV);
return () => clearTimeout(e);
}, [o]), o ? /* @__PURE__ */ (0, x.jsx)(ek, {
title: "本机访问端口",
@@ -59299,7 +59299,7 @@ function KOe({ data: e, receipt: t }) {
}) : /* @__PURE__ */ (0, x.jsxs)(ek, {
title: "本机访问端口",
onSubmit: (r) => {
- r.preventDefault(), a(""), c.run("save", (t) => B(iV, {
+ r.preventDefault(), a(""), c.run("save", (t) => B(rV, {
revision: e.revision,
media_dirs: e.media_dirs,
...e.media_sources ? { media_sources: e.media_sources } : {},
@@ -59312,7 +59312,7 @@ function KOe({ data: e, receipt: t }) {
t?.port ? a(t.port) : c.setError(R(e));
});
},
- children: [/* @__PURE__ */ (0, x.jsxs)(nk, { children: [/* @__PURE__ */ (0, x.jsx)(LP, {
+ children: [/* @__PURE__ */ (0, x.jsxs)(nk, { children: [/* @__PURE__ */ (0, x.jsx)(IP, {
id: "configPort",
label: "端口",
inputMode: "numeric",
@@ -59337,19 +59337,19 @@ function KOe({ data: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/tunnel-settings.tsx
-var qOe = 2e3, JOe = [["quick", "临时链接"], ["named", "命名隧道"]], YOe = {
+var JOe = 2e3, YOe = [["quick", "临时链接"], ["named", "命名隧道"]], XOe = {
quick: "临时预览用,地址随机,重启后会变。启动前要先设置访问密码。",
named: "使用你在 Cloudflare 绑定的固定域名。启动前要先设置访问密码。"
};
-function XOe({ revision: e, initial: t, receipt: n }) {
+function ZOe({ revision: e, initial: t, receipt: n }) {
let [r, i] = (0, b.useState)(t), [a, o] = (0, b.useState)(e), [s, c] = (0, b.useState)(t.mode), [l, u] = (0, b.useState)(t.hostname), [d, f] = (0, b.useState)(""), [p, m] = (0, b.useState)({}), h = XO(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
(0, b.useEffect)(() => {
if (r.state !== "starting") return;
let e = new AbortController(), t = window.setInterval(() => {
- oV(e.signal).then((t) => {
- !e.signal.aborted && t.tunnel && (V.setQueryData(aV, t), i(t.tunnel), o(t.revision));
+ aV(e.signal).then((t) => {
+ !e.signal.aborted && t.tunnel && (V.setQueryData(iV, t), i(t.tunnel), o(t.revision));
}).catch(() => void 0);
- }, qOe);
+ }, JOe);
return () => {
e.abort(), window.clearInterval(t);
};
@@ -59374,20 +59374,20 @@ function XOe({ revision: e, initial: t, receipt: n }) {
e.preventDefault(), v("save", g, () => n("已保存配置"));
},
children: [/* @__PURE__ */ (0, x.jsxs)(nk, { children: [
- r.named_available ? /* @__PURE__ */ (0, x.jsx)(hj, {
+ r.named_available ? /* @__PURE__ */ (0, x.jsx)(mj, {
"aria-label": "公网入口的形态(二选一)",
value: s,
isDisabled: g,
onChange: (e) => c(e),
- className: gj,
- children: JOe.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(FA, {
+ className: hj,
+ children: YOe.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(PA, {
value: e,
- className: _j,
+ className: gj,
children: t
}, e))
}) : null,
- /* @__PURE__ */ (0, x.jsx)(ik, { children: YOe[_ ? "named" : "quick"] }),
- _ ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(LP, {
+ /* @__PURE__ */ (0, x.jsx)(ik, { children: XOe[_ ? "named" : "quick"] }),
+ _ ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(IP, {
id: "tunnel-hostname",
label: "公开主机名",
autoComplete: "off",
@@ -59398,7 +59398,7 @@ function XOe({ revision: e, initial: t, receipt: n }) {
validationBehavior: "aria",
isInvalid: !!p.hostname,
hint: p.hostname || "Cloudflare Zero Trust 里指向这台电脑的主机名。"
- }), /* @__PURE__ */ (0, x.jsx)(LP, {
+ }), /* @__PURE__ */ (0, x.jsx)(IP, {
id: "tunnel-token",
type: "password",
label: "隧道令牌",
@@ -59447,28 +59447,28 @@ function XOe({ revision: e, initial: t, receipt: n }) {
}
//#endregion
//#region src/react/settings/network-settings.tsx
-var ZOe = [
+var QOe = [
["environment", "系统代理"],
["direct", "直连"],
["proxy", "自定义"]
];
-function QOe({ data: e, receipt: t, panel: n }) {
+function $Oe({ data: e, receipt: t, panel: n }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
- ...cV(n),
+ ...sV(n),
children: [
- e.editable && e.port_editable !== !1 ? /* @__PURE__ */ (0, x.jsx)(KOe, {
+ e.editable && e.port_editable !== !1 ? /* @__PURE__ */ (0, x.jsx)(qOe, {
data: e,
receipt: t
}) : null,
- e.peach_proxy ? /* @__PURE__ */ (0, x.jsx)($Oe, {
+ e.peach_proxy ? /* @__PURE__ */ (0, x.jsx)(eke, {
initial: e.peach_proxy,
receipt: t
}) : null,
- e.access ? /* @__PURE__ */ (0, x.jsx)(GOe, {
+ e.access ? /* @__PURE__ */ (0, x.jsx)(KOe, {
initial: e.access,
receipt: t
}) : null,
- e.tunnel ? /* @__PURE__ */ (0, x.jsx)(XOe, {
+ e.tunnel ? /* @__PURE__ */ (0, x.jsx)(ZOe, {
revision: e.revision,
initial: e.tunnel,
receipt: t
@@ -59476,7 +59476,7 @@ function QOe({ data: e, receipt: t, panel: n }) {
]
});
}
-function $Oe({ initial: e, receipt: t }) {
+function eke({ initial: e, receipt: t }) {
let [n, r] = (0, b.useState)(e), [i, a] = (0, b.useState)(e.mode), [o, s] = (0, b.useState)(""), c = XO();
return /* @__PURE__ */ (0, x.jsxs)(ek, {
id: "peachProxy",
@@ -59492,13 +59492,13 @@ function $Oe({ initial: e, receipt: t }) {
children: [
/* @__PURE__ */ (0, x.jsx)(tk, { children: /* @__PURE__ */ (0, x.jsx)(ZO, {
label: "连接方式",
- children: /* @__PURE__ */ (0, x.jsx)(yP, {
+ children: /* @__PURE__ */ (0, x.jsx)(vP, {
"aria-label": "连接方式",
selectedKey: i,
onSelectionChange: (e) => {
e !== null && a(String(e));
},
- children: ZOe.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(bP, {
+ children: QOe.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(yP, {
id: e,
children: t
}, e))
@@ -59507,7 +59507,7 @@ function $Oe({ initial: e, receipt: t }) {
i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, x.jsxs)(nk, {
divided: !0,
children: [
- i === "proxy" ? /* @__PURE__ */ (0, x.jsx)(LP, {
+ i === "proxy" ? /* @__PURE__ */ (0, x.jsx)(IP, {
id: "peachProxyAddress",
type: "password",
label: "代理地址",
@@ -59534,11 +59534,11 @@ function $Oe({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/follow-manage/credentials.tsx
-var eke = "将清除这个来源在本机和共享副本中的登录凭据。", tke = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
-function nke(e, t) {
+var tke = "将清除这个来源在本机和共享副本中的登录凭据。", nke = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
+function rke(e, t) {
return (e.shared_fields || []).includes(t) ? "来自共享,留空表示不改" : e.fields.includes(t) ? "已保存,留空表示不改" : "未填写";
}
-function rke({ row: e }) {
+function ike({ row: e }) {
if (Ir(e)) return /* @__PURE__ */ (0, x.jsx)(VO, {
variant: "caption",
color: "lime",
@@ -59551,7 +59551,7 @@ function rke({ row: e }) {
children: Fr[e.requirement] || ""
});
}
-function ike({ row: e, readOnly: t, toast: n }) {
+function ake({ row: e, readOnly: t, toast: n }) {
let [r, i] = (0, b.useState)({}), [a, o] = (0, b.useState)(""), s = Ir(e), c = ft({
mutationFn: (t) => gr(e.provider, t),
onSuccess: (e, t) => {
@@ -59575,10 +59575,10 @@ function ike({ row: e, readOnly: t, toast: n }) {
e.howto ? /* @__PURE__ */ (0, x.jsx)(ik, { children: e.howto }) : null,
/* @__PURE__ */ (0, x.jsx)("div", {
className: "flex w-full flex-col gap-3",
- children: (e.needs || []).map((n) => /* @__PURE__ */ (0, x.jsx)(LP, {
+ children: (e.needs || []).map((n) => /* @__PURE__ */ (0, x.jsx)(IP, {
type: "password",
label: n,
- placeholder: nke(e, n),
+ placeholder: rke(e, n),
autoComplete: "off",
spellCheck: "false",
isDisabled: t,
@@ -59606,7 +59606,7 @@ function ike({ row: e, readOnly: t, toast: n }) {
...q(c.isPending),
onClick: () => void is({
title: "清除来源凭据",
- body: eke,
+ body: tke,
confirmLabel: "清除来源凭据",
danger: !0,
onConfirm: () => c.mutateAsync({})
@@ -59618,7 +59618,7 @@ function ike({ row: e, readOnly: t, toast: n }) {
(e.shared_fields || []).length ? /* @__PURE__ */ (0, x.jsx)(ik, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
e.path ? /* @__PURE__ */ (0, x.jsx)(uk, {
summary: "凭据文件",
- children: /* @__PURE__ */ (0, x.jsx)(mP, {
+ children: /* @__PURE__ */ (0, x.jsx)(pP, {
path: e.path,
className: "font-mono text-caption-1-regular text-text-tertiary",
onRevealed: n
@@ -59627,19 +59627,19 @@ function ike({ row: e, readOnly: t, toast: n }) {
]
});
}
-function ake({ row: e, readOnly: t, toast: n }) {
+function oke({ row: e, readOnly: t, toast: n }) {
let r = /* @__PURE__ */ (0, x.jsxs)("span", {
className: "flex min-w-0 flex-wrap items-center gap-2",
children: [
/* @__PURE__ */ (0, x.jsx)("span", {
className: "inline-flex size-3.5 shrink-0 items-center justify-center",
- children: /* @__PURE__ */ (0, x.jsx)(CR, { provider: e.provider })
+ children: /* @__PURE__ */ (0, x.jsx)(SR, { provider: e.provider })
}),
/* @__PURE__ */ (0, x.jsx)("b", {
className: "min-w-0 text-body-medium wrap-anywhere text-text-primary",
children: e.provider_label
}),
- /* @__PURE__ */ (0, x.jsx)(rke, { row: e }),
+ /* @__PURE__ */ (0, x.jsx)(ike, { row: e }),
e.missing.length ? /* @__PURE__ */ (0, x.jsx)(VO, {
variant: "caption",
color: "rose",
@@ -59657,7 +59657,7 @@ function ake({ row: e, readOnly: t, toast: n }) {
/* @__PURE__ */ (0, x.jsx)(uk, {
summary: Ir(e) ? "修改凭据" : "填写凭据",
defaultOpen: e.requirement === "required" && !Ir(e),
- children: /* @__PURE__ */ (0, x.jsx)(ike, {
+ children: /* @__PURE__ */ (0, x.jsx)(ake, {
row: e,
readOnly: t,
toast: n
@@ -59666,12 +59666,12 @@ function ake({ row: e, readOnly: t, toast: n }) {
e.world_readable ? /* @__PURE__ */ (0, x.jsx)(K, {
tone: "error",
title: "凭据文件权限过宽",
- children: tke
+ children: nke
}) : null
]
});
}
-function oke({ data: e, readOnly: t, toast: n }) {
+function ske({ data: e, readOnly: t, toast: n }) {
let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !Ir(e));
return r.length ? /* @__PURE__ */ (0, x.jsxs)("div", {
className: WO({
@@ -59712,7 +59712,7 @@ function oke({ data: e, readOnly: t, toast: n }) {
padding: "none",
className: "flex flex-col overflow-hidden"
}),
- children: e.rows.map((e) => /* @__PURE__ */ (0, x.jsx)(ake, {
+ children: e.rows.map((e) => /* @__PURE__ */ (0, x.jsx)(oke, {
row: e,
readOnly: t,
toast: n
@@ -59728,10 +59728,10 @@ function oke({ data: e, readOnly: t, toast: n }) {
}
//#endregion
//#region src/configuration-copy.ts
-var ske = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", cke = "只填域名,留空用默认地址";
+var cke = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", lke = "只填域名,留空用默认地址";
//#endregion
//#region src/react/settings/entry-links-settings.tsx
-function lke({ initial: e, receipt: t }) {
+function uke({ initial: e, receipt: t }) {
let [n, r] = (0, b.useState)(e.sites), i = XO(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
host: t
@@ -59746,8 +59746,8 @@ function lke({ initial: e, receipt: t }) {
});
},
children: [/* @__PURE__ */ (0, x.jsxs)(nk, { children: [
- /* @__PURE__ */ (0, x.jsx)(ik, { children: ske }),
- n.map((e) => /* @__PURE__ */ (0, x.jsx)(LP, {
+ /* @__PURE__ */ (0, x.jsx)(ik, { children: cke }),
+ n.map((e) => /* @__PURE__ */ (0, x.jsx)(IP, {
id: `entry-link-${e.key}`,
label: `${e.label} 地址`,
autoComplete: "off",
@@ -59756,7 +59756,7 @@ function lke({ initial: e, receipt: t }) {
placeholder: e.default_host,
onChange: (t) => a(e.key, t),
validationBehavior: "aria",
- hint: cke
+ hint: lke
}, e.key)),
i.error ? /* @__PURE__ */ (0, x.jsx)(ak, { children: i.error }) : null
] }), /* @__PURE__ */ (0, x.jsx)(rk, { children: /* @__PURE__ */ (0, x.jsx)(G, {
@@ -59768,19 +59768,19 @@ function lke({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/indexer-settings.tsx
-var CV = "/api/configuration/indexers";
-function uke({ receipt: e }) {
+var SV = "/api/configuration/indexers";
+function dke({ receipt: e }) {
let t = dt({
queryKey: ["indexers"],
- queryFn: ({ signal: e }) => z(CV, e),
+ queryFn: ({ signal: e }) => z(SV, e),
refetchOnMount: "always"
});
- return t.error ? /* @__PURE__ */ (0, x.jsx)(ak, { children: R(t.error) }) : t.isFetching ? /* @__PURE__ */ (0, x.jsx)(KO, { label: "正在读取资源搜索设置" }) : t.data ? /* @__PURE__ */ (0, x.jsx)(dke, {
+ return t.error ? /* @__PURE__ */ (0, x.jsx)(ak, { children: R(t.error) }) : t.isFetching ? /* @__PURE__ */ (0, x.jsx)(KO, { label: "正在读取资源搜索设置" }) : t.data ? /* @__PURE__ */ (0, x.jsx)(fke, {
initial: t.data,
receipt: e
}) : null;
}
-function dke({ initial: e, receipt: t }) {
+function fke({ initial: e, receipt: t }) {
let [n, r] = (0, b.useState)(e.indexers), i = XO(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
...t
@@ -59788,7 +59788,7 @@ function dke({ initial: e, receipt: t }) {
return /* @__PURE__ */ (0, x.jsxs)(ek, {
title: "资源搜索",
onSubmit: (e) => {
- e.preventDefault(), i.run("save", (e) => B(CV, { indexers: n }, "POST", e), (e) => {
+ e.preventDefault(), i.run("save", (e) => B(SV, { indexers: n }, "POST", e), (e) => {
r(e.indexers), t("已保存索引器");
});
},
@@ -59800,14 +59800,14 @@ function dke({ initial: e, receipt: t }) {
n.map((e, t) => /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4",
children: [
- /* @__PURE__ */ (0, x.jsx)(LP, {
+ /* @__PURE__ */ (0, x.jsx)(IP, {
label: `索引器 ${t + 1} 名称`,
value: e.name,
maxLength: 80,
isDisabled: !!i.busy,
onChange: (t) => a(e.key, { name: t })
}),
- /* @__PURE__ */ (0, x.jsx)(LP, {
+ /* @__PURE__ */ (0, x.jsx)(IP, {
label: `索引器 ${t + 1} Torznab 地址`,
value: e.url,
type: "url",
@@ -59816,7 +59816,7 @@ function dke({ initial: e, receipt: t }) {
isDisabled: !!i.busy,
onChange: (t) => a(e.key, { url: t })
}),
- /* @__PURE__ */ (0, x.jsx)(LP, {
+ /* @__PURE__ */ (0, x.jsx)(IP, {
label: `索引器 ${t + 1} API key`,
type: "password",
autoComplete: "new-password",
@@ -59825,13 +59825,13 @@ function dke({ initial: e, receipt: t }) {
isDisabled: !!i.busy,
onChange: (t) => a(e.key, { api_key: t })
}),
- /* @__PURE__ */ (0, x.jsx)(EP, {
+ /* @__PURE__ */ (0, x.jsx)(TP, {
isSelected: e.enabled,
isDisabled: !!i.busy,
onChange: (t) => a(e.key, { enabled: t }),
children: "启用"
}),
- e.api_key_set ? /* @__PURE__ */ (0, x.jsx)(EP, {
+ e.api_key_set ? /* @__PURE__ */ (0, x.jsx)(TP, {
isSelected: !!e.clear_api_key,
isDisabled: !!i.busy,
onChange: (t) => a(e.key, { clear_api_key: t }),
@@ -59868,7 +59868,7 @@ function dke({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/source-settings.tsx
-function fke({ data: e, receipt: t, panel: n }) {
+function pke({ data: e, receipt: t, panel: n }) {
let r = dt({
queryKey: jn,
queryFn: ({ signal: e }) => or(e),
@@ -59876,14 +59876,14 @@ function fke({ data: e, receipt: t, panel: n }) {
refetchOnMount: "always"
});
return /* @__PURE__ */ (0, x.jsxs)("div", {
- ...cV(n),
+ ...sV(n),
children: [
/* @__PURE__ */ (0, x.jsx)("div", { children: /* @__PURE__ */ (0, x.jsx)(UO, {
href: "/scraping",
variant: "secondary",
children: "采集来源与登录状态"
}) }),
- r.data ? /* @__PURE__ */ (0, x.jsx)(oke, {
+ r.data ? /* @__PURE__ */ (0, x.jsx)(ske, {
data: r.data,
readOnly: !!e.ledger_read_only,
toast: t
@@ -59892,23 +59892,23 @@ function fke({ data: e, receipt: t, panel: n }) {
title: "来源凭据未取得",
children: R(r.error)
}) : n?.active === !1 ? null : /* @__PURE__ */ (0, x.jsx)(KO, { label: "正在读取来源凭据" }),
- e.entry_links ? /* @__PURE__ */ (0, x.jsx)(lke, {
+ e.entry_links ? /* @__PURE__ */ (0, x.jsx)(uke, {
initial: e.entry_links,
receipt: t
}) : null,
- /* @__PURE__ */ (0, x.jsx)(uke, { receipt: t }),
- /* @__PURE__ */ (0, x.jsx)(POe, { receipt: t })
+ /* @__PURE__ */ (0, x.jsx)(dke, { receipt: t }),
+ /* @__PURE__ */ (0, x.jsx)(FOe, { receipt: t })
]
});
}
//#endregion
//#region src/react/settings/configuration-page.tsx
-function pke({ receipt: e, reopenTutorial: t, section: n = "" }) {
+function mke({ receipt: e, reopenTutorial: t, section: n = "" }) {
let r = dt({
- queryKey: aV,
- queryFn: ({ signal: e }) => oV(e)
+ queryKey: iV,
+ queryFn: ({ signal: e }) => aV(e)
}), i = r.data;
- return i ? /* @__PURE__ */ (0, x.jsx)(hke, {
+ return i ? /* @__PURE__ */ (0, x.jsx)(gke, {
data: i,
receipt: e,
reopenTutorial: t,
@@ -59922,9 +59922,9 @@ function pke({ receipt: e, reopenTutorial: t, section: n = "" }) {
})
});
}
-var mke = 0;
-function hke({ data: e, receipt: t, reopenTutorial: n, section: r }) {
- let [i] = (0, b.useState)(() => `board-tabs-${++mke}`), [a, o] = (0, b.useState)(r), [s, c] = (0, b.useState)(() => matchMedia("(max-width:900px)").matches);
+var hke = 0;
+function gke({ data: e, receipt: t, reopenTutorial: n, section: r }) {
+ let [i] = (0, b.useState)(() => `board-tabs-${++hke}`), [a, o] = (0, b.useState)(r), [s, c] = (0, b.useState)(() => matchMedia("(max-width:900px)").matches);
(0, b.useEffect)(() => {
let e = matchMedia("(max-width:900px)"), t = () => c(e.matches);
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
@@ -59935,21 +59935,21 @@ function hke({ data: e, receipt: t, reopenTutorial: n, section: r }) {
}, d = !!(e.peach_proxy || e.access || e.tunnel || e.editable && e.port_editable !== !1), f = e.downloads, p = [
{
title: "媒体库与入库",
- body: (e) => /* @__PURE__ */ (0, x.jsx)(BOe, {
+ body: (e) => /* @__PURE__ */ (0, x.jsx)(VOe, {
...u,
panel: e
})
},
{
title: "来源与订阅",
- body: (e) => /* @__PURE__ */ (0, x.jsx)(fke, {
+ body: (e) => /* @__PURE__ */ (0, x.jsx)(pke, {
...u,
panel: e
})
},
...f ? [{
title: "下载渠道",
- body: (e) => /* @__PURE__ */ (0, x.jsx)(nOe, {
+ body: (e) => /* @__PURE__ */ (0, x.jsx)(rOe, {
initial: f,
receipt: t,
panel: e
@@ -59957,7 +59957,7 @@ function hke({ data: e, receipt: t, reopenTutorial: n, section: r }) {
}] : [],
...d ? [{
title: "网络与访问",
- body: (e) => /* @__PURE__ */ (0, x.jsx)(QOe, {
+ body: (e) => /* @__PURE__ */ (0, x.jsx)($Oe, {
...u,
panel: e
})
@@ -59965,8 +59965,8 @@ function hke({ data: e, receipt: t, reopenTutorial: n, section: r }) {
{
title: "应用与维护",
body: (e) => /* @__PURE__ */ (0, x.jsxs)("div", {
- ...cV(e),
- children: [/* @__PURE__ */ (0, x.jsx)(hOe, { ...u }), /* @__PURE__ */ (0, x.jsx)(cOe, {
+ ...sV(e),
+ children: [/* @__PURE__ */ (0, x.jsx)(gOe, { ...u }), /* @__PURE__ */ (0, x.jsx)(lOe, {
...u,
reopenTutorial: n
})]
@@ -60017,16 +60017,16 @@ function hke({ data: e, receipt: t, reopenTutorial: n, section: r }) {
}
//#endregion
//#region src/react/settings-panel/legacy-controls.tsx
-var wV = (e) => e.map(([e, t, n]) => n ? [
+var CV = (e) => e.map(([e, t, n]) => n ? [
e,
t,
n
] : [e, t]);
-function TV({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
+function wV({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
let u = (0, b.useRef)(null), d = (0, b.useRef)(null), f = (0, b.useRef)(l);
return f.current = l, (0, b.useLayoutEffect)(() => {
let e = u.current;
- e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = Jo(t, n, wV(r), i, {
+ e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = Jo(t, n, CV(r), i, {
attr: a,
className: o,
text: s
@@ -60044,13 +60044,13 @@ function TV({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant:
ref: u
});
}
-function EV({ 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 TV({ 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, b.useRef)(null), f = (0, b.useRef)(null), p = (0, b.useRef)(-1), m = (0, b.useRef)(l);
return m.current = l, (0, b.useLayoutEffect)(() => {
let e = d.current;
if (!e) return;
if (p.current !== c || !f.current) {
- e.innerHTML = Ha(wV(n), r, { label: t });
+ e.innerHTML = Ha(CV(n), r, { label: t });
let i = Ua(e.firstElementChild);
i.addEventListener("change", () => m.current(i.value)), f.current = i, p.current = c;
}
@@ -60063,7 +60063,7 @@ function EV({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a =
"aria-describedby": s
});
}
-function gke({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
+function _ke({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
let s = (0, b.useRef)(null), c = (0, b.useRef)(null), l = (0, b.useRef)({
onStep: a,
onSettle: o
@@ -60098,7 +60098,7 @@ function gke({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSet
}
//#endregion
//#region src/react/settings-panel/glow-settings.tsx
-var _ke = [
+var vke = [
[
"strength",
"强度",
@@ -60125,8 +60125,8 @@ var _ke = [
100
]
];
-function vke({ host: e, spot: t, index: n, glow: r }) {
- let i = Ose[n], a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = (0, b.useRef)(null), [c, l] = (0, b.useState)("all");
+function yke({ host: e, spot: t, index: n, glow: r }) {
+ let i = Dse[n], a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = (0, b.useRef)(null), [c, l] = (0, b.useState)("all");
(0, b.useLayoutEffect)(() => {
let [e, t, n] = [
a.current,
@@ -60139,7 +60139,7 @@ function vke({ host: e, spot: t, index: n, glow: r }) {
}, []);
let u = r[t].color, d = (n) => {
let r = e.store.value.homeGlow;
- r[t].color = Xw(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), Pa(), o.current?.focus();
+ r[t].color = Zw(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), Pa(), o.current?.focus();
};
return /* @__PURE__ */ (0, x.jsxs)("div", {
"data-glow-stop": t,
@@ -60176,7 +60176,7 @@ function vke({ host: e, spot: t, index: n, glow: r }) {
"data-glow-pills": "",
role: "group",
"aria-label": "色系",
- children: jse.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)("button", {
+ children: Ase.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
"data-glow-pill": e,
"aria-pressed": e === c,
@@ -60187,7 +60187,7 @@ function vke({ host: e, spot: t, index: n, glow: r }) {
"data-glow-palette": "",
role: "radiogroup",
"aria-label": `${i}颜色`,
- children: Mse.map(([e, t, n]) => /* @__PURE__ */ (0, x.jsx)("button", {
+ children: jse.map(([e, t, n]) => /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
role: "radio",
"aria-checked": n === u,
@@ -60203,8 +60203,8 @@ function vke({ host: e, spot: t, index: n, glow: r }) {
})]
});
}
-function yke({ host: e }) {
- let t = e.store.value.homeGlow, n = Uw(t.preset);
+function bke({ host: e }) {
+ let t = e.store.value.homeGlow, n = Ww(t.preset);
return /* @__PURE__ */ (0, x.jsxs)("section", {
"data-glow-setting": "",
id: "homeGlowControls",
@@ -60219,10 +60219,10 @@ function yke({ host: e }) {
"data-glow-current": "",
children: ["当前配色", /* @__PURE__ */ (0, x.jsx)("b", {
"data-glow-preset-name": "",
- children: kse(t.preset)
+ children: Ose(t.preset)
})]
}),
- /* @__PURE__ */ (0, x.jsx)(zT, {
+ /* @__PURE__ */ (0, x.jsx)(BT, {
store: e.store,
label: "光晕配色"
}),
@@ -60233,7 +60233,7 @@ function yke({ host: e }) {
}),
/* @__PURE__ */ (0, x.jsx)("div", {
"data-glow-fields": "",
- children: _ke.map(([r, i, a]) => /* @__PURE__ */ (0, x.jsx)(gke, {
+ children: vke.map(([r, i, a]) => /* @__PURE__ */ (0, x.jsx)(_ke, {
field: r,
label: i,
max: a,
@@ -60255,7 +60255,7 @@ function yke({ host: e }) {
hidden: n,
children: [/* @__PURE__ */ (0, x.jsx)("h4", { children: "颜色" }), /* @__PURE__ */ (0, x.jsx)("div", {
"data-glow-stops": "",
- children: Bw.map((n, r) => /* @__PURE__ */ (0, x.jsx)(vke, {
+ children: Vw.map((n, r) => /* @__PURE__ */ (0, x.jsx)(yke, {
host: e,
spot: n,
index: r,
@@ -60270,7 +60270,7 @@ function yke({ host: e }) {
className: "geist-button",
"data-glow-reset": "",
onClick: () => {
- e.store.value.homeGlow = Qw(null), e.store.save(), e.changed("glow");
+ e.store.value.homeGlow = $w(null), e.store.save(), e.changed("glow");
},
children: "恢复默认"
})
@@ -60280,7 +60280,7 @@ function yke({ host: e }) {
}
//#endregion
//#region src/react/settings-panel/number-setting.tsx
-var bke = {
+var xke = {
batchSizeSetting: {
min: 1,
max: 200,
@@ -60321,22 +60321,22 @@ var bke = {
optional: !0,
fallback: 60
}
-}, DV = (e) => `peach.number.${e}`;
-function OV(e, t) {
+}, EV = (e) => `peach.number.${e}`;
+function DV(e, t) {
if (t !== "分钟" || !Number.isInteger(e) || e < 1440) return "";
let n = e / 1440;
return Number.isInteger(n) ? `${n.toLocaleString()} 天` : `约 ${n.toFixed(1)} 天`;
}
-function kV({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
- let a = bke[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, b.useRef)(0);
- d.current ||= kw(Number(localStorage.getItem(DV(e))), o, s, n && n > 0 ? n : l);
+function OV({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
+ let a = xke[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, b.useRef)(0);
+ d.current ||= Aw(Number(localStorage.getItem(EV(e))), o, s, n && n > 0 ? n : l);
let [f, p] = (0, b.useState)(n ?? 0), [m, h] = (0, b.useState)(String(n && n > 0 ? n : d.current)), [g, _] = (0, b.useState)(""), v = (0, b.useRef)(null), y = (0, b.useRef)(i);
y.current = i, (0, b.useLayoutEffect)(() => {
n !== null && (p(n), n > 0 && h(String(n)));
}, [n]);
let S = () => {
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(DV(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(EV(e), String(d.current)), y.current(d.current)));
}, C = (0, b.useRef)(S);
C.current = S, (0, b.useEffect)(() => {
let e = v.current;
@@ -60346,7 +60346,7 @@ function kV({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
}, []);
let w = f > 0, T = () => {
let t = v.current;
- t?.removeAttribute("aria-invalid"), _(""), w ? (t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(DV(e), String(d.current)), p(0), y.current(0)) : (p(d.current), h(String(d.current)), y.current(d.current));
+ t?.removeAttribute("aria-invalid"), _(""), w ? (t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(EV(e), String(d.current)), p(0), y.current(0)) : (p(d.current), h(String(d.current)), y.current(d.current));
}, E = r || n === null;
return /* @__PURE__ */ (0, x.jsxs)("div", {
"data-number-setting": "",
@@ -60383,7 +60383,7 @@ function kV({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
}
}), /* @__PURE__ */ (0, x.jsxs)("span", {
"aria-hidden": "true",
- children: [c, OV(Number(m), c) ? ` · ${OV(Number(m), c)}` : ""]
+ children: [c, DV(Number(m), c) ? ` · ${DV(Number(m), c)}` : ""]
})]
}), /* @__PURE__ */ (0, x.jsx)("small", {
id: `${e}-error`,
@@ -60397,13 +60397,13 @@ function kV({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
}
//#endregion
//#region src/react/sidebar/sidebar-order.ts
-function AV(e) {
- let { mutate: t } = dN();
+function kV(e) {
+ let { mutate: t } = uN();
return (0, b.useCallback)((n) => {
e.value.sidebarOrder = n, e.save(), t({ sidebarOrder: n }, { onError: () => {} });
}, [e, t]);
}
-function jV(e, t, n, r) {
+function AV(e, t, n, r) {
if (t === n) return null;
let i = [...e], a = i.indexOf(t);
if (a < 0) return null;
@@ -60413,17 +60413,17 @@ function jV(e, t, n, r) {
}
//#endregion
//#region src/react/settings-panel/sidebar-order.tsx
-var xke = "__home__", MV = (e) => e === "" ? xke : e;
-function Ske({ host: e }) {
- let t = AV(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, b.useState)(null), [c, l] = (0, b.useState)(!1), [u, d] = (0, b.useState)(null), [f, p] = (0, b.useState)(null), m = (0, b.useRef)(null), h = (0, b.useRef)(null), g = (e, r, i) => {
- let a = jV(n, e, r, i);
+var Ske = "__home__", jV = (e) => e === "" ? Ske : e;
+function Cke({ host: e }) {
+ let t = kV(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, b.useState)(null), [c, l] = (0, b.useState)(!1), [u, d] = (0, b.useState)(null), [f, p] = (0, b.useState)(null), m = (0, b.useRef)(null), h = (0, b.useRef)(null), g = (e, r, i) => {
+ let a = AV(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]) => MV(e) === o) ?? a[0], y = () => {
+ }, v = a.find(([e]) => jV(e) === o) ?? a[0], y = () => {
h.current && La(h.current), l(!1);
}, S = () => {
let e = h.current;
@@ -60444,7 +60444,7 @@ function Ske({ host: e }) {
}, T = (e) => ({
draggable: !0,
onDragStart: (t) => {
- d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", MV(e));
+ d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", jV(e));
},
onDragOver: (t) => {
if (u === null || u === e) return;
@@ -60518,7 +60518,7 @@ function Ske({ host: e }) {
})
]
})]
- }, MV(e))), /* @__PURE__ */ (0, x.jsxs)("div", {
+ }, jV(e))), /* @__PURE__ */ (0, x.jsxs)("div", {
"data-sidebar-add-row": "",
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
"data-sidebar-add-picker": "",
@@ -60551,15 +60551,15 @@ function Ske({ host: e }) {
children: a.map(([e, t, n]) => /* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
role: "option",
- "data-sidebar-add-option": MV(e),
+ "data-sidebar-add-option": jV(e),
"aria-selected": v?.[0] === e,
tabIndex: v?.[0] === e ? 0 : -1,
onKeyDown: C,
onClick: () => {
- s(MV(e)), y(), m.current?.focus();
+ s(jV(e)), y(), m.current?.focus();
},
children: [/* @__PURE__ */ (0, x.jsx)(ZD, { name: n ?? "" }), /* @__PURE__ */ (0, x.jsx)("span", { children: t })]
- }, MV(e)))
+ }, jV(e)))
}) : null]
}), /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
@@ -60576,13 +60576,13 @@ function Ske({ host: e }) {
}
//#endregion
//#region src/react/settings-panel/settings-panel.tsx
-var NV = [
+var MV = [
["外观与导航", "ri-palette-line"],
["浏览与播放", "ri-play-circle-line"],
["JAV 与新作", "jav"],
["搜索与推荐", "ri-search-line"],
["内容显示", "ri-shield-check-line"]
-], Cke = [
+], wke = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -60591,7 +60591,7 @@ var NV = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], wke = [["desc", "降序"], ["asc", "升序"]], Tke = [[
+], Tke = [["desc", "降序"], ["asc", "升序"]], Eke = [[
"cover",
"官方封面",
""
@@ -60599,7 +60599,7 @@ var NV = [
"thumbnail",
"预览图",
""
-]], Eke = [
+]], Dke = [
[
"feedHideGroupSetting",
"feedHideGroupCompilations",
@@ -60618,83 +60618,83 @@ var NV = [
"切片",
"隐藏切片"
]
-], Dke = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", PV = null, FV = {
+], Oke = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", NV = null, PV = {
open: !1,
closing: !1,
epoch: 0,
tab: 0,
configurable: null
-}, IV = 0, LV = null, RV = /* @__PURE__ */ new Set();
-function Oke(e) {
- return RV.add(e), () => {
- RV.delete(e);
+}, FV = 0, IV = null, LV = /* @__PURE__ */ new Set();
+function kke(e) {
+ return LV.add(e), () => {
+ LV.delete(e);
};
}
-function kke() {
- for (let e of [...RV]) e();
+function Ake() {
+ for (let e of [...LV]) e();
}
-function zV(e) {
- FV = {
- ...FV,
+function RV(e) {
+ PV = {
+ ...PV,
...e
- }, (0, mt.flushSync)(kke);
+ }, (0, mt.flushSync)(Ake);
}
-async function Ake(e) {
- let t = FV.epoch, n = await e.configurable();
- FV.open && FV.epoch === t && zV({ configurable: n });
+async function jke(e) {
+ let t = PV.epoch, n = await e.configurable();
+ PV.open && PV.epoch === t && RV({ configurable: n });
}
-function jke(e = "") {
- let t = PV;
+function Mke(e = "") {
+ let t = NV;
if (!t) return;
- Pa(), IV += 1, LV ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
- let n = NV.findIndex(([t]) => t === e), r = ove();
- zV({
+ Pa(), FV += 1, IV ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
+ let n = MV.findIndex(([t]) => t === e), r = sve();
+ RV({
open: !0,
closing: !1,
configurable: null,
- epoch: FV.epoch + 1,
- tab: n >= 0 ? n : FV.tab
+ epoch: PV.epoch + 1,
+ tab: n >= 0 ? n : PV.tab
}), r.then((e) => {
e && t.syncRemote(e);
- }), Ake(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
+ }), jke(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
}
-function BV() {
- if (!FV.open || FV.closing) return;
- let e = ++IV;
- zV({ closing: !0 });
+function zV() {
+ if (!PV.open || PV.closing) return;
+ let e = ++FV;
+ RV({ closing: !0 });
let t = () => {
- e === IV && FV.closing && (zV({
+ e === FV && PV.closing && (RV({
open: !1,
closing: !1
- }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), LV instanceof HTMLElement && document.contains(LV) && LV.focus(), LV = null);
+ }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), IV instanceof HTMLElement && document.contains(IV) && IV.focus(), IV = null);
};
matchMedia("(prefers-reduced-motion: reduce)").matches ? queueMicrotask(t) : (document.querySelector("#settingsPanel > [data-settings-card]")?.addEventListener("animationend", t, { once: !0 }), setTimeout(t, 380));
}
-var Mke = {
- open: jke,
- close: BV,
- isOpen: () => FV.open,
+var Nke = {
+ open: Mke,
+ close: zV,
+ isOpen: () => PV.open,
reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))
};
-function Nke(e) {
- return PV = e, Mke;
+function Pke(e) {
+ return NV = e, Nke;
}
-function Pke() {
- let e = (0, b.useSyncExternalStore)(Oke, () => FV);
- return PV ? /* @__PURE__ */ (0, x.jsx)(Lke, {
- host: PV,
+function Fke() {
+ let e = (0, b.useSyncExternalStore)(kke, () => PV);
+ return NV ? /* @__PURE__ */ (0, x.jsx)(Rke, {
+ host: NV,
view: e
}) : null;
}
-function Fke(e) {
+function Ike(e) {
if (e.key !== "Tab") return;
- let t = [...e.currentTarget.querySelectorAll(Dke)].filter((e) => e.getClientRects().length > 0);
+ let t = [...e.currentTarget.querySelectorAll(Oke)].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 VV = (e) => `settings-tab-${e}`, HV = (e) => `settings-group-${e}`;
-function Ike({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
+var BV = (e) => `settings-tab-${e}`, VV = (e) => `settings-group-${e}`;
+function Lke({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
let a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = (0, b.useRef)(null), c = (0, b.useRef)(e), l = (0, b.useRef)([]), u = (e, t) => {
let n = o.current;
if (!n) return;
@@ -60722,7 +60722,7 @@ function Ike({ 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 = NV.length, r = t;
+ let n = MV.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;
@@ -60751,11 +60751,11 @@ function Ike({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
role: "presentation",
children: "设置"
}),
- NV.map(([t, n], r) => /* @__PURE__ */ (0, x.jsxs)("button", {
+ MV.map(([t, n], r) => /* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
role: "tab",
- id: VV(r),
- "aria-controls": HV(r),
+ id: BV(r),
+ "aria-controls": VV(r),
"aria-selected": r === e,
tabIndex: r === e ? 0 : -1,
ref: (e) => {
@@ -60786,17 +60786,17 @@ function Ike({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
]
});
}
-function UV({ index: e, tab: t, children: n }) {
+function HV({ index: e, tab: t, children: n }) {
return /* @__PURE__ */ (0, x.jsxs)("section", {
"data-setting-group": "",
- id: HV(e),
+ id: VV(e),
role: "tabpanel",
- "aria-labelledby": VV(e),
+ "aria-labelledby": BV(e),
hidden: e !== t,
- children: [/* @__PURE__ */ (0, x.jsx)("h3", { children: NV[e][0] }), n]
+ children: [/* @__PURE__ */ (0, x.jsx)("h3", { children: MV[e][0] }), n]
});
}
-function WV({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
+function UV({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
return /* @__PURE__ */ (0, x.jsxs)("label", {
"data-setting-row": "",
children: [/* @__PURE__ */ (0, x.jsxs)("span", { children: [/* @__PURE__ */ (0, x.jsx)("b", { children: t }), n ? /* @__PURE__ */ (0, x.jsx)("small", {
@@ -60813,7 +60813,7 @@ function WV({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Se
})]
});
}
-function GV({ title: e, description: t, kind: n, children: r }) {
+function WV({ title: e, description: t, kind: n, children: r }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
"data-setting-row": "",
"data-setting-sort": n === "sort" ? "" : void 0,
@@ -60821,7 +60821,7 @@ function GV({ title: e, description: t, kind: n, children: r }) {
children: [/* @__PURE__ */ (0, x.jsxs)("span", { children: [/* @__PURE__ */ (0, x.jsx)("b", { children: e }), typeof t == "string" ? /* @__PURE__ */ (0, x.jsx)("small", { children: t }) : t] }), r]
});
}
-function Lke({ host: e, view: t }) {
+function Rke({ host: e, view: t }) {
(0, b.useSyncExternalStore)(e.store.subscribe, e.store.version);
let n = e.store.value, r = (0, b.useRef)(null), i = (0, b.useRef)(null), a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = (0, b.useRef)(null), c = (0, b.useRef)(t.tab), l = () => {
let [e, t] = [i.current, o.current];
@@ -60842,7 +60842,7 @@ function Lke({ host: e, view: t }) {
s.current?.();
});
let d = t.epoch, f = (e) => {
- e !== FV.tab && zV({ tab: e });
+ e !== PV.tab && RV({ tab: e });
}, p = () => e.store.save();
return /* @__PURE__ */ (0, x.jsx)("section", {
"data-settings-panel": "",
@@ -60853,9 +60853,9 @@ function Lke({ host: e, view: t }) {
"aria-labelledby": "settingsTitle",
"data-closing": t.closing ? "" : void 0,
ref: r,
- onKeyDown: Fke,
+ onKeyDown: Ike,
onClick: (e) => {
- e.target === e.currentTarget && BV();
+ e.target === e.currentTarget && zV();
},
children: /* @__PURE__ */ (0, x.jsxs)("div", {
"data-settings-card": "",
@@ -60866,38 +60866,38 @@ function Lke({ host: e, view: t }) {
ref: a,
children: [/* @__PURE__ */ (0, x.jsx)("h2", {
id: "settingsTitle",
- children: NV[t.tab][0]
+ children: MV[t.tab][0]
}), /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
id: "settingsClose",
"aria-label": "关闭设置",
- onClick: BV,
+ onClick: zV,
children: /* @__PURE__ */ (0, x.jsx)("svg", {
viewBox: "0 0 24 24",
children: /* @__PURE__ */ (0, x.jsx)("use", { href: "#i-x" })
})
})]
}),
- /* @__PURE__ */ (0, x.jsx)(Ike, {
+ /* @__PURE__ */ (0, x.jsx)(Lke, {
tab: t.tab,
epoch: d,
configurable: t.configurable,
onSelect: f,
openConfiguration: () => {
- BV(), e.openConfiguration();
+ zV(), e.openConfiguration();
}
}),
/* @__PURE__ */ (0, x.jsxs)("div", {
"data-settings-scroll": "",
ref: o,
children: [
- /* @__PURE__ */ (0, x.jsxs)(UV, {
+ /* @__PURE__ */ (0, x.jsxs)(HV, {
index: 0,
tab: t.tab,
children: [
- /* @__PURE__ */ (0, x.jsx)(GV, {
+ /* @__PURE__ */ (0, x.jsx)(WV, {
title: "主题",
- children: /* @__PURE__ */ (0, x.jsx)(TV, {
+ children: /* @__PURE__ */ (0, x.jsx)(wV, {
id: "themeSetting",
name: "theme",
legend: "主题",
@@ -60925,7 +60925,7 @@ function Lke({ host: e, view: t }) {
onChange: (t) => e.setHighContrast(t.target.checked)
})]
}),
- /* @__PURE__ */ (0, x.jsx)(WV, {
+ /* @__PURE__ */ (0, x.jsx)(UV, {
id: "uiSoundsSetting",
title: "界面音效",
checked: n.uiSounds,
@@ -60933,7 +60933,7 @@ function Lke({ host: e, view: t }) {
n.uiSounds = t, p(), e.changed("uiSounds");
}
}),
- /* @__PURE__ */ (0, x.jsx)(WV, {
+ /* @__PURE__ */ (0, x.jsx)(UV, {
id: "homeGlowSetting",
title: "侧栏光晕",
checked: n.homeGlow.on,
@@ -60941,40 +60941,40 @@ function Lke({ host: e, view: t }) {
n.homeGlow.on = t, p(), e.changed("glow");
}
}),
- /* @__PURE__ */ (0, x.jsx)(yke, { host: e }),
+ /* @__PURE__ */ (0, x.jsx)(bke, { host: e }),
/* @__PURE__ */ (0, x.jsxs)("section", {
"data-sidebar-setting": "",
"aria-labelledby": "sidebarOrderTitle",
children: [/* @__PURE__ */ (0, x.jsx)("span", { children: /* @__PURE__ */ (0, x.jsx)("b", {
id: "sidebarOrderTitle",
children: "导航入口与顺序"
- }) }), /* @__PURE__ */ (0, x.jsx)(Ske, { host: e })]
+ }) }), /* @__PURE__ */ (0, x.jsx)(Cke, { host: e })]
})
]
}),
- /* @__PURE__ */ (0, x.jsx)(zke, {
+ /* @__PURE__ */ (0, x.jsx)(Bke, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, x.jsx)(Bke, {
+ /* @__PURE__ */ (0, x.jsx)(Vke, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, x.jsxs)(UV, {
+ /* @__PURE__ */ (0, x.jsxs)(HV, {
index: 3,
tab: t.tab,
children: [
- /* @__PURE__ */ (0, x.jsx)(Uke, {
+ /* @__PURE__ */ (0, x.jsx)(Wke, {
host: e,
epoch: d
}),
- /* @__PURE__ */ (0, x.jsx)(GV, {
+ /* @__PURE__ */ (0, x.jsx)(WV, {
title: "相关推荐数量",
children: /* @__PURE__ */ (0, x.jsx)("div", {
id: "relatedLimitSetting",
- children: /* @__PURE__ */ (0, x.jsx)(kV, {
+ children: /* @__PURE__ */ (0, x.jsx)(OV, {
id: "relatedLimitSetting",
label: "相关推荐数量",
value: n.relatedLimit,
@@ -60984,24 +60984,24 @@ function Lke({ host: e, view: t }) {
}, d)
})
}),
- /* @__PURE__ */ (0, x.jsx)(GV, {
+ /* @__PURE__ */ (0, x.jsx)(WV, {
title: "口味与记录",
children: /* @__PURE__ */ (0, x.jsx)("div", {
className: "peach-react",
children: /* @__PURE__ */ (0, x.jsx)(UO, {
variant: "secondary",
href: "/taste",
- onClick: BV,
+ onClick: zV,
children: "打开口味与记录"
})
})
})
]
}),
- /* @__PURE__ */ (0, x.jsx)(UV, {
+ /* @__PURE__ */ (0, x.jsx)(HV, {
index: 4,
tab: t.tab,
- children: /* @__PURE__ */ (0, x.jsx)(WV, {
+ children: /* @__PURE__ */ (0, x.jsx)(UV, {
id: "censorSetting",
title: "SFW 模式",
describedBy: "sfwDescription",
@@ -61016,7 +61016,7 @@ function Lke({ host: e, view: t }) {
})
});
}
-function Rke(e, t) {
+function zke(e, t) {
let n = e.querySelector("[data-select-label]");
if (!n) return;
n.querySelector("[data-icon-swap]") || (n.innerHTML = eo("arrow-up", "arrow-down", "a", {
@@ -61026,17 +61026,17 @@ function Rke(e, t) {
let r = n.querySelector("[data-sort-direction-label]");
r && (r.textContent = t ? "升序" : "降序");
}
-function zke({ host: e, tab: t, epoch: n }) {
+function Bke({ 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, x.jsxs)(UV, {
+ return /* @__PURE__ */ (0, x.jsxs)(HV, {
index: 1,
tab: t,
children: [
- /* @__PURE__ */ (0, x.jsx)(GV, {
+ /* @__PURE__ */ (0, x.jsx)(WV, {
title: "每批加载作品",
children: /* @__PURE__ */ (0, x.jsx)("div", {
id: "batchSizeSetting",
- children: /* @__PURE__ */ (0, x.jsx)(kV, {
+ children: /* @__PURE__ */ (0, x.jsx)(OV, {
id: "batchSizeSetting",
label: "每批作品",
value: r.batchSize,
@@ -61046,24 +61046,24 @@ function zke({ host: e, tab: t, epoch: n }) {
}, n)
})
}),
- /* @__PURE__ */ (0, x.jsx)(GV, {
+ /* @__PURE__ */ (0, x.jsx)(WV, {
title: "默认排序",
kind: "sort",
children: /* @__PURE__ */ (0, x.jsxs)("div", {
"data-setting-sort-controls": "",
- children: [/* @__PURE__ */ (0, x.jsx)(EV, {
+ children: [/* @__PURE__ */ (0, x.jsx)(TV, {
id: "defaultSortSetting",
label: "默认排序",
- options: Cke,
+ options: wke,
value: r.defaultSort,
epoch: n,
onPick: (t) => {
r.defaultSort = t, i(), e.changed("defaultSort");
}
- }), /* @__PURE__ */ (0, x.jsx)(EV, {
+ }), /* @__PURE__ */ (0, x.jsx)(TV, {
id: "defaultSortDirectionSetting",
label: "默认排序方向",
- options: wke,
+ options: Tke,
value: o ? "asc" : "desc",
hidden: a,
disabled: a,
@@ -61071,13 +61071,13 @@ function zke({ host: e, tab: t, epoch: n }) {
onPick: (t) => {
r.defaultSortDirection = t, i(), e.changed("sortDirection");
},
- decorate: (e) => Rke(e, o)
+ decorate: (e) => zke(e, o)
})]
})
}),
- /* @__PURE__ */ (0, x.jsx)(GV, {
+ /* @__PURE__ */ (0, x.jsx)(WV, {
title: "视频卡片大小",
- children: /* @__PURE__ */ (0, x.jsx)(TV, {
+ children: /* @__PURE__ */ (0, x.jsx)(wV, {
id: "javSizeSetting",
name: "video-size",
legend: "视频卡片大小",
@@ -61090,16 +61090,16 @@ function zke({ host: e, tab: t, epoch: n }) {
onChoose: (t) => e.setVideoLayout(t)
})
}),
- /* @__PURE__ */ (0, x.jsx)(Hke, {
+ /* @__PURE__ */ (0, x.jsx)(Uke, {
host: e,
epoch: n
})
]
});
}
-function Bke({ host: e, tab: t, epoch: n }) {
+function Vke({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save();
- return /* @__PURE__ */ (0, x.jsxs)(UV, {
+ return /* @__PURE__ */ (0, x.jsxs)(HV, {
index: 2,
tab: t,
children: [
@@ -61107,13 +61107,13 @@ function Bke({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "作品显示"
}),
- /* @__PURE__ */ (0, x.jsx)(GV, {
+ /* @__PURE__ */ (0, x.jsx)(WV, {
title: "默认图片",
- children: /* @__PURE__ */ (0, x.jsx)(TV, {
+ children: /* @__PURE__ */ (0, x.jsx)(wV, {
id: "javImageSetting",
name: "jav-image",
legend: "默认图片",
- options: Tke,
+ options: Eke,
value: r.javImage,
attr: "data-jav-image-choice",
variant: "javimageswitch",
@@ -61141,7 +61141,7 @@ function Bke({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "新作显示"
}),
- /* @__PURE__ */ (0, x.jsx)(WV, {
+ /* @__PURE__ */ (0, x.jsx)(UV, {
id: "feedAutoScrollSetting",
title: "新作自动滚动",
checked: r.feedAutoScroll,
@@ -61149,7 +61149,7 @@ function Bke({ host: e, tab: t, epoch: n }) {
r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");
}
}),
- Eke.map(([t, n, r, i]) => /* @__PURE__ */ (0, x.jsx)(Vke, {
+ Dke.map(([t, n, r, i]) => /* @__PURE__ */ (0, x.jsx)(Hke, {
host: e,
id: t,
settingKey: n,
@@ -61159,8 +61159,8 @@ function Bke({ host: e, tab: t, epoch: n }) {
]
});
}
-function Vke({ host: e, id: t, settingKey: n, label: r, title: i }) {
- let a = dN(), [o, s] = (0, b.useState)(null), c = (0, b.useRef)(null), l = e.store.value, u = (t) => {
+function Hke({ host: e, id: t, settingKey: n, label: r, title: i }) {
+ let a = uN(), [o, s] = (0, b.useState)(null), c = (0, b.useRef)(null), l = e.store.value, u = (t) => {
s(t), Go(c.current), a.mutate({ [n]: t }, {
onSuccess: (i) => {
l[n] = i[n] === !0, e.store.save(), e.changed("feedCompilations"), e.receipt(t ? `新作已收起${r}` : `新作已列出${r}`);
@@ -61184,24 +61184,24 @@ function Vke({ host: e, id: t, settingKey: n, label: r, title: i }) {
})]
});
}
-function Hke({ host: e, epoch: t }) {
+function Uke({ host: e, epoch: t }) {
let n = e.store.value, r = () => e.store.save();
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
- /* @__PURE__ */ (0, x.jsx)(GV, {
+ /* @__PURE__ */ (0, x.jsx)(WV, {
title: "悬停预览延迟",
children: /* @__PURE__ */ (0, x.jsx)("div", {
id: "hoverDelaySetting",
- children: /* @__PURE__ */ (0, x.jsx)(kV, {
+ children: /* @__PURE__ */ (0, x.jsx)(OV, {
id: "hoverDelaySetting",
label: "悬停预览延迟",
value: n.hoverDelaySeconds,
onApply: (t) => {
- n.hoverDelaySeconds = kw(t, 0, 60, 5), r(), e.changed("hoverDelay");
+ n.hoverDelaySeconds = Aw(t, 0, 60, 5), r(), e.changed("hoverDelay");
}
}, t)
})
}),
- /* @__PURE__ */ (0, x.jsx)(WV, {
+ /* @__PURE__ */ (0, x.jsx)(UV, {
id: "detailAutoplaySetting",
title: "打开详情自动播放",
checked: n.detailAutoplay,
@@ -61209,7 +61209,7 @@ function Hke({ host: e, epoch: t }) {
n.detailAutoplay = e, r();
}
}),
- /* @__PURE__ */ (0, x.jsx)(WV, {
+ /* @__PURE__ */ (0, x.jsx)(UV, {
id: "miniplayerSetting",
title: "离开详情后小窗播放",
checked: n.miniplayer,
@@ -61217,11 +61217,11 @@ function Hke({ host: e, epoch: t }) {
n.miniplayer = t, r(), e.changed("miniplayer");
}
}),
- /* @__PURE__ */ (0, x.jsx)(GV, {
+ /* @__PURE__ */ (0, x.jsx)(WV, {
title: "快进 / 快退步长",
children: /* @__PURE__ */ (0, x.jsx)("div", {
id: "seekSecondsSetting",
- children: /* @__PURE__ */ (0, x.jsx)(kV, {
+ children: /* @__PURE__ */ (0, x.jsx)(OV, {
id: "seekSecondsSetting",
label: "快进 / 快退",
value: n.seekSeconds,
@@ -61233,18 +61233,18 @@ function Hke({ host: e, epoch: t }) {
})
] });
}
-function Uke({ host: e, epoch: t }) {
- let n = e.store.value, r = dN();
- return /* @__PURE__ */ (0, x.jsx)(GV, {
+function Wke({ host: e, epoch: t }) {
+ let n = e.store.value, r = uN();
+ return /* @__PURE__ */ (0, x.jsx)(WV, {
title: "搜索记录数量",
children: /* @__PURE__ */ (0, x.jsx)("div", {
id: "searchHistoryLimitSetting",
- children: /* @__PURE__ */ (0, x.jsx)(kV, {
+ children: /* @__PURE__ */ (0, x.jsx)(OV, {
id: "searchHistoryLimitSetting",
label: "搜索记录",
value: n.searchHistoryLimit,
onApply: (t) => {
- n.searchHistoryLimit = kw(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
+ n.searchHistoryLimit = Aw(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
}
}, t)
})
@@ -61252,68 +61252,68 @@ function Uke({ host: e, epoch: t }) {
}
//#endregion
//#region src/react/sidebar/sidebar-island.tsx
-var KV = "__home__", Wke = {
+var GV = "__home__", Gke = {
creator: 26,
tag: 30,
tech: 16
-}, qV = 180, JV = null, YV = {
+}, KV = 180, qV = null, JV = {
props: {
content: null,
filters: {},
latest: null
},
epoch: 0
-}, XV = /* @__PURE__ */ new Set();
-function Gke(e) {
- return XV.add(e), () => {
- XV.delete(e);
+}, YV = /* @__PURE__ */ new Set();
+function Kke(e) {
+ return YV.add(e), () => {
+ YV.delete(e);
};
}
-function ZV() {
- for (let e of [...XV]) e();
+function XV() {
+ for (let e of [...YV]) e();
}
-var Kke = {
+var qke = {
render(e) {
- YV = {
- ...YV,
+ JV = {
+ ...JV,
props: e
- }, (0, mt.flushSync)(ZV);
+ }, (0, mt.flushSync)(XV);
},
navChanged() {
- YV = {
- ...YV,
- epoch: YV.epoch + 1
- }, (0, mt.flushSync)(ZV);
+ JV = {
+ ...JV,
+ epoch: JV.epoch + 1
+ }, (0, mt.flushSync)(XV);
}
};
-function qke(e) {
- return JV = e, YV = {
- ...YV,
+function Jke(e) {
+ return qV = e, JV = {
+ ...JV,
props: {
content: null,
filters: {},
latest: null
}
- }, Kke;
+ }, qke;
}
-function Jke() {
- let e = (0, b.useSyncExternalStore)(Gke, () => YV);
- return JV ? /* @__PURE__ */ (0, x.jsx)(Yke, {
- host: JV,
+function Yke() {
+ let e = (0, b.useSyncExternalStore)(Kke, () => JV);
+ return qV ? /* @__PURE__ */ (0, x.jsx)(Xke, {
+ host: qV,
props: e.props,
epoch: e.epoch
}) : null;
}
-function Yke({ host: e, props: t, epoch: n }) {
+function Xke({ host: e, props: t, epoch: n }) {
let r = (0, b.useSyncExternalStore)(e.store.subscribe, e.store.version);
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
/* @__PURE__ */ (0, x.jsx)("div", { "data-sidebar-head": "" }),
- /* @__PURE__ */ (0, x.jsx)(Xke, {
+ /* @__PURE__ */ (0, x.jsx)(Zke, {
host: e,
epoch: n,
version: r
}),
- t.content ? /* @__PURE__ */ (0, x.jsx)(Qke, {
+ t.content ? /* @__PURE__ */ (0, x.jsx)($ke, {
host: e,
content: t.content,
filters: t.filters,
@@ -61321,8 +61321,8 @@ function Yke({ host: e, props: t, epoch: n }) {
}) : null
] });
}
-function Xke({ host: e, epoch: t, version: n }) {
- let r = AV(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, b.useRef)(null), l = (0, b.useRef)(null), u = Ok(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || KV : "").join(",")}`, { axis: "y" }), { sync: d } = u;
+function Zke({ host: e, epoch: t, version: n }) {
+ let r = kV(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, b.useRef)(null), l = (0, b.useRef)(null), u = Ok(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || GV : "").join(",")}`, { axis: "y" }), { sync: d } = u;
(0, b.useEffect)(() => {
let t = e.scroll, n = t.parentElement, r = t.querySelector(":scope > [data-sidebar-head]"), i = new ResizeObserver(() => d());
return [
@@ -61340,7 +61340,7 @@ function Xke({ host: e, epoch: t, version: n }) {
}, _ = (e) => ({
draggable: !0,
onDragStart: (t) => {
- p(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", e || KV);
+ p(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", e || GV);
},
onDragOver: (t) => {
if (f === null || f === e) return;
@@ -61355,7 +61355,7 @@ function Xke({ host: e, epoch: t, version: n }) {
t.preventDefault();
let n = f, a = m?.key === e && m.after;
g();
- let o = n === null ? null : jV(i, n, e, a);
+ let o = n === null ? null : AV(i, n, e, a);
o && r(o);
},
onDragEnd: g
@@ -61379,15 +61379,15 @@ function Xke({ host: e, epoch: t, version: n }) {
src: "/peach-logo.png",
alt: ""
}) : /* @__PURE__ */ (0, x.jsx)(ZD, { name: r }), /* @__PURE__ */ (0, x.jsx)("span", { children: n })]
- }, t || KV))
+ }, t || GV))
}), v ? (0, mt.createPortal)(/* @__PURE__ */ (0, x.jsx)("span", {
"data-sidebar-glide": "",
"aria-hidden": "true",
ref: l
}), v) : null] });
}
-var QV = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
-function Zke(e) {
+var ZV = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
+function Qke(e) {
if (!e) return null;
let t = /* @__PURE__ */ new Map(), n = [
["loc", e.locations],
@@ -61400,7 +61400,7 @@ function Zke(e) {
for (let [e, r] of n) for (let n of r) t.set(`${e}\n${n.value}`, n.n ?? 0);
return t;
}
-function Qke({ host: e, content: t, filters: n, latest: r }) {
+function $ke({ 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, b.useLayoutEffect)(() => {
t.kind === "catalog" && oo(e.scroll, "drawer");
@@ -61409,8 +61409,8 @@ function Qke({ host: e, content: t, filters: n, latest: r }) {
i,
t.kind
]);
- let a = t.kind === "catalog" ? $ke(e, t.facets, n, r, i) : eAe(e, t, n), o = 0;
- return a.map((e) => e && /* @__PURE__ */ (0, x.jsx)(tAe, {
+ let a = t.kind === "catalog" ? eAe(e, t.facets, n, r, i) : tAe(e, t, n), o = 0;
+ return a.map((e) => e && /* @__PURE__ */ (0, x.jsx)(nAe, {
title: e.title,
kind: e.kind,
active: e.active,
@@ -61419,11 +61419,11 @@ function Qke({ host: e, content: t, filters: n, latest: r }) {
children: e.body
}, e.title));
}
-function $ke(e, t, n, r, i) {
- let a = Zke(r), o = (t, r, i) => {
+function eAe(e, t, n, r, i) {
+ let a = Qke(r), o = (t, r, i) => {
if (!t.length) return null;
- let o = QV(n, r);
- return /* @__PURE__ */ (0, x.jsx)(tH, {
+ let o = ZV(n, r);
+ return /* @__PURE__ */ (0, x.jsx)(eH, {
rows: t,
filterKey: r,
multi: i,
@@ -61433,7 +61433,7 @@ function $ke(e, t, n, r, i) {
});
}, s = (t, s, c, l, u, d) => {
if (!c.length) return null;
- let f = QV(n, l), p = c.some((e) => f.includes(e.value));
+ let f = ZV(n, l), p = c.some((e) => f.includes(e.value));
if (!d) return {
title: t,
kind: s,
@@ -61445,12 +61445,12 @@ function $ke(e, t, n, r, i) {
title: t,
kind: s,
active: p,
- body: /* @__PURE__ */ (0, x.jsx)(rAe, {
+ body: /* @__PURE__ */ (0, x.jsx)(iAe, {
epoch: i,
title: t,
rows: c,
latest: m ?? null,
- limit: Wke[d],
+ limit: Gke[d],
filterKey: l,
selected: f,
counts: a,
@@ -61465,7 +61465,7 @@ function $ke(e, t, n, r, i) {
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, x.jsx)(iH, {
+ body: /* @__PURE__ */ (0, x.jsx)(rH, {
host: e,
filters: n
})
@@ -61479,7 +61479,7 @@ function $ke(e, t, n, r, i) {
title: "关注标签",
kind: "online",
active: !1,
- body: /* @__PURE__ */ (0, x.jsx)(nH, {
+ body: /* @__PURE__ */ (0, x.jsx)(tH, {
rows: t.followTags,
host: e,
selected: null,
@@ -61488,14 +61488,14 @@ function $ke(e, t, n, r, i) {
} : null
];
}
-function eAe(e, t, n) {
- let r = t.providers || [], i = QV(n, "provider"), a = new Set(t.selected);
+function tAe(e, t, n) {
+ let r = t.providers || [], i = ZV(n, "provider"), a = new Set(t.selected);
return [
r.length ? {
title: "来源",
kind: "src",
active: r.some((e) => i.includes(e.value)),
- body: /* @__PURE__ */ (0, x.jsx)(tH, {
+ body: /* @__PURE__ */ (0, x.jsx)(eH, {
rows: r,
filterKey: "provider",
multi: !1,
@@ -61509,7 +61509,7 @@ function eAe(e, t, n) {
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, x.jsx)(iH, {
+ body: /* @__PURE__ */ (0, x.jsx)(rH, {
host: e,
filters: n,
commit: e.setFollowDuration
@@ -61519,7 +61519,7 @@ function eAe(e, t, n) {
title: "内容标签",
kind: "online",
active: t.tags.some((e) => a.has(e.value)),
- body: /* @__PURE__ */ (0, x.jsx)(nH, {
+ body: /* @__PURE__ */ (0, x.jsx)(tH, {
rows: t.tags,
host: e,
selected: a,
@@ -61528,19 +61528,19 @@ function eAe(e, t, n) {
} : null
];
}
-function $V(e, t) {
+function QV(e, t) {
let n = null;
try {
n = sessionStorage.getItem(`peach.sidebar.group.${e}`);
} catch {}
return n === null ? t : n === "open";
}
-function tAe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
- let o = (0, b.useRef)(null), s = (0, b.useRef)(null), [c, l] = (0, b.useState)(() => $V(e, n)), u = (0, b.useRef)(!1);
+function nAe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
+ let o = (0, b.useRef)(null), s = (0, b.useRef)(null), [c, l] = (0, b.useState)(() => QV(e, n)), u = (0, b.useRef)(!1);
(0, b.useLayoutEffect)(() => {
let t = o.current, r = s.current;
if (!t || !r) return;
- let i = u.current ? $V(e, n) : c;
+ let i = u.current ? QV(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) => {
@@ -61572,7 +61572,7 @@ function tAe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
children: /* @__PURE__ */ (0, x.jsx)("div", {
"data-sidebar-body": "",
id: `sidebar-group-${encodeURIComponent(e)}`,
- children: /* @__PURE__ */ (0, x.jsx)(eH.Provider, {
+ children: /* @__PURE__ */ (0, x.jsx)($V.Provider, {
value: d,
children: a
})
@@ -61581,15 +61581,15 @@ function tAe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
})]
});
}
-var eH = (0, b.createContext)(() => {});
-function nAe({ dot: e }) {
+var $V = (0, b.createContext)(() => {});
+function rAe({ dot: e }) {
return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, x.jsx)(ZD, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, x.jsx)("img", {
"data-sidebar-source-icon": "",
src: e.src,
alt: ""
}) : /* @__PURE__ */ (0, x.jsx)("i", { "data-sidebar-cost": e.cost }) : null;
}
-function tH({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a, onToggle: o = a.toggleChip }) {
+function eH({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a, onToggle: o = a.toggleChip }) {
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-sidebar-chips": "",
children: e.map((e) => {
@@ -61606,7 +61606,7 @@ function tH({ 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, x.jsx)(nAe, { dot: e.dot }),
+ /* @__PURE__ */ (0, x.jsx)(rAe, { dot: e.dot }),
/* @__PURE__ */ (0, x.jsx)("span", {
"data-sidebar-chip-label": "",
children: e.label
@@ -61621,8 +61621,8 @@ function tH({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a,
})
});
}
-function rAe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
- let u = (0, b.useContext)(eH), [d, f] = (0, b.useState)(null), [p, m] = (0, b.useState)(e);
+function iAe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
+ let u = (0, b.useContext)($V), [d, f] = (0, b.useState)(null), [p, m] = (0, b.useState)(e);
p !== e && (m(e), f(null));
let h = (0, b.useRef)(null), g = (0, b.useRef)(null), _ = !!d?.all, v = d ? d.rows : n;
return (0, b.useLayoutEffect)(() => {
@@ -61637,7 +61637,7 @@ function rAe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
e.body.classList.add("ui-fcollapse"), va(e.body, e.before, () => !!t?.open && !e.body.inert);
}
t(), requestAnimationFrame(t);
- }, [d, _]), /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(tH, {
+ }, [d, _]), /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(eH, {
rows: _ ? v : v.slice(0, i),
filterKey: a,
multi: !1,
@@ -61665,7 +61665,7 @@ function rAe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
children: /* @__PURE__ */ (0, x.jsx)(ZD, { name: "chevron-down" })
}) : null] });
}
-function nH({ rows: e, host: t, selected: n, badges: r }) {
+function tH({ rows: e, host: t, selected: n, badges: r }) {
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-sidebar-chips": "",
children: e.map((e) => /* @__PURE__ */ (0, x.jsxs)("button", {
@@ -61687,10 +61687,10 @@ function nH({ rows: e, host: t, selected: n, badges: r }) {
}, e.value))
});
}
-var rH = (e, t) => e ? Math.min(qV, Number(e) / 60) : t;
-function iH({ host: e, filters: t, commit: n = e.setDuration }) {
- let r = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [i, a] = (0, b.useState)(r), [o, s] = (0, b.useState)(() => [rH(t.dur_min, 0), rH(t.dur_max, qV)]), [c, l] = (0, b.useState)("max");
- i !== r && (a(r), s([rH(t.dur_min, 0), rH(t.dur_max, qV)]));
+var nH = (e, t) => e ? Math.min(KV, Number(e) / 60) : t;
+function rH({ host: e, filters: t, commit: n = e.setDuration }) {
+ let r = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [i, a] = (0, b.useState)(r), [o, s] = (0, b.useState)(() => [nH(t.dur_min, 0), nH(t.dur_max, KV)]), [c, l] = (0, b.useState)("max");
+ i !== r && (a(r), s([nH(t.dur_min, 0), nH(t.dur_max, KV)]));
let [u, d] = o, f = (0, b.useRef)(null), p = (0, b.useRef)(null), m = (0, b.useRef)(null), h = (0, b.useRef)(o);
h.current = o;
let g = (e, t) => {
@@ -61703,11 +61703,11 @@ function iH({ host: e, filters: t, commit: n = e.setDuration }) {
}, [n]), (0, b.useLayoutEffect)(() => {
let e = f.current;
if (!e) return;
- e.style.setProperty("--lo", `${u / qV * 100}%`), e.style.setProperty("--hi", `${d / qV * 100}%`);
+ e.style.setProperty("--lo", `${u / KV * 100}%`), e.style.setProperty("--hi", `${d / KV * 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 / qV * 100}%`, e.style.setProperty("--range-tip-shift", "0px");
+ e.style.left = `${n / KV * 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`);
});
@@ -61717,7 +61717,7 @@ function iH({ 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 >= qV ? "不限" : `${t} 分钟`
+ children: e === "max" && t >= KV ? "不限" : `${t} 分钟`
});
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-sidebar-duration": "",
@@ -61732,7 +61732,7 @@ function iH({ host: e, filters: t, commit: n = e.setDuration }) {
id: "durMin",
type: "range",
min: "0",
- max: qV,
+ max: KV,
step: "5",
value: u,
"aria-label": "最短时长(分钟)",
@@ -61743,7 +61743,7 @@ function iH({ host: e, filters: t, commit: n = e.setDuration }) {
id: "durMax",
type: "range",
min: "0",
- max: qV,
+ max: KV,
step: "5",
value: d,
"aria-label": "最长时长(分钟)",
@@ -61758,23 +61758,23 @@ function iH({ host: e, filters: t, commit: n = e.setDuration }) {
}
//#endregion
//#region src/configuration-skeleton.ts
-var iAe = (e, t) => `<section aria-label="${e}" class="flex w-full flex-col gap-2"><p class="w-full px-3 text-body-2-medium text-text-secondary">${e}</p><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${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">${YN({
+var aAe = (e, t) => `<section aria-label="${e}" class="flex w-full flex-col gap-2"><p class="w-full px-3 text-body-2-medium text-text-secondary">${e}</p><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${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">${JN({
label: "保存配置",
attrs: "disabled data-skeleton-action"
-})}</div></div></section>`, aH = (e, t = "", n = "ui-configuration-skeleton-toggle") => `<div class="flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5 border-b border-separator-border last:border-b-0"><div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div><span class="skeleton ${n}"></span></div>`;
-function aAe() {
+})}</div></div></section>`, iH = (e, t = "", n = "ui-configuration-skeleton-toggle") => `<div class="flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5 border-b border-separator-border last:border-b-0"><div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div><span class="skeleton ${n}"></span></div>`;
+function oAe() {
return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${[
"媒体库与入库",
"来源与订阅",
"下载渠道",
"网络与访问",
"应用与维护"
- ].map((e, t) => `<button type="button" tabindex="-1" aria-selected="${t === 0}">${e}</button>`).join("")}</div>`}<div class="flex flex-col gap-6">${iAe("媒体文件夹", `<div class="flex flex-col gap-3 py-4 pr-3">${aH("媒体文件夹", "", "ui-configuration-skeleton-select")}${aH("媒体库名称", "", "ui-configuration-skeleton-select")}</div>`)}</div></div></div>`;
+ ].map((e, t) => `<button type="button" tabindex="-1" aria-selected="${t === 0}">${e}</button>`).join("")}</div>`}<div class="flex flex-col gap-6">${aAe("媒体文件夹", `<div class="flex flex-col gap-3 py-4 pr-3">${iH("媒体文件夹", "", "ui-configuration-skeleton-select")}${iH("媒体库名称", "", "ui-configuration-skeleton-select")}</div>`)}</div></div></div>`;
}
//#endregion
//#region src/management-skeletons.ts
-var oH = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", sH = (e = "60%") => `<span class="${oH} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, cH = "disabled data-skeleton-action", lH = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
-function oAe() {
+var aH = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", oH = (e = "60%") => `<span class="${aH} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, sH = "disabled data-skeleton-action", cH = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
+function sAe() {
let e = [
"馆藏视频",
"看过",
@@ -61782,27 +61782,27 @@ function oAe() {
"使用空间"
].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="${oH} 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">${sH("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">${sH("6em")}</small>
- </div>`).join(""), t = (e) => `<section class="${lH}" 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">${sH("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="${aH} 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">${oH("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">${oH("6em")}</small>
+ </div>`).join(""), t = (e) => `<section class="${cH}" 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">${oH("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">${sH()}</span><b class="text-title-2-medium">${sH("3em")}</b><small class="text-caption-1-regular">${sH()}</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">${oH()}</span><b class="text-title-2-medium">${oH("3em")}</b><small class="text-caption-1-regular">${oH()}</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">账本当前快照 · ${sH("12em")}</p>
+ <p class="text-caption-1-regular text-text-secondary">账本当前快照 · ${oH("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="${lH}"><h3 class="text-title-2-medium">${e}</h3><div class="${oH} h-64"></div></section>`).join("")}</div>
+ ].map((e) => `<section class="${cH}"><h3 class="text-title-2-medium">${e}</h3><div class="${aH} h-64"></div></section>`).join("")}</div>
</div>
</div>
<section class="rounded-surface bg-background-secondary-default dark:bg-background-primary-default">
@@ -61811,11 +61811,11 @@ function oAe() {
"最近看过",
"标签来源"
].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="${oH} 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="${aH} h-7"></div>`).join("")}</div>
</section>
</div></div>`;
}
-function sAe() {
+function cAe() {
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 = [
"浏览记录",
"口味维度",
@@ -61823,20 +61823,20 @@ function sAe() {
"私有导出"
].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="${oH} 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">${sH("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">${sH("6em")}</small>
- </div>`).join(""), n = Array.from({ length: 6 }, () => `<div class="${oH} h-6"></div>`).join(""), r = (e) => `<section class="${lH}"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="${oH} 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="${aH} 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">${oH("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">${oH("6em")}</small>
+ </div>`).join(""), n = Array.from({ length: 6 }, () => `<div class="${aH} h-6"></div>`).join(""), r = (e) => `<section class="${cH}"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="${aH} 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">${XN("全部时间")}<span data-button-group data-split-button data-variant="primary">${YN({
+ <div class="flex flex-wrap items-center gap-2">${YN("全部时间")}<span data-button-group data-split-button data-variant="primary">${JN({
glyph: "compass",
label: "读取浏览器历史",
- attrs: cH
- })}${YN({
+ attrs: sH
+ })}${JN({
glyph: "chevron-down",
- attrs: cH
+ attrs: sH
})}</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>
@@ -61854,11 +61854,11 @@ function sAe() {
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">${sH("8em")}</small></div>
+ <small class="text-caption-1-regular">${oH("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="${lH}"><h3 class="text-title-2-medium text-text-primary">创作者线索来源</h3><div class="${oH} h-72 max-sm:h-48"></div></section>
+ <section class="${cH}"><h3 class="text-title-2-medium text-text-primary">创作者线索来源</h3><div class="${aH} 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([
"标签",
@@ -61866,128 +61866,128 @@ function sAe() {
"常访问网站",
"浏览候选"
])}</div>
- <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${oH} 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="${aH} h-7"></div>`).join("")}</div>
</section>
</div>
</div></div>`;
}
-function cAe() {
+function lAe() {
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="${oH} 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">${sH("70%")}</span>
- ${Array.from({ length: 3 }, () => `<span class="font-mono text-caption-1-regular leading-5">${sH("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">${sH("75%")}</span>
+ <span class="${aH} 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">${oH("70%")}</span>
+ ${Array.from({ length: 3 }, () => `<span class="font-mono text-caption-1-regular leading-5">${oH("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">${oH("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">${sH("5em")}</b><span class="font-mono text-caption-1-regular leading-5">${sH("8em")}</span>
+ <b class="text-title-2-medium">${oH("5em")}</b><span class="font-mono text-caption-1-regular leading-5">${oH("8em")}</span>
<span class="ml-auto flex flex-wrap gap-2 max-compact:ml-0 max-compact:w-full">${[
"留最大",
"留最长",
"整组回收"
- ].map((e) => YN({
+ ].map((e) => JN({
variant: "secondary",
size: "small",
label: e,
- attrs: cH
+ attrs: sH
})).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">${sH("4em")}</strong></div><p class="text-body-regular text-text-secondary">${sH("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">${oH("4em")}</strong></div><p class="text-body-regular text-text-secondary">${oH("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 ${cH} class="h-7.5 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 ${sH} class="h-7.5 rounded-full border border-separator-border px-3 text-body-2-medium">${e}</button>`).join("")}</div>
${t.repeat(2)}
</div></div>`;
}
-function lAe() {
+function uAe() {
let e = `<li class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card border border-separator-border flex flex-col gap-3 p-3">
- <div class="flex min-w-0 gap-4"><span class="${oH} 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">${sH("80%")}</h3><p class="text-body-2-regular">${sH("60%")}</p></div>
+ <div class="flex min-w-0 gap-4"><span class="${aH} 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">${oH("80%")}</h3><p class="text-body-2-regular">${oH("60%")}</p></div>
</div>
- <footer class="flex justify-end">${YN({
+ <footer class="flex justify-end">${JN({
variant: "secondary",
size: "small",
label: "查看版本",
- attrs: cH
+ attrs: sH
})}</footer>
</li>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
- ${ZN("待升级")}
+ ${XN("待升级")}
<ul class="card-grid-cover gap-5">${e.repeat(6)}</ul>
</div></div>`;
}
//#endregion
//#region src/board-skeleton.ts
-var uH = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, dH = () => `${uH("80%")}${uH("48%")}`, fH = (e, t) => e.repeat(t), pH = "disabled data-skeleton-action", mH = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, hH = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, uAe = "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", gH = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
+var lH = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, uH = () => `${lH("80%")}${lH("48%")}`, dH = (e, t) => e.repeat(t), fH = "disabled data-skeleton-action", pH = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, mH = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, dAe = "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", hH = () => `<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="${uAe}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${mH("3em")}</b></div>`).join("")}</div>`, _H = [
+].map((e) => `<div class="${dAe}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${pH("3em")}</b></div>`).join("")}</div>`, gH = [
["list", "关注列表"],
["add", "添加关注"],
["feeds", "JAV 订阅源"]
-], dAe = (e = "") => _H.some(([t]) => t === e) ? e : "list", vH = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${_H.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, yH = (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>`, fAe = ({ table: e, sort: t, dir: n }) => {
+], fAe = (e = "") => gH.some(([t]) => t === e) ? e : "list", _H = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${gH.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, vH = (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>`, pAe = ({ table: e, sort: t, dir: n }) => {
let r = nn.find(([e]) => e === t)[1];
- return `<div class="flex flex-wrap items-center gap-2 ui-follow-skeleton-toolbar"><span class="contents max-sm:flex max-sm:min-w-0 max-sm:flex-1 max-sm:flex-col"><h3 class="mr-auto text-title-2-medium text-text-primary">关注列表</h3><span class="text-body-2-regular text-text-secondary">${mH("132px")}</span></span>${YN({
+ return `<div class="flex flex-wrap items-center gap-2 ui-follow-skeleton-toolbar"><span class="contents max-sm:flex max-sm:min-w-0 max-sm:flex-1 max-sm:flex-col"><h3 class="mr-auto text-title-2-medium text-text-primary">关注列表</h3><span class="text-body-2-regular text-text-secondary">${pH("132px")}</span></span>${JN({
glyph: "refresh-cw",
label: "检查全部",
compact: !0,
- attrs: pH
- })}<span data-follow-toolbar-controls class="contents max-sm:flex max-sm:w-full max-sm:items-center max-sm:gap-2"><span data-button-group role="group">${YN({
+ attrs: fH
+ })}<span data-follow-toolbar-controls class="contents max-sm:flex max-sm:w-full max-sm:items-center max-sm:gap-2"><span data-button-group role="group">${JN({
variant: "ghost",
glyph: "layout-grid",
attrs: `aria-pressed="${!e}"`
- })}${YN({
+ })}${JN({
variant: "ghost",
glyph: "table",
attrs: `aria-pressed="${e}"`
- })}</span>${XN(r)}${YN({
+ })}</span>${YN(r)}${JN({
variant: "secondary",
glyph: n === "asc" ? "arrow-up" : "arrow-down"
- })}${e ? "" : YN({
+ })}${e ? "" : JN({
variant: "secondary",
glyph: "chevron-up",
label: "全部收起",
compact: !0,
- attrs: pH
+ attrs: fH
})}</span></div>`;
-}, bH = () => `<span class="flex shrink-0 items-center gap-1">${YN({
+}, yH = () => `<span class="flex shrink-0 items-center gap-1">${JN({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
- attrs: pH
-})}${YN({
+ attrs: fH
+})}${JN({
variant: "secondary",
size: "small",
glyph: "trash",
- attrs: pH
-})}</span>`, pAe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${yH()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${mH("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${hH(14, 14)}</span>${hH(48, 24)}<span data-follow-source-controls class="contents max-sm:flex max-sm:w-full max-sm:flex-wrap max-sm:items-center max-sm:gap-1.5"><span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary max-sm:mr-auto max-sm:text-caption-1-regular">${mH("113px")}</span>${bH()}</span></div>`, xH = (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>${hH(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${mH("92px")}</b>${YN({
+ attrs: fH
+})}</span>`, mAe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${vH()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${pH("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${mH(14, 14)}</span>${mH(48, 24)}<span data-follow-source-controls class="contents max-sm:flex max-sm:w-full max-sm:flex-wrap max-sm:items-center max-sm:gap-1.5"><span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary max-sm:mr-auto max-sm:text-caption-1-regular">${pH("113px")}</span>${yH()}</span></div>`, bH = (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>${mH(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${pH("92px")}</b>${JN({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
- attrs: pH
-})}<span data-follow-author-controls class="contents max-sm:flex max-sm:w-full max-sm:items-center max-sm:gap-2"><span class="flex shrink-0 items-center gap-1 max-sm:mr-auto">${hH(14, 14)}${hH(14, 14)}</span>${YN({
+ attrs: fH
+})}<span data-follow-author-controls class="contents max-sm:flex max-sm:w-full max-sm:items-center max-sm:gap-2"><span class="flex shrink-0 items-center gap-1 max-sm:mr-auto">${mH(14, 14)}${mH(14, 14)}</span>${JN({
variant: "secondary",
size: "small",
glyph: "check-check",
label: "全选",
- attrs: pH
-})}${YN({
+ attrs: fH
+})}${JN({
variant: "secondary",
size: "small",
glyph: "chevron-up",
label: "收起",
- attrs: pH
-})}</span></div><div data-source-divider>${fH(pAe(), e)}</div></section>`, mAe = () => {
+ attrs: fH
+})}</span></div><div data-source-divider>${dH(mAe(), e)}</div></section>`, hAe = () => {
try {
return Number(JSON.parse(localStorage.getItem("peach.settings.v1") || "{}").followPageSize) || 20;
} catch {
return 20;
}
-}, hAe = [
+}, gAe = [
["select", ""],
["author", "创作者"],
["source", "来源"],
@@ -61995,64 +61995,64 @@ var uH = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, dH
["status", "状态"],
["checked", "上次检查"],
["actions", ""]
-], gAe = {
+], _Ae = {
name: "author",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, _Ae = "<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>", vAe = (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>${hAe.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${gAe[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${_Ae}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${fH(`<tr>${[
- yH(),
- `<span class="flex min-w-0 items-center gap-2">${hH(32, 32, !0)}${mH("5em")}</span>`,
- mH("10em"),
- `<span class="flex items-center gap-1.5">${hH(14, 14)}${mH("4em")}</span>`,
- hH(48, 24),
- mH("113px"),
- bH()
-].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, yAe = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-2-regular text-text-secondary">${mH("111px")}</span>${XN(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${hH(204, 32)}</div>`, bAe = () => `<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">${mH("120px")}</h3>${[
+}, vAe = "<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>", yAe = (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>${gAe.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${_Ae[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${vAe}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${dH(`<tr>${[
+ vH(),
+ `<span class="flex min-w-0 items-center gap-2">${mH(32, 32, !0)}${pH("5em")}</span>`,
+ pH("10em"),
+ `<span class="flex items-center gap-1.5">${mH(14, 14)}${pH("4em")}</span>`,
+ mH(48, 24),
+ pH("113px"),
+ yH()
+].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, bAe = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-2-regular text-text-secondary">${pH("111px")}</span>${YN(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${mH(204, 32)}</div>`, xAe = () => `<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">${pH("120px")}</h3>${[
"72%",
"56%",
"64%",
"40%"
-].map((e) => `<span class="text-body-medium">${mH(e)}</span>`).join("")}</div>`, xAe = (e) => {
- let t = dAe(e.followTab);
- if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${gH()}<div class="flex flex-col gap-6">${vH(t)}<div class="flex flex-col gap-4">${bAe()}</div></div></div></div>`;
- let n = e.followLayout === "table", r = sn(e.followSort, e.followDir), i = e.followPageSize || mAe(), a = n ? vAe(i, r) : `${yH("全选本页")}<div class="flex flex-col gap-3">${xH(3)}${xH(4)}${xH(3)}</div>`;
- return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${gH()}<div class="flex flex-col gap-6">${vH(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"}">${fAe({
+].map((e) => `<span class="text-body-medium">${pH(e)}</span>`).join("")}</div>`, SAe = (e) => {
+ let t = fAe(e.followTab);
+ if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${hH()}<div class="flex flex-col gap-6">${_H(t)}<div class="flex flex-col gap-4">${xAe()}</div></div></div></div>`;
+ let n = e.followLayout === "table", r = sn(e.followSort, e.followDir), i = e.followPageSize || hAe(), a = n ? yAe(i, r) : `${vH("全选本页")}<div class="flex flex-col gap-3">${bH(3)}${bH(4)}${bH(3)}</div>`;
+ return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${hH()}<div class="flex flex-col gap-6">${_H(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"}">${pAe({
table: n,
...r
- })}${a}${yAe(n, i)}</div></div></div></div></div>`;
+ })}${a}${bAe(n, i)}</div></div></div></div></div>`;
};
-function SAe() {
- 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">${uH("85%")}${uH("65%")}${fH(dH(), 4)}</div></aside></div>`;
+function CAe() {
+ 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">${lH("85%")}${lH("65%")}${dH(uH(), 4)}</div></aside></div>`;
}
-function CAe(e, t = {}) {
+function wAe(e, t = {}) {
let n = "";
- if (e === "/stats") n = oAe();
- else if (e === "/jav") n = yEe(new URLSearchParams(location.search).get("tab") === "wants" ? "wants" : "discover");
- else if (e === "/taste") n = sAe();
- else if (e === "/follow-manage") n = xAe(t);
- else if (e === "/configuration") n = aAe();
+ if (e === "/stats") n = sAe();
+ else if (e === "/jav") n = bEe(new URLSearchParams(location.search).get("tab") === "wants" ? "wants" : "discover");
+ else if (e === "/taste") n = cAe();
+ else if (e === "/follow-manage") n = SAe(t);
+ else if (e === "/configuration") n = oAe();
else if (e === "/activity") n = `<div class="ui-activitypage">${[
"正在进行",
"被挡下的",
"最近完成"
- ].map((e) => `<section class="activitysection"><h3 class="geist-fieldset-title">${e}</h3><div class="ui-activity-runs"><article class="cleanupfieldset activity-run"><div class="geist-fieldset-content ui-skeleton-lines">${uH("35%")}${dH()}</div></article></div></section>`).join("")}</div>`;
- else if (e === "/duplicates") n = cAe();
- else if (e === "/quality-goals") n = lAe();
- else if (e === "/playlists") n = `<section class="ui-playlistpage"><header><div><h2>播放列表</h2><p>保存 Mix,按自己的顺序继续播放。</p></div><div class="playlistcreate ui-skeleton-lines"><span>新播放列表</span>${uH("200px")}</div></header><div class="ui-playlistcards">${fH(`<article class="card playlistcard"><div class="mixstack"><div class="pic skeleton"></div></div><div class="mixmeta"><span class="mav skeleton"></span><div class="mixcopy ui-skeleton-lines">${dH()}</div></div></article>`, 6)}</div></section>`;
+ ].map((e) => `<section class="activitysection"><h3 class="geist-fieldset-title">${e}</h3><div class="ui-activity-runs"><article class="cleanupfieldset activity-run"><div class="geist-fieldset-content ui-skeleton-lines">${lH("35%")}${uH()}</div></article></div></section>`).join("")}</div>`;
+ else if (e === "/duplicates") n = lAe();
+ else if (e === "/quality-goals") n = uAe();
+ else if (e === "/playlists") n = `<section class="ui-playlistpage"><header><div><h2>播放列表</h2><p>保存 Mix,按自己的顺序继续播放。</p></div><div class="playlistcreate ui-skeleton-lines"><span>新播放列表</span>${lH("200px")}</div></header><div class="ui-playlistcards">${dH(`<article class="card playlistcard"><div class="mixstack"><div class="pic skeleton"></div></div><div class="mixmeta"><span class="mav skeleton"></span><div class="mixcopy ui-skeleton-lines">${uH()}</div></div></article>`, 6)}</div></section>`;
else return "";
return `<div class="board-page-skeleton" data-skeleton="board${e}" role="status" aria-label="正在读取页面"><div aria-hidden="true" inert>${n}</div></div>`;
}
//#endregion
//#region src/react/follow-detail/follow-detail.ts
-var SH = (e) => ["follow-item", e], wAe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, TAe = "/api/follow/save", EAe = "/api/follow/media/hide", CH = class extends Error {
+var xH = (e) => ["follow-item", e], TAe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, EAe = "/api/follow/save", DAe = "/api/follow/media/hide", SH = class extends Error {
constructor() {
super("这条关注内容已不存在");
}
};
-async function wH(e, t) {
- let n = await z(wAe(e), t);
+async function CH(e, t) {
+ let n = await z(TAe(e), t);
for (let t of n.groups || []) {
let r = Yr(t).find((t) => t.id === e);
if (r) return {
@@ -62062,9 +62062,9 @@ async function wH(e, t) {
aliases: n.author_aliases || []
};
}
- throw new CH();
+ throw new SH();
}
-function DAe(e) {
+function OAe(e) {
for (let [, t] of V.getQueriesData({ queryKey: ["follow-item"] })) {
if (!t?.group) continue;
let n = Yr(t.group).find((t) => t.id === e);
@@ -62075,20 +62075,20 @@ function DAe(e) {
}
return null;
}
-async function TH(e, t) {
- let n = SH(e.id), r = Xr(e.id), i = V.getQueryData(Wr) ? null : V.fetchQuery({
+async function wH(e, t) {
+ let n = xH(e.id), r = Xr(e.id), i = V.getQueryData(Wr) ? null : V.fetchQuery({
queryKey: Wr,
queryFn: () => Gr(t)
}), a = r ? {
...r,
item: r.item
- } : V.getQueryData(n) ?? DAe(e.id);
+ } : V.getQueryData(n) ?? OAe(e.id);
a ? V.setQueryData(n, a) : await V.fetchQuery({
queryKey: n,
- queryFn: () => wH(e.id, t)
+ queryFn: () => CH(e.id, t)
}), await i;
}
-function OAe(e, t, n, r) {
+function kAe(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 && ii(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,
@@ -62103,32 +62103,32 @@ function OAe(e, t, n, r) {
src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""
};
}
-var kAe = (e) => Yr(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), AAe = {
+var AAe = (e) => Yr(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), jAe = {
"gofile.io": "Gofile",
"pixeldrain.com": "Pixeldrain",
"mega.nz": "MEGA",
"mega.io": "MEGA",
"mediafire.com": "MediaFire",
"drive.google.com": "Google Drive"
-}, jAe = {
+}, MAe = {
gofile: "Gofile",
pixeldrain: "Pixeldrain",
mega: "MEGA",
mediafire: "MediaFire",
google_drive: "Google Drive"
};
-function MAe(e) {
+function NAe(e) {
try {
let t = new URL(e).hostname.replace(/^www\./, "");
- return AAe[t] || t;
+ return jAe[t] || t;
} catch {
return "外部文件页";
}
}
-function EH(e, t) {
- return jAe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
+function TH(e, t) {
+ return MAe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
}
-function NAe(e, t, n = "") {
+function PAe(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;
@@ -62137,54 +62137,54 @@ function NAe(e, t, n = "") {
title: e.is_release && t.author ? `${t.author}:${i}` : i
};
}
-var PAe = (e) => String(e.name || "").trim(), DH = (e, t) => e.tag_types?.[t] || "unknown", FAe = /* @__PURE__ */ new Set([
+var FAe = (e) => String(e.name || "").trim(), EH = (e, t) => e.tag_types?.[t] || "unknown", IAe = /* @__PURE__ */ new Set([
"artist",
"character",
"copyright",
"metadata",
"unknown"
]);
-function IAe(e, t) {
- let n = DH(e, t);
- return `r34-${FAe.has(n) ? n : "general"}`;
+function LAe(e, t) {
+ let n = EH(e, t);
+ return `r34-${IAe.has(n) ? n : "general"}`;
}
-var OH = [
+var DH = [
"copyright",
"character",
"artist",
"general",
"metadata"
];
-function LAe(e, t) {
+function RAe(e, t) {
let n = e.detail_tags || e.tags || [], r = (t) => {
- let n = OH.indexOf(DH(e, t));
- return n < 0 ? OH.length : n;
+ let n = DH.indexOf(EH(e, t));
+ return n < 0 ? DH.length : n;
};
return [...n].sort((e, n) => r(e) - r(n) || t(e).localeCompare(t(n)));
}
-function kH(e, t) {
+function OH(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 RAe = (e, t) => ({
+var zAe = (e, t) => ({
sources: e.sources,
aliases: e.aliases,
credentials: t
-}), AH = (e) => e?.size ? { size: e.size } : {};
-function zAe(e, t) {
+}), kH = (e) => e?.size ? { size: e.size } : {};
+function BAe(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: EH(t, e),
- ...AH(t)
+ source: TH(t, e),
+ ...kH(t)
})) : r === "image" && i ? [{
src: i,
thumb: e.thumb_url || i,
name: e.title,
- source: EH(a, e),
- ...AH(a)
+ source: TH(a, e),
+ ...kH(a)
}] : e.thumb_url ? [{
src: e.thumb_url,
thumb: e.thumb_url,
@@ -62192,7 +62192,7 @@ function zAe(e, t) {
source: e.provider_label || e.provider || "在线图片"
}] : [];
}
-var BAe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", jH = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => uo(e, {
+var VAe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", AH = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => uo(e, {
variant: r || (t ? "cards" : "panel"),
className: n,
gridClass: s,
@@ -62200,7 +62200,7 @@ var BAe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", jH
...i ? { count: i } : {},
...a === void 0 ? {} : { fill: a },
...o ? { cardRatio: o } : {}
-}), VAe = [
+}), HAe = [
"元数据字段",
"创作者标签",
"厂牌 Logo",
@@ -62210,40 +62210,40 @@ var BAe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", jH
"FC2 评论标记",
"FC2 跨号相似",
"片尾/出处证据"
-], HAe = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${L(e)}">
+], UAe = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${L(e)}">
<div class="reviewcontrols" data-section-nav><h2 class="review-category-title">复核分类</h2>
- <div class="reviewtabs" data-section-items>${VAe.map((e, t) => `<button type="button" disabled aria-selected="${t === 0}">${L(e)}<span class="skeleton reviewcountskeleton" aria-hidden="true"></span></button>`).join("")}</div></div>
+ <div class="reviewtabs" data-section-items>${HAe.map((e, t) => `<button type="button" disabled aria-selected="${t === 0}">${L(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>`, UAe = {
- "/data-cleanup": () => aP(),
- "/resource-sync": () => aP(),
- "/review": () => HAe(),
+ <section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, WAe = {
+ "/data-cleanup": () => iP(),
+ "/resource-sync": () => iP(),
+ "/review": () => UAe(),
"/diagnostics": () => lo(),
"/scraping": () => `<div class="scraping-page"><p>高清图片可能要经代理才能下载,先检查连接。</p>
- ${jH("正在读取采集来源", {
+ ${AH("正在读取采集来源", {
cards: !0,
count: 4,
fill: !1,
className: "cleanup-skeleton"
})}</div>`
};
-function MH(e, { followLayout: t, followSort: n, followDir: r }) {
- return CAe(e, {
+function jH(e, { followLayout: t, followSort: n, followDir: r }) {
+ return wAe(e, {
followLayout: t,
...e === "/follow-manage" ? {
followSort: n,
followDir: r
} : {}
- }) || (UAe[e] ?? (() => jH("正在读取页面")))();
+ }) || (WAe[e] ?? (() => AH("正在读取页面")))();
}
-var NH = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
-function PH(e, t) {
- let n = e.querySelector("[data-skeleton]")?.dataset.skeleton || "", r = NH(t);
+var MH = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
+function NH(e, t) {
+ let n = e.querySelector("[data-skeleton]")?.dataset.skeleton || "", r = MH(t);
(!r || r !== n) && (e.innerHTML = t, yo(e));
}
//#endregion
//#region src/react/components/mix-queue.tsx
-function FH({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
+function PH({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
let c = (0, b.useRef)(null), l = (0, b.useCallback)((e) => {
c.current = e, typeof a == "function" ? a(e) : a && (a.current = e);
}, [a]);
@@ -62279,7 +62279,7 @@ function FH({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a,
})]
});
}
-function IH({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
+function FH({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
let s = /* @__PURE__ */ (0, x.jsx)("span", {
"data-mix-item-text": "",
children: a
@@ -62302,7 +62302,7 @@ function IH({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }
}), r]
});
}
-var WAe = ({ label: e, count: t }) => /* @__PURE__ */ (0, x.jsxs)("h3", {
+var GAe = ({ label: e, count: t }) => /* @__PURE__ */ (0, x.jsxs)("h3", {
"data-mix-group-label": "",
children: [
e,
@@ -62312,7 +62312,7 @@ var WAe = ({ label: e, count: t }) => /* @__PURE__ */ (0, x.jsxs)("h3", {
});
//#endregion
//#region src/react/components/related-section.tsx
-function LH({ children: e, wireDrag: t, busy: n, ...r }) {
+function IH({ children: e, wireDrag: t, busy: n, ...r }) {
let i = (0, b.useCallback)((e) => {
e && (yo(e), t(e));
}, [t]);
@@ -62333,7 +62333,7 @@ function LH({ children: e, wireDrag: t, busy: n, ...r }) {
}
//#endregion
//#region src/react/components/detail-continuation.tsx
-function RH({ queue: e, children: t }) {
+function LH({ queue: e, children: t }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
"data-detail-continuation": "",
children: [e, t]
@@ -62341,14 +62341,14 @@ function RH({ queue: e, children: t }) {
}
//#endregion
//#region src/react/follow-detail/follow-related.ts
-var GAe = (e, t, n) => [
+var KAe = (e, t, n) => [
"follow-feed",
"related",
e,
t,
n
];
-function zH(e, t, n, r) {
+function RH(e, t, n, r) {
let i = new Set((t.group ? Yr(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 = Yr(e);
@@ -62363,7 +62363,7 @@ function zH(e, t, n, r) {
};
}).sort((e, t) => Number(t.sameAuthor) - Number(e.sameAuthor) || t.common - e.common || e.order - t.order).slice(0, r).map((e) => e.group);
}
-async function KAe(e, t, n, r) {
+async function qAe(e, t, n, r) {
let i = e.sources.find((t) => t.id === e.item.source_id)?.author_key || "", a = {
...ri(i),
status: "new",
@@ -62377,29 +62377,29 @@ async function KAe(e, t, n, r) {
}, t), r);
return o.push(n), n;
}, c = await s(i, 0);
- return zH(o, e, t, n).length < n && c.has_more && await s(i, (c.offset || 0) + 100), i && zH(o, e, t, n).length < n && await s("", 0), {
+ return RH(o, e, t, n).length < n && c.has_more && await s(i, (c.offset || 0) + 100), i && RH(o, e, t, n).length < n && await s("", 0), {
pages: o,
pageParams: o.map((e) => e.offset || 0)
};
}
//#endregion
//#region src/react/follow-detail/follow-detail-page.tsx
-var BH = (e) => Number(e) > 0, qAe = ({ name: e }) => /* @__PURE__ */ (0, x.jsx)("span", {
+var zH = (e) => Number(e) > 0, JAe = ({ name: e }) => /* @__PURE__ */ (0, x.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: I(e) }
-}), VH = I("external-link", "ui-externalmark");
-function JAe(e) {
+}), BH = I("external-link", "ui-externalmark");
+function YAe(e) {
let { id: t, actions: n } = e, r = dt({
- queryKey: SH(t),
- queryFn: ({ signal: e }) => wH(t, e)
+ queryKey: xH(t),
+ queryFn: ({ signal: e }) => CH(t, e)
}), i = dt({
queryKey: Wr,
queryFn: ({ signal: e }) => Gr(e)
}), a = (0, b.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, b.useState)(e.mediaIndex);
- return r.data ? /* @__PURE__ */ (0, x.jsx)(ZAe, {
+ return r.data ? /* @__PURE__ */ (0, x.jsx)(QAe, {
...e,
data: r.data,
- context: RAe(r.data, a),
+ context: zAe(r.data, a),
mediaIndex: o,
onMedia: s
}) : /* @__PURE__ */ (0, x.jsx)("div", {
@@ -62408,9 +62408,9 @@ function JAe(e) {
children: /* @__PURE__ */ (0, x.jsxs)("div", {
"data-stage-media": "",
"data-follow-detail-media": "none",
- children: [/* @__PURE__ */ (0, x.jsx)(HH, { onClose: n.close }), /* @__PURE__ */ (0, x.jsx)("div", {
+ children: [/* @__PURE__ */ (0, x.jsx)(VH, { onClose: n.close }), /* @__PURE__ */ (0, x.jsx)("div", {
"data-follow-detail-placeholder": "",
- children: r.isError ? YAe(r.error) ? /* @__PURE__ */ (0, x.jsx)(XAe, { onBack: n.close }) : /* @__PURE__ */ (0, x.jsx)(Yj, {
+ children: r.isError ? XAe(r.error) ? /* @__PURE__ */ (0, x.jsx)(ZAe, { onBack: n.close }) : /* @__PURE__ */ (0, x.jsx)(Jj, {
message: _t(r.error),
onRetry: () => void r.refetch()
}) : null
@@ -62418,8 +62418,8 @@ function JAe(e) {
})
});
}
-var YAe = (e) => e instanceof CH || e instanceof en && e.status === 404;
-function XAe({ onBack: e }) {
+var XAe = (e) => e instanceof SH || e instanceof en && e.status === 404;
+function ZAe({ onBack: e }) {
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-follow-detail-gone": "",
onClick: (t) => {
@@ -62428,7 +62428,7 @@ function XAe({ onBack: e }) {
dangerouslySetInnerHTML: { __html: Ja("这条关注内容已不存在,可能已被来源删除或已清理。", { actionLabel: "回到关注" }) }
});
}
-var HH = ({ onClose: e }) => /* @__PURE__ */ (0, x.jsx)("button", {
+var VH = ({ onClose: e }) => /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -62437,8 +62437,8 @@ var HH = ({ onClose: e }) => /* @__PURE__ */ (0, x.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: I("x") }
});
-function ZAe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
- let { item: c, group: l } = e, u = OAe(c, l, n, i), d = rje(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, b.useState)({
+function QAe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
+ let { item: c, group: l } = e, u = kAe(c, l, n, i), d = ije(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, b.useState)({
key: "",
kind: ""
}), h = {
@@ -62458,20 +62458,20 @@ function ZAe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
c,
u.kind
]);
- let g = !u.embedded.length && u.collection ? kAe(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, x.jsx)(KH, {
+ let g = !u.embedded.length && u.collection ? AAe(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, x.jsx)(GH, {
item: c,
current: u.selected.index,
helpers: o,
actions: s,
onMedia: r
- }) : u.collection ? g ? /* @__PURE__ */ (0, x.jsx)(KH, {
+ }) : u.collection ? g ? /* @__PURE__ */ (0, x.jsx)(GH, {
item: g,
current: null,
helpers: o,
actions: s,
onMedia: r,
currentId: c.id
- }) : /* @__PURE__ */ (0, x.jsx)(eje, {
+ }) : /* @__PURE__ */ (0, x.jsx)(tje, {
group: u.collection,
itemId: c.id,
helpers: o,
@@ -62481,14 +62481,14 @@ function ZAe({ 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, x.jsx)($Ae, {
+ children: [/* @__PURE__ */ (0, x.jsx)(eje, {
item: c,
media: u,
helpers: o,
actions: s,
onMedia: r,
issues: h
- }, f), /* @__PURE__ */ (0, x.jsx)(tje, {
+ }, f), /* @__PURE__ */ (0, x.jsx)(nje, {
item: c,
data: e,
context: t,
@@ -62498,9 +62498,9 @@ function ZAe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
helpers: o,
actions: s
})]
- }), /* @__PURE__ */ (0, x.jsx)(RH, {
+ }), /* @__PURE__ */ (0, x.jsx)(LH, {
queue: _,
- children: a > 0 ? /* @__PURE__ */ (0, x.jsx)(QAe, {
+ children: a > 0 ? /* @__PURE__ */ (0, x.jsx)($Ae, {
data: e,
media: u.kind === "image" ? "images" : u.kind === "video" ? "videos" : i,
limit: a,
@@ -62510,33 +62510,33 @@ function ZAe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
}) : null
})] });
}
-function QAe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
+function $Ae({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
let o = dt({
- queryKey: GAe(e.item.id, t, n),
- queryFn: ({ signal: r }) => KAe(e, t, n, r)
- }), [s] = (0, b.useState)(() => jH("正在读取推荐", {
+ queryKey: KAe(e.item.id, t, n),
+ queryFn: ({ signal: r }) => qAe(e, t, n, r)
+ }), [s] = (0, b.useState)(() => AH("正在读取推荐", {
cards: !0,
className: "related-skeleton"
})), c = (0, b.useMemo)(() => ({
openDetail: a.openItem,
openAuthor: a.openAuthor,
canFlip: () => !1
- }), [a]), l = zH(o.data?.pages || [], e, t, n);
+ }), [a]), l = RH(o.data?.pages || [], e, t, n);
if (o.isError || o.data && !l.length) return null;
let u = o.data?.pages.at(-1)?.sources || e.sources, d = {
...r,
sources: u,
aliases: o.data?.pages.at(-1)?.author_aliases || r.aliases
};
- return /* @__PURE__ */ (0, x.jsx)(LH, {
+ return /* @__PURE__ */ (0, x.jsx)(IH, {
"data-follow-related": "",
wireDrag: i.wireDrag,
busy: o.isPending,
- children: o.data ? l.map((e) => /* @__PURE__ */ (0, x.jsx)(VF, {
+ children: o.data ? l.map((e) => /* @__PURE__ */ (0, x.jsx)(BF, {
variant: "next",
group: e,
media: t,
- authorSources: kH(e.primary, u),
+ authorSources: OH(e.primary, u),
context: d,
selected: !1,
selectMode: !1,
@@ -62549,8 +62549,8 @@ function QAe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }
})
});
}
-function $Ae({ 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, b.useRef)(null), [p, m] = (0, b.useState)(null), h = zAe(e, t), g = o?.thumb_url || e.thumb_url || "", _ = e.playable && a === "video", v = e.playable && a === "image" ? s : e.thumb_url || "", y = e.playable && a === "image" && g && g !== s ? g : "", [S, C] = (0, b.useState)(v), w = (0, b.useRef)({
+function eje({ 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, b.useRef)(null), [p, m] = (0, b.useState)(null), h = BAe(e, t), g = o?.thumb_url || e.thumb_url || "", _ = e.playable && a === "video", v = e.playable && a === "image" ? s : e.thumb_url || "", y = e.playable && a === "image" && g && g !== s ? g : "", [S, C] = (0, b.useState)(v), w = (0, b.useRef)({
item: e,
selected: o
}), T = (0, b.useRef)(i.failed);
@@ -62580,14 +62580,14 @@ function $Ae({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
"--follow-image-arrow-inset": p === null ? void 0 : `${p}px`
},
children: [
- /* @__PURE__ */ (0, x.jsx)(HH, { onClose: n.close }),
+ /* @__PURE__ */ (0, x.jsx)(VH, { onClose: n.close }),
_ ? null : v ? /* @__PURE__ */ (0, x.jsx)("img", {
"data-follow-detail-poster": "",
"data-zoomable": h.length ? "" : void 0,
src: S,
alt: e.title,
referrerPolicy: "no-referrer",
- onClick: h.length ? () => void MF(Math.max(0, l), h) : void 0,
+ onClick: h.length ? () => void jF(Math.max(0, l), h) : void 0,
onError: () => {
y && S !== y ? (C(y), i.thumbFallback()) : i.failed();
}
@@ -62595,7 +62595,7 @@ function $Ae({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
"data-follow-detail-placeholder": "",
children: [/* @__PURE__ */ (0, x.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: wj(e.resource_provider || e.provider) }
+ dangerouslySetInnerHTML: { __html: Cj(e.resource_provider || e.provider) }
}), /* @__PURE__ */ (0, x.jsx)("span", { children: "没有可用预览" })]
}),
u ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
@@ -62639,11 +62639,11 @@ function $Ae({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
]
});
}
-var UH = ({ kind: e }) => /* @__PURE__ */ (0, x.jsx)("span", {
+var HH = ({ kind: e }) => /* @__PURE__ */ (0, x.jsx)("span", {
"data-follow-nothumb": "",
dangerouslySetInnerHTML: { __html: I(e === "image" ? "image-off" : "play") }
});
-function WH({ src: e }) {
+function UH({ src: e }) {
let [t, n] = (0, b.useState)(!1);
return t ? null : /* @__PURE__ */ (0, x.jsx)("img", {
src: e,
@@ -62653,27 +62653,27 @@ function WH({ src: e }) {
onError: () => n(!0)
});
}
-function GH(e) {
+function WH(e) {
return (0, b.useCallback)((t) => {
t && e.wireDrag(t);
}, [e]);
}
-function eje({ group: e, itemId: t, helpers: n, actions: r }) {
- let i = ii(e), a = GH(n);
- return /* @__PURE__ */ (0, x.jsx)(FH, {
+function tje({ group: e, itemId: t, helpers: n, actions: r }) {
+ let i = ii(e), a = WH(n);
+ return /* @__PURE__ */ (0, x.jsx)(PH, {
kind: "collection",
"data-follow-queue": "",
title: "视频合集",
onClose: r.close,
listRef: a,
- summary: `${Ej(e.primary)} · ${i.length} 个视频`,
+ summary: `${Tj(e.primary)} · ${i.length} 个视频`,
children: i.map((n) => {
- let i = e.duplicates.includes(n), a = NAe(e, n, i ? n.provider_label : ""), o = i ? wj(n.provider, n.provider_label) : "";
- return /* @__PURE__ */ (0, x.jsxs)(IH, {
+ let i = e.duplicates.includes(n), a = PAe(e, n, i ? n.provider_label : ""), o = i ? Cj(n.provider, n.provider_label) : "";
+ return /* @__PURE__ */ (0, x.jsxs)(FH, {
current: n.id === t,
"data-follow-queue-item": n.id,
onClick: () => r.openItem(n.id),
- pic: /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, x.jsx)(WH, { src: n.thumb_url }) : /* @__PURE__ */ (0, x.jsx)(UH, { kind: "video" }), BH(n.duration) ? /* @__PURE__ */ (0, x.jsx)("i", {
+ pic: /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, x.jsx)(UH, { src: n.thumb_url }) : /* @__PURE__ */ (0, x.jsx)(HH, { kind: "video" }), zH(n.duration) ? /* @__PURE__ */ (0, x.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: Vt(n.duration)
@@ -62691,15 +62691,15 @@ function eje({ group: e, itemId: t, helpers: n, actions: r }) {
children: a.label
}), /* @__PURE__ */ (0, x.jsx)("time", {
dateTime: n.published_at || "",
- children: Fj(n)
+ children: Pj(n)
})]
})]
}, n.id);
})
});
}
-function KH({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
- let o = e.media_items || [], s = GH(r), c = [];
+function GH({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
+ let o = e.media_items || [], s = WH(r), c = [];
o.forEach((e) => {
let t = e.resource_group || "ungrouped", n = c.find((e) => e.key === t);
n || (n = {
@@ -62709,26 +62709,26 @@ function KH({ 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, x.jsx)(FH, {
+ return /* @__PURE__ */ (0, x.jsx)(PH, {
kind: "media",
"data-follow-queue": "",
title: "多媒体",
onClose: i.close,
listRef: s,
- summary: `${Ej(e)} · ${o.length} 个媒体`,
- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, x.jsx)(WAe, {
+ summary: `${Tj(e)} · ${o.length} 个媒体`,
+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, x.jsx)(GAe, {
label: n.label,
count: n.items.length
- }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, x.jsxs)(IH, {
+ }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, x.jsxs)(FH, {
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, x.jsx)(WH, { src: n.thumb_url }) : /* @__PURE__ */ (0, x.jsx)(UH, { kind: n.media_kind || "" }),
+ pic: n.thumb_url ? /* @__PURE__ */ (0, x.jsx)(UH, { src: n.thumb_url }) : /* @__PURE__ */ (0, x.jsx)(HH, { kind: n.media_kind || "" }),
children: [/* @__PURE__ */ (0, x.jsx)("b", {
"data-middle-truncate": "",
- children: PAe(n)
+ children: FAe(n)
}), /* @__PURE__ */ (0, x.jsx)("span", {
"data-truncate-end": "",
children: n.media_kind === "image" ? "图片" : "视频"
@@ -62736,13 +62736,13 @@ function KH({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, n.index))])
});
}
-function tje({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
+function nje({ 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 = Mj(d, e), p = Aj(e, kH(e, t.sources), n), m = p.credited ? "" : e.author && It(e.author) !== It(p.author) ? e.author : "", h = Nj(e, n), g = LAe(e, o.tagLabel), _ = e.status === "saved", { busy: v } = i, y = (e) => v.has(e) ? {
+ }, f = jj(d, e), p = kj(e, OH(e, t.sources), n), m = p.credited ? "" : e.author && It(e.author) !== It(p.author) ? e.author : "", h = Mj(e, n), g = RAe(e, o.tagLabel), _ = e.status === "saved", { busy: v } = i, y = (e) => v.has(e) ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
@@ -62758,7 +62758,7 @@ function tje({ 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: jj(d, e) + L(Ej(e)) }
+ dangerouslySetInnerHTML: { __html: Aj(d, e) + L(Tj(e)) }
}), e.url ? /* @__PURE__ */ (0, x.jsx)("a", {
"data-follow-origin": "",
href: e.url,
@@ -62766,7 +62766,7 @@ function tje({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
rel: "noreferrer noopener",
title: "打开来源页面",
"aria-label": "打开来源页面",
- dangerouslySetInnerHTML: { __html: VH }
+ dangerouslySetInnerHTML: { __html: BH }
}) : null]
}),
/* @__PURE__ */ (0, x.jsxs)("div", {
@@ -62774,8 +62774,8 @@ function tje({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-stage-meta": "",
"data-reveal-line": "",
children: [
- /* @__PURE__ */ (0, x.jsx)("span", { children: Fj(e) }),
- BH(e.duration) ? /* @__PURE__ */ (0, x.jsx)("span", { children: Vt(e.duration) }) : null,
+ /* @__PURE__ */ (0, x.jsx)("span", { children: Pj(e) }),
+ zH(e.duration) ? /* @__PURE__ */ (0, x.jsx)("span", { children: Vt(e.duration) }) : null,
f ? /* @__PURE__ */ (0, x.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: f }
@@ -62792,7 +62792,7 @@ function tje({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
children: "创作者"
}), /* @__PURE__ */ (0, x.jsx)("div", {
"data-id-row": "",
- children: p.entityName ? /* @__PURE__ */ (0, x.jsxs)(zF, {
+ children: p.entityName ? /* @__PURE__ */ (0, x.jsxs)(RF, {
name: p.entityName,
actions: s,
"data-id-cell": "creator",
@@ -62824,7 +62824,7 @@ function tje({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
children: [m ? /* @__PURE__ */ (0, x.jsxs)("span", { children: ["发布者 ", m] }) : null, p.credited ? /* @__PURE__ */ (0, x.jsxs)("span", { children: ["署名含 ", p.credited] }) : null]
}) : null]
}),
- e.summary ? /* @__PURE__ */ (0, x.jsx)(nje, { text: e.summary }, e.id) : null,
+ e.summary ? /* @__PURE__ */ (0, x.jsx)(rje, { text: e.summary }, e.id) : null,
h ? /* @__PURE__ */ (0, x.jsx)("p", {
"data-follow-media-issue": "",
children: h
@@ -62847,9 +62847,9 @@ function tje({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
href: e,
target: "_blank",
rel: "noreferrer noopener",
- children: [MAe(e), /* @__PURE__ */ (0, x.jsx)("span", {
+ children: [NAe(e), /* @__PURE__ */ (0, x.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: VH }
+ dangerouslySetInnerHTML: { __html: BH }
})]
}, e))
}) : null,
@@ -62949,7 +62949,7 @@ function tje({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"aria-label": `恢复显示 ${e.name || ""}`,
...y(`restore:${e.index}`),
onClick: () => i.restore(e.index),
- children: [e.thumb_url ? /* @__PURE__ */ (0, x.jsx)(WH, { src: e.thumb_url }) : /* @__PURE__ */ (0, x.jsx)(qAe, { name: "image-off" }), /* @__PURE__ */ (0, x.jsx)("i", { dangerouslySetInnerHTML: { __html: I("rotate-ccw") } })]
+ children: [e.thumb_url ? /* @__PURE__ */ (0, x.jsx)(UH, { src: e.thumb_url }) : /* @__PURE__ */ (0, x.jsx)(JAe, { name: "image-off" }), /* @__PURE__ */ (0, x.jsx)("i", { dangerouslySetInnerHTML: { __html: I("rotate-ccw") } })]
}, e.index))
})]
}) : null,
@@ -62963,7 +62963,7 @@ function tje({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-follow-detail-tags": "",
children: g.map((t) => /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
- "data-tag-cat": IAe(e, t),
+ "data-tag-cat": LAe(e, t),
"data-follow-tag": t,
onClick: () => s.openTag(t),
children: o.tagLabel(t)
@@ -62973,7 +62973,7 @@ function tje({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
})
});
}
-function nje({ text: e }) {
+function rje({ text: e }) {
let t = (0, b.useRef)(null), [n, r] = (0, b.useState)(!1), [i, a] = (0, b.useState)(!1);
return (0, b.useLayoutEffect)(() => {
let e = t.current;
@@ -62996,8 +62996,8 @@ function nje({ text: e }) {
children: n ? "收起" : "展开"
}) : null] });
}
-function rje(e, t, n) {
- let r = e.id, i = SH(r), [a, o] = (0, b.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, b.useState)(""), l = (e, t) => o((n) => {
+function ije(e, t, n) {
+ let r = e.id, i = xH(r), [a, o] = (0, b.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, b.useState)(""), l = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), u = (e) => {
@@ -63016,7 +63016,7 @@ function rje(e, t, n) {
to: e
}),
onSuccess: (e, { to: n, was: i }) => {
- u(n), c(""), n === "ignored" && hB(), t.toast(BAe(n), { undo: i === "saved" ? void 0 : async () => {
+ u(n), c(""), n === "ignored" && mB(), t.toast(VAe(n), { undo: i === "saved" ? void 0 : async () => {
await B(Tn, {
item: r,
to: i
@@ -63026,7 +63026,7 @@ function rje(e, t, n) {
onError: d,
onSettled: (e, t, { to: n }) => l(n, !1)
}), p = ft({
- mutationFn: () => B(TAe, { item: r }),
+ mutationFn: () => B(EAe, { item: r }),
onSuccess: () => {
u("saved"), c(""), t.toast("已保存到账本");
},
@@ -63034,7 +63034,7 @@ function rje(e, t, n) {
onSettled: () => l("save", !1)
}), m = ft({
mutationFn: async ({ index: e, hidden: t }) => {
- await B(EAe, {
+ await B(DAe, {
item: r,
media: e,
hidden: t
@@ -63050,12 +63050,12 @@ function rje(e, t, n) {
onError: d,
onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)
}), h = dt({
- queryKey: jEe(r),
- queryFn: ({ signal: e }) => NEe(r, e)
+ queryKey: MEe(r),
+ queryFn: ({ signal: e }) => PEe(r, e)
}).data?.want ?? null, g = ft({
- mutationFn: async (e) => (e ? await mB([e.id]) : await pB({ follow: r }), !e),
+ mutationFn: async (e) => (e ? await pB([e.id]) : await fB({ follow: r }), !e),
onSuccess: (e) => {
- c(""), t.toast(e ? "已加入想要" : "已取消想要"), hB();
+ c(""), t.toast(e ? "已加入想要" : "已取消想要"), mB();
},
onError: d,
onSettled: () => l("want", !1)
@@ -63095,25 +63095,25 @@ function rje(e, t, n) {
}
//#endregion
//#region src/react/components/overlay-host.ts
-function ije(e) {
+function aje(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 aje(e) {
+function oje(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return ije(n ?? t.body);
+ return aje(n ?? t.body);
}
//#endregion
//#region src/react/cover-crop/cover-crop.ts
-var oje = "/api/cover-crop", sje = (e, t) => B(oje, {
+var sje = "/api/cover-crop", cje = (e, t) => B(sje, {
code: e,
box: t
});
//#endregion
//#region src/react/cover-crop/cover-crop-page.tsx
-function qH({ className: e }) {
+function KH({ className: e }) {
return /* @__PURE__ */ (0, x.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -63126,7 +63126,7 @@ function qH({ className: e }) {
children: /* @__PURE__ */ (0, x.jsx)("use", { href: "#i-crop" })
});
}
-function cje({ code: e, coverUrl: t, box: n, onSaved: r }) {
+function lje({ code: e, coverUrl: t, box: n, onSaved: r }) {
let [i, a] = (0, b.useState)(!1), o = (0, b.useRef)(null);
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)("button", {
ref: o,
@@ -63137,15 +63137,15 @@ function cje({ 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, x.jsx)(qH, { className: "size-3.75" })
- }), /* @__PURE__ */ (0, x.jsx)(Sx, {
- getContainer: () => aje(o.current),
- children: /* @__PURE__ */ (0, x.jsx)(tI, {
+ children: /* @__PURE__ */ (0, x.jsx)(KH, { className: "size-3.75" })
+ }), /* @__PURE__ */ (0, x.jsx)(Cx, {
+ getContainer: () => oje(o.current),
+ children: /* @__PURE__ */ (0, x.jsx)(eI, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
label: "裁剪封面",
- children: /* @__PURE__ */ (0, x.jsx)(lje, {
+ children: /* @__PURE__ */ (0, x.jsx)(uje, {
code: e,
coverUrl: t,
box: n,
@@ -63155,9 +63155,9 @@ function cje({ code: e, coverUrl: t, box: n, onSaved: r }) {
})
})] });
}
-function lje({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
- let [a, o] = (0, b.useState)(null), [s, c] = (0, b.useState)(null), [l, u] = (0, b.useState)(!0), d = dP(), f = ft({
- mutationFn: (t) => sje(e, t),
+function uje({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
+ let [a, o] = (0, b.useState)(null), [s, c] = (0, b.useState)(null), [l, u] = (0, b.useState)(!0), d = uP(), f = ft({
+ mutationFn: (t) => cje(e, t),
onSuccess: (e) => {
i(), r(e.poster_box);
}
@@ -63169,15 +63169,15 @@ function lje({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : Cxe(e, Hi);
- c(ZF(t, e, null));
+ } : wxe(e, Hi);
+ c(XF(t, e, null));
}
let m = f.isPending;
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, x.jsx)(nI, { children: /* @__PURE__ */ (0, x.jsx)(qH, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, x.jsx)(tI, { children: /* @__PURE__ */ (0, x.jsx)(KH, { className: "size-6" }) }),
/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
@@ -63196,7 +63196,7 @@ function lje({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, x.jsx)(pP, {
+ /* @__PURE__ */ (0, x.jsx)(fP, {
icon: oO,
size: "small",
"aria-label": "关闭",
@@ -63207,24 +63207,24 @@ function lje({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
/* @__PURE__ */ (0, x.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, x.jsx)(iI, {
+ children: /* @__PURE__ */ (0, x.jsx)(rI, {
src: t,
aspect: l ? Hi : null,
box: s,
size: a,
label: `${e} 的正封取景框`,
onSize: (e) => {
- YF(e) && p(e);
+ JF(e) && p(e);
},
onBox: c
})
}),
/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",
- children: [/* @__PURE__ */ (0, x.jsx)(Cz, {
+ children: [/* @__PURE__ */ (0, x.jsx)(Sz, {
isSelected: l,
onChange: (e) => {
- u(e), e && s && a && c(ZF(s, a, Hi));
+ u(e), e && s && a && c(XF(s, a, Hi));
},
children: /* @__PURE__ */ (0, x.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -63253,14 +63253,14 @@ function lje({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}
//#endregion
//#region src/react/item-detail/item-detail-page.tsx
-var JH = ({ name: e }) => /* @__PURE__ */ (0, x.jsx)("span", {
+var qH = ({ name: e }) => /* @__PURE__ */ (0, x.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: I(e) }
-}), YH = ({ html: e }) => /* @__PURE__ */ (0, x.jsx)("span", {
+}), JH = ({ html: e }) => /* @__PURE__ */ (0, x.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: e }
-}), XH = (e) => Number(e) > 0 ? Ut(Number(e)) : "大小未知";
-function uje(e) {
+}), YH = (e) => Number(e) > 0 ? Ut(Number(e)) : "大小未知";
+function dje(e) {
let { queue: t, actions: n } = e, r = dt({
queryKey: t ? WE(t) : ["item-queue", "none"],
queryFn: ({ signal: n }) => $E(t, e.helpers, n),
@@ -63278,9 +63278,9 @@ function uje(e) {
children: /* @__PURE__ */ (0, x.jsxs)("div", {
"data-stage-media": "",
"data-item-media": "none",
- children: [/* @__PURE__ */ (0, x.jsx)(ZH, { onClose: n.close }), /* @__PURE__ */ (0, x.jsx)("div", {
+ children: [/* @__PURE__ */ (0, x.jsx)(XH, { onClose: n.close }), /* @__PURE__ */ (0, x.jsx)("div", {
"data-item-placeholder": "",
- children: e ? /* @__PURE__ */ (0, x.jsx)(Yj, {
+ children: e ? /* @__PURE__ */ (0, x.jsx)(Jj, {
message: _t(e),
onRetry: () => {
r.error && r.refetch(), o.error && o.refetch();
@@ -63290,13 +63290,13 @@ function uje(e) {
})
});
}
- return /* @__PURE__ */ (0, x.jsx)(dje, {
+ return /* @__PURE__ */ (0, x.jsx)(fje, {
...e,
item: nle(o.data, i),
queue: i
}, o.data.id);
}
-var ZH = ({ onClose: e }) => /* @__PURE__ */ (0, x.jsx)("button", {
+var XH = ({ onClose: e }) => /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -63305,8 +63305,8 @@ var ZH = ({ onClose: e }) => /* @__PURE__ */ (0, x.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: I("x") }
});
-function dje(e) {
- let { item: t, queue: n, actions: r, helpers: i } = e, a = Dje(t, r, i.tagLabel), o = (0, b.useRef)(t);
+function fje(e) {
+ let { item: t, queue: n, actions: r, helpers: i } = e, a = Oje(t, r, i.tagLabel), o = (0, b.useRef)(t);
(0, b.useLayoutEffect)(() => {
r.present(o.current, n);
}, [r]), (0, b.useEffect)(() => {
@@ -63321,7 +63321,7 @@ function dje(e) {
"data-stage-grid": "",
"data-with-queue": n ? "" : void 0,
"data-item-detail": "",
- children: [/* @__PURE__ */ (0, x.jsx)(fje, {
+ children: [/* @__PURE__ */ (0, x.jsx)(pje, {
item: t,
gate: s,
helpers: i,
@@ -63334,21 +63334,21 @@ function dje(e) {
autoplay: !0
}, c.id);
}
- }), /* @__PURE__ */ (0, x.jsx)(_je, {
+ }), /* @__PURE__ */ (0, x.jsx)(vje, {
item: t,
queue: n,
write: a,
helpers: i,
actions: r
})]
- }), /* @__PURE__ */ (0, x.jsx)(RH, {
- queue: n ? /* @__PURE__ */ (0, x.jsx)(mje, {
+ }), /* @__PURE__ */ (0, x.jsx)(LH, {
+ queue: n ? /* @__PURE__ */ (0, x.jsx)(hje, {
queue: n,
itemId: t.id,
helpers: i,
actions: r
}) : null,
- children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, x.jsx)(Eje, {
+ children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, x.jsx)(Dje, {
...e,
item: n ? {
...t,
@@ -63357,7 +63357,7 @@ function dje(e) {
}) : null
})] });
}
-function fje({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
+function pje({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
let [o, s] = (0, b.useState)(t ? "" : "auto"), c = (0, b.useRef)(null), l = (0, b.useRef)(e), u = (0, b.useRef)(a);
u.current = a, (0, b.useLayoutEffect)(() => {
let e = c.current;
@@ -63374,7 +63374,7 @@ function fje({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
ref: c,
"data-stage-media": "",
"data-item-media": t || "video",
- children: [/* @__PURE__ */ (0, x.jsx)(ZH, { onClose: r.close }), t === "offline" ? /* @__PURE__ */ (0, x.jsx)(pje, {
+ children: [/* @__PURE__ */ (0, x.jsx)(XH, { onClose: r.close }), t === "offline" ? /* @__PURE__ */ (0, x.jsx)(mje, {
item: e,
badge: d,
helpers: n,
@@ -63384,7 +63384,7 @@ function fje({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
role: "status",
"data-item-gate": "online",
children: [
- /* @__PURE__ */ (0, x.jsx)(YH, { html: d }),
+ /* @__PURE__ */ (0, x.jsx)(JH, { html: d }),
/* @__PURE__ */ (0, x.jsx)("b", { children: "在线资产" }),
/* @__PURE__ */ (0, x.jsx)("span", { children: "这条没有对应的关注条目,媒体地址无从解析。" }),
/* @__PURE__ */ (0, x.jsx)("button", {
@@ -63399,11 +63399,11 @@ function fje({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
id: "gate",
"data-item-gate": "metered",
onClick: () => s("clicked"),
- children: [/* @__PURE__ */ (0, x.jsx)(YH, { html: d }), /* @__PURE__ */ (0, x.jsxs)("span", { children: ["点此开始拉流 · ", XH(e.size)] })]
+ children: [/* @__PURE__ */ (0, x.jsx)(JH, { html: d }), /* @__PURE__ */ (0, x.jsxs)("span", { children: ["点此开始拉流 · ", YH(e.size)] })]
}) : null]
});
}
-function pje({ item: e, badge: t, helpers: n, actions: r }) {
+function mje({ item: e, badge: t, helpers: n, actions: r }) {
let [i, a] = (0, b.useState)(!1), [o, s] = (0, b.useState)(!1), c = async () => {
a(!0);
let t = await r.checkSource(e.location || "").catch(() => !1);
@@ -63414,7 +63414,7 @@ function pje({ item: e, badge: t, helpers: n, actions: r }) {
role: "status",
"data-item-gate": "offline",
children: [
- /* @__PURE__ */ (0, x.jsx)(YH, { html: t }),
+ /* @__PURE__ */ (0, x.jsx)(JH, { html: t }),
/* @__PURE__ */ (0, x.jsx)("b", { children: "脱盘模式" }),
/* @__PURE__ */ (0, x.jsx)("span", { children: n.offlineReason(e.location || "") }),
/* @__PURE__ */ (0, x.jsx)("button", {
@@ -63428,8 +63428,8 @@ function pje({ item: e, badge: t, helpers: n, actions: r }) {
]
});
}
-function mje({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = fle(e), a = (0, b.useRef)(null), o = gje(e, t, r), s = (0, b.useRef)(o);
+function hje({ queue: e, itemId: t, helpers: n, actions: r }) {
+ let i = fle(e), a = (0, b.useRef)(null), o = _je(e, t, r), s = (0, b.useRef)(o);
s.current = o;
let c = (0, b.useCallback)((t) => {
a.current = t, t && (n.wireDrag(t), e.kind === "playlist" && n.wireDragReorder(t, {
@@ -63437,7 +63437,7 @@ function mje({ 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 = hje(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, x.jsx)("button", {
+ }, [n, e.kind]), l = gje(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
"data-save-mix": "",
title: "保存为播放列表",
@@ -63456,7 +63456,7 @@ function mje({ queue: e, itemId: t, helpers: n, actions: r }) {
seedId: e.seedId,
playlistId: e.playlistId
};
- return /* @__PURE__ */ (0, x.jsx)(FH, {
+ return /* @__PURE__ */ (0, x.jsx)(PH, {
kind: e.kind,
title: i.title,
summary: i.summary,
@@ -63469,7 +63469,7 @@ function mje({ queue: e, itemId: t, helpers: n, actions: r }) {
"data-queue-edition": "",
children: i.edition_label
}) : null, s = e.kind === "playlist" && tD(i);
- return /* @__PURE__ */ (0, x.jsxs)(IH, {
+ return /* @__PURE__ */ (0, x.jsxs)(FH, {
current: i.id === t,
"data-queue-item": i.id,
row: { "data-queue-row": i.id },
@@ -63479,25 +63479,25 @@ function mje({ queue: e, itemId: t, helpers: n, actions: r }) {
onClick: () => {
s || r.openQueueItem(d, i.id);
},
- pic: /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(YH, { html: la(i, n.javImage()) }), /* @__PURE__ */ (0, x.jsx)("i", {
+ pic: /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(JH, { html: la(i, n.javImage()) }), /* @__PURE__ */ (0, x.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: Vt(i.duration)
})] }),
- lead: /* @__PURE__ */ (0, x.jsx)(YH, { html: fa(i) }),
+ lead: /* @__PURE__ */ (0, x.jsx)(JH, { html: fa(i) }),
after: e.kind === "playlist" ? /* @__PURE__ */ (0, x.jsxs)("span", {
"data-queue-edit": "",
children: [/* @__PURE__ */ (0, x.jsx)("i", {
"data-queue-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, x.jsx)(JH, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, x.jsx)(qH, { name: "grip-vertical" })
}), /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
"data-queue-remove": i.id,
title: "移出播放列表",
"aria-label": "移出播放列表",
onClick: () => o.remove(i.id),
- children: /* @__PURE__ */ (0, x.jsx)(JH, { name: "x" })
+ children: /* @__PURE__ */ (0, x.jsx)(qH, { name: "x" })
})]
}) : null,
children: [/* @__PURE__ */ (0, x.jsxs)("span", {
@@ -63514,7 +63514,7 @@ function mje({ queue: e, itemId: t, helpers: n, actions: r }) {
})
});
}
-function hje(e, t) {
+function gje(e, t) {
let n = ft({ mutationFn: (t) => B(GE, {
action: "create",
name: t,
@@ -63528,7 +63528,7 @@ function hje(e, t) {
save: (e) => n.mutateAsync(e)
});
}
-function gje(e, t, n) {
+function _je(e, t, n) {
let r = WE({
kind: "playlist",
playlistId: e.playlistId
@@ -63591,7 +63591,7 @@ function gje(e, t, n) {
}
};
}
-function _je({ item: e, queue: t, write: n, helpers: r, actions: i }) {
+function vje({ item: e, queue: t, write: n, helpers: r, actions: i }) {
let a = e.location === "online", o = n.busyAttrs, [s, c] = (0, b.useState)(!1);
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-stage-side": "",
@@ -63599,7 +63599,7 @@ function _je({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: /* @__PURE__ */ (0, x.jsxs)("div", {
"data-stage-side-content": "",
children: [
- /* @__PURE__ */ (0, x.jsx)(vje, {
+ /* @__PURE__ */ (0, x.jsx)(yje, {
item: e,
queue: t,
helpers: r,
@@ -63611,7 +63611,7 @@ function _je({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-live": "polite",
children: n.sourceState
}),
- /* @__PURE__ */ (0, x.jsx)(bje, {
+ /* @__PURE__ */ (0, x.jsx)(xje, {
item: e,
write: n
}),
@@ -63622,7 +63622,7 @@ function _je({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: [
e.width && e.height ? /* @__PURE__ */ (0, x.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, x.jsx)(JH, { name: "monitor" }), /* @__PURE__ */ (0, x.jsxs)("span", { children: [
+ children: [/* @__PURE__ */ (0, x.jsx)(qH, { name: "monitor" }), /* @__PURE__ */ (0, x.jsxs)("span", { children: [
e.width,
"×",
e.height
@@ -63630,11 +63630,11 @@ function _je({ item: e, queue: t, write: n, helpers: r, actions: i }) {
}) : null,
/* @__PURE__ */ (0, x.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, x.jsx)(JH, { name: "hard-drive" }), /* @__PURE__ */ (0, x.jsx)("span", { children: XH(e.size) })]
+ children: [/* @__PURE__ */ (0, x.jsx)(qH, { name: "hard-drive" }), /* @__PURE__ */ (0, x.jsx)("span", { children: YH(e.size) })]
}),
e.release_date ? /* @__PURE__ */ (0, x.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, x.jsx)(JH, { name: "calendar" }), /* @__PURE__ */ (0, x.jsx)("span", { children: e.release_date })]
+ children: [/* @__PURE__ */ (0, x.jsx)(qH, { name: "calendar" }), /* @__PURE__ */ (0, x.jsx)("span", { children: e.release_date })]
}) : null,
e.region_label ? /* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
@@ -63642,22 +63642,22 @@ function _je({ 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, x.jsx)(JH, { name: "globe" }), /* @__PURE__ */ (0, x.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
+ children: [/* @__PURE__ */ (0, x.jsx)(qH, { name: "globe" }), /* @__PURE__ */ (0, x.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
}) : null
]
}),
- /* @__PURE__ */ (0, x.jsx)(xje, {
+ /* @__PURE__ */ (0, x.jsx)(Sje, {
item: e,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, x.jsx)(Sje, {
+ /* @__PURE__ */ (0, x.jsx)(Cje, {
item: e,
write: n,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, x.jsx)(wje, { item: e }),
+ /* @__PURE__ */ (0, x.jsx)(Tje, { item: e }),
/* @__PURE__ */ (0, x.jsxs)("div", {
"data-stage-actions": "",
"data-item-feedback": "",
@@ -63671,7 +63671,7 @@ function _je({ 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, x.jsx)(JH, { name: "thumbs-up" })
+ children: /* @__PURE__ */ (0, x.jsx)(qH, { name: "thumbs-up" })
}),
/* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
@@ -63683,7 +63683,7 @@ function _je({ 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, x.jsx)(JH, { name: "notebook-pen" })
+ children: /* @__PURE__ */ (0, x.jsx)(qH, { name: "notebook-pen" })
}),
/* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
@@ -63694,7 +63694,7 @@ function _je({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "dislike",
...o("dislike"),
onClick: () => n.feedback("dislike"),
- children: /* @__PURE__ */ (0, x.jsx)(JH, { name: "thumbs-down" })
+ children: /* @__PURE__ */ (0, x.jsx)(qH, { name: "thumbs-down" })
}),
/* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
@@ -63705,7 +63705,7 @@ function _je({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "seen",
...o("seen"),
onClick: () => n.feedback("seen"),
- children: /* @__PURE__ */ (0, x.jsx)(JH, { name: "eye" })
+ children: /* @__PURE__ */ (0, x.jsx)(qH, { name: "eye" })
}),
/* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
@@ -63716,7 +63716,7 @@ function _je({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.watch_later,
...o("later"),
onClick: n.later,
- children: /* @__PURE__ */ (0, x.jsx)(JH, { name: e.watch_later ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, x.jsx)(qH, { name: e.watch_later ? "check" : "bookmark-plus" })
}),
/* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
@@ -63725,7 +63725,7 @@ function _je({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-label": "加入播放列表",
title: "加入播放列表",
onClick: () => i.addToPlaylist(e),
- children: /* @__PURE__ */ (0, x.jsx)(JH, { name: "playlist" })
+ children: /* @__PURE__ */ (0, x.jsx)(qH, { name: "playlist" })
}),
/* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
@@ -63736,7 +63736,7 @@ function _je({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.better_version,
...o("quality"),
onClick: n.quality,
- children: /* @__PURE__ */ (0, x.jsx)(JH, { name: "sparkles" })
+ children: /* @__PURE__ */ (0, x.jsx)(qH, { name: "sparkles" })
}),
/* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
@@ -63747,11 +63747,11 @@ function _je({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.disposal === "trash",
...o("dispose"),
onClick: () => n.feedback("dispose"),
- children: /* @__PURE__ */ (0, x.jsx)(JH, { name: "trash" })
+ children: /* @__PURE__ */ (0, x.jsx)(qH, { name: "trash" })
})
]
}),
- /* @__PURE__ */ (0, x.jsx)(Tje, {
+ /* @__PURE__ */ (0, x.jsx)(Eje, {
item: e,
open: s,
write: n
@@ -63762,7 +63762,7 @@ function _je({ item: e, queue: t, write: n, helpers: r, actions: i }) {
...o("o"),
onClick: () => n.feedback("o"),
children: [
- /* @__PURE__ */ (0, x.jsx)(JH, { name: "sperm" }),
+ /* @__PURE__ */ (0, x.jsx)(qH, { name: "sperm" }),
/* @__PURE__ */ (0, x.jsx)("span", { children: "记一次高潮" }),
/* @__PURE__ */ (0, x.jsx)("b", {
className: "mono",
@@ -63775,7 +63775,7 @@ function _je({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
});
}
-function vje({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
+function yje({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
let a = (0, b.useRef)(null), [o, s] = (0, b.useState)(!1), [c, l] = (0, b.useState)(!1);
(0, b.useLayoutEffect)(() => {
let e = a.current;
@@ -63812,11 +63812,11 @@ function vje({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
"aria-label": o ? "收起标题" : "展开标题",
title: o ? "收起标题" : "展开完整标题",
onClick: u,
- children: /* @__PURE__ */ (0, x.jsx)(JH, { name: o ? "chevron-up" : "chevron-down" })
+ children: /* @__PURE__ */ (0, x.jsx)(qH, { name: o ? "chevron-up" : "chevron-down" })
}),
e.has_cover && (e.cover_key || e.code) ? /* @__PURE__ */ (0, x.jsx)("span", {
"data-cover-crop-host": "",
- children: /* @__PURE__ */ (0, x.jsx)(cje, {
+ children: /* @__PURE__ */ (0, x.jsx)(lje, {
code: e.cover_key || e.code || "",
coverUrl: Ji(e),
box: e.poster_box || null,
@@ -63828,7 +63828,7 @@ function vje({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
}
})
}) : null,
- e.location === "online" ? null : /* @__PURE__ */ (0, x.jsx)(yje, {
+ e.location === "online" ? null : /* @__PURE__ */ (0, x.jsx)(bje, {
id: e.id,
actions: r,
onStatus: i
@@ -63838,7 +63838,7 @@ function vje({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
})
});
}
-function yje({ id: e, actions: t, onStatus: n }) {
+function bje({ id: e, actions: t, onStatus: n }) {
let [r, i] = (0, b.useState)(""), a = async () => {
r || (i("reveal"), n(""), n(await t.reveal(e)), i(""));
}, o = async () => {
@@ -63868,10 +63868,10 @@ function yje({ id: e, actions: t, onStatus: n }) {
"aria-disabled": !0
} : {},
onClick: () => void o(),
- children: /* @__PURE__ */ (0, x.jsx)(JH, { name: "folder-sync" })
+ children: /* @__PURE__ */ (0, x.jsx)(qH, { name: "folder-sync" })
})] });
}
-function bje({ item: e, write: t }) {
+function xje({ item: e, write: t }) {
let n = aD(e.rating);
return /* @__PURE__ */ (0, x.jsxs)("div", {
id: "detailRating",
@@ -63895,7 +63895,7 @@ function bje({ item: e, write: t }) {
"aria-label": e === n ? `取消评分(当前 ${e} 星)` : `评为 ${e} 星`,
...t.busyAttrs(`rate:${e}`),
onClick: () => t.rate(e),
- children: /* @__PURE__ */ (0, x.jsx)(JH, { name: "star" })
+ children: /* @__PURE__ */ (0, x.jsx)(qH, { name: "star" })
}, e))
}), /* @__PURE__ */ (0, x.jsx)("span", {
"data-rating-value": "",
@@ -63904,7 +63904,7 @@ function bje({ item: e, write: t }) {
})]
});
}
-function xje({ item: e, actions: t }) {
+function Sje({ item: e, actions: t }) {
let n = (0, b.useMemo)(() => ile(e), [e]), [r, i] = (0, b.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
let a = e === "performer" && i >= 8 && !r, o = e === "performer" || e === "creator" ? /* @__PURE__ */ (0, x.jsx)("span", {
"data-id-face": "",
@@ -63971,7 +63971,7 @@ function xje({ item: e, actions: t }) {
onClick: t.openUnowned,
children: [/* @__PURE__ */ (0, x.jsx)("span", {
"data-id-face": "",
- children: /* @__PURE__ */ (0, x.jsx)(JH, { name: "user-round" })
+ children: /* @__PURE__ */ (0, x.jsx)(qH, { name: "user-round" })
}), /* @__PURE__ */ (0, x.jsx)("span", {
"data-id-name": "",
children: "未归属"
@@ -64016,17 +64016,17 @@ function xje({ item: e, actions: t }) {
"data-entity-name": e.name,
title: e.name,
onClick: () => t.openEntity("series", e.name),
- children: [/* @__PURE__ */ (0, x.jsx)(JH, { name: "tags" }), /* @__PURE__ */ (0, x.jsx)("span", { children: e.name })]
+ children: [/* @__PURE__ */ (0, x.jsx)(qH, { name: "tags" }), /* @__PURE__ */ (0, x.jsx)("span", { children: e.name })]
}, e.name) : /* @__PURE__ */ (0, x.jsxs)("span", {
"data-series-link": "",
title: e.name,
- children: [/* @__PURE__ */ (0, x.jsx)(JH, { name: "tags" }), /* @__PURE__ */ (0, x.jsx)("span", { children: e.name })]
+ children: [/* @__PURE__ */ (0, x.jsx)(qH, { name: "tags" }), /* @__PURE__ */ (0, x.jsx)("span", { children: e.name })]
}, e.name))
})]
}) : null]
});
}
-function Sje({ item: e, write: t, helpers: n, actions: r }) {
+function Cje({ item: e, write: t, helpers: n, actions: r }) {
let i = sle(e, n);
return /* @__PURE__ */ (0, x.jsxs)("div", {
"data-stage-tags": "",
@@ -64047,16 +64047,16 @@ function Sje({ item: e, write: t, helpers: n, actions: r }) {
"aria-label": `删除标签 ${n.tagLabel(e.k)}`,
...t.busyAttrs(`tag:${e.k}`),
onClick: () => t.removeTag(e),
- children: /* @__PURE__ */ (0, x.jsx)(JH, { name: "x" })
+ children: /* @__PURE__ */ (0, x.jsx)(qH, { name: "x" })
})]
- }, e.k)), /* @__PURE__ */ (0, x.jsx)(Cje, {
+ }, e.k)), /* @__PURE__ */ (0, x.jsx)(wje, {
item: e,
write: t,
helpers: n
})]
});
}
-function Cje({ item: e, write: t, helpers: n }) {
+function wje({ item: e, write: t, helpers: n }) {
let r = (0, b.useRef)(null), i = (0, b.useRef)(null), a = (0, b.useRef)(null), o = (0, b.useRef)(!1), [s, c] = (0, b.useState)(!1), [l, u] = (0, b.useState)(""), [d, f] = (0, b.useState)(""), [p, m] = (0, b.useState)(-1), h = (0, b.useCallback)(() => {
i.current && La(i.current), c(!1);
}, []);
@@ -64106,7 +64106,7 @@ function Cje({ item: e, write: t, helpers: n }) {
"aria-pressed": i,
onClick: () => v(t, i),
children: [
- /* @__PURE__ */ (0, x.jsx)(JH, { name: i ? "check" : "tags" }),
+ /* @__PURE__ */ (0, x.jsx)(qH, { name: i ? "check" : "tags" }),
/* @__PURE__ */ (0, x.jsx)("span", {
"data-pick-name": "",
children: n.tagLabel(t.k)
@@ -64129,7 +64129,7 @@ function Cje({ item: e, write: t, helpers: n }) {
onClick: () => {
i.current && (Ia(i.current), c(!0), u(""), f(""), m(-1), requestAnimationFrame(() => a.current?.focus()));
},
- children: /* @__PURE__ */ (0, x.jsx)(JH, { name: "plus" })
+ children: /* @__PURE__ */ (0, x.jsx)(qH, { name: "plus" })
}), /* @__PURE__ */ (0, x.jsxs)("div", {
ref: i,
id: "tagPicker",
@@ -64139,7 +64139,7 @@ function Cje({ item: e, write: t, helpers: n }) {
hidden: !0,
children: [/* @__PURE__ */ (0, x.jsxs)("label", {
"data-tag-search": "",
- children: [/* @__PURE__ */ (0, x.jsx)(JH, { name: "search" }), /* @__PURE__ */ (0, x.jsx)("input", {
+ children: [/* @__PURE__ */ (0, x.jsx)(qH, { name: "search" }), /* @__PURE__ */ (0, x.jsx)("input", {
ref: a,
id: "tagPickSearch",
maxLength: 80,
@@ -64180,7 +64180,7 @@ function Cje({ item: e, write: t, helpers: n }) {
onClick: () => {
h(), t.addTag(g.create);
},
- children: [/* @__PURE__ */ (0, x.jsx)(JH, { name: "plus" }), /* @__PURE__ */ (0, x.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, x.jsx)(qH, { name: "plus" }), /* @__PURE__ */ (0, x.jsxs)("span", {
"data-pick-name": "",
children: [
"新建“",
@@ -64195,7 +64195,7 @@ function Cje({ item: e, write: t, helpers: n }) {
})]
})] });
}
-function wje({ item: e }) {
+function Tje({ item: e }) {
let t = _le(e);
return /* @__PURE__ */ (0, x.jsxs)("div", {
"data-item-trace": "",
@@ -64230,7 +64230,7 @@ function wje({ item: e }) {
})]
});
}
-function Tje({ item: e, open: t, write: n }) {
+function Eje({ item: e, open: t, write: n }) {
let [r, i] = (0, b.useState)(e.like_reason || ""), a = (0, b.useRef)(null);
(0, b.useEffect)(() => {
t && a.current?.focus();
@@ -64269,15 +64269,15 @@ function Tje({ item: e, open: t, write: n }) {
})]
});
}
-function Eje(e) {
+function Dje(e) {
let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = dt({
queryKey: $ce(t.id, n),
queryFn: async ({ signal: e }) => (await z(tle(t.id, n), e)).items || []
}), [o] = (0, b.useState)(() => r.relatedSkeletonHtml());
- return a.isError || a.data && !a.data.length ? null : /* @__PURE__ */ (0, x.jsx)(LH, {
+ return a.isError || a.data && !a.data.length ? null : /* @__PURE__ */ (0, x.jsx)(IH, {
wireDrag: r.wireDrag,
busy: a.isPending,
- children: a.data ? /* @__PURE__ */ (0, x.jsx)(cM, {
+ children: a.data ? /* @__PURE__ */ (0, x.jsx)(sM, {
mode: "items",
variant: "next",
items: a.data,
@@ -64290,10 +64290,10 @@ function Eje(e) {
revision: 0,
wireDrag: r.wireDrag,
skeletonHtml: () => ""
- }) : /* @__PURE__ */ (0, x.jsx)(YH, { html: o })
+ }) : /* @__PURE__ */ (0, x.jsx)(JH, { html: o })
});
}
-function Dje(e, t, n) {
+function Oje(e, t, n) {
let r = e.id, i = UE(r), [a, o] = (0, b.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, b.useState)(""), [l, u] = (0, b.useState)(""), d = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
@@ -64435,26 +64435,26 @@ function Dje(e, t, n) {
}
//#endregion
//#region src/react/jav-detail/jav-detail.ts
-var QH = (e) => ["jav-detail", e], $H = (e, t) => z(`/api/jav/detail?code=${encodeURIComponent(e)}`, t), Oje = (e, t, n) => z(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}`, n), eU = (e, t) => V.fetchQuery({
- queryKey: QH(e.code),
- queryFn: () => $H(e.code, t)
+var ZH = (e) => ["jav-detail", e], QH = (e, t) => z(`/api/jav/detail?code=${encodeURIComponent(e)}`, t), kje = (e, t, n) => z(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}`, n), $H = (e, t) => V.fetchQuery({
+ queryKey: ZH(e.code),
+ queryFn: () => QH(e.code, t)
});
-function kje(e, t) {
+function Aje(e, t) {
if (!e.ok || !e.more) return;
let n = new Set(t.slice(0, -1).flatMap((e) => e.items.map((e) => e.id)));
return e.items.some((e) => !n.has(e.id)) ? e.page + 1 : void 0;
}
//#endregion
//#region src/react/jav-detail/jav-detail-page.tsx
-function Aje(e) {
+function jje(e) {
let t = dt({
- queryKey: QH(e.code),
- queryFn: ({ signal: t }) => $H(e.code, t)
+ queryKey: ZH(e.code),
+ queryFn: ({ signal: t }) => QH(e.code, t)
});
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-jav-detail": "",
"data-stage-grid": "",
- children: t.data ? /* @__PURE__ */ (0, x.jsx)(jje, {
+ children: t.data ? /* @__PURE__ */ (0, x.jsx)(Mje, {
...e,
item: t.data,
retry: () => {
@@ -64463,7 +64463,7 @@ function Aje(e) {
retrying: t.isFetching
}, e.code) : /* @__PURE__ */ (0, x.jsxs)("div", {
"data-jav-failure": "",
- children: [/* @__PURE__ */ (0, x.jsx)(tU, { close: e.actions.close }), t.error ? /* @__PURE__ */ (0, x.jsx)(Yj, {
+ children: [/* @__PURE__ */ (0, x.jsx)(eU, { close: e.actions.close }), t.error ? /* @__PURE__ */ (0, x.jsx)(Jj, {
message: R(t.error),
onRetry: () => {
t.refetch();
@@ -64472,7 +64472,7 @@ function Aje(e) {
})
});
}
-var tU = ({ close: e }) => /* @__PURE__ */ (0, x.jsx)("button", {
+var eU = ({ close: e }) => /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -64481,17 +64481,17 @@ var tU = ({ close: e }) => /* @__PURE__ */ (0, x.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: I("x") }
});
-function jje({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {
+function Mje({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {
(0, b.useEffect)(() => {
t.state === "ready" && V.invalidateQueries({ queryKey: ["jav-discoveries", "external"] });
}, [t.code, t.state]);
let [o, s] = (0, b.useState)(null), [c, l] = (0, b.useState)(null), [u, d] = (0, b.useState)(t.want_id), f = XO(), p = () => {
- f.run("want", async (e) => u ? (await mB([u], e), null) : (await pB({ code: t.code }, e)).want.id, (t) => {
- d(t), V.setQueryData(QH(e), (e) => e && {
+ f.run("want", async (e) => u ? (await pB([u], e), null) : (await fB({ code: t.code }, e)).want.id, (t) => {
+ d(t), V.setQueryData(ZH(e), (e) => e && {
...e,
wanted: !!t,
want_id: t
- }), n.receipt(t ? "已加入想要" : "已取消想要"), hB(), V.invalidateQueries({ queryKey: ["feed-new"] }), V.invalidateQueries({ queryKey: ["jav-discoveries"] });
+ }), n.receipt(t ? "已加入想要" : "已取消想要"), mB(), V.invalidateQueries({ queryKey: ["feed-new"] }), V.invalidateQueries({ queryKey: ["jav-discoveries"] });
});
};
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
@@ -64499,8 +64499,8 @@ function jje({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
"data-stage-media": "",
"data-jav-art": "",
children: [
- /* @__PURE__ */ (0, x.jsx)(tU, { close: n.close }),
- /* @__PURE__ */ (0, x.jsx)(Mje, {
+ /* @__PURE__ */ (0, x.jsx)(eU, { close: n.close }),
+ /* @__PURE__ */ (0, x.jsx)(Nje, {
item: t,
image: o === null ? "cover" : String(o)
}),
@@ -64542,7 +64542,7 @@ function jje({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
}),
/* @__PURE__ */ (0, x.jsx)("div", {
"data-jav-cast": "",
- dangerouslySetInnerHTML: { __html: Yz({
+ dangerouslySetInnerHTML: { __html: Jz({
performer_refs: t.performer_refs,
performers: t.performers
}) }
@@ -64551,35 +64551,35 @@ function jje({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
/* @__PURE__ */ (0, x.jsxs)("dl", {
"data-jav-facts": "",
children: [
- /* @__PURE__ */ (0, x.jsx)(nU, {
+ /* @__PURE__ */ (0, x.jsx)(tU, {
label: "发行日期",
value: t.release_date
}),
- /* @__PURE__ */ (0, x.jsx)(nU, {
+ /* @__PURE__ */ (0, x.jsx)(tU, {
label: "时长",
value: t.duration ? `${t.duration} 分钟` : void 0
}),
- /* @__PURE__ */ (0, x.jsx)(nU, {
+ /* @__PURE__ */ (0, x.jsx)(tU, {
label: "评分",
value: t.score ? String(t.score) : void 0
}),
- /* @__PURE__ */ (0, x.jsx)(rU, {
+ /* @__PURE__ */ (0, x.jsx)(nU, {
label: "厂牌",
kind: "studio",
refs: t.studio_refs,
navigate: n.navigate
}),
- /* @__PURE__ */ (0, x.jsx)(nU, {
+ /* @__PURE__ */ (0, x.jsx)(tU, {
label: "发行商",
value: t.publisher
}),
- /* @__PURE__ */ (0, x.jsx)(rU, {
+ /* @__PURE__ */ (0, x.jsx)(nU, {
label: "系列",
kind: "series",
refs: t.series_refs,
navigate: n.navigate
}),
- /* @__PURE__ */ (0, x.jsx)(nU, {
+ /* @__PURE__ */ (0, x.jsx)(tU, {
label: "导演",
value: t.director
})
@@ -64640,11 +64640,11 @@ function jje({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
tone: "error",
children: f.error
}) : null,
- /* @__PURE__ */ (0, x.jsx)(Nje, {
+ /* @__PURE__ */ (0, x.jsx)(Pje, {
code: t.code,
count: t.comments_count
}),
- /* @__PURE__ */ (0, x.jsx)(Pje, {
+ /* @__PURE__ */ (0, x.jsx)(Fje, {
item: t,
actions: n,
readOnly: r
@@ -64652,14 +64652,14 @@ function jje({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
]
})
}),
- /* @__PURE__ */ (0, x.jsx)(rB, {
+ /* @__PURE__ */ (0, x.jsx)(nB, {
prefill: c,
close: () => l(null),
receipt: n.receipt
})
] });
}
-function Mje({ item: e, image: t }) {
+function Nje({ item: e, image: t }) {
let n = t === "cover" && e.has_cover, r = !n && (t !== "cover" || e.source_image), i = dt({
queryKey: [
"jav-image",
@@ -64696,20 +64696,20 @@ function Mje({ item: e, image: t }) {
})
});
}
-var nU = ({ label: e, value: t }) => t ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)("dt", { children: e }), /* @__PURE__ */ (0, x.jsx)("dd", { children: t })] }) : null, rU = ({ label: e, kind: t, refs: n, navigate: r }) => n.length ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)("dt", { children: e }), /* @__PURE__ */ (0, x.jsx)("dd", { children: n.map((e) => e.id ? /* @__PURE__ */ (0, x.jsx)("a", {
+var tU = ({ label: e, value: t }) => t ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)("dt", { children: e }), /* @__PURE__ */ (0, x.jsx)("dd", { children: t })] }) : null, nU = ({ label: e, kind: t, refs: n, navigate: r }) => n.length ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)("dt", { children: e }), /* @__PURE__ */ (0, x.jsx)("dd", { children: n.map((e) => e.id ? /* @__PURE__ */ (0, x.jsx)("a", {
href: Dt(t, e.name),
onClick: (n) => {
n.button || n.metaKey || n.ctrlKey || n.shiftKey || n.altKey || (n.preventDefault(), r(Dt(t, e.name)));
},
children: e.name
}, e.name) : /* @__PURE__ */ (0, x.jsx)("span", { children: e.name }, e.name)) })] }) : null;
-function Nje({ code: e, count: t }) {
+function Pje({ code: e, count: t }) {
let [n, r] = (0, b.useState)(!1), i = pt({
queryKey: ["jav-reviews", e],
enabled: n,
initialPageParam: 1,
- queryFn: ({ signal: t, pageParam: n }) => Oje(e, n, t),
- getNextPageParam: kje
+ queryFn: ({ signal: t, pageParam: n }) => kje(e, n, t),
+ getNextPageParam: Aje
}), a = i.data?.pages || [], o = [...new Map(a.flatMap((e) => e.items).map((e) => [e.id, e])).values()], s = i.error ? R(i.error) : a.find((e) => !e.ok)?.message;
return /* @__PURE__ */ (0, x.jsxs)("section", {
"data-jav-reviews": "",
@@ -64765,7 +64765,7 @@ function Nje({ code: e, count: t }) {
})]
});
}
-function Pje({ item: e, actions: t, readOnly: n }) {
+function Fje({ item: e, actions: t, readOnly: n }) {
let [r, i] = (0, b.useState)(!1), a = dt({
queryKey: bk,
enabled: r,
@@ -64773,7 +64773,7 @@ function Pje({ item: e, actions: t, readOnly: n }) {
}), o = a.data?.providers.find((e) => e.configured)?.key || "";
return /* @__PURE__ */ (0, x.jsxs)("section", {
"data-jav-resources": "",
- children: [/* @__PURE__ */ (0, x.jsx)("h2", { children: "资源" }), r ? /* @__PURE__ */ (0, x.jsx)(lB, {
+ children: [/* @__PURE__ */ (0, x.jsx)("h2", { children: "资源" }), r ? /* @__PURE__ */ (0, x.jsx)(cB, {
want: {
id: 0,
code: e.code,
@@ -64794,31 +64794,31 @@ function Pje({ item: e, actions: t, readOnly: n }) {
}
//#endregion
//#region src/react/stage/stage-player.ts
-var iU = null, aU = null, oU = null, sU = null, cU = null, lU = !1, uU = 0, dU = null, fU = () => !1, pU = (e, t, n) => `${e}:${t}:${n ?? ""}`;
-function Fje(e, t) {
- iU = e, fU = () => t.isOpen(), dU = () => t.requestClose(), uce({
+var rU = null, iU = null, aU = null, oU = null, sU = null, cU = !1, lU = 0, uU = null, dU = () => !1, fU = (e, t, n) => `${e}:${t}:${n ?? ""}`;
+function Ije(e, t) {
+ rU = e, dU = () => t.isOpen(), uU = () => t.requestClose(), lce({
...e.player,
stage: () => document.getElementById("stage")
- }), dce({
- inMiniplayer: (e) => aU?.player === e,
- kind: (e) => aU?.player === e ? aU.kind : oU?.kind ?? sU?.kind ?? "item",
- expand: () => MU(),
- toMiniplayer: () => NU()
- }), mU || (mU = !0, addEventListener("pagehide", () => xE()));
-}
-var mU = !1;
-function hU() {
- if (!iU) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
- return iU;
-}
-function gU(e) {
- sU = e;
-}
-var Ije = () => sU;
-function _U(e, t) {
- let { kind: n, item: r, media: i = null } = t, a = pU(n, r.id, i?.index ?? null);
- if (aU && aU.key === a) return Lje(e, aU);
- aU && jU();
+ }), uce({
+ inMiniplayer: (e) => iU?.player === e,
+ kind: (e) => iU?.player === e ? iU.kind : aU?.kind ?? oU?.kind ?? "item",
+ expand: () => jU(),
+ toMiniplayer: () => MU()
+ }), pU || (pU = !0, addEventListener("pagehide", () => SE()));
+}
+var pU = !1;
+function mU() {
+ if (!rU) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
+ return rU;
+}
+function hU(e) {
+ oU = e;
+}
+var Lje = () => oU;
+function gU(e, t) {
+ let { kind: n, item: r, media: i = null } = t, a = fU(n, r.id, i?.index ?? null);
+ if (iU && iU.key === a) return Rje(e, iU);
+ iU && AU();
let o = {
player: null,
kind: n,
@@ -64826,28 +64826,28 @@ function _U(e, t) {
mediaIndex: i?.index ?? null,
key: a
};
- oU = o;
+ aU = o;
let s = document.createElement("video");
t.id && (s.id = t.id), s.className = "video-js vjs-big-play-centered", s.controls = !0, s.setAttribute("playsinline", ""), s.preload = "metadata", t.poster && (s.poster = t.poster), t.onError && s.addEventListener("error", t.onError), e.append(s);
- let c = FE(s, {
+ let c = IE(s, {
kind: n,
item: r,
media: i,
autoplay: t.autoplay,
resume: t.resume ?? null,
onPlayer: (e) => {
- oU === o && (o.player = e);
+ aU === o && (o.player = e);
},
- handedOff: (e) => aU?.player === e
+ handedOff: (e) => iU?.player === e
});
return () => {
- let e = !!o.player && aU?.player === o.player;
- oU === o && (oU = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), xE());
+ let e = !!o.player && iU?.player === o.player;
+ aU === o && (aU = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), SE());
};
}
-function Lje(e, t) {
+function Rje(e, t) {
let { player: n } = t;
- kU(t), aU = null, AU(), n.el().classList.remove("vjs-peach-mini"), NE(e), e.append(n.el()), YT(n);
+ OU(t), iU = null, kU(), n.el().classList.remove("vjs-peach-mini"), PE(e), e.append(n.el()), XT(n);
let r = {
player: n,
kind: t.kind,
@@ -64855,23 +64855,23 @@ function Lje(e, t) {
mediaIndex: t.mediaIndex,
key: t.key
};
- oU = r;
- let i = PE(n, e);
- return XT(n), () => {
- oU === r && (oU = null), i(), aU?.player !== n && (JT() === n && YT(null), pE(n), xE());
+ aU = r;
+ let i = FE(n, e);
+ return ZT(n), () => {
+ aU === r && (aU = null), i(), iU?.player !== n && (YT() === n && XT(null), mE(n), SE());
};
}
-var vU = () => {
- let e = oU?.player;
+var _U = () => {
+ let e = aU?.player;
return e && !e.isDisposed() ? e : null;
};
-function Rje(e) {
- let t = lU;
- lU = !1, aU?.pending && jU();
- let n = oU, r = n?.player, i = sU;
- if (!n || !r || r.isDisposed() || !i || !cU) return;
- let a = hU().player.settings();
- (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && Hje({
+function zje(e) {
+ let t = cU;
+ cU = !1, iU?.pending && AU();
+ let n = aU, r = n?.player, i = oU;
+ if (!n || !r || r.isDisposed() || !i || !sU) return;
+ let a = mU().player.settings();
+ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && Uje({
player: r,
kind: n.kind,
item: n.item,
@@ -64879,46 +64879,46 @@ function Rje(e) {
key: n.key
}, i);
}
-function yU(e, t) {
- lU = !1, aU && (aU.kind === e && aU.item.id === t ? (aU.pending = !0, AU()) : jU());
-}
-function bU(e) {
- cU = e, cU && DU();
+function vU(e, t) {
+ cU = !1, iU && (iU.kind === e && iU.item.id === t ? (iU.pending = !0, kU()) : AU());
}
-var xU = () => !!aU && !aU.pending && !aU.player.isDisposed();
-function zje() {
- return xU() ? cU?.frame.querySelector("video") ?? null : null;
+function yU(e) {
+ sU = e, sU && EU();
}
+var bU = () => !!iU && !iU.pending && !iU.player.isDisposed();
function Bje() {
- return fU() ? document.getElementById("stage")?.querySelector("video") ?? null : zje();
+ return bU() ? sU?.frame.querySelector("video") ?? null : null;
}
-function SU(e) {
- cU && (cU.title.textContent = e.title || "", cU.sub.textContent = e.sub || "", cU.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
-}
-function CU(e = aU?.item) {
- if (!cU) return;
- let t = cU.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
- cU.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
+function Vje() {
+ return dU() ? document.getElementById("stage")?.querySelector("video") ?? null : Bje();
}
-function wU() {
- let e = aU?.player;
- if (!e || e.isDisposed() || !cU) return;
- let t = e.paused();
- cU.play.setAttribute("aria-label", t ? "播放" : "暂停"), cU.play.querySelector("[data-icon-swap]") || (cU.play.innerHTML = eo("player-pause", "player-play", t ? "b" : "a")), to(cU.play, t ? "b" : "a");
+function xU(e) {
+ sU && (sU.title.textContent = e.title || "", sU.sub.textContent = e.sub || "", sU.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
}
-function TU() {
- let e = aU?.player;
- if (!e || e.isDisposed() || !cU) return;
- let t = Bt(aU?.item.duration) || Bt(e.duration());
- cU.time.textContent = `${Ht(e.currentTime())} / ${t ? Ht(t) : "0:00"}`;
+function SU(e = iU?.item) {
+ if (!sU) return;
+ let t = sU.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
+ sU.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
}
-var EU = () => Math.max(1, Number(hU().player.settings().seekSeconds) || 10);
-function DU() {
- if (!cU || !iU) return;
- let e = EU();
- for (let [t, n] of [[cU.back, `后退 ${e} 秒`], [cU.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
+function CU() {
+ let e = iU?.player;
+ if (!e || e.isDisposed() || !sU) return;
+ let t = e.paused();
+ sU.play.setAttribute("aria-label", t ? "播放" : "暂停"), sU.play.querySelector("[data-icon-swap]") || (sU.play.innerHTML = eo("player-pause", "player-play", t ? "b" : "a")), to(sU.play, t ? "b" : "a");
}
-function OU(e) {
+function wU() {
+ let e = iU?.player;
+ if (!e || e.isDisposed() || !sU) return;
+ let t = Bt(iU?.item.duration) || Bt(e.duration());
+ sU.time.textContent = `${Ht(e.currentTime())} / ${t ? Ht(t) : "0:00"}`;
+}
+var TU = () => Math.max(1, Number(mU().player.settings().seekSeconds) || 10);
+function EU() {
+ if (!sU || !rU) return;
+ let e = TU();
+ for (let [t, n] of [[sU.back, `后退 ${e} 秒`], [sU.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
+}
+function DU(e) {
let t = (t, n) => {
e.player.on(t, n), e.off.push(() => {
try {
@@ -64930,17 +64930,17 @@ function OU(e) {
"play",
"pause",
"ended"
- ], wU), t([
+ ], CU), t([
"timeupdate",
"durationchange",
"loadedmetadata"
- ], TU), t("loadedmetadata", () => CU()), wU(), TU(), CU(), DU();
+ ], wU), t("loadedmetadata", () => SU()), CU(), wU(), SU(), EU();
}
-function kU(e) {
+function OU(e) {
e.off.forEach((e) => e()), e.off = [];
}
-function Vje() {
- let e = cU?.root;
+function Hje() {
+ let e = sU?.root;
if (!e) return;
let t = e.hidden;
if (e.hidden = !1, !t) return;
@@ -64948,8 +64948,8 @@ function Vje() {
let n = () => e.removeAttribute("data-miniplayer-enter");
e.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 500);
}
-function AU() {
- let e = cU?.root;
+function kU() {
+ let e = sU?.root;
if (e) {
e.hidden = !0;
for (let t of [
@@ -64960,73 +64960,73 @@ function AU() {
e.style.transform = "";
}
}
-function Hje(e, t) {
- if (!cU) return;
+function Uje(e, t) {
+ if (!sU) return;
let n = {
...e,
meta: t,
off: [],
pending: !1
};
- aU = n, uU++, e.player.el().classList.add("vjs-peach-mini"), cU.frame.prepend(e.player.el()), SU(t), OU(n), Vje(), XT(e.player);
+ iU = n, lU++, e.player.el().classList.add("vjs-peach-mini"), sU.frame.prepend(e.player.el()), xU(t), DU(n), Hje(), ZT(e.player);
}
-function jU() {
- let e = aU;
- e && kU(e), aU = null, uU++;
+function AU() {
+ let e = iU;
+ e && OU(e), iU = null, lU++;
let t = e?.player ?? null;
- t && JT() === t && YT(null), pE(t), t && xE(), cU?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), KT(), AU();
+ t && YT() === t && XT(null), mE(t), t && SE(), sU?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), qT(), kU();
}
-function MU() {
- if (!xU() || !aU) return;
- let { kind: e, item: t, mediaIndex: n } = aU;
- hU().expand(e, t.id, n);
+function jU() {
+ if (!bU() || !iU) return;
+ let { kind: e, item: t, mediaIndex: n } = iU;
+ mU().expand(e, t.id, n);
}
-function NU() {
- xU() && !fU() ? MU() : fU() && vU() && dU && (lU = !0, dU());
+function MU() {
+ bU() && !dU() ? jU() : dU() && _U() && uU && (cU = !0, uU());
}
-function Uje() {
- let e = aU?.player;
+function Wje() {
+ let e = iU?.player;
e && !e.isDisposed() && (e.paused() ? e.play()?.catch(() => {}) : e.pause());
}
-function PU(e) {
- let t = aU?.player;
+function NU(e) {
+ let t = iU?.player;
if (!t || t.isDisposed()) return;
- let n = Bt(t.duration()) || Bt(aU?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + EU() * e);
+ let n = Bt(t.duration()) || Bt(iU?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + TU() * e);
t.currentTime(n ? Math.min(n, r) : r);
}
-function FU(e) {
- return !(!xU() || !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 || hU().sourceOffline(String(e.location ?? "")));
-}
-async function Wje(e) {
- if (!xU() || !aU || !cU) return;
- let t = ++uU, n = await vt(`/api/item?id=${e}`).catch(() => null);
- if (t !== uU || !xU() || !aU || !cU || !n || n.error) return;
- if (!FU(n)) {
- hU().openItem(e);
+function PU(e) {
+ return !(!bU() || !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 || mU().sourceOffline(String(e.location ?? "")));
+}
+async function Gje(e) {
+ if (!bU() || !iU || !sU) return;
+ let t = ++lU, n = await vt(`/api/item?id=${e}`).catch(() => null);
+ if (t !== lU || !bU() || !iU || !sU || !n || n.error) return;
+ if (!PU(n)) {
+ mU().openItem(e);
return;
}
- let r = aU;
- kU(r), JT() === r.player && YT(null), pE(r.player), xE(), cU.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
+ let r = iU;
+ OU(r), YT() === r.player && XT(null), mE(r.player), SE(), sU.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
let i = document.createElement("video");
- i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", cU.frame.prepend(i);
+ i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", sU.frame.prepend(i);
let a = {
kind: "item",
item: n,
title: String(n.title || n.name || ""),
sub: String(n.performers?.[0] || n.creator || "未归属")
};
- SU(a), FE(i, {
+ xU(a), IE(i, {
kind: "item",
item: n,
autoplay: !0,
chrome: !1,
onPlayer: (r) => {
- if (t !== uU) {
- r && JT() === r && YT(null), pE(r);
+ if (t !== lU) {
+ r && YT() === r && XT(null), mE(r);
return;
}
if (!r) {
- jU(), hU().openItem(e);
+ AU(), mU().openItem(e);
return;
}
r.el().classList.add("vjs-peach-mini");
@@ -65035,26 +65035,26 @@ async function Wje(e) {
kind: "item",
item: n,
mediaIndex: null,
- key: pU("item", n.id, null),
+ key: fU("item", n.id, null),
meta: a,
off: [],
pending: !1
};
- aU = i, OU(i);
+ iU = i, DU(i);
}
- }), CU(n);
+ }), SU(n);
}
//#endregion
//#region src/react/stage/miniplayer.tsx
-var IU = ({ name: e }) => /* @__PURE__ */ (0, x.jsx)("svg", {
+var FU = ({ name: e }) => /* @__PURE__ */ (0, x.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, x.jsx)("use", { href: `#i-${e}` })
-}), Gje = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, LU = (e) => (t) => {
+}), Kje = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, IU = (e) => (t) => {
t.stopPropagation(), e();
-}, Kje = (0, b.memo)(function() {
+}, qje = (0, b.memo)(function() {
let e = (0, b.useRef)(null), t = (0, b.useRef)(null), n = (0, b.useRef)(null), r = (0, b.useRef)(null), i = (0, b.useRef)(null), a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = (0, b.useRef)(null), c = (0, b.useRef)(null), l = (0, b.useRef)(null);
- return (0, b.useLayoutEffect)(() => (bU({
+ return (0, b.useLayoutEffect)(() => (yU({
root: e.current,
frame: n.current,
play: r.current,
@@ -65064,7 +65064,7 @@ var IU = ({ name: e }) => /* @__PURE__ */ (0, x.jsx)("svg", {
title: s.current,
sub: c.current,
info: l.current
- }), () => bU(null)), []), (0, b.useEffect)(() => Jje(e.current, t.current), []), /* @__PURE__ */ (0, x.jsx)("aside", {
+ }), () => yU(null)), []), (0, b.useEffect)(() => Yje(e.current, t.current), []), /* @__PURE__ */ (0, x.jsx)("aside", {
ref: e,
"data-miniplayer": "",
id: "miniplayer",
@@ -65088,24 +65088,24 @@ var IU = ({ name: e }) => /* @__PURE__ */ (0, x.jsx)("svg", {
id: "miniplayerExpand",
"aria-label": "展开到详情",
"aria-keyshortcuts": "i",
- onClick: LU(MU),
- children: /* @__PURE__ */ (0, x.jsx)(IU, { name: "maximize-2" })
+ onClick: IU(jU),
+ children: /* @__PURE__ */ (0, x.jsx)(FU, { name: "maximize-2" })
}),
/* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
"data-miniplayer-button": "close",
id: "miniplayerClose",
"aria-label": "关闭小窗",
- onClick: LU(jU),
- children: /* @__PURE__ */ (0, x.jsx)(IU, { name: "x" })
+ onClick: IU(AU),
+ children: /* @__PURE__ */ (0, x.jsx)(FU, { name: "x" })
}),
/* @__PURE__ */ (0, x.jsx)("button", {
ref: a,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerBack",
- onClick: LU(() => PU(-1)),
- children: /* @__PURE__ */ (0, x.jsx)(IU, { name: "rotate-ccw" })
+ onClick: IU(() => NU(-1)),
+ children: /* @__PURE__ */ (0, x.jsx)(FU, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, x.jsx)("button", {
ref: r,
@@ -65114,16 +65114,16 @@ var IU = ({ name: e }) => /* @__PURE__ */ (0, x.jsx)("svg", {
id: "miniplayerPlay",
"aria-label": "暂停",
"aria-keyshortcuts": "k",
- onClick: LU(Uje),
- dangerouslySetInnerHTML: Gje
+ onClick: IU(Wje),
+ dangerouslySetInnerHTML: Kje
}),
/* @__PURE__ */ (0, x.jsx)("button", {
ref: o,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerAhead",
- onClick: LU(() => PU(1)),
- children: /* @__PURE__ */ (0, x.jsx)(IU, { name: "rotate-cw" })
+ onClick: IU(() => NU(1)),
+ children: /* @__PURE__ */ (0, x.jsx)(FU, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, x.jsx)("span", {
ref: i,
@@ -65140,7 +65140,7 @@ var IU = ({ name: e }) => /* @__PURE__ */ (0, x.jsx)("svg", {
"data-miniplayer-info": "",
id: "miniplayerInfo",
"aria-label": "展开到详情",
- onClick: () => MU(),
+ onClick: () => jU(),
children: [/* @__PURE__ */ (0, x.jsx)("span", {
ref: s,
"data-miniplayer-title": "",
@@ -65154,7 +65154,7 @@ var IU = ({ name: e }) => /* @__PURE__ */ (0, x.jsx)("svg", {
})
});
});
-function qje(e, t, n) {
+function Jje(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
@@ -65176,7 +65176,7 @@ function qje(e, t, n) {
};
e.addEventListener("transitionend", u), setTimeout(u, 600);
}
-function Jje(e, t) {
+function Yje(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 = {
@@ -65202,7 +65202,7 @@ function Jje(e, t) {
} catch {}
i.moved && (e.dataset.dragged = "1", setTimeout(() => {
delete e.dataset.dragged;
- }, 0), qje(e, i.dx, i.dy));
+ }, 0), Jje(e, i.dx, i.dy));
}, o = (t) => {
e.dataset.dragged && (t.stopPropagation(), t.preventDefault());
}, s = (e) => {
@@ -65214,69 +65214,69 @@ function Jje(e, t) {
}
//#endregion
//#region src/react/stage/stage.tsx
-var RU = null, zU = null, BU = /* @__PURE__ */ new Set(), VU = 0, HU = null, UU = !1, WU = !1, GU = () => {
+var LU = null, RU = null, zU = /* @__PURE__ */ new Set(), BU = 0, VU = null, HU = !1, UU = !1, WU = () => {
let e = document.getElementById("stage");
return e instanceof HTMLDialogElement ? e : null;
};
-function KU() {
- if (!RU) throw Error("舞台还没有接上宿主(configureStage)");
- return RU;
+function GU() {
+ if (!LU) throw Error("舞台还没有接上宿主(configureStage)");
+ return LU;
}
-function Yje(e) {
- return BU.add(e), () => {
- BU.delete(e);
+function Xje(e) {
+ return zU.add(e), () => {
+ zU.delete(e);
};
}
-function Xje() {
- for (let e of [...BU]) e();
+function Zje() {
+ for (let e of [...zU]) e();
}
-function qU() {
- (0, mt.flushSync)(Xje);
+function KU() {
+ (0, mt.flushSync)(Zje);
}
-function Zje({ view: e }) {
- return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [e ? /* @__PURE__ */ (0, x.jsx)(Qje, { view: e }, e.generation) : null, /* @__PURE__ */ (0, x.jsx)(Kje, {})] });
+function Qje({ view: e }) {
+ return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [e ? /* @__PURE__ */ (0, x.jsx)($je, { view: e }, e.generation) : null, /* @__PURE__ */ (0, x.jsx)(qje, {})] });
}
-var JU = () => /* @__PURE__ */ (0, x.jsx)("div", {
+var qU = () => /* @__PURE__ */ (0, x.jsx)("div", {
"data-skeleton": "detail",
role: "status",
"aria-label": "正在读取作品详情",
- dangerouslySetInnerHTML: { __html: SAe() }
+ dangerouslySetInnerHTML: { __html: CAe() }
});
-function YU(e) {
+function JU(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 Qje({ view: e }) {
+function $je({ view: e }) {
let t = (0, b.useRef)(null);
(0, b.useLayoutEffect)(() => {
let e = t.current, n = (e) => {
- e.preventDefault(), XU();
+ e.preventDefault(), YU();
};
return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);
}, []);
- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, x.jsx)(uje, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, x.jsx)(Aje, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, x.jsx)(JAe, { ...r.props }, r.props.id);
+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, x.jsx)(dje, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, x.jsx)(jje, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, x.jsx)(YAe, { ...r.props }, r.props.id);
return /* @__PURE__ */ (0, x.jsxs)("dialog", {
ref: t,
id: "stage",
"data-stage": "",
"aria-label": "作品详情",
onKeyDown: (e) => {
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), XU());
+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), YU());
},
onPointerDown: (e) => {
- WU = YU(e);
+ UU = JU(e);
},
onClick: (e) => {
- WU && YU(e) && XU();
+ UU && JU(e) && YU();
},
children: [
- n === "skeleton" ? /* @__PURE__ */ (0, x.jsx)(JU, {}, "skeleton") : null,
+ n === "skeleton" ? /* @__PURE__ */ (0, x.jsx)(qU, {}, "skeleton") : null,
n === "reveal" ? /* @__PURE__ */ (0, x.jsx)("div", {
"data-stage-fade": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, x.jsx)(JU, {})
+ children: /* @__PURE__ */ (0, x.jsx)(qU, {})
}, "fade") : null,
n === "skeleton" ? null : /* @__PURE__ */ (0, x.jsx)("div", {
"data-stage-scroll": "",
@@ -65288,14 +65288,14 @@ function Qje({ view: e }) {
]
});
}
-function XU() {
- zU && !UU && (UU = !0, zU.request.actions.close());
+function YU() {
+ RU && !HU && (HU = !0, RU.request.actions.close());
}
-function ZU(e, t) {
- let n = GU();
+function XU(e, t) {
+ let n = WU();
n?.toggleAttribute("data-ambient", e), n?.toggleAttribute("data-theater", t);
}
-function QU(e) {
+function ZU(e) {
if (e.kind === "jav") return {
kind: "jav",
props: {
@@ -65303,30 +65303,30 @@ function QU(e) {
readOnly: e.readOnly,
actions: {
...e.actions,
- close: XU
+ close: YU
}
}
};
let t = e.resume ?? null, n = (n) => {
let r = t && (e.id == null || e.id === n) ? t : null;
return t = null, r;
- }, r = () => KU().player.settings(), i = () => zU?.request === e;
+ }, r = () => GU().player.settings(), i = () => RU?.request === e;
if (e.kind === "item") {
let { kind: t, resume: a, actions: o, ...s } = e, c = {
...o,
- close: XU,
+ close: YU,
present: (e, t) => {
let n = e.performers;
- gU({
+ hU({
kind: "item",
item: e,
title: String(e.title || e.name || ""),
sub: String(n?.[0] || e.creator || "未归属")
- }), ZU(r().ambientMode, r().theaterMode), queueMicrotask(() => {
+ }), XU(r().ambientMode, r().theaterMode), queueMicrotask(() => {
i() && o.present(e, t);
});
},
- mountPlayer: (e, t, r, i) => _U(e, {
+ mountPlayer: (e, t, r, i) => gU(e, {
kind: "item",
item: t,
autoplay: i?.autoplay,
@@ -65344,18 +65344,18 @@ function QU(e) {
}
let { kind: a, resume: o, actions: s, ...c } = e, l = {
...s,
- close: XU,
+ close: YU,
present: (e, t) => {
- gU({
+ hU({
kind: "follow",
item: e,
title: e.title || "",
sub: e.author || e.source_label || ""
- }), ZU(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {
+ }), XU(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {
i() && s.present(e, t);
});
},
- mountPlayer: (e, t, r, i) => _U(e, {
+ mountPlayer: (e, t, r, i) => gU(e, {
kind: "follow",
item: t,
media: r,
@@ -65372,78 +65372,78 @@ function QU(e) {
}
};
}
-function $je(e, t) {
+function eMe(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"), zU?.generation === t && zU.phase === "reveal" && (zU = {
- ...zU,
+ clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), RU?.generation === t && RU.phase === "reveal" && (RU = {
+ ...RU,
phase: "content"
- }, qU());
+ }, KU());
}, a = (e) => {
e.target === n && i();
};
n?.addEventListener("transitionend", a), r = window.setTimeout(i, 1e3);
}
-function $U(e) {
- let t = GU();
- return !zU || zU.content.kind !== e || UU || !t?.open || t.hasAttribute("data-closing") ? null : t;
+function QU(e) {
+ let t = WU();
+ return !RU || RU.content.kind !== e || HU || !t?.open || t.hasAttribute("data-closing") ? null : t;
}
-async function eMe(e) {
- let t = $U(e.kind);
+async function tMe(e) {
+ let t = QU(e.kind);
if (t) {
- await tMe(e, t);
+ await nMe(e, t);
return;
}
- zU && eW({ miniplayer: !1 });
- let n = ++VU, r = new AbortController();
- HU = r, UU = !1, WU = !1, e.kind === "jav" ? jU() : yU(e.kind, e.id ?? NaN), zU = {
+ RU && $U({ miniplayer: !1 });
+ let n = ++BU, r = new AbortController();
+ VU = r, HU = !1, UU = !1, e.kind === "jav" ? AU() : vU(e.kind, e.id ?? NaN), RU = {
generation: n,
request: e,
- content: QU(e),
+ content: ZU(e),
phase: "skeleton"
- }, qU();
- let i = GU();
+ }, KU();
+ let i = WU();
if (!i) return;
yo(i), document.body.setAttribute("data-detail-open", ""), i.open || i.showModal();
- let a = zU.content;
+ let a = RU.content;
try {
- a.kind === "item" ? await rD(a.props, r.signal) : a.kind === "jav" ? await eU(a.props, r.signal) : await TH(a.props, r.signal);
+ a.kind === "item" ? await rD(a.props, r.signal) : a.kind === "jav" ? await $H(a.props, r.signal) : await wH(a.props, r.signal);
} catch {
if (r.signal.aborted) return;
}
- if (n !== VU || !zU) return;
+ if (n !== BU || !RU) return;
let o = !!i.querySelector(".skeleton-awaiting");
- zU = {
- ...zU,
+ RU = {
+ ...RU,
phase: o ? "content" : "reveal"
- }, qU(), o || $je(i, n), so(i, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, KU(), o || eMe(i, n), so(i, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let s = document.activeElement;
(s === i || !i.contains(s)) && i.querySelector("#closeStage")?.focus();
}
-async function tMe(e, t) {
- let n = ++VU;
- HU?.abort();
+async function nMe(e, t) {
+ let n = ++BU;
+ VU?.abort();
let r = new AbortController();
- HU = r, WU = !1;
- let i = QU(e);
+ VU = r, UU = !1;
+ let i = ZU(e);
try {
- i.kind === "item" ? await rD(i.props, r.signal) : i.kind === "jav" ? await eU(i.props, r.signal) : await TH(i.props, r.signal);
+ i.kind === "item" ? await rD(i.props, r.signal) : i.kind === "jav" ? await $H(i.props, r.signal) : await wH(i.props, r.signal);
} catch {
if (r.signal.aborted) return;
}
- if (n !== VU || !zU || $U(e.kind) !== t) return;
- e.kind === "jav" ? jU() : yU(e.kind, e.id ?? NaN), Hs(t), KT(), zU = {
- ...zU,
+ if (n !== BU || !RU || QU(e.kind) !== t) return;
+ e.kind === "jav" ? AU() : vU(e.kind, e.id ?? NaN), Hs(t), qT(), RU = {
+ ...RU,
request: e,
content: i,
phase: "content"
- }, qU(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), so(t, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, KU(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), so(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 nMe() {
- let e = GU();
+function rMe() {
+ let e = WU();
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();
@@ -65453,84 +65453,84 @@ function nMe() {
e.addEventListener("animationend", i), n = window.setTimeout(r, 380);
}));
}
-function eW({ miniplayer: e = !0 } = {}) {
- if (VU++, HU?.abort(), HU = null, Rje(e), !zU) return;
- let t = GU();
- t && Hs(t), KT(), t?.open && t.close(), zU = null, UU = !1, WU = !1, qU(), gU(null), document.body.removeAttribute("data-detail-open");
+function $U({ miniplayer: e = !0 } = {}) {
+ if (BU++, VU?.abort(), VU = null, zje(e), !RU) return;
+ let t = WU();
+ t && Hs(t), qT(), t?.open && t.close(), RU = null, HU = !1, UU = !1, KU(), hU(null), document.body.removeAttribute("data-detail-open");
}
-function rMe(e) {
- zU && (zU = {
- ...zU,
- content: zU.content.kind === "item" ? {
+function iMe(e) {
+ RU && (RU = {
+ ...RU,
+ content: RU.content.kind === "item" ? {
kind: "item",
props: {
- ...zU.content.props,
+ ...RU.content.props,
...e
}
- } : zU.content.kind === "jav" ? zU.content : {
+ } : RU.content.kind === "jav" ? RU.content : {
kind: "follow",
props: {
- ...zU.content.props,
+ ...RU.content.props,
...e.relatedLimit === void 0 ? {} : { relatedLimit: e.relatedLimit }
}
}
- }, qU());
+ }, KU());
}
-function iMe() {
- let e = Ije(), t = e?.kind === "item" ? e.item : null, n = t ? ua(t, KU().player.settings().javImage) : "";
+function aMe() {
+ let e = Lje(), t = e?.kind === "item" ? e.item : null, n = t ? ua(t, GU().player.settings().javImage) : "";
if (!n) return;
- let r = vU();
+ let r = _U();
r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);
}
-var aMe = {
- open: eMe,
- update: rMe,
- exit: nMe,
- dispose: eW,
- requestClose: XU,
- repaintPoster: iMe,
- isOpen: () => !!zU,
- showing: () => zU && $U(zU.content.kind) ? zU.content.kind : null,
- activeVideo: () => Bje(),
+var oMe = {
+ open: tMe,
+ update: iMe,
+ exit: rMe,
+ dispose: $U,
+ requestClose: YU,
+ repaintPoster: aMe,
+ isOpen: () => !!RU,
+ showing: () => RU && QU(RU.content.kind) ? RU.content.kind : null,
+ activeVideo: () => Vje(),
toggleTheater: () => {
- zU && fE(!KU().player.settings().theaterMode);
+ RU && pE(!GU().player.settings().theaterMode);
},
- toggleMiniplayer: () => NU(),
- closeMiniplayer: () => jU(),
- miniplayerActive: () => xU(),
- miniplayerTakesCard: (e) => FU(e),
+ toggleMiniplayer: () => MU(),
+ closeMiniplayer: () => AU(),
+ miniplayerActive: () => bU(),
+ miniplayerTakesCard: (e) => PU(e),
miniplayerPlay: (e) => {
- Wje(e);
+ Gje(e);
}
};
-function oMe(e) {
- return RU = e, Fje(e, {
- isOpen: () => !!zU,
- requestClose: XU
- }), aMe;
+function sMe(e) {
+ return LU = e, Ije(e, {
+ isOpen: () => !!RU,
+ requestClose: YU
+ }), oMe;
}
-function sMe() {
- let e = (0, b.useSyncExternalStore)(Yje, () => zU);
- return RU ? /* @__PURE__ */ (0, x.jsx)(Zje, { view: e }) : null;
+function cMe() {
+ let e = (0, b.useSyncExternalStore)(Xje, () => RU);
+ return LU ? /* @__PURE__ */ (0, x.jsx)(Qje, { view: e }) : null;
}
//#endregion
//#region src/react/stats/stats.ts
-var cMe = "/api/stats", tW = ["stats"], nW = (e) => z(cMe, e);
-async function lMe(e) {
+var lMe = "/api/stats", eW = ["stats"], tW = (e) => z(lMe, e);
+async function uMe(e) {
await V.fetchQuery({
- queryKey: tW,
- queryFn: () => nW(e)
+ queryKey: eW,
+ queryFn: () => tW(e)
});
}
-var rW = (e) => e != null && Number.isFinite(e), iW = (e) => rW(e) ? e.toLocaleString() : "未取得", uMe = (e, t) => rW(e) && rW(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, aW = (e, t) => {
- let n = uMe(e, t);
- return !n && rW(e) && e > 0 && rW(t) && t > 0 ? "<1%" : `${n}%`;
-}, oW = (e) => {
- if (!rW(e)) return "未取得";
+var nW = (e) => e != null && Number.isFinite(e), rW = (e) => nW(e) ? e.toLocaleString() : "未取得", dMe = (e, t) => nW(e) && nW(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, iW = (e, t) => {
+ let n = dMe(e, t);
+ return !n && nW(e) && e > 0 && nW(t) && t > 0 ? "<1%" : `${n}%`;
+}, aW = (e) => {
+ if (!nW(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)} 分钟`;
-}, sW = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, cW = (e) => (e.max_reached || 0) * 100, dMe = (e) => e.kind === "online" ? "在线直接观看" : sW(e) < cW(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", fMe = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`;
-function pMe(e, t = 6) {
+}, oW = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, sW = (e) => (e.max_reached || 0) * 100, fMe = (e) => e.kind === "online" ? "在线直接观看" : oW(e) < sW(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", pMe = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`;
+function mMe(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);
@@ -65540,7 +65540,7 @@ function pMe(e, t = 6) {
bytes: i.reduce((e, t) => e + (t.bytes ?? 0), 0)
}];
}
-var mMe = (e) => Math.max(1, ...e) * 1.1, hMe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, gMe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), _Me = {
+var hMe = (e) => Math.max(1, ...e) * 1.1, gMe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, _Me = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), vMe = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -65548,18 +65548,18 @@ var mMe = (e) => Math.max(1, ...e) * 1.1, hMe = (e, t) => e > 0 ? Math.max(e, t
audio: "音频",
account: "账号",
other: "其它文件"
-}, vMe = (e) => e.map((e) => ({
- name: _Me[e.k] ?? e.k,
+}, yMe = (e) => e.map((e) => ({
+ name: vMe[e.k] ?? e.k,
value: e.n
-})).sort((e, t) => t.value - e.value), yMe = {
+})).sort((e, t) => t.value - e.value), bMe = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
长: ">40 分钟"
-}, lW = (e, t = {}) => e.map((e) => ({
+}, cW = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), bMe = (e) => lW(e, yMe), xMe = [
+})), xMe = (e) => cW(e, bMe), SMe = [
[
1,
1,
@@ -65595,49 +65595,49 @@ var mMe = (e) => Math.max(1, ...e) * 1.1, hMe = (e, t) => e > 0 ? Math.max(e, t
Infinity,
"≥10"
]
-], SMe = (e) => xMe.map(([t, n, r]) => ({
+], CMe = (e) => SMe.map(([t, n, r]) => ({
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
-})), CMe = /* @__PURE__ */ "dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture".split(".");
-function uW(e) {
- return typeof e == "string" && CMe.includes(e);
+})), wMe = /* @__PURE__ */ "dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture".split(".");
+function lW(e) {
+ return typeof e == "string" && wMe.includes(e);
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesNoEvents.js
-var wMe = /* @__PURE__ */ new Set(/* @__PURE__ */ "aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle".split("."));
-function dW(e) {
- return typeof e == "string" && wMe.has(e);
+var TMe = /* @__PURE__ */ new Set(/* @__PURE__ */ "aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle".split("."));
+function uW(e) {
+ return typeof e == "string" && TMe.has(e);
}
-function fW(e) {
+function dW(e) {
return typeof e == "string" && e.startsWith("data-");
}
-function pW(e) {
+function fW(e) {
if (typeof e != "object" || !e) return {};
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (dW(n) || fW(n)) && (t[n] = e[n]);
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (uW(n) || dW(n)) && (t[n] = e[n]);
return t;
}
-function mW(e) {
+function pW(e) {
if (e == null) return null;
if (/*#__PURE__*/ (0, b.isValidElement)(e) && typeof e.props == "object" && e.props !== null) {
var t = e.props;
- return pW(t);
+ return fW(t);
}
- return typeof e == "object" && !Array.isArray(e) ? pW(e) : null;
+ return typeof e == "object" && !Array.isArray(e) ? fW(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesAndEvents.js
-function hW(e) {
+function mW(e) {
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (dW(n) || fW(n) || uW(n)) && (t[n] = e[n]);
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (uW(n) || dW(n) || lW(n)) && (t[n] = e[n]);
return t;
}
-function TMe(e) {
- return e == null ? null : /*#__PURE__*/ (0, b.isValidElement)(e) ? hW(e.props) : typeof e == "object" && !Array.isArray(e) ? hW(e) : null;
+function EMe(e) {
+ return e == null ? null : /*#__PURE__*/ (0, b.isValidElement)(e) ? mW(e.props) : typeof e == "object" && !Array.isArray(e) ? mW(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/container/Surface.js
-var EMe = [
+var DMe = [
"children",
"width",
"height",
@@ -65647,25 +65647,25 @@ var EMe = [
"title",
"desc"
];
-function gW() {
- return gW = Object.assign ? Object.assign.bind() : function(e) {
+function hW() {
+ return hW = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, gW.apply(null, arguments);
+ }, hW.apply(null, arguments);
}
-function DMe(e, t) {
+function OMe(e, t) {
if (e == null) return {};
- var n, r, i = OMe(e, t);
+ var n, r, i = kMe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function OMe(e, t) {
+function kMe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65674,14 +65674,14 @@ function OMe(e, t) {
}
return n;
}
-var _W = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
- var n = e.children, r = e.width, i = e.height, a = e.viewBox, o = e.className, s = e.style, c = e.title, l = e.desc, u = DMe(e, EMe), d = a || {
+var gW = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
+ var n = e.children, r = e.width, i = e.height, a = e.viewBox, o = e.className, s = e.style, c = e.title, l = e.desc, u = OMe(e, DMe), d = a || {
width: r,
height: i,
x: 0,
y: 0
- }, f = dv("recharts-surface", o);
- return /*#__PURE__*/ b.createElement("svg", gW({}, hW(u), {
+ }, f = fv("recharts-surface", o);
+ return /*#__PURE__*/ b.createElement("svg", hW({}, mW(u), {
className: f,
width: r,
height: i,
@@ -65689,26 +65689,26 @@ var _W = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
viewBox: `${d.x} ${d.y} ${d.width} ${d.height}`,
ref: t
}), /*#__PURE__*/ b.createElement("title", null, c), /*#__PURE__*/ b.createElement("desc", null, l), n);
-}), kMe = ["children", "className"];
-function vW() {
- return vW = Object.assign ? Object.assign.bind() : function(e) {
+}), AMe = ["children", "className"];
+function _W() {
+ return _W = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, vW.apply(null, arguments);
+ }, _W.apply(null, arguments);
}
-function AMe(e, t) {
+function jMe(e, t) {
if (e == null) return {};
- var n, r, i = jMe(e, t);
+ var n, r, i = MMe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function jMe(e, t) {
+function MMe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65717,54 +65717,54 @@ function jMe(e, t) {
}
return n;
}
-var yW = /*#__PURE__*/ b.forwardRef((e, t) => {
- var n = e.children, r = e.className, i = AMe(e, kMe), a = dv("recharts-layer", r);
- return /*#__PURE__*/ b.createElement("g", vW({ className: a }, hW(i), { ref: t }), n);
+var vW = /*#__PURE__*/ b.forwardRef((e, t) => {
+ var n = e.children, r = e.className, i = jMe(e, AMe), a = fv("recharts-layer", r);
+ return /*#__PURE__*/ b.createElement("g", _W({ className: a }, mW(i), { ref: t }), n);
});
//#endregion
//#region node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
-function bW(e) {
+function yW(e) {
return e === "__proto__";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs
-var MMe = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
-function xW(e) {
+var NMe = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
+function bW(e) {
switch (typeof e) {
case "number":
case "symbol": return !1;
- case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : MMe.test(e);
+ case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : NMe.test(e);
default: return !1;
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/toKey.mjs
-function SW(e) {
+function xW(e) {
return typeof e == "string" || typeof e == "symbol" ? e : Object.is(e?.valueOf?.(), -0) ? "-0" : String(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isSymbol.mjs
-function CW(e) {
+function SW(e) {
return typeof e == "symbol" || e instanceof Symbol;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toString.mjs
-function NMe(e) {
- return e == null ? "" : wW(e);
+function PMe(e) {
+ return e == null ? "" : CW(e);
}
-function wW(e) {
+function CW(e) {
if (typeof e == "string") return e;
- if (Array.isArray(e)) return e.map(wW).join(",");
- if (CW(e)) return e.toString();
+ if (Array.isArray(e)) return e.map(CW).join(",");
+ if (SW(e)) return e.toString();
let t = e + "";
return t === "0" && Object.is(Number(e), -0) ? "-0" : t;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toPath.mjs
-function TW(e) {
- if (Array.isArray(e)) return e.map(SW);
+function wW(e) {
+ if (Array.isArray(e)) return e.map(xW);
if (typeof e == "symbol") return [e];
- e = NMe(e);
+ e = PMe(e);
let t = [], n = e.length;
if (n === 0) return t;
let r = 0, i = "", a = "", o = !1, s = !1, c = /^-?\d+(?:\.\d+)?$/;
@@ -65792,86 +65792,86 @@ function TW(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/get.mjs
-function EW(e, t, n) {
+function TW(e, t, n) {
if (e == null) return n;
switch (typeof t) {
case "string": {
- if (bW(t)) return n;
+ if (yW(t)) return n;
let r = e[t];
- return r === void 0 ? xW(t) && !Object.hasOwn(e, t) ? EW(e, TW(t), n) : n : r;
+ return r === void 0 ? bW(t) && !Object.hasOwn(e, t) ? TW(e, wW(t), n) : n : r;
}
case "number":
case "symbol": {
- typeof t == "number" && (t = SW(t));
+ typeof t == "number" && (t = xW(t));
let r = e[t];
return r === void 0 ? n : r;
}
default: {
- if (Array.isArray(t)) return PMe(e, t, n);
- if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), bW(t)) return n;
+ if (Array.isArray(t)) return FMe(e, t, n);
+ if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), yW(t)) return n;
let r = e[t];
return r === void 0 ? n : r;
}
}
}
-function PMe(e, t, n) {
+function FMe(e, t, n) {
if (t.length === 0) return n;
let r = e;
for (let e = 0; e < t.length; e++) {
- if (r == null || bW(t[e])) return n;
+ if (r == null || yW(t[e])) return n;
r = r[t[e]];
}
return r === void 0 ? n : r;
}
//#endregion
//#region node_modules/recharts/es6/util/round.js
-var FMe = 4;
-function DW(e) {
- var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : FMe), n = Math.round(e * t) / t;
+var IMe = 4;
+function EW(e) {
+ var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : IMe), n = Math.round(e * t) / t;
return Object.is(n, -0) ? 0 : n;
}
-function OW(e) {
+function DW(e) {
var t = [...arguments].slice(1);
return e.reduce((e, n, r) => {
var i = t[r - 1];
- return typeof i == "string" ? e + i + n : i === void 0 ? e + n : e + DW(i) + n;
+ return typeof i == "string" ? e + i + n : i === void 0 ? e + n : e + EW(i) + n;
}, "");
}
//#endregion
//#region node_modules/recharts/es6/util/DataUtils.js
-var kW = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, AW = (e) => typeof e == "number" && e != +e, jW = (e) => typeof e == "string" && e.length > 1 && e.indexOf("%") === e.length - 1, MW = (e) => (typeof e == "number" || e instanceof Number) && !AW(e), NW = (e) => MW(e) || typeof e == "string", IMe = 0, PW = (e) => {
- var t = ++IMe;
+var OW = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, kW = (e) => typeof e == "number" && e != +e, AW = (e) => typeof e == "string" && e.length > 1 && e.indexOf("%") === e.length - 1, jW = (e) => (typeof e == "number" || e instanceof Number) && !kW(e), MW = (e) => jW(e) || typeof e == "string", LMe = 0, NW = (e) => {
+ var t = ++LMe;
return `${e || ""}${t}`;
-}, FW = function(e, t) {
+}, PW = function(e, t) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, r = arguments.length > 3 && arguments[3] !== void 0 && arguments[3];
- if (!MW(e) && typeof e != "string") return n;
+ if (!jW(e) && typeof e != "string") return n;
var i;
- if (jW(e)) {
+ if (AW(e)) {
if (t == null) return n;
var a = e.indexOf("%");
i = t * parseFloat(e.slice(0, a)) / 100;
} else i = +e;
- return AW(i) && (i = n), r && t != null && i > t && (i = t), i;
-}, IW = (e) => {
+ return kW(i) && (i = n), r && t != null && i > t && (i = t), i;
+}, FW = (e) => {
if (!Array.isArray(e)) return !1;
for (var t = e.length, n = {}, r = 0; r < t; r++) if (!n[String(e[r])]) n[String(e[r])] = !0;
else return !0;
return !1;
};
-function LW(e, t, n) {
- return MW(e) && MW(t) ? DW(e + n * (t - e)) : t;
+function IW(e, t, n) {
+ return jW(e) && jW(t) ? EW(e + n * (t - e)) : t;
}
-function RW(e, t, n) {
- if (e && e.length) return e.find((e) => e && (typeof t == "function" ? t(e) : EW(e, t)) === n);
+function LW(e, t, n) {
+ if (e && e.length) return e.find((e) => e && (typeof t == "function" ? t(e) : TW(e, t)) === n);
}
-var zW = (e) => e == null, BW = (e) => zW(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
-function VW(e) {
+var RW = (e) => e == null, zW = (e) => RW(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
+function BW(e) {
return e != null;
}
-function HW() {}
+function VW() {}
//#endregion
//#region node_modules/recharts/es6/cartesian/cartesianViewBoxToTrapezoid.js
-function UW(e) {
+function HW(e) {
if (e) return {
x: e.x,
y: e.y,
@@ -65883,7 +65883,7 @@ function UW(e) {
}
//#endregion
//#region node_modules/recharts/es6/cartesian/getCartesianPosition.js
-function WW(e, t) {
+function UW(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65893,30 +65893,30 @@ function WW(e, t) {
}
return n;
}
-function GW(e) {
+function WW(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? WW(Object(n), !0).forEach(function(t) {
- LMe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : WW(Object(n)).forEach(function(t) {
+ t % 2 ? UW(Object(n), !0).forEach(function(t) {
+ RMe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : UW(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function LMe(e, t, n) {
- return (t = RMe(t)) in e ? Object.defineProperty(e, t, {
+function RMe(e, t, n) {
+ return (t = zMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function RMe(e) {
- var t = zMe(e, "string");
+function zMe(e) {
+ var t = BMe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function zMe(e, t) {
+function BMe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65926,8 +65926,8 @@ function zMe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var KW = (e) => {
- var t = e.viewBox, n = e.position, r = e.offset, i = r === void 0 ? 0 : r, a = e.parentViewBox, o = e.clamp, s = UW(t), c = s.x, l = s.y, u = s.height, d = s.upperWidth, f = s.lowerWidth, p = c, m = c + (d - f) / 2, h = (p + m) / 2, g = (d + f) / 2, _ = p + d / 2, v = u >= 0 ? 1 : -1, y = v * i, b = v > 0 ? "end" : "start", x = v > 0 ? "start" : "end", S = d >= 0 ? 1 : -1, C = S * i, w = S > 0 ? "end" : "start", T = S > 0 ? "start" : "end", E = a;
+var GW = (e) => {
+ var t = e.viewBox, n = e.position, r = e.offset, i = r === void 0 ? 0 : r, a = e.parentViewBox, o = e.clamp, s = HW(t), c = s.x, l = s.y, u = s.height, d = s.upperWidth, f = s.lowerWidth, p = c, m = c + (d - f) / 2, h = (p + m) / 2, g = (d + f) / 2, _ = p + d / 2, v = u >= 0 ? 1 : -1, y = v * i, b = v > 0 ? "end" : "start", x = v > 0 ? "start" : "end", S = d >= 0 ? 1 : -1, C = S * i, w = S > 0 ? "end" : "start", T = S > 0 ? "start" : "end", E = a;
if (n === "top") {
var D = {
x: p + d / 2,
@@ -65968,98 +65968,98 @@ var KW = (e) => {
width: g,
height: u
} : {};
- return n === "insideLeft" ? GW({
+ return n === "insideLeft" ? WW({
x: h + C,
y: l + u / 2,
horizontalAnchor: T,
verticalAnchor: "middle"
- }, j) : n === "insideRight" ? GW({
+ }, j) : n === "insideRight" ? WW({
x: h + g - C,
y: l + u / 2,
horizontalAnchor: w,
verticalAnchor: "middle"
- }, j) : n === "insideTop" ? GW({
+ }, j) : n === "insideTop" ? WW({
x: p + d / 2,
y: l + y,
horizontalAnchor: "middle",
verticalAnchor: x
- }, j) : n === "insideBottom" ? GW({
+ }, j) : n === "insideBottom" ? WW({
x: m + f / 2,
y: l + u - y,
horizontalAnchor: "middle",
verticalAnchor: b
- }, j) : n === "insideTopLeft" ? GW({
+ }, j) : n === "insideTopLeft" ? WW({
x: p + C,
y: l + y,
horizontalAnchor: T,
verticalAnchor: x
- }, j) : n === "insideTopRight" ? GW({
+ }, j) : n === "insideTopRight" ? WW({
x: p + d - C,
y: l + y,
horizontalAnchor: w,
verticalAnchor: x
- }, j) : n === "insideBottomLeft" ? GW({
+ }, j) : n === "insideBottomLeft" ? WW({
x: m + C,
y: l + u - y,
horizontalAnchor: T,
verticalAnchor: b
- }, j) : n === "insideBottomRight" ? GW({
+ }, j) : n === "insideBottomRight" ? WW({
x: m + f - C,
y: l + u - y,
horizontalAnchor: w,
verticalAnchor: b
- }, j) : n && typeof n == "object" && (MW(n.x) || jW(n.x)) && (MW(n.y) || jW(n.y)) ? GW({
- x: c + FW(n.x, g),
- y: l + FW(n.y, u),
+ }, j) : n && typeof n == "object" && (jW(n.x) || AW(n.x)) && (jW(n.y) || AW(n.y)) ? WW({
+ x: c + PW(n.x, g),
+ y: l + PW(n.y, u),
horizontalAnchor: "end",
verticalAnchor: "end"
- }, j) : GW({
+ }, j) : WW({
x: _,
y: l + u / 2,
horizontalAnchor: "middle",
verticalAnchor: "middle"
}, j);
-}, BMe = [
+}, VMe = [
"top",
"left",
"right",
"bottom"
];
-function qW(e) {
- return e == null ? !1 : typeof e == "object" || BMe.includes(e);
+function KW(e) {
+ return e == null ? !1 : typeof e == "object" || VMe.includes(e);
}
//#endregion
//#region node_modules/recharts/es6/context/legendPortalContext.js
-var JW = /*#__PURE__*/ (0, b.createContext)(null), VMe = () => (0, b.useContext)(JW);
+var qW = /*#__PURE__*/ (0, b.createContext)(null), HMe = () => (0, b.useContext)(qW);
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/constant.js
-function YW(e) {
+function JW(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/math.js
-var XW = Math.cos, ZW = Math.sin, QW = Math.sqrt, $W = Math.PI;
-$W / 2;
-var eG = 2 * $W, tG = Math.PI, nG = 2 * tG, rG = 1e-6, HMe = nG - rG;
-function iG(e) {
+var YW = Math.cos, XW = Math.sin, ZW = Math.sqrt, QW = Math.PI;
+QW / 2;
+var $W = 2 * QW, eG = Math.PI, tG = 2 * eG, nG = 1e-6, UMe = tG - nG;
+function rG(e) {
this._ += e[0];
for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];
}
-function UMe(e) {
+function WMe(e) {
let t = Math.floor(e);
if (!(t >= 0)) throw Error(`invalid digits: ${e}`);
- if (t > 15) return iG;
+ if (t > 15) return rG;
let n = 10 ** t;
return function(e) {
this._ += e[0];
for (let t = 1, r = e.length; t < r; ++t) this._ += Math.round(arguments[t] * n) / n + e[t];
};
}
-var aG = class {
+var iG = class {
constructor(e) {
- this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? iG : UMe(e);
+ this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? rG : WMe(e);
}
moveTo(e, t) {
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;
@@ -66080,18 +66080,18 @@ var aG = class {
if (e = +e, t = +t, n = +n, r = +r, i = +i, i < 0) throw Error(`negative radius: ${i}`);
let a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;
if (this._x1 === null) this._append`M${this._x1 = e},${this._y1 = t}`;
- else if (d > rG) {
- if (!(Math.abs(u * s - c * l) > rG) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;
+ else if (d > nG) {
+ if (!(Math.abs(u * s - c * l) > nG) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;
else {
- let 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((tG - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > rG && this._append`L${e + y * l},${t + y * u}`, this._append`A${i},${i},0,0,${+(u * f > l * p)},${this._x1 = e + b * s},${this._y1 = t + b * c}`;
+ let 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((eG - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > nG && this._append`L${e + y * l},${t + y * u}`, this._append`A${i},${i},0,0,${+(u * f > l * p)},${this._x1 = e + b * s},${this._y1 = t + b * c}`;
}
}
}
arc(e, t, n, r, i, a) {
if (e = +e, t = +t, n = +n, a = !!a, n < 0) throw Error(`negative radius: ${n}`);
let 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;
- this._x1 === null ? this._append`M${c},${l}` : (Math.abs(this._x1 - c) > rG || Math.abs(this._y1 - l) > rG) && this._append`L${c},${l}`, n && (d < 0 && (d = d % nG + nG), d > HMe ? this._append`A${n},${n},0,1,${u},${e - o},${t - s}A${n},${n},0,1,${u},${this._x1 = c},${this._y1 = l}` : d > rG && this._append`A${n},${n},0,${+(d >= tG)},${u},${this._x1 = e + n * Math.cos(i)},${this._y1 = t + n * Math.sin(i)}`);
+ this._x1 === null ? this._append`M${c},${l}` : (Math.abs(this._x1 - c) > nG || Math.abs(this._y1 - l) > nG) && this._append`L${c},${l}`, n && (d < 0 && (d = d % tG + tG), d > UMe ? this._append`A${n},${n},0,1,${u},${e - o},${t - s}A${n},${n},0,1,${u},${this._x1 = c},${this._y1 = l}` : d > nG && this._append`A${n},${n},0,${+(d >= eG)},${u},${this._x1 = e + n * Math.cos(i)},${this._y1 = t + n * Math.sin(i)}`);
}
rect(e, t, n, r) {
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}h${n = +n}v${+r}h${-n}Z`;
@@ -66100,10 +66100,10 @@ var aG = class {
return this._;
}
};
-aG.prototype;
+iG.prototype;
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/path.js
-function oG(e) {
+function aG(e) {
let t = 3;
return e.digits = function(n) {
if (!arguments.length) return t;
@@ -66114,18 +66114,18 @@ function oG(e) {
t = e;
}
return e;
- }, () => new aG(t);
+ }, () => new iG(t);
}
Array.prototype.slice;
-function sG(e) {
+function oG(e) {
return typeof e == "object" && "length" in e ? e : Array.from(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/linear.js
-function cG(e) {
+function sG(e) {
this._context = e;
}
-cG.prototype = {
+sG.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -66148,33 +66148,33 @@ cG.prototype = {
}
}
};
-function lG(e) {
- return new cG(e);
+function cG(e) {
+ return new sG(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/point.js
-function uG(e) {
+function lG(e) {
return e[0];
}
-function dG(e) {
+function uG(e) {
return e[1];
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/line.js
-function fG(e, t) {
- var n = YW(!0), r = null, i = lG, a = null, o = oG(s);
- e = typeof e == "function" ? e : e === void 0 ? uG : YW(e), t = typeof t == "function" ? t : t === void 0 ? dG : YW(t);
+function dG(e, t) {
+ var n = JW(!0), r = null, i = cG, a = null, o = aG(s);
+ e = typeof e == "function" ? e : e === void 0 ? lG : JW(e), t = typeof t == "function" ? t : t === void 0 ? uG : JW(t);
function s(s) {
- var c, l = (s = sG(s)).length, u, d = !1, f;
+ var c, l = (s = oG(s)).length, u, d = !1, f;
for (r ?? (a = i(f = o())), c = 0; c <= l; ++c) !(c < l && n(u = s[c], c, s)) === d && ((d = !d) ? a.lineStart() : a.lineEnd()), d && a.point(+e(u, c, s), +t(u, c, s));
if (f) return a = null, f + "" || null;
}
return s.x = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : YW(+t), s) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : JW(+t), s) : e;
}, s.y = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : YW(+e), s) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : JW(+e), s) : t;
}, s.defined = function(e) {
- return arguments.length ? (n = typeof e == "function" ? e : YW(!!e), s) : n;
+ return arguments.length ? (n = typeof e == "function" ? e : JW(!!e), s) : n;
}, s.curve = function(e) {
return arguments.length ? (i = e, r != null && (a = i(r)), s) : i;
}, s.context = function(e) {
@@ -66183,11 +66183,11 @@ function fG(e, t) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/area.js
-function pG(e, t, n) {
- var r = null, i = YW(!0), a = null, o = lG, s = null, c = oG(l);
- e = typeof e == "function" ? e : e === void 0 ? uG : YW(+e), t = typeof t == "function" ? t : YW(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? dG : YW(+n);
+function fG(e, t, n) {
+ var r = null, i = JW(!0), a = null, o = cG, s = null, c = aG(l);
+ e = typeof e == "function" ? e : e === void 0 ? lG : JW(+e), t = typeof t == "function" ? t : JW(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? uG : JW(+n);
function l(l) {
- var u, d, f, p = (l = sG(l)).length, m, h = !1, g, _ = Array(p), v = Array(p);
+ var u, d, f, p = (l = oG(l)).length, m, h = !1, g, _ = Array(p), v = Array(p);
for (a ?? (s = o(g = c())), u = 0; u <= p; ++u) {
if (!(u < p && i(m = l[u], u, l)) === h) {
if (h = !h) d = u, s.areaStart(), s.lineStart();
@@ -66201,20 +66201,20 @@ function pG(e, t, n) {
if (g) return s = null, g + "" || null;
}
function u() {
- return fG().defined(i).curve(o).context(a);
+ return dG().defined(i).curve(o).context(a);
}
return l.x = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : YW(+t), r = null, l) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : JW(+t), r = null, l) : e;
}, l.x0 = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : YW(+t), l) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : JW(+t), l) : e;
}, l.x1 = function(e) {
- return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : YW(+e), l) : r;
+ return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : JW(+e), l) : r;
}, l.y = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : YW(+e), n = null, l) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : JW(+e), n = null, l) : t;
}, l.y0 = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : YW(+e), l) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : JW(+e), l) : t;
}, l.y1 = function(e) {
- return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : YW(+e), l) : n;
+ return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : JW(+e), l) : n;
}, l.lineX0 = l.lineY0 = function() {
return u().x(e).y(t);
}, l.lineY1 = function() {
@@ -66222,7 +66222,7 @@ function pG(e, t, n) {
}, l.lineX1 = function() {
return u().x(r).y(t);
}, l.defined = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : YW(!!e), l) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : JW(!!e), l) : i;
}, l.curve = function(e) {
return arguments.length ? (o = e, a != null && (s = o(a)), l) : o;
}, l.context = function(e) {
@@ -66231,7 +66231,7 @@ function pG(e, t, n) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/bump.js
-var mG = class {
+var pG = class {
constructor(e, t) {
this._context = e, this._x = t;
}
@@ -66258,70 +66258,70 @@ var mG = class {
this._x0 = e, this._y0 = t;
}
};
-function WMe(e) {
- return new mG(e, !0);
-}
function GMe(e) {
- return new mG(e, !1);
+ return new pG(e, !0);
+}
+function KMe(e) {
+ return new pG(e, !1);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol/circle.js
-var hG = { draw(e, t) {
- let n = QW(t / $W);
- e.moveTo(n, 0), e.arc(0, 0, n, 0, eG);
-} }, KMe = { draw(e, t) {
- let n = QW(t / 5) / 2;
+var mG = { draw(e, t) {
+ let n = ZW(t / QW);
+ e.moveTo(n, 0), e.arc(0, 0, n, 0, $W);
+} }, qMe = { draw(e, t) {
+ let n = ZW(t / 5) / 2;
e.moveTo(-3 * n, -n), e.lineTo(-n, -n), e.lineTo(-n, -3 * n), e.lineTo(n, -3 * n), e.lineTo(n, -n), e.lineTo(3 * n, -n), e.lineTo(3 * n, n), e.lineTo(n, n), e.lineTo(n, 3 * n), e.lineTo(-n, 3 * n), e.lineTo(-n, n), e.lineTo(-3 * n, n), e.closePath();
-} }, gG = QW(1 / 3), qMe = gG * 2, JMe = { draw(e, t) {
- let n = QW(t / qMe), r = n * gG;
+} }, hG = ZW(1 / 3), JMe = hG * 2, YMe = { draw(e, t) {
+ let n = ZW(t / JMe), r = n * hG;
e.moveTo(0, -n), e.lineTo(r, 0), e.lineTo(0, n), e.lineTo(-r, 0), e.closePath();
-} }, YMe = { draw(e, t) {
- let n = QW(t), r = -n / 2;
+} }, XMe = { draw(e, t) {
+ let n = ZW(t), r = -n / 2;
e.rect(r, r, n, n);
-} }, XMe = .8908130915292852, _G = ZW($W / 10) / ZW(7 * $W / 10), ZMe = ZW(eG / 10) * _G, QMe = -XW(eG / 10) * _G, $Me = { draw(e, t) {
- let n = QW(t * XMe), r = ZMe * n, i = QMe * n;
+} }, ZMe = .8908130915292852, gG = XW(QW / 10) / XW(7 * QW / 10), QMe = XW($W / 10) * gG, $Me = -YW($W / 10) * gG, eNe = { draw(e, t) {
+ let n = ZW(t * ZMe), r = QMe * n, i = $Me * n;
e.moveTo(0, -n), e.lineTo(r, i);
for (let t = 1; t < 5; ++t) {
- let a = eG * t / 5, o = XW(a), s = ZW(a);
+ let a = $W * t / 5, o = YW(a), s = XW(a);
e.lineTo(s * n, -o * n), e.lineTo(o * r - s * i, s * r + o * i);
}
e.closePath();
-} }, vG = QW(3), eNe = { draw(e, t) {
- let n = -QW(t / (vG * 3));
- e.moveTo(0, n * 2), e.lineTo(-vG * n, -n), e.lineTo(vG * n, -n), e.closePath();
-} }, yG = -.5, bG = QW(3) / 2, xG = 1 / QW(12), tNe = (xG / 2 + 1) * 3, nNe = { draw(e, t) {
- let n = QW(t / tNe), r = n / 2, i = n * xG, a = r, o = n * xG + n, s = -a, c = o;
- e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(yG * r - bG * i, bG * r + yG * i), e.lineTo(yG * a - bG * o, bG * a + yG * o), e.lineTo(yG * s - bG * c, bG * s + yG * c), e.lineTo(yG * r + bG * i, yG * i - bG * r), e.lineTo(yG * a + bG * o, yG * o - bG * a), e.lineTo(yG * s + bG * c, yG * c - bG * s), e.closePath();
+} }, _G = ZW(3), tNe = { draw(e, t) {
+ let n = -ZW(t / (_G * 3));
+ e.moveTo(0, n * 2), e.lineTo(-_G * n, -n), e.lineTo(_G * n, -n), e.closePath();
+} }, vG = -.5, yG = ZW(3) / 2, bG = 1 / ZW(12), nNe = (bG / 2 + 1) * 3, rNe = { draw(e, t) {
+ let n = ZW(t / nNe), r = n / 2, i = n * bG, a = r, o = n * bG + n, s = -a, c = o;
+ e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(vG * r - yG * i, yG * r + vG * i), e.lineTo(vG * a - yG * o, yG * a + vG * o), e.lineTo(vG * s - yG * c, yG * s + vG * c), e.lineTo(vG * r + yG * i, vG * i - yG * r), e.lineTo(vG * a + yG * o, vG * o - yG * a), e.lineTo(vG * s + yG * c, vG * c - yG * s), e.closePath();
} };
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol.js
-function rNe(e, t) {
- let n = null, r = oG(i);
- e = typeof e == "function" ? e : YW(e || hG), t = typeof t == "function" ? t : YW(t === void 0 ? 64 : +t);
+function iNe(e, t) {
+ let n = null, r = aG(i);
+ e = typeof e == "function" ? e : JW(e || mG), t = typeof t == "function" ? t : JW(t === void 0 ? 64 : +t);
function i() {
let i;
if (n ||= i = r(), e.apply(this, arguments).draw(n, +t.apply(this, arguments)), i) return n = null, i + "" || null;
}
return i.type = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : YW(t), i) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : JW(t), i) : e;
}, i.size = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : YW(+e), i) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : JW(+e), i) : t;
}, i.context = function(e) {
return arguments.length ? (n = e ?? null, i) : n;
}, i;
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/noop.js
-function SG() {}
+function xG() {}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basis.js
-function CG(e, t, n) {
+function SG(e, t, n) {
e._context.bezierCurveTo((2 * e._x0 + e._x1) / 3, (2 * e._y0 + e._y1) / 3, (e._x0 + 2 * e._x1) / 3, (e._y0 + 2 * e._y1) / 3, (e._x0 + 4 * e._x1 + t) / 6, (e._y0 + 4 * e._y1 + n) / 6);
}
-function wG(e) {
+function CG(e) {
this._context = e;
}
-wG.prototype = {
+CG.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -66333,7 +66333,7 @@ wG.prototype = {
},
lineEnd: function() {
switch (this._point) {
- case 3: CG(this, this._x1, this._y1);
+ case 3: SG(this, this._x1, this._y1);
case 2: this._context.lineTo(this._x1, this._y1);
}
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
@@ -66347,22 +66347,22 @@ wG.prototype = {
this._point = 2;
break;
case 2: this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
- default: CG(this, e, t);
+ default: SG(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function iNe(e) {
- return new wG(e);
+function aNe(e) {
+ return new CG(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisClosed.js
-function TG(e) {
+function wG(e) {
this._context = e;
}
-TG.prototype = {
- areaStart: SG,
- areaEnd: SG,
+wG.prototype = {
+ areaStart: xG,
+ areaEnd: xG,
lineStart: function() {
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0;
},
@@ -66388,20 +66388,20 @@ TG.prototype = {
case 2:
this._point = 3, this._x4 = e, this._y4 = t, this._context.moveTo((this._x0 + 4 * this._x1 + e) / 6, (this._y0 + 4 * this._y1 + t) / 6);
break;
- default: CG(this, e, t);
+ default: SG(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function aNe(e) {
- return new TG(e);
+function oNe(e) {
+ return new wG(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisOpen.js
-function EG(e) {
+function TG(e) {
this._context = e;
}
-EG.prototype = {
+TG.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -66428,22 +66428,22 @@ EG.prototype = {
this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);
break;
case 3: this._point = 4;
- default: CG(this, e, t);
+ default: SG(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function oNe(e) {
- return new EG(e);
+function sNe(e) {
+ return new TG(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/linearClosed.js
-function DG(e) {
+function EG(e) {
this._context = e;
}
-DG.prototype = {
- areaStart: SG,
- areaEnd: SG,
+EG.prototype = {
+ areaStart: xG,
+ areaEnd: xG,
lineStart: function() {
this._point = 0;
},
@@ -66454,30 +66454,30 @@ DG.prototype = {
e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
}
};
-function sNe(e) {
- return new DG(e);
+function cNe(e) {
+ return new EG(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/monotone.js
-function OG(e) {
+function DG(e) {
return e < 0 ? -1 : 1;
}
-function kG(e, t, n) {
+function OG(e, t, n) {
var r = e._x1 - e._x0, i = t - e._x1, a = (e._y1 - e._y0) / (r || i < 0 && -0), o = (n - e._y1) / (i || r < 0 && -0), s = (a * i + o * r) / (r + i);
- return (OG(a) + OG(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
+ return (DG(a) + DG(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
}
-function AG(e, t) {
+function kG(e, t) {
var n = e._x1 - e._x0;
return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;
}
-function jG(e, t, n) {
+function AG(e, t, n) {
var r = e._x0, i = e._y0, a = e._x1, o = e._y1, s = (a - r) / 3;
e._context.bezierCurveTo(r + s, i + s * t, a - s, o - s * n, a, o);
}
-function MG(e) {
+function jG(e) {
this._context = e;
}
-MG.prototype = {
+jG.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -66492,7 +66492,7 @@ MG.prototype = {
case 2:
this._context.lineTo(this._x1, this._y1);
break;
- case 3: jG(this, this._t0, AG(this, this._t0));
+ case 3: AG(this, this._t0, kG(this, this._t0));
}
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
},
@@ -66507,24 +66507,24 @@ MG.prototype = {
this._point = 2;
break;
case 2:
- this._point = 3, jG(this, AG(this, n = kG(this, e, t)), n);
+ this._point = 3, AG(this, kG(this, n = OG(this, e, t)), n);
break;
- default: jG(this, this._t0, n = kG(this, e, t));
+ default: AG(this, this._t0, n = OG(this, e, t));
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;
}
}
};
-function NG(e) {
- this._context = new PG(e);
+function MG(e) {
+ this._context = new NG(e);
}
-(NG.prototype = Object.create(MG.prototype)).point = function(e, t) {
- MG.prototype.point.call(this, t, e);
+(MG.prototype = Object.create(jG.prototype)).point = function(e, t) {
+ jG.prototype.point.call(this, t, e);
};
-function PG(e) {
+function NG(e) {
this._context = e;
}
-PG.prototype = {
+NG.prototype = {
moveTo: function(e, t) {
this._context.moveTo(t, e);
},
@@ -66538,18 +66538,18 @@ PG.prototype = {
this._context.bezierCurveTo(t, e, r, n, a, i);
}
};
-function cNe(e) {
- return new MG(e);
-}
function lNe(e) {
- return new NG(e);
+ return new jG(e);
+}
+function uNe(e) {
+ return new MG(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/natural.js
-function FG(e) {
+function PG(e) {
this._context = e;
}
-FG.prototype = {
+PG.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -66563,7 +66563,7 @@ FG.prototype = {
var e = this._x, t = this._y, n = e.length;
if (n) {
if (this._line ? this._context.lineTo(e[0], t[0]) : this._context.moveTo(e[0], t[0]), n === 2) this._context.lineTo(e[1], t[1]);
- else for (var r = IG(e), i = IG(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);
+ else for (var r = FG(e), i = FG(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);
}
(this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
},
@@ -66571,7 +66571,7 @@ FG.prototype = {
this._x.push(+e), this._y.push(+t);
}
};
-function IG(e) {
+function FG(e) {
var t, n = e.length - 1, r, i = Array(n), a = Array(n), o = Array(n);
for (i[0] = 0, a[0] = 2, o[0] = e[0] + 2 * e[1], t = 1; t < n - 1; ++t) i[t] = 1, a[t] = 4, o[t] = 4 * e[t] + 2 * e[t + 1];
for (i[n - 1] = 2, a[n - 1] = 7, o[n - 1] = 8 * e[n - 1] + e[n], t = 1; t < n; ++t) r = i[t] / a[t - 1], a[t] -= r, o[t] -= r * o[t - 1];
@@ -66579,15 +66579,15 @@ function IG(e) {
for (a[n - 1] = (e[n] + i[n - 1]) / 2, t = 0; t < n - 1; ++t) a[t] = 2 * e[t + 1] - i[t + 1];
return [i, a];
}
-function uNe(e) {
- return new FG(e);
+function dNe(e) {
+ return new PG(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/step.js
-function LG(e, t) {
+function IG(e, t) {
this._context = e, this._t = t;
}
-LG.prototype = {
+IG.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -66615,78 +66615,78 @@ LG.prototype = {
this._x = e, this._y = t;
}
};
-function dNe(e) {
- return new LG(e, .5);
-}
function fNe(e) {
- return new LG(e, 0);
+ return new IG(e, .5);
}
function pNe(e) {
- return new LG(e, 1);
+ return new IG(e, 0);
+}
+function mNe(e) {
+ return new IG(e, 1);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/none.js
-function RG(e, t) {
+function LG(e, t) {
if ((o = e.length) > 1) for (var n = 1, r, i, a = e[t[0]], o, s = a.length; n < o; ++n) for (i = a, a = e[t[n]], r = 0; r < s; ++r) a[r][1] += a[r][0] = isNaN(i[r][1]) ? i[r][0] : i[r][1];
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/order/none.js
-function zG(e) {
+function RG(e) {
for (var t = e.length, n = Array(t); --t >= 0;) n[t] = t;
return n;
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/stack.js
-function mNe(e, t) {
+function hNe(e, t) {
return e[t];
}
-function hNe(e) {
+function gNe(e) {
let t = [];
return t.key = e, t;
}
-function gNe() {
- var e = YW([]), t = zG, n = RG, r = mNe;
+function _Ne() {
+ var e = JW([]), t = RG, n = LG, r = hNe;
function i(i) {
- var a = Array.from(e.apply(this, arguments), hNe), o, s = a.length, c = -1, l;
+ var a = Array.from(e.apply(this, arguments), gNe), o, s = a.length, c = -1, l;
for (let e of i) for (o = 0, ++c; o < s; ++o) (a[o][c] = [0, +r(e, a[o].key, c, i)]).data = e;
- for (o = 0, l = sG(t(a)); o < s; ++o) a[l[o]].index = o;
+ for (o = 0, l = oG(t(a)); o < s; ++o) a[l[o]].index = o;
return n(a, l), a;
}
return i.keys = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : YW(Array.from(t)), i) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : JW(Array.from(t)), i) : e;
}, i.value = function(e) {
- return arguments.length ? (r = typeof e == "function" ? e : YW(+e), i) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : JW(+e), i) : r;
}, i.order = function(e) {
- return arguments.length ? (t = e == null ? zG : typeof e == "function" ? e : YW(Array.from(e)), i) : t;
+ return arguments.length ? (t = e == null ? RG : typeof e == "function" ? e : JW(Array.from(e)), i) : t;
}, i.offset = function(e) {
- return arguments.length ? (n = e ?? RG, i) : n;
+ return arguments.length ? (n = e ?? LG, i) : n;
}, i;
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/expand.js
-function _Ne(e, t) {
+function vNe(e, t) {
if ((r = e.length) > 0) {
for (var n, r, i = 0, a = e[0].length, o; i < a; ++i) {
for (o = n = 0; n < r; ++n) o += e[n][i][1] || 0;
if (o) for (n = 0; n < r; ++n) e[n][i][1] /= o;
}
- RG(e, t);
+ LG(e, t);
}
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/silhouette.js
-function vNe(e, t) {
+function yNe(e, t) {
if ((i = e.length) > 0) {
for (var n = 0, r = e[t[0]], i, a = r.length; n < a; ++n) {
for (var o = 0, s = 0; o < i; ++o) s += e[o][n][1] || 0;
r[n][1] += r[n][0] = -s / 2;
}
- RG(e, t);
+ LG(e, t);
}
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/wiggle.js
-function yNe(e, t) {
+function bNe(e, t) {
if ((o = e.length) > 0 && (a = (i = e[t[0]]).length) > 0) {
for (var n = 0, r = 1, i, a, o; r < a; ++r) {
for (var s = 0, c = 0, l = 0; s < o; ++s) {
@@ -66698,26 +66698,26 @@ function yNe(e, t) {
}
i[r - 1][1] += i[r - 1][0] = n, c && (n -= l / c);
}
- i[r - 1][1] += i[r - 1][0] = n, RG(e, t);
+ i[r - 1][1] += i[r - 1][0] = n, LG(e, t);
}
}
//#endregion
//#region node_modules/recharts/es6/shape/Symbols.js
-var bNe = [
+var xNe = [
"type",
"size",
"sizeType"
];
-function BG() {
- return BG = Object.assign ? Object.assign.bind() : function(e) {
+function zG() {
+ return zG = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, BG.apply(null, arguments);
+ }, zG.apply(null, arguments);
}
-function VG(e, t) {
+function BG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -66727,30 +66727,30 @@ function VG(e, t) {
}
return n;
}
-function HG(e) {
+function VG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? VG(Object(n), !0).forEach(function(t) {
- xNe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : VG(Object(n)).forEach(function(t) {
+ t % 2 ? BG(Object(n), !0).forEach(function(t) {
+ SNe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : BG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function xNe(e, t, n) {
- return (t = SNe(t)) in e ? Object.defineProperty(e, t, {
+function SNe(e, t, n) {
+ return (t = CNe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function SNe(e) {
- var t = CNe(e, "string");
+function CNe(e) {
+ var t = wNe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function CNe(e, t) {
+function wNe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66760,16 +66760,16 @@ function CNe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function wNe(e, t) {
+function TNe(e, t) {
if (e == null) return {};
- var n, r, i = TNe(e, t);
+ var n, r, i = ENe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function TNe(e, t) {
+function ENe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -66778,68 +66778,68 @@ function TNe(e, t) {
}
return n;
}
-var UG = {
- symbolCircle: hG,
- symbolCross: KMe,
- symbolDiamond: JMe,
- symbolSquare: YMe,
- symbolStar: $Me,
- symbolTriangle: eNe,
- symbolWye: nNe
-}, ENe = Math.PI / 180, DNe = (e) => UG[`symbol${BW(e)}`] || hG, ONe = (e, t, n) => {
+var HG = {
+ symbolCircle: mG,
+ symbolCross: qMe,
+ symbolDiamond: YMe,
+ symbolSquare: XMe,
+ symbolStar: eNe,
+ symbolTriangle: tNe,
+ symbolWye: rNe
+}, DNe = Math.PI / 180, ONe = (e) => HG[`symbol${zW(e)}`] || mG, kNe = (e, t, n) => {
if (t === "area") return e;
switch (n) {
case "cross": return 5 * e * e / 9;
case "diamond": return .5 * e * e / Math.sqrt(3);
case "square": return e * e;
case "star":
- var r = 18 * ENe;
+ var r = 18 * DNe;
return 1.25 * e * e * (Math.tan(r) - Math.tan(r * 2) * Math.tan(r) ** 2);
case "triangle": return Math.sqrt(3) * e * e / 4;
case "wye": return (21 - 10 * Math.sqrt(3)) * e * e / 8;
default: return Math.PI * e * e / 4;
}
-}, kNe = (e, t) => {
- UG[`symbol${BW(e)}`] = t;
-}, WG = (e) => {
- var t = e.type, n = t === void 0 ? "circle" : t, r = e.size, i = r === void 0 ? 64 : r, a = e.sizeType, o = a === void 0 ? "area" : a, s = HG(HG({}, wNe(e, bNe)), {}, {
+}, ANe = (e, t) => {
+ HG[`symbol${zW(e)}`] = t;
+}, UG = (e) => {
+ var t = e.type, n = t === void 0 ? "circle" : t, r = e.size, i = r === void 0 ? 64 : r, a = e.sizeType, o = a === void 0 ? "area" : a, s = VG(VG({}, TNe(e, xNe)), {}, {
type: n,
size: i,
sizeType: o
}), c = "circle";
typeof n == "string" && (c = n);
var l = () => {
- var e = DNe(c), t = rNe().type(e).size(ONe(i, o, c))();
+ var e = ONe(c), t = iNe().type(e).size(kNe(i, o, c))();
if (t !== null) return t;
- }, u = s.className, d = s.cx, f = s.cy, p = hW(s);
- return MW(d) && MW(f) && MW(i) ? /*#__PURE__*/ b.createElement("path", BG({}, p, {
- className: dv("recharts-symbols", u),
+ }, u = s.className, d = s.cx, f = s.cy, p = mW(s);
+ return jW(d) && jW(f) && jW(i) ? /*#__PURE__*/ b.createElement("path", zG({}, p, {
+ className: fv("recharts-symbols", u),
transform: `translate(${d}, ${f})`,
d: l()
})) : null;
};
-WG.registerSymbol = kNe;
+UG.registerSymbol = ANe;
//#endregion
//#region node_modules/recharts/es6/util/types.js
-var GG = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, KG = (e, t) => {
+var WG = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, GG = (e, t) => {
if (!e || typeof e == "function" || typeof e == "boolean") return null;
var n = e;
if (/*#__PURE__*/ (0, b.isValidElement)(e) && (n = e.props), typeof n != "object" && typeof n != "function") return null;
var r = {};
return Object.keys(n).forEach((e) => {
- uW(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
+ lW(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
}), r;
-}, ANe = (e, t, n) => (r) => (e(t, n, r), null), qG = (e, t, n) => {
+}, jNe = (e, t, n) => (r) => (e(t, n, r), null), KG = (e, t, n) => {
if (e === null || typeof e != "object" && typeof e != "function") return null;
var r = null;
return Object.keys(e).forEach((i) => {
var a = e[i];
- uW(i) && typeof a == "function" && (r ||= {}, r[i] = ANe(a, t, n));
+ lW(i) && typeof a == "function" && (r ||= {}, r[i] = jNe(a, t, n));
}), r;
};
//#endregion
//#region node_modules/recharts/es6/util/resolveDefaultProps.js
-function JG(e, t) {
+function qG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -66849,30 +66849,30 @@ function JG(e, t) {
}
return n;
}
-function jNe(e) {
+function MNe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? JG(Object(n), !0).forEach(function(t) {
- MNe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : JG(Object(n)).forEach(function(t) {
+ t % 2 ? qG(Object(n), !0).forEach(function(t) {
+ NNe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : qG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function MNe(e, t, n) {
- return (t = NNe(t)) in e ? Object.defineProperty(e, t, {
+function NNe(e, t, n) {
+ return (t = PNe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function NNe(e) {
- var t = PNe(e, "string");
+function PNe(e) {
+ var t = FNe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function PNe(e, t) {
+function FNe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66882,22 +66882,22 @@ function PNe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function YG(e, t) {
- var n = jNe({}, e), r = t;
+function JG(e, t) {
+ var n = MNe({}, e), r = t;
return Object.keys(t).reduce((e, t) => (e[t] === void 0 && r[t] !== void 0 && (e[t] = r[t]), e), n);
}
//#endregion
//#region node_modules/recharts/es6/component/DefaultLegendContent.js
-function XG() {
- return XG = Object.assign ? Object.assign.bind() : function(e) {
+function YG() {
+ return YG = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, XG.apply(null, arguments);
+ }, YG.apply(null, arguments);
}
-function ZG(e, t) {
+function XG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -66907,30 +66907,30 @@ function ZG(e, t) {
}
return n;
}
-function QG(e) {
+function ZG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? ZG(Object(n), !0).forEach(function(t) {
- FNe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ZG(Object(n)).forEach(function(t) {
+ t % 2 ? XG(Object(n), !0).forEach(function(t) {
+ INe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : XG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function FNe(e, t, n) {
- return (t = INe(t)) in e ? Object.defineProperty(e, t, {
+function INe(e, t, n) {
+ return (t = LNe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function INe(e) {
- var t = LNe(e, "string");
+function LNe(e) {
+ var t = RNe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function LNe(e, t) {
+function RNe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66940,7 +66940,7 @@ function LNe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var $G = 32, RNe = {
+var QG = 32, zNe = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -66948,20 +66948,20 @@ var $G = 32, RNe = {
verticalAlign: "middle",
labelStyle: {}
};
-function zNe(e) {
+function BNe(e) {
if (typeof e == "object" && e && "strokeDasharray" in e) return String(e.strokeDasharray);
}
-function BNe(e) {
- var t = e.data, n = e.iconType, r = e.inactiveColor, i = $G / 2, a = $G / 6, o = $G / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
+function VNe(e) {
+ var t = e.data, n = e.iconType, r = e.inactiveColor, i = QG / 2, a = QG / 6, o = QG / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
if (c === "none") return null;
if (c === "plainline") return /*#__PURE__*/ b.createElement("line", {
strokeWidth: 4,
fill: "none",
stroke: s,
- strokeDasharray: zNe(t.payload),
+ strokeDasharray: BNe(t.payload),
x1: 0,
y1: i,
- x2: $G,
+ x2: QG,
y2: i,
className: "recharts-legend-icon"
});
@@ -66971,35 +66971,35 @@ function BNe(e) {
stroke: s,
d: `M0,${i}h${o}
A${a},${a},0,1,1,${2 * o},${i}
- H${$G}M${2 * o},${i}
+ H${QG}M${2 * o},${i}
A${a},${a},0,1,1,${o},${i}`,
className: "recharts-legend-icon"
});
if (c === "rect") return /*#__PURE__*/ b.createElement("path", {
stroke: "none",
fill: s,
- d: `M0,${$G / 8}h${$G}v${$G * 3 / 4}h${-$G}z`,
+ d: `M0,${QG / 8}h${QG}v${QG * 3 / 4}h${-QG}z`,
className: "recharts-legend-icon"
});
if (/*#__PURE__*/ b.isValidElement(t.legendIcon)) {
- var l = QG({}, t);
+ var l = ZG({}, t);
return delete l.legendIcon, /*#__PURE__*/ b.cloneElement(t.legendIcon, l);
}
- return /*#__PURE__*/ b.createElement(WG, {
+ return /*#__PURE__*/ b.createElement(UG, {
fill: s,
cx: i,
cy: i,
- size: $G,
+ size: QG,
sizeType: "diameter",
type: c
});
}
-function VNe(e) {
+function HNe(e) {
var t = e.payload, n = e.iconSize, r = e.layout, i = e.formatter, a = e.inactiveColor, o = e.iconType, s = e.labelStyle, c = {
x: 0,
y: 0,
- width: $G,
- height: $G
+ width: QG,
+ height: QG
}, l = {
display: r === "horizontal" ? "inline-block" : "block",
marginRight: 10,
@@ -67010,26 +67010,26 @@ function VNe(e) {
marginRight: 4
};
return t.map((t, r) => {
- var d = t.formatter || i, f = dv({
+ var d = t.formatter || i, f = fv({
"recharts-legend-item": !0,
[`legend-item-${r}`]: !0,
inactive: t.inactive
});
if (t.type === "none") return null;
- var p = typeof s == "object" ? QG({}, s) : {};
+ var p = typeof s == "object" ? ZG({}, s) : {};
p.color = t.inactive ? a : p.color || t.color, p.whiteSpace ??= "normal", p.overflowWrap ??= "break-word";
var m = d ? d(t.value, t, r) : t.value;
- return /*#__PURE__*/ b.createElement("li", XG({
+ return /*#__PURE__*/ b.createElement("li", YG({
className: f,
style: l,
key: `legend-item-${r}`
- }, qG(e, t, r)), /*#__PURE__*/ b.createElement(_W, {
+ }, KG(e, t, r)), /*#__PURE__*/ b.createElement(gW, {
width: n,
height: n,
viewBox: c,
style: u,
"aria-label": t.value == null ? "legend icon" : `${t.value} legend icon`
- }, /*#__PURE__*/ b.createElement(BNe, {
+ }, /*#__PURE__*/ b.createElement(VNe, {
data: t,
iconType: o,
inactiveColor: a
@@ -67039,8 +67039,8 @@ function VNe(e) {
}, m));
});
}
-var HNe = (e) => {
- var t = YG(e, RNe), n = t.payload, r = t.layout, i = t.align;
+var UNe = (e) => {
+ var t = JG(e, zNe), n = t.payload, r = t.layout, i = t.align;
if (!n || !n.length) return null;
var a = {
padding: 0,
@@ -67050,11 +67050,11 @@ var HNe = (e) => {
return /*#__PURE__*/ b.createElement("ul", {
className: "recharts-default-legend",
style: a
- }, /*#__PURE__*/ b.createElement(VNe, XG({}, t, { payload: n })));
+ }, /*#__PURE__*/ b.createElement(HNe, YG({}, t, { payload: n })));
};
//#endregion
//#region node_modules/es-toolkit/dist/array/uniqBy.mjs
-function UNe(e, t) {
+function WNe(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r = 0; r < e.length; r++) {
let i = e[r], a = t(i, r, e);
@@ -67064,77 +67064,77 @@ function UNe(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/function/ary.mjs
-function WNe(e, t) {
+function GNe(e, t) {
return function(...n) {
return e.apply(this, n.slice(0, t));
};
}
//#endregion
//#region node_modules/es-toolkit/dist/function/identity.mjs
-function eK(e) {
+function $G(e) {
return e;
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isLength.mjs
-function GNe(e) {
+function KNe(e) {
return Number.isSafeInteger(e) && e >= 0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
-function tK(e) {
- return e != null && typeof e != "function" && GNe(e.length);
+function eK(e) {
+ return e != null && typeof e != "function" && KNe(e.length);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/property.mjs
-function KNe(e) {
+function qNe(e) {
return function(t) {
- return EW(t, e);
+ return TW(t, e);
};
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
-function nK(e) {
+function tK(e) {
return e == null || typeof e != "object" && typeof e != "function";
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
-function qNe(e) {
+function JNe(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
-function rK(e) {
+function nK(e) {
return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
-function iK(e) {
+function rK(e) {
return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/tags.mjs
-var aK = "[object RegExp]", oK = "[object String]", sK = "[object Number]", cK = "[object Boolean]", lK = "[object Arguments]", uK = "[object Symbol]", dK = "[object Date]", fK = "[object Map]", pK = "[object Set]", mK = "[object Array]", JNe = "[object Function]", hK = "[object ArrayBuffer]", gK = "[object Object]", YNe = "[object Error]", _K = "[object DataView]", vK = "[object Uint8Array]", yK = "[object Uint8ClampedArray]", bK = "[object Uint16Array]", xK = "[object Uint32Array]", XNe = "[object BigUint64Array]", SK = "[object Int8Array]", CK = "[object Int16Array]", wK = "[object Int32Array]", ZNe = "[object BigInt64Array]", TK = "[object Float32Array]", EK = "[object Float64Array]", DK = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
+var iK = "[object RegExp]", aK = "[object String]", oK = "[object Number]", sK = "[object Boolean]", cK = "[object Arguments]", lK = "[object Symbol]", uK = "[object Date]", dK = "[object Map]", fK = "[object Set]", pK = "[object Array]", YNe = "[object Function]", mK = "[object ArrayBuffer]", hK = "[object Object]", XNe = "[object Error]", gK = "[object DataView]", _K = "[object Uint8Array]", vK = "[object Uint8ClampedArray]", yK = "[object Uint16Array]", bK = "[object Uint32Array]", ZNe = "[object BigUint64Array]", xK = "[object Int8Array]", SK = "[object Int16Array]", CK = "[object Int32Array]", QNe = "[object BigInt64Array]", wK = "[object Float32Array]", TK = "[object Float64Array]", EK = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
return this;
})();
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isBuffer.mjs
-function OK(e) {
- return DK.Buffer !== void 0 && DK.Buffer.isBuffer(e);
+function DK(e) {
+ return EK.Buffer !== void 0 && EK.Buffer.isBuffer(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
-function QNe(e, t) {
- return kK(e, void 0, e, /* @__PURE__ */ new Map(), t);
+function $Ne(e, t) {
+ return OK(e, void 0, e, /* @__PURE__ */ new Map(), t);
}
-function kK(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
+function OK(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
let a = i?.(e, t, n, r);
if (a !== void 0) return a;
- if (nK(e)) return e;
+ if (tK(e)) return e;
if (r.has(e)) return r.get(e);
if (Array.isArray(e)) {
let t = Array(e.length);
r.set(e, t);
- for (let a = 0; a < e.length; a++) t[a] = kK(e[a], a, n, r, i);
+ for (let a = 0; a < e.length; a++) t[a] = OK(e[a], a, n, r, i);
return Object.hasOwn(e, "index") && (t.index = e.index), Object.hasOwn(e, "input") && (t.input = e.input), t;
}
if (e instanceof Date) return new Date(e.getTime());
@@ -67145,132 +67145,132 @@ function kK(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
if (e instanceof Map) {
let t = /* @__PURE__ */ new Map();
r.set(e, t);
- for (let [a, o] of e) t.set(a, kK(o, a, n, r, i));
+ for (let [a, o] of e) t.set(a, OK(o, a, n, r, i));
return t;
}
if (e instanceof Set) {
let t = /* @__PURE__ */ new Set();
r.set(e, t);
- for (let a of e) t.add(kK(a, void 0, n, r, i));
+ for (let a of e) t.add(OK(a, void 0, n, r, i));
return t;
}
- if (OK(e)) return e.subarray();
- if (qNe(e)) {
+ if (DK(e)) return e.subarray();
+ if (JNe(e)) {
let t = new (Object.getPrototypeOf(e)).constructor(e.length);
r.set(e, t);
- for (let a = 0; a < e.length; a++) t[a] = kK(e[a], a, n, r, i);
+ for (let a = 0; a < e.length; a++) t[a] = OK(e[a], a, n, r, i);
return t;
}
if (e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
if (e instanceof DataView) {
let t = new DataView(e.buffer.slice(0), e.byteOffset, e.byteLength);
- return r.set(e, t), AK(t, e, n, r, i), t;
+ return r.set(e, t), kK(t, e, n, r, i), t;
}
if (typeof File < "u" && e instanceof File) {
let t = new File([e], e.name, { type: e.type });
- return r.set(e, t), AK(t, e, n, r, i), t;
+ return r.set(e, t), kK(t, e, n, r, i), t;
}
if (typeof Blob < "u" && e instanceof Blob) {
let t = new Blob([e], { type: e.type });
- return r.set(e, t), AK(t, e, n, r, i), t;
+ return r.set(e, t), kK(t, e, n, r, i), t;
}
if (e instanceof Error) {
let t = structuredClone(e);
- return r.set(e, t), t.message = e.message, t.name = e.name, t.stack = e.stack, t.cause = e.cause, t.constructor = e.constructor, AK(t, e, n, r, i), t;
+ return r.set(e, t), t.message = e.message, t.name = e.name, t.stack = e.stack, t.cause = e.cause, t.constructor = e.constructor, kK(t, e, n, r, i), t;
}
if (e instanceof Boolean) {
let t = new Boolean(e.valueOf());
- return r.set(e, t), AK(t, e, n, r, i), t;
+ return r.set(e, t), kK(t, e, n, r, i), t;
}
if (e instanceof Number) {
let t = new Number(e.valueOf());
- return r.set(e, t), AK(t, e, n, r, i), t;
+ return r.set(e, t), kK(t, e, n, r, i), t;
}
if (e instanceof String) {
let t = new String(e.valueOf());
- return r.set(e, t), AK(t, e, n, r, i), t;
+ return r.set(e, t), kK(t, e, n, r, i), t;
}
- if (typeof e == "object" && $Ne(e)) {
+ if (typeof e == "object" && ePe(e)) {
let t = Object.create(Object.getPrototypeOf(e));
- return r.set(e, t), AK(t, e, n, r, i), t;
+ return r.set(e, t), kK(t, e, n, r, i), t;
}
return e;
}
-function AK(e, t, n = e, r, i) {
- let a = [...Object.keys(t), ...rK(t)];
+function kK(e, t, n = e, r, i) {
+ let a = [...Object.keys(t), ...nK(t)];
for (let o = 0; o < a.length; o++) {
let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
- (c == null || c.writable) && (e[s] = kK(t[s], s, n, r, i));
+ (c == null || c.writable) && (e[s] = OK(t[s], s, n, r, i));
}
}
-function $Ne(e) {
- switch (iK(e)) {
- case lK:
- case mK:
- case hK:
- case _K:
+function ePe(e) {
+ switch (rK(e)) {
case cK:
- case dK:
+ case pK:
+ case mK:
+ case gK:
+ case sK:
+ case uK:
+ case wK:
case TK:
- case EK:
+ case xK:
case SK:
case CK:
- case wK:
+ case dK:
+ case oK:
+ case hK:
+ case iK:
case fK:
- case sK:
- case gK:
case aK:
- case pK:
- case oK:
- case uK:
+ case lK:
+ case _K:
case vK:
case yK:
- case bK:
- case xK: return !0;
+ case bK: return !0;
default: return !1;
}
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeep.mjs
-function ePe(e) {
- return kK(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
+function tPe(e) {
+ return OK(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/eq.mjs
-function jK(e, t) {
+function AK(e, t) {
return e === t || Number.isNaN(e) && Number.isNaN(t);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isObject.mjs
-function MK(e) {
+function jK(e) {
return e !== null && (typeof e == "object" || typeof e == "function");
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isMatchWith.mjs
-function NK(e, t, n) {
- return typeof n == "function" ? PK(e, t, function e(t, r, i, a, o, s) {
+function MK(e, t, n) {
+ return typeof n == "function" ? NK(e, t, function e(t, r, i, a, o, s) {
let c = n(t, r, i, a, o, s);
- return c === void 0 ? PK(t, r, e, s, !1) : !!c;
- }, /* @__PURE__ */ new Map(), !0) : NK(e, t, () => void 0);
+ return c === void 0 ? NK(t, r, e, s, !1) : !!c;
+ }, /* @__PURE__ */ new Map(), !0) : MK(e, t, () => void 0);
}
-function PK(e, t, n, r, i = !1) {
+function NK(e, t, n, r, i = !1) {
if (t === e) return !0;
switch (typeof t) {
- case "object": return tPe(e, t, n, r, i);
- case "function": return Object.keys(t).length > 0 ? PK(e, { ...t }, n, r, i) : jK(e, t);
- default: return MK(e) && i ? typeof t != "string" || t === "" : jK(e, t);
+ case "object": return nPe(e, t, n, r, i);
+ case "function": return Object.keys(t).length > 0 ? NK(e, { ...t }, n, r, i) : AK(e, t);
+ default: return jK(e) && i ? typeof t != "string" || t === "" : AK(e, t);
}
}
-function tPe(e, t, n, r, i = !1) {
+function nPe(e, t, n, r, i = !1) {
if (t == null) return !0;
- if (Array.isArray(t)) return FK(e, t, n, r);
- if (t instanceof Map) return nPe(e, t, n, r);
- if (t instanceof Set) return rPe(e, t, n, r);
+ if (Array.isArray(t)) return PK(e, t, n, r);
+ if (t instanceof Map) return rPe(e, t, n, r);
+ if (t instanceof Set) return iPe(e, t, n, r);
let a = Object.keys(t);
if (e == null) return i && a.length === 0;
- if (i) nK(e) && (e = Object(e));
+ if (i) tK(e) && (e = Object(e));
else {
- let t = iK(e);
+ let t = rK(e);
if (t !== "[object Object]" && t !== "[object Arguments]") return !1;
}
if (a.length === 0) return !0;
@@ -67286,13 +67286,13 @@ function tPe(e, t, n, r, i = !1) {
r?.delete(t);
}
}
-function nPe(e, t, n, r) {
+function rPe(e, t, n, r) {
if (t.size === 0) return !0;
if (!(e instanceof Map)) return !1;
for (let [i, a] of t.entries()) if (n(e.get(i), a, i, e, t, r) === !1) return !1;
return !0;
}
-function FK(e, t, n, r) {
+function PK(e, t, n, r) {
if (t.length === 0) return !0;
if (!Array.isArray(e)) return !1;
let i = /* @__PURE__ */ new Set();
@@ -67310,40 +67310,40 @@ function FK(e, t, n, r) {
}
return !0;
}
-function rPe(e, t, n, r) {
- return t.size === 0 || e instanceof Set && FK([...e], [...t], n, r);
+function iPe(e, t, n, r) {
+ return t.size === 0 || e instanceof Set && PK([...e], [...t], n, r);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isMatch.mjs
-function IK(e, t) {
- return NK(e, t, () => void 0);
+function FK(e, t) {
+ return MK(e, t, () => void 0);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matches.mjs
-function iPe(e) {
- return e = ePe(e), (t) => IK(t, e);
+function aPe(e) {
+ return e = tPe(e), (t) => FK(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs
-function aPe(e, t) {
- return QNe(e, (n, r, i, a) => {
+function oPe(e, t) {
+ return $Ne(e, (n, r, i, a) => {
let o = t?.(n, r, i, a);
if (o !== void 0) return o;
if (typeof e == "object") {
- if (iK(e) === "[object Object]" && typeof e.constructor != "function") {
+ if (rK(e) === "[object Object]" && typeof e.constructor != "function") {
let t = {};
- return a.set(e, t), AK(t, e, i, a), t;
+ return a.set(e, t), kK(t, e, i, a), t;
}
switch (Object.prototype.toString.call(e)) {
- case sK:
case oK:
- case cK: {
+ case aK:
+ case sK: {
let t = new e.constructor(e?.valueOf());
- return AK(t, e), t;
+ return kK(t, e), t;
}
- case lK: {
+ case cK: {
let t = {};
- return AK(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
+ return kK(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
}
default: return;
}
@@ -67352,80 +67352,80 @@ function aPe(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs
-function oPe(e) {
- return aPe(e);
+function sPe(e) {
+ return oPe(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs
-var sPe = /^(?:0|[1-9]\d*)$/;
-function LK(e, t = 2 ** 53 - 1) {
+var cPe = /^(?:0|[1-9]\d*)$/;
+function IK(e, t = 2 ** 53 - 1) {
switch (typeof e) {
case "number": return Number.isInteger(e) && e >= 0 && e < t;
case "symbol": return !1;
- case "string": return sPe.test(e);
+ case "string": return cPe.test(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs
-function cPe(e) {
- return typeof e == "object" && !!e && iK(e) === "[object Arguments]";
+function lPe(e) {
+ return typeof e == "object" && !!e && rK(e) === "[object Arguments]";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/has.mjs
-function lPe(e, t) {
+function uPe(e, t) {
let n;
- if (n = Array.isArray(t) ? t : typeof t == "string" && xW(t) && !(t in Object(e)) ? TW(t) : [t], n.length === 0) return !1;
+ if (n = Array.isArray(t) ? t : typeof t == "string" && bW(t) && !(t in Object(e)) ? wW(t) : [t], n.length === 0) return !1;
let r = e;
for (let e = 0; e < n.length; e++) {
- let t = SW(n[e]);
- if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || cPe(r)) && LK(t) && Number(t) < r.length)) return !1;
+ let t = xW(n[e]);
+ if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || lPe(r)) && IK(t) && Number(t) < r.length)) return !1;
r = r[t];
}
return !0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matchesProperty.mjs
-function uPe(e, t) {
+function dPe(e, t) {
switch (typeof e) {
case "object":
Object.is(e?.valueOf(), -0) && (e = "-0");
break;
- case "number": e = SW(e);
+ case "number": e = xW(e);
}
- return t = oPe(t), function(n) {
- let r = EW(n, e);
- return r === void 0 ? lPe(n, e) : t === void 0 ? r === void 0 : IK(r, t);
+ return t = sPe(t), function(n) {
+ let r = TW(n, e);
+ return r === void 0 ? uPe(n, e) : t === void 0 ? r === void 0 : FK(r, t);
};
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/iteratee.mjs
-function RK(e) {
- if (e == null) return eK;
+function LK(e) {
+ if (e == null) return $G;
switch (typeof e) {
case "function": return e;
- case "object": return Array.isArray(e) && e.length === 2 ? uPe(e[0], e[1]) : iPe(e);
- default: return KNe(e);
+ case "object": return Array.isArray(e) && e.length === 2 ? dPe(e[0], e[1]) : aPe(e);
+ default: return qNe(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/normalizeZero.mjs
-function dPe(e) {
+function fPe(e) {
return e === 0 ? 0 : e;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/uniqBy.mjs
-function zK(e, t = eK) {
- return tK(e) ? UNe(Array.from(e), WNe(RK(t), 1)).map(dPe) : [];
+function RK(e, t = $G) {
+ return eK(e) ? WNe(Array.from(e), GNe(LK(t), 1)).map(fPe) : [];
}
//#endregion
//#region node_modules/recharts/es6/util/payload/getUniqPayload.js
-function BK(e, t, n) {
- return t === !0 ? zK(e, n) : typeof t == "function" ? zK(e, t) : e;
+function zK(e, t, n) {
+ return t === !0 ? RK(e, n) : typeof t == "function" ? RK(e, t) : e;
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
-var fPe = /* @__PURE__ */ o(((e) => {
- var t = d(), n = Bie();
+var pPe = /* @__PURE__ */ o(((e) => {
+ var t = d(), n = zie();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
@@ -67469,60 +67469,60 @@ var fPe = /* @__PURE__ */ o(((e) => {
f.hasValue = !0, f.value = p;
}, [p]), l(p), p;
};
-})), pPe = /* @__PURE__ */ o(((e, t) => {
- t.exports = fPe();
-})), VK = /*#__PURE__*/ (0, b.createContext)(null), mPe = pPe(), hPe = (e) => e, HK = () => {
- var e = (0, b.useContext)(VK);
- return e ? e.store.dispatch : hPe;
-}, UK = () => {}, gPe = () => UK, _Pe = (e, t) => e === t;
+})), mPe = /* @__PURE__ */ o(((e, t) => {
+ t.exports = pPe();
+})), BK = /*#__PURE__*/ (0, b.createContext)(null), hPe = mPe(), gPe = (e) => e, VK = () => {
+ var e = (0, b.useContext)(BK);
+ return e ? e.store.dispatch : gPe;
+}, HK = () => {}, _Pe = () => HK, vPe = (e, t) => e === t;
function J(e) {
- var t = (0, b.useContext)(VK), n = (0, b.useMemo)(() => t ? (t) => {
+ var t = (0, b.useContext)(BK), n = (0, b.useMemo)(() => t ? (t) => {
if (t != null) return e(t);
- } : UK, [t, e]);
- return (0, mPe.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : gPe, t ? t.store.getState : UK, t ? t.store.getState : UK, n, _Pe);
+ } : HK, [t, e]);
+ return (0, hPe.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : _Pe, t ? t.store.getState : HK, t ? t.store.getState : HK, n, vPe);
}
//#endregion
//#region node_modules/reselect/dist/reselect.mjs
-function vPe(e, t = `expected a function, instead received ${typeof e}`) {
+function yPe(e, t = `expected a function, instead received ${typeof e}`) {
if (typeof e != "function") throw TypeError(t);
}
-function yPe(e, t = "expected all items to be functions, instead received the following types: ") {
+function bPe(e, t = "expected all items to be functions, instead received the following types: ") {
if (!e.every((e) => typeof e == "function")) {
let n = e.map((e) => typeof e == "function" ? `function ${e.name || "unnamed"}()` : typeof e).join(", ");
throw TypeError(`${t}[${n}]`);
}
}
-var WK = (e) => Array.isArray(e) ? e : [e];
-function bPe(e) {
+var UK = (e) => Array.isArray(e) ? e : [e];
+function xPe(e) {
let t = Array.isArray(e[0]) ? e[0] : e;
- return yPe(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
+ return bPe(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
}
-function xPe(e, t) {
+function SPe(e, t) {
let n = [], { length: r } = e;
for (let i = 0; i < r; i++) n.push(e[i].apply(null, t));
return n;
}
-var SPe = class {
+var CPe = class {
constructor(e) {
this.value = e;
}
deref() {
return this.value;
}
-}, GK = typeof WeakRef > "u" ? SPe : WeakRef, CPe = 0, KK = 1;
-function qK() {
+}, WK = typeof WeakRef > "u" ? CPe : WeakRef, wPe = 0, GK = 1;
+function KK() {
return {
- s: CPe,
+ s: wPe,
v: void 0,
o: null,
p: null
};
}
-function wPe(e) {
- return e instanceof GK ? e.deref() : e;
+function TPe(e) {
+ return e instanceof WK ? e.deref() : e;
}
-function JK(e, t = {}) {
- let n = qK(), { resultEqualityCheck: r } = t, i, a = 0;
+function qK(e, t = {}) {
+ let n = KK(), { resultEqualityCheck: r } = t, i, a = 0;
function o() {
let t = n, { length: o } = arguments;
for (let e = 0, n = o; e < n; e++) {
@@ -67531,43 +67531,43 @@ function JK(e, t = {}) {
let e = t.o;
e === null && (t.o = e = /* @__PURE__ */ new WeakMap());
let r = e.get(n);
- r === void 0 ? (t = qK(), e.set(n, t)) : t = r;
+ r === void 0 ? (t = KK(), e.set(n, t)) : t = r;
} else {
let e = t.p;
e === null && (t.p = e = /* @__PURE__ */ new Map());
let r = e.get(n);
- r === void 0 ? (t = qK(), e.set(n, t)) : t = r;
+ r === void 0 ? (t = KK(), e.set(n, t)) : t = r;
}
}
let s = t, c;
- if (t.s === KK) c = t.v;
+ if (t.s === GK) c = t.v;
else if (c = e.apply(null, arguments), a++, r) {
- let e = wPe(i);
- e != null && r(e, c) && (c = e, a !== 0 && a--), i = typeof c == "object" && c || typeof c == "function" ? /* @__PURE__ */ new GK(c) : c;
+ let e = TPe(i);
+ e != null && r(e, c) && (c = e, a !== 0 && a--), i = typeof c == "object" && c || typeof c == "function" ? /* @__PURE__ */ new WK(c) : c;
}
- return s.s = KK, s.v = c, c;
+ return s.s = GK, s.v = c, c;
}
return o.clearCache = () => {
- n = qK(), o.resetResultsCount();
+ n = KK(), o.resetResultsCount();
}, o.resultsCount = () => a, o.resetResultsCount = () => {
a = 0;
}, o;
}
-function TPe(e, ...t) {
+function EPe(e, ...t) {
let n = typeof e == "function" ? {
memoize: e,
memoizeOptions: t
} : e, r = (...e) => {
let t = 0, r = 0, i, a = {}, o = e.pop();
- typeof o == "object" && (a = o, o = e.pop()), vPe(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
- let { memoize: s, memoizeOptions: c = [], argsMemoize: l = JK, argsMemoizeOptions: u = [] } = {
+ typeof o == "object" && (a = o, o = e.pop()), yPe(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
+ let { memoize: s, memoizeOptions: c = [], argsMemoize: l = qK, argsMemoizeOptions: u = [] } = {
...n,
...a
- }, d = WK(c), f = WK(u), p = bPe(e), m = s(function() {
+ }, d = UK(c), f = UK(u), p = xPe(e), m = s(function() {
return t++, o.apply(null, arguments);
}, ...d), h = l(function() {
r++;
- let e = xPe(p, arguments);
+ let e = SPe(p, arguments);
return i = m.apply(null, e), i;
}, ...f);
return Object.assign(h, {
@@ -67589,10 +67589,10 @@ function TPe(e, ...t) {
};
return Object.assign(r, { withTypes: () => r }), r;
}
-var Y = /* @__PURE__ */ TPe(JK);
+var Y = /* @__PURE__ */ EPe(qK);
//#endregion
//#region node_modules/es-toolkit/dist/array/flatten.mjs
-function EPe(e, t = 1) {
+function DPe(e, t = 1) {
let n = [], r = Math.floor(t), i = (e, t) => {
for (let a = 0; a < e.length; a++) {
let o = e[a];
@@ -67603,17 +67603,17 @@ function EPe(e, t = 1) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.mjs
-function YK(e, t, n) {
- return MK(n) && (typeof t == "number" && tK(n) && LK(t) && t < n.length || typeof t == "string" && t in n) ? jK(n[t], e) : !1;
+function JK(e, t, n) {
+ return jK(n) && (typeof t == "number" && eK(n) && IK(t) && t < n.length || typeof t == "string" && t in n) ? AK(n[t], e) : !1;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/compareValues.mjs
-function XK(e) {
+function YK(e) {
return typeof e == "symbol" ? 1 : e === null ? 2 : e === void 0 ? 3 : e === e ? 0 : 4;
}
-var DPe = (e, t, n) => {
+var OPe = (e, t, n) => {
if (e !== t) {
- let r = XK(e), i = XK(t);
+ let r = YK(e), i = YK(t);
if (r === i && r === 0) {
if (e < t) return n === "desc" ? 1 : -1;
if (e > t) return n === "desc" ? -1 : 1;
@@ -67621,15 +67621,15 @@ var DPe = (e, t, n) => {
return n === "desc" ? i - r : r - i;
}
return 0;
-}, OPe = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, kPe = /^\w*$/;
-function APe(e, t) {
- return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || CW(e) ? !0 : typeof e == "string" && (kPe.test(e) || !OPe.test(e)) || t != null && Object.hasOwn(t, e);
+}, kPe = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, APe = /^\w*$/;
+function jPe(e, t) {
+ return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || SW(e) ? !0 : typeof e == "string" && (APe.test(e) || !kPe.test(e)) || t != null && Object.hasOwn(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/orderBy.mjs
-function jPe(e, t, n, r) {
+function MPe(e, t, n, r) {
if (e == null) return [];
- n = r ? void 0 : n, Array.isArray(e) || (e = tK(e) ? Array.from(e) : Object.values(e)), Array.isArray(t) || (t = t == null ? [null] : [t]), t.length === 0 && (t = [null]), Array.isArray(n) || (n = n == null ? [] : [n]), n = n.map((e) => String(e));
+ n = r ? void 0 : n, Array.isArray(e) || (e = eK(e) ? Array.from(e) : Object.values(e)), Array.isArray(t) || (t = t == null ? [null] : [t]), t.length === 0 && (t = [null]), Array.isArray(n) || (n = n == null ? [] : [n]), n = n.map((e) => String(e));
let i = (e, t) => {
let n = e, r = 0;
for (; r < t.length && n != null; ++r) n = n[t[r]];
@@ -67637,16 +67637,16 @@ function jPe(e, t, n, r) {
}, a = (e, t) => {
if (e == null) return t;
if (t != null) return typeof e == "object" && "key" in e ? Object.hasOwn(t, e.key) ? t[e.key] : i(t, e.path) : typeof e == "function" ? e(t) : Array.isArray(e) ? i(t, e) : t[e];
- }, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || APe(e) ? e : {
+ }, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || jPe(e) ? e : {
key: e,
- path: TW(e)
+ path: wW(e)
}));
return e.map((e) => ({
original: e,
criteria: o.map((t) => a(t, e))
})).slice().sort((e, t) => {
for (let r = 0; r < o.length; r++) {
- let i = DPe(e.criteria[r], t.criteria[r], n[r]);
+ let i = OPe(e.criteria[r], t.criteria[r], n[r]);
if (i !== 0) return i;
}
return 0;
@@ -67654,42 +67654,42 @@ function jPe(e, t, n, r) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/sortBy.mjs
-function ZK(e, ...t) {
+function XK(e, ...t) {
let n = t.length;
- return n > 1 && YK(e, t[0], t[1]) ? t = [] : n > 2 && YK(t[0], t[1], t[2]) && (t = [t[0]]), jPe(e, EPe(t), ["asc"]);
+ return n > 1 && JK(e, t[0], t[1]) ? t = [] : n > 2 && JK(t[0], t[1], t[2]) && (t = [t[0]]), MPe(e, DPe(t), ["asc"]);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/legendSelectors.js
-var QK = (e) => e.legend.settings, MPe = (e) => e.legend.size, NPe = Y([(e) => e.legend.payload, QK], (e, t) => {
+var ZK = (e) => e.legend.settings, NPe = (e) => e.legend.size, PPe = Y([(e) => e.legend.payload, ZK], (e, t) => {
var n = t.itemSorter, r = e.flat(1);
- return n ? ZK(r, n) : r;
+ return n ? XK(r, n) : r;
});
//#endregion
//#region node_modules/recharts/es6/context/legendPayloadContext.js
-function PPe() {
- return J(NPe);
+function FPe() {
+ return J(PPe);
}
//#endregion
//#region node_modules/recharts/es6/util/useElementOffset.js
-function FPe(e, t) {
- return zPe(e) || RPe(e, t) || LPe(e, t) || IPe();
+function IPe(e, t) {
+ return BPe(e) || zPe(e, t) || RPe(e, t) || LPe();
}
-function IPe() {
+function LPe() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function LPe(e, t) {
+function RPe(e, t) {
if (e) {
- if (typeof e == "string") return $K(e, t);
+ if (typeof e == "string") return QK(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? $K(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? QK(e, t) : void 0;
}
}
-function $K(e, t) {
+function QK(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function RPe(e, t) {
+function zPe(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -67710,14 +67710,14 @@ function RPe(e, t) {
return s;
}
}
-function zPe(e) {
+function BPe(e) {
if (Array.isArray(e)) return e;
}
-var eq = 1;
-function tq(e, t) {
- return Math.abs(e.height - t.height) > eq || Math.abs(e.left - t.left) > eq || Math.abs(e.top - t.top) > eq || Math.abs(e.width - t.width) > eq;
+var $K = 1;
+function eq(e, t) {
+ return Math.abs(e.height - t.height) > $K || Math.abs(e.left - t.left) > $K || Math.abs(e.top - t.top) > $K || Math.abs(e.width - t.width) > $K;
}
-function nq(e) {
+function tq(e) {
var t = e.getBoundingClientRect();
return {
height: t.height,
@@ -67726,8 +67726,8 @@ function nq(e) {
width: t.width
};
}
-function rq() {
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = FPe((0, b.useState)({
+function nq() {
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = IPe((0, b.useState)({
height: 0,
left: 0,
top: 0,
@@ -67736,11 +67736,11 @@ function rq() {
a.current = n;
var o = (0, b.useCallback)((e) => {
if (i.current != null && (i.current.disconnect(), i.current = null), e != null) {
- var t = nq(e);
- if (tq(t, a.current) && r(t), typeof ResizeObserver < "u") {
+ var t = tq(e);
+ if (eq(t, a.current) && r(t), typeof ResizeObserver < "u") {
var n = new ResizeObserver(() => {
- var t = nq(e);
- tq(t, a.current) && r(t);
+ var t = tq(e);
+ eq(t, a.current) && r(t);
});
n.observe(e), i.current = n;
}
@@ -67753,26 +67753,26 @@ function rq() {
}
//#endregion
//#region node_modules/redux/dist/redux.mjs
-function iq(e) {
+function rq(e) {
return `Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
}
-var aq = typeof Symbol == "function" && Symbol.observable || "@@observable", oq = () => Math.random().toString(36).substring(7).split("").join("."), sq = {
- INIT: `@@redux/INIT${/* @__PURE__ */ oq()}`,
- REPLACE: `@@redux/REPLACE${/* @__PURE__ */ oq()}`,
- PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${oq()}`
+var iq = typeof Symbol == "function" && Symbol.observable || "@@observable", aq = () => Math.random().toString(36).substring(7).split("").join("."), oq = {
+ INIT: `@@redux/INIT${/* @__PURE__ */ aq()}`,
+ REPLACE: `@@redux/REPLACE${/* @__PURE__ */ aq()}`,
+ PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${aq()}`
};
-function cq(e) {
+function sq(e) {
if (typeof e != "object" || !e) return !1;
let t = e;
for (; Object.getPrototypeOf(t) !== null;) t = Object.getPrototypeOf(t);
return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;
}
-function lq(e, t, n) {
- if (typeof e != "function") throw Error(iq(2));
- if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(iq(0));
+function cq(e, t, n) {
+ if (typeof e != "function") throw Error(rq(2));
+ if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(rq(0));
if (typeof t == "function" && n === void 0 && (n = t, t = void 0), n !== void 0) {
- if (typeof n != "function") throw Error(iq(1));
- return n(lq)(e, t);
+ if (typeof n != "function") throw Error(rq(1));
+ return n(cq)(e, t);
}
let r = e, i = t, a = /* @__PURE__ */ new Map(), o = a, s = 0, c = !1;
function l() {
@@ -67781,27 +67781,27 @@ function lq(e, t, n) {
}));
}
function u() {
- if (c) throw Error(iq(3));
+ if (c) throw Error(rq(3));
return i;
}
function d(e) {
- if (typeof e != "function") throw Error(iq(4));
- if (c) throw Error(iq(5));
+ if (typeof e != "function") throw Error(rq(4));
+ if (c) throw Error(rq(5));
let t = !0;
l();
let n = s++;
return o.set(n, e), function() {
if (t) {
- if (c) throw Error(iq(6));
+ if (c) throw Error(rq(6));
t = !1, l(), o.delete(n), a = null;
}
};
}
function f(e) {
- if (!cq(e)) throw Error(iq(7));
- if (e.type === void 0) throw Error(iq(8));
- if (typeof e.type != "string") throw Error(iq(17));
- if (c) throw Error(iq(9));
+ if (!sq(e)) throw Error(rq(7));
+ if (e.type === void 0) throw Error(rq(8));
+ if (typeof e.type != "string") throw Error(rq(17));
+ if (c) throw Error(rq(9));
try {
c = !0, i = r(i, e);
} finally {
@@ -67812,41 +67812,41 @@ function lq(e, t, n) {
}), e;
}
function p(e) {
- if (typeof e != "function") throw Error(iq(10));
- r = e, f({ type: sq.REPLACE });
+ if (typeof e != "function") throw Error(rq(10));
+ r = e, f({ type: oq.REPLACE });
}
function m() {
let e = d;
return {
subscribe(t) {
- if (typeof t != "object" || !t) throw Error(iq(11));
+ if (typeof t != "object" || !t) throw Error(rq(11));
function n() {
let e = t;
e.next && e.next(u());
}
return n(), { unsubscribe: e(n) };
},
- [aq]() {
+ [iq]() {
return this;
}
};
}
- return f({ type: sq.INIT }), {
+ return f({ type: oq.INIT }), {
dispatch: f,
subscribe: d,
getState: u,
replaceReducer: p,
- [aq]: m
+ [iq]: m
};
}
-function BPe(e) {
+function VPe(e) {
Object.keys(e).forEach((t) => {
let n = e[t];
- if (n(void 0, { type: sq.INIT }) === void 0) throw Error(iq(12));
- if (n(void 0, { type: sq.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(iq(13));
+ if (n(void 0, { type: oq.INIT }) === void 0) throw Error(rq(12));
+ if (n(void 0, { type: oq.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(rq(13));
});
}
-function uq(e) {
+function lq(e) {
let t = Object.keys(e), n = {};
for (let r = 0; r < t.length; r++) {
let i = t[r];
@@ -67854,7 +67854,7 @@ function uq(e) {
}
let r = Object.keys(n), i;
try {
- BPe(n);
+ VPe(n);
} catch (e) {
i = e;
}
@@ -67863,124 +67863,124 @@ function uq(e) {
let a = !1, o = {};
for (let i = 0; i < r.length; i++) {
let s = r[i], c = n[s], l = e[s], u = c(l, t);
- if (u === void 0) throw t && t.type, Error(iq(14));
+ if (u === void 0) throw t && t.type, Error(rq(14));
o[s] = u, a ||= u !== l;
}
return a ||= r.length !== Object.keys(e).length, a ? o : e;
};
}
-function dq(...e) {
+function uq(...e) {
return e.length === 0 ? (e) => e : e.length === 1 ? e[0] : e.reduce((e, t) => (...n) => e(t(...n)));
}
-function VPe(...e) {
+function HPe(...e) {
return (t) => (n, r) => {
let i = t(n, r), a = () => {
- throw Error(iq(15));
+ throw Error(rq(15));
}, o = {
getState: i.getState,
dispatch: (e, ...t) => a(e, ...t)
};
- return a = dq(...e.map((e) => e(o)))(i.dispatch), {
+ return a = uq(...e.map((e) => e(o)))(i.dispatch), {
...i,
dispatch: a
};
};
}
-function fq(e) {
- return cq(e) && "type" in e && typeof e.type == "string";
+function dq(e) {
+ return sq(e) && "type" in e && typeof e.type == "string";
}
//#endregion
//#region node_modules/immer/dist/immer.mjs
-var pq = Symbol.for("immer-nothing"), mq = Symbol.for("immer-draftable"), hq = Symbol.for("immer-state");
-function gq(e, ...t) {
+var fq = Symbol.for("immer-nothing"), pq = Symbol.for("immer-draftable"), mq = Symbol.for("immer-state");
+function hq(e, ...t) {
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
}
-var _q = Object, vq = _q.getPrototypeOf, yq = "constructor", bq = "prototype", xq = "configurable", Sq = "enumerable", Cq = "writable", wq = "value", Tq = (e) => !!e && !!e[hq];
-function Eq(e) {
- return e ? Oq(e) || Pq(e) || !!e[mq] || !!e[yq]?.[mq] || Fq(e) || Iq(e) : !1;
+var gq = Object, _q = gq.getPrototypeOf, vq = "constructor", yq = "prototype", bq = "configurable", xq = "enumerable", Sq = "writable", Cq = "value", wq = (e) => !!e && !!e[mq];
+function Tq(e) {
+ return e ? Dq(e) || Nq(e) || !!e[pq] || !!e[vq]?.[pq] || Pq(e) || Fq(e) : !1;
}
-var HPe = _q[bq][yq].toString(), Dq = /* @__PURE__ */ new WeakMap();
-function Oq(e) {
- if (!e || !Lq(e)) return !1;
- let t = vq(e);
- if (t === null || t === _q[bq]) return !0;
- let n = _q.hasOwnProperty.call(t, yq) && t[yq];
+var UPe = gq[yq][vq].toString(), Eq = /* @__PURE__ */ new WeakMap();
+function Dq(e) {
+ if (!e || !Iq(e)) return !1;
+ let t = _q(e);
+ if (t === null || t === gq[yq]) return !0;
+ let n = gq.hasOwnProperty.call(t, vq) && t[vq];
if (n === Object) return !0;
- if (!Rq(n)) return !1;
- let r = Dq.get(n);
- return r === void 0 && (r = Function.toString.call(n), Dq.set(n, r)), r === HPe;
+ if (!Lq(n)) return !1;
+ let r = Eq.get(n);
+ return r === void 0 && (r = Function.toString.call(n), Eq.set(n, r)), r === UPe;
}
-function kq(e, t, n = !0) {
- Aq(e) === 0 ? (n ? Reflect.ownKeys(e) : _q.keys(e)).forEach((n) => {
+function Oq(e, t, n = !0) {
+ kq(e) === 0 ? (n ? Reflect.ownKeys(e) : gq.keys(e)).forEach((n) => {
t(n, e[n], e);
}) : e.forEach((n, r) => t(r, n, e));
}
-function Aq(e) {
- let t = e[hq];
- return t ? t.type_ : Pq(e) ? 1 : Fq(e) ? 2 : Iq(e) ? 3 : 0;
+function kq(e) {
+ let t = e[mq];
+ return t ? t.type_ : Nq(e) ? 1 : Pq(e) ? 2 : Fq(e) ? 3 : 0;
}
-var jq = (e, t, n = Aq(e)) => n === 2 ? e.has(t) : _q[bq].hasOwnProperty.call(e, t), Mq = (e, t, n = Aq(e)) => n === 2 ? e.get(t) : e[t], Nq = (e, t, n, r = Aq(e)) => {
+var Aq = (e, t, n = kq(e)) => n === 2 ? e.has(t) : gq[yq].hasOwnProperty.call(e, t), jq = (e, t, n = kq(e)) => n === 2 ? e.get(t) : e[t], Mq = (e, t, n, r = kq(e)) => {
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
};
-function UPe(e, t) {
+function WPe(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-var Pq = Array.isArray, Fq = (e) => e instanceof Map, Iq = (e) => e instanceof Set, Lq = (e) => typeof e == "object", Rq = (e) => typeof e == "function", zq = (e) => typeof e == "boolean";
-function WPe(e) {
+var Nq = Array.isArray, Pq = (e) => e instanceof Map, Fq = (e) => e instanceof Set, Iq = (e) => typeof e == "object", Lq = (e) => typeof e == "function", Rq = (e) => typeof e == "boolean";
+function GPe(e) {
let t = +e;
return Number.isInteger(t) && String(t) === e;
}
-var Bq = (e) => e.copy_ || e.base_, Vq = (e) => e.modified_ ? e.copy_ : e.base_;
-function Hq(e, t) {
- if (Fq(e)) return new Map(e);
- if (Iq(e)) return new Set(e);
- if (Pq(e)) return Array[bq].slice.call(e);
- let n = Oq(e);
+var zq = (e) => e.copy_ || e.base_, Bq = (e) => e.modified_ ? e.copy_ : e.base_;
+function Vq(e, t) {
+ if (Pq(e)) return new Map(e);
+ if (Fq(e)) return new Set(e);
+ if (Nq(e)) return Array[yq].slice.call(e);
+ let n = Dq(e);
if (t === !0 || t === "class_only" && !n) {
- let t = _q.getOwnPropertyDescriptors(e);
- delete t[hq];
+ let t = gq.getOwnPropertyDescriptors(e);
+ delete t[mq];
let n = Reflect.ownKeys(t);
for (let r = 0; r < n.length; r++) {
let i = n[r], a = t[i];
- a[Cq] === !1 && (a[Cq] = !0, a[xq] = !0), (a.get || a.set) && (t[i] = {
- [xq]: !0,
- [Cq]: !0,
- [Sq]: a[Sq],
- [wq]: e[i]
+ a[Sq] === !1 && (a[Sq] = !0, a[bq] = !0), (a.get || a.set) && (t[i] = {
+ [bq]: !0,
+ [Sq]: !0,
+ [xq]: a[xq],
+ [Cq]: e[i]
});
}
- return _q.create(vq(e), t);
+ return gq.create(_q(e), t);
}
{
- let t = vq(e);
+ let t = _q(e);
if (t !== null && n) return { ...e };
- let r = _q.create(t);
- return _q.assign(r, e);
- }
-}
-function Uq(e, t = !1) {
- return Gq(e) || Tq(e) || !Eq(e) || (Aq(e) > 1 && _q.defineProperties(e, {
- set: Wq,
- add: Wq,
- clear: Wq,
- delete: Wq
- }), _q.freeze(e), t && kq(e, (e, t) => {
- Uq(t, !0);
+ let r = gq.create(t);
+ return gq.assign(r, e);
+ }
+}
+function Hq(e, t = !1) {
+ return Wq(e) || wq(e) || !Tq(e) || (kq(e) > 1 && gq.defineProperties(e, {
+ set: Uq,
+ add: Uq,
+ clear: Uq,
+ delete: Uq
+ }), gq.freeze(e), t && Oq(e, (e, t) => {
+ Hq(t, !0);
}, !1)), e;
}
-function GPe() {
- gq(2);
+function KPe() {
+ hq(2);
}
-var Wq = { [wq]: GPe };
-function Gq(e) {
- return e === null || !Lq(e) || _q.isFrozen(e);
+var Uq = { [Cq]: KPe };
+function Wq(e) {
+ return e === null || !Iq(e) || gq.isFrozen(e);
}
-var Kq = "MapSet", qq = "Patches", Jq = "ArrayMethods", Yq = {};
-function Xq(e) {
- let t = Yq[e];
- return t || gq(0, e), t;
+var Gq = "MapSet", Kq = "Patches", qq = "ArrayMethods", Jq = {};
+function Yq(e) {
+ let t = Jq[e];
+ return t || hq(0, e), t;
}
-var Zq = (e) => !!Yq[e], Qq, $q = () => Qq, KPe = (e, t) => ({
+var Xq = (e) => !!Jq[e], Zq, Qq = () => Zq, qPe = (e, t) => ({
drafts_: [],
parent_: e,
immer_: t,
@@ -67988,114 +67988,114 @@ var Zq = (e) => !!Yq[e], Qq, $q = () => Qq, KPe = (e, t) => ({
unfinalizedDrafts_: 0,
handledSet_: /* @__PURE__ */ new Set(),
processedForPatches_: /* @__PURE__ */ new Set(),
- mapSetPlugin_: Zq(Kq) ? Xq(Kq) : void 0,
- arrayMethodsPlugin_: Zq(Jq) ? Xq(Jq) : void 0
+ mapSetPlugin_: Xq(Gq) ? Yq(Gq) : void 0,
+ arrayMethodsPlugin_: Xq(qq) ? Yq(qq) : void 0
});
-function eJ(e, t) {
- t && (e.patchPlugin_ = Xq(qq), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
+function $q(e, t) {
+ t && (e.patchPlugin_ = Yq(Kq), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
-function tJ(e) {
- nJ(e), e.drafts_.forEach(qPe), e.drafts_ = null;
+function eJ(e) {
+ tJ(e), e.drafts_.forEach(JPe), e.drafts_ = null;
}
-function nJ(e) {
- e === Qq && (Qq = e.parent_);
+function tJ(e) {
+ e === Zq && (Zq = e.parent_);
}
-var rJ = (e) => Qq = KPe(Qq, e);
-function qPe(e) {
- let t = e[hq];
+var nJ = (e) => Zq = qPe(Zq, e);
+function JPe(e) {
+ let t = e[mq];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
-function iJ(e, t) {
+function rJ(e, t) {
t.unfinalizedDrafts_ = t.drafts_.length;
let n = t.drafts_[0];
if (e !== void 0 && e !== n) {
- n[hq].modified_ && (tJ(t), gq(4)), Eq(e) && (e = aJ(t, e));
+ n[mq].modified_ && (eJ(t), hq(4)), Tq(e) && (e = iJ(t, e));
let { patchPlugin_: r } = t;
- r && r.generateReplacementPatches_(n[hq].base_, e, t);
- } else e = aJ(t, n);
- return JPe(t, e, !0), tJ(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === pq ? void 0 : e;
-}
-function aJ(e, t) {
- if (Gq(t)) return t;
- let n = t[hq];
- if (!n) return uJ(t, e.handledSet_, e);
- if (!sJ(n, e)) return t;
+ r && r.generateReplacementPatches_(n[mq].base_, e, t);
+ } else e = iJ(t, n);
+ return YPe(t, e, !0), eJ(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === fq ? void 0 : e;
+}
+function iJ(e, t) {
+ if (Wq(t)) return t;
+ let n = t[mq];
+ if (!n) return lJ(t, e.handledSet_, e);
+ if (!oJ(n, e)) return t;
if (!n.modified_) return n.base_;
if (!n.finalized_) {
let { callbacks_: t } = n;
if (t) for (; t.length > 0;) t.pop()(e);
- lJ(n, e);
+ cJ(n, e);
}
return n.copy_;
}
-function JPe(e, t, n = !1) {
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && Uq(t, n);
+function YPe(e, t, n = !1) {
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && Hq(t, n);
}
-function oJ(e) {
+function aJ(e) {
e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
}
-var sJ = (e, t) => e.scope_ === t, YPe = [];
-function cJ(e, t, n, r) {
- let i = Bq(e), a = e.type_;
- if (r !== void 0 && Mq(i, r, a) === t) {
- Nq(i, r, n, a);
+var oJ = (e, t) => e.scope_ === t, XPe = [];
+function sJ(e, t, n, r) {
+ let i = zq(e), a = e.type_;
+ if (r !== void 0 && jq(i, r, a) === t) {
+ Mq(i, r, n, a);
return;
}
if (!e.draftLocations_) {
let t = e.draftLocations_ = /* @__PURE__ */ new Map();
- kq(i, (e, n) => {
- if (Tq(n)) {
+ Oq(i, (e, n) => {
+ if (wq(n)) {
let r = t.get(n) || [];
r.push(e), t.set(n, r);
}
});
}
- let o = e.draftLocations_.get(t) ?? YPe;
- for (let e of o) Nq(i, e, n, a);
+ let o = e.draftLocations_.get(t) ?? XPe;
+ for (let e of o) Mq(i, e, n, a);
}
-function XPe(e, t, n) {
+function ZPe(e, t, n) {
e.callbacks_.push(function(r) {
let i = t;
- if (!i || !sJ(i, r)) return;
+ if (!i || !oJ(i, r)) return;
r.mapSetPlugin_?.fixSetContents(i);
- let a = Vq(i);
- cJ(e, i.draft_ ?? i, a, n), lJ(i, r);
+ let a = Bq(i);
+ sJ(e, i.draft_ ?? i, a, n), cJ(i, r);
});
}
-function lJ(e, t) {
+function cJ(e, t) {
if (e.modified_ && !e.finalized_ && (e.type_ === 3 || e.type_ === 1 && e.allIndicesReassigned_ || (e.assigned_?.size ?? 0) > 0)) {
let { patchPlugin_: n } = t;
if (n) {
let r = n.getPath(e);
r && n.generatePatches_(e, r, t);
}
- oJ(e);
+ aJ(e);
}
}
-function ZPe(e, t, n) {
+function QPe(e, t, n) {
let { scope_: r } = e;
- if (Tq(n)) {
- let i = n[hq];
- sJ(i, r) && i.callbacks_.push(function() {
- gJ(e), cJ(e, n, Vq(i), t);
+ if (wq(n)) {
+ let i = n[mq];
+ oJ(i, r) && i.callbacks_.push(function() {
+ hJ(e), sJ(e, n, Bq(i), t);
});
- } else Eq(n) && e.callbacks_.push(function() {
- let i = Bq(e);
- e.type_ === 3 ? i.has(n) && uJ(n, r.handledSet_, r) : Mq(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && uJ(Mq(e.copy_, t, e.type_), r.handledSet_, r);
+ } else Tq(n) && e.callbacks_.push(function() {
+ let i = zq(e);
+ e.type_ === 3 ? i.has(n) && lJ(n, r.handledSet_, r) : jq(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && lJ(jq(e.copy_, t, e.type_), r.handledSet_, r);
});
}
-function uJ(e, t, n) {
- return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || Tq(e) || t.has(e) || !Eq(e) || Gq(e) || (t.add(e), kq(e, (r, i) => {
- if (Tq(i)) {
- let t = i[hq];
- sJ(t, n) && (Nq(e, r, Vq(t), e.type_), oJ(t));
- } else Eq(i) && uJ(i, t, n);
+function lJ(e, t, n) {
+ return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || wq(e) || t.has(e) || !Tq(e) || Wq(e) || (t.add(e), Oq(e, (r, i) => {
+ if (wq(i)) {
+ let t = i[mq];
+ oJ(t, n) && (Mq(e, r, Bq(t), e.type_), aJ(t));
+ } else Tq(i) && lJ(i, t, n);
})), e;
}
-function QPe(e, t) {
- let n = Pq(e), r = {
+function $Pe(e, t) {
+ let n = Nq(e), r = {
type_: +!!n,
- scope_: t ? t.scope_ : $q(),
+ scope_: t ? t.scope_ : Qq(),
modified_: !1,
finalized_: !1,
assigned_: void 0,
@@ -68106,108 +68106,108 @@ function QPe(e, t) {
revoke_: null,
isManual_: !1,
callbacks_: void 0
- }, i = r, a = dJ;
- n && (i = [r], a = fJ);
+ }, i = r, a = uJ;
+ n && (i = [r], a = dJ);
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
return r.draft_ = s, r.revoke_ = o, [s, r];
}
-var dJ = {
+var uJ = {
get(e, t) {
- if (t === hq) return e;
+ if (t === mq) return e;
let n = e.scope_.arrayMethodsPlugin_, r = e.type_ === 1 && typeof t == "string";
if (r && n?.isArrayOperationMethod(t)) return n.createMethodInterceptor(e, t);
- let i = Bq(e);
- if (!jq(i, t, e.type_)) return eFe(e, i, t);
+ let i = zq(e);
+ if (!Aq(i, t, e.type_)) return tFe(e, i, t);
let a = i[t];
- if (e.finalized_ || !Eq(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && WPe(t)) return a;
- if (a === pJ(e.base_, t) || $Pe(e, t, a)) {
- gJ(e);
- let n = e.type_ === 1 ? +t : t, r = _J(e.scope_, a, e, n);
+ if (e.finalized_ || !Tq(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && GPe(t)) return a;
+ if (a === fJ(e.base_, t) || eFe(e, t, a)) {
+ hJ(e);
+ let n = e.type_ === 1 ? +t : t, r = gJ(e.scope_, a, e, n);
return e.copy_[n] = r;
}
return a;
},
has(e, t) {
- return t in Bq(e);
+ return t in zq(e);
},
ownKeys(e) {
- return Reflect.ownKeys(Bq(e));
+ return Reflect.ownKeys(zq(e));
},
set(e, t, n) {
- let r = mJ(Bq(e), t);
+ let r = pJ(zq(e), t);
if (r?.set) return r.set.call(e.draft_, n), !0;
if (!e.modified_) {
- let r = pJ(Bq(e), t), i = r?.[hq];
+ let r = fJ(zq(e), t), i = r?.[mq];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.delete(t), !0;
- if (UPe(n, r) && (n !== void 0 || jq(e.base_, t, e.type_))) return !0;
- gJ(e), hJ(e);
+ if (WPe(n, r) && (n !== void 0 || Aq(e.base_, t, e.type_))) return !0;
+ hJ(e), mJ(e);
}
- return e.copy_[t] === n && (n !== void 0 || jq(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) || (e.copy_[t] = n, e.assigned_.set(t, !0), ZPe(e, t, n)), !0;
+ return e.copy_[t] === n && (n !== void 0 || Aq(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) || (e.copy_[t] = n, e.assigned_.set(t, !0), QPe(e, t, n)), !0;
},
deleteProperty(e, t) {
- return gJ(e), pJ(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), hJ(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
+ return hJ(e), fJ(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), mJ(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
},
getOwnPropertyDescriptor(e, t) {
- let n = Bq(e), r = Reflect.getOwnPropertyDescriptor(n, t);
+ let n = zq(e), r = Reflect.getOwnPropertyDescriptor(n, t);
return r && {
- [Cq]: !0,
- [xq]: e.type_ !== 1 || t !== "length",
- [Sq]: r[Sq],
- [wq]: n[t]
+ [Sq]: !0,
+ [bq]: e.type_ !== 1 || t !== "length",
+ [xq]: r[xq],
+ [Cq]: n[t]
};
},
defineProperty() {
- gq(11);
+ hq(11);
},
getPrototypeOf(e) {
- return vq(e.base_);
+ return _q(e.base_);
},
setPrototypeOf() {
- gq(12);
+ hq(12);
}
-}, fJ = {};
-for (let e in dJ) {
- let t = dJ[e];
- fJ[e] = function() {
+}, dJ = {};
+for (let e in uJ) {
+ let t = uJ[e];
+ dJ[e] = function() {
let e = arguments;
return e[0] = e[0][0], t.apply(this, e);
};
}
-fJ.deleteProperty = function(e, t) {
- return fJ.set.call(this, e, t, void 0);
-}, fJ.set = function(e, t, n) {
- return dJ.set.call(this, e[0], t, n, e[0]);
+dJ.deleteProperty = function(e, t) {
+ return dJ.set.call(this, e, t, void 0);
+}, dJ.set = function(e, t, n) {
+ return uJ.set.call(this, e[0], t, n, e[0]);
};
-function pJ(e, t) {
- let n = e[hq];
- return (n ? Bq(n) : e)[t];
-}
-function $Pe(e, t, n) {
- return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !Eq(n) || n[hq] ? !1 : e.baseRefs_.has(n);
+function fJ(e, t) {
+ let n = e[mq];
+ return (n ? zq(n) : e)[t];
}
function eFe(e, t, n) {
- let r = mJ(t, n);
- return r ? wq in r ? r[wq] : r.get?.call(e.draft_) : void 0;
+ return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !Tq(n) || n[mq] ? !1 : e.baseRefs_.has(n);
}
-function mJ(e, t) {
+function tFe(e, t, n) {
+ let r = pJ(t, n);
+ return r ? Cq in r ? r[Cq] : r.get?.call(e.draft_) : void 0;
+}
+function pJ(e, t) {
if (!(t in e)) return;
- let n = vq(e);
+ let n = _q(e);
for (; n;) {
let e = Object.getOwnPropertyDescriptor(n, t);
if (e) return e;
- n = vq(n);
+ n = _q(n);
}
}
-function hJ(e) {
- e.modified_ || (e.modified_ = !0, e.parent_ && hJ(e.parent_));
+function mJ(e) {
+ e.modified_ || (e.modified_ = !0, e.parent_ && mJ(e.parent_));
}
-function gJ(e) {
- e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), Hq(e.base_, e.scope_.immer_.useStrictShallowCopy_));
+function hJ(e) {
+ e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), Vq(e.base_, e.scope_.immer_.useStrictShallowCopy_));
}
-var tFe = class {
+var nFe = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {
- if (Rq(e) && !Rq(t)) {
+ if (Lq(e) && !Lq(t)) {
let n = t;
t = e;
let r = this;
@@ -68215,30 +68215,30 @@ var tFe = class {
return r.produce(e, (e) => t.call(this, e, ...i));
};
}
- Rq(t) || gq(6), n !== void 0 && !Rq(n) && gq(7);
+ Lq(t) || hq(6), n !== void 0 && !Lq(n) && hq(7);
let r;
- if (Eq(e)) {
- let i = rJ(this), a = _J(i, e, void 0), o = !0;
+ if (Tq(e)) {
+ let i = nJ(this), a = gJ(i, e, void 0), o = !0;
try {
r = t(a), o = !1;
} finally {
- o ? tJ(i) : nJ(i);
+ o ? eJ(i) : tJ(i);
}
- return eJ(i, n), iJ(r, i);
+ return $q(i, n), rJ(r, i);
}
- if (!e || !Lq(e)) {
- if (r = t(e), r === void 0 && (r = e), r === pq && (r = void 0), this.autoFreeze_ && Uq(r, !0), n) {
+ if (!e || !Iq(e)) {
+ if (r = t(e), r === void 0 && (r = e), r === fq && (r = void 0), this.autoFreeze_ && Hq(r, !0), n) {
let t = [], i = [];
- Xq(qq).generateReplacementPatches_(e, r, {
+ Yq(Kq).generateReplacementPatches_(e, r, {
patches_: t,
inversePatches_: i
}), n(t, i);
}
return r;
}
- gq(1, e);
+ hq(1, e);
}, this.produceWithPatches = (e, t) => {
- if (Rq(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
+ if (Lq(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
let n, r;
return [
this.produce(e, t, (e, t) => {
@@ -68247,18 +68247,18 @@ var tFe = class {
n,
r
];
- }, zq(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), zq(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), zq(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
+ }, Rq(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), Rq(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), Rq(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
}
createDraft(e) {
- Eq(e) || gq(8), Tq(e) && (e = vJ(e));
- let t = rJ(this), n = _J(t, e, void 0);
- return n[hq].isManual_ = !0, nJ(t), n;
+ Tq(e) || hq(8), wq(e) && (e = _J(e));
+ let t = nJ(this), n = gJ(t, e, void 0);
+ return n[mq].isManual_ = !0, tJ(t), n;
}
finishDraft(e, t) {
- let n = e && e[hq];
- (!n || !n.isManual_) && gq(9);
+ let n = e && e[mq];
+ (!n || !n.isManual_) && hq(9);
let { scope_: r } = n;
- return eJ(r, t), iJ(void 0, r);
+ return $q(r, t), rJ(void 0, r);
}
setAutoFreeze(e) {
this.autoFreeze_ = e;
@@ -68282,48 +68282,48 @@ var tFe = class {
}
}
n > -1 && (t = t.slice(n + 1));
- let r = Xq(qq).applyPatches_;
- return Tq(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
+ let r = Yq(Kq).applyPatches_;
+ return wq(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
}
};
-function _J(e, t, n, r) {
- let [i, a] = Fq(t) ? Xq(Kq).proxyMap_(t, n) : Iq(t) ? Xq(Kq).proxySet_(t, n) : QPe(t, n);
- return (n?.scope_ ?? $q()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? XPe(n, a, r) : a.callbacks_.push(function(e) {
+function gJ(e, t, n, r) {
+ let [i, a] = Pq(t) ? Yq(Gq).proxyMap_(t, n) : Fq(t) ? Yq(Gq).proxySet_(t, n) : $Pe(t, n);
+ return (n?.scope_ ?? Qq()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? ZPe(n, a, r) : a.callbacks_.push(function(e) {
e.mapSetPlugin_?.fixSetContents(a);
let { patchPlugin_: t } = e;
a.modified_ && t && t.generatePatches_(a, [], e);
}), i;
}
-function vJ(e) {
- return Tq(e) || gq(10, e), yJ(e);
+function _J(e) {
+ return wq(e) || hq(10, e), vJ(e);
}
-function yJ(e) {
- if (!Eq(e) || Gq(e)) return e;
- let t = e[hq], n, r = !0;
+function vJ(e) {
+ if (!Tq(e) || Wq(e)) return e;
+ let t = e[mq], n, r = !0;
if (t) {
if (!t.modified_) return t.base_;
- t.finalized_ = !0, n = Hq(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
- } else n = Hq(e, !0);
- return kq(n, (e, t) => {
- Nq(n, e, yJ(t));
+ t.finalized_ = !0, n = Vq(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
+ } else n = Vq(e, !0);
+ return Oq(n, (e, t) => {
+ Mq(n, e, vJ(t));
}, r), t && (t.finalized_ = !1), n;
}
globalThis.Iterator?.from;
-var bJ = new tFe().produce, xJ = (e) => e;
+var yJ = new nFe().produce, bJ = (e) => e;
//#endregion
//#region node_modules/redux-thunk/dist/redux-thunk.mjs
-function SJ(e) {
+function xJ(e) {
return ({ dispatch: t, getState: n }) => (r) => (i) => typeof i == "function" ? i(t, n, e) : r(i);
}
-var nFe = SJ(), rFe = SJ, iFe = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
- if (arguments.length !== 0) return typeof arguments[0] == "object" ? dq : dq.apply(null, arguments);
+var rFe = xJ(), iFe = xJ, aFe = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
+ if (arguments.length !== 0) return typeof arguments[0] == "object" ? uq : uq.apply(null, arguments);
};
typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
-function CJ(e, t) {
+function SJ(e, t) {
function n(...n) {
if (t) {
let r = t(...n);
- if (!r) throw Error(iY(0));
+ if (!r) throw Error(rY(0));
return {
type: e,
payload: r.payload,
@@ -68336,9 +68336,9 @@ function CJ(e, t) {
payload: n[0]
};
}
- return n.toString = () => `${e}`, n.type = e, n.match = (t) => fq(t) && t.type === e, n;
+ return n.toString = () => `${e}`, n.type = e, n.match = (t) => dq(t) && t.type === e, n;
}
-var wJ = class e extends Array {
+var CJ = class e extends Array {
constructor(...t) {
super(...t), Object.setPrototypeOf(this, e.prototype);
}
@@ -68352,29 +68352,29 @@ var wJ = class e extends Array {
return t.length === 1 && Array.isArray(t[0]) ? new e(...t[0].concat(this)) : new e(...t.concat(this));
}
};
-function TJ(e) {
- return Eq(e) ? bJ(e, () => {}) : e;
+function wJ(e) {
+ return Tq(e) ? yJ(e, () => {}) : e;
}
-function EJ(e, t, n) {
+function TJ(e, t, n) {
return e.has(t) ? e.get(t) : e.set(t, n(t)).get(t);
}
-function aFe(e) {
+function oFe(e) {
return typeof e == "boolean";
}
-var oFe = () => function(e) {
- let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new wJ();
- return t && (aFe(t) ? a.push(nFe) : a.push(rFe(t.extraArgument))), a;
-}, DJ = "RTK_autoBatch", OJ = () => (e) => ({
+var sFe = () => function(e) {
+ let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new CJ();
+ return t && (oFe(t) ? a.push(rFe) : a.push(iFe(t.extraArgument))), a;
+}, EJ = "RTK_autoBatch", DJ = () => (e) => ({
payload: e,
- meta: { [DJ]: !0 }
-}), kJ = (e) => (t) => {
+ meta: { [EJ]: !0 }
+}), OJ = (e) => (t) => {
setTimeout(t, e);
-}, sFe = (e, t) => (n) => {
+}, cFe = (e, t) => (n) => {
let r = !1, i = () => {
r || (r = !0, cancelAnimationFrame(a), clearTimeout(o), n());
}, a = e(i), o = setTimeout(i, t);
-}, AJ = (e = { type: "raf" }) => (t) => (...n) => {
- let r = t(...n), i = !0, a = !1, o = !1, s = /* @__PURE__ */ new Set(), c = e.type === "tick" ? queueMicrotask : e.type === "raf" ? typeof window < "u" && window.requestAnimationFrame ? sFe(window.requestAnimationFrame, 100) : kJ(10) : e.type === "callback" ? e.queueNotification : kJ(e.timeout), l = () => {
+}, kJ = (e = { type: "raf" }) => (t) => (...n) => {
+ let r = t(...n), i = !0, a = !1, o = !1, s = /* @__PURE__ */ new Set(), c = e.type === "tick" ? queueMicrotask : e.type === "raf" ? typeof window < "u" && window.requestAnimationFrame ? cFe(window.requestAnimationFrame, 100) : OJ(10) : e.type === "callback" ? e.queueNotification : OJ(e.timeout), l = () => {
o = !1, a && (a = !1, s.forEach((e) => e()));
};
return Object.assign({}, r, {
@@ -68386,37 +68386,37 @@ var oFe = () => function(e) {
},
dispatch(e) {
try {
- return i = !e?.meta?.[DJ], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);
+ return i = !e?.meta?.[EJ], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);
} finally {
i = !0;
}
}
});
-}, cFe = (e) => function(t) {
- let { autoBatch: n = !0 } = t ?? {}, r = new wJ(e);
- return n && r.push(AJ(typeof n == "object" ? n : void 0)), r;
+}, lFe = (e) => function(t) {
+ let { autoBatch: n = !0 } = t ?? {}, r = new CJ(e);
+ return n && r.push(kJ(typeof n == "object" ? n : void 0)), r;
};
-function lFe(e) {
- let t = oFe(), { reducer: n = void 0, middleware: r, devTools: i = !0, duplicateMiddlewareCheck: a = !0, preloadedState: o = void 0, enhancers: s = void 0 } = e || {}, c;
+function uFe(e) {
+ let t = sFe(), { reducer: n = void 0, middleware: r, devTools: i = !0, duplicateMiddlewareCheck: a = !0, preloadedState: o = void 0, enhancers: s = void 0 } = e || {}, c;
if (typeof n == "function") c = n;
- else if (cq(n)) c = uq(n);
- else throw Error(iY(1));
+ else if (sq(n)) c = lq(n);
+ else throw Error(rY(1));
let l;
l = typeof r == "function" ? r(t) : t();
- let u = dq;
- i && (u = iFe({
+ let u = uq;
+ i && (u = aFe({
trace: !1,
...typeof i == "object" && i
}));
- let d = cFe(VPe(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
- return lq(c, o, p);
+ let d = lFe(HPe(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
+ return cq(c, o, p);
}
-function jJ(e) {
+function AJ(e) {
let t = {}, n = [], r, i = {
addCase(e, n) {
let r = typeof e == "string" ? e : e.type;
- if (!r) throw Error(iY(28));
- if (r in t) throw Error(iY(29));
+ if (!r) throw Error(rY(28));
+ if (r in t) throw Error(rY(29));
return t[r] = n, i;
},
addAsyncThunk(e, r) {
@@ -68441,25 +68441,25 @@ function jJ(e) {
r
];
}
-function uFe(e) {
+function dFe(e) {
return typeof e == "function";
}
-function dFe(e, t) {
- let [n, r, i] = jJ(t), a;
- if (uFe(e)) a = () => TJ(e());
+function fFe(e, t) {
+ let [n, r, i] = AJ(t), a;
+ if (dFe(e)) a = () => wJ(e());
else {
- let t = TJ(e);
+ let t = wJ(e);
a = () => t;
}
function o(e = a(), t) {
let o = [n[t.type], ...r.filter(({ matcher: e }) => e(t)).map(({ reducer: e }) => e)];
return o.filter((e) => !!e).length === 0 && (o = [i]), o.reduce((e, n) => {
if (n) {
- if (Tq(e)) {
+ if (wq(e)) {
let r = n(e, t);
return r === void 0 ? e : r;
}
- if (Eq(e)) return bJ(e, (e) => n(e, t));
+ if (Tq(e)) return yJ(e, (e) => n(e, t));
{
let r = n(e, t);
if (r === void 0) {
@@ -68474,20 +68474,20 @@ function dFe(e, t) {
}
return o.getInitialState = a, o;
}
-var fFe = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", pFe = (e = 21) => {
+var pFe = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", mFe = (e = 21) => {
let t = "", n = e;
- for (; n--;) t += fFe[Math.random() * 64 | 0];
+ for (; n--;) t += pFe[Math.random() * 64 | 0];
return t;
-}, mFe = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
-function hFe(e, t) {
+}, hFe = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
+function gFe(e, t) {
return `${e}/${t}`;
}
-function gFe({ creators: e } = {}) {
- let t = e?.asyncThunk?.[mFe];
+function _Fe({ creators: e } = {}) {
+ let t = e?.asyncThunk?.[hFe];
return function(e) {
let { name: n, reducerPath: r = n } = e;
- if (!n) throw Error(iY(11));
- let i = (typeof e.reducers == "function" ? e.reducers(vFe()) : e.reducers) || {}, a = Object.keys(i), o = {
+ if (!n) throw Error(rY(11));
+ let i = (typeof e.reducers == "function" ? e.reducers(yFe()) : e.reducers) || {}, a = Object.keys(i), o = {
sliceCaseReducersByName: {},
sliceCaseReducersByType: {},
actionCreators: {},
@@ -68495,8 +68495,8 @@ function gFe({ creators: e } = {}) {
}, s = {
addCase(e, t) {
let n = typeof e == "string" ? e : e.type;
- if (!n) throw Error(iY(12));
- if (n in o.sliceCaseReducersByType) throw Error(iY(13));
+ if (!n) throw Error(rY(12));
+ if (n in o.sliceCaseReducersByType) throw Error(rY(13));
return o.sliceCaseReducersByType[n] = t, s;
},
addMatcher(e, t) {
@@ -68515,17 +68515,17 @@ function gFe({ creators: e } = {}) {
a.forEach((r) => {
let a = i[r], o = {
reducerName: r,
- type: hFe(n, r),
+ type: gFe(n, r),
createNotation: typeof e.reducers == "function"
};
- bFe(a) ? SFe(o, a, s, t) : yFe(o, a, s);
+ xFe(a) ? CFe(o, a, s, t) : bFe(o, a, s);
});
function c() {
- let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? jJ(e.extraReducers) : [e.extraReducers], i = {
+ let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? AJ(e.extraReducers) : [e.extraReducers], i = {
...t,
...o.sliceCaseReducersByType
};
- return dFe(e.initialState, (e) => {
+ return fFe(e.initialState, (e) => {
for (let t in i) e.addCase(t, i[t]);
for (let t of o.sliceMatchers) e.addMatcher(t.matcher, t.reducer);
for (let t of n) e.addMatcher(t.matcher, t.reducer);
@@ -68542,12 +68542,12 @@ function gFe({ creators: e } = {}) {
function h(t, n = !1) {
function r(e) {
let i = e[t];
- return i === void 0 && n && (i = EJ(d, r, m)), i;
+ return i === void 0 && n && (i = TJ(d, r, m)), i;
}
function i(t = l) {
- return EJ(EJ(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
+ return TJ(TJ(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
let r = {};
- for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = _Fe(a, t, () => EJ(d, t, m), n);
+ for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = vFe(a, t, () => TJ(d, t, m), n);
return r;
});
}
@@ -68581,15 +68581,15 @@ function gFe({ creators: e } = {}) {
return g;
};
}
-function _Fe(e, t, n, r) {
+function vFe(e, t, n, r) {
function i(i, ...a) {
let o = t(i);
return o === void 0 && r && (o = n()), e(o, ...a);
}
return i.unwrapped = e, i;
}
-var MJ = /* @__PURE__ */ gFe();
-function vFe() {
+var jJ = /* @__PURE__ */ _Fe();
+function yFe() {
function e(e, t) {
return {
_reducerDefinitionType: "asyncThunk",
@@ -68613,53 +68613,53 @@ function vFe() {
asyncThunk: e
};
}
-function yFe({ type: e, reducerName: t, createNotation: n }, r, i) {
+function bFe({ type: e, reducerName: t, createNotation: n }, r, i) {
let a, o;
if ("reducer" in r) {
- if (n && !xFe(r)) throw Error(iY(17));
+ if (n && !SFe(r)) throw Error(rY(17));
a = r.reducer, o = r.prepare;
} else a = r;
- i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? CJ(e, o) : CJ(e));
+ i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? SJ(e, o) : SJ(e));
}
-function bFe(e) {
+function xFe(e) {
return e._reducerDefinitionType === "asyncThunk";
}
-function xFe(e) {
+function SFe(e) {
return e._reducerDefinitionType === "reducerWithPrepare";
}
-function SFe({ type: e, reducerName: t }, n, r, i) {
- if (!i) throw Error(iY(18));
+function CFe({ type: e, reducerName: t }, n, r, i) {
+ if (!i) throw Error(rY(18));
let { payloadCreator: a, fulfilled: o, pending: s, rejected: c, settled: l, options: u } = n, d = i(e, a, u);
r.exposeAction(t, d), o && r.addCase(d.fulfilled, o), s && r.addCase(d.pending, s), c && r.addCase(d.rejected, c), l && r.addMatcher(d.settled, l), r.exposeCaseReducer(t, {
- fulfilled: o || NJ,
- pending: s || NJ,
- rejected: c || NJ,
- settled: l || NJ
+ fulfilled: o || MJ,
+ pending: s || MJ,
+ rejected: c || MJ,
+ settled: l || MJ
});
}
-function NJ() {}
-var CFe = "task", PJ = "listener", FJ = "completed", IJ = "cancelled", wFe = `task-${IJ}`, TFe = `task-${FJ}`, LJ = `${PJ}-${IJ}`, EFe = `${PJ}-${FJ}`, RJ = class {
+function MJ() {}
+var wFe = "task", NJ = "listener", PJ = "completed", FJ = "cancelled", TFe = `task-${FJ}`, EFe = `task-${PJ}`, IJ = `${NJ}-${FJ}`, DFe = `${NJ}-${PJ}`, LJ = class {
constructor(e) {
- this.code = e, this.message = `${CFe} ${IJ} (reason: ${e})`;
+ this.code = e, this.message = `${wFe} ${FJ} (reason: ${e})`;
}
code;
name = "TaskAbortError";
message;
-}, zJ = (e, t) => {
- if (typeof e != "function") throw TypeError(iY(32));
-}, BJ = () => {}, VJ = (e, t = BJ) => (e.catch(t), e), HJ = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), UJ = (e) => {
- if (e.aborted) throw new RJ(e.reason);
+}, RJ = (e, t) => {
+ if (typeof e != "function") throw TypeError(rY(32));
+}, zJ = () => {}, BJ = (e, t = zJ) => (e.catch(t), e), VJ = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), HJ = (e) => {
+ if (e.aborted) throw new LJ(e.reason);
};
-function WJ(e, t) {
- let n = BJ;
+function UJ(e, t) {
+ let n = zJ;
return new Promise((r, i) => {
- let a = () => i(new RJ(e.reason));
- e.aborted ? a() : (n = HJ(e, a), t.finally(() => n()).then(r, i));
+ let a = () => i(new LJ(e.reason));
+ e.aborted ? a() : (n = VJ(e, a), t.finally(() => n()).then(r, i));
}).finally(() => {
- n = BJ;
+ n = zJ;
});
}
-var DFe = async (e, t) => {
+var OFe = async (e, t) => {
try {
return await Promise.resolve(), {
status: "ok",
@@ -68667,40 +68667,40 @@ var DFe = async (e, t) => {
};
} catch (e) {
return {
- status: e instanceof RJ ? "cancelled" : "rejected",
+ status: e instanceof LJ ? "cancelled" : "rejected",
error: e
};
} finally {
t?.();
}
-}, GJ = (e) => (t) => VJ(WJ(e, t).then((t) => (UJ(e), t))), KJ = (e) => {
- let t = GJ(e);
+}, WJ = (e) => (t) => BJ(UJ(e, t).then((t) => (HJ(e), t))), GJ = (e) => {
+ let t = WJ(e);
return (e) => t(new Promise((t) => setTimeout(t, e)));
-}, { assign: qJ } = Object, JJ = {}, YJ = "listenerMiddleware", OFe = (e, t) => {
- let n = (t) => HJ(e, () => t.abort(e.reason));
+}, { assign: KJ } = Object, qJ = {}, JJ = "listenerMiddleware", kFe = (e, t) => {
+ let n = (t) => VJ(e, () => t.abort(e.reason));
return (r, i) => {
- zJ(r, "taskExecutor");
+ RJ(r, "taskExecutor");
let a = new AbortController();
n(a);
- let o = DFe(async () => {
- UJ(e), UJ(a.signal);
+ let o = OFe(async () => {
+ HJ(e), HJ(a.signal);
let t = await r({
- pause: GJ(a.signal),
- delay: KJ(a.signal),
+ pause: WJ(a.signal),
+ delay: GJ(a.signal),
signal: a.signal
});
- return UJ(a.signal), t;
- }, () => a.abort(TFe));
- return i?.autoJoin && t.push(o.catch(BJ)), {
- result: GJ(e)(o),
+ return HJ(a.signal), t;
+ }, () => a.abort(EFe));
+ return i?.autoJoin && t.push(o.catch(zJ)), {
+ result: WJ(e)(o),
cancel() {
- a.abort(wFe);
+ a.abort(TFe);
}
};
};
-}, kFe = (e, t) => {
+}, AFe = (e, t) => {
let n = async (n, r) => {
- UJ(t);
+ HJ(t);
let i = () => {}, a = [new Promise((t, r) => {
let a = e({
predicate: n,
@@ -68718,47 +68718,47 @@ var DFe = async (e, t) => {
})];
r != null && a.push(new Promise((e) => setTimeout(e, r, null)));
try {
- let e = await WJ(t, Promise.race(a));
- return UJ(t), e;
+ let e = await UJ(t, Promise.race(a));
+ return HJ(t), e;
} finally {
i();
}
};
- return ((e, t) => VJ(n(e, t)));
-}, XJ = (e) => {
+ return ((e, t) => BJ(n(e, t)));
+}, YJ = (e) => {
let { type: t, actionCreator: n, matcher: r, predicate: i, effect: a } = e;
- if (t) i = CJ(t).match;
+ if (t) i = SJ(t).match;
else if (n) t = n.type, i = n.match;
else if (r) i = r;
- else if (!i) throw Error(iY(21));
- return zJ(a, "options.listener"), {
+ else if (!i) throw Error(rY(21));
+ return RJ(a, "options.listener"), {
predicate: i,
type: t,
effect: a
};
-}, ZJ = /* @__PURE__ */ qJ((e) => {
- let { type: t, predicate: n, effect: r } = XJ(e);
+}, XJ = /* @__PURE__ */ KJ((e) => {
+ let { type: t, predicate: n, effect: r } = YJ(e);
return {
- id: pFe(),
+ id: mFe(),
effect: r,
type: t,
predicate: n,
pending: /* @__PURE__ */ new Set(),
unsubscribe: () => {
- throw Error(iY(22));
+ throw Error(rY(22));
}
};
-}, { withTypes: () => ZJ }), QJ = (e, t) => {
- let { type: n, effect: r, predicate: i } = XJ(t);
+}, { withTypes: () => XJ }), ZJ = (e, t) => {
+ let { type: n, effect: r, predicate: i } = YJ(t);
return Array.from(e.values()).find((e) => (typeof n == "string" ? e.type === n : e.predicate === i) && e.effect === r);
-}, $J = (e) => {
+}, QJ = (e) => {
e.pending.forEach((e) => {
- e.abort(LJ);
+ e.abort(IJ);
});
-}, AFe = (e, t) => () => {
- for (let e of t.keys()) $J(e);
+}, jFe = (e, t) => () => {
+ for (let e of t.keys()) QJ(e);
e.clear();
-}, eY = (e, t, n) => {
+}, $J = (e, t, n) => {
try {
e(t, n);
} catch (e) {
@@ -68766,74 +68766,74 @@ var DFe = async (e, t) => {
throw e;
}, 0);
}
-}, tY = /* @__PURE__ */ qJ(/* @__PURE__ */ CJ(`${YJ}/add`), { withTypes: () => tY }), jFe = /* @__PURE__ */ CJ(`${YJ}/removeAll`), nY = /* @__PURE__ */ qJ(/* @__PURE__ */ CJ(`${YJ}/remove`), { withTypes: () => nY }), MFe = (...e) => {
- console.error(`${YJ}/error`, ...e);
-}, rY = (e = {}) => {
+}, eY = /* @__PURE__ */ KJ(/* @__PURE__ */ SJ(`${JJ}/add`), { withTypes: () => eY }), MFe = /* @__PURE__ */ SJ(`${JJ}/removeAll`), tY = /* @__PURE__ */ KJ(/* @__PURE__ */ SJ(`${JJ}/remove`), { withTypes: () => tY }), NFe = (...e) => {
+ console.error(`${JJ}/error`, ...e);
+}, nY = (e = {}) => {
let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = (e) => {
let t = n.get(e) ?? 0;
n.set(e, t + 1);
}, i = (e) => {
let t = n.get(e) ?? 1;
t === 1 ? n.delete(e) : n.set(e, t - 1);
- }, { extra: a, onError: o = MFe } = e;
- zJ(o, "onError");
+ }, { extra: a, onError: o = NFe } = e;
+ RJ(o, "onError");
let s = (e) => (e.unsubscribe = () => t.delete(e.id), t.set(e.id, e), (t) => {
- e.unsubscribe(), t?.cancelActive && $J(e);
+ e.unsubscribe(), t?.cancelActive && QJ(e);
}), c = ((e) => {
- let n = QJ(t, e) ?? ZJ(e);
+ let n = ZJ(t, e) ?? XJ(e);
return s(n);
});
- qJ(c, { withTypes: () => c });
+ KJ(c, { withTypes: () => c });
let l = (e) => {
- let n = QJ(t, e);
- return n && (n.unsubscribe(), e.cancelActive && $J(n)), !!n;
+ let n = ZJ(t, e);
+ return n && (n.unsubscribe(), e.cancelActive && QJ(n)), !!n;
};
- qJ(l, { withTypes: () => l });
+ KJ(l, { withTypes: () => l });
let u = async (e, n, s, l) => {
- let u = new AbortController(), d = kFe(c, u.signal), f = [];
+ let u = new AbortController(), d = AFe(c, u.signal), f = [];
try {
- e.pending.add(u), r(e), await Promise.resolve(e.effect(n, qJ({}, s, {
+ e.pending.add(u), r(e), await Promise.resolve(e.effect(n, KJ({}, s, {
getOriginalState: l,
condition: (e, t) => d(e, t).then(Boolean),
take: d,
- delay: KJ(u.signal),
- pause: GJ(u.signal),
+ delay: GJ(u.signal),
+ pause: WJ(u.signal),
extra: a,
signal: u.signal,
- fork: OFe(u.signal, f),
+ fork: kFe(u.signal, f),
unsubscribe: e.unsubscribe,
subscribe: () => {
t.set(e.id, e);
},
cancelActiveListeners: () => {
e.pending.forEach((e, t, n) => {
- e !== u && (e.abort(LJ), n.delete(e));
+ e !== u && (e.abort(IJ), n.delete(e));
});
},
cancel: () => {
- u.abort(LJ), e.pending.delete(u);
+ u.abort(IJ), e.pending.delete(u);
},
throwIfCancelled: () => {
- UJ(u.signal);
+ HJ(u.signal);
}
})));
} catch (e) {
- e instanceof RJ || eY(o, e, { raisedBy: "effect" });
+ e instanceof LJ || $J(o, e, { raisedBy: "effect" });
} finally {
- await Promise.all(f), u.abort(EFe), i(e), e.pending.delete(u);
+ await Promise.all(f), u.abort(DFe), i(e), e.pending.delete(u);
}
- }, d = AFe(t, n);
+ }, d = jFe(t, n);
return {
middleware: (e) => (n) => (r) => {
- if (!fq(r)) return n(r);
- if (tY.match(r)) return c(r.payload);
- if (jFe.match(r)) {
+ if (!dq(r)) return n(r);
+ if (eY.match(r)) return c(r.payload);
+ if (MFe.match(r)) {
d();
return;
}
- if (nY.match(r)) return l(r.payload);
+ if (tY.match(r)) return l(r.payload);
let i = e.getState(), a = () => {
- if (i === JJ) throw Error(iY(23));
+ if (i === qJ) throw Error(rY(23));
return i;
}, s;
try {
@@ -68844,13 +68844,13 @@ var DFe = async (e, t) => {
try {
s = t.predicate(r, n, i);
} catch (e) {
- s = !1, eY(o, e, { raisedBy: "predicate" });
+ s = !1, $J(o, e, { raisedBy: "predicate" });
}
s && u(t, r, e, a);
}
}
} finally {
- i = JJ;
+ i = qJ;
}
return s;
},
@@ -68859,12 +68859,12 @@ var DFe = async (e, t) => {
clearListeners: d
};
};
-function iY(e) {
+function rY(e) {
return `Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
}
//#endregion
//#region node_modules/recharts/es6/state/layoutSlice.js
-var aY = MJ({
+var iY = jJ({
name: "chartLayout",
initialState: {
layoutType: "horizontal",
@@ -68892,23 +68892,23 @@ var aY = MJ({
e.scale = t.payload;
}
}
-}), oY = aY.actions, NFe = oY.setMargin, PFe = oY.setLayout, FFe = oY.setChartSize, IFe = oY.setScale, LFe = aY.reducer;
+}), aY = iY.actions, PFe = aY.setMargin, FFe = aY.setLayout, IFe = aY.setChartSize, LFe = aY.setScale, RFe = iY.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getSliced.js
-function sY(e, t, n) {
+function oY(e, t, n) {
return Array.isArray(e) && e && t + n !== 0 ? e.slice(t, n + 1) : e;
}
//#endregion
//#region node_modules/recharts/es6/util/isWellBehavedNumber.js
-function cY(e) {
+function sY(e) {
return Number.isFinite(e);
}
-function lY(e) {
+function cY(e) {
return typeof e == "number" && e > 0 && Number.isFinite(e);
}
//#endregion
//#region node_modules/recharts/es6/util/ChartUtils.js
-function uY(e, t) {
+function lY(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -68918,30 +68918,30 @@ function uY(e, t) {
}
return n;
}
-function dY(e) {
+function uY(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? uY(Object(n), !0).forEach(function(t) {
- RFe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : uY(Object(n)).forEach(function(t) {
+ t % 2 ? lY(Object(n), !0).forEach(function(t) {
+ zFe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : lY(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function RFe(e, t, n) {
- return (t = zFe(t)) in e ? Object.defineProperty(e, t, {
+function zFe(e, t, n) {
+ return (t = BFe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function zFe(e) {
- var t = BFe(e, "string");
+function BFe(e) {
+ var t = VFe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function BFe(e, t) {
+function VFe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -68951,72 +68951,72 @@ function BFe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function fY(e, t, n) {
- return zW(e) || zW(t) ? n : NW(t) ? EW(e, t, n) : typeof t == "function" ? t(e) : n;
+function dY(e, t, n) {
+ return RW(e) || RW(t) ? n : MW(t) ? TW(e, t, n) : typeof t == "function" ? t(e) : n;
}
-var VFe = (e, t, n) => {
+var HFe = (e, t, n) => {
if (t && n) {
var r = n.width, i = n.height, a = t.align, o = t.verticalAlign, s = t.layout, c = t.position, l = t.offset, u = l === void 0 ? 0 : l;
if (c != null) {
- if (qW(c)) {
- if (c === "top" && MW(e.top)) return dY(dY({}, e), {}, { top: e.top + (i || 0) + u });
- if (c === "bottom" && MW(e.bottom)) return dY(dY({}, e), {}, { bottom: e.bottom + (i || 0) + u });
- if (c === "left" && MW(e.left)) return dY(dY({}, e), {}, { left: e.left + (r || 0) + u });
- if (c === "right" && MW(e.right)) return dY(dY({}, e), {}, { right: e.right + (r || 0) + u });
+ if (KW(c)) {
+ if (c === "top" && jW(e.top)) return uY(uY({}, e), {}, { top: e.top + (i || 0) + u });
+ if (c === "bottom" && jW(e.bottom)) return uY(uY({}, e), {}, { bottom: e.bottom + (i || 0) + u });
+ if (c === "left" && jW(e.left)) return uY(uY({}, e), {}, { left: e.left + (r || 0) + u });
+ if (c === "right" && jW(e.right)) return uY(uY({}, e), {}, { right: e.right + (r || 0) + u });
}
return e;
}
- if ((s === "vertical" || s === "horizontal" && o === "middle") && a !== "center" && MW(e[a])) return dY(dY({}, e), {}, { [a]: e[a] + (r || 0) });
- if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && MW(e[o])) return dY(dY({}, e), {}, { [o]: e[o] + (i || 0) });
+ if ((s === "vertical" || s === "horizontal" && o === "middle") && a !== "center" && jW(e[a])) return uY(uY({}, e), {}, { [a]: e[a] + (r || 0) });
+ if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && jW(e[o])) return uY(uY({}, e), {}, { [o]: e[o] + (i || 0) });
}
return e;
-}, pY = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", mY = (e, t, n, r) => {
+}, fY = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", pY = (e, t, n, r) => {
if (r) return e.map((e) => e.coordinate);
var i, a, o = e.map((e) => (e.coordinate === t && (i = !0), e.coordinate === n && (a = !0), e.coordinate));
return i || o.push(t), a || o.push(n), o;
-}, hY = (e, t, n) => {
+}, mY = (e, t, n) => {
if (!e) return null;
var r = e.duplicateDomain, i = e.type, a = e.range, o = e.scale, s = e.realScaleType, c = e.isCategorical, l = e.categoricalDomain, u = e.tickCount, d = e.ticks, f = e.niceTicks, p = e.axisType;
if (!o) return null;
var m = s === "scaleBand" && o.bandwidth ? o.bandwidth() / 2 : 2, h = (t || n) && i === "category" && o.bandwidth ? o.bandwidth() / m : 0;
- return h = p === "angleAxis" && a && a.length >= 2 ? kW(a[0] - a[1]) * 2 * h : h, t && (d || f) ? (d || f || []).map((e, t) => {
+ return h = p === "angleAxis" && a && a.length >= 2 ? OW(a[0] - a[1]) * 2 * h : h, t && (d || f) ? (d || f || []).map((e, t) => {
var n = r ? r.indexOf(e) : e, i = o.map(n);
- return cY(i) ? {
+ return sY(i) ? {
coordinate: i + h,
value: e,
offset: h,
index: t
} : null;
- }).filter(VW) : c && l ? l.map((e, t) => {
+ }).filter(BW) : c && l ? l.map((e, t) => {
var n = o.map(e);
- return cY(n) ? {
+ return sY(n) ? {
coordinate: n + h,
value: e,
index: t,
offset: h
} : null;
- }).filter(VW) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
+ }).filter(BW) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
var n = o.map(e);
- return cY(n) ? {
+ return sY(n) ? {
coordinate: n + h,
value: e,
index: t,
offset: h
} : null;
- }).filter(VW) : o.domain().map((e, t) => {
+ }).filter(BW) : o.domain().map((e, t) => {
var n = o.map(e);
- return cY(n) ? {
+ return sY(n) ? {
coordinate: n + h,
value: r ? r[e] : e,
index: t,
offset: h
} : null;
- }).filter(VW);
-}, gY = (e, t) => {
- if (!t || t.length !== 2 || !MW(t[0]) || !MW(t[1])) return e;
+ }).filter(BW);
+}, hY = (e, t) => {
+ if (!t || t.length !== 2 || !jW(t[0]) || !jW(t[1])) return e;
var n = Math.min(t[0], t[1]), r = Math.max(t[0], t[1]), i = [e[0], e[1]];
- return (!MW(e[0]) || e[0] < n) && (i[0] = n), (!MW(e[1]) || e[1] > r) && (i[1] = r), i[0] > r && (i[0] = r), i[1] < n && (i[1] = n), i;
-}, HFe = {
+ return (!jW(e[0]) || e[0] < n) && (i[0] = n), (!jW(e[1]) || e[1] > r) && (i[1] = r), i[0] > r && (i[0] = r), i[1] < n && (i[1] = n), i;
+}, UFe = {
sign: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -69024,16 +69024,16 @@ var VFe = (e, t, n) => {
if (!(n == null || n <= 0)) for (var r = 0; r < n; ++r) for (var i = 0, a = 0, o = 0; o < t; ++o) {
var s = e[o]?.[r];
if (s != null) {
- var c = s[1], l = s[0], u = AW(c) ? l : c;
+ var c = s[1], l = s[0], u = kW(c) ? l : c;
u >= 0 ? (s[0] = i, i += u, s[1] = i) : (s[0] = a, a += u, s[1] = a);
}
}
}
},
- expand: _Ne,
- none: RG,
- silhouette: vNe,
- wiggle: yNe,
+ expand: vNe,
+ none: LG,
+ silhouette: yNe,
+ wiggle: bNe,
positive: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -69041,70 +69041,70 @@ var VFe = (e, t, n) => {
if (!(n == null || n <= 0)) for (var r = 0; r < n; ++r) for (var i = 0, a = 0; a < t; ++a) {
var o = e[a]?.[r];
if (o != null) {
- var s = AW(o[1]) ? o[0] : o[1];
+ var s = kW(o[1]) ? o[0] : o[1];
s >= 0 ? (o[0] = i, i += s, o[1] = i) : (o[0] = 0, o[1] = 0);
}
}
}
}
-}, UFe = (e, t, n) => {
- var r = HFe[n] ?? RG, i = gNe().keys(t).value((e, t) => Number(fY(e, t, 0))).order(zG).offset(r)(e);
+}, WFe = (e, t, n) => {
+ var r = UFe[n] ?? LG, i = _Ne().keys(t).value((e, t) => Number(dY(e, t, 0))).order(RG).offset(r)(e);
return i.forEach((n, r) => {
n.forEach((n, i) => {
- var a = fY(e[i], t[r], 0);
- Array.isArray(a) && a.length === 2 && MW(a[0]) && MW(a[1]) && (n[0] = a[0], n[1] = a[1]);
+ var a = dY(e[i], t[r], 0);
+ Array.isArray(a) && a.length === 2 && jW(a[0]) && jW(a[1]) && (n[0] = a[0], n[1] = a[1]);
});
}), i;
};
-function _Y(e) {
+function gY(e) {
return e == null ? void 0 : String(e);
}
-function vY(e) {
+function _Y(e) {
var t = e.axis, n = e.ticks, r = e.bandSize, i = e.entry, a = e.index, o = e.dataKey;
if (t.type === "category") {
- if (!t.allowDuplicatedCategory && t.dataKey && !zW(i[t.dataKey])) {
- var s = RW(n, "value", i[t.dataKey]);
+ if (!t.allowDuplicatedCategory && t.dataKey && !RW(i[t.dataKey])) {
+ var s = LW(n, "value", i[t.dataKey]);
if (s) return s.coordinate + r / 2;
}
return n != null && n[a] ? n[a].coordinate + r / 2 : null;
}
- var c = fY(i, zW(o) ? t.dataKey : o), l = t.scale.map(c);
- return MW(l) ? l : null;
+ var c = dY(i, RW(o) ? t.dataKey : o), l = t.scale.map(c);
+ return jW(l) ? l : null;
}
-var yY = (e) => {
+var vY = (e) => {
var t = e.axis, n = e.ticks, r = e.offset, i = e.bandSize, a = e.entry, o = e.index;
if (t.type === "category") return n[o] ? n[o].coordinate + r : null;
- var s = fY(a, t.dataKey, t.scale.domain()[o]);
- if (zW(s)) return null;
+ var s = dY(a, t.dataKey, t.scale.domain()[o]);
+ if (RW(s)) return null;
var c = t.scale.map(s);
- return MW(c) ? c - i / 2 + r : null;
-}, bY = (e) => {
+ return jW(c) ? c - i / 2 + r : null;
+}, yY = (e) => {
var t = e.numericAxis, n = t.scale.domain();
if (t.type === "number") {
var r = Math.min(n[0], n[1]), i = Math.max(n[0], n[1]);
return r <= 0 && i >= 0 ? 0 : i < 0 ? i : r;
}
return n[0];
-}, WFe = (e) => {
- var t = e.flat(2).filter(MW);
+}, GFe = (e) => {
+ var t = e.flat(2).filter(jW);
return [Math.min(...t), Math.max(...t)];
-}, GFe = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], KFe = (e, t, n) => {
- if (e != null && Object.keys(e).length !== 0) return GFe(Object.keys(e).reduce((r, i) => {
+}, KFe = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], qFe = (e, t, n) => {
+ if (e != null && Object.keys(e).length !== 0) return KFe(Object.keys(e).reduce((r, i) => {
var a = e[i];
if (!a) return r;
var o = a.stackedData.reduce((e, r) => {
- var i = WFe(sY(r, t, n));
- return !cY(i[0]) || !cY(i[1]) ? e : [Math.min(e[0], i[0]), Math.max(e[1], i[1])];
+ var i = GFe(oY(r, t, n));
+ return !sY(i[0]) || !sY(i[1]) ? e : [Math.min(e[0], i[0]), Math.max(e[1], i[1])];
}, [Infinity, -Infinity]);
return [Math.min(o[0], r[0]), Math.max(o[1], r[1])];
}, [Infinity, -Infinity]));
-}, xY = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, SY = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, CY = (e, t, n) => {
+}, bY = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, xY = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, SY = (e, t, n) => {
if (e && e.scale && e.scale.bandwidth) {
var r = e.scale.bandwidth();
if (!n || r > 0) return r;
}
if (e && t && t.length >= 2) {
- for (var i = ZK(t, (e) => e.coordinate), a = [], o = 0, s = 1, c = i.length; s < c; s++) {
+ for (var i = XK(t, (e) => e.coordinate), a = [], o = 0, s = 1, c = i.length; s < c; s++) {
var l = (i[s]?.coordinate || 0) - (i[s - 1]?.coordinate || 0);
a.push(l), o = Math.max(l, o);
}
@@ -69114,26 +69114,26 @@ var yY = (e) => {
}
return n ? void 0 : 0;
};
-function wY(e) {
+function CY(e) {
var t = e.tooltipEntrySettings, n = e.dataKey, r = e.payload, i = e.value, a = e.name;
- return dY(dY({}, t), {}, {
+ return uY(uY({}, t), {}, {
dataKey: n,
payload: r,
value: i,
name: a
});
}
-function TY(e, t) {
+function wY(e, t) {
if (e != null) return String(e);
if (typeof t == "string") return t;
}
-var qFe = (e, t) => {
+var JFe = (e, t) => {
if (t === "horizontal") return e.relativeX;
if (t === "vertical") return e.relativeY;
-}, JFe = (e, t) => t === "centric" ? e.angle : e.radius, EY = (e) => e.layout.width, DY = (e) => e.layout.height, YFe = (e) => e.layout.scale, OY = (e) => e.layout.margin, kY = Y((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), AY = Y((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), XFe = "data-recharts-item-index";
+}, YFe = (e, t) => t === "centric" ? e.angle : e.radius, TY = (e) => e.layout.width, EY = (e) => e.layout.height, XFe = (e) => e.layout.scale, DY = (e) => e.layout.margin, OY = Y((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), kY = Y((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), ZFe = "data-recharts-item-index";
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js
-function jY(e, t) {
+function AY(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -69143,30 +69143,30 @@ function jY(e, t) {
}
return n;
}
-function MY(e) {
+function jY(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? jY(Object(n), !0).forEach(function(t) {
- ZFe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : jY(Object(n)).forEach(function(t) {
+ t % 2 ? AY(Object(n), !0).forEach(function(t) {
+ QFe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : AY(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function ZFe(e, t, n) {
- return (t = QFe(t)) in e ? Object.defineProperty(e, t, {
+function QFe(e, t, n) {
+ return (t = $Fe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function QFe(e) {
- var t = $Fe(e, "string");
+function $Fe(e) {
+ var t = eIe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function $Fe(e, t) {
+function eIe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -69176,67 +69176,67 @@ function $Fe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var eIe = (e) => e.brush.height;
-function tIe(e) {
- return AY(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
-}
+var tIe = (e) => e.brush.height;
function nIe(e) {
- return AY(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
+ return kY(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
}
function rIe(e) {
- return kY(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + (typeof t.height == "number" ? t.height : 30) : e, 0);
+ return kY(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
}
function iIe(e) {
- return kY(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + (typeof t.height == "number" ? t.height : 30) : e, 0);
+ return OY(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + (typeof t.height == "number" ? t.height : 30) : e, 0);
}
-var NY = Y([
+function aIe(e) {
+ return OY(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + (typeof t.height == "number" ? t.height : 30) : e, 0);
+}
+var MY = Y([
+ TY,
EY,
DY,
- OY,
- eIe,
tIe,
nIe,
rIe,
iIe,
- QK,
- MPe
+ aIe,
+ ZK,
+ NPe
], (e, t, n, r, i, a, o, s, c, l) => {
var u = {
left: (n.left || 0) + i,
right: (n.right || 0) + a
- }, d = MY(MY({}, {
+ }, d = jY(jY({}, {
top: (n.top || 0) + o,
bottom: (n.bottom || 0) + s
}), u), f = d.bottom;
- d.bottom += r, d = VFe(d, c, l);
+ d.bottom += r, d = HFe(d, c, l);
var p = e - d.left - d.right, m = t - d.top - d.bottom;
- return MY(MY({ brushBottom: f }, d), {}, {
+ return jY(jY({ brushBottom: f }, d), {}, {
width: Math.max(p, 0),
height: Math.max(m, 0)
});
-}), PY = Y(NY, (e) => ({
+}), NY = Y(MY, (e) => ({
x: e.left,
y: e.top,
width: e.width,
height: e.height
-})), FY = Y(EY, DY, (e, t) => ({
+})), PY = Y(TY, EY, (e, t) => ({
x: 0,
y: 0,
width: e,
height: t
-})), aIe = /*#__PURE__*/ (0, b.createContext)(null), IY = () => (0, b.useContext)(aIe) != null, LY = (e) => e.brush, RY = Y([
- LY,
- NY,
- OY
+})), oIe = /*#__PURE__*/ (0, b.createContext)(null), FY = () => (0, b.useContext)(oIe) != null, IY = (e) => e.brush, LY = Y([
+ IY,
+ MY,
+ DY
], (e, t, n) => ({
height: e.height,
- x: MW(e.x) ? e.x : t.left,
- y: MW(e.y) ? e.y : t.top + t.height + t.brushBottom - (n?.bottom || 0),
- width: MW(e.width) ? e.width : t.width
+ x: jW(e.x) ? e.x : t.left,
+ y: jW(e.y) ? e.y : t.top + t.height + t.brushBottom - (n?.bottom || 0),
+ width: jW(e.width) ? e.width : t.width
}));
//#endregion
//#region node_modules/es-toolkit/dist/function/debounce.mjs
-function oIe(e, t, { signal: n, edges: r } = {}) {
+function sIe(e, t, { signal: n, edges: r } = {}) {
let i, a = null, o = r != null && r.includes("leading"), s = r == null || r.includes("trailing"), c = () => {
a !== null && (e.apply(i, a), i = void 0, a = null);
}, l = () => {
@@ -69261,11 +69261,11 @@ function oIe(e, t, { signal: n, edges: r } = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/debounce.mjs
-function sIe(e, t = 0, n = {}) {
+function cIe(e, t = 0, n = {}) {
typeof n != "object" && (n = {});
let { leading: r = !1, trailing: i = !0, maxWait: a } = n, o = [, ,];
r && (o[0] = "leading"), i && (o[1] = "trailing");
- let s, c = null, l = oIe(function(...t) {
+ let s, c = null, l = sIe(function(...t) {
s = e.apply(this, t), c = null;
}, t, { edges: o }), u = function(...t) {
return a != null && (c === null && (c = Date.now()), Date.now() - c >= a) ? ((r || i) && (s = e.apply(this, t)), c = Date.now(), l.cancel(), l.schedule(), s) : (l.apply(this, t), s);
@@ -69274,9 +69274,9 @@ function sIe(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/throttle.mjs
-function cIe(e, t = 0, n = {}) {
+function lIe(e, t = 0, n = {}) {
let { leading: r = !0, trailing: i = !0 } = n;
- return sIe(e, t, {
+ return cIe(e, t, {
leading: r,
maxWait: t,
trailing: i
@@ -69284,7 +69284,7 @@ function cIe(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/recharts/es6/util/LogUtils.js
-var zY = function(e, t) {
+var RY = function(e, t) {
var n = [...arguments].slice(2);
if (typeof console < "u" && console.warn && (t === void 0 && console.warn("LogUtils requires an error message argument"), !e)) {
if (t === void 0) console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
@@ -69293,7 +69293,7 @@ var zY = function(e, t) {
console.warn(t.replace(/%s/g, () => n[r++]));
}
}
-}, BY = {
+}, zY = {
width: "100%",
height: "100%",
debounce: 0,
@@ -69302,36 +69302,36 @@ var zY = function(e, t) {
width: -1,
height: -1
}
-}, VY = (e, t, n) => {
- var r = n.width, i = r === void 0 ? BY.width : r, a = n.height, o = a === void 0 ? BY.height : a, s = n.aspect, c = n.maxHeight, l = jW(i) ? e : Number(i), u = jW(o) ? t : Number(o);
+}, BY = (e, t, n) => {
+ var r = n.width, i = r === void 0 ? zY.width : r, a = n.height, o = a === void 0 ? zY.height : a, s = n.aspect, c = n.maxHeight, l = AW(i) ? e : Number(i), u = AW(o) ? t : Number(o);
return s && s > 0 && (l ? u = l / s : u && (l = u * s), c && u != null && u > c && (u = c)), {
calculatedWidth: l,
calculatedHeight: u
};
-}, lIe = {
+}, uIe = {
width: 0,
height: 0,
overflow: "visible"
-}, uIe = {
+}, dIe = {
width: 0,
overflowX: "visible"
-}, dIe = {
+}, fIe = {
height: 0,
overflowY: "visible"
-}, fIe = {}, pIe = (e) => {
- var t = e.width, n = e.height, r = jW(t), i = jW(n);
- return r && i ? lIe : r ? uIe : i ? dIe : fIe;
+}, pIe = {}, mIe = (e) => {
+ var t = e.width, n = e.height, r = AW(t), i = AW(n);
+ return r && i ? uIe : r ? dIe : i ? fIe : pIe;
};
-function mIe(e) {
+function hIe(e) {
var t = e.width, n = e.height, r = e.aspect, i = t, a = n;
- return i === void 0 && a === void 0 ? (i = BY.width, a = BY.height) : i === void 0 ? i = r && r > 0 ? void 0 : BY.width : a === void 0 && (a = r && r > 0 ? void 0 : BY.height), {
+ return i === void 0 && a === void 0 ? (i = zY.width, a = zY.height) : i === void 0 ? i = r && r > 0 ? void 0 : zY.width : a === void 0 && (a = r && r > 0 ? void 0 : zY.height), {
width: i,
height: a
};
}
//#endregion
//#region node_modules/recharts/es6/component/ResponsiveContainer.js
-var hIe = [
+var gIe = [
"aspect",
"initialDimension",
"width",
@@ -69346,16 +69346,16 @@ var hIe = [
"onResize",
"style"
];
-function HY() {
- return HY = Object.assign ? Object.assign.bind() : function(e) {
+function VY() {
+ return VY = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, HY.apply(null, arguments);
+ }, VY.apply(null, arguments);
}
-function UY(e, t) {
+function HY(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -69365,30 +69365,30 @@ function UY(e, t) {
}
return n;
}
-function WY(e) {
+function UY(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? UY(Object(n), !0).forEach(function(t) {
- gIe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : UY(Object(n)).forEach(function(t) {
+ t % 2 ? HY(Object(n), !0).forEach(function(t) {
+ _Ie(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : HY(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function gIe(e, t, n) {
- return (t = _Ie(t)) in e ? Object.defineProperty(e, t, {
+function _Ie(e, t, n) {
+ return (t = vIe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function _Ie(e) {
- var t = vIe(e, "string");
+function vIe(e) {
+ var t = yIe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function vIe(e, t) {
+function yIe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -69398,25 +69398,25 @@ function vIe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function yIe(e, t) {
- return CIe(e) || SIe(e, t) || xIe(e, t) || bIe();
+function bIe(e, t) {
+ return wIe(e) || CIe(e, t) || SIe(e, t) || xIe();
}
-function bIe() {
+function xIe() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function xIe(e, t) {
+function SIe(e, t) {
if (e) {
- if (typeof e == "string") return GY(e, t);
+ if (typeof e == "string") return WY(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? GY(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? WY(e, t) : void 0;
}
}
-function GY(e, t) {
+function WY(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function SIe(e, t) {
+function CIe(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -69437,19 +69437,19 @@ function SIe(e, t) {
return s;
}
}
-function CIe(e) {
+function wIe(e) {
if (Array.isArray(e)) return e;
}
-function wIe(e, t) {
+function TIe(e, t) {
if (e == null) return {};
- var n, r, i = TIe(e, t);
+ var n, r, i = EIe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function TIe(e, t) {
+function EIe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -69458,21 +69458,21 @@ function TIe(e, t) {
}
return n;
}
-var KY = /*#__PURE__*/ (0, b.createContext)(BY.initialDimension);
-function EIe(e) {
- return lY(e.width) && lY(e.height);
+var GY = /*#__PURE__*/ (0, b.createContext)(zY.initialDimension);
+function DIe(e) {
+ return cY(e.width) && cY(e.height);
}
-function qY(e) {
+function KY(e) {
var t = e.children, n = e.width, r = e.height, i = (0, b.useMemo)(() => ({
width: n,
height: r
}), [n, r]);
- return EIe(i) ? /*#__PURE__*/ b.createElement(KY.Provider, { value: i }, t) : null;
+ return DIe(i) ? /*#__PURE__*/ b.createElement(GY.Provider, { value: i }, t) : null;
}
-var JY = () => (0, b.useContext)(KY), DIe = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
- var n = e.aspect, r = e.initialDimension, i = r === void 0 ? BY.initialDimension : r, a = e.width, o = e.height, s = e.minWidth, c = s === void 0 ? BY.minWidth : s, l = e.minHeight, u = e.maxHeight, d = e.children, f = e.debounce, p = f === void 0 ? BY.debounce : f, m = e.id, h = e.className, g = e.onResize, _ = e.style, v = _ === void 0 ? {} : _, y = wIe(e, hIe), x = (0, b.useRef)(null), S = (0, b.useRef)();
+var qY = () => (0, b.useContext)(GY), OIe = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
+ var n = e.aspect, r = e.initialDimension, i = r === void 0 ? zY.initialDimension : r, a = e.width, o = e.height, s = e.minWidth, c = s === void 0 ? zY.minWidth : s, l = e.minHeight, u = e.maxHeight, d = e.children, f = e.debounce, p = f === void 0 ? zY.debounce : f, m = e.id, h = e.className, g = e.onResize, _ = e.style, v = _ === void 0 ? {} : _, y = TIe(e, gIe), x = (0, b.useRef)(null), S = (0, b.useRef)();
S.current = g, (0, b.useImperativeHandle)(t, () => x.current);
- var C = yIe((0, b.useState)({
+ var C = bIe((0, b.useState)({
containerWidth: i.width,
containerHeight: i.height
}), 2), w = C[0], T = C[1], E = (0, b.useCallback)((e, t) => {
@@ -69485,7 +69485,7 @@ var JY = () => (0, b.useContext)(KY), DIe = /*#__PURE__*/ (0, b.forwardRef)((e,
});
}, []);
(0, b.useEffect)(() => {
- if (x.current == null || typeof ResizeObserver > "u") return HW;
+ if (x.current == null || typeof ResizeObserver > "u") return VW;
var e = (e) => {
var t, n = e[0];
if (n != null) {
@@ -69493,7 +69493,7 @@ var JY = () => (0, b.useContext)(KY), DIe = /*#__PURE__*/ (0, b.forwardRef)((e,
E(i, a), (t = S.current) == null || t.call(S, i, a);
}
};
- p > 0 && (e = cIe(e, p, {
+ p > 0 && (e = lIe(e, p, {
trailing: !0,
leading: !1
}));
@@ -69503,17 +69503,17 @@ var JY = () => (0, b.useContext)(KY), DIe = /*#__PURE__*/ (0, b.forwardRef)((e,
};
}, [E, p]);
var D = w.containerWidth, O = w.containerHeight;
- zY(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
- var k = VY(D, O, {
+ RY(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
+ var k = BY(D, O, {
width: a,
height: o,
aspect: n,
maxHeight: u
}), A = k.calculatedWidth, j = k.calculatedHeight;
- return zY(D < 0 || O < 0 || A != null && A > 0 || j != null && j > 0, "The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.", A, j, a, o, c, l, n), /*#__PURE__*/ b.createElement("div", HY({
+ return RY(D < 0 || O < 0 || A != null && A > 0 || j != null && j > 0, "The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.", A, j, a, o, c, l, n), /*#__PURE__*/ b.createElement("div", VY({
id: m ? `${m}` : void 0,
- className: dv("recharts-responsive-container", h),
- style: WY(WY({}, v), {}, {
+ className: fv("recharts-responsive-container", h),
+ style: UY(UY({}, v), {}, {
width: a,
height: o,
minWidth: c,
@@ -69521,43 +69521,43 @@ var JY = () => (0, b.useContext)(KY), DIe = /*#__PURE__*/ (0, b.forwardRef)((e,
maxHeight: u
}),
ref: x
- }, y), /*#__PURE__*/ b.createElement("div", { style: pIe({
+ }, y), /*#__PURE__*/ b.createElement("div", { style: mIe({
width: a,
height: o
- }) }, /*#__PURE__*/ b.createElement(qY, {
+ }) }, /*#__PURE__*/ b.createElement(KY, {
width: A,
height: j
}, d)));
-}), YY = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
- var n = JY();
- if (lY(n.width) && lY(n.height)) return e.children;
- var r = mIe({
+}), JY = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
+ var n = qY();
+ if (cY(n.width) && cY(n.height)) return e.children;
+ var r = hIe({
width: e.width,
height: e.height,
aspect: e.aspect
- }), i = r.width, a = r.height, o = VY(void 0, void 0, {
+ }), i = r.width, a = r.height, o = BY(void 0, void 0, {
width: i,
height: a,
aspect: e.aspect,
maxHeight: e.maxHeight
}), s = o.calculatedWidth, c = o.calculatedHeight;
- return MW(s) && MW(c) ? /*#__PURE__*/ b.createElement(qY, {
+ return jW(s) && jW(c) ? /*#__PURE__*/ b.createElement(KY, {
width: s,
height: c
- }, e.children) : /*#__PURE__*/ b.createElement(DIe, HY({}, e, {
+ }, e.children) : /*#__PURE__*/ b.createElement(OIe, VY({}, e, {
width: i,
height: a,
ref: t
}));
-}), XY = () => {
- var e = IY(), t = J(PY), n = J(RY), r = J(LY)?.padding;
+}), YY = () => {
+ var e = FY(), t = J(NY), n = J(LY), r = J(IY)?.padding;
return !e || !n || !r ? t : {
width: n.width - r.left - r.right,
height: n.height - r.top - r.bottom,
x: r.left,
y: r.top
};
-}, OIe = {
+}, kIe = {
top: 0,
bottom: 0,
left: 0,
@@ -69565,16 +69565,16 @@ var JY = () => (0, b.useContext)(KY), DIe = /*#__PURE__*/ (0, b.forwardRef)((e,
width: 0,
height: 0,
brushBottom: 0
-}, ZY = () => J(NY) ?? OIe, QY = () => J(EY), $Y = () => J(DY), kIe = () => J((e) => e.layout.margin), eX = (e) => e.layout.layoutType, tX = () => J(eX), nX = () => {
- var e = tX();
+}, XY = () => J(MY) ?? kIe, ZY = () => J(TY), QY = () => J(EY), AIe = () => J((e) => e.layout.margin), $Y = (e) => e.layout.layoutType, eX = () => J($Y), tX = () => {
+ var e = eX();
if (e === "horizontal" || e === "vertical") return e;
-}, rX = (e) => {
+}, nX = (e) => {
var t = e.layout.layoutType;
if (t === "centric" || t === "radial") return t;
-}, iX = () => J(rX), AIe = () => tX() !== void 0, aX = (e) => {
- var t = HK(), n = IY(), r = e.width, i = e.height, a = JY(), o = r, s = i;
+}, rX = () => J(nX), jIe = () => eX() !== void 0, iX = (e) => {
+ var t = VK(), n = FY(), r = e.width, i = e.height, a = qY(), o = r, s = i;
return a && (o = a.width > 0 ? a.width : r, s = a.height > 0 ? a.height : i), (0, b.useEffect)(() => {
- !n && lY(o) && lY(s) && t(FFe({
+ !n && cY(o) && cY(s) && t(IFe({
width: o,
height: s
}));
@@ -69584,7 +69584,7 @@ var JY = () => (0, b.useContext)(KY), DIe = /*#__PURE__*/ (0, b.forwardRef)((e,
o,
s
]), null;
-}, oX = MJ({
+}, aX = jJ({
name: "legend",
initialState: {
settings: {
@@ -69610,43 +69610,43 @@ var JY = () => (0, b.useContext)(KY), DIe = /*#__PURE__*/ (0, b.forwardRef)((e,
},
addLegendPayload: {
reducer(e, t) {
- e.payload.push(xJ(t.payload));
+ e.payload.push(bJ(t.payload));
},
- prepare: OJ()
+ prepare: DJ()
},
replaceLegendPayload: {
reducer(e, t) {
- var n = t.payload, r = n.prev, i = n.next, a = vJ(e).payload.indexOf(xJ(r));
- a > -1 && (e.payload[a] = xJ(i));
+ var n = t.payload, r = n.prev, i = n.next, a = _J(e).payload.indexOf(bJ(r));
+ a > -1 && (e.payload[a] = bJ(i));
},
- prepare: OJ()
+ prepare: DJ()
},
removeLegendPayload: {
reducer(e, t) {
- var n = vJ(e).payload.indexOf(xJ(t.payload));
+ var n = _J(e).payload.indexOf(bJ(t.payload));
n > -1 && e.payload.splice(n, 1);
},
- prepare: OJ()
+ prepare: DJ()
}
}
-}), sX = oX.actions, cX = sX.setLegendSize, jIe = sX.setLegendSettings, lX = sX.addLegendPayload, uX = sX.replaceLegendPayload, dX = sX.removeLegendPayload, MIe = oX.reducer, NIe = /* @__PURE__ */ o(((e) => {
+}), oX = aX.actions, sX = oX.setLegendSize, MIe = oX.setLegendSettings, cX = oX.addLegendPayload, lX = oX.replaceLegendPayload, uX = oX.removeLegendPayload, NIe = aX.reducer, PIe = /* @__PURE__ */ o(((e) => {
var t = d();
t.useSyncExternalStore, t.useRef, t.useEffect, t.useMemo, t.useDebugValue;
}));
(/* @__PURE__ */ o(((e, t) => {
- t.exports = NIe();
+ t.exports = PIe();
})))();
-function PIe(e) {
+function FIe(e) {
e();
}
-function FIe() {
+function IIe() {
let e = null, t = null;
return {
clear() {
e = null, t = null;
},
notify() {
- PIe(() => {
+ FIe(() => {
let t = e;
for (; t;) t.callback(), t = t.next;
});
@@ -69668,12 +69668,12 @@ function FIe() {
}
};
}
-var fX = {
+var dX = {
notify() {},
get: () => []
};
-function IIe(e, t) {
- let n, r = fX, i = 0, a = !1;
+function LIe(e, t) {
+ let n, r = dX, i = 0, a = !1;
function o(e) {
u();
let t = r.subscribe(e), n = !1;
@@ -69691,10 +69691,10 @@ function IIe(e, t) {
return a;
}
function u() {
- i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = FIe());
+ i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = IIe());
}
function d() {
- i--, n && i === 0 && (n(), n = void 0, r.clear(), r = fX);
+ i--, n && i === 0 && (n(), n = void 0, r.clear(), r = dX);
}
function f() {
a || (a = !0, u());
@@ -69713,44 +69713,44 @@ function IIe(e, t) {
};
return m;
}
-var LIe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, RIe = typeof navigator < "u" && navigator.product === "ReactNative", zIe = LIe || RIe ? b.useLayoutEffect : b.useEffect;
-function pX(e, t) {
+var RIe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, zIe = typeof navigator < "u" && navigator.product === "ReactNative", BIe = RIe || zIe ? b.useLayoutEffect : b.useEffect;
+function fX(e, t) {
return e === t ? e !== 0 || t !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function BIe(e, t) {
- if (pX(e, t)) return !0;
+function VIe(e, t) {
+ if (fX(e, t)) return !0;
if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
let n = Object.keys(e), r = Object.keys(t);
if (n.length !== r.length) return !1;
- for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !pX(e[n[r]], t[n[r]])) return !1;
+ for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !fX(e[n[r]], t[n[r]])) return !1;
return !0;
}
-var VIe = /* @__PURE__ */ Symbol.for("react-redux-context"), HIe = typeof globalThis < "u" ? globalThis : {};
-function UIe() {
+var HIe = /* @__PURE__ */ Symbol.for("react-redux-context"), UIe = typeof globalThis < "u" ? globalThis : {};
+function WIe() {
if (!b.createContext) return {};
- let e = HIe[VIe] ??= /* @__PURE__ */ new Map(), t = e.get(b.createContext);
+ let e = UIe[HIe] ??= /* @__PURE__ */ new Map(), t = e.get(b.createContext);
return t || (t = b.createContext(null), e.set(b.createContext, t)), t;
}
-var WIe = /* @__PURE__ */ UIe();
-function GIe(e) {
+var GIe = /* @__PURE__ */ WIe();
+function KIe(e) {
let { children: t, context: n, serverState: r, store: i } = e, a = b.useMemo(() => {
- let e = IIe(i);
+ let e = LIe(i);
return {
store: i,
subscription: e,
getServerState: r ? () => r : void 0
};
}, [i, r]), o = b.useMemo(() => i.getState(), [i]);
- zIe(() => {
+ BIe(() => {
let { subscription: e } = a;
return e.onStateChange = e.notifyNestedSubs, e.trySubscribe(), o !== i.getState() && e.notifyNestedSubs(), () => {
e.tryUnsubscribe(), e.onStateChange = void 0;
};
}, [a, o]);
- let s = n || WIe;
+ let s = n || GIe;
return /* @__PURE__ */ b.createElement(s.Provider, { value: a }, t);
}
-var KIe = GIe, qIe = /* @__PURE__ */ new Set([
+var qIe = KIe, JIe = /* @__PURE__ */ new Set([
"axisLine",
"tickLine",
"activeBar",
@@ -69773,22 +69773,22 @@ var KIe = GIe, qIe = /* @__PURE__ */ new Set([
"radius",
"throttledEvents"
]);
-function JIe(e, t) {
+function YIe(e, t) {
return e == null && t == null ? !0 : typeof e == "number" && typeof t == "number" ? e === t || e !== e && t !== t : e === t;
}
-function mX(e, t) {
- for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (qIe.has(n)) {
+function pX(e, t) {
+ for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (JIe.has(n)) {
if (e[n] == null && t[n] == null) continue;
- if (!BIe(e[n], t[n])) return !1;
- } else if (!JIe(e[n], t[n])) return !1;
+ if (!VIe(e[n], t[n])) return !1;
+ } else if (!YIe(e[n], t[n])) return !1;
return !0;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectLegendArea.js
-var YIe = Y([
+var XIe = Y([
+ TY,
EY,
- DY,
- OY
+ DY
], (e, t, n) => ({
x: n.left || 0,
y: n.top || 0,
@@ -69797,7 +69797,7 @@ var YIe = Y([
}));
//#endregion
//#region node_modules/recharts/es6/cartesian/cartesianPositionToCSSTranslate.js
-function XIe(e, t) {
+function ZIe(e, t) {
return e === "start" && t === "start" ? "" : `translate(${e === "inherit" ? "0" : {
start: "0",
middle: "-50%",
@@ -69810,35 +69810,35 @@ function XIe(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/component/Legend.js
-var ZIe = ["contextPayload"];
-function hX() {
- return hX = Object.assign ? Object.assign.bind() : function(e) {
+var QIe = ["contextPayload"];
+function mX() {
+ return mX = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, hX.apply(null, arguments);
+ }, mX.apply(null, arguments);
}
-function QIe(e, t) {
- return nLe(e) || tLe(e, t) || eLe(e, t) || $Ie();
+function $Ie(e, t) {
+ return rLe(e) || nLe(e, t) || tLe(e, t) || eLe();
}
-function $Ie() {
+function eLe() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function eLe(e, t) {
+function tLe(e, t) {
if (e) {
- if (typeof e == "string") return gX(e, t);
+ if (typeof e == "string") return hX(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? gX(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? hX(e, t) : void 0;
}
}
-function gX(e, t) {
+function hX(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function tLe(e, t) {
+function nLe(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -69859,10 +69859,10 @@ function tLe(e, t) {
return s;
}
}
-function nLe(e) {
+function rLe(e) {
if (Array.isArray(e)) return e;
}
-function _X(e, t) {
+function gX(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -69872,30 +69872,30 @@ function _X(e, t) {
}
return n;
}
-function vX(e) {
+function _X(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? _X(Object(n), !0).forEach(function(t) {
- rLe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _X(Object(n)).forEach(function(t) {
+ t % 2 ? gX(Object(n), !0).forEach(function(t) {
+ iLe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : gX(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function rLe(e, t, n) {
- return (t = iLe(t)) in e ? Object.defineProperty(e, t, {
+function iLe(e, t, n) {
+ return (t = aLe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function iLe(e) {
- var t = aLe(e, "string");
+function aLe(e) {
+ var t = oLe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function aLe(e, t) {
+function oLe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -69905,16 +69905,16 @@ function aLe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function oLe(e, t) {
+function sLe(e, t) {
if (e == null) return {};
- var n, r, i = sLe(e, t);
+ var n, r, i = cLe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function sLe(e, t) {
+function cLe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -69923,30 +69923,30 @@ function sLe(e, t) {
}
return n;
}
-function cLe(e) {
- return e.value;
-}
function lLe(e) {
- var t = e.contextPayload, n = oLe(e, ZIe), r = BK(t, e.payloadUniqBy, cLe), i = vX(vX({}, n), {}, { payload: r });
- return /*#__PURE__*/ b.isValidElement(e.content) ? /*#__PURE__*/ b.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ b.createElement(e.content, i) : /*#__PURE__*/ b.createElement(HNe, i);
+ return e.value;
}
function uLe(e) {
+ var t = e.contextPayload, n = sLe(e, QIe), r = zK(t, e.payloadUniqBy, lLe), i = _X(_X({}, n), {}, { payload: r });
+ return /*#__PURE__*/ b.isValidElement(e.content) ? /*#__PURE__*/ b.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ b.createElement(e.content, i) : /*#__PURE__*/ b.createElement(UNe, i);
+}
+function dLe(e) {
return e === "left" || e === "right" || e === "insideLeft" || e === "insideRight" ? "vertical" : "horizontal";
}
-function dLe(e, t) {
- return t == null ? null : qW(t) ? YIe(e) : PY(e);
+function fLe(e, t) {
+ return t == null ? null : KW(t) ? XIe(e) : NY(e);
}
-function fLe(e, t, n) {
+function pLe(e, t, n) {
return e === "top" ? { top: n.height + t } : e === "bottom" ? { top: -n.height - t } : e === "left" ? { left: n.width + t } : e === "right" ? { left: -n.width - t } : {};
}
-function pLe(e, t, n, r, i, a) {
+function mLe(e, t, n, r, i, a) {
var o = t.layout, s = t.align, c = t.verticalAlign, l, u;
- return (!e || (e.left === void 0 || e.left === null) && (e.right === void 0 || e.right === null)) && (l = s === "center" && o === "vertical" ? { left: ((r || 0) - a.width) / 2 } : s === "right" ? { right: n && n.right || 0 } : { left: n && n.left || 0 }), (!e || (e.top === void 0 || e.top === null) && (e.bottom === void 0 || e.bottom === null)) && (u = c === "middle" ? { top: ((i || 0) - a.height) / 2 } : c === "bottom" ? { bottom: n && n.bottom || 0 } : { top: n && n.top || 0 }), vX(vX({}, l), u);
+ return (!e || (e.left === void 0 || e.left === null) && (e.right === void 0 || e.right === null)) && (l = s === "center" && o === "vertical" ? { left: ((r || 0) - a.width) / 2 } : s === "right" ? { right: n && n.right || 0 } : { left: n && n.left || 0 }), (!e || (e.top === void 0 || e.top === null) && (e.bottom === void 0 || e.bottom === null)) && (u = c === "middle" ? { top: ((i || 0) - a.height) / 2 } : c === "bottom" ? { bottom: n && n.bottom || 0 } : { top: n && n.top || 0 }), _X(_X({}, l), u);
}
-function mLe(e) {
- var t = e.align, n = e.layout, r = e.verticalAlign, i = e.itemSorter, a = e.position, o = e.offset, s = HK();
+function hLe(e) {
+ var t = e.align, n = e.layout, r = e.verticalAlign, i = e.itemSorter, a = e.position, o = e.offset, s = VK();
return (0, b.useLayoutEffect)(() => {
- s(jIe({
+ s(MIe({
align: t,
layout: n,
verticalAlign: r,
@@ -69964,10 +69964,10 @@ function mLe(e) {
o
]), null;
}
-function hLe(e) {
- var t = e.width, n = e.height, r = HK();
+function gLe(e) {
+ var t = e.width, n = e.height, r = VK();
return (0, b.useLayoutEffect)(() => {
- r(cX({
+ r(sX({
width: t,
height: n
}));
@@ -69976,16 +69976,16 @@ function hLe(e) {
t,
n
]), (0, b.useLayoutEffect)(() => () => {
- r(cX({
+ r(sX({
width: 0,
height: 0
}));
}, [r]), null;
}
-function gLe(e, t, n, r) {
+function _Le(e, t, n, r) {
return e === "vertical" && t != null ? { height: t } : e === "horizontal" ? { width: n || r } : null;
}
-var _Le = {
+var vLe = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -69995,10 +69995,10 @@ var _Le = {
verticalAlign: "bottom",
offset: 0
};
-function vLe(e) {
- var t = YG(e, _Le), n = e.layout && e.layout !== "auto" ? e.layout : uLe(t.position), r = PPe(), i = VMe(), a = kIe(), o = J((e) => dLe(e, t.position)), s = t.width, c = t.height, l = t.wrapperStyle, u = t.portal, d = u == null && (t.position == null || qW(t.position)), f = QIe(rq([r]), 2), p = f[0], m = f[1], h = QY(), g = $Y();
+function yLe(e) {
+ var t = JG(e, vLe), n = e.layout && e.layout !== "auto" ? e.layout : dLe(t.position), r = FPe(), i = HMe(), a = AIe(), o = J((e) => fLe(e, t.position)), s = t.width, c = t.height, l = t.wrapperStyle, u = t.portal, d = u == null && (t.position == null || KW(t.position)), f = $Ie(nq([r]), 2), p = f[0], m = f[1], h = ZY(), g = QY();
if (h == null || g == null || t.position != null && o == null) return null;
- var _ = gLe(n, c, s, h - (a?.left || 0) - (a?.right || 0)), v = t.position == null ? null : KW({
+ var _ = _Le(n, c, s, h - (a?.left || 0) - (a?.right || 0)), v = t.position == null ? null : GW({
viewBox: o ?? {
x: 0,
y: 0,
@@ -70007,7 +70007,7 @@ function vLe(e) {
},
position: t.position,
offset: t.offset ?? 0
- }), y = fLe(t.position, t.offset ?? 0, p), x = n === "vertical" ? (o?.width ?? 0) / 2 : o?.width ?? 0, S = n === "horizontal" ? (o?.height ?? 0) / 2 : o?.height ?? 0, C = v ? {
+ }), y = pLe(t.position, t.offset ?? 0, p), x = n === "vertical" ? (o?.width ?? 0) / 2 : o?.width ?? 0, S = n === "horizontal" ? (o?.height ?? 0) / 2 : o?.height ?? 0, C = v ? {
width: "max-content",
height: "max-content",
maxWidth: x,
@@ -70015,8 +70015,8 @@ function vLe(e) {
overflowY: "auto",
top: v.y + (y.top ?? 0),
left: v.x + (y.left ?? 0),
- transform: XIe(v.horizontalAnchor, v.verticalAnchor)
- } : pLe(l, t, a, h, g, p), w = u ? l : vX(vX({
+ transform: ZIe(v.horizontalAnchor, v.verticalAnchor)
+ } : mLe(l, t, a, h, g, p), w = u ? l : _X(_X({
position: "absolute",
width: _?.width || s || "auto",
height: _?.height || c || "auto"
@@ -70026,14 +70026,14 @@ function vLe(e) {
className: "recharts-legend-wrapper",
style: w,
ref: m
- }, /*#__PURE__*/ b.createElement(mLe, {
+ }, /*#__PURE__*/ b.createElement(hLe, {
layout: n,
align: t.align,
verticalAlign: t.verticalAlign,
itemSorter: t.itemSorter,
position: t.position,
offset: t.offset
- }), d && /*#__PURE__*/ b.createElement(hLe, p), /*#__PURE__*/ b.createElement(lLe, hX({}, t, { layout: n }, _, {
+ }), d && /*#__PURE__*/ b.createElement(gLe, p), /*#__PURE__*/ b.createElement(uLe, mX({}, t, { layout: n }, _, {
margin: a,
chartWidth: h,
chartHeight: g,
@@ -70041,20 +70041,20 @@ function vLe(e) {
})));
return /*#__PURE__*/ (0, mt.createPortal)(E, T);
}
-var yX = /*#__PURE__*/ b.memo(vLe, mX);
-yX.displayName = "Legend";
+var vX = /*#__PURE__*/ b.memo(yLe, pX);
+vX.displayName = "Legend";
//#endregion
//#region node_modules/recharts/es6/component/DefaultTooltipContent.js
-function bX() {
- return bX = Object.assign ? Object.assign.bind() : function(e) {
+function yX() {
+ return yX = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, bX.apply(null, arguments);
+ }, yX.apply(null, arguments);
}
-function xX(e, t) {
+function bX(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -70064,30 +70064,30 @@ function xX(e, t) {
}
return n;
}
-function SX(e) {
+function xX(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? xX(Object(n), !0).forEach(function(t) {
- yLe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : xX(Object(n)).forEach(function(t) {
+ t % 2 ? bX(Object(n), !0).forEach(function(t) {
+ bLe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : bX(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function yLe(e, t, n) {
- return (t = bLe(t)) in e ? Object.defineProperty(e, t, {
+function bLe(e, t, n) {
+ return (t = xLe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function bLe(e) {
- var t = xLe(e, "string");
+function xLe(e) {
+ var t = SLe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function xLe(e, t) {
+function SLe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -70097,25 +70097,25 @@ function xLe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function SLe(e, t) {
- return ELe(e) || TLe(e, t) || wLe(e, t) || CLe();
+function CLe(e, t) {
+ return DLe(e) || ELe(e, t) || TLe(e, t) || wLe();
}
-function CLe() {
+function wLe() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function wLe(e, t) {
+function TLe(e, t) {
if (e) {
- if (typeof e == "string") return CX(e, t);
+ if (typeof e == "string") return SX(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? CX(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? SX(e, t) : void 0;
}
}
-function CX(e, t) {
+function SX(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function TLe(e, t) {
+function ELe(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -70136,13 +70136,13 @@ function TLe(e, t) {
return s;
}
}
-function ELe(e) {
+function DLe(e) {
if (Array.isArray(e)) return e;
}
-function DLe(e) {
- return Array.isArray(e) && NW(e[0]) && NW(e[1]) ? e.join(" ~ ") : e;
+function OLe(e) {
+ return Array.isArray(e) && MW(e[0]) && MW(e[1]) ? e.join(" ~ ") : e;
}
-var wX = {
+var CX = {
separator: " : ",
contentStyle: {
margin: 0,
@@ -70160,32 +70160,32 @@ var wX = {
labelStyle: {},
accessibilityLayer: !1
};
-function OLe(e, t) {
- return t == null ? e : ZK(e, t);
+function kLe(e, t) {
+ return t == null ? e : XK(e, t);
}
-var kLe = (e) => {
- var t = e.separator, n = t === void 0 ? wX.separator : t, r = e.contentStyle, i = e.itemStyle, a = e.labelStyle, o = a === void 0 ? wX.labelStyle : a, s = e.payload, c = e.formatter, l = e.itemSorter, u = e.wrapperClassName, d = e.labelClassName, f = e.label, p = e.labelFormatter, m = e.accessibilityLayer, h = m === void 0 ? wX.accessibilityLayer : m, g = () => {
+var ALe = (e) => {
+ var t = e.separator, n = t === void 0 ? CX.separator : t, r = e.contentStyle, i = e.itemStyle, a = e.labelStyle, o = a === void 0 ? CX.labelStyle : a, s = e.payload, c = e.formatter, l = e.itemSorter, u = e.wrapperClassName, d = e.labelClassName, f = e.label, p = e.labelFormatter, m = e.accessibilityLayer, h = m === void 0 ? CX.accessibilityLayer : m, g = () => {
if (s && s.length) {
var e = {
padding: 0,
margin: 0
- }, t = OLe(s, l).map((e, t) => {
+ }, t = kLe(s, l).map((e, t) => {
if (!e || e.type === "none") return null;
- var r = e.formatter || c || DLe, a = e.value, o = e.name, l = a, u = o;
+ var r = e.formatter || c || OLe, a = e.value, o = e.name, l = a, u = o;
if (r) {
var d = r(a, o, e, t, s);
if (Array.isArray(d)) {
- var f = SLe(d, 2);
+ var f = CLe(d, 2);
l = f[0], u = f[1];
} else if (d != null) l = d;
else return null;
}
- var p = SX(SX({}, wX.itemStyle), {}, { color: e.color || wX.itemStyle.color }, i);
+ var p = xX(xX({}, CX.itemStyle), {}, { color: e.color || CX.itemStyle.color }, i);
return /*#__PURE__*/ b.createElement("li", {
className: "recharts-tooltip-item",
key: `tooltip-item-${t}`,
style: p
- }, NW(u) ? /*#__PURE__*/ b.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, NW(u) ? /*#__PURE__*/ b.createElement("span", { className: "recharts-tooltip-item-separator" }, n) : null, /*#__PURE__*/ b.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ b.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));
+ }, MW(u) ? /*#__PURE__*/ b.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, MW(u) ? /*#__PURE__*/ b.createElement("span", { className: "recharts-tooltip-item-separator" }, n) : null, /*#__PURE__*/ b.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ b.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));
});
return /*#__PURE__*/ b.createElement("ul", {
className: "recharts-tooltip-item-list",
@@ -70193,44 +70193,44 @@ var kLe = (e) => {
}, t);
}
return null;
- }, _ = SX(SX({}, wX.contentStyle), r), v = SX({ margin: 0 }, o), y = !zW(f), x = y ? f : "", S = dv("recharts-default-tooltip", u), C = dv("recharts-tooltip-label", d);
+ }, _ = xX(xX({}, CX.contentStyle), r), v = xX({ margin: 0 }, o), y = !RW(f), x = y ? f : "", S = fv("recharts-default-tooltip", u), C = fv("recharts-tooltip-label", d);
y && p && s != null && (x = p(f, s));
var w = h ? {
role: "status",
"aria-live": "assertive"
} : {};
- return /*#__PURE__*/ b.createElement("div", bX({
+ return /*#__PURE__*/ b.createElement("div", yX({
className: S,
style: _
}, w), /*#__PURE__*/ b.createElement("p", {
className: C,
style: v
}, /*#__PURE__*/ b.isValidElement(x) ? x : `${x}`), g());
-}, TX = "recharts-tooltip-wrapper", ALe = { visibility: "hidden" };
-function jLe(e) {
+}, wX = "recharts-tooltip-wrapper", jLe = { visibility: "hidden" };
+function MLe(e) {
var t = e.coordinate, n = e.translateX, r = e.translateY;
- return dv(TX, {
- [`${TX}-right`]: MW(n) && t && MW(t.x) && n >= t.x,
- [`${TX}-left`]: MW(n) && t && MW(t.x) && n < t.x,
- [`${TX}-bottom`]: MW(r) && t && MW(t.y) && r >= t.y,
- [`${TX}-top`]: MW(r) && t && MW(t.y) && r < t.y
+ return fv(wX, {
+ [`${wX}-right`]: jW(n) && t && jW(t.x) && n >= t.x,
+ [`${wX}-left`]: jW(n) && t && jW(t.x) && n < t.x,
+ [`${wX}-bottom`]: jW(r) && t && jW(t.y) && r >= t.y,
+ [`${wX}-top`]: jW(r) && t && jW(t.y) && r < t.y
});
}
-function EX(e) {
+function TX(e) {
var t = e.allowEscapeViewBox, n = e.coordinate, r = e.key, i = e.offset, a = e.position, o = e.reverseDirection, s = e.tooltipDimension, c = e.viewBox, l = e.viewBoxDimension;
- if (a && MW(a[r])) return a[r];
+ if (a && jW(a[r])) return a[r];
var u = n[r] - s - (i > 0 ? i : 0), d = n[r] + i;
if (t[r]) return o[r] ? u : d;
var f = c[r];
return f == null ? 0 : o[r] ? Math.max(u < f ? d : u, f) : l == null ? 0 : d + s > f + l ? Math.max(u, f) : Math.max(d, f);
}
-function MLe(e) {
+function NLe(e) {
var t = e.translateX, n = e.translateY;
return { transform: e.useTranslate3d ? `translate3d(${t}px, ${n}px, 0)` : `translate(${t}px, ${n}px)` };
}
-function NLe(e) {
+function PLe(e) {
var t = e.allowEscapeViewBox, n = e.coordinate, r = e.offsetTop, i = e.offsetLeft, a = e.position, o = e.reverseDirection, s = e.tooltipBox, c = e.useTranslate3d, l = e.viewBox, u, d, f;
- return s && s.height > 0 && s.width > 0 && n ? (d = EX({
+ return s && s.height > 0 && s.width > 0 && n ? (d = TX({
allowEscapeViewBox: t,
coordinate: n,
key: "x",
@@ -70240,7 +70240,7 @@ function NLe(e) {
tooltipDimension: s.width,
viewBox: l,
viewBoxDimension: l.width
- }), f = EX({
+ }), f = TX({
allowEscapeViewBox: t,
coordinate: n,
key: "y",
@@ -70250,44 +70250,44 @@ function NLe(e) {
tooltipDimension: s.height,
viewBox: l,
viewBoxDimension: l.height
- }), u = MLe({
+ }), u = NLe({
translateX: d,
translateY: f,
useTranslate3d: c
- })) : u = ALe, {
+ })) : u = jLe, {
cssProperties: u,
- cssClasses: jLe({
+ cssClasses: MLe({
translateX: d,
translateY: f,
coordinate: n
})
};
}
-var DX = {
+var EX = {
devToolsEnabled: !0,
isSsr: !(typeof window < "u" && window.document && window.document.createElement && window.setTimeout)
};
//#endregion
//#region node_modules/recharts/es6/util/usePrefersReducedMotion.js
-function PLe(e, t) {
- return RLe(e) || LLe(e, t) || ILe(e, t) || FLe();
+function FLe(e, t) {
+ return zLe(e) || RLe(e, t) || LLe(e, t) || ILe();
}
-function FLe() {
+function ILe() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function ILe(e, t) {
+function LLe(e, t) {
if (e) {
- if (typeof e == "string") return OX(e, t);
+ if (typeof e == "string") return DX(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? OX(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? DX(e, t) : void 0;
}
}
-function OX(e, t) {
+function DX(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function LLe(e, t) {
+function RLe(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -70308,11 +70308,11 @@ function LLe(e, t) {
return s;
}
}
-function RLe(e) {
+function zLe(e) {
if (Array.isArray(e)) return e;
}
-function kX() {
- var e = PLe((0, b.useState)(() => DX.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches), 2), t = e[0], n = e[1];
+function OX() {
+ var e = FLe((0, b.useState)(() => EX.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches), 2), t = e[0], n = e[1];
return (0, b.useEffect)(() => {
if (window.matchMedia) {
var e = window.matchMedia("(prefers-reduced-motion: reduce)"), t = () => {
@@ -70326,7 +70326,7 @@ function kX() {
}
//#endregion
//#region node_modules/recharts/es6/component/TooltipBoundingBox.js
-function AX(e, t) {
+function kX(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -70336,30 +70336,30 @@ function AX(e, t) {
}
return n;
}
-function jX(e) {
+function AX(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? AX(Object(n), !0).forEach(function(t) {
- zLe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : AX(Object(n)).forEach(function(t) {
+ t % 2 ? kX(Object(n), !0).forEach(function(t) {
+ BLe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : kX(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function zLe(e, t, n) {
- return (t = BLe(t)) in e ? Object.defineProperty(e, t, {
+function BLe(e, t, n) {
+ return (t = VLe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function BLe(e) {
- var t = VLe(e, "string");
+function VLe(e) {
+ var t = HLe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function VLe(e, t) {
+function HLe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -70369,25 +70369,25 @@ function VLe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function HLe(e, t) {
- return KLe(e) || GLe(e, t) || WLe(e, t) || ULe();
+function ULe(e, t) {
+ return qLe(e) || KLe(e, t) || GLe(e, t) || WLe();
}
-function ULe() {
+function WLe() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function WLe(e, t) {
+function GLe(e, t) {
if (e) {
- if (typeof e == "string") return MX(e, t);
+ if (typeof e == "string") return jX(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? MX(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? jX(e, t) : void 0;
}
}
-function MX(e, t) {
+function jX(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function GLe(e, t) {
+function KLe(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -70408,17 +70408,17 @@ function GLe(e, t) {
return s;
}
}
-function KLe(e) {
+function qLe(e) {
if (Array.isArray(e)) return e;
}
-function qLe(e) {
+function JLe(e) {
if (!(e.prefersReducedMotion && e.isAnimationActive === "auto") && e.isAnimationActive && e.active) {
var t = typeof e.animationEasing == "string" ? e.animationEasing : "ease";
return `transform ${e.animationDuration}ms ${t}`;
}
}
-function JLe(e) {
- var t = kX(), n = HLe(b.useState(() => ({
+function YLe(e) {
+ var t = OX(), n = ULe(b.useState(() => ({
dismissed: !1,
dismissedAtCoordinate: {
x: 0,
@@ -70438,8 +70438,8 @@ function JLe(e) {
return document.addEventListener("keydown", t), () => {
document.removeEventListener("keydown", t);
};
- }, [e.coordinate?.x, e.coordinate?.y]), r.dismissed && ((e.coordinate?.x ?? 0) !== r.dismissedAtCoordinate.x || (e.coordinate?.y ?? 0) !== r.dismissedAtCoordinate.y) && i(jX(jX({}, r), {}, { dismissed: !1 }));
- var a = NLe({
+ }, [e.coordinate?.x, e.coordinate?.y]), r.dismissed && ((e.coordinate?.x ?? 0) !== r.dismissedAtCoordinate.x || (e.coordinate?.y ?? 0) !== r.dismissedAtCoordinate.y) && i(AX(AX({}, r), {}, { dismissed: !1 }));
+ var a = PLe({
allowEscapeViewBox: e.allowEscapeViewBox,
coordinate: e.coordinate,
offsetLeft: typeof e.offset == "number" ? e.offset : e.offset.x,
@@ -70449,7 +70449,7 @@ function JLe(e) {
tooltipBox: e.lastBoundingBox,
useTranslate3d: e.useTranslate3d,
viewBox: e.viewBox
- }), o = a.cssClasses, s = a.cssProperties, c = jX(jX({}, e.hasPortalFromProps ? {} : jX(jX({ transition: qLe({
+ }), o = a.cssClasses, s = a.cssProperties, c = AX(AX({}, e.hasPortalFromProps ? {} : AX(AX({ transition: JLe({
prefersReducedMotion: t,
isAnimationActive: e.isAnimationActive,
active: e.active,
@@ -70469,19 +70469,19 @@ function JLe(e) {
ref: e.innerRef
}, e.children);
}
-var YLe = /*#__PURE__*/ b.memo(JLe), NX = () => J((e) => e.rootProps.accessibilityLayer) ?? !0;
+var XLe = /*#__PURE__*/ b.memo(YLe), MX = () => J((e) => e.rootProps.accessibilityLayer) ?? !0;
//#endregion
//#region node_modules/recharts/es6/shape/Curve.js
-function PX() {
- return PX = Object.assign ? Object.assign.bind() : function(e) {
+function NX() {
+ return NX = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, PX.apply(null, arguments);
+ }, NX.apply(null, arguments);
}
-function FX(e, t) {
+function PX(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -70491,30 +70491,30 @@ function FX(e, t) {
}
return n;
}
-function IX(e) {
+function FX(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? FX(Object(n), !0).forEach(function(t) {
- XLe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : FX(Object(n)).forEach(function(t) {
+ t % 2 ? PX(Object(n), !0).forEach(function(t) {
+ ZLe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : PX(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function XLe(e, t, n) {
- return (t = ZLe(t)) in e ? Object.defineProperty(e, t, {
+function ZLe(e, t, n) {
+ return (t = QLe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ZLe(e) {
- var t = QLe(e, "string");
+function QLe(e) {
+ var t = $Le(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function QLe(e, t) {
+function $Le(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -70524,40 +70524,40 @@ function QLe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var LX = {
- curveBasisClosed: aNe,
- curveBasisOpen: oNe,
- curveBasis: iNe,
- curveBumpX: WMe,
- curveBumpY: GMe,
- curveLinearClosed: sNe,
- curveLinear: lG,
- curveMonotoneX: cNe,
- curveMonotoneY: lNe,
- curveNatural: uNe,
- curveStep: dNe,
- curveStepAfter: pNe,
- curveStepBefore: fNe
-}, RX = (e) => cY(e.x) && cY(e.y), zX = (e) => e.base != null && RX(e.base) && RX(e), BX = (e) => e.x, VX = (e) => e.y, $Le = (e, t) => {
+var IX = {
+ curveBasisClosed: oNe,
+ curveBasisOpen: sNe,
+ curveBasis: aNe,
+ curveBumpX: GMe,
+ curveBumpY: KMe,
+ curveLinearClosed: cNe,
+ curveLinear: cG,
+ curveMonotoneX: lNe,
+ curveMonotoneY: uNe,
+ curveNatural: dNe,
+ curveStep: fNe,
+ curveStepAfter: mNe,
+ curveStepBefore: pNe
+}, LX = (e) => sY(e.x) && sY(e.y), RX = (e) => e.base != null && LX(e.base) && LX(e), zX = (e) => e.x, BX = (e) => e.y, eRe = (e, t) => {
if (typeof e == "function") return e;
- var n = `curve${BW(e)}`;
+ var n = `curve${zW(e)}`;
if ((n === "curveMonotone" || n === "curveBump") && t) {
- var r = LX[`${n}${t === "vertical" ? "Y" : "X"}`];
+ var r = IX[`${n}${t === "vertical" ? "Y" : "X"}`];
if (r) return r;
}
- return LX[n] || lG;
-}, HX = {
+ return IX[n] || cG;
+}, VX = {
connectNulls: !1,
type: "linear"
-}, eRe = (e) => {
- var t = e.type, n = t === void 0 ? HX.type : t, r = e.points, i = r === void 0 ? [] : r, a = e.baseLine, o = e.layout, s = e.connectNulls, c = s === void 0 ? HX.connectNulls : s, l = $Le(n, o), u = c ? i.filter(RX) : i;
+}, tRe = (e) => {
+ var t = e.type, n = t === void 0 ? VX.type : t, r = e.points, i = r === void 0 ? [] : r, a = e.baseLine, o = e.layout, s = e.connectNulls, c = s === void 0 ? VX.connectNulls : s, l = eRe(n, o), u = c ? i.filter(LX) : i;
if (Array.isArray(a)) {
- var d, f = i.map((e, t) => IX(IX({}, e), {}, { base: a[t] }));
- return d = o === "vertical" ? pG().y(VX).x1(BX).x0((e) => e.base.x) : pG().x(BX).y1(VX).y0((e) => e.base.y), d.defined(zX).curve(l)(c ? f.filter(zX) : f);
+ var d, f = i.map((e, t) => FX(FX({}, e), {}, { base: a[t] }));
+ return d = o === "vertical" ? fG().y(BX).x1(zX).x0((e) => e.base.x) : fG().x(zX).y1(BX).y0((e) => e.base.y), d.defined(RX).curve(l)(c ? f.filter(RX) : f);
}
- return (o === "vertical" && MW(a) ? pG().y(VX).x1(BX).x0(a) : MW(a) ? pG().x(BX).y1(VX).y0(a) : fG().x(BX).y(VX)).defined(RX).curve(l)(u);
-}, UX = (e) => {
- var t = e.className, n = e.points, r = e.path, i = e.pathRef, a = tX();
+ return (o === "vertical" && jW(a) ? fG().y(BX).x1(zX).x0(a) : jW(a) ? fG().x(zX).y1(BX).y0(a) : dG().x(zX).y(BX)).defined(LX).curve(l)(u);
+}, HX = (e) => {
+ var t = e.className, n = e.points, r = e.path, i = e.pathRef, a = eX();
if ((!n || !n.length) && !r) return null;
var o = {
type: e.type,
@@ -70565,13 +70565,13 @@ var LX = {
baseLine: e.baseLine,
layout: e.layout || a,
connectNulls: e.connectNulls
- }, s = n && n.length ? eRe(o) : r;
- return /*#__PURE__*/ b.createElement("path", PX({}, pW(e), KG(e), {
- className: dv("recharts-curve", t),
+ }, s = n && n.length ? tRe(o) : r;
+ return /*#__PURE__*/ b.createElement("path", NX({}, fW(e), GG(e), {
+ className: fv("recharts-curve", t),
d: s === null ? void 0 : s,
ref: i
}));
-}, tRe = [
+}, nRe = [
"x",
"y",
"top",
@@ -70580,16 +70580,16 @@ var LX = {
"height",
"className"
];
-function WX() {
- return WX = Object.assign ? Object.assign.bind() : function(e) {
+function UX() {
+ return UX = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, WX.apply(null, arguments);
+ }, UX.apply(null, arguments);
}
-function GX(e, t) {
+function WX(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -70599,30 +70599,30 @@ function GX(e, t) {
}
return n;
}
-function nRe(e) {
+function rRe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? GX(Object(n), !0).forEach(function(t) {
- rRe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : GX(Object(n)).forEach(function(t) {
+ t % 2 ? WX(Object(n), !0).forEach(function(t) {
+ iRe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : WX(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function rRe(e, t, n) {
- return (t = iRe(t)) in e ? Object.defineProperty(e, t, {
+function iRe(e, t, n) {
+ return (t = aRe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function iRe(e) {
- var t = aRe(e, "string");
+function aRe(e) {
+ var t = oRe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function aRe(e, t) {
+function oRe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -70632,16 +70632,16 @@ function aRe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function oRe(e, t) {
+function sRe(e, t) {
if (e == null) return {};
- var n, r, i = sRe(e, t);
+ var n, r, i = cRe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function sRe(e, t) {
+function cRe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -70650,8 +70650,8 @@ function sRe(e, t) {
}
return n;
}
-var cRe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, lRe = (e) => {
- var t = e.x, n = t === void 0 ? 0 : t, r = e.y, i = r === void 0 ? 0 : r, a = e.top, o = a === void 0 ? 0 : a, s = e.left, c = s === void 0 ? 0 : s, l = e.width, u = l === void 0 ? 0 : l, d = e.height, f = d === void 0 ? 0 : d, p = e.className, m = oRe(e, tRe), h = nRe({
+var lRe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, uRe = (e) => {
+ var t = e.x, n = t === void 0 ? 0 : t, r = e.y, i = r === void 0 ? 0 : r, a = e.top, o = a === void 0 ? 0 : a, s = e.left, c = s === void 0 ? 0 : s, l = e.width, u = l === void 0 ? 0 : l, d = e.height, f = d === void 0 ? 0 : d, p = e.className, m = sRe(e, nRe), h = rRe({
x: n,
y: i,
top: o,
@@ -70659,14 +70659,14 @@ var cRe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, lRe = (e) => {
width: u,
height: f
}, m);
- return !MW(n) || !MW(i) || !MW(u) || !MW(f) || !MW(o) || !MW(c) ? null : /*#__PURE__*/ b.createElement("path", WX({}, hW(h), {
- className: dv("recharts-cross", p),
- d: cRe(n, i, u, f, o, c)
+ return !jW(n) || !jW(i) || !jW(u) || !jW(f) || !jW(o) || !jW(c) ? null : /*#__PURE__*/ b.createElement("path", UX({}, mW(h), {
+ className: fv("recharts-cross", p),
+ d: lRe(n, i, u, f, o, c)
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorRectangle.js
-function uRe(e, t, n, r) {
+function dRe(e, t, n, r) {
var i = r / 2;
return {
stroke: "none",
@@ -70677,12 +70677,12 @@ function uRe(e, t, n, r) {
height: e === "horizontal" ? n.height - 1 : r
};
}
-var KX = (e, t) => [
+var GX = (e, t) => [
0,
3 * e,
3 * t - 6 * e,
3 * e - 3 * t + 1
-], qX = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), JX = (e, t) => (n) => qX(KX(e, t), n), dRe = (e, t) => (n) => qX([...KX(e, t).map((e, t) => e * t).slice(1), 0], n), fRe = (e) => {
+], KX = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), qX = (e, t) => (n) => KX(GX(e, t), n), fRe = (e, t) => (n) => KX([...GX(e, t).map((e, t) => e * t).slice(1), 0], n), pRe = (e) => {
var t, n = e.split("(");
if (n.length !== 2 || n[0] !== "cubic-bezier") return null;
var r = (t = n[1]) == null || (t = t.split(")")[0]) == null ? void 0 : t.split(",");
@@ -70694,7 +70694,7 @@ var KX = (e, t) => [
i[2],
i[3]
];
-}, pRe = function() {
+}, mRe = function() {
var e = [...arguments];
if (e.length === 1) switch (e[0]) {
case "linear": return [
@@ -70728,7 +70728,7 @@ var KX = (e, t) => [
1
];
default:
- var t = fRe(e[0]);
+ var t = pRe(e[0]);
if (t) return t;
}
return e.length === 4 ? e : [
@@ -70737,8 +70737,8 @@ var KX = (e, t) => [
1,
1
];
-}, mRe = (e, t, n, r) => {
- var i = JX(e, n), a = JX(t, r), o = dRe(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {
+}, hRe = (e, t, n, r) => {
+ var i = qX(e, n), a = qX(t, r), o = fRe(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {
for (var t = e > 1 ? 1 : e, n = t, r = 0; r < 8; ++r) {
var c = i(n) - t, l = o(n);
if (Math.abs(c - t) < 1e-4 || l < 1e-4) return a(n);
@@ -70747,9 +70747,9 @@ var KX = (e, t) => [
return a(n);
};
return c.isStepper = !1, c;
-}, YX = function() {
- return mRe(...pRe(...arguments));
-}, hRe = function() {
+}, JX = function() {
+ return hRe(...mRe(...arguments));
+}, gRe = function() {
for (var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.stiff, n = t === void 0 ? 100 : t, r = e.damping, i = r === void 0 ? 8 : r, a = e.dt, o = a === void 0 ? 16.67 : a, s = 1, c = [0], l = 0, u = 0, d = 1e4, f = 0; f < d;) {
var p = -(l - s) * n, m = u * i;
if (u += (p - m) * o / 1e3, l += u * o / 1e3, c.push(l), Math.abs(l - s) < 1e-4 && Math.abs(u) < 1e-4) break;
@@ -70763,18 +70763,18 @@ var KX = (e, t) => [
var t = e * h, n = Math.floor(t), r = t - n;
return (c[n] ?? 0) + ((c[n + 1] ?? 0) - (c[n] ?? 0)) * r;
};
-}, gRe = (e) => {
+}, _Re = (e) => {
if (typeof e == "string") switch (e) {
case "ease":
case "ease-in-out":
case "ease-out":
case "ease-in":
- case "linear": return YX(e);
- case "spring": return hRe();
- default: if (e.split("(")[0] === "cubic-bezier") return YX(e);
+ case "linear": return JX(e);
+ case "spring": return gRe();
+ default: if (e.split("(")[0] === "cubic-bezier") return JX(e);
}
return typeof e == "function" ? e : null;
-}, XX = /*#__PURE__*/ (0, b.createContext)((e, t, n) => {
+}, YX = /*#__PURE__*/ (0, b.createContext)((e, t, n) => {
var r, i = (a) => {
var o = t.tick(a);
if (t.getState() === "active") {
@@ -70787,26 +70787,26 @@ var KX = (e, t) => [
};
return r = e.setTimeout(i, 0), () => r?.();
});
-XX.Provider;
-function _Re(e) {
- var t = (0, b.useContext)(XX);
+YX.Provider;
+function vRe(e) {
+ var t = (0, b.useContext)(YX);
return (0, b.useMemo)(() => e ?? t, [e, t]);
}
//#endregion
//#region node_modules/recharts/es6/animation/AnimationHandle.js
-function vRe(e, t, n) {
- return (t = yRe(t)) in e ? Object.defineProperty(e, t, {
+function yRe(e, t, n) {
+ return (t = bRe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function yRe(e) {
- var t = bRe(e, "string");
+function bRe(e) {
+ var t = xRe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function bRe(e, t) {
+function xRe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -70816,11 +70816,11 @@ function bRe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var ZX = "init", QX = "pending", $X = "active", xRe = "completed";
-function eZ(e) {
+var XX = "init", ZX = "pending", QX = "active", SRe = "completed";
+function $X(e) {
return Math.max(0, e);
}
-var SRe = class {
+var CRe = class {
getAnimationStartedTime() {
return this.animationStartedTime;
}
@@ -70829,7 +70829,7 @@ var SRe = class {
}
constructor(e) {
var t;
- vRe(this, "state", ZX), this.animationId = e.animationId, this.onAnimationEnd = e.onAnimationEnd, this.animationDuration = eZ(e.animationDuration), this.animationBegin = eZ(e.animationBegin), this.progress = 0, this.from = e.from, this.to = e.to, this.easing = e.easing, (t = e.onAnimationStart) == null || t.call(e);
+ yRe(this, "state", XX), this.animationId = e.animationId, this.onAnimationEnd = e.onAnimationEnd, this.animationDuration = $X(e.animationDuration), this.animationBegin = $X(e.animationBegin), this.progress = 0, this.from = e.from, this.to = e.to, this.easing = e.easing, (t = e.onAnimationStart) == null || t.call(e);
}
getState() {
return this.state;
@@ -70841,13 +70841,13 @@ var SRe = class {
return this.animationDuration;
}
tick(e) {
- if (this.getState() === ZX) return this.state = QX, this.beginStartedTime = e, this.animationBegin;
- if (this.getState() === QX) {
+ if (this.getState() === XX) return this.state = ZX, this.beginStartedTime = e, this.animationBegin;
+ if (this.getState() === ZX) {
if (this.beginStartedTime == null) throw Error();
var t = e - this.beginStartedTime;
- return t >= this.animationBegin ? (this.state = $X, this.animationStartedTime = e, this.nextAnimationUpdate(0)) : eZ(this.animationBegin - t);
+ return t >= this.animationBegin ? (this.state = QX, this.animationStartedTime = e, this.nextAnimationUpdate(0)) : $X(this.animationBegin - t);
}
- if (this.getState() === $X) {
+ if (this.getState() === QX) {
if (this.animationStartedTime == null) throw Error();
var n = e - this.animationStartedTime;
return this.setProgress(n / this.animationDuration), this.nextAnimationUpdate(n);
@@ -70865,7 +70865,7 @@ var SRe = class {
var e;
(e = this.onAnimationEnd) == null || e.call(this);
}
- this.state = xRe;
+ this.state = SRe;
}
getFrom() {
return this.from;
@@ -70879,14 +70879,14 @@ var SRe = class {
getAnimationBegin() {
return this.animationBegin;
}
-}, CRe = class extends SRe {
+}, wRe = class extends CRe {
nextAnimationUpdate() {
return 0;
}
getInterpolated() {
- return this.easing(LW(this.getFrom(), this.getTo(), this.getProgress()));
+ return this.easing(IW(this.getFrom(), this.getTo(), this.getProgress()));
}
-}, wRe = class {
+}, TRe = class {
setTimeout(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = performance.now(), r = null, i = (a) => {
a - n >= t ? e(a) : r = requestAnimationFrame(i);
@@ -70898,25 +70898,25 @@ var SRe = class {
};
//#endregion
//#region node_modules/recharts/es6/animation/JavascriptAnimate.js
-function TRe(e, t) {
- return kRe(e) || ORe(e, t) || DRe(e, t) || ERe();
+function ERe(e, t) {
+ return ARe(e) || kRe(e, t) || ORe(e, t) || DRe();
}
-function ERe() {
+function DRe() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function DRe(e, t) {
+function ORe(e, t) {
if (e) {
- if (typeof e == "string") return tZ(e, t);
+ if (typeof e == "string") return eZ(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? tZ(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? eZ(e, t) : void 0;
}
}
-function tZ(e, t) {
+function eZ(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function ORe(e, t) {
+function kRe(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -70937,10 +70937,10 @@ function ORe(e, t) {
return s;
}
}
-function kRe(e) {
+function ARe(e) {
if (Array.isArray(e)) return e;
}
-var ARe = {
+var jRe = {
begin: 0,
duration: 1e3,
easing: "ease",
@@ -70948,22 +70948,22 @@ var ARe = {
canBegin: !0,
onAnimationEnd: () => {},
onAnimationStart: () => {}
-}, nZ = 0, rZ = 1;
-function iZ(e) {
- var t = YG(e, ARe), n = t.animationId, r = t.isActive, i = t.canBegin, a = t.duration, o = t.easing, s = t.begin, c = t.onAnimationEnd, l = t.onAnimationStart, u = t.children, d = kX(), f = r === "auto" ? !DX.isSsr && !d : r, p = _Re(t.animationController), m = TRe((0, b.useState)(f ? nZ : rZ), 2), h = m[0], g = m[1];
+}, tZ = 0, nZ = 1;
+function rZ(e) {
+ var t = JG(e, jRe), n = t.animationId, r = t.isActive, i = t.canBegin, a = t.duration, o = t.easing, s = t.begin, c = t.onAnimationEnd, l = t.onAnimationStart, u = t.children, d = OX(), f = r === "auto" ? !EX.isSsr && !d : r, p = vRe(t.animationController), m = ERe((0, b.useState)(f ? tZ : nZ), 2), h = m[0], g = m[1];
return (0, b.useEffect)(() => {
- f || g(rZ);
+ f || g(nZ);
}, [f]), (0, b.useEffect)(() => {
- var e = gRe(o);
- return !f || !i || e == null ? HW : p(new wRe(), new CRe({
+ var e = _Re(o);
+ return !f || !i || e == null ? VW : p(new TRe(), new wRe({
animationId: n,
easing: e,
animationDuration: a,
animationBegin: s,
onAnimationStart: l,
onAnimationEnd: c,
- from: nZ,
- to: rZ
+ from: tZ,
+ to: nZ
}), g);
}, [
p,
@@ -70979,14 +70979,14 @@ function iZ(e) {
}
//#endregion
//#region node_modules/recharts/es6/util/useAnimationId.js
-function aZ(e) {
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, b.useRef)(PW(t)), r = (0, b.useRef)(e);
- return r.current !== e && (n.current = PW(t), r.current = e), n.current;
+function iZ(e) {
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, b.useRef)(NW(t)), r = (0, b.useRef)(e);
+ return r.current !== e && (n.current = NW(t), r.current = e), n.current;
}
//#endregion
//#region node_modules/recharts/es6/animation/util.js
-var jRe = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), MRe = (e, t, n) => e.map((e) => `${jRe(e)} ${t}ms ${n}`).join(","), NRe = ["radius"], PRe = ["radius"], FRe, IRe, LRe, RRe, zRe, BRe, VRe, HRe, URe, WRe;
-function oZ(e, t) {
+var MRe = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), NRe = (e, t, n) => e.map((e) => `${MRe(e)} ${t}ms ${n}`).join(","), PRe = ["radius"], FRe = ["radius"], IRe, LRe, RRe, zRe, BRe, VRe, HRe, URe, WRe, GRe;
+function aZ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -70996,30 +70996,30 @@ function oZ(e, t) {
}
return n;
}
-function sZ(e) {
+function oZ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? oZ(Object(n), !0).forEach(function(t) {
- GRe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : oZ(Object(n)).forEach(function(t) {
+ t % 2 ? aZ(Object(n), !0).forEach(function(t) {
+ KRe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : aZ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function GRe(e, t, n) {
- return (t = KRe(t)) in e ? Object.defineProperty(e, t, {
+function KRe(e, t, n) {
+ return (t = qRe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function KRe(e) {
- var t = qRe(e, "string");
+function qRe(e) {
+ var t = JRe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function qRe(e, t) {
+function JRe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -71029,25 +71029,25 @@ function qRe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function cZ() {
- return cZ = Object.assign ? Object.assign.bind() : function(e) {
+function sZ() {
+ return sZ = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, cZ.apply(null, arguments);
+ }, sZ.apply(null, arguments);
}
-function lZ(e, t) {
+function cZ(e, t) {
if (e == null) return {};
- var n, r, i = JRe(e, t);
+ var n, r, i = YRe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function JRe(e, t) {
+function YRe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -71056,25 +71056,25 @@ function JRe(e, t) {
}
return n;
}
-function YRe(e, t) {
- return $Re(e) || QRe(e, t) || ZRe(e, t) || XRe();
+function XRe(e, t) {
+ return eze(e) || $Re(e, t) || QRe(e, t) || ZRe();
}
-function XRe() {
+function ZRe() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function ZRe(e, t) {
+function QRe(e, t) {
if (e) {
- if (typeof e == "string") return uZ(e, t);
+ if (typeof e == "string") return lZ(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? uZ(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? lZ(e, t) : void 0;
}
}
-function uZ(e, t) {
+function lZ(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function QRe(e, t) {
+function $Re(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -71095,14 +71095,14 @@ function QRe(e, t) {
return s;
}
}
-function $Re(e) {
+function eze(e) {
if (Array.isArray(e)) return e;
}
-function dZ(e, t) {
+function uZ(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var fZ = (e, t, n, r, i) => {
- var a = DW(n), o = DW(r), s = Math.min(Math.abs(a) / 2, Math.abs(o) / 2), c = o >= 0 ? 1 : -1, l = a >= 0 ? 1 : -1, u = +(o >= 0 && a >= 0 || o < 0 && a < 0), d;
+var dZ = (e, t, n, r, i) => {
+ var a = EW(n), o = EW(r), s = Math.min(Math.abs(a) / 2, Math.abs(o) / 2), c = o >= 0 ? 1 : -1, l = a >= 0 ? 1 : -1, u = +(o >= 0 && a >= 0 || o < 0 && a < 0), d;
if (s > 0 && Array.isArray(i)) {
for (var f = [
0,
@@ -71113,44 +71113,44 @@ var fZ = (e, t, n, r, i) => {
var h = i[p] ?? 0;
f[p] = h > s ? s : h;
}
- d = OW(FRe ||= dZ([
+ d = DW(IRe ||= uZ([
"M",
",",
""
- ]), e, t + c * f[0]), f[0] > 0 && (d += OW(IRe ||= dZ([
+ ]), e, t + c * f[0]), f[0] > 0 && (d += DW(LRe ||= uZ([
"A ",
",",
",0,0,",
",",
",",
""
- ]), f[0], f[0], u, e + l * f[0], t)), d += OW(LRe ||= dZ([
+ ]), f[0], f[0], u, e + l * f[0], t)), d += DW(RRe ||= uZ([
"L ",
",",
""
- ]), e + n - l * f[1], t), f[1] > 0 && (d += OW(RRe ||= dZ([
+ ]), e + n - l * f[1], t), f[1] > 0 && (d += DW(zRe ||= uZ([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[1], f[1], u, e + n, t + c * f[1])), d += OW(zRe ||= dZ([
+ ]), f[1], f[1], u, e + n, t + c * f[1])), d += DW(BRe ||= uZ([
"L ",
",",
""
- ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += OW(BRe ||= dZ([
+ ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += DW(VRe ||= uZ([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += OW(VRe ||= dZ([
+ ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += DW(HRe ||= uZ([
"L ",
",",
""
- ]), e + l * f[3], t + r), f[3] > 0 && (d += OW(HRe ||= dZ([
+ ]), e + l * f[3], t + r), f[3] > 0 && (d += DW(URe ||= uZ([
"A ",
",",
",0,0,",
@@ -71160,8 +71160,8 @@ var fZ = (e, t, n, r, i) => {
]), f[3], f[3], u, e, t + r - c * f[3])), d += "Z";
} else if (s > 0 && i === +i && i > 0) {
var g = Math.min(s, i);
- d = OW(URe ||= dZ(/* @__PURE__ */ "M .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,. Z".split(".")), e, t + c * g, g, g, u, e + l * g, t, e + n - l * g, t, g, g, u, e + n, t + c * g, e + n, t + r - c * g, g, g, u, e + n - l * g, t + r, e + l * g, t + r, g, g, u, e, t + r - c * g);
- } else d = OW(WRe ||= dZ([
+ d = DW(WRe ||= uZ(/* @__PURE__ */ "M .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,. Z".split(".")), e, t + c * g, g, g, u, e + l * g, t, e + n - l * g, t, g, g, u, e + n, t + c * g, e + n, t + r - c * g, g, g, u, e + n - l * g, t + r, e + l * g, t + r, g, g, u, e, t + r - c * g);
+ } else d = DW(GRe ||= uZ([
"M ",
",",
" h ",
@@ -71170,7 +71170,7 @@ var fZ = (e, t, n, r, i) => {
" Z"
]), e, t, n, r, -n);
return d;
-}, pZ = {
+}, fZ = {
x: 0,
y: 0,
width: 0,
@@ -71181,15 +71181,15 @@ var fZ = (e, t, n, r, i) => {
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease"
-}, mZ = (e) => {
- var t = YG(e, pZ), n = (0, b.useRef)(null), r = YRe((0, b.useState)(-1), 2), i = r[0], a = r[1];
+}, pZ = (e) => {
+ var t = JG(e, fZ), n = (0, b.useRef)(null), r = XRe((0, b.useState)(-1), 2), i = r[0], a = r[1];
(0, b.useEffect)(() => {
if (n.current && n.current.getTotalLength) try {
var e = n.current.getTotalLength();
e && a(e);
} catch {}
}, []);
- var o = t.x, s = t.y, c = t.width, l = t.height, u = t.radius, d = t.className, f = t.animationEasing, p = t.animationDuration, m = t.animationBegin, h = t.isAnimationActive, g = t.isUpdateAnimationActive, _ = (0, b.useRef)(c), v = (0, b.useRef)(l), y = (0, b.useRef)(o), x = (0, b.useRef)(s), S = aZ((0, b.useMemo)(() => ({
+ var o = t.x, s = t.y, c = t.width, l = t.height, u = t.radius, d = t.className, f = t.animationEasing, p = t.animationDuration, m = t.animationBegin, h = t.isAnimationActive, g = t.isUpdateAnimationActive, _ = (0, b.useRef)(c), v = (0, b.useRef)(l), y = (0, b.useRef)(o), x = (0, b.useRef)(s), S = iZ((0, b.useMemo)(() => ({
x: o,
y: s,
width: c,
@@ -71203,23 +71203,23 @@ var fZ = (e, t, n, r, i) => {
u
]), "rectangle-");
if (o !== +o || s !== +s || c !== +c || l !== +l || c === 0 || l === 0) return null;
- var C = dv("recharts-rectangle", d);
+ var C = fv("recharts-rectangle", d);
if (!g) {
- var w = hW(t);
+ var w = mW(t);
w.radius;
- var T = lZ(w, NRe);
- return /*#__PURE__*/ b.createElement("path", cZ({}, T, {
- x: DW(o),
- y: DW(s),
- width: DW(c),
- height: DW(l),
+ var T = cZ(w, PRe);
+ return /*#__PURE__*/ b.createElement("path", sZ({}, T, {
+ x: EW(o),
+ y: EW(s),
+ width: EW(c),
+ height: EW(l),
radius: typeof u == "number" ? u : void 0,
className: C,
- d: fZ(o, s, c, l, u)
+ d: dZ(o, s, c, l, u)
}));
}
- var E = _.current, D = v.current, O = y.current, k = x.current, A = `0px ${i === -1 ? 1 : i}px`, j = `${i}px ${i}px`, M = MRe(["strokeDasharray"], p, typeof f == "string" ? f : pZ.animationEasing);
- return /*#__PURE__*/ b.createElement(iZ, {
+ var E = _.current, D = v.current, O = y.current, k = x.current, A = `0px ${i === -1 ? 1 : i}px`, j = `${i}px ${i}px`, M = NRe(["strokeDasharray"], p, typeof f == "string" ? f : fZ.animationEasing);
+ return /*#__PURE__*/ b.createElement(rZ, {
animationId: S,
key: S,
canBegin: i > 0,
@@ -71228,26 +71228,26 @@ var fZ = (e, t, n, r, i) => {
isActive: g,
begin: m
}, (e) => {
- var r = LW(E, c, e), i = LW(D, l, e), a = LW(O, o, e), d = LW(k, s, e);
+ var r = IW(E, c, e), i = IW(D, l, e), a = IW(O, o, e), d = IW(k, s, e);
n.current && (_.current = r, v.current = i, y.current = a, x.current = d);
var f = h ? e > 0 ? {
transition: M,
strokeDasharray: j
- } : { strokeDasharray: A } : { strokeDasharray: j }, p = hW(t);
+ } : { strokeDasharray: A } : { strokeDasharray: j }, p = mW(t);
p.radius;
- var m = lZ(p, PRe);
- return /*#__PURE__*/ b.createElement("path", cZ({}, m, {
+ var m = cZ(p, FRe);
+ return /*#__PURE__*/ b.createElement("path", sZ({}, m, {
radius: typeof u == "number" ? u : void 0,
className: C,
- d: fZ(a, d, r, i, u),
+ d: dZ(a, d, r, i, u),
ref: n,
- style: sZ(sZ({}, f), t.style)
+ style: oZ(oZ({}, f), t.style)
}));
});
};
//#endregion
//#region node_modules/recharts/es6/util/PolarUtils.js
-function hZ(e, t) {
+function mZ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -71257,30 +71257,30 @@ function hZ(e, t) {
}
return n;
}
-function gZ(e) {
+function hZ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? hZ(Object(n), !0).forEach(function(t) {
- eze(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : hZ(Object(n)).forEach(function(t) {
+ t % 2 ? mZ(Object(n), !0).forEach(function(t) {
+ tze(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : mZ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function eze(e, t, n) {
- return (t = tze(t)) in e ? Object.defineProperty(e, t, {
+function tze(e, t, n) {
+ return (t = nze(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function tze(e) {
- var t = nze(e, "string");
+function nze(e) {
+ var t = rze(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function nze(e, t) {
+function rze(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -71290,10 +71290,10 @@ function nze(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var _Z = Math.PI / 180, vZ = (e) => e * Math.PI / 180, rze = (e) => e * 180 / Math.PI, yZ = (e, t, n, r) => ({
- x: e + Math.cos(-_Z * r) * n,
- y: t + Math.sin(-_Z * r) * n
-}), ize = function(e, t) {
+var gZ = Math.PI / 180, _Z = (e) => e * Math.PI / 180, ize = (e) => e * 180 / Math.PI, vZ = (e, t, n, r) => ({
+ x: e + Math.cos(-gZ * r) * n,
+ y: t + Math.sin(-gZ * r) * n
+}), aze = function(e, t) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
top: 0,
right: 0,
@@ -71304,11 +71304,11 @@ var _Z = Math.PI / 180, vZ = (e) => e * Math.PI / 180, rze = (e) => e * 180 / Ma
brushBottom: 0
};
return Math.min(Math.abs(e - (n.left || 0) - (n.right || 0)), Math.abs(t - (n.top || 0) - (n.bottom || 0))) / 2;
-}, aze = (e, t) => {
+}, oze = (e, t) => {
var n = e.x, r = e.y, i = t.x, a = t.y;
return Math.sqrt((n - i) ** 2 + (r - a) ** 2);
-}, oze = (e, t) => {
- var n = e.x, r = e.y, i = t.cx, a = t.cy, o = aze({
+}, sze = (e, t) => {
+ var n = e.x, r = e.y, i = t.cx, a = t.cy, o = oze({
x: n,
y: r
}, {
@@ -71322,25 +71322,25 @@ var _Z = Math.PI / 180, vZ = (e) => e * Math.PI / 180, rze = (e) => e * 180 / Ma
var s = (n - i) / o, c = Math.acos(s);
return r > a && (c = 2 * Math.PI - c), {
radius: o,
- angle: rze(c),
+ angle: ize(c),
angleInRadian: c
};
-}, sze = (e) => {
+}, cze = (e) => {
var t = e.startAngle, n = e.endAngle, r = Math.floor(t / 360), i = Math.floor(n / 360), a = Math.min(r, i);
return {
startAngle: t - a * 360,
endAngle: n - a * 360
};
-}, cze = (e, t) => {
+}, lze = (e, t) => {
var n = t.startAngle, r = t.endAngle, i = Math.floor(n / 360), a = Math.floor(r / 360);
return e + Math.min(i, a) * 360;
-}, lze = (e, t) => {
- var n = e.relativeX, r = e.relativeY, i = oze({
+}, uze = (e, t) => {
+ var n = e.relativeX, r = e.relativeY, i = sze({
x: n,
y: r
}, t), a = i.radius, o = i.angle, s = t.innerRadius, c = t.outerRadius;
if (a < s || a > c || a === 0) return null;
- var l = sze(t), u = l.startAngle, d = l.endAngle, f = o, p;
+ var l = cze(t), u = l.startAngle, d = l.endAngle, f = o, p;
if (u <= d) {
for (; f > d;) f -= 360;
for (; f < u;) f += 360;
@@ -71350,17 +71350,17 @@ var _Z = Math.PI / 180, vZ = (e) => e * Math.PI / 180, rze = (e) => e * 180 / Ma
for (; f < d;) f += 360;
p = f >= d && f <= u;
}
- return p ? gZ(gZ({}, t), {}, {
+ return p ? hZ(hZ({}, t), {}, {
radius: a,
- angle: cze(f, t)
+ angle: lze(f, t)
}) : null;
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js
-function bZ(e) {
+function yZ(e) {
var t = e.cx, n = e.cy, r = e.radius, i = e.startAngle, a = e.endAngle;
return {
- points: [yZ(t, n, r, i), yZ(t, n, r, a)],
+ points: [vZ(t, n, r, i), vZ(t, n, r, a)],
cx: t,
cy: n,
radius: r,
@@ -71370,29 +71370,29 @@ function bZ(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Sector.js
-var uze, dze, fze, pze, mze, hze, gze;
-function xZ() {
- return xZ = Object.assign ? Object.assign.bind() : function(e) {
+var dze, fze, pze, mze, hze, gze, _ze;
+function bZ() {
+ return bZ = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, xZ.apply(null, arguments);
+ }, bZ.apply(null, arguments);
}
-function SZ(e, t) {
+function xZ(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var _ze = (e, t) => kW(t - e) * Math.min(Math.abs(t - e), 359.999), CZ = (e) => {
- var t = e.cx, n = e.cy, r = e.radius, i = e.angle, a = e.sign, o = e.isExternal, s = e.cornerRadius, c = e.cornerIsExternal, l = s * (o ? 1 : -1) + r, u = Math.asin(s / l) / _Z, d = c ? i : i + a * u, f = yZ(t, n, l, d), p = yZ(t, n, r, d), m = c ? i - a * u : i;
+var vze = (e, t) => OW(t - e) * Math.min(Math.abs(t - e), 359.999), SZ = (e) => {
+ var t = e.cx, n = e.cy, r = e.radius, i = e.angle, a = e.sign, o = e.isExternal, s = e.cornerRadius, c = e.cornerIsExternal, l = s * (o ? 1 : -1) + r, u = Math.asin(s / l) / gZ, d = c ? i : i + a * u, f = vZ(t, n, l, d), p = vZ(t, n, r, d), m = c ? i - a * u : i;
return {
center: f,
circleTangency: p,
- lineTangency: yZ(t, n, l * Math.cos(u * _Z), m),
+ lineTangency: vZ(t, n, l * Math.cos(u * gZ), m),
theta: u
};
-}, wZ = (e) => {
- var t = e.cx, n = e.cy, r = e.innerRadius, i = e.outerRadius, a = e.startAngle, o = e.endAngle, s = _ze(a, o), c = a + s, l = yZ(t, n, i, a), u = yZ(t, n, i, c), d = OW(uze ||= SZ([
+}, CZ = (e) => {
+ var t = e.cx, n = e.cy, r = e.innerRadius, i = e.outerRadius, a = e.startAngle, o = e.endAngle, s = vze(a, o), c = a + s, l = vZ(t, n, i, a), u = vZ(t, n, i, c), d = DW(dze ||= xZ([
"M ",
",",
"\n A ",
@@ -71404,8 +71404,8 @@ var _ze = (e, t) => kW(t - e) * Math.min(Math.abs(t - e), 359.999), CZ = (e) =>
"\n "
]), l.x, l.y, i, i, +(Math.abs(s) > 180), +(a > c), u.x, u.y);
if (r > 0) {
- var f = yZ(t, n, r, a), p = yZ(t, n, r, c);
- d += OW(dze ||= SZ([
+ var f = vZ(t, n, r, a), p = vZ(t, n, r, c);
+ d += DW(fze ||= xZ([
"L ",
",",
"\n A ",
@@ -71416,14 +71416,14 @@ var _ze = (e, t) => kW(t - e) * Math.min(Math.abs(t - e), 359.999), CZ = (e) =>
",",
" Z"
]), p.x, p.y, r, r, +(Math.abs(s) > 180), +(a <= c), f.x, f.y);
- } else d += OW(fze ||= SZ([
+ } else d += DW(pze ||= xZ([
"L ",
",",
" Z"
]), t, n);
return d;
-}, vze = (e) => {
- var t = e.cx, n = e.cy, r = e.innerRadius, i = e.outerRadius, a = e.cornerRadius, o = e.forceCornerRadius, s = e.cornerIsExternal, c = e.startAngle, l = e.endAngle, u = kW(l - c), d = CZ({
+}, yze = (e) => {
+ var t = e.cx, n = e.cy, r = e.innerRadius, i = e.outerRadius, a = e.cornerRadius, o = e.forceCornerRadius, s = e.cornerIsExternal, c = e.startAngle, l = e.endAngle, u = OW(l - c), d = SZ({
cx: t,
cy: n,
radius: i,
@@ -71431,7 +71431,7 @@ var _ze = (e, t) => kW(t - e) * Math.min(Math.abs(t - e), 359.999), CZ = (e) =>
sign: u,
cornerRadius: a,
cornerIsExternal: s
- }), f = d.circleTangency, p = d.lineTangency, m = d.theta, h = CZ({
+ }), f = d.circleTangency, p = d.lineTangency, m = d.theta, h = SZ({
cx: t,
cy: n,
radius: i,
@@ -71440,7 +71440,7 @@ var _ze = (e, t) => kW(t - e) * Math.min(Math.abs(t - e), 359.999), CZ = (e) =>
cornerRadius: a,
cornerIsExternal: s
}), g = h.circleTangency, _ = h.lineTangency, v = h.theta, y = s ? Math.abs(c - l) : Math.abs(c - l) - m - v;
- if (y < 0) return o ? OW(pze ||= SZ([
+ if (y < 0) return o ? DW(mze ||= xZ([
"M ",
",",
"\n a",
@@ -71450,7 +71450,7 @@ var _ze = (e, t) => kW(t - e) * Math.min(Math.abs(t - e), 359.999), CZ = (e) =>
",",
",0,0,1,",
",0\n "
- ]), p.x, p.y, a, a, a * 2, a, a, -a * 2) : wZ({
+ ]), p.x, p.y, a, a, a * 2, a, a, -a * 2) : CZ({
cx: t,
cy: n,
innerRadius: r,
@@ -71458,7 +71458,7 @@ var _ze = (e, t) => kW(t - e) * Math.min(Math.abs(t - e), 359.999), CZ = (e) =>
startAngle: c,
endAngle: l
});
- var b = OW(mze ||= SZ([
+ var b = DW(hze ||= xZ([
"M ",
",",
"\n A",
@@ -71480,7 +71480,7 @@ var _ze = (e, t) => kW(t - e) * Math.min(Math.abs(t - e), 359.999), CZ = (e) =>
"\n "
]), p.x, p.y, a, a, +(u < 0), f.x, f.y, i, i, +(y > 180), +(u < 0), g.x, g.y, a, a, +(u < 0), _.x, _.y);
if (r > 0) {
- var x = CZ({
+ var x = SZ({
cx: t,
cy: n,
radius: r,
@@ -71489,7 +71489,7 @@ var _ze = (e, t) => kW(t - e) * Math.min(Math.abs(t - e), 359.999), CZ = (e) =>
isExternal: !0,
cornerRadius: a,
cornerIsExternal: s
- }), S = x.circleTangency, C = x.lineTangency, w = x.theta, T = CZ({
+ }), S = x.circleTangency, C = x.lineTangency, w = x.theta, T = SZ({
cx: t,
cy: n,
radius: r,
@@ -71500,7 +71500,7 @@ var _ze = (e, t) => kW(t - e) * Math.min(Math.abs(t - e), 359.999), CZ = (e) =>
cornerIsExternal: s
}), E = T.circleTangency, D = T.lineTangency, O = T.theta, k = s ? Math.abs(c - l) : Math.abs(c - l) - w - O;
if (k < 0 && a === 0) return `${b}L${t},${n}Z`;
- b += OW(hze ||= SZ([
+ b += DW(gze ||= xZ([
"L",
",",
"\n A",
@@ -71521,13 +71521,13 @@ var _ze = (e, t) => kW(t - e) * Math.min(Math.abs(t - e), 359.999), CZ = (e) =>
",",
"Z"
]), D.x, D.y, a, a, +(u < 0), E.x, E.y, r, r, +(k > 180), +(u > 0), S.x, S.y, a, a, +(u < 0), C.x, C.y);
- } else b += OW(gze ||= SZ([
+ } else b += DW(_ze ||= xZ([
"L",
",",
"Z"
]), t, n);
return b;
-}, yze = {
+}, bze = {
cx: 0,
cy: 0,
innerRadius: 0,
@@ -71537,10 +71537,10 @@ var _ze = (e, t) => kW(t - e) * Math.min(Math.abs(t - e), 359.999), CZ = (e) =>
cornerRadius: 0,
forceCornerRadius: !1,
cornerIsExternal: !1
-}, TZ = (e) => {
- var t = YG(e, yze), n = t.cx, r = t.cy, i = t.innerRadius, a = t.outerRadius, o = t.cornerRadius, s = t.forceCornerRadius, c = t.cornerIsExternal, l = t.startAngle, u = t.endAngle, d = t.className;
+}, wZ = (e) => {
+ var t = JG(e, bze), n = t.cx, r = t.cy, i = t.innerRadius, a = t.outerRadius, o = t.cornerRadius, s = t.forceCornerRadius, c = t.cornerIsExternal, l = t.startAngle, u = t.endAngle, d = t.className;
if (a < i || l === u) return null;
- var f = dv("recharts-sector", d), p = a - i, m = FW(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? vze({
+ var f = fv("recharts-sector", d), p = a - i, m = PW(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? yze({
cx: n,
cy: r,
innerRadius: i,
@@ -71550,7 +71550,7 @@ var _ze = (e, t) => kW(t - e) * Math.min(Math.abs(t - e), 359.999), CZ = (e) =>
cornerIsExternal: c,
startAngle: l,
endAngle: u
- }) : wZ({
+ }) : CZ({
cx: n,
cy: r,
innerRadius: i,
@@ -71558,14 +71558,14 @@ var _ze = (e, t) => kW(t - e) * Math.min(Math.abs(t - e), 359.999), CZ = (e) =>
startAngle: l,
endAngle: u
});
- return /*#__PURE__*/ b.createElement("path", xZ({}, hW(t), {
+ return /*#__PURE__*/ b.createElement("path", bZ({}, mW(t), {
className: f,
d: h
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorPoints.js
-function bze(e, t, n) {
+function xze(e, t, n) {
if (e === "horizontal") return [{
x: t.x,
y: n.top
@@ -71580,9 +71580,9 @@ function bze(e, t, n) {
x: n.left + n.width,
y: t.y
}];
- if (GG(t)) {
+ if (WG(t)) {
if (e === "centric") {
- var r = t.cx, i = t.cy, a = t.innerRadius, o = t.outerRadius, s = t.angle, c = yZ(r, i, a, s), l = yZ(r, i, o, s);
+ var r = t.cx, i = t.cy, a = t.innerRadius, o = t.outerRadius, s = t.angle, c = vZ(r, i, a, s), l = vZ(r, i, o, s);
return [{
x: c.x,
y: c.y
@@ -71591,30 +71591,30 @@ function bze(e, t, n) {
y: l.y
}];
}
- return bZ(t);
+ return yZ(t);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toNumber.mjs
-function xze(e) {
- return CW(e) ? NaN : Number(e);
+function Sze(e) {
+ return SW(e) ? NaN : Number(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toFinite.mjs
-function EZ(e) {
- return e ? (e = xze(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;
+function TZ(e) {
+ return e ? (e = Sze(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/range.mjs
-function DZ(e, t, n) {
- n && typeof n != "number" && YK(e, t, n) && (t = n = void 0), e = EZ(e), t === void 0 ? (t = e, e = 0) : t = EZ(t), n = n === void 0 ? e < t ? 1 : -1 : EZ(n);
+function EZ(e, t, n) {
+ n && typeof n != "number" && JK(e, t, n) && (t = n = void 0), e = TZ(e), t === void 0 ? (t = e, e = 0) : t = TZ(t), n = n === void 0 ? e < t ? 1 : -1 : TZ(n);
let r = Math.max(Math.ceil((t - e) / (n || 1)), 0), i = Array(r);
for (let t = 0; t < r; t++) i[t] = e, e += n;
return i;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/dataSelectors.js
-var OZ = (e) => e.chartData, kZ = Y([OZ], (e) => {
+var DZ = (e) => e.chartData, OZ = Y([DZ], (e) => {
var t = e.chartData == null ? 0 : e.chartData.length - 1;
return {
chartData: e.chartData,
@@ -71622,37 +71622,37 @@ var OZ = (e) => e.chartData, kZ = Y([OZ], (e) => {
dataEndIndex: t,
dataStartIndex: 0
};
-}), AZ = (e, t, n, r) => r ? kZ(e) : OZ(e), jZ = (e, t, n) => n ? kZ(e) : OZ(e), Sze = Y([AZ], (e) => {
+}), kZ = (e, t, n, r) => r ? OZ(e) : DZ(e), AZ = (e, t, n) => n ? OZ(e) : DZ(e), Cze = Y([kZ], (e) => {
var t = e.chartData, n = e.dataStartIndex, r = e.dataEndIndex;
return t == null ? [] : t.slice(n, r + 1);
-}), Cze = Y([kZ], (e) => {
+}), wze = Y([OZ], (e) => {
var t = e.chartData, n = e.dataStartIndex, r = e.dataEndIndex;
return t == null ? [] : t.slice(n, r + 1);
-}), wze = Y([OZ], (e) => {
+}), Tze = Y([DZ], (e) => {
var t = e.chartData, n = e.dataStartIndex, r = e.dataEndIndex;
return t == null ? [] : t.slice(n, r + 1);
});
//#endregion
//#region node_modules/recharts/es6/util/isDomainSpecifiedByUser.js
-function MZ(e, t) {
- return Oze(e) || Dze(e, t) || Eze(e, t) || Tze();
+function jZ(e, t) {
+ return kze(e) || Oze(e, t) || Dze(e, t) || Eze();
}
-function Tze() {
+function Eze() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function Eze(e, t) {
+function Dze(e, t) {
if (e) {
- if (typeof e == "string") return NZ(e, t);
+ if (typeof e == "string") return MZ(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? NZ(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? MZ(e, t) : void 0;
}
}
-function NZ(e, t) {
+function MZ(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function Dze(e, t) {
+function Oze(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -71673,45 +71673,45 @@ function Dze(e, t) {
return s;
}
}
-function Oze(e) {
+function kze(e) {
if (Array.isArray(e)) return e;
}
-function PZ(e) {
+function NZ(e) {
if (Array.isArray(e) && e.length === 2) {
- var t = MZ(e, 2), n = t[0], r = t[1];
- if (cY(n) && cY(r)) return !0;
+ var t = jZ(e, 2), n = t[0], r = t[1];
+ if (sY(n) && sY(r)) return !0;
}
return !1;
}
-function FZ(e, t, n) {
+function PZ(e, t, n) {
return n ? e : [Math.min(e[0], t[0]), Math.max(e[1], t[1])];
}
-function IZ(e, t) {
+function FZ(e, t) {
if (t && typeof e != "function" && Array.isArray(e) && e.length === 2) {
- var n = MZ(e, 2), r = n[0], i = n[1], a, o;
- if (cY(r)) a = r;
+ var n = jZ(e, 2), r = n[0], i = n[1], a, o;
+ if (sY(r)) a = r;
else if (typeof r == "function") return;
- if (cY(i)) o = i;
+ if (sY(i)) o = i;
else if (typeof i == "function") return;
var s = [a, o];
- if (PZ(s)) return s;
+ if (NZ(s)) return s;
}
}
-function kze(e, t, n) {
+function Aze(e, t, n) {
if (n || t != null) {
if (typeof e == "function" && t != null) try {
var r = e(t, n);
- if (PZ(r)) return FZ(r, t, n);
+ if (NZ(r)) return PZ(r, t, n);
} catch {}
if (Array.isArray(e) && e.length === 2) {
- var i = MZ(e, 2), a = i[0], o = i[1], s, c;
+ var i = jZ(e, 2), a = i[0], o = i[1], s, c;
if (a === "auto") t != null && (s = Math.min(...t));
- else if (MW(a)) s = a;
+ else if (jW(a)) s = a;
else if (typeof a == "function") try {
t != null && (s = a(t?.[0]));
} catch {}
- else if (typeof a == "string" && xY.test(a)) {
- var l = xY.exec(a);
+ else if (typeof a == "string" && bY.test(a)) {
+ var l = bY.exec(a);
if (l == null || l[1] == null || t == null) s = void 0;
else {
var u = +l[1];
@@ -71719,12 +71719,12 @@ function kze(e, t, n) {
}
} else s = t?.[0];
if (o === "auto") t != null && (c = Math.max(...t));
- else if (MW(o)) c = o;
+ else if (jW(o)) c = o;
else if (typeof o == "function") try {
t != null && (c = o(t?.[1]));
} catch {}
- else if (typeof o == "string" && SY.test(o)) {
- var d = SY.exec(o);
+ else if (typeof o == "string" && xY.test(o)) {
+ var d = xY.exec(o);
if (d == null || d[1] == null || t == null) c = void 0;
else {
var f = +d[1];
@@ -71732,13 +71732,13 @@ function kze(e, t, n) {
}
} else c = t?.[1];
var p = [s, c];
- if (PZ(p)) return t == null ? p : FZ(p, t, n);
+ if (NZ(p)) return t == null ? p : PZ(p, t, n);
}
}
}
//#endregion
//#region node_modules/recharts/es6/util/scale/util/arithmetic.js
-var LZ = /* @__PURE__ */ l((/* @__PURE__ */ o(((e, t) => {
+var IZ = /* @__PURE__ */ l((/* @__PURE__ */ o(((e, t) => {
(function(e) {
var n = 1e9, r = {
precision: 20,
@@ -72113,34 +72113,34 @@ var LZ = /* @__PURE__ */ l((/* @__PURE__ */ o(((e, t) => {
}) : t !== void 0 && t.exports ? t.exports = r : (e ||= typeof self < "u" && self && self.self == self ? self : Function("return this")(), e.Decimal = r);
})(e);
})))());
-function RZ(e) {
- return e === 0 ? 1 : Math.floor(new LZ.default(e).abs().log(10).toNumber()) + 1;
+function LZ(e) {
+ return e === 0 ? 1 : Math.floor(new IZ.default(e).abs().log(10).toNumber()) + 1;
}
-function zZ(e, t, n) {
- for (var r = new LZ.default(e), i = 0, a = []; r.lt(t) && i < 1e5;) a.push(r.toNumber()), r = r.add(n), i++;
+function RZ(e, t, n) {
+ for (var r = new IZ.default(e), i = 0, a = []; r.lt(t) && i < 1e5;) a.push(r.toNumber()), r = r.add(n), i++;
return a;
}
//#endregion
//#region node_modules/recharts/es6/util/scale/getNiceTickValues.js
-function BZ(e, t) {
- return Nze(e) || Mze(e, t) || jze(e, t) || Aze();
+function zZ(e, t) {
+ return Pze(e) || Nze(e, t) || Mze(e, t) || jze();
}
-function Aze() {
+function jze() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function jze(e, t) {
+function Mze(e, t) {
if (e) {
- if (typeof e == "string") return VZ(e, t);
+ if (typeof e == "string") return BZ(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? VZ(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? BZ(e, t) : void 0;
}
}
-function VZ(e, t) {
+function BZ(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function Mze(e, t) {
+function Nze(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -72161,74 +72161,74 @@ function Mze(e, t) {
return s;
}
}
-function Nze(e) {
+function Pze(e) {
if (Array.isArray(e)) return e;
}
-var HZ = (e) => {
- var t = BZ(e, 2), n = t[0], r = t[1], i = n, a = r;
+var VZ = (e) => {
+ var t = zZ(e, 2), n = t[0], r = t[1], i = n, a = r;
return n > r && (i = r, a = n), [i, a];
+}, HZ = (e, t, n) => {
+ if (e.lte(0)) return new IZ.default(0);
+ var r = LZ(e.toNumber()), i = new IZ.default(10).pow(r), a = e.div(i), o = r === 1 ? .1 : .05, s = new IZ.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);
+ return t ? new IZ.default(s.toNumber()) : new IZ.default(Math.ceil(s.toNumber()));
}, UZ = (e, t, n) => {
- if (e.lte(0)) return new LZ.default(0);
- var r = RZ(e.toNumber()), i = new LZ.default(10).pow(r), a = e.div(i), o = r === 1 ? .1 : .05, s = new LZ.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);
- return t ? new LZ.default(s.toNumber()) : new LZ.default(Math.ceil(s.toNumber()));
-}, WZ = (e, t, n) => {
- if (e.lte(0)) return new LZ.default(0);
+ if (e.lte(0)) return new IZ.default(0);
var r = [
1,
2,
2.5,
5
- ], i = e.toNumber(), a = Math.floor(new LZ.default(i).abs().log(10).toNumber()), o = new LZ.default(10).pow(a), s = e.div(o).toNumber(), c = r.findIndex((e) => e >= s - 1e-10);
+ ], i = e.toNumber(), a = Math.floor(new IZ.default(i).abs().log(10).toNumber()), o = new IZ.default(10).pow(a), s = e.div(o).toNumber(), c = r.findIndex((e) => e >= s - 1e-10);
if (c === -1 && (o = o.mul(10), c = 0), c += n, c >= r.length) {
var l = Math.floor(c / r.length);
- c %= r.length, o = o.mul(new LZ.default(10).pow(l));
+ c %= r.length, o = o.mul(new IZ.default(10).pow(l));
}
- var u = r[c] ?? 1, d = new LZ.default(u).mul(o);
- return t ? d : new LZ.default(Math.ceil(d.toNumber()));
-}, Pze = (e, t, n) => {
- var r = new LZ.default(1), i = new LZ.default(e);
+ var u = r[c] ?? 1, d = new IZ.default(u).mul(o);
+ return t ? d : new IZ.default(Math.ceil(d.toNumber()));
+}, Fze = (e, t, n) => {
+ var r = new IZ.default(1), i = new IZ.default(e);
if (!i.isint() && n) {
var a = Math.abs(e);
- a < 1 ? (r = new LZ.default(10).pow(RZ(e) - 1), i = new LZ.default(Math.floor(i.div(r).toNumber())).mul(r)) : a > 1 && (i = new LZ.default(Math.floor(e)));
- } else e === 0 ? i = new LZ.default(Math.floor((t - 1) / 2)) : n || (i = new LZ.default(Math.floor(e)));
- for (var o = Math.floor((t - 1) / 2), s = [], c = 0; c < t; c++) s.push(i.add(new LZ.default(c - o).mul(r)).toNumber());
+ a < 1 ? (r = new IZ.default(10).pow(LZ(e) - 1), i = new IZ.default(Math.floor(i.div(r).toNumber())).mul(r)) : a > 1 && (i = new IZ.default(Math.floor(e)));
+ } else e === 0 ? i = new IZ.default(Math.floor((t - 1) / 2)) : n || (i = new IZ.default(Math.floor(e)));
+ for (var o = Math.floor((t - 1) / 2), s = [], c = 0; c < t; c++) s.push(i.add(new IZ.default(c - o).mul(r)).toNumber());
return s;
-}, GZ = function(e, t, n, r) {
- var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : UZ;
+}, WZ = function(e, t, n, r) {
+ var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : HZ;
if (!Number.isFinite((t - e) / (n - 1))) return {
- step: new LZ.default(0),
- tickMin: new LZ.default(0),
- tickMax: new LZ.default(0)
- };
- var o = a(new LZ.default(t).sub(e).div(n - 1), r, i), s;
- e <= 0 && t >= 0 ? s = new LZ.default(0) : (s = new LZ.default(e).add(t).div(2), s = s.sub(new LZ.default(s).mod(o)));
- var c = Math.ceil(s.sub(e).div(o).toNumber()), l = Math.ceil(new LZ.default(t).sub(s).div(o).toNumber()), u = c + l + 1;
- return u > n ? GZ(e, t, n, r, i + 1, a) : (u < n && (l = t > 0 ? l + (n - u) : l, c = t > 0 ? c : c + (n - u)), {
+ step: new IZ.default(0),
+ tickMin: new IZ.default(0),
+ tickMax: new IZ.default(0)
+ };
+ var o = a(new IZ.default(t).sub(e).div(n - 1), r, i), s;
+ e <= 0 && t >= 0 ? s = new IZ.default(0) : (s = new IZ.default(e).add(t).div(2), s = s.sub(new IZ.default(s).mod(o)));
+ var c = Math.ceil(s.sub(e).div(o).toNumber()), l = Math.ceil(new IZ.default(t).sub(s).div(o).toNumber()), u = c + l + 1;
+ return u > n ? WZ(e, t, n, r, i + 1, a) : (u < n && (l = t > 0 ? l + (n - u) : l, c = t > 0 ? c : c + (n - u)), {
step: o,
- tickMin: s.sub(new LZ.default(c).mul(o)),
- tickMax: s.add(new LZ.default(l).mul(o))
+ tickMin: s.sub(new IZ.default(c).mul(o)),
+ tickMax: s.add(new IZ.default(l).mul(o))
});
-}, KZ = function(e) {
- var t = BZ(e, 2), n = t[0], r = t[1], i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 6, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", s = Math.max(i, 2), c = BZ(HZ([n, r]), 2), l = c[0], u = c[1];
+}, GZ = function(e) {
+ var t = zZ(e, 2), n = t[0], r = t[1], i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 6, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", s = Math.max(i, 2), c = zZ(VZ([n, r]), 2), l = c[0], u = c[1];
if (l === -Infinity || u === Infinity) {
var d = u === Infinity ? [l, ...Array(i - 1).fill(Infinity)] : [...Array(i - 1).fill(-Infinity), u];
return n > r ? d.reverse() : d;
}
- if (l === u) return Pze(l, i, a);
- var f = GZ(l, u, s, a, 0, o === "snap125" ? WZ : UZ), p = f.step, m = f.tickMin, h = f.tickMax, g = zZ(m, h.add(new LZ.default(.1).mul(p)), p);
+ if (l === u) return Fze(l, i, a);
+ var f = WZ(l, u, s, a, 0, o === "snap125" ? UZ : HZ), p = f.step, m = f.tickMin, h = f.tickMax, g = RZ(m, h.add(new IZ.default(.1).mul(p)), p);
return n > r ? g.reverse() : g;
-}, qZ = function(e, t) {
- var n = BZ(e, 2), r = n[0], i = n[1], a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", s = BZ(HZ([r, i]), 2), c = s[0], l = s[1];
+}, KZ = function(e, t) {
+ var n = zZ(e, 2), r = n[0], i = n[1], a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", s = zZ(VZ([r, i]), 2), c = s[0], l = s[1];
if (c === -Infinity || l === Infinity) return [r, i];
if (c === l) return [c];
- var u = o === "snap125" ? WZ : UZ, d = Math.max(t, 2), f = u(new LZ.default(l).sub(c).div(d - 1), a, 0), p = [...zZ(new LZ.default(c), new LZ.default(l), f), l];
+ var u = o === "snap125" ? UZ : HZ, d = Math.max(t, 2), f = u(new IZ.default(l).sub(c).div(d - 1), a, 0), p = [...RZ(new IZ.default(c), new IZ.default(l), f), l];
if (a === !1) {
p = p.map((e) => Math.round(e));
var m = p.length - 1;
m > 0 && p[m] === p[m - 1] && (p = p.slice(0, m));
}
return r > i ? p.reverse() : p;
-}, JZ = (e) => e.rootProps.maxBarSize, YZ = (e) => e.rootProps.barGap, XZ = (e) => e.rootProps.barCategoryGap, ZZ = (e) => e.rootProps.barSize, QZ = (e) => e.rootProps.stackOffset, $Z = (e) => e.rootProps.reverseStackOrder, eQ = (e) => e.options.chartName, tQ = (e) => e.rootProps.syncId, nQ = (e) => e.rootProps.syncMethod, rQ = (e) => e.options.eventEmitter, Fze = (e) => e.rootProps.baseValue, iQ = {
+}, qZ = (e) => e.rootProps.maxBarSize, JZ = (e) => e.rootProps.barGap, YZ = (e) => e.rootProps.barCategoryGap, XZ = (e) => e.rootProps.barSize, ZZ = (e) => e.rootProps.stackOffset, QZ = (e) => e.rootProps.reverseStackOrder, $Z = (e) => e.options.chartName, eQ = (e) => e.rootProps.syncId, tQ = (e) => e.rootProps.syncMethod, nQ = (e) => e.options.eventEmitter, Ize = (e) => e.rootProps.baseValue, rQ = {
grid: -100,
barBackground: -50,
area: 100,
@@ -72241,7 +72241,7 @@ var HZ = (e) => {
cursorLine: 1100,
activeDot: 1200,
label: 2e3
-}, aQ = {
+}, iQ = {
allowDecimals: !1,
allowDuplicatedCategory: !0,
allowDataOverflow: !1,
@@ -72262,8 +72262,8 @@ var HZ = (e) => {
tickLine: !0,
tickSize: 8,
type: "auto",
- zIndex: iQ.axis
-}, oQ = {
+ zIndex: rQ.axis
+}, aQ = {
allowDataOverflow: !1,
allowDecimals: !1,
allowDuplicatedCategory: !0,
@@ -72282,19 +72282,19 @@ var HZ = (e) => {
tickCount: 5,
tickLine: !0,
type: "auto",
- zIndex: iQ.axis
-}, sQ = (e, t) => {
+ zIndex: rQ.axis
+}, oQ = (e, t) => {
if (e && t) return e != null && e.reversed ? [t[1], t[0]] : t;
};
//#endregion
//#region node_modules/recharts/es6/util/getAxisTypeBasedOnLayout.js
-function cQ(e, t, n) {
+function sQ(e, t, n) {
if (n !== "auto") return n;
- if (e != null) return pY(e, t) ? "category" : "number";
+ if (e != null) return fY(e, t) ? "category" : "number";
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/polarAxisSelectors.js
-function lQ(e, t) {
+function cQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -72304,30 +72304,30 @@ function lQ(e, t) {
}
return n;
}
-function uQ(e) {
+function lQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? lQ(Object(n), !0).forEach(function(t) {
- Ize(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : lQ(Object(n)).forEach(function(t) {
+ t % 2 ? cQ(Object(n), !0).forEach(function(t) {
+ Lze(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : cQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Ize(e, t, n) {
- return (t = Lze(t)) in e ? Object.defineProperty(e, t, {
+function Lze(e, t, n) {
+ return (t = Rze(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Lze(e) {
- var t = Rze(e, "string");
+function Rze(e) {
+ var t = zze(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Rze(e, t) {
+function zze(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -72337,77 +72337,77 @@ function Rze(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var dQ = {
- allowDataOverflow: aQ.allowDataOverflow,
- allowDecimals: aQ.allowDecimals,
+var uQ = {
+ allowDataOverflow: iQ.allowDataOverflow,
+ allowDecimals: iQ.allowDecimals,
allowDuplicatedCategory: !1,
dataKey: void 0,
domain: void 0,
- id: aQ.angleAxisId,
+ id: iQ.angleAxisId,
includeHidden: !1,
name: void 0,
- reversed: aQ.reversed,
- scale: aQ.scale,
- tick: aQ.tick,
+ reversed: iQ.reversed,
+ scale: iQ.scale,
+ tick: iQ.tick,
tickCount: void 0,
ticks: void 0,
- type: aQ.type,
+ type: iQ.type,
unit: void 0,
niceTicks: "auto"
-}, fQ = {
- allowDataOverflow: oQ.allowDataOverflow,
- allowDecimals: oQ.allowDecimals,
- allowDuplicatedCategory: oQ.allowDuplicatedCategory,
+}, dQ = {
+ allowDataOverflow: aQ.allowDataOverflow,
+ allowDecimals: aQ.allowDecimals,
+ allowDuplicatedCategory: aQ.allowDuplicatedCategory,
dataKey: void 0,
domain: void 0,
- id: oQ.radiusAxisId,
- includeHidden: oQ.includeHidden,
+ id: aQ.radiusAxisId,
+ includeHidden: aQ.includeHidden,
name: void 0,
- reversed: oQ.reversed,
- scale: oQ.scale,
- tick: oQ.tick,
- tickCount: oQ.tickCount,
+ reversed: aQ.reversed,
+ scale: aQ.scale,
+ tick: aQ.tick,
+ tickCount: aQ.tickCount,
ticks: void 0,
- type: oQ.type,
+ type: aQ.type,
unit: void 0,
niceTicks: "auto"
-}, pQ = Y([(e, t) => {
+}, fQ = Y([(e, t) => {
if (t != null) return e.polarAxis.angleAxis[t];
-}, rX], (e, t) => {
+}, nX], (e, t) => {
if (e != null) return e;
- var n = cQ(t, "angleAxis", dQ.type) ?? "category";
- return uQ(uQ({}, dQ), {}, { type: n });
-}), mQ = Y([(e, t) => e.polarAxis.radiusAxis[t], rX], (e, t) => {
+ var n = sQ(t, "angleAxis", uQ.type) ?? "category";
+ return lQ(lQ({}, uQ), {}, { type: n });
+}), pQ = Y([(e, t) => e.polarAxis.radiusAxis[t], nX], (e, t) => {
if (e != null) return e;
- var n = cQ(t, "radiusAxis", fQ.type) ?? "category";
- return uQ(uQ({}, fQ), {}, { type: n });
-}), hQ = (e) => e.polarOptions, gQ = Y([
+ var n = sQ(t, "radiusAxis", dQ.type) ?? "category";
+ return lQ(lQ({}, dQ), {}, { type: n });
+}), mQ = (e) => e.polarOptions, hQ = Y([
+ TY,
EY,
- DY,
- NY
-], ize), _Q = Y([hQ, gQ], (e, t) => {
- if (e != null) return FW(e.innerRadius, t, 0);
-}), vQ = Y([hQ, gQ], (e, t) => {
- if (e != null) return FW(e.outerRadius, t, t * .8);
-}), yQ = Y([hQ], (e) => e == null ? [0, 0] : [e.startAngle, e.endAngle]), zze = Y([pQ, yQ], sQ), bQ = Y([
+ MY
+], aze), gQ = Y([mQ, hQ], (e, t) => {
+ if (e != null) return PW(e.innerRadius, t, 0);
+}), _Q = Y([mQ, hQ], (e, t) => {
+ if (e != null) return PW(e.outerRadius, t, t * .8);
+}), vQ = Y([mQ], (e) => e == null ? [0, 0] : [e.startAngle, e.endAngle]), Bze = Y([fQ, vQ], oQ), yQ = Y([
+ hQ,
gQ,
- _Q,
- vQ
+ _Q
], (e, t, n) => {
if (e != null && t != null && n != null) return [t, n];
-}), Bze = Y([mQ, bQ], sQ), xQ = Y([
- eX,
- hQ,
+}), Vze = Y([pQ, yQ], oQ), bQ = Y([
+ $Y,
+ mQ,
+ gQ,
_Q,
- vQ,
- EY,
- DY
+ TY,
+ EY
], (e, t, n, r, i, a) => {
if (!(e !== "centric" && e !== "radial" || t == null || n == null || r == null)) {
var o = t.cx, s = t.cy, c = t.startAngle, l = t.endAngle;
return {
- cx: FW(o, i, i / 2),
- cy: FW(s, a, a / 2),
+ cx: PW(o, i, i / 2),
+ cy: PW(s, a, a / 2),
innerRadius: n,
outerRadius: r,
startAngle: c,
@@ -72415,22 +72415,22 @@ var dQ = {
clockWise: !1
};
}
-}), SQ = (e, t) => t, CQ = (e, t, n) => n;
+}), xQ = (e, t) => t, SQ = (e, t, n) => n;
//#endregion
//#region node_modules/recharts/es6/util/stacks/getStackSeriesIdentifier.js
-function wQ(e) {
+function CQ(e) {
return e?.id;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js
-function TQ(e, t, n) {
+function wQ(e, t, n) {
var r = t.chartData, i = r === void 0 ? [] : r, a = n.allowDuplicatedCategory, o = n.dataKey, s = /* @__PURE__ */ new Map();
return e.forEach((e) => {
var t = e.data ?? i;
if (t != null && t.length !== 0) {
- var n = wQ(e);
+ var n = CQ(e);
t.forEach((t, r) => {
- var i = o == null || a ? r : String(fY(t, o, null)), c = fY(t, e.dataKey, 0), l = s.has(i) ? s.get(i) : {};
+ var i = o == null || a ? r : String(dY(t, o, null)), c = dY(t, e.dataKey, 0), l = s.has(i) ? s.get(i) : {};
Object.assign(l, { [n]: c }), s.set(i, l);
});
}
@@ -72438,18 +72438,18 @@ function TQ(e, t, n) {
}
//#endregion
//#region node_modules/recharts/es6/state/types/StackedGraphicalItem.js
-function EQ(e) {
+function TQ(e) {
return "stackId" in e && e.stackId != null && e.dataKey != null;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/numberDomainEqualityCheck.js
-var DQ = (e, t) => e === t ? !0 : e == null || t == null ? !1 : e[0] === t[0] && e[1] === t[1];
+var EQ = (e, t) => e === t ? !0 : e == null || t == null ? !1 : e[0] === t[0] && e[1] === t[1];
//#endregion
//#region node_modules/recharts/es6/state/selectors/arrayEqualityCheck.js
-function OQ(e, t) {
+function DQ(e, t) {
return Array.isArray(e) && Array.isArray(t) && e.length === 0 && t.length === 0 ? !0 : e === t;
}
-function Vze(e, t) {
+function Hze(e, t) {
if (e.length === t.length) {
for (var n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
return !0;
@@ -72458,13 +72458,13 @@ function Vze(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js
-var kQ = (e) => {
- var t = eX(e);
+var OQ = (e) => {
+ var t = $Y(e);
return t === "horizontal" ? "xAxis" : t === "vertical" ? "yAxis" : t === "centric" ? "angleAxis" : "radiusAxis";
-}, AQ = (e) => e.tooltip.settings.axisId;
+}, kQ = (e) => e.tooltip.settings.axisId;
//#endregion
//#region node_modules/recharts/es6/util/scale/RechartsScale.js
-function jQ(e) {
+function AQ(e) {
if (e != null) {
var t = e.ticks, n = e.bandwidth, r = e.range(), i = [Math.min(...r), Math.max(...r)];
return {
@@ -72505,13 +72505,13 @@ function jQ(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineCheckedDomain.js
-var MQ = (e, t) => {
+var jQ = (e, t) => {
if (t != null) switch (e) {
case "linear":
- if (!PZ(t)) {
+ if (!NZ(t)) {
for (var n, r, i = 0; i < t.length; i++) {
var a = t[i];
- cY(a) && ((n === void 0 || a < n) && (n = a), (r === void 0 || a > r) && (r = a));
+ sY(a) && ((n === void 0 || a < n) && (n = a), (r === void 0 || a > r) && (r = a));
}
return n !== void 0 && r !== void 0 ? [n, r] : void 0;
}
@@ -72521,14 +72521,14 @@ var MQ = (e, t) => {
};
//#endregion
//#region node_modules/d3-array/src/ascending.js
-function NQ(e, t) {
+function MQ(e, t) {
return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
}
//#endregion
//#region node_modules/d3-array/src/bisector.js
-function PQ(e) {
+function NQ(e) {
let t = e, n = e;
- e.length === 1 && (t = (t, n) => e(t) - n, n = Hze(e));
+ e.length === 1 && (t = (t, n) => e(t) - n, n = Uze(e));
function r(e, t, r, i) {
for (r ??= 0, i ??= e.length; r < i;) {
let a = r + i >>> 1;
@@ -72554,15 +72554,15 @@ function PQ(e) {
right: i
};
}
-function Hze(e) {
- return (t, n) => NQ(e(t), n);
+function Uze(e) {
+ return (t, n) => MQ(e(t), n);
}
//#endregion
//#region node_modules/d3-array/src/number.js
-function FQ(e) {
+function PQ(e) {
return e === null ? NaN : +e;
}
-function* Uze(e, t) {
+function* Wze(e, t) {
if (t === void 0) for (let t of e) t != null && (t = +t) >= t && (yield t);
else {
let n = -1;
@@ -72571,52 +72571,52 @@ function* Uze(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/bisect.js
-var IQ = PQ(NQ), LQ = IQ.right;
-IQ.left, PQ(FQ).center;
+var FQ = NQ(MQ), IQ = FQ.right;
+FQ.left, NQ(PQ).center;
//#endregion
//#region node_modules/internmap/src/index.js
-var RQ = class extends Map {
- constructor(e, t = Kze) {
+var LQ = class extends Map {
+ constructor(e, t = qze) {
if (super(), Object.defineProperties(this, {
_intern: { value: /* @__PURE__ */ new Map() },
_key: { value: t }
}), e != null) for (let [t, n] of e) this.set(t, n);
}
get(e) {
- return super.get(zQ(this, e));
+ return super.get(RQ(this, e));
}
has(e) {
- return super.has(zQ(this, e));
+ return super.has(RQ(this, e));
}
set(e, t) {
- return super.set(Wze(this, e), t);
+ return super.set(Gze(this, e), t);
}
delete(e) {
- return super.delete(Gze(this, e));
+ return super.delete(Kze(this, e));
}
};
-function zQ({ _intern: e, _key: t }, n) {
+function RQ({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : n;
}
-function Wze({ _intern: e, _key: t }, n) {
+function Gze({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : (e.set(r, n), n);
}
-function Gze({ _intern: e, _key: t }, n) {
+function Kze({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) && (n = e.get(n), e.delete(r)), n;
}
-function Kze(e) {
+function qze(e) {
return typeof e == "object" && e ? e.valueOf() : e;
}
//#endregion
//#region node_modules/d3-array/src/ticks.js
-var BQ = Math.sqrt(50), VQ = Math.sqrt(10), HQ = Math.sqrt(2);
-function UQ(e, t, n) {
+var zQ = Math.sqrt(50), BQ = Math.sqrt(10), VQ = Math.sqrt(2);
+function HQ(e, t, n) {
var r, i = -1, a, o, s;
if (t = +t, e = +e, n = +n, e === t && n > 0) return [e];
- if ((r = t < e) && (a = e, e = t, t = a), (s = WQ(e, t, n)) === 0 || !isFinite(s)) return [];
+ if ((r = t < e) && (a = e, e = t, t = a), (s = UQ(e, t, n)) === 0 || !isFinite(s)) return [];
if (s > 0) {
let n = Math.round(e / s), r = Math.round(t / s);
for (n * s < e && ++n, r * s > t && --r, o = Array(a = r - n + 1); ++i < a;) o[i] = (n + i) * s;
@@ -72627,17 +72627,17 @@ function UQ(e, t, n) {
}
return r && o.reverse(), o;
}
-function WQ(e, t, n) {
+function UQ(e, t, n) {
var r = (t - e) / Math.max(0, n), i = Math.floor(Math.log(r) / Math.LN10), a = r / 10 ** i;
- return i >= 0 ? (a >= BQ ? 10 : a >= VQ ? 5 : a >= HQ ? 2 : 1) * 10 ** i : -(10 ** -i) / (a >= BQ ? 10 : a >= VQ ? 5 : a >= HQ ? 2 : 1);
+ return i >= 0 ? (a >= zQ ? 10 : a >= BQ ? 5 : a >= VQ ? 2 : 1) * 10 ** i : -(10 ** -i) / (a >= zQ ? 10 : a >= BQ ? 5 : a >= VQ ? 2 : 1);
}
-function GQ(e, t, n) {
+function WQ(e, t, n) {
var r = Math.abs(t - e) / Math.max(0, n), i = 10 ** Math.floor(Math.log(r) / Math.LN10), a = r / i;
- return a >= BQ ? i *= 10 : a >= VQ ? i *= 5 : a >= HQ && (i *= 2), t < e ? -i : i;
+ return a >= zQ ? i *= 10 : a >= BQ ? i *= 5 : a >= VQ && (i *= 2), t < e ? -i : i;
}
//#endregion
//#region node_modules/d3-array/src/max.js
-function KQ(e, t) {
+function GQ(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 {
@@ -72648,7 +72648,7 @@ function KQ(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/min.js
-function qQ(e, t) {
+function KQ(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 {
@@ -72659,36 +72659,36 @@ function qQ(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/quickselect.js
-function JQ(e, t, n = 0, r = e.length - 1, i = NQ) {
+function qQ(e, t, n = 0, r = e.length - 1, i = MQ) {
for (; r > n;) {
if (r - n > 600) {
let a = r - n + 1, o = t - n + 1, s = Math.log(a), c = .5 * Math.exp(2 * s / 3), l = .5 * Math.sqrt(s * c * (a - c) / a) * (o - a / 2 < 0 ? -1 : 1);
- JQ(e, t, Math.max(n, Math.floor(t - o * c / a + l)), Math.min(r, Math.floor(t + (a - o) * c / a + l)), i);
+ qQ(e, t, Math.max(n, Math.floor(t - o * c / a + l)), Math.min(r, Math.floor(t + (a - o) * c / a + l)), i);
}
let a = e[t], o = n, s = r;
- for (YQ(e, n, t), i(e[r], a) > 0 && YQ(e, n, r); o < s;) {
- for (YQ(e, o, s), ++o, --s; i(e[o], a) < 0;) ++o;
+ for (JQ(e, n, t), i(e[r], a) > 0 && JQ(e, n, r); o < s;) {
+ for (JQ(e, o, s), ++o, --s; i(e[o], a) < 0;) ++o;
for (; i(e[s], a) > 0;) --s;
}
- i(e[n], a) === 0 ? YQ(e, n, s) : (++s, YQ(e, s, r)), s <= t && (n = s + 1), t <= s && (r = s - 1);
+ i(e[n], a) === 0 ? JQ(e, n, s) : (++s, JQ(e, s, r)), s <= t && (n = s + 1), t <= s && (r = s - 1);
}
return e;
}
-function YQ(e, t, n) {
+function JQ(e, t, n) {
let r = e[t];
e[t] = e[n], e[n] = r;
}
//#endregion
//#region node_modules/d3-array/src/quantile.js
-function qze(e, t, n) {
- if (e = Float64Array.from(Uze(e, n)), r = e.length) {
- if ((t = +t) <= 0 || r < 2) return qQ(e);
- if (t >= 1) return KQ(e);
- var r, i = (r - 1) * t, a = Math.floor(i), o = KQ(JQ(e, a).subarray(0, a + 1));
- return o + (qQ(e.subarray(a + 1)) - o) * (i - a);
+function Jze(e, t, n) {
+ if (e = Float64Array.from(Wze(e, n)), r = e.length) {
+ if ((t = +t) <= 0 || r < 2) return KQ(e);
+ if (t >= 1) return GQ(e);
+ var r, i = (r - 1) * t, a = Math.floor(i), o = GQ(qQ(e, a).subarray(0, a + 1));
+ return o + (KQ(e.subarray(a + 1)) - o) * (i - a);
}
}
-function Jze(e, t, n = FQ) {
+function Yze(e, t, n = PQ) {
if (r = e.length) {
if ((t = +t) <= 0 || r < 2) return +n(e[0], 0, e);
if (t >= 1) return +n(e[r - 1], r - 1, e);
@@ -72698,14 +72698,14 @@ function Jze(e, t, n = FQ) {
}
//#endregion
//#region node_modules/d3-array/src/range.js
-function Yze(e, t, n) {
+function Xze(e, t, n) {
e = +e, t = +t, n = (i = arguments.length) < 2 ? (t = e, e = 0, 1) : i < 3 ? 1 : +n;
for (var r = -1, i = Math.max(0, Math.ceil((t - e) / n)) | 0, a = Array(i); ++r < i;) a[r] = e + r * n;
return a;
}
//#endregion
//#region node_modules/d3-array/src/sum.js
-function XQ(e, t) {
+function YQ(e, t) {
let n = 0;
if (t === void 0) for (let t of e) (t = +t) && (n += t);
else {
@@ -72716,7 +72716,7 @@ function XQ(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/init.js
-function ZQ(e, t) {
+function XQ(e, t) {
switch (arguments.length) {
case 0: break;
case 1:
@@ -72726,7 +72726,7 @@ function ZQ(e, t) {
}
return this;
}
-function QQ(e, t) {
+function ZQ(e, t) {
switch (arguments.length) {
case 0: break;
case 1:
@@ -72738,20 +72738,20 @@ function QQ(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/ordinal.js
-var $Q = Symbol("implicit");
-function e$() {
- var e = new RQ(), t = [], n = [], r = $Q;
+var QQ = Symbol("implicit");
+function $Q() {
+ var e = new LQ(), t = [], n = [], r = QQ;
function i(i) {
let a = e.get(i);
if (a === void 0) {
- if (r !== $Q) return r;
+ if (r !== QQ) return r;
e.set(i, a = t.push(i) - 1);
}
return n[a % n.length];
}
return i.domain = function(n) {
if (!arguments.length) return t.slice();
- t = [], e = new RQ();
+ t = [], e = new LQ();
for (let r of n) e.has(r) || e.set(r, t.push(r) - 1);
return i;
}, i.range = function(e) {
@@ -72759,18 +72759,18 @@ function e$() {
}, i.unknown = function(e) {
return arguments.length ? (r = e, i) : r;
}, i.copy = function() {
- return e$(t, n).unknown(r);
- }, ZQ.apply(i, arguments), i;
+ return $Q(t, n).unknown(r);
+ }, XQ.apply(i, arguments), i;
}
//#endregion
//#region node_modules/d3-scale/src/band.js
-function t$() {
- var e = e$().unknown(void 0), t = e.domain, n = e.range, r = 0, i = 1, a, o, s = !1, c = 0, l = 0, u = .5;
+function e$() {
+ var e = $Q().unknown(void 0), t = e.domain, n = e.range, r = 0, i = 1, a, o, s = !1, c = 0, l = 0, u = .5;
delete e.unknown;
function d() {
var e = t().length, d = i < r, f = d ? i : r, p = d ? r : i;
a = (p - f) / Math.max(1, e - c + l * 2), s && (a = Math.floor(a)), f += (p - f - a * (e - c)) * u, o = a * (1 - c), s && (f = Math.round(f), o = Math.round(o));
- var m = Yze(e).map(function(e) {
+ var m = Xze(e).map(function(e) {
return f + a * e;
});
return n(d ? m.reverse() : m);
@@ -72796,32 +72796,32 @@ function t$() {
}, e.align = function(e) {
return arguments.length ? (u = Math.max(0, Math.min(1, e)), d()) : u;
}, e.copy = function() {
- return t$(t(), [r, i]).round(s).paddingInner(c).paddingOuter(l).align(u);
- }, ZQ.apply(d(), arguments);
+ return e$(t(), [r, i]).round(s).paddingInner(c).paddingOuter(l).align(u);
+ }, XQ.apply(d(), arguments);
}
-function n$(e) {
+function t$(e) {
var t = e.copy;
return e.padding = e.paddingOuter, delete e.paddingInner, delete e.paddingOuter, e.copy = function() {
- return n$(t());
+ return t$(t());
}, e;
}
-function Xze() {
- return n$(t$.apply(null, arguments).paddingInner(1));
+function Zze() {
+ return t$(e$.apply(null, arguments).paddingInner(1));
}
//#endregion
//#region node_modules/d3-color/src/define.js
-function r$(e, t, n) {
+function n$(e, t, n) {
e.prototype = t.prototype = n, n.constructor = e;
}
-function i$(e, t) {
+function r$(e, t) {
var n = Object.create(e.prototype);
for (var r in t) n[r] = t[r];
return n;
}
//#endregion
//#region node_modules/d3-color/src/color.js
-function a$() {}
-var o$ = .7, s$ = 1 / o$, c$ = "\\s*([+-]?\\d+)\\s*", l$ = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", u$ = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Zze = /^#([0-9a-f]{3,8})$/, Qze = RegExp(`^rgb\\(${c$},${c$},${c$}\\)$`), $ze = RegExp(`^rgb\\(${u$},${u$},${u$}\\)$`), eBe = RegExp(`^rgba\\(${c$},${c$},${c$},${l$}\\)$`), tBe = RegExp(`^rgba\\(${u$},${u$},${u$},${l$}\\)$`), nBe = RegExp(`^hsl\\(${l$},${u$},${u$}\\)$`), rBe = RegExp(`^hsla\\(${l$},${u$},${u$},${l$}\\)$`), d$ = {
+function i$() {}
+var a$ = .7, o$ = 1 / a$, s$ = "\\s*([+-]?\\d+)\\s*", c$ = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", l$ = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Qze = /^#([0-9a-f]{3,8})$/, $ze = RegExp(`^rgb\\(${s$},${s$},${s$}\\)$`), eBe = RegExp(`^rgb\\(${l$},${l$},${l$}\\)$`), tBe = RegExp(`^rgba\\(${s$},${s$},${s$},${c$}\\)$`), nBe = RegExp(`^rgba\\(${l$},${l$},${l$},${c$}\\)$`), rBe = RegExp(`^hsl\\(${c$},${l$},${l$}\\)$`), iBe = RegExp(`^hsla\\(${c$},${l$},${l$},${c$}\\)$`), u$ = {
aliceblue: 15792383,
antiquewhite: 16444375,
aqua: 65535,
@@ -72971,35 +72971,35 @@ var o$ = .7, s$ = 1 / o$, c$ = "\\s*([+-]?\\d+)\\s*", l$ = "\\s*([+-]?(?:\\d*\\.
yellow: 16776960,
yellowgreen: 10145074
};
-r$(a$, p$, {
+n$(i$, p$, {
copy(e) {
return Object.assign(new this.constructor(), this, e);
},
displayable() {
return this.rgb().displayable();
},
- hex: f$,
- formatHex: f$,
- formatHex8: iBe,
- formatHsl: aBe,
- formatRgb: oBe,
- toString: oBe
+ hex: d$,
+ formatHex: d$,
+ formatHex8: aBe,
+ formatHsl: oBe,
+ formatRgb: f$,
+ toString: f$
});
-function f$() {
+function d$() {
return this.rgb().formatHex();
}
-function iBe() {
+function aBe() {
return this.rgb().formatHex8();
}
-function aBe() {
+function oBe() {
return w$(this).formatHsl();
}
-function oBe() {
+function f$() {
return this.rgb().formatRgb();
}
function p$(e) {
var t, n;
- return e = (e + "").trim().toLowerCase(), (t = Zze.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? m$(t) : n === 3 ? new _$(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? h$(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? h$(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = Qze.exec(e)) ? new _$(t[1], t[2], t[3], 1) : (t = $ze.exec(e)) ? new _$(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = eBe.exec(e)) ? h$(t[1], t[2], t[3], t[4]) : (t = tBe.exec(e)) ? h$(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = nBe.exec(e)) ? C$(t[1], t[2] / 100, t[3] / 100, 1) : (t = rBe.exec(e)) ? C$(t[1], t[2] / 100, t[3] / 100, t[4]) : d$.hasOwnProperty(e) ? m$(d$[e]) : e === "transparent" ? new _$(NaN, NaN, NaN, 0) : null;
+ return e = (e + "").trim().toLowerCase(), (t = Qze.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? m$(t) : n === 3 ? new _$(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? h$(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? h$(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = $ze.exec(e)) ? new _$(t[1], t[2], t[3], 1) : (t = eBe.exec(e)) ? new _$(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = tBe.exec(e)) ? h$(t[1], t[2], t[3], t[4]) : (t = nBe.exec(e)) ? h$(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = rBe.exec(e)) ? C$(t[1], t[2] / 100, t[3] / 100, 1) : (t = iBe.exec(e)) ? C$(t[1], t[2] / 100, t[3] / 100, t[4]) : u$.hasOwnProperty(e) ? m$(u$[e]) : e === "transparent" ? new _$(NaN, NaN, NaN, 0) : null;
}
function m$(e) {
return new _$(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
@@ -73008,7 +73008,7 @@ function h$(e, t, n, r) {
return r <= 0 && (e = t = n = NaN), new _$(e, t, n, r);
}
function sBe(e) {
- return e instanceof a$ || (e = p$(e)), e ? (e = e.rgb(), new _$(e.r, e.g, e.b, e.opacity)) : new _$();
+ return e instanceof i$ || (e = p$(e)), e ? (e = e.rgb(), new _$(e.r, e.g, e.b, e.opacity)) : new _$();
}
function g$(e, t, n, r) {
return arguments.length === 1 ? sBe(e) : new _$(e, t, n, r ?? 1);
@@ -73016,12 +73016,12 @@ function g$(e, t, n, r) {
function _$(e, t, n, r) {
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
}
-r$(_$, g$, i$(a$, {
+n$(_$, g$, r$(i$, {
brighter(e) {
- return e = e == null ? s$ : s$ ** +e, new _$(this.r * e, this.g * e, this.b * e, this.opacity);
+ return e = e == null ? o$ : o$ ** +e, new _$(this.r * e, this.g * e, this.b * e, this.opacity);
},
darker(e) {
- return e = e == null ? o$ : o$ ** +e, new _$(this.r * e, this.g * e, this.b * e, this.opacity);
+ return e = e == null ? a$ : a$ ** +e, new _$(this.r * e, this.g * e, this.b * e, this.opacity);
},
rgb() {
return this;
@@ -73062,7 +73062,7 @@ function C$(e, t, n, r) {
}
function w$(e) {
if (e instanceof T$) return new T$(e.h, e.s, e.l, e.opacity);
- if (e instanceof a$ || (e = p$(e)), !e) return new T$();
+ if (e instanceof i$ || (e = p$(e)), !e) return new T$();
if (e instanceof T$) return e;
e = e.rgb();
var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.min(t, n, r), a = Math.max(t, n, r), o = NaN, s = a - i, c = (a + i) / 2;
@@ -73074,12 +73074,12 @@ function lBe(e, t, n, r) {
function T$(e, t, n, r) {
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
}
-r$(T$, lBe, i$(a$, {
+n$(T$, lBe, r$(i$, {
brighter(e) {
- return e = e == null ? s$ : s$ ** +e, new T$(this.h, this.s, this.l * e, this.opacity);
+ return e = e == null ? o$ : o$ ** +e, new T$(this.h, this.s, this.l * e, this.opacity);
},
darker(e) {
- return e = e == null ? o$ : o$ ** +e, new T$(this.h, this.s, this.l * e, this.opacity);
+ return e = e == null ? a$ : a$ ** +e, new T$(this.h, this.s, this.l * e, this.opacity);
},
rgb() {
var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < .5 ? n : 1 - n) * t, i = 2 * n - r;
@@ -73275,7 +73275,7 @@ function TBe(e, t, n) {
var r = Math.min(e.length, t.length) - 1, i = Array(r), a = Array(r), o = -1;
for (e[r] < e[0] && (e = e.slice().reverse(), t = t.slice().reverse()); ++o < r;) i[o] = B$(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
return function(t) {
- var n = LQ(e, t, 1, r) - 1;
+ var n = IQ(e, t, 1, r) - 1;
return a[n](i[n](t));
};
}
@@ -73527,7 +73527,7 @@ function IBe(e, t) {
//#endregion
//#region node_modules/d3-scale/src/tickFormat.js
function r1(e, t, n, r) {
- var i = GQ(e, t, n), a;
+ var i = WQ(e, t, n), a;
switch (r = K$(r ?? ",f"), r.type) {
case "s":
var o = Math.max(Math.abs(e), Math.abs(t));
@@ -73550,7 +73550,7 @@ function i1(e) {
var t = e.domain;
return e.ticks = function(e) {
var n = t();
- return UQ(n[0], n[n.length - 1], e ?? 10);
+ return HQ(n[0], n[n.length - 1], e ?? 10);
}, e.tickFormat = function(e, n) {
var r = t();
return r1(r[0], r[r.length - 1], e ?? 10, n);
@@ -73558,7 +73558,7 @@ function i1(e) {
n ??= 10;
var r = t(), i = 0, a = r.length - 1, o = r[i], s = r[a], c, l, u = 10;
for (s < o && (l = o, o = s, s = l, l = i, i = a, a = l); u-- > 0;) {
- if (l = WQ(o, s, n), l === c) return r[i] = o, r[a] = s, t(r);
+ if (l = UQ(o, s, n), l === c) return r[i] = o, r[a] = s, t(r);
if (l > 0) o = Math.floor(o / l) * l, s = Math.ceil(s / l) * l;
else if (l < 0) o = Math.ceil(o * l) / l, s = Math.floor(s * l) / l;
else break;
@@ -73571,7 +73571,7 @@ function a1() {
var e = U$();
return e.copy = function() {
return V$(e, a1());
- }, ZQ.apply(e, arguments), i1(e);
+ }, XQ.apply(e, arguments), i1(e);
}
//#endregion
//#region node_modules/d3-scale/src/identity.js
@@ -73644,8 +73644,8 @@ function d1(e) {
if (f > s) break;
m.push(f);
}
- m.length * 2 < p && (m = UQ(o, s, p));
- } else m = UQ(l, u, Math.min(u - l, p)).map(a);
+ m.length * 2 < p && (m = HQ(o, s, p));
+ } else m = HQ(l, u, Math.min(u - l, p)).map(a);
return c ? m.reverse() : m;
}, t.tickFormat = (e, n) => {
if (e ??= 10, n ??= r === 10 ? "s" : ",", typeof n != "function" && (!(r % 1) && (n = K$(n)).precision == null && (n.trim = !0), n = t1(n)), e === Infinity) return n;
@@ -73661,7 +73661,7 @@ function d1(e) {
}
function f1() {
let e = d1(H$()).domain([1, 10]);
- return e.copy = () => V$(e, f1()).base(e.base()), ZQ.apply(e, arguments), e;
+ return e.copy = () => V$(e, f1()).base(e.base()), XQ.apply(e, arguments), e;
}
//#endregion
//#region node_modules/d3-scale/src/symlog.js
@@ -73685,7 +73685,7 @@ function g1() {
var e = h1(H$());
return e.copy = function() {
return V$(e, g1()).constant(e.constant());
- }, ZQ.apply(e, arguments);
+ }, XQ.apply(e, arguments);
}
//#endregion
//#region node_modules/d3-scale/src/pow.js
@@ -73713,7 +73713,7 @@ function y1() {
var e = v1(H$());
return e.copy = function() {
return V$(e, y1()).exponent(e.exponent());
- }, ZQ.apply(e, arguments), e;
+ }, XQ.apply(e, arguments), e;
}
function WBe() {
return y1.apply(null, arguments).exponent(.5);
@@ -73748,7 +73748,7 @@ function x1() {
return arguments.length ? (r = e, i) : r;
}, i.copy = function() {
return x1(e.domain(), t).round(n).clamp(e.clamp()).unknown(r);
- }, ZQ.apply(i, arguments), i1(i);
+ }, XQ.apply(i, arguments), i1(i);
}
//#endregion
//#region node_modules/d3-scale/src/quantile.js
@@ -73756,11 +73756,11 @@ function S1() {
var e = [], t = [], n = [], r;
function i() {
var r = 0, i = Math.max(1, t.length);
- for (n = Array(i - 1); ++r < i;) n[r - 1] = Jze(e, r / i);
+ for (n = Array(i - 1); ++r < i;) n[r - 1] = Yze(e, r / i);
return a;
}
function a(e) {
- return e == null || isNaN(e = +e) ? r : t[LQ(n, e)];
+ return e == null || isNaN(e = +e) ? r : t[IQ(n, e)];
}
return a.invertExtent = function(r) {
var i = t.indexOf(r);
@@ -73769,7 +73769,7 @@ function S1() {
if (!arguments.length) return e.slice();
e = [];
for (let n of t) n != null && !isNaN(n = +n) && e.push(n);
- return e.sort(NQ), i();
+ return e.sort(MQ), i();
}, a.range = function(e) {
return arguments.length ? (t = Array.from(e), i()) : t.slice();
}, a.unknown = function(e) {
@@ -73778,14 +73778,14 @@ function S1() {
return n.slice();
}, a.copy = function() {
return S1().domain(e).range(t).unknown(r);
- }, ZQ.apply(a, arguments);
+ }, XQ.apply(a, arguments);
}
//#endregion
//#region node_modules/d3-scale/src/quantize.js
function C1() {
var e = 0, t = 1, n = 1, r = [.5], i = [0, 1], a;
function o(e) {
- return e != null && e <= e ? i[LQ(r, e, 0, n)] : a;
+ return e != null && e <= e ? i[IQ(r, e, 0, n)] : a;
}
function s() {
var i = -1;
@@ -73805,14 +73805,14 @@ function C1() {
return r.slice();
}, o.copy = function() {
return C1().domain([e, t]).range(i).unknown(a);
- }, ZQ.apply(i1(o), arguments);
+ }, XQ.apply(i1(o), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/threshold.js
function w1() {
var e = [.5], t = [0, 1], n, r = 1;
function i(i) {
- return i != null && i <= i ? t[LQ(e, i, 0, r)] : n;
+ return i != null && i <= i ? t[IQ(e, i, 0, r)] : n;
}
return i.domain = function(n) {
return arguments.length ? (e = Array.from(n), r = Math.min(e.length, t.length - 1), i) : e.slice();
@@ -73825,7 +73825,7 @@ function w1() {
return arguments.length ? (n = e, i) : n;
}, i.copy = function() {
return w1().domain(e).range(t).unknown(n);
- }, ZQ.apply(i, arguments);
+ }, XQ.apply(i, arguments);
}
//#endregion
//#region node_modules/d3-time/src/interval.js
@@ -74074,9 +74074,9 @@ function n0(e, t, n, r, i, a) {
return r ? a.reverse() : a;
}
function c(t, n, r) {
- let i = Math.abs(n - t) / r, a = PQ(([, , e]) => e).right(o, i);
- if (a === o.length) return e.every(GQ(t / F1, n / F1, r));
- if (a === 0) return O1.every(Math.max(GQ(t, n, r), 1));
+ let i = Math.abs(n - t) / r, a = NQ(([, , e]) => e).right(o, i);
+ if (a === o.length) return e.every(WQ(t / F1, n / F1, r));
+ if (a === 0) return O1.every(Math.max(WQ(t, n, r), 1));
let [s, c] = o[i / o[a - 1][2] < o[a][2] / i ? a - 1 : a];
return s.every(c);
}
@@ -74655,12 +74655,12 @@ function D0(e, t, n, r, i, a, o, s, c, l) {
}, u;
}
function sHe() {
- return ZQ.apply(D0(nVe, rVe, e0, Q1, G1, V1, z1, L1, I1, T0).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
+ return XQ.apply(D0(nVe, rVe, e0, Q1, G1, V1, z1, L1, I1, T0).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/utcTime.js
function cHe() {
- return ZQ.apply(D0(eVe, tVe, t0, $1, Y1, H1, B1, R1, I1, E0).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
+ return XQ.apply(D0(eVe, tVe, t0, $1, Y1, H1, B1, R1, I1, E0).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/sequential.js
@@ -74695,25 +74695,25 @@ function A0() {
var e = i1(O0()(z$));
return e.copy = function() {
return k0(e, A0());
- }, QQ.apply(e, arguments);
+ }, ZQ.apply(e, arguments);
}
function j0() {
var e = d1(O0()).domain([1, 10]);
return e.copy = function() {
return k0(e, j0()).base(e.base());
- }, QQ.apply(e, arguments);
+ }, ZQ.apply(e, arguments);
}
function M0() {
var e = h1(O0());
return e.copy = function() {
return k0(e, M0()).constant(e.constant());
- }, QQ.apply(e, arguments);
+ }, ZQ.apply(e, arguments);
}
function N0() {
var e = v1(O0());
return e.copy = function() {
return k0(e, N0()).exponent(e.exponent());
- }, QQ.apply(e, arguments);
+ }, ZQ.apply(e, arguments);
}
function lHe() {
return N0.apply(null, arguments).exponent(.5);
@@ -74723,22 +74723,22 @@ function lHe() {
function P0() {
var e = [], t = z$;
function n(n) {
- if (n != null && !isNaN(n = +n)) return t((LQ(e, n, 1) - 1) / (e.length - 1));
+ if (n != null && !isNaN(n = +n)) return t((IQ(e, n, 1) - 1) / (e.length - 1));
}
return n.domain = function(t) {
if (!arguments.length) return e.slice();
e = [];
for (let n of t) n != null && !isNaN(n = +n) && e.push(n);
- return e.sort(NQ), n;
+ return e.sort(MQ), n;
}, n.interpolator = function(e) {
return arguments.length ? (t = e, n) : t;
}, n.range = function() {
return e.map((n, r) => t(r / (e.length - 1)));
}, n.quantiles = function(t) {
- return Array.from({ length: t + 1 }, (n, r) => qze(e, r / t));
+ return Array.from({ length: t + 1 }, (n, r) => Jze(e, r / t));
}, n.copy = function() {
return P0(t).domain(e);
- }, QQ.apply(n, arguments);
+ }, ZQ.apply(n, arguments);
}
//#endregion
//#region node_modules/d3-scale/src/diverging.js
@@ -74782,7 +74782,7 @@ function I0() {
var e = i1(F0()(z$));
return e.copy = function() {
return k0(e, I0());
- }, QQ.apply(e, arguments);
+ }, ZQ.apply(e, arguments);
}
function L0() {
var e = d1(F0()).domain([
@@ -74792,38 +74792,38 @@ function L0() {
]);
return e.copy = function() {
return k0(e, L0()).base(e.base());
- }, QQ.apply(e, arguments);
+ }, ZQ.apply(e, arguments);
}
function R0() {
var e = h1(F0());
return e.copy = function() {
return k0(e, R0()).constant(e.constant());
- }, QQ.apply(e, arguments);
+ }, ZQ.apply(e, arguments);
}
function z0() {
var e = v1(F0());
return e.copy = function() {
return k0(e, z0()).exponent(e.exponent());
- }, QQ.apply(e, arguments);
+ }, ZQ.apply(e, arguments);
}
function uHe() {
return z0.apply(null, arguments).exponent(.5);
}
//#endregion
//#region node_modules/victory-vendor/es/d3-scale.js
-var dHe = /* @__PURE__ */ s({
- scaleBand: () => t$,
+var B0 = /* @__PURE__ */ s({
+ scaleBand: () => e$,
scaleDiverging: () => I0,
scaleDivergingLog: () => L0,
scaleDivergingPow: () => z0,
scaleDivergingSqrt: () => uHe,
scaleDivergingSymlog: () => R0,
scaleIdentity: () => o1,
- scaleImplicit: () => $Q,
+ scaleImplicit: () => QQ,
scaleLinear: () => a1,
scaleLog: () => f1,
- scaleOrdinal: () => e$,
- scalePoint: () => Xze,
+ scaleOrdinal: () => $Q,
+ scalePoint: () => Zze,
scalePow: () => y1,
scaleQuantile: () => S1,
scaleQuantize: () => C1,
@@ -74843,51 +74843,51 @@ var dHe = /* @__PURE__ */ s({
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineConfiguredScale.js
-function fHe(e) {
- var t = dHe;
+function dHe(e) {
+ var t = B0;
if (e in t && typeof t[e] == "function") return t[e]();
- var n = `scale${BW(e)}`;
+ var n = `scale${zW(e)}`;
if (n in t && typeof t[n] == "function") return t[n]();
}
-function pHe(e, t, n) {
+function fHe(e, t, n) {
if (typeof e == "function") return e.copy().domain(t).range(n);
if (e != null) {
- var r = fHe(e);
+ var r = dHe(e);
if (r != null) return r.domain(t).range(n), r;
}
}
-function B0(e, t, n, r) {
- if (n != null && r != null) return typeof e.scale == "function" ? pHe(e.scale, n, r) : pHe(t, n, r);
+function V0(e, t, n, r) {
+ if (n != null && r != null) return typeof e.scale == "function" ? fHe(e.scale, n, r) : fHe(t, n, r);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineRealScaleType.js
-function mHe(e) {
- return `scale${BW(e)}`;
+function pHe(e) {
+ return `scale${zW(e)}`;
}
-function hHe(e) {
- return mHe(e) in dHe;
+function mHe(e) {
+ return pHe(e) in B0;
}
-var gHe = (e, t, n) => {
+var hHe = (e, t, n) => {
if (e != null) {
var r = e.scale, i = e.type;
if (r === "auto") return i === "category" && n && (n.indexOf("LineChart") >= 0 || n.indexOf("AreaChart") >= 0 || n.indexOf("ComposedChart") >= 0 && !t) ? "point" : i === "category" ? "band" : "linear";
- if (typeof r == "string") return hHe(r) ? r : "point";
+ if (typeof r == "string") return mHe(r) ? r : "point";
}
};
//#endregion
//#region node_modules/recharts/es6/util/scale/createCategoricalInverse.js
-function _He(e, t) {
+function gHe(e, t) {
for (var n = 0, r = e.length, i = e[0] < e[e.length - 1]; n < r;) {
var a = Math.floor((n + r) / 2);
(i ? e[a] < t : e[a] > t) ? n = a + 1 : r = a;
}
return n;
}
-function vHe(e, t) {
+function _He(e, t) {
if (e) {
var n = t ?? e.domain(), r = n.map((t) => e(t) ?? 0), i = e.range();
if (!(n.length === 0 || i.length < 2)) return (e) => {
- var t = _He(r, e);
+ var t = gHe(r, e);
if (t <= 0) return n[0];
if (t >= n.length) return n[n.length - 1];
var i = r[t - 1] ?? 0, a = r[t] ?? 0;
@@ -74897,12 +74897,12 @@ function vHe(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineInverseScaleFunction.js
-function yHe(e) {
- if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : vHe(e, void 0);
+function vHe(e) {
+ if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : _He(e, void 0);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/axisSelectors.js
-function bHe(e, t) {
+function yHe(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -74912,30 +74912,30 @@ function bHe(e, t) {
}
return n;
}
-function V0(e) {
+function H0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? bHe(Object(n), !0).forEach(function(t) {
- xHe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : bHe(Object(n)).forEach(function(t) {
+ t % 2 ? yHe(Object(n), !0).forEach(function(t) {
+ bHe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : yHe(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function xHe(e, t, n) {
- return (t = SHe(t)) in e ? Object.defineProperty(e, t, {
+function bHe(e, t, n) {
+ return (t = xHe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function SHe(e) {
- var t = CHe(e, "string");
+function xHe(e) {
+ var t = SHe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function CHe(e, t) {
+function SHe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -74945,25 +74945,25 @@ function CHe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function wHe(e, t) {
- return kHe(e) || OHe(e, t) || EHe(e, t) || THe();
+function CHe(e, t) {
+ return OHe(e) || DHe(e, t) || THe(e, t) || wHe();
}
-function THe() {
+function wHe() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function EHe(e, t) {
+function THe(e, t) {
if (e) {
- if (typeof e == "string") return DHe(e, t);
+ if (typeof e == "string") return EHe(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? DHe(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? EHe(e, t) : void 0;
}
}
-function DHe(e, t) {
+function EHe(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function OHe(e, t) {
+function DHe(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -74984,10 +74984,10 @@ function OHe(e, t) {
return s;
}
}
-function kHe(e) {
+function OHe(e) {
if (Array.isArray(e)) return e;
}
-var H0 = [0, "auto"], U0 = {
+var U0 = [0, "auto"], W0 = {
allowDataOverflow: !1,
allowDecimals: !0,
allowDuplicatedCategory: !0,
@@ -75016,13 +75016,13 @@ var H0 = [0, "auto"], U0 = {
type: "category",
unit: void 0,
niceTicks: "auto"
-}, AHe = (e, t) => e.cartesianAxis.xAxis[t], W0 = (e, t) => AHe(e, t) ?? U0, G0 = {
+}, kHe = (e, t) => e.cartesianAxis.xAxis[t], G0 = (e, t) => kHe(e, t) ?? W0, K0 = {
allowDataOverflow: !1,
allowDecimals: !0,
allowDuplicatedCategory: !0,
angle: 0,
dataKey: void 0,
- domain: H0,
+ domain: U0,
hide: !0,
id: 0,
includeHidden: !1,
@@ -75045,7 +75045,7 @@ var H0 = [0, "auto"], U0 = {
unit: void 0,
niceTicks: "auto",
width: 60
-}, jHe = (e, t) => e.cartesianAxis.yAxis[t], K0 = (e, t) => jHe(e, t) ?? G0, MHe = {
+}, AHe = (e, t) => e.cartesianAxis.yAxis[t], q0 = (e, t) => AHe(e, t) ?? K0, jHe = {
domain: [0, "auto"],
includeHidden: !1,
reversed: !1,
@@ -75058,31 +75058,31 @@ var H0 = [0, "auto"], U0 = {
scale: "auto",
type: "number",
unit: ""
-}, q0 = (e, t) => e.cartesianAxis.zAxis[t] ?? MHe, J0 = (e, t, n) => {
+}, J0 = (e, t) => e.cartesianAxis.zAxis[t] ?? jHe, Y0 = (e, t, n) => {
switch (t) {
- case "xAxis": return W0(e, n);
- case "yAxis": return K0(e, n);
- case "zAxis": return q0(e, n);
- case "angleAxis": return pQ(e, n);
- case "radiusAxis": return mQ(e, n);
+ case "xAxis": return G0(e, n);
+ case "yAxis": return q0(e, n);
+ case "zAxis": return J0(e, n);
+ case "angleAxis": return fQ(e, n);
+ case "radiusAxis": return pQ(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, NHe = (e, t, n) => {
+}, MHe = (e, t, n) => {
switch (t) {
- case "xAxis": return W0(e, n);
- case "yAxis": return K0(e, n);
+ case "xAxis": return G0(e, n);
+ case "yAxis": return q0(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, Y0 = (e, t, n) => {
+}, X0 = (e, t, n) => {
switch (t) {
- case "xAxis": return W0(e, n);
- case "yAxis": return K0(e, n);
- case "angleAxis": return pQ(e, n);
- case "radiusAxis": return mQ(e, n);
+ case "xAxis": return G0(e, n);
+ case "yAxis": return q0(e, n);
+ case "angleAxis": return fQ(e, n);
+ case "radiusAxis": return pQ(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, PHe = (e) => e.graphicalItems.cartesianItems.some((e) => e.type === "bar") || e.graphicalItems.polarItems.some((e) => e.type === "radialBar");
-function X0(e, t) {
+}, NHe = (e) => e.graphicalItems.cartesianItems.some((e) => e.type === "bar") || e.graphicalItems.polarItems.some((e) => e.type === "radialBar");
+function Z0(e, t) {
return (n) => {
switch (e) {
case "xAxis": return "xAxisId" in n && n.xAxisId === t;
@@ -75094,254 +75094,254 @@ function X0(e, t) {
}
};
}
-var Z0 = (e) => e.graphicalItems.cartesianItems, FHe = Y([SQ, CQ], X0), Q0 = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), $0 = Y([
- Z0,
- J0,
- FHe
-], Q0, { memoizeOptions: { resultEqualityCheck: OQ } }), IHe = Y([$0], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(EQ)), LHe = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), RHe = Y([$0], LHe), e2 = (e) => e.map((e) => e.data).filter(Boolean).flat(1), zHe = Y([$0], (e) => e.some((e) => !e.data)), BHe = Y([$0], e2, { memoizeOptions: { resultEqualityCheck: OQ } }), t2 = (e, t) => {
+var Q0 = (e) => e.graphicalItems.cartesianItems, PHe = Y([xQ, SQ], Z0), $0 = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), e2 = Y([
+ Q0,
+ Y0,
+ PHe
+], $0, { memoizeOptions: { resultEqualityCheck: DQ } }), FHe = Y([e2], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(TQ)), IHe = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), LHe = Y([e2], IHe), t2 = (e) => e.map((e) => e.data).filter(Boolean).flat(1), RHe = Y([e2], (e) => e.some((e) => !e.data)), zHe = Y([e2], t2, { memoizeOptions: { resultEqualityCheck: DQ } }), n2 = (e, t) => {
var n = t.chartData, r = n === void 0 ? [] : n, i = t.dataStartIndex, a = t.dataEndIndex;
return e.length > 0 ? e : r.slice(i, a + 1);
-}, n2 = Y([BHe, AZ], t2), VHe = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: fY(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: fY(e, t.dataKey) })), HHe = (e, t, n, r, i, a) => {
- var o = r.chartData, s = o === void 0 ? [] : o, c = r.dataStartIndex, l = r.dataEndIndex, u = VHe(e, t, n);
- return i && t?.dataKey != null && a.length > 0 ? [...s.slice(c, l + 1).map((e) => ({ value: fY(e, t.dataKey) })).filter((e) => e.value != null), ...u] : u;
-}, r2 = Y([
- n2,
- J0,
- $0,
- AZ,
- zHe,
- BHe
-], HHe);
-function i2(e) {
- if (NW(e) || e instanceof Date) {
+}, r2 = Y([zHe, kZ], n2), BHe = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: dY(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: dY(e, t.dataKey) })), VHe = (e, t, n, r, i, a) => {
+ var o = r.chartData, s = o === void 0 ? [] : o, c = r.dataStartIndex, l = r.dataEndIndex, u = BHe(e, t, n);
+ return i && t?.dataKey != null && a.length > 0 ? [...s.slice(c, l + 1).map((e) => ({ value: dY(e, t.dataKey) })).filter((e) => e.value != null), ...u] : u;
+}, i2 = Y([
+ r2,
+ Y0,
+ e2,
+ kZ,
+ RHe,
+ zHe
+], VHe);
+function a2(e) {
+ if (MW(e) || e instanceof Date) {
var t = Number(e);
- if (cY(t)) return t;
+ if (sY(t)) return t;
}
}
-function UHe(e) {
+function HHe(e) {
if (Array.isArray(e)) {
- var t = [i2(e[0]), i2(e[1])];
- return PZ(t) ? t : void 0;
+ var t = [a2(e[0]), a2(e[1])];
+ return NZ(t) ? t : void 0;
}
- var n = i2(e);
+ var n = a2(e);
if (n != null) return [n, n];
}
-function a2(e) {
- return e.map(i2).filter(VW);
+function o2(e) {
+ return e.map(a2).filter(BW);
}
-function WHe(e, t) {
- var n = i2(e), r = i2(t);
+function UHe(e, t) {
+ var n = a2(e), r = a2(t);
return n == null && r == null ? 0 : n == null ? -1 : r == null ? 1 : n - r;
}
-var GHe = Y([r2], (e) => e?.map((e) => e.value).sort(WHe));
-function KHe(e, t) {
+var WHe = Y([i2], (e) => e?.map((e) => e.value).sort(UHe));
+function GHe(e, t) {
switch (e) {
case "xAxis": return t.direction === "x";
case "yAxis": return t.direction === "y";
default: return !1;
}
}
-function qHe(e, t, n) {
+function KHe(e, t, n) {
if (!n || !n.length) return [];
var r;
- if (typeof t == "number" && !AW(t)) r = t;
+ if (typeof t == "number" && !kW(t)) r = t;
else if (Array.isArray(t)) {
- var i = a2(t);
+ var i = o2(t);
i.length > 0 && (r = Math.max(...i));
}
- return r == null ? [] : a2(n.flatMap((t) => {
- var n = fY(e, t.dataKey), i, a;
+ return r == null ? [] : o2(n.flatMap((t) => {
+ var n = dY(e, t.dataKey), i, a;
if (Array.isArray(n)) {
- var o = wHe(n, 2);
+ var o = CHe(n, 2);
i = o[0], a = o[1];
} else i = a = n;
- if (cY(i) && cY(a)) return [r - i, r + a];
+ if (sY(i) && sY(a)) return [r - i, r + a];
}));
}
-var o2 = (e) => Y0(e, kQ(e), AQ(e)), s2 = Y([o2], (e) => e?.dataKey), JHe = Y([
- IHe,
- AZ,
- o2
-], TQ), c2 = (e, t, n, r) => {
+var s2 = (e) => X0(e, OQ(e), kQ(e)), c2 = Y([s2], (e) => e?.dataKey), qHe = Y([
+ FHe,
+ kZ,
+ s2
+], wQ), l2 = (e, t, n, r) => {
var i = t.reduce((e, t) => {
if (t.stackId == null) return e;
var n = e[t.stackId];
return n ??= [], n.push(t), e[t.stackId] = n, e;
}, {});
return Object.fromEntries(Object.entries(i).map((t) => {
- var i = wHe(t, 2), a = i[0], o = i[1], s = r ? [...o].reverse() : o;
+ var i = CHe(t, 2), a = i[0], o = i[1], s = r ? [...o].reverse() : o;
return [a, {
- stackedData: UFe(e, s.map(wQ), n),
+ stackedData: WFe(e, s.map(CQ), n),
graphicalItems: s
}];
}));
-}, l2 = Y([
- JHe,
- IHe,
- QZ,
- $Z
-], c2), YHe = (e, t, n, r) => {
+}, u2 = Y([
+ qHe,
+ FHe,
+ ZZ,
+ QZ
+], l2), JHe = (e, t, n, r) => {
var i = t.dataStartIndex, a = t.dataEndIndex;
- if (r == null && n !== "zAxis") return KFe(e, i, a);
-}, XHe = Y([J0], (e) => e.allowDataOverflow), u2 = (e) => {
- if (e == null || !("domain" in e)) return H0;
+ if (r == null && n !== "zAxis") return qFe(e, i, a);
+}, YHe = Y([Y0], (e) => e.allowDataOverflow), d2 = (e) => {
+ if (e == null || !("domain" in e)) return U0;
if (e.domain != null) return e.domain;
if ("ticks" in e && e.ticks != null) {
if (e.type === "number") {
- var t = a2(e.ticks);
+ var t = o2(e.ticks);
return [Math.min(...t), Math.max(...t)];
}
if (e.type === "category") return e.ticks.map(String);
}
- return e?.domain ?? H0;
-}, d2 = Y([J0], u2), f2 = Y([d2, XHe], IZ), ZHe = Y([
- l2,
- OZ,
- SQ,
- f2
-], YHe, { memoizeOptions: { resultEqualityCheck: DQ } }), p2 = (e) => e.errorBars, QHe = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => KHe(n, e)), m2 = function() {
+ return e?.domain ?? U0;
+}, f2 = Y([Y0], d2), p2 = Y([f2, YHe], FZ), XHe = Y([
+ u2,
+ DZ,
+ xQ,
+ p2
+], JHe, { memoizeOptions: { resultEqualityCheck: EQ } }), m2 = (e) => e.errorBars, ZHe = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => GHe(n, e)), h2 = function() {
var e = [...arguments].filter(Boolean);
if (e.length !== 0) {
var t = e.flat();
return [Math.min(...t), Math.max(...t)];
}
-}, h2 = function(e, t, n, r, i) {
+}, g2 = function(e, t, n, r, i) {
var a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : [], o, s;
if (n.length > 0 && n.forEach((e) => {
- var n = e.data == null ? a : [...e.data], c = r[e.id]?.filter((e) => KHe(i, e));
+ var n = e.data == null ? a : [...e.data], c = r[e.id]?.filter((e) => GHe(i, e));
n.forEach((n) => {
- var r = fY(n, t.dataKey ?? e.dataKey), i = qHe(n, r, c);
+ var r = dY(n, t.dataKey ?? e.dataKey), i = KHe(n, r, c);
if (i.length >= 2) {
var a = Math.min(...i), l = Math.max(...i);
(o == null || a < o) && (o = a), (s == null || l > s) && (s = l);
}
- var u = UHe(r);
+ var u = HHe(r);
u != null && (o = o == null ? u[0] : Math.min(o, u[0]), s = s == null ? u[1] : Math.max(s, u[1]));
});
}), t?.dataKey != null && n.length === 0 && e.forEach((e) => {
- var n = UHe(fY(e, t.dataKey));
+ var n = HHe(dY(e, t.dataKey));
n != null && (o = o == null ? n[0] : Math.min(o, n[0]), s = s == null ? n[1] : Math.max(s, n[1]));
- }), cY(o) && cY(s)) return [o, s];
-}, $He = Y([
- n2,
- J0,
- RHe,
- p2,
- SQ,
- Sze
-], h2, { memoizeOptions: { resultEqualityCheck: DQ } });
-function eUe(e) {
+ }), sY(o) && sY(s)) return [o, s];
+}, QHe = Y([
+ r2,
+ Y0,
+ LHe,
+ m2,
+ xQ,
+ Cze
+], g2, { memoizeOptions: { resultEqualityCheck: EQ } });
+function $He(e) {
var t = e.value;
- if (NW(t) || t instanceof Date) return t;
-}
-var tUe = (e, t, n) => {
- var r = e.map(eUe).filter((e) => e != null);
- return n && (t.dataKey == null || t.allowDuplicatedCategory && IW(r)) ? DZ(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
-}, nUe = (e) => e.referenceElements.dots, g2 = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), rUe = Y([
- nUe,
- SQ,
- CQ
-], g2), iUe = (e) => e.referenceElements.areas, aUe = Y([
- iUe,
- SQ,
- CQ
-], g2), oUe = (e) => e.referenceElements.lines, sUe = Y([
- oUe,
- SQ,
- CQ
-], g2), cUe = (e, t) => {
+ if (MW(t) || t instanceof Date) return t;
+}
+var eUe = (e, t, n) => {
+ var r = e.map($He).filter((e) => e != null);
+ return n && (t.dataKey == null || t.allowDuplicatedCategory && FW(r)) ? EZ(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
+}, tUe = (e) => e.referenceElements.dots, _2 = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), nUe = Y([
+ tUe,
+ xQ,
+ SQ
+], _2), rUe = (e) => e.referenceElements.areas, iUe = Y([
+ rUe,
+ xQ,
+ SQ
+], _2), aUe = (e) => e.referenceElements.lines, oUe = Y([
+ aUe,
+ xQ,
+ SQ
+], _2), sUe = (e, t) => {
if (e != null) {
- var n = a2(e.map((e) => t === "xAxis" ? e.x : e.y));
+ var n = o2(e.map((e) => t === "xAxis" ? e.x : e.y));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, lUe = Y(rUe, SQ, cUe), uUe = (e, t) => {
+}, cUe = Y(nUe, xQ, sUe), lUe = (e, t) => {
if (e != null) {
- var n = a2(e.flatMap((e) => [t === "xAxis" ? e.x1 : e.y1, t === "xAxis" ? e.x2 : e.y2]));
+ var n = o2(e.flatMap((e) => [t === "xAxis" ? e.x1 : e.y1, t === "xAxis" ? e.x2 : e.y2]));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, dUe = Y([aUe, SQ], uUe);
-function fUe(e) {
- if (e.x != null) return a2([e.x]);
+}, uUe = Y([iUe, xQ], lUe);
+function dUe(e) {
+ if (e.x != null) return o2([e.x]);
var t = e.segment?.map((e) => e.x);
- return t == null || t.length === 0 ? [] : a2(t);
+ return t == null || t.length === 0 ? [] : o2(t);
}
-function pUe(e) {
- if (e.y != null) return a2([e.y]);
+function fUe(e) {
+ if (e.y != null) return o2([e.y]);
var t = e.segment?.map((e) => e.y);
- return t == null || t.length === 0 ? [] : a2(t);
+ return t == null || t.length === 0 ? [] : o2(t);
}
-var mUe = (e, t) => {
+var pUe = (e, t) => {
if (e != null) {
- var n = e.flatMap((e) => t === "xAxis" ? fUe(e) : pUe(e));
+ var n = e.flatMap((e) => t === "xAxis" ? dUe(e) : fUe(e));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, hUe = Y(lUe, Y([sUe, SQ], mUe), dUe, (e, t, n) => m2(e, n, t)), _2 = (e, t, n, r, i, a, o, s, c) => {
+}, mUe = Y(cUe, Y([oUe, xQ], pUe), uUe, (e, t, n) => h2(e, n, t)), v2 = (e, t, n, r, i, a, o, s, c) => {
if (n != null) return n;
- var l = o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? m2(r, a, i) : m2(a, i), u = kze(t, l, e.allowDataOverflow);
+ var l = o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? h2(r, a, i) : h2(a, i), u = Aze(t, l, e.allowDataOverflow);
return u == null && e.allowDataOverflow && l == null && c != null ? c : u;
-}, gUe = Y([
- J0,
- d2,
+}, hUe = Y([
+ Y0,
f2,
- ZHe,
- $He,
- hUe,
- eX,
- SQ,
- Y([J0], (e) => {
+ p2,
+ XHe,
+ QHe,
+ mUe,
+ $Y,
+ xQ,
+ Y([Y0], (e) => {
if (e != null && e.type === "number" && "ticks" in e && e.ticks != null) {
- var t = a2(e.ticks);
+ var t = o2(e.ticks);
if (t.length !== 0) return [Math.min(...t), Math.max(...t)];
}
- }, { memoizeOptions: { resultEqualityCheck: DQ } })
-], _2, { memoizeOptions: { resultEqualityCheck: DQ } }), _Ue = [0, 1], v2 = (e, t, n, r, i, a, o) => {
+ }, { memoizeOptions: { resultEqualityCheck: EQ } })
+], v2, { memoizeOptions: { resultEqualityCheck: EQ } }), gUe = [0, 1], y2 = (e, t, n, r, i, a, o) => {
if (e != null && n != null && n.length !== 0 || o !== void 0) {
- var s = e.dataKey, c = e.type, l = pY(t, a);
- return l && s == null ? DZ(0, n?.length ?? 0) : c === "category" ? tUe(r, e, l) : i === "expand" && !l ? _Ue : o;
+ var s = e.dataKey, c = e.type, l = fY(t, a);
+ return l && s == null ? EZ(0, n?.length ?? 0) : c === "category" ? eUe(r, e, l) : i === "expand" && !l ? gUe : o;
}
-}, y2 = Y([
- J0,
- eX,
- n2,
+}, b2 = Y([
+ Y0,
+ $Y,
r2,
- QZ,
- SQ,
- gUe
-], v2), b2 = Y([
- J0,
- PHe,
- eQ
-], gHe), x2 = (e, t, n) => {
+ i2,
+ ZZ,
+ xQ,
+ hUe
+], y2), x2 = Y([
+ Y0,
+ NHe,
+ $Z
+], hHe), S2 = (e, t, n) => {
var r = t.niceTicks;
if (r !== "none") {
- var i = u2(t), a = Array.isArray(i) && (i[0] === "auto" || i[1] === "auto");
- if ((r === "snap125" || r === "adaptive") && t != null && t.tickCount && PZ(e)) {
- if (a) return KZ(e, t.tickCount, t.allowDecimals, r);
- if (t.type === "number") return qZ(e, t.tickCount, t.allowDecimals, r);
+ var i = d2(t), a = Array.isArray(i) && (i[0] === "auto" || i[1] === "auto");
+ if ((r === "snap125" || r === "adaptive") && t != null && t.tickCount && NZ(e)) {
+ if (a) return GZ(e, t.tickCount, t.allowDecimals, r);
+ if (t.type === "number") return KZ(e, t.tickCount, t.allowDecimals, r);
}
if (r === "auto" && n === "linear" && t != null && t.tickCount) {
- if (a && PZ(e)) return KZ(e, t.tickCount, t.allowDecimals, "adaptive");
- if (t.type === "number" && PZ(e)) return qZ(e, t.tickCount, t.allowDecimals, "adaptive");
+ if (a && NZ(e)) return GZ(e, t.tickCount, t.allowDecimals, "adaptive");
+ if (t.type === "number" && NZ(e)) return KZ(e, t.tickCount, t.allowDecimals, "adaptive");
}
}
-}, S2 = Y([
- y2,
- Y0,
- b2
-], x2), C2 = (e, t, n, r) => {
- if (r !== "angleAxis" && e?.type === "number" && PZ(t) && Array.isArray(n) && n.length > 0) {
+}, C2 = Y([
+ b2,
+ X0,
+ x2
+], S2), w2 = (e, t, n, r) => {
+ if (r !== "angleAxis" && e?.type === "number" && NZ(t) && Array.isArray(n) && n.length > 0) {
var i = t[0], a = n[0] ?? 0, o = t[1], s = n[n.length - 1] ?? 0;
return [Math.min(i, a), Math.max(o, s)];
}
return t;
-}, vUe = Y([
- J0,
- y2,
- S2,
- SQ
-], C2), yUe = Y(Y(r2, J0, (e, t) => {
+}, _Ue = Y([
+ Y0,
+ b2,
+ C2,
+ xQ
+], w2), vUe = Y(Y(i2, Y0, (e, t) => {
if (t && t.type === "number") {
- var n = Infinity, r = Array.from(a2(e.map((e) => e.value))).sort((e, t) => e - t), i = r[0], a = r[r.length - 1];
+ var n = Infinity, r = Array.from(o2(e.map((e) => e.value))).sort((e, t) => e - t), i = r[0], a = r[r.length - 1];
if (i == null || a == null) return Infinity;
var o = a - i;
if (o === 0) return Infinity;
@@ -75354,22 +75354,22 @@ var mUe = (e, t) => {
}
return n / o;
}
-}), eX, XZ, NY, (e, t, n, r, i) => i, (e, t, n, r, i) => {
- if (!cY(e)) return 0;
+}), $Y, YZ, MY, (e, t, n, r, i) => i, (e, t, n, r, i) => {
+ if (!sY(e)) return 0;
var a = t === "vertical" ? r.height : r.width;
if (i === "gap") return e * a / 2;
if (i === "no-gap") {
- var o = FW(n, e * a), s = e * a / 2;
+ var o = PW(n, e * a), s = e * a / 2;
return s - o - (s - o) / a * o;
}
return 0;
-}), bUe = (e, t, n) => {
- var r = W0(e, t);
- return r == null || typeof r.padding != "string" ? 0 : yUe(e, "xAxis", t, n, r.padding);
-}, xUe = (e, t, n) => {
- var r = K0(e, t);
- return r == null || typeof r.padding != "string" ? 0 : yUe(e, "yAxis", t, n, r.padding);
-}, SUe = Y(W0, bUe, (e, t) => {
+}), yUe = (e, t, n) => {
+ var r = G0(e, t);
+ return r == null || typeof r.padding != "string" ? 0 : vUe(e, "xAxis", t, n, r.padding);
+}, bUe = (e, t, n) => {
+ var r = q0(e, t);
+ return r == null || typeof r.padding != "string" ? 0 : vUe(e, "yAxis", t, n, r.padding);
+}, xUe = Y(G0, yUe, (e, t) => {
if (e == null) return {
left: 0,
right: 0
@@ -75382,7 +75382,7 @@ var mUe = (e, t) => {
left: (n.left ?? 0) + t,
right: (n.right ?? 0) + t
};
-}), CUe = Y(K0, xUe, (e, t) => {
+}), SUe = Y(q0, bUe, (e, t) => {
if (e == null) return {
top: 0,
bottom: 0
@@ -75395,101 +75395,101 @@ var mUe = (e, t) => {
top: (n.top ?? 0) + t,
bottom: (n.bottom ?? 0) + t
};
-}), wUe = Y([
- NY,
- SUe,
- RY,
+}), CUe = Y([
+ MY,
+ xUe,
LY,
+ IY,
(e, t, n) => n
], (e, t, n, r, i) => {
var a = r.padding;
return i ? [a.left, n.width - a.right] : [e.left + t.left, e.left + e.width - t.right];
-}), TUe = Y([
- NY,
- eX,
- CUe,
- RY,
+}), wUe = Y([
+ MY,
+ $Y,
+ SUe,
LY,
+ IY,
(e, t, n) => n
], (e, t, n, r, i, a) => {
var o = i.padding;
return a ? [r.height - o.bottom, o.top] : t === "horizontal" ? [e.top + e.height - n.bottom, e.top + n.top] : [e.top + n.top, e.top + e.height - n.bottom];
-}), w2 = (e, t, n, r) => {
+}), T2 = (e, t, n, r) => {
switch (t) {
- case "xAxis": return wUe(e, n, r);
- case "yAxis": return TUe(e, n, r);
- case "zAxis": return q0(e, n)?.range;
- case "angleAxis": return yQ(e);
- case "radiusAxis": return bQ(e, n);
+ case "xAxis": return CUe(e, n, r);
+ case "yAxis": return wUe(e, n, r);
+ case "zAxis": return J0(e, n)?.range;
+ case "angleAxis": return vQ(e);
+ case "radiusAxis": return yQ(e, n);
default: return;
}
-}, EUe = Y([J0, w2], sQ), T2 = Y([
- J0,
- b2,
- Y([b2, vUe], MQ),
- EUe
-], B0), E2 = (e, t, n, r) => {
+}, TUe = Y([Y0, T2], oQ), E2 = Y([
+ Y0,
+ x2,
+ Y([x2, _Ue], jQ),
+ TUe
+], V0), D2 = (e, t, n, r) => {
if (n != null && n.dataKey != null) {
var i = n.type, a = n.scale;
- if (pY(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
+ if (fY(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
}
-}, D2 = Y([
- eX,
- r2,
- Y0,
- SQ
-], E2), O2 = Y([T2], jQ);
-Y([T2], yHe), Y([T2, GHe], vHe), Y([
- $0,
- p2,
- SQ
-], QHe);
-function DUe(e, t) {
+}, O2 = Y([
+ $Y,
+ i2,
+ X0,
+ xQ
+], D2), k2 = Y([E2], AQ);
+Y([E2], vHe), Y([E2, WHe], _He), Y([
+ e2,
+ m2,
+ xQ
+], ZHe);
+function EUe(e, t) {
return e.id < t.id ? -1 : +(e.id > t.id);
}
-var k2 = (e, t) => t, A2 = (e, t, n) => n, OUe = Y(kY, k2, A2, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(DUe)), kUe = Y(AY, k2, A2, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(DUe)), AUe = (e, t) => {
+var A2 = (e, t) => t, j2 = (e, t, n) => n, DUe = Y(OY, A2, j2, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(EUe)), OUe = Y(kY, A2, j2, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(EUe)), kUe = (e, t) => {
var n = typeof t.height == "number" ? t.height : 30;
return {
width: e.width,
height: n
};
-}, jUe = (e, t) => ({
+}, AUe = (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-}), MUe = Y(NY, W0, AUe), NUe = (e, t, n) => {
+}), jUe = Y(MY, G0, kUe), MUe = (e, t, n) => {
switch (t) {
case "top": return e.top;
case "bottom": return n - e.bottom;
default: return 0;
}
-}, PUe = (e, t, n) => {
+}, NUe = (e, t, n) => {
switch (t) {
case "left": return e.left;
case "right": return n - e.right;
default: return 0;
}
-}, FUe = Y(DY, NY, OUe, k2, A2, (e, t, n, r, i) => {
+}, PUe = Y(EY, MY, DUe, A2, j2, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
- var s = AUe(t, n);
- o ??= NUe(t, r, e);
+ var s = kUe(t, n);
+ o ??= MUe(t, r, e);
var c = r === "top" && !i || r === "bottom" && i;
a[n.id] = o - Number(c) * s.height, o += (c ? -1 : 1) * s.height;
}), a;
-}), IUe = Y(EY, NY, kUe, k2, A2, (e, t, n, r, i) => {
+}), FUe = Y(TY, MY, OUe, A2, j2, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
- var s = jUe(t, n);
- o ??= PUe(t, r, e);
+ var s = AUe(t, n);
+ o ??= NUe(t, r, e);
var c = r === "left" && !i || r === "right" && i;
a[n.id] = o - Number(c) * s.width, o += (c ? -1 : 1) * s.width;
}), a;
-}), LUe = Y([
- NY,
- W0,
+}), IUe = Y([
+ MY,
+ G0,
(e, t) => {
- var n = W0(e, t);
- if (n != null) return FUe(e, n.orientation, n.mirror);
+ var n = G0(e, t);
+ if (n != null) return PUe(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -75503,12 +75503,12 @@ var k2 = (e, t) => t, A2 = (e, t, n) => n, OUe = Y(kY, k2, A2, (e, t, n) => e.fi
y: i
};
}
-}), RUe = Y([
- NY,
- K0,
+}), LUe = Y([
+ MY,
+ q0,
(e, t) => {
- var n = K0(e, t);
- if (n != null) return IUe(e, n.orientation, n.mirror);
+ var n = q0(e, t);
+ if (n != null) return FUe(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -75522,38 +75522,38 @@ var k2 = (e, t) => t, A2 = (e, t, n) => n, OUe = Y(kY, k2, A2, (e, t, n) => e.fi
y: e.top
};
}
-}), zUe = Y(NY, K0, (e, t) => ({
+}), RUe = Y(MY, q0, (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-})), BUe = (e, t, n) => {
+})), zUe = (e, t, n) => {
switch (t) {
- case "xAxis": return MUe(e, n).width;
- case "yAxis": return zUe(e, n).height;
+ case "xAxis": return jUe(e, n).width;
+ case "yAxis": return RUe(e, n).height;
default: return;
}
-}, VUe = (e, t, n, r) => {
+}, BUe = (e, t, n, r) => {
if (n != null) {
- var i = n.allowDuplicatedCategory, a = n.type, o = n.dataKey, s = pY(e, r), c = t.map((e) => e.value), l = c.filter((e) => e != null);
- if (o && s && a === "category" && i && IW(l)) return c;
+ var i = n.allowDuplicatedCategory, a = n.type, o = n.dataKey, s = fY(e, r), c = t.map((e) => e.value), l = c.filter((e) => e != null);
+ if (o && s && a === "category" && i && FW(l)) return c;
}
-}, j2 = Y([
- eX,
- r2,
- J0,
- SQ
-], VUe), HUe = Y([
- eX,
- NHe,
- b2,
+}, M2 = Y([
+ $Y,
+ i2,
+ Y0,
+ xQ
+], BUe), VUe = Y([
+ $Y,
+ MHe,
+ x2,
+ k2,
+ M2,
O2,
- j2,
- D2,
- w2,
- S2,
- SQ
+ T2,
+ C2,
+ xQ
], (e, t, n, r, i, a, o, s, c) => {
if (t != null) {
- var l = pY(e, c);
+ var l = fY(e, c);
return {
angle: t.angle,
interval: t.interval,
@@ -75575,107 +75575,107 @@ var k2 = (e, t) => t, A2 = (e, t, n) => n, OUe = Y(kY, k2, A2, (e, t, n) => e.fi
scale: r
};
}
-}), UUe = (e, t, n, r, i, a, o, s, c) => {
+}), HUe = (e, t, n, r, i, a, o, s, c) => {
if (t != null && r != null) {
- var l = pY(e, c), u = t.type, d = t.ticks, f = t.tickCount, p = n === "scaleBand" && typeof r.bandwidth == "function" ? r.bandwidth() / 2 : 2, m = u === "category" && r.bandwidth ? r.bandwidth() / p : 0;
- m = c === "angleAxis" && a != null && a.length >= 2 ? kW(a[0] - a[1]) * 2 * m : m;
+ var l = fY(e, c), u = t.type, d = t.ticks, f = t.tickCount, p = n === "scaleBand" && typeof r.bandwidth == "function" ? r.bandwidth() / 2 : 2, m = u === "category" && r.bandwidth ? r.bandwidth() / p : 0;
+ m = c === "angleAxis" && a != null && a.length >= 2 ? OW(a[0] - a[1]) * 2 * m : m;
var h = d || i;
return h ? h.map((e, t) => {
var n = o ? o.indexOf(e) : e, i = r.map(n);
- return cY(i) ? {
+ return sY(i) ? {
index: t,
coordinate: i + m,
value: e,
offset: m
} : null;
- }).filter(VW) : l && s ? s.map((e, t) => {
+ }).filter(BW) : l && s ? s.map((e, t) => {
var n = r.map(e);
- return cY(n) ? {
+ return sY(n) ? {
coordinate: n + m,
value: e,
index: t,
offset: m
} : null;
- }).filter(VW) : r.ticks ? r.ticks(f).map((e, t) => {
+ }).filter(BW) : r.ticks ? r.ticks(f).map((e, t) => {
var n = r.map(e);
- return cY(n) ? {
+ return sY(n) ? {
coordinate: n + m,
value: e,
index: t,
offset: m
} : null;
- }).filter(VW) : r.domain().map((e, t) => {
+ }).filter(BW) : r.domain().map((e, t) => {
var n = r.map(e);
- return cY(n) ? {
+ return sY(n) ? {
coordinate: n + m,
value: o ? o[e] : e,
index: t,
offset: m
} : null;
- }).filter(VW);
- }
-}, WUe = Y([
- eX,
- Y0,
- b2,
+ }).filter(BW);
+ }
+}, UUe = Y([
+ $Y,
+ X0,
+ x2,
+ k2,
+ C2,
+ T2,
+ M2,
O2,
- S2,
- w2,
- j2,
- D2,
- SQ
-], UUe), GUe = (e, t, n, r, i, a, o) => {
+ xQ
+], HUe), WUe = (e, t, n, r, i, a, o) => {
if (t != null && n != null && r != null && r[0] !== r[1]) {
- var s = pY(e, o), c = t.tickCount, l = 0;
- return l = o === "angleAxis" && r?.length >= 2 ? kW(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
+ var s = fY(e, o), c = t.tickCount, l = 0;
+ return l = o === "angleAxis" && r?.length >= 2 ? OW(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
var r = n.map(e);
- return cY(r) ? {
+ return sY(r) ? {
coordinate: r + l,
value: e,
index: t,
offset: l
} : null;
- }).filter(VW) : n.ticks ? n.ticks(c).map((e, t) => {
+ }).filter(BW) : n.ticks ? n.ticks(c).map((e, t) => {
var r = n.map(e);
- return cY(r) ? {
+ return sY(r) ? {
coordinate: r + l,
value: e,
index: t,
offset: l
} : null;
- }).filter(VW) : n.domain().map((e, t) => {
+ }).filter(BW) : n.domain().map((e, t) => {
var r = n.map(e);
- return cY(r) ? {
+ return sY(r) ? {
coordinate: r + l,
value: i ? i[e] : e,
index: t,
offset: l
} : null;
- }).filter(VW);
- }
-}, M2 = Y([
- eX,
- Y0,
+ }).filter(BW);
+ }
+}, N2 = Y([
+ $Y,
+ X0,
+ k2,
+ T2,
+ M2,
O2,
- w2,
- j2,
- D2,
- SQ
-], GUe), N2 = Y(J0, O2, (e, t) => {
- if (e != null && t != null) return V0(V0({}, e), {}, { scale: t });
+ xQ
+], WUe), P2 = Y(Y0, k2, (e, t) => {
+ if (e != null && t != null) return H0(H0({}, e), {}, { scale: t });
});
-Y((e, t, n) => q0(e, n), Y([Y([
- J0,
+Y((e, t, n) => J0(e, n), Y([Y([
+ Y0,
+ x2,
b2,
- y2,
- EUe
-], B0)], jQ), (e, t) => {
- if (e != null && t != null) return V0(V0({}, e), {}, { scale: t });
+ TUe
+], V0)], AQ), (e, t) => {
+ if (e != null && t != null) return H0(H0({}, e), {}, { scale: t });
});
-var KUe = Y([
- eX,
- kY,
- AY
+var GUe = Y([
+ $Y,
+ OY,
+ kY
], (e, t, n) => {
switch (e) {
case "horizontal": return t.some((e) => e.reversed) ? "right-to-left" : "left-to-right";
@@ -75697,41 +75697,41 @@ Y([(e, t, n) => e.renderedTicks[t]?.[n]], (e) => {
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectTooltipEventType.js
-var qUe = (e) => e.options.defaultTooltipEventType, JUe = (e) => e.options.validateTooltipEventTypes;
-function YUe(e, t, n) {
+var KUe = (e) => e.options.defaultTooltipEventType, qUe = (e) => e.options.validateTooltipEventTypes;
+function JUe(e, t, n) {
if (e == null) return t;
var r = e ? "axis" : "item";
return n == null ? t : n.includes(r) ? r : t;
}
-function P2(e, t) {
- return YUe(t, qUe(e), JUe(e));
+function F2(e, t) {
+ return JUe(t, KUe(e), qUe(e));
}
-function XUe(e) {
- return J((t) => P2(t, e));
+function YUe(e) {
+ return J((t) => F2(t, e));
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveLabel.js
-var ZUe = (e, t) => {
+var XUe = (e, t) => {
var n, r = Number(t);
- if (!(AW(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
-}, QUe = (e) => e.tooltip.settings, F2 = {
+ if (!(kW(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
+}, ZUe = (e) => e.tooltip.settings, I2 = {
active: !1,
index: null,
dataKey: void 0,
graphicalItemId: void 0,
coordinate: void 0
-}, $Ue = MJ({
+}, QUe = jJ({
name: "tooltip",
initialState: {
itemInteraction: {
- click: F2,
- hover: F2
+ click: I2,
+ hover: I2
},
axisInteraction: {
- click: F2,
- hover: F2
+ click: I2,
+ hover: I2
},
- keyboardInteraction: F2,
+ keyboardInteraction: I2,
syncInteraction: {
active: !1,
index: null,
@@ -75753,23 +75753,23 @@ var ZUe = (e, t) => {
reducers: {
addTooltipEntrySettings: {
reducer(e, t) {
- e.tooltipItemPayloads.push(xJ(t.payload));
+ e.tooltipItemPayloads.push(bJ(t.payload));
},
- prepare: OJ()
+ prepare: DJ()
},
replaceTooltipEntrySettings: {
reducer(e, t) {
- var n = t.payload, r = n.prev, i = n.next, a = vJ(e).tooltipItemPayloads.indexOf(xJ(r));
- a > -1 && (e.tooltipItemPayloads[a] = xJ(i));
+ var n = t.payload, r = n.prev, i = n.next, a = _J(e).tooltipItemPayloads.indexOf(bJ(r));
+ a > -1 && (e.tooltipItemPayloads[a] = bJ(i));
},
- prepare: OJ()
+ prepare: DJ()
},
removeTooltipEntrySettings: {
reducer(e, t) {
- var n = vJ(e).tooltipItemPayloads.indexOf(xJ(t.payload));
+ var n = _J(e).tooltipItemPayloads.indexOf(bJ(t.payload));
n > -1 && e.tooltipItemPayloads.splice(n, 1);
},
- prepare: OJ()
+ prepare: DJ()
},
setTooltipSettingsState(e, t) {
e.settings = t.payload;
@@ -75799,10 +75799,10 @@ var ZUe = (e, t) => {
e.keyboardInteraction.active = t.payload.active, e.keyboardInteraction.index = t.payload.activeIndex, e.keyboardInteraction.coordinate = t.payload.activeCoordinate;
}
}
-}), I2 = $Ue.actions, eWe = I2.addTooltipEntrySettings, tWe = I2.replaceTooltipEntrySettings, nWe = I2.removeTooltipEntrySettings, rWe = I2.setTooltipSettingsState, iWe = I2.setActiveMouseOverItemIndex, aWe = I2.mouseLeaveItem, oWe = I2.mouseLeaveChart, sWe = I2.setActiveClickItemIndex, cWe = I2.setMouseOverAxisIndex, lWe = I2.setMouseClickAxisIndex, L2 = I2.setSyncInteraction, R2 = I2.setKeyboardInteraction, uWe = $Ue.reducer;
+}), L2 = QUe.actions, $Ue = L2.addTooltipEntrySettings, eWe = L2.replaceTooltipEntrySettings, tWe = L2.removeTooltipEntrySettings, nWe = L2.setTooltipSettingsState, rWe = L2.setActiveMouseOverItemIndex, iWe = L2.mouseLeaveItem, aWe = L2.mouseLeaveChart, oWe = L2.setActiveClickItemIndex, sWe = L2.setMouseOverAxisIndex, cWe = L2.setMouseClickAxisIndex, R2 = L2.setSyncInteraction, z2 = L2.setKeyboardInteraction, lWe = QUe.reducer;
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipInteractionState.js
-function dWe(e, t) {
+function uWe(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -75812,30 +75812,30 @@ function dWe(e, t) {
}
return n;
}
-function z2(e) {
+function B2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? dWe(Object(n), !0).forEach(function(t) {
- fWe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dWe(Object(n)).forEach(function(t) {
+ t % 2 ? uWe(Object(n), !0).forEach(function(t) {
+ dWe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : uWe(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function fWe(e, t, n) {
- return (t = pWe(t)) in e ? Object.defineProperty(e, t, {
+function dWe(e, t, n) {
+ return (t = fWe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function pWe(e) {
- var t = mWe(e, "string");
+function fWe(e) {
+ var t = pWe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function mWe(e, t) {
+function pWe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -75845,22 +75845,22 @@ function mWe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function hWe(e, t, n) {
+function mWe(e, t, n) {
return t === "axis" ? n === "click" ? e.axisInteraction.click : e.axisInteraction.hover : n === "click" ? e.itemInteraction.click : e.itemInteraction.hover;
}
-function gWe(e) {
+function hWe(e) {
return e.index != null;
}
-var _We = (e, t, n, r) => {
- if (t == null) return F2;
- var i = hWe(e, t, n);
- if (i == null) return F2;
+var gWe = (e, t, n, r) => {
+ if (t == null) return I2;
+ var i = mWe(e, t, n);
+ if (i == null) return I2;
if (i.active) return i;
if (e.keyboardInteraction.active) return e.keyboardInteraction;
if (e.syncInteraction.active && e.syncInteraction.index != null) return e.syncInteraction;
var a = e.settings.active === !0;
- if (gWe(i)) {
- if (a) return z2(z2({}, i), {}, { active: !0 });
+ if (hWe(i)) {
+ if (a) return B2(B2({}, i), {}, { active: !0 });
} else if (r != null) return {
active: !0,
coordinate: void 0,
@@ -75868,11 +75868,11 @@ var _We = (e, t, n, r) => {
index: r,
graphicalItemId: void 0
};
- return z2(z2({}, F2), {}, { coordinate: i.coordinate });
+ return B2(B2({}, I2), {}, { coordinate: i.coordinate });
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveTooltipIndex.js
-function vWe(e) {
+function _We(e) {
if (typeof e == "number") return Number.isFinite(e) ? e : void 0;
if (e instanceof Date) {
var t = e.valueOf();
@@ -75881,25 +75881,25 @@ function vWe(e) {
var n = Number(e);
return Number.isFinite(n) ? n : void 0;
}
-function yWe(e, t) {
- var n = vWe(e), r = t[0], i = t[1];
+function vWe(e, t) {
+ var n = _We(e), r = t[0], i = t[1];
return n !== void 0 && n >= Math.min(r, i) && n <= Math.max(r, i);
}
-function bWe(e, t, n) {
+function yWe(e, t, n) {
if (n == null || t == null) return !0;
- var r = fY(e, t);
- return r == null || !PZ(n) || yWe(r, n);
+ var r = dY(e, t);
+ return r == null || !NZ(n) || vWe(r, n);
}
-var B2 = (e, t, n, r) => {
+var V2 = (e, t, n, r) => {
var i = e?.index;
if (i == null) return null;
var a = Number(i);
- if (!cY(a)) return i;
+ if (!sY(a)) return i;
var o = 0, s = Infinity;
t.length > 0 && (s = t.length - 1);
var c = Math.max(o, Math.min(a, s)), l = t[c];
- return l == null || bWe(l, n, r) ? String(c) : null;
-}, xWe = (e, t, n, r, i, a, o) => {
+ return l == null || yWe(l, n, r) ? String(c) : null;
+}, bWe = (e, t, n, r, i, a, o) => {
if (a != null) {
var s = o[0]?.getPosition(a);
if (s != null) return s;
@@ -75915,7 +75915,7 @@ var B2 = (e, t, n, r) => {
};
}
}
-}, SWe = (e, t, n, r) => {
+}, xWe = (e, t, n, r) => {
if (t === "axis") return e.tooltipItemPayloads;
if (e.tooltipItemPayloads.length === 0) return [];
var i = n === "hover" ? e.itemInteraction.hover.graphicalItemId : e.itemInteraction.click.graphicalItemId;
@@ -75925,10 +75925,10 @@ var B2 = (e, t, n, r) => {
return a == null ? [] : [a];
}
return e.tooltipItemPayloads.filter((e) => e.settings?.graphicalItemId === i);
-}, CWe = (e) => e.options.tooltipPayloadSearcher, V2 = (e) => e.tooltip;
+}, SWe = (e) => e.options.tooltipPayloadSearcher, H2 = (e) => e.tooltip;
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js
-function wWe(e, t) {
+function CWe(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -75938,30 +75938,30 @@ function wWe(e, t) {
}
return n;
}
-function TWe(e) {
+function wWe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? wWe(Object(n), !0).forEach(function(t) {
- EWe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : wWe(Object(n)).forEach(function(t) {
+ t % 2 ? CWe(Object(n), !0).forEach(function(t) {
+ TWe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : CWe(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function EWe(e, t, n) {
- return (t = DWe(t)) in e ? Object.defineProperty(e, t, {
+function TWe(e, t, n) {
+ return (t = EWe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function DWe(e) {
- var t = OWe(e, "string");
+function EWe(e) {
+ var t = DWe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function OWe(e, t) {
+function DWe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -75971,226 +75971,226 @@ function OWe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function kWe(e) {
+function OWe(e) {
if (typeof e == "string" || typeof e == "number") return e;
}
-function AWe(e) {
+function kWe(e) {
if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") return e;
}
-function jWe(e) {
+function AWe(e) {
if (typeof e == "string" || typeof e == "number") return e;
if (typeof e == "function") return (t) => e(t);
}
-function MWe(e) {
+function jWe(e) {
if (typeof e == "string") return e;
}
-function NWe(e) {
+function MWe(e) {
if (typeof e == "object" && e) return {
- name: "name" in e ? kWe(e.name) : void 0,
- unit: "unit" in e ? AWe(e.unit) : void 0,
- dataKey: "dataKey" in e ? jWe(e.dataKey) : void 0,
+ name: "name" in e ? OWe(e.name) : void 0,
+ unit: "unit" in e ? kWe(e.unit) : void 0,
+ dataKey: "dataKey" in e ? AWe(e.dataKey) : void 0,
payload: "payload" in e ? e.payload : void 0,
- color: "color" in e ? MWe(e.color) : void 0,
- fill: "fill" in e ? MWe(e.fill) : void 0
+ color: "color" in e ? jWe(e.color) : void 0,
+ fill: "fill" in e ? jWe(e.fill) : void 0
};
}
-function PWe(e, t) {
+function NWe(e, t) {
return e ?? t;
}
-var FWe = (e, t, n, r, i, a, o) => {
+var PWe = (e, t, n, r, i, a, o) => {
if (t != null && a != null) {
var s = n.chartData, c = n.computedData, l = n.dataStartIndex, u = n.dataEndIndex;
return e.reduce((e, n) => {
- var d = n.dataDefinedOnItem, f = n.settings, p = PWe(d, s), m = Array.isArray(p) ? sY(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _;
- return r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? (_ = RW(m, r, i), _ ??= a(m, t, c, g)) : _ = a(m, t, c, g), Array.isArray(_) ? _.forEach((t) => {
- var n = NWe(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = TWe(TWe({}, f), {}, {
+ var d = n.dataDefinedOnItem, f = n.settings, p = NWe(d, s), m = Array.isArray(p) ? oY(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _;
+ return r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? (_ = LW(m, r, i), _ ??= a(m, t, c, g)) : _ = a(m, t, c, g), Array.isArray(_) ? _.forEach((t) => {
+ var n = MWe(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = wWe(wWe({}, f), {}, {
name: r,
unit: n?.unit,
color: n?.color ?? f?.color,
fill: n?.fill ?? f?.fill
});
- e.push(wY({
+ e.push(CY({
tooltipEntrySettings: o,
dataKey: i,
payload: a,
- value: fY(a, i),
+ value: dY(a, i),
name: r == null ? void 0 : String(r)
}));
- }) : e.push(wY({
+ }) : e.push(CY({
tooltipEntrySettings: f,
dataKey: h,
payload: _,
- value: fY(_, h),
- name: fY(_, g) ?? f?.name
+ value: dY(_, h),
+ name: dY(_, g) ?? f?.name
})), e;
}, []);
}
-}, H2 = Y([
- o2,
- PHe,
- eQ
-], gHe), U2 = Y([
+}, U2 = Y([
+ s2,
+ NHe,
+ $Z
+], hHe), W2 = Y([
Y([(e) => e.graphicalItems.cartesianItems, (e) => e.graphicalItems.polarItems], (e, t) => [...e, ...t]),
- o2,
- Y([kQ, AQ], X0)
-], Q0, { memoizeOptions: { resultEqualityCheck: OQ } }), IWe = Y([U2], (e) => e.filter(EQ)), LWe = Y([U2], e2, { memoizeOptions: { resultEqualityCheck: OQ } }), RWe = Y([U2], (e) => e.some((e) => !e.data)), W2 = Y([LWe, OZ], t2), zWe = Y([
- IWe,
- OZ,
- o2
-], TQ), G2 = Y([
+ s2,
+ Y([OQ, kQ], Z0)
+], $0, { memoizeOptions: { resultEqualityCheck: DQ } }), FWe = Y([W2], (e) => e.filter(TQ)), IWe = Y([W2], t2, { memoizeOptions: { resultEqualityCheck: DQ } }), LWe = Y([W2], (e) => e.some((e) => !e.data)), G2 = Y([IWe, DZ], n2), RWe = Y([
+ FWe,
+ DZ,
+ s2
+], wQ), K2 = Y([
+ G2,
+ s2,
W2,
- o2,
- U2,
- OZ,
- RWe,
- LWe
-], HHe), BWe = Y([o2], u2), VWe = Y([BWe, Y([o2], (e) => e.allowDataOverflow)], IZ), HWe = Y([
+ DZ,
+ LWe,
+ IWe
+], VHe), zWe = Y([s2], d2), BWe = Y([zWe, Y([s2], (e) => e.allowDataOverflow)], FZ), VWe = Y([
Y([
- zWe,
- Y([U2], (e) => e.filter(EQ)),
- QZ,
- $Z
- ], c2),
- OZ,
- kQ,
- VWe
-], YHe), UWe = Y([
- W2,
- o2,
- Y([U2], LHe),
- p2,
- kQ,
- wze
-], h2, { memoizeOptions: { resultEqualityCheck: DQ } }), WWe = Y([Y([
- nUe,
- kQ,
- AQ
-], g2), kQ], cUe), GWe = Y([Y([
- iUe,
- kQ,
- AQ
-], g2), kQ], uUe), K2 = Y([
- o2,
- eX,
- W2,
+ RWe,
+ Y([W2], (e) => e.filter(TQ)),
+ ZZ,
+ QZ
+ ], l2),
+ DZ,
+ OQ,
+ BWe
+], JHe), HWe = Y([
+ G2,
+ s2,
+ Y([W2], IHe),
+ m2,
+ OQ,
+ Tze
+], g2, { memoizeOptions: { resultEqualityCheck: EQ } }), UWe = Y([Y([
+ tUe,
+ OQ,
+ kQ
+], _2), OQ], sUe), WWe = Y([Y([
+ rUe,
+ OQ,
+ kQ
+], _2), OQ], lUe), q2 = Y([
+ s2,
+ $Y,
G2,
- QZ,
- kQ,
+ K2,
+ ZZ,
+ OQ,
Y([
- o2,
+ s2,
+ zWe,
BWe,
VWe,
HWe,
- UWe,
Y([
- WWe,
+ UWe,
Y([Y([
- oUe,
- kQ,
- AQ
- ], g2), kQ], mUe),
- GWe
- ], m2),
- eX,
- kQ
- ], _2)
-], v2), KWe = Y([
- o2,
- K2,
+ aUe,
+ OQ,
+ kQ
+ ], _2), OQ], pUe),
+ WWe
+ ], h2),
+ $Y,
+ OQ
+ ], v2)
+], y2), GWe = Y([
+ s2,
+ q2,
Y([
- K2,
- o2,
- H2
- ], x2),
- kQ
-], C2), qWe = (e) => w2(e, kQ(e), AQ(e), !1), JWe = Y([o2, qWe], sQ), YWe = Y([Y([
- o2,
- H2,
+ q2,
+ s2,
+ U2
+ ], S2),
+ OQ
+], w2), KWe = (e) => T2(e, OQ(e), kQ(e), !1), qWe = Y([s2, KWe], oQ), JWe = Y([Y([
+ s2,
+ U2,
+ GWe,
+ qWe
+], V0)], AQ), J2 = Y([
+ $Y,
+ s2,
+ U2,
+ JWe,
KWe,
- JWe
-], B0)], jQ), q2 = Y([
- eX,
- o2,
- H2,
- YWe,
- qWe,
Y([
- eX,
- G2,
- o2,
- kQ
- ], VUe),
+ $Y,
+ K2,
+ s2,
+ OQ
+ ], BUe),
Y([
- eX,
- G2,
- o2,
- kQ
- ], E2),
- kQ
+ $Y,
+ K2,
+ s2,
+ OQ
+ ], D2),
+ OQ
], (e, t, n, r, i, a, o, s) => {
if (t) {
- var c = t.type, l = pY(e, s);
+ var c = t.type, l = fY(e, s);
if (r) {
var u = n === "scaleBand" && r.bandwidth ? r.bandwidth() / 2 : 2, d = c === "category" && r.bandwidth ? r.bandwidth() / u : 0;
- return d = s === "angleAxis" && i != null && i?.length >= 2 ? kW(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
+ return d = s === "angleAxis" && i != null && i?.length >= 2 ? OW(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
var n = r.map(e);
- return cY(n) ? {
+ return sY(n) ? {
coordinate: n + d,
value: e,
index: t,
offset: d
} : null;
- }).filter(VW) : r.domain().map((e, t) => {
+ }).filter(BW) : r.domain().map((e, t) => {
var n = r.map(e);
- return cY(n) ? {
+ return sY(n) ? {
coordinate: n + d,
value: a ? a[e] : e,
index: t,
offset: d
} : null;
- }).filter(VW);
+ }).filter(BW);
}
}
-}), J2 = Y([
+}), Y2 = Y([
+ KUe,
qUe,
- JUe,
- QUe
-], (e, t, n) => YUe(n.shared, e, t)), XWe = (e) => e.tooltip.settings.trigger, Y2 = (e) => e.tooltip.settings.defaultIndex, X2 = Y([
- V2,
- J2,
- XWe,
- Y2
-], _We), Z2 = Y([
- X2,
- W2,
- s2,
- K2
-], B2), ZWe = Y([q2, Z2], ZUe), QWe = Y([X2], (e) => {
+ ZUe
+], (e, t, n) => JUe(n.shared, e, t)), YWe = (e) => e.tooltip.settings.trigger, X2 = (e) => e.tooltip.settings.defaultIndex, Z2 = Y([
+ H2,
+ Y2,
+ YWe,
+ X2
+], gWe), Q2 = Y([
+ Z2,
+ G2,
+ c2,
+ q2
+], V2), XWe = Y([J2, Q2], XUe), ZWe = Y([Z2], (e) => {
if (e) return e.dataKey;
-}), $We = Y([X2], (e) => {
+}), QWe = Y([Z2], (e) => {
if (e) return e.graphicalItemId;
-}), eGe = Y([
- V2,
+}), $We = Y([
+ H2,
+ Y2,
+ YWe,
+ X2
+], xWe), eGe = Y([Z2, Y([
+ TY,
+ EY,
+ $Y,
+ MY,
J2,
+ X2,
+ $We
+], bWe)], (e, t) => e != null && e.coordinate ? e.coordinate : t), tGe = Y([Z2], (e) => e?.active ?? !1), nGe = Y([Y([
+ $We,
+ Q2,
+ DZ,
+ c2,
XWe,
+ SWe,
Y2
-], SWe), tGe = Y([X2, Y([
- EY,
- DY,
- eX,
- NY,
- q2,
- Y2,
- eGe
-], xWe)], (e, t) => e != null && e.coordinate ? e.coordinate : t), nGe = Y([X2], (e) => e?.active ?? !1), rGe = Y([Y([
- eGe,
- Z2,
- OZ,
- s2,
- ZWe,
- CWe,
- J2
-], FWe)], (e) => {
+], PWe)], (e) => {
if (e != null) {
var t = e.map((e) => e.payload).filter((e) => e != null);
return Array.from(new Set(t));
@@ -76198,7 +76198,7 @@ var FWe = (e, t, n, r, i, a, o) => {
});
//#endregion
//#region node_modules/recharts/es6/context/useTooltipAxis.js
-function iGe(e, t) {
+function rGe(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -76208,30 +76208,30 @@ function iGe(e, t) {
}
return n;
}
-function aGe(e) {
+function iGe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? iGe(Object(n), !0).forEach(function(t) {
- oGe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : iGe(Object(n)).forEach(function(t) {
+ t % 2 ? rGe(Object(n), !0).forEach(function(t) {
+ aGe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : rGe(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function oGe(e, t, n) {
- return (t = sGe(t)) in e ? Object.defineProperty(e, t, {
+function aGe(e, t, n) {
+ return (t = oGe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function sGe(e) {
- var t = cGe(e, "string");
+function oGe(e) {
+ var t = sGe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function cGe(e, t) {
+function sGe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -76241,13 +76241,13 @@ function cGe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var lGe = () => J(o2), uGe = () => {
- var e = lGe(), t = J(q2), n = J(YWe);
- return CY(!e || !n ? void 0 : aGe(aGe({}, e), {}, { scale: n }), t);
+var cGe = () => J(s2), lGe = () => {
+ var e = cGe(), t = J(J2), n = J(JWe);
+ return SY(!e || !n ? void 0 : iGe(iGe({}, e), {}, { scale: n }), t);
};
//#endregion
//#region node_modules/recharts/es6/util/getActiveCoordinate.js
-function dGe(e, t) {
+function uGe(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -76257,30 +76257,30 @@ function dGe(e, t) {
}
return n;
}
-function Q2(e) {
+function $2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? dGe(Object(n), !0).forEach(function(t) {
- fGe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dGe(Object(n)).forEach(function(t) {
+ t % 2 ? uGe(Object(n), !0).forEach(function(t) {
+ dGe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : uGe(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function fGe(e, t, n) {
- return (t = pGe(t)) in e ? Object.defineProperty(e, t, {
+function dGe(e, t, n) {
+ return (t = fGe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function pGe(e) {
- var t = mGe(e, "string");
+function fGe(e) {
+ var t = pGe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function mGe(e, t) {
+function pGe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -76290,7 +76290,7 @@ function mGe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var hGe = (e, t, n, r) => {
+var mGe = (e, t, n, r) => {
var i = t.find((e) => e && e.index === n);
if (i) {
if (e === "horizontal") return {
@@ -76306,18 +76306,18 @@ var hGe = (e, t, n, r) => {
x: 0,
y: 0
};
-}, gGe = (e, t, n, r) => {
+}, hGe = (e, t, n, r) => {
var i = t.find((e) => e && e.index === n);
if (i) {
if (e === "centric") {
var a = i.coordinate, o = r.radius;
- return Q2(Q2(Q2({}, r), yZ(r.cx, r.cy, o, a)), {}, {
+ return $2($2($2({}, r), vZ(r.cx, r.cy, o, a)), {}, {
angle: a,
radius: o
});
}
var s = i.coordinate, c = r.angle;
- return Q2(Q2(Q2({}, r), yZ(r.cx, r.cy, s, c)), {}, {
+ return $2($2($2({}, r), vZ(r.cx, r.cy, s, c)), {}, {
angle: c,
radius: s
});
@@ -76336,11 +76336,11 @@ var hGe = (e, t, n, r) => {
y: 0
};
};
-function _Ge(e, t) {
+function gGe(e, t) {
var n = e.relativeX, r = e.relativeY;
return n >= t.left && n <= t.left + t.width && r >= t.top && r <= t.top + t.height;
}
-var vGe = (e, t, n, r, i) => {
+var _Ge = (e, t, n, r, i) => {
var a = t?.length ?? 0;
if (a <= 1 || e == null) return 0;
if (r === "angleAxis" && i != null && Math.abs(Math.abs(i[1] - i[0]) - 360) <= 1e-6) for (var o = i[1] - i[0], s = (t, n, r) => [
@@ -76350,9 +76350,9 @@ var vGe = (e, t, n, r, i) => {
].some((e) => (r ? e >= t : e > t) && e <= n), c = 0; c < a; c++) {
var l = c > 0 ? n[c - 1]?.coordinate : n[a - 1]?.coordinate, u = n[c]?.coordinate, d = c >= a - 1 ? n[0]?.coordinate : n[c + 1]?.coordinate, f = void 0;
if (l != null && u != null && d != null) {
- if (kW(u - l) !== kW(d - u)) {
+ if (OW(u - l) !== OW(d - u)) {
var p = [];
- if (kW(d - u) === kW(i[1] - i[0])) {
+ if (OW(d - u) === OW(i[1] - i[0])) {
f = d;
var m = u + i[1] - i[0];
p[0] = Math.min(m, (m + l) / 2), p[1] = Math.max(m, (m + l) / 2);
@@ -76377,78 +76377,78 @@ var vGe = (e, t, n, r, i) => {
}
}
return -1;
-}, yGe = () => J(eQ), $2 = (e, t) => t, bGe = (e, t, n) => n, e4 = (e, t, n, r) => r, xGe = Y(q2, (e) => ZK(e, (e) => e.coordinate)), t4 = Y([
- V2,
- $2,
- bGe,
- e4
-], _We), n4 = Y([
- t4,
- W2,
- s2,
- K2
-], B2), SGe = (e, t, n) => {
+}, vGe = () => J($Z), e4 = (e, t) => t, yGe = (e, t, n) => n, t4 = (e, t, n, r) => r, bGe = Y(J2, (e) => XK(e, (e) => e.coordinate)), n4 = Y([
+ H2,
+ e4,
+ yGe,
+ t4
+], gWe), r4 = Y([
+ n4,
+ G2,
+ c2,
+ q2
+], V2), xGe = (e, t, n) => {
if (t != null) {
- var r = V2(e);
+ var r = H2(e);
return t === "axis" ? n === "hover" ? r.axisInteraction.hover.dataKey : r.axisInteraction.click.dataKey : n === "hover" ? r.itemInteraction.hover.dataKey : r.itemInteraction.click.dataKey;
}
-}, CGe = Y([
- V2,
- $2,
- bGe,
- e4
-], SWe), r4 = Y([
- EY,
- DY,
- eX,
- NY,
- q2,
+}, SGe = Y([
+ H2,
e4,
- CGe
-], xWe), wGe = Y([t4, r4], (e, t) => e.coordinate ?? t), TGe = Y([q2, n4], ZUe), EGe = Y([
- CGe,
- n4,
- OZ,
- s2,
- TGe,
- CWe,
- $2
-], FWe), DGe = Y([t4, n4], (e, t) => ({
+ yGe,
+ t4
+], xWe), i4 = Y([
+ TY,
+ EY,
+ $Y,
+ MY,
+ J2,
+ t4,
+ SGe
+], bWe), CGe = Y([n4, i4], (e, t) => e.coordinate ?? t), wGe = Y([J2, r4], XUe), TGe = Y([
+ SGe,
+ r4,
+ DZ,
+ c2,
+ wGe,
+ SWe,
+ e4
+], PWe), EGe = Y([n4, r4], (e, t) => ({
isActive: e.active && t != null,
activeIndex: t
-})), OGe = (e, t, n, r, i, a, o) => {
- if (e && n && r && i && _Ge(e, o)) {
- var s = vGe(qFe(e, t), a, i, n, r), c = hGe(t, i, s, e);
+})), DGe = (e, t, n, r, i, a, o) => {
+ if (e && n && r && i && gGe(e, o)) {
+ var s = _Ge(JFe(e, t), a, i, n, r), c = mGe(t, i, s, e);
return {
activeIndex: String(s),
activeCoordinate: c
};
}
-}, kGe = (e, t, n, r, i, a, o) => {
+}, OGe = (e, t, n, r, i, a, o) => {
if (e && r && i && a && n) {
- var s = lze(e, n);
+ var s = uze(e, n);
if (s) {
- var c = vGe(JFe(s, t), o, a, r, i), l = gGe(t, a, c, s);
+ var c = _Ge(YFe(s, t), o, a, r, i), l = hGe(t, a, c, s);
return {
activeIndex: String(c),
activeCoordinate: l
};
}
}
-}, AGe = (e, t, n, r, i, a, o, s) => {
- if (e && t && r && i && a) return t === "horizontal" || t === "vertical" ? OGe(e, t, r, i, a, o, s) : kGe(e, t, n, r, i, a, o);
-}, jGe = Y((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {
+}, kGe = (e, t, n, r, i, a, o, s) => {
+ if (e && t && r && i && a) return t === "horizontal" || t === "vertical" ? DGe(e, t, r, i, a, o, s) : OGe(e, t, n, r, i, a, o);
+}, AGe = Y((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {
if (t != null) {
var r = e[t];
if (r != null) return n ? r.panoramaElement : r.element;
}
-}), MGe = Y((e) => e.zIndex.zIndexMap, (e) => {
- var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(iQ));
+}), jGe = Y((e) => e.zIndex.zIndexMap, (e) => {
+ var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(rQ));
return Array.from(new Set(t)).sort((e, t) => e - t);
-}, { memoizeOptions: { resultEqualityCheck: Vze } });
+}, { memoizeOptions: { resultEqualityCheck: Hze } });
//#endregion
//#region node_modules/recharts/es6/state/zIndexSlice.js
-function NGe(e, t) {
+function MGe(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -76458,30 +76458,30 @@ function NGe(e, t) {
}
return n;
}
-function PGe(e) {
+function NGe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? NGe(Object(n), !0).forEach(function(t) {
- FGe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : NGe(Object(n)).forEach(function(t) {
+ t % 2 ? MGe(Object(n), !0).forEach(function(t) {
+ PGe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : MGe(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function FGe(e, t, n) {
- return (t = IGe(t)) in e ? Object.defineProperty(e, t, {
+function PGe(e, t, n) {
+ return (t = FGe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function IGe(e) {
- var t = LGe(e, "string");
+function FGe(e) {
+ var t = IGe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function LGe(e, t) {
+function IGe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -76491,17 +76491,17 @@ function LGe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var RGe = { zIndexMap: Object.values(iQ).reduce((e, t) => PGe(PGe({}, e), {}, { [t]: {
+var LGe = { zIndexMap: Object.values(rQ).reduce((e, t) => NGe(NGe({}, e), {}, { [t]: {
element: void 0,
panoramaElement: void 0,
consumers: 0
-} }), {}) }, zGe = new Set(Object.values(iQ));
-function BGe(e) {
- return zGe.has(e);
+} }), {}) }, RGe = new Set(Object.values(rQ));
+function zGe(e) {
+ return RGe.has(e);
}
-var VGe = MJ({
+var BGe = jJ({
name: "zIndex",
- initialState: RGe,
+ initialState: LGe,
reducers: {
registerZIndexPortal: {
reducer: (e, t) => {
@@ -76512,50 +76512,50 @@ var VGe = MJ({
panoramaElement: void 0
};
},
- prepare: OJ()
+ prepare: DJ()
},
unregisterZIndexPortal: {
reducer: (e, t) => {
var n = t.payload.zIndex;
- e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !BGe(n) && delete e.zIndexMap[n]);
+ e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !zGe(n) && delete e.zIndexMap[n]);
},
- prepare: OJ()
+ prepare: DJ()
},
registerZIndexPortalElement: {
reducer: (e, t) => {
var n = t.payload, r = n.zIndex, i = n.element, a = n.isPanorama;
- e.zIndexMap[r] ? a ? e.zIndexMap[r].panoramaElement = xJ(i) : e.zIndexMap[r].element = xJ(i) : e.zIndexMap[r] = {
+ e.zIndexMap[r] ? a ? e.zIndexMap[r].panoramaElement = bJ(i) : e.zIndexMap[r].element = bJ(i) : e.zIndexMap[r] = {
consumers: 0,
- element: a ? void 0 : xJ(i),
- panoramaElement: a ? xJ(i) : void 0
+ element: a ? void 0 : bJ(i),
+ panoramaElement: a ? bJ(i) : void 0
};
},
- prepare: OJ()
+ prepare: DJ()
},
unregisterZIndexPortalElement: {
reducer: (e, t) => {
var n = t.payload.zIndex;
e.zIndexMap[n] && (t.payload.isPanorama ? e.zIndexMap[n].panoramaElement = void 0 : e.zIndexMap[n].element = void 0);
},
- prepare: OJ()
+ prepare: DJ()
}
}
-}), i4 = VGe.actions, HGe = i4.registerZIndexPortal, a4 = i4.unregisterZIndexPortal, UGe = i4.registerZIndexPortalElement, WGe = i4.unregisterZIndexPortalElement, GGe = VGe.reducer;
+}), a4 = BGe.actions, VGe = a4.registerZIndexPortal, o4 = a4.unregisterZIndexPortal, HGe = a4.registerZIndexPortalElement, UGe = a4.unregisterZIndexPortalElement, WGe = BGe.reducer;
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexLayer.js
-function o4(e) {
- var t = e.zIndex, n = e.children, r = AIe() && t !== void 0 && t !== 0, i = IY(), a = (0, b.useRef)(void 0), o = (0, b.useRef)(/* @__PURE__ */ new Set()), s = HK(), c = J((e) => jGe(e, t, i));
+function s4(e) {
+ var t = e.zIndex, n = e.children, r = jIe() && t !== void 0 && t !== 0, i = FY(), a = (0, b.useRef)(void 0), o = (0, b.useRef)(/* @__PURE__ */ new Set()), s = VK(), c = J((e) => AGe(e, t, i));
if ((0, b.useLayoutEffect)(() => {
if (!r) {
var e = o.current;
e.forEach((e) => {
- s(a4({ zIndex: e }));
+ s(o4({ zIndex: e }));
}), e.clear(), a.current = void 0;
- } else if (o.current.has(t) || (s(HGe({ zIndex: t })), o.current.add(t)), c) {
+ } else if (o.current.has(t) || (s(VGe({ zIndex: t })), o.current.add(t)), c) {
a.current = c;
var n = o.current;
n.forEach((e) => {
- e !== t && (s(a4({ zIndex: e })), n.delete(e));
+ e !== t && (s(o4({ zIndex: e })), n.delete(e));
});
}
}, [
@@ -76567,7 +76567,7 @@ function o4(e) {
var e = o.current;
return () => {
e.forEach((e) => {
- s(a4({ zIndex: e }));
+ s(o4({ zIndex: e }));
}), e.clear();
};
}, [s]), !r) return n;
@@ -76576,16 +76576,16 @@ function o4(e) {
}
//#endregion
//#region node_modules/recharts/es6/component/Cursor.js
-function s4() {
- return s4 = Object.assign ? Object.assign.bind() : function(e) {
+function c4() {
+ return c4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, s4.apply(null, arguments);
+ }, c4.apply(null, arguments);
}
-function KGe(e, t) {
+function GGe(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -76595,30 +76595,30 @@ function KGe(e, t) {
}
return n;
}
-function c4(e) {
+function l4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? KGe(Object(n), !0).forEach(function(t) {
- qGe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : KGe(Object(n)).forEach(function(t) {
+ t % 2 ? GGe(Object(n), !0).forEach(function(t) {
+ KGe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : GGe(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function qGe(e, t, n) {
- return (t = JGe(t)) in e ? Object.defineProperty(e, t, {
+function KGe(e, t, n) {
+ return (t = qGe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function JGe(e) {
- var t = YGe(e, "string");
+function qGe(e) {
+ var t = JGe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function YGe(e, t) {
+function JGe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -76628,18 +76628,18 @@ function YGe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function XGe(e) {
+function YGe(e) {
var t = e.cursor, n = e.cursorComp, r = e.cursorProps;
return /*#__PURE__*/ (0, b.isValidElement)(t) ? /*#__PURE__*/ (0, b.cloneElement)(t, r) : /*#__PURE__*/ (0, b.createElement)(n, r);
}
-function ZGe(e) {
+function XGe(e) {
var t = e.coordinate, n = e.payload, r = e.index, i = e.offset, a = e.tooltipAxisBandSize, o = e.layout, s = e.cursor, c = e.tooltipEventType, l = e.chartName, u = t, d = n, f = r;
if (!s || !u || l !== "ScatterChart" && c !== "axis") return null;
var p, m, h;
- if (l === "ScatterChart") p = u, m = lRe, h = iQ.cursorLine;
- else if (l === "BarChart") p = uRe(o, u, i, a), m = mZ, h = iQ.cursorRectangle;
- else if (o === "radial" && GG(u)) {
- var g = bZ(u), _ = g.cx, v = g.cy, y = g.radius;
+ if (l === "ScatterChart") p = u, m = uRe, h = rQ.cursorLine;
+ else if (l === "BarChart") p = dRe(o, u, i, a), m = pZ, h = rQ.cursorRectangle;
+ else if (o === "radial" && WG(u)) {
+ var g = yZ(u), _ = g.cx, v = g.cy, y = g.radius;
p = {
cx: _,
cy: v,
@@ -76647,25 +76647,25 @@ function ZGe(e) {
endAngle: g.endAngle,
innerRadius: y,
outerRadius: y
- }, m = TZ, h = iQ.cursorLine;
- } else p = { points: bze(o, u, i) }, m = UX, h = iQ.cursorLine;
- var x = typeof s == "object" && "className" in s ? s.className : void 0, S = c4(c4(c4(c4({
+ }, m = wZ, h = rQ.cursorLine;
+ } else p = { points: xze(o, u, i) }, m = HX, h = rQ.cursorLine;
+ var x = typeof s == "object" && "className" in s ? s.className : void 0, S = l4(l4(l4(l4({
stroke: "#ccc",
pointerEvents: "none"
- }, i), p), mW(s)), {}, {
+ }, i), p), pW(s)), {}, {
payload: d,
payloadIndex: f,
- className: dv("recharts-tooltip-cursor", x)
+ className: fv("recharts-tooltip-cursor", x)
});
- return /*#__PURE__*/ b.createElement(o4, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ b.createElement(XGe, {
+ return /*#__PURE__*/ b.createElement(s4, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ b.createElement(YGe, {
cursor: s,
cursorComp: m,
cursorProps: S
}));
}
-function QGe(e) {
- var t = uGe(), n = ZY(), r = tX(), i = yGe();
- return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ b.createElement(ZGe, s4({}, e, {
+function ZGe(e) {
+ var t = lGe(), n = XY(), r = eX(), i = vGe();
+ return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ b.createElement(XGe, c4({}, e, {
offset: n,
layout: r,
tooltipAxisBandSize: t,
@@ -76674,7 +76674,7 @@ function QGe(e) {
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipPortalContext.js
-var $Ge = /*#__PURE__*/ (0, b.createContext)(null), eKe = () => (0, b.useContext)($Ge), tKe = (/* @__PURE__ */ l((/* @__PURE__ */ o(((e, t) => {
+var QGe = /*#__PURE__*/ (0, b.createContext)(null), $Ge = () => (0, b.useContext)(QGe), eKe = (/* @__PURE__ */ l((/* @__PURE__ */ o(((e, t) => {
var n = Object.prototype.hasOwnProperty, r = "~";
function i() {}
Object.create && (i.prototype = Object.create(null), new i().__proto__ || (r = !1));
@@ -76761,12 +76761,12 @@ var $Ge = /*#__PURE__*/ (0, b.createContext)(null), eKe = () => (0, b.useContext
var t;
return e ? (t = r ? r + e : e, this._events[t] && s(this, t)) : (this._events = new i(), this._eventsCount = 0), this;
}, c.prototype.off = c.prototype.removeListener, c.prototype.addListener = c.prototype.on, c.prefixed = r, c.EventEmitter = c, t !== void 0 && (t.exports = c);
-})))(), 1)).default, l4 = new tKe(), u4 = "recharts.syncEvent.tooltip", nKe = "recharts.syncEvent.brush", d4 = (e, t) => {
+})))(), 1)).default, u4 = new eKe(), d4 = "recharts.syncEvent.tooltip", tKe = "recharts.syncEvent.brush", f4 = (e, t) => {
if (t && Array.isArray(e)) {
var n = Number.parseInt(t, 10);
- if (!AW(n)) return e[n];
+ if (!kW(n)) return e[n];
}
-}, rKe = MJ({
+}, nKe = jJ({
name: "options",
initialState: {
chartName: "",
@@ -76777,13 +76777,13 @@ var $Ge = /*#__PURE__*/ (0, b.createContext)(null), eKe = () => (0, b.useContext
reducers: { createEventEmitter: (e) => {
e.eventEmitter ??= Symbol("rechartsEventEmitter");
} }
-}), iKe = rKe.reducer, aKe = rKe.actions.createEventEmitter;
+}), rKe = nKe.reducer, iKe = nKe.actions.createEventEmitter;
//#endregion
//#region node_modules/recharts/es6/synchronisation/syncSelectors.js
-function oKe(e) {
+function aKe(e) {
return e.tooltip.syncInteraction;
}
-var sKe = MJ({
+var oKe = jJ({
name: "chartData",
initialState: {
chartData: void 0,
@@ -76793,7 +76793,7 @@ var sKe = MJ({
},
reducers: {
setChartData(e, t) {
- e.chartData = xJ(t.payload), t.payload == null ? (e.dataStartIndex = 0, e.dataEndIndex = 0) : t.payload.length > 0 && e.dataEndIndex !== t.payload.length - 1 && (e.dataEndIndex = t.payload.length - 1);
+ e.chartData = bJ(t.payload), t.payload == null ? (e.dataStartIndex = 0, e.dataEndIndex = 0) : t.payload.length > 0 && e.dataEndIndex !== t.payload.length - 1 && (e.dataEndIndex = t.payload.length - 1);
},
setComputedData(e, t) {
e.computedData = t.payload;
@@ -76803,10 +76803,10 @@ var sKe = MJ({
r != null && (e.dataStartIndex = r), i != null && (e.dataEndIndex = i);
}
}
-}), f4 = sKe.actions, cKe = f4.setChartData, lKe = f4.setDataStartEndIndexes;
-f4.setComputedData;
-var uKe = sKe.reducer, dKe = ["x", "y"];
-function fKe(e, t) {
+}), p4 = oKe.actions, sKe = p4.setChartData, cKe = p4.setDataStartEndIndexes;
+p4.setComputedData;
+var lKe = oKe.reducer, uKe = ["x", "y"];
+function dKe(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -76816,30 +76816,30 @@ function fKe(e, t) {
}
return n;
}
-function p4(e) {
+function m4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? fKe(Object(n), !0).forEach(function(t) {
- pKe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fKe(Object(n)).forEach(function(t) {
+ t % 2 ? dKe(Object(n), !0).forEach(function(t) {
+ fKe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dKe(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function pKe(e, t, n) {
- return (t = mKe(t)) in e ? Object.defineProperty(e, t, {
+function fKe(e, t, n) {
+ return (t = pKe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function mKe(e) {
- var t = hKe(e, "string");
+function pKe(e) {
+ var t = mKe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function hKe(e, t) {
+function mKe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -76849,16 +76849,16 @@ function hKe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function gKe(e, t) {
+function hKe(e, t) {
if (e == null) return {};
- var n, r, i = _Ke(e, t);
+ var n, r, i = gKe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function _Ke(e, t) {
+function gKe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -76867,13 +76867,13 @@ function _Ke(e, t) {
}
return n;
}
-function vKe() {
- var e = J(tQ), t = J(rQ), n = HK(), r = J(nQ), i = J(q2), a = tX(), o = XY(), s = J((e) => e.rootProps.className);
+function _Ke() {
+ var e = J(eQ), t = J(nQ), n = VK(), r = J(tQ), i = J(J2), a = eX(), o = YY(), s = J((e) => e.rootProps.className);
(0, b.useEffect)(() => {
- if (e == null) return HW;
+ if (e == null) return VW;
var s = (s, c, l) => {
if (t !== l && e === s) {
- if (c.payload.active === !1) n(L2({
+ if (c.payload.active === !1) n(R2({
active: !1,
coordinate: void 0,
dataKey: void 0,
@@ -76885,11 +76885,11 @@ function vKe() {
else if (r === "index") {
var u;
if (o && c != null && (u = c.payload) != null && u.coordinate && c.payload.sourceViewBox) {
- var d = c.payload.coordinate, f = d.x, p = d.y, m = gKe(d, dKe), h = c.payload.sourceViewBox, g = h.x, _ = h.y, v = h.width, y = h.height, b = p4(p4({}, m), {}, {
+ var d = c.payload.coordinate, f = d.x, p = d.y, m = hKe(d, uKe), h = c.payload.sourceViewBox, g = h.x, _ = h.y, v = h.width, y = h.height, b = m4(m4({}, m), {}, {
x: o.x + (v ? (f - g) / v : 0) * o.width,
y: o.y + (y ? (p - _) / y : 0) * o.height
});
- n(p4(p4({}, c), {}, { payload: p4(p4({}, c.payload), {}, { coordinate: b }) }));
+ n(m4(m4({}, c), {}, { payload: m4(m4({}, c.payload), {}, { coordinate: b }) }));
} else n(c);
} else if (i != null) {
var x;
@@ -76902,7 +76902,7 @@ function vKe() {
activeCoordinate: c.payload.coordinate
})] : r === "value" && (x = i.find((e) => String(e.value) === c.payload.label));
var S = c.payload.coordinate;
- if (S == null || o == null) n(L2({
+ if (S == null || o == null) n(R2({
active: !1,
coordinate: void 0,
dataKey: void 0,
@@ -76911,7 +76911,7 @@ function vKe() {
sourceViewBox: void 0,
graphicalItemId: void 0
}));
- else if (x == null) n(L2({
+ else if (x == null) n(R2({
active: !1,
coordinate: void 0,
dataKey: void 0,
@@ -76925,7 +76925,7 @@ function vKe() {
x: a === "horizontal" ? x.coordinate : T,
y: a === "horizontal" ? E : x.coordinate
};
- n(L2({
+ n(R2({
active: c.payload.active,
coordinate: D,
dataKey: c.payload.dataKey,
@@ -76938,8 +76938,8 @@ function vKe() {
}
}
};
- return l4.on(u4, s), () => {
- l4.off(u4, s);
+ return u4.on(d4, s), () => {
+ u4.off(d4, s);
};
}, [
s,
@@ -76952,15 +76952,15 @@ function vKe() {
o
]);
}
-function yKe() {
- var e = J(tQ), t = J(rQ), n = HK();
+function vKe() {
+ var e = J(eQ), t = J(nQ), n = VK();
(0, b.useEffect)(() => {
- if (e == null) return HW;
+ if (e == null) return VW;
var r = (r, i, a) => {
- t !== a && e === r && n(lKe(i));
+ t !== a && e === r && n(cKe(i));
};
- return l4.on(nKe, r), () => {
- l4.off(nKe, r);
+ return u4.on(tKe, r), () => {
+ u4.off(tKe, r);
};
}, [
n,
@@ -76968,17 +76968,17 @@ function yKe() {
e
]);
}
-function bKe() {
- var e = HK();
+function yKe() {
+ var e = VK();
(0, b.useEffect)(() => {
- e(aKe());
- }, [e]), vKe(), yKe();
+ e(iKe());
+ }, [e]), _Ke(), vKe();
}
-function xKe(e, t, n, r, i, a) {
- var o = J((n) => SGe(n, e, t)), s = J($We), c = J(rQ), l = J(tQ), u = J(nQ), d = J(oKe)?.sourceViewBox != null, f = XY();
+function bKe(e, t, n, r, i, a) {
+ var o = J((n) => xGe(n, e, t)), s = J(QWe), c = J(nQ), l = J(eQ), u = J(tQ), d = J(aKe)?.sourceViewBox != null, f = YY();
(0, b.useEffect)(() => {
if (!d && l != null && c != null) {
- var e = L2({
+ var e = R2({
active: a,
coordinate: n,
dataKey: o,
@@ -76987,7 +76987,7 @@ function xKe(e, t, n, r, i, a) {
sourceViewBox: f,
graphicalItemId: s
});
- l4.emit(u4, l, e, c);
+ u4.emit(d4, l, e, c);
}
}, [
d,
@@ -77005,7 +77005,7 @@ function xKe(e, t, n, r, i, a) {
}
//#endregion
//#region node_modules/recharts/es6/component/Tooltip.js
-function SKe(e, t) {
+function xKe(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -77015,30 +77015,30 @@ function SKe(e, t) {
}
return n;
}
-function CKe(e) {
+function SKe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? SKe(Object(n), !0).forEach(function(t) {
- wKe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : SKe(Object(n)).forEach(function(t) {
+ t % 2 ? xKe(Object(n), !0).forEach(function(t) {
+ CKe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : xKe(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function wKe(e, t, n) {
- return (t = TKe(t)) in e ? Object.defineProperty(e, t, {
+function CKe(e, t, n) {
+ return (t = wKe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function TKe(e) {
- var t = EKe(e, "string");
+function wKe(e) {
+ var t = TKe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function EKe(e, t) {
+function TKe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -77048,25 +77048,25 @@ function EKe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function DKe(e, t) {
- return MKe(e) || jKe(e, t) || kKe(e, t) || OKe();
+function EKe(e, t) {
+ return jKe(e) || AKe(e, t) || OKe(e, t) || DKe();
}
-function OKe() {
+function DKe() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function kKe(e, t) {
+function OKe(e, t) {
if (e) {
- if (typeof e == "string") return AKe(e, t);
+ if (typeof e == "string") return kKe(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? AKe(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? kKe(e, t) : void 0;
}
}
-function AKe(e, t) {
+function kKe(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function jKe(e, t) {
+function AKe(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -77087,16 +77087,16 @@ function jKe(e, t) {
return s;
}
}
-function MKe(e) {
+function jKe(e) {
if (Array.isArray(e)) return e;
}
-function NKe(e) {
+function MKe(e) {
return e.dataKey;
}
-function PKe(e, t) {
- return /*#__PURE__*/ b.isValidElement(e) ? /*#__PURE__*/ b.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ b.createElement(e, t) : /*#__PURE__*/ b.createElement(kLe, t);
+function NKe(e, t) {
+ return /*#__PURE__*/ b.isValidElement(e) ? /*#__PURE__*/ b.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ b.createElement(e, t) : /*#__PURE__*/ b.createElement(ALe, t);
}
-var FKe = [], IKe = {
+var PKe = [], FKe = {
allowEscapeViewBox: {
x: !1,
y: !1
@@ -77122,10 +77122,10 @@ var FKe = [], IKe = {
useTranslate3d: !1,
wrapperStyle: {}
};
-function LKe(e) {
- var t = YG(e, IKe), n = t.active, r = t.allowEscapeViewBox, i = t.animationDuration, a = t.animationEasing, o = t.content, s = t.filterNull, c = t.isAnimationActive, l = t.offset, u = t.payloadUniqBy, d = t.position, f = t.reverseDirection, p = t.useTranslate3d, m = t.wrapperStyle, h = t.cursor, g = t.shared, _ = t.trigger, v = t.defaultIndex, y = t.portal, x = t.axisId, S = HK(), C = typeof v == "number" ? String(v) : v;
+function IKe(e) {
+ var t = JG(e, FKe), n = t.active, r = t.allowEscapeViewBox, i = t.animationDuration, a = t.animationEasing, o = t.content, s = t.filterNull, c = t.isAnimationActive, l = t.offset, u = t.payloadUniqBy, d = t.position, f = t.reverseDirection, p = t.useTranslate3d, m = t.wrapperStyle, h = t.cursor, g = t.shared, _ = t.trigger, v = t.defaultIndex, y = t.portal, x = t.axisId, S = VK(), C = typeof v == "number" ? String(v) : v;
(0, b.useEffect)(() => {
- S(rWe({
+ S(nWe({
shared: g,
trigger: _,
axisId: x,
@@ -77140,20 +77140,20 @@ function LKe(e) {
n,
C
]);
- var w = XY(), T = NX(), E = XUe(g), D = J((e) => DGe(e, E, _, C)) ?? {}, O = D.activeIndex, k = D.isActive, A = J((e) => EGe(e, E, _, C)), j = J((e) => TGe(e, E, _, C)), M = J((e) => wGe(e, E, _, C)), N = A, ee = eKe(), te = n ?? k ?? !1, P = DKe(rq([N, te]), 2), ne = P[0], re = P[1], ie = E === "axis" ? j : void 0;
- xKe(E, _, M, ie, O, te);
+ var w = YY(), T = MX(), E = YUe(g), D = J((e) => EGe(e, E, _, C)) ?? {}, O = D.activeIndex, k = D.isActive, A = J((e) => TGe(e, E, _, C)), j = J((e) => wGe(e, E, _, C)), M = J((e) => CGe(e, E, _, C)), N = A, ee = $Ge(), te = n ?? k ?? !1, P = EKe(nq([N, te]), 2), ne = P[0], re = P[1], ie = E === "axis" ? j : void 0;
+ bKe(E, _, M, ie, O, te);
var ae = y ?? ee;
if (ae == null || w == null || E == null) return null;
- var oe = N ?? FKe;
- te || (oe = FKe), s && oe.length && (oe = BK(oe.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, NKe));
- var se = oe.length > 0, ce = CKe(CKe({}, t), {}, {
+ var oe = N ?? PKe;
+ te || (oe = PKe), s && oe.length && (oe = zK(oe.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, MKe));
+ var se = oe.length > 0, ce = SKe(SKe({}, t), {}, {
payload: oe,
label: ie,
active: te,
activeIndex: O,
coordinate: M,
accessibilityLayer: T
- }), le = /*#__PURE__*/ b.createElement(YLe, {
+ }), le = /*#__PURE__*/ b.createElement(XLe, {
allowEscapeViewBox: r,
animationDuration: i,
animationEasing: a,
@@ -77170,8 +77170,8 @@ function LKe(e) {
lastBoundingBox: ne,
innerRef: re,
hasPortalFromProps: !!y
- }, PKe(o, ce));
- return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ (0, mt.createPortal)(le, ae), te && /*#__PURE__*/ b.createElement(QGe, {
+ }, NKe(o, ce));
+ return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ (0, mt.createPortal)(le, ae), te && /*#__PURE__*/ b.createElement(ZGe, {
cursor: h,
tooltipEventType: E,
coordinate: M,
@@ -77181,23 +77181,23 @@ function LKe(e) {
}
//#endregion
//#region node_modules/recharts/es6/component/Cell.js
-var m4 = (e) => null;
-m4.displayName = "Cell";
+var h4 = (e) => null;
+h4.displayName = "Cell";
//#endregion
//#region node_modules/recharts/es6/util/LRUCache.js
-function RKe(e, t, n) {
- return (t = zKe(t)) in e ? Object.defineProperty(e, t, {
+function LKe(e, t, n) {
+ return (t = RKe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function zKe(e) {
- var t = BKe(e, "string");
+function RKe(e) {
+ var t = zKe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function BKe(e, t) {
+function zKe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -77207,9 +77207,9 @@ function BKe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var VKe = class {
+var BKe = class {
constructor(e) {
- RKe(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
+ LKe(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
}
get(e) {
var t = this.cache.get(e);
@@ -77232,7 +77232,7 @@ var VKe = class {
};
//#endregion
//#region node_modules/recharts/es6/util/DOMUtils.js
-function HKe(e, t) {
+function VKe(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -77242,30 +77242,30 @@ function HKe(e, t) {
}
return n;
}
-function UKe(e) {
+function HKe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? HKe(Object(n), !0).forEach(function(t) {
- WKe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : HKe(Object(n)).forEach(function(t) {
+ t % 2 ? VKe(Object(n), !0).forEach(function(t) {
+ UKe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : VKe(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function WKe(e, t, n) {
- return (t = GKe(t)) in e ? Object.defineProperty(e, t, {
+function UKe(e, t, n) {
+ return (t = WKe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function GKe(e) {
- var t = KKe(e, "string");
+function WKe(e) {
+ var t = GKe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function KKe(e, t) {
+function GKe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -77275,10 +77275,10 @@ function KKe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var qKe = UKe({}, {
+var KKe = HKe({}, {
cacheSize: 2e3,
enableCache: !0
-}), JKe = new VKe(qKe.cacheSize), YKe = {
+}), qKe = new BKe(KKe.cacheSize), JKe = {
position: "absolute",
top: "-20000px",
left: 0,
@@ -77286,14 +77286,14 @@ var qKe = UKe({}, {
margin: 0,
border: "none",
whiteSpace: "pre"
-}, XKe = "recharts_measurement_span";
-function ZKe(e, t) {
+}, YKe = "recharts_measurement_span";
+function XKe(e, t) {
return `${e}|${t.fontSize || ""}|${t.fontFamily || ""}|${t.fontWeight || ""}|${t.fontStyle || ""}|${t.letterSpacing || ""}|${t.textTransform || ""}`;
}
-var QKe = (e, t) => {
+var ZKe = (e, t) => {
try {
- var n = document.getElementById(XKe);
- n || (n = document.createElement("span"), n.setAttribute("id", XKe), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, YKe, t), n.textContent = `${e}`;
+ var n = document.getElementById(YKe);
+ n || (n = document.createElement("span"), n.setAttribute("id", YKe), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, JKe, t), n.textContent = `${e}`;
var r = n.getBoundingClientRect();
return {
width: r.width,
@@ -77305,37 +77305,37 @@ var QKe = (e, t) => {
height: 0
};
}
-}, h4 = function(e) {
+}, g4 = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
- if (e == null || DX.isSsr) return {
+ if (e == null || EX.isSsr) return {
width: 0,
height: 0
};
- if (!qKe.enableCache) return QKe(e, t);
- var n = ZKe(e, t), r = JKe.get(n);
+ if (!KKe.enableCache) return ZKe(e, t);
+ var n = XKe(e, t), r = qKe.get(n);
if (r) return r;
- var i = QKe(e, t);
- return JKe.set(n, i), i;
-}, $Ke;
-function g4(e, t) {
- return iqe(e) || rqe(e, t) || tqe(e, t) || eqe();
+ var i = ZKe(e, t);
+ return qKe.set(n, i), i;
+}, QKe;
+function _4(e, t) {
+ return rqe(e) || nqe(e, t) || eqe(e, t) || $Ke();
}
-function eqe() {
+function $Ke() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function tqe(e, t) {
+function eqe(e, t) {
if (e) {
- if (typeof e == "string") return nqe(e, t);
+ if (typeof e == "string") return tqe(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? nqe(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? tqe(e, t) : void 0;
}
}
-function nqe(e, t) {
+function tqe(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function rqe(e, t) {
+function nqe(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -77356,22 +77356,22 @@ function rqe(e, t) {
return s;
}
}
-function iqe(e) {
+function rqe(e) {
if (Array.isArray(e)) return e;
}
-function aqe(e, t, n) {
- return (t = oqe(t)) in e ? Object.defineProperty(e, t, {
+function iqe(e, t, n) {
+ return (t = aqe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function oqe(e) {
- var t = sqe(e, "string");
+function aqe(e) {
+ var t = oqe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function sqe(e, t) {
+function oqe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -77381,7 +77381,7 @@ function sqe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var cqe = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, lqe = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, uqe = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, dqe = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, fqe = {
+var sqe = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, cqe = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, lqe = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, uqe = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, dqe = {
cm: 96 / 2.54,
mm: 96 / 25.4,
pt: 96 / 72,
@@ -77389,7 +77389,7 @@ var cqe = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, lqe =
in: 96,
Q: 96 / 101.6,
px: 1
-}, pqe = [
+}, fqe = [
"cm",
"mm",
"pt",
@@ -77398,20 +77398,20 @@ var cqe = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, lqe =
"Q",
"px"
];
-function mqe(e) {
- return pqe.includes(e);
+function pqe(e) {
+ return fqe.includes(e);
}
-var _4 = "NaN";
-function hqe(e, t) {
- return e * fqe[t];
+var v4 = "NaN";
+function mqe(e, t) {
+ return e * dqe[t];
}
-var v4 = class e {
+var y4 = class e {
static parse(t) {
- var n = g4(dqe.exec(t) ?? [], 3), r = n[1], i = n[2];
+ var n = _4(uqe.exec(t) ?? [], 3), r = n[1], i = n[2];
return r == null ? e.NaN : new e(parseFloat(r), i ?? "");
}
constructor(e, t) {
- this.num = e, this.unit = t, this.num = e, this.unit = t, AW(e) && (this.unit = ""), t !== "" && !uqe.test(t) && (this.num = NaN, this.unit = ""), mqe(t) && (this.num = hqe(e, t), this.unit = "px");
+ this.num = e, this.unit = t, this.num = e, this.unit = t, kW(e) && (this.unit = ""), t !== "" && !lqe.test(t) && (this.num = NaN, this.unit = ""), pqe(t) && (this.num = mqe(e, t), this.unit = "px");
}
add(t) {
return this.unit === t.unit ? new e(this.num + t.num, this.unit) : new e(NaN, "");
@@ -77429,50 +77429,50 @@ var v4 = class e {
return `${this.num}${this.unit}`;
}
isNaN() {
- return AW(this.num);
+ return kW(this.num);
}
};
-$Ke = v4, aqe(v4, "NaN", new $Ke(NaN, ""));
-function gqe(e) {
- if (e == null || e.includes(_4)) return _4;
+QKe = y4, iqe(y4, "NaN", new QKe(NaN, ""));
+function hqe(e) {
+ if (e == null || e.includes(v4)) return v4;
for (var t = e; t.includes("*") || t.includes("/");) {
- var n = g4(cqe.exec(t) ?? [], 4), r = n[1], i = n[2], a = n[3], o = v4.parse(r ?? ""), s = v4.parse(a ?? ""), c = i === "*" ? o.multiply(s) : o.divide(s);
- if (c.isNaN()) return _4;
- t = t.replace(cqe, c.toString());
+ var n = _4(sqe.exec(t) ?? [], 4), r = n[1], i = n[2], a = n[3], o = y4.parse(r ?? ""), s = y4.parse(a ?? ""), c = i === "*" ? o.multiply(s) : o.divide(s);
+ if (c.isNaN()) return v4;
+ t = t.replace(sqe, c.toString());
}
for (; t.includes("+") || /.-\d+(?:\.\d+)?/.test(t);) {
- var l = g4(lqe.exec(t) ?? [], 4), u = l[1], d = l[2], f = l[3], p = v4.parse(u ?? ""), m = v4.parse(f ?? ""), h = d === "+" ? p.add(m) : p.subtract(m);
- if (h.isNaN()) return _4;
- t = t.replace(lqe, h.toString());
+ var l = _4(cqe.exec(t) ?? [], 4), u = l[1], d = l[2], f = l[3], p = y4.parse(u ?? ""), m = y4.parse(f ?? ""), h = d === "+" ? p.add(m) : p.subtract(m);
+ if (h.isNaN()) return v4;
+ t = t.replace(cqe, h.toString());
}
return t;
}
-var _qe = /\(([^()]*)\)/;
-function vqe(e) {
- for (var t = e, n; (n = _qe.exec(t)) != null;) {
- var r = g4(n, 2)[1];
- t = t.replace(_qe, gqe(r));
+var gqe = /\(([^()]*)\)/;
+function _qe(e) {
+ for (var t = e, n; (n = gqe.exec(t)) != null;) {
+ var r = _4(n, 2)[1];
+ t = t.replace(gqe, hqe(r));
}
return t;
}
-function yqe(e) {
+function vqe(e) {
var t = e.replace(/\s+/g, "");
- return t = vqe(t), t = gqe(t), t;
+ return t = _qe(t), t = hqe(t), t;
}
-function bqe(e) {
+function yqe(e) {
try {
- return yqe(e);
+ return vqe(e);
} catch {
- return _4;
+ return v4;
}
}
-function y4(e) {
- var t = bqe(e.slice(5, -1));
- return t === _4 ? "" : t;
+function b4(e) {
+ var t = yqe(e.slice(5, -1));
+ return t === v4 ? "" : t;
}
//#endregion
//#region node_modules/recharts/es6/component/Text.js
-var xqe = [
+var bqe = [
"x",
"y",
"lineHeight",
@@ -77481,32 +77481,32 @@ var xqe = [
"scaleToFit",
"textAnchor",
"verticalAnchor"
-], Sqe = [
+], xqe = [
"dx",
"dy",
"angle",
"className",
"breakAll"
];
-function b4() {
- return b4 = Object.assign ? Object.assign.bind() : function(e) {
+function x4() {
+ return x4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, b4.apply(null, arguments);
+ }, x4.apply(null, arguments);
}
-function Cqe(e, t) {
+function Sqe(e, t) {
if (e == null) return {};
- var n, r, i = wqe(e, t);
+ var n, r, i = Cqe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function wqe(e, t) {
+function Cqe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -77515,25 +77515,25 @@ function wqe(e, t) {
}
return n;
}
-function Tqe(e, t) {
- return Aqe(e) || kqe(e, t) || Dqe(e, t) || Eqe();
+function wqe(e, t) {
+ return kqe(e) || Oqe(e, t) || Eqe(e, t) || Tqe();
}
-function Eqe() {
+function Tqe() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function Dqe(e, t) {
+function Eqe(e, t) {
if (e) {
- if (typeof e == "string") return Oqe(e, t);
+ if (typeof e == "string") return Dqe(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Oqe(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Dqe(e, t) : void 0;
}
}
-function Oqe(e, t) {
+function Dqe(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function kqe(e, t) {
+function Oqe(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -77554,31 +77554,31 @@ function kqe(e, t) {
return s;
}
}
-function Aqe(e) {
+function kqe(e) {
if (Array.isArray(e)) return e;
}
-var jqe = /[ \f\n\r\t\v\u2028\u2029]+/, Mqe = (e) => {
+var Aqe = /[ \f\n\r\t\v\u2028\u2029]+/, jqe = (e) => {
var t = e.children, n = e.breakAll, r = e.style;
try {
var i = [];
- return zW(t) || (i = n ? t.toString().split("") : t.toString().split(jqe)), {
+ return RW(t) || (i = n ? t.toString().split("") : t.toString().split(Aqe)), {
wordsWithComputedWidth: i.map((e) => ({
word: e,
- width: h4(e, r).width
+ width: g4(e, r).width
})),
- spaceWidth: n ? 0 : h4("\xA0", r).width
+ spaceWidth: n ? 0 : g4("\xA0", r).width
};
} catch {
return null;
}
};
-function Nqe(e) {
+function Mqe(e) {
return e === "start" || e === "middle" || e === "end" || e === "inherit";
}
-function Pqe(e) {
- return zW(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
+function Nqe(e) {
+ return RW(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
}
-var Fqe = (e, t, n, r) => e.reduce((e, i) => {
+var Pqe = (e, t, n, r) => e.reduce((e, i) => {
var a = i.word, o = i.width, s = e[e.length - 1];
if (s && o != null && (t == null || r || s.width + o + n < Number(t))) s.words.push(a), s.width += o + n;
else {
@@ -77589,20 +77589,20 @@ var Fqe = (e, t, n, r) => e.reduce((e, i) => {
e.push(c);
}
return e;
-}, []), Iqe = (e) => e.reduce((e, t) => e.width > t.width ? e : t), Lqe = "…", Rqe = (e, t, n, r, i, a, o, s) => {
- var c = Mqe({
+}, []), Fqe = (e) => e.reduce((e, t) => e.width > t.width ? e : t), Iqe = "…", Lqe = (e, t, n, r, i, a, o, s) => {
+ var c = jqe({
breakAll: n,
style: r,
- children: e.slice(0, t) + Lqe
+ children: e.slice(0, t) + Iqe
});
if (!c) return [!1, []];
- var l = Fqe(c.wordsWithComputedWidth, a, o, s);
- return [l.length > i || Iqe(l).width > Number(a), l];
-}, zqe = (e, t, n, r, i) => {
- var a = e.maxLines, o = e.children, s = e.style, c = e.breakAll, l = MW(a), u = String(o), d = Fqe(t, r, n, i);
- if (!l || i || !(d.length > a || Iqe(d).width > Number(r))) return d;
+ var l = Pqe(c.wordsWithComputedWidth, a, o, s);
+ return [l.length > i || Fqe(l).width > Number(a), l];
+}, Rqe = (e, t, n, r, i) => {
+ var a = e.maxLines, o = e.children, s = e.style, c = e.breakAll, l = jW(a), u = String(o), d = Pqe(t, r, n, i);
+ if (!l || i || !(d.length > a || Fqe(d).width > Number(r))) return d;
for (var f = 0, p = u.length - 1, m = 0, h; f <= p && m <= u.length - 1;) {
- var g = Math.floor((f + p) / 2), _ = Tqe(Rqe(u, g - 1, c, s, a, r, n, i), 2), v = _[0], y = _[1], b = Tqe(Rqe(u, g, c, s, a, r, n, i), 1)[0];
+ var g = Math.floor((f + p) / 2), _ = wqe(Lqe(u, g - 1, c, s, a, r, n, i), 2), v = _[0], y = _[1], b = wqe(Lqe(u, g, c, s, a, r, n, i), 1)[0];
if (!v && !b && (f = g + 1), v && b && (p = g - 1), !v && b) {
h = y;
break;
@@ -77610,13 +77610,13 @@ var Fqe = (e, t, n, r) => e.reduce((e, i) => {
m++;
}
return h || d;
-}, Bqe = (e) => [{
- words: zW(e) ? [] : e.toString().split(jqe),
+}, zqe = (e) => [{
+ words: RW(e) ? [] : e.toString().split(Aqe),
width: void 0
-}], Vqe = (e) => {
+}], Bqe = (e) => {
var t = e.width, n = e.scaleToFit, r = e.children, i = e.style, a = e.breakAll, o = e.maxLines;
- if ((t || n) && !DX.isSsr) {
- var s, c, l = Mqe({
+ if ((t || n) && !EX.isSsr) {
+ var s, c, l = jqe({
breakAll: a,
children: r,
style: i
@@ -77624,28 +77624,28 @@ var Fqe = (e, t, n, r) => e.reduce((e, i) => {
if (l) {
var u = l.wordsWithComputedWidth, d = l.spaceWidth;
s = u, c = d;
- } else return Bqe(r);
- return zqe({
+ } else return zqe(r);
+ return Rqe({
breakAll: a,
children: r,
maxLines: o,
style: i
}, s, c, t, !!n);
}
- return Bqe(r);
-}, Hqe = "#808080", Uqe = {
+ return zqe(r);
+}, Vqe = "#808080", Hqe = {
angle: 0,
breakAll: !1,
capHeight: "0.71em",
- fill: Hqe,
+ fill: Vqe,
lineHeight: "1em",
scaleToFit: !1,
textAnchor: "start",
verticalAnchor: "end",
x: 0,
y: 0
-}, x4 = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
- var n = YG(e, Uqe), r = n.x, i = n.y, a = n.lineHeight, o = n.capHeight, s = n.fill, c = n.scaleToFit, l = n.textAnchor, u = n.verticalAnchor, d = Cqe(n, xqe), f = (0, b.useMemo)(() => Vqe({
+}, S4 = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
+ var n = JG(e, Hqe), r = n.x, i = n.y, a = n.lineHeight, o = n.capHeight, s = n.fill, c = n.scaleToFit, l = n.textAnchor, u = n.verticalAnchor, d = Sqe(n, bqe), f = (0, b.useMemo)(() => Bqe({
breakAll: d.breakAll,
children: d.children,
maxLines: d.maxLines,
@@ -77659,32 +77659,32 @@ var Fqe = (e, t, n, r) => e.reduce((e, i) => {
c,
d.style,
d.width
- ]), p = d.dx, m = d.dy, h = d.angle, g = d.className, _ = d.breakAll, v = Cqe(d, Sqe);
- if (!NW(r) || !NW(i) || f.length === 0) return null;
- var y = Number(r) + (MW(p) ? p : 0), x = Number(i) + (MW(m) ? m : 0);
- if (!cY(y) || !cY(x)) return null;
+ ]), p = d.dx, m = d.dy, h = d.angle, g = d.className, _ = d.breakAll, v = Sqe(d, xqe);
+ if (!MW(r) || !MW(i) || f.length === 0) return null;
+ var y = Number(r) + (jW(p) ? p : 0), x = Number(i) + (jW(m) ? m : 0);
+ if (!sY(y) || !sY(x)) return null;
var S;
switch (u) {
case "start":
- S = y4(`calc(${o})`);
+ S = b4(`calc(${o})`);
break;
case "middle":
- S = y4(`calc(${(f.length - 1) / 2} * -${a} + (${o} / 2))`);
+ S = b4(`calc(${(f.length - 1) / 2} * -${a} + (${o} / 2))`);
break;
- default: S = y4(`calc(${f.length - 1} * -${a})`);
+ default: S = b4(`calc(${f.length - 1} * -${a})`);
}
var C = [], w = f[0];
if (c && w != null) {
var T = w.width, E = d.width;
- C.push(`scale(${MW(E) && MW(T) ? E / T : 1})`);
+ C.push(`scale(${jW(E) && jW(T) ? E / T : 1})`);
}
- return h && C.push(`rotate(${h}, ${y}, ${x})`), C.length && (v.transform = C.join(" ")), /*#__PURE__*/ b.createElement("text", b4({}, hW(v), {
+ return h && C.push(`rotate(${h}, ${y}, ${x})`), C.length && (v.transform = C.join(" ")), /*#__PURE__*/ b.createElement("text", x4({}, mW(v), {
ref: t,
x: y,
y: x,
- className: dv("recharts-text", g),
+ className: fv("recharts-text", g),
textAnchor: l,
- fill: s.includes("url") ? Hqe : s
+ fill: s.includes("url") ? Vqe : s
}), f.map((e, t) => {
var n = e.words.join(_ ? "" : " ");
return /*#__PURE__*/ b.createElement("tspan", {
@@ -77694,20 +77694,20 @@ var Fqe = (e, t, n, r) => e.reduce((e, i) => {
}, n);
}));
});
-x4.displayName = "Text";
+S4.displayName = "Text";
//#endregion
//#region node_modules/recharts/es6/component/Label.js
-var Wqe = ["labelRef"], Gqe = ["content"];
-function Kqe(e, t) {
+var Uqe = ["labelRef"], Wqe = ["content"];
+function Gqe(e, t) {
if (e == null) return {};
- var n, r, i = qqe(e, t);
+ var n, r, i = Kqe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function qqe(e, t) {
+function Kqe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -77716,7 +77716,7 @@ function qqe(e, t) {
}
return n;
}
-function Jqe(e, t) {
+function qqe(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -77726,30 +77726,30 @@ function Jqe(e, t) {
}
return n;
}
-function S4(e) {
+function C4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? Jqe(Object(n), !0).forEach(function(t) {
- Yqe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Jqe(Object(n)).forEach(function(t) {
+ t % 2 ? qqe(Object(n), !0).forEach(function(t) {
+ Jqe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : qqe(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Yqe(e, t, n) {
- return (t = Xqe(t)) in e ? Object.defineProperty(e, t, {
+function Jqe(e, t, n) {
+ return (t = Yqe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Xqe(e) {
- var t = Zqe(e, "string");
+function Yqe(e) {
+ var t = Xqe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Zqe(e, t) {
+function Xqe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -77759,16 +77759,16 @@ function Zqe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function C4() {
- return C4 = Object.assign ? Object.assign.bind() : function(e) {
+function w4() {
+ return w4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, C4.apply(null, arguments);
+ }, w4.apply(null, arguments);
}
-var Qqe = /*#__PURE__*/ (0, b.createContext)(null), $qe = (e) => {
+var Zqe = /*#__PURE__*/ (0, b.createContext)(null), Qqe = (e) => {
var t = e.x, n = e.y, r = e.upperWidth, i = e.lowerWidth, a = e.width, o = e.height, s = e.children, c = (0, b.useMemo)(() => ({
x: t,
y: n,
@@ -77784,11 +77784,11 @@ var Qqe = /*#__PURE__*/ (0, b.createContext)(null), $qe = (e) => {
a,
o
]);
- return /*#__PURE__*/ b.createElement(Qqe.Provider, { value: c }, s);
-}, eJe = () => {
- var e = (0, b.useContext)(Qqe), t = XY();
- return e || (t ? UW(t) : void 0);
-}, tJe = /*#__PURE__*/ (0, b.createContext)(null), nJe = (e) => {
+ return /*#__PURE__*/ b.createElement(Zqe.Provider, { value: c }, s);
+}, $qe = () => {
+ var e = (0, b.useContext)(Zqe), t = YY();
+ return e || (t ? HW(t) : void 0);
+}, eJe = /*#__PURE__*/ (0, b.createContext)(null), tJe = (e) => {
var t = e.cx, n = e.cy, r = e.innerRadius, i = e.outerRadius, a = e.startAngle, o = e.endAngle, s = e.clockWise, c = e.children, l = (0, b.useMemo)(() => ({
cx: t,
cy: n,
@@ -77806,15 +77806,15 @@ var Qqe = /*#__PURE__*/ (0, b.createContext)(null), $qe = (e) => {
o,
s
]);
- return /*#__PURE__*/ b.createElement(tJe.Provider, { value: l }, c);
-}, rJe = () => {
- var e = (0, b.useContext)(tJe), t = J(xQ);
+ return /*#__PURE__*/ b.createElement(eJe.Provider, { value: l }, c);
+}, nJe = () => {
+ var e = (0, b.useContext)(eJe), t = J(bQ);
return e || t;
-}, iJe = (e) => {
- var t = e.value, n = e.formatter, r = zW(e.children) ? t : e.children;
+}, rJe = (e) => {
+ var t = e.value, n = e.formatter, r = RW(e.children) ? t : e.children;
return typeof n == "function" ? n(r) : r;
-}, w4 = (e) => e != null && typeof e == "function", aJe = (e, t) => kW(t - e) * Math.min(Math.abs(t - e), 360), oJe = (e, t, n, r, i) => {
- var a = e.offset, o = e.className, s = i.cx, c = i.cy, l = i.innerRadius, u = i.outerRadius, d = i.startAngle, f = i.endAngle, p = i.clockWise, m = (l + u) / 2, h = aJe(d, f), g = h >= 0 ? 1 : -1, _, v;
+}, T4 = (e) => e != null && typeof e == "function", iJe = (e, t) => OW(t - e) * Math.min(Math.abs(t - e), 360), aJe = (e, t, n, r, i) => {
+ var a = e.offset, o = e.className, s = i.cx, c = i.cy, l = i.innerRadius, u = i.outerRadius, d = i.startAngle, f = i.endAngle, p = i.clockWise, m = (l + u) / 2, h = iJe(d, f), g = h >= 0 ? 1 : -1, _, v;
switch (t) {
case "insideStart":
_ = d + g * a, v = p;
@@ -77828,20 +77828,20 @@ var Qqe = /*#__PURE__*/ (0, b.createContext)(null), $qe = (e) => {
default: throw Error(`Unsupported position ${t}`);
}
v = h <= 0 ? v : !v;
- var y = yZ(s, c, m, _), x = yZ(s, c, m, _ + (v ? 1 : -1) * 359), S = `M${y.x},${y.y}
+ var y = vZ(s, c, m, _), x = vZ(s, c, m, _ + (v ? 1 : -1) * 359), S = `M${y.x},${y.y}
A${m},${m},0,1,${+!v},
- ${x.x},${x.y}`, C = zW(e.id) ? PW("recharts-radial-line-") : e.id;
- return /*#__PURE__*/ b.createElement("text", C4({}, r, {
+ ${x.x},${x.y}`, C = RW(e.id) ? NW("recharts-radial-line-") : e.id;
+ return /*#__PURE__*/ b.createElement("text", w4({}, r, {
dominantBaseline: "central",
- className: dv("recharts-radial-bar-label", o)
+ className: fv("recharts-radial-bar-label", o)
}), /*#__PURE__*/ b.createElement("defs", null, /*#__PURE__*/ b.createElement("path", {
id: C,
d: S
})), /*#__PURE__*/ b.createElement("textPath", { xlinkHref: `#${C}` }, n));
-}, sJe = (e, t, n) => {
+}, oJe = (e, t, n) => {
var r = e.cx, i = e.cy, a = e.innerRadius, o = e.outerRadius, s = (e.startAngle + e.endAngle) / 2;
if (n === "outside") {
- var c = yZ(r, i, o + t, s), l = c.x;
+ var c = vZ(r, i, o + t, s), l = c.x;
return {
x: l,
y: c.y,
@@ -77867,22 +77867,22 @@ var Qqe = /*#__PURE__*/ (0, b.createContext)(null), $qe = (e) => {
textAnchor: "middle",
verticalAnchor: "end"
};
- var u = yZ(r, i, (a + o) / 2, s);
+ var u = vZ(r, i, (a + o) / 2, s);
return {
x: u.x,
y: u.y,
textAnchor: "middle",
verticalAnchor: "middle"
};
-}, T4 = (e) => e != null && "cx" in e && MW(e.cx), cJe = {
+}, E4 = (e) => e != null && "cx" in e && jW(e.cx), sJe = {
angle: 0,
offset: 5,
- zIndex: iQ.label,
+ zIndex: rQ.label,
position: "middle",
textBreakAll: !1
};
-function lJe(e) {
- if (!T4(e)) return e;
+function cJe(e) {
+ if (!E4(e)) return e;
var t = e.cx, n = e.cy, r = e.outerRadius, i = r * 2;
return {
x: t - r,
@@ -77893,100 +77893,100 @@ function lJe(e) {
height: i
};
}
-function E4(e) {
- var t = YG(e, cJe), n = t.viewBox, r = t.parentViewBox, i = t.position, a = t.value, o = t.children, s = t.content, c = t.className, l = c === void 0 ? "" : c, u = t.textBreakAll, d = t.labelRef, f = rJe(), p = eJe(), m = n == null ? i === "center" ? p : f ?? p : T4(n) ? n : UW(n), h, g, _ = lJe(m);
- if (!m || zW(a) && zW(o) && !/*#__PURE__*/ (0, b.isValidElement)(s) && typeof s != "function") return null;
- var v = T4(m) && (i === "insideStart" || i === "insideEnd" || i === "end");
- if (T4(m)) v || (g = sJe(m, t.offset, t.position));
+function D4(e) {
+ var t = JG(e, sJe), n = t.viewBox, r = t.parentViewBox, i = t.position, a = t.value, o = t.children, s = t.content, c = t.className, l = c === void 0 ? "" : c, u = t.textBreakAll, d = t.labelRef, f = nJe(), p = $qe(), m = n == null ? i === "center" ? p : f ?? p : E4(n) ? n : HW(n), h, g, _ = cJe(m);
+ if (!m || RW(a) && RW(o) && !/*#__PURE__*/ (0, b.isValidElement)(s) && typeof s != "function") return null;
+ var v = E4(m) && (i === "insideStart" || i === "insideEnd" || i === "end");
+ if (E4(m)) v || (g = oJe(m, t.offset, t.position));
else if (_) {
- var y = KW({
+ var y = GW({
viewBox: _,
position: i,
offset: t.offset,
- parentViewBox: T4(r) ? void 0 : r,
+ parentViewBox: E4(r) ? void 0 : r,
clamp: !0
});
- g = S4(S4({
+ g = C4(C4({
x: y.x,
y: y.y,
textAnchor: y.horizontalAnchor,
verticalAnchor: y.verticalAnchor
}, y.width === void 0 ? {} : { width: y.width }), y.height === void 0 ? {} : { height: y.height });
}
- var x = S4(S4(S4(S4({}, g?.x === void 0 ? {} : { x: g.x }), g?.y === void 0 ? {} : { y: g.y }), t), {}, { viewBox: m });
+ var x = C4(C4(C4(C4({}, g?.x === void 0 ? {} : { x: g.x }), g?.y === void 0 ? {} : { y: g.y }), t), {}, { viewBox: m });
if (/*#__PURE__*/ (0, b.isValidElement)(s)) {
x.labelRef;
- var S = Kqe(x, Wqe);
+ var S = Gqe(x, Uqe);
return /*#__PURE__*/ (0, b.cloneElement)(s, S);
}
if (typeof s == "function") {
x.content;
- var C = Kqe(x, Gqe);
+ var C = Gqe(x, Wqe);
if (h = /*#__PURE__*/ (0, b.createElement)(s, C), /*#__PURE__*/ (0, b.isValidElement)(h)) return h;
- } else h = iJe(t);
- var w = hW(t);
- return v && T4(m) ? oJe(t, i, h, w, m) : g == null ? null : /*#__PURE__*/ b.createElement(o4, { zIndex: t.zIndex }, /*#__PURE__*/ b.createElement(x4, C4({
+ } else h = rJe(t);
+ var w = mW(t);
+ return v && E4(m) ? aJe(t, i, h, w, m) : g == null ? null : /*#__PURE__*/ b.createElement(s4, { zIndex: t.zIndex }, /*#__PURE__*/ b.createElement(S4, w4({
ref: d,
- className: dv("recharts-label", l)
+ className: fv("recharts-label", l)
}, w, g, {
- textAnchor: Nqe(w.textAnchor) ? w.textAnchor : g.textAnchor,
+ textAnchor: Mqe(w.textAnchor) ? w.textAnchor : g.textAnchor,
breakAll: u
}), h));
}
-E4.displayName = "Label";
-var uJe = (e, t, n) => {
+D4.displayName = "Label";
+var lJe = (e, t, n) => {
if (!e) return null;
var r = {
viewBox: t,
labelRef: n
};
- return e === !0 ? /*#__PURE__*/ b.createElement(E4, C4({ key: "label-implicit" }, r)) : NW(e) ? /*#__PURE__*/ b.createElement(E4, C4({
+ return e === !0 ? /*#__PURE__*/ b.createElement(D4, w4({ key: "label-implicit" }, r)) : MW(e) ? /*#__PURE__*/ b.createElement(D4, w4({
key: "label-implicit",
value: e
- }, r)) : /*#__PURE__*/ (0, b.isValidElement)(e) ? e.type === E4 ? /*#__PURE__*/ (0, b.cloneElement)(e, S4({ key: "label-implicit" }, r)) : /*#__PURE__*/ b.createElement(E4, C4({
+ }, r)) : /*#__PURE__*/ (0, b.isValidElement)(e) ? e.type === D4 ? /*#__PURE__*/ (0, b.cloneElement)(e, C4({ key: "label-implicit" }, r)) : /*#__PURE__*/ b.createElement(D4, w4({
key: "label-implicit",
content: e
- }, r)) : w4(e) ? /*#__PURE__*/ b.createElement(E4, C4({
+ }, r)) : T4(e) ? /*#__PURE__*/ b.createElement(D4, w4({
key: "label-implicit",
content: e
- }, r)) : e && typeof e == "object" ? /*#__PURE__*/ b.createElement(E4, C4({}, e, { key: "label-implicit" }, r)) : null;
+ }, r)) : e && typeof e == "object" ? /*#__PURE__*/ b.createElement(D4, w4({}, e, { key: "label-implicit" }, r)) : null;
};
-function dJe(e) {
+function uJe(e) {
var t = e.label, n = e.labelRef;
- return uJe(t, eJe(), n) || null;
+ return lJe(t, $qe(), n) || null;
}
-function fJe(e) {
+function dJe(e) {
var t = e.label;
- return uJe(t, rJe()) || null;
+ return lJe(t, nJe()) || null;
}
//#endregion
//#region node_modules/recharts/es6/component/LabelList.js
-var pJe = ["valueAccessor"], mJe = [
+var fJe = ["valueAccessor"], pJe = [
"dataKey",
"clockWise",
"id",
"textBreakAll",
"zIndex"
];
-function D4() {
- return D4 = Object.assign ? Object.assign.bind() : function(e) {
+function O4() {
+ return O4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, D4.apply(null, arguments);
+ }, O4.apply(null, arguments);
}
-function hJe(e, t) {
+function mJe(e, t) {
if (e == null) return {};
- var n, r, i = gJe(e, t);
+ var n, r, i = hJe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function gJe(e, t) {
+function hJe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -77995,23 +77995,23 @@ function gJe(e, t) {
}
return n;
}
-var _Je = (e) => {
+var gJe = (e) => {
var t = Array.isArray(e.value) ? e.value[e.value.length - 1] : e.value;
- if (Pqe(t)) return t;
-}, vJe = /*#__PURE__*/ (0, b.createContext)(void 0), O4 = vJe.Provider, yJe = /*#__PURE__*/ (0, b.createContext)(void 0), bJe = yJe.Provider;
+ if (Nqe(t)) return t;
+}, _Je = /*#__PURE__*/ (0, b.createContext)(void 0), k4 = _Je.Provider, vJe = /*#__PURE__*/ (0, b.createContext)(void 0), yJe = vJe.Provider;
+function bJe() {
+ return (0, b.useContext)(_Je);
+}
function xJe() {
return (0, b.useContext)(vJe);
}
-function SJe() {
- return (0, b.useContext)(yJe);
-}
-function k4(e) {
- var t = e.valueAccessor, n = t === void 0 ? _Je : t, r = hJe(e, pJe), i = r.dataKey;
+function A4(e) {
+ var t = e.valueAccessor, n = t === void 0 ? gJe : t, r = mJe(e, fJe), i = r.dataKey;
r.clockWise;
- var a = r.id, o = r.textBreakAll, s = r.zIndex, c = hJe(r, mJe), l = xJe(), u = SJe(), d = l || u;
- return !d || !d.length ? null : /*#__PURE__*/ b.createElement(o4, { zIndex: s ?? iQ.label }, /*#__PURE__*/ b.createElement(yW, { className: "recharts-label-list" }, d.map((e, t) => {
- var s = zW(i) ? n(e, t) : fY(e.payload, i), l = zW(a) ? {} : { id: `${a}-${t}` };
- return /*#__PURE__*/ b.createElement(E4, D4({ key: `label-${t}` }, hW(e), c, l, {
+ var a = r.id, o = r.textBreakAll, s = r.zIndex, c = mJe(r, pJe), l = bJe(), u = xJe(), d = l || u;
+ return !d || !d.length ? null : /*#__PURE__*/ b.createElement(s4, { zIndex: s ?? rQ.label }, /*#__PURE__*/ b.createElement(vW, { className: "recharts-label-list" }, d.map((e, t) => {
+ var s = RW(i) ? n(e, t) : dY(e.payload, i), l = RW(a) ? {} : { id: `${a}-${t}` };
+ return /*#__PURE__*/ b.createElement(D4, O4({ key: `label-${t}` }, mW(e), c, l, {
fill: r.fill ?? e.fill,
parentViewBox: e.parentViewBox,
value: s,
@@ -78022,41 +78022,41 @@ function k4(e) {
}));
})));
}
-k4.displayName = "LabelList";
-function A4(e) {
+A4.displayName = "LabelList";
+function j4(e) {
var t = e.label;
- return t ? t === !0 ? /*#__PURE__*/ b.createElement(k4, { key: "labelList-implicit" }) : /*#__PURE__*/ b.isValidElement(t) || w4(t) ? /*#__PURE__*/ b.createElement(k4, {
+ return t ? t === !0 ? /*#__PURE__*/ b.createElement(A4, { key: "labelList-implicit" }) : /*#__PURE__*/ b.isValidElement(t) || T4(t) ? /*#__PURE__*/ b.createElement(A4, {
key: "labelList-implicit",
content: t
- }) : typeof t == "object" ? /*#__PURE__*/ b.createElement(k4, D4({ key: "labelList-implicit" }, t, { type: String(t.type) })) : null : null;
+ }) : typeof t == "object" ? /*#__PURE__*/ b.createElement(A4, O4({ key: "labelList-implicit" }, t, { type: String(t.type) })) : null : null;
}
//#endregion
//#region node_modules/recharts/es6/shape/Polygon.js
-var CJe = [
+var SJe = [
"points",
"className",
"baseLinePoints",
"connectNulls"
-], wJe;
-function j4() {
- return j4 = Object.assign ? Object.assign.bind() : function(e) {
+], CJe;
+function M4() {
+ return M4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, j4.apply(null, arguments);
+ }, M4.apply(null, arguments);
}
-function TJe(e, t) {
+function wJe(e, t) {
if (e == null) return {};
- var n, r, i = EJe(e, t);
+ var n, r, i = TJe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function EJe(e, t) {
+function TJe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -78065,23 +78065,23 @@ function EJe(e, t) {
}
return n;
}
-function DJe(e, t) {
+function EJe(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var OJe = (e) => e != null && e.x === +e.x && e.y === +e.y, kJe = function() {
+var DJe = (e) => e != null && e.x === +e.x && e.y === +e.y, OJe = function() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = [[]];
e.forEach((e) => {
var n = t[t.length - 1];
- OJe(e) ? n && n.push(e) : n && n.length > 0 && t.push([]);
+ DJe(e) ? n && n.push(e) : n && n.length > 0 && t.push([]);
});
var n = e[0], r = t[t.length - 1];
- OJe(n) && r && r.push(n);
+ DJe(n) && r && r.push(n);
var i = t[t.length - 1];
return i && i.length <= 0 && (t = t.slice(0, -1)), t;
-}, M4 = (e, t) => {
- var n = kJe(e);
+}, N4 = (e, t) => {
+ var n = OJe(e);
t && (n = [n.reduce((e, t) => [...e, ...t], [])]);
- var r = n.map((e) => e.reduce((e, t, n) => OW(wJe ||= DJe([
+ var r = n.map((e) => e.reduce((e, t, n) => DW(CJe ||= EJe([
"",
"",
"",
@@ -78089,29 +78089,29 @@ var OJe = (e) => e != null && e.x === +e.x && e.y === +e.y, kJe = function() {
""
]), e, n === 0 ? "M" : "L", t.x, t.y), "")).join("");
return n.length === 1 ? `${r}Z` : r;
-}, AJe = (e, t, n) => {
- var r = M4(e, n);
- return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${M4(Array.from(t).reverse(), n).slice(1)}`;
-}, jJe = (e) => {
- var t = e.points, n = e.className, r = e.baseLinePoints, i = e.connectNulls, a = TJe(e, CJe);
+}, kJe = (e, t, n) => {
+ var r = N4(e, n);
+ return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${N4(Array.from(t).reverse(), n).slice(1)}`;
+}, AJe = (e) => {
+ var t = e.points, n = e.className, r = e.baseLinePoints, i = e.connectNulls, a = wJe(e, SJe);
if (!t || !t.length) return null;
- var o = dv("recharts-polygon", n);
+ var o = fv("recharts-polygon", n);
if (r && r.length) {
- var s = a.stroke && a.stroke !== "none", c = AJe(t, r, i);
- return /*#__PURE__*/ b.createElement("g", { className: o }, /*#__PURE__*/ b.createElement("path", j4({}, hW(a), {
+ var s = a.stroke && a.stroke !== "none", c = kJe(t, r, i);
+ return /*#__PURE__*/ b.createElement("g", { className: o }, /*#__PURE__*/ b.createElement("path", M4({}, mW(a), {
fill: c.slice(-1) === "Z" ? a.fill : "none",
stroke: "none",
d: c
- })), s ? /*#__PURE__*/ b.createElement("path", j4({}, hW(a), {
+ })), s ? /*#__PURE__*/ b.createElement("path", M4({}, mW(a), {
fill: "none",
- d: M4(t, i)
- })) : null, s ? /*#__PURE__*/ b.createElement("path", j4({}, hW(a), {
+ d: N4(t, i)
+ })) : null, s ? /*#__PURE__*/ b.createElement("path", M4({}, mW(a), {
fill: "none",
- d: M4(r, i)
+ d: N4(r, i)
})) : null);
}
- var l = M4(t, i);
- return /*#__PURE__*/ b.createElement("path", j4({}, hW(a), {
+ var l = N4(t, i);
+ return /*#__PURE__*/ b.createElement("path", M4({}, mW(a), {
fill: l.slice(-1) === "Z" ? a.fill : "none",
className: o,
d: l
@@ -78119,112 +78119,112 @@ var OJe = (e) => e != null && e.x === +e.x && e.y === +e.y, kJe = function() {
};
//#endregion
//#region node_modules/recharts/es6/shape/Dot.js
-function N4() {
- return N4 = Object.assign ? Object.assign.bind() : function(e) {
+function P4() {
+ return P4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, N4.apply(null, arguments);
+ }, P4.apply(null, arguments);
}
-var P4 = (e) => {
- var t = e.cx, n = e.cy, r = e.r, i = e.className, a = dv("recharts-dot", i);
- return MW(t) && MW(n) && MW(r) ? /*#__PURE__*/ b.createElement("circle", N4({}, pW(e), KG(e), {
+var F4 = (e) => {
+ var t = e.cx, n = e.cy, r = e.r, i = e.className, a = fv("recharts-dot", i);
+ return jW(t) && jW(n) && jW(r) ? /*#__PURE__*/ b.createElement("circle", P4({}, fW(e), GG(e), {
className: a,
cx: t,
cy: n,
r
})) : null;
-}, F4 = (e) => e.graphicalItems.polarItems, I4 = Y([
- F4,
- J0,
- Y([SQ, CQ], X0)
-], Q0), L4 = Y([Y([I4], e2), kZ], t2), MJe = Y([
- L4,
- J0,
- I4
-], VHe);
+}, I4 = (e) => e.graphicalItems.polarItems, L4 = Y([
+ I4,
+ Y0,
+ Y([xQ, SQ], Z0)
+], $0), R4 = Y([Y([L4], t2), OZ], n2), jJe = Y([
+ R4,
+ Y0,
+ L4
+], BHe);
Y([
- L4,
- J0,
- I4
+ R4,
+ Y0,
+ L4
], (e, t, n) => n.length > 0 ? e.flatMap((e) => n.flatMap((n) => ({
- value: fY(e, t.dataKey ?? n.dataKey),
+ value: dY(e, t.dataKey ?? n.dataKey),
errorDomain: []
}))).filter(Boolean) : t?.dataKey == null ? e.map((e) => ({
value: e,
errorDomain: []
})) : e.map((e) => ({
- value: fY(e, t.dataKey),
+ value: dY(e, t.dataKey),
errorDomain: []
})));
-var NJe = () => void 0, PJe = Y([
- J0,
- eX,
- L4,
- MJe,
- QZ,
- SQ,
+var MJe = () => void 0, NJe = Y([
+ Y0,
+ $Y,
+ R4,
+ jJe,
+ ZZ,
+ xQ,
Y([
- J0,
- d2,
+ Y0,
f2,
- NJe,
+ p2,
+ MJe,
Y([
+ R4,
+ Y0,
L4,
- J0,
- I4,
- p2,
- SQ,
- Cze
- ], h2),
- NJe,
- eX,
- SQ
- ], _2)
-], v2), FJe = Y([
- PJe,
+ m2,
+ xQ,
+ wze
+ ], g2),
+ MJe,
+ $Y,
+ xQ
+ ], v2)
+], y2), PJe = Y([
+ NJe,
+ X0,
+ x2
+], S2), FJe = Y([x2, Y([
Y0,
- b2
-], x2), IJe = Y([b2, Y([
- J0,
+ NJe,
PJe,
- FJe,
- SQ
-], C2)], MQ), R4 = (e, t, n) => {
+ xQ
+], w2)], jQ), z4 = (e, t, n) => {
switch (t) {
- case "angleAxis": return pQ(e, n);
- case "radiusAxis": return mQ(e, n);
+ case "angleAxis": return fQ(e, n);
+ case "radiusAxis": return pQ(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, z4 = (e, t, n) => {
+}, B4 = (e, t, n) => {
switch (t) {
- case "angleAxis": return zze(e, n);
- case "radiusAxis": return Bze(e, n);
+ case "angleAxis": return Bze(e, n);
+ case "radiusAxis": return Vze(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, B4 = Y([Y([
- R4,
- b2,
- IJe,
- z4
-], B0)], jQ), LJe = Y([
- eX,
- MJe,
- Y0,
- SQ
-], E2), V4 = Y([
- eX,
- R4,
- b2,
- B4,
+}, V4 = Y([Y([
+ z4,
+ x2,
FJe,
+ B4
+], V0)], AQ), IJe = Y([
+ $Y,
+ jJe,
+ X0,
+ xQ
+], D2), H4 = Y([
+ $Y,
z4,
- j2,
- LJe,
- SQ
-], UUe), RJe = Y([V4], (e) => {
+ x2,
+ V4,
+ PJe,
+ B4,
+ M2,
+ IJe,
+ xQ
+], HUe), LJe = Y([H4], (e) => {
if (e) {
var t = /* @__PURE__ */ new Map();
return e.forEach((e) => {
@@ -78232,19 +78232,19 @@ var NJe = () => void 0, PJe = Y([
t.has(n) || t.set(n, e);
}), Array.from(t.values());
}
-}), zJe = Y([
- eX,
- R4,
- B4,
+}), RJe = Y([
+ $Y,
z4,
- j2,
- LJe,
- SQ
-], GUe), BJe = Y([(e, t) => V4(e, "angleAxis", t, !1)], (e) => {
+ V4,
+ B4,
+ M2,
+ IJe,
+ xQ
+], WUe), zJe = Y([(e, t) => H4(e, "angleAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), VJe = Y([(e, t) => V4(e, "radiusAxis", t, !1)], (e) => {
+}), BJe = Y([(e, t) => H4(e, "radiusAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), HJe = [
+}), VJe = [
"gridType",
"radialLines",
"angleAxisId",
@@ -78257,16 +78257,16 @@ var NJe = () => void 0, PJe = Y([
"polarRadius",
"zIndex"
];
-function UJe(e, t) {
+function HJe(e, t) {
if (e == null) return {};
- var n, r, i = WJe(e, t);
+ var n, r, i = UJe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function WJe(e, t) {
+function UJe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -78275,16 +78275,16 @@ function WJe(e, t) {
}
return n;
}
-function H4() {
- return H4 = Object.assign ? Object.assign.bind() : function(e) {
+function U4() {
+ return U4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, H4.apply(null, arguments);
+ }, U4.apply(null, arguments);
}
-function GJe(e, t) {
+function WJe(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -78294,30 +78294,30 @@ function GJe(e, t) {
}
return n;
}
-function U4(e) {
+function W4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? GJe(Object(n), !0).forEach(function(t) {
- KJe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : GJe(Object(n)).forEach(function(t) {
+ t % 2 ? WJe(Object(n), !0).forEach(function(t) {
+ GJe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : WJe(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function KJe(e, t, n) {
- return (t = qJe(t)) in e ? Object.defineProperty(e, t, {
+function GJe(e, t, n) {
+ return (t = KJe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function qJe(e) {
- var t = JJe(e, "string");
+function KJe(e) {
+ var t = qJe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function JJe(e, t) {
+function qJe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -78327,66 +78327,66 @@ function JJe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var YJe = (e, t, n, r) => {
+var JJe = (e, t, n, r) => {
var i = "";
return r.forEach((r, a) => {
- var o = yZ(t, n, e, r);
+ var o = vZ(t, n, e, r);
i += a ? `L ${o.x},${o.y}` : `M ${o.x},${o.y}`;
}), i += "Z", i;
-}, XJe = (e) => {
+}, YJe = (e) => {
var t = e.cx, n = e.cy, r = e.innerRadius, i = e.outerRadius, a = e.polarAngles, o = e.radialLines;
if (!a || !a.length || !o) return null;
- var s = U4({}, pW(e));
+ var s = W4({}, fW(e));
return /*#__PURE__*/ b.createElement("g", { className: "recharts-polar-grid-angle" }, a.map((e) => {
- var a = yZ(t, n, r, e), o = yZ(t, n, i, e);
- return /*#__PURE__*/ b.createElement("line", H4({ key: `line-${e}` }, s, {
+ var a = vZ(t, n, r, e), o = vZ(t, n, i, e);
+ return /*#__PURE__*/ b.createElement("line", U4({ key: `line-${e}` }, s, {
x1: a.x,
y1: a.y,
x2: o.x,
y2: o.y
}));
}));
-}, ZJe = (e) => {
- var t = e.cx, n = e.cy, r = e.radius, i = U4({}, pW(e));
- return /*#__PURE__*/ b.createElement("circle", H4({}, i, {
- className: dv("recharts-polar-grid-concentric-circle", e.className),
+}, XJe = (e) => {
+ var t = e.cx, n = e.cy, r = e.radius, i = W4({}, fW(e));
+ return /*#__PURE__*/ b.createElement("circle", U4({}, i, {
+ className: fv("recharts-polar-grid-concentric-circle", e.className),
cx: t,
cy: n,
r
}));
-}, QJe = (e) => {
- var t = e.radius, n = U4({}, pW(e));
- return /*#__PURE__*/ b.createElement("path", H4({}, n, {
- className: dv("recharts-polar-grid-concentric-polygon", e.className),
- d: YJe(t, e.cx, e.cy, e.polarAngles)
+}, ZJe = (e) => {
+ var t = e.radius, n = W4({}, fW(e));
+ return /*#__PURE__*/ b.createElement("path", U4({}, n, {
+ className: fv("recharts-polar-grid-concentric-polygon", e.className),
+ d: JJe(t, e.cx, e.cy, e.polarAngles)
}));
-}, $Je = (e) => {
+}, QJe = (e) => {
var t = e.polarRadius, n = e.gridType;
if (!t || !t.length) return null;
var r = Math.max(...t), i = e.fill && e.fill !== "none";
- return /*#__PURE__*/ b.createElement("g", { className: "recharts-polar-grid-concentric" }, i && n === "circle" && /*#__PURE__*/ b.createElement(ZJe, H4({}, e, { radius: r })), i && n !== "circle" && /*#__PURE__*/ b.createElement(QJe, H4({}, e, { radius: r })), t.map((t, r) => {
+ return /*#__PURE__*/ b.createElement("g", { className: "recharts-polar-grid-concentric" }, i && n === "circle" && /*#__PURE__*/ b.createElement(XJe, U4({}, e, { radius: r })), i && n !== "circle" && /*#__PURE__*/ b.createElement(ZJe, U4({}, e, { radius: r })), t.map((t, r) => {
var i = r;
- return n === "circle" ? /*#__PURE__*/ b.createElement(ZJe, H4({ key: i }, e, {
+ return n === "circle" ? /*#__PURE__*/ b.createElement(XJe, U4({ key: i }, e, {
fill: "none",
radius: t
- })) : /*#__PURE__*/ b.createElement(QJe, H4({ key: i }, e, {
+ })) : /*#__PURE__*/ b.createElement(ZJe, U4({ key: i }, e, {
fill: "none",
radius: t
}));
}));
-}, eYe = {
+}, $Je = {
angleAxisId: 0,
radiusAxisId: 0,
gridType: "polygon",
radialLines: !0,
- zIndex: iQ.grid,
+ zIndex: rQ.grid,
stroke: "#ccc",
strokeWidth: 1,
fill: "none"
-}, tYe = (e) => {
- var t = YG(e, eYe), n = t.gridType, r = t.radialLines, i = t.angleAxisId, a = t.radiusAxisId, o = t.cx, s = t.cy, c = t.innerRadius, l = t.outerRadius, u = t.polarAngles, d = t.polarRadius, f = t.zIndex, p = UJe(t, HJe), m = J(xQ), h = J((e) => BJe(e, i)), g = J((e) => VJe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
+}, eYe = (e) => {
+ var t = JG(e, $Je), n = t.gridType, r = t.radialLines, i = t.angleAxisId, a = t.radiusAxisId, o = t.cx, s = t.cy, c = t.innerRadius, l = t.outerRadius, u = t.polarAngles, d = t.polarRadius, f = t.zIndex, p = HJe(t, VJe), m = J(bQ), h = J((e) => zJe(e, i)), g = J((e) => BJe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
if (_ == null || v == null) return null;
- var y = U4({
+ var y = W4({
cx: m?.cx ?? o ?? 0,
cy: m?.cy ?? s ?? 0,
innerRadius: m?.innerRadius ?? c ?? 0,
@@ -78395,13 +78395,13 @@ var YJe = (e, t, n, r) => {
polarRadius: v,
zIndex: f
}, p);
- return y.outerRadius <= 0 ? null : /*#__PURE__*/ b.createElement(o4, { zIndex: y.zIndex }, /*#__PURE__*/ b.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ b.createElement($Je, H4({
+ return y.outerRadius <= 0 ? null : /*#__PURE__*/ b.createElement(s4, { zIndex: y.zIndex }, /*#__PURE__*/ b.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ b.createElement(QJe, U4({
gridType: n,
radialLines: r
}, y, {
polarAngles: _,
polarRadius: v
- })), /*#__PURE__*/ b.createElement(XJe, H4({
+ })), /*#__PURE__*/ b.createElement(YJe, U4({
gridType: n,
radialLines: r
}, y, {
@@ -78409,19 +78409,19 @@ var YJe = (e, t, n, r) => {
polarRadius: v
}))));
};
-tYe.displayName = "PolarGrid";
+eYe.displayName = "PolarGrid";
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/toArray.mjs
-function W4(e) {
+function G4(e) {
return Array.isArray(e) ? e : Array.from(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/maxBy.mjs
-function nYe(e, t = eK) {
+function tYe(e, t = $G) {
if (e == null) return;
- let n = W4(e);
+ let n = G4(e);
if (n.length === 0) return;
- let r = RK(t), i, a;
+ let r = LK(t), i, a;
for (let e = 0; e < n.length; e++) {
let t = n[e], o = r(t, e, n);
o == null || Number.isNaN(o) || typeof o == "symbol" || (a === void 0 || o > a) && (a = o, i = t);
@@ -78430,11 +78430,11 @@ function nYe(e, t = eK) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/minBy.mjs
-function rYe(e, t = eK) {
+function nYe(e, t = $G) {
if (e == null) return;
- let n = W4(e);
+ let n = G4(e);
if (n.length === 0) return;
- let r = RK(t), i, a;
+ let r = LK(t), i, a;
for (let e = 0; e < n.length; e++) {
let t = n[e], o = r(t, e, n);
o == null || Number.isNaN(o) || typeof o == "symbol" || (a === void 0 || o < a) && (a = o, i = t);
@@ -78443,7 +78443,7 @@ function rYe(e, t = eK) {
}
//#endregion
//#region node_modules/recharts/es6/state/polarAxisSlice.js
-var iYe = MJ({
+var rYe = jJ({
name: "polarAxis",
initialState: {
radiusAxis: {},
@@ -78451,47 +78451,47 @@ var iYe = MJ({
},
reducers: {
addRadiusAxis(e, t) {
- e.radiusAxis[t.payload.id] = xJ(t.payload);
+ e.radiusAxis[t.payload.id] = bJ(t.payload);
},
removeRadiusAxis(e, t) {
delete e.radiusAxis[t.payload.id];
},
addAngleAxis(e, t) {
- e.angleAxis[t.payload.id] = xJ(t.payload);
+ e.angleAxis[t.payload.id] = bJ(t.payload);
},
removeAngleAxis(e, t) {
delete e.angleAxis[t.payload.id];
}
}
-}), G4 = iYe.actions, aYe = G4.addRadiusAxis, oYe = G4.removeRadiusAxis, sYe = G4.addAngleAxis, cYe = G4.removeAngleAxis, lYe = iYe.reducer;
+}), K4 = rYe.actions, iYe = K4.addRadiusAxis, aYe = K4.removeRadiusAxis, oYe = K4.addAngleAxis, sYe = K4.removeAngleAxis, cYe = rYe.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getClassNameFromUnknown.js
-function K4(e) {
+function q4(e) {
return e && typeof e == "object" && "className" in e && typeof e.className == "string" ? e.className : "";
}
//#endregion
//#region node_modules/recharts/es6/polar/PolarRadiusAxis.js
-var uYe = ["type"], dYe = [
+var lYe = ["type"], uYe = [
"cx",
"cy",
"angle",
"axisLine"
-], fYe = [
+], dYe = [
"angle",
"tickFormatter",
"stroke",
"tick"
];
-function q4() {
- return q4 = Object.assign ? Object.assign.bind() : function(e) {
+function J4() {
+ return J4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, q4.apply(null, arguments);
+ }, J4.apply(null, arguments);
}
-function pYe(e, t) {
+function fYe(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -78501,30 +78501,30 @@ function pYe(e, t) {
}
return n;
}
-function J4(e) {
+function Y4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? pYe(Object(n), !0).forEach(function(t) {
- mYe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : pYe(Object(n)).forEach(function(t) {
+ t % 2 ? fYe(Object(n), !0).forEach(function(t) {
+ pYe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fYe(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function mYe(e, t, n) {
- return (t = hYe(t)) in e ? Object.defineProperty(e, t, {
+function pYe(e, t, n) {
+ return (t = mYe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function hYe(e) {
- var t = gYe(e, "string");
+function mYe(e) {
+ var t = hYe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function gYe(e, t) {
+function hYe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -78534,16 +78534,16 @@ function gYe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Y4(e, t) {
+function X4(e, t) {
if (e == null) return {};
- var n, r, i = _Ye(e, t);
+ var n, r, i = gYe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function _Ye(e, t) {
+function gYe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -78552,20 +78552,20 @@ function _Ye(e, t) {
}
return n;
}
-var vYe = "radiusAxis";
-function yYe(e) {
- var t = HK(), n = iX(), r = (0, b.useMemo)(() => {
- var t = e.type, r = Y4(e, uYe), i = cQ(n, "radiusAxis", t);
- if (i != null) return J4(J4({}, r), {}, { type: i });
+var _Ye = "radiusAxis";
+function vYe(e) {
+ var t = VK(), n = rX(), r = (0, b.useMemo)(() => {
+ var t = e.type, r = X4(e, lYe), i = sQ(n, "radiusAxis", t);
+ if (i != null) return Y4(Y4({}, r), {}, { type: i });
}, [e, n]);
- return (0, b.useEffect)(() => r == null ? HW : (t(aYe(r)), () => {
- t(oYe(r));
+ return (0, b.useEffect)(() => r == null ? VW : (t(iYe(r)), () => {
+ t(aYe(r));
}), [t, r]), null;
}
-var bYe = (e, t, n, r) => {
+var yYe = (e, t, n, r) => {
var i = e.coordinate;
- return yZ(n, r, i, t);
-}, xYe = (e) => {
+ return vZ(n, r, i, t);
+}, bYe = (e) => {
var t;
switch (e) {
case "left":
@@ -78577,49 +78577,49 @@ var bYe = (e, t, n, r) => {
default: t = "middle";
}
return t;
-}, SYe = (e, t, n, r) => {
- var i = nYe(r, (e) => e.coordinate || 0);
+}, xYe = (e, t, n, r) => {
+ var i = tYe(r, (e) => e.coordinate || 0);
return {
cx: t,
cy: n,
startAngle: e,
endAngle: e,
- innerRadius: rYe(r, (e) => e.coordinate || 0)?.coordinate || 0,
+ innerRadius: nYe(r, (e) => e.coordinate || 0)?.coordinate || 0,
outerRadius: i?.coordinate || 0,
clockWise: !1
};
-}, CYe = (e, t) => {
- var n = e.cx, r = e.cy, i = e.angle, a = e.axisLine, o = Y4(e, dYe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = yZ(n, r, s[0], i), l = yZ(n, r, s[1], i), u = J4(J4(J4({}, pW(o)), {}, { fill: "none" }, pW(a)), {}, {
+}, SYe = (e, t) => {
+ var n = e.cx, r = e.cy, i = e.angle, a = e.axisLine, o = X4(e, uYe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = vZ(n, r, s[0], i), l = vZ(n, r, s[1], i), u = Y4(Y4(Y4({}, fW(o)), {}, { fill: "none" }, fW(a)), {}, {
x1: c.x,
y1: c.y,
x2: l.x,
y2: l.y
});
- return /*#__PURE__*/ b.createElement("line", q4({ className: "recharts-polar-radius-axis-line" }, u));
-}, wYe = (e, t, n) => /*#__PURE__*/ b.isValidElement(e) ? /*#__PURE__*/ b.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ b.createElement(x4, q4({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), TYe = (e, t) => {
- var n = e.angle, r = e.tickFormatter, i = e.stroke, a = e.tick, o = Y4(e, fYe), s = xYe(e.orientation), c = pW(o), l = mW(a), u = t.map((t, o) => {
- var u = bYe(t, e.angle, e.cx, e.cy), d = J4(J4(J4(J4({
+ return /*#__PURE__*/ b.createElement("line", J4({ className: "recharts-polar-radius-axis-line" }, u));
+}, CYe = (e, t, n) => /*#__PURE__*/ b.isValidElement(e) ? /*#__PURE__*/ b.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ b.createElement(S4, J4({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), wYe = (e, t) => {
+ var n = e.angle, r = e.tickFormatter, i = e.stroke, a = e.tick, o = X4(e, dYe), s = bYe(e.orientation), c = fW(o), l = pW(a), u = t.map((t, o) => {
+ var u = yYe(t, e.angle, e.cx, e.cy), d = Y4(Y4(Y4(Y4({
textAnchor: s,
transform: `rotate(${90 - n}, ${u.x}, ${u.y})`
}, c), {}, {
stroke: "none",
fill: i
}, l), {}, { index: o }, u), {}, { payload: t });
- return /*#__PURE__*/ b.createElement(yW, q4({
- className: dv("recharts-polar-radius-axis-tick", K4(a)),
+ return /*#__PURE__*/ b.createElement(vW, J4({
+ className: fv("recharts-polar-radius-axis-tick", q4(a)),
key: `tick-${t.coordinate}`
- }, qG(e, t, o)), wYe(a, d, r ? r(t.value, o) : t.value));
+ }, KG(e, t, o)), CYe(a, d, r ? r(t.value, o) : t.value));
});
- return /*#__PURE__*/ b.createElement(yW, { className: "recharts-polar-radius-axis-ticks" }, u);
-}, EYe = (e) => {
- var t = e.radiusAxisId, n = J(xQ), r = J((e) => B4(e, "radiusAxis", t)), i = J((e) => V4(e, "radiusAxis", t, !1));
+ return /*#__PURE__*/ b.createElement(vW, { className: "recharts-polar-radius-axis-ticks" }, u);
+}, TYe = (e) => {
+ var t = e.radiusAxisId, n = J(bQ), r = J((e) => V4(e, "radiusAxis", t)), i = J((e) => H4(e, "radiusAxis", t, !1));
if (n == null || !i || !i.length || r == null) return null;
- var a = J4(J4({}, e), {}, { scale: r }, n), o = a.tick, s = a.axisLine;
- return /*#__PURE__*/ b.createElement(o4, { zIndex: a.zIndex }, /*#__PURE__*/ b.createElement(yW, { className: dv("recharts-polar-radius-axis", vYe, a.className) }, s && CYe(a, i), o && TYe(a, i), /*#__PURE__*/ b.createElement(nJe, SYe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ b.createElement(fJe, { label: a.label }), a.children)));
+ var a = Y4(Y4({}, e), {}, { scale: r }, n), o = a.tick, s = a.axisLine;
+ return /*#__PURE__*/ b.createElement(s4, { zIndex: a.zIndex }, /*#__PURE__*/ b.createElement(vW, { className: fv("recharts-polar-radius-axis", _Ye, a.className) }, s && SYe(a, i), o && wYe(a, i), /*#__PURE__*/ b.createElement(tJe, xYe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ b.createElement(dJe, { label: a.label }), a.children)));
};
-function DYe(e) {
- var t = YG(e, oQ);
- return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(yYe, {
+function EYe(e) {
+ var t = JG(e, aQ);
+ return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(vYe, {
domain: t.domain,
id: t.radiusAxisId,
scale: t.scale,
@@ -78636,22 +78636,22 @@ function DYe(e) {
ticks: t.ticks,
tickCount: t.tickCount,
tick: t.tick
- }), /*#__PURE__*/ b.createElement(EYe, t));
+ }), /*#__PURE__*/ b.createElement(TYe, t));
}
-DYe.displayName = "PolarRadiusAxis";
+EYe.displayName = "PolarRadiusAxis";
//#endregion
//#region node_modules/recharts/es6/polar/PolarAngleAxis.js
-var OYe = ["children", "type"], kYe = ["ref"];
-function X4() {
- return X4 = Object.assign ? Object.assign.bind() : function(e) {
+var DYe = ["children", "type"], OYe = ["ref"];
+function Z4() {
+ return Z4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, X4.apply(null, arguments);
+ }, Z4.apply(null, arguments);
}
-function AYe(e, t) {
+function kYe(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -78661,30 +78661,30 @@ function AYe(e, t) {
}
return n;
}
-function Z4(e) {
+function Q4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? AYe(Object(n), !0).forEach(function(t) {
- jYe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : AYe(Object(n)).forEach(function(t) {
+ t % 2 ? kYe(Object(n), !0).forEach(function(t) {
+ AYe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : kYe(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function jYe(e, t, n) {
- return (t = MYe(t)) in e ? Object.defineProperty(e, t, {
+function AYe(e, t, n) {
+ return (t = jYe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function MYe(e) {
- var t = NYe(e, "string");
+function jYe(e) {
+ var t = MYe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function NYe(e, t) {
+function MYe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -78694,16 +78694,16 @@ function NYe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function PYe(e, t) {
+function NYe(e, t) {
if (e == null) return {};
- var n, r, i = FYe(e, t);
+ var n, r, i = PYe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function FYe(e, t) {
+function PYe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -78712,50 +78712,50 @@ function FYe(e, t) {
}
return n;
}
-var IYe = 1e-5, LYe = Math.cos(vZ(45)), RYe = "angleAxis";
-function zYe(e) {
- var t = HK(), n = iX(), r = (0, b.useMemo)(() => {
+var FYe = 1e-5, IYe = Math.cos(_Z(45)), LYe = "angleAxis";
+function RYe(e) {
+ var t = VK(), n = rX(), r = (0, b.useMemo)(() => {
e.children;
- var t = e.type, r = PYe(e, OYe), i = cQ(n, "angleAxis", t);
- if (i != null) return Z4(Z4({}, r), {}, { type: i });
- }, [e, n]), i = r === J((e) => pQ(e, r?.id));
- return (0, b.useEffect)(() => r == null ? HW : (t(sYe(r)), () => {
- t(cYe(r));
+ var t = e.type, r = NYe(e, DYe), i = sQ(n, "angleAxis", t);
+ if (i != null) return Q4(Q4({}, r), {}, { type: i });
+ }, [e, n]), i = r === J((e) => fQ(e, r?.id));
+ return (0, b.useEffect)(() => r == null ? VW : (t(oYe(r)), () => {
+ t(sYe(r));
}), [t, r]), i ? e.children : null;
}
-var BYe = (e, t) => {
- var n = t.cx, r = t.cy, i = t.radius, a = t.orientation, o = t.tickSize || 8, s = yZ(n, r, i, e.coordinate), c = yZ(n, r, i + (a === "inner" ? -1 : 1) * o, e.coordinate);
+var zYe = (e, t) => {
+ var n = t.cx, r = t.cy, i = t.radius, a = t.orientation, o = t.tickSize || 8, s = vZ(n, r, i, e.coordinate), c = vZ(n, r, i + (a === "inner" ? -1 : 1) * o, e.coordinate);
return {
x1: s.x,
y1: s.y,
x2: c.x,
y2: c.y
};
-}, VYe = (e, t) => {
- var n = Math.cos(vZ(-e.coordinate));
- return n > IYe ? t === "outer" ? "start" : "end" : n < -IYe ? t === "outer" ? "end" : "start" : "middle";
+}, BYe = (e, t) => {
+ var n = Math.cos(_Z(-e.coordinate));
+ return n > FYe ? t === "outer" ? "start" : "end" : n < -FYe ? t === "outer" ? "end" : "start" : "middle";
+}, VYe = (e) => {
+ var t = Math.cos(_Z(-e.coordinate)), n = Math.sin(_Z(-e.coordinate));
+ return Math.abs(t) <= IYe ? n > 0 ? "start" : "end" : "middle";
}, HYe = (e) => {
- var t = Math.cos(vZ(-e.coordinate)), n = Math.sin(vZ(-e.coordinate));
- return Math.abs(t) <= LYe ? n > 0 ? "start" : "end" : "middle";
-}, UYe = (e) => {
var t = e.cx, n = e.cy, r = e.radius, i = e.axisLineType, a = e.axisLine, o = e.ticks;
if (!a) return null;
- var s = Z4(Z4({}, pW(e)), {}, { fill: "none" }, pW(a));
- if (i === "circle") return /*#__PURE__*/ b.createElement(P4, X4({ className: "recharts-polar-angle-axis-line" }, s, {
+ var s = Q4(Q4({}, fW(e)), {}, { fill: "none" }, fW(a));
+ if (i === "circle") return /*#__PURE__*/ b.createElement(F4, Z4({ className: "recharts-polar-angle-axis-line" }, s, {
cx: t,
cy: n,
r
}));
- var c = o.map((e) => yZ(t, n, r, e.coordinate));
- return /*#__PURE__*/ b.createElement(jJe, X4({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
-}, WYe = (e) => {
+ var c = o.map((e) => vZ(t, n, r, e.coordinate));
+ return /*#__PURE__*/ b.createElement(AJe, Z4({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
+}, UYe = (e) => {
var t = e.tick, n = e.tickProps, r = e.value;
- return t ? /*#__PURE__*/ b.isValidElement(t) ? /*#__PURE__*/ b.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ b.createElement(x4, X4({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
-}, GYe = (e) => {
- var t = e.tick, n = e.tickLine, r = e.tickFormatter, i = e.stroke, a = e.ticks, o = pW(e);
+ return t ? /*#__PURE__*/ b.isValidElement(t) ? /*#__PURE__*/ b.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ b.createElement(S4, Z4({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
+}, WYe = (e) => {
+ var t = e.tick, n = e.tickLine, r = e.tickFormatter, i = e.stroke, a = e.ticks, o = fW(e);
o.ref;
- var s = PYe(o, kYe), c = mW(t), l = Z4(Z4({}, s), {}, { fill: "none" }, pW(n)), u = a.map((a, o) => {
- var u = BYe(a, e), d = VYe(a, e.orientation), f = HYe(a), p = Z4(Z4(Z4({}, s), {}, {
+ var s = NYe(o, OYe), c = pW(t), l = Q4(Q4({}, s), {}, { fill: "none" }, fW(n)), u = a.map((a, o) => {
+ var u = zYe(a, e), d = BYe(a, e.orientation), f = VYe(a), p = Q4(Q4(Q4({}, s), {}, {
textAnchor: d,
verticalAnchor: f,
stroke: "none",
@@ -78766,28 +78766,28 @@ var BYe = (e, t) => {
x: u.x2,
y: u.y2
});
- return /*#__PURE__*/ b.createElement(yW, X4({
- className: dv("recharts-polar-angle-axis-tick", K4(t)),
+ return /*#__PURE__*/ b.createElement(vW, Z4({
+ className: fv("recharts-polar-angle-axis-tick", q4(t)),
key: `tick-${a.coordinate}`
- }, qG(e, a, o)), n && /*#__PURE__*/ b.createElement("line", X4({ className: "recharts-polar-angle-axis-tick-line" }, l, u)), /*#__PURE__*/ b.createElement(WYe, {
+ }, KG(e, a, o)), n && /*#__PURE__*/ b.createElement("line", Z4({ className: "recharts-polar-angle-axis-tick-line" }, l, u)), /*#__PURE__*/ b.createElement(UYe, {
tick: t,
tickProps: p,
value: r ? r(a.value, o) : a.value
}));
});
- return /*#__PURE__*/ b.createElement(yW, { className: "recharts-polar-angle-axis-ticks" }, u);
-}, KYe = (e) => {
- var t = e.angleAxisId, n = J(xQ), r = J((e) => B4(e, "angleAxis", t)), i = IY(), a = J((e) => RJe(e, "angleAxis", t, i));
+ return /*#__PURE__*/ b.createElement(vW, { className: "recharts-polar-angle-axis-ticks" }, u);
+}, GYe = (e) => {
+ var t = e.angleAxisId, n = J(bQ), r = J((e) => V4(e, "angleAxis", t)), i = FY(), a = J((e) => LJe(e, "angleAxis", t, i));
if (n == null || !a || !a.length || r == null) return null;
- var o = Z4(Z4(Z4({}, e), {}, { scale: r }, n), {}, {
+ var o = Q4(Q4(Q4({}, e), {}, { scale: r }, n), {}, {
radius: n.outerRadius,
ticks: a
});
- return /*#__PURE__*/ b.createElement(o4, { zIndex: o.zIndex }, /*#__PURE__*/ b.createElement(yW, { className: dv("recharts-polar-angle-axis", RYe, o.className) }, /*#__PURE__*/ b.createElement(UYe, o), /*#__PURE__*/ b.createElement(GYe, o)));
+ return /*#__PURE__*/ b.createElement(s4, { zIndex: o.zIndex }, /*#__PURE__*/ b.createElement(vW, { className: fv("recharts-polar-angle-axis", LYe, o.className) }, /*#__PURE__*/ b.createElement(HYe, o), /*#__PURE__*/ b.createElement(WYe, o)));
};
-function Q4(e) {
- var t = YG(e, aQ);
- return /*#__PURE__*/ b.createElement(zYe, {
+function $4(e) {
+ var t = JG(e, iQ);
+ return /*#__PURE__*/ b.createElement(RYe, {
id: t.angleAxisId,
scale: t.scale,
type: t.type,
@@ -78804,12 +78804,12 @@ function Q4(e) {
ticks: t.ticks,
tick: t.tick,
domain: t.domain
- }, /*#__PURE__*/ b.createElement(KYe, t));
+ }, /*#__PURE__*/ b.createElement(GYe, t));
}
-Q4.displayName = "PolarAngleAxis";
+$4.displayName = "PolarAngleAxis";
//#endregion
//#region node_modules/react-is/cjs/react-is.production.js
-var qYe = /* @__PURE__ */ o(((e) => {
+var KYe = /* @__PURE__ */ o(((e) => {
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.view_transition");
function m(e) {
if (typeof e == "object" && e) {
@@ -78838,26 +78838,26 @@ var qYe = /* @__PURE__ */ o(((e) => {
e.isFragment = function(e) {
return m(e) === r;
};
-})), JYe = (/* @__PURE__ */ o(((e, t) => {
- t.exports = qYe();
-})))(), YYe = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", XYe = null, $4 = null, ZYe = (e) => {
- if (e === XYe && Array.isArray($4)) return $4;
+})), qYe = (/* @__PURE__ */ o(((e, t) => {
+ t.exports = KYe();
+})))(), JYe = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", YYe = null, e3 = null, XYe = (e) => {
+ if (e === YYe && Array.isArray(e3)) return e3;
var t = [];
return b.Children.forEach(e, (e) => {
- zW(e) || ((0, JYe.isFragment)(e) ? t = t.concat(ZYe(e.props.children)) : t.push(e));
- }), $4 = t, XYe = e, t;
+ RW(e) || ((0, qYe.isFragment)(e) ? t = t.concat(XYe(e.props.children)) : t.push(e));
+ }), e3 = t, YYe = e, t;
};
-function QYe(e, t) {
+function ZYe(e, t) {
var n = [], r = [];
- return r = Array.isArray(t) ? t.map((e) => YYe(e)) : [YYe(t)], ZYe(e).forEach((e) => {
- var t = EW(e, "type.displayName") || EW(e, "type.name");
+ return r = Array.isArray(t) ? t.map((e) => JYe(e)) : [JYe(t)], XYe(e).forEach((e) => {
+ var t = TW(e, "type.displayName") || TW(e, "type.name");
t && r.indexOf(t) !== -1 && n.push(e);
}), n;
}
-var e3 = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;
+var t3 = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;
//#endregion
//#region node_modules/recharts/es6/util/ActiveShapeUtils.js
-function $Ye(e, t) {
+function QYe(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -78867,30 +78867,30 @@ function $Ye(e, t) {
}
return n;
}
-function eXe(e) {
+function $Ye(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? $Ye(Object(n), !0).forEach(function(t) {
- tXe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $Ye(Object(n)).forEach(function(t) {
+ t % 2 ? QYe(Object(n), !0).forEach(function(t) {
+ eXe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : QYe(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function tXe(e, t, n) {
- return (t = nXe(t)) in e ? Object.defineProperty(e, t, {
+function eXe(e, t, n) {
+ return (t = tXe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function nXe(e) {
- var t = rXe(e, "string");
+function tXe(e) {
+ var t = nXe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function rXe(e, t) {
+function nXe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -78900,49 +78900,49 @@ function rXe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function iXe(e, t) {
- return eXe(eXe({}, t), e);
+function rXe(e, t) {
+ return $Ye($Ye({}, t), e);
}
-function aXe(e) {
+function iXe(e) {
return /*#__PURE__*/ (0, b.isValidElement)(e) ? e.props : e;
}
-function oXe(e, t) {
- return /*#__PURE__*/ (0, b.cloneElement)(e, iXe(aXe(e), t));
+function aXe(e, t) {
+ return /*#__PURE__*/ (0, b.cloneElement)(e, rXe(iXe(e), t));
}
-function sXe(e) {
+function oXe(e) {
if ("index" in e) {
var t = e.index;
return typeof t == "number" || typeof t == "string" ? t : void 0;
}
}
-function cXe(e) {
+function sXe(e) {
return "isActive" in e && e.isActive === !0;
}
-function t3(e) {
- var t = e.option, n = e.DefaultShape, r = e.shapeProps, i = e.activeClassName, a = i === void 0 ? "recharts-active-shape" : i, o = e.inActiveClassName, s = o === void 0 ? "recharts-shape" : o, c = sXe(r), l = /*#__PURE__*/ (0, b.isValidElement)(t) ? oXe(t, r) : t === n ? /*#__PURE__*/ b.createElement(n, r) : typeof t == "function" ? t(r, c) : typeof t == "object" ? /*#__PURE__*/ b.createElement(n, iXe(t, r)) : /*#__PURE__*/ b.createElement(n, r);
- return cXe(r) ? /*#__PURE__*/ b.createElement(yW, { className: a }, l) : /*#__PURE__*/ b.createElement(yW, { className: s }, l);
+function n3(e) {
+ var t = e.option, n = e.DefaultShape, r = e.shapeProps, i = e.activeClassName, a = i === void 0 ? "recharts-active-shape" : i, o = e.inActiveClassName, s = o === void 0 ? "recharts-shape" : o, c = oXe(r), l = /*#__PURE__*/ (0, b.isValidElement)(t) ? aXe(t, r) : t === n ? /*#__PURE__*/ b.createElement(n, r) : typeof t == "function" ? t(r, c) : typeof t == "object" ? /*#__PURE__*/ b.createElement(n, rXe(t, r)) : /*#__PURE__*/ b.createElement(n, r);
+ return sXe(r) ? /*#__PURE__*/ b.createElement(vW, { className: a }, l) : /*#__PURE__*/ b.createElement(vW, { className: s }, l);
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipContext.js
-var n3 = (e, t, n) => {
- var r = HK();
+var r3 = (e, t, n) => {
+ var r = VK();
return (i, a) => (o) => {
- e?.(i, a, o), r(iWe({
+ e?.(i, a, o), r(rWe({
activeIndex: String(a),
activeDataKey: t,
activeCoordinate: i.tooltipPosition,
activeGraphicalItemId: n
}));
};
-}, r3 = (e) => {
- var t = HK();
+}, i3 = (e) => {
+ var t = VK();
return (n, r) => (i) => {
- e?.(n, r, i), t(aWe());
+ e?.(n, r, i), t(iWe());
};
-}, i3 = (e, t, n) => {
- var r = HK();
+}, a3 = (e, t, n) => {
+ var r = VK();
return (i, a) => (o) => {
- e?.(i, a, o), r(sWe({
+ e?.(i, a, o), r(oWe({
activeIndex: String(a),
activeDataKey: t,
activeCoordinate: i.tooltipPosition,
@@ -78952,10 +78952,10 @@ var n3 = (e, t, n) => {
};
//#endregion
//#region node_modules/recharts/es6/state/SetTooltipEntrySettings.js
-function a3(e) {
- var t = e.tooltipEntrySettings, n = HK(), r = IY(), i = (0, b.useRef)(null);
+function o3(e) {
+ var t = e.tooltipEntrySettings, n = VK(), r = FY(), i = (0, b.useRef)(null);
return (0, b.useLayoutEffect)(() => {
- r || (i.current === null ? n(eWe(t)) : i.current !== t && n(tWe({
+ r || (i.current === null ? n($Ue(t)) : i.current !== t && n(eWe({
prev: i.current,
next: t
})), i.current = t);
@@ -78964,15 +78964,15 @@ function a3(e) {
n,
r
]), (0, b.useLayoutEffect)(() => () => {
- i.current &&= (n(nWe(i.current)), null);
+ i.current &&= (n(tWe(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/state/SetLegendPayload.js
-function o3(e) {
- var t = e.legendPayload, n = HK(), r = IY(), i = (0, b.useRef)(null);
+function s3(e) {
+ var t = e.legendPayload, n = VK(), r = FY(), i = (0, b.useRef)(null);
return (0, b.useLayoutEffect)(() => {
- r || (i.current === null ? n(lX(t)) : i.current !== t && n(uX({
+ r || (i.current === null ? n(cX(t)) : i.current !== t && n(lX({
prev: i.current,
next: t
})), i.current = t);
@@ -78981,13 +78981,13 @@ function o3(e) {
r,
t
]), (0, b.useLayoutEffect)(() => () => {
- i.current &&= (n(dX(i.current)), null);
+ i.current &&= (n(uX(i.current)), null);
}, [n]), null;
}
-function lXe(e) {
- var t = e.legendPayload, n = HK(), r = J(eX), i = (0, b.useRef)(null);
+function cXe(e) {
+ var t = e.legendPayload, n = VK(), r = J($Y), i = (0, b.useRef)(null);
return (0, b.useLayoutEffect)(() => {
- (r === "centric" || r === "radial") && (i.current === null ? n(lX(t)) : i.current !== t && n(uX({
+ (r === "centric" || r === "radial") && (i.current === null ? n(cX(t)) : i.current !== t && n(lX({
prev: i.current,
next: t
})), i.current = t);
@@ -78996,30 +78996,30 @@ function lXe(e) {
r,
t
]), (0, b.useLayoutEffect)(() => () => {
- i.current &&= (n(dX(i.current)), null);
+ i.current &&= (n(uX(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/animation/matchBy.js
-function uXe(e, t) {
- return hXe(e) || mXe(e, t) || fXe(e, t) || dXe();
+function lXe(e, t) {
+ return mXe(e) || pXe(e, t) || dXe(e, t) || uXe();
}
-function dXe() {
+function uXe() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function fXe(e, t) {
+function dXe(e, t) {
if (e) {
- if (typeof e == "string") return pXe(e, t);
+ if (typeof e == "string") return fXe(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? pXe(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? fXe(e, t) : void 0;
}
}
-function pXe(e, t) {
+function fXe(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function mXe(e, t) {
+function pXe(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -79040,11 +79040,11 @@ function mXe(e, t) {
return s;
}
}
-function hXe(e) {
+function mXe(e) {
if (Array.isArray(e)) return e;
}
-var s3 = "index", gXe = "append";
-function c3(e, t) {
+var c3 = "index", hXe = "append";
+function l3(e, t) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [], r = [];
for (var i of n) r.push({
status: "removed",
@@ -79063,14 +79063,14 @@ function c3(e, t) {
}
return r;
}
-function _Xe(e, t) {
+function gXe(e, t) {
var n = e.length / t.length;
- return c3(t.map((t, r) => e[Math.floor(r * n)]), t);
+ return l3(t.map((t, r) => e[Math.floor(r * n)]), t);
}
-function vXe(e, t) {
- return c3(t.map((t, n) => e[n]), t);
+function _Xe(e, t) {
+ return l3(t.map((t, n) => e[n]), t);
}
-function yXe(e, t) {
+function vXe(e, t) {
for (var n = /* @__PURE__ */ new Map(), r = 0; r < e.length; r++) {
var i = e[r];
if (i != null) {
@@ -79080,8 +79080,8 @@ function yXe(e, t) {
}
return n;
}
-function bXe(e, t, n) {
- var r = yXe(e, n), i = /* @__PURE__ */ new Set(), a = t.map((e, t) => {
+function yXe(e, t, n) {
+ var r = vXe(e, n), i = /* @__PURE__ */ new Set(), a = t.map((e, t) => {
var a = n(e, t);
if (a != null) {
var o = r.get(a);
@@ -79089,20 +79089,20 @@ function bXe(e, t, n) {
}
}), o = [];
for (var s of r) {
- var c = uXe(s, 2), l = c[0], u = c[1];
+ var c = lXe(s, 2), l = c[0], u = c[1];
i.has(l) || o.push(u);
}
- return c3(a, t, o);
+ return l3(a, t, o);
}
-function l3(e, t, n) {
+function u3(e, t, n) {
return t == null ? null : e == null ? t.map((e) => ({
status: "added",
next: e
- })) : n === "index" ? _Xe(e, t) : n === "append" ? vXe(e, t) : bXe(e, t, n);
+ })) : n === "index" ? gXe(e, t) : n === "append" ? _Xe(e, t) : yXe(e, t, n);
}
//#endregion
//#region node_modules/recharts/es6/animation/useAnimationStartSnapshot.js
-function u3(e, t) {
+function d3(e, t) {
var n = (0, b.useRef)(e), r = (0, b.useRef)(t.current), i = (0, b.useRef)(!0);
n.current !== e && (n.current = e, r.current = t.current, i.current = !1);
var a = (0, b.useCallback)(function(e, n) {
@@ -79116,25 +79116,25 @@ function u3(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/animation/AnimatedItems.js
-function xXe(e, t) {
- return EXe(e) || TXe(e, t) || CXe(e, t) || SXe();
+function bXe(e, t) {
+ return TXe(e) || wXe(e, t) || SXe(e, t) || xXe();
}
-function SXe() {
+function xXe() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function CXe(e, t) {
+function SXe(e, t) {
if (e) {
- if (typeof e == "string") return wXe(e, t);
+ if (typeof e == "string") return CXe(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? wXe(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? CXe(e, t) : void 0;
}
}
-function wXe(e, t) {
+function CXe(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function TXe(e, t) {
+function wXe(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -79155,11 +79155,11 @@ function TXe(e, t) {
return s;
}
}
-function EXe(e) {
+function TXe(e) {
if (Array.isArray(e)) return e;
}
-function d3(e, t) {
- var n = xXe((0, b.useState)(!1), 2), r = n[0], i = n[1];
+function f3(e, t) {
+ var n = bXe((0, b.useState)(!1), 2), r = n[0], i = n[1];
return {
isAnimating: r,
handleAnimationStart: (0, b.useCallback)(() => {
@@ -79170,9 +79170,9 @@ function d3(e, t) {
}, [t])
};
}
-function f3(e) {
- var t = e.animationInput, n = e.animationIdPrefix, r = e.items, i = e.previousItemsRef, a = e.isAnimationActive, o = e.animationBegin, s = e.animationDuration, c = e.animationEasing, l = e.onAnimationStart, u = e.onAnimationEnd, d = e.animationInterpolateFn, f = e.animationMatchBy, p = e.shouldUpdatePreviousRef, m = e.children, h = e.layout, g = aZ(t, n), _ = u3(g, i), v = _.startValue ?? null, y = l3(v, r, f ?? s3);
- return /*#__PURE__*/ b.createElement(iZ, {
+function p3(e) {
+ var t = e.animationInput, n = e.animationIdPrefix, r = e.items, i = e.previousItemsRef, a = e.isAnimationActive, o = e.animationBegin, s = e.animationDuration, c = e.animationEasing, l = e.onAnimationStart, u = e.onAnimationEnd, d = e.animationInterpolateFn, f = e.animationMatchBy, p = e.shouldUpdatePreviousRef, m = e.children, h = e.layout, g = iZ(t, n), _ = d3(g, i), v = _.startValue ?? null, y = u3(v, r, f ?? c3);
+ return /*#__PURE__*/ b.createElement(rZ, {
animationId: g,
begin: o,
duration: s,
@@ -79186,25 +79186,25 @@ function f3(e) {
return _.syncStepValue(n, e, i), n == null ? null : m(n, e, t);
});
}
-function DXe(e, t) {
- return MXe(e) || jXe(e, t) || kXe(e, t) || OXe();
+function EXe(e, t) {
+ return jXe(e) || AXe(e, t) || OXe(e, t) || DXe();
}
-function OXe() {
+function DXe() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function kXe(e, t) {
+function OXe(e, t) {
if (e) {
- if (typeof e == "string") return AXe(e, t);
+ if (typeof e == "string") return kXe(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? AXe(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? kXe(e, t) : void 0;
}
}
-function AXe(e, t) {
+function kXe(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function jXe(e, t) {
+function AXe(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -79225,22 +79225,22 @@ function jXe(e, t) {
return s;
}
}
-function MXe(e) {
+function jXe(e) {
if (Array.isArray(e)) return e;
}
-var NXe = b.useId ?? (() => DXe(b.useState(() => PW("uid-")), 1)[0]);
+var MXe = b.useId ?? (() => EXe(b.useState(() => NW("uid-")), 1)[0]);
//#endregion
//#region node_modules/recharts/es6/util/useUniqueId.js
-function PXe(e, t) {
- var n = NXe();
+function NXe(e, t) {
+ var n = MXe();
return t || (e ? `${e}-${n}` : n);
}
//#endregion
//#region node_modules/recharts/es6/context/RegisterGraphicalItemId.js
-var FXe = /*#__PURE__*/ (0, b.createContext)(void 0), p3 = (e) => {
- var t = e.id, n = e.type, r = e.children, i = PXe(`recharts-${n}`, t);
- return /*#__PURE__*/ b.createElement(FXe.Provider, { value: i }, r(i));
-}, IXe = MJ({
+var PXe = /*#__PURE__*/ (0, b.createContext)(void 0), m3 = (e) => {
+ var t = e.id, n = e.type, r = e.children, i = NXe(`recharts-${n}`, t);
+ return /*#__PURE__*/ b.createElement(PXe.Provider, { value: i }, r(i));
+}, FXe = jJ({
name: "graphicalItems",
initialState: {
cartesianItems: [],
@@ -79249,80 +79249,80 @@ var FXe = /*#__PURE__*/ (0, b.createContext)(void 0), p3 = (e) => {
reducers: {
addCartesianGraphicalItem: {
reducer(e, t) {
- e.cartesianItems.push(xJ(t.payload));
+ e.cartesianItems.push(bJ(t.payload));
},
- prepare: OJ()
+ prepare: DJ()
},
replaceCartesianGraphicalItem: {
reducer(e, t) {
- var n = t.payload, r = n.prev, i = n.next, a = vJ(e).cartesianItems.indexOf(xJ(r));
- a > -1 && (e.cartesianItems[a] = xJ(i));
+ var n = t.payload, r = n.prev, i = n.next, a = _J(e).cartesianItems.indexOf(bJ(r));
+ a > -1 && (e.cartesianItems[a] = bJ(i));
},
- prepare: OJ()
+ prepare: DJ()
},
removeCartesianGraphicalItem: {
reducer(e, t) {
- var n = vJ(e).cartesianItems.indexOf(xJ(t.payload));
+ var n = _J(e).cartesianItems.indexOf(bJ(t.payload));
n > -1 && e.cartesianItems.splice(n, 1);
},
- prepare: OJ()
+ prepare: DJ()
},
addPolarGraphicalItem: {
reducer(e, t) {
- e.polarItems.push(xJ(t.payload));
+ e.polarItems.push(bJ(t.payload));
},
- prepare: OJ()
+ prepare: DJ()
},
removePolarGraphicalItem: {
reducer(e, t) {
- var n = vJ(e).polarItems.indexOf(xJ(t.payload));
+ var n = _J(e).polarItems.indexOf(bJ(t.payload));
n > -1 && e.polarItems.splice(n, 1);
},
- prepare: OJ()
+ prepare: DJ()
},
replacePolarGraphicalItem: {
reducer(e, t) {
- var n = t.payload, r = n.prev, i = n.next, a = vJ(e).polarItems.indexOf(xJ(r));
- a > -1 && (e.polarItems[a] = xJ(i));
+ var n = t.payload, r = n.prev, i = n.next, a = _J(e).polarItems.indexOf(bJ(r));
+ a > -1 && (e.polarItems[a] = bJ(i));
},
- prepare: OJ()
+ prepare: DJ()
}
}
-}), m3 = IXe.actions, LXe = m3.addCartesianGraphicalItem, RXe = m3.replaceCartesianGraphicalItem, zXe = m3.removeCartesianGraphicalItem, BXe = m3.addPolarGraphicalItem, VXe = m3.removePolarGraphicalItem, HXe = m3.replacePolarGraphicalItem, UXe = IXe.reducer, h3 = /*#__PURE__*/ (0, b.memo)((e) => {
- var t = HK(), n = (0, b.useRef)(null);
+}), h3 = FXe.actions, IXe = h3.addCartesianGraphicalItem, LXe = h3.replaceCartesianGraphicalItem, RXe = h3.removeCartesianGraphicalItem, zXe = h3.addPolarGraphicalItem, BXe = h3.removePolarGraphicalItem, VXe = h3.replacePolarGraphicalItem, HXe = FXe.reducer, g3 = /*#__PURE__*/ (0, b.memo)((e) => {
+ var t = VK(), n = (0, b.useRef)(null);
return (0, b.useLayoutEffect)(() => {
- n.current === null ? t(LXe(e)) : n.current !== e && t(RXe({
+ n.current === null ? t(IXe(e)) : n.current !== e && t(LXe({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, b.useLayoutEffect)(() => () => {
- n.current &&= (t(zXe(n.current)), null);
+ n.current &&= (t(RXe(n.current)), null);
}, [t]), null;
-}), WXe = /*#__PURE__*/ (0, b.memo)((e) => {
- var t = HK(), n = (0, b.useRef)(null);
+}), UXe = /*#__PURE__*/ (0, b.memo)((e) => {
+ var t = VK(), n = (0, b.useRef)(null);
return (0, b.useLayoutEffect)(() => {
- n.current === null ? t(BXe(e)) : n.current !== e && t(HXe({
+ n.current === null ? t(zXe(e)) : n.current !== e && t(VXe({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, b.useLayoutEffect)(() => () => {
- n.current &&= (t(VXe(n.current)), null);
+ n.current &&= (t(BXe(n.current)), null);
}, [t]), null;
});
//#endregion
//#region node_modules/es-toolkit/dist/array/last.mjs
-function GXe(e) {
+function WXe(e) {
return e[e.length - 1];
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/last.mjs
-function KXe(e) {
- if (tK(e) && e.length !== 0) return GXe(W4(e));
+function GXe(e) {
+ if (eK(e) && e.length !== 0) return WXe(G4(e));
}
//#endregion
//#region node_modules/recharts/es6/component/Dots.js
-var qXe = ["points"];
-function JXe(e, t) {
+var KXe = ["points"];
+function qXe(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -79332,30 +79332,30 @@ function JXe(e, t) {
}
return n;
}
-function g3(e) {
+function _3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? JXe(Object(n), !0).forEach(function(t) {
- YXe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : JXe(Object(n)).forEach(function(t) {
+ t % 2 ? qXe(Object(n), !0).forEach(function(t) {
+ JXe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : qXe(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function YXe(e, t, n) {
- return (t = XXe(t)) in e ? Object.defineProperty(e, t, {
+function JXe(e, t, n) {
+ return (t = YXe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function XXe(e) {
- var t = ZXe(e, "string");
+function YXe(e) {
+ var t = XXe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ZXe(e, t) {
+function XXe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -79365,25 +79365,25 @@ function ZXe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function _3() {
- return _3 = Object.assign ? Object.assign.bind() : function(e) {
+function v3() {
+ return v3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, _3.apply(null, arguments);
+ }, v3.apply(null, arguments);
}
-function QXe(e, t) {
+function ZXe(e, t) {
if (e == null) return {};
- var n, r, i = $Xe(e, t);
+ var n, r, i = QXe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function $Xe(e, t) {
+function QXe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -79392,23 +79392,23 @@ function $Xe(e, t) {
}
return n;
}
-function eZe(e) {
+function $Xe(e) {
var t = e.option, n = e.dotProps, r = e.className;
if (/*#__PURE__*/ (0, b.isValidElement)(t)) return /*#__PURE__*/ (0, b.cloneElement)(t, n);
if (typeof t == "function") return t(n);
- var i = dv(r, typeof t == "boolean" ? "" : t.className), a = n ?? {};
+ var i = fv(r, typeof t == "boolean" ? "" : t.className), a = n ?? {};
a.points;
- var o = QXe(a, qXe);
- return /*#__PURE__*/ b.createElement(P4, _3({}, o, { className: i }));
+ var o = ZXe(a, KXe);
+ return /*#__PURE__*/ b.createElement(F4, v3({}, o, { className: i }));
}
-function tZe(e, t) {
+function eZe(e, t) {
return e == null ? !1 : t ? !0 : e.length === 1;
}
-function v3(e) {
- var t = e.points, n = e.dot, r = e.className, i = e.dotClassName, a = e.dataKey, o = e.baseProps, s = e.needClip, c = e.clipPathId, l = e.zIndex, u = l === void 0 ? iQ.scatter : l;
- if (!tZe(t, n)) return null;
- var d = e3(n), f = TMe(n), p = t.map((e, r) => {
- var s = g3(g3(g3({ r: 3 }, o), f), {}, {
+function y3(e) {
+ var t = e.points, n = e.dot, r = e.className, i = e.dotClassName, a = e.dataKey, o = e.baseProps, s = e.needClip, c = e.clipPathId, l = e.zIndex, u = l === void 0 ? rQ.scatter : l;
+ if (!eZe(t, n)) return null;
+ var d = t3(n), f = EMe(n), p = t.map((e, r) => {
+ var s = _3(_3(_3({ r: 3 }, o), f), {}, {
index: r,
cx: e.x ?? void 0,
cy: e.y ?? void 0,
@@ -79417,18 +79417,18 @@ function v3(e) {
payload: e.payload,
points: t
});
- return /*#__PURE__*/ b.createElement(eZe, {
+ return /*#__PURE__*/ b.createElement($Xe, {
key: `dot-${r}`,
option: n,
dotProps: s,
className: i
});
}), m = {};
- return s && c != null && (m.clipPath = `url(#clipPath-${d ? "" : "dots-"}${c})`), /*#__PURE__*/ b.createElement(o4, { zIndex: u }, /*#__PURE__*/ b.createElement(yW, _3({ className: r }, m), p));
+ return s && c != null && (m.clipPath = `url(#clipPath-${d ? "" : "dots-"}${c})`), /*#__PURE__*/ b.createElement(s4, { zIndex: u }, /*#__PURE__*/ b.createElement(vW, v3({ className: r }, m), p));
}
//#endregion
//#region node_modules/recharts/es6/state/cartesianAxisSlice.js
-function nZe(e, t) {
+function tZe(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -79438,30 +79438,30 @@ function nZe(e, t) {
}
return n;
}
-function y3(e) {
+function b3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? nZe(Object(n), !0).forEach(function(t) {
- rZe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : nZe(Object(n)).forEach(function(t) {
+ t % 2 ? tZe(Object(n), !0).forEach(function(t) {
+ nZe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : tZe(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function rZe(e, t, n) {
- return (t = iZe(t)) in e ? Object.defineProperty(e, t, {
+function nZe(e, t, n) {
+ return (t = rZe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function iZe(e) {
- var t = aZe(e, "string");
+function rZe(e) {
+ var t = iZe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function aZe(e, t) {
+function iZe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -79471,7 +79471,7 @@ function aZe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var oZe = MJ({
+var aZe = jJ({
name: "cartesianAxis",
initialState: {
xAxis: {},
@@ -79481,60 +79481,60 @@ var oZe = MJ({
reducers: {
addXAxis: {
reducer(e, t) {
- e.xAxis[t.payload.id] = xJ(t.payload);
+ e.xAxis[t.payload.id] = bJ(t.payload);
},
- prepare: OJ()
+ prepare: DJ()
},
replaceXAxis: {
reducer(e, t) {
var n = t.payload, r = n.prev, i = n.next;
- e.xAxis[r.id] !== void 0 && (r.id !== i.id && delete e.xAxis[r.id], e.xAxis[i.id] = xJ(i));
+ e.xAxis[r.id] !== void 0 && (r.id !== i.id && delete e.xAxis[r.id], e.xAxis[i.id] = bJ(i));
},
- prepare: OJ()
+ prepare: DJ()
},
removeXAxis: {
reducer(e, t) {
delete e.xAxis[t.payload.id];
},
- prepare: OJ()
+ prepare: DJ()
},
addYAxis: {
reducer(e, t) {
- e.yAxis[t.payload.id] = xJ(t.payload);
+ e.yAxis[t.payload.id] = bJ(t.payload);
},
- prepare: OJ()
+ prepare: DJ()
},
replaceYAxis: {
reducer(e, t) {
var n = t.payload, r = n.prev, i = n.next;
- e.yAxis[r.id] !== void 0 && (r.id !== i.id && delete e.yAxis[r.id], e.yAxis[i.id] = xJ(i));
+ e.yAxis[r.id] !== void 0 && (r.id !== i.id && delete e.yAxis[r.id], e.yAxis[i.id] = bJ(i));
},
- prepare: OJ()
+ prepare: DJ()
},
removeYAxis: {
reducer(e, t) {
delete e.yAxis[t.payload.id];
},
- prepare: OJ()
+ prepare: DJ()
},
addZAxis: {
reducer(e, t) {
- e.zAxis[t.payload.id] = xJ(t.payload);
+ e.zAxis[t.payload.id] = bJ(t.payload);
},
- prepare: OJ()
+ prepare: DJ()
},
replaceZAxis: {
reducer(e, t) {
var n = t.payload, r = n.prev, i = n.next;
- e.zAxis[r.id] !== void 0 && (r.id !== i.id && delete e.zAxis[r.id], e.zAxis[i.id] = xJ(i));
+ e.zAxis[r.id] !== void 0 && (r.id !== i.id && delete e.zAxis[r.id], e.zAxis[i.id] = bJ(i));
},
- prepare: OJ()
+ prepare: DJ()
},
removeZAxis: {
reducer(e, t) {
delete e.zAxis[t.payload.id];
},
- prepare: OJ()
+ prepare: DJ()
},
updateYAxisWidth(e, t) {
var n = t.payload, r = n.id, i = n.width, a = e.yAxis[r];
@@ -79542,7 +79542,7 @@ var oZe = MJ({
var o = a.widthHistory || [];
if (o.length === 3 && o[0] === o[2] && i === o[1] && i !== a.width && Math.abs(i - (o[0] ?? 0)) <= 1) return;
var s = [...o, i].slice(-3);
- e.yAxis[r] = y3(y3({}, a), {}, {
+ e.yAxis[r] = b3(b3({}, a), {}, {
width: i,
widthHistory: s
});
@@ -79554,24 +79554,24 @@ var oZe = MJ({
var o = a.heightHistory || [];
if (o.length === 3 && o[0] === o[2] && i === o[1] && i !== a.height && Math.abs(i - (o[0] ?? 0)) <= 1) return;
var s = [...o, i].slice(-3);
- e.xAxis[r] = y3(y3({}, a), {}, {
+ e.xAxis[r] = b3(b3({}, a), {}, {
height: i,
heightHistory: s
});
}
}
}
-}), b3 = oZe.actions, sZe = b3.addXAxis, cZe = b3.replaceXAxis, lZe = b3.removeXAxis, uZe = b3.addYAxis, dZe = b3.replaceYAxis, fZe = b3.removeYAxis;
-b3.addZAxis, b3.replaceZAxis, b3.removeZAxis;
-var pZe = b3.updateYAxisWidth, mZe = b3.updateXAxisHeight, hZe = oZe.reducer, gZe = Y([
- Y([NY], (e) => ({
+}), x3 = aZe.actions, oZe = x3.addXAxis, sZe = x3.replaceXAxis, cZe = x3.removeXAxis, lZe = x3.addYAxis, uZe = x3.replaceYAxis, dZe = x3.removeYAxis;
+x3.addZAxis, x3.replaceZAxis, x3.removeZAxis;
+var fZe = x3.updateYAxisWidth, pZe = x3.updateXAxisHeight, mZe = aZe.reducer, hZe = Y([
+ Y([MY], (e) => ({
top: e.top,
bottom: e.bottom,
left: e.left,
right: e.right
})),
- EY,
- DY
+ TY,
+ EY
], (e, t, n) => {
if (e && t != null && n != null) return {
x: e.left,
@@ -79579,10 +79579,10 @@ var pZe = b3.updateYAxisWidth, mZe = b3.updateXAxisHeight, hZe = oZe.reducer, gZ
width: Math.max(0, t - e.left - e.right),
height: Math.max(0, n - e.top - e.bottom)
};
-}), x3 = () => J(gZe), _Ze = () => J(rGe);
+}), S3 = () => J(hZe), gZe = () => J(nGe);
//#endregion
//#region node_modules/recharts/es6/component/ActivePoints.js
-function vZe(e, t) {
+function _Ze(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -79592,30 +79592,30 @@ function vZe(e, t) {
}
return n;
}
-function S3(e) {
+function C3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? vZe(Object(n), !0).forEach(function(t) {
- yZe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : vZe(Object(n)).forEach(function(t) {
+ t % 2 ? _Ze(Object(n), !0).forEach(function(t) {
+ vZe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _Ze(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function yZe(e, t, n) {
- return (t = bZe(t)) in e ? Object.defineProperty(e, t, {
+function vZe(e, t, n) {
+ return (t = yZe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function bZe(e) {
- var t = xZe(e, "string");
+function yZe(e) {
+ var t = bZe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function xZe(e, t) {
+function bZe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -79625,10 +79625,10 @@ function xZe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var SZe = (e) => {
+var xZe = (e) => {
var t = e.point, n = e.childIndex, r = e.mainColor, i = e.activeDot, a = e.dataKey, o = e.clipPath;
if (i === !1 || t.x == null || t.y == null) return null;
- var s = S3(S3(S3({}, {
+ var s = C3(C3(C3({}, {
index: n,
dataKey: a,
cx: t.x,
@@ -79639,17 +79639,17 @@ var SZe = (e) => {
stroke: "#fff",
payload: t.payload,
value: t.value
- }), mW(i)), KG(i)), c = /*#__PURE__*/ (0, b.isValidElement)(i) ? /*#__PURE__*/ (0, b.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ b.createElement(P4, s);
- return /*#__PURE__*/ b.createElement(yW, {
+ }), pW(i)), GG(i)), c = /*#__PURE__*/ (0, b.isValidElement)(i) ? /*#__PURE__*/ (0, b.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ b.createElement(F4, s);
+ return /*#__PURE__*/ b.createElement(vW, {
className: "recharts-active-dot",
clipPath: o
}, c);
};
-function C3(e) {
- var t = e.points, n = e.mainColor, r = e.activeDot, i = e.itemDataKey, a = e.clipPath, o = e.zIndex, s = o === void 0 ? iQ.activeDot : o, c = J(Z2), l = _Ze();
+function w3(e) {
+ var t = e.points, n = e.mainColor, r = e.activeDot, i = e.itemDataKey, a = e.clipPath, o = e.zIndex, s = o === void 0 ? rQ.activeDot : o, c = J(Q2), l = gZe();
if (t == null || l == null) return null;
var u = t.find((e) => l.includes(e.payload));
- return zW(u) ? null : /*#__PURE__*/ b.createElement(o4, { zIndex: s }, /*#__PURE__*/ b.createElement(SZe, {
+ return RW(u) ? null : /*#__PURE__*/ b.createElement(s4, { zIndex: s }, /*#__PURE__*/ b.createElement(xZe, {
point: u,
childIndex: Number(c),
mainColor: n,
@@ -79660,7 +79660,7 @@ function C3(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/radarSelectors.js
-function CZe(e, t) {
+function SZe(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -79670,30 +79670,30 @@ function CZe(e, t) {
}
return n;
}
-function w3(e) {
+function T3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? CZe(Object(n), !0).forEach(function(t) {
- wZe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : CZe(Object(n)).forEach(function(t) {
+ t % 2 ? SZe(Object(n), !0).forEach(function(t) {
+ CZe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : SZe(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function wZe(e, t, n) {
- return (t = TZe(t)) in e ? Object.defineProperty(e, t, {
+function CZe(e, t, n) {
+ return (t = wZe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function TZe(e) {
- var t = EZe(e, "string");
+function wZe(e) {
+ var t = TZe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function EZe(e, t) {
+function TZe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -79703,16 +79703,16 @@ function EZe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var DZe = (e, t) => B4(e, "radiusAxis", t), OZe = Y([DZe], (e) => {
+var EZe = (e, t) => V4(e, "radiusAxis", t), DZe = Y([EZe], (e) => {
if (e != null) return { scale: e };
-}), kZe = Y([mQ, DZe], (e, t) => {
- if (e != null && t != null) return w3(w3({}, e), {}, { scale: t });
-}), AZe = (e, t, n, r) => V4(e, "radiusAxis", t, r), jZe = (e, t, n) => pQ(e, n), MZe = (e, t, n) => B4(e, "angleAxis", n), NZe = Y([jZe, MZe], (e, t) => {
- if (e != null && t != null) return w3(w3({}, e), {}, { scale: t });
-}), PZe = (e, t, n, r) => V4(e, "angleAxis", n, r), FZe = Y([
+}), OZe = Y([pQ, EZe], (e, t) => {
+ if (e != null && t != null) return T3(T3({}, e), {}, { scale: t });
+}), kZe = (e, t, n, r) => H4(e, "radiusAxis", t, r), AZe = (e, t, n) => fQ(e, n), jZe = (e, t, n) => V4(e, "angleAxis", n), MZe = Y([AZe, jZe], (e, t) => {
+ if (e != null && t != null) return T3(T3({}, e), {}, { scale: t });
+}), NZe = (e, t, n, r) => H4(e, "angleAxis", n, r), PZe = Y([
+ AZe,
jZe,
- MZe,
- xQ
+ bQ
], (e, t, n) => {
if (n != null && t != null) return {
scale: t,
@@ -79721,40 +79721,40 @@ var DZe = (e, t) => B4(e, "radiusAxis", t), OZe = Y([DZe], (e) => {
cx: n.cx,
cy: n.cy
};
-}), IZe = (e, t, n, r, i) => i, LZe = Y([
- eX,
- kZe,
- AZe,
- NZe,
- PZe
-], (e, t, n, r, i) => pY(e, "radiusAxis") ? CY(t, n, !1) : CY(r, i, !1)), RZe = Y([
+}), FZe = (e, t, n, r, i) => i, IZe = Y([
+ $Y,
OZe,
- FZe,
- kZ,
- Y([F4, IZe], (e, t) => {
+ kZe,
+ MZe,
+ NZe
+], (e, t, n, r, i) => fY(e, "radiusAxis") ? SY(t, n, !1) : SY(r, i, !1)), LZe = Y([
+ DZe,
+ PZe,
+ OZ,
+ Y([I4, FZe], (e, t) => {
if (e != null) return e.find((e) => e.type === "radar" && t === e.id)?.dataKey;
}),
- LZe
+ IZe
], (e, t, n, r, i) => {
var a = n.chartData, o = n.dataStartIndex, s = n.dataEndIndex;
- if (e != null && t != null && a != null && i != null && r != null) return YZe({
+ if (e != null && t != null && a != null && i != null && r != null) return JZe({
radiusAxis: e,
angleAxis: t,
displayedData: a.slice(o, s + 1),
dataKey: r,
bandSize: i
});
-}), zZe = ["id"];
-function T3() {
- return T3 = Object.assign ? Object.assign.bind() : function(e) {
+}), RZe = ["id"];
+function E3() {
+ return E3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, T3.apply(null, arguments);
+ }, E3.apply(null, arguments);
}
-function BZe(e, t) {
+function zZe(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -79764,30 +79764,30 @@ function BZe(e, t) {
}
return n;
}
-function E3(e) {
+function D3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? BZe(Object(n), !0).forEach(function(t) {
- VZe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : BZe(Object(n)).forEach(function(t) {
+ t % 2 ? zZe(Object(n), !0).forEach(function(t) {
+ BZe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : zZe(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function VZe(e, t, n) {
- return (t = HZe(t)) in e ? Object.defineProperty(e, t, {
+function BZe(e, t, n) {
+ return (t = VZe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function HZe(e) {
- var t = UZe(e, "string");
+function VZe(e) {
+ var t = HZe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function UZe(e, t) {
+function HZe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -79797,16 +79797,16 @@ function UZe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function WZe(e, t) {
+function UZe(e, t) {
if (e == null) return {};
- var n, r, i = GZe(e, t);
+ var n, r, i = WZe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function GZe(e, t) {
+function WZe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -79815,44 +79815,44 @@ function GZe(e, t) {
}
return n;
}
-function D3(e, t) {
+function O3(e, t) {
return e && e !== "none" ? e : t;
}
-var KZe = (e) => {
+var GZe = (e) => {
var t = e.dataKey, n = e.name, r = e.stroke, i = e.fill, a = e.legendType;
return [{
inactive: e.hide,
dataKey: t,
type: a,
- color: D3(r, i),
- value: TY(n, t),
+ color: O3(r, i),
+ value: wY(n, t),
payload: e
}];
-}, qZe = /*#__PURE__*/ b.memo((e) => {
+}, KZe = /*#__PURE__*/ b.memo((e) => {
var t = e.dataKey, n = e.stroke, r = e.strokeWidth, i = e.fill, a = e.name, o = e.hide, s = e.tooltipType, c = e.id, l = {
dataDefinedOnItem: void 0,
- getPosition: HW,
+ getPosition: VW,
settings: {
stroke: n,
strokeWidth: r,
fill: i,
nameKey: void 0,
dataKey: t,
- name: TY(a, t),
+ name: wY(a, t),
hide: o,
type: s,
- color: D3(n, i),
+ color: O3(n, i),
unit: "",
graphicalItemId: c
}
};
- return /*#__PURE__*/ b.createElement(a3, { tooltipEntrySettings: l });
+ return /*#__PURE__*/ b.createElement(o3, { tooltipEntrySettings: l });
});
-function JZe(e) {
+function qZe(e) {
var t = e.points, n = e.props, r = n.dot, i = n.dataKey;
n.id;
- var a = pW(WZe(n, zZe));
- return /*#__PURE__*/ b.createElement(v3, {
+ var a = fW(UZe(n, RZe));
+ return /*#__PURE__*/ b.createElement(y3, {
points: t,
dot: r,
className: "recharts-radar-dots",
@@ -79861,11 +79861,11 @@ function JZe(e) {
baseProps: a
});
}
-function YZe(e) {
+function JZe(e) {
var t = e.radiusAxis, n = e.angleAxis, r = e.displayedData, i = e.dataKey, a = e.bandSize, o = n.cx, s = n.cy, c = !1, l = [], u = n.type === "number" ? 0 : a ?? 0;
r.forEach((e, r) => {
- var a = fY(e, n.dataKey, r), d = fY(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? KXe(d) : d, m = zW(p) ? 0 : t.scale.map(p) ?? 0;
- Array.isArray(d) && d.length >= 2 && (c = !0), l.push(E3(E3({}, yZ(o, s, m, f)), {}, {
+ var a = dY(e, n.dataKey, r), d = dY(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? GXe(d) : d, m = RW(p) ? 0 : t.scale.map(p) ?? 0;
+ Array.isArray(d) && d.length >= 2 && (c = !0), l.push(D3(D3({}, vZ(o, s, m, f)), {}, {
name: a,
value: d,
cx: o,
@@ -79878,8 +79878,8 @@ function YZe(e) {
var d = [];
return c && l.forEach((e) => {
if (Array.isArray(e.value)) {
- var n = e.value[0], r = zW(n) ? 0 : t.scale.map(n) ?? 0;
- d.push(E3(E3({}, e), {}, { radius: r }, yZ(o, s, r, e.angle)));
+ var n = e.value[0], r = RW(n) ? 0 : t.scale.map(n) ?? 0;
+ d.push(D3(D3({}, e), {}, { radius: r }, vZ(o, s, r, e.angle)));
} else d.push(e);
}), {
points: l,
@@ -79887,7 +79887,7 @@ function YZe(e) {
baseLinePoints: d
};
}
-function XZe(e) {
+function YZe(e) {
var t = e.showLabels, n = e.points, r = e.children, i = n.map((e) => {
var t = {
x: e.x,
@@ -79897,7 +79897,7 @@ function XZe(e) {
upperWidth: 0,
height: 0
};
- return E3(E3({}, t), {}, {
+ return D3(D3({}, t), {}, {
value: e.value ?? "",
payload: e.payload,
parentViewBox: void 0,
@@ -79905,12 +79905,12 @@ function XZe(e) {
fill: void 0
});
});
- return /*#__PURE__*/ b.createElement(O4, { value: t ? i : void 0 }, r);
+ return /*#__PURE__*/ b.createElement(k4, { value: t ? i : void 0 }, r);
}
-function ZZe(e) {
+function XZe(e) {
var t = e.points, n = e.baseLinePoints, r = e.props;
if (t == null) return null;
- var i = r.shape, a = r.isRange, o = r.connectNulls, s = /*#__PURE__*/ b.isValidElement(i) ? /*#__PURE__*/ b.cloneElement(i, E3(E3({}, r), {}, { points: t })) : typeof i == "function" ? i(E3(E3({}, r), {}, { points: t })) : /*#__PURE__*/ b.createElement(jJe, T3({}, hW(r), {
+ var i = r.shape, a = r.isRange, o = r.connectNulls, s = /*#__PURE__*/ b.isValidElement(i) ? /*#__PURE__*/ b.cloneElement(i, D3(D3({}, r), {}, { points: t })) : typeof i == "function" ? i(D3(D3({}, r), {}, { points: t })) : /*#__PURE__*/ b.createElement(AJe, E3({}, mW(r), {
onMouseEnter: (e) => {
var t = r.onMouseEnter;
t && t(r, e);
@@ -79923,24 +79923,24 @@ function ZZe(e) {
baseLinePoints: a ? n : void 0,
connectNulls: o
}));
- return /*#__PURE__*/ b.createElement(yW, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ b.createElement(JZe, {
+ return /*#__PURE__*/ b.createElement(vW, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ b.createElement(qZe, {
props: r,
points: t
}));
}
-var QZe = (e, t) => e == null ? [] : t === 1 ? e.flatMap((e) => e.status === "removed" ? [] : [e.next]) : e.flatMap((e) => e.status === "removed" ? [] : e.status === "matched" ? [E3(E3({}, e.next), {}, {
- x: LW(e.prev.x, e.next.x, t),
- y: LW(e.prev.y, e.next.y, t)
-})] : [E3(E3({}, e.next), {}, {
- x: LW(e.next.cx, e.next.x, t),
- y: LW(e.next.cy, e.next.y, t)
+var ZZe = (e, t) => e == null ? [] : t === 1 ? e.flatMap((e) => e.status === "removed" ? [] : [e.next]) : e.flatMap((e) => e.status === "removed" ? [] : e.status === "matched" ? [D3(D3({}, e.next), {}, {
+ x: IW(e.prev.x, e.next.x, t),
+ y: IW(e.prev.y, e.next.y, t)
+})] : [D3(D3({}, e.next), {}, {
+ x: IW(e.next.cx, e.next.x, t),
+ y: IW(e.next.cy, e.next.y, t)
})]);
-function $Ze(e) {
- var t = e.props, n = e.previousPointsRef, r = e.previousBaseLinePointsRef, i = t.points, a = t.baseLinePoints, o = t.isAnimationActive, s = t.animationBegin, c = t.animationDuration, l = t.animationEasing, u = t.animationMatchBy, d = t.animationInterpolateFn, f = t.onAnimationStart, p = t.onAnimationEnd, m = u3(t, r), h = m.startValue, g = l3(h ?? null, a, u), _ = d3(f, p), v = _.isAnimating, y = _.handleAnimationStart, x = _.handleAnimationEnd, S = iX();
- return S == null ? null : /*#__PURE__*/ b.createElement(XZe, {
+function QZe(e) {
+ var t = e.props, n = e.previousPointsRef, r = e.previousBaseLinePointsRef, i = t.points, a = t.baseLinePoints, o = t.isAnimationActive, s = t.animationBegin, c = t.animationDuration, l = t.animationEasing, u = t.animationMatchBy, d = t.animationInterpolateFn, f = t.onAnimationStart, p = t.onAnimationEnd, m = d3(t, r), h = m.startValue, g = u3(h ?? null, a, u), _ = f3(f, p), v = _.isAnimating, y = _.handleAnimationStart, x = _.handleAnimationEnd, S = rX();
+ return S == null ? null : /*#__PURE__*/ b.createElement(YZe, {
showLabels: !v,
points: i
- }, /*#__PURE__*/ b.createElement(f3, {
+ }, /*#__PURE__*/ b.createElement(p3, {
animationInput: t,
animationIdPrefix: "recharts-radar-",
items: i,
@@ -79956,62 +79956,62 @@ function $Ze(e) {
layout: S
}, (e, n) => {
var r = n === 1 ? a : d(g, n, S);
- return m.syncStepValue(r, n), /*#__PURE__*/ b.createElement(ZZe, {
+ return m.syncStepValue(r, n), /*#__PURE__*/ b.createElement(XZe, {
points: e,
baseLinePoints: r,
props: t
});
- }), /*#__PURE__*/ b.createElement(A4, { label: t.label }), t.children);
+ }), /*#__PURE__*/ b.createElement(j4, { label: t.label }), t.children);
}
-function eQe(e) {
+function $Ze(e) {
var t = (0, b.useRef)(void 0), n = (0, b.useRef)(void 0);
- return /*#__PURE__*/ b.createElement($Ze, {
+ return /*#__PURE__*/ b.createElement(QZe, {
props: e,
previousPointsRef: t,
previousBaseLinePointsRef: n
});
}
-var tQe = {
+var eQe = {
activeDot: !0,
angleAxisId: 0,
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease",
- animationMatchBy: s3,
- animationInterpolateFn: QZe,
+ animationMatchBy: c3,
+ animationInterpolateFn: ZZe,
dot: !1,
hide: !1,
isAnimationActive: "auto",
label: !1,
legendType: "rect",
radiusAxisId: 0,
- zIndex: iQ.area
+ zIndex: rQ.area
};
-function nQe(e) {
+function tQe(e) {
var t = e.hide, n = e.className, r = e.points;
if (t) return null;
- var i = dv("recharts-radar", n);
- return /*#__PURE__*/ b.createElement(o4, { zIndex: e.zIndex }, /*#__PURE__*/ b.createElement(yW, { className: i }, /*#__PURE__*/ b.createElement(eQe, e)), /*#__PURE__*/ b.createElement(C3, {
+ var i = fv("recharts-radar", n);
+ return /*#__PURE__*/ b.createElement(s4, { zIndex: e.zIndex }, /*#__PURE__*/ b.createElement(vW, { className: i }, /*#__PURE__*/ b.createElement($Ze, e)), /*#__PURE__*/ b.createElement(w3, {
points: r,
- mainColor: D3(e.stroke, e.fill),
+ mainColor: O3(e.stroke, e.fill),
itemDataKey: e.dataKey,
activeDot: e.activeDot
}));
}
-function rQe(e) {
- var t = IY(), n = J((n) => RZe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
- return n?.points == null ? null : /*#__PURE__*/ b.createElement(nQe, T3({}, e, {
+function nQe(e) {
+ var t = FY(), n = J((n) => LZe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
+ return n?.points == null ? null : /*#__PURE__*/ b.createElement(tQe, E3({}, e, {
points: n?.points,
baseLinePoints: n?.baseLinePoints,
isRange: n?.isRange
}));
}
-function O3(e) {
- var t = YG(e, tQe);
- return /*#__PURE__*/ b.createElement(p3, {
+function k3(e) {
+ var t = JG(e, eQe);
+ return /*#__PURE__*/ b.createElement(m3, {
id: t.id,
type: "radar"
- }, (e) => /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(WXe, {
+ }, (e) => /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(UXe, {
type: "radar",
id: e,
data: void 0,
@@ -80019,7 +80019,7 @@ function O3(e) {
hide: t.hide,
angleAxisId: t.angleAxisId,
radiusAxisId: t.radiusAxisId
- }), /*#__PURE__*/ b.createElement(lXe, { legendPayload: KZe(t) }), /*#__PURE__*/ b.createElement(qZe, {
+ }), /*#__PURE__*/ b.createElement(cXe, { legendPayload: GZe(t) }), /*#__PURE__*/ b.createElement(KZe, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -80028,22 +80028,22 @@ function O3(e) {
hide: t.hide,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ b.createElement(rQe, T3({}, t, { id: e }))));
+ }), /*#__PURE__*/ b.createElement(nQe, E3({}, t, { id: e }))));
}
-O3.displayName = "Radar";
+k3.displayName = "Radar";
//#endregion
//#region node_modules/recharts/es6/util/RadialBarUtils.js
-var iQe = ["option"];
-function aQe(e, t) {
+var rQe = ["option"];
+function iQe(e, t) {
if (e == null) return {};
- var n, r, i = oQe(e, t);
+ var n, r, i = aQe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function oQe(e, t) {
+function aQe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -80052,39 +80052,39 @@ function oQe(e, t) {
}
return n;
}
-var sQe = TZ;
-function cQe(e) {
+var oQe = wZ;
+function sQe(e) {
return typeof e == "string" ? parseInt(e, 10) : e;
}
-function k3(e) {
- var t = e.option, n = aQe(e, iQe);
- return /*#__PURE__*/ b.createElement(t3, {
+function A3(e) {
+ var t = e.option, n = iQe(e, rQe);
+ return /*#__PURE__*/ b.createElement(n3, {
option: t,
- DefaultShape: sQe,
+ DefaultShape: oQe,
shapeProps: n
});
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineBarSizeList.js
-function lQe(e, t) {
- return mQe(e) || pQe(e, t) || dQe(e, t) || uQe();
+function cQe(e, t) {
+ return pQe(e) || fQe(e, t) || uQe(e, t) || lQe();
}
-function uQe() {
+function lQe() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function dQe(e, t) {
+function uQe(e, t) {
if (e) {
- if (typeof e == "string") return fQe(e, t);
+ if (typeof e == "string") return dQe(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? fQe(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? dQe(e, t) : void 0;
}
}
-function fQe(e, t) {
+function dQe(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function pQe(e, t) {
+function fQe(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -80105,33 +80105,33 @@ function pQe(e, t) {
return s;
}
}
-function mQe(e) {
+function pQe(e) {
if (Array.isArray(e)) return e;
}
-var hQe = (e, t, n) => {
+var mQe = (e, t, n) => {
var r = n ?? e;
- if (!zW(r)) return FW(r, t, 0);
-}, gQe = (e, t, n) => {
- var r = {}, i = e.filter(EQ), a = e.filter((e) => e.stackId == null), o = i.reduce((e, t) => {
+ if (!RW(r)) return PW(r, t, 0);
+}, hQe = (e, t, n) => {
+ var r = {}, i = e.filter(TQ), a = e.filter((e) => e.stackId == null), o = i.reduce((e, t) => {
var n = e[t.stackId];
return n ??= [], n.push(t), e[t.stackId] = n, e;
}, r), s = Object.entries(o).map((e) => {
- var r = lQe(e, 2), i = r[0], a = r[1];
+ var r = cQe(e, 2), i = r[0], a = r[1];
return {
stackId: i,
dataKeys: a.map((e) => e.dataKey),
- barSize: hQe(t, n, a[0]?.barSize)
+ barSize: mQe(t, n, a[0]?.barSize)
};
}), c = a.map((e) => ({
stackId: void 0,
dataKeys: [e.dataKey].filter((e) => e != null),
- barSize: hQe(t, n, e.barSize)
+ barSize: mQe(t, n, e.barSize)
}));
return [...s, ...c];
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineAllBarPositions.js
-function _Qe(e, t) {
+function gQe(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -80141,30 +80141,30 @@ function _Qe(e, t) {
}
return n;
}
-function A3(e) {
+function j3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? _Qe(Object(n), !0).forEach(function(t) {
- vQe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _Qe(Object(n)).forEach(function(t) {
+ t % 2 ? gQe(Object(n), !0).forEach(function(t) {
+ _Qe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : gQe(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function vQe(e, t, n) {
- return (t = yQe(t)) in e ? Object.defineProperty(e, t, {
+function _Qe(e, t, n) {
+ return (t = vQe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function yQe(e) {
- var t = bQe(e, "string");
+function vQe(e) {
+ var t = yQe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function bQe(e, t) {
+function yQe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -80174,11 +80174,11 @@ function bQe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function xQe(e, t, n, r, i) {
+function bQe(e, t, n, r, i) {
var a = r.length;
if (!(a < 1)) {
- var o = FW(e, n, 0, !0), s, c = [];
- if (cY(r[0]?.barSize)) {
+ var o = PW(e, n, 0, !0), s, c = [];
+ if (sY(r[0]?.barSize)) {
var l = !1, u = n / a, d = r.reduce((e, t) => e + (t.barSize || 0), 0);
d += (a - 1) * o, d >= n && (d -= (a - 1) * o, o = 0), d >= n && u > 0 && (l = !0, u *= .9, d = a * u);
var f = {
@@ -80197,11 +80197,11 @@ function xQe(e, t, n, r, i) {
return f = n.position, r;
}, c);
} else {
- var p = FW(t, n, 0, !0);
+ var p = PW(t, n, 0, !0);
n - 2 * p - (a - 1) * o <= 0 && (o = 0);
var m = (n - 2 * p - (a - 1) * o) / a;
m > 1 && (m = Math.round(m));
- var h = cY(i) ? Math.min(m, i) : m;
+ var h = sY(i) ? Math.min(m, i) : m;
s = r.reduce((e, t, n) => [...e, {
stackId: t.stackId,
dataKeys: t.dataKeys,
@@ -80214,11 +80214,11 @@ function xQe(e, t, n, r, i) {
return s;
}
}
-var SQe = (e, t, n, r, i, a, o) => {
- var s = zW(o) ? t : o, c = xQe(n, r, i === a ? a : i, e, s);
- return i !== a && c != null && (c = c.map((e) => A3(A3({}, e), {}, { position: A3(A3({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;
-}, CQe = (e, t) => {
- var n = wQ(t);
+var xQe = (e, t, n, r, i, a, o) => {
+ var s = RW(o) ? t : o, c = bQe(n, r, i === a ? a : i, e, s);
+ return i !== a && c != null && (c = c.map((e) => j3(j3({}, e), {}, { position: j3(j3({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;
+}, SQe = (e, t) => {
+ var n = CQ(t);
if (e && n != null && t != null) {
var r = t.stackId;
if (r != null) {
@@ -80229,7 +80229,7 @@ var SQe = (e, t, n, r, i, a, o) => {
}
}
}
-}, wQe = (e, t) => {
+}, CQe = (e, t) => {
if (e != null && t != null) {
var n = e.find((e) => e.stackId === t.stackId && t.dataKey != null && e.dataKeys.includes(t.dataKey));
if (n != null) return n.position;
@@ -80237,7 +80237,7 @@ var SQe = (e, t, n, r, i, a, o) => {
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/radialBarSelectors.js
-function TQe(e, t) {
+function wQe(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -80247,30 +80247,30 @@ function TQe(e, t) {
}
return n;
}
-function j3(e) {
+function M3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? TQe(Object(n), !0).forEach(function(t) {
- EQe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : TQe(Object(n)).forEach(function(t) {
+ t % 2 ? wQe(Object(n), !0).forEach(function(t) {
+ TQe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : wQe(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function EQe(e, t, n) {
- return (t = DQe(t)) in e ? Object.defineProperty(e, t, {
+function TQe(e, t, n) {
+ return (t = EQe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function DQe(e) {
- var t = OQe(e, "string");
+function EQe(e) {
+ var t = DQe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function OQe(e, t) {
+function DQe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -80280,81 +80280,81 @@ function OQe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var M3 = Y([(e, t) => mQ(e, t), (e, t) => B4(e, "radiusAxis", t)], (e, t) => {
- if (e != null && t != null) return j3(j3({}, e), {}, { scale: t });
-}), N3 = (e, t) => zJe(e, "radiusAxis", t, !1), P3 = Y([(e, t, n) => pQ(e, n), (e, t, n) => B4(e, "angleAxis", n)], (e, t) => {
- if (e != null && t != null) return j3(j3({}, e), {}, { scale: t });
-}), F3 = (e, t, n) => V4(e, "angleAxis", n, !1), I3 = Y([F4, (e, t, n, r) => r], (e, t) => {
+var N3 = Y([(e, t) => pQ(e, t), (e, t) => V4(e, "radiusAxis", t)], (e, t) => {
+ if (e != null && t != null) return M3(M3({}, e), {}, { scale: t });
+}), P3 = (e, t) => RJe(e, "radiusAxis", t, !1), F3 = Y([(e, t, n) => fQ(e, n), (e, t, n) => V4(e, "angleAxis", n)], (e, t) => {
+ if (e != null && t != null) return M3(M3({}, e), {}, { scale: t });
+}), I3 = (e, t, n) => H4(e, "angleAxis", n, !1), L3 = Y([I4, (e, t, n, r) => r], (e, t) => {
if (e.some((e) => e.type === "radialBar" && t.dataKey === e.dataKey && t.stackId === e.stackId)) return t;
-}), kQe = Y([
- eX,
- M3,
+}), OQe = Y([
+ $Y,
N3,
P3,
- F3
-], (e, t, n, r, i) => pY(e, "radiusAxis") ? CY(t, n, !1) : CY(r, i, !1)), AQe = Y([
- P3,
- M3,
- eX
+ F3,
+ I3
+], (e, t, n, r, i) => fY(e, "radiusAxis") ? SY(t, n, !1) : SY(r, i, !1)), kQe = Y([
+ F3,
+ N3,
+ $Y
], (e, t, n) => {
var r = n === "radial" ? e : t;
- if (r != null && r.scale != null) return bY({ numericAxis: r });
-}), jQe = (e, t, n, r, i) => i, MQe = (e, t, n, r, i) => n, NQe = (e, t, n, r, i) => t, PQe = (e, t, n, r, i) => r.maxBarSize, FQe = (e) => e.type === "radialBar", IQe = Y([Y([
+ if (r != null && r.scale != null) return yY({ numericAxis: r });
+}), AQe = (e, t, n, r, i) => i, jQe = (e, t, n, r, i) => n, MQe = (e, t, n, r, i) => t, NQe = (e, t, n, r, i) => r.maxBarSize, PQe = (e) => e.type === "radialBar", FQe = Y([Y([
Y([
Y([
- eX,
- F4,
- MQe,
- NQe
- ], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(FQe)),
- ZZ,
+ $Y,
+ I4,
+ jQe,
+ MQe
+ ], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(PQe)),
+ XZ,
() => void 0
- ], gQe),
+ ], hQe),
+ qZ,
JZ,
YZ,
- XZ,
Y([
- eX,
- JZ,
- P3,
+ $Y,
+ qZ,
F3,
- M3,
+ I3,
N3,
- PQe
+ P3,
+ NQe
], (e, t, n, r, i, a, o) => {
- var s = zW(o) ? t : o;
- return e === "centric" ? CY(n, r, !0) ?? s ?? 0 : CY(i, a, !0) ?? s ?? 0;
+ var s = RW(o) ? t : o;
+ return e === "centric" ? SY(n, r, !0) ?? s ?? 0 : SY(i, a, !0) ?? s ?? 0;
}),
- kQe,
- PQe
-], SQe), I3], wQe), LQe = Y([I4], (e) => e.filter(FQe).filter(EQ)), RQe = Y([
+ OQe,
+ NQe
+], xQe), L3], CQe), IQe = Y([L4], (e) => e.filter(PQe).filter(TQ)), LQe = Y([
Y([
- LQe,
- kZ,
- o2
- ], TQ),
- LQe,
- QZ,
- $Z
-], c2), zQe = Y([
- P3,
+ IQe,
+ OZ,
+ s2
+ ], wQ),
+ IQe,
+ ZZ,
+ QZ
+], l2), RQe = Y([
F3,
- M3,
- N3,
- OZ,
I3,
+ N3,
+ P3,
+ DZ,
+ L3,
+ OQe,
+ $Y,
kQe,
- eX,
+ bQ,
AQe,
- xQ,
- jQe,
- IQe,
- Y([(e, t, n) => eX(e) === "centric" ? RQe(e, "radiusAxis", t) : RQe(e, "angleAxis", n), I3], CQe)
+ FQe,
+ Y([(e, t, n) => $Y(e) === "centric" ? LQe(e, "radiusAxis", t) : LQe(e, "angleAxis", n), L3], SQe)
], (e, t, n, r, i, a, o, s, c, l, u, d, f) => {
var p = i.chartData, m = i.dataStartIndex, h = i.dataEndIndex;
if (a == null || n == null || e == null || p == null || o == null || d == null || s !== "centric" && s !== "radial" || r == null || l == null) return [];
var g = a.dataKey, _ = a.minPointSize, v = l.cx, y = l.cy, b = l.startAngle, x = l.endAngle;
- return o$e({
+ return a$e({
angleAxis: e,
angleAxisTicks: t,
bandSize: o,
@@ -80375,7 +80375,7 @@ var M3 = Y([(e, t) => mQ(e, t), (e, t) => B4(e, "radiusAxis", t)], (e, t) => {
stackedDomain: f ? (s === "centric" ? n : e).scale.domain() : null,
startAngle: b
});
-}), BQe = Y([kZ, (e, t) => t], (e, t) => {
+}), zQe = Y([OZ, (e, t) => t], (e, t) => {
var n = e.chartData, r = e.dataStartIndex, i = e.dataEndIndex;
if (n == null) return [];
var a = n.slice(r, i + 1);
@@ -80388,31 +80388,31 @@ var M3 = Y([(e, t) => mQ(e, t), (e, t) => B4(e, "radiusAxis", t)], (e, t) => {
});
//#endregion
//#region node_modules/recharts/es6/zIndex/getZIndexFromUnknown.js
-function VQe(e, t) {
- return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && cY(e.zIndex) ? e.zIndex : t;
+function BQe(e, t) {
+ return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && sY(e.zIndex) ? e.zIndex : t;
}
//#endregion
//#region node_modules/recharts/es6/polar/RadialBar.js
-var HQe = [
+var VQe = [
"shape",
"activeShape",
"cornerRadius",
"id"
-], UQe = [
+], HQe = [
"onMouseEnter",
"onClick",
"onMouseLeave"
-], WQe = ["value", "background"];
-function L3() {
- return L3 = Object.assign ? Object.assign.bind() : function(e) {
+], UQe = ["value", "background"];
+function R3() {
+ return R3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, L3.apply(null, arguments);
+ }, R3.apply(null, arguments);
}
-function GQe(e, t) {
+function WQe(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -80422,30 +80422,30 @@ function GQe(e, t) {
}
return n;
}
-function R3(e) {
+function z3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? GQe(Object(n), !0).forEach(function(t) {
- KQe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : GQe(Object(n)).forEach(function(t) {
+ t % 2 ? WQe(Object(n), !0).forEach(function(t) {
+ GQe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : WQe(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function KQe(e, t, n) {
- return (t = qQe(t)) in e ? Object.defineProperty(e, t, {
+function GQe(e, t, n) {
+ return (t = KQe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function qQe(e) {
- var t = JQe(e, "string");
+function KQe(e) {
+ var t = qQe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function JQe(e, t) {
+function qQe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -80455,16 +80455,16 @@ function JQe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function z3(e, t) {
+function B3(e, t) {
if (e == null) return {};
- var n, r, i = YQe(e, t);
+ var n, r, i = JQe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function YQe(e, t) {
+function JQe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -80473,8 +80473,8 @@ function YQe(e, t) {
}
return n;
}
-var XQe = [];
-function ZQe(e) {
+var YQe = [];
+function XQe(e) {
var t = e.showLabels, n = e.sectors, r = e.children, i = n.map((e) => ({
value: e.value,
payload: e.payload,
@@ -80491,15 +80491,15 @@ function ZQe(e) {
},
fill: e.fill
}));
- return /*#__PURE__*/ b.createElement(bJe, { value: t ? i : void 0 }, r);
+ return /*#__PURE__*/ b.createElement(yJe, { value: t ? i : void 0 }, r);
}
-function QQe(e) {
- var t = e.sectors, n = e.allOtherRadialBarProps, r = e.showLabels, i = e.animationElapsedTime, a = e.isAnimating, o = e.isEntrance, s = n.shape, c = n.activeShape, l = n.cornerRadius, u = n.id, d = z3(n, HQe), f = pW(d), p = J(Z2), m = n.onMouseEnter, h = n.onClick, g = n.onMouseLeave, _ = z3(n, UQe), v = n3(m, n.dataKey, u), y = r3(g), x = i3(h, n.dataKey, u);
- return t == null ? null : /*#__PURE__*/ b.createElement(ZQe, {
+function ZQe(e) {
+ var t = e.sectors, n = e.allOtherRadialBarProps, r = e.showLabels, i = e.animationElapsedTime, a = e.isAnimating, o = e.isEntrance, s = n.shape, c = n.activeShape, l = n.cornerRadius, u = n.id, d = B3(n, VQe), f = fW(d), p = J(Q2), m = n.onMouseEnter, h = n.onClick, g = n.onMouseLeave, _ = B3(n, HQe), v = r3(m, n.dataKey, u), y = i3(g), x = a3(h, n.dataKey, u);
+ return t == null ? null : /*#__PURE__*/ b.createElement(XQe, {
showLabels: r,
sectors: t
}, t.map((e, t) => {
- var n = !!(c && p === String(t)), r = v(e, t), u = y(e, t), m = x(e, t), h = R3(R3(R3(R3({}, f), {}, { cornerRadius: cQe(l) }, e), qG(_, e, t)), {}, {
+ var n = !!(c && p === String(t)), r = v(e, t), u = y(e, t), m = x(e, t), h = z3(z3(z3(z3({}, f), {}, { cornerRadius: sQe(l) }, e), KG(_, e, t)), {}, {
onMouseEnter: r,
onMouseLeave: u,
onClick: m,
@@ -80513,19 +80513,19 @@ function QQe(e) {
option: n && c != null ? c : s,
index: t
});
- return n ? /*#__PURE__*/ b.createElement(o4, {
- zIndex: iQ.activeBar,
+ return n ? /*#__PURE__*/ b.createElement(s4, {
+ zIndex: rQ.activeBar,
key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}`
- }, /*#__PURE__*/ b.createElement(k3, h)) : /*#__PURE__*/ b.createElement(k3, L3({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, h));
- }), /*#__PURE__*/ b.createElement(A4, { label: n.label }), n.children);
-}
-var $Qe = (e, t) => e == null ? [] : t === 1 ? e.flatMap((e) => e.status === "removed" ? [] : [e.next]) : e.flatMap((e) => e.status === "removed" ? [] : e.status === "matched" ? [R3(R3({}, e.next), {}, {
- startAngle: LW(e.prev.startAngle, e.next.startAngle, t),
- endAngle: LW(e.prev.endAngle, e.next.endAngle, t)
-})] : [R3(R3({}, e.next), {}, { endAngle: LW(e.next.startAngle, e.next.endAngle, t) })]);
-function e$e(e) {
- var t = e.props, n = e.previousSectorsRef, r = t.sectors, i = t.isAnimationActive, a = t.animationBegin, o = t.animationDuration, s = t.animationEasing, c = t.onAnimationStart, l = t.onAnimationEnd, u = d3(c, l), d = u.isAnimating, f = u.handleAnimationStart, p = u.handleAnimationEnd, m = iX();
- return m == null ? null : /*#__PURE__*/ b.createElement(f3, {
+ }, /*#__PURE__*/ b.createElement(A3, h)) : /*#__PURE__*/ b.createElement(A3, R3({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, h));
+ }), /*#__PURE__*/ b.createElement(j4, { label: n.label }), n.children);
+}
+var QQe = (e, t) => e == null ? [] : t === 1 ? e.flatMap((e) => e.status === "removed" ? [] : [e.next]) : e.flatMap((e) => e.status === "removed" ? [] : e.status === "matched" ? [z3(z3({}, e.next), {}, {
+ startAngle: IW(e.prev.startAngle, e.next.startAngle, t),
+ endAngle: IW(e.prev.endAngle, e.next.endAngle, t)
+})] : [z3(z3({}, e.next), {}, { endAngle: IW(e.next.startAngle, e.next.endAngle, t) })]);
+function $Qe(e) {
+ var t = e.props, n = e.previousSectorsRef, r = t.sectors, i = t.isAnimationActive, a = t.animationBegin, o = t.animationDuration, s = t.animationEasing, c = t.onAnimationStart, l = t.onAnimationEnd, u = f3(c, l), d = u.isAnimating, f = u.handleAnimationStart, p = u.handleAnimationEnd, m = rX();
+ return m == null ? null : /*#__PURE__*/ b.createElement(p3, {
animationInput: t,
animationIdPrefix: "recharts-radialbar-",
items: r,
@@ -80539,7 +80539,7 @@ function e$e(e) {
animationInterpolateFn: t.animationInterpolateFn,
animationMatchBy: t.animationMatchBy,
layout: m
- }, (e, n, r) => /*#__PURE__*/ b.createElement(QQe, {
+ }, (e, n, r) => /*#__PURE__*/ b.createElement(ZQe, {
sectors: e,
allOtherRadialBarProps: t,
showLabels: !d,
@@ -80548,21 +80548,21 @@ function e$e(e) {
isEntrance: r
}));
}
-function t$e(e) {
+function e$e(e) {
var t = (0, b.useRef)(null);
- return /*#__PURE__*/ b.createElement(e$e, {
+ return /*#__PURE__*/ b.createElement($Qe, {
props: e,
previousSectorsRef: t
});
}
-function n$e(e) {
- var t = J((t) => BQe(t, e.legendType));
- return /*#__PURE__*/ b.createElement(lXe, { legendPayload: t ?? [] });
+function t$e(e) {
+ var t = J((t) => zQe(t, e.legendType));
+ return /*#__PURE__*/ b.createElement(cXe, { legendPayload: t ?? [] });
}
-var r$e = /*#__PURE__*/ b.memo((e) => {
+var n$e = /*#__PURE__*/ b.memo((e) => {
var t = e.dataKey, n = e.sectors, r = e.stroke, i = e.strokeWidth, a = e.name, o = e.hide, s = e.fill, c = e.tooltipType, l = e.formatter, u = {
dataDefinedOnItem: n,
- getPosition: HW,
+ getPosition: VW,
settings: {
graphicalItemId: e.id,
stroke: r,
@@ -80570,7 +80570,7 @@ var r$e = /*#__PURE__*/ b.memo((e) => {
fill: s,
nameKey: void 0,
dataKey: t,
- name: TY(a, t),
+ name: wY(a, t),
hide: o,
type: c,
color: s,
@@ -80578,39 +80578,39 @@ var r$e = /*#__PURE__*/ b.memo((e) => {
formatter: l
}
};
- return /*#__PURE__*/ b.createElement(a3, { tooltipEntrySettings: u });
-}), i$e = class extends b.PureComponent {
+ return /*#__PURE__*/ b.createElement(o3, { tooltipEntrySettings: u });
+}), r$e = class extends b.PureComponent {
renderBackground(e) {
if (e == null) return null;
- var t = this.props.cornerRadius, n = mW(this.props.background);
- return /*#__PURE__*/ b.createElement(o4, { zIndex: VQe(this.props.background, iQ.barBackground) }, e.map((e, r) => {
+ var t = this.props.cornerRadius, n = pW(this.props.background);
+ return /*#__PURE__*/ b.createElement(s4, { zIndex: BQe(this.props.background, rQ.barBackground) }, e.map((e, r) => {
e.value;
- var i = e.background, a = z3(e, WQe);
+ var i = e.background, a = B3(e, UQe);
if (!i) return null;
- var o = R3(R3(R3(R3(R3({ cornerRadius: cQe(t) }, a), {}, { fill: "#eee" }, i), n), qG(this.props, e, r)), {}, {
+ var o = z3(z3(z3(z3(z3({ cornerRadius: sQe(t) }, a), {}, { fill: "#eee" }, i), n), KG(this.props, e, r)), {}, {
index: r,
- className: dv("recharts-radial-bar-background-sector", String(n?.className)),
+ className: fv("recharts-radial-bar-background-sector", String(n?.className)),
option: i,
isActive: !1
});
- return /*#__PURE__*/ b.createElement(k3, L3({ key: `background-${a.cx}-${a.cy}-${a.innerRadius}-${a.outerRadius}-${a.startAngle}-${a.endAngle}-${r}` }, o));
+ return /*#__PURE__*/ b.createElement(A3, R3({ key: `background-${a.cx}-${a.cy}-${a.innerRadius}-${a.outerRadius}-${a.startAngle}-${a.endAngle}-${r}` }, o));
}));
}
render() {
var e = this.props, t = e.hide, n = e.sectors, r = e.className, i = e.background;
if (t) return null;
- var a = dv("recharts-area", r);
- return /*#__PURE__*/ b.createElement(o4, { zIndex: this.props.zIndex }, /*#__PURE__*/ b.createElement(yW, { className: a }, i && /*#__PURE__*/ b.createElement(yW, { className: "recharts-radial-bar-background" }, this.renderBackground(n)), /*#__PURE__*/ b.createElement(yW, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ b.createElement(t$e, this.props))));
+ var a = fv("recharts-area", r);
+ return /*#__PURE__*/ b.createElement(s4, { zIndex: this.props.zIndex }, /*#__PURE__*/ b.createElement(vW, { className: a }, i && /*#__PURE__*/ b.createElement(vW, { className: "recharts-radial-bar-background" }, this.renderBackground(n)), /*#__PURE__*/ b.createElement(vW, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ b.createElement(e$e, this.props))));
}
};
-function a$e(e) {
- var t = b.useMemo(() => QYe(e.children, m4), [e.children]), n = b.useMemo(() => ({
+function i$e(e) {
+ var t = b.useMemo(() => ZYe(e.children, h4), [e.children]), n = b.useMemo(() => ({
data: void 0,
hide: !1,
id: e.id,
dataKey: e.dataKey,
minPointSize: e.minPointSize,
- stackId: _Y(e.stackId),
+ stackId: gY(e.stackId),
maxBarSize: e.maxBarSize,
barSize: e.barSize,
type: "radialBar",
@@ -80625,8 +80625,8 @@ function a$e(e) {
e.barSize,
e.angleAxisId,
e.radiusAxisId
- ]), r = J((r) => zQe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? XQe;
- return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(r$e, {
+ ]), r = J((r) => RQe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? YQe;
+ return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(n$e, {
dataKey: e.dataKey,
sectors: r,
stroke: e.stroke,
@@ -80637,15 +80637,15 @@ function a$e(e) {
tooltipType: e.tooltipType,
formatter: e.formatter,
id: e.id
- }), /*#__PURE__*/ b.createElement(i$e, L3({}, e, { sectors: r })));
+ }), /*#__PURE__*/ b.createElement(r$e, R3({}, e, { sectors: r })));
}
-var B3 = {
+var V3 = {
angleAxisId: 0,
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease",
- animationMatchBy: gXe,
- animationInterpolateFn: $Qe,
+ animationMatchBy: hXe,
+ animationInterpolateFn: QQe,
background: !1,
cornerIsExternal: !1,
cornerRadius: 0,
@@ -80656,15 +80656,15 @@ var B3 = {
legendType: "rect",
minPointSize: 0,
radiusAxisId: 0,
- shape: sQe,
- zIndex: iQ.bar
+ shape: oQe,
+ zIndex: rQ.bar
};
-function o$e(e) {
+function a$e(e) {
var t = e.displayedData, n = e.stackedData, r = e.dataStartIndex, i = e.stackedDomain, a = e.dataKey, o = e.baseValue, s = e.layout, c = e.radiusAxis, l = e.radiusAxisTicks, u = e.bandSize, d = e.pos, f = e.angleAxis, p = e.minPointSize, m = e.cx, h = e.cy, g = e.angleAxisTicks, _ = e.cells, v = e.startAngle, y = e.endAngle;
- return g == null || l == null ? XQe : (t ?? []).map((e, t) => {
+ return g == null || l == null ? YQe : (t ?? []).map((e, t) => {
var b, x, S, C, w, T;
- if (n ? b = gY(n[r + t], i) : (b = fY(e, a), Array.isArray(b) || (b = [o, b])), s === "radial") {
- if (C = f.scale.map(b[0]) ?? v, w = f.scale.map(b[1]) ?? y, x = yY({
+ if (n ? b = hY(n[r + t], i) : (b = dY(e, a), Array.isArray(b) || (b = [o, b])), s === "radial") {
+ if (C = f.scale.map(b[0]) ?? v, w = f.scale.map(b[1]) ?? y, x = vY({
axis: c,
ticks: l,
bandSize: u,
@@ -80675,7 +80675,7 @@ function o$e(e) {
S = x + d.size;
var E = w - C;
if (Math.abs(p) > 0 && Math.abs(E) < Math.abs(p)) {
- var D = kW(E || p) * (Math.abs(p) - Math.abs(E));
+ var D = OW(E || p) * (Math.abs(p) - Math.abs(E));
w += D;
}
T = { background: {
@@ -80687,7 +80687,7 @@ function o$e(e) {
endAngle: y
} };
}
- } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = yY({
+ } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = vY({
axis: f,
ticks: g,
bandSize: u,
@@ -80698,11 +80698,11 @@ function o$e(e) {
w = C + d.size;
var O = S - x;
if (Math.abs(p) > 0 && Math.abs(O) < Math.abs(p)) {
- var k = kW(O || p) * (Math.abs(p) - Math.abs(O));
+ var k = OW(O || p) * (Math.abs(p) - Math.abs(O));
S += k;
}
}
- return R3(R3(R3({}, e), T), {}, {
+ return z3(z3(z3({}, e), T), {}, {
payload: e,
value: n ? b : b[1],
cx: m,
@@ -80714,38 +80714,38 @@ function o$e(e) {
}, _ && _[t] && _[t].props);
});
}
-function V3(e) {
- var t = YG(e, B3);
- return /*#__PURE__*/ b.createElement(p3, {
+function H3(e) {
+ var t = JG(e, V3);
+ return /*#__PURE__*/ b.createElement(m3, {
id: t.id,
type: "radialBar"
- }, (e) => /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(WXe, {
+ }, (e) => /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(UXe, {
type: "radialBar",
id: e,
data: void 0,
dataKey: t.dataKey,
- hide: t.hide ?? B3.hide,
- angleAxisId: t.angleAxisId ?? B3.angleAxisId,
- radiusAxisId: t.radiusAxisId ?? B3.radiusAxisId,
- stackId: _Y(t.stackId),
+ hide: t.hide ?? V3.hide,
+ angleAxisId: t.angleAxisId ?? V3.angleAxisId,
+ radiusAxisId: t.radiusAxisId ?? V3.radiusAxisId,
+ stackId: gY(t.stackId),
barSize: t.barSize,
minPointSize: t.minPointSize,
maxBarSize: t.maxBarSize
- }), /*#__PURE__*/ b.createElement(n$e, t), /*#__PURE__*/ b.createElement(a$e, L3({}, t, { id: e }))));
+ }), /*#__PURE__*/ b.createElement(t$e, t), /*#__PURE__*/ b.createElement(i$e, R3({}, t, { id: e }))));
}
-V3.displayName = "RadialBar";
+H3.displayName = "RadialBar";
//#endregion
//#region node_modules/recharts/es6/context/chartDataContext.js
-var s$e = (e) => {
- var t = e.chartData, n = HK(), r = IY();
- return (0, b.useEffect)(() => r ? () => {} : (n(cKe(t)), () => {
- n(cKe(void 0));
+var o$e = (e) => {
+ var t = e.chartData, n = VK(), r = FY();
+ return (0, b.useEffect)(() => r ? () => {} : (n(sKe(t)), () => {
+ n(sKe(void 0));
}), [
t,
n,
r
]), null;
-}, c$e = {
+}, s$e = {
x: 0,
y: 0,
width: 0,
@@ -80756,15 +80756,15 @@ var s$e = (e) => {
bottom: 0,
left: 0
}
-}, l$e = MJ({
+}, c$e = jJ({
name: "brush",
- initialState: c$e,
+ initialState: s$e,
reducers: { setBrushSettings(e, t) {
- return t.payload == null ? c$e : t.payload;
+ return t.payload == null ? s$e : t.payload;
} }
});
-l$e.actions.setBrushSettings;
-var u$e = l$e.reducer, d$e = (e, t) => {
+c$e.actions.setBrushSettings;
+var l$e = c$e.reducer, u$e = (e, t) => {
var n = e.x, r = e.y, i = t.x, a = t.y;
return {
x: Math.min(n, i),
@@ -80772,9 +80772,9 @@ var u$e = l$e.reducer, d$e = (e, t) => {
width: Math.abs(i - n),
height: Math.abs(a - r)
};
-}, f$e = (e) => {
+}, d$e = (e) => {
var t = e.x1, n = e.y1, r = e.x2, i = e.y2;
- return d$e({
+ return u$e({
x: t,
y: n
}, {
@@ -80782,13 +80782,13 @@ var u$e = l$e.reducer, d$e = (e, t) => {
y: i
});
};
-function p$e(e) {
+function f$e(e) {
return (e % 180 + 180) % 180;
}
-var m$e = function(e) {
- var t = e.width, n = e.height, r = p$e(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0) * Math.PI / 180, i = Math.atan(n / t), a = r > i && r < Math.PI - i ? n / Math.sin(r) : t / Math.cos(r);
+var p$e = function(e) {
+ var t = e.width, n = e.height, r = f$e(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0) * Math.PI / 180, i = Math.atan(n / t), a = r > i && r < Math.PI - i ? n / Math.sin(r) : t / Math.cos(r);
return Math.abs(a);
-}, h$e = MJ({
+}, m$e = jJ({
name: "referenceElements",
initialState: {
dots: [],
@@ -80800,48 +80800,48 @@ var m$e = function(e) {
e.dots.push(t.payload);
},
removeDot: (e, t) => {
- var n = vJ(e).dots.findIndex((e) => e === t.payload);
+ var n = _J(e).dots.findIndex((e) => e === t.payload);
n !== -1 && e.dots.splice(n, 1);
},
addArea: (e, t) => {
e.areas.push(t.payload);
},
removeArea: (e, t) => {
- var n = vJ(e).areas.findIndex((e) => e === t.payload);
+ var n = _J(e).areas.findIndex((e) => e === t.payload);
n !== -1 && e.areas.splice(n, 1);
},
addLine: (e, t) => {
- e.lines.push(xJ(t.payload));
+ e.lines.push(bJ(t.payload));
},
removeLine: (e, t) => {
- var n = vJ(e).lines.findIndex((e) => e === t.payload);
+ var n = _J(e).lines.findIndex((e) => e === t.payload);
n !== -1 && e.lines.splice(n, 1);
}
}
-}), H3 = h$e.actions;
-H3.addDot, H3.removeDot, H3.addArea, H3.removeArea;
-var g$e = H3.addLine, _$e = H3.removeLine, v$e = h$e.reducer;
+}), U3 = m$e.actions;
+U3.addDot, U3.removeDot, U3.addArea, U3.removeArea;
+var h$e = U3.addLine, g$e = U3.removeLine, _$e = m$e.reducer;
//#endregion
//#region node_modules/recharts/es6/container/ClipPathProvider.js
-function y$e(e, t) {
- return w$e(e) || C$e(e, t) || x$e(e, t) || b$e();
+function v$e(e, t) {
+ return C$e(e) || S$e(e, t) || b$e(e, t) || y$e();
}
-function b$e() {
+function y$e() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function x$e(e, t) {
+function b$e(e, t) {
if (e) {
- if (typeof e == "string") return S$e(e, t);
+ if (typeof e == "string") return x$e(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? S$e(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? x$e(e, t) : void 0;
}
}
-function S$e(e, t) {
+function x$e(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function C$e(e, t) {
+function S$e(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -80862,20 +80862,20 @@ function C$e(e, t) {
return s;
}
}
-function w$e(e) {
+function C$e(e) {
if (Array.isArray(e)) return e;
}
-var T$e = /*#__PURE__*/ (0, b.createContext)(void 0), E$e = (e) => {
- var t = e.children, n = y$e((0, b.useState)(`${PW("recharts")}-clip`), 1)[0], r = x3();
+var w$e = /*#__PURE__*/ (0, b.createContext)(void 0), T$e = (e) => {
+ var t = e.children, n = v$e((0, b.useState)(`${NW("recharts")}-clip`), 1)[0], r = S3();
if (r == null) return null;
var i = r.x, a = r.y, o = r.width, s = r.height;
- return /*#__PURE__*/ b.createElement(T$e.Provider, { value: n }, /*#__PURE__*/ b.createElement("defs", null, /*#__PURE__*/ b.createElement("clipPath", { id: n }, /*#__PURE__*/ b.createElement("rect", {
+ return /*#__PURE__*/ b.createElement(w$e.Provider, { value: n }, /*#__PURE__*/ b.createElement("defs", null, /*#__PURE__*/ b.createElement("clipPath", { id: n }, /*#__PURE__*/ b.createElement("rect", {
x: i,
y: a,
height: s,
width: o
}))), t);
-}, D$e = () => (0, b.useContext)(T$e), O$e = class {
+}, E$e = () => (0, b.useContext)(w$e), D$e = class {
constructor(e) {
var t = e.x, n = e.y;
this.xAxisScale = t, this.yAxisScale = n;
@@ -80901,7 +80901,7 @@ var T$e = /*#__PURE__*/ (0, b.createContext)(void 0), E$e = (e) => {
};
//#endregion
//#region node_modules/recharts/es6/cartesian/ReferenceLine.js
-function k$e(e, t) {
+function O$e(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -80911,30 +80911,30 @@ function k$e(e, t) {
}
return n;
}
-function A$e(e) {
+function k$e(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? k$e(Object(n), !0).forEach(function(t) {
- j$e(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : k$e(Object(n)).forEach(function(t) {
+ t % 2 ? O$e(Object(n), !0).forEach(function(t) {
+ A$e(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O$e(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function j$e(e, t, n) {
- return (t = M$e(t)) in e ? Object.defineProperty(e, t, {
+function A$e(e, t, n) {
+ return (t = j$e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function M$e(e) {
- var t = N$e(e, "string");
+function j$e(e) {
+ var t = M$e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function N$e(e, t) {
+function M$e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -80944,27 +80944,27 @@ function N$e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function U3() {
- return U3 = Object.assign ? Object.assign.bind() : function(e) {
+function W3() {
+ return W3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, U3.apply(null, arguments);
+ }, W3.apply(null, arguments);
}
-var P$e = (e, t) => {
+var N$e = (e, t) => {
var n;
if (/*#__PURE__*/ b.isValidElement(e)) n = /*#__PURE__*/ b.cloneElement(e, t);
else if (typeof e == "function") n = e(t);
else {
- if (!cY(t.x1) || !cY(t.y1) || !cY(t.x2) || !cY(t.y2)) return null;
- n = /*#__PURE__*/ b.createElement("line", U3({}, t, { className: "recharts-reference-line-line" }));
+ if (!sY(t.x1) || !sY(t.y1) || !sY(t.x2) || !sY(t.y2)) return null;
+ n = /*#__PURE__*/ b.createElement("line", W3({}, t, { className: "recharts-reference-line-line" }));
}
return n;
-}, F$e = (e, t, n, r, i, a) => {
+}, P$e = (e, t, n, r, i, a) => {
var o = a.x, s = a.width, c = i.map(e, { position: n });
- if (!cY(c) || t === "discard" && !i.isInRange(c)) return null;
+ if (!sY(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
x: o + s,
y: c
@@ -80973,9 +80973,9 @@ var P$e = (e, t) => {
y: c
}];
return r === "left" ? l.reverse() : l;
-}, I$e = (e, t, n, r, i, a) => {
+}, F$e = (e, t, n, r, i, a) => {
var o = a.y, s = a.height, c = i.map(e, { position: n });
- if (!cY(c) || t === "discard" && !i.isInRange(c)) return null;
+ if (!sY(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
x: c,
y: o + s
@@ -80984,7 +80984,7 @@ var P$e = (e, t) => {
y: o
}];
return r === "top" ? l.reverse() : l;
-}, L$e = (e, t, n, r) => {
+}, I$e = (e, t, n, r) => {
var i = [r.mapWithFallback(e[0], {
position: n,
fallback: "rangeMin"
@@ -80993,43 +80993,43 @@ var P$e = (e, t) => {
fallback: "rangeMax"
})];
return t === "discard" && i.some((e) => !r.isInRange(e)) ? null : i;
-}, R$e = (e, t, n, r, i, a, o) => {
- var s = o.x, c = o.y, l = o.segment, u = o.ifOverflow, d = NW(s);
- return NW(c) ? F$e(c, u, r, a, t, n) : d ? I$e(s, u, r, i, e, n) : l != null && l.length === 2 ? L$e(l, u, r, new O$e({
+}, L$e = (e, t, n, r, i, a, o) => {
+ var s = o.x, c = o.y, l = o.segment, u = o.ifOverflow, d = MW(s);
+ return MW(c) ? P$e(c, u, r, a, t, n) : d ? F$e(s, u, r, i, e, n) : l != null && l.length === 2 ? I$e(l, u, r, new D$e({
x: e,
y: t
})) : null;
};
-function z$e(e) {
- var t = HK();
- return (0, b.useEffect)(() => (t(g$e(e)), () => {
- t(_$e(e));
+function R$e(e) {
+ var t = VK();
+ return (0, b.useEffect)(() => (t(h$e(e)), () => {
+ t(g$e(e));
})), null;
}
-function B$e(e) {
- var t = e.xAxisId, n = e.yAxisId, r = e.shape, i = e.className, a = e.ifOverflow, o = IY(), s = D$e(), c = J((e) => W0(e, t)), l = J((e) => K0(e, n)), u = J((e) => O2(e, "xAxis", t, o)), d = J((e) => O2(e, "yAxis", n, o)), f = XY();
+function z$e(e) {
+ var t = e.xAxisId, n = e.yAxisId, r = e.shape, i = e.className, a = e.ifOverflow, o = FY(), s = E$e(), c = J((e) => G0(e, t)), l = J((e) => q0(e, n)), u = J((e) => k2(e, "xAxis", t, o)), d = J((e) => k2(e, "yAxis", n, o)), f = YY();
if (!s || !f || c == null || l == null || u == null || d == null) return null;
- var p = R$e(u, d, f, e.position, c.orientation, l.orientation, e);
+ var p = L$e(u, d, f, e.position, c.orientation, l.orientation, e);
if (!p) return null;
var m = p[0], h = p[1];
if (m == null || h == null) return null;
- var g = m.x, _ = m.y, v = h.x, y = h.y, x = A$e(A$e({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, hW(e)), {}, {
+ var g = m.x, _ = m.y, v = h.x, y = h.y, x = k$e(k$e({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, mW(e)), {}, {
x1: g,
y1: _,
x2: v,
y2: y
- }), S = f$e({
+ }), S = d$e({
x1: g,
y1: _,
x2: v,
y2: y
});
- return /*#__PURE__*/ b.createElement(o4, { zIndex: e.zIndex }, /*#__PURE__*/ b.createElement(yW, { className: dv("recharts-reference-line", i) }, P$e(r, x), /*#__PURE__*/ b.createElement($qe, U3({}, S, {
+ return /*#__PURE__*/ b.createElement(s4, { zIndex: e.zIndex }, /*#__PURE__*/ b.createElement(vW, { className: fv("recharts-reference-line", i) }, N$e(r, x), /*#__PURE__*/ b.createElement(Qqe, W3({}, S, {
lowerWidth: S.width,
upperWidth: S.width
- }), /*#__PURE__*/ b.createElement(dJe, { label: e.label }), e.children)));
+ }), /*#__PURE__*/ b.createElement(uJe, { label: e.label }), e.children)));
}
-var V$e = {
+var B$e = {
ifOverflow: "discard",
xAxisId: 0,
yAxisId: 0,
@@ -81039,36 +81039,36 @@ var V$e = {
fillOpacity: 1,
strokeWidth: 1,
position: "middle",
- zIndex: iQ.line
+ zIndex: rQ.line
};
-function H$e(e) {
- var t = YG(e, V$e);
- return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(z$e, {
+function V$e(e) {
+ var t = JG(e, B$e);
+ return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(R$e, {
yAxisId: t.yAxisId,
xAxisId: t.xAxisId,
ifOverflow: t.ifOverflow,
x: t.x,
y: t.y,
segment: t.segment
- }), /*#__PURE__*/ b.createElement(B$e, t));
+ }), /*#__PURE__*/ b.createElement(z$e, t));
}
-H$e.displayName = "ReferenceLine";
+V$e.displayName = "ReferenceLine";
//#endregion
//#region node_modules/es-toolkit/dist/function/noop.mjs
-function U$e() {}
+function H$e() {}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
-function W$e(e) {
+function U$e(e) {
if (!e || typeof e != "object") return !1;
let t = Object.getPrototypeOf(e);
return t !== null && t !== Object.prototype && Object.getPrototypeOf(t) !== null ? !1 : Object.prototype.toString.call(e) === "[object Object]";
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isEqualWith.mjs
-function G$e(e, t, n) {
- return W3(e, t, void 0, void 0, void 0, void 0, n);
+function W$e(e, t, n) {
+ return G3(e, t, void 0, void 0, void 0, void 0, n);
}
-function W3(e, t, n, r, i, a, o) {
+function G3(e, t, n, r, i, a, o) {
let s = o(e, t, n, r, i, a);
if (s !== void 0) return s;
if (typeof e == typeof t) switch (typeof e) {
@@ -81079,22 +81079,22 @@ function W3(e, t, n, r, i, a, o) {
case "undefined": return e === t;
case "number": return e === t || Object.is(e, t);
case "function": return e === t;
- case "object": return G3(e, t, a, o);
+ case "object": return K3(e, t, a, o);
}
- return G3(e, t, a, o);
+ return K3(e, t, a, o);
}
-function G3(e, t, n, r) {
+function K3(e, t, n, r) {
if (Object.is(e, t)) return !0;
- let i = iK(e), a = iK(t);
- if (i === "[object Arguments]" && (i = gK), a === "[object Arguments]" && (a = gK), i !== a) return !1;
+ let i = rK(e), a = rK(t);
+ if (i === "[object Arguments]" && (i = hK), a === "[object Arguments]" && (a = hK), i !== a) return !1;
switch (i) {
- case oK: return e.toString() === t.toString();
- case sK: return jK(e.valueOf(), t.valueOf());
- case cK:
- case dK:
- case uK: return Object.is(e.valueOf(), t.valueOf());
- case aK: return e.source === t.source && e.flags === t.flags;
- case JNe: return e === t;
+ case aK: return e.toString() === t.toString();
+ case oK: return AK(e.valueOf(), t.valueOf());
+ case sK:
+ case uK:
+ case lK: return Object.is(e.valueOf(), t.valueOf());
+ case iK: return e.source === t.source && e.flags === t.flags;
+ case YNe: return e === t;
}
n ??= /* @__PURE__ */ new Map();
let o = n.get(e), s = n.get(t);
@@ -81102,47 +81102,47 @@ function G3(e, t, n, r) {
n.set(e, t), n.set(t, e);
try {
switch (i) {
- case fK:
+ case dK:
if (e.size !== t.size) return !1;
- for (let [i, a] of e.entries()) if (!t.has(i) || !W3(a, t.get(i), i, e, t, n, r)) return !1;
+ for (let [i, a] of e.entries()) if (!t.has(i) || !G3(a, t.get(i), i, e, t, n, r)) return !1;
return !0;
- case pK: {
+ case fK: {
if (e.size !== t.size) return !1;
let i = Array.from(e.values()), a = Array.from(t.values());
for (let o = 0; o < i.length; o++) {
- let s = i[o], c = a.findIndex((i) => W3(s, i, void 0, e, t, n, r));
+ let s = i[o], c = a.findIndex((i) => G3(s, i, void 0, e, t, n, r));
if (c === -1) return !1;
a.splice(c, 1);
}
return !0;
}
- case mK:
+ case pK:
+ case _K:
case vK:
case yK:
case bK:
+ case ZNe:
case xK:
- case XNe:
case SK:
case CK:
+ case QNe:
case wK:
- case ZNe:
case TK:
- case EK:
- if (OK(e) !== OK(t) || e.length !== t.length) return !1;
- for (let i = 0; i < e.length; i++) if (!W3(e[i], t[i], i, e, t, n, r)) return !1;
+ if (DK(e) !== DK(t) || e.length !== t.length) return !1;
+ for (let i = 0; i < e.length; i++) if (!G3(e[i], t[i], i, e, t, n, r)) return !1;
return !0;
- case hK: return e.byteLength === t.byteLength && G3(new Uint8Array(e), new Uint8Array(t), n, r);
- case _K: return e.byteLength !== t.byteLength || e.byteOffset !== t.byteOffset ? !1 : G3(new Uint8Array(e), new Uint8Array(t), n, r);
- case YNe: return e.name === t.name && e.message === t.message;
- case gK: {
- if (!(G3(e.constructor, t.constructor, n, r) || W$e(e) && W$e(t))) return !1;
- let i = [...Object.keys(e), ...rK(e)], a = [...Object.keys(t), ...rK(t)];
+ case mK: return e.byteLength === t.byteLength && K3(new Uint8Array(e), new Uint8Array(t), n, r);
+ case gK: return e.byteLength !== t.byteLength || e.byteOffset !== t.byteOffset ? !1 : K3(new Uint8Array(e), new Uint8Array(t), n, r);
+ case XNe: return e.name === t.name && e.message === t.message;
+ case hK: {
+ if (!(K3(e.constructor, t.constructor, n, r) || U$e(e) && U$e(t))) return !1;
+ let i = [...Object.keys(e), ...nK(e)], a = [...Object.keys(t), ...nK(t)];
if (i.length !== a.length) return !1;
for (let a = 0; a < i.length; a++) {
let o = i[a], s = e[o];
if (!Object.hasOwn(t, o)) return !1;
let c = t[o];
- if (!W3(s, c, o, e, t, n, r)) return !1;
+ if (!G3(s, c, o, e, t, n, r)) return !1;
}
return !0;
}
@@ -81154,12 +81154,12 @@ function G3(e, t, n, r) {
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isEqual.mjs
-function K$e(e, t) {
- return G$e(e, t, U$e);
+function G$e(e, t) {
+ return W$e(e, t, H$e);
}
//#endregion
//#region node_modules/recharts/es6/util/getEveryNth.js
-function q$e(e, t) {
+function K$e(e, t) {
if (t < 1) return [];
if (t === 1) return e;
for (var n = [], r = 0; r < e.length; r += t) {
@@ -81170,13 +81170,13 @@ function q$e(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/util/TickUtils.js
-function J$e(e, t, n) {
- return m$e({
+function q$e(e, t, n) {
+ return p$e({
width: e.width + t.width,
height: e.height + t.height
}, n);
}
-function Y$e(e, t, n) {
+function J$e(e, t, n) {
var r = n === "width", i = e.x, a = e.y, o = e.width, s = e.height;
return t === 1 ? {
start: r ? i : a,
@@ -81186,33 +81186,33 @@ function Y$e(e, t, n) {
end: r ? i : a
};
}
-function K3(e, t, n, r, i) {
+function q3(e, t, n, r, i) {
if (e * t < e * r || e * t > e * i) return !1;
var a = n();
return e * (t - e * a / 2 - r) >= 0 && e * (t + e * a / 2 - i) <= 0;
}
-function X$e(e, t) {
- return q$e(e, t + 1);
+function Y$e(e, t) {
+ return K$e(e, t + 1);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/getEquidistantTicks.js
-function Z$e(e, t, n, r, i) {
+function X$e(e, t, n, r, i) {
for (var a = (r || []).slice(), o = t.start, s = t.end, c = 0, l = 1, u = o, d = function() {
var t = r?.[c];
- if (t === void 0) return { v: q$e(r, l) };
- var a = c, d, f = () => (d === void 0 && (d = n(t, a)), d), p = t.coordinate, m = c === 0 || K3(e, p, f, u, s);
+ if (t === void 0) return { v: K$e(r, l) };
+ var a = c, d, f = () => (d === void 0 && (d = n(t, a)), d), p = t.coordinate, m = c === 0 || q3(e, p, f, u, s);
m || (c = 0, u = o, l += 1), m && (u = p + e * (f() / 2 + i), c += l);
}, f; l <= a.length;) if (f = d(), f) return f.v;
return [];
}
-function Q$e(e, t, n, r, i) {
+function Z$e(e, t, n, r, i) {
var a = (r || []).slice().length;
if (a === 0) return [];
for (var o = t.start, s = t.end, c = 1; c <= a; c++) {
for (var l = (a - 1) % c, u = o, d = !0, f = function() {
var t = r[m];
if (t == null) return 0;
- var a = m, o, c = () => (o === void 0 && (o = n(t, a)), o), f = t.coordinate, p = m === l || K3(e, f, c, u, s);
+ var a = m, o, c = () => (o === void 0 && (o = n(t, a)), o), f = t.coordinate, p = m === l || q3(e, f, c, u, s);
if (!p) return d = !1, 1;
p && (u = f + e * (c() / 2 + i));
}, p, m = l; m < a && (p = f(), p === 0 || p !== 1); m += c);
@@ -81228,7 +81228,7 @@ function Q$e(e, t, n, r, i) {
}
//#endregion
//#region node_modules/recharts/es6/cartesian/getTicks.js
-function $$e(e, t) {
+function Q$e(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -81238,30 +81238,30 @@ function $$e(e, t) {
}
return n;
}
-function q3(e) {
+function J3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? $$e(Object(n), !0).forEach(function(t) {
- e1e(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $$e(Object(n)).forEach(function(t) {
+ t % 2 ? Q$e(Object(n), !0).forEach(function(t) {
+ $$e(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Q$e(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function e1e(e, t, n) {
- return (t = t1e(t)) in e ? Object.defineProperty(e, t, {
+function $$e(e, t, n) {
+ return (t = e1e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function t1e(e) {
- var t = n1e(e, "string");
+function e1e(e) {
+ var t = t1e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function n1e(e, t) {
+function t1e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -81271,26 +81271,26 @@ function n1e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function r1e(e, t, n, r, i) {
+function n1e(e, t, n, r, i) {
for (var a = (r || []).slice(), o = a.length, s = t.start, c = t.end, l = function(t) {
var r = a[t];
if (r == null) return 1;
var l = r, u, d = () => (u === void 0 && (u = n(r, t)), u);
if (t === o - 1) {
var f = e * (l.coordinate + e * d() / 2 - c);
- a[t] = l = q3(q3({}, l), {}, { tickCoord: f > 0 ? l.coordinate - f * e : l.coordinate });
- } else a[t] = l = q3(q3({}, l), {}, { tickCoord: l.coordinate });
- l.tickCoord != null && K3(e, l.tickCoord, d, s, c) && (c = l.tickCoord - e * (d() / 2 + i), a[t] = q3(q3({}, l), {}, { isShow: !0 }));
+ a[t] = l = J3(J3({}, l), {}, { tickCoord: f > 0 ? l.coordinate - f * e : l.coordinate });
+ } else a[t] = l = J3(J3({}, l), {}, { tickCoord: l.coordinate });
+ l.tickCoord != null && q3(e, l.tickCoord, d, s, c) && (c = l.tickCoord - e * (d() / 2 + i), a[t] = J3(J3({}, l), {}, { isShow: !0 }));
}, u = o - 1; u >= 0; u--) if (l(u)) continue;
return a;
}
-function i1e(e, t, n, r, i, a) {
+function r1e(e, t, n, r, i, a) {
var o = (r || []).slice(), s = o.length, c = t.start, l = t.end;
if (a) {
var u = r[s - 1];
if (u != null) {
var d = n(u, s - 1), f = e * (u.coordinate + e * d / 2 - l);
- o[s - 1] = u = q3(q3({}, u), {}, { tickCoord: f > 0 ? u.coordinate - f * e : u.coordinate }), u.tickCoord != null && K3(e, u.tickCoord, () => d, c, l) && (l = u.tickCoord - e * (d / 2 + i), o[s - 1] = q3(q3({}, u), {}, { isShow: !0 }));
+ o[s - 1] = u = J3(J3({}, u), {}, { tickCoord: f > 0 ? u.coordinate - f * e : u.coordinate }), u.tickCoord != null && q3(e, u.tickCoord, () => d, c, l) && (l = u.tickCoord - e * (d / 2 + i), o[s - 1] = J3(J3({}, u), {}, { isShow: !0 }));
}
}
for (var p = a ? s - 1 : s, m = function(t) {
@@ -81299,17 +81299,17 @@ function i1e(e, t, n, r, i, a) {
var a = r, s, u = () => (s === void 0 && (s = n(r, t)), s);
if (t === 0) {
var d = e * (a.coordinate - e * u() / 2 - c);
- o[t] = a = q3(q3({}, a), {}, { tickCoord: d < 0 ? a.coordinate - d * e : a.coordinate });
- } else o[t] = a = q3(q3({}, a), {}, { tickCoord: a.coordinate });
- a.tickCoord != null && K3(e, a.tickCoord, u, c, l) && (c = a.tickCoord + e * (u() / 2 + i), o[t] = q3(q3({}, a), {}, { isShow: !0 }));
+ o[t] = a = J3(J3({}, a), {}, { tickCoord: d < 0 ? a.coordinate - d * e : a.coordinate });
+ } else o[t] = a = J3(J3({}, a), {}, { tickCoord: a.coordinate });
+ a.tickCoord != null && q3(e, a.tickCoord, u, c, l) && (c = a.tickCoord + e * (u() / 2 + i), o[t] = J3(J3({}, a), {}, { isShow: !0 }));
}, h = 0; h < p; h++) if (m(h)) continue;
return o;
}
-function J3(e, t, n) {
+function Y3(e, t, n) {
var r = e.tick, i = e.ticks, a = e.viewBox, o = e.minTickGap, s = e.orientation, c = e.interval, l = e.tickFormatter, u = e.unit, d = e.angle;
if (!i || !i.length || !r) return [];
- if (MW(c) || DX.isSsr) return X$e(i, MW(c) ? c : 0) ?? [];
- var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? h4(u, {
+ if (jW(c) || EX.isSsr) return Y$e(i, jW(c) ? c : 0) ?? [];
+ var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? g4(u, {
fontSize: t,
letterSpacing: n
}) : {
@@ -81317,19 +81317,19 @@ function J3(e, t, n) {
height: 0
}, h = (e, r) => {
var i = typeof l == "function" ? l(e.value, r) : e.value;
- return p === "width" ? J$e(h4(i, {
+ return p === "width" ? q$e(g4(i, {
fontSize: t,
letterSpacing: n
- }), m, d) : h4(i, {
+ }), m, d) : g4(i, {
fontSize: t,
letterSpacing: n
})[p];
- }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? kW(_.coordinate - g.coordinate) : 1, y = Y$e(a, v, p);
- return c === "equidistantPreserveStart" ? Z$e(v, y, h, i, o) : c === "equidistantPreserveEnd" ? Q$e(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? i1e(v, y, h, i, o, c === "preserveStartEnd") : r1e(v, y, h, i, o), f.filter((e) => e.isShow));
+ }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? OW(_.coordinate - g.coordinate) : 1, y = J$e(a, v, p);
+ return c === "equidistantPreserveStart" ? X$e(v, y, h, i, o) : c === "equidistantPreserveEnd" ? Z$e(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? r1e(v, y, h, i, o, c === "preserveStartEnd") : n1e(v, y, h, i, o), f.filter((e) => e.isShow));
}
//#endregion
//#region node_modules/recharts/es6/util/YAxisUtils.js
-var a1e = (e) => {
+var i1e = (e) => {
var t = e.ticks, n = e.label, r = e.labelGapWithTick, i = r === void 0 ? 5 : r, a = e.tickSize, o = a === void 0 ? 0 : a, s = e.tickMargin, c = s === void 0 ? 0 : s, l = 0;
if (t) {
Array.from(t).forEach((e) => {
@@ -81342,7 +81342,7 @@ var a1e = (e) => {
return Math.round(f);
}
return 0;
-}, o1e = (e) => {
+}, a1e = (e) => {
var t = e.ticks, n = e.label, r = e.labelGapWithTick, i = r === void 0 ? 5 : r, a = e.tickSize, o = a === void 0 ? 0 : a, s = e.tickMargin, c = s === void 0 ? 0 : s, l = 0;
if (t) {
Array.from(t).forEach((e) => {
@@ -81355,7 +81355,7 @@ var a1e = (e) => {
return Math.round(f);
}
return 0;
-}, s1e = MJ({
+}, o1e = jJ({
name: "renderedTicks",
initialState: {
xAxis: {},
@@ -81364,14 +81364,14 @@ var a1e = (e) => {
reducers: {
setRenderedTicks: (e, t) => {
var n = t.payload, r = n.axisType, i = n.axisId, a = n.ticks;
- e[r][i] = xJ(a);
+ e[r][i] = bJ(a);
},
removeRenderedTicks: (e, t) => {
var n = t.payload, r = n.axisType, i = n.axisId;
delete e[r][i];
}
}
-}), c1e = s1e.actions, l1e = c1e.setRenderedTicks, u1e = c1e.removeRenderedTicks, d1e = s1e.reducer, f1e = [
+}), s1e = o1e.actions, c1e = s1e.setRenderedTicks, l1e = s1e.removeRenderedTicks, u1e = o1e.reducer, d1e = [
"axisLine",
"width",
"height",
@@ -81381,25 +81381,25 @@ var a1e = (e) => {
"axisType",
"axisId"
];
-function p1e(e, t) {
- return v1e(e) || _1e(e, t) || h1e(e, t) || m1e();
+function f1e(e, t) {
+ return _1e(e) || g1e(e, t) || m1e(e, t) || p1e();
}
-function m1e() {
+function p1e() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function h1e(e, t) {
+function m1e(e, t) {
if (e) {
- if (typeof e == "string") return g1e(e, t);
+ if (typeof e == "string") return h1e(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? g1e(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? h1e(e, t) : void 0;
}
}
-function g1e(e, t) {
+function h1e(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function _1e(e, t) {
+function g1e(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -81420,19 +81420,19 @@ function _1e(e, t) {
return s;
}
}
-function v1e(e) {
+function _1e(e) {
if (Array.isArray(e)) return e;
}
-function y1e(e, t) {
+function v1e(e, t) {
if (e == null) return {};
- var n, r, i = b1e(e, t);
+ var n, r, i = y1e(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function b1e(e, t) {
+function y1e(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -81441,16 +81441,16 @@ function b1e(e, t) {
}
return n;
}
-function Y3() {
- return Y3 = Object.assign ? Object.assign.bind() : function(e) {
+function X3() {
+ return X3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, Y3.apply(null, arguments);
+ }, X3.apply(null, arguments);
}
-function x1e(e, t) {
+function b1e(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -81460,30 +81460,30 @@ function x1e(e, t) {
}
return n;
}
-function X3(e) {
+function Z3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? x1e(Object(n), !0).forEach(function(t) {
- S1e(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : x1e(Object(n)).forEach(function(t) {
+ t % 2 ? b1e(Object(n), !0).forEach(function(t) {
+ x1e(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : b1e(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function S1e(e, t, n) {
- return (t = C1e(t)) in e ? Object.defineProperty(e, t, {
+function x1e(e, t, n) {
+ return (t = S1e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function C1e(e) {
- var t = w1e(e, "string");
+function S1e(e) {
+ var t = C1e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function w1e(e, t) {
+function C1e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -81493,7 +81493,7 @@ function w1e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Z3 = {
+var Q3 = {
x: 0,
y: 0,
width: 0,
@@ -81515,15 +81515,15 @@ var Z3 = {
tickSize: 6,
tickMargin: 2,
interval: "preserveEnd",
- zIndex: iQ.axis
+ zIndex: rQ.axis
};
-function T1e(e) {
+function w1e(e) {
var t = e.x, n = e.y, r = e.width, i = e.height, a = e.orientation, o = e.mirror, s = e.axisLine, c = e.otherSvgProps;
if (!s) return null;
- var l = X3(X3(X3({}, c), pW(s)), {}, { fill: "none" });
+ var l = Z3(Z3(Z3({}, c), fW(s)), {}, { fill: "none" });
if (a === "top" || a === "bottom") {
var u = +(a === "top" && !o || a === "bottom" && o);
- l = X3(X3({}, l), {}, {
+ l = Z3(Z3({}, l), {}, {
x1: t,
y1: n + u * i,
x2: t + r,
@@ -81531,17 +81531,17 @@ function T1e(e) {
});
} else {
var d = +(a === "left" && !o || a === "right" && o);
- l = X3(X3({}, l), {}, {
+ l = Z3(Z3({}, l), {}, {
x1: t + d * r,
y1: n,
x2: t + d * r,
y2: n + i
});
}
- return /*#__PURE__*/ b.createElement("line", Y3({}, l, { className: dv("recharts-cartesian-axis-line", EW(s, "className")) }));
+ return /*#__PURE__*/ b.createElement("line", X3({}, l, { className: fv("recharts-cartesian-axis-line", TW(s, "className")) }));
}
-function E1e(e, t, n, r, i, a, o, s, c) {
- var l, u, d, f, p, m, h = s ? -1 : 1, g = e.tickSize || o, _ = MW(e.tickCoord) ? e.tickCoord : e.coordinate;
+function T1e(e, t, n, r, i, a, o, s, c) {
+ var l, u, d, f, p, m, h = s ? -1 : 1, g = e.tickSize || o, _ = jW(e.tickCoord) ? e.tickCoord : e.coordinate;
switch (a) {
case "top":
l = u = e.coordinate, f = n + +!s * i, d = f - h * g, m = d - h * c, p = _;
@@ -81567,14 +81567,14 @@ function E1e(e, t, n, r, i, a, o, s, c) {
}
};
}
-function D1e(e, t) {
+function E1e(e, t) {
switch (e) {
case "left": return t ? "start" : "end";
case "right": return t ? "end" : "start";
default: return "middle";
}
}
-function O1e(e, t) {
+function D1e(e, t) {
switch (e) {
case "left":
case "right": return "middle";
@@ -81582,18 +81582,18 @@ function O1e(e, t) {
default: return t ? "end" : "start";
}
}
-function k1e(e) {
- var t = e.option, n = e.tickProps, r = e.value, i, a = dv(n.className, "recharts-cartesian-axis-tick-value");
- if (/*#__PURE__*/ b.isValidElement(t)) i = /*#__PURE__*/ b.cloneElement(t, X3(X3({}, n), {}, { className: a }));
- else if (typeof t == "function") i = t(X3(X3({}, n), {}, { className: a }));
+function O1e(e) {
+ var t = e.option, n = e.tickProps, r = e.value, i, a = fv(n.className, "recharts-cartesian-axis-tick-value");
+ if (/*#__PURE__*/ b.isValidElement(t)) i = /*#__PURE__*/ b.cloneElement(t, Z3(Z3({}, n), {}, { className: a }));
+ else if (typeof t == "function") i = t(Z3(Z3({}, n), {}, { className: a }));
else {
var o = "recharts-cartesian-axis-tick-value";
- typeof t != "boolean" && (o = dv(o, K4(t))), i = /*#__PURE__*/ b.createElement(x4, Y3({}, n, { className: o }), r);
+ typeof t != "boolean" && (o = fv(o, q4(t))), i = /*#__PURE__*/ b.createElement(S4, X3({}, n, { className: o }), r);
}
return i;
}
-function A1e(e) {
- var t = e.ticks, n = e.axisType, r = e.axisId, i = HK(), a = (0, b.useRef)(null);
+function k1e(e) {
+ var t = e.ticks, n = e.axisType, r = e.axisId, i = VK(), a = (0, b.useRef)(null);
return (0, b.useEffect)(() => {
if (r != null && n != null) {
var e = t.map((e) => ({
@@ -81602,11 +81602,11 @@ function A1e(e) {
offset: e.offset,
index: e.index
})), o = a.current;
- o != null && o.axisId === r && o.axisType === n && K$e(o.ticks, e) || (a.current = {
+ o != null && o.axisId === r && o.axisType === n && G$e(o.ticks, e) || (a.current = {
ticks: e,
axisId: r,
axisType: n
- }, i(l1e({
+ }, i(c1e({
ticks: e,
axisId: r,
axisType: n
@@ -81617,8 +81617,8 @@ function A1e(e) {
t,
r,
n
- ]), (0, b.useEffect)(() => r == null || n == null ? HW : () => {
- i(u1e({
+ ]), (0, b.useEffect)(() => r == null || n == null ? VW : () => {
+ i(l1e({
axisId: r,
axisType: n
}));
@@ -81628,17 +81628,17 @@ function A1e(e) {
n
]), null;
}
-var j1e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
- var n = e.ticks, r = n === void 0 ? [] : n, i = e.tick, a = e.tickLine, o = e.stroke, s = e.tickFormatter, c = e.unit, l = e.padding, u = e.tickTextProps, d = e.orientation, f = e.mirror, p = e.x, m = e.y, h = e.width, g = e.height, _ = e.tickSize, v = e.tickMargin, y = e.fontSize, x = e.letterSpacing, S = e.getTicksConfig, C = e.events, w = e.axisType, T = e.axisId, E = J3(X3(X3({}, S), {}, { ticks: r }), y, x), D = pW(S), O = mW(i), k = Nqe(D.textAnchor) ? D.textAnchor : D1e(d, f), A = O1e(d, f), j = {};
+var A1e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
+ var n = e.ticks, r = n === void 0 ? [] : n, i = e.tick, a = e.tickLine, o = e.stroke, s = e.tickFormatter, c = e.unit, l = e.padding, u = e.tickTextProps, d = e.orientation, f = e.mirror, p = e.x, m = e.y, h = e.width, g = e.height, _ = e.tickSize, v = e.tickMargin, y = e.fontSize, x = e.letterSpacing, S = e.getTicksConfig, C = e.events, w = e.axisType, T = e.axisId, E = Y3(Z3(Z3({}, S), {}, { ticks: r }), y, x), D = fW(S), O = pW(i), k = Mqe(D.textAnchor) ? D.textAnchor : E1e(d, f), A = D1e(d, f), j = {};
typeof a == "object" && (j = a);
- var M = X3(X3({}, D), {}, { fill: "none" }, j), N = E.map((e) => X3({ entry: e }, E1e(e, p, m, h, g, d, _, f, v))), ee = N.map((e) => {
+ var M = Z3(Z3({}, D), {}, { fill: "none" }, j), N = E.map((e) => Z3({ entry: e }, T1e(e, p, m, h, g, d, _, f, v))), ee = N.map((e) => {
var t = e.entry, n = e.line;
- return /*#__PURE__*/ b.createElement(yW, {
+ return /*#__PURE__*/ b.createElement(vW, {
className: "recharts-cartesian-axis-tick",
key: `tick-${t.value}-${t.coordinate}-${t.tickCoord}`
- }, a && /*#__PURE__*/ b.createElement("line", Y3({}, M, n, { className: dv("recharts-cartesian-axis-tick-line", EW(a, "className")) })));
+ }, a && /*#__PURE__*/ b.createElement("line", X3({}, M, n, { className: fv("recharts-cartesian-axis-tick-line", TW(a, "className")) })));
}), te = N.map((e, t) => {
- var n = e.entry, r = e.tick, a = X3(X3({}, X3(X3(X3(X3({ verticalAnchor: A }, D), {}, {
+ var n = e.entry, r = e.tick, a = Z3(Z3({}, Z3(Z3(Z3(Z3({ verticalAnchor: A }, D), {}, {
textAnchor: k,
stroke: "none",
fill: o
@@ -81649,34 +81649,34 @@ var j1e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
tickFormatter: s,
padding: l
}, u), {}, { angle: u?.angle ?? D.angle ?? 0 })), O);
- return /*#__PURE__*/ b.createElement(yW, Y3({
+ return /*#__PURE__*/ b.createElement(vW, X3({
className: "recharts-cartesian-axis-tick-label",
key: `tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`
- }, qG(C, n, t)), i && /*#__PURE__*/ b.createElement(k1e, {
+ }, KG(C, n, t)), i && /*#__PURE__*/ b.createElement(O1e, {
option: i,
tickProps: a,
value: `${typeof s == "function" ? s(n.value, t) : n.value}${c || ""}`
}));
});
- return /*#__PURE__*/ b.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${w}-ticks` }, /*#__PURE__*/ b.createElement(A1e, {
+ return /*#__PURE__*/ b.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${w}-ticks` }, /*#__PURE__*/ b.createElement(k1e, {
ticks: E,
axisId: T,
axisType: w
- }), te.length > 0 && /*#__PURE__*/ b.createElement(o4, { zIndex: iQ.label }, /*#__PURE__*/ b.createElement("g", {
+ }), te.length > 0 && /*#__PURE__*/ b.createElement(s4, { zIndex: rQ.label }, /*#__PURE__*/ b.createElement("g", {
className: `recharts-cartesian-axis-tick-labels recharts-${w}-tick-labels`,
ref: t
}, te)), ee.length > 0 && /*#__PURE__*/ b.createElement("g", { className: `recharts-cartesian-axis-tick-lines recharts-${w}-tick-lines` }, ee));
-}), M1e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
- var n = e.axisLine, r = e.width, i = e.height, a = e.className, o = e.hide, s = e.ticks, c = e.axisType, l = e.axisId, u = y1e(e, f1e), d = p1e((0, b.useState)(""), 2), f = d[0], p = d[1], m = p1e((0, b.useState)(""), 2), h = m[0], g = m[1], _ = (0, b.useRef)(null);
+}), j1e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
+ var n = e.axisLine, r = e.width, i = e.height, a = e.className, o = e.hide, s = e.ticks, c = e.axisType, l = e.axisId, u = v1e(e, d1e), d = f1e((0, b.useState)(""), 2), f = d[0], p = d[1], m = f1e((0, b.useState)(""), 2), h = m[0], g = m[1], _ = (0, b.useRef)(null);
(0, b.useImperativeHandle)(t, () => ({
- getCalculatedWidth: () => a1e({
+ getCalculatedWidth: () => i1e({
ticks: _.current,
label: e.labelRef?.current,
labelGapWithTick: 5,
tickSize: e.tickSize,
tickMargin: e.tickMargin
}),
- getCalculatedHeight: () => o1e({
+ getCalculatedHeight: () => a1e({
ticks: _.current,
label: e.labelRef?.current,
labelGapWithTick: 5,
@@ -81695,7 +81695,7 @@ var j1e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
}
}
}, [f, h]);
- return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ b.createElement(o4, { zIndex: e.zIndex }, /*#__PURE__*/ b.createElement(yW, { className: dv("recharts-cartesian-axis", a) }, /*#__PURE__*/ b.createElement(T1e, {
+ return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ b.createElement(s4, { zIndex: e.zIndex }, /*#__PURE__*/ b.createElement(vW, { className: fv("recharts-cartesian-axis", a) }, /*#__PURE__*/ b.createElement(w1e, {
x: e.x,
y: e.y,
width: r,
@@ -81703,8 +81703,8 @@ var j1e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
orientation: e.orientation,
mirror: e.mirror,
axisLine: n,
- otherSvgProps: pW(e)
- }), /*#__PURE__*/ b.createElement(j1e, {
+ otherSvgProps: fW(e)
+ }), /*#__PURE__*/ b.createElement(A1e, {
ref: v,
axisType: c,
events: u,
@@ -81728,37 +81728,37 @@ var j1e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
x: e.x,
y: e.y,
axisId: l
- }), /*#__PURE__*/ b.createElement($qe, {
+ }), /*#__PURE__*/ b.createElement(Qqe, {
x: e.x,
y: e.y,
width: e.width,
height: e.height,
lowerWidth: e.width,
upperWidth: e.width
- }, /*#__PURE__*/ b.createElement(dJe, {
+ }, /*#__PURE__*/ b.createElement(uJe, {
label: e.label,
labelRef: e.labelRef
}), e.children)));
-}), Q3 = /*#__PURE__*/ b.forwardRef((e, t) => {
- var n = YG(e, Z3);
- return /*#__PURE__*/ b.createElement(M1e, Y3({}, n, { ref: t }));
+}), $3 = /*#__PURE__*/ b.forwardRef((e, t) => {
+ var n = JG(e, Q3);
+ return /*#__PURE__*/ b.createElement(j1e, X3({}, n, { ref: t }));
});
-Q3.displayName = "CartesianAxis";
+$3.displayName = "CartesianAxis";
//#endregion
//#region node_modules/recharts/es6/theme/RechartsThemeContext.js
-var N1e = /*#__PURE__*/ (0, b.createContext)({ grid: {
+var M1e = /*#__PURE__*/ (0, b.createContext)({ grid: {
stroke: "#ccc",
fill: "none"
} });
-N1e.Provider;
-var P1e = () => (0, b.useContext)(N1e), F1e = [
+M1e.Provider;
+var N1e = () => (0, b.useContext)(M1e), P1e = [
"x1",
"y1",
"x2",
"y2",
"key"
-], I1e = ["offset"], L1e = ["xAxisId", "yAxisId"], R1e = ["xAxisId", "yAxisId"];
-function z1e(e, t) {
+], F1e = ["offset"], I1e = ["xAxisId", "yAxisId"], L1e = ["xAxisId", "yAxisId"];
+function R1e(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -81768,30 +81768,30 @@ function z1e(e, t) {
}
return n;
}
-function $3(e) {
+function e6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? z1e(Object(n), !0).forEach(function(t) {
- B1e(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : z1e(Object(n)).forEach(function(t) {
+ t % 2 ? R1e(Object(n), !0).forEach(function(t) {
+ z1e(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : R1e(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function B1e(e, t, n) {
- return (t = V1e(t)) in e ? Object.defineProperty(e, t, {
+function z1e(e, t, n) {
+ return (t = B1e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function V1e(e) {
- var t = H1e(e, "string");
+function B1e(e) {
+ var t = V1e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function H1e(e, t) {
+function V1e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -81801,25 +81801,25 @@ function H1e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function e6() {
- return e6 = Object.assign ? Object.assign.bind() : function(e) {
+function t6() {
+ return t6 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, e6.apply(null, arguments);
+ }, t6.apply(null, arguments);
}
-function t6(e, t) {
+function n6(e, t) {
if (e == null) return {};
- var n, r, i = U1e(e, t);
+ var n, r, i = H1e(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function U1e(e, t) {
+function H1e(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -81828,7 +81828,7 @@ function U1e(e, t) {
}
return n;
}
-var W1e = (e) => {
+var U1e = (e) => {
var t = e.fill;
if (!t || t === "none") return null;
var n = e.fillOpacity, r = e.x, i = e.y, a = e.width, o = e.height, s = e.ry;
@@ -81844,15 +81844,15 @@ var W1e = (e) => {
className: "recharts-cartesian-grid-bg"
});
};
-function G1e(e) {
+function W1e(e) {
var t = e.option, n = e.lineItemProps, r;
if (/*#__PURE__*/ b.isValidElement(t)) r = /*#__PURE__*/ b.cloneElement(t, n);
else if (typeof t == "function") r = t(n);
else {
- var i = n.x1, a = n.y1, o = n.x2, s = n.y2, c = n.key, l = pW(t6(n, F1e)) ?? {};
+ var i = n.x1, a = n.y1, o = n.x2, s = n.y2, c = n.key, l = fW(n6(n, P1e)) ?? {};
l.offset;
- var u = t6(l, I1e), d = Array.isArray(u.strokeDasharray) ? u.strokeDasharray.join(",") : u.strokeDasharray;
- r = /*#__PURE__*/ b.createElement("line", e6({}, u, {
+ var u = n6(l, F1e), d = Array.isArray(u.strokeDasharray) ? u.strokeDasharray.join(",") : u.strokeDasharray;
+ r = /*#__PURE__*/ b.createElement("line", t6({}, u, {
strokeDasharray: d,
x1: i,
y1: a,
@@ -81864,12 +81864,12 @@ function G1e(e) {
}
return r;
}
-function K1e(e) {
+function G1e(e) {
var t = e.x, n = e.width, r = e.horizontal, i = r === void 0 || r, a = e.horizontalPoints;
if (!i || !a || !a.length) return null;
e.xAxisId, e.yAxisId;
- var o = t6(e, L1e), s = a.map((e, r) => {
- var a = $3($3({}, o), {}, {
+ var o = n6(e, I1e), s = a.map((e, r) => {
+ var a = e6(e6({}, o), {}, {
x1: t,
y1: e,
x2: t + n,
@@ -81877,7 +81877,7 @@ function K1e(e) {
key: `line-${r}`,
index: r
});
- return /*#__PURE__*/ b.createElement(G1e, {
+ return /*#__PURE__*/ b.createElement(W1e, {
key: `line-${r}`,
option: i,
lineItemProps: a
@@ -81885,12 +81885,12 @@ function K1e(e) {
});
return /*#__PURE__*/ b.createElement("g", { className: "recharts-cartesian-grid-horizontal" }, s);
}
-function q1e(e) {
+function K1e(e) {
var t = e.y, n = e.height, r = e.vertical, i = r === void 0 || r, a = e.verticalPoints;
if (!i || !a || !a.length) return null;
e.xAxisId, e.yAxisId;
- var o = t6(e, R1e), s = a.map((e, r) => {
- var a = $3($3({}, o), {}, {
+ var o = n6(e, L1e), s = a.map((e, r) => {
+ var a = e6(e6({}, o), {}, {
x1: e,
y1: t,
x2: e,
@@ -81898,7 +81898,7 @@ function q1e(e) {
key: `line-${r}`,
index: r
});
- return /*#__PURE__*/ b.createElement(G1e, {
+ return /*#__PURE__*/ b.createElement(W1e, {
option: i,
lineItemProps: a,
key: `line-${r}`
@@ -81906,7 +81906,7 @@ function q1e(e) {
});
return /*#__PURE__*/ b.createElement("g", { className: "recharts-cartesian-grid-vertical" }, s);
}
-function J1e(e) {
+function q1e(e) {
var t = e.horizontalFill, n = e.fillOpacity, r = e.x, i = e.y, a = e.width, o = e.height, s = e.horizontalPoints, c = e.horizontal;
if (!(c === void 0 || c) || !t || !t.length || s == null) return null;
var l = s.map((e) => Math.round(e + i - i)).sort((e, t) => e - t);
@@ -81929,7 +81929,7 @@ function J1e(e) {
});
return /*#__PURE__*/ b.createElement("g", { className: "recharts-cartesian-gridstripes-horizontal" }, u);
}
-function Y1e(e) {
+function J1e(e) {
var t = e.vertical, n = t === void 0 || t, r = e.verticalFill, i = e.fillOpacity, a = e.x, o = e.y, s = e.width, c = e.height, l = e.verticalPoints;
if (!n || !r || !r.length) return null;
var u = l.map((e) => Math.round(e + a - a)).sort((e, t) => e - t);
@@ -81952,10 +81952,10 @@ function Y1e(e) {
});
return /*#__PURE__*/ b.createElement("g", { className: "recharts-cartesian-gridstripes-vertical" }, d);
}
-var X1e = (e, t) => {
+var Y1e = (e, t) => {
var n = e.xAxis, r = e.width, i = e.height, a = e.offset;
- return mY(J3($3($3($3({}, Z3), n), {}, {
- ticks: hY(n, !0),
+ return pY(Y3(e6(e6(e6({}, Q3), n), {}, {
+ ticks: mY(n, !0),
viewBox: {
x: 0,
y: 0,
@@ -81963,10 +81963,10 @@ var X1e = (e, t) => {
height: i
}
})), a.left, a.left + a.width, t);
-}, Z1e = (e, t) => {
+}, X1e = (e, t) => {
var n = e.yAxis, r = e.width, i = e.height, a = e.offset;
- return mY(J3($3($3($3({}, Z3), n), {}, {
- ticks: hY(n, !0),
+ return pY(Y3(e6(e6(e6({}, Q3), n), {}, {
+ ticks: mY(n, !0),
viewBox: {
x: 0,
y: 0,
@@ -81974,7 +81974,7 @@ var X1e = (e, t) => {
height: i
}
})), a.top, a.top + a.height, t);
-}, Q1e = {
+}, Z1e = {
horizontal: !0,
vertical: !0,
horizontalPoints: [],
@@ -81984,41 +81984,41 @@ var X1e = (e, t) => {
xAxisId: 0,
yAxisId: 0,
syncWithTicks: !1,
- zIndex: iQ.grid
+ zIndex: rQ.grid
};
-function $1e(e) {
- var t = QY(), n = $Y(), r = ZY(), i = $3($3({}, YG(e, Q1e)), {}, {
- x: MW(e.x) ? e.x : r.left,
- y: MW(e.y) ? e.y : r.top,
- width: MW(e.width) ? e.width : r.width,
- height: MW(e.height) ? e.height : r.height
- }), a = i.xAxisId, o = i.yAxisId, s = i.x, c = i.y, l = i.width, u = i.height, d = i.syncWithTicks, f = i.horizontalValues, p = i.verticalValues, m = IY(), h = J((e) => HUe(e, "xAxis", a, m)), g = J((e) => HUe(e, "yAxis", o, m)), _ = P1e(), v = {
+function Q1e(e) {
+ var t = ZY(), n = QY(), r = XY(), i = e6(e6({}, JG(e, Z1e)), {}, {
+ x: jW(e.x) ? e.x : r.left,
+ y: jW(e.y) ? e.y : r.top,
+ width: jW(e.width) ? e.width : r.width,
+ height: jW(e.height) ? e.height : r.height
+ }), a = i.xAxisId, o = i.yAxisId, s = i.x, c = i.y, l = i.width, u = i.height, d = i.syncWithTicks, f = i.horizontalValues, p = i.verticalValues, m = FY(), h = J((e) => VUe(e, "xAxis", a, m)), g = J((e) => VUe(e, "yAxis", o, m)), _ = N1e(), v = {
stroke: i.stroke ?? _.grid.stroke,
strokeWidth: i.strokeWidth ?? _.grid.strokeWidth,
strokeOpacity: i.strokeOpacity ?? _.grid.strokeOpacity,
strokeDasharray: i.strokeDasharray ?? _.grid.strokeDasharray
};
- if (!lY(l) || !lY(u) || !MW(s) || !MW(c)) return null;
- var y = i.verticalCoordinatesGenerator || X1e, x = i.horizontalCoordinatesGenerator || Z1e, S = i.horizontalPoints, C = i.verticalPoints;
+ if (!cY(l) || !cY(u) || !jW(s) || !jW(c)) return null;
+ var y = i.verticalCoordinatesGenerator || Y1e, x = i.horizontalCoordinatesGenerator || X1e, S = i.horizontalPoints, C = i.verticalPoints;
if ((!S || !S.length) && typeof x == "function") {
var w = f && f.length, T = x({
- yAxis: g ? $3($3({}, g), {}, { ticks: w ? f : g.ticks }) : void 0,
+ yAxis: g ? e6(e6({}, g), {}, { ticks: w ? f : g.ticks }) : void 0,
width: t ?? l,
height: n ?? u,
offset: r
}, w ? !0 : d);
- zY(Array.isArray(T), `horizontalCoordinatesGenerator should return Array but instead it returned [${typeof T}]`), Array.isArray(T) && (S = T);
+ RY(Array.isArray(T), `horizontalCoordinatesGenerator should return Array but instead it returned [${typeof T}]`), Array.isArray(T) && (S = T);
}
if ((!C || !C.length) && typeof y == "function") {
var E = p && p.length, D = y({
- xAxis: h ? $3($3({}, h), {}, { ticks: E ? p : h.ticks }) : void 0,
+ xAxis: h ? e6(e6({}, h), {}, { ticks: E ? p : h.ticks }) : void 0,
width: t ?? l,
height: n ?? u,
offset: r
}, E ? !0 : d);
- zY(Array.isArray(D), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof D}]`), Array.isArray(D) && (C = D);
+ RY(Array.isArray(D), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof D}]`), Array.isArray(D) && (C = D);
}
- return /*#__PURE__*/ b.createElement(o4, { zIndex: i.zIndex }, /*#__PURE__*/ b.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ b.createElement(W1e, {
+ return /*#__PURE__*/ b.createElement(s4, { zIndex: i.zIndex }, /*#__PURE__*/ b.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ b.createElement(U1e, {
fill: i.fill ?? _.grid.fill,
fillOpacity: i.fillOpacity ?? _.grid.fillOpacity,
x: i.x,
@@ -82026,22 +82026,22 @@ function $1e(e) {
width: i.width,
height: i.height,
ry: i.ry
- }), /*#__PURE__*/ b.createElement(J1e, e6({}, i, { horizontalPoints: S })), /*#__PURE__*/ b.createElement(Y1e, e6({}, i, { verticalPoints: C })), /*#__PURE__*/ b.createElement(K1e, e6({}, i, v, {
+ }), /*#__PURE__*/ b.createElement(q1e, t6({}, i, { horizontalPoints: S })), /*#__PURE__*/ b.createElement(J1e, t6({}, i, { verticalPoints: C })), /*#__PURE__*/ b.createElement(G1e, t6({}, i, v, {
offset: r,
horizontalPoints: S,
xAxis: h,
yAxis: g
- })), /*#__PURE__*/ b.createElement(q1e, e6({}, i, v, {
+ })), /*#__PURE__*/ b.createElement(K1e, t6({}, i, v, {
offset: r,
verticalPoints: C,
xAxis: h,
yAxis: g
}))));
}
-$1e.displayName = "CartesianGrid";
+Q1e.displayName = "CartesianGrid";
//#endregion
//#region node_modules/recharts/es6/cartesian/LineDrawShape.js
-var e0e = [
+var $1e = [
"animationElapsedTime",
"isAnimating",
"isEntrance",
@@ -82049,25 +82049,25 @@ var e0e = [
"strokeDasharray",
"connectNulls"
];
-function n6() {
- return n6 = Object.assign ? Object.assign.bind() : function(e) {
+function r6() {
+ return r6 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, n6.apply(null, arguments);
+ }, r6.apply(null, arguments);
}
-function t0e(e, t) {
+function e0e(e, t) {
if (e == null) return {};
- var n, r, i = n0e(e, t);
+ var n, r, i = t0e(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function n0e(e, t) {
+function t0e(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -82076,26 +82076,26 @@ function n0e(e, t) {
}
return n;
}
-function r0e(e) {
+function n0e(e) {
try {
return e && e.getTotalLength && e.getTotalLength() || 0;
} catch {
return 0;
}
}
-function i0e(e, t) {
+function r0e(e, t) {
return `${t}px ${e}px`;
}
-function a0e(e) {
+function i0e(e) {
return e.length % 2 == 0 ? e : [...e, ...e];
}
-function o0e(e, t) {
+function a0e(e, t) {
for (var n = [], r = 0; r < t; ++r) n.push(...e);
return n;
}
-function s0e(e, t, n) {
- var r = a0e(n), i = r.reduce((e, t) => e + t, 0);
- if (!i) return i0e(t, e);
+function o0e(e, t, n) {
+ var r = i0e(n), i = r.reduce((e, t) => e + t, 0);
+ if (!i) return r0e(t, e);
for (var a = Math.floor(e / i), o = e % i, s = [], c = 0, l = 0; c < r.length; l += (u = r[c]) ?? 0, ++c) {
var u, d = r[c];
if (d != null && l + d > o) {
@@ -82105,39 +82105,39 @@ function s0e(e, t, n) {
}
var f = s.length % 2 == 0 ? [0, t] : [t];
return [
- ...o0e(r, a),
+ ...a0e(r, a),
...s,
...f
].map((e) => `${e}px`).join(", ");
}
-function c0e(e, t, n) {
- return e ? s0e(n, t, `${e}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : i0e(t, n);
+function s0e(e, t, n) {
+ return e ? o0e(n, t, `${e}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : r0e(t, n);
}
-function l0e(e) {
+function c0e(e) {
e.animationElapsedTime, e.isAnimating, e.isEntrance;
- var t = e.visibleLength, n = e.strokeDasharray, r = e.connectNulls, i = t0e(e, e0e), a = r ?? !1, o;
+ var t = e.visibleLength, n = e.strokeDasharray, r = e.connectNulls, i = e0e(e, $1e), a = r ?? !1, o;
if (t != null) {
var s = i.pathRef;
- o = c0e(n, r0e(s?.current ?? null), t);
+ o = s0e(n, n0e(s?.current ?? null), t);
} else n != null && (o = String(n));
- return /*#__PURE__*/ b.createElement(UX, n6({}, i, {
+ return /*#__PURE__*/ b.createElement(HX, r6({}, i, {
connectNulls: a,
strokeDasharray: o
}));
}
//#endregion
//#region node_modules/recharts/es6/cartesian/useAnimatedLineLength.js
-function u0e(e) {
+function l0e(e) {
var t = (0, b.useRef)(0), n = (0, b.useRef)(0), r = (0, b.useRef)(!1), i = (0, b.useRef)(e);
return i.current !== e && (t.current = n.current, i.current = e), (0, b.useCallback)((e, i) => {
if (r.current) return null;
- var a = Math.min(DW(t.current + e * i), i);
+ var a = Math.min(EW(t.current + e * i), i);
return e > 0 && i > 0 && (n.current = Math.max(n.current, a), a >= i) ? (r.current = !0, null) : a;
}, []);
}
//#endregion
//#region node_modules/recharts/es6/state/errorBarSlice.js
-var d0e = MJ({
+var u0e = jJ({
name: "errorBars",
initialState: {},
reducers: {
@@ -82154,19 +82154,19 @@ var d0e = MJ({
e[r] && (e[r] = e[r].filter((e) => e.dataKey !== i.dataKey || e.direction !== i.direction));
}
}
-}), r6 = d0e.actions;
-r6.addErrorBar, r6.replaceErrorBar, r6.removeErrorBar;
-var f0e = d0e.reducer, p0e = ["children"];
-function m0e(e, t) {
+}), i6 = u0e.actions;
+i6.addErrorBar, i6.replaceErrorBar, i6.removeErrorBar;
+var d0e = u0e.reducer, f0e = ["children"];
+function p0e(e, t) {
if (e == null) return {};
- var n, r, i = h0e(e, t);
+ var n, r, i = m0e(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function h0e(e, t) {
+function m0e(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -82175,7 +82175,7 @@ function h0e(e, t) {
}
return n;
}
-var g0e = /*#__PURE__*/ (0, b.createContext)({
+var h0e = /*#__PURE__*/ (0, b.createContext)({
data: [],
xAxisId: "xAxis-0",
yAxisId: "yAxis-0",
@@ -82186,22 +82186,22 @@ var g0e = /*#__PURE__*/ (0, b.createContext)({
}),
errorBarOffset: 0
});
-function _0e(e) {
- var t = e.children, n = m0e(e, p0e);
- return /*#__PURE__*/ b.createElement(g0e.Provider, { value: n }, t);
+function g0e(e) {
+ var t = e.children, n = p0e(e, f0e);
+ return /*#__PURE__*/ b.createElement(h0e.Provider, { value: n }, t);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/GraphicalItemClipPath.js
-function i6(e, t) {
- var n = J((t) => W0(t, e)), r = J((e) => K0(e, t)), i = n?.allowDataOverflow ?? U0.allowDataOverflow, a = r?.allowDataOverflow ?? G0.allowDataOverflow;
+function a6(e, t) {
+ var n = J((t) => G0(t, e)), r = J((e) => q0(e, t)), i = n?.allowDataOverflow ?? W0.allowDataOverflow, a = r?.allowDataOverflow ?? K0.allowDataOverflow;
return {
needClip: i || a,
needClipX: i,
needClipY: a
};
}
-function a6(e) {
- var t = e.xAxisId, n = e.yAxisId, r = e.clipPathId, i = x3(), a = i6(t, n), o = a.needClipX, s = a.needClipY, c = a.needClip, l = J((e) => wUe(e, t, !1)), u = J((e) => TUe(e, n, !1));
+function o6(e) {
+ var t = e.xAxisId, n = e.yAxisId, r = e.clipPathId, i = S3(), a = a6(t, n), o = a.needClipX, s = a.needClipY, c = a.needClip, l = J((e) => CUe(e, t, !1)), u = J((e) => wUe(e, n, !1));
if (!c || !i) return null;
var d = i.x, f = i.y, p = i.width, m = i.height, h = o && l ? Math.min(l[0], l[1]) : d - p / 2, g = s && u ? Math.min(u[0], u[1]) : f - m / 2, _ = o && l ? Math.abs(l[1] - l[0]) : p * 2, v = s && u ? Math.abs(u[1] - u[0]) : m * 2;
return /*#__PURE__*/ b.createElement("clipPath", { id: `clipPath-${r}` }, /*#__PURE__*/ b.createElement("rect", {
@@ -82213,30 +82213,30 @@ function a6(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/lineSelectors.js
-var v0e = (e, t, n, r) => N2(e, "xAxis", t, r), y0e = (e, t, n, r) => M2(e, "xAxis", t, r), b0e = (e, t, n, r) => N2(e, "yAxis", n, r), x0e = (e, t, n, r) => M2(e, "yAxis", n, r), S0e = Y([
- eX,
- v0e,
- b0e,
+var _0e = (e, t, n, r) => P2(e, "xAxis", t, r), v0e = (e, t, n, r) => N2(e, "xAxis", t, r), y0e = (e, t, n, r) => P2(e, "yAxis", n, r), b0e = (e, t, n, r) => N2(e, "yAxis", n, r), x0e = Y([
+ $Y,
+ _0e,
y0e,
- x0e
-], (e, t, n, r, i) => pY(e, "xAxis") ? CY(t, r, !1) : CY(n, i, !1)), C0e = (e, t, n, r, i) => i;
-function w0e(e) {
+ v0e,
+ b0e
+], (e, t, n, r, i) => fY(e, "xAxis") ? SY(t, r, !1) : SY(n, i, !1)), S0e = (e, t, n, r, i) => i;
+function C0e(e) {
return e.type === "line";
}
-var T0e = Y([
- eX,
+var w0e = Y([
+ $Y,
+ _0e,
+ y0e,
v0e,
b0e,
- y0e,
+ Y([Q0, S0e], (e, t) => e.filter(C0e).find((e) => e.id === t)),
x0e,
- Y([Z0, C0e], (e, t) => e.filter(w0e).find((e) => e.id === t)),
- S0e,
- AZ
+ kZ
], (e, t, n, r, i, a, o, s) => {
var c = s.chartData, l = s.dataStartIndex, u = s.dataEndIndex;
if (!(a == null || t == null || n == null || r == null || i == null || r.length === 0 || i.length === 0 || o == null || e !== "horizontal" && e !== "vertical")) {
var d = a.dataKey, f = a.data, p = f != null && f.length > 0 ? f : c?.slice(l, u + 1);
- if (p != null) return q0e({
+ if (p != null) return K0e({
layout: e,
xAxis: t,
yAxis: n,
@@ -82250,8 +82250,8 @@ var T0e = Y([
});
//#endregion
//#region node_modules/recharts/es6/util/getRadiusAndStrokeWidthFromDot.js
-function E0e(e) {
- var t = mW(e), n = 3, r = 2;
+function T0e(e) {
+ var t = pW(e), n = 3, r = 2;
if (t != null) {
var i = t.r, a = t.strokeWidth, o = Number(i), s = Number(a);
return (Number.isNaN(o) || o < 0) && (o = n), (Number.isNaN(s) || s < 0) && (s = r), {
@@ -82266,14 +82266,14 @@ function E0e(e) {
}
//#endregion
//#region node_modules/recharts/es6/cartesian/Line.js
-var D0e = ["id"], O0e = [
+var E0e = ["id"], D0e = [
"type",
"layout",
"connectNulls",
"needClip",
"shape",
"strokeDasharray"
-], k0e = [
+], O0e = [
"activeDot",
"animateNewValues",
"animationBegin",
@@ -82289,25 +82289,25 @@ var D0e = ["id"], O0e = [
"yAxisId",
"id"
];
-function o6() {
- return o6 = Object.assign ? Object.assign.bind() : function(e) {
+function s6() {
+ return s6 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, o6.apply(null, arguments);
+ }, s6.apply(null, arguments);
}
-function s6(e, t) {
+function c6(e, t) {
if (e == null) return {};
- var n, r, i = A0e(e, t);
+ var n, r, i = k0e(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function A0e(e, t) {
+function k0e(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -82316,7 +82316,7 @@ function A0e(e, t) {
}
return n;
}
-function j0e(e, t) {
+function A0e(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -82326,30 +82326,30 @@ function j0e(e, t) {
}
return n;
}
-function c6(e) {
+function l6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? j0e(Object(n), !0).forEach(function(t) {
- M0e(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : j0e(Object(n)).forEach(function(t) {
+ t % 2 ? A0e(Object(n), !0).forEach(function(t) {
+ j0e(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : A0e(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function M0e(e, t, n) {
- return (t = N0e(t)) in e ? Object.defineProperty(e, t, {
+function j0e(e, t, n) {
+ return (t = M0e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function N0e(e) {
- var t = P0e(e, "string");
+function M0e(e) {
+ var t = N0e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function P0e(e, t) {
+function N0e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -82359,19 +82359,19 @@ function P0e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function F0e(e) {
+function P0e(e) {
try {
return e && e.getTotalLength && e.getTotalLength() || 0;
} catch {
return 0;
}
}
-function I0e(e) {
+function F0e(e) {
var t = 0, n = 0;
for (var r of e) r.status === "matched" && r.prev.x != null && r.next.x != null && (t += r.next.x - r.prev.x, n++);
return n > 0 ? t / n : 0;
}
-var l6 = {
+var u6 = {
activeDot: !0,
animateNewValues: !0,
animationBegin: 0,
@@ -82380,29 +82380,29 @@ var l6 = {
animationInterpolateFn: (e, t) => {
if (e == null) return [];
if (t === 1) return e.flatMap((e) => e.status === "removed" ? [] : [e.next]);
- var n = I0e(e), r = [];
- for (var i of e) if (i.status === "matched") r.push(c6(c6({}, i.next), {}, {
- x: LW(i.prev.x, i.next.x, t),
- y: LW(i.prev.y, i.next.y, t)
+ var n = F0e(e), r = [];
+ for (var i of e) if (i.status === "matched") r.push(l6(l6({}, i.next), {}, {
+ x: IW(i.prev.x, i.next.x, t),
+ y: IW(i.prev.y, i.next.y, t)
}));
else if (i.status === "added") {
if (i.next.x != null) {
var a = i.next.x - n;
- r.push(c6(c6({}, i.next), {}, {
- x: LW(a, i.next.x, t),
+ r.push(l6(l6({}, i.next), {}, {
+ x: IW(a, i.next.x, t),
y: i.next.y
}));
} else r.push(i.next);
} else if (i.status === "removed" && i.prev.x != null) {
var o = i.prev.x + n;
- r.push(c6(c6({}, i.prev), {}, {
- x: LW(i.prev.x, o, t),
+ r.push(l6(l6({}, i.prev), {}, {
+ x: IW(i.prev.x, o, t),
y: i.prev.y
}));
}
return r;
},
- animationMatchBy: s3,
+ animationMatchBy: c3,
connectNulls: !1,
dot: !0,
fill: "#fff",
@@ -82410,34 +82410,34 @@ var l6 = {
isAnimationActive: "auto",
label: !1,
legendType: "line",
- shape: l0e,
+ shape: c0e,
stroke: "#3182bd",
strokeWidth: 1,
xAxisId: 0,
yAxisId: 0,
- zIndex: iQ.line,
+ zIndex: rQ.line,
type: "linear"
-}, L0e = (e) => {
+}, I0e = (e) => {
var t = e.dataKey, n = e.name, r = e.stroke, i = e.legendType;
return [{
inactive: e.hide,
dataKey: t,
type: i,
color: r,
- value: TY(n, t),
+ value: wY(n, t),
payload: e
}];
-}, R0e = /*#__PURE__*/ b.memo((e) => {
+}, L0e = /*#__PURE__*/ b.memo((e) => {
var t = e.dataKey, n = e.data, r = e.stroke, i = e.strokeWidth, a = e.fill, o = e.name, s = e.hide, c = e.unit, l = e.formatter, u = e.tooltipType, d = e.id, f = {
dataDefinedOnItem: n,
- getPosition: HW,
+ getPosition: VW,
settings: {
stroke: r,
strokeWidth: i,
fill: a,
dataKey: t,
nameKey: void 0,
- name: TY(o, t),
+ name: wY(o, t),
hide: s,
type: u,
color: r,
@@ -82446,13 +82446,13 @@ var l6 = {
graphicalItemId: d
}
};
- return /*#__PURE__*/ b.createElement(a3, { tooltipEntrySettings: f });
+ return /*#__PURE__*/ b.createElement(o3, { tooltipEntrySettings: f });
});
-function z0e(e) {
+function R0e(e) {
var t = e.clipPathId, n = e.points, r = e.props, i = r.dot, a = r.dataKey, o = r.needClip;
r.id;
- var s = pW(s6(r, D0e));
- return /*#__PURE__*/ b.createElement(v3, {
+ var s = fW(c6(r, E0e));
+ return /*#__PURE__*/ b.createElement(y3, {
points: n,
dot: i,
className: "recharts-line-dots",
@@ -82463,7 +82463,7 @@ function z0e(e) {
clipPathId: t
});
}
-function B0e(e) {
+function z0e(e) {
var t = e.showLabels, n = e.children, r = e.points, i = (0, b.useMemo)(() => r?.map((e) => {
var t = {
x: e.x ?? 0,
@@ -82473,7 +82473,7 @@ function B0e(e) {
upperWidth: 0,
height: 0
};
- return c6(c6({}, t), {}, {
+ return l6(l6({}, t), {}, {
value: e.value,
payload: e.payload,
viewBox: t,
@@ -82481,10 +82481,10 @@ function B0e(e) {
fill: void 0
});
}), [r]);
- return /*#__PURE__*/ b.createElement(O4, { value: t ? i : void 0 }, n);
+ return /*#__PURE__*/ b.createElement(k4, { value: t ? i : void 0 }, n);
}
-function V0e(e) {
- var t = e.clipPathId, n = e.pathRef, r = e.points, i = e.props, a = e.animationElapsedTime, o = e.isAnimating, s = e.isEntrance, c = e.visibleLength, l = i.type, u = i.layout, d = i.connectNulls, f = i.needClip, p = i.shape, m = i.strokeDasharray, h = c6(c6({}, hW(s6(i, O0e))), {}, {
+function B0e(e) {
+ var t = e.clipPathId, n = e.pathRef, r = e.points, i = e.props, a = e.animationElapsedTime, o = e.isAnimating, s = e.isEntrance, c = e.visibleLength, l = i.type, u = i.layout, d = i.connectNulls, f = i.needClip, p = i.shape, m = i.strokeDasharray, h = l6(l6({}, mW(c6(i, D0e))), {}, {
fill: "none",
className: "recharts-line-curve",
clipPath: f ? `url(#clipPath-${t})` : void 0,
@@ -82499,22 +82499,22 @@ function V0e(e) {
isEntrance: i.animateNewValues ? s : !1,
visibleLength: c
});
- return /*#__PURE__*/ b.createElement(b.Fragment, null, r?.length > 1 && /*#__PURE__*/ b.createElement(t3, {
+ return /*#__PURE__*/ b.createElement(b.Fragment, null, r?.length > 1 && /*#__PURE__*/ b.createElement(n3, {
option: p,
- DefaultShape: l6.shape,
+ DefaultShape: u6.shape,
shapeProps: h
- }), /*#__PURE__*/ b.createElement(z0e, {
+ }), /*#__PURE__*/ b.createElement(R0e, {
points: r,
clipPathId: t,
props: i
}));
}
-function H0e(e) {
- var t = e.clipPathId, n = e.props, r = e.pathRef, i = e.previousPointsRef, a = n.points, o = n.isAnimationActive, s = n.animationBegin, c = n.animationDuration, l = n.animationEasing, u = n.animationMatchBy, d = n.animationInterpolateFn, f = n.layout, p = F0e(r.current), m = d3(n.onAnimationStart, n.onAnimationEnd), h = m.isAnimating, g = m.handleAnimationStart, _ = m.handleAnimationEnd, v = !h, y = u0e(a), x = (0, b.useCallback)((e) => e > 0 && p > 0, [p]);
- return /*#__PURE__*/ b.createElement(B0e, {
+function V0e(e) {
+ var t = e.clipPathId, n = e.props, r = e.pathRef, i = e.previousPointsRef, a = n.points, o = n.isAnimationActive, s = n.animationBegin, c = n.animationDuration, l = n.animationEasing, u = n.animationMatchBy, d = n.animationInterpolateFn, f = n.layout, p = P0e(r.current), m = f3(n.onAnimationStart, n.onAnimationEnd), h = m.isAnimating, g = m.handleAnimationStart, _ = m.handleAnimationEnd, v = !h, y = l0e(a), x = (0, b.useCallback)((e) => e > 0 && p > 0, [p]);
+ return /*#__PURE__*/ b.createElement(z0e, {
points: a,
showLabels: v
- }, n.children, /*#__PURE__*/ b.createElement(f3, {
+ }, n.children, /*#__PURE__*/ b.createElement(p3, {
animationInput: a,
animationIdPrefix: "recharts-line-",
items: a,
@@ -82531,7 +82531,7 @@ function H0e(e) {
layout: f
}, (e, i, a) => {
var o = h || i < 1, s = o ? y(i, p) : null;
- return /*#__PURE__*/ b.createElement(V0e, {
+ return /*#__PURE__*/ b.createElement(B0e, {
props: n,
points: e,
clipPathId: t,
@@ -82541,28 +82541,28 @@ function H0e(e) {
isEntrance: a,
visibleLength: s
});
- }), /*#__PURE__*/ b.createElement(A4, { label: n.label }));
+ }), /*#__PURE__*/ b.createElement(j4, { label: n.label }));
}
-function U0e(e) {
+function H0e(e) {
var t = e.clipPathId, n = e.props, r = (0, b.useRef)(null), i = (0, b.useRef)(null);
- return /*#__PURE__*/ b.createElement(H0e, {
+ return /*#__PURE__*/ b.createElement(V0e, {
props: n,
clipPathId: t,
previousPointsRef: r,
pathRef: i
});
}
-var W0e = (e, t) => ({
+var U0e = (e, t) => ({
x: e.x ?? void 0,
y: e.y ?? void 0,
value: e.value,
- errorVal: fY(e.payload, t)
-}), G0e = class extends b.Component {
+ errorVal: dY(e.payload, t)
+}), W0e = class extends b.Component {
render() {
var e = this.props, t = e.hide, n = e.dot, r = e.points, i = e.className, a = e.xAxisId, o = e.yAxisId, s = e.top, c = e.left, l = e.width, u = e.height, d = e.id, f = e.needClip, p = e.zIndex;
if (t) return null;
- var m = dv("recharts-line", i), h = d, g = E0e(n), _ = g.r, v = g.strokeWidth, y = e3(n), x = _ * 2 + v, S = f ? `url(#clipPath-${y ? "" : "dots-"}${h})` : void 0;
- return /*#__PURE__*/ b.createElement(o4, { zIndex: p }, /*#__PURE__*/ b.createElement(yW, { className: m }, f && /*#__PURE__*/ b.createElement("defs", null, /*#__PURE__*/ b.createElement(a6, {
+ var m = fv("recharts-line", i), h = d, g = T0e(n), _ = g.r, v = g.strokeWidth, y = t3(n), x = _ * 2 + v, S = f ? `url(#clipPath-${y ? "" : "dots-"}${h})` : void 0;
+ return /*#__PURE__*/ b.createElement(s4, { zIndex: p }, /*#__PURE__*/ b.createElement(vW, { className: m }, f && /*#__PURE__*/ b.createElement("defs", null, /*#__PURE__*/ b.createElement(o6, {
clipPathId: h,
xAxisId: a,
yAxisId: o
@@ -82571,16 +82571,16 @@ var W0e = (e, t) => ({
y: s - x / 2,
width: l + x,
height: u + x
- }))), /*#__PURE__*/ b.createElement(_0e, {
+ }))), /*#__PURE__*/ b.createElement(g0e, {
xAxisId: a,
yAxisId: o,
data: r,
- dataPointFormatter: W0e,
+ dataPointFormatter: U0e,
errorBarOffset: 0
- }, /*#__PURE__*/ b.createElement(U0e, {
+ }, /*#__PURE__*/ b.createElement(H0e, {
props: this.props,
clipPathId: h
- }))), /*#__PURE__*/ b.createElement(C3, {
+ }))), /*#__PURE__*/ b.createElement(w3, {
activeDot: this.props.activeDot,
points: r,
mainColor: this.props.stroke,
@@ -82589,11 +82589,11 @@ var W0e = (e, t) => ({
}));
}
};
-function K0e(e) {
- var t = YG(e, l6), n = t.activeDot, r = t.animateNewValues, i = t.animationBegin, a = t.animationDuration, o = t.animationEasing, s = t.connectNulls, c = t.dot, l = t.hide, u = t.isAnimationActive, d = t.label, f = t.legendType, p = t.xAxisId, m = t.yAxisId, h = t.id, g = s6(t, k0e), _ = i6(p, m).needClip, v = x3(), y = tX(), x = IY(), S = J((e) => T0e(e, p, m, x, h));
+function G0e(e) {
+ var t = JG(e, u6), n = t.activeDot, r = t.animateNewValues, i = t.animationBegin, a = t.animationDuration, o = t.animationEasing, s = t.connectNulls, c = t.dot, l = t.hide, u = t.isAnimationActive, d = t.label, f = t.legendType, p = t.xAxisId, m = t.yAxisId, h = t.id, g = c6(t, O0e), _ = a6(p, m).needClip, v = S3(), y = eX(), x = FY(), S = J((e) => w0e(e, p, m, x, h));
if (y !== "horizontal" && y !== "vertical" || S == null || v == null) return null;
var C = v.height, w = v.width, T = v.x, E = v.y;
- return /*#__PURE__*/ b.createElement(G0e, o6({}, g, {
+ return /*#__PURE__*/ b.createElement(W0e, s6({}, g, {
id: h,
connectNulls: s,
dot: c,
@@ -82617,23 +82617,23 @@ function K0e(e) {
needClip: _
}));
}
-function q0e(e) {
+function K0e(e) {
var t = e.layout, n = e.xAxis, r = e.yAxis, i = e.xAxisTicks, a = e.yAxisTicks, o = e.dataKey, s = e.bandSize;
return e.displayedData.map((e, c) => {
- var l = fY(e, o);
+ var l = dY(e, o);
if (t === "horizontal") return {
- x: vY({
+ x: _Y({
axis: n,
ticks: i,
bandSize: s,
entry: e,
index: c
}),
- y: (zW(l) ? null : r.scale.map(l)) ?? null,
+ y: (RW(l) ? null : r.scale.map(l)) ?? null,
value: l,
payload: e
};
- var u = zW(l) ? null : n.scale.map(l), d = vY({
+ var u = RW(l) ? null : n.scale.map(l), d = _Y({
axis: r,
ticks: a,
bandSize: s,
@@ -82648,12 +82648,12 @@ function q0e(e) {
};
}).filter(Boolean);
}
-function J0e(e) {
- var t = YG(e, l6), n = IY();
- return /*#__PURE__*/ b.createElement(p3, {
+function q0e(e) {
+ var t = JG(e, u6), n = FY();
+ return /*#__PURE__*/ b.createElement(m3, {
id: t.id,
type: "line"
- }, (e) => /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(o3, { legendPayload: L0e(t) }), /*#__PURE__*/ b.createElement(R0e, {
+ }, (e) => /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(s3, { legendPayload: I0e(t) }), /*#__PURE__*/ b.createElement(L0e, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -82665,7 +82665,7 @@ function J0e(e) {
formatter: t.formatter,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ b.createElement(h3, {
+ }), /*#__PURE__*/ b.createElement(g3, {
type: "line",
id: e,
data: t.data,
@@ -82675,56 +82675,56 @@ function J0e(e) {
dataKey: t.dataKey,
hide: t.hide,
isPanorama: n
- }), /*#__PURE__*/ b.createElement(K0e, o6({}, t, { id: e }))));
+ }), /*#__PURE__*/ b.createElement(G0e, s6({}, t, { id: e }))));
}
-var Y0e = /*#__PURE__*/ b.memo(J0e, mX);
-Y0e.displayName = "Line";
+var J0e = /*#__PURE__*/ b.memo(q0e, pX);
+J0e.displayName = "Line";
//#endregion
//#region node_modules/recharts/es6/state/selectors/graphicalItemSelectors.js
-function u6(e, t) {
+function d6(e, t) {
return e.graphicalItems.cartesianItems.find((e) => e.id === t)?.xAxisId ?? 0;
}
-function d6(e, t) {
+function f6(e, t) {
return e.graphicalItems.cartesianItems.find((e) => e.id === t)?.yAxisId ?? 0;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/areaSelectors.js
-var X0e = (e, t, n) => N2(e, "xAxis", u6(e, t), n), Z0e = (e, t, n) => M2(e, "xAxis", u6(e, t), n), Q0e = (e, t, n) => N2(e, "yAxis", d6(e, t), n), $0e = (e, t, n) => M2(e, "yAxis", d6(e, t), n), e2e = Y([
- eX,
+var Y0e = (e, t, n) => P2(e, "xAxis", d6(e, t), n), X0e = (e, t, n) => N2(e, "xAxis", d6(e, t), n), Z0e = (e, t, n) => P2(e, "yAxis", f6(e, t), n), Q0e = (e, t, n) => N2(e, "yAxis", f6(e, t), n), $0e = Y([
+ $Y,
+ Y0e,
+ Z0e,
X0e,
- Q0e,
+ Q0e
+], (e, t, n, r, i) => fY(e, "xAxis") ? SY(t, r, !1) : SY(n, i, !1)), p6 = Y([Q0, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), e2e = (e) => fY($Y(e), "xAxis") ? "yAxis" : "xAxis", t2e = (e, t) => e2e(e) === "yAxis" ? f6(e, t) : d6(e, t), n2e = (e, t, n) => u2(e, e2e(e), t2e(e, t), n), r2e = Y([
+ $Y,
+ Y0e,
Z0e,
- $0e
-], (e, t, n, r, i) => pY(e, "xAxis") ? CY(t, r, !1) : CY(n, i, !1)), f6 = Y([Z0, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), t2e = (e) => pY(eX(e), "xAxis") ? "yAxis" : "xAxis", n2e = (e, t) => t2e(e) === "yAxis" ? d6(e, t) : u6(e, t), r2e = (e, t, n) => l2(e, t2e(e), n2e(e, t), n), i2e = Y([
- eX,
X0e,
Q0e,
- Z0e,
- $0e,
- Y([f6, r2e], (e, t) => {
+ Y([p6, n2e], (e, t) => {
if (e != null && t != null) {
- var n = e.stackId, r = wQ(e);
+ var n = e.stackId, r = CQ(e);
if (n != null && r != null) {
var i = (t[n]?.stackedData)?.find((e) => e.key === r);
if (i != null) return i.map((e) => [e[0], e[1]]);
}
}
}),
- jZ,
- e2e,
- f6,
- Fze,
- Y([f6, r2e], (e, t) => {
+ AZ,
+ $0e,
+ p6,
+ Ize,
+ Y([p6, n2e], (e, t) => {
if (e != null && e.stackId != null && t != null) {
var n = t[e.stackId];
- if (n != null) return n.graphicalItems.map((e) => e.dataKey).filter(VW);
+ if (n != null) return n.graphicalItems.map((e) => e.dataKey).filter(BW);
}
})
], (e, t, n, r, i, a, o, s, c, l, u) => {
var d = o.chartData, f = o.dataStartIndex, p = o.dataEndIndex;
if (!(c == null || e !== "horizontal" && e !== "vertical" || t == null || n == null || r == null || i == null || r.length === 0 || i.length === 0 || s == null)) {
var m = c.data, h = m && m.length > 0 ? m : d?.slice(f, p + 1);
- if (h != null) return N2e({
+ if (h != null) return M2e({
layout: e,
xAxis: t,
yAxis: n,
@@ -82739,7 +82739,7 @@ var X0e = (e, t, n) => N2(e, "xAxis", u6(e, t), n), Z0e = (e, t, n) => M2(e, "xA
stackDataKeys: u
});
}
-}), a2e = [
+}), i2e = [
"animationElapsedTime",
"isAnimating",
"isEntrance",
@@ -82747,26 +82747,26 @@ var X0e = (e, t, n) => N2(e, "xAxis", u6(e, t), n), Z0e = (e, t, n) => M2(e, "xA
"isRange",
"stroke",
"connectNulls"
-], o2e = ["id", "baseLine"];
-function p6() {
- return p6 = Object.assign ? Object.assign.bind() : function(e) {
+], a2e = ["id", "baseLine"];
+function m6() {
+ return m6 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, p6.apply(null, arguments);
+ }, m6.apply(null, arguments);
}
-function s2e(e, t) {
+function o2e(e, t) {
if (e == null) return {};
- var n, r, i = c2e(e, t);
+ var n, r, i = s2e(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function c2e(e, t) {
+function s2e(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -82775,51 +82775,51 @@ function c2e(e, t) {
}
return n;
}
-function l2e(e) {
+function c2e(e) {
var t = e.alpha, n = e.baseLine, r = e.points, i = e.strokeWidth, a = r[0]?.x, o = r[r.length - 1]?.x;
- if (!cY(a) || !cY(o)) return null;
+ if (!sY(a) || !sY(o)) return null;
var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.y || 0));
- return MW(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.y || 0), c)), MW(c) ? /*#__PURE__*/ b.createElement("rect", {
+ return jW(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.y || 0), c)), jW(c) ? /*#__PURE__*/ b.createElement("rect", {
x: a < o ? a : a - s,
y: 0,
width: s,
height: Math.floor(c + (i ? parseInt(`${i}`, 10) : 1))
}) : null;
}
-function u2e(e) {
+function l2e(e) {
var t = e.alpha, n = e.baseLine, r = e.points, i = e.strokeWidth, a = r[0]?.y, o = r[r.length - 1]?.y;
- if (!cY(a) || !cY(o)) return null;
+ if (!sY(a) || !sY(o)) return null;
var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.x || 0));
- return MW(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.x || 0), c)), MW(c) ? /*#__PURE__*/ b.createElement("rect", {
+ return jW(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.x || 0), c)), jW(c) ? /*#__PURE__*/ b.createElement("rect", {
x: 0,
y: a < o ? a : a - s,
width: c + (i ? parseInt(`${i}`, 10) : 1),
height: Math.floor(s)
}) : null;
}
-function d2e(e) {
+function u2e(e) {
var t = e.alpha, n = e.layout, r = e.points, i = e.baseLine, a = e.strokeWidth;
- return n === "vertical" ? /*#__PURE__*/ b.createElement(u2e, {
+ return n === "vertical" ? /*#__PURE__*/ b.createElement(l2e, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
- }) : /*#__PURE__*/ b.createElement(l2e, {
+ }) : /*#__PURE__*/ b.createElement(c2e, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
});
}
-function f2e(e) {
- var t = e.animationElapsedTime, n = t === void 0 ? 1 : t, r = e.isAnimating, i = r !== void 0 && r, a = e.isEntrance, o = a !== void 0 && a, s = e.layout, c = e.isRange, l = e.stroke, u = e.connectNulls, d = s2e(e, a2e), f = s === "vertical" ? "vertical" : "horizontal", p = u ?? !1, m = NXe(), h = d.id, g = d.baseLine, _ = pW(s2e(d, o2e)), v = /*#__PURE__*/ b.createElement(UX, p6({}, d, {
+function d2e(e) {
+ var t = e.animationElapsedTime, n = t === void 0 ? 1 : t, r = e.isAnimating, i = r !== void 0 && r, a = e.isEntrance, o = a !== void 0 && a, s = e.layout, c = e.isRange, l = e.stroke, u = e.connectNulls, d = o2e(e, i2e), f = s === "vertical" ? "vertical" : "horizontal", p = u ?? !1, m = MXe(), h = d.id, g = d.baseLine, _ = fW(o2e(d, a2e)), v = /*#__PURE__*/ b.createElement(HX, m6({}, d, {
id: h,
baseLine: g,
connectNulls: p,
stroke: "none",
className: "recharts-area-area",
layout: f
- })), y = l !== "none" && /*#__PURE__*/ b.createElement(UX, p6({}, _, {
+ })), y = l !== "none" && /*#__PURE__*/ b.createElement(HX, m6({}, _, {
className: "recharts-area-curve",
layout: f,
type: d.type,
@@ -82827,7 +82827,7 @@ function f2e(e) {
fill: "none",
stroke: l,
points: d.points
- })), x = l !== "none" && c && Array.isArray(g) && /*#__PURE__*/ b.createElement(UX, p6({}, _, {
+ })), x = l !== "none" && c && Array.isArray(g) && /*#__PURE__*/ b.createElement(HX, m6({}, _, {
className: "recharts-area-curve",
layout: f,
type: d.type,
@@ -82836,17 +82836,17 @@ function f2e(e) {
stroke: l,
points: g
}));
- return o && (i || n < 1) ? /*#__PURE__*/ b.createElement(yW, null, /*#__PURE__*/ b.createElement("defs", null, /*#__PURE__*/ b.createElement("clipPath", { id: m }, /*#__PURE__*/ b.createElement(d2e, {
+ return o && (i || n < 1) ? /*#__PURE__*/ b.createElement(vW, null, /*#__PURE__*/ b.createElement("defs", null, /*#__PURE__*/ b.createElement("clipPath", { id: m }, /*#__PURE__*/ b.createElement(u2e, {
alpha: n,
points: d.points ?? [],
baseLine: g,
layout: f,
strokeWidth: d.strokeWidth
- }))), /*#__PURE__*/ b.createElement(yW, { clipPath: `url(#${m})` }, v, y, x)) : /*#__PURE__*/ b.createElement(b.Fragment, null, v, y, x);
+ }))), /*#__PURE__*/ b.createElement(vW, { clipPath: `url(#${m})` }, v, y, x)) : /*#__PURE__*/ b.createElement(b.Fragment, null, v, y, x);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/Area.js
-var p2e = ["id"], m2e = [
+var f2e = ["id"], p2e = [
"activeDot",
"animationBegin",
"animationDuration",
@@ -82862,25 +82862,25 @@ var p2e = ["id"], m2e = [
"xAxisId",
"yAxisId"
];
-function m6() {
- return m6 = Object.assign ? Object.assign.bind() : function(e) {
+function h6() {
+ return h6 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, m6.apply(null, arguments);
+ }, h6.apply(null, arguments);
}
-function h2e(e, t) {
+function m2e(e, t) {
if (e == null) return {};
- var n, r, i = g2e(e, t);
+ var n, r, i = h2e(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function g2e(e, t) {
+function h2e(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -82889,7 +82889,7 @@ function g2e(e, t) {
}
return n;
}
-function _2e(e, t) {
+function g2e(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -82899,30 +82899,30 @@ function _2e(e, t) {
}
return n;
}
-function h6(e) {
+function g6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? _2e(Object(n), !0).forEach(function(t) {
- v2e(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _2e(Object(n)).forEach(function(t) {
+ t % 2 ? g2e(Object(n), !0).forEach(function(t) {
+ _2e(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : g2e(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function v2e(e, t, n) {
- return (t = y2e(t)) in e ? Object.defineProperty(e, t, {
+function _2e(e, t, n) {
+ return (t = v2e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function y2e(e) {
- var t = b2e(e, "string");
+function v2e(e) {
+ var t = y2e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function b2e(e, t) {
+function y2e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -82932,15 +82932,15 @@ function b2e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var x2e = {
+var b2e = {
activeDot: !0,
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease",
- animationMatchBy: s3,
- animationInterpolateFn: (e, t) => e == null ? [] : t === 1 ? e.flatMap((e) => e.status === "removed" ? [] : [e.next]) : e.flatMap((e) => e.status === "matched" ? [h6(h6({}, e.next), {}, {
- x: LW(e.prev.x, e.next.x, t),
- y: LW(e.prev.y, e.next.y, t)
+ animationMatchBy: c3,
+ animationInterpolateFn: (e, t) => e == null ? [] : t === 1 ? e.flatMap((e) => e.status === "removed" ? [] : [e.next]) : e.flatMap((e) => e.status === "matched" ? [g6(g6({}, e.next), {}, {
+ x: IW(e.prev.x, e.next.x, t),
+ y: IW(e.prev.y, e.next.y, t)
})] : e.status === "added" ? [e.next] : []),
connectNulls: !1,
dot: !1,
@@ -82953,48 +82953,48 @@ var x2e = {
strokeWidth: 1,
type: "linear",
label: !1,
- shape: f2e,
+ shape: d2e,
xAxisId: 0,
yAxisId: 0,
- zIndex: iQ.area
+ zIndex: rQ.area
};
-function g6(e, t) {
+function _6(e, t) {
return e && e !== "none" ? e : t;
}
-var S2e = (e) => {
+var x2e = (e) => {
var t = e.dataKey, n = e.name, r = e.stroke, i = e.fill, a = e.legendType;
return [{
inactive: e.hide,
dataKey: t,
type: a,
- color: g6(r, i),
- value: TY(n, t),
+ color: _6(r, i),
+ value: wY(n, t),
payload: e
}];
-}, C2e = /*#__PURE__*/ b.memo((e) => {
+}, S2e = /*#__PURE__*/ b.memo((e) => {
var t = e.dataKey, n = e.data, r = e.stroke, i = e.strokeWidth, a = e.fill, o = e.name, s = e.hide, c = e.unit, l = e.formatter, u = e.tooltipType, d = e.id, f = {
dataDefinedOnItem: n,
- getPosition: HW,
+ getPosition: VW,
settings: {
stroke: r,
strokeWidth: i,
fill: a,
dataKey: t,
nameKey: void 0,
- name: TY(o, t),
+ name: wY(o, t),
hide: s,
type: u,
- color: g6(r, a),
+ color: _6(r, a),
unit: c,
formatter: l,
graphicalItemId: d
}
};
- return /*#__PURE__*/ b.createElement(a3, { tooltipEntrySettings: f });
+ return /*#__PURE__*/ b.createElement(o3, { tooltipEntrySettings: f });
});
-function w2e(e) {
- var t = e.clipPathId, n = e.points, r = e.props, i = r.needClip, a = r.dot, o = r.dataKey, s = pW(r);
- return /*#__PURE__*/ b.createElement(v3, {
+function C2e(e) {
+ var t = e.clipPathId, n = e.points, r = e.props, i = r.needClip, a = r.dot, o = r.dataKey, s = fW(r);
+ return /*#__PURE__*/ b.createElement(y3, {
points: n,
dot: a,
className: "recharts-area-dots",
@@ -83005,7 +83005,7 @@ function w2e(e) {
clipPathId: t
});
}
-function T2e(e) {
+function w2e(e) {
var t = e.showLabels, n = e.children, r = e.points.map((e) => {
var t = {
x: e.x ?? 0,
@@ -83015,7 +83015,7 @@ function T2e(e) {
upperWidth: 0,
height: 0
};
- return h6(h6({}, t), {}, {
+ return g6(g6({}, t), {}, {
value: e.value,
payload: e.payload,
parentViewBox: void 0,
@@ -83023,10 +83023,10 @@ function T2e(e) {
fill: void 0
});
});
- return /*#__PURE__*/ b.createElement(O4, { value: t ? r : void 0 }, n);
+ return /*#__PURE__*/ b.createElement(k4, { value: t ? r : void 0 }, n);
}
-function E2e(e) {
- var t = e.points, n = e.baseLine, r = e.needClip, i = e.clipPathId, a = e.props, o = e.animationElapsedTime, s = e.isAnimating, c = e.isEntrance, l = a.layout, u = a.type, d = a.stroke, f = a.connectNulls, p = a.isRange, m = a.shape, h = a.id, g = h2e(a, p2e), _ = h6(h6({}, hW(g)), {}, {
+function T2e(e) {
+ var t = e.points, n = e.baseLine, r = e.needClip, i = e.clipPathId, a = e.props, o = e.animationElapsedTime, s = e.isAnimating, c = e.isEntrance, l = a.layout, u = a.type, d = a.stroke, f = a.connectNulls, p = a.isRange, m = a.shape, h = a.id, g = m2e(a, f2e), _ = g6(g6({}, mW(g)), {}, {
id: h,
points: t,
connectNulls: f,
@@ -83039,27 +83039,27 @@ function E2e(e) {
isAnimating: s,
isEntrance: c
});
- return /*#__PURE__*/ b.createElement(b.Fragment, null, t?.length > 1 && /*#__PURE__*/ b.createElement(yW, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ b.createElement(t3, {
+ return /*#__PURE__*/ b.createElement(b.Fragment, null, t?.length > 1 && /*#__PURE__*/ b.createElement(vW, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ b.createElement(n3, {
option: m,
- DefaultShape: x2e.shape,
+ DefaultShape: b2e.shape,
shapeProps: _
- })), /*#__PURE__*/ b.createElement(w2e, {
+ })), /*#__PURE__*/ b.createElement(C2e, {
points: t,
props: g,
clipPathId: i
}));
}
-function D2e(e, t, n) {
- return MW(e) ? LW(MW(t) ? t : void 0, e, n) : zW(e) || AW(e) ? LW(MW(t) ? t : void 0, 0, n) : e;
+function E2e(e, t, n) {
+ return jW(e) ? IW(jW(t) ? t : void 0, e, n) : RW(e) || kW(e) ? IW(jW(t) ? t : void 0, 0, n) : e;
}
-function O2e(e) {
+function D2e(e) {
var t = e.needClip, n = e.clipPathId, r = e.props, i = e.previousPointsRef, a = e.previousBaselineRef, o = r.points, s = r.baseLine, c = r.isAnimationActive, l = r.animationBegin, u = r.animationDuration, d = r.animationEasing, f = r.animationMatchBy, p = r.animationInterpolateFn, m = (0, b.useMemo)(() => ({
points: o,
baseLine: s
- }), [o, s]), h = u3(m, a), g = nX(), _ = d3(r.onAnimationStart, r.onAnimationEnd), v = _.isAnimating, y = _.handleAnimationStart, x = _.handleAnimationEnd, S = h.startValue;
+ }), [o, s]), h = d3(m, a), g = tX(), _ = f3(r.onAnimationStart, r.onAnimationEnd), v = _.isAnimating, y = _.handleAnimationStart, x = _.handleAnimationEnd, S = h.startValue;
if (g == null) return null;
- var C = Array.isArray(s) && Array.isArray(S) ? l3(S, s, f) : Array.isArray(s) ? l3(null, s, f) : null;
- return /*#__PURE__*/ b.createElement(f3, {
+ var C = Array.isArray(s) && Array.isArray(S) ? u3(S, s, f) : Array.isArray(s) ? u3(null, s, f) : null;
+ return /*#__PURE__*/ b.createElement(p3, {
animationInput: m,
animationIdPrefix: "recharts-area-",
items: o,
@@ -83074,11 +83074,11 @@ function O2e(e) {
animationMatchBy: f,
layout: g
}, (e, i, a) => {
- var c = i === 1 ? s : Array.isArray(s) ? p(C, i, g) : a ? s : D2e(s, S, i);
- return h.syncStepValue(c, i), /*#__PURE__*/ b.createElement(T2e, {
+ var c = i === 1 ? s : Array.isArray(s) ? p(C, i, g) : a ? s : E2e(s, S, i);
+ return h.syncStepValue(c, i), /*#__PURE__*/ b.createElement(w2e, {
showLabels: !v,
points: o
- }, r.children, /*#__PURE__*/ b.createElement(E2e, {
+ }, r.children, /*#__PURE__*/ b.createElement(T2e, {
points: e,
baseLine: c,
needClip: t,
@@ -83087,12 +83087,12 @@ function O2e(e) {
animationElapsedTime: i,
isAnimating: v || i < 1,
isEntrance: a
- }), /*#__PURE__*/ b.createElement(A4, { label: r.label }));
+ }), /*#__PURE__*/ b.createElement(j4, { label: r.label }));
});
}
-function k2e(e) {
+function O2e(e) {
var t = e.needClip, n = e.clipPathId, r = e.props, i = (0, b.useRef)(null), a = (0, b.useRef)();
- return /*#__PURE__*/ b.createElement(O2e, {
+ return /*#__PURE__*/ b.createElement(D2e, {
needClip: t,
clipPathId: n,
props: r,
@@ -83100,12 +83100,12 @@ function k2e(e) {
previousBaselineRef: a
});
}
-var A2e = class extends b.PureComponent {
+var k2e = class extends b.PureComponent {
render() {
var e = this.props, t = e.hide, n = e.dot, r = e.points, i = e.className, a = e.top, o = e.left, s = e.needClip, c = e.xAxisId, l = e.yAxisId, u = e.width, d = e.height, f = e.id, p = e.baseLine, m = e.zIndex;
if (t) return null;
- var h = dv("recharts-area", i), g = f, _ = E0e(n), v = _.r, y = _.strokeWidth, x = e3(n), S = v * 2 + y, C = s ? `url(#clipPath-${x ? "" : "dots-"}${g})` : void 0;
- return /*#__PURE__*/ b.createElement(o4, { zIndex: m }, /*#__PURE__*/ b.createElement(yW, { className: h }, s && /*#__PURE__*/ b.createElement("defs", null, /*#__PURE__*/ b.createElement(a6, {
+ var h = fv("recharts-area", i), g = f, _ = T0e(n), v = _.r, y = _.strokeWidth, x = t3(n), S = v * 2 + y, C = s ? `url(#clipPath-${x ? "" : "dots-"}${g})` : void 0;
+ return /*#__PURE__*/ b.createElement(s4, { zIndex: m }, /*#__PURE__*/ b.createElement(vW, { className: h }, s && /*#__PURE__*/ b.createElement("defs", null, /*#__PURE__*/ b.createElement(o6, {
clipPathId: g,
xAxisId: c,
yAxisId: l
@@ -83114,30 +83114,30 @@ var A2e = class extends b.PureComponent {
y: a - S / 2,
width: u + S,
height: d + S
- }))), /*#__PURE__*/ b.createElement(k2e, {
+ }))), /*#__PURE__*/ b.createElement(O2e, {
needClip: s,
clipPathId: g,
props: this.props
- })), /*#__PURE__*/ b.createElement(C3, {
+ })), /*#__PURE__*/ b.createElement(w3, {
points: r,
- mainColor: g6(this.props.stroke, this.props.fill),
+ mainColor: _6(this.props.stroke, this.props.fill),
itemDataKey: this.props.dataKey,
activeDot: this.props.activeDot,
clipPath: C
- }), this.props.isRange && Array.isArray(p) && /*#__PURE__*/ b.createElement(C3, {
+ }), this.props.isRange && Array.isArray(p) && /*#__PURE__*/ b.createElement(w3, {
points: p,
- mainColor: g6(this.props.stroke, this.props.fill),
+ mainColor: _6(this.props.stroke, this.props.fill),
itemDataKey: this.props.dataKey,
activeDot: this.props.activeDot,
clipPath: C
}));
}
};
-function j2e(e) {
- var t = e.activeDot, n = e.animationBegin, r = e.animationDuration, i = e.animationEasing, a = e.connectNulls, o = e.dot, s = e.fill, c = e.fillOpacity, l = e.hide, u = e.isAnimationActive, d = e.legendType, f = e.stroke, p = e.xAxisId, m = e.yAxisId, h = h2e(e, m2e), g = tX(), _ = yGe(), v = i6(p, m).needClip, y = IY(), x = J((t) => i2e(t, e.id, y)) ?? {}, S = x.points, C = x.isRange, w = x.baseLine, T = x3();
+function A2e(e) {
+ var t = e.activeDot, n = e.animationBegin, r = e.animationDuration, i = e.animationEasing, a = e.connectNulls, o = e.dot, s = e.fill, c = e.fillOpacity, l = e.hide, u = e.isAnimationActive, d = e.legendType, f = e.stroke, p = e.xAxisId, m = e.yAxisId, h = m2e(e, p2e), g = eX(), _ = vGe(), v = a6(p, m).needClip, y = FY(), x = J((t) => r2e(t, e.id, y)) ?? {}, S = x.points, C = x.isRange, w = x.baseLine, T = S3();
if (g !== "horizontal" && g !== "vertical" || T == null || _ !== "AreaChart" && _ !== "ComposedChart") return null;
var E = T.height, D = T.width, O = T.x, k = T.y;
- return !S || !S.length ? null : /*#__PURE__*/ b.createElement(A2e, m6({}, h, {
+ return !S || !S.length ? null : /*#__PURE__*/ b.createElement(k2e, h6({}, h, {
activeDot: t,
animationBegin: n,
animationDuration: r,
@@ -83163,9 +83163,9 @@ function j2e(e) {
yAxisId: m
}));
}
-var M2e = (e, t, n, r, i) => {
+var j2e = (e, t, n, r, i) => {
var a = n ?? t;
- if (MW(a)) return a;
+ if (jW(a)) return a;
var o = e === "horizontal" ? i : r, s = o.scale.domain();
if (o.type === "number") {
var c = Math.max(s[0], s[1]), l = Math.min(s[0], s[1]);
@@ -83173,17 +83173,17 @@ var M2e = (e, t, n, r, i) => {
}
return a === "dataMin" ? s[0] : a === "dataMax" ? s[1] : s[0];
};
-function N2e(e) {
- var t = e.areaSettings, n = t.connectNulls, r = t.baseValue, i = t.dataKey, a = e.stackedData, o = e.layout, s = e.chartBaseValue, c = e.xAxis, l = e.yAxis, u = e.displayedData, d = e.dataStartIndex, f = e.xAxisTicks, p = e.yAxisTicks, m = e.bandSize, h = e.stackDataKeys, g = a && a.length, _ = M2e(o, s, r, c, l), v = o === "horizontal", y = !1, b = u.map((e, t) => {
+function M2e(e) {
+ var t = e.areaSettings, n = t.connectNulls, r = t.baseValue, i = t.dataKey, a = e.stackedData, o = e.layout, s = e.chartBaseValue, c = e.xAxis, l = e.yAxis, u = e.displayedData, d = e.dataStartIndex, f = e.xAxisTicks, p = e.yAxisTicks, m = e.bandSize, h = e.stackDataKeys, g = a && a.length, _ = j2e(o, s, r, c, l), v = o === "horizontal", y = !1, b = u.map((e, t) => {
var r;
if (g) r = a[d + t];
else {
- var o = fY(e, i);
+ var o = dY(e, i);
Array.isArray(o) ? (r = o, y = !0) : r = [_, o];
}
- var s = r?.[1] ?? null, u = fY(e, i), b = g && u == null && h != null && h.length > 0 && h.every((t) => fY(e, t) == null), x = s == null || g && !n && u == null || b;
+ var s = r?.[1] ?? null, u = dY(e, i), b = g && u == null && h != null && h.length > 0 && h.every((t) => dY(e, t) == null), x = s == null || g && !n && u == null || b;
return v ? {
- x: vY({
+ x: _Y({
axis: c,
ticks: f,
bandSize: m,
@@ -83195,7 +83195,7 @@ function N2e(e) {
payload: e
} : {
x: x ? null : c.scale.map(s) ?? null,
- y: vY({
+ y: _Y({
axis: l,
ticks: p,
bandSize: m,
@@ -83223,12 +83223,12 @@ function N2e(e) {
isRange: y
};
}
-function P2e(e) {
- var t = YG(e, x2e), n = IY();
- return /*#__PURE__*/ b.createElement(p3, {
+function N2e(e) {
+ var t = JG(e, b2e), n = FY();
+ return /*#__PURE__*/ b.createElement(m3, {
id: t.id,
type: "area"
- }, (e) => /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(o3, { legendPayload: S2e(t) }), /*#__PURE__*/ b.createElement(C2e, {
+ }, (e) => /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(s3, { legendPayload: x2e(t) }), /*#__PURE__*/ b.createElement(S2e, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -83240,7 +83240,7 @@ function P2e(e) {
formatter: t.formatter,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ b.createElement(h3, {
+ }), /*#__PURE__*/ b.createElement(g3, {
type: "area",
id: e,
data: t.data,
@@ -83248,35 +83248,35 @@ function P2e(e) {
xAxisId: t.xAxisId,
yAxisId: t.yAxisId,
zAxisId: 0,
- stackId: _Y(t.stackId),
+ stackId: gY(t.stackId),
hide: t.hide,
barSize: void 0,
baseValue: t.baseValue,
isPanorama: n,
connectNulls: t.connectNulls
- }), /*#__PURE__*/ b.createElement(j2e, m6({}, t, { id: e }))));
+ }), /*#__PURE__*/ b.createElement(A2e, h6({}, t, { id: e }))));
}
-var F2e = /*#__PURE__*/ b.memo(P2e, mX);
-F2e.displayName = "Area";
+var P2e = /*#__PURE__*/ b.memo(N2e, pX);
+P2e.displayName = "Area";
//#endregion
//#region node_modules/tiny-invariant/dist/esm/tiny-invariant.js
-var I2e = "Invariant failed";
-function L2e(e, t) {
- if (!e) throw Error(I2e);
+var F2e = "Invariant failed";
+function I2e(e, t) {
+ if (!e) throw Error(F2e);
}
//#endregion
//#region node_modules/recharts/es6/util/BarUtils.js
-var R2e = ["option"];
-function z2e(e, t) {
+var L2e = ["option"];
+function R2e(e, t) {
if (e == null) return {};
- var n, r, i = B2e(e, t);
+ var n, r, i = z2e(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function B2e(e, t) {
+function z2e(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -83285,92 +83285,92 @@ function B2e(e, t) {
}
return n;
}
-var _6 = mZ;
-function v6(e) {
- var t = e.option, n = z2e(e, R2e);
- return /*#__PURE__*/ b.createElement(t3, {
+var v6 = pZ;
+function y6(e) {
+ var t = e.option, n = R2e(e, L2e);
+ return /*#__PURE__*/ b.createElement(n3, {
option: t,
- DefaultShape: _6,
+ DefaultShape: v6,
shapeProps: n,
activeClassName: "recharts-active-bar",
inActiveClassName: "recharts-inactive-bar"
});
}
-var V2e = function(e) {
+var B2e = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
return (n, r) => {
- if (MW(e)) return e;
- var i = MW(n) || zW(n);
- return i ? e(n, r) : (!i && L2e(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
- };
-}, H2e = (e, t, n) => n, y6 = Y([Z0, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), U2e = Y([y6], (e) => e?.maxBarSize), W2e = (e, t, n, r) => r, G2e = Y([
- eX,
- Z0,
- u6,
+ if (jW(e)) return e;
+ var i = jW(n) || RW(n);
+ return i ? e(n, r) : (!i && I2e(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
+ };
+}, V2e = (e, t, n) => n, b6 = Y([Q0, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), H2e = Y([b6], (e) => e?.maxBarSize), U2e = (e, t, n, r) => r, W2e = Y([
+ $Y,
+ Q0,
d6,
- H2e
-], (e, t, n, r, i) => t.filter((t) => e === "horizontal" ? t.xAxisId === n : t.yAxisId === r).filter((e) => e.isPanorama === i).filter((e) => e.hide === !1).filter((e) => e.type === "bar")), K2e = (e, t, n) => {
- var r = eX(e), i = u6(e, t), a = d6(e, t);
- if (i != null && a != null) return r === "horizontal" ? l2(e, "yAxis", a, n) : l2(e, "xAxis", i, n);
-}, q2e = Y([
- G2e,
- ZZ,
+ f6,
+ V2e
+], (e, t, n, r, i) => t.filter((t) => e === "horizontal" ? t.xAxisId === n : t.yAxisId === r).filter((e) => e.isPanorama === i).filter((e) => e.hide === !1).filter((e) => e.type === "bar")), G2e = (e, t, n) => {
+ var r = $Y(e), i = d6(e, t), a = f6(e, t);
+ if (i != null && a != null) return r === "horizontal" ? u2(e, "yAxis", a, n) : u2(e, "xAxis", i, n);
+}, K2e = Y([
+ W2e,
+ XZ,
(e, t) => {
- var n = eX(e), r = u6(e, t), i = d6(e, t);
- if (r != null && i != null) return n === "horizontal" ? BUe(e, "xAxis", r) : BUe(e, "yAxis", i);
+ var n = $Y(e), r = d6(e, t), i = f6(e, t);
+ if (r != null && i != null) return n === "horizontal" ? zUe(e, "xAxis", r) : zUe(e, "yAxis", i);
}
-], gQe), J2e = (e, t, n) => {
- var r = y6(e, t);
+], hQe), q2e = (e, t, n) => {
+ var r = b6(e, t);
if (r == null) return 0;
- var i = u6(e, t), a = d6(e, t);
+ var i = d6(e, t), a = f6(e, t);
if (i == null || a == null) return 0;
- var o = eX(e), s = JZ(e), c = r.maxBarSize, l = zW(c) ? s : c, u, d;
- return o === "horizontal" ? (u = N2(e, "xAxis", i, n), d = M2(e, "xAxis", i, n)) : (u = N2(e, "yAxis", a, n), d = M2(e, "yAxis", a, n)), CY(u, d, !0) ?? l ?? 0;
-}, Y2e = (e, t, n) => {
- var r = eX(e), i = u6(e, t), a = d6(e, t);
+ var o = $Y(e), s = qZ(e), c = r.maxBarSize, l = RW(c) ? s : c, u, d;
+ return o === "horizontal" ? (u = P2(e, "xAxis", i, n), d = N2(e, "xAxis", i, n)) : (u = P2(e, "yAxis", a, n), d = N2(e, "yAxis", a, n)), SY(u, d, !0) ?? l ?? 0;
+}, J2e = (e, t, n) => {
+ var r = $Y(e), i = d6(e, t), a = f6(e, t);
if (i != null && a != null) {
var o, s;
- return r === "horizontal" ? (o = N2(e, "xAxis", i, n), s = M2(e, "xAxis", i, n)) : (o = N2(e, "yAxis", a, n), s = M2(e, "yAxis", a, n)), CY(o, s);
+ return r === "horizontal" ? (o = P2(e, "xAxis", i, n), s = N2(e, "xAxis", i, n)) : (o = P2(e, "yAxis", a, n), s = N2(e, "yAxis", a, n)), SY(o, s);
}
-}, X2e = Y([
- NY,
- FY,
- (e, t, n) => {
- var r = u6(e, t);
- if (r != null) return N2(e, "xAxis", r, n);
- },
+}, Y2e = Y([
+ MY,
+ PY,
(e, t, n) => {
var r = d6(e, t);
- if (r != null) return N2(e, "yAxis", r, n);
+ if (r != null) return P2(e, "xAxis", r, n);
},
(e, t, n) => {
- var r = u6(e, t);
- if (r != null) return M2(e, "xAxis", r, n);
+ var r = f6(e, t);
+ if (r != null) return P2(e, "yAxis", r, n);
},
(e, t, n) => {
var r = d6(e, t);
- if (r != null) return M2(e, "yAxis", r, n);
+ if (r != null) return N2(e, "xAxis", r, n);
+ },
+ (e, t, n) => {
+ var r = f6(e, t);
+ if (r != null) return N2(e, "yAxis", r, n);
},
Y([Y([
- q2e,
+ K2e,
+ qZ,
JZ,
YZ,
- XZ,
+ q2e,
J2e,
- Y2e,
- U2e
- ], SQe), y6], wQe),
- eX,
- jZ,
- Y2e,
- Y([K2e, y6], CQe),
- y6,
- W2e
+ H2e
+ ], xQe), b6], CQe),
+ $Y,
+ AZ,
+ J2e,
+ Y([G2e, b6], SQe),
+ b6,
+ U2e
], (e, t, n, r, i, a, o, s, c, l, u, d, f) => {
var p = c.chartData, m = c.dataStartIndex, h = c.dataEndIndex;
if (!(d == null || o == null || t == null || s !== "horizontal" && s !== "vertical" || n == null || r == null || i == null || a == null || l == null)) {
var g = d.data, _ = g != null && g.length > 0 ? g : p?.slice(m, h + 1);
- if (_ != null) return F4e({
+ if (_ != null) return P4e({
layout: s,
barSettings: d,
pos: o,
@@ -83387,26 +83387,26 @@ var V2e = function(e) {
dataStartIndex: m
});
}
-}), Z2e = ["index"];
-function b6() {
- return b6 = Object.assign ? Object.assign.bind() : function(e) {
+}), X2e = ["index"];
+function x6() {
+ return x6 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, b6.apply(null, arguments);
+ }, x6.apply(null, arguments);
}
-function Q2e(e, t) {
+function Z2e(e, t) {
if (e == null) return {};
- var n, r, i = $2e(e, t);
+ var n, r, i = Q2e(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function $2e(e, t) {
+function Q2e(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -83415,54 +83415,54 @@ function $2e(e, t) {
}
return n;
}
-var e4e = /*#__PURE__*/ (0, b.createContext)(void 0), t4e = (e) => {
- var t = (0, b.useContext)(e4e);
+var $2e = /*#__PURE__*/ (0, b.createContext)(void 0), e4e = (e) => {
+ var t = (0, b.useContext)($2e);
if (t != null) return t.stackId;
- if (e != null) return _Y(e);
-}, n4e = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, r4e = (e) => {
- var t = (0, b.useContext)(e4e);
+ if (e != null) return gY(e);
+}, t4e = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, n4e = (e) => {
+ var t = (0, b.useContext)($2e);
if (t != null) {
var n = t.stackId;
- return `url(#${n4e(n, e)})`;
+ return `url(#${t4e(n, e)})`;
}
-}, i4e = (e) => {
- var t = e.index, n = Q2e(e, Z2e), r = r4e(t);
- return /*#__PURE__*/ b.createElement(yW, b6({
+}, r4e = (e) => {
+ var t = e.index, n = Z2e(e, X2e), r = n4e(t);
+ return /*#__PURE__*/ b.createElement(vW, x6({
className: "recharts-bar-stack-layer",
clipPath: r
}, n));
-}, a4e = [
+}, i4e = [
"onMouseEnter",
"onMouseLeave",
"onClick"
-], o4e = [
+], a4e = [
"value",
"background",
"tooltipPosition"
-], s4e = ["id"], c4e = [
+], o4e = ["id"], s4e = [
"onMouseEnter",
"onClick",
"onMouseLeave"
];
-function l4e(e, t) {
- return m4e(e) || p4e(e, t) || d4e(e, t) || u4e();
+function c4e(e, t) {
+ return p4e(e) || f4e(e, t) || u4e(e, t) || l4e();
}
-function u4e() {
+function l4e() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function d4e(e, t) {
+function u4e(e, t) {
if (e) {
- if (typeof e == "string") return f4e(e, t);
+ if (typeof e == "string") return d4e(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? f4e(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? d4e(e, t) : void 0;
}
}
-function f4e(e, t) {
+function d4e(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function p4e(e, t) {
+function f4e(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -83483,19 +83483,19 @@ function p4e(e, t) {
return s;
}
}
-function m4e(e) {
+function p4e(e) {
if (Array.isArray(e)) return e;
}
-function x6() {
- return x6 = Object.assign ? Object.assign.bind() : function(e) {
+function S6() {
+ return S6 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, x6.apply(null, arguments);
+ }, S6.apply(null, arguments);
}
-function h4e(e, t) {
+function m4e(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -83505,30 +83505,30 @@ function h4e(e, t) {
}
return n;
}
-function S6(e) {
+function C6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? h4e(Object(n), !0).forEach(function(t) {
- g4e(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h4e(Object(n)).forEach(function(t) {
+ t % 2 ? m4e(Object(n), !0).forEach(function(t) {
+ h4e(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : m4e(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function g4e(e, t, n) {
- return (t = _4e(t)) in e ? Object.defineProperty(e, t, {
+function h4e(e, t, n) {
+ return (t = g4e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function _4e(e) {
- var t = v4e(e, "string");
+function g4e(e) {
+ var t = _4e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function v4e(e, t) {
+function _4e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -83538,16 +83538,16 @@ function v4e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function C6(e, t) {
+function w6(e, t) {
if (e == null) return {};
- var n, r, i = y4e(e, t);
+ var n, r, i = v4e(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function y4e(e, t) {
+function v4e(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -83556,27 +83556,27 @@ function y4e(e, t) {
}
return n;
}
-var b4e = (e) => {
+var y4e = (e) => {
var t = e.dataKey, n = e.name, r = e.fill, i = e.legendType;
return [{
inactive: e.hide,
dataKey: t,
type: i,
color: r,
- value: TY(n, t),
+ value: wY(n, t),
payload: e
}];
-}, x4e = /*#__PURE__*/ b.memo((e) => {
+}, b4e = /*#__PURE__*/ b.memo((e) => {
var t = e.dataKey, n = e.stroke, r = e.strokeWidth, i = e.fill, a = e.name, o = e.hide, s = e.unit, c = e.formatter, l = e.tooltipType, u = e.id, d = {
dataDefinedOnItem: void 0,
- getPosition: HW,
+ getPosition: VW,
settings: {
stroke: n,
strokeWidth: r,
fill: i,
dataKey: t,
nameKey: void 0,
- name: TY(a, t),
+ name: wY(a, t),
hide: o,
type: l,
color: i,
@@ -83585,22 +83585,22 @@ var b4e = (e) => {
graphicalItemId: u
}
};
- return /*#__PURE__*/ b.createElement(a3, { tooltipEntrySettings: d });
+ return /*#__PURE__*/ b.createElement(o3, { tooltipEntrySettings: d });
});
-function S4e(e) {
- var t = J(Z2), n = e.data, r = e.dataKey, i = e.background, a = e.allOtherBarProps, o = a.onMouseEnter, s = a.onMouseLeave, c = a.onClick, l = C6(a, a4e), u = n3(o, r, a.id), d = r3(s), f = i3(c, r, a.id);
+function x4e(e) {
+ var t = J(Q2), n = e.data, r = e.dataKey, i = e.background, a = e.allOtherBarProps, o = a.onMouseEnter, s = a.onMouseLeave, c = a.onClick, l = w6(a, i4e), u = r3(o, r, a.id), d = i3(s), f = a3(c, r, a.id);
if (!i || n == null) return null;
- var p = mW(i);
- return /*#__PURE__*/ b.createElement(o4, { zIndex: VQe(i, iQ.barBackground) }, n.map((e, n) => {
+ var p = pW(i);
+ return /*#__PURE__*/ b.createElement(s4, { zIndex: BQe(i, rQ.barBackground) }, n.map((e, n) => {
e.value;
var a = e.background;
e.tooltipPosition;
- var o = C6(e, o4e);
+ var o = w6(e, a4e);
if (!a) return null;
- var s = u(e, e.originalDataIndex), c = d(e, e.originalDataIndex), m = f(e, e.originalDataIndex), h = S6(S6(S6(S6(S6({
+ var s = u(e, e.originalDataIndex), c = d(e, e.originalDataIndex), m = f(e, e.originalDataIndex), h = C6(C6(C6(C6(C6({
option: i,
isActive: String(e.originalDataIndex) === t
- }, o), {}, { fill: "#eee" }, a), p), qG(l, e, n)), {}, {
+ }, o), {}, { fill: "#eee" }, a), p), KG(l, e, n)), {}, {
onMouseEnter: s,
onMouseLeave: c,
onClick: m,
@@ -83608,10 +83608,10 @@ function S4e(e) {
index: n,
className: "recharts-bar-background-rectangle"
});
- return /*#__PURE__*/ b.createElement(v6, x6({ key: `background-bar-${n}` }, h));
+ return /*#__PURE__*/ b.createElement(y6, S6({ key: `background-bar-${n}` }, h));
}));
}
-function C4e(e) {
+function S4e(e) {
var t = e.showLabels, n = e.children, r = e.rects?.map((e) => {
var t = {
x: e.x,
@@ -83621,7 +83621,7 @@ function C4e(e) {
upperWidth: e.width,
height: e.height
};
- return S6(S6({}, t), {}, {
+ return C6(C6({}, t), {}, {
value: e.value,
payload: e.payload,
parentViewBox: e.parentViewBox,
@@ -83629,10 +83629,10 @@ function C4e(e) {
fill: e.fill
});
});
- return /*#__PURE__*/ b.createElement(O4, { value: t ? r : void 0 }, n);
+ return /*#__PURE__*/ b.createElement(k4, { value: t ? r : void 0 }, n);
}
-function w4e(e) {
- var t = e.shape, n = e.activeBar, r = e.baseProps, i = e.entry, a = e.index, o = e.dataKey, s = J(Z2), c = J(QWe), l = n && String(i.originalDataIndex) === s && (c == null || o === c), u = s != null && (String(i.originalDataIndex) !== s || c != null && o !== c), d = l4e((0, b.useState)(!1), 2), f = d[0], p = d[1], m = l4e((0, b.useState)(!1), 2), h = m[0], g = m[1];
+function C4e(e) {
+ var t = e.shape, n = e.activeBar, r = e.baseProps, i = e.entry, a = e.index, o = e.dataKey, s = J(Q2), c = J(ZWe), l = n && String(i.originalDataIndex) === s && (c == null || o === c), u = s != null && (String(i.originalDataIndex) !== s || c != null && o !== c), d = c4e((0, b.useState)(!1), 2), f = d[0], p = d[1], m = c4e((0, b.useState)(!1), 2), h = m[0], g = m[1];
(0, b.useEffect)(() => {
var e;
return l ? (p(!0), e = requestAnimationFrame(() => {
@@ -83643,7 +83643,7 @@ function w4e(e) {
}, [l, u]);
var _ = (0, b.useCallback)(() => {
l || p(!1);
- }, [l]), v = l && h, y = l || f, x = l ? n === !0 ? t : n : t, S = /*#__PURE__*/ b.createElement(v6, x6({}, r, { name: String(r.name) }, i, {
+ }, [l]), v = l && h, y = l || f, x = l ? n === !0 ? t : n : t, S = /*#__PURE__*/ b.createElement(y6, S6({}, r, { name: String(r.name) }, i, {
isActive: v,
option: x,
index: a,
@@ -83653,11 +83653,11 @@ function w4e(e) {
isEntrance: e.isEntrance,
onTransitionEnd: _
}));
- return y ? /*#__PURE__*/ b.createElement(o4, { zIndex: iQ.activeBar }, /*#__PURE__*/ b.createElement(i4e, { index: i.originalDataIndex }, S)) : S;
+ return y ? /*#__PURE__*/ b.createElement(s4, { zIndex: rQ.activeBar }, /*#__PURE__*/ b.createElement(r4e, { index: i.originalDataIndex }, S)) : S;
}
-function T4e(e) {
+function w4e(e) {
var t = e.shape, n = e.baseProps, r = e.entry, i = e.index, a = e.dataKey;
- return /*#__PURE__*/ b.createElement(v6, x6({}, n, { name: String(n.name) }, r, {
+ return /*#__PURE__*/ b.createElement(y6, S6({}, n, { name: String(n.name) }, r, {
isActive: !1,
option: t,
index: i,
@@ -83667,17 +83667,17 @@ function T4e(e) {
isEntrance: e.isEntrance
}));
}
-function E4e(e) {
- var t = e.data, n = e.props, r = e.animationElapsedTime, i = e.isAnimating, a = e.isEntrance, o = pW(n) ?? {}, s = o.id, c = C6(o, s4e), l = n.shape, u = n.dataKey, d = n.activeBar, f = n.onMouseEnter, p = n.onClick, m = n.onMouseLeave, h = C6(n, c4e), g = n3(f, u, s), _ = r3(m), v = i3(p, u, s);
- return t ? /*#__PURE__*/ b.createElement(b.Fragment, null, t.map((e, t) => /*#__PURE__*/ b.createElement(i4e, x6({
+function T4e(e) {
+ var t = e.data, n = e.props, r = e.animationElapsedTime, i = e.isAnimating, a = e.isEntrance, o = fW(n) ?? {}, s = o.id, c = w6(o, o4e), l = n.shape, u = n.dataKey, d = n.activeBar, f = n.onMouseEnter, p = n.onClick, m = n.onMouseLeave, h = w6(n, s4e), g = r3(f, u, s), _ = i3(m), v = a3(p, u, s);
+ return t ? /*#__PURE__*/ b.createElement(b.Fragment, null, t.map((e, t) => /*#__PURE__*/ b.createElement(r4e, S6({
index: e.originalDataIndex,
key: `rectangle-${e?.x}-${e?.y}-${e?.value}-${t}`,
className: "recharts-bar-rectangle"
- }, qG(h, e, t), {
+ }, KG(h, e, t), {
onMouseEnter: g(e, e.originalDataIndex),
onMouseLeave: _(e, e.originalDataIndex),
onClick: v(e, e.originalDataIndex)
- }), d ? /*#__PURE__*/ b.createElement(w4e, {
+ }), d ? /*#__PURE__*/ b.createElement(C4e, {
shape: l,
activeBar: d,
baseProps: c,
@@ -83687,7 +83687,7 @@ function E4e(e) {
animationElapsedTime: r,
isAnimating: i,
isEntrance: a
- }) : /*#__PURE__*/ b.createElement(T4e, {
+ }) : /*#__PURE__*/ b.createElement(w4e, {
shape: l,
baseProps: c,
entry: e,
@@ -83698,32 +83698,32 @@ function E4e(e) {
isEntrance: a
})))) : null;
}
-var D4e = (e, t, n) => e == null ? [] : t === 1 ? e.flatMap((e) => e.status === "removed" ? [] : [e.next]) : e.flatMap((e) => {
- if (e.status === "removed") return n === "horizontal" ? [S6(S6({}, e.prev), {}, {
- height: LW(e.prev.height, 0, t),
- y: LW(e.prev.y, e.prev.y + e.prev.height, t)
- })] : [S6(S6({}, e.prev), {}, { width: LW(e.prev.width, 0, t) })];
- if (e.status === "matched") return [S6(S6({}, e.next), {}, {
- x: LW(e.prev.x, e.next.x, t),
- y: LW(e.prev.y, e.next.y, t),
- width: LW(e.prev.width, e.next.width, t),
- height: LW(e.prev.height, e.next.height, t)
+var E4e = (e, t, n) => e == null ? [] : t === 1 ? e.flatMap((e) => e.status === "removed" ? [] : [e.next]) : e.flatMap((e) => {
+ if (e.status === "removed") return n === "horizontal" ? [C6(C6({}, e.prev), {}, {
+ height: IW(e.prev.height, 0, t),
+ y: IW(e.prev.y, e.prev.y + e.prev.height, t)
+ })] : [C6(C6({}, e.prev), {}, { width: IW(e.prev.width, 0, t) })];
+ if (e.status === "matched") return [C6(C6({}, e.next), {}, {
+ x: IW(e.prev.x, e.next.x, t),
+ y: IW(e.prev.y, e.next.y, t),
+ width: IW(e.prev.width, e.next.width, t),
+ height: IW(e.prev.height, e.next.height, t)
})];
var r = e.next;
- return n === "horizontal" ? [S6(S6({}, r), {}, {
- height: LW(0, r.height, t),
- y: LW(r.stackedBarStart, r.y, t)
- })] : [S6(S6({}, r), {}, {
- width: LW(0, r.width, t),
- x: LW(r.stackedBarStart, r.x, t)
+ return n === "horizontal" ? [C6(C6({}, r), {}, {
+ height: IW(0, r.height, t),
+ y: IW(r.stackedBarStart, r.y, t)
+ })] : [C6(C6({}, r), {}, {
+ width: IW(0, r.width, t),
+ x: IW(r.stackedBarStart, r.x, t)
})];
});
-function O4e(e) {
- var t = e.props, n = e.previousRectanglesRef, r = t.data, i = t.isAnimationActive, a = t.animationBegin, o = t.animationDuration, s = t.animationEasing, c = t.animationInterpolateFn, l = t.layout, u = d3(t.onAnimationStart, t.onAnimationEnd), d = u.isAnimating, f = u.handleAnimationStart, p = u.handleAnimationEnd;
- return /*#__PURE__*/ b.createElement(C4e, {
+function D4e(e) {
+ var t = e.props, n = e.previousRectanglesRef, r = t.data, i = t.isAnimationActive, a = t.animationBegin, o = t.animationDuration, s = t.animationEasing, c = t.animationInterpolateFn, l = t.layout, u = f3(t.onAnimationStart, t.onAnimationEnd), d = u.isAnimating, f = u.handleAnimationStart, p = u.handleAnimationEnd;
+ return /*#__PURE__*/ b.createElement(S4e, {
showLabels: !d,
rects: r
- }, /*#__PURE__*/ b.createElement(f3, {
+ }, /*#__PURE__*/ b.createElement(p3, {
animationInput: r,
animationIdPrefix: "recharts-bar-",
items: r,
@@ -83737,80 +83737,80 @@ function O4e(e) {
animationInterpolateFn: c,
animationMatchBy: t.animationMatchBy,
layout: l
- }, (e, n, r) => /*#__PURE__*/ b.createElement(yW, null, /*#__PURE__*/ b.createElement(E4e, {
+ }, (e, n, r) => /*#__PURE__*/ b.createElement(vW, null, /*#__PURE__*/ b.createElement(T4e, {
props: t,
data: e,
animationElapsedTime: n,
isAnimating: d || n < 1,
isEntrance: r
- }))), /*#__PURE__*/ b.createElement(A4, { label: t.label }), t.children);
+ }))), /*#__PURE__*/ b.createElement(j4, { label: t.label }), t.children);
}
-function k4e(e) {
+function O4e(e) {
var t = (0, b.useRef)(null);
- return /*#__PURE__*/ b.createElement(O4e, {
+ return /*#__PURE__*/ b.createElement(D4e, {
previousRectanglesRef: t,
props: e
});
}
-var A4e = 0, j4e = (e, t) => {
+var k4e = 0, A4e = (e, t) => {
var n = Array.isArray(e.value) ? e.value[1] : e.value;
return {
x: e.x,
y: e.y,
value: n,
- errorVal: fY(e, t)
+ errorVal: dY(e, t)
};
-}, M4e = class extends b.PureComponent {
+}, j4e = class extends b.PureComponent {
render() {
var e = this.props, t = e.hide, n = e.data, r = e.dataKey, i = e.className, a = e.xAxisId, o = e.yAxisId, s = e.needClip, c = e.background, l = e.id;
if (t || n == null) return null;
- var u = dv("recharts-bar", i), d = l;
- return /*#__PURE__*/ b.createElement(yW, {
+ var u = fv("recharts-bar", i), d = l;
+ return /*#__PURE__*/ b.createElement(vW, {
className: u,
id: l
- }, s && /*#__PURE__*/ b.createElement("defs", null, /*#__PURE__*/ b.createElement(a6, {
+ }, s && /*#__PURE__*/ b.createElement("defs", null, /*#__PURE__*/ b.createElement(o6, {
clipPathId: d,
xAxisId: a,
yAxisId: o
- })), /*#__PURE__*/ b.createElement(yW, {
+ })), /*#__PURE__*/ b.createElement(vW, {
className: "recharts-bar-rectangles",
clipPath: s ? `url(#clipPath-${d})` : void 0
- }, /*#__PURE__*/ b.createElement(S4e, {
+ }, /*#__PURE__*/ b.createElement(x4e, {
data: n,
dataKey: r,
background: c,
allOtherBarProps: this.props
- }), /*#__PURE__*/ b.createElement(k4e, this.props)));
+ }), /*#__PURE__*/ b.createElement(O4e, this.props)));
}
-}, N4e = {
+}, M4e = {
activeBar: !1,
animationBegin: 0,
animationDuration: 400,
animationEasing: "ease",
- animationInterpolateFn: D4e,
- animationMatchBy: gXe,
+ animationInterpolateFn: E4e,
+ animationMatchBy: hXe,
background: !1,
hide: !1,
isAnimationActive: "auto",
label: !1,
legendType: "rect",
- minPointSize: A4e,
- shape: _6,
+ minPointSize: k4e,
+ shape: v6,
xAxisId: 0,
yAxisId: 0,
- zIndex: iQ.bar
+ zIndex: rQ.bar
};
-function P4e(e) {
- var t = e.xAxisId, n = e.yAxisId, r = e.hide, i = e.legendType, a = e.minPointSize, o = e.activeBar, s = e.animationBegin, c = e.animationDuration, l = e.animationEasing, u = e.isAnimationActive, d = i6(t, n).needClip, f = tX(), p = IY(), m = QYe(e.children, m4), h = J((t) => X2e(t, e.id, p, m));
+function N4e(e) {
+ var t = e.xAxisId, n = e.yAxisId, r = e.hide, i = e.legendType, a = e.minPointSize, o = e.activeBar, s = e.animationBegin, c = e.animationDuration, l = e.animationEasing, u = e.isAnimationActive, d = a6(t, n).needClip, f = eX(), p = FY(), m = ZYe(e.children, h4), h = J((t) => Y2e(t, e.id, p, m));
if (f !== "vertical" && f !== "horizontal") return null;
var g, _ = h?.[0];
- return g = _ == null || _.height == null || _.width == null ? 0 : f === "vertical" ? _.height / 2 : _.width / 2, /*#__PURE__*/ b.createElement(_0e, {
+ return g = _ == null || _.height == null || _.width == null ? 0 : f === "vertical" ? _.height / 2 : _.width / 2, /*#__PURE__*/ b.createElement(g0e, {
xAxisId: t,
yAxisId: n,
data: h,
- dataPointFormatter: j4e,
+ dataPointFormatter: A4e,
errorBarOffset: g
- }, /*#__PURE__*/ b.createElement(M4e, x6({}, e, {
+ }, /*#__PURE__*/ b.createElement(j4e, S6({}, e, {
layout: f,
needClip: d,
data: h,
@@ -83826,20 +83826,20 @@ function P4e(e) {
isAnimationActive: u
})));
}
-function F4e(e) {
- var t = e.layout, n = e.barSettings, r = n.dataKey, i = n.minPointSize, a = n.hasCustomShape, o = e.pos, s = e.bandSize, c = e.xAxis, l = e.yAxis, u = e.xAxisTicks, d = e.yAxisTicks, f = e.stackedData, p = e.displayedData, m = e.offset, h = e.cells, g = e.parentViewBox, _ = e.dataStartIndex, v = t === "horizontal" ? l : c, y = f ? v.scale.domain() : null, b = bY({ numericAxis: v }), x = v.scale.map(b);
+function P4e(e) {
+ var t = e.layout, n = e.barSettings, r = n.dataKey, i = n.minPointSize, a = n.hasCustomShape, o = e.pos, s = e.bandSize, c = e.xAxis, l = e.yAxis, u = e.xAxisTicks, d = e.yAxisTicks, f = e.stackedData, p = e.displayedData, m = e.offset, h = e.cells, g = e.parentViewBox, _ = e.dataStartIndex, v = t === "horizontal" ? l : c, y = f ? v.scale.domain() : null, b = yY({ numericAxis: v }), x = v.scale.map(b);
return p.map((e, n) => {
var p, v, S, C, w, T;
if (f) {
var E = f[n + _];
if (E == null) return null;
- p = gY(E, y);
- } else p = fY(e, r), Array.isArray(p) || (p = [b, p]);
- var D = V2e(i, A4e)(p[1], n);
+ p = hY(E, y);
+ } else p = dY(e, r), Array.isArray(p) || (p = [b, p]);
+ var D = B2e(i, k4e)(p[1], n);
if (t === "horizontal") {
var O = l.scale.map(p[0]), k = l.scale.map(p[1]);
if (O == null || k == null) return null;
- v = yY({
+ v = vY({
axis: c,
ticks: u,
bandSize: s,
@@ -83848,19 +83848,19 @@ function F4e(e) {
index: n
}), S = k ?? O ?? void 0, C = o.size;
var A = O - k;
- if (w = AW(A) ? 0 : A, T = {
+ if (w = kW(A) ? 0 : A, T = {
x: v,
y: m.top,
width: C,
height: m.height
}, Math.abs(D) > 0 && Math.abs(w) < Math.abs(D)) {
- var j = kW(w || D) * (Math.abs(D) - Math.abs(w));
+ var j = OW(w || D) * (Math.abs(D) - Math.abs(w));
S -= j, w += j;
}
} else {
var M = c.scale.map(p[0]), N = c.scale.map(p[1]);
if (M == null || N == null) return null;
- if (v = M, S = yY({
+ if (v = M, S = vY({
axis: l,
ticks: d,
bandSize: s,
@@ -83873,11 +83873,11 @@ function F4e(e) {
width: m.width,
height: w
}, Math.abs(D) > 0 && Math.abs(C) < Math.abs(D)) {
- var ee = kW(C || D) * (Math.abs(D) - Math.abs(C));
+ var ee = OW(C || D) * (Math.abs(D) - Math.abs(C));
C += ee;
}
}
- return v == null || S == null || C == null || w == null || !a && (C === 0 || w === 0) ? null : S6(S6({}, e), {}, {
+ return v == null || S == null || C == null || w == null || !a && (C === 0 || w === 0) ? null : C6(C6({}, e), {}, {
stackedBarStart: x,
x: v,
y: S,
@@ -83895,12 +83895,12 @@ function F4e(e) {
}, h && h[n] && h[n].props);
}).filter(Boolean);
}
-function I4e(e) {
- var t = YG(e, N4e), n = t4e(t.stackId), r = IY();
- return /*#__PURE__*/ b.createElement(p3, {
+function F4e(e) {
+ var t = JG(e, M4e), n = e4e(t.stackId), r = FY();
+ return /*#__PURE__*/ b.createElement(m3, {
id: t.id,
type: "bar"
- }, (e) => /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(o3, { legendPayload: b4e(t) }), /*#__PURE__*/ b.createElement(x4e, {
+ }, (e) => /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(s3, { legendPayload: y4e(t) }), /*#__PURE__*/ b.createElement(b4e, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -83911,7 +83911,7 @@ function I4e(e) {
formatter: t.formatter,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ b.createElement(h3, {
+ }), /*#__PURE__*/ b.createElement(g3, {
type: "bar",
id: e,
data: void 0,
@@ -83925,24 +83925,24 @@ function I4e(e) {
minPointSize: t.minPointSize,
maxBarSize: t.maxBarSize,
isPanorama: r,
- hasCustomShape: t.shape != null && t.shape !== _6
- }), /*#__PURE__*/ b.createElement(o4, { zIndex: t.zIndex }, /*#__PURE__*/ b.createElement(P4e, x6({}, t, { id: e })))));
+ hasCustomShape: t.shape != null && t.shape !== v6
+ }), /*#__PURE__*/ b.createElement(s4, { zIndex: t.zIndex }, /*#__PURE__*/ b.createElement(N4e, S6({}, t, { id: e })))));
}
-var w6 = /*#__PURE__*/ b.memo(I4e, mX);
-w6.displayName = "Bar";
+var T6 = /*#__PURE__*/ b.memo(F4e, pX);
+T6.displayName = "Bar";
//#endregion
//#region node_modules/recharts/es6/util/axisPropsAreEqual.js
-var L4e = ["domain", "range"], R4e = ["domain", "range"];
-function z4e(e, t) {
+var I4e = ["domain", "range"], L4e = ["domain", "range"];
+function R4e(e, t) {
if (e == null) return {};
- var n, r, i = B4e(e, t);
+ var n, r, i = z4e(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function B4e(e, t) {
+function z4e(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -83951,31 +83951,31 @@ function B4e(e, t) {
}
return n;
}
-function V4e(e, t) {
+function B4e(e, t) {
return e === t ? !0 : Array.isArray(e) && e.length === 2 && Array.isArray(t) && t.length === 2 ? e[0] === t[0] && e[1] === t[1] : !1;
}
-function H4e(e, t) {
+function V4e(e, t) {
if (e === t) return !0;
- var n = e.domain, r = e.range, i = z4e(e, L4e), a = t.domain, o = t.range, s = z4e(t, R4e);
- return !V4e(n, a) || !V4e(r, o) ? !1 : mX(i, s);
+ var n = e.domain, r = e.range, i = R4e(e, I4e), a = t.domain, o = t.range, s = R4e(t, L4e);
+ return !B4e(n, a) || !B4e(r, o) ? !1 : pX(i, s);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/XAxis.js
-var U4e = ["type"], W4e = [
+var H4e = ["type"], U4e = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], G4e = ["id", "scale"];
-function T6() {
- return T6 = Object.assign ? Object.assign.bind() : function(e) {
+], W4e = ["id", "scale"];
+function E6() {
+ return E6 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, T6.apply(null, arguments);
+ }, E6.apply(null, arguments);
}
-function K4e(e, t) {
+function G4e(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -83985,30 +83985,30 @@ function K4e(e, t) {
}
return n;
}
-function q4e(e) {
+function K4e(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? K4e(Object(n), !0).forEach(function(t) {
- J4e(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : K4e(Object(n)).forEach(function(t) {
+ t % 2 ? G4e(Object(n), !0).forEach(function(t) {
+ q4e(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : G4e(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function J4e(e, t, n) {
- return (t = Y4e(t)) in e ? Object.defineProperty(e, t, {
+function q4e(e, t, n) {
+ return (t = J4e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Y4e(e) {
- var t = X4e(e, "string");
+function J4e(e) {
+ var t = Y4e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function X4e(e, t) {
+function Y4e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -84018,16 +84018,16 @@ function X4e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function E6(e, t) {
+function D6(e, t) {
if (e == null) return {};
- var n, r, i = Z4e(e, t);
+ var n, r, i = X4e(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Z4e(e, t) {
+function X4e(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -84036,27 +84036,27 @@ function Z4e(e, t) {
}
return n;
}
-function Q4e(e) {
- var t = HK(), n = (0, b.useRef)(null), r = nX(), i = e.type, a = E6(e, U4e), o = cQ(r, "xAxis", i), s = (0, b.useMemo)(() => {
- if (o != null) return q4e(q4e({}, a), {}, { type: o });
+function Z4e(e) {
+ var t = VK(), n = (0, b.useRef)(null), r = tX(), i = e.type, a = D6(e, H4e), o = sQ(r, "xAxis", i), s = (0, b.useMemo)(() => {
+ if (o != null) return K4e(K4e({}, a), {}, { type: o });
}, [a, o]);
return (0, b.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(sZe(s)) : n.current !== s && t(cZe({
+ s != null && (n.current === null ? t(oZe(s)) : n.current !== s && t(sZe({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, b.useLayoutEffect)(() => () => {
- n.current &&= (t(lZe(n.current)), null);
+ n.current &&= (t(cZe(n.current)), null);
}, [t]), null;
}
-var $4e = (e) => {
- var t = e.xAxisId, n = e.className, r = e.height, i = e.label, a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = J(FY), c = IY(), l = HK(), u = "xAxis", d = J((e) => WUe(e, u, t, c)), f = J((e) => MUe(e, t)), p = J((e) => LUe(e, t)), m = J((e) => AHe(e, t));
+var Q4e = (e) => {
+ var t = e.xAxisId, n = e.className, r = e.height, i = e.label, a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = J(PY), c = FY(), l = VK(), u = "xAxis", d = J((e) => UUe(e, u, t, c)), f = J((e) => jUe(e, t)), p = J((e) => IUe(e, t)), m = J((e) => kHe(e, t));
if ((0, b.useLayoutEffect)(() => {
- if (!(r !== "auto" || !f || w4(i) || /*#__PURE__*/ (0, b.isValidElement)(i) || m == null)) {
+ if (!(r !== "auto" || !f || T4(i) || /*#__PURE__*/ (0, b.isValidElement)(i) || m == null)) {
var e = a.current;
if (e) {
var n = e.getCalculatedHeight();
- Math.round(f.height) !== Math.round(n) && l(mZe({
+ Math.round(f.height) !== Math.round(n) && l(pZe({
id: t,
height: n
}));
@@ -84072,49 +84072,49 @@ var $4e = (e) => {
m
]), f == null || p == null || m == null) return null;
e.dangerouslySetInnerHTML, e.ticks, e.scale;
- var h = E6(e, W4e);
+ var h = D6(e, U4e);
m.id, m.scale;
- var g = E6(m, G4e);
- return /*#__PURE__*/ b.createElement(Q3, T6({}, h, g, {
+ var g = D6(m, W4e);
+ return /*#__PURE__*/ b.createElement($3, E6({}, h, g, {
ref: a,
labelRef: o,
x: p.x,
y: p.y,
width: f.width,
height: f.height,
- className: dv(`recharts-${u} ${u}`, n),
+ className: fv(`recharts-${u} ${u}`, n),
viewBox: s,
ticks: d,
axisType: u,
axisId: t
}));
-}, e3e = {
- allowDataOverflow: U0.allowDataOverflow,
- allowDecimals: U0.allowDecimals,
- allowDuplicatedCategory: U0.allowDuplicatedCategory,
- angle: U0.angle,
- axisLine: Z3.axisLine,
- height: U0.height,
+}, $4e = {
+ allowDataOverflow: W0.allowDataOverflow,
+ allowDecimals: W0.allowDecimals,
+ allowDuplicatedCategory: W0.allowDuplicatedCategory,
+ angle: W0.angle,
+ axisLine: Q3.axisLine,
+ height: W0.height,
hide: !1,
- includeHidden: U0.includeHidden,
- interval: U0.interval,
+ includeHidden: W0.includeHidden,
+ interval: W0.interval,
label: !1,
- minTickGap: U0.minTickGap,
- mirror: U0.mirror,
- orientation: U0.orientation,
- padding: U0.padding,
- reversed: U0.reversed,
- scale: U0.scale,
- tick: U0.tick,
- tickCount: U0.tickCount,
- tickLine: Z3.tickLine,
- tickSize: Z3.tickSize,
- type: U0.type,
- niceTicks: U0.niceTicks,
+ minTickGap: W0.minTickGap,
+ mirror: W0.mirror,
+ orientation: W0.orientation,
+ padding: W0.padding,
+ reversed: W0.reversed,
+ scale: W0.scale,
+ tick: W0.tick,
+ tickCount: W0.tickCount,
+ tickLine: Q3.tickLine,
+ tickSize: Q3.tickSize,
+ type: W0.type,
+ niceTicks: W0.niceTicks,
xAxisId: 0
-}, t3e = /*#__PURE__*/ b.memo((e) => {
- var t = YG(e, e3e);
- return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(Q4e, {
+}, e3e = /*#__PURE__*/ b.memo((e) => {
+ var t = JG(e, $4e);
+ return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(Z4e, {
allowDataOverflow: t.allowDataOverflow,
allowDecimals: t.allowDecimals,
allowDuplicatedCategory: t.allowDuplicatedCategory,
@@ -84140,26 +84140,26 @@ var $4e = (e) => {
type: t.type,
unit: t.unit,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ b.createElement($4e, t));
-}, H4e);
-t3e.displayName = "XAxis";
+ }), /*#__PURE__*/ b.createElement(Q4e, t));
+}, V4e);
+e3e.displayName = "XAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/YAxis.js
-var n3e = ["type"], r3e = [
+var t3e = ["type"], n3e = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], i3e = ["id", "scale"];
-function D6() {
- return D6 = Object.assign ? Object.assign.bind() : function(e) {
+], r3e = ["id", "scale"];
+function O6() {
+ return O6 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, D6.apply(null, arguments);
+ }, O6.apply(null, arguments);
}
-function a3e(e, t) {
+function i3e(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -84169,30 +84169,30 @@ function a3e(e, t) {
}
return n;
}
-function o3e(e) {
+function a3e(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? a3e(Object(n), !0).forEach(function(t) {
- s3e(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : a3e(Object(n)).forEach(function(t) {
+ t % 2 ? i3e(Object(n), !0).forEach(function(t) {
+ o3e(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : i3e(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function s3e(e, t, n) {
- return (t = c3e(t)) in e ? Object.defineProperty(e, t, {
+function o3e(e, t, n) {
+ return (t = s3e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function c3e(e) {
- var t = l3e(e, "string");
+function s3e(e) {
+ var t = c3e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function l3e(e, t) {
+function c3e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -84202,16 +84202,16 @@ function l3e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function O6(e, t) {
+function k6(e, t) {
if (e == null) return {};
- var n, r, i = u3e(e, t);
+ var n, r, i = l3e(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function u3e(e, t) {
+function l3e(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -84220,27 +84220,27 @@ function u3e(e, t) {
}
return n;
}
-function d3e(e) {
- var t = HK(), n = (0, b.useRef)(null), r = nX(), i = e.type, a = O6(e, n3e), o = cQ(r, "yAxis", i), s = (0, b.useMemo)(() => {
- if (o != null) return o3e(o3e({}, a), {}, { type: o });
+function u3e(e) {
+ var t = VK(), n = (0, b.useRef)(null), r = tX(), i = e.type, a = k6(e, t3e), o = sQ(r, "yAxis", i), s = (0, b.useMemo)(() => {
+ if (o != null) return a3e(a3e({}, a), {}, { type: o });
}, [o, a]);
return (0, b.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(uZe(s)) : n.current !== s && t(dZe({
+ s != null && (n.current === null ? t(lZe(s)) : n.current !== s && t(uZe({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, b.useLayoutEffect)(() => () => {
- n.current &&= (t(fZe(n.current)), null);
+ n.current &&= (t(dZe(n.current)), null);
}, [t]), null;
}
-function f3e(e) {
- var t = e.yAxisId, n = e.className, r = e.width, i = e.label, a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = J(FY), c = IY(), l = HK(), u = "yAxis", d = J((e) => zUe(e, t)), f = J((e) => RUe(e, t)), p = J((e) => WUe(e, u, t, c)), m = J((e) => jHe(e, t));
+function d3e(e) {
+ var t = e.yAxisId, n = e.className, r = e.width, i = e.label, a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = J(PY), c = FY(), l = VK(), u = "yAxis", d = J((e) => RUe(e, t)), f = J((e) => LUe(e, t)), p = J((e) => UUe(e, u, t, c)), m = J((e) => AHe(e, t));
if ((0, b.useLayoutEffect)(() => {
- if (!(r !== "auto" || !d || w4(i) || /*#__PURE__*/ (0, b.isValidElement)(i) || m == null)) {
+ if (!(r !== "auto" || !d || T4(i) || /*#__PURE__*/ (0, b.isValidElement)(i) || m == null)) {
var e = a.current;
if (e) {
var n = e.getCalculatedWidth();
- Math.round(d.width) !== Math.round(n) && l(pZe({
+ Math.round(d.width) !== Math.round(n) && l(fZe({
id: t,
width: n
}));
@@ -84256,10 +84256,10 @@ function f3e(e) {
m
]), d == null || f == null || m == null) return null;
e.dangerouslySetInnerHTML, e.ticks, e.scale;
- var h = O6(e, r3e);
+ var h = k6(e, n3e);
m.id, m.scale;
- var g = O6(m, i3e);
- return /*#__PURE__*/ b.createElement(Q3, D6({}, h, g, {
+ var g = k6(m, r3e);
+ return /*#__PURE__*/ b.createElement($3, O6({}, h, g, {
ref: a,
labelRef: o,
x: f.x,
@@ -84267,40 +84267,40 @@ function f3e(e) {
tickTextProps: r === "auto" ? { width: void 0 } : { width: r },
width: d.width,
height: d.height,
- className: dv(`recharts-${u} ${u}`, n),
+ className: fv(`recharts-${u} ${u}`, n),
viewBox: s,
ticks: p,
axisType: u,
axisId: t
}));
}
-var p3e = {
- allowDataOverflow: G0.allowDataOverflow,
- allowDecimals: G0.allowDecimals,
- allowDuplicatedCategory: G0.allowDuplicatedCategory,
- angle: G0.angle,
- axisLine: Z3.axisLine,
+var f3e = {
+ allowDataOverflow: K0.allowDataOverflow,
+ allowDecimals: K0.allowDecimals,
+ allowDuplicatedCategory: K0.allowDuplicatedCategory,
+ angle: K0.angle,
+ axisLine: Q3.axisLine,
hide: !1,
- includeHidden: G0.includeHidden,
- interval: G0.interval,
+ includeHidden: K0.includeHidden,
+ interval: K0.interval,
label: !1,
- minTickGap: G0.minTickGap,
- mirror: G0.mirror,
- orientation: G0.orientation,
- padding: G0.padding,
- reversed: G0.reversed,
- scale: G0.scale,
- tick: G0.tick,
- tickCount: G0.tickCount,
- tickLine: Z3.tickLine,
- tickSize: Z3.tickSize,
- type: G0.type,
- niceTicks: G0.niceTicks,
- width: G0.width,
+ minTickGap: K0.minTickGap,
+ mirror: K0.mirror,
+ orientation: K0.orientation,
+ padding: K0.padding,
+ reversed: K0.reversed,
+ scale: K0.scale,
+ tick: K0.tick,
+ tickCount: K0.tickCount,
+ tickLine: Q3.tickLine,
+ tickSize: Q3.tickSize,
+ type: K0.type,
+ niceTicks: K0.niceTicks,
+ width: K0.width,
yAxisId: 0
-}, m3e = /*#__PURE__*/ b.memo((e) => {
- var t = YG(e, p3e);
- return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(d3e, {
+}, p3e = /*#__PURE__*/ b.memo((e) => {
+ var t = JG(e, f3e);
+ return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(u3e, {
interval: t.interval,
id: t.yAxisId,
scale: t.scale,
@@ -84326,27 +84326,27 @@ var p3e = {
tick: t.tick,
tickFormatter: t.tickFormatter,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ b.createElement(f3e, t));
-}, H4e);
-m3e.displayName = "YAxis";
-var k6 = Y([
+ }), /*#__PURE__*/ b.createElement(d3e, t));
+}, V4e);
+p3e.displayName = "YAxis";
+var A6 = Y([
(e, t) => t,
- eX,
- xQ,
- kQ,
- JWe,
- q2,
- xGe,
- NY
-], AGe);
+ $Y,
+ bQ,
+ OQ,
+ qWe,
+ J2,
+ bGe,
+ MY
+], kGe);
//#endregion
//#region node_modules/recharts/es6/util/getRelativeCoordinate.js
-function h3e(e) {
+function m3e(e) {
return "getBBox" in e.currentTarget && typeof e.currentTarget.getBBox == "function";
}
-function A6(e) {
+function j6(e) {
var t = e.currentTarget.getBoundingClientRect(), n, r;
- if (h3e(e)) {
+ if (m3e(e)) {
var i = e.currentTarget.getBBox();
n = i.width > 0 ? t.width / i.width : 1, r = i.height > 0 ? t.height / i.height : 1;
} else {
@@ -84361,50 +84361,50 @@ function A6(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/mouseEventsMiddleware.js
-var g3e = CJ("mouseClick"), _3e = rY();
-_3e.startListening({
- actionCreator: g3e,
+var h3e = SJ("mouseClick"), g3e = nY();
+g3e.startListening({
+ actionCreator: h3e,
effect: (e, t) => {
- var n = e.payload, r = k6(t.getState(), A6(n));
- r?.activeIndex != null && t.dispatch(lWe({
+ var n = e.payload, r = A6(t.getState(), j6(n));
+ r?.activeIndex != null && t.dispatch(cWe({
activeIndex: r.activeIndex,
activeDataKey: void 0,
activeCoordinate: r.activeCoordinate
}));
}
});
-var j6 = CJ("mouseMove"), v3e = rY(), M6 = null, N6 = null, P6 = null;
-v3e.startListening({
- actionCreator: j6,
+var M6 = SJ("mouseMove"), _3e = nY(), N6 = null, P6 = null, F6 = null;
+_3e.startListening({
+ actionCreator: M6,
effect: (e, t) => {
var n = e.payload, r = t.getState().eventSettings, i = r.throttleDelay, a = r.throttledEvents, o = a === "all" || a?.includes("mousemove");
- M6 !== null && (cancelAnimationFrame(M6), M6 = null), N6 !== null && (typeof i != "number" || !o) && (clearTimeout(N6), N6 = null), P6 = A6(n);
+ N6 !== null && (cancelAnimationFrame(N6), N6 = null), P6 !== null && (typeof i != "number" || !o) && (clearTimeout(P6), P6 = null), F6 = j6(n);
var s = () => {
- var e = t.getState(), n = P2(e, e.tooltip.settings.shared);
- if (!P6) M6 = null, N6 = null;
+ var e = t.getState(), n = F2(e, e.tooltip.settings.shared);
+ if (!F6) N6 = null, P6 = null;
else {
if (n === "axis") {
- var r = k6(e, P6);
- r?.activeIndex == null ? t.dispatch(oWe()) : t.dispatch(cWe({
+ var r = A6(e, F6);
+ r?.activeIndex == null ? t.dispatch(aWe()) : t.dispatch(sWe({
activeIndex: r.activeIndex,
activeDataKey: void 0,
activeCoordinate: r.activeCoordinate
}));
}
- M6 = null, N6 = null;
+ N6 = null, P6 = null;
}
};
- o ? i === "raf" ? M6 = requestAnimationFrame(s) : typeof i == "number" && N6 === null && (N6 = setTimeout(s, i)) : s();
+ o ? i === "raf" ? N6 = requestAnimationFrame(s) : typeof i == "number" && P6 === null && (P6 = setTimeout(s, i)) : s();
}
});
//#endregion
//#region node_modules/recharts/es6/state/reduxDevtoolsJsonStringifyReplacer.js
-function y3e(e, t) {
+function v3e(e, t) {
return t instanceof HTMLElement ? `HTMLElement <${t.tagName} class="${t.className}">` : t === window ? "global.window" : e === "children" && typeof t == "object" && t ? "<<CHILDREN>>" : t;
}
//#endregion
//#region node_modules/recharts/es6/state/rootPropsSlice.js
-var b3e = {
+var y3e = {
accessibilityLayer: !0,
barCategoryGap: "10%",
barGap: 4,
@@ -84416,43 +84416,43 @@ var b3e = {
syncMethod: "index",
baseValue: void 0,
reverseStackOrder: !1
-}, x3e = MJ({
+}, b3e = jJ({
name: "rootProps",
- initialState: b3e,
+ initialState: y3e,
reducers: { updateOptions: (e, t) => {
- e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? b3e.barGap, e.barSize = t.payload.barSize, e.maxBarSize = t.payload.maxBarSize, e.stackOffset = t.payload.stackOffset, e.syncId = t.payload.syncId, e.syncMethod = t.payload.syncMethod, e.className = t.payload.className, e.baseValue = t.payload.baseValue, e.reverseStackOrder = t.payload.reverseStackOrder;
+ e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? y3e.barGap, e.barSize = t.payload.barSize, e.maxBarSize = t.payload.maxBarSize, e.stackOffset = t.payload.stackOffset, e.syncId = t.payload.syncId, e.syncMethod = t.payload.syncMethod, e.className = t.payload.className, e.baseValue = t.payload.baseValue, e.reverseStackOrder = t.payload.reverseStackOrder;
} }
-}), S3e = x3e.reducer, C3e = x3e.actions.updateOptions, w3e = MJ({
+}), x3e = b3e.reducer, S3e = b3e.actions.updateOptions, C3e = jJ({
name: "polarOptions",
initialState: null,
reducers: { updatePolarOptions: (e, t) => e === null ? t.payload : (e.startAngle = t.payload.startAngle, e.endAngle = t.payload.endAngle, e.cx = t.payload.cx, e.cy = t.payload.cy, e.innerRadius = t.payload.innerRadius, e.outerRadius = t.payload.outerRadius, e) }
-}), T3e = w3e.actions.updatePolarOptions, E3e = w3e.reducer, D3e = CJ("keyDown"), O3e = CJ("focus"), k3e = CJ("blur"), F6 = rY(), I6 = null, L6 = null, R6 = null;
-F6.startListening({
- actionCreator: D3e,
+}), w3e = C3e.actions.updatePolarOptions, T3e = C3e.reducer, E3e = SJ("keyDown"), D3e = SJ("focus"), O3e = SJ("blur"), I6 = nY(), L6 = null, R6 = null, z6 = null;
+I6.startListening({
+ actionCreator: E3e,
effect: (e, t) => {
- R6 = e.payload, I6 !== null && (cancelAnimationFrame(I6), I6 = null);
+ z6 = e.payload, L6 !== null && (cancelAnimationFrame(L6), L6 = null);
var n = t.getState().eventSettings, r = n.throttleDelay, i = n.throttledEvents, a = i === "all" || i.includes("keydown");
- L6 !== null && (typeof r != "number" || !a) && (clearTimeout(L6), L6 = null);
+ R6 !== null && (typeof r != "number" || !a) && (clearTimeout(R6), R6 = null);
var o = () => {
try {
var e = t.getState();
if (e.rootProps.accessibilityLayer === !1) return;
- var n = e.tooltip.keyboardInteraction, r = R6;
+ var n = e.tooltip.keyboardInteraction, r = z6;
if (r !== "ArrowRight" && r !== "ArrowLeft" && r !== "Enter") return;
- var i = B2(n, W2(e), s2(e), K2(e)), a = i == null ? -1 : Number(i), o = !Number.isFinite(a) || a < 0, s = q2(e), c = W2(e), l = P2(e, e.tooltip.settings.shared);
+ var i = V2(n, G2(e), c2(e), q2(e)), a = i == null ? -1 : Number(i), o = !Number.isFinite(a) || a < 0, s = J2(e), c = G2(e), l = F2(e, e.tooltip.settings.shared);
if (r === "Enter") {
if (o) return;
- var u = r4(e, l, "hover", String(n.index));
- t.dispatch(R2({
+ var u = i4(e, l, "hover", String(n.index));
+ t.dispatch(z2({
active: !n.active,
activeIndex: n.index,
activeCoordinate: u
}));
return;
}
- var d = KUe(e) === "left-to-right" ? 1 : -1, f = r === "ArrowRight" ? 1 : -1, p;
+ var d = GUe(e) === "left-to-right" ? 1 : -1, f = r === "ArrowRight" ? 1 : -1, p;
if (o) {
- var m = s2(e), h = K2(e), g = f * d, _ = (e) => ({
+ var m = c2(e), h = q2(e), g = f * d, _ = (e) => ({
active: !1,
index: String(e),
dataKey: void 0,
@@ -84460,11 +84460,11 @@ F6.startListening({
coordinate: void 0
});
if (p = -1, g > 0) {
- for (var v = 0; v < c.length; v++) if (B2(_(v), c, m, h) != null) {
+ for (var v = 0; v < c.length; v++) if (V2(_(v), c, m, h) != null) {
p = v;
break;
}
- } else for (var y = c.length - 1; y >= 0; y--) if (B2(_(y), c, m, h) != null) {
+ } else for (var y = c.length - 1; y >= 0; y--) if (V2(_(y), c, m, h) != null) {
p = y;
break;
}
@@ -84474,29 +84474,29 @@ F6.startListening({
var b = s?.length || c.length;
if (b === 0 || p >= b || p < 0) return;
}
- var x = r4(e, l, "hover", String(p));
- t.dispatch(R2({
+ var x = i4(e, l, "hover", String(p));
+ t.dispatch(z2({
active: !0,
activeIndex: p.toString(),
activeCoordinate: x
}));
} finally {
- I6 = null, L6 = null;
+ L6 = null, R6 = null;
}
};
- a ? r === "raf" ? I6 = requestAnimationFrame(o) : typeof r == "number" && L6 === null && (o(), R6 = null, L6 = setTimeout(() => {
- R6 ? o() : (L6 = null, I6 = null);
+ a ? r === "raf" ? L6 = requestAnimationFrame(o) : typeof r == "number" && R6 === null && (o(), z6 = null, R6 = setTimeout(() => {
+ z6 ? o() : (R6 = null, L6 = null);
}, r)) : o();
}
-}), F6.startListening({
- actionCreator: O3e,
+}), I6.startListening({
+ actionCreator: D3e,
effect: (e, t) => {
var n = t.getState();
if (n.rootProps.accessibilityLayer !== !1) {
var r = n.tooltip.keyboardInteraction;
if (!r.active && r.index == null) {
- var i = "0", a = r4(n, P2(n, n.tooltip.settings.shared), "hover", String(i));
- t.dispatch(R2({
+ var i = "0", a = i4(n, F2(n, n.tooltip.settings.shared), "hover", String(i));
+ t.dispatch(z2({
active: !0,
activeIndex: i,
activeCoordinate: a
@@ -84504,13 +84504,13 @@ F6.startListening({
}
}
}
-}), F6.startListening({
- actionCreator: k3e,
+}), I6.startListening({
+ actionCreator: O3e,
effect: (e, t) => {
var n = t.getState();
if (n.rootProps.accessibilityLayer !== !1) {
var r = n.tooltip.keyboardInteraction;
- r.active && t.dispatch(R2({
+ r.active && t.dispatch(z2({
active: !1,
activeIndex: r.index,
activeCoordinate: r.coordinate
@@ -84520,7 +84520,7 @@ F6.startListening({
});
//#endregion
//#region node_modules/recharts/es6/util/createEventProxy.js
-function A3e(e) {
+function k3e(e) {
e.persist();
var t = e.currentTarget;
return new Proxy(e, { get: (e, n) => {
@@ -84531,54 +84531,54 @@ function A3e(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/externalEventsMiddleware.js
-var z6 = CJ("externalEvent"), j3e = rY(), B6 = /* @__PURE__ */ new Map(), V6 = /* @__PURE__ */ new Map(), H6 = /* @__PURE__ */ new Map();
-j3e.startListening({
- actionCreator: z6,
+var B6 = SJ("externalEvent"), A3e = nY(), V6 = /* @__PURE__ */ new Map(), H6 = /* @__PURE__ */ new Map(), U6 = /* @__PURE__ */ new Map();
+A3e.startListening({
+ actionCreator: B6,
effect: (e, t) => {
var n = e.payload, r = n.handler, i = n.reactEvent;
if (r != null) {
- var a = i.type, o = A3e(i);
- H6.set(a, {
+ var a = i.type, o = k3e(i);
+ U6.set(a, {
handler: r,
reactEvent: o
});
- var s = B6.get(a);
- s !== void 0 && (cancelAnimationFrame(s), B6.delete(a));
- var c = t.getState().eventSettings, l = c.throttleDelay, u = c.throttledEvents, d = u === "all" || u?.includes(a), f = V6.get(a);
- f !== void 0 && (typeof l != "number" || !d) && (clearTimeout(f), V6.delete(a));
+ var s = V6.get(a);
+ s !== void 0 && (cancelAnimationFrame(s), V6.delete(a));
+ var c = t.getState().eventSettings, l = c.throttleDelay, u = c.throttledEvents, d = u === "all" || u?.includes(a), f = H6.get(a);
+ f !== void 0 && (typeof l != "number" || !d) && (clearTimeout(f), H6.delete(a));
var p = () => {
- var e = H6.get(a);
+ var e = U6.get(a);
try {
if (!e) return;
var n = e.handler, r = e.reactEvent, i = t.getState(), o = {
- activeCoordinate: tGe(i),
- activeDataKey: QWe(i),
- activeIndex: Z2(i),
- activeLabel: ZWe(i),
- activeTooltipIndex: Z2(i),
- isTooltipActive: nGe(i)
+ activeCoordinate: eGe(i),
+ activeDataKey: ZWe(i),
+ activeIndex: Q2(i),
+ activeLabel: XWe(i),
+ activeTooltipIndex: Q2(i),
+ isTooltipActive: tGe(i)
};
n && n(o, r);
} finally {
- B6.delete(a), V6.delete(a), H6.delete(a);
+ V6.delete(a), H6.delete(a), U6.delete(a);
}
};
if (!d) p();
else if (l === "raf") {
var m = requestAnimationFrame(p);
- B6.set(a, m);
+ V6.set(a, m);
} else if (typeof l == "number") {
- if (!V6.has(a)) {
+ if (!H6.has(a)) {
p();
var h = setTimeout(p, l);
- V6.set(a, h);
+ H6.set(a, h);
}
} else p();
}
}
});
-var M3e = Y([
- Y([V2], (e) => e.tooltipItemPayloads),
+var j3e = Y([
+ Y([H2], (e) => e.tooltipItemPayloads),
(e, t) => t,
(e, t, n) => n
], (e, t, n) => {
@@ -84589,61 +84589,61 @@ var M3e = Y([
if (i != null) return i(t);
}
}
-}), N3e = CJ("touchMove"), P3e = rY(), U6 = null, W6 = null, F3e = null, G6 = null;
-P3e.startListening({
- actionCreator: N3e,
+}), M3e = SJ("touchMove"), N3e = nY(), W6 = null, G6 = null, P3e = null, K6 = null;
+N3e.startListening({
+ actionCreator: M3e,
effect: (e, t) => {
var n = e.payload;
if (n.touches != null && n.touches.length !== 0) {
- G6 = A3e(n);
+ K6 = k3e(n);
var r = t.getState().eventSettings, i = r.throttleDelay, a = r.throttledEvents, o = a === "all" || a.includes("touchmove");
- U6 !== null && (cancelAnimationFrame(U6), U6 = null), W6 !== null && (typeof i != "number" || !o) && (clearTimeout(W6), W6 = null), F3e = Array.from(n.touches).map((e) => A6({
+ W6 !== null && (cancelAnimationFrame(W6), W6 = null), G6 !== null && (typeof i != "number" || !o) && (clearTimeout(G6), G6 = null), P3e = Array.from(n.touches).map((e) => j6({
clientX: e.clientX,
clientY: e.clientY,
currentTarget: n.currentTarget
}));
var s = () => {
- if (G6 != null) {
- var e = t.getState(), n = P2(e, e.tooltip.settings.shared);
+ if (K6 != null) {
+ var e = t.getState(), n = F2(e, e.tooltip.settings.shared);
if (n === "axis") {
- var r = F3e?.[0];
+ var r = P3e?.[0];
if (r == null) {
- U6 = null, W6 = null;
+ W6 = null, G6 = null;
return;
}
- var i = k6(e, r);
- i?.activeIndex != null && t.dispatch(cWe({
+ var i = A6(e, r);
+ i?.activeIndex != null && t.dispatch(sWe({
activeIndex: i.activeIndex,
activeDataKey: void 0,
activeCoordinate: i.activeCoordinate
}));
} else if (n === "item") {
- var a = G6.touches[0];
+ var a = K6.touches[0];
if (document.elementFromPoint == null || a == null) return;
var o = document.elementFromPoint(a.clientX, a.clientY);
if (!o || !o.getAttribute) return;
- var s = o.getAttribute(XFe), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = U2(e).find((e) => e.id === c);
+ var s = o.getAttribute(ZFe), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = W2(e).find((e) => e.id === c);
if (s == null || l == null || c == null) return;
- var u = l.dataKey, d = M3e(e, s, c);
- t.dispatch(iWe({
+ var u = l.dataKey, d = j3e(e, s, c);
+ t.dispatch(rWe({
activeDataKey: u,
activeIndex: s,
activeCoordinate: d,
activeGraphicalItemId: c
}));
}
- U6 = null, W6 = null;
+ W6 = null, G6 = null;
}
};
- o ? i === "raf" ? U6 = requestAnimationFrame(s) : typeof i == "number" && W6 === null && (s(), G6 = null, W6 = setTimeout(() => {
- G6 ? s() : (W6 = null, U6 = null);
+ o ? i === "raf" ? W6 = requestAnimationFrame(s) : typeof i == "number" && G6 === null && (s(), K6 = null, G6 = setTimeout(() => {
+ K6 ? s() : (G6 = null, W6 = null);
}, i)) : s();
}
}
});
//#endregion
//#region node_modules/recharts/es6/state/eventSettingsSlice.js
-var K6 = {
+var q6 = {
throttleDelay: "raf",
throttledEvents: [
"mousemove",
@@ -84652,33 +84652,33 @@ var K6 = {
"scroll",
"wheel"
]
-}, I3e = MJ({
+}, F3e = jJ({
name: "eventSettings",
- initialState: K6,
+ initialState: q6,
reducers: { setEventSettings: (e, t) => {
- t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = xJ(t.payload.throttledEvents));
+ t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = bJ(t.payload.throttledEvents));
} }
-}), L3e = I3e.actions.setEventSettings, R3e = I3e.reducer, z3e = uq({
- brush: u$e,
- cartesianAxis: hZe,
- chartData: uKe,
- errorBars: f0e,
- eventSettings: R3e,
- graphicalItems: UXe,
- layout: LFe,
- legend: MIe,
- options: iKe,
- polarAxis: lYe,
- polarOptions: E3e,
- referenceElements: v$e,
- renderedTicks: d1e,
- rootProps: S3e,
- tooltip: uWe,
- zIndex: GGe
-}), B3e = function(e) {
+}), I3e = F3e.actions.setEventSettings, L3e = F3e.reducer, R3e = lq({
+ brush: l$e,
+ cartesianAxis: mZe,
+ chartData: lKe,
+ errorBars: d0e,
+ eventSettings: L3e,
+ graphicalItems: HXe,
+ layout: RFe,
+ legend: NIe,
+ options: rKe,
+ polarAxis: cYe,
+ polarOptions: T3e,
+ referenceElements: _$e,
+ renderedTicks: u1e,
+ rootProps: x3e,
+ tooltip: lWe,
+ zIndex: WGe
+}), z3e = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Chart";
- return lFe({
- reducer: z3e,
+ return uFe({
+ reducer: R3e,
preloadedState: e,
middleware: (e) => e({
serializableCheck: !1,
@@ -84688,40 +84688,40 @@ var K6 = {
"production"
].includes("es6")
}).concat([
+ g3e.middleware,
_3e.middleware,
- v3e.middleware,
- F6.middleware,
- j3e.middleware,
- P3e.middleware
+ I6.middleware,
+ A3e.middleware,
+ N3e.middleware
]),
enhancers: (e) => {
var t = e;
- return typeof e == "function" && (t = e()), t.concat(AJ({ type: "raf" }));
+ return typeof e == "function" && (t = e()), t.concat(kJ({ type: "raf" }));
},
- devTools: DX.devToolsEnabled && {
- serialize: { replacer: y3e },
+ devTools: EX.devToolsEnabled && {
+ serialize: { replacer: v3e },
name: `recharts-${t}`
}
});
};
//#endregion
//#region node_modules/recharts/es6/state/RechartsStoreProvider.js
-function V3e(e) {
- var t = e.preloadedState, n = e.children, r = e.reduxStoreName, i = IY(), a = (0, b.useRef)(null);
+function B3e(e) {
+ var t = e.preloadedState, n = e.children, r = e.reduxStoreName, i = FY(), a = (0, b.useRef)(null);
if (i) return n;
- a.current ??= B3e(t, r);
- var o = VK;
- return /*#__PURE__*/ b.createElement(KIe, {
+ a.current ??= z3e(t, r);
+ var o = BK;
+ return /*#__PURE__*/ b.createElement(qIe, {
context: o,
store: a.current
}, n);
}
//#endregion
//#region node_modules/recharts/es6/state/ReportMainChartProps.js
-function H3e(e) {
- var t = e.layout, n = e.margin, r = HK(), i = IY();
+function V3e(e) {
+ var t = e.layout, n = e.margin, r = VK(), i = FY();
return (0, b.useEffect)(() => {
- i || (r(PFe(t)), r(NFe(n)));
+ i || (r(FFe(t)), r(PFe(n)));
}, [
r,
i,
@@ -84729,31 +84729,31 @@ function H3e(e) {
n
]), null;
}
-var U3e = /*#__PURE__*/ (0, b.memo)(H3e, mX);
+var H3e = /*#__PURE__*/ (0, b.memo)(V3e, pX);
//#endregion
//#region node_modules/recharts/es6/state/ReportChartProps.js
-function W3e(e) {
- var t = HK();
+function U3e(e) {
+ var t = VK();
return (0, b.useEffect)(() => {
- t(C3e(e));
+ t(S3e(e));
}, [t, e]), null;
}
-var G3e = /*#__PURE__*/ (0, b.memo)((e) => {
- var t = HK();
+var W3e = /*#__PURE__*/ (0, b.memo)((e) => {
+ var t = VK();
return (0, b.useEffect)(() => {
- t(L3e(e));
+ t(I3e(e));
}, [t, e]), null;
-}, mX);
+}, pX);
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexPortal.js
-function K3e(e) {
- var t = e.zIndex, n = e.isPanorama, r = (0, b.useRef)(null), i = HK();
- return (0, b.useLayoutEffect)(() => (r.current && i(UGe({
+function G3e(e) {
+ var t = e.zIndex, n = e.isPanorama, r = (0, b.useRef)(null), i = VK();
+ return (0, b.useLayoutEffect)(() => (r.current && i(HGe({
zIndex: t,
element: r.current,
isPanorama: n
})), () => {
- i(WGe({
+ i(UGe({
zIndex: t,
isPanorama: n
}));
@@ -84767,15 +84767,15 @@ function K3e(e) {
className: `recharts-zIndex-layer_${t}`
});
}
-function q3e(e) {
- var t = e.children, n = e.isPanorama, r = J(MGe);
+function K3e(e) {
+ var t = e.children, n = e.isPanorama, r = J(jGe);
if (!r || r.length === 0) return t;
var i = r.filter((e) => e < 0), a = r.filter((e) => e > 0);
- return /*#__PURE__*/ b.createElement(b.Fragment, null, i.map((e) => /*#__PURE__*/ b.createElement(K3e, {
+ return /*#__PURE__*/ b.createElement(b.Fragment, null, i.map((e) => /*#__PURE__*/ b.createElement(G3e, {
key: e,
zIndex: e,
isPanorama: n
- })), t, a.map((e) => /*#__PURE__*/ b.createElement(K3e, {
+ })), t, a.map((e) => /*#__PURE__*/ b.createElement(G3e, {
key: e,
zIndex: e,
isPanorama: n
@@ -84783,17 +84783,17 @@ function q3e(e) {
}
//#endregion
//#region node_modules/recharts/es6/container/RootSurface.js
-var J3e = ["children"];
-function Y3e(e, t) {
+var q3e = ["children"];
+function J3e(e, t) {
if (e == null) return {};
- var n, r, i = X3e(e, t);
+ var n, r, i = Y3e(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function X3e(e, t) {
+function Y3e(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -84802,68 +84802,68 @@ function X3e(e, t) {
}
return n;
}
-function q6() {
- return q6 = Object.assign ? Object.assign.bind() : function(e) {
+function J6() {
+ return J6 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, q6.apply(null, arguments);
+ }, J6.apply(null, arguments);
}
-var Z3e = {
+var X3e = {
width: "100%",
height: "100%",
display: "block"
-}, Q3e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
- var n = QY(), r = $Y(), i = NX();
- if (!lY(n) || !lY(r)) return null;
+}, Z3e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
+ var n = ZY(), r = QY(), i = MX();
+ if (!cY(n) || !cY(r)) return null;
var a = e.children, o = e.otherAttributes, s = e.title, c = e.desc, l, u;
- return o != null && (l = typeof o.tabIndex == "number" ? o.tabIndex : i ? 0 : void 0, u = typeof o.role == "string" ? o.role : i ? "application" : void 0), /*#__PURE__*/ b.createElement(_W, q6({}, o, {
+ return o != null && (l = typeof o.tabIndex == "number" ? o.tabIndex : i ? 0 : void 0, u = typeof o.role == "string" ? o.role : i ? "application" : void 0), /*#__PURE__*/ b.createElement(gW, J6({}, o, {
title: s,
desc: c,
role: u,
tabIndex: l,
width: n,
height: r,
- style: Z3e,
+ style: X3e,
ref: t
}), a);
-}), $3e = (e) => {
- var t = e.children, n = J(RY);
+}), Q3e = (e) => {
+ var t = e.children, n = J(LY);
if (!n) return null;
var r = n.width, i = n.height, a = n.y, o = n.x;
- return /*#__PURE__*/ b.createElement(_W, {
+ return /*#__PURE__*/ b.createElement(gW, {
width: r,
height: i,
x: o,
y: a
}, t);
-}, e6e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
- var n = e.children, r = Y3e(e, J3e);
- return IY() ? /*#__PURE__*/ b.createElement($3e, null, /*#__PURE__*/ b.createElement(q3e, { isPanorama: !0 }, n)) : /*#__PURE__*/ b.createElement(Q3e, q6({ ref: t }, r), /*#__PURE__*/ b.createElement(q3e, { isPanorama: !1 }, n));
+}, $3e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
+ var n = e.children, r = J3e(e, q3e);
+ return FY() ? /*#__PURE__*/ b.createElement(Q3e, null, /*#__PURE__*/ b.createElement(K3e, { isPanorama: !0 }, n)) : /*#__PURE__*/ b.createElement(Z3e, J6({ ref: t }, r), /*#__PURE__*/ b.createElement(K3e, { isPanorama: !1 }, n));
});
//#endregion
//#region node_modules/recharts/es6/util/useReportScale.js
-function t6e(e, t) {
- return o6e(e) || a6e(e, t) || r6e(e, t) || n6e();
+function e6e(e, t) {
+ return a6e(e) || i6e(e, t) || n6e(e, t) || t6e();
}
-function n6e() {
+function t6e() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function r6e(e, t) {
+function n6e(e, t) {
if (e) {
- if (typeof e == "string") return i6e(e, t);
+ if (typeof e == "string") return r6e(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? i6e(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? r6e(e, t) : void 0;
}
}
-function i6e(e, t) {
+function r6e(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function a6e(e, t) {
+function i6e(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -84884,15 +84884,15 @@ function a6e(e, t) {
return s;
}
}
-function o6e(e) {
+function a6e(e) {
if (Array.isArray(e)) return e;
}
-function s6e() {
- var e = HK(), t = t6e((0, b.useState)(null), 2), n = t[0], r = t[1], i = J(YFe);
+function o6e() {
+ var e = VK(), t = e6e((0, b.useState)(null), 2), n = t[0], r = t[1], i = J(XFe);
return (0, b.useEffect)(() => {
if (n != null) {
var t = n.getBoundingClientRect().width / n.offsetWidth;
- cY(t) && t !== i && e(IFe(t));
+ sY(t) && t !== i && e(LFe(t));
}
}, [
n,
@@ -84902,7 +84902,7 @@ function s6e() {
}
//#endregion
//#region node_modules/recharts/es6/chart/RechartsWrapper.js
-function c6e(e, t) {
+function s6e(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -84912,30 +84912,30 @@ function c6e(e, t) {
}
return n;
}
-function l6e(e) {
+function c6e(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? c6e(Object(n), !0).forEach(function(t) {
- u6e(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : c6e(Object(n)).forEach(function(t) {
+ t % 2 ? s6e(Object(n), !0).forEach(function(t) {
+ l6e(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : s6e(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function u6e(e, t, n) {
- return (t = d6e(t)) in e ? Object.defineProperty(e, t, {
+function l6e(e, t, n) {
+ return (t = u6e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function d6e(e) {
- var t = f6e(e, "string");
+function u6e(e) {
+ var t = d6e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function f6e(e, t) {
+function d6e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -84945,34 +84945,34 @@ function f6e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function J6() {
- return J6 = Object.assign ? Object.assign.bind() : function(e) {
+function Y6() {
+ return Y6 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, J6.apply(null, arguments);
+ }, Y6.apply(null, arguments);
}
-function Y6(e, t) {
- return _6e(e) || g6e(e, t) || m6e(e, t) || p6e();
+function X6(e, t) {
+ return g6e(e) || h6e(e, t) || p6e(e, t) || f6e();
}
-function p6e() {
+function f6e() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function m6e(e, t) {
+function p6e(e, t) {
if (e) {
- if (typeof e == "string") return h6e(e, t);
+ if (typeof e == "string") return m6e(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? h6e(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? m6e(e, t) : void 0;
}
}
-function h6e(e, t) {
+function m6e(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function g6e(e, t) {
+function h6e(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -84993,11 +84993,11 @@ function g6e(e, t) {
return s;
}
}
-function _6e(e) {
+function g6e(e) {
if (Array.isArray(e)) return e;
}
-var v6e = () => (bKe(), null);
-function X6(e) {
+var _6e = () => (yKe(), null);
+function Z6(e) {
if (typeof e == "number") return e;
if (typeof e == "string") {
var t = parseFloat(e);
@@ -85005,10 +85005,10 @@ function X6(e) {
}
return 0;
}
-var y6e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
- var n = (0, b.useRef)(null), r = Y6((0, b.useState)({
- containerWidth: X6(e.style?.width),
- containerHeight: X6(e.style?.height)
+var v6e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
+ var n = (0, b.useRef)(null), r = X6((0, b.useState)({
+ containerWidth: Z6(e.style?.width),
+ containerHeight: Z6(e.style?.height)
}), 2), i = r[0], a = r[1], o = (0, b.useCallback)((e, t) => {
a((n) => {
var r = Math.round(e), i = Math.round(t);
@@ -85033,14 +85033,14 @@ var y6e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
}, [t, o]);
return (0, b.useEffect)(() => () => {
n.current?.disconnect();
- }, [o]), /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(aX, {
+ }, [o]), /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(iX, {
width: i.containerWidth,
height: i.containerHeight
- }), /*#__PURE__*/ b.createElement("div", J6({ ref: s }, e)));
-}), b6e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
- var n = e.width, r = e.height, i = Y6((0, b.useState)({
- containerWidth: X6(n),
- containerHeight: X6(r)
+ }), /*#__PURE__*/ b.createElement("div", Y6({ ref: s }, e)));
+}), y6e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
+ var n = e.width, r = e.height, i = X6((0, b.useState)({
+ containerWidth: Z6(n),
+ containerHeight: Z6(r)
}), 2), a = i[0], o = i[1], s = (0, b.useCallback)((e, t) => {
o((n) => {
var r = Math.round(e), i = Math.round(t);
@@ -85055,32 +85055,32 @@ var y6e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
s(r, i);
}
}, [t, s]);
- return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(aX, {
+ return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(iX, {
width: a.containerWidth,
height: a.containerHeight
- }), /*#__PURE__*/ b.createElement("div", J6({ ref: c }, e)));
-}), x6e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
+ }), /*#__PURE__*/ b.createElement("div", Y6({ ref: c }, e)));
+}), b6e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
var n = e.width, r = e.height;
- return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(aX, {
+ return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(iX, {
width: n,
height: r
- }), /*#__PURE__*/ b.createElement("div", J6({ ref: t }, e)));
-}), S6e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
+ }), /*#__PURE__*/ b.createElement("div", Y6({ ref: t }, e)));
+}), x6e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
var n = e.width, r = e.height;
- return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ b.createElement(b6e, J6({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ b.createElement(x6e, J6({}, e, {
+ return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ b.createElement(y6e, Y6({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ b.createElement(b6e, Y6({}, e, {
width: n,
height: r,
ref: t
- })) : /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(aX, {
+ })) : /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(iX, {
width: n,
height: r
- }), /*#__PURE__*/ b.createElement("div", J6({ ref: t }, e)));
+ }), /*#__PURE__*/ b.createElement("div", Y6({ ref: t }, e)));
});
-function C6e(e) {
- return e ? y6e : S6e;
+function S6e(e) {
+ return e ? v6e : x6e;
}
-var w6e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
- var n = e.children, r = e.className, i = e.height, a = e.onClick, o = e.onContextMenu, s = e.onDoubleClick, c = e.onMouseDown, l = e.onMouseEnter, u = e.onMouseLeave, d = e.onMouseMove, f = e.onMouseUp, p = e.onTouchEnd, m = e.onTouchMove, h = e.onTouchStart, g = e.style, _ = e.width, v = e.responsive, y = e.dispatchTouchEvents, x = y === void 0 || y, S = (0, b.useRef)(null), C = HK(), w = Y6((0, b.useState)(null), 2), T = w[0], E = w[1], D = Y6((0, b.useState)(null), 2), O = D[0], k = D[1], A = s6e(), j = JY(), M = j?.width > 0 ? j.width : _, N = j?.height > 0 ? j.height : i, ee = (0, b.useCallback)((e) => {
+var C6e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
+ var n = e.children, r = e.className, i = e.height, a = e.onClick, o = e.onContextMenu, s = e.onDoubleClick, c = e.onMouseDown, l = e.onMouseEnter, u = e.onMouseLeave, d = e.onMouseMove, f = e.onMouseUp, p = e.onTouchEnd, m = e.onTouchMove, h = e.onTouchStart, g = e.style, _ = e.width, v = e.responsive, y = e.dispatchTouchEvents, x = y === void 0 || y, S = (0, b.useRef)(null), C = VK(), w = X6((0, b.useState)(null), 2), T = w[0], E = w[1], D = X6((0, b.useState)(null), 2), O = D[0], k = D[1], A = o6e(), j = qY(), M = j?.width > 0 ? j.width : _, N = j?.height > 0 ? j.height : i, ee = (0, b.useCallback)((e) => {
A(e), typeof t == "function" && t(e), E(e), k(e), e != null && (S.current = e);
}, [
A,
@@ -85088,58 +85088,58 @@ var w6e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
E,
k
]), te = (0, b.useCallback)((e) => {
- C(g3e(e)), C(z6({
+ C(h3e(e)), C(B6({
handler: a,
reactEvent: e
}));
}, [C, a]), P = (0, b.useCallback)((e) => {
- C(j6(e)), C(z6({
+ C(M6(e)), C(B6({
handler: l,
reactEvent: e
}));
}, [C, l]), ne = (0, b.useCallback)((e) => {
- C(oWe()), C(z6({
+ C(aWe()), C(B6({
handler: u,
reactEvent: e
}));
}, [C, u]), re = (0, b.useCallback)((e) => {
- C(j6(e)), C(z6({
+ C(M6(e)), C(B6({
handler: d,
reactEvent: e
}));
}, [C, d]), ie = (0, b.useCallback)(() => {
- C(O3e());
+ C(D3e());
}, [C]), ae = (0, b.useCallback)(() => {
- C(k3e());
+ C(O3e());
}, [C]), oe = (0, b.useCallback)((e) => {
- C(D3e(e.key));
+ C(E3e(e.key));
}, [C]), se = (0, b.useCallback)((e) => {
- C(z6({
+ C(B6({
handler: o,
reactEvent: e
}));
}, [C, o]), ce = (0, b.useCallback)((e) => {
- C(z6({
+ C(B6({
handler: s,
reactEvent: e
}));
}, [C, s]), le = (0, b.useCallback)((e) => {
- C(z6({
+ C(B6({
handler: c,
reactEvent: e
}));
}, [C, c]), ue = (0, b.useCallback)((e) => {
- C(z6({
+ C(B6({
handler: f,
reactEvent: e
}));
}, [C, f]), de = (0, b.useCallback)((e) => {
- C(z6({
+ C(B6({
handler: h,
reactEvent: e
}));
}, [C, h]), fe = (0, b.useCallback)((e) => {
- x && C(N3e(e)), C(z6({
+ x && C(M3e(e)), C(B6({
handler: m,
reactEvent: e
}));
@@ -85148,16 +85148,16 @@ var w6e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
x,
m
]), pe = (0, b.useCallback)((e) => {
- C(z6({
+ C(B6({
handler: p,
reactEvent: e
}));
- }, [C, p]), me = C6e(v);
- return /*#__PURE__*/ b.createElement($Ge.Provider, { value: T }, /*#__PURE__*/ b.createElement(JW.Provider, { value: O }, /*#__PURE__*/ b.createElement(me, {
+ }, [C, p]), me = S6e(v);
+ return /*#__PURE__*/ b.createElement(QGe.Provider, { value: T }, /*#__PURE__*/ b.createElement(qW.Provider, { value: O }, /*#__PURE__*/ b.createElement(me, {
width: M ?? g?.width,
height: N ?? g?.height,
- className: dv("recharts-wrapper", r),
- style: l6e({
+ className: fv("recharts-wrapper", r),
+ style: c6e({
position: "relative",
cursor: "default",
width: M,
@@ -85178,8 +85178,8 @@ var w6e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
onTouchMove: fe,
onTouchStart: de,
ref: ee
- }, /*#__PURE__*/ b.createElement(v6e, null), n)));
-}), T6e = [
+ }, /*#__PURE__*/ b.createElement(_6e, null), n)));
+}), w6e = [
"width",
"height",
"responsive",
@@ -85190,16 +85190,16 @@ var w6e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
"title",
"desc"
];
-function E6e(e, t) {
+function T6e(e, t) {
if (e == null) return {};
- var n, r, i = D6e(e, t);
+ var n, r, i = E6e(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function D6e(e, t) {
+function E6e(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -85208,16 +85208,16 @@ function D6e(e, t) {
}
return n;
}
-var O6e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
- var n = e.width, r = e.height, i = e.responsive, a = e.children, o = e.className, s = e.style, c = e.compact, l = e.title, u = e.desc, d = pW(E6e(e, T6e));
- return c ? /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(aX, {
+var D6e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
+ var n = e.width, r = e.height, i = e.responsive, a = e.children, o = e.className, s = e.style, c = e.compact, l = e.title, u = e.desc, d = fW(T6e(e, w6e));
+ return c ? /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(iX, {
width: n,
height: r
- }), /*#__PURE__*/ b.createElement(e6e, {
+ }), /*#__PURE__*/ b.createElement($3e, {
otherAttributes: d,
title: l,
desc: u
- }, a)) : /*#__PURE__*/ b.createElement(w6e, {
+ }, a)) : /*#__PURE__*/ b.createElement(C6e, {
className: o,
style: s,
width: n,
@@ -85234,25 +85234,25 @@ var O6e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
onTouchStart: e.onTouchStart,
onTouchMove: e.onTouchMove,
onTouchEnd: e.onTouchEnd
- }, /*#__PURE__*/ b.createElement(e6e, {
+ }, /*#__PURE__*/ b.createElement($3e, {
otherAttributes: d,
title: l,
desc: u,
ref: t
- }, /*#__PURE__*/ b.createElement(E$e, null, a)));
+ }, /*#__PURE__*/ b.createElement(T$e, null, a)));
});
//#endregion
//#region node_modules/recharts/es6/chart/CartesianChart.js
-function Z6() {
- return Z6 = Object.assign ? Object.assign.bind() : function(e) {
+function Q6() {
+ return Q6 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, Z6.apply(null, arguments);
+ }, Q6.apply(null, arguments);
}
-function k6e(e, t) {
+function O6e(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -85262,30 +85262,30 @@ function k6e(e, t) {
}
return n;
}
-function A6e(e) {
+function k6e(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? k6e(Object(n), !0).forEach(function(t) {
- j6e(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : k6e(Object(n)).forEach(function(t) {
+ t % 2 ? O6e(Object(n), !0).forEach(function(t) {
+ A6e(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O6e(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function j6e(e, t, n) {
- return (t = M6e(t)) in e ? Object.defineProperty(e, t, {
+function A6e(e, t, n) {
+ return (t = j6e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function M6e(e) {
- var t = N6e(e, "string");
+function j6e(e) {
+ var t = M6e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function N6e(e, t) {
+function M6e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -85295,7 +85295,7 @@ function N6e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var P6e = A6e({
+var N6e = k6e({
accessibilityLayer: !0,
barCategoryGap: "10%",
barGap: 4,
@@ -85310,24 +85310,24 @@ var P6e = A6e({
reverseStackOrder: !1,
stackOffset: "none",
syncMethod: "index"
-}, K6), Q6 = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- var n = YG(e.categoricalChartProps, P6e), r = e.chartName, i = e.defaultTooltipEventType, a = e.validateTooltipEventTypes, o = e.tooltipPayloadSearcher, s = e.categoricalChartProps, c = {
+}, q6), $6 = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ var n = JG(e.categoricalChartProps, N6e), r = e.chartName, i = e.defaultTooltipEventType, a = e.validateTooltipEventTypes, o = e.tooltipPayloadSearcher, s = e.categoricalChartProps, c = {
chartName: r,
defaultTooltipEventType: i,
validateTooltipEventTypes: a,
tooltipPayloadSearcher: o,
eventEmitter: void 0
};
- return /*#__PURE__*/ b.createElement(V3e, {
+ return /*#__PURE__*/ b.createElement(B3e, {
preloadedState: { options: c },
reduxStoreName: s.id ?? r
- }, /*#__PURE__*/ b.createElement(s$e, { chartData: s.data }), /*#__PURE__*/ b.createElement(U3e, {
+ }, /*#__PURE__*/ b.createElement(o$e, { chartData: s.data }), /*#__PURE__*/ b.createElement(H3e, {
layout: n.layout,
margin: n.margin
- }), /*#__PURE__*/ b.createElement(G3e, {
+ }), /*#__PURE__*/ b.createElement(W3e, {
throttleDelay: n.throttleDelay,
throttledEvents: n.throttledEvents
- }), /*#__PURE__*/ b.createElement(W3e, {
+ }), /*#__PURE__*/ b.createElement(U3e, {
baseValue: n.baseValue,
accessibilityLayer: n.accessibilityLayer,
barCategoryGap: n.barCategoryGap,
@@ -85339,52 +85339,52 @@ var P6e = A6e({
syncMethod: n.syncMethod,
className: n.className,
reverseStackOrder: n.reverseStackOrder
- }), /*#__PURE__*/ b.createElement(O6e, Z6({}, n, { ref: t })));
-}), F6e = ["axis"], I6e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => /*#__PURE__*/ b.createElement(Q6, {
+ }), /*#__PURE__*/ b.createElement(D6e, Q6({}, n, { ref: t })));
+}), P6e = ["axis"], F6e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => /*#__PURE__*/ b.createElement($6, {
chartName: "LineChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: F6e,
- tooltipPayloadSearcher: d4,
+ validateTooltipEventTypes: P6e,
+ tooltipPayloadSearcher: f4,
categoricalChartProps: e,
ref: t
-})), L6e = ["axis", "item"], R6e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => /*#__PURE__*/ b.createElement(Q6, {
+})), I6e = ["axis", "item"], L6e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => /*#__PURE__*/ b.createElement($6, {
chartName: "BarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: L6e,
- tooltipPayloadSearcher: d4,
+ validateTooltipEventTypes: I6e,
+ tooltipPayloadSearcher: f4,
categoricalChartProps: e,
ref: t
}));
//#endregion
//#region node_modules/recharts/es6/state/ReportPolarOptions.js
-function z6e(e) {
- var t = HK();
+function R6e(e) {
+ var t = VK();
return (0, b.useEffect)(() => {
- t(T3e(e));
+ t(w3e(e));
}, [t, e]), null;
}
//#endregion
//#region node_modules/recharts/es6/chart/PolarChart.js
-var B6e = ["layout"];
-function $6() {
- return $6 = Object.assign ? Object.assign.bind() : function(e) {
+var z6e = ["layout"];
+function e8() {
+ return e8 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, $6.apply(null, arguments);
+ }, e8.apply(null, arguments);
}
-function V6e(e, t) {
+function B6e(e, t) {
if (e == null) return {};
- var n, r, i = H6e(e, t);
+ var n, r, i = V6e(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function H6e(e, t) {
+function V6e(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -85393,7 +85393,7 @@ function H6e(e, t) {
}
return n;
}
-function U6e(e, t) {
+function H6e(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -85403,30 +85403,30 @@ function U6e(e, t) {
}
return n;
}
-function W6e(e) {
+function U6e(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? U6e(Object(n), !0).forEach(function(t) {
- G6e(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : U6e(Object(n)).forEach(function(t) {
+ t % 2 ? H6e(Object(n), !0).forEach(function(t) {
+ W6e(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H6e(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function G6e(e, t, n) {
- return (t = K6e(t)) in e ? Object.defineProperty(e, t, {
+function W6e(e, t, n) {
+ return (t = G6e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function K6e(e) {
- var t = q6e(e, "string");
+function G6e(e) {
+ var t = K6e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function q6e(e, t) {
+function K6e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -85436,7 +85436,7 @@ function q6e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var e8 = W6e({
+var t8 = U6e({
accessibilityLayer: !0,
stackOffset: "none",
barCategoryGap: "10%",
@@ -85455,24 +85455,24 @@ var e8 = W6e({
cy: "50%",
innerRadius: 0,
outerRadius: "80%"
-}, K6), J6e = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- var n = YG(e.categoricalChartProps, e8), r = n.layout, i = V6e(n, B6e), a = e.chartName, o = {
+}, q6), q6e = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ var n = JG(e.categoricalChartProps, t8), r = n.layout, i = B6e(n, z6e), a = e.chartName, o = {
chartName: a,
defaultTooltipEventType: e.defaultTooltipEventType,
validateTooltipEventTypes: e.validateTooltipEventTypes,
tooltipPayloadSearcher: e.tooltipPayloadSearcher,
eventEmitter: void 0
};
- return /*#__PURE__*/ b.createElement(V3e, {
+ return /*#__PURE__*/ b.createElement(B3e, {
preloadedState: { options: o },
reduxStoreName: n.id ?? a
- }, /*#__PURE__*/ b.createElement(s$e, { chartData: n.data }), /*#__PURE__*/ b.createElement(U3e, {
+ }, /*#__PURE__*/ b.createElement(o$e, { chartData: n.data }), /*#__PURE__*/ b.createElement(H3e, {
layout: r,
margin: n.margin
- }), /*#__PURE__*/ b.createElement(G3e, {
+ }), /*#__PURE__*/ b.createElement(W3e, {
throttleDelay: n.throttleDelay,
throttledEvents: n.throttledEvents
- }), /*#__PURE__*/ b.createElement(W3e, {
+ }), /*#__PURE__*/ b.createElement(U3e, {
baseValue: void 0,
accessibilityLayer: n.accessibilityLayer,
barCategoryGap: n.barCategoryGap,
@@ -85484,18 +85484,18 @@ var e8 = W6e({
syncMethod: n.syncMethod,
className: n.className,
reverseStackOrder: n.reverseStackOrder
- }), /*#__PURE__*/ b.createElement(z6e, {
+ }), /*#__PURE__*/ b.createElement(R6e, {
cx: n.cx,
cy: n.cy,
startAngle: n.startAngle,
endAngle: n.endAngle,
innerRadius: n.innerRadius,
outerRadius: n.outerRadius
- }), /*#__PURE__*/ b.createElement(O6e, $6({}, i, { ref: t })));
+ }), /*#__PURE__*/ b.createElement(D6e, e8({}, i, { ref: t })));
});
//#endregion
//#region node_modules/recharts/es6/chart/RadarChart.js
-function Y6e(e, t) {
+function J6e(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -85505,30 +85505,30 @@ function Y6e(e, t) {
}
return n;
}
-function X6e(e) {
+function Y6e(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? Y6e(Object(n), !0).forEach(function(t) {
- Z6e(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Y6e(Object(n)).forEach(function(t) {
+ t % 2 ? J6e(Object(n), !0).forEach(function(t) {
+ X6e(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : J6e(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Z6e(e, t, n) {
- return (t = Q6e(t)) in e ? Object.defineProperty(e, t, {
+function X6e(e, t, n) {
+ return (t = Z6e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Q6e(e) {
- var t = $6e(e, "string");
+function Z6e(e) {
+ var t = Q6e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function $6e(e, t) {
+function Q6e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -85538,31 +85538,31 @@ function $6e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var e8e = ["axis"], t8e = X6e(X6e({}, e8), {}, {
+var $6e = ["axis"], e8e = Y6e(Y6e({}, t8), {}, {
layout: "centric",
startAngle: 90,
endAngle: -270
-}), n8e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
- var n = YG(e, t8e);
- return /*#__PURE__*/ b.createElement(J6e, {
+}), t8e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
+ var n = JG(e, e8e);
+ return /*#__PURE__*/ b.createElement(q6e, {
chartName: "RadarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: e8e,
- tooltipPayloadSearcher: d4,
+ validateTooltipEventTypes: $6e,
+ tooltipPayloadSearcher: f4,
categoricalChartProps: n,
ref: t
});
-}), r8e = ["axis"], i8e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => /*#__PURE__*/ b.createElement(Q6, {
+}), n8e = ["axis"], r8e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => /*#__PURE__*/ b.createElement($6, {
chartName: "AreaChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: r8e,
- tooltipPayloadSearcher: d4,
+ validateTooltipEventTypes: n8e,
+ tooltipPayloadSearcher: f4,
categoricalChartProps: e,
ref: t
}));
//#endregion
//#region node_modules/recharts/es6/chart/RadialBarChart.js
-function a8e(e, t) {
+function i8e(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -85572,30 +85572,30 @@ function a8e(e, t) {
}
return n;
}
-function o8e(e) {
+function a8e(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? a8e(Object(n), !0).forEach(function(t) {
- s8e(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : a8e(Object(n)).forEach(function(t) {
+ t % 2 ? i8e(Object(n), !0).forEach(function(t) {
+ o8e(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : i8e(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function s8e(e, t, n) {
- return (t = c8e(t)) in e ? Object.defineProperty(e, t, {
+function o8e(e, t, n) {
+ return (t = s8e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function c8e(e) {
- var t = l8e(e, "string");
+function s8e(e) {
+ var t = c8e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function l8e(e, t) {
+function c8e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -85605,59 +85605,59 @@ function l8e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var u8e = ["axis", "item"], d8e = o8e(o8e({}, e8), {}, {
+var l8e = ["axis", "item"], u8e = a8e(a8e({}, t8), {}, {
layout: "radial",
startAngle: 0,
endAngle: 360
-}), f8e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
- var n = YG(e, d8e);
- return /*#__PURE__*/ b.createElement(J6e, {
+}), d8e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
+ var n = JG(e, u8e);
+ return /*#__PURE__*/ b.createElement(q6e, {
chartName: "RadialBarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: u8e,
- tooltipPayloadSearcher: d4,
+ validateTooltipEventTypes: l8e,
+ tooltipPayloadSearcher: f4,
categoricalChartProps: n,
ref: t
});
});
//#endregion
//#region src/react/charts/cn.ts
-function t8(...e) {
- return RO(dv(e));
+function n8(...e) {
+ return RO(fv(e));
}
//#endregion
//#region src/react/evilcharts/registry/ui/recharts-chart.tsx
-var p8e = {
+var f8e = {
light: "",
dark: ".dark"
-}, n8 = Object.keys(p8e);
-function m8e(e) {
- for (let [t, n] of Object.entries(e)) if (n.colors && !n8.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${n8.join(", ")}). Received empty object or invalid keys.`);
+}, r8 = Object.keys(f8e);
+function p8e(e) {
+ for (let [t, n] of Object.entries(e)) if (n.colors && !r8.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${r8.join(", ")}). Received empty object or invalid keys.`);
}
-var h8e = b.createContext(null);
-function r8() {
- let e = b.useContext(h8e);
+var m8e = b.createContext(null);
+function i8() {
+ let e = b.useContext(m8e);
if (!e) throw Error("useChart must be used within a <ChartContainer />");
return e;
}
-function i8({ id: e, config: t, initialDimension: n = {
+function a8({ id: e, config: t, initialDimension: n = {
width: 320,
height: 200
}, className: r, children: i, footer: a, ...o }) {
let s = b.useId(), c = `chart-${e ?? s.replace(/:/g, "")}`;
- return m8e(t), /* @__PURE__ */ (0, x.jsx)(h8e.Provider, {
+ return p8e(t), /* @__PURE__ */ (0, x.jsx)(m8e.Provider, {
value: { config: t },
children: /* @__PURE__ */ (0, x.jsxs)("div", {
"data-slot": "chart",
"data-chart": c,
- className: t8("min-h-0 w-full flex-1", "[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border relative flex flex-col justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", !a && "aspect-video", r),
+ className: n8("min-h-0 w-full flex-1", "[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border relative flex flex-col justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", !a && "aspect-video", r),
...o,
children: [
- /* @__PURE__ */ (0, x.jsx)(_8e, {
+ /* @__PURE__ */ (0, x.jsx)(g8e, {
id: c,
config: t
}),
- /* @__PURE__ */ (0, x.jsx)(YY, {
+ /* @__PURE__ */ (0, x.jsx)(JY, {
className: "min-h-0 w-full flex-1",
initialDimension: n,
children: i
@@ -85667,7 +85667,7 @@ function i8({ id: e, config: t, initialDimension: n = {
})
});
}
-function a8({ isLoading: e }) {
+function o8({ isLoading: e }) {
return e ? /* @__PURE__ */ (0, x.jsx)("div", {
className: "pointer-events-none absolute inset-0 z-20 flex items-center justify-center",
children: /* @__PURE__ */ (0, x.jsxs)("div", {
@@ -85676,7 +85676,7 @@ function a8({ isLoading: e }) {
})
}) : null;
}
-function g8e(e, t) {
+function h8e(e, t) {
let n = e.length;
if (n >= t) return e.slice(0, t);
let r = [], i = Math.floor(t / n), a = t % n;
@@ -85686,46 +85686,46 @@ function g8e(e, t) {
}
return r;
}
-var _8e = ({ id: e, config: t }) => {
+var g8e = ({ id: e, config: t }) => {
let n = Object.entries(t).filter(([, e]) => e.colors);
if (!n.length) return null;
let r = (e) => n.flatMap(([t, n]) => {
let r = n.colors?.[e];
- return !r || !Array.isArray(r) || r.length === 0 ? [] : g8e(r, s8(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
- }).filter(Boolean).join("\n"), i = Object.entries(p8e).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");
+ return !r || !Array.isArray(r) || r.length === 0 ? [] : h8e(r, c8(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
+ }).filter(Boolean).join("\n"), i = Object.entries(f8e).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");
return /* @__PURE__ */ (0, x.jsx)("style", { dangerouslySetInnerHTML: { __html: i } });
};
-function o8(e, t, n) {
+function s8(e, t, n) {
if (typeof t != "object" || !t) return;
let r = "payload" in t && typeof t.payload == "object" && t.payload !== null ? t.payload : void 0, i = n;
return n in t && typeof t[n] == "string" ? i = t[n] : r && n in r && typeof r[n] == "string" && (i = r[n]), i in e ? e[i] : e[n];
}
-function s8(e) {
+function c8(e) {
if (!e.colors) return 1;
- let t = n8.map((t) => e.colors?.[t]?.length ?? 0);
+ let t = r8.map((t) => e.colors?.[t]?.length ?? 0);
return Math.max(...t, 1);
}
-var v8e = (e = 10, t = 0, n = 70) => {
+var _8e = (e = 10, t = 0, n = 70) => {
let r = n - t;
return Array.from({ length: e }, () => ({ loading: Math.floor(Math.random() * r) + t }));
-}, y8e = {
+}, v8e = {
sm: "rounded-sm",
md: "rounded-md",
lg: "rounded-lg",
xl: "rounded-xl"
-}, b8e = {
+}, y8e = {
default: "bg-background",
"frosted-glass": "bg-background/70 backdrop-blur-sm"
};
-function c8({ active: e, payload: t, className: n, indicator: r = "dot", hideLabel: i = !1, hideIndicator: a = !1, label: o, labelFormatter: s, labelClassName: c, formatter: l, nameKey: u, labelKey: d, selected: f, roundness: p = "lg", variant: m = "default" }) {
- let { config: h } = r8(), g = b.useMemo(() => {
+function l8({ active: e, payload: t, className: n, indicator: r = "dot", hideLabel: i = !1, hideIndicator: a = !1, label: o, labelFormatter: s, labelClassName: c, formatter: l, nameKey: u, labelKey: d, selected: f, roundness: p = "lg", variant: m = "default" }) {
+ let { config: h } = i8(), g = b.useMemo(() => {
if (i || !t?.length) return null;
- let [e] = t, n = `${d ?? e?.dataKey ?? e?.name ?? "value"}`, r = o8(h, e, n), a = !d && typeof o == "string" ? h[o]?.label ?? o : r?.label;
+ let [e] = t, n = `${d ?? e?.dataKey ?? e?.name ?? "value"}`, r = s8(h, e, n), a = !d && typeof o == "string" ? h[o]?.label ?? o : r?.label;
return s ? /* @__PURE__ */ (0, x.jsx)("div", {
- className: t8("font-medium", c),
+ className: n8("font-medium", c),
children: s(a, t)
}) : a ? /* @__PURE__ */ (0, x.jsx)("div", {
- className: t8("font-medium", c),
+ className: n8("font-medium", c),
children: a
}) : null;
}, [
@@ -85740,23 +85740,23 @@ function c8({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
if (!e || !t?.length) return /* @__PURE__ */ (0, x.jsx)("span", { className: "p-4" });
let _ = t.length === 1 && r !== "dot";
return /* @__PURE__ */ (0, x.jsxs)("div", {
- className: t8("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", y8e[p], b8e[m], n),
+ className: n8("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", v8e[p], y8e[m], n),
children: [_ ? null : g, /* @__PURE__ */ (0, x.jsx)("div", {
className: "grid gap-1.5",
children: t.filter((e) => e.type !== "none").map((e, t) => {
- let n = `${(u && e.payload ? e.payload[u] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, i = o8(h, e, n), o = i ? s8(i) : 1;
+ let n = `${(u && e.payload ? e.payload[u] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, i = s8(h, e, n), o = i ? c8(i) : 1;
return /* @__PURE__ */ (0, x.jsx)("div", {
- className: t8("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5", r === "dot" && "items-center", f != null && f !== e.dataKey && "opacity-30"),
+ className: n8("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5", r === "dot" && "items-center", f != null && f !== e.dataKey && "opacity-30"),
children: l && e?.value !== void 0 && e.name ? l(e.value, e.name, e, t, e.payload) : /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [i?.icon ? /* @__PURE__ */ (0, x.jsx)(i.icon, {}) : !a && /* @__PURE__ */ (0, x.jsx)("div", {
- className: t8("shrink-0 rounded-[2px]", {
+ className: n8("shrink-0 rounded-[2px]", {
"h-2.5 w-2.5": r === "dot",
"w-1": r === "line",
"w-0 border-[1.5px] border-dashed bg-transparent!": r === "dashed",
"my-0.5": _ && r === "dashed"
}),
- style: x8e(n, o)
+ style: b8e(n, o)
}), /* @__PURE__ */ (0, x.jsxs)("div", {
- className: t8("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),
+ className: n8("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
className: "grid gap-1.5",
children: [_ ? g : null, /* @__PURE__ */ (0, x.jsx)("span", {
@@ -85773,27 +85773,27 @@ function c8({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
})]
});
}
-function x8e(e, t) {
+function b8e(e, t) {
return t <= 1 ? { background: `var(--color-${e}-0)` } : { background: `linear-gradient(to right, ${Array.from({ length: t }, (n, r) => `var(--color-${e}-${r}) ${r / (t - 1) * 100}%`).join(", ")})` };
}
-var l8 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, x.jsx)(LKe, {
+var u8 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, x.jsx)(IKe, {
animationDuration: e,
...t
});
//#endregion
//#region src/react/evilcharts/registry/ui/recharts-legend.tsx
-function u8({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAlign: i, align: a = "right", selected: o, onSelectChange: s, isClickable: c, variant: l = "rounded-square" }) {
- let { config: u } = r8();
+function d8({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAlign: i, align: a = "right", selected: o, onSelectChange: s, isClickable: c, variant: l = "rounded-square" }) {
+ let { config: u } = i8();
return r?.length ? /* @__PURE__ */ (0, x.jsx)("div", {
- className: t8("flex items-center gap-4 select-none", a === "left" && "justify-start", a === "center" && "justify-center", a === "right" && "justify-end", i === "top" ? "pb-4" : "pt-4", e),
+ className: n8("flex items-center gap-4 select-none", a === "left" && "justify-start", a === "center" && "justify-center", a === "right" && "justify-end", i === "top" ? "pb-4" : "pt-4", e),
children: r.filter((e) => e.type !== "none").map((e) => {
- let r = `${(n && e.payload ? e.payload[n] : void 0) ?? e.value ?? e.dataKey ?? "value"}`, i = o8(u, e, r), a = o === null || o === r, d = i ? s8(i) : 1;
+ let r = `${(n && e.payload ? e.payload[n] : void 0) ?? e.value ?? e.dataKey ?? "value"}`, i = s8(u, e, r), a = o === null || o === r, d = i ? c8(i) : 1;
return /* @__PURE__ */ (0, x.jsxs)("div", {
- className: t8("[&>svg]:text-muted-foreground flex items-center gap-1.5 transition-opacity [&>svg]:h-3 [&>svg]:w-3", !a && "opacity-30", c && "cursor-pointer"),
+ className: n8("[&>svg]:text-muted-foreground flex items-center gap-1.5 transition-opacity [&>svg]:h-3 [&>svg]:w-3", !a && "opacity-30", c && "cursor-pointer"),
onClick: () => {
c && s?.(o === r ? null : r);
},
- children: [i?.icon && !t ? /* @__PURE__ */ (0, x.jsx)(i.icon, {}) : /* @__PURE__ */ (0, x.jsx)(S8e, {
+ children: [i?.icon && !t ? /* @__PURE__ */ (0, x.jsx)(i.icon, {}) : /* @__PURE__ */ (0, x.jsx)(x8e, {
variant: l,
dataKey: r,
colorsCount: d
@@ -85802,8 +85802,8 @@ function u8({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAl
})
}) : null;
}
-function S8e({ variant: e, dataKey: t, colorsCount: n }) {
- let r = C8e(t, n), i = w8e(t, n);
+function x8e({ variant: e, dataKey: t, colorsCount: n }) {
+ let r = S8e(t, n), i = C8e(t, n);
switch (e) {
case "square": return /* @__PURE__ */ (0, x.jsx)("div", {
className: "h-2 w-2 shrink-0",
@@ -85835,10 +85835,10 @@ function S8e({ variant: e, dataKey: t, colorsCount: n }) {
});
}
}
-function C8e(e, t) {
+function S8e(e, t) {
return t <= 1 ? { backgroundColor: `var(--color-${e}-0)` } : { background: `linear-gradient(to right, ${Array.from({ length: t }, (n, r) => `var(--color-${e}-${r}) ${r / (t - 1) * 100}%`).join(", ")})` };
}
-function w8e(e, t) {
+function C8e(e, t) {
let n = {
WebkitMask: "linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",
WebkitMaskComposite: "xor",
@@ -85853,12 +85853,12 @@ function w8e(e, t) {
...n
};
}
-var d8 = yX, f8 = () => null, T8e = {
+var f8 = vX, p8 = () => null, w8e = {
stiffness: 300,
damping: 35,
mass: .8
};
-function E8e({ range: e, totalPoints: t, containerRef: n, commit: r }) {
+function T8e({ range: e, totalPoints: t, containerRef: n, commit: r }) {
let i = b.useRef(null), [a, o] = b.useState(!1), s = (0, b.useCallback)((e) => !n.current || t <= 1 ? 0 : Math.round(e / n.current.getBoundingClientRect().width * (t - 1)), [t, n]), c = (0, b.useCallback)((t, n) => {
t.preventDefault(), t.target.setPointerCapture(t.pointerId), i.current = {
type: n,
@@ -85904,7 +85904,7 @@ function E8e({ range: e, totalPoints: t, containerRef: n, commit: r }) {
])
};
}
-function D8e({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "area", height: a = 56, className: o, stacked: s = !1, strokeVariant: c = "solid", connectNulls: l = !1, barRadius: u, startIndex: d, endIndex: f, defaultStartIndex: p = 0, defaultEndIndex: m, onChange: h, formatLabel: g, curveType: _ = "monotone", minSpan: v = 2, showLabels: y = !0, skipStyle: S = !1 }) {
+function E8e({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "area", height: a = 56, className: o, stacked: s = !1, strokeVariant: c = "solid", connectNulls: l = !1, barRadius: u, startIndex: d, endIndex: f, defaultStartIndex: p = 0, defaultEndIndex: m, onChange: h, formatLabel: g, curveType: _ = "monotone", minSpan: v = 2, showLabels: y = !0, skipStyle: S = !1 }) {
let C = b.useRef(null), w = b.useMemo(() => n ?? Object.keys(t), [n, t]), T = e.length, E = b.useId().replace(/:/g, ""), D = d !== void 0 && f !== void 0, [O, k] = b.useState(() => ({
startIndex: Math.max(0, Math.min(p, T - 1)),
endIndex: Math.max(0, Math.min(m ?? T - 1, T - 1))
@@ -85938,7 +85938,7 @@ function D8e({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
startIndex: n,
endIndex: r
};
- }, [T, v]), { isDragging: M, bind: N } = E8e({
+ }, [T, v]), { isDragging: M, bind: N } = T8e({
range: O,
totalPoints: T,
containerRef: C,
@@ -85965,7 +85965,7 @@ function D8e({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
]);
let te = T > 1 ? ee.startIndex / (T - 1) * 100 : 0, P = T > 1 ? ee.endIndex / (T - 1) * 100 : 100, ne = t_(te), re = t_(P);
ne.get() !== te && ne.set(te), re.get() !== P && re.set(P);
- let ie = a_(ne, T8e), ae = a_(re, T8e), oe = r_(ie, (e) => `${e}%`), se = r_(ae, (e) => `${e}%`), ce = r_(ie, (e) => `${e}%`), le = r_(ae, (e) => `${Math.max(0, 100 - e)}%`), ue = t_(`${Math.max(0, P - te)}%`), de = (0, b.useCallback)(() => {
+ let ie = a_(ne, w8e), ae = a_(re, w8e), oe = r_(ie, (e) => `${e}%`), se = r_(ae, (e) => `${e}%`), ce = r_(ie, (e) => `${e}%`), le = r_(ae, (e) => `${Math.max(0, 100 - e)}%`), ue = t_(`${Math.max(0, P - te)}%`), de = (0, b.useCallback)(() => {
ue.set(`${Math.max(0, ae.get() - ie.get())}%`);
}, [
ie,
@@ -85985,16 +85985,16 @@ function D8e({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
return T === 0 ? null : /* @__PURE__ */ (0, x.jsxs)("div", {
ref: C,
"data-chart": S ? void 0 : E,
- className: t8("group relative select-none", o),
+ className: n8("group relative select-none", o),
style: { height: a },
children: [
- !S && /* @__PURE__ */ (0, x.jsx)(_8e, {
+ !S && /* @__PURE__ */ (0, x.jsx)(g8e, {
id: E,
config: t
}),
/* @__PURE__ */ (0, x.jsx)("div", {
className: "absolute inset-0 overflow-hidden rounded-md",
- children: /* @__PURE__ */ (0, x.jsx)(k8e, {
+ children: /* @__PURE__ */ (0, x.jsx)(O8e, {
data: e,
keys: w,
chartConfig: t,
@@ -86023,13 +86023,13 @@ function D8e({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
},
...N("middle")
}),
- /* @__PURE__ */ (0, x.jsx)(O8e, {
+ /* @__PURE__ */ (0, x.jsx)(D8e, {
side: "left",
position: oe,
label: y ? fe(ee.startIndex) : void 0,
bind: N("left")
}),
- /* @__PURE__ */ (0, x.jsx)(O8e, {
+ /* @__PURE__ */ (0, x.jsx)(D8e, {
side: "right",
position: se,
label: y ? fe(ee.endIndex) : void 0,
@@ -86038,16 +86038,16 @@ function D8e({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
]
});
}
-function O8e({ side: e, position: t, label: n, bind: r }) {
+function D8e({ side: e, position: t, label: n, bind: r }) {
let i = e === "left";
return /* @__PURE__ */ (0, x.jsxs)(o_.div, {
className: "absolute inset-y-0 z-10",
style: { left: t },
children: [/* @__PURE__ */ (0, x.jsx)("div", {
- className: t8("group absolute inset-y-0 flex w-3 cursor-ew-resize touch-none items-center justify-center after:absolute after:inset-y-0 after:-left-4 after:w-11 after:content-['']", i ? "" : "-translate-x-full"),
+ className: n8("group absolute inset-y-0 flex w-3 cursor-ew-resize touch-none items-center justify-center after:absolute after:inset-y-0 after:-left-4 after:w-11 after:content-['']", i ? "" : "-translate-x-full"),
...r,
children: /* @__PURE__ */ (0, x.jsx)("div", {
- className: t8("bg-muted-foreground group-hover:bg-foreground relative flex h-4 w-1.5 items-center justify-center rounded-md transition-colors", i ? "-left-[5.5px]" : "-right-[5.5px]"),
+ className: n8("bg-muted-foreground group-hover:bg-foreground relative flex h-4 w-1.5 items-center justify-center rounded-md transition-colors", i ? "-left-[5.5px]" : "-right-[5.5px]"),
children: /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-[2px]",
children: [
@@ -86058,15 +86058,15 @@ function O8e({ side: e, position: t, label: n, bind: r }) {
})
})
}), n && /* @__PURE__ */ (0, x.jsx)("div", {
- className: t8("bg-foreground text-background pointer-events-none absolute -bottom-3 -translate-y-1/2 rounded-[3px] px-1 py-px text-[8px] leading-tight font-medium whitespace-nowrap opacity-0 group-hover:opacity-100", i ? "left-1.5" : "right-1.5"),
+ className: n8("bg-foreground text-background pointer-events-none absolute -bottom-3 -translate-y-1/2 rounded-[3px] px-1 py-px text-[8px] leading-tight font-medium whitespace-nowrap opacity-0 group-hover:opacity-100", i ? "left-1.5" : "right-1.5"),
children: n
})]
});
}
-function k8e({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
+function O8e({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
let u = b.useMemo(() => Object.entries(n).filter(([e]) => t.includes(e)).map(([e, t]) => ({
dataKey: e,
- colorsCount: s8(t)
+ colorsCount: c8(t)
})), [n, t]), d = s === "dashed" || s === "animated-dashed" ? "4 4" : void 0, f = /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [r === "area" && /* @__PURE__ */ (0, x.jsxs)("linearGradient", {
id: `${a}-zm-vertical-fade`,
x1: "0",
@@ -86120,10 +86120,10 @@ function k8e({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
})] })] }, e);
})] });
- if (r === "line") return /* @__PURE__ */ (0, x.jsx)(YY, {
+ if (r === "line") return /* @__PURE__ */ (0, x.jsx)(JY, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, x.jsxs)(I6e, {
+ children: /* @__PURE__ */ (0, x.jsxs)(F6e, {
data: e,
margin: {
top: 4,
@@ -86131,7 +86131,7 @@ function k8e({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
bottom: 0,
left: 0
},
- children: [/* @__PURE__ */ (0, x.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, x.jsx)(Y0e, {
+ children: [/* @__PURE__ */ (0, x.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, x.jsx)(J0e, {
type: i,
dataKey: e,
stroke: `url(#${a}-zm-${e})`,
@@ -86147,10 +86147,10 @@ function k8e({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
});
if (r === "bar") {
let n = l ?? 3;
- return /* @__PURE__ */ (0, x.jsx)(YY, {
+ return /* @__PURE__ */ (0, x.jsx)(JY, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, x.jsxs)(R6e, {
+ children: /* @__PURE__ */ (0, x.jsxs)(L6e, {
data: e,
margin: {
top: 2,
@@ -86160,7 +86160,7 @@ function k8e({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
},
barGap: 2,
barSize: 14,
- children: [/* @__PURE__ */ (0, x.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, x.jsx)(w6, {
+ children: [/* @__PURE__ */ (0, x.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, x.jsx)(T6, {
dataKey: e,
fill: `url(#${a}-zm-${e})`,
fillOpacity: .35,
@@ -86176,10 +86176,10 @@ function k8e({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
- return /* @__PURE__ */ (0, x.jsx)(YY, {
+ return /* @__PURE__ */ (0, x.jsx)(JY, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, x.jsxs)(i8e, {
+ children: /* @__PURE__ */ (0, x.jsxs)(r8e, {
data: e,
margin: {
top: 4,
@@ -86187,7 +86187,7 @@ function k8e({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
bottom: 0,
left: 0
},
- children: [/* @__PURE__ */ (0, x.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, x.jsx)(F2e, {
+ children: [/* @__PURE__ */ (0, x.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, x.jsx)(P2e, {
type: i,
dataKey: e,
stroke: `url(#${a}-zm-${e})`,
@@ -86205,7 +86205,7 @@ function k8e({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
-function A8e({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
+function k8e({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
let [r, i] = b.useState({
startIndex: t,
endIndex: n ?? Math.max(0, e.length - 1)
@@ -86229,7 +86229,7 @@ function A8e({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
}
};
}
-var j8e = {
+var A8e = {
dots: ({ id: e }) => /* @__PURE__ */ (0, x.jsx)("pattern", {
id: e,
x: "0",
@@ -86401,9 +86401,9 @@ var j8e = {
})
})
};
-function p8({ variant: e }) {
- let t = (0, b.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = j8e[e];
- return /* @__PURE__ */ (0, x.jsxs)(o4, {
+function m8({ variant: e }) {
+ let t = (0, b.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = A8e[e];
+ return /* @__PURE__ */ (0, x.jsxs)(s4, {
zIndex: -1,
children: [/* @__PURE__ */ (0, x.jsxs)("defs", { children: [
/* @__PURE__ */ (0, x.jsx)(a, { id: n }),
@@ -86433,20 +86433,20 @@ function p8({ variant: e }) {
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-bar-chart.tsx
-var M8e = 2, N8e = "loading", P8e = 2e3, F8e = "evil-stacked", I8e = .5, L8e = .05, R8e = [
+var j8e = 2, M8e = "loading", N8e = 2e3, P8e = "evil-stacked", F8e = .5, I8e = .05, L8e = [
0,
.7,
.5,
1
-], z8e = (0, b.createContext)(null);
-function m8() {
- let e = (0, b.use)(z8e);
+], R8e = (0, b.createContext)(null);
+function h8() {
+ let e = (0, b.use)(R8e);
if (!e) throw Error("Bar chart parts (<Bar />, <XAxis />, …) must be used within <EvilBarChart />");
return e;
}
-function h8({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = M8e, animationType: c = "left-to-right", barGap: l, barCategoryGap: u, backgroundVariant: d, defaultSelectedDataKey: f = null, onSelectionChange: p, isLoading: m = !1, loadingBars: h, xDataKey: g }) {
- let _ = (0, b.useId)().replace(/:/g, ""), [v] = (0, b.useState)(() => Date.now()), [y, S] = (0, b.useState)(f), [C, w] = (0, b.useState)(!1), { loadingData: T, onShimmerExit: E } = a5e(m, h), { visibleData: D, brushProps: O } = A8e({ data: t }), k = (0, b.useMemo)(() => {
- let e = b.Children.toArray(n), t = e.find((e) => (0, b.isValidElement)(e) && e.type === f8), r = (0, b.isValidElement)(t) ? t.props : {};
+function g8({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = j8e, animationType: c = "left-to-right", barGap: l, barCategoryGap: u, backgroundVariant: d, defaultSelectedDataKey: f = null, onSelectionChange: p, isLoading: m = !1, loadingBars: h, xDataKey: g }) {
+ let _ = (0, b.useId)().replace(/:/g, ""), [v] = (0, b.useState)(() => Date.now()), [y, S] = (0, b.useState)(f), [C, w] = (0, b.useState)(!1), { loadingData: T, onShimmerExit: E } = i5e(m, h), { visibleData: D, brushProps: O } = k8e({ data: t }), k = (0, b.useMemo)(() => {
+ let e = b.Children.toArray(n), t = e.find((e) => (0, b.isValidElement)(e) && e.type === p8), r = (0, b.isValidElement)(t) ? t.props : {};
return {
slot: {
present: (0, b.isValidElement)(t),
@@ -86454,7 +86454,7 @@ function h8({ config: e, data: t, children: n, className: r, chartProps: i, stac
formatLabel: r.formatLabel,
onChange: r.onChange
},
- chartChildren: e.filter((e) => !((0, b.isValidElement)(e) && e.type === f8))
+ chartChildren: e.filter((e) => !((0, b.isValidElement)(e) && e.type === p8))
};
}, [n]), A = k.slot.present, j = a === "stacked" || a === "percent", M = o === "horizontal", N = A && !m ? D : t, ee = (0, b.useCallback)((e) => {
S(e), p?.(e);
@@ -86483,12 +86483,12 @@ function h8({ config: e, data: t, children: n, className: r, chartProps: i, stac
ee,
C
]);
- return /* @__PURE__ */ (0, x.jsx)(z8e, {
+ return /* @__PURE__ */ (0, x.jsx)(R8e, {
value: te,
- children: /* @__PURE__ */ (0, x.jsxs)(i8, {
+ children: /* @__PURE__ */ (0, x.jsxs)(a8, {
className: r,
config: e,
- footer: A && !m && /* @__PURE__ */ (0, x.jsx)(D8e, {
+ footer: A && !m && /* @__PURE__ */ (0, x.jsx)(E8e, {
data: t,
chartConfig: e,
xDataKey: g,
@@ -86504,7 +86504,7 @@ function h8({ config: e, data: t, children: n, className: r, chartProps: i, stac
O.onChange(e), k.slot.onChange?.(e);
}
}),
- children: [/* @__PURE__ */ (0, x.jsx)(a8, { isLoading: m }), /* @__PURE__ */ (0, x.jsxs)(R6e, {
+ children: [/* @__PURE__ */ (0, x.jsx)(o8, { isLoading: m }), /* @__PURE__ */ (0, x.jsxs)(L6e, {
id: _,
accessibilityLayer: !0,
layout: M ? "vertical" : "horizontal",
@@ -86516,10 +86516,10 @@ function h8({ config: e, data: t, children: n, className: r, chartProps: i, stac
onMouseLeave: () => w(!1),
...i,
children: [
- d && /* @__PURE__ */ (0, x.jsx)(p8, { variant: d }),
- /* @__PURE__ */ (0, x.jsx)(H$e, { color: "white" }),
+ d && /* @__PURE__ */ (0, x.jsx)(m8, { variant: d }),
+ /* @__PURE__ */ (0, x.jsx)(V$e, { color: "white" }),
k.chartChildren,
- m && /* @__PURE__ */ (0, x.jsx)(o5e, {
+ m && /* @__PURE__ */ (0, x.jsx)(a5e, {
chartId: _,
onShimmerExit: E
})
@@ -86528,8 +86528,8 @@ function h8({ config: e, data: t, children: n, className: r, chartProps: i, stac
})
});
}
-function B8e({ dataKey: e, variant: t = "default", radius: n, animationType: r, isClickable: i = !1, enableHoverHighlight: a = !1, glowing: o = !1, bufferBar: s = !1, barProps: c }) {
- let { config: l, isStacked: u, isHorizontal: d, isLoading: f, barRadius: p, animationType: m, introStartedAt: h, dataLength: g, selectedDataKey: _, selectDataKey: v, isMouseInChart: y } = m8(), S = (0, b.useId)().replace(/:/g, ""), C = cre();
+function z8e({ dataKey: e, variant: t = "default", radius: n, animationType: r, isClickable: i = !1, enableHoverHighlight: a = !1, glowing: o = !1, bufferBar: s = !1, barProps: c }) {
+ let { config: l, isStacked: u, isHorizontal: d, isLoading: f, barRadius: p, animationType: m, introStartedAt: h, dataLength: g, selectedDataKey: _, selectDataKey: v, isMouseInChart: y } = h8(), S = (0, b.useId)().replace(/:/g, ""), C = cre();
if (f) return null;
let w = n ?? p, T = _ === e, E = C ? "none" : r ?? m, D = {
id: S,
@@ -86549,65 +86549,65 @@ function B8e({ dataKey: e, variant: t = "default", radius: n, animationType: r,
i && v(T ? null : e);
}
};
- return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(w6, {
+ return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(T6, {
dataKey: e,
- stackId: u ? F8e : void 0,
+ stackId: u ? P8e : void 0,
fill: `url(#${S}-colors-${e})`,
radius: w,
isAnimationActive: !1,
style: i || a ? { cursor: "pointer" } : void 0,
- shape: (e) => /* @__PURE__ */ (0, x.jsx)(K8e, {
+ shape: (e) => /* @__PURE__ */ (0, x.jsx)(G8e, {
...e,
...D,
animationType: E
}),
- activeBar: (e) => /* @__PURE__ */ (0, x.jsx)(K8e, {
+ activeBar: (e) => /* @__PURE__ */ (0, x.jsx)(G8e, {
...e,
...D,
animationType: "none"
}),
...c
}), /* @__PURE__ */ (0, x.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, x.jsx)(X8e, {
+ /* @__PURE__ */ (0, x.jsx)(Y8e, {
id: S,
dataKey: e,
config: l
}),
- t === "hatched" && /* @__PURE__ */ (0, x.jsx)(Z8e, {
+ t === "hatched" && /* @__PURE__ */ (0, x.jsx)(X8e, {
id: S,
dataKey: e
}),
- t === "duotone" && /* @__PURE__ */ (0, x.jsx)($8e, {
+ t === "duotone" && /* @__PURE__ */ (0, x.jsx)(Q8e, {
id: S,
dataKey: e,
config: l
}),
- t === "duotone-reverse" && /* @__PURE__ */ (0, x.jsx)(e5e, {
+ t === "duotone-reverse" && /* @__PURE__ */ (0, x.jsx)($8e, {
id: S,
dataKey: e,
config: l
}),
- t === "gradient" && /* @__PURE__ */ (0, x.jsx)(t5e, {
+ t === "gradient" && /* @__PURE__ */ (0, x.jsx)(e5e, {
id: S,
dataKey: e
}),
- t === "stripped" && /* @__PURE__ */ (0, x.jsx)(n5e, {
+ t === "stripped" && /* @__PURE__ */ (0, x.jsx)(t5e, {
id: S,
dataKey: e
}),
- s && /* @__PURE__ */ (0, x.jsx)(Q8e, {
+ s && /* @__PURE__ */ (0, x.jsx)(Z8e, {
id: S,
dataKey: e
}),
- o && /* @__PURE__ */ (0, x.jsx)(r5e, {
+ o && /* @__PURE__ */ (0, x.jsx)(n5e, {
id: S,
dataKey: e
})
] })] });
}
-function V8e({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
- let { isLoading: o, isHorizontal: s } = m8();
- return o ? null : /* @__PURE__ */ (0, x.jsx)(t3e, {
+function B8e({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
+ let { isLoading: o, isHorizontal: s } = h8();
+ return o ? null : /* @__PURE__ */ (0, x.jsx)(e3e, {
tickLine: e,
axisLine: t,
tickMargin: n,
@@ -86616,9 +86616,9 @@ function V8e({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...a
});
}
-function H8e({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
- let { isLoading: s, isHorizontal: c } = m8();
- return s ? null : /* @__PURE__ */ (0, x.jsx)(m3e, {
+function V8e({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
+ let { isLoading: s, isHorizontal: c } = h8();
+ return s ? null : /* @__PURE__ */ (0, x.jsx)(p3e, {
tickLine: e,
axisLine: t,
tickMargin: n,
@@ -86628,33 +86628,33 @@ function H8e({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...o
});
}
-function U8e({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
- let { isHorizontal: i } = m8();
- return /* @__PURE__ */ (0, x.jsx)($1e, {
+function H8e({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
+ let { isHorizontal: i } = h8();
+ return /* @__PURE__ */ (0, x.jsx)(Q1e, {
strokeDasharray: e,
vertical: t ?? i,
horizontal: n ?? !i,
...r
});
}
-function W8e({ variant: e, roundness: t, defaultIndex: n }) {
- let { isLoading: r, selectedDataKey: i } = m8();
- return r ? null : /* @__PURE__ */ (0, x.jsx)(l8, {
+function U8e({ variant: e, roundness: t, defaultIndex: n }) {
+ let { isLoading: r, selectedDataKey: i } = h8();
+ return r ? null : /* @__PURE__ */ (0, x.jsx)(u8, {
cursor: !1,
defaultIndex: n,
- content: /* @__PURE__ */ (0, x.jsx)(c8, {
+ content: /* @__PURE__ */ (0, x.jsx)(l8, {
selected: i,
roundness: t,
variant: e
})
});
}
-function G8e({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
- let { selectedDataKey: i, selectDataKey: a } = m8();
- return /* @__PURE__ */ (0, x.jsx)(d8, {
+function W8e({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
+ let { selectedDataKey: i, selectDataKey: a } = h8();
+ return /* @__PURE__ */ (0, x.jsx)(f8, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, x.jsx)(u8, {
+ content: /* @__PURE__ */ (0, x.jsx)(d8, {
selected: i,
onSelectChange: a,
isClickable: r,
@@ -86662,8 +86662,8 @@ function G8e({ variant: e, align: t = "right", verticalAlign: n = "top", isClick
})
});
}
-var K8e = (e) => {
- let { x: t = 0, y: n = 0, width: r = 0, height: i = 0, id: a, dataKey: o, variant: s, barRadius: c, glowing: l, bufferBar: u, isClickable: d, enableHoverHighlight: f, isMouseInChart: p, isHorizontal: m = !1, animationType: h = "none", introStartedAt: g = 0, selectedDataKey: _, isActive: v, dataLength: y = 0, onClick: b } = e, S = typeof e.index == "number" ? e.index : -1, C = u && y > 0 && S === y - 1, w = s === "stripped", T = q8e(h, S, y, m, g), E = C ? `url(#${a}-buffer-hatched-${o})` : J8e(s, a, o), D = l ? `url(#${a}-bar-glow-${o})` : void 0, O = Y8e({
+var G8e = (e) => {
+ let { x: t = 0, y: n = 0, width: r = 0, height: i = 0, id: a, dataKey: o, variant: s, barRadius: c, glowing: l, bufferBar: u, isClickable: d, enableHoverHighlight: f, isMouseInChart: p, isHorizontal: m = !1, animationType: h = "none", introStartedAt: g = 0, selectedDataKey: _, isActive: v, dataLength: y = 0, onClick: b } = e, S = typeof e.index == "number" ? e.index : -1, C = u && y > 0 && S === y - 1, w = s === "stripped", T = K8e(h, S, y, m, g), E = C ? `url(#${a}-buffer-hatched-${o})` : q8e(s, a, o), D = l ? `url(#${a}-bar-glow-${o})` : void 0, O = J8e({
isClickable: d,
selectedDataKey: _,
dataKey: o,
@@ -86675,7 +86675,7 @@ var K8e = (e) => {
c,
0,
0
- ] : c, j = /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(mZ, {
+ ] : c, j = /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(pZ, {
x: t,
y: n,
width: r,
@@ -86686,7 +86686,7 @@ var K8e = (e) => {
filter: D,
stroke: C ? `url(#${a}-colors-${o})` : void 0,
strokeWidth: C ? 1 : void 0
- }), w && /* @__PURE__ */ (0, x.jsx)(mZ, {
+ }), w && /* @__PURE__ */ (0, x.jsx)(pZ, {
x: t,
y: n - 4,
width: r,
@@ -86697,7 +86697,7 @@ var K8e = (e) => {
return /* @__PURE__ */ (0, x.jsxs)("g", {
style: k,
onClick: b,
- children: [/* @__PURE__ */ (0, x.jsx)(mZ, {
+ children: [/* @__PURE__ */ (0, x.jsx)(pZ, {
...e,
fill: "transparent"
}), T ? /* @__PURE__ */ (0, x.jsx)(o_.g, {
@@ -86708,7 +86708,7 @@ var K8e = (e) => {
children: j
}) : j]
});
-}, q8e = (e, t, n, r, i) => {
+}, K8e = (e, t, n, r, i) => {
if (e === "none" || t < 0 || n <= 0) return null;
let a = n - 1, o = a / 2, s;
switch (e) {
@@ -86723,11 +86723,11 @@ var K8e = (e) => {
break;
default: s = t;
}
- let c = s * L8e * 1e3, l = I8e * 1e3, u = c + l, d = Date.now() - i;
+ let c = s * I8e * 1e3, l = F8e * 1e3, u = c + l, d = Date.now() - i;
if (d >= u) return null;
let f = d <= c ? 0 : (d - c) / l, p = {
duration: (u - Math.max(d, c)) / 1e3,
- ease: R8e,
+ ease: L8e,
delay: Math.max(0, c - d) / 1e3
};
return r ? {
@@ -86741,7 +86741,7 @@ var K8e = (e) => {
transition: p,
style: { originY: 1 }
};
-}, J8e = (e, t, n) => {
+}, q8e = (e, t, n) => {
switch (e) {
case "hatched": return `url(#${t}-hatched-${n})`;
case "duotone": return `url(#${t}-duotone-${n})`;
@@ -86750,11 +86750,11 @@ var K8e = (e) => {
case "stripped": return `url(#${t}-stripped-${n})`;
default: return `url(#${t}-colors-${n})`;
}
-}, Y8e = ({ isClickable: e, selectedDataKey: t, dataKey: n, enableHoverHighlight: r, isMouseInChart: i, isActive: a }) => {
+}, J8e = ({ isClickable: e, selectedDataKey: t, dataKey: n, enableHoverHighlight: r, isMouseInChart: i, isActive: a }) => {
let o = e && t !== null ? t === null || t === n ? 1 : .15 : 1;
return r && i ? a ? o : o * .3 : o;
-}, X8e = ({ id: e, dataKey: t, config: n }) => {
- let r = s8(n[t] ?? {});
+}, Y8e = ({ id: e, dataKey: t, config: n }) => {
+ let r = c8(n[t] ?? {});
return /* @__PURE__ */ (0, x.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
x1: "0",
@@ -86775,7 +86775,7 @@ var K8e = (e) => {
}, i);
})
});
-}, Z8e = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
+}, X8e = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
/* @__PURE__ */ (0, x.jsxs)("pattern", {
id: `${e}-hatched-mask-pattern`,
x: "0",
@@ -86816,7 +86816,7 @@ var K8e = (e) => {
mask: `url(#${e}-hatched-mask-${t})`
})
})
-] }), Q8e = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
+] }), Z8e = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
/* @__PURE__ */ (0, x.jsxs)("pattern", {
id: `${e}-buffer-hatched-mask-pattern`,
x: "0",
@@ -86857,8 +86857,8 @@ var K8e = (e) => {
mask: `url(#${e}-buffer-hatched-mask-${t})`
})
})
-] }), $8e = ({ id: e, dataKey: t, config: n }) => {
- let r = s8(n[t] ?? {});
+] }), Q8e = ({ id: e, dataKey: t, config: n }) => {
+ let r = c8(n[t] ?? {});
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
/* @__PURE__ */ (0, x.jsxs)("linearGradient", {
id: `${e}-duotone-mask-gradient-${t}`,
@@ -86925,8 +86925,8 @@ var K8e = (e) => {
})
})
] });
-}, e5e = ({ id: e, dataKey: t, config: n }) => {
- let r = s8(n[t] ?? {});
+}, $8e = ({ id: e, dataKey: t, config: n }) => {
+ let r = c8(n[t] ?? {});
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
/* @__PURE__ */ (0, x.jsxs)("linearGradient", {
id: `${e}-duotone-reverse-mask-gradient-${t}`,
@@ -86993,7 +86993,7 @@ var K8e = (e) => {
})
})
] });
-}, t5e = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
+}, e5e = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
/* @__PURE__ */ (0, x.jsxs)("linearGradient", {
id: `${e}-gradient-mask-gradient`,
x1: "0",
@@ -87030,7 +87030,7 @@ var K8e = (e) => {
mask: `url(#${e}-gradient-mask-${t})`
})
})
-] }), n5e = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
+] }), t5e = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
/* @__PURE__ */ (0, x.jsxs)("linearGradient", {
id: `${e}-stripped-mask-gradient`,
x1: "0",
@@ -87067,7 +87067,7 @@ var K8e = (e) => {
mask: `url(#${e}-stripped-mask-${t})`
})
})
-] }), r5e = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, x.jsxs)("filter", {
+] }), n5e = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, x.jsxs)("filter", {
id: `${e}-bar-glow-${t}`,
x: "-100%",
y: "-100%",
@@ -87087,35 +87087,35 @@ var K8e = (e) => {
}),
/* @__PURE__ */ (0, x.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, x.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, x.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), i5e = (e = 17, t = .05, n = .9) => Array.from({ length: e }, (r, i) => {
+}), r5e = (e = 17, t = .05, n = .9) => Array.from({ length: e }, (r, i) => {
let a = i / (e - 1), o = t + Math.sin(a * Math.PI) ** 2 * (n - t);
return {
offset: `${(a * 100).toFixed(0)}%`,
opacity: Number(o.toFixed(3))
};
});
-function a5e(e, t = 12) {
+function i5e(e, t = 12) {
let [n, r] = (0, b.useState)(!1), i = (0, b.useCallback)(() => {
e && r((e) => !e);
}, [e]);
return {
- loadingData: (0, b.useMemo)(() => v8e(t, 20, 80), [t, n]),
+ loadingData: (0, b.useMemo)(() => _8e(t, 20, 80), [t, n]),
onShimmerExit: i
};
}
-var o5e = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(w6, {
- dataKey: N8e,
+var a5e = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(T6, {
+ dataKey: M8e,
fill: "currentColor",
fillOpacity: .15,
- radius: M8e,
+ radius: j8e,
isAnimationActive: !1,
legendType: "none",
style: { mask: `url(#${e}-loading-mask)` }
-}), /* @__PURE__ */ (0, x.jsx)("defs", { children: /* @__PURE__ */ (0, x.jsx)(s5e, {
+}), /* @__PURE__ */ (0, x.jsx)("defs", { children: /* @__PURE__ */ (0, x.jsx)(o5e, {
chartId: e,
onShimmerExit: t
-}) })] }), s5e = ({ chartId: e, onShimmerExit: t }) => {
- let n = i5e(), r = (0, b.useRef)(-1);
+}) })] }), o5e = ({ chartId: e, onShimmerExit: t }) => {
+ let n = r5e(), r = (0, b.useRef)(-1);
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
/* @__PURE__ */ (0, x.jsx)("linearGradient", {
id: `${e}-loading-mask-gradient`,
@@ -87146,7 +87146,7 @@ var o5e = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, x.jsxs)(x.Fr
initial: { x: -1 },
animate: { x: 2 },
transition: {
- duration: P8e / 1e3,
+ duration: N8e / 1e3,
ease: "linear",
repeat: Infinity,
repeatType: "loop"
@@ -87168,13 +87168,13 @@ var o5e = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, x.jsxs)(x.Fr
})
] });
};
-h8.Bar = B8e, h8.XAxis = V8e, h8.YAxis = H8e, h8.Grid = U8e, h8.Tooltip = W8e, h8.Legend = G8e, h8.Brush = f8;
+g8.Bar = z8e, g8.XAxis = B8e, g8.YAxis = V8e, g8.Grid = H8e, g8.Tooltip = U8e, g8.Legend = W8e, g8.Brush = p8;
//#endregion
//#region src/react/charts/chart-card.tsx
-var g8 = `${WO({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
-function _8({ title: e, children: t }) {
+var _8 = `${WO({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
+function v8({ title: e, children: t }) {
return /* @__PURE__ */ (0, x.jsxs)("section", {
- className: g8,
+ className: _8,
"aria-label": e,
children: [/* @__PURE__ */ (0, x.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
@@ -87185,31 +87185,31 @@ function _8({ title: e, children: t }) {
})]
});
}
-var c5e = (e) => (e.codePointAt(0) ?? 0) > 11903 ? 13 : 7, l5e = (e) => [...new Intl.Segmenter(void 0, { granularity: "grapheme" }).segment(e)].map((e) => e.segment), v8;
-function u5e(e) {
- if (v8 === void 0) try {
- v8 = document.createElement("canvas").getContext("2d"), v8 && (v8.font = `12px ${getComputedStyle(document.body).fontFamily || "sans-serif"}`);
+var s5e = (e) => (e.codePointAt(0) ?? 0) > 11903 ? 13 : 7, c5e = (e) => [...new Intl.Segmenter(void 0, { granularity: "grapheme" }).segment(e)].map((e) => e.segment), y8;
+function l5e(e) {
+ if (y8 === void 0) try {
+ y8 = document.createElement("canvas").getContext("2d"), y8 && (y8.font = `12px ${getComputedStyle(document.body).fontFamily || "sans-serif"}`);
} catch {
- v8 = null;
+ y8 = null;
}
- return v8 ? v8.measureText(e).width : null;
+ return y8 ? y8.measureText(e).width : null;
}
-var y8 = (e) => u5e(e) ?? l5e(e).reduce((e, t) => e + c5e(t), 0);
-function d5e(e, t) {
- if (y8(e) <= t) return e;
- let n = l5e(e), r = 0;
- for (; r < n.length && y8(`${n.slice(0, r + 1).join("")}…`) <= t;) r += 1;
+var b8 = (e) => l5e(e) ?? c5e(e).reduce((e, t) => e + s5e(t), 0);
+function u5e(e, t) {
+ if (b8(e) <= t) return e;
+ let n = c5e(e), r = 0;
+ for (; r < n.length && b8(`${n.slice(0, r + 1).join("")}…`) <= t;) r += 1;
return `${n.slice(0, r).join("")}…`;
}
-var f5e = (e, t = 104) => Math.min(t, Math.max(24, ...e.map(y8)) + 12);
-function b8(e) {
+var d5e = (e, t = 104) => Math.min(t, Math.max(24, ...e.map(b8)) + 12);
+function x8(e) {
let { along: t, payload: n, width: r = 0, visibleTicksCount: i = 1, ...a } = e, o = String(n?.value ?? ""), s = t === "x" ? r / Math.max(1, i) - 2 : r - 8;
- return /* @__PURE__ */ (0, x.jsxs)("g", { children: [/* @__PURE__ */ (0, x.jsx)("title", { children: o }), /* @__PURE__ */ (0, x.jsx)(x4, {
+ return /* @__PURE__ */ (0, x.jsxs)("g", { children: [/* @__PURE__ */ (0, x.jsx)("title", { children: o }), /* @__PURE__ */ (0, x.jsx)(S4, {
...a,
- children: d5e(o, s)
+ children: u5e(o, s)
})] });
}
-function x8({ title: e, figure: t, note: n }) {
+function S8({ title: e, figure: t, note: n }) {
return /* @__PURE__ */ (0, x.jsxs)("header", {
className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",
children: [/* @__PURE__ */ (0, x.jsxs)("span", {
@@ -87227,24 +87227,24 @@ function x8({ title: e, figure: t, note: n }) {
})]
});
}
-var S8 = [
+var C8 = [
"var(--color-chart-1)",
"var(--color-chart-2)",
"var(--color-chart-3)",
"var(--color-chart-4)",
"var(--color-chart-5)",
"var(--color-chart-6)"
-], C8 = (e) => ({ light: [e] }), w8 = (e) => `s${e}`;
-function p5e(e) {
- return Object.fromEntries(e.map((e, t) => [w8(t), {
+], w8 = (e) => ({ light: [e] }), T8 = (e) => `s${e}`;
+function f5e(e) {
+ return Object.fromEntries(e.map((e, t) => [T8(t), {
label: e,
- colors: C8(S8[t % S8.length])
+ colors: w8(C8[t % C8.length])
}]));
}
//#endregion
//#region src/react/charts/chart-tip.tsx
-var m5e = "flex min-w-32 flex-col gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl";
-function h5e({ swatch: e, name: t, value: n }) {
+var p5e = "flex min-w-32 flex-col gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl";
+function m5e({ swatch: e, name: t, value: n }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex w-full items-center gap-2",
children: [e, /* @__PURE__ */ (0, x.jsxs)("div", {
@@ -87259,33 +87259,33 @@ function h5e({ swatch: e, name: t, value: n }) {
})]
});
}
-var g5e = "size-2.5 shrink-0 rounded-xs";
-function _5e({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
- let { config: o } = r8(), s = (t ?? []).filter((e) => e.type !== "none");
+var h5e = "size-2.5 shrink-0 rounded-xs";
+function g5e({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
+ let { config: o } = i8(), s = (t ?? []).filter((e) => e.type !== "none");
if (!e || !s.length) return /* @__PURE__ */ (0, x.jsx)("span", { className: "p-4" });
let c = a || typeof n != "string" ? null : o[n]?.label ?? n;
return /* @__PURE__ */ (0, x.jsxs)("div", {
- className: m5e,
+ className: p5e,
children: [c ? /* @__PURE__ */ (0, x.jsx)("div", {
className: "font-medium text-foreground",
children: c
}) : null, s.map((e, t) => {
- let n = e.payload ?? {}, a = `${(r ? n[r] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, s = o8(o, e, a), c = i ? n[i] : e.value;
- return /* @__PURE__ */ (0, x.jsx)(h5e, {
+ let n = e.payload ?? {}, a = `${(r ? n[r] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, s = s8(o, e, a), c = i ? n[i] : e.value;
+ return /* @__PURE__ */ (0, x.jsx)(m5e, {
name: s?.label ?? e.name,
value: Number(c ?? 0),
swatch: /* @__PURE__ */ (0, x.jsx)("i", {
- className: g5e,
+ className: h5e,
style: { background: `var(--color-${a}-0)` }
})
}, a + t);
})]
});
}
-function T8({ nameKey: e, valueKey: t, hideLabel: n }) {
- return /* @__PURE__ */ (0, x.jsx)(l8, {
+function E8({ nameKey: e, valueKey: t, hideLabel: n }) {
+ return /* @__PURE__ */ (0, x.jsx)(u8, {
cursor: !1,
- content: /* @__PURE__ */ (0, x.jsx)(_5e, {
+ content: /* @__PURE__ */ (0, x.jsx)(g5e, {
nameKey: e,
valueKey: t,
hideLabel: n
@@ -87294,41 +87294,41 @@ function T8({ nameKey: e, valueKey: t, hideLabel: n }) {
}
//#endregion
//#region src/react/charts/bar-card.tsx
-var E8 = [0, (e) => e * 1.2];
-function v5e(e) {
+var D8 = [0, (e) => e * 1.2];
+function _5e(e) {
let t = Math.abs(e), n = (t, n) => {
let r = e / t;
return `${r.toLocaleString(void 0, { maximumFractionDigits: +(Math.abs(r) < 100) })}${n}`;
};
return t >= 1e8 ? n(1e8, "亿") : t >= 1e5 ? n(1e4, "万") : e.toLocaleString();
}
-var y5e = (e) => ({
+var v5e = (e) => ({
position: e,
className: "fill-text-secondary",
- formatter: (e) => v5e(Number(e))
+ formatter: (e) => _5e(Number(e))
});
-function D8({ title: e, unit: t, series: n, rows: r, color: i, empty: a, layout: o = "vertical" }) {
+function O8({ title: e, unit: t, series: n, rows: r, color: i, empty: a, layout: o = "vertical" }) {
let s = r.filter((e) => Number.isFinite(e.value) && e.value >= 0).map((e) => ({
name: e.name,
value: e.value
})), c = s.reduce((e, t) => e + t.value, 0);
- if (!c) return /* @__PURE__ */ (0, x.jsx)(_8, {
+ if (!c) return /* @__PURE__ */ (0, x.jsx)(v8, {
title: e,
children: a
});
let l = o === "horizontal";
return /* @__PURE__ */ (0, x.jsxs)("section", {
- className: g8,
+ className: _8,
"aria-label": e,
- children: [/* @__PURE__ */ (0, x.jsx)(x8, {
+ children: [/* @__PURE__ */ (0, x.jsx)(S8, {
title: e,
figure: c.toLocaleString(),
note: t
- }), /* @__PURE__ */ (0, x.jsxs)(h8, {
+ }), /* @__PURE__ */ (0, x.jsxs)(g8, {
data: s,
config: { value: {
label: n,
- colors: C8(i)
+ colors: w8(i)
} },
layout: o,
barRadius: 4,
@@ -87340,40 +87340,40 @@ function D8({ title: e, unit: t, series: n, rows: r, color: i, empty: a, layout:
} } : void 0,
className: l ? "aspect-auto h-64 flex-none text-text-secondary" : "aspect-auto h-56 flex-none text-text-secondary",
children: [
- /* @__PURE__ */ (0, x.jsx)(h8.Grid, {}),
- l ? /* @__PURE__ */ (0, x.jsx)(h8.YAxis, {
+ /* @__PURE__ */ (0, x.jsx)(g8.Grid, {}),
+ l ? /* @__PURE__ */ (0, x.jsx)(g8.YAxis, {
dataKey: "name",
interval: 0,
- tick: /* @__PURE__ */ (0, x.jsx)(b8, { along: "y" }),
- width: f5e(s.map((e) => e.name))
- }) : /* @__PURE__ */ (0, x.jsx)(h8.XAxis, {
+ tick: /* @__PURE__ */ (0, x.jsx)(x8, { along: "y" }),
+ width: d5e(s.map((e) => e.name))
+ }) : /* @__PURE__ */ (0, x.jsx)(g8.XAxis, {
dataKey: "name",
interval: 0,
- tick: /* @__PURE__ */ (0, x.jsx)(b8, { along: "x" })
+ tick: /* @__PURE__ */ (0, x.jsx)(x8, { along: "x" })
}),
- l ? /* @__PURE__ */ (0, x.jsx)(h8.XAxis, {
+ l ? /* @__PURE__ */ (0, x.jsx)(g8.XAxis, {
hide: !0,
- domain: E8
- }) : /* @__PURE__ */ (0, x.jsx)(h8.YAxis, {
+ domain: D8
+ }) : /* @__PURE__ */ (0, x.jsx)(g8.YAxis, {
hide: !0,
- domain: E8
+ domain: D8
}),
- /* @__PURE__ */ (0, x.jsx)(h8.Bar, {
+ /* @__PURE__ */ (0, x.jsx)(g8.Bar, {
dataKey: "value",
enableHoverHighlight: !0,
barProps: {
dataKey: "value",
- label: y5e(l ? "right" : "top")
+ label: v5e(l ? "right" : "top")
}
}),
- /* @__PURE__ */ (0, x.jsx)(T8, {})
+ /* @__PURE__ */ (0, x.jsx)(E8, {})
]
})]
});
}
//#endregion
//#region src/react/charts/heat.ts
-var b5e = [
+var y5e = [
"周一",
"周二",
"周三",
@@ -87381,8 +87381,8 @@ var b5e = [
"周五",
"周六",
"周日"
-], x5e = (e, t) => e ? Math.max(.12, e / t) : 0;
-function S5e(e) {
+], b5e = (e, t) => e ? Math.max(.12, e / t) : 0;
+function x5e(e) {
let t = Array.from({ length: 7 }, () => Array(24).fill(0));
for (let n of e?.hours || []) {
let { weekday: e, hour: r, count: i } = n;
@@ -87392,14 +87392,14 @@ function S5e(e) {
return {
cells: t.flatMap((e, t) => e.map((e, n) => ({
key: `${t}-${n}`,
- label: `${b5e[t]} ${n}:00`,
+ label: `${y5e[t]} ${n}:00`,
count: e,
- share: x5e(e, r)
+ share: b5e(e, r)
}))),
total: n.reduce((e, t) => e + t, 0)
};
}
-function C5e(e) {
+function S5e(e) {
let t = (e?.days || []).filter((e) => /^\d{4}-\d{2}-\d{2}$/.test(e.date) && Number.isFinite(e.count) && e.count >= 0).slice().sort((e, t) => e.date.localeCompare(t.date)), n = {
cells: [],
total: 0,
@@ -87417,7 +87417,7 @@ function C5e(e) {
key: r,
label: r,
count: s,
- share: x5e(s, o)
+ share: b5e(s, o)
};
});
return {
@@ -87429,7 +87429,7 @@ function C5e(e) {
}
//#endregion
//#region src/react/charts/heat-card.tsx
-var O8 = 14, k8 = 17, w5e = {
+var k8 = 14, A8 = 17, C5e = {
4: {
fill: "fill-chart-4",
dot: "bg-chart-4"
@@ -87438,42 +87438,42 @@ var O8 = 14, k8 = 17, w5e = {
fill: "fill-chart-5",
dot: "bg-chart-5"
}
-}, T5e = {
+}, w5e = {
start: "translate-x-0",
center: "-translate-x-1/2",
end: "-translate-x-full"
};
-function E5e({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
+function T5e({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
"aria-hidden": !0,
style: {
left: `${r}%`,
top: `${i}%`
},
- className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${m5e} ${T5e[a]}`,
+ className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${p5e} ${w5e[a]}`,
children: [/* @__PURE__ */ (0, x.jsx)("div", {
className: "font-medium text-foreground",
children: e.label
- }), /* @__PURE__ */ (0, x.jsx)(h5e, {
+ }), /* @__PURE__ */ (0, x.jsx)(m5e, {
name: t,
value: e.count,
- swatch: /* @__PURE__ */ (0, x.jsx)("i", { className: `${g5e} ${w5e[n].dot}` })
+ swatch: /* @__PURE__ */ (0, x.jsx)("i", { className: `${h5e} ${C5e[n].dot}` })
})]
});
}
-function D5e({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s, tone: c }) {
- let [l, u] = (0, b.useState)(-1), d = o ? 30 : 0, f = o ? 18 : 0, p = d + i * k8, m = f + a * k8, h = (e) => ({
- x: d + e % i * k8,
- y: f + Math.floor(e / i) * k8
- }), g = n[l], _ = g ? h(l) : null, v = _ ? (_.x + O8 / 2) / p : 0, y = v < .1 ? "start" : v > .9 ? "end" : "center", S = _ ? {
+function E5e({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s, tone: c }) {
+ let [l, u] = (0, b.useState)(-1), d = o ? 30 : 0, f = o ? 18 : 0, p = d + i * A8, m = f + a * A8, h = (e) => ({
+ x: d + e % i * A8,
+ y: f + Math.floor(e / i) * A8
+ }), g = n[l], _ = g ? h(l) : null, v = _ ? (_.x + k8 / 2) / p : 0, y = v < .1 ? "start" : v > .9 ? "end" : "center", S = _ ? {
start: _.x,
- center: _.x + O8 / 2,
- end: _.x + O8
+ center: _.x + k8 / 2,
+ end: _.x + k8
}[y] : 0;
return /* @__PURE__ */ (0, x.jsxs)("section", {
- className: g8,
+ className: _8,
children: [
- /* @__PURE__ */ (0, x.jsx)(x8, {
+ /* @__PURE__ */ (0, x.jsx)(S8, {
title: e,
figure: (g ? g.count : r).toLocaleString(),
note: g ? g.label : t.unit
@@ -87496,19 +87496,19 @@ function D5e({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis
"aria-label": `${e.label},${e.count} ${t.cellUnit}`,
x: r,
y: i,
- width: O8,
- height: O8,
+ width: k8,
+ height: k8,
rx: 3,
fillOpacity: e.share || 1,
opacity: l >= 0 && l !== n ? .4 : 1,
- className: e.share ? `outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring ${w5e[c].fill}` : "fill-chart-track outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring",
+ className: e.share ? `outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring ${C5e[c].fill}` : "fill-chart-track outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring",
onPointerEnter: () => u(n),
onFocus: () => u(n),
onBlur: () => u(-1)
}, e.key);
})]
})
- }), g && _ ? /* @__PURE__ */ (0, x.jsx)(E5e, {
+ }), g && _ ? /* @__PURE__ */ (0, x.jsx)(T5e, {
cell: g,
series: t.series,
tone: c,
@@ -87524,24 +87524,24 @@ function D5e({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis
]
});
}
-var O5e = /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [b5e.map((e, t) => /* @__PURE__ */ (0, x.jsx)("text", {
+var D5e = /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [y5e.map((e, t) => /* @__PURE__ */ (0, x.jsx)("text", {
x: 0,
- y: 18 + t * k8 + 7,
+ y: 18 + t * A8 + 7,
dominantBaseline: "middle",
className: "fill-text-secondary text-caption-1-regular",
children: e
}, e)), Array.from({ length: 24 }, (e, t) => t % 2 ? null : /* @__PURE__ */ (0, x.jsx)("text", {
- x: 30 + t * k8,
+ x: 30 + t * A8,
y: 8,
dominantBaseline: "middle",
className: "fill-text-secondary text-caption-1-regular",
children: t
}, t))] });
-function k5e({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {
- let o = S5e(e), s = C5e(e);
+function O5e({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {
+ let o = x5e(e), s = S5e(e);
return s.cells.length ? /* @__PURE__ */ (0, x.jsxs)("div", {
className: "inline-grid w-full items-start gap-5 lg:grid-cols-2",
- children: [/* @__PURE__ */ (0, x.jsx)(D5e, {
+ children: [/* @__PURE__ */ (0, x.jsx)(E5e, {
title: t,
words: r,
tone: i,
@@ -87549,9 +87549,9 @@ function k5e({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
total: o.total,
columns: 24,
rows: 7,
- axis: O5e,
+ axis: D5e,
footer: /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)("span", { children: "星期 × 小时" }), /* @__PURE__ */ (0, x.jsx)("span", { children: e?.timezone || "UTC+08:00" })] })
- }), /* @__PURE__ */ (0, x.jsx)(D5e, {
+ }), /* @__PURE__ */ (0, x.jsx)(E5e, {
title: n,
words: r,
tone: i,
@@ -87561,14 +87561,14 @@ function k5e({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
rows: 7,
footer: /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)("span", { children: s.start }), /* @__PURE__ */ (0, x.jsx)("span", { children: s.end })] })
})]
- }) : /* @__PURE__ */ (0, x.jsx)(_8, {
+ }) : /* @__PURE__ */ (0, x.jsx)(v8, {
title: t,
children: a
});
}
//#endregion
//#region src/react/components/expandable-ranking.tsx
-function A5e({ children: e, className: t = "", previewCount: n = 10 }) {
+function k5e({ children: e, className: t = "", previewCount: n = 10 }) {
let r = (0, b.useId)(), i = (0, b.useRef)(null), [a, o] = (0, b.useState)(!1), [s, c] = (0, b.useState)(!1), l = b.Children.toArray(e), u = l.length > n;
(0, b.useLayoutEffect)(() => {
let e = i.current;
@@ -87615,14 +87615,14 @@ function A5e({ children: e, className: t = "", previewCount: n = 10 }) {
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radial-chart.tsx
-var j5e = "30%", M5e = "100%", N5e = 5, P5e = 14, F5e = 5, I5e = 1500, L5e = (0, b.createContext)(null);
-function A8() {
- let e = (0, b.use)(L5e);
+var A5e = "30%", j5e = "100%", M5e = 5, N5e = 14, P5e = 5, F5e = 1500, I5e = (0, b.createContext)(null);
+function j8() {
+ let e = (0, b.use)(I5e);
if (!e) throw Error("Radial chart parts (<RadialBar />, <Tooltip />, …) must be used within <EvilRadialChart />");
return e;
}
-function j8({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = j5e, outerRadius: l = M5e, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
- let m = (0, b.useId)().replace(/:/g, ""), [h, g] = (0, b.useState)(u), _ = W5e(f), v = V5e(o), y = (0, b.useCallback)((e, t) => {
+function M8({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = A5e, outerRadius: l = j5e, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
+ let m = (0, b.useId)().replace(/:/g, ""), [h, g] = (0, b.useState)(u), _ = U5e(f), v = B5e(o), y = (0, b.useCallback)((e, t) => {
g(e), d?.(e === null ? null : {
dataKey: e,
value: t ?? 0
@@ -87649,12 +87649,12 @@ function j8({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
h,
y
]);
- return /* @__PURE__ */ (0, x.jsx)(L5e, {
+ return /* @__PURE__ */ (0, x.jsx)(I5e, {
value: C,
- children: /* @__PURE__ */ (0, x.jsxs)(i8, {
+ children: /* @__PURE__ */ (0, x.jsxs)(a8, {
className: i,
config: e,
- children: [/* @__PURE__ */ (0, x.jsx)(a8, { isLoading: f }), /* @__PURE__ */ (0, x.jsxs)(f8e, {
+ children: [/* @__PURE__ */ (0, x.jsx)(o8, { isLoading: f }), /* @__PURE__ */ (0, x.jsxs)(d8e, {
id: m,
data: f ? _ : S,
innerRadius: c,
@@ -87665,16 +87665,16 @@ function j8({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
cy: v.cy,
...a,
children: [
- s != null && s > 0 && /* @__PURE__ */ (0, x.jsx)(Q4, {
+ s != null && s > 0 && /* @__PURE__ */ (0, x.jsx)($4, {
type: "number",
domain: [0, s],
tick: !1,
axisLine: !1
}),
- p && /* @__PURE__ */ (0, x.jsx)(p8, { variant: p }),
+ p && /* @__PURE__ */ (0, x.jsx)(m8, { variant: p }),
r,
- f && /* @__PURE__ */ (0, x.jsx)(G5e, {}),
- /* @__PURE__ */ (0, x.jsx)("defs", { children: /* @__PURE__ */ (0, x.jsx)(H5e, {
+ f && /* @__PURE__ */ (0, x.jsx)(W5e, {}),
+ /* @__PURE__ */ (0, x.jsx)("defs", { children: /* @__PURE__ */ (0, x.jsx)(V5e, {
config: e,
chartId: m
}) })
@@ -87683,9 +87683,9 @@ function j8({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
})
});
}
-function R5e({ dataKey: e, cornerRadius: t = N5e, barSize: n = P5e, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
- let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = A8();
- return s ? null : /* @__PURE__ */ (0, x.jsx)(V3, {
+function L5e({ dataKey: e, cornerRadius: t = M5e, barSize: n = N5e, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
+ let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = j8();
+ return s ? null : /* @__PURE__ */ (0, x.jsx)(H3, {
dataKey: e,
cornerRadius: t,
barSize: n,
@@ -87699,7 +87699,7 @@ function R5e({ dataKey: e, cornerRadius: t = N5e, barSize: n = P5e, showBackgrou
},
shape: (e) => {
let t = e[o], n = c === null || c === t;
- return /* @__PURE__ */ (0, x.jsx)(TZ, {
+ return /* @__PURE__ */ (0, x.jsx)(wZ, {
...e,
opacity: i && !n ? .15 : 1,
className: "transition-opacity duration-200"
@@ -87708,12 +87708,12 @@ function R5e({ dataKey: e, cornerRadius: t = N5e, barSize: n = P5e, showBackgrou
...a
});
}
-function z5e({ variant: e, roundness: t, defaultIndex: n }) {
- let { nameKey: r, isLoading: i } = A8();
- return i ? null : /* @__PURE__ */ (0, x.jsx)(l8, {
+function R5e({ variant: e, roundness: t, defaultIndex: n }) {
+ let { nameKey: r, isLoading: i } = j8();
+ return i ? null : /* @__PURE__ */ (0, x.jsx)(u8, {
defaultIndex: n,
cursor: !1,
- content: /* @__PURE__ */ (0, x.jsx)(c8, {
+ content: /* @__PURE__ */ (0, x.jsx)(l8, {
nameKey: r,
hideLabel: !0,
roundness: t,
@@ -87721,12 +87721,12 @@ function z5e({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function B5e({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
- let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = A8();
- return a ? null : /* @__PURE__ */ (0, x.jsx)(d8, {
+function z5e({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+ let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = j8();
+ return a ? null : /* @__PURE__ */ (0, x.jsx)(f8, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, x.jsx)(u8, {
+ content: /* @__PURE__ */ (0, x.jsx)(d8, {
selected: o,
onSelectChange: s,
isClickable: r,
@@ -87735,7 +87735,7 @@ function B5e({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-function V5e(e) {
+function B5e(e) {
switch (e) {
case "semi": return {
startAngle: 180,
@@ -87751,8 +87751,8 @@ function V5e(e) {
};
}
}
-var H5e = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, x.jsx)(x.Fragment, { children: Object.entries(e).map(([e, n]) => {
- let r = s8(n);
+var V5e = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, x.jsx)(x.Fragment, { children: Object.entries(e).map(([e, n]) => {
+ let r = c8(n);
return /* @__PURE__ */ (0, x.jsx)("linearGradient", {
id: `${t}-radial-colors-${e}`,
x1: "0",
@@ -87774,47 +87774,47 @@ var H5e = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, x.jsx)(x.Fragment,
})
}, `${t}-radial-colors-${e}`);
}) });
-function U5e() {
- return Array.from({ length: F5e }, (e, t) => ({
+function H5e() {
+ return Array.from({ length: P5e }, (e, t) => ({
name: `loading${t}`,
value: 40 + Math.random() * 60
}));
}
-function W5e(e) {
+function U5e(e) {
let [t, n] = (0, b.useState)(0);
return (0, b.useEffect)(() => {
if (!e) return;
let t = setInterval(() => {
n((e) => e + 1);
- }, I5e);
+ }, F5e);
return () => clearInterval(t);
- }, [e]), (0, b.useMemo)(() => U5e(), [t]);
+ }, [e]), (0, b.useMemo)(() => H5e(), [t]);
}
-var G5e = () => /* @__PURE__ */ (0, x.jsx)(V3, {
+var W5e = () => /* @__PURE__ */ (0, x.jsx)(H3, {
dataKey: "value",
- cornerRadius: N5e,
- barSize: P5e,
+ cornerRadius: M5e,
+ barSize: N5e,
background: !0,
isAnimationActive: !0,
- animationDuration: I5e,
+ animationDuration: F5e,
animationEasing: "ease-in-out",
- shape: (e) => /* @__PURE__ */ (0, x.jsx)(TZ, {
+ shape: (e) => /* @__PURE__ */ (0, x.jsx)(wZ, {
...e,
fill: "currentColor",
fillOpacity: .25
})
});
-j8.RadialBar = R5e, j8.Tooltip = z5e, j8.Legend = B5e;
+M8.RadialBar = L5e, M8.Tooltip = R5e, M8.Legend = z5e;
//#endregion
//#region src/react/stats/radial-card.tsx
-var K5e = [
+var G5e = [
"bg-chart-1",
"bg-chart-2",
"bg-chart-3",
"bg-chart-4",
"bg-chart-5",
"bg-chart-6"
-], q5e = [
+], K5e = [
"aria-pressed:bg-chart-1/10 aria-pressed:ring-chart-1",
"aria-pressed:bg-chart-2/10 aria-pressed:ring-chart-2",
"aria-pressed:bg-chart-3/10 aria-pressed:ring-chart-3",
@@ -87822,19 +87822,19 @@ var K5e = [
"aria-pressed:bg-chart-5/10 aria-pressed:ring-chart-5",
"aria-pressed:bg-chart-6/10 aria-pressed:ring-chart-6"
];
-function J5e({ title: e, rows: t, empty: n, unit: r = "个视频" }) {
- let [i, a] = (0, b.useState)(-1), [o, s] = (0, b.useState)(-1), c = pMe(t);
- if (!c.length) return /* @__PURE__ */ (0, x.jsx)(_8, {
+function q5e({ title: e, rows: t, empty: n, unit: r = "个视频" }) {
+ let [i, a] = (0, b.useState)(-1), [o, s] = (0, b.useState)(-1), c = mMe(t);
+ if (!c.length) return /* @__PURE__ */ (0, x.jsx)(v8, {
title: e,
children: n
});
- let l = o >= 0 ? o : i, u = c.reduce((e, t) => e + t.value, 0), d = c[l], f = (e) => a((t) => t === e ? -1 : e), p = mMe(c.map((e) => e.value)), m = c.map((e, t) => ({
- slice: w8(t),
+ let l = o >= 0 ? o : i, u = c.reduce((e, t) => e + t.value, 0), d = c[l], f = (e) => a((t) => t === e ? -1 : e), p = hMe(c.map((e) => e.value)), m = c.map((e, t) => ({
+ slice: T8(t),
value: e.value,
- arc: hMe(e.value, p)
+ arc: gMe(e.value, p)
}));
return /* @__PURE__ */ (0, x.jsxs)("section", {
- className: g8,
+ className: _8,
children: [
/* @__PURE__ */ (0, x.jsxs)("header", {
className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",
@@ -87856,18 +87856,18 @@ function J5e({ title: e, rows: t, empty: n, unit: r = "个视频" }) {
role: "img",
"aria-label": e,
onPointerLeave: () => s(-1),
- children: /* @__PURE__ */ (0, x.jsxs)(j8, {
+ children: /* @__PURE__ */ (0, x.jsxs)(M8, {
data: m,
nameKey: "slice",
- config: p5e(c.map((e) => e.name)),
+ config: f5e(c.map((e) => e.name)),
max: p,
innerRadius: "22%",
className: "aspect-auto h-75 max-sm:h-65",
- children: [/* @__PURE__ */ (0, x.jsx)(j8.RadialBar, {
+ children: [/* @__PURE__ */ (0, x.jsx)(M8.RadialBar, {
dataKey: "arc",
- barSize: gMe(c.length),
+ barSize: _Me(c.length),
radialBarProps: {
- shape: (e) => /* @__PURE__ */ (0, x.jsx)(TZ, {
+ shape: (e) => /* @__PURE__ */ (0, x.jsx)(wZ, {
...e,
opacity: l >= 0 && l !== e.index ? .3 : 1,
className: "cursor-pointer transition-opacity duration-200"
@@ -87875,7 +87875,7 @@ function J5e({ title: e, rows: t, empty: n, unit: r = "个视频" }) {
onClick: (e, t) => f(t),
onMouseEnter: (e, t) => s(t)
}
- }), /* @__PURE__ */ (0, x.jsx)(T8, {
+ }), /* @__PURE__ */ (0, x.jsx)(E8, {
nameKey: "slice",
valueKey: "value",
hideLabel: !0
@@ -87892,13 +87892,13 @@ function J5e({ title: e, rows: t, empty: n, unit: r = "个视频" }) {
onPointerLeave: () => s(-1),
onFocus: () => s(t),
onBlur: () => s(-1),
- className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${q5e[t % 6]}`,
+ className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${K5e[t % 6]}`,
children: [
/* @__PURE__ */ (0, x.jsxs)("span", {
className: "flex min-w-0 max-w-full items-start gap-1.5 text-caption-1-regular text-text-secondary",
children: [/* @__PURE__ */ (0, x.jsx)("i", {
"aria-hidden": !0,
- className: `mt-0.5 size-3 shrink-0 rounded-sm ${K5e[t % 6]}`
+ className: `mt-0.5 size-3 shrink-0 rounded-sm ${G5e[t % 6]}`
}), /* @__PURE__ */ (0, x.jsxs)("span", {
className: "inline-flex min-w-0 items-start gap-1.5 wrap-anywhere",
children: [e.mark ? /* @__PURE__ */ (0, x.jsx)(dk, { mark: e.mark }) : null, e.name]
@@ -87913,15 +87913,15 @@ function J5e({ title: e, rows: t, empty: n, unit: r = "个视频" }) {
children: Ut(e.bytes)
})
]
- }, w8(t)))
+ }, T8(t)))
})
]
});
}
//#endregion
//#region src/react/stats/stats-page.tsx
-var Y5e = 10, M8 = S8[5], X5e = S8[4], Z5e = `${WO()} flex flex-col gap-4`, N8 = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", Q5e = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", $5e = "开始播放后,这里会显示最近的真实观看证据。", e7e = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", t7e = "添加媒体文件夹后,这里会显示存储空间。", n7e = "把媒体文件夹归进媒体库后,这里会按库显示视频数。", r7e = "探测时长后,这里会显示时长分布。", i7e = "探测画质后,这里会显示画质分布。", a7e = "开始播放后,这里会显示播放落在一周的哪些时段。", o7e = "开始播放后,这里会显示每个作品播了几次。", P8 = (e, t) => Math.min(Math.max(e, 0), t);
-function F8({ term: e, value: t }) {
+var J5e = 10, N8 = C8[5], Y5e = C8[4], X5e = `${WO()} flex flex-col gap-4`, P8 = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", Z5e = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", Q5e = "开始播放后,这里会显示最近的真实观看证据。", $5e = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", e7e = "添加媒体文件夹后,这里会显示存储空间。", t7e = "把媒体文件夹归进媒体库后,这里会按库显示视频数。", n7e = "探测时长后,这里会显示时长分布。", r7e = "探测画质后,这里会显示画质分布。", i7e = "开始播放后,这里会显示播放落在一周的哪些时段。", a7e = "开始播放后,这里会显示每个作品播了几次。", F8 = (e, t) => Math.min(Math.max(e, 0), t);
+function I8({ term: e, value: t }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex min-h-16 min-w-0 flex-col gap-1.5 rounded-2lg bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, x.jsx)("span", {
@@ -87929,11 +87929,11 @@ function F8({ term: e, value: t }) {
children: e
}), /* @__PURE__ */ (0, x.jsx)("b", {
className: "text-title-3-medium tabular-nums text-text-primary",
- children: iW(t)
+ children: rW(t)
})]
});
}
-function I8({ term: e, value: t, total: n }) {
+function L8({ term: e, value: t, total: n }) {
let r = Math.max(n, 1);
return /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
@@ -87941,19 +87941,19 @@ function I8({ term: e, value: t, total: n }) {
className: "flex items-baseline justify-between gap-3 text-body-2-regular text-text-primary",
children: [/* @__PURE__ */ (0, x.jsx)("span", { children: e }), /* @__PURE__ */ (0, x.jsxs)("b", {
className: "tabular-nums",
- children: [iW(t), rW(t) ? /* @__PURE__ */ (0, x.jsx)("span", {
+ children: [rW(t), nW(t) ? /* @__PURE__ */ (0, x.jsx)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: aW(t, n)
+ children: iW(t, n)
}) : null]
})]
}), /* @__PURE__ */ (0, x.jsx)(YO, {
- label: `${e}:${iW(t)} / ${n.toLocaleString()}`,
- value: rW(t) ? P8(t, r) : 0,
+ label: `${e}:${rW(t)} / ${n.toLocaleString()}`,
+ value: nW(t) ? F8(t, r) : 0,
max: r
})]
});
}
-function L8({ term: e, figure: t, unit: n }) {
+function R8({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-64 md:pr-6 md:pb-0",
children: [
@@ -87972,32 +87972,32 @@ function L8({ term: e, figure: t, unit: n }) {
]
});
}
-function R8({ headline: e, children: t }) {
+function z8({ headline: e, children: t }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
- className: `${Z5e} md:flex-row md:gap-6`,
+ className: `${X5e} md:flex-row md:gap-6`,
children: [e, /* @__PURE__ */ (0, x.jsx)("div", {
className: "min-w-0 grow",
children: t
})]
});
}
-function s7e({ data: e, configurable: t, openMediaSettings: n }) {
+function o7e({ data: e, configurable: t, openMediaSettings: n }) {
return e.by_loc.reduce((e, t) => e + t.videos, 0) ? /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-5",
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
className: "inline-grid w-full gap-5 md:grid-cols-2",
- children: [/* @__PURE__ */ (0, x.jsx)(J5e, {
+ children: [/* @__PURE__ */ (0, x.jsx)(q5e, {
title: "网盘与本地",
- empty: N8,
+ empty: P8,
rows: e.by_loc.map((e) => ({
name: Yt[e.k] ?? e.k,
value: e.videos,
bytes: e.bytes,
mark: Wa[e.k] || "database"
}))
- }), /* @__PURE__ */ (0, x.jsx)(J5e, {
+ }), /* @__PURE__ */ (0, x.jsx)(q5e, {
title: "媒体库",
- empty: n7e,
+ empty: t7e,
rows: e.by_library.map((e) => ({
name: e.name,
value: e.videos,
@@ -88008,30 +88008,30 @@ function s7e({ data: e, configurable: t, openMediaSettings: n }) {
}), /* @__PURE__ */ (0, x.jsxs)("div", {
className: "inline-grid w-full gap-5 md:grid-cols-2 xl:grid-cols-3",
children: [
- /* @__PURE__ */ (0, x.jsx)(D8, {
+ /* @__PURE__ */ (0, x.jsx)(O8, {
title: "时长",
unit: "个视频",
series: "视频",
- color: M8,
- rows: bMe(e.by_length),
- empty: r7e
+ color: N8,
+ rows: xMe(e.by_length),
+ empty: n7e
}),
- /* @__PURE__ */ (0, x.jsx)(D8, {
+ /* @__PURE__ */ (0, x.jsx)(O8, {
title: "画质",
unit: "个视频",
series: "视频",
- color: M8,
- rows: lW(e.by_quality),
- empty: i7e
+ color: N8,
+ rows: cW(e.by_quality),
+ empty: r7e
}),
- /* @__PURE__ */ (0, x.jsx)(D8, {
+ /* @__PURE__ */ (0, x.jsx)(O8, {
title: "文件类型",
unit: "个条目",
series: "条目",
- color: M8,
+ color: N8,
layout: "horizontal",
- rows: vMe(e.by_medium),
- empty: N8
+ rows: yMe(e.by_medium),
+ empty: P8
})
]
})]
@@ -88049,11 +88049,11 @@ function s7e({ data: e, configurable: t, openMediaSettings: n }) {
size: "small",
children: "添加关注"
})] }),
- children: N8
+ children: P8
});
}
-function c7e({ data: e }) {
- return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(k5e, {
+function s7e({ data: e }) {
+ return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(O5e, {
activity: e.play_activity,
title: "播放时间",
dailyTitle: "每日播放",
@@ -88063,42 +88063,42 @@ function c7e({ data: e }) {
cellUnit: "个作品"
},
tone: 5,
- empty: a7e
- }), /* @__PURE__ */ (0, x.jsx)(D8, {
+ empty: i7e
+ }), /* @__PURE__ */ (0, x.jsx)(O8, {
title: "播放次数",
unit: "个作品",
series: "作品",
- color: X5e,
- rows: SMe(e.replays),
- empty: o7e
+ color: Y5e,
+ rows: CMe(e.replays),
+ empty: a7e
})] });
}
-function l7e({ attribution: e }) {
+function c7e({ attribution: e }) {
let t = e.videos;
return /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col",
children: [
- /* @__PURE__ */ (0, x.jsx)(I8, {
+ /* @__PURE__ */ (0, x.jsx)(L8, {
term: "有创作者",
value: e.creator,
total: t
}),
- /* @__PURE__ */ (0, x.jsx)(I8, {
+ /* @__PURE__ */ (0, x.jsx)(L8, {
term: "有番号",
value: e.code,
total: t
}),
- /* @__PURE__ */ (0, x.jsx)(I8, {
+ /* @__PURE__ */ (0, x.jsx)(L8, {
term: "有厂牌",
value: e.studio,
total: t
}),
- /* @__PURE__ */ (0, x.jsx)(I8, {
+ /* @__PURE__ */ (0, x.jsx)(L8, {
term: "已抽帧",
value: e.thumb,
total: t
}),
- /* @__PURE__ */ (0, x.jsx)(I8, {
+ /* @__PURE__ */ (0, x.jsx)(L8, {
term: "已探测时长",
value: e.duration,
total: t
@@ -88106,7 +88106,7 @@ function l7e({ attribution: e }) {
]
});
}
-function u7e({ volume: e }) {
+function l7e({ volume: e }) {
let t = e.total, n = e.used ?? 0;
return /* @__PURE__ */ (0, x.jsxs)("article", {
className: "flex min-w-0 flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
@@ -88123,13 +88123,13 @@ function u7e({ volume: e }) {
className: "whitespace-nowrap tabular-nums",
children: [Ut(n), /* @__PURE__ */ (0, x.jsx)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: aW(n, t)
+ children: iW(n, t)
})]
})]
}),
t == null ? null : /* @__PURE__ */ (0, x.jsx)(YO, {
label: `${e.label}空间使用率`,
- value: P8(n, Math.max(t, 1)),
+ value: F8(n, Math.max(t, 1)),
max: Math.max(t, 1)
}),
/* @__PURE__ */ (0, x.jsxs)("p", {
@@ -88145,10 +88145,10 @@ function u7e({ volume: e }) {
]
});
}
-function d7e({ volumes: e, configurable: t, openMediaSettings: n }) {
+function u7e({ volumes: e, configurable: t, openMediaSettings: n }) {
return e.length ? /* @__PURE__ */ (0, x.jsx)("div", {
className: "flex flex-col",
- children: e.map((e) => /* @__PURE__ */ (0, x.jsx)(u7e, { volume: e }, `${e.kind}:${e.label}`))
+ children: e.map((e) => /* @__PURE__ */ (0, x.jsx)(l7e, { volume: e }, `${e.kind}:${e.label}`))
}) : /* @__PURE__ */ (0, x.jsx)(GO, {
shell: "plain",
icon: dO,
@@ -88158,12 +88158,12 @@ function d7e({ volumes: e, configurable: t, openMediaSettings: n }) {
onClick: n,
children: "添加媒体文件夹"
}) : void 0,
- children: t7e
+ children: e7e
});
}
-function f7e({ tags: e, tagLabel: t, onTag: n }) {
- return e.length ? /* @__PURE__ */ (0, x.jsx)(A5e, {
- previewCount: Y5e,
+function d7e({ tags: e, tagLabel: t, onTag: n }) {
+ return e.length ? /* @__PURE__ */ (0, x.jsx)(k5e, {
+ previewCount: J5e,
className: "inline-grid w-full gap-x-6 gap-y-1 sm:grid-cols-2",
children: e.map((e, r) => /* @__PURE__ */ (0, x.jsx)("li", {
className: "min-w-0",
@@ -88197,14 +88197,14 @@ function f7e({ tags: e, tagLabel: t, onTag: n }) {
size: "small",
children: "补全资料"
}),
- children: Q5e
+ children: Z5e
});
}
-function p7e({ rows: e }) {
+function f7e({ rows: e }) {
return e.length ? /* @__PURE__ */ (0, x.jsx)("div", {
className: "flex flex-col gap-5",
children: e.map((e) => {
- let t = sW(e);
+ let t = oW(e);
return /* @__PURE__ */ (0, x.jsxs)("article", {
className: "flex flex-wrap items-center gap-x-6 gap-y-2",
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
@@ -88212,7 +88212,7 @@ function p7e({ rows: e }) {
children: [/* @__PURE__ */ (0, x.jsx)("h3", {
className: "min-w-0 text-body-2-medium text-text-primary",
children: /* @__PURE__ */ (0, x.jsx)("a", {
- href: fMe(e),
+ href: pMe(e),
"data-middle-truncate": !0,
className: "block max-w-full overflow-hidden whitespace-nowrap hover:underline",
children: e.name
@@ -88222,7 +88222,7 @@ function p7e({ rows: e }) {
children: [e.creator ? /* @__PURE__ */ (0, x.jsx)("span", {
className: "min-w-0 wrap-anywhere",
children: e.creator
- }) : null, /* @__PURE__ */ (0, x.jsx)("span", { children: dMe(e) })]
+ }) : null, /* @__PURE__ */ (0, x.jsx)("span", { children: fMe(e) })]
})]
}), /* @__PURE__ */ (0, x.jsxs)("div", {
className: "min-w-0 basis-40",
@@ -88231,7 +88231,7 @@ function p7e({ rows: e }) {
value: t
}), /* @__PURE__ */ (0, x.jsx)("small", {
className: "mt-1.5 block text-caption-1-regular text-text-secondary",
- children: `真实 ${t.toFixed(0)}% · 到达 ${cW(e).toFixed(0)}%`
+ children: `真实 ${t.toFixed(0)}% · 到达 ${sW(e).toFixed(0)}%`
})]
})]
}, `${e.kind}:${e.id}`);
@@ -88246,10 +88246,10 @@ function p7e({ rows: e }) {
size: "small",
children: "浏览馆藏"
}),
- children: $5e
+ children: Q5e
});
}
-function m7e({ sources: e, videos: t }) {
+function p7e({ sources: e, videos: t }) {
return e.length ? /* @__PURE__ */ (0, x.jsx)("div", {
className: "inline-grid w-full gap-x-8 gap-y-6 sm:grid-cols-2",
children: e.map((e) => /* @__PURE__ */ (0, x.jsxs)("article", {
@@ -88270,7 +88270,7 @@ function m7e({ sources: e, videos: t }) {
}),
/* @__PURE__ */ (0, x.jsx)(YO, {
label: `${e.k} 覆盖视频`,
- value: P8(e.assets, Math.max(t, 1)),
+ value: F8(e.assets, Math.max(t, 1)),
max: Math.max(t, 1)
}),
/* @__PURE__ */ (0, x.jsxs)("small", {
@@ -88289,17 +88289,17 @@ function m7e({ sources: e, videos: t }) {
size: "small",
children: "补全资料"
}),
- children: e7e
+ children: $5e
});
}
-function z8({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
- return /* @__PURE__ */ (0, x.jsx)(dj, {
+function B8({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
+ return /* @__PURE__ */ (0, x.jsx)(uj, {
id: e,
- className: LN({
+ className: IN({
interactive: !0,
selectable: !0
}),
- children: /* @__PURE__ */ (0, x.jsx)(VN, {
+ children: /* @__PURE__ */ (0, x.jsx)(BN, {
label: t,
icon: i,
accent: a,
@@ -88308,31 +88308,31 @@ function z8({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
})
});
}
-function h7e(e) {
+function m7e(e) {
let t = dt({
- queryKey: tW,
- queryFn: ({ signal: e }) => nW(e)
+ queryKey: eW,
+ queryFn: ({ signal: e }) => tW(e)
}), n = t.data;
if (!n) return /* @__PURE__ */ (0, x.jsx)(qO, { children: /* @__PURE__ */ (0, x.jsx)(K, {
tone: "error",
title: "馆藏统计读取失败",
children: t.error ? R(t.error) : "未取得统计数据,请刷新页面重试。"
}) });
- let r = n.consumption, i = n.storage_summary, a = n.by_loc.reduce((e, t) => e + t.videos, 0), o = n.by_loc.reduce((e, t) => e + t.bytes, 0), s = rW(n.tag_cov) ? aW(n.tag_cov, n.attribution.videos) : "未取得", c = `${iW(n.tag_cov)} / ${n.attribution.videos.toLocaleString()}`;
+ let r = n.consumption, i = n.storage_summary, a = n.by_loc.reduce((e, t) => e + t.videos, 0), o = n.by_loc.reduce((e, t) => e + t.bytes, 0), s = nW(n.tag_cov) ? iW(n.tag_cov, n.attribution.videos) : "未取得", c = `${rW(n.tag_cov)} / ${n.attribution.videos.toLocaleString()}`;
return /* @__PURE__ */ (0, x.jsxs)(qO, { children: [
/* @__PURE__ */ (0, x.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: `账本当前快照 · ${a.toLocaleString()} 个视频 · ${Ut(o)}`
}),
- /* @__PURE__ */ (0, x.jsxs)(lj, {
+ /* @__PURE__ */ (0, x.jsxs)(cj, {
defaultSelectedKey: "inventory",
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, x.jsxs)(uj, {
+ /* @__PURE__ */ (0, x.jsxs)(lj, {
"aria-label": "统计视图",
- className: RN,
+ className: LN,
children: [
- /* @__PURE__ */ (0, x.jsx)(z8, {
+ /* @__PURE__ */ (0, x.jsx)(B8, {
id: "inventory",
label: "馆藏视频",
icon: cO,
@@ -88340,15 +88340,15 @@ function h7e(e) {
figure: a.toLocaleString(),
detail: Ut(o)
}),
- /* @__PURE__ */ (0, x.jsx)(z8, {
+ /* @__PURE__ */ (0, x.jsx)(B8, {
id: "viewing",
label: "看过",
icon: Gue,
accent: 1,
- figure: iW(r.played),
- detail: oW(r.play_seconds)
+ figure: rW(r.played),
+ detail: aW(r.play_seconds)
}),
- /* @__PURE__ */ (0, x.jsx)(z8, {
+ /* @__PURE__ */ (0, x.jsx)(B8, {
id: "coverage",
label: "内容标签",
icon: pO,
@@ -88356,7 +88356,7 @@ function h7e(e) {
figure: s,
detail: c
}),
- /* @__PURE__ */ (0, x.jsx)(z8, {
+ /* @__PURE__ */ (0, x.jsx)(B8, {
id: "storage",
label: "使用空间",
icon: dO,
@@ -88366,81 +88366,81 @@ function h7e(e) {
})
]
}),
- /* @__PURE__ */ (0, x.jsx)(fj, {
+ /* @__PURE__ */ (0, x.jsx)(dj, {
id: "inventory",
- children: /* @__PURE__ */ (0, x.jsx)(s7e, {
+ children: /* @__PURE__ */ (0, x.jsx)(o7e, {
data: n,
...e
})
}),
- /* @__PURE__ */ (0, x.jsxs)(fj, {
+ /* @__PURE__ */ (0, x.jsxs)(dj, {
id: "viewing",
className: "flex flex-col gap-5",
- children: [/* @__PURE__ */ (0, x.jsx)(R8, {
- headline: /* @__PURE__ */ (0, x.jsx)(L8, {
+ children: [/* @__PURE__ */ (0, x.jsx)(z8, {
+ headline: /* @__PURE__ */ (0, x.jsx)(R8, {
term: "观看",
- figure: iW(r.played),
+ figure: rW(r.played),
unit: "个作品有播放记录"
}),
children: /* @__PURE__ */ (0, x.jsxs)("div", {
className: "inline-grid w-full gap-3 sm:grid-cols-2",
children: [
- /* @__PURE__ */ (0, x.jsx)(F8, {
+ /* @__PURE__ */ (0, x.jsx)(I8, {
term: "馆藏观看",
value: r.library_played
}),
- /* @__PURE__ */ (0, x.jsx)(F8, {
+ /* @__PURE__ */ (0, x.jsx)(I8, {
term: "在线直接观看",
value: r.online_played
}),
- /* @__PURE__ */ (0, x.jsx)(F8, {
+ /* @__PURE__ */ (0, x.jsx)(I8, {
term: "高潮计数",
value: r.o_total
}),
- /* @__PURE__ */ (0, x.jsx)(F8, {
+ /* @__PURE__ */ (0, x.jsx)(I8, {
term: "快进扫过",
value: r.skimmed
}),
- /* @__PURE__ */ (0, x.jsx)(F8, {
+ /* @__PURE__ */ (0, x.jsx)(I8, {
term: "喜欢",
value: r.liked
}),
- /* @__PURE__ */ (0, x.jsx)(F8, {
+ /* @__PURE__ */ (0, x.jsx)(I8, {
term: "明确不喜欢",
value: r.dislike
}),
- /* @__PURE__ */ (0, x.jsx)(F8, {
+ /* @__PURE__ */ (0, x.jsx)(I8, {
term: "看过了",
value: r.seen
}),
- /* @__PURE__ */ (0, x.jsx)(F8, {
+ /* @__PURE__ */ (0, x.jsx)(I8, {
term: "回收站",
value: r.trash
})
]
})
- }), /* @__PURE__ */ (0, x.jsx)(c7e, { data: n })]
+ }), /* @__PURE__ */ (0, x.jsx)(s7e, { data: n })]
}),
- /* @__PURE__ */ (0, x.jsx)(fj, {
+ /* @__PURE__ */ (0, x.jsx)(dj, {
id: "coverage",
- children: /* @__PURE__ */ (0, x.jsx)(R8, {
- headline: /* @__PURE__ */ (0, x.jsx)(L8, {
+ children: /* @__PURE__ */ (0, x.jsx)(z8, {
+ headline: /* @__PURE__ */ (0, x.jsx)(R8, {
term: "内容标签覆盖",
figure: s,
unit: c
}),
- children: /* @__PURE__ */ (0, x.jsx)(l7e, { attribution: n.attribution })
+ children: /* @__PURE__ */ (0, x.jsx)(c7e, { attribution: n.attribution })
})
}),
- /* @__PURE__ */ (0, x.jsx)(fj, {
+ /* @__PURE__ */ (0, x.jsx)(dj, {
id: "storage",
- children: /* @__PURE__ */ (0, x.jsx)(R8, {
- headline: /* @__PURE__ */ (0, x.jsx)(L8, {
+ children: /* @__PURE__ */ (0, x.jsx)(z8, {
+ headline: /* @__PURE__ */ (0, x.jsx)(R8, {
term: "使用空间",
figure: i.measured.toLocaleString(),
unit: "个卷已取得容量"
}),
- children: /* @__PURE__ */ (0, x.jsx)(d7e, {
+ children: /* @__PURE__ */ (0, x.jsx)(u7e, {
volumes: n.storage_volumes,
...e
})
@@ -88448,51 +88448,51 @@ function h7e(e) {
})
]
}),
- /* @__PURE__ */ (0, x.jsxs)(lj, {
+ /* @__PURE__ */ (0, x.jsxs)(cj, {
defaultSelectedKey: "tags",
className: `${WO({ padding: "none" })} flex flex-col`,
children: [
/* @__PURE__ */ (0, x.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, x.jsxs)(mj, {
+ children: /* @__PURE__ */ (0, x.jsxs)(pj, {
"aria-label": "统计维度",
- className: gj,
+ className: hj,
children: [
- /* @__PURE__ */ (0, x.jsx)(dj, {
+ /* @__PURE__ */ (0, x.jsx)(uj, {
id: "tags",
- className: _j,
+ className: gj,
children: "内容标签"
}),
- /* @__PURE__ */ (0, x.jsx)(dj, {
+ /* @__PURE__ */ (0, x.jsx)(uj, {
id: "recent",
- className: _j,
+ className: gj,
children: "最近看过"
}),
- /* @__PURE__ */ (0, x.jsx)(dj, {
+ /* @__PURE__ */ (0, x.jsx)(uj, {
id: "sources",
- className: _j,
+ className: gj,
children: "标签来源"
})
]
})
}),
- /* @__PURE__ */ (0, x.jsx)(fj, {
+ /* @__PURE__ */ (0, x.jsx)(dj, {
id: "tags",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, x.jsx)(f7e, {
+ children: /* @__PURE__ */ (0, x.jsx)(d7e, {
tags: n.top_tags,
...e
})
}),
- /* @__PURE__ */ (0, x.jsx)(fj, {
+ /* @__PURE__ */ (0, x.jsx)(dj, {
id: "recent",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, x.jsx)(p7e, { rows: n.recent })
+ children: /* @__PURE__ */ (0, x.jsx)(f7e, { rows: n.recent })
}),
- /* @__PURE__ */ (0, x.jsx)(fj, {
+ /* @__PURE__ */ (0, x.jsx)(dj, {
id: "sources",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, x.jsx)(m7e, {
+ children: /* @__PURE__ */ (0, x.jsx)(p7e, {
sources: n.tag_source,
videos: n.attribution.videos
})
@@ -88503,66 +88503,66 @@ function h7e(e) {
}
//#endregion
//#region node_modules/d3-sankey/src/align.js
-function g7e(e, t) {
+function h7e(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
//#endregion
//#region node_modules/d3-sankey/src/constant.js
-function B8(e) {
+function V8(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-sankey/src/sankey.js
-function _7e(e, t) {
- return V8(e.source, t.source) || e.index - t.index;
+function g7e(e, t) {
+ return H8(e.source, t.source) || e.index - t.index;
}
-function v7e(e, t) {
- return V8(e.target, t.target) || e.index - t.index;
+function _7e(e, t) {
+ return H8(e.target, t.target) || e.index - t.index;
}
-function V8(e, t) {
+function H8(e, t) {
return e.y0 - t.y0;
}
-function H8(e) {
+function U8(e) {
return e.value;
}
-function y7e(e) {
+function v7e(e) {
return e.index;
}
-function b7e(e) {
+function y7e(e) {
return e.nodes;
}
-function x7e(e) {
+function b7e(e) {
return e.links;
}
-function S7e(e, t) {
+function x7e(e, t) {
let n = e.get(t);
if (!n) throw Error("missing: " + t);
return n;
}
-function C7e({ nodes: e }) {
+function S7e({ 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 w7e() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = y7e, c = g7e, l, u, d = b7e, f = x7e, p = 6;
+function C7e() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = v7e, c = h7e, l, u, d = y7e, f = b7e, 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), C7e(e), e;
+ return h(e), g(e), _(e), v(e), x(e), S7e(e), e;
}
m.update = function(e) {
- return C7e(e), e;
+ return S7e(e), e;
}, m.nodeId = function(e) {
- return arguments.length ? (s = typeof e == "function" ? e : B8(e), m) : s;
+ return arguments.length ? (s = typeof e == "function" ? e : V8(e), m) : s;
}, m.nodeAlign = function(e) {
- return arguments.length ? (c = typeof e == "function" ? e : B8(e), m) : c;
+ return arguments.length ? (c = typeof e == "function" ? e : V8(e), m) : c;
}, m.nodeSort = function(e) {
return arguments.length ? (l = e, m) : l;
}, m.nodeWidth = function(e) {
@@ -88570,9 +88570,9 @@ function w7e() {
}, m.nodePadding = function(e) {
return arguments.length ? (a = o = +e, m) : a;
}, m.nodes = function(e) {
- return arguments.length ? (d = typeof e == "function" ? e : B8(e), m) : d;
+ return arguments.length ? (d = typeof e == "function" ? e : V8(e), m) : d;
}, m.links = function(e) {
- return arguments.length ? (f = typeof e == "function" ? e : B8(e), m) : f;
+ return arguments.length ? (f = typeof e == "function" ? e : V8(e), m) : f;
}, m.linkSort = function(e) {
return arguments.length ? (u = e, m) : u;
}, m.size = function(i) {
@@ -88588,12 +88588,12 @@ function w7e() {
for (let [e, r] of t.entries()) {
r.index = e;
let { source: t, target: i } = r;
- typeof t != "object" && (t = r.source = S7e(n, t)), typeof i != "object" && (i = r.target = S7e(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
+ typeof t != "object" && (t = r.source = x7e(n, t)), typeof i != "object" && (i = r.target = x7e(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(XQ(t.sourceLinks, H8), XQ(t.targetLinks, H8)) : t.fixedValue;
+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(YQ(t.sourceLinks, U8), YQ(t.targetLinks, U8)) : t.fixedValue;
}
function _({ nodes: e }) {
let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
@@ -88618,7 +88618,7 @@ function w7e() {
}
}
function y({ nodes: t }) {
- let r = KQ(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
+ let r = GQ(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];
@@ -88627,7 +88627,7 @@ function w7e() {
return o;
}
function b(e) {
- let n = qQ(e, (e) => (r - t - (e.length - 1) * o) / XQ(e, H8));
+ let n = KQ(e, (e) => (r - t - (e.length - 1) * o) / YQ(e, U8));
for (let i of e) {
let e = t;
for (let t of i) {
@@ -88644,7 +88644,7 @@ function w7e() {
}
function x(e) {
let n = y(e);
- o = Math.min(a, (r - t) / (KQ(n, (e) => e.length) - 1)), b(n);
+ o = Math.min(a, (r - t) / (GQ(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);
@@ -88663,7 +88663,7 @@ function w7e() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(V8), w(i, n);
+ l === void 0 && i.sort(H8), w(i, n);
}
}
function C(e, t, n) {
@@ -88679,7 +88679,7 @@ function w7e() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(V8), w(i, n);
+ l === void 0 && i.sort(H8), w(i, n);
}
}
function w(e, n) {
@@ -88700,12 +88700,12 @@ function w7e() {
}
function D({ sourceLinks: e, targetLinks: t }) {
if (u === void 0) {
- for (let { source: { sourceLinks: e } } of t) e.sort(v7e);
- for (let { target: { targetLinks: t } } of e) t.sort(_7e);
+ for (let { source: { sourceLinks: e } } of t) e.sort(_7e);
+ for (let { target: { targetLinks: t } } of e) t.sort(g7e);
}
}
function O(e) {
- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(v7e), n.sort(_7e);
+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(_7e), n.sort(g7e);
}
function k(e, t) {
let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;
@@ -88735,15 +88735,15 @@ function w7e() {
}
//#endregion
//#region node_modules/d3-path/src/path.js
-var U8 = Math.PI, W8 = 2 * U8, G8 = 1e-6, T7e = W8 - G8;
-function K8() {
+var W8 = Math.PI, G8 = 2 * W8, K8 = 1e-6, w7e = G8 - K8;
+function q8() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
-function E7e() {
- return new K8();
+function T7e() {
+ return new q8();
}
-K8.prototype = E7e.prototype = {
- constructor: K8,
+q8.prototype = T7e.prototype = {
+ constructor: q8,
moveTo: function(e, t) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
},
@@ -88764,11 +88764,11 @@ K8.prototype = E7e.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 > G8) {
- if (!(Math.abs(u * s - c * l) > G8) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
+ else if (d > K8) {
+ if (!(Math.abs(u * s - c * l) > K8) || !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((U8 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > G8 && (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((W8 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > K8 && (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);
}
}
},
@@ -88776,7 +88776,7 @@ K8.prototype = E7e.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) > G8 || Math.abs(this._y1 - l) > G8) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % W8 + W8), d > T7e ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > G8 && (this._ += "A" + n + "," + n + ",0," + +(d >= U8) + "," + 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) > K8 || Math.abs(this._y1 - l) > K8) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % G8 + G8), d > w7e ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > K8 && (this._ += "A" + n + "," + n + ",0," + +(d >= W8) + "," + 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";
@@ -88787,90 +88787,90 @@ K8.prototype = E7e.prototype = {
};
//#endregion
//#region node_modules/d3-shape/src/constant.js
-function D7e(e) {
+function E7e(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-shape/src/point.js
-function O7e(e) {
+function D7e(e) {
return e[0];
}
-function k7e(e) {
+function O7e(e) {
return e[1];
}
//#endregion
//#region node_modules/d3-shape/src/array.js
-var A7e = Array.prototype.slice;
+var k7e = Array.prototype.slice;
//#endregion
//#region node_modules/d3-shape/src/link/index.js
-function j7e(e) {
+function A7e(e) {
return e.source;
}
-function M7e(e) {
+function j7e(e) {
return e.target;
}
-function N7e(e) {
- var t = j7e, n = M7e, r = O7e, i = k7e, a = null;
+function M7e(e) {
+ var t = A7e, n = j7e, r = D7e, i = O7e, a = null;
function o() {
- var o, s = A7e.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
- if (a ||= o = E7e(), 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 = k7e.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ if (a ||= o = T7e(), 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 : D7e(+e), o) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : E7e(+e), o) : r;
}, o.y = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : D7e(+e), o) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : E7e(+e), o) : i;
}, o.context = function(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function P7e(e, t, n, r, i) {
+function N7e(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function F7e() {
- return N7e(P7e);
+function P7e() {
+ return M7e(N7e);
}
//#endregion
//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function I7e(e) {
+function F7e(e) {
return [e.source.x1, e.y0];
}
-function L7e(e) {
+function I7e(e) {
return [e.target.x0, e.y1];
}
-function R7e() {
- return F7e().source(I7e).target(L7e);
+function L7e() {
+ return P7e().source(F7e).target(I7e);
}
//#endregion
//#region src/react/taste/taste.ts
-var z7e = "/api/taste", B7e = "/api/taste/refresh", V7e = "/api/taste/import", H7e = "/api/taste/source", q8 = (e) => ["taste", e], U7e = ["taste", "refresh"], W7e = [
+var R7e = "/api/taste", z7e = "/api/taste/refresh", B7e = "/api/taste/import", V7e = "/api/taste/source", J8 = (e) => ["taste", e], H7e = ["taste", "refresh"], U7e = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], G7e = (e, t) => z(`${z7e}?window=${e}`, t), K7e = (e) => z(B7e, e);
-async function q7e(e, t) {
+], W7e = (e, t) => z(`${R7e}?window=${e}`, t), G7e = (e) => z(z7e, e);
+async function K7e(e, t) {
await V.fetchQuery({
- queryKey: q8(e),
- queryFn: () => G7e(e, t)
+ queryKey: J8(e),
+ queryFn: () => W7e(e, t)
});
}
-var J7e = (e) => B(B7e, {
+var q7e = (e) => B(z7e, {
window: e,
background: !0
-}), Y7e = (e, t) => B(H7e, {
+}), J7e = (e, t) => B(V7e, {
operation: "remove",
source_key: e,
window: t
});
-async function X7e(e) {
- let t = await fetch(V7e, {
+async function Y7e(e) {
+ let t = await fetch(B7e, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -88888,47 +88888,47 @@ async function X7e(e) {
}
return n;
}
-var Z7e = 1e4, J8 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
-function Q7e(e) {
+var X7e = 1e4, Y8 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
+function Z7e(e) {
let t = `${Number(e.history_sources || 0).toLocaleString()} 个数据源`;
- return !e.range_start && !e.range_end ? t : `${t} · ${J8(e.range_start)}—${J8(e.range_end)}`;
+ return !e.range_start && !e.range_end ? t : `${t} · ${Y8(e.range_start)}—${Y8(e.range_end)}`;
}
-var $7e = oW, e9e = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), t9e = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function n9e(e) {
+var Q7e = aW, $7e = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), e9e = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function t9e(e) {
if (e.web_visits == null) return Number(e.score || e.visits || 0).toLocaleString();
let t = [];
return e.web_visits && t.push(`浏览 ${Number(e.web_visits).toLocaleString()}`), e.peach_items && t.push(`Peach ${Number(e.peach_items).toLocaleString()}`), t.join(" · ");
}
-function r9e(e) {
- let t = e.map(t9e), n = Math.max(1, ...t);
+function n9e(e) {
+ let t = e.map(e9e), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
-var i9e = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
+var r9e = (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 a9e(e) {
- let t = i9e(e, 6);
+function i9e(e) {
+ let t = r9e(e, 6);
return t.length < 3 ? [] : t;
}
-var o9e = {
+var a9e = {
width: 720,
height: 435
-}, s9e = {
+}, o9e = {
source: 145,
target: 545
-}, c9e = 30, l9e = 240;
-function u9e(e, t, n) {
+}, s9e = 30, c9e = 240;
+function l9e(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 d9e(e = []) {
+function u9e(e = []) {
let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
if (!t.length) return null;
- let n = u9e(t, "source", (e) => `其余 ${e.toLocaleString()} 个网站`), r = u9e(t, "target", (e) => `其余 ${e.toLocaleString()} 位创作者`), i = /* @__PURE__ */ new Map();
+ let n = l9e(t, "source", (e) => `其余 ${e.toLocaleString()} 个网站`), r = l9e(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, {
@@ -88937,7 +88937,7 @@ function d9e(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) * c9e + l9e), u = w7e().nodeId((e) => e.id).nodeWidth(10).nodePadding(c9e).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) * s9e + c9e), u = C7e().nodeId((e) => e.id).nodeWidth(10).nodePadding(s9e).extent([[155, 16], [535, l]])({
nodes: [...o.map((e) => ({
id: `source:${e}`,
name: e,
@@ -88952,7 +88952,7 @@ function d9e(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), d = a.reduce((e, t) => e + t.value, 0), f = R7e();
+ }), d = a.reduce((e, t) => e + t.value, 0), f = L7e();
return {
nodes: u.nodes.map((e) => ({
id: e.id,
@@ -88980,14 +88980,14 @@ function d9e(e = []) {
};
}),
total: d,
- height: l + o9e.height - 404
+ height: l + a9e.height - 404
};
}
-var f9e = (e) => Jt(e, 17), p9e = b.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
+var d9e = (e) => Jt(e, 17), f9e = b.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
let c = b.useId().replace(/:/g, ""), l = `url(#${r}-colors-${String(n)})`;
if (e === void 0 || t === void 0) return null;
switch (o) {
- case "border": return /* @__PURE__ */ (0, x.jsx)(h9e, {
+ case "border": return /* @__PURE__ */ (0, x.jsx)(m9e, {
cx: e,
cy: t,
dotId: c,
@@ -88996,7 +88996,7 @@ var f9e = (e) => Jt(e, 17), p9e = b.memo(function({ cx: e, cy: t, dataKey: n, ch
className: i,
maskId: s
});
- case "colored-border": return /* @__PURE__ */ (0, x.jsx)(g9e, {
+ case "colored-border": return /* @__PURE__ */ (0, x.jsx)(h9e, {
cx: e,
cy: t,
dotId: c,
@@ -89005,7 +89005,7 @@ var f9e = (e) => Jt(e, 17), p9e = b.memo(function({ cx: e, cy: t, dataKey: n, ch
className: i,
maskId: s
});
- default: return /* @__PURE__ */ (0, x.jsx)(m9e, {
+ default: return /* @__PURE__ */ (0, x.jsx)(p9e, {
cx: e,
cy: t,
dotId: c,
@@ -89015,7 +89015,7 @@ var f9e = (e) => Jt(e, 17), p9e = b.memo(function({ cx: e, cy: t, dataKey: n, ch
maskId: s
});
}
-}), m9e = b.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, x.jsxs)("g", {
+}), p9e = b.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, x.jsxs)("g", {
className: a,
mask: o ? `url(#${o})` : void 0,
children: [/* @__PURE__ */ (0, x.jsx)("defs", { children: /* @__PURE__ */ (0, x.jsx)("clipPath", {
@@ -89035,9 +89035,9 @@ var f9e = (e) => Jt(e, 17), p9e = b.memo(function({ cx: e, cy: t, dataKey: n, ch
clipPath: `url(#dot-clip-${n})`
})]
}));
-m9e.displayName = "DefaultDot";
-var h9e = b.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, x.jsxs)("g", {
- className: t8(a, "text-background"),
+p9e.displayName = "DefaultDot";
+var m9e = b.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, x.jsxs)("g", {
+ className: n8(a, "text-background"),
mask: o ? `url(#${o})` : void 0,
children: [
/* @__PURE__ */ (0, x.jsx)("defs", { children: /* @__PURE__ */ (0, x.jsx)("clipPath", {
@@ -89073,9 +89073,9 @@ var h9e = b.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, clas
}) })
]
}));
-h9e.displayName = "PrimaryBorderDot";
-var g9e = b.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, x.jsxs)("g", {
- className: t8(a, "text-background"),
+m9e.displayName = "PrimaryBorderDot";
+var h9e = b.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, x.jsxs)("g", {
+ className: n8(a, "text-background"),
mask: o ? `url(#${o})` : void 0,
children: [
/* @__PURE__ */ (0, x.jsx)("defs", { children: /* @__PURE__ */ (0, x.jsx)("clipPath", {
@@ -89103,17 +89103,17 @@ var g9e = b.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, clas
})
]
}));
-g9e.displayName = "ColoredBorderDot";
+h9e.displayName = "ColoredBorderDot";
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radar-chart.tsx
-var _9e = 1, v9e = .3, y9e = 6, b9e = 1500, x9e = "value", S9e = (0, b.createContext)(null);
-function Y8() {
- let e = (0, b.use)(S9e);
+var g9e = 1, _9e = .3, v9e = 6, y9e = 1500, b9e = "value", x9e = (0, b.createContext)(null);
+function X8() {
+ let e = (0, b.use)(x9e);
if (!e) throw Error("Radar chart parts (<Radar />, <PolarAngleAxis />, …) must be used within <EvilRadarChart />");
return e;
}
-function X8({ config: e, data: t, children: n, className: r, chartProps: i, backgroundVariant: a, defaultSelectedDataKey: o = null, onSelectionChange: s, isLoading: c = !1, loadingPoints: l }) {
- let u = (0, b.useId)().replace(/:/g, ""), [d, f] = (0, b.useState)(o), p = L9e(c, l), m = (0, b.useCallback)((e) => {
+function Z8({ config: e, data: t, children: n, className: r, chartProps: i, backgroundVariant: a, defaultSelectedDataKey: o = null, onSelectionChange: s, isLoading: c = !1, loadingPoints: l }) {
+ let u = (0, b.useId)().replace(/:/g, ""), [d, f] = (0, b.useState)(o), p = I9e(c, l), m = (0, b.useCallback)((e) => {
f(e), s?.(e);
}, [s]), h = (0, b.useMemo)(() => ({
config: e,
@@ -89126,37 +89126,37 @@ function X8({ config: e, data: t, children: n, className: r, chartProps: i, back
d,
m
]);
- return /* @__PURE__ */ (0, x.jsx)(S9e, {
+ return /* @__PURE__ */ (0, x.jsx)(x9e, {
value: h,
- children: /* @__PURE__ */ (0, x.jsxs)(i8, {
+ children: /* @__PURE__ */ (0, x.jsxs)(a8, {
className: r,
config: e,
- children: [/* @__PURE__ */ (0, x.jsx)(a8, { isLoading: c }), /* @__PURE__ */ (0, x.jsxs)(n8e, {
+ children: [/* @__PURE__ */ (0, x.jsx)(o8, { isLoading: c }), /* @__PURE__ */ (0, x.jsxs)(t8e, {
id: u,
data: c ? p : t,
...i,
children: [
- a && /* @__PURE__ */ (0, x.jsx)(p8, { variant: a }),
+ a && /* @__PURE__ */ (0, x.jsx)(m8, { variant: a }),
n,
- c && /* @__PURE__ */ (0, x.jsx)(R9e, {})
+ c && /* @__PURE__ */ (0, x.jsx)(L9e, {})
]
})]
})
});
}
-function C9e({ dataKey: e, variant: t = "filled", fillOpacity: n = v9e, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
- let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = Y8(), d = (0, b.useId)().replace(/:/g, "");
+function S9e({ dataKey: e, variant: t = "filled", fillOpacity: n = _9e, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
+ let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = X8(), d = (0, b.useId)().replace(/:/g, "");
if (c) return null;
let f = i && l !== null && l !== e, p = {
stroke: f ? .2 : 1,
fill: f ? .1 : 1,
dot: f ? .2 : 1
- }, m = t === "filled", { dot: h, activeDot: g } = j9e(a, d, e, p.dot);
- return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(O3, {
+ }, m = t === "filled", { dot: h, activeDot: g } = A9e(a, d, e, p.dot);
+ return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(k3, {
dataKey: e,
stroke: `url(#${d}-radar-stroke-${e})`,
strokeOpacity: p.stroke,
- strokeWidth: _9e,
+ strokeWidth: g9e,
fill: m ? `url(#${d}-radar-fill-${e})` : "none",
fillOpacity: m ? n * p.fill : 0,
dot: h,
@@ -89169,30 +89169,30 @@ function C9e({ dataKey: e, variant: t = "filled", fillOpacity: n = v9e, isGlowin
},
...o
}), /* @__PURE__ */ (0, x.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, x.jsx)(M9e, {
+ /* @__PURE__ */ (0, x.jsx)(j9e, {
id: d,
dataKey: e,
config: s
}),
- /* @__PURE__ */ (0, x.jsx)(N9e, {
+ /* @__PURE__ */ (0, x.jsx)(M9e, {
id: d,
dataKey: e,
config: s
}),
- m && /* @__PURE__ */ (0, x.jsx)(P9e, {
+ m && /* @__PURE__ */ (0, x.jsx)(N9e, {
id: d,
dataKey: e,
config: s
}),
- r && /* @__PURE__ */ (0, x.jsx)(F9e, {
+ r && /* @__PURE__ */ (0, x.jsx)(P9e, {
id: d,
dataKey: e
})
] })] });
}
-var w9e = () => null, T9e = () => null;
-function E9e({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
- return /* @__PURE__ */ (0, x.jsx)(tYe, {
+var C9e = () => null, w9e = () => null;
+function T9e({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
+ return /* @__PURE__ */ (0, x.jsx)(eYe, {
gridType: e,
stroke: t,
strokeOpacity: n,
@@ -89200,47 +89200,47 @@ function E9e({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacit
...i
});
}
-function D9e({ tick: e = {
+function E9e({ tick: e = {
fill: "currentColor",
fontSize: 12
}, tickLine: t = !1, ...n }) {
- let { isLoading: r } = Y8();
- return r ? null : /* @__PURE__ */ (0, x.jsx)(Q4, {
+ let { isLoading: r } = X8();
+ return r ? null : /* @__PURE__ */ (0, x.jsx)($4, {
tick: e,
tickLine: t,
...n
});
}
-function O9e({ tick: e = {
+function D9e({ tick: e = {
fill: "currentColor",
fontSize: 10
}, tickLine: t = !1, axisLine: n = !1, ...r }) {
- let { isLoading: i } = Y8();
- return i ? null : /* @__PURE__ */ (0, x.jsx)(DYe, {
+ let { isLoading: i } = X8();
+ return i ? null : /* @__PURE__ */ (0, x.jsx)(EYe, {
tick: e,
tickLine: t,
axisLine: n,
...r
});
}
-function k9e({ variant: e, roundness: t, defaultIndex: n }) {
- let { isLoading: r, selectedDataKey: i } = Y8();
- return r ? null : /* @__PURE__ */ (0, x.jsx)(l8, {
+function O9e({ variant: e, roundness: t, defaultIndex: n }) {
+ let { isLoading: r, selectedDataKey: i } = X8();
+ return r ? null : /* @__PURE__ */ (0, x.jsx)(u8, {
defaultIndex: n,
cursor: !1,
- content: /* @__PURE__ */ (0, x.jsx)(c8, {
+ content: /* @__PURE__ */ (0, x.jsx)(l8, {
selected: i,
roundness: t,
variant: e
})
});
}
-function A9e({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
- let { isLoading: i, selectedDataKey: a, selectDataKey: o } = Y8();
- return i ? null : /* @__PURE__ */ (0, x.jsx)(d8, {
+function k9e({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+ let { isLoading: i, selectedDataKey: a, selectDataKey: o } = X8();
+ return i ? null : /* @__PURE__ */ (0, x.jsx)(f8, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, x.jsx)(u8, {
+ content: /* @__PURE__ */ (0, x.jsx)(d8, {
selected: a,
onSelectChange: o,
isClickable: r,
@@ -89248,22 +89248,22 @@ function A9e({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-var j9e = (e, t, n, r) => {
+var A9e = (e, t, n, r) => {
let i = !1, a = !1;
return b.Children.forEach(e, (e) => {
if ((0, b.isValidElement)(e)) {
- if (e.type === w9e) {
+ if (e.type === C9e) {
let { variant: a } = e.props;
- i = /* @__PURE__ */ (0, x.jsx)(p9e, {
+ i = /* @__PURE__ */ (0, x.jsx)(f9e, {
type: a,
dataKey: n,
chartId: t,
fillOpacity: r
});
}
- if (e.type === T9e) {
+ if (e.type === w9e) {
let { variant: i } = e.props;
- a = /* @__PURE__ */ (0, x.jsx)(p9e, {
+ a = /* @__PURE__ */ (0, x.jsx)(f9e, {
type: i,
dataKey: n,
chartId: t,
@@ -89275,7 +89275,7 @@ var j9e = (e, t, n, r) => {
dot: i,
activeDot: a
};
-}, Z8 = ({ dataKey: e, colorsCount: t, opacities: n }) => t === 1 ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)("stop", {
+}, Q8 = ({ dataKey: e, colorsCount: t, opacities: n }) => t === 1 ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)("stop", {
offset: "0%",
stopColor: `var(--color-${e}-0)`,
stopOpacity: n?.[0]
@@ -89290,46 +89290,46 @@ var j9e = (e, t, n, r) => {
stopColor: `var(--color-${e}-${i}, var(--color-${e}-0))`,
stopOpacity: n?.[i]
}, a);
-}) }), M9e = ({ id: e, dataKey: t, config: n }) => {
- let r = s8(n[t] ?? {});
+}) }), j9e = ({ id: e, dataKey: t, config: n }) => {
+ let r = c8(n[t] ?? {});
return /* @__PURE__ */ (0, x.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
x1: "0",
y1: "0",
x2: "1",
y2: "0",
- children: /* @__PURE__ */ (0, x.jsx)(Z8, {
+ children: /* @__PURE__ */ (0, x.jsx)(Q8, {
dataKey: t,
colorsCount: r
})
});
-}, N9e = ({ id: e, dataKey: t, config: n }) => {
- let r = s8(n[t] ?? {});
+}, M9e = ({ id: e, dataKey: t, config: n }) => {
+ let r = c8(n[t] ?? {});
return /* @__PURE__ */ (0, x.jsx)("linearGradient", {
id: `${e}-radar-stroke-${t}`,
x1: "0",
y1: "0",
x2: "1",
y2: "1",
- children: /* @__PURE__ */ (0, x.jsx)(Z8, {
+ children: /* @__PURE__ */ (0, x.jsx)(Q8, {
dataKey: t,
colorsCount: r
})
});
-}, P9e = ({ id: e, dataKey: t, config: n }) => {
- let r = s8(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);
+}, N9e = ({ id: e, dataKey: t, config: n }) => {
+ let r = c8(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);
return /* @__PURE__ */ (0, x.jsx)("radialGradient", {
id: `${e}-radar-fill-${t}`,
cx: "50%",
cy: "50%",
r: "50%",
- children: /* @__PURE__ */ (0, x.jsx)(Z8, {
+ children: /* @__PURE__ */ (0, x.jsx)(Q8, {
dataKey: t,
colorsCount: r,
opacities: i
})
});
-}, F9e = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, x.jsxs)("filter", {
+}, P9e = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, x.jsxs)("filter", {
id: `${e}-radar-glow-${t}`,
x: "-50%",
y: "-50%",
@@ -89349,7 +89349,7 @@ var j9e = (e, t, n, r) => {
}),
/* @__PURE__ */ (0, x.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, x.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, x.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), I9e = (e) => [
+}), F9e = (e) => [
"A",
"B",
"C",
@@ -89358,20 +89358,20 @@ var j9e = (e, t, n, r) => {
"F"
].slice(0, e).map((e) => ({
skill: e,
- [x9e]: 30 + Math.random() * 70
+ [b9e]: 30 + Math.random() * 70
}));
-function L9e(e, t = y9e) {
+function I9e(e, t = v9e) {
let [n, r] = (0, b.useState)(0);
return (0, b.useEffect)(() => {
if (!e) return;
let t = setInterval(() => {
r((e) => e + 1);
- }, b9e);
+ }, y9e);
return () => clearInterval(t);
- }, [e]), (0, b.useMemo)(() => I9e(t), [t, n]);
+ }, [e]), (0, b.useMemo)(() => F9e(t), [t, n]);
}
-var R9e = () => /* @__PURE__ */ (0, x.jsx)(O3, {
- dataKey: x9e,
+var L9e = () => /* @__PURE__ */ (0, x.jsx)(k3, {
+ dataKey: b9e,
stroke: "currentColor",
strokeOpacity: .3,
strokeWidth: 2,
@@ -89379,41 +89379,41 @@ var R9e = () => /* @__PURE__ */ (0, x.jsx)(O3, {
fillOpacity: .1,
dot: !1,
isAnimationActive: !0,
- animationDuration: b9e,
+ animationDuration: y9e,
animationEasing: "ease-in-out"
});
-X8.Radar = C9e, X8.Dot = w9e, X8.ActiveDot = T9e, X8.PolarGrid = E9e, X8.PolarAngleAxis = D9e, X8.PolarRadiusAxis = O9e, X8.Tooltip = k9e, X8.Legend = A9e;
+Z8.Radar = S9e, Z8.Dot = C9e, Z8.ActiveDot = w9e, Z8.PolarGrid = T9e, Z8.PolarAngleAxis = E9e, Z8.PolarRadiusAxis = D9e, Z8.Tooltip = O9e, Z8.Legend = k9e;
//#endregion
//#region src/react/taste/charts.tsx
-function z9e(e) {
+function R9e(e) {
let { x: t = 0, cx: n, textAnchor: r, payload: i, ...a } = e, o = String(i?.value ?? ""), s = typeof n == "number" ? n * 2 : 0, c = s ? r === "start" ? s - t : r === "end" ? t : 2 * Math.min(t, s - t) : 56;
- return /* @__PURE__ */ (0, x.jsxs)("g", { children: [/* @__PURE__ */ (0, x.jsx)("title", { children: o }), /* @__PURE__ */ (0, x.jsx)(x4, {
+ return /* @__PURE__ */ (0, x.jsxs)("g", { children: [/* @__PURE__ */ (0, x.jsx)("title", { children: o }), /* @__PURE__ */ (0, x.jsx)(S4, {
...a,
x: t,
textAnchor: r,
fill: "currentColor",
fontSize: 12,
- children: d5e(o, c - 4)
+ children: u5e(o, c - 4)
})] });
}
-var B9e = [
+var z9e = [
"stroke-chart-1",
"stroke-chart-2",
"stroke-chart-3",
"stroke-chart-4",
"stroke-chart-5",
"stroke-chart-6"
-], V9e = [
+], B9e = [
"fill-chart-1",
"fill-chart-2",
"fill-chart-3",
"fill-chart-4",
"fill-chart-5",
"fill-chart-6"
-], H9e = { value: {
+], V9e = { value: {
label: "标签命中",
- colors: C8(S8[3])
-} }, U9e = [
+ colors: w8(C8[3])
+} }, H9e = [
"min-h-24",
"min-h-24",
"min-h-24",
@@ -89423,51 +89423,51 @@ var B9e = [
"min-h-52",
"min-h-60",
"min-h-64"
-], W9e = 26, G9e = { radius: H9e.value }, K9e = (e, t) => Math.sqrt(e / t);
-function q9e({ rows: e, label: t }) {
- let n = a9e(e);
+], U9e = 26, W9e = { radius: V9e.value }, G9e = (e, t) => Math.sqrt(e / t);
+function K9e({ rows: e, label: t }) {
+ let n = i9e(e);
if (!n.length) return null;
let r = n[0].value, i = n.map((e) => ({
...e,
- radius: K9e(e.value, r)
+ radius: G9e(e.value, r)
}));
return /* @__PURE__ */ (0, x.jsx)("div", {
role: "img",
"aria-label": `${t}:${i.map((e) => e.name).join(",")}`,
- children: /* @__PURE__ */ (0, x.jsxs)(X8, {
+ children: /* @__PURE__ */ (0, x.jsxs)(Z8, {
data: i,
- config: G9e,
+ config: W9e,
chartProps: { outerRadius: "58%" },
className: "aspect-auto h-70 text-text-secondary",
children: [
- /* @__PURE__ */ (0, x.jsx)(X8.PolarGrid, {}),
- /* @__PURE__ */ (0, x.jsx)(X8.PolarAngleAxis, {
+ /* @__PURE__ */ (0, x.jsx)(Z8.PolarGrid, {}),
+ /* @__PURE__ */ (0, x.jsx)(Z8.PolarAngleAxis, {
dataKey: "name",
- tick: /* @__PURE__ */ (0, x.jsx)(z9e, {})
+ tick: /* @__PURE__ */ (0, x.jsx)(R9e, {})
}),
- /* @__PURE__ */ (0, x.jsx)(X8.PolarRadiusAxis, {
+ /* @__PURE__ */ (0, x.jsx)(Z8.PolarRadiusAxis, {
domain: [0, 1],
allowDecimals: !0,
tick: !1
}),
- /* @__PURE__ */ (0, x.jsx)(X8.Radar, { dataKey: "radius" }),
- /* @__PURE__ */ (0, x.jsx)(T8, { valueKey: "value" })
+ /* @__PURE__ */ (0, x.jsx)(Z8.Radar, { dataKey: "radius" }),
+ /* @__PURE__ */ (0, x.jsx)(E8, { valueKey: "value" })
]
})
});
}
-function J9e({ rows: e, label: t }) {
- let n = i9e(e, 8);
+function q9e({ rows: e, label: t }) {
+ let n = r9e(e, 8);
return n.length ? /* @__PURE__ */ (0, x.jsx)("section", {
"aria-label": t,
- className: `flex grow flex-col ${U9e[n.length]}`,
- children: /* @__PURE__ */ (0, x.jsxs)(h8, {
+ className: `flex grow flex-col ${H9e[n.length]}`,
+ children: /* @__PURE__ */ (0, x.jsxs)(g8, {
data: n,
- config: H9e,
+ config: V9e,
layout: "horizontal",
barRadius: 4,
chartProps: {
- maxBarSize: W9e,
+ maxBarSize: U9e,
margin: {
top: 5,
right: 56,
@@ -89477,37 +89477,37 @@ function J9e({ rows: e, label: t }) {
},
className: "aspect-auto text-text-secondary",
children: [
- /* @__PURE__ */ (0, x.jsx)(h8.YAxis, {
+ /* @__PURE__ */ (0, x.jsx)(g8.YAxis, {
dataKey: "name",
interval: 0,
- tick: /* @__PURE__ */ (0, x.jsx)(b8, { along: "y" }),
- width: f5e(n.map((e) => e.name))
+ tick: /* @__PURE__ */ (0, x.jsx)(x8, { along: "y" }),
+ width: d5e(n.map((e) => e.name))
}),
- /* @__PURE__ */ (0, x.jsx)(h8.XAxis, {
+ /* @__PURE__ */ (0, x.jsx)(g8.XAxis, {
hide: !0,
- domain: E8
+ domain: D8
}),
- /* @__PURE__ */ (0, x.jsx)(h8.Bar, {
+ /* @__PURE__ */ (0, x.jsx)(g8.Bar, {
dataKey: "value",
enableHoverHighlight: !0,
barProps: {
dataKey: "value",
- label: y5e("right")
+ label: v5e("right")
}
}),
- /* @__PURE__ */ (0, x.jsx)(T8, {})
+ /* @__PURE__ */ (0, x.jsx)(E8, {})
]
})
}) : null;
}
-function Y9e({ flows: e }) {
- let [t, n] = (0, b.useState)(null), r = d9e(e);
+function J9e({ flows: e }) {
+ let [t, n] = (0, b.useState)(null), r = u9e(e);
if (!r) return null;
let i = t?.node ?? null, a = (e, n) => t ? i === null ? t.label === n : e.source === i || e.target === i : !0;
return /* @__PURE__ */ (0, x.jsxs)("section", {
- className: g8,
+ className: _8,
children: [
- /* @__PURE__ */ (0, x.jsx)(x8, {
+ /* @__PURE__ */ (0, x.jsx)(S8, {
title: "创作者线索来源",
figure: (t ? t.value : r.total).toLocaleString(),
note: t ? t.label : "条线索"
@@ -89529,7 +89529,7 @@ function Y9e({ flows: e }) {
/* @__PURE__ */ (0, x.jsx)("div", {
className: "min-w-0 max-sm:hidden",
children: /* @__PURE__ */ (0, x.jsxs)("svg", {
- viewBox: `0 0 ${o9e.width} ${r.height}`,
+ viewBox: `0 0 ${a9e.width} ${r.height}`,
fill: "none",
role: "img",
"aria-label": "来源网站与创作者线索",
@@ -89543,7 +89543,7 @@ function Y9e({ flows: e }) {
"aria-label": `${e.label}:${e.value} 条线索`,
fillOpacity: 0,
strokeOpacity: a(e, e.label) ? .55 : .08,
- className: `outline-none transition-opacity ${B9e[e.color]}`,
+ className: `outline-none transition-opacity ${z9e[e.color]}`,
onPointerEnter: () => n({
value: e.value,
label: e.label,
@@ -89577,15 +89577,15 @@ function Y9e({ flows: e }) {
width: 10,
height: e.height,
rx: 5,
- className: e.side === "source" ? V9e[e.color] : "fill-text-secondary"
+ className: e.side === "source" ? B9e[e.color] : "fill-text-secondary"
}), /* @__PURE__ */ (0, x.jsxs)("text", {
- x: s9e[e.side],
+ x: o9e[e.side],
y: e.y + e.height / 2,
textAnchor: e.side === "source" ? "end" : "start",
dominantBaseline: "middle",
className: "fill-text-secondary text-caption-1-regular",
- children: [f9e(e.name), /* @__PURE__ */ (0, x.jsx)("tspan", {
- x: s9e[e.side],
+ children: [d9e(e.name), /* @__PURE__ */ (0, x.jsx)("tspan", {
+ x: o9e[e.side],
dy: 15,
children: e.side === "source" ? e.value.toLocaleString() : `${e.share.toFixed(1)}%`
})]
@@ -89602,11 +89602,11 @@ function Y9e({ flows: e }) {
}
//#endregion
//#region src/react/taste/taste-page.tsx
-var X9e = 10, Z9e = RO(WN, GN, "text-body-2-medium"), Q8 = `${WO()} flex flex-col gap-4`, $8 = "rounded-xl bg-background-primary-default p-3", Q9e = "读取运行 Peach 的这台电脑上的浏览记录", $9e = "导入或读取浏览记录后,这里会列出已采集设备。", eet = "馆藏里暂时没有对得上浏览信号的标签。", tet = "采集浏览记录后,这里会显示聚合后的口味证据。", net = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", ret = "采集浏览记录后,这里会列出浏览过的标签。", iet = "采集浏览记录后,这里会列出浏览过的创作者。", aet = "采集浏览记录后,这里会列出常访问的网站。", oet = "在 Peach 里播放或评价作品后,这里会列出对应的标签。", set = "在 Peach 里播放或评价作品后,这里会列出对应的创作者。", cet = "在 Peach 里播放或评价作品后,这里会列出对应的女优。", uet = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", det = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", fet = "需要刷新时再次读取或导入;数据源可在页面底部移除。", pet = "这个数据源将不再用于口味分析。原始导出文件保留。", met = "peach-taste-guide-dismissed";
-function e5({ icon: e, term: t, figure: n, detail: r, accent: i }) {
+var Y9e = 10, X9e = RO(UN, WN, "text-body-2-medium"), $8 = `${WO()} flex flex-col gap-4`, e5 = "rounded-xl bg-background-primary-default p-3", Z9e = "读取运行 Peach 的这台电脑上的浏览记录", Q9e = "导入或读取浏览记录后,这里会列出已采集设备。", $9e = "馆藏里暂时没有对得上浏览信号的标签。", eet = "采集浏览记录后,这里会显示聚合后的口味证据。", tet = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", net = "采集浏览记录后,这里会列出浏览过的标签。", ret = "采集浏览记录后,这里会列出浏览过的创作者。", iet = "采集浏览记录后,这里会列出常访问的网站。", aet = "在 Peach 里播放或评价作品后,这里会列出对应的标签。", oet = "在 Peach 里播放或评价作品后,这里会列出对应的创作者。", set = "在 Peach 里播放或评价作品后,这里会列出对应的女优。", cet = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", uet = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", det = "需要刷新时再次读取或导入;数据源可在页面底部移除。", fet = "这个数据源将不再用于口味分析。原始导出文件保留。", pet = "peach-taste-guide-dismissed";
+function t5({ icon: e, term: t, figure: n, detail: r, accent: i }) {
return /* @__PURE__ */ (0, x.jsx)("div", {
- className: LN(),
- children: /* @__PURE__ */ (0, x.jsx)(VN, {
+ className: IN(),
+ children: /* @__PURE__ */ (0, x.jsx)(BN, {
label: t,
icon: e,
accent: i,
@@ -89615,7 +89615,7 @@ function e5({ icon: e, term: t, figure: n, detail: r, accent: i }) {
})
});
}
-function het({ name: e, domain: t }) {
+function met({ name: e, domain: t }) {
return /* @__PURE__ */ (0, x.jsxs)("span", {
className: "relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-lg bg-background-tertiary-default text-caption-1-medium text-text-secondary",
children: [qt(e).toUpperCase(), /* @__PURE__ */ (0, x.jsx)("img", {
@@ -89629,22 +89629,22 @@ function het({ name: e, domain: t }) {
})]
});
}
-function get({ html: e }) {
+function het({ html: e }) {
return /* @__PURE__ */ (0, x.jsx)("span", {
- className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-medium text-text-secondary ${wz}`,
+ className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-medium text-text-secondary ${Cz}`,
dangerouslySetInnerHTML: { __html: e }
});
}
-function _et({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
+function get({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
if (!e.length) return /* @__PURE__ */ (0, x.jsx)(GO, {
shell: "plain",
icon: hO,
title: "暂无足够证据",
children: r
});
- let a = r9e(e);
- return /* @__PURE__ */ (0, x.jsx)(A5e, {
- previewCount: X9e,
+ let a = n9e(e);
+ return /* @__PURE__ */ (0, x.jsx)(k5e, {
+ previewCount: Y9e,
className: "inline-grid w-full gap-x-7 gap-y-2 sm:grid-cols-2",
children: e.map((e, r) => {
let o = !!t && !!e.peach_items, s = String(e.source_domain || ""), c = /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
@@ -89663,15 +89663,15 @@ function _et({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
className: "w-6 shrink-0 text-caption-1-regular tabular-nums text-text-secondary",
children: r + 1
}),
- n === "domain" ? /* @__PURE__ */ (0, x.jsx)(het, {
+ n === "domain" ? /* @__PURE__ */ (0, x.jsx)(met, {
name: e.name,
domain: e.name
}) : null,
- n === "creator" && !e.entity_id && !e.has_avatar && s ? /* @__PURE__ */ (0, x.jsx)(het, {
+ n === "creator" && !e.entity_id && !e.has_avatar && s ? /* @__PURE__ */ (0, x.jsx)(met, {
name: e.name,
domain: s
}) : null,
- n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !s) ? /* @__PURE__ */ (0, x.jsx)(get, { html: $i(e.name, e.entity_id ? {
+ n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !s) ? /* @__PURE__ */ (0, x.jsx)(het, { html: $i(e.name, e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
image_version: e.image_version,
@@ -89685,7 +89685,7 @@ function _et({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
children: e.name
}), /* @__PURE__ */ (0, x.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: n9e(e)
+ children: t9e(e)
})]
}),
o ? /* @__PURE__ */ (0, x.jsx)(aO, {
@@ -89708,31 +89708,31 @@ function _et({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
})
});
}
-function vet({ label: e, panels: t, onSignal: n }) {
- return /* @__PURE__ */ (0, x.jsxs)(lj, {
+function _et({ label: e, panels: t, onSignal: n }) {
+ return /* @__PURE__ */ (0, x.jsxs)(cj, {
className: `${WO({ padding: "none" })} flex flex-col`,
children: [/* @__PURE__ */ (0, x.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, x.jsx)(mj, {
+ children: /* @__PURE__ */ (0, x.jsx)(pj, {
"aria-label": e,
- className: gj,
- children: t.map((e) => /* @__PURE__ */ (0, x.jsx)(dj, {
+ className: hj,
+ children: t.map((e) => /* @__PURE__ */ (0, x.jsx)(uj, {
id: e.id,
- className: _j,
+ className: gj,
children: e.name
}, e.id))
})
- }), t.map((e) => /* @__PURE__ */ (0, x.jsx)(fj, {
+ }), t.map((e) => /* @__PURE__ */ (0, x.jsx)(dj, {
id: e.id,
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, x.jsx)(_et, {
+ children: /* @__PURE__ */ (0, x.jsx)(get, {
...e.props,
onSignal: n
})
}, e.id))]
});
}
-function yet({ data: e, onSignal: t, navigate: n }) {
+function vet({ data: e, onSignal: t, navigate: n }) {
let r = e.analysis;
if (!r?.headline) return null;
let i = r.confidence || {}, a = [...(r.explore || []).map((e) => ({
@@ -89747,7 +89747,7 @@ function yet({ data: e, onSignal: t, navigate: n }) {
act: () => n(e.route)
}))];
return /* @__PURE__ */ (0, x.jsxs)("section", {
- className: Q8,
+ className: $8,
"aria-label": "口味总结",
children: [
/* @__PURE__ */ (0, x.jsxs)("header", {
@@ -89776,7 +89776,7 @@ function yet({ data: e, onSignal: t, navigate: n }) {
r.points?.length ? /* @__PURE__ */ (0, x.jsx)("div", {
className: "inline-grid w-full gap-3 sm:grid-cols-2",
children: r.points.map((e) => /* @__PURE__ */ (0, x.jsxs)("div", {
- className: `flex min-w-0 flex-col gap-1 ${$8}`,
+ className: `flex min-w-0 flex-col gap-1 ${e5}`,
children: [/* @__PURE__ */ (0, x.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: e.label
@@ -89791,7 +89791,7 @@ function yet({ data: e, onSignal: t, navigate: n }) {
children: a.map((e) => /* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
onClick: e.act,
- className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${$8} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
+ className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${e5} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
children: [/* @__PURE__ */ (0, x.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-1",
children: [/* @__PURE__ */ (0, x.jsx)("b", {
@@ -89810,15 +89810,15 @@ function yet({ data: e, onSignal: t, navigate: n }) {
shell: "plain",
icon: hO,
title: "还没有可探索的入口",
- children: eet
+ children: $9e
})
]
});
}
-function bet({ onboarding: e, done: t }) {
+function yet({ onboarding: e, done: t }) {
let [n, r] = (0, b.useState)(() => {
try {
- return localStorage.getItem(met) === "1";
+ return localStorage.getItem(pet) === "1";
} catch {
return !1;
}
@@ -89834,11 +89834,11 @@ function bet({ onboarding: e, done: t }) {
children: [
/* @__PURE__ */ (0, x.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: uet
+ children: cet
}),
/* @__PURE__ */ (0, x.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: det
+ children: uet
}),
/* @__PURE__ */ (0, x.jsxs)("ul", {
className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",
@@ -89868,7 +89868,7 @@ function bet({ onboarding: e, done: t }) {
}),
/* @__PURE__ */ (0, x.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: fet
+ children: det
}),
/* @__PURE__ */ (0, x.jsx)("span", {
className: "self-start",
@@ -89877,7 +89877,7 @@ function bet({ onboarding: e, done: t }) {
size: "small",
onClick: () => {
try {
- localStorage.setItem(met, "1");
+ localStorage.setItem(pet, "1");
} catch {}
r(!0);
},
@@ -89888,7 +89888,7 @@ function bet({ onboarding: e, done: t }) {
})
});
}
-function xet({ busy: e, onRefresh: t, onImport: n }) {
+function bet({ busy: e, onRefresh: t, onImport: n }) {
let r = (0, b.useRef)(null), [i, a] = (0, b.useState)(!1), o = (e) => {
a(!1), e();
};
@@ -89898,7 +89898,7 @@ function xet({ busy: e, onRefresh: t, onImport: n }) {
"data-variant": "primary",
children: [/* @__PURE__ */ (0, x.jsx)(G, {
leadingIcon: sO,
- title: Q9e,
+ title: Z9e,
onClick: t,
...q(e),
children: "读取浏览器历史"
@@ -89914,19 +89914,19 @@ function xet({ busy: e, onRefresh: t, onImport: n }) {
e || a(!0);
}
})]
- }), /* @__PURE__ */ (0, x.jsx)(gA, {
+ }), /* @__PURE__ */ (0, x.jsx)(hA, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: UN,
- children: /* @__PURE__ */ (0, x.jsxs)(HN, {
+ className: HN,
+ children: /* @__PURE__ */ (0, x.jsxs)(VN, {
"aria-label": "更多取得浏览记录的方式",
className: "flex w-52 flex-col gap-1 outline-none",
children: [/* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
- className: Z9e,
+ className: X9e,
onClick: () => o(t),
children: [/* @__PURE__ */ (0, x.jsx)(sO, {
"aria-hidden": !0,
@@ -89934,7 +89934,7 @@ function xet({ busy: e, onRefresh: t, onImport: n }) {
}), "读取浏览器历史"]
}), /* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
- className: Z9e,
+ className: X9e,
onClick: () => o(n),
children: [/* @__PURE__ */ (0, x.jsx)(lde, {
"aria-hidden": !0,
@@ -89944,15 +89944,15 @@ function xet({ busy: e, onRefresh: t, onImport: n }) {
})
})] });
}
-function Cet({ sources: e, window: t, toast: n }) {
+function xet({ sources: e, window: t, toast: n }) {
let r = ft({
- mutationFn: (e) => Y7e(e, t),
+ mutationFn: (e) => J7e(e, t),
onSuccess: (e) => {
- V.setQueryData(q8(t), e.dashboard), n("已移除口味数据源");
+ V.setQueryData(J8(t), e.dashboard), n("已移除口味数据源");
}
});
return /* @__PURE__ */ (0, x.jsxs)("section", {
- className: Q8,
+ className: $8,
"aria-label": "数据源",
children: [
/* @__PURE__ */ (0, x.jsx)("h3", {
@@ -89966,7 +89966,7 @@ function Cet({ sources: e, window: t, toast: n }) {
e.length ? /* @__PURE__ */ (0, x.jsx)("div", {
className: "inline-grid w-full gap-2 sm:grid-cols-2",
children: e.map((e) => /* @__PURE__ */ (0, x.jsxs)("div", {
- className: `flex min-w-0 items-center gap-3 ${$8}`,
+ className: `flex min-w-0 items-center gap-3 ${e5}`,
children: [
/* @__PURE__ */ (0, x.jsx)("span", {
className: "inline-grid size-8 shrink-0 place-items-center rounded-lg text-text-secondary",
@@ -89999,7 +89999,7 @@ function Cet({ sources: e, window: t, toast: n }) {
onClick: () => {
r.isPending || is({
title: "移除口味数据源",
- body: pet,
+ body: fet,
confirmLabel: "移除口味数据源",
onConfirm: () => r.mutateAsync(e.source_key)
});
@@ -90011,28 +90011,28 @@ function Cet({ sources: e, window: t, toast: n }) {
shell: "plain",
icon: cO,
title: "还没有数据源",
- children: $9e
+ children: Q9e
})
]
});
}
-function wet(e) {
+function Cet(e) {
let { onSignal: t, navigate: n, toast: r, onboarding: i } = e, [a, o] = (0, b.useState)("all"), [s, c] = (0, b.useState)("browser"), l = (0, b.useRef)(null), u = dt({
- queryKey: q8(a),
- queryFn: ({ signal: e }) => G7e(a, e),
+ queryKey: J8(a),
+ queryFn: ({ signal: e }) => W7e(a, e),
placeholderData: fe
- }), { job: d, running: f, outcome: p, start: m } = SP({
- queryKey: U7e,
- queryFn: ({ signal: e }) => K7e(e),
- start: () => J7e(a),
- idlePollMs: Z7e,
+ }), { job: d, running: f, outcome: p, start: m } = xP({
+ queryKey: H7e,
+ queryFn: ({ signal: e }) => G7e(e),
+ start: () => q7e(a),
+ idlePollMs: X7e,
onFinish: (e) => {
e.status !== "failed" && (V.invalidateQueries({ queryKey: ["taste"] }), r("已更新口味分析"));
}
}), h = ft({
- mutationFn: (e) => X7e(e),
+ mutationFn: (e) => Y7e(e),
onSuccess: (e) => {
- V.setQueryData(q8("all"), e.dashboard), o("all"), r("已导入口味数据");
+ V.setQueryData(J8("all"), e.dashboard), o("all"), r("已导入口味数据");
}
}), g = (e) => {
let t = e.currentTarget.files?.[0];
@@ -90045,42 +90045,42 @@ function wet(e) {
title: "口味分析读取失败",
children: u.error ? R(u.error) : "读取口味分析失败"
}) });
- let y = v.summary || {}, S = v.coverage || {}, C = v.rankings || {}, w = v.storage || {}, T = e9e(C.browser_categories || []), E = a9e(T).length > 0, D = v.gaps || [], O = S.tagged || 0, k = S.identified || 0, A = m.error ? R(m.error) : h.error ? R(h.error) : p?.status === "failed" ? p.error || "读取未取得" : "";
+ let y = v.summary || {}, S = v.coverage || {}, C = v.rankings || {}, w = v.storage || {}, T = $7e(C.browser_categories || []), E = i9e(T).length > 0, D = v.gaps || [], O = S.tagged || 0, k = S.identified || 0, A = m.error ? R(m.error) : h.error ? R(h.error) : p?.status === "failed" ? p.error || "读取未取得" : "";
return /* @__PURE__ */ (0, x.jsxs)(qO, { children: [
- /* @__PURE__ */ (0, x.jsxs)(lj, {
+ /* @__PURE__ */ (0, x.jsxs)(cj, {
selectedKey: s,
onSelectionChange: (e) => c(String(e)),
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-3",
- children: [/* @__PURE__ */ (0, x.jsxs)(mj, {
+ children: [/* @__PURE__ */ (0, x.jsxs)(pj, {
"aria-label": "口味证据来源",
- className: gj,
- children: [/* @__PURE__ */ (0, x.jsx)(dj, {
+ className: hj,
+ children: [/* @__PURE__ */ (0, x.jsx)(uj, {
id: "browser",
- className: _j,
+ className: gj,
children: "浏览器记录"
- }), /* @__PURE__ */ (0, x.jsx)(dj, {
+ }), /* @__PURE__ */ (0, x.jsx)(uj, {
id: "peach",
- className: _j,
+ className: gj,
children: "Peach 内部"
})]
}), /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, x.jsx)(yP, {
+ /* @__PURE__ */ (0, x.jsx)(vP, {
"aria-label": "分析范围",
selectedKey: a,
onSelectionChange: (e) => {
e !== null && o(String(e));
},
- children: W7e.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(bP, {
+ children: U7e.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(yP, {
id: e,
children: t
}, e))
}),
- /* @__PURE__ */ (0, x.jsx)(xet, {
+ /* @__PURE__ */ (0, x.jsx)(bet, {
busy: f || m.isPending || h.isPending,
onRefresh: _,
onImport: () => l.current?.click()
@@ -90096,7 +90096,7 @@ function wet(e) {
]
})]
}),
- /* @__PURE__ */ (0, x.jsx)(bet, {
+ /* @__PURE__ */ (0, x.jsx)(yet, {
onboarding: i,
done: !!(y.history_sources || v.updated_at)
}),
@@ -90104,46 +90104,46 @@ function wet(e) {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- f ? /* @__PURE__ */ (0, x.jsx)(hP, {
+ f ? /* @__PURE__ */ (0, x.jsx)(mP, {
label: d?.message || "正在读取浏览记录并更新口味分析",
value: d?.checked,
total: d?.total
}) : null,
- h.isPending ? /* @__PURE__ */ (0, x.jsx)(hP, { label: "正在导入历史文件" }) : null,
+ h.isPending ? /* @__PURE__ */ (0, x.jsx)(mP, { label: "正在导入历史文件" }) : null,
A ? /* @__PURE__ */ (0, x.jsx)(K, {
tone: "error",
children: A
}) : null
]
}),
- /* @__PURE__ */ (0, x.jsxs)(fj, {
+ /* @__PURE__ */ (0, x.jsxs)(dj, {
id: "browser",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, x.jsxs)("div", {
- className: RN,
+ className: LN,
children: [
- /* @__PURE__ */ (0, x.jsx)(e5, {
+ /* @__PURE__ */ (0, x.jsx)(t5, {
accent: 0,
icon: fO,
term: "浏览记录",
figure: Number(y.history_visits || 0).toLocaleString(),
- detail: Q7e(y)
+ detail: Z7e(y)
}),
- /* @__PURE__ */ (0, x.jsx)(e5, {
+ /* @__PURE__ */ (0, x.jsx)(t5, {
accent: 1,
icon: pO,
term: "口味维度",
figure: T.length.toLocaleString(),
detail: T[0]?.name || "尚无主维度"
}),
- /* @__PURE__ */ (0, x.jsx)(e5, {
+ /* @__PURE__ */ (0, x.jsx)(t5, {
accent: 2,
icon: hO,
term: "浏览候选",
figure: D.length.toLocaleString()
}),
- /* @__PURE__ */ (0, x.jsx)(e5, {
+ /* @__PURE__ */ (0, x.jsx)(t5, {
accent: 3,
icon: cO,
term: "私有导出",
@@ -90153,7 +90153,7 @@ function wet(e) {
]
}),
/* @__PURE__ */ (0, x.jsxs)("section", {
- className: E ? `${Q8} md:flex-row md:gap-6` : Q8,
+ className: E ? `${$8} md:flex-row md:gap-6` : $8,
"aria-label": "浏览器画像",
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
className: E ? "flex shrink-0 flex-col gap-2 pb-5 md:w-80 md:pr-6 md:pb-0" : "flex flex-wrap items-baseline justify-between gap-x-4 gap-y-1",
@@ -90162,29 +90162,29 @@ function wet(e) {
className: "text-caption-1-regular text-text-secondary",
children: "浏览器画像"
}),
- E ? /* @__PURE__ */ (0, x.jsx)(q9e, {
+ E ? /* @__PURE__ */ (0, x.jsx)(K9e, {
rows: T,
label: "主要口味维度"
}) : null,
/* @__PURE__ */ (0, x.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: v.updated_at ? `更新于 ${J8(v.updated_at)}` : "尚未采集浏览记录"
+ children: v.updated_at ? `更新于 ${Y8(v.updated_at)}` : "尚未采集浏览记录"
})
]
}), /* @__PURE__ */ (0, x.jsx)("div", {
className: "flex min-w-0 grow flex-col",
- children: T.length ? /* @__PURE__ */ (0, x.jsx)(J9e, {
+ children: T.length ? /* @__PURE__ */ (0, x.jsx)(q9e, {
rows: T,
label: "口味维度排名"
}) : /* @__PURE__ */ (0, x.jsx)(GO, {
shell: "plain",
icon: hO,
title: "暂无口味维度",
- children: tet
+ children: eet
})
})]
}),
- /* @__PURE__ */ (0, x.jsx)(k5e, {
+ /* @__PURE__ */ (0, x.jsx)(O5e, {
activity: v.activity,
title: "浏览活跃时间",
dailyTitle: "每日活跃",
@@ -90196,8 +90196,8 @@ function wet(e) {
tone: 4,
empty: "还没有可用于分析的口味网站访问记录。"
}),
- /* @__PURE__ */ (0, x.jsx)(Y9e, { flows: v.creator_flows }),
- /* @__PURE__ */ (0, x.jsx)(vet, {
+ /* @__PURE__ */ (0, x.jsx)(J9e, { flows: v.creator_flows }),
+ /* @__PURE__ */ (0, x.jsx)(_et, {
label: "浏览器口味维度",
onSignal: t,
panels: [
@@ -90208,7 +90208,7 @@ function wet(e) {
rows: C.browser_tags || [],
kind: "tag",
visual: "none",
- empty: ret
+ empty: net
}
},
{
@@ -90218,7 +90218,7 @@ function wet(e) {
rows: C.browser_creators || [],
kind: "creator",
visual: "creator",
- empty: iet
+ empty: ret
}
},
{
@@ -90228,7 +90228,7 @@ function wet(e) {
rows: C.domains || [],
kind: "",
visual: "domain",
- empty: aet
+ empty: iet
}
},
{
@@ -90238,40 +90238,40 @@ function wet(e) {
rows: D,
kind: "",
visual: "none",
- empty: net
+ empty: tet
}
}
]
})
]
}),
- /* @__PURE__ */ (0, x.jsxs)(fj, {
+ /* @__PURE__ */ (0, x.jsxs)(dj, {
id: "peach",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, x.jsxs)("div", {
- className: RN,
+ className: LN,
children: [
- /* @__PURE__ */ (0, x.jsx)(e5, {
+ /* @__PURE__ */ (0, x.jsx)(t5, {
accent: 0,
icon: Gue,
term: "Peach 看过",
figure: Number(y.peach_items || 0).toLocaleString(),
- detail: $7e(y.peach_seconds || 0)
+ detail: Q7e(y.peach_seconds || 0)
}),
- /* @__PURE__ */ (0, x.jsx)(e5, {
+ /* @__PURE__ */ (0, x.jsx)(t5, {
accent: 1,
icon: cde,
term: "喜欢",
figure: Number(y.liked || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, x.jsx)(e5, {
+ /* @__PURE__ */ (0, x.jsx)(t5, {
accent: 2,
icon: sde,
term: "不合口味",
figure: Number(y.disliked || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, x.jsx)(e5, {
+ /* @__PURE__ */ (0, x.jsx)(t5, {
accent: 3,
icon: pO,
term: "有标签",
@@ -90280,7 +90280,7 @@ function wet(e) {
]
}),
/* @__PURE__ */ (0, x.jsxs)("section", {
- className: `${Q8} md:flex-row md:gap-6`,
+ className: `${$8} md:flex-row md:gap-6`,
"aria-label": "Peach 观看",
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-72 md:pr-6 md:pb-0",
@@ -90300,18 +90300,18 @@ function wet(e) {
]
}), /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex min-w-0 grow flex-col",
- children: [/* @__PURE__ */ (0, x.jsx)(Tet, {
+ children: [/* @__PURE__ */ (0, x.jsx)(wet, {
term: "有标签",
value: O,
rest: S.untagged || 0
- }), /* @__PURE__ */ (0, x.jsx)(Tet, {
+ }), /* @__PURE__ */ (0, x.jsx)(wet, {
term: "有身份",
value: k,
rest: S.unidentified || 0
})]
})]
}),
- /* @__PURE__ */ (0, x.jsx)(vet, {
+ /* @__PURE__ */ (0, x.jsx)(_et, {
label: "Peach 口味维度",
onSignal: t,
panels: [
@@ -90322,7 +90322,7 @@ function wet(e) {
rows: C.peach_tags || [],
kind: "tag",
visual: "none",
- empty: oet
+ empty: aet
}
},
{
@@ -90332,7 +90332,7 @@ function wet(e) {
rows: C.peach_creators || [],
kind: "creator",
visual: "creator",
- empty: set
+ empty: oet
}
},
{
@@ -90342,7 +90342,7 @@ function wet(e) {
rows: C.peach_performers || [],
kind: "performer",
visual: "entity",
- empty: cet
+ empty: set
}
}
]
@@ -90351,19 +90351,19 @@ function wet(e) {
})
]
}),
- /* @__PURE__ */ (0, x.jsx)(yet, {
+ /* @__PURE__ */ (0, x.jsx)(vet, {
data: v,
onSignal: t,
navigate: n
}),
- /* @__PURE__ */ (0, x.jsx)(Cet, {
+ /* @__PURE__ */ (0, x.jsx)(xet, {
sources: v.sources || [],
window: a,
toast: r
})
] });
}
-function Tet({ term: e, value: t, rest: n }) {
+function wet({ term: e, value: t, rest: n }) {
let r = Math.max(t + n, 1);
return /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
@@ -90385,13 +90385,13 @@ function Tet({ term: e, value: t, rest: n }) {
}
//#endregion
//#region src/index-skeleton.ts
-var t5 = {
+var n5 = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
tags: "标签"
-}, Eet = [[
+}, Tet = [[
"big",
"大图 · 竖幅头像",
"maximize"
@@ -90399,7 +90399,7 @@ var t5 = {
"compact",
"紧凑 · 圆形头像",
"layout-grid"
-]], Det = [[
+]], Eet = [[
"big",
"大图 · 完整标识",
"maximize"
@@ -90407,7 +90407,7 @@ var t5 = {
"compact",
"紧凑 · 圆形标识",
"layout-grid"
-]], Oet = [[
+]], Det = [[
"studios",
"厂牌",
"clapperboard"
@@ -90415,7 +90415,7 @@ var t5 = {
"agencies",
"事务所",
"briefcase"
-]], ket = [[
+]], Oet = [[
"local",
"本地",
"hard-drive"
@@ -90423,7 +90423,7 @@ var t5 = {
"online",
"在线",
"rss"
-]], Aet = [
+]], ket = [
[
"performers",
"艺人",
@@ -90439,7 +90439,7 @@ var t5 = {
"在线",
"rss"
]
-], jet = [[
+], Aet = [[
"cloud",
"标签云",
"tags"
@@ -90447,8 +90447,8 @@ var t5 = {
"alphabet",
"字母表",
"text-aa"
-]], Met = (e) => e === "compact" ? "compact" : "big";
-function Net(e, t) {
+]], jet = (e) => e === "compact" ? "compact" : "big";
+function Met(e, t) {
let n = new URLSearchParams(t);
return {
kind: e,
@@ -90458,7 +90458,7 @@ function Net(e, t) {
category: n.get("category") || "all"
};
}
-var n5 = (e, t, n) => Za(e.map(([e, t, n]) => ({
+var r5 = (e, t, n) => Za(e.map(([e, t, n]) => ({
value: e,
label: t,
symbol: n
@@ -90466,38 +90466,38 @@ var n5 = (e, t, n) => Za(e.map(([e, t, n]) => ({
active: t,
label: n,
className: "indextabs"
-}), Pet = (e) => `<div class="board-filter-frame" data-filter-frame>
+}), Net = (e) => `<div class="board-filter-frame" data-filter-frame>
<div class="tagbar" data-filter-row="top" data-skeleton-tier="pill" aria-label="标签类型"></div>
<div class="count" data-filter-row="bottom"><span class="mono"><span class="countskeleton"></span></span>
- ${Jo("tag-view", "标签视图", jet, e)}</div></div>`;
-function Fet({ kind: e, q: t, scope: n, view: r, category: i }, a) {
- let o = t5[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies", l = s ? Jo("people-layout", o + "索引版式", c ? Det : Eet, a) : "";
+ ${Jo("tag-view", "标签视图", Aet, e)}</div></div>`;
+function Pet({ kind: e, q: t, scope: n, view: r, category: i }, a) {
+ let o = n5[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies", l = s ? Jo("people-layout", o + "索引版式", c ? Eet : Tet, a) : "";
return `<div class="ihead peach-react">
<h2 class="disp indexheading">${o}</h2>
${s ? "<span class=\"mono\" id=\"indexCount\"><span class=\"countskeleton\"></span></span>" : ""}${l}
- <div data-index-search class="ml-auto min-w-35 max-w-80 flex-1 max-board-narrow:order-1 max-board-narrow:basis-40">${JN("", t, "过滤" + o)}</div>
+ <div data-index-search class="ml-auto min-w-35 max-w-80 flex-1 max-board-narrow:order-1 max-board-narrow:basis-40">${qN("", t, "过滤" + o)}</div>
</div>
- ${e === "tags" ? n5(ket, n, "词表") : e === "performers" || e === "creators" ? n5(Aet, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? n5(Oet, e, "公司类型") : ""}
- ${e === "tags" ? Pet(r) : ""}
- ${e === "performers" && n !== "online" ? vbe(i) : ""}
+ ${e === "tags" ? r5(Oet, n, "词表") : e === "performers" || e === "creators" ? r5(ket, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? r5(Det, e, "公司类型") : ""}
+ ${e === "tags" ? Net(r) : ""}
+ ${e === "performers" && n !== "online" ? ybe(i) : ""}
${fo({
kind: e,
layout: a,
mode: r
})}`;
}
-var Iet = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
-function Let(e, t, n) {
- let r = Fet(t, n);
- e.querySelector("[data-skeleton]")?.dataset.skeleton !== Iet(r) && (e.innerHTML = r, yo(e));
+var Fet = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
+function Iet(e, t, n) {
+ let r = Pet(t, n);
+ e.querySelector("[data-skeleton]")?.dataset.skeleton !== Fet(r) && (e.innerHTML = r, yo(e));
}
//#endregion
//#region src/react/router/pages/index-entity.tsx
-var Ret = () => bc, zet = () => ac, r5 = () => document.getElementById("index");
-function i5(e, t, n = {}) {
- let r = (0, b.useSyncExternalStore)(jc, Ret);
- QI();
- let i = dL(HL.navigation.location.pathname), a = (0, b.useRef)({
+var Let = () => bc, Ret = () => ac, i5 = () => document.getElementById("index");
+function a5(e, t, n = {}) {
+ let r = (0, b.useSyncExternalStore)(jc, Let);
+ ZI();
+ let i = uL(VL.navigation.location.pathname), a = (0, b.useRef)({
mounted: !0,
epoch: -1,
opens: -1,
@@ -90522,7 +90522,7 @@ function i5(e, t, n = {}) {
let t = a.current;
if (!t.mounted) return;
let n = t.epoch !== e || t.opens !== bc, r = t.opens !== bc;
- if (t.epoch = e, t.opens = bc, dL(HL.navigation.location.pathname)) {
+ if (t.epoch = e, t.opens = bc, uL(VL.navigation.location.pathname)) {
n && o.current.options.onCovered?.();
return;
}
@@ -90543,13 +90543,13 @@ function i5(e, t, n = {}) {
i
]);
}
-async function Bet(e, t, n, r) {
- let i = r5();
+async function zet(e, t, n, r) {
+ let i = i5();
if (!i) return;
let a = `/${t}`;
e.surfaceChanged("index", a);
- let o = Net(t, n), s = Met(aT().value.peopleLayout);
- Let(i, o, s), await ML(a, {
+ let o = Met(t, n), s = jet(oT().value.peopleLayout);
+ Iet(i, o, s), await jL(a, {
...o,
layout: s,
selectMode: ac,
@@ -90559,23 +90559,23 @@ async function Bet(e, t, n, r) {
isCurrent: r
}) && r() && e.surfaceShown?.("index", a);
}
-function Vet(e) {
- let t = r5(), n = t ? OL(t) : null;
+function Bet(e) {
+ let t = i5(), n = t ? DL(t) : null;
return !!t && !t.hidden && !!n && n.path === e && n.host.isConnected;
}
-function Het({ epoch: e }) {
- let t = (0, b.useContext)(ZL), n = QI(), r = n.pathname.split("/").filter(Boolean)[0];
- return i5(e, (e, i) => {
- t && Bet(t, r, n.search, i);
- }, { shown: () => Vet(`/${r}`) }), null;
+function Vet({ epoch: e }) {
+ let t = (0, b.useContext)(XL), n = ZI(), r = n.pathname.split("/").filter(Boolean)[0];
+ return a5(e, (e, i) => {
+ t && zet(t, r, n.search, i);
+ }, { shown: () => Bet(`/${r}`) }), null;
}
-function Uet() {
- let e = XL(), t = (0, b.useSyncExternalStore)(jc, zet), n = (0, b.useRef)(t);
+function Het() {
+ let e = YL(), t = (0, b.useSyncExternalStore)(jc, Ret), n = (0, b.useRef)(t);
return (0, b.useEffect)(() => {
- n.current !== t && (n.current = t, window.location.pathname === "/tags" && NL(r5(), { selectMode: t }));
- }, [t]), /* @__PURE__ */ (0, x.jsx)(Het, { epoch: e }, e);
+ n.current !== t && (n.current = t, window.location.pathname === "/tags" && ML(i5(), { selectMode: t }));
+ }, [t]), /* @__PURE__ */ (0, x.jsx)(Vet, { epoch: e }, e);
}
-function Wet(e) {
+function Uet(e) {
let t;
try {
t = decodeURIComponent(e);
@@ -90589,9 +90589,9 @@ function Wet(e) {
name: a
} : null;
}
-var Get = /* @__PURE__ */ new WeakMap();
-function Ket(e) {
- let t = Get.get(e);
+var Wet = /* @__PURE__ */ new WeakMap();
+function Get(e) {
+ let t = Wet.get(e);
return t || (t = {
helpers: {
...e.grid.helpers,
@@ -90601,14 +90601,14 @@ function Ket(e) {
...e.grid.actions,
revealSource: e.revealSource
}
- }, Get.set(e, t)), t;
+ }, Wet.set(e, t)), t;
}
-function qet() {
- let e = r5(), t = e ? OL(e) : null;
+function Ket() {
+ let e = i5(), t = e ? DL(e) : null;
return !!t && t.path.endsWith("/*") && t.host.isConnected;
}
-async function Jet(e, t, n, r, i, a) {
- let o = r5();
+async function qet(e, t, n, r, i, a) {
+ let o = i5();
if (!o) return;
let { segment: s, kind: c, name: l } = n;
if (e.surfaceChanged("entity", r), await t.loading(c, l, a), !a()) return;
@@ -90622,7 +90622,7 @@ async function Jet(e, t, n, r, i, a) {
}, m = t.props(c, l, i), h = {
...m,
hosts: p,
- card: Ket(e),
+ card: Get(e),
actions: {
...m.actions,
javContext: (e) => {
@@ -90630,43 +90630,43 @@ async function Jet(e, t, n, r, i, a) {
}
}
};
- await ML(`/${s}/*`, h, {
+ await jL(`/${s}/*`, h, {
container: o,
isCurrent: a,
place: (e) => (e.replaceChildren(...d), f.firstElementChild)
- }) && a() && qet() && (e.surfaceShown?.("entity", r), window.scrollTo({
+ }) && a() && Ket() && (e.surfaceShown?.("entity", r), window.scrollTo({
top: 0,
behavior: "smooth"
}));
}
-function Yet({ target: e }) {
- let t = (0, b.useContext)(ZL), n = XL(), r = QI();
- return i5(n, (n, i) => {
+function Jet({ target: e }) {
+ let t = (0, b.useContext)(XL), n = YL(), r = ZI();
+ return a5(n, (n, i) => {
let a = t?.entity;
- t && a && (n || !a.refresh(e.kind, e.name, r.search)) && Jet(t, a, e, r.pathname, r.search, i);
- }, { shown: () => qet() && !r5()?.hidden }), null;
+ t && a && (n || !a.refresh(e.kind, e.name, r.search)) && qet(t, a, e, r.pathname, r.search, i);
+ }, { shown: () => Ket() && !i5()?.hidden }), null;
}
-function Xet() {
- let e = Wet(QI().pathname);
- return e ? /* @__PURE__ */ (0, x.jsx)(Yet, { target: e }, JSON.stringify([e.kind, e.name])) : null;
+function Yet() {
+ let e = Uet(ZI().pathname);
+ return e ? /* @__PURE__ */ (0, x.jsx)(Jet, { target: e }, JSON.stringify([e.kind, e.name])) : null;
}
//#endregion
//#region src/react/router/pages/catalog.tsx
-var Zet = () => bc, Qet = HL.navigation.seq, $et = HL.navigation.openEpoch, a5 = HL.navigation.location.pathname, o5 = {
- seq: Qet,
+var Xet = () => bc, Zet = VL.navigation.seq, Qet = VL.navigation.openEpoch, o5 = VL.navigation.location.pathname, s5 = {
+ seq: Zet,
claimed: !0,
- from: a5
+ from: o5
};
-HL.listen((e) => {
- o5 = {
+VL.listen((e) => {
+ s5 = {
seq: e.seq,
- claimed: e.openEpoch === $et,
- from: a5
- }, $et = e.openEpoch, a5 = e.location.pathname;
+ claimed: e.openEpoch === Qet,
+ from: o5
+ }, Qet = e.openEpoch, o5 = e.location.pathname;
});
-var s5 = !1;
-function ett(e) {
- let { seq: t, openEpoch: n, location: r } = HL.navigation, i = dL(r.pathname), a = GL() ?? r, o = H ?? {};
+var c5 = !1;
+function $et(e) {
+ let { seq: t, openEpoch: n, location: r } = VL.navigation, i = uL(r.pathname), a = WL() ?? r, o = H ?? {};
return {
seq: t,
epoch: n,
@@ -90677,7 +90677,7 @@ function ett(e) {
opened: e
};
}
-function ttt(e, t, n, r) {
+function ett(e, t, n, r) {
let i = { ...H };
if (e === "/trash") return {
...i,
@@ -90688,7 +90688,7 @@ function ttt(e, t, n, r) {
state: "trash",
q: ""
};
- let a = new URLSearchParams(t), { defaultSort: o, defaultSortDirection: s } = aT().value;
+ let a = new URLSearchParams(t), { defaultSort: o, defaultSortDirection: s } = oT().value;
return {
...i,
loc: a.get("loc") ?? r.defaultLoc(),
@@ -90702,19 +90702,19 @@ function ttt(e, t, n, r) {
dur_max: a.get("dur_max") || "",
orient: a.get("orient") || "",
state: St[e] || a.get("state") || "",
- ...zw(a.get("sort"), a.get("dir"), o, s),
+ ...Bw(a.get("sort"), a.get("dir"), o, s),
seed: a.get("seed") || (n ? Zt() : i.seed || Zt()),
q: a.get("q") || "",
jav: a.get("jav") || ""
};
}
-function ntt(e, t) {
- let n = { ...e }, r = ett(n.opened);
+function ttt(e, t) {
+ let n = { ...e }, r = $et(n.opened);
Object.assign(e, r);
let i = t.catalog;
if (!i || r.opens === 0) return;
if (r.covered) {
- GL() || i.fill();
+ WL() || i.fill();
return;
}
let a = !1;
@@ -90724,41 +90724,41 @@ function ntt(e, t) {
i.load();
return;
}
- r.epoch !== n.epoch && (a = HL.navigation.action === "POP" && o5.from !== "/");
+ r.epoch !== n.epoch && (a = VL.navigation.action === "POP" && s5.from !== "/");
}
- let { pathname: o, search: s } = HL.navigation.location;
+ let { pathname: o, search: s } = VL.navigation.location;
if (o === "/" && new URLSearchParams(s).get("state") === "ads") {
- let { kind: e, view: t } = Hz(s);
- s5 = !0, UL(Uz(e, t), { replace: !0 });
+ let { kind: e, view: t } = Vz(s);
+ c5 = !0, HL(Hz(e, t), { replace: !0 });
return;
}
- let c = s5;
- s5 = !1, a &&= o === "/", e.opened = !0, kc({ state: ttt(o, s, a, i) }), i.open(o, {
+ let c = c5;
+ c5 = !1, a &&= o === "/", e.opened = !0, kc({ state: ett(o, s, a, i) }), i.open(o, {
entering: a,
retitle: c
});
}
-function rtt(e) {
- return wt(e) || e === "/trash" || dL(e) || e === "/immerse" || !!Wet(e);
+function ntt(e) {
+ return wt(e) || e === "/trash" || uL(e) || e === "/immerse" || !!Uet(e);
}
-function itt() {
- let e = (0, b.useContext)(ZL), t = XL(), n = (0, b.useSyncExternalStore)(jc, Zet), r = QI(), i = (0, b.useRef)(null), a = (0, b.useRef)({
+function rtt() {
+ let e = (0, b.useContext)(XL), t = YL(), n = (0, b.useSyncExternalStore)(jc, Xet), r = ZI(), i = (0, b.useRef)(null), a = (0, b.useRef)({
mounted: !0,
queued: !1
});
return (0, b.useEffect)(() => {
let t = a.current;
t.mounted = !0;
- let n = ett(!dL(HL.navigation.location.pathname));
- return !n.covered && n.opens > 0 && (s5 || o5.seq === Qet ? n.opens = -1 : o5.claimed ? n.seq = -1 : n.epoch = -1), i.current = n, () => {
+ let n = $et(!uL(VL.navigation.location.pathname));
+ return !n.covered && n.opens > 0 && (c5 || s5.seq === Zet ? n.opens = -1 : s5.claimed ? n.seq = -1 : n.epoch = -1), i.current = n, () => {
t.mounted = !1, queueMicrotask(() => {
- e?.catalog && !rtt(HL.navigation.location.pathname) && e.catalog.release();
+ e?.catalog && !ntt(VL.navigation.location.pathname) && e.catalog.release();
});
};
}, []), (0, b.useEffect)(() => {
let t = a.current;
!t.queued && e && (t.queued = !0, queueMicrotask(() => {
- t.queued = !1, t.mounted && i.current && ntt(i.current, e);
+ t.queued = !1, t.mounted && i.current && ttt(i.current, e);
}));
}, [
t,
@@ -90767,34 +90767,34 @@ function itt() {
e
]), null;
}
-function att() {
- let { pathname: e, search: t } = QI(), n = (0, b.useContext)(ZL), r = document.getElementById("javLibraryHeader"), i = wt(e) && new URLSearchParams(t).get("jav") === "1";
+function itt() {
+ let { pathname: e, search: t } = ZI(), n = (0, b.useContext)(XL), r = document.getElementById("javLibraryHeader"), i = wt(e) && new URLSearchParams(t).get("jav") === "1";
return (0, b.useLayoutEffect)(() => {
if (r) return r.hidden = !i, () => {
r.hidden = !0;
};
- }, [r, i]), dL(e) && !uL(e) ? null : /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(itt, {}, e === "/junk-files" ? "/junk-files" : "/"), i && r && n ? (0, mt.createPortal)(/* @__PURE__ */ (0, x.jsx)(HEe, {
+ }, [r, i]), uL(e) && !lL(e) ? null : /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(rtt, {}, e === "/junk-files" ? "/junk-files" : "/"), i && r && n ? (0, mt.createPortal)(/* @__PURE__ */ (0, x.jsx)(UEe, {
navigate: n.navigate,
receipt: (e) => n.receipt(e)
}), r) : null] });
}
//#endregion
//#region src/react/router/pages/follow.tsx
-var c5 = () => document.getElementById("stats"), ott = () => Ec;
-function stt(e) {
+var l5 = () => document.getElementById("stats"), att = () => Ec;
+function ott(e) {
let t = document.createElement("div");
return t.className = "peach-react", co(e, () => {
e.textContent = "", e.append(t);
}), t;
}
-async function ctt(e, t) {
- let n = c5(), r = e.follow;
+async function stt(e, t) {
+ let n = l5(), r = e.follow;
if (!n || !r || r.refresh()) return;
let i = Tc;
- e.surfaceChanged("follow", "/follow"), PH(n, r.skeleton()), await ML("/follow", r.props(), {
+ e.surfaceChanged("follow", "/follow"), NH(n, r.skeleton()), await jL("/follow", r.props(), {
container: n,
isCurrent: t,
- place: stt
+ place: ott
}), t() && window.scrollTo(i ? {
top: i,
behavior: "instant"
@@ -90803,32 +90803,32 @@ async function ctt(e, t) {
behavior: "smooth"
});
}
-function ltt() {
- let e = c5(), t = e ? OL(e) : null;
+function ctt() {
+ let e = l5(), t = e ? DL(e) : null;
return !!e && !e.hidden && !!t && t.path === "/follow" && t.host.isConnected;
}
-function utt() {
- let e = (0, b.useContext)(ZL);
- return i5(XL(), (t, n) => {
- e && ctt(e, n);
+function ltt() {
+ let e = (0, b.useContext)(XL);
+ return a5(YL(), (t, n) => {
+ e && stt(e, n);
}, {
- shown: ltt,
+ shown: ctt,
onCovered: () => {
- HL.navigation.location.pathname.startsWith("/follow/item/") && e?.follow?.ground();
+ VL.navigation.location.pathname.startsWith("/follow/item/") && e?.follow?.ground();
}
}), null;
}
-function dtt(e) {
- let t = e ? OL(e) : null;
+function utt(e) {
+ let t = e ? DL(e) : null;
return !!t && t.path === "/playlists" && t.host.isConnected;
}
-async function ftt(e, t) {
- let n = c5();
- n && (e.surfaceChanged("playlists", "/playlists"), PH(n, MH("/playlists", {
+async function dtt(e, t) {
+ let n = l5();
+ n && (e.surfaceChanged("playlists", "/playlists"), NH(n, jH("/playlists", {
followLayout: "",
followSort: "",
followDir: ""
- })), await ML("/playlists", { revision: Ec }, {
+ })), await jL("/playlists", { revision: Ec }, {
container: n,
isCurrent: t
}), t() && window.scrollTo({
@@ -90836,68 +90836,68 @@ async function ftt(e, t) {
behavior: "smooth"
}));
}
-function ptt() {
- let e = (0, b.useContext)(ZL), t = (0, b.useSyncExternalStore)(jc, ott), n = (0, b.useRef)(t);
+function ftt() {
+ let e = (0, b.useContext)(XL), t = (0, b.useSyncExternalStore)(jc, att), n = (0, b.useRef)(t);
return (0, b.useEffect)(() => {
if (n.current === t) return;
n.current = t;
- let e = c5();
- dtt(e) && NL(e, { revision: t });
- }, [t]), i5(XL(), (t, n) => {
- e && ftt(e, n);
+ let e = l5();
+ utt(e) && ML(e, { revision: t });
+ }, [t]), a5(YL(), (t, n) => {
+ e && dtt(e, n);
}, { shown: () => {
- let e = c5();
- return dtt(e) && !e.hidden;
+ let e = l5();
+ return utt(e) && !e.hidden;
} }), null;
}
//#endregion
//#region src/react/router/pages/immerse.tsx
-function mtt() {
- let e = new URLSearchParams(HL.navigation.location.search).get("id");
+function ptt() {
+ let e = new URLSearchParams(VL.navigation.location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
-function htt() {
- let e = (0, b.useContext)(ZL);
- return JL(() => {
- e?.openImmerse(mtt());
+function mtt() {
+ let e = (0, b.useContext)(XL);
+ return qL(() => {
+ e?.openImmerse(ptt());
}, !0), null;
}
-function gtt() {
- return /* @__PURE__ */ (0, x.jsx)(htt, {}, XL());
+function htt() {
+ return /* @__PURE__ */ (0, x.jsx)(mtt, {}, YL());
}
//#endregion
//#region src/react/router/pages/managed.tsx
-var _tt = [
+var gtt = [
"list",
"add",
"feeds"
-], vtt = () => bc > 0, ytt = () => (0, b.useSyncExternalStore)(jc, vtt), l5 = !1, btt = () => aT().value.followLayout === "table" ? "table" : "default", u5 = () => new URLSearchParams(window.location.search);
-function xtt(e) {
- let t = u5();
- return MH(e, {
- followLayout: btt(),
+], _tt = () => bc > 0, vtt = () => (0, b.useSyncExternalStore)(jc, _tt), u5 = !1, ytt = () => oT().value.followLayout === "table" ? "table" : "default", d5 = () => new URLSearchParams(window.location.search);
+function btt(e) {
+ let t = d5();
+ return jH(e, {
+ followLayout: ytt(),
followSort: t.get("sort") || "",
followDir: t.get("dir") || ""
});
}
-function d5(e) {
+function f5(e) {
return vt("/healthz", { signal: e.controller.signal }).catch((e) => {
if (yt(e)) return null;
throw e;
});
}
-function Stt(e, t) {
+function xtt(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 Ctt(e, t) {
+async function Stt(e, t) {
if (e === "/jav") {
- let e = await d5(t);
+ let e = await f5(t);
return t.live ? {
- tab: Zz(u5().get("tab")),
+ tab: Xz(d5().get("tab")),
readOnly: !!e?.ledger_read_only
} : null;
}
@@ -90908,58 +90908,58 @@ async function Ctt(e, t) {
}
if (e === "/configuration") {
window.location.hash === "#peachProxy" && kc({ configurationRequestedSection: "网络与访问" });
- let e = u5().get("section") || _c;
+ let e = d5().get("section") || _c;
return e ? { section: e } : {};
}
if (e === "/review") {
- let e = u5().get("category") || "", n = await d5(t);
+ let e = d5().get("category") || "", n = await f5(t);
return t.live ? {
- category: RM(e) ? e : "",
- ...Stt(n, "/review")
+ category: LM(e) ? e : "",
+ ...xtt(n, "/review")
} : null;
}
if (e === "/follow-manage") {
- let e = u5(), n = e.get("tab") || "", r = {
- tab: _tt.includes(n) ? n : "list",
+ let e = d5(), n = e.get("tab") || "", r = {
+ tab: gtt.includes(n) ? n : "list",
page: Math.max(1, Math.floor(Number(e.get("page"))) || 1),
sort: e.get("sort") || "",
dir: e.get("dir") || ""
- }, i = await d5(t);
+ }, i = await f5(t);
if (!t.live) return null;
- let a = aT().value;
+ let a = oT().value;
return {
...r,
pageSize: Number(a.followPageSize) || 20,
- layout: btt(),
- ...Stt(i, "/follow-manage")
+ layout: ytt(),
+ ...xtt(i, "/follow-manage")
};
}
return {};
}
-var f5 = () => {
+var p5 = () => {
window.scrollTo({
top: 0,
behavior: "smooth"
});
-}, p5 = (e) => {
+}, m5 = (e) => {
document.getElementById(e)?.scrollIntoView({ block: "start" });
-}, wtt = /* @__PURE__ */ new Set(["/stats", "/taste"]), Ttt = /* @__PURE__ */ new Set([
+}, Ctt = /* @__PURE__ */ new Set(["/stats", "/taste"]), wtt = /* @__PURE__ */ new Set([
"/review",
"/quality-goals",
"/activity",
"/follow-manage"
]);
-async function Ett(e, t, n) {
- if (e === "/jav" && Zz(u5().get("tab")) === "library") {
- HL.replace(_Ee(window.location.search));
+async function Ttt(e, t, n) {
+ if (e === "/jav" && Xz(d5().get("tab")) === "library") {
+ VL.replace(vEe(window.location.search));
return;
}
- if (e === "/follow-manage" && u5().get("tab") === "wants") {
- UL("/jav?tab=wants", { replace: !0 });
+ if (e === "/follow-manage" && d5().get("tab") === "wants") {
+ HL("/jav?tab=wants", { replace: !0 });
return;
}
- if (e === "/follow-manage" && u5().get("tab") === "source") {
- UL("/configuration?section=%E6%9D%A5%E6%BA%90%E4%B8%8E%E8%AE%A2%E9%98%85", { replace: !0 });
+ if (e === "/follow-manage" && d5().get("tab") === "source") {
+ HL("/configuration?section=%E6%9D%A5%E6%BA%90%E4%B8%8E%E8%AE%A2%E9%98%85", { replace: !0 });
return;
}
let r = document.getElementById("stats");
@@ -90982,36 +90982,36 @@ async function Ett(e, t, n) {
q: "",
jav: ""
} }), t.clearSearch());
- let i = e === "/data-cleanup" && l5;
- i && (l5 = !1), PH(r, xtt(e));
- let a = await Ctt(e, n);
+ let i = e === "/data-cleanup" && u5;
+ i && (u5 = !1), NH(r, btt(e));
+ let a = await Stt(e, n);
if (!a) return;
- let o = await ML(e, a, {
+ let o = await jL(e, a, {
container: r,
isCurrent: () => n.live
});
- if (o && (n.revision = OL(r)?.revision ?? 0), e === "/configuration" && o && kc({ configurationRequestedSection: "" }), wtt.has(e) && f5(), n.live) {
+ if (o && (n.revision = DL(r)?.revision ?? 0), e === "/configuration" && o && kc({ configurationRequestedSection: "" }), Ctt.has(e) && p5(), n.live) {
let { hash: t } = window.location;
- Ttt.has(e) && f5(), e === "/configuration" && (t === "#libraryProcessing" ? queueMicrotask(() => {
- n.live && UL("/data-cleanup#libraryProcessing", {
+ wtt.has(e) && p5(), e === "/configuration" && (t === "#libraryProcessing" ? queueMicrotask(() => {
+ n.live && HL("/data-cleanup#libraryProcessing", {
replace: !0,
state: null
});
- }) : t === "#peachProxy" ? p5("peachProxy") : f5()), e === "/data-cleanup" && t === "#libraryProcessing" && p5("libraryProcessing");
+ }) : t === "#peachProxy" ? m5("peachProxy") : p5()), e === "/data-cleanup" && t === "#libraryProcessing" && m5("libraryProcessing");
}
- i && p5("resource-sync");
+ i && m5("resource-sync");
}
-function m5({ path: e }) {
- let t = XL();
- QI();
- let n = dL(HL.navigation.location.pathname), r = (0, b.useRef)(n ? null : t);
- return n || (r.current = t), /* @__PURE__ */ (0, x.jsx)(Dtt, {
+function h5({ path: e }) {
+ let t = YL();
+ ZI();
+ let n = uL(VL.navigation.location.pathname), r = (0, b.useRef)(n ? null : t);
+ return n || (r.current = t), /* @__PURE__ */ (0, x.jsx)(Ett, {
path: e,
covered: r.current === null
}, `${e} ${r.current ?? "covered"}`);
}
-function Dtt({ path: e, covered: t }) {
- let n = (0, b.useContext)(ZL), r = ytt(), i = (0, b.useRef)(null);
+function Ett({ path: e, covered: t }) {
+ let n = (0, b.useContext)(XL), r = vtt(), i = (0, b.useRef)(null);
return (0, b.useEffect)(() => {
if (t || !n || !r || i.current) return;
let a = {
@@ -91020,7 +91020,7 @@ function Dtt({ path: e, covered: t }) {
controller: new AbortController()
};
i.current = a, queueMicrotask(() => {
- a.live && Ett(e, n, a);
+ a.live && Ttt(e, n, a);
});
}, [r]), (0, b.useEffect)(() => () => {
let e = i.current;
@@ -91028,18 +91028,18 @@ function Dtt({ path: e, covered: t }) {
e.live = !1, e.controller.abort();
let t = document.getElementById("stats");
queueMicrotask(() => {
- t && e.revision && !t.hidden && OL(t)?.revision === e.revision && PL(t);
+ t && e.revision && !t.hidden && DL(t)?.revision === e.revision && NL(t);
});
}, []), null;
}
-function Ott() {
- let e = ytt(), t = (0, b.useRef)(!1);
+function Dtt() {
+ let e = vtt(), t = (0, b.useRef)(!1);
return (0, b.useEffect)(() => {
- if (!e || t.current || dL(HL.navigation.location.pathname)) return;
+ if (!e || t.current || uL(VL.navigation.location.pathname)) return;
t.current = !0;
let n = !0;
return queueMicrotask(() => {
- n && (l5 = !0, UL("/data-cleanup#resource-sync", { replace: !0 }));
+ n && (u5 = !0, HL("/data-cleanup#resource-sync", { replace: !0 }));
}), () => {
n = !1;
};
@@ -91047,28 +91047,28 @@ function Ott() {
}
//#endregion
//#region src/react/router/managed-routes.tsx
-function ktt(e, t, n) {
+function Ott(e, t, n) {
if (e === "duplicates") {
n("/duplicates");
return;
}
let r = t.managePath(e);
- g5(r) ? n(r) : t.openManage(e);
+ _5(r) ? n(r) : t.openManage(e);
}
-var h5 = {
+var g5 = {
"/jav": {
- element: /* @__PURE__ */ (0, x.jsx)(m5, { path: "/jav" }),
- prefetch: (e, t) => VEe(e.tab, t),
- page: (e, t) => /* @__PURE__ */ (0, x.jsx)(WEe, {
+ element: /* @__PURE__ */ (0, x.jsx)(h5, { path: "/jav" }),
+ prefetch: (e, t) => HEe(e.tab, t),
+ page: (e, t) => /* @__PURE__ */ (0, x.jsx)(GEe, {
...e,
navigate: t.navigate,
receipt: (e) => t.receipt(e)
})
},
"/stats": {
- element: /* @__PURE__ */ (0, x.jsx)(m5, { path: "/stats" }),
- prefetch: (e, t) => lMe(t),
- page: (e, t, n) => /* @__PURE__ */ (0, x.jsx)(h7e, {
+ element: /* @__PURE__ */ (0, x.jsx)(h5, { path: "/stats" }),
+ prefetch: (e, t) => uMe(t),
+ page: (e, t, n) => /* @__PURE__ */ (0, x.jsx)(m7e, {
tagLabel: Ks,
onTag: t.openTag,
configurable: e.configurable,
@@ -91078,9 +91078,9 @@ var h5 = {
})
},
"/taste": {
- element: /* @__PURE__ */ (0, x.jsx)(m5, { path: "/taste" }),
- prefetch: (e, t) => q7e("all", t),
- page: (e, t, n) => /* @__PURE__ */ (0, x.jsx)(wet, {
+ element: /* @__PURE__ */ (0, x.jsx)(h5, { path: "/taste" }),
+ prefetch: (e, t) => K7e("all", t),
+ page: (e, t, n) => /* @__PURE__ */ (0, x.jsx)(Cet, {
onSignal: t.openTasteSignal,
navigate: n,
toast: (e) => t.receipt(e),
@@ -91088,9 +91088,9 @@ var h5 = {
})
},
"/review": {
- element: /* @__PURE__ */ (0, x.jsx)(m5, { path: "/review" }),
- prefetch: (e, t) => X_e(t),
- page: (e, t) => /* @__PURE__ */ (0, x.jsx)(EDe, {
+ element: /* @__PURE__ */ (0, x.jsx)(h5, { path: "/review" }),
+ prefetch: (e, t) => Z_e(t),
+ page: (e, t) => /* @__PURE__ */ (0, x.jsx)(DDe, {
...e,
route: t.routeReview,
openItem: t.openItem,
@@ -91100,27 +91100,27 @@ var h5 = {
})
},
"/data-cleanup": {
- element: /* @__PURE__ */ (0, x.jsx)(m5, { path: "/data-cleanup" }),
- prefetch: (e, t) => Ive(t),
- page: (e, t, n) => /* @__PURE__ */ (0, x.jsx)(cbe, {
+ element: /* @__PURE__ */ (0, x.jsx)(h5, { path: "/data-cleanup" }),
+ prefetch: (e, t) => Lve(t),
+ page: (e, t, n) => /* @__PURE__ */ (0, x.jsx)(lbe, {
failure: t.failure,
- open: (e) => ktt(e, t, n),
+ open: (e) => Ott(e, t, n),
toast: (e, { warning: n = !1 } = {}) => n ? t.toast({ text: e }, { sound: "warning" }) : t.receipt(e)
})
},
"/duplicates": {
- element: /* @__PURE__ */ (0, x.jsx)(m5, { path: "/duplicates" }),
- prefetch: (e, t) => p_e(t),
- page: (e, t) => /* @__PURE__ */ (0, x.jsx)(_we, {
+ element: /* @__PURE__ */ (0, x.jsx)(h5, { path: "/duplicates" }),
+ prefetch: (e, t) => m_e(t),
+ page: (e, t) => /* @__PURE__ */ (0, x.jsx)(vwe, {
openItem: t.openItem,
failure: t.failure,
toast: (e, { undo: n } = {}) => t.receipt(e, n ? { undo: n } : {})
})
},
"/quality-goals": {
- element: /* @__PURE__ */ (0, x.jsx)(m5, { path: "/quality-goals" }),
- prefetch: (e, t) => j_e(t),
- page: (e, t) => /* @__PURE__ */ (0, x.jsx)(uDe, {
+ element: /* @__PURE__ */ (0, x.jsx)(h5, { path: "/quality-goals" }),
+ prefetch: (e, t) => M_e(t),
+ page: (e, t) => /* @__PURE__ */ (0, x.jsx)(dDe, {
openItem: t.openItem,
javTitleHtml: nO,
javDisplayName: tO,
@@ -91129,23 +91129,23 @@ var h5 = {
})
},
"/scraping": {
- element: /* @__PURE__ */ (0, x.jsx)(m5, { path: "/scraping" }),
- prefetch: (e, t) => NDe(t),
- page: (e, t) => /* @__PURE__ */ (0, x.jsx)(VDe, { toast: (e) => t.toast(e) })
+ element: /* @__PURE__ */ (0, x.jsx)(h5, { path: "/scraping" }),
+ prefetch: (e, t) => PDe(t),
+ page: (e, t) => /* @__PURE__ */ (0, x.jsx)(HDe, { toast: (e) => t.toast(e) })
},
"/configuration": {
- element: /* @__PURE__ */ (0, x.jsx)(m5, { path: "/configuration" }),
- prefetch: (e, t) => ZDe(t),
- page: (e, t) => /* @__PURE__ */ (0, x.jsx)(pke, {
+ element: /* @__PURE__ */ (0, x.jsx)(h5, { path: "/configuration" }),
+ prefetch: (e, t) => QDe(t),
+ page: (e, t) => /* @__PURE__ */ (0, x.jsx)(mke, {
receipt: (e) => t.receipt(e),
reopenTutorial: t.reopenTutorial,
section: e.section ?? ""
})
},
"/diagnostics": {
- element: /* @__PURE__ */ (0, x.jsx)(m5, { path: "/diagnostics" }),
- prefetch: (e, t) => vwe(t),
- page: (e, t, n) => /* @__PURE__ */ (0, x.jsx)(Swe, {
+ element: /* @__PURE__ */ (0, x.jsx)(h5, { path: "/diagnostics" }),
+ prefetch: (e, t) => ywe(t),
+ page: (e, t, n) => /* @__PURE__ */ (0, x.jsx)(Cwe, {
navigate: n,
openItem: t.openItem,
receipt: (e) => t.receipt(e),
@@ -91155,14 +91155,14 @@ var h5 = {
})
},
"/activity": {
- element: /* @__PURE__ */ (0, x.jsx)(m5, { path: "/activity" }),
+ element: /* @__PURE__ */ (0, x.jsx)(h5, { path: "/activity" }),
prefetch: (e, t) => Kfe(t),
page: () => /* @__PURE__ */ (0, x.jsx)(ype, {})
},
"/follow-manage": {
- element: /* @__PURE__ */ (0, x.jsx)(m5, { path: "/follow-manage" }),
+ element: /* @__PURE__ */ (0, x.jsx)(h5, { path: "/follow-manage" }),
prefetch: (e, t) => Tr(t, e.tab),
- page: (e, t) => /* @__PURE__ */ (0, x.jsx)(FTe, {
+ page: (e, t) => /* @__PURE__ */ (0, x.jsx)(ITe, {
...e,
route: t.routeFollowManage,
savePreference: t.saveFollowPreference,
@@ -91171,11 +91171,11 @@ var h5 = {
openServiceConfiguration: () => t.navigate("/configuration?section=%E6%9D%A5%E6%BA%90%E4%B8%8E%E8%AE%A2%E9%98%85")
})
}
-}, g5 = (e) => Object.hasOwn(h5, e), Att = { "/resource-sync": { element: /* @__PURE__ */ (0, x.jsx)(Ott, {}) } }, jtt = { "/immerse": { element: /* @__PURE__ */ (0, x.jsx)(gtt, {}) } }, _5 = {
+}, _5 = (e) => Object.hasOwn(g5, e), ktt = { "/resource-sync": { element: /* @__PURE__ */ (0, x.jsx)(Dtt, {}) } }, Att = { "/immerse": { element: /* @__PURE__ */ (0, x.jsx)(htt, {}) } }, v5 = {
"/playlists": {
- element: /* @__PURE__ */ (0, x.jsx)(ptt, {}),
- prefetch: (e, t) => XEe(t),
- page: (e, t) => /* @__PURE__ */ (0, x.jsx)(cDe, {
+ element: /* @__PURE__ */ (0, x.jsx)(ftt, {}),
+ prefetch: (e, t) => ZEe(t),
+ page: (e, t) => /* @__PURE__ */ (0, x.jsx)(lDe, {
revision: e.revision,
openPlaylist: t.openPlaylist,
openEntity: t.openEntity,
@@ -91184,14 +91184,14 @@ var h5 = {
})
},
"/follow": {
- element: /* @__PURE__ */ (0, x.jsx)(utt, {}),
+ element: /* @__PURE__ */ (0, x.jsx)(ltt, {}),
prefetch: (e, t) => Kr(e, t),
- page: (e) => /* @__PURE__ */ (0, x.jsx)(cxe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, x.jsx)(lxe, { ...e })
}
-}, Mtt = (e) => Object.hasOwn(_5, e), v5 = {
- element: /* @__PURE__ */ (0, x.jsx)(Uet, {}),
- prefetch: (e, t) => kbe(e, t),
- page: (e, t) => /* @__PURE__ */ (0, x.jsx)(ZTe, {
+}, jtt = (e) => Object.hasOwn(v5, e), y5 = {
+ element: /* @__PURE__ */ (0, x.jsx)(Het, {}),
+ prefetch: (e, t) => Abe(e, t),
+ page: (e, t) => /* @__PURE__ */ (0, x.jsx)(QTe, {
...e,
route: t.routeIndex,
savePreference: t.savePeopleLayout,
@@ -91204,58 +91204,58 @@ var h5 = {
openFollowAuthor: t.openFollowAuthor,
openFollowTag: t.openFollowTag
})
-}, y5 = {
- "/performers": v5,
- "/creators": v5,
- "/studios": v5,
- "/agencies": v5,
- "/tags": v5
}, b5 = {
- element: /* @__PURE__ */ (0, x.jsx)(Xet, {}),
- prefetch: (e) => _be(e),
- page: (e) => /* @__PURE__ */ (0, x.jsx)(swe, { ...e })
+ "/performers": y5,
+ "/creators": y5,
+ "/studios": y5,
+ "/agencies": y5,
+ "/tags": y5
}, x5 = {
- "/performers/*": b5,
- "/studios/*": b5,
- "/creators/*": b5,
- "/series/*": b5,
- "/agencies/*": b5
+ element: /* @__PURE__ */ (0, x.jsx)(Yet, {}),
+ prefetch: (e) => vbe(e),
+ page: (e) => /* @__PURE__ */ (0, x.jsx)(cwe, { ...e })
}, S5 = {
+ "/performers/*": x5,
+ "/studios/*": x5,
+ "/creators/*": x5,
+ "/series/*": x5,
+ "/agencies/*": x5
+}, C5 = {
"/": {
- element: /* @__PURE__ */ (0, x.jsx)(att, {}),
+ element: /* @__PURE__ */ (0, x.jsx)(itt, {}),
prefetch: (e, t) => Kce(e, t),
- page: (e) => /* @__PURE__ */ (0, x.jsx)(cM, { ...e })
+ page: (e) => /* @__PURE__ */ (0, x.jsx)(sM, { ...e })
},
"/junk-files": {
- element: /* @__PURE__ */ (0, x.jsx)(att, {}),
+ element: /* @__PURE__ */ (0, x.jsx)(itt, {}),
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, x.jsx)(fEe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, x.jsx)(pEe, { ...e })
}
-}, Ntt = (e) => Object.hasOwn(S5, e), Ptt = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, x.jsx)(JEe, { ...e }) : /* @__PURE__ */ (0, x.jsx)(_P, { ...e }), Ftt = {
+}, Mtt = (e) => Object.hasOwn(C5, e), Ntt = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, x.jsx)(YEe, { ...e }) : /* @__PURE__ */ (0, x.jsx)(gP, { ...e }), Ptt = {
"catalog-filter": {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, x.jsx)(Mge, { ...e })
+ page: (e) => /* @__PURE__ */ (0, x.jsx)(Nge, { ...e })
},
"feed-new": {
- prefetch: (e) => pbe(e),
- page: (e) => /* @__PURE__ */ (0, x.jsx)(Cwe, { ...e })
+ prefetch: (e) => mbe(e),
+ page: (e) => /* @__PURE__ */ (0, x.jsx)(wwe, { ...e })
},
"library-processing": {
- prefetch: (e, t) => xM(t),
- page: (e) => /* @__PURE__ */ (0, x.jsx)(Ptt, { ...e })
+ prefetch: (e, t) => bM(t),
+ page: (e) => /* @__PURE__ */ (0, x.jsx)(Ntt, { ...e })
},
search: {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, x.jsx)(KDe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, x.jsx)(qDe, { ...e })
}
-}, Itt = (e) => Object.hasOwn(Ftt, e), Ltt = {
+}, Ftt = (e) => Object.hasOwn(Ptt, e), Itt = {
"batch-dock": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, x.jsx)(Tse, {})
+ page: () => /* @__PURE__ */ (0, x.jsx)(wse, {})
},
"glow-picker": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, x.jsx)(cce, {})
+ page: () => /* @__PURE__ */ (0, x.jsx)(sce, {})
},
"manage-header": {
prefetch: async () => {},
@@ -91267,17 +91267,17 @@ var h5 = {
},
"settings-panel": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, x.jsx)(Pke, {})
+ page: () => /* @__PURE__ */ (0, x.jsx)(Fke, {})
},
sidebar: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, x.jsx)(Jke, {})
+ page: () => /* @__PURE__ */ (0, x.jsx)(Yke, {})
},
stage: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, x.jsx)(sMe, {})
+ page: () => /* @__PURE__ */ (0, x.jsx)(cMe, {})
}
-}, Rtt = (e) => Object.hasOwn(Ltt, e), ztt = [
+}, Ltt = (e) => Object.hasOwn(Itt, e), Rtt = [
"/",
"/unseen",
"/watch-later",
@@ -91286,44 +91286,44 @@ var h5 = {
"/junk-files"
];
[
- ...Object.keys(h5),
- ...Object.keys(_5),
- ...Object.keys(y5),
- ...Object.keys(x5),
- ...ztt
+ ...Object.keys(g5),
+ ...Object.keys(v5),
+ ...Object.keys(b5),
+ ...Object.keys(S5),
+ ...Rtt
];
-var Btt = (e) => g5(e) || Mtt(e) || Object.hasOwn(y5, e) || Object.hasOwn(x5, e) || Ntt(e) || Itt(e) || Rtt(e);
-function Vtt(e) {
- return g5(e) ? h5[e] : Mtt(e) ? _5[e] : Ntt(e) ? S5[e] : Itt(e) ? Ftt[e] : Rtt(e) ? Ltt[e] : Object.hasOwn(y5, e) ? y5[e] : x5[e];
+var ztt = (e) => _5(e) || jtt(e) || Object.hasOwn(b5, e) || Object.hasOwn(S5, e) || Mtt(e) || Ftt(e) || Ltt(e);
+function Btt(e) {
+ return _5(e) ? g5[e] : jtt(e) ? v5[e] : Mtt(e) ? C5[e] : Ftt(e) ? Ptt[e] : Ltt(e) ? Itt[e] : Object.hasOwn(b5, e) ? b5[e] : S5[e];
}
-function Htt(e, t, n) {
- return Btt(e) ? Vtt(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
+function Vtt(e, t, n) {
+ return ztt(e) ? Btt(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
}
-function Utt(e, t, n, r) {
- return Vtt(e).page(t, n, r);
+function Htt(e, t, n, r) {
+ return Btt(e).page(t, n, r);
}
//#endregion
//#region node_modules/sonner/dist/index.mjs
-function Wtt(e) {
+function Utt(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 Gtt = (e) => {
+var Wtt = (e) => {
switch (e) {
- case "success": return Jtt;
- case "info": return Xtt;
- case "warning": return Ytt;
- case "error": return Ztt;
+ case "success": return qtt;
+ case "info": return Ytt;
+ case "warning": return Jtt;
+ case "error": return Xtt;
default: return null;
}
-}, Ktt = Array(12).fill(0), qtt = ({ visible: e, className: t }) => /*#__PURE__*/ b.createElement("div", {
+}, Gtt = Array(12).fill(0), Ktt = ({ visible: e, className: t }) => /*#__PURE__*/ b.createElement("div", {
className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
"data-visible": e
-}, /*#__PURE__*/ b.createElement("div", { className: "sonner-spinner" }, Ktt.map((e, t) => /*#__PURE__*/ b.createElement("div", {
+}, /*#__PURE__*/ b.createElement("div", { className: "sonner-spinner" }, Gtt.map((e, t) => /*#__PURE__*/ b.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
-})))), Jtt = /*#__PURE__*/ b.createElement("svg", {
+})))), qtt = /*#__PURE__*/ b.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -91334,7 +91334,7 @@ var Gtt = (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"
-})), Ytt = /*#__PURE__*/ b.createElement("svg", {
+})), Jtt = /*#__PURE__*/ b.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
@@ -91345,7 +91345,7 @@ var Gtt = (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"
-})), Xtt = /*#__PURE__*/ b.createElement("svg", {
+})), Ytt = /*#__PURE__*/ b.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -91356,7 +91356,7 @@ var Gtt = (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"
-})), Ztt = /*#__PURE__*/ b.createElement("svg", {
+})), Xtt = /*#__PURE__*/ b.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -91367,7 +91367,7 @@ var Gtt = (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"
-})), Qtt = /*#__PURE__*/ b.createElement("svg", {
+})), Ztt = /*#__PURE__*/ b.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
@@ -91388,7 +91388,7 @@ var Gtt = (e) => {
y1: "6",
x2: "18",
y2: "18"
-})), $tt = () => {
+})), Qtt = () => {
let [e, t] = b.useState(document.hidden);
return b.useEffect(() => {
let e = () => {
@@ -91396,7 +91396,7 @@ var Gtt = (e) => {
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, ent = 1, tnt = 100, nnt = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : ent++, C5 = new class {
+}, $tt = 1, ent = 100, tnt = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : $tt++, w5 = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -91406,10 +91406,10 @@ var Gtt = (e) => {
}, this.addToast = (e) => {
this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
}, this.trimHistory = () => {
- let e = this.toasts.length - tnt;
+ let e = this.toasts.length - ent;
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 = nnt(e), i = this.pendingDismissals.get(r);
+ let { message: t, ...n } = e, r = tnt(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({
@@ -91484,7 +91484,7 @@ var Gtt = (e) => {
type: "default",
message: e
});
- else if (int(e) && !e.ok) {
+ else if (rnt(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" && !b.isValidElement(r) ? r : { message: r };
this.create({
@@ -91528,7 +91528,7 @@ var Gtt = (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 = nnt(t);
+ let n = tnt(t);
return this.create({
...t,
jsx: e(n),
@@ -91537,34 +91537,34 @@ var Gtt = (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();
}
-}(), rnt = (e, t) => C5.message(e, t), int = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", ant = Object.assign(rnt, {
- success: C5.success,
- info: C5.info,
- warning: C5.warning,
- error: C5.error,
- custom: C5.custom,
- message: C5.message,
- promise: C5.promise,
- dismiss: C5.dismiss,
- loading: C5.loading
+}(), nnt = (e, t) => w5.message(e, t), rnt = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", int = Object.assign(nnt, {
+ success: w5.success,
+ info: w5.info,
+ warning: w5.warning,
+ error: w5.error,
+ custom: w5.custom,
+ message: w5.message,
+ promise: w5.promise,
+ dismiss: w5.dismiss,
+ loading: w5.loading
}, {
- getHistory: () => C5.toasts,
- getToasts: () => C5.getActiveToasts()
+ getHistory: () => w5.toasts,
+ getToasts: () => w5.getActiveToasts()
});
-Wtt("[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 w5(e) {
+Utt("[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 T5(e) {
return e.label !== void 0;
}
-var ont = 3, snt = "24px", cnt = "16px", lnt = 4e3, unt = 356, dnt = 14, fnt = 45, pnt = 200;
-function T5(...e) {
+var ant = 3, ont = "24px", snt = "16px", cnt = 4e3, lnt = 356, unt = 14, dnt = 45, fnt = 200;
+function E5(...e) {
return e.filter(Boolean).join(" ");
}
-function mnt(e) {
+function pnt(e) {
let [t, n] = e.split("-"), r = [];
return t && r.push(t), n && r.push(n), r;
}
-var hnt = (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: x, gap: S, expandByDefault: C, classNames: w, icons: T, closeButtonAriaLabel: E = "Close toast" } = e, [D, O] = b.useState(null), [k, A] = b.useState(null), [j, M] = b.useState(!1), [N, ee] = b.useState(!1), [te, P] = b.useState(!1), [ne, re] = b.useState(!1), [ie, ae] = b.useState(!1), [oe, se] = b.useState(0), [ce, le] = b.useState(0), ue = b.useRef(n.duration || y || lnt), de = b.useRef(null), fe = b.useRef(null), pe = c === 0, me = c + 1 <= o, he = n.type, ge = he ?? "default", _e = n.dismissible !== !1, ve = n.className || "", ye = n.descriptionClassName || "", be = b.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), xe = b.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), Se = b.useMemo(() => n.duration || y || lnt, [n.duration, y]), Ce = b.useRef(0), we = b.useRef(0), Te = b.useRef(0), Ee = b.useRef(null), [De, Oe] = x.split("-"), ke = b.useMemo(() => s.reduce((e, t, n) => n >= be ? e : e + t.height, 0), [s, be]), Ae = $tt(), je = b.useMemo(() => e.swipeDirections ?? mnt(x), [e.swipeDirections, x]), Me = n.invert || t, Ne = he === "loading";
+var mnt = (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: x, gap: S, expandByDefault: C, classNames: w, icons: T, closeButtonAriaLabel: E = "Close toast" } = e, [D, O] = b.useState(null), [k, A] = b.useState(null), [j, M] = b.useState(!1), [N, ee] = b.useState(!1), [te, P] = b.useState(!1), [ne, re] = b.useState(!1), [ie, ae] = b.useState(!1), [oe, se] = b.useState(0), [ce, le] = b.useState(0), ue = b.useRef(n.duration || y || cnt), de = b.useRef(null), fe = b.useRef(null), pe = c === 0, me = c + 1 <= o, he = n.type, ge = he ?? "default", _e = n.dismissible !== !1, ve = n.className || "", ye = n.descriptionClassName || "", be = b.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), xe = b.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), Se = b.useMemo(() => n.duration || y || cnt, [n.duration, y]), Ce = b.useRef(0), we = b.useRef(0), Te = b.useRef(0), Ee = b.useRef(null), [De, Oe] = x.split("-"), ke = b.useMemo(() => s.reduce((e, t, n) => n >= be ? e : e + t.height, 0), [s, be]), Ae = Qtt(), je = b.useMemo(() => e.swipeDirections ?? pnt(x), [e.swipeDirections, x]), Me = n.invert || t, Ne = he === "loading";
we.current = b.useMemo(() => be * S + ke, [be, ke]), b.useEffect(() => {
ue.current = Se;
}, [Se]), b.useEffect(() => {
@@ -91605,7 +91605,7 @@ var hnt = (e) => {
let Pe = b.useCallback(() => {
ee(!0), se(we.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
- }, pnt);
+ }, fnt);
}, [
n,
d,
@@ -91636,18 +91636,18 @@ var hnt = (e) => {
}, [Pe, n.delete]);
function Fe() {
return T?.loading ? /*#__PURE__*/ b.createElement("div", {
- className: T5(w?.loader, n?.classNames?.loader, "sonner-loader"),
+ className: E5(w?.loader, n?.classNames?.loader, "sonner-loader"),
"data-visible": he === "loading"
- }, T.loading) : /*#__PURE__*/ b.createElement(qtt, {
- className: T5(w?.loader, n?.classNames?.loader),
+ }, T.loading) : /*#__PURE__*/ b.createElement(Ktt, {
+ className: E5(w?.loader, n?.classNames?.loader),
visible: he === "loading"
});
}
- let Ie = n.icon || T?.[he] || Gtt(he);
+ let Ie = n.icon || T?.[he] || Wtt(he);
return /*#__PURE__*/ b.createElement("li", {
tabIndex: 0,
ref: fe,
- className: T5(_, ve, w?.toast, n?.classNames?.toast, w?.[ge], n?.classNames?.[ge]),
+ className: E5(_, ve, w?.toast, n?.classNames?.toast, w?.[ge], n?.classNames?.[ge]),
"data-sonner-toast": "",
"data-rich-colors": n.richColors ?? f,
"data-styled": !(n.jsx || n.unstyled || r),
@@ -91690,7 +91690,7 @@ var hnt = (e) => {
if (ne || !_e) return;
Ee.current = null;
let e = Number(fe.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(fe.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), r = (/* @__PURE__ */ new Date()).getTime() - de.current?.getTime(), i = D === "x" ? e : t, a = Math.abs(i) / r;
- if ((D === "x" ? je.includes(e > 0 ? "right" : "left") : je.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= fnt || a > .11)) se(we.current), n.onDismiss == null || n.onDismiss.call(n, n), A(D === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Pe(), re(!0);
+ if ((D === "x" ? je.includes(e > 0 ? "right" : "left") : je.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= dnt || a > .11)) se(we.current), n.onDismiss == null || n.onDismiss.call(n, n), A(D === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Pe(), re(!0);
else {
var o, s;
(o = fe.current) == null || o.style.setProperty("--swipe-amount-x", "0px"), (s = fe.current) == null || s.style.setProperty("--swipe-amount-y", "0px"), ae(!1), P(!1), O(null);
@@ -91729,46 +91729,46 @@ var hnt = (e) => {
onClick: Ne || !_e ? () => {} : () => {
Pe(), n.onDismiss == null || n.onDismiss.call(n, n);
},
- className: T5(w?.closeButton, n?.classNames?.closeButton)
- }, T?.close ?? Qtt) : null, (he || n.icon || n.promise) && n.icon !== null && (T?.[he] !== null || n.icon) ? /*#__PURE__*/ b.createElement("div", {
+ className: E5(w?.closeButton, n?.classNames?.closeButton)
+ }, T?.close ?? Ztt) : null, (he || n.icon || n.promise) && n.icon !== null && (T?.[he] !== null || n.icon) ? /*#__PURE__*/ b.createElement("div", {
"data-icon": "",
- className: T5(w?.icon, n?.classNames?.icon)
+ className: E5(w?.icon, n?.classNames?.icon)
}, he === "loading" ? n.icon || Fe() : n.promise ? Fe() : null, he === "loading" ? null : Ie) : null, /*#__PURE__*/ b.createElement("div", {
"data-content": "",
- className: T5(w?.content, n?.classNames?.content)
+ className: E5(w?.content, n?.classNames?.content)
}, /*#__PURE__*/ b.createElement("div", {
"data-title": "",
- className: T5(w?.title, n?.classNames?.title)
+ className: E5(w?.title, n?.classNames?.title)
}, n.jsx ? n.jsx : typeof n.title == "function" ? n.title() : n.title), n.description ? /*#__PURE__*/ b.createElement("div", {
"data-description": "",
- className: T5(v, ye, w?.description, n?.classNames?.description)
- }, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ b.isValidElement(n.cancel) ? n.cancel : n.cancel && w5(n.cancel) ? /*#__PURE__*/ b.createElement("button", {
+ className: E5(v, ye, w?.description, n?.classNames?.description)
+ }, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ b.isValidElement(n.cancel) ? n.cancel : n.cancel && T5(n.cancel) ? /*#__PURE__*/ b.createElement("button", {
"data-button": !0,
"data-cancel": !0,
style: n.cancelButtonStyle || h,
onClick: (e) => {
- w5(n.cancel) && _e && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Pe());
+ T5(n.cancel) && _e && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Pe());
},
- className: T5(w?.cancelButton, n?.classNames?.cancelButton)
- }, n.cancel.label) : null, /*#__PURE__*/ b.isValidElement(n.action) ? n.action : n.action && w5(n.action) ? /*#__PURE__*/ b.createElement("button", {
+ className: E5(w?.cancelButton, n?.classNames?.cancelButton)
+ }, n.cancel.label) : null, /*#__PURE__*/ b.isValidElement(n.action) ? n.action : n.action && T5(n.action) ? /*#__PURE__*/ b.createElement("button", {
"data-button": !0,
"data-action": !0,
style: n.actionButtonStyle || g,
onClick: (e) => {
- w5(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Pe());
+ T5(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Pe());
},
- className: T5(w?.actionButton, n?.classNames?.actionButton)
+ className: E5(w?.actionButton, n?.classNames?.actionButton)
}, n.action.label) : null);
};
-function gnt() {
+function hnt() {
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 _nt(e, t) {
+function gnt(e, t) {
let n = {};
return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? cnt : snt;
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? snt : ont;
function o(e) {
[
"top",
@@ -91789,11 +91789,11 @@ function _nt(e, t) {
}) : o(a);
}), n;
}
-var vnt = /*#__PURE__*/ b.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 = ont, toastOptions: g, dir: _ = gnt(), gap: v = dnt, icons: y, customAriaLabel: x, containerAriaLabel: S = "Notifications" } = e, [C, w] = b.useState([]), T = b.useMemo(() => n ? C.filter((e) => e.toasterId === n) : C.filter((e) => !e.toasterId), [C, n]), E = b.useMemo(() => Array.from(new Set([i].concat(T.filter((e) => e.position).map((e) => e.position)))), [T, i]), [D, O] = b.useState([]), [k, A] = b.useState(!1), [j, M] = b.useState(!1), [N, ee] = b.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), te = b.useRef(null), P = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), ne = b.useRef(null), re = b.useRef(!1), ie = b.useCallback((e) => {
- w((t) => (t.find((t) => t.id === e.id)?.delete || C5.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
+var _nt = /*#__PURE__*/ b.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 = ant, toastOptions: g, dir: _ = hnt(), gap: v = unt, icons: y, customAriaLabel: x, containerAriaLabel: S = "Notifications" } = e, [C, w] = b.useState([]), T = b.useMemo(() => n ? C.filter((e) => e.toasterId === n) : C.filter((e) => !e.toasterId), [C, n]), E = b.useMemo(() => Array.from(new Set([i].concat(T.filter((e) => e.position).map((e) => e.position)))), [T, i]), [D, O] = b.useState([]), [k, A] = b.useState(!1), [j, M] = b.useState(!1), [N, ee] = b.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), te = b.useRef(null), P = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), ne = b.useRef(null), re = b.useRef(!1), ie = b.useCallback((e) => {
+ w((t) => (t.find((t) => t.id === e.id)?.delete || w5.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
}, []);
- return b.useEffect(() => C5.subscribe((e) => {
+ return b.useEffect(() => w5.subscribe((e) => {
e.dismiss ? requestAnimationFrame(() => {
w((t) => t.map((t) => t.id === e.id ? {
...t,
@@ -91862,7 +91862,7 @@ var vnt = /*#__PURE__*/ b.forwardRef(function(e, t) {
let [i, a] = t.split("-");
return T.length ? /*#__PURE__*/ b.createElement("ol", {
key: t,
- dir: _ === "auto" ? gnt() : _,
+ dir: _ === "auto" ? hnt() : _,
tabIndex: -1,
ref: te,
className: c,
@@ -91872,10 +91872,10 @@ var vnt = /*#__PURE__*/ b.forwardRef(function(e, t) {
"data-x-position": a,
style: {
"--front-toast-height": `${D[0]?.height || 0}px`,
- "--width": `${unt}px`,
+ "--width": `${lnt}px`,
"--gap": `${v}px`,
...m,
- ..._nt(l, u)
+ ...gnt(l, u)
},
onBlur: (e) => {
re.current && !e.currentTarget.contains(e.relatedTarget) && (re.current = !1, ne.current &&= (ne.current.focus({ preventScroll: !0 }), null));
@@ -91893,7 +91893,7 @@ var vnt = /*#__PURE__*/ b.forwardRef(function(e, t) {
e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || M(!0);
},
onPointerUp: () => M(!1)
- }, T.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ b.createElement(hnt, {
+ }, T.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ b.createElement(mnt, {
key: n.id,
icons: y,
index: i,
@@ -91923,23 +91923,23 @@ var vnt = /*#__PURE__*/ b.forwardRef(function(e, t) {
swipeDirections: e.swipeDirections
}))) : null;
}));
-}), ynt = (e, t) => /* @__PURE__ */ (0, x.jsx)("span", {
+}), vnt = (e, t) => /* @__PURE__ */ (0, x.jsx)("span", {
"data-toast-glyph": t ? "draw" : "still",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: e }
-}), E5 = null;
-function bnt() {
- let e = E5;
- E5 = null, e?.root.unmount();
-}
-var xnt = (e, t) => {
- if (E5?.host === e) return;
- bnt();
+}), D5 = null;
+function ynt() {
+ let e = D5;
+ D5 = null, e?.root.unmount();
+}
+var bnt = (e, t) => {
+ if (D5?.host === e) return;
+ ynt();
let n = (0, ht.createRoot)(e);
- E5 = {
+ D5 = {
host: e,
root: n
- }, n.render(/* @__PURE__ */ (0, x.jsx)(vnt, {
+ }, n.render(/* @__PURE__ */ (0, x.jsx)(_nt, {
position: "bottom-right",
closeButton: !0,
gap: 8,
@@ -91956,16 +91956,16 @@ var xnt = (e, t) => {
toastOptions: { closeButtonAriaLabel: "关闭提示" },
containerAriaLabel: "通知",
icons: {
- success: ynt(t.success, !0),
- error: ynt(t.error, !1)
+ success: vnt(t.success, !0),
+ error: vnt(t.error, !1)
}
}));
-}, Snt = 6e3, Cnt = (e, t) => {
+}, xnt = 6e3, Snt = (e, t) => {
if (!String(t.html ?? "").trim()) return;
- let n = t.alert ? ant.error : ant.success, r = t.action;
+ let n = t.alert ? int.error : int.success, r = t.action;
n(/* @__PURE__ */ (0, x.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
id: e,
- duration: t.timeout > 0 ? t.timeout : Snt,
+ duration: t.timeout > 0 ? t.timeout : xnt,
action: r ? {
label: r.label,
onClick: (e) => {
@@ -91973,83 +91973,83 @@ var xnt = (e, t) => {
}
} : void 0
});
-}, D5 = null, O5 = null, k5 = 0, A5 = /* @__PURE__ */ new Set();
-function wnt(e) {
- return D5 = e, O5 && e(O5), () => {
- D5 === e && (D5 = null);
+}, O5 = null, k5 = null, A5 = 0, j5 = /* @__PURE__ */ new Set();
+function Cnt(e) {
+ return O5 = e, k5 && e(k5), () => {
+ O5 === e && (O5 = null);
};
}
-function Tnt(e) {
- return D5 && (O5 = e, D5(e), mCe(Promise.resolve(Htt))), Promise.resolve();
+function wnt(e) {
+ return O5 && (k5 = e, O5(e), hCe(Promise.resolve(Vtt))), Promise.resolve();
}
-async function j5(e, t, n = (e) => e) {
- let r = k5;
- if (t.isConnected || A5.add(t), !await ML(e, {}, {
+async function M5(e, t, n = (e) => e) {
+ let r = A5;
+ if (t.isConnected || j5.add(t), !await jL(e, {}, {
container: t,
resident: !0,
- isCurrent: () => !!D5 && r === k5,
+ isCurrent: () => !!O5 && r === A5,
place: () => n(t)
- }) || r !== k5 || !D5) throw new DOMException("应用已卸载", "AbortError");
-}
-function Ent() {
- k5 += 1, D5 = null, O5 = null, M5 = null, N5 = null, I5 = null, L5 = null, z5 = null, B5 = null, V5 = null, H5 = null, W5 = null, G5 = null, K5 = null, q5 = null, J5 = null;
- for (let e of A5) e.remove();
- A5.clear(), bnt();
-}
-var M5 = null, N5 = null;
-function P5(e) {
- return M5 ??= (async () => {
- let t = oMe(e), n = document.createElement("div");
- return n.dataset.stageHost = "", await j5("stage", n, (e) => (document.body.append(e), e)), N5 = t, t;
- })(), M5;
-}
-var F5 = () => N5, I5 = null, L5 = null;
-function Dnt(e) {
- return I5 ??= (async () => {
+ }) || r !== A5 || !O5) throw new DOMException("应用已卸载", "AbortError");
+}
+function Tnt() {
+ A5 += 1, O5 = null, k5 = null, N5 = null, P5 = null, L5 = null, R5 = null, B5 = null, V5 = null, H5 = null, U5 = null, G5 = null, K5 = null, q5 = null, J5 = null, Y5 = null;
+ for (let e of j5) e.remove();
+ j5.clear(), ynt();
+}
+var N5 = null, P5 = null;
+function F5(e) {
+ return N5 ??= (async () => {
+ let t = sMe(e), n = document.createElement("div");
+ return n.dataset.stageHost = "", await M5("stage", n, (e) => (document.body.append(e), e)), P5 = t, t;
+ })(), N5;
+}
+var I5 = () => P5, L5 = null, R5 = null;
+function Ent(e) {
+ return L5 ??= (async () => {
let t = uue(e), n = document.createElement("div");
- return n.dataset.immerseHost = "", await j5("immerse", n, (e) => (document.body.append(e), e)), L5 = t, t;
- })(), I5;
+ return n.dataset.immerseHost = "", await M5("immerse", n, (e) => (document.body.append(e), e)), R5 = t, t;
+ })(), L5;
}
-var R5 = () => L5, z5 = null, B5 = null;
-function Ont(e) {
- return z5 ??= (async () => {
- let t = Nke(e), n = document.createElement("div");
- return n.dataset.settingsHost = "", await j5("settings-panel", n, (e) => (document.body.append(e), e)), B5 = t, t;
- })(), z5;
-}
-var knt = () => B5, V5 = null, H5 = null;
+var z5 = () => R5, B5 = null, V5 = null;
+function Dnt(e) {
+ return B5 ??= (async () => {
+ let t = Pke(e), n = document.createElement("div");
+ return n.dataset.settingsHost = "", await M5("settings-panel", n, (e) => (document.body.append(e), e)), V5 = t, t;
+ })(), B5;
+}
+var Ont = () => V5, H5 = null, U5 = null;
+function knt(e) {
+ return H5 ??= (async () => {
+ let t = Jke(e);
+ return await M5("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), U5 = t, t;
+ })(), H5;
+}
+var W5 = () => U5, G5 = null, K5 = null;
function Ant(e) {
- return V5 ??= (async () => {
- let t = qke(e);
- return await j5("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), H5 = t, t;
- })(), V5;
-}
-var U5 = () => H5, W5 = null, G5 = null;
-function jnt(e) {
- return W5 ??= (async () => {
+ return G5 ??= (async () => {
let t = wue(e);
- return await j5("manage-header", e.root, (e) => (e.replaceChildren(), e)), G5 = t, t;
- })(), W5;
+ return await M5("manage-header", e.root, (e) => (e.replaceChildren(), e)), K5 = t, t;
+ })(), G5;
}
-var Mnt = () => G5, K5 = null, q5 = null;
-function Nnt(e) {
- return K5 ??= (async () => {
- let t = wse(e);
- return await j5("batch-dock", e.root), q5 = t, t;
- })(), K5;
+var jnt = () => K5, q5 = null, J5 = null;
+function Mnt(e) {
+ return q5 ??= (async () => {
+ let t = Cse(e);
+ return await M5("batch-dock", e.root), J5 = t, t;
+ })(), q5;
}
-var Pnt = () => q5, J5 = null;
-function Fnt(e) {
- return J5 ??= (async () => {
- sce(e), await j5("glow-picker", e.root);
- })(), J5;
+var Nnt = () => J5, Y5 = null;
+function Pnt(e) {
+ return Y5 ??= (async () => {
+ oce(e), await M5("glow-picker", e.root);
+ })(), Y5;
}
-function Int(e, t, n, r) {
- xnt(e, t), Cnt(n, r);
+function Fnt(e, t, n, r) {
+ bnt(e, t), Snt(n, r);
}
//#endregion
//#region src/application/effects.ts
-var Lnt = class {
+var Int = class {
cleanups = /* @__PURE__ */ new Set();
active = !0;
disposed = !1;
@@ -92130,13 +92130,13 @@ var Lnt = class {
}
if (e.length) throw AggregateError(e, "应用资源清理未全部完成");
}
-}, Y5 = new Lnt();
-function Rnt() {
- return Y5.dispose(), Y5 = new Lnt(), Y5;
+}, X5 = new Int();
+function Lnt() {
+ return X5.dispose(), X5 = new Int(), X5;
}
//#endregion
//#region src/application/receipts.js
-var X5 = {
+var Z5 = {
toastBody: void 0,
toastSeq: void 0,
toast: void 0,
@@ -92146,10 +92146,10 @@ var X5 = {
rollSeed: void 0,
seededSample: void 0
};
-function znt() {
- X5.toastBody = (e) => e && typeof e == "object" && "html" in e ? String(e.html) : L(e && typeof e == "object" ? e.text ?? "" : e ?? ""), X5.toastSeq = 0, X5.toast = (e, { timeout: t = 6e3, warn: n = !1, action: r = null, sound: i = null } = {}) => {
- let a = `toast-${++X5.toastSeq}`, o = (e, t, n, r) => {
- Ea(i || (t ? "error" : "success")), Int(F("#toasts"), {
+function Rnt() {
+ Z5.toastBody = (e) => e && typeof e == "object" && "html" in e ? String(e.html) : L(e && typeof e == "object" ? e.text ?? "" : e ?? ""), Z5.toastSeq = 0, Z5.toast = (e, { timeout: t = 6e3, warn: n = !1, action: r = null, sound: i = null } = {}) => {
+ let a = `toast-${++Z5.toastSeq}`, o = (e, t, n, r) => {
+ Ea(i || (t ? "error" : "success")), Fnt(F("#toasts"), {
success: I("check"),
error: I("circle-alert")
}, a, {
@@ -92164,13 +92164,13 @@ function znt() {
} : null
});
};
- return o(X5.toastBody(e), n, t, r), { replaceMessage: (e, { warn: t = !1, timeout: n = 4e3 } = {}) => o(X5.toastBody(e), t, n, null) };
- }, X5.liftToastsOverTutorial = () => {
+ return o(Z5.toastBody(e), n, t, r), { replaceMessage: (e, { warn: t = !1, timeout: n = 4e3 } = {}) => o(Z5.toastBody(e), t, n, null) };
+ }, Z5.liftToastsOverTutorial = () => {
let e = F("#postSetupTutorial"), t = F("#toasts"), n = e.hidden ? innerHeight : e.getBoundingClientRect().top;
e.hidden || !e.offsetHeight || n < 160 ? t.style.removeProperty("--toast-bottom") : t.style.setProperty("--toast-bottom", `${Math.round(innerHeight - n + 12)}px`);
- }, Y5.resize(X5.liftToastsOverTutorial).observe(F("#postSetupTutorial")), Y5.listen.bind(Y5, window)("resize", X5.liftToastsOverTutorial), X5.actionReceipt = (e, { undo: t = null, timeout: n = t ? 8e3 : 6e3 } = {}) => {
+ }, X5.resize(Z5.liftToastsOverTutorial).observe(F("#postSetupTutorial")), X5.listen.bind(X5, window)("resize", Z5.liftToastsOverTutorial), Z5.actionReceipt = (e, { undo: t = null, timeout: n = t ? 8e3 : 6e3 } = {}) => {
let r = null;
- return r = X5.toast({ text: e }, {
+ return r = Z5.toast({ text: e }, {
timeout: n,
action: t ? {
label: "撤销",
@@ -92183,7 +92183,7 @@ function znt() {
}
} : null
}), r;
- }, X5.actionFailure = (e, t) => X5.toast({ text: `${e}失败:${t?.message || "请重试"}` }, { warn: !0 }), X5.rollSeed = () => Zt(), X5.seededSample = (e, t, n, r = (e) => e.k) => {
+ }, Z5.actionFailure = (e, t) => Z5.toast({ text: `${e}失败:${t?.message || "请重试"}` }, { warn: !0 }), Z5.rollSeed = () => Zt(), Z5.seededSample = (e, t, n, r = (e) => e.k) => {
if (e.length <= t) return e;
let i = new Set([...e].sort((e, t) => Xt(n, r(e)) - Xt(n, r(t))).slice(0, t).map(r));
return e.filter((e) => i.has(r(e)));
@@ -92191,7 +92191,7 @@ function znt() {
}
//#endregion
//#region src/react/catalog-grid/catalog-state.ts
-var Bnt = [
+var znt = [
"loc",
"creator",
"studio",
@@ -92208,10 +92208,10 @@ var Bnt = [
"q",
"jav"
];
-function Vnt(e, t, n, r = n.defaultSort) {
- return zw(e, t, n.defaultSort, n.defaultSortDirection, r);
+function Bnt(e, t, n, r = n.defaultSort) {
+ return Bw(e, t, n.defaultSort, n.defaultSortDirection, r);
}
-function Hnt(e, t, n) {
+function Vnt(e, t, n) {
let r = decodeURIComponent(e.pathname), i = new URLSearchParams(e.search), a = wt(r) || r === "/trash", o = (e) => a ? i.get(e) : null;
return {
loc: i.get("loc") ?? "local,115",
@@ -92226,25 +92226,25 @@ function Hnt(e, t, n) {
orient: o("orient") || "",
region: o("region") || "",
state: St[r] || o("state") || "",
- ...Vnt(o("sort"), o("dir"), t),
+ ...Bnt(o("sort"), o("dir"), t),
seed: o("seed") || n(),
q: o("q") || "",
jav: o("jav") || "",
thumb: o("thumb") || "0"
};
}
-function Unt(e, t) {
+function Hnt(e, t) {
return e.split(",").filter(Boolean).filter((e) => t[e] !== !1).join(",") || e;
}
-function Wnt(e) {
+function Unt(e) {
let t = xt[e.state ?? ""] || "/", n = new URLSearchParams();
- for (let t of Bnt) {
+ for (let t of znt) {
let r = e[t];
- r && (t !== "tag_match" || r !== "all") && (t !== "dir" || r !== Iw(e.sort ?? "")) && n.set(t, r);
+ r && (t !== "tag_match" || r !== "all") && (t !== "dir" || r !== Lw(e.sort ?? "")) && n.set(t, r);
}
return !xt[e.state ?? ""] && e.state && n.set("state", e.state), t + (n.size ? `?${n}` : "");
}
-function Gnt(e, t, n) {
+function Wnt(e, t, n) {
return {
loc: e.loc ?? "",
creator: "",
@@ -92259,14 +92259,14 @@ function Gnt(e, t, n) {
region: "",
state: "",
sort: t.defaultSort,
- dir: Rw(t.defaultSort, t.defaultSort, t.defaultSortDirection),
+ dir: zw(t.defaultSort, t.defaultSort, t.defaultSortDirection),
seed: n(),
q: "",
jav: "",
thumb: "0"
};
}
-function Knt(e) {
+function Gnt(e) {
return {
state: e,
barsContext: {
@@ -92278,7 +92278,7 @@ function Knt(e) {
}
//#endregion
//#region src/react/catalog-grid/catalog-controller.ts
-var qnt = class {
+var Knt = class {
currentRevision = 0;
currentPage = "";
painting = null;
@@ -92323,44 +92323,44 @@ var qnt = class {
let e = [...this.waiters.values()];
this.waiters.clear(), e.forEach((e) => e());
}
-}, Z5 = 3e4, Q5 = 0, Jnt = (e, t = Q5) => [
+}, Q5 = 3e4, $5 = 0, qnt = (e, t = $5) => [
"facets",
e,
t
-], Ynt = (e, t, n = Q5) => [
+], Jnt = (e, t, n = $5) => [
"tops",
e,
t,
n
-], Xnt = (e, t = Q5) => [
+], Ynt = (e, t = $5) => [
"tops",
e,
t
];
-async function Znt(e) {
+async function Xnt(e) {
let t = String(e), n = await vt(`/api/tops?${t}`), r = new URLSearchParams(t);
return n.performers.length || n.studios.length || !r.has("state") ? n : (r.delete("state"), await vt(`/api/tops?${r}`));
}
-function Qnt(e, t) {
+function Znt(e, t) {
return Promise.all([V.fetchQuery({
- queryKey: Jnt(e),
+ queryKey: qnt(e),
queryFn: () => vt(`/api/facets${e ? `?${e}` : ""}`),
- staleTime: Z5
+ staleTime: Q5
}), V.fetchQuery({
- queryKey: Ynt(t, e),
- queryFn: () => Znt(t),
- staleTime: Z5
+ queryKey: Jnt(t, e),
+ queryFn: () => Xnt(t),
+ staleTime: Q5
})]);
}
-function $nt(e) {
+function Qnt(e) {
return V.fetchQuery({
- queryKey: Xnt(e),
- queryFn: () => Znt(e),
- staleTime: Z5
+ queryKey: Ynt(e),
+ queryFn: () => Xnt(e),
+ staleTime: Q5
});
}
-function $5() {
- Q5 += 1;
+function e7() {
+ $5 += 1;
let e = (e) => e.state.fetchStatus === "idle";
V.removeQueries({
queryKey: ["facets"],
@@ -92372,7 +92372,7 @@ function $5() {
}
//#endregion
//#region src/application/navigation-items.ts
-var ert = [
+var $nt = [
[
"",
"首页",
@@ -92423,7 +92423,7 @@ var ert = [
"管理",
"wrench"
]
-], e7 = [
+], t7 = [
[
"stats",
"统计",
@@ -92469,18 +92469,18 @@ var ert = [
"Peach 配置",
"folder-cog"
]
-], trt = [
+], ert = [
"stats",
"taste",
"cleanup",
"follow",
"activity",
"configuration"
-], nrt = (e) => e7.filter(([t]) => trt.includes(t) && (t !== "configuration" || e)), rrt = e7.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
+], trt = (e) => t7.filter(([t]) => ert.includes(t) && (t !== "configuration" || e)), nrt = t7.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
e === "follow" ? "follow-manage" : e === "cleanup" ? "data-cleanup" : e,
t,
n
-]]), irt = [...ert, ...rrt], art = {
+]]), rrt = [...$nt, ...nrt], irt = {
stats: "stats",
review: "review",
"data-cleanup": "cleanup",
@@ -92491,11 +92491,11 @@ var ert = [
};
//#endregion
//#region src/react/index/index-controller.ts
-function ort({ kind: e, q: t, scope: n, view: r, category: i }) {
+function art({ 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 srt(e, t, n) {
+function ort(e, t, n) {
let r = e.entity_id || e.id, i = t === "studio" || t === "agency";
return {
html: $i(e.k, r ? {
@@ -92508,20 +92508,20 @@ function srt(e, t, n) {
face: ta(e.avatar_focus)
};
}
-function crt(e) {
+function srt(e) {
let t = String(e.k || ""), n = (t.match(/[A-Za-z0-9]/)?.[0] || Array.from(t)[0] || "?").toUpperCase(), r = e.avatar ? `<img src="${L(e.avatar)}" alt="" loading="lazy" referrerpolicy="no-referrer" ${Di({ fallbacks: [e.avatar_fallback || ""] })}>` : "";
return `<span class="ini">${L(n)}</span>${r}`;
}
-function lrt(e) {
+function crt(e) {
let t = (t) => {
e.adoptFollowView(t), e.hideIndex(), e.openPage(hi(t));
};
return {
route(t, { replace: n = !1 } = {}) {
- e.route(ort(t), n);
+ e.route(art(t), n);
},
- personAvatar: srt,
- authorAvatar: crt,
+ personAvatar: ort,
+ authorAvatar: srt,
openFollowAuthor(n) {
t(gi(e.followView(), n));
},
@@ -92532,27 +92532,27 @@ function lrt(e) {
}
//#endregion
//#region src/react/follow-manage/manage-route.ts
-var urt = [
+var lrt = [
"list",
"add",
"feeds"
];
-function drt(e) {
+function urt(e) {
let t = new URLSearchParams(e), n = t.get("tab");
return {
- tab: urt.find((e) => e === n) || "list",
+ tab: lrt.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 frt(e) {
+function drt(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), "/follow-manage" + (t.size ? `?${t}` : "");
}
-function prt(e, t) {
- return !t && new URLSearchParams(e).get("tab") === "wants" ? "/jav?tab=wants" : !t && new URLSearchParams(e).get("tab") === "source" ? "/configuration?section=%E6%9D%A5%E6%BA%90%E4%B8%8E%E8%AE%A2%E9%98%85" : frt({
- tab: t || drt(e).tab,
+function frt(e, t) {
+ return !t && new URLSearchParams(e).get("tab") === "wants" ? "/jav?tab=wants" : !t && new URLSearchParams(e).get("tab") === "source" ? "/configuration?section=%E6%9D%A5%E6%BA%90%E4%B8%8E%E8%AE%A2%E9%98%85" : drt({
+ tab: t || urt(e).tab,
page: 1,
sort: "",
dir: ""
@@ -92560,7 +92560,7 @@ function prt(e, t) {
}
//#endregion
//#region src/application/source-action.ts
-function mrt(e) {
+function prt(e) {
return async (t, n, { button: r = null } = {}) => {
if (r?.getAttribute("aria-busy") === "true") return;
let i = r?.innerHTML ?? "", a = r?.textContent?.trim() ?? "";
@@ -92576,36 +92576,36 @@ function mrt(e) {
}
//#endregion
//#region src/react/entity-page/entity-route.ts
-var t7 = () => Object.fromEntries(XP.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));
-function hrt(e, t) {
- let n = new URLSearchParams(e), r = t7();
- for (let e of XP) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");
+var n7 = () => Object.fromEntries(YP.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));
+function mrt(e, t) {
+ let n = new URLSearchParams(e), r = n7();
+ for (let e of YP) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");
return {
...r,
- ...zw(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
+ ...Bw(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
};
}
-function grt(e) {
+function hrt(e) {
let t = new URLSearchParams();
- for (let n of XP) e[n] && (n !== "sort" || e[n] !== "new") && (n !== "dir" || e[n] !== Iw(e.sort || "")) && t.set(n, e[n]);
+ for (let n of YP) e[n] && (n !== "sort" || e[n] !== "new") && (n !== "dir" || e[n] !== Lw(e.sort || "")) && t.set(n, e[n]);
return t.toString();
}
-function _rt(e) {
+function grt(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 vrt(e, t) {
- let n = new URLSearchParams(grt(e));
+function _rt(e, t) {
+ let n = new URLSearchParams(hrt(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 yrt(e, t, n, r) {
- let i = vrt(n, r);
+function vrt(e, t, n, r) {
+ let i = _rt(n, r);
return Dt(e, t) + (i ? `?${i}` : "");
}
-function brt() {
+function yrt() {
let e = "";
return {
fresh(t, n) {
@@ -92614,23 +92614,23 @@ function brt() {
read(t, n, r, i) {
let a = e === Dt(t, n) && !r;
e = "";
- let o = a ? t7() : { ...hrt(r, i) };
+ let o = a ? n7() : { ...mrt(r, i) };
return t === "creator" && (o.creator = ""), {
filters: o,
media: a ? {
media: "videos",
set: 0
- } : _rt(r)
+ } : grt(r)
};
}
};
}
//#endregion
//#region src/react/entity-page/photo-surface.ts
-function xrt(e, t) {
+function brt(e, t) {
return e.entityWall && e.entityCurrent && e.indexVisible || e.pathname === "/follow" && e.followMedia === "images" && e.statsVisible ? !0 : t();
}
-function Srt(e) {
+function xrt(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);
@@ -92653,12 +92653,12 @@ function Srt(e) {
}
//#endregion
//#region src/react/entity-page/entity-controller.ts
-function Crt(e, t, n) {
+function Srt(e, t, n) {
let r = (t, n, r, i = {
media: "videos",
set: 0
}, { push: a = !0 } = {}) => {
- if (a && e.route(yrt(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
+ if (a && e.route(vrt(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
e.releaseBodyPreviews();
let o = e.state();
return e.push({
@@ -92672,7 +92672,7 @@ function Crt(e, t, n) {
if (s) return s;
let c = () => {
let n = e.context();
- return n?.kind === t && n.name === a ? n.filters : t7();
+ return n?.kind === t && n.name === a ? n.filters : n7();
}, l = {
...n,
route: (e, n) => {
@@ -92685,7 +92685,7 @@ function Crt(e, t, n) {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let n = c(), i = Lw(e, n.sort || "new", n.dir || "");
+ let n = c(), i = Rw(e, n.sort || "new", n.dir || "");
i && r(t, a, {
...n,
...i
@@ -92737,7 +92737,7 @@ function Crt(e, t, n) {
}
//#endregion
//#region src/react/entity-page/entity-loading.ts
-function wrt(e) {
+function Crt(e) {
return async (t, n, r) => {
!e.shapesReady() && (await e.waitShapes(), !r()) || (e.paintSkeleton(t, n), e.resetView(), e.loadShapes().then(() => {
r() && e.syncParts(t, n);
@@ -92746,7 +92746,7 @@ function wrt(e) {
}
//#endregion
//#region src/react/entity-page/entity-portrait.ts
-function Trt(e, t) {
+function wrt(e, t) {
let n = e === "studio" || e === "agency", r = t.id ? Qi({
kind: e,
id: t.id,
@@ -92768,11 +92768,11 @@ function Trt(e, t) {
}
//#endregion
//#region src/react/entity-page/entity-application.ts
-function Ert(e) {
- let t = brt(), n = {
+function Trt(e) {
+ let t = yrt(), n = {
...e.helpers,
- portraitImg: Trt
- }, r = Crt(e.controller, n, e.actions);
+ portraitImg: wrt
+ }, r = Srt(e.controller, n, e.actions);
return {
...r,
helpers: n,
@@ -92781,13 +92781,13 @@ function Ert(e) {
let { filters: o, media: s } = t.read(n, i, a, e.sortPreference());
return r.props(n, i, o, s);
},
- loading: wrt(e.loading),
- photos: Srt(e.photos)
+ loading: Crt(e.loading),
+ photos: xrt(e.photos)
};
}
//#endregion
//#region src/application/feed.js
-var n7 = {
+var r7 = {
FEED_SKELETON_CARDS: void 0,
feedNewSkeletonHtml: void 0,
entityShapes: void 0,
@@ -92801,33 +92801,33 @@ var n7 = {
feedNewActions: void 0,
HERO_WIDE_PX: void 0
};
-function Drt(e) {
+function Ert(e) {
return e.has_cover ? ia(e, "big") : e.cover_url ? ia({ code: e.code }, "big").replace(/ src="[^"]*"/, ` src="${L(e.cover_url)}" referrerpolicy="no-referrer" data-panel-prior="1"`) : "<span class=\"nopic\">无封面</span>";
}
-function Ort(e) {
- let t = [e.performers && `<span class="feednewperformers" title="${L(e.performers)}">${L(e.performers)}</span>`, e.release_date && `<span>${L(e.release_date)}</span>`].filter(Boolean).join(""), n = Drt(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? nO({
+function Drt(e) {
+ let t = [e.performers && `<span class="feednewperformers" title="${L(e.performers)}">${L(e.performers)}</span>`, e.release_date && `<span>${L(e.release_date)}</span>`].filter(Boolean).join(""), n = Ert(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? nO({
is_jav: !0,
code: e.code,
name: e.code,
display_title: e.title || ""
}) : L(r), a = e.code ? `<a class="feednewopen" href="/jav/movie/${encodeURIComponent(e.code)}" aria-label="打开 ${L(r)} 的作品详情"></a>` : "";
return `<article class="card feednewcard${e.read ? " isread" : ""}" data-feed-id="${e.id}">
- ${a}<div class="pic" style="--card-ratio:${mT}">${n}
+ ${a}<div class="pic" style="--card-ratio:${hT}">${n}
<div class="hovertools feednewtools">
<button type="button" data-feed-action="${e.wanted ? "unwant" : "want"}" aria-pressed="${!!e.wanted}" title="${e.wanted ? "取消想要" : "想要"}" aria-label="想要 ${L(r)}">${I("star")}</button>
<button type="button" data-feed-action="ignore" title="不想看" aria-label="不想看 ${L(r)}">${I("x")}</button>
<button type="button" data-feed-action="read" title="标为已看过" aria-label="标为已看过 ${L(r)}">${I("check")}</button></div></div>
- <div class="meta">${Yz(e)}<div class="mtext"><span class="t">${i}</span>
+ <div class="meta">${Jz(e)}<div class="mtext"><span class="t">${i}</span>
<div class="s mono">${t || (e.title ? "" : "资料还没取到")}</div></div></div></article>`;
}
-async function r7() {
- let e = Y5, t = await vt("/api/entity/shapes", { signal: e.signal }).catch(() => null);
- return e.isActive && t && !t.error && (n7.entityShapes = new Map((t.entities || []).flatMap((e) => e.names.map((t) => [`${e.kind}/${It(t)}`, e.parts]))), typeof t.home?.feed == "boolean" && (X.homeHasFeed = t.home.feed), i7(location.pathname) && krt(F("#feedNew"))), n7.entityShapes;
+async function i7() {
+ let e = X5, t = await vt("/api/entity/shapes", { signal: e.signal }).catch(() => null);
+ return e.isActive && t && !t.error && (r7.entityShapes = new Map((t.entities || []).flatMap((e) => e.names.map((t) => [`${e.kind}/${It(t)}`, e.parts]))), typeof t.home?.feed == "boolean" && (X.homeHasFeed = t.home.feed), a7(location.pathname) && Ort(F("#feedNew"))), r7.entityShapes;
}
-function krt(e) {
- !e || kL(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = n7.feedNewSkeletonHtml())));
+function Ort(e) {
+ !e || OL(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = r7.feedNewSkeletonHtml())));
}
-function Art(e, t) {
+function krt(e, t) {
return !(e > 0) || !t.some((e) => !e.has_cover) ? "" : Ja(`${e} 部新作的封面连不上 DMM 图片主机,中国移动宽带常见。把 DMM / FANZA 的连接方式设成 Peach 代理,下一轮会自动重取。`, {
variant: "warning",
className: "feednetwork",
@@ -92835,57 +92835,57 @@ function Art(e, t) {
actionHref: "/scraping"
});
}
-function jrt(e) {
+function Art(e) {
let t = e && !e.error && e.items || [];
- return Art(e?.cover_network, t) + `<div class="feednewrow srow">${t.map(Ort).join("")}</div>`;
+ return krt(e?.cover_network, t) + `<div class="feednewrow srow">${t.map(Drt).join("")}</div>`;
}
-function Mrt(e) {
- e && (g9(e), Z.appSettings.feedAutoScroll && Lo(e));
+function jrt(e) {
+ e && (_9(e), Z.appSettings.feedAutoScroll && Lo(e));
}
-function i7(e) {
+function a7(e) {
return wt(e) && e !== "/junk-files";
}
-function Nrt(e) {
+function Mrt(e) {
return wt(e) && e !== "/junk-files";
}
-function Prt() {
+function Nrt() {
let e = F("#feedNew");
- kL(e) ? NL(e, { revision: ++n7.feedRevision }) : (krt(e), ML("feed-new", {
+ OL(e) ? ML(e, { revision: ++r7.feedRevision }) : (Ort(e), jL("feed-new", {
host: e,
- revision: n7.feedRevision,
- helpers: n7.feedNewHelpers,
- actions: n7.feedNewActions
+ revision: r7.feedRevision,
+ helpers: r7.feedNewHelpers,
+ actions: r7.feedNewActions
}, {
container: e,
- isCurrent: () => i7(location.pathname)
+ isCurrent: () => a7(location.pathname)
}));
}
-function a7() {
+function o7() {
let e = F("#feedNew");
- e.querySelectorAll(".feednewrow").forEach(Ro), PL(e), e.hidden = !0, e.innerHTML = "", e.removeAttribute("aria-busy");
+ e.querySelectorAll(".feednewrow").forEach(Ro), NL(e), e.hidden = !0, e.innerHTML = "", e.removeAttribute("aria-busy");
}
-function Frt() {
- n7.feedRevision += 1, NL(F("#feedNew"), { revision: n7.feedRevision }), c7({ feedRevision: n7.feedRevision });
+function Prt() {
+ r7.feedRevision += 1, ML(F("#feedNew"), { revision: r7.feedRevision }), l7({ feedRevision: r7.feedRevision });
}
-function Irt() {
+function Frt() {
document.querySelectorAll(".feednewrow").forEach((e) => Z.appSettings.feedAutoScroll ? Lo(e) : Ro(e));
}
-function Lrt([e]) {
- F("#index").toggleAttribute("data-hero-wide", e.contentRect.width >= n7.HERO_WIDE_PX);
+function Irt([e]) {
+ F("#index").toggleAttribute("data-hero-wide", e.contentRect.width >= r7.HERO_WIDE_PX);
}
-function Rrt() {
- n7.FEED_SKELETON_CARDS = 8, n7.feedNewSkeletonHtml = () => `<div class="feednewrow srow" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${mT}"></div>
+function Lrt() {
+ r7.FEED_SKELETON_CARDS = 8, r7.feedNewSkeletonHtml = () => `<div class="feednewrow srow" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${hT}"></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(n7.FEED_SKELETON_CARDS)}</div>`, n7.entityShapes = null, n7.hasEntityPart = (e, t, n) => !!t && !!n7.entityShapes?.get(`${e}/${It(t)}`)?.includes(n), n7.feedNewSkeletonSection = () => `<section class="feednew">${n7.feedNewSkeletonHtml()}</section>`, n7.COSTAR_SKELETON_PEOPLE = 12, n7.costarSkeletonFoot = () => `<div class="entityfoot"><div class="relatedpeople">${"<span class=\"av avskeleton\"><span class=\"ring\"></span><span class=\"nm\">&#8203;</span></span>".repeat(n7.COSTAR_SKELETON_PEOPLE)}</div></div>`, n7.factsSkeleton = () => `<dl class="entityfacts">${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, n7.feedRevision = 0, n7.feedNewHelpers = {
- feedRowHtml: jrt,
- wireFeedRow: (e) => Mrt(e)
- }, n7.feedNewActions = { settled: (e) => {
+ <div class="s mono"><span class="skeleton">&#8203;</span></div></div></div></article>`.repeat(r7.FEED_SKELETON_CARDS)}</div>`, r7.entityShapes = null, r7.hasEntityPart = (e, t, n) => !!t && !!r7.entityShapes?.get(`${e}/${It(t)}`)?.includes(n), r7.feedNewSkeletonSection = () => `<section class="feednew">${r7.feedNewSkeletonHtml()}</section>`, r7.COSTAR_SKELETON_PEOPLE = 12, r7.costarSkeletonFoot = () => `<div class="entityfoot"><div class="relatedpeople">${"<span class=\"av avskeleton\"><span class=\"ring\"></span><span class=\"nm\">&#8203;</span></span>".repeat(r7.COSTAR_SKELETON_PEOPLE)}</div></div>`, r7.factsSkeleton = () => `<dl class="entityfacts">${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, r7.feedRevision = 0, r7.feedNewHelpers = {
+ feedRowHtml: Art,
+ wireFeedRow: (e) => jrt(e)
+ }, r7.feedNewActions = { settled: (e) => {
X.homeHasFeed = e;
- } }, n7.HERO_WIDE_PX = 900, Y5.resize(Lrt).observe(F("#index"));
+ } }, r7.HERO_WIDE_PX = 900, X5.resize(Irt).observe(F("#index"));
}
//#endregion
//#region src/entity-skeleton.ts
-function zrt(e, t, n) {
+function Rrt(e, t, n) {
return `<section data-skeleton="entity/${e}" role="status" aria-label="正在读取资料">
<span class="sr-only">正在读取资料</span><div aria-hidden="true">
<section class="entityhero"><div class="entityprofile"><div class="entityportrait ${e === "studio" || e === "agency" ? "square " : ""}skeleton"></div>
@@ -92899,7 +92899,7 @@ function zrt(e, t, n) {
}
//#endregion
//#region src/application/entity.js
-var o7 = {
+var s7 = {
ENTITY_FILTER_KEYS: void 0,
emptyEntityFilters: void 0,
parseEntityFilters: void 0,
@@ -92924,16 +92924,16 @@ var o7 = {
sourceToolButtons: void 0,
application: void 0
};
-function s7() {
- let e = OL(F("#index"));
+function c7() {
+ let e = DL(F("#index"));
return e && e.path.endsWith("/*") && e.host.isConnected ? e : null;
}
-function c7(e) {
- o7.entityPageCurrent() && NL(F("#index"), e);
+function l7(e) {
+ s7.entityPageCurrent() && ML(F("#index"), e);
}
-function l7() {
+function u7() {
if (tc.type === "item") return tc;
- let e = s7();
+ let e = c7();
if (e) {
let { kind: t, name: n, filters: r } = e.props;
return {
@@ -92945,62 +92945,62 @@ function l7() {
}
return tc;
}
-function Brt(e, t, n = B7()) {
- return Yit(n).map(([n, r]) => {
- let i = e === n, a = Lw(n, e, t);
+function zrt(e, t, n = V7()) {
+ return Jit(n).map(([n, r]) => {
+ let i = e === n, a = Rw(n, e, t);
return {
key: n,
label: r,
pressed: i,
- dir: i && Fw(n, t) ? t === "asc" ? "asc" : "desc" : "",
- ariaLabel: a ? `按${r}${a.dir ? Fw(a.sort, a.dir) : ""}排序` : ""
+ dir: i && Iw(n, t) ? t === "asc" ? "asc" : "desc" : "",
+ ariaLabel: a ? `按${r}${a.dir ? Iw(a.sort, a.dir) : ""}排序` : ""
};
});
}
-function u7(e, t, n, r = o7.EMPTY_ENTITY_MEDIA, i = {}) {
- return o7.application.route(e, t, n, r, i);
+function d7(e, t, n, r = s7.EMPTY_ENTITY_MEDIA, i = {}) {
+ return s7.application.route(e, t, n, r, i);
}
-function d7() {
- return xrt({
- entityWall: o7.entityPageWall,
- entityCurrent: o7.entityPageCurrent(),
+function f7() {
+ return brt({
+ entityWall: s7.entityPageWall,
+ entityCurrent: s7.entityPageCurrent(),
indexVisible: !F("#index").hidden,
pathname: location.pathname,
followMedia: $.followMediaView,
statsVisible: !F("#stats").hidden
}, () => [...document.querySelectorAll(".followphotowall")].some((e) => e.getClientRects().length > 0));
}
-function f7() {
- o7.photos.sync();
+function p7() {
+ s7.photos.sync();
}
-function Vrt() {
- d7() ? ece(bT()) : jT();
+function Brt() {
+ f7() ? $se(xT()) : MT();
}
-function Hrt(e) {
- o7.photos.setSize(e);
+function Vrt(e) {
+ s7.photos.setSize(e);
}
-var Urt = mrt({
+var Hrt = prt({
request: (e) => vt("/api/reveal", {
method: "POST",
body: JSON.stringify({ id: e })
}),
- success: () => X5.toast({ text: "已在资源管理器中显示" }),
- failureText: (e) => o7.sourceHint(e instanceof Error ? e.message : String(e))
+ success: () => Z5.toast({ text: "已在资源管理器中显示" }),
+ failureText: (e) => s7.sourceHint(e instanceof Error ? e.message : String(e))
});
-async function Wrt(e) {
+async function Urt(e) {
let t = { textContent: "" };
- return await Urt(e, t), t.textContent;
+ return await Hrt(e, t), t.textContent;
}
-async function Grt(e) {
+async function Wrt(e) {
let t = { textContent: "" }, n = [];
- return await Krt(e, t, (e) => {
+ return await Grt(e, t, (e) => {
e.items && (n = e.items.map((e) => e.id));
}), {
text: t.textContent,
removed: n
};
}
-async function Krt(e, t, n) {
+async function Grt(e, t, n) {
t.textContent = "正在核对目录…";
try {
let r = await vt("/api/purge-missing", {
@@ -93008,12 +93008,12 @@ async function Krt(e, t, n) {
body: JSON.stringify({ id: e })
});
if (r.ok === !1) {
- t.textContent = o7.sourceHint(r.error);
+ t.textContent = s7.sourceHint(r.error);
return;
}
- if (t.textContent = r.removed ? `${o7.syncedText(r)}(核对 ${r.checked} 项${r.unreadable ? `,${r.unreadable} 项未能读取` : ""})` : r.unreadable ? `目录有 ${r.unreadable} 项暂时无法读取,本次未改动` : `目录内 ${r.checked} 项都还在,无需改动`, r.removed) {
+ if (t.textContent = r.removed ? `${s7.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), X5.actionReceipt(o7.syncedText(r), { undo: e.length ? async () => {
+ n && n(r), Z5.actionReceipt(s7.syncedText(r), { undo: e.length ? async () => {
await vt("/api/batch", {
method: "POST",
body: JSON.stringify({
@@ -93025,22 +93025,22 @@ async function Krt(e, t, n) {
restored: e.length
});
} : null });
- } else X5.actionReceipt("目录核对完成,无需改动");
+ } else Z5.actionReceipt("目录核对完成,无需改动");
} catch (e) {
- t.textContent = o7.sourceHint(e.message), X5.actionFailure("核对目录", e);
+ t.textContent = s7.sourceHint(e.message), Z5.actionFailure("核对目录", e);
}
}
-function qrt(e) {
- return `<div class="srctools">${o7.sourceToolButtons(e)}
+function Krt(e) {
+ return `<div class="srctools">${s7.sourceToolButtons(e)}
<span class="srcstate" aria-live="polite"></span></div>`;
}
-function Jrt(e, t) {
+function qrt(e, t) {
let n = e.querySelector(".srcstate");
if (!n) return;
let r = e.querySelector("[data-reveal]"), i = e.querySelector("[data-sync]");
- r && Y5.handler(r, "onclick", () => Urt(Number(r.dataset.reveal), n, { button: r })), i && Y5.handler(i, "onclick", () => Krt(Number(i.dataset.sync), n, t));
+ r && X5.handler(r, "onclick", () => Hrt(Number(r.dataset.reveal), n, { button: r })), i && X5.handler(i, "onclick", () => Grt(Number(i.dataset.sync), n, t));
}
-async function Yrt(e, t) {
+async function Jrt(e, t) {
let n = ns({
title: "添加别名",
description: "图库按名字存图,多记一个写法就多一批候选;这里添的名字也能提为统称。",
@@ -93052,9 +93052,9 @@ async function Yrt(e, t) {
confirmDisabled: !0,
onConfirm: () => t({ alias: r.value.trim() })
}), r = n.dialog.querySelector("[name=alias]");
- Y5.handler(r, "oninput", () => {
+ X5.handler(r, "oninput", () => {
n.confirmButton.disabled = !r.value.trim();
- }), n.dialog.querySelectorAll("[data-alias-drop]").forEach((e) => Y5.handler(e, "onclick", async () => {
+ }), n.dialog.querySelectorAll("[data-alias-drop]").forEach((e) => X5.handler(e, "onclick", async () => {
let r = e.dataset.aliasDrop;
n.close();
try {
@@ -93063,49 +93063,49 @@ async function Yrt(e, t) {
remove: !0
});
} catch (e) {
- X5.actionFailure("撤销别名", e);
+ Z5.actionFailure("撤销别名", e);
return;
}
- X5.actionReceipt(`已撤销别名 ${r}`, { undo: async () => {
+ Z5.actionReceipt(`已撤销别名 ${r}`, { undo: async () => {
await t({ alias: r });
} });
}));
let { confirmed: i, result: a } = await n.done;
- i && (a?.added ? X5.actionReceipt(`已添加别名 ${a.alias}`, { undo: async () => {
+ i && (a?.added ? Z5.actionReceipt(`已添加别名 ${a.alias}`, { undo: async () => {
await t({
alias: a.alias,
remove: !0
});
- } }) : X5.actionReceipt(`${a?.alias} 已经是这条实体的名字`));
+ } }) : Z5.actionReceipt(`${a?.alias} 已经是这条实体的名字`));
}
-function Xrt(e, t) {
- let n = zrt(e, Ka({
+function Yrt(e, t) {
+ let n = Rrt(e, Ka({
readout: "&nbsp;",
loading: !0,
filterRow: "bottom"
}), e === "agency" ? fo({
kind: "performers",
- layout: S7.peopleIndexLayout()
- }) : d9());
- F("#index").firstElementChild?.dataset.skeleton === `entity/${e}` ? p7(e, t) : (F("#index").innerHTML = n, p7(e, t), yo(F("#index")));
+ layout: C7.peopleIndexLayout()
+ }) : f9());
+ F("#index").firstElementChild?.dataset.skeleton === `entity/${e}` ? m7(e, t) : (F("#index").innerHTML = n, m7(e, t), yo(F("#index")));
}
-function p7(e, t) {
+function m7(e, t) {
let n = F("#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" && n7.hasEntityPart(e, t, "costars"), () => n.querySelector(".entityhero")?.insertAdjacentHTML("beforeend", n7.costarSkeletonFoot())), r(n.querySelector(".feednew"), n7.hasEntityPart(e, t, "feed"), () => n.querySelector(".entitysection")?.insertAdjacentHTML("beforebegin", n7.feedNewSkeletonSection())), r(n.querySelector(".entityfacts"), e === "performer" && n7.hasEntityPart(e, t, "facts"), () => n.querySelector(".entityprofile")?.insertAdjacentHTML("beforeend", n7.factsSkeleton()));
+ r(n.querySelector(".entityfoot"), e !== "agency" && r7.hasEntityPart(e, t, "costars"), () => n.querySelector(".entityhero")?.insertAdjacentHTML("beforeend", r7.costarSkeletonFoot())), r(n.querySelector(".feednew"), r7.hasEntityPart(e, t, "feed"), () => n.querySelector(".entitysection")?.insertAdjacentHTML("beforebegin", r7.feedNewSkeletonSection())), r(n.querySelector(".entityfacts"), e === "performer" && r7.hasEntityPart(e, t, "facts"), () => n.querySelector(".entityprofile")?.insertAdjacentHTML("beforeend", r7.factsSkeleton()));
}
-function Zrt(e) {
- let t = Tt[e] || e, n = t5[t] || "条目", r = t5[t] ? `<a class="geist-button primary" href="/${t}">返回${n}列表</a>` : "";
+function Xrt(e) {
+ let t = Tt[e] || e, n = n5[t] || "条目", r = n5[t] ? `<a class="geist-button primary" href="/${t}">返回${n}列表</a>` : "";
F("#index").innerHTML = Z.emptyState("search-x", `找不到这个${n}`, "名字可能拼错了,或者已经合并到别的名字下;回列表里重新找。", { actions: r });
}
-function m7(e, t) {
- A9(o7.application.fresh(e, t));
+function h7(e, t) {
+ j9(s7.application.fresh(e, t));
}
-function Qrt() {
- o7.ENTITY_FILTER_KEYS = [
+function Zrt() {
+ s7.ENTITY_FILTER_KEYS = [
"loc",
"creator",
"tag",
@@ -93115,71 +93115,71 @@ function Qrt() {
"orient",
"sort",
"dir"
- ], o7.emptyEntityFilters = t7, o7.parseEntityFilters = (e) => hrt(e, {
+ ], s7.emptyEntityFilters = n7, s7.parseEntityFilters = (e) => mrt(e, {
sort: Z.appSettings.defaultSort,
dir: Z.appSettings.defaultSortDirection
- }), o7.entityFilterSearch = grt, o7.cloneBarsContext = (e) => e && e.type === "entity" ? {
+ }), s7.entityFilterSearch = hrt, s7.cloneBarsContext = (e) => e && e.type === "entity" ? {
...e,
filters: { ...e.filters }
- } : e, o7.activeFilterState = () => {
- let e = l7();
+ } : e, s7.activeFilterState = () => {
+ let e = u7();
return e.type === "home" ? H : e.filters;
}, F("#q").value = H.q, X.rememberSearchValue();
}
-function $rt() {
- o7.entityPageView = "", o7.entityPageWall = !1, o7.entityPageRevision = 0, o7.entityPageCurrent = () => !!s7(), o7.entityPageLive = (e, t) => {
- let n = s7();
+function Qrt() {
+ s7.entityPageView = "", s7.entityPageWall = !1, s7.entityPageRevision = 0, s7.entityPageCurrent = () => !!c7(), s7.entityPageLive = (e, t) => {
+ let n = c7();
return !!n && !F("#index").hidden && n.props.kind === e && n.props.name === t;
- }, o7.EMPTY_ENTITY_MEDIA = {
+ }, s7.EMPTY_ENTITY_MEDIA = {
media: "videos",
set: 0
- }, o7.parseMediaView = _rt, o7.entityViewSearch = vrt, o7.entityBodyCanLoadMore = () => !F("#index").hidden && F("#stats").hidden, o7.entityBodySkeleton = () => d9(), o7.entityPageHelpers = {
+ }, s7.parseMediaView = grt, s7.entityViewSearch = _rt, s7.entityBodyCanLoadMore = () => !F("#index").hidden && F("#stats").hidden, s7.entityBodySkeleton = () => f9(), s7.entityPageHelpers = {
wireDrag: (e) => {
- e && g9(e);
+ e && _9(e);
},
wireScroller: (e) => {
e && Ao(e);
},
- wireFeedRow: (e) => Mrt(e),
- feedRowHtml: jrt,
- receipt: (e, t) => X5.actionReceipt(e, t),
- failure: (e, t) => X5.actionFailure(e, t),
- aliasForm: (e, t) => Yrt(e, t),
- sourceToolsHtml: (e) => qrt(e),
- wireSourceTools: (e, t) => Jrt(e, t),
- comboItems: (e) => Aat(e),
- sortKeys: (e, t, n) => Brt(e, t, n)
- }, o7.entityFollowActions = {
+ wireFeedRow: (e) => jrt(e),
+ feedRowHtml: Art,
+ receipt: (e, t) => Z5.actionReceipt(e, t),
+ failure: (e, t) => Z5.actionFailure(e, t),
+ aliasForm: (e, t) => Jrt(e, t),
+ sourceToolsHtml: (e) => Krt(e),
+ wireSourceTools: (e, t) => qrt(e, t),
+ comboItems: (e) => kat(e),
+ sortKeys: (e, t, n) => zrt(e, t, n)
+ }, s7.entityFollowActions = {
...$.followFeedActions,
route: () => {},
shuffle: () => {},
loaded: () => {},
toggleSelection: () => {}
- }, o7.SOURCE_HINTS = {
+ }, s7.SOURCE_HINTS = {
"source offline": "来源不在线,这一次不对账;接上这个来源后重试",
"source not mapped": "本机没有映射这个来源的盘符",
"file missing": "源文件已不在盘上;点右边的同步把账本对齐",
"unsupported platform": "当前服务端系统不支持直接定位文件",
"reveal failed": "打开文件管理器失败,请重试"
- }, o7.sourceHint = (e) => o7.SOURCE_HINTS[e] || e, o7.syncedText = (e) => [
+ }, s7.sourceHint = (e) => s7.SOURCE_HINTS[e] || e, s7.syncedText = (e) => [
e.trashed ? `已把 ${e.trashed} 项移入回收站` : "",
e.vanished ? `${e.vanished} 项带个人记录,已标为已消失` : "",
e.reattached ? `${e.reattached} 项的记录已接到库里的另一个版本` : ""
- ].filter(Boolean).join(","), o7.sourceToolButtons = (e) => `
+ ].filter(Boolean).join(","), s7.sourceToolButtons = (e) => `
<button type="button" data-reveal="${e}" title="在文件管理器里打开源文件所在目录"
aria-label="定位源文件">${I("folder-open")}</button>
<button type="button" data-sync="${e}" title="核对该目录:磁盘上已删除的移入 Peach 回收站,带个人记录的标为已消失"
aria-label="同步删除">${I("folder-sync")}</button>`;
}
-function eit() {
- o7.application = Ert({
+function $rt() {
+ s7.application = Trt({
controller: {
context: () => {
- let e = l7();
+ let e = u7();
return e.type === "entity" ? e : null;
},
- live: (e, t) => o7.entityPageLive(e, t),
- current: () => o7.entityPageCurrent(),
+ live: (e, t) => s7.entityPageLive(e, t),
+ current: () => s7.entityPageCurrent(),
route: (e, t = !1) => Q.route(e, t),
search: () => location.search,
restoreHomeContext: () => kc({ barsContext: {
@@ -93187,93 +93187,93 @@ function eit() {
filters: H
} }),
releaseBodyPreviews: () => Hs(F("#index [data-entity-body]")),
- push: c7,
+ push: l7,
state: () => ({
seed: String(H.seed || ""),
jav: H.jav === "1"
}),
preferences: () => ({
- revision: o7.entityPageRevision,
- feedRevision: n7.feedRevision,
- photoSize: bT(),
- photoLayout: xT(),
- photoLayouts: pT,
+ revision: s7.entityPageRevision,
+ feedRevision: r7.feedRevision,
+ photoSize: xT(),
+ photoLayout: ST(),
+ photoLayouts: mT,
followImagesOnly: !!Z.appSettings.followImagesOnly,
- javLayout: gT(),
- javLayouts: dT,
+ javLayout: _T(),
+ javLayouts: fT,
states: X.VIEW_PILLS,
- peopleLayout: S7.peopleIndexLayout(),
- layout: u9(),
+ peopleLayout: C7.peopleIndexLayout(),
+ layout: d9(),
selectMode: ac,
selected: new Set(rc),
seekSeconds: Z.appSettings.seekSeconds,
groupCollapse: Z.appSettings.groupCollapse,
- wireDrag: g9,
- skeletonHtml: o7.entityBodySkeleton,
- canLoadMore: o7.entityBodyCanLoadMore,
+ wireDrag: _9,
+ skeletonHtml: s7.entityBodySkeleton,
+ canLoadMore: s7.entityBodyCanLoadMore,
follow: {
helpers: $.followFeedHelpers,
- actions: o7.entityFollowActions
+ actions: s7.entityFollowActions
}
}),
- changeFilter: $7,
- rollSeed: () => X5.rollSeed(),
+ changeFilter: e9,
+ rollSeed: () => Z5.rollSeed(),
writeSeed: (e) => {
H.seed = e, Ac();
},
- setJavLayout: Zit,
- javLayout: gT,
- setPhotoLayout: ET,
- syncPhotoWalls: f7,
- openEntity: m7,
- photoViewActive: d7,
+ setJavLayout: Xit,
+ javLayout: _T,
+ setPhotoLayout: DT,
+ syncPhotoWalls: p7,
+ openEntity: h7,
+ photoViewActive: f7,
recordPainted: (e, t) => {
- o7.entityPageView = e, o7.entityPageWall = t;
+ s7.entityPageView = e, s7.entityPageWall = t;
},
- syncDensity: Vrt,
- scheduleSticky: q7,
- releasePage: () => PL(F("#index")),
- showMissing: Zrt,
- dropBars: $5
+ syncDensity: Brt,
+ scheduleSticky: J7,
+ releasePage: () => NL(F("#index")),
+ showMissing: Xrt,
+ dropBars: e7
},
loading: {
- shapesReady: () => !!n7.entityShapes,
- waitShapes: Nit,
- paintSkeleton: Xrt,
+ shapesReady: () => !!r7.entityShapes,
+ waitShapes: Mit,
+ paintSkeleton: Yrt,
resetView: () => {
- kc({ detailReturnBarsContext: null }), o7.entityPageView = "", o7.entityPageWall = !1;
+ kc({ detailReturnBarsContext: null }), s7.entityPageView = "", s7.entityPageWall = !1;
},
- loadShapes: r7,
- syncParts: p7
+ loadShapes: i7,
+ syncParts: m7
},
photos: {
preferences: () => ({
- size: bT(),
- layout: xT(),
+ size: xT(),
+ layout: ST(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
walls: () => document.querySelectorAll(".followphotowall"),
- pushEntity: c7,
- pushFollow: F9,
- syncDensity: Vrt,
- storeSize: Zse
+ pushEntity: l7,
+ pushFollow: I9,
+ syncDensity: Brt,
+ storeSize: Xse
},
- helpers: o7.entityPageHelpers,
+ helpers: s7.entityPageHelpers,
actions: {
- toggleTag: r9,
- openFollowAuthor: kit,
+ toggleTag: i9,
+ openFollowAuthor: Oit,
javContext: (e) => kc({ entityJavLayout: !!e })
},
sortPreference: () => ({
sort: Z.appSettings.defaultSort,
dir: Z.appSettings.defaultSortDirection
})
- }), o7.photos = o7.application.photos, o7.entityPageHelpers = o7.application.helpers;
+ }), s7.photos = s7.application.photos, s7.entityPageHelpers = s7.application.helpers;
}
//#endregion
//#region src/application/playlists.js
-var h7 = { playlistWrite: void 0 };
-function tit(e, t) {
+var g7 = { playlistWrite: void 0 };
+function eit(e, t) {
e === "tag" ? (kc({ state: {
...H,
tag: t,
@@ -93283,17 +93283,17 @@ function tit(e, t) {
q: "",
state: "",
orient: ""
- } }), X.clearSearchField(), Q.route(Y7()), M7(), n9()) : m7(e, t);
+ } }), X.clearSearchField(), Q.route(X7()), N7(), r9()) : h7(e, t);
}
-function nit(e = "") {
+function tit(e = "") {
return `<label class="modalfield"><span>名称</span><input class="geist-input" name="name"
maxlength="80" placeholder="输入名称" value="${L(e)}"></label>`;
}
-async function rit({ title: e, count: t, save: n }) {
+async function nit({ title: e, count: t, save: n }) {
let r = ns({
title: "保存为播放列表",
description: `这个 Mix 的 ${t} 个视频会存成一份可以继续播放的列表。`,
- body: nit(e),
+ body: tit(e),
confirmLabel: "保存为播放列表",
onConfirm: () => {
let e = r.dialog.querySelector("[name=\"name\"]").value.trim();
@@ -93303,28 +93303,28 @@ async function rit({ title: e, count: t, save: n }) {
});
r.dialog.querySelector("[name=\"name\"]").select();
let { confirmed: i, result: a } = await r.done;
- i && (await aot(a.id, a.current_asset_id, !0), X5.actionReceipt("已保存为播放列表", { undo: async () => {
- await h7.playlistWrite({
+ i && (await iot(a.id, a.current_asset_id, !0), Z5.actionReceipt("已保存为播放列表", { undo: async () => {
+ await g7.playlistWrite({
action: "delete",
id: a.id
- }), A9("/playlists");
+ }), j9("/playlists");
} }));
}
-async function iit(e) {
+async function rit(e) {
let t = ((await vt("/api/playlists")).items || []).map((e) => `<label class="pickrow">${$a(`data-pick-playlist="${e.id}"`)}
<span class="pickrowtext"><b>${L(e.name)}</b><small>${e.item_count} 个视频</small></span></label>`).join(""), n = ns({
title: "加入播放列表",
description: "勾选要加入的列表,或者填个名称新建一份。",
- body: nit() + (t ? `<div class="picklist" role="group" aria-label="已有播放列表">${t}</div>` : Ja("还没有播放列表,填个名称就能新建一份。", { size: "small" })),
+ body: tit() + (t ? `<div class="picklist" role="group" aria-label="已有播放列表">${t}</div>` : Ja("还没有播放列表,填个名称就能新建一份。", { 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 h7.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 g7.playlistWrite({
action: "create",
name: t,
asset_ids: [e.id]
})).playlist : null;
- for (let t of r) await h7.playlistWrite({
+ for (let t of r) await g7.playlistWrite({
action: "add",
id: t,
asset_ids: [e.id]
@@ -93338,45 +93338,45 @@ async function iit(e) {
let e = n.dialog.querySelector("[name=\"name\"]").value.trim();
n.confirmButton.disabled = !e && !n.dialog.querySelector("[data-pick-playlist]:checked");
};
- Y5.listen(n.dialog, "input", r), Y5.listen(n.dialog, "change", r);
+ X5.listen(n.dialog, "input", r), X5.listen(n.dialog, "change", r);
let { confirmed: i, result: a } = await n.done;
if (!i) return;
let o = +!!a.created + a.added.length;
- X5.actionReceipt(`已加入 ${o} 个播放列表`, { undo: async () => {
- for (let t of a.added) await h7.playlistWrite({
+ Z5.actionReceipt(`已加入 ${o} 个播放列表`, { undo: async () => {
+ for (let t of a.added) await g7.playlistWrite({
action: "remove",
id: t,
asset_id: e.id
});
- a.created && await h7.playlistWrite({
+ a.created && await g7.playlistWrite({
action: "delete",
id: a.created.id
});
} });
}
-function ait() {
- Hs(), v9(!1), j7();
- let e = OL(F("#stats"));
- e?.path !== "/playlists" || !e.host.isConnected ? kc({ pageOpens: bc + 1 }) : (A7({ manage: !1 }), kc({ playlistsRevision: Ec + 1 }));
+function iit() {
+ Hs(), y9(!1), M7();
+ let e = DL(F("#stats"));
+ e?.path !== "/playlists" || !e.host.isConnected ? kc({ pageOpens: bc + 1 }) : (j7({ manage: !1 }), kc({ playlistsRevision: Ec + 1 }));
}
-function oit(e) {
+function ait(e) {
Q.route("/review" + (e.category ? "?category=" + encodeURIComponent(e.category) : ""));
}
-function sit(e) {
+function oit(e) {
kc({ configurationRequestedSection: e }), Q.navigatePath("/configuration");
}
-function cit() {
- h7.playlistWrite = (e) => vt("/api/playlist", {
+function sit() {
+ g7.playlistWrite = (e) => vt("/api/playlist", {
method: "POST",
body: JSON.stringify(e)
});
}
//#endregion
//#region src/react/catalog-grid/selection-controller.ts
-function g7(e) {
+function _7(e) {
return e === "/follow" ? "follow" : e === "/junk-files" ? "junk" : "catalog";
}
-function lit(e, t, n, r, i = !1) {
+function cit(e, t, n, r, i = !1) {
return i && (e.selected.clear(), e.followSelected.clear()), {
selectMode: r,
selectSurface: r ? t.selectMode ? t.selectSurface : n : "",
@@ -93384,24 +93384,24 @@ function lit(e, t, n, r, i = !1) {
followLastSelectedId: i ? null : t.followLastSelectedId
};
}
-function uit(e, t, n, r, i, a = !1) {
- let o = n === "follow", s = FM(o ? e.followSelected : e.selected, r, o ? t.followLastSelectedId : t.lastSelectedId, i, a);
+function lit(e, t, n, r, i, a = !1) {
+ let o = n === "follow", s = PM(o ? e.followSelected : e.selected, r, o ? t.followLastSelectedId : t.lastSelectedId, i, a);
return {
- ...lit(e, t, n, !0),
+ ...cit(e, t, n, !0),
...o ? { followLastSelectedId: s } : { lastSelectedId: s }
};
}
-function dit(e, t, n, r) {
- let i = g7(t);
+function uit(e, t, n, r) {
+ let i = _7(t);
return {
count: (i === "follow" ? e.followSelected : e.selected).size,
context: i === "catalog" && r === "trash" ? "trash" : i,
- junkDismissed: Hz(n).view === "dismissed"
+ junkDismissed: Vz(n).view === "dismissed"
};
}
//#endregion
//#region src/application/selection.js
-var _7 = {
+var v7 = {
batchDockProps: void 0,
trashCount: void 0,
currentSelectSurface: void 0,
@@ -93409,43 +93409,43 @@ var _7 = {
BATCH_RUNNERS: void 0,
coverRecheck: void 0
};
-function v7() {
- l9({
+function y7() {
+ u9({
selected: new Set(rc),
selectMode: ac
- }), c7({
+ }), l7({
selected: new Set(rc),
selectMode: ac
- }), F9({
+ }), I9({
selected: new Set(ic),
selectMode: ac
- }), _7.batchDockProps = xit(), Pnt() && (Pnt().render(_7.batchDockProps), Z.syncGlassOptics());
+ }), v7.batchDockProps = bit(), Nnt() && (Nnt().render(v7.batchDockProps), Z.syncGlassOptics());
}
-function y7(e, t = !1) {
- kc(lit({
+function b7(e, t = !1) {
+ kc(cit({
selected: rc,
followSelected: ic
- }, x7(), g7(location.pathname), !!e, t)), document.body.classList.toggle("select-mode", ac), ac && Hs(), F("#selectMode").setAttribute("aria-pressed", String(ac)), v7();
+ }, S7(), _7(location.pathname), !!e, t)), document.body.classList.toggle("select-mode", ac), ac && Hs(), F("#selectMode").setAttribute("aria-pressed", String(ac)), y7();
}
-function fit() {
- return [...T7.gridCards()].map((e) => +e.dataset.id);
+function dit() {
+ return [...E7.gridCards()].map((e) => +e.dataset.id);
}
-function b7(e, t = !1) {
- kc(uit({
+function x7(e, t = !1) {
+ kc(lit({
selected: rc,
followSelected: ic
- }, x7(), g7(location.pathname), fit(), e, t)), y7(!0);
+ }, S7(), _7(location.pathname), dit(), e, t)), b7(!0);
}
-function pit() {
+function fit() {
return [...document.querySelectorAll("[data-follow-list] > [data-follow-item]")].map((e) => +e.dataset.followItem);
}
-function mit(e, t = !1) {
- kc(uit({
+function pit(e, t = !1) {
+ kc(lit({
selected: rc,
followSelected: ic
- }, x7(), "follow", pit(), e, t)), y7(!0);
+ }, S7(), "follow", fit(), e, t)), b7(!0);
}
-async function hit(e, t) {
+async function mit(e, t) {
let n = {
like: "喜欢",
seen: "标为看过",
@@ -93477,32 +93477,32 @@ async function hit(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"));
- y7(!1, !0), await W7();
+ b7(!1, !0), await G7();
let r = e === "dispose" ? "restore" : e === "restore" ? "dispose" : null;
- X5.actionReceipt(`已${n[e]} ${i.length} 项`, { undo: r ? async () => {
+ Z5.actionReceipt(`已${n[e]} ${i.length} 项`, { undo: r ? async () => {
await vt("/api/batch", {
method: "POST",
body: JSON.stringify({
ids: i,
operation: r
})
- }), await W7();
+ }), await G7();
} : null });
} catch (e) {
throw Go(t, !1), e;
} finally {
- Go(t, !1), v7();
+ Go(t, !1), y7();
}
}
});
}
-async function git() {
+async function hit() {
let e = [...rc];
if (!e.length) return;
let t = ns({
title: "判定产地",
description: `选中的 ${e.length} 项归为同一个产地。判定之后,刮削和自动推断不再改写产地。`,
- body: "<div class=\"chips\" role=\"group\" aria-label=\"产地\">" + _7.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=\"产地\">" + v7.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,
@@ -93522,13 +93522,13 @@ async function git() {
};
}
});
- t.dialog.querySelectorAll("[data-region-pick]").forEach((e) => Y5.handler(e, "onclick", () => {
+ t.dialog.querySelectorAll("[data-region-pick]").forEach((e) => X5.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 && (y7(!1, !0), await W7(), X5.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));
+ n && (b7(!1, !0), await G7(), Z5.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));
}
-async function _it(e, t) {
+async function git(e, t) {
let n = [...ic];
if (!n.length) return;
let r = {
@@ -93554,16 +93554,16 @@ async function _it(e, t) {
items: n,
to: e
})
- }), y7(!1, !0), location.pathname === "/follow" && kc({ pageOpens: bc + 1 }), X5.actionReceipt(`已${r[e]} ${n.length} 项`);
+ }), b7(!1, !0), location.pathname === "/follow" && kc({ pageOpens: bc + 1 }), Z5.actionReceipt(`已${r[e]} ${n.length} 项`);
} catch (e) {
throw Go(t, !1), e;
} finally {
- Go(t, !1), v7();
+ Go(t, !1), y7();
}
}
});
}
-async function vit(e, t) {
+async function _it(e, t) {
let n = [...rc];
if (!n.length) return;
let r = {
@@ -93589,68 +93589,68 @@ async function vit(e, t) {
ids: n,
operation: e
})
- }), y7(!1, !0), await a9();
+ }), b7(!1, !0), await o9();
let t = e === "dispose" ? "restore" : e === "dismiss-junk" ? "reconsider-junk" : e === "reconsider-junk" ? "dismiss-junk" : null;
- X5.actionReceipt(`已批量${r[e]}:${n.length} 项`, { undo: t ? async () => {
+ Z5.actionReceipt(`已批量${r[e]}:${n.length} 项`, { undo: t ? async () => {
await vt("/api/batch", {
method: "POST",
body: JSON.stringify({
ids: n,
operation: t
})
- }), await a9();
+ }), await o9();
} : null });
} catch (e) {
throw Go(t, !1), e;
} finally {
- Go(t, !1), v7();
+ Go(t, !1), y7();
}
}
});
}
-function yit() {
- Nnt({
+function vit() {
+ Mnt({
root: F("[data-batch-dock]"),
run: (e, t, n) => {
- _7.BATCH_RUNNERS[e]?.(t, n);
+ v7.BATCH_RUNNERS[e]?.(t, n);
}
}).then((e) => {
- e.render(_7.batchDockProps), Z.syncGlassOptics();
+ e.render(v7.batchDockProps), Z.syncGlassOptics();
}).catch(() => {});
}
-function bit() {
- _7.batchDockProps = {
+function yit() {
+ v7.batchDockProps = {
count: 0,
context: "catalog",
junkDismissed: !1
- }, _7.trashCount = null, _7.currentSelectSurface = () => g7(location.pathname), Y5.handler(F("#selectMode"), "onclick", () => y7(!ac, !!ac)), _7.REGION_CHOICES = [
+ }, v7.trashCount = null, v7.currentSelectSurface = () => _7(location.pathname), X5.handler(F("#selectMode"), "onclick", () => b7(!ac, !!ac)), v7.REGION_CHOICES = [
["jp", "日本"],
["kr", "韩国"],
["cn", "国产"],
["west", "欧美"],
["other", "其他"],
["none", "撤回判定"]
- ], _7.BATCH_RUNNERS = {
- batch: hit,
- region: git,
- follow: _it,
- junk: vit,
- clear: () => y7(!1, !0)
- }, Y5.handler(F("#density"), "onclick", () => {
- d7() ? Hrt(bT() === "big" ? "small" : "big") : $se();
- }), jT(), Bs({
+ ], v7.BATCH_RUNNERS = {
+ batch: mit,
+ region: hit,
+ follow: git,
+ junk: _it,
+ clear: () => b7(!1, !0)
+ }, X5.handler(F("#density"), "onclick", () => {
+ f7() ? Vrt(xT() === "big" ? "small" : "big") : Qse();
+ }), MT(), Bs({
selecting: () => ac,
- censored: () => h9(),
+ censored: () => g9(),
delaySeconds: () => Z.appSettings.hoverDelaySeconds
- }), Y5.listen(window, "pagehide", () => Hs()), Y5.listen(document, "visibilitychange", () => {
+ }), X5.listen(window, "pagehide", () => Hs()), X5.listen(document, "visibilitychange", () => {
document.hidden && Hs();
- }), Ls(), _7.coverRecheck = 0, Y5.listen(window, "resize", () => {
- Ps(F("#index")), clearTimeout(_7.coverRecheck), _7.coverRecheck = Y5.delay(() => F("#index").querySelectorAll("img.cover").forEach((e) => {
+ }), Ls(), v7.coverRecheck = 0, X5.listen(window, "resize", () => {
+ Ps(F("#index")), clearTimeout(v7.coverRecheck), v7.coverRecheck = X5.delay(() => F("#index").querySelectorAll("img.cover").forEach((e) => {
e.complete && Es(e);
}), 200);
}, { passive: !0 });
}
-function x7() {
+function S7() {
return {
selectMode: ac,
selectSurface: cc,
@@ -93658,79 +93658,79 @@ function x7() {
followLastSelectedId: sc
};
}
-function xit() {
- return dit({
+function bit() {
+ return uit({
selected: rc,
followSelected: ic
}, location.pathname, location.search, H.state);
}
//#endregion
//#region src/application/index.js
-var S7 = {
+var C7 = {
peopleIndexLayout: void 0,
personAvatar: void 0
};
-function Sit() {
+function xit() {
return Z.appSettings.followLayout === "table" ? "table" : "default";
}
-function Cit() {
- return drt(location.search);
+function Sit() {
+ return urt(location.search);
+}
+function Cit(e) {
+ return drt(e);
}
function wit(e) {
- return frt(e);
+ Q.route(Cit(e));
}
-function Tit(e) {
- Q.route(wit(e));
+function w7(e = "") {
+ return frt(location.search, e);
}
-function C7(e = "") {
- return prt(location.search, e);
+function Tit(e) {
+ return srt(e);
}
function Eit(e) {
- return crt(e);
+ return art(e);
}
-function Dit(e) {
- return ort(e);
+function T7() {
+ F("#stats").hidden = !0, F("#index").hidden = !1, s9(), X.hideCatalogCombo(), F("#count").textContent = "", F("#loadSentinel").hidden = !0;
}
-function w7() {
- F("#stats").hidden = !0, F("#index").hidden = !1, o9(), X.hideCatalogCombo(), F("#count").textContent = "", F("#loadSentinel").hidden = !0;
-}
-function Oit(e, t) {
+function Dit(e, t) {
kc({ state: {
...H,
state: "",
tag: e.join(","),
tag_match: t
- } }), y7(!1, !1), Q.route(Y7()), M7(), E9(), n9();
+ } }), b7(!1, !1), Q.route(X7()), N7(), D9(), r9();
}
-function kit(e) {
- S7.controller.openFollowAuthor(e);
+function Oit(e) {
+ C7.controller.openFollowAuthor(e);
}
-function Ait(e) {
- S7.controller.openFollowTag(e);
+function kit(e) {
+ C7.controller.openFollowTag(e);
}
-function jit() {
+function Ait() {
$.FOLLOW_MANAGE_TABS = [
"list",
"add",
"feeds"
- ], Y5.listen(document, "click", (e) => {
- e.target.closest?.("[data-empty-settings]") ? sit("媒体库与入库") : !e.target.closest?.("a[href=\"/follow-manage?tab=add\"]") || e.defaultPrevented || e.button || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), Q.navigatePath(C7("add")));
- }), S7.peopleIndexLayout = () => Met(Z.appSettings.peopleLayout), S7.personAvatar = srt;
+ ], X5.listen(document, "click", (e) => {
+ e.target.closest?.("[data-empty-settings]") ? oit("媒体库与入库") : !e.target.closest?.("a[href=\"/follow-manage?tab=add\"]") || e.defaultPrevented || e.button || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), Q.navigatePath(w7("add")));
+ }), C7.peopleIndexLayout = () => jet(Z.appSettings.peopleLayout), C7.personAvatar = ort;
}
-function Mit() {
- S7.controller = lrt({
+function jit() {
+ C7.controller = crt({
route: Q.route,
- followView: M9,
- adoptFollowView: N9,
+ followView: N9,
+ adoptFollowView: P9,
hideIndex: () => {
F("#index").hidden = !0;
},
- openPage: A9
+ openPage: j9
});
}
//#endregion
//#region src/application/loading.js
-var T7 = {
+var E7 = {
setGridCards: void 0,
gridCards: void 0,
managementPlaceholder: void 0,
@@ -93739,53 +93739,53 @@ var T7 = {
ENTITY_SHAPES_WAIT: void 0,
syncPageTitle: void 0
};
-function E7(e = "正在读取作品") {
+function D7(e = "正在读取作品") {
let t = F("#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 = cEe(Hz(location.search)), yo(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", H && t9({
+ 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 = lEe(Vz(location.search)), yo(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", H && n9({
count: null,
- ...Cat()
- })), F("#loadSentinel").hidden = !0, c9()) return;
- let r = F("#grid"), i = d9(e), a = r.querySelector(".catalog-skeleton");
- (a?.dataset.skeleton !== NH(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== Fat()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : T7.setGridCards(i), yo(F("#grid")));
+ ...Sat()
+ })), F("#loadSentinel").hidden = !0, l9()) return;
+ let r = F("#grid"), i = f9(e), a = r.querySelector(".catalog-skeleton");
+ (a?.dataset.skeleton !== MH(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== Pat()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : E7.setGridCards(i), yo(F("#grid")));
}
-function D7() {
- F("#catalogFilter").style.display = "none", e9();
+function O7() {
+ F("#catalogFilter").style.display = "none", t9();
}
-function Nit() {
+function Mit() {
let e = new Promise((e) => {
- let t = T7.ENTITY_SHAPES_WAIT, n = performance.now(), r = () => {
+ let t = E7.ENTITY_SHAPES_WAIT, n = performance.now(), r = () => {
let i = performance.now();
- t -= Math.min(i - n, 50), n = i, t > 0 ? Y5.delay(r, Math.min(t, 50)) : e();
+ t -= Math.min(i - n, 50), n = i, t > 0 ? X5.delay(r, Math.min(t, 50)) : e();
};
- Y5.delay(r, 50);
+ X5.delay(r, 50);
});
- return Promise.race([T7.entityShapesReady ||= r7(), e]);
+ return Promise.race([E7.entityShapesReady ||= i7(), e]);
}
-function Pit() {
+function Nit() {
let e = decodeURIComponent(location.pathname);
- if (document.body.dataset.surface = location.pathname, /^\/(item\/\d+|(?:mix|parts|editions|playlists)\/\d+\/\d+)$/.test(e)) D7();
- else if (e.startsWith("/follow/item/") || e.startsWith("/jav/movie/")) D7();
- else if (e === "/junk-files") E7("正在读取垃圾文件");
- else if (e === "/jav" && Zz(new URLSearchParams(location.search).get("tab")) === "library") E7("正在读取馆藏");
+ if (document.body.dataset.surface = location.pathname, /^\/(item\/\d+|(?:mix|parts|editions|playlists)\/\d+\/\d+)$/.test(e)) O7();
+ else if (e.startsWith("/follow/item/") || e.startsWith("/jav/movie/")) O7();
+ else if (e === "/junk-files") D7("正在读取垃圾文件");
+ else if (e === "/jav" && Xz(new URLSearchParams(location.search).get("tab")) === "library") D7("正在读取馆藏");
else if (Q.managedPagePath(e)) {
- D7();
+ O7();
let t = F("#stats");
- t.hidden = !1, o9(), t.innerHTML = e.startsWith("/follow") && e !== "/follow-manage" ? $.followSkeletonHtml("正在读取关注内容") : T7.managementPlaceholder(e), yo(t);
- } else if (/^\/(performers|creators|studios|agencies|tags)$/.test(e)) D7(), w7(), Let(F("#index"), Net(e.slice(1), location.search), S7.peopleIndexLayout());
+ t.hidden = !1, s9(), t.innerHTML = e.startsWith("/follow") && e !== "/follow-manage" ? $.followSkeletonHtml("正在读取关注内容") : E7.managementPlaceholder(e), yo(t);
+ } else if (/^\/(performers|creators|studios|agencies|tags)$/.test(e)) O7(), T7(), Iet(F("#index"), Met(e.slice(1), location.search), C7.peopleIndexLayout());
else if (/^\/(?:performers|creators|studios|agencies)\//.test(e)) {
- D7(), F("#index").hidden = !1, o9();
+ O7(), F("#index").hidden = !1, s9();
let t = Et[e.split("/")[1]], n = e.split("/").slice(2).join("/");
- Nit().then(() => {
- F("#index").firstElementChild || decodeURIComponent(location.pathname) !== e || (Xrt(t, n), yo(F("#index")));
+ Mit().then(() => {
+ F("#index").firstElementChild || decodeURIComponent(location.pathname) !== e || (Yrt(t, n), yo(F("#index")));
});
- } else Q.routeMeta(e) ? E7() : (o9(), F("#count").textContent = "", F("#loadSentinel").hidden = !0);
+ } else Q.routeMeta(e) ? D7() : (s9(), F("#count").textContent = "", F("#loadSentinel").hidden = !0);
}
-function Fit() {
- $.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => jH(t, {
+function Pit() {
+ $.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => AH(t, {
cards: !0,
className: "follow-content-skeleton postercard-skeleton",
gridClass: e === "images" ? "followlist followphotowall" : "",
- gridSize: bT()
+ gridSize: xT()
}), $.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>
@@ -93793,39 +93793,39 @@ function Fit() {
<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>`, F("#loadSentinel").innerHTML = Xa("继续载入中…"), T7.setGridCards = (e) => co(F("#grid"), () => {
+ ${$.followContentSkeletonHtml(void 0, e)}</div></div>`, F("#loadSentinel").innerHTML = Xa("继续载入中…"), E7.setGridCards = (e) => co(F("#grid"), () => {
F("#grid").innerHTML = `<div class="grid">${e}</div>`;
- }), T7.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) [data-media-grid] > [data-media-card][data-id]"), T7.managementPlaceholder = (e) => MH(e, {
- followLayout: Sit(),
+ }), E7.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) [data-media-grid] > [data-media-card][data-id]"), E7.managementPlaceholder = (e) => jH(e, {
+ followLayout: xit(),
...(({ sort: e, dir: t, tab: n }) => ({
followSort: e,
followDir: t,
followTab: n
- }))(Cit())
- }), T7.wantsDiscoveryBars = () => F("#catalogFilter").style.display !== "none", T7.entityShapesReady = null, T7.ENTITY_SHAPES_WAIT = 400, T7.syncPageTitle = (e) => {
- let t = new URL(e, location.origin), n = bL(decodeURIComponent(t.pathname))?.title;
- document.title = n ? `${n} · Peach` : "Peach · 蜜桃", document.body.dataset.surface = t.pathname, fot();
+ }))(Sit())
+ }), E7.wantsDiscoveryBars = () => F("#catalogFilter").style.display !== "none", E7.entityShapesReady = null, E7.ENTITY_SHAPES_WAIT = 400, E7.syncPageTitle = (e) => {
+ let t = new URL(e, location.origin), n = yL(decodeURIComponent(t.pathname))?.title;
+ document.title = n ? `${n} · Peach` : "Peach · 蜜桃", document.body.dataset.surface = t.pathname, dot();
};
}
//#endregion
//#region src/sidebar-skeleton.ts
-var O7 = (e) => e.replace(/[&<>"']/g, (e) => ({
+var k7 = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
})[e]);
-function Iit(e, t, n) {
+function Fit(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.png\" alt=\"\">" : `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${O7(r)}"/></svg>`;
- return `<button type="button" data-nav="${O7(e)}" aria-pressed="${n(e)}" aria-label="${O7(t)}">${i}<span>${O7(t)}</span></button>`;
+ let i = e === "" ? "<img data-sidebar-home-logo=\"\" src=\"/peach-logo.png\" alt=\"\">" : `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${k7(r)}"/></svg>`;
+ return `<button type="button" data-nav="${k7(e)}" aria-pressed="${n(e)}" aria-label="${k7(t)}">${i}<span>${k7(t)}</span></button>`;
}).join("")}</div>`;
}
//#endregion
//#region src/application/filter-scroll.js
-function Lit(e, t, n, r = !1) {
+function Iit(e, t, n, r = !1) {
if (t = Math.max(0, t), !e || !n || r || t <= 8) return {
y: t,
origin: t,
@@ -93844,7 +93844,7 @@ function Lit(e, t, n, r = !1) {
}
//#endregion
//#region src/application/layout.js
-var k7 = {
+var A7 = {
sidebarProps: void 0,
sidebarSurface: void 0,
sidebarCatalog: void 0,
@@ -93866,20 +93866,20 @@ var k7 = {
mobileFilterHost: void 0,
mobileFilterPath: void 0
};
-function A7({ manage: e = !0, placeholder: t = "" } = {}) {
- F("#stats").hidden = !1, F("#index").hidden = !0, o9(), F("#count").textContent = "", F("#loadSentinel").hidden = !0, e ? I7() : (L7(""), E9()), t && PH(F("#stats"), t);
-}
-function j7() {
- X.hideCatalogCombo(), D7(), document.body.classList.remove("entity-open", "index-open");
+function j7({ manage: e = !0, placeholder: t = "" } = {}) {
+ F("#stats").hidden = !1, F("#index").hidden = !0, s9(), F("#count").textContent = "", F("#loadSentinel").hidden = !0, e ? L7() : (R7(""), D9()), t && NH(F("#stats"), t);
}
function M7() {
- document.body.classList.remove("entity-open", "index-open"), PL(F("#index")), F("#stats").hidden = !0, F("#index").hidden = !0, i7(location.pathname) || (F("#feedNew").hidden = !0), F("#catalogFilter").style.display = "", e9(), I7(), R7();
+ X.hideCatalogCombo(), O7(), document.body.classList.remove("entity-open", "index-open");
+}
+function N7() {
+ document.body.classList.remove("entity-open", "index-open"), NL(F("#index")), F("#stats").hidden = !0, F("#index").hidden = !0, a7(location.pathname) || (F("#feedNew").hidden = !0), F("#catalogFilter").style.display = "", t9(), L7(), z7();
}
-function Rit() {
- Q.route("/"), M7();
+function Lit() {
+ Q.route("/"), N7();
}
-function zit({ tags: e = [], providers: t = [], duration: n = !1 }) {
- T9({
+function Rit({ tags: e = [], providers: t = [], duration: n = !1 }) {
+ E9({
content: e.length || t.length || n ? {
kind: "follow",
tags: e.map(([e, t]) => ({
@@ -93902,54 +93902,54 @@ function zit({ tags: e = [], providers: t = [], duration: n = !1 }) {
filters: $.followSidebarFilters()
});
}
-function Bit(e) {
- Cot({
- ...M9(),
+function zit(e) {
+ Sot({
+ ...N9(),
...e
- }), T9({ filters: $.followSidebarFilters() });
+ }), E9({ filters: $.followSidebarFilters() });
}
-function N7() {
+function P7() {
return matchMedia("(max-width:760px)").matches;
}
-function P7(e) {
+function F7(e) {
let t = F("#drawer"), n = !e && t.contains(document.activeElement);
- t.inert = !e && N7(), t.classList.toggle("open", e), F("#scrim").classList.toggle("on", e), document.body.classList.toggle("drawer-open", !!e), document.dispatchEvent(new Event("board:sidebar")), F("#filterBtn").setAttribute("aria-expanded", String(!!e)), F("#filterBtn").setAttribute("aria-controls", "drawer"), F("#filterBtn").setAttribute("aria-label", e ? "收起侧栏" : "展开侧栏"), n && F("#filterBtn").focus(), sessionStorage.setItem("board.sidebar", e ? "open" : "closed");
+ t.inert = !e && P7(), t.classList.toggle("open", e), F("#scrim").classList.toggle("on", e), document.body.classList.toggle("drawer-open", !!e), document.dispatchEvent(new Event("board:sidebar")), F("#filterBtn").setAttribute("aria-expanded", String(!!e)), F("#filterBtn").setAttribute("aria-controls", "drawer"), F("#filterBtn").setAttribute("aria-label", e ? "收起侧栏" : "展开侧栏"), n && F("#filterBtn").focus(), sessionStorage.setItem("board.sidebar", e ? "open" : "closed");
}
-function Vit() {
- N7() && P7(!1);
+function Bit() {
+ P7() && F7(!1);
}
-function Hit() {
+function Vit() {
vc === null && (kc({ runtimeConfigurable: !1 }), vt("/healthz").then((e) => {
- kc({ runtimeConfigurable: !!e.configurable }), vc && F7() && I7();
+ kc({ runtimeConfigurable: !!e.configurable }), vc && I7() && L7();
}).catch(() => {}));
}
-function Uit(e = "") {
- return Ont(k7.settingsHost()).then((t) => (t.open(e), t));
+function Hit(e = "") {
+ return Dnt(A7.settingsHost()).then((t) => (t.open(e), t));
}
-function Wit() {
+function Uit() {
return {
scroll: F("#drawerScroll"),
store: Z.settingsStore,
- navCatalog: k7.NAV_CATALOG,
- navOn: G7,
- navTo: eat,
- toggleChip: (e, t, n) => $7((r) => {
+ navCatalog: A7.NAV_CATALOG,
+ navOn: K7,
+ navTo: $it,
+ toggleChip: (e, t, n) => e9((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) => $7((n) => {
+ setDuration: (e, t) => e9((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]), P7(!1), A9(j9());
+ $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followFilter = "saved", $.followDurMin = $.followDurMax = 0, $.followTags = /* @__PURE__ */ new Set([e]), F7(!1), j9(M9());
},
selectFollowTag: (e) => {
- $.followTags = /* @__PURE__ */ new Set([e]), P7(!1), A9(j9());
+ $.followTags = /* @__PURE__ */ new Set([e]), F7(!1), j9(M9());
},
- selectFollowProvider: (e) => Bit({ provider: $.followProviders.has(e) ? "" : e }),
- setFollowDuration: (e, t) => Bit({
+ selectFollowProvider: (e) => zit({ provider: $.followProviders.has(e) ? "" : e }),
+ setFollowDuration: (e, t) => zit({
durMin: e ? e * 60 : 0,
durMax: t < 180 ? t * 60 : 0
}),
@@ -93958,137 +93958,137 @@ function Wit() {
}
};
}
-function Git() {
+function Wit() {
let e = F("#drawerScroll");
- e.innerHTML = Iit(Z.appSettings.sidebarOrder, k7.NAV_CATALOG, G7), Y5.listen(e, "click", (e) => {
- if (U5()) return;
+ e.innerHTML = Fit(Z.appSettings.sidebarOrder, A7.NAV_CATALOG, K7), X5.listen(e, "click", (e) => {
+ if (W5()) return;
let t = e.target.closest?.("[data-nav]");
- t && eat(t.dataset.nav);
- }), Ant(Wit()).then((e) => e.render(k7.sidebarProps)).catch(() => {});
+ t && $it(t.dataset.nav);
+ }), knt(Uit()).then((e) => e.render(A7.sidebarProps)).catch(() => {});
}
-async function Kit() {
- let e = Y5, t = null;
+async function Git() {
+ let e = X5, t = null;
try {
t = await vt("/api/settings", { signal: e.signal });
} catch {
return;
}
- e.isActive && oT(t, (e) => Z.settingsEffects[e]?.());
+ e.isActive && sT(t, (e) => Z.settingsEffects[e]?.());
}
-function F7() {
+function I7() {
return Q.routeMeta(decodeURIComponent(location.pathname))?.route.section || (H.state === "ads" ? "cleanup" : "");
}
-function I7() {
- let e = F7();
- Hit(), e && D7(), F("#count").classList.toggle("no-tagbar", !!e), E9(), e !== "trash" && (_7.trashCount = null), L7(e);
+function L7() {
+ let e = I7();
+ Vit(), e && O7(), F("#count").classList.toggle("no-tagbar", !!e), D9(), e !== "trash" && (v7.trashCount = null), R7(e);
}
-function qit(e) {
+function Kit(e) {
return {
section: e,
path: decodeURIComponent(location.pathname),
- sections: k7.MANAGE_SECTIONS,
- menu: e ? k7.manageMenuSections() : [],
- trash: _7.trashCount
+ sections: A7.MANAGE_SECTIONS,
+ menu: e ? A7.manageMenuSections() : [],
+ trash: v7.trashCount
};
}
-function L7(e = F7()) {
- R7();
- let t = qit(e), n = Mnt();
+function R7(e = I7()) {
+ z7();
+ let t = Kit(e), n = jnt();
if (n) n.render(t);
else {
let e = vue(t);
- e !== k7.manageHeaderSkeleton && (k7.manageHeaderSkeleton = e, k7.manageHeaderRoot().innerHTML = e);
+ e !== A7.manageHeaderSkeleton && (A7.manageHeaderSkeleton = e, A7.manageHeaderRoot().innerHTML = e);
}
let r = YD(t)?.title || "";
- r !== k7.lastManagePageLabel && (k7.lastManagePageLabel = r, r && so(k7.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));
+ r !== A7.lastManagePageLabel && (A7.lastManagePageLabel = r, r && so(A7.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));
}
-function Jit() {
- let e = k7.manageHeaderRoot();
- Y5.listen(e, "click", (e) => {
- if (Mnt()) return;
+function qit() {
+ let e = A7.manageHeaderRoot();
+ X5.listen(e, "click", (e) => {
+ if (jnt()) return;
let t = e.target.closest?.("[data-manage]");
- if (t) z7(t.dataset.manage);
+ if (t) B7(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]") && kat();
- }), jnt({
+ } else e.target.closest?.("[data-empty-trash]") && Oat();
+ }), Ant({
root: e,
- openManage: z7,
+ openManage: B7,
openDataCleanup: () => Q.navigatePath("/data-cleanup"),
- emptyTrash: kat
- }).then(() => L7()).catch(() => {});
+ emptyTrash: Oat
+ }).then(() => R7()).catch(() => {});
}
-function R7() {
+function z7() {
let e = F("#listTitle");
if (!e) return;
- let t = decodeURIComponent(location.pathname), n = !F7() && wt(t) && Ct[H.state] || "";
- e.hidden = !n, n && (e.textContent = n), F("#catalogPageHeading").hidden = !!F7() || !wt(t) || !!n || H.jav === "1";
+ let t = decodeURIComponent(location.pathname), n = !I7() && wt(t) && Ct[H.state] || "";
+ e.hidden = !n, n && (e.textContent = n), F("#catalogPageHeading").hidden = !!I7() || !wt(t) || !!n || H.jav === "1";
}
-function z7(e = "stats") {
+function B7(e = "stats") {
let t = Q.routePathOf("section", e);
- t ? Q.openRoutePath(t) : (H.orient = "", H.state = "ads", Ac(), Q.route(Uz()), M7(), E9(), n9());
+ t ? Q.openRoutePath(t) : (H.orient = "", H.state = "ads", Ac(), Q.route(Hz()), N7(), D9(), r9());
}
-function B7() {
+function V7() {
let e = decodeURIComponent(location.pathname);
return e === "/" ? H.jav === "1" : e.startsWith("/performers/") || e.startsWith("/studios/") ? H.jav === "1" || Sc : !1;
}
-function Yit(e = B7()) {
- let t = Aw.filter(([e]) => e !== "seed");
- return e ? [jw, ...t] : t;
+function Jit(e = V7()) {
+ let t = jw.filter(([e]) => e !== "seed");
+ return e ? [Mw, ...t] : t;
}
-function V7() {
+function H7() {
return decodeURIComponent(location.pathname) === "/" && H.jav !== "1";
}
-function H7() {
- return _T(V7());
+function U7() {
+ return vT(H7());
}
-function Xit(e) {
- Yse(e), U7(), F("#grid").hidden || f9();
+function Yit(e) {
+ Jse(e), W7(), F("#grid").hidden || p9();
}
-function Zit(e) {
- TT(e), U7(), f9();
+function Xit(e) {
+ ET(e), W7(), p9();
}
-function U7() {
+function W7() {
document.querySelectorAll("[data-video-layout]").forEach((e) => {
- e.checked = e.value === H7();
- }), X.catalogFilterProps && t9({ layout: Sat() });
+ e.checked = e.value === U7();
+ }), X.catalogFilterProps && n9({ layout: xat() });
}
-function Qit(e) {
- Xse(e), U7(), f9();
+function Zit(e) {
+ Yse(e), W7(), p9();
}
-async function W7() {
- $5(), X.mixRelatedCache.clear(), await Promise.all([$it(), n9()]);
+async function G7() {
+ e7(), X.mixRelatedCache.clear(), await Promise.all([Qit(), r9()]);
}
-async function $it() {
- if (o7.entityPageCurrent() && !F("#index").hidden) {
- c7({ revision: ++o7.entityPageRevision });
+async function Qit() {
+ if (s7.entityPageCurrent() && !F("#index").hidden) {
+ l7({ revision: ++s7.entityPageRevision });
return;
}
let e = decodeURIComponent(location.pathname);
- if (bL(e)?.reload === "reopen" || e === "/follow") {
+ if (yL(e)?.reload === "reopen" || e === "/follow") {
kc({ pageOpens: bc + 1 });
return;
}
let t = Q.routeMeta(e);
- t?.route.reload ? await t.route.reload() : await a9();
+ t?.route.reload ? await t.route.reload() : await o9();
}
-function G7(e) {
- let t = decodeURIComponent(location.pathname), n = Q.routeMeta(t)?.route.nav || "", r = k7.DIRECT_MANAGE_NAV[e];
- if (r) return F7() === r;
+function K7(e) {
+ let t = decodeURIComponent(location.pathname), n = Q.routeMeta(t)?.route.nav || "", r = A7.DIRECT_MANAGE_NAV[e];
+ if (r) return I7() === r;
if (e === "manage") {
- let e = F7();
- return !!e && !Z.appSettings.sidebarOrder.some((t) => k7.DIRECT_MANAGE_NAV[t] === e);
+ let e = I7();
+ return !!e && !Z.appSettings.sidebarOrder.some((t) => A7.DIRECT_MANAGE_NAV[t] === e);
}
- return e === "jav" ? t === "/jav" || B7() : e === "shorts" ? H.orient === "竖屏" : e === "" ? t === "/" && !F7() && !H.state && !B7() && H.orient !== "竖屏" : xt[e] ? n === e && H.orient !== "竖屏" : n ? n === e : t === "/" && H.state === e && H.orient !== "竖屏";
+ return e === "jav" ? t === "/jav" || V7() : e === "shorts" ? H.orient === "竖屏" : e === "" ? t === "/" && !I7() && !H.state && !V7() && H.orient !== "竖屏" : xt[e] ? n === e && H.orient !== "竖屏" : n ? n === e : t === "/" && H.state === e && H.orient !== "竖屏";
}
-function eat(e) {
- if (Vit(), k7.DIRECT_MANAGE_NAV[e]) {
- z7(k7.DIRECT_MANAGE_NAV[e]);
+function $it(e) {
+ if (Bit(), A7.DIRECT_MANAGE_NAV[e]) {
+ B7(A7.DIRECT_MANAGE_NAV[e]);
return;
}
if (e === "manage") {
- z7();
+ B7();
return;
}
if (e === "jav") {
@@ -94096,25 +94096,25 @@ function eat(e) {
return;
}
if (e === "") {
- X7();
+ Z7();
return;
}
let t = xt[e] ? null : Q.routePathOf("nav", e);
- t ? Q.openRoutePath(t) : (e === "shorts" ? (H.orient = "竖屏", H.state = "") : (H.orient = "", H.state = e), Ac(), Q.route(Y7()), M7(), E9(), n9());
+ t ? Q.openRoutePath(t) : (e === "shorts" ? (H.orient = "竖屏", H.state = "") : (H.orient = "", H.state = e), Ac(), Q.route(X7()), N7(), D9(), r9());
}
-function K7() {
+function q7() {
let e = decodeURIComponent(location.pathname), t = e.split("/").filter(Boolean);
- ac && cc !== _7.currentSelectSurface() && y7(!1, !0);
+ ac && cc !== v7.currentSelectSurface() && b7(!1, !0);
let n = t.length > 1 && Object.prototype.hasOwnProperty.call(Et, t[0]), r = wt(e) || e === "/trash", i = r || n || e === "/tags" || e === "/follow", a = r || n || e === "/follow";
- F("#selectMode").hidden = !i, F("#density").hidden = !a, f7(), !i && ac && y7(!1, !0);
+ F("#selectMode").hidden = !i, F("#density").hidden = !a, p7(), !i && ac && b7(!1, !0);
}
-function tat() {
+function eat() {
let e = [...document.querySelectorAll("[data-filter-frame]")], t = e.find((e) => e.offsetParent !== null);
- (t !== k7.mobileFilterHost || location.pathname !== k7.mobileFilterPath) && (k7.mobileFilterScroll = null), k7.mobileFilterHost = t, k7.mobileFilterPath = location.pathname;
+ (t !== A7.mobileFilterHost || location.pathname !== A7.mobileFilterPath) && (A7.mobileFilterScroll = null), A7.mobileFilterHost = t, A7.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\"]");
- k7.mobileFilterScroll = Lit(k7.mobileFilterScroll, n, innerWidth <= 760, r);
+ A7.mobileFilterScroll = Iit(A7.mobileFilterScroll, n, innerWidth <= 760, r);
for (let n of e) {
- let e = n === t && k7.mobileFilterScroll.free;
+ let e = n === t && A7.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);
@@ -94126,63 +94126,63 @@ function tat() {
});
}
}
-function nat() {
- tat(), [".board-filter-frame", "#count"].forEach((e) => {
+function tat() {
+ eat(), [".board-filter-frame", "#count"].forEach((e) => {
let t = F(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 q7() {
- k7.stickyFrame ||= Y5.frame(() => {
- k7.stickyFrame = 0, nat();
+function J7() {
+ A7.stickyFrame ||= X5.frame(() => {
+ A7.stickyFrame = 0, tat();
});
}
-function rat() {
+function nat() {
$.followSidebarFilters = () => ({
provider: [...$.followProviders][0] || "",
dur_min: $.followDurMin || "",
dur_max: $.followDurMax || ""
- }), Y5.handler(F("#filterBtn"), "onclick", () => P7(!F("#drawer").classList.contains("open"))), k7.SIDEBAR_ITEMS = ert, k7.MANAGE_SECTIONS = e7, k7.MANAGE_MENU_SECTIONS = trt, k7.manageMenuSections = () => nrt(vc === !0), k7.OPTIONAL_SIDEBAR_ITEMS = rrt, k7.NAV_CATALOG = irt, k7.DIRECT_MANAGE_NAV = art, k7.settingsHost = () => ({
+ }), X5.handler(F("#filterBtn"), "onclick", () => F7(!F("#drawer").classList.contains("open"))), A7.SIDEBAR_ITEMS = $nt, A7.MANAGE_SECTIONS = t7, A7.MANAGE_MENU_SECTIONS = ert, A7.manageMenuSections = () => trt(vc === !0), A7.OPTIONAL_SIDEBAR_ITEMS = nrt, A7.NAV_CATALOG = rrt, A7.DIRECT_MANAGE_NAV = irt, A7.settingsHost = () => ({
store: Z.settingsStore,
changed: (e) => Z.settingsEffects[e]?.(),
sound: (e) => Ea(e),
- navCatalog: k7.NAV_CATALOG,
- themeOptions: Wse,
- videoLayouts: dT,
- followInitialRanges: bV,
- videoLayout: () => H7(),
- setVideoLayout: Qit,
- censored: h9,
- setCensored: qat,
+ navCatalog: A7.NAV_CATALOG,
+ themeOptions: Use,
+ videoLayouts: fT,
+ followInitialRanges: yV,
+ videoLayout: () => U7(),
+ setVideoLayout: Zit,
+ censored: g9,
+ setCensored: Kat,
highContrast: () => document.documentElement.classList.contains("board-high-contrast"),
- setHighContrast: Jat,
- receipt: (e) => X5.actionReceipt(e),
- failure: X5.actionFailure,
- syncRemote: (e) => oT(e, (e) => Z.settingsEffects[e]?.()),
+ setHighContrast: qat,
+ receipt: (e) => Z5.actionReceipt(e),
+ failure: Z5.actionFailure,
+ syncRemote: (e) => sT(e, (e) => Z.settingsEffects[e]?.()),
openConfiguration: () => Q.navigatePath("/configuration"),
attached: () => Z.syncGlassOptics(),
configurable: () => vt("/healthz").then((e) => (kc({ runtimeConfigurable: !!e.configurable }), vc)).catch(() => null)
- }), Y5.handler(F("#settingsBtn"), "onclick", () => void Uit()), k7.lastManagePageLabel = "", k7.manageHeaderSkeleton = "", k7.manageHeaderRoot = () => F("[data-manage-header]"), window.__scrolling = !1, k7.scrollT = null, k7.stickyFrame = 0, k7.mobileFilterScroll = null, k7.mobileFilterHost = null, k7.mobileFilterPath = "", Y5.listen(document, "focusin", q7), Y5.listen(document, "focusout", q7), Y5.listen(window, "scroll", () => {
- q7(), location.pathname === "/follow" && P9() && kc({ followScrollY: scrollY }), window.__scrolling = !0, Hs(), clearTimeout(k7.scrollT), k7.scrollT = Y5.delay(() => {
+ }), X5.handler(F("#settingsBtn"), "onclick", () => void Hit()), A7.lastManagePageLabel = "", A7.manageHeaderSkeleton = "", A7.manageHeaderRoot = () => F("[data-manage-header]"), window.__scrolling = !1, A7.scrollT = null, A7.stickyFrame = 0, A7.mobileFilterScroll = null, A7.mobileFilterHost = null, A7.mobileFilterPath = "", X5.listen(document, "focusin", J7), X5.listen(document, "focusout", J7), X5.listen(window, "scroll", () => {
+ J7(), location.pathname === "/follow" && F9() && kc({ followScrollY: scrollY }), window.__scrolling = !0, Hs(), clearTimeout(A7.scrollT), A7.scrollT = X5.delay(() => {
window.__scrolling = !1;
}, 180);
- }, { passive: !0 }), Y5.listen(window, "resize", q7, { passive: !0 }), Y5.handler(F("#scrim"), "onclick", () => P7(!1));
+ }, { passive: !0 }), X5.listen(window, "resize", J7, { passive: !0 }), X5.handler(F("#scrim"), "onclick", () => F7(!1));
}
//#endregion
//#region src/catalog-filter-skeleton.ts
-var iat = 64, J7 = (e) => e.replace(/[&<>"]/g, (e) => ({
+var rat = 64, Y7 = (e) => e.replace(/[&<>"]/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;"
-})[e]), aat = (e) => e.repeat(iat);
-function oat(e, t) {
- let n = e.map((e) => `<a href="${J7(e.href)}" data-catalog-view="${J7(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${J7(e.label)}</a>`).join("");
- return "<div class=\"peach-react\"><div class=\"contents\" data-catalog-root=\"\" data-loading=\"\"><div data-catalog-tiers=\"\" aria-busy=\"true\"><div data-catalog-tier=\"performers\" data-skeleton=\"tiers\">" + aat("<span data-catalog-placeholder=\"performer\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div><div data-catalog-tier=\"studios\">" + aat("<span data-catalog-placeholder=\"studio\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + `</div></div><div role="group" aria-label="筛选与排序" data-filter-glass="" data-glass-pane="" data-filter-frame="" data-catalog-frame="" class="sticky top-topbar z-10 mb-5.5 flex flex-col mx-4"><div role="group" aria-label="视图与标签" data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible"><div data-catalog-scroll=""><div role="group" aria-label="视图" data-catalog-views="">${n}<span data-entity-sep="" aria-hidden="true"></span></div><div data-catalog-tags=""><span data-catalog-placeholder="tag" aria-hidden="true">` + "<span></span>".repeat(iat) + "</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-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></div></div></div></div>";
+})[e]), iat = (e) => e.repeat(rat);
+function aat(e, t) {
+ let n = e.map((e) => `<a href="${Y7(e.href)}" data-catalog-view="${Y7(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${Y7(e.label)}</a>`).join("");
+ return "<div class=\"peach-react\"><div class=\"contents\" data-catalog-root=\"\" data-loading=\"\"><div data-catalog-tiers=\"\" aria-busy=\"true\"><div data-catalog-tier=\"performers\" data-skeleton=\"tiers\">" + iat("<span data-catalog-placeholder=\"performer\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div><div data-catalog-tier=\"studios\">" + iat("<span data-catalog-placeholder=\"studio\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + `</div></div><div role="group" aria-label="筛选与排序" data-filter-glass="" data-glass-pane="" data-filter-frame="" data-catalog-frame="" class="sticky top-topbar z-10 mb-5.5 flex flex-col mx-4"><div role="group" aria-label="视图与标签" data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible"><div data-catalog-scroll=""><div role="group" aria-label="视图" data-catalog-views="">${n}<span data-entity-sep="" aria-hidden="true"></span></div><div data-catalog-tags=""><span data-catalog-placeholder="tag" aria-hidden="true">` + "<span></span>".repeat(rat) + "</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-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></div></div></div></div>";
}
//#endregion
//#region src/catalog-onboarding.ts
-var sat = [
+var oat = [
"loc",
"creator",
"performer",
@@ -94200,9 +94200,9 @@ var sat = [
"jav",
"thumb"
];
-async function cat(e, t) {
+async function sat(e, t) {
let n = new URLSearchParams();
- for (let t of sat) e[t] && n.set(t, e[t]);
+ for (let t of oat) 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 || [],
@@ -94213,7 +94213,7 @@ async function cat(e, t) {
return r.set("q", e), r.set("limit", "1"), (await t("/api/items?" + r)).total > 0 ? e : "";
}))).filter(Boolean);
}
-function lat({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
+function cat({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
let a = r ? "<button class=\"geist-button primary\" data-empty-settings>添加内容</button>" : "", o = "<a class=\"geist-button" + (!r || i ? " primary" : "") + "\" href=\"/follow-manage?tab=add\">添加关注</a>";
if (t || n) return Qa("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a>" });
if (e !== "catalog") {
@@ -94269,43 +94269,43 @@ var X = {
junkQueueHelpers: void 0,
junkQueueActions: void 0
};
-function uat() {
- X.initialParams.has("loc") || (H.loc = dat(H.loc), Ac());
+function lat() {
+ X.initialParams.has("loc") || (H.loc = uat(H.loc), Ac());
}
-function dat(e) {
- return Unt(e, Z.sourceOnline);
+function uat(e) {
+ return Hnt(e, Z.sourceOnline);
}
-function Y7(e = H) {
- return Wnt(e);
+function X7(e = H) {
+ return Unt(e);
}
-function fat() {
- kc(Knt(Gnt(H, Z.appSettings, X5.rollSeed))), $5();
+function dat() {
+ kc(Gnt(Wnt(H, Z.appSettings, Z5.rollSeed))), e7();
}
-function X7(e = null, t = !1) {
- fat(), e && (Object.assign(H, e), Ac()), Q.route(e ? Y7() : "/"), X.clearSearchField(), v9(!1), M7(), E9(), n9(), t && window.scrollTo({
+function Z7(e = null, t = !1) {
+ dat(), e && (Object.assign(H, e), Ac()), Q.route(e ? X7() : "/"), X.clearSearchField(), y9(!1), N7(), D9(), r9(), t && window.scrollTo({
top: 0,
behavior: "smooth"
});
}
-function pat(e, t = null) {
+function fat(e, t = null) {
let n = e.id;
- !e.medium || e.medium === "video" ? b9(n, !0, null, t) : e.medium === "image" && e.location !== "online" ? window.open("/photo?id=" + n, "_blank", "noopener") : b7(n);
+ !e.medium || e.medium === "video" ? x9(n, !0, null, t) : e.medium === "image" && e.location !== "online" ? window.open("/photo?id=" + n, "_blank", "noopener") : x7(n);
}
-function mat(e) {
+function pat(e) {
return X.mixRelatedCache.has(e) || X.mixRelatedCache.set(e, vt("/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 hat(e, t) {
- F5()?.miniplayerTakesCard(e) ? F5().miniplayerPlay(e.id) : e.edition_group ? rot(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? iot(e.part_group.seed_id, e.id, !0, t) : b9(e.id, !0, null, t);
+function mat(e, t) {
+ I5()?.miniplayerTakesCard(e) ? I5().miniplayerPlay(e.id) : e.edition_group ? not(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? rot(e.part_group.seed_id, e.id, !0, t) : x9(e.id, !0, null, t);
}
-async function gat(e, t) {
+async function hat(e, t) {
try {
let n = await vt("/api/watch-later", {
method: "POST",
body: JSON.stringify({ id: e.id })
});
- e.watch_later = n.watch_later, t(!!n.watch_later), X5.actionReceipt(n.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
+ e.watch_later = n.watch_later, t(!!n.watch_later), Z5.actionReceipt(n.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
let n = await vt("/api/watch-later", {
method: "POST",
body: JSON.stringify({ id: e.id })
@@ -94313,10 +94313,10 @@ async function gat(e, t) {
e.watch_later = n.watch_later, t(!!n.watch_later);
} });
} catch (e) {
- X5.actionFailure("更新稍后看", e);
+ Z5.actionFailure("更新稍后看", e);
}
}
-async function _at(e, t) {
+async function gat(e, t) {
try {
await vt("/api/batch", {
method: "POST",
@@ -94324,25 +94324,25 @@ async function _at(e, t) {
ids: [e.id],
operation: t
})
- }), await a9();
+ }), await o9();
let n = t === "restore" ? "dispose" : "restore";
- X5.actionReceipt(t === "restore" ? "已还原" : "已移入回收站", { undo: async () => {
+ Z5.actionReceipt(t === "restore" ? "已还原" : "已移入回收站", { undo: async () => {
await vt("/api/batch", {
method: "POST",
body: JSON.stringify({
ids: [e.id],
operation: n
})
- }), await a9();
+ }), await o9();
} });
} catch (e) {
- throw X5.actionFailure("操作", e), e;
+ throw Z5.actionFailure("操作", e), e;
}
}
-async function vat(e) {
+async function _at(e) {
let t = new URLSearchParams();
- if (B7() && 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" && H.state && t.set("state", H.state), e.type !== "item") {
- let e = o7.activeFilterState();
+ if (V7() && 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" && H.state && t.set("state", H.state), e.type !== "item") {
+ let e = s7.activeFilterState();
[
"loc",
"creator",
@@ -94360,46 +94360,46 @@ async function vat(e) {
e[n] && t.set(n, e[n]);
});
}
- return Qnt(t.toString(), X.topsQueryParams(e).toString());
+ return Znt(t.toString(), X.topsQueryParams(e).toString());
}
-function yat() {
+function vat() {
if (scrollY <= 0) return;
let e = document.documentElement;
e.classList.add("refiltering");
let t = () => {
e.classList.remove("refiltering"), removeEventListener("scrollend", t);
};
- Y5.listen.bind(Y5, window)("scrollend", t), Y5.delay(t, 1200), scrollTo({
+ X5.listen.bind(X5, window)("scrollend", t), X5.delay(t, 1200), scrollTo({
top: 0,
behavior: matchMedia("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth"
});
}
-function Z7(e) {
- l7().type !== "entity" && t9({ tags: wat(e) }), T9({ filters: { ...e } }), i9();
+function Q7(e) {
+ u7().type !== "entity" && n9({ tags: Cat(e) }), E9({ filters: { ...e } }), a9();
}
-async function Q7(e) {
- let t = ++X.facetCountsSeq, [n] = await vat(e);
- t === X.facetCountsSeq && (e.type === "home" && (_9.facets = n), T9({ latest: Wat(n, e) }));
+async function $7(e) {
+ let t = ++X.facetCountsSeq, [n] = await _at(e);
+ t === X.facetCountsSeq && (e.type === "home" && (v9.facets = n), E9({ latest: Uat(n, e) }));
}
-function $7(e) {
- yat();
- let t = l7();
+function e9(e) {
+ vat();
+ let t = u7();
if (t.type === "entity") {
let n = { ...t.filters };
- e(n), u7(t.kind, t.name, n), Z7(n), Q7(l7());
+ e(n), d7(t.kind, t.name, n), Q7(n), $7(u7());
} else if (t.type === "item") {
- let t = o7.cloneBarsContext(nc);
- if (v9(!1), kc({ detailReturnBarsContext: null }), t && t.type === "entity") {
- e(t.filters), u7(t.kind, t.name, t.filters) ? n9() : kc({ pageOpens: bc + 1 });
+ let t = s7.cloneBarsContext(nc);
+ if (y9(!1), kc({ detailReturnBarsContext: null }), t && t.type === "entity") {
+ e(t.filters), d7(t.kind, t.name, t.filters) ? r9() : kc({ pageOpens: bc + 1 });
return;
}
e(H), kc({ barsContext: {
type: "home",
filters: H
- } }), Q.route(Y7()), M7(), n9();
- } else e(H), Ac(), Q.route(Y7()), Z7(H), Q7(tc);
+ } }), Q.route(X7()), N7(), r9();
+ } else e(H), Ac(), Q.route(X7()), Q7(H), $7(tc);
}
-function bat() {
+function yat() {
return {
tiers: null,
empty: !1,
@@ -94416,90 +94416,90 @@ function bat() {
combo: [],
comboHidden: !0,
comboHost: F("#combo"),
- actions: xat(),
+ actions: bat(),
helpers: {
- wireDrag: g9,
+ wireDrag: _9,
wireScroller: (e) => {
e && Ao(e);
}
}
};
}
-function e9() {
- X.catalogFilterProps && t9({});
+function t9() {
+ X.catalogFilterProps && n9({});
}
-function t9(e) {
+function n9(e) {
let t = F("#catalogFilter"), n = t.style.display === "none" || document.body.matches(".entity-open,.index-open");
e = {
...e,
offscreen: n
}, X.catalogFilterProps = {
- ...X.catalogFilterProps || bat(),
+ ...X.catalogFilterProps || yat(),
...e
- }, !X.catalogFilterMounting && (kL(t) ? NL(t, e) : (!t.firstChild && !n && (t.innerHTML = oat(X.catalogViews(), X.catalogFilterProps.state), yo(t)), X.catalogFilterMounting = ML("catalog-filter", X.catalogFilterProps, {
+ }, !X.catalogFilterMounting && (OL(t) ? ML(t, e) : (!t.firstChild && !n && (t.innerHTML = aat(X.catalogViews(), X.catalogFilterProps.state), yo(t)), X.catalogFilterMounting = jL("catalog-filter", X.catalogFilterProps, {
container: t,
isCurrent: () => !0
- }).then(() => NL(t, X.catalogFilterProps)).finally(() => {
+ }).then(() => ML(t, X.catalogFilterProps)).finally(() => {
X.catalogFilterMounting = null;
})));
}
-function xat() {
+function bat() {
return {
- openEntity: (e, t) => m7(e, t),
+ openEntity: (e, t) => h7(e, t),
setView: (e) => {
- H.state = e, Ac(), t9({ state: e }), Q.route(Y7()), n9();
+ H.state = e, Ac(), n9({ state: e }), Q.route(X7()), r9();
},
- toggleTag: (e) => r9(e),
- clearFilter: (e) => $7((t) => {
+ toggleTag: (e) => i9(e),
+ clearFilter: (e) => e9((t) => {
t[e] = "";
}),
- clearAll: () => $7((e) => {
+ clearAll: () => e9((e) => {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let t = Lw(e, H.sort, H.dir);
- t && (H.sort = t.sort, H.dir = t.dir, Ac(), m9());
+ let t = Rw(e, H.sort, H.dir);
+ t && (H.sort = t.sort, H.dir = t.dir, Ac(), h9());
},
- reshuffle: () => Gat(),
+ reshuffle: () => Wat(),
setLayout: (e) => {
- B7() ? Zit(e) : Xit(e);
+ V7() ? Xit(e) : Yit(e);
},
moreTops: async (e) => {
let t = X.catalogTopsPages;
if (!t) return [];
- let n = (await $nt(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
- return e === "performers" ? n.map(Tat) : n.map(Eat);
+ let n = (await Qnt(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
+ return e === "performers" ? n.map(wat) : n.map(Tat);
}
};
}
-function Sat() {
- return B7() ? {
+function xat() {
+ return V7() ? {
name: "jav-layout",
label: "JAV 卡片版式",
- value: gT(),
- options: dT
- } : V7() ? {
+ value: _T(),
+ options: fT
+ } : H7() ? {
name: "home-layout",
label: "首页卡片版式",
- value: H7(),
- options: dT
+ value: U7(),
+ options: fT
} : null;
}
-function Cat() {
+function Sat() {
return {
- sorts: Brt(H.sort, H.dir),
- layout: Sat(),
+ sorts: zrt(H.sort, H.dir),
+ layout: xat(),
state: H.state || "",
trash: H.state === "trash"
};
}
-function wat(e) {
+function Cat(e) {
return X.catalogTagRows.map((t) => ({
...t,
selected: X.tagPressed(e.tag, t.k)
}));
}
-function Tat(e) {
+function wat(e) {
return {
name: e.k,
ringHtml: `<span data-tier-initial>${L(qt(e.k))}</span>${Qi({
@@ -94513,85 +94513,85 @@ function Tat(e) {
})}`
};
}
-function Eat(e) {
+function Tat(e) {
return {
name: e.k,
fallback: Kt(e.k, 2),
logo: e.has_logo ? Yi(e.k, "icon", e.logo_version) : ""
};
}
-function Dat(e) {
- X.catalogFilterProps?.tiers || (X.barsRendered = "", t9({
+function Eat(e) {
+ X.catalogFilterProps?.tiers || (X.barsRendered = "", n9({
tiers: null,
state: e.state || ""
}));
}
-async function n9() {
+async function r9() {
let e = ++X.barsRequestSeq;
- if (T9(), !Qs(location.pathname) || tc.type === "item") return;
- let t = l7(), n = o7.activeFilterState(), r = JSON.stringify([
+ if (E9(), !Qs(location.pathname) || tc.type === "item") return;
+ let t = u7(), n = s7.activeFilterState(), r = JSON.stringify([
t,
n,
H.state || "",
H.seed || "",
- B7()
+ V7()
]);
- Dat(n);
- let [i, a] = await vat(t);
+ Eat(n);
+ let [i, a] = await _at(t);
if (e !== X.barsRequestSeq) return;
let o = r + "\n" + JSON.stringify([i, a]);
if (o === X.barsRendered) {
- k7.sidebarCatalog && T9({
- content: k7.sidebarCatalog,
+ A7.sidebarCatalog && E9({
+ content: A7.sidebarCatalog,
filters: { ...n }
});
return;
}
- X.barsRendered = o, t.type === "home" && (_9.facets = i);
+ X.barsRendered = o, t.type === "home" && (v9.facets = i);
let s = i.tags || [];
Ii(a.performers), Ii(a.studios);
- let c = t.type === "home" && !B7() && !H.state && !H.q && !i.locations.some((e) => e.n > 0);
+ let c = t.type === "home" && !V7() && !H.state && !H.q && !i.locations.some((e) => e.n > 0);
X.catalogTopsPages = {
context: t,
performers: 0,
studios: 0
};
- let l = X.tagList(n.tag), u = new Map(s.map((e) => [e.k, e])), d = l.map((e) => u.get(e) || { k: e }), f = s.filter((e) => !l.includes(e.k)), p = X5.seededSample(f, X.TAGS_FIRST, `tags:${H.seed || ""}`), m = new Set(p.map((e) => e.k));
+ let l = X.tagList(n.tag), u = new Map(s.map((e) => [e.k, e])), d = l.map((e) => u.get(e) || { k: e }), f = s.filter((e) => !l.includes(e.k)), p = Z5.seededSample(f, X.TAGS_FIRST, `tags:${H.seed || ""}`), m = new Set(p.map((e) => e.k));
X.catalogTagRows = d.concat(p, f.filter((e) => !m.has(e.k))).map((e) => ({
k: e.k,
label: Ks(e.k),
n: e.n ?? null
- })), t9({
+ })), n9({
tiers: {
key: String(X.barsRequestSeq),
- performers: a.performers.map(Tat),
- studios: a.studios.map(Eat)
+ performers: a.performers.map(wat),
+ studios: a.studios.map(Tat)
},
empty: c,
- tags: wat(n),
+ tags: Cat(n),
tagFirst: d.length + p.length,
views: X.catalogViews(),
state: n.state || ""
- }), i9(), k7.sidebarCatalog = {
+ }), a9(), A7.sidebarCatalog = {
kind: "catalog",
- key: String(++k7.sidebarContentSeq),
- facets: Wat(i, t)
- }, T9({
- content: k7.sidebarCatalog,
+ key: String(++A7.sidebarContentSeq),
+ facets: Uat(i, t)
+ }, E9({
+ content: A7.sidebarCatalog,
filters: { ...n },
latest: null
});
}
-function Oat(e, t) {
- _9.total = e, H.state === "trash" && (_7.trashCount = {
- total: _9.total,
+function Dat(e, t) {
+ v9.total = e, H.state === "trash" && (v7.trashCount = {
+ total: v9.total,
shown: t
- }), I7(), t9({ count: {
- total: _9.total,
+ }), L7(), n9({ count: {
+ total: v9.total,
shown: t
} });
}
-function kat() {
+function Oat() {
return is({
title: "清空回收站",
body: "回收站中的全部文件和馆藏记录将永久删除,无法恢复。",
@@ -94601,19 +94601,19 @@ function kat() {
try {
let e = await vt("/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"));
- X5.actionReceipt(`已永久删除 ${e.purged} 项`);
+ Z5.actionReceipt(`已永久删除 ${e.purged} 项`);
} finally {
- await a9();
+ await o9();
}
}
});
}
-function r9(e) {
- $7((t) => {
+function i9(e) {
+ e9((t) => {
t.tag = e ? X.withTagToggled(t.tag, e) : "";
});
}
-function Aat(e) {
+function kat(e) {
let t = [];
return e.creator && t.push({
kind: "clear",
@@ -94633,16 +94633,16 @@ function Aat(e) {
label: Ks(e)
})), t;
}
-function i9() {
- t9({
- combo: Aat(H),
+function a9() {
+ n9({
+ combo: kat(H),
comboHidden: !X.catalogOnScreen()
});
}
-async function a9() {
+async function o9() {
let e = Q.claimSurface(Q.surfacePath());
- if (Nrt(location.pathname) && !kL(F("#libraryProcessingNotice")) && ML("library-processing", {
- toast: X5.toast,
+ if (Mrt(location.pathname) && !OL(F("#libraryProcessingNotice")) && jL("library-processing", {
+ toast: Z5.toast,
mode: "notice"
}, {
container: F("#libraryProcessingNotice"),
@@ -94653,113 +94653,113 @@ async function a9() {
filters: H
},
detailReturnBarsContext: null
- }), v9(!1), H.state === "ads") return Lat(e);
- if (X.controller.page === "/junk-files" && o9(), E7(), M7(), i7(location.pathname)) {
- if (await T7.entityShapesReady, !Q.surfaceCurrent(e)) return;
- Prt();
- } else a7();
- return i9(), F("#count").classList.remove("manage-static", "junkcount"), Mat(e);
+ }), y9(!1), H.state === "ads") return Iat(e);
+ if (X.controller.page === "/junk-files" && s9(), D7(), N7(), a7(location.pathname)) {
+ if (await E7.entityShapesReady, !Q.surfaceCurrent(e)) return;
+ Nrt();
+ } else o7();
+ return a9(), F("#count").classList.remove("manage-static", "junkcount"), jat(e);
}
-function jat(e) {
+function Aat(e) {
X.controller.settle(e);
}
-function o9() {
+function s9() {
let e = F("#grid");
- Hs(e), PL(e), X.controller.clear(), e.innerHTML = "";
+ Hs(e), NL(e), X.controller.clear(), e.innerHTML = "";
}
-function Mat(e) {
- return Pat("/", Iat, e, { place: Tot });
-}
-function Nat(e) {
- return Pat("/junk-files", zat, e);
+function jat(e) {
+ return Nat("/", Fat, e, { place: wot });
}
-function s9() {
- return !!OL(F("#grid"));
+function Mat(e) {
+ return Nat("/junk-files", Rat, e);
}
function c9() {
- return X.controller.taken(s9());
+ return !!DL(F("#grid"));
+}
+function l9() {
+ return X.controller.taken(c9());
}
-function l9(e) {
- NL(F("#grid"), e);
+function u9(e) {
+ ML(F("#grid"), e);
}
-function Pat(e, t, n, r = {}) {
+function Nat(e, t, n, r = {}) {
let i = F("#grid");
- X.controller.page && X.controller.page !== e && o9();
- let a = X.controller.begin(e, s9()), o = t();
- if (!a.mount) return l9(o), a.settled;
+ X.controller.page && X.controller.page !== e && s9();
+ let a = X.controller.begin(e, c9()), o = t();
+ if (!a.mount) return u9(o), a.settled;
Hs(i);
- let s = () => PL(i);
- return a.signal.addEventListener("abort", s, { once: !0 }), ML(e, o, {
+ let s = () => NL(i);
+ return a.signal.addEventListener("abort", s, { once: !0 }), jL(e, o, {
...r,
container: i,
isCurrent: () => Q.surfaceCurrent(n) && a.isCurrent()
}).catch((e) => console.error(e)).finally(() => {
- a.signal.removeEventListener("abort", s), a.finish(s9());
+ a.signal.removeEventListener("abort", s), a.finish(c9());
}), a.settled;
}
-function u9() {
- let e = V7();
- return CT({
- active: B7() || e,
+function d9() {
+ let e = H7();
+ return wT({
+ active: V7() || e,
home: e,
portrait: H.orient === "竖屏"
});
}
-function d9(e = "正在读取作品") {
- return jH(e, {
+function f9(e = "正在读取作品") {
+ return AH(e, {
cards: !0,
className: "catalog-skeleton postercard-skeleton",
- cardRatio: Fat()
+ cardRatio: Pat()
});
}
-function Fat() {
- return H ? wT(u9()) : 16 / 9;
+function Pat() {
+ return H ? TT(d9()) : 16 / 9;
}
-function f9() {
- c9() && (Hs(F("#grid")), l9({
- layout: u9(),
+function p9() {
+ l9() && (Hs(F("#grid")), u9({
+ layout: d9(),
seekSeconds: Z.appSettings.seekSeconds
- })), o7.entityPageCurrent() && (Hs(F("#index [data-entity-hero]")), c7({
- layout: u9(),
+ })), s7.entityPageCurrent() && (Hs(F("#index [data-entity-hero]")), l7({
+ layout: d9(),
seekSeconds: Z.appSettings.seekSeconds
}));
}
-function Iat() {
+function Fat() {
let e = wt(decodeURIComponent(location.pathname)), t = H.state === "trash";
return {
mode: "catalog",
helpers: X.gridHelpers,
actions: X.gridActions,
- layout: u9(),
+ layout: d9(),
selectMode: ac,
selected: new Set(rc),
seekSeconds: Z.appSettings.seekSeconds,
revision: X.controller.revision,
- wireDrag: g9,
- settled: jat,
- skeletonHtml: () => d9(),
+ wireDrag: _9,
+ settled: Aat,
+ skeletonHtml: () => f9(),
filters: { ...H },
batchSize: Z.appSettings.batchSize,
groupCollapse: Z.appSettings.groupCollapse,
excludeVertical: e && !H.q && !H.orient || H.jav === "1",
mix: e && !t,
- shorts: e && !B7() && H.orient !== "竖屏" && !t,
+ shorts: e && !V7() && H.orient !== "竖屏" && !t,
countRow: F("#count"),
- onCount: Oat,
- onCountFailed: () => t9({ count: !1 }),
- emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : lat({
- jav: B7() && !t,
+ onCount: Dat,
+ onCountFailed: () => n9({ count: !1 }),
+ emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : cat({
+ jav: V7() && !t,
configurable: vc,
filtered: !t
}),
canLoadMore: () => F("#stats").hidden && F("#index").hidden
};
}
-function Lat(e) {
+function Iat(e) {
let t = F("#count");
- return X.controller.page === "/junk-files" && s9() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (o9(), E7("正在读取垃圾文件")), M7(), i9(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), Nat(e);
+ return X.controller.page === "/junk-files" && c9() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (s9(), D7("正在读取垃圾文件")), N7(), a9(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), Mat(e);
}
-async function Rat(e, t) {
+async function Lat(e, t) {
let n = [e.id], r = t === "dispose", i = t === "reconsider-junk";
try {
await vt("/api/batch", {
@@ -94768,24 +94768,24 @@ async function Rat(e, t) {
ids: n,
operation: t
})
- }), await a9();
+ }), await o9();
let e = r ? "restore" : i ? "dismiss-junk" : "reconsider-junk";
- X5.actionReceipt(r ? "已移入回收站" : i ? "已重新加入垃圾判断" : "已标记为不是垃圾", { undo: async () => {
+ Z5.actionReceipt(r ? "已移入回收站" : i ? "已重新加入垃圾判断" : "已标记为不是垃圾", { undo: async () => {
await vt("/api/batch", {
method: "POST",
body: JSON.stringify({
ids: n,
operation: e
})
- }), await a9();
+ }), await o9();
} });
} catch (e) {
- throw X5.actionFailure("操作", e), e;
+ throw Z5.actionFailure("操作", e), e;
}
}
-function zat() {
+function Rat() {
return {
- ...Hz(location.search),
+ ...Vz(location.search),
helpers: X.junkQueueHelpers,
actions: X.junkQueueActions,
batchSize: Z.appSettings.batchSize,
@@ -94793,16 +94793,16 @@ function zat() {
selectMode: ac,
selected: new Set(rc),
countRow: F("#count"),
- settled: jat,
- skeletonHtml: () => jH("正在读取垃圾文件", {
+ settled: Aat,
+ skeletonHtml: () => AH("正在读取垃圾文件", {
cards: !0,
className: "catalog-skeleton postercard-skeleton"
}),
canLoadMore: () => F("#stats").hidden && F("#index").hidden
};
}
-function Bat() {
- X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => Vnt(e, t, Z.appSettings, n), kc(Knt(Hnt(location, Z.appSettings, X5.rollSeed))), X.searchValueSnapshot = {
+function zat() {
+ X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => Bnt(e, t, Z.appSettings, n), kc(Gnt(Vnt(location, Z.appSettings, Z5.rollSeed))), X.searchValueSnapshot = {
text: "",
scrollLeft: 0
}, X.cancelSearchDissolve = () => {}, X.rememberSearchValue = (e = F("#q")) => {
@@ -94823,7 +94823,7 @@ function Bat() {
};
};
}
-function Vat() {
+function Bat() {
X.mixRelatedCache = /* @__PURE__ */ new Map(), X.reduceMotion = () => matchMedia("(prefers-reduced-motion:reduce)").matches, X.tagList = (e = H.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(",");
@@ -94833,32 +94833,32 @@ function Vat() {
displayName: (e, t) => tO(e, t),
tagLabel: (e) => Ks(e)
}, X.gridActions = {
- open: (e, t) => hat(e, t),
- openResource: (e, t) => F5()?.miniplayerTakesCard(e) ? F5().miniplayerPlay(e.id) : pat(e, t),
- openShort: (e) => F5()?.miniplayerTakesCard(e) ? F5().miniplayerPlay(e.id) : S9(e.id),
- openShorts: () => S9(),
- openMix: (e, t) => not(e, e, !0, t),
- openEntity: (e, t) => m7(e, t),
- openUnowned: () => X7({ owner: "none" }, !0),
+ open: (e, t) => mat(e, t),
+ openResource: (e, t) => I5()?.miniplayerTakesCard(e) ? I5().miniplayerPlay(e.id) : fat(e, t),
+ openShort: (e) => I5()?.miniplayerTakesCard(e) ? I5().miniplayerPlay(e.id) : C9(e.id),
+ openShorts: () => C9(),
+ openMix: (e, t) => tot(e, e, !0, t),
+ openEntity: (e, t) => h7(e, t),
+ openUnowned: () => Z7({ owner: "none" }, !0),
toggleTag: (e) => {
- $7((t) => {
+ e9((t) => {
t.tag = X.tagPressed(t.tag, e) ? "" : e;
}), window.scrollTo({
top: 0,
behavior: "smooth"
});
},
- toggleSelection: (e, t) => b7(e, t),
- watchLater: (e, t) => gat(e, t),
- resourceOperation: (e, t) => _at(e, t),
- mixRelated: (e) => mat(e),
- canFlip: () => !ac && !h9() && !window.__scrolling && !X.reduceMotion()
+ toggleSelection: (e, t) => x7(e, t),
+ watchLater: (e, t) => hat(e, t),
+ resourceOperation: (e, t) => gat(e, t),
+ mixRelated: (e) => pat(e),
+ canFlip: () => !ac && !g9() && !window.__scrolling && !X.reduceMotion()
}, X.topsQueryParams = (e, t = 0) => {
let n = new URLSearchParams({
n: "60",
seed: H.seed || ""
});
- return t && n.set("page", String(t)), B7() && n.set("jav", "1"), e.type === "home" && H.state && n.set("state", H.state), n;
+ return t && n.set("page", String(t)), V7() && n.set("jav", "1"), e.type === "home" && H.state && n.set("state", H.state), n;
}, X.facetCountsSeq = 0, X.VIEW_PILLS = [
{
k: "",
@@ -94879,38 +94879,38 @@ function Vat() {
], X.catalogViews = () => X.VIEW_PILLS.map((e) => ({
...e,
href: e.k ? xt[e.k] : "/"
- })), X.TAGS_FIRST = 26, Y5.listen(F("#catalogFilter"), "click", (e) => {
+ })), X.TAGS_FIRST = 26, X5.listen(F("#catalogFilter"), "click", (e) => {
let t = e.target.closest?.("[data-catalog-view]");
- t && !e.defaultPrevented && (e.preventDefault(), xat().setView(t.dataset.catalogView));
+ t && !e.defaultPrevented && (e.preventDefault(), bat().setView(t.dataset.catalogView));
}), X.catalogOnScreen = () => F("#index").hidden && F("#stats").hidden, X.COMBO_LABELS = {
creator: "创作者",
studio: "厂牌",
owner: "归属"
}, X.hideCatalogCombo = () => {
- X.catalogFilterProps && t9({ comboHidden: !0 });
+ X.catalogFilterProps && n9({ comboHidden: !0 });
};
}
-function Hat() {
+function Vat() {
X.junkQueueHelpers = { badgeHtml: (e, t) => Z.srcBadge(e, t) }, X.junkQueueActions = {
navigate: (e) => {
- ac && y7(!1, !0), Q.route(e);
+ ac && b7(!1, !0), Q.route(e);
},
- toggleSelection: (e, t) => b7(e, t),
- open: (e, t) => e.junk_kind === "image" ? window.open("/photo?id=" + e.id, "_blank", "noopener") : b9(e.id, !0, null, t),
+ toggleSelection: (e, t) => x7(e, t),
+ open: (e, t) => e.junk_kind === "image" ? window.open("/photo?id=" + e.id, "_blank", "noopener") : x9(e.id, !0, null, t),
reveal: async (e) => {
try {
return await vt("/api/reveal", {
method: "POST",
body: JSON.stringify({ id: e.id })
- }), X5.toast({ text: "已在资源管理器中显示" }), "";
+ }), Z5.toast({ text: "已在资源管理器中显示" }), "";
} catch (e) {
- return o7.sourceHint(e.message);
+ return s7.sourceHint(e.message);
}
},
- operate: (e, t) => Rat(e, t)
+ operate: (e, t) => Lat(e, t)
};
}
-X.controller = new qnt();
+X.controller = new Knt();
//#endregion
//#region src/application/preferences.js
var Z = {
@@ -94934,8 +94934,8 @@ var Z = {
emptyState: void 0,
CENSOR_KEY: void 0
};
-async function p9() {
- let e = Y5;
+async function m9() {
+ let e = X5;
try {
let t = await hn(e.signal);
if (!e.isActive) return Z.sourceOnline;
@@ -94944,18 +94944,18 @@ async function p9() {
if (!e.isActive) return Z.sourceOnline;
Z.sourceOnline = {}, Z.sourceProblems = {};
}
- return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), uat(), Z.sourceOnline;
+ return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), lat(), Z.sourceOnline;
}
-function m9() {
+function h9() {
let e = Q.surfacePath();
- if (!wt(e) || e === "/junk-files") return a9();
+ if (!wt(e) || e === "/junk-files") return o9();
let t = Z.nextCatalogLoad();
- return UL(Y7(), {
+ return HL(X7(), {
replace: !0,
- state: HL.navigation.location.state
+ state: VL.navigation.location.state
}), t;
}
-function Uat(e) {
+function Hat(e) {
return e === "local" ? {
kind: "glyph",
name: "hard-drive"
@@ -94970,7 +94970,7 @@ function Uat(e) {
cost: "free"
};
}
-function Wat(e, t) {
+function Uat(e, t) {
let n = (e, t = (e) => e.label || Ks(e.k)) => (e || []).map((e) => ({
value: String(e.k),
label: t(e),
@@ -94981,7 +94981,7 @@ function Wat(e, t) {
value: e.k,
label: Yt[e.k] || e.k,
n: e.n ?? null,
- dot: Uat(e.k),
+ dot: Hat(e.k),
...Z.sourceOffline(e.k) ? { offline: Z.OFFLINE_HINT } : {}
})),
regions: n(e.regions),
@@ -94993,24 +94993,24 @@ function Wat(e, t) {
duration: !!e.stats?.duration
};
}
-async function Gat(e = !1) {
- if (e && (document.hidden || !wt(decodeURIComponent(location.pathname)) || _9.stageOpen() || _9.immerseOpen() || ac || rc.size || document.activeElement === F("#q"))) return !1;
+async function Wat(e = !1) {
+ if (e && (document.hidden || !wt(decodeURIComponent(location.pathname)) || v9.stageOpen() || v9.immerseOpen() || ac || rc.size || document.activeElement === F("#q"))) return !1;
if (!F("#stats").hidden) {
let e = decodeURIComponent(location.pathname), t = Q.routeMeta(e)?.route.refresh;
if (t === "skip") return;
if (e === "/playlists") {
- ait();
+ iit();
return;
}
let n = t === "reopen" ? e : "/stats";
- n === e ? Q.navigatePath(location.pathname + location.search + location.hash, !0, HL.navigation.location.state) : Q.navigatePath(n);
+ n === e ? Q.navigatePath(location.pathname + location.search + location.hash, !0, VL.navigation.location.state) : Q.navigatePath(n);
} else if (F("#index").hidden) {
- H.sort = "seed", H.dir = "", H.seed = X5.rollSeed(), Ac(), $5(), t9({ refreshing: !0 });
+ H.sort = "seed", H.dir = "", H.seed = Z5.rollSeed(), Ac(), e7(), n9({ refreshing: !0 });
try {
- let e = m9();
- await null, await Promise.all([e, n9()]);
+ let e = h9();
+ await null, await Promise.all([e, r9()]);
} finally {
- t9({ refreshing: !1 });
+ n9({ refreshing: !1 });
}
return e || window.scrollTo({
top: 0,
@@ -95018,67 +95018,67 @@ async function Gat(e = !1) {
}), !0;
}
}
-function h9() {
+function g9() {
return document.body.classList.contains("censor");
}
-function Kat(e) {
+function Gat(e) {
document.body.classList.toggle("censor", e), Z.settingsStore.notify();
}
-function qat(e) {
- localStorage.setItem(Z.CENSOR_KEY, e ? "1" : "0"), Kat(e), e && Hs();
+function Kat(e) {
+ localStorage.setItem(Z.CENSOR_KEY, e ? "1" : "0"), Gat(e), e && Hs();
}
-function Jat(e) {
+function qat(e) {
localStorage.setItem("peach.high-contrast", String(e)), document.documentElement.classList.toggle("board-high-contrast", e), Z.settingsStore.notify();
}
-function g9(e) {
+function _9(e) {
return Ao(e, { drag: !0 });
}
-function Yat() {
- ["#nrow", "#count"].forEach((e) => g9(F(e))), document.querySelectorAll(".tier,.srow").forEach(g9);
+function Jat() {
+ ["#nrow", "#count"].forEach((e) => _9(F(e))), document.querySelectorAll(".tier,.srow").forEach(_9);
}
-function Xat() {
+function Yat() {
let e = new URLSearchParams(location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
-function Zat() {
+function Xat() {
Z.sourceOnline = {}, Z.sourceProblems = {}, Z.sourceOffline = (e) => Z.sourceOnline[e] === !1, Z.OFFLINE_HINT = "脱盘模式:这个来源当前没有挂载", Z.OFFLINE_REASON = {
local: "本地硬盘没有挂载,接上后点重新检测即可播放。",
115: "115 网盘没有挂载,检查 CloudDrive 是否在运行。",
pikpak: "PikPak 没有挂载,检查 CloudDrive 是否在运行。"
- }, Z.offlineReason = (e) => Z.sourceProblems[e] || Z.OFFLINE_REASON[e] || "这个来源当前没有挂载。", Z.settingsStore = aT(), Z.appSettings = Z.settingsStore.value, Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), Ta(Z.appSettings.uiSounds), ja(), lT(), qse(), MT(), FT(), IT(), Z.catalogLoadWaiters = [], Z.nextCatalogLoad = () => new Promise((e) => Z.catalogLoadWaiters.push(e)), Z.handOff = (e) => (Z.catalogLoadWaiters.splice(0).forEach((t) => t(e)), e), Z.settingsEffects = {
- theme: () => lT(),
+ }, Z.offlineReason = (e) => Z.sourceProblems[e] || Z.OFFLINE_REASON[e] || "这个来源当前没有挂载。", Z.settingsStore = oT(), Z.appSettings = Z.settingsStore.value, Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), Ta(Z.appSettings.uiSounds), ja(), uT(), Kse(), NT(), IT(), LT(), Z.catalogLoadWaiters = [], Z.nextCatalogLoad = () => new Promise((e) => Z.catalogLoadWaiters.push(e)), Z.handOff = (e) => (Z.catalogLoadWaiters.splice(0).forEach((t) => t(e)), e), Z.settingsEffects = {
+ theme: () => uT(),
uiSounds: () => {
Ta(Z.appSettings.uiSounds), Z.appSettings.uiSounds && Ea("toggle-on");
},
- glowFrame: () => PT(),
+ glowFrame: () => FT(),
glow: () => {
- PT(), FT();
+ FT(), IT();
},
batchSize: () => {
- location.pathname === "/" && a9();
+ location.pathname === "/" && o9();
},
defaultSort: () => {
- H.sort = Z.appSettings.defaultSort, H.dir = Rw(H.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Ac(), location.pathname === "/" && m9();
+ H.sort = Z.appSettings.defaultSort, H.dir = zw(H.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Ac(), location.pathname === "/" && h9();
},
sortDirection: () => {
- H.dir = Rw(H.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Ac(), location.pathname === "/" && m9();
+ H.dir = zw(H.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Ac(), location.pathname === "/" && h9();
},
hoverDelay: () => {
Z.appSettings.hoverDelaySeconds || document.querySelectorAll("[data-previewing],[data-longhover]").forEach((e) => {
Ws(e, "previewing", !1), Ws(e, "longhover", !1);
}), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`);
},
- seekSeconds: () => f9(),
- groupCollapse: () => $it(),
- feedAutoScroll: () => Irt(),
- feedCompilations: () => Frt(),
+ seekSeconds: () => p9(),
+ groupCollapse: () => Qit(),
+ feedAutoScroll: () => Frt(),
+ feedCompilations: () => Prt(),
miniplayer: () => {
- Z.appSettings.miniplayer || F5()?.closeMiniplayer();
+ Z.appSettings.miniplayer || I5()?.closeMiniplayer();
},
javImage: () => {
- Wi(document, Z.appSettings.javImage), f9(), document.querySelectorAll("img[data-jav-image].cover").forEach(Cs), tot();
+ Wi(document, Z.appSettings.javImage), p9(), document.querySelectorAll("img[data-jav-image].cover").forEach(Cs), eot();
},
- searchHistoryLimit: () => NL(F("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })
+ searchHistoryLimit: () => ML(F("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })
}, Z.syncGlassOptics = () => {}, Z.placeSidebarHead = () => {}, Z.SRCICON = {
local: I("hard-drive"),
115: `<img class="source-icon" src="${Wa[115]}" alt="">`,
@@ -95089,12 +95089,12 @@ function Zat() {
return `<span class="${n || "src"} ${t === "metered" ? "metered" : "free"}" title="${L(r)}" aria-label="${L(r)}">` + (Z.SRCICON[e] || "") + "</span>";
}, Z.emptyState = Qa;
}
-function Qat() {
- Z.CENSOR_KEY = "peach-censor", Kat(localStorage.getItem(Z.CENSOR_KEY) === "1");
+function Zat() {
+ Z.CENSOR_KEY = "peach-censor", Gat(localStorage.getItem(Z.CENSOR_KEY) === "1");
}
//#endregion
//#region src/application/media.js
-var _9 = {
+var v9 = {
total: void 0,
facets: void 0,
stageHost: void 0,
@@ -95106,18 +95106,18 @@ var _9 = {
immerseOpen: void 0,
requestedImmerseId: void 0
};
-function $at() {
+function Qat() {
let e = Number(new URLSearchParams(location.search).get("t"));
return Number.isFinite(e) && e > 0 ? {
time: e,
autoplay: !1
} : null;
}
-function eot() {
- return F5()?.exit() || Promise.resolve();
+function $at() {
+ return I5()?.exit() || Promise.resolve();
}
-function v9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null } = {}) {
- Q.queueOpenRequest !== r && D9(), F5()?.dispose({ miniplayer: n }), kc({
+function y9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null } = {}) {
+ Q.queueOpenRequest !== r && O9(), I5()?.dispose({ miniplayer: n }), kc({
activeQueue: null,
pendingQueueRoute: null,
presentedItem: null
@@ -95125,15 +95125,15 @@ function v9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null
detailOriginAnchor: null,
detailOriginAbove: !1,
detailReturnNeedsRestore: !1
- }), q7(), e && Q.route(lc || "/");
+ }), J7(), e && Q.route(lc || "/");
}
-function tot() {
- F5()?.repaintPoster();
+function eot() {
+ I5()?.repaintPoster();
}
-function y9(e, t, n, r, i = null, a = {}) {
+function b9(e, t, n, r, i = null, a = {}) {
t = +t;
let o = pc?.kind === e && (e === "playlist" ? pc.playlistId : pc.seedId) === t;
- r && !o && kc({ detailReturnPath: location.pathname + location.search }), r && hL();
+ r && !o && kc({ detailReturnPath: location.pathname + location.search }), r && mL();
let s = e === "playlist" ? {
kind: e,
playlistId: t,
@@ -95144,38 +95144,38 @@ function y9(e, t, n, r, i = null, a = {}) {
fresh: !o
};
if (a.autoplay && (s.autoplay = !0), r) {
- D9();
+ O9();
let e = Q.queueOpenRequest = {
- seq: HL.navigation.seq,
+ seq: VL.navigation.seq,
cancelled: !1
};
- Q.requestedQueue = () => b9(n == null ? null : +n, !1, s, i, !0, e), kc({ queueOpens: xc + 1 });
- } else return b9(n == null ? null : +n, !1, s, i, r);
+ Q.requestedQueue = () => x9(n == null ? null : +n, !1, s, i, !0, e), kc({ queueOpens: xc + 1 });
+ } else return x9(n == null ? null : +n, !1, s, i, r);
+}
+function tot(e, t = e, n = !0, r = null) {
+ return b9("mix", e, t, n, r);
}
function not(e, t = e, n = !0, r = null) {
- return y9("mix", e, t, n, r);
+ return b9("editions", e, t, n, r);
}
function rot(e, t = e, n = !0, r = null) {
- return y9("editions", e, t, n, r);
+ return b9("parts", e, t, n, r);
}
-function iot(e, t = e, n = !0, r = null) {
- return y9("parts", e, t, n, r);
+function iot(e, t = null, n = !0) {
+ return b9("playlist", e, t, n);
}
-function aot(e, t = null, n = !0) {
- return y9("playlist", e, t, n);
-}
-function oot() {
+function aot() {
return !!F("#grid").querySelector("[data-id],[data-mix-seed]") || !F("#index").hidden || !F("#stats").hidden;
}
-async function b9(e, t = !0, n = null, r = null, i = !1, a = null) {
+async function x9(e, t = !0, n = null, r = null, i = !1, a = null) {
if (a?.cancelled) return;
- if (a || D9(), t && !n) {
- kc({ detailReturnPath: location.pathname + location.search }), O9("/item/" + +e, "item", () => b9(e, !1, null, r));
+ if (a || O9(), t && !n) {
+ kc({ detailReturnPath: location.pathname + location.search }), k9("/item/" + +e, "item", () => x9(e, !1, null, r));
return;
}
Hs(), e = e == null ? null : +e;
- let o = r?.isConnected ? r : uc?.isConnected ? uc : null, s = r?.isConnected ? r.getBoundingClientRect().top + r.getBoundingClientRect().height / 2 > window.innerHeight / 2 : dc, c = oot(), l = fc || !t && !c, u = tc.type === "item" ? nc : o7.cloneBarsContext(l7());
- t ? kc({ detailReturnPath: location.pathname + location.search }) : i || kc({ detailReturnPath: _L() || lc }), t && hL(), F5()?.showing() !== "item" && v9(!1, !0, {
+ let o = r?.isConnected ? r : uc?.isConnected ? uc : null, s = r?.isConnected ? r.getBoundingClientRect().top + r.getBoundingClientRect().height / 2 > window.innerHeight / 2 : dc, c = aot(), l = fc || !t && !c, u = tc.type === "item" ? nc : s7.cloneBarsContext(u7());
+ t ? kc({ detailReturnPath: location.pathname + location.search }) : i || kc({ detailReturnPath: gL() || lc }), t && mL(), I5()?.showing() !== "item" && y9(!1, !0, {
miniplayer: !1,
preserveQueueRequest: a
}), kc({
@@ -95186,174 +95186,174 @@ async function b9(e, t = !0, n = null, r = null, i = !1, a = null) {
kind: n.kind,
seedId: n.seedId,
playlistId: n.playlistId
- } }), kc({ pendingQueueRoute: n && i ? `${_9.QUEUE_ROUTES[n.kind]}/${n.kind === "playlist" ? n.playlistId : n.seedId}` : null }), t && !n && Q.route("/item/" + e, !1, vL("item"));
- let d = await P5(_9.stageHost);
+ } }), kc({ pendingQueueRoute: n && i ? `${v9.QUEUE_ROUTES[n.kind]}/${n.kind === "playlist" ? n.playlistId : n.seedId}` : null }), t && !n && Q.route("/item/" + e, !1, _L("item"));
+ let d = await F5(v9.stageHost);
if (a?.cancelled) return;
let f = a ? {
- ..._9.itemDetailActions,
+ ...v9.itemDetailActions,
present: (e, t) => {
- a.cancelled || _9.itemDetailActions.present(e, t);
+ a.cancelled || v9.itemDetailActions.present(e, t);
},
redirect: (e) => {
- a.cancelled || _9.itemDetailActions.redirect(e);
+ a.cancelled || v9.itemDetailActions.redirect(e);
}
- } : _9.itemDetailActions;
+ } : v9.itemDetailActions;
await d.open({
kind: "item",
id: e,
queue: n,
relatedLimit: Z.appSettings.relatedLimit > 0 ? +Z.appSettings.relatedLimit : 0,
- helpers: _9.itemDetailHelpers,
+ helpers: v9.itemDetailHelpers,
actions: f,
grid: {
helpers: X.gridHelpers,
actions: X.gridActions
},
- layout: u9(),
+ layout: d9(),
selectMode: ac,
selected: new Set(rc),
seekSeconds: Z.appSettings.seekSeconds,
- resume: t || e == null ? null : $at()
- }), q7();
+ resume: t || e == null ? null : Qat()
+ }), J7();
}
-async function sot() {
- let e = o7.cloneBarsContext(nc), t = lc || "/", n = fc;
- await eot(), v9(!1, !1, { miniplayer: !1 }), kc({ detailReturnBarsContext: null }), gL(), kc({ barsContext: e || {
+async function oot() {
+ let e = s7.cloneBarsContext(nc), t = lc || "/", n = fc;
+ await $at(), y9(!1, !1, { miniplayer: !1 }), kc({ detailReturnBarsContext: null }), hL(), kc({ barsContext: e || {
type: "home",
filters: H
- } }), n && Q.managedPagePath(new URL(t, location.href).pathname) ? Q.navigatePath(t) : (Q.route(t), n ? kc({ pageOpens: bc + 1 }) : (n9(), location.pathname === "/playlists" && kc({ pageOpens: bc + 1 })));
+ } }), n && Q.managedPagePath(new URL(t, location.href).pathname) ? Q.navigatePath(t) : (Q.route(t), n ? kc({ pageOpens: bc + 1 }) : (r9(), location.pathname === "/playlists" && kc({ pageOpens: bc + 1 })));
}
-async function x9(e, t = !0) {
+async function S9(e, t = !0) {
if (t) {
- kc({ detailReturnPath: location.pathname + location.search }), O9("/jav/movie/" + encodeURIComponent(e), "jav", () => x9(e, !1));
+ kc({ detailReturnPath: location.pathname + location.search }), k9("/jav/movie/" + encodeURIComponent(e), "jav", () => S9(e, !1));
return;
}
- let n = HL.navigation.seq, r = o7.cloneBarsContext(l7()), i = !oot(), a = _L() || (i ? "/jav?tab=discover" : lc) || "/jav?tab=discover";
- F5()?.showing() !== "jav" && v9(!1, !0, { miniplayer: !1 }), kc({
+ let n = VL.navigation.seq, r = s7.cloneBarsContext(u7()), i = !aot(), a = gL() || (i ? "/jav?tab=discover" : lc) || "/jav?tab=discover";
+ I5()?.showing() !== "jav" && y9(!1, !0, { miniplayer: !1 }), kc({
detailReturnPath: a,
detailReturnBarsContext: r,
detailReturnNeedsRestore: i
}), Hs();
- let o = await P5(_9.stageHost);
- HL.navigation.seq === n && (await o.open({
+ let o = await F5(v9.stageHost);
+ VL.navigation.seq === n && (await o.open({
kind: "jav",
code: e,
readOnly: !vc,
actions: {
- close: () => void sot(),
+ close: () => void oot(),
navigate: (e) => Q.navigatePath(e),
- receipt: (e) => X5.toast({ text: e })
+ receipt: (e) => Z5.toast({ text: e })
}
- }), q7());
+ }), J7());
}
-async function S9(e = null, t = !0) {
- t ? (_9.requestedImmerseId = e, Q.route("/immerse")) : (F5()?.closeMiniplayer(), await (await Dnt(_9.immerseHost)).open(e));
+async function C9(e = null, t = !0) {
+ t ? (v9.requestedImmerseId = e, Q.route("/immerse")) : (I5()?.closeMiniplayer(), await (await Ent(v9.immerseHost)).open(e));
}
-function cot() {
- _9.total = 0, _9.facets = null, _9.stageHost = {
+function sot() {
+ v9.total = 0, v9.facets = null, v9.stageHost = {
player: {
settings: () => Z.appSettings,
saveSettings: () => Z.saveSettings(),
- toast: (e, t) => X5.toast({ text: e }, t),
- loadSourceStatus: () => p9(),
+ toast: (e, t) => Z5.toast({ text: e }, t),
+ loadSourceStatus: () => m9(),
offlineReason: (e) => Z.offlineReason(e)
},
sourceOffline: (e) => Z.sourceOffline(e),
expand: (e, t, n) => {
- e === "follow" ? L9(t, !0, n) : b9(t, !0);
+ e === "follow" ? R9(t, !0, n) : x9(t, !0);
},
- openItem: (e) => void b9(e)
- }, _9.stageOpen = () => !!F5()?.isOpen();
+ openItem: (e) => void x9(e)
+ }, v9.stageOpen = () => !!I5()?.isOpen();
}
-function lot() {
- _9.QUEUE_ROUTES = {
+function cot() {
+ v9.QUEUE_ROUTES = {
mix: "/mix",
parts: "/parts",
editions: "/editions",
playlist: "/playlists"
- }, _9.itemDetailHelpers = {
+ }, v9.itemDetailHelpers = {
badgeHtml: (e, t, n) => Z.srcBadge(e, t, n),
titleHtml: (e) => nO(e),
displayName: (e) => tO(e),
javImage: () => Z.appSettings.javImage,
tagLabel: (e) => Ks(e),
isDurationTag: (e) => Qt.has(e),
- tagCandidates: () => _9.facets && _9.facets.tags || [],
+ tagCandidates: () => v9.facets && v9.facets.tags || [],
sourceOffline: (e) => Z.sourceOffline(e),
offlineReason: (e) => Z.offlineReason(e),
- relatedSkeletonHtml: () => jH("正在读取推荐", {
+ relatedSkeletonHtml: () => AH("正在读取推荐", {
cards: !0,
className: "related-skeleton"
}),
- mixRelated: (e) => mat(e),
- wireDrag: (e) => g9(e),
+ mixRelated: (e) => pat(e),
+ wireDrag: (e) => _9(e),
wireDragReorder: (e, t) => es(e, t)
- }, _9.itemDetailActions = {
- close: () => sot(),
+ }, v9.itemDetailActions = {
+ close: () => oot(),
present: (e) => {
kc({ presentedItem: e });
let t = nc;
kc({ barsContext: {
type: "item",
id: e.id,
- filters: t?.type === "entity" ? { ...t.filters } : o7.emptyEntityFilters()
- } }), mc && (Q.queueOpenRequest = null, Q.route(`${mc}/${e.id}`, !1, vL("item")), kc({ pendingQueueRoute: null })), n9();
+ filters: t?.type === "entity" ? { ...t.filters } : s7.emptyEntityFilters()
+ } }), mc && (Q.queueOpenRequest = null, Q.route(`${mc}/${e.id}`, !1, _L("item")), kc({ pendingQueueRoute: null })), r9();
},
redirect: (e) => {
let t = !!mc;
- e.kind === "follow" && !t && yCe("follow"), e.kind === "follow" ? (kc({ followDetailReturnPath: lc || "/" }), L9(e.id, !1, null, !0)) : e.kind === "item" ? b9(e.id, !0) : e.kind === "playlists" ? t || location.pathname !== "/playlists" ? A9("/playlists") : ait() : v9(!1);
+ e.kind === "follow" && !t && bCe("follow"), e.kind === "follow" ? (kc({ followDetailReturnPath: lc || "/" }), R9(e.id, !1, null, !0)) : e.kind === "item" ? x9(e.id, !0) : e.kind === "playlists" ? t || location.pathname !== "/playlists" ? j9("/playlists") : iit() : y9(!1);
},
- openQueueItem: (e, t, n = !0) => void y9(e.kind, e.kind === "playlist" ? e.playlistId : e.seedId, t, n, null, { autoplay: e.autoplay }),
+ openQueueItem: (e, t, n = !0) => void b9(e.kind, e.kind === "playlist" ? e.playlistId : e.seedId, t, n, null, { autoplay: e.autoplay }),
reopen: () => {
let e = hc;
if (!e) return;
let t = pc;
- t ? y9(t.kind, t.kind === "playlist" ? t.playlistId : t.seedId, e.id, !1) : b9(e.id, !1);
+ t ? b9(t.kind, t.kind === "playlist" ? t.playlistId : t.seedId, e.id, !1) : x9(e.id, !1);
},
- checkSource: async (e) => (await p9())[e] !== !1,
+ checkSource: async (e) => (await m9())[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", A9(j9());
+ $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followDurMin = $.followDurMax = 0, $.followFilter = "saved", j9(M9());
},
- openEntity: (e, t) => m7(e, t),
- openUnowned: () => X7({ owner: "none" }, !0),
- openRegion: (e) => X7({ region: e || "none" }, !0),
+ openEntity: (e, t) => h7(e, t),
+ openUnowned: () => Z7({ owner: "none" }, !0),
+ openRegion: (e) => Z7({ region: e || "none" }, !0),
openTag: (e) => {
- $7((t) => {
+ e9((t) => {
t.tag = e;
}), window.scrollTo({
top: 0,
behavior: "smooth"
});
},
- addToPlaylist: (e) => iit(e),
- saveMix: (e) => rit(e),
- editPlaylist: () => A9("/playlists"),
- openPlaylists: () => A9("/playlists"),
- reveal: (e) => Wrt(e),
- sync: (e) => Grt(e),
+ addToPlaylist: (e) => rit(e),
+ saveMix: (e) => nit(e),
+ editPlaylist: () => j9("/playlists"),
+ openPlaylists: () => j9("/playlists"),
+ reveal: (e) => Urt(e),
+ sync: (e) => Wrt(e),
trashChanged: async (e, t) => {
- H.state === "ads" && (t || e === "trash") && (t || (gL(), v9(!0, !1, { miniplayer: !1 })), await a9());
+ H.state === "ads" && (t || e === "trash") && (t || (hL(), y9(!0, !1, { miniplayer: !1 })), await o9());
},
- toast: (e, { undo: t } = {}) => X5.actionReceipt(e, { undo: t }),
- failure: (e, t) => X5.actionFailure(e, t)
- }, _9.immerseHost = {
+ toast: (e, { undo: t } = {}) => Z5.actionReceipt(e, { undo: t }),
+ failure: (e, t) => Z5.actionFailure(e, t)
+ }, v9.immerseHost = {
filters: () => H,
seekSeconds: () => Z.appSettings.seekSeconds,
sourceOffline: (e) => Z.sourceOffline(e),
displayName: (e) => tO(e),
route: (e) => Q.route("/immerse?id=" + e, !0),
- closed: () => X7(),
- openItem: (e) => void b9(e),
- openEntity: (e, t) => m7(e, t),
- openUnowned: () => X7({ owner: "none" }, !0),
- toast: (e, { undo: t } = {}) => X5.actionReceipt(e, { undo: t }),
- warn: (e) => X5.toast({ text: e }, { sound: "warning" }),
- failure: (e, t) => X5.actionFailure(e, t)
- }, _9.immerseOpen = () => !!R5()?.isOpen(), Y5.handler(F("#immerseBtn"), "onclick", () => S9());
+ closed: () => Z7(),
+ openItem: (e) => void x9(e),
+ openEntity: (e, t) => h7(e, t),
+ openUnowned: () => Z7({ owner: "none" }, !0),
+ toast: (e, { undo: t } = {}) => Z5.actionReceipt(e, { undo: t }),
+ warn: (e) => Z5.toast({ text: e }, { sound: "warning" }),
+ failure: (e, t) => Z5.actionFailure(e, t)
+ }, v9.immerseOpen = () => !!z5()?.isOpen(), X5.handler(F("#immerseBtn"), "onclick", () => C9());
}
//#endregion
//#region src/application/tutorial.js
-var C9 = {
+var w9 = {
postSetupTutorialDone: void 0,
postSetupTutorialNeedsReopen: void 0,
postSetupTutorialTasks: void 0,
@@ -95362,29 +95362,29 @@ var C9 = {
readPostSetupTutorialDone: void 0,
openTutorialTarget: void 0
};
-async function uot() {
- bs(), await C9.writePostSetupTutorialDone(!1), await w9();
+async function lot() {
+ bs(), await w9.writePostSetupTutorialDone(!1), await T9();
}
-async function w9() {
+async function T9() {
let e = F("#postSetupTutorial");
if (!e) return;
let t = () => {
e.hidden = !0, e.innerHTML = "", delete e.dataset.tutorialSignature, e.removeAttribute("aria-busy");
};
- if (C9.postSetupTutorialNeedsReopen && (C9.postSetupTutorialNeedsReopen = !1, await C9.writePostSetupTutorialDone(!1).catch(() => {})), us() !== "pending" || await C9.readPostSetupTutorialDone()) {
+ if (w9.postSetupTutorialNeedsReopen && (w9.postSetupTutorialNeedsReopen = !1, await w9.writePostSetupTutorialDone(!1).catch(() => {})), us() !== "pending" || await w9.readPostSetupTutorialDone()) {
t();
return;
}
let n = vs();
e.hidden = !1, e.setAttribute("aria-busy", "true"), e.firstElementChild || (e.innerHTML = `<article class="post-setup-notification post-setup-loading">${I("compass")}<p>正在检查安装进度…</p></article>`);
try {
- let r = await C9.postSetupTutorialTasks();
+ let r = await w9.postSetupTutorialTasks();
if (!ys(n)) return;
let i = new Set(r.map((e) => e.key)), a = new Set([...ms()].filter((e) => i.has(e)));
hs(a);
let o = r.filter((e) => !a.has(e.key)), s = o.filter((e) => !e.done);
if (!s.length) {
- ds("complete"), t(), await C9.writePostSetupTutorialDone(!0).catch(() => {});
+ ds("complete"), t(), await w9.writePostSetupTutorialDone(!0).catch(() => {});
return;
}
let c = gs(o);
@@ -95392,50 +95392,50 @@ async function w9() {
e.removeAttribute("aria-busy");
return;
}
- e.innerHTML = C9.postSetupTutorialHtml(o, a.size, r.length), e.dataset.tutorialSignature = c, e.removeAttribute("aria-busy");
+ e.innerHTML = w9.postSetupTutorialHtml(o, a.size, r.length), e.dataset.tutorialSignature = c, e.removeAttribute("aria-busy");
let l = s[0], u = e.querySelector("[data-tutorial-collapse]");
- Y5.handler(u, "onclick", () => {
+ X5.handler(u, "onclick", () => {
let t = e.querySelector(".post-setup-notification"), n = t.dataset.collapsed !== "true";
t.dataset.collapsed = String(n), ps(n), u.setAttribute("aria-expanded", String(!n)), u.setAttribute("aria-label", n ? "展开安装教程" : "折叠安装教程"), u.innerHTML = I(n ? "chevron-up" : "chevron-down");
- }), e.querySelectorAll("[data-tutorial-skip]").forEach((e) => Y5.handler(e, "onclick", () => {
+ }), e.querySelectorAll("[data-tutorial-skip]").forEach((e) => X5.handler(e, "onclick", () => {
let t = ms(), n = e.dataset.tutorialSkip;
- t.add(n), hs(t), X5.actionReceipt(`已跳过「${e.dataset.tutorialLabel}」`, { undo: async () => {
+ t.add(n), hs(t), Z5.actionReceipt(`已跳过「${e.dataset.tutorialLabel}」`, { undo: async () => {
let e = ms();
- e.delete(n), hs(e), ds("pending"), await w9();
- } }), w9();
+ e.delete(n), hs(e), ds("pending"), await T9();
+ } }), T9();
}));
let d = new Map(o.map((e) => [e.key, e]));
- e.querySelectorAll("[data-tutorial-task]").forEach((e) => Y5.handler(e, "onclick", (t) => {
+ e.querySelectorAll("[data-tutorial-task]").forEach((e) => X5.handler(e, "onclick", (t) => {
let n = d.get(e.dataset.tutorialTask);
- !n || t.metaKey || t.ctrlKey || t.shiftKey || t.button || (t.preventDefault(), C9.openTutorialTarget(n));
- })), Y5.handler(e.querySelector("[data-tutorial-action]"), "onclick", () => C9.openTutorialTarget(l));
+ !n || t.metaKey || t.ctrlKey || t.shiftKey || t.button || (t.preventDefault(), w9.openTutorialTarget(n));
+ })), X5.handler(e.querySelector("[data-tutorial-action]"), "onclick", () => w9.openTutorialTarget(l));
} catch {
if (!ys(n)) return;
e.innerHTML = `<article class="post-setup-notification post-setup-error">${I("alert")}
<div><h2>暂时无法检查安装进度</h2><p>切换页面或重新打开后会再检查一次。</p>
<div class="post-setup-error-actions"><button class="geist-button" type="button" data-tutorial-retry>重试</button>
- <button class="geist-button" type="button" data-tutorial-dismiss>关闭</button></div></div></article>`, e.removeAttribute("aria-busy"), Y5.handler(e.querySelector("[data-tutorial-retry]"), "onclick", () => {
- delete e.dataset.tutorialSignature, e.innerHTML = "", w9();
- }), Y5.handler(e.querySelector("[data-tutorial-dismiss]"), "onclick", t);
+ <button class="geist-button" type="button" data-tutorial-dismiss>关闭</button></div></div></article>`, e.removeAttribute("aria-busy"), X5.handler(e.querySelector("[data-tutorial-retry]"), "onclick", () => {
+ delete e.dataset.tutorialSignature, e.innerHTML = "", T9();
+ }), X5.handler(e.querySelector("[data-tutorial-dismiss]"), "onclick", t);
}
}
-function dot() {
- if (kc({ cameFromSetup: new URLSearchParams(location.search).get("onboarding") === "1" }), C9.postSetupTutorialDone = null, C9.postSetupTutorialNeedsReopen = !1, yc) {
- ds("pending"), C9.postSetupTutorialDone = !1, C9.postSetupTutorialNeedsReopen = !0;
+function uot() {
+ if (kc({ cameFromSetup: new URLSearchParams(location.search).get("onboarding") === "1" }), w9.postSetupTutorialDone = null, w9.postSetupTutorialNeedsReopen = !1, yc) {
+ ds("pending"), w9.postSetupTutorialDone = !1, w9.postSetupTutorialNeedsReopen = !0;
let e = new URL(location.href);
- e.searchParams.delete("onboarding"), UL(e, {
+ e.searchParams.delete("onboarding"), HL(e, {
replace: !0,
- state: HL.navigation.location.state
+ state: VL.navigation.location.state
});
}
{
let e = new URL(location.href), t = e.searchParams.get("agentation");
- t === "on" && localStorage.setItem("peach.agentation", "on"), t === "off" && localStorage.removeItem("peach.agentation"), t !== null && (e.searchParams.delete("agentation"), UL(e, {
+ t === "on" && localStorage.setItem("peach.agentation", "on"), t === "off" && localStorage.removeItem("peach.agentation"), t !== null && (e.searchParams.delete("agentation"), HL(e, {
replace: !0,
- state: HL.navigation.location.state
+ state: VL.navigation.location.state
})), localStorage.getItem("peach.agentation") === "on" && import("/dev/agentation.js").catch(() => {});
}
- C9.postSetupTutorialTasks = async () => {
+ w9.postSetupTutorialTasks = async () => {
let { library: e, scraping: t, taste: n, follow: r, credentials: i, review: a } = await vt("/api/post-setup-tutorial"), o = (t.sources || []).filter((e) => e.accepts_cookie).filter((e) => e.cookie_saved), s = (r.sources || []).filter((e) => e.enabled !== !1), c = new Map((i.providers || []).map((e) => [e.provider, e])), l = [...new Set(s.map((e) => e.provider))].map((e) => c.get(e)).filter((e) => e?.requirement === "required"), u = Number(e.total || 0) > 0, d = s.length > 0, f = d && l.every((e) => e.present && !e.missing?.length), p = Object.values(a.counts || {}).reduce((e, t) => e + (Number(t) || 0), 0);
return [
{
@@ -95488,7 +95488,7 @@ function dot() {
icon: "square-check-big"
}
];
- }, C9.postSetupTutorialHtml = (e, t, n) => {
+ }, w9.postSetupTutorialHtml = (e, t, n) => {
let r = [...e].sort((e, t) => Number(e.done) - Number(t.done)), i = e.find((e) => !e.done), a = e.filter((e) => e.done).length + t, o = fs(), s = r.map((e) => `<li class="post-setup-task" data-state="${e.done ? "checked" : "unchecked"}">
<a href="${e.href}" data-tutorial-task="${e.key}">
<span class="post-setup-check" aria-hidden="true">${e.done ? I("check") : I(e.icon)}</span>
@@ -95507,19 +95507,19 @@ function dot() {
<ol class="post-setup-task-list" id="postSetupTaskList">${s}</ol>
<footer><button class="geist-button" type="button" data-tutorial-action="next">继续:${i.label}</button></footer>
</article>`;
- }, C9.writePostSetupTutorialDone = async (e) => {
- C9.postSetupTutorialDone = e, await vt("/api/settings", {
+ }, w9.writePostSetupTutorialDone = async (e) => {
+ w9.postSetupTutorialDone = e, await vt("/api/settings", {
method: "POST",
body: JSON.stringify({ postSetupTutorialDone: e })
});
- }, C9.readPostSetupTutorialDone = async () => {
- if (C9.postSetupTutorialDone === null) try {
- C9.postSetupTutorialDone = (await vt("/api/settings")).postSetupTutorialDone === !0;
+ }, w9.readPostSetupTutorialDone = async () => {
+ if (w9.postSetupTutorialDone === null) try {
+ w9.postSetupTutorialDone = (await vt("/api/settings")).postSetupTutorialDone === !0;
} catch {
- C9.postSetupTutorialDone = !1;
+ w9.postSetupTutorialDone = !1;
}
- return C9.postSetupTutorialDone;
- }, C9.openTutorialTarget = (e) => {
+ return w9.postSetupTutorialDone;
+ }, w9.openTutorialTarget = (e) => {
e.setupEntry && kc({ cameFromSetup: !0 }), Q.navigatePath(e.href);
};
}
@@ -95544,48 +95544,48 @@ var Q = {
queueOpenRequest: void 0,
initialOverlayOpened: void 0
};
-function fot() {
- let e = U5();
- e ? e.navChanged() : F("#drawerScroll")?.querySelectorAll("[data-nav]").forEach((e) => e.setAttribute("aria-pressed", String(G7(e.dataset.nav))));
+function dot() {
+ let e = W5();
+ e ? e.navChanged() : F("#drawerScroll")?.querySelectorAll("[data-nav]").forEach((e) => e.setAttribute("aria-pressed", String(K7(e.dataset.nav))));
}
-function T9(e = {}) {
+function E9(e = {}) {
let t = Q.surfacePath();
- t !== k7.sidebarSurface && (k7.sidebarSurface = t, k7.sidebarProps = {
- ...k7.sidebarProps,
+ t !== A7.sidebarSurface && (A7.sidebarSurface = t, A7.sidebarProps = {
+ ...A7.sidebarProps,
content: null,
latest: null
- }), k7.sidebarProps = {
- ...k7.sidebarProps,
+ }), A7.sidebarProps = {
+ ...A7.sidebarProps,
...e
- }, U5()?.render(k7.sidebarProps);
-}
-function E9() {
- T9(), fot(), K7();
+ }, W5()?.render(A7.sidebarProps);
}
function D9() {
+ E9(), dot(), q7();
+}
+function O9() {
Q.queueOpenRequest && (Q.queueOpenRequest.cancelled = !0), Q.queueOpenRequest = null, Q.requestedQueue = null, kc({ pendingQueueRoute: null });
}
-function O9(e, t, n) {
- D9(), hL(), Q.requestedOverlay = {
+function k9(e, t, n) {
+ O9(), mL(), Q.requestedOverlay = {
path: e,
open: n
- }, Q.route(e, !1, vL(t));
+ }, Q.route(e, !1, _L(t));
}
-function k9() {
- Q.surfaceEpoch++, X.barsRequestSeq++, T7.syncPageTitle(location.href), T9(), gL(), w9();
+function A9() {
+ Q.surfaceEpoch++, X.barsRequestSeq++, E7.syncPageTitle(location.href), E9(), hL(), T9();
}
-function A9(e) {
+function j9(e) {
Q.route(e), kc({ pageOpens: bc + 1 });
}
-function pot() {
+function fot() {
Q.routeMeta = (e) => {
- let t = bL(e);
+ let t = yL(e);
return t ? { route: t } : null;
- }, Q.routePathOf = (e, t) => Object.keys(yL).find((n) => yL[n][e] === t), Q.catalogPage = (e) => wt(e) || e === "/trash", Q.managedPagePath = (e) => {
- let t = bL(e);
- return !!t && t.reload !== "reopen" && !Q.catalogPage(e) && !dL(e) && e !== "/immerse";
+ }, Q.routePathOf = (e, t) => Object.keys(vL).find((n) => vL[n][e] === t), Q.catalogPage = (e) => wt(e) || e === "/trash", Q.managedPagePath = (e) => {
+ let t = yL(e);
+ return !!t && t.reload !== "reopen" && !Q.catalogPage(e) && !uL(e) && e !== "/immerse";
}, Q.openRoutePath = (e) => {
- e === "/immerse" ? S9(Xat()) : e === "/follow" ? I9() : e === "/playlists" || Q.catalogPage(e) ? A9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/follow-manage" ? C7() : e) : (y7(!1, !0), A9(Dit({
+ e === "/immerse" ? C9(Yat()) : e === "/follow" ? L9() : e === "/playlists" || Q.catalogPage(e) ? j9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/follow-manage" ? w7() : e) : (b7(!1, !0), j9(Eit({
kind: e.slice(1),
q: "",
scope: "local",
@@ -95594,35 +95594,35 @@ function pot() {
})));
};
}
-function mot() {
+function pot() {
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) => (Nrt(e) || PL(F("#libraryProcessingNotice")), i7(e) || a7(), PL(F("#stats"), F("#index")), !wt(e) && e !== "/trash" && o9(), Q.surfaceRequests?.abort(), Q.surfaceRequests = new AbortController(), Q.surfaceEpoch++, Q.surfaceToken(e)), Q.route = (e, t = !1, n) => {
- Q.surfaceEpoch++, X.barsRequestSeq++, UL(e, {
+ }), Q.surfaceCurrent = (e) => e.epoch === Q.surfaceEpoch && Q.surfacePath() === e.path, Q.claimSurface = (e) => (Mrt(e) || NL(F("#libraryProcessingNotice")), a7(e) || o7(), NL(F("#stats"), F("#index")), !wt(e) && e !== "/trash" && s9(), Q.surfaceRequests?.abort(), Q.surfaceRequests = new AbortController(), Q.surfaceEpoch++, Q.surfaceToken(e)), Q.route = (e, t = !1, n) => {
+ Q.surfaceEpoch++, X.barsRequestSeq++, HL(e, {
replace: t,
state: n
- }), T7.syncPageTitle(e), queueMicrotask(() => {
- K7(), R7(), T9(), w9();
+ }), E7.syncPageTitle(e), queueMicrotask(() => {
+ q7(), z7(), E9(), T9();
});
}, Q.navigatePath = (e, t = !1, n) => {
- t ? HL.replace(e, n) : HL.push(e, n), queueMicrotask(() => {
- K7(), R7();
+ t ? VL.replace(e, n) : VL.push(e, n), queueMicrotask(() => {
+ q7(), z7();
});
}, Q.requestedOverlay = null, Q.requestedQueue = null, Q.queueOpenRequest = null, Q.initialOverlayOpened = !1;
}
//#endregion
//#region src/jobs.ts
-function hot(e, t, n) {
+function mot(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="${L(e)}" aria-valuemin="0" aria-valuemax="${n}" aria-valuenow="${r}"><svg width="36" height="36" viewBox="0 0 36 36" aria-hidden="true"><circle class="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>${L(e)}<small>${Math.round(i)}%</small></span></div>`;
}
-function got(e, t = 0, n = 0) {
- return n > 0 ? hot(e, t, n) : Xa(e);
+function hot(e, t = 0, n = 0) {
+ return n > 0 ? mot(e, t, n) : Xa(e);
}
-async function _ot(e) {
+async function got(e) {
let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;
for (; e.active();) {
let r;
@@ -95637,14 +95637,14 @@ async function _ot(e) {
await t(2e3);
}
}
-function vot(e) {
+function _ot(e) {
let t = e.note || ((e) => Ja(e, {
label: "任务状态",
variant: "error"
- })), n = e.loading || Xa, r = e.progress || ((e, t, n) => got(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 || Xa, r = e.progress || ((e, t, n) => hot(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;
- _ot({
+ got({
read: e.read,
active: () => !c && e.active() && a.isConnected,
keepWatching: e.watchIdle !== !1,
@@ -95694,7 +95694,7 @@ var $ = {
FOLLOW_MANAGE_TABS: void 0,
followSidebarFilters: void 0
};
-function yot(e) {
+function vot(e) {
let t = e.results || [], n = t.reduce((e, t) => e + (t.added || 0), 0), r = t.reduce((e, t) => e + (t.updated || 0), 0), i = t.filter((e) => e.ok && !e.added && !e.updated).length, a = t.reduce((e, t) => e + (t.skipped || 0), 0), o = t.reduce((e, t) => e + (t.skipped_compilations || 0), 0), s = t.reduce((e, t) => e + (t.history_skipped || 0), 0), c = [];
n && c.push(`新增 <b>${n}</b> 条`), r && c.push(`更新 <b>${r}</b> 条`), a - o && c.push(`跳过 <b>${a - o}</b> 条无资源`), o && c.push(`排除 <b>${o}</b> 个超大合集`), s && c.push(`跳过 <b>${s}</b> 条超出首次采集范围的历史内容`);
let l = t.reduce((e, t) => e + (t.probed || 0), 0);
@@ -95703,25 +95703,25 @@ function yot(e) {
bits: c
};
}
-function bot(e) {
- let { rows: t, bits: n } = yot(e), r = t.filter((e) => !e.ok).length, i = t.filter((e) => e.exhausted).length;
- X5.toast({ html: `检查了 <b>${t.length}</b> 个来源:${n.join(" · ")}` + (i ? ` · <b>${i} 个没有更多内容</b>` : "") + (r ? ` · <b>${r} 个失败</b>` : "") }, {
+function yot(e) {
+ let { rows: t, bits: n } = vot(e), r = t.filter((e) => !e.ok).length, i = t.filter((e) => e.exhausted).length;
+ Z5.toast({ html: `检查了 <b>${t.length}</b> 个来源:${n.join(" · ")}` + (i ? ` · <b>${i} 个没有更多内容</b>` : "") + (r ? ` · <b>${r} 个失败</b>` : "") }, {
warn: !!r,
timeout: r ? 8e3 : 6e3,
sound: r ? "warning" : "success",
action: {
label: "去看更新",
- run: () => I9(!0)
+ run: () => L9(!0)
}
});
}
-function j9() {
- return hi(M9());
+function M9() {
+ return hi(N9());
}
-function xot() {
+function bot() {
return $.controller.read();
}
-function M9() {
+function N9() {
return {
status: $.followFilter,
media: $.followMediaView,
@@ -95736,33 +95736,33 @@ function M9() {
seed: $.followSeed
};
}
-function N9(e) {
+function P9(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 Sot() {
- let e = OL(F("#stats"));
+function xot() {
+ let e = DL(F("#stats"));
return e && e.path === "/follow" && e.host.isConnected ? e : null;
}
-function P9() {
- return !!Sot();
+function F9() {
+ return !!xot();
}
-function F9(e) {
- P9() && NL(F("#stats"), e);
+function I9(e) {
+ F9() && ML(F("#stats"), e);
}
-function Cot(e, t = {}) {
+function Sot(e, t = {}) {
return $.controller.route(e, t);
}
-function I9(e = !1) {
+function L9(e = !1) {
$.controller.enter(e);
}
-async function L9(e, t = !0, n = null, r = !1) {
+async function R9(e, t = !0, n = null, r = !1) {
if (t) {
- !location.pathname.startsWith("/follow/item/") && !r && kc({ followDetailReturnPath: location.pathname + location.search }), O9(`/follow/item/${+e}`, "follow", () => L9(e, !1, n, r));
+ !location.pathname.startsWith("/follow/item/") && !r && kc({ followDetailReturnPath: location.pathname + location.search }), k9(`/follow/item/${+e}`, "follow", () => R9(e, !1, n, r));
return;
}
Hs(), e = +e;
let i = !location.pathname.startsWith("/follow/item/");
- t && i && !r && kc({ followDetailReturnPath: location.pathname + location.search }), !t && !r && kc({ followDetailReturnPath: _L() || "/follow" }), t && hL(), F5()?.showing() !== "follow" && v9(!1, !1, { miniplayer: !1 }), t && Q.route(`/follow/item/${e}`, !1, vL("follow")), await (await P5(_9.stageHost)).open({
+ t && i && !r && kc({ followDetailReturnPath: location.pathname + location.search }), !t && !r && kc({ followDetailReturnPath: gL() || "/follow" }), t && mL(), I5()?.showing() !== "follow" && y9(!1, !1, { miniplayer: !1 }), t && Q.route(`/follow/item/${e}`, !1, _L("follow")), await (await F5(v9.stageHost)).open({
kind: "follow",
id: e,
mediaIndex: n,
@@ -95770,67 +95770,67 @@ async function L9(e, t = !0, n = null, r = !1) {
relatedLimit: Z.appSettings.relatedLimit > 0 ? +Z.appSettings.relatedLimit : 0,
helpers: $.followFeedHelpers,
actions: $.followDetailActions,
- resume: t ? null : $at()
- }), q7();
+ resume: t ? null : Qat()
+ }), J7();
}
-async function wot() {
- await eot(), v9(!1, !1, { miniplayer: !1 }), gL(), Q.route(gc || "/follow"), !(o7.entityPageView && o7.entityPageCurrent() && !F("#index").hidden) && (location.pathname === "/follow" && P9() ? (xot(), F9({ view: M9() })) : kc({ pageOpens: bc + 1 }));
+async function Cot() {
+ await $at(), y9(!1, !1, { miniplayer: !1 }), hL(), Q.route(gc || "/follow"), !(s7.entityPageView && s7.entityPageCurrent() && !F("#index").hidden) && (location.pathname === "/follow" && F9() ? (bot(), I9({ view: N9() })) : kc({ pageOpens: bc + 1 }));
}
-function Tot(e) {
+function wot(e) {
let t = document.createElement("div");
return t.className = "peach-react", co(e, () => {
e.textContent = "", e.append(t);
}), t;
}
-function Eot() {
+function Tot() {
$.followFeedHelpers = Js({
wireDrag: (e) => {
- e && g9(e);
+ e && _9(e);
},
wireScroller: (e) => {
e && Ao(e);
},
listSkeletonHtml: (e) => $.followContentSkeletonHtml(e),
- jobProgress: vot
+ jobProgress: _ot
}), $.followFeedActions = {
- loaded: (e) => zit(e),
- openDetail: (e) => L9(e),
+ loaded: (e) => Rit(e),
+ openDetail: (e) => R9(e),
openAuthor: (e) => Q.navigatePath(`/creators/${encodeURIComponent(e)}`),
- openManage: () => Q.navigatePath(C7()),
- toggleSelection: (e, t) => mit(e, t),
+ openManage: () => Q.navigatePath(w7()),
+ toggleSelection: (e, t) => pit(e, t),
setImagesOnly: (e) => {
- Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), f7();
+ Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), p7();
},
setPhotoLayout: (e) => {
- ET(e), f7();
+ DT(e), p7();
},
- canFlip: () => !ac && !h9() && !window.__scrolling && !X.reduceMotion(),
- toast: (e, { undo: t } = {}) => X5.actionReceipt(e, { undo: t }),
- failure: (e, t) => X5.actionFailure(e, t),
- checkReport: (e) => bot(e)
+ canFlip: () => !ac && !g9() && !window.__scrolling && !X.reduceMotion(),
+ toast: (e, { undo: t } = {}) => Z5.actionReceipt(e, { undo: t }),
+ failure: (e, t) => Z5.actionFailure(e, t),
+ checkReport: (e) => yot(e)
}, $.followFeedShell = {
skeleton: () => $.followSkeletonHtml("正在读取关注内容"),
ground: () => {
- F5()?.showing() !== "follow" && (Hs(), v9(!1), j7(), !P9() && (Q.claimSurface(Q.surfacePath()), A7({ manage: !1 }), F("#stats").querySelector(".peach-react") && PL(F("#stats")), F("#stats").replaceChildren()));
+ I5()?.showing() !== "follow" && (Hs(), y9(!1), M7(), !F9() && (Q.claimSurface(Q.surfacePath()), j7({ manage: !1 }), F("#stats").querySelector(".peach-react") && NL(F("#stats")), F("#stats").replaceChildren()));
}
}, $.followDetailActions = ec({
- view: M9,
- adoptView: N9,
+ view: N9,
+ adoptView: P9,
rememberReturn: (e) => kc({ followDetailReturnPath: e }),
- close: () => void wot(),
- open: (e, t, n) => void L9(e, !0, t, n),
- drawer: zit,
+ close: () => void Cot(),
+ open: (e, t, n) => void R9(e, !0, t, n),
+ drawer: Rit,
openAuthor: (e) => Q.navigatePath(`/creators/${encodeURIComponent(e)}`)
}, {
- toast: (e, { undo: t } = {}) => X5.actionReceipt(e, { undo: t }),
- failure: X5.actionFailure
+ toast: (e, { undo: t } = {}) => Z5.actionReceipt(e, { undo: t }),
+ failure: Z5.actionFailure
});
}
-function Dot() {
+function Eot() {
$.controller = vi({
location: () => location,
- view: M9,
- adoptView: N9,
+ view: N9,
+ adoptView: P9,
session: () => ({
discoverySeed: Cc,
revision: wc,
@@ -95844,20 +95844,20 @@ function Dot() {
preferences: () => ({
selectMode: ac,
selected: ic,
- photoSize: bT(),
- photoLayout: xT(),
+ photoSize: xT(),
+ photoLayout: ST(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
- live: P9,
- push: F9,
+ live: F9,
+ push: I9,
route: Q.route,
- openPage: A9,
- rollSeed: () => Number(X5.rollSeed()),
+ openPage: j9,
+ rollSeed: () => Number(Z5.rollSeed()),
enterSeed: () => Math.floor(Math.random() * 4294967295),
revealFeed: () => {
- Hs(), j7(), A7({ manage: !1 });
+ Hs(), M7(), j7({ manage: !1 });
},
- syncPhotoWalls: f7,
+ syncPhotoWalls: p7,
scrollTop: () => window.scrollTo({
top: 0,
behavior: "smooth"
@@ -95866,20 +95866,20 @@ function Dot() {
}
//#endregion
//#region src/application/lifecycle.js
-var R9 = { overlayScan: void 0 };
-function Oot() {
- Rbe(), qo(document), ma(document.documentElement, { variant: "page" }), ma(F("#drawerScroll")), R9.overlayScan = 0, Y5.mutation(() => {
- R9.overlayScan ||= Y5.delay(() => {
- R9.overlayScan = 0, Wo();
+var z9 = { overlayScan: void 0 };
+function Dot() {
+ zbe(), qo(document), ma(document.documentElement, { variant: "page" }), ma(F("#drawerScroll")), z9.overlayScan = 0, X5.mutation(() => {
+ z9.overlayScan ||= X5.delay(() => {
+ z9.overlayScan = 0, Wo();
});
}).observe(document.body, {
childList: !0,
subtree: !0
- }), Wo(), Ai(document.body), X.homeHasFeed = null, X.barsRequestSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, k7.sidebarProps = {
+ }), Wo(), Ai(document.body), X.homeHasFeed = null, X.barsRequestSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, A7.sidebarProps = {
content: null,
filters: {},
latest: null
- }, k7.sidebarSurface = "", k7.sidebarCatalog = null, k7.sidebarContentSeq = 0, $.followFilter = "", $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.FOLLOW_FEED_SORTS = [
+ }, A7.sidebarSurface = "", A7.sidebarCatalog = null, A7.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", "时长"]
@@ -95887,7 +95887,7 @@ function Oot() {
}
//#endregion
//#region src/application/search-morph.js
-function kot(e, t, n, r, i, a, o) {
+function Oot(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);
@@ -95903,60 +95903,60 @@ function kot(e, t, n, r, i, a, o) {
}
//#endregion
//#region src/application/search.js
-var z9 = {
+var B9 = {
searchControl: void 0,
searchActions: void 0,
searchHelpers: void 0,
searchMorph: void 0,
searchMorphViewport: void 0
};
-function B9() {
- z9.searchControl?.close();
+function V9() {
+ B9.searchControl?.close();
}
-function Aot(e) {
+function kot(e) {
let t = e ? Vi({
...e,
is_jav: !!e.code
}, Z.appSettings.javImage) : "";
return t === "cover" ? ia(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 V9() {
- z9.searchMorph?.cancel(), z9.searchMorph = null, F(".search").classList.remove("search-morphing");
+function H9() {
+ B9.searchMorph?.cancel(), B9.searchMorph = null, F(".search").classList.remove("search-morphing");
}
-function H9(e) {
+function U9(e) {
let t = F(".search"), n = F("#searchBtn");
if (t.classList.contains("open") === e) return;
- let r = !!z9.searchMorph, i = t.getBoundingClientRect(), a = parseFloat(getComputedStyle(t).paddingLeft);
- V9(), t.classList.remove("open");
+ let r = !!B9.searchMorph, i = t.getBoundingClientRect(), a = parseFloat(getComputedStyle(t).paddingLeft);
+ H9(), t.classList.remove("open");
let o = n.getBoundingClientRect();
if (t.classList.toggle("open", e), F("#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 = Bo();
t.classList.add("search-morphing");
- let h = t.animate(kot(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
+ let h = t.animate(Oot(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
duration: m.duration,
easing: "linear",
fill: "both"
});
- z9.searchMorph = h, Y5.handler(h, "onfinish", () => {
- z9.searchMorph === h && V9();
+ B9.searchMorph = h, X5.handler(h, "onfinish", () => {
+ B9.searchMorph === h && H9();
});
}
-function jot() {
- return _9.immerseOpen() ? R5().activeVideo() : F5()?.activeVideo() || null;
+function Aot() {
+ return v9.immerseOpen() ? z5().activeVideo() : I5()?.activeVideo() || null;
}
-function Mot(e) {
+function jot(e) {
return !!e && (e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable);
}
-function Not() {
- z9.searchControl = null, z9.searchActions = {
+function Mot() {
+ B9.searchControl = null, B9.searchActions = {
search: (e) => {
- X.rememberSearchValue(), v9(!1), H.q = e, Ac(), Q.route(H.jav === "1" ? Y7() : H.q ? "/?q=" + encodeURIComponent(H.q) : "/", !0);
+ X.rememberSearchValue(), y9(!1), H.q = e, Ac(), Q.route(H.jav === "1" ? X7() : H.q ? "/?q=" + encodeURIComponent(H.q) : "/", !0);
},
- openItem: (e) => b9(e),
- openEntity: (e, t) => m7(e, t)
- }, z9.searchHelpers = {
- pool: () => cat(H, vt),
- coverHtml: (e) => `<span class="pic">${Aot(e)}</span>`,
+ openItem: (e) => x9(e),
+ openEntity: (e, t) => h7(e, t)
+ }, B9.searchHelpers = {
+ pool: () => sat(H, vt),
+ coverHtml: (e) => `<span class="pic">${kot(e)}</span>`,
present: (e) => Ia(e),
dismiss: (e) => La(e),
wireScroller: (e) => Ao(e),
@@ -95971,68 +95971,68 @@ function Not() {
text: e.value,
scrollLeft: e.scrollLeft || X.searchValueSnapshot.scrollLeft
})
- }, ML("search", {
+ }, jL("search", {
input: F("#q"),
historyLimit: Z.appSettings.searchHistoryLimit,
- actions: z9.searchActions,
- helpers: z9.searchHelpers,
+ actions: B9.searchActions,
+ helpers: B9.searchHelpers,
expose: (e) => {
- z9.searchControl = e;
+ B9.searchControl = e;
}
}, {
container: F("#searchMenu"),
isCurrent: () => !0
- }), Y5.listen(F("#q"), "beforeinput", (e) => {
+ }), X5.listen(F("#q"), "beforeinput", (e) => {
e.isComposing || X.rememberSearchValue(e.currentTarget);
- }), Y5.listen(F("#q"), "scroll", (e) => {
+ }), X5.listen(F("#q"), "scroll", (e) => {
e.currentTarget.value && X.rememberSearchValue(e.currentTarget);
- }), Y5.listen(F("#q"), "pointerdown", (e) => {
+ }), X5.listen(F("#q"), "pointerdown", (e) => {
e.currentTarget.value && X.rememberSearchValue(e.currentTarget);
});
}
-function Pot() {
- z9.searchMorph = null, z9.searchMorphViewport = innerWidth, Y5.listen.bind(Y5, window)("resize", () => {
- innerWidth !== z9.searchMorphViewport && (z9.searchMorphViewport = innerWidth, V9());
- }, { passive: !0 }), Y5.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", V9), Y5.handler(F("#searchBtn"), "onclick", () => {
- H9(!0), F("#q").focus({ preventScroll: !0 });
- }), Y5.handler(F("#searchBack"), "onclick", () => {
- H9(!1), B9(), F("#q").blur(), F("#searchBtn").focus({ preventScroll: !0 });
- }), Y5.listen(F("#q"), "blur", () => Y5.delay(() => {
- document.activeElement !== F("#q") && (!F("#q").value && !F("#searchMenu").matches(":hover") && H9(!1), B9());
- }, 140)), Y5.listen(document, "pointerdown", (e) => {
- e.target.closest(".search") || B9();
- }, !0), Y5.handler(F("#brandHome"), "onclick", (e) => {
- e.preventDefault(), X7(null, !0);
- }), Y5.listen(document, "keydown", (e) => {
+function Not() {
+ B9.searchMorph = null, B9.searchMorphViewport = innerWidth, X5.listen.bind(X5, window)("resize", () => {
+ innerWidth !== B9.searchMorphViewport && (B9.searchMorphViewport = innerWidth, H9());
+ }, { passive: !0 }), X5.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", H9), X5.handler(F("#searchBtn"), "onclick", () => {
+ U9(!0), F("#q").focus({ preventScroll: !0 });
+ }), X5.handler(F("#searchBack"), "onclick", () => {
+ U9(!1), V9(), F("#q").blur(), F("#searchBtn").focus({ preventScroll: !0 });
+ }), X5.listen(F("#q"), "blur", () => X5.delay(() => {
+ document.activeElement !== F("#q") && (!F("#q").value && !F("#searchMenu").matches(":hover") && U9(!1), V9());
+ }, 140)), X5.listen(document, "pointerdown", (e) => {
+ e.target.closest(".search") || V9();
+ }, !0), X5.handler(F("#brandHome"), "onclick", (e) => {
+ e.preventDefault(), Z7(null, !0);
+ }), X5.listen(document, "keydown", (e) => {
if (e.key === "Escape") {
- let t = knt();
+ let t = Ont();
if (t?.isOpen()) {
t.close();
return;
}
if (!F("#searchMenu").hidden) {
- B9();
+ V9();
return;
}
- if (_9.immerseOpen()) {
- R5().close();
+ if (v9.immerseOpen()) {
+ z5().close();
return;
}
- if (_9.stageOpen()) {
- e.defaultPrevented || (e.preventDefault(), F5().requestClose());
+ if (v9.stageOpen()) {
+ e.defaultPrevented || (e.preventDefault(), I5().requestClose());
return;
}
if (F("#drawer").classList.contains("open")) {
- P7(!1);
+ F7(!1);
return;
}
if (ac || rc.size || ic.size) {
- y7(!1, !0);
+ b7(!1, !0);
return;
}
return;
}
- if (Mot(e.target) || e.ctrlKey || e.metaKey || e.altKey) return;
+ if (jot(e.target) || e.ctrlKey || e.metaKey || e.altKey) return;
if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
let t = document.querySelector(`#stage[open] [data-follow-image-step="${e.key === "ArrowRight" ? 1 : -1}"]`);
if (t) {
@@ -96040,30 +96040,30 @@ function Pot() {
return;
}
}
- let t = jot();
+ let t = Aot();
if (t) {
if (e.key === "t" || e.key === "T") {
- e.preventDefault(), F5()?.toggleTheater();
+ e.preventDefault(), I5()?.toggleTheater();
return;
}
if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
- e.preventDefault(), LE(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
+ e.preventDefault(), RE(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
return;
}
if (e.key === " " || e.key === "k" || e.key === "K") {
- e.preventDefault(), IE(t);
+ e.preventDefault(), LE(t);
return;
}
if (e.key === "m" || e.key === "M") {
- e.preventDefault(), lE(t, ".vjs-mute-control");
+ e.preventDefault(), uE(t, ".vjs-mute-control");
return;
}
if (e.key === "f" || e.key === "F") {
- e.preventDefault(), lE(t, ".vjs-fullscreen-control");
+ e.preventDefault(), uE(t, ".vjs-fullscreen-control");
return;
}
if (e.key === "i" || e.key === "I") {
- e.preventDefault(), F5()?.toggleMiniplayer();
+ e.preventDefault(), I5()?.toggleMiniplayer();
return;
}
}
@@ -96071,62 +96071,62 @@ function Pot() {
}
//#endregion
//#region src/application/composition.js
-var U9 = {
+var W9 = {
shellActions: void 0,
routing: void 0
};
-function Fot() {
- let e = Y5;
- T7.entityShapesReady = r7(), Pit(), Git(), U9.shellActions = {
- openItem: (e) => void b9(e),
- openEntity: (e, t) => void m7(e, t),
+function Pot() {
+ let e = X5;
+ E7.entityShapesReady = i7(), Nit(), Wit(), W9.shellActions = {
+ openItem: (e) => void x9(e),
+ openEntity: (e, t) => void h7(e, t),
openTag: (e) => {
- Rit(), r9(e);
+ Lit(), i9(e);
},
- openTasteSignal: tit,
+ openTasteSignal: eit,
navigate: (e) => {
let t = /^\/jav\/movie\/([A-Za-z0-9_-]{2,64})$/.exec(e);
- t ? x9(t[1]) : Q.navigatePath(e);
+ t ? S9(t[1]) : Q.navigatePath(e);
},
- openManage: z7,
+ openManage: B7,
managePath: (e) => Q.routePathOf("section", e) || "",
- openFollow: () => I9(),
- receipt: (e, t) => X5.actionReceipt(e, t),
- toast: (e, t) => X5.toast(e, t),
- failure: X5.actionFailure,
- revealSource: Wrt,
- reopenTutorial: uot,
+ openFollow: () => L9(),
+ receipt: (e, t) => Z5.actionReceipt(e, t),
+ toast: (e, t) => Z5.toast(e, t),
+ failure: Z5.actionFailure,
+ revealSource: Urt,
+ reopenTutorial: lot,
requestConfigurationSection: (e) => {
kc({ configurationRequestedSection: e });
},
- routeReview: oit,
- routeFollowManage: Tit,
+ routeReview: ait,
+ routeFollowManage: wit,
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(Dit(e), t),
+ routeIndex: (e, { replace: t = !1 } = {}) => Q.route(Eit(e), t),
savePeopleLayout: ({ layout: e }) => {
Z.appSettings.peopleLayout = e, Z.saveSettings();
},
- exitSelectMode: () => y7(!1, !1),
- personAvatar: (e, t, n) => S7.personAvatar(e, t, n),
- authorAvatar: (e) => Eit(e),
- showIndexTags: Oit,
- openFollowAuthor: kit,
- openFollowTag: Ait,
- openPlaylist: (e, t) => void aot(e, t, !0),
- canFlip: () => !ac && !h9() && !window.__scrolling && !X.reduceMotion(),
+ exitSelectMode: () => b7(!1, !1),
+ personAvatar: (e, t, n) => C7.personAvatar(e, t, n),
+ authorAvatar: (e) => Tit(e),
+ showIndexTags: Dit,
+ openFollowAuthor: Oit,
+ openFollowTag: kit,
+ openPlaylist: (e, t) => void iot(e, t, !0),
+ canFlip: () => !ac && !g9() && !window.__scrolling && !X.reduceMotion(),
surfaceChanged: (e, t) => {
e === "entity" ? (Hs(), kc({ barsContext: {
type: "home",
filters: H
- } }), M7(), document.body.classList.add("entity-open"), e9(), w7()) : e === "index" ? (Hs(), document.body.classList.remove("entity-open"), Q.claimSurface(t), M7(), document.body.classList.add("index-open"), e9(), w7()) : (Hs(), Q.claimSurface(t), e === "catalog" ? M7() : (j7(), A7({ manage: e === "management" })));
+ } }), N7(), document.body.classList.add("entity-open"), t9(), T7()) : e === "index" ? (Hs(), document.body.classList.remove("entity-open"), Q.claimSurface(t), N7(), document.body.classList.add("index-open"), t9(), T7()) : (Hs(), Q.claimSurface(t), e === "catalog" ? N7() : (M7(), j7({ manage: e === "management" })));
},
clearSearch: () => X.clearSearchField(),
openImmerse: (e) => {
- let t = _9.requestedImmerseId === void 0 ? e : _9.requestedImmerseId;
- _9.requestedImmerseId = void 0, S9(t, !1);
+ let t = v9.requestedImmerseId === void 0 ? e : v9.requestedImmerseId;
+ v9.requestedImmerseId = void 0, C9(t, !1);
},
openQueueRequest: () => {
let e = Q.requestedQueue;
@@ -96134,10 +96134,10 @@ function Fot() {
},
openOverlay: (e) => {
let t = Q.requestedOverlay;
- Q.requestedOverlay = null, HL.navigation.claimed && (!WL() || Q.initialOverlayOpened) ? t?.path === location.pathname && t.open() : (WL() && (Q.initialOverlayOpened = !0), e.kind === "item" ? b9(e.id, !1) : e.kind === "jav" ? x9(e.code, !1) : e.kind === "follow" ? L9(e.id, !1) : y9(e.queue, e.key, e.item, !1));
+ Q.requestedOverlay = null, VL.navigation.claimed && (!UL() || Q.initialOverlayOpened) ? t?.path === location.pathname && t.open() : (UL() && (Q.initialOverlayOpened = !0), e.kind === "item" ? x9(e.id, !1) : e.kind === "jav" ? S9(e.code, !1) : e.kind === "follow" ? R9(e.id, !1) : b9(e.queue, e.key, e.item, !1));
},
closeStage: () => {
- _9.stageOpen() && v9(!1);
+ v9.stageOpen() && y9(!1);
},
grid: {
helpers: X.gridHelpers,
@@ -96145,59 +96145,59 @@ function Fot() {
},
configurable: () => !!vc,
surfaceShown: (e) => {
- e === "index" ? (E9(), q7()) : n9();
+ e === "index" ? (D9(), J7()) : r9();
},
entity: {
- loading: (e, t, n) => o7.application.loading(e, t, n),
- props: (e, t, n) => o7.application.addressProps(e, t, n),
+ loading: (e, t, n) => s7.application.loading(e, t, n),
+ props: (e, t, n) => s7.application.addressProps(e, t, n),
refresh: (e, t, n) => {
- let r = o7.parseEntityFilters(n);
+ let r = s7.parseEntityFilters(n);
e === "creator" && (r.creator = "");
- let i = l7();
- return i.type !== "entity" || i.kind !== e || i.name !== t || !u7(e, t, r, o7.parseMediaView(n), { push: !1 }) ? !1 : (Z7(r), Q7(l7()), !0);
+ let i = u7();
+ return i.type !== "entity" || i.kind !== e || i.name !== t || !d7(e, t, r, s7.parseMediaView(n), { push: !1 }) ? !1 : (Q7(r), $7(u7()), !0);
}
},
follow: $.followFeedShell,
catalog: {
- defaultLoc: () => dat("local,115"),
+ defaultLoc: () => uat("local,115"),
open: (e, { entering: t = !1, retitle: n = !1 } = {}) => {
- n && (k9(), K7(), R7()), t && $5(), e === "/trash" ? (X.clearSearchField(), M7()) : (F("#q").value = H.q, X.rememberSearchValue()), E9(), n9(), Z.handOff(a9());
+ n && (A9(), q7(), z7()), t && e7(), e === "/trash" ? (X.clearSearchField(), N7()) : (F("#q").value = H.q, X.rememberSearchValue()), D9(), r9(), Z.handOff(o9());
},
load: () => {
- Z.handOff(a9());
+ Z.handOff(o9());
},
fill: () => {
- if (c9() || !WL() && !F("#grid").querySelector(".catalog-skeleton")) return;
+ if (l9() || !UL() && !F("#grid").querySelector(".catalog-skeleton")) return;
let e = F("#count");
- e.removeAttribute("aria-busy"), e.removeAttribute("aria-label"), Mat(Q.surfaceToken(Q.surfacePath()));
+ e.removeAttribute("aria-busy"), e.removeAttribute("aria-label"), jat(Q.surfaceToken(Q.surfacePath()));
},
release: () => {
- o9(), a7(), PL(F("#libraryProcessingNotice"));
+ s9(), o7(), NL(F("#libraryProcessingNotice"));
}
}
- }, U9.routing = !1, Y5.own(HL.listen((e) => {
- Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !dL(e.location.pathname) && v9(!1), U9.routing && !e.claimed && k9();
- })), Tnt(U9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), Jit(), yit(), I7(), Promise.all([
- p9(),
- Kit(),
- T7.entityShapesReady
- ]).then(() => e.isActive && T7.wantsDiscoveryBars() ? n9() : null).then(() => {
- e.isActive && (E9(), Yat(), U9.routing = !0, kc({ pageOpens: 1 }), k9(), q7());
+ }, W9.routing = !1, X5.own(VL.listen((e) => {
+ Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !uL(e.location.pathname) && y9(!1), W9.routing && !e.claimed && A9();
+ })), wnt(W9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), qit(), vit(), L7(), Promise.all([
+ m9(),
+ Git(),
+ E7.entityShapesReady
+ ]).then(() => e.isActive && E7.wantsDiscoveryBars() ? r9() : null).then(() => {
+ e.isActive && (D9(), Jat(), W9.routing = !0, kc({ pageOpens: 1 }), A9(), J7());
}).catch((t) => {
e.isActive && console.error("应用启动失败", t);
});
}
//#endregion
//#region src/theme-transition.ts
-var W9 = !1;
-async function Iot(e, t) {
- if (W9) return;
+var G9 = !1;
+async function Fot(e, t) {
+ if (G9) 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}}`, W9 = !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}}`, G9 = !0, document.head.append(o);
let s = document.documentElement;
s.dataset.themeSnapshot = "true";
let c = !1, l = () => {
@@ -96208,14 +96208,14 @@ async function Iot(e, t) {
} catch {
l();
} finally {
- delete s.dataset.themeSnapshot, o.remove(), W9 = !1;
+ delete s.dataset.themeSnapshot, o.remove(), G9 = !1;
}
}
//#endregion
//#region src/application/chrome.js
-function Lot() {
+function Iot() {
(() => {
- let e = Y5, t = [
+ let e = X5, t = [
"#brandHome",
"#filterBtn",
"#settingsBtn"
@@ -96288,7 +96288,7 @@ function Lot() {
o.className = "mark", o.setAttribute("aria-hidden", "true"), o.innerHTML = a(n.find((e) => e[0] === i)?.[2] || "database"), c.querySelector(".mark").replaceWith(o), l.innerHTML = `<p>媒体库</p><div class="board-library-rows">${n.map(([e, t, n]) => `<button type="button" data-library="${L(e)}" aria-pressed="${e === i}"><span class="board-library-avatar">${a(n)}</span><span>${L(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), location.assign("/");
})), e.handler(l.querySelector("[data-library-manage]"), "onclick", () => {
- d.setOpen(!1), P7(!1), sit("媒体库与入库");
+ d.setOpen(!1), F7(!1), oit("媒体库与入库");
});
let s = l.querySelector(".board-library-rows");
e.listen(s, "pointerover", (e) => {
@@ -96305,18 +96305,18 @@ function Lot() {
h.before(g), e.own(() => g.remove());
let _ = document.createElement("div");
_.className = "board-sidebar-foot", e.own(() => _.remove()), _.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="浅色主题">${I("sun")}</button><button type="button" data-board-theme="dark" aria-label="深色主题">${I("moon")}</button></div>`, _.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>"), _.querySelector(".board-foot-actions").append(document.querySelector("#settingsBtn")), document.querySelector("#drawer").append(_), _.querySelectorAll("[data-board-theme]").forEach((t) => e.handler(t, "onclick", () => {
- t.getAttribute("aria-pressed") !== "true" && Iot(t, () => {
- Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), lT();
+ t.getAttribute("aria-pressed") !== "true" && Fot(t, () => {
+ Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), uT();
});
- })), lT();
+ })), uT();
let v = document.createElement("div");
v.className = "popmenu board-glow-menu", v.id = "boardGlowMenu", v.hidden = !0, v.setAttribute("popover", "manual"), v.setAttribute("role", "dialog"), v.setAttribute("aria-label", "配色"), document.body.append(v), e.own(() => v.remove());
let y = _.querySelector("#boardGlowBtn"), b = Ba(_, y, v);
- e.own(b.dispose), e.own(oce(y)), Fnt({
+ e.own(b.dispose), e.own(ace(y)), Pnt({
root: v,
store: Z.settingsStore,
openDetails: () => {
- e.isActive && (b.setOpen(!1), P7(!1), Uit("外观与导航").then((t) => {
+ e.isActive && (b.setOpen(!1), F7(!1), Hit("外观与导航").then((t) => {
e.isActive && t.reveal("#homeGlowControls");
}));
}
@@ -96328,17 +96328,17 @@ function Lot() {
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 = !N7();
+ let r = n.classList.contains("open"), i = !P7();
i || r ? h.parentElement !== t && t.append(h) : h.parentElement !== g.parentElement && g.after(h), n.inert = !i && !r;
}
- Z.placeSidebarHead = x, x(), e.listen(document, "board:sidebar", x), e.listen.bind(Y5, window)("resize", x);
+ Z.placeSidebarHead = x, x(), e.listen(document, "board:sidebar", x), e.listen.bind(X5, window)("resize", x);
let S = !1;
function C() {
S = !1, document.body.classList.toggle("board-scrolled", scrollY > 8);
}
- if (e.listen.bind(Y5, window)("scroll", () => {
+ if (e.listen.bind(X5, window)("scroll", () => {
S || (S = !0, e.frame(C));
- }, { passive: !0 }), e.listen.bind(Y5, window)("resize", C), C(), /Chrome|Chromium|Edg\//.test(navigator.userAgent)) {
+ }, { passive: !0 }), e.listen.bind(X5, window)("resize", C), C(), /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");
@@ -96413,35 +96413,35 @@ function Lot() {
subtree: !0
}), f();
}
- })(), P7(!N7() && sessionStorage.getItem("board.sidebar") !== "closed");
+ })(), F7(!P7() && sessionStorage.getItem("board.sidebar") !== "closed");
}
//#endregion
//#region src/application/initialize.js
-function Rot() {
- Oot(), pot(), Fit(), mot(), Zat(), znt(), Bat(), dot(), Qrt(), cot(), bit(), Vat(), Rrt(), cit(), Eot(), jit(), $rt(), Dot(), Mit(), eit(), rat(), Hat(), Not(), lot(), Pot(), Qat(), Fot(), Lot(), Y5.own(o9), Y5.own(D9);
+function Lot() {
+ Dot(), fot(), Pit(), pot(), Xat(), Rnt(), zat(), uot(), Zrt(), sot(), yit(), Bat(), Lrt(), sit(), Tot(), Ait(), Qrt(), Eot(), jit(), $rt(), nat(), Vat(), Mot(), cot(), Not(), Zat(), Pot(), Iot(), X5.own(s9), X5.own(O9);
}
//#endregion
//#region src/ui-kit/middle-truncate.ts
-var zot = "…", Bot = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, G9 = /* @__PURE__ */ new WeakMap(), K9 = /* @__PURE__ */ new WeakSet(), q9 = null, J9 = null, Y9 = /* @__PURE__ */ new Set(), Vot = (e) => Bot ? [...Bot.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? ""));
-function Hot(e, t) {
- let n = Vot(e);
+var Rot = "…", zot = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, K9 = /* @__PURE__ */ new WeakMap(), q9 = /* @__PURE__ */ new WeakSet(), J9 = null, Y9 = null, X9 = /* @__PURE__ */ new Set(), Bot = (e) => zot ? [...zot.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? ""));
+function Vot(e, t) {
+ let n = Bot(e);
if (!n.length || t(e)) return String(e ?? "");
- let r = 0, i = Math.max(0, n.length - 1), a = zot;
+ let r = 0, i = Math.max(0, n.length - 1), a = Rot;
for (; r <= i;) {
- let e = r + i >> 1, o = Math.ceil(e / 2), s = Math.floor(e / 2), c = n.slice(0, o).join("") + zot + (s ? n.slice(-s).join("") : "");
+ let e = r + i >> 1, o = Math.ceil(e / 2), s = Math.floor(e / 2), c = n.slice(0, o).join("") + Rot + (s ? n.slice(-s).join("") : "");
t(c) ? (a = c, r = e + 1) : i = e - 1;
}
return a;
}
-var Uot = Object.assign((e, t) => {
- let n = getComputedStyle(e), r = (Uot.canvas ||= document.createElement("canvas")).getContext("2d");
+var Hot = Object.assign((e, t) => {
+ let n = getComputedStyle(e), r = (Hot.canvas ||= document.createElement("canvas")).getContext("2d");
if (!r) return Infinity;
r.font = n.font || `${n.fontStyle} ${n.fontWeight} ${n.fontSize} ${n.fontFamily}`;
let i = r.measureText(t).width, a = parseFloat(n.letterSpacing);
- Number.isFinite(a) && (i += Math.max(0, Vot(t).length - 1) * a);
+ Number.isFinite(a) && (i += Math.max(0, Bot(t).length - 1) * a);
let o = parseFloat(n.wordSpacing);
return Number.isFinite(o) && (i += (t.match(/\s/g) || []).length * o), i;
-}, { canvas: null }), Wot = (e) => {
+}, { canvas: null }), Uot = (e) => {
if (e.dataset.middleTruncateWithin === void 0) return e.clientWidth;
let t = e.parentElement;
if (!t) return e.clientWidth;
@@ -96451,56 +96451,56 @@ var Uot = Object.assign((e, t) => {
n === e ? a++ : t > 0 && (i += t, a++);
}
return t.getBoundingClientRect().width - (parseFloat(n.paddingLeft) || 0) - (parseFloat(n.paddingRight) || 0) - i - r * Math.max(0, a - 1);
-}, Got = (e) => {
- let t = G9.get(e);
+}, Wot = (e) => {
+ let t = K9.get(e);
if (!t || !e.isConnected) return;
- let n = Wot(e), r = n > 0 ? Hot(t.full, (t) => Uot(e, t) <= n) : t.full;
+ let n = Uot(e), r = n > 0 ? Vot(t.full, (t) => Hot(e, t) <= n) : t.full;
t.rendered = r, e.textContent !== r && (e.textContent = r);
let i = r !== t.full;
e.classList.toggle("middle-truncated", i), e.setAttribute("aria-label", t.full), (!e.hasAttribute("title") || e.dataset.middleTitle === "true") && (e.title = t.full, e.dataset.middleTitle = "true");
-}, X9 = (e) => {
- let t = G9.get(e);
+}, Z9 = (e) => {
+ let t = K9.get(e);
t && !t.raf && (t.raf = requestAnimationFrame(() => {
- t.raf = 0, Got(e);
+ t.raf = 0, Wot(e);
}));
-}, Kot = (e) => {
- e instanceof HTMLElement && (G9.has(e) || G9.set(e, {
+}, Got = (e) => {
+ e instanceof HTMLElement && (K9.has(e) || K9.set(e, {
full: e.textContent || "",
rendered: e.textContent || "",
raf: 0
- }), K9.has(e) || (K9.add(e), Y9.add(e), e.dataset.middleTruncateWithin !== void 0 && e.parentElement ? q9?.observe(e.parentElement) : q9?.observe(e)), X9(e));
-}, qot = (e) => {
+ }), q9.has(e) || (q9.add(e), X9.add(e), e.dataset.middleTruncateWithin !== void 0 && e.parentElement ? J9?.observe(e.parentElement) : J9?.observe(e)), Z9(e));
+}, Kot = (e) => {
if (e.nodeType !== Node.ELEMENT_NODE) return;
let t = e;
- t.matches("[data-middle-truncate]") && Kot(t), t.querySelectorAll("[data-middle-truncate]").forEach(Kot);
+ t.matches("[data-middle-truncate]") && Got(t), t.querySelectorAll("[data-middle-truncate]").forEach(Got);
};
-function Jot(e = document) {
- J9?.(), K9 = /* @__PURE__ */ new WeakSet(), Y9 = /* @__PURE__ */ new Set();
- let t = Y9, n = !0;
- q9 = new ResizeObserver((e) => e.forEach((e) => {
- n && (X9(e.target), e.target.querySelectorAll?.(":scope>[data-middle-truncate-within]").forEach(X9));
+function qot(e = document) {
+ Y9?.(), q9 = /* @__PURE__ */ new WeakSet(), X9 = /* @__PURE__ */ new Set();
+ let t = X9, n = !0;
+ J9 = new ResizeObserver((e) => e.forEach((e) => {
+ n && (Z9(e.target), e.target.querySelectorAll?.(":scope>[data-middle-truncate-within]").forEach(Z9));
}));
- let r = q9;
- qot(e.documentElement || e);
+ let r = J9;
+ Kot(e.documentElement || e);
let i = new MutationObserver((e) => e.forEach((e) => {
if (!n) return;
- e.addedNodes.forEach(qot);
+ e.addedNodes.forEach(Kot);
let t = (e.target.nodeType === Node.TEXT_NODE ? e.target.parentElement : e.target)?.closest?.("[data-middle-truncate]");
if (!t) return;
- let r = G9.get(t);
- r && t.textContent !== r.rendered && (r.full = t.textContent || "", t.dataset.middleTitle === "true" && t.removeAttribute("title"), X9(t));
+ let r = K9.get(t);
+ r && t.textContent !== r.rendered && (r.full = t.textContent || "", t.dataset.middleTitle === "true" && t.removeAttribute("title"), Z9(t));
}));
i.observe(e.body || e, {
childList: !0,
characterData: !0,
subtree: !0
}), document.fonts?.ready?.then(() => {
- n && e.querySelectorAll("[data-middle-truncate]").forEach(X9);
+ n && e.querySelectorAll("[data-middle-truncate]").forEach(Z9);
});
let a = (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 && G9.get(n);
+ let n = (t.anchorNode?.nodeType === Node.ELEMENT_NODE ? t.anchorNode : t.anchorNode?.parentElement)?.closest?.("[data-middle-truncate]"), r = n && K9.get(n);
r && n.contains(t.focusNode) && e.clipboardData && (e.clipboardData?.setData("text/plain", r.full), e.preventDefault());
};
e.addEventListener("copy", a);
@@ -96508,61 +96508,61 @@ function Jot(e = document) {
if (n) {
n = !1, r.disconnect(), i.disconnect(), e.removeEventListener("copy", a);
for (let e of t) {
- let t = G9.get(e);
+ let t = K9.get(e);
t?.raf && (cancelAnimationFrame(t.raf), t.raf = 0);
}
- t.clear(), J9 === o && (J9 = null, q9 = null);
+ t.clear(), Y9 === o && (Y9 = null, J9 = null);
}
};
- return J9 = o, o;
+ return Y9 = o, o;
}
//#endregion
//#region src/react/application.tsx
-var Z9 = null;
-function Yot(e) {
- Z9 !== e || e.owners || (Z9 = null, e.effects.dispose());
-}
-function Xot() {
- if (!Z9) {
- let e = Rnt();
- Z9 = {
+var Q9 = null;
+function Jot(e) {
+ Q9 !== e || e.owners || (Q9 = null, e.effects.dispose());
+}
+function Yot() {
+ if (!Q9) {
+ let e = Lnt();
+ Q9 = {
effects: e,
owners: 0
- }, e.own(Jot(document)), e.own(() => {
+ }, e.own(qot(document)), e.own(() => {
Hs(), V.cancelQueries();
- }), e.own(Ent), e.own(_Ce), e.own(Pa);
+ }), e.own(Tnt), e.own(vCe), e.own(Pa);
}
- return Z9.owners += 1, Z9.effects.resume(), Z9;
+ return Q9.owners += 1, Q9.effects.resume(), Q9;
}
-function Zot() {
+function Xot() {
let [e, t] = (0, b.useState)(null);
return (0, b.useLayoutEffect)(() => {
- let e = Z9 === null, n = Xot(), r = wnt(t);
+ let e = Q9 === null, n = Yot(), r = Cnt(t);
if (e) try {
- Rot();
+ Lot();
} 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(() => Yot(n)));
+ r(), --n.owners, !n.owners && (n.effects.pause(), queueMicrotask(() => Jot(n)));
};
- }, []), /* @__PURE__ */ (0, x.jsx)(FCe, { actions: e });
+ }, []), /* @__PURE__ */ (0, x.jsx)(ICe, { actions: e });
}
-var Q9 = /* @__PURE__ */ new WeakMap();
-function Qot(e) {
- let t = Q9.get(e);
+var $9 = /* @__PURE__ */ new WeakMap();
+function Zot(e) {
+ let t = $9.get(e);
if (t) return t;
- let n = (0, ht.createRoot)(e, ICe);
- Q9.set(e, n);
+ let n = (0, ht.createRoot)(e, LCe);
+ $9.set(e, n);
let r = n.unmount.bind(n);
return n.unmount = () => {
- Q9.get(e) === n && (Q9.delete(e), r(), Z9 && Yot(Z9));
- }, (0, mt.flushSync)(() => n.render(/* @__PURE__ */ (0, x.jsx)(Zot, {}))), n;
+ $9.get(e) === n && ($9.delete(e), r(), Q9 && Jot(Q9));
+ }, (0, mt.flushSync)(() => n.render(/* @__PURE__ */ (0, x.jsx)(Xot, {}))), n;
}
//#endregion
//#region src/react/bootstrap.tsx
-var $9 = document.getElementById("appRoot");
-if (!$9) throw Error("主界面宿主缺失");
-Qot($9);
+var Qot = document.getElementById("appRoot");
+if (!Qot) throw Error("主界面宿主缺失");
+Zot(Qot);
//#endregion
-export { lT as applyTheme, HL as peachHistory, ro as popCount, Int as showToast };
+export { uT as applyTheme, VL as peachHistory, ro as popCount, Fnt as showToast };