@daoyi/nmtl-ui 2.0.1-beta.7 → 2.0.1-beta.71

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