@revolist/revogrid 4.9.0 → 4.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/dist/cjs/revogr-attribution_6.cjs.entry.js +14 -8
  2. package/dist/cjs/revogr-attribution_6.cjs.entry.js.map +1 -1
  3. package/dist/cjs/revogr-clipboard_3.cjs.entry.js +5 -2
  4. package/dist/cjs/revogr-clipboard_3.cjs.entry.js.map +1 -1
  5. package/dist/cjs/revogr-data_4.cjs.entry.js +17 -4
  6. package/dist/cjs/revogr-data_4.cjs.entry.js.map +1 -1
  7. package/dist/collection/components/clipboard/revogr-clipboard.js +66 -87
  8. package/dist/collection/components/clipboard/revogr-clipboard.js.map +1 -1
  9. package/dist/collection/components/header/header-renderer.js +18 -5
  10. package/dist/collection/components/header/header-renderer.js.map +1 -1
  11. package/dist/collection/components/header/revogr-header.js +2 -2
  12. package/dist/collection/components/overlay/autofill.service.js +6 -8
  13. package/dist/collection/components/overlay/autofill.service.js.map +1 -1
  14. package/dist/collection/components/overlay/revogr-overlay-selection.js +22 -10
  15. package/dist/collection/components/overlay/revogr-overlay-selection.js.map +1 -1
  16. package/dist/collection/components/overlay/selection.utils.js +9 -1
  17. package/dist/collection/components/overlay/selection.utils.js.map +1 -1
  18. package/dist/collection/types/interfaces.js.map +1 -1
  19. package/dist/esm/revogr-attribution_6.entry.js +15 -9
  20. package/dist/esm/revogr-attribution_6.entry.js.map +1 -1
  21. package/dist/esm/revogr-clipboard_3.entry.js +5 -2
  22. package/dist/esm/revogr-clipboard_3.entry.js.map +1 -1
  23. package/dist/esm/revogr-data_4.entry.js +17 -4
  24. package/dist/esm/revogr-data_4.entry.js.map +1 -1
  25. package/dist/revo-grid/revogr-attribution_6.entry.js +1 -1
  26. package/dist/revo-grid/revogr-attribution_6.entry.js.map +1 -1
  27. package/dist/revo-grid/revogr-clipboard_3.entry.js.map +1 -1
  28. package/dist/revo-grid/revogr-data_4.entry.js +1 -1
  29. package/dist/revo-grid/revogr-data_4.entry.js.map +1 -1
  30. package/dist/types/components/clipboard/revogr-clipboard.d.ts +32 -24
  31. package/dist/types/components/overlay/autofill.service.d.ts +3 -1
  32. package/dist/types/components/overlay/revogr-overlay-selection.d.ts +12 -3
  33. package/dist/types/components/overlay/selection.utils.d.ts +4 -1
  34. package/dist/types/components.d.ts +67 -42
  35. package/dist/types/types/interfaces.d.ts +16 -1
  36. package/hydrate/index.js +36 -14
  37. package/hydrate/index.mjs +36 -14
  38. package/package.json +1 -1
  39. package/readme.md +2 -0
  40. package/standalone/column.service.js +1 -2
  41. package/standalone/column.service.js.map +1 -1
  42. package/standalone/data.store.js +2950 -3
  43. package/standalone/data.store.js.map +1 -1
  44. package/standalone/debounce.js +1 -1
  45. package/standalone/dimension.helpers.js +2 -2
  46. package/standalone/revo-grid.js +1 -2
  47. package/standalone/revo-grid.js.map +1 -1
  48. package/standalone/revogr-clipboard2.js +5 -2
  49. package/standalone/revogr-clipboard2.js.map +1 -1
  50. package/standalone/revogr-data2.js +0 -1
  51. package/standalone/revogr-data2.js.map +1 -1
  52. package/standalone/revogr-focus2.js +0 -1
  53. package/standalone/revogr-focus2.js.map +1 -1
  54. package/standalone/revogr-header2.js +18 -6
  55. package/standalone/revogr-header2.js.map +1 -1
  56. package/standalone/revogr-order-editor2.js +0 -1
  57. package/standalone/revogr-order-editor2.js.map +1 -1
  58. package/standalone/revogr-overlay-selection2.js +8 -11
  59. package/standalone/revogr-overlay-selection2.js.map +1 -1
  60. package/standalone/revogr-row-headers2.js +0 -1
  61. package/standalone/revogr-row-headers2.js.map +1 -1
  62. package/standalone/selection.utils.js +10 -2
  63. package/standalone/selection.utils.js.map +1 -1
  64. package/standalone/toNumber.js +1 -1
  65. package/standalone/_baseIteratee.js +0 -2956
  66. package/standalone/_baseIteratee.js.map +0 -1
@@ -1,2956 +0,0 @@
1
- /*!
2
- * Built by Revolist OU ❤️
3
- */
4
- import { _ as _baseGetTag, a as isObject_1, c as _root, d as _Symbol, i as isObjectLike_1, e as _freeGlobal, b as isSymbol_1 } from './toNumber.js';
5
-
6
- /**
7
- * Removes all key-value entries from the list cache.
8
- *
9
- * @private
10
- * @name clear
11
- * @memberOf ListCache
12
- */
13
-
14
- function listCacheClear$1() {
15
- this.__data__ = [];
16
- this.size = 0;
17
- }
18
-
19
- var _listCacheClear = listCacheClear$1;
20
-
21
- /**
22
- * Performs a
23
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
24
- * comparison between two values to determine if they are equivalent.
25
- *
26
- * @static
27
- * @memberOf _
28
- * @since 4.0.0
29
- * @category Lang
30
- * @param {*} value The value to compare.
31
- * @param {*} other The other value to compare.
32
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
33
- * @example
34
- *
35
- * var object = { 'a': 1 };
36
- * var other = { 'a': 1 };
37
- *
38
- * _.eq(object, object);
39
- * // => true
40
- *
41
- * _.eq(object, other);
42
- * // => false
43
- *
44
- * _.eq('a', 'a');
45
- * // => true
46
- *
47
- * _.eq('a', Object('a'));
48
- * // => false
49
- *
50
- * _.eq(NaN, NaN);
51
- * // => true
52
- */
53
-
54
- function eq$2(value, other) {
55
- return value === other || (value !== value && other !== other);
56
- }
57
-
58
- var eq_1 = eq$2;
59
-
60
- var eq$1 = eq_1;
61
-
62
- /**
63
- * Gets the index at which the `key` is found in `array` of key-value pairs.
64
- *
65
- * @private
66
- * @param {Array} array The array to inspect.
67
- * @param {*} key The key to search for.
68
- * @returns {number} Returns the index of the matched value, else `-1`.
69
- */
70
- function assocIndexOf$4(array, key) {
71
- var length = array.length;
72
- while (length--) {
73
- if (eq$1(array[length][0], key)) {
74
- return length;
75
- }
76
- }
77
- return -1;
78
- }
79
-
80
- var _assocIndexOf = assocIndexOf$4;
81
-
82
- var assocIndexOf$3 = _assocIndexOf;
83
-
84
- /** Used for built-in method references. */
85
- var arrayProto = Array.prototype;
86
-
87
- /** Built-in value references. */
88
- var splice = arrayProto.splice;
89
-
90
- /**
91
- * Removes `key` and its value from the list cache.
92
- *
93
- * @private
94
- * @name delete
95
- * @memberOf ListCache
96
- * @param {string} key The key of the value to remove.
97
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
98
- */
99
- function listCacheDelete$1(key) {
100
- var data = this.__data__,
101
- index = assocIndexOf$3(data, key);
102
-
103
- if (index < 0) {
104
- return false;
105
- }
106
- var lastIndex = data.length - 1;
107
- if (index == lastIndex) {
108
- data.pop();
109
- } else {
110
- splice.call(data, index, 1);
111
- }
112
- --this.size;
113
- return true;
114
- }
115
-
116
- var _listCacheDelete = listCacheDelete$1;
117
-
118
- var assocIndexOf$2 = _assocIndexOf;
119
-
120
- /**
121
- * Gets the list cache value for `key`.
122
- *
123
- * @private
124
- * @name get
125
- * @memberOf ListCache
126
- * @param {string} key The key of the value to get.
127
- * @returns {*} Returns the entry value.
128
- */
129
- function listCacheGet$1(key) {
130
- var data = this.__data__,
131
- index = assocIndexOf$2(data, key);
132
-
133
- return index < 0 ? undefined : data[index][1];
134
- }
135
-
136
- var _listCacheGet = listCacheGet$1;
137
-
138
- var assocIndexOf$1 = _assocIndexOf;
139
-
140
- /**
141
- * Checks if a list cache value for `key` exists.
142
- *
143
- * @private
144
- * @name has
145
- * @memberOf ListCache
146
- * @param {string} key The key of the entry to check.
147
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
148
- */
149
- function listCacheHas$1(key) {
150
- return assocIndexOf$1(this.__data__, key) > -1;
151
- }
152
-
153
- var _listCacheHas = listCacheHas$1;
154
-
155
- var assocIndexOf = _assocIndexOf;
156
-
157
- /**
158
- * Sets the list cache `key` to `value`.
159
- *
160
- * @private
161
- * @name set
162
- * @memberOf ListCache
163
- * @param {string} key The key of the value to set.
164
- * @param {*} value The value to set.
165
- * @returns {Object} Returns the list cache instance.
166
- */
167
- function listCacheSet$1(key, value) {
168
- var data = this.__data__,
169
- index = assocIndexOf(data, key);
170
-
171
- if (index < 0) {
172
- ++this.size;
173
- data.push([key, value]);
174
- } else {
175
- data[index][1] = value;
176
- }
177
- return this;
178
- }
179
-
180
- var _listCacheSet = listCacheSet$1;
181
-
182
- var listCacheClear = _listCacheClear,
183
- listCacheDelete = _listCacheDelete,
184
- listCacheGet = _listCacheGet,
185
- listCacheHas = _listCacheHas,
186
- listCacheSet = _listCacheSet;
187
-
188
- /**
189
- * Creates an list cache object.
190
- *
191
- * @private
192
- * @constructor
193
- * @param {Array} [entries] The key-value pairs to cache.
194
- */
195
- function ListCache$4(entries) {
196
- var index = -1,
197
- length = entries == null ? 0 : entries.length;
198
-
199
- this.clear();
200
- while (++index < length) {
201
- var entry = entries[index];
202
- this.set(entry[0], entry[1]);
203
- }
204
- }
205
-
206
- // Add methods to `ListCache`.
207
- ListCache$4.prototype.clear = listCacheClear;
208
- ListCache$4.prototype['delete'] = listCacheDelete;
209
- ListCache$4.prototype.get = listCacheGet;
210
- ListCache$4.prototype.has = listCacheHas;
211
- ListCache$4.prototype.set = listCacheSet;
212
-
213
- var _ListCache = ListCache$4;
214
-
215
- var ListCache$3 = _ListCache;
216
-
217
- /**
218
- * Removes all key-value entries from the stack.
219
- *
220
- * @private
221
- * @name clear
222
- * @memberOf Stack
223
- */
224
- function stackClear$1() {
225
- this.__data__ = new ListCache$3;
226
- this.size = 0;
227
- }
228
-
229
- var _stackClear = stackClear$1;
230
-
231
- /**
232
- * Removes `key` and its value from the stack.
233
- *
234
- * @private
235
- * @name delete
236
- * @memberOf Stack
237
- * @param {string} key The key of the value to remove.
238
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
239
- */
240
-
241
- function stackDelete$1(key) {
242
- var data = this.__data__,
243
- result = data['delete'](key);
244
-
245
- this.size = data.size;
246
- return result;
247
- }
248
-
249
- var _stackDelete = stackDelete$1;
250
-
251
- /**
252
- * Gets the stack value for `key`.
253
- *
254
- * @private
255
- * @name get
256
- * @memberOf Stack
257
- * @param {string} key The key of the value to get.
258
- * @returns {*} Returns the entry value.
259
- */
260
-
261
- function stackGet$1(key) {
262
- return this.__data__.get(key);
263
- }
264
-
265
- var _stackGet = stackGet$1;
266
-
267
- /**
268
- * Checks if a stack value for `key` exists.
269
- *
270
- * @private
271
- * @name has
272
- * @memberOf Stack
273
- * @param {string} key The key of the entry to check.
274
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
275
- */
276
-
277
- function stackHas$1(key) {
278
- return this.__data__.has(key);
279
- }
280
-
281
- var _stackHas = stackHas$1;
282
-
283
- var baseGetTag$3 = _baseGetTag,
284
- isObject$2 = isObject_1;
285
-
286
- /** `Object#toString` result references. */
287
- var asyncTag = '[object AsyncFunction]',
288
- funcTag$1 = '[object Function]',
289
- genTag = '[object GeneratorFunction]',
290
- proxyTag = '[object Proxy]';
291
-
292
- /**
293
- * Checks if `value` is classified as a `Function` object.
294
- *
295
- * @static
296
- * @memberOf _
297
- * @since 0.1.0
298
- * @category Lang
299
- * @param {*} value The value to check.
300
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
301
- * @example
302
- *
303
- * _.isFunction(_);
304
- * // => true
305
- *
306
- * _.isFunction(/abc/);
307
- * // => false
308
- */
309
- function isFunction$2(value) {
310
- if (!isObject$2(value)) {
311
- return false;
312
- }
313
- // The use of `Object#toString` avoids issues with the `typeof` operator
314
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
315
- var tag = baseGetTag$3(value);
316
- return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
317
- }
318
-
319
- var isFunction_1 = isFunction$2;
320
-
321
- var root$6 = _root;
322
-
323
- /** Used to detect overreaching core-js shims. */
324
- var coreJsData$1 = root$6['__core-js_shared__'];
325
-
326
- var _coreJsData = coreJsData$1;
327
-
328
- var coreJsData = _coreJsData;
329
-
330
- /** Used to detect methods masquerading as native. */
331
- var maskSrcKey = (function() {
332
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
333
- return uid ? ('Symbol(src)_1.' + uid) : '';
334
- }());
335
-
336
- /**
337
- * Checks if `func` has its source masked.
338
- *
339
- * @private
340
- * @param {Function} func The function to check.
341
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
342
- */
343
- function isMasked$1(func) {
344
- return !!maskSrcKey && (maskSrcKey in func);
345
- }
346
-
347
- var _isMasked = isMasked$1;
348
-
349
- /** Used for built-in method references. */
350
-
351
- var funcProto$1 = Function.prototype;
352
-
353
- /** Used to resolve the decompiled source of functions. */
354
- var funcToString$1 = funcProto$1.toString;
355
-
356
- /**
357
- * Converts `func` to its source code.
358
- *
359
- * @private
360
- * @param {Function} func The function to convert.
361
- * @returns {string} Returns the source code.
362
- */
363
- function toSource$2(func) {
364
- if (func != null) {
365
- try {
366
- return funcToString$1.call(func);
367
- } catch (e) {}
368
- try {
369
- return (func + '');
370
- } catch (e) {}
371
- }
372
- return '';
373
- }
374
-
375
- var _toSource = toSource$2;
376
-
377
- var isFunction$1 = isFunction_1,
378
- isMasked = _isMasked,
379
- isObject$1 = isObject_1,
380
- toSource$1 = _toSource;
381
-
382
- /**
383
- * Used to match `RegExp`
384
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
385
- */
386
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
387
-
388
- /** Used to detect host constructors (Safari). */
389
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
390
-
391
- /** Used for built-in method references. */
392
- var funcProto = Function.prototype,
393
- objectProto$9 = Object.prototype;
394
-
395
- /** Used to resolve the decompiled source of functions. */
396
- var funcToString = funcProto.toString;
397
-
398
- /** Used to check objects for own properties. */
399
- var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
400
-
401
- /** Used to detect if a method is native. */
402
- var reIsNative = RegExp('^' +
403
- funcToString.call(hasOwnProperty$7).replace(reRegExpChar, '\\$&')
404
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
405
- );
406
-
407
- /**
408
- * The base implementation of `_.isNative` without bad shim checks.
409
- *
410
- * @private
411
- * @param {*} value The value to check.
412
- * @returns {boolean} Returns `true` if `value` is a native function,
413
- * else `false`.
414
- */
415
- function baseIsNative$1(value) {
416
- if (!isObject$1(value) || isMasked(value)) {
417
- return false;
418
- }
419
- var pattern = isFunction$1(value) ? reIsNative : reIsHostCtor;
420
- return pattern.test(toSource$1(value));
421
- }
422
-
423
- var _baseIsNative = baseIsNative$1;
424
-
425
- /**
426
- * Gets the value at `key` of `object`.
427
- *
428
- * @private
429
- * @param {Object} [object] The object to query.
430
- * @param {string} key The key of the property to get.
431
- * @returns {*} Returns the property value.
432
- */
433
-
434
- function getValue$1(object, key) {
435
- return object == null ? undefined : object[key];
436
- }
437
-
438
- var _getValue = getValue$1;
439
-
440
- var baseIsNative = _baseIsNative,
441
- getValue = _getValue;
442
-
443
- /**
444
- * Gets the native function at `key` of `object`.
445
- *
446
- * @private
447
- * @param {Object} object The object to query.
448
- * @param {string} key The key of the method to get.
449
- * @returns {*} Returns the function if it's native, else `undefined`.
450
- */
451
- function getNative$6(object, key) {
452
- var value = getValue(object, key);
453
- return baseIsNative(value) ? value : undefined;
454
- }
455
-
456
- var _getNative = getNative$6;
457
-
458
- var getNative$5 = _getNative,
459
- root$5 = _root;
460
-
461
- /* Built-in method references that are verified to be native. */
462
- var Map$3 = getNative$5(root$5, 'Map');
463
-
464
- var _Map = Map$3;
465
-
466
- var getNative$4 = _getNative;
467
-
468
- /* Built-in method references that are verified to be native. */
469
- var nativeCreate$4 = getNative$4(Object, 'create');
470
-
471
- var _nativeCreate = nativeCreate$4;
472
-
473
- var nativeCreate$3 = _nativeCreate;
474
-
475
- /**
476
- * Removes all key-value entries from the hash.
477
- *
478
- * @private
479
- * @name clear
480
- * @memberOf Hash
481
- */
482
- function hashClear$1() {
483
- this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
484
- this.size = 0;
485
- }
486
-
487
- var _hashClear = hashClear$1;
488
-
489
- /**
490
- * Removes `key` and its value from the hash.
491
- *
492
- * @private
493
- * @name delete
494
- * @memberOf Hash
495
- * @param {Object} hash The hash to modify.
496
- * @param {string} key The key of the value to remove.
497
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
498
- */
499
-
500
- function hashDelete$1(key) {
501
- var result = this.has(key) && delete this.__data__[key];
502
- this.size -= result ? 1 : 0;
503
- return result;
504
- }
505
-
506
- var _hashDelete = hashDelete$1;
507
-
508
- var nativeCreate$2 = _nativeCreate;
509
-
510
- /** Used to stand-in for `undefined` hash values. */
511
- var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
512
-
513
- /** Used for built-in method references. */
514
- var objectProto$8 = Object.prototype;
515
-
516
- /** Used to check objects for own properties. */
517
- var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
518
-
519
- /**
520
- * Gets the hash value for `key`.
521
- *
522
- * @private
523
- * @name get
524
- * @memberOf Hash
525
- * @param {string} key The key of the value to get.
526
- * @returns {*} Returns the entry value.
527
- */
528
- function hashGet$1(key) {
529
- var data = this.__data__;
530
- if (nativeCreate$2) {
531
- var result = data[key];
532
- return result === HASH_UNDEFINED$2 ? undefined : result;
533
- }
534
- return hasOwnProperty$6.call(data, key) ? data[key] : undefined;
535
- }
536
-
537
- var _hashGet = hashGet$1;
538
-
539
- var nativeCreate$1 = _nativeCreate;
540
-
541
- /** Used for built-in method references. */
542
- var objectProto$7 = Object.prototype;
543
-
544
- /** Used to check objects for own properties. */
545
- var hasOwnProperty$5 = objectProto$7.hasOwnProperty;
546
-
547
- /**
548
- * Checks if a hash value for `key` exists.
549
- *
550
- * @private
551
- * @name has
552
- * @memberOf Hash
553
- * @param {string} key The key of the entry to check.
554
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
555
- */
556
- function hashHas$1(key) {
557
- var data = this.__data__;
558
- return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$5.call(data, key);
559
- }
560
-
561
- var _hashHas = hashHas$1;
562
-
563
- var nativeCreate = _nativeCreate;
564
-
565
- /** Used to stand-in for `undefined` hash values. */
566
- var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
567
-
568
- /**
569
- * Sets the hash `key` to `value`.
570
- *
571
- * @private
572
- * @name set
573
- * @memberOf Hash
574
- * @param {string} key The key of the value to set.
575
- * @param {*} value The value to set.
576
- * @returns {Object} Returns the hash instance.
577
- */
578
- function hashSet$1(key, value) {
579
- var data = this.__data__;
580
- this.size += this.has(key) ? 0 : 1;
581
- data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED$1 : value;
582
- return this;
583
- }
584
-
585
- var _hashSet = hashSet$1;
586
-
587
- var hashClear = _hashClear,
588
- hashDelete = _hashDelete,
589
- hashGet = _hashGet,
590
- hashHas = _hashHas,
591
- hashSet = _hashSet;
592
-
593
- /**
594
- * Creates a hash object.
595
- *
596
- * @private
597
- * @constructor
598
- * @param {Array} [entries] The key-value pairs to cache.
599
- */
600
- function Hash$1(entries) {
601
- var index = -1,
602
- length = entries == null ? 0 : entries.length;
603
-
604
- this.clear();
605
- while (++index < length) {
606
- var entry = entries[index];
607
- this.set(entry[0], entry[1]);
608
- }
609
- }
610
-
611
- // Add methods to `Hash`.
612
- Hash$1.prototype.clear = hashClear;
613
- Hash$1.prototype['delete'] = hashDelete;
614
- Hash$1.prototype.get = hashGet;
615
- Hash$1.prototype.has = hashHas;
616
- Hash$1.prototype.set = hashSet;
617
-
618
- var _Hash = Hash$1;
619
-
620
- var Hash = _Hash,
621
- ListCache$2 = _ListCache,
622
- Map$2 = _Map;
623
-
624
- /**
625
- * Removes all key-value entries from the map.
626
- *
627
- * @private
628
- * @name clear
629
- * @memberOf MapCache
630
- */
631
- function mapCacheClear$1() {
632
- this.size = 0;
633
- this.__data__ = {
634
- 'hash': new Hash,
635
- 'map': new (Map$2 || ListCache$2),
636
- 'string': new Hash
637
- };
638
- }
639
-
640
- var _mapCacheClear = mapCacheClear$1;
641
-
642
- /**
643
- * Checks if `value` is suitable for use as unique object key.
644
- *
645
- * @private
646
- * @param {*} value The value to check.
647
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
648
- */
649
-
650
- function isKeyable$1(value) {
651
- var type = typeof value;
652
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
653
- ? (value !== '__proto__')
654
- : (value === null);
655
- }
656
-
657
- var _isKeyable = isKeyable$1;
658
-
659
- var isKeyable = _isKeyable;
660
-
661
- /**
662
- * Gets the data for `map`.
663
- *
664
- * @private
665
- * @param {Object} map The map to query.
666
- * @param {string} key The reference key.
667
- * @returns {*} Returns the map data.
668
- */
669
- function getMapData$4(map, key) {
670
- var data = map.__data__;
671
- return isKeyable(key)
672
- ? data[typeof key == 'string' ? 'string' : 'hash']
673
- : data.map;
674
- }
675
-
676
- var _getMapData = getMapData$4;
677
-
678
- var getMapData$3 = _getMapData;
679
-
680
- /**
681
- * Removes `key` and its value from the map.
682
- *
683
- * @private
684
- * @name delete
685
- * @memberOf MapCache
686
- * @param {string} key The key of the value to remove.
687
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
688
- */
689
- function mapCacheDelete$1(key) {
690
- var result = getMapData$3(this, key)['delete'](key);
691
- this.size -= result ? 1 : 0;
692
- return result;
693
- }
694
-
695
- var _mapCacheDelete = mapCacheDelete$1;
696
-
697
- var getMapData$2 = _getMapData;
698
-
699
- /**
700
- * Gets the map value for `key`.
701
- *
702
- * @private
703
- * @name get
704
- * @memberOf MapCache
705
- * @param {string} key The key of the value to get.
706
- * @returns {*} Returns the entry value.
707
- */
708
- function mapCacheGet$1(key) {
709
- return getMapData$2(this, key).get(key);
710
- }
711
-
712
- var _mapCacheGet = mapCacheGet$1;
713
-
714
- var getMapData$1 = _getMapData;
715
-
716
- /**
717
- * Checks if a map value for `key` exists.
718
- *
719
- * @private
720
- * @name has
721
- * @memberOf MapCache
722
- * @param {string} key The key of the entry to check.
723
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
724
- */
725
- function mapCacheHas$1(key) {
726
- return getMapData$1(this, key).has(key);
727
- }
728
-
729
- var _mapCacheHas = mapCacheHas$1;
730
-
731
- var getMapData = _getMapData;
732
-
733
- /**
734
- * Sets the map `key` to `value`.
735
- *
736
- * @private
737
- * @name set
738
- * @memberOf MapCache
739
- * @param {string} key The key of the value to set.
740
- * @param {*} value The value to set.
741
- * @returns {Object} Returns the map cache instance.
742
- */
743
- function mapCacheSet$1(key, value) {
744
- var data = getMapData(this, key),
745
- size = data.size;
746
-
747
- data.set(key, value);
748
- this.size += data.size == size ? 0 : 1;
749
- return this;
750
- }
751
-
752
- var _mapCacheSet = mapCacheSet$1;
753
-
754
- var mapCacheClear = _mapCacheClear,
755
- mapCacheDelete = _mapCacheDelete,
756
- mapCacheGet = _mapCacheGet,
757
- mapCacheHas = _mapCacheHas,
758
- mapCacheSet = _mapCacheSet;
759
-
760
- /**
761
- * Creates a map cache object to store key-value pairs.
762
- *
763
- * @private
764
- * @constructor
765
- * @param {Array} [entries] The key-value pairs to cache.
766
- */
767
- function MapCache$3(entries) {
768
- var index = -1,
769
- length = entries == null ? 0 : entries.length;
770
-
771
- this.clear();
772
- while (++index < length) {
773
- var entry = entries[index];
774
- this.set(entry[0], entry[1]);
775
- }
776
- }
777
-
778
- // Add methods to `MapCache`.
779
- MapCache$3.prototype.clear = mapCacheClear;
780
- MapCache$3.prototype['delete'] = mapCacheDelete;
781
- MapCache$3.prototype.get = mapCacheGet;
782
- MapCache$3.prototype.has = mapCacheHas;
783
- MapCache$3.prototype.set = mapCacheSet;
784
-
785
- var _MapCache = MapCache$3;
786
-
787
- var ListCache$1 = _ListCache,
788
- Map$1 = _Map,
789
- MapCache$2 = _MapCache;
790
-
791
- /** Used as the size to enable large array optimizations. */
792
- var LARGE_ARRAY_SIZE = 200;
793
-
794
- /**
795
- * Sets the stack `key` to `value`.
796
- *
797
- * @private
798
- * @name set
799
- * @memberOf Stack
800
- * @param {string} key The key of the value to set.
801
- * @param {*} value The value to set.
802
- * @returns {Object} Returns the stack cache instance.
803
- */
804
- function stackSet$1(key, value) {
805
- var data = this.__data__;
806
- if (data instanceof ListCache$1) {
807
- var pairs = data.__data__;
808
- if (!Map$1 || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
809
- pairs.push([key, value]);
810
- this.size = ++data.size;
811
- return this;
812
- }
813
- data = this.__data__ = new MapCache$2(pairs);
814
- }
815
- data.set(key, value);
816
- this.size = data.size;
817
- return this;
818
- }
819
-
820
- var _stackSet = stackSet$1;
821
-
822
- var ListCache = _ListCache,
823
- stackClear = _stackClear,
824
- stackDelete = _stackDelete,
825
- stackGet = _stackGet,
826
- stackHas = _stackHas,
827
- stackSet = _stackSet;
828
-
829
- /**
830
- * Creates a stack cache object to store key-value pairs.
831
- *
832
- * @private
833
- * @constructor
834
- * @param {Array} [entries] The key-value pairs to cache.
835
- */
836
- function Stack$2(entries) {
837
- var data = this.__data__ = new ListCache(entries);
838
- this.size = data.size;
839
- }
840
-
841
- // Add methods to `Stack`.
842
- Stack$2.prototype.clear = stackClear;
843
- Stack$2.prototype['delete'] = stackDelete;
844
- Stack$2.prototype.get = stackGet;
845
- Stack$2.prototype.has = stackHas;
846
- Stack$2.prototype.set = stackSet;
847
-
848
- var _Stack = Stack$2;
849
-
850
- /** Used to stand-in for `undefined` hash values. */
851
-
852
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
853
-
854
- /**
855
- * Adds `value` to the array cache.
856
- *
857
- * @private
858
- * @name add
859
- * @memberOf SetCache
860
- * @alias push
861
- * @param {*} value The value to cache.
862
- * @returns {Object} Returns the cache instance.
863
- */
864
- function setCacheAdd$1(value) {
865
- this.__data__.set(value, HASH_UNDEFINED);
866
- return this;
867
- }
868
-
869
- var _setCacheAdd = setCacheAdd$1;
870
-
871
- /**
872
- * Checks if `value` is in the array cache.
873
- *
874
- * @private
875
- * @name has
876
- * @memberOf SetCache
877
- * @param {*} value The value to search for.
878
- * @returns {number} Returns `true` if `value` is found, else `false`.
879
- */
880
-
881
- function setCacheHas$1(value) {
882
- return this.__data__.has(value);
883
- }
884
-
885
- var _setCacheHas = setCacheHas$1;
886
-
887
- var MapCache$1 = _MapCache,
888
- setCacheAdd = _setCacheAdd,
889
- setCacheHas = _setCacheHas;
890
-
891
- /**
892
- *
893
- * Creates an array cache object to store unique values.
894
- *
895
- * @private
896
- * @constructor
897
- * @param {Array} [values] The values to cache.
898
- */
899
- function SetCache$1(values) {
900
- var index = -1,
901
- length = values == null ? 0 : values.length;
902
-
903
- this.__data__ = new MapCache$1;
904
- while (++index < length) {
905
- this.add(values[index]);
906
- }
907
- }
908
-
909
- // Add methods to `SetCache`.
910
- SetCache$1.prototype.add = SetCache$1.prototype.push = setCacheAdd;
911
- SetCache$1.prototype.has = setCacheHas;
912
-
913
- var _SetCache = SetCache$1;
914
-
915
- /**
916
- * A specialized version of `_.some` for arrays without support for iteratee
917
- * shorthands.
918
- *
919
- * @private
920
- * @param {Array} [array] The array to iterate over.
921
- * @param {Function} predicate The function invoked per iteration.
922
- * @returns {boolean} Returns `true` if any element passes the predicate check,
923
- * else `false`.
924
- */
925
-
926
- function arraySome$1(array, predicate) {
927
- var index = -1,
928
- length = array == null ? 0 : array.length;
929
-
930
- while (++index < length) {
931
- if (predicate(array[index], index, array)) {
932
- return true;
933
- }
934
- }
935
- return false;
936
- }
937
-
938
- var _arraySome = arraySome$1;
939
-
940
- /**
941
- * Checks if a `cache` value for `key` exists.
942
- *
943
- * @private
944
- * @param {Object} cache The cache to query.
945
- * @param {string} key The key of the entry to check.
946
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
947
- */
948
-
949
- function cacheHas$1(cache, key) {
950
- return cache.has(key);
951
- }
952
-
953
- var _cacheHas = cacheHas$1;
954
-
955
- var SetCache = _SetCache,
956
- arraySome = _arraySome,
957
- cacheHas = _cacheHas;
958
-
959
- /** Used to compose bitmasks for value comparisons. */
960
- var COMPARE_PARTIAL_FLAG$5 = 1,
961
- COMPARE_UNORDERED_FLAG$3 = 2;
962
-
963
- /**
964
- * A specialized version of `baseIsEqualDeep` for arrays with support for
965
- * partial deep comparisons.
966
- *
967
- * @private
968
- * @param {Array} array The array to compare.
969
- * @param {Array} other The other array to compare.
970
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
971
- * @param {Function} customizer The function to customize comparisons.
972
- * @param {Function} equalFunc The function to determine equivalents of values.
973
- * @param {Object} stack Tracks traversed `array` and `other` objects.
974
- * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
975
- */
976
- function equalArrays$2(array, other, bitmask, customizer, equalFunc, stack) {
977
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$5,
978
- arrLength = array.length,
979
- othLength = other.length;
980
-
981
- if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
982
- return false;
983
- }
984
- // Check that cyclic values are equal.
985
- var arrStacked = stack.get(array);
986
- var othStacked = stack.get(other);
987
- if (arrStacked && othStacked) {
988
- return arrStacked == other && othStacked == array;
989
- }
990
- var index = -1,
991
- result = true,
992
- seen = (bitmask & COMPARE_UNORDERED_FLAG$3) ? new SetCache : undefined;
993
-
994
- stack.set(array, other);
995
- stack.set(other, array);
996
-
997
- // Ignore non-index properties.
998
- while (++index < arrLength) {
999
- var arrValue = array[index],
1000
- othValue = other[index];
1001
-
1002
- if (customizer) {
1003
- var compared = isPartial
1004
- ? customizer(othValue, arrValue, index, other, array, stack)
1005
- : customizer(arrValue, othValue, index, array, other, stack);
1006
- }
1007
- if (compared !== undefined) {
1008
- if (compared) {
1009
- continue;
1010
- }
1011
- result = false;
1012
- break;
1013
- }
1014
- // Recursively compare arrays (susceptible to call stack limits).
1015
- if (seen) {
1016
- if (!arraySome(other, function(othValue, othIndex) {
1017
- if (!cacheHas(seen, othIndex) &&
1018
- (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
1019
- return seen.push(othIndex);
1020
- }
1021
- })) {
1022
- result = false;
1023
- break;
1024
- }
1025
- } else if (!(
1026
- arrValue === othValue ||
1027
- equalFunc(arrValue, othValue, bitmask, customizer, stack)
1028
- )) {
1029
- result = false;
1030
- break;
1031
- }
1032
- }
1033
- stack['delete'](array);
1034
- stack['delete'](other);
1035
- return result;
1036
- }
1037
-
1038
- var _equalArrays = equalArrays$2;
1039
-
1040
- var root$4 = _root;
1041
-
1042
- /** Built-in value references. */
1043
- var Uint8Array$1 = root$4.Uint8Array;
1044
-
1045
- var _Uint8Array = Uint8Array$1;
1046
-
1047
- /**
1048
- * Converts `map` to its key-value pairs.
1049
- *
1050
- * @private
1051
- * @param {Object} map The map to convert.
1052
- * @returns {Array} Returns the key-value pairs.
1053
- */
1054
-
1055
- function mapToArray$1(map) {
1056
- var index = -1,
1057
- result = Array(map.size);
1058
-
1059
- map.forEach(function(value, key) {
1060
- result[++index] = [key, value];
1061
- });
1062
- return result;
1063
- }
1064
-
1065
- var _mapToArray = mapToArray$1;
1066
-
1067
- /**
1068
- * Converts `set` to an array of its values.
1069
- *
1070
- * @private
1071
- * @param {Object} set The set to convert.
1072
- * @returns {Array} Returns the values.
1073
- */
1074
-
1075
- function setToArray$1(set) {
1076
- var index = -1,
1077
- result = Array(set.size);
1078
-
1079
- set.forEach(function(value) {
1080
- result[++index] = value;
1081
- });
1082
- return result;
1083
- }
1084
-
1085
- var _setToArray = setToArray$1;
1086
-
1087
- var Symbol$1 = _Symbol,
1088
- Uint8Array = _Uint8Array,
1089
- eq = eq_1,
1090
- equalArrays$1 = _equalArrays,
1091
- mapToArray = _mapToArray,
1092
- setToArray = _setToArray;
1093
-
1094
- /** Used to compose bitmasks for value comparisons. */
1095
- var COMPARE_PARTIAL_FLAG$4 = 1,
1096
- COMPARE_UNORDERED_FLAG$2 = 2;
1097
-
1098
- /** `Object#toString` result references. */
1099
- var boolTag$1 = '[object Boolean]',
1100
- dateTag$1 = '[object Date]',
1101
- errorTag$1 = '[object Error]',
1102
- mapTag$2 = '[object Map]',
1103
- numberTag$1 = '[object Number]',
1104
- regexpTag$1 = '[object RegExp]',
1105
- setTag$2 = '[object Set]',
1106
- stringTag$1 = '[object String]',
1107
- symbolTag = '[object Symbol]';
1108
-
1109
- var arrayBufferTag$1 = '[object ArrayBuffer]',
1110
- dataViewTag$2 = '[object DataView]';
1111
-
1112
- /** Used to convert symbols to primitives and strings. */
1113
- var symbolProto$1 = Symbol$1 ? Symbol$1.prototype : undefined,
1114
- symbolValueOf = symbolProto$1 ? symbolProto$1.valueOf : undefined;
1115
-
1116
- /**
1117
- * A specialized version of `baseIsEqualDeep` for comparing objects of
1118
- * the same `toStringTag`.
1119
- *
1120
- * **Note:** This function only supports comparing values with tags of
1121
- * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
1122
- *
1123
- * @private
1124
- * @param {Object} object The object to compare.
1125
- * @param {Object} other The other object to compare.
1126
- * @param {string} tag The `toStringTag` of the objects to compare.
1127
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
1128
- * @param {Function} customizer The function to customize comparisons.
1129
- * @param {Function} equalFunc The function to determine equivalents of values.
1130
- * @param {Object} stack Tracks traversed `object` and `other` objects.
1131
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
1132
- */
1133
- function equalByTag$1(object, other, tag, bitmask, customizer, equalFunc, stack) {
1134
- switch (tag) {
1135
- case dataViewTag$2:
1136
- if ((object.byteLength != other.byteLength) ||
1137
- (object.byteOffset != other.byteOffset)) {
1138
- return false;
1139
- }
1140
- object = object.buffer;
1141
- other = other.buffer;
1142
-
1143
- case arrayBufferTag$1:
1144
- if ((object.byteLength != other.byteLength) ||
1145
- !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
1146
- return false;
1147
- }
1148
- return true;
1149
-
1150
- case boolTag$1:
1151
- case dateTag$1:
1152
- case numberTag$1:
1153
- // Coerce booleans to `1` or `0` and dates to milliseconds.
1154
- // Invalid dates are coerced to `NaN`.
1155
- return eq(+object, +other);
1156
-
1157
- case errorTag$1:
1158
- return object.name == other.name && object.message == other.message;
1159
-
1160
- case regexpTag$1:
1161
- case stringTag$1:
1162
- // Coerce regexes to strings and treat strings, primitives and objects,
1163
- // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
1164
- // for more details.
1165
- return object == (other + '');
1166
-
1167
- case mapTag$2:
1168
- var convert = mapToArray;
1169
-
1170
- case setTag$2:
1171
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$4;
1172
- convert || (convert = setToArray);
1173
-
1174
- if (object.size != other.size && !isPartial) {
1175
- return false;
1176
- }
1177
- // Assume cyclic values are equal.
1178
- var stacked = stack.get(object);
1179
- if (stacked) {
1180
- return stacked == other;
1181
- }
1182
- bitmask |= COMPARE_UNORDERED_FLAG$2;
1183
-
1184
- // Recursively compare objects (susceptible to call stack limits).
1185
- stack.set(object, other);
1186
- var result = equalArrays$1(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
1187
- stack['delete'](object);
1188
- return result;
1189
-
1190
- case symbolTag:
1191
- if (symbolValueOf) {
1192
- return symbolValueOf.call(object) == symbolValueOf.call(other);
1193
- }
1194
- }
1195
- return false;
1196
- }
1197
-
1198
- var _equalByTag = equalByTag$1;
1199
-
1200
- /**
1201
- * Appends the elements of `values` to `array`.
1202
- *
1203
- * @private
1204
- * @param {Array} array The array to modify.
1205
- * @param {Array} values The values to append.
1206
- * @returns {Array} Returns `array`.
1207
- */
1208
-
1209
- function arrayPush$1(array, values) {
1210
- var index = -1,
1211
- length = values.length,
1212
- offset = array.length;
1213
-
1214
- while (++index < length) {
1215
- array[offset + index] = values[index];
1216
- }
1217
- return array;
1218
- }
1219
-
1220
- var _arrayPush = arrayPush$1;
1221
-
1222
- /**
1223
- * Checks if `value` is classified as an `Array` object.
1224
- *
1225
- * @static
1226
- * @memberOf _
1227
- * @since 0.1.0
1228
- * @category Lang
1229
- * @param {*} value The value to check.
1230
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
1231
- * @example
1232
- *
1233
- * _.isArray([1, 2, 3]);
1234
- * // => true
1235
- *
1236
- * _.isArray(document.body.children);
1237
- * // => false
1238
- *
1239
- * _.isArray('abc');
1240
- * // => false
1241
- *
1242
- * _.isArray(_.noop);
1243
- * // => false
1244
- */
1245
-
1246
- var isArray$8 = Array.isArray;
1247
-
1248
- var isArray_1 = isArray$8;
1249
-
1250
- var arrayPush = _arrayPush,
1251
- isArray$7 = isArray_1;
1252
-
1253
- /**
1254
- * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
1255
- * `keysFunc` and `symbolsFunc` to get the enumerable property names and
1256
- * symbols of `object`.
1257
- *
1258
- * @private
1259
- * @param {Object} object The object to query.
1260
- * @param {Function} keysFunc The function to get the keys of `object`.
1261
- * @param {Function} symbolsFunc The function to get the symbols of `object`.
1262
- * @returns {Array} Returns the array of property names and symbols.
1263
- */
1264
- function baseGetAllKeys$1(object, keysFunc, symbolsFunc) {
1265
- var result = keysFunc(object);
1266
- return isArray$7(object) ? result : arrayPush(result, symbolsFunc(object));
1267
- }
1268
-
1269
- var _baseGetAllKeys = baseGetAllKeys$1;
1270
-
1271
- /**
1272
- * A specialized version of `_.filter` for arrays without support for
1273
- * iteratee shorthands.
1274
- *
1275
- * @private
1276
- * @param {Array} [array] The array to iterate over.
1277
- * @param {Function} predicate The function invoked per iteration.
1278
- * @returns {Array} Returns the new filtered array.
1279
- */
1280
-
1281
- function arrayFilter$1(array, predicate) {
1282
- var index = -1,
1283
- length = array == null ? 0 : array.length,
1284
- resIndex = 0,
1285
- result = [];
1286
-
1287
- while (++index < length) {
1288
- var value = array[index];
1289
- if (predicate(value, index, array)) {
1290
- result[resIndex++] = value;
1291
- }
1292
- }
1293
- return result;
1294
- }
1295
-
1296
- var _arrayFilter = arrayFilter$1;
1297
-
1298
- /**
1299
- * This method returns a new empty array.
1300
- *
1301
- * @static
1302
- * @memberOf _
1303
- * @since 4.13.0
1304
- * @category Util
1305
- * @returns {Array} Returns the new empty array.
1306
- * @example
1307
- *
1308
- * var arrays = _.times(2, _.stubArray);
1309
- *
1310
- * console.log(arrays);
1311
- * // => [[], []]
1312
- *
1313
- * console.log(arrays[0] === arrays[1]);
1314
- * // => false
1315
- */
1316
-
1317
- function stubArray$1() {
1318
- return [];
1319
- }
1320
-
1321
- var stubArray_1 = stubArray$1;
1322
-
1323
- var arrayFilter = _arrayFilter,
1324
- stubArray = stubArray_1;
1325
-
1326
- /** Used for built-in method references. */
1327
- var objectProto$6 = Object.prototype;
1328
-
1329
- /** Built-in value references. */
1330
- var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
1331
-
1332
- /* Built-in method references for those with the same name as other `lodash` methods. */
1333
- var nativeGetSymbols = Object.getOwnPropertySymbols;
1334
-
1335
- /**
1336
- * Creates an array of the own enumerable symbols of `object`.
1337
- *
1338
- * @private
1339
- * @param {Object} object The object to query.
1340
- * @returns {Array} Returns the array of symbols.
1341
- */
1342
- var getSymbols$1 = !nativeGetSymbols ? stubArray : function(object) {
1343
- if (object == null) {
1344
- return [];
1345
- }
1346
- object = Object(object);
1347
- return arrayFilter(nativeGetSymbols(object), function(symbol) {
1348
- return propertyIsEnumerable$1.call(object, symbol);
1349
- });
1350
- };
1351
-
1352
- var _getSymbols = getSymbols$1;
1353
-
1354
- /**
1355
- * The base implementation of `_.times` without support for iteratee shorthands
1356
- * or max array length checks.
1357
- *
1358
- * @private
1359
- * @param {number} n The number of times to invoke `iteratee`.
1360
- * @param {Function} iteratee The function invoked per iteration.
1361
- * @returns {Array} Returns the array of results.
1362
- */
1363
-
1364
- function baseTimes$1(n, iteratee) {
1365
- var index = -1,
1366
- result = Array(n);
1367
-
1368
- while (++index < n) {
1369
- result[index] = iteratee(index);
1370
- }
1371
- return result;
1372
- }
1373
-
1374
- var _baseTimes = baseTimes$1;
1375
-
1376
- var baseGetTag$2 = _baseGetTag,
1377
- isObjectLike$3 = isObjectLike_1;
1378
-
1379
- /** `Object#toString` result references. */
1380
- var argsTag$2 = '[object Arguments]';
1381
-
1382
- /**
1383
- * The base implementation of `_.isArguments`.
1384
- *
1385
- * @private
1386
- * @param {*} value The value to check.
1387
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
1388
- */
1389
- function baseIsArguments$1(value) {
1390
- return isObjectLike$3(value) && baseGetTag$2(value) == argsTag$2;
1391
- }
1392
-
1393
- var _baseIsArguments = baseIsArguments$1;
1394
-
1395
- var baseIsArguments = _baseIsArguments,
1396
- isObjectLike$2 = isObjectLike_1;
1397
-
1398
- /** Used for built-in method references. */
1399
- var objectProto$5 = Object.prototype;
1400
-
1401
- /** Used to check objects for own properties. */
1402
- var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
1403
-
1404
- /** Built-in value references. */
1405
- var propertyIsEnumerable = objectProto$5.propertyIsEnumerable;
1406
-
1407
- /**
1408
- * Checks if `value` is likely an `arguments` object.
1409
- *
1410
- * @static
1411
- * @memberOf _
1412
- * @since 0.1.0
1413
- * @category Lang
1414
- * @param {*} value The value to check.
1415
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
1416
- * else `false`.
1417
- * @example
1418
- *
1419
- * _.isArguments(function() { return arguments; }());
1420
- * // => true
1421
- *
1422
- * _.isArguments([1, 2, 3]);
1423
- * // => false
1424
- */
1425
- var isArguments$2 = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
1426
- return isObjectLike$2(value) && hasOwnProperty$4.call(value, 'callee') &&
1427
- !propertyIsEnumerable.call(value, 'callee');
1428
- };
1429
-
1430
- var isArguments_1 = isArguments$2;
1431
-
1432
- var isBuffer$2 = {exports: {}};
1433
-
1434
- /**
1435
- * This method returns `false`.
1436
- *
1437
- * @static
1438
- * @memberOf _
1439
- * @since 4.13.0
1440
- * @category Util
1441
- * @returns {boolean} Returns `false`.
1442
- * @example
1443
- *
1444
- * _.times(2, _.stubFalse);
1445
- * // => [false, false]
1446
- */
1447
-
1448
- function stubFalse() {
1449
- return false;
1450
- }
1451
-
1452
- var stubFalse_1 = stubFalse;
1453
-
1454
- (function (module, exports) {
1455
- var root = _root,
1456
- stubFalse = stubFalse_1;
1457
-
1458
- /** Detect free variable `exports`. */
1459
- var freeExports = exports && !exports.nodeType && exports;
1460
-
1461
- /** Detect free variable `module`. */
1462
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
1463
-
1464
- /** Detect the popular CommonJS extension `module.exports`. */
1465
- var moduleExports = freeModule && freeModule.exports === freeExports;
1466
-
1467
- /** Built-in value references. */
1468
- var Buffer = moduleExports ? root.Buffer : undefined;
1469
-
1470
- /* Built-in method references for those with the same name as other `lodash` methods. */
1471
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
1472
-
1473
- /**
1474
- * Checks if `value` is a buffer.
1475
- *
1476
- * @static
1477
- * @memberOf _
1478
- * @since 4.3.0
1479
- * @category Lang
1480
- * @param {*} value The value to check.
1481
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
1482
- * @example
1483
- *
1484
- * _.isBuffer(new Buffer(2));
1485
- * // => true
1486
- *
1487
- * _.isBuffer(new Uint8Array(2));
1488
- * // => false
1489
- */
1490
- var isBuffer = nativeIsBuffer || stubFalse;
1491
-
1492
- module.exports = isBuffer;
1493
- }(isBuffer$2, isBuffer$2.exports));
1494
-
1495
- /** Used as references for various `Number` constants. */
1496
-
1497
- var MAX_SAFE_INTEGER$1 = 9007199254740991;
1498
-
1499
- /** Used to detect unsigned integer values. */
1500
- var reIsUint = /^(?:0|[1-9]\d*)$/;
1501
-
1502
- /**
1503
- * Checks if `value` is a valid array-like index.
1504
- *
1505
- * @private
1506
- * @param {*} value The value to check.
1507
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
1508
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
1509
- */
1510
- function isIndex$2(value, length) {
1511
- var type = typeof value;
1512
- length = length == null ? MAX_SAFE_INTEGER$1 : length;
1513
-
1514
- return !!length &&
1515
- (type == 'number' ||
1516
- (type != 'symbol' && reIsUint.test(value))) &&
1517
- (value > -1 && value % 1 == 0 && value < length);
1518
- }
1519
-
1520
- var _isIndex = isIndex$2;
1521
-
1522
- /** Used as references for various `Number` constants. */
1523
-
1524
- var MAX_SAFE_INTEGER = 9007199254740991;
1525
-
1526
- /**
1527
- * Checks if `value` is a valid array-like length.
1528
- *
1529
- * **Note:** This method is loosely based on
1530
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
1531
- *
1532
- * @static
1533
- * @memberOf _
1534
- * @since 4.0.0
1535
- * @category Lang
1536
- * @param {*} value The value to check.
1537
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
1538
- * @example
1539
- *
1540
- * _.isLength(3);
1541
- * // => true
1542
- *
1543
- * _.isLength(Number.MIN_VALUE);
1544
- * // => false
1545
- *
1546
- * _.isLength(Infinity);
1547
- * // => false
1548
- *
1549
- * _.isLength('3');
1550
- * // => false
1551
- */
1552
- function isLength$3(value) {
1553
- return typeof value == 'number' &&
1554
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
1555
- }
1556
-
1557
- var isLength_1 = isLength$3;
1558
-
1559
- var baseGetTag$1 = _baseGetTag,
1560
- isLength$2 = isLength_1,
1561
- isObjectLike$1 = isObjectLike_1;
1562
-
1563
- /** `Object#toString` result references. */
1564
- var argsTag$1 = '[object Arguments]',
1565
- arrayTag$1 = '[object Array]',
1566
- boolTag = '[object Boolean]',
1567
- dateTag = '[object Date]',
1568
- errorTag = '[object Error]',
1569
- funcTag = '[object Function]',
1570
- mapTag$1 = '[object Map]',
1571
- numberTag = '[object Number]',
1572
- objectTag$2 = '[object Object]',
1573
- regexpTag = '[object RegExp]',
1574
- setTag$1 = '[object Set]',
1575
- stringTag = '[object String]',
1576
- weakMapTag$1 = '[object WeakMap]';
1577
-
1578
- var arrayBufferTag = '[object ArrayBuffer]',
1579
- dataViewTag$1 = '[object DataView]',
1580
- float32Tag = '[object Float32Array]',
1581
- float64Tag = '[object Float64Array]',
1582
- int8Tag = '[object Int8Array]',
1583
- int16Tag = '[object Int16Array]',
1584
- int32Tag = '[object Int32Array]',
1585
- uint8Tag = '[object Uint8Array]',
1586
- uint8ClampedTag = '[object Uint8ClampedArray]',
1587
- uint16Tag = '[object Uint16Array]',
1588
- uint32Tag = '[object Uint32Array]';
1589
-
1590
- /** Used to identify `toStringTag` values of typed arrays. */
1591
- var typedArrayTags = {};
1592
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
1593
- typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
1594
- typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
1595
- typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
1596
- typedArrayTags[uint32Tag] = true;
1597
- typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] =
1598
- typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
1599
- typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag] =
1600
- typedArrayTags[errorTag] = typedArrayTags[funcTag] =
1601
- typedArrayTags[mapTag$1] = typedArrayTags[numberTag] =
1602
- typedArrayTags[objectTag$2] = typedArrayTags[regexpTag] =
1603
- typedArrayTags[setTag$1] = typedArrayTags[stringTag] =
1604
- typedArrayTags[weakMapTag$1] = false;
1605
-
1606
- /**
1607
- * The base implementation of `_.isTypedArray` without Node.js optimizations.
1608
- *
1609
- * @private
1610
- * @param {*} value The value to check.
1611
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
1612
- */
1613
- function baseIsTypedArray$1(value) {
1614
- return isObjectLike$1(value) &&
1615
- isLength$2(value.length) && !!typedArrayTags[baseGetTag$1(value)];
1616
- }
1617
-
1618
- var _baseIsTypedArray = baseIsTypedArray$1;
1619
-
1620
- /**
1621
- * The base implementation of `_.unary` without support for storing metadata.
1622
- *
1623
- * @private
1624
- * @param {Function} func The function to cap arguments for.
1625
- * @returns {Function} Returns the new capped function.
1626
- */
1627
-
1628
- function baseUnary$1(func) {
1629
- return function(value) {
1630
- return func(value);
1631
- };
1632
- }
1633
-
1634
- var _baseUnary = baseUnary$1;
1635
-
1636
- var _nodeUtil = {exports: {}};
1637
-
1638
- (function (module, exports) {
1639
- var freeGlobal = _freeGlobal;
1640
-
1641
- /** Detect free variable `exports`. */
1642
- var freeExports = exports && !exports.nodeType && exports;
1643
-
1644
- /** Detect free variable `module`. */
1645
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
1646
-
1647
- /** Detect the popular CommonJS extension `module.exports`. */
1648
- var moduleExports = freeModule && freeModule.exports === freeExports;
1649
-
1650
- /** Detect free variable `process` from Node.js. */
1651
- var freeProcess = moduleExports && freeGlobal.process;
1652
-
1653
- /** Used to access faster Node.js helpers. */
1654
- var nodeUtil = (function() {
1655
- try {
1656
- // Use `util.types` for Node.js 10+.
1657
- var types = freeModule && freeModule.require && freeModule.require('util').types;
1658
-
1659
- if (types) {
1660
- return types;
1661
- }
1662
-
1663
- // Legacy `process.binding('util')` for Node.js < 10.
1664
- return freeProcess && freeProcess.binding && freeProcess.binding('util');
1665
- } catch (e) {}
1666
- }());
1667
-
1668
- module.exports = nodeUtil;
1669
- }(_nodeUtil, _nodeUtil.exports));
1670
-
1671
- var baseIsTypedArray = _baseIsTypedArray,
1672
- baseUnary = _baseUnary,
1673
- nodeUtil = _nodeUtil.exports;
1674
-
1675
- /* Node.js helper references. */
1676
- var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
1677
-
1678
- /**
1679
- * Checks if `value` is classified as a typed array.
1680
- *
1681
- * @static
1682
- * @memberOf _
1683
- * @since 3.0.0
1684
- * @category Lang
1685
- * @param {*} value The value to check.
1686
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
1687
- * @example
1688
- *
1689
- * _.isTypedArray(new Uint8Array);
1690
- * // => true
1691
- *
1692
- * _.isTypedArray([]);
1693
- * // => false
1694
- */
1695
- var isTypedArray$2 = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
1696
-
1697
- var isTypedArray_1 = isTypedArray$2;
1698
-
1699
- var baseTimes = _baseTimes,
1700
- isArguments$1 = isArguments_1,
1701
- isArray$6 = isArray_1,
1702
- isBuffer$1 = isBuffer$2.exports,
1703
- isIndex$1 = _isIndex,
1704
- isTypedArray$1 = isTypedArray_1;
1705
-
1706
- /** Used for built-in method references. */
1707
- var objectProto$4 = Object.prototype;
1708
-
1709
- /** Used to check objects for own properties. */
1710
- var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
1711
-
1712
- /**
1713
- * Creates an array of the enumerable property names of the array-like `value`.
1714
- *
1715
- * @private
1716
- * @param {*} value The value to query.
1717
- * @param {boolean} inherited Specify returning inherited property names.
1718
- * @returns {Array} Returns the array of property names.
1719
- */
1720
- function arrayLikeKeys$1(value, inherited) {
1721
- var isArr = isArray$6(value),
1722
- isArg = !isArr && isArguments$1(value),
1723
- isBuff = !isArr && !isArg && isBuffer$1(value),
1724
- isType = !isArr && !isArg && !isBuff && isTypedArray$1(value),
1725
- skipIndexes = isArr || isArg || isBuff || isType,
1726
- result = skipIndexes ? baseTimes(value.length, String) : [],
1727
- length = result.length;
1728
-
1729
- for (var key in value) {
1730
- if ((inherited || hasOwnProperty$3.call(value, key)) &&
1731
- !(skipIndexes && (
1732
- // Safari 9 has enumerable `arguments.length` in strict mode.
1733
- key == 'length' ||
1734
- // Node.js 0.10 has enumerable non-index properties on buffers.
1735
- (isBuff && (key == 'offset' || key == 'parent')) ||
1736
- // PhantomJS 2 has enumerable non-index properties on typed arrays.
1737
- (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
1738
- // Skip index properties.
1739
- isIndex$1(key, length)
1740
- ))) {
1741
- result.push(key);
1742
- }
1743
- }
1744
- return result;
1745
- }
1746
-
1747
- var _arrayLikeKeys = arrayLikeKeys$1;
1748
-
1749
- /** Used for built-in method references. */
1750
-
1751
- var objectProto$3 = Object.prototype;
1752
-
1753
- /**
1754
- * Checks if `value` is likely a prototype object.
1755
- *
1756
- * @private
1757
- * @param {*} value The value to check.
1758
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
1759
- */
1760
- function isPrototype$1(value) {
1761
- var Ctor = value && value.constructor,
1762
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$3;
1763
-
1764
- return value === proto;
1765
- }
1766
-
1767
- var _isPrototype = isPrototype$1;
1768
-
1769
- /**
1770
- * Creates a unary function that invokes `func` with its argument transformed.
1771
- *
1772
- * @private
1773
- * @param {Function} func The function to wrap.
1774
- * @param {Function} transform The argument transform.
1775
- * @returns {Function} Returns the new function.
1776
- */
1777
-
1778
- function overArg$1(func, transform) {
1779
- return function(arg) {
1780
- return func(transform(arg));
1781
- };
1782
- }
1783
-
1784
- var _overArg = overArg$1;
1785
-
1786
- var overArg = _overArg;
1787
-
1788
- /* Built-in method references for those with the same name as other `lodash` methods. */
1789
- var nativeKeys$1 = overArg(Object.keys, Object);
1790
-
1791
- var _nativeKeys = nativeKeys$1;
1792
-
1793
- var isPrototype = _isPrototype,
1794
- nativeKeys = _nativeKeys;
1795
-
1796
- /** Used for built-in method references. */
1797
- var objectProto$2 = Object.prototype;
1798
-
1799
- /** Used to check objects for own properties. */
1800
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
1801
-
1802
- /**
1803
- * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
1804
- *
1805
- * @private
1806
- * @param {Object} object The object to query.
1807
- * @returns {Array} Returns the array of property names.
1808
- */
1809
- function baseKeys$1(object) {
1810
- if (!isPrototype(object)) {
1811
- return nativeKeys(object);
1812
- }
1813
- var result = [];
1814
- for (var key in Object(object)) {
1815
- if (hasOwnProperty$2.call(object, key) && key != 'constructor') {
1816
- result.push(key);
1817
- }
1818
- }
1819
- return result;
1820
- }
1821
-
1822
- var _baseKeys = baseKeys$1;
1823
-
1824
- var isFunction = isFunction_1,
1825
- isLength$1 = isLength_1;
1826
-
1827
- /**
1828
- * Checks if `value` is array-like. A value is considered array-like if it's
1829
- * not a function and has a `value.length` that's an integer greater than or
1830
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
1831
- *
1832
- * @static
1833
- * @memberOf _
1834
- * @since 4.0.0
1835
- * @category Lang
1836
- * @param {*} value The value to check.
1837
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
1838
- * @example
1839
- *
1840
- * _.isArrayLike([1, 2, 3]);
1841
- * // => true
1842
- *
1843
- * _.isArrayLike(document.body.children);
1844
- * // => true
1845
- *
1846
- * _.isArrayLike('abc');
1847
- * // => true
1848
- *
1849
- * _.isArrayLike(_.noop);
1850
- * // => false
1851
- */
1852
- function isArrayLike$1(value) {
1853
- return value != null && isLength$1(value.length) && !isFunction(value);
1854
- }
1855
-
1856
- var isArrayLike_1 = isArrayLike$1;
1857
-
1858
- var arrayLikeKeys = _arrayLikeKeys,
1859
- baseKeys = _baseKeys,
1860
- isArrayLike = isArrayLike_1;
1861
-
1862
- /**
1863
- * Creates an array of the own enumerable property names of `object`.
1864
- *
1865
- * **Note:** Non-object values are coerced to objects. See the
1866
- * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
1867
- * for more details.
1868
- *
1869
- * @static
1870
- * @since 0.1.0
1871
- * @memberOf _
1872
- * @category Object
1873
- * @param {Object} object The object to query.
1874
- * @returns {Array} Returns the array of property names.
1875
- * @example
1876
- *
1877
- * function Foo() {
1878
- * this.a = 1;
1879
- * this.b = 2;
1880
- * }
1881
- *
1882
- * Foo.prototype.c = 3;
1883
- *
1884
- * _.keys(new Foo);
1885
- * // => ['a', 'b'] (iteration order is not guaranteed)
1886
- *
1887
- * _.keys('hi');
1888
- * // => ['0', '1']
1889
- */
1890
- function keys$2(object) {
1891
- return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
1892
- }
1893
-
1894
- var keys_1 = keys$2;
1895
-
1896
- var baseGetAllKeys = _baseGetAllKeys,
1897
- getSymbols = _getSymbols,
1898
- keys$1 = keys_1;
1899
-
1900
- /**
1901
- * Creates an array of own enumerable property names and symbols of `object`.
1902
- *
1903
- * @private
1904
- * @param {Object} object The object to query.
1905
- * @returns {Array} Returns the array of property names and symbols.
1906
- */
1907
- function getAllKeys$1(object) {
1908
- return baseGetAllKeys(object, keys$1, getSymbols);
1909
- }
1910
-
1911
- var _getAllKeys = getAllKeys$1;
1912
-
1913
- var getAllKeys = _getAllKeys;
1914
-
1915
- /** Used to compose bitmasks for value comparisons. */
1916
- var COMPARE_PARTIAL_FLAG$3 = 1;
1917
-
1918
- /** Used for built-in method references. */
1919
- var objectProto$1 = Object.prototype;
1920
-
1921
- /** Used to check objects for own properties. */
1922
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
1923
-
1924
- /**
1925
- * A specialized version of `baseIsEqualDeep` for objects with support for
1926
- * partial deep comparisons.
1927
- *
1928
- * @private
1929
- * @param {Object} object The object to compare.
1930
- * @param {Object} other The other object to compare.
1931
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
1932
- * @param {Function} customizer The function to customize comparisons.
1933
- * @param {Function} equalFunc The function to determine equivalents of values.
1934
- * @param {Object} stack Tracks traversed `object` and `other` objects.
1935
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
1936
- */
1937
- function equalObjects$1(object, other, bitmask, customizer, equalFunc, stack) {
1938
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3,
1939
- objProps = getAllKeys(object),
1940
- objLength = objProps.length,
1941
- othProps = getAllKeys(other),
1942
- othLength = othProps.length;
1943
-
1944
- if (objLength != othLength && !isPartial) {
1945
- return false;
1946
- }
1947
- var index = objLength;
1948
- while (index--) {
1949
- var key = objProps[index];
1950
- if (!(isPartial ? key in other : hasOwnProperty$1.call(other, key))) {
1951
- return false;
1952
- }
1953
- }
1954
- // Check that cyclic values are equal.
1955
- var objStacked = stack.get(object);
1956
- var othStacked = stack.get(other);
1957
- if (objStacked && othStacked) {
1958
- return objStacked == other && othStacked == object;
1959
- }
1960
- var result = true;
1961
- stack.set(object, other);
1962
- stack.set(other, object);
1963
-
1964
- var skipCtor = isPartial;
1965
- while (++index < objLength) {
1966
- key = objProps[index];
1967
- var objValue = object[key],
1968
- othValue = other[key];
1969
-
1970
- if (customizer) {
1971
- var compared = isPartial
1972
- ? customizer(othValue, objValue, key, other, object, stack)
1973
- : customizer(objValue, othValue, key, object, other, stack);
1974
- }
1975
- // Recursively compare objects (susceptible to call stack limits).
1976
- if (!(compared === undefined
1977
- ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
1978
- : compared
1979
- )) {
1980
- result = false;
1981
- break;
1982
- }
1983
- skipCtor || (skipCtor = key == 'constructor');
1984
- }
1985
- if (result && !skipCtor) {
1986
- var objCtor = object.constructor,
1987
- othCtor = other.constructor;
1988
-
1989
- // Non `Object` object instances with different constructors are not equal.
1990
- if (objCtor != othCtor &&
1991
- ('constructor' in object && 'constructor' in other) &&
1992
- !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
1993
- typeof othCtor == 'function' && othCtor instanceof othCtor)) {
1994
- result = false;
1995
- }
1996
- }
1997
- stack['delete'](object);
1998
- stack['delete'](other);
1999
- return result;
2000
- }
2001
-
2002
- var _equalObjects = equalObjects$1;
2003
-
2004
- var getNative$3 = _getNative,
2005
- root$3 = _root;
2006
-
2007
- /* Built-in method references that are verified to be native. */
2008
- var DataView$1 = getNative$3(root$3, 'DataView');
2009
-
2010
- var _DataView = DataView$1;
2011
-
2012
- var getNative$2 = _getNative,
2013
- root$2 = _root;
2014
-
2015
- /* Built-in method references that are verified to be native. */
2016
- var Promise$2 = getNative$2(root$2, 'Promise');
2017
-
2018
- var _Promise = Promise$2;
2019
-
2020
- var getNative$1 = _getNative,
2021
- root$1 = _root;
2022
-
2023
- /* Built-in method references that are verified to be native. */
2024
- var Set$1 = getNative$1(root$1, 'Set');
2025
-
2026
- var _Set = Set$1;
2027
-
2028
- var getNative = _getNative,
2029
- root = _root;
2030
-
2031
- /* Built-in method references that are verified to be native. */
2032
- var WeakMap$1 = getNative(root, 'WeakMap');
2033
-
2034
- var _WeakMap = WeakMap$1;
2035
-
2036
- var DataView = _DataView,
2037
- Map = _Map,
2038
- Promise$1 = _Promise,
2039
- Set = _Set,
2040
- WeakMap = _WeakMap,
2041
- baseGetTag = _baseGetTag,
2042
- toSource = _toSource;
2043
-
2044
- /** `Object#toString` result references. */
2045
- var mapTag = '[object Map]',
2046
- objectTag$1 = '[object Object]',
2047
- promiseTag = '[object Promise]',
2048
- setTag = '[object Set]',
2049
- weakMapTag = '[object WeakMap]';
2050
-
2051
- var dataViewTag = '[object DataView]';
2052
-
2053
- /** Used to detect maps, sets, and weakmaps. */
2054
- var dataViewCtorString = toSource(DataView),
2055
- mapCtorString = toSource(Map),
2056
- promiseCtorString = toSource(Promise$1),
2057
- setCtorString = toSource(Set),
2058
- weakMapCtorString = toSource(WeakMap);
2059
-
2060
- /**
2061
- * Gets the `toStringTag` of `value`.
2062
- *
2063
- * @private
2064
- * @param {*} value The value to query.
2065
- * @returns {string} Returns the `toStringTag`.
2066
- */
2067
- var getTag$1 = baseGetTag;
2068
-
2069
- // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
2070
- if ((DataView && getTag$1(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
2071
- (Map && getTag$1(new Map) != mapTag) ||
2072
- (Promise$1 && getTag$1(Promise$1.resolve()) != promiseTag) ||
2073
- (Set && getTag$1(new Set) != setTag) ||
2074
- (WeakMap && getTag$1(new WeakMap) != weakMapTag)) {
2075
- getTag$1 = function(value) {
2076
- var result = baseGetTag(value),
2077
- Ctor = result == objectTag$1 ? value.constructor : undefined,
2078
- ctorString = Ctor ? toSource(Ctor) : '';
2079
-
2080
- if (ctorString) {
2081
- switch (ctorString) {
2082
- case dataViewCtorString: return dataViewTag;
2083
- case mapCtorString: return mapTag;
2084
- case promiseCtorString: return promiseTag;
2085
- case setCtorString: return setTag;
2086
- case weakMapCtorString: return weakMapTag;
2087
- }
2088
- }
2089
- return result;
2090
- };
2091
- }
2092
-
2093
- var _getTag = getTag$1;
2094
-
2095
- var Stack$1 = _Stack,
2096
- equalArrays = _equalArrays,
2097
- equalByTag = _equalByTag,
2098
- equalObjects = _equalObjects,
2099
- getTag = _getTag,
2100
- isArray$5 = isArray_1,
2101
- isBuffer = isBuffer$2.exports,
2102
- isTypedArray = isTypedArray_1;
2103
-
2104
- /** Used to compose bitmasks for value comparisons. */
2105
- var COMPARE_PARTIAL_FLAG$2 = 1;
2106
-
2107
- /** `Object#toString` result references. */
2108
- var argsTag = '[object Arguments]',
2109
- arrayTag = '[object Array]',
2110
- objectTag = '[object Object]';
2111
-
2112
- /** Used for built-in method references. */
2113
- var objectProto = Object.prototype;
2114
-
2115
- /** Used to check objects for own properties. */
2116
- var hasOwnProperty = objectProto.hasOwnProperty;
2117
-
2118
- /**
2119
- * A specialized version of `baseIsEqual` for arrays and objects which performs
2120
- * deep comparisons and tracks traversed objects enabling objects with circular
2121
- * references to be compared.
2122
- *
2123
- * @private
2124
- * @param {Object} object The object to compare.
2125
- * @param {Object} other The other object to compare.
2126
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
2127
- * @param {Function} customizer The function to customize comparisons.
2128
- * @param {Function} equalFunc The function to determine equivalents of values.
2129
- * @param {Object} [stack] Tracks traversed `object` and `other` objects.
2130
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
2131
- */
2132
- function baseIsEqualDeep$1(object, other, bitmask, customizer, equalFunc, stack) {
2133
- var objIsArr = isArray$5(object),
2134
- othIsArr = isArray$5(other),
2135
- objTag = objIsArr ? arrayTag : getTag(object),
2136
- othTag = othIsArr ? arrayTag : getTag(other);
2137
-
2138
- objTag = objTag == argsTag ? objectTag : objTag;
2139
- othTag = othTag == argsTag ? objectTag : othTag;
2140
-
2141
- var objIsObj = objTag == objectTag,
2142
- othIsObj = othTag == objectTag,
2143
- isSameTag = objTag == othTag;
2144
-
2145
- if (isSameTag && isBuffer(object)) {
2146
- if (!isBuffer(other)) {
2147
- return false;
2148
- }
2149
- objIsArr = true;
2150
- objIsObj = false;
2151
- }
2152
- if (isSameTag && !objIsObj) {
2153
- stack || (stack = new Stack$1);
2154
- return (objIsArr || isTypedArray(object))
2155
- ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
2156
- : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
2157
- }
2158
- if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
2159
- var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
2160
- othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
2161
-
2162
- if (objIsWrapped || othIsWrapped) {
2163
- var objUnwrapped = objIsWrapped ? object.value() : object,
2164
- othUnwrapped = othIsWrapped ? other.value() : other;
2165
-
2166
- stack || (stack = new Stack$1);
2167
- return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
2168
- }
2169
- }
2170
- if (!isSameTag) {
2171
- return false;
2172
- }
2173
- stack || (stack = new Stack$1);
2174
- return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
2175
- }
2176
-
2177
- var _baseIsEqualDeep = baseIsEqualDeep$1;
2178
-
2179
- var baseIsEqualDeep = _baseIsEqualDeep,
2180
- isObjectLike = isObjectLike_1;
2181
-
2182
- /**
2183
- * The base implementation of `_.isEqual` which supports partial comparisons
2184
- * and tracks traversed objects.
2185
- *
2186
- * @private
2187
- * @param {*} value The value to compare.
2188
- * @param {*} other The other value to compare.
2189
- * @param {boolean} bitmask The bitmask flags.
2190
- * 1 - Unordered comparison
2191
- * 2 - Partial comparison
2192
- * @param {Function} [customizer] The function to customize comparisons.
2193
- * @param {Object} [stack] Tracks traversed `value` and `other` objects.
2194
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
2195
- */
2196
- function baseIsEqual$2(value, other, bitmask, customizer, stack) {
2197
- if (value === other) {
2198
- return true;
2199
- }
2200
- if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
2201
- return value !== value && other !== other;
2202
- }
2203
- return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual$2, stack);
2204
- }
2205
-
2206
- var _baseIsEqual = baseIsEqual$2;
2207
-
2208
- var Stack = _Stack,
2209
- baseIsEqual$1 = _baseIsEqual;
2210
-
2211
- /** Used to compose bitmasks for value comparisons. */
2212
- var COMPARE_PARTIAL_FLAG$1 = 1,
2213
- COMPARE_UNORDERED_FLAG$1 = 2;
2214
-
2215
- /**
2216
- * The base implementation of `_.isMatch` without support for iteratee shorthands.
2217
- *
2218
- * @private
2219
- * @param {Object} object The object to inspect.
2220
- * @param {Object} source The object of property values to match.
2221
- * @param {Array} matchData The property names, values, and compare flags to match.
2222
- * @param {Function} [customizer] The function to customize comparisons.
2223
- * @returns {boolean} Returns `true` if `object` is a match, else `false`.
2224
- */
2225
- function baseIsMatch$1(object, source, matchData, customizer) {
2226
- var index = matchData.length,
2227
- length = index,
2228
- noCustomizer = !customizer;
2229
-
2230
- if (object == null) {
2231
- return !length;
2232
- }
2233
- object = Object(object);
2234
- while (index--) {
2235
- var data = matchData[index];
2236
- if ((noCustomizer && data[2])
2237
- ? data[1] !== object[data[0]]
2238
- : !(data[0] in object)
2239
- ) {
2240
- return false;
2241
- }
2242
- }
2243
- while (++index < length) {
2244
- data = matchData[index];
2245
- var key = data[0],
2246
- objValue = object[key],
2247
- srcValue = data[1];
2248
-
2249
- if (noCustomizer && data[2]) {
2250
- if (objValue === undefined && !(key in object)) {
2251
- return false;
2252
- }
2253
- } else {
2254
- var stack = new Stack;
2255
- if (customizer) {
2256
- var result = customizer(objValue, srcValue, key, object, source, stack);
2257
- }
2258
- if (!(result === undefined
2259
- ? baseIsEqual$1(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack)
2260
- : result
2261
- )) {
2262
- return false;
2263
- }
2264
- }
2265
- }
2266
- return true;
2267
- }
2268
-
2269
- var _baseIsMatch = baseIsMatch$1;
2270
-
2271
- var isObject = isObject_1;
2272
-
2273
- /**
2274
- * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
2275
- *
2276
- * @private
2277
- * @param {*} value The value to check.
2278
- * @returns {boolean} Returns `true` if `value` if suitable for strict
2279
- * equality comparisons, else `false`.
2280
- */
2281
- function isStrictComparable$2(value) {
2282
- return value === value && !isObject(value);
2283
- }
2284
-
2285
- var _isStrictComparable = isStrictComparable$2;
2286
-
2287
- var isStrictComparable$1 = _isStrictComparable,
2288
- keys = keys_1;
2289
-
2290
- /**
2291
- * Gets the property names, values, and compare flags of `object`.
2292
- *
2293
- * @private
2294
- * @param {Object} object The object to query.
2295
- * @returns {Array} Returns the match data of `object`.
2296
- */
2297
- function getMatchData$1(object) {
2298
- var result = keys(object),
2299
- length = result.length;
2300
-
2301
- while (length--) {
2302
- var key = result[length],
2303
- value = object[key];
2304
-
2305
- result[length] = [key, value, isStrictComparable$1(value)];
2306
- }
2307
- return result;
2308
- }
2309
-
2310
- var _getMatchData = getMatchData$1;
2311
-
2312
- /**
2313
- * A specialized version of `matchesProperty` for source values suitable
2314
- * for strict equality comparisons, i.e. `===`.
2315
- *
2316
- * @private
2317
- * @param {string} key The key of the property to get.
2318
- * @param {*} srcValue The value to match.
2319
- * @returns {Function} Returns the new spec function.
2320
- */
2321
-
2322
- function matchesStrictComparable$2(key, srcValue) {
2323
- return function(object) {
2324
- if (object == null) {
2325
- return false;
2326
- }
2327
- return object[key] === srcValue &&
2328
- (srcValue !== undefined || (key in Object(object)));
2329
- };
2330
- }
2331
-
2332
- var _matchesStrictComparable = matchesStrictComparable$2;
2333
-
2334
- var baseIsMatch = _baseIsMatch,
2335
- getMatchData = _getMatchData,
2336
- matchesStrictComparable$1 = _matchesStrictComparable;
2337
-
2338
- /**
2339
- * The base implementation of `_.matches` which doesn't clone `source`.
2340
- *
2341
- * @private
2342
- * @param {Object} source The object of property values to match.
2343
- * @returns {Function} Returns the new spec function.
2344
- */
2345
- function baseMatches$1(source) {
2346
- var matchData = getMatchData(source);
2347
- if (matchData.length == 1 && matchData[0][2]) {
2348
- return matchesStrictComparable$1(matchData[0][0], matchData[0][1]);
2349
- }
2350
- return function(object) {
2351
- return object === source || baseIsMatch(object, source, matchData);
2352
- };
2353
- }
2354
-
2355
- var _baseMatches = baseMatches$1;
2356
-
2357
- var isArray$4 = isArray_1,
2358
- isSymbol$2 = isSymbol_1;
2359
-
2360
- /** Used to match property names within property paths. */
2361
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
2362
- reIsPlainProp = /^\w*$/;
2363
-
2364
- /**
2365
- * Checks if `value` is a property name and not a property path.
2366
- *
2367
- * @private
2368
- * @param {*} value The value to check.
2369
- * @param {Object} [object] The object to query keys on.
2370
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
2371
- */
2372
- function isKey$3(value, object) {
2373
- if (isArray$4(value)) {
2374
- return false;
2375
- }
2376
- var type = typeof value;
2377
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
2378
- value == null || isSymbol$2(value)) {
2379
- return true;
2380
- }
2381
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
2382
- (object != null && value in Object(object));
2383
- }
2384
-
2385
- var _isKey = isKey$3;
2386
-
2387
- var MapCache = _MapCache;
2388
-
2389
- /** Error message constants. */
2390
- var FUNC_ERROR_TEXT = 'Expected a function';
2391
-
2392
- /**
2393
- * Creates a function that memoizes the result of `func`. If `resolver` is
2394
- * provided, it determines the cache key for storing the result based on the
2395
- * arguments provided to the memoized function. By default, the first argument
2396
- * provided to the memoized function is used as the map cache key. The `func`
2397
- * is invoked with the `this` binding of the memoized function.
2398
- *
2399
- * **Note:** The cache is exposed as the `cache` property on the memoized
2400
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
2401
- * constructor with one whose instances implement the
2402
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
2403
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
2404
- *
2405
- * @static
2406
- * @memberOf _
2407
- * @since 0.1.0
2408
- * @category Function
2409
- * @param {Function} func The function to have its output memoized.
2410
- * @param {Function} [resolver] The function to resolve the cache key.
2411
- * @returns {Function} Returns the new memoized function.
2412
- * @example
2413
- *
2414
- * var object = { 'a': 1, 'b': 2 };
2415
- * var other = { 'c': 3, 'd': 4 };
2416
- *
2417
- * var values = _.memoize(_.values);
2418
- * values(object);
2419
- * // => [1, 2]
2420
- *
2421
- * values(other);
2422
- * // => [3, 4]
2423
- *
2424
- * object.a = 2;
2425
- * values(object);
2426
- * // => [1, 2]
2427
- *
2428
- * // Modify the result cache.
2429
- * values.cache.set(object, ['a', 'b']);
2430
- * values(object);
2431
- * // => ['a', 'b']
2432
- *
2433
- * // Replace `_.memoize.Cache`.
2434
- * _.memoize.Cache = WeakMap;
2435
- */
2436
- function memoize$1(func, resolver) {
2437
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
2438
- throw new TypeError(FUNC_ERROR_TEXT);
2439
- }
2440
- var memoized = function() {
2441
- var args = arguments,
2442
- key = resolver ? resolver.apply(this, args) : args[0],
2443
- cache = memoized.cache;
2444
-
2445
- if (cache.has(key)) {
2446
- return cache.get(key);
2447
- }
2448
- var result = func.apply(this, args);
2449
- memoized.cache = cache.set(key, result) || cache;
2450
- return result;
2451
- };
2452
- memoized.cache = new (memoize$1.Cache || MapCache);
2453
- return memoized;
2454
- }
2455
-
2456
- // Expose `MapCache`.
2457
- memoize$1.Cache = MapCache;
2458
-
2459
- var memoize_1 = memoize$1;
2460
-
2461
- var memoize = memoize_1;
2462
-
2463
- /** Used as the maximum memoize cache size. */
2464
- var MAX_MEMOIZE_SIZE = 500;
2465
-
2466
- /**
2467
- * A specialized version of `_.memoize` which clears the memoized function's
2468
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
2469
- *
2470
- * @private
2471
- * @param {Function} func The function to have its output memoized.
2472
- * @returns {Function} Returns the new memoized function.
2473
- */
2474
- function memoizeCapped$1(func) {
2475
- var result = memoize(func, function(key) {
2476
- if (cache.size === MAX_MEMOIZE_SIZE) {
2477
- cache.clear();
2478
- }
2479
- return key;
2480
- });
2481
-
2482
- var cache = result.cache;
2483
- return result;
2484
- }
2485
-
2486
- var _memoizeCapped = memoizeCapped$1;
2487
-
2488
- var memoizeCapped = _memoizeCapped;
2489
-
2490
- /** Used to match property names within property paths. */
2491
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
2492
-
2493
- /** Used to match backslashes in property paths. */
2494
- var reEscapeChar = /\\(\\)?/g;
2495
-
2496
- /**
2497
- * Converts `string` to a property path array.
2498
- *
2499
- * @private
2500
- * @param {string} string The string to convert.
2501
- * @returns {Array} Returns the property path array.
2502
- */
2503
- var stringToPath$1 = memoizeCapped(function(string) {
2504
- var result = [];
2505
- if (string.charCodeAt(0) === 46 /* . */) {
2506
- result.push('');
2507
- }
2508
- string.replace(rePropName, function(match, number, quote, subString) {
2509
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
2510
- });
2511
- return result;
2512
- });
2513
-
2514
- var _stringToPath = stringToPath$1;
2515
-
2516
- /**
2517
- * A specialized version of `_.map` for arrays without support for iteratee
2518
- * shorthands.
2519
- *
2520
- * @private
2521
- * @param {Array} [array] The array to iterate over.
2522
- * @param {Function} iteratee The function invoked per iteration.
2523
- * @returns {Array} Returns the new mapped array.
2524
- */
2525
-
2526
- function arrayMap$1(array, iteratee) {
2527
- var index = -1,
2528
- length = array == null ? 0 : array.length,
2529
- result = Array(length);
2530
-
2531
- while (++index < length) {
2532
- result[index] = iteratee(array[index], index, array);
2533
- }
2534
- return result;
2535
- }
2536
-
2537
- var _arrayMap = arrayMap$1;
2538
-
2539
- var Symbol = _Symbol,
2540
- arrayMap = _arrayMap,
2541
- isArray$3 = isArray_1,
2542
- isSymbol$1 = isSymbol_1;
2543
-
2544
- /** Used as references for various `Number` constants. */
2545
- var INFINITY$1 = 1 / 0;
2546
-
2547
- /** Used to convert symbols to primitives and strings. */
2548
- var symbolProto = Symbol ? Symbol.prototype : undefined,
2549
- symbolToString = symbolProto ? symbolProto.toString : undefined;
2550
-
2551
- /**
2552
- * The base implementation of `_.toString` which doesn't convert nullish
2553
- * values to empty strings.
2554
- *
2555
- * @private
2556
- * @param {*} value The value to process.
2557
- * @returns {string} Returns the string.
2558
- */
2559
- function baseToString$1(value) {
2560
- // Exit early for strings to avoid a performance hit in some environments.
2561
- if (typeof value == 'string') {
2562
- return value;
2563
- }
2564
- if (isArray$3(value)) {
2565
- // Recursively convert values (susceptible to call stack limits).
2566
- return arrayMap(value, baseToString$1) + '';
2567
- }
2568
- if (isSymbol$1(value)) {
2569
- return symbolToString ? symbolToString.call(value) : '';
2570
- }
2571
- var result = (value + '');
2572
- return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
2573
- }
2574
-
2575
- var _baseToString = baseToString$1;
2576
-
2577
- var baseToString = _baseToString;
2578
-
2579
- /**
2580
- * Converts `value` to a string. An empty string is returned for `null`
2581
- * and `undefined` values. The sign of `-0` is preserved.
2582
- *
2583
- * @static
2584
- * @memberOf _
2585
- * @since 4.0.0
2586
- * @category Lang
2587
- * @param {*} value The value to convert.
2588
- * @returns {string} Returns the converted string.
2589
- * @example
2590
- *
2591
- * _.toString(null);
2592
- * // => ''
2593
- *
2594
- * _.toString(-0);
2595
- * // => '-0'
2596
- *
2597
- * _.toString([1, 2, 3]);
2598
- * // => '1,2,3'
2599
- */
2600
- function toString$1(value) {
2601
- return value == null ? '' : baseToString(value);
2602
- }
2603
-
2604
- var toString_1 = toString$1;
2605
-
2606
- var isArray$2 = isArray_1,
2607
- isKey$2 = _isKey,
2608
- stringToPath = _stringToPath,
2609
- toString = toString_1;
2610
-
2611
- /**
2612
- * Casts `value` to a path array if it's not one.
2613
- *
2614
- * @private
2615
- * @param {*} value The value to inspect.
2616
- * @param {Object} [object] The object to query keys on.
2617
- * @returns {Array} Returns the cast property path array.
2618
- */
2619
- function castPath$2(value, object) {
2620
- if (isArray$2(value)) {
2621
- return value;
2622
- }
2623
- return isKey$2(value, object) ? [value] : stringToPath(toString(value));
2624
- }
2625
-
2626
- var _castPath = castPath$2;
2627
-
2628
- var isSymbol = isSymbol_1;
2629
-
2630
- /** Used as references for various `Number` constants. */
2631
- var INFINITY = 1 / 0;
2632
-
2633
- /**
2634
- * Converts `value` to a string key if it's not a string or symbol.
2635
- *
2636
- * @private
2637
- * @param {*} value The value to inspect.
2638
- * @returns {string|symbol} Returns the key.
2639
- */
2640
- function toKey$4(value) {
2641
- if (typeof value == 'string' || isSymbol(value)) {
2642
- return value;
2643
- }
2644
- var result = (value + '');
2645
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
2646
- }
2647
-
2648
- var _toKey = toKey$4;
2649
-
2650
- var castPath$1 = _castPath,
2651
- toKey$3 = _toKey;
2652
-
2653
- /**
2654
- * The base implementation of `_.get` without support for default values.
2655
- *
2656
- * @private
2657
- * @param {Object} object The object to query.
2658
- * @param {Array|string} path The path of the property to get.
2659
- * @returns {*} Returns the resolved value.
2660
- */
2661
- function baseGet$2(object, path) {
2662
- path = castPath$1(path, object);
2663
-
2664
- var index = 0,
2665
- length = path.length;
2666
-
2667
- while (object != null && index < length) {
2668
- object = object[toKey$3(path[index++])];
2669
- }
2670
- return (index && index == length) ? object : undefined;
2671
- }
2672
-
2673
- var _baseGet = baseGet$2;
2674
-
2675
- var baseGet$1 = _baseGet;
2676
-
2677
- /**
2678
- * Gets the value at `path` of `object`. If the resolved value is
2679
- * `undefined`, the `defaultValue` is returned in its place.
2680
- *
2681
- * @static
2682
- * @memberOf _
2683
- * @since 3.7.0
2684
- * @category Object
2685
- * @param {Object} object The object to query.
2686
- * @param {Array|string} path The path of the property to get.
2687
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
2688
- * @returns {*} Returns the resolved value.
2689
- * @example
2690
- *
2691
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
2692
- *
2693
- * _.get(object, 'a[0].b.c');
2694
- * // => 3
2695
- *
2696
- * _.get(object, ['a', '0', 'b', 'c']);
2697
- * // => 3
2698
- *
2699
- * _.get(object, 'a.b.c', 'default');
2700
- * // => 'default'
2701
- */
2702
- function get$1(object, path, defaultValue) {
2703
- var result = object == null ? undefined : baseGet$1(object, path);
2704
- return result === undefined ? defaultValue : result;
2705
- }
2706
-
2707
- var get_1 = get$1;
2708
-
2709
- /**
2710
- * The base implementation of `_.hasIn` without support for deep paths.
2711
- *
2712
- * @private
2713
- * @param {Object} [object] The object to query.
2714
- * @param {Array|string} key The key to check.
2715
- * @returns {boolean} Returns `true` if `key` exists, else `false`.
2716
- */
2717
-
2718
- function baseHasIn$1(object, key) {
2719
- return object != null && key in Object(object);
2720
- }
2721
-
2722
- var _baseHasIn = baseHasIn$1;
2723
-
2724
- var castPath = _castPath,
2725
- isArguments = isArguments_1,
2726
- isArray$1 = isArray_1,
2727
- isIndex = _isIndex,
2728
- isLength = isLength_1,
2729
- toKey$2 = _toKey;
2730
-
2731
- /**
2732
- * Checks if `path` exists on `object`.
2733
- *
2734
- * @private
2735
- * @param {Object} object The object to query.
2736
- * @param {Array|string} path The path to check.
2737
- * @param {Function} hasFunc The function to check properties.
2738
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
2739
- */
2740
- function hasPath$1(object, path, hasFunc) {
2741
- path = castPath(path, object);
2742
-
2743
- var index = -1,
2744
- length = path.length,
2745
- result = false;
2746
-
2747
- while (++index < length) {
2748
- var key = toKey$2(path[index]);
2749
- if (!(result = object != null && hasFunc(object, key))) {
2750
- break;
2751
- }
2752
- object = object[key];
2753
- }
2754
- if (result || ++index != length) {
2755
- return result;
2756
- }
2757
- length = object == null ? 0 : object.length;
2758
- return !!length && isLength(length) && isIndex(key, length) &&
2759
- (isArray$1(object) || isArguments(object));
2760
- }
2761
-
2762
- var _hasPath = hasPath$1;
2763
-
2764
- var baseHasIn = _baseHasIn,
2765
- hasPath = _hasPath;
2766
-
2767
- /**
2768
- * Checks if `path` is a direct or inherited property of `object`.
2769
- *
2770
- * @static
2771
- * @memberOf _
2772
- * @since 4.0.0
2773
- * @category Object
2774
- * @param {Object} object The object to query.
2775
- * @param {Array|string} path The path to check.
2776
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
2777
- * @example
2778
- *
2779
- * var object = _.create({ 'a': _.create({ 'b': 2 }) });
2780
- *
2781
- * _.hasIn(object, 'a');
2782
- * // => true
2783
- *
2784
- * _.hasIn(object, 'a.b');
2785
- * // => true
2786
- *
2787
- * _.hasIn(object, ['a', 'b']);
2788
- * // => true
2789
- *
2790
- * _.hasIn(object, 'b');
2791
- * // => false
2792
- */
2793
- function hasIn$1(object, path) {
2794
- return object != null && hasPath(object, path, baseHasIn);
2795
- }
2796
-
2797
- var hasIn_1 = hasIn$1;
2798
-
2799
- var baseIsEqual = _baseIsEqual,
2800
- get = get_1,
2801
- hasIn = hasIn_1,
2802
- isKey$1 = _isKey,
2803
- isStrictComparable = _isStrictComparable,
2804
- matchesStrictComparable = _matchesStrictComparable,
2805
- toKey$1 = _toKey;
2806
-
2807
- /** Used to compose bitmasks for value comparisons. */
2808
- var COMPARE_PARTIAL_FLAG = 1,
2809
- COMPARE_UNORDERED_FLAG = 2;
2810
-
2811
- /**
2812
- * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
2813
- *
2814
- * @private
2815
- * @param {string} path The path of the property to get.
2816
- * @param {*} srcValue The value to match.
2817
- * @returns {Function} Returns the new spec function.
2818
- */
2819
- function baseMatchesProperty$1(path, srcValue) {
2820
- if (isKey$1(path) && isStrictComparable(srcValue)) {
2821
- return matchesStrictComparable(toKey$1(path), srcValue);
2822
- }
2823
- return function(object) {
2824
- var objValue = get(object, path);
2825
- return (objValue === undefined && objValue === srcValue)
2826
- ? hasIn(object, path)
2827
- : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
2828
- };
2829
- }
2830
-
2831
- var _baseMatchesProperty = baseMatchesProperty$1;
2832
-
2833
- /**
2834
- * This method returns the first argument it receives.
2835
- *
2836
- * @static
2837
- * @since 0.1.0
2838
- * @memberOf _
2839
- * @category Util
2840
- * @param {*} value Any value.
2841
- * @returns {*} Returns `value`.
2842
- * @example
2843
- *
2844
- * var object = { 'a': 1 };
2845
- *
2846
- * console.log(_.identity(object) === object);
2847
- * // => true
2848
- */
2849
-
2850
- function identity$1(value) {
2851
- return value;
2852
- }
2853
-
2854
- var identity_1 = identity$1;
2855
-
2856
- /**
2857
- * The base implementation of `_.property` without support for deep paths.
2858
- *
2859
- * @private
2860
- * @param {string} key The key of the property to get.
2861
- * @returns {Function} Returns the new accessor function.
2862
- */
2863
-
2864
- function baseProperty$1(key) {
2865
- return function(object) {
2866
- return object == null ? undefined : object[key];
2867
- };
2868
- }
2869
-
2870
- var _baseProperty = baseProperty$1;
2871
-
2872
- var baseGet = _baseGet;
2873
-
2874
- /**
2875
- * A specialized version of `baseProperty` which supports deep paths.
2876
- *
2877
- * @private
2878
- * @param {Array|string} path The path of the property to get.
2879
- * @returns {Function} Returns the new accessor function.
2880
- */
2881
- function basePropertyDeep$1(path) {
2882
- return function(object) {
2883
- return baseGet(object, path);
2884
- };
2885
- }
2886
-
2887
- var _basePropertyDeep = basePropertyDeep$1;
2888
-
2889
- var baseProperty = _baseProperty,
2890
- basePropertyDeep = _basePropertyDeep,
2891
- isKey = _isKey,
2892
- toKey = _toKey;
2893
-
2894
- /**
2895
- * Creates a function that returns the value at `path` of a given object.
2896
- *
2897
- * @static
2898
- * @memberOf _
2899
- * @since 2.4.0
2900
- * @category Util
2901
- * @param {Array|string} path The path of the property to get.
2902
- * @returns {Function} Returns the new accessor function.
2903
- * @example
2904
- *
2905
- * var objects = [
2906
- * { 'a': { 'b': 2 } },
2907
- * { 'a': { 'b': 1 } }
2908
- * ];
2909
- *
2910
- * _.map(objects, _.property('a.b'));
2911
- * // => [2, 1]
2912
- *
2913
- * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
2914
- * // => [1, 2]
2915
- */
2916
- function property$1(path) {
2917
- return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
2918
- }
2919
-
2920
- var property_1 = property$1;
2921
-
2922
- var baseMatches = _baseMatches,
2923
- baseMatchesProperty = _baseMatchesProperty,
2924
- identity = identity_1,
2925
- isArray = isArray_1,
2926
- property = property_1;
2927
-
2928
- /**
2929
- * The base implementation of `_.iteratee`.
2930
- *
2931
- * @private
2932
- * @param {*} [value=_.identity] The value to convert to an iteratee.
2933
- * @returns {Function} Returns the iteratee.
2934
- */
2935
- function baseIteratee(value) {
2936
- // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
2937
- // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
2938
- if (typeof value == 'function') {
2939
- return value;
2940
- }
2941
- if (value == null) {
2942
- return identity;
2943
- }
2944
- if (typeof value == 'object') {
2945
- return isArray(value)
2946
- ? baseMatchesProperty(value[0], value[1])
2947
- : baseMatches(value);
2948
- }
2949
- return property(value);
2950
- }
2951
-
2952
- var _baseIteratee = baseIteratee;
2953
-
2954
- export { _baseIteratee as _, _arrayMap as a, isArray_1 as b, _baseProperty as c, _baseKeys as d, _getTag as e, _getNative as f, eq_1 as g, _isIndex as h, isArrayLike_1 as i, identity_1 as j, keys_1 as k };
2955
-
2956
- //# sourceMappingURL=_baseIteratee.js.map