@pie-element/select-text 11.0.0 → 11.0.1-esmbeta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
1
+ var commonjsGlobal$1 = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
2
2
 
3
3
  /** Used for built-in method references. */
4
4
 
5
- var objectProto$8 = Object.prototype;
5
+ var objectProto$6 = Object.prototype;
6
6
 
7
7
  /**
8
8
  * Checks if `value` is likely a prototype object.
@@ -13,12 +13,12 @@ var objectProto$8 = Object.prototype;
13
13
  */
14
14
  function isPrototype$2(value) {
15
15
  var Ctor = value && value.constructor,
16
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$8;
16
+ proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$6;
17
17
 
18
18
  return value === proto;
19
19
  }
20
20
 
21
- var _isPrototype = isPrototype$2;
21
+ var _isPrototype$1 = isPrototype$2;
22
22
 
23
23
  /**
24
24
  * Creates a unary function that invokes `func` with its argument transformed.
@@ -35,23 +35,23 @@ function overArg$1(func, transform) {
35
35
  };
36
36
  }
37
37
 
38
- var _overArg = overArg$1;
38
+ var _overArg$1 = overArg$1;
39
39
 
40
- var overArg = _overArg;
40
+ var overArg = _overArg$1;
41
41
 
42
42
  /* Built-in method references for those with the same name as other `lodash` methods. */
43
43
  var nativeKeys$1 = overArg(Object.keys, Object);
44
44
 
45
- var _nativeKeys = nativeKeys$1;
45
+ var _nativeKeys$1 = nativeKeys$1;
46
46
 
47
- var isPrototype$1 = _isPrototype,
48
- nativeKeys = _nativeKeys;
47
+ var isPrototype$1 = _isPrototype$1,
48
+ nativeKeys = _nativeKeys$1;
49
49
 
50
50
  /** Used for built-in method references. */
51
- var objectProto$7 = Object.prototype;
51
+ var objectProto$5 = Object.prototype;
52
52
 
53
53
  /** Used to check objects for own properties. */
54
- var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
54
+ var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
55
55
 
56
56
  /**
57
57
  * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
@@ -66,22 +66,22 @@ function baseKeys$1(object) {
66
66
  }
67
67
  var result = [];
68
68
  for (var key in Object(object)) {
69
- if (hasOwnProperty$6.call(object, key) && key != 'constructor') {
69
+ if (hasOwnProperty$4.call(object, key) && key != 'constructor') {
70
70
  result.push(key);
71
71
  }
72
72
  }
73
73
  return result;
74
74
  }
75
75
 
76
- var _baseKeys = baseKeys$1;
76
+ var _baseKeys$1 = baseKeys$1;
77
77
 
78
78
  /** Detect free variable `global` from Node.js. */
79
79
 
80
- var freeGlobal$1 = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
80
+ var freeGlobal$1 = typeof commonjsGlobal$1 == 'object' && commonjsGlobal$1 && commonjsGlobal$1.Object === Object && commonjsGlobal$1;
81
81
 
82
- var _freeGlobal = freeGlobal$1;
82
+ var _freeGlobal$1 = freeGlobal$1;
83
83
 
84
- var freeGlobal = _freeGlobal;
84
+ var freeGlobal = _freeGlobal$1;
85
85
 
86
86
  /** Detect free variable `self`. */
87
87
  var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
@@ -89,32 +89,32 @@ var freeSelf = typeof self == 'object' && self && self.Object === Object && self
89
89
  /** Used as a reference to the global object. */
90
90
  var root$7 = freeGlobal || freeSelf || Function('return this')();
91
91
 
92
- var _root = root$7;
92
+ var _root$1 = root$7;
93
93
 
94
- var root$6 = _root;
94
+ var root$6 = _root$1;
95
95
 
96
96
  /** Built-in value references. */
97
- var Symbol$3 = root$6.Symbol;
97
+ var Symbol$2 = root$6.Symbol;
98
98
 
99
- var _Symbol = Symbol$3;
99
+ var _Symbol$1 = Symbol$2;
100
100
 
101
- var Symbol$2 = _Symbol;
101
+ var Symbol$1 = _Symbol$1;
102
102
 
103
103
  /** Used for built-in method references. */
104
- var objectProto$6 = Object.prototype;
104
+ var objectProto$4 = Object.prototype;
105
105
 
106
106
  /** Used to check objects for own properties. */
107
- var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
107
+ var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
108
108
 
109
109
  /**
110
110
  * Used to resolve the
111
111
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
112
112
  * of values.
113
113
  */
114
- var nativeObjectToString$1 = objectProto$6.toString;
114
+ var nativeObjectToString$1 = objectProto$4.toString;
115
115
 
116
116
  /** Built-in value references. */
117
- var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : undefined;
117
+ var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : undefined;
118
118
 
119
119
  /**
120
120
  * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
@@ -124,7 +124,7 @@ var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : undefined;
124
124
  * @returns {string} Returns the raw `toStringTag`.
125
125
  */
126
126
  function getRawTag$1(value) {
127
- var isOwn = hasOwnProperty$5.call(value, symToStringTag$1),
127
+ var isOwn = hasOwnProperty$3.call(value, symToStringTag$1),
128
128
  tag = value[symToStringTag$1];
129
129
 
130
130
  try {
@@ -143,18 +143,18 @@ function getRawTag$1(value) {
143
143
  return result;
144
144
  }
145
145
 
146
- var _getRawTag = getRawTag$1;
146
+ var _getRawTag$1 = getRawTag$1;
147
147
 
148
148
  /** Used for built-in method references. */
149
149
 
150
- var objectProto$5 = Object.prototype;
150
+ var objectProto$3 = Object.prototype;
151
151
 
152
152
  /**
153
153
  * Used to resolve the
154
154
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
155
155
  * of values.
156
156
  */
157
- var nativeObjectToString = objectProto$5.toString;
157
+ var nativeObjectToString = objectProto$3.toString;
158
158
 
159
159
  /**
160
160
  * Converts `value` to a string using `Object.prototype.toString`.
@@ -167,18 +167,18 @@ function objectToString$1(value) {
167
167
  return nativeObjectToString.call(value);
168
168
  }
169
169
 
170
- var _objectToString = objectToString$1;
170
+ var _objectToString$1 = objectToString$1;
171
171
 
172
- var Symbol$1 = _Symbol,
173
- getRawTag = _getRawTag,
174
- objectToString = _objectToString;
172
+ var Symbol = _Symbol$1,
173
+ getRawTag = _getRawTag$1,
174
+ objectToString = _objectToString$1;
175
175
 
176
176
  /** `Object#toString` result references. */
177
177
  var nullTag = '[object Null]',
178
178
  undefinedTag = '[object Undefined]';
179
179
 
180
180
  /** Built-in value references. */
181
- var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : undefined;
181
+ var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
182
182
 
183
183
  /**
184
184
  * The base implementation of `getTag` without fallbacks for buggy environments.
@@ -196,7 +196,7 @@ function baseGetTag$4(value) {
196
196
  : objectToString(value);
197
197
  }
198
198
 
199
- var _baseGetTag = baseGetTag$4;
199
+ var _baseGetTag$1 = baseGetTag$4;
200
200
 
201
201
  /**
202
202
  * Checks if `value` is the
@@ -229,10 +229,10 @@ function isObject$2(value) {
229
229
  return value != null && (type == 'object' || type == 'function');
230
230
  }
231
231
 
232
- var isObject_1 = isObject$2;
232
+ var isObject_1$1 = isObject$2;
233
233
 
234
- var baseGetTag$3 = _baseGetTag,
235
- isObject$1 = isObject_1;
234
+ var baseGetTag$3 = _baseGetTag$1,
235
+ isObject$1 = isObject_1$1;
236
236
 
237
237
  /** `Object#toString` result references. */
238
238
  var asyncTag = '[object AsyncFunction]',
@@ -267,16 +267,16 @@ function isFunction$2(value) {
267
267
  return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
268
268
  }
269
269
 
270
- var isFunction_1 = isFunction$2;
270
+ var isFunction_1$1 = isFunction$2;
271
271
 
272
- var root$5 = _root;
272
+ var root$5 = _root$1;
273
273
 
274
274
  /** Used to detect overreaching core-js shims. */
275
275
  var coreJsData$1 = root$5['__core-js_shared__'];
276
276
 
277
- var _coreJsData = coreJsData$1;
277
+ var _coreJsData$1 = coreJsData$1;
278
278
 
279
- var coreJsData = _coreJsData;
279
+ var coreJsData = _coreJsData$1;
280
280
 
281
281
  /** Used to detect methods masquerading as native. */
282
282
  var maskSrcKey = (function() {
@@ -295,7 +295,7 @@ function isMasked$1(func) {
295
295
  return !!maskSrcKey && (maskSrcKey in func);
296
296
  }
297
297
 
298
- var _isMasked = isMasked$1;
298
+ var _isMasked$1 = isMasked$1;
299
299
 
300
300
  /** Used for built-in method references. */
301
301
 
@@ -323,12 +323,12 @@ function toSource$2(func) {
323
323
  return '';
324
324
  }
325
325
 
326
- var _toSource = toSource$2;
326
+ var _toSource$1 = toSource$2;
327
327
 
328
- var isFunction$1 = isFunction_1,
329
- isMasked = _isMasked,
330
- isObject = isObject_1,
331
- toSource$1 = _toSource;
328
+ var isFunction$1 = isFunction_1$1,
329
+ isMasked = _isMasked$1,
330
+ isObject = isObject_1$1,
331
+ toSource$1 = _toSource$1;
332
332
 
333
333
  /**
334
334
  * Used to match `RegExp`
@@ -341,17 +341,17 @@ var reIsHostCtor = /^\[object .+?Constructor\]$/;
341
341
 
342
342
  /** Used for built-in method references. */
343
343
  var funcProto = Function.prototype,
344
- objectProto$4 = Object.prototype;
344
+ objectProto$2 = Object.prototype;
345
345
 
346
346
  /** Used to resolve the decompiled source of functions. */
347
347
  var funcToString = funcProto.toString;
348
348
 
349
349
  /** Used to check objects for own properties. */
350
- var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
350
+ var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
351
351
 
352
352
  /** Used to detect if a method is native. */
353
353
  var reIsNative = RegExp('^' +
354
- funcToString.call(hasOwnProperty$4).replace(reRegExpChar, '\\$&')
354
+ funcToString.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
355
355
  .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
356
356
  );
357
357
 
@@ -371,7 +371,7 @@ function baseIsNative$1(value) {
371
371
  return pattern.test(toSource$1(value));
372
372
  }
373
373
 
374
- var _baseIsNative = baseIsNative$1;
374
+ var _baseIsNative$1 = baseIsNative$1;
375
375
 
376
376
  /**
377
377
  * Gets the value at `key` of `object`.
@@ -386,10 +386,10 @@ function getValue$1(object, key) {
386
386
  return object == null ? undefined : object[key];
387
387
  }
388
388
 
389
- var _getValue = getValue$1;
389
+ var _getValue$1 = getValue$1;
390
390
 
391
- var baseIsNative = _baseIsNative,
392
- getValue = _getValue;
391
+ var baseIsNative = _baseIsNative$1,
392
+ getValue = _getValue$1;
393
393
 
394
394
  /**
395
395
  * Gets the native function at `key` of `object`.
@@ -399,60 +399,60 @@ var baseIsNative = _baseIsNative,
399
399
  * @param {string} key The key of the method to get.
400
400
  * @returns {*} Returns the function if it's native, else `undefined`.
401
401
  */
402
- function getNative$6(object, key) {
402
+ function getNative$5(object, key) {
403
403
  var value = getValue(object, key);
404
404
  return baseIsNative(value) ? value : undefined;
405
405
  }
406
406
 
407
- var _getNative = getNative$6;
407
+ var _getNative$1 = getNative$5;
408
408
 
409
- var getNative$5 = _getNative,
410
- root$4 = _root;
409
+ var getNative$4 = _getNative$1,
410
+ root$4 = _root$1;
411
411
 
412
412
  /* Built-in method references that are verified to be native. */
413
- var DataView$1 = getNative$5(root$4, 'DataView');
413
+ var DataView$1 = getNative$4(root$4, 'DataView');
414
414
 
415
- var _DataView = DataView$1;
415
+ var _DataView$1 = DataView$1;
416
416
 
417
- var getNative$4 = _getNative,
418
- root$3 = _root;
417
+ var getNative$3 = _getNative$1,
418
+ root$3 = _root$1;
419
419
 
420
420
  /* Built-in method references that are verified to be native. */
421
- var Map$2 = getNative$4(root$3, 'Map');
421
+ var Map$1 = getNative$3(root$3, 'Map');
422
422
 
423
- var _Map = Map$2;
423
+ var _Map$1 = Map$1;
424
424
 
425
- var getNative$3 = _getNative,
426
- root$2 = _root;
425
+ var getNative$2 = _getNative$1,
426
+ root$2 = _root$1;
427
427
 
428
428
  /* Built-in method references that are verified to be native. */
429
- var Promise$2 = getNative$3(root$2, 'Promise');
429
+ var Promise$2 = getNative$2(root$2, 'Promise');
430
430
 
431
- var _Promise = Promise$2;
431
+ var _Promise$1 = Promise$2;
432
432
 
433
- var getNative$2 = _getNative,
434
- root$1 = _root;
433
+ var getNative$1 = _getNative$1,
434
+ root$1 = _root$1;
435
435
 
436
436
  /* Built-in method references that are verified to be native. */
437
- var Set$1 = getNative$2(root$1, 'Set');
437
+ var Set$1 = getNative$1(root$1, 'Set');
438
438
 
439
- var _Set = Set$1;
439
+ var _Set$1 = Set$1;
440
440
 
441
- var getNative$1 = _getNative,
442
- root = _root;
441
+ var getNative = _getNative$1,
442
+ root = _root$1;
443
443
 
444
444
  /* Built-in method references that are verified to be native. */
445
- var WeakMap$1 = getNative$1(root, 'WeakMap');
445
+ var WeakMap$1 = getNative(root, 'WeakMap');
446
446
 
447
- var _WeakMap = WeakMap$1;
447
+ var _WeakMap$1 = WeakMap$1;
448
448
 
449
- var DataView = _DataView,
450
- Map$1 = _Map,
451
- Promise$1 = _Promise,
452
- Set = _Set,
453
- WeakMap = _WeakMap,
454
- baseGetTag$2 = _baseGetTag,
455
- toSource = _toSource;
449
+ var DataView = _DataView$1,
450
+ Map = _Map$1,
451
+ Promise$1 = _Promise$1,
452
+ Set = _Set$1,
453
+ WeakMap = _WeakMap$1,
454
+ baseGetTag$2 = _baseGetTag$1,
455
+ toSource = _toSource$1;
456
456
 
457
457
  /** `Object#toString` result references. */
458
458
  var mapTag$2 = '[object Map]',
@@ -465,7 +465,7 @@ var dataViewTag$1 = '[object DataView]';
465
465
 
466
466
  /** Used to detect maps, sets, and weakmaps. */
467
467
  var dataViewCtorString = toSource(DataView),
468
- mapCtorString = toSource(Map$1),
468
+ mapCtorString = toSource(Map),
469
469
  promiseCtorString = toSource(Promise$1),
470
470
  setCtorString = toSource(Set),
471
471
  weakMapCtorString = toSource(WeakMap);
@@ -481,7 +481,7 @@ var getTag$1 = baseGetTag$2;
481
481
 
482
482
  // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
483
483
  if ((DataView && getTag$1(new DataView(new ArrayBuffer(1))) != dataViewTag$1) ||
484
- (Map$1 && getTag$1(new Map$1) != mapTag$2) ||
484
+ (Map && getTag$1(new Map) != mapTag$2) ||
485
485
  (Promise$1 && getTag$1(Promise$1.resolve()) != promiseTag) ||
486
486
  (Set && getTag$1(new Set) != setTag$2) ||
487
487
  (WeakMap && getTag$1(new WeakMap) != weakMapTag$1)) {
@@ -503,7 +503,7 @@ if ((DataView && getTag$1(new DataView(new ArrayBuffer(1))) != dataViewTag$1) ||
503
503
  };
504
504
  }
505
505
 
506
- var _getTag = getTag$1;
506
+ var _getTag$1 = getTag$1;
507
507
 
508
508
  /**
509
509
  * Checks if `value` is object-like. A value is object-like if it's not `null`
@@ -534,10 +534,10 @@ function isObjectLike$3(value) {
534
534
  return value != null && typeof value == 'object';
535
535
  }
536
536
 
537
- var isObjectLike_1 = isObjectLike$3;
537
+ var isObjectLike_1$1 = isObjectLike$3;
538
538
 
539
- var baseGetTag$1 = _baseGetTag,
540
- isObjectLike$2 = isObjectLike_1;
539
+ var baseGetTag$1 = _baseGetTag$1,
540
+ isObjectLike$2 = isObjectLike_1$1;
541
541
 
542
542
  /** `Object#toString` result references. */
543
543
  var argsTag$1 = '[object Arguments]';
@@ -553,19 +553,19 @@ function baseIsArguments$1(value) {
553
553
  return isObjectLike$2(value) && baseGetTag$1(value) == argsTag$1;
554
554
  }
555
555
 
556
- var _baseIsArguments = baseIsArguments$1;
556
+ var _baseIsArguments$1 = baseIsArguments$1;
557
557
 
558
- var baseIsArguments = _baseIsArguments,
559
- isObjectLike$1 = isObjectLike_1;
558
+ var baseIsArguments = _baseIsArguments$1,
559
+ isObjectLike$1 = isObjectLike_1$1;
560
560
 
561
561
  /** Used for built-in method references. */
562
- var objectProto$3 = Object.prototype;
562
+ var objectProto$1 = Object.prototype;
563
563
 
564
564
  /** Used to check objects for own properties. */
565
- var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
565
+ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
566
566
 
567
567
  /** Built-in value references. */
568
- var propertyIsEnumerable = objectProto$3.propertyIsEnumerable;
568
+ var propertyIsEnumerable = objectProto$1.propertyIsEnumerable;
569
569
 
570
570
  /**
571
571
  * Checks if `value` is likely an `arguments` object.
@@ -586,11 +586,11 @@ var propertyIsEnumerable = objectProto$3.propertyIsEnumerable;
586
586
  * // => false
587
587
  */
588
588
  var isArguments$1 = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
589
- return isObjectLike$1(value) && hasOwnProperty$3.call(value, 'callee') &&
589
+ return isObjectLike$1(value) && hasOwnProperty$1.call(value, 'callee') &&
590
590
  !propertyIsEnumerable.call(value, 'callee');
591
591
  };
592
592
 
593
- var isArguments_1 = isArguments$1;
593
+ var isArguments_1$1 = isArguments$1;
594
594
 
595
595
  /**
596
596
  * Checks if `value` is classified as an `Array` object.
@@ -618,7 +618,7 @@ var isArguments_1 = isArguments$1;
618
618
 
619
619
  var isArray$1 = Array.isArray;
620
620
 
621
- var isArray_1 = isArray$1;
621
+ var isArray_1$1 = isArray$1;
622
622
 
623
623
  /** Used as references for various `Number` constants. */
624
624
 
@@ -655,10 +655,10 @@ function isLength$2(value) {
655
655
  value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
656
656
  }
657
657
 
658
- var isLength_1 = isLength$2;
658
+ var isLength_1$1 = isLength$2;
659
659
 
660
- var isFunction = isFunction_1,
661
- isLength$1 = isLength_1;
660
+ var isFunction = isFunction_1$1,
661
+ isLength$1 = isLength_1$1;
662
662
 
663
663
  /**
664
664
  * Checks if `value` is array-like. A value is considered array-like if it's
@@ -689,9 +689,9 @@ function isArrayLike$1(value) {
689
689
  return value != null && isLength$1(value.length) && !isFunction(value);
690
690
  }
691
691
 
692
- var isArrayLike_1 = isArrayLike$1;
692
+ var isArrayLike_1$1 = isArrayLike$1;
693
693
 
694
- var isBuffer$1 = {exports: {}};
694
+ var isBuffer$2 = {exports: {}};
695
695
 
696
696
  /**
697
697
  * This method returns `false`.
@@ -711,11 +711,11 @@ function stubFalse() {
711
711
  return false;
712
712
  }
713
713
 
714
- var stubFalse_1 = stubFalse;
714
+ var stubFalse_1$1 = stubFalse;
715
715
 
716
716
  (function (module, exports) {
717
- var root = _root,
718
- stubFalse = stubFalse_1;
717
+ var root = _root$1,
718
+ stubFalse = stubFalse_1$1;
719
719
 
720
720
  /** Detect free variable `exports`. */
721
721
  var freeExports = exports && !exports.nodeType && exports;
@@ -752,11 +752,11 @@ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
752
752
  var isBuffer = nativeIsBuffer || stubFalse;
753
753
 
754
754
  module.exports = isBuffer;
755
- }(isBuffer$1, isBuffer$1.exports));
755
+ }(isBuffer$2, isBuffer$2.exports));
756
756
 
757
- var baseGetTag = _baseGetTag,
758
- isLength = isLength_1,
759
- isObjectLike = isObjectLike_1;
757
+ var baseGetTag = _baseGetTag$1,
758
+ isLength = isLength_1$1,
759
+ isObjectLike = isObjectLike_1$1;
760
760
 
761
761
  /** `Object#toString` result references. */
762
762
  var argsTag = '[object Arguments]',
@@ -813,7 +813,7 @@ function baseIsTypedArray$1(value) {
813
813
  isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
814
814
  }
815
815
 
816
- var _baseIsTypedArray = baseIsTypedArray$1;
816
+ var _baseIsTypedArray$1 = baseIsTypedArray$1;
817
817
 
818
818
  /**
819
819
  * The base implementation of `_.unary` without support for storing metadata.
@@ -829,12 +829,12 @@ function baseUnary$1(func) {
829
829
  };
830
830
  }
831
831
 
832
- var _baseUnary = baseUnary$1;
832
+ var _baseUnary$1 = baseUnary$1;
833
833
 
834
- var _nodeUtil = {exports: {}};
834
+ var _nodeUtil$1 = {exports: {}};
835
835
 
836
836
  (function (module, exports) {
837
- var freeGlobal = _freeGlobal;
837
+ var freeGlobal = _freeGlobal$1;
838
838
 
839
839
  /** Detect free variable `exports`. */
840
840
  var freeExports = exports && !exports.nodeType && exports;
@@ -864,11 +864,11 @@ var nodeUtil = (function() {
864
864
  }());
865
865
 
866
866
  module.exports = nodeUtil;
867
- }(_nodeUtil, _nodeUtil.exports));
867
+ }(_nodeUtil$1, _nodeUtil$1.exports));
868
868
 
869
- var baseIsTypedArray = _baseIsTypedArray,
870
- baseUnary = _baseUnary,
871
- nodeUtil = _nodeUtil.exports;
869
+ var baseIsTypedArray = _baseIsTypedArray$1,
870
+ baseUnary = _baseUnary$1,
871
+ nodeUtil = _nodeUtil$1.exports;
872
872
 
873
873
  /* Node.js helper references. */
874
874
  var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
@@ -892,26 +892,26 @@ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
892
892
  */
893
893
  var isTypedArray$1 = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
894
894
 
895
- var isTypedArray_1 = isTypedArray$1;
895
+ var isTypedArray_1$1 = isTypedArray$1;
896
896
 
897
- var baseKeys = _baseKeys,
898
- getTag = _getTag,
899
- isArguments = isArguments_1,
900
- isArray = isArray_1,
901
- isArrayLike = isArrayLike_1,
902
- isBuffer = isBuffer$1.exports,
903
- isPrototype = _isPrototype,
904
- isTypedArray = isTypedArray_1;
897
+ var baseKeys = _baseKeys$1,
898
+ getTag = _getTag$1,
899
+ isArguments = isArguments_1$1,
900
+ isArray = isArray_1$1,
901
+ isArrayLike = isArrayLike_1$1,
902
+ isBuffer$1 = isBuffer$2.exports,
903
+ isPrototype = _isPrototype$1,
904
+ isTypedArray = isTypedArray_1$1;
905
905
 
906
906
  /** `Object#toString` result references. */
907
907
  var mapTag = '[object Map]',
908
908
  setTag = '[object Set]';
909
909
 
910
910
  /** Used for built-in method references. */
911
- var objectProto$2 = Object.prototype;
911
+ var objectProto = Object.prototype;
912
912
 
913
913
  /** Used to check objects for own properties. */
914
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
914
+ var hasOwnProperty = objectProto.hasOwnProperty;
915
915
 
916
916
  /**
917
917
  * Checks if `value` is an empty object, collection, map, or set.
@@ -952,7 +952,7 @@ function isEmpty(value) {
952
952
  }
953
953
  if (isArrayLike(value) &&
954
954
  (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
955
- isBuffer(value) || isTypedArray(value) || isArguments(value))) {
955
+ isBuffer$1(value) || isTypedArray(value) || isArguments(value))) {
956
956
  return !value.length;
957
957
  }
958
958
  var tag = getTag(value);
@@ -963,26 +963,55 @@ function isEmpty(value) {
963
963
  return !baseKeys(value).length;
964
964
  }
965
965
  for (var key in value) {
966
- if (hasOwnProperty$2.call(value, key)) {
966
+ if (hasOwnProperty.call(value, key)) {
967
967
  return false;
968
968
  }
969
969
  }
970
970
  return true;
971
971
  }
972
972
 
973
- var isEmpty_1 = isEmpty;
973
+ var isEmpty_1$1 = isEmpty;
974
+
975
+ function _extends() {
976
+ _extends = Object.assign || function (target) {
977
+ for (var i = 1; i < arguments.length; i++) {
978
+ var source = arguments[i];
979
+
980
+ for (var key in source) {
981
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
982
+ target[key] = source[key];
983
+ }
984
+ }
985
+ }
986
+
987
+ return target;
988
+ };
989
+
990
+ return _extends.apply(this, arguments);
991
+ }
974
992
 
975
993
  const defaults$1 = {
976
- correct: { type: 'default', default: 'Correct', custom: 'Correct' },
977
- incorrect: { type: 'default', default: 'Incorrect', custom: 'Incorrect' },
978
- partial: { type: 'default', default: 'Nearly', custom: 'Nearly' },
994
+ correct: {
995
+ type: 'default',
996
+ default: 'Correct',
997
+ custom: 'Correct'
998
+ },
999
+ incorrect: {
1000
+ type: 'default',
1001
+ default: 'Incorrect',
1002
+ custom: 'Incorrect'
1003
+ },
1004
+ partial: {
1005
+ type: 'default',
1006
+ default: 'Nearly',
1007
+ custom: 'Nearly'
1008
+ },
979
1009
  unanswered: {
980
1010
  type: 'default',
981
1011
  default: 'You have not entered a response',
982
- custom: 'You have not entered a response',
983
- },
1012
+ custom: 'You have not entered a response'
1013
+ }
984
1014
  };
985
-
986
1015
  /**
987
1016
  * @typedef {Object} FeedbackConfig
988
1017
  * @property {'default'|'none'|'custom'} type
@@ -995,44 +1024,45 @@ const defaults$1 = {
995
1024
  * @property {FeedbackConfig} partial
996
1025
  */
997
1026
 
998
- const normalizeCorrectness = (c) => {
1027
+ const normalizeCorrectness = c => {
999
1028
  if (c === 'partially-correct') {
1000
1029
  return 'partial';
1001
1030
  }
1031
+
1002
1032
  return c;
1003
1033
  };
1004
-
1005
1034
  /**
1006
1035
  * Get the feedback for the correctness
1007
1036
  *
1008
1037
  * @param {'correct'|'incorrect'|'partial'} correctness
1009
1038
  * @param {Feedback} feedback
1010
1039
  */
1011
- const getFeedbackForCorrectness = (correctness, feedback) =>
1012
- new Promise((resolve) => {
1013
- feedback = { ...defaults$1, ...feedback };
1014
- correctness = normalizeCorrectness(correctness);
1015
- const fb = feedback[correctness] || defaults$1[correctness] || {};
1016
- const d = defaults$1[correctness] || {};
1017
- getFeedback(fb, d[fb.type || 'default']).then((result) => resolve(result));
1018
- });
1019
1040
 
1041
+
1042
+ const getFeedbackForCorrectness = (correctness, feedback) => new Promise(resolve => {
1043
+ feedback = _extends({}, defaults$1, feedback);
1044
+ correctness = normalizeCorrectness(correctness);
1045
+ const fb = feedback[correctness] || defaults$1[correctness] || {};
1046
+ const d = defaults$1[correctness] || {};
1047
+ getFeedback(fb, d[fb.type || 'default']).then(result => resolve(result));
1048
+ });
1020
1049
  /**
1021
1050
  * Get the feedback from a {FeedbackConfig}
1022
1051
  *
1023
1052
  * @param {FeedbackConfig} feedback
1024
1053
  * @param {string} fallback
1025
1054
  */
1026
- const getFeedback = (feedback, fallback) =>
1027
- new Promise((resolve) => {
1028
- if (!feedback || feedback.type === 'none') {
1029
- resolve(undefined);
1030
- return;
1031
- }
1032
- feedback = feedback || {};
1033
- const out = feedback[feedback.type] || fallback;
1034
- resolve(out);
1035
- });
1055
+
1056
+ const getFeedback = (feedback, fallback) => new Promise(resolve => {
1057
+ if (!feedback || feedback.type === 'none') {
1058
+ resolve(undefined);
1059
+ return;
1060
+ }
1061
+
1062
+ feedback = feedback || {};
1063
+ const out = feedback[feedback.type] || fallback;
1064
+ resolve(out);
1065
+ }); // TODO: should replace getFeedbackForCorrectness
1036
1066
 
1037
1067
  const enabled = (config, env, defaultValue) => {
1038
1068
  // if model.partialScoring = false
@@ -1054,159 +1084,816 @@ const enabled = (config, env, defaultValue) => {
1054
1084
  return typeof defaultValue === 'boolean' ? defaultValue : true;
1055
1085
  };
1056
1086
 
1057
- var getNative = _getNative;
1058
-
1059
- /* Built-in method references that are verified to be native. */
1060
- var nativeCreate$4 = getNative(Object, 'create');
1061
-
1062
- var _nativeCreate = nativeCreate$4;
1087
+ var partialScoring = /*#__PURE__*/Object.freeze({
1088
+ __proto__: null,
1089
+ enabled: enabled
1090
+ });
1063
1091
 
1064
- var nativeCreate$3 = _nativeCreate;
1092
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
1065
1093
 
1066
1094
  /**
1067
- * Removes all key-value entries from the hash.
1095
+ * Checks if `value` is classified as an `Array` object.
1068
1096
  *
1069
- * @private
1070
- * @name clear
1071
- * @memberOf Hash
1097
+ * @static
1098
+ * @memberOf _
1099
+ * @since 0.1.0
1100
+ * @category Lang
1101
+ * @param {*} value The value to check.
1102
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
1103
+ * @example
1104
+ *
1105
+ * _.isArray([1, 2, 3]);
1106
+ * // => true
1107
+ *
1108
+ * _.isArray(document.body.children);
1109
+ * // => false
1110
+ *
1111
+ * _.isArray('abc');
1112
+ * // => false
1113
+ *
1114
+ * _.isArray(_.noop);
1115
+ * // => false
1072
1116
  */
1073
- function hashClear$1() {
1074
- this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
1075
- this.size = 0;
1117
+
1118
+ var isArray_1;
1119
+ var hasRequiredIsArray;
1120
+
1121
+ function requireIsArray () {
1122
+ if (hasRequiredIsArray) return isArray_1;
1123
+ hasRequiredIsArray = 1;
1124
+ var isArray = Array.isArray;
1125
+
1126
+ isArray_1 = isArray;
1127
+ return isArray_1;
1076
1128
  }
1077
1129
 
1078
- var _hashClear = hashClear$1;
1130
+ /** Detect free variable `global` from Node.js. */
1079
1131
 
1080
- /**
1081
- * Removes `key` and its value from the hash.
1082
- *
1083
- * @private
1084
- * @name delete
1085
- * @memberOf Hash
1086
- * @param {Object} hash The hash to modify.
1087
- * @param {string} key The key of the value to remove.
1088
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1089
- */
1132
+ var _freeGlobal;
1133
+ var hasRequired_freeGlobal;
1090
1134
 
1091
- function hashDelete$1(key) {
1092
- var result = this.has(key) && delete this.__data__[key];
1093
- this.size -= result ? 1 : 0;
1094
- return result;
1135
+ function require_freeGlobal () {
1136
+ if (hasRequired_freeGlobal) return _freeGlobal;
1137
+ hasRequired_freeGlobal = 1;
1138
+ var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
1139
+
1140
+ _freeGlobal = freeGlobal;
1141
+ return _freeGlobal;
1095
1142
  }
1096
1143
 
1097
- var _hashDelete = hashDelete$1;
1144
+ var _root;
1145
+ var hasRequired_root;
1146
+
1147
+ function require_root () {
1148
+ if (hasRequired_root) return _root;
1149
+ hasRequired_root = 1;
1150
+ var freeGlobal = require_freeGlobal();
1098
1151
 
1099
- var nativeCreate$2 = _nativeCreate;
1152
+ /** Detect free variable `self`. */
1153
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
1154
+
1155
+ /** Used as a reference to the global object. */
1156
+ var root = freeGlobal || freeSelf || Function('return this')();
1157
+
1158
+ _root = root;
1159
+ return _root;
1160
+ }
1100
1161
 
1101
- /** Used to stand-in for `undefined` hash values. */
1102
- var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
1162
+ var _Symbol;
1163
+ var hasRequired_Symbol;
1164
+
1165
+ function require_Symbol () {
1166
+ if (hasRequired_Symbol) return _Symbol;
1167
+ hasRequired_Symbol = 1;
1168
+ var root = require_root();
1169
+
1170
+ /** Built-in value references. */
1171
+ var Symbol = root.Symbol;
1172
+
1173
+ _Symbol = Symbol;
1174
+ return _Symbol;
1175
+ }
1176
+
1177
+ var _getRawTag;
1178
+ var hasRequired_getRawTag;
1179
+
1180
+ function require_getRawTag () {
1181
+ if (hasRequired_getRawTag) return _getRawTag;
1182
+ hasRequired_getRawTag = 1;
1183
+ var Symbol = require_Symbol();
1184
+
1185
+ /** Used for built-in method references. */
1186
+ var objectProto = Object.prototype;
1187
+
1188
+ /** Used to check objects for own properties. */
1189
+ var hasOwnProperty = objectProto.hasOwnProperty;
1190
+
1191
+ /**
1192
+ * Used to resolve the
1193
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
1194
+ * of values.
1195
+ */
1196
+ var nativeObjectToString = objectProto.toString;
1197
+
1198
+ /** Built-in value references. */
1199
+ var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
1200
+
1201
+ /**
1202
+ * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
1203
+ *
1204
+ * @private
1205
+ * @param {*} value The value to query.
1206
+ * @returns {string} Returns the raw `toStringTag`.
1207
+ */
1208
+ function getRawTag(value) {
1209
+ var isOwn = hasOwnProperty.call(value, symToStringTag),
1210
+ tag = value[symToStringTag];
1211
+
1212
+ try {
1213
+ value[symToStringTag] = undefined;
1214
+ var unmasked = true;
1215
+ } catch (e) {}
1216
+
1217
+ var result = nativeObjectToString.call(value);
1218
+ if (unmasked) {
1219
+ if (isOwn) {
1220
+ value[symToStringTag] = tag;
1221
+ } else {
1222
+ delete value[symToStringTag];
1223
+ }
1224
+ }
1225
+ return result;
1226
+ }
1227
+
1228
+ _getRawTag = getRawTag;
1229
+ return _getRawTag;
1230
+ }
1103
1231
 
1104
1232
  /** Used for built-in method references. */
1105
- var objectProto$1 = Object.prototype;
1106
1233
 
1107
- /** Used to check objects for own properties. */
1108
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
1234
+ var _objectToString;
1235
+ var hasRequired_objectToString;
1236
+
1237
+ function require_objectToString () {
1238
+ if (hasRequired_objectToString) return _objectToString;
1239
+ hasRequired_objectToString = 1;
1240
+ var objectProto = Object.prototype;
1241
+
1242
+ /**
1243
+ * Used to resolve the
1244
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
1245
+ * of values.
1246
+ */
1247
+ var nativeObjectToString = objectProto.toString;
1248
+
1249
+ /**
1250
+ * Converts `value` to a string using `Object.prototype.toString`.
1251
+ *
1252
+ * @private
1253
+ * @param {*} value The value to convert.
1254
+ * @returns {string} Returns the converted string.
1255
+ */
1256
+ function objectToString(value) {
1257
+ return nativeObjectToString.call(value);
1258
+ }
1259
+
1260
+ _objectToString = objectToString;
1261
+ return _objectToString;
1262
+ }
1263
+
1264
+ var _baseGetTag;
1265
+ var hasRequired_baseGetTag;
1266
+
1267
+ function require_baseGetTag () {
1268
+ if (hasRequired_baseGetTag) return _baseGetTag;
1269
+ hasRequired_baseGetTag = 1;
1270
+ var Symbol = require_Symbol(),
1271
+ getRawTag = require_getRawTag(),
1272
+ objectToString = require_objectToString();
1273
+
1274
+ /** `Object#toString` result references. */
1275
+ var nullTag = '[object Null]',
1276
+ undefinedTag = '[object Undefined]';
1277
+
1278
+ /** Built-in value references. */
1279
+ var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
1280
+
1281
+ /**
1282
+ * The base implementation of `getTag` without fallbacks for buggy environments.
1283
+ *
1284
+ * @private
1285
+ * @param {*} value The value to query.
1286
+ * @returns {string} Returns the `toStringTag`.
1287
+ */
1288
+ function baseGetTag(value) {
1289
+ if (value == null) {
1290
+ return value === undefined ? undefinedTag : nullTag;
1291
+ }
1292
+ return (symToStringTag && symToStringTag in Object(value))
1293
+ ? getRawTag(value)
1294
+ : objectToString(value);
1295
+ }
1296
+
1297
+ _baseGetTag = baseGetTag;
1298
+ return _baseGetTag;
1299
+ }
1109
1300
 
1110
1301
  /**
1111
- * Gets the hash value for `key`.
1302
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
1303
+ * and has a `typeof` result of "object".
1112
1304
  *
1113
- * @private
1114
- * @name get
1115
- * @memberOf Hash
1116
- * @param {string} key The key of the value to get.
1117
- * @returns {*} Returns the entry value.
1305
+ * @static
1306
+ * @memberOf _
1307
+ * @since 4.0.0
1308
+ * @category Lang
1309
+ * @param {*} value The value to check.
1310
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
1311
+ * @example
1312
+ *
1313
+ * _.isObjectLike({});
1314
+ * // => true
1315
+ *
1316
+ * _.isObjectLike([1, 2, 3]);
1317
+ * // => true
1318
+ *
1319
+ * _.isObjectLike(_.noop);
1320
+ * // => false
1321
+ *
1322
+ * _.isObjectLike(null);
1323
+ * // => false
1118
1324
  */
1119
- function hashGet$1(key) {
1120
- var data = this.__data__;
1121
- if (nativeCreate$2) {
1122
- var result = data[key];
1123
- return result === HASH_UNDEFINED$1 ? undefined : result;
1124
- }
1125
- return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
1126
- }
1127
1325
 
1128
- var _hashGet = hashGet$1;
1326
+ var isObjectLike_1;
1327
+ var hasRequiredIsObjectLike;
1129
1328
 
1130
- var nativeCreate$1 = _nativeCreate;
1329
+ function requireIsObjectLike () {
1330
+ if (hasRequiredIsObjectLike) return isObjectLike_1;
1331
+ hasRequiredIsObjectLike = 1;
1332
+ function isObjectLike(value) {
1333
+ return value != null && typeof value == 'object';
1334
+ }
1131
1335
 
1132
- /** Used for built-in method references. */
1133
- var objectProto = Object.prototype;
1336
+ isObjectLike_1 = isObjectLike;
1337
+ return isObjectLike_1;
1338
+ }
1134
1339
 
1135
- /** Used to check objects for own properties. */
1136
- var hasOwnProperty = objectProto.hasOwnProperty;
1340
+ var isSymbol_1;
1341
+ var hasRequiredIsSymbol;
1342
+
1343
+ function requireIsSymbol () {
1344
+ if (hasRequiredIsSymbol) return isSymbol_1;
1345
+ hasRequiredIsSymbol = 1;
1346
+ var baseGetTag = require_baseGetTag(),
1347
+ isObjectLike = requireIsObjectLike();
1348
+
1349
+ /** `Object#toString` result references. */
1350
+ var symbolTag = '[object Symbol]';
1351
+
1352
+ /**
1353
+ * Checks if `value` is classified as a `Symbol` primitive or object.
1354
+ *
1355
+ * @static
1356
+ * @memberOf _
1357
+ * @since 4.0.0
1358
+ * @category Lang
1359
+ * @param {*} value The value to check.
1360
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
1361
+ * @example
1362
+ *
1363
+ * _.isSymbol(Symbol.iterator);
1364
+ * // => true
1365
+ *
1366
+ * _.isSymbol('abc');
1367
+ * // => false
1368
+ */
1369
+ function isSymbol(value) {
1370
+ return typeof value == 'symbol' ||
1371
+ (isObjectLike(value) && baseGetTag(value) == symbolTag);
1372
+ }
1373
+
1374
+ isSymbol_1 = isSymbol;
1375
+ return isSymbol_1;
1376
+ }
1377
+
1378
+ var _isKey;
1379
+ var hasRequired_isKey;
1380
+
1381
+ function require_isKey () {
1382
+ if (hasRequired_isKey) return _isKey;
1383
+ hasRequired_isKey = 1;
1384
+ var isArray = requireIsArray(),
1385
+ isSymbol = requireIsSymbol();
1386
+
1387
+ /** Used to match property names within property paths. */
1388
+ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
1389
+ reIsPlainProp = /^\w*$/;
1390
+
1391
+ /**
1392
+ * Checks if `value` is a property name and not a property path.
1393
+ *
1394
+ * @private
1395
+ * @param {*} value The value to check.
1396
+ * @param {Object} [object] The object to query keys on.
1397
+ * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
1398
+ */
1399
+ function isKey(value, object) {
1400
+ if (isArray(value)) {
1401
+ return false;
1402
+ }
1403
+ var type = typeof value;
1404
+ if (type == 'number' || type == 'symbol' || type == 'boolean' ||
1405
+ value == null || isSymbol(value)) {
1406
+ return true;
1407
+ }
1408
+ return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
1409
+ (object != null && value in Object(object));
1410
+ }
1411
+
1412
+ _isKey = isKey;
1413
+ return _isKey;
1414
+ }
1137
1415
 
1138
1416
  /**
1139
- * Checks if a hash value for `key` exists.
1417
+ * Checks if `value` is the
1418
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
1419
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
1140
1420
  *
1141
- * @private
1142
- * @name has
1143
- * @memberOf Hash
1144
- * @param {string} key The key of the entry to check.
1145
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1421
+ * @static
1422
+ * @memberOf _
1423
+ * @since 0.1.0
1424
+ * @category Lang
1425
+ * @param {*} value The value to check.
1426
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
1427
+ * @example
1428
+ *
1429
+ * _.isObject({});
1430
+ * // => true
1431
+ *
1432
+ * _.isObject([1, 2, 3]);
1433
+ * // => true
1434
+ *
1435
+ * _.isObject(_.noop);
1436
+ * // => true
1437
+ *
1438
+ * _.isObject(null);
1439
+ * // => false
1146
1440
  */
1147
- function hashHas$1(key) {
1148
- var data = this.__data__;
1149
- return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
1441
+
1442
+ var isObject_1;
1443
+ var hasRequiredIsObject;
1444
+
1445
+ function requireIsObject () {
1446
+ if (hasRequiredIsObject) return isObject_1;
1447
+ hasRequiredIsObject = 1;
1448
+ function isObject(value) {
1449
+ var type = typeof value;
1450
+ return value != null && (type == 'object' || type == 'function');
1451
+ }
1452
+
1453
+ isObject_1 = isObject;
1454
+ return isObject_1;
1455
+ }
1456
+
1457
+ var isFunction_1;
1458
+ var hasRequiredIsFunction;
1459
+
1460
+ function requireIsFunction () {
1461
+ if (hasRequiredIsFunction) return isFunction_1;
1462
+ hasRequiredIsFunction = 1;
1463
+ var baseGetTag = require_baseGetTag(),
1464
+ isObject = requireIsObject();
1465
+
1466
+ /** `Object#toString` result references. */
1467
+ var asyncTag = '[object AsyncFunction]',
1468
+ funcTag = '[object Function]',
1469
+ genTag = '[object GeneratorFunction]',
1470
+ proxyTag = '[object Proxy]';
1471
+
1472
+ /**
1473
+ * Checks if `value` is classified as a `Function` object.
1474
+ *
1475
+ * @static
1476
+ * @memberOf _
1477
+ * @since 0.1.0
1478
+ * @category Lang
1479
+ * @param {*} value The value to check.
1480
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
1481
+ * @example
1482
+ *
1483
+ * _.isFunction(_);
1484
+ * // => true
1485
+ *
1486
+ * _.isFunction(/abc/);
1487
+ * // => false
1488
+ */
1489
+ function isFunction(value) {
1490
+ if (!isObject(value)) {
1491
+ return false;
1492
+ }
1493
+ // The use of `Object#toString` avoids issues with the `typeof` operator
1494
+ // in Safari 9 which returns 'object' for typed arrays and other constructors.
1495
+ var tag = baseGetTag(value);
1496
+ return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
1497
+ }
1498
+
1499
+ isFunction_1 = isFunction;
1500
+ return isFunction_1;
1501
+ }
1502
+
1503
+ var _coreJsData;
1504
+ var hasRequired_coreJsData;
1505
+
1506
+ function require_coreJsData () {
1507
+ if (hasRequired_coreJsData) return _coreJsData;
1508
+ hasRequired_coreJsData = 1;
1509
+ var root = require_root();
1510
+
1511
+ /** Used to detect overreaching core-js shims. */
1512
+ var coreJsData = root['__core-js_shared__'];
1513
+
1514
+ _coreJsData = coreJsData;
1515
+ return _coreJsData;
1150
1516
  }
1151
1517
 
1152
- var _hashHas = hashHas$1;
1518
+ var _isMasked;
1519
+ var hasRequired_isMasked;
1520
+
1521
+ function require_isMasked () {
1522
+ if (hasRequired_isMasked) return _isMasked;
1523
+ hasRequired_isMasked = 1;
1524
+ var coreJsData = require_coreJsData();
1525
+
1526
+ /** Used to detect methods masquerading as native. */
1527
+ var maskSrcKey = (function() {
1528
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
1529
+ return uid ? ('Symbol(src)_1.' + uid) : '';
1530
+ }());
1531
+
1532
+ /**
1533
+ * Checks if `func` has its source masked.
1534
+ *
1535
+ * @private
1536
+ * @param {Function} func The function to check.
1537
+ * @returns {boolean} Returns `true` if `func` is masked, else `false`.
1538
+ */
1539
+ function isMasked(func) {
1540
+ return !!maskSrcKey && (maskSrcKey in func);
1541
+ }
1542
+
1543
+ _isMasked = isMasked;
1544
+ return _isMasked;
1545
+ }
1153
1546
 
1154
- var nativeCreate = _nativeCreate;
1547
+ /** Used for built-in method references. */
1155
1548
 
1156
- /** Used to stand-in for `undefined` hash values. */
1157
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
1549
+ var _toSource;
1550
+ var hasRequired_toSource;
1551
+
1552
+ function require_toSource () {
1553
+ if (hasRequired_toSource) return _toSource;
1554
+ hasRequired_toSource = 1;
1555
+ var funcProto = Function.prototype;
1556
+
1557
+ /** Used to resolve the decompiled source of functions. */
1558
+ var funcToString = funcProto.toString;
1559
+
1560
+ /**
1561
+ * Converts `func` to its source code.
1562
+ *
1563
+ * @private
1564
+ * @param {Function} func The function to convert.
1565
+ * @returns {string} Returns the source code.
1566
+ */
1567
+ function toSource(func) {
1568
+ if (func != null) {
1569
+ try {
1570
+ return funcToString.call(func);
1571
+ } catch (e) {}
1572
+ try {
1573
+ return (func + '');
1574
+ } catch (e) {}
1575
+ }
1576
+ return '';
1577
+ }
1578
+
1579
+ _toSource = toSource;
1580
+ return _toSource;
1581
+ }
1582
+
1583
+ var _baseIsNative;
1584
+ var hasRequired_baseIsNative;
1585
+
1586
+ function require_baseIsNative () {
1587
+ if (hasRequired_baseIsNative) return _baseIsNative;
1588
+ hasRequired_baseIsNative = 1;
1589
+ var isFunction = requireIsFunction(),
1590
+ isMasked = require_isMasked(),
1591
+ isObject = requireIsObject(),
1592
+ toSource = require_toSource();
1593
+
1594
+ /**
1595
+ * Used to match `RegExp`
1596
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
1597
+ */
1598
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
1599
+
1600
+ /** Used to detect host constructors (Safari). */
1601
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
1602
+
1603
+ /** Used for built-in method references. */
1604
+ var funcProto = Function.prototype,
1605
+ objectProto = Object.prototype;
1606
+
1607
+ /** Used to resolve the decompiled source of functions. */
1608
+ var funcToString = funcProto.toString;
1609
+
1610
+ /** Used to check objects for own properties. */
1611
+ var hasOwnProperty = objectProto.hasOwnProperty;
1612
+
1613
+ /** Used to detect if a method is native. */
1614
+ var reIsNative = RegExp('^' +
1615
+ funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
1616
+ .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
1617
+ );
1618
+
1619
+ /**
1620
+ * The base implementation of `_.isNative` without bad shim checks.
1621
+ *
1622
+ * @private
1623
+ * @param {*} value The value to check.
1624
+ * @returns {boolean} Returns `true` if `value` is a native function,
1625
+ * else `false`.
1626
+ */
1627
+ function baseIsNative(value) {
1628
+ if (!isObject(value) || isMasked(value)) {
1629
+ return false;
1630
+ }
1631
+ var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
1632
+ return pattern.test(toSource(value));
1633
+ }
1634
+
1635
+ _baseIsNative = baseIsNative;
1636
+ return _baseIsNative;
1637
+ }
1158
1638
 
1159
1639
  /**
1160
- * Sets the hash `key` to `value`.
1640
+ * Gets the value at `key` of `object`.
1161
1641
  *
1162
1642
  * @private
1163
- * @name set
1164
- * @memberOf Hash
1165
- * @param {string} key The key of the value to set.
1166
- * @param {*} value The value to set.
1167
- * @returns {Object} Returns the hash instance.
1643
+ * @param {Object} [object] The object to query.
1644
+ * @param {string} key The key of the property to get.
1645
+ * @returns {*} Returns the property value.
1168
1646
  */
1169
- function hashSet$1(key, value) {
1170
- var data = this.__data__;
1171
- this.size += this.has(key) ? 0 : 1;
1172
- data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
1173
- return this;
1647
+
1648
+ var _getValue;
1649
+ var hasRequired_getValue;
1650
+
1651
+ function require_getValue () {
1652
+ if (hasRequired_getValue) return _getValue;
1653
+ hasRequired_getValue = 1;
1654
+ function getValue(object, key) {
1655
+ return object == null ? undefined : object[key];
1656
+ }
1657
+
1658
+ _getValue = getValue;
1659
+ return _getValue;
1660
+ }
1661
+
1662
+ var _getNative;
1663
+ var hasRequired_getNative;
1664
+
1665
+ function require_getNative () {
1666
+ if (hasRequired_getNative) return _getNative;
1667
+ hasRequired_getNative = 1;
1668
+ var baseIsNative = require_baseIsNative(),
1669
+ getValue = require_getValue();
1670
+
1671
+ /**
1672
+ * Gets the native function at `key` of `object`.
1673
+ *
1674
+ * @private
1675
+ * @param {Object} object The object to query.
1676
+ * @param {string} key The key of the method to get.
1677
+ * @returns {*} Returns the function if it's native, else `undefined`.
1678
+ */
1679
+ function getNative(object, key) {
1680
+ var value = getValue(object, key);
1681
+ return baseIsNative(value) ? value : undefined;
1682
+ }
1683
+
1684
+ _getNative = getNative;
1685
+ return _getNative;
1174
1686
  }
1175
1687
 
1176
- var _hashSet = hashSet$1;
1688
+ var _nativeCreate;
1689
+ var hasRequired_nativeCreate;
1177
1690
 
1178
- var hashClear = _hashClear,
1179
- hashDelete = _hashDelete,
1180
- hashGet = _hashGet,
1181
- hashHas = _hashHas,
1182
- hashSet = _hashSet;
1691
+ function require_nativeCreate () {
1692
+ if (hasRequired_nativeCreate) return _nativeCreate;
1693
+ hasRequired_nativeCreate = 1;
1694
+ var getNative = require_getNative();
1695
+
1696
+ /* Built-in method references that are verified to be native. */
1697
+ var nativeCreate = getNative(Object, 'create');
1698
+
1699
+ _nativeCreate = nativeCreate;
1700
+ return _nativeCreate;
1701
+ }
1702
+
1703
+ var _hashClear;
1704
+ var hasRequired_hashClear;
1705
+
1706
+ function require_hashClear () {
1707
+ if (hasRequired_hashClear) return _hashClear;
1708
+ hasRequired_hashClear = 1;
1709
+ var nativeCreate = require_nativeCreate();
1710
+
1711
+ /**
1712
+ * Removes all key-value entries from the hash.
1713
+ *
1714
+ * @private
1715
+ * @name clear
1716
+ * @memberOf Hash
1717
+ */
1718
+ function hashClear() {
1719
+ this.__data__ = nativeCreate ? nativeCreate(null) : {};
1720
+ this.size = 0;
1721
+ }
1722
+
1723
+ _hashClear = hashClear;
1724
+ return _hashClear;
1725
+ }
1183
1726
 
1184
1727
  /**
1185
- * Creates a hash object.
1728
+ * Removes `key` and its value from the hash.
1186
1729
  *
1187
1730
  * @private
1188
- * @constructor
1189
- * @param {Array} [entries] The key-value pairs to cache.
1731
+ * @name delete
1732
+ * @memberOf Hash
1733
+ * @param {Object} hash The hash to modify.
1734
+ * @param {string} key The key of the value to remove.
1735
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1190
1736
  */
1191
- function Hash$1(entries) {
1192
- var index = -1,
1193
- length = entries == null ? 0 : entries.length;
1194
-
1195
- this.clear();
1196
- while (++index < length) {
1197
- var entry = entries[index];
1198
- this.set(entry[0], entry[1]);
1199
- }
1737
+
1738
+ var _hashDelete;
1739
+ var hasRequired_hashDelete;
1740
+
1741
+ function require_hashDelete () {
1742
+ if (hasRequired_hashDelete) return _hashDelete;
1743
+ hasRequired_hashDelete = 1;
1744
+ function hashDelete(key) {
1745
+ var result = this.has(key) && delete this.__data__[key];
1746
+ this.size -= result ? 1 : 0;
1747
+ return result;
1748
+ }
1749
+
1750
+ _hashDelete = hashDelete;
1751
+ return _hashDelete;
1200
1752
  }
1201
1753
 
1202
- // Add methods to `Hash`.
1203
- Hash$1.prototype.clear = hashClear;
1204
- Hash$1.prototype['delete'] = hashDelete;
1205
- Hash$1.prototype.get = hashGet;
1206
- Hash$1.prototype.has = hashHas;
1207
- Hash$1.prototype.set = hashSet;
1754
+ var _hashGet;
1755
+ var hasRequired_hashGet;
1756
+
1757
+ function require_hashGet () {
1758
+ if (hasRequired_hashGet) return _hashGet;
1759
+ hasRequired_hashGet = 1;
1760
+ var nativeCreate = require_nativeCreate();
1761
+
1762
+ /** Used to stand-in for `undefined` hash values. */
1763
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
1764
+
1765
+ /** Used for built-in method references. */
1766
+ var objectProto = Object.prototype;
1767
+
1768
+ /** Used to check objects for own properties. */
1769
+ var hasOwnProperty = objectProto.hasOwnProperty;
1770
+
1771
+ /**
1772
+ * Gets the hash value for `key`.
1773
+ *
1774
+ * @private
1775
+ * @name get
1776
+ * @memberOf Hash
1777
+ * @param {string} key The key of the value to get.
1778
+ * @returns {*} Returns the entry value.
1779
+ */
1780
+ function hashGet(key) {
1781
+ var data = this.__data__;
1782
+ if (nativeCreate) {
1783
+ var result = data[key];
1784
+ return result === HASH_UNDEFINED ? undefined : result;
1785
+ }
1786
+ return hasOwnProperty.call(data, key) ? data[key] : undefined;
1787
+ }
1788
+
1789
+ _hashGet = hashGet;
1790
+ return _hashGet;
1791
+ }
1792
+
1793
+ var _hashHas;
1794
+ var hasRequired_hashHas;
1795
+
1796
+ function require_hashHas () {
1797
+ if (hasRequired_hashHas) return _hashHas;
1798
+ hasRequired_hashHas = 1;
1799
+ var nativeCreate = require_nativeCreate();
1800
+
1801
+ /** Used for built-in method references. */
1802
+ var objectProto = Object.prototype;
1803
+
1804
+ /** Used to check objects for own properties. */
1805
+ var hasOwnProperty = objectProto.hasOwnProperty;
1806
+
1807
+ /**
1808
+ * Checks if a hash value for `key` exists.
1809
+ *
1810
+ * @private
1811
+ * @name has
1812
+ * @memberOf Hash
1813
+ * @param {string} key The key of the entry to check.
1814
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1815
+ */
1816
+ function hashHas(key) {
1817
+ var data = this.__data__;
1818
+ return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
1819
+ }
1820
+
1821
+ _hashHas = hashHas;
1822
+ return _hashHas;
1823
+ }
1208
1824
 
1209
- var _Hash = Hash$1;
1825
+ var _hashSet;
1826
+ var hasRequired_hashSet;
1827
+
1828
+ function require_hashSet () {
1829
+ if (hasRequired_hashSet) return _hashSet;
1830
+ hasRequired_hashSet = 1;
1831
+ var nativeCreate = require_nativeCreate();
1832
+
1833
+ /** Used to stand-in for `undefined` hash values. */
1834
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
1835
+
1836
+ /**
1837
+ * Sets the hash `key` to `value`.
1838
+ *
1839
+ * @private
1840
+ * @name set
1841
+ * @memberOf Hash
1842
+ * @param {string} key The key of the value to set.
1843
+ * @param {*} value The value to set.
1844
+ * @returns {Object} Returns the hash instance.
1845
+ */
1846
+ function hashSet(key, value) {
1847
+ var data = this.__data__;
1848
+ this.size += this.has(key) ? 0 : 1;
1849
+ data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
1850
+ return this;
1851
+ }
1852
+
1853
+ _hashSet = hashSet;
1854
+ return _hashSet;
1855
+ }
1856
+
1857
+ var _Hash;
1858
+ var hasRequired_Hash;
1859
+
1860
+ function require_Hash () {
1861
+ if (hasRequired_Hash) return _Hash;
1862
+ hasRequired_Hash = 1;
1863
+ var hashClear = require_hashClear(),
1864
+ hashDelete = require_hashDelete(),
1865
+ hashGet = require_hashGet(),
1866
+ hashHas = require_hashHas(),
1867
+ hashSet = require_hashSet();
1868
+
1869
+ /**
1870
+ * Creates a hash object.
1871
+ *
1872
+ * @private
1873
+ * @constructor
1874
+ * @param {Array} [entries] The key-value pairs to cache.
1875
+ */
1876
+ function Hash(entries) {
1877
+ var index = -1,
1878
+ length = entries == null ? 0 : entries.length;
1879
+
1880
+ this.clear();
1881
+ while (++index < length) {
1882
+ var entry = entries[index];
1883
+ this.set(entry[0], entry[1]);
1884
+ }
1885
+ }
1886
+
1887
+ // Add methods to `Hash`.
1888
+ Hash.prototype.clear = hashClear;
1889
+ Hash.prototype['delete'] = hashDelete;
1890
+ Hash.prototype.get = hashGet;
1891
+ Hash.prototype.has = hashHas;
1892
+ Hash.prototype.set = hashSet;
1893
+
1894
+ _Hash = Hash;
1895
+ return _Hash;
1896
+ }
1210
1897
 
1211
1898
  /**
1212
1899
  * Removes all key-value entries from the list cache.
@@ -1216,12 +1903,20 @@ var _Hash = Hash$1;
1216
1903
  * @memberOf ListCache
1217
1904
  */
1218
1905
 
1219
- function listCacheClear$1() {
1220
- this.__data__ = [];
1221
- this.size = 0;
1222
- }
1906
+ var _listCacheClear;
1907
+ var hasRequired_listCacheClear;
1908
+
1909
+ function require_listCacheClear () {
1910
+ if (hasRequired_listCacheClear) return _listCacheClear;
1911
+ hasRequired_listCacheClear = 1;
1912
+ function listCacheClear() {
1913
+ this.__data__ = [];
1914
+ this.size = 0;
1915
+ }
1223
1916
 
1224
- var _listCacheClear = listCacheClear$1;
1917
+ _listCacheClear = listCacheClear;
1918
+ return _listCacheClear;
1919
+ }
1225
1920
 
1226
1921
  /**
1227
1922
  * Performs a
@@ -1256,469 +1951,2027 @@ var _listCacheClear = listCacheClear$1;
1256
1951
  * // => true
1257
1952
  */
1258
1953
 
1259
- function eq$1(value, other) {
1260
- return value === other || (value !== value && other !== other);
1954
+ var eq_1;
1955
+ var hasRequiredEq;
1956
+
1957
+ function requireEq () {
1958
+ if (hasRequiredEq) return eq_1;
1959
+ hasRequiredEq = 1;
1960
+ function eq(value, other) {
1961
+ return value === other || (value !== value && other !== other);
1962
+ }
1963
+
1964
+ eq_1 = eq;
1965
+ return eq_1;
1261
1966
  }
1262
1967
 
1263
- var eq_1 = eq$1;
1968
+ var _assocIndexOf;
1969
+ var hasRequired_assocIndexOf;
1970
+
1971
+ function require_assocIndexOf () {
1972
+ if (hasRequired_assocIndexOf) return _assocIndexOf;
1973
+ hasRequired_assocIndexOf = 1;
1974
+ var eq = requireEq();
1975
+
1976
+ /**
1977
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
1978
+ *
1979
+ * @private
1980
+ * @param {Array} array The array to inspect.
1981
+ * @param {*} key The key to search for.
1982
+ * @returns {number} Returns the index of the matched value, else `-1`.
1983
+ */
1984
+ function assocIndexOf(array, key) {
1985
+ var length = array.length;
1986
+ while (length--) {
1987
+ if (eq(array[length][0], key)) {
1988
+ return length;
1989
+ }
1990
+ }
1991
+ return -1;
1992
+ }
1993
+
1994
+ _assocIndexOf = assocIndexOf;
1995
+ return _assocIndexOf;
1996
+ }
1264
1997
 
1265
- var eq = eq_1;
1998
+ var _listCacheDelete;
1999
+ var hasRequired_listCacheDelete;
2000
+
2001
+ function require_listCacheDelete () {
2002
+ if (hasRequired_listCacheDelete) return _listCacheDelete;
2003
+ hasRequired_listCacheDelete = 1;
2004
+ var assocIndexOf = require_assocIndexOf();
2005
+
2006
+ /** Used for built-in method references. */
2007
+ var arrayProto = Array.prototype;
2008
+
2009
+ /** Built-in value references. */
2010
+ var splice = arrayProto.splice;
2011
+
2012
+ /**
2013
+ * Removes `key` and its value from the list cache.
2014
+ *
2015
+ * @private
2016
+ * @name delete
2017
+ * @memberOf ListCache
2018
+ * @param {string} key The key of the value to remove.
2019
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
2020
+ */
2021
+ function listCacheDelete(key) {
2022
+ var data = this.__data__,
2023
+ index = assocIndexOf(data, key);
2024
+
2025
+ if (index < 0) {
2026
+ return false;
2027
+ }
2028
+ var lastIndex = data.length - 1;
2029
+ if (index == lastIndex) {
2030
+ data.pop();
2031
+ } else {
2032
+ splice.call(data, index, 1);
2033
+ }
2034
+ --this.size;
2035
+ return true;
2036
+ }
2037
+
2038
+ _listCacheDelete = listCacheDelete;
2039
+ return _listCacheDelete;
2040
+ }
1266
2041
 
1267
- /**
1268
- * Gets the index at which the `key` is found in `array` of key-value pairs.
1269
- *
1270
- * @private
1271
- * @param {Array} array The array to inspect.
1272
- * @param {*} key The key to search for.
1273
- * @returns {number} Returns the index of the matched value, else `-1`.
1274
- */
1275
- function assocIndexOf$4(array, key) {
1276
- var length = array.length;
1277
- while (length--) {
1278
- if (eq(array[length][0], key)) {
1279
- return length;
1280
- }
1281
- }
1282
- return -1;
2042
+ var _listCacheGet;
2043
+ var hasRequired_listCacheGet;
2044
+
2045
+ function require_listCacheGet () {
2046
+ if (hasRequired_listCacheGet) return _listCacheGet;
2047
+ hasRequired_listCacheGet = 1;
2048
+ var assocIndexOf = require_assocIndexOf();
2049
+
2050
+ /**
2051
+ * Gets the list cache value for `key`.
2052
+ *
2053
+ * @private
2054
+ * @name get
2055
+ * @memberOf ListCache
2056
+ * @param {string} key The key of the value to get.
2057
+ * @returns {*} Returns the entry value.
2058
+ */
2059
+ function listCacheGet(key) {
2060
+ var data = this.__data__,
2061
+ index = assocIndexOf(data, key);
2062
+
2063
+ return index < 0 ? undefined : data[index][1];
2064
+ }
2065
+
2066
+ _listCacheGet = listCacheGet;
2067
+ return _listCacheGet;
1283
2068
  }
1284
2069
 
1285
- var _assocIndexOf = assocIndexOf$4;
2070
+ var _listCacheHas;
2071
+ var hasRequired_listCacheHas;
2072
+
2073
+ function require_listCacheHas () {
2074
+ if (hasRequired_listCacheHas) return _listCacheHas;
2075
+ hasRequired_listCacheHas = 1;
2076
+ var assocIndexOf = require_assocIndexOf();
2077
+
2078
+ /**
2079
+ * Checks if a list cache value for `key` exists.
2080
+ *
2081
+ * @private
2082
+ * @name has
2083
+ * @memberOf ListCache
2084
+ * @param {string} key The key of the entry to check.
2085
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
2086
+ */
2087
+ function listCacheHas(key) {
2088
+ return assocIndexOf(this.__data__, key) > -1;
2089
+ }
2090
+
2091
+ _listCacheHas = listCacheHas;
2092
+ return _listCacheHas;
2093
+ }
1286
2094
 
1287
- var assocIndexOf$3 = _assocIndexOf;
2095
+ var _listCacheSet;
2096
+ var hasRequired_listCacheSet;
2097
+
2098
+ function require_listCacheSet () {
2099
+ if (hasRequired_listCacheSet) return _listCacheSet;
2100
+ hasRequired_listCacheSet = 1;
2101
+ var assocIndexOf = require_assocIndexOf();
2102
+
2103
+ /**
2104
+ * Sets the list cache `key` to `value`.
2105
+ *
2106
+ * @private
2107
+ * @name set
2108
+ * @memberOf ListCache
2109
+ * @param {string} key The key of the value to set.
2110
+ * @param {*} value The value to set.
2111
+ * @returns {Object} Returns the list cache instance.
2112
+ */
2113
+ function listCacheSet(key, value) {
2114
+ var data = this.__data__,
2115
+ index = assocIndexOf(data, key);
2116
+
2117
+ if (index < 0) {
2118
+ ++this.size;
2119
+ data.push([key, value]);
2120
+ } else {
2121
+ data[index][1] = value;
2122
+ }
2123
+ return this;
2124
+ }
2125
+
2126
+ _listCacheSet = listCacheSet;
2127
+ return _listCacheSet;
2128
+ }
1288
2129
 
1289
- /** Used for built-in method references. */
1290
- var arrayProto = Array.prototype;
2130
+ var _ListCache;
2131
+ var hasRequired_ListCache;
2132
+
2133
+ function require_ListCache () {
2134
+ if (hasRequired_ListCache) return _ListCache;
2135
+ hasRequired_ListCache = 1;
2136
+ var listCacheClear = require_listCacheClear(),
2137
+ listCacheDelete = require_listCacheDelete(),
2138
+ listCacheGet = require_listCacheGet(),
2139
+ listCacheHas = require_listCacheHas(),
2140
+ listCacheSet = require_listCacheSet();
2141
+
2142
+ /**
2143
+ * Creates an list cache object.
2144
+ *
2145
+ * @private
2146
+ * @constructor
2147
+ * @param {Array} [entries] The key-value pairs to cache.
2148
+ */
2149
+ function ListCache(entries) {
2150
+ var index = -1,
2151
+ length = entries == null ? 0 : entries.length;
2152
+
2153
+ this.clear();
2154
+ while (++index < length) {
2155
+ var entry = entries[index];
2156
+ this.set(entry[0], entry[1]);
2157
+ }
2158
+ }
2159
+
2160
+ // Add methods to `ListCache`.
2161
+ ListCache.prototype.clear = listCacheClear;
2162
+ ListCache.prototype['delete'] = listCacheDelete;
2163
+ ListCache.prototype.get = listCacheGet;
2164
+ ListCache.prototype.has = listCacheHas;
2165
+ ListCache.prototype.set = listCacheSet;
2166
+
2167
+ _ListCache = ListCache;
2168
+ return _ListCache;
2169
+ }
1291
2170
 
1292
- /** Built-in value references. */
1293
- var splice = arrayProto.splice;
2171
+ var _Map;
2172
+ var hasRequired_Map;
2173
+
2174
+ function require_Map () {
2175
+ if (hasRequired_Map) return _Map;
2176
+ hasRequired_Map = 1;
2177
+ var getNative = require_getNative(),
2178
+ root = require_root();
2179
+
2180
+ /* Built-in method references that are verified to be native. */
2181
+ var Map = getNative(root, 'Map');
2182
+
2183
+ _Map = Map;
2184
+ return _Map;
2185
+ }
2186
+
2187
+ var _mapCacheClear;
2188
+ var hasRequired_mapCacheClear;
2189
+
2190
+ function require_mapCacheClear () {
2191
+ if (hasRequired_mapCacheClear) return _mapCacheClear;
2192
+ hasRequired_mapCacheClear = 1;
2193
+ var Hash = require_Hash(),
2194
+ ListCache = require_ListCache(),
2195
+ Map = require_Map();
2196
+
2197
+ /**
2198
+ * Removes all key-value entries from the map.
2199
+ *
2200
+ * @private
2201
+ * @name clear
2202
+ * @memberOf MapCache
2203
+ */
2204
+ function mapCacheClear() {
2205
+ this.size = 0;
2206
+ this.__data__ = {
2207
+ 'hash': new Hash,
2208
+ 'map': new (Map || ListCache),
2209
+ 'string': new Hash
2210
+ };
2211
+ }
2212
+
2213
+ _mapCacheClear = mapCacheClear;
2214
+ return _mapCacheClear;
2215
+ }
1294
2216
 
1295
2217
  /**
1296
- * Removes `key` and its value from the list cache.
2218
+ * Checks if `value` is suitable for use as unique object key.
1297
2219
  *
1298
2220
  * @private
1299
- * @name delete
1300
- * @memberOf ListCache
1301
- * @param {string} key The key of the value to remove.
1302
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
2221
+ * @param {*} value The value to check.
2222
+ * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1303
2223
  */
1304
- function listCacheDelete$1(key) {
1305
- var data = this.__data__,
1306
- index = assocIndexOf$3(data, key);
1307
2224
 
1308
- if (index < 0) {
1309
- return false;
1310
- }
1311
- var lastIndex = data.length - 1;
1312
- if (index == lastIndex) {
1313
- data.pop();
1314
- } else {
1315
- splice.call(data, index, 1);
1316
- }
1317
- --this.size;
1318
- return true;
2225
+ var _isKeyable;
2226
+ var hasRequired_isKeyable;
2227
+
2228
+ function require_isKeyable () {
2229
+ if (hasRequired_isKeyable) return _isKeyable;
2230
+ hasRequired_isKeyable = 1;
2231
+ function isKeyable(value) {
2232
+ var type = typeof value;
2233
+ return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
2234
+ ? (value !== '__proto__')
2235
+ : (value === null);
2236
+ }
2237
+
2238
+ _isKeyable = isKeyable;
2239
+ return _isKeyable;
1319
2240
  }
1320
2241
 
1321
- var _listCacheDelete = listCacheDelete$1;
2242
+ var _getMapData;
2243
+ var hasRequired_getMapData;
2244
+
2245
+ function require_getMapData () {
2246
+ if (hasRequired_getMapData) return _getMapData;
2247
+ hasRequired_getMapData = 1;
2248
+ var isKeyable = require_isKeyable();
2249
+
2250
+ /**
2251
+ * Gets the data for `map`.
2252
+ *
2253
+ * @private
2254
+ * @param {Object} map The map to query.
2255
+ * @param {string} key The reference key.
2256
+ * @returns {*} Returns the map data.
2257
+ */
2258
+ function getMapData(map, key) {
2259
+ var data = map.__data__;
2260
+ return isKeyable(key)
2261
+ ? data[typeof key == 'string' ? 'string' : 'hash']
2262
+ : data.map;
2263
+ }
2264
+
2265
+ _getMapData = getMapData;
2266
+ return _getMapData;
2267
+ }
1322
2268
 
1323
- var assocIndexOf$2 = _assocIndexOf;
2269
+ var _mapCacheDelete;
2270
+ var hasRequired_mapCacheDelete;
2271
+
2272
+ function require_mapCacheDelete () {
2273
+ if (hasRequired_mapCacheDelete) return _mapCacheDelete;
2274
+ hasRequired_mapCacheDelete = 1;
2275
+ var getMapData = require_getMapData();
2276
+
2277
+ /**
2278
+ * Removes `key` and its value from the map.
2279
+ *
2280
+ * @private
2281
+ * @name delete
2282
+ * @memberOf MapCache
2283
+ * @param {string} key The key of the value to remove.
2284
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
2285
+ */
2286
+ function mapCacheDelete(key) {
2287
+ var result = getMapData(this, key)['delete'](key);
2288
+ this.size -= result ? 1 : 0;
2289
+ return result;
2290
+ }
2291
+
2292
+ _mapCacheDelete = mapCacheDelete;
2293
+ return _mapCacheDelete;
2294
+ }
1324
2295
 
1325
- /**
1326
- * Gets the list cache value for `key`.
1327
- *
1328
- * @private
1329
- * @name get
1330
- * @memberOf ListCache
1331
- * @param {string} key The key of the value to get.
1332
- * @returns {*} Returns the entry value.
1333
- */
1334
- function listCacheGet$1(key) {
1335
- var data = this.__data__,
1336
- index = assocIndexOf$2(data, key);
2296
+ var _mapCacheGet;
2297
+ var hasRequired_mapCacheGet;
2298
+
2299
+ function require_mapCacheGet () {
2300
+ if (hasRequired_mapCacheGet) return _mapCacheGet;
2301
+ hasRequired_mapCacheGet = 1;
2302
+ var getMapData = require_getMapData();
2303
+
2304
+ /**
2305
+ * Gets the map value for `key`.
2306
+ *
2307
+ * @private
2308
+ * @name get
2309
+ * @memberOf MapCache
2310
+ * @param {string} key The key of the value to get.
2311
+ * @returns {*} Returns the entry value.
2312
+ */
2313
+ function mapCacheGet(key) {
2314
+ return getMapData(this, key).get(key);
2315
+ }
2316
+
2317
+ _mapCacheGet = mapCacheGet;
2318
+ return _mapCacheGet;
2319
+ }
1337
2320
 
1338
- return index < 0 ? undefined : data[index][1];
2321
+ var _mapCacheHas;
2322
+ var hasRequired_mapCacheHas;
2323
+
2324
+ function require_mapCacheHas () {
2325
+ if (hasRequired_mapCacheHas) return _mapCacheHas;
2326
+ hasRequired_mapCacheHas = 1;
2327
+ var getMapData = require_getMapData();
2328
+
2329
+ /**
2330
+ * Checks if a map value for `key` exists.
2331
+ *
2332
+ * @private
2333
+ * @name has
2334
+ * @memberOf MapCache
2335
+ * @param {string} key The key of the entry to check.
2336
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
2337
+ */
2338
+ function mapCacheHas(key) {
2339
+ return getMapData(this, key).has(key);
2340
+ }
2341
+
2342
+ _mapCacheHas = mapCacheHas;
2343
+ return _mapCacheHas;
1339
2344
  }
1340
2345
 
1341
- var _listCacheGet = listCacheGet$1;
2346
+ var _mapCacheSet;
2347
+ var hasRequired_mapCacheSet;
2348
+
2349
+ function require_mapCacheSet () {
2350
+ if (hasRequired_mapCacheSet) return _mapCacheSet;
2351
+ hasRequired_mapCacheSet = 1;
2352
+ var getMapData = require_getMapData();
2353
+
2354
+ /**
2355
+ * Sets the map `key` to `value`.
2356
+ *
2357
+ * @private
2358
+ * @name set
2359
+ * @memberOf MapCache
2360
+ * @param {string} key The key of the value to set.
2361
+ * @param {*} value The value to set.
2362
+ * @returns {Object} Returns the map cache instance.
2363
+ */
2364
+ function mapCacheSet(key, value) {
2365
+ var data = getMapData(this, key),
2366
+ size = data.size;
2367
+
2368
+ data.set(key, value);
2369
+ this.size += data.size == size ? 0 : 1;
2370
+ return this;
2371
+ }
2372
+
2373
+ _mapCacheSet = mapCacheSet;
2374
+ return _mapCacheSet;
2375
+ }
1342
2376
 
1343
- var assocIndexOf$1 = _assocIndexOf;
2377
+ var _MapCache;
2378
+ var hasRequired_MapCache;
2379
+
2380
+ function require_MapCache () {
2381
+ if (hasRequired_MapCache) return _MapCache;
2382
+ hasRequired_MapCache = 1;
2383
+ var mapCacheClear = require_mapCacheClear(),
2384
+ mapCacheDelete = require_mapCacheDelete(),
2385
+ mapCacheGet = require_mapCacheGet(),
2386
+ mapCacheHas = require_mapCacheHas(),
2387
+ mapCacheSet = require_mapCacheSet();
2388
+
2389
+ /**
2390
+ * Creates a map cache object to store key-value pairs.
2391
+ *
2392
+ * @private
2393
+ * @constructor
2394
+ * @param {Array} [entries] The key-value pairs to cache.
2395
+ */
2396
+ function MapCache(entries) {
2397
+ var index = -1,
2398
+ length = entries == null ? 0 : entries.length;
2399
+
2400
+ this.clear();
2401
+ while (++index < length) {
2402
+ var entry = entries[index];
2403
+ this.set(entry[0], entry[1]);
2404
+ }
2405
+ }
2406
+
2407
+ // Add methods to `MapCache`.
2408
+ MapCache.prototype.clear = mapCacheClear;
2409
+ MapCache.prototype['delete'] = mapCacheDelete;
2410
+ MapCache.prototype.get = mapCacheGet;
2411
+ MapCache.prototype.has = mapCacheHas;
2412
+ MapCache.prototype.set = mapCacheSet;
2413
+
2414
+ _MapCache = MapCache;
2415
+ return _MapCache;
2416
+ }
1344
2417
 
1345
- /**
1346
- * Checks if a list cache value for `key` exists.
1347
- *
1348
- * @private
1349
- * @name has
1350
- * @memberOf ListCache
1351
- * @param {string} key The key of the entry to check.
1352
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1353
- */
1354
- function listCacheHas$1(key) {
1355
- return assocIndexOf$1(this.__data__, key) > -1;
2418
+ var memoize_1;
2419
+ var hasRequiredMemoize;
2420
+
2421
+ function requireMemoize () {
2422
+ if (hasRequiredMemoize) return memoize_1;
2423
+ hasRequiredMemoize = 1;
2424
+ var MapCache = require_MapCache();
2425
+
2426
+ /** Error message constants. */
2427
+ var FUNC_ERROR_TEXT = 'Expected a function';
2428
+
2429
+ /**
2430
+ * Creates a function that memoizes the result of `func`. If `resolver` is
2431
+ * provided, it determines the cache key for storing the result based on the
2432
+ * arguments provided to the memoized function. By default, the first argument
2433
+ * provided to the memoized function is used as the map cache key. The `func`
2434
+ * is invoked with the `this` binding of the memoized function.
2435
+ *
2436
+ * **Note:** The cache is exposed as the `cache` property on the memoized
2437
+ * function. Its creation may be customized by replacing the `_.memoize.Cache`
2438
+ * constructor with one whose instances implement the
2439
+ * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
2440
+ * method interface of `clear`, `delete`, `get`, `has`, and `set`.
2441
+ *
2442
+ * @static
2443
+ * @memberOf _
2444
+ * @since 0.1.0
2445
+ * @category Function
2446
+ * @param {Function} func The function to have its output memoized.
2447
+ * @param {Function} [resolver] The function to resolve the cache key.
2448
+ * @returns {Function} Returns the new memoized function.
2449
+ * @example
2450
+ *
2451
+ * var object = { 'a': 1, 'b': 2 };
2452
+ * var other = { 'c': 3, 'd': 4 };
2453
+ *
2454
+ * var values = _.memoize(_.values);
2455
+ * values(object);
2456
+ * // => [1, 2]
2457
+ *
2458
+ * values(other);
2459
+ * // => [3, 4]
2460
+ *
2461
+ * object.a = 2;
2462
+ * values(object);
2463
+ * // => [1, 2]
2464
+ *
2465
+ * // Modify the result cache.
2466
+ * values.cache.set(object, ['a', 'b']);
2467
+ * values(object);
2468
+ * // => ['a', 'b']
2469
+ *
2470
+ * // Replace `_.memoize.Cache`.
2471
+ * _.memoize.Cache = WeakMap;
2472
+ */
2473
+ function memoize(func, resolver) {
2474
+ if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
2475
+ throw new TypeError(FUNC_ERROR_TEXT);
2476
+ }
2477
+ var memoized = function() {
2478
+ var args = arguments,
2479
+ key = resolver ? resolver.apply(this, args) : args[0],
2480
+ cache = memoized.cache;
2481
+
2482
+ if (cache.has(key)) {
2483
+ return cache.get(key);
2484
+ }
2485
+ var result = func.apply(this, args);
2486
+ memoized.cache = cache.set(key, result) || cache;
2487
+ return result;
2488
+ };
2489
+ memoized.cache = new (memoize.Cache || MapCache);
2490
+ return memoized;
2491
+ }
2492
+
2493
+ // Expose `MapCache`.
2494
+ memoize.Cache = MapCache;
2495
+
2496
+ memoize_1 = memoize;
2497
+ return memoize_1;
1356
2498
  }
1357
2499
 
1358
- var _listCacheHas = listCacheHas$1;
2500
+ var _memoizeCapped;
2501
+ var hasRequired_memoizeCapped;
2502
+
2503
+ function require_memoizeCapped () {
2504
+ if (hasRequired_memoizeCapped) return _memoizeCapped;
2505
+ hasRequired_memoizeCapped = 1;
2506
+ var memoize = requireMemoize();
2507
+
2508
+ /** Used as the maximum memoize cache size. */
2509
+ var MAX_MEMOIZE_SIZE = 500;
2510
+
2511
+ /**
2512
+ * A specialized version of `_.memoize` which clears the memoized function's
2513
+ * cache when it exceeds `MAX_MEMOIZE_SIZE`.
2514
+ *
2515
+ * @private
2516
+ * @param {Function} func The function to have its output memoized.
2517
+ * @returns {Function} Returns the new memoized function.
2518
+ */
2519
+ function memoizeCapped(func) {
2520
+ var result = memoize(func, function(key) {
2521
+ if (cache.size === MAX_MEMOIZE_SIZE) {
2522
+ cache.clear();
2523
+ }
2524
+ return key;
2525
+ });
2526
+
2527
+ var cache = result.cache;
2528
+ return result;
2529
+ }
2530
+
2531
+ _memoizeCapped = memoizeCapped;
2532
+ return _memoizeCapped;
2533
+ }
1359
2534
 
1360
- var assocIndexOf = _assocIndexOf;
2535
+ var _stringToPath;
2536
+ var hasRequired_stringToPath;
2537
+
2538
+ function require_stringToPath () {
2539
+ if (hasRequired_stringToPath) return _stringToPath;
2540
+ hasRequired_stringToPath = 1;
2541
+ var memoizeCapped = require_memoizeCapped();
2542
+
2543
+ /** Used to match property names within property paths. */
2544
+ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
2545
+
2546
+ /** Used to match backslashes in property paths. */
2547
+ var reEscapeChar = /\\(\\)?/g;
2548
+
2549
+ /**
2550
+ * Converts `string` to a property path array.
2551
+ *
2552
+ * @private
2553
+ * @param {string} string The string to convert.
2554
+ * @returns {Array} Returns the property path array.
2555
+ */
2556
+ var stringToPath = memoizeCapped(function(string) {
2557
+ var result = [];
2558
+ if (string.charCodeAt(0) === 46 /* . */) {
2559
+ result.push('');
2560
+ }
2561
+ string.replace(rePropName, function(match, number, quote, subString) {
2562
+ result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
2563
+ });
2564
+ return result;
2565
+ });
2566
+
2567
+ _stringToPath = stringToPath;
2568
+ return _stringToPath;
2569
+ }
1361
2570
 
1362
2571
  /**
1363
- * Sets the list cache `key` to `value`.
2572
+ * A specialized version of `_.map` for arrays without support for iteratee
2573
+ * shorthands.
1364
2574
  *
1365
2575
  * @private
1366
- * @name set
1367
- * @memberOf ListCache
1368
- * @param {string} key The key of the value to set.
1369
- * @param {*} value The value to set.
1370
- * @returns {Object} Returns the list cache instance.
2576
+ * @param {Array} [array] The array to iterate over.
2577
+ * @param {Function} iteratee The function invoked per iteration.
2578
+ * @returns {Array} Returns the new mapped array.
1371
2579
  */
1372
- function listCacheSet$1(key, value) {
1373
- var data = this.__data__,
1374
- index = assocIndexOf(data, key);
1375
-
1376
- if (index < 0) {
1377
- ++this.size;
1378
- data.push([key, value]);
1379
- } else {
1380
- data[index][1] = value;
1381
- }
1382
- return this;
2580
+
2581
+ var _arrayMap;
2582
+ var hasRequired_arrayMap;
2583
+
2584
+ function require_arrayMap () {
2585
+ if (hasRequired_arrayMap) return _arrayMap;
2586
+ hasRequired_arrayMap = 1;
2587
+ function arrayMap(array, iteratee) {
2588
+ var index = -1,
2589
+ length = array == null ? 0 : array.length,
2590
+ result = Array(length);
2591
+
2592
+ while (++index < length) {
2593
+ result[index] = iteratee(array[index], index, array);
2594
+ }
2595
+ return result;
2596
+ }
2597
+
2598
+ _arrayMap = arrayMap;
2599
+ return _arrayMap;
1383
2600
  }
1384
2601
 
1385
- var _listCacheSet = listCacheSet$1;
2602
+ var _baseToString;
2603
+ var hasRequired_baseToString;
2604
+
2605
+ function require_baseToString () {
2606
+ if (hasRequired_baseToString) return _baseToString;
2607
+ hasRequired_baseToString = 1;
2608
+ var Symbol = require_Symbol(),
2609
+ arrayMap = require_arrayMap(),
2610
+ isArray = requireIsArray(),
2611
+ isSymbol = requireIsSymbol();
2612
+
2613
+ /** Used to convert symbols to primitives and strings. */
2614
+ var symbolProto = Symbol ? Symbol.prototype : undefined,
2615
+ symbolToString = symbolProto ? symbolProto.toString : undefined;
2616
+
2617
+ /**
2618
+ * The base implementation of `_.toString` which doesn't convert nullish
2619
+ * values to empty strings.
2620
+ *
2621
+ * @private
2622
+ * @param {*} value The value to process.
2623
+ * @returns {string} Returns the string.
2624
+ */
2625
+ function baseToString(value) {
2626
+ // Exit early for strings to avoid a performance hit in some environments.
2627
+ if (typeof value == 'string') {
2628
+ return value;
2629
+ }
2630
+ if (isArray(value)) {
2631
+ // Recursively convert values (susceptible to call stack limits).
2632
+ return arrayMap(value, baseToString) + '';
2633
+ }
2634
+ if (isSymbol(value)) {
2635
+ return symbolToString ? symbolToString.call(value) : '';
2636
+ }
2637
+ var result = (value + '');
2638
+ return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
2639
+ }
2640
+
2641
+ _baseToString = baseToString;
2642
+ return _baseToString;
2643
+ }
1386
2644
 
1387
- var listCacheClear = _listCacheClear,
1388
- listCacheDelete = _listCacheDelete,
1389
- listCacheGet = _listCacheGet,
1390
- listCacheHas = _listCacheHas,
1391
- listCacheSet = _listCacheSet;
2645
+ var toString_1;
2646
+ var hasRequiredToString;
2647
+
2648
+ function requireToString () {
2649
+ if (hasRequiredToString) return toString_1;
2650
+ hasRequiredToString = 1;
2651
+ var baseToString = require_baseToString();
2652
+
2653
+ /**
2654
+ * Converts `value` to a string. An empty string is returned for `null`
2655
+ * and `undefined` values. The sign of `-0` is preserved.
2656
+ *
2657
+ * @static
2658
+ * @memberOf _
2659
+ * @since 4.0.0
2660
+ * @category Lang
2661
+ * @param {*} value The value to convert.
2662
+ * @returns {string} Returns the converted string.
2663
+ * @example
2664
+ *
2665
+ * _.toString(null);
2666
+ * // => ''
2667
+ *
2668
+ * _.toString(-0);
2669
+ * // => '-0'
2670
+ *
2671
+ * _.toString([1, 2, 3]);
2672
+ * // => '1,2,3'
2673
+ */
2674
+ function toString(value) {
2675
+ return value == null ? '' : baseToString(value);
2676
+ }
2677
+
2678
+ toString_1 = toString;
2679
+ return toString_1;
2680
+ }
1392
2681
 
1393
- /**
1394
- * Creates an list cache object.
1395
- *
1396
- * @private
1397
- * @constructor
1398
- * @param {Array} [entries] The key-value pairs to cache.
1399
- */
1400
- function ListCache$1(entries) {
1401
- var index = -1,
1402
- length = entries == null ? 0 : entries.length;
1403
-
1404
- this.clear();
1405
- while (++index < length) {
1406
- var entry = entries[index];
1407
- this.set(entry[0], entry[1]);
1408
- }
2682
+ var _castPath;
2683
+ var hasRequired_castPath;
2684
+
2685
+ function require_castPath () {
2686
+ if (hasRequired_castPath) return _castPath;
2687
+ hasRequired_castPath = 1;
2688
+ var isArray = requireIsArray(),
2689
+ isKey = require_isKey(),
2690
+ stringToPath = require_stringToPath(),
2691
+ toString = requireToString();
2692
+
2693
+ /**
2694
+ * Casts `value` to a path array if it's not one.
2695
+ *
2696
+ * @private
2697
+ * @param {*} value The value to inspect.
2698
+ * @param {Object} [object] The object to query keys on.
2699
+ * @returns {Array} Returns the cast property path array.
2700
+ */
2701
+ function castPath(value, object) {
2702
+ if (isArray(value)) {
2703
+ return value;
2704
+ }
2705
+ return isKey(value, object) ? [value] : stringToPath(toString(value));
2706
+ }
2707
+
2708
+ _castPath = castPath;
2709
+ return _castPath;
1409
2710
  }
1410
2711
 
1411
- // Add methods to `ListCache`.
1412
- ListCache$1.prototype.clear = listCacheClear;
1413
- ListCache$1.prototype['delete'] = listCacheDelete;
1414
- ListCache$1.prototype.get = listCacheGet;
1415
- ListCache$1.prototype.has = listCacheHas;
1416
- ListCache$1.prototype.set = listCacheSet;
2712
+ var _toKey;
2713
+ var hasRequired_toKey;
2714
+
2715
+ function require_toKey () {
2716
+ if (hasRequired_toKey) return _toKey;
2717
+ hasRequired_toKey = 1;
2718
+ var isSymbol = requireIsSymbol();
2719
+
2720
+ /**
2721
+ * Converts `value` to a string key if it's not a string or symbol.
2722
+ *
2723
+ * @private
2724
+ * @param {*} value The value to inspect.
2725
+ * @returns {string|symbol} Returns the key.
2726
+ */
2727
+ function toKey(value) {
2728
+ if (typeof value == 'string' || isSymbol(value)) {
2729
+ return value;
2730
+ }
2731
+ var result = (value + '');
2732
+ return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
2733
+ }
2734
+
2735
+ _toKey = toKey;
2736
+ return _toKey;
2737
+ }
2738
+
2739
+ var _baseGet;
2740
+ var hasRequired_baseGet;
2741
+
2742
+ function require_baseGet () {
2743
+ if (hasRequired_baseGet) return _baseGet;
2744
+ hasRequired_baseGet = 1;
2745
+ var castPath = require_castPath(),
2746
+ toKey = require_toKey();
2747
+
2748
+ /**
2749
+ * The base implementation of `_.get` without support for default values.
2750
+ *
2751
+ * @private
2752
+ * @param {Object} object The object to query.
2753
+ * @param {Array|string} path The path of the property to get.
2754
+ * @returns {*} Returns the resolved value.
2755
+ */
2756
+ function baseGet(object, path) {
2757
+ path = castPath(path, object);
2758
+
2759
+ var index = 0,
2760
+ length = path.length;
2761
+
2762
+ while (object != null && index < length) {
2763
+ object = object[toKey(path[index++])];
2764
+ }
2765
+ return (index && index == length) ? object : undefined;
2766
+ }
2767
+
2768
+ _baseGet = baseGet;
2769
+ return _baseGet;
2770
+ }
1417
2771
 
1418
- var _ListCache = ListCache$1;
2772
+ var get_1;
2773
+ var hasRequiredGet;
2774
+
2775
+ function requireGet () {
2776
+ if (hasRequiredGet) return get_1;
2777
+ hasRequiredGet = 1;
2778
+ var baseGet = require_baseGet();
2779
+
2780
+ /**
2781
+ * Gets the value at `path` of `object`. If the resolved value is
2782
+ * `undefined`, the `defaultValue` is returned in its place.
2783
+ *
2784
+ * @static
2785
+ * @memberOf _
2786
+ * @since 3.7.0
2787
+ * @category Object
2788
+ * @param {Object} object The object to query.
2789
+ * @param {Array|string} path The path of the property to get.
2790
+ * @param {*} [defaultValue] The value returned for `undefined` resolved values.
2791
+ * @returns {*} Returns the resolved value.
2792
+ * @example
2793
+ *
2794
+ * var object = { 'a': [{ 'b': { 'c': 3 } }] };
2795
+ *
2796
+ * _.get(object, 'a[0].b.c');
2797
+ * // => 3
2798
+ *
2799
+ * _.get(object, ['a', '0', 'b', 'c']);
2800
+ * // => 3
2801
+ *
2802
+ * _.get(object, 'a.b.c', 'default');
2803
+ * // => 'default'
2804
+ */
2805
+ function get(object, path, defaultValue) {
2806
+ var result = object == null ? undefined : baseGet(object, path);
2807
+ return result === undefined ? defaultValue : result;
2808
+ }
2809
+
2810
+ get_1 = get;
2811
+ return get_1;
2812
+ }
1419
2813
 
1420
- var Hash = _Hash,
1421
- ListCache = _ListCache,
1422
- Map = _Map;
2814
+ requireGet();
1423
2815
 
1424
2816
  /**
1425
- * Removes all key-value entries from the map.
2817
+ * Copies the values of `source` to `array`.
1426
2818
  *
1427
2819
  * @private
1428
- * @name clear
1429
- * @memberOf MapCache
2820
+ * @param {Array} source The array to copy values from.
2821
+ * @param {Array} [array=[]] The array to copy values to.
2822
+ * @returns {Array} Returns `array`.
1430
2823
  */
1431
- function mapCacheClear$1() {
1432
- this.size = 0;
1433
- this.__data__ = {
1434
- 'hash': new Hash,
1435
- 'map': new (Map || ListCache),
1436
- 'string': new Hash
1437
- };
2824
+
2825
+ var _copyArray;
2826
+ var hasRequired_copyArray;
2827
+
2828
+ function require_copyArray () {
2829
+ if (hasRequired_copyArray) return _copyArray;
2830
+ hasRequired_copyArray = 1;
2831
+ function copyArray(source, array) {
2832
+ var index = -1,
2833
+ length = source.length;
2834
+
2835
+ array || (array = Array(length));
2836
+ while (++index < length) {
2837
+ array[index] = source[index];
2838
+ }
2839
+ return array;
2840
+ }
2841
+
2842
+ _copyArray = copyArray;
2843
+ return _copyArray;
1438
2844
  }
1439
2845
 
1440
- var _mapCacheClear = mapCacheClear$1;
2846
+ /* Built-in method references for those with the same name as other `lodash` methods. */
1441
2847
 
1442
- /**
1443
- * Checks if `value` is suitable for use as unique object key.
1444
- *
1445
- * @private
1446
- * @param {*} value The value to check.
1447
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1448
- */
2848
+ var _baseRandom;
2849
+ var hasRequired_baseRandom;
2850
+
2851
+ function require_baseRandom () {
2852
+ if (hasRequired_baseRandom) return _baseRandom;
2853
+ hasRequired_baseRandom = 1;
2854
+ var nativeFloor = Math.floor,
2855
+ nativeRandom = Math.random;
2856
+
2857
+ /**
2858
+ * The base implementation of `_.random` without support for returning
2859
+ * floating-point numbers.
2860
+ *
2861
+ * @private
2862
+ * @param {number} lower The lower bound.
2863
+ * @param {number} upper The upper bound.
2864
+ * @returns {number} Returns the random number.
2865
+ */
2866
+ function baseRandom(lower, upper) {
2867
+ return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
2868
+ }
2869
+
2870
+ _baseRandom = baseRandom;
2871
+ return _baseRandom;
2872
+ }
1449
2873
 
1450
- function isKeyable$1(value) {
1451
- var type = typeof value;
1452
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
1453
- ? (value !== '__proto__')
1454
- : (value === null);
2874
+ var _shuffleSelf;
2875
+ var hasRequired_shuffleSelf;
2876
+
2877
+ function require_shuffleSelf () {
2878
+ if (hasRequired_shuffleSelf) return _shuffleSelf;
2879
+ hasRequired_shuffleSelf = 1;
2880
+ var baseRandom = require_baseRandom();
2881
+
2882
+ /**
2883
+ * A specialized version of `_.shuffle` which mutates and sets the size of `array`.
2884
+ *
2885
+ * @private
2886
+ * @param {Array} array The array to shuffle.
2887
+ * @param {number} [size=array.length] The size of `array`.
2888
+ * @returns {Array} Returns `array`.
2889
+ */
2890
+ function shuffleSelf(array, size) {
2891
+ var index = -1,
2892
+ length = array.length,
2893
+ lastIndex = length - 1;
2894
+
2895
+ size = size === undefined ? length : size;
2896
+ while (++index < size) {
2897
+ var rand = baseRandom(index, lastIndex),
2898
+ value = array[rand];
2899
+
2900
+ array[rand] = array[index];
2901
+ array[index] = value;
2902
+ }
2903
+ array.length = size;
2904
+ return array;
2905
+ }
2906
+
2907
+ _shuffleSelf = shuffleSelf;
2908
+ return _shuffleSelf;
1455
2909
  }
1456
2910
 
1457
- var _isKeyable = isKeyable$1;
2911
+ var _arrayShuffle;
2912
+ var hasRequired_arrayShuffle;
2913
+
2914
+ function require_arrayShuffle () {
2915
+ if (hasRequired_arrayShuffle) return _arrayShuffle;
2916
+ hasRequired_arrayShuffle = 1;
2917
+ var copyArray = require_copyArray(),
2918
+ shuffleSelf = require_shuffleSelf();
2919
+
2920
+ /**
2921
+ * A specialized version of `_.shuffle` for arrays.
2922
+ *
2923
+ * @private
2924
+ * @param {Array} array The array to shuffle.
2925
+ * @returns {Array} Returns the new shuffled array.
2926
+ */
2927
+ function arrayShuffle(array) {
2928
+ return shuffleSelf(copyArray(array));
2929
+ }
2930
+
2931
+ _arrayShuffle = arrayShuffle;
2932
+ return _arrayShuffle;
2933
+ }
1458
2934
 
1459
- var isKeyable = _isKeyable;
2935
+ var _baseValues;
2936
+ var hasRequired_baseValues;
2937
+
2938
+ function require_baseValues () {
2939
+ if (hasRequired_baseValues) return _baseValues;
2940
+ hasRequired_baseValues = 1;
2941
+ var arrayMap = require_arrayMap();
2942
+
2943
+ /**
2944
+ * The base implementation of `_.values` and `_.valuesIn` which creates an
2945
+ * array of `object` property values corresponding to the property names
2946
+ * of `props`.
2947
+ *
2948
+ * @private
2949
+ * @param {Object} object The object to query.
2950
+ * @param {Array} props The property names to get values for.
2951
+ * @returns {Object} Returns the array of property values.
2952
+ */
2953
+ function baseValues(object, props) {
2954
+ return arrayMap(props, function(key) {
2955
+ return object[key];
2956
+ });
2957
+ }
2958
+
2959
+ _baseValues = baseValues;
2960
+ return _baseValues;
2961
+ }
1460
2962
 
1461
2963
  /**
1462
- * Gets the data for `map`.
2964
+ * The base implementation of `_.times` without support for iteratee shorthands
2965
+ * or max array length checks.
1463
2966
  *
1464
2967
  * @private
1465
- * @param {Object} map The map to query.
1466
- * @param {string} key The reference key.
1467
- * @returns {*} Returns the map data.
2968
+ * @param {number} n The number of times to invoke `iteratee`.
2969
+ * @param {Function} iteratee The function invoked per iteration.
2970
+ * @returns {Array} Returns the array of results.
1468
2971
  */
1469
- function getMapData$4(map, key) {
1470
- var data = map.__data__;
1471
- return isKeyable(key)
1472
- ? data[typeof key == 'string' ? 'string' : 'hash']
1473
- : data.map;
2972
+
2973
+ var _baseTimes;
2974
+ var hasRequired_baseTimes;
2975
+
2976
+ function require_baseTimes () {
2977
+ if (hasRequired_baseTimes) return _baseTimes;
2978
+ hasRequired_baseTimes = 1;
2979
+ function baseTimes(n, iteratee) {
2980
+ var index = -1,
2981
+ result = Array(n);
2982
+
2983
+ while (++index < n) {
2984
+ result[index] = iteratee(index);
2985
+ }
2986
+ return result;
2987
+ }
2988
+
2989
+ _baseTimes = baseTimes;
2990
+ return _baseTimes;
1474
2991
  }
1475
2992
 
1476
- var _getMapData = getMapData$4;
2993
+ var _baseIsArguments;
2994
+ var hasRequired_baseIsArguments;
2995
+
2996
+ function require_baseIsArguments () {
2997
+ if (hasRequired_baseIsArguments) return _baseIsArguments;
2998
+ hasRequired_baseIsArguments = 1;
2999
+ var baseGetTag = require_baseGetTag(),
3000
+ isObjectLike = requireIsObjectLike();
3001
+
3002
+ /** `Object#toString` result references. */
3003
+ var argsTag = '[object Arguments]';
3004
+
3005
+ /**
3006
+ * The base implementation of `_.isArguments`.
3007
+ *
3008
+ * @private
3009
+ * @param {*} value The value to check.
3010
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
3011
+ */
3012
+ function baseIsArguments(value) {
3013
+ return isObjectLike(value) && baseGetTag(value) == argsTag;
3014
+ }
3015
+
3016
+ _baseIsArguments = baseIsArguments;
3017
+ return _baseIsArguments;
3018
+ }
3019
+
3020
+ var isArguments_1;
3021
+ var hasRequiredIsArguments;
3022
+
3023
+ function requireIsArguments () {
3024
+ if (hasRequiredIsArguments) return isArguments_1;
3025
+ hasRequiredIsArguments = 1;
3026
+ var baseIsArguments = require_baseIsArguments(),
3027
+ isObjectLike = requireIsObjectLike();
3028
+
3029
+ /** Used for built-in method references. */
3030
+ var objectProto = Object.prototype;
3031
+
3032
+ /** Used to check objects for own properties. */
3033
+ var hasOwnProperty = objectProto.hasOwnProperty;
3034
+
3035
+ /** Built-in value references. */
3036
+ var propertyIsEnumerable = objectProto.propertyIsEnumerable;
3037
+
3038
+ /**
3039
+ * Checks if `value` is likely an `arguments` object.
3040
+ *
3041
+ * @static
3042
+ * @memberOf _
3043
+ * @since 0.1.0
3044
+ * @category Lang
3045
+ * @param {*} value The value to check.
3046
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
3047
+ * else `false`.
3048
+ * @example
3049
+ *
3050
+ * _.isArguments(function() { return arguments; }());
3051
+ * // => true
3052
+ *
3053
+ * _.isArguments([1, 2, 3]);
3054
+ * // => false
3055
+ */
3056
+ var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
3057
+ return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
3058
+ !propertyIsEnumerable.call(value, 'callee');
3059
+ };
3060
+
3061
+ isArguments_1 = isArguments;
3062
+ return isArguments_1;
3063
+ }
1477
3064
 
1478
- var getMapData$3 = _getMapData;
3065
+ var isBuffer = {exports: {}};
1479
3066
 
1480
3067
  /**
1481
- * Removes `key` and its value from the map.
3068
+ * This method returns `false`.
1482
3069
  *
1483
- * @private
1484
- * @name delete
1485
- * @memberOf MapCache
1486
- * @param {string} key The key of the value to remove.
1487
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
3070
+ * @static
3071
+ * @memberOf _
3072
+ * @since 4.13.0
3073
+ * @category Util
3074
+ * @returns {boolean} Returns `false`.
3075
+ * @example
3076
+ *
3077
+ * _.times(2, _.stubFalse);
3078
+ * // => [false, false]
1488
3079
  */
1489
- function mapCacheDelete$1(key) {
1490
- var result = getMapData$3(this, key)['delete'](key);
1491
- this.size -= result ? 1 : 0;
1492
- return result;
3080
+
3081
+ var stubFalse_1;
3082
+ var hasRequiredStubFalse;
3083
+
3084
+ function requireStubFalse () {
3085
+ if (hasRequiredStubFalse) return stubFalse_1;
3086
+ hasRequiredStubFalse = 1;
3087
+ function stubFalse() {
3088
+ return false;
3089
+ }
3090
+
3091
+ stubFalse_1 = stubFalse;
3092
+ return stubFalse_1;
1493
3093
  }
1494
3094
 
1495
- var _mapCacheDelete = mapCacheDelete$1;
3095
+ isBuffer.exports;
3096
+
3097
+ var hasRequiredIsBuffer;
3098
+
3099
+ function requireIsBuffer () {
3100
+ if (hasRequiredIsBuffer) return isBuffer.exports;
3101
+ hasRequiredIsBuffer = 1;
3102
+ (function (module, exports) {
3103
+ var root = require_root(),
3104
+ stubFalse = requireStubFalse();
3105
+
3106
+ /** Detect free variable `exports`. */
3107
+ var freeExports = exports && !exports.nodeType && exports;
3108
+
3109
+ /** Detect free variable `module`. */
3110
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
3111
+
3112
+ /** Detect the popular CommonJS extension `module.exports`. */
3113
+ var moduleExports = freeModule && freeModule.exports === freeExports;
3114
+
3115
+ /** Built-in value references. */
3116
+ var Buffer = moduleExports ? root.Buffer : undefined;
3117
+
3118
+ /* Built-in method references for those with the same name as other `lodash` methods. */
3119
+ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
3120
+
3121
+ /**
3122
+ * Checks if `value` is a buffer.
3123
+ *
3124
+ * @static
3125
+ * @memberOf _
3126
+ * @since 4.3.0
3127
+ * @category Lang
3128
+ * @param {*} value The value to check.
3129
+ * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
3130
+ * @example
3131
+ *
3132
+ * _.isBuffer(new Buffer(2));
3133
+ * // => true
3134
+ *
3135
+ * _.isBuffer(new Uint8Array(2));
3136
+ * // => false
3137
+ */
3138
+ var isBuffer = nativeIsBuffer || stubFalse;
3139
+
3140
+ module.exports = isBuffer;
3141
+ } (isBuffer, isBuffer.exports));
3142
+ return isBuffer.exports;
3143
+ }
1496
3144
 
1497
- var getMapData$2 = _getMapData;
3145
+ /** Used as references for various `Number` constants. */
1498
3146
 
1499
- /**
1500
- * Gets the map value for `key`.
1501
- *
1502
- * @private
1503
- * @name get
1504
- * @memberOf MapCache
1505
- * @param {string} key The key of the value to get.
1506
- * @returns {*} Returns the entry value.
1507
- */
1508
- function mapCacheGet$1(key) {
1509
- return getMapData$2(this, key).get(key);
3147
+ var _isIndex;
3148
+ var hasRequired_isIndex;
3149
+
3150
+ function require_isIndex () {
3151
+ if (hasRequired_isIndex) return _isIndex;
3152
+ hasRequired_isIndex = 1;
3153
+ var MAX_SAFE_INTEGER = 9007199254740991;
3154
+
3155
+ /** Used to detect unsigned integer values. */
3156
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
3157
+
3158
+ /**
3159
+ * Checks if `value` is a valid array-like index.
3160
+ *
3161
+ * @private
3162
+ * @param {*} value The value to check.
3163
+ * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
3164
+ * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
3165
+ */
3166
+ function isIndex(value, length) {
3167
+ var type = typeof value;
3168
+ length = length == null ? MAX_SAFE_INTEGER : length;
3169
+
3170
+ return !!length &&
3171
+ (type == 'number' ||
3172
+ (type != 'symbol' && reIsUint.test(value))) &&
3173
+ (value > -1 && value % 1 == 0 && value < length);
3174
+ }
3175
+
3176
+ _isIndex = isIndex;
3177
+ return _isIndex;
1510
3178
  }
1511
3179
 
1512
- var _mapCacheGet = mapCacheGet$1;
3180
+ /** Used as references for various `Number` constants. */
3181
+
3182
+ var isLength_1;
3183
+ var hasRequiredIsLength;
3184
+
3185
+ function requireIsLength () {
3186
+ if (hasRequiredIsLength) return isLength_1;
3187
+ hasRequiredIsLength = 1;
3188
+ var MAX_SAFE_INTEGER = 9007199254740991;
3189
+
3190
+ /**
3191
+ * Checks if `value` is a valid array-like length.
3192
+ *
3193
+ * **Note:** This method is loosely based on
3194
+ * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
3195
+ *
3196
+ * @static
3197
+ * @memberOf _
3198
+ * @since 4.0.0
3199
+ * @category Lang
3200
+ * @param {*} value The value to check.
3201
+ * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
3202
+ * @example
3203
+ *
3204
+ * _.isLength(3);
3205
+ * // => true
3206
+ *
3207
+ * _.isLength(Number.MIN_VALUE);
3208
+ * // => false
3209
+ *
3210
+ * _.isLength(Infinity);
3211
+ * // => false
3212
+ *
3213
+ * _.isLength('3');
3214
+ * // => false
3215
+ */
3216
+ function isLength(value) {
3217
+ return typeof value == 'number' &&
3218
+ value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
3219
+ }
3220
+
3221
+ isLength_1 = isLength;
3222
+ return isLength_1;
3223
+ }
1513
3224
 
1514
- var getMapData$1 = _getMapData;
3225
+ var _baseIsTypedArray;
3226
+ var hasRequired_baseIsTypedArray;
3227
+
3228
+ function require_baseIsTypedArray () {
3229
+ if (hasRequired_baseIsTypedArray) return _baseIsTypedArray;
3230
+ hasRequired_baseIsTypedArray = 1;
3231
+ var baseGetTag = require_baseGetTag(),
3232
+ isLength = requireIsLength(),
3233
+ isObjectLike = requireIsObjectLike();
3234
+
3235
+ /** `Object#toString` result references. */
3236
+ var argsTag = '[object Arguments]',
3237
+ arrayTag = '[object Array]',
3238
+ boolTag = '[object Boolean]',
3239
+ dateTag = '[object Date]',
3240
+ errorTag = '[object Error]',
3241
+ funcTag = '[object Function]',
3242
+ mapTag = '[object Map]',
3243
+ numberTag = '[object Number]',
3244
+ objectTag = '[object Object]',
3245
+ regexpTag = '[object RegExp]',
3246
+ setTag = '[object Set]',
3247
+ stringTag = '[object String]',
3248
+ weakMapTag = '[object WeakMap]';
3249
+
3250
+ var arrayBufferTag = '[object ArrayBuffer]',
3251
+ dataViewTag = '[object DataView]',
3252
+ float32Tag = '[object Float32Array]',
3253
+ float64Tag = '[object Float64Array]',
3254
+ int8Tag = '[object Int8Array]',
3255
+ int16Tag = '[object Int16Array]',
3256
+ int32Tag = '[object Int32Array]',
3257
+ uint8Tag = '[object Uint8Array]',
3258
+ uint8ClampedTag = '[object Uint8ClampedArray]',
3259
+ uint16Tag = '[object Uint16Array]',
3260
+ uint32Tag = '[object Uint32Array]';
3261
+
3262
+ /** Used to identify `toStringTag` values of typed arrays. */
3263
+ var typedArrayTags = {};
3264
+ typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
3265
+ typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
3266
+ typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
3267
+ typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
3268
+ typedArrayTags[uint32Tag] = true;
3269
+ typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
3270
+ typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
3271
+ typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
3272
+ typedArrayTags[errorTag] = typedArrayTags[funcTag] =
3273
+ typedArrayTags[mapTag] = typedArrayTags[numberTag] =
3274
+ typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
3275
+ typedArrayTags[setTag] = typedArrayTags[stringTag] =
3276
+ typedArrayTags[weakMapTag] = false;
3277
+
3278
+ /**
3279
+ * The base implementation of `_.isTypedArray` without Node.js optimizations.
3280
+ *
3281
+ * @private
3282
+ * @param {*} value The value to check.
3283
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
3284
+ */
3285
+ function baseIsTypedArray(value) {
3286
+ return isObjectLike(value) &&
3287
+ isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
3288
+ }
3289
+
3290
+ _baseIsTypedArray = baseIsTypedArray;
3291
+ return _baseIsTypedArray;
3292
+ }
1515
3293
 
1516
3294
  /**
1517
- * Checks if a map value for `key` exists.
3295
+ * The base implementation of `_.unary` without support for storing metadata.
1518
3296
  *
1519
3297
  * @private
1520
- * @name has
1521
- * @memberOf MapCache
1522
- * @param {string} key The key of the entry to check.
1523
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
3298
+ * @param {Function} func The function to cap arguments for.
3299
+ * @returns {Function} Returns the new capped function.
1524
3300
  */
1525
- function mapCacheHas$1(key) {
1526
- return getMapData$1(this, key).has(key);
3301
+
3302
+ var _baseUnary;
3303
+ var hasRequired_baseUnary;
3304
+
3305
+ function require_baseUnary () {
3306
+ if (hasRequired_baseUnary) return _baseUnary;
3307
+ hasRequired_baseUnary = 1;
3308
+ function baseUnary(func) {
3309
+ return function(value) {
3310
+ return func(value);
3311
+ };
3312
+ }
3313
+
3314
+ _baseUnary = baseUnary;
3315
+ return _baseUnary;
1527
3316
  }
1528
3317
 
1529
- var _mapCacheHas = mapCacheHas$1;
3318
+ var _nodeUtil = {exports: {}};
1530
3319
 
1531
- var getMapData = _getMapData;
3320
+ _nodeUtil.exports;
1532
3321
 
1533
- /**
1534
- * Sets the map `key` to `value`.
1535
- *
1536
- * @private
1537
- * @name set
1538
- * @memberOf MapCache
1539
- * @param {string} key The key of the value to set.
1540
- * @param {*} value The value to set.
1541
- * @returns {Object} Returns the map cache instance.
1542
- */
1543
- function mapCacheSet$1(key, value) {
1544
- var data = getMapData(this, key),
1545
- size = data.size;
3322
+ var hasRequired_nodeUtil;
3323
+
3324
+ function require_nodeUtil () {
3325
+ if (hasRequired_nodeUtil) return _nodeUtil.exports;
3326
+ hasRequired_nodeUtil = 1;
3327
+ (function (module, exports) {
3328
+ var freeGlobal = require_freeGlobal();
3329
+
3330
+ /** Detect free variable `exports`. */
3331
+ var freeExports = exports && !exports.nodeType && exports;
1546
3332
 
1547
- data.set(key, value);
1548
- this.size += data.size == size ? 0 : 1;
1549
- return this;
3333
+ /** Detect free variable `module`. */
3334
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
3335
+
3336
+ /** Detect the popular CommonJS extension `module.exports`. */
3337
+ var moduleExports = freeModule && freeModule.exports === freeExports;
3338
+
3339
+ /** Detect free variable `process` from Node.js. */
3340
+ var freeProcess = moduleExports && freeGlobal.process;
3341
+
3342
+ /** Used to access faster Node.js helpers. */
3343
+ var nodeUtil = (function() {
3344
+ try {
3345
+ // Use `util.types` for Node.js 10+.
3346
+ var types = freeModule && freeModule.require && freeModule.require('util').types;
3347
+
3348
+ if (types) {
3349
+ return types;
3350
+ }
3351
+
3352
+ // Legacy `process.binding('util')` for Node.js < 10.
3353
+ return freeProcess && freeProcess.binding && freeProcess.binding('util');
3354
+ } catch (e) {}
3355
+ }());
3356
+
3357
+ module.exports = nodeUtil;
3358
+ } (_nodeUtil, _nodeUtil.exports));
3359
+ return _nodeUtil.exports;
1550
3360
  }
1551
3361
 
1552
- var _mapCacheSet = mapCacheSet$1;
3362
+ var isTypedArray_1;
3363
+ var hasRequiredIsTypedArray;
3364
+
3365
+ function requireIsTypedArray () {
3366
+ if (hasRequiredIsTypedArray) return isTypedArray_1;
3367
+ hasRequiredIsTypedArray = 1;
3368
+ var baseIsTypedArray = require_baseIsTypedArray(),
3369
+ baseUnary = require_baseUnary(),
3370
+ nodeUtil = require_nodeUtil();
3371
+
3372
+ /* Node.js helper references. */
3373
+ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
3374
+
3375
+ /**
3376
+ * Checks if `value` is classified as a typed array.
3377
+ *
3378
+ * @static
3379
+ * @memberOf _
3380
+ * @since 3.0.0
3381
+ * @category Lang
3382
+ * @param {*} value The value to check.
3383
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
3384
+ * @example
3385
+ *
3386
+ * _.isTypedArray(new Uint8Array);
3387
+ * // => true
3388
+ *
3389
+ * _.isTypedArray([]);
3390
+ * // => false
3391
+ */
3392
+ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
3393
+
3394
+ isTypedArray_1 = isTypedArray;
3395
+ return isTypedArray_1;
3396
+ }
1553
3397
 
1554
- var mapCacheClear = _mapCacheClear,
1555
- mapCacheDelete = _mapCacheDelete,
1556
- mapCacheGet = _mapCacheGet,
1557
- mapCacheHas = _mapCacheHas,
1558
- mapCacheSet = _mapCacheSet;
3398
+ var _arrayLikeKeys;
3399
+ var hasRequired_arrayLikeKeys;
3400
+
3401
+ function require_arrayLikeKeys () {
3402
+ if (hasRequired_arrayLikeKeys) return _arrayLikeKeys;
3403
+ hasRequired_arrayLikeKeys = 1;
3404
+ var baseTimes = require_baseTimes(),
3405
+ isArguments = requireIsArguments(),
3406
+ isArray = requireIsArray(),
3407
+ isBuffer = requireIsBuffer(),
3408
+ isIndex = require_isIndex(),
3409
+ isTypedArray = requireIsTypedArray();
3410
+
3411
+ /** Used for built-in method references. */
3412
+ var objectProto = Object.prototype;
3413
+
3414
+ /** Used to check objects for own properties. */
3415
+ var hasOwnProperty = objectProto.hasOwnProperty;
3416
+
3417
+ /**
3418
+ * Creates an array of the enumerable property names of the array-like `value`.
3419
+ *
3420
+ * @private
3421
+ * @param {*} value The value to query.
3422
+ * @param {boolean} inherited Specify returning inherited property names.
3423
+ * @returns {Array} Returns the array of property names.
3424
+ */
3425
+ function arrayLikeKeys(value, inherited) {
3426
+ var isArr = isArray(value),
3427
+ isArg = !isArr && isArguments(value),
3428
+ isBuff = !isArr && !isArg && isBuffer(value),
3429
+ isType = !isArr && !isArg && !isBuff && isTypedArray(value),
3430
+ skipIndexes = isArr || isArg || isBuff || isType,
3431
+ result = skipIndexes ? baseTimes(value.length, String) : [],
3432
+ length = result.length;
3433
+
3434
+ for (var key in value) {
3435
+ if ((inherited || hasOwnProperty.call(value, key)) &&
3436
+ !(skipIndexes && (
3437
+ // Safari 9 has enumerable `arguments.length` in strict mode.
3438
+ key == 'length' ||
3439
+ // Node.js 0.10 has enumerable non-index properties on buffers.
3440
+ (isBuff && (key == 'offset' || key == 'parent')) ||
3441
+ // PhantomJS 2 has enumerable non-index properties on typed arrays.
3442
+ (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
3443
+ // Skip index properties.
3444
+ isIndex(key, length)
3445
+ ))) {
3446
+ result.push(key);
3447
+ }
3448
+ }
3449
+ return result;
3450
+ }
3451
+
3452
+ _arrayLikeKeys = arrayLikeKeys;
3453
+ return _arrayLikeKeys;
3454
+ }
3455
+
3456
+ /** Used for built-in method references. */
3457
+
3458
+ var _isPrototype;
3459
+ var hasRequired_isPrototype;
3460
+
3461
+ function require_isPrototype () {
3462
+ if (hasRequired_isPrototype) return _isPrototype;
3463
+ hasRequired_isPrototype = 1;
3464
+ var objectProto = Object.prototype;
3465
+
3466
+ /**
3467
+ * Checks if `value` is likely a prototype object.
3468
+ *
3469
+ * @private
3470
+ * @param {*} value The value to check.
3471
+ * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
3472
+ */
3473
+ function isPrototype(value) {
3474
+ var Ctor = value && value.constructor,
3475
+ proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
3476
+
3477
+ return value === proto;
3478
+ }
3479
+
3480
+ _isPrototype = isPrototype;
3481
+ return _isPrototype;
3482
+ }
1559
3483
 
1560
3484
  /**
1561
- * Creates a map cache object to store key-value pairs.
3485
+ * Creates a unary function that invokes `func` with its argument transformed.
1562
3486
  *
1563
3487
  * @private
1564
- * @constructor
1565
- * @param {Array} [entries] The key-value pairs to cache.
3488
+ * @param {Function} func The function to wrap.
3489
+ * @param {Function} transform The argument transform.
3490
+ * @returns {Function} Returns the new function.
1566
3491
  */
1567
- function MapCache$1(entries) {
1568
- var index = -1,
1569
- length = entries == null ? 0 : entries.length;
1570
-
1571
- this.clear();
1572
- while (++index < length) {
1573
- var entry = entries[index];
1574
- this.set(entry[0], entry[1]);
1575
- }
3492
+
3493
+ var _overArg;
3494
+ var hasRequired_overArg;
3495
+
3496
+ function require_overArg () {
3497
+ if (hasRequired_overArg) return _overArg;
3498
+ hasRequired_overArg = 1;
3499
+ function overArg(func, transform) {
3500
+ return function(arg) {
3501
+ return func(transform(arg));
3502
+ };
3503
+ }
3504
+
3505
+ _overArg = overArg;
3506
+ return _overArg;
1576
3507
  }
1577
3508
 
1578
- // Add methods to `MapCache`.
1579
- MapCache$1.prototype.clear = mapCacheClear;
1580
- MapCache$1.prototype['delete'] = mapCacheDelete;
1581
- MapCache$1.prototype.get = mapCacheGet;
1582
- MapCache$1.prototype.has = mapCacheHas;
1583
- MapCache$1.prototype.set = mapCacheSet;
3509
+ var _nativeKeys;
3510
+ var hasRequired_nativeKeys;
1584
3511
 
1585
- var _MapCache = MapCache$1;
3512
+ function require_nativeKeys () {
3513
+ if (hasRequired_nativeKeys) return _nativeKeys;
3514
+ hasRequired_nativeKeys = 1;
3515
+ var overArg = require_overArg();
1586
3516
 
1587
- var MapCache = _MapCache;
3517
+ /* Built-in method references for those with the same name as other `lodash` methods. */
3518
+ var nativeKeys = overArg(Object.keys, Object);
1588
3519
 
1589
- /** Error message constants. */
1590
- var FUNC_ERROR_TEXT = 'Expected a function';
3520
+ _nativeKeys = nativeKeys;
3521
+ return _nativeKeys;
3522
+ }
1591
3523
 
1592
- /**
1593
- * Creates a function that memoizes the result of `func`. If `resolver` is
1594
- * provided, it determines the cache key for storing the result based on the
1595
- * arguments provided to the memoized function. By default, the first argument
1596
- * provided to the memoized function is used as the map cache key. The `func`
1597
- * is invoked with the `this` binding of the memoized function.
1598
- *
1599
- * **Note:** The cache is exposed as the `cache` property on the memoized
1600
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
1601
- * constructor with one whose instances implement the
1602
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
1603
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
1604
- *
1605
- * @static
1606
- * @memberOf _
1607
- * @since 0.1.0
1608
- * @category Function
1609
- * @param {Function} func The function to have its output memoized.
1610
- * @param {Function} [resolver] The function to resolve the cache key.
1611
- * @returns {Function} Returns the new memoized function.
1612
- * @example
1613
- *
1614
- * var object = { 'a': 1, 'b': 2 };
1615
- * var other = { 'c': 3, 'd': 4 };
1616
- *
1617
- * var values = _.memoize(_.values);
1618
- * values(object);
1619
- * // => [1, 2]
1620
- *
1621
- * values(other);
1622
- * // => [3, 4]
1623
- *
1624
- * object.a = 2;
1625
- * values(object);
1626
- * // => [1, 2]
1627
- *
1628
- * // Modify the result cache.
1629
- * values.cache.set(object, ['a', 'b']);
1630
- * values(object);
1631
- * // => ['a', 'b']
1632
- *
1633
- * // Replace `_.memoize.Cache`.
1634
- * _.memoize.Cache = WeakMap;
1635
- */
1636
- function memoize$1(func, resolver) {
1637
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
1638
- throw new TypeError(FUNC_ERROR_TEXT);
1639
- }
1640
- var memoized = function() {
1641
- var args = arguments,
1642
- key = resolver ? resolver.apply(this, args) : args[0],
1643
- cache = memoized.cache;
3524
+ var _baseKeys;
3525
+ var hasRequired_baseKeys;
3526
+
3527
+ function require_baseKeys () {
3528
+ if (hasRequired_baseKeys) return _baseKeys;
3529
+ hasRequired_baseKeys = 1;
3530
+ var isPrototype = require_isPrototype(),
3531
+ nativeKeys = require_nativeKeys();
3532
+
3533
+ /** Used for built-in method references. */
3534
+ var objectProto = Object.prototype;
3535
+
3536
+ /** Used to check objects for own properties. */
3537
+ var hasOwnProperty = objectProto.hasOwnProperty;
3538
+
3539
+ /**
3540
+ * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
3541
+ *
3542
+ * @private
3543
+ * @param {Object} object The object to query.
3544
+ * @returns {Array} Returns the array of property names.
3545
+ */
3546
+ function baseKeys(object) {
3547
+ if (!isPrototype(object)) {
3548
+ return nativeKeys(object);
3549
+ }
3550
+ var result = [];
3551
+ for (var key in Object(object)) {
3552
+ if (hasOwnProperty.call(object, key) && key != 'constructor') {
3553
+ result.push(key);
3554
+ }
3555
+ }
3556
+ return result;
3557
+ }
3558
+
3559
+ _baseKeys = baseKeys;
3560
+ return _baseKeys;
3561
+ }
1644
3562
 
1645
- if (cache.has(key)) {
1646
- return cache.get(key);
1647
- }
1648
- var result = func.apply(this, args);
1649
- memoized.cache = cache.set(key, result) || cache;
1650
- return result;
1651
- };
1652
- memoized.cache = new (memoize$1.Cache || MapCache);
1653
- return memoized;
3563
+ var isArrayLike_1;
3564
+ var hasRequiredIsArrayLike;
3565
+
3566
+ function requireIsArrayLike () {
3567
+ if (hasRequiredIsArrayLike) return isArrayLike_1;
3568
+ hasRequiredIsArrayLike = 1;
3569
+ var isFunction = requireIsFunction(),
3570
+ isLength = requireIsLength();
3571
+
3572
+ /**
3573
+ * Checks if `value` is array-like. A value is considered array-like if it's
3574
+ * not a function and has a `value.length` that's an integer greater than or
3575
+ * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
3576
+ *
3577
+ * @static
3578
+ * @memberOf _
3579
+ * @since 4.0.0
3580
+ * @category Lang
3581
+ * @param {*} value The value to check.
3582
+ * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
3583
+ * @example
3584
+ *
3585
+ * _.isArrayLike([1, 2, 3]);
3586
+ * // => true
3587
+ *
3588
+ * _.isArrayLike(document.body.children);
3589
+ * // => true
3590
+ *
3591
+ * _.isArrayLike('abc');
3592
+ * // => true
3593
+ *
3594
+ * _.isArrayLike(_.noop);
3595
+ * // => false
3596
+ */
3597
+ function isArrayLike(value) {
3598
+ return value != null && isLength(value.length) && !isFunction(value);
3599
+ }
3600
+
3601
+ isArrayLike_1 = isArrayLike;
3602
+ return isArrayLike_1;
1654
3603
  }
1655
3604
 
1656
- // Expose `MapCache`.
1657
- memoize$1.Cache = MapCache;
3605
+ var keys_1;
3606
+ var hasRequiredKeys;
3607
+
3608
+ function requireKeys () {
3609
+ if (hasRequiredKeys) return keys_1;
3610
+ hasRequiredKeys = 1;
3611
+ var arrayLikeKeys = require_arrayLikeKeys(),
3612
+ baseKeys = require_baseKeys(),
3613
+ isArrayLike = requireIsArrayLike();
3614
+
3615
+ /**
3616
+ * Creates an array of the own enumerable property names of `object`.
3617
+ *
3618
+ * **Note:** Non-object values are coerced to objects. See the
3619
+ * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
3620
+ * for more details.
3621
+ *
3622
+ * @static
3623
+ * @since 0.1.0
3624
+ * @memberOf _
3625
+ * @category Object
3626
+ * @param {Object} object The object to query.
3627
+ * @returns {Array} Returns the array of property names.
3628
+ * @example
3629
+ *
3630
+ * function Foo() {
3631
+ * this.a = 1;
3632
+ * this.b = 2;
3633
+ * }
3634
+ *
3635
+ * Foo.prototype.c = 3;
3636
+ *
3637
+ * _.keys(new Foo);
3638
+ * // => ['a', 'b'] (iteration order is not guaranteed)
3639
+ *
3640
+ * _.keys('hi');
3641
+ * // => ['0', '1']
3642
+ */
3643
+ function keys(object) {
3644
+ return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
3645
+ }
3646
+
3647
+ keys_1 = keys;
3648
+ return keys_1;
3649
+ }
1658
3650
 
1659
- var memoize_1 = memoize$1;
3651
+ var values_1;
3652
+ var hasRequiredValues;
3653
+
3654
+ function requireValues () {
3655
+ if (hasRequiredValues) return values_1;
3656
+ hasRequiredValues = 1;
3657
+ var baseValues = require_baseValues(),
3658
+ keys = requireKeys();
3659
+
3660
+ /**
3661
+ * Creates an array of the own enumerable string keyed property values of `object`.
3662
+ *
3663
+ * **Note:** Non-object values are coerced to objects.
3664
+ *
3665
+ * @static
3666
+ * @since 0.1.0
3667
+ * @memberOf _
3668
+ * @category Object
3669
+ * @param {Object} object The object to query.
3670
+ * @returns {Array} Returns the array of property values.
3671
+ * @example
3672
+ *
3673
+ * function Foo() {
3674
+ * this.a = 1;
3675
+ * this.b = 2;
3676
+ * }
3677
+ *
3678
+ * Foo.prototype.c = 3;
3679
+ *
3680
+ * _.values(new Foo);
3681
+ * // => [1, 2] (iteration order is not guaranteed)
3682
+ *
3683
+ * _.values('hi');
3684
+ * // => ['h', 'i']
3685
+ */
3686
+ function values(object) {
3687
+ return object == null ? [] : baseValues(object, keys(object));
3688
+ }
3689
+
3690
+ values_1 = values;
3691
+ return values_1;
3692
+ }
1660
3693
 
1661
- var memoize = memoize_1;
3694
+ var _baseShuffle;
3695
+ var hasRequired_baseShuffle;
3696
+
3697
+ function require_baseShuffle () {
3698
+ if (hasRequired_baseShuffle) return _baseShuffle;
3699
+ hasRequired_baseShuffle = 1;
3700
+ var shuffleSelf = require_shuffleSelf(),
3701
+ values = requireValues();
3702
+
3703
+ /**
3704
+ * The base implementation of `_.shuffle`.
3705
+ *
3706
+ * @private
3707
+ * @param {Array|Object} collection The collection to shuffle.
3708
+ * @returns {Array} Returns the new shuffled array.
3709
+ */
3710
+ function baseShuffle(collection) {
3711
+ return shuffleSelf(values(collection));
3712
+ }
3713
+
3714
+ _baseShuffle = baseShuffle;
3715
+ return _baseShuffle;
3716
+ }
1662
3717
 
1663
- /** Used as the maximum memoize cache size. */
1664
- var MAX_MEMOIZE_SIZE = 500;
3718
+ var shuffle_1;
3719
+ var hasRequiredShuffle;
3720
+
3721
+ function requireShuffle () {
3722
+ if (hasRequiredShuffle) return shuffle_1;
3723
+ hasRequiredShuffle = 1;
3724
+ var arrayShuffle = require_arrayShuffle(),
3725
+ baseShuffle = require_baseShuffle(),
3726
+ isArray = requireIsArray();
3727
+
3728
+ /**
3729
+ * Creates an array of shuffled values, using a version of the
3730
+ * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
3731
+ *
3732
+ * @static
3733
+ * @memberOf _
3734
+ * @since 0.1.0
3735
+ * @category Collection
3736
+ * @param {Array|Object} collection The collection to shuffle.
3737
+ * @returns {Array} Returns the new shuffled array.
3738
+ * @example
3739
+ *
3740
+ * _.shuffle([1, 2, 3, 4]);
3741
+ * // => [4, 1, 3, 2]
3742
+ */
3743
+ function shuffle(collection) {
3744
+ var func = isArray(collection) ? arrayShuffle : baseShuffle;
3745
+ return func(collection);
3746
+ }
3747
+
3748
+ shuffle_1 = shuffle;
3749
+ return shuffle_1;
3750
+ }
1665
3751
 
1666
- /**
1667
- * A specialized version of `_.memoize` which clears the memoized function's
1668
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
1669
- *
1670
- * @private
1671
- * @param {Function} func The function to have its output memoized.
1672
- * @returns {Function} Returns the new memoized function.
1673
- */
1674
- function memoizeCapped$1(func) {
1675
- var result = memoize(func, function(key) {
1676
- if (cache.size === MAX_MEMOIZE_SIZE) {
1677
- cache.clear();
1678
- }
1679
- return key;
1680
- });
3752
+ requireShuffle();
1681
3753
 
1682
- var cache = result.cache;
1683
- return result;
3754
+ var _DataView;
3755
+ var hasRequired_DataView;
3756
+
3757
+ function require_DataView () {
3758
+ if (hasRequired_DataView) return _DataView;
3759
+ hasRequired_DataView = 1;
3760
+ var getNative = require_getNative(),
3761
+ root = require_root();
3762
+
3763
+ /* Built-in method references that are verified to be native. */
3764
+ var DataView = getNative(root, 'DataView');
3765
+
3766
+ _DataView = DataView;
3767
+ return _DataView;
1684
3768
  }
1685
3769
 
1686
- var _memoizeCapped = memoizeCapped$1;
3770
+ var _Promise;
3771
+ var hasRequired_Promise;
1687
3772
 
1688
- var memoizeCapped = _memoizeCapped;
3773
+ function require_Promise () {
3774
+ if (hasRequired_Promise) return _Promise;
3775
+ hasRequired_Promise = 1;
3776
+ var getNative = require_getNative(),
3777
+ root = require_root();
1689
3778
 
1690
- /** Used to match property names within property paths. */
1691
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
3779
+ /* Built-in method references that are verified to be native. */
3780
+ var Promise = getNative(root, 'Promise');
1692
3781
 
1693
- /** Used to match backslashes in property paths. */
1694
- var reEscapeChar = /\\(\\)?/g;
3782
+ _Promise = Promise;
3783
+ return _Promise;
3784
+ }
1695
3785
 
1696
- /**
1697
- * Converts `string` to a property path array.
1698
- *
1699
- * @private
1700
- * @param {string} string The string to convert.
1701
- * @returns {Array} Returns the property path array.
1702
- */
1703
- memoizeCapped(function(string) {
1704
- var result = [];
1705
- if (string.charCodeAt(0) === 46 /* . */) {
1706
- result.push('');
1707
- }
1708
- string.replace(rePropName, function(match, number, quote, subString) {
1709
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
1710
- });
1711
- return result;
1712
- });
3786
+ var _Set;
3787
+ var hasRequired_Set;
3788
+
3789
+ function require_Set () {
3790
+ if (hasRequired_Set) return _Set;
3791
+ hasRequired_Set = 1;
3792
+ var getNative = require_getNative(),
3793
+ root = require_root();
3794
+
3795
+ /* Built-in method references that are verified to be native. */
3796
+ var Set = getNative(root, 'Set');
3797
+
3798
+ _Set = Set;
3799
+ return _Set;
3800
+ }
3801
+
3802
+ var _WeakMap;
3803
+ var hasRequired_WeakMap;
3804
+
3805
+ function require_WeakMap () {
3806
+ if (hasRequired_WeakMap) return _WeakMap;
3807
+ hasRequired_WeakMap = 1;
3808
+ var getNative = require_getNative(),
3809
+ root = require_root();
3810
+
3811
+ /* Built-in method references that are verified to be native. */
3812
+ var WeakMap = getNative(root, 'WeakMap');
3813
+
3814
+ _WeakMap = WeakMap;
3815
+ return _WeakMap;
3816
+ }
3817
+
3818
+ var _getTag;
3819
+ var hasRequired_getTag;
3820
+
3821
+ function require_getTag () {
3822
+ if (hasRequired_getTag) return _getTag;
3823
+ hasRequired_getTag = 1;
3824
+ var DataView = require_DataView(),
3825
+ Map = require_Map(),
3826
+ Promise = require_Promise(),
3827
+ Set = require_Set(),
3828
+ WeakMap = require_WeakMap(),
3829
+ baseGetTag = require_baseGetTag(),
3830
+ toSource = require_toSource();
3831
+
3832
+ /** `Object#toString` result references. */
3833
+ var mapTag = '[object Map]',
3834
+ objectTag = '[object Object]',
3835
+ promiseTag = '[object Promise]',
3836
+ setTag = '[object Set]',
3837
+ weakMapTag = '[object WeakMap]';
3838
+
3839
+ var dataViewTag = '[object DataView]';
3840
+
3841
+ /** Used to detect maps, sets, and weakmaps. */
3842
+ var dataViewCtorString = toSource(DataView),
3843
+ mapCtorString = toSource(Map),
3844
+ promiseCtorString = toSource(Promise),
3845
+ setCtorString = toSource(Set),
3846
+ weakMapCtorString = toSource(WeakMap);
3847
+
3848
+ /**
3849
+ * Gets the `toStringTag` of `value`.
3850
+ *
3851
+ * @private
3852
+ * @param {*} value The value to query.
3853
+ * @returns {string} Returns the `toStringTag`.
3854
+ */
3855
+ var getTag = baseGetTag;
3856
+
3857
+ // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
3858
+ if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
3859
+ (Map && getTag(new Map) != mapTag) ||
3860
+ (Promise && getTag(Promise.resolve()) != promiseTag) ||
3861
+ (Set && getTag(new Set) != setTag) ||
3862
+ (WeakMap && getTag(new WeakMap) != weakMapTag)) {
3863
+ getTag = function(value) {
3864
+ var result = baseGetTag(value),
3865
+ Ctor = result == objectTag ? value.constructor : undefined,
3866
+ ctorString = Ctor ? toSource(Ctor) : '';
3867
+
3868
+ if (ctorString) {
3869
+ switch (ctorString) {
3870
+ case dataViewCtorString: return dataViewTag;
3871
+ case mapCtorString: return mapTag;
3872
+ case promiseCtorString: return promiseTag;
3873
+ case setCtorString: return setTag;
3874
+ case weakMapCtorString: return weakMapTag;
3875
+ }
3876
+ }
3877
+ return result;
3878
+ };
3879
+ }
3880
+
3881
+ _getTag = getTag;
3882
+ return _getTag;
3883
+ }
3884
+
3885
+ var isEmpty_1;
3886
+ var hasRequiredIsEmpty;
3887
+
3888
+ function requireIsEmpty () {
3889
+ if (hasRequiredIsEmpty) return isEmpty_1;
3890
+ hasRequiredIsEmpty = 1;
3891
+ var baseKeys = require_baseKeys(),
3892
+ getTag = require_getTag(),
3893
+ isArguments = requireIsArguments(),
3894
+ isArray = requireIsArray(),
3895
+ isArrayLike = requireIsArrayLike(),
3896
+ isBuffer = requireIsBuffer(),
3897
+ isPrototype = require_isPrototype(),
3898
+ isTypedArray = requireIsTypedArray();
3899
+
3900
+ /** `Object#toString` result references. */
3901
+ var mapTag = '[object Map]',
3902
+ setTag = '[object Set]';
3903
+
3904
+ /** Used for built-in method references. */
3905
+ var objectProto = Object.prototype;
3906
+
3907
+ /** Used to check objects for own properties. */
3908
+ var hasOwnProperty = objectProto.hasOwnProperty;
3909
+
3910
+ /**
3911
+ * Checks if `value` is an empty object, collection, map, or set.
3912
+ *
3913
+ * Objects are considered empty if they have no own enumerable string keyed
3914
+ * properties.
3915
+ *
3916
+ * Array-like values such as `arguments` objects, arrays, buffers, strings, or
3917
+ * jQuery-like collections are considered empty if they have a `length` of `0`.
3918
+ * Similarly, maps and sets are considered empty if they have a `size` of `0`.
3919
+ *
3920
+ * @static
3921
+ * @memberOf _
3922
+ * @since 0.1.0
3923
+ * @category Lang
3924
+ * @param {*} value The value to check.
3925
+ * @returns {boolean} Returns `true` if `value` is empty, else `false`.
3926
+ * @example
3927
+ *
3928
+ * _.isEmpty(null);
3929
+ * // => true
3930
+ *
3931
+ * _.isEmpty(true);
3932
+ * // => true
3933
+ *
3934
+ * _.isEmpty(1);
3935
+ * // => true
3936
+ *
3937
+ * _.isEmpty([1, 2, 3]);
3938
+ * // => false
3939
+ *
3940
+ * _.isEmpty({ 'a': 1 });
3941
+ * // => false
3942
+ */
3943
+ function isEmpty(value) {
3944
+ if (value == null) {
3945
+ return true;
3946
+ }
3947
+ if (isArrayLike(value) &&
3948
+ (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
3949
+ isBuffer(value) || isTypedArray(value) || isArguments(value))) {
3950
+ return !value.length;
3951
+ }
3952
+ var tag = getTag(value);
3953
+ if (tag == mapTag || tag == setTag) {
3954
+ return !value.size;
3955
+ }
3956
+ if (isPrototype(value)) {
3957
+ return !baseKeys(value).length;
3958
+ }
3959
+ for (var key in value) {
3960
+ if (hasOwnProperty.call(value, key)) {
3961
+ return false;
3962
+ }
3963
+ }
3964
+ return true;
3965
+ }
3966
+
3967
+ isEmpty_1 = isEmpty;
3968
+ return isEmpty_1;
3969
+ }
1713
3970
 
1714
- var Symbol = _Symbol;
3971
+ requireIsEmpty();
1715
3972
 
1716
- /** Used to convert symbols to primitives and strings. */
1717
- var symbolProto = Symbol ? Symbol.prototype : undefined;
1718
- symbolProto ? symbolProto.toString : undefined;
3973
+ const lg = n => console[n].bind(console, 'controller-utils:');
1719
3974
 
1720
- // eslint-disable-next-line no-console
1721
- const lg = (n) => console[n].bind(console, 'controller-utils:');
1722
3975
  lg('debug');
1723
3976
  lg('log');
1724
3977
  lg('warn');
@@ -1789,7 +4042,7 @@ const getCorrectSelected = (tokens, selected) =>
1789
4042
  (selected || []).filter((s) => tokens.findIndex((token) => token.correct && equalTokens(token, s)) !== -1);
1790
4043
 
1791
4044
  const getPartialScore = (question, session, totalCorrect) => {
1792
- if (!session || isEmpty_1(session)) {
4045
+ if (!session || isEmpty_1$1(session)) {
1793
4046
  return 0;
1794
4047
  }
1795
4048
 
@@ -1805,7 +4058,7 @@ const getPartialScore = (question, session, totalCorrect) => {
1805
4058
 
1806
4059
  const outcome = (question, session, env) =>
1807
4060
  new Promise((resolve) => {
1808
- if (!session || isEmpty_1(session)) {
4061
+ if (!session || isEmpty_1$1(session)) {
1809
4062
  resolve({ score: 0, empty: true });
1810
4063
  }
1811
4064
 
@@ -1814,11 +4067,11 @@ const outcome = (question, session, env) =>
1814
4067
  if (env.mode !== 'evaluate') {
1815
4068
  resolve({ score: undefined, completed: undefined });
1816
4069
  } else {
1817
- const enabled$1 = enabled(question, env, true);
4070
+ const enabled = partialScoring.enabled(question, env, true);
1818
4071
  const totalCorrect = question.tokens.filter((t) => t.correct);
1819
4072
  const score = getPartialScore(question, session, totalCorrect);
1820
4073
  resolve({
1821
- score: enabled$1 ? score : score === 1 ? 1 : 0,
4074
+ score: enabled ? score : score === 1 ? 1 : 0,
1822
4075
  });
1823
4076
  }
1824
4077
  });