@tmagic/utils 1.8.0-beta.0 → 1.8.0-beta.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/es/index.js +16 -15
- package/dist/tmagic-utils.umd.cjs +1148 -1147
- package/package.json +2 -2
- package/src/index.ts +16 -12
- package/types/index.d.ts +7 -3
|
@@ -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,831 +453,111 @@
|
|
|
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.
|
|
903
|
-
*
|
|
904
|
-
* @private
|
|
905
|
-
* @param {Object} object The object to query.
|
|
906
|
-
* @returns {Array} Returns the array of property names.
|
|
907
|
-
*/
|
|
908
|
-
function baseKeysIn(object) {
|
|
909
|
-
if (!isObject$1(object)) return nativeKeysIn(object);
|
|
910
|
-
var isProto = isPrototype(object), result = [];
|
|
911
|
-
for (var key in object) if (!(key == "constructor" && (isProto || !hasOwnProperty$3.call(object, key)))) result.push(key);
|
|
912
|
-
return result;
|
|
913
|
-
}
|
|
914
|
-
//#endregion
|
|
915
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keysIn.js
|
|
916
|
-
/**
|
|
917
|
-
* Creates an array of the own and inherited enumerable property names of `object`.
|
|
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;
|
|
935
|
-
*
|
|
936
|
-
* _.keysIn(new Foo);
|
|
937
|
-
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
|
|
938
|
-
*/
|
|
939
|
-
function keysIn(object) {
|
|
940
|
-
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
941
|
-
}
|
|
942
|
-
//#endregion
|
|
943
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKey.js
|
|
944
|
-
/** Used to match property names within property paths. */
|
|
945
|
-
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
|
|
946
|
-
/**
|
|
947
|
-
* Checks if `value` is a property name and not a property path.
|
|
948
|
-
*
|
|
949
|
-
* @private
|
|
950
|
-
* @param {*} value The value to check.
|
|
951
|
-
* @param {Object} [object] The object to query keys on.
|
|
952
|
-
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
|
|
953
|
-
*/
|
|
954
|
-
function isKey(value, object) {
|
|
955
|
-
if (isArray(value)) return false;
|
|
956
|
-
var type = typeof value;
|
|
957
|
-
if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) return true;
|
|
958
|
-
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
|
|
959
|
-
}
|
|
960
|
-
//#endregion
|
|
961
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.js
|
|
962
|
-
var nativeCreate = getNative(Object, "create");
|
|
963
|
-
//#endregion
|
|
964
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.js
|
|
965
|
-
/**
|
|
966
|
-
* Removes all key-value entries from the hash.
|
|
967
|
-
*
|
|
968
|
-
* @private
|
|
969
|
-
* @name clear
|
|
970
|
-
* @memberOf Hash
|
|
971
|
-
*/
|
|
972
|
-
function hashClear() {
|
|
973
|
-
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
974
|
-
this.size = 0;
|
|
975
|
-
}
|
|
976
|
-
//#endregion
|
|
977
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.js
|
|
978
|
-
/**
|
|
979
|
-
* Removes `key` and its value from the hash.
|
|
980
|
-
*
|
|
981
|
-
* @private
|
|
982
|
-
* @name delete
|
|
983
|
-
* @memberOf Hash
|
|
984
|
-
* @param {Object} hash The hash to modify.
|
|
985
|
-
* @param {string} key The key of the value to remove.
|
|
986
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
987
|
-
*/
|
|
988
|
-
function hashDelete(key) {
|
|
989
|
-
var result = this.has(key) && delete this.__data__[key];
|
|
990
|
-
this.size -= result ? 1 : 0;
|
|
991
|
-
return result;
|
|
992
|
-
}
|
|
993
|
-
//#endregion
|
|
994
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.js
|
|
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;
|
|
999
|
-
/**
|
|
1000
|
-
* Gets the hash value for `key`.
|
|
1001
|
-
*
|
|
1002
|
-
* @private
|
|
1003
|
-
* @name get
|
|
1004
|
-
* @memberOf Hash
|
|
1005
|
-
* @param {string} key The key of the value to get.
|
|
1006
|
-
* @returns {*} Returns the entry value.
|
|
1007
|
-
*/
|
|
1008
|
-
function hashGet(key) {
|
|
1009
|
-
var data = this.__data__;
|
|
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;
|
|
1015
|
-
}
|
|
1016
|
-
//#endregion
|
|
1017
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.js
|
|
1018
|
-
/** Used to check objects for own properties. */
|
|
1019
|
-
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
1020
|
-
/**
|
|
1021
|
-
* Checks if a hash value for `key` exists.
|
|
1022
|
-
*
|
|
1023
|
-
* @private
|
|
1024
|
-
* @name has
|
|
1025
|
-
* @memberOf Hash
|
|
1026
|
-
* @param {string} key The key of the entry to check.
|
|
1027
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1028
|
-
*/
|
|
1029
|
-
function hashHas(key) {
|
|
1030
|
-
var data = this.__data__;
|
|
1031
|
-
return nativeCreate ? data[key] !== void 0 : hasOwnProperty$1.call(data, key);
|
|
1032
|
-
}
|
|
1033
|
-
//#endregion
|
|
1034
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.js
|
|
1035
|
-
/** Used to stand-in for `undefined` hash values. */
|
|
1036
|
-
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
1037
|
-
/**
|
|
1038
|
-
* Sets the hash `key` to `value`.
|
|
1039
|
-
*
|
|
1040
|
-
* @private
|
|
1041
|
-
* @name set
|
|
1042
|
-
* @memberOf Hash
|
|
1043
|
-
* @param {string} key The key of the value to set.
|
|
1044
|
-
* @param {*} value The value to set.
|
|
1045
|
-
* @returns {Object} Returns the hash instance.
|
|
1046
|
-
*/
|
|
1047
|
-
function hashSet(key, value) {
|
|
1048
|
-
var data = this.__data__;
|
|
1049
|
-
this.size += this.has(key) ? 0 : 1;
|
|
1050
|
-
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
|
|
1051
|
-
return this;
|
|
1052
|
-
}
|
|
1053
|
-
//#endregion
|
|
1054
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.js
|
|
1055
|
-
/**
|
|
1056
|
-
* Creates a hash object.
|
|
1057
|
-
*
|
|
1058
|
-
* @private
|
|
1059
|
-
* @constructor
|
|
1060
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
1061
|
-
*/
|
|
1062
|
-
function Hash(entries) {
|
|
1063
|
-
var index = -1, length = entries == null ? 0 : entries.length;
|
|
1064
|
-
this.clear();
|
|
1065
|
-
while (++index < length) {
|
|
1066
|
-
var entry = entries[index];
|
|
1067
|
-
this.set(entry[0], entry[1]);
|
|
1068
|
-
}
|
|
1069
|
-
}
|
|
1070
|
-
Hash.prototype.clear = hashClear;
|
|
1071
|
-
Hash.prototype["delete"] = hashDelete;
|
|
1072
|
-
Hash.prototype.get = hashGet;
|
|
1073
|
-
Hash.prototype.has = hashHas;
|
|
1074
|
-
Hash.prototype.set = hashSet;
|
|
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
|
-
}
|
|
1088
|
-
//#endregion
|
|
1089
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.js
|
|
1090
|
-
/**
|
|
1091
|
-
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
1092
|
-
*
|
|
1093
|
-
* @private
|
|
1094
|
-
* @param {Array} array The array to inspect.
|
|
1095
|
-
* @param {*} key The key to search for.
|
|
1096
|
-
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
1097
|
-
*/
|
|
1098
|
-
function assocIndexOf(array, key) {
|
|
1099
|
-
var length = array.length;
|
|
1100
|
-
while (length--) if (eq(array[length][0], key)) return length;
|
|
1101
|
-
return -1;
|
|
1102
|
-
}
|
|
1103
|
-
//#endregion
|
|
1104
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.js
|
|
1105
|
-
/** Built-in value references. */
|
|
1106
|
-
var splice = Array.prototype.splice;
|
|
1107
|
-
/**
|
|
1108
|
-
* Removes `key` and its value from the list cache.
|
|
1109
|
-
*
|
|
1110
|
-
* @private
|
|
1111
|
-
* @name delete
|
|
1112
|
-
* @memberOf ListCache
|
|
1113
|
-
* @param {string} key The key of the value to remove.
|
|
1114
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1115
|
-
*/
|
|
1116
|
-
function listCacheDelete(key) {
|
|
1117
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
1118
|
-
if (index < 0) return false;
|
|
1119
|
-
if (index == data.length - 1) data.pop();
|
|
1120
|
-
else splice.call(data, index, 1);
|
|
1121
|
-
--this.size;
|
|
1122
|
-
return true;
|
|
1123
|
-
}
|
|
1124
|
-
//#endregion
|
|
1125
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.js
|
|
1126
|
-
/**
|
|
1127
|
-
* Gets the list cache value for `key`.
|
|
1128
|
-
*
|
|
1129
|
-
* @private
|
|
1130
|
-
* @name get
|
|
1131
|
-
* @memberOf ListCache
|
|
1132
|
-
* @param {string} key The key of the value to get.
|
|
1133
|
-
* @returns {*} Returns the entry value.
|
|
1134
|
-
*/
|
|
1135
|
-
function listCacheGet(key) {
|
|
1136
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
1137
|
-
return index < 0 ? void 0 : data[index][1];
|
|
1138
|
-
}
|
|
1139
|
-
//#endregion
|
|
1140
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.js
|
|
1141
|
-
/**
|
|
1142
|
-
* Checks if a list cache value for `key` exists.
|
|
1143
|
-
*
|
|
1144
|
-
* @private
|
|
1145
|
-
* @name has
|
|
1146
|
-
* @memberOf ListCache
|
|
1147
|
-
* @param {string} key The key of the entry to check.
|
|
1148
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1149
|
-
*/
|
|
1150
|
-
function listCacheHas(key) {
|
|
1151
|
-
return assocIndexOf(this.__data__, key) > -1;
|
|
1152
|
-
}
|
|
1153
|
-
//#endregion
|
|
1154
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.js
|
|
1155
|
-
/**
|
|
1156
|
-
* Sets the list cache `key` to `value`.
|
|
1157
|
-
*
|
|
1158
|
-
* @private
|
|
1159
|
-
* @name set
|
|
1160
|
-
* @memberOf ListCache
|
|
1161
|
-
* @param {string} key The key of the value to set.
|
|
1162
|
-
* @param {*} value The value to set.
|
|
1163
|
-
* @returns {Object} Returns the list cache instance.
|
|
1164
|
-
*/
|
|
1165
|
-
function listCacheSet(key, value) {
|
|
1166
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
1167
|
-
if (index < 0) {
|
|
1168
|
-
++this.size;
|
|
1169
|
-
data.push([key, value]);
|
|
1170
|
-
} else data[index][1] = value;
|
|
1171
|
-
return this;
|
|
1172
|
-
}
|
|
1173
|
-
//#endregion
|
|
1174
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.js
|
|
1175
|
-
/**
|
|
1176
|
-
* Creates an list cache object.
|
|
554
|
+
* Creates a hash object.
|
|
1177
555
|
*
|
|
1178
556
|
* @private
|
|
1179
557
|
* @constructor
|
|
1180
558
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
1181
559
|
*/
|
|
1182
|
-
function
|
|
560
|
+
function Hash(entries) {
|
|
1183
561
|
var index = -1, length = entries == null ? 0 : entries.length;
|
|
1184
562
|
this.clear();
|
|
1185
563
|
while (++index < length) {
|
|
@@ -1187,14 +565,11 @@
|
|
|
1187
565
|
this.set(entry[0], entry[1]);
|
|
1188
566
|
}
|
|
1189
567
|
}
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
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");
|
|
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;
|
|
1198
573
|
//#endregion
|
|
1199
574
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.js
|
|
1200
575
|
/**
|
|
@@ -1324,286 +699,552 @@
|
|
|
1324
699
|
MapCache.prototype.has = mapCacheHas;
|
|
1325
700
|
MapCache.prototype.set = mapCacheSet;
|
|
1326
701
|
//#endregion
|
|
1327
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1328
|
-
/**
|
|
1329
|
-
var
|
|
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;
|
|
1330
705
|
/**
|
|
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.
|
|
706
|
+
* Sets the stack `key` to `value`.
|
|
1336
707
|
*
|
|
1337
|
-
*
|
|
1338
|
-
*
|
|
1339
|
-
*
|
|
1340
|
-
*
|
|
1341
|
-
*
|
|
708
|
+
* @private
|
|
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.
|
|
714
|
+
*/
|
|
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;
|
|
729
|
+
}
|
|
730
|
+
//#endregion
|
|
731
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.js
|
|
732
|
+
/**
|
|
733
|
+
* Creates a stack cache object to store key-value pairs.
|
|
734
|
+
*
|
|
735
|
+
* @private
|
|
736
|
+
* @constructor
|
|
737
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
738
|
+
*/
|
|
739
|
+
function Stack(entries) {
|
|
740
|
+
var data = this.__data__ = new ListCache(entries);
|
|
741
|
+
this.size = data.size;
|
|
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;
|
|
748
|
+
//#endregion
|
|
749
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayEach.js
|
|
750
|
+
/**
|
|
751
|
+
* A specialized version of `_.forEach` for arrays without support for
|
|
752
|
+
* iteratee shorthands.
|
|
753
|
+
*
|
|
754
|
+
* @private
|
|
755
|
+
* @param {Array} [array] The array to iterate over.
|
|
756
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
757
|
+
* @returns {Array} Returns `array`.
|
|
758
|
+
*/
|
|
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;
|
|
763
|
+
}
|
|
764
|
+
//#endregion
|
|
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
|
|
775
|
+
/**
|
|
776
|
+
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
777
|
+
* value checks.
|
|
778
|
+
*
|
|
779
|
+
* @private
|
|
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.
|
|
783
|
+
*/
|
|
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;
|
|
792
|
+
}
|
|
793
|
+
//#endregion
|
|
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;
|
|
797
|
+
/**
|
|
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.
|
|
801
|
+
*
|
|
802
|
+
* @private
|
|
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.
|
|
806
|
+
*/
|
|
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);
|
|
810
|
+
}
|
|
811
|
+
//#endregion
|
|
812
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyObject.js
|
|
813
|
+
/**
|
|
814
|
+
* Copies properties of `source` to `object`.
|
|
815
|
+
*
|
|
816
|
+
* @private
|
|
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`.
|
|
822
|
+
*/
|
|
823
|
+
function copyObject(source, props, object, customizer) {
|
|
824
|
+
var isNew = !object;
|
|
825
|
+
object || (object = {});
|
|
826
|
+
var index = -1, length = props.length;
|
|
827
|
+
while (++index < length) {
|
|
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);
|
|
833
|
+
}
|
|
834
|
+
return object;
|
|
835
|
+
}
|
|
836
|
+
//#endregion
|
|
837
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.js
|
|
838
|
+
/**
|
|
839
|
+
* The base implementation of `_.times` without support for iteratee shorthands
|
|
840
|
+
* or max array length checks.
|
|
841
|
+
*
|
|
842
|
+
* @private
|
|
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.
|
|
846
|
+
*/
|
|
847
|
+
function baseTimes(n, iteratee) {
|
|
848
|
+
var index = -1, result = Array(n);
|
|
849
|
+
while (++index < n) result[index] = iteratee(index);
|
|
850
|
+
return result;
|
|
851
|
+
}
|
|
852
|
+
//#endregion
|
|
853
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js
|
|
854
|
+
/**
|
|
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".
|
|
857
|
+
*
|
|
858
|
+
* @static
|
|
859
|
+
* @memberOf _
|
|
860
|
+
* @since 4.0.0
|
|
861
|
+
* @category Lang
|
|
862
|
+
* @param {*} value The value to check.
|
|
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
|
|
877
|
+
*/
|
|
878
|
+
function isObjectLike(value) {
|
|
879
|
+
return value != null && typeof value == "object";
|
|
880
|
+
}
|
|
881
|
+
//#endregion
|
|
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]";
|
|
885
|
+
/**
|
|
886
|
+
* The base implementation of `_.isArguments`.
|
|
887
|
+
*
|
|
888
|
+
* @private
|
|
889
|
+
* @param {*} value The value to check.
|
|
890
|
+
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
891
|
+
*/
|
|
892
|
+
function baseIsArguments(value) {
|
|
893
|
+
return isObjectLike(value) && baseGetTag(value) == argsTag$2;
|
|
894
|
+
}
|
|
895
|
+
//#endregion
|
|
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;
|
|
903
|
+
/**
|
|
904
|
+
* Checks if `value` is likely an `arguments` object.
|
|
1342
905
|
*
|
|
1343
906
|
* @static
|
|
1344
907
|
* @memberOf _
|
|
1345
908
|
* @since 0.1.0
|
|
1346
|
-
* @category
|
|
1347
|
-
* @param {
|
|
1348
|
-
* @
|
|
1349
|
-
*
|
|
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
|
|
920
|
+
*/
|
|
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
|
+
};
|
|
926
|
+
//#endregion
|
|
927
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.js
|
|
928
|
+
/**
|
|
929
|
+
* Checks if `value` is classified as an `Array` object.
|
|
930
|
+
*
|
|
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`.
|
|
1350
937
|
* @example
|
|
1351
938
|
*
|
|
1352
|
-
*
|
|
1353
|
-
*
|
|
939
|
+
* _.isArray([1, 2, 3]);
|
|
940
|
+
* // => true
|
|
1354
941
|
*
|
|
1355
|
-
*
|
|
1356
|
-
*
|
|
1357
|
-
* // => [1, 2]
|
|
942
|
+
* _.isArray(document.body.children);
|
|
943
|
+
* // => false
|
|
1358
944
|
*
|
|
1359
|
-
*
|
|
1360
|
-
* // =>
|
|
945
|
+
* _.isArray('abc');
|
|
946
|
+
* // => false
|
|
1361
947
|
*
|
|
1362
|
-
*
|
|
1363
|
-
*
|
|
1364
|
-
|
|
948
|
+
* _.isArray(_.noop);
|
|
949
|
+
* // => false
|
|
950
|
+
*/
|
|
951
|
+
var isArray = Array.isArray;
|
|
952
|
+
//#endregion
|
|
953
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.js
|
|
954
|
+
/**
|
|
955
|
+
* This method returns `false`.
|
|
1365
956
|
*
|
|
1366
|
-
*
|
|
1367
|
-
*
|
|
1368
|
-
*
|
|
1369
|
-
*
|
|
957
|
+
* @static
|
|
958
|
+
* @memberOf _
|
|
959
|
+
* @since 4.13.0
|
|
960
|
+
* @category Util
|
|
961
|
+
* @returns {boolean} Returns `false`.
|
|
962
|
+
* @example
|
|
1370
963
|
*
|
|
1371
|
-
*
|
|
1372
|
-
*
|
|
964
|
+
* _.times(2, _.stubFalse);
|
|
965
|
+
* // => [false, false]
|
|
1373
966
|
*/
|
|
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;
|
|
967
|
+
function stubFalse() {
|
|
968
|
+
return false;
|
|
1385
969
|
}
|
|
1386
|
-
memoize.Cache = MapCache;
|
|
1387
970
|
//#endregion
|
|
1388
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1389
|
-
/**
|
|
1390
|
-
var
|
|
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;
|
|
1391
978
|
/**
|
|
1392
|
-
*
|
|
1393
|
-
* cache when it exceeds `MAX_MEMOIZE_SIZE`.
|
|
979
|
+
* Checks if `value` is a buffer.
|
|
1394
980
|
*
|
|
1395
|
-
* @
|
|
1396
|
-
* @
|
|
1397
|
-
* @
|
|
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
|
|
1398
994
|
*/
|
|
1399
|
-
|
|
1400
|
-
var result = memoize(func, function(key) {
|
|
1401
|
-
if (cache.size === MAX_MEMOIZE_SIZE) cache.clear();
|
|
1402
|
-
return key;
|
|
1403
|
-
});
|
|
1404
|
-
var cache = result.cache;
|
|
1405
|
-
return result;
|
|
1406
|
-
}
|
|
995
|
+
var isBuffer = (Buffer$1 ? Buffer$1.isBuffer : void 0) || stubFalse;
|
|
1407
996
|
//#endregion
|
|
1408
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1409
|
-
/** Used
|
|
1410
|
-
var
|
|
1411
|
-
/** Used to
|
|
1412
|
-
var
|
|
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*)$/;
|
|
1413
1002
|
/**
|
|
1414
|
-
*
|
|
1003
|
+
* Checks if `value` is a valid array-like index.
|
|
1415
1004
|
*
|
|
1416
1005
|
* @private
|
|
1417
|
-
* @param {
|
|
1418
|
-
* @
|
|
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`.
|
|
1419
1009
|
*/
|
|
1420
|
-
|
|
1421
|
-
var
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
});
|
|
1426
|
-
return result;
|
|
1427
|
-
});
|
|
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;
|
|
1014
|
+
}
|
|
1428
1015
|
//#endregion
|
|
1429
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
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;
|
|
1430
1019
|
/**
|
|
1431
|
-
*
|
|
1432
|
-
*
|
|
1020
|
+
* Checks if `value` is a valid array-like length.
|
|
1021
|
+
*
|
|
1022
|
+
* **Note:** This method is loosely based on
|
|
1023
|
+
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
|
1433
1024
|
*
|
|
1434
1025
|
* @static
|
|
1435
1026
|
* @memberOf _
|
|
1436
1027
|
* @since 4.0.0
|
|
1437
1028
|
* @category Lang
|
|
1438
|
-
* @param {*} value The value to
|
|
1439
|
-
* @returns {
|
|
1029
|
+
* @param {*} value The value to check.
|
|
1030
|
+
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
|
1440
1031
|
* @example
|
|
1441
1032
|
*
|
|
1442
|
-
* _.
|
|
1443
|
-
* // =>
|
|
1033
|
+
* _.isLength(3);
|
|
1034
|
+
* // => true
|
|
1444
1035
|
*
|
|
1445
|
-
* _.
|
|
1446
|
-
* // =>
|
|
1036
|
+
* _.isLength(Number.MIN_VALUE);
|
|
1037
|
+
* // => false
|
|
1447
1038
|
*
|
|
1448
|
-
* _.
|
|
1449
|
-
* // =>
|
|
1039
|
+
* _.isLength(Infinity);
|
|
1040
|
+
* // => false
|
|
1041
|
+
*
|
|
1042
|
+
* _.isLength('3');
|
|
1043
|
+
* // => false
|
|
1450
1044
|
*/
|
|
1451
|
-
function
|
|
1452
|
-
return value ==
|
|
1045
|
+
function isLength(value) {
|
|
1046
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
1453
1047
|
}
|
|
1454
1048
|
//#endregion
|
|
1455
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
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;
|
|
1456
1057
|
/**
|
|
1457
|
-
*
|
|
1058
|
+
* The base implementation of `_.isTypedArray` without Node.js optimizations.
|
|
1458
1059
|
*
|
|
1459
1060
|
* @private
|
|
1460
|
-
* @param {*} value The value to
|
|
1461
|
-
* @
|
|
1462
|
-
* @returns {Array} Returns the cast property path array.
|
|
1061
|
+
* @param {*} value The value to check.
|
|
1062
|
+
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
1463
1063
|
*/
|
|
1464
|
-
function
|
|
1465
|
-
|
|
1466
|
-
return isKey(value, object) ? [value] : stringToPath(toString(value));
|
|
1064
|
+
function baseIsTypedArray(value) {
|
|
1065
|
+
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
1467
1066
|
}
|
|
1468
1067
|
//#endregion
|
|
1469
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1470
|
-
/** Used as references for various `Number` constants. */
|
|
1471
|
-
var INFINITY = Infinity;
|
|
1068
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.js
|
|
1472
1069
|
/**
|
|
1473
|
-
*
|
|
1070
|
+
* The base implementation of `_.unary` without support for storing metadata.
|
|
1474
1071
|
*
|
|
1475
1072
|
* @private
|
|
1476
|
-
* @param {
|
|
1477
|
-
* @returns {
|
|
1073
|
+
* @param {Function} func The function to cap arguments for.
|
|
1074
|
+
* @returns {Function} Returns the new capped function.
|
|
1478
1075
|
*/
|
|
1479
|
-
function
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1076
|
+
function baseUnary(func) {
|
|
1077
|
+
return function(value) {
|
|
1078
|
+
return func(value);
|
|
1079
|
+
};
|
|
1483
1080
|
}
|
|
1484
1081
|
//#endregion
|
|
1485
|
-
//#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;
|
|
1486
1100
|
/**
|
|
1487
|
-
*
|
|
1101
|
+
* Checks if `value` is classified as a typed array.
|
|
1488
1102
|
*
|
|
1489
|
-
* @
|
|
1490
|
-
* @
|
|
1491
|
-
* @
|
|
1492
|
-
* @
|
|
1103
|
+
* @static
|
|
1104
|
+
* @memberOf _
|
|
1105
|
+
* @since 3.0.0
|
|
1106
|
+
* @category Lang
|
|
1107
|
+
* @param {*} value The value to check.
|
|
1108
|
+
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
1109
|
+
* @example
|
|
1110
|
+
*
|
|
1111
|
+
* _.isTypedArray(new Uint8Array);
|
|
1112
|
+
* // => true
|
|
1113
|
+
*
|
|
1114
|
+
* _.isTypedArray([]);
|
|
1115
|
+
* // => false
|
|
1493
1116
|
*/
|
|
1494
|
-
|
|
1495
|
-
var index = -1, length = values.length, offset = array.length;
|
|
1496
|
-
while (++index < length) array[offset + index] = values[index];
|
|
1497
|
-
return array;
|
|
1498
|
-
}
|
|
1499
|
-
//#endregion
|
|
1500
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.js
|
|
1501
|
-
/** Built-in value references. */
|
|
1502
|
-
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
1117
|
+
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
1503
1118
|
//#endregion
|
|
1504
|
-
//#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;
|
|
1505
1122
|
/**
|
|
1506
|
-
*
|
|
1123
|
+
* Creates an array of the enumerable property names of the array-like `value`.
|
|
1507
1124
|
*
|
|
1508
1125
|
* @private
|
|
1509
|
-
* @
|
|
1510
|
-
* @
|
|
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.
|
|
1511
1129
|
*/
|
|
1512
|
-
function
|
|
1513
|
-
|
|
1514
|
-
|
|
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;
|
|
1515
1134
|
}
|
|
1516
1135
|
//#endregion
|
|
1517
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
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;
|
|
1518
1139
|
/**
|
|
1519
|
-
*
|
|
1140
|
+
* Checks if `value` is likely a prototype object.
|
|
1520
1141
|
*
|
|
1521
1142
|
* @private
|
|
1522
|
-
* @
|
|
1523
|
-
* @
|
|
1524
|
-
* @param {string} key The key of the value to remove.
|
|
1525
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1143
|
+
* @param {*} value The value to check.
|
|
1144
|
+
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
1526
1145
|
*/
|
|
1527
|
-
function
|
|
1528
|
-
var
|
|
1529
|
-
|
|
1530
|
-
return result;
|
|
1146
|
+
function isPrototype(value) {
|
|
1147
|
+
var Ctor = value && value.constructor;
|
|
1148
|
+
return value === (typeof Ctor == "function" && Ctor.prototype || objectProto);
|
|
1531
1149
|
}
|
|
1532
1150
|
//#endregion
|
|
1533
|
-
//#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
|
|
1534
1152
|
/**
|
|
1535
|
-
*
|
|
1153
|
+
* Creates a unary function that invokes `func` with its argument transformed.
|
|
1536
1154
|
*
|
|
1537
1155
|
* @private
|
|
1538
|
-
* @
|
|
1539
|
-
* @
|
|
1540
|
-
* @
|
|
1541
|
-
* @returns {*} Returns the entry value.
|
|
1156
|
+
* @param {Function} func The function to wrap.
|
|
1157
|
+
* @param {Function} transform The argument transform.
|
|
1158
|
+
* @returns {Function} Returns the new function.
|
|
1542
1159
|
*/
|
|
1543
|
-
function
|
|
1544
|
-
return
|
|
1160
|
+
function overArg(func, transform) {
|
|
1161
|
+
return function(arg) {
|
|
1162
|
+
return func(transform(arg));
|
|
1163
|
+
};
|
|
1545
1164
|
}
|
|
1546
1165
|
//#endregion
|
|
1547
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1166
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.js
|
|
1167
|
+
var nativeKeys = overArg(Object.keys, Object);
|
|
1168
|
+
//#endregion
|
|
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;
|
|
1548
1172
|
/**
|
|
1549
|
-
*
|
|
1173
|
+
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
|
1550
1174
|
*
|
|
1551
1175
|
* @private
|
|
1552
|
-
* @
|
|
1553
|
-
* @
|
|
1554
|
-
* @param {string} key The key of the entry to check.
|
|
1555
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1176
|
+
* @param {Object} object The object to query.
|
|
1177
|
+
* @returns {Array} Returns the array of property names.
|
|
1556
1178
|
*/
|
|
1557
|
-
function
|
|
1558
|
-
return
|
|
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;
|
|
1559
1184
|
}
|
|
1560
1185
|
//#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;
|
|
1186
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.js
|
|
1564
1187
|
/**
|
|
1565
|
-
*
|
|
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`.
|
|
1566
1191
|
*
|
|
1567
|
-
* @
|
|
1568
|
-
* @
|
|
1569
|
-
* @
|
|
1570
|
-
* @
|
|
1571
|
-
* @param {*} value The value to
|
|
1572
|
-
* @returns {
|
|
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
|
|
1573
1211
|
*/
|
|
1574
|
-
function
|
|
1575
|
-
|
|
1576
|
-
if (data instanceof ListCache) {
|
|
1577
|
-
var pairs = data.__data__;
|
|
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;
|
|
1212
|
+
function isArrayLike(value) {
|
|
1213
|
+
return value != null && isLength(value.length) && !isFunction(value);
|
|
1588
1214
|
}
|
|
1589
1215
|
//#endregion
|
|
1590
|
-
//#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
|
|
1591
1217
|
/**
|
|
1592
|
-
* Creates
|
|
1218
|
+
* Creates an array of the own enumerable property names of `object`.
|
|
1593
1219
|
*
|
|
1594
|
-
*
|
|
1595
|
-
*
|
|
1596
|
-
*
|
|
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']
|
|
1597
1244
|
*/
|
|
1598
|
-
function
|
|
1599
|
-
|
|
1600
|
-
this.size = data.size;
|
|
1245
|
+
function keys(object) {
|
|
1246
|
+
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
1601
1247
|
}
|
|
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
1248
|
//#endregion
|
|
1608
1249
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssign.js
|
|
1609
1250
|
/**
|
|
@@ -1619,6 +1260,67 @@
|
|
|
1619
1260
|
return object && copyObject(source, keys(source), object);
|
|
1620
1261
|
}
|
|
1621
1262
|
//#endregion
|
|
1263
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeysIn.js
|
|
1264
|
+
/**
|
|
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.
|
|
1268
|
+
*
|
|
1269
|
+
* @private
|
|
1270
|
+
* @param {Object} object The object to query.
|
|
1271
|
+
* @returns {Array} Returns the array of property names.
|
|
1272
|
+
*/
|
|
1273
|
+
function nativeKeysIn(object) {
|
|
1274
|
+
var result = [];
|
|
1275
|
+
if (object != null) for (var key in Object(object)) result.push(key);
|
|
1276
|
+
return result;
|
|
1277
|
+
}
|
|
1278
|
+
//#endregion
|
|
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;
|
|
1282
|
+
/**
|
|
1283
|
+
* The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
|
|
1284
|
+
*
|
|
1285
|
+
* @private
|
|
1286
|
+
* @param {Object} object The object to query.
|
|
1287
|
+
* @returns {Array} Returns the array of property names.
|
|
1288
|
+
*/
|
|
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;
|
|
1294
|
+
}
|
|
1295
|
+
//#endregion
|
|
1296
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keysIn.js
|
|
1297
|
+
/**
|
|
1298
|
+
* Creates an array of the own and inherited enumerable property names of `object`.
|
|
1299
|
+
*
|
|
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)
|
|
1319
|
+
*/
|
|
1320
|
+
function keysIn(object) {
|
|
1321
|
+
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
1322
|
+
}
|
|
1323
|
+
//#endregion
|
|
1622
1324
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignIn.js
|
|
1623
1325
|
/**
|
|
1624
1326
|
* The base implementation of `_.assignIn` without support for multiple sources
|
|
@@ -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`.
|
|
@@ -2345,47 +2345,48 @@
|
|
|
2345
2345
|
* @param {Array} data 要查找的根容器节点
|
|
2346
2346
|
* @return {Array} 组件在data中的子孙路径
|
|
2347
2347
|
*/
|
|
2348
|
-
var getNodePath = (id, data = []) => {
|
|
2348
|
+
var getNodePath = (id, data = [], skip) => {
|
|
2349
2349
|
const path = [];
|
|
2350
|
-
const
|
|
2350
|
+
const targetId = `${id}`;
|
|
2351
|
+
const get = function(data) {
|
|
2351
2352
|
if (!Array.isArray(data)) return null;
|
|
2352
2353
|
for (let i = 0, l = data.length; i < l; i++) {
|
|
2353
2354
|
const item = data[i];
|
|
2354
2355
|
path.push(item);
|
|
2355
|
-
if (`${item.id}` ===
|
|
2356
|
-
if (item.items) {
|
|
2357
|
-
const node = get(
|
|
2356
|
+
if (`${item.id}` === targetId) return item;
|
|
2357
|
+
if (item.items && item !== skip) {
|
|
2358
|
+
const node = get(item.items);
|
|
2358
2359
|
if (node) return node;
|
|
2359
2360
|
}
|
|
2360
2361
|
path.pop();
|
|
2361
2362
|
}
|
|
2362
2363
|
return null;
|
|
2363
2364
|
};
|
|
2364
|
-
get(
|
|
2365
|
+
get(data);
|
|
2365
2366
|
return path;
|
|
2366
2367
|
};
|
|
2367
|
-
var getNodeInfo = (id, root) => {
|
|
2368
|
+
var getNodeInfo = (id, root, skip) => {
|
|
2368
2369
|
const info = {
|
|
2369
2370
|
node: null,
|
|
2370
2371
|
parent: null,
|
|
2371
|
-
page: null
|
|
2372
|
+
page: null,
|
|
2373
|
+
path: []
|
|
2372
2374
|
};
|
|
2373
2375
|
if (!root) return info;
|
|
2374
2376
|
if (id === root.id) {
|
|
2375
2377
|
info.node = root;
|
|
2376
2378
|
return info;
|
|
2377
2379
|
}
|
|
2378
|
-
const path = getNodePath(id, root.items);
|
|
2380
|
+
const path = getNodePath(id, root.items, skip);
|
|
2381
|
+
info.path = path;
|
|
2379
2382
|
if (!path.length) return info;
|
|
2380
2383
|
path.unshift(root);
|
|
2381
2384
|
info.node = path[path.length - 1];
|
|
2382
2385
|
info.parent = path[path.length - 2];
|
|
2383
|
-
path
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
}
|
|
2388
|
-
});
|
|
2386
|
+
for (const item of path) if (isPage(item) || isPageFragment(item)) {
|
|
2387
|
+
info.page = item;
|
|
2388
|
+
break;
|
|
2389
|
+
}
|
|
2389
2390
|
return info;
|
|
2390
2391
|
};
|
|
2391
2392
|
var filterXSS = (str) => str.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|