@mjhls/mjh-framework 1.0.203 → 1.0.205

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 (74) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD-e2479b7c.js +31 -0
  3. package/dist/cjs/DeckContent.js +430 -0
  4. package/dist/cjs/DeckQueue.js +366 -0
  5. package/dist/cjs/Dfp-d94f7f73.js +97 -0
  6. package/dist/cjs/GridContent.js +613 -0
  7. package/dist/cjs/GroupDeck.js +156 -0
  8. package/dist/cjs/IssueContentDeck.js +81 -0
  9. package/dist/cjs/IssueDeck.js +144 -0
  10. package/dist/cjs/MasterDeck.js +340 -0
  11. package/dist/cjs/Normal-7dd8c339.js +2374 -0
  12. package/dist/cjs/PublicationDeck.js +81 -0
  13. package/dist/cjs/QueueDeckExpanded.js +559 -0
  14. package/dist/cjs/TaxonomyCard-7b5b4298.js +1045 -0
  15. package/dist/cjs/TaxonomyCard.js +18 -0
  16. package/dist/cjs/TemplateNormal.js +29 -0
  17. package/dist/cjs/ThumbnailCard.js +58 -0
  18. package/dist/cjs/Ustream-0d3dd953.js +122 -0
  19. package/dist/cjs/Ustream.js +10 -0
  20. package/dist/cjs/VideoSeriesListing.js +248 -0
  21. package/dist/cjs/YoutubeGroup-f7707ceb.js +228 -0
  22. package/dist/cjs/YoutubeGroup.js +13 -0
  23. package/dist/cjs/_babelHelpers-f321c258.js +119 -0
  24. package/dist/cjs/_commonjsHelpers-3fc1f64e.js +20 -0
  25. package/dist/cjs/debounce-286eb3fb.js +279 -0
  26. package/dist/cjs/entities-3e0b4a16.js +506 -0
  27. package/dist/cjs/get-06aac51b.js +992 -0
  28. package/dist/cjs/index-0d0efcfa.js +610 -0
  29. package/dist/cjs/index-a4c53ff4.js +551 -0
  30. package/dist/cjs/index.es-2289df51.js +5028 -0
  31. package/dist/cjs/index.esm-340d3792.js +113 -0
  32. package/dist/cjs/index.js +12044 -0
  33. package/dist/cjs/isSymbol-311eb805.js +209 -0
  34. package/dist/cjs/main-58839f4e.js +858 -0
  35. package/dist/cjs/visibility-sensor-5c5a7302.js +2251 -0
  36. package/dist/esm/AD-1b2a3dd3.js +26 -0
  37. package/dist/esm/DeckContent.js +424 -0
  38. package/dist/esm/DeckQueue.js +360 -0
  39. package/dist/esm/Dfp-ab7941d3.js +92 -0
  40. package/dist/esm/GridContent.js +607 -0
  41. package/dist/esm/GroupDeck.js +151 -0
  42. package/dist/esm/IssueContentDeck.js +76 -0
  43. package/dist/esm/IssueDeck.js +139 -0
  44. package/dist/esm/MasterDeck.js +334 -0
  45. package/dist/esm/Normal-403c5666.js +2354 -0
  46. package/dist/esm/PublicationDeck.js +76 -0
  47. package/dist/esm/QueueDeckExpanded.js +553 -0
  48. package/dist/esm/TaxonomyCard-f9c93953.js +1039 -0
  49. package/dist/esm/TaxonomyCard.js +12 -0
  50. package/dist/esm/TemplateNormal.js +23 -0
  51. package/dist/esm/ThumbnailCard.js +53 -0
  52. package/dist/esm/Ustream-6bb45fe7.js +116 -0
  53. package/dist/esm/Ustream.js +4 -0
  54. package/dist/esm/VideoSeriesListing.js +242 -0
  55. package/dist/esm/YoutubeGroup-06df4923.js +222 -0
  56. package/dist/esm/YoutubeGroup.js +7 -0
  57. package/dist/esm/_babelHelpers-67c05996.js +111 -0
  58. package/dist/esm/_commonjsHelpers-ae1b5db5.js +15 -0
  59. package/dist/esm/debounce-a0242b4a.js +277 -0
  60. package/dist/esm/entities-e85d3a4a.js +503 -0
  61. package/dist/esm/get-b684ff61.js +990 -0
  62. package/dist/esm/index-3c1ee9ab.js +605 -0
  63. package/dist/esm/index-ca4ff5cb.js +548 -0
  64. package/dist/esm/index.es-f369b3e8.js +5022 -0
  65. package/dist/esm/index.esm-536609db.js +103 -0
  66. package/dist/esm/index.js +11991 -0
  67. package/dist/esm/isSymbol-c2b7d05a.js +203 -0
  68. package/dist/esm/main-dea495b7.js +851 -0
  69. package/dist/esm/visibility-sensor-3cfe6713.js +2243 -0
  70. package/package.json +8 -7
  71. package/dist/index.es.js +0 -30213
  72. package/dist/index.es.js.map +0 -1
  73. package/dist/index.js +0 -30271
  74. package/dist/index.js.map +0 -1
@@ -0,0 +1,990 @@
1
+ import { i as isSymbol_1, a as isObject_1, b as _baseGetTag, _ as _root, c as _Symbol } from './isSymbol-c2b7d05a.js';
2
+
3
+ /**
4
+ * Checks if `value` is classified as an `Array` object.
5
+ *
6
+ * @static
7
+ * @memberOf _
8
+ * @since 0.1.0
9
+ * @category Lang
10
+ * @param {*} value The value to check.
11
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
12
+ * @example
13
+ *
14
+ * _.isArray([1, 2, 3]);
15
+ * // => true
16
+ *
17
+ * _.isArray(document.body.children);
18
+ * // => false
19
+ *
20
+ * _.isArray('abc');
21
+ * // => false
22
+ *
23
+ * _.isArray(_.noop);
24
+ * // => false
25
+ */
26
+ var isArray = Array.isArray;
27
+
28
+ var isArray_1 = isArray;
29
+
30
+ /** Used to match property names within property paths. */
31
+ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
32
+ reIsPlainProp = /^\w*$/;
33
+
34
+ /**
35
+ * Checks if `value` is a property name and not a property path.
36
+ *
37
+ * @private
38
+ * @param {*} value The value to check.
39
+ * @param {Object} [object] The object to query keys on.
40
+ * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
41
+ */
42
+ function isKey(value, object) {
43
+ if (isArray_1(value)) {
44
+ return false;
45
+ }
46
+ var type = typeof value;
47
+ if (type == 'number' || type == 'symbol' || type == 'boolean' ||
48
+ value == null || isSymbol_1(value)) {
49
+ return true;
50
+ }
51
+ return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
52
+ (object != null && value in Object(object));
53
+ }
54
+
55
+ var _isKey = isKey;
56
+
57
+ /** `Object#toString` result references. */
58
+ var asyncTag = '[object AsyncFunction]',
59
+ funcTag = '[object Function]',
60
+ genTag = '[object GeneratorFunction]',
61
+ proxyTag = '[object Proxy]';
62
+
63
+ /**
64
+ * Checks if `value` is classified as a `Function` object.
65
+ *
66
+ * @static
67
+ * @memberOf _
68
+ * @since 0.1.0
69
+ * @category Lang
70
+ * @param {*} value The value to check.
71
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
72
+ * @example
73
+ *
74
+ * _.isFunction(_);
75
+ * // => true
76
+ *
77
+ * _.isFunction(/abc/);
78
+ * // => false
79
+ */
80
+ function isFunction(value) {
81
+ if (!isObject_1(value)) {
82
+ return false;
83
+ }
84
+ // The use of `Object#toString` avoids issues with the `typeof` operator
85
+ // in Safari 9 which returns 'object' for typed arrays and other constructors.
86
+ var tag = _baseGetTag(value);
87
+ return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
88
+ }
89
+
90
+ var isFunction_1 = isFunction;
91
+
92
+ /** Used to detect overreaching core-js shims. */
93
+ var coreJsData = _root['__core-js_shared__'];
94
+
95
+ var _coreJsData = coreJsData;
96
+
97
+ /** Used to detect methods masquerading as native. */
98
+ var maskSrcKey = (function() {
99
+ var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
100
+ return uid ? ('Symbol(src)_1.' + uid) : '';
101
+ }());
102
+
103
+ /**
104
+ * Checks if `func` has its source masked.
105
+ *
106
+ * @private
107
+ * @param {Function} func The function to check.
108
+ * @returns {boolean} Returns `true` if `func` is masked, else `false`.
109
+ */
110
+ function isMasked(func) {
111
+ return !!maskSrcKey && (maskSrcKey in func);
112
+ }
113
+
114
+ var _isMasked = isMasked;
115
+
116
+ /** Used for built-in method references. */
117
+ var funcProto = Function.prototype;
118
+
119
+ /** Used to resolve the decompiled source of functions. */
120
+ var funcToString = funcProto.toString;
121
+
122
+ /**
123
+ * Converts `func` to its source code.
124
+ *
125
+ * @private
126
+ * @param {Function} func The function to convert.
127
+ * @returns {string} Returns the source code.
128
+ */
129
+ function toSource(func) {
130
+ if (func != null) {
131
+ try {
132
+ return funcToString.call(func);
133
+ } catch (e) {}
134
+ try {
135
+ return (func + '');
136
+ } catch (e) {}
137
+ }
138
+ return '';
139
+ }
140
+
141
+ var _toSource = toSource;
142
+
143
+ /**
144
+ * Used to match `RegExp`
145
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
146
+ */
147
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
148
+
149
+ /** Used to detect host constructors (Safari). */
150
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
151
+
152
+ /** Used for built-in method references. */
153
+ var funcProto$1 = Function.prototype,
154
+ objectProto = Object.prototype;
155
+
156
+ /** Used to resolve the decompiled source of functions. */
157
+ var funcToString$1 = funcProto$1.toString;
158
+
159
+ /** Used to check objects for own properties. */
160
+ var hasOwnProperty = objectProto.hasOwnProperty;
161
+
162
+ /** Used to detect if a method is native. */
163
+ var reIsNative = RegExp('^' +
164
+ funcToString$1.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
165
+ .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
166
+ );
167
+
168
+ /**
169
+ * The base implementation of `_.isNative` without bad shim checks.
170
+ *
171
+ * @private
172
+ * @param {*} value The value to check.
173
+ * @returns {boolean} Returns `true` if `value` is a native function,
174
+ * else `false`.
175
+ */
176
+ function baseIsNative(value) {
177
+ if (!isObject_1(value) || _isMasked(value)) {
178
+ return false;
179
+ }
180
+ var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
181
+ return pattern.test(_toSource(value));
182
+ }
183
+
184
+ var _baseIsNative = baseIsNative;
185
+
186
+ /**
187
+ * Gets the value at `key` of `object`.
188
+ *
189
+ * @private
190
+ * @param {Object} [object] The object to query.
191
+ * @param {string} key The key of the property to get.
192
+ * @returns {*} Returns the property value.
193
+ */
194
+ function getValue(object, key) {
195
+ return object == null ? undefined : object[key];
196
+ }
197
+
198
+ var _getValue = getValue;
199
+
200
+ /**
201
+ * Gets the native function at `key` of `object`.
202
+ *
203
+ * @private
204
+ * @param {Object} object The object to query.
205
+ * @param {string} key The key of the method to get.
206
+ * @returns {*} Returns the function if it's native, else `undefined`.
207
+ */
208
+ function getNative(object, key) {
209
+ var value = _getValue(object, key);
210
+ return _baseIsNative(value) ? value : undefined;
211
+ }
212
+
213
+ var _getNative = getNative;
214
+
215
+ /* Built-in method references that are verified to be native. */
216
+ var nativeCreate = _getNative(Object, 'create');
217
+
218
+ var _nativeCreate = nativeCreate;
219
+
220
+ /**
221
+ * Removes all key-value entries from the hash.
222
+ *
223
+ * @private
224
+ * @name clear
225
+ * @memberOf Hash
226
+ */
227
+ function hashClear() {
228
+ this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
229
+ this.size = 0;
230
+ }
231
+
232
+ var _hashClear = hashClear;
233
+
234
+ /**
235
+ * Removes `key` and its value from the hash.
236
+ *
237
+ * @private
238
+ * @name delete
239
+ * @memberOf Hash
240
+ * @param {Object} hash The hash to modify.
241
+ * @param {string} key The key of the value to remove.
242
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
243
+ */
244
+ function hashDelete(key) {
245
+ var result = this.has(key) && delete this.__data__[key];
246
+ this.size -= result ? 1 : 0;
247
+ return result;
248
+ }
249
+
250
+ var _hashDelete = hashDelete;
251
+
252
+ /** Used to stand-in for `undefined` hash values. */
253
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
254
+
255
+ /** Used for built-in method references. */
256
+ var objectProto$1 = Object.prototype;
257
+
258
+ /** Used to check objects for own properties. */
259
+ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
260
+
261
+ /**
262
+ * Gets the hash value for `key`.
263
+ *
264
+ * @private
265
+ * @name get
266
+ * @memberOf Hash
267
+ * @param {string} key The key of the value to get.
268
+ * @returns {*} Returns the entry value.
269
+ */
270
+ function hashGet(key) {
271
+ var data = this.__data__;
272
+ if (_nativeCreate) {
273
+ var result = data[key];
274
+ return result === HASH_UNDEFINED ? undefined : result;
275
+ }
276
+ return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
277
+ }
278
+
279
+ var _hashGet = hashGet;
280
+
281
+ /** Used for built-in method references. */
282
+ var objectProto$2 = Object.prototype;
283
+
284
+ /** Used to check objects for own properties. */
285
+ var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
286
+
287
+ /**
288
+ * Checks if a hash value for `key` exists.
289
+ *
290
+ * @private
291
+ * @name has
292
+ * @memberOf Hash
293
+ * @param {string} key The key of the entry to check.
294
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
295
+ */
296
+ function hashHas(key) {
297
+ var data = this.__data__;
298
+ return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$2.call(data, key);
299
+ }
300
+
301
+ var _hashHas = hashHas;
302
+
303
+ /** Used to stand-in for `undefined` hash values. */
304
+ var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
305
+
306
+ /**
307
+ * Sets the hash `key` to `value`.
308
+ *
309
+ * @private
310
+ * @name set
311
+ * @memberOf Hash
312
+ * @param {string} key The key of the value to set.
313
+ * @param {*} value The value to set.
314
+ * @returns {Object} Returns the hash instance.
315
+ */
316
+ function hashSet(key, value) {
317
+ var data = this.__data__;
318
+ this.size += this.has(key) ? 0 : 1;
319
+ data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED$1 : value;
320
+ return this;
321
+ }
322
+
323
+ var _hashSet = hashSet;
324
+
325
+ /**
326
+ * Creates a hash object.
327
+ *
328
+ * @private
329
+ * @constructor
330
+ * @param {Array} [entries] The key-value pairs to cache.
331
+ */
332
+ function Hash(entries) {
333
+ var index = -1,
334
+ length = entries == null ? 0 : entries.length;
335
+
336
+ this.clear();
337
+ while (++index < length) {
338
+ var entry = entries[index];
339
+ this.set(entry[0], entry[1]);
340
+ }
341
+ }
342
+
343
+ // Add methods to `Hash`.
344
+ Hash.prototype.clear = _hashClear;
345
+ Hash.prototype['delete'] = _hashDelete;
346
+ Hash.prototype.get = _hashGet;
347
+ Hash.prototype.has = _hashHas;
348
+ Hash.prototype.set = _hashSet;
349
+
350
+ var _Hash = Hash;
351
+
352
+ /**
353
+ * Removes all key-value entries from the list cache.
354
+ *
355
+ * @private
356
+ * @name clear
357
+ * @memberOf ListCache
358
+ */
359
+ function listCacheClear() {
360
+ this.__data__ = [];
361
+ this.size = 0;
362
+ }
363
+
364
+ var _listCacheClear = listCacheClear;
365
+
366
+ /**
367
+ * Performs a
368
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
369
+ * comparison between two values to determine if they are equivalent.
370
+ *
371
+ * @static
372
+ * @memberOf _
373
+ * @since 4.0.0
374
+ * @category Lang
375
+ * @param {*} value The value to compare.
376
+ * @param {*} other The other value to compare.
377
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
378
+ * @example
379
+ *
380
+ * var object = { 'a': 1 };
381
+ * var other = { 'a': 1 };
382
+ *
383
+ * _.eq(object, object);
384
+ * // => true
385
+ *
386
+ * _.eq(object, other);
387
+ * // => false
388
+ *
389
+ * _.eq('a', 'a');
390
+ * // => true
391
+ *
392
+ * _.eq('a', Object('a'));
393
+ * // => false
394
+ *
395
+ * _.eq(NaN, NaN);
396
+ * // => true
397
+ */
398
+ function eq(value, other) {
399
+ return value === other || (value !== value && other !== other);
400
+ }
401
+
402
+ var eq_1 = eq;
403
+
404
+ /**
405
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
406
+ *
407
+ * @private
408
+ * @param {Array} array The array to inspect.
409
+ * @param {*} key The key to search for.
410
+ * @returns {number} Returns the index of the matched value, else `-1`.
411
+ */
412
+ function assocIndexOf(array, key) {
413
+ var length = array.length;
414
+ while (length--) {
415
+ if (eq_1(array[length][0], key)) {
416
+ return length;
417
+ }
418
+ }
419
+ return -1;
420
+ }
421
+
422
+ var _assocIndexOf = assocIndexOf;
423
+
424
+ /** Used for built-in method references. */
425
+ var arrayProto = Array.prototype;
426
+
427
+ /** Built-in value references. */
428
+ var splice = arrayProto.splice;
429
+
430
+ /**
431
+ * Removes `key` and its value from the list cache.
432
+ *
433
+ * @private
434
+ * @name delete
435
+ * @memberOf ListCache
436
+ * @param {string} key The key of the value to remove.
437
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
438
+ */
439
+ function listCacheDelete(key) {
440
+ var data = this.__data__,
441
+ index = _assocIndexOf(data, key);
442
+
443
+ if (index < 0) {
444
+ return false;
445
+ }
446
+ var lastIndex = data.length - 1;
447
+ if (index == lastIndex) {
448
+ data.pop();
449
+ } else {
450
+ splice.call(data, index, 1);
451
+ }
452
+ --this.size;
453
+ return true;
454
+ }
455
+
456
+ var _listCacheDelete = listCacheDelete;
457
+
458
+ /**
459
+ * Gets the list cache value for `key`.
460
+ *
461
+ * @private
462
+ * @name get
463
+ * @memberOf ListCache
464
+ * @param {string} key The key of the value to get.
465
+ * @returns {*} Returns the entry value.
466
+ */
467
+ function listCacheGet(key) {
468
+ var data = this.__data__,
469
+ index = _assocIndexOf(data, key);
470
+
471
+ return index < 0 ? undefined : data[index][1];
472
+ }
473
+
474
+ var _listCacheGet = listCacheGet;
475
+
476
+ /**
477
+ * Checks if a list cache value for `key` exists.
478
+ *
479
+ * @private
480
+ * @name has
481
+ * @memberOf ListCache
482
+ * @param {string} key The key of the entry to check.
483
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
484
+ */
485
+ function listCacheHas(key) {
486
+ return _assocIndexOf(this.__data__, key) > -1;
487
+ }
488
+
489
+ var _listCacheHas = listCacheHas;
490
+
491
+ /**
492
+ * Sets the list cache `key` to `value`.
493
+ *
494
+ * @private
495
+ * @name set
496
+ * @memberOf ListCache
497
+ * @param {string} key The key of the value to set.
498
+ * @param {*} value The value to set.
499
+ * @returns {Object} Returns the list cache instance.
500
+ */
501
+ function listCacheSet(key, value) {
502
+ var data = this.__data__,
503
+ index = _assocIndexOf(data, key);
504
+
505
+ if (index < 0) {
506
+ ++this.size;
507
+ data.push([key, value]);
508
+ } else {
509
+ data[index][1] = value;
510
+ }
511
+ return this;
512
+ }
513
+
514
+ var _listCacheSet = listCacheSet;
515
+
516
+ /**
517
+ * Creates an list cache object.
518
+ *
519
+ * @private
520
+ * @constructor
521
+ * @param {Array} [entries] The key-value pairs to cache.
522
+ */
523
+ function ListCache(entries) {
524
+ var index = -1,
525
+ length = entries == null ? 0 : entries.length;
526
+
527
+ this.clear();
528
+ while (++index < length) {
529
+ var entry = entries[index];
530
+ this.set(entry[0], entry[1]);
531
+ }
532
+ }
533
+
534
+ // Add methods to `ListCache`.
535
+ ListCache.prototype.clear = _listCacheClear;
536
+ ListCache.prototype['delete'] = _listCacheDelete;
537
+ ListCache.prototype.get = _listCacheGet;
538
+ ListCache.prototype.has = _listCacheHas;
539
+ ListCache.prototype.set = _listCacheSet;
540
+
541
+ var _ListCache = ListCache;
542
+
543
+ /* Built-in method references that are verified to be native. */
544
+ var Map = _getNative(_root, 'Map');
545
+
546
+ var _Map = Map;
547
+
548
+ /**
549
+ * Removes all key-value entries from the map.
550
+ *
551
+ * @private
552
+ * @name clear
553
+ * @memberOf MapCache
554
+ */
555
+ function mapCacheClear() {
556
+ this.size = 0;
557
+ this.__data__ = {
558
+ 'hash': new _Hash,
559
+ 'map': new (_Map || _ListCache),
560
+ 'string': new _Hash
561
+ };
562
+ }
563
+
564
+ var _mapCacheClear = mapCacheClear;
565
+
566
+ /**
567
+ * Checks if `value` is suitable for use as unique object key.
568
+ *
569
+ * @private
570
+ * @param {*} value The value to check.
571
+ * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
572
+ */
573
+ function isKeyable(value) {
574
+ var type = typeof value;
575
+ return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
576
+ ? (value !== '__proto__')
577
+ : (value === null);
578
+ }
579
+
580
+ var _isKeyable = isKeyable;
581
+
582
+ /**
583
+ * Gets the data for `map`.
584
+ *
585
+ * @private
586
+ * @param {Object} map The map to query.
587
+ * @param {string} key The reference key.
588
+ * @returns {*} Returns the map data.
589
+ */
590
+ function getMapData(map, key) {
591
+ var data = map.__data__;
592
+ return _isKeyable(key)
593
+ ? data[typeof key == 'string' ? 'string' : 'hash']
594
+ : data.map;
595
+ }
596
+
597
+ var _getMapData = getMapData;
598
+
599
+ /**
600
+ * Removes `key` and its value from the map.
601
+ *
602
+ * @private
603
+ * @name delete
604
+ * @memberOf MapCache
605
+ * @param {string} key The key of the value to remove.
606
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
607
+ */
608
+ function mapCacheDelete(key) {
609
+ var result = _getMapData(this, key)['delete'](key);
610
+ this.size -= result ? 1 : 0;
611
+ return result;
612
+ }
613
+
614
+ var _mapCacheDelete = mapCacheDelete;
615
+
616
+ /**
617
+ * Gets the map value for `key`.
618
+ *
619
+ * @private
620
+ * @name get
621
+ * @memberOf MapCache
622
+ * @param {string} key The key of the value to get.
623
+ * @returns {*} Returns the entry value.
624
+ */
625
+ function mapCacheGet(key) {
626
+ return _getMapData(this, key).get(key);
627
+ }
628
+
629
+ var _mapCacheGet = mapCacheGet;
630
+
631
+ /**
632
+ * Checks if a map value for `key` exists.
633
+ *
634
+ * @private
635
+ * @name has
636
+ * @memberOf MapCache
637
+ * @param {string} key The key of the entry to check.
638
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
639
+ */
640
+ function mapCacheHas(key) {
641
+ return _getMapData(this, key).has(key);
642
+ }
643
+
644
+ var _mapCacheHas = mapCacheHas;
645
+
646
+ /**
647
+ * Sets the map `key` to `value`.
648
+ *
649
+ * @private
650
+ * @name set
651
+ * @memberOf MapCache
652
+ * @param {string} key The key of the value to set.
653
+ * @param {*} value The value to set.
654
+ * @returns {Object} Returns the map cache instance.
655
+ */
656
+ function mapCacheSet(key, value) {
657
+ var data = _getMapData(this, key),
658
+ size = data.size;
659
+
660
+ data.set(key, value);
661
+ this.size += data.size == size ? 0 : 1;
662
+ return this;
663
+ }
664
+
665
+ var _mapCacheSet = mapCacheSet;
666
+
667
+ /**
668
+ * Creates a map cache object to store key-value pairs.
669
+ *
670
+ * @private
671
+ * @constructor
672
+ * @param {Array} [entries] The key-value pairs to cache.
673
+ */
674
+ function MapCache(entries) {
675
+ var index = -1,
676
+ length = entries == null ? 0 : entries.length;
677
+
678
+ this.clear();
679
+ while (++index < length) {
680
+ var entry = entries[index];
681
+ this.set(entry[0], entry[1]);
682
+ }
683
+ }
684
+
685
+ // Add methods to `MapCache`.
686
+ MapCache.prototype.clear = _mapCacheClear;
687
+ MapCache.prototype['delete'] = _mapCacheDelete;
688
+ MapCache.prototype.get = _mapCacheGet;
689
+ MapCache.prototype.has = _mapCacheHas;
690
+ MapCache.prototype.set = _mapCacheSet;
691
+
692
+ var _MapCache = MapCache;
693
+
694
+ /** Error message constants. */
695
+ var FUNC_ERROR_TEXT = 'Expected a function';
696
+
697
+ /**
698
+ * Creates a function that memoizes the result of `func`. If `resolver` is
699
+ * provided, it determines the cache key for storing the result based on the
700
+ * arguments provided to the memoized function. By default, the first argument
701
+ * provided to the memoized function is used as the map cache key. The `func`
702
+ * is invoked with the `this` binding of the memoized function.
703
+ *
704
+ * **Note:** The cache is exposed as the `cache` property on the memoized
705
+ * function. Its creation may be customized by replacing the `_.memoize.Cache`
706
+ * constructor with one whose instances implement the
707
+ * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
708
+ * method interface of `clear`, `delete`, `get`, `has`, and `set`.
709
+ *
710
+ * @static
711
+ * @memberOf _
712
+ * @since 0.1.0
713
+ * @category Function
714
+ * @param {Function} func The function to have its output memoized.
715
+ * @param {Function} [resolver] The function to resolve the cache key.
716
+ * @returns {Function} Returns the new memoized function.
717
+ * @example
718
+ *
719
+ * var object = { 'a': 1, 'b': 2 };
720
+ * var other = { 'c': 3, 'd': 4 };
721
+ *
722
+ * var values = _.memoize(_.values);
723
+ * values(object);
724
+ * // => [1, 2]
725
+ *
726
+ * values(other);
727
+ * // => [3, 4]
728
+ *
729
+ * object.a = 2;
730
+ * values(object);
731
+ * // => [1, 2]
732
+ *
733
+ * // Modify the result cache.
734
+ * values.cache.set(object, ['a', 'b']);
735
+ * values(object);
736
+ * // => ['a', 'b']
737
+ *
738
+ * // Replace `_.memoize.Cache`.
739
+ * _.memoize.Cache = WeakMap;
740
+ */
741
+ function memoize(func, resolver) {
742
+ if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
743
+ throw new TypeError(FUNC_ERROR_TEXT);
744
+ }
745
+ var memoized = function() {
746
+ var args = arguments,
747
+ key = resolver ? resolver.apply(this, args) : args[0],
748
+ cache = memoized.cache;
749
+
750
+ if (cache.has(key)) {
751
+ return cache.get(key);
752
+ }
753
+ var result = func.apply(this, args);
754
+ memoized.cache = cache.set(key, result) || cache;
755
+ return result;
756
+ };
757
+ memoized.cache = new (memoize.Cache || _MapCache);
758
+ return memoized;
759
+ }
760
+
761
+ // Expose `MapCache`.
762
+ memoize.Cache = _MapCache;
763
+
764
+ var memoize_1 = memoize;
765
+
766
+ /** Used as the maximum memoize cache size. */
767
+ var MAX_MEMOIZE_SIZE = 500;
768
+
769
+ /**
770
+ * A specialized version of `_.memoize` which clears the memoized function's
771
+ * cache when it exceeds `MAX_MEMOIZE_SIZE`.
772
+ *
773
+ * @private
774
+ * @param {Function} func The function to have its output memoized.
775
+ * @returns {Function} Returns the new memoized function.
776
+ */
777
+ function memoizeCapped(func) {
778
+ var result = memoize_1(func, function(key) {
779
+ if (cache.size === MAX_MEMOIZE_SIZE) {
780
+ cache.clear();
781
+ }
782
+ return key;
783
+ });
784
+
785
+ var cache = result.cache;
786
+ return result;
787
+ }
788
+
789
+ var _memoizeCapped = memoizeCapped;
790
+
791
+ /** Used to match property names within property paths. */
792
+ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
793
+
794
+ /** Used to match backslashes in property paths. */
795
+ var reEscapeChar = /\\(\\)?/g;
796
+
797
+ /**
798
+ * Converts `string` to a property path array.
799
+ *
800
+ * @private
801
+ * @param {string} string The string to convert.
802
+ * @returns {Array} Returns the property path array.
803
+ */
804
+ var stringToPath = _memoizeCapped(function(string) {
805
+ var result = [];
806
+ if (string.charCodeAt(0) === 46 /* . */) {
807
+ result.push('');
808
+ }
809
+ string.replace(rePropName, function(match, number, quote, subString) {
810
+ result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
811
+ });
812
+ return result;
813
+ });
814
+
815
+ var _stringToPath = stringToPath;
816
+
817
+ /**
818
+ * A specialized version of `_.map` for arrays without support for iteratee
819
+ * shorthands.
820
+ *
821
+ * @private
822
+ * @param {Array} [array] The array to iterate over.
823
+ * @param {Function} iteratee The function invoked per iteration.
824
+ * @returns {Array} Returns the new mapped array.
825
+ */
826
+ function arrayMap(array, iteratee) {
827
+ var index = -1,
828
+ length = array == null ? 0 : array.length,
829
+ result = Array(length);
830
+
831
+ while (++index < length) {
832
+ result[index] = iteratee(array[index], index, array);
833
+ }
834
+ return result;
835
+ }
836
+
837
+ var _arrayMap = arrayMap;
838
+
839
+ /** Used as references for various `Number` constants. */
840
+ var INFINITY = 1 / 0;
841
+
842
+ /** Used to convert symbols to primitives and strings. */
843
+ var symbolProto = _Symbol ? _Symbol.prototype : undefined,
844
+ symbolToString = symbolProto ? symbolProto.toString : undefined;
845
+
846
+ /**
847
+ * The base implementation of `_.toString` which doesn't convert nullish
848
+ * values to empty strings.
849
+ *
850
+ * @private
851
+ * @param {*} value The value to process.
852
+ * @returns {string} Returns the string.
853
+ */
854
+ function baseToString(value) {
855
+ // Exit early for strings to avoid a performance hit in some environments.
856
+ if (typeof value == 'string') {
857
+ return value;
858
+ }
859
+ if (isArray_1(value)) {
860
+ // Recursively convert values (susceptible to call stack limits).
861
+ return _arrayMap(value, baseToString) + '';
862
+ }
863
+ if (isSymbol_1(value)) {
864
+ return symbolToString ? symbolToString.call(value) : '';
865
+ }
866
+ var result = (value + '');
867
+ return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
868
+ }
869
+
870
+ var _baseToString = baseToString;
871
+
872
+ /**
873
+ * Converts `value` to a string. An empty string is returned for `null`
874
+ * and `undefined` values. The sign of `-0` is preserved.
875
+ *
876
+ * @static
877
+ * @memberOf _
878
+ * @since 4.0.0
879
+ * @category Lang
880
+ * @param {*} value The value to convert.
881
+ * @returns {string} Returns the converted string.
882
+ * @example
883
+ *
884
+ * _.toString(null);
885
+ * // => ''
886
+ *
887
+ * _.toString(-0);
888
+ * // => '-0'
889
+ *
890
+ * _.toString([1, 2, 3]);
891
+ * // => '1,2,3'
892
+ */
893
+ function toString(value) {
894
+ return value == null ? '' : _baseToString(value);
895
+ }
896
+
897
+ var toString_1 = toString;
898
+
899
+ /**
900
+ * Casts `value` to a path array if it's not one.
901
+ *
902
+ * @private
903
+ * @param {*} value The value to inspect.
904
+ * @param {Object} [object] The object to query keys on.
905
+ * @returns {Array} Returns the cast property path array.
906
+ */
907
+ function castPath(value, object) {
908
+ if (isArray_1(value)) {
909
+ return value;
910
+ }
911
+ return _isKey(value, object) ? [value] : _stringToPath(toString_1(value));
912
+ }
913
+
914
+ var _castPath = castPath;
915
+
916
+ /** Used as references for various `Number` constants. */
917
+ var INFINITY$1 = 1 / 0;
918
+
919
+ /**
920
+ * Converts `value` to a string key if it's not a string or symbol.
921
+ *
922
+ * @private
923
+ * @param {*} value The value to inspect.
924
+ * @returns {string|symbol} Returns the key.
925
+ */
926
+ function toKey(value) {
927
+ if (typeof value == 'string' || isSymbol_1(value)) {
928
+ return value;
929
+ }
930
+ var result = (value + '');
931
+ return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
932
+ }
933
+
934
+ var _toKey = toKey;
935
+
936
+ /**
937
+ * The base implementation of `_.get` without support for default values.
938
+ *
939
+ * @private
940
+ * @param {Object} object The object to query.
941
+ * @param {Array|string} path The path of the property to get.
942
+ * @returns {*} Returns the resolved value.
943
+ */
944
+ function baseGet(object, path) {
945
+ path = _castPath(path, object);
946
+
947
+ var index = 0,
948
+ length = path.length;
949
+
950
+ while (object != null && index < length) {
951
+ object = object[_toKey(path[index++])];
952
+ }
953
+ return (index && index == length) ? object : undefined;
954
+ }
955
+
956
+ var _baseGet = baseGet;
957
+
958
+ /**
959
+ * Gets the value at `path` of `object`. If the resolved value is
960
+ * `undefined`, the `defaultValue` is returned in its place.
961
+ *
962
+ * @static
963
+ * @memberOf _
964
+ * @since 3.7.0
965
+ * @category Object
966
+ * @param {Object} object The object to query.
967
+ * @param {Array|string} path The path of the property to get.
968
+ * @param {*} [defaultValue] The value returned for `undefined` resolved values.
969
+ * @returns {*} Returns the resolved value.
970
+ * @example
971
+ *
972
+ * var object = { 'a': [{ 'b': { 'c': 3 } }] };
973
+ *
974
+ * _.get(object, 'a[0].b.c');
975
+ * // => 3
976
+ *
977
+ * _.get(object, ['a', '0', 'b', 'c']);
978
+ * // => 3
979
+ *
980
+ * _.get(object, 'a.b.c', 'default');
981
+ * // => 'default'
982
+ */
983
+ function get(object, path, defaultValue) {
984
+ var result = object == null ? undefined : _baseGet(object, path);
985
+ return result === undefined ? defaultValue : result;
986
+ }
987
+
988
+ var get_1 = get;
989
+
990
+ export { get_1 as g };