@cccsaurora/clue-ui 1.2.3-dev.266 → 1.2.3

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-DlOXqMUx.js +4460 -0
  2. package/AnnotationDetails-Bk-p0F6h.js +160 -0
  3. package/AnnotationPreview-jzZvkCxJ.js +140 -0
  4. package/ClueEnrichContext-KqRuuWNS.js +418 -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 +2 -2
  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-uDp92tN2.js +0 -5941
  138. package/AnnotationDetails-DGYfOiWm.js +0 -175
  139. package/AnnotationPreview-bHObsb3P.js +0 -188
  140. package/ClueEnrichContext-CJEJxrgs.js +0 -541
  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
@@ -1,63 +0,0 @@
1
- import { k as keys } from "./_Uint8Array-B7JqpgFX.js";
2
- import { i as isArrayLike } from "./_getTag-Ckxxfr88.js";
3
- import { b as baseIteratee } from "./_baseIteratee-avi7MX2o.js";
4
- import { i as isArray } from "./_MapCache-WmuDdwuH.js";
5
- function arrayAggregator(array, setter, iteratee, accumulator) {
6
- var index = -1, length = array == null ? 0 : array.length;
7
- while (++index < length) {
8
- var value = array[index];
9
- setter(accumulator, value, iteratee(value), array);
10
- }
11
- return accumulator;
12
- }
13
- function createBaseFor(fromRight) {
14
- return function(object, iteratee, keysFunc) {
15
- var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
16
- while (length--) {
17
- var key = props[++index];
18
- if (iteratee(iterable[key], key, iterable) === false) {
19
- break;
20
- }
21
- }
22
- return object;
23
- };
24
- }
25
- var baseFor = createBaseFor();
26
- function baseForOwn(object, iteratee) {
27
- return object && baseFor(object, iteratee, keys);
28
- }
29
- function createBaseEach(eachFunc, fromRight) {
30
- return function(collection, iteratee) {
31
- if (collection == null) {
32
- return collection;
33
- }
34
- if (!isArrayLike(collection)) {
35
- return eachFunc(collection, iteratee);
36
- }
37
- var length = collection.length, index = -1, iterable = Object(collection);
38
- while (++index < length) {
39
- if (iteratee(iterable[index], index, iterable) === false) {
40
- break;
41
- }
42
- }
43
- return collection;
44
- };
45
- }
46
- var baseEach = createBaseEach(baseForOwn);
47
- function baseAggregator(collection, setter, iteratee, accumulator) {
48
- baseEach(collection, function(value, key, collection2) {
49
- setter(accumulator, value, iteratee(value), collection2);
50
- });
51
- return accumulator;
52
- }
53
- function createAggregator(setter, initializer) {
54
- return function(collection, iteratee) {
55
- var func = isArray(collection) ? arrayAggregator : baseAggregator, accumulator = {};
56
- return func(collection, setter, baseIteratee(iteratee), accumulator);
57
- };
58
- }
59
- export {
60
- baseForOwn as a,
61
- baseEach as b,
62
- createAggregator as c
63
- };
@@ -1,5 +0,0 @@
1
- import { o as overArg } from "./_getTag-Ckxxfr88.js";
2
- var getPrototype = overArg(Object.getPrototypeOf, Object);
3
- export {
4
- getPrototype as g
5
- };
@@ -1,126 +0,0 @@
1
- import { g as getNative, b as isFunction, t as toSource, a as Map } from "./_MapCache-WmuDdwuH.js";
2
- import { r as root, i as isObjectLike, b as baseGetTag, f as freeGlobal } from "./isObjectLike-OAgjjZye.js";
3
- var WeakMap = getNative(root, "WeakMap");
4
- var MAX_SAFE_INTEGER = 9007199254740991;
5
- function isLength(value) {
6
- return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
7
- }
8
- function isArrayLike(value) {
9
- return value != null && isLength(value.length) && !isFunction(value);
10
- }
11
- var objectProto$2 = Object.prototype;
12
- function isPrototype(value) {
13
- var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$2;
14
- return value === proto;
15
- }
16
- var argsTag$1 = "[object Arguments]";
17
- function baseIsArguments(value) {
18
- return isObjectLike(value) && baseGetTag(value) == argsTag$1;
19
- }
20
- var objectProto$1 = Object.prototype;
21
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
22
- var propertyIsEnumerable = objectProto$1.propertyIsEnumerable;
23
- var isArguments = baseIsArguments(/* @__PURE__ */ function() {
24
- return arguments;
25
- }()) ? baseIsArguments : function(value) {
26
- return isObjectLike(value) && hasOwnProperty$1.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
27
- };
28
- function stubFalse() {
29
- return false;
30
- }
31
- var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType && exports;
32
- var freeModule$1 = freeExports$1 && typeof module == "object" && module && !module.nodeType && module;
33
- var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;
34
- var Buffer = moduleExports$1 ? root.Buffer : void 0;
35
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
36
- var isBuffer = nativeIsBuffer || stubFalse;
37
- var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", mapTag$1 = "[object Map]", numberTag = "[object Number]", objectTag$1 = "[object Object]", regexpTag = "[object RegExp]", setTag$1 = "[object Set]", stringTag = "[object String]", weakMapTag$1 = "[object WeakMap]";
38
- var arrayBufferTag = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
39
- var typedArrayTags = {};
40
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
41
- typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag$1] = typedArrayTags[numberTag] = typedArrayTags[objectTag$1] = typedArrayTags[regexpTag] = typedArrayTags[setTag$1] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag$1] = false;
42
- function baseIsTypedArray(value) {
43
- return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
44
- }
45
- function baseUnary(func) {
46
- return function(value) {
47
- return func(value);
48
- };
49
- }
50
- var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
51
- var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
52
- var moduleExports = freeModule && freeModule.exports === freeExports;
53
- var freeProcess = moduleExports && freeGlobal.process;
54
- var nodeUtil = function() {
55
- try {
56
- var types = freeModule && freeModule.require && freeModule.require("util").types;
57
- if (types) {
58
- return types;
59
- }
60
- return freeProcess && freeProcess.binding && freeProcess.binding("util");
61
- } catch (e) {
62
- }
63
- }();
64
- var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
65
- var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
66
- function overArg(func, transform) {
67
- return function(arg) {
68
- return func(transform(arg));
69
- };
70
- }
71
- var nativeKeys = overArg(Object.keys, Object);
72
- var objectProto = Object.prototype;
73
- var hasOwnProperty = objectProto.hasOwnProperty;
74
- function baseKeys(object) {
75
- if (!isPrototype(object)) {
76
- return nativeKeys(object);
77
- }
78
- var result = [];
79
- for (var key in Object(object)) {
80
- if (hasOwnProperty.call(object, key) && key != "constructor") {
81
- result.push(key);
82
- }
83
- }
84
- return result;
85
- }
86
- var DataView = getNative(root, "DataView");
87
- var Promise$1 = getNative(root, "Promise");
88
- var Set = getNative(root, "Set");
89
- var mapTag = "[object Map]", objectTag = "[object Object]", promiseTag = "[object Promise]", setTag = "[object Set]", weakMapTag = "[object WeakMap]";
90
- var dataViewTag = "[object DataView]";
91
- var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
92
- var getTag = baseGetTag;
93
- if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map()) != mapTag || Promise$1 && getTag(Promise$1.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
94
- getTag = function(value) {
95
- var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
96
- if (ctorString) {
97
- switch (ctorString) {
98
- case dataViewCtorString:
99
- return dataViewTag;
100
- case mapCtorString:
101
- return mapTag;
102
- case promiseCtorString:
103
- return promiseTag;
104
- case setCtorString:
105
- return setTag;
106
- case weakMapCtorString:
107
- return weakMapTag;
108
- }
109
- }
110
- return result;
111
- };
112
- }
113
- export {
114
- Set as S,
115
- isBuffer as a,
116
- baseUnary as b,
117
- isTypedArray as c,
118
- isArguments as d,
119
- isPrototype as e,
120
- baseKeys as f,
121
- getTag as g,
122
- isLength as h,
123
- isArrayLike as i,
124
- nodeUtil as n,
125
- overArg as o
126
- };
@@ -1,17 +0,0 @@
1
- import { e as eq } from "./_MapCache-WmuDdwuH.js";
2
- import { i as isArrayLike } from "./_getTag-Ckxxfr88.js";
3
- import { i as isIndex } from "./_Uint8Array-B7JqpgFX.js";
4
- import { i as isObject } from "./isObject-FTY-5JQX.js";
5
- function isIterateeCall(value, index, object) {
6
- if (!isObject(object)) {
7
- return false;
8
- }
9
- var type = typeof index;
10
- if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) {
11
- return eq(object[index], value);
12
- }
13
- return false;
14
- }
15
- export {
16
- isIterateeCall as i
17
- };
@@ -1,33 +0,0 @@
1
- import { M as MapCache } from "./_MapCache-WmuDdwuH.js";
2
- var HASH_UNDEFINED = "__lodash_hash_undefined__";
3
- function setCacheAdd(value) {
4
- this.__data__.set(value, HASH_UNDEFINED);
5
- return this;
6
- }
7
- function setCacheHas(value) {
8
- return this.__data__.has(value);
9
- }
10
- function SetCache(values) {
11
- var index = -1, length = values == null ? 0 : values.length;
12
- this.__data__ = new MapCache();
13
- while (++index < length) {
14
- this.add(values[index]);
15
- }
16
- }
17
- SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
18
- SetCache.prototype.has = setCacheHas;
19
- function cacheHas(cache, key) {
20
- return cache.has(key);
21
- }
22
- function setToArray(set) {
23
- var index = -1, result = Array(set.size);
24
- set.forEach(function(value) {
25
- result[++index] = value;
26
- });
27
- return result;
28
- }
29
- export {
30
- SetCache as S,
31
- cacheHas as c,
32
- setToArray as s
33
- };
@@ -1,8 +0,0 @@
1
- import { b as baseClone } from "./_baseClone-CkNrTyhm.js";
2
- var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
3
- function cloneDeep(value) {
4
- return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
5
- }
6
- export {
7
- cloneDeep as c
8
- };
@@ -1,14 +0,0 @@
1
- import { b as baseAssignValue } from "./_baseAssignValue-CGTuELqU.js";
2
- import { c as createAggregator } from "./_createAggregator-QD8MzKwe.js";
3
- var objectProto = Object.prototype;
4
- var hasOwnProperty = objectProto.hasOwnProperty;
5
- var countBy = createAggregator(function(result, value, key) {
6
- if (hasOwnProperty.call(result, key)) {
7
- ++result[key];
8
- } else {
9
- baseAssignValue(result, key, 1);
10
- }
11
- });
12
- export {
13
- countBy as c
14
- };
@@ -1,92 +0,0 @@
1
- import { i as isObject } from "./isObject-FTY-5JQX.js";
2
- import { r as root } from "./isObjectLike-OAgjjZye.js";
3
- import { t as toNumber } from "./toNumber-DPxy1FBy.js";
4
- var now = function() {
5
- return root.Date.now();
6
- };
7
- var FUNC_ERROR_TEXT = "Expected a function";
8
- var nativeMax = Math.max, nativeMin = Math.min;
9
- function debounce(func, wait, options) {
10
- var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
11
- if (typeof func != "function") {
12
- throw new TypeError(FUNC_ERROR_TEXT);
13
- }
14
- wait = toNumber(wait) || 0;
15
- if (isObject(options)) {
16
- leading = !!options.leading;
17
- maxing = "maxWait" in options;
18
- maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
19
- trailing = "trailing" in options ? !!options.trailing : trailing;
20
- }
21
- function invokeFunc(time) {
22
- var args = lastArgs, thisArg = lastThis;
23
- lastArgs = lastThis = void 0;
24
- lastInvokeTime = time;
25
- result = func.apply(thisArg, args);
26
- return result;
27
- }
28
- function leadingEdge(time) {
29
- lastInvokeTime = time;
30
- timerId = setTimeout(timerExpired, wait);
31
- return leading ? invokeFunc(time) : result;
32
- }
33
- function remainingWait(time) {
34
- var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall;
35
- return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
36
- }
37
- function shouldInvoke(time) {
38
- var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
39
- return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
40
- }
41
- function timerExpired() {
42
- var time = now();
43
- if (shouldInvoke(time)) {
44
- return trailingEdge(time);
45
- }
46
- timerId = setTimeout(timerExpired, remainingWait(time));
47
- }
48
- function trailingEdge(time) {
49
- timerId = void 0;
50
- if (trailing && lastArgs) {
51
- return invokeFunc(time);
52
- }
53
- lastArgs = lastThis = void 0;
54
- return result;
55
- }
56
- function cancel() {
57
- if (timerId !== void 0) {
58
- clearTimeout(timerId);
59
- }
60
- lastInvokeTime = 0;
61
- lastArgs = lastCallTime = lastThis = timerId = void 0;
62
- }
63
- function flush() {
64
- return timerId === void 0 ? result : trailingEdge(now());
65
- }
66
- function debounced() {
67
- var time = now(), isInvoking = shouldInvoke(time);
68
- lastArgs = arguments;
69
- lastThis = this;
70
- lastCallTime = time;
71
- if (isInvoking) {
72
- if (timerId === void 0) {
73
- return leadingEdge(lastCallTime);
74
- }
75
- if (maxing) {
76
- clearTimeout(timerId);
77
- timerId = setTimeout(timerExpired, wait);
78
- return invokeFunc(lastCallTime);
79
- }
80
- }
81
- if (timerId === void 0) {
82
- timerId = setTimeout(timerExpired, wait);
83
- }
84
- return result;
85
- }
86
- debounced.cancel = cancel;
87
- debounced.flush = flush;
88
- return debounced;
89
- }
90
- export {
91
- debounce as d
92
- };
package/get-DSsNkRQs.js DELETED
@@ -1,8 +0,0 @@
1
- import { b as baseGet } from "./_baseGet-Bx3A4Qfp.js";
2
- function get(object, path, defaultValue) {
3
- var result = object == null ? void 0 : baseGet(object, path);
4
- return result === void 0 ? defaultValue : result;
5
- }
6
- export {
7
- get as g
8
- };
@@ -1,14 +0,0 @@
1
- import { b as baseAssignValue } from "./_baseAssignValue-CGTuELqU.js";
2
- import { c as createAggregator } from "./_createAggregator-QD8MzKwe.js";
3
- var objectProto = Object.prototype;
4
- var hasOwnProperty = objectProto.hasOwnProperty;
5
- var groupBy = createAggregator(function(result, value, key) {
6
- if (hasOwnProperty.call(result, key)) {
7
- result[key].push(value);
8
- } else {
9
- baseAssignValue(result, key, [value]);
10
- }
11
- });
12
- export {
13
- groupBy as g
14
- };