react-docs-ui 0.6.16 → 0.6.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AIChatDialog-W60DtiEW.js → AIChatDialog-BnAX3dRn.js} +2 -2
- package/dist/{AISelectionTrigger-MaBGhxTE.js → AISelectionTrigger-SLyb8Vep.js} +2 -2
- package/dist/{AISettingsPanel-aiMnncnQ.js → AISettingsPanel-Bsd_wLP4.js} +3 -3
- package/dist/{DocsApp-CUrnKwOU.js → DocsApp-CNVM_Zcf.js} +3505 -3212
- package/dist/{GlobalContextMenu-DG6x5Y5w.js → GlobalContextMenu-BtVjQk0v.js} +1 -1
- package/dist/{MdxContent-CMB8ZbXo.js → MdxContent-D2l4Au7Z.js} +310 -306
- package/dist/{MdxContent.lazy-C4rcCv4v.js → MdxContent.lazy-BirC7wrH.js} +1 -1
- package/dist/{SearchDialog-tUSKKsxW.js → SearchDialog-DWVre6R9.js} +66 -56
- package/dist/{SearchRuntime-5fXpxDsi.js → SearchRuntime-D0rSMKV3.js} +6 -5
- package/dist/_basePickBy-3HEi44E5.js +166 -0
- package/dist/_baseUniq-CyOGXr0t.js +682 -0
- package/dist/arc-DULIiw5L.js +80 -0
- package/dist/architecture-PBZL5I3N-DT4oHaWT.js +3 -0
- package/dist/architectureDiagram-2XIMDMQ5-CqinFxzU.js +4045 -0
- package/dist/array-DHiPsILf.js +6 -0
- package/dist/blockDiagram-WCTKOSBZ-4JAhKeqm.js +3025 -0
- package/dist/c4Diagram-IC4MRINW-DtmtzsQQ.js +2964 -0
- package/dist/channel-BPONoOHQ.js +5 -0
- package/dist/chunk-4BX2VUAB-Bv5NGtUU.js +8 -0
- package/dist/chunk-55IACEB6-BXL-F-QI.js +8 -0
- package/dist/chunk-7E7YKBS2-CuTUVGrY.js +23 -0
- package/dist/chunk-7R4GIKGN-Qkaxl46X.js +2596 -0
- package/dist/chunk-C72U2L5F-42ScKBi2.js +23 -0
- package/dist/chunk-EGIJ26TM-D9jfybGA.js +23 -0
- package/dist/chunk-FMBD7UC4-DZXaweDk.js +5 -0
- package/dist/chunk-GEFDOKGD-OXBFFBXI.js +1121 -0
- package/dist/chunk-GLR3WWYH-BNwKwdNm.js +41 -0
- package/dist/chunk-HHEYEP7N-BQ3EJT5G.js +9 -0
- package/dist/chunk-JSJVCQXG-DNkHiMyV.js +60 -0
- package/dist/chunk-KX2RTZJC-DuTfSwwu.js +25 -0
- package/dist/chunk-KYZI473N-COpLSX52.js +3434 -0
- package/dist/chunk-L3YUKLVL-BdSnx12A.js +23 -0
- package/dist/chunk-MX3YWQON-CrwNXQjz.js +80 -0
- package/dist/chunk-NBPlniwU.js +23 -0
- package/dist/chunk-NQ4KR5QH-Y07nfCMJ.js +2002 -0
- package/dist/chunk-O4XLMI2P-CuexQiBs.js +511 -0
- package/dist/chunk-OZEHJAEY-D6vfkGpv.js +64 -0
- package/dist/chunk-PQ6SQG4A-6cI0SCcc.js +67 -0
- package/dist/chunk-PU5JKC2W-an2DzREj.js +1885 -0
- package/dist/chunk-QZHKN3VN-BKMQ36H3.js +15 -0
- package/dist/chunk-R5LLSJPH-DOyud7qN.js +35 -0
- package/dist/chunk-WL4C6EOR-y1gU9zpd.js +3194 -0
- package/dist/chunk-XIRO2GV7-BD1Cp5pB.js +30 -0
- package/dist/chunk-XPW4576I-DOBR2ORN.js +1146 -0
- package/dist/chunk-XZSTWKYB-BQ9uqNJe.js +15797 -0
- package/dist/chunk-YBOYWFTD-BT3l76Xm.js +32 -0
- package/dist/classDiagram-VBA2DB6C-AUxID939.js +29 -0
- package/dist/classDiagram-v2-RAHNMMFH-tupy2OPi.js +29 -0
- package/dist/clone-CRTZj7kp.js +8 -0
- package/dist/cose-bilkent-S5V4N54A-Bbd2d2j7.js +2250 -0
- package/dist/cytoscape.esm-CQKQOqRt.js +18100 -0
- package/dist/dagre-Cyr5_x2X.js +1483 -0
- package/dist/dagre-KLK3FWXG-Bjsq-TtB.js +294 -0
- package/dist/defaultLocale-P2nWjZJu.js +201 -0
- package/dist/diagram-E7M64L7V-CCTuI46e.js +527 -0
- package/dist/diagram-IFDJBPK2-DI_KTvRx.js +213 -0
- package/dist/diagram-P4PSJMXO-D3SeWDdU.js +133 -0
- package/dist/dist-CSS39H68.js +50 -0
- package/dist/docs-app.es.js +1 -1
- package/dist/erDiagram-INFDFZHY-Db_DAoTf.js +1666 -0
- package/dist/flowDiagram-PKNHOUZH-TqyNp9Dn.js +4161 -0
- package/dist/ganttDiagram-A5KZAMGK-DqNVbtHo.js +3072 -0
- package/dist/gitGraph-HDMCJU4V-DQudxfzL.js +3 -0
- package/dist/gitGraphDiagram-K3NZZRJ6-Cga9Wfgb.js +625 -0
- package/dist/graphlib-CexrUFs9.js +225 -0
- package/dist/info-3K5VOQVL-DiuN3kw6.js +3 -0
- package/dist/infoDiagram-LFFYTUFH-bvABxJph.js +19 -0
- package/dist/init-GWRygwCo.js +15 -0
- package/dist/isArrayLikeObject-CG2kGrxR.js +578 -0
- package/dist/isEmpty-C8iIdTg-.js +35 -0
- package/dist/ishikawaDiagram-PHBUUO56-DKGPu-hu.js +717 -0
- package/dist/journeyDiagram-4ABVD52K-DefcNau0.js +883 -0
- package/dist/kanban-definition-K7BYSVSG-BXvFQzdZ.js +971 -0
- package/dist/line-ChPoSgrf.js +34 -0
- package/dist/linear-BeQrMQNe.js +289 -0
- package/dist/math-CgS6d5p2.js +10 -0
- package/dist/{shiki-highlighter-BmQSSJpS.js → mdx-components-Bz45lgrV.js} +1387 -1288
- package/dist/mdx-components-TEc3uhbY.js +4 -0
- package/dist/mermaid-parser.core-CDTyVXPe.js +59 -0
- package/dist/mermaid.core-CHJrGTZ9.js +919 -0
- package/dist/mindmap-definition-YRQLILUH-CqsMcFhX.js +964 -0
- package/dist/ordinal-DUEC8Lr4.js +65 -0
- package/dist/packet-RMMSAZCW-ZLaHU0Ov.js +3 -0
- package/dist/path-CzRXOvk1.js +85 -0
- package/dist/pie-UPGHQEXC-COgIbE0j.js +3 -0
- package/dist/pieDiagram-SKSYHLDU-C8Y5Bc8d.js +165 -0
- package/dist/quadrantDiagram-337W2JSQ-DRWBX5cn.js +1974 -0
- package/dist/radar-KQ55EAFF-ABFVVcns.js +3 -0
- package/dist/react-docs-ui.css +1 -1
- package/dist/react-docs-ui.es.js +19 -19
- package/dist/requirementDiagram-Z7DCOOCP-EkyUnFq8.js +2201 -0
- package/dist/rough.esm-qTNNhHn7.js +1352 -0
- package/dist/sankeyDiagram-WA2Y5GQK-Cmas7IuZ.js +920 -0
- package/dist/sequenceDiagram-2WXFIKYE-B7TrFw3o.js +4109 -0
- package/dist/src-B8kKzJ6p.js +2146 -0
- package/dist/stateDiagram-RAJIS63D-DyqZyFdt.js +217 -0
- package/dist/stateDiagram-v2-FVOUBMTO-5UjWXgt6.js +27 -0
- package/dist/timeline-definition-YZTLITO2-qhoXPOhL.js +830 -0
- package/dist/treemap-KZPCXAKY-CRdRsoRo.js +3 -0
- package/dist/types/components/AnnouncementBar.d.ts +12 -0
- package/dist/types/components/AnnouncementBar.d.ts.map +1 -0
- package/dist/types/components/DocsLayout.d.ts +8 -2
- package/dist/types/components/DocsLayout.d.ts.map +1 -1
- package/dist/types/components/HeaderNav.d.ts +17 -1
- package/dist/types/components/HeaderNav.d.ts.map +1 -1
- package/dist/types/components/MdxContent.d.ts.map +1 -1
- package/dist/types/components/MobileSidebar.d.ts +2 -1
- package/dist/types/components/MobileSidebar.d.ts.map +1 -1
- package/dist/types/components/PageFeedback.d.ts +11 -0
- package/dist/types/components/PageFeedback.d.ts.map +1 -0
- package/dist/types/components/PageMetaActions.d.ts +15 -0
- package/dist/types/components/PageMetaActions.d.ts.map +1 -0
- package/dist/types/components/PageNavigation.d.ts +2 -1
- package/dist/types/components/PageNavigation.d.ts.map +1 -1
- package/dist/types/components/SearchLauncher.d.ts +2 -1
- package/dist/types/components/SearchLauncher.d.ts.map +1 -1
- package/dist/types/components/SidebarNav.d.ts +2 -1
- package/dist/types/components/SidebarNav.d.ts.map +1 -1
- package/dist/types/components/mdx-components/Mermaid.d.ts +6 -0
- package/dist/types/components/mdx-components/Mermaid.d.ts.map +1 -0
- package/dist/types/components/mdx-components/Tabs.d.ts +13 -0
- package/dist/types/components/mdx-components/Tabs.d.ts.map +1 -0
- package/dist/types/components/mdx-components/index.d.ts +2 -0
- package/dist/types/components/mdx-components/index.d.ts.map +1 -1
- package/dist/types/components/search/SearchProvider.d.ts +2 -1
- package/dist/types/components/search/SearchProvider.d.ts.map +1 -1
- package/dist/types/components/search/SearchRuntime.d.ts +2 -1
- package/dist/types/components/search/SearchRuntime.d.ts.map +1 -1
- package/dist/types/lib/component-scanner.d.ts.map +1 -1
- package/dist/types/lib/config.d.ts +42 -0
- package/dist/types/lib/config.d.ts.map +1 -1
- package/dist/types/lib/navigation.d.ts +1 -1
- package/dist/types/lib/navigation.d.ts.map +1 -1
- package/dist/types/lib/page-meta.d.ts +16 -0
- package/dist/types/lib/page-meta.d.ts.map +1 -0
- package/dist/types/lib/search/build/index-generator.d.ts.map +1 -1
- package/dist/types/lib/search/build/types.d.ts +1 -0
- package/dist/types/lib/search/build/types.d.ts.map +1 -1
- package/dist/types/lib/search/runtime/search-engine.d.ts.map +1 -1
- package/dist/types/lib/search/runtime/types.d.ts +1 -0
- package/dist/types/lib/search/runtime/types.d.ts.map +1 -1
- package/dist/types/lib/versioning.d.ts +6 -0
- package/dist/types/lib/versioning.d.ts.map +1 -0
- package/dist/vennDiagram-LZ73GAT5-DlUUn7LI.js +1858 -0
- package/dist/xychartDiagram-JWTSCODW-oT2IR7c0.js +2041 -0
- package/package.json +4 -1
- /package/dist/{AIProvider-C1_b1iKH.js → AIProvider-niZNPSGi.js} +0 -0
- /package/dist/{context-menu-CB7erSoV.js → context-menu-BIQsQup7.js} +0 -0
- /package/dist/{dialog-DQ6nkP0y.js → dialog-D8otbqQL.js} +0 -0
- /package/dist/{use-toast-d9VPBjMn.js → use-toast-DK69oadB.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./utils-Ct96Mtjw.js";
|
|
2
|
-
import { l as t, r as n, t as r, u as i } from "./dialog-
|
|
2
|
+
import { l as t, r as n, t as r, u as i } from "./dialog-D8otbqQL.js";
|
|
3
3
|
import { createContext as a, forwardRef as o, useCallback as s, useContext as c, useEffect as l, useRef as u, useState as d } from "react";
|
|
4
4
|
import { FileText as f, Loader2 as p, Search as m, X as h } from "lucide-react";
|
|
5
5
|
import { useNavigate as g } from "react-router-dom";
|
|
@@ -31,18 +31,24 @@ var b = 20, x = class {
|
|
|
31
31
|
}
|
|
32
32
|
search(e) {
|
|
33
33
|
if (!this.initialized) return [];
|
|
34
|
-
let { query: t,
|
|
35
|
-
|
|
34
|
+
let { query: t, version: n, limit: r = b } = e, i = t.toLowerCase().trim();
|
|
35
|
+
if (!i) return [];
|
|
36
|
+
let a = Math.max(r * 5, r);
|
|
37
|
+
return this.index.search(i, { limit: a }).map((e) => {
|
|
36
38
|
let t = this.sections.get(e);
|
|
37
|
-
|
|
39
|
+
if (!t) return null;
|
|
40
|
+
if (n) {
|
|
41
|
+
if (t.version && t.version !== n) return null;
|
|
42
|
+
} else if (t.version) return null;
|
|
43
|
+
return {
|
|
38
44
|
id: t.id,
|
|
39
45
|
pageTitle: t.pageTitle,
|
|
40
46
|
sectionTitle: t.sectionTitle,
|
|
41
|
-
snippet: this.generateSnippet(t.content,
|
|
47
|
+
snippet: this.generateSnippet(t.content, i),
|
|
42
48
|
url: t.url,
|
|
43
49
|
score: 1
|
|
44
|
-
}
|
|
45
|
-
}).filter((e) => e !== null)
|
|
50
|
+
};
|
|
51
|
+
}).filter((e) => e !== null).slice(0, r);
|
|
46
52
|
}
|
|
47
53
|
generateSnippet(e, t) {
|
|
48
54
|
if (!e) return "";
|
|
@@ -121,86 +127,90 @@ function k() {
|
|
|
121
127
|
if (!e) throw Error("useSearch must be used within a SearchProvider");
|
|
122
128
|
return e;
|
|
123
129
|
}
|
|
124
|
-
function A({ children: e, lang: t = "zh-cn",
|
|
125
|
-
let [
|
|
126
|
-
l(() => (
|
|
127
|
-
|
|
130
|
+
function A({ children: e, lang: t = "zh-cn", version: n, enabled: r = !0, maxResults: i = 20, enableHotkeys: a = !0 }) {
|
|
131
|
+
let [o, c] = d(!1), [f, p] = d(!1), [m, h] = d(null), [g, v] = d([]), [y, b] = d(""), [S, C] = d(!1), w = u(null), T = u(null), E = u(null), D = u(!1);
|
|
132
|
+
l(() => (w.current = new x(), () => {
|
|
133
|
+
w.current &&= (w.current.clear(), null);
|
|
128
134
|
}), []), l(() => {
|
|
129
|
-
|
|
130
|
-
}, [t])
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
135
|
+
E.current && E.current !== t && (c(!1), E.current = null, v([]), b(""), w.current && w.current.clear());
|
|
136
|
+
}, [t]), l(() => {
|
|
137
|
+
v([]);
|
|
138
|
+
}, [n]);
|
|
139
|
+
let k = s(async () => {
|
|
140
|
+
if (!(o && E.current === t || D.current || !r)) {
|
|
141
|
+
D.current = !0, p(!0), h(null);
|
|
134
142
|
try {
|
|
135
143
|
let e = await fetch(`/search-index-${t}.json`);
|
|
136
144
|
if (!e.ok) throw Error(`Failed to load search index: ${e.status}`);
|
|
137
145
|
let n = await e.json();
|
|
138
|
-
|
|
146
|
+
w.current && w.current.init(n), E.current = t, c(!0);
|
|
139
147
|
} catch (e) {
|
|
140
|
-
|
|
148
|
+
h(e instanceof Error ? e.message : "Failed to load search index");
|
|
141
149
|
} finally {
|
|
142
|
-
|
|
150
|
+
p(!1), D.current = !1;
|
|
143
151
|
}
|
|
144
152
|
}
|
|
145
153
|
}, [
|
|
146
154
|
t,
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
]),
|
|
150
|
-
if (!e.trim()) return
|
|
151
|
-
|
|
152
|
-
let
|
|
155
|
+
o,
|
|
156
|
+
r
|
|
157
|
+
]), A = s(async (e) => {
|
|
158
|
+
if (!e.trim()) return v([]), [];
|
|
159
|
+
w.current?.isInitialized() || await k();
|
|
160
|
+
let r = {
|
|
153
161
|
query: e,
|
|
154
162
|
lang: t,
|
|
155
|
-
|
|
163
|
+
version: n,
|
|
164
|
+
limit: i
|
|
156
165
|
};
|
|
157
|
-
if (
|
|
158
|
-
let e =
|
|
159
|
-
return
|
|
166
|
+
if (w.current) {
|
|
167
|
+
let e = w.current.search(r);
|
|
168
|
+
return v(e), e;
|
|
160
169
|
}
|
|
161
170
|
return [];
|
|
162
171
|
}, [
|
|
163
172
|
t,
|
|
164
|
-
|
|
165
|
-
|
|
173
|
+
n,
|
|
174
|
+
k,
|
|
175
|
+
i
|
|
166
176
|
]);
|
|
167
177
|
l(() => {
|
|
168
|
-
if (!
|
|
169
|
-
|
|
178
|
+
if (!y.trim()) {
|
|
179
|
+
v([]);
|
|
170
180
|
return;
|
|
171
181
|
}
|
|
172
|
-
return
|
|
173
|
-
|
|
182
|
+
return T.current && clearTimeout(T.current), T.current = setTimeout(() => {
|
|
183
|
+
A(y);
|
|
174
184
|
}, 150), () => {
|
|
175
|
-
|
|
185
|
+
T.current && clearTimeout(T.current);
|
|
176
186
|
};
|
|
177
|
-
}, [
|
|
178
|
-
|
|
187
|
+
}, [y, A]), l(() => {
|
|
188
|
+
S && !o && !D.current && k();
|
|
179
189
|
}, [
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
190
|
+
S,
|
|
191
|
+
o,
|
|
192
|
+
k
|
|
183
193
|
]), l(() => {
|
|
184
|
-
if (!
|
|
194
|
+
if (!a) return;
|
|
185
195
|
let e = (e) => {
|
|
186
|
-
(e.metaKey || e.ctrlKey) && e.key.toLowerCase() === "k" && (e.preventDefault(),
|
|
196
|
+
(e.metaKey || e.ctrlKey) && e.key.toLowerCase() === "k" && (e.preventDefault(), C((e) => !e)), e.key === "Escape" && S && C(!1);
|
|
187
197
|
};
|
|
188
198
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
189
|
-
}, [
|
|
190
|
-
let
|
|
191
|
-
isLoaded:
|
|
192
|
-
isLoading:
|
|
193
|
-
error:
|
|
194
|
-
search:
|
|
195
|
-
results:
|
|
196
|
-
query:
|
|
197
|
-
setQuery:
|
|
198
|
-
open:
|
|
199
|
-
setOpen:
|
|
200
|
-
loadIndex:
|
|
199
|
+
}, [a, S]);
|
|
200
|
+
let j = {
|
|
201
|
+
isLoaded: o,
|
|
202
|
+
isLoading: f,
|
|
203
|
+
error: m,
|
|
204
|
+
search: A,
|
|
205
|
+
results: g,
|
|
206
|
+
query: y,
|
|
207
|
+
setQuery: b,
|
|
208
|
+
open: S,
|
|
209
|
+
setOpen: C,
|
|
210
|
+
loadIndex: k
|
|
201
211
|
};
|
|
202
212
|
return /* @__PURE__ */ _(O.Provider, {
|
|
203
|
-
value:
|
|
213
|
+
value: j,
|
|
204
214
|
children: e
|
|
205
215
|
});
|
|
206
216
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, o as t, t as n } from "./SearchDialog-
|
|
1
|
+
import { a as e, o as t, t as n } from "./SearchDialog-DWVre6R9.js";
|
|
2
2
|
import { useEffect as r } from "react";
|
|
3
3
|
import { jsx as i } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/search/SearchRuntime.tsx
|
|
@@ -8,14 +8,15 @@ function a({ openSignal: e, placeholder: a }) {
|
|
|
8
8
|
e > 0 && o(!0);
|
|
9
9
|
}, [e, o]), /* @__PURE__ */ i(n, { placeholder: a });
|
|
10
10
|
}
|
|
11
|
-
function o({ lang: t,
|
|
11
|
+
function o({ lang: t, version: n, maxResults: r, placeholder: o, openSignal: s }) {
|
|
12
12
|
return /* @__PURE__ */ i(e, {
|
|
13
13
|
lang: t,
|
|
14
|
-
|
|
14
|
+
version: n,
|
|
15
|
+
maxResults: r,
|
|
15
16
|
enableHotkeys: !1,
|
|
16
17
|
children: /* @__PURE__ */ i(a, {
|
|
17
|
-
openSignal:
|
|
18
|
-
placeholder:
|
|
18
|
+
openSignal: s,
|
|
19
|
+
placeholder: o
|
|
19
20
|
})
|
|
20
21
|
});
|
|
21
22
|
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { A as e, B as t, C as n, E as r, H as i, M as a, U as o, V as s, k as c, p as l, w as u, z as d } from "./isArrayLikeObject-CG2kGrxR.js";
|
|
2
|
+
import { A as f, C as p, D as m, M as h, N as g, S as _, T as v, f as y, h as b, u as x, w as S } from "./_baseUniq-CyOGXr0t.js";
|
|
3
|
+
//#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_trimmedEndIndex.js
|
|
4
|
+
var C = /\s/;
|
|
5
|
+
function w(e) {
|
|
6
|
+
for (var t = e.length; t-- && C.test(e.charAt(t)););
|
|
7
|
+
return t;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseTrim.js
|
|
11
|
+
var ee = /^\s+/;
|
|
12
|
+
function T(e) {
|
|
13
|
+
return e && e.slice(0, w(e) + 1).replace(ee, "");
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/toNumber.js
|
|
17
|
+
var E = NaN, D = /^[-+]0x[0-9a-f]+$/i, O = /^0b[01]+$/i, k = /^0o[0-7]+$/i, A = parseInt;
|
|
18
|
+
function j(e) {
|
|
19
|
+
if (typeof e == "number") return e;
|
|
20
|
+
if (g(e)) return E;
|
|
21
|
+
if (t(e)) {
|
|
22
|
+
var n = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
23
|
+
e = t(n) ? n + "" : n;
|
|
24
|
+
}
|
|
25
|
+
if (typeof e != "string") return e === 0 ? e : +e;
|
|
26
|
+
e = T(e);
|
|
27
|
+
var r = O.test(e);
|
|
28
|
+
return r || k.test(e) ? A(e.slice(2), r ? 2 : 8) : D.test(e) ? E : +e;
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/toFinite.js
|
|
32
|
+
var M = Infinity, N = 17976931348623157e292;
|
|
33
|
+
function P(e) {
|
|
34
|
+
return e ? (e = j(e), e === M || e === -M ? (e < 0 ? -1 : 1) * N : e === e ? e : 0) : e === 0 ? e : 0;
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/toInteger.js
|
|
38
|
+
function F(e) {
|
|
39
|
+
var t = P(e), n = t % 1;
|
|
40
|
+
return t === t ? n ? t - n : t : 0;
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/flatten.js
|
|
44
|
+
function I(e) {
|
|
45
|
+
return e != null && e.length ? _(e, 1) : [];
|
|
46
|
+
}
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/defaults.js
|
|
49
|
+
var L = Object.prototype, R = L.hasOwnProperty, z = r(function(t, r) {
|
|
50
|
+
t = Object(t);
|
|
51
|
+
var i = -1, a = r.length, o = a > 2 ? r[2] : void 0;
|
|
52
|
+
for (o && n(r[0], r[1], o) && (a = 1); ++i < a;) for (var s = r[i], c = l(s), u = -1, d = c.length; ++u < d;) {
|
|
53
|
+
var f = c[u], p = t[f];
|
|
54
|
+
(p === void 0 || e(p, L[f]) && !R.call(t, f)) && (t[f] = s[f]);
|
|
55
|
+
}
|
|
56
|
+
return t;
|
|
57
|
+
});
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/last.js
|
|
60
|
+
function B(e) {
|
|
61
|
+
var t = e == null ? 0 : e.length;
|
|
62
|
+
return t ? e[t - 1] : void 0;
|
|
63
|
+
}
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_createFind.js
|
|
66
|
+
function V(e) {
|
|
67
|
+
return function(t, n, r) {
|
|
68
|
+
var i = Object(t);
|
|
69
|
+
if (!u(t)) {
|
|
70
|
+
var a = y(n, 3);
|
|
71
|
+
t = m(t), n = function(e) {
|
|
72
|
+
return a(i[e], e, i);
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
var o = e(t, n, r);
|
|
76
|
+
return o > -1 ? i[a ? t[o] : o] : void 0;
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/findIndex.js
|
|
81
|
+
var H = Math.max;
|
|
82
|
+
function U(e, t, n) {
|
|
83
|
+
var r = e == null ? 0 : e.length;
|
|
84
|
+
if (!r) return -1;
|
|
85
|
+
var i = n == null ? 0 : F(n);
|
|
86
|
+
return i < 0 && (i = H(r + i, 0)), f(e, y(t, 3), i);
|
|
87
|
+
}
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/find.js
|
|
90
|
+
var W = V(U);
|
|
91
|
+
//#endregion
|
|
92
|
+
//#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseMap.js
|
|
93
|
+
function G(e, t) {
|
|
94
|
+
var n = -1, r = u(e) ? Array(e.length) : [];
|
|
95
|
+
return x(e, function(e, i, a) {
|
|
96
|
+
r[++n] = t(e, i, a);
|
|
97
|
+
}), r;
|
|
98
|
+
}
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/map.js
|
|
101
|
+
function K(e, t) {
|
|
102
|
+
return (s(e) ? h : G)(e, y(t, 3));
|
|
103
|
+
}
|
|
104
|
+
//#endregion
|
|
105
|
+
//#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseHas.js
|
|
106
|
+
var q = Object.prototype.hasOwnProperty;
|
|
107
|
+
function J(e, t) {
|
|
108
|
+
return e != null && q.call(e, t);
|
|
109
|
+
}
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/has.js
|
|
112
|
+
function Y(e, t) {
|
|
113
|
+
return e != null && b(e, t, J);
|
|
114
|
+
}
|
|
115
|
+
//#endregion
|
|
116
|
+
//#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isString.js
|
|
117
|
+
var X = "[object String]";
|
|
118
|
+
function Z(e) {
|
|
119
|
+
return typeof e == "string" || !s(e) && i(e) && o(e) == X;
|
|
120
|
+
}
|
|
121
|
+
//#endregion
|
|
122
|
+
//#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseLt.js
|
|
123
|
+
function Q(e, t) {
|
|
124
|
+
return e < t;
|
|
125
|
+
}
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseExtremum.js
|
|
128
|
+
function $(e, t, n) {
|
|
129
|
+
for (var r = -1, i = e.length; ++r < i;) {
|
|
130
|
+
var a = e[r], o = t(a);
|
|
131
|
+
if (o != null && (s === void 0 ? o === o && !g(o) : n(o, s))) var s = o, c = a;
|
|
132
|
+
}
|
|
133
|
+
return c;
|
|
134
|
+
}
|
|
135
|
+
//#endregion
|
|
136
|
+
//#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/min.js
|
|
137
|
+
function te(e) {
|
|
138
|
+
return e && e.length ? $(e, d, Q) : void 0;
|
|
139
|
+
}
|
|
140
|
+
//#endregion
|
|
141
|
+
//#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseSet.js
|
|
142
|
+
function ne(e, n, r, i) {
|
|
143
|
+
if (!t(e)) return e;
|
|
144
|
+
n = v(n, e);
|
|
145
|
+
for (var o = -1, s = n.length, l = s - 1, u = e; u != null && ++o < s;) {
|
|
146
|
+
var d = S(n[o]), f = r;
|
|
147
|
+
if (d === "__proto__" || d === "constructor" || d === "prototype") return e;
|
|
148
|
+
if (o != l) {
|
|
149
|
+
var p = u[d];
|
|
150
|
+
f = i ? i(p, d, u) : void 0, f === void 0 && (f = t(p) ? p : a(n[o + 1]) ? [] : {});
|
|
151
|
+
}
|
|
152
|
+
c(u, d, f), u = u[d];
|
|
153
|
+
}
|
|
154
|
+
return e;
|
|
155
|
+
}
|
|
156
|
+
//#endregion
|
|
157
|
+
//#region node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_basePickBy.js
|
|
158
|
+
function re(e, t, n) {
|
|
159
|
+
for (var r = -1, i = t.length, a = {}; ++r < i;) {
|
|
160
|
+
var o = t[r], s = p(e, o);
|
|
161
|
+
n(s, o) && ne(a, v(o, e), s);
|
|
162
|
+
}
|
|
163
|
+
return a;
|
|
164
|
+
}
|
|
165
|
+
//#endregion
|
|
166
|
+
export { Z as a, G as c, z as d, I as f, Q as i, W as l, P as m, te as n, Y as o, F as p, $ as r, K as s, re as t, B as u };
|