@tmagic/utils 1.8.0-beta.8 → 1.8.0-manmanyu.10
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/dist/tmagic-utils.umd.cjs +1127 -1127
- package/package.json +2 -2
|
@@ -2,6 +2,220 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("@tmagic/schema")) : typeof define === "function" && define.amd ? define(["exports", "@tmagic/schema"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.TMagicUtils = {}, global._tmagic_schema));
|
|
3
3
|
})(this, function(exports, _tmagic_schema) {
|
|
4
4
|
Object.defineProperty(exports, globalThis.Symbol.toStringTag, { value: "Module" });
|
|
5
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.js
|
|
6
|
+
/**
|
|
7
|
+
* Removes all key-value entries from the list cache.
|
|
8
|
+
*
|
|
9
|
+
* @private
|
|
10
|
+
* @name clear
|
|
11
|
+
* @memberOf ListCache
|
|
12
|
+
*/
|
|
13
|
+
function listCacheClear() {
|
|
14
|
+
this.__data__ = [];
|
|
15
|
+
this.size = 0;
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.js
|
|
19
|
+
/**
|
|
20
|
+
* Performs a
|
|
21
|
+
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
22
|
+
* comparison between two values to determine if they are equivalent.
|
|
23
|
+
*
|
|
24
|
+
* @static
|
|
25
|
+
* @memberOf _
|
|
26
|
+
* @since 4.0.0
|
|
27
|
+
* @category Lang
|
|
28
|
+
* @param {*} value The value to compare.
|
|
29
|
+
* @param {*} other The other value to compare.
|
|
30
|
+
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
31
|
+
* @example
|
|
32
|
+
*
|
|
33
|
+
* var object = { 'a': 1 };
|
|
34
|
+
* var other = { 'a': 1 };
|
|
35
|
+
*
|
|
36
|
+
* _.eq(object, object);
|
|
37
|
+
* // => true
|
|
38
|
+
*
|
|
39
|
+
* _.eq(object, other);
|
|
40
|
+
* // => false
|
|
41
|
+
*
|
|
42
|
+
* _.eq('a', 'a');
|
|
43
|
+
* // => true
|
|
44
|
+
*
|
|
45
|
+
* _.eq('a', Object('a'));
|
|
46
|
+
* // => false
|
|
47
|
+
*
|
|
48
|
+
* _.eq(NaN, NaN);
|
|
49
|
+
* // => true
|
|
50
|
+
*/
|
|
51
|
+
function eq(value, other) {
|
|
52
|
+
return value === other || value !== value && other !== other;
|
|
53
|
+
}
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.js
|
|
56
|
+
/**
|
|
57
|
+
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
58
|
+
*
|
|
59
|
+
* @private
|
|
60
|
+
* @param {Array} array The array to inspect.
|
|
61
|
+
* @param {*} key The key to search for.
|
|
62
|
+
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
63
|
+
*/
|
|
64
|
+
function assocIndexOf(array, key) {
|
|
65
|
+
var length = array.length;
|
|
66
|
+
while (length--) if (eq(array[length][0], key)) return length;
|
|
67
|
+
return -1;
|
|
68
|
+
}
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.js
|
|
71
|
+
/** Built-in value references. */
|
|
72
|
+
var splice = Array.prototype.splice;
|
|
73
|
+
/**
|
|
74
|
+
* Removes `key` and its value from the list cache.
|
|
75
|
+
*
|
|
76
|
+
* @private
|
|
77
|
+
* @name delete
|
|
78
|
+
* @memberOf ListCache
|
|
79
|
+
* @param {string} key The key of the value to remove.
|
|
80
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
81
|
+
*/
|
|
82
|
+
function listCacheDelete(key) {
|
|
83
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
84
|
+
if (index < 0) return false;
|
|
85
|
+
if (index == data.length - 1) data.pop();
|
|
86
|
+
else splice.call(data, index, 1);
|
|
87
|
+
--this.size;
|
|
88
|
+
return true;
|
|
89
|
+
}
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.js
|
|
92
|
+
/**
|
|
93
|
+
* Gets the list cache value for `key`.
|
|
94
|
+
*
|
|
95
|
+
* @private
|
|
96
|
+
* @name get
|
|
97
|
+
* @memberOf ListCache
|
|
98
|
+
* @param {string} key The key of the value to get.
|
|
99
|
+
* @returns {*} Returns the entry value.
|
|
100
|
+
*/
|
|
101
|
+
function listCacheGet(key) {
|
|
102
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
103
|
+
return index < 0 ? void 0 : data[index][1];
|
|
104
|
+
}
|
|
105
|
+
//#endregion
|
|
106
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.js
|
|
107
|
+
/**
|
|
108
|
+
* Checks if a list cache value for `key` exists.
|
|
109
|
+
*
|
|
110
|
+
* @private
|
|
111
|
+
* @name has
|
|
112
|
+
* @memberOf ListCache
|
|
113
|
+
* @param {string} key The key of the entry to check.
|
|
114
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
115
|
+
*/
|
|
116
|
+
function listCacheHas(key) {
|
|
117
|
+
return assocIndexOf(this.__data__, key) > -1;
|
|
118
|
+
}
|
|
119
|
+
//#endregion
|
|
120
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.js
|
|
121
|
+
/**
|
|
122
|
+
* Sets the list cache `key` to `value`.
|
|
123
|
+
*
|
|
124
|
+
* @private
|
|
125
|
+
* @name set
|
|
126
|
+
* @memberOf ListCache
|
|
127
|
+
* @param {string} key The key of the value to set.
|
|
128
|
+
* @param {*} value The value to set.
|
|
129
|
+
* @returns {Object} Returns the list cache instance.
|
|
130
|
+
*/
|
|
131
|
+
function listCacheSet(key, value) {
|
|
132
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
133
|
+
if (index < 0) {
|
|
134
|
+
++this.size;
|
|
135
|
+
data.push([key, value]);
|
|
136
|
+
} else data[index][1] = value;
|
|
137
|
+
return this;
|
|
138
|
+
}
|
|
139
|
+
//#endregion
|
|
140
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.js
|
|
141
|
+
/**
|
|
142
|
+
* Creates an list cache object.
|
|
143
|
+
*
|
|
144
|
+
* @private
|
|
145
|
+
* @constructor
|
|
146
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
147
|
+
*/
|
|
148
|
+
function ListCache(entries) {
|
|
149
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
150
|
+
this.clear();
|
|
151
|
+
while (++index < length) {
|
|
152
|
+
var entry = entries[index];
|
|
153
|
+
this.set(entry[0], entry[1]);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
ListCache.prototype.clear = listCacheClear;
|
|
157
|
+
ListCache.prototype["delete"] = listCacheDelete;
|
|
158
|
+
ListCache.prototype.get = listCacheGet;
|
|
159
|
+
ListCache.prototype.has = listCacheHas;
|
|
160
|
+
ListCache.prototype.set = listCacheSet;
|
|
161
|
+
//#endregion
|
|
162
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.js
|
|
163
|
+
/**
|
|
164
|
+
* Removes all key-value entries from the stack.
|
|
165
|
+
*
|
|
166
|
+
* @private
|
|
167
|
+
* @name clear
|
|
168
|
+
* @memberOf Stack
|
|
169
|
+
*/
|
|
170
|
+
function stackClear() {
|
|
171
|
+
this.__data__ = new ListCache();
|
|
172
|
+
this.size = 0;
|
|
173
|
+
}
|
|
174
|
+
//#endregion
|
|
175
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.js
|
|
176
|
+
/**
|
|
177
|
+
* Removes `key` and its value from the stack.
|
|
178
|
+
*
|
|
179
|
+
* @private
|
|
180
|
+
* @name delete
|
|
181
|
+
* @memberOf Stack
|
|
182
|
+
* @param {string} key The key of the value to remove.
|
|
183
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
184
|
+
*/
|
|
185
|
+
function stackDelete(key) {
|
|
186
|
+
var data = this.__data__, result = data["delete"](key);
|
|
187
|
+
this.size = data.size;
|
|
188
|
+
return result;
|
|
189
|
+
}
|
|
190
|
+
//#endregion
|
|
191
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.js
|
|
192
|
+
/**
|
|
193
|
+
* Gets the stack value for `key`.
|
|
194
|
+
*
|
|
195
|
+
* @private
|
|
196
|
+
* @name get
|
|
197
|
+
* @memberOf Stack
|
|
198
|
+
* @param {string} key The key of the value to get.
|
|
199
|
+
* @returns {*} Returns the entry value.
|
|
200
|
+
*/
|
|
201
|
+
function stackGet(key) {
|
|
202
|
+
return this.__data__.get(key);
|
|
203
|
+
}
|
|
204
|
+
//#endregion
|
|
205
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.js
|
|
206
|
+
/**
|
|
207
|
+
* Checks if a stack value for `key` exists.
|
|
208
|
+
*
|
|
209
|
+
* @private
|
|
210
|
+
* @name has
|
|
211
|
+
* @memberOf Stack
|
|
212
|
+
* @param {string} key The key of the entry to check.
|
|
213
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
214
|
+
*/
|
|
215
|
+
function stackHas(key) {
|
|
216
|
+
return this.__data__.has(key);
|
|
217
|
+
}
|
|
218
|
+
//#endregion
|
|
5
219
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js
|
|
6
220
|
/** Detect free variable `global` from Node.js. */
|
|
7
221
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
@@ -83,171 +297,55 @@
|
|
|
83
297
|
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
84
298
|
}
|
|
85
299
|
//#endregion
|
|
86
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
300
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js
|
|
87
301
|
/**
|
|
88
|
-
* Checks if `value` is
|
|
89
|
-
*
|
|
302
|
+
* Checks if `value` is the
|
|
303
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
304
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
90
305
|
*
|
|
91
306
|
* @static
|
|
92
307
|
* @memberOf _
|
|
93
|
-
* @since
|
|
308
|
+
* @since 0.1.0
|
|
94
309
|
* @category Lang
|
|
95
310
|
* @param {*} value The value to check.
|
|
96
|
-
* @returns {boolean} Returns `true` if `value` is object
|
|
311
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
97
312
|
* @example
|
|
98
313
|
*
|
|
99
|
-
* _.
|
|
314
|
+
* _.isObject({});
|
|
100
315
|
* // => true
|
|
101
316
|
*
|
|
102
|
-
* _.
|
|
317
|
+
* _.isObject([1, 2, 3]);
|
|
103
318
|
* // => true
|
|
104
319
|
*
|
|
105
|
-
* _.
|
|
106
|
-
* // =>
|
|
320
|
+
* _.isObject(_.noop);
|
|
321
|
+
* // => true
|
|
107
322
|
*
|
|
108
|
-
* _.
|
|
323
|
+
* _.isObject(null);
|
|
109
324
|
* // => false
|
|
110
325
|
*/
|
|
111
|
-
function
|
|
112
|
-
|
|
326
|
+
function isObject$1(value) {
|
|
327
|
+
var type = typeof value;
|
|
328
|
+
return value != null && (type == "object" || type == "function");
|
|
113
329
|
}
|
|
114
330
|
//#endregion
|
|
115
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
331
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.js
|
|
116
332
|
/** `Object#toString` result references. */
|
|
117
|
-
var
|
|
333
|
+
var asyncTag = "[object AsyncFunction]", funcTag$2 = "[object Function]", genTag$1 = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
118
334
|
/**
|
|
119
|
-
* Checks if `value` is classified as a `
|
|
335
|
+
* Checks if `value` is classified as a `Function` object.
|
|
120
336
|
*
|
|
121
337
|
* @static
|
|
122
338
|
* @memberOf _
|
|
123
|
-
* @since
|
|
339
|
+
* @since 0.1.0
|
|
124
340
|
* @category Lang
|
|
125
341
|
* @param {*} value The value to check.
|
|
126
|
-
* @returns {boolean} Returns `true` if `value` is a
|
|
342
|
+
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
127
343
|
* @example
|
|
128
344
|
*
|
|
129
|
-
* _.
|
|
345
|
+
* _.isFunction(_);
|
|
130
346
|
* // => true
|
|
131
347
|
*
|
|
132
|
-
* _.
|
|
133
|
-
* // => false
|
|
134
|
-
*/
|
|
135
|
-
function isSymbol(value) {
|
|
136
|
-
return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag$2;
|
|
137
|
-
}
|
|
138
|
-
//#endregion
|
|
139
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayMap.js
|
|
140
|
-
/**
|
|
141
|
-
* A specialized version of `_.map` for arrays without support for iteratee
|
|
142
|
-
* shorthands.
|
|
143
|
-
*
|
|
144
|
-
* @private
|
|
145
|
-
* @param {Array} [array] The array to iterate over.
|
|
146
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
147
|
-
* @returns {Array} Returns the new mapped array.
|
|
148
|
-
*/
|
|
149
|
-
function arrayMap(array, iteratee) {
|
|
150
|
-
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
151
|
-
while (++index < length) result[index] = iteratee(array[index], index, array);
|
|
152
|
-
return result;
|
|
153
|
-
}
|
|
154
|
-
//#endregion
|
|
155
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.js
|
|
156
|
-
/**
|
|
157
|
-
* Checks if `value` is classified as an `Array` object.
|
|
158
|
-
*
|
|
159
|
-
* @static
|
|
160
|
-
* @memberOf _
|
|
161
|
-
* @since 0.1.0
|
|
162
|
-
* @category Lang
|
|
163
|
-
* @param {*} value The value to check.
|
|
164
|
-
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
165
|
-
* @example
|
|
166
|
-
*
|
|
167
|
-
* _.isArray([1, 2, 3]);
|
|
168
|
-
* // => true
|
|
169
|
-
*
|
|
170
|
-
* _.isArray(document.body.children);
|
|
171
|
-
* // => false
|
|
172
|
-
*
|
|
173
|
-
* _.isArray('abc');
|
|
174
|
-
* // => false
|
|
175
|
-
*
|
|
176
|
-
* _.isArray(_.noop);
|
|
177
|
-
* // => false
|
|
178
|
-
*/
|
|
179
|
-
var isArray = Array.isArray;
|
|
180
|
-
//#endregion
|
|
181
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseToString.js
|
|
182
|
-
/** Used as references for various `Number` constants. */
|
|
183
|
-
var INFINITY$1 = Infinity;
|
|
184
|
-
/** Used to convert symbols to primitives and strings. */
|
|
185
|
-
var symbolProto$1 = Symbol ? Symbol.prototype : void 0, symbolToString = symbolProto$1 ? symbolProto$1.toString : void 0;
|
|
186
|
-
/**
|
|
187
|
-
* The base implementation of `_.toString` which doesn't convert nullish
|
|
188
|
-
* values to empty strings.
|
|
189
|
-
*
|
|
190
|
-
* @private
|
|
191
|
-
* @param {*} value The value to process.
|
|
192
|
-
* @returns {string} Returns the string.
|
|
193
|
-
*/
|
|
194
|
-
function baseToString(value) {
|
|
195
|
-
if (typeof value == "string") return value;
|
|
196
|
-
if (isArray(value)) return arrayMap(value, baseToString) + "";
|
|
197
|
-
if (isSymbol(value)) return symbolToString ? symbolToString.call(value) : "";
|
|
198
|
-
var result = value + "";
|
|
199
|
-
return result == "0" && 1 / value == -INFINITY$1 ? "-0" : result;
|
|
200
|
-
}
|
|
201
|
-
//#endregion
|
|
202
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js
|
|
203
|
-
/**
|
|
204
|
-
* Checks if `value` is the
|
|
205
|
-
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
206
|
-
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
207
|
-
*
|
|
208
|
-
* @static
|
|
209
|
-
* @memberOf _
|
|
210
|
-
* @since 0.1.0
|
|
211
|
-
* @category Lang
|
|
212
|
-
* @param {*} value The value to check.
|
|
213
|
-
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
214
|
-
* @example
|
|
215
|
-
*
|
|
216
|
-
* _.isObject({});
|
|
217
|
-
* // => true
|
|
218
|
-
*
|
|
219
|
-
* _.isObject([1, 2, 3]);
|
|
220
|
-
* // => true
|
|
221
|
-
*
|
|
222
|
-
* _.isObject(_.noop);
|
|
223
|
-
* // => true
|
|
224
|
-
*
|
|
225
|
-
* _.isObject(null);
|
|
226
|
-
* // => false
|
|
227
|
-
*/
|
|
228
|
-
function isObject$1(value) {
|
|
229
|
-
var type = typeof value;
|
|
230
|
-
return value != null && (type == "object" || type == "function");
|
|
231
|
-
}
|
|
232
|
-
//#endregion
|
|
233
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.js
|
|
234
|
-
/** `Object#toString` result references. */
|
|
235
|
-
var asyncTag = "[object AsyncFunction]", funcTag$2 = "[object Function]", genTag$1 = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
236
|
-
/**
|
|
237
|
-
* Checks if `value` is classified as a `Function` object.
|
|
238
|
-
*
|
|
239
|
-
* @static
|
|
240
|
-
* @memberOf _
|
|
241
|
-
* @since 0.1.0
|
|
242
|
-
* @category Lang
|
|
243
|
-
* @param {*} value The value to check.
|
|
244
|
-
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
245
|
-
* @example
|
|
246
|
-
*
|
|
247
|
-
* _.isFunction(_);
|
|
248
|
-
* // => true
|
|
249
|
-
*
|
|
250
|
-
* _.isFunction(/abc/);
|
|
348
|
+
* _.isFunction(/abc/);
|
|
251
349
|
* // => false
|
|
252
350
|
*/
|
|
253
351
|
function isFunction(value) {
|
|
@@ -355,711 +453,239 @@
|
|
|
355
453
|
return baseIsNative(value) ? value : void 0;
|
|
356
454
|
}
|
|
357
455
|
//#endregion
|
|
358
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
359
|
-
var
|
|
456
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.js
|
|
457
|
+
var Map$1 = getNative(root, "Map");
|
|
360
458
|
//#endregion
|
|
361
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
362
|
-
|
|
363
|
-
|
|
459
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.js
|
|
460
|
+
var nativeCreate = getNative(Object, "create");
|
|
461
|
+
//#endregion
|
|
462
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.js
|
|
364
463
|
/**
|
|
365
|
-
*
|
|
366
|
-
* properties to the created object.
|
|
464
|
+
* Removes all key-value entries from the hash.
|
|
367
465
|
*
|
|
368
466
|
* @private
|
|
369
|
-
* @
|
|
370
|
-
* @
|
|
467
|
+
* @name clear
|
|
468
|
+
* @memberOf Hash
|
|
371
469
|
*/
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
if (objectCreate) return objectCreate(proto);
|
|
377
|
-
object.prototype = proto;
|
|
378
|
-
var result = new object();
|
|
379
|
-
object.prototype = void 0;
|
|
380
|
-
return result;
|
|
381
|
-
};
|
|
382
|
-
}();
|
|
470
|
+
function hashClear() {
|
|
471
|
+
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
472
|
+
this.size = 0;
|
|
473
|
+
}
|
|
383
474
|
//#endregion
|
|
384
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
475
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.js
|
|
385
476
|
/**
|
|
386
|
-
*
|
|
477
|
+
* Removes `key` and its value from the hash.
|
|
387
478
|
*
|
|
388
479
|
* @private
|
|
389
|
-
* @
|
|
390
|
-
* @
|
|
391
|
-
* @
|
|
480
|
+
* @name delete
|
|
481
|
+
* @memberOf Hash
|
|
482
|
+
* @param {Object} hash The hash to modify.
|
|
483
|
+
* @param {string} key The key of the value to remove.
|
|
484
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
392
485
|
*/
|
|
393
|
-
function
|
|
394
|
-
var
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
return array;
|
|
486
|
+
function hashDelete(key) {
|
|
487
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
488
|
+
this.size -= result ? 1 : 0;
|
|
489
|
+
return result;
|
|
398
490
|
}
|
|
399
491
|
//#endregion
|
|
400
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
return func;
|
|
406
|
-
} catch (e) {}
|
|
407
|
-
}();
|
|
408
|
-
//#endregion
|
|
409
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayEach.js
|
|
492
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.js
|
|
493
|
+
/** Used to stand-in for `undefined` hash values. */
|
|
494
|
+
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
495
|
+
/** Used to check objects for own properties. */
|
|
496
|
+
var hasOwnProperty$7 = Object.prototype.hasOwnProperty;
|
|
410
497
|
/**
|
|
411
|
-
*
|
|
412
|
-
* iteratee shorthands.
|
|
498
|
+
* Gets the hash value for `key`.
|
|
413
499
|
*
|
|
414
500
|
* @private
|
|
415
|
-
* @
|
|
416
|
-
* @
|
|
417
|
-
* @
|
|
501
|
+
* @name get
|
|
502
|
+
* @memberOf Hash
|
|
503
|
+
* @param {string} key The key of the value to get.
|
|
504
|
+
* @returns {*} Returns the entry value.
|
|
418
505
|
*/
|
|
419
|
-
function
|
|
420
|
-
var
|
|
421
|
-
|
|
422
|
-
|
|
506
|
+
function hashGet(key) {
|
|
507
|
+
var data = this.__data__;
|
|
508
|
+
if (nativeCreate) {
|
|
509
|
+
var result = data[key];
|
|
510
|
+
return result === HASH_UNDEFINED$1 ? void 0 : result;
|
|
511
|
+
}
|
|
512
|
+
return hasOwnProperty$7.call(data, key) ? data[key] : void 0;
|
|
423
513
|
}
|
|
424
514
|
//#endregion
|
|
425
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
426
|
-
/** Used
|
|
427
|
-
var
|
|
428
|
-
/** Used to detect unsigned integer values. */
|
|
429
|
-
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
515
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.js
|
|
516
|
+
/** Used to check objects for own properties. */
|
|
517
|
+
var hasOwnProperty$6 = Object.prototype.hasOwnProperty;
|
|
430
518
|
/**
|
|
431
|
-
* Checks if
|
|
519
|
+
* Checks if a hash value for `key` exists.
|
|
432
520
|
*
|
|
433
521
|
* @private
|
|
434
|
-
* @
|
|
435
|
-
* @
|
|
436
|
-
* @
|
|
522
|
+
* @name has
|
|
523
|
+
* @memberOf Hash
|
|
524
|
+
* @param {string} key The key of the entry to check.
|
|
525
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
437
526
|
*/
|
|
438
|
-
function
|
|
439
|
-
var
|
|
440
|
-
|
|
441
|
-
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
|
|
527
|
+
function hashHas(key) {
|
|
528
|
+
var data = this.__data__;
|
|
529
|
+
return nativeCreate ? data[key] !== void 0 : hasOwnProperty$6.call(data, key);
|
|
442
530
|
}
|
|
443
531
|
//#endregion
|
|
444
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
532
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.js
|
|
533
|
+
/** Used to stand-in for `undefined` hash values. */
|
|
534
|
+
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
445
535
|
/**
|
|
446
|
-
*
|
|
447
|
-
* value checks.
|
|
536
|
+
* Sets the hash `key` to `value`.
|
|
448
537
|
*
|
|
449
538
|
* @private
|
|
450
|
-
* @
|
|
451
|
-
* @
|
|
452
|
-
* @param {
|
|
539
|
+
* @name set
|
|
540
|
+
* @memberOf Hash
|
|
541
|
+
* @param {string} key The key of the value to set.
|
|
542
|
+
* @param {*} value The value to set.
|
|
543
|
+
* @returns {Object} Returns the hash instance.
|
|
453
544
|
*/
|
|
454
|
-
function
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
"writable": true
|
|
460
|
-
});
|
|
461
|
-
else object[key] = value;
|
|
545
|
+
function hashSet(key, value) {
|
|
546
|
+
var data = this.__data__;
|
|
547
|
+
this.size += this.has(key) ? 0 : 1;
|
|
548
|
+
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
|
|
549
|
+
return this;
|
|
462
550
|
}
|
|
463
551
|
//#endregion
|
|
464
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
552
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.js
|
|
465
553
|
/**
|
|
466
|
-
*
|
|
467
|
-
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
468
|
-
* comparison between two values to determine if they are equivalent.
|
|
469
|
-
*
|
|
470
|
-
* @static
|
|
471
|
-
* @memberOf _
|
|
472
|
-
* @since 4.0.0
|
|
473
|
-
* @category Lang
|
|
474
|
-
* @param {*} value The value to compare.
|
|
475
|
-
* @param {*} other The other value to compare.
|
|
476
|
-
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
477
|
-
* @example
|
|
478
|
-
*
|
|
479
|
-
* var object = { 'a': 1 };
|
|
480
|
-
* var other = { 'a': 1 };
|
|
481
|
-
*
|
|
482
|
-
* _.eq(object, object);
|
|
483
|
-
* // => true
|
|
484
|
-
*
|
|
485
|
-
* _.eq(object, other);
|
|
486
|
-
* // => false
|
|
487
|
-
*
|
|
488
|
-
* _.eq('a', 'a');
|
|
489
|
-
* // => true
|
|
490
|
-
*
|
|
491
|
-
* _.eq('a', Object('a'));
|
|
492
|
-
* // => false
|
|
493
|
-
*
|
|
494
|
-
* _.eq(NaN, NaN);
|
|
495
|
-
* // => true
|
|
496
|
-
*/
|
|
497
|
-
function eq(value, other) {
|
|
498
|
-
return value === other || value !== value && other !== other;
|
|
499
|
-
}
|
|
500
|
-
//#endregion
|
|
501
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignValue.js
|
|
502
|
-
/** Used to check objects for own properties. */
|
|
503
|
-
var hasOwnProperty$7 = Object.prototype.hasOwnProperty;
|
|
504
|
-
/**
|
|
505
|
-
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
|
506
|
-
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
507
|
-
* for equality comparisons.
|
|
508
|
-
*
|
|
509
|
-
* @private
|
|
510
|
-
* @param {Object} object The object to modify.
|
|
511
|
-
* @param {string} key The key of the property to assign.
|
|
512
|
-
* @param {*} value The value to assign.
|
|
513
|
-
*/
|
|
514
|
-
function assignValue(object, key, value) {
|
|
515
|
-
var objValue = object[key];
|
|
516
|
-
if (!(hasOwnProperty$7.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) baseAssignValue(object, key, value);
|
|
517
|
-
}
|
|
518
|
-
//#endregion
|
|
519
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyObject.js
|
|
520
|
-
/**
|
|
521
|
-
* Copies properties of `source` to `object`.
|
|
522
|
-
*
|
|
523
|
-
* @private
|
|
524
|
-
* @param {Object} source The object to copy properties from.
|
|
525
|
-
* @param {Array} props The property identifiers to copy.
|
|
526
|
-
* @param {Object} [object={}] The object to copy properties to.
|
|
527
|
-
* @param {Function} [customizer] The function to customize copied values.
|
|
528
|
-
* @returns {Object} Returns `object`.
|
|
529
|
-
*/
|
|
530
|
-
function copyObject(source, props, object, customizer) {
|
|
531
|
-
var isNew = !object;
|
|
532
|
-
object || (object = {});
|
|
533
|
-
var index = -1, length = props.length;
|
|
534
|
-
while (++index < length) {
|
|
535
|
-
var key = props[index];
|
|
536
|
-
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
|
537
|
-
if (newValue === void 0) newValue = source[key];
|
|
538
|
-
if (isNew) baseAssignValue(object, key, newValue);
|
|
539
|
-
else assignValue(object, key, newValue);
|
|
540
|
-
}
|
|
541
|
-
return object;
|
|
542
|
-
}
|
|
543
|
-
//#endregion
|
|
544
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.js
|
|
545
|
-
/** Used as references for various `Number` constants. */
|
|
546
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
547
|
-
/**
|
|
548
|
-
* Checks if `value` is a valid array-like length.
|
|
549
|
-
*
|
|
550
|
-
* **Note:** This method is loosely based on
|
|
551
|
-
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
|
552
|
-
*
|
|
553
|
-
* @static
|
|
554
|
-
* @memberOf _
|
|
555
|
-
* @since 4.0.0
|
|
556
|
-
* @category Lang
|
|
557
|
-
* @param {*} value The value to check.
|
|
558
|
-
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
|
559
|
-
* @example
|
|
560
|
-
*
|
|
561
|
-
* _.isLength(3);
|
|
562
|
-
* // => true
|
|
563
|
-
*
|
|
564
|
-
* _.isLength(Number.MIN_VALUE);
|
|
565
|
-
* // => false
|
|
566
|
-
*
|
|
567
|
-
* _.isLength(Infinity);
|
|
568
|
-
* // => false
|
|
569
|
-
*
|
|
570
|
-
* _.isLength('3');
|
|
571
|
-
* // => false
|
|
572
|
-
*/
|
|
573
|
-
function isLength(value) {
|
|
574
|
-
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
575
|
-
}
|
|
576
|
-
//#endregion
|
|
577
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.js
|
|
578
|
-
/**
|
|
579
|
-
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
580
|
-
* not a function and has a `value.length` that's an integer greater than or
|
|
581
|
-
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
|
582
|
-
*
|
|
583
|
-
* @static
|
|
584
|
-
* @memberOf _
|
|
585
|
-
* @since 4.0.0
|
|
586
|
-
* @category Lang
|
|
587
|
-
* @param {*} value The value to check.
|
|
588
|
-
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
|
589
|
-
* @example
|
|
590
|
-
*
|
|
591
|
-
* _.isArrayLike([1, 2, 3]);
|
|
592
|
-
* // => true
|
|
593
|
-
*
|
|
594
|
-
* _.isArrayLike(document.body.children);
|
|
595
|
-
* // => true
|
|
596
|
-
*
|
|
597
|
-
* _.isArrayLike('abc');
|
|
598
|
-
* // => true
|
|
599
|
-
*
|
|
600
|
-
* _.isArrayLike(_.noop);
|
|
601
|
-
* // => false
|
|
602
|
-
*/
|
|
603
|
-
function isArrayLike(value) {
|
|
604
|
-
return value != null && isLength(value.length) && !isFunction(value);
|
|
605
|
-
}
|
|
606
|
-
//#endregion
|
|
607
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.js
|
|
608
|
-
/** Used for built-in method references. */
|
|
609
|
-
var objectProto$1 = Object.prototype;
|
|
610
|
-
/**
|
|
611
|
-
* Checks if `value` is likely a prototype object.
|
|
612
|
-
*
|
|
613
|
-
* @private
|
|
614
|
-
* @param {*} value The value to check.
|
|
615
|
-
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
616
|
-
*/
|
|
617
|
-
function isPrototype(value) {
|
|
618
|
-
var Ctor = value && value.constructor;
|
|
619
|
-
return value === (typeof Ctor == "function" && Ctor.prototype || objectProto$1);
|
|
620
|
-
}
|
|
621
|
-
//#endregion
|
|
622
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.js
|
|
623
|
-
/**
|
|
624
|
-
* The base implementation of `_.times` without support for iteratee shorthands
|
|
625
|
-
* or max array length checks.
|
|
626
|
-
*
|
|
627
|
-
* @private
|
|
628
|
-
* @param {number} n The number of times to invoke `iteratee`.
|
|
629
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
630
|
-
* @returns {Array} Returns the array of results.
|
|
631
|
-
*/
|
|
632
|
-
function baseTimes(n, iteratee) {
|
|
633
|
-
var index = -1, result = Array(n);
|
|
634
|
-
while (++index < n) result[index] = iteratee(index);
|
|
635
|
-
return result;
|
|
636
|
-
}
|
|
637
|
-
//#endregion
|
|
638
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.js
|
|
639
|
-
/** `Object#toString` result references. */
|
|
640
|
-
var argsTag$2 = "[object Arguments]";
|
|
641
|
-
/**
|
|
642
|
-
* The base implementation of `_.isArguments`.
|
|
643
|
-
*
|
|
644
|
-
* @private
|
|
645
|
-
* @param {*} value The value to check.
|
|
646
|
-
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
647
|
-
*/
|
|
648
|
-
function baseIsArguments(value) {
|
|
649
|
-
return isObjectLike(value) && baseGetTag(value) == argsTag$2;
|
|
650
|
-
}
|
|
651
|
-
//#endregion
|
|
652
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.js
|
|
653
|
-
/** Used for built-in method references. */
|
|
654
|
-
var objectProto = Object.prototype;
|
|
655
|
-
/** Used to check objects for own properties. */
|
|
656
|
-
var hasOwnProperty$6 = objectProto.hasOwnProperty;
|
|
657
|
-
/** Built-in value references. */
|
|
658
|
-
var propertyIsEnumerable$1 = objectProto.propertyIsEnumerable;
|
|
659
|
-
/**
|
|
660
|
-
* Checks if `value` is likely an `arguments` object.
|
|
661
|
-
*
|
|
662
|
-
* @static
|
|
663
|
-
* @memberOf _
|
|
664
|
-
* @since 0.1.0
|
|
665
|
-
* @category Lang
|
|
666
|
-
* @param {*} value The value to check.
|
|
667
|
-
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
668
|
-
* else `false`.
|
|
669
|
-
* @example
|
|
670
|
-
*
|
|
671
|
-
* _.isArguments(function() { return arguments; }());
|
|
672
|
-
* // => true
|
|
673
|
-
*
|
|
674
|
-
* _.isArguments([1, 2, 3]);
|
|
675
|
-
* // => false
|
|
676
|
-
*/
|
|
677
|
-
var isArguments = baseIsArguments(function() {
|
|
678
|
-
return arguments;
|
|
679
|
-
}()) ? baseIsArguments : function(value) {
|
|
680
|
-
return isObjectLike(value) && hasOwnProperty$6.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
681
|
-
};
|
|
682
|
-
//#endregion
|
|
683
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.js
|
|
684
|
-
/**
|
|
685
|
-
* This method returns `false`.
|
|
686
|
-
*
|
|
687
|
-
* @static
|
|
688
|
-
* @memberOf _
|
|
689
|
-
* @since 4.13.0
|
|
690
|
-
* @category Util
|
|
691
|
-
* @returns {boolean} Returns `false`.
|
|
692
|
-
* @example
|
|
693
|
-
*
|
|
694
|
-
* _.times(2, _.stubFalse);
|
|
695
|
-
* // => [false, false]
|
|
696
|
-
*/
|
|
697
|
-
function stubFalse() {
|
|
698
|
-
return false;
|
|
699
|
-
}
|
|
700
|
-
//#endregion
|
|
701
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.js
|
|
702
|
-
/** Detect free variable `exports`. */
|
|
703
|
-
var freeExports$2 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
704
|
-
/** Detect free variable `module`. */
|
|
705
|
-
var freeModule$2 = freeExports$2 && typeof module == "object" && module && !module.nodeType && module;
|
|
706
|
-
/** Built-in value references. */
|
|
707
|
-
var Buffer$1 = freeModule$2 && freeModule$2.exports === freeExports$2 ? root.Buffer : void 0;
|
|
708
|
-
/**
|
|
709
|
-
* Checks if `value` is a buffer.
|
|
710
|
-
*
|
|
711
|
-
* @static
|
|
712
|
-
* @memberOf _
|
|
713
|
-
* @since 4.3.0
|
|
714
|
-
* @category Lang
|
|
715
|
-
* @param {*} value The value to check.
|
|
716
|
-
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
|
|
717
|
-
* @example
|
|
718
|
-
*
|
|
719
|
-
* _.isBuffer(new Buffer(2));
|
|
720
|
-
* // => true
|
|
721
|
-
*
|
|
722
|
-
* _.isBuffer(new Uint8Array(2));
|
|
723
|
-
* // => false
|
|
724
|
-
*/
|
|
725
|
-
var isBuffer = (Buffer$1 ? Buffer$1.isBuffer : void 0) || stubFalse;
|
|
726
|
-
//#endregion
|
|
727
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.js
|
|
728
|
-
/** `Object#toString` result references. */
|
|
729
|
-
var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$2 = "[object Boolean]", dateTag$2 = "[object Date]", errorTag$1 = "[object Error]", funcTag$1 = "[object Function]", mapTag$4 = "[object Map]", numberTag$2 = "[object Number]", objectTag$2 = "[object Object]", regexpTag$2 = "[object RegExp]", setTag$4 = "[object Set]", stringTag$2 = "[object String]", weakMapTag$2 = "[object WeakMap]";
|
|
730
|
-
var arrayBufferTag$2 = "[object ArrayBuffer]", dataViewTag$3 = "[object DataView]", float32Tag$2 = "[object Float32Array]", float64Tag$2 = "[object Float64Array]", int8Tag$2 = "[object Int8Array]", int16Tag$2 = "[object Int16Array]", int32Tag$2 = "[object Int32Array]", uint8Tag$2 = "[object Uint8Array]", uint8ClampedTag$2 = "[object Uint8ClampedArray]", uint16Tag$2 = "[object Uint16Array]", uint32Tag$2 = "[object Uint32Array]";
|
|
731
|
-
/** Used to identify `toStringTag` values of typed arrays. */
|
|
732
|
-
var typedArrayTags = {};
|
|
733
|
-
typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] = typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] = typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] = typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] = typedArrayTags[uint32Tag$2] = true;
|
|
734
|
-
typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] = typedArrayTags[arrayBufferTag$2] = typedArrayTags[boolTag$2] = typedArrayTags[dataViewTag$3] = typedArrayTags[dateTag$2] = typedArrayTags[errorTag$1] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag$4] = typedArrayTags[numberTag$2] = typedArrayTags[objectTag$2] = typedArrayTags[regexpTag$2] = typedArrayTags[setTag$4] = typedArrayTags[stringTag$2] = typedArrayTags[weakMapTag$2] = false;
|
|
735
|
-
/**
|
|
736
|
-
* The base implementation of `_.isTypedArray` without Node.js optimizations.
|
|
737
|
-
*
|
|
738
|
-
* @private
|
|
739
|
-
* @param {*} value The value to check.
|
|
740
|
-
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
741
|
-
*/
|
|
742
|
-
function baseIsTypedArray(value) {
|
|
743
|
-
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
744
|
-
}
|
|
745
|
-
//#endregion
|
|
746
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.js
|
|
747
|
-
/**
|
|
748
|
-
* The base implementation of `_.unary` without support for storing metadata.
|
|
749
|
-
*
|
|
750
|
-
* @private
|
|
751
|
-
* @param {Function} func The function to cap arguments for.
|
|
752
|
-
* @returns {Function} Returns the new capped function.
|
|
753
|
-
*/
|
|
754
|
-
function baseUnary(func) {
|
|
755
|
-
return function(value) {
|
|
756
|
-
return func(value);
|
|
757
|
-
};
|
|
758
|
-
}
|
|
759
|
-
//#endregion
|
|
760
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.js
|
|
761
|
-
/** Detect free variable `exports`. */
|
|
762
|
-
var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
763
|
-
/** Detect free variable `module`. */
|
|
764
|
-
var freeModule$1 = freeExports$1 && typeof module == "object" && module && !module.nodeType && module;
|
|
765
|
-
/** Detect free variable `process` from Node.js. */
|
|
766
|
-
var freeProcess = freeModule$1 && freeModule$1.exports === freeExports$1 && freeGlobal.process;
|
|
767
|
-
/** Used to access faster Node.js helpers. */
|
|
768
|
-
var nodeUtil = function() {
|
|
769
|
-
try {
|
|
770
|
-
var types = freeModule$1 && freeModule$1.require && freeModule$1.require("util").types;
|
|
771
|
-
if (types) return types;
|
|
772
|
-
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
773
|
-
} catch (e) {}
|
|
774
|
-
}();
|
|
775
|
-
//#endregion
|
|
776
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.js
|
|
777
|
-
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
778
|
-
/**
|
|
779
|
-
* Checks if `value` is classified as a typed array.
|
|
780
|
-
*
|
|
781
|
-
* @static
|
|
782
|
-
* @memberOf _
|
|
783
|
-
* @since 3.0.0
|
|
784
|
-
* @category Lang
|
|
785
|
-
* @param {*} value The value to check.
|
|
786
|
-
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
787
|
-
* @example
|
|
788
|
-
*
|
|
789
|
-
* _.isTypedArray(new Uint8Array);
|
|
790
|
-
* // => true
|
|
791
|
-
*
|
|
792
|
-
* _.isTypedArray([]);
|
|
793
|
-
* // => false
|
|
794
|
-
*/
|
|
795
|
-
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
796
|
-
//#endregion
|
|
797
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.js
|
|
798
|
-
/** Used to check objects for own properties. */
|
|
799
|
-
var hasOwnProperty$5 = Object.prototype.hasOwnProperty;
|
|
800
|
-
/**
|
|
801
|
-
* Creates an array of the enumerable property names of the array-like `value`.
|
|
802
|
-
*
|
|
803
|
-
* @private
|
|
804
|
-
* @param {*} value The value to query.
|
|
805
|
-
* @param {boolean} inherited Specify returning inherited property names.
|
|
806
|
-
* @returns {Array} Returns the array of property names.
|
|
807
|
-
*/
|
|
808
|
-
function arrayLikeKeys(value, inherited) {
|
|
809
|
-
var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
810
|
-
for (var key in value) if ((inherited || hasOwnProperty$5.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) result.push(key);
|
|
811
|
-
return result;
|
|
812
|
-
}
|
|
813
|
-
//#endregion
|
|
814
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.js
|
|
815
|
-
/**
|
|
816
|
-
* Creates a unary function that invokes `func` with its argument transformed.
|
|
817
|
-
*
|
|
818
|
-
* @private
|
|
819
|
-
* @param {Function} func The function to wrap.
|
|
820
|
-
* @param {Function} transform The argument transform.
|
|
821
|
-
* @returns {Function} Returns the new function.
|
|
822
|
-
*/
|
|
823
|
-
function overArg(func, transform) {
|
|
824
|
-
return function(arg) {
|
|
825
|
-
return func(transform(arg));
|
|
826
|
-
};
|
|
827
|
-
}
|
|
828
|
-
//#endregion
|
|
829
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.js
|
|
830
|
-
var nativeKeys = overArg(Object.keys, Object);
|
|
831
|
-
//#endregion
|
|
832
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.js
|
|
833
|
-
/** Used to check objects for own properties. */
|
|
834
|
-
var hasOwnProperty$4 = Object.prototype.hasOwnProperty;
|
|
835
|
-
/**
|
|
836
|
-
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
|
837
|
-
*
|
|
838
|
-
* @private
|
|
839
|
-
* @param {Object} object The object to query.
|
|
840
|
-
* @returns {Array} Returns the array of property names.
|
|
841
|
-
*/
|
|
842
|
-
function baseKeys(object) {
|
|
843
|
-
if (!isPrototype(object)) return nativeKeys(object);
|
|
844
|
-
var result = [];
|
|
845
|
-
for (var key in Object(object)) if (hasOwnProperty$4.call(object, key) && key != "constructor") result.push(key);
|
|
846
|
-
return result;
|
|
847
|
-
}
|
|
848
|
-
//#endregion
|
|
849
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.js
|
|
850
|
-
/**
|
|
851
|
-
* Creates an array of the own enumerable property names of `object`.
|
|
852
|
-
*
|
|
853
|
-
* **Note:** Non-object values are coerced to objects. See the
|
|
854
|
-
* [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
855
|
-
* for more details.
|
|
856
|
-
*
|
|
857
|
-
* @static
|
|
858
|
-
* @since 0.1.0
|
|
859
|
-
* @memberOf _
|
|
860
|
-
* @category Object
|
|
861
|
-
* @param {Object} object The object to query.
|
|
862
|
-
* @returns {Array} Returns the array of property names.
|
|
863
|
-
* @example
|
|
864
|
-
*
|
|
865
|
-
* function Foo() {
|
|
866
|
-
* this.a = 1;
|
|
867
|
-
* this.b = 2;
|
|
868
|
-
* }
|
|
869
|
-
*
|
|
870
|
-
* Foo.prototype.c = 3;
|
|
871
|
-
*
|
|
872
|
-
* _.keys(new Foo);
|
|
873
|
-
* // => ['a', 'b'] (iteration order is not guaranteed)
|
|
874
|
-
*
|
|
875
|
-
* _.keys('hi');
|
|
876
|
-
* // => ['0', '1']
|
|
877
|
-
*/
|
|
878
|
-
function keys(object) {
|
|
879
|
-
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
880
|
-
}
|
|
881
|
-
//#endregion
|
|
882
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeysIn.js
|
|
883
|
-
/**
|
|
884
|
-
* This function is like
|
|
885
|
-
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
886
|
-
* except that it includes inherited enumerable properties.
|
|
887
|
-
*
|
|
888
|
-
* @private
|
|
889
|
-
* @param {Object} object The object to query.
|
|
890
|
-
* @returns {Array} Returns the array of property names.
|
|
891
|
-
*/
|
|
892
|
-
function nativeKeysIn(object) {
|
|
893
|
-
var result = [];
|
|
894
|
-
if (object != null) for (var key in Object(object)) result.push(key);
|
|
895
|
-
return result;
|
|
896
|
-
}
|
|
897
|
-
//#endregion
|
|
898
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeysIn.js
|
|
899
|
-
/** Used to check objects for own properties. */
|
|
900
|
-
var hasOwnProperty$3 = Object.prototype.hasOwnProperty;
|
|
901
|
-
/**
|
|
902
|
-
* The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
|
|
554
|
+
* Creates a hash object.
|
|
903
555
|
*
|
|
904
556
|
* @private
|
|
905
|
-
* @
|
|
906
|
-
* @
|
|
557
|
+
* @constructor
|
|
558
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
907
559
|
*/
|
|
908
|
-
function
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
560
|
+
function Hash(entries) {
|
|
561
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
562
|
+
this.clear();
|
|
563
|
+
while (++index < length) {
|
|
564
|
+
var entry = entries[index];
|
|
565
|
+
this.set(entry[0], entry[1]);
|
|
566
|
+
}
|
|
913
567
|
}
|
|
568
|
+
Hash.prototype.clear = hashClear;
|
|
569
|
+
Hash.prototype["delete"] = hashDelete;
|
|
570
|
+
Hash.prototype.get = hashGet;
|
|
571
|
+
Hash.prototype.has = hashHas;
|
|
572
|
+
Hash.prototype.set = hashSet;
|
|
914
573
|
//#endregion
|
|
915
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
574
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.js
|
|
916
575
|
/**
|
|
917
|
-
*
|
|
918
|
-
*
|
|
919
|
-
* **Note:** Non-object values are coerced to objects.
|
|
920
|
-
*
|
|
921
|
-
* @static
|
|
922
|
-
* @memberOf _
|
|
923
|
-
* @since 3.0.0
|
|
924
|
-
* @category Object
|
|
925
|
-
* @param {Object} object The object to query.
|
|
926
|
-
* @returns {Array} Returns the array of property names.
|
|
927
|
-
* @example
|
|
928
|
-
*
|
|
929
|
-
* function Foo() {
|
|
930
|
-
* this.a = 1;
|
|
931
|
-
* this.b = 2;
|
|
932
|
-
* }
|
|
933
|
-
*
|
|
934
|
-
* Foo.prototype.c = 3;
|
|
576
|
+
* Removes all key-value entries from the map.
|
|
935
577
|
*
|
|
936
|
-
*
|
|
937
|
-
*
|
|
578
|
+
* @private
|
|
579
|
+
* @name clear
|
|
580
|
+
* @memberOf MapCache
|
|
938
581
|
*/
|
|
939
|
-
function
|
|
940
|
-
|
|
582
|
+
function mapCacheClear() {
|
|
583
|
+
this.size = 0;
|
|
584
|
+
this.__data__ = {
|
|
585
|
+
"hash": new Hash(),
|
|
586
|
+
"map": new (Map$1 || ListCache)(),
|
|
587
|
+
"string": new Hash()
|
|
588
|
+
};
|
|
941
589
|
}
|
|
942
590
|
//#endregion
|
|
943
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
944
|
-
/** Used to match property names within property paths. */
|
|
945
|
-
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
|
|
591
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.js
|
|
946
592
|
/**
|
|
947
|
-
* Checks if `value` is
|
|
593
|
+
* Checks if `value` is suitable for use as unique object key.
|
|
948
594
|
*
|
|
949
595
|
* @private
|
|
950
596
|
* @param {*} value The value to check.
|
|
951
|
-
* @
|
|
952
|
-
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
|
|
597
|
+
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
953
598
|
*/
|
|
954
|
-
function
|
|
955
|
-
if (isArray(value)) return false;
|
|
599
|
+
function isKeyable(value) {
|
|
956
600
|
var type = typeof value;
|
|
957
|
-
|
|
958
|
-
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
|
|
601
|
+
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
959
602
|
}
|
|
960
603
|
//#endregion
|
|
961
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
962
|
-
var nativeCreate = getNative(Object, "create");
|
|
963
|
-
//#endregion
|
|
964
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.js
|
|
604
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.js
|
|
965
605
|
/**
|
|
966
|
-
*
|
|
606
|
+
* Gets the data for `map`.
|
|
967
607
|
*
|
|
968
608
|
* @private
|
|
969
|
-
* @
|
|
970
|
-
* @
|
|
609
|
+
* @param {Object} map The map to query.
|
|
610
|
+
* @param {string} key The reference key.
|
|
611
|
+
* @returns {*} Returns the map data.
|
|
971
612
|
*/
|
|
972
|
-
function
|
|
973
|
-
|
|
974
|
-
|
|
613
|
+
function getMapData(map, key) {
|
|
614
|
+
var data = map.__data__;
|
|
615
|
+
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
975
616
|
}
|
|
976
617
|
//#endregion
|
|
977
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
618
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.js
|
|
978
619
|
/**
|
|
979
|
-
* Removes `key` and its value from the
|
|
620
|
+
* Removes `key` and its value from the map.
|
|
980
621
|
*
|
|
981
622
|
* @private
|
|
982
623
|
* @name delete
|
|
983
|
-
* @memberOf
|
|
984
|
-
* @param {Object} hash The hash to modify.
|
|
624
|
+
* @memberOf MapCache
|
|
985
625
|
* @param {string} key The key of the value to remove.
|
|
986
626
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
987
627
|
*/
|
|
988
|
-
function
|
|
989
|
-
var result = this
|
|
628
|
+
function mapCacheDelete(key) {
|
|
629
|
+
var result = getMapData(this, key)["delete"](key);
|
|
990
630
|
this.size -= result ? 1 : 0;
|
|
991
631
|
return result;
|
|
992
632
|
}
|
|
993
633
|
//#endregion
|
|
994
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
995
|
-
/** Used to stand-in for `undefined` hash values. */
|
|
996
|
-
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
997
|
-
/** Used to check objects for own properties. */
|
|
998
|
-
var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
|
|
634
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.js
|
|
999
635
|
/**
|
|
1000
|
-
* Gets the
|
|
636
|
+
* Gets the map value for `key`.
|
|
1001
637
|
*
|
|
1002
638
|
* @private
|
|
1003
639
|
* @name get
|
|
1004
|
-
* @memberOf
|
|
640
|
+
* @memberOf MapCache
|
|
1005
641
|
* @param {string} key The key of the value to get.
|
|
1006
642
|
* @returns {*} Returns the entry value.
|
|
1007
643
|
*/
|
|
1008
|
-
function
|
|
1009
|
-
|
|
1010
|
-
if (nativeCreate) {
|
|
1011
|
-
var result = data[key];
|
|
1012
|
-
return result === HASH_UNDEFINED$1 ? void 0 : result;
|
|
1013
|
-
}
|
|
1014
|
-
return hasOwnProperty$2.call(data, key) ? data[key] : void 0;
|
|
644
|
+
function mapCacheGet(key) {
|
|
645
|
+
return getMapData(this, key).get(key);
|
|
1015
646
|
}
|
|
1016
647
|
//#endregion
|
|
1017
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1018
|
-
/** Used to check objects for own properties. */
|
|
1019
|
-
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
648
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.js
|
|
1020
649
|
/**
|
|
1021
|
-
* Checks if a
|
|
650
|
+
* Checks if a map value for `key` exists.
|
|
1022
651
|
*
|
|
1023
652
|
* @private
|
|
1024
653
|
* @name has
|
|
1025
|
-
* @memberOf
|
|
654
|
+
* @memberOf MapCache
|
|
1026
655
|
* @param {string} key The key of the entry to check.
|
|
1027
656
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1028
657
|
*/
|
|
1029
|
-
function
|
|
1030
|
-
|
|
1031
|
-
return nativeCreate ? data[key] !== void 0 : hasOwnProperty$1.call(data, key);
|
|
658
|
+
function mapCacheHas(key) {
|
|
659
|
+
return getMapData(this, key).has(key);
|
|
1032
660
|
}
|
|
1033
661
|
//#endregion
|
|
1034
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1035
|
-
/** Used to stand-in for `undefined` hash values. */
|
|
1036
|
-
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
662
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.js
|
|
1037
663
|
/**
|
|
1038
|
-
* Sets the
|
|
664
|
+
* Sets the map `key` to `value`.
|
|
1039
665
|
*
|
|
1040
666
|
* @private
|
|
1041
667
|
* @name set
|
|
1042
|
-
* @memberOf
|
|
668
|
+
* @memberOf MapCache
|
|
1043
669
|
* @param {string} key The key of the value to set.
|
|
1044
670
|
* @param {*} value The value to set.
|
|
1045
|
-
* @returns {Object} Returns the
|
|
671
|
+
* @returns {Object} Returns the map cache instance.
|
|
1046
672
|
*/
|
|
1047
|
-
function
|
|
1048
|
-
var data = this.
|
|
1049
|
-
|
|
1050
|
-
|
|
673
|
+
function mapCacheSet(key, value) {
|
|
674
|
+
var data = getMapData(this, key), size = data.size;
|
|
675
|
+
data.set(key, value);
|
|
676
|
+
this.size += data.size == size ? 0 : 1;
|
|
1051
677
|
return this;
|
|
1052
678
|
}
|
|
1053
679
|
//#endregion
|
|
1054
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
680
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.js
|
|
1055
681
|
/**
|
|
1056
|
-
* Creates a
|
|
682
|
+
* Creates a map cache object to store key-value pairs.
|
|
1057
683
|
*
|
|
1058
684
|
* @private
|
|
1059
685
|
* @constructor
|
|
1060
686
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
1061
687
|
*/
|
|
1062
|
-
function
|
|
688
|
+
function MapCache(entries) {
|
|
1063
689
|
var index = -1, length = entries == null ? 0 : entries.length;
|
|
1064
690
|
this.clear();
|
|
1065
691
|
while (++index < length) {
|
|
@@ -1067,556 +693,632 @@
|
|
|
1067
693
|
this.set(entry[0], entry[1]);
|
|
1068
694
|
}
|
|
1069
695
|
}
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
//#endregion
|
|
1076
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.js
|
|
1077
|
-
/**
|
|
1078
|
-
* Removes all key-value entries from the list cache.
|
|
1079
|
-
*
|
|
1080
|
-
* @private
|
|
1081
|
-
* @name clear
|
|
1082
|
-
* @memberOf ListCache
|
|
1083
|
-
*/
|
|
1084
|
-
function listCacheClear() {
|
|
1085
|
-
this.__data__ = [];
|
|
1086
|
-
this.size = 0;
|
|
1087
|
-
}
|
|
696
|
+
MapCache.prototype.clear = mapCacheClear;
|
|
697
|
+
MapCache.prototype["delete"] = mapCacheDelete;
|
|
698
|
+
MapCache.prototype.get = mapCacheGet;
|
|
699
|
+
MapCache.prototype.has = mapCacheHas;
|
|
700
|
+
MapCache.prototype.set = mapCacheSet;
|
|
1088
701
|
//#endregion
|
|
1089
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
702
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.js
|
|
703
|
+
/** Used as the size to enable large array optimizations. */
|
|
704
|
+
var LARGE_ARRAY_SIZE = 200;
|
|
1090
705
|
/**
|
|
1091
|
-
*
|
|
706
|
+
* Sets the stack `key` to `value`.
|
|
1092
707
|
*
|
|
1093
708
|
* @private
|
|
1094
|
-
* @
|
|
1095
|
-
* @
|
|
1096
|
-
* @
|
|
709
|
+
* @name set
|
|
710
|
+
* @memberOf Stack
|
|
711
|
+
* @param {string} key The key of the value to set.
|
|
712
|
+
* @param {*} value The value to set.
|
|
713
|
+
* @returns {Object} Returns the stack cache instance.
|
|
1097
714
|
*/
|
|
1098
|
-
function
|
|
1099
|
-
var
|
|
1100
|
-
|
|
1101
|
-
|
|
715
|
+
function stackSet(key, value) {
|
|
716
|
+
var data = this.__data__;
|
|
717
|
+
if (data instanceof ListCache) {
|
|
718
|
+
var pairs = data.__data__;
|
|
719
|
+
if (!Map$1 || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
720
|
+
pairs.push([key, value]);
|
|
721
|
+
this.size = ++data.size;
|
|
722
|
+
return this;
|
|
723
|
+
}
|
|
724
|
+
data = this.__data__ = new MapCache(pairs);
|
|
725
|
+
}
|
|
726
|
+
data.set(key, value);
|
|
727
|
+
this.size = data.size;
|
|
728
|
+
return this;
|
|
1102
729
|
}
|
|
1103
730
|
//#endregion
|
|
1104
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1105
|
-
/** Built-in value references. */
|
|
1106
|
-
var splice = Array.prototype.splice;
|
|
731
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.js
|
|
1107
732
|
/**
|
|
1108
|
-
*
|
|
733
|
+
* Creates a stack cache object to store key-value pairs.
|
|
1109
734
|
*
|
|
1110
735
|
* @private
|
|
1111
|
-
* @
|
|
1112
|
-
* @
|
|
1113
|
-
* @param {string} key The key of the value to remove.
|
|
1114
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
736
|
+
* @constructor
|
|
737
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
1115
738
|
*/
|
|
1116
|
-
function
|
|
1117
|
-
var data = this.__data__
|
|
1118
|
-
|
|
1119
|
-
if (index == data.length - 1) data.pop();
|
|
1120
|
-
else splice.call(data, index, 1);
|
|
1121
|
-
--this.size;
|
|
1122
|
-
return true;
|
|
739
|
+
function Stack(entries) {
|
|
740
|
+
var data = this.__data__ = new ListCache(entries);
|
|
741
|
+
this.size = data.size;
|
|
1123
742
|
}
|
|
743
|
+
Stack.prototype.clear = stackClear;
|
|
744
|
+
Stack.prototype["delete"] = stackDelete;
|
|
745
|
+
Stack.prototype.get = stackGet;
|
|
746
|
+
Stack.prototype.has = stackHas;
|
|
747
|
+
Stack.prototype.set = stackSet;
|
|
1124
748
|
//#endregion
|
|
1125
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
749
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayEach.js
|
|
1126
750
|
/**
|
|
1127
|
-
*
|
|
751
|
+
* A specialized version of `_.forEach` for arrays without support for
|
|
752
|
+
* iteratee shorthands.
|
|
1128
753
|
*
|
|
1129
754
|
* @private
|
|
1130
|
-
* @
|
|
1131
|
-
* @
|
|
1132
|
-
* @
|
|
1133
|
-
* @returns {*} Returns the entry value.
|
|
755
|
+
* @param {Array} [array] The array to iterate over.
|
|
756
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
757
|
+
* @returns {Array} Returns `array`.
|
|
1134
758
|
*/
|
|
1135
|
-
function
|
|
1136
|
-
var
|
|
1137
|
-
|
|
759
|
+
function arrayEach(array, iteratee) {
|
|
760
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
761
|
+
while (++index < length) if (iteratee(array[index], index, array) === false) break;
|
|
762
|
+
return array;
|
|
1138
763
|
}
|
|
1139
764
|
//#endregion
|
|
1140
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
765
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_defineProperty.js
|
|
766
|
+
var defineProperty = function() {
|
|
767
|
+
try {
|
|
768
|
+
var func = getNative(Object, "defineProperty");
|
|
769
|
+
func({}, "", {});
|
|
770
|
+
return func;
|
|
771
|
+
} catch (e) {}
|
|
772
|
+
}();
|
|
773
|
+
//#endregion
|
|
774
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignValue.js
|
|
1141
775
|
/**
|
|
1142
|
-
*
|
|
776
|
+
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
777
|
+
* value checks.
|
|
1143
778
|
*
|
|
1144
779
|
* @private
|
|
1145
|
-
* @
|
|
1146
|
-
* @
|
|
1147
|
-
* @param {
|
|
1148
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
780
|
+
* @param {Object} object The object to modify.
|
|
781
|
+
* @param {string} key The key of the property to assign.
|
|
782
|
+
* @param {*} value The value to assign.
|
|
1149
783
|
*/
|
|
1150
|
-
function
|
|
1151
|
-
|
|
784
|
+
function baseAssignValue(object, key, value) {
|
|
785
|
+
if (key == "__proto__" && defineProperty) defineProperty(object, key, {
|
|
786
|
+
"configurable": true,
|
|
787
|
+
"enumerable": true,
|
|
788
|
+
"value": value,
|
|
789
|
+
"writable": true
|
|
790
|
+
});
|
|
791
|
+
else object[key] = value;
|
|
1152
792
|
}
|
|
1153
793
|
//#endregion
|
|
1154
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
794
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignValue.js
|
|
795
|
+
/** Used to check objects for own properties. */
|
|
796
|
+
var hasOwnProperty$5 = Object.prototype.hasOwnProperty;
|
|
1155
797
|
/**
|
|
1156
|
-
*
|
|
798
|
+
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
|
799
|
+
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
800
|
+
* for equality comparisons.
|
|
1157
801
|
*
|
|
1158
802
|
* @private
|
|
1159
|
-
* @
|
|
1160
|
-
* @
|
|
1161
|
-
* @param {
|
|
1162
|
-
* @param {*} value The value to set.
|
|
1163
|
-
* @returns {Object} Returns the list cache instance.
|
|
803
|
+
* @param {Object} object The object to modify.
|
|
804
|
+
* @param {string} key The key of the property to assign.
|
|
805
|
+
* @param {*} value The value to assign.
|
|
1164
806
|
*/
|
|
1165
|
-
function
|
|
1166
|
-
var
|
|
1167
|
-
if (
|
|
1168
|
-
++this.size;
|
|
1169
|
-
data.push([key, value]);
|
|
1170
|
-
} else data[index][1] = value;
|
|
1171
|
-
return this;
|
|
807
|
+
function assignValue(object, key, value) {
|
|
808
|
+
var objValue = object[key];
|
|
809
|
+
if (!(hasOwnProperty$5.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) baseAssignValue(object, key, value);
|
|
1172
810
|
}
|
|
1173
811
|
//#endregion
|
|
1174
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
812
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyObject.js
|
|
1175
813
|
/**
|
|
1176
|
-
*
|
|
814
|
+
* Copies properties of `source` to `object`.
|
|
1177
815
|
*
|
|
1178
816
|
* @private
|
|
1179
|
-
* @
|
|
1180
|
-
* @param {Array}
|
|
817
|
+
* @param {Object} source The object to copy properties from.
|
|
818
|
+
* @param {Array} props The property identifiers to copy.
|
|
819
|
+
* @param {Object} [object={}] The object to copy properties to.
|
|
820
|
+
* @param {Function} [customizer] The function to customize copied values.
|
|
821
|
+
* @returns {Object} Returns `object`.
|
|
1181
822
|
*/
|
|
1182
|
-
function
|
|
1183
|
-
var
|
|
1184
|
-
|
|
823
|
+
function copyObject(source, props, object, customizer) {
|
|
824
|
+
var isNew = !object;
|
|
825
|
+
object || (object = {});
|
|
826
|
+
var index = -1, length = props.length;
|
|
1185
827
|
while (++index < length) {
|
|
1186
|
-
var
|
|
1187
|
-
|
|
828
|
+
var key = props[index];
|
|
829
|
+
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
|
830
|
+
if (newValue === void 0) newValue = source[key];
|
|
831
|
+
if (isNew) baseAssignValue(object, key, newValue);
|
|
832
|
+
else assignValue(object, key, newValue);
|
|
1188
833
|
}
|
|
834
|
+
return object;
|
|
1189
835
|
}
|
|
1190
|
-
ListCache.prototype.clear = listCacheClear;
|
|
1191
|
-
ListCache.prototype["delete"] = listCacheDelete;
|
|
1192
|
-
ListCache.prototype.get = listCacheGet;
|
|
1193
|
-
ListCache.prototype.has = listCacheHas;
|
|
1194
|
-
ListCache.prototype.set = listCacheSet;
|
|
1195
|
-
//#endregion
|
|
1196
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.js
|
|
1197
|
-
var Map$1 = getNative(root, "Map");
|
|
1198
836
|
//#endregion
|
|
1199
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
837
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.js
|
|
1200
838
|
/**
|
|
1201
|
-
*
|
|
839
|
+
* The base implementation of `_.times` without support for iteratee shorthands
|
|
840
|
+
* or max array length checks.
|
|
1202
841
|
*
|
|
1203
842
|
* @private
|
|
1204
|
-
* @
|
|
1205
|
-
* @
|
|
843
|
+
* @param {number} n The number of times to invoke `iteratee`.
|
|
844
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
845
|
+
* @returns {Array} Returns the array of results.
|
|
1206
846
|
*/
|
|
1207
|
-
function
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
"map": new (Map$1 || ListCache)(),
|
|
1212
|
-
"string": new Hash()
|
|
1213
|
-
};
|
|
847
|
+
function baseTimes(n, iteratee) {
|
|
848
|
+
var index = -1, result = Array(n);
|
|
849
|
+
while (++index < n) result[index] = iteratee(index);
|
|
850
|
+
return result;
|
|
1214
851
|
}
|
|
1215
852
|
//#endregion
|
|
1216
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
853
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js
|
|
1217
854
|
/**
|
|
1218
|
-
* Checks if `value` is
|
|
855
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
856
|
+
* and has a `typeof` result of "object".
|
|
1219
857
|
*
|
|
1220
|
-
* @
|
|
858
|
+
* @static
|
|
859
|
+
* @memberOf _
|
|
860
|
+
* @since 4.0.0
|
|
861
|
+
* @category Lang
|
|
1221
862
|
* @param {*} value The value to check.
|
|
1222
|
-
* @returns {boolean} Returns `true` if `value` is
|
|
863
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
864
|
+
* @example
|
|
865
|
+
*
|
|
866
|
+
* _.isObjectLike({});
|
|
867
|
+
* // => true
|
|
868
|
+
*
|
|
869
|
+
* _.isObjectLike([1, 2, 3]);
|
|
870
|
+
* // => true
|
|
871
|
+
*
|
|
872
|
+
* _.isObjectLike(_.noop);
|
|
873
|
+
* // => false
|
|
874
|
+
*
|
|
875
|
+
* _.isObjectLike(null);
|
|
876
|
+
* // => false
|
|
1223
877
|
*/
|
|
1224
|
-
function
|
|
1225
|
-
|
|
1226
|
-
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
878
|
+
function isObjectLike(value) {
|
|
879
|
+
return value != null && typeof value == "object";
|
|
1227
880
|
}
|
|
1228
881
|
//#endregion
|
|
1229
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
882
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.js
|
|
883
|
+
/** `Object#toString` result references. */
|
|
884
|
+
var argsTag$2 = "[object Arguments]";
|
|
1230
885
|
/**
|
|
1231
|
-
*
|
|
886
|
+
* The base implementation of `_.isArguments`.
|
|
1232
887
|
*
|
|
1233
888
|
* @private
|
|
1234
|
-
* @param {
|
|
1235
|
-
* @
|
|
1236
|
-
* @returns {*} Returns the map data.
|
|
889
|
+
* @param {*} value The value to check.
|
|
890
|
+
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
1237
891
|
*/
|
|
1238
|
-
function
|
|
1239
|
-
|
|
1240
|
-
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
892
|
+
function baseIsArguments(value) {
|
|
893
|
+
return isObjectLike(value) && baseGetTag(value) == argsTag$2;
|
|
1241
894
|
}
|
|
1242
895
|
//#endregion
|
|
1243
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
896
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.js
|
|
897
|
+
/** Used for built-in method references. */
|
|
898
|
+
var objectProto$1 = Object.prototype;
|
|
899
|
+
/** Used to check objects for own properties. */
|
|
900
|
+
var hasOwnProperty$4 = objectProto$1.hasOwnProperty;
|
|
901
|
+
/** Built-in value references. */
|
|
902
|
+
var propertyIsEnumerable$1 = objectProto$1.propertyIsEnumerable;
|
|
1244
903
|
/**
|
|
1245
|
-
*
|
|
904
|
+
* Checks if `value` is likely an `arguments` object.
|
|
1246
905
|
*
|
|
1247
|
-
* @
|
|
1248
|
-
* @
|
|
1249
|
-
* @
|
|
1250
|
-
* @
|
|
1251
|
-
* @
|
|
906
|
+
* @static
|
|
907
|
+
* @memberOf _
|
|
908
|
+
* @since 0.1.0
|
|
909
|
+
* @category Lang
|
|
910
|
+
* @param {*} value The value to check.
|
|
911
|
+
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
912
|
+
* else `false`.
|
|
913
|
+
* @example
|
|
914
|
+
*
|
|
915
|
+
* _.isArguments(function() { return arguments; }());
|
|
916
|
+
* // => true
|
|
917
|
+
*
|
|
918
|
+
* _.isArguments([1, 2, 3]);
|
|
919
|
+
* // => false
|
|
1252
920
|
*/
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
return
|
|
1257
|
-
}
|
|
921
|
+
var isArguments = baseIsArguments(function() {
|
|
922
|
+
return arguments;
|
|
923
|
+
}()) ? baseIsArguments : function(value) {
|
|
924
|
+
return isObjectLike(value) && hasOwnProperty$4.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
925
|
+
};
|
|
1258
926
|
//#endregion
|
|
1259
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
927
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.js
|
|
1260
928
|
/**
|
|
1261
|
-
*
|
|
929
|
+
* Checks if `value` is classified as an `Array` object.
|
|
1262
930
|
*
|
|
1263
|
-
* @
|
|
1264
|
-
* @
|
|
1265
|
-
* @
|
|
1266
|
-
* @
|
|
1267
|
-
* @
|
|
931
|
+
* @static
|
|
932
|
+
* @memberOf _
|
|
933
|
+
* @since 0.1.0
|
|
934
|
+
* @category Lang
|
|
935
|
+
* @param {*} value The value to check.
|
|
936
|
+
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
937
|
+
* @example
|
|
938
|
+
*
|
|
939
|
+
* _.isArray([1, 2, 3]);
|
|
940
|
+
* // => true
|
|
941
|
+
*
|
|
942
|
+
* _.isArray(document.body.children);
|
|
943
|
+
* // => false
|
|
944
|
+
*
|
|
945
|
+
* _.isArray('abc');
|
|
946
|
+
* // => false
|
|
947
|
+
*
|
|
948
|
+
* _.isArray(_.noop);
|
|
949
|
+
* // => false
|
|
1268
950
|
*/
|
|
1269
|
-
|
|
1270
|
-
return getMapData(this, key).get(key);
|
|
1271
|
-
}
|
|
951
|
+
var isArray = Array.isArray;
|
|
1272
952
|
//#endregion
|
|
1273
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
953
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.js
|
|
1274
954
|
/**
|
|
1275
|
-
*
|
|
955
|
+
* This method returns `false`.
|
|
1276
956
|
*
|
|
1277
|
-
* @
|
|
1278
|
-
* @
|
|
1279
|
-
* @
|
|
1280
|
-
* @
|
|
1281
|
-
* @returns {boolean} Returns `
|
|
957
|
+
* @static
|
|
958
|
+
* @memberOf _
|
|
959
|
+
* @since 4.13.0
|
|
960
|
+
* @category Util
|
|
961
|
+
* @returns {boolean} Returns `false`.
|
|
962
|
+
* @example
|
|
963
|
+
*
|
|
964
|
+
* _.times(2, _.stubFalse);
|
|
965
|
+
* // => [false, false]
|
|
1282
966
|
*/
|
|
1283
|
-
function
|
|
1284
|
-
return
|
|
967
|
+
function stubFalse() {
|
|
968
|
+
return false;
|
|
1285
969
|
}
|
|
1286
970
|
//#endregion
|
|
1287
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
971
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.js
|
|
972
|
+
/** Detect free variable `exports`. */
|
|
973
|
+
var freeExports$2 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
974
|
+
/** Detect free variable `module`. */
|
|
975
|
+
var freeModule$2 = freeExports$2 && typeof module == "object" && module && !module.nodeType && module;
|
|
976
|
+
/** Built-in value references. */
|
|
977
|
+
var Buffer$1 = freeModule$2 && freeModule$2.exports === freeExports$2 ? root.Buffer : void 0;
|
|
1288
978
|
/**
|
|
1289
|
-
*
|
|
979
|
+
* Checks if `value` is a buffer.
|
|
1290
980
|
*
|
|
1291
|
-
* @
|
|
1292
|
-
* @
|
|
1293
|
-
* @
|
|
1294
|
-
* @
|
|
1295
|
-
* @param {*} value The value to
|
|
1296
|
-
* @returns {
|
|
981
|
+
* @static
|
|
982
|
+
* @memberOf _
|
|
983
|
+
* @since 4.3.0
|
|
984
|
+
* @category Lang
|
|
985
|
+
* @param {*} value The value to check.
|
|
986
|
+
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
|
|
987
|
+
* @example
|
|
988
|
+
*
|
|
989
|
+
* _.isBuffer(new Buffer(2));
|
|
990
|
+
* // => true
|
|
991
|
+
*
|
|
992
|
+
* _.isBuffer(new Uint8Array(2));
|
|
993
|
+
* // => false
|
|
1297
994
|
*/
|
|
1298
|
-
|
|
1299
|
-
var data = getMapData(this, key), size = data.size;
|
|
1300
|
-
data.set(key, value);
|
|
1301
|
-
this.size += data.size == size ? 0 : 1;
|
|
1302
|
-
return this;
|
|
1303
|
-
}
|
|
995
|
+
var isBuffer = (Buffer$1 ? Buffer$1.isBuffer : void 0) || stubFalse;
|
|
1304
996
|
//#endregion
|
|
1305
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
997
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.js
|
|
998
|
+
/** Used as references for various `Number` constants. */
|
|
999
|
+
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
1000
|
+
/** Used to detect unsigned integer values. */
|
|
1001
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
1306
1002
|
/**
|
|
1307
|
-
*
|
|
1003
|
+
* Checks if `value` is a valid array-like index.
|
|
1308
1004
|
*
|
|
1309
1005
|
* @private
|
|
1310
|
-
* @
|
|
1311
|
-
* @param {
|
|
1006
|
+
* @param {*} value The value to check.
|
|
1007
|
+
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
1008
|
+
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
1312
1009
|
*/
|
|
1313
|
-
function
|
|
1314
|
-
var
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
var entry = entries[index];
|
|
1318
|
-
this.set(entry[0], entry[1]);
|
|
1319
|
-
}
|
|
1010
|
+
function isIndex(value, length) {
|
|
1011
|
+
var type = typeof value;
|
|
1012
|
+
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
1013
|
+
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
|
|
1320
1014
|
}
|
|
1321
|
-
MapCache.prototype.clear = mapCacheClear;
|
|
1322
|
-
MapCache.prototype["delete"] = mapCacheDelete;
|
|
1323
|
-
MapCache.prototype.get = mapCacheGet;
|
|
1324
|
-
MapCache.prototype.has = mapCacheHas;
|
|
1325
|
-
MapCache.prototype.set = mapCacheSet;
|
|
1326
1015
|
//#endregion
|
|
1327
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1328
|
-
/**
|
|
1329
|
-
var
|
|
1016
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.js
|
|
1017
|
+
/** Used as references for various `Number` constants. */
|
|
1018
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
1330
1019
|
/**
|
|
1331
|
-
*
|
|
1332
|
-
* provided, it determines the cache key for storing the result based on the
|
|
1333
|
-
* arguments provided to the memoized function. By default, the first argument
|
|
1334
|
-
* provided to the memoized function is used as the map cache key. The `func`
|
|
1335
|
-
* is invoked with the `this` binding of the memoized function.
|
|
1020
|
+
* Checks if `value` is a valid array-like length.
|
|
1336
1021
|
*
|
|
1337
|
-
* **Note:**
|
|
1338
|
-
*
|
|
1339
|
-
* constructor with one whose instances implement the
|
|
1340
|
-
* [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
|
|
1341
|
-
* method interface of `clear`, `delete`, `get`, `has`, and `set`.
|
|
1022
|
+
* **Note:** This method is loosely based on
|
|
1023
|
+
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
|
1342
1024
|
*
|
|
1343
1025
|
* @static
|
|
1344
1026
|
* @memberOf _
|
|
1345
|
-
* @since 0.
|
|
1346
|
-
* @category
|
|
1347
|
-
* @param {
|
|
1348
|
-
* @
|
|
1349
|
-
* @returns {Function} Returns the new memoized function.
|
|
1027
|
+
* @since 4.0.0
|
|
1028
|
+
* @category Lang
|
|
1029
|
+
* @param {*} value The value to check.
|
|
1030
|
+
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
|
1350
1031
|
* @example
|
|
1351
1032
|
*
|
|
1352
|
-
*
|
|
1353
|
-
*
|
|
1354
|
-
*
|
|
1355
|
-
* var values = _.memoize(_.values);
|
|
1356
|
-
* values(object);
|
|
1357
|
-
* // => [1, 2]
|
|
1358
|
-
*
|
|
1359
|
-
* values(other);
|
|
1360
|
-
* // => [3, 4]
|
|
1033
|
+
* _.isLength(3);
|
|
1034
|
+
* // => true
|
|
1361
1035
|
*
|
|
1362
|
-
*
|
|
1363
|
-
*
|
|
1364
|
-
* // => [1, 2]
|
|
1036
|
+
* _.isLength(Number.MIN_VALUE);
|
|
1037
|
+
* // => false
|
|
1365
1038
|
*
|
|
1366
|
-
*
|
|
1367
|
-
*
|
|
1368
|
-
* values(object);
|
|
1369
|
-
* // => ['a', 'b']
|
|
1039
|
+
* _.isLength(Infinity);
|
|
1040
|
+
* // => false
|
|
1370
1041
|
*
|
|
1371
|
-
*
|
|
1372
|
-
*
|
|
1042
|
+
* _.isLength('3');
|
|
1043
|
+
* // => false
|
|
1373
1044
|
*/
|
|
1374
|
-
function
|
|
1375
|
-
|
|
1376
|
-
var memoized = function() {
|
|
1377
|
-
var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
|
|
1378
|
-
if (cache.has(key)) return cache.get(key);
|
|
1379
|
-
var result = func.apply(this, args);
|
|
1380
|
-
memoized.cache = cache.set(key, result) || cache;
|
|
1381
|
-
return result;
|
|
1382
|
-
};
|
|
1383
|
-
memoized.cache = new (memoize.Cache || MapCache)();
|
|
1384
|
-
return memoized;
|
|
1045
|
+
function isLength(value) {
|
|
1046
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
1385
1047
|
}
|
|
1386
|
-
memoize.Cache = MapCache;
|
|
1387
1048
|
//#endregion
|
|
1388
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1389
|
-
/**
|
|
1390
|
-
var
|
|
1049
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.js
|
|
1050
|
+
/** `Object#toString` result references. */
|
|
1051
|
+
var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$2 = "[object Boolean]", dateTag$2 = "[object Date]", errorTag$1 = "[object Error]", funcTag$1 = "[object Function]", mapTag$4 = "[object Map]", numberTag$2 = "[object Number]", objectTag$2 = "[object Object]", regexpTag$2 = "[object RegExp]", setTag$4 = "[object Set]", stringTag$2 = "[object String]", weakMapTag$2 = "[object WeakMap]";
|
|
1052
|
+
var arrayBufferTag$2 = "[object ArrayBuffer]", dataViewTag$3 = "[object DataView]", float32Tag$2 = "[object Float32Array]", float64Tag$2 = "[object Float64Array]", int8Tag$2 = "[object Int8Array]", int16Tag$2 = "[object Int16Array]", int32Tag$2 = "[object Int32Array]", uint8Tag$2 = "[object Uint8Array]", uint8ClampedTag$2 = "[object Uint8ClampedArray]", uint16Tag$2 = "[object Uint16Array]", uint32Tag$2 = "[object Uint32Array]";
|
|
1053
|
+
/** Used to identify `toStringTag` values of typed arrays. */
|
|
1054
|
+
var typedArrayTags = {};
|
|
1055
|
+
typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] = typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] = typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] = typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] = typedArrayTags[uint32Tag$2] = true;
|
|
1056
|
+
typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] = typedArrayTags[arrayBufferTag$2] = typedArrayTags[boolTag$2] = typedArrayTags[dataViewTag$3] = typedArrayTags[dateTag$2] = typedArrayTags[errorTag$1] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag$4] = typedArrayTags[numberTag$2] = typedArrayTags[objectTag$2] = typedArrayTags[regexpTag$2] = typedArrayTags[setTag$4] = typedArrayTags[stringTag$2] = typedArrayTags[weakMapTag$2] = false;
|
|
1391
1057
|
/**
|
|
1392
|
-
*
|
|
1393
|
-
* cache when it exceeds `MAX_MEMOIZE_SIZE`.
|
|
1058
|
+
* The base implementation of `_.isTypedArray` without Node.js optimizations.
|
|
1394
1059
|
*
|
|
1395
1060
|
* @private
|
|
1396
|
-
* @param {
|
|
1397
|
-
* @returns {
|
|
1061
|
+
* @param {*} value The value to check.
|
|
1062
|
+
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
1398
1063
|
*/
|
|
1399
|
-
function
|
|
1400
|
-
|
|
1401
|
-
if (cache.size === MAX_MEMOIZE_SIZE) cache.clear();
|
|
1402
|
-
return key;
|
|
1403
|
-
});
|
|
1404
|
-
var cache = result.cache;
|
|
1405
|
-
return result;
|
|
1064
|
+
function baseIsTypedArray(value) {
|
|
1065
|
+
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
1406
1066
|
}
|
|
1407
1067
|
//#endregion
|
|
1408
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1409
|
-
/** Used to match property names within property paths. */
|
|
1410
|
-
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
1411
|
-
/** Used to match backslashes in property paths. */
|
|
1412
|
-
var reEscapeChar = /\\(\\)?/g;
|
|
1068
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.js
|
|
1413
1069
|
/**
|
|
1414
|
-
*
|
|
1070
|
+
* The base implementation of `_.unary` without support for storing metadata.
|
|
1415
1071
|
*
|
|
1416
1072
|
* @private
|
|
1417
|
-
* @param {
|
|
1418
|
-
* @returns {
|
|
1073
|
+
* @param {Function} func The function to cap arguments for.
|
|
1074
|
+
* @returns {Function} Returns the new capped function.
|
|
1419
1075
|
*/
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
});
|
|
1426
|
-
return result;
|
|
1427
|
-
});
|
|
1076
|
+
function baseUnary(func) {
|
|
1077
|
+
return function(value) {
|
|
1078
|
+
return func(value);
|
|
1079
|
+
};
|
|
1080
|
+
}
|
|
1428
1081
|
//#endregion
|
|
1429
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1082
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.js
|
|
1083
|
+
/** Detect free variable `exports`. */
|
|
1084
|
+
var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
1085
|
+
/** Detect free variable `module`. */
|
|
1086
|
+
var freeModule$1 = freeExports$1 && typeof module == "object" && module && !module.nodeType && module;
|
|
1087
|
+
/** Detect free variable `process` from Node.js. */
|
|
1088
|
+
var freeProcess = freeModule$1 && freeModule$1.exports === freeExports$1 && freeGlobal.process;
|
|
1089
|
+
/** Used to access faster Node.js helpers. */
|
|
1090
|
+
var nodeUtil = function() {
|
|
1091
|
+
try {
|
|
1092
|
+
var types = freeModule$1 && freeModule$1.require && freeModule$1.require("util").types;
|
|
1093
|
+
if (types) return types;
|
|
1094
|
+
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
1095
|
+
} catch (e) {}
|
|
1096
|
+
}();
|
|
1097
|
+
//#endregion
|
|
1098
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.js
|
|
1099
|
+
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
1430
1100
|
/**
|
|
1431
|
-
*
|
|
1432
|
-
* and `undefined` values. The sign of `-0` is preserved.
|
|
1101
|
+
* Checks if `value` is classified as a typed array.
|
|
1433
1102
|
*
|
|
1434
1103
|
* @static
|
|
1435
1104
|
* @memberOf _
|
|
1436
|
-
* @since
|
|
1105
|
+
* @since 3.0.0
|
|
1437
1106
|
* @category Lang
|
|
1438
|
-
* @param {*} value The value to
|
|
1439
|
-
* @returns {
|
|
1107
|
+
* @param {*} value The value to check.
|
|
1108
|
+
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
1440
1109
|
* @example
|
|
1441
1110
|
*
|
|
1442
|
-
* _.
|
|
1443
|
-
* // =>
|
|
1444
|
-
*
|
|
1445
|
-
* _.toString(-0);
|
|
1446
|
-
* // => '-0'
|
|
1111
|
+
* _.isTypedArray(new Uint8Array);
|
|
1112
|
+
* // => true
|
|
1447
1113
|
*
|
|
1448
|
-
* _.
|
|
1449
|
-
* // =>
|
|
1114
|
+
* _.isTypedArray([]);
|
|
1115
|
+
* // => false
|
|
1450
1116
|
*/
|
|
1451
|
-
|
|
1452
|
-
return value == null ? "" : baseToString(value);
|
|
1453
|
-
}
|
|
1117
|
+
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
1454
1118
|
//#endregion
|
|
1455
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1119
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.js
|
|
1120
|
+
/** Used to check objects for own properties. */
|
|
1121
|
+
var hasOwnProperty$3 = Object.prototype.hasOwnProperty;
|
|
1456
1122
|
/**
|
|
1457
|
-
*
|
|
1123
|
+
* Creates an array of the enumerable property names of the array-like `value`.
|
|
1458
1124
|
*
|
|
1459
1125
|
* @private
|
|
1460
|
-
* @param {*} value The value to
|
|
1461
|
-
* @param {
|
|
1462
|
-
* @returns {Array} Returns the
|
|
1126
|
+
* @param {*} value The value to query.
|
|
1127
|
+
* @param {boolean} inherited Specify returning inherited property names.
|
|
1128
|
+
* @returns {Array} Returns the array of property names.
|
|
1463
1129
|
*/
|
|
1464
|
-
function
|
|
1465
|
-
|
|
1466
|
-
|
|
1130
|
+
function arrayLikeKeys(value, inherited) {
|
|
1131
|
+
var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
1132
|
+
for (var key in value) if ((inherited || hasOwnProperty$3.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) result.push(key);
|
|
1133
|
+
return result;
|
|
1467
1134
|
}
|
|
1468
1135
|
//#endregion
|
|
1469
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1470
|
-
/** Used
|
|
1471
|
-
var
|
|
1136
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.js
|
|
1137
|
+
/** Used for built-in method references. */
|
|
1138
|
+
var objectProto = Object.prototype;
|
|
1472
1139
|
/**
|
|
1473
|
-
*
|
|
1140
|
+
* Checks if `value` is likely a prototype object.
|
|
1474
1141
|
*
|
|
1475
1142
|
* @private
|
|
1476
|
-
* @param {*} value The value to
|
|
1477
|
-
* @returns {
|
|
1143
|
+
* @param {*} value The value to check.
|
|
1144
|
+
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
1478
1145
|
*/
|
|
1479
|
-
function
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
1146
|
+
function isPrototype(value) {
|
|
1147
|
+
var Ctor = value && value.constructor;
|
|
1148
|
+
return value === (typeof Ctor == "function" && Ctor.prototype || objectProto);
|
|
1483
1149
|
}
|
|
1484
1150
|
//#endregion
|
|
1485
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1151
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.js
|
|
1486
1152
|
/**
|
|
1487
|
-
*
|
|
1153
|
+
* Creates a unary function that invokes `func` with its argument transformed.
|
|
1488
1154
|
*
|
|
1489
1155
|
* @private
|
|
1490
|
-
* @param {
|
|
1491
|
-
* @param {
|
|
1492
|
-
* @returns {
|
|
1156
|
+
* @param {Function} func The function to wrap.
|
|
1157
|
+
* @param {Function} transform The argument transform.
|
|
1158
|
+
* @returns {Function} Returns the new function.
|
|
1493
1159
|
*/
|
|
1494
|
-
function
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1160
|
+
function overArg(func, transform) {
|
|
1161
|
+
return function(arg) {
|
|
1162
|
+
return func(transform(arg));
|
|
1163
|
+
};
|
|
1498
1164
|
}
|
|
1499
1165
|
//#endregion
|
|
1500
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1501
|
-
|
|
1502
|
-
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
1166
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.js
|
|
1167
|
+
var nativeKeys = overArg(Object.keys, Object);
|
|
1503
1168
|
//#endregion
|
|
1504
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1169
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.js
|
|
1170
|
+
/** Used to check objects for own properties. */
|
|
1171
|
+
var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
|
|
1505
1172
|
/**
|
|
1506
|
-
*
|
|
1173
|
+
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
|
1507
1174
|
*
|
|
1508
1175
|
* @private
|
|
1509
|
-
* @
|
|
1510
|
-
* @
|
|
1176
|
+
* @param {Object} object The object to query.
|
|
1177
|
+
* @returns {Array} Returns the array of property names.
|
|
1511
1178
|
*/
|
|
1512
|
-
function
|
|
1513
|
-
|
|
1514
|
-
|
|
1179
|
+
function baseKeys(object) {
|
|
1180
|
+
if (!isPrototype(object)) return nativeKeys(object);
|
|
1181
|
+
var result = [];
|
|
1182
|
+
for (var key in Object(object)) if (hasOwnProperty$2.call(object, key) && key != "constructor") result.push(key);
|
|
1183
|
+
return result;
|
|
1515
1184
|
}
|
|
1516
1185
|
//#endregion
|
|
1517
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1186
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.js
|
|
1518
1187
|
/**
|
|
1519
|
-
*
|
|
1188
|
+
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
1189
|
+
* not a function and has a `value.length` that's an integer greater than or
|
|
1190
|
+
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
|
1520
1191
|
*
|
|
1521
|
-
* @
|
|
1522
|
-
* @
|
|
1523
|
-
* @
|
|
1524
|
-
* @
|
|
1525
|
-
* @
|
|
1192
|
+
* @static
|
|
1193
|
+
* @memberOf _
|
|
1194
|
+
* @since 4.0.0
|
|
1195
|
+
* @category Lang
|
|
1196
|
+
* @param {*} value The value to check.
|
|
1197
|
+
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
|
1198
|
+
* @example
|
|
1199
|
+
*
|
|
1200
|
+
* _.isArrayLike([1, 2, 3]);
|
|
1201
|
+
* // => true
|
|
1202
|
+
*
|
|
1203
|
+
* _.isArrayLike(document.body.children);
|
|
1204
|
+
* // => true
|
|
1205
|
+
*
|
|
1206
|
+
* _.isArrayLike('abc');
|
|
1207
|
+
* // => true
|
|
1208
|
+
*
|
|
1209
|
+
* _.isArrayLike(_.noop);
|
|
1210
|
+
* // => false
|
|
1526
1211
|
*/
|
|
1527
|
-
function
|
|
1528
|
-
|
|
1529
|
-
this.size = data.size;
|
|
1530
|
-
return result;
|
|
1212
|
+
function isArrayLike(value) {
|
|
1213
|
+
return value != null && isLength(value.length) && !isFunction(value);
|
|
1531
1214
|
}
|
|
1532
1215
|
//#endregion
|
|
1533
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1216
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.js
|
|
1534
1217
|
/**
|
|
1535
|
-
*
|
|
1218
|
+
* Creates an array of the own enumerable property names of `object`.
|
|
1536
1219
|
*
|
|
1537
|
-
*
|
|
1538
|
-
*
|
|
1539
|
-
*
|
|
1540
|
-
*
|
|
1541
|
-
* @
|
|
1220
|
+
* **Note:** Non-object values are coerced to objects. See the
|
|
1221
|
+
* [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
1222
|
+
* for more details.
|
|
1223
|
+
*
|
|
1224
|
+
* @static
|
|
1225
|
+
* @since 0.1.0
|
|
1226
|
+
* @memberOf _
|
|
1227
|
+
* @category Object
|
|
1228
|
+
* @param {Object} object The object to query.
|
|
1229
|
+
* @returns {Array} Returns the array of property names.
|
|
1230
|
+
* @example
|
|
1231
|
+
*
|
|
1232
|
+
* function Foo() {
|
|
1233
|
+
* this.a = 1;
|
|
1234
|
+
* this.b = 2;
|
|
1235
|
+
* }
|
|
1236
|
+
*
|
|
1237
|
+
* Foo.prototype.c = 3;
|
|
1238
|
+
*
|
|
1239
|
+
* _.keys(new Foo);
|
|
1240
|
+
* // => ['a', 'b'] (iteration order is not guaranteed)
|
|
1241
|
+
*
|
|
1242
|
+
* _.keys('hi');
|
|
1243
|
+
* // => ['0', '1']
|
|
1542
1244
|
*/
|
|
1543
|
-
function
|
|
1544
|
-
return
|
|
1245
|
+
function keys(object) {
|
|
1246
|
+
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
1545
1247
|
}
|
|
1546
1248
|
//#endregion
|
|
1547
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1249
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssign.js
|
|
1548
1250
|
/**
|
|
1549
|
-
*
|
|
1251
|
+
* The base implementation of `_.assign` without support for multiple sources
|
|
1252
|
+
* or `customizer` functions.
|
|
1550
1253
|
*
|
|
1551
1254
|
* @private
|
|
1552
|
-
* @
|
|
1553
|
-
* @
|
|
1554
|
-
* @
|
|
1555
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1255
|
+
* @param {Object} object The destination object.
|
|
1256
|
+
* @param {Object} source The source object.
|
|
1257
|
+
* @returns {Object} Returns `object`.
|
|
1556
1258
|
*/
|
|
1557
|
-
function
|
|
1558
|
-
return
|
|
1259
|
+
function baseAssign(object, source) {
|
|
1260
|
+
return object && copyObject(source, keys(source), object);
|
|
1559
1261
|
}
|
|
1560
1262
|
//#endregion
|
|
1561
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1562
|
-
/** Used as the size to enable large array optimizations. */
|
|
1563
|
-
var LARGE_ARRAY_SIZE = 200;
|
|
1263
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeysIn.js
|
|
1564
1264
|
/**
|
|
1565
|
-
*
|
|
1265
|
+
* This function is like
|
|
1266
|
+
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
1267
|
+
* except that it includes inherited enumerable properties.
|
|
1566
1268
|
*
|
|
1567
1269
|
* @private
|
|
1568
|
-
* @
|
|
1569
|
-
* @
|
|
1570
|
-
* @param {string} key The key of the value to set.
|
|
1571
|
-
* @param {*} value The value to set.
|
|
1572
|
-
* @returns {Object} Returns the stack cache instance.
|
|
1270
|
+
* @param {Object} object The object to query.
|
|
1271
|
+
* @returns {Array} Returns the array of property names.
|
|
1573
1272
|
*/
|
|
1574
|
-
function
|
|
1575
|
-
var
|
|
1576
|
-
if (
|
|
1577
|
-
|
|
1578
|
-
if (!Map$1 || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
1579
|
-
pairs.push([key, value]);
|
|
1580
|
-
this.size = ++data.size;
|
|
1581
|
-
return this;
|
|
1582
|
-
}
|
|
1583
|
-
data = this.__data__ = new MapCache(pairs);
|
|
1584
|
-
}
|
|
1585
|
-
data.set(key, value);
|
|
1586
|
-
this.size = data.size;
|
|
1587
|
-
return this;
|
|
1273
|
+
function nativeKeysIn(object) {
|
|
1274
|
+
var result = [];
|
|
1275
|
+
if (object != null) for (var key in Object(object)) result.push(key);
|
|
1276
|
+
return result;
|
|
1588
1277
|
}
|
|
1589
1278
|
//#endregion
|
|
1590
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1279
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeysIn.js
|
|
1280
|
+
/** Used to check objects for own properties. */
|
|
1281
|
+
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
1591
1282
|
/**
|
|
1592
|
-
*
|
|
1283
|
+
* The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
|
|
1593
1284
|
*
|
|
1594
1285
|
* @private
|
|
1595
|
-
* @
|
|
1596
|
-
* @
|
|
1286
|
+
* @param {Object} object The object to query.
|
|
1287
|
+
* @returns {Array} Returns the array of property names.
|
|
1597
1288
|
*/
|
|
1598
|
-
function
|
|
1599
|
-
|
|
1600
|
-
|
|
1289
|
+
function baseKeysIn(object) {
|
|
1290
|
+
if (!isObject$1(object)) return nativeKeysIn(object);
|
|
1291
|
+
var isProto = isPrototype(object), result = [];
|
|
1292
|
+
for (var key in object) if (!(key == "constructor" && (isProto || !hasOwnProperty$1.call(object, key)))) result.push(key);
|
|
1293
|
+
return result;
|
|
1601
1294
|
}
|
|
1602
|
-
Stack.prototype.clear = stackClear;
|
|
1603
|
-
Stack.prototype["delete"] = stackDelete;
|
|
1604
|
-
Stack.prototype.get = stackGet;
|
|
1605
|
-
Stack.prototype.has = stackHas;
|
|
1606
|
-
Stack.prototype.set = stackSet;
|
|
1607
1295
|
//#endregion
|
|
1608
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1296
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keysIn.js
|
|
1609
1297
|
/**
|
|
1610
|
-
*
|
|
1611
|
-
* or `customizer` functions.
|
|
1298
|
+
* Creates an array of the own and inherited enumerable property names of `object`.
|
|
1612
1299
|
*
|
|
1613
|
-
*
|
|
1614
|
-
*
|
|
1615
|
-
* @
|
|
1616
|
-
* @
|
|
1300
|
+
* **Note:** Non-object values are coerced to objects.
|
|
1301
|
+
*
|
|
1302
|
+
* @static
|
|
1303
|
+
* @memberOf _
|
|
1304
|
+
* @since 3.0.0
|
|
1305
|
+
* @category Object
|
|
1306
|
+
* @param {Object} object The object to query.
|
|
1307
|
+
* @returns {Array} Returns the array of property names.
|
|
1308
|
+
* @example
|
|
1309
|
+
*
|
|
1310
|
+
* function Foo() {
|
|
1311
|
+
* this.a = 1;
|
|
1312
|
+
* this.b = 2;
|
|
1313
|
+
* }
|
|
1314
|
+
*
|
|
1315
|
+
* Foo.prototype.c = 3;
|
|
1316
|
+
*
|
|
1317
|
+
* _.keysIn(new Foo);
|
|
1318
|
+
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
|
|
1617
1319
|
*/
|
|
1618
|
-
function
|
|
1619
|
-
return object
|
|
1320
|
+
function keysIn(object) {
|
|
1321
|
+
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
1620
1322
|
}
|
|
1621
1323
|
//#endregion
|
|
1622
1324
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignIn.js
|
|
@@ -1655,6 +1357,22 @@
|
|
|
1655
1357
|
return result;
|
|
1656
1358
|
}
|
|
1657
1359
|
//#endregion
|
|
1360
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyArray.js
|
|
1361
|
+
/**
|
|
1362
|
+
* Copies the values of `source` to `array`.
|
|
1363
|
+
*
|
|
1364
|
+
* @private
|
|
1365
|
+
* @param {Array} source The array to copy values from.
|
|
1366
|
+
* @param {Array} [array=[]] The array to copy values to.
|
|
1367
|
+
* @returns {Array} Returns `array`.
|
|
1368
|
+
*/
|
|
1369
|
+
function copyArray(source, array) {
|
|
1370
|
+
var index = -1, length = source.length;
|
|
1371
|
+
array || (array = Array(length));
|
|
1372
|
+
while (++index < length) array[index] = source[index];
|
|
1373
|
+
return array;
|
|
1374
|
+
}
|
|
1375
|
+
//#endregion
|
|
1658
1376
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.js
|
|
1659
1377
|
/**
|
|
1660
1378
|
* A specialized version of `_.filter` for arrays without support for
|
|
@@ -1729,6 +1447,25 @@
|
|
|
1729
1447
|
return copyObject(source, getSymbols(source), object);
|
|
1730
1448
|
}
|
|
1731
1449
|
//#endregion
|
|
1450
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.js
|
|
1451
|
+
/**
|
|
1452
|
+
* Appends the elements of `values` to `array`.
|
|
1453
|
+
*
|
|
1454
|
+
* @private
|
|
1455
|
+
* @param {Array} array The array to modify.
|
|
1456
|
+
* @param {Array} values The values to append.
|
|
1457
|
+
* @returns {Array} Returns `array`.
|
|
1458
|
+
*/
|
|
1459
|
+
function arrayPush(array, values) {
|
|
1460
|
+
var index = -1, length = values.length, offset = array.length;
|
|
1461
|
+
while (++index < length) array[offset + index] = values[index];
|
|
1462
|
+
return array;
|
|
1463
|
+
}
|
|
1464
|
+
//#endregion
|
|
1465
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.js
|
|
1466
|
+
/** Built-in value references. */
|
|
1467
|
+
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
1468
|
+
//#endregion
|
|
1732
1469
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbolsIn.js
|
|
1733
1470
|
/**
|
|
1734
1471
|
* Creates an array of the own and inherited enumerable symbols of `object`.
|
|
@@ -1810,6 +1547,9 @@
|
|
|
1810
1547
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.js
|
|
1811
1548
|
var Set$1 = getNative(root, "Set");
|
|
1812
1549
|
//#endregion
|
|
1550
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.js
|
|
1551
|
+
var WeakMap = getNative(root, "WeakMap");
|
|
1552
|
+
//#endregion
|
|
1813
1553
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.js
|
|
1814
1554
|
/** `Object#toString` result references. */
|
|
1815
1555
|
var mapTag$3 = "[object Map]", objectTag$1 = "[object Object]", promiseTag = "[object Promise]", setTag$3 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
|
|
@@ -1906,7 +1646,7 @@
|
|
|
1906
1646
|
//#endregion
|
|
1907
1647
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneSymbol.js
|
|
1908
1648
|
/** Used to convert symbols to primitives and strings. */
|
|
1909
|
-
var symbolProto = Symbol ? Symbol.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
1649
|
+
var symbolProto$1 = Symbol ? Symbol.prototype : void 0, symbolValueOf = symbolProto$1 ? symbolProto$1.valueOf : void 0;
|
|
1910
1650
|
/**
|
|
1911
1651
|
* Creates a clone of the `symbol` object.
|
|
1912
1652
|
*
|
|
@@ -1934,7 +1674,7 @@
|
|
|
1934
1674
|
//#endregion
|
|
1935
1675
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneByTag.js
|
|
1936
1676
|
/** `Object#toString` result references. */
|
|
1937
|
-
var boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", regexpTag$1 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", symbolTag$
|
|
1677
|
+
var boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", regexpTag$1 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", symbolTag$2 = "[object Symbol]";
|
|
1938
1678
|
var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag$1 = "[object Float32Array]", float64Tag$1 = "[object Float64Array]", int8Tag$1 = "[object Int8Array]", int16Tag$1 = "[object Int16Array]", int32Tag$1 = "[object Int32Array]", uint8Tag$1 = "[object Uint8Array]", uint8ClampedTag$1 = "[object Uint8ClampedArray]", uint16Tag$1 = "[object Uint16Array]", uint32Tag$1 = "[object Uint32Array]";
|
|
1939
1679
|
/**
|
|
1940
1680
|
* Initializes an object clone based on its `toStringTag`.
|
|
@@ -1969,10 +1709,33 @@
|
|
|
1969
1709
|
case stringTag$1: return new Ctor(object);
|
|
1970
1710
|
case regexpTag$1: return cloneRegExp(object);
|
|
1971
1711
|
case setTag$2: return new Ctor();
|
|
1972
|
-
case symbolTag$
|
|
1712
|
+
case symbolTag$2: return cloneSymbol(object);
|
|
1973
1713
|
}
|
|
1974
1714
|
}
|
|
1975
1715
|
//#endregion
|
|
1716
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseCreate.js
|
|
1717
|
+
/** Built-in value references. */
|
|
1718
|
+
var objectCreate = Object.create;
|
|
1719
|
+
/**
|
|
1720
|
+
* The base implementation of `_.create` without support for assigning
|
|
1721
|
+
* properties to the created object.
|
|
1722
|
+
*
|
|
1723
|
+
* @private
|
|
1724
|
+
* @param {Object} proto The object to inherit from.
|
|
1725
|
+
* @returns {Object} Returns the new object.
|
|
1726
|
+
*/
|
|
1727
|
+
var baseCreate = function() {
|
|
1728
|
+
function object() {}
|
|
1729
|
+
return function(proto) {
|
|
1730
|
+
if (!isObject$1(proto)) return {};
|
|
1731
|
+
if (objectCreate) return objectCreate(proto);
|
|
1732
|
+
object.prototype = proto;
|
|
1733
|
+
var result = new object();
|
|
1734
|
+
object.prototype = void 0;
|
|
1735
|
+
return result;
|
|
1736
|
+
};
|
|
1737
|
+
}();
|
|
1738
|
+
//#endregion
|
|
1976
1739
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneObject.js
|
|
1977
1740
|
/**
|
|
1978
1741
|
* Initializes an object clone.
|
|
@@ -2059,11 +1822,11 @@
|
|
|
2059
1822
|
/** Used to compose bitmasks for cloning. */
|
|
2060
1823
|
var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4;
|
|
2061
1824
|
/** `Object#toString` result references. */
|
|
2062
|
-
var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", weakMapTag = "[object WeakMap]";
|
|
1825
|
+
var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag$1 = "[object Symbol]", weakMapTag = "[object WeakMap]";
|
|
2063
1826
|
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[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]";
|
|
2064
1827
|
/** Used to identify `toStringTag` values supported by `_.clone`. */
|
|
2065
1828
|
var cloneableTags = {};
|
|
2066
|
-
cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
1829
|
+
cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag$1] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
2067
1830
|
cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
|
|
2068
1831
|
/**
|
|
2069
1832
|
* The base implementation of `_.clone` and `_.cloneDeep` which tracks
|
|
@@ -2147,6 +1910,243 @@
|
|
|
2147
1910
|
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
2148
1911
|
}
|
|
2149
1912
|
//#endregion
|
|
1913
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js
|
|
1914
|
+
/** `Object#toString` result references. */
|
|
1915
|
+
var symbolTag = "[object Symbol]";
|
|
1916
|
+
/**
|
|
1917
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
1918
|
+
*
|
|
1919
|
+
* @static
|
|
1920
|
+
* @memberOf _
|
|
1921
|
+
* @since 4.0.0
|
|
1922
|
+
* @category Lang
|
|
1923
|
+
* @param {*} value The value to check.
|
|
1924
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
1925
|
+
* @example
|
|
1926
|
+
*
|
|
1927
|
+
* _.isSymbol(Symbol.iterator);
|
|
1928
|
+
* // => true
|
|
1929
|
+
*
|
|
1930
|
+
* _.isSymbol('abc');
|
|
1931
|
+
* // => false
|
|
1932
|
+
*/
|
|
1933
|
+
function isSymbol(value) {
|
|
1934
|
+
return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag;
|
|
1935
|
+
}
|
|
1936
|
+
//#endregion
|
|
1937
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKey.js
|
|
1938
|
+
/** Used to match property names within property paths. */
|
|
1939
|
+
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
|
|
1940
|
+
/**
|
|
1941
|
+
* Checks if `value` is a property name and not a property path.
|
|
1942
|
+
*
|
|
1943
|
+
* @private
|
|
1944
|
+
* @param {*} value The value to check.
|
|
1945
|
+
* @param {Object} [object] The object to query keys on.
|
|
1946
|
+
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
|
|
1947
|
+
*/
|
|
1948
|
+
function isKey(value, object) {
|
|
1949
|
+
if (isArray(value)) return false;
|
|
1950
|
+
var type = typeof value;
|
|
1951
|
+
if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) return true;
|
|
1952
|
+
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
|
|
1953
|
+
}
|
|
1954
|
+
//#endregion
|
|
1955
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/memoize.js
|
|
1956
|
+
/** Error message constants. */
|
|
1957
|
+
var FUNC_ERROR_TEXT = "Expected a function";
|
|
1958
|
+
/**
|
|
1959
|
+
* Creates a function that memoizes the result of `func`. If `resolver` is
|
|
1960
|
+
* provided, it determines the cache key for storing the result based on the
|
|
1961
|
+
* arguments provided to the memoized function. By default, the first argument
|
|
1962
|
+
* provided to the memoized function is used as the map cache key. The `func`
|
|
1963
|
+
* is invoked with the `this` binding of the memoized function.
|
|
1964
|
+
*
|
|
1965
|
+
* **Note:** The cache is exposed as the `cache` property on the memoized
|
|
1966
|
+
* function. Its creation may be customized by replacing the `_.memoize.Cache`
|
|
1967
|
+
* constructor with one whose instances implement the
|
|
1968
|
+
* [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
|
|
1969
|
+
* method interface of `clear`, `delete`, `get`, `has`, and `set`.
|
|
1970
|
+
*
|
|
1971
|
+
* @static
|
|
1972
|
+
* @memberOf _
|
|
1973
|
+
* @since 0.1.0
|
|
1974
|
+
* @category Function
|
|
1975
|
+
* @param {Function} func The function to have its output memoized.
|
|
1976
|
+
* @param {Function} [resolver] The function to resolve the cache key.
|
|
1977
|
+
* @returns {Function} Returns the new memoized function.
|
|
1978
|
+
* @example
|
|
1979
|
+
*
|
|
1980
|
+
* var object = { 'a': 1, 'b': 2 };
|
|
1981
|
+
* var other = { 'c': 3, 'd': 4 };
|
|
1982
|
+
*
|
|
1983
|
+
* var values = _.memoize(_.values);
|
|
1984
|
+
* values(object);
|
|
1985
|
+
* // => [1, 2]
|
|
1986
|
+
*
|
|
1987
|
+
* values(other);
|
|
1988
|
+
* // => [3, 4]
|
|
1989
|
+
*
|
|
1990
|
+
* object.a = 2;
|
|
1991
|
+
* values(object);
|
|
1992
|
+
* // => [1, 2]
|
|
1993
|
+
*
|
|
1994
|
+
* // Modify the result cache.
|
|
1995
|
+
* values.cache.set(object, ['a', 'b']);
|
|
1996
|
+
* values(object);
|
|
1997
|
+
* // => ['a', 'b']
|
|
1998
|
+
*
|
|
1999
|
+
* // Replace `_.memoize.Cache`.
|
|
2000
|
+
* _.memoize.Cache = WeakMap;
|
|
2001
|
+
*/
|
|
2002
|
+
function memoize(func, resolver) {
|
|
2003
|
+
if (typeof func != "function" || resolver != null && typeof resolver != "function") throw new TypeError(FUNC_ERROR_TEXT);
|
|
2004
|
+
var memoized = function() {
|
|
2005
|
+
var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
|
|
2006
|
+
if (cache.has(key)) return cache.get(key);
|
|
2007
|
+
var result = func.apply(this, args);
|
|
2008
|
+
memoized.cache = cache.set(key, result) || cache;
|
|
2009
|
+
return result;
|
|
2010
|
+
};
|
|
2011
|
+
memoized.cache = new (memoize.Cache || MapCache)();
|
|
2012
|
+
return memoized;
|
|
2013
|
+
}
|
|
2014
|
+
memoize.Cache = MapCache;
|
|
2015
|
+
//#endregion
|
|
2016
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_memoizeCapped.js
|
|
2017
|
+
/** Used as the maximum memoize cache size. */
|
|
2018
|
+
var MAX_MEMOIZE_SIZE = 500;
|
|
2019
|
+
/**
|
|
2020
|
+
* A specialized version of `_.memoize` which clears the memoized function's
|
|
2021
|
+
* cache when it exceeds `MAX_MEMOIZE_SIZE`.
|
|
2022
|
+
*
|
|
2023
|
+
* @private
|
|
2024
|
+
* @param {Function} func The function to have its output memoized.
|
|
2025
|
+
* @returns {Function} Returns the new memoized function.
|
|
2026
|
+
*/
|
|
2027
|
+
function memoizeCapped(func) {
|
|
2028
|
+
var result = memoize(func, function(key) {
|
|
2029
|
+
if (cache.size === MAX_MEMOIZE_SIZE) cache.clear();
|
|
2030
|
+
return key;
|
|
2031
|
+
});
|
|
2032
|
+
var cache = result.cache;
|
|
2033
|
+
return result;
|
|
2034
|
+
}
|
|
2035
|
+
//#endregion
|
|
2036
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stringToPath.js
|
|
2037
|
+
/** Used to match property names within property paths. */
|
|
2038
|
+
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
2039
|
+
/** Used to match backslashes in property paths. */
|
|
2040
|
+
var reEscapeChar = /\\(\\)?/g;
|
|
2041
|
+
/**
|
|
2042
|
+
* Converts `string` to a property path array.
|
|
2043
|
+
*
|
|
2044
|
+
* @private
|
|
2045
|
+
* @param {string} string The string to convert.
|
|
2046
|
+
* @returns {Array} Returns the property path array.
|
|
2047
|
+
*/
|
|
2048
|
+
var stringToPath = memoizeCapped(function(string) {
|
|
2049
|
+
var result = [];
|
|
2050
|
+
if (string.charCodeAt(0) === 46) result.push("");
|
|
2051
|
+
string.replace(rePropName, function(match, number, quote, subString) {
|
|
2052
|
+
result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match);
|
|
2053
|
+
});
|
|
2054
|
+
return result;
|
|
2055
|
+
});
|
|
2056
|
+
//#endregion
|
|
2057
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayMap.js
|
|
2058
|
+
/**
|
|
2059
|
+
* A specialized version of `_.map` for arrays without support for iteratee
|
|
2060
|
+
* shorthands.
|
|
2061
|
+
*
|
|
2062
|
+
* @private
|
|
2063
|
+
* @param {Array} [array] The array to iterate over.
|
|
2064
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
2065
|
+
* @returns {Array} Returns the new mapped array.
|
|
2066
|
+
*/
|
|
2067
|
+
function arrayMap(array, iteratee) {
|
|
2068
|
+
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
2069
|
+
while (++index < length) result[index] = iteratee(array[index], index, array);
|
|
2070
|
+
return result;
|
|
2071
|
+
}
|
|
2072
|
+
//#endregion
|
|
2073
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseToString.js
|
|
2074
|
+
/** Used as references for various `Number` constants. */
|
|
2075
|
+
var INFINITY$1 = Infinity;
|
|
2076
|
+
/** Used to convert symbols to primitives and strings. */
|
|
2077
|
+
var symbolProto = Symbol ? Symbol.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
|
|
2078
|
+
/**
|
|
2079
|
+
* The base implementation of `_.toString` which doesn't convert nullish
|
|
2080
|
+
* values to empty strings.
|
|
2081
|
+
*
|
|
2082
|
+
* @private
|
|
2083
|
+
* @param {*} value The value to process.
|
|
2084
|
+
* @returns {string} Returns the string.
|
|
2085
|
+
*/
|
|
2086
|
+
function baseToString(value) {
|
|
2087
|
+
if (typeof value == "string") return value;
|
|
2088
|
+
if (isArray(value)) return arrayMap(value, baseToString) + "";
|
|
2089
|
+
if (isSymbol(value)) return symbolToString ? symbolToString.call(value) : "";
|
|
2090
|
+
var result = value + "";
|
|
2091
|
+
return result == "0" && 1 / value == -INFINITY$1 ? "-0" : result;
|
|
2092
|
+
}
|
|
2093
|
+
//#endregion
|
|
2094
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toString.js
|
|
2095
|
+
/**
|
|
2096
|
+
* Converts `value` to a string. An empty string is returned for `null`
|
|
2097
|
+
* and `undefined` values. The sign of `-0` is preserved.
|
|
2098
|
+
*
|
|
2099
|
+
* @static
|
|
2100
|
+
* @memberOf _
|
|
2101
|
+
* @since 4.0.0
|
|
2102
|
+
* @category Lang
|
|
2103
|
+
* @param {*} value The value to convert.
|
|
2104
|
+
* @returns {string} Returns the converted string.
|
|
2105
|
+
* @example
|
|
2106
|
+
*
|
|
2107
|
+
* _.toString(null);
|
|
2108
|
+
* // => ''
|
|
2109
|
+
*
|
|
2110
|
+
* _.toString(-0);
|
|
2111
|
+
* // => '-0'
|
|
2112
|
+
*
|
|
2113
|
+
* _.toString([1, 2, 3]);
|
|
2114
|
+
* // => '1,2,3'
|
|
2115
|
+
*/
|
|
2116
|
+
function toString(value) {
|
|
2117
|
+
return value == null ? "" : baseToString(value);
|
|
2118
|
+
}
|
|
2119
|
+
//#endregion
|
|
2120
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castPath.js
|
|
2121
|
+
/**
|
|
2122
|
+
* Casts `value` to a path array if it's not one.
|
|
2123
|
+
*
|
|
2124
|
+
* @private
|
|
2125
|
+
* @param {*} value The value to inspect.
|
|
2126
|
+
* @param {Object} [object] The object to query keys on.
|
|
2127
|
+
* @returns {Array} Returns the cast property path array.
|
|
2128
|
+
*/
|
|
2129
|
+
function castPath(value, object) {
|
|
2130
|
+
if (isArray(value)) return value;
|
|
2131
|
+
return isKey(value, object) ? [value] : stringToPath(toString(value));
|
|
2132
|
+
}
|
|
2133
|
+
//#endregion
|
|
2134
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toKey.js
|
|
2135
|
+
/** Used as references for various `Number` constants. */
|
|
2136
|
+
var INFINITY = Infinity;
|
|
2137
|
+
/**
|
|
2138
|
+
* Converts `value` to a string key if it's not a string or symbol.
|
|
2139
|
+
*
|
|
2140
|
+
* @private
|
|
2141
|
+
* @param {*} value The value to inspect.
|
|
2142
|
+
* @returns {string|symbol} Returns the key.
|
|
2143
|
+
*/
|
|
2144
|
+
function toKey(value) {
|
|
2145
|
+
if (typeof value == "string" || isSymbol(value)) return value;
|
|
2146
|
+
var result = value + "";
|
|
2147
|
+
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
2148
|
+
}
|
|
2149
|
+
//#endregion
|
|
2150
2150
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSet.js
|
|
2151
2151
|
/**
|
|
2152
2152
|
* The base implementation of `_.set`.
|