@cccsaurora/clue-ui 1.2.7-dev.323 → 1.2.7-patch.320

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.
Files changed (183) hide show
  1. package/ActionForm-1iQtvort.js +4470 -0
  2. package/AnnotationDetails-CcXHDi0B.js +160 -0
  3. package/AnnotationPreview-BLEnPDVF.js +140 -0
  4. package/ClueEnrichContext-B8X0Nw9n.js +424 -0
  5. package/FlexOne-BXWFOd1T.js +6 -0
  6. package/_MapCache-BiTi0iqu.js +180 -0
  7. package/_Uint8Array-BQNOM9Rr.js +101 -0
  8. package/_baseAssignValue-CNMLQZco.js +20 -0
  9. package/_baseClone-BnT-6pyM.js +207 -0
  10. package/_baseExtremum-Ca2EHgy2.js +16 -0
  11. package/_baseFlatten-Bfr_Molw.js +72 -0
  12. package/_baseGet-DSZygzyq.js +79 -0
  13. package/_baseIsEqual-VgvaAFZG.js +147 -0
  14. package/_baseIteratee-Dbfsw5z8.js +95 -0
  15. package/_baseSlice-M5RKzt1A.js +10 -0
  16. package/_baseSum-wEbgNeUs.js +10 -0
  17. package/_baseUniq-BJcj69PL.js +79 -0
  18. package/_commonjsHelpers-DaMA6jEr.js +8 -0
  19. package/_createAggregator-k3TuAnxT.js +53 -0
  20. package/_getPrototype-Cr1Mk7BC.js +5 -0
  21. package/_getTag-CK2Sffaq.js +90 -0
  22. package/_isIterateeCall-DkJP7Rbx.js +13 -0
  23. package/_setToArray-C7yMOeww.js +29 -0
  24. package/cloneDeep-CF8TtLHr.js +8 -0
  25. package/components/AnnotationBody.js +35 -49
  26. package/components/AnnotationDetailPopover.js +30 -36
  27. package/components/AnnotationDetails.js +7 -7
  28. package/components/AnnotationEntry.js +35 -35
  29. package/components/AnnotationPreview.js +5 -5
  30. package/components/ClassificationChip.js +23 -44
  31. package/components/CountBadge.js +26 -31
  32. package/components/EnrichedCard.js +97 -110
  33. package/components/EnrichedChip.js +105 -130
  34. package/components/EnrichedTypography.js +107 -133
  35. package/components/ErrorBoundary.js +24 -28
  36. package/components/RetryFailedEnrichments.js +9 -10
  37. package/components/SourcePicker.js +49 -57
  38. package/components/actions/ActionForm.js +4 -4
  39. package/components/actions/ExecutePopover.js +59 -75
  40. package/components/actions/ResultModal.js +4 -4
  41. package/components/actions/form/schemaAdapter.js +23 -39
  42. package/components/actions/formats/FileResult.js +59 -86
  43. package/components/actions/formats/index.js +10 -21
  44. package/components/display/graph/ExpandMoreButton.js +10 -10
  45. package/components/display/graph/elements/NodeCard.js +91 -111
  46. package/components/display/graph/elements/NodeTag.js +13 -15
  47. package/components/display/graph/index.js +202 -261
  48. package/components/display/graph/visualizations/Leaf.js +69 -88
  49. package/components/display/graph/visualizations/cloud/index.js +81 -98
  50. package/components/display/graph/visualizations/icons/BaseIcon.js +21 -26
  51. package/components/display/graph/visualizations/icons/BugIcon.js +12 -12
  52. package/components/display/graph/visualizations/icons/HostIcon.js +12 -12
  53. package/components/display/graph/visualizations/icons/NetworkIcon.js +12 -12
  54. package/components/display/graph/visualizations/icons/ProcessIcon.js +12 -12
  55. package/components/display/graph/visualizations/icons/TargetIcon.js +13 -13
  56. package/components/display/graph/visualizations/icons/index.js +13 -14
  57. package/components/display/graph/visualizations/panels/NodePanel.js +8 -10
  58. package/components/display/graph/visualizations/tree/BundleLine.js +81 -108
  59. package/components/display/graph/visualizations/tree/Triangle.js +13 -13
  60. package/components/display/graph/visualizations/tree/index.js +306 -408
  61. package/components/display/icons/Iconified.js +12 -27
  62. package/components/display/json/index.js +4 -4
  63. package/components/display/markdown/index.js +5770 -8678
  64. package/components/enrichment/EnrichPopover.js +46 -54
  65. package/components/fetchers/Fetcher.js +119 -158
  66. package/components/fetchers/PreviewModal.js +17 -20
  67. package/components/fetchers/StatusChip.js +17 -21
  68. package/components/group/Entry.js +11 -13
  69. package/components/group/Group.js +10 -13
  70. package/components/group/GroupControl.js +65 -76
  71. package/components/stats/QueryStatus.js +33 -43
  72. package/countBy-CdYegFSu.js +8 -0
  73. package/data/event.js +4 -6
  74. package/database/index.js +2 -2
  75. package/debounce-DryYcbJ4.js +56 -0
  76. package/get-CH7kz5Ix.js +8 -0
  77. package/groupBy-br8xmD2R.js +8 -0
  78. package/hooks/ClueActionContext.js +6 -6
  79. package/hooks/ClueComponentContext.js +23 -29
  80. package/hooks/ClueConfigProvider.js +12 -14
  81. package/hooks/ClueDatabaseContext.js +13 -19
  82. package/hooks/ClueEnrichContext.js +8 -8
  83. package/hooks/ClueFetcherContext.js +56 -83
  84. package/hooks/ClueGroupContext.js +14 -17
  85. package/hooks/CluePopupContext.js +5 -5
  86. package/hooks/ClueProvider.js +10 -12
  87. package/hooks/selectors.js +7 -7
  88. package/hooks/useActionResult.js +3 -3
  89. package/hooks/useAnnotations.js +31 -47
  90. package/hooks/useClue.js +4 -6
  91. package/hooks/useClueActions.js +3 -3
  92. package/hooks/useClueConfig.js +4 -6
  93. package/hooks/useClueTypeConfig.js +3 -3
  94. package/hooks/useComparator.js +435 -722
  95. package/hooks/useErrors.js +18 -22
  96. package/hooks/useFetcherResult.js +24 -33
  97. package/hooks/useMyHighlights.js +36 -66
  98. package/hooks/useMyLocalStorage.js +37 -66
  99. package/iconify-BBckr5AQ.js +1263 -0
  100. package/icons/Action.js +49 -66
  101. package/icons/Assessment.js +69 -85
  102. package/icons/Context.js +63 -77
  103. package/icons/Opinion.js +60 -76
  104. package/icons/iconMap.js +2 -2
  105. package/identity-ByMq8VxU.js +6 -0
  106. package/index-BHAe_V9n.js +12768 -0
  107. package/index-BK-zfYhR.js +358 -0
  108. package/index-CA5CUNZO.js +975 -0
  109. package/index-Dj5C04IX.js +568 -0
  110. package/index-p5_wX7q1.js +11729 -0
  111. package/isNil-CjWwlQS3.js +6 -0
  112. package/isObject-B53jY8Qg.js +7 -0
  113. package/isObjectLike-BatpeCIi.js +29 -0
  114. package/isSymbol-C3_SC0Qp.js +8 -0
  115. package/last-7CdUxN0r.js +7 -0
  116. package/main.js +60 -60
  117. package/maxBy-Bc0dYHcO.js +8 -0
  118. package/package.json +1 -1
  119. package/sortBy-DY2JBf9n.js +75 -0
  120. package/sumBy-DuMASLPd.js +8 -0
  121. package/text/Frequency.js +23 -42
  122. package/toFinite-BMy6GObD.js +14 -0
  123. package/toNumber-YVhnnJv4.js +31 -0
  124. package/useClueTypeConfig-Ct9Ygter.js +2292 -0
  125. package/utils/chain.js +65 -92
  126. package/utils/classificationParser.js +256 -519
  127. package/utils/constants.js +10 -35
  128. package/utils/graph.js +45 -72
  129. package/utils/hashUtil.js +7 -7
  130. package/utils/line.js +81 -131
  131. package/utils/loggerUtil.js +3 -5
  132. package/utils/sessionStorage.js +27 -41
  133. package/utils/time.js +423 -423
  134. package/utils/utils.js +9 -9
  135. package/utils/window.js +10 -21
  136. package/utils-DmwSUrum.js +129 -0
  137. package/ActionForm-CPNudc44.js +0 -5973
  138. package/AnnotationDetails-CeWJZ845.js +0 -175
  139. package/AnnotationPreview-BzWMQSXa.js +0 -188
  140. package/ClueEnrichContext-CpzPSHQm.js +0 -549
  141. package/FlexOne-BSYAhhtG.js +0 -9
  142. package/_MapCache-WmuDdwuH.js +0 -222
  143. package/_Uint8Array-B7JqpgFX.js +0 -128
  144. package/_baseAssignValue-CGTuELqU.js +0 -25
  145. package/_baseClone-CkNrTyhm.js +0 -283
  146. package/_baseExtremum-kob8QXyt.js +0 -18
  147. package/_baseFlatten-jIR_sN_-.js +0 -92
  148. package/_baseGet-Bx3A4Qfp.js +0 -108
  149. package/_baseIsEqual-C5OTWzTk.js +0 -208
  150. package/_baseIteratee-avi7MX2o.js +0 -126
  151. package/_baseSlice-GAv_YFTT.js +0 -20
  152. package/_baseSum-D0WC1dN0.js +0 -13
  153. package/_baseUniq-BI9GIHMF.js +0 -115
  154. package/_commonjsHelpers-DWwsNxpa.js +0 -8
  155. package/_createAggregator-QD8MzKwe.js +0 -63
  156. package/_getPrototype-CU0j_POw.js +0 -5
  157. package/_getTag-Ckxxfr88.js +0 -126
  158. package/_isIterateeCall-Ds3sw2SF.js +0 -17
  159. package/_setToArray-CaPKQhcz.js +0 -33
  160. package/cloneDeep-DJrLSw8W.js +0 -8
  161. package/countBy-c6S3dvSW.js +0 -14
  162. package/debounce-bV0h5FC5.js +0 -92
  163. package/get-DSsNkRQs.js +0 -8
  164. package/groupBy-xqz-n0Vd.js +0 -14
  165. package/iconify-CXMreGTg.js +0 -1782
  166. package/identity-CPGTqrE4.js +0 -6
  167. package/index-AMfoEg_6.js +0 -696
  168. package/index-B6C2a_Lg.js +0 -1172
  169. package/index-C12gPw2W.js +0 -17698
  170. package/index-DCKkHTvx.js +0 -15750
  171. package/index-JcKyZeoY.js +0 -465
  172. package/isNil-CIubwp4T.js +0 -6
  173. package/isObject-FTY-5JQX.js +0 -7
  174. package/isObjectLike-OAgjjZye.js +0 -48
  175. package/isSymbol-Xd2FsJyp.js +0 -8
  176. package/last-CUCl67Im.js +0 -7
  177. package/maxBy-IKHzFrCS.js +0 -8
  178. package/sortBy-DfSj8IoJ.js +0 -96
  179. package/sumBy-D-hb_NY-.js +0 -8
  180. package/toFinite-Bc55msYj.js +0 -16
  181. package/toNumber-DPxy1FBy.js +0 -39
  182. package/useClueTypeConfig-Z1LFp01b.js +0 -3289
  183. package/utils-HmNPuoDB.js +0 -199
@@ -0,0 +1,424 @@
1
+ import { jsx as xt } from "react/jsx-runtime";
2
+ import { a as Dt } from "./iconify-BBckr5AQ.js";
3
+ import { b as Et, a as It, p as at, u as ut } from "./useClueTypeConfig-Ct9Ygter.js";
4
+ import { clueDebugLogger as _ } from "./utils/loggerUtil.js";
5
+ import { b as Ct } from "./_baseSlice-M5RKzt1A.js";
6
+ import { t as $t } from "./toFinite-BMy6GObD.js";
7
+ import { d as gt } from "./debounce-DryYcbJ4.js";
8
+ import { g as lt } from "./groupBy-br8xmD2R.js";
9
+ import { b as Ot } from "./_baseIteratee-Dbfsw5z8.js";
10
+ import { b as jt } from "./_baseUniq-BJcj69PL.js";
11
+ import { useContext as Pt, useState as H, useMemo as G, useCallback as O, useRef as Mt, useEffect as b } from "react";
12
+ import { c as qt } from "./index-Dj5C04IX.js";
13
+ import { ClueDatabaseContext as bt } from "./hooks/ClueDatabaseContext.js";
14
+ import At from "./hooks/useClueConfig.js";
15
+ function Bt(s) {
16
+ var n = $t(s), p = n % 1;
17
+ return n === n ? p ? n - p : n : 0;
18
+ }
19
+ var Rt = Math.ceil, Vt = Math.max;
20
+ function Ut(s, n, p) {
21
+ n === void 0 ? n = 1 : n = Vt(Bt(n), 0);
22
+ var u = s == null ? 0 : s.length;
23
+ if (!u || n < 1)
24
+ return [];
25
+ for (var m = 0, x = 0, P = Array(Rt(u / n)); m < u; )
26
+ P[x++] = Ct(s, m, m += n);
27
+ return P;
28
+ }
29
+ function Wt(s, n) {
30
+ return s && s.length ? jt(s, Ot(n)) : [];
31
+ }
32
+ let J;
33
+ const Ft = new Uint8Array(16);
34
+ function Ht() {
35
+ if (!J && (J = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !J))
36
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
37
+ return J(Ft);
38
+ }
39
+ const d = [];
40
+ for (let s = 0; s < 256; ++s)
41
+ d.push((s + 256).toString(16).slice(1));
42
+ function Jt(s, n = 0) {
43
+ return d[s[n + 0]] + d[s[n + 1]] + d[s[n + 2]] + d[s[n + 3]] + "-" + d[s[n + 4]] + d[s[n + 5]] + "-" + d[s[n + 6]] + d[s[n + 7]] + "-" + d[s[n + 8]] + d[s[n + 9]] + "-" + d[s[n + 10]] + d[s[n + 11]] + d[s[n + 12]] + d[s[n + 13]] + d[s[n + 14]] + d[s[n + 15]];
44
+ }
45
+ const Qt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ft = {
46
+ randomUUID: Qt
47
+ };
48
+ function j(s, n, p) {
49
+ if (ft.randomUUID && !s)
50
+ return ft.randomUUID();
51
+ s = s || {};
52
+ const u = s.random || (s.rng || Ht)();
53
+ return u[6] = u[6] & 15 | 64, u[8] = u[8] & 63 | 128, Jt(u);
54
+ }
55
+ const St = qt(null), ne = ({
56
+ children: s,
57
+ classification: n,
58
+ baseURL: p,
59
+ getToken: u,
60
+ onNetworkCall: m,
61
+ pickSources: x,
62
+ chunkSize: P = 15,
63
+ maxRequestCount: Q = 4,
64
+ defaultTimeout: A = 5,
65
+ enabled: B = !0,
66
+ ready: dt = !1,
67
+ publicIconify: K = !0,
68
+ skipConfigCall: X = !1,
69
+ customIconify: R,
70
+ debugLogging: I = !0
71
+ }) => {
72
+ var nt, it, ot, rt, ct;
73
+ const $ = At(), e = Pt(bt), [Y, pt] = H(null), v = G(
74
+ () => {
75
+ var t, i;
76
+ return Y ?? n ?? ((i = (t = $.config) == null ? void 0 : t.c12nDef) == null ? void 0 : i.RESTRICTED);
77
+ },
78
+ [n, (it = (nt = $.config) == null ? void 0 : nt.c12nDef) == null ? void 0 : it.RESTRICTED, Y]
79
+ ), Z = O(
80
+ (t) => {
81
+ var i;
82
+ return pt(t((i = $.config) == null ? void 0 : i.c12nDef));
83
+ },
84
+ [(ot = $.config) == null ? void 0 : ot.c12nDef]
85
+ ), [g, mt] = H(dt), M = Mt(0), [C, yt] = H([]), { availableSources: q, typesDetection: V, supportedTypes: z } = Et(
86
+ B && g,
87
+ p,
88
+ I,
89
+ u,
90
+ m
91
+ );
92
+ b(() => {
93
+ if (X || !B || !g)
94
+ return;
95
+ const t = {}, i = u == null ? void 0 : u();
96
+ i && (t.Authorization = `Bearer ${i}`);
97
+ let a = { baseURL: p, headers: t };
98
+ m && (a = m(a)), It.configs.get(a).then($.setConfig);
99
+ }, [p, m, X, g]);
100
+ const [N, T] = H(R);
101
+ b(() => {
102
+ R && T(R);
103
+ }, [R]), b(() => {
104
+ if (K)
105
+ return;
106
+ let t = N ?? void 0 ?? (p == null ? void 0 : p.replace(/^[^.]+/, "icons"));
107
+ !t && typeof window < "u" && window && !window.location.origin.includes("localhost") && (t = window.location.protocol + "//" + window.location.origin.replace(/^[^.]+/, "icons")), t && (_(`Using ${t} for iconify`, I), Dt("", {
108
+ resources: [t]
109
+ }));
110
+ }, [p, N, I, K]);
111
+ const U = O(
112
+ async (t) => {
113
+ const i = [];
114
+ for (const c of t) {
115
+ const { latency: r, source: l, type: o, value: y, items: h, error: w } = c;
116
+ w && i.push({
117
+ id: j(),
118
+ source: l,
119
+ type: o,
120
+ value: y,
121
+ annotations: [],
122
+ classification: v,
123
+ latency: r,
124
+ count: 0,
125
+ error: w
126
+ });
127
+ for (const f of h) {
128
+ const { classification: D, count: E, link: F, annotations: wt } = f;
129
+ await e.selectors.find({ selector: { type: o, value: y, source: l, classification: D } }).incrementalRemove();
130
+ const S = {
131
+ id: j(),
132
+ source: l,
133
+ type: o,
134
+ value: y,
135
+ annotations: wt,
136
+ classification: D,
137
+ latency: r,
138
+ count: E,
139
+ link: F,
140
+ error: w
141
+ };
142
+ i.some((vt) => vt.id === S.id) && (S.id = j()), i.push(S);
143
+ }
144
+ }
145
+ const a = await e.selectors.bulkInsert(i);
146
+ a.error.length > 0 && (console.warn("Errors on upsert:"), a.error.forEach((c) => console.warn(c.documentId, c.validationErrors ?? c.status)));
147
+ },
148
+ [e, v]
149
+ ), L = O(
150
+ async (t, i, a = {}) => {
151
+ var f, D;
152
+ if (!t || !i)
153
+ return console.error(`Type (${t}) or value (${i}) is empty, returning empty response`), {};
154
+ const c = (x == null ? void 0 : x(C, q, [{ type: t, value: i, classification: a.classification }])) ?? C, r = {
155
+ timeout: A,
156
+ force: !1,
157
+ includeRaw: !1,
158
+ noCache: !1,
159
+ classification: v,
160
+ sources: c,
161
+ ...a
162
+ }, l = {}, o = u == null ? void 0 : u();
163
+ o && (l.Authorization = `Bearer ${o}`);
164
+ let y = { baseURL: p, headers: l };
165
+ m && (y = m(y));
166
+ const h = {
167
+ type: t,
168
+ value: i,
169
+ classification: r.classification
170
+ };
171
+ let w = await ((f = e.status) == null ? void 0 : f.findOne({ selector: { ...h } }).exec());
172
+ w ? await w.incrementalPatch({ status: "in-progress" }) : w = await ((D = e.status) == null ? void 0 : D.insert({
173
+ id: j(),
174
+ type: h.type,
175
+ value: h.value,
176
+ classification: h.classification ?? v,
177
+ status: "in-progress"
178
+ }));
179
+ try {
180
+ const E = await at([h], r.sources, r, y), F = Object.values(Object.values(E)[0])[0];
181
+ return await U(Object.values(F)), F;
182
+ } catch (E) {
183
+ return console.error(E), {};
184
+ } finally {
185
+ await (w == null ? void 0 : w.incrementalPatch({ status: "complete" }));
186
+ }
187
+ },
188
+ [
189
+ U,
190
+ q,
191
+ p,
192
+ e,
193
+ v,
194
+ A,
195
+ u,
196
+ m,
197
+ x,
198
+ C
199
+ ]
200
+ ), W = O(
201
+ async (t, i) => {
202
+ var h, w;
203
+ const a = (x == null ? void 0 : x(C, q, t)) ?? C, c = {
204
+ timeout: A,
205
+ includeRaw: !1,
206
+ noCache: !1,
207
+ classification: v,
208
+ sources: a,
209
+ ...i
210
+ }, r = {}, l = u == null ? void 0 : u();
211
+ l && (r.Authorization = `Bearer ${l}`);
212
+ let o = { baseURL: p, headers: r };
213
+ m && (o = m(o));
214
+ const y = [];
215
+ for (const f of t) {
216
+ const D = { type: f.type, value: f.value, classification: c.classification };
217
+ let E = await ((h = e.status) == null ? void 0 : h.findOne({
218
+ selector: D
219
+ }).incrementalPatch({
220
+ status: "in-progress"
221
+ }));
222
+ E || (E = await ((w = e.status) == null ? void 0 : w.insert({
223
+ id: j(),
224
+ ...D,
225
+ status: "in-progress",
226
+ sources: c.sources
227
+ }))), E && y.push(E.toMutableJSON());
228
+ }
229
+ try {
230
+ const f = await at(t, c.sources, c, o), D = Object.values(f).flatMap(Object.values).flatMap(Object.values);
231
+ return await U(D), f;
232
+ } catch (f) {
233
+ return console.error(f), {};
234
+ } finally {
235
+ e.status.bulkUpsert(
236
+ Wt(y, (f) => f.id).map((f) => (f.status = "complete", f))
237
+ );
238
+ }
239
+ },
240
+ [
241
+ x,
242
+ C,
243
+ q,
244
+ A,
245
+ v,
246
+ u,
247
+ p,
248
+ m,
249
+ e,
250
+ U
251
+ ]
252
+ ), k = O(async () => {
253
+ if (!(e != null && e.selectors) || e.selectors.closed)
254
+ return;
255
+ const t = await e.selectors.find({ selector: { error: { $exists: !0 } } }).exec(), i = lt(t, "classification"), a = [];
256
+ for (const [c, r] of Object.entries(i)) {
257
+ const l = lt(r, (o) => `${o.type}:${o.value}`);
258
+ Object.values(l).forEach((o) => {
259
+ a.push({
260
+ id: j(),
261
+ type: o[0].type,
262
+ value: o[0].value,
263
+ classification: c,
264
+ sources: ut(o.map((y) => y.source)).sort(),
265
+ status: "pending"
266
+ });
267
+ });
268
+ }
269
+ await e.status.bulkInsert(a), await e.selectors.bulkRemove(t);
270
+ }, [e]), tt = G(
271
+ () => gt(
272
+ async () => {
273
+ if (e != null && e.status) {
274
+ if (e.status.closed) {
275
+ console.warn("Status database is closed, will not enrich");
276
+ return;
277
+ }
278
+ } else return;
279
+ const t = await e.status.find({ selector: { status: "pending" } }).update({ $set: { status: "in-progress" } });
280
+ if (t.length < 1)
281
+ return;
282
+ const i = Ut(t, P);
283
+ _(
284
+ `Enriching ${t.length} selectors in ${i.length} chunks of ${P}.`,
285
+ I
286
+ ), await Promise.all(
287
+ // For performance reasons, we chunk the requests. This will allow us to take advantage of parellelization in the
288
+ // backend, both on the pod level and kubernetes level
289
+ i.map(async (a) => {
290
+ let c = null;
291
+ if (M.current <= Q)
292
+ M.current += 1;
293
+ else {
294
+ let r = Date.now();
295
+ await new Promise((l) => {
296
+ c = setInterval(() => {
297
+ _(
298
+ `Waiting on ${M.current} existing requests to complete (total delay: ${Date.now() - r}ms)`,
299
+ I
300
+ ), M.current < Q && l();
301
+ }, 400);
302
+ }).finally(() => {
303
+ M.current += 1, clearInterval(c);
304
+ });
305
+ }
306
+ try {
307
+ const r = {}, l = ut(a.flatMap((o) => o.sources ?? []));
308
+ l.length > 0 && (r.sources = l), await W(
309
+ a.map((o) => o.toSelector()),
310
+ r
311
+ ), await e.status.findByIds(a.map((o) => o.id)).update({ $set: { status: "complete" } });
312
+ } catch (r) {
313
+ console.error(r);
314
+ } finally {
315
+ M.current -= 1, c && clearInterval(c);
316
+ }
317
+ })
318
+ );
319
+ },
320
+ 200,
321
+ { maxWait: 500, leading: !1 }
322
+ ),
323
+ [W, P, e, I, Q]
324
+ );
325
+ b(() => {
326
+ }, [e, I]), b(() => {
327
+ if (!B || !g || !(e != null && e.status))
328
+ return;
329
+ if (e != null && e.status.closed) {
330
+ console.warn("Status collection is closed");
331
+ return;
332
+ }
333
+ const t = e.status.find({
334
+ selector: {
335
+ status: "pending"
336
+ }
337
+ }).$.subscribe(() => tt());
338
+ return () => {
339
+ try {
340
+ t == null || t.unsubscribe();
341
+ } catch (i) {
342
+ console.warn(i);
343
+ }
344
+ };
345
+ }, [B, g, e, I, tt, (rt = e == null ? void 0 : e.status) == null ? void 0 : rt.closed]);
346
+ const et = O(
347
+ async (t, i, a) => {
348
+ var l, o;
349
+ if (!t)
350
+ throw new Error("Type cannot be null");
351
+ if (!i)
352
+ throw new Error("Value cannot be null");
353
+ if (!e.status || e.status.closed) {
354
+ console.warn("status collection is closed");
355
+ return;
356
+ }
357
+ const c = { type: t, value: i, classification: a ?? v };
358
+ let r = await ((l = e.status) == null ? void 0 : l.findOne({
359
+ selector: c
360
+ }).exec());
361
+ return r || (r = await ((o = e.status) == null ? void 0 : o.queueInsert({
362
+ id: j(),
363
+ ...c,
364
+ status: "pending"
365
+ }))), r;
366
+ },
367
+ [v, e]
368
+ ), st = O(
369
+ (t) => {
370
+ var l, o;
371
+ if (!t)
372
+ return null;
373
+ const i = Object.entries(V), a = (l = i.find(([y, h]) => h.exec(t))) == null ? void 0 : l[0];
374
+ if (a)
375
+ return a;
376
+ const c = t.toLowerCase(), r = (o = i.find(([y, h]) => h.exec(c))) == null ? void 0 : o[0];
377
+ return r || null;
378
+ },
379
+ [V]
380
+ ), ht = G(
381
+ () => {
382
+ var t;
383
+ return {
384
+ bulkEnrich: W,
385
+ enrich: L,
386
+ enrichFailedEnrichments: k,
387
+ sources: C,
388
+ setSources: yt,
389
+ typesDetection: V,
390
+ supportedTypes: z,
391
+ availableSources: q,
392
+ guessType: st,
393
+ queueEnrich: et,
394
+ setCustomIconify: T,
395
+ setDefaultClassification: Z,
396
+ setReady: mt,
397
+ defaultClassification: v,
398
+ ready: g && !!e && !!((t = $.config) != null && t.c12nDef)
399
+ };
400
+ },
401
+ [
402
+ W,
403
+ L,
404
+ k,
405
+ C,
406
+ V,
407
+ z,
408
+ q,
409
+ st,
410
+ et,
411
+ Z,
412
+ v,
413
+ g,
414
+ e,
415
+ (ct = $.config) == null ? void 0 : ct.c12nDef
416
+ ]
417
+ );
418
+ return /* @__PURE__ */ xt(St.Provider, { value: ht, children: s });
419
+ };
420
+ export {
421
+ St as C,
422
+ ne as a,
423
+ Wt as u
424
+ };
@@ -0,0 +1,6 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { memo as r } from "react";
3
+ const t = ({ children: e = null }) => /* @__PURE__ */ o("div", { style: { flex: 1 }, children: e }), n = r(t);
4
+ export {
5
+ n as F
6
+ };
@@ -0,0 +1,180 @@
1
+ import { b as d, r as _ } from "./isObjectLike-BatpeCIi.js";
2
+ import { i as l } from "./isObject-B53jY8Qg.js";
3
+ var ht = Array.isArray, v = "[object AsyncFunction]", g = "[object Function]", y = "[object GeneratorFunction]", b = "[object Proxy]";
4
+ function C(t) {
5
+ if (!l(t))
6
+ return !1;
7
+ var e = d(t);
8
+ return e == g || e == y || e == v || e == b;
9
+ }
10
+ var u = _["__core-js_shared__"], p = function() {
11
+ var t = /[^.]+$/.exec(u && u.keys && u.keys.IE_PROTO || "");
12
+ return t ? "Symbol(src)_1." + t : "";
13
+ }();
14
+ function m(t) {
15
+ return !!p && p in t;
16
+ }
17
+ var O = Function.prototype, P = O.toString;
18
+ function w(t) {
19
+ if (t != null) {
20
+ try {
21
+ return P.call(t);
22
+ } catch {
23
+ }
24
+ try {
25
+ return t + "";
26
+ } catch {
27
+ }
28
+ }
29
+ return "";
30
+ }
31
+ var x = /[\\^$.*+?()[\]{}|]/g, j = /^\[object .+?Constructor\]$/, $ = Function.prototype, z = Object.prototype, S = $.toString, D = z.hasOwnProperty, H = RegExp(
32
+ "^" + S.call(D).replace(x, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
33
+ );
34
+ function F(t) {
35
+ if (!l(t) || m(t))
36
+ return !1;
37
+ var e = C(t) ? H : j;
38
+ return e.test(w(t));
39
+ }
40
+ function I(t, e) {
41
+ return t == null ? void 0 : t[e];
42
+ }
43
+ function f(t, e) {
44
+ var r = I(t, e);
45
+ return F(r) ? r : void 0;
46
+ }
47
+ function T(t, e) {
48
+ return t === e || t !== t && e !== e;
49
+ }
50
+ var i = f(Object, "create");
51
+ function A() {
52
+ this.__data__ = i ? i(null) : {}, this.size = 0;
53
+ }
54
+ function E(t) {
55
+ var e = this.has(t) && delete this.__data__[t];
56
+ return this.size -= e ? 1 : 0, e;
57
+ }
58
+ var N = "__lodash_hash_undefined__", M = Object.prototype, G = M.hasOwnProperty;
59
+ function R(t) {
60
+ var e = this.__data__;
61
+ if (i) {
62
+ var r = e[t];
63
+ return r === N ? void 0 : r;
64
+ }
65
+ return G.call(e, t) ? e[t] : void 0;
66
+ }
67
+ var K = Object.prototype, L = K.hasOwnProperty;
68
+ function U(t) {
69
+ var e = this.__data__;
70
+ return i ? e[t] !== void 0 : L.call(e, t);
71
+ }
72
+ var q = "__lodash_hash_undefined__";
73
+ function J(t, e) {
74
+ var r = this.__data__;
75
+ return this.size += this.has(t) ? 0 : 1, r[t] = i && e === void 0 ? q : e, this;
76
+ }
77
+ function n(t) {
78
+ var e = -1, r = t == null ? 0 : t.length;
79
+ for (this.clear(); ++e < r; ) {
80
+ var a = t[e];
81
+ this.set(a[0], a[1]);
82
+ }
83
+ }
84
+ n.prototype.clear = A;
85
+ n.prototype.delete = E;
86
+ n.prototype.get = R;
87
+ n.prototype.has = U;
88
+ n.prototype.set = J;
89
+ function V() {
90
+ this.__data__ = [], this.size = 0;
91
+ }
92
+ function h(t, e) {
93
+ for (var r = t.length; r--; )
94
+ if (T(t[r][0], e))
95
+ return r;
96
+ return -1;
97
+ }
98
+ var B = Array.prototype, Q = B.splice;
99
+ function W(t) {
100
+ var e = this.__data__, r = h(e, t);
101
+ if (r < 0)
102
+ return !1;
103
+ var a = e.length - 1;
104
+ return r == a ? e.pop() : Q.call(e, r, 1), --this.size, !0;
105
+ }
106
+ function X(t) {
107
+ var e = this.__data__, r = h(e, t);
108
+ return r < 0 ? void 0 : e[r][1];
109
+ }
110
+ function Y(t) {
111
+ return h(this.__data__, t) > -1;
112
+ }
113
+ function Z(t, e) {
114
+ var r = this.__data__, a = h(r, t);
115
+ return a < 0 ? (++this.size, r.push([t, e])) : r[a][1] = e, this;
116
+ }
117
+ function o(t) {
118
+ var e = -1, r = t == null ? 0 : t.length;
119
+ for (this.clear(); ++e < r; ) {
120
+ var a = t[e];
121
+ this.set(a[0], a[1]);
122
+ }
123
+ }
124
+ o.prototype.clear = V;
125
+ o.prototype.delete = W;
126
+ o.prototype.get = X;
127
+ o.prototype.has = Y;
128
+ o.prototype.set = Z;
129
+ var k = f(_, "Map");
130
+ function tt() {
131
+ this.size = 0, this.__data__ = {
132
+ hash: new n(),
133
+ map: new (k || o)(),
134
+ string: new n()
135
+ };
136
+ }
137
+ function et(t) {
138
+ var e = typeof t;
139
+ return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
140
+ }
141
+ function c(t, e) {
142
+ var r = t.__data__;
143
+ return et(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map;
144
+ }
145
+ function rt(t) {
146
+ var e = c(this, t).delete(t);
147
+ return this.size -= e ? 1 : 0, e;
148
+ }
149
+ function at(t) {
150
+ return c(this, t).get(t);
151
+ }
152
+ function nt(t) {
153
+ return c(this, t).has(t);
154
+ }
155
+ function ot(t, e) {
156
+ var r = c(this, t), a = r.size;
157
+ return r.set(t, e), this.size += r.size == a ? 0 : 1, this;
158
+ }
159
+ function s(t) {
160
+ var e = -1, r = t == null ? 0 : t.length;
161
+ for (this.clear(); ++e < r; ) {
162
+ var a = t[e];
163
+ this.set(a[0], a[1]);
164
+ }
165
+ }
166
+ s.prototype.clear = tt;
167
+ s.prototype.delete = rt;
168
+ s.prototype.get = at;
169
+ s.prototype.has = nt;
170
+ s.prototype.set = ot;
171
+ export {
172
+ o as L,
173
+ s as M,
174
+ k as a,
175
+ C as b,
176
+ T as e,
177
+ f as g,
178
+ ht as i,
179
+ w as t
180
+ };
@@ -0,0 +1,101 @@
1
+ import { i as p, L as _, a as l, M as d } from "./_MapCache-BiTi0iqu.js";
2
+ import { d as y, a as A, c as g, i as m, f as b } from "./_getTag-CK2Sffaq.js";
3
+ import { r as v } from "./isObjectLike-BatpeCIi.js";
4
+ var w = 9007199254740991, z = /^(?:0|[1-9]\d*)$/;
5
+ function S(t, e) {
6
+ var r = typeof t;
7
+ return e = e ?? w, !!e && (r == "number" || r != "symbol" && z.test(t)) && t > -1 && t % 1 == 0 && t < e;
8
+ }
9
+ function I(t, e) {
10
+ for (var r = -1, s = Array(t); ++r < t; )
11
+ s[r] = e(r);
12
+ return s;
13
+ }
14
+ var O = Object.prototype, x = O.hasOwnProperty;
15
+ function E(t, e) {
16
+ var r = p(t), s = !r && y(t), a = !r && !s && A(t), i = !r && !s && !a && g(t), o = r || s || a || i, u = o ? I(t.length, String) : [], c = u.length;
17
+ for (var n in t)
18
+ (e || x.call(t, n)) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
19
+ (n == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
20
+ a && (n == "offset" || n == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
21
+ i && (n == "buffer" || n == "byteLength" || n == "byteOffset") || // Skip index properties.
22
+ S(n, c))) && u.push(n);
23
+ return u;
24
+ }
25
+ function L(t) {
26
+ return m(t) ? E(t) : b(t);
27
+ }
28
+ function P(t, e) {
29
+ for (var r = -1, s = e.length, a = t.length; ++r < s; )
30
+ t[a + r] = e[r];
31
+ return t;
32
+ }
33
+ function G() {
34
+ this.__data__ = new _(), this.size = 0;
35
+ }
36
+ function K(t) {
37
+ var e = this.__data__, r = e.delete(t);
38
+ return this.size = e.size, r;
39
+ }
40
+ function M(t) {
41
+ return this.__data__.get(t);
42
+ }
43
+ function R(t) {
44
+ return this.__data__.has(t);
45
+ }
46
+ var T = 200;
47
+ function U(t, e) {
48
+ var r = this.__data__;
49
+ if (r instanceof _) {
50
+ var s = r.__data__;
51
+ if (!l || s.length < T - 1)
52
+ return s.push([t, e]), this.size = ++r.size, this;
53
+ r = this.__data__ = new d(s);
54
+ }
55
+ return r.set(t, e), this.size = r.size, this;
56
+ }
57
+ function f(t) {
58
+ var e = this.__data__ = new _(t);
59
+ this.size = e.size;
60
+ }
61
+ f.prototype.clear = G;
62
+ f.prototype.delete = K;
63
+ f.prototype.get = M;
64
+ f.prototype.has = R;
65
+ f.prototype.set = U;
66
+ function C(t, e) {
67
+ for (var r = -1, s = t == null ? 0 : t.length, a = 0, i = []; ++r < s; ) {
68
+ var o = t[r];
69
+ e(o, r, t) && (i[a++] = o);
70
+ }
71
+ return i;
72
+ }
73
+ function k() {
74
+ return [];
75
+ }
76
+ var B = Object.prototype, F = B.propertyIsEnumerable, h = Object.getOwnPropertySymbols, $ = h ? function(t) {
77
+ return t == null ? [] : (t = Object(t), C(h(t), function(e) {
78
+ return F.call(t, e);
79
+ }));
80
+ } : k;
81
+ function D(t, e, r) {
82
+ var s = e(t);
83
+ return p(t) ? s : P(s, r(t));
84
+ }
85
+ function Y(t) {
86
+ return D(t, L, $);
87
+ }
88
+ var Z = v.Uint8Array;
89
+ export {
90
+ f as S,
91
+ Z as U,
92
+ P as a,
93
+ C as b,
94
+ E as c,
95
+ $ as d,
96
+ D as e,
97
+ Y as g,
98
+ S as i,
99
+ L as k,
100
+ k as s
101
+ };