@digitransit-component/digitransit-component-favourite-bar 8.0.0 → 9.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -5,11 +5,6 @@ import cx from 'classnames';
5
5
  import Shimmer from '@hsl-fi/shimmer';
6
6
  import SuggestionItem from '@digitransit-component/digitransit-component-suggestion-item';
7
7
  import Icon, { defaultColors } from '@digitransit-component/digitransit-component-icon';
8
- import 'lodash/uniqWith';
9
- import 'lodash/isEqual';
10
- import memoize from 'lodash/memoize';
11
- import escapeRegExp from 'lodash/escapeRegExp';
12
- import cloneDeep from 'lodash/cloneDeep';
13
8
  import { createInstance } from 'i18next';
14
9
  import { jsxs, jsx } from 'react/jsx-runtime';
15
10
 
@@ -39,7 +34,7 @@ function toPropertyKey(t) {
39
34
  return "symbol" == _typeof(i) ? i : i + "";
40
35
  }
41
36
 
42
- function _defineProperty(e, r, t) {
37
+ function _defineProperty$1(e, r, t) {
43
38
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
44
39
  value: t,
45
40
  enumerable: true,
@@ -48,6 +43,4980 @@ function _defineProperty(e, r, t) {
48
43
  }) : e[r] = t, e;
49
44
  }
50
45
 
46
+ function getDefaultExportFromCjs (x) {
47
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
48
+ }
49
+
50
+ /** Detect free variable `global` from Node.js. */
51
+
52
+ var _freeGlobal;
53
+ var hasRequired_freeGlobal;
54
+
55
+ function require_freeGlobal () {
56
+ if (hasRequired_freeGlobal) return _freeGlobal;
57
+ hasRequired_freeGlobal = 1;
58
+ var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
59
+
60
+ _freeGlobal = freeGlobal;
61
+ return _freeGlobal;
62
+ }
63
+
64
+ var _root;
65
+ var hasRequired_root;
66
+
67
+ function require_root () {
68
+ if (hasRequired_root) return _root;
69
+ hasRequired_root = 1;
70
+ var freeGlobal = require_freeGlobal();
71
+
72
+ /** Detect free variable `self`. */
73
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
74
+
75
+ /** Used as a reference to the global object. */
76
+ var root = freeGlobal || freeSelf || Function('return this')();
77
+
78
+ _root = root;
79
+ return _root;
80
+ }
81
+
82
+ var _Symbol;
83
+ var hasRequired_Symbol;
84
+
85
+ function require_Symbol () {
86
+ if (hasRequired_Symbol) return _Symbol;
87
+ hasRequired_Symbol = 1;
88
+ var root = require_root();
89
+
90
+ /** Built-in value references. */
91
+ var Symbol = root.Symbol;
92
+
93
+ _Symbol = Symbol;
94
+ return _Symbol;
95
+ }
96
+
97
+ var _getRawTag;
98
+ var hasRequired_getRawTag;
99
+
100
+ function require_getRawTag () {
101
+ if (hasRequired_getRawTag) return _getRawTag;
102
+ hasRequired_getRawTag = 1;
103
+ var Symbol = require_Symbol();
104
+
105
+ /** Used for built-in method references. */
106
+ var objectProto = Object.prototype;
107
+
108
+ /** Used to check objects for own properties. */
109
+ var hasOwnProperty = objectProto.hasOwnProperty;
110
+
111
+ /**
112
+ * Used to resolve the
113
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
114
+ * of values.
115
+ */
116
+ var nativeObjectToString = objectProto.toString;
117
+
118
+ /** Built-in value references. */
119
+ var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
120
+
121
+ /**
122
+ * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
123
+ *
124
+ * @private
125
+ * @param {*} value The value to query.
126
+ * @returns {string} Returns the raw `toStringTag`.
127
+ */
128
+ function getRawTag(value) {
129
+ var isOwn = hasOwnProperty.call(value, symToStringTag),
130
+ tag = value[symToStringTag];
131
+
132
+ try {
133
+ value[symToStringTag] = undefined;
134
+ var unmasked = true;
135
+ } catch (e) {}
136
+
137
+ var result = nativeObjectToString.call(value);
138
+ if (unmasked) {
139
+ if (isOwn) {
140
+ value[symToStringTag] = tag;
141
+ } else {
142
+ delete value[symToStringTag];
143
+ }
144
+ }
145
+ return result;
146
+ }
147
+
148
+ _getRawTag = getRawTag;
149
+ return _getRawTag;
150
+ }
151
+
152
+ /** Used for built-in method references. */
153
+
154
+ var _objectToString;
155
+ var hasRequired_objectToString;
156
+
157
+ function require_objectToString () {
158
+ if (hasRequired_objectToString) return _objectToString;
159
+ hasRequired_objectToString = 1;
160
+ var objectProto = Object.prototype;
161
+
162
+ /**
163
+ * Used to resolve the
164
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
165
+ * of values.
166
+ */
167
+ var nativeObjectToString = objectProto.toString;
168
+
169
+ /**
170
+ * Converts `value` to a string using `Object.prototype.toString`.
171
+ *
172
+ * @private
173
+ * @param {*} value The value to convert.
174
+ * @returns {string} Returns the converted string.
175
+ */
176
+ function objectToString(value) {
177
+ return nativeObjectToString.call(value);
178
+ }
179
+
180
+ _objectToString = objectToString;
181
+ return _objectToString;
182
+ }
183
+
184
+ var _baseGetTag;
185
+ var hasRequired_baseGetTag;
186
+
187
+ function require_baseGetTag () {
188
+ if (hasRequired_baseGetTag) return _baseGetTag;
189
+ hasRequired_baseGetTag = 1;
190
+ var Symbol = require_Symbol(),
191
+ getRawTag = require_getRawTag(),
192
+ objectToString = require_objectToString();
193
+
194
+ /** `Object#toString` result references. */
195
+ var nullTag = '[object Null]',
196
+ undefinedTag = '[object Undefined]';
197
+
198
+ /** Built-in value references. */
199
+ var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
200
+
201
+ /**
202
+ * The base implementation of `getTag` without fallbacks for buggy environments.
203
+ *
204
+ * @private
205
+ * @param {*} value The value to query.
206
+ * @returns {string} Returns the `toStringTag`.
207
+ */
208
+ function baseGetTag(value) {
209
+ if (value == null) {
210
+ return value === undefined ? undefinedTag : nullTag;
211
+ }
212
+ return (symToStringTag && symToStringTag in Object(value))
213
+ ? getRawTag(value)
214
+ : objectToString(value);
215
+ }
216
+
217
+ _baseGetTag = baseGetTag;
218
+ return _baseGetTag;
219
+ }
220
+
221
+ /**
222
+ * Checks if `value` is the
223
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
224
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
225
+ *
226
+ * @static
227
+ * @memberOf _
228
+ * @since 0.1.0
229
+ * @category Lang
230
+ * @param {*} value The value to check.
231
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
232
+ * @example
233
+ *
234
+ * _.isObject({});
235
+ * // => true
236
+ *
237
+ * _.isObject([1, 2, 3]);
238
+ * // => true
239
+ *
240
+ * _.isObject(_.noop);
241
+ * // => true
242
+ *
243
+ * _.isObject(null);
244
+ * // => false
245
+ */
246
+
247
+ var isObject_1;
248
+ var hasRequiredIsObject;
249
+
250
+ function requireIsObject () {
251
+ if (hasRequiredIsObject) return isObject_1;
252
+ hasRequiredIsObject = 1;
253
+ function isObject(value) {
254
+ var type = typeof value;
255
+ return value != null && (type == 'object' || type == 'function');
256
+ }
257
+
258
+ isObject_1 = isObject;
259
+ return isObject_1;
260
+ }
261
+
262
+ var isFunction_1;
263
+ var hasRequiredIsFunction;
264
+
265
+ function requireIsFunction () {
266
+ if (hasRequiredIsFunction) return isFunction_1;
267
+ hasRequiredIsFunction = 1;
268
+ var baseGetTag = require_baseGetTag(),
269
+ isObject = requireIsObject();
270
+
271
+ /** `Object#toString` result references. */
272
+ var asyncTag = '[object AsyncFunction]',
273
+ funcTag = '[object Function]',
274
+ genTag = '[object GeneratorFunction]',
275
+ proxyTag = '[object Proxy]';
276
+
277
+ /**
278
+ * Checks if `value` is classified as a `Function` object.
279
+ *
280
+ * @static
281
+ * @memberOf _
282
+ * @since 0.1.0
283
+ * @category Lang
284
+ * @param {*} value The value to check.
285
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
286
+ * @example
287
+ *
288
+ * _.isFunction(_);
289
+ * // => true
290
+ *
291
+ * _.isFunction(/abc/);
292
+ * // => false
293
+ */
294
+ function isFunction(value) {
295
+ if (!isObject(value)) {
296
+ return false;
297
+ }
298
+ // The use of `Object#toString` avoids issues with the `typeof` operator
299
+ // in Safari 9 which returns 'object' for typed arrays and other constructors.
300
+ var tag = baseGetTag(value);
301
+ return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
302
+ }
303
+
304
+ isFunction_1 = isFunction;
305
+ return isFunction_1;
306
+ }
307
+
308
+ var _coreJsData;
309
+ var hasRequired_coreJsData;
310
+
311
+ function require_coreJsData () {
312
+ if (hasRequired_coreJsData) return _coreJsData;
313
+ hasRequired_coreJsData = 1;
314
+ var root = require_root();
315
+
316
+ /** Used to detect overreaching core-js shims. */
317
+ var coreJsData = root['__core-js_shared__'];
318
+
319
+ _coreJsData = coreJsData;
320
+ return _coreJsData;
321
+ }
322
+
323
+ var _isMasked;
324
+ var hasRequired_isMasked;
325
+
326
+ function require_isMasked () {
327
+ if (hasRequired_isMasked) return _isMasked;
328
+ hasRequired_isMasked = 1;
329
+ var coreJsData = require_coreJsData();
330
+
331
+ /** Used to detect methods masquerading as native. */
332
+ var maskSrcKey = (function() {
333
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
334
+ return uid ? ('Symbol(src)_1.' + uid) : '';
335
+ }());
336
+
337
+ /**
338
+ * Checks if `func` has its source masked.
339
+ *
340
+ * @private
341
+ * @param {Function} func The function to check.
342
+ * @returns {boolean} Returns `true` if `func` is masked, else `false`.
343
+ */
344
+ function isMasked(func) {
345
+ return !!maskSrcKey && (maskSrcKey in func);
346
+ }
347
+
348
+ _isMasked = isMasked;
349
+ return _isMasked;
350
+ }
351
+
352
+ /** Used for built-in method references. */
353
+
354
+ var _toSource;
355
+ var hasRequired_toSource;
356
+
357
+ function require_toSource () {
358
+ if (hasRequired_toSource) return _toSource;
359
+ hasRequired_toSource = 1;
360
+ var funcProto = Function.prototype;
361
+
362
+ /** Used to resolve the decompiled source of functions. */
363
+ var funcToString = funcProto.toString;
364
+
365
+ /**
366
+ * Converts `func` to its source code.
367
+ *
368
+ * @private
369
+ * @param {Function} func The function to convert.
370
+ * @returns {string} Returns the source code.
371
+ */
372
+ function toSource(func) {
373
+ if (func != null) {
374
+ try {
375
+ return funcToString.call(func);
376
+ } catch (e) {}
377
+ try {
378
+ return (func + '');
379
+ } catch (e) {}
380
+ }
381
+ return '';
382
+ }
383
+
384
+ _toSource = toSource;
385
+ return _toSource;
386
+ }
387
+
388
+ var _baseIsNative;
389
+ var hasRequired_baseIsNative;
390
+
391
+ function require_baseIsNative () {
392
+ if (hasRequired_baseIsNative) return _baseIsNative;
393
+ hasRequired_baseIsNative = 1;
394
+ var isFunction = requireIsFunction(),
395
+ isMasked = require_isMasked(),
396
+ isObject = requireIsObject(),
397
+ toSource = require_toSource();
398
+
399
+ /**
400
+ * Used to match `RegExp`
401
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
402
+ */
403
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
404
+
405
+ /** Used to detect host constructors (Safari). */
406
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
407
+
408
+ /** Used for built-in method references. */
409
+ var funcProto = Function.prototype,
410
+ objectProto = Object.prototype;
411
+
412
+ /** Used to resolve the decompiled source of functions. */
413
+ var funcToString = funcProto.toString;
414
+
415
+ /** Used to check objects for own properties. */
416
+ var hasOwnProperty = objectProto.hasOwnProperty;
417
+
418
+ /** Used to detect if a method is native. */
419
+ var reIsNative = RegExp('^' +
420
+ funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
421
+ .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
422
+ );
423
+
424
+ /**
425
+ * The base implementation of `_.isNative` without bad shim checks.
426
+ *
427
+ * @private
428
+ * @param {*} value The value to check.
429
+ * @returns {boolean} Returns `true` if `value` is a native function,
430
+ * else `false`.
431
+ */
432
+ function baseIsNative(value) {
433
+ if (!isObject(value) || isMasked(value)) {
434
+ return false;
435
+ }
436
+ var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
437
+ return pattern.test(toSource(value));
438
+ }
439
+
440
+ _baseIsNative = baseIsNative;
441
+ return _baseIsNative;
442
+ }
443
+
444
+ /**
445
+ * Gets the value at `key` of `object`.
446
+ *
447
+ * @private
448
+ * @param {Object} [object] The object to query.
449
+ * @param {string} key The key of the property to get.
450
+ * @returns {*} Returns the property value.
451
+ */
452
+
453
+ var _getValue;
454
+ var hasRequired_getValue;
455
+
456
+ function require_getValue () {
457
+ if (hasRequired_getValue) return _getValue;
458
+ hasRequired_getValue = 1;
459
+ function getValue(object, key) {
460
+ return object == null ? undefined : object[key];
461
+ }
462
+
463
+ _getValue = getValue;
464
+ return _getValue;
465
+ }
466
+
467
+ var _getNative;
468
+ var hasRequired_getNative;
469
+
470
+ function require_getNative () {
471
+ if (hasRequired_getNative) return _getNative;
472
+ hasRequired_getNative = 1;
473
+ var baseIsNative = require_baseIsNative(),
474
+ getValue = require_getValue();
475
+
476
+ /**
477
+ * Gets the native function at `key` of `object`.
478
+ *
479
+ * @private
480
+ * @param {Object} object The object to query.
481
+ * @param {string} key The key of the method to get.
482
+ * @returns {*} Returns the function if it's native, else `undefined`.
483
+ */
484
+ function getNative(object, key) {
485
+ var value = getValue(object, key);
486
+ return baseIsNative(value) ? value : undefined;
487
+ }
488
+
489
+ _getNative = getNative;
490
+ return _getNative;
491
+ }
492
+
493
+ var _nativeCreate;
494
+ var hasRequired_nativeCreate;
495
+
496
+ function require_nativeCreate () {
497
+ if (hasRequired_nativeCreate) return _nativeCreate;
498
+ hasRequired_nativeCreate = 1;
499
+ var getNative = require_getNative();
500
+
501
+ /* Built-in method references that are verified to be native. */
502
+ var nativeCreate = getNative(Object, 'create');
503
+
504
+ _nativeCreate = nativeCreate;
505
+ return _nativeCreate;
506
+ }
507
+
508
+ var _hashClear;
509
+ var hasRequired_hashClear;
510
+
511
+ function require_hashClear () {
512
+ if (hasRequired_hashClear) return _hashClear;
513
+ hasRequired_hashClear = 1;
514
+ var nativeCreate = require_nativeCreate();
515
+
516
+ /**
517
+ * Removes all key-value entries from the hash.
518
+ *
519
+ * @private
520
+ * @name clear
521
+ * @memberOf Hash
522
+ */
523
+ function hashClear() {
524
+ this.__data__ = nativeCreate ? nativeCreate(null) : {};
525
+ this.size = 0;
526
+ }
527
+
528
+ _hashClear = hashClear;
529
+ return _hashClear;
530
+ }
531
+
532
+ /**
533
+ * Removes `key` and its value from the hash.
534
+ *
535
+ * @private
536
+ * @name delete
537
+ * @memberOf Hash
538
+ * @param {Object} hash The hash to modify.
539
+ * @param {string} key The key of the value to remove.
540
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
541
+ */
542
+
543
+ var _hashDelete;
544
+ var hasRequired_hashDelete;
545
+
546
+ function require_hashDelete () {
547
+ if (hasRequired_hashDelete) return _hashDelete;
548
+ hasRequired_hashDelete = 1;
549
+ function hashDelete(key) {
550
+ var result = this.has(key) && delete this.__data__[key];
551
+ this.size -= result ? 1 : 0;
552
+ return result;
553
+ }
554
+
555
+ _hashDelete = hashDelete;
556
+ return _hashDelete;
557
+ }
558
+
559
+ var _hashGet;
560
+ var hasRequired_hashGet;
561
+
562
+ function require_hashGet () {
563
+ if (hasRequired_hashGet) return _hashGet;
564
+ hasRequired_hashGet = 1;
565
+ var nativeCreate = require_nativeCreate();
566
+
567
+ /** Used to stand-in for `undefined` hash values. */
568
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
569
+
570
+ /** Used for built-in method references. */
571
+ var objectProto = Object.prototype;
572
+
573
+ /** Used to check objects for own properties. */
574
+ var hasOwnProperty = objectProto.hasOwnProperty;
575
+
576
+ /**
577
+ * Gets the hash value for `key`.
578
+ *
579
+ * @private
580
+ * @name get
581
+ * @memberOf Hash
582
+ * @param {string} key The key of the value to get.
583
+ * @returns {*} Returns the entry value.
584
+ */
585
+ function hashGet(key) {
586
+ var data = this.__data__;
587
+ if (nativeCreate) {
588
+ var result = data[key];
589
+ return result === HASH_UNDEFINED ? undefined : result;
590
+ }
591
+ return hasOwnProperty.call(data, key) ? data[key] : undefined;
592
+ }
593
+
594
+ _hashGet = hashGet;
595
+ return _hashGet;
596
+ }
597
+
598
+ var _hashHas;
599
+ var hasRequired_hashHas;
600
+
601
+ function require_hashHas () {
602
+ if (hasRequired_hashHas) return _hashHas;
603
+ hasRequired_hashHas = 1;
604
+ var nativeCreate = require_nativeCreate();
605
+
606
+ /** Used for built-in method references. */
607
+ var objectProto = Object.prototype;
608
+
609
+ /** Used to check objects for own properties. */
610
+ var hasOwnProperty = objectProto.hasOwnProperty;
611
+
612
+ /**
613
+ * Checks if a hash value for `key` exists.
614
+ *
615
+ * @private
616
+ * @name has
617
+ * @memberOf Hash
618
+ * @param {string} key The key of the entry to check.
619
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
620
+ */
621
+ function hashHas(key) {
622
+ var data = this.__data__;
623
+ return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
624
+ }
625
+
626
+ _hashHas = hashHas;
627
+ return _hashHas;
628
+ }
629
+
630
+ var _hashSet;
631
+ var hasRequired_hashSet;
632
+
633
+ function require_hashSet () {
634
+ if (hasRequired_hashSet) return _hashSet;
635
+ hasRequired_hashSet = 1;
636
+ var nativeCreate = require_nativeCreate();
637
+
638
+ /** Used to stand-in for `undefined` hash values. */
639
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
640
+
641
+ /**
642
+ * Sets the hash `key` to `value`.
643
+ *
644
+ * @private
645
+ * @name set
646
+ * @memberOf Hash
647
+ * @param {string} key The key of the value to set.
648
+ * @param {*} value The value to set.
649
+ * @returns {Object} Returns the hash instance.
650
+ */
651
+ function hashSet(key, value) {
652
+ var data = this.__data__;
653
+ this.size += this.has(key) ? 0 : 1;
654
+ data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
655
+ return this;
656
+ }
657
+
658
+ _hashSet = hashSet;
659
+ return _hashSet;
660
+ }
661
+
662
+ var _Hash;
663
+ var hasRequired_Hash;
664
+
665
+ function require_Hash () {
666
+ if (hasRequired_Hash) return _Hash;
667
+ hasRequired_Hash = 1;
668
+ var hashClear = require_hashClear(),
669
+ hashDelete = require_hashDelete(),
670
+ hashGet = require_hashGet(),
671
+ hashHas = require_hashHas(),
672
+ hashSet = require_hashSet();
673
+
674
+ /**
675
+ * Creates a hash object.
676
+ *
677
+ * @private
678
+ * @constructor
679
+ * @param {Array} [entries] The key-value pairs to cache.
680
+ */
681
+ function Hash(entries) {
682
+ var index = -1,
683
+ length = entries == null ? 0 : entries.length;
684
+
685
+ this.clear();
686
+ while (++index < length) {
687
+ var entry = entries[index];
688
+ this.set(entry[0], entry[1]);
689
+ }
690
+ }
691
+
692
+ // Add methods to `Hash`.
693
+ Hash.prototype.clear = hashClear;
694
+ Hash.prototype['delete'] = hashDelete;
695
+ Hash.prototype.get = hashGet;
696
+ Hash.prototype.has = hashHas;
697
+ Hash.prototype.set = hashSet;
698
+
699
+ _Hash = Hash;
700
+ return _Hash;
701
+ }
702
+
703
+ /**
704
+ * Removes all key-value entries from the list cache.
705
+ *
706
+ * @private
707
+ * @name clear
708
+ * @memberOf ListCache
709
+ */
710
+
711
+ var _listCacheClear;
712
+ var hasRequired_listCacheClear;
713
+
714
+ function require_listCacheClear () {
715
+ if (hasRequired_listCacheClear) return _listCacheClear;
716
+ hasRequired_listCacheClear = 1;
717
+ function listCacheClear() {
718
+ this.__data__ = [];
719
+ this.size = 0;
720
+ }
721
+
722
+ _listCacheClear = listCacheClear;
723
+ return _listCacheClear;
724
+ }
725
+
726
+ /**
727
+ * Performs a
728
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
729
+ * comparison between two values to determine if they are equivalent.
730
+ *
731
+ * @static
732
+ * @memberOf _
733
+ * @since 4.0.0
734
+ * @category Lang
735
+ * @param {*} value The value to compare.
736
+ * @param {*} other The other value to compare.
737
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
738
+ * @example
739
+ *
740
+ * var object = { 'a': 1 };
741
+ * var other = { 'a': 1 };
742
+ *
743
+ * _.eq(object, object);
744
+ * // => true
745
+ *
746
+ * _.eq(object, other);
747
+ * // => false
748
+ *
749
+ * _.eq('a', 'a');
750
+ * // => true
751
+ *
752
+ * _.eq('a', Object('a'));
753
+ * // => false
754
+ *
755
+ * _.eq(NaN, NaN);
756
+ * // => true
757
+ */
758
+
759
+ var eq_1;
760
+ var hasRequiredEq;
761
+
762
+ function requireEq () {
763
+ if (hasRequiredEq) return eq_1;
764
+ hasRequiredEq = 1;
765
+ function eq(value, other) {
766
+ return value === other || (value !== value && other !== other);
767
+ }
768
+
769
+ eq_1 = eq;
770
+ return eq_1;
771
+ }
772
+
773
+ var _assocIndexOf;
774
+ var hasRequired_assocIndexOf;
775
+
776
+ function require_assocIndexOf () {
777
+ if (hasRequired_assocIndexOf) return _assocIndexOf;
778
+ hasRequired_assocIndexOf = 1;
779
+ var eq = requireEq();
780
+
781
+ /**
782
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
783
+ *
784
+ * @private
785
+ * @param {Array} array The array to inspect.
786
+ * @param {*} key The key to search for.
787
+ * @returns {number} Returns the index of the matched value, else `-1`.
788
+ */
789
+ function assocIndexOf(array, key) {
790
+ var length = array.length;
791
+ while (length--) {
792
+ if (eq(array[length][0], key)) {
793
+ return length;
794
+ }
795
+ }
796
+ return -1;
797
+ }
798
+
799
+ _assocIndexOf = assocIndexOf;
800
+ return _assocIndexOf;
801
+ }
802
+
803
+ var _listCacheDelete;
804
+ var hasRequired_listCacheDelete;
805
+
806
+ function require_listCacheDelete () {
807
+ if (hasRequired_listCacheDelete) return _listCacheDelete;
808
+ hasRequired_listCacheDelete = 1;
809
+ var assocIndexOf = require_assocIndexOf();
810
+
811
+ /** Used for built-in method references. */
812
+ var arrayProto = Array.prototype;
813
+
814
+ /** Built-in value references. */
815
+ var splice = arrayProto.splice;
816
+
817
+ /**
818
+ * Removes `key` and its value from the list cache.
819
+ *
820
+ * @private
821
+ * @name delete
822
+ * @memberOf ListCache
823
+ * @param {string} key The key of the value to remove.
824
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
825
+ */
826
+ function listCacheDelete(key) {
827
+ var data = this.__data__,
828
+ index = assocIndexOf(data, key);
829
+
830
+ if (index < 0) {
831
+ return false;
832
+ }
833
+ var lastIndex = data.length - 1;
834
+ if (index == lastIndex) {
835
+ data.pop();
836
+ } else {
837
+ splice.call(data, index, 1);
838
+ }
839
+ --this.size;
840
+ return true;
841
+ }
842
+
843
+ _listCacheDelete = listCacheDelete;
844
+ return _listCacheDelete;
845
+ }
846
+
847
+ var _listCacheGet;
848
+ var hasRequired_listCacheGet;
849
+
850
+ function require_listCacheGet () {
851
+ if (hasRequired_listCacheGet) return _listCacheGet;
852
+ hasRequired_listCacheGet = 1;
853
+ var assocIndexOf = require_assocIndexOf();
854
+
855
+ /**
856
+ * Gets the list cache value for `key`.
857
+ *
858
+ * @private
859
+ * @name get
860
+ * @memberOf ListCache
861
+ * @param {string} key The key of the value to get.
862
+ * @returns {*} Returns the entry value.
863
+ */
864
+ function listCacheGet(key) {
865
+ var data = this.__data__,
866
+ index = assocIndexOf(data, key);
867
+
868
+ return index < 0 ? undefined : data[index][1];
869
+ }
870
+
871
+ _listCacheGet = listCacheGet;
872
+ return _listCacheGet;
873
+ }
874
+
875
+ var _listCacheHas;
876
+ var hasRequired_listCacheHas;
877
+
878
+ function require_listCacheHas () {
879
+ if (hasRequired_listCacheHas) return _listCacheHas;
880
+ hasRequired_listCacheHas = 1;
881
+ var assocIndexOf = require_assocIndexOf();
882
+
883
+ /**
884
+ * Checks if a list cache value for `key` exists.
885
+ *
886
+ * @private
887
+ * @name has
888
+ * @memberOf ListCache
889
+ * @param {string} key The key of the entry to check.
890
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
891
+ */
892
+ function listCacheHas(key) {
893
+ return assocIndexOf(this.__data__, key) > -1;
894
+ }
895
+
896
+ _listCacheHas = listCacheHas;
897
+ return _listCacheHas;
898
+ }
899
+
900
+ var _listCacheSet;
901
+ var hasRequired_listCacheSet;
902
+
903
+ function require_listCacheSet () {
904
+ if (hasRequired_listCacheSet) return _listCacheSet;
905
+ hasRequired_listCacheSet = 1;
906
+ var assocIndexOf = require_assocIndexOf();
907
+
908
+ /**
909
+ * Sets the list cache `key` to `value`.
910
+ *
911
+ * @private
912
+ * @name set
913
+ * @memberOf ListCache
914
+ * @param {string} key The key of the value to set.
915
+ * @param {*} value The value to set.
916
+ * @returns {Object} Returns the list cache instance.
917
+ */
918
+ function listCacheSet(key, value) {
919
+ var data = this.__data__,
920
+ index = assocIndexOf(data, key);
921
+
922
+ if (index < 0) {
923
+ ++this.size;
924
+ data.push([key, value]);
925
+ } else {
926
+ data[index][1] = value;
927
+ }
928
+ return this;
929
+ }
930
+
931
+ _listCacheSet = listCacheSet;
932
+ return _listCacheSet;
933
+ }
934
+
935
+ var _ListCache;
936
+ var hasRequired_ListCache;
937
+
938
+ function require_ListCache () {
939
+ if (hasRequired_ListCache) return _ListCache;
940
+ hasRequired_ListCache = 1;
941
+ var listCacheClear = require_listCacheClear(),
942
+ listCacheDelete = require_listCacheDelete(),
943
+ listCacheGet = require_listCacheGet(),
944
+ listCacheHas = require_listCacheHas(),
945
+ listCacheSet = require_listCacheSet();
946
+
947
+ /**
948
+ * Creates an list cache object.
949
+ *
950
+ * @private
951
+ * @constructor
952
+ * @param {Array} [entries] The key-value pairs to cache.
953
+ */
954
+ function ListCache(entries) {
955
+ var index = -1,
956
+ length = entries == null ? 0 : entries.length;
957
+
958
+ this.clear();
959
+ while (++index < length) {
960
+ var entry = entries[index];
961
+ this.set(entry[0], entry[1]);
962
+ }
963
+ }
964
+
965
+ // Add methods to `ListCache`.
966
+ ListCache.prototype.clear = listCacheClear;
967
+ ListCache.prototype['delete'] = listCacheDelete;
968
+ ListCache.prototype.get = listCacheGet;
969
+ ListCache.prototype.has = listCacheHas;
970
+ ListCache.prototype.set = listCacheSet;
971
+
972
+ _ListCache = ListCache;
973
+ return _ListCache;
974
+ }
975
+
976
+ var _Map;
977
+ var hasRequired_Map;
978
+
979
+ function require_Map () {
980
+ if (hasRequired_Map) return _Map;
981
+ hasRequired_Map = 1;
982
+ var getNative = require_getNative(),
983
+ root = require_root();
984
+
985
+ /* Built-in method references that are verified to be native. */
986
+ var Map = getNative(root, 'Map');
987
+
988
+ _Map = Map;
989
+ return _Map;
990
+ }
991
+
992
+ var _mapCacheClear;
993
+ var hasRequired_mapCacheClear;
994
+
995
+ function require_mapCacheClear () {
996
+ if (hasRequired_mapCacheClear) return _mapCacheClear;
997
+ hasRequired_mapCacheClear = 1;
998
+ var Hash = require_Hash(),
999
+ ListCache = require_ListCache(),
1000
+ Map = require_Map();
1001
+
1002
+ /**
1003
+ * Removes all key-value entries from the map.
1004
+ *
1005
+ * @private
1006
+ * @name clear
1007
+ * @memberOf MapCache
1008
+ */
1009
+ function mapCacheClear() {
1010
+ this.size = 0;
1011
+ this.__data__ = {
1012
+ 'hash': new Hash,
1013
+ 'map': new (Map || ListCache),
1014
+ 'string': new Hash
1015
+ };
1016
+ }
1017
+
1018
+ _mapCacheClear = mapCacheClear;
1019
+ return _mapCacheClear;
1020
+ }
1021
+
1022
+ /**
1023
+ * Checks if `value` is suitable for use as unique object key.
1024
+ *
1025
+ * @private
1026
+ * @param {*} value The value to check.
1027
+ * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1028
+ */
1029
+
1030
+ var _isKeyable;
1031
+ var hasRequired_isKeyable;
1032
+
1033
+ function require_isKeyable () {
1034
+ if (hasRequired_isKeyable) return _isKeyable;
1035
+ hasRequired_isKeyable = 1;
1036
+ function isKeyable(value) {
1037
+ var type = typeof value;
1038
+ return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
1039
+ ? (value !== '__proto__')
1040
+ : (value === null);
1041
+ }
1042
+
1043
+ _isKeyable = isKeyable;
1044
+ return _isKeyable;
1045
+ }
1046
+
1047
+ var _getMapData;
1048
+ var hasRequired_getMapData;
1049
+
1050
+ function require_getMapData () {
1051
+ if (hasRequired_getMapData) return _getMapData;
1052
+ hasRequired_getMapData = 1;
1053
+ var isKeyable = require_isKeyable();
1054
+
1055
+ /**
1056
+ * Gets the data for `map`.
1057
+ *
1058
+ * @private
1059
+ * @param {Object} map The map to query.
1060
+ * @param {string} key The reference key.
1061
+ * @returns {*} Returns the map data.
1062
+ */
1063
+ function getMapData(map, key) {
1064
+ var data = map.__data__;
1065
+ return isKeyable(key)
1066
+ ? data[typeof key == 'string' ? 'string' : 'hash']
1067
+ : data.map;
1068
+ }
1069
+
1070
+ _getMapData = getMapData;
1071
+ return _getMapData;
1072
+ }
1073
+
1074
+ var _mapCacheDelete;
1075
+ var hasRequired_mapCacheDelete;
1076
+
1077
+ function require_mapCacheDelete () {
1078
+ if (hasRequired_mapCacheDelete) return _mapCacheDelete;
1079
+ hasRequired_mapCacheDelete = 1;
1080
+ var getMapData = require_getMapData();
1081
+
1082
+ /**
1083
+ * Removes `key` and its value from the map.
1084
+ *
1085
+ * @private
1086
+ * @name delete
1087
+ * @memberOf MapCache
1088
+ * @param {string} key The key of the value to remove.
1089
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1090
+ */
1091
+ function mapCacheDelete(key) {
1092
+ var result = getMapData(this, key)['delete'](key);
1093
+ this.size -= result ? 1 : 0;
1094
+ return result;
1095
+ }
1096
+
1097
+ _mapCacheDelete = mapCacheDelete;
1098
+ return _mapCacheDelete;
1099
+ }
1100
+
1101
+ var _mapCacheGet;
1102
+ var hasRequired_mapCacheGet;
1103
+
1104
+ function require_mapCacheGet () {
1105
+ if (hasRequired_mapCacheGet) return _mapCacheGet;
1106
+ hasRequired_mapCacheGet = 1;
1107
+ var getMapData = require_getMapData();
1108
+
1109
+ /**
1110
+ * Gets the map value for `key`.
1111
+ *
1112
+ * @private
1113
+ * @name get
1114
+ * @memberOf MapCache
1115
+ * @param {string} key The key of the value to get.
1116
+ * @returns {*} Returns the entry value.
1117
+ */
1118
+ function mapCacheGet(key) {
1119
+ return getMapData(this, key).get(key);
1120
+ }
1121
+
1122
+ _mapCacheGet = mapCacheGet;
1123
+ return _mapCacheGet;
1124
+ }
1125
+
1126
+ var _mapCacheHas;
1127
+ var hasRequired_mapCacheHas;
1128
+
1129
+ function require_mapCacheHas () {
1130
+ if (hasRequired_mapCacheHas) return _mapCacheHas;
1131
+ hasRequired_mapCacheHas = 1;
1132
+ var getMapData = require_getMapData();
1133
+
1134
+ /**
1135
+ * Checks if a map value for `key` exists.
1136
+ *
1137
+ * @private
1138
+ * @name has
1139
+ * @memberOf MapCache
1140
+ * @param {string} key The key of the entry to check.
1141
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1142
+ */
1143
+ function mapCacheHas(key) {
1144
+ return getMapData(this, key).has(key);
1145
+ }
1146
+
1147
+ _mapCacheHas = mapCacheHas;
1148
+ return _mapCacheHas;
1149
+ }
1150
+
1151
+ var _mapCacheSet;
1152
+ var hasRequired_mapCacheSet;
1153
+
1154
+ function require_mapCacheSet () {
1155
+ if (hasRequired_mapCacheSet) return _mapCacheSet;
1156
+ hasRequired_mapCacheSet = 1;
1157
+ var getMapData = require_getMapData();
1158
+
1159
+ /**
1160
+ * Sets the map `key` to `value`.
1161
+ *
1162
+ * @private
1163
+ * @name set
1164
+ * @memberOf MapCache
1165
+ * @param {string} key The key of the value to set.
1166
+ * @param {*} value The value to set.
1167
+ * @returns {Object} Returns the map cache instance.
1168
+ */
1169
+ function mapCacheSet(key, value) {
1170
+ var data = getMapData(this, key),
1171
+ size = data.size;
1172
+
1173
+ data.set(key, value);
1174
+ this.size += data.size == size ? 0 : 1;
1175
+ return this;
1176
+ }
1177
+
1178
+ _mapCacheSet = mapCacheSet;
1179
+ return _mapCacheSet;
1180
+ }
1181
+
1182
+ var _MapCache;
1183
+ var hasRequired_MapCache;
1184
+
1185
+ function require_MapCache () {
1186
+ if (hasRequired_MapCache) return _MapCache;
1187
+ hasRequired_MapCache = 1;
1188
+ var mapCacheClear = require_mapCacheClear(),
1189
+ mapCacheDelete = require_mapCacheDelete(),
1190
+ mapCacheGet = require_mapCacheGet(),
1191
+ mapCacheHas = require_mapCacheHas(),
1192
+ mapCacheSet = require_mapCacheSet();
1193
+
1194
+ /**
1195
+ * Creates a map cache object to store key-value pairs.
1196
+ *
1197
+ * @private
1198
+ * @constructor
1199
+ * @param {Array} [entries] The key-value pairs to cache.
1200
+ */
1201
+ function MapCache(entries) {
1202
+ var index = -1,
1203
+ length = entries == null ? 0 : entries.length;
1204
+
1205
+ this.clear();
1206
+ while (++index < length) {
1207
+ var entry = entries[index];
1208
+ this.set(entry[0], entry[1]);
1209
+ }
1210
+ }
1211
+
1212
+ // Add methods to `MapCache`.
1213
+ MapCache.prototype.clear = mapCacheClear;
1214
+ MapCache.prototype['delete'] = mapCacheDelete;
1215
+ MapCache.prototype.get = mapCacheGet;
1216
+ MapCache.prototype.has = mapCacheHas;
1217
+ MapCache.prototype.set = mapCacheSet;
1218
+
1219
+ _MapCache = MapCache;
1220
+ return _MapCache;
1221
+ }
1222
+
1223
+ /** Used to stand-in for `undefined` hash values. */
1224
+
1225
+ var _setCacheAdd;
1226
+ var hasRequired_setCacheAdd;
1227
+
1228
+ function require_setCacheAdd () {
1229
+ if (hasRequired_setCacheAdd) return _setCacheAdd;
1230
+ hasRequired_setCacheAdd = 1;
1231
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
1232
+
1233
+ /**
1234
+ * Adds `value` to the array cache.
1235
+ *
1236
+ * @private
1237
+ * @name add
1238
+ * @memberOf SetCache
1239
+ * @alias push
1240
+ * @param {*} value The value to cache.
1241
+ * @returns {Object} Returns the cache instance.
1242
+ */
1243
+ function setCacheAdd(value) {
1244
+ this.__data__.set(value, HASH_UNDEFINED);
1245
+ return this;
1246
+ }
1247
+
1248
+ _setCacheAdd = setCacheAdd;
1249
+ return _setCacheAdd;
1250
+ }
1251
+
1252
+ /**
1253
+ * Checks if `value` is in the array cache.
1254
+ *
1255
+ * @private
1256
+ * @name has
1257
+ * @memberOf SetCache
1258
+ * @param {*} value The value to search for.
1259
+ * @returns {boolean} Returns `true` if `value` is found, else `false`.
1260
+ */
1261
+
1262
+ var _setCacheHas;
1263
+ var hasRequired_setCacheHas;
1264
+
1265
+ function require_setCacheHas () {
1266
+ if (hasRequired_setCacheHas) return _setCacheHas;
1267
+ hasRequired_setCacheHas = 1;
1268
+ function setCacheHas(value) {
1269
+ return this.__data__.has(value);
1270
+ }
1271
+
1272
+ _setCacheHas = setCacheHas;
1273
+ return _setCacheHas;
1274
+ }
1275
+
1276
+ var _SetCache;
1277
+ var hasRequired_SetCache;
1278
+
1279
+ function require_SetCache () {
1280
+ if (hasRequired_SetCache) return _SetCache;
1281
+ hasRequired_SetCache = 1;
1282
+ var MapCache = require_MapCache(),
1283
+ setCacheAdd = require_setCacheAdd(),
1284
+ setCacheHas = require_setCacheHas();
1285
+
1286
+ /**
1287
+ *
1288
+ * Creates an array cache object to store unique values.
1289
+ *
1290
+ * @private
1291
+ * @constructor
1292
+ * @param {Array} [values] The values to cache.
1293
+ */
1294
+ function SetCache(values) {
1295
+ var index = -1,
1296
+ length = values == null ? 0 : values.length;
1297
+
1298
+ this.__data__ = new MapCache;
1299
+ while (++index < length) {
1300
+ this.add(values[index]);
1301
+ }
1302
+ }
1303
+
1304
+ // Add methods to `SetCache`.
1305
+ SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
1306
+ SetCache.prototype.has = setCacheHas;
1307
+
1308
+ _SetCache = SetCache;
1309
+ return _SetCache;
1310
+ }
1311
+
1312
+ /**
1313
+ * The base implementation of `_.findIndex` and `_.findLastIndex` without
1314
+ * support for iteratee shorthands.
1315
+ *
1316
+ * @private
1317
+ * @param {Array} array The array to inspect.
1318
+ * @param {Function} predicate The function invoked per iteration.
1319
+ * @param {number} fromIndex The index to search from.
1320
+ * @param {boolean} [fromRight] Specify iterating from right to left.
1321
+ * @returns {number} Returns the index of the matched value, else `-1`.
1322
+ */
1323
+
1324
+ var _baseFindIndex;
1325
+ var hasRequired_baseFindIndex;
1326
+
1327
+ function require_baseFindIndex () {
1328
+ if (hasRequired_baseFindIndex) return _baseFindIndex;
1329
+ hasRequired_baseFindIndex = 1;
1330
+ function baseFindIndex(array, predicate, fromIndex, fromRight) {
1331
+ var length = array.length,
1332
+ index = fromIndex + (fromRight ? 1 : -1);
1333
+
1334
+ while ((fromRight ? index-- : ++index < length)) {
1335
+ if (predicate(array[index], index, array)) {
1336
+ return index;
1337
+ }
1338
+ }
1339
+ return -1;
1340
+ }
1341
+
1342
+ _baseFindIndex = baseFindIndex;
1343
+ return _baseFindIndex;
1344
+ }
1345
+
1346
+ /**
1347
+ * The base implementation of `_.isNaN` without support for number objects.
1348
+ *
1349
+ * @private
1350
+ * @param {*} value The value to check.
1351
+ * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
1352
+ */
1353
+
1354
+ var _baseIsNaN;
1355
+ var hasRequired_baseIsNaN;
1356
+
1357
+ function require_baseIsNaN () {
1358
+ if (hasRequired_baseIsNaN) return _baseIsNaN;
1359
+ hasRequired_baseIsNaN = 1;
1360
+ function baseIsNaN(value) {
1361
+ return value !== value;
1362
+ }
1363
+
1364
+ _baseIsNaN = baseIsNaN;
1365
+ return _baseIsNaN;
1366
+ }
1367
+
1368
+ /**
1369
+ * A specialized version of `_.indexOf` which performs strict equality
1370
+ * comparisons of values, i.e. `===`.
1371
+ *
1372
+ * @private
1373
+ * @param {Array} array The array to inspect.
1374
+ * @param {*} value The value to search for.
1375
+ * @param {number} fromIndex The index to search from.
1376
+ * @returns {number} Returns the index of the matched value, else `-1`.
1377
+ */
1378
+
1379
+ var _strictIndexOf;
1380
+ var hasRequired_strictIndexOf;
1381
+
1382
+ function require_strictIndexOf () {
1383
+ if (hasRequired_strictIndexOf) return _strictIndexOf;
1384
+ hasRequired_strictIndexOf = 1;
1385
+ function strictIndexOf(array, value, fromIndex) {
1386
+ var index = fromIndex - 1,
1387
+ length = array.length;
1388
+
1389
+ while (++index < length) {
1390
+ if (array[index] === value) {
1391
+ return index;
1392
+ }
1393
+ }
1394
+ return -1;
1395
+ }
1396
+
1397
+ _strictIndexOf = strictIndexOf;
1398
+ return _strictIndexOf;
1399
+ }
1400
+
1401
+ var _baseIndexOf;
1402
+ var hasRequired_baseIndexOf;
1403
+
1404
+ function require_baseIndexOf () {
1405
+ if (hasRequired_baseIndexOf) return _baseIndexOf;
1406
+ hasRequired_baseIndexOf = 1;
1407
+ var baseFindIndex = require_baseFindIndex(),
1408
+ baseIsNaN = require_baseIsNaN(),
1409
+ strictIndexOf = require_strictIndexOf();
1410
+
1411
+ /**
1412
+ * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
1413
+ *
1414
+ * @private
1415
+ * @param {Array} array The array to inspect.
1416
+ * @param {*} value The value to search for.
1417
+ * @param {number} fromIndex The index to search from.
1418
+ * @returns {number} Returns the index of the matched value, else `-1`.
1419
+ */
1420
+ function baseIndexOf(array, value, fromIndex) {
1421
+ return value === value
1422
+ ? strictIndexOf(array, value, fromIndex)
1423
+ : baseFindIndex(array, baseIsNaN, fromIndex);
1424
+ }
1425
+
1426
+ _baseIndexOf = baseIndexOf;
1427
+ return _baseIndexOf;
1428
+ }
1429
+
1430
+ var _arrayIncludes;
1431
+ var hasRequired_arrayIncludes;
1432
+
1433
+ function require_arrayIncludes () {
1434
+ if (hasRequired_arrayIncludes) return _arrayIncludes;
1435
+ hasRequired_arrayIncludes = 1;
1436
+ var baseIndexOf = require_baseIndexOf();
1437
+
1438
+ /**
1439
+ * A specialized version of `_.includes` for arrays without support for
1440
+ * specifying an index to search from.
1441
+ *
1442
+ * @private
1443
+ * @param {Array} [array] The array to inspect.
1444
+ * @param {*} target The value to search for.
1445
+ * @returns {boolean} Returns `true` if `target` is found, else `false`.
1446
+ */
1447
+ function arrayIncludes(array, value) {
1448
+ var length = array == null ? 0 : array.length;
1449
+ return !!length && baseIndexOf(array, value, 0) > -1;
1450
+ }
1451
+
1452
+ _arrayIncludes = arrayIncludes;
1453
+ return _arrayIncludes;
1454
+ }
1455
+
1456
+ /**
1457
+ * This function is like `arrayIncludes` except that it accepts a comparator.
1458
+ *
1459
+ * @private
1460
+ * @param {Array} [array] The array to inspect.
1461
+ * @param {*} target The value to search for.
1462
+ * @param {Function} comparator The comparator invoked per element.
1463
+ * @returns {boolean} Returns `true` if `target` is found, else `false`.
1464
+ */
1465
+
1466
+ var _arrayIncludesWith;
1467
+ var hasRequired_arrayIncludesWith;
1468
+
1469
+ function require_arrayIncludesWith () {
1470
+ if (hasRequired_arrayIncludesWith) return _arrayIncludesWith;
1471
+ hasRequired_arrayIncludesWith = 1;
1472
+ function arrayIncludesWith(array, value, comparator) {
1473
+ var index = -1,
1474
+ length = array == null ? 0 : array.length;
1475
+
1476
+ while (++index < length) {
1477
+ if (comparator(value, array[index])) {
1478
+ return true;
1479
+ }
1480
+ }
1481
+ return false;
1482
+ }
1483
+
1484
+ _arrayIncludesWith = arrayIncludesWith;
1485
+ return _arrayIncludesWith;
1486
+ }
1487
+
1488
+ /**
1489
+ * Checks if a `cache` value for `key` exists.
1490
+ *
1491
+ * @private
1492
+ * @param {Object} cache The cache to query.
1493
+ * @param {string} key The key of the entry to check.
1494
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1495
+ */
1496
+
1497
+ var _cacheHas;
1498
+ var hasRequired_cacheHas;
1499
+
1500
+ function require_cacheHas () {
1501
+ if (hasRequired_cacheHas) return _cacheHas;
1502
+ hasRequired_cacheHas = 1;
1503
+ function cacheHas(cache, key) {
1504
+ return cache.has(key);
1505
+ }
1506
+
1507
+ _cacheHas = cacheHas;
1508
+ return _cacheHas;
1509
+ }
1510
+
1511
+ var _Set;
1512
+ var hasRequired_Set;
1513
+
1514
+ function require_Set () {
1515
+ if (hasRequired_Set) return _Set;
1516
+ hasRequired_Set = 1;
1517
+ var getNative = require_getNative(),
1518
+ root = require_root();
1519
+
1520
+ /* Built-in method references that are verified to be native. */
1521
+ var Set = getNative(root, 'Set');
1522
+
1523
+ _Set = Set;
1524
+ return _Set;
1525
+ }
1526
+
1527
+ /**
1528
+ * This method returns `undefined`.
1529
+ *
1530
+ * @static
1531
+ * @memberOf _
1532
+ * @since 2.3.0
1533
+ * @category Util
1534
+ * @example
1535
+ *
1536
+ * _.times(2, _.noop);
1537
+ * // => [undefined, undefined]
1538
+ */
1539
+
1540
+ var noop_1;
1541
+ var hasRequiredNoop;
1542
+
1543
+ function requireNoop () {
1544
+ if (hasRequiredNoop) return noop_1;
1545
+ hasRequiredNoop = 1;
1546
+ function noop() {
1547
+ // No operation performed.
1548
+ }
1549
+
1550
+ noop_1 = noop;
1551
+ return noop_1;
1552
+ }
1553
+
1554
+ /**
1555
+ * Converts `set` to an array of its values.
1556
+ *
1557
+ * @private
1558
+ * @param {Object} set The set to convert.
1559
+ * @returns {Array} Returns the values.
1560
+ */
1561
+
1562
+ var _setToArray;
1563
+ var hasRequired_setToArray;
1564
+
1565
+ function require_setToArray () {
1566
+ if (hasRequired_setToArray) return _setToArray;
1567
+ hasRequired_setToArray = 1;
1568
+ function setToArray(set) {
1569
+ var index = -1,
1570
+ result = Array(set.size);
1571
+
1572
+ set.forEach(function(value) {
1573
+ result[++index] = value;
1574
+ });
1575
+ return result;
1576
+ }
1577
+
1578
+ _setToArray = setToArray;
1579
+ return _setToArray;
1580
+ }
1581
+
1582
+ var _createSet;
1583
+ var hasRequired_createSet;
1584
+
1585
+ function require_createSet () {
1586
+ if (hasRequired_createSet) return _createSet;
1587
+ hasRequired_createSet = 1;
1588
+ var Set = require_Set(),
1589
+ noop = requireNoop(),
1590
+ setToArray = require_setToArray();
1591
+
1592
+ /** Used as references for various `Number` constants. */
1593
+ var INFINITY = 1 / 0;
1594
+
1595
+ /**
1596
+ * Creates a set object of `values`.
1597
+ *
1598
+ * @private
1599
+ * @param {Array} values The values to add to the set.
1600
+ * @returns {Object} Returns the new set.
1601
+ */
1602
+ var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
1603
+ return new Set(values);
1604
+ };
1605
+
1606
+ _createSet = createSet;
1607
+ return _createSet;
1608
+ }
1609
+
1610
+ var _baseUniq;
1611
+ var hasRequired_baseUniq;
1612
+
1613
+ function require_baseUniq () {
1614
+ if (hasRequired_baseUniq) return _baseUniq;
1615
+ hasRequired_baseUniq = 1;
1616
+ var SetCache = require_SetCache(),
1617
+ arrayIncludes = require_arrayIncludes(),
1618
+ arrayIncludesWith = require_arrayIncludesWith(),
1619
+ cacheHas = require_cacheHas(),
1620
+ createSet = require_createSet(),
1621
+ setToArray = require_setToArray();
1622
+
1623
+ /** Used as the size to enable large array optimizations. */
1624
+ var LARGE_ARRAY_SIZE = 200;
1625
+
1626
+ /**
1627
+ * The base implementation of `_.uniqBy` without support for iteratee shorthands.
1628
+ *
1629
+ * @private
1630
+ * @param {Array} array The array to inspect.
1631
+ * @param {Function} [iteratee] The iteratee invoked per element.
1632
+ * @param {Function} [comparator] The comparator invoked per element.
1633
+ * @returns {Array} Returns the new duplicate free array.
1634
+ */
1635
+ function baseUniq(array, iteratee, comparator) {
1636
+ var index = -1,
1637
+ includes = arrayIncludes,
1638
+ length = array.length,
1639
+ isCommon = true,
1640
+ result = [],
1641
+ seen = result;
1642
+
1643
+ if (comparator) {
1644
+ isCommon = false;
1645
+ includes = arrayIncludesWith;
1646
+ }
1647
+ else if (length >= LARGE_ARRAY_SIZE) {
1648
+ var set = iteratee ? null : createSet(array);
1649
+ if (set) {
1650
+ return setToArray(set);
1651
+ }
1652
+ isCommon = false;
1653
+ includes = cacheHas;
1654
+ seen = new SetCache;
1655
+ }
1656
+ else {
1657
+ seen = iteratee ? [] : result;
1658
+ }
1659
+ outer:
1660
+ while (++index < length) {
1661
+ var value = array[index],
1662
+ computed = iteratee ? iteratee(value) : value;
1663
+
1664
+ value = (comparator || value !== 0) ? value : 0;
1665
+ if (isCommon && computed === computed) {
1666
+ var seenIndex = seen.length;
1667
+ while (seenIndex--) {
1668
+ if (seen[seenIndex] === computed) {
1669
+ continue outer;
1670
+ }
1671
+ }
1672
+ if (iteratee) {
1673
+ seen.push(computed);
1674
+ }
1675
+ result.push(value);
1676
+ }
1677
+ else if (!includes(seen, computed, comparator)) {
1678
+ if (seen !== result) {
1679
+ seen.push(computed);
1680
+ }
1681
+ result.push(value);
1682
+ }
1683
+ }
1684
+ return result;
1685
+ }
1686
+
1687
+ _baseUniq = baseUniq;
1688
+ return _baseUniq;
1689
+ }
1690
+
1691
+ var uniqWith_1;
1692
+ var hasRequiredUniqWith;
1693
+
1694
+ function requireUniqWith () {
1695
+ if (hasRequiredUniqWith) return uniqWith_1;
1696
+ hasRequiredUniqWith = 1;
1697
+ var baseUniq = require_baseUniq();
1698
+
1699
+ /**
1700
+ * This method is like `_.uniq` except that it accepts `comparator` which
1701
+ * is invoked to compare elements of `array`. The order of result values is
1702
+ * determined by the order they occur in the array.The comparator is invoked
1703
+ * with two arguments: (arrVal, othVal).
1704
+ *
1705
+ * @static
1706
+ * @memberOf _
1707
+ * @since 4.0.0
1708
+ * @category Array
1709
+ * @param {Array} array The array to inspect.
1710
+ * @param {Function} [comparator] The comparator invoked per element.
1711
+ * @returns {Array} Returns the new duplicate free array.
1712
+ * @example
1713
+ *
1714
+ * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
1715
+ *
1716
+ * _.uniqWith(objects, _.isEqual);
1717
+ * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
1718
+ */
1719
+ function uniqWith(array, comparator) {
1720
+ comparator = typeof comparator == 'function' ? comparator : undefined;
1721
+ return (array && array.length) ? baseUniq(array, undefined, comparator) : [];
1722
+ }
1723
+
1724
+ uniqWith_1 = uniqWith;
1725
+ return uniqWith_1;
1726
+ }
1727
+
1728
+ requireUniqWith();
1729
+
1730
+ var _stackClear;
1731
+ var hasRequired_stackClear;
1732
+
1733
+ function require_stackClear () {
1734
+ if (hasRequired_stackClear) return _stackClear;
1735
+ hasRequired_stackClear = 1;
1736
+ var ListCache = require_ListCache();
1737
+
1738
+ /**
1739
+ * Removes all key-value entries from the stack.
1740
+ *
1741
+ * @private
1742
+ * @name clear
1743
+ * @memberOf Stack
1744
+ */
1745
+ function stackClear() {
1746
+ this.__data__ = new ListCache;
1747
+ this.size = 0;
1748
+ }
1749
+
1750
+ _stackClear = stackClear;
1751
+ return _stackClear;
1752
+ }
1753
+
1754
+ /**
1755
+ * Removes `key` and its value from the stack.
1756
+ *
1757
+ * @private
1758
+ * @name delete
1759
+ * @memberOf Stack
1760
+ * @param {string} key The key of the value to remove.
1761
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1762
+ */
1763
+
1764
+ var _stackDelete;
1765
+ var hasRequired_stackDelete;
1766
+
1767
+ function require_stackDelete () {
1768
+ if (hasRequired_stackDelete) return _stackDelete;
1769
+ hasRequired_stackDelete = 1;
1770
+ function stackDelete(key) {
1771
+ var data = this.__data__,
1772
+ result = data['delete'](key);
1773
+
1774
+ this.size = data.size;
1775
+ return result;
1776
+ }
1777
+
1778
+ _stackDelete = stackDelete;
1779
+ return _stackDelete;
1780
+ }
1781
+
1782
+ /**
1783
+ * Gets the stack value for `key`.
1784
+ *
1785
+ * @private
1786
+ * @name get
1787
+ * @memberOf Stack
1788
+ * @param {string} key The key of the value to get.
1789
+ * @returns {*} Returns the entry value.
1790
+ */
1791
+
1792
+ var _stackGet;
1793
+ var hasRequired_stackGet;
1794
+
1795
+ function require_stackGet () {
1796
+ if (hasRequired_stackGet) return _stackGet;
1797
+ hasRequired_stackGet = 1;
1798
+ function stackGet(key) {
1799
+ return this.__data__.get(key);
1800
+ }
1801
+
1802
+ _stackGet = stackGet;
1803
+ return _stackGet;
1804
+ }
1805
+
1806
+ /**
1807
+ * Checks if a stack value for `key` exists.
1808
+ *
1809
+ * @private
1810
+ * @name has
1811
+ * @memberOf Stack
1812
+ * @param {string} key The key of the entry to check.
1813
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1814
+ */
1815
+
1816
+ var _stackHas;
1817
+ var hasRequired_stackHas;
1818
+
1819
+ function require_stackHas () {
1820
+ if (hasRequired_stackHas) return _stackHas;
1821
+ hasRequired_stackHas = 1;
1822
+ function stackHas(key) {
1823
+ return this.__data__.has(key);
1824
+ }
1825
+
1826
+ _stackHas = stackHas;
1827
+ return _stackHas;
1828
+ }
1829
+
1830
+ var _stackSet;
1831
+ var hasRequired_stackSet;
1832
+
1833
+ function require_stackSet () {
1834
+ if (hasRequired_stackSet) return _stackSet;
1835
+ hasRequired_stackSet = 1;
1836
+ var ListCache = require_ListCache(),
1837
+ Map = require_Map(),
1838
+ MapCache = require_MapCache();
1839
+
1840
+ /** Used as the size to enable large array optimizations. */
1841
+ var LARGE_ARRAY_SIZE = 200;
1842
+
1843
+ /**
1844
+ * Sets the stack `key` to `value`.
1845
+ *
1846
+ * @private
1847
+ * @name set
1848
+ * @memberOf Stack
1849
+ * @param {string} key The key of the value to set.
1850
+ * @param {*} value The value to set.
1851
+ * @returns {Object} Returns the stack cache instance.
1852
+ */
1853
+ function stackSet(key, value) {
1854
+ var data = this.__data__;
1855
+ if (data instanceof ListCache) {
1856
+ var pairs = data.__data__;
1857
+ if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
1858
+ pairs.push([key, value]);
1859
+ this.size = ++data.size;
1860
+ return this;
1861
+ }
1862
+ data = this.__data__ = new MapCache(pairs);
1863
+ }
1864
+ data.set(key, value);
1865
+ this.size = data.size;
1866
+ return this;
1867
+ }
1868
+
1869
+ _stackSet = stackSet;
1870
+ return _stackSet;
1871
+ }
1872
+
1873
+ var _Stack;
1874
+ var hasRequired_Stack;
1875
+
1876
+ function require_Stack () {
1877
+ if (hasRequired_Stack) return _Stack;
1878
+ hasRequired_Stack = 1;
1879
+ var ListCache = require_ListCache(),
1880
+ stackClear = require_stackClear(),
1881
+ stackDelete = require_stackDelete(),
1882
+ stackGet = require_stackGet(),
1883
+ stackHas = require_stackHas(),
1884
+ stackSet = require_stackSet();
1885
+
1886
+ /**
1887
+ * Creates a stack cache object to store key-value pairs.
1888
+ *
1889
+ * @private
1890
+ * @constructor
1891
+ * @param {Array} [entries] The key-value pairs to cache.
1892
+ */
1893
+ function Stack(entries) {
1894
+ var data = this.__data__ = new ListCache(entries);
1895
+ this.size = data.size;
1896
+ }
1897
+
1898
+ // Add methods to `Stack`.
1899
+ Stack.prototype.clear = stackClear;
1900
+ Stack.prototype['delete'] = stackDelete;
1901
+ Stack.prototype.get = stackGet;
1902
+ Stack.prototype.has = stackHas;
1903
+ Stack.prototype.set = stackSet;
1904
+
1905
+ _Stack = Stack;
1906
+ return _Stack;
1907
+ }
1908
+
1909
+ /**
1910
+ * A specialized version of `_.some` for arrays without support for iteratee
1911
+ * shorthands.
1912
+ *
1913
+ * @private
1914
+ * @param {Array} [array] The array to iterate over.
1915
+ * @param {Function} predicate The function invoked per iteration.
1916
+ * @returns {boolean} Returns `true` if any element passes the predicate check,
1917
+ * else `false`.
1918
+ */
1919
+
1920
+ var _arraySome;
1921
+ var hasRequired_arraySome;
1922
+
1923
+ function require_arraySome () {
1924
+ if (hasRequired_arraySome) return _arraySome;
1925
+ hasRequired_arraySome = 1;
1926
+ function arraySome(array, predicate) {
1927
+ var index = -1,
1928
+ length = array == null ? 0 : array.length;
1929
+
1930
+ while (++index < length) {
1931
+ if (predicate(array[index], index, array)) {
1932
+ return true;
1933
+ }
1934
+ }
1935
+ return false;
1936
+ }
1937
+
1938
+ _arraySome = arraySome;
1939
+ return _arraySome;
1940
+ }
1941
+
1942
+ var _equalArrays;
1943
+ var hasRequired_equalArrays;
1944
+
1945
+ function require_equalArrays () {
1946
+ if (hasRequired_equalArrays) return _equalArrays;
1947
+ hasRequired_equalArrays = 1;
1948
+ var SetCache = require_SetCache(),
1949
+ arraySome = require_arraySome(),
1950
+ cacheHas = require_cacheHas();
1951
+
1952
+ /** Used to compose bitmasks for value comparisons. */
1953
+ var COMPARE_PARTIAL_FLAG = 1,
1954
+ COMPARE_UNORDERED_FLAG = 2;
1955
+
1956
+ /**
1957
+ * A specialized version of `baseIsEqualDeep` for arrays with support for
1958
+ * partial deep comparisons.
1959
+ *
1960
+ * @private
1961
+ * @param {Array} array The array to compare.
1962
+ * @param {Array} other The other array to compare.
1963
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
1964
+ * @param {Function} customizer The function to customize comparisons.
1965
+ * @param {Function} equalFunc The function to determine equivalents of values.
1966
+ * @param {Object} stack Tracks traversed `array` and `other` objects.
1967
+ * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
1968
+ */
1969
+ function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
1970
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
1971
+ arrLength = array.length,
1972
+ othLength = other.length;
1973
+
1974
+ if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
1975
+ return false;
1976
+ }
1977
+ // Check that cyclic values are equal.
1978
+ var arrStacked = stack.get(array);
1979
+ var othStacked = stack.get(other);
1980
+ if (arrStacked && othStacked) {
1981
+ return arrStacked == other && othStacked == array;
1982
+ }
1983
+ var index = -1,
1984
+ result = true,
1985
+ seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
1986
+
1987
+ stack.set(array, other);
1988
+ stack.set(other, array);
1989
+
1990
+ // Ignore non-index properties.
1991
+ while (++index < arrLength) {
1992
+ var arrValue = array[index],
1993
+ othValue = other[index];
1994
+
1995
+ if (customizer) {
1996
+ var compared = isPartial
1997
+ ? customizer(othValue, arrValue, index, other, array, stack)
1998
+ : customizer(arrValue, othValue, index, array, other, stack);
1999
+ }
2000
+ if (compared !== undefined) {
2001
+ if (compared) {
2002
+ continue;
2003
+ }
2004
+ result = false;
2005
+ break;
2006
+ }
2007
+ // Recursively compare arrays (susceptible to call stack limits).
2008
+ if (seen) {
2009
+ if (!arraySome(other, function(othValue, othIndex) {
2010
+ if (!cacheHas(seen, othIndex) &&
2011
+ (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
2012
+ return seen.push(othIndex);
2013
+ }
2014
+ })) {
2015
+ result = false;
2016
+ break;
2017
+ }
2018
+ } else if (!(
2019
+ arrValue === othValue ||
2020
+ equalFunc(arrValue, othValue, bitmask, customizer, stack)
2021
+ )) {
2022
+ result = false;
2023
+ break;
2024
+ }
2025
+ }
2026
+ stack['delete'](array);
2027
+ stack['delete'](other);
2028
+ return result;
2029
+ }
2030
+
2031
+ _equalArrays = equalArrays;
2032
+ return _equalArrays;
2033
+ }
2034
+
2035
+ var _Uint8Array;
2036
+ var hasRequired_Uint8Array;
2037
+
2038
+ function require_Uint8Array () {
2039
+ if (hasRequired_Uint8Array) return _Uint8Array;
2040
+ hasRequired_Uint8Array = 1;
2041
+ var root = require_root();
2042
+
2043
+ /** Built-in value references. */
2044
+ var Uint8Array = root.Uint8Array;
2045
+
2046
+ _Uint8Array = Uint8Array;
2047
+ return _Uint8Array;
2048
+ }
2049
+
2050
+ /**
2051
+ * Converts `map` to its key-value pairs.
2052
+ *
2053
+ * @private
2054
+ * @param {Object} map The map to convert.
2055
+ * @returns {Array} Returns the key-value pairs.
2056
+ */
2057
+
2058
+ var _mapToArray;
2059
+ var hasRequired_mapToArray;
2060
+
2061
+ function require_mapToArray () {
2062
+ if (hasRequired_mapToArray) return _mapToArray;
2063
+ hasRequired_mapToArray = 1;
2064
+ function mapToArray(map) {
2065
+ var index = -1,
2066
+ result = Array(map.size);
2067
+
2068
+ map.forEach(function(value, key) {
2069
+ result[++index] = [key, value];
2070
+ });
2071
+ return result;
2072
+ }
2073
+
2074
+ _mapToArray = mapToArray;
2075
+ return _mapToArray;
2076
+ }
2077
+
2078
+ var _equalByTag;
2079
+ var hasRequired_equalByTag;
2080
+
2081
+ function require_equalByTag () {
2082
+ if (hasRequired_equalByTag) return _equalByTag;
2083
+ hasRequired_equalByTag = 1;
2084
+ var Symbol = require_Symbol(),
2085
+ Uint8Array = require_Uint8Array(),
2086
+ eq = requireEq(),
2087
+ equalArrays = require_equalArrays(),
2088
+ mapToArray = require_mapToArray(),
2089
+ setToArray = require_setToArray();
2090
+
2091
+ /** Used to compose bitmasks for value comparisons. */
2092
+ var COMPARE_PARTIAL_FLAG = 1,
2093
+ COMPARE_UNORDERED_FLAG = 2;
2094
+
2095
+ /** `Object#toString` result references. */
2096
+ var boolTag = '[object Boolean]',
2097
+ dateTag = '[object Date]',
2098
+ errorTag = '[object Error]',
2099
+ mapTag = '[object Map]',
2100
+ numberTag = '[object Number]',
2101
+ regexpTag = '[object RegExp]',
2102
+ setTag = '[object Set]',
2103
+ stringTag = '[object String]',
2104
+ symbolTag = '[object Symbol]';
2105
+
2106
+ var arrayBufferTag = '[object ArrayBuffer]',
2107
+ dataViewTag = '[object DataView]';
2108
+
2109
+ /** Used to convert symbols to primitives and strings. */
2110
+ var symbolProto = Symbol ? Symbol.prototype : undefined,
2111
+ symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
2112
+
2113
+ /**
2114
+ * A specialized version of `baseIsEqualDeep` for comparing objects of
2115
+ * the same `toStringTag`.
2116
+ *
2117
+ * **Note:** This function only supports comparing values with tags of
2118
+ * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
2119
+ *
2120
+ * @private
2121
+ * @param {Object} object The object to compare.
2122
+ * @param {Object} other The other object to compare.
2123
+ * @param {string} tag The `toStringTag` of the objects to compare.
2124
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
2125
+ * @param {Function} customizer The function to customize comparisons.
2126
+ * @param {Function} equalFunc The function to determine equivalents of values.
2127
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
2128
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
2129
+ */
2130
+ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
2131
+ switch (tag) {
2132
+ case dataViewTag:
2133
+ if ((object.byteLength != other.byteLength) ||
2134
+ (object.byteOffset != other.byteOffset)) {
2135
+ return false;
2136
+ }
2137
+ object = object.buffer;
2138
+ other = other.buffer;
2139
+
2140
+ case arrayBufferTag:
2141
+ if ((object.byteLength != other.byteLength) ||
2142
+ !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
2143
+ return false;
2144
+ }
2145
+ return true;
2146
+
2147
+ case boolTag:
2148
+ case dateTag:
2149
+ case numberTag:
2150
+ // Coerce booleans to `1` or `0` and dates to milliseconds.
2151
+ // Invalid dates are coerced to `NaN`.
2152
+ return eq(+object, +other);
2153
+
2154
+ case errorTag:
2155
+ return object.name == other.name && object.message == other.message;
2156
+
2157
+ case regexpTag:
2158
+ case stringTag:
2159
+ // Coerce regexes to strings and treat strings, primitives and objects,
2160
+ // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
2161
+ // for more details.
2162
+ return object == (other + '');
2163
+
2164
+ case mapTag:
2165
+ var convert = mapToArray;
2166
+
2167
+ case setTag:
2168
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
2169
+ convert || (convert = setToArray);
2170
+
2171
+ if (object.size != other.size && !isPartial) {
2172
+ return false;
2173
+ }
2174
+ // Assume cyclic values are equal.
2175
+ var stacked = stack.get(object);
2176
+ if (stacked) {
2177
+ return stacked == other;
2178
+ }
2179
+ bitmask |= COMPARE_UNORDERED_FLAG;
2180
+
2181
+ // Recursively compare objects (susceptible to call stack limits).
2182
+ stack.set(object, other);
2183
+ var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
2184
+ stack['delete'](object);
2185
+ return result;
2186
+
2187
+ case symbolTag:
2188
+ if (symbolValueOf) {
2189
+ return symbolValueOf.call(object) == symbolValueOf.call(other);
2190
+ }
2191
+ }
2192
+ return false;
2193
+ }
2194
+
2195
+ _equalByTag = equalByTag;
2196
+ return _equalByTag;
2197
+ }
2198
+
2199
+ /**
2200
+ * Appends the elements of `values` to `array`.
2201
+ *
2202
+ * @private
2203
+ * @param {Array} array The array to modify.
2204
+ * @param {Array} values The values to append.
2205
+ * @returns {Array} Returns `array`.
2206
+ */
2207
+
2208
+ var _arrayPush;
2209
+ var hasRequired_arrayPush;
2210
+
2211
+ function require_arrayPush () {
2212
+ if (hasRequired_arrayPush) return _arrayPush;
2213
+ hasRequired_arrayPush = 1;
2214
+ function arrayPush(array, values) {
2215
+ var index = -1,
2216
+ length = values.length,
2217
+ offset = array.length;
2218
+
2219
+ while (++index < length) {
2220
+ array[offset + index] = values[index];
2221
+ }
2222
+ return array;
2223
+ }
2224
+
2225
+ _arrayPush = arrayPush;
2226
+ return _arrayPush;
2227
+ }
2228
+
2229
+ /**
2230
+ * Checks if `value` is classified as an `Array` object.
2231
+ *
2232
+ * @static
2233
+ * @memberOf _
2234
+ * @since 0.1.0
2235
+ * @category Lang
2236
+ * @param {*} value The value to check.
2237
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
2238
+ * @example
2239
+ *
2240
+ * _.isArray([1, 2, 3]);
2241
+ * // => true
2242
+ *
2243
+ * _.isArray(document.body.children);
2244
+ * // => false
2245
+ *
2246
+ * _.isArray('abc');
2247
+ * // => false
2248
+ *
2249
+ * _.isArray(_.noop);
2250
+ * // => false
2251
+ */
2252
+
2253
+ var isArray_1;
2254
+ var hasRequiredIsArray;
2255
+
2256
+ function requireIsArray () {
2257
+ if (hasRequiredIsArray) return isArray_1;
2258
+ hasRequiredIsArray = 1;
2259
+ var isArray = Array.isArray;
2260
+
2261
+ isArray_1 = isArray;
2262
+ return isArray_1;
2263
+ }
2264
+
2265
+ var _baseGetAllKeys;
2266
+ var hasRequired_baseGetAllKeys;
2267
+
2268
+ function require_baseGetAllKeys () {
2269
+ if (hasRequired_baseGetAllKeys) return _baseGetAllKeys;
2270
+ hasRequired_baseGetAllKeys = 1;
2271
+ var arrayPush = require_arrayPush(),
2272
+ isArray = requireIsArray();
2273
+
2274
+ /**
2275
+ * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
2276
+ * `keysFunc` and `symbolsFunc` to get the enumerable property names and
2277
+ * symbols of `object`.
2278
+ *
2279
+ * @private
2280
+ * @param {Object} object The object to query.
2281
+ * @param {Function} keysFunc The function to get the keys of `object`.
2282
+ * @param {Function} symbolsFunc The function to get the symbols of `object`.
2283
+ * @returns {Array} Returns the array of property names and symbols.
2284
+ */
2285
+ function baseGetAllKeys(object, keysFunc, symbolsFunc) {
2286
+ var result = keysFunc(object);
2287
+ return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
2288
+ }
2289
+
2290
+ _baseGetAllKeys = baseGetAllKeys;
2291
+ return _baseGetAllKeys;
2292
+ }
2293
+
2294
+ /**
2295
+ * A specialized version of `_.filter` for arrays without support for
2296
+ * iteratee shorthands.
2297
+ *
2298
+ * @private
2299
+ * @param {Array} [array] The array to iterate over.
2300
+ * @param {Function} predicate The function invoked per iteration.
2301
+ * @returns {Array} Returns the new filtered array.
2302
+ */
2303
+
2304
+ var _arrayFilter;
2305
+ var hasRequired_arrayFilter;
2306
+
2307
+ function require_arrayFilter () {
2308
+ if (hasRequired_arrayFilter) return _arrayFilter;
2309
+ hasRequired_arrayFilter = 1;
2310
+ function arrayFilter(array, predicate) {
2311
+ var index = -1,
2312
+ length = array == null ? 0 : array.length,
2313
+ resIndex = 0,
2314
+ result = [];
2315
+
2316
+ while (++index < length) {
2317
+ var value = array[index];
2318
+ if (predicate(value, index, array)) {
2319
+ result[resIndex++] = value;
2320
+ }
2321
+ }
2322
+ return result;
2323
+ }
2324
+
2325
+ _arrayFilter = arrayFilter;
2326
+ return _arrayFilter;
2327
+ }
2328
+
2329
+ /**
2330
+ * This method returns a new empty array.
2331
+ *
2332
+ * @static
2333
+ * @memberOf _
2334
+ * @since 4.13.0
2335
+ * @category Util
2336
+ * @returns {Array} Returns the new empty array.
2337
+ * @example
2338
+ *
2339
+ * var arrays = _.times(2, _.stubArray);
2340
+ *
2341
+ * console.log(arrays);
2342
+ * // => [[], []]
2343
+ *
2344
+ * console.log(arrays[0] === arrays[1]);
2345
+ * // => false
2346
+ */
2347
+
2348
+ var stubArray_1;
2349
+ var hasRequiredStubArray;
2350
+
2351
+ function requireStubArray () {
2352
+ if (hasRequiredStubArray) return stubArray_1;
2353
+ hasRequiredStubArray = 1;
2354
+ function stubArray() {
2355
+ return [];
2356
+ }
2357
+
2358
+ stubArray_1 = stubArray;
2359
+ return stubArray_1;
2360
+ }
2361
+
2362
+ var _getSymbols;
2363
+ var hasRequired_getSymbols;
2364
+
2365
+ function require_getSymbols () {
2366
+ if (hasRequired_getSymbols) return _getSymbols;
2367
+ hasRequired_getSymbols = 1;
2368
+ var arrayFilter = require_arrayFilter(),
2369
+ stubArray = requireStubArray();
2370
+
2371
+ /** Used for built-in method references. */
2372
+ var objectProto = Object.prototype;
2373
+
2374
+ /** Built-in value references. */
2375
+ var propertyIsEnumerable = objectProto.propertyIsEnumerable;
2376
+
2377
+ /* Built-in method references for those with the same name as other `lodash` methods. */
2378
+ var nativeGetSymbols = Object.getOwnPropertySymbols;
2379
+
2380
+ /**
2381
+ * Creates an array of the own enumerable symbols of `object`.
2382
+ *
2383
+ * @private
2384
+ * @param {Object} object The object to query.
2385
+ * @returns {Array} Returns the array of symbols.
2386
+ */
2387
+ var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
2388
+ if (object == null) {
2389
+ return [];
2390
+ }
2391
+ object = Object(object);
2392
+ return arrayFilter(nativeGetSymbols(object), function(symbol) {
2393
+ return propertyIsEnumerable.call(object, symbol);
2394
+ });
2395
+ };
2396
+
2397
+ _getSymbols = getSymbols;
2398
+ return _getSymbols;
2399
+ }
2400
+
2401
+ /**
2402
+ * The base implementation of `_.times` without support for iteratee shorthands
2403
+ * or max array length checks.
2404
+ *
2405
+ * @private
2406
+ * @param {number} n The number of times to invoke `iteratee`.
2407
+ * @param {Function} iteratee The function invoked per iteration.
2408
+ * @returns {Array} Returns the array of results.
2409
+ */
2410
+
2411
+ var _baseTimes;
2412
+ var hasRequired_baseTimes;
2413
+
2414
+ function require_baseTimes () {
2415
+ if (hasRequired_baseTimes) return _baseTimes;
2416
+ hasRequired_baseTimes = 1;
2417
+ function baseTimes(n, iteratee) {
2418
+ var index = -1,
2419
+ result = Array(n);
2420
+
2421
+ while (++index < n) {
2422
+ result[index] = iteratee(index);
2423
+ }
2424
+ return result;
2425
+ }
2426
+
2427
+ _baseTimes = baseTimes;
2428
+ return _baseTimes;
2429
+ }
2430
+
2431
+ /**
2432
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
2433
+ * and has a `typeof` result of "object".
2434
+ *
2435
+ * @static
2436
+ * @memberOf _
2437
+ * @since 4.0.0
2438
+ * @category Lang
2439
+ * @param {*} value The value to check.
2440
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
2441
+ * @example
2442
+ *
2443
+ * _.isObjectLike({});
2444
+ * // => true
2445
+ *
2446
+ * _.isObjectLike([1, 2, 3]);
2447
+ * // => true
2448
+ *
2449
+ * _.isObjectLike(_.noop);
2450
+ * // => false
2451
+ *
2452
+ * _.isObjectLike(null);
2453
+ * // => false
2454
+ */
2455
+
2456
+ var isObjectLike_1;
2457
+ var hasRequiredIsObjectLike;
2458
+
2459
+ function requireIsObjectLike () {
2460
+ if (hasRequiredIsObjectLike) return isObjectLike_1;
2461
+ hasRequiredIsObjectLike = 1;
2462
+ function isObjectLike(value) {
2463
+ return value != null && typeof value == 'object';
2464
+ }
2465
+
2466
+ isObjectLike_1 = isObjectLike;
2467
+ return isObjectLike_1;
2468
+ }
2469
+
2470
+ var _baseIsArguments;
2471
+ var hasRequired_baseIsArguments;
2472
+
2473
+ function require_baseIsArguments () {
2474
+ if (hasRequired_baseIsArguments) return _baseIsArguments;
2475
+ hasRequired_baseIsArguments = 1;
2476
+ var baseGetTag = require_baseGetTag(),
2477
+ isObjectLike = requireIsObjectLike();
2478
+
2479
+ /** `Object#toString` result references. */
2480
+ var argsTag = '[object Arguments]';
2481
+
2482
+ /**
2483
+ * The base implementation of `_.isArguments`.
2484
+ *
2485
+ * @private
2486
+ * @param {*} value The value to check.
2487
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
2488
+ */
2489
+ function baseIsArguments(value) {
2490
+ return isObjectLike(value) && baseGetTag(value) == argsTag;
2491
+ }
2492
+
2493
+ _baseIsArguments = baseIsArguments;
2494
+ return _baseIsArguments;
2495
+ }
2496
+
2497
+ var isArguments_1;
2498
+ var hasRequiredIsArguments;
2499
+
2500
+ function requireIsArguments () {
2501
+ if (hasRequiredIsArguments) return isArguments_1;
2502
+ hasRequiredIsArguments = 1;
2503
+ var baseIsArguments = require_baseIsArguments(),
2504
+ isObjectLike = requireIsObjectLike();
2505
+
2506
+ /** Used for built-in method references. */
2507
+ var objectProto = Object.prototype;
2508
+
2509
+ /** Used to check objects for own properties. */
2510
+ var hasOwnProperty = objectProto.hasOwnProperty;
2511
+
2512
+ /** Built-in value references. */
2513
+ var propertyIsEnumerable = objectProto.propertyIsEnumerable;
2514
+
2515
+ /**
2516
+ * Checks if `value` is likely an `arguments` object.
2517
+ *
2518
+ * @static
2519
+ * @memberOf _
2520
+ * @since 0.1.0
2521
+ * @category Lang
2522
+ * @param {*} value The value to check.
2523
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
2524
+ * else `false`.
2525
+ * @example
2526
+ *
2527
+ * _.isArguments(function() { return arguments; }());
2528
+ * // => true
2529
+ *
2530
+ * _.isArguments([1, 2, 3]);
2531
+ * // => false
2532
+ */
2533
+ var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
2534
+ return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
2535
+ !propertyIsEnumerable.call(value, 'callee');
2536
+ };
2537
+
2538
+ isArguments_1 = isArguments;
2539
+ return isArguments_1;
2540
+ }
2541
+
2542
+ var isBuffer = {exports: {}};
2543
+
2544
+ /**
2545
+ * This method returns `false`.
2546
+ *
2547
+ * @static
2548
+ * @memberOf _
2549
+ * @since 4.13.0
2550
+ * @category Util
2551
+ * @returns {boolean} Returns `false`.
2552
+ * @example
2553
+ *
2554
+ * _.times(2, _.stubFalse);
2555
+ * // => [false, false]
2556
+ */
2557
+
2558
+ var stubFalse_1;
2559
+ var hasRequiredStubFalse;
2560
+
2561
+ function requireStubFalse () {
2562
+ if (hasRequiredStubFalse) return stubFalse_1;
2563
+ hasRequiredStubFalse = 1;
2564
+ function stubFalse() {
2565
+ return false;
2566
+ }
2567
+
2568
+ stubFalse_1 = stubFalse;
2569
+ return stubFalse_1;
2570
+ }
2571
+
2572
+ isBuffer.exports;
2573
+
2574
+ var hasRequiredIsBuffer;
2575
+
2576
+ function requireIsBuffer () {
2577
+ if (hasRequiredIsBuffer) return isBuffer.exports;
2578
+ hasRequiredIsBuffer = 1;
2579
+ (function (module, exports) {
2580
+ var root = require_root(),
2581
+ stubFalse = requireStubFalse();
2582
+
2583
+ /** Detect free variable `exports`. */
2584
+ var freeExports = exports && !exports.nodeType && exports;
2585
+
2586
+ /** Detect free variable `module`. */
2587
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
2588
+
2589
+ /** Detect the popular CommonJS extension `module.exports`. */
2590
+ var moduleExports = freeModule && freeModule.exports === freeExports;
2591
+
2592
+ /** Built-in value references. */
2593
+ var Buffer = moduleExports ? root.Buffer : undefined;
2594
+
2595
+ /* Built-in method references for those with the same name as other `lodash` methods. */
2596
+ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
2597
+
2598
+ /**
2599
+ * Checks if `value` is a buffer.
2600
+ *
2601
+ * @static
2602
+ * @memberOf _
2603
+ * @since 4.3.0
2604
+ * @category Lang
2605
+ * @param {*} value The value to check.
2606
+ * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
2607
+ * @example
2608
+ *
2609
+ * _.isBuffer(new Buffer(2));
2610
+ * // => true
2611
+ *
2612
+ * _.isBuffer(new Uint8Array(2));
2613
+ * // => false
2614
+ */
2615
+ var isBuffer = nativeIsBuffer || stubFalse;
2616
+
2617
+ module.exports = isBuffer;
2618
+ } (isBuffer, isBuffer.exports));
2619
+ return isBuffer.exports;
2620
+ }
2621
+
2622
+ /** Used as references for various `Number` constants. */
2623
+
2624
+ var _isIndex;
2625
+ var hasRequired_isIndex;
2626
+
2627
+ function require_isIndex () {
2628
+ if (hasRequired_isIndex) return _isIndex;
2629
+ hasRequired_isIndex = 1;
2630
+ var MAX_SAFE_INTEGER = 9007199254740991;
2631
+
2632
+ /** Used to detect unsigned integer values. */
2633
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
2634
+
2635
+ /**
2636
+ * Checks if `value` is a valid array-like index.
2637
+ *
2638
+ * @private
2639
+ * @param {*} value The value to check.
2640
+ * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
2641
+ * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
2642
+ */
2643
+ function isIndex(value, length) {
2644
+ var type = typeof value;
2645
+ length = length == null ? MAX_SAFE_INTEGER : length;
2646
+
2647
+ return !!length &&
2648
+ (type == 'number' ||
2649
+ (type != 'symbol' && reIsUint.test(value))) &&
2650
+ (value > -1 && value % 1 == 0 && value < length);
2651
+ }
2652
+
2653
+ _isIndex = isIndex;
2654
+ return _isIndex;
2655
+ }
2656
+
2657
+ /** Used as references for various `Number` constants. */
2658
+
2659
+ var isLength_1;
2660
+ var hasRequiredIsLength;
2661
+
2662
+ function requireIsLength () {
2663
+ if (hasRequiredIsLength) return isLength_1;
2664
+ hasRequiredIsLength = 1;
2665
+ var MAX_SAFE_INTEGER = 9007199254740991;
2666
+
2667
+ /**
2668
+ * Checks if `value` is a valid array-like length.
2669
+ *
2670
+ * **Note:** This method is loosely based on
2671
+ * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
2672
+ *
2673
+ * @static
2674
+ * @memberOf _
2675
+ * @since 4.0.0
2676
+ * @category Lang
2677
+ * @param {*} value The value to check.
2678
+ * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
2679
+ * @example
2680
+ *
2681
+ * _.isLength(3);
2682
+ * // => true
2683
+ *
2684
+ * _.isLength(Number.MIN_VALUE);
2685
+ * // => false
2686
+ *
2687
+ * _.isLength(Infinity);
2688
+ * // => false
2689
+ *
2690
+ * _.isLength('3');
2691
+ * // => false
2692
+ */
2693
+ function isLength(value) {
2694
+ return typeof value == 'number' &&
2695
+ value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
2696
+ }
2697
+
2698
+ isLength_1 = isLength;
2699
+ return isLength_1;
2700
+ }
2701
+
2702
+ var _baseIsTypedArray;
2703
+ var hasRequired_baseIsTypedArray;
2704
+
2705
+ function require_baseIsTypedArray () {
2706
+ if (hasRequired_baseIsTypedArray) return _baseIsTypedArray;
2707
+ hasRequired_baseIsTypedArray = 1;
2708
+ var baseGetTag = require_baseGetTag(),
2709
+ isLength = requireIsLength(),
2710
+ isObjectLike = requireIsObjectLike();
2711
+
2712
+ /** `Object#toString` result references. */
2713
+ var argsTag = '[object Arguments]',
2714
+ arrayTag = '[object Array]',
2715
+ boolTag = '[object Boolean]',
2716
+ dateTag = '[object Date]',
2717
+ errorTag = '[object Error]',
2718
+ funcTag = '[object Function]',
2719
+ mapTag = '[object Map]',
2720
+ numberTag = '[object Number]',
2721
+ objectTag = '[object Object]',
2722
+ regexpTag = '[object RegExp]',
2723
+ setTag = '[object Set]',
2724
+ stringTag = '[object String]',
2725
+ weakMapTag = '[object WeakMap]';
2726
+
2727
+ var arrayBufferTag = '[object ArrayBuffer]',
2728
+ dataViewTag = '[object DataView]',
2729
+ float32Tag = '[object Float32Array]',
2730
+ float64Tag = '[object Float64Array]',
2731
+ int8Tag = '[object Int8Array]',
2732
+ int16Tag = '[object Int16Array]',
2733
+ int32Tag = '[object Int32Array]',
2734
+ uint8Tag = '[object Uint8Array]',
2735
+ uint8ClampedTag = '[object Uint8ClampedArray]',
2736
+ uint16Tag = '[object Uint16Array]',
2737
+ uint32Tag = '[object Uint32Array]';
2738
+
2739
+ /** Used to identify `toStringTag` values of typed arrays. */
2740
+ var typedArrayTags = {};
2741
+ typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
2742
+ typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
2743
+ typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
2744
+ typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
2745
+ typedArrayTags[uint32Tag] = true;
2746
+ typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
2747
+ typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
2748
+ typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
2749
+ typedArrayTags[errorTag] = typedArrayTags[funcTag] =
2750
+ typedArrayTags[mapTag] = typedArrayTags[numberTag] =
2751
+ typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
2752
+ typedArrayTags[setTag] = typedArrayTags[stringTag] =
2753
+ typedArrayTags[weakMapTag] = false;
2754
+
2755
+ /**
2756
+ * The base implementation of `_.isTypedArray` without Node.js optimizations.
2757
+ *
2758
+ * @private
2759
+ * @param {*} value The value to check.
2760
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
2761
+ */
2762
+ function baseIsTypedArray(value) {
2763
+ return isObjectLike(value) &&
2764
+ isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
2765
+ }
2766
+
2767
+ _baseIsTypedArray = baseIsTypedArray;
2768
+ return _baseIsTypedArray;
2769
+ }
2770
+
2771
+ /**
2772
+ * The base implementation of `_.unary` without support for storing metadata.
2773
+ *
2774
+ * @private
2775
+ * @param {Function} func The function to cap arguments for.
2776
+ * @returns {Function} Returns the new capped function.
2777
+ */
2778
+
2779
+ var _baseUnary;
2780
+ var hasRequired_baseUnary;
2781
+
2782
+ function require_baseUnary () {
2783
+ if (hasRequired_baseUnary) return _baseUnary;
2784
+ hasRequired_baseUnary = 1;
2785
+ function baseUnary(func) {
2786
+ return function(value) {
2787
+ return func(value);
2788
+ };
2789
+ }
2790
+
2791
+ _baseUnary = baseUnary;
2792
+ return _baseUnary;
2793
+ }
2794
+
2795
+ var _nodeUtil = {exports: {}};
2796
+
2797
+ _nodeUtil.exports;
2798
+
2799
+ var hasRequired_nodeUtil;
2800
+
2801
+ function require_nodeUtil () {
2802
+ if (hasRequired_nodeUtil) return _nodeUtil.exports;
2803
+ hasRequired_nodeUtil = 1;
2804
+ (function (module, exports) {
2805
+ var freeGlobal = require_freeGlobal();
2806
+
2807
+ /** Detect free variable `exports`. */
2808
+ var freeExports = exports && !exports.nodeType && exports;
2809
+
2810
+ /** Detect free variable `module`. */
2811
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
2812
+
2813
+ /** Detect the popular CommonJS extension `module.exports`. */
2814
+ var moduleExports = freeModule && freeModule.exports === freeExports;
2815
+
2816
+ /** Detect free variable `process` from Node.js. */
2817
+ var freeProcess = moduleExports && freeGlobal.process;
2818
+
2819
+ /** Used to access faster Node.js helpers. */
2820
+ var nodeUtil = (function() {
2821
+ try {
2822
+ // Use `util.types` for Node.js 10+.
2823
+ var types = freeModule && freeModule.require && freeModule.require('util').types;
2824
+
2825
+ if (types) {
2826
+ return types;
2827
+ }
2828
+
2829
+ // Legacy `process.binding('util')` for Node.js < 10.
2830
+ return freeProcess && freeProcess.binding && freeProcess.binding('util');
2831
+ } catch (e) {}
2832
+ }());
2833
+
2834
+ module.exports = nodeUtil;
2835
+ } (_nodeUtil, _nodeUtil.exports));
2836
+ return _nodeUtil.exports;
2837
+ }
2838
+
2839
+ var isTypedArray_1;
2840
+ var hasRequiredIsTypedArray;
2841
+
2842
+ function requireIsTypedArray () {
2843
+ if (hasRequiredIsTypedArray) return isTypedArray_1;
2844
+ hasRequiredIsTypedArray = 1;
2845
+ var baseIsTypedArray = require_baseIsTypedArray(),
2846
+ baseUnary = require_baseUnary(),
2847
+ nodeUtil = require_nodeUtil();
2848
+
2849
+ /* Node.js helper references. */
2850
+ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
2851
+
2852
+ /**
2853
+ * Checks if `value` is classified as a typed array.
2854
+ *
2855
+ * @static
2856
+ * @memberOf _
2857
+ * @since 3.0.0
2858
+ * @category Lang
2859
+ * @param {*} value The value to check.
2860
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
2861
+ * @example
2862
+ *
2863
+ * _.isTypedArray(new Uint8Array);
2864
+ * // => true
2865
+ *
2866
+ * _.isTypedArray([]);
2867
+ * // => false
2868
+ */
2869
+ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
2870
+
2871
+ isTypedArray_1 = isTypedArray;
2872
+ return isTypedArray_1;
2873
+ }
2874
+
2875
+ var _arrayLikeKeys;
2876
+ var hasRequired_arrayLikeKeys;
2877
+
2878
+ function require_arrayLikeKeys () {
2879
+ if (hasRequired_arrayLikeKeys) return _arrayLikeKeys;
2880
+ hasRequired_arrayLikeKeys = 1;
2881
+ var baseTimes = require_baseTimes(),
2882
+ isArguments = requireIsArguments(),
2883
+ isArray = requireIsArray(),
2884
+ isBuffer = requireIsBuffer(),
2885
+ isIndex = require_isIndex(),
2886
+ isTypedArray = requireIsTypedArray();
2887
+
2888
+ /** Used for built-in method references. */
2889
+ var objectProto = Object.prototype;
2890
+
2891
+ /** Used to check objects for own properties. */
2892
+ var hasOwnProperty = objectProto.hasOwnProperty;
2893
+
2894
+ /**
2895
+ * Creates an array of the enumerable property names of the array-like `value`.
2896
+ *
2897
+ * @private
2898
+ * @param {*} value The value to query.
2899
+ * @param {boolean} inherited Specify returning inherited property names.
2900
+ * @returns {Array} Returns the array of property names.
2901
+ */
2902
+ function arrayLikeKeys(value, inherited) {
2903
+ var isArr = isArray(value),
2904
+ isArg = !isArr && isArguments(value),
2905
+ isBuff = !isArr && !isArg && isBuffer(value),
2906
+ isType = !isArr && !isArg && !isBuff && isTypedArray(value),
2907
+ skipIndexes = isArr || isArg || isBuff || isType,
2908
+ result = skipIndexes ? baseTimes(value.length, String) : [],
2909
+ length = result.length;
2910
+
2911
+ for (var key in value) {
2912
+ if ((inherited || hasOwnProperty.call(value, key)) &&
2913
+ !(skipIndexes && (
2914
+ // Safari 9 has enumerable `arguments.length` in strict mode.
2915
+ key == 'length' ||
2916
+ // Node.js 0.10 has enumerable non-index properties on buffers.
2917
+ (isBuff && (key == 'offset' || key == 'parent')) ||
2918
+ // PhantomJS 2 has enumerable non-index properties on typed arrays.
2919
+ (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
2920
+ // Skip index properties.
2921
+ isIndex(key, length)
2922
+ ))) {
2923
+ result.push(key);
2924
+ }
2925
+ }
2926
+ return result;
2927
+ }
2928
+
2929
+ _arrayLikeKeys = arrayLikeKeys;
2930
+ return _arrayLikeKeys;
2931
+ }
2932
+
2933
+ /** Used for built-in method references. */
2934
+
2935
+ var _isPrototype;
2936
+ var hasRequired_isPrototype;
2937
+
2938
+ function require_isPrototype () {
2939
+ if (hasRequired_isPrototype) return _isPrototype;
2940
+ hasRequired_isPrototype = 1;
2941
+ var objectProto = Object.prototype;
2942
+
2943
+ /**
2944
+ * Checks if `value` is likely a prototype object.
2945
+ *
2946
+ * @private
2947
+ * @param {*} value The value to check.
2948
+ * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
2949
+ */
2950
+ function isPrototype(value) {
2951
+ var Ctor = value && value.constructor,
2952
+ proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
2953
+
2954
+ return value === proto;
2955
+ }
2956
+
2957
+ _isPrototype = isPrototype;
2958
+ return _isPrototype;
2959
+ }
2960
+
2961
+ /**
2962
+ * Creates a unary function that invokes `func` with its argument transformed.
2963
+ *
2964
+ * @private
2965
+ * @param {Function} func The function to wrap.
2966
+ * @param {Function} transform The argument transform.
2967
+ * @returns {Function} Returns the new function.
2968
+ */
2969
+
2970
+ var _overArg;
2971
+ var hasRequired_overArg;
2972
+
2973
+ function require_overArg () {
2974
+ if (hasRequired_overArg) return _overArg;
2975
+ hasRequired_overArg = 1;
2976
+ function overArg(func, transform) {
2977
+ return function(arg) {
2978
+ return func(transform(arg));
2979
+ };
2980
+ }
2981
+
2982
+ _overArg = overArg;
2983
+ return _overArg;
2984
+ }
2985
+
2986
+ var _nativeKeys;
2987
+ var hasRequired_nativeKeys;
2988
+
2989
+ function require_nativeKeys () {
2990
+ if (hasRequired_nativeKeys) return _nativeKeys;
2991
+ hasRequired_nativeKeys = 1;
2992
+ var overArg = require_overArg();
2993
+
2994
+ /* Built-in method references for those with the same name as other `lodash` methods. */
2995
+ var nativeKeys = overArg(Object.keys, Object);
2996
+
2997
+ _nativeKeys = nativeKeys;
2998
+ return _nativeKeys;
2999
+ }
3000
+
3001
+ var _baseKeys;
3002
+ var hasRequired_baseKeys;
3003
+
3004
+ function require_baseKeys () {
3005
+ if (hasRequired_baseKeys) return _baseKeys;
3006
+ hasRequired_baseKeys = 1;
3007
+ var isPrototype = require_isPrototype(),
3008
+ nativeKeys = require_nativeKeys();
3009
+
3010
+ /** Used for built-in method references. */
3011
+ var objectProto = Object.prototype;
3012
+
3013
+ /** Used to check objects for own properties. */
3014
+ var hasOwnProperty = objectProto.hasOwnProperty;
3015
+
3016
+ /**
3017
+ * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
3018
+ *
3019
+ * @private
3020
+ * @param {Object} object The object to query.
3021
+ * @returns {Array} Returns the array of property names.
3022
+ */
3023
+ function baseKeys(object) {
3024
+ if (!isPrototype(object)) {
3025
+ return nativeKeys(object);
3026
+ }
3027
+ var result = [];
3028
+ for (var key in Object(object)) {
3029
+ if (hasOwnProperty.call(object, key) && key != 'constructor') {
3030
+ result.push(key);
3031
+ }
3032
+ }
3033
+ return result;
3034
+ }
3035
+
3036
+ _baseKeys = baseKeys;
3037
+ return _baseKeys;
3038
+ }
3039
+
3040
+ var isArrayLike_1;
3041
+ var hasRequiredIsArrayLike;
3042
+
3043
+ function requireIsArrayLike () {
3044
+ if (hasRequiredIsArrayLike) return isArrayLike_1;
3045
+ hasRequiredIsArrayLike = 1;
3046
+ var isFunction = requireIsFunction(),
3047
+ isLength = requireIsLength();
3048
+
3049
+ /**
3050
+ * Checks if `value` is array-like. A value is considered array-like if it's
3051
+ * not a function and has a `value.length` that's an integer greater than or
3052
+ * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
3053
+ *
3054
+ * @static
3055
+ * @memberOf _
3056
+ * @since 4.0.0
3057
+ * @category Lang
3058
+ * @param {*} value The value to check.
3059
+ * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
3060
+ * @example
3061
+ *
3062
+ * _.isArrayLike([1, 2, 3]);
3063
+ * // => true
3064
+ *
3065
+ * _.isArrayLike(document.body.children);
3066
+ * // => true
3067
+ *
3068
+ * _.isArrayLike('abc');
3069
+ * // => true
3070
+ *
3071
+ * _.isArrayLike(_.noop);
3072
+ * // => false
3073
+ */
3074
+ function isArrayLike(value) {
3075
+ return value != null && isLength(value.length) && !isFunction(value);
3076
+ }
3077
+
3078
+ isArrayLike_1 = isArrayLike;
3079
+ return isArrayLike_1;
3080
+ }
3081
+
3082
+ var keys_1;
3083
+ var hasRequiredKeys;
3084
+
3085
+ function requireKeys () {
3086
+ if (hasRequiredKeys) return keys_1;
3087
+ hasRequiredKeys = 1;
3088
+ var arrayLikeKeys = require_arrayLikeKeys(),
3089
+ baseKeys = require_baseKeys(),
3090
+ isArrayLike = requireIsArrayLike();
3091
+
3092
+ /**
3093
+ * Creates an array of the own enumerable property names of `object`.
3094
+ *
3095
+ * **Note:** Non-object values are coerced to objects. See the
3096
+ * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
3097
+ * for more details.
3098
+ *
3099
+ * @static
3100
+ * @since 0.1.0
3101
+ * @memberOf _
3102
+ * @category Object
3103
+ * @param {Object} object The object to query.
3104
+ * @returns {Array} Returns the array of property names.
3105
+ * @example
3106
+ *
3107
+ * function Foo() {
3108
+ * this.a = 1;
3109
+ * this.b = 2;
3110
+ * }
3111
+ *
3112
+ * Foo.prototype.c = 3;
3113
+ *
3114
+ * _.keys(new Foo);
3115
+ * // => ['a', 'b'] (iteration order is not guaranteed)
3116
+ *
3117
+ * _.keys('hi');
3118
+ * // => ['0', '1']
3119
+ */
3120
+ function keys(object) {
3121
+ return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
3122
+ }
3123
+
3124
+ keys_1 = keys;
3125
+ return keys_1;
3126
+ }
3127
+
3128
+ var _getAllKeys;
3129
+ var hasRequired_getAllKeys;
3130
+
3131
+ function require_getAllKeys () {
3132
+ if (hasRequired_getAllKeys) return _getAllKeys;
3133
+ hasRequired_getAllKeys = 1;
3134
+ var baseGetAllKeys = require_baseGetAllKeys(),
3135
+ getSymbols = require_getSymbols(),
3136
+ keys = requireKeys();
3137
+
3138
+ /**
3139
+ * Creates an array of own enumerable property names and symbols of `object`.
3140
+ *
3141
+ * @private
3142
+ * @param {Object} object The object to query.
3143
+ * @returns {Array} Returns the array of property names and symbols.
3144
+ */
3145
+ function getAllKeys(object) {
3146
+ return baseGetAllKeys(object, keys, getSymbols);
3147
+ }
3148
+
3149
+ _getAllKeys = getAllKeys;
3150
+ return _getAllKeys;
3151
+ }
3152
+
3153
+ var _equalObjects;
3154
+ var hasRequired_equalObjects;
3155
+
3156
+ function require_equalObjects () {
3157
+ if (hasRequired_equalObjects) return _equalObjects;
3158
+ hasRequired_equalObjects = 1;
3159
+ var getAllKeys = require_getAllKeys();
3160
+
3161
+ /** Used to compose bitmasks for value comparisons. */
3162
+ var COMPARE_PARTIAL_FLAG = 1;
3163
+
3164
+ /** Used for built-in method references. */
3165
+ var objectProto = Object.prototype;
3166
+
3167
+ /** Used to check objects for own properties. */
3168
+ var hasOwnProperty = objectProto.hasOwnProperty;
3169
+
3170
+ /**
3171
+ * A specialized version of `baseIsEqualDeep` for objects with support for
3172
+ * partial deep comparisons.
3173
+ *
3174
+ * @private
3175
+ * @param {Object} object The object to compare.
3176
+ * @param {Object} other The other object to compare.
3177
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
3178
+ * @param {Function} customizer The function to customize comparisons.
3179
+ * @param {Function} equalFunc The function to determine equivalents of values.
3180
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
3181
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
3182
+ */
3183
+ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
3184
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
3185
+ objProps = getAllKeys(object),
3186
+ objLength = objProps.length,
3187
+ othProps = getAllKeys(other),
3188
+ othLength = othProps.length;
3189
+
3190
+ if (objLength != othLength && !isPartial) {
3191
+ return false;
3192
+ }
3193
+ var index = objLength;
3194
+ while (index--) {
3195
+ var key = objProps[index];
3196
+ if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
3197
+ return false;
3198
+ }
3199
+ }
3200
+ // Check that cyclic values are equal.
3201
+ var objStacked = stack.get(object);
3202
+ var othStacked = stack.get(other);
3203
+ if (objStacked && othStacked) {
3204
+ return objStacked == other && othStacked == object;
3205
+ }
3206
+ var result = true;
3207
+ stack.set(object, other);
3208
+ stack.set(other, object);
3209
+
3210
+ var skipCtor = isPartial;
3211
+ while (++index < objLength) {
3212
+ key = objProps[index];
3213
+ var objValue = object[key],
3214
+ othValue = other[key];
3215
+
3216
+ if (customizer) {
3217
+ var compared = isPartial
3218
+ ? customizer(othValue, objValue, key, other, object, stack)
3219
+ : customizer(objValue, othValue, key, object, other, stack);
3220
+ }
3221
+ // Recursively compare objects (susceptible to call stack limits).
3222
+ if (!(compared === undefined
3223
+ ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
3224
+ : compared
3225
+ )) {
3226
+ result = false;
3227
+ break;
3228
+ }
3229
+ skipCtor || (skipCtor = key == 'constructor');
3230
+ }
3231
+ if (result && !skipCtor) {
3232
+ var objCtor = object.constructor,
3233
+ othCtor = other.constructor;
3234
+
3235
+ // Non `Object` object instances with different constructors are not equal.
3236
+ if (objCtor != othCtor &&
3237
+ ('constructor' in object && 'constructor' in other) &&
3238
+ !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
3239
+ typeof othCtor == 'function' && othCtor instanceof othCtor)) {
3240
+ result = false;
3241
+ }
3242
+ }
3243
+ stack['delete'](object);
3244
+ stack['delete'](other);
3245
+ return result;
3246
+ }
3247
+
3248
+ _equalObjects = equalObjects;
3249
+ return _equalObjects;
3250
+ }
3251
+
3252
+ var _DataView;
3253
+ var hasRequired_DataView;
3254
+
3255
+ function require_DataView () {
3256
+ if (hasRequired_DataView) return _DataView;
3257
+ hasRequired_DataView = 1;
3258
+ var getNative = require_getNative(),
3259
+ root = require_root();
3260
+
3261
+ /* Built-in method references that are verified to be native. */
3262
+ var DataView = getNative(root, 'DataView');
3263
+
3264
+ _DataView = DataView;
3265
+ return _DataView;
3266
+ }
3267
+
3268
+ var _Promise;
3269
+ var hasRequired_Promise;
3270
+
3271
+ function require_Promise () {
3272
+ if (hasRequired_Promise) return _Promise;
3273
+ hasRequired_Promise = 1;
3274
+ var getNative = require_getNative(),
3275
+ root = require_root();
3276
+
3277
+ /* Built-in method references that are verified to be native. */
3278
+ var Promise = getNative(root, 'Promise');
3279
+
3280
+ _Promise = Promise;
3281
+ return _Promise;
3282
+ }
3283
+
3284
+ var _WeakMap;
3285
+ var hasRequired_WeakMap;
3286
+
3287
+ function require_WeakMap () {
3288
+ if (hasRequired_WeakMap) return _WeakMap;
3289
+ hasRequired_WeakMap = 1;
3290
+ var getNative = require_getNative(),
3291
+ root = require_root();
3292
+
3293
+ /* Built-in method references that are verified to be native. */
3294
+ var WeakMap = getNative(root, 'WeakMap');
3295
+
3296
+ _WeakMap = WeakMap;
3297
+ return _WeakMap;
3298
+ }
3299
+
3300
+ var _getTag;
3301
+ var hasRequired_getTag;
3302
+
3303
+ function require_getTag () {
3304
+ if (hasRequired_getTag) return _getTag;
3305
+ hasRequired_getTag = 1;
3306
+ var DataView = require_DataView(),
3307
+ Map = require_Map(),
3308
+ Promise = require_Promise(),
3309
+ Set = require_Set(),
3310
+ WeakMap = require_WeakMap(),
3311
+ baseGetTag = require_baseGetTag(),
3312
+ toSource = require_toSource();
3313
+
3314
+ /** `Object#toString` result references. */
3315
+ var mapTag = '[object Map]',
3316
+ objectTag = '[object Object]',
3317
+ promiseTag = '[object Promise]',
3318
+ setTag = '[object Set]',
3319
+ weakMapTag = '[object WeakMap]';
3320
+
3321
+ var dataViewTag = '[object DataView]';
3322
+
3323
+ /** Used to detect maps, sets, and weakmaps. */
3324
+ var dataViewCtorString = toSource(DataView),
3325
+ mapCtorString = toSource(Map),
3326
+ promiseCtorString = toSource(Promise),
3327
+ setCtorString = toSource(Set),
3328
+ weakMapCtorString = toSource(WeakMap);
3329
+
3330
+ /**
3331
+ * Gets the `toStringTag` of `value`.
3332
+ *
3333
+ * @private
3334
+ * @param {*} value The value to query.
3335
+ * @returns {string} Returns the `toStringTag`.
3336
+ */
3337
+ var getTag = baseGetTag;
3338
+
3339
+ // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
3340
+ if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
3341
+ (Map && getTag(new Map) != mapTag) ||
3342
+ (Promise && getTag(Promise.resolve()) != promiseTag) ||
3343
+ (Set && getTag(new Set) != setTag) ||
3344
+ (WeakMap && getTag(new WeakMap) != weakMapTag)) {
3345
+ getTag = function(value) {
3346
+ var result = baseGetTag(value),
3347
+ Ctor = result == objectTag ? value.constructor : undefined,
3348
+ ctorString = Ctor ? toSource(Ctor) : '';
3349
+
3350
+ if (ctorString) {
3351
+ switch (ctorString) {
3352
+ case dataViewCtorString: return dataViewTag;
3353
+ case mapCtorString: return mapTag;
3354
+ case promiseCtorString: return promiseTag;
3355
+ case setCtorString: return setTag;
3356
+ case weakMapCtorString: return weakMapTag;
3357
+ }
3358
+ }
3359
+ return result;
3360
+ };
3361
+ }
3362
+
3363
+ _getTag = getTag;
3364
+ return _getTag;
3365
+ }
3366
+
3367
+ var _baseIsEqualDeep;
3368
+ var hasRequired_baseIsEqualDeep;
3369
+
3370
+ function require_baseIsEqualDeep () {
3371
+ if (hasRequired_baseIsEqualDeep) return _baseIsEqualDeep;
3372
+ hasRequired_baseIsEqualDeep = 1;
3373
+ var Stack = require_Stack(),
3374
+ equalArrays = require_equalArrays(),
3375
+ equalByTag = require_equalByTag(),
3376
+ equalObjects = require_equalObjects(),
3377
+ getTag = require_getTag(),
3378
+ isArray = requireIsArray(),
3379
+ isBuffer = requireIsBuffer(),
3380
+ isTypedArray = requireIsTypedArray();
3381
+
3382
+ /** Used to compose bitmasks for value comparisons. */
3383
+ var COMPARE_PARTIAL_FLAG = 1;
3384
+
3385
+ /** `Object#toString` result references. */
3386
+ var argsTag = '[object Arguments]',
3387
+ arrayTag = '[object Array]',
3388
+ objectTag = '[object Object]';
3389
+
3390
+ /** Used for built-in method references. */
3391
+ var objectProto = Object.prototype;
3392
+
3393
+ /** Used to check objects for own properties. */
3394
+ var hasOwnProperty = objectProto.hasOwnProperty;
3395
+
3396
+ /**
3397
+ * A specialized version of `baseIsEqual` for arrays and objects which performs
3398
+ * deep comparisons and tracks traversed objects enabling objects with circular
3399
+ * references to be compared.
3400
+ *
3401
+ * @private
3402
+ * @param {Object} object The object to compare.
3403
+ * @param {Object} other The other object to compare.
3404
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
3405
+ * @param {Function} customizer The function to customize comparisons.
3406
+ * @param {Function} equalFunc The function to determine equivalents of values.
3407
+ * @param {Object} [stack] Tracks traversed `object` and `other` objects.
3408
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
3409
+ */
3410
+ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
3411
+ var objIsArr = isArray(object),
3412
+ othIsArr = isArray(other),
3413
+ objTag = objIsArr ? arrayTag : getTag(object),
3414
+ othTag = othIsArr ? arrayTag : getTag(other);
3415
+
3416
+ objTag = objTag == argsTag ? objectTag : objTag;
3417
+ othTag = othTag == argsTag ? objectTag : othTag;
3418
+
3419
+ var objIsObj = objTag == objectTag,
3420
+ othIsObj = othTag == objectTag,
3421
+ isSameTag = objTag == othTag;
3422
+
3423
+ if (isSameTag && isBuffer(object)) {
3424
+ if (!isBuffer(other)) {
3425
+ return false;
3426
+ }
3427
+ objIsArr = true;
3428
+ objIsObj = false;
3429
+ }
3430
+ if (isSameTag && !objIsObj) {
3431
+ stack || (stack = new Stack);
3432
+ return (objIsArr || isTypedArray(object))
3433
+ ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
3434
+ : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
3435
+ }
3436
+ if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
3437
+ var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
3438
+ othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
3439
+
3440
+ if (objIsWrapped || othIsWrapped) {
3441
+ var objUnwrapped = objIsWrapped ? object.value() : object,
3442
+ othUnwrapped = othIsWrapped ? other.value() : other;
3443
+
3444
+ stack || (stack = new Stack);
3445
+ return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
3446
+ }
3447
+ }
3448
+ if (!isSameTag) {
3449
+ return false;
3450
+ }
3451
+ stack || (stack = new Stack);
3452
+ return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
3453
+ }
3454
+
3455
+ _baseIsEqualDeep = baseIsEqualDeep;
3456
+ return _baseIsEqualDeep;
3457
+ }
3458
+
3459
+ var _baseIsEqual;
3460
+ var hasRequired_baseIsEqual;
3461
+
3462
+ function require_baseIsEqual () {
3463
+ if (hasRequired_baseIsEqual) return _baseIsEqual;
3464
+ hasRequired_baseIsEqual = 1;
3465
+ var baseIsEqualDeep = require_baseIsEqualDeep(),
3466
+ isObjectLike = requireIsObjectLike();
3467
+
3468
+ /**
3469
+ * The base implementation of `_.isEqual` which supports partial comparisons
3470
+ * and tracks traversed objects.
3471
+ *
3472
+ * @private
3473
+ * @param {*} value The value to compare.
3474
+ * @param {*} other The other value to compare.
3475
+ * @param {boolean} bitmask The bitmask flags.
3476
+ * 1 - Unordered comparison
3477
+ * 2 - Partial comparison
3478
+ * @param {Function} [customizer] The function to customize comparisons.
3479
+ * @param {Object} [stack] Tracks traversed `value` and `other` objects.
3480
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
3481
+ */
3482
+ function baseIsEqual(value, other, bitmask, customizer, stack) {
3483
+ if (value === other) {
3484
+ return true;
3485
+ }
3486
+ if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
3487
+ return value !== value && other !== other;
3488
+ }
3489
+ return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
3490
+ }
3491
+
3492
+ _baseIsEqual = baseIsEqual;
3493
+ return _baseIsEqual;
3494
+ }
3495
+
3496
+ var isEqual_1;
3497
+ var hasRequiredIsEqual;
3498
+
3499
+ function requireIsEqual () {
3500
+ if (hasRequiredIsEqual) return isEqual_1;
3501
+ hasRequiredIsEqual = 1;
3502
+ var baseIsEqual = require_baseIsEqual();
3503
+
3504
+ /**
3505
+ * Performs a deep comparison between two values to determine if they are
3506
+ * equivalent.
3507
+ *
3508
+ * **Note:** This method supports comparing arrays, array buffers, booleans,
3509
+ * date objects, error objects, maps, numbers, `Object` objects, regexes,
3510
+ * sets, strings, symbols, and typed arrays. `Object` objects are compared
3511
+ * by their own, not inherited, enumerable properties. Functions and DOM
3512
+ * nodes are compared by strict equality, i.e. `===`.
3513
+ *
3514
+ * @static
3515
+ * @memberOf _
3516
+ * @since 0.1.0
3517
+ * @category Lang
3518
+ * @param {*} value The value to compare.
3519
+ * @param {*} other The other value to compare.
3520
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
3521
+ * @example
3522
+ *
3523
+ * var object = { 'a': 1 };
3524
+ * var other = { 'a': 1 };
3525
+ *
3526
+ * _.isEqual(object, other);
3527
+ * // => true
3528
+ *
3529
+ * object === other;
3530
+ * // => false
3531
+ */
3532
+ function isEqual(value, other) {
3533
+ return baseIsEqual(value, other);
3534
+ }
3535
+
3536
+ isEqual_1 = isEqual;
3537
+ return isEqual_1;
3538
+ }
3539
+
3540
+ requireIsEqual();
3541
+
3542
+ var memoize_1;
3543
+ var hasRequiredMemoize;
3544
+
3545
+ function requireMemoize () {
3546
+ if (hasRequiredMemoize) return memoize_1;
3547
+ hasRequiredMemoize = 1;
3548
+ var MapCache = require_MapCache();
3549
+
3550
+ /** Error message constants. */
3551
+ var FUNC_ERROR_TEXT = 'Expected a function';
3552
+
3553
+ /**
3554
+ * Creates a function that memoizes the result of `func`. If `resolver` is
3555
+ * provided, it determines the cache key for storing the result based on the
3556
+ * arguments provided to the memoized function. By default, the first argument
3557
+ * provided to the memoized function is used as the map cache key. The `func`
3558
+ * is invoked with the `this` binding of the memoized function.
3559
+ *
3560
+ * **Note:** The cache is exposed as the `cache` property on the memoized
3561
+ * function. Its creation may be customized by replacing the `_.memoize.Cache`
3562
+ * constructor with one whose instances implement the
3563
+ * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
3564
+ * method interface of `clear`, `delete`, `get`, `has`, and `set`.
3565
+ *
3566
+ * @static
3567
+ * @memberOf _
3568
+ * @since 0.1.0
3569
+ * @category Function
3570
+ * @param {Function} func The function to have its output memoized.
3571
+ * @param {Function} [resolver] The function to resolve the cache key.
3572
+ * @returns {Function} Returns the new memoized function.
3573
+ * @example
3574
+ *
3575
+ * var object = { 'a': 1, 'b': 2 };
3576
+ * var other = { 'c': 3, 'd': 4 };
3577
+ *
3578
+ * var values = _.memoize(_.values);
3579
+ * values(object);
3580
+ * // => [1, 2]
3581
+ *
3582
+ * values(other);
3583
+ * // => [3, 4]
3584
+ *
3585
+ * object.a = 2;
3586
+ * values(object);
3587
+ * // => [1, 2]
3588
+ *
3589
+ * // Modify the result cache.
3590
+ * values.cache.set(object, ['a', 'b']);
3591
+ * values(object);
3592
+ * // => ['a', 'b']
3593
+ *
3594
+ * // Replace `_.memoize.Cache`.
3595
+ * _.memoize.Cache = WeakMap;
3596
+ */
3597
+ function memoize(func, resolver) {
3598
+ if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
3599
+ throw new TypeError(FUNC_ERROR_TEXT);
3600
+ }
3601
+ var memoized = function() {
3602
+ var args = arguments,
3603
+ key = resolver ? resolver.apply(this, args) : args[0],
3604
+ cache = memoized.cache;
3605
+
3606
+ if (cache.has(key)) {
3607
+ return cache.get(key);
3608
+ }
3609
+ var result = func.apply(this, args);
3610
+ memoized.cache = cache.set(key, result) || cache;
3611
+ return result;
3612
+ };
3613
+ memoized.cache = new (memoize.Cache || MapCache);
3614
+ return memoized;
3615
+ }
3616
+
3617
+ // Expose `MapCache`.
3618
+ memoize.Cache = MapCache;
3619
+
3620
+ memoize_1 = memoize;
3621
+ return memoize_1;
3622
+ }
3623
+
3624
+ var memoizeExports = requireMemoize();
3625
+ var memoize = /*@__PURE__*/getDefaultExportFromCjs(memoizeExports);
3626
+
3627
+ /**
3628
+ * A specialized version of `_.map` for arrays without support for iteratee
3629
+ * shorthands.
3630
+ *
3631
+ * @private
3632
+ * @param {Array} [array] The array to iterate over.
3633
+ * @param {Function} iteratee The function invoked per iteration.
3634
+ * @returns {Array} Returns the new mapped array.
3635
+ */
3636
+
3637
+ var _arrayMap;
3638
+ var hasRequired_arrayMap;
3639
+
3640
+ function require_arrayMap () {
3641
+ if (hasRequired_arrayMap) return _arrayMap;
3642
+ hasRequired_arrayMap = 1;
3643
+ function arrayMap(array, iteratee) {
3644
+ var index = -1,
3645
+ length = array == null ? 0 : array.length,
3646
+ result = Array(length);
3647
+
3648
+ while (++index < length) {
3649
+ result[index] = iteratee(array[index], index, array);
3650
+ }
3651
+ return result;
3652
+ }
3653
+
3654
+ _arrayMap = arrayMap;
3655
+ return _arrayMap;
3656
+ }
3657
+
3658
+ var isSymbol_1;
3659
+ var hasRequiredIsSymbol;
3660
+
3661
+ function requireIsSymbol () {
3662
+ if (hasRequiredIsSymbol) return isSymbol_1;
3663
+ hasRequiredIsSymbol = 1;
3664
+ var baseGetTag = require_baseGetTag(),
3665
+ isObjectLike = requireIsObjectLike();
3666
+
3667
+ /** `Object#toString` result references. */
3668
+ var symbolTag = '[object Symbol]';
3669
+
3670
+ /**
3671
+ * Checks if `value` is classified as a `Symbol` primitive or object.
3672
+ *
3673
+ * @static
3674
+ * @memberOf _
3675
+ * @since 4.0.0
3676
+ * @category Lang
3677
+ * @param {*} value The value to check.
3678
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
3679
+ * @example
3680
+ *
3681
+ * _.isSymbol(Symbol.iterator);
3682
+ * // => true
3683
+ *
3684
+ * _.isSymbol('abc');
3685
+ * // => false
3686
+ */
3687
+ function isSymbol(value) {
3688
+ return typeof value == 'symbol' ||
3689
+ (isObjectLike(value) && baseGetTag(value) == symbolTag);
3690
+ }
3691
+
3692
+ isSymbol_1 = isSymbol;
3693
+ return isSymbol_1;
3694
+ }
3695
+
3696
+ var _baseToString;
3697
+ var hasRequired_baseToString;
3698
+
3699
+ function require_baseToString () {
3700
+ if (hasRequired_baseToString) return _baseToString;
3701
+ hasRequired_baseToString = 1;
3702
+ var Symbol = require_Symbol(),
3703
+ arrayMap = require_arrayMap(),
3704
+ isArray = requireIsArray(),
3705
+ isSymbol = requireIsSymbol();
3706
+
3707
+ /** Used to convert symbols to primitives and strings. */
3708
+ var symbolProto = Symbol ? Symbol.prototype : undefined,
3709
+ symbolToString = symbolProto ? symbolProto.toString : undefined;
3710
+
3711
+ /**
3712
+ * The base implementation of `_.toString` which doesn't convert nullish
3713
+ * values to empty strings.
3714
+ *
3715
+ * @private
3716
+ * @param {*} value The value to process.
3717
+ * @returns {string} Returns the string.
3718
+ */
3719
+ function baseToString(value) {
3720
+ // Exit early for strings to avoid a performance hit in some environments.
3721
+ if (typeof value == 'string') {
3722
+ return value;
3723
+ }
3724
+ if (isArray(value)) {
3725
+ // Recursively convert values (susceptible to call stack limits).
3726
+ return arrayMap(value, baseToString) + '';
3727
+ }
3728
+ if (isSymbol(value)) {
3729
+ return symbolToString ? symbolToString.call(value) : '';
3730
+ }
3731
+ var result = (value + '');
3732
+ return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
3733
+ }
3734
+
3735
+ _baseToString = baseToString;
3736
+ return _baseToString;
3737
+ }
3738
+
3739
+ var toString_1;
3740
+ var hasRequiredToString;
3741
+
3742
+ function requireToString () {
3743
+ if (hasRequiredToString) return toString_1;
3744
+ hasRequiredToString = 1;
3745
+ var baseToString = require_baseToString();
3746
+
3747
+ /**
3748
+ * Converts `value` to a string. An empty string is returned for `null`
3749
+ * and `undefined` values. The sign of `-0` is preserved.
3750
+ *
3751
+ * @static
3752
+ * @memberOf _
3753
+ * @since 4.0.0
3754
+ * @category Lang
3755
+ * @param {*} value The value to convert.
3756
+ * @returns {string} Returns the converted string.
3757
+ * @example
3758
+ *
3759
+ * _.toString(null);
3760
+ * // => ''
3761
+ *
3762
+ * _.toString(-0);
3763
+ * // => '-0'
3764
+ *
3765
+ * _.toString([1, 2, 3]);
3766
+ * // => '1,2,3'
3767
+ */
3768
+ function toString(value) {
3769
+ return value == null ? '' : baseToString(value);
3770
+ }
3771
+
3772
+ toString_1 = toString;
3773
+ return toString_1;
3774
+ }
3775
+
3776
+ var escapeRegExp_1;
3777
+ var hasRequiredEscapeRegExp;
3778
+
3779
+ function requireEscapeRegExp () {
3780
+ if (hasRequiredEscapeRegExp) return escapeRegExp_1;
3781
+ hasRequiredEscapeRegExp = 1;
3782
+ var toString = requireToString();
3783
+
3784
+ /**
3785
+ * Used to match `RegExp`
3786
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
3787
+ */
3788
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g,
3789
+ reHasRegExpChar = RegExp(reRegExpChar.source);
3790
+
3791
+ /**
3792
+ * Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
3793
+ * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
3794
+ *
3795
+ * @static
3796
+ * @memberOf _
3797
+ * @since 3.0.0
3798
+ * @category String
3799
+ * @param {string} [string=''] The string to escape.
3800
+ * @returns {string} Returns the escaped string.
3801
+ * @example
3802
+ *
3803
+ * _.escapeRegExp('[lodash](https://lodash.com/)');
3804
+ * // => '\[lodash\]\(https://lodash\.com/\)'
3805
+ */
3806
+ function escapeRegExp(string) {
3807
+ string = toString(string);
3808
+ return (string && reHasRegExpChar.test(string))
3809
+ ? string.replace(reRegExpChar, '\\$&')
3810
+ : string;
3811
+ }
3812
+
3813
+ escapeRegExp_1 = escapeRegExp;
3814
+ return escapeRegExp_1;
3815
+ }
3816
+
3817
+ var escapeRegExpExports = requireEscapeRegExp();
3818
+ var escapeRegExp = /*@__PURE__*/getDefaultExportFromCjs(escapeRegExpExports);
3819
+
3820
+ /**
3821
+ * A specialized version of `_.forEach` for arrays without support for
3822
+ * iteratee shorthands.
3823
+ *
3824
+ * @private
3825
+ * @param {Array} [array] The array to iterate over.
3826
+ * @param {Function} iteratee The function invoked per iteration.
3827
+ * @returns {Array} Returns `array`.
3828
+ */
3829
+
3830
+ var _arrayEach;
3831
+ var hasRequired_arrayEach;
3832
+
3833
+ function require_arrayEach () {
3834
+ if (hasRequired_arrayEach) return _arrayEach;
3835
+ hasRequired_arrayEach = 1;
3836
+ function arrayEach(array, iteratee) {
3837
+ var index = -1,
3838
+ length = array == null ? 0 : array.length;
3839
+
3840
+ while (++index < length) {
3841
+ if (iteratee(array[index], index, array) === false) {
3842
+ break;
3843
+ }
3844
+ }
3845
+ return array;
3846
+ }
3847
+
3848
+ _arrayEach = arrayEach;
3849
+ return _arrayEach;
3850
+ }
3851
+
3852
+ var _defineProperty;
3853
+ var hasRequired_defineProperty;
3854
+
3855
+ function require_defineProperty () {
3856
+ if (hasRequired_defineProperty) return _defineProperty;
3857
+ hasRequired_defineProperty = 1;
3858
+ var getNative = require_getNative();
3859
+
3860
+ var defineProperty = (function() {
3861
+ try {
3862
+ var func = getNative(Object, 'defineProperty');
3863
+ func({}, '', {});
3864
+ return func;
3865
+ } catch (e) {}
3866
+ }());
3867
+
3868
+ _defineProperty = defineProperty;
3869
+ return _defineProperty;
3870
+ }
3871
+
3872
+ var _baseAssignValue;
3873
+ var hasRequired_baseAssignValue;
3874
+
3875
+ function require_baseAssignValue () {
3876
+ if (hasRequired_baseAssignValue) return _baseAssignValue;
3877
+ hasRequired_baseAssignValue = 1;
3878
+ var defineProperty = require_defineProperty();
3879
+
3880
+ /**
3881
+ * The base implementation of `assignValue` and `assignMergeValue` without
3882
+ * value checks.
3883
+ *
3884
+ * @private
3885
+ * @param {Object} object The object to modify.
3886
+ * @param {string} key The key of the property to assign.
3887
+ * @param {*} value The value to assign.
3888
+ */
3889
+ function baseAssignValue(object, key, value) {
3890
+ if (key == '__proto__' && defineProperty) {
3891
+ defineProperty(object, key, {
3892
+ 'configurable': true,
3893
+ 'enumerable': true,
3894
+ 'value': value,
3895
+ 'writable': true
3896
+ });
3897
+ } else {
3898
+ object[key] = value;
3899
+ }
3900
+ }
3901
+
3902
+ _baseAssignValue = baseAssignValue;
3903
+ return _baseAssignValue;
3904
+ }
3905
+
3906
+ var _assignValue;
3907
+ var hasRequired_assignValue;
3908
+
3909
+ function require_assignValue () {
3910
+ if (hasRequired_assignValue) return _assignValue;
3911
+ hasRequired_assignValue = 1;
3912
+ var baseAssignValue = require_baseAssignValue(),
3913
+ eq = requireEq();
3914
+
3915
+ /** Used for built-in method references. */
3916
+ var objectProto = Object.prototype;
3917
+
3918
+ /** Used to check objects for own properties. */
3919
+ var hasOwnProperty = objectProto.hasOwnProperty;
3920
+
3921
+ /**
3922
+ * Assigns `value` to `key` of `object` if the existing value is not equivalent
3923
+ * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
3924
+ * for equality comparisons.
3925
+ *
3926
+ * @private
3927
+ * @param {Object} object The object to modify.
3928
+ * @param {string} key The key of the property to assign.
3929
+ * @param {*} value The value to assign.
3930
+ */
3931
+ function assignValue(object, key, value) {
3932
+ var objValue = object[key];
3933
+ if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
3934
+ (value === undefined && !(key in object))) {
3935
+ baseAssignValue(object, key, value);
3936
+ }
3937
+ }
3938
+
3939
+ _assignValue = assignValue;
3940
+ return _assignValue;
3941
+ }
3942
+
3943
+ var _copyObject;
3944
+ var hasRequired_copyObject;
3945
+
3946
+ function require_copyObject () {
3947
+ if (hasRequired_copyObject) return _copyObject;
3948
+ hasRequired_copyObject = 1;
3949
+ var assignValue = require_assignValue(),
3950
+ baseAssignValue = require_baseAssignValue();
3951
+
3952
+ /**
3953
+ * Copies properties of `source` to `object`.
3954
+ *
3955
+ * @private
3956
+ * @param {Object} source The object to copy properties from.
3957
+ * @param {Array} props The property identifiers to copy.
3958
+ * @param {Object} [object={}] The object to copy properties to.
3959
+ * @param {Function} [customizer] The function to customize copied values.
3960
+ * @returns {Object} Returns `object`.
3961
+ */
3962
+ function copyObject(source, props, object, customizer) {
3963
+ var isNew = !object;
3964
+ object || (object = {});
3965
+
3966
+ var index = -1,
3967
+ length = props.length;
3968
+
3969
+ while (++index < length) {
3970
+ var key = props[index];
3971
+
3972
+ var newValue = customizer
3973
+ ? customizer(object[key], source[key], key, object, source)
3974
+ : undefined;
3975
+
3976
+ if (newValue === undefined) {
3977
+ newValue = source[key];
3978
+ }
3979
+ if (isNew) {
3980
+ baseAssignValue(object, key, newValue);
3981
+ } else {
3982
+ assignValue(object, key, newValue);
3983
+ }
3984
+ }
3985
+ return object;
3986
+ }
3987
+
3988
+ _copyObject = copyObject;
3989
+ return _copyObject;
3990
+ }
3991
+
3992
+ var _baseAssign;
3993
+ var hasRequired_baseAssign;
3994
+
3995
+ function require_baseAssign () {
3996
+ if (hasRequired_baseAssign) return _baseAssign;
3997
+ hasRequired_baseAssign = 1;
3998
+ var copyObject = require_copyObject(),
3999
+ keys = requireKeys();
4000
+
4001
+ /**
4002
+ * The base implementation of `_.assign` without support for multiple sources
4003
+ * or `customizer` functions.
4004
+ *
4005
+ * @private
4006
+ * @param {Object} object The destination object.
4007
+ * @param {Object} source The source object.
4008
+ * @returns {Object} Returns `object`.
4009
+ */
4010
+ function baseAssign(object, source) {
4011
+ return object && copyObject(source, keys(source), object);
4012
+ }
4013
+
4014
+ _baseAssign = baseAssign;
4015
+ return _baseAssign;
4016
+ }
4017
+
4018
+ /**
4019
+ * This function is like
4020
+ * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
4021
+ * except that it includes inherited enumerable properties.
4022
+ *
4023
+ * @private
4024
+ * @param {Object} object The object to query.
4025
+ * @returns {Array} Returns the array of property names.
4026
+ */
4027
+
4028
+ var _nativeKeysIn;
4029
+ var hasRequired_nativeKeysIn;
4030
+
4031
+ function require_nativeKeysIn () {
4032
+ if (hasRequired_nativeKeysIn) return _nativeKeysIn;
4033
+ hasRequired_nativeKeysIn = 1;
4034
+ function nativeKeysIn(object) {
4035
+ var result = [];
4036
+ if (object != null) {
4037
+ for (var key in Object(object)) {
4038
+ result.push(key);
4039
+ }
4040
+ }
4041
+ return result;
4042
+ }
4043
+
4044
+ _nativeKeysIn = nativeKeysIn;
4045
+ return _nativeKeysIn;
4046
+ }
4047
+
4048
+ var _baseKeysIn;
4049
+ var hasRequired_baseKeysIn;
4050
+
4051
+ function require_baseKeysIn () {
4052
+ if (hasRequired_baseKeysIn) return _baseKeysIn;
4053
+ hasRequired_baseKeysIn = 1;
4054
+ var isObject = requireIsObject(),
4055
+ isPrototype = require_isPrototype(),
4056
+ nativeKeysIn = require_nativeKeysIn();
4057
+
4058
+ /** Used for built-in method references. */
4059
+ var objectProto = Object.prototype;
4060
+
4061
+ /** Used to check objects for own properties. */
4062
+ var hasOwnProperty = objectProto.hasOwnProperty;
4063
+
4064
+ /**
4065
+ * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
4066
+ *
4067
+ * @private
4068
+ * @param {Object} object The object to query.
4069
+ * @returns {Array} Returns the array of property names.
4070
+ */
4071
+ function baseKeysIn(object) {
4072
+ if (!isObject(object)) {
4073
+ return nativeKeysIn(object);
4074
+ }
4075
+ var isProto = isPrototype(object),
4076
+ result = [];
4077
+
4078
+ for (var key in object) {
4079
+ if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
4080
+ result.push(key);
4081
+ }
4082
+ }
4083
+ return result;
4084
+ }
4085
+
4086
+ _baseKeysIn = baseKeysIn;
4087
+ return _baseKeysIn;
4088
+ }
4089
+
4090
+ var keysIn_1;
4091
+ var hasRequiredKeysIn;
4092
+
4093
+ function requireKeysIn () {
4094
+ if (hasRequiredKeysIn) return keysIn_1;
4095
+ hasRequiredKeysIn = 1;
4096
+ var arrayLikeKeys = require_arrayLikeKeys(),
4097
+ baseKeysIn = require_baseKeysIn(),
4098
+ isArrayLike = requireIsArrayLike();
4099
+
4100
+ /**
4101
+ * Creates an array of the own and inherited enumerable property names of `object`.
4102
+ *
4103
+ * **Note:** Non-object values are coerced to objects.
4104
+ *
4105
+ * @static
4106
+ * @memberOf _
4107
+ * @since 3.0.0
4108
+ * @category Object
4109
+ * @param {Object} object The object to query.
4110
+ * @returns {Array} Returns the array of property names.
4111
+ * @example
4112
+ *
4113
+ * function Foo() {
4114
+ * this.a = 1;
4115
+ * this.b = 2;
4116
+ * }
4117
+ *
4118
+ * Foo.prototype.c = 3;
4119
+ *
4120
+ * _.keysIn(new Foo);
4121
+ * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
4122
+ */
4123
+ function keysIn(object) {
4124
+ return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
4125
+ }
4126
+
4127
+ keysIn_1 = keysIn;
4128
+ return keysIn_1;
4129
+ }
4130
+
4131
+ var _baseAssignIn;
4132
+ var hasRequired_baseAssignIn;
4133
+
4134
+ function require_baseAssignIn () {
4135
+ if (hasRequired_baseAssignIn) return _baseAssignIn;
4136
+ hasRequired_baseAssignIn = 1;
4137
+ var copyObject = require_copyObject(),
4138
+ keysIn = requireKeysIn();
4139
+
4140
+ /**
4141
+ * The base implementation of `_.assignIn` without support for multiple sources
4142
+ * or `customizer` functions.
4143
+ *
4144
+ * @private
4145
+ * @param {Object} object The destination object.
4146
+ * @param {Object} source The source object.
4147
+ * @returns {Object} Returns `object`.
4148
+ */
4149
+ function baseAssignIn(object, source) {
4150
+ return object && copyObject(source, keysIn(source), object);
4151
+ }
4152
+
4153
+ _baseAssignIn = baseAssignIn;
4154
+ return _baseAssignIn;
4155
+ }
4156
+
4157
+ var _cloneBuffer = {exports: {}};
4158
+
4159
+ _cloneBuffer.exports;
4160
+
4161
+ var hasRequired_cloneBuffer;
4162
+
4163
+ function require_cloneBuffer () {
4164
+ if (hasRequired_cloneBuffer) return _cloneBuffer.exports;
4165
+ hasRequired_cloneBuffer = 1;
4166
+ (function (module, exports) {
4167
+ var root = require_root();
4168
+
4169
+ /** Detect free variable `exports`. */
4170
+ var freeExports = exports && !exports.nodeType && exports;
4171
+
4172
+ /** Detect free variable `module`. */
4173
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
4174
+
4175
+ /** Detect the popular CommonJS extension `module.exports`. */
4176
+ var moduleExports = freeModule && freeModule.exports === freeExports;
4177
+
4178
+ /** Built-in value references. */
4179
+ var Buffer = moduleExports ? root.Buffer : undefined,
4180
+ allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
4181
+
4182
+ /**
4183
+ * Creates a clone of `buffer`.
4184
+ *
4185
+ * @private
4186
+ * @param {Buffer} buffer The buffer to clone.
4187
+ * @param {boolean} [isDeep] Specify a deep clone.
4188
+ * @returns {Buffer} Returns the cloned buffer.
4189
+ */
4190
+ function cloneBuffer(buffer, isDeep) {
4191
+ if (isDeep) {
4192
+ return buffer.slice();
4193
+ }
4194
+ var length = buffer.length,
4195
+ result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
4196
+
4197
+ buffer.copy(result);
4198
+ return result;
4199
+ }
4200
+
4201
+ module.exports = cloneBuffer;
4202
+ } (_cloneBuffer, _cloneBuffer.exports));
4203
+ return _cloneBuffer.exports;
4204
+ }
4205
+
4206
+ /**
4207
+ * Copies the values of `source` to `array`.
4208
+ *
4209
+ * @private
4210
+ * @param {Array} source The array to copy values from.
4211
+ * @param {Array} [array=[]] The array to copy values to.
4212
+ * @returns {Array} Returns `array`.
4213
+ */
4214
+
4215
+ var _copyArray;
4216
+ var hasRequired_copyArray;
4217
+
4218
+ function require_copyArray () {
4219
+ if (hasRequired_copyArray) return _copyArray;
4220
+ hasRequired_copyArray = 1;
4221
+ function copyArray(source, array) {
4222
+ var index = -1,
4223
+ length = source.length;
4224
+
4225
+ array || (array = Array(length));
4226
+ while (++index < length) {
4227
+ array[index] = source[index];
4228
+ }
4229
+ return array;
4230
+ }
4231
+
4232
+ _copyArray = copyArray;
4233
+ return _copyArray;
4234
+ }
4235
+
4236
+ var _copySymbols;
4237
+ var hasRequired_copySymbols;
4238
+
4239
+ function require_copySymbols () {
4240
+ if (hasRequired_copySymbols) return _copySymbols;
4241
+ hasRequired_copySymbols = 1;
4242
+ var copyObject = require_copyObject(),
4243
+ getSymbols = require_getSymbols();
4244
+
4245
+ /**
4246
+ * Copies own symbols of `source` to `object`.
4247
+ *
4248
+ * @private
4249
+ * @param {Object} source The object to copy symbols from.
4250
+ * @param {Object} [object={}] The object to copy symbols to.
4251
+ * @returns {Object} Returns `object`.
4252
+ */
4253
+ function copySymbols(source, object) {
4254
+ return copyObject(source, getSymbols(source), object);
4255
+ }
4256
+
4257
+ _copySymbols = copySymbols;
4258
+ return _copySymbols;
4259
+ }
4260
+
4261
+ var _getPrototype;
4262
+ var hasRequired_getPrototype;
4263
+
4264
+ function require_getPrototype () {
4265
+ if (hasRequired_getPrototype) return _getPrototype;
4266
+ hasRequired_getPrototype = 1;
4267
+ var overArg = require_overArg();
4268
+
4269
+ /** Built-in value references. */
4270
+ var getPrototype = overArg(Object.getPrototypeOf, Object);
4271
+
4272
+ _getPrototype = getPrototype;
4273
+ return _getPrototype;
4274
+ }
4275
+
4276
+ var _getSymbolsIn;
4277
+ var hasRequired_getSymbolsIn;
4278
+
4279
+ function require_getSymbolsIn () {
4280
+ if (hasRequired_getSymbolsIn) return _getSymbolsIn;
4281
+ hasRequired_getSymbolsIn = 1;
4282
+ var arrayPush = require_arrayPush(),
4283
+ getPrototype = require_getPrototype(),
4284
+ getSymbols = require_getSymbols(),
4285
+ stubArray = requireStubArray();
4286
+
4287
+ /* Built-in method references for those with the same name as other `lodash` methods. */
4288
+ var nativeGetSymbols = Object.getOwnPropertySymbols;
4289
+
4290
+ /**
4291
+ * Creates an array of the own and inherited enumerable symbols of `object`.
4292
+ *
4293
+ * @private
4294
+ * @param {Object} object The object to query.
4295
+ * @returns {Array} Returns the array of symbols.
4296
+ */
4297
+ var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
4298
+ var result = [];
4299
+ while (object) {
4300
+ arrayPush(result, getSymbols(object));
4301
+ object = getPrototype(object);
4302
+ }
4303
+ return result;
4304
+ };
4305
+
4306
+ _getSymbolsIn = getSymbolsIn;
4307
+ return _getSymbolsIn;
4308
+ }
4309
+
4310
+ var _copySymbolsIn;
4311
+ var hasRequired_copySymbolsIn;
4312
+
4313
+ function require_copySymbolsIn () {
4314
+ if (hasRequired_copySymbolsIn) return _copySymbolsIn;
4315
+ hasRequired_copySymbolsIn = 1;
4316
+ var copyObject = require_copyObject(),
4317
+ getSymbolsIn = require_getSymbolsIn();
4318
+
4319
+ /**
4320
+ * Copies own and inherited symbols of `source` to `object`.
4321
+ *
4322
+ * @private
4323
+ * @param {Object} source The object to copy symbols from.
4324
+ * @param {Object} [object={}] The object to copy symbols to.
4325
+ * @returns {Object} Returns `object`.
4326
+ */
4327
+ function copySymbolsIn(source, object) {
4328
+ return copyObject(source, getSymbolsIn(source), object);
4329
+ }
4330
+
4331
+ _copySymbolsIn = copySymbolsIn;
4332
+ return _copySymbolsIn;
4333
+ }
4334
+
4335
+ var _getAllKeysIn;
4336
+ var hasRequired_getAllKeysIn;
4337
+
4338
+ function require_getAllKeysIn () {
4339
+ if (hasRequired_getAllKeysIn) return _getAllKeysIn;
4340
+ hasRequired_getAllKeysIn = 1;
4341
+ var baseGetAllKeys = require_baseGetAllKeys(),
4342
+ getSymbolsIn = require_getSymbolsIn(),
4343
+ keysIn = requireKeysIn();
4344
+
4345
+ /**
4346
+ * Creates an array of own and inherited enumerable property names and
4347
+ * symbols of `object`.
4348
+ *
4349
+ * @private
4350
+ * @param {Object} object The object to query.
4351
+ * @returns {Array} Returns the array of property names and symbols.
4352
+ */
4353
+ function getAllKeysIn(object) {
4354
+ return baseGetAllKeys(object, keysIn, getSymbolsIn);
4355
+ }
4356
+
4357
+ _getAllKeysIn = getAllKeysIn;
4358
+ return _getAllKeysIn;
4359
+ }
4360
+
4361
+ /** Used for built-in method references. */
4362
+
4363
+ var _initCloneArray;
4364
+ var hasRequired_initCloneArray;
4365
+
4366
+ function require_initCloneArray () {
4367
+ if (hasRequired_initCloneArray) return _initCloneArray;
4368
+ hasRequired_initCloneArray = 1;
4369
+ var objectProto = Object.prototype;
4370
+
4371
+ /** Used to check objects for own properties. */
4372
+ var hasOwnProperty = objectProto.hasOwnProperty;
4373
+
4374
+ /**
4375
+ * Initializes an array clone.
4376
+ *
4377
+ * @private
4378
+ * @param {Array} array The array to clone.
4379
+ * @returns {Array} Returns the initialized clone.
4380
+ */
4381
+ function initCloneArray(array) {
4382
+ var length = array.length,
4383
+ result = new array.constructor(length);
4384
+
4385
+ // Add properties assigned by `RegExp#exec`.
4386
+ if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
4387
+ result.index = array.index;
4388
+ result.input = array.input;
4389
+ }
4390
+ return result;
4391
+ }
4392
+
4393
+ _initCloneArray = initCloneArray;
4394
+ return _initCloneArray;
4395
+ }
4396
+
4397
+ var _cloneArrayBuffer;
4398
+ var hasRequired_cloneArrayBuffer;
4399
+
4400
+ function require_cloneArrayBuffer () {
4401
+ if (hasRequired_cloneArrayBuffer) return _cloneArrayBuffer;
4402
+ hasRequired_cloneArrayBuffer = 1;
4403
+ var Uint8Array = require_Uint8Array();
4404
+
4405
+ /**
4406
+ * Creates a clone of `arrayBuffer`.
4407
+ *
4408
+ * @private
4409
+ * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
4410
+ * @returns {ArrayBuffer} Returns the cloned array buffer.
4411
+ */
4412
+ function cloneArrayBuffer(arrayBuffer) {
4413
+ var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
4414
+ new Uint8Array(result).set(new Uint8Array(arrayBuffer));
4415
+ return result;
4416
+ }
4417
+
4418
+ _cloneArrayBuffer = cloneArrayBuffer;
4419
+ return _cloneArrayBuffer;
4420
+ }
4421
+
4422
+ var _cloneDataView;
4423
+ var hasRequired_cloneDataView;
4424
+
4425
+ function require_cloneDataView () {
4426
+ if (hasRequired_cloneDataView) return _cloneDataView;
4427
+ hasRequired_cloneDataView = 1;
4428
+ var cloneArrayBuffer = require_cloneArrayBuffer();
4429
+
4430
+ /**
4431
+ * Creates a clone of `dataView`.
4432
+ *
4433
+ * @private
4434
+ * @param {Object} dataView The data view to clone.
4435
+ * @param {boolean} [isDeep] Specify a deep clone.
4436
+ * @returns {Object} Returns the cloned data view.
4437
+ */
4438
+ function cloneDataView(dataView, isDeep) {
4439
+ var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
4440
+ return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
4441
+ }
4442
+
4443
+ _cloneDataView = cloneDataView;
4444
+ return _cloneDataView;
4445
+ }
4446
+
4447
+ /** Used to match `RegExp` flags from their coerced string values. */
4448
+
4449
+ var _cloneRegExp;
4450
+ var hasRequired_cloneRegExp;
4451
+
4452
+ function require_cloneRegExp () {
4453
+ if (hasRequired_cloneRegExp) return _cloneRegExp;
4454
+ hasRequired_cloneRegExp = 1;
4455
+ var reFlags = /\w*$/;
4456
+
4457
+ /**
4458
+ * Creates a clone of `regexp`.
4459
+ *
4460
+ * @private
4461
+ * @param {Object} regexp The regexp to clone.
4462
+ * @returns {Object} Returns the cloned regexp.
4463
+ */
4464
+ function cloneRegExp(regexp) {
4465
+ var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
4466
+ result.lastIndex = regexp.lastIndex;
4467
+ return result;
4468
+ }
4469
+
4470
+ _cloneRegExp = cloneRegExp;
4471
+ return _cloneRegExp;
4472
+ }
4473
+
4474
+ var _cloneSymbol;
4475
+ var hasRequired_cloneSymbol;
4476
+
4477
+ function require_cloneSymbol () {
4478
+ if (hasRequired_cloneSymbol) return _cloneSymbol;
4479
+ hasRequired_cloneSymbol = 1;
4480
+ var Symbol = require_Symbol();
4481
+
4482
+ /** Used to convert symbols to primitives and strings. */
4483
+ var symbolProto = Symbol ? Symbol.prototype : undefined,
4484
+ symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
4485
+
4486
+ /**
4487
+ * Creates a clone of the `symbol` object.
4488
+ *
4489
+ * @private
4490
+ * @param {Object} symbol The symbol object to clone.
4491
+ * @returns {Object} Returns the cloned symbol object.
4492
+ */
4493
+ function cloneSymbol(symbol) {
4494
+ return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
4495
+ }
4496
+
4497
+ _cloneSymbol = cloneSymbol;
4498
+ return _cloneSymbol;
4499
+ }
4500
+
4501
+ var _cloneTypedArray;
4502
+ var hasRequired_cloneTypedArray;
4503
+
4504
+ function require_cloneTypedArray () {
4505
+ if (hasRequired_cloneTypedArray) return _cloneTypedArray;
4506
+ hasRequired_cloneTypedArray = 1;
4507
+ var cloneArrayBuffer = require_cloneArrayBuffer();
4508
+
4509
+ /**
4510
+ * Creates a clone of `typedArray`.
4511
+ *
4512
+ * @private
4513
+ * @param {Object} typedArray The typed array to clone.
4514
+ * @param {boolean} [isDeep] Specify a deep clone.
4515
+ * @returns {Object} Returns the cloned typed array.
4516
+ */
4517
+ function cloneTypedArray(typedArray, isDeep) {
4518
+ var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
4519
+ return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
4520
+ }
4521
+
4522
+ _cloneTypedArray = cloneTypedArray;
4523
+ return _cloneTypedArray;
4524
+ }
4525
+
4526
+ var _initCloneByTag;
4527
+ var hasRequired_initCloneByTag;
4528
+
4529
+ function require_initCloneByTag () {
4530
+ if (hasRequired_initCloneByTag) return _initCloneByTag;
4531
+ hasRequired_initCloneByTag = 1;
4532
+ var cloneArrayBuffer = require_cloneArrayBuffer(),
4533
+ cloneDataView = require_cloneDataView(),
4534
+ cloneRegExp = require_cloneRegExp(),
4535
+ cloneSymbol = require_cloneSymbol(),
4536
+ cloneTypedArray = require_cloneTypedArray();
4537
+
4538
+ /** `Object#toString` result references. */
4539
+ var boolTag = '[object Boolean]',
4540
+ dateTag = '[object Date]',
4541
+ mapTag = '[object Map]',
4542
+ numberTag = '[object Number]',
4543
+ regexpTag = '[object RegExp]',
4544
+ setTag = '[object Set]',
4545
+ stringTag = '[object String]',
4546
+ symbolTag = '[object Symbol]';
4547
+
4548
+ var arrayBufferTag = '[object ArrayBuffer]',
4549
+ dataViewTag = '[object DataView]',
4550
+ float32Tag = '[object Float32Array]',
4551
+ float64Tag = '[object Float64Array]',
4552
+ int8Tag = '[object Int8Array]',
4553
+ int16Tag = '[object Int16Array]',
4554
+ int32Tag = '[object Int32Array]',
4555
+ uint8Tag = '[object Uint8Array]',
4556
+ uint8ClampedTag = '[object Uint8ClampedArray]',
4557
+ uint16Tag = '[object Uint16Array]',
4558
+ uint32Tag = '[object Uint32Array]';
4559
+
4560
+ /**
4561
+ * Initializes an object clone based on its `toStringTag`.
4562
+ *
4563
+ * **Note:** This function only supports cloning values with tags of
4564
+ * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
4565
+ *
4566
+ * @private
4567
+ * @param {Object} object The object to clone.
4568
+ * @param {string} tag The `toStringTag` of the object to clone.
4569
+ * @param {boolean} [isDeep] Specify a deep clone.
4570
+ * @returns {Object} Returns the initialized clone.
4571
+ */
4572
+ function initCloneByTag(object, tag, isDeep) {
4573
+ var Ctor = object.constructor;
4574
+ switch (tag) {
4575
+ case arrayBufferTag:
4576
+ return cloneArrayBuffer(object);
4577
+
4578
+ case boolTag:
4579
+ case dateTag:
4580
+ return new Ctor(+object);
4581
+
4582
+ case dataViewTag:
4583
+ return cloneDataView(object, isDeep);
4584
+
4585
+ case float32Tag: case float64Tag:
4586
+ case int8Tag: case int16Tag: case int32Tag:
4587
+ case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
4588
+ return cloneTypedArray(object, isDeep);
4589
+
4590
+ case mapTag:
4591
+ return new Ctor;
4592
+
4593
+ case numberTag:
4594
+ case stringTag:
4595
+ return new Ctor(object);
4596
+
4597
+ case regexpTag:
4598
+ return cloneRegExp(object);
4599
+
4600
+ case setTag:
4601
+ return new Ctor;
4602
+
4603
+ case symbolTag:
4604
+ return cloneSymbol(object);
4605
+ }
4606
+ }
4607
+
4608
+ _initCloneByTag = initCloneByTag;
4609
+ return _initCloneByTag;
4610
+ }
4611
+
4612
+ var _baseCreate;
4613
+ var hasRequired_baseCreate;
4614
+
4615
+ function require_baseCreate () {
4616
+ if (hasRequired_baseCreate) return _baseCreate;
4617
+ hasRequired_baseCreate = 1;
4618
+ var isObject = requireIsObject();
4619
+
4620
+ /** Built-in value references. */
4621
+ var objectCreate = Object.create;
4622
+
4623
+ /**
4624
+ * The base implementation of `_.create` without support for assigning
4625
+ * properties to the created object.
4626
+ *
4627
+ * @private
4628
+ * @param {Object} proto The object to inherit from.
4629
+ * @returns {Object} Returns the new object.
4630
+ */
4631
+ var baseCreate = (function() {
4632
+ function object() {}
4633
+ return function(proto) {
4634
+ if (!isObject(proto)) {
4635
+ return {};
4636
+ }
4637
+ if (objectCreate) {
4638
+ return objectCreate(proto);
4639
+ }
4640
+ object.prototype = proto;
4641
+ var result = new object;
4642
+ object.prototype = undefined;
4643
+ return result;
4644
+ };
4645
+ }());
4646
+
4647
+ _baseCreate = baseCreate;
4648
+ return _baseCreate;
4649
+ }
4650
+
4651
+ var _initCloneObject;
4652
+ var hasRequired_initCloneObject;
4653
+
4654
+ function require_initCloneObject () {
4655
+ if (hasRequired_initCloneObject) return _initCloneObject;
4656
+ hasRequired_initCloneObject = 1;
4657
+ var baseCreate = require_baseCreate(),
4658
+ getPrototype = require_getPrototype(),
4659
+ isPrototype = require_isPrototype();
4660
+
4661
+ /**
4662
+ * Initializes an object clone.
4663
+ *
4664
+ * @private
4665
+ * @param {Object} object The object to clone.
4666
+ * @returns {Object} Returns the initialized clone.
4667
+ */
4668
+ function initCloneObject(object) {
4669
+ return (typeof object.constructor == 'function' && !isPrototype(object))
4670
+ ? baseCreate(getPrototype(object))
4671
+ : {};
4672
+ }
4673
+
4674
+ _initCloneObject = initCloneObject;
4675
+ return _initCloneObject;
4676
+ }
4677
+
4678
+ var _baseIsMap;
4679
+ var hasRequired_baseIsMap;
4680
+
4681
+ function require_baseIsMap () {
4682
+ if (hasRequired_baseIsMap) return _baseIsMap;
4683
+ hasRequired_baseIsMap = 1;
4684
+ var getTag = require_getTag(),
4685
+ isObjectLike = requireIsObjectLike();
4686
+
4687
+ /** `Object#toString` result references. */
4688
+ var mapTag = '[object Map]';
4689
+
4690
+ /**
4691
+ * The base implementation of `_.isMap` without Node.js optimizations.
4692
+ *
4693
+ * @private
4694
+ * @param {*} value The value to check.
4695
+ * @returns {boolean} Returns `true` if `value` is a map, else `false`.
4696
+ */
4697
+ function baseIsMap(value) {
4698
+ return isObjectLike(value) && getTag(value) == mapTag;
4699
+ }
4700
+
4701
+ _baseIsMap = baseIsMap;
4702
+ return _baseIsMap;
4703
+ }
4704
+
4705
+ var isMap_1;
4706
+ var hasRequiredIsMap;
4707
+
4708
+ function requireIsMap () {
4709
+ if (hasRequiredIsMap) return isMap_1;
4710
+ hasRequiredIsMap = 1;
4711
+ var baseIsMap = require_baseIsMap(),
4712
+ baseUnary = require_baseUnary(),
4713
+ nodeUtil = require_nodeUtil();
4714
+
4715
+ /* Node.js helper references. */
4716
+ var nodeIsMap = nodeUtil && nodeUtil.isMap;
4717
+
4718
+ /**
4719
+ * Checks if `value` is classified as a `Map` object.
4720
+ *
4721
+ * @static
4722
+ * @memberOf _
4723
+ * @since 4.3.0
4724
+ * @category Lang
4725
+ * @param {*} value The value to check.
4726
+ * @returns {boolean} Returns `true` if `value` is a map, else `false`.
4727
+ * @example
4728
+ *
4729
+ * _.isMap(new Map);
4730
+ * // => true
4731
+ *
4732
+ * _.isMap(new WeakMap);
4733
+ * // => false
4734
+ */
4735
+ var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
4736
+
4737
+ isMap_1 = isMap;
4738
+ return isMap_1;
4739
+ }
4740
+
4741
+ var _baseIsSet;
4742
+ var hasRequired_baseIsSet;
4743
+
4744
+ function require_baseIsSet () {
4745
+ if (hasRequired_baseIsSet) return _baseIsSet;
4746
+ hasRequired_baseIsSet = 1;
4747
+ var getTag = require_getTag(),
4748
+ isObjectLike = requireIsObjectLike();
4749
+
4750
+ /** `Object#toString` result references. */
4751
+ var setTag = '[object Set]';
4752
+
4753
+ /**
4754
+ * The base implementation of `_.isSet` without Node.js optimizations.
4755
+ *
4756
+ * @private
4757
+ * @param {*} value The value to check.
4758
+ * @returns {boolean} Returns `true` if `value` is a set, else `false`.
4759
+ */
4760
+ function baseIsSet(value) {
4761
+ return isObjectLike(value) && getTag(value) == setTag;
4762
+ }
4763
+
4764
+ _baseIsSet = baseIsSet;
4765
+ return _baseIsSet;
4766
+ }
4767
+
4768
+ var isSet_1;
4769
+ var hasRequiredIsSet;
4770
+
4771
+ function requireIsSet () {
4772
+ if (hasRequiredIsSet) return isSet_1;
4773
+ hasRequiredIsSet = 1;
4774
+ var baseIsSet = require_baseIsSet(),
4775
+ baseUnary = require_baseUnary(),
4776
+ nodeUtil = require_nodeUtil();
4777
+
4778
+ /* Node.js helper references. */
4779
+ var nodeIsSet = nodeUtil && nodeUtil.isSet;
4780
+
4781
+ /**
4782
+ * Checks if `value` is classified as a `Set` object.
4783
+ *
4784
+ * @static
4785
+ * @memberOf _
4786
+ * @since 4.3.0
4787
+ * @category Lang
4788
+ * @param {*} value The value to check.
4789
+ * @returns {boolean} Returns `true` if `value` is a set, else `false`.
4790
+ * @example
4791
+ *
4792
+ * _.isSet(new Set);
4793
+ * // => true
4794
+ *
4795
+ * _.isSet(new WeakSet);
4796
+ * // => false
4797
+ */
4798
+ var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
4799
+
4800
+ isSet_1 = isSet;
4801
+ return isSet_1;
4802
+ }
4803
+
4804
+ var _baseClone;
4805
+ var hasRequired_baseClone;
4806
+
4807
+ function require_baseClone () {
4808
+ if (hasRequired_baseClone) return _baseClone;
4809
+ hasRequired_baseClone = 1;
4810
+ var Stack = require_Stack(),
4811
+ arrayEach = require_arrayEach(),
4812
+ assignValue = require_assignValue(),
4813
+ baseAssign = require_baseAssign(),
4814
+ baseAssignIn = require_baseAssignIn(),
4815
+ cloneBuffer = require_cloneBuffer(),
4816
+ copyArray = require_copyArray(),
4817
+ copySymbols = require_copySymbols(),
4818
+ copySymbolsIn = require_copySymbolsIn(),
4819
+ getAllKeys = require_getAllKeys(),
4820
+ getAllKeysIn = require_getAllKeysIn(),
4821
+ getTag = require_getTag(),
4822
+ initCloneArray = require_initCloneArray(),
4823
+ initCloneByTag = require_initCloneByTag(),
4824
+ initCloneObject = require_initCloneObject(),
4825
+ isArray = requireIsArray(),
4826
+ isBuffer = requireIsBuffer(),
4827
+ isMap = requireIsMap(),
4828
+ isObject = requireIsObject(),
4829
+ isSet = requireIsSet(),
4830
+ keys = requireKeys(),
4831
+ keysIn = requireKeysIn();
4832
+
4833
+ /** Used to compose bitmasks for cloning. */
4834
+ var CLONE_DEEP_FLAG = 1,
4835
+ CLONE_FLAT_FLAG = 2,
4836
+ CLONE_SYMBOLS_FLAG = 4;
4837
+
4838
+ /** `Object#toString` result references. */
4839
+ var argsTag = '[object Arguments]',
4840
+ arrayTag = '[object Array]',
4841
+ boolTag = '[object Boolean]',
4842
+ dateTag = '[object Date]',
4843
+ errorTag = '[object Error]',
4844
+ funcTag = '[object Function]',
4845
+ genTag = '[object GeneratorFunction]',
4846
+ mapTag = '[object Map]',
4847
+ numberTag = '[object Number]',
4848
+ objectTag = '[object Object]',
4849
+ regexpTag = '[object RegExp]',
4850
+ setTag = '[object Set]',
4851
+ stringTag = '[object String]',
4852
+ symbolTag = '[object Symbol]',
4853
+ weakMapTag = '[object WeakMap]';
4854
+
4855
+ var arrayBufferTag = '[object ArrayBuffer]',
4856
+ dataViewTag = '[object DataView]',
4857
+ float32Tag = '[object Float32Array]',
4858
+ float64Tag = '[object Float64Array]',
4859
+ int8Tag = '[object Int8Array]',
4860
+ int16Tag = '[object Int16Array]',
4861
+ int32Tag = '[object Int32Array]',
4862
+ uint8Tag = '[object Uint8Array]',
4863
+ uint8ClampedTag = '[object Uint8ClampedArray]',
4864
+ uint16Tag = '[object Uint16Array]',
4865
+ uint32Tag = '[object Uint32Array]';
4866
+
4867
+ /** Used to identify `toStringTag` values supported by `_.clone`. */
4868
+ var cloneableTags = {};
4869
+ cloneableTags[argsTag] = cloneableTags[arrayTag] =
4870
+ cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
4871
+ cloneableTags[boolTag] = cloneableTags[dateTag] =
4872
+ cloneableTags[float32Tag] = cloneableTags[float64Tag] =
4873
+ cloneableTags[int8Tag] = cloneableTags[int16Tag] =
4874
+ cloneableTags[int32Tag] = cloneableTags[mapTag] =
4875
+ cloneableTags[numberTag] = cloneableTags[objectTag] =
4876
+ cloneableTags[regexpTag] = cloneableTags[setTag] =
4877
+ cloneableTags[stringTag] = cloneableTags[symbolTag] =
4878
+ cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
4879
+ cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
4880
+ cloneableTags[errorTag] = cloneableTags[funcTag] =
4881
+ cloneableTags[weakMapTag] = false;
4882
+
4883
+ /**
4884
+ * The base implementation of `_.clone` and `_.cloneDeep` which tracks
4885
+ * traversed objects.
4886
+ *
4887
+ * @private
4888
+ * @param {*} value The value to clone.
4889
+ * @param {boolean} bitmask The bitmask flags.
4890
+ * 1 - Deep clone
4891
+ * 2 - Flatten inherited properties
4892
+ * 4 - Clone symbols
4893
+ * @param {Function} [customizer] The function to customize cloning.
4894
+ * @param {string} [key] The key of `value`.
4895
+ * @param {Object} [object] The parent object of `value`.
4896
+ * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
4897
+ * @returns {*} Returns the cloned value.
4898
+ */
4899
+ function baseClone(value, bitmask, customizer, key, object, stack) {
4900
+ var result,
4901
+ isDeep = bitmask & CLONE_DEEP_FLAG,
4902
+ isFlat = bitmask & CLONE_FLAT_FLAG,
4903
+ isFull = bitmask & CLONE_SYMBOLS_FLAG;
4904
+
4905
+ if (customizer) {
4906
+ result = object ? customizer(value, key, object, stack) : customizer(value);
4907
+ }
4908
+ if (result !== undefined) {
4909
+ return result;
4910
+ }
4911
+ if (!isObject(value)) {
4912
+ return value;
4913
+ }
4914
+ var isArr = isArray(value);
4915
+ if (isArr) {
4916
+ result = initCloneArray(value);
4917
+ if (!isDeep) {
4918
+ return copyArray(value, result);
4919
+ }
4920
+ } else {
4921
+ var tag = getTag(value),
4922
+ isFunc = tag == funcTag || tag == genTag;
4923
+
4924
+ if (isBuffer(value)) {
4925
+ return cloneBuffer(value, isDeep);
4926
+ }
4927
+ if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
4928
+ result = (isFlat || isFunc) ? {} : initCloneObject(value);
4929
+ if (!isDeep) {
4930
+ return isFlat
4931
+ ? copySymbolsIn(value, baseAssignIn(result, value))
4932
+ : copySymbols(value, baseAssign(result, value));
4933
+ }
4934
+ } else {
4935
+ if (!cloneableTags[tag]) {
4936
+ return object ? value : {};
4937
+ }
4938
+ result = initCloneByTag(value, tag, isDeep);
4939
+ }
4940
+ }
4941
+ // Check for circular references and return its corresponding clone.
4942
+ stack || (stack = new Stack);
4943
+ var stacked = stack.get(value);
4944
+ if (stacked) {
4945
+ return stacked;
4946
+ }
4947
+ stack.set(value, result);
4948
+
4949
+ if (isSet(value)) {
4950
+ value.forEach(function(subValue) {
4951
+ result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
4952
+ });
4953
+ } else if (isMap(value)) {
4954
+ value.forEach(function(subValue, key) {
4955
+ result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
4956
+ });
4957
+ }
4958
+
4959
+ var keysFunc = isFull
4960
+ ? (isFlat ? getAllKeysIn : getAllKeys)
4961
+ : (isFlat ? keysIn : keys);
4962
+
4963
+ var props = isArr ? undefined : keysFunc(value);
4964
+ arrayEach(props || value, function(subValue, key) {
4965
+ if (props) {
4966
+ key = subValue;
4967
+ subValue = value[key];
4968
+ }
4969
+ // Recursively populate clone (susceptible to call stack limits).
4970
+ assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
4971
+ });
4972
+ return result;
4973
+ }
4974
+
4975
+ _baseClone = baseClone;
4976
+ return _baseClone;
4977
+ }
4978
+
4979
+ var cloneDeep_1;
4980
+ var hasRequiredCloneDeep;
4981
+
4982
+ function requireCloneDeep () {
4983
+ if (hasRequiredCloneDeep) return cloneDeep_1;
4984
+ hasRequiredCloneDeep = 1;
4985
+ var baseClone = require_baseClone();
4986
+
4987
+ /** Used to compose bitmasks for cloning. */
4988
+ var CLONE_DEEP_FLAG = 1,
4989
+ CLONE_SYMBOLS_FLAG = 4;
4990
+
4991
+ /**
4992
+ * This method is like `_.clone` except that it recursively clones `value`.
4993
+ *
4994
+ * @static
4995
+ * @memberOf _
4996
+ * @since 1.0.0
4997
+ * @category Lang
4998
+ * @param {*} value The value to recursively clone.
4999
+ * @returns {*} Returns the deep cloned value.
5000
+ * @see _.clone
5001
+ * @example
5002
+ *
5003
+ * var objects = [{ 'a': 1 }, { 'b': 2 }];
5004
+ *
5005
+ * var deep = _.cloneDeep(objects);
5006
+ * console.log(deep[0] === objects[0]);
5007
+ * // => false
5008
+ */
5009
+ function cloneDeep(value) {
5010
+ return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
5011
+ }
5012
+
5013
+ cloneDeep_1 = cloneDeep;
5014
+ return cloneDeep_1;
5015
+ }
5016
+
5017
+ var cloneDeepExports = requireCloneDeep();
5018
+ var cloneDeep = /*@__PURE__*/getDefaultExportFromCjs(cloneDeepExports);
5019
+
51
5020
  /**
52
5021
  * Location properties.
53
5022
  * @typedef {LocationProperties}
@@ -245,7 +5214,7 @@ const i18n = createInstance({
245
5214
  i18n.init();
246
5215
 
247
5216
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
248
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5217
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
249
5218
  const TOGGLE_DEBOUNCE_MS = 200;
250
5219
  const LIST_BOTTOM_MARGIN = 16;
251
5220
  const MIN_LIST_HEIGHT = 120;