@cccsaurora/clue-ui 1.2.3 → 1.2.4-dev.278

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 (188) hide show
  1. package/ActionForm-BdW0Za1y.js +5956 -0
  2. package/AnnotationDetails-BHZFzyt-.js +175 -0
  3. package/AnnotationPreview-DGoyoxRb.js +188 -0
  4. package/ClueEnrichContext-CJEJxrgs.js +541 -0
  5. package/FlexOne-BSYAhhtG.js +9 -0
  6. package/_MapCache-WmuDdwuH.js +222 -0
  7. package/_Uint8Array-B7JqpgFX.js +128 -0
  8. package/_baseAssignValue-CGTuELqU.js +25 -0
  9. package/_baseClone-CkNrTyhm.js +283 -0
  10. package/_baseExtremum-kob8QXyt.js +18 -0
  11. package/_baseFlatten-jIR_sN_-.js +92 -0
  12. package/_baseGet-Bx3A4Qfp.js +108 -0
  13. package/_baseIsEqual-C5OTWzTk.js +208 -0
  14. package/_baseIteratee-avi7MX2o.js +126 -0
  15. package/_baseSlice-GAv_YFTT.js +20 -0
  16. package/_baseSum-D0WC1dN0.js +13 -0
  17. package/_baseUniq-BI9GIHMF.js +115 -0
  18. package/_commonjsHelpers-DWwsNxpa.js +8 -0
  19. package/_createAggregator-QD8MzKwe.js +63 -0
  20. package/_getPrototype-CU0j_POw.js +5 -0
  21. package/_getTag-Ckxxfr88.js +126 -0
  22. package/_isIterateeCall-Ds3sw2SF.js +17 -0
  23. package/_setToArray-CaPKQhcz.js +33 -0
  24. package/cloneDeep-DJrLSw8W.js +8 -0
  25. package/components/AnnotationBody.js +49 -35
  26. package/components/AnnotationDetailPopover.js +36 -30
  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 +44 -23
  31. package/components/CountBadge.js +31 -26
  32. package/components/EnrichedCard.js +110 -97
  33. package/components/EnrichedChip.js +130 -105
  34. package/components/EnrichedTypography.js +133 -107
  35. package/components/ErrorBoundary.js +28 -24
  36. package/components/RetryFailedEnrichments.js +10 -9
  37. package/components/SourcePicker.js +57 -49
  38. package/components/actions/ActionForm.js +4 -4
  39. package/components/actions/ExecutePopover.js +75 -59
  40. package/components/actions/ResultModal.js +4 -4
  41. package/components/actions/form/schemaAdapter.js +39 -23
  42. package/components/actions/formats/FileResult.js +86 -59
  43. package/components/actions/formats/index.js +21 -10
  44. package/components/display/graph/ExpandMoreButton.js +10 -10
  45. package/components/display/graph/elements/NodeCard.js +111 -91
  46. package/components/display/graph/elements/NodeTag.js +15 -13
  47. package/components/display/graph/index.js +261 -202
  48. package/components/display/graph/visualizations/Leaf.js +88 -69
  49. package/components/display/graph/visualizations/cloud/index.js +98 -81
  50. package/components/display/graph/visualizations/icons/BaseIcon.js +26 -21
  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 +14 -13
  57. package/components/display/graph/visualizations/panels/NodePanel.js +10 -8
  58. package/components/display/graph/visualizations/tree/BundleLine.js +108 -81
  59. package/components/display/graph/visualizations/tree/Triangle.js +13 -13
  60. package/components/display/graph/visualizations/tree/index.js +408 -306
  61. package/components/display/icons/Iconified.js +27 -12
  62. package/components/display/json/index.js +4 -4
  63. package/components/display/markdown/index.js +8678 -5770
  64. package/components/enrichment/EnrichPopover.js +54 -46
  65. package/components/fetchers/Fetcher.js +158 -119
  66. package/components/fetchers/PreviewModal.js +20 -17
  67. package/components/fetchers/StatusChip.js +21 -17
  68. package/components/group/Entry.js +13 -11
  69. package/components/group/Group.js +13 -10
  70. package/components/group/GroupControl.js +76 -65
  71. package/components/stats/QueryStatus.js +43 -33
  72. package/countBy-c6S3dvSW.js +14 -0
  73. package/data/event.js +6 -4
  74. package/database/index.js +2 -2
  75. package/debounce-bV0h5FC5.js +92 -0
  76. package/en/translation.json +1 -1
  77. package/fr/translation.json +1 -1
  78. package/get-DSsNkRQs.js +8 -0
  79. package/groupBy-xqz-n0Vd.js +14 -0
  80. package/hooks/ClueActionContext.js +6 -6
  81. package/hooks/ClueComponentContext.js +29 -23
  82. package/hooks/ClueConfigProvider.js +14 -12
  83. package/hooks/ClueDatabaseContext.js +19 -13
  84. package/hooks/ClueEnrichContext.js +8 -8
  85. package/hooks/ClueFetcherContext.js +83 -56
  86. package/hooks/ClueGroupContext.js +17 -14
  87. package/hooks/CluePopupContext.js +5 -5
  88. package/hooks/ClueProvider.js +12 -10
  89. package/hooks/selectors.js +7 -7
  90. package/hooks/useActionResult.d.ts +1 -0
  91. package/hooks/useActionResult.js +4 -2
  92. package/hooks/useAnnotations.js +47 -31
  93. package/hooks/useClue.js +6 -4
  94. package/hooks/useClueActions.js +3 -3
  95. package/hooks/useClueConfig.js +6 -4
  96. package/hooks/useClueTypeConfig.js +3 -3
  97. package/hooks/useComparator.js +722 -435
  98. package/hooks/useErrors.js +22 -18
  99. package/hooks/useFetcherResult.d.ts +1 -0
  100. package/hooks/useFetcherResult.js +33 -24
  101. package/hooks/useMyHighlights.js +66 -36
  102. package/hooks/useMyLocalStorage.js +66 -37
  103. package/iconify-CXMreGTg.js +1782 -0
  104. package/icons/Action.js +66 -49
  105. package/icons/Assessment.js +85 -69
  106. package/icons/Context.js +77 -63
  107. package/icons/Opinion.js +76 -60
  108. package/icons/iconMap.js +2 -2
  109. package/identity-CPGTqrE4.js +6 -0
  110. package/index-AMfoEg_6.js +696 -0
  111. package/index-B6C2a_Lg.js +1172 -0
  112. package/index-C12gPw2W.js +17698 -0
  113. package/index-DCKkHTvx.js +15750 -0
  114. package/index-JcKyZeoY.js +465 -0
  115. package/isNil-CIubwp4T.js +6 -0
  116. package/isObject-FTY-5JQX.js +7 -0
  117. package/isObjectLike-OAgjjZye.js +48 -0
  118. package/isSymbol-Xd2FsJyp.js +8 -0
  119. package/last-CUCl67Im.js +7 -0
  120. package/main.js +60 -60
  121. package/maxBy-IKHzFrCS.js +8 -0
  122. package/package.json +1 -1
  123. package/sortBy-DfSj8IoJ.js +96 -0
  124. package/sumBy-D-hb_NY-.js +8 -0
  125. package/text/Frequency.js +42 -23
  126. package/toFinite-Bc55msYj.js +16 -0
  127. package/toNumber-DPxy1FBy.js +39 -0
  128. package/types/WithActionData.d.ts +2 -1
  129. package/useClueTypeConfig-Z1LFp01b.js +3289 -0
  130. package/utils/chain.js +92 -65
  131. package/utils/classificationParser.js +519 -256
  132. package/utils/constants.js +35 -10
  133. package/utils/graph.js +72 -45
  134. package/utils/hashUtil.js +7 -7
  135. package/utils/line.js +131 -81
  136. package/utils/loggerUtil.js +5 -3
  137. package/utils/sessionStorage.js +41 -27
  138. package/utils/time.js +423 -423
  139. package/utils/utils.js +9 -9
  140. package/utils/window.js +21 -10
  141. package/utils-HmNPuoDB.js +199 -0
  142. package/ActionForm-DlOXqMUx.js +0 -4460
  143. package/AnnotationDetails-Bk-p0F6h.js +0 -160
  144. package/AnnotationPreview-jzZvkCxJ.js +0 -140
  145. package/ClueEnrichContext-KqRuuWNS.js +0 -418
  146. package/FlexOne-BXWFOd1T.js +0 -6
  147. package/_MapCache-BiTi0iqu.js +0 -180
  148. package/_Uint8Array-BQNOM9Rr.js +0 -101
  149. package/_baseAssignValue-CNMLQZco.js +0 -20
  150. package/_baseClone-BnT-6pyM.js +0 -207
  151. package/_baseExtremum-Ca2EHgy2.js +0 -16
  152. package/_baseFlatten-Bfr_Molw.js +0 -72
  153. package/_baseGet-DSZygzyq.js +0 -79
  154. package/_baseIsEqual-VgvaAFZG.js +0 -147
  155. package/_baseIteratee-Dbfsw5z8.js +0 -95
  156. package/_baseSlice-M5RKzt1A.js +0 -10
  157. package/_baseSum-wEbgNeUs.js +0 -10
  158. package/_baseUniq-BJcj69PL.js +0 -79
  159. package/_commonjsHelpers-DaMA6jEr.js +0 -8
  160. package/_createAggregator-k3TuAnxT.js +0 -53
  161. package/_getPrototype-Cr1Mk7BC.js +0 -5
  162. package/_getTag-CK2Sffaq.js +0 -90
  163. package/_isIterateeCall-DkJP7Rbx.js +0 -13
  164. package/_setToArray-C7yMOeww.js +0 -29
  165. package/cloneDeep-CF8TtLHr.js +0 -8
  166. package/countBy-CdYegFSu.js +0 -8
  167. package/debounce-DryYcbJ4.js +0 -56
  168. package/get-CH7kz5Ix.js +0 -8
  169. package/groupBy-br8xmD2R.js +0 -8
  170. package/iconify-BBckr5AQ.js +0 -1263
  171. package/identity-ByMq8VxU.js +0 -6
  172. package/index-BHAe_V9n.js +0 -12768
  173. package/index-BK-zfYhR.js +0 -358
  174. package/index-CA5CUNZO.js +0 -975
  175. package/index-Dj5C04IX.js +0 -568
  176. package/index-p5_wX7q1.js +0 -11729
  177. package/isNil-CjWwlQS3.js +0 -6
  178. package/isObject-B53jY8Qg.js +0 -7
  179. package/isObjectLike-BatpeCIi.js +0 -29
  180. package/isSymbol-C3_SC0Qp.js +0 -8
  181. package/last-7CdUxN0r.js +0 -7
  182. package/maxBy-Bc0dYHcO.js +0 -8
  183. package/sortBy-DY2JBf9n.js +0 -75
  184. package/sumBy-DuMASLPd.js +0 -8
  185. package/toFinite-BMy6GObD.js +0 -14
  186. package/toNumber-YVhnnJv4.js +0 -31
  187. package/useClueTypeConfig-Ct9Ygter.js +0 -2292
  188. package/utils-DmwSUrum.js +0 -129
package/index-Dj5C04IX.js DELETED
@@ -1,568 +0,0 @@
1
- import { createContext as p, useRef as F, useState as x, createElement as $, useEffect as ee, useLayoutEffect as ne, useContext as te, useReducer as re } from "react";
2
- var X = { exports: {} }, Q = {};
3
- /**
4
- * @license React
5
- * scheduler.production.js
6
- *
7
- * Copyright (c) Meta Platforms, Inc. and affiliates.
8
- *
9
- * This source code is licensed under the MIT license found in the
10
- * LICENSE file in the root directory of this source tree.
11
- */
12
- var z;
13
- function ue() {
14
- return z || (z = 1, function(r) {
15
- function c(e, t) {
16
- var n = e.length;
17
- e.push(t);
18
- e: for (; 0 < n; ) {
19
- var u = n - 1 >>> 1, l = e[u];
20
- if (0 < P(l, t))
21
- e[u] = t, e[n] = l, n = u;
22
- else break e;
23
- }
24
- }
25
- function a(e) {
26
- return e.length === 0 ? null : e[0];
27
- }
28
- function o(e) {
29
- if (e.length === 0) return null;
30
- var t = e[0], n = e.pop();
31
- if (n !== t) {
32
- e[0] = n;
33
- e: for (var u = 0, l = e.length, L = l >>> 1; u < L; ) {
34
- var D = 2 * (u + 1) - 1, q = e[D], k = D + 1, A = e[k];
35
- if (0 > P(q, n))
36
- k < l && 0 > P(A, q) ? (e[u] = A, e[k] = n, u = k) : (e[u] = q, e[D] = n, u = D);
37
- else if (k < l && 0 > P(A, n))
38
- e[u] = A, e[k] = n, u = k;
39
- else break e;
40
- }
41
- }
42
- return t;
43
- }
44
- function P(e, t) {
45
- var n = e.sortIndex - t.sortIndex;
46
- return n !== 0 ? n : e.id - t.id;
47
- }
48
- if (r.unstable_now = void 0, typeof performance == "object" && typeof performance.now == "function") {
49
- var y = performance;
50
- r.unstable_now = function() {
51
- return y.now();
52
- };
53
- } else {
54
- var m = Date, T = m.now();
55
- r.unstable_now = function() {
56
- return m.now() - T;
57
- };
58
- }
59
- var f = [], s = [], O = 1, _ = null, i = 3, d = !1, v = !1, C = !1, w = !1, b = typeof setTimeout == "function" ? setTimeout : null, B = typeof clearTimeout == "function" ? clearTimeout : null, H = typeof setImmediate < "u" ? setImmediate : null;
60
- function S(e) {
61
- for (var t = a(s); t !== null; ) {
62
- if (t.callback === null) o(s);
63
- else if (t.startTime <= e)
64
- o(s), t.sortIndex = t.expirationTime, c(f, t);
65
- else break;
66
- t = a(s);
67
- }
68
- }
69
- function j(e) {
70
- if (C = !1, S(e), !v)
71
- if (a(f) !== null)
72
- v = !0, E || (E = !0, g());
73
- else {
74
- var t = a(s);
75
- t !== null && K(j, t.startTime - e);
76
- }
77
- }
78
- var E = !1, I = -1, U = 5, R = -1;
79
- function N() {
80
- return w ? !0 : !(r.unstable_now() - R < U);
81
- }
82
- function G() {
83
- if (w = !1, E) {
84
- var e = r.unstable_now();
85
- R = e;
86
- var t = !0;
87
- try {
88
- e: {
89
- v = !1, C && (C = !1, B(I), I = -1), d = !0;
90
- var n = i;
91
- try {
92
- n: {
93
- for (S(e), _ = a(f); _ !== null && !(_.expirationTime > e && N()); ) {
94
- var u = _.callback;
95
- if (typeof u == "function") {
96
- _.callback = null, i = _.priorityLevel;
97
- var l = u(
98
- _.expirationTime <= e
99
- );
100
- if (e = r.unstable_now(), typeof l == "function") {
101
- _.callback = l, S(e), t = !0;
102
- break n;
103
- }
104
- _ === a(f) && o(f), S(e);
105
- } else o(f);
106
- _ = a(f);
107
- }
108
- if (_ !== null) t = !0;
109
- else {
110
- var L = a(s);
111
- L !== null && K(
112
- j,
113
- L.startTime - e
114
- ), t = !1;
115
- }
116
- }
117
- break e;
118
- } finally {
119
- _ = null, i = n, d = !1;
120
- }
121
- t = void 0;
122
- }
123
- } finally {
124
- t ? g() : E = !1;
125
- }
126
- }
127
- }
128
- var g;
129
- if (typeof H == "function")
130
- g = function() {
131
- H(G);
132
- };
133
- else if (typeof MessageChannel < "u") {
134
- var V = new MessageChannel(), M = V.port2;
135
- V.port1.onmessage = G, g = function() {
136
- M.postMessage(null);
137
- };
138
- } else
139
- g = function() {
140
- b(G, 0);
141
- };
142
- function K(e, t) {
143
- I = b(function() {
144
- e(r.unstable_now());
145
- }, t);
146
- }
147
- r.unstable_IdlePriority = 5, r.unstable_ImmediatePriority = 1, r.unstable_LowPriority = 4, r.unstable_NormalPriority = 3, r.unstable_Profiling = null, r.unstable_UserBlockingPriority = 2, r.unstable_cancelCallback = function(e) {
148
- e.callback = null;
149
- }, r.unstable_forceFrameRate = function(e) {
150
- 0 > e || 125 < e ? console.error(
151
- "forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"
152
- ) : U = 0 < e ? Math.floor(1e3 / e) : 5;
153
- }, r.unstable_getCurrentPriorityLevel = function() {
154
- return i;
155
- }, r.unstable_next = function(e) {
156
- switch (i) {
157
- case 1:
158
- case 2:
159
- case 3:
160
- var t = 3;
161
- break;
162
- default:
163
- t = i;
164
- }
165
- var n = i;
166
- i = t;
167
- try {
168
- return e();
169
- } finally {
170
- i = n;
171
- }
172
- }, r.unstable_requestPaint = function() {
173
- w = !0;
174
- }, r.unstable_runWithPriority = function(e, t) {
175
- switch (e) {
176
- case 1:
177
- case 2:
178
- case 3:
179
- case 4:
180
- case 5:
181
- break;
182
- default:
183
- e = 3;
184
- }
185
- var n = i;
186
- i = e;
187
- try {
188
- return t();
189
- } finally {
190
- i = n;
191
- }
192
- }, r.unstable_scheduleCallback = function(e, t, n) {
193
- var u = r.unstable_now();
194
- switch (typeof n == "object" && n !== null ? (n = n.delay, n = typeof n == "number" && 0 < n ? u + n : u) : n = u, e) {
195
- case 1:
196
- var l = -1;
197
- break;
198
- case 2:
199
- l = 250;
200
- break;
201
- case 5:
202
- l = 1073741823;
203
- break;
204
- case 4:
205
- l = 1e4;
206
- break;
207
- default:
208
- l = 5e3;
209
- }
210
- return l = n + l, e = {
211
- id: O++,
212
- callback: t,
213
- priorityLevel: e,
214
- startTime: n,
215
- expirationTime: l,
216
- sortIndex: -1
217
- }, n > u ? (e.sortIndex = n, c(s, e), a(f) === null && e === a(s) && (C ? (B(I), I = -1) : C = !0, K(j, n - u))) : (e.sortIndex = l, c(f, e), v || d || (v = !0, E || (E = !0, g()))), e;
218
- }, r.unstable_shouldYield = N, r.unstable_wrapCallback = function(e) {
219
- var t = i;
220
- return function() {
221
- var n = i;
222
- i = t;
223
- try {
224
- return e.apply(this, arguments);
225
- } finally {
226
- i = n;
227
- }
228
- };
229
- };
230
- }(Q)), Q;
231
- }
232
- var Y = {};
233
- /**
234
- * @license React
235
- * scheduler.development.js
236
- *
237
- * Copyright (c) Meta Platforms, Inc. and affiliates.
238
- *
239
- * This source code is licensed under the MIT license found in the
240
- * LICENSE file in the root directory of this source tree.
241
- */
242
- var J;
243
- function le() {
244
- return J || (J = 1, function(r) {
245
- process.env.NODE_ENV !== "production" && function() {
246
- function c() {
247
- if (j = !1, R) {
248
- var e = r.unstable_now();
249
- g = e;
250
- var t = !0;
251
- try {
252
- e: {
253
- H = !1, S && (S = !1, I(N), N = -1), B = !0;
254
- var n = b;
255
- try {
256
- n: {
257
- for (m(e), w = o(d); w !== null && !(w.expirationTime > e && f()); ) {
258
- var u = w.callback;
259
- if (typeof u == "function") {
260
- w.callback = null, b = w.priorityLevel;
261
- var l = u(
262
- w.expirationTime <= e
263
- );
264
- if (e = r.unstable_now(), typeof l == "function") {
265
- w.callback = l, m(e), t = !0;
266
- break n;
267
- }
268
- w === o(d) && P(d), m(e);
269
- } else P(d);
270
- w = o(d);
271
- }
272
- if (w !== null) t = !0;
273
- else {
274
- var L = o(v);
275
- L !== null && s(
276
- T,
277
- L.startTime - e
278
- ), t = !1;
279
- }
280
- }
281
- break e;
282
- } finally {
283
- w = null, b = n, B = !1;
284
- }
285
- t = void 0;
286
- }
287
- } finally {
288
- t ? V() : R = !1;
289
- }
290
- }
291
- }
292
- function a(e, t) {
293
- var n = e.length;
294
- e.push(t);
295
- e: for (; 0 < n; ) {
296
- var u = n - 1 >>> 1, l = e[u];
297
- if (0 < y(l, t))
298
- e[u] = t, e[n] = l, n = u;
299
- else break e;
300
- }
301
- }
302
- function o(e) {
303
- return e.length === 0 ? null : e[0];
304
- }
305
- function P(e) {
306
- if (e.length === 0) return null;
307
- var t = e[0], n = e.pop();
308
- if (n !== t) {
309
- e[0] = n;
310
- e: for (var u = 0, l = e.length, L = l >>> 1; u < L; ) {
311
- var D = 2 * (u + 1) - 1, q = e[D], k = D + 1, A = e[k];
312
- if (0 > y(q, n))
313
- k < l && 0 > y(A, q) ? (e[u] = A, e[k] = n, u = k) : (e[u] = q, e[D] = n, u = D);
314
- else if (k < l && 0 > y(A, n))
315
- e[u] = A, e[k] = n, u = k;
316
- else break e;
317
- }
318
- }
319
- return t;
320
- }
321
- function y(e, t) {
322
- var n = e.sortIndex - t.sortIndex;
323
- return n !== 0 ? n : e.id - t.id;
324
- }
325
- function m(e) {
326
- for (var t = o(v); t !== null; ) {
327
- if (t.callback === null) P(v);
328
- else if (t.startTime <= e)
329
- P(v), t.sortIndex = t.expirationTime, a(d, t);
330
- else break;
331
- t = o(v);
332
- }
333
- }
334
- function T(e) {
335
- if (S = !1, m(e), !H)
336
- if (o(d) !== null)
337
- H = !0, R || (R = !0, V());
338
- else {
339
- var t = o(v);
340
- t !== null && s(
341
- T,
342
- t.startTime - e
343
- );
344
- }
345
- }
346
- function f() {
347
- return j ? !0 : !(r.unstable_now() - g < G);
348
- }
349
- function s(e, t) {
350
- N = E(function() {
351
- e(r.unstable_now());
352
- }, t);
353
- }
354
- if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()), r.unstable_now = void 0, typeof performance == "object" && typeof performance.now == "function") {
355
- var O = performance;
356
- r.unstable_now = function() {
357
- return O.now();
358
- };
359
- } else {
360
- var _ = Date, i = _.now();
361
- r.unstable_now = function() {
362
- return _.now() - i;
363
- };
364
- }
365
- var d = [], v = [], C = 1, w = null, b = 3, B = !1, H = !1, S = !1, j = !1, E = typeof setTimeout == "function" ? setTimeout : null, I = typeof clearTimeout == "function" ? clearTimeout : null, U = typeof setImmediate < "u" ? setImmediate : null, R = !1, N = -1, G = 5, g = -1;
366
- if (typeof U == "function")
367
- var V = function() {
368
- U(c);
369
- };
370
- else if (typeof MessageChannel < "u") {
371
- var M = new MessageChannel(), K = M.port2;
372
- M.port1.onmessage = c, V = function() {
373
- K.postMessage(null);
374
- };
375
- } else
376
- V = function() {
377
- E(c, 0);
378
- };
379
- r.unstable_IdlePriority = 5, r.unstable_ImmediatePriority = 1, r.unstable_LowPriority = 4, r.unstable_NormalPriority = 3, r.unstable_Profiling = null, r.unstable_UserBlockingPriority = 2, r.unstable_cancelCallback = function(e) {
380
- e.callback = null;
381
- }, r.unstable_forceFrameRate = function(e) {
382
- 0 > e || 125 < e ? console.error(
383
- "forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"
384
- ) : G = 0 < e ? Math.floor(1e3 / e) : 5;
385
- }, r.unstable_getCurrentPriorityLevel = function() {
386
- return b;
387
- }, r.unstable_next = function(e) {
388
- switch (b) {
389
- case 1:
390
- case 2:
391
- case 3:
392
- var t = 3;
393
- break;
394
- default:
395
- t = b;
396
- }
397
- var n = b;
398
- b = t;
399
- try {
400
- return e();
401
- } finally {
402
- b = n;
403
- }
404
- }, r.unstable_requestPaint = function() {
405
- j = !0;
406
- }, r.unstable_runWithPriority = function(e, t) {
407
- switch (e) {
408
- case 1:
409
- case 2:
410
- case 3:
411
- case 4:
412
- case 5:
413
- break;
414
- default:
415
- e = 3;
416
- }
417
- var n = b;
418
- b = e;
419
- try {
420
- return t();
421
- } finally {
422
- b = n;
423
- }
424
- }, r.unstable_scheduleCallback = function(e, t, n) {
425
- var u = r.unstable_now();
426
- switch (typeof n == "object" && n !== null ? (n = n.delay, n = typeof n == "number" && 0 < n ? u + n : u) : n = u, e) {
427
- case 1:
428
- var l = -1;
429
- break;
430
- case 2:
431
- l = 250;
432
- break;
433
- case 5:
434
- l = 1073741823;
435
- break;
436
- case 4:
437
- l = 1e4;
438
- break;
439
- default:
440
- l = 5e3;
441
- }
442
- return l = n + l, e = {
443
- id: C++,
444
- callback: t,
445
- priorityLevel: e,
446
- startTime: n,
447
- expirationTime: l,
448
- sortIndex: -1
449
- }, n > u ? (e.sortIndex = n, a(v, e), o(d) === null && e === o(v) && (S ? (I(N), N = -1) : S = !0, s(T, n - u))) : (e.sortIndex = l, a(d, e), H || B || (H = !0, R || (R = !0, V()))), e;
450
- }, r.unstable_shouldYield = f, r.unstable_wrapCallback = function(e) {
451
- var t = b;
452
- return function() {
453
- var n = b;
454
- b = t;
455
- try {
456
- return e.apply(this, arguments);
457
- } finally {
458
- b = n;
459
- }
460
- };
461
- }, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
462
- }();
463
- }(Y)), Y;
464
- }
465
- process.env.NODE_ENV === "production" ? X.exports = ue() : X.exports = le();
466
- var W = X.exports;
467
- const h = Symbol(), ae = Symbol(), se = typeof window > "u" || /ServerSideRendering/.test(window.navigator && window.navigator.userAgent), Z = se ? ee : ne, oe = W.unstable_runWithPriority ? (r) => {
468
- try {
469
- W.unstable_runWithPriority(W.unstable_NormalPriority, r);
470
- } catch (c) {
471
- if (c.message === "Not implemented.")
472
- r();
473
- else
474
- throw c;
475
- }
476
- } : (r) => r(), ie = (r) => ({ value: a, children: o }) => {
477
- const P = F(a), y = F(0), [m, T] = x(null);
478
- m && (m(a), T(null));
479
- const f = F();
480
- if (!f.current) {
481
- const s = /* @__PURE__ */ new Set(), O = (_, i) => {
482
- y.current += 1;
483
- const d = {
484
- n: y.current
485
- };
486
- i != null && i.suspense && (d.n *= -1, d.p = new Promise((v) => {
487
- T(() => (C) => {
488
- d.v = C, delete d.p, v(C);
489
- });
490
- })), s.forEach((v) => v(d)), _();
491
- };
492
- f.current = {
493
- [h]: {
494
- /* "v"alue */
495
- v: P,
496
- /* versio"n" */
497
- n: y,
498
- /* "l"isteners */
499
- l: s,
500
- /* "u"pdate */
501
- u: O
502
- }
503
- };
504
- }
505
- return Z(() => {
506
- P.current = a, y.current += 1, oe(() => {
507
- f.current[h].l.forEach((s) => {
508
- s({ n: y.current, v: a });
509
- });
510
- });
511
- }, [a]), $(r, { value: f.current }, o);
512
- }, ce = (r) => r;
513
- function de(r) {
514
- const c = p({
515
- [h]: {
516
- /* "v"alue */
517
- v: { current: r },
518
- /* versio"n" */
519
- n: { current: -1 },
520
- /* "l"isteners */
521
- l: /* @__PURE__ */ new Set(),
522
- /* "u"pdate */
523
- u: (a) => a()
524
- }
525
- });
526
- return c[ae] = c.Provider, c.Provider = ie(c.Provider), delete c.Consumer, c;
527
- }
528
- function fe(r, c) {
529
- const a = te(r)[h];
530
- if (typeof process == "object" && process.env.NODE_ENV !== "production" && !a)
531
- throw new Error("useContextSelector requires special context");
532
- const {
533
- /* "v"alue */
534
- v: { current: o },
535
- /* versio"n" */
536
- n: { current: P },
537
- /* "l"isteners */
538
- l: y
539
- } = a, m = c(o), [T, f] = re((s, O) => {
540
- if (!O)
541
- return [o, m];
542
- if ("p" in O)
543
- throw O.p;
544
- if (O.n === P)
545
- return Object.is(s[1], m) ? s : [o, m];
546
- try {
547
- if ("v" in O) {
548
- if (Object.is(s[0], O.v))
549
- return s;
550
- const _ = c(O.v);
551
- return Object.is(s[1], _) ? s : [O.v, _];
552
- }
553
- } catch {
554
- }
555
- return [...s];
556
- }, [o, m]);
557
- return Object.is(T[1], m) || f(), Z(() => (y.add(f), () => {
558
- y.delete(f);
559
- }), [y]), T[1];
560
- }
561
- function be(r) {
562
- return fe(r, ce);
563
- }
564
- export {
565
- be as a,
566
- de as c,
567
- fe as u
568
- };