llmz 0.6.0 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DOCS.md +1 -3
- package/dist/_baseForOwn-CFhWe_W6.js +48 -0
- package/dist/_baseForOwn-buOZDFbK.cjs +103 -0
- package/dist/_baseIteratee-CF4qP2a8.cjs +2377 -0
- package/dist/_baseIteratee-P_firB7b.js +2138 -0
- package/dist/_getPrototype-CG7Dxrrz.js +6 -0
- package/dist/_getPrototype-DQDlNVVM.cjs +10 -0
- package/dist/_overArg-C5Hy7oCi.cjs +196 -0
- package/dist/_overArg-CRYbj1NH.js +155 -0
- package/dist/citations.d.ts +11 -11
- package/dist/component-BwixNVH8.cjs +73 -0
- package/dist/component-DGG7d_Mz.js +44 -0
- package/dist/context.d.ts +8 -8
- package/dist/custom-client-BPmEoWKu.cjs +2618 -0
- package/dist/custom-client-NUoxrFQh.js +2547 -0
- package/dist/dual-modes-D_p-jedw.js +2750 -0
- package/dist/dual-modes-wAOAlaBS.cjs +2840 -0
- package/dist/errors-C962uJdS.cjs +220 -0
- package/dist/errors-Cg1G0Awu.js +161 -0
- package/dist/execute-BEaq3jkV.cjs +1003 -0
- package/dist/execute-DYvFRs54.js +1001 -0
- package/dist/exit-BGi0Kk0y.cjs +428 -0
- package/dist/exit-CDdxDBRT.js +417 -0
- package/dist/index.cjs +1786 -1489
- package/dist/index.d.ts +10 -9
- package/dist/index.js +1721 -1479
- package/dist/index.workerd.js +17534 -16875
- package/dist/isEmpty-BhJRCqIF.js +52 -0
- package/dist/isEmpty-LY533Wmh.cjs +57 -0
- package/dist/isPlainObject-CSxXVKCk.cjs +56 -0
- package/dist/isPlainObject-D39AzPO2.js +51 -0
- package/dist/jsx-BWvT6ukg.cjs +75 -0
- package/dist/jsx-CIgdGGVs.js +52 -0
- package/dist/jsx.d.ts +2 -2
- package/dist/prompts/chat-mode/system.md.d.ts +1 -1
- package/dist/prompts/chat-mode/user.md.d.ts +1 -1
- package/dist/prompts/worker-mode/system.md.d.ts +1 -1
- package/dist/prompts/worker-mode/user.md.d.ts +1 -1
- package/dist/quickjs-variant-BYhMBpwU.js +45 -0
- package/dist/quickjs-variant-CsIwTVFC.cjs +56 -0
- package/dist/quickjs-variant.workerd.d.ts +1 -1
- package/dist/result.d.ts +12 -12
- package/dist/rolldown-runtime-EAsCxrDo.js +14 -0
- package/dist/runtime/interpret-result.d.ts +1 -1
- package/dist/snapshots.d.ts +5 -5
- package/dist/stack-traces-BIE_5Xwf.js +21 -0
- package/dist/stack-traces-ntw_qhoy.cjs +26 -0
- package/dist/tool-CAo-BQHs.js +643 -0
- package/dist/tool-DdPZb0JW.cjs +654 -0
- package/dist/tool.d.ts +3 -3
- package/dist/truncator-B6aaJaN1.cjs +276 -0
- package/dist/truncator-DZqEqnpD.js +253 -0
- package/dist/typings-BwAz_TM9.cjs +784 -0
- package/dist/typings-CrBa7Tyy.js +743 -0
- package/dist/uniq-BYQ7GWwb.js +183 -0
- package/dist/uniq-G872RWmE.cjs +200 -0
- package/dist/utils-UBeAFeEI.js +950 -0
- package/dist/utils-ZpJm00ed.cjs +1075 -0
- package/dist/vm/errors.d.ts +2 -2
- package/dist/vm-BjkJqSQH.cjs +3438 -0
- package/dist/vm-C5vf1LH3.js +3436 -0
- package/package.json +7 -7
- package/dist/chunk-34GJUS6U.js +0 -3266
- package/dist/chunk-3UZKLXAD.cjs +0 -3249
- package/dist/chunk-4POZJQXN.js +0 -1530
- package/dist/chunk-5WBNTV42.cjs +0 -1530
- package/dist/chunk-5ZF6NTYI.cjs +0 -33
- package/dist/chunk-72ZWBNZV.js +0 -173
- package/dist/chunk-DDSJTR6Q.cjs +0 -257
- package/dist/chunk-GDJTKI7J.js +0 -792
- package/dist/chunk-GLXADNTR.js +0 -199
- package/dist/chunk-GOWPACSK.cjs +0 -199
- package/dist/chunk-HB2G32AK.js +0 -257
- package/dist/chunk-HC2QZTVT.cjs +0 -3266
- package/dist/chunk-HEAQAEFZ.cjs +0 -173
- package/dist/chunk-HMMM32RG.cjs +0 -792
- package/dist/chunk-I56MPOVG.cjs +0 -62
- package/dist/chunk-KIN7Y247.cjs +0 -32
- package/dist/chunk-KTDBAJBB.cjs +0 -1685
- package/dist/chunk-KWQTYXAT.js +0 -62
- package/dist/chunk-LOX7GOR6.js +0 -1685
- package/dist/chunk-PK72FAKD.cjs +0 -175
- package/dist/chunk-PZE6PIPG.cjs +0 -621
- package/dist/chunk-RGUG3UMF.cjs +0 -26
- package/dist/chunk-TDALRNGL.js +0 -621
- package/dist/chunk-UGHFNCPD.js +0 -26
- package/dist/chunk-WSVDMGMR.js +0 -175
- package/dist/chunk-XTEHT2TK.js +0 -33
- package/dist/chunk-YEAWWJSJ.js +0 -32
- package/dist/chunk-YRS7KRKP.js +0 -3249
- package/dist/component-2NYFY6CW.cjs +0 -14
- package/dist/component-ASNZHQUR.js +0 -14
- package/dist/dual-modes-S5TJ5JVJ.js +0 -10
- package/dist/dual-modes-TCMWBZIH.cjs +0 -10
- package/dist/execute-FF7D46TY.js +0 -1109
- package/dist/execute-IK6O4SU2.cjs +0 -1109
- package/dist/exit-MX56VN2C.cjs +0 -8
- package/dist/exit-UQ3EUX5D.js +0 -8
- package/dist/jsx-DDZ63UUF.js +0 -13
- package/dist/jsx-ULPWX5TW.cjs +0 -13
- package/dist/tool-KD7FL45V.js +0 -11
- package/dist/tool-VE2YHIY2.cjs +0 -11
- package/dist/truncator-73RCL52Y.js +0 -12
- package/dist/truncator-FZNLYSDL.cjs +0 -12
- package/dist/typings-E2RROCLT.js +0 -10
- package/dist/typings-LQOBZXSO.cjs +0 -10
- package/dist/utils-IATCUNKF.js +0 -43
- package/dist/utils-ITB4NEL7.cjs +0 -43
- package/dist/vm-6D3IIIU7.cjs +0 -12
- package/dist/vm-QO5FSGPN.js +0 -12
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { a as cacheHas, l as Set, o as SetCache, r as setToArray } from "./_baseIteratee-P_firB7b.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/noop.js
|
|
3
|
+
/**
|
|
4
|
+
* This method returns `undefined`.
|
|
5
|
+
*
|
|
6
|
+
* @static
|
|
7
|
+
* @memberOf _
|
|
8
|
+
* @since 2.3.0
|
|
9
|
+
* @category Util
|
|
10
|
+
* @example
|
|
11
|
+
*
|
|
12
|
+
* _.times(2, _.noop);
|
|
13
|
+
* // => [undefined, undefined]
|
|
14
|
+
*/
|
|
15
|
+
function noop() {}
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFindIndex.js
|
|
18
|
+
/**
|
|
19
|
+
* The base implementation of `_.findIndex` and `_.findLastIndex` without
|
|
20
|
+
* support for iteratee shorthands.
|
|
21
|
+
*
|
|
22
|
+
* @private
|
|
23
|
+
* @param {Array} array The array to inspect.
|
|
24
|
+
* @param {Function} predicate The function invoked per iteration.
|
|
25
|
+
* @param {number} fromIndex The index to search from.
|
|
26
|
+
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
27
|
+
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
28
|
+
*/
|
|
29
|
+
function baseFindIndex(array, predicate, fromIndex, fromRight) {
|
|
30
|
+
var length = array.length, index = fromIndex + (fromRight ? 1 : -1);
|
|
31
|
+
while (fromRight ? index-- : ++index < length) if (predicate(array[index], index, array)) return index;
|
|
32
|
+
return -1;
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNaN.js
|
|
36
|
+
/**
|
|
37
|
+
* The base implementation of `_.isNaN` without support for number objects.
|
|
38
|
+
*
|
|
39
|
+
* @private
|
|
40
|
+
* @param {*} value The value to check.
|
|
41
|
+
* @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
|
|
42
|
+
*/
|
|
43
|
+
function baseIsNaN(value) {
|
|
44
|
+
return value !== value;
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_strictIndexOf.js
|
|
48
|
+
/**
|
|
49
|
+
* A specialized version of `_.indexOf` which performs strict equality
|
|
50
|
+
* comparisons of values, i.e. `===`.
|
|
51
|
+
*
|
|
52
|
+
* @private
|
|
53
|
+
* @param {Array} array The array to inspect.
|
|
54
|
+
* @param {*} value The value to search for.
|
|
55
|
+
* @param {number} fromIndex The index to search from.
|
|
56
|
+
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
57
|
+
*/
|
|
58
|
+
function strictIndexOf(array, value, fromIndex) {
|
|
59
|
+
var index = fromIndex - 1, length = array.length;
|
|
60
|
+
while (++index < length) if (array[index] === value) return index;
|
|
61
|
+
return -1;
|
|
62
|
+
}
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIndexOf.js
|
|
65
|
+
/**
|
|
66
|
+
* The base implementation of `_.indexOf` without `fromIndex` bounds checks.
|
|
67
|
+
*
|
|
68
|
+
* @private
|
|
69
|
+
* @param {Array} array The array to inspect.
|
|
70
|
+
* @param {*} value The value to search for.
|
|
71
|
+
* @param {number} fromIndex The index to search from.
|
|
72
|
+
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
73
|
+
*/
|
|
74
|
+
function baseIndexOf(array, value, fromIndex) {
|
|
75
|
+
return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex);
|
|
76
|
+
}
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludes.js
|
|
79
|
+
/**
|
|
80
|
+
* A specialized version of `_.includes` for arrays without support for
|
|
81
|
+
* specifying an index to search from.
|
|
82
|
+
*
|
|
83
|
+
* @private
|
|
84
|
+
* @param {Array} [array] The array to inspect.
|
|
85
|
+
* @param {*} target The value to search for.
|
|
86
|
+
* @returns {boolean} Returns `true` if `target` is found, else `false`.
|
|
87
|
+
*/
|
|
88
|
+
function arrayIncludes(array, value) {
|
|
89
|
+
return !!(array == null ? 0 : array.length) && baseIndexOf(array, value, 0) > -1;
|
|
90
|
+
}
|
|
91
|
+
//#endregion
|
|
92
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludesWith.js
|
|
93
|
+
/**
|
|
94
|
+
* This function is like `arrayIncludes` except that it accepts a comparator.
|
|
95
|
+
*
|
|
96
|
+
* @private
|
|
97
|
+
* @param {Array} [array] The array to inspect.
|
|
98
|
+
* @param {*} target The value to search for.
|
|
99
|
+
* @param {Function} comparator The comparator invoked per element.
|
|
100
|
+
* @returns {boolean} Returns `true` if `target` is found, else `false`.
|
|
101
|
+
*/
|
|
102
|
+
function arrayIncludesWith(array, value, comparator) {
|
|
103
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
104
|
+
while (++index < length) if (comparator(value, array[index])) return true;
|
|
105
|
+
return false;
|
|
106
|
+
}
|
|
107
|
+
//#endregion
|
|
108
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createSet.js
|
|
109
|
+
/**
|
|
110
|
+
* Creates a set object of `values`.
|
|
111
|
+
*
|
|
112
|
+
* @private
|
|
113
|
+
* @param {Array} values The values to add to the set.
|
|
114
|
+
* @returns {Object} Returns the new set.
|
|
115
|
+
*/
|
|
116
|
+
var createSet = !(Set && 1 / setToArray(new Set([, -0]))[1] == 1 / 0) ? noop : function(values) {
|
|
117
|
+
return new Set(values);
|
|
118
|
+
};
|
|
119
|
+
//#endregion
|
|
120
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUniq.js
|
|
121
|
+
/** Used as the size to enable large array optimizations. */
|
|
122
|
+
var LARGE_ARRAY_SIZE = 200;
|
|
123
|
+
/**
|
|
124
|
+
* The base implementation of `_.uniqBy` without support for iteratee shorthands.
|
|
125
|
+
*
|
|
126
|
+
* @private
|
|
127
|
+
* @param {Array} array The array to inspect.
|
|
128
|
+
* @param {Function} [iteratee] The iteratee invoked per element.
|
|
129
|
+
* @param {Function} [comparator] The comparator invoked per element.
|
|
130
|
+
* @returns {Array} Returns the new duplicate free array.
|
|
131
|
+
*/
|
|
132
|
+
function baseUniq(array, iteratee, comparator) {
|
|
133
|
+
var index = -1, includes = arrayIncludes, length = array.length, isCommon = true, result = [], seen = result;
|
|
134
|
+
if (comparator) {
|
|
135
|
+
isCommon = false;
|
|
136
|
+
includes = arrayIncludesWith;
|
|
137
|
+
} else if (length >= LARGE_ARRAY_SIZE) {
|
|
138
|
+
var set = iteratee ? null : createSet(array);
|
|
139
|
+
if (set) return setToArray(set);
|
|
140
|
+
isCommon = false;
|
|
141
|
+
includes = cacheHas;
|
|
142
|
+
seen = new SetCache();
|
|
143
|
+
} else seen = iteratee ? [] : result;
|
|
144
|
+
outer: while (++index < length) {
|
|
145
|
+
var value = array[index], computed = iteratee ? iteratee(value) : value;
|
|
146
|
+
value = comparator || value !== 0 ? value : 0;
|
|
147
|
+
if (isCommon && computed === computed) {
|
|
148
|
+
var seenIndex = seen.length;
|
|
149
|
+
while (seenIndex--) if (seen[seenIndex] === computed) continue outer;
|
|
150
|
+
if (iteratee) seen.push(computed);
|
|
151
|
+
result.push(value);
|
|
152
|
+
} else if (!includes(seen, computed, comparator)) {
|
|
153
|
+
if (seen !== result) seen.push(computed);
|
|
154
|
+
result.push(value);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
return result;
|
|
158
|
+
}
|
|
159
|
+
//#endregion
|
|
160
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniq.js
|
|
161
|
+
/**
|
|
162
|
+
* Creates a duplicate-free version of an array, using
|
|
163
|
+
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
164
|
+
* for equality comparisons, in which only the first occurrence of each element
|
|
165
|
+
* is kept. The order of result values is determined by the order they occur
|
|
166
|
+
* in the array.
|
|
167
|
+
*
|
|
168
|
+
* @static
|
|
169
|
+
* @memberOf _
|
|
170
|
+
* @since 0.1.0
|
|
171
|
+
* @category Array
|
|
172
|
+
* @param {Array} array The array to inspect.
|
|
173
|
+
* @returns {Array} Returns the new duplicate free array.
|
|
174
|
+
* @example
|
|
175
|
+
*
|
|
176
|
+
* _.uniq([2, 1, 2]);
|
|
177
|
+
* // => [2, 1]
|
|
178
|
+
*/
|
|
179
|
+
function uniq(array) {
|
|
180
|
+
return array && array.length ? baseUniq(array) : [];
|
|
181
|
+
}
|
|
182
|
+
//#endregion
|
|
183
|
+
export { baseUniq as n, noop as r, uniq as t };
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
const require__baseIteratee = require("./_baseIteratee-CF4qP2a8.cjs");
|
|
2
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/noop.js
|
|
3
|
+
/**
|
|
4
|
+
* This method returns `undefined`.
|
|
5
|
+
*
|
|
6
|
+
* @static
|
|
7
|
+
* @memberOf _
|
|
8
|
+
* @since 2.3.0
|
|
9
|
+
* @category Util
|
|
10
|
+
* @example
|
|
11
|
+
*
|
|
12
|
+
* _.times(2, _.noop);
|
|
13
|
+
* // => [undefined, undefined]
|
|
14
|
+
*/
|
|
15
|
+
function noop() {}
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFindIndex.js
|
|
18
|
+
/**
|
|
19
|
+
* The base implementation of `_.findIndex` and `_.findLastIndex` without
|
|
20
|
+
* support for iteratee shorthands.
|
|
21
|
+
*
|
|
22
|
+
* @private
|
|
23
|
+
* @param {Array} array The array to inspect.
|
|
24
|
+
* @param {Function} predicate The function invoked per iteration.
|
|
25
|
+
* @param {number} fromIndex The index to search from.
|
|
26
|
+
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
27
|
+
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
28
|
+
*/
|
|
29
|
+
function baseFindIndex(array, predicate, fromIndex, fromRight) {
|
|
30
|
+
var length = array.length, index = fromIndex + (fromRight ? 1 : -1);
|
|
31
|
+
while (fromRight ? index-- : ++index < length) if (predicate(array[index], index, array)) return index;
|
|
32
|
+
return -1;
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNaN.js
|
|
36
|
+
/**
|
|
37
|
+
* The base implementation of `_.isNaN` without support for number objects.
|
|
38
|
+
*
|
|
39
|
+
* @private
|
|
40
|
+
* @param {*} value The value to check.
|
|
41
|
+
* @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
|
|
42
|
+
*/
|
|
43
|
+
function baseIsNaN(value) {
|
|
44
|
+
return value !== value;
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_strictIndexOf.js
|
|
48
|
+
/**
|
|
49
|
+
* A specialized version of `_.indexOf` which performs strict equality
|
|
50
|
+
* comparisons of values, i.e. `===`.
|
|
51
|
+
*
|
|
52
|
+
* @private
|
|
53
|
+
* @param {Array} array The array to inspect.
|
|
54
|
+
* @param {*} value The value to search for.
|
|
55
|
+
* @param {number} fromIndex The index to search from.
|
|
56
|
+
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
57
|
+
*/
|
|
58
|
+
function strictIndexOf(array, value, fromIndex) {
|
|
59
|
+
var index = fromIndex - 1, length = array.length;
|
|
60
|
+
while (++index < length) if (array[index] === value) return index;
|
|
61
|
+
return -1;
|
|
62
|
+
}
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIndexOf.js
|
|
65
|
+
/**
|
|
66
|
+
* The base implementation of `_.indexOf` without `fromIndex` bounds checks.
|
|
67
|
+
*
|
|
68
|
+
* @private
|
|
69
|
+
* @param {Array} array The array to inspect.
|
|
70
|
+
* @param {*} value The value to search for.
|
|
71
|
+
* @param {number} fromIndex The index to search from.
|
|
72
|
+
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
73
|
+
*/
|
|
74
|
+
function baseIndexOf(array, value, fromIndex) {
|
|
75
|
+
return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex);
|
|
76
|
+
}
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludes.js
|
|
79
|
+
/**
|
|
80
|
+
* A specialized version of `_.includes` for arrays without support for
|
|
81
|
+
* specifying an index to search from.
|
|
82
|
+
*
|
|
83
|
+
* @private
|
|
84
|
+
* @param {Array} [array] The array to inspect.
|
|
85
|
+
* @param {*} target The value to search for.
|
|
86
|
+
* @returns {boolean} Returns `true` if `target` is found, else `false`.
|
|
87
|
+
*/
|
|
88
|
+
function arrayIncludes(array, value) {
|
|
89
|
+
return !!(array == null ? 0 : array.length) && baseIndexOf(array, value, 0) > -1;
|
|
90
|
+
}
|
|
91
|
+
//#endregion
|
|
92
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludesWith.js
|
|
93
|
+
/**
|
|
94
|
+
* This function is like `arrayIncludes` except that it accepts a comparator.
|
|
95
|
+
*
|
|
96
|
+
* @private
|
|
97
|
+
* @param {Array} [array] The array to inspect.
|
|
98
|
+
* @param {*} target The value to search for.
|
|
99
|
+
* @param {Function} comparator The comparator invoked per element.
|
|
100
|
+
* @returns {boolean} Returns `true` if `target` is found, else `false`.
|
|
101
|
+
*/
|
|
102
|
+
function arrayIncludesWith(array, value, comparator) {
|
|
103
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
104
|
+
while (++index < length) if (comparator(value, array[index])) return true;
|
|
105
|
+
return false;
|
|
106
|
+
}
|
|
107
|
+
//#endregion
|
|
108
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createSet.js
|
|
109
|
+
/**
|
|
110
|
+
* Creates a set object of `values`.
|
|
111
|
+
*
|
|
112
|
+
* @private
|
|
113
|
+
* @param {Array} values The values to add to the set.
|
|
114
|
+
* @returns {Object} Returns the new set.
|
|
115
|
+
*/
|
|
116
|
+
var createSet = !(require__baseIteratee.Set && 1 / require__baseIteratee.setToArray(new require__baseIteratee.Set([, -0]))[1] == 1 / 0) ? noop : function(values) {
|
|
117
|
+
return new require__baseIteratee.Set(values);
|
|
118
|
+
};
|
|
119
|
+
//#endregion
|
|
120
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUniq.js
|
|
121
|
+
/** Used as the size to enable large array optimizations. */
|
|
122
|
+
var LARGE_ARRAY_SIZE = 200;
|
|
123
|
+
/**
|
|
124
|
+
* The base implementation of `_.uniqBy` without support for iteratee shorthands.
|
|
125
|
+
*
|
|
126
|
+
* @private
|
|
127
|
+
* @param {Array} array The array to inspect.
|
|
128
|
+
* @param {Function} [iteratee] The iteratee invoked per element.
|
|
129
|
+
* @param {Function} [comparator] The comparator invoked per element.
|
|
130
|
+
* @returns {Array} Returns the new duplicate free array.
|
|
131
|
+
*/
|
|
132
|
+
function baseUniq(array, iteratee, comparator) {
|
|
133
|
+
var index = -1, includes = arrayIncludes, length = array.length, isCommon = true, result = [], seen = result;
|
|
134
|
+
if (comparator) {
|
|
135
|
+
isCommon = false;
|
|
136
|
+
includes = arrayIncludesWith;
|
|
137
|
+
} else if (length >= LARGE_ARRAY_SIZE) {
|
|
138
|
+
var set = iteratee ? null : createSet(array);
|
|
139
|
+
if (set) return require__baseIteratee.setToArray(set);
|
|
140
|
+
isCommon = false;
|
|
141
|
+
includes = require__baseIteratee.cacheHas;
|
|
142
|
+
seen = new require__baseIteratee.SetCache();
|
|
143
|
+
} else seen = iteratee ? [] : result;
|
|
144
|
+
outer: while (++index < length) {
|
|
145
|
+
var value = array[index], computed = iteratee ? iteratee(value) : value;
|
|
146
|
+
value = comparator || value !== 0 ? value : 0;
|
|
147
|
+
if (isCommon && computed === computed) {
|
|
148
|
+
var seenIndex = seen.length;
|
|
149
|
+
while (seenIndex--) if (seen[seenIndex] === computed) continue outer;
|
|
150
|
+
if (iteratee) seen.push(computed);
|
|
151
|
+
result.push(value);
|
|
152
|
+
} else if (!includes(seen, computed, comparator)) {
|
|
153
|
+
if (seen !== result) seen.push(computed);
|
|
154
|
+
result.push(value);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
return result;
|
|
158
|
+
}
|
|
159
|
+
//#endregion
|
|
160
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniq.js
|
|
161
|
+
/**
|
|
162
|
+
* Creates a duplicate-free version of an array, using
|
|
163
|
+
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
164
|
+
* for equality comparisons, in which only the first occurrence of each element
|
|
165
|
+
* is kept. The order of result values is determined by the order they occur
|
|
166
|
+
* in the array.
|
|
167
|
+
*
|
|
168
|
+
* @static
|
|
169
|
+
* @memberOf _
|
|
170
|
+
* @since 0.1.0
|
|
171
|
+
* @category Array
|
|
172
|
+
* @param {Array} array The array to inspect.
|
|
173
|
+
* @returns {Array} Returns the new duplicate free array.
|
|
174
|
+
* @example
|
|
175
|
+
*
|
|
176
|
+
* _.uniq([2, 1, 2]);
|
|
177
|
+
* // => [2, 1]
|
|
178
|
+
*/
|
|
179
|
+
function uniq(array) {
|
|
180
|
+
return array && array.length ? baseUniq(array) : [];
|
|
181
|
+
}
|
|
182
|
+
//#endregion
|
|
183
|
+
Object.defineProperty(exports, "baseUniq", {
|
|
184
|
+
enumerable: true,
|
|
185
|
+
get: function() {
|
|
186
|
+
return baseUniq;
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
Object.defineProperty(exports, "noop", {
|
|
190
|
+
enumerable: true,
|
|
191
|
+
get: function() {
|
|
192
|
+
return noop;
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
Object.defineProperty(exports, "uniq", {
|
|
196
|
+
enumerable: true,
|
|
197
|
+
get: function() {
|
|
198
|
+
return uniq;
|
|
199
|
+
}
|
|
200
|
+
});
|