@windwalker-io/unicorn-next 0.1.18 → 0.1.21
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/chunks/_arrayPush.js +325 -108
- package/dist/chunks/_arrayPush.js.map +1 -1
- package/dist/chunks/_baseRest.js +155 -60
- package/dist/chunks/_baseRest.js.map +1 -1
- package/dist/chunks/_baseUnary.js +463 -0
- package/dist/chunks/_baseUnary.js.map +1 -0
- package/dist/chunks/_getPrototype.js +292 -100
- package/dist/chunks/_getPrototype.js.map +1 -1
- package/dist/chunks/alert-adapter.js +29 -0
- package/dist/chunks/alert-adapter.js.map +1 -0
- package/dist/chunks/alert.js +21 -0
- package/dist/chunks/alert.js.map +1 -0
- package/dist/chunks/arr.js +24 -0
- package/dist/chunks/arr.js.map +1 -0
- package/dist/chunks/button-radio.js +127 -145
- package/dist/chunks/button-radio.js.map +1 -1
- package/dist/chunks/checkboxes-multi-select.js +44 -43
- package/dist/chunks/checkboxes-multi-select.js.map +1 -1
- package/dist/chunks/chunk.js +24 -0
- package/dist/chunks/cloneDeep.js +679 -212
- package/dist/chunks/cloneDeep.js.map +1 -1
- package/dist/chunks/cropper.min.js +6 -5
- package/dist/chunks/cropper.min.js.map +1 -1
- package/dist/chunks/crypto.js +26 -0
- package/dist/chunks/crypto.js.map +1 -0
- package/dist/chunks/data.js +49 -0
- package/dist/chunks/data.js.map +1 -0
- package/dist/chunks/dom.js +128 -0
- package/dist/chunks/dom.js.map +1 -0
- package/dist/chunks/events.js +270 -0
- package/dist/chunks/events.js.map +1 -0
- package/dist/chunks/field-cascade-select.js +207 -250
- package/dist/chunks/field-cascade-select.js.map +1 -1
- package/dist/chunks/field-file-drag.js +175 -209
- package/dist/chunks/field-file-drag.js.map +1 -1
- package/dist/chunks/field-flatpickr.js +94 -898
- package/dist/chunks/field-flatpickr.js.map +1 -1
- package/dist/chunks/field-modal-select.js +728 -467
- package/dist/chunks/field-modal-select.js.map +1 -1
- package/dist/chunks/field-modal-tree.js +771 -766
- package/dist/chunks/field-modal-tree.js.map +1 -1
- package/dist/chunks/field-multi-uploader.js +249 -256
- package/dist/chunks/field-multi-uploader.js.map +1 -1
- package/dist/chunks/field-repeatable.js +111 -127
- package/dist/chunks/field-repeatable.js.map +1 -1
- package/dist/chunks/field-single-image-drag.js +286 -338
- package/dist/chunks/field-single-image-drag.js.map +1 -1
- package/dist/chunks/form.js +146 -159
- package/dist/chunks/form.js.map +1 -1
- package/dist/chunks/grid.js +349 -418
- package/dist/chunks/grid.js.map +1 -1
- package/dist/chunks/helper.js +39 -0
- package/dist/chunks/helper.js.map +1 -0
- package/dist/chunks/http-client.js +221 -211
- package/dist/chunks/http-client.js.map +1 -1
- package/dist/chunks/iframe-modal.js +95 -115
- package/dist/chunks/iframe-modal.js.map +1 -1
- package/dist/chunks/keep-tab.js +92 -101
- package/dist/chunks/keep-tab.js.map +1 -1
- package/dist/chunks/lang.js +250 -0
- package/dist/chunks/lang.js.map +1 -0
- package/dist/chunks/legacy.js +197 -201
- package/dist/chunks/legacy.js.map +1 -1
- package/dist/chunks/list-dependent.js +195 -228
- package/dist/chunks/list-dependent.js.map +1 -1
- package/dist/chunks/loader.js +106 -0
- package/dist/chunks/loader.js.map +1 -0
- package/dist/chunks/monthSelect.js +251 -0
- package/dist/chunks/monthSelect.js.map +1 -0
- package/dist/chunks/router.js +111 -0
- package/dist/chunks/router.js.map +1 -0
- package/dist/chunks/s3-multipart-uploader.js +183 -210
- package/dist/chunks/s3-multipart-uploader.js.map +1 -1
- package/dist/chunks/s3-uploader.js +106 -128
- package/dist/chunks/s3-uploader.js.map +1 -1
- package/dist/chunks/show-on.js +358 -205
- package/dist/chunks/show-on.js.map +1 -1
- package/dist/chunks/timing.js +10 -0
- package/dist/chunks/timing.js.map +1 -0
- package/dist/chunks/tinymce.js +153 -203
- package/dist/chunks/tinymce.js.map +1 -1
- package/dist/chunks/ui-bootstrap5.js +58 -72
- package/dist/chunks/ui-bootstrap5.js.map +1 -1
- package/dist/chunks/ui.js +320 -0
- package/dist/chunks/ui.js.map +1 -0
- package/dist/chunks/unicorn.js.map +1 -1
- package/dist/chunks/useQueue.js +111 -0
- package/dist/chunks/useQueue.js.map +1 -0
- package/dist/chunks/useStack.js +76 -0
- package/dist/chunks/useStack.js.map +1 -0
- package/dist/chunks/validation.js +761 -853
- package/dist/chunks/validation.js.map +1 -1
- package/dist/editor.css +1 -1
- package/dist/index.d.ts +27 -15
- package/dist/multi-level-menu.css +1 -1
- package/dist/switcher.css +1 -1
- package/dist/unicorn.js +805 -130
- package/dist/unicorn.js.map +1 -1
- package/package.json +3 -3
- package/src/composable/useBsModalAlert.ts +92 -12
- package/src/composable/useHttp.ts +13 -1
- package/src/module/s3-uploader.ts +1 -1
- package/src/service/ui.ts +31 -15
- package/vite.config.ts +5 -1
- package/dist/chunks/_commonjsHelpers.js +0 -7
- package/dist/chunks/index.js +0 -314
- package/dist/chunks/isArguments.js +0 -146
- package/dist/chunks/unicorn.js +0 -2580
package/dist/chunks/cloneDeep.js
CHANGED
|
@@ -1,287 +1,754 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { c as toSource, d as isObjectLike, f as baseGetTag, l as isObject, m as root, p as Symbol, r as isArrayLike, s as getNative, t as baseUnary, u as isArray } from "./_baseUnary.js";
|
|
2
|
+
import { a as isBuffer, c as assignValue, i as nodeUtil, n as keys, o as isPrototype, r as arrayLikeKeys, s as copyObject, t as getPrototype, u as arrayEach } from "./_getPrototype.js";
|
|
3
|
+
import { i as ListCache, n as MapCache, r as Map, t as arrayPush } from "./_arrayPush.js";
|
|
4
|
+
//#region ../../../../node_modules/lodash-es/_WeakMap.js
|
|
4
5
|
var WeakMap = /* @__PURE__ */ getNative(root, "WeakMap");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region ../../../../node_modules/lodash-es/_baseCreate.js
|
|
8
|
+
/** Built-in value references. */
|
|
9
|
+
var objectCreate = Object.create;
|
|
10
|
+
/**
|
|
11
|
+
* The base implementation of `_.create` without support for assigning
|
|
12
|
+
* properties to the created object.
|
|
13
|
+
*
|
|
14
|
+
* @private
|
|
15
|
+
* @param {Object} proto The object to inherit from.
|
|
16
|
+
* @returns {Object} Returns the new object.
|
|
17
|
+
*/
|
|
18
|
+
var baseCreate = /* @__PURE__ */ function() {
|
|
19
|
+
function object() {}
|
|
20
|
+
return function(proto) {
|
|
21
|
+
if (!isObject(proto)) return {};
|
|
22
|
+
if (objectCreate) return objectCreate(proto);
|
|
23
|
+
object.prototype = proto;
|
|
24
|
+
var result = new object();
|
|
25
|
+
object.prototype = void 0;
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
}();
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region ../../../../node_modules/lodash-es/_copyArray.js
|
|
31
|
+
/**
|
|
32
|
+
* Copies the values of `source` to `array`.
|
|
33
|
+
*
|
|
34
|
+
* @private
|
|
35
|
+
* @param {Array} source The array to copy values from.
|
|
36
|
+
* @param {Array} [array=[]] The array to copy values to.
|
|
37
|
+
* @returns {Array} Returns `array`.
|
|
38
|
+
*/
|
|
39
|
+
function copyArray(source, array) {
|
|
40
|
+
var index = -1, length = source.length;
|
|
41
|
+
array || (array = Array(length));
|
|
42
|
+
while (++index < length) array[index] = source[index];
|
|
43
|
+
return array;
|
|
30
44
|
}
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region ../../../../node_modules/lodash-es/_nativeKeysIn.js
|
|
47
|
+
/**
|
|
48
|
+
* This function is like
|
|
49
|
+
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
50
|
+
* except that it includes inherited enumerable properties.
|
|
51
|
+
*
|
|
52
|
+
* @private
|
|
53
|
+
* @param {Object} object The object to query.
|
|
54
|
+
* @returns {Array} Returns the array of property names.
|
|
55
|
+
*/
|
|
56
|
+
function nativeKeysIn(object) {
|
|
57
|
+
var result = [];
|
|
58
|
+
if (object != null) for (var key in Object(object)) result.push(key);
|
|
59
|
+
return result;
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region ../../../../node_modules/lodash-es/_baseKeysIn.js
|
|
63
|
+
/** Used to check objects for own properties. */
|
|
64
|
+
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
65
|
+
/**
|
|
66
|
+
* The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
|
|
67
|
+
*
|
|
68
|
+
* @private
|
|
69
|
+
* @param {Object} object The object to query.
|
|
70
|
+
* @returns {Array} Returns the array of property names.
|
|
71
|
+
*/
|
|
72
|
+
function baseKeysIn(object) {
|
|
73
|
+
if (!isObject(object)) return nativeKeysIn(object);
|
|
74
|
+
var isProto = isPrototype(object), result = [];
|
|
75
|
+
for (var key in object) if (!(key == "constructor" && (isProto || !hasOwnProperty$1.call(object, key)))) result.push(key);
|
|
76
|
+
return result;
|
|
77
|
+
}
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region ../../../../node_modules/lodash-es/keysIn.js
|
|
80
|
+
/**
|
|
81
|
+
* Creates an array of the own and inherited enumerable property names of `object`.
|
|
82
|
+
*
|
|
83
|
+
* **Note:** Non-object values are coerced to objects.
|
|
84
|
+
*
|
|
85
|
+
* @static
|
|
86
|
+
* @memberOf _
|
|
87
|
+
* @since 3.0.0
|
|
88
|
+
* @category Object
|
|
89
|
+
* @param {Object} object The object to query.
|
|
90
|
+
* @returns {Array} Returns the array of property names.
|
|
91
|
+
* @example
|
|
92
|
+
*
|
|
93
|
+
* function Foo() {
|
|
94
|
+
* this.a = 1;
|
|
95
|
+
* this.b = 2;
|
|
96
|
+
* }
|
|
97
|
+
*
|
|
98
|
+
* Foo.prototype.c = 3;
|
|
99
|
+
*
|
|
100
|
+
* _.keysIn(new Foo);
|
|
101
|
+
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
|
|
102
|
+
*/
|
|
103
|
+
function keysIn(object) {
|
|
104
|
+
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
105
|
+
}
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region ../../../../node_modules/lodash-es/_stackClear.js
|
|
108
|
+
/**
|
|
109
|
+
* Removes all key-value entries from the stack.
|
|
110
|
+
*
|
|
111
|
+
* @private
|
|
112
|
+
* @name clear
|
|
113
|
+
* @memberOf Stack
|
|
114
|
+
*/
|
|
31
115
|
function stackClear() {
|
|
32
|
-
|
|
33
|
-
|
|
116
|
+
this.__data__ = new ListCache();
|
|
117
|
+
this.size = 0;
|
|
34
118
|
}
|
|
119
|
+
//#endregion
|
|
120
|
+
//#region ../../../../node_modules/lodash-es/_stackDelete.js
|
|
121
|
+
/**
|
|
122
|
+
* Removes `key` and its value from the stack.
|
|
123
|
+
*
|
|
124
|
+
* @private
|
|
125
|
+
* @name delete
|
|
126
|
+
* @memberOf Stack
|
|
127
|
+
* @param {string} key The key of the value to remove.
|
|
128
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
129
|
+
*/
|
|
35
130
|
function stackDelete(key) {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
131
|
+
var data = this.__data__, result = data["delete"](key);
|
|
132
|
+
this.size = data.size;
|
|
133
|
+
return result;
|
|
39
134
|
}
|
|
135
|
+
//#endregion
|
|
136
|
+
//#region ../../../../node_modules/lodash-es/_stackGet.js
|
|
137
|
+
/**
|
|
138
|
+
* Gets the stack value for `key`.
|
|
139
|
+
*
|
|
140
|
+
* @private
|
|
141
|
+
* @name get
|
|
142
|
+
* @memberOf Stack
|
|
143
|
+
* @param {string} key The key of the value to get.
|
|
144
|
+
* @returns {*} Returns the entry value.
|
|
145
|
+
*/
|
|
40
146
|
function stackGet(key) {
|
|
41
|
-
|
|
147
|
+
return this.__data__.get(key);
|
|
42
148
|
}
|
|
149
|
+
//#endregion
|
|
150
|
+
//#region ../../../../node_modules/lodash-es/_stackHas.js
|
|
151
|
+
/**
|
|
152
|
+
* Checks if a stack value for `key` exists.
|
|
153
|
+
*
|
|
154
|
+
* @private
|
|
155
|
+
* @name has
|
|
156
|
+
* @memberOf Stack
|
|
157
|
+
* @param {string} key The key of the entry to check.
|
|
158
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
159
|
+
*/
|
|
43
160
|
function stackHas(key) {
|
|
44
|
-
|
|
161
|
+
return this.__data__.has(key);
|
|
45
162
|
}
|
|
163
|
+
//#endregion
|
|
164
|
+
//#region ../../../../node_modules/lodash-es/_stackSet.js
|
|
165
|
+
/** Used as the size to enable large array optimizations. */
|
|
46
166
|
var LARGE_ARRAY_SIZE = 200;
|
|
167
|
+
/**
|
|
168
|
+
* Sets the stack `key` to `value`.
|
|
169
|
+
*
|
|
170
|
+
* @private
|
|
171
|
+
* @name set
|
|
172
|
+
* @memberOf Stack
|
|
173
|
+
* @param {string} key The key of the value to set.
|
|
174
|
+
* @param {*} value The value to set.
|
|
175
|
+
* @returns {Object} Returns the stack cache instance.
|
|
176
|
+
*/
|
|
47
177
|
function stackSet(key, value) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
178
|
+
var data = this.__data__;
|
|
179
|
+
if (data instanceof ListCache) {
|
|
180
|
+
var pairs = data.__data__;
|
|
181
|
+
if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
182
|
+
pairs.push([key, value]);
|
|
183
|
+
this.size = ++data.size;
|
|
184
|
+
return this;
|
|
185
|
+
}
|
|
186
|
+
data = this.__data__ = new MapCache(pairs);
|
|
187
|
+
}
|
|
188
|
+
data.set(key, value);
|
|
189
|
+
this.size = data.size;
|
|
190
|
+
return this;
|
|
61
191
|
}
|
|
192
|
+
//#endregion
|
|
193
|
+
//#region ../../../../node_modules/lodash-es/_Stack.js
|
|
194
|
+
/**
|
|
195
|
+
* Creates a stack cache object to store key-value pairs.
|
|
196
|
+
*
|
|
197
|
+
* @private
|
|
198
|
+
* @constructor
|
|
199
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
200
|
+
*/
|
|
62
201
|
function Stack(entries) {
|
|
63
|
-
|
|
64
|
-
this.size = data.size;
|
|
202
|
+
this.size = (this.__data__ = new ListCache(entries)).size;
|
|
65
203
|
}
|
|
66
204
|
Stack.prototype.clear = stackClear;
|
|
67
205
|
Stack.prototype["delete"] = stackDelete;
|
|
68
206
|
Stack.prototype.get = stackGet;
|
|
69
207
|
Stack.prototype.has = stackHas;
|
|
70
208
|
Stack.prototype.set = stackSet;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
209
|
+
//#endregion
|
|
210
|
+
//#region ../../../../node_modules/lodash-es/_baseAssign.js
|
|
211
|
+
/**
|
|
212
|
+
* The base implementation of `_.assign` without support for multiple sources
|
|
213
|
+
* or `customizer` functions.
|
|
214
|
+
*
|
|
215
|
+
* @private
|
|
216
|
+
* @param {Object} object The destination object.
|
|
217
|
+
* @param {Object} source The source object.
|
|
218
|
+
* @returns {Object} Returns `object`.
|
|
219
|
+
*/
|
|
220
|
+
function baseAssign(object, source) {
|
|
221
|
+
return object && copyObject(source, keys(source), object);
|
|
222
|
+
}
|
|
223
|
+
//#endregion
|
|
224
|
+
//#region ../../../../node_modules/lodash-es/_baseAssignIn.js
|
|
225
|
+
/**
|
|
226
|
+
* The base implementation of `_.assignIn` without support for multiple sources
|
|
227
|
+
* or `customizer` functions.
|
|
228
|
+
*
|
|
229
|
+
* @private
|
|
230
|
+
* @param {Object} object The destination object.
|
|
231
|
+
* @param {Object} source The source object.
|
|
232
|
+
* @returns {Object} Returns `object`.
|
|
233
|
+
*/
|
|
234
|
+
function baseAssignIn(object, source) {
|
|
235
|
+
return object && copyObject(source, keysIn(source), object);
|
|
236
|
+
}
|
|
237
|
+
//#endregion
|
|
238
|
+
//#region ../../../../node_modules/lodash-es/_cloneBuffer.js
|
|
239
|
+
/** Detect free variable `exports`. */
|
|
240
|
+
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
241
|
+
/** Detect free variable `module`. */
|
|
242
|
+
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
243
|
+
/** Built-in value references. */
|
|
244
|
+
var Buffer = freeModule && freeModule.exports === freeExports ? root.Buffer : void 0, allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0;
|
|
245
|
+
/**
|
|
246
|
+
* Creates a clone of `buffer`.
|
|
247
|
+
*
|
|
248
|
+
* @private
|
|
249
|
+
* @param {Buffer} buffer The buffer to clone.
|
|
250
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
251
|
+
* @returns {Buffer} Returns the cloned buffer.
|
|
252
|
+
*/
|
|
76
253
|
function cloneBuffer(buffer, isDeep) {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
254
|
+
if (isDeep) return buffer.slice();
|
|
255
|
+
var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
256
|
+
buffer.copy(result);
|
|
257
|
+
return result;
|
|
80
258
|
}
|
|
259
|
+
//#endregion
|
|
260
|
+
//#region ../../../../node_modules/lodash-es/_arrayFilter.js
|
|
261
|
+
/**
|
|
262
|
+
* A specialized version of `_.filter` for arrays without support for
|
|
263
|
+
* iteratee shorthands.
|
|
264
|
+
*
|
|
265
|
+
* @private
|
|
266
|
+
* @param {Array} [array] The array to iterate over.
|
|
267
|
+
* @param {Function} predicate The function invoked per iteration.
|
|
268
|
+
* @returns {Array} Returns the new filtered array.
|
|
269
|
+
*/
|
|
81
270
|
function arrayFilter(array, predicate) {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
return result;
|
|
271
|
+
var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
272
|
+
while (++index < length) {
|
|
273
|
+
var value = array[index];
|
|
274
|
+
if (predicate(value, index, array)) result[resIndex++] = value;
|
|
275
|
+
}
|
|
276
|
+
return result;
|
|
90
277
|
}
|
|
278
|
+
//#endregion
|
|
279
|
+
//#region ../../../../node_modules/lodash-es/stubArray.js
|
|
280
|
+
/**
|
|
281
|
+
* This method returns a new empty array.
|
|
282
|
+
*
|
|
283
|
+
* @static
|
|
284
|
+
* @memberOf _
|
|
285
|
+
* @since 4.13.0
|
|
286
|
+
* @category Util
|
|
287
|
+
* @returns {Array} Returns the new empty array.
|
|
288
|
+
* @example
|
|
289
|
+
*
|
|
290
|
+
* var arrays = _.times(2, _.stubArray);
|
|
291
|
+
*
|
|
292
|
+
* console.log(arrays);
|
|
293
|
+
* // => [[], []]
|
|
294
|
+
*
|
|
295
|
+
* console.log(arrays[0] === arrays[1]);
|
|
296
|
+
* // => false
|
|
297
|
+
*/
|
|
91
298
|
function stubArray() {
|
|
92
|
-
|
|
299
|
+
return [];
|
|
93
300
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
301
|
+
//#endregion
|
|
302
|
+
//#region ../../../../node_modules/lodash-es/_getSymbols.js
|
|
303
|
+
/** Built-in value references. */
|
|
304
|
+
var propertyIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
305
|
+
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
306
|
+
/**
|
|
307
|
+
* Creates an array of the own enumerable symbols of `object`.
|
|
308
|
+
*
|
|
309
|
+
* @private
|
|
310
|
+
* @param {Object} object The object to query.
|
|
311
|
+
* @returns {Array} Returns the array of symbols.
|
|
312
|
+
*/
|
|
97
313
|
var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
314
|
+
if (object == null) return [];
|
|
315
|
+
object = Object(object);
|
|
316
|
+
return arrayFilter(nativeGetSymbols(object), function(symbol) {
|
|
317
|
+
return propertyIsEnumerable.call(object, symbol);
|
|
318
|
+
});
|
|
319
|
+
};
|
|
320
|
+
//#endregion
|
|
321
|
+
//#region ../../../../node_modules/lodash-es/_copySymbols.js
|
|
322
|
+
/**
|
|
323
|
+
* Copies own symbols of `source` to `object`.
|
|
324
|
+
*
|
|
325
|
+
* @private
|
|
326
|
+
* @param {Object} source The object to copy symbols from.
|
|
327
|
+
* @param {Object} [object={}] The object to copy symbols to.
|
|
328
|
+
* @returns {Object} Returns `object`.
|
|
329
|
+
*/
|
|
330
|
+
function copySymbols(source, object) {
|
|
331
|
+
return copyObject(source, getSymbols(source), object);
|
|
332
|
+
}
|
|
333
|
+
//#endregion
|
|
334
|
+
//#region ../../../../node_modules/lodash-es/_getSymbolsIn.js
|
|
335
|
+
/**
|
|
336
|
+
* Creates an array of the own and inherited enumerable symbols of `object`.
|
|
337
|
+
*
|
|
338
|
+
* @private
|
|
339
|
+
* @param {Object} object The object to query.
|
|
340
|
+
* @returns {Array} Returns the array of symbols.
|
|
341
|
+
*/
|
|
342
|
+
var getSymbolsIn = !Object.getOwnPropertySymbols ? stubArray : function(object) {
|
|
343
|
+
var result = [];
|
|
344
|
+
while (object) {
|
|
345
|
+
arrayPush(result, getSymbols(object));
|
|
346
|
+
object = getPrototype(object);
|
|
347
|
+
}
|
|
348
|
+
return result;
|
|
105
349
|
};
|
|
350
|
+
//#endregion
|
|
351
|
+
//#region ../../../../node_modules/lodash-es/_copySymbolsIn.js
|
|
352
|
+
/**
|
|
353
|
+
* Copies own and inherited symbols of `source` to `object`.
|
|
354
|
+
*
|
|
355
|
+
* @private
|
|
356
|
+
* @param {Object} source The object to copy symbols from.
|
|
357
|
+
* @param {Object} [object={}] The object to copy symbols to.
|
|
358
|
+
* @returns {Object} Returns `object`.
|
|
359
|
+
*/
|
|
360
|
+
function copySymbolsIn(source, object) {
|
|
361
|
+
return copyObject(source, getSymbolsIn(source), object);
|
|
362
|
+
}
|
|
363
|
+
//#endregion
|
|
364
|
+
//#region ../../../../node_modules/lodash-es/_baseGetAllKeys.js
|
|
365
|
+
/**
|
|
366
|
+
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
|
367
|
+
* `keysFunc` and `symbolsFunc` to get the enumerable property names and
|
|
368
|
+
* symbols of `object`.
|
|
369
|
+
*
|
|
370
|
+
* @private
|
|
371
|
+
* @param {Object} object The object to query.
|
|
372
|
+
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
373
|
+
* @param {Function} symbolsFunc The function to get the symbols of `object`.
|
|
374
|
+
* @returns {Array} Returns the array of property names and symbols.
|
|
375
|
+
*/
|
|
106
376
|
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
107
|
-
|
|
108
|
-
|
|
377
|
+
var result = keysFunc(object);
|
|
378
|
+
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
109
379
|
}
|
|
380
|
+
//#endregion
|
|
381
|
+
//#region ../../../../node_modules/lodash-es/_getAllKeys.js
|
|
382
|
+
/**
|
|
383
|
+
* Creates an array of own enumerable property names and symbols of `object`.
|
|
384
|
+
*
|
|
385
|
+
* @private
|
|
386
|
+
* @param {Object} object The object to query.
|
|
387
|
+
* @returns {Array} Returns the array of property names and symbols.
|
|
388
|
+
*/
|
|
110
389
|
function getAllKeys(object) {
|
|
111
|
-
|
|
390
|
+
return baseGetAllKeys(object, keys, getSymbols);
|
|
391
|
+
}
|
|
392
|
+
//#endregion
|
|
393
|
+
//#region ../../../../node_modules/lodash-es/_getAllKeysIn.js
|
|
394
|
+
/**
|
|
395
|
+
* Creates an array of own and inherited enumerable property names and
|
|
396
|
+
* symbols of `object`.
|
|
397
|
+
*
|
|
398
|
+
* @private
|
|
399
|
+
* @param {Object} object The object to query.
|
|
400
|
+
* @returns {Array} Returns the array of property names and symbols.
|
|
401
|
+
*/
|
|
402
|
+
function getAllKeysIn(object) {
|
|
403
|
+
return baseGetAllKeys(object, keysIn, getSymbolsIn);
|
|
112
404
|
}
|
|
405
|
+
//#endregion
|
|
406
|
+
//#region ../../../../node_modules/lodash-es/_DataView.js
|
|
113
407
|
var DataView = /* @__PURE__ */ getNative(root, "DataView");
|
|
408
|
+
//#endregion
|
|
409
|
+
//#region ../../../../node_modules/lodash-es/_Promise.js
|
|
114
410
|
var Promise$1 = /* @__PURE__ */ getNative(root, "Promise");
|
|
411
|
+
//#endregion
|
|
412
|
+
//#region ../../../../node_modules/lodash-es/_Set.js
|
|
115
413
|
var Set = /* @__PURE__ */ getNative(root, "Set");
|
|
414
|
+
//#endregion
|
|
415
|
+
//#region ../../../../node_modules/lodash-es/_getTag.js
|
|
416
|
+
/** `Object#toString` result references. */
|
|
116
417
|
var mapTag$3 = "[object Map]", objectTag$1 = "[object Object]", promiseTag = "[object Promise]", setTag$3 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
|
|
117
418
|
var dataViewTag$2 = "[object DataView]";
|
|
419
|
+
/** Used to detect maps, sets, and weakmaps. */
|
|
118
420
|
var dataViewCtorString = /* @__PURE__ */ toSource(DataView), mapCtorString = /* @__PURE__ */ toSource(Map), promiseCtorString = /* @__PURE__ */ toSource(Promise$1), setCtorString = /* @__PURE__ */ toSource(Set), weakMapCtorString = /* @__PURE__ */ toSource(WeakMap);
|
|
421
|
+
/**
|
|
422
|
+
* Gets the `toStringTag` of `value`.
|
|
423
|
+
*
|
|
424
|
+
* @private
|
|
425
|
+
* @param {*} value The value to query.
|
|
426
|
+
* @returns {string} Returns the `toStringTag`.
|
|
427
|
+
*/
|
|
119
428
|
var getTag = baseGetTag;
|
|
120
|
-
if (DataView && /* @__PURE__ */ getTag(/* @__PURE__ */ new DataView(/* @__PURE__ */ new ArrayBuffer(1))) != dataViewTag$2 || Map && /* @__PURE__ */ getTag(/* @__PURE__ */ new Map()) != mapTag$3 || Promise$1 && /* @__PURE__ */ getTag(/* @__PURE__ */ Promise$1.resolve()) != promiseTag || Set && /* @__PURE__ */ getTag(/* @__PURE__ */ new Set()) != setTag$3 || WeakMap && /* @__PURE__ */ getTag(/* @__PURE__ */ new WeakMap()) != weakMapTag$1) {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
429
|
+
if (DataView && /* @__PURE__ */ getTag(/* @__PURE__ */ new DataView(/* @__PURE__ */ new ArrayBuffer(1))) != dataViewTag$2 || Map && /* @__PURE__ */ getTag(/* @__PURE__ */ new Map()) != mapTag$3 || Promise$1 && /* @__PURE__ */ getTag(/* @__PURE__ */ Promise$1.resolve()) != promiseTag || Set && /* @__PURE__ */ getTag(/* @__PURE__ */ new Set()) != setTag$3 || WeakMap && /* @__PURE__ */ getTag(/* @__PURE__ */ new WeakMap()) != weakMapTag$1) getTag = function(value) {
|
|
430
|
+
var result = baseGetTag(value), Ctor = result == objectTag$1 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
431
|
+
if (ctorString) switch (ctorString) {
|
|
432
|
+
case dataViewCtorString: return dataViewTag$2;
|
|
433
|
+
case mapCtorString: return mapTag$3;
|
|
434
|
+
case promiseCtorString: return promiseTag;
|
|
435
|
+
case setCtorString: return setTag$3;
|
|
436
|
+
case weakMapCtorString: return weakMapTag$1;
|
|
437
|
+
}
|
|
438
|
+
return result;
|
|
439
|
+
};
|
|
440
|
+
var _getTag_default = getTag;
|
|
441
|
+
//#endregion
|
|
442
|
+
//#region ../../../../node_modules/lodash-es/_initCloneArray.js
|
|
443
|
+
/** Used to check objects for own properties. */
|
|
444
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
445
|
+
/**
|
|
446
|
+
* Initializes an array clone.
|
|
447
|
+
*
|
|
448
|
+
* @private
|
|
449
|
+
* @param {Array} array The array to clone.
|
|
450
|
+
* @returns {Array} Returns the initialized clone.
|
|
451
|
+
*/
|
|
142
452
|
function initCloneArray(array) {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}
|
|
150
|
-
|
|
453
|
+
var length = array.length, result = new array.constructor(length);
|
|
454
|
+
if (length && typeof array[0] == "string" && hasOwnProperty.call(array, "index")) {
|
|
455
|
+
result.index = array.index;
|
|
456
|
+
result.input = array.input;
|
|
457
|
+
}
|
|
458
|
+
return result;
|
|
459
|
+
}
|
|
460
|
+
//#endregion
|
|
461
|
+
//#region ../../../../node_modules/lodash-es/_Uint8Array.js
|
|
462
|
+
/** Built-in value references. */
|
|
463
|
+
var Uint8Array = root.Uint8Array;
|
|
464
|
+
//#endregion
|
|
465
|
+
//#region ../../../../node_modules/lodash-es/_cloneArrayBuffer.js
|
|
466
|
+
/**
|
|
467
|
+
* Creates a clone of `arrayBuffer`.
|
|
468
|
+
*
|
|
469
|
+
* @private
|
|
470
|
+
* @param {ArrayBuffer} arrayBuffer The array buffer to clone.
|
|
471
|
+
* @returns {ArrayBuffer} Returns the cloned array buffer.
|
|
472
|
+
*/
|
|
151
473
|
function cloneArrayBuffer(arrayBuffer) {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
474
|
+
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
475
|
+
new Uint8Array(result).set(new Uint8Array(arrayBuffer));
|
|
476
|
+
return result;
|
|
155
477
|
}
|
|
478
|
+
//#endregion
|
|
479
|
+
//#region ../../../../node_modules/lodash-es/_cloneDataView.js
|
|
480
|
+
/**
|
|
481
|
+
* Creates a clone of `dataView`.
|
|
482
|
+
*
|
|
483
|
+
* @private
|
|
484
|
+
* @param {Object} dataView The data view to clone.
|
|
485
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
486
|
+
* @returns {Object} Returns the cloned data view.
|
|
487
|
+
*/
|
|
156
488
|
function cloneDataView(dataView, isDeep) {
|
|
157
|
-
|
|
158
|
-
|
|
489
|
+
var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
|
|
490
|
+
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
159
491
|
}
|
|
492
|
+
//#endregion
|
|
493
|
+
//#region ../../../../node_modules/lodash-es/_cloneRegExp.js
|
|
494
|
+
/** Used to match `RegExp` flags from their coerced string values. */
|
|
160
495
|
var reFlags = /\w*$/;
|
|
496
|
+
/**
|
|
497
|
+
* Creates a clone of `regexp`.
|
|
498
|
+
*
|
|
499
|
+
* @private
|
|
500
|
+
* @param {Object} regexp The regexp to clone.
|
|
501
|
+
* @returns {Object} Returns the cloned regexp.
|
|
502
|
+
*/
|
|
161
503
|
function cloneRegExp(regexp) {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
504
|
+
var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
|
|
505
|
+
result.lastIndex = regexp.lastIndex;
|
|
506
|
+
return result;
|
|
165
507
|
}
|
|
166
|
-
|
|
508
|
+
//#endregion
|
|
509
|
+
//#region ../../../../node_modules/lodash-es/_cloneSymbol.js
|
|
510
|
+
/** Used to convert symbols to primitives and strings. */
|
|
511
|
+
var symbolProto = Symbol ? Symbol.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
512
|
+
/**
|
|
513
|
+
* Creates a clone of the `symbol` object.
|
|
514
|
+
*
|
|
515
|
+
* @private
|
|
516
|
+
* @param {Object} symbol The symbol object to clone.
|
|
517
|
+
* @returns {Object} Returns the cloned symbol object.
|
|
518
|
+
*/
|
|
167
519
|
function cloneSymbol(symbol) {
|
|
168
|
-
|
|
520
|
+
return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
|
|
169
521
|
}
|
|
522
|
+
//#endregion
|
|
523
|
+
//#region ../../../../node_modules/lodash-es/_cloneTypedArray.js
|
|
524
|
+
/**
|
|
525
|
+
* Creates a clone of `typedArray`.
|
|
526
|
+
*
|
|
527
|
+
* @private
|
|
528
|
+
* @param {Object} typedArray The typed array to clone.
|
|
529
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
530
|
+
* @returns {Object} Returns the cloned typed array.
|
|
531
|
+
*/
|
|
170
532
|
function cloneTypedArray(typedArray, isDeep) {
|
|
171
|
-
|
|
172
|
-
|
|
533
|
+
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
|
|
534
|
+
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
173
535
|
}
|
|
536
|
+
//#endregion
|
|
537
|
+
//#region ../../../../node_modules/lodash-es/_initCloneByTag.js
|
|
538
|
+
/** `Object#toString` result references. */
|
|
174
539
|
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$1 = "[object Symbol]";
|
|
175
540
|
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]";
|
|
541
|
+
/**
|
|
542
|
+
* Initializes an object clone based on its `toStringTag`.
|
|
543
|
+
*
|
|
544
|
+
* **Note:** This function only supports cloning values with tags of
|
|
545
|
+
* `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
|
|
546
|
+
*
|
|
547
|
+
* @private
|
|
548
|
+
* @param {Object} object The object to clone.
|
|
549
|
+
* @param {string} tag The `toStringTag` of the object to clone.
|
|
550
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
551
|
+
* @returns {Object} Returns the initialized clone.
|
|
552
|
+
*/
|
|
176
553
|
function initCloneByTag(object, tag, isDeep) {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
case stringTag$1:
|
|
200
|
-
return new Ctor(object);
|
|
201
|
-
case regexpTag$1:
|
|
202
|
-
return cloneRegExp(object);
|
|
203
|
-
case setTag$2:
|
|
204
|
-
return new Ctor();
|
|
205
|
-
case symbolTag$1:
|
|
206
|
-
return cloneSymbol(object);
|
|
207
|
-
}
|
|
554
|
+
var Ctor = object.constructor;
|
|
555
|
+
switch (tag) {
|
|
556
|
+
case arrayBufferTag$1: return cloneArrayBuffer(object);
|
|
557
|
+
case boolTag$1:
|
|
558
|
+
case dateTag$1: return new Ctor(+object);
|
|
559
|
+
case dataViewTag$1: return cloneDataView(object, isDeep);
|
|
560
|
+
case float32Tag$1:
|
|
561
|
+
case float64Tag$1:
|
|
562
|
+
case int8Tag$1:
|
|
563
|
+
case int16Tag$1:
|
|
564
|
+
case int32Tag$1:
|
|
565
|
+
case uint8Tag$1:
|
|
566
|
+
case uint8ClampedTag$1:
|
|
567
|
+
case uint16Tag$1:
|
|
568
|
+
case uint32Tag$1: return cloneTypedArray(object, isDeep);
|
|
569
|
+
case mapTag$2: return new Ctor();
|
|
570
|
+
case numberTag$1:
|
|
571
|
+
case stringTag$1: return new Ctor(object);
|
|
572
|
+
case regexpTag$1: return cloneRegExp(object);
|
|
573
|
+
case setTag$2: return new Ctor();
|
|
574
|
+
case symbolTag$1: return cloneSymbol(object);
|
|
575
|
+
}
|
|
208
576
|
}
|
|
577
|
+
//#endregion
|
|
578
|
+
//#region ../../../../node_modules/lodash-es/_initCloneObject.js
|
|
579
|
+
/**
|
|
580
|
+
* Initializes an object clone.
|
|
581
|
+
*
|
|
582
|
+
* @private
|
|
583
|
+
* @param {Object} object The object to clone.
|
|
584
|
+
* @returns {Object} Returns the initialized clone.
|
|
585
|
+
*/
|
|
209
586
|
function initCloneObject(object) {
|
|
210
|
-
|
|
587
|
+
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
|
211
588
|
}
|
|
589
|
+
//#endregion
|
|
590
|
+
//#region ../../../../node_modules/lodash-es/_baseIsMap.js
|
|
591
|
+
/** `Object#toString` result references. */
|
|
212
592
|
var mapTag$1 = "[object Map]";
|
|
593
|
+
/**
|
|
594
|
+
* The base implementation of `_.isMap` without Node.js optimizations.
|
|
595
|
+
*
|
|
596
|
+
* @private
|
|
597
|
+
* @param {*} value The value to check.
|
|
598
|
+
* @returns {boolean} Returns `true` if `value` is a map, else `false`.
|
|
599
|
+
*/
|
|
213
600
|
function baseIsMap(value) {
|
|
214
|
-
|
|
601
|
+
return isObjectLike(value) && _getTag_default(value) == mapTag$1;
|
|
215
602
|
}
|
|
216
|
-
|
|
603
|
+
//#endregion
|
|
604
|
+
//#region ../../../../node_modules/lodash-es/isMap.js
|
|
605
|
+
var nodeIsMap = nodeUtil && nodeUtil.isMap;
|
|
606
|
+
/**
|
|
607
|
+
* Checks if `value` is classified as a `Map` object.
|
|
608
|
+
*
|
|
609
|
+
* @static
|
|
610
|
+
* @memberOf _
|
|
611
|
+
* @since 4.3.0
|
|
612
|
+
* @category Lang
|
|
613
|
+
* @param {*} value The value to check.
|
|
614
|
+
* @returns {boolean} Returns `true` if `value` is a map, else `false`.
|
|
615
|
+
* @example
|
|
616
|
+
*
|
|
617
|
+
* _.isMap(new Map);
|
|
618
|
+
* // => true
|
|
619
|
+
*
|
|
620
|
+
* _.isMap(new WeakMap);
|
|
621
|
+
* // => false
|
|
622
|
+
*/
|
|
217
623
|
var isMap = nodeIsMap ? /* @__PURE__ */ baseUnary(nodeIsMap) : baseIsMap;
|
|
624
|
+
//#endregion
|
|
625
|
+
//#region ../../../../node_modules/lodash-es/_baseIsSet.js
|
|
626
|
+
/** `Object#toString` result references. */
|
|
218
627
|
var setTag$1 = "[object Set]";
|
|
628
|
+
/**
|
|
629
|
+
* The base implementation of `_.isSet` without Node.js optimizations.
|
|
630
|
+
*
|
|
631
|
+
* @private
|
|
632
|
+
* @param {*} value The value to check.
|
|
633
|
+
* @returns {boolean} Returns `true` if `value` is a set, else `false`.
|
|
634
|
+
*/
|
|
219
635
|
function baseIsSet(value) {
|
|
220
|
-
|
|
636
|
+
return isObjectLike(value) && _getTag_default(value) == setTag$1;
|
|
221
637
|
}
|
|
222
|
-
|
|
638
|
+
//#endregion
|
|
639
|
+
//#region ../../../../node_modules/lodash-es/isSet.js
|
|
640
|
+
var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
641
|
+
/**
|
|
642
|
+
* Checks if `value` is classified as a `Set` object.
|
|
643
|
+
*
|
|
644
|
+
* @static
|
|
645
|
+
* @memberOf _
|
|
646
|
+
* @since 4.3.0
|
|
647
|
+
* @category Lang
|
|
648
|
+
* @param {*} value The value to check.
|
|
649
|
+
* @returns {boolean} Returns `true` if `value` is a set, else `false`.
|
|
650
|
+
* @example
|
|
651
|
+
*
|
|
652
|
+
* _.isSet(new Set);
|
|
653
|
+
* // => true
|
|
654
|
+
*
|
|
655
|
+
* _.isSet(new WeakSet);
|
|
656
|
+
* // => false
|
|
657
|
+
*/
|
|
223
658
|
var isSet = nodeIsSet ? /* @__PURE__ */ baseUnary(nodeIsSet) : baseIsSet;
|
|
659
|
+
//#endregion
|
|
660
|
+
//#region ../../../../node_modules/lodash-es/_baseClone.js
|
|
661
|
+
/** Used to compose bitmasks for cloning. */
|
|
662
|
+
var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4;
|
|
663
|
+
/** `Object#toString` result references. */
|
|
224
664
|
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]";
|
|
225
665
|
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]";
|
|
666
|
+
/** Used to identify `toStringTag` values supported by `_.clone`. */
|
|
226
667
|
var cloneableTags = {};
|
|
227
668
|
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;
|
|
228
669
|
cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
|
|
670
|
+
/**
|
|
671
|
+
* The base implementation of `_.clone` and `_.cloneDeep` which tracks
|
|
672
|
+
* traversed objects.
|
|
673
|
+
*
|
|
674
|
+
* @private
|
|
675
|
+
* @param {*} value The value to clone.
|
|
676
|
+
* @param {boolean} bitmask The bitmask flags.
|
|
677
|
+
* 1 - Deep clone
|
|
678
|
+
* 2 - Flatten inherited properties
|
|
679
|
+
* 4 - Clone symbols
|
|
680
|
+
* @param {Function} [customizer] The function to customize cloning.
|
|
681
|
+
* @param {string} [key] The key of `value`.
|
|
682
|
+
* @param {Object} [object] The parent object of `value`.
|
|
683
|
+
* @param {Object} [stack] Tracks traversed objects and their clone counterparts.
|
|
684
|
+
* @returns {*} Returns the cloned value.
|
|
685
|
+
*/
|
|
229
686
|
function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
}
|
|
269
|
-
var keysFunc = getAllKeys;
|
|
270
|
-
var props = isArr ? void 0 : keysFunc(value);
|
|
271
|
-
arrayEach(props || value, function(subValue, key2) {
|
|
272
|
-
if (props) {
|
|
273
|
-
key2 = subValue;
|
|
274
|
-
subValue = value[key2];
|
|
275
|
-
}
|
|
276
|
-
assignValue(result, key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
|
|
277
|
-
});
|
|
278
|
-
return result;
|
|
687
|
+
var result, isDeep = bitmask & CLONE_DEEP_FLAG$1, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
|
|
688
|
+
if (customizer) result = object ? customizer(value, key, object, stack) : customizer(value);
|
|
689
|
+
if (result !== void 0) return result;
|
|
690
|
+
if (!isObject(value)) return value;
|
|
691
|
+
var isArr = isArray(value);
|
|
692
|
+
if (isArr) {
|
|
693
|
+
result = initCloneArray(value);
|
|
694
|
+
if (!isDeep) return copyArray(value, result);
|
|
695
|
+
} else {
|
|
696
|
+
var tag = _getTag_default(value), isFunc = tag == funcTag || tag == genTag;
|
|
697
|
+
if (isBuffer(value)) return cloneBuffer(value, isDeep);
|
|
698
|
+
if (tag == objectTag || tag == argsTag || isFunc && !object) {
|
|
699
|
+
result = isFlat || isFunc ? {} : initCloneObject(value);
|
|
700
|
+
if (!isDeep) return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value));
|
|
701
|
+
} else {
|
|
702
|
+
if (!cloneableTags[tag]) return object ? value : {};
|
|
703
|
+
result = initCloneByTag(value, tag, isDeep);
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
stack || (stack = new Stack());
|
|
707
|
+
var stacked = stack.get(value);
|
|
708
|
+
if (stacked) return stacked;
|
|
709
|
+
stack.set(value, result);
|
|
710
|
+
if (isSet(value)) value.forEach(function(subValue) {
|
|
711
|
+
result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
|
|
712
|
+
});
|
|
713
|
+
else if (isMap(value)) value.forEach(function(subValue, key) {
|
|
714
|
+
result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
|
|
715
|
+
});
|
|
716
|
+
var props = isArr ? void 0 : (isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys)(value);
|
|
717
|
+
arrayEach(props || value, function(subValue, key) {
|
|
718
|
+
if (props) {
|
|
719
|
+
key = subValue;
|
|
720
|
+
subValue = value[key];
|
|
721
|
+
}
|
|
722
|
+
assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
|
|
723
|
+
});
|
|
724
|
+
return result;
|
|
279
725
|
}
|
|
726
|
+
//#endregion
|
|
727
|
+
//#region ../../../../node_modules/lodash-es/cloneDeep.js
|
|
728
|
+
/** Used to compose bitmasks for cloning. */
|
|
280
729
|
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
|
730
|
+
/**
|
|
731
|
+
* This method is like `_.clone` except that it recursively clones `value`.
|
|
732
|
+
*
|
|
733
|
+
* @static
|
|
734
|
+
* @memberOf _
|
|
735
|
+
* @since 1.0.0
|
|
736
|
+
* @category Lang
|
|
737
|
+
* @param {*} value The value to recursively clone.
|
|
738
|
+
* @returns {*} Returns the deep cloned value.
|
|
739
|
+
* @see _.clone
|
|
740
|
+
* @example
|
|
741
|
+
*
|
|
742
|
+
* var objects = [{ 'a': 1 }, { 'b': 2 }];
|
|
743
|
+
*
|
|
744
|
+
* var deep = _.cloneDeep(objects);
|
|
745
|
+
* console.log(deep[0] === objects[0]);
|
|
746
|
+
* // => false
|
|
747
|
+
*/
|
|
281
748
|
function cloneDeep(value) {
|
|
282
|
-
|
|
749
|
+
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
283
750
|
}
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
//# sourceMappingURL=cloneDeep.js.map
|
|
751
|
+
//#endregion
|
|
752
|
+
export { cloneDeep as t };
|
|
753
|
+
|
|
754
|
+
//# sourceMappingURL=cloneDeep.js.map
|