@cccsaurora/clue-ui 1.1.1-dev.108 → 1.1.1

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 (178) hide show
  1. package/ActionForm-myEAs2UC.js +435 -0
  2. package/AnnotationDetails-BdfWMISw.js +160 -0
  3. package/AnnotationPreview-CKMGCoUH.js +140 -0
  4. package/ClueEnrichContext-CrFpdYhh.js +414 -0
  5. package/FlexOne-BXWFOd1T.js +6 -0
  6. package/_Map-DXNg_Z-q.js +54 -0
  7. package/_MapCache-Cu25RRDU.js +129 -0
  8. package/_Uint8Array-DlJCtTvG.js +102 -0
  9. package/_baseAssignValue-CUmzp727.js +20 -0
  10. package/_baseClone-BlMmRXeX.js +208 -0
  11. package/_baseExtremum-P_0akmCi.js +27 -0
  12. package/_baseFlatten-CN7vDNEQ.js +72 -0
  13. package/_baseGet-Dgf6_xCm.js +80 -0
  14. package/_baseIsEqual-Cpjtfb3Q.js +173 -0
  15. package/_baseIteratee-CP1bocOX.js +95 -0
  16. package/_baseSlice-M5RKzt1A.js +10 -0
  17. package/_baseSum-wEbgNeUs.js +10 -0
  18. package/_baseUniq-tMFmk80M.js +61 -0
  19. package/_commonjsHelpers-DaMA6jEr.js +8 -0
  20. package/_createAggregator-B4Cav8ZM.js +53 -0
  21. package/_getPrototype-CHAFQYL_.js +5 -0
  22. package/_getTag-BV_UoLYG.js +90 -0
  23. package/cloneDeep-BPVpFBzJ.js +8 -0
  24. package/components/AnnotationBody.js +35 -49
  25. package/components/AnnotationDetailPopover.js +30 -36
  26. package/components/AnnotationDetails.js +6 -6
  27. package/components/AnnotationEntry.js +47 -50
  28. package/components/AnnotationPreview.js +5 -5
  29. package/components/ClassificationChip.js +23 -44
  30. package/components/CountBadge.js +26 -31
  31. package/components/EnrichedCard.js +97 -110
  32. package/components/EnrichedChip.js +105 -130
  33. package/components/EnrichedTypography.js +107 -133
  34. package/components/ErrorBoundary.js +24 -28
  35. package/components/RetryFailedEnrichments.js +9 -10
  36. package/components/SourcePicker.js +49 -57
  37. package/components/actions/ActionForm.js +4 -4
  38. package/components/actions/ExecutePopover.js +50 -64
  39. package/components/actions/ResultModal.js +5 -5
  40. package/components/actions/form/schemaAdapter.js +23 -39
  41. package/components/display/graph/ExpandMoreButton.js +10 -10
  42. package/components/display/graph/elements/NodeCard.js +91 -111
  43. package/components/display/graph/elements/NodeTag.js +13 -15
  44. package/components/display/graph/index.js +202 -261
  45. package/components/display/graph/visualizations/Leaf.js +69 -88
  46. package/components/display/graph/visualizations/cloud/index.js +81 -98
  47. package/components/display/graph/visualizations/icons/BaseIcon.js +21 -26
  48. package/components/display/graph/visualizations/icons/BugIcon.js +12 -12
  49. package/components/display/graph/visualizations/icons/HostIcon.js +12 -12
  50. package/components/display/graph/visualizations/icons/NetworkIcon.js +12 -12
  51. package/components/display/graph/visualizations/icons/ProcessIcon.js +12 -12
  52. package/components/display/graph/visualizations/icons/TargetIcon.js +13 -13
  53. package/components/display/graph/visualizations/icons/index.js +13 -14
  54. package/components/display/graph/visualizations/panels/NodePanel.js +8 -10
  55. package/components/display/graph/visualizations/tree/BundleLine.js +81 -108
  56. package/components/display/graph/visualizations/tree/Triangle.js +13 -13
  57. package/components/display/graph/visualizations/tree/index.js +305 -407
  58. package/components/display/icons/Iconified.js +12 -27
  59. package/components/display/json/index.js +4 -4
  60. package/components/display/markdown/index.js +5761 -8662
  61. package/components/enrichment/EnrichPopover.js +47 -55
  62. package/components/fetchers/Fetcher.js +95 -123
  63. package/components/fetchers/PreviewModal.js +17 -20
  64. package/components/fetchers/StatusChip.js +17 -21
  65. package/components/group/Entry.js +11 -13
  66. package/components/group/Group.js +10 -13
  67. package/components/group/GroupControl.js +66 -77
  68. package/components/stats/QueryStatus.js +31 -41
  69. package/countBy-DOutsa_w.js +8 -0
  70. package/data/event.js +4 -6
  71. package/database/index.js +2 -2
  72. package/debounce-DryYcbJ4.js +56 -0
  73. package/get-Bow1vKwx.js +8 -0
  74. package/groupBy-BheQYl6f.js +8 -0
  75. package/hooks/ClueActionContext.js +7 -7
  76. package/hooks/ClueComponentContext.js +23 -29
  77. package/hooks/ClueConfigProvider.js +12 -14
  78. package/hooks/ClueDatabaseContext.js +13 -19
  79. package/hooks/ClueEnrichContext.js +8 -8
  80. package/hooks/ClueFetcherContext.js +46 -74
  81. package/hooks/ClueGroupContext.js +14 -17
  82. package/hooks/CluePopupContext.js +5 -5
  83. package/hooks/ClueProvider.js +10 -12
  84. package/hooks/selectors.js +10 -21
  85. package/hooks/useActionResult.js +2 -2
  86. package/hooks/useAnnotations.js +29 -45
  87. package/hooks/useClue.js +4 -6
  88. package/hooks/useClueActions.js +3 -3
  89. package/hooks/useClueConfig.js +4 -6
  90. package/hooks/useClueTypeConfig.js +3 -3
  91. package/hooks/useComparator.js +435 -722
  92. package/hooks/useErrors.js +18 -22
  93. package/hooks/useMyHighlights.js +36 -66
  94. package/hooks/useMyLocalStorage.js +37 -66
  95. package/iconify-BBckr5AQ.js +1263 -0
  96. package/icons/Action.js +49 -66
  97. package/icons/Assessment.js +68 -84
  98. package/icons/Context.js +63 -77
  99. package/icons/Opinion.js +65 -77
  100. package/icons/iconMap.js +2 -2
  101. package/identity-ByMq8VxU.js +6 -0
  102. package/index-BXxfAxFt.js +12734 -0
  103. package/index-C15OYgRY.js +358 -0
  104. package/index-E7g8cRyW.js +568 -0
  105. package/index-p5_wX7q1.js +11729 -0
  106. package/index-vF6IyBhz.js +975 -0
  107. package/isEmpty-g47Qir2A.js +21 -0
  108. package/isNil-CjWwlQS3.js +6 -0
  109. package/isObject-B53jY8Qg.js +7 -0
  110. package/isObjectLike-BatpeCIi.js +29 -0
  111. package/isSymbol-C3_SC0Qp.js +8 -0
  112. package/last-7CdUxN0r.js +7 -0
  113. package/main.js +62 -62
  114. package/package.json +1 -1
  115. package/sortBy-ITdmD17L.js +79 -0
  116. package/sumBy-DxJUU2E8.js +8 -0
  117. package/text/Frequency.js +23 -42
  118. package/toFinite-BMy6GObD.js +14 -0
  119. package/toNumber-YVhnnJv4.js +31 -0
  120. package/useClueTypeConfig-DyeBcXQX.js +2214 -0
  121. package/utils/chain.js +64 -91
  122. package/utils/classificationParser.js +256 -519
  123. package/utils/constants.js +10 -35
  124. package/utils/graph.js +45 -72
  125. package/utils/hashUtil.js +7 -7
  126. package/utils/line.js +81 -131
  127. package/utils/loggerUtil.js +3 -5
  128. package/utils/sessionStorage.js +27 -41
  129. package/utils/time.js +423 -423
  130. package/utils/utils.js +9 -9
  131. package/utils/window.js +10 -21
  132. package/utils-BnmI_6N8.js +130 -0
  133. package/ActionForm-ByeOzpc4.js +0 -555
  134. package/AnnotationDetails-DknbKDyl.js +0 -175
  135. package/AnnotationPreview-CQwKs8se.js +0 -188
  136. package/ClueEnrichContext-6NJfXpUB.js +0 -536
  137. package/FlexOne-BSYAhhtG.js +0 -9
  138. package/_Map-kgDsDYxq.js +0 -64
  139. package/_MapCache-DabaaWfq.js +0 -161
  140. package/_Uint8Array-BlVVH1tp.js +0 -129
  141. package/_baseAssignValue-CNbcU6Nb.js +0 -25
  142. package/_baseClone-D3a8Pa4T.js +0 -284
  143. package/_baseExtremum-B1o1zHjR.js +0 -33
  144. package/_baseFlatten-D4huXoEI.js +0 -92
  145. package/_baseGet-BSK_nnoz.js +0 -109
  146. package/_baseIsEqual-B5xLoweL.js +0 -238
  147. package/_baseIteratee-p6Nj07-n.js +0 -126
  148. package/_baseSlice-GAv_YFTT.js +0 -20
  149. package/_baseSum-D0WC1dN0.js +0 -13
  150. package/_baseUniq-CpupKWcL.js +0 -89
  151. package/_commonjsHelpers-DWwsNxpa.js +0 -8
  152. package/_createAggregator-BpVy5xMi.js +0 -63
  153. package/_getPrototype-D1LAdQKO.js +0 -5
  154. package/_getTag-D3ToyefI.js +0 -126
  155. package/cloneDeep-CjP5k9zW.js +0 -8
  156. package/countBy-C69WslUA.js +0 -14
  157. package/debounce-bV0h5FC5.js +0 -92
  158. package/get-D3C3lEU3.js +0 -8
  159. package/groupBy-DC2oOuBN.js +0 -14
  160. package/iconify-CXMreGTg.js +0 -1782
  161. package/identity-CPGTqrE4.js +0 -6
  162. package/index-BDVjGvMI.js +0 -696
  163. package/index-BbPn6-Mw.js +0 -15750
  164. package/index-Bi21Wb23.js +0 -465
  165. package/index-C3lkTD69.js +0 -1172
  166. package/index-CC12Ux-9.js +0 -17654
  167. package/isEmpty-BQkZubqU.js +0 -29
  168. package/isNil-CIubwp4T.js +0 -6
  169. package/isObject-FTY-5JQX.js +0 -7
  170. package/isObjectLike-OAgjjZye.js +0 -48
  171. package/isSymbol-Xd2FsJyp.js +0 -8
  172. package/last-CUCl67Im.js +0 -7
  173. package/sortBy-B-UKp4GT.js +0 -100
  174. package/sumBy-MYkDPHZL.js +0 -8
  175. package/toFinite-Bc55msYj.js +0 -16
  176. package/toNumber-DPxy1FBy.js +0 -39
  177. package/useClueTypeConfig-XvGvIw2S.js +0 -3201
  178. package/utils-7OtvGnmf.js +0 -200
@@ -0,0 +1,173 @@
1
+ import { U as M, g as x, S } from "./_Uint8Array-DlJCtTvG.js";
2
+ import { M as F, e as q } from "./_MapCache-Cu25RRDU.js";
3
+ import { S as I, i as $ } from "./isObjectLike-BatpeCIi.js";
4
+ import { g as G, a as B, b as K } from "./_getTag-BV_UoLYG.js";
5
+ import { i as C } from "./_Map-DXNg_Z-q.js";
6
+ var J = "__lodash_hash_undefined__";
7
+ function Q(n) {
8
+ return this.__data__.set(n, J), this;
9
+ }
10
+ function X(n) {
11
+ return this.__data__.has(n);
12
+ }
13
+ function E(n) {
14
+ var e = -1, a = n == null ? 0 : n.length;
15
+ for (this.__data__ = new F(); ++e < a; )
16
+ this.add(n[e]);
17
+ }
18
+ E.prototype.add = E.prototype.push = Q;
19
+ E.prototype.has = X;
20
+ function Y(n, e) {
21
+ for (var a = -1, f = n == null ? 0 : n.length; ++a < f; )
22
+ if (e(n[a], a, n))
23
+ return !0;
24
+ return !1;
25
+ }
26
+ function Z(n, e) {
27
+ return n.has(e);
28
+ }
29
+ var c = 1, W = 2;
30
+ function b(n, e, a, f, u, r) {
31
+ var s = a & c, l = n.length, g = e.length;
32
+ if (l != g && !(s && g > l))
33
+ return !1;
34
+ var t = r.get(n), p = r.get(e);
35
+ if (t && p)
36
+ return t == e && p == n;
37
+ var _ = -1, i = !0, v = a & W ? new E() : void 0;
38
+ for (r.set(n, e), r.set(e, n); ++_ < l; ) {
39
+ var d = n[_], A = e[_];
40
+ if (f)
41
+ var T = s ? f(A, d, _, e, n, r) : f(d, A, _, n, e, r);
42
+ if (T !== void 0) {
43
+ if (T)
44
+ continue;
45
+ i = !1;
46
+ break;
47
+ }
48
+ if (v) {
49
+ if (!Y(e, function(O, w) {
50
+ if (!Z(v, w) && (d === O || u(d, O, a, f, r)))
51
+ return v.push(w);
52
+ })) {
53
+ i = !1;
54
+ break;
55
+ }
56
+ } else if (!(d === A || u(d, A, a, f, r))) {
57
+ i = !1;
58
+ break;
59
+ }
60
+ }
61
+ return r.delete(n), r.delete(e), i;
62
+ }
63
+ function h(n) {
64
+ var e = -1, a = Array(n.size);
65
+ return n.forEach(function(f, u) {
66
+ a[++e] = [u, f];
67
+ }), a;
68
+ }
69
+ function o(n) {
70
+ var e = -1, a = Array(n.size);
71
+ return n.forEach(function(f) {
72
+ a[++e] = f;
73
+ }), a;
74
+ }
75
+ var z = 1, j = 2, V = "[object Boolean]", k = "[object Date]", nn = "[object Error]", en = "[object Map]", rn = "[object Number]", an = "[object RegExp]", fn = "[object Set]", sn = "[object String]", un = "[object Symbol]", gn = "[object ArrayBuffer]", ln = "[object DataView]", N = I ? I.prototype : void 0, R = N ? N.valueOf : void 0;
76
+ function tn(n, e, a, f, u, r, s) {
77
+ switch (a) {
78
+ case ln:
79
+ if (n.byteLength != e.byteLength || n.byteOffset != e.byteOffset)
80
+ return !1;
81
+ n = n.buffer, e = e.buffer;
82
+ case gn:
83
+ return !(n.byteLength != e.byteLength || !r(new M(n), new M(e)));
84
+ case V:
85
+ case k:
86
+ case rn:
87
+ return q(+n, +e);
88
+ case nn:
89
+ return n.name == e.name && n.message == e.message;
90
+ case an:
91
+ case sn:
92
+ return n == e + "";
93
+ case en:
94
+ var l = h;
95
+ case fn:
96
+ var g = f & z;
97
+ if (l || (l = o), n.size != e.size && !g)
98
+ return !1;
99
+ var t = s.get(n);
100
+ if (t)
101
+ return t == e;
102
+ f |= j, s.set(n, e);
103
+ var p = b(l(n), l(e), f, u, r, s);
104
+ return s.delete(n), p;
105
+ case un:
106
+ if (R)
107
+ return R.call(n) == R.call(e);
108
+ }
109
+ return !1;
110
+ }
111
+ var _n = 1, dn = Object.prototype, An = dn.hasOwnProperty;
112
+ function pn(n, e, a, f, u, r) {
113
+ var s = a & _n, l = x(n), g = l.length, t = x(e), p = t.length;
114
+ if (g != p && !s)
115
+ return !1;
116
+ for (var _ = g; _--; ) {
117
+ var i = l[_];
118
+ if (!(s ? i in e : An.call(e, i)))
119
+ return !1;
120
+ }
121
+ var v = r.get(n), d = r.get(e);
122
+ if (v && d)
123
+ return v == e && d == n;
124
+ var A = !0;
125
+ r.set(n, e), r.set(e, n);
126
+ for (var T = s; ++_ < g; ) {
127
+ i = l[_];
128
+ var O = n[i], w = e[i];
129
+ if (f)
130
+ var D = s ? f(w, O, i, e, n, r) : f(O, w, i, n, e, r);
131
+ if (!(D === void 0 ? O === w || u(O, w, a, f, r) : D)) {
132
+ A = !1;
133
+ break;
134
+ }
135
+ T || (T = i == "constructor");
136
+ }
137
+ if (A && !T) {
138
+ var y = n.constructor, P = e.constructor;
139
+ y != P && "constructor" in n && "constructor" in e && !(typeof y == "function" && y instanceof y && typeof P == "function" && P instanceof P) && (A = !1);
140
+ }
141
+ return r.delete(n), r.delete(e), A;
142
+ }
143
+ var vn = 1, U = "[object Arguments]", m = "[object Array]", L = "[object Object]", Tn = Object.prototype, H = Tn.hasOwnProperty;
144
+ function On(n, e, a, f, u, r) {
145
+ var s = C(n), l = C(e), g = s ? m : G(n), t = l ? m : G(e);
146
+ g = g == U ? L : g, t = t == U ? L : t;
147
+ var p = g == L, _ = t == L, i = g == t;
148
+ if (i && B(n)) {
149
+ if (!B(e))
150
+ return !1;
151
+ s = !0, p = !1;
152
+ }
153
+ if (i && !p)
154
+ return r || (r = new S()), s || K(n) ? b(n, e, a, f, u, r) : tn(n, e, g, a, f, u, r);
155
+ if (!(a & vn)) {
156
+ var v = p && H.call(n, "__wrapped__"), d = _ && H.call(e, "__wrapped__");
157
+ if (v || d) {
158
+ var A = v ? n.value() : n, T = d ? e.value() : e;
159
+ return r || (r = new S()), u(A, T, a, f, r);
160
+ }
161
+ }
162
+ return i ? (r || (r = new S()), pn(n, e, a, f, u, r)) : !1;
163
+ }
164
+ function wn(n, e, a, f, u) {
165
+ return n === e ? !0 : n == null || e == null || !$(n) && !$(e) ? n !== n && e !== e : On(n, e, a, f, wn, u);
166
+ }
167
+ export {
168
+ E as S,
169
+ wn as b,
170
+ Z as c,
171
+ h as m,
172
+ o as s
173
+ };
@@ -0,0 +1,95 @@
1
+ import { S as R, k as E, i as I } from "./_Uint8Array-DlJCtTvG.js";
2
+ import { b as m } from "./_baseIsEqual-Cpjtfb3Q.js";
3
+ import { i as M } from "./isObject-B53jY8Qg.js";
4
+ import { g as _ } from "./get-Bow1vKwx.js";
5
+ import { c, t as s, i as h, b as d } from "./_baseGet-Dgf6_xCm.js";
6
+ import { h as L, c as y } from "./_getTag-BV_UoLYG.js";
7
+ import { i as A } from "./_Map-DXNg_Z-q.js";
8
+ import { i as C } from "./identity-ByMq8VxU.js";
9
+ var w = 1, D = 2;
10
+ function G(n, r, i, e) {
11
+ var t = i.length, u = t;
12
+ if (n == null)
13
+ return !u;
14
+ for (n = Object(n); t--; ) {
15
+ var f = i[t];
16
+ if (f[2] ? f[1] !== n[f[0]] : !(f[0] in n))
17
+ return !1;
18
+ }
19
+ for (; ++t < u; ) {
20
+ f = i[t];
21
+ var a = f[0], l = n[a], P = f[1];
22
+ if (f[2]) {
23
+ if (l === void 0 && !(a in n))
24
+ return !1;
25
+ } else {
26
+ var O = new R(), o;
27
+ if (!(o === void 0 ? m(P, l, w | D, e, O) : o))
28
+ return !1;
29
+ }
30
+ }
31
+ return !0;
32
+ }
33
+ function g(n) {
34
+ return n === n && !M(n);
35
+ }
36
+ function x(n) {
37
+ for (var r = E(n), i = r.length; i--; ) {
38
+ var e = r[i], t = n[e];
39
+ r[i] = [e, t, g(t)];
40
+ }
41
+ return r;
42
+ }
43
+ function p(n, r) {
44
+ return function(i) {
45
+ return i == null ? !1 : i[n] === r && (r !== void 0 || n in Object(i));
46
+ };
47
+ }
48
+ function F(n) {
49
+ var r = x(n);
50
+ return r.length == 1 && r[0][2] ? p(r[0][0], r[0][1]) : function(i) {
51
+ return i === n || G(i, n, r);
52
+ };
53
+ }
54
+ function S(n, r) {
55
+ return n != null && r in Object(n);
56
+ }
57
+ function v(n, r, i) {
58
+ r = c(r, n);
59
+ for (var e = -1, t = r.length, u = !1; ++e < t; ) {
60
+ var f = s(r[e]);
61
+ if (!(u = n != null && i(n, f)))
62
+ break;
63
+ n = n[f];
64
+ }
65
+ return u || ++e != t ? u : (t = n == null ? 0 : n.length, !!t && L(t) && I(f, t) && (A(n) || y(n)));
66
+ }
67
+ function K(n, r) {
68
+ return n != null && v(n, r, S);
69
+ }
70
+ var N = 1, T = 2;
71
+ function U(n, r) {
72
+ return h(n) && g(r) ? p(s(n), r) : function(i) {
73
+ var e = _(i, n);
74
+ return e === void 0 && e === r ? K(i, n) : m(r, e, N | T);
75
+ };
76
+ }
77
+ function $(n) {
78
+ return function(r) {
79
+ return r == null ? void 0 : r[n];
80
+ };
81
+ }
82
+ function q(n) {
83
+ return function(r) {
84
+ return d(r, n);
85
+ };
86
+ }
87
+ function H(n) {
88
+ return h(n) ? $(s(n)) : q(n);
89
+ }
90
+ function k(n) {
91
+ return typeof n == "function" ? n : n == null ? C : typeof n == "object" ? A(n) ? U(n[0], n[1]) : F(n) : H(n);
92
+ }
93
+ export {
94
+ k as b
95
+ };
@@ -0,0 +1,10 @@
1
+ function b(h, i, e) {
2
+ var f = -1, l = h.length;
3
+ i < 0 && (i = -i > l ? 0 : l + i), e = e > l ? l : e, e < 0 && (e += l), l = i > e ? 0 : e - i >>> 0, i >>>= 0;
4
+ for (var u = Array(l); ++f < l; )
5
+ u[f] = h[f + i];
6
+ return u;
7
+ }
8
+ export {
9
+ b
10
+ };
@@ -0,0 +1,10 @@
1
+ function t(i, f) {
2
+ for (var e, d = -1, l = i.length; ++d < l; ) {
3
+ var n = f(i[d]);
4
+ n !== void 0 && (e = e === void 0 ? n : e + n);
5
+ }
6
+ return e;
7
+ }
8
+ export {
9
+ t as b
10
+ };
@@ -0,0 +1,61 @@
1
+ import { s as I, S as x, c as S } from "./_baseIsEqual-Cpjtfb3Q.js";
2
+ import { S as g } from "./_getTag-BV_UoLYG.js";
3
+ function b() {
4
+ }
5
+ function d(n, e, i, t) {
6
+ for (var s = n.length, h = i + -1; ++h < s; )
7
+ if (e(n[h], h, n))
8
+ return h;
9
+ return -1;
10
+ }
11
+ function A(n) {
12
+ return n !== n;
13
+ }
14
+ function N(n, e, i) {
15
+ for (var t = i - 1, s = n.length; ++t < s; )
16
+ if (n[t] === e)
17
+ return t;
18
+ return -1;
19
+ }
20
+ function R(n, e, i) {
21
+ return e === e ? N(n, e, i) : d(n, A, i);
22
+ }
23
+ function v(n, e) {
24
+ var i = n == null ? 0 : n.length;
25
+ return !!i && R(n, e, 0) > -1;
26
+ }
27
+ function C(n, e, i) {
28
+ for (var t = -1, s = n == null ? 0 : n.length; ++t < s; )
29
+ if (i(e, n[t]))
30
+ return !0;
31
+ return !1;
32
+ }
33
+ var E = 1 / 0, F = g && 1 / I(new g([, -0]))[1] == E ? function(n) {
34
+ return new g(n);
35
+ } : b, O = 200;
36
+ function _(n, e, i) {
37
+ var t = -1, s = v, h = n.length, c = !0, r = [], f = r;
38
+ if (i)
39
+ c = !1, s = C;
40
+ else if (h >= O) {
41
+ var o = e ? null : F(n);
42
+ if (o)
43
+ return I(o);
44
+ c = !1, s = S, f = new x();
45
+ } else
46
+ f = e ? [] : r;
47
+ n:
48
+ for (; ++t < h; ) {
49
+ var l = n[t], u = e ? e(l) : l;
50
+ if (l = i || l !== 0 ? l : 0, c && u === u) {
51
+ for (var w = f.length; w--; )
52
+ if (f[w] === u)
53
+ continue n;
54
+ e && f.push(u), r.push(l);
55
+ } else s(f, u, i) || (f !== r && f.push(u), r.push(l));
56
+ }
57
+ return r;
58
+ }
59
+ export {
60
+ _ as b
61
+ };
@@ -0,0 +1,8 @@
1
+ var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
+ function l(e) {
3
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
+ }
5
+ export {
6
+ o as c,
7
+ l as g
8
+ };
@@ -0,0 +1,53 @@
1
+ import { k as g } from "./_Uint8Array-DlJCtTvG.js";
2
+ import { i as h } from "./_getTag-BV_UoLYG.js";
3
+ import { b } from "./_baseIteratee-CP1bocOX.js";
4
+ import { i as o } from "./_Map-DXNg_Z-q.js";
5
+ function m(e, t, r, n) {
6
+ for (var a = -1, i = e == null ? 0 : e.length; ++a < i; ) {
7
+ var f = e[a];
8
+ t(n, f, r(f), e);
9
+ }
10
+ return n;
11
+ }
12
+ function p(e) {
13
+ return function(t, r, n) {
14
+ for (var a = -1, i = Object(t), f = n(t), u = f.length; u--; ) {
15
+ var s = f[++a];
16
+ if (r(i[s], s, i) === !1)
17
+ break;
18
+ }
19
+ return t;
20
+ };
21
+ }
22
+ var v = p();
23
+ function k(e, t) {
24
+ return e && v(e, t, g);
25
+ }
26
+ function A(e, t) {
27
+ return function(r, n) {
28
+ if (r == null)
29
+ return r;
30
+ if (!h(r))
31
+ return e(r, n);
32
+ for (var a = r.length, i = -1, f = Object(r); ++i < a && n(f[i], i, f) !== !1; )
33
+ ;
34
+ return r;
35
+ };
36
+ }
37
+ var w = A(k);
38
+ function x(e, t, r, n) {
39
+ return w(e, function(a, i, f) {
40
+ t(n, a, r(a), f);
41
+ }), n;
42
+ }
43
+ function E(e, t) {
44
+ return function(r, n) {
45
+ var a = o(r) ? m : x, i = {};
46
+ return a(r, e, b(n), i);
47
+ };
48
+ }
49
+ export {
50
+ k as a,
51
+ w as b,
52
+ E as c
53
+ };
@@ -0,0 +1,5 @@
1
+ import { o as t } from "./_getTag-BV_UoLYG.js";
2
+ var e = t(Object.getPrototypeOf, Object);
3
+ export {
4
+ e as g
5
+ };
@@ -0,0 +1,90 @@
1
+ import { g as i, a as B, t as n, M as b } from "./_Map-DXNg_Z-q.js";
2
+ import { r as c, i as T, b as u, f as C } from "./isObjectLike-BatpeCIi.js";
3
+ var f = i(c, "WeakMap"), k = 9007199254740991;
4
+ function P(r) {
5
+ return typeof r == "number" && r > -1 && r % 1 == 0 && r <= k;
6
+ }
7
+ function Pr(r) {
8
+ return r != null && P(r.length) && !B(r);
9
+ }
10
+ var V = Object.prototype;
11
+ function F(r) {
12
+ var t = r && r.constructor, a = typeof t == "function" && t.prototype || V;
13
+ return r === a;
14
+ }
15
+ var U = "[object Arguments]";
16
+ function l(r) {
17
+ return T(r) && u(r) == U;
18
+ }
19
+ var h = Object.prototype, D = h.hasOwnProperty, W = h.propertyIsEnumerable, hr = l(/* @__PURE__ */ function() {
20
+ return arguments;
21
+ }()) ? l : function(r) {
22
+ return T(r) && D.call(r, "callee") && !W.call(r, "callee");
23
+ };
24
+ function G() {
25
+ return !1;
26
+ }
27
+ var E = typeof exports == "object" && exports && !exports.nodeType && exports, m = E && typeof module == "object" && module && !module.nodeType && module, L = m && m.exports === E, v = L ? c.Buffer : void 0, N = v ? v.isBuffer : void 0, Er = N || G, q = "[object Arguments]", K = "[object Array]", R = "[object Boolean]", _ = "[object Date]", X = "[object Error]", z = "[object Function]", H = "[object Map]", J = "[object Number]", Q = "[object Object]", Y = "[object RegExp]", Z = "[object Set]", rr = "[object String]", er = "[object WeakMap]", tr = "[object ArrayBuffer]", ar = "[object DataView]", or = "[object Float32Array]", nr = "[object Float64Array]", sr = "[object Int8Array]", cr = "[object Int16Array]", ir = "[object Int32Array]", ur = "[object Uint8Array]", pr = "[object Uint8ClampedArray]", br = "[object Uint16Array]", fr = "[object Uint32Array]", e = {};
28
+ e[or] = e[nr] = e[sr] = e[cr] = e[ir] = e[ur] = e[pr] = e[br] = e[fr] = !0;
29
+ e[q] = e[K] = e[tr] = e[R] = e[ar] = e[_] = e[X] = e[z] = e[H] = e[J] = e[Q] = e[Y] = e[Z] = e[rr] = e[er] = !1;
30
+ function gr(r) {
31
+ return T(r) && P(r.length) && !!e[u(r)];
32
+ }
33
+ function yr(r) {
34
+ return function(t) {
35
+ return r(t);
36
+ };
37
+ }
38
+ var I = typeof exports == "object" && exports && !exports.nodeType && exports, s = I && typeof module == "object" && module && !module.nodeType && module, jr = s && s.exports === I, p = jr && C.process, A = function() {
39
+ try {
40
+ var r = s && s.require && s.require("util").types;
41
+ return r || p && p.binding && p.binding("util");
42
+ } catch {
43
+ }
44
+ }(), w = A && A.isTypedArray, Ir = w ? yr(w) : gr;
45
+ function Tr(r, t) {
46
+ return function(a) {
47
+ return r(t(a));
48
+ };
49
+ }
50
+ var dr = Tr(Object.keys, Object), lr = Object.prototype, mr = lr.hasOwnProperty;
51
+ function Br(r) {
52
+ if (!F(r))
53
+ return dr(r);
54
+ var t = [];
55
+ for (var a in Object(r))
56
+ mr.call(r, a) && a != "constructor" && t.push(a);
57
+ return t;
58
+ }
59
+ var g = i(c, "DataView"), y = i(c, "Promise"), j = i(c, "Set"), x = "[object Map]", vr = "[object Object]", M = "[object Promise]", S = "[object Set]", O = "[object WeakMap]", $ = "[object DataView]", Ar = n(g), wr = n(b), xr = n(y), Mr = n(j), Sr = n(f), o = u;
60
+ (g && o(new g(new ArrayBuffer(1))) != $ || b && o(new b()) != x || y && o(y.resolve()) != M || j && o(new j()) != S || f && o(new f()) != O) && (o = function(r) {
61
+ var t = u(r), a = t == vr ? r.constructor : void 0, d = a ? n(a) : "";
62
+ if (d)
63
+ switch (d) {
64
+ case Ar:
65
+ return $;
66
+ case wr:
67
+ return x;
68
+ case xr:
69
+ return M;
70
+ case Mr:
71
+ return S;
72
+ case Sr:
73
+ return O;
74
+ }
75
+ return t;
76
+ });
77
+ export {
78
+ j as S,
79
+ Er as a,
80
+ Ir as b,
81
+ hr as c,
82
+ F as d,
83
+ Br as e,
84
+ yr as f,
85
+ o as g,
86
+ P as h,
87
+ Pr as i,
88
+ A as n,
89
+ Tr as o
90
+ };
@@ -0,0 +1,8 @@
1
+ import { b as o } from "./_baseClone-BlMmRXeX.js";
2
+ var r = 1, n = 4;
3
+ function a(e) {
4
+ return o(e, r | n);
5
+ }
6
+ export {
7
+ a as c
8
+ };
@@ -1,56 +1,42 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { I as Icon } from "../iconify-CXMreGTg.js";
3
- import { Box, Chip, Stack, Typography } from "@mui/material";
4
- import { memo, useMemo } from "react";
5
- const AnnotationBody = ({ annotation }) => {
6
- const icon = useMemo(() => {
7
- if (annotation.type === "assessment") {
8
- return ["trivial", "recon", "attempt", "compromise", "mitigated"].includes(annotation.value) ? "healthicons:hazardous" : "fluent-mdl2:ribbon-solid";
1
+ import { jsx as r, jsxs as p } from "react/jsx-runtime";
2
+ import { I as s } from "../iconify-BBckr5AQ.js";
3
+ import { Box as u, Chip as m, Stack as d, Typography as i } from "@mui/material";
4
+ import { memo as o, useMemo as t } from "react";
5
+ const y = ({ annotation: e }) => {
6
+ const l = t(() => e.type === "assessment" ? ["trivial", "recon", "attempt", "compromise", "mitigated"].includes(e.value) ? "healthicons:hazardous" : "fluent-mdl2:ribbon-solid" : e.type === "opinion" ? e.value === "benign" ? "mdi:shield-check" : e.value === "suspicious" ? "mdi:warning-outline" : e.value === "obscure" ? "bi:eye-slash-fill" : "mdi:warning-decagram" : null, [e.type, e.value]);
7
+ return e.type === "assessment" ? /* @__PURE__ */ r(u, { children: /* @__PURE__ */ r(
8
+ m,
9
+ {
10
+ size: "small",
11
+ icon: /* @__PURE__ */ r(s, { icon: l }),
12
+ color: ["trivial", "recon", "attempt", "compromise", "mitigated"].includes(e.value) ? "error" : "success",
13
+ label: `${e.type}: ${e.value}`,
14
+ sx: { textTransform: "capitalize" }
9
15
  }
10
- if (annotation.type === "opinion") {
11
- return annotation.value === "benign" ? "mdi:shield-check" : annotation.value === "suspicious" ? "mdi:warning-outline" : annotation.value === "obscure" ? "bi:eye-slash-fill" : "mdi:warning-decagram";
16
+ ) }) : e.type === "opinion" ? /* @__PURE__ */ r(u, { children: /* @__PURE__ */ r(
17
+ m,
18
+ {
19
+ size: "small",
20
+ icon: /* @__PURE__ */ r(s, { icon: l }),
21
+ color: {
22
+ benign: "success",
23
+ suspicious: "warning",
24
+ obscure: "error",
25
+ malicious: "error"
26
+ }[e.value],
27
+ label: `${e.type}: ${e.value}`,
28
+ sx: { textTransform: "capitalize" }
12
29
  }
13
- return null;
14
- }, [annotation.type, annotation.value]);
15
- if (annotation.type === "assessment") {
16
- return /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
17
- Chip,
18
- {
19
- size: "small",
20
- icon: /* @__PURE__ */ jsx(Icon, { icon }),
21
- color: ["trivial", "recon", "attempt", "compromise", "mitigated"].includes(annotation.value) ? "error" : "success",
22
- label: `${annotation.type}: ${annotation.value}`,
23
- sx: { textTransform: "capitalize" }
24
- }
25
- ) });
26
- }
27
- if (annotation.type === "opinion") {
28
- return /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
29
- Chip,
30
- {
31
- size: "small",
32
- icon: /* @__PURE__ */ jsx(Icon, { icon }),
33
- color: {
34
- benign: "success",
35
- suspicious: "warning",
36
- obscure: "error",
37
- malicious: "error"
38
- }[annotation.value],
39
- label: `${annotation.type}: ${annotation.value}`,
40
- sx: { textTransform: "capitalize" }
41
- }
42
- ) });
43
- }
44
- return /* @__PURE__ */ jsxs(Stack, { direction: "row", alignItems: "center", spacing: 0.5, children: [
45
- annotation.icon && /* @__PURE__ */ jsx(Icon, { icon: annotation.icon, style: { filter: "drop-shadow(0px 0px 1px rgb(0 0 0 / 0.4))" } }),
46
- annotation.type !== "context" && /* @__PURE__ */ jsxs(Typography, { variant: "body2", sx: { textTransform: "capitalize" }, children: [
47
- annotation.type,
30
+ ) }) : /* @__PURE__ */ p(d, { direction: "row", alignItems: "center", spacing: 0.5, children: [
31
+ e.icon && /* @__PURE__ */ r(s, { icon: e.icon, style: { filter: "drop-shadow(0px 0px 1px rgb(0 0 0 / 0.4))" } }),
32
+ e.type !== "context" && /* @__PURE__ */ p(i, { variant: "body2", sx: { textTransform: "capitalize" }, children: [
33
+ e.type,
48
34
  ":"
49
35
  ] }),
50
- typeof annotation.value !== "string" ? /* @__PURE__ */ jsx(Typography, { variant: "body2", children: annotation.value }) : /* @__PURE__ */ jsx(Stack, { spacing: 0.5, children: annotation.value.split("\n").map((line) => /* @__PURE__ */ jsx(Typography, { variant: "body2", children: line }, line)) })
36
+ typeof e.value != "string" ? /* @__PURE__ */ r(i, { variant: "body2", children: e.value }) : /* @__PURE__ */ r(d, { spacing: 0.5, children: e.value.split(`
37
+ `).map((c) => /* @__PURE__ */ r(i, { variant: "body2", children: c }, c)) })
51
38
  ] });
52
- };
53
- const AnnotationBody$1 = memo(AnnotationBody);
39
+ }, g = o(y);
54
40
  export {
55
- AnnotationBody$1 as default
41
+ g as default
56
42
  };