@pie-element/multiple-choice 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.
- package/configure/package.json +4 -4
- package/controller/package.json +2 -2
- package/esm/configure.css +847 -0
- package/esm/configure.js +47259 -0
- package/esm/configure.js.map +1 -0
- package/esm/controller.css +847 -0
- package/esm/controller.js +2827 -0
- package/esm/controller.js.map +1 -0
- package/esm/element.css +847 -0
- package/esm/element.js +43212 -0
- package/esm/element.js.map +1 -0
- package/esm/package.json +4 -0
- package/esm/print.css +847 -0
- package/esm/print.js +45536 -0
- package/esm/print.js.map +1 -0
- package/module/controller.js +3001 -676
- package/module/element.js +1 -1
- package/module/index.html +1 -1
- package/module/index.js +2 -0
- package/module/manifest.json +1 -5
- package/module/print.html +1 -1
- package/module/print.js +1 -1
- package/package.json +26 -8
package/module/controller.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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
|
|
|
@@ -18,7 +18,7 @@ function isPrototype$2(value) {
|
|
|
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,17 +35,17 @@ 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
51
|
var objectProto$b = Object.prototype;
|
|
@@ -73,15 +73,15 @@ function baseKeys$2(object) {
|
|
|
73
73
|
return result;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
var _baseKeys = baseKeys$2;
|
|
76
|
+
var _baseKeys$1 = baseKeys$2;
|
|
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,16 +89,16 @@ var freeSelf = typeof self == 'object' && self && self.Object === Object && self
|
|
|
89
89
|
/** Used as a reference to the global object. */
|
|
90
90
|
var root$8 = freeGlobal || freeSelf || Function('return this')();
|
|
91
91
|
|
|
92
|
-
var _root = root$8;
|
|
92
|
+
var _root$1 = root$8;
|
|
93
93
|
|
|
94
|
-
var root$7 = _root;
|
|
94
|
+
var root$7 = _root$1;
|
|
95
95
|
|
|
96
96
|
/** Built-in value references. */
|
|
97
|
-
var Symbol$
|
|
97
|
+
var Symbol$3 = root$7.Symbol;
|
|
98
98
|
|
|
99
|
-
var _Symbol = Symbol$
|
|
99
|
+
var _Symbol$1 = Symbol$3;
|
|
100
100
|
|
|
101
|
-
var Symbol$
|
|
101
|
+
var Symbol$2 = _Symbol$1;
|
|
102
102
|
|
|
103
103
|
/** Used for built-in method references. */
|
|
104
104
|
var objectProto$a = Object.prototype;
|
|
@@ -114,7 +114,7 @@ var hasOwnProperty$8 = objectProto$a.hasOwnProperty;
|
|
|
114
114
|
var nativeObjectToString$1 = objectProto$a.toString;
|
|
115
115
|
|
|
116
116
|
/** Built-in value references. */
|
|
117
|
-
var symToStringTag$1 = Symbol$
|
|
117
|
+
var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : undefined;
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
120
|
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
@@ -143,7 +143,7 @@ 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
|
|
|
@@ -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$
|
|
173
|
-
getRawTag = _getRawTag,
|
|
174
|
-
objectToString = _objectToString;
|
|
172
|
+
var Symbol$1 = _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$
|
|
181
|
+
var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
182
182
|
|
|
183
183
|
/**
|
|
184
184
|
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
@@ -187,7 +187,7 @@ var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : undefined;
|
|
|
187
187
|
* @param {*} value The value to query.
|
|
188
188
|
* @returns {string} Returns the `toStringTag`.
|
|
189
189
|
*/
|
|
190
|
-
function baseGetTag$
|
|
190
|
+
function baseGetTag$4(value) {
|
|
191
191
|
if (value == null) {
|
|
192
192
|
return value === undefined ? undefinedTag : nullTag;
|
|
193
193
|
}
|
|
@@ -196,7 +196,7 @@ function baseGetTag$5(value) {
|
|
|
196
196
|
: objectToString(value);
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
var _baseGetTag = baseGetTag$
|
|
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$
|
|
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]',
|
|
@@ -263,20 +263,20 @@ function isFunction$2(value) {
|
|
|
263
263
|
}
|
|
264
264
|
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
265
265
|
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
|
266
|
-
var tag = baseGetTag$
|
|
266
|
+
var tag = baseGetTag$3(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$6 = _root;
|
|
272
|
+
var root$6 = _root$1;
|
|
273
273
|
|
|
274
274
|
/** Used to detect overreaching core-js shims. */
|
|
275
275
|
var coreJsData$1 = root$6['__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`
|
|
@@ -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`.
|
|
@@ -404,55 +404,55 @@ function getNative$6(object, key) {
|
|
|
404
404
|
return baseIsNative(value) ? value : undefined;
|
|
405
405
|
}
|
|
406
406
|
|
|
407
|
-
var _getNative = getNative$6;
|
|
407
|
+
var _getNative$1 = getNative$6;
|
|
408
408
|
|
|
409
|
-
var getNative$5 = _getNative,
|
|
410
|
-
root$5 = _root;
|
|
409
|
+
var getNative$5 = _getNative$1,
|
|
410
|
+
root$5 = _root$1;
|
|
411
411
|
|
|
412
412
|
/* Built-in method references that are verified to be native. */
|
|
413
413
|
var DataView$1 = getNative$5(root$5, 'DataView');
|
|
414
414
|
|
|
415
|
-
var _DataView = DataView$1;
|
|
415
|
+
var _DataView$1 = DataView$1;
|
|
416
416
|
|
|
417
|
-
var getNative$4 = _getNative,
|
|
418
|
-
root$4 = _root;
|
|
417
|
+
var getNative$4 = _getNative$1,
|
|
418
|
+
root$4 = _root$1;
|
|
419
419
|
|
|
420
420
|
/* Built-in method references that are verified to be native. */
|
|
421
421
|
var Map$3 = getNative$4(root$4, 'Map');
|
|
422
422
|
|
|
423
|
-
var _Map = Map$3;
|
|
423
|
+
var _Map$1 = Map$3;
|
|
424
424
|
|
|
425
|
-
var getNative$3 = _getNative,
|
|
426
|
-
root$3 = _root;
|
|
425
|
+
var getNative$3 = _getNative$1,
|
|
426
|
+
root$3 = _root$1;
|
|
427
427
|
|
|
428
428
|
/* Built-in method references that are verified to be native. */
|
|
429
429
|
var Promise$2 = getNative$3(root$3, 'Promise');
|
|
430
430
|
|
|
431
|
-
var _Promise = Promise$2;
|
|
431
|
+
var _Promise$1 = Promise$2;
|
|
432
432
|
|
|
433
|
-
var getNative$2 = _getNative,
|
|
434
|
-
root$2 = _root;
|
|
433
|
+
var getNative$2 = _getNative$1,
|
|
434
|
+
root$2 = _root$1;
|
|
435
435
|
|
|
436
436
|
/* Built-in method references that are verified to be native. */
|
|
437
437
|
var Set$1 = getNative$2(root$2, 'Set');
|
|
438
438
|
|
|
439
|
-
var _Set = Set$1;
|
|
439
|
+
var _Set$1 = Set$1;
|
|
440
440
|
|
|
441
|
-
var getNative$1 = _getNative,
|
|
442
|
-
root$1 = _root;
|
|
441
|
+
var getNative$1 = _getNative$1,
|
|
442
|
+
root$1 = _root$1;
|
|
443
443
|
|
|
444
444
|
/* Built-in method references that are verified to be native. */
|
|
445
445
|
var WeakMap$1 = getNative$1(root$1, 'WeakMap');
|
|
446
446
|
|
|
447
|
-
var _WeakMap = WeakMap$1;
|
|
447
|
+
var _WeakMap$1 = WeakMap$1;
|
|
448
448
|
|
|
449
|
-
var DataView = _DataView,
|
|
450
|
-
Map$2 = _Map,
|
|
451
|
-
Promise$1 = _Promise,
|
|
452
|
-
Set = _Set,
|
|
453
|
-
WeakMap = _WeakMap,
|
|
454
|
-
baseGetTag$
|
|
455
|
-
toSource = _toSource;
|
|
449
|
+
var DataView = _DataView$1,
|
|
450
|
+
Map$2 = _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$3 = '[object Map]',
|
|
@@ -477,7 +477,7 @@ var dataViewCtorString = toSource(DataView),
|
|
|
477
477
|
* @param {*} value The value to query.
|
|
478
478
|
* @returns {string} Returns the `toStringTag`.
|
|
479
479
|
*/
|
|
480
|
-
var getTag$2 = baseGetTag$
|
|
480
|
+
var getTag$2 = 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$2(new DataView(new ArrayBuffer(1))) != dataViewTag$2) ||
|
|
@@ -486,7 +486,7 @@ if ((DataView && getTag$2(new DataView(new ArrayBuffer(1))) != dataViewTag$2) ||
|
|
|
486
486
|
(Set && getTag$2(new Set) != setTag$3) ||
|
|
487
487
|
(WeakMap && getTag$2(new WeakMap) != weakMapTag$1)) {
|
|
488
488
|
getTag$2 = function(value) {
|
|
489
|
-
var result = baseGetTag$
|
|
489
|
+
var result = baseGetTag$2(value),
|
|
490
490
|
Ctor = result == objectTag$2 ? value.constructor : undefined,
|
|
491
491
|
ctorString = Ctor ? toSource(Ctor) : '';
|
|
492
492
|
|
|
@@ -503,7 +503,7 @@ if ((DataView && getTag$2(new DataView(new ArrayBuffer(1))) != dataViewTag$2) ||
|
|
|
503
503
|
};
|
|
504
504
|
}
|
|
505
505
|
|
|
506
|
-
var _getTag = getTag$2;
|
|
506
|
+
var _getTag$1 = getTag$2;
|
|
507
507
|
|
|
508
508
|
/**
|
|
509
509
|
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
@@ -530,14 +530,14 @@ var _getTag = getTag$2;
|
|
|
530
530
|
* // => false
|
|
531
531
|
*/
|
|
532
532
|
|
|
533
|
-
function isObjectLike$
|
|
533
|
+
function isObjectLike$4(value) {
|
|
534
534
|
return value != null && typeof value == 'object';
|
|
535
535
|
}
|
|
536
536
|
|
|
537
|
-
var isObjectLike_1 = isObjectLike$
|
|
537
|
+
var isObjectLike_1$1 = isObjectLike$4;
|
|
538
538
|
|
|
539
|
-
var baseGetTag$
|
|
540
|
-
isObjectLike$
|
|
539
|
+
var baseGetTag$1 = _baseGetTag$1,
|
|
540
|
+
isObjectLike$3 = isObjectLike_1$1;
|
|
541
541
|
|
|
542
542
|
/** `Object#toString` result references. */
|
|
543
543
|
var argsTag$2 = '[object Arguments]';
|
|
@@ -550,13 +550,13 @@ var argsTag$2 = '[object Arguments]';
|
|
|
550
550
|
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
551
551
|
*/
|
|
552
552
|
function baseIsArguments$1(value) {
|
|
553
|
-
return isObjectLike$
|
|
553
|
+
return isObjectLike$3(value) && baseGetTag$1(value) == argsTag$2;
|
|
554
554
|
}
|
|
555
555
|
|
|
556
|
-
var _baseIsArguments = baseIsArguments$1;
|
|
556
|
+
var _baseIsArguments$1 = baseIsArguments$1;
|
|
557
557
|
|
|
558
|
-
var baseIsArguments = _baseIsArguments,
|
|
559
|
-
isObjectLike$
|
|
558
|
+
var baseIsArguments = _baseIsArguments$1,
|
|
559
|
+
isObjectLike$2 = isObjectLike_1$1;
|
|
560
560
|
|
|
561
561
|
/** Used for built-in method references. */
|
|
562
562
|
var objectProto$7 = Object.prototype;
|
|
@@ -586,11 +586,11 @@ var propertyIsEnumerable$1 = objectProto$7.propertyIsEnumerable;
|
|
|
586
586
|
* // => false
|
|
587
587
|
*/
|
|
588
588
|
var isArguments$2 = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
|
|
589
|
-
return isObjectLike$
|
|
589
|
+
return isObjectLike$2(value) && hasOwnProperty$6.call(value, 'callee') &&
|
|
590
590
|
!propertyIsEnumerable$1.call(value, 'callee');
|
|
591
591
|
};
|
|
592
592
|
|
|
593
|
-
var isArguments_1 = isArguments$2;
|
|
593
|
+
var isArguments_1$1 = isArguments$2;
|
|
594
594
|
|
|
595
595
|
/**
|
|
596
596
|
* Checks if `value` is classified as an `Array` object.
|
|
@@ -616,9 +616,9 @@ var isArguments_1 = isArguments$2;
|
|
|
616
616
|
* // => false
|
|
617
617
|
*/
|
|
618
618
|
|
|
619
|
-
var isArray$
|
|
619
|
+
var isArray$4 = Array.isArray;
|
|
620
620
|
|
|
621
|
-
var isArray_1 = isArray$
|
|
621
|
+
var isArray_1$1 = isArray$4;
|
|
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$1;
|
|
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$2(value) {
|
|
|
689
689
|
return value != null && isLength$1(value.length) && !isFunction(value);
|
|
690
690
|
}
|
|
691
691
|
|
|
692
|
-
var isArrayLike_1 = isArrayLike$2;
|
|
692
|
+
var isArrayLike_1$1 = isArrayLike$2;
|
|
693
693
|
|
|
694
|
-
var isBuffer$
|
|
694
|
+
var isBuffer$4 = {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$
|
|
755
|
+
}(isBuffer$4, isBuffer$4.exports));
|
|
756
756
|
|
|
757
|
-
var baseGetTag
|
|
758
|
-
isLength = isLength_1,
|
|
759
|
-
isObjectLike$
|
|
757
|
+
var baseGetTag = _baseGetTag$1,
|
|
758
|
+
isLength = isLength_1$1,
|
|
759
|
+
isObjectLike$1 = isObjectLike_1$1;
|
|
760
760
|
|
|
761
761
|
/** `Object#toString` result references. */
|
|
762
762
|
var argsTag$1 = '[object Arguments]',
|
|
@@ -809,11 +809,11 @@ typedArrayTags[weakMapTag] = false;
|
|
|
809
809
|
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
810
810
|
*/
|
|
811
811
|
function baseIsTypedArray$1(value) {
|
|
812
|
-
return isObjectLike$
|
|
813
|
-
isLength(value.length) && !!typedArrayTags[baseGetTag
|
|
812
|
+
return isObjectLike$1(value) &&
|
|
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,16 +892,16 @@ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
|
892
892
|
*/
|
|
893
893
|
var isTypedArray$3 = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
894
894
|
|
|
895
|
-
var isTypedArray_1 = isTypedArray$3;
|
|
895
|
+
var isTypedArray_1$1 = isTypedArray$3;
|
|
896
896
|
|
|
897
|
-
var baseKeys$1 = _baseKeys,
|
|
898
|
-
getTag$1 = _getTag,
|
|
899
|
-
isArguments$1 = isArguments_1,
|
|
900
|
-
isArray$
|
|
901
|
-
isArrayLike$1 = isArrayLike_1,
|
|
902
|
-
isBuffer$
|
|
903
|
-
isPrototype = _isPrototype,
|
|
904
|
-
isTypedArray$2 = isTypedArray_1;
|
|
897
|
+
var baseKeys$1 = _baseKeys$1,
|
|
898
|
+
getTag$1 = _getTag$1,
|
|
899
|
+
isArguments$1 = isArguments_1$1,
|
|
900
|
+
isArray$3 = isArray_1$1,
|
|
901
|
+
isArrayLike$1 = isArrayLike_1$1,
|
|
902
|
+
isBuffer$3 = isBuffer$4.exports,
|
|
903
|
+
isPrototype = _isPrototype$1,
|
|
904
|
+
isTypedArray$2 = isTypedArray_1$1;
|
|
905
905
|
|
|
906
906
|
/** `Object#toString` result references. */
|
|
907
907
|
var mapTag$1 = '[object Map]',
|
|
@@ -946,13 +946,13 @@ var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
|
|
|
946
946
|
* _.isEmpty({ 'a': 1 });
|
|
947
947
|
* // => false
|
|
948
948
|
*/
|
|
949
|
-
function isEmpty(value) {
|
|
949
|
+
function isEmpty$1(value) {
|
|
950
950
|
if (value == null) {
|
|
951
951
|
return true;
|
|
952
952
|
}
|
|
953
953
|
if (isArrayLike$1(value) &&
|
|
954
|
-
(isArray$
|
|
955
|
-
isBuffer$
|
|
954
|
+
(isArray$3(value) || typeof value == 'string' || typeof value.splice == 'function' ||
|
|
955
|
+
isBuffer$3(value) || isTypedArray$2(value) || isArguments$1(value))) {
|
|
956
956
|
return !value.length;
|
|
957
957
|
}
|
|
958
958
|
var tag = getTag$1(value);
|
|
@@ -970,7 +970,7 @@ function isEmpty(value) {
|
|
|
970
970
|
return true;
|
|
971
971
|
}
|
|
972
972
|
|
|
973
|
-
var isEmpty_1 = isEmpty;
|
|
973
|
+
var isEmpty_1$1 = isEmpty$1;
|
|
974
974
|
|
|
975
975
|
/**
|
|
976
976
|
* Removes all key-value entries from the list cache.
|
|
@@ -985,7 +985,7 @@ function listCacheClear$1() {
|
|
|
985
985
|
this.size = 0;
|
|
986
986
|
}
|
|
987
987
|
|
|
988
|
-
var _listCacheClear = listCacheClear$1;
|
|
988
|
+
var _listCacheClear$1 = listCacheClear$1;
|
|
989
989
|
|
|
990
990
|
/**
|
|
991
991
|
* Performs a
|
|
@@ -1024,9 +1024,9 @@ function eq$2(value, other) {
|
|
|
1024
1024
|
return value === other || (value !== value && other !== other);
|
|
1025
1025
|
}
|
|
1026
1026
|
|
|
1027
|
-
var eq_1 = eq$2;
|
|
1027
|
+
var eq_1$1 = eq$2;
|
|
1028
1028
|
|
|
1029
|
-
var eq$1 = eq_1;
|
|
1029
|
+
var eq$1 = eq_1$1;
|
|
1030
1030
|
|
|
1031
1031
|
/**
|
|
1032
1032
|
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
@@ -1046,9 +1046,9 @@ function assocIndexOf$4(array, key) {
|
|
|
1046
1046
|
return -1;
|
|
1047
1047
|
}
|
|
1048
1048
|
|
|
1049
|
-
var _assocIndexOf = assocIndexOf$4;
|
|
1049
|
+
var _assocIndexOf$1 = assocIndexOf$4;
|
|
1050
1050
|
|
|
1051
|
-
var assocIndexOf$3 = _assocIndexOf;
|
|
1051
|
+
var assocIndexOf$3 = _assocIndexOf$1;
|
|
1052
1052
|
|
|
1053
1053
|
/** Used for built-in method references. */
|
|
1054
1054
|
var arrayProto = Array.prototype;
|
|
@@ -1082,9 +1082,9 @@ function listCacheDelete$1(key) {
|
|
|
1082
1082
|
return true;
|
|
1083
1083
|
}
|
|
1084
1084
|
|
|
1085
|
-
var _listCacheDelete = listCacheDelete$1;
|
|
1085
|
+
var _listCacheDelete$1 = listCacheDelete$1;
|
|
1086
1086
|
|
|
1087
|
-
var assocIndexOf$2 = _assocIndexOf;
|
|
1087
|
+
var assocIndexOf$2 = _assocIndexOf$1;
|
|
1088
1088
|
|
|
1089
1089
|
/**
|
|
1090
1090
|
* Gets the list cache value for `key`.
|
|
@@ -1102,9 +1102,9 @@ function listCacheGet$1(key) {
|
|
|
1102
1102
|
return index < 0 ? undefined : data[index][1];
|
|
1103
1103
|
}
|
|
1104
1104
|
|
|
1105
|
-
var _listCacheGet = listCacheGet$1;
|
|
1105
|
+
var _listCacheGet$1 = listCacheGet$1;
|
|
1106
1106
|
|
|
1107
|
-
var assocIndexOf$1 = _assocIndexOf;
|
|
1107
|
+
var assocIndexOf$1 = _assocIndexOf$1;
|
|
1108
1108
|
|
|
1109
1109
|
/**
|
|
1110
1110
|
* Checks if a list cache value for `key` exists.
|
|
@@ -1119,9 +1119,9 @@ function listCacheHas$1(key) {
|
|
|
1119
1119
|
return assocIndexOf$1(this.__data__, key) > -1;
|
|
1120
1120
|
}
|
|
1121
1121
|
|
|
1122
|
-
var _listCacheHas = listCacheHas$1;
|
|
1122
|
+
var _listCacheHas$1 = listCacheHas$1;
|
|
1123
1123
|
|
|
1124
|
-
var assocIndexOf = _assocIndexOf;
|
|
1124
|
+
var assocIndexOf = _assocIndexOf$1;
|
|
1125
1125
|
|
|
1126
1126
|
/**
|
|
1127
1127
|
* Sets the list cache `key` to `value`.
|
|
@@ -1146,13 +1146,13 @@ function listCacheSet$1(key, value) {
|
|
|
1146
1146
|
return this;
|
|
1147
1147
|
}
|
|
1148
1148
|
|
|
1149
|
-
var _listCacheSet = listCacheSet$1;
|
|
1149
|
+
var _listCacheSet$1 = listCacheSet$1;
|
|
1150
1150
|
|
|
1151
|
-
var listCacheClear = _listCacheClear,
|
|
1152
|
-
listCacheDelete = _listCacheDelete,
|
|
1153
|
-
listCacheGet = _listCacheGet,
|
|
1154
|
-
listCacheHas = _listCacheHas,
|
|
1155
|
-
listCacheSet = _listCacheSet;
|
|
1151
|
+
var listCacheClear = _listCacheClear$1,
|
|
1152
|
+
listCacheDelete = _listCacheDelete$1,
|
|
1153
|
+
listCacheGet = _listCacheGet$1,
|
|
1154
|
+
listCacheHas = _listCacheHas$1,
|
|
1155
|
+
listCacheSet = _listCacheSet$1;
|
|
1156
1156
|
|
|
1157
1157
|
/**
|
|
1158
1158
|
* Creates an list cache object.
|
|
@@ -1179,9 +1179,9 @@ ListCache$4.prototype.get = listCacheGet;
|
|
|
1179
1179
|
ListCache$4.prototype.has = listCacheHas;
|
|
1180
1180
|
ListCache$4.prototype.set = listCacheSet;
|
|
1181
1181
|
|
|
1182
|
-
var _ListCache = ListCache$4;
|
|
1182
|
+
var _ListCache$1 = ListCache$4;
|
|
1183
1183
|
|
|
1184
|
-
var ListCache$3 = _ListCache;
|
|
1184
|
+
var ListCache$3 = _ListCache$1;
|
|
1185
1185
|
|
|
1186
1186
|
/**
|
|
1187
1187
|
* Removes all key-value entries from the stack.
|
|
@@ -1249,14 +1249,14 @@ function stackHas$1(key) {
|
|
|
1249
1249
|
|
|
1250
1250
|
var _stackHas = stackHas$1;
|
|
1251
1251
|
|
|
1252
|
-
var getNative = _getNative;
|
|
1252
|
+
var getNative = _getNative$1;
|
|
1253
1253
|
|
|
1254
1254
|
/* Built-in method references that are verified to be native. */
|
|
1255
1255
|
var nativeCreate$4 = getNative(Object, 'create');
|
|
1256
1256
|
|
|
1257
|
-
var _nativeCreate = nativeCreate$4;
|
|
1257
|
+
var _nativeCreate$1 = nativeCreate$4;
|
|
1258
1258
|
|
|
1259
|
-
var nativeCreate$3 = _nativeCreate;
|
|
1259
|
+
var nativeCreate$3 = _nativeCreate$1;
|
|
1260
1260
|
|
|
1261
1261
|
/**
|
|
1262
1262
|
* Removes all key-value entries from the hash.
|
|
@@ -1270,7 +1270,7 @@ function hashClear$1() {
|
|
|
1270
1270
|
this.size = 0;
|
|
1271
1271
|
}
|
|
1272
1272
|
|
|
1273
|
-
var _hashClear = hashClear$1;
|
|
1273
|
+
var _hashClear$1 = hashClear$1;
|
|
1274
1274
|
|
|
1275
1275
|
/**
|
|
1276
1276
|
* Removes `key` and its value from the hash.
|
|
@@ -1289,9 +1289,9 @@ function hashDelete$1(key) {
|
|
|
1289
1289
|
return result;
|
|
1290
1290
|
}
|
|
1291
1291
|
|
|
1292
|
-
var _hashDelete = hashDelete$1;
|
|
1292
|
+
var _hashDelete$1 = hashDelete$1;
|
|
1293
1293
|
|
|
1294
|
-
var nativeCreate$2 = _nativeCreate;
|
|
1294
|
+
var nativeCreate$2 = _nativeCreate$1;
|
|
1295
1295
|
|
|
1296
1296
|
/** Used to stand-in for `undefined` hash values. */
|
|
1297
1297
|
var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
|
|
@@ -1320,9 +1320,9 @@ function hashGet$1(key) {
|
|
|
1320
1320
|
return hasOwnProperty$4.call(data, key) ? data[key] : undefined;
|
|
1321
1321
|
}
|
|
1322
1322
|
|
|
1323
|
-
var _hashGet = hashGet$1;
|
|
1323
|
+
var _hashGet$1 = hashGet$1;
|
|
1324
1324
|
|
|
1325
|
-
var nativeCreate$1 = _nativeCreate;
|
|
1325
|
+
var nativeCreate$1 = _nativeCreate$1;
|
|
1326
1326
|
|
|
1327
1327
|
/** Used for built-in method references. */
|
|
1328
1328
|
var objectProto$4 = Object.prototype;
|
|
@@ -1344,9 +1344,9 @@ function hashHas$1(key) {
|
|
|
1344
1344
|
return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$3.call(data, key);
|
|
1345
1345
|
}
|
|
1346
1346
|
|
|
1347
|
-
var _hashHas = hashHas$1;
|
|
1347
|
+
var _hashHas$1 = hashHas$1;
|
|
1348
1348
|
|
|
1349
|
-
var nativeCreate = _nativeCreate;
|
|
1349
|
+
var nativeCreate = _nativeCreate$1;
|
|
1350
1350
|
|
|
1351
1351
|
/** Used to stand-in for `undefined` hash values. */
|
|
1352
1352
|
var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
|
|
@@ -1368,13 +1368,13 @@ function hashSet$1(key, value) {
|
|
|
1368
1368
|
return this;
|
|
1369
1369
|
}
|
|
1370
1370
|
|
|
1371
|
-
var _hashSet = hashSet$1;
|
|
1371
|
+
var _hashSet$1 = hashSet$1;
|
|
1372
1372
|
|
|
1373
|
-
var hashClear = _hashClear,
|
|
1374
|
-
hashDelete = _hashDelete,
|
|
1375
|
-
hashGet = _hashGet,
|
|
1376
|
-
hashHas = _hashHas,
|
|
1377
|
-
hashSet = _hashSet;
|
|
1373
|
+
var hashClear = _hashClear$1,
|
|
1374
|
+
hashDelete = _hashDelete$1,
|
|
1375
|
+
hashGet = _hashGet$1,
|
|
1376
|
+
hashHas = _hashHas$1,
|
|
1377
|
+
hashSet = _hashSet$1;
|
|
1378
1378
|
|
|
1379
1379
|
/**
|
|
1380
1380
|
* Creates a hash object.
|
|
@@ -1401,11 +1401,11 @@ Hash$1.prototype.get = hashGet;
|
|
|
1401
1401
|
Hash$1.prototype.has = hashHas;
|
|
1402
1402
|
Hash$1.prototype.set = hashSet;
|
|
1403
1403
|
|
|
1404
|
-
var _Hash = Hash$1;
|
|
1404
|
+
var _Hash$1 = Hash$1;
|
|
1405
1405
|
|
|
1406
|
-
var Hash = _Hash,
|
|
1407
|
-
ListCache$2 = _ListCache,
|
|
1408
|
-
Map$1 = _Map;
|
|
1406
|
+
var Hash = _Hash$1,
|
|
1407
|
+
ListCache$2 = _ListCache$1,
|
|
1408
|
+
Map$1 = _Map$1;
|
|
1409
1409
|
|
|
1410
1410
|
/**
|
|
1411
1411
|
* Removes all key-value entries from the map.
|
|
@@ -1423,7 +1423,7 @@ function mapCacheClear$1() {
|
|
|
1423
1423
|
};
|
|
1424
1424
|
}
|
|
1425
1425
|
|
|
1426
|
-
var _mapCacheClear = mapCacheClear$1;
|
|
1426
|
+
var _mapCacheClear$1 = mapCacheClear$1;
|
|
1427
1427
|
|
|
1428
1428
|
/**
|
|
1429
1429
|
* Checks if `value` is suitable for use as unique object key.
|
|
@@ -1440,9 +1440,9 @@ function isKeyable$1(value) {
|
|
|
1440
1440
|
: (value === null);
|
|
1441
1441
|
}
|
|
1442
1442
|
|
|
1443
|
-
var _isKeyable = isKeyable$1;
|
|
1443
|
+
var _isKeyable$1 = isKeyable$1;
|
|
1444
1444
|
|
|
1445
|
-
var isKeyable = _isKeyable;
|
|
1445
|
+
var isKeyable = _isKeyable$1;
|
|
1446
1446
|
|
|
1447
1447
|
/**
|
|
1448
1448
|
* Gets the data for `map`.
|
|
@@ -1459,9 +1459,9 @@ function getMapData$4(map, key) {
|
|
|
1459
1459
|
: data.map;
|
|
1460
1460
|
}
|
|
1461
1461
|
|
|
1462
|
-
var _getMapData = getMapData$4;
|
|
1462
|
+
var _getMapData$1 = getMapData$4;
|
|
1463
1463
|
|
|
1464
|
-
var getMapData$3 = _getMapData;
|
|
1464
|
+
var getMapData$3 = _getMapData$1;
|
|
1465
1465
|
|
|
1466
1466
|
/**
|
|
1467
1467
|
* Removes `key` and its value from the map.
|
|
@@ -1478,9 +1478,9 @@ function mapCacheDelete$1(key) {
|
|
|
1478
1478
|
return result;
|
|
1479
1479
|
}
|
|
1480
1480
|
|
|
1481
|
-
var _mapCacheDelete = mapCacheDelete$1;
|
|
1481
|
+
var _mapCacheDelete$1 = mapCacheDelete$1;
|
|
1482
1482
|
|
|
1483
|
-
var getMapData$2 = _getMapData;
|
|
1483
|
+
var getMapData$2 = _getMapData$1;
|
|
1484
1484
|
|
|
1485
1485
|
/**
|
|
1486
1486
|
* Gets the map value for `key`.
|
|
@@ -1495,9 +1495,9 @@ function mapCacheGet$1(key) {
|
|
|
1495
1495
|
return getMapData$2(this, key).get(key);
|
|
1496
1496
|
}
|
|
1497
1497
|
|
|
1498
|
-
var _mapCacheGet = mapCacheGet$1;
|
|
1498
|
+
var _mapCacheGet$1 = mapCacheGet$1;
|
|
1499
1499
|
|
|
1500
|
-
var getMapData$1 = _getMapData;
|
|
1500
|
+
var getMapData$1 = _getMapData$1;
|
|
1501
1501
|
|
|
1502
1502
|
/**
|
|
1503
1503
|
* Checks if a map value for `key` exists.
|
|
@@ -1512,9 +1512,9 @@ function mapCacheHas$1(key) {
|
|
|
1512
1512
|
return getMapData$1(this, key).has(key);
|
|
1513
1513
|
}
|
|
1514
1514
|
|
|
1515
|
-
var _mapCacheHas = mapCacheHas$1;
|
|
1515
|
+
var _mapCacheHas$1 = mapCacheHas$1;
|
|
1516
1516
|
|
|
1517
|
-
var getMapData = _getMapData;
|
|
1517
|
+
var getMapData = _getMapData$1;
|
|
1518
1518
|
|
|
1519
1519
|
/**
|
|
1520
1520
|
* Sets the map `key` to `value`.
|
|
@@ -1535,13 +1535,13 @@ function mapCacheSet$1(key, value) {
|
|
|
1535
1535
|
return this;
|
|
1536
1536
|
}
|
|
1537
1537
|
|
|
1538
|
-
var _mapCacheSet = mapCacheSet$1;
|
|
1538
|
+
var _mapCacheSet$1 = mapCacheSet$1;
|
|
1539
1539
|
|
|
1540
|
-
var mapCacheClear = _mapCacheClear,
|
|
1541
|
-
mapCacheDelete = _mapCacheDelete,
|
|
1542
|
-
mapCacheGet = _mapCacheGet,
|
|
1543
|
-
mapCacheHas = _mapCacheHas,
|
|
1544
|
-
mapCacheSet = _mapCacheSet;
|
|
1540
|
+
var mapCacheClear = _mapCacheClear$1,
|
|
1541
|
+
mapCacheDelete = _mapCacheDelete$1,
|
|
1542
|
+
mapCacheGet = _mapCacheGet$1,
|
|
1543
|
+
mapCacheHas = _mapCacheHas$1,
|
|
1544
|
+
mapCacheSet = _mapCacheSet$1;
|
|
1545
1545
|
|
|
1546
1546
|
/**
|
|
1547
1547
|
* Creates a map cache object to store key-value pairs.
|
|
@@ -1550,7 +1550,7 @@ var mapCacheClear = _mapCacheClear,
|
|
|
1550
1550
|
* @constructor
|
|
1551
1551
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
1552
1552
|
*/
|
|
1553
|
-
function MapCache$
|
|
1553
|
+
function MapCache$2(entries) {
|
|
1554
1554
|
var index = -1,
|
|
1555
1555
|
length = entries == null ? 0 : entries.length;
|
|
1556
1556
|
|
|
@@ -1562,17 +1562,17 @@ function MapCache$3(entries) {
|
|
|
1562
1562
|
}
|
|
1563
1563
|
|
|
1564
1564
|
// Add methods to `MapCache`.
|
|
1565
|
-
MapCache$
|
|
1566
|
-
MapCache$
|
|
1567
|
-
MapCache$
|
|
1568
|
-
MapCache$
|
|
1569
|
-
MapCache$
|
|
1565
|
+
MapCache$2.prototype.clear = mapCacheClear;
|
|
1566
|
+
MapCache$2.prototype['delete'] = mapCacheDelete;
|
|
1567
|
+
MapCache$2.prototype.get = mapCacheGet;
|
|
1568
|
+
MapCache$2.prototype.has = mapCacheHas;
|
|
1569
|
+
MapCache$2.prototype.set = mapCacheSet;
|
|
1570
1570
|
|
|
1571
|
-
var _MapCache = MapCache$
|
|
1571
|
+
var _MapCache$1 = MapCache$2;
|
|
1572
1572
|
|
|
1573
|
-
var ListCache$1 = _ListCache,
|
|
1574
|
-
Map = _Map,
|
|
1575
|
-
MapCache$
|
|
1573
|
+
var ListCache$1 = _ListCache$1,
|
|
1574
|
+
Map = _Map$1,
|
|
1575
|
+
MapCache$1 = _MapCache$1;
|
|
1576
1576
|
|
|
1577
1577
|
/** Used as the size to enable large array optimizations. */
|
|
1578
1578
|
var LARGE_ARRAY_SIZE = 200;
|
|
@@ -1596,7 +1596,7 @@ function stackSet$1(key, value) {
|
|
|
1596
1596
|
this.size = ++data.size;
|
|
1597
1597
|
return this;
|
|
1598
1598
|
}
|
|
1599
|
-
data = this.__data__ = new MapCache$
|
|
1599
|
+
data = this.__data__ = new MapCache$1(pairs);
|
|
1600
1600
|
}
|
|
1601
1601
|
data.set(key, value);
|
|
1602
1602
|
this.size = data.size;
|
|
@@ -1605,7 +1605,7 @@ function stackSet$1(key, value) {
|
|
|
1605
1605
|
|
|
1606
1606
|
var _stackSet = stackSet$1;
|
|
1607
1607
|
|
|
1608
|
-
var ListCache = _ListCache,
|
|
1608
|
+
var ListCache = _ListCache$1,
|
|
1609
1609
|
stackClear = _stackClear,
|
|
1610
1610
|
stackDelete = _stackDelete,
|
|
1611
1611
|
stackGet = _stackGet,
|
|
@@ -1670,7 +1670,7 @@ function setCacheHas$1(value) {
|
|
|
1670
1670
|
|
|
1671
1671
|
var _setCacheHas = setCacheHas$1;
|
|
1672
1672
|
|
|
1673
|
-
var MapCache
|
|
1673
|
+
var MapCache = _MapCache$1,
|
|
1674
1674
|
setCacheAdd = _setCacheAdd,
|
|
1675
1675
|
setCacheHas = _setCacheHas;
|
|
1676
1676
|
|
|
@@ -1686,7 +1686,7 @@ function SetCache$1(values) {
|
|
|
1686
1686
|
var index = -1,
|
|
1687
1687
|
length = values == null ? 0 : values.length;
|
|
1688
1688
|
|
|
1689
|
-
this.__data__ = new MapCache
|
|
1689
|
+
this.__data__ = new MapCache;
|
|
1690
1690
|
while (++index < length) {
|
|
1691
1691
|
this.add(values[index]);
|
|
1692
1692
|
}
|
|
@@ -1823,7 +1823,7 @@ function equalArrays$2(array, other, bitmask, customizer, equalFunc, stack) {
|
|
|
1823
1823
|
|
|
1824
1824
|
var _equalArrays = equalArrays$2;
|
|
1825
1825
|
|
|
1826
|
-
var root = _root;
|
|
1826
|
+
var root = _root$1;
|
|
1827
1827
|
|
|
1828
1828
|
/** Built-in value references. */
|
|
1829
1829
|
var Uint8Array$1 = root.Uint8Array;
|
|
@@ -1870,9 +1870,9 @@ function setToArray$1(set) {
|
|
|
1870
1870
|
|
|
1871
1871
|
var _setToArray = setToArray$1;
|
|
1872
1872
|
|
|
1873
|
-
var Symbol
|
|
1873
|
+
var Symbol = _Symbol$1,
|
|
1874
1874
|
Uint8Array = _Uint8Array,
|
|
1875
|
-
eq = eq_1,
|
|
1875
|
+
eq = eq_1$1,
|
|
1876
1876
|
equalArrays$1 = _equalArrays,
|
|
1877
1877
|
mapToArray = _mapToArray,
|
|
1878
1878
|
setToArray = _setToArray;
|
|
@@ -1890,14 +1890,14 @@ var boolTag = '[object Boolean]',
|
|
|
1890
1890
|
regexpTag = '[object RegExp]',
|
|
1891
1891
|
setTag = '[object Set]',
|
|
1892
1892
|
stringTag = '[object String]',
|
|
1893
|
-
symbolTag
|
|
1893
|
+
symbolTag = '[object Symbol]';
|
|
1894
1894
|
|
|
1895
1895
|
var arrayBufferTag = '[object ArrayBuffer]',
|
|
1896
1896
|
dataViewTag = '[object DataView]';
|
|
1897
1897
|
|
|
1898
1898
|
/** Used to convert symbols to primitives and strings. */
|
|
1899
|
-
var symbolProto
|
|
1900
|
-
symbolValueOf = symbolProto
|
|
1899
|
+
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
|
1900
|
+
symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
|
|
1901
1901
|
|
|
1902
1902
|
/**
|
|
1903
1903
|
* A specialized version of `baseIsEqualDeep` for comparing objects of
|
|
@@ -1973,7 +1973,7 @@ function equalByTag$1(object, other, tag, bitmask, customizer, equalFunc, stack)
|
|
|
1973
1973
|
stack['delete'](object);
|
|
1974
1974
|
return result;
|
|
1975
1975
|
|
|
1976
|
-
case symbolTag
|
|
1976
|
+
case symbolTag:
|
|
1977
1977
|
if (symbolValueOf) {
|
|
1978
1978
|
return symbolValueOf.call(object) == symbolValueOf.call(other);
|
|
1979
1979
|
}
|
|
@@ -2006,7 +2006,7 @@ function arrayPush$1(array, values) {
|
|
|
2006
2006
|
var _arrayPush = arrayPush$1;
|
|
2007
2007
|
|
|
2008
2008
|
var arrayPush = _arrayPush,
|
|
2009
|
-
isArray$
|
|
2009
|
+
isArray$2 = isArray_1$1;
|
|
2010
2010
|
|
|
2011
2011
|
/**
|
|
2012
2012
|
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
|
@@ -2021,7 +2021,7 @@ var arrayPush = _arrayPush,
|
|
|
2021
2021
|
*/
|
|
2022
2022
|
function baseGetAllKeys$1(object, keysFunc, symbolsFunc) {
|
|
2023
2023
|
var result = keysFunc(object);
|
|
2024
|
-
return isArray$
|
|
2024
|
+
return isArray$2(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
2025
2025
|
}
|
|
2026
2026
|
|
|
2027
2027
|
var _baseGetAllKeys = baseGetAllKeys$1;
|
|
@@ -2129,7 +2129,7 @@ function baseTimes$1(n, iteratee) {
|
|
|
2129
2129
|
return result;
|
|
2130
2130
|
}
|
|
2131
2131
|
|
|
2132
|
-
var _baseTimes = baseTimes$1;
|
|
2132
|
+
var _baseTimes$1 = baseTimes$1;
|
|
2133
2133
|
|
|
2134
2134
|
/** Used as references for various `Number` constants. */
|
|
2135
2135
|
|
|
@@ -2156,14 +2156,14 @@ function isIndex$1(value, length) {
|
|
|
2156
2156
|
(value > -1 && value % 1 == 0 && value < length);
|
|
2157
2157
|
}
|
|
2158
2158
|
|
|
2159
|
-
var _isIndex = isIndex$1;
|
|
2159
|
+
var _isIndex$1 = isIndex$1;
|
|
2160
2160
|
|
|
2161
|
-
var baseTimes = _baseTimes,
|
|
2162
|
-
isArguments = isArguments_1,
|
|
2163
|
-
isArray$
|
|
2164
|
-
isBuffer$
|
|
2165
|
-
isIndex = _isIndex,
|
|
2166
|
-
isTypedArray$1 = isTypedArray_1;
|
|
2161
|
+
var baseTimes = _baseTimes$1,
|
|
2162
|
+
isArguments = isArguments_1$1,
|
|
2163
|
+
isArray$1 = isArray_1$1,
|
|
2164
|
+
isBuffer$2 = isBuffer$4.exports,
|
|
2165
|
+
isIndex = _isIndex$1,
|
|
2166
|
+
isTypedArray$1 = isTypedArray_1$1;
|
|
2167
2167
|
|
|
2168
2168
|
/** Used for built-in method references. */
|
|
2169
2169
|
var objectProto$2 = Object.prototype;
|
|
@@ -2180,9 +2180,9 @@ var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
|
2180
2180
|
* @returns {Array} Returns the array of property names.
|
|
2181
2181
|
*/
|
|
2182
2182
|
function arrayLikeKeys$1(value, inherited) {
|
|
2183
|
-
var isArr = isArray$
|
|
2183
|
+
var isArr = isArray$1(value),
|
|
2184
2184
|
isArg = !isArr && isArguments(value),
|
|
2185
|
-
isBuff = !isArr && !isArg && isBuffer$
|
|
2185
|
+
isBuff = !isArr && !isArg && isBuffer$2(value),
|
|
2186
2186
|
isType = !isArr && !isArg && !isBuff && isTypedArray$1(value),
|
|
2187
2187
|
skipIndexes = isArr || isArg || isBuff || isType,
|
|
2188
2188
|
result = skipIndexes ? baseTimes(value.length, String) : [],
|
|
@@ -2206,11 +2206,11 @@ function arrayLikeKeys$1(value, inherited) {
|
|
|
2206
2206
|
return result;
|
|
2207
2207
|
}
|
|
2208
2208
|
|
|
2209
|
-
var _arrayLikeKeys = arrayLikeKeys$1;
|
|
2209
|
+
var _arrayLikeKeys$1 = arrayLikeKeys$1;
|
|
2210
2210
|
|
|
2211
|
-
var arrayLikeKeys = _arrayLikeKeys,
|
|
2212
|
-
baseKeys = _baseKeys,
|
|
2213
|
-
isArrayLike = isArrayLike_1;
|
|
2211
|
+
var arrayLikeKeys = _arrayLikeKeys$1,
|
|
2212
|
+
baseKeys = _baseKeys$1,
|
|
2213
|
+
isArrayLike = isArrayLike_1$1;
|
|
2214
2214
|
|
|
2215
2215
|
/**
|
|
2216
2216
|
* Creates an array of the own enumerable property names of `object`.
|
|
@@ -2240,15 +2240,15 @@ var arrayLikeKeys = _arrayLikeKeys,
|
|
|
2240
2240
|
* _.keys('hi');
|
|
2241
2241
|
* // => ['0', '1']
|
|
2242
2242
|
*/
|
|
2243
|
-
function keys$
|
|
2243
|
+
function keys$1(object) {
|
|
2244
2244
|
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
2245
2245
|
}
|
|
2246
2246
|
|
|
2247
|
-
var keys_1 = keys$
|
|
2247
|
+
var keys_1$1 = keys$1;
|
|
2248
2248
|
|
|
2249
2249
|
var baseGetAllKeys = _baseGetAllKeys,
|
|
2250
2250
|
getSymbols = _getSymbols,
|
|
2251
|
-
keys
|
|
2251
|
+
keys = keys_1$1;
|
|
2252
2252
|
|
|
2253
2253
|
/**
|
|
2254
2254
|
* Creates an array of own enumerable property names and symbols of `object`.
|
|
@@ -2258,7 +2258,7 @@ var baseGetAllKeys = _baseGetAllKeys,
|
|
|
2258
2258
|
* @returns {Array} Returns the array of property names and symbols.
|
|
2259
2259
|
*/
|
|
2260
2260
|
function getAllKeys$1(object) {
|
|
2261
|
-
return baseGetAllKeys(object, keys
|
|
2261
|
+
return baseGetAllKeys(object, keys, getSymbols);
|
|
2262
2262
|
}
|
|
2263
2263
|
|
|
2264
2264
|
var _getAllKeys = getAllKeys$1;
|
|
@@ -2358,10 +2358,10 @@ var Stack = _Stack,
|
|
|
2358
2358
|
equalArrays = _equalArrays,
|
|
2359
2359
|
equalByTag = _equalByTag,
|
|
2360
2360
|
equalObjects = _equalObjects,
|
|
2361
|
-
getTag = _getTag,
|
|
2362
|
-
isArray
|
|
2363
|
-
isBuffer = isBuffer$
|
|
2364
|
-
isTypedArray = isTypedArray_1;
|
|
2361
|
+
getTag = _getTag$1,
|
|
2362
|
+
isArray = isArray_1$1,
|
|
2363
|
+
isBuffer$1 = isBuffer$4.exports,
|
|
2364
|
+
isTypedArray = isTypedArray_1$1;
|
|
2365
2365
|
|
|
2366
2366
|
/** Used to compose bitmasks for value comparisons. */
|
|
2367
2367
|
var COMPARE_PARTIAL_FLAG = 1;
|
|
@@ -2392,8 +2392,8 @@ var hasOwnProperty = objectProto.hasOwnProperty;
|
|
|
2392
2392
|
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
2393
2393
|
*/
|
|
2394
2394
|
function baseIsEqualDeep$1(object, other, bitmask, customizer, equalFunc, stack) {
|
|
2395
|
-
var objIsArr = isArray
|
|
2396
|
-
othIsArr = isArray
|
|
2395
|
+
var objIsArr = isArray(object),
|
|
2396
|
+
othIsArr = isArray(other),
|
|
2397
2397
|
objTag = objIsArr ? arrayTag : getTag(object),
|
|
2398
2398
|
othTag = othIsArr ? arrayTag : getTag(other);
|
|
2399
2399
|
|
|
@@ -2404,8 +2404,8 @@ function baseIsEqualDeep$1(object, other, bitmask, customizer, equalFunc, stack)
|
|
|
2404
2404
|
othIsObj = othTag == objectTag,
|
|
2405
2405
|
isSameTag = objTag == othTag;
|
|
2406
2406
|
|
|
2407
|
-
if (isSameTag && isBuffer(object)) {
|
|
2408
|
-
if (!isBuffer(other)) {
|
|
2407
|
+
if (isSameTag && isBuffer$1(object)) {
|
|
2408
|
+
if (!isBuffer$1(other)) {
|
|
2409
2409
|
return false;
|
|
2410
2410
|
}
|
|
2411
2411
|
objIsArr = true;
|
|
@@ -2439,7 +2439,7 @@ function baseIsEqualDeep$1(object, other, bitmask, customizer, equalFunc, stack)
|
|
|
2439
2439
|
var _baseIsEqualDeep = baseIsEqualDeep$1;
|
|
2440
2440
|
|
|
2441
2441
|
var baseIsEqualDeep = _baseIsEqualDeep,
|
|
2442
|
-
isObjectLike
|
|
2442
|
+
isObjectLike = isObjectLike_1$1;
|
|
2443
2443
|
|
|
2444
2444
|
/**
|
|
2445
2445
|
* The base implementation of `_.isEqual` which supports partial comparisons
|
|
@@ -2459,7 +2459,7 @@ function baseIsEqual$1(value, other, bitmask, customizer, stack) {
|
|
|
2459
2459
|
if (value === other) {
|
|
2460
2460
|
return true;
|
|
2461
2461
|
}
|
|
2462
|
-
if (value == null || other == null || (!isObjectLike
|
|
2462
|
+
if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
|
|
2463
2463
|
return value !== value && other !== other;
|
|
2464
2464
|
}
|
|
2465
2465
|
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual$1, stack);
|
|
@@ -2561,387 +2561,1739 @@ const enabled = (config, env, defaultValue) => {
|
|
|
2561
2561
|
return typeof defaultValue === 'boolean' ? defaultValue : true;
|
|
2562
2562
|
};
|
|
2563
2563
|
|
|
2564
|
-
var
|
|
2565
|
-
|
|
2564
|
+
var partialScoring = /*#__PURE__*/Object.freeze({
|
|
2565
|
+
__proto__: null,
|
|
2566
|
+
enabled: enabled
|
|
2567
|
+
});
|
|
2566
2568
|
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
2570
|
+
|
|
2571
|
+
function getDefaultExportFromCjs (x) {
|
|
2572
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
2573
|
+
}
|
|
2569
2574
|
|
|
2570
2575
|
/**
|
|
2571
|
-
* Checks if `value` is classified as
|
|
2576
|
+
* Checks if `value` is classified as an `Array` object.
|
|
2572
2577
|
*
|
|
2573
2578
|
* @static
|
|
2574
2579
|
* @memberOf _
|
|
2575
|
-
* @since
|
|
2580
|
+
* @since 0.1.0
|
|
2576
2581
|
* @category Lang
|
|
2577
2582
|
* @param {*} value The value to check.
|
|
2578
|
-
* @returns {boolean} Returns `true` if `value` is
|
|
2583
|
+
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
2579
2584
|
* @example
|
|
2580
2585
|
*
|
|
2581
|
-
* _.
|
|
2586
|
+
* _.isArray([1, 2, 3]);
|
|
2582
2587
|
* // => true
|
|
2583
2588
|
*
|
|
2584
|
-
* _.
|
|
2589
|
+
* _.isArray(document.body.children);
|
|
2590
|
+
* // => false
|
|
2591
|
+
*
|
|
2592
|
+
* _.isArray('abc');
|
|
2593
|
+
* // => false
|
|
2594
|
+
*
|
|
2595
|
+
* _.isArray(_.noop);
|
|
2585
2596
|
* // => false
|
|
2586
2597
|
*/
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2598
|
+
|
|
2599
|
+
var isArray_1;
|
|
2600
|
+
var hasRequiredIsArray;
|
|
2601
|
+
|
|
2602
|
+
function requireIsArray () {
|
|
2603
|
+
if (hasRequiredIsArray) return isArray_1;
|
|
2604
|
+
hasRequiredIsArray = 1;
|
|
2605
|
+
var isArray = Array.isArray;
|
|
2606
|
+
|
|
2607
|
+
isArray_1 = isArray;
|
|
2608
|
+
return isArray_1;
|
|
2590
2609
|
}
|
|
2591
2610
|
|
|
2592
|
-
|
|
2611
|
+
/** Detect free variable `global` from Node.js. */
|
|
2612
|
+
|
|
2613
|
+
var _freeGlobal;
|
|
2614
|
+
var hasRequired_freeGlobal;
|
|
2615
|
+
|
|
2616
|
+
function require_freeGlobal () {
|
|
2617
|
+
if (hasRequired_freeGlobal) return _freeGlobal;
|
|
2618
|
+
hasRequired_freeGlobal = 1;
|
|
2619
|
+
var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
2593
2620
|
|
|
2594
|
-
|
|
2595
|
-
|
|
2621
|
+
_freeGlobal = freeGlobal;
|
|
2622
|
+
return _freeGlobal;
|
|
2623
|
+
}
|
|
2596
2624
|
|
|
2597
|
-
|
|
2598
|
-
var
|
|
2599
|
-
|
|
2625
|
+
var _root;
|
|
2626
|
+
var hasRequired_root;
|
|
2627
|
+
|
|
2628
|
+
function require_root () {
|
|
2629
|
+
if (hasRequired_root) return _root;
|
|
2630
|
+
hasRequired_root = 1;
|
|
2631
|
+
var freeGlobal = require_freeGlobal();
|
|
2632
|
+
|
|
2633
|
+
/** Detect free variable `self`. */
|
|
2634
|
+
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
2635
|
+
|
|
2636
|
+
/** Used as a reference to the global object. */
|
|
2637
|
+
var root = freeGlobal || freeSelf || Function('return this')();
|
|
2638
|
+
|
|
2639
|
+
_root = root;
|
|
2640
|
+
return _root;
|
|
2641
|
+
}
|
|
2642
|
+
|
|
2643
|
+
var _Symbol;
|
|
2644
|
+
var hasRequired_Symbol;
|
|
2645
|
+
|
|
2646
|
+
function require_Symbol () {
|
|
2647
|
+
if (hasRequired_Symbol) return _Symbol;
|
|
2648
|
+
hasRequired_Symbol = 1;
|
|
2649
|
+
var root = require_root();
|
|
2650
|
+
|
|
2651
|
+
/** Built-in value references. */
|
|
2652
|
+
var Symbol = root.Symbol;
|
|
2653
|
+
|
|
2654
|
+
_Symbol = Symbol;
|
|
2655
|
+
return _Symbol;
|
|
2656
|
+
}
|
|
2657
|
+
|
|
2658
|
+
var _getRawTag;
|
|
2659
|
+
var hasRequired_getRawTag;
|
|
2660
|
+
|
|
2661
|
+
function require_getRawTag () {
|
|
2662
|
+
if (hasRequired_getRawTag) return _getRawTag;
|
|
2663
|
+
hasRequired_getRawTag = 1;
|
|
2664
|
+
var Symbol = require_Symbol();
|
|
2665
|
+
|
|
2666
|
+
/** Used for built-in method references. */
|
|
2667
|
+
var objectProto = Object.prototype;
|
|
2668
|
+
|
|
2669
|
+
/** Used to check objects for own properties. */
|
|
2670
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
2671
|
+
|
|
2672
|
+
/**
|
|
2673
|
+
* Used to resolve the
|
|
2674
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
2675
|
+
* of values.
|
|
2676
|
+
*/
|
|
2677
|
+
var nativeObjectToString = objectProto.toString;
|
|
2678
|
+
|
|
2679
|
+
/** Built-in value references. */
|
|
2680
|
+
var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
|
|
2681
|
+
|
|
2682
|
+
/**
|
|
2683
|
+
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
2684
|
+
*
|
|
2685
|
+
* @private
|
|
2686
|
+
* @param {*} value The value to query.
|
|
2687
|
+
* @returns {string} Returns the raw `toStringTag`.
|
|
2688
|
+
*/
|
|
2689
|
+
function getRawTag(value) {
|
|
2690
|
+
var isOwn = hasOwnProperty.call(value, symToStringTag),
|
|
2691
|
+
tag = value[symToStringTag];
|
|
2692
|
+
|
|
2693
|
+
try {
|
|
2694
|
+
value[symToStringTag] = undefined;
|
|
2695
|
+
var unmasked = true;
|
|
2696
|
+
} catch (e) {}
|
|
2697
|
+
|
|
2698
|
+
var result = nativeObjectToString.call(value);
|
|
2699
|
+
if (unmasked) {
|
|
2700
|
+
if (isOwn) {
|
|
2701
|
+
value[symToStringTag] = tag;
|
|
2702
|
+
} else {
|
|
2703
|
+
delete value[symToStringTag];
|
|
2704
|
+
}
|
|
2705
|
+
}
|
|
2706
|
+
return result;
|
|
2707
|
+
}
|
|
2708
|
+
|
|
2709
|
+
_getRawTag = getRawTag;
|
|
2710
|
+
return _getRawTag;
|
|
2711
|
+
}
|
|
2712
|
+
|
|
2713
|
+
/** Used for built-in method references. */
|
|
2714
|
+
|
|
2715
|
+
var _objectToString;
|
|
2716
|
+
var hasRequired_objectToString;
|
|
2717
|
+
|
|
2718
|
+
function require_objectToString () {
|
|
2719
|
+
if (hasRequired_objectToString) return _objectToString;
|
|
2720
|
+
hasRequired_objectToString = 1;
|
|
2721
|
+
var objectProto = Object.prototype;
|
|
2722
|
+
|
|
2723
|
+
/**
|
|
2724
|
+
* Used to resolve the
|
|
2725
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
2726
|
+
* of values.
|
|
2727
|
+
*/
|
|
2728
|
+
var nativeObjectToString = objectProto.toString;
|
|
2729
|
+
|
|
2730
|
+
/**
|
|
2731
|
+
* Converts `value` to a string using `Object.prototype.toString`.
|
|
2732
|
+
*
|
|
2733
|
+
* @private
|
|
2734
|
+
* @param {*} value The value to convert.
|
|
2735
|
+
* @returns {string} Returns the converted string.
|
|
2736
|
+
*/
|
|
2737
|
+
function objectToString(value) {
|
|
2738
|
+
return nativeObjectToString.call(value);
|
|
2739
|
+
}
|
|
2740
|
+
|
|
2741
|
+
_objectToString = objectToString;
|
|
2742
|
+
return _objectToString;
|
|
2743
|
+
}
|
|
2744
|
+
|
|
2745
|
+
var _baseGetTag;
|
|
2746
|
+
var hasRequired_baseGetTag;
|
|
2747
|
+
|
|
2748
|
+
function require_baseGetTag () {
|
|
2749
|
+
if (hasRequired_baseGetTag) return _baseGetTag;
|
|
2750
|
+
hasRequired_baseGetTag = 1;
|
|
2751
|
+
var Symbol = require_Symbol(),
|
|
2752
|
+
getRawTag = require_getRawTag(),
|
|
2753
|
+
objectToString = require_objectToString();
|
|
2754
|
+
|
|
2755
|
+
/** `Object#toString` result references. */
|
|
2756
|
+
var nullTag = '[object Null]',
|
|
2757
|
+
undefinedTag = '[object Undefined]';
|
|
2758
|
+
|
|
2759
|
+
/** Built-in value references. */
|
|
2760
|
+
var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
|
|
2761
|
+
|
|
2762
|
+
/**
|
|
2763
|
+
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
2764
|
+
*
|
|
2765
|
+
* @private
|
|
2766
|
+
* @param {*} value The value to query.
|
|
2767
|
+
* @returns {string} Returns the `toStringTag`.
|
|
2768
|
+
*/
|
|
2769
|
+
function baseGetTag(value) {
|
|
2770
|
+
if (value == null) {
|
|
2771
|
+
return value === undefined ? undefinedTag : nullTag;
|
|
2772
|
+
}
|
|
2773
|
+
return (symToStringTag && symToStringTag in Object(value))
|
|
2774
|
+
? getRawTag(value)
|
|
2775
|
+
: objectToString(value);
|
|
2776
|
+
}
|
|
2777
|
+
|
|
2778
|
+
_baseGetTag = baseGetTag;
|
|
2779
|
+
return _baseGetTag;
|
|
2780
|
+
}
|
|
2600
2781
|
|
|
2601
2782
|
/**
|
|
2602
|
-
* Checks if `value` is
|
|
2783
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
2784
|
+
* and has a `typeof` result of "object".
|
|
2603
2785
|
*
|
|
2604
|
-
* @
|
|
2786
|
+
* @static
|
|
2787
|
+
* @memberOf _
|
|
2788
|
+
* @since 4.0.0
|
|
2789
|
+
* @category Lang
|
|
2605
2790
|
* @param {*} value The value to check.
|
|
2606
|
-
* @
|
|
2607
|
-
* @
|
|
2791
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
2792
|
+
* @example
|
|
2793
|
+
*
|
|
2794
|
+
* _.isObjectLike({});
|
|
2795
|
+
* // => true
|
|
2796
|
+
*
|
|
2797
|
+
* _.isObjectLike([1, 2, 3]);
|
|
2798
|
+
* // => true
|
|
2799
|
+
*
|
|
2800
|
+
* _.isObjectLike(_.noop);
|
|
2801
|
+
* // => false
|
|
2802
|
+
*
|
|
2803
|
+
* _.isObjectLike(null);
|
|
2804
|
+
* // => false
|
|
2608
2805
|
*/
|
|
2609
|
-
function isKey$1(value, object) {
|
|
2610
|
-
if (isArray$3(value)) {
|
|
2611
|
-
return false;
|
|
2612
|
-
}
|
|
2613
|
-
var type = typeof value;
|
|
2614
|
-
if (type == 'number' || type == 'symbol' || type == 'boolean' ||
|
|
2615
|
-
value == null || isSymbol$2(value)) {
|
|
2616
|
-
return true;
|
|
2617
|
-
}
|
|
2618
|
-
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
|
|
2619
|
-
(object != null && value in Object(object));
|
|
2620
|
-
}
|
|
2621
2806
|
|
|
2622
|
-
var
|
|
2807
|
+
var isObjectLike_1;
|
|
2808
|
+
var hasRequiredIsObjectLike;
|
|
2623
2809
|
|
|
2624
|
-
|
|
2810
|
+
function requireIsObjectLike () {
|
|
2811
|
+
if (hasRequiredIsObjectLike) return isObjectLike_1;
|
|
2812
|
+
hasRequiredIsObjectLike = 1;
|
|
2813
|
+
function isObjectLike(value) {
|
|
2814
|
+
return value != null && typeof value == 'object';
|
|
2815
|
+
}
|
|
2625
2816
|
|
|
2626
|
-
|
|
2627
|
-
|
|
2817
|
+
isObjectLike_1 = isObjectLike;
|
|
2818
|
+
return isObjectLike_1;
|
|
2819
|
+
}
|
|
2820
|
+
|
|
2821
|
+
var isSymbol_1;
|
|
2822
|
+
var hasRequiredIsSymbol;
|
|
2823
|
+
|
|
2824
|
+
function requireIsSymbol () {
|
|
2825
|
+
if (hasRequiredIsSymbol) return isSymbol_1;
|
|
2826
|
+
hasRequiredIsSymbol = 1;
|
|
2827
|
+
var baseGetTag = require_baseGetTag(),
|
|
2828
|
+
isObjectLike = requireIsObjectLike();
|
|
2829
|
+
|
|
2830
|
+
/** `Object#toString` result references. */
|
|
2831
|
+
var symbolTag = '[object Symbol]';
|
|
2832
|
+
|
|
2833
|
+
/**
|
|
2834
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
2835
|
+
*
|
|
2836
|
+
* @static
|
|
2837
|
+
* @memberOf _
|
|
2838
|
+
* @since 4.0.0
|
|
2839
|
+
* @category Lang
|
|
2840
|
+
* @param {*} value The value to check.
|
|
2841
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
2842
|
+
* @example
|
|
2843
|
+
*
|
|
2844
|
+
* _.isSymbol(Symbol.iterator);
|
|
2845
|
+
* // => true
|
|
2846
|
+
*
|
|
2847
|
+
* _.isSymbol('abc');
|
|
2848
|
+
* // => false
|
|
2849
|
+
*/
|
|
2850
|
+
function isSymbol(value) {
|
|
2851
|
+
return typeof value == 'symbol' ||
|
|
2852
|
+
(isObjectLike(value) && baseGetTag(value) == symbolTag);
|
|
2853
|
+
}
|
|
2854
|
+
|
|
2855
|
+
isSymbol_1 = isSymbol;
|
|
2856
|
+
return isSymbol_1;
|
|
2857
|
+
}
|
|
2858
|
+
|
|
2859
|
+
var _isKey;
|
|
2860
|
+
var hasRequired_isKey;
|
|
2861
|
+
|
|
2862
|
+
function require_isKey () {
|
|
2863
|
+
if (hasRequired_isKey) return _isKey;
|
|
2864
|
+
hasRequired_isKey = 1;
|
|
2865
|
+
var isArray = requireIsArray(),
|
|
2866
|
+
isSymbol = requireIsSymbol();
|
|
2867
|
+
|
|
2868
|
+
/** Used to match property names within property paths. */
|
|
2869
|
+
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
|
|
2870
|
+
reIsPlainProp = /^\w*$/;
|
|
2871
|
+
|
|
2872
|
+
/**
|
|
2873
|
+
* Checks if `value` is a property name and not a property path.
|
|
2874
|
+
*
|
|
2875
|
+
* @private
|
|
2876
|
+
* @param {*} value The value to check.
|
|
2877
|
+
* @param {Object} [object] The object to query keys on.
|
|
2878
|
+
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
|
|
2879
|
+
*/
|
|
2880
|
+
function isKey(value, object) {
|
|
2881
|
+
if (isArray(value)) {
|
|
2882
|
+
return false;
|
|
2883
|
+
}
|
|
2884
|
+
var type = typeof value;
|
|
2885
|
+
if (type == 'number' || type == 'symbol' || type == 'boolean' ||
|
|
2886
|
+
value == null || isSymbol(value)) {
|
|
2887
|
+
return true;
|
|
2888
|
+
}
|
|
2889
|
+
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
|
|
2890
|
+
(object != null && value in Object(object));
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2893
|
+
_isKey = isKey;
|
|
2894
|
+
return _isKey;
|
|
2895
|
+
}
|
|
2628
2896
|
|
|
2629
2897
|
/**
|
|
2630
|
-
*
|
|
2631
|
-
*
|
|
2632
|
-
*
|
|
2633
|
-
* provided to the memoized function is used as the map cache key. The `func`
|
|
2634
|
-
* is invoked with the `this` binding of the memoized function.
|
|
2635
|
-
*
|
|
2636
|
-
* **Note:** The cache is exposed as the `cache` property on the memoized
|
|
2637
|
-
* function. Its creation may be customized by replacing the `_.memoize.Cache`
|
|
2638
|
-
* constructor with one whose instances implement the
|
|
2639
|
-
* [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
|
|
2640
|
-
* method interface of `clear`, `delete`, `get`, `has`, and `set`.
|
|
2898
|
+
* Checks if `value` is the
|
|
2899
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
2900
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
2641
2901
|
*
|
|
2642
2902
|
* @static
|
|
2643
2903
|
* @memberOf _
|
|
2644
2904
|
* @since 0.1.0
|
|
2645
|
-
* @category
|
|
2646
|
-
* @param {
|
|
2647
|
-
* @
|
|
2648
|
-
* @returns {Function} Returns the new memoized function.
|
|
2905
|
+
* @category Lang
|
|
2906
|
+
* @param {*} value The value to check.
|
|
2907
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
2649
2908
|
* @example
|
|
2650
2909
|
*
|
|
2651
|
-
*
|
|
2652
|
-
*
|
|
2653
|
-
*
|
|
2654
|
-
* var values = _.memoize(_.values);
|
|
2655
|
-
* values(object);
|
|
2656
|
-
* // => [1, 2]
|
|
2657
|
-
*
|
|
2658
|
-
* values(other);
|
|
2659
|
-
* // => [3, 4]
|
|
2910
|
+
* _.isObject({});
|
|
2911
|
+
* // => true
|
|
2660
2912
|
*
|
|
2661
|
-
*
|
|
2662
|
-
*
|
|
2663
|
-
* // => [1, 2]
|
|
2913
|
+
* _.isObject([1, 2, 3]);
|
|
2914
|
+
* // => true
|
|
2664
2915
|
*
|
|
2665
|
-
*
|
|
2666
|
-
*
|
|
2667
|
-
* values(object);
|
|
2668
|
-
* // => ['a', 'b']
|
|
2916
|
+
* _.isObject(_.noop);
|
|
2917
|
+
* // => true
|
|
2669
2918
|
*
|
|
2670
|
-
*
|
|
2671
|
-
*
|
|
2919
|
+
* _.isObject(null);
|
|
2920
|
+
* // => false
|
|
2672
2921
|
*/
|
|
2673
|
-
function memoize$1(func, resolver) {
|
|
2674
|
-
if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
|
|
2675
|
-
throw new TypeError(FUNC_ERROR_TEXT);
|
|
2676
|
-
}
|
|
2677
|
-
var memoized = function() {
|
|
2678
|
-
var args = arguments,
|
|
2679
|
-
key = resolver ? resolver.apply(this, args) : args[0],
|
|
2680
|
-
cache = memoized.cache;
|
|
2681
2922
|
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2923
|
+
var isObject_1;
|
|
2924
|
+
var hasRequiredIsObject;
|
|
2925
|
+
|
|
2926
|
+
function requireIsObject () {
|
|
2927
|
+
if (hasRequiredIsObject) return isObject_1;
|
|
2928
|
+
hasRequiredIsObject = 1;
|
|
2929
|
+
function isObject(value) {
|
|
2930
|
+
var type = typeof value;
|
|
2931
|
+
return value != null && (type == 'object' || type == 'function');
|
|
2932
|
+
}
|
|
2933
|
+
|
|
2934
|
+
isObject_1 = isObject;
|
|
2935
|
+
return isObject_1;
|
|
2691
2936
|
}
|
|
2692
2937
|
|
|
2693
|
-
|
|
2694
|
-
|
|
2938
|
+
var isFunction_1;
|
|
2939
|
+
var hasRequiredIsFunction;
|
|
2940
|
+
|
|
2941
|
+
function requireIsFunction () {
|
|
2942
|
+
if (hasRequiredIsFunction) return isFunction_1;
|
|
2943
|
+
hasRequiredIsFunction = 1;
|
|
2944
|
+
var baseGetTag = require_baseGetTag(),
|
|
2945
|
+
isObject = requireIsObject();
|
|
2946
|
+
|
|
2947
|
+
/** `Object#toString` result references. */
|
|
2948
|
+
var asyncTag = '[object AsyncFunction]',
|
|
2949
|
+
funcTag = '[object Function]',
|
|
2950
|
+
genTag = '[object GeneratorFunction]',
|
|
2951
|
+
proxyTag = '[object Proxy]';
|
|
2952
|
+
|
|
2953
|
+
/**
|
|
2954
|
+
* Checks if `value` is classified as a `Function` object.
|
|
2955
|
+
*
|
|
2956
|
+
* @static
|
|
2957
|
+
* @memberOf _
|
|
2958
|
+
* @since 0.1.0
|
|
2959
|
+
* @category Lang
|
|
2960
|
+
* @param {*} value The value to check.
|
|
2961
|
+
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
2962
|
+
* @example
|
|
2963
|
+
*
|
|
2964
|
+
* _.isFunction(_);
|
|
2965
|
+
* // => true
|
|
2966
|
+
*
|
|
2967
|
+
* _.isFunction(/abc/);
|
|
2968
|
+
* // => false
|
|
2969
|
+
*/
|
|
2970
|
+
function isFunction(value) {
|
|
2971
|
+
if (!isObject(value)) {
|
|
2972
|
+
return false;
|
|
2973
|
+
}
|
|
2974
|
+
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
2975
|
+
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
|
2976
|
+
var tag = baseGetTag(value);
|
|
2977
|
+
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
2978
|
+
}
|
|
2979
|
+
|
|
2980
|
+
isFunction_1 = isFunction;
|
|
2981
|
+
return isFunction_1;
|
|
2982
|
+
}
|
|
2983
|
+
|
|
2984
|
+
var _coreJsData;
|
|
2985
|
+
var hasRequired_coreJsData;
|
|
2986
|
+
|
|
2987
|
+
function require_coreJsData () {
|
|
2988
|
+
if (hasRequired_coreJsData) return _coreJsData;
|
|
2989
|
+
hasRequired_coreJsData = 1;
|
|
2990
|
+
var root = require_root();
|
|
2695
2991
|
|
|
2696
|
-
|
|
2992
|
+
/** Used to detect overreaching core-js shims. */
|
|
2993
|
+
var coreJsData = root['__core-js_shared__'];
|
|
2697
2994
|
|
|
2698
|
-
|
|
2995
|
+
_coreJsData = coreJsData;
|
|
2996
|
+
return _coreJsData;
|
|
2997
|
+
}
|
|
2699
2998
|
|
|
2700
|
-
|
|
2701
|
-
var
|
|
2999
|
+
var _isMasked;
|
|
3000
|
+
var hasRequired_isMasked;
|
|
3001
|
+
|
|
3002
|
+
function require_isMasked () {
|
|
3003
|
+
if (hasRequired_isMasked) return _isMasked;
|
|
3004
|
+
hasRequired_isMasked = 1;
|
|
3005
|
+
var coreJsData = require_coreJsData();
|
|
3006
|
+
|
|
3007
|
+
/** Used to detect methods masquerading as native. */
|
|
3008
|
+
var maskSrcKey = (function() {
|
|
3009
|
+
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
|
|
3010
|
+
return uid ? ('Symbol(src)_1.' + uid) : '';
|
|
3011
|
+
}());
|
|
3012
|
+
|
|
3013
|
+
/**
|
|
3014
|
+
* Checks if `func` has its source masked.
|
|
3015
|
+
*
|
|
3016
|
+
* @private
|
|
3017
|
+
* @param {Function} func The function to check.
|
|
3018
|
+
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
3019
|
+
*/
|
|
3020
|
+
function isMasked(func) {
|
|
3021
|
+
return !!maskSrcKey && (maskSrcKey in func);
|
|
3022
|
+
}
|
|
3023
|
+
|
|
3024
|
+
_isMasked = isMasked;
|
|
3025
|
+
return _isMasked;
|
|
3026
|
+
}
|
|
3027
|
+
|
|
3028
|
+
/** Used for built-in method references. */
|
|
3029
|
+
|
|
3030
|
+
var _toSource;
|
|
3031
|
+
var hasRequired_toSource;
|
|
3032
|
+
|
|
3033
|
+
function require_toSource () {
|
|
3034
|
+
if (hasRequired_toSource) return _toSource;
|
|
3035
|
+
hasRequired_toSource = 1;
|
|
3036
|
+
var funcProto = Function.prototype;
|
|
3037
|
+
|
|
3038
|
+
/** Used to resolve the decompiled source of functions. */
|
|
3039
|
+
var funcToString = funcProto.toString;
|
|
3040
|
+
|
|
3041
|
+
/**
|
|
3042
|
+
* Converts `func` to its source code.
|
|
3043
|
+
*
|
|
3044
|
+
* @private
|
|
3045
|
+
* @param {Function} func The function to convert.
|
|
3046
|
+
* @returns {string} Returns the source code.
|
|
3047
|
+
*/
|
|
3048
|
+
function toSource(func) {
|
|
3049
|
+
if (func != null) {
|
|
3050
|
+
try {
|
|
3051
|
+
return funcToString.call(func);
|
|
3052
|
+
} catch (e) {}
|
|
3053
|
+
try {
|
|
3054
|
+
return (func + '');
|
|
3055
|
+
} catch (e) {}
|
|
3056
|
+
}
|
|
3057
|
+
return '';
|
|
3058
|
+
}
|
|
3059
|
+
|
|
3060
|
+
_toSource = toSource;
|
|
3061
|
+
return _toSource;
|
|
3062
|
+
}
|
|
3063
|
+
|
|
3064
|
+
var _baseIsNative;
|
|
3065
|
+
var hasRequired_baseIsNative;
|
|
3066
|
+
|
|
3067
|
+
function require_baseIsNative () {
|
|
3068
|
+
if (hasRequired_baseIsNative) return _baseIsNative;
|
|
3069
|
+
hasRequired_baseIsNative = 1;
|
|
3070
|
+
var isFunction = requireIsFunction(),
|
|
3071
|
+
isMasked = require_isMasked(),
|
|
3072
|
+
isObject = requireIsObject(),
|
|
3073
|
+
toSource = require_toSource();
|
|
3074
|
+
|
|
3075
|
+
/**
|
|
3076
|
+
* Used to match `RegExp`
|
|
3077
|
+
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
3078
|
+
*/
|
|
3079
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
3080
|
+
|
|
3081
|
+
/** Used to detect host constructors (Safari). */
|
|
3082
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
3083
|
+
|
|
3084
|
+
/** Used for built-in method references. */
|
|
3085
|
+
var funcProto = Function.prototype,
|
|
3086
|
+
objectProto = Object.prototype;
|
|
3087
|
+
|
|
3088
|
+
/** Used to resolve the decompiled source of functions. */
|
|
3089
|
+
var funcToString = funcProto.toString;
|
|
3090
|
+
|
|
3091
|
+
/** Used to check objects for own properties. */
|
|
3092
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
3093
|
+
|
|
3094
|
+
/** Used to detect if a method is native. */
|
|
3095
|
+
var reIsNative = RegExp('^' +
|
|
3096
|
+
funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
|
|
3097
|
+
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
|
3098
|
+
);
|
|
3099
|
+
|
|
3100
|
+
/**
|
|
3101
|
+
* The base implementation of `_.isNative` without bad shim checks.
|
|
3102
|
+
*
|
|
3103
|
+
* @private
|
|
3104
|
+
* @param {*} value The value to check.
|
|
3105
|
+
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
3106
|
+
* else `false`.
|
|
3107
|
+
*/
|
|
3108
|
+
function baseIsNative(value) {
|
|
3109
|
+
if (!isObject(value) || isMasked(value)) {
|
|
3110
|
+
return false;
|
|
3111
|
+
}
|
|
3112
|
+
var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
|
|
3113
|
+
return pattern.test(toSource(value));
|
|
3114
|
+
}
|
|
3115
|
+
|
|
3116
|
+
_baseIsNative = baseIsNative;
|
|
3117
|
+
return _baseIsNative;
|
|
3118
|
+
}
|
|
2702
3119
|
|
|
2703
3120
|
/**
|
|
2704
|
-
*
|
|
2705
|
-
* cache when it exceeds `MAX_MEMOIZE_SIZE`.
|
|
3121
|
+
* Gets the value at `key` of `object`.
|
|
2706
3122
|
*
|
|
2707
3123
|
* @private
|
|
2708
|
-
* @param {
|
|
2709
|
-
* @
|
|
3124
|
+
* @param {Object} [object] The object to query.
|
|
3125
|
+
* @param {string} key The key of the property to get.
|
|
3126
|
+
* @returns {*} Returns the property value.
|
|
2710
3127
|
*/
|
|
2711
|
-
function memoizeCapped$1(func) {
|
|
2712
|
-
var result = memoize(func, function(key) {
|
|
2713
|
-
if (cache.size === MAX_MEMOIZE_SIZE) {
|
|
2714
|
-
cache.clear();
|
|
2715
|
-
}
|
|
2716
|
-
return key;
|
|
2717
|
-
});
|
|
2718
3128
|
|
|
2719
|
-
|
|
2720
|
-
|
|
3129
|
+
var _getValue;
|
|
3130
|
+
var hasRequired_getValue;
|
|
3131
|
+
|
|
3132
|
+
function require_getValue () {
|
|
3133
|
+
if (hasRequired_getValue) return _getValue;
|
|
3134
|
+
hasRequired_getValue = 1;
|
|
3135
|
+
function getValue(object, key) {
|
|
3136
|
+
return object == null ? undefined : object[key];
|
|
3137
|
+
}
|
|
3138
|
+
|
|
3139
|
+
_getValue = getValue;
|
|
3140
|
+
return _getValue;
|
|
2721
3141
|
}
|
|
2722
3142
|
|
|
2723
|
-
var
|
|
3143
|
+
var _getNative;
|
|
3144
|
+
var hasRequired_getNative;
|
|
3145
|
+
|
|
3146
|
+
function require_getNative () {
|
|
3147
|
+
if (hasRequired_getNative) return _getNative;
|
|
3148
|
+
hasRequired_getNative = 1;
|
|
3149
|
+
var baseIsNative = require_baseIsNative(),
|
|
3150
|
+
getValue = require_getValue();
|
|
3151
|
+
|
|
3152
|
+
/**
|
|
3153
|
+
* Gets the native function at `key` of `object`.
|
|
3154
|
+
*
|
|
3155
|
+
* @private
|
|
3156
|
+
* @param {Object} object The object to query.
|
|
3157
|
+
* @param {string} key The key of the method to get.
|
|
3158
|
+
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
3159
|
+
*/
|
|
3160
|
+
function getNative(object, key) {
|
|
3161
|
+
var value = getValue(object, key);
|
|
3162
|
+
return baseIsNative(value) ? value : undefined;
|
|
3163
|
+
}
|
|
3164
|
+
|
|
3165
|
+
_getNative = getNative;
|
|
3166
|
+
return _getNative;
|
|
3167
|
+
}
|
|
2724
3168
|
|
|
2725
|
-
var
|
|
3169
|
+
var _nativeCreate;
|
|
3170
|
+
var hasRequired_nativeCreate;
|
|
2726
3171
|
|
|
2727
|
-
|
|
2728
|
-
|
|
3172
|
+
function require_nativeCreate () {
|
|
3173
|
+
if (hasRequired_nativeCreate) return _nativeCreate;
|
|
3174
|
+
hasRequired_nativeCreate = 1;
|
|
3175
|
+
var getNative = require_getNative();
|
|
2729
3176
|
|
|
2730
|
-
|
|
2731
|
-
var
|
|
3177
|
+
/* Built-in method references that are verified to be native. */
|
|
3178
|
+
var nativeCreate = getNative(Object, 'create');
|
|
2732
3179
|
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
* @private
|
|
2737
|
-
* @param {string} string The string to convert.
|
|
2738
|
-
* @returns {Array} Returns the property path array.
|
|
2739
|
-
*/
|
|
2740
|
-
var stringToPath$1 = memoizeCapped(function(string) {
|
|
2741
|
-
var result = [];
|
|
2742
|
-
if (string.charCodeAt(0) === 46 /* . */) {
|
|
2743
|
-
result.push('');
|
|
2744
|
-
}
|
|
2745
|
-
string.replace(rePropName, function(match, number, quote, subString) {
|
|
2746
|
-
result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
|
|
2747
|
-
});
|
|
2748
|
-
return result;
|
|
2749
|
-
});
|
|
3180
|
+
_nativeCreate = nativeCreate;
|
|
3181
|
+
return _nativeCreate;
|
|
3182
|
+
}
|
|
2750
3183
|
|
|
2751
|
-
var
|
|
3184
|
+
var _hashClear;
|
|
3185
|
+
var hasRequired_hashClear;
|
|
3186
|
+
|
|
3187
|
+
function require_hashClear () {
|
|
3188
|
+
if (hasRequired_hashClear) return _hashClear;
|
|
3189
|
+
hasRequired_hashClear = 1;
|
|
3190
|
+
var nativeCreate = require_nativeCreate();
|
|
3191
|
+
|
|
3192
|
+
/**
|
|
3193
|
+
* Removes all key-value entries from the hash.
|
|
3194
|
+
*
|
|
3195
|
+
* @private
|
|
3196
|
+
* @name clear
|
|
3197
|
+
* @memberOf Hash
|
|
3198
|
+
*/
|
|
3199
|
+
function hashClear() {
|
|
3200
|
+
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
3201
|
+
this.size = 0;
|
|
3202
|
+
}
|
|
3203
|
+
|
|
3204
|
+
_hashClear = hashClear;
|
|
3205
|
+
return _hashClear;
|
|
3206
|
+
}
|
|
2752
3207
|
|
|
2753
3208
|
/**
|
|
2754
|
-
*
|
|
2755
|
-
* shorthands.
|
|
3209
|
+
* Removes `key` and its value from the hash.
|
|
2756
3210
|
*
|
|
2757
3211
|
* @private
|
|
2758
|
-
* @
|
|
2759
|
-
* @
|
|
2760
|
-
* @
|
|
3212
|
+
* @name delete
|
|
3213
|
+
* @memberOf Hash
|
|
3214
|
+
* @param {Object} hash The hash to modify.
|
|
3215
|
+
* @param {string} key The key of the value to remove.
|
|
3216
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
2761
3217
|
*/
|
|
2762
3218
|
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
length = array == null ? 0 : array.length,
|
|
2766
|
-
result = Array(length);
|
|
3219
|
+
var _hashDelete;
|
|
3220
|
+
var hasRequired_hashDelete;
|
|
2767
3221
|
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
3222
|
+
function require_hashDelete () {
|
|
3223
|
+
if (hasRequired_hashDelete) return _hashDelete;
|
|
3224
|
+
hasRequired_hashDelete = 1;
|
|
3225
|
+
function hashDelete(key) {
|
|
3226
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
3227
|
+
this.size -= result ? 1 : 0;
|
|
3228
|
+
return result;
|
|
3229
|
+
}
|
|
3230
|
+
|
|
3231
|
+
_hashDelete = hashDelete;
|
|
3232
|
+
return _hashDelete;
|
|
2772
3233
|
}
|
|
2773
3234
|
|
|
2774
|
-
var
|
|
3235
|
+
var _hashGet;
|
|
3236
|
+
var hasRequired_hashGet;
|
|
3237
|
+
|
|
3238
|
+
function require_hashGet () {
|
|
3239
|
+
if (hasRequired_hashGet) return _hashGet;
|
|
3240
|
+
hasRequired_hashGet = 1;
|
|
3241
|
+
var nativeCreate = require_nativeCreate();
|
|
3242
|
+
|
|
3243
|
+
/** Used to stand-in for `undefined` hash values. */
|
|
3244
|
+
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
3245
|
+
|
|
3246
|
+
/** Used for built-in method references. */
|
|
3247
|
+
var objectProto = Object.prototype;
|
|
3248
|
+
|
|
3249
|
+
/** Used to check objects for own properties. */
|
|
3250
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
3251
|
+
|
|
3252
|
+
/**
|
|
3253
|
+
* Gets the hash value for `key`.
|
|
3254
|
+
*
|
|
3255
|
+
* @private
|
|
3256
|
+
* @name get
|
|
3257
|
+
* @memberOf Hash
|
|
3258
|
+
* @param {string} key The key of the value to get.
|
|
3259
|
+
* @returns {*} Returns the entry value.
|
|
3260
|
+
*/
|
|
3261
|
+
function hashGet(key) {
|
|
3262
|
+
var data = this.__data__;
|
|
3263
|
+
if (nativeCreate) {
|
|
3264
|
+
var result = data[key];
|
|
3265
|
+
return result === HASH_UNDEFINED ? undefined : result;
|
|
3266
|
+
}
|
|
3267
|
+
return hasOwnProperty.call(data, key) ? data[key] : undefined;
|
|
3268
|
+
}
|
|
3269
|
+
|
|
3270
|
+
_hashGet = hashGet;
|
|
3271
|
+
return _hashGet;
|
|
3272
|
+
}
|
|
2775
3273
|
|
|
2776
|
-
var
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
3274
|
+
var _hashHas;
|
|
3275
|
+
var hasRequired_hashHas;
|
|
3276
|
+
|
|
3277
|
+
function require_hashHas () {
|
|
3278
|
+
if (hasRequired_hashHas) return _hashHas;
|
|
3279
|
+
hasRequired_hashHas = 1;
|
|
3280
|
+
var nativeCreate = require_nativeCreate();
|
|
3281
|
+
|
|
3282
|
+
/** Used for built-in method references. */
|
|
3283
|
+
var objectProto = Object.prototype;
|
|
3284
|
+
|
|
3285
|
+
/** Used to check objects for own properties. */
|
|
3286
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
3287
|
+
|
|
3288
|
+
/**
|
|
3289
|
+
* Checks if a hash value for `key` exists.
|
|
3290
|
+
*
|
|
3291
|
+
* @private
|
|
3292
|
+
* @name has
|
|
3293
|
+
* @memberOf Hash
|
|
3294
|
+
* @param {string} key The key of the entry to check.
|
|
3295
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
3296
|
+
*/
|
|
3297
|
+
function hashHas(key) {
|
|
3298
|
+
var data = this.__data__;
|
|
3299
|
+
return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
|
|
3300
|
+
}
|
|
3301
|
+
|
|
3302
|
+
_hashHas = hashHas;
|
|
3303
|
+
return _hashHas;
|
|
3304
|
+
}
|
|
2780
3305
|
|
|
2781
|
-
|
|
2782
|
-
var
|
|
3306
|
+
var _hashSet;
|
|
3307
|
+
var hasRequired_hashSet;
|
|
3308
|
+
|
|
3309
|
+
function require_hashSet () {
|
|
3310
|
+
if (hasRequired_hashSet) return _hashSet;
|
|
3311
|
+
hasRequired_hashSet = 1;
|
|
3312
|
+
var nativeCreate = require_nativeCreate();
|
|
3313
|
+
|
|
3314
|
+
/** Used to stand-in for `undefined` hash values. */
|
|
3315
|
+
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
3316
|
+
|
|
3317
|
+
/**
|
|
3318
|
+
* Sets the hash `key` to `value`.
|
|
3319
|
+
*
|
|
3320
|
+
* @private
|
|
3321
|
+
* @name set
|
|
3322
|
+
* @memberOf Hash
|
|
3323
|
+
* @param {string} key The key of the value to set.
|
|
3324
|
+
* @param {*} value The value to set.
|
|
3325
|
+
* @returns {Object} Returns the hash instance.
|
|
3326
|
+
*/
|
|
3327
|
+
function hashSet(key, value) {
|
|
3328
|
+
var data = this.__data__;
|
|
3329
|
+
this.size += this.has(key) ? 0 : 1;
|
|
3330
|
+
data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
|
|
3331
|
+
return this;
|
|
3332
|
+
}
|
|
3333
|
+
|
|
3334
|
+
_hashSet = hashSet;
|
|
3335
|
+
return _hashSet;
|
|
3336
|
+
}
|
|
2783
3337
|
|
|
2784
|
-
|
|
2785
|
-
var
|
|
2786
|
-
|
|
3338
|
+
var _Hash;
|
|
3339
|
+
var hasRequired_Hash;
|
|
3340
|
+
|
|
3341
|
+
function require_Hash () {
|
|
3342
|
+
if (hasRequired_Hash) return _Hash;
|
|
3343
|
+
hasRequired_Hash = 1;
|
|
3344
|
+
var hashClear = require_hashClear(),
|
|
3345
|
+
hashDelete = require_hashDelete(),
|
|
3346
|
+
hashGet = require_hashGet(),
|
|
3347
|
+
hashHas = require_hashHas(),
|
|
3348
|
+
hashSet = require_hashSet();
|
|
3349
|
+
|
|
3350
|
+
/**
|
|
3351
|
+
* Creates a hash object.
|
|
3352
|
+
*
|
|
3353
|
+
* @private
|
|
3354
|
+
* @constructor
|
|
3355
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
3356
|
+
*/
|
|
3357
|
+
function Hash(entries) {
|
|
3358
|
+
var index = -1,
|
|
3359
|
+
length = entries == null ? 0 : entries.length;
|
|
3360
|
+
|
|
3361
|
+
this.clear();
|
|
3362
|
+
while (++index < length) {
|
|
3363
|
+
var entry = entries[index];
|
|
3364
|
+
this.set(entry[0], entry[1]);
|
|
3365
|
+
}
|
|
3366
|
+
}
|
|
3367
|
+
|
|
3368
|
+
// Add methods to `Hash`.
|
|
3369
|
+
Hash.prototype.clear = hashClear;
|
|
3370
|
+
Hash.prototype['delete'] = hashDelete;
|
|
3371
|
+
Hash.prototype.get = hashGet;
|
|
3372
|
+
Hash.prototype.has = hashHas;
|
|
3373
|
+
Hash.prototype.set = hashSet;
|
|
3374
|
+
|
|
3375
|
+
_Hash = Hash;
|
|
3376
|
+
return _Hash;
|
|
3377
|
+
}
|
|
2787
3378
|
|
|
2788
3379
|
/**
|
|
2789
|
-
*
|
|
2790
|
-
* values to empty strings.
|
|
3380
|
+
* Removes all key-value entries from the list cache.
|
|
2791
3381
|
*
|
|
2792
3382
|
* @private
|
|
2793
|
-
* @
|
|
2794
|
-
* @
|
|
3383
|
+
* @name clear
|
|
3384
|
+
* @memberOf ListCache
|
|
2795
3385
|
*/
|
|
2796
|
-
function baseToString$1(value) {
|
|
2797
|
-
// Exit early for strings to avoid a performance hit in some environments.
|
|
2798
|
-
if (typeof value == 'string') {
|
|
2799
|
-
return value;
|
|
2800
|
-
}
|
|
2801
|
-
if (isArray$2(value)) {
|
|
2802
|
-
// Recursively convert values (susceptible to call stack limits).
|
|
2803
|
-
return arrayMap$1(value, baseToString$1) + '';
|
|
2804
|
-
}
|
|
2805
|
-
if (isSymbol$1(value)) {
|
|
2806
|
-
return symbolToString ? symbolToString.call(value) : '';
|
|
2807
|
-
}
|
|
2808
|
-
var result = (value + '');
|
|
2809
|
-
return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
|
|
2810
|
-
}
|
|
2811
3386
|
|
|
2812
|
-
var
|
|
3387
|
+
var _listCacheClear;
|
|
3388
|
+
var hasRequired_listCacheClear;
|
|
2813
3389
|
|
|
2814
|
-
|
|
3390
|
+
function require_listCacheClear () {
|
|
3391
|
+
if (hasRequired_listCacheClear) return _listCacheClear;
|
|
3392
|
+
hasRequired_listCacheClear = 1;
|
|
3393
|
+
function listCacheClear() {
|
|
3394
|
+
this.__data__ = [];
|
|
3395
|
+
this.size = 0;
|
|
3396
|
+
}
|
|
3397
|
+
|
|
3398
|
+
_listCacheClear = listCacheClear;
|
|
3399
|
+
return _listCacheClear;
|
|
3400
|
+
}
|
|
2815
3401
|
|
|
2816
3402
|
/**
|
|
2817
|
-
*
|
|
2818
|
-
*
|
|
3403
|
+
* Performs a
|
|
3404
|
+
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
3405
|
+
* comparison between two values to determine if they are equivalent.
|
|
2819
3406
|
*
|
|
2820
3407
|
* @static
|
|
2821
3408
|
* @memberOf _
|
|
2822
3409
|
* @since 4.0.0
|
|
2823
3410
|
* @category Lang
|
|
2824
|
-
* @param {*} value The value to
|
|
2825
|
-
* @
|
|
3411
|
+
* @param {*} value The value to compare.
|
|
3412
|
+
* @param {*} other The other value to compare.
|
|
3413
|
+
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
2826
3414
|
* @example
|
|
2827
3415
|
*
|
|
2828
|
-
*
|
|
2829
|
-
*
|
|
3416
|
+
* var object = { 'a': 1 };
|
|
3417
|
+
* var other = { 'a': 1 };
|
|
2830
3418
|
*
|
|
2831
|
-
* _.
|
|
2832
|
-
* // =>
|
|
3419
|
+
* _.eq(object, object);
|
|
3420
|
+
* // => true
|
|
3421
|
+
*
|
|
3422
|
+
* _.eq(object, other);
|
|
3423
|
+
* // => false
|
|
3424
|
+
*
|
|
3425
|
+
* _.eq('a', 'a');
|
|
3426
|
+
* // => true
|
|
3427
|
+
*
|
|
3428
|
+
* _.eq('a', Object('a'));
|
|
3429
|
+
* // => false
|
|
2833
3430
|
*
|
|
2834
|
-
* _.
|
|
2835
|
-
* // =>
|
|
3431
|
+
* _.eq(NaN, NaN);
|
|
3432
|
+
* // => true
|
|
2836
3433
|
*/
|
|
2837
|
-
|
|
2838
|
-
|
|
3434
|
+
|
|
3435
|
+
var eq_1;
|
|
3436
|
+
var hasRequiredEq;
|
|
3437
|
+
|
|
3438
|
+
function requireEq () {
|
|
3439
|
+
if (hasRequiredEq) return eq_1;
|
|
3440
|
+
hasRequiredEq = 1;
|
|
3441
|
+
function eq(value, other) {
|
|
3442
|
+
return value === other || (value !== value && other !== other);
|
|
3443
|
+
}
|
|
3444
|
+
|
|
3445
|
+
eq_1 = eq;
|
|
3446
|
+
return eq_1;
|
|
2839
3447
|
}
|
|
2840
3448
|
|
|
2841
|
-
var
|
|
3449
|
+
var _assocIndexOf;
|
|
3450
|
+
var hasRequired_assocIndexOf;
|
|
3451
|
+
|
|
3452
|
+
function require_assocIndexOf () {
|
|
3453
|
+
if (hasRequired_assocIndexOf) return _assocIndexOf;
|
|
3454
|
+
hasRequired_assocIndexOf = 1;
|
|
3455
|
+
var eq = requireEq();
|
|
3456
|
+
|
|
3457
|
+
/**
|
|
3458
|
+
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
3459
|
+
*
|
|
3460
|
+
* @private
|
|
3461
|
+
* @param {Array} array The array to inspect.
|
|
3462
|
+
* @param {*} key The key to search for.
|
|
3463
|
+
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
3464
|
+
*/
|
|
3465
|
+
function assocIndexOf(array, key) {
|
|
3466
|
+
var length = array.length;
|
|
3467
|
+
while (length--) {
|
|
3468
|
+
if (eq(array[length][0], key)) {
|
|
3469
|
+
return length;
|
|
3470
|
+
}
|
|
3471
|
+
}
|
|
3472
|
+
return -1;
|
|
3473
|
+
}
|
|
3474
|
+
|
|
3475
|
+
_assocIndexOf = assocIndexOf;
|
|
3476
|
+
return _assocIndexOf;
|
|
3477
|
+
}
|
|
2842
3478
|
|
|
2843
|
-
var
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
3479
|
+
var _listCacheDelete;
|
|
3480
|
+
var hasRequired_listCacheDelete;
|
|
3481
|
+
|
|
3482
|
+
function require_listCacheDelete () {
|
|
3483
|
+
if (hasRequired_listCacheDelete) return _listCacheDelete;
|
|
3484
|
+
hasRequired_listCacheDelete = 1;
|
|
3485
|
+
var assocIndexOf = require_assocIndexOf();
|
|
3486
|
+
|
|
3487
|
+
/** Used for built-in method references. */
|
|
3488
|
+
var arrayProto = Array.prototype;
|
|
3489
|
+
|
|
3490
|
+
/** Built-in value references. */
|
|
3491
|
+
var splice = arrayProto.splice;
|
|
3492
|
+
|
|
3493
|
+
/**
|
|
3494
|
+
* Removes `key` and its value from the list cache.
|
|
3495
|
+
*
|
|
3496
|
+
* @private
|
|
3497
|
+
* @name delete
|
|
3498
|
+
* @memberOf ListCache
|
|
3499
|
+
* @param {string} key The key of the value to remove.
|
|
3500
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
3501
|
+
*/
|
|
3502
|
+
function listCacheDelete(key) {
|
|
3503
|
+
var data = this.__data__,
|
|
3504
|
+
index = assocIndexOf(data, key);
|
|
3505
|
+
|
|
3506
|
+
if (index < 0) {
|
|
3507
|
+
return false;
|
|
3508
|
+
}
|
|
3509
|
+
var lastIndex = data.length - 1;
|
|
3510
|
+
if (index == lastIndex) {
|
|
3511
|
+
data.pop();
|
|
3512
|
+
} else {
|
|
3513
|
+
splice.call(data, index, 1);
|
|
3514
|
+
}
|
|
3515
|
+
--this.size;
|
|
3516
|
+
return true;
|
|
3517
|
+
}
|
|
3518
|
+
|
|
3519
|
+
_listCacheDelete = listCacheDelete;
|
|
3520
|
+
return _listCacheDelete;
|
|
3521
|
+
}
|
|
2847
3522
|
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
3523
|
+
var _listCacheGet;
|
|
3524
|
+
var hasRequired_listCacheGet;
|
|
3525
|
+
|
|
3526
|
+
function require_listCacheGet () {
|
|
3527
|
+
if (hasRequired_listCacheGet) return _listCacheGet;
|
|
3528
|
+
hasRequired_listCacheGet = 1;
|
|
3529
|
+
var assocIndexOf = require_assocIndexOf();
|
|
3530
|
+
|
|
3531
|
+
/**
|
|
3532
|
+
* Gets the list cache value for `key`.
|
|
3533
|
+
*
|
|
3534
|
+
* @private
|
|
3535
|
+
* @name get
|
|
3536
|
+
* @memberOf ListCache
|
|
3537
|
+
* @param {string} key The key of the value to get.
|
|
3538
|
+
* @returns {*} Returns the entry value.
|
|
3539
|
+
*/
|
|
3540
|
+
function listCacheGet(key) {
|
|
3541
|
+
var data = this.__data__,
|
|
3542
|
+
index = assocIndexOf(data, key);
|
|
3543
|
+
|
|
3544
|
+
return index < 0 ? undefined : data[index][1];
|
|
3545
|
+
}
|
|
3546
|
+
|
|
3547
|
+
_listCacheGet = listCacheGet;
|
|
3548
|
+
return _listCacheGet;
|
|
2861
3549
|
}
|
|
2862
3550
|
|
|
2863
|
-
var
|
|
3551
|
+
var _listCacheHas;
|
|
3552
|
+
var hasRequired_listCacheHas;
|
|
3553
|
+
|
|
3554
|
+
function require_listCacheHas () {
|
|
3555
|
+
if (hasRequired_listCacheHas) return _listCacheHas;
|
|
3556
|
+
hasRequired_listCacheHas = 1;
|
|
3557
|
+
var assocIndexOf = require_assocIndexOf();
|
|
3558
|
+
|
|
3559
|
+
/**
|
|
3560
|
+
* Checks if a list cache value for `key` exists.
|
|
3561
|
+
*
|
|
3562
|
+
* @private
|
|
3563
|
+
* @name has
|
|
3564
|
+
* @memberOf ListCache
|
|
3565
|
+
* @param {string} key The key of the entry to check.
|
|
3566
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
3567
|
+
*/
|
|
3568
|
+
function listCacheHas(key) {
|
|
3569
|
+
return assocIndexOf(this.__data__, key) > -1;
|
|
3570
|
+
}
|
|
3571
|
+
|
|
3572
|
+
_listCacheHas = listCacheHas;
|
|
3573
|
+
return _listCacheHas;
|
|
3574
|
+
}
|
|
2864
3575
|
|
|
2865
|
-
var
|
|
3576
|
+
var _listCacheSet;
|
|
3577
|
+
var hasRequired_listCacheSet;
|
|
3578
|
+
|
|
3579
|
+
function require_listCacheSet () {
|
|
3580
|
+
if (hasRequired_listCacheSet) return _listCacheSet;
|
|
3581
|
+
hasRequired_listCacheSet = 1;
|
|
3582
|
+
var assocIndexOf = require_assocIndexOf();
|
|
3583
|
+
|
|
3584
|
+
/**
|
|
3585
|
+
* Sets the list cache `key` to `value`.
|
|
3586
|
+
*
|
|
3587
|
+
* @private
|
|
3588
|
+
* @name set
|
|
3589
|
+
* @memberOf ListCache
|
|
3590
|
+
* @param {string} key The key of the value to set.
|
|
3591
|
+
* @param {*} value The value to set.
|
|
3592
|
+
* @returns {Object} Returns the list cache instance.
|
|
3593
|
+
*/
|
|
3594
|
+
function listCacheSet(key, value) {
|
|
3595
|
+
var data = this.__data__,
|
|
3596
|
+
index = assocIndexOf(data, key);
|
|
3597
|
+
|
|
3598
|
+
if (index < 0) {
|
|
3599
|
+
++this.size;
|
|
3600
|
+
data.push([key, value]);
|
|
3601
|
+
} else {
|
|
3602
|
+
data[index][1] = value;
|
|
3603
|
+
}
|
|
3604
|
+
return this;
|
|
3605
|
+
}
|
|
3606
|
+
|
|
3607
|
+
_listCacheSet = listCacheSet;
|
|
3608
|
+
return _listCacheSet;
|
|
3609
|
+
}
|
|
2866
3610
|
|
|
2867
|
-
|
|
2868
|
-
var
|
|
3611
|
+
var _ListCache;
|
|
3612
|
+
var hasRequired_ListCache;
|
|
3613
|
+
|
|
3614
|
+
function require_ListCache () {
|
|
3615
|
+
if (hasRequired_ListCache) return _ListCache;
|
|
3616
|
+
hasRequired_ListCache = 1;
|
|
3617
|
+
var listCacheClear = require_listCacheClear(),
|
|
3618
|
+
listCacheDelete = require_listCacheDelete(),
|
|
3619
|
+
listCacheGet = require_listCacheGet(),
|
|
3620
|
+
listCacheHas = require_listCacheHas(),
|
|
3621
|
+
listCacheSet = require_listCacheSet();
|
|
3622
|
+
|
|
3623
|
+
/**
|
|
3624
|
+
* Creates an list cache object.
|
|
3625
|
+
*
|
|
3626
|
+
* @private
|
|
3627
|
+
* @constructor
|
|
3628
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
3629
|
+
*/
|
|
3630
|
+
function ListCache(entries) {
|
|
3631
|
+
var index = -1,
|
|
3632
|
+
length = entries == null ? 0 : entries.length;
|
|
3633
|
+
|
|
3634
|
+
this.clear();
|
|
3635
|
+
while (++index < length) {
|
|
3636
|
+
var entry = entries[index];
|
|
3637
|
+
this.set(entry[0], entry[1]);
|
|
3638
|
+
}
|
|
3639
|
+
}
|
|
3640
|
+
|
|
3641
|
+
// Add methods to `ListCache`.
|
|
3642
|
+
ListCache.prototype.clear = listCacheClear;
|
|
3643
|
+
ListCache.prototype['delete'] = listCacheDelete;
|
|
3644
|
+
ListCache.prototype.get = listCacheGet;
|
|
3645
|
+
ListCache.prototype.has = listCacheHas;
|
|
3646
|
+
ListCache.prototype.set = listCacheSet;
|
|
3647
|
+
|
|
3648
|
+
_ListCache = ListCache;
|
|
3649
|
+
return _ListCache;
|
|
3650
|
+
}
|
|
3651
|
+
|
|
3652
|
+
var _Map;
|
|
3653
|
+
var hasRequired_Map;
|
|
3654
|
+
|
|
3655
|
+
function require_Map () {
|
|
3656
|
+
if (hasRequired_Map) return _Map;
|
|
3657
|
+
hasRequired_Map = 1;
|
|
3658
|
+
var getNative = require_getNative(),
|
|
3659
|
+
root = require_root();
|
|
3660
|
+
|
|
3661
|
+
/* Built-in method references that are verified to be native. */
|
|
3662
|
+
var Map = getNative(root, 'Map');
|
|
3663
|
+
|
|
3664
|
+
_Map = Map;
|
|
3665
|
+
return _Map;
|
|
3666
|
+
}
|
|
3667
|
+
|
|
3668
|
+
var _mapCacheClear;
|
|
3669
|
+
var hasRequired_mapCacheClear;
|
|
3670
|
+
|
|
3671
|
+
function require_mapCacheClear () {
|
|
3672
|
+
if (hasRequired_mapCacheClear) return _mapCacheClear;
|
|
3673
|
+
hasRequired_mapCacheClear = 1;
|
|
3674
|
+
var Hash = require_Hash(),
|
|
3675
|
+
ListCache = require_ListCache(),
|
|
3676
|
+
Map = require_Map();
|
|
3677
|
+
|
|
3678
|
+
/**
|
|
3679
|
+
* Removes all key-value entries from the map.
|
|
3680
|
+
*
|
|
3681
|
+
* @private
|
|
3682
|
+
* @name clear
|
|
3683
|
+
* @memberOf MapCache
|
|
3684
|
+
*/
|
|
3685
|
+
function mapCacheClear() {
|
|
3686
|
+
this.size = 0;
|
|
3687
|
+
this.__data__ = {
|
|
3688
|
+
'hash': new Hash,
|
|
3689
|
+
'map': new (Map || ListCache),
|
|
3690
|
+
'string': new Hash
|
|
3691
|
+
};
|
|
3692
|
+
}
|
|
3693
|
+
|
|
3694
|
+
_mapCacheClear = mapCacheClear;
|
|
3695
|
+
return _mapCacheClear;
|
|
3696
|
+
}
|
|
2869
3697
|
|
|
2870
3698
|
/**
|
|
2871
|
-
*
|
|
3699
|
+
* Checks if `value` is suitable for use as unique object key.
|
|
2872
3700
|
*
|
|
2873
3701
|
* @private
|
|
2874
|
-
* @param {*} value The value to
|
|
2875
|
-
* @returns {
|
|
3702
|
+
* @param {*} value The value to check.
|
|
3703
|
+
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
2876
3704
|
*/
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
3705
|
+
|
|
3706
|
+
var _isKeyable;
|
|
3707
|
+
var hasRequired_isKeyable;
|
|
3708
|
+
|
|
3709
|
+
function require_isKeyable () {
|
|
3710
|
+
if (hasRequired_isKeyable) return _isKeyable;
|
|
3711
|
+
hasRequired_isKeyable = 1;
|
|
3712
|
+
function isKeyable(value) {
|
|
3713
|
+
var type = typeof value;
|
|
3714
|
+
return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
|
|
3715
|
+
? (value !== '__proto__')
|
|
3716
|
+
: (value === null);
|
|
3717
|
+
}
|
|
3718
|
+
|
|
3719
|
+
_isKeyable = isKeyable;
|
|
3720
|
+
return _isKeyable;
|
|
3721
|
+
}
|
|
3722
|
+
|
|
3723
|
+
var _getMapData;
|
|
3724
|
+
var hasRequired_getMapData;
|
|
3725
|
+
|
|
3726
|
+
function require_getMapData () {
|
|
3727
|
+
if (hasRequired_getMapData) return _getMapData;
|
|
3728
|
+
hasRequired_getMapData = 1;
|
|
3729
|
+
var isKeyable = require_isKeyable();
|
|
3730
|
+
|
|
3731
|
+
/**
|
|
3732
|
+
* Gets the data for `map`.
|
|
3733
|
+
*
|
|
3734
|
+
* @private
|
|
3735
|
+
* @param {Object} map The map to query.
|
|
3736
|
+
* @param {string} key The reference key.
|
|
3737
|
+
* @returns {*} Returns the map data.
|
|
3738
|
+
*/
|
|
3739
|
+
function getMapData(map, key) {
|
|
3740
|
+
var data = map.__data__;
|
|
3741
|
+
return isKeyable(key)
|
|
3742
|
+
? data[typeof key == 'string' ? 'string' : 'hash']
|
|
3743
|
+
: data.map;
|
|
3744
|
+
}
|
|
3745
|
+
|
|
3746
|
+
_getMapData = getMapData;
|
|
3747
|
+
return _getMapData;
|
|
3748
|
+
}
|
|
3749
|
+
|
|
3750
|
+
var _mapCacheDelete;
|
|
3751
|
+
var hasRequired_mapCacheDelete;
|
|
3752
|
+
|
|
3753
|
+
function require_mapCacheDelete () {
|
|
3754
|
+
if (hasRequired_mapCacheDelete) return _mapCacheDelete;
|
|
3755
|
+
hasRequired_mapCacheDelete = 1;
|
|
3756
|
+
var getMapData = require_getMapData();
|
|
3757
|
+
|
|
3758
|
+
/**
|
|
3759
|
+
* Removes `key` and its value from the map.
|
|
3760
|
+
*
|
|
3761
|
+
* @private
|
|
3762
|
+
* @name delete
|
|
3763
|
+
* @memberOf MapCache
|
|
3764
|
+
* @param {string} key The key of the value to remove.
|
|
3765
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
3766
|
+
*/
|
|
3767
|
+
function mapCacheDelete(key) {
|
|
3768
|
+
var result = getMapData(this, key)['delete'](key);
|
|
3769
|
+
this.size -= result ? 1 : 0;
|
|
3770
|
+
return result;
|
|
3771
|
+
}
|
|
3772
|
+
|
|
3773
|
+
_mapCacheDelete = mapCacheDelete;
|
|
3774
|
+
return _mapCacheDelete;
|
|
2883
3775
|
}
|
|
2884
3776
|
|
|
2885
|
-
var
|
|
3777
|
+
var _mapCacheGet;
|
|
3778
|
+
var hasRequired_mapCacheGet;
|
|
3779
|
+
|
|
3780
|
+
function require_mapCacheGet () {
|
|
3781
|
+
if (hasRequired_mapCacheGet) return _mapCacheGet;
|
|
3782
|
+
hasRequired_mapCacheGet = 1;
|
|
3783
|
+
var getMapData = require_getMapData();
|
|
3784
|
+
|
|
3785
|
+
/**
|
|
3786
|
+
* Gets the map value for `key`.
|
|
3787
|
+
*
|
|
3788
|
+
* @private
|
|
3789
|
+
* @name get
|
|
3790
|
+
* @memberOf MapCache
|
|
3791
|
+
* @param {string} key The key of the value to get.
|
|
3792
|
+
* @returns {*} Returns the entry value.
|
|
3793
|
+
*/
|
|
3794
|
+
function mapCacheGet(key) {
|
|
3795
|
+
return getMapData(this, key).get(key);
|
|
3796
|
+
}
|
|
3797
|
+
|
|
3798
|
+
_mapCacheGet = mapCacheGet;
|
|
3799
|
+
return _mapCacheGet;
|
|
3800
|
+
}
|
|
3801
|
+
|
|
3802
|
+
var _mapCacheHas;
|
|
3803
|
+
var hasRequired_mapCacheHas;
|
|
3804
|
+
|
|
3805
|
+
function require_mapCacheHas () {
|
|
3806
|
+
if (hasRequired_mapCacheHas) return _mapCacheHas;
|
|
3807
|
+
hasRequired_mapCacheHas = 1;
|
|
3808
|
+
var getMapData = require_getMapData();
|
|
3809
|
+
|
|
3810
|
+
/**
|
|
3811
|
+
* Checks if a map value for `key` exists.
|
|
3812
|
+
*
|
|
3813
|
+
* @private
|
|
3814
|
+
* @name has
|
|
3815
|
+
* @memberOf MapCache
|
|
3816
|
+
* @param {string} key The key of the entry to check.
|
|
3817
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
3818
|
+
*/
|
|
3819
|
+
function mapCacheHas(key) {
|
|
3820
|
+
return getMapData(this, key).has(key);
|
|
3821
|
+
}
|
|
3822
|
+
|
|
3823
|
+
_mapCacheHas = mapCacheHas;
|
|
3824
|
+
return _mapCacheHas;
|
|
3825
|
+
}
|
|
2886
3826
|
|
|
2887
|
-
var
|
|
2888
|
-
|
|
3827
|
+
var _mapCacheSet;
|
|
3828
|
+
var hasRequired_mapCacheSet;
|
|
3829
|
+
|
|
3830
|
+
function require_mapCacheSet () {
|
|
3831
|
+
if (hasRequired_mapCacheSet) return _mapCacheSet;
|
|
3832
|
+
hasRequired_mapCacheSet = 1;
|
|
3833
|
+
var getMapData = require_getMapData();
|
|
3834
|
+
|
|
3835
|
+
/**
|
|
3836
|
+
* Sets the map `key` to `value`.
|
|
3837
|
+
*
|
|
3838
|
+
* @private
|
|
3839
|
+
* @name set
|
|
3840
|
+
* @memberOf MapCache
|
|
3841
|
+
* @param {string} key The key of the value to set.
|
|
3842
|
+
* @param {*} value The value to set.
|
|
3843
|
+
* @returns {Object} Returns the map cache instance.
|
|
3844
|
+
*/
|
|
3845
|
+
function mapCacheSet(key, value) {
|
|
3846
|
+
var data = getMapData(this, key),
|
|
3847
|
+
size = data.size;
|
|
3848
|
+
|
|
3849
|
+
data.set(key, value);
|
|
3850
|
+
this.size += data.size == size ? 0 : 1;
|
|
3851
|
+
return this;
|
|
3852
|
+
}
|
|
3853
|
+
|
|
3854
|
+
_mapCacheSet = mapCacheSet;
|
|
3855
|
+
return _mapCacheSet;
|
|
3856
|
+
}
|
|
3857
|
+
|
|
3858
|
+
var _MapCache;
|
|
3859
|
+
var hasRequired_MapCache;
|
|
3860
|
+
|
|
3861
|
+
function require_MapCache () {
|
|
3862
|
+
if (hasRequired_MapCache) return _MapCache;
|
|
3863
|
+
hasRequired_MapCache = 1;
|
|
3864
|
+
var mapCacheClear = require_mapCacheClear(),
|
|
3865
|
+
mapCacheDelete = require_mapCacheDelete(),
|
|
3866
|
+
mapCacheGet = require_mapCacheGet(),
|
|
3867
|
+
mapCacheHas = require_mapCacheHas(),
|
|
3868
|
+
mapCacheSet = require_mapCacheSet();
|
|
3869
|
+
|
|
3870
|
+
/**
|
|
3871
|
+
* Creates a map cache object to store key-value pairs.
|
|
3872
|
+
*
|
|
3873
|
+
* @private
|
|
3874
|
+
* @constructor
|
|
3875
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
3876
|
+
*/
|
|
3877
|
+
function MapCache(entries) {
|
|
3878
|
+
var index = -1,
|
|
3879
|
+
length = entries == null ? 0 : entries.length;
|
|
3880
|
+
|
|
3881
|
+
this.clear();
|
|
3882
|
+
while (++index < length) {
|
|
3883
|
+
var entry = entries[index];
|
|
3884
|
+
this.set(entry[0], entry[1]);
|
|
3885
|
+
}
|
|
3886
|
+
}
|
|
3887
|
+
|
|
3888
|
+
// Add methods to `MapCache`.
|
|
3889
|
+
MapCache.prototype.clear = mapCacheClear;
|
|
3890
|
+
MapCache.prototype['delete'] = mapCacheDelete;
|
|
3891
|
+
MapCache.prototype.get = mapCacheGet;
|
|
3892
|
+
MapCache.prototype.has = mapCacheHas;
|
|
3893
|
+
MapCache.prototype.set = mapCacheSet;
|
|
3894
|
+
|
|
3895
|
+
_MapCache = MapCache;
|
|
3896
|
+
return _MapCache;
|
|
3897
|
+
}
|
|
3898
|
+
|
|
3899
|
+
var memoize_1;
|
|
3900
|
+
var hasRequiredMemoize;
|
|
3901
|
+
|
|
3902
|
+
function requireMemoize () {
|
|
3903
|
+
if (hasRequiredMemoize) return memoize_1;
|
|
3904
|
+
hasRequiredMemoize = 1;
|
|
3905
|
+
var MapCache = require_MapCache();
|
|
3906
|
+
|
|
3907
|
+
/** Error message constants. */
|
|
3908
|
+
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
3909
|
+
|
|
3910
|
+
/**
|
|
3911
|
+
* Creates a function that memoizes the result of `func`. If `resolver` is
|
|
3912
|
+
* provided, it determines the cache key for storing the result based on the
|
|
3913
|
+
* arguments provided to the memoized function. By default, the first argument
|
|
3914
|
+
* provided to the memoized function is used as the map cache key. The `func`
|
|
3915
|
+
* is invoked with the `this` binding of the memoized function.
|
|
3916
|
+
*
|
|
3917
|
+
* **Note:** The cache is exposed as the `cache` property on the memoized
|
|
3918
|
+
* function. Its creation may be customized by replacing the `_.memoize.Cache`
|
|
3919
|
+
* constructor with one whose instances implement the
|
|
3920
|
+
* [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
|
|
3921
|
+
* method interface of `clear`, `delete`, `get`, `has`, and `set`.
|
|
3922
|
+
*
|
|
3923
|
+
* @static
|
|
3924
|
+
* @memberOf _
|
|
3925
|
+
* @since 0.1.0
|
|
3926
|
+
* @category Function
|
|
3927
|
+
* @param {Function} func The function to have its output memoized.
|
|
3928
|
+
* @param {Function} [resolver] The function to resolve the cache key.
|
|
3929
|
+
* @returns {Function} Returns the new memoized function.
|
|
3930
|
+
* @example
|
|
3931
|
+
*
|
|
3932
|
+
* var object = { 'a': 1, 'b': 2 };
|
|
3933
|
+
* var other = { 'c': 3, 'd': 4 };
|
|
3934
|
+
*
|
|
3935
|
+
* var values = _.memoize(_.values);
|
|
3936
|
+
* values(object);
|
|
3937
|
+
* // => [1, 2]
|
|
3938
|
+
*
|
|
3939
|
+
* values(other);
|
|
3940
|
+
* // => [3, 4]
|
|
3941
|
+
*
|
|
3942
|
+
* object.a = 2;
|
|
3943
|
+
* values(object);
|
|
3944
|
+
* // => [1, 2]
|
|
3945
|
+
*
|
|
3946
|
+
* // Modify the result cache.
|
|
3947
|
+
* values.cache.set(object, ['a', 'b']);
|
|
3948
|
+
* values(object);
|
|
3949
|
+
* // => ['a', 'b']
|
|
3950
|
+
*
|
|
3951
|
+
* // Replace `_.memoize.Cache`.
|
|
3952
|
+
* _.memoize.Cache = WeakMap;
|
|
3953
|
+
*/
|
|
3954
|
+
function memoize(func, resolver) {
|
|
3955
|
+
if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
|
|
3956
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
3957
|
+
}
|
|
3958
|
+
var memoized = function() {
|
|
3959
|
+
var args = arguments,
|
|
3960
|
+
key = resolver ? resolver.apply(this, args) : args[0],
|
|
3961
|
+
cache = memoized.cache;
|
|
3962
|
+
|
|
3963
|
+
if (cache.has(key)) {
|
|
3964
|
+
return cache.get(key);
|
|
3965
|
+
}
|
|
3966
|
+
var result = func.apply(this, args);
|
|
3967
|
+
memoized.cache = cache.set(key, result) || cache;
|
|
3968
|
+
return result;
|
|
3969
|
+
};
|
|
3970
|
+
memoized.cache = new (memoize.Cache || MapCache);
|
|
3971
|
+
return memoized;
|
|
3972
|
+
}
|
|
3973
|
+
|
|
3974
|
+
// Expose `MapCache`.
|
|
3975
|
+
memoize.Cache = MapCache;
|
|
3976
|
+
|
|
3977
|
+
memoize_1 = memoize;
|
|
3978
|
+
return memoize_1;
|
|
3979
|
+
}
|
|
3980
|
+
|
|
3981
|
+
var _memoizeCapped;
|
|
3982
|
+
var hasRequired_memoizeCapped;
|
|
3983
|
+
|
|
3984
|
+
function require_memoizeCapped () {
|
|
3985
|
+
if (hasRequired_memoizeCapped) return _memoizeCapped;
|
|
3986
|
+
hasRequired_memoizeCapped = 1;
|
|
3987
|
+
var memoize = requireMemoize();
|
|
3988
|
+
|
|
3989
|
+
/** Used as the maximum memoize cache size. */
|
|
3990
|
+
var MAX_MEMOIZE_SIZE = 500;
|
|
3991
|
+
|
|
3992
|
+
/**
|
|
3993
|
+
* A specialized version of `_.memoize` which clears the memoized function's
|
|
3994
|
+
* cache when it exceeds `MAX_MEMOIZE_SIZE`.
|
|
3995
|
+
*
|
|
3996
|
+
* @private
|
|
3997
|
+
* @param {Function} func The function to have its output memoized.
|
|
3998
|
+
* @returns {Function} Returns the new memoized function.
|
|
3999
|
+
*/
|
|
4000
|
+
function memoizeCapped(func) {
|
|
4001
|
+
var result = memoize(func, function(key) {
|
|
4002
|
+
if (cache.size === MAX_MEMOIZE_SIZE) {
|
|
4003
|
+
cache.clear();
|
|
4004
|
+
}
|
|
4005
|
+
return key;
|
|
4006
|
+
});
|
|
4007
|
+
|
|
4008
|
+
var cache = result.cache;
|
|
4009
|
+
return result;
|
|
4010
|
+
}
|
|
4011
|
+
|
|
4012
|
+
_memoizeCapped = memoizeCapped;
|
|
4013
|
+
return _memoizeCapped;
|
|
4014
|
+
}
|
|
4015
|
+
|
|
4016
|
+
var _stringToPath;
|
|
4017
|
+
var hasRequired_stringToPath;
|
|
4018
|
+
|
|
4019
|
+
function require_stringToPath () {
|
|
4020
|
+
if (hasRequired_stringToPath) return _stringToPath;
|
|
4021
|
+
hasRequired_stringToPath = 1;
|
|
4022
|
+
var memoizeCapped = require_memoizeCapped();
|
|
4023
|
+
|
|
4024
|
+
/** Used to match property names within property paths. */
|
|
4025
|
+
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
4026
|
+
|
|
4027
|
+
/** Used to match backslashes in property paths. */
|
|
4028
|
+
var reEscapeChar = /\\(\\)?/g;
|
|
4029
|
+
|
|
4030
|
+
/**
|
|
4031
|
+
* Converts `string` to a property path array.
|
|
4032
|
+
*
|
|
4033
|
+
* @private
|
|
4034
|
+
* @param {string} string The string to convert.
|
|
4035
|
+
* @returns {Array} Returns the property path array.
|
|
4036
|
+
*/
|
|
4037
|
+
var stringToPath = memoizeCapped(function(string) {
|
|
4038
|
+
var result = [];
|
|
4039
|
+
if (string.charCodeAt(0) === 46 /* . */) {
|
|
4040
|
+
result.push('');
|
|
4041
|
+
}
|
|
4042
|
+
string.replace(rePropName, function(match, number, quote, subString) {
|
|
4043
|
+
result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
|
|
4044
|
+
});
|
|
4045
|
+
return result;
|
|
4046
|
+
});
|
|
4047
|
+
|
|
4048
|
+
_stringToPath = stringToPath;
|
|
4049
|
+
return _stringToPath;
|
|
4050
|
+
}
|
|
2889
4051
|
|
|
2890
4052
|
/**
|
|
2891
|
-
*
|
|
4053
|
+
* A specialized version of `_.map` for arrays without support for iteratee
|
|
4054
|
+
* shorthands.
|
|
2892
4055
|
*
|
|
2893
4056
|
* @private
|
|
2894
|
-
* @param {
|
|
2895
|
-
* @param {
|
|
2896
|
-
* @returns {
|
|
4057
|
+
* @param {Array} [array] The array to iterate over.
|
|
4058
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
4059
|
+
* @returns {Array} Returns the new mapped array.
|
|
2897
4060
|
*/
|
|
2898
|
-
function baseGet$1(object, path) {
|
|
2899
|
-
path = castPath(path, object);
|
|
2900
4061
|
|
|
2901
|
-
|
|
2902
|
-
|
|
4062
|
+
var _arrayMap;
|
|
4063
|
+
var hasRequired_arrayMap;
|
|
4064
|
+
|
|
4065
|
+
function require_arrayMap () {
|
|
4066
|
+
if (hasRequired_arrayMap) return _arrayMap;
|
|
4067
|
+
hasRequired_arrayMap = 1;
|
|
4068
|
+
function arrayMap(array, iteratee) {
|
|
4069
|
+
var index = -1,
|
|
4070
|
+
length = array == null ? 0 : array.length,
|
|
4071
|
+
result = Array(length);
|
|
4072
|
+
|
|
4073
|
+
while (++index < length) {
|
|
4074
|
+
result[index] = iteratee(array[index], index, array);
|
|
4075
|
+
}
|
|
4076
|
+
return result;
|
|
4077
|
+
}
|
|
4078
|
+
|
|
4079
|
+
_arrayMap = arrayMap;
|
|
4080
|
+
return _arrayMap;
|
|
4081
|
+
}
|
|
2903
4082
|
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
4083
|
+
var _baseToString;
|
|
4084
|
+
var hasRequired_baseToString;
|
|
4085
|
+
|
|
4086
|
+
function require_baseToString () {
|
|
4087
|
+
if (hasRequired_baseToString) return _baseToString;
|
|
4088
|
+
hasRequired_baseToString = 1;
|
|
4089
|
+
var Symbol = require_Symbol(),
|
|
4090
|
+
arrayMap = require_arrayMap(),
|
|
4091
|
+
isArray = requireIsArray(),
|
|
4092
|
+
isSymbol = requireIsSymbol();
|
|
4093
|
+
|
|
4094
|
+
/** Used to convert symbols to primitives and strings. */
|
|
4095
|
+
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
|
4096
|
+
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
|
4097
|
+
|
|
4098
|
+
/**
|
|
4099
|
+
* The base implementation of `_.toString` which doesn't convert nullish
|
|
4100
|
+
* values to empty strings.
|
|
4101
|
+
*
|
|
4102
|
+
* @private
|
|
4103
|
+
* @param {*} value The value to process.
|
|
4104
|
+
* @returns {string} Returns the string.
|
|
4105
|
+
*/
|
|
4106
|
+
function baseToString(value) {
|
|
4107
|
+
// Exit early for strings to avoid a performance hit in some environments.
|
|
4108
|
+
if (typeof value == 'string') {
|
|
4109
|
+
return value;
|
|
4110
|
+
}
|
|
4111
|
+
if (isArray(value)) {
|
|
4112
|
+
// Recursively convert values (susceptible to call stack limits).
|
|
4113
|
+
return arrayMap(value, baseToString) + '';
|
|
4114
|
+
}
|
|
4115
|
+
if (isSymbol(value)) {
|
|
4116
|
+
return symbolToString ? symbolToString.call(value) : '';
|
|
4117
|
+
}
|
|
4118
|
+
var result = (value + '');
|
|
4119
|
+
return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
|
|
4120
|
+
}
|
|
4121
|
+
|
|
4122
|
+
_baseToString = baseToString;
|
|
4123
|
+
return _baseToString;
|
|
2908
4124
|
}
|
|
2909
4125
|
|
|
2910
|
-
var
|
|
4126
|
+
var toString_1;
|
|
4127
|
+
var hasRequiredToString;
|
|
4128
|
+
|
|
4129
|
+
function requireToString () {
|
|
4130
|
+
if (hasRequiredToString) return toString_1;
|
|
4131
|
+
hasRequiredToString = 1;
|
|
4132
|
+
var baseToString = require_baseToString();
|
|
4133
|
+
|
|
4134
|
+
/**
|
|
4135
|
+
* Converts `value` to a string. An empty string is returned for `null`
|
|
4136
|
+
* and `undefined` values. The sign of `-0` is preserved.
|
|
4137
|
+
*
|
|
4138
|
+
* @static
|
|
4139
|
+
* @memberOf _
|
|
4140
|
+
* @since 4.0.0
|
|
4141
|
+
* @category Lang
|
|
4142
|
+
* @param {*} value The value to convert.
|
|
4143
|
+
* @returns {string} Returns the converted string.
|
|
4144
|
+
* @example
|
|
4145
|
+
*
|
|
4146
|
+
* _.toString(null);
|
|
4147
|
+
* // => ''
|
|
4148
|
+
*
|
|
4149
|
+
* _.toString(-0);
|
|
4150
|
+
* // => '-0'
|
|
4151
|
+
*
|
|
4152
|
+
* _.toString([1, 2, 3]);
|
|
4153
|
+
* // => '1,2,3'
|
|
4154
|
+
*/
|
|
4155
|
+
function toString(value) {
|
|
4156
|
+
return value == null ? '' : baseToString(value);
|
|
4157
|
+
}
|
|
4158
|
+
|
|
4159
|
+
toString_1 = toString;
|
|
4160
|
+
return toString_1;
|
|
4161
|
+
}
|
|
2911
4162
|
|
|
2912
|
-
var
|
|
4163
|
+
var _castPath;
|
|
4164
|
+
var hasRequired_castPath;
|
|
4165
|
+
|
|
4166
|
+
function require_castPath () {
|
|
4167
|
+
if (hasRequired_castPath) return _castPath;
|
|
4168
|
+
hasRequired_castPath = 1;
|
|
4169
|
+
var isArray = requireIsArray(),
|
|
4170
|
+
isKey = require_isKey(),
|
|
4171
|
+
stringToPath = require_stringToPath(),
|
|
4172
|
+
toString = requireToString();
|
|
4173
|
+
|
|
4174
|
+
/**
|
|
4175
|
+
* Casts `value` to a path array if it's not one.
|
|
4176
|
+
*
|
|
4177
|
+
* @private
|
|
4178
|
+
* @param {*} value The value to inspect.
|
|
4179
|
+
* @param {Object} [object] The object to query keys on.
|
|
4180
|
+
* @returns {Array} Returns the cast property path array.
|
|
4181
|
+
*/
|
|
4182
|
+
function castPath(value, object) {
|
|
4183
|
+
if (isArray(value)) {
|
|
4184
|
+
return value;
|
|
4185
|
+
}
|
|
4186
|
+
return isKey(value, object) ? [value] : stringToPath(toString(value));
|
|
4187
|
+
}
|
|
4188
|
+
|
|
4189
|
+
_castPath = castPath;
|
|
4190
|
+
return _castPath;
|
|
4191
|
+
}
|
|
2913
4192
|
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
*
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
4193
|
+
var _toKey;
|
|
4194
|
+
var hasRequired_toKey;
|
|
4195
|
+
|
|
4196
|
+
function require_toKey () {
|
|
4197
|
+
if (hasRequired_toKey) return _toKey;
|
|
4198
|
+
hasRequired_toKey = 1;
|
|
4199
|
+
var isSymbol = requireIsSymbol();
|
|
4200
|
+
|
|
4201
|
+
/**
|
|
4202
|
+
* Converts `value` to a string key if it's not a string or symbol.
|
|
4203
|
+
*
|
|
4204
|
+
* @private
|
|
4205
|
+
* @param {*} value The value to inspect.
|
|
4206
|
+
* @returns {string|symbol} Returns the key.
|
|
4207
|
+
*/
|
|
4208
|
+
function toKey(value) {
|
|
4209
|
+
if (typeof value == 'string' || isSymbol(value)) {
|
|
4210
|
+
return value;
|
|
4211
|
+
}
|
|
4212
|
+
var result = (value + '');
|
|
4213
|
+
return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
|
|
4214
|
+
}
|
|
4215
|
+
|
|
4216
|
+
_toKey = toKey;
|
|
4217
|
+
return _toKey;
|
|
4218
|
+
}
|
|
4219
|
+
|
|
4220
|
+
var _baseGet;
|
|
4221
|
+
var hasRequired_baseGet;
|
|
4222
|
+
|
|
4223
|
+
function require_baseGet () {
|
|
4224
|
+
if (hasRequired_baseGet) return _baseGet;
|
|
4225
|
+
hasRequired_baseGet = 1;
|
|
4226
|
+
var castPath = require_castPath(),
|
|
4227
|
+
toKey = require_toKey();
|
|
4228
|
+
|
|
4229
|
+
/**
|
|
4230
|
+
* The base implementation of `_.get` without support for default values.
|
|
4231
|
+
*
|
|
4232
|
+
* @private
|
|
4233
|
+
* @param {Object} object The object to query.
|
|
4234
|
+
* @param {Array|string} path The path of the property to get.
|
|
4235
|
+
* @returns {*} Returns the resolved value.
|
|
4236
|
+
*/
|
|
4237
|
+
function baseGet(object, path) {
|
|
4238
|
+
path = castPath(path, object);
|
|
4239
|
+
|
|
4240
|
+
var index = 0,
|
|
4241
|
+
length = path.length;
|
|
4242
|
+
|
|
4243
|
+
while (object != null && index < length) {
|
|
4244
|
+
object = object[toKey(path[index++])];
|
|
4245
|
+
}
|
|
4246
|
+
return (index && index == length) ? object : undefined;
|
|
4247
|
+
}
|
|
4248
|
+
|
|
4249
|
+
_baseGet = baseGet;
|
|
4250
|
+
return _baseGet;
|
|
2942
4251
|
}
|
|
2943
4252
|
|
|
2944
|
-
var get_1
|
|
4253
|
+
var get_1;
|
|
4254
|
+
var hasRequiredGet;
|
|
4255
|
+
|
|
4256
|
+
function requireGet () {
|
|
4257
|
+
if (hasRequiredGet) return get_1;
|
|
4258
|
+
hasRequiredGet = 1;
|
|
4259
|
+
var baseGet = require_baseGet();
|
|
4260
|
+
|
|
4261
|
+
/**
|
|
4262
|
+
* Gets the value at `path` of `object`. If the resolved value is
|
|
4263
|
+
* `undefined`, the `defaultValue` is returned in its place.
|
|
4264
|
+
*
|
|
4265
|
+
* @static
|
|
4266
|
+
* @memberOf _
|
|
4267
|
+
* @since 3.7.0
|
|
4268
|
+
* @category Object
|
|
4269
|
+
* @param {Object} object The object to query.
|
|
4270
|
+
* @param {Array|string} path The path of the property to get.
|
|
4271
|
+
* @param {*} [defaultValue] The value returned for `undefined` resolved values.
|
|
4272
|
+
* @returns {*} Returns the resolved value.
|
|
4273
|
+
* @example
|
|
4274
|
+
*
|
|
4275
|
+
* var object = { 'a': [{ 'b': { 'c': 3 } }] };
|
|
4276
|
+
*
|
|
4277
|
+
* _.get(object, 'a[0].b.c');
|
|
4278
|
+
* // => 3
|
|
4279
|
+
*
|
|
4280
|
+
* _.get(object, ['a', '0', 'b', 'c']);
|
|
4281
|
+
* // => 3
|
|
4282
|
+
*
|
|
4283
|
+
* _.get(object, 'a.b.c', 'default');
|
|
4284
|
+
* // => 'default'
|
|
4285
|
+
*/
|
|
4286
|
+
function get(object, path, defaultValue) {
|
|
4287
|
+
var result = object == null ? undefined : baseGet(object, path);
|
|
4288
|
+
return result === undefined ? defaultValue : result;
|
|
4289
|
+
}
|
|
4290
|
+
|
|
4291
|
+
get_1 = get;
|
|
4292
|
+
return get_1;
|
|
4293
|
+
}
|
|
4294
|
+
|
|
4295
|
+
var getExports = requireGet();
|
|
4296
|
+
var get = /*@__PURE__*/getDefaultExportFromCjs(getExports);
|
|
2945
4297
|
|
|
2946
4298
|
/**
|
|
2947
4299
|
* Copies the values of `source` to `array`.
|
|
@@ -2952,242 +4304,1215 @@ var get_1 = get;
|
|
|
2952
4304
|
* @returns {Array} Returns `array`.
|
|
2953
4305
|
*/
|
|
2954
4306
|
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
4307
|
+
var _copyArray;
|
|
4308
|
+
var hasRequired_copyArray;
|
|
4309
|
+
|
|
4310
|
+
function require_copyArray () {
|
|
4311
|
+
if (hasRequired_copyArray) return _copyArray;
|
|
4312
|
+
hasRequired_copyArray = 1;
|
|
4313
|
+
function copyArray(source, array) {
|
|
4314
|
+
var index = -1,
|
|
4315
|
+
length = source.length;
|
|
4316
|
+
|
|
4317
|
+
array || (array = Array(length));
|
|
4318
|
+
while (++index < length) {
|
|
4319
|
+
array[index] = source[index];
|
|
4320
|
+
}
|
|
4321
|
+
return array;
|
|
4322
|
+
}
|
|
4323
|
+
|
|
4324
|
+
_copyArray = copyArray;
|
|
4325
|
+
return _copyArray;
|
|
4326
|
+
}
|
|
2958
4327
|
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
4328
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
4329
|
+
|
|
4330
|
+
var _baseRandom;
|
|
4331
|
+
var hasRequired_baseRandom;
|
|
4332
|
+
|
|
4333
|
+
function require_baseRandom () {
|
|
4334
|
+
if (hasRequired_baseRandom) return _baseRandom;
|
|
4335
|
+
hasRequired_baseRandom = 1;
|
|
4336
|
+
var nativeFloor = Math.floor,
|
|
4337
|
+
nativeRandom = Math.random;
|
|
4338
|
+
|
|
4339
|
+
/**
|
|
4340
|
+
* The base implementation of `_.random` without support for returning
|
|
4341
|
+
* floating-point numbers.
|
|
4342
|
+
*
|
|
4343
|
+
* @private
|
|
4344
|
+
* @param {number} lower The lower bound.
|
|
4345
|
+
* @param {number} upper The upper bound.
|
|
4346
|
+
* @returns {number} Returns the random number.
|
|
4347
|
+
*/
|
|
4348
|
+
function baseRandom(lower, upper) {
|
|
4349
|
+
return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
|
|
4350
|
+
}
|
|
4351
|
+
|
|
4352
|
+
_baseRandom = baseRandom;
|
|
4353
|
+
return _baseRandom;
|
|
2964
4354
|
}
|
|
2965
4355
|
|
|
2966
|
-
var
|
|
4356
|
+
var _shuffleSelf;
|
|
4357
|
+
var hasRequired_shuffleSelf;
|
|
4358
|
+
|
|
4359
|
+
function require_shuffleSelf () {
|
|
4360
|
+
if (hasRequired_shuffleSelf) return _shuffleSelf;
|
|
4361
|
+
hasRequired_shuffleSelf = 1;
|
|
4362
|
+
var baseRandom = require_baseRandom();
|
|
4363
|
+
|
|
4364
|
+
/**
|
|
4365
|
+
* A specialized version of `_.shuffle` which mutates and sets the size of `array`.
|
|
4366
|
+
*
|
|
4367
|
+
* @private
|
|
4368
|
+
* @param {Array} array The array to shuffle.
|
|
4369
|
+
* @param {number} [size=array.length] The size of `array`.
|
|
4370
|
+
* @returns {Array} Returns `array`.
|
|
4371
|
+
*/
|
|
4372
|
+
function shuffleSelf(array, size) {
|
|
4373
|
+
var index = -1,
|
|
4374
|
+
length = array.length,
|
|
4375
|
+
lastIndex = length - 1;
|
|
4376
|
+
|
|
4377
|
+
size = size === undefined ? length : size;
|
|
4378
|
+
while (++index < size) {
|
|
4379
|
+
var rand = baseRandom(index, lastIndex),
|
|
4380
|
+
value = array[rand];
|
|
4381
|
+
|
|
4382
|
+
array[rand] = array[index];
|
|
4383
|
+
array[index] = value;
|
|
4384
|
+
}
|
|
4385
|
+
array.length = size;
|
|
4386
|
+
return array;
|
|
4387
|
+
}
|
|
4388
|
+
|
|
4389
|
+
_shuffleSelf = shuffleSelf;
|
|
4390
|
+
return _shuffleSelf;
|
|
4391
|
+
}
|
|
2967
4392
|
|
|
2968
|
-
|
|
4393
|
+
var _arrayShuffle;
|
|
4394
|
+
var hasRequired_arrayShuffle;
|
|
4395
|
+
|
|
4396
|
+
function require_arrayShuffle () {
|
|
4397
|
+
if (hasRequired_arrayShuffle) return _arrayShuffle;
|
|
4398
|
+
hasRequired_arrayShuffle = 1;
|
|
4399
|
+
var copyArray = require_copyArray(),
|
|
4400
|
+
shuffleSelf = require_shuffleSelf();
|
|
4401
|
+
|
|
4402
|
+
/**
|
|
4403
|
+
* A specialized version of `_.shuffle` for arrays.
|
|
4404
|
+
*
|
|
4405
|
+
* @private
|
|
4406
|
+
* @param {Array} array The array to shuffle.
|
|
4407
|
+
* @returns {Array} Returns the new shuffled array.
|
|
4408
|
+
*/
|
|
4409
|
+
function arrayShuffle(array) {
|
|
4410
|
+
return shuffleSelf(copyArray(array));
|
|
4411
|
+
}
|
|
4412
|
+
|
|
4413
|
+
_arrayShuffle = arrayShuffle;
|
|
4414
|
+
return _arrayShuffle;
|
|
4415
|
+
}
|
|
2969
4416
|
|
|
2970
|
-
var
|
|
2971
|
-
|
|
4417
|
+
var _baseValues;
|
|
4418
|
+
var hasRequired_baseValues;
|
|
4419
|
+
|
|
4420
|
+
function require_baseValues () {
|
|
4421
|
+
if (hasRequired_baseValues) return _baseValues;
|
|
4422
|
+
hasRequired_baseValues = 1;
|
|
4423
|
+
var arrayMap = require_arrayMap();
|
|
4424
|
+
|
|
4425
|
+
/**
|
|
4426
|
+
* The base implementation of `_.values` and `_.valuesIn` which creates an
|
|
4427
|
+
* array of `object` property values corresponding to the property names
|
|
4428
|
+
* of `props`.
|
|
4429
|
+
*
|
|
4430
|
+
* @private
|
|
4431
|
+
* @param {Object} object The object to query.
|
|
4432
|
+
* @param {Array} props The property names to get values for.
|
|
4433
|
+
* @returns {Object} Returns the array of property values.
|
|
4434
|
+
*/
|
|
4435
|
+
function baseValues(object, props) {
|
|
4436
|
+
return arrayMap(props, function(key) {
|
|
4437
|
+
return object[key];
|
|
4438
|
+
});
|
|
4439
|
+
}
|
|
4440
|
+
|
|
4441
|
+
_baseValues = baseValues;
|
|
4442
|
+
return _baseValues;
|
|
4443
|
+
}
|
|
2972
4444
|
|
|
2973
4445
|
/**
|
|
2974
|
-
* The base implementation of `_.
|
|
2975
|
-
*
|
|
4446
|
+
* The base implementation of `_.times` without support for iteratee shorthands
|
|
4447
|
+
* or max array length checks.
|
|
2976
4448
|
*
|
|
2977
4449
|
* @private
|
|
2978
|
-
* @param {number}
|
|
2979
|
-
* @param {
|
|
2980
|
-
* @returns {
|
|
4450
|
+
* @param {number} n The number of times to invoke `iteratee`.
|
|
4451
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
4452
|
+
* @returns {Array} Returns the array of results.
|
|
2981
4453
|
*/
|
|
2982
|
-
|
|
2983
|
-
|
|
4454
|
+
|
|
4455
|
+
var _baseTimes;
|
|
4456
|
+
var hasRequired_baseTimes;
|
|
4457
|
+
|
|
4458
|
+
function require_baseTimes () {
|
|
4459
|
+
if (hasRequired_baseTimes) return _baseTimes;
|
|
4460
|
+
hasRequired_baseTimes = 1;
|
|
4461
|
+
function baseTimes(n, iteratee) {
|
|
4462
|
+
var index = -1,
|
|
4463
|
+
result = Array(n);
|
|
4464
|
+
|
|
4465
|
+
while (++index < n) {
|
|
4466
|
+
result[index] = iteratee(index);
|
|
4467
|
+
}
|
|
4468
|
+
return result;
|
|
4469
|
+
}
|
|
4470
|
+
|
|
4471
|
+
_baseTimes = baseTimes;
|
|
4472
|
+
return _baseTimes;
|
|
4473
|
+
}
|
|
4474
|
+
|
|
4475
|
+
var _baseIsArguments;
|
|
4476
|
+
var hasRequired_baseIsArguments;
|
|
4477
|
+
|
|
4478
|
+
function require_baseIsArguments () {
|
|
4479
|
+
if (hasRequired_baseIsArguments) return _baseIsArguments;
|
|
4480
|
+
hasRequired_baseIsArguments = 1;
|
|
4481
|
+
var baseGetTag = require_baseGetTag(),
|
|
4482
|
+
isObjectLike = requireIsObjectLike();
|
|
4483
|
+
|
|
4484
|
+
/** `Object#toString` result references. */
|
|
4485
|
+
var argsTag = '[object Arguments]';
|
|
4486
|
+
|
|
4487
|
+
/**
|
|
4488
|
+
* The base implementation of `_.isArguments`.
|
|
4489
|
+
*
|
|
4490
|
+
* @private
|
|
4491
|
+
* @param {*} value The value to check.
|
|
4492
|
+
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
4493
|
+
*/
|
|
4494
|
+
function baseIsArguments(value) {
|
|
4495
|
+
return isObjectLike(value) && baseGetTag(value) == argsTag;
|
|
4496
|
+
}
|
|
4497
|
+
|
|
4498
|
+
_baseIsArguments = baseIsArguments;
|
|
4499
|
+
return _baseIsArguments;
|
|
2984
4500
|
}
|
|
2985
4501
|
|
|
2986
|
-
var
|
|
4502
|
+
var isArguments_1;
|
|
4503
|
+
var hasRequiredIsArguments;
|
|
4504
|
+
|
|
4505
|
+
function requireIsArguments () {
|
|
4506
|
+
if (hasRequiredIsArguments) return isArguments_1;
|
|
4507
|
+
hasRequiredIsArguments = 1;
|
|
4508
|
+
var baseIsArguments = require_baseIsArguments(),
|
|
4509
|
+
isObjectLike = requireIsObjectLike();
|
|
4510
|
+
|
|
4511
|
+
/** Used for built-in method references. */
|
|
4512
|
+
var objectProto = Object.prototype;
|
|
4513
|
+
|
|
4514
|
+
/** Used to check objects for own properties. */
|
|
4515
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
4516
|
+
|
|
4517
|
+
/** Built-in value references. */
|
|
4518
|
+
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
|
4519
|
+
|
|
4520
|
+
/**
|
|
4521
|
+
* Checks if `value` is likely an `arguments` object.
|
|
4522
|
+
*
|
|
4523
|
+
* @static
|
|
4524
|
+
* @memberOf _
|
|
4525
|
+
* @since 0.1.0
|
|
4526
|
+
* @category Lang
|
|
4527
|
+
* @param {*} value The value to check.
|
|
4528
|
+
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
4529
|
+
* else `false`.
|
|
4530
|
+
* @example
|
|
4531
|
+
*
|
|
4532
|
+
* _.isArguments(function() { return arguments; }());
|
|
4533
|
+
* // => true
|
|
4534
|
+
*
|
|
4535
|
+
* _.isArguments([1, 2, 3]);
|
|
4536
|
+
* // => false
|
|
4537
|
+
*/
|
|
4538
|
+
var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
|
|
4539
|
+
return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
|
|
4540
|
+
!propertyIsEnumerable.call(value, 'callee');
|
|
4541
|
+
};
|
|
4542
|
+
|
|
4543
|
+
isArguments_1 = isArguments;
|
|
4544
|
+
return isArguments_1;
|
|
4545
|
+
}
|
|
2987
4546
|
|
|
2988
|
-
var
|
|
4547
|
+
var isBuffer = {exports: {}};
|
|
2989
4548
|
|
|
2990
4549
|
/**
|
|
2991
|
-
*
|
|
4550
|
+
* This method returns `false`.
|
|
2992
4551
|
*
|
|
2993
|
-
* @
|
|
2994
|
-
* @
|
|
2995
|
-
* @
|
|
2996
|
-
* @
|
|
4552
|
+
* @static
|
|
4553
|
+
* @memberOf _
|
|
4554
|
+
* @since 4.13.0
|
|
4555
|
+
* @category Util
|
|
4556
|
+
* @returns {boolean} Returns `false`.
|
|
4557
|
+
* @example
|
|
4558
|
+
*
|
|
4559
|
+
* _.times(2, _.stubFalse);
|
|
4560
|
+
* // => [false, false]
|
|
2997
4561
|
*/
|
|
2998
|
-
function shuffleSelf$2(array, size) {
|
|
2999
|
-
var index = -1,
|
|
3000
|
-
length = array.length,
|
|
3001
|
-
lastIndex = length - 1;
|
|
3002
4562
|
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
var rand = baseRandom(index, lastIndex),
|
|
3006
|
-
value = array[rand];
|
|
4563
|
+
var stubFalse_1;
|
|
4564
|
+
var hasRequiredStubFalse;
|
|
3007
4565
|
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
4566
|
+
function requireStubFalse () {
|
|
4567
|
+
if (hasRequiredStubFalse) return stubFalse_1;
|
|
4568
|
+
hasRequiredStubFalse = 1;
|
|
4569
|
+
function stubFalse() {
|
|
4570
|
+
return false;
|
|
4571
|
+
}
|
|
4572
|
+
|
|
4573
|
+
stubFalse_1 = stubFalse;
|
|
4574
|
+
return stubFalse_1;
|
|
3013
4575
|
}
|
|
3014
4576
|
|
|
3015
|
-
|
|
4577
|
+
isBuffer.exports;
|
|
4578
|
+
|
|
4579
|
+
var hasRequiredIsBuffer;
|
|
4580
|
+
|
|
4581
|
+
function requireIsBuffer () {
|
|
4582
|
+
if (hasRequiredIsBuffer) return isBuffer.exports;
|
|
4583
|
+
hasRequiredIsBuffer = 1;
|
|
4584
|
+
(function (module, exports) {
|
|
4585
|
+
var root = require_root(),
|
|
4586
|
+
stubFalse = requireStubFalse();
|
|
4587
|
+
|
|
4588
|
+
/** Detect free variable `exports`. */
|
|
4589
|
+
var freeExports = exports && !exports.nodeType && exports;
|
|
4590
|
+
|
|
4591
|
+
/** Detect free variable `module`. */
|
|
4592
|
+
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
4593
|
+
|
|
4594
|
+
/** Detect the popular CommonJS extension `module.exports`. */
|
|
4595
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
4596
|
+
|
|
4597
|
+
/** Built-in value references. */
|
|
4598
|
+
var Buffer = moduleExports ? root.Buffer : undefined;
|
|
4599
|
+
|
|
4600
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
4601
|
+
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
|
|
4602
|
+
|
|
4603
|
+
/**
|
|
4604
|
+
* Checks if `value` is a buffer.
|
|
4605
|
+
*
|
|
4606
|
+
* @static
|
|
4607
|
+
* @memberOf _
|
|
4608
|
+
* @since 4.3.0
|
|
4609
|
+
* @category Lang
|
|
4610
|
+
* @param {*} value The value to check.
|
|
4611
|
+
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
|
|
4612
|
+
* @example
|
|
4613
|
+
*
|
|
4614
|
+
* _.isBuffer(new Buffer(2));
|
|
4615
|
+
* // => true
|
|
4616
|
+
*
|
|
4617
|
+
* _.isBuffer(new Uint8Array(2));
|
|
4618
|
+
* // => false
|
|
4619
|
+
*/
|
|
4620
|
+
var isBuffer = nativeIsBuffer || stubFalse;
|
|
4621
|
+
|
|
4622
|
+
module.exports = isBuffer;
|
|
4623
|
+
} (isBuffer, isBuffer.exports));
|
|
4624
|
+
return isBuffer.exports;
|
|
4625
|
+
}
|
|
3016
4626
|
|
|
3017
|
-
|
|
3018
|
-
shuffleSelf$1 = _shuffleSelf;
|
|
4627
|
+
/** Used as references for various `Number` constants. */
|
|
3019
4628
|
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
4629
|
+
var _isIndex;
|
|
4630
|
+
var hasRequired_isIndex;
|
|
4631
|
+
|
|
4632
|
+
function require_isIndex () {
|
|
4633
|
+
if (hasRequired_isIndex) return _isIndex;
|
|
4634
|
+
hasRequired_isIndex = 1;
|
|
4635
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
4636
|
+
|
|
4637
|
+
/** Used to detect unsigned integer values. */
|
|
4638
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
4639
|
+
|
|
4640
|
+
/**
|
|
4641
|
+
* Checks if `value` is a valid array-like index.
|
|
4642
|
+
*
|
|
4643
|
+
* @private
|
|
4644
|
+
* @param {*} value The value to check.
|
|
4645
|
+
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
4646
|
+
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
4647
|
+
*/
|
|
4648
|
+
function isIndex(value, length) {
|
|
4649
|
+
var type = typeof value;
|
|
4650
|
+
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
4651
|
+
|
|
4652
|
+
return !!length &&
|
|
4653
|
+
(type == 'number' ||
|
|
4654
|
+
(type != 'symbol' && reIsUint.test(value))) &&
|
|
4655
|
+
(value > -1 && value % 1 == 0 && value < length);
|
|
4656
|
+
}
|
|
4657
|
+
|
|
4658
|
+
_isIndex = isIndex;
|
|
4659
|
+
return _isIndex;
|
|
3029
4660
|
}
|
|
3030
4661
|
|
|
3031
|
-
|
|
4662
|
+
/** Used as references for various `Number` constants. */
|
|
4663
|
+
|
|
4664
|
+
var isLength_1;
|
|
4665
|
+
var hasRequiredIsLength;
|
|
4666
|
+
|
|
4667
|
+
function requireIsLength () {
|
|
4668
|
+
if (hasRequiredIsLength) return isLength_1;
|
|
4669
|
+
hasRequiredIsLength = 1;
|
|
4670
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
4671
|
+
|
|
4672
|
+
/**
|
|
4673
|
+
* Checks if `value` is a valid array-like length.
|
|
4674
|
+
*
|
|
4675
|
+
* **Note:** This method is loosely based on
|
|
4676
|
+
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
|
4677
|
+
*
|
|
4678
|
+
* @static
|
|
4679
|
+
* @memberOf _
|
|
4680
|
+
* @since 4.0.0
|
|
4681
|
+
* @category Lang
|
|
4682
|
+
* @param {*} value The value to check.
|
|
4683
|
+
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
|
4684
|
+
* @example
|
|
4685
|
+
*
|
|
4686
|
+
* _.isLength(3);
|
|
4687
|
+
* // => true
|
|
4688
|
+
*
|
|
4689
|
+
* _.isLength(Number.MIN_VALUE);
|
|
4690
|
+
* // => false
|
|
4691
|
+
*
|
|
4692
|
+
* _.isLength(Infinity);
|
|
4693
|
+
* // => false
|
|
4694
|
+
*
|
|
4695
|
+
* _.isLength('3');
|
|
4696
|
+
* // => false
|
|
4697
|
+
*/
|
|
4698
|
+
function isLength(value) {
|
|
4699
|
+
return typeof value == 'number' &&
|
|
4700
|
+
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
4701
|
+
}
|
|
4702
|
+
|
|
4703
|
+
isLength_1 = isLength;
|
|
4704
|
+
return isLength_1;
|
|
4705
|
+
}
|
|
3032
4706
|
|
|
3033
|
-
var
|
|
4707
|
+
var _baseIsTypedArray;
|
|
4708
|
+
var hasRequired_baseIsTypedArray;
|
|
4709
|
+
|
|
4710
|
+
function require_baseIsTypedArray () {
|
|
4711
|
+
if (hasRequired_baseIsTypedArray) return _baseIsTypedArray;
|
|
4712
|
+
hasRequired_baseIsTypedArray = 1;
|
|
4713
|
+
var baseGetTag = require_baseGetTag(),
|
|
4714
|
+
isLength = requireIsLength(),
|
|
4715
|
+
isObjectLike = requireIsObjectLike();
|
|
4716
|
+
|
|
4717
|
+
/** `Object#toString` result references. */
|
|
4718
|
+
var argsTag = '[object Arguments]',
|
|
4719
|
+
arrayTag = '[object Array]',
|
|
4720
|
+
boolTag = '[object Boolean]',
|
|
4721
|
+
dateTag = '[object Date]',
|
|
4722
|
+
errorTag = '[object Error]',
|
|
4723
|
+
funcTag = '[object Function]',
|
|
4724
|
+
mapTag = '[object Map]',
|
|
4725
|
+
numberTag = '[object Number]',
|
|
4726
|
+
objectTag = '[object Object]',
|
|
4727
|
+
regexpTag = '[object RegExp]',
|
|
4728
|
+
setTag = '[object Set]',
|
|
4729
|
+
stringTag = '[object String]',
|
|
4730
|
+
weakMapTag = '[object WeakMap]';
|
|
4731
|
+
|
|
4732
|
+
var arrayBufferTag = '[object ArrayBuffer]',
|
|
4733
|
+
dataViewTag = '[object DataView]',
|
|
4734
|
+
float32Tag = '[object Float32Array]',
|
|
4735
|
+
float64Tag = '[object Float64Array]',
|
|
4736
|
+
int8Tag = '[object Int8Array]',
|
|
4737
|
+
int16Tag = '[object Int16Array]',
|
|
4738
|
+
int32Tag = '[object Int32Array]',
|
|
4739
|
+
uint8Tag = '[object Uint8Array]',
|
|
4740
|
+
uint8ClampedTag = '[object Uint8ClampedArray]',
|
|
4741
|
+
uint16Tag = '[object Uint16Array]',
|
|
4742
|
+
uint32Tag = '[object Uint32Array]';
|
|
4743
|
+
|
|
4744
|
+
/** Used to identify `toStringTag` values of typed arrays. */
|
|
4745
|
+
var typedArrayTags = {};
|
|
4746
|
+
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
|
|
4747
|
+
typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
|
|
4748
|
+
typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
|
|
4749
|
+
typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
|
|
4750
|
+
typedArrayTags[uint32Tag] = true;
|
|
4751
|
+
typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
|
|
4752
|
+
typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
|
|
4753
|
+
typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
|
|
4754
|
+
typedArrayTags[errorTag] = typedArrayTags[funcTag] =
|
|
4755
|
+
typedArrayTags[mapTag] = typedArrayTags[numberTag] =
|
|
4756
|
+
typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
|
|
4757
|
+
typedArrayTags[setTag] = typedArrayTags[stringTag] =
|
|
4758
|
+
typedArrayTags[weakMapTag] = false;
|
|
4759
|
+
|
|
4760
|
+
/**
|
|
4761
|
+
* The base implementation of `_.isTypedArray` without Node.js optimizations.
|
|
4762
|
+
*
|
|
4763
|
+
* @private
|
|
4764
|
+
* @param {*} value The value to check.
|
|
4765
|
+
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
4766
|
+
*/
|
|
4767
|
+
function baseIsTypedArray(value) {
|
|
4768
|
+
return isObjectLike(value) &&
|
|
4769
|
+
isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
4770
|
+
}
|
|
4771
|
+
|
|
4772
|
+
_baseIsTypedArray = baseIsTypedArray;
|
|
4773
|
+
return _baseIsTypedArray;
|
|
4774
|
+
}
|
|
3034
4775
|
|
|
3035
4776
|
/**
|
|
3036
|
-
* The base implementation of `_.
|
|
3037
|
-
* array of `object` property values corresponding to the property names
|
|
3038
|
-
* of `props`.
|
|
4777
|
+
* The base implementation of `_.unary` without support for storing metadata.
|
|
3039
4778
|
*
|
|
3040
4779
|
* @private
|
|
3041
|
-
* @param {
|
|
3042
|
-
* @
|
|
3043
|
-
* @returns {Object} Returns the array of property values.
|
|
4780
|
+
* @param {Function} func The function to cap arguments for.
|
|
4781
|
+
* @returns {Function} Returns the new capped function.
|
|
3044
4782
|
*/
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
4783
|
+
|
|
4784
|
+
var _baseUnary;
|
|
4785
|
+
var hasRequired_baseUnary;
|
|
4786
|
+
|
|
4787
|
+
function require_baseUnary () {
|
|
4788
|
+
if (hasRequired_baseUnary) return _baseUnary;
|
|
4789
|
+
hasRequired_baseUnary = 1;
|
|
4790
|
+
function baseUnary(func) {
|
|
4791
|
+
return function(value) {
|
|
4792
|
+
return func(value);
|
|
4793
|
+
};
|
|
4794
|
+
}
|
|
4795
|
+
|
|
4796
|
+
_baseUnary = baseUnary;
|
|
4797
|
+
return _baseUnary;
|
|
3049
4798
|
}
|
|
3050
4799
|
|
|
3051
|
-
var
|
|
4800
|
+
var _nodeUtil = {exports: {}};
|
|
3052
4801
|
|
|
3053
|
-
|
|
3054
|
-
keys = keys_1;
|
|
4802
|
+
_nodeUtil.exports;
|
|
3055
4803
|
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
4804
|
+
var hasRequired_nodeUtil;
|
|
4805
|
+
|
|
4806
|
+
function require_nodeUtil () {
|
|
4807
|
+
if (hasRequired_nodeUtil) return _nodeUtil.exports;
|
|
4808
|
+
hasRequired_nodeUtil = 1;
|
|
4809
|
+
(function (module, exports) {
|
|
4810
|
+
var freeGlobal = require_freeGlobal();
|
|
4811
|
+
|
|
4812
|
+
/** Detect free variable `exports`. */
|
|
4813
|
+
var freeExports = exports && !exports.nodeType && exports;
|
|
4814
|
+
|
|
4815
|
+
/** Detect free variable `module`. */
|
|
4816
|
+
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
4817
|
+
|
|
4818
|
+
/** Detect the popular CommonJS extension `module.exports`. */
|
|
4819
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
4820
|
+
|
|
4821
|
+
/** Detect free variable `process` from Node.js. */
|
|
4822
|
+
var freeProcess = moduleExports && freeGlobal.process;
|
|
4823
|
+
|
|
4824
|
+
/** Used to access faster Node.js helpers. */
|
|
4825
|
+
var nodeUtil = (function() {
|
|
4826
|
+
try {
|
|
4827
|
+
// Use `util.types` for Node.js 10+.
|
|
4828
|
+
var types = freeModule && freeModule.require && freeModule.require('util').types;
|
|
4829
|
+
|
|
4830
|
+
if (types) {
|
|
4831
|
+
return types;
|
|
4832
|
+
}
|
|
4833
|
+
|
|
4834
|
+
// Legacy `process.binding('util')` for Node.js < 10.
|
|
4835
|
+
return freeProcess && freeProcess.binding && freeProcess.binding('util');
|
|
4836
|
+
} catch (e) {}
|
|
4837
|
+
}());
|
|
4838
|
+
|
|
4839
|
+
module.exports = nodeUtil;
|
|
4840
|
+
} (_nodeUtil, _nodeUtil.exports));
|
|
4841
|
+
return _nodeUtil.exports;
|
|
3084
4842
|
}
|
|
3085
4843
|
|
|
3086
|
-
var
|
|
4844
|
+
var isTypedArray_1;
|
|
4845
|
+
var hasRequiredIsTypedArray;
|
|
4846
|
+
|
|
4847
|
+
function requireIsTypedArray () {
|
|
4848
|
+
if (hasRequiredIsTypedArray) return isTypedArray_1;
|
|
4849
|
+
hasRequiredIsTypedArray = 1;
|
|
4850
|
+
var baseIsTypedArray = require_baseIsTypedArray(),
|
|
4851
|
+
baseUnary = require_baseUnary(),
|
|
4852
|
+
nodeUtil = require_nodeUtil();
|
|
4853
|
+
|
|
4854
|
+
/* Node.js helper references. */
|
|
4855
|
+
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
4856
|
+
|
|
4857
|
+
/**
|
|
4858
|
+
* Checks if `value` is classified as a typed array.
|
|
4859
|
+
*
|
|
4860
|
+
* @static
|
|
4861
|
+
* @memberOf _
|
|
4862
|
+
* @since 3.0.0
|
|
4863
|
+
* @category Lang
|
|
4864
|
+
* @param {*} value The value to check.
|
|
4865
|
+
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
4866
|
+
* @example
|
|
4867
|
+
*
|
|
4868
|
+
* _.isTypedArray(new Uint8Array);
|
|
4869
|
+
* // => true
|
|
4870
|
+
*
|
|
4871
|
+
* _.isTypedArray([]);
|
|
4872
|
+
* // => false
|
|
4873
|
+
*/
|
|
4874
|
+
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
4875
|
+
|
|
4876
|
+
isTypedArray_1 = isTypedArray;
|
|
4877
|
+
return isTypedArray_1;
|
|
4878
|
+
}
|
|
3087
4879
|
|
|
3088
|
-
var
|
|
3089
|
-
|
|
4880
|
+
var _arrayLikeKeys;
|
|
4881
|
+
var hasRequired_arrayLikeKeys;
|
|
4882
|
+
|
|
4883
|
+
function require_arrayLikeKeys () {
|
|
4884
|
+
if (hasRequired_arrayLikeKeys) return _arrayLikeKeys;
|
|
4885
|
+
hasRequired_arrayLikeKeys = 1;
|
|
4886
|
+
var baseTimes = require_baseTimes(),
|
|
4887
|
+
isArguments = requireIsArguments(),
|
|
4888
|
+
isArray = requireIsArray(),
|
|
4889
|
+
isBuffer = requireIsBuffer(),
|
|
4890
|
+
isIndex = require_isIndex(),
|
|
4891
|
+
isTypedArray = requireIsTypedArray();
|
|
4892
|
+
|
|
4893
|
+
/** Used for built-in method references. */
|
|
4894
|
+
var objectProto = Object.prototype;
|
|
4895
|
+
|
|
4896
|
+
/** Used to check objects for own properties. */
|
|
4897
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
4898
|
+
|
|
4899
|
+
/**
|
|
4900
|
+
* Creates an array of the enumerable property names of the array-like `value`.
|
|
4901
|
+
*
|
|
4902
|
+
* @private
|
|
4903
|
+
* @param {*} value The value to query.
|
|
4904
|
+
* @param {boolean} inherited Specify returning inherited property names.
|
|
4905
|
+
* @returns {Array} Returns the array of property names.
|
|
4906
|
+
*/
|
|
4907
|
+
function arrayLikeKeys(value, inherited) {
|
|
4908
|
+
var isArr = isArray(value),
|
|
4909
|
+
isArg = !isArr && isArguments(value),
|
|
4910
|
+
isBuff = !isArr && !isArg && isBuffer(value),
|
|
4911
|
+
isType = !isArr && !isArg && !isBuff && isTypedArray(value),
|
|
4912
|
+
skipIndexes = isArr || isArg || isBuff || isType,
|
|
4913
|
+
result = skipIndexes ? baseTimes(value.length, String) : [],
|
|
4914
|
+
length = result.length;
|
|
4915
|
+
|
|
4916
|
+
for (var key in value) {
|
|
4917
|
+
if ((inherited || hasOwnProperty.call(value, key)) &&
|
|
4918
|
+
!(skipIndexes && (
|
|
4919
|
+
// Safari 9 has enumerable `arguments.length` in strict mode.
|
|
4920
|
+
key == 'length' ||
|
|
4921
|
+
// Node.js 0.10 has enumerable non-index properties on buffers.
|
|
4922
|
+
(isBuff && (key == 'offset' || key == 'parent')) ||
|
|
4923
|
+
// PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
4924
|
+
(isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
|
|
4925
|
+
// Skip index properties.
|
|
4926
|
+
isIndex(key, length)
|
|
4927
|
+
))) {
|
|
4928
|
+
result.push(key);
|
|
4929
|
+
}
|
|
4930
|
+
}
|
|
4931
|
+
return result;
|
|
4932
|
+
}
|
|
4933
|
+
|
|
4934
|
+
_arrayLikeKeys = arrayLikeKeys;
|
|
4935
|
+
return _arrayLikeKeys;
|
|
4936
|
+
}
|
|
4937
|
+
|
|
4938
|
+
/** Used for built-in method references. */
|
|
4939
|
+
|
|
4940
|
+
var _isPrototype;
|
|
4941
|
+
var hasRequired_isPrototype;
|
|
4942
|
+
|
|
4943
|
+
function require_isPrototype () {
|
|
4944
|
+
if (hasRequired_isPrototype) return _isPrototype;
|
|
4945
|
+
hasRequired_isPrototype = 1;
|
|
4946
|
+
var objectProto = Object.prototype;
|
|
4947
|
+
|
|
4948
|
+
/**
|
|
4949
|
+
* Checks if `value` is likely a prototype object.
|
|
4950
|
+
*
|
|
4951
|
+
* @private
|
|
4952
|
+
* @param {*} value The value to check.
|
|
4953
|
+
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
4954
|
+
*/
|
|
4955
|
+
function isPrototype(value) {
|
|
4956
|
+
var Ctor = value && value.constructor,
|
|
4957
|
+
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
|
|
4958
|
+
|
|
4959
|
+
return value === proto;
|
|
4960
|
+
}
|
|
4961
|
+
|
|
4962
|
+
_isPrototype = isPrototype;
|
|
4963
|
+
return _isPrototype;
|
|
4964
|
+
}
|
|
3090
4965
|
|
|
3091
4966
|
/**
|
|
3092
|
-
*
|
|
4967
|
+
* Creates a unary function that invokes `func` with its argument transformed.
|
|
3093
4968
|
*
|
|
3094
4969
|
* @private
|
|
3095
|
-
* @param {
|
|
3096
|
-
* @
|
|
4970
|
+
* @param {Function} func The function to wrap.
|
|
4971
|
+
* @param {Function} transform The argument transform.
|
|
4972
|
+
* @returns {Function} Returns the new function.
|
|
3097
4973
|
*/
|
|
3098
|
-
|
|
3099
|
-
|
|
4974
|
+
|
|
4975
|
+
var _overArg;
|
|
4976
|
+
var hasRequired_overArg;
|
|
4977
|
+
|
|
4978
|
+
function require_overArg () {
|
|
4979
|
+
if (hasRequired_overArg) return _overArg;
|
|
4980
|
+
hasRequired_overArg = 1;
|
|
4981
|
+
function overArg(func, transform) {
|
|
4982
|
+
return function(arg) {
|
|
4983
|
+
return func(transform(arg));
|
|
4984
|
+
};
|
|
4985
|
+
}
|
|
4986
|
+
|
|
4987
|
+
_overArg = overArg;
|
|
4988
|
+
return _overArg;
|
|
3100
4989
|
}
|
|
3101
4990
|
|
|
3102
|
-
var
|
|
4991
|
+
var _nativeKeys;
|
|
4992
|
+
var hasRequired_nativeKeys;
|
|
3103
4993
|
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
4994
|
+
function require_nativeKeys () {
|
|
4995
|
+
if (hasRequired_nativeKeys) return _nativeKeys;
|
|
4996
|
+
hasRequired_nativeKeys = 1;
|
|
4997
|
+
var overArg = require_overArg();
|
|
3107
4998
|
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
4999
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
5000
|
+
var nativeKeys = overArg(Object.keys, Object);
|
|
5001
|
+
|
|
5002
|
+
_nativeKeys = nativeKeys;
|
|
5003
|
+
return _nativeKeys;
|
|
5004
|
+
}
|
|
5005
|
+
|
|
5006
|
+
var _baseKeys;
|
|
5007
|
+
var hasRequired_baseKeys;
|
|
5008
|
+
|
|
5009
|
+
function require_baseKeys () {
|
|
5010
|
+
if (hasRequired_baseKeys) return _baseKeys;
|
|
5011
|
+
hasRequired_baseKeys = 1;
|
|
5012
|
+
var isPrototype = require_isPrototype(),
|
|
5013
|
+
nativeKeys = require_nativeKeys();
|
|
5014
|
+
|
|
5015
|
+
/** Used for built-in method references. */
|
|
5016
|
+
var objectProto = Object.prototype;
|
|
5017
|
+
|
|
5018
|
+
/** Used to check objects for own properties. */
|
|
5019
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
5020
|
+
|
|
5021
|
+
/**
|
|
5022
|
+
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
|
5023
|
+
*
|
|
5024
|
+
* @private
|
|
5025
|
+
* @param {Object} object The object to query.
|
|
5026
|
+
* @returns {Array} Returns the array of property names.
|
|
5027
|
+
*/
|
|
5028
|
+
function baseKeys(object) {
|
|
5029
|
+
if (!isPrototype(object)) {
|
|
5030
|
+
return nativeKeys(object);
|
|
5031
|
+
}
|
|
5032
|
+
var result = [];
|
|
5033
|
+
for (var key in Object(object)) {
|
|
5034
|
+
if (hasOwnProperty.call(object, key) && key != 'constructor') {
|
|
5035
|
+
result.push(key);
|
|
5036
|
+
}
|
|
5037
|
+
}
|
|
5038
|
+
return result;
|
|
5039
|
+
}
|
|
5040
|
+
|
|
5041
|
+
_baseKeys = baseKeys;
|
|
5042
|
+
return _baseKeys;
|
|
3126
5043
|
}
|
|
3127
5044
|
|
|
3128
|
-
var
|
|
5045
|
+
var isArrayLike_1;
|
|
5046
|
+
var hasRequiredIsArrayLike;
|
|
5047
|
+
|
|
5048
|
+
function requireIsArrayLike () {
|
|
5049
|
+
if (hasRequiredIsArrayLike) return isArrayLike_1;
|
|
5050
|
+
hasRequiredIsArrayLike = 1;
|
|
5051
|
+
var isFunction = requireIsFunction(),
|
|
5052
|
+
isLength = requireIsLength();
|
|
5053
|
+
|
|
5054
|
+
/**
|
|
5055
|
+
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
5056
|
+
* not a function and has a `value.length` that's an integer greater than or
|
|
5057
|
+
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
|
5058
|
+
*
|
|
5059
|
+
* @static
|
|
5060
|
+
* @memberOf _
|
|
5061
|
+
* @since 4.0.0
|
|
5062
|
+
* @category Lang
|
|
5063
|
+
* @param {*} value The value to check.
|
|
5064
|
+
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
|
5065
|
+
* @example
|
|
5066
|
+
*
|
|
5067
|
+
* _.isArrayLike([1, 2, 3]);
|
|
5068
|
+
* // => true
|
|
5069
|
+
*
|
|
5070
|
+
* _.isArrayLike(document.body.children);
|
|
5071
|
+
* // => true
|
|
5072
|
+
*
|
|
5073
|
+
* _.isArrayLike('abc');
|
|
5074
|
+
* // => true
|
|
5075
|
+
*
|
|
5076
|
+
* _.isArrayLike(_.noop);
|
|
5077
|
+
* // => false
|
|
5078
|
+
*/
|
|
5079
|
+
function isArrayLike(value) {
|
|
5080
|
+
return value != null && isLength(value.length) && !isFunction(value);
|
|
5081
|
+
}
|
|
5082
|
+
|
|
5083
|
+
isArrayLike_1 = isArrayLike;
|
|
5084
|
+
return isArrayLike_1;
|
|
5085
|
+
}
|
|
5086
|
+
|
|
5087
|
+
var keys_1;
|
|
5088
|
+
var hasRequiredKeys;
|
|
5089
|
+
|
|
5090
|
+
function requireKeys () {
|
|
5091
|
+
if (hasRequiredKeys) return keys_1;
|
|
5092
|
+
hasRequiredKeys = 1;
|
|
5093
|
+
var arrayLikeKeys = require_arrayLikeKeys(),
|
|
5094
|
+
baseKeys = require_baseKeys(),
|
|
5095
|
+
isArrayLike = requireIsArrayLike();
|
|
5096
|
+
|
|
5097
|
+
/**
|
|
5098
|
+
* Creates an array of the own enumerable property names of `object`.
|
|
5099
|
+
*
|
|
5100
|
+
* **Note:** Non-object values are coerced to objects. See the
|
|
5101
|
+
* [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
5102
|
+
* for more details.
|
|
5103
|
+
*
|
|
5104
|
+
* @static
|
|
5105
|
+
* @since 0.1.0
|
|
5106
|
+
* @memberOf _
|
|
5107
|
+
* @category Object
|
|
5108
|
+
* @param {Object} object The object to query.
|
|
5109
|
+
* @returns {Array} Returns the array of property names.
|
|
5110
|
+
* @example
|
|
5111
|
+
*
|
|
5112
|
+
* function Foo() {
|
|
5113
|
+
* this.a = 1;
|
|
5114
|
+
* this.b = 2;
|
|
5115
|
+
* }
|
|
5116
|
+
*
|
|
5117
|
+
* Foo.prototype.c = 3;
|
|
5118
|
+
*
|
|
5119
|
+
* _.keys(new Foo);
|
|
5120
|
+
* // => ['a', 'b'] (iteration order is not guaranteed)
|
|
5121
|
+
*
|
|
5122
|
+
* _.keys('hi');
|
|
5123
|
+
* // => ['0', '1']
|
|
5124
|
+
*/
|
|
5125
|
+
function keys(object) {
|
|
5126
|
+
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
5127
|
+
}
|
|
5128
|
+
|
|
5129
|
+
keys_1 = keys;
|
|
5130
|
+
return keys_1;
|
|
5131
|
+
}
|
|
5132
|
+
|
|
5133
|
+
var values_1;
|
|
5134
|
+
var hasRequiredValues;
|
|
5135
|
+
|
|
5136
|
+
function requireValues () {
|
|
5137
|
+
if (hasRequiredValues) return values_1;
|
|
5138
|
+
hasRequiredValues = 1;
|
|
5139
|
+
var baseValues = require_baseValues(),
|
|
5140
|
+
keys = requireKeys();
|
|
5141
|
+
|
|
5142
|
+
/**
|
|
5143
|
+
* Creates an array of the own enumerable string keyed property values of `object`.
|
|
5144
|
+
*
|
|
5145
|
+
* **Note:** Non-object values are coerced to objects.
|
|
5146
|
+
*
|
|
5147
|
+
* @static
|
|
5148
|
+
* @since 0.1.0
|
|
5149
|
+
* @memberOf _
|
|
5150
|
+
* @category Object
|
|
5151
|
+
* @param {Object} object The object to query.
|
|
5152
|
+
* @returns {Array} Returns the array of property values.
|
|
5153
|
+
* @example
|
|
5154
|
+
*
|
|
5155
|
+
* function Foo() {
|
|
5156
|
+
* this.a = 1;
|
|
5157
|
+
* this.b = 2;
|
|
5158
|
+
* }
|
|
5159
|
+
*
|
|
5160
|
+
* Foo.prototype.c = 3;
|
|
5161
|
+
*
|
|
5162
|
+
* _.values(new Foo);
|
|
5163
|
+
* // => [1, 2] (iteration order is not guaranteed)
|
|
5164
|
+
*
|
|
5165
|
+
* _.values('hi');
|
|
5166
|
+
* // => ['h', 'i']
|
|
5167
|
+
*/
|
|
5168
|
+
function values(object) {
|
|
5169
|
+
return object == null ? [] : baseValues(object, keys(object));
|
|
5170
|
+
}
|
|
5171
|
+
|
|
5172
|
+
values_1 = values;
|
|
5173
|
+
return values_1;
|
|
5174
|
+
}
|
|
5175
|
+
|
|
5176
|
+
var _baseShuffle;
|
|
5177
|
+
var hasRequired_baseShuffle;
|
|
5178
|
+
|
|
5179
|
+
function require_baseShuffle () {
|
|
5180
|
+
if (hasRequired_baseShuffle) return _baseShuffle;
|
|
5181
|
+
hasRequired_baseShuffle = 1;
|
|
5182
|
+
var shuffleSelf = require_shuffleSelf(),
|
|
5183
|
+
values = requireValues();
|
|
5184
|
+
|
|
5185
|
+
/**
|
|
5186
|
+
* The base implementation of `_.shuffle`.
|
|
5187
|
+
*
|
|
5188
|
+
* @private
|
|
5189
|
+
* @param {Array|Object} collection The collection to shuffle.
|
|
5190
|
+
* @returns {Array} Returns the new shuffled array.
|
|
5191
|
+
*/
|
|
5192
|
+
function baseShuffle(collection) {
|
|
5193
|
+
return shuffleSelf(values(collection));
|
|
5194
|
+
}
|
|
5195
|
+
|
|
5196
|
+
_baseShuffle = baseShuffle;
|
|
5197
|
+
return _baseShuffle;
|
|
5198
|
+
}
|
|
5199
|
+
|
|
5200
|
+
var shuffle_1;
|
|
5201
|
+
var hasRequiredShuffle;
|
|
5202
|
+
|
|
5203
|
+
function requireShuffle () {
|
|
5204
|
+
if (hasRequiredShuffle) return shuffle_1;
|
|
5205
|
+
hasRequiredShuffle = 1;
|
|
5206
|
+
var arrayShuffle = require_arrayShuffle(),
|
|
5207
|
+
baseShuffle = require_baseShuffle(),
|
|
5208
|
+
isArray = requireIsArray();
|
|
5209
|
+
|
|
5210
|
+
/**
|
|
5211
|
+
* Creates an array of shuffled values, using a version of the
|
|
5212
|
+
* [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
|
|
5213
|
+
*
|
|
5214
|
+
* @static
|
|
5215
|
+
* @memberOf _
|
|
5216
|
+
* @since 0.1.0
|
|
5217
|
+
* @category Collection
|
|
5218
|
+
* @param {Array|Object} collection The collection to shuffle.
|
|
5219
|
+
* @returns {Array} Returns the new shuffled array.
|
|
5220
|
+
* @example
|
|
5221
|
+
*
|
|
5222
|
+
* _.shuffle([1, 2, 3, 4]);
|
|
5223
|
+
* // => [4, 1, 3, 2]
|
|
5224
|
+
*/
|
|
5225
|
+
function shuffle(collection) {
|
|
5226
|
+
var func = isArray(collection) ? arrayShuffle : baseShuffle;
|
|
5227
|
+
return func(collection);
|
|
5228
|
+
}
|
|
5229
|
+
|
|
5230
|
+
shuffle_1 = shuffle;
|
|
5231
|
+
return shuffle_1;
|
|
5232
|
+
}
|
|
5233
|
+
|
|
5234
|
+
var shuffleExports = requireShuffle();
|
|
5235
|
+
var shuffle = /*@__PURE__*/getDefaultExportFromCjs(shuffleExports);
|
|
5236
|
+
|
|
5237
|
+
var _DataView;
|
|
5238
|
+
var hasRequired_DataView;
|
|
5239
|
+
|
|
5240
|
+
function require_DataView () {
|
|
5241
|
+
if (hasRequired_DataView) return _DataView;
|
|
5242
|
+
hasRequired_DataView = 1;
|
|
5243
|
+
var getNative = require_getNative(),
|
|
5244
|
+
root = require_root();
|
|
5245
|
+
|
|
5246
|
+
/* Built-in method references that are verified to be native. */
|
|
5247
|
+
var DataView = getNative(root, 'DataView');
|
|
5248
|
+
|
|
5249
|
+
_DataView = DataView;
|
|
5250
|
+
return _DataView;
|
|
5251
|
+
}
|
|
5252
|
+
|
|
5253
|
+
var _Promise;
|
|
5254
|
+
var hasRequired_Promise;
|
|
5255
|
+
|
|
5256
|
+
function require_Promise () {
|
|
5257
|
+
if (hasRequired_Promise) return _Promise;
|
|
5258
|
+
hasRequired_Promise = 1;
|
|
5259
|
+
var getNative = require_getNative(),
|
|
5260
|
+
root = require_root();
|
|
5261
|
+
|
|
5262
|
+
/* Built-in method references that are verified to be native. */
|
|
5263
|
+
var Promise = getNative(root, 'Promise');
|
|
5264
|
+
|
|
5265
|
+
_Promise = Promise;
|
|
5266
|
+
return _Promise;
|
|
5267
|
+
}
|
|
5268
|
+
|
|
5269
|
+
var _Set;
|
|
5270
|
+
var hasRequired_Set;
|
|
5271
|
+
|
|
5272
|
+
function require_Set () {
|
|
5273
|
+
if (hasRequired_Set) return _Set;
|
|
5274
|
+
hasRequired_Set = 1;
|
|
5275
|
+
var getNative = require_getNative(),
|
|
5276
|
+
root = require_root();
|
|
5277
|
+
|
|
5278
|
+
/* Built-in method references that are verified to be native. */
|
|
5279
|
+
var Set = getNative(root, 'Set');
|
|
5280
|
+
|
|
5281
|
+
_Set = Set;
|
|
5282
|
+
return _Set;
|
|
5283
|
+
}
|
|
5284
|
+
|
|
5285
|
+
var _WeakMap;
|
|
5286
|
+
var hasRequired_WeakMap;
|
|
5287
|
+
|
|
5288
|
+
function require_WeakMap () {
|
|
5289
|
+
if (hasRequired_WeakMap) return _WeakMap;
|
|
5290
|
+
hasRequired_WeakMap = 1;
|
|
5291
|
+
var getNative = require_getNative(),
|
|
5292
|
+
root = require_root();
|
|
5293
|
+
|
|
5294
|
+
/* Built-in method references that are verified to be native. */
|
|
5295
|
+
var WeakMap = getNative(root, 'WeakMap');
|
|
5296
|
+
|
|
5297
|
+
_WeakMap = WeakMap;
|
|
5298
|
+
return _WeakMap;
|
|
5299
|
+
}
|
|
5300
|
+
|
|
5301
|
+
var _getTag;
|
|
5302
|
+
var hasRequired_getTag;
|
|
5303
|
+
|
|
5304
|
+
function require_getTag () {
|
|
5305
|
+
if (hasRequired_getTag) return _getTag;
|
|
5306
|
+
hasRequired_getTag = 1;
|
|
5307
|
+
var DataView = require_DataView(),
|
|
5308
|
+
Map = require_Map(),
|
|
5309
|
+
Promise = require_Promise(),
|
|
5310
|
+
Set = require_Set(),
|
|
5311
|
+
WeakMap = require_WeakMap(),
|
|
5312
|
+
baseGetTag = require_baseGetTag(),
|
|
5313
|
+
toSource = require_toSource();
|
|
5314
|
+
|
|
5315
|
+
/** `Object#toString` result references. */
|
|
5316
|
+
var mapTag = '[object Map]',
|
|
5317
|
+
objectTag = '[object Object]',
|
|
5318
|
+
promiseTag = '[object Promise]',
|
|
5319
|
+
setTag = '[object Set]',
|
|
5320
|
+
weakMapTag = '[object WeakMap]';
|
|
5321
|
+
|
|
5322
|
+
var dataViewTag = '[object DataView]';
|
|
5323
|
+
|
|
5324
|
+
/** Used to detect maps, sets, and weakmaps. */
|
|
5325
|
+
var dataViewCtorString = toSource(DataView),
|
|
5326
|
+
mapCtorString = toSource(Map),
|
|
5327
|
+
promiseCtorString = toSource(Promise),
|
|
5328
|
+
setCtorString = toSource(Set),
|
|
5329
|
+
weakMapCtorString = toSource(WeakMap);
|
|
5330
|
+
|
|
5331
|
+
/**
|
|
5332
|
+
* Gets the `toStringTag` of `value`.
|
|
5333
|
+
*
|
|
5334
|
+
* @private
|
|
5335
|
+
* @param {*} value The value to query.
|
|
5336
|
+
* @returns {string} Returns the `toStringTag`.
|
|
5337
|
+
*/
|
|
5338
|
+
var getTag = baseGetTag;
|
|
5339
|
+
|
|
5340
|
+
// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
|
|
5341
|
+
if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
|
|
5342
|
+
(Map && getTag(new Map) != mapTag) ||
|
|
5343
|
+
(Promise && getTag(Promise.resolve()) != promiseTag) ||
|
|
5344
|
+
(Set && getTag(new Set) != setTag) ||
|
|
5345
|
+
(WeakMap && getTag(new WeakMap) != weakMapTag)) {
|
|
5346
|
+
getTag = function(value) {
|
|
5347
|
+
var result = baseGetTag(value),
|
|
5348
|
+
Ctor = result == objectTag ? value.constructor : undefined,
|
|
5349
|
+
ctorString = Ctor ? toSource(Ctor) : '';
|
|
5350
|
+
|
|
5351
|
+
if (ctorString) {
|
|
5352
|
+
switch (ctorString) {
|
|
5353
|
+
case dataViewCtorString: return dataViewTag;
|
|
5354
|
+
case mapCtorString: return mapTag;
|
|
5355
|
+
case promiseCtorString: return promiseTag;
|
|
5356
|
+
case setCtorString: return setTag;
|
|
5357
|
+
case weakMapCtorString: return weakMapTag;
|
|
5358
|
+
}
|
|
5359
|
+
}
|
|
5360
|
+
return result;
|
|
5361
|
+
};
|
|
5362
|
+
}
|
|
5363
|
+
|
|
5364
|
+
_getTag = getTag;
|
|
5365
|
+
return _getTag;
|
|
5366
|
+
}
|
|
5367
|
+
|
|
5368
|
+
var isEmpty_1;
|
|
5369
|
+
var hasRequiredIsEmpty;
|
|
5370
|
+
|
|
5371
|
+
function requireIsEmpty () {
|
|
5372
|
+
if (hasRequiredIsEmpty) return isEmpty_1;
|
|
5373
|
+
hasRequiredIsEmpty = 1;
|
|
5374
|
+
var baseKeys = require_baseKeys(),
|
|
5375
|
+
getTag = require_getTag(),
|
|
5376
|
+
isArguments = requireIsArguments(),
|
|
5377
|
+
isArray = requireIsArray(),
|
|
5378
|
+
isArrayLike = requireIsArrayLike(),
|
|
5379
|
+
isBuffer = requireIsBuffer(),
|
|
5380
|
+
isPrototype = require_isPrototype(),
|
|
5381
|
+
isTypedArray = requireIsTypedArray();
|
|
5382
|
+
|
|
5383
|
+
/** `Object#toString` result references. */
|
|
5384
|
+
var mapTag = '[object Map]',
|
|
5385
|
+
setTag = '[object Set]';
|
|
5386
|
+
|
|
5387
|
+
/** Used for built-in method references. */
|
|
5388
|
+
var objectProto = Object.prototype;
|
|
5389
|
+
|
|
5390
|
+
/** Used to check objects for own properties. */
|
|
5391
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
5392
|
+
|
|
5393
|
+
/**
|
|
5394
|
+
* Checks if `value` is an empty object, collection, map, or set.
|
|
5395
|
+
*
|
|
5396
|
+
* Objects are considered empty if they have no own enumerable string keyed
|
|
5397
|
+
* properties.
|
|
5398
|
+
*
|
|
5399
|
+
* Array-like values such as `arguments` objects, arrays, buffers, strings, or
|
|
5400
|
+
* jQuery-like collections are considered empty if they have a `length` of `0`.
|
|
5401
|
+
* Similarly, maps and sets are considered empty if they have a `size` of `0`.
|
|
5402
|
+
*
|
|
5403
|
+
* @static
|
|
5404
|
+
* @memberOf _
|
|
5405
|
+
* @since 0.1.0
|
|
5406
|
+
* @category Lang
|
|
5407
|
+
* @param {*} value The value to check.
|
|
5408
|
+
* @returns {boolean} Returns `true` if `value` is empty, else `false`.
|
|
5409
|
+
* @example
|
|
5410
|
+
*
|
|
5411
|
+
* _.isEmpty(null);
|
|
5412
|
+
* // => true
|
|
5413
|
+
*
|
|
5414
|
+
* _.isEmpty(true);
|
|
5415
|
+
* // => true
|
|
5416
|
+
*
|
|
5417
|
+
* _.isEmpty(1);
|
|
5418
|
+
* // => true
|
|
5419
|
+
*
|
|
5420
|
+
* _.isEmpty([1, 2, 3]);
|
|
5421
|
+
* // => false
|
|
5422
|
+
*
|
|
5423
|
+
* _.isEmpty({ 'a': 1 });
|
|
5424
|
+
* // => false
|
|
5425
|
+
*/
|
|
5426
|
+
function isEmpty(value) {
|
|
5427
|
+
if (value == null) {
|
|
5428
|
+
return true;
|
|
5429
|
+
}
|
|
5430
|
+
if (isArrayLike(value) &&
|
|
5431
|
+
(isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
|
|
5432
|
+
isBuffer(value) || isTypedArray(value) || isArguments(value))) {
|
|
5433
|
+
return !value.length;
|
|
5434
|
+
}
|
|
5435
|
+
var tag = getTag(value);
|
|
5436
|
+
if (tag == mapTag || tag == setTag) {
|
|
5437
|
+
return !value.size;
|
|
5438
|
+
}
|
|
5439
|
+
if (isPrototype(value)) {
|
|
5440
|
+
return !baseKeys(value).length;
|
|
5441
|
+
}
|
|
5442
|
+
for (var key in value) {
|
|
5443
|
+
if (hasOwnProperty.call(value, key)) {
|
|
5444
|
+
return false;
|
|
5445
|
+
}
|
|
5446
|
+
}
|
|
5447
|
+
return true;
|
|
5448
|
+
}
|
|
5449
|
+
|
|
5450
|
+
isEmpty_1 = isEmpty;
|
|
5451
|
+
return isEmpty_1;
|
|
5452
|
+
}
|
|
5453
|
+
|
|
5454
|
+
var isEmptyExports = requireIsEmpty();
|
|
5455
|
+
var isEmpty = /*@__PURE__*/getDefaultExportFromCjs(isEmptyExports);
|
|
5456
|
+
|
|
5457
|
+
const lg = n => console[n].bind(console, 'controller-utils:');
|
|
3129
5458
|
|
|
3130
|
-
// eslint-disable-next-line no-console
|
|
3131
|
-
const lg = (n) => console[n].bind(console, 'controller-utils:');
|
|
3132
5459
|
const debug = lg('debug');
|
|
3133
5460
|
const log = lg('log');
|
|
3134
5461
|
const warn = lg('warn');
|
|
3135
5462
|
const error = lg('error');
|
|
3136
|
-
|
|
3137
|
-
const compact = (arr) => {
|
|
5463
|
+
const compact = arr => {
|
|
3138
5464
|
if (Array.isArray(arr)) {
|
|
3139
|
-
return arr.filter(
|
|
5465
|
+
return arr.filter(v => v !== null && v !== undefined);
|
|
3140
5466
|
}
|
|
5467
|
+
|
|
3141
5468
|
return arr;
|
|
3142
5469
|
};
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
console.error('update session failed for: ', session.id, e),
|
|
3177
|
-
);
|
|
3178
|
-
}
|
|
3179
|
-
} catch (e) {
|
|
3180
|
-
warn('unable to save shuffled order for choices');
|
|
3181
|
-
error(e);
|
|
5470
|
+
const getShuffledChoices = (choices, session, updateSession, choiceKey) => new Promise(resolve => {
|
|
5471
|
+
var _session$data;
|
|
5472
|
+
|
|
5473
|
+
log('updateSession type: ', typeof updateSession);
|
|
5474
|
+
log('session: ', session);
|
|
5475
|
+
const currentShuffled = compact((session == null ? void 0 : (_session$data = session.data) == null ? void 0 : _session$data.shuffledValues) || (session == null ? void 0 : session.shuffledValues) || []);
|
|
5476
|
+
|
|
5477
|
+
if (!session) {
|
|
5478
|
+
// eslint-disable-next-line quotes
|
|
5479
|
+
warn("unable to save shuffled choices because there's no session.");
|
|
5480
|
+
resolve(undefined);
|
|
5481
|
+
} else if (!isEmpty(currentShuffled)) {
|
|
5482
|
+
var _session$data2;
|
|
5483
|
+
|
|
5484
|
+
debug('use shuffledValues to sort the choices...', (_session$data2 = session.data) == null ? void 0 : _session$data2.shuffledValues);
|
|
5485
|
+
resolve(compact(currentShuffled.map(v => choices.find(c => c[choiceKey] === v))));
|
|
5486
|
+
} else {
|
|
5487
|
+
const shuffledChoices = shuffle(choices);
|
|
5488
|
+
|
|
5489
|
+
if (updateSession && typeof updateSession === 'function') {
|
|
5490
|
+
try {
|
|
5491
|
+
//Note: session.id refers to the id of the element within a session
|
|
5492
|
+
const shuffledValues = compact(shuffledChoices.map(c => c[choiceKey]));
|
|
5493
|
+
log('try to save shuffledValues to session...', shuffledValues);
|
|
5494
|
+
log('call updateSession... ', session.id, session.element);
|
|
5495
|
+
|
|
5496
|
+
if (isEmpty(shuffledValues)) {
|
|
5497
|
+
error(`shuffledValues is an empty array? - refusing to call updateSession: shuffledChoices: ${JSON.stringify(shuffledChoices)}, key: ${choiceKey}`);
|
|
5498
|
+
} else {
|
|
5499
|
+
updateSession(session.id, session.element, {
|
|
5500
|
+
shuffledValues
|
|
5501
|
+
}).catch(e => // eslint-disable-next-line no-console
|
|
5502
|
+
console.error('update session failed for: ', session.id, e));
|
|
3182
5503
|
}
|
|
3183
|
-
}
|
|
3184
|
-
warn('unable to save shuffled
|
|
5504
|
+
} catch (e) {
|
|
5505
|
+
warn('unable to save shuffled order for choices');
|
|
5506
|
+
error(e);
|
|
3185
5507
|
}
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
}
|
|
3189
|
-
});
|
|
5508
|
+
} else {
|
|
5509
|
+
warn('unable to save shuffled choices, shuffle will happen every time.');
|
|
5510
|
+
} //save this shuffle to the session for later retrieval
|
|
3190
5511
|
|
|
5512
|
+
|
|
5513
|
+
resolve(shuffledChoices);
|
|
5514
|
+
}
|
|
5515
|
+
});
|
|
3191
5516
|
/**
|
|
3192
5517
|
* If we return:
|
|
3193
5518
|
* - true - that means that the order of the choices will be ordinal (as is created in the configure item)
|
|
@@ -3198,32 +5523,32 @@ const getShuffledChoices = (choices, session, updateSession, choiceKey) =>
|
|
|
3198
5523
|
* @param env - env to check if we should lock order
|
|
3199
5524
|
* @returns {boolean}
|
|
3200
5525
|
*/
|
|
5526
|
+
|
|
3201
5527
|
const lockChoices = (model, session, env) => {
|
|
3202
5528
|
if (model.lockChoiceOrder) {
|
|
3203
5529
|
return true;
|
|
3204
5530
|
}
|
|
3205
5531
|
|
|
3206
|
-
log('lockChoiceOrder: ',
|
|
5532
|
+
log('lockChoiceOrder: ', get(env, ['@pie-element', 'lockChoiceOrder'], false));
|
|
3207
5533
|
|
|
3208
|
-
if (
|
|
5534
|
+
if (get(env, ['@pie-element', 'lockChoiceOrder'], false)) {
|
|
3209
5535
|
return true;
|
|
3210
5536
|
}
|
|
3211
5537
|
|
|
3212
|
-
const role =
|
|
5538
|
+
const role = get(env, 'role', 'student');
|
|
3213
5539
|
|
|
3214
5540
|
if (role === 'instructor') {
|
|
3215
5541
|
// TODO: .. in the future the instructor can toggle between ordinal and shuffled here, so keeping this code until then
|
|
3216
|
-
/*const alreadyShuffled = hasShuffledValues(session);
|
|
3217
5542
|
|
|
3218
|
-
|
|
5543
|
+
/*const alreadyShuffled = hasShuffledValues(session);
|
|
5544
|
+
if (alreadyShuffled) {
|
|
3219
5545
|
return false;
|
|
3220
5546
|
}
|
|
3221
|
-
|
|
3222
|
-
return true;*/
|
|
5547
|
+
return true;*/
|
|
3223
5548
|
return true;
|
|
3224
|
-
}
|
|
5549
|
+
} // here it's a student, so don't lock and it will shuffle if needs be
|
|
5550
|
+
|
|
3225
5551
|
|
|
3226
|
-
// here it's a student, so don't lock and it will shuffle if needs be
|
|
3227
5552
|
return false;
|
|
3228
5553
|
};
|
|
3229
5554
|
|
|
@@ -3340,7 +5665,7 @@ async function model(question, session, env, updateSession) {
|
|
|
3340
5665
|
}
|
|
3341
5666
|
|
|
3342
5667
|
const getScore = (config, session) => {
|
|
3343
|
-
if (!session || isEmpty_1(session)) {
|
|
5668
|
+
if (!session || isEmpty_1$1(session)) {
|
|
3344
5669
|
return 0;
|
|
3345
5670
|
}
|
|
3346
5671
|
|
|
@@ -3376,10 +5701,10 @@ const getScore = (config, session) => {
|
|
|
3376
5701
|
*/
|
|
3377
5702
|
function outcome(model, session, env) {
|
|
3378
5703
|
return new Promise((resolve) => {
|
|
3379
|
-
if (!session || isEmpty_1(session)) {
|
|
5704
|
+
if (!session || isEmpty_1$1(session)) {
|
|
3380
5705
|
resolve({ score: 0, empty: true });
|
|
3381
5706
|
} else {
|
|
3382
|
-
const partialScoringEnabled = enabled(model, env) && model.choiceMode !== 'radio';
|
|
5707
|
+
const partialScoringEnabled = partialScoring.enabled(model, env) && model.choiceMode !== 'radio';
|
|
3383
5708
|
const score = getScore(model, session);
|
|
3384
5709
|
|
|
3385
5710
|
resolve({ score: partialScoringEnabled ? score : score === 1 ? 1 : 0, empty: false });
|
|
@@ -3455,11 +5780,11 @@ const validate = (model = {}, config = {}) => {
|
|
|
3455
5780
|
errors.correctResponse = 'No correct response defined.';
|
|
3456
5781
|
}
|
|
3457
5782
|
|
|
3458
|
-
if (!isEmpty_1(choicesErrors)) {
|
|
5783
|
+
if (!isEmpty_1$1(choicesErrors)) {
|
|
3459
5784
|
errors.choices = choicesErrors;
|
|
3460
5785
|
}
|
|
3461
5786
|
|
|
3462
|
-
if (!isEmpty_1(rationaleErrors)) {
|
|
5787
|
+
if (!isEmpty_1$1(rationaleErrors)) {
|
|
3463
5788
|
errors.rationale = rationaleErrors;
|
|
3464
5789
|
}
|
|
3465
5790
|
|