wcs-core 4.0.2 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/README.md +4 -2
  2. package/dist/cjs/grid-pagination-4b55c908.js.map +1 -1
  3. package/dist/cjs/isEqual-9ea7ee49.js +2047 -0
  4. package/dist/cjs/isEqual-9ea7ee49.js.map +1 -0
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/wcs-button.cjs.entry.js +4 -0
  7. package/dist/cjs/wcs-button.cjs.entry.js.map +1 -1
  8. package/dist/cjs/wcs-com-nav.cjs.entry.js +22 -2
  9. package/dist/cjs/wcs-com-nav.cjs.entry.js.map +1 -1
  10. package/dist/cjs/wcs-counter.cjs.entry.js +61 -34
  11. package/dist/cjs/wcs-counter.cjs.entry.js.map +1 -1
  12. package/dist/cjs/wcs-error_2.cjs.entry.js +1 -1
  13. package/dist/cjs/wcs-error_2.cjs.entry.js.map +1 -1
  14. package/dist/cjs/wcs-grid-column.cjs.entry.js.map +1 -1
  15. package/dist/cjs/wcs-grid-custom-cell.cjs.entry.js.map +1 -1
  16. package/dist/cjs/wcs-grid.cjs.entry.js +1104 -12
  17. package/dist/cjs/wcs-grid.cjs.entry.js.map +1 -1
  18. package/dist/cjs/wcs-native-select.cjs.entry.js +1 -1
  19. package/dist/cjs/wcs-native-select.cjs.entry.js.map +1 -1
  20. package/dist/cjs/wcs-select_2.cjs.entry.js +2 -2
  21. package/dist/cjs/wcs-select_2.cjs.entry.js.map +1 -1
  22. package/dist/cjs/wcs-skeleton-circle.cjs.entry.js +23 -0
  23. package/dist/cjs/wcs-skeleton-circle.cjs.entry.js.map +1 -0
  24. package/dist/cjs/wcs-skeleton-rectangle.cjs.entry.js +25 -0
  25. package/dist/cjs/wcs-skeleton-rectangle.cjs.entry.js.map +1 -0
  26. package/dist/cjs/wcs-skeleton-text.cjs.entry.js +23 -0
  27. package/dist/cjs/wcs-skeleton-text.cjs.entry.js.map +1 -0
  28. package/dist/cjs/wcs.cjs.js +1 -1
  29. package/dist/collection/collection-manifest.json +3 -0
  30. package/dist/collection/components/button/button.js +12 -0
  31. package/dist/collection/components/button/button.js.map +1 -1
  32. package/dist/collection/components/com-nav/com-nav.css +15 -0
  33. package/dist/collection/components/com-nav/com-nav.js +27 -1
  34. package/dist/collection/components/com-nav/com-nav.js.map +1 -1
  35. package/dist/collection/components/counter/counter.js +64 -40
  36. package/dist/collection/components/counter/counter.js.map +1 -1
  37. package/dist/collection/components/form-field/form-field.js +1 -1
  38. package/dist/collection/components/form-field/form-field.js.map +1 -1
  39. package/dist/collection/components/grid/grid.js +30 -20
  40. package/dist/collection/components/grid/grid.js.map +1 -1
  41. package/dist/collection/components/grid-column/grid-column.js +16 -11
  42. package/dist/collection/components/grid-column/grid-column.js.map +1 -1
  43. package/dist/collection/components/grid-custom-cell/grid-custom-cell.js +3 -0
  44. package/dist/collection/components/grid-custom-cell/grid-custom-cell.js.map +1 -1
  45. package/dist/collection/components/grid-pagination/grid-pagination.js +9 -6
  46. package/dist/collection/components/grid-pagination/grid-pagination.js.map +1 -1
  47. package/dist/collection/components/native-select/native-select.css +5 -3
  48. package/dist/collection/components/select/select.js +3 -3
  49. package/dist/collection/components/select/select.js.map +1 -1
  50. package/dist/collection/components/skeleton/skeleton-interface.js +2 -0
  51. package/dist/collection/components/skeleton/skeleton-interface.js.map +1 -0
  52. package/dist/collection/components/skeleton-circle/skeleton-circle.css +47 -0
  53. package/dist/collection/components/skeleton-circle/skeleton-circle.js +71 -0
  54. package/dist/collection/components/skeleton-circle/skeleton-circle.js.map +1 -0
  55. package/dist/collection/components/skeleton-rectangle/skeleton-rectangle.css +53 -0
  56. package/dist/collection/components/skeleton-rectangle/skeleton-rectangle.js +121 -0
  57. package/dist/collection/components/skeleton-rectangle/skeleton-rectangle.js.map +1 -0
  58. package/dist/collection/components/skeleton-text/skeleton-text.css +62 -0
  59. package/dist/collection/components/skeleton-text/skeleton-text.js +71 -0
  60. package/dist/collection/components/skeleton-text/skeleton-text.js.map +1 -0
  61. package/dist/collection/shared-types.js.map +1 -1
  62. package/dist/esm/grid-pagination-41354861.js.map +1 -1
  63. package/dist/esm/isEqual-20881bca.js +2020 -0
  64. package/dist/esm/isEqual-20881bca.js.map +1 -0
  65. package/dist/esm/loader.js +1 -1
  66. package/dist/esm/wcs-button.entry.js +4 -0
  67. package/dist/esm/wcs-button.entry.js.map +1 -1
  68. package/dist/esm/wcs-com-nav.entry.js +22 -2
  69. package/dist/esm/wcs-com-nav.entry.js.map +1 -1
  70. package/dist/esm/wcs-counter.entry.js +61 -34
  71. package/dist/esm/wcs-counter.entry.js.map +1 -1
  72. package/dist/esm/wcs-error_2.entry.js +1 -1
  73. package/dist/esm/wcs-error_2.entry.js.map +1 -1
  74. package/dist/esm/wcs-grid-column.entry.js.map +1 -1
  75. package/dist/esm/wcs-grid-custom-cell.entry.js.map +1 -1
  76. package/dist/esm/wcs-grid.entry.js +1104 -12
  77. package/dist/esm/wcs-grid.entry.js.map +1 -1
  78. package/dist/esm/wcs-native-select.entry.js +1 -1
  79. package/dist/esm/wcs-native-select.entry.js.map +1 -1
  80. package/dist/esm/wcs-select_2.entry.js +2 -2
  81. package/dist/esm/wcs-select_2.entry.js.map +1 -1
  82. package/dist/esm/wcs-skeleton-circle.entry.js +19 -0
  83. package/dist/esm/wcs-skeleton-circle.entry.js.map +1 -0
  84. package/dist/esm/wcs-skeleton-rectangle.entry.js +21 -0
  85. package/dist/esm/wcs-skeleton-rectangle.entry.js.map +1 -0
  86. package/dist/esm/wcs-skeleton-text.entry.js +19 -0
  87. package/dist/esm/wcs-skeleton-text.entry.js.map +1 -0
  88. package/dist/esm/wcs.js +1 -1
  89. package/dist/types/components/button/button.d.ts +12 -0
  90. package/dist/types/components/com-nav/com-nav.d.ts +11 -0
  91. package/dist/types/components/counter/counter.d.ts +8 -10
  92. package/dist/types/components/grid/grid.d.ts +22 -5
  93. package/dist/types/components/grid-column/grid-column.d.ts +37 -1
  94. package/dist/types/components/grid-custom-cell/grid-custom-cell.d.ts +3 -0
  95. package/dist/types/components/grid-pagination/grid-pagination.d.ts +26 -0
  96. package/dist/types/components/skeleton/skeleton-interface.d.ts +1 -0
  97. package/dist/types/components/skeleton-circle/skeleton-circle.d.ts +16 -0
  98. package/dist/types/components/skeleton-rectangle/skeleton-rectangle.d.ts +27 -0
  99. package/dist/types/components/skeleton-text/skeleton-text.d.ts +16 -0
  100. package/dist/types/components.d.ts +350 -16
  101. package/dist/types/shared-types.d.ts +22 -0
  102. package/dist/wcs/p-15058c29.entry.js +2 -0
  103. package/dist/wcs/p-15058c29.entry.js.map +1 -0
  104. package/dist/wcs/p-22480bd8.entry.js +2 -0
  105. package/dist/wcs/p-22480bd8.entry.js.map +1 -0
  106. package/dist/wcs/p-292ca644.entry.js +2 -0
  107. package/dist/wcs/p-292ca644.entry.js.map +1 -0
  108. package/dist/wcs/p-30d8f9c3.entry.js.map +1 -1
  109. package/dist/wcs/{p-26e7de5c.entry.js → p-405140f9.entry.js} +3 -3
  110. package/dist/wcs/{p-26e7de5c.entry.js.map → p-405140f9.entry.js.map} +1 -1
  111. package/dist/wcs/p-475ac7c5.js.map +1 -1
  112. package/dist/wcs/{p-4b2d8a6d.entry.js → p-57560d7d.entry.js} +2 -2
  113. package/dist/wcs/{p-4b2d8a6d.entry.js.map → p-57560d7d.entry.js.map} +1 -1
  114. package/dist/wcs/p-627bbb6a.entry.js.map +1 -1
  115. package/dist/wcs/p-6b66ce85.entry.js +2 -0
  116. package/dist/wcs/p-6b66ce85.entry.js.map +1 -0
  117. package/dist/wcs/p-8181f8cd.js +2 -0
  118. package/dist/wcs/p-8181f8cd.js.map +1 -0
  119. package/dist/wcs/p-84afb8af.entry.js +2 -0
  120. package/dist/wcs/p-84afb8af.entry.js.map +1 -0
  121. package/dist/wcs/p-b229a91c.entry.js.map +1 -1
  122. package/dist/wcs/p-cfcacc44.entry.js +2 -0
  123. package/dist/wcs/p-cfcacc44.entry.js.map +1 -0
  124. package/dist/wcs/p-dfddec76.entry.js +2 -0
  125. package/dist/wcs/p-dfddec76.entry.js.map +1 -0
  126. package/dist/wcs/wcs.esm.js +1 -1
  127. package/dist/wcs/wcs.esm.js.map +1 -1
  128. package/package.json +5 -9
  129. package/dist/cjs/lodash-776d6f03.js +0 -17211
  130. package/dist/cjs/lodash-776d6f03.js.map +0 -1
  131. package/dist/esm/lodash-d6d9d079.js +0 -17209
  132. package/dist/esm/lodash-d6d9d079.js.map +0 -1
  133. package/dist/wcs/p-5a7999bb.entry.js +0 -2
  134. package/dist/wcs/p-5a7999bb.entry.js.map +0 -1
  135. package/dist/wcs/p-a24fa4f4.entry.js +0 -2
  136. package/dist/wcs/p-a24fa4f4.entry.js.map +0 -1
  137. package/dist/wcs/p-adef7aaf.js +0 -2
  138. package/dist/wcs/p-adef7aaf.js.map +0 -1
  139. package/dist/wcs/p-bcb8b731.entry.js +0 -2
  140. package/dist/wcs/p-bcb8b731.entry.js.map +0 -1
  141. package/dist/wcs/p-f386bb8b.entry.js +0 -2
  142. package/dist/wcs/p-f386bb8b.entry.js.map +0 -1
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-ca67a6dc.js');
6
- const lodash = require('./lodash-776d6f03.js');
7
6
  const gridPagination = require('./grid-pagination-4b55c908.js');
7
+ const isEqual = require('./isEqual-9ea7ee49.js');
8
8
 
9
9
  function getSortOrderInteger(sortOrder) {
10
10
  switch (sortOrder) {
@@ -89,6 +89,1097 @@ function v4(options, buf, offset) {
89
89
  return stringify(rnds);
90
90
  }
91
91
 
92
+ /** `Object#toString` result references. */
93
+ var symbolTag$2 = '[object Symbol]';
94
+
95
+ /**
96
+ * Checks if `value` is classified as a `Symbol` primitive or object.
97
+ *
98
+ * @static
99
+ * @memberOf _
100
+ * @since 4.0.0
101
+ * @category Lang
102
+ * @param {*} value The value to check.
103
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
104
+ * @example
105
+ *
106
+ * _.isSymbol(Symbol.iterator);
107
+ * // => true
108
+ *
109
+ * _.isSymbol('abc');
110
+ * // => false
111
+ */
112
+ function isSymbol(value) {
113
+ return typeof value == 'symbol' ||
114
+ (isEqual.isObjectLike(value) && isEqual.baseGetTag(value) == symbolTag$2);
115
+ }
116
+
117
+ /**
118
+ * A specialized version of `_.map` for arrays without support for iteratee
119
+ * shorthands.
120
+ *
121
+ * @private
122
+ * @param {Array} [array] The array to iterate over.
123
+ * @param {Function} iteratee The function invoked per iteration.
124
+ * @returns {Array} Returns the new mapped array.
125
+ */
126
+ function arrayMap(array, iteratee) {
127
+ var index = -1,
128
+ length = array == null ? 0 : array.length,
129
+ result = Array(length);
130
+
131
+ while (++index < length) {
132
+ result[index] = iteratee(array[index], index, array);
133
+ }
134
+ return result;
135
+ }
136
+
137
+ /** Used as references for various `Number` constants. */
138
+ var INFINITY$1 = 1 / 0;
139
+
140
+ /** Used to convert symbols to primitives and strings. */
141
+ var symbolProto$1 = isEqual.Symbol ? isEqual.Symbol.prototype : undefined,
142
+ symbolToString = symbolProto$1 ? symbolProto$1.toString : undefined;
143
+
144
+ /**
145
+ * The base implementation of `_.toString` which doesn't convert nullish
146
+ * values to empty strings.
147
+ *
148
+ * @private
149
+ * @param {*} value The value to process.
150
+ * @returns {string} Returns the string.
151
+ */
152
+ function baseToString(value) {
153
+ // Exit early for strings to avoid a performance hit in some environments.
154
+ if (typeof value == 'string') {
155
+ return value;
156
+ }
157
+ if (isEqual.isArray(value)) {
158
+ // Recursively convert values (susceptible to call stack limits).
159
+ return arrayMap(value, baseToString) + '';
160
+ }
161
+ if (isSymbol(value)) {
162
+ return symbolToString ? symbolToString.call(value) : '';
163
+ }
164
+ var result = (value + '');
165
+ return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
166
+ }
167
+
168
+ /** Built-in value references. */
169
+ var objectCreate = Object.create;
170
+
171
+ /**
172
+ * The base implementation of `_.create` without support for assigning
173
+ * properties to the created object.
174
+ *
175
+ * @private
176
+ * @param {Object} proto The object to inherit from.
177
+ * @returns {Object} Returns the new object.
178
+ */
179
+ var baseCreate = (function() {
180
+ function object() {}
181
+ return function(proto) {
182
+ if (!isEqual.isObject(proto)) {
183
+ return {};
184
+ }
185
+ if (objectCreate) {
186
+ return objectCreate(proto);
187
+ }
188
+ object.prototype = proto;
189
+ var result = new object;
190
+ object.prototype = undefined;
191
+ return result;
192
+ };
193
+ }());
194
+
195
+ /**
196
+ * Copies the values of `source` to `array`.
197
+ *
198
+ * @private
199
+ * @param {Array} source The array to copy values from.
200
+ * @param {Array} [array=[]] The array to copy values to.
201
+ * @returns {Array} Returns `array`.
202
+ */
203
+ function copyArray(source, array) {
204
+ var index = -1,
205
+ length = source.length;
206
+
207
+ array || (array = Array(length));
208
+ while (++index < length) {
209
+ array[index] = source[index];
210
+ }
211
+ return array;
212
+ }
213
+
214
+ var defineProperty = (function() {
215
+ try {
216
+ var func = isEqual.getNative(Object, 'defineProperty');
217
+ func({}, '', {});
218
+ return func;
219
+ } catch (e) {}
220
+ }());
221
+
222
+ /**
223
+ * A specialized version of `_.forEach` for arrays without support for
224
+ * iteratee shorthands.
225
+ *
226
+ * @private
227
+ * @param {Array} [array] The array to iterate over.
228
+ * @param {Function} iteratee The function invoked per iteration.
229
+ * @returns {Array} Returns `array`.
230
+ */
231
+ function arrayEach(array, iteratee) {
232
+ var index = -1,
233
+ length = array == null ? 0 : array.length;
234
+
235
+ while (++index < length) {
236
+ if (iteratee(array[index], index, array) === false) {
237
+ break;
238
+ }
239
+ }
240
+ return array;
241
+ }
242
+
243
+ /**
244
+ * The base implementation of `assignValue` and `assignMergeValue` without
245
+ * value checks.
246
+ *
247
+ * @private
248
+ * @param {Object} object The object to modify.
249
+ * @param {string} key The key of the property to assign.
250
+ * @param {*} value The value to assign.
251
+ */
252
+ function baseAssignValue(object, key, value) {
253
+ if (key == '__proto__' && defineProperty) {
254
+ defineProperty(object, key, {
255
+ 'configurable': true,
256
+ 'enumerable': true,
257
+ 'value': value,
258
+ 'writable': true
259
+ });
260
+ } else {
261
+ object[key] = value;
262
+ }
263
+ }
264
+
265
+ /** Used for built-in method references. */
266
+ var objectProto$2 = Object.prototype;
267
+
268
+ /** Used to check objects for own properties. */
269
+ var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
270
+
271
+ /**
272
+ * Assigns `value` to `key` of `object` if the existing value is not equivalent
273
+ * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
274
+ * for equality comparisons.
275
+ *
276
+ * @private
277
+ * @param {Object} object The object to modify.
278
+ * @param {string} key The key of the property to assign.
279
+ * @param {*} value The value to assign.
280
+ */
281
+ function assignValue(object, key, value) {
282
+ var objValue = object[key];
283
+ if (!(hasOwnProperty$2.call(object, key) && isEqual.eq(objValue, value)) ||
284
+ (value === undefined && !(key in object))) {
285
+ baseAssignValue(object, key, value);
286
+ }
287
+ }
288
+
289
+ /**
290
+ * Copies properties of `source` to `object`.
291
+ *
292
+ * @private
293
+ * @param {Object} source The object to copy properties from.
294
+ * @param {Array} props The property identifiers to copy.
295
+ * @param {Object} [object={}] The object to copy properties to.
296
+ * @param {Function} [customizer] The function to customize copied values.
297
+ * @returns {Object} Returns `object`.
298
+ */
299
+ function copyObject(source, props, object, customizer) {
300
+ var isNew = !object;
301
+ object || (object = {});
302
+
303
+ var index = -1,
304
+ length = props.length;
305
+
306
+ while (++index < length) {
307
+ var key = props[index];
308
+
309
+ var newValue = customizer
310
+ ? customizer(object[key], source[key], key, object, source)
311
+ : undefined;
312
+
313
+ if (newValue === undefined) {
314
+ newValue = source[key];
315
+ }
316
+ if (isNew) {
317
+ baseAssignValue(object, key, newValue);
318
+ } else {
319
+ assignValue(object, key, newValue);
320
+ }
321
+ }
322
+ return object;
323
+ }
324
+
325
+ /**
326
+ * This function is like
327
+ * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
328
+ * except that it includes inherited enumerable properties.
329
+ *
330
+ * @private
331
+ * @param {Object} object The object to query.
332
+ * @returns {Array} Returns the array of property names.
333
+ */
334
+ function nativeKeysIn(object) {
335
+ var result = [];
336
+ if (object != null) {
337
+ for (var key in Object(object)) {
338
+ result.push(key);
339
+ }
340
+ }
341
+ return result;
342
+ }
343
+
344
+ /** Used for built-in method references. */
345
+ var objectProto$1 = Object.prototype;
346
+
347
+ /** Used to check objects for own properties. */
348
+ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
349
+
350
+ /**
351
+ * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
352
+ *
353
+ * @private
354
+ * @param {Object} object The object to query.
355
+ * @returns {Array} Returns the array of property names.
356
+ */
357
+ function baseKeysIn(object) {
358
+ if (!isEqual.isObject(object)) {
359
+ return nativeKeysIn(object);
360
+ }
361
+ var isProto = isEqual.isPrototype(object),
362
+ result = [];
363
+
364
+ for (var key in object) {
365
+ if (!(key == 'constructor' && (isProto || !hasOwnProperty$1.call(object, key)))) {
366
+ result.push(key);
367
+ }
368
+ }
369
+ return result;
370
+ }
371
+
372
+ /**
373
+ * Creates an array of the own and inherited enumerable property names of `object`.
374
+ *
375
+ * **Note:** Non-object values are coerced to objects.
376
+ *
377
+ * @static
378
+ * @memberOf _
379
+ * @since 3.0.0
380
+ * @category Object
381
+ * @param {Object} object The object to query.
382
+ * @returns {Array} Returns the array of property names.
383
+ * @example
384
+ *
385
+ * function Foo() {
386
+ * this.a = 1;
387
+ * this.b = 2;
388
+ * }
389
+ *
390
+ * Foo.prototype.c = 3;
391
+ *
392
+ * _.keysIn(new Foo);
393
+ * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
394
+ */
395
+ function keysIn(object) {
396
+ return isEqual.isArrayLike(object) ? isEqual.arrayLikeKeys(object, true) : baseKeysIn(object);
397
+ }
398
+
399
+ /** Used to match property names within property paths. */
400
+ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
401
+ reIsPlainProp = /^\w*$/;
402
+
403
+ /**
404
+ * Checks if `value` is a property name and not a property path.
405
+ *
406
+ * @private
407
+ * @param {*} value The value to check.
408
+ * @param {Object} [object] The object to query keys on.
409
+ * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
410
+ */
411
+ function isKey(value, object) {
412
+ if (isEqual.isArray(value)) {
413
+ return false;
414
+ }
415
+ var type = typeof value;
416
+ if (type == 'number' || type == 'symbol' || type == 'boolean' ||
417
+ value == null || isSymbol(value)) {
418
+ return true;
419
+ }
420
+ return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
421
+ (object != null && value in Object(object));
422
+ }
423
+
424
+ /** Error message constants. */
425
+ var FUNC_ERROR_TEXT = 'Expected a function';
426
+
427
+ /**
428
+ * Creates a function that memoizes the result of `func`. If `resolver` is
429
+ * provided, it determines the cache key for storing the result based on the
430
+ * arguments provided to the memoized function. By default, the first argument
431
+ * provided to the memoized function is used as the map cache key. The `func`
432
+ * is invoked with the `this` binding of the memoized function.
433
+ *
434
+ * **Note:** The cache is exposed as the `cache` property on the memoized
435
+ * function. Its creation may be customized by replacing the `_.memoize.Cache`
436
+ * constructor with one whose instances implement the
437
+ * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
438
+ * method interface of `clear`, `delete`, `get`, `has`, and `set`.
439
+ *
440
+ * @static
441
+ * @memberOf _
442
+ * @since 0.1.0
443
+ * @category Function
444
+ * @param {Function} func The function to have its output memoized.
445
+ * @param {Function} [resolver] The function to resolve the cache key.
446
+ * @returns {Function} Returns the new memoized function.
447
+ * @example
448
+ *
449
+ * var object = { 'a': 1, 'b': 2 };
450
+ * var other = { 'c': 3, 'd': 4 };
451
+ *
452
+ * var values = _.memoize(_.values);
453
+ * values(object);
454
+ * // => [1, 2]
455
+ *
456
+ * values(other);
457
+ * // => [3, 4]
458
+ *
459
+ * object.a = 2;
460
+ * values(object);
461
+ * // => [1, 2]
462
+ *
463
+ * // Modify the result cache.
464
+ * values.cache.set(object, ['a', 'b']);
465
+ * values(object);
466
+ * // => ['a', 'b']
467
+ *
468
+ * // Replace `_.memoize.Cache`.
469
+ * _.memoize.Cache = WeakMap;
470
+ */
471
+ function memoize(func, resolver) {
472
+ if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
473
+ throw new TypeError(FUNC_ERROR_TEXT);
474
+ }
475
+ var memoized = function() {
476
+ var args = arguments,
477
+ key = resolver ? resolver.apply(this, args) : args[0],
478
+ cache = memoized.cache;
479
+
480
+ if (cache.has(key)) {
481
+ return cache.get(key);
482
+ }
483
+ var result = func.apply(this, args);
484
+ memoized.cache = cache.set(key, result) || cache;
485
+ return result;
486
+ };
487
+ memoized.cache = new (memoize.Cache || isEqual.MapCache);
488
+ return memoized;
489
+ }
490
+
491
+ // Expose `MapCache`.
492
+ memoize.Cache = isEqual.MapCache;
493
+
494
+ /** Used as the maximum memoize cache size. */
495
+ var MAX_MEMOIZE_SIZE = 500;
496
+
497
+ /**
498
+ * A specialized version of `_.memoize` which clears the memoized function's
499
+ * cache when it exceeds `MAX_MEMOIZE_SIZE`.
500
+ *
501
+ * @private
502
+ * @param {Function} func The function to have its output memoized.
503
+ * @returns {Function} Returns the new memoized function.
504
+ */
505
+ function memoizeCapped(func) {
506
+ var result = memoize(func, function(key) {
507
+ if (cache.size === MAX_MEMOIZE_SIZE) {
508
+ cache.clear();
509
+ }
510
+ return key;
511
+ });
512
+
513
+ var cache = result.cache;
514
+ return result;
515
+ }
516
+
517
+ /** Used to match property names within property paths. */
518
+ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
519
+
520
+ /** Used to match backslashes in property paths. */
521
+ var reEscapeChar = /\\(\\)?/g;
522
+
523
+ /**
524
+ * Converts `string` to a property path array.
525
+ *
526
+ * @private
527
+ * @param {string} string The string to convert.
528
+ * @returns {Array} Returns the property path array.
529
+ */
530
+ var stringToPath = memoizeCapped(function(string) {
531
+ var result = [];
532
+ if (string.charCodeAt(0) === 46 /* . */) {
533
+ result.push('');
534
+ }
535
+ string.replace(rePropName, function(match, number, quote, subString) {
536
+ result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
537
+ });
538
+ return result;
539
+ });
540
+
541
+ /**
542
+ * Converts `value` to a string. An empty string is returned for `null`
543
+ * and `undefined` values. The sign of `-0` is preserved.
544
+ *
545
+ * @static
546
+ * @memberOf _
547
+ * @since 4.0.0
548
+ * @category Lang
549
+ * @param {*} value The value to convert.
550
+ * @returns {string} Returns the converted string.
551
+ * @example
552
+ *
553
+ * _.toString(null);
554
+ * // => ''
555
+ *
556
+ * _.toString(-0);
557
+ * // => '-0'
558
+ *
559
+ * _.toString([1, 2, 3]);
560
+ * // => '1,2,3'
561
+ */
562
+ function toString(value) {
563
+ return value == null ? '' : baseToString(value);
564
+ }
565
+
566
+ /**
567
+ * Casts `value` to a path array if it's not one.
568
+ *
569
+ * @private
570
+ * @param {*} value The value to inspect.
571
+ * @param {Object} [object] The object to query keys on.
572
+ * @returns {Array} Returns the cast property path array.
573
+ */
574
+ function castPath(value, object) {
575
+ if (isEqual.isArray(value)) {
576
+ return value;
577
+ }
578
+ return isKey(value, object) ? [value] : stringToPath(toString(value));
579
+ }
580
+
581
+ /** Used as references for various `Number` constants. */
582
+ var INFINITY = 1 / 0;
583
+
584
+ /**
585
+ * Converts `value` to a string key if it's not a string or symbol.
586
+ *
587
+ * @private
588
+ * @param {*} value The value to inspect.
589
+ * @returns {string|symbol} Returns the key.
590
+ */
591
+ function toKey(value) {
592
+ if (typeof value == 'string' || isSymbol(value)) {
593
+ return value;
594
+ }
595
+ var result = (value + '');
596
+ return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
597
+ }
598
+
599
+ /**
600
+ * The base implementation of `_.get` without support for default values.
601
+ *
602
+ * @private
603
+ * @param {Object} object The object to query.
604
+ * @param {Array|string} path The path of the property to get.
605
+ * @returns {*} Returns the resolved value.
606
+ */
607
+ function baseGet(object, path) {
608
+ path = castPath(path, object);
609
+
610
+ var index = 0,
611
+ length = path.length;
612
+
613
+ while (object != null && index < length) {
614
+ object = object[toKey(path[index++])];
615
+ }
616
+ return (index && index == length) ? object : undefined;
617
+ }
618
+
619
+ /**
620
+ * Gets the value at `path` of `object`. If the resolved value is
621
+ * `undefined`, the `defaultValue` is returned in its place.
622
+ *
623
+ * @static
624
+ * @memberOf _
625
+ * @since 3.7.0
626
+ * @category Object
627
+ * @param {Object} object The object to query.
628
+ * @param {Array|string} path The path of the property to get.
629
+ * @param {*} [defaultValue] The value returned for `undefined` resolved values.
630
+ * @returns {*} Returns the resolved value.
631
+ * @example
632
+ *
633
+ * var object = { 'a': [{ 'b': { 'c': 3 } }] };
634
+ *
635
+ * _.get(object, 'a[0].b.c');
636
+ * // => 3
637
+ *
638
+ * _.get(object, ['a', '0', 'b', 'c']);
639
+ * // => 3
640
+ *
641
+ * _.get(object, 'a.b.c', 'default');
642
+ * // => 'default'
643
+ */
644
+ function get(object, path, defaultValue) {
645
+ var result = object == null ? undefined : baseGet(object, path);
646
+ return result === undefined ? defaultValue : result;
647
+ }
648
+
649
+ /** Built-in value references. */
650
+ var getPrototype = isEqual.overArg(Object.getPrototypeOf, Object);
651
+
652
+ /**
653
+ * The base implementation of `_.assign` without support for multiple sources
654
+ * or `customizer` functions.
655
+ *
656
+ * @private
657
+ * @param {Object} object The destination object.
658
+ * @param {Object} source The source object.
659
+ * @returns {Object} Returns `object`.
660
+ */
661
+ function baseAssign(object, source) {
662
+ return object && copyObject(source, isEqual.keys(source), object);
663
+ }
664
+
665
+ /**
666
+ * The base implementation of `_.assignIn` without support for multiple sources
667
+ * or `customizer` functions.
668
+ *
669
+ * @private
670
+ * @param {Object} object The destination object.
671
+ * @param {Object} source The source object.
672
+ * @returns {Object} Returns `object`.
673
+ */
674
+ function baseAssignIn(object, source) {
675
+ return object && copyObject(source, keysIn(source), object);
676
+ }
677
+
678
+ /** Detect free variable `exports`. */
679
+ var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
680
+
681
+ /** Detect free variable `module`. */
682
+ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
683
+
684
+ /** Detect the popular CommonJS extension `module.exports`. */
685
+ var moduleExports = freeModule && freeModule.exports === freeExports;
686
+
687
+ /** Built-in value references. */
688
+ var Buffer = moduleExports ? isEqual.root.Buffer : undefined,
689
+ allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
690
+
691
+ /**
692
+ * Creates a clone of `buffer`.
693
+ *
694
+ * @private
695
+ * @param {Buffer} buffer The buffer to clone.
696
+ * @param {boolean} [isDeep] Specify a deep clone.
697
+ * @returns {Buffer} Returns the cloned buffer.
698
+ */
699
+ function cloneBuffer(buffer, isDeep) {
700
+ if (isDeep) {
701
+ return buffer.slice();
702
+ }
703
+ var length = buffer.length,
704
+ result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
705
+
706
+ buffer.copy(result);
707
+ return result;
708
+ }
709
+
710
+ /**
711
+ * Copies own symbols of `source` to `object`.
712
+ *
713
+ * @private
714
+ * @param {Object} source The object to copy symbols from.
715
+ * @param {Object} [object={}] The object to copy symbols to.
716
+ * @returns {Object} Returns `object`.
717
+ */
718
+ function copySymbols(source, object) {
719
+ return copyObject(source, isEqual.getSymbols(source), object);
720
+ }
721
+
722
+ /* Built-in method references for those with the same name as other `lodash` methods. */
723
+ var nativeGetSymbols = Object.getOwnPropertySymbols;
724
+
725
+ /**
726
+ * Creates an array of the own and inherited enumerable symbols of `object`.
727
+ *
728
+ * @private
729
+ * @param {Object} object The object to query.
730
+ * @returns {Array} Returns the array of symbols.
731
+ */
732
+ var getSymbolsIn = !nativeGetSymbols ? isEqual.stubArray : function(object) {
733
+ var result = [];
734
+ while (object) {
735
+ isEqual.arrayPush(result, isEqual.getSymbols(object));
736
+ object = getPrototype(object);
737
+ }
738
+ return result;
739
+ };
740
+
741
+ /**
742
+ * Copies own and inherited symbols of `source` to `object`.
743
+ *
744
+ * @private
745
+ * @param {Object} source The object to copy symbols from.
746
+ * @param {Object} [object={}] The object to copy symbols to.
747
+ * @returns {Object} Returns `object`.
748
+ */
749
+ function copySymbolsIn(source, object) {
750
+ return copyObject(source, getSymbolsIn(source), object);
751
+ }
752
+
753
+ /**
754
+ * Creates an array of own and inherited enumerable property names and
755
+ * symbols of `object`.
756
+ *
757
+ * @private
758
+ * @param {Object} object The object to query.
759
+ * @returns {Array} Returns the array of property names and symbols.
760
+ */
761
+ function getAllKeysIn(object) {
762
+ return isEqual.baseGetAllKeys(object, keysIn, getSymbolsIn);
763
+ }
764
+
765
+ /** Used for built-in method references. */
766
+ var objectProto = Object.prototype;
767
+
768
+ /** Used to check objects for own properties. */
769
+ var hasOwnProperty = objectProto.hasOwnProperty;
770
+
771
+ /**
772
+ * Initializes an array clone.
773
+ *
774
+ * @private
775
+ * @param {Array} array The array to clone.
776
+ * @returns {Array} Returns the initialized clone.
777
+ */
778
+ function initCloneArray(array) {
779
+ var length = array.length,
780
+ result = new array.constructor(length);
781
+
782
+ // Add properties assigned by `RegExp#exec`.
783
+ if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
784
+ result.index = array.index;
785
+ result.input = array.input;
786
+ }
787
+ return result;
788
+ }
789
+
790
+ /**
791
+ * Creates a clone of `arrayBuffer`.
792
+ *
793
+ * @private
794
+ * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
795
+ * @returns {ArrayBuffer} Returns the cloned array buffer.
796
+ */
797
+ function cloneArrayBuffer(arrayBuffer) {
798
+ var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
799
+ new isEqual.Uint8Array(result).set(new isEqual.Uint8Array(arrayBuffer));
800
+ return result;
801
+ }
802
+
803
+ /**
804
+ * Creates a clone of `dataView`.
805
+ *
806
+ * @private
807
+ * @param {Object} dataView The data view to clone.
808
+ * @param {boolean} [isDeep] Specify a deep clone.
809
+ * @returns {Object} Returns the cloned data view.
810
+ */
811
+ function cloneDataView(dataView, isDeep) {
812
+ var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
813
+ return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
814
+ }
815
+
816
+ /** Used to match `RegExp` flags from their coerced string values. */
817
+ var reFlags = /\w*$/;
818
+
819
+ /**
820
+ * Creates a clone of `regexp`.
821
+ *
822
+ * @private
823
+ * @param {Object} regexp The regexp to clone.
824
+ * @returns {Object} Returns the cloned regexp.
825
+ */
826
+ function cloneRegExp(regexp) {
827
+ var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
828
+ result.lastIndex = regexp.lastIndex;
829
+ return result;
830
+ }
831
+
832
+ /** Used to convert symbols to primitives and strings. */
833
+ var symbolProto = isEqual.Symbol ? isEqual.Symbol.prototype : undefined,
834
+ symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
835
+
836
+ /**
837
+ * Creates a clone of the `symbol` object.
838
+ *
839
+ * @private
840
+ * @param {Object} symbol The symbol object to clone.
841
+ * @returns {Object} Returns the cloned symbol object.
842
+ */
843
+ function cloneSymbol(symbol) {
844
+ return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
845
+ }
846
+
847
+ /**
848
+ * Creates a clone of `typedArray`.
849
+ *
850
+ * @private
851
+ * @param {Object} typedArray The typed array to clone.
852
+ * @param {boolean} [isDeep] Specify a deep clone.
853
+ * @returns {Object} Returns the cloned typed array.
854
+ */
855
+ function cloneTypedArray(typedArray, isDeep) {
856
+ var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
857
+ return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
858
+ }
859
+
860
+ /** `Object#toString` result references. */
861
+ var boolTag$1 = '[object Boolean]',
862
+ dateTag$1 = '[object Date]',
863
+ mapTag$2 = '[object Map]',
864
+ numberTag$1 = '[object Number]',
865
+ regexpTag$1 = '[object RegExp]',
866
+ setTag$2 = '[object Set]',
867
+ stringTag$1 = '[object String]',
868
+ symbolTag$1 = '[object Symbol]';
869
+
870
+ var arrayBufferTag$1 = '[object ArrayBuffer]',
871
+ dataViewTag$1 = '[object DataView]',
872
+ float32Tag$1 = '[object Float32Array]',
873
+ float64Tag$1 = '[object Float64Array]',
874
+ int8Tag$1 = '[object Int8Array]',
875
+ int16Tag$1 = '[object Int16Array]',
876
+ int32Tag$1 = '[object Int32Array]',
877
+ uint8Tag$1 = '[object Uint8Array]',
878
+ uint8ClampedTag$1 = '[object Uint8ClampedArray]',
879
+ uint16Tag$1 = '[object Uint16Array]',
880
+ uint32Tag$1 = '[object Uint32Array]';
881
+
882
+ /**
883
+ * Initializes an object clone based on its `toStringTag`.
884
+ *
885
+ * **Note:** This function only supports cloning values with tags of
886
+ * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
887
+ *
888
+ * @private
889
+ * @param {Object} object The object to clone.
890
+ * @param {string} tag The `toStringTag` of the object to clone.
891
+ * @param {boolean} [isDeep] Specify a deep clone.
892
+ * @returns {Object} Returns the initialized clone.
893
+ */
894
+ function initCloneByTag(object, tag, isDeep) {
895
+ var Ctor = object.constructor;
896
+ switch (tag) {
897
+ case arrayBufferTag$1:
898
+ return cloneArrayBuffer(object);
899
+
900
+ case boolTag$1:
901
+ case dateTag$1:
902
+ return new Ctor(+object);
903
+
904
+ case dataViewTag$1:
905
+ return cloneDataView(object, isDeep);
906
+
907
+ case float32Tag$1: case float64Tag$1:
908
+ case int8Tag$1: case int16Tag$1: case int32Tag$1:
909
+ case uint8Tag$1: case uint8ClampedTag$1: case uint16Tag$1: case uint32Tag$1:
910
+ return cloneTypedArray(object, isDeep);
911
+
912
+ case mapTag$2:
913
+ return new Ctor;
914
+
915
+ case numberTag$1:
916
+ case stringTag$1:
917
+ return new Ctor(object);
918
+
919
+ case regexpTag$1:
920
+ return cloneRegExp(object);
921
+
922
+ case setTag$2:
923
+ return new Ctor;
924
+
925
+ case symbolTag$1:
926
+ return cloneSymbol(object);
927
+ }
928
+ }
929
+
930
+ /**
931
+ * Initializes an object clone.
932
+ *
933
+ * @private
934
+ * @param {Object} object The object to clone.
935
+ * @returns {Object} Returns the initialized clone.
936
+ */
937
+ function initCloneObject(object) {
938
+ return (typeof object.constructor == 'function' && !isEqual.isPrototype(object))
939
+ ? baseCreate(getPrototype(object))
940
+ : {};
941
+ }
942
+
943
+ /** `Object#toString` result references. */
944
+ var mapTag$1 = '[object Map]';
945
+
946
+ /**
947
+ * The base implementation of `_.isMap` without Node.js optimizations.
948
+ *
949
+ * @private
950
+ * @param {*} value The value to check.
951
+ * @returns {boolean} Returns `true` if `value` is a map, else `false`.
952
+ */
953
+ function baseIsMap(value) {
954
+ return isEqual.isObjectLike(value) && isEqual.getTag(value) == mapTag$1;
955
+ }
956
+
957
+ /* Node.js helper references. */
958
+ var nodeIsMap = isEqual.nodeUtil && isEqual.nodeUtil.isMap;
959
+
960
+ /**
961
+ * Checks if `value` is classified as a `Map` object.
962
+ *
963
+ * @static
964
+ * @memberOf _
965
+ * @since 4.3.0
966
+ * @category Lang
967
+ * @param {*} value The value to check.
968
+ * @returns {boolean} Returns `true` if `value` is a map, else `false`.
969
+ * @example
970
+ *
971
+ * _.isMap(new Map);
972
+ * // => true
973
+ *
974
+ * _.isMap(new WeakMap);
975
+ * // => false
976
+ */
977
+ var isMap = nodeIsMap ? isEqual.baseUnary(nodeIsMap) : baseIsMap;
978
+
979
+ /** `Object#toString` result references. */
980
+ var setTag$1 = '[object Set]';
981
+
982
+ /**
983
+ * The base implementation of `_.isSet` without Node.js optimizations.
984
+ *
985
+ * @private
986
+ * @param {*} value The value to check.
987
+ * @returns {boolean} Returns `true` if `value` is a set, else `false`.
988
+ */
989
+ function baseIsSet(value) {
990
+ return isEqual.isObjectLike(value) && isEqual.getTag(value) == setTag$1;
991
+ }
992
+
993
+ /* Node.js helper references. */
994
+ var nodeIsSet = isEqual.nodeUtil && isEqual.nodeUtil.isSet;
995
+
996
+ /**
997
+ * Checks if `value` is classified as a `Set` object.
998
+ *
999
+ * @static
1000
+ * @memberOf _
1001
+ * @since 4.3.0
1002
+ * @category Lang
1003
+ * @param {*} value The value to check.
1004
+ * @returns {boolean} Returns `true` if `value` is a set, else `false`.
1005
+ * @example
1006
+ *
1007
+ * _.isSet(new Set);
1008
+ * // => true
1009
+ *
1010
+ * _.isSet(new WeakSet);
1011
+ * // => false
1012
+ */
1013
+ var isSet = nodeIsSet ? isEqual.baseUnary(nodeIsSet) : baseIsSet;
1014
+
1015
+ /** Used to compose bitmasks for cloning. */
1016
+ var CLONE_DEEP_FLAG$1 = 1,
1017
+ CLONE_FLAT_FLAG = 2,
1018
+ CLONE_SYMBOLS_FLAG$1 = 4;
1019
+
1020
+ /** `Object#toString` result references. */
1021
+ var argsTag = '[object Arguments]',
1022
+ arrayTag = '[object Array]',
1023
+ boolTag = '[object Boolean]',
1024
+ dateTag = '[object Date]',
1025
+ errorTag = '[object Error]',
1026
+ funcTag = '[object Function]',
1027
+ genTag = '[object GeneratorFunction]',
1028
+ mapTag = '[object Map]',
1029
+ numberTag = '[object Number]',
1030
+ objectTag = '[object Object]',
1031
+ regexpTag = '[object RegExp]',
1032
+ setTag = '[object Set]',
1033
+ stringTag = '[object String]',
1034
+ symbolTag = '[object Symbol]',
1035
+ weakMapTag = '[object WeakMap]';
1036
+
1037
+ var arrayBufferTag = '[object ArrayBuffer]',
1038
+ dataViewTag = '[object DataView]',
1039
+ float32Tag = '[object Float32Array]',
1040
+ float64Tag = '[object Float64Array]',
1041
+ int8Tag = '[object Int8Array]',
1042
+ int16Tag = '[object Int16Array]',
1043
+ int32Tag = '[object Int32Array]',
1044
+ uint8Tag = '[object Uint8Array]',
1045
+ uint8ClampedTag = '[object Uint8ClampedArray]',
1046
+ uint16Tag = '[object Uint16Array]',
1047
+ uint32Tag = '[object Uint32Array]';
1048
+
1049
+ /** Used to identify `toStringTag` values supported by `_.clone`. */
1050
+ var cloneableTags = {};
1051
+ cloneableTags[argsTag] = cloneableTags[arrayTag] =
1052
+ cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
1053
+ cloneableTags[boolTag] = cloneableTags[dateTag] =
1054
+ cloneableTags[float32Tag] = cloneableTags[float64Tag] =
1055
+ cloneableTags[int8Tag] = cloneableTags[int16Tag] =
1056
+ cloneableTags[int32Tag] = cloneableTags[mapTag] =
1057
+ cloneableTags[numberTag] = cloneableTags[objectTag] =
1058
+ cloneableTags[regexpTag] = cloneableTags[setTag] =
1059
+ cloneableTags[stringTag] = cloneableTags[symbolTag] =
1060
+ cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
1061
+ cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
1062
+ cloneableTags[errorTag] = cloneableTags[funcTag] =
1063
+ cloneableTags[weakMapTag] = false;
1064
+
1065
+ /**
1066
+ * The base implementation of `_.clone` and `_.cloneDeep` which tracks
1067
+ * traversed objects.
1068
+ *
1069
+ * @private
1070
+ * @param {*} value The value to clone.
1071
+ * @param {boolean} bitmask The bitmask flags.
1072
+ * 1 - Deep clone
1073
+ * 2 - Flatten inherited properties
1074
+ * 4 - Clone symbols
1075
+ * @param {Function} [customizer] The function to customize cloning.
1076
+ * @param {string} [key] The key of `value`.
1077
+ * @param {Object} [object] The parent object of `value`.
1078
+ * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
1079
+ * @returns {*} Returns the cloned value.
1080
+ */
1081
+ function baseClone(value, bitmask, customizer, key, object, stack) {
1082
+ var result,
1083
+ isDeep = bitmask & CLONE_DEEP_FLAG$1,
1084
+ isFlat = bitmask & CLONE_FLAT_FLAG,
1085
+ isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
1086
+
1087
+ if (customizer) {
1088
+ result = object ? customizer(value, key, object, stack) : customizer(value);
1089
+ }
1090
+ if (result !== undefined) {
1091
+ return result;
1092
+ }
1093
+ if (!isEqual.isObject(value)) {
1094
+ return value;
1095
+ }
1096
+ var isArr = isEqual.isArray(value);
1097
+ if (isArr) {
1098
+ result = initCloneArray(value);
1099
+ if (!isDeep) {
1100
+ return copyArray(value, result);
1101
+ }
1102
+ } else {
1103
+ var tag = isEqual.getTag(value),
1104
+ isFunc = tag == funcTag || tag == genTag;
1105
+
1106
+ if (isEqual.isBuffer(value)) {
1107
+ return cloneBuffer(value, isDeep);
1108
+ }
1109
+ if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
1110
+ result = (isFlat || isFunc) ? {} : initCloneObject(value);
1111
+ if (!isDeep) {
1112
+ return isFlat
1113
+ ? copySymbolsIn(value, baseAssignIn(result, value))
1114
+ : copySymbols(value, baseAssign(result, value));
1115
+ }
1116
+ } else {
1117
+ if (!cloneableTags[tag]) {
1118
+ return object ? value : {};
1119
+ }
1120
+ result = initCloneByTag(value, tag, isDeep);
1121
+ }
1122
+ }
1123
+ // Check for circular references and return its corresponding clone.
1124
+ stack || (stack = new isEqual.Stack);
1125
+ var stacked = stack.get(value);
1126
+ if (stacked) {
1127
+ return stacked;
1128
+ }
1129
+ stack.set(value, result);
1130
+
1131
+ if (isSet(value)) {
1132
+ value.forEach(function(subValue) {
1133
+ result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
1134
+ });
1135
+ } else if (isMap(value)) {
1136
+ value.forEach(function(subValue, key) {
1137
+ result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
1138
+ });
1139
+ }
1140
+
1141
+ var keysFunc = isFull
1142
+ ? (isFlat ? getAllKeysIn : isEqual.getAllKeys)
1143
+ : (isFlat ? keysIn : isEqual.keys);
1144
+
1145
+ var props = isArr ? undefined : keysFunc(value);
1146
+ arrayEach(props || value, function(subValue, key) {
1147
+ if (props) {
1148
+ key = subValue;
1149
+ subValue = value[key];
1150
+ }
1151
+ // Recursively populate clone (susceptible to call stack limits).
1152
+ assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
1153
+ });
1154
+ return result;
1155
+ }
1156
+
1157
+ /** Used to compose bitmasks for cloning. */
1158
+ var CLONE_DEEP_FLAG = 1,
1159
+ CLONE_SYMBOLS_FLAG = 4;
1160
+
1161
+ /**
1162
+ * This method is like `_.clone` except that it recursively clones `value`.
1163
+ *
1164
+ * @static
1165
+ * @memberOf _
1166
+ * @since 1.0.0
1167
+ * @category Lang
1168
+ * @param {*} value The value to recursively clone.
1169
+ * @returns {*} Returns the deep cloned value.
1170
+ * @see _.clone
1171
+ * @example
1172
+ *
1173
+ * var objects = [{ 'a': 1 }, { 'b': 2 }];
1174
+ *
1175
+ * var deep = _.cloneDeep(objects);
1176
+ * console.log(deep[0] === objects[0]);
1177
+ * // => false
1178
+ */
1179
+ function cloneDeep(value) {
1180
+ return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
1181
+ }
1182
+
92
1183
  const gridCss = ":host{display:block;--wcs-grid-highlight-color:var(--wcs-light)}:host th{background-color:var(--wcs-light)}:host th:not(:first-child){border-left:solid 1px var(--wcs-text-light)}:host ::slotted([slot=grid-column]:first-child){--wcs-grid-column-border-left:none}:host table{width:100%;border-spacing:0}:host td{color:var(--wcs-gray-light);margin:0;padding:calc(var(--wcs-padding) / 2) var(--wcs-padding)}:host tr:not(:last-child) td{border-bottom:solid 1px var(--wcs-text-light)}:host .wcs-grid-selection-column{padding:calc(var(--wcs-padding) / 2) var(--wcs-padding);width:40px}:host tr.selected{background-color:var(--wcs-grid-highlight-color)}:host .loading{text-align:center}:host([selection]) ::slotted([slot=grid-column]:first-child){--wcs-grid-column-border-left:solid 1px var(--wcs-text-light) !important}";
93
1184
 
94
1185
  const Grid = class {
@@ -96,7 +1187,7 @@ const Grid = class {
96
1187
  index.registerInstance(this, hostRef);
97
1188
  this.wcsGridSelectionChange = index.createEvent(this, "wcsGridSelectionChange", 7);
98
1189
  this.wcsGridAllSelectionChange = index.createEvent(this, "wcsGridAllSelectionChange", 7);
99
- this.serverMode = undefined;
1190
+ this.serverMode = false;
100
1191
  this.data = undefined;
101
1192
  this.loading = undefined;
102
1193
  this.selectionConfig = 'none';
@@ -123,7 +1214,7 @@ const Grid = class {
123
1214
  if (this.selectionConfig === 'single') {
124
1215
  this.rows.map(r => r.selected = false);
125
1216
  for (const row of this.rows) {
126
- if (lodash.lodash.isEqual(row.data, values)) {
1217
+ if (isEqual.isEqual(row.data, values)) {
127
1218
  row.selected = true;
128
1219
  break; // only one line can be selected
129
1220
  }
@@ -132,12 +1223,12 @@ const Grid = class {
132
1223
  else if (this.selectionConfig === 'multiple') {
133
1224
  this.rows.map(r => r.selected = false);
134
1225
  for (const row of this.rows) {
135
- if (values.find(x => lodash.lodash.isEqual(x, row.data))) {
1226
+ if (values.find(x => isEqual.isEqual(x, row.data))) {
136
1227
  row.selected = true;
137
1228
  }
138
1229
  }
139
1230
  }
140
- this.rows = lodash.lodash.cloneDeep(this.rows);
1231
+ this.rows = cloneDeep(this.rows);
141
1232
  }
142
1233
  wcsGridRowToWcsGridRowData(row) {
143
1234
  return { selected: row.selected, page: row.page, data: row.data };
@@ -145,6 +1236,7 @@ const Grid = class {
145
1236
  updateGridRows(data) {
146
1237
  const rows = [];
147
1238
  if (data && this.columns) {
1239
+ // eslint-disable-next-line @typescript-eslint/prefer-for-of
148
1240
  for (let i = 0; i < data.length; i++) {
149
1241
  const row = {
150
1242
  uuid: v4(),
@@ -154,7 +1246,7 @@ const Grid = class {
154
1246
  };
155
1247
  for (const column of this.columns) {
156
1248
  row.cells.push({
157
- content: lodash.lodash.get(data[i], column.path),
1249
+ content: get(data[i], column.path),
158
1250
  column,
159
1251
  formatter: column.formatter
160
1252
  });
@@ -218,14 +1310,14 @@ const Grid = class {
218
1310
  */
219
1311
  sortBy(colmun) {
220
1312
  if (colmun.sortFn) {
221
- this.rows = lodash.lodash.cloneDeep(this.rows)
1313
+ this.rows = cloneDeep(this.rows)
222
1314
  .sort((a, b) => colmun.sortFn(a.data, b.data, colmun) * getSortOrderInteger(colmun.sortOrder));
223
1315
  }
224
1316
  else {
225
- this.rows = lodash.lodash.cloneDeep(this.rows)
1317
+ this.rows = cloneDeep(this.rows)
226
1318
  .sort((a, b) => {
227
1319
  const path = colmun.path;
228
- return ((lodash.lodash.get(a.data, path) < lodash.lodash.get(b.data, path)) ? -1 : (lodash.lodash.get(a.data, path) > lodash.lodash.get(b.data, path)) ? 1 : 0) * getSortOrderInteger(colmun.sortOrder);
1320
+ return ((get(a.data, path) < get(b.data, path)) ? -1 : (get(a.data, path) > get(b.data, path)) ? 1 : 0) * getSortOrderInteger(colmun.sortOrder);
229
1321
  });
230
1322
  }
231
1323
  }
@@ -242,7 +1334,7 @@ const Grid = class {
242
1334
  else if (this.paginationEl.pageCount > 0 && this.paginationEl.currentPage + 1 > this.paginationEl.pageCount) {
243
1335
  this.paginationEl.currentPage = this.paginationEl.pageCount - 1;
244
1336
  }
245
- const rows = lodash.lodash.cloneDeep(this.rows);
1337
+ const rows = cloneDeep(this.rows);
246
1338
  rows.forEach((row, index) => row.page = Math.floor(index / this.paginationEl.pageSize));
247
1339
  this.rows = [...rows];
248
1340
  }
@@ -268,14 +1360,14 @@ const Grid = class {
268
1360
  if (this.selectionConfig !== 'single' || row.selected) {
269
1361
  this.wcsGridSelectionChange.emit({ row: this.wcsGridRowToWcsGridRowData(row) });
270
1362
  }
271
- this.rows = lodash.lodash.cloneDeep(this.rows);
1363
+ this.rows = cloneDeep(this.rows);
272
1364
  }
273
1365
  selectAllRows() {
274
1366
  const rows = this.getRowsForCurrentPage();
275
1367
  const selected = !this.allRowsAreSelected();
276
1368
  rows.map(r => r.selected = selected);
277
1369
  this.wcsGridAllSelectionChange.emit({ rows: selected ? rows.map(row => this.wcsGridRowToWcsGridRowData(row)) : [] });
278
- this.rows = lodash.lodash.cloneDeep(this.rows);
1370
+ this.rows = cloneDeep(this.rows);
279
1371
  }
280
1372
  allRowsAreSelected() {
281
1373
  const rows = this.getRowsForCurrentPage();