lodash-rails 4.14.1 → 4.15.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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/lodash/rails/version.rb +1 -1
- data/vendor/assets/javascripts/lodash.core.js +64 -81
- data/vendor/assets/javascripts/lodash.core.min.js +23 -23
- data/vendor/assets/javascripts/lodash.js +397 -271
- data/vendor/assets/javascripts/lodash.min.js +124 -122
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c8cfaf02f025c0237884f7445e04a949a48e1f4
|
4
|
+
data.tar.gz: a337adee730d7851c3eb1f541f4998bd1b070587
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efad0ea319fa7a79b97ead47ba398f476dbf3a934d80045e141dbb06588f5eea535f763f5f68c0d4022769a85bc8fdbaad144f6b37c80bb62b2f4871f8f31a93
|
7
|
+
data.tar.gz: 27424a596c0b6090021039ee5a0c311d33dfe17d8e3ad99d03bc7e342919cdcea5399371b2709267b57bdc837d0cc1a616c4ba42bf51e9e986228868a530d9b9
|
data/README.md
CHANGED
data/lib/lodash/rails/version.rb
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
var undefined;
|
14
14
|
|
15
15
|
/** Used as the semantic version number. */
|
16
|
-
var VERSION = '4.
|
16
|
+
var VERSION = '4.15.0';
|
17
17
|
|
18
18
|
/** Used as the `TypeError` message for "Functions" methods. */
|
19
19
|
var FUNC_ERROR_TEXT = 'Expected a function';
|
@@ -92,7 +92,7 @@
|
|
92
92
|
* support for iteratee shorthands.
|
93
93
|
*
|
94
94
|
* @private
|
95
|
-
* @param {Array} array The array to
|
95
|
+
* @param {Array} array The array to inspect.
|
96
96
|
* @param {Function} predicate The function invoked per iteration.
|
97
97
|
* @param {number} fromIndex The index to search from.
|
98
98
|
* @param {boolean} [fromRight] Specify iterating from right to left.
|
@@ -195,7 +195,7 @@
|
|
195
195
|
}
|
196
196
|
|
197
197
|
/**
|
198
|
-
* Creates a function that invokes `func` with its
|
198
|
+
* Creates a unary function that invokes `func` with its argument transformed.
|
199
199
|
*
|
200
200
|
* @private
|
201
201
|
* @param {Function} func The function to wrap.
|
@@ -222,7 +222,7 @@
|
|
222
222
|
|
223
223
|
/**
|
224
224
|
* Used to resolve the
|
225
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/
|
225
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
226
226
|
* of values.
|
227
227
|
*/
|
228
228
|
var objectToString = objectProto.toString;
|
@@ -236,7 +236,7 @@
|
|
236
236
|
|
237
237
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
238
238
|
var nativeIsFinite = root.isFinite,
|
239
|
-
nativeKeys = Object.keys,
|
239
|
+
nativeKeys = overArg(Object.keys, Object),
|
240
240
|
nativeMax = Math.max;
|
241
241
|
|
242
242
|
/*------------------------------------------------------------------------*/
|
@@ -402,7 +402,7 @@
|
|
402
402
|
|
403
403
|
/**
|
404
404
|
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
405
|
-
* using [`SameValueZero`](http://ecma-international.org/ecma-262/
|
405
|
+
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
406
406
|
* for equality comparisons.
|
407
407
|
*
|
408
408
|
* @private
|
@@ -438,7 +438,7 @@
|
|
438
438
|
* @param {Function} func The function to delay.
|
439
439
|
* @param {number} wait The number of milliseconds to delay invocation.
|
440
440
|
* @param {Array} args The arguments to provide to `func`.
|
441
|
-
* @returns {number} Returns the timer id.
|
441
|
+
* @returns {number|Object} Returns the timer id or timeout object.
|
442
442
|
*/
|
443
443
|
function baseDelay(func, wait, args) {
|
444
444
|
if (typeof func != 'function') {
|
@@ -746,34 +746,6 @@
|
|
746
746
|
return (typeof func == 'object' ? baseMatches : baseProperty)(func);
|
747
747
|
}
|
748
748
|
|
749
|
-
/**
|
750
|
-
* The base implementation of `_.keys` which doesn't skip the constructor
|
751
|
-
* property of prototypes or treat sparse arrays as dense.
|
752
|
-
*
|
753
|
-
* @private
|
754
|
-
* @param {Object} object The object to query.
|
755
|
-
* @returns {Array} Returns the array of property names.
|
756
|
-
*/
|
757
|
-
var baseKeys = overArg(nativeKeys, Object);
|
758
|
-
|
759
|
-
/**
|
760
|
-
* The base implementation of `_.keysIn` which doesn't skip the constructor
|
761
|
-
* property of prototypes or treat sparse arrays as dense.
|
762
|
-
*
|
763
|
-
* @private
|
764
|
-
* @param {Object} object The object to query.
|
765
|
-
* @returns {Array} Returns the array of property names.
|
766
|
-
*/
|
767
|
-
function baseKeysIn(object) {
|
768
|
-
object = object == null ? object : Object(object);
|
769
|
-
|
770
|
-
var result = [];
|
771
|
-
for (var key in object) {
|
772
|
-
result.push(key);
|
773
|
-
}
|
774
|
-
return result;
|
775
|
-
}
|
776
|
-
|
777
749
|
/**
|
778
750
|
* The base implementation of `_.lt` which doesn't coerce arguments.
|
779
751
|
*
|
@@ -813,7 +785,7 @@
|
|
813
785
|
* @returns {Function} Returns the new spec function.
|
814
786
|
*/
|
815
787
|
function baseMatches(source) {
|
816
|
-
var props =
|
788
|
+
var props = nativeKeys(source);
|
817
789
|
return function(object) {
|
818
790
|
var length = props.length;
|
819
791
|
if (object == null) {
|
@@ -1116,7 +1088,7 @@
|
|
1116
1088
|
function createCtor(Ctor) {
|
1117
1089
|
return function() {
|
1118
1090
|
// Use a `switch` statement to work with class constructors. See
|
1119
|
-
// http://ecma-international.org/ecma-262/
|
1091
|
+
// http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
|
1120
1092
|
// for more details.
|
1121
1093
|
var args = arguments;
|
1122
1094
|
var thisBinding = baseCreate(Ctor.prototype),
|
@@ -1281,7 +1253,7 @@
|
|
1281
1253
|
case regexpTag:
|
1282
1254
|
case stringTag:
|
1283
1255
|
// Coerce regexes to strings and treat strings, primitives and objects,
|
1284
|
-
// as equal. See http://www.ecma-international.org/ecma-262/
|
1256
|
+
// as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
|
1285
1257
|
// for more details.
|
1286
1258
|
return object == (other + '');
|
1287
1259
|
|
@@ -1354,19 +1326,6 @@
|
|
1354
1326
|
return result;
|
1355
1327
|
}
|
1356
1328
|
|
1357
|
-
/**
|
1358
|
-
* Gets the "length" property value of `object`.
|
1359
|
-
*
|
1360
|
-
* **Note:** This function is used to avoid a
|
1361
|
-
* [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792) that affects
|
1362
|
-
* Safari on at least iOS 8.1-8.3 ARM64.
|
1363
|
-
*
|
1364
|
-
* @private
|
1365
|
-
* @param {Object} object The object to query.
|
1366
|
-
* @returns {*} Returns the "length" value.
|
1367
|
-
*/
|
1368
|
-
var getLength = baseProperty('length');
|
1369
|
-
|
1370
1329
|
/**
|
1371
1330
|
* Checks if `value` is a flattenable `arguments` object or array.
|
1372
1331
|
*
|
@@ -1378,6 +1337,25 @@
|
|
1378
1337
|
return isArray(value) || isArguments(value);
|
1379
1338
|
}
|
1380
1339
|
|
1340
|
+
/**
|
1341
|
+
* This function is like
|
1342
|
+
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
1343
|
+
* except that it includes inherited enumerable properties.
|
1344
|
+
*
|
1345
|
+
* @private
|
1346
|
+
* @param {Object} object The object to query.
|
1347
|
+
* @returns {Array} Returns the array of property names.
|
1348
|
+
*/
|
1349
|
+
function nativeKeysIn(object) {
|
1350
|
+
var result = [];
|
1351
|
+
if (object != null) {
|
1352
|
+
for (var key in Object(object)) {
|
1353
|
+
result.push(key);
|
1354
|
+
}
|
1355
|
+
}
|
1356
|
+
return result;
|
1357
|
+
}
|
1358
|
+
|
1381
1359
|
/**
|
1382
1360
|
* Converts `value` to a string key if it's not a string or symbol.
|
1383
1361
|
*
|
@@ -1452,7 +1430,7 @@
|
|
1452
1430
|
* @memberOf _
|
1453
1431
|
* @since 1.1.0
|
1454
1432
|
* @category Array
|
1455
|
-
* @param {Array} array The array to
|
1433
|
+
* @param {Array} array The array to inspect.
|
1456
1434
|
* @param {Function} [predicate=_.identity]
|
1457
1435
|
* The function invoked per iteration.
|
1458
1436
|
* @param {number} [fromIndex=0] The index to search from.
|
@@ -1554,7 +1532,7 @@
|
|
1554
1532
|
|
1555
1533
|
/**
|
1556
1534
|
* Gets the index at which the first occurrence of `value` is found in `array`
|
1557
|
-
* using [`SameValueZero`](http://ecma-international.org/ecma-262/
|
1535
|
+
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
1558
1536
|
* for equality comparisons. If `fromIndex` is negative, it's used as the
|
1559
1537
|
* offset from the end of `array`.
|
1560
1538
|
*
|
@@ -1562,7 +1540,7 @@
|
|
1562
1540
|
* @memberOf _
|
1563
1541
|
* @since 0.1.0
|
1564
1542
|
* @category Array
|
1565
|
-
* @param {Array} array The array to
|
1543
|
+
* @param {Array} array The array to inspect.
|
1566
1544
|
* @param {*} value The value to search for.
|
1567
1545
|
* @param {number} [fromIndex=0] The index to search from.
|
1568
1546
|
* @returns {number} Returns the index of the matched value, else `-1`.
|
@@ -1784,6 +1762,11 @@
|
|
1784
1762
|
* Iteration is stopped once `predicate` returns falsey. The predicate is
|
1785
1763
|
* invoked with three arguments: (value, index|key, collection).
|
1786
1764
|
*
|
1765
|
+
* **Note:** This method returns `true` for
|
1766
|
+
* [empty collections](https://en.wikipedia.org/wiki/Empty_set) because
|
1767
|
+
* [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of
|
1768
|
+
* elements of empty collections.
|
1769
|
+
*
|
1787
1770
|
* @static
|
1788
1771
|
* @memberOf _
|
1789
1772
|
* @since 0.1.0
|
@@ -1872,7 +1855,7 @@
|
|
1872
1855
|
* @memberOf _
|
1873
1856
|
* @since 0.1.0
|
1874
1857
|
* @category Collection
|
1875
|
-
* @param {Array|Object} collection The collection to
|
1858
|
+
* @param {Array|Object} collection The collection to inspect.
|
1876
1859
|
* @param {Function} [predicate=_.identity]
|
1877
1860
|
* The function invoked per iteration.
|
1878
1861
|
* @param {number} [fromIndex=0] The index to search from.
|
@@ -2031,7 +2014,7 @@
|
|
2031
2014
|
* @memberOf _
|
2032
2015
|
* @since 0.1.0
|
2033
2016
|
* @category Collection
|
2034
|
-
* @param {Array|Object} collection The collection to inspect.
|
2017
|
+
* @param {Array|Object|string} collection The collection to inspect.
|
2035
2018
|
* @returns {number} Returns the collection size.
|
2036
2019
|
* @example
|
2037
2020
|
*
|
@@ -2048,7 +2031,7 @@
|
|
2048
2031
|
if (collection == null) {
|
2049
2032
|
return 0;
|
2050
2033
|
}
|
2051
|
-
collection = isArrayLike(collection) ? collection :
|
2034
|
+
collection = isArrayLike(collection) ? collection : nativeKeys(collection);
|
2052
2035
|
return collection.length;
|
2053
2036
|
}
|
2054
2037
|
|
@@ -2342,12 +2325,12 @@
|
|
2342
2325
|
if (!isObject(value)) {
|
2343
2326
|
return value;
|
2344
2327
|
}
|
2345
|
-
return isArray(value) ? copyArray(value) : copyObject(value,
|
2328
|
+
return isArray(value) ? copyArray(value) : copyObject(value, nativeKeys(value));
|
2346
2329
|
}
|
2347
2330
|
|
2348
2331
|
/**
|
2349
2332
|
* Performs a
|
2350
|
-
* [`SameValueZero`](http://ecma-international.org/ecma-262/
|
2333
|
+
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
2351
2334
|
* comparison between two values to determine if they are equivalent.
|
2352
2335
|
*
|
2353
2336
|
* @static
|
@@ -2400,7 +2383,7 @@
|
|
2400
2383
|
* // => false
|
2401
2384
|
*/
|
2402
2385
|
function isArguments(value) {
|
2403
|
-
// Safari 8.1
|
2386
|
+
// Safari 8.1 makes `arguments.callee` enumerable in strict mode.
|
2404
2387
|
return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&
|
2405
2388
|
(!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);
|
2406
2389
|
}
|
@@ -2456,7 +2439,7 @@
|
|
2456
2439
|
* // => false
|
2457
2440
|
*/
|
2458
2441
|
function isArrayLike(value) {
|
2459
|
-
return value != null && isLength(
|
2442
|
+
return value != null && isLength(value.length) && !isFunction(value);
|
2460
2443
|
}
|
2461
2444
|
|
2462
2445
|
/**
|
@@ -2568,7 +2551,7 @@
|
|
2568
2551
|
isFunction(value.splice) || isArguments(value))) {
|
2569
2552
|
return !value.length;
|
2570
2553
|
}
|
2571
|
-
return !
|
2554
|
+
return !nativeKeys(value).length;
|
2572
2555
|
}
|
2573
2556
|
|
2574
2557
|
/**
|
@@ -2587,8 +2570,7 @@
|
|
2587
2570
|
* @category Lang
|
2588
2571
|
* @param {*} value The value to compare.
|
2589
2572
|
* @param {*} other The other value to compare.
|
2590
|
-
* @returns {boolean} Returns `true` if the values are equivalent,
|
2591
|
-
* else `false`.
|
2573
|
+
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
2592
2574
|
* @example
|
2593
2575
|
*
|
2594
2576
|
* var object = { 'a': 1 };
|
@@ -2615,8 +2597,7 @@
|
|
2615
2597
|
* @since 0.1.0
|
2616
2598
|
* @category Lang
|
2617
2599
|
* @param {*} value The value to check.
|
2618
|
-
* @returns {boolean} Returns `true` if `value` is a finite number,
|
2619
|
-
* else `false`.
|
2600
|
+
* @returns {boolean} Returns `true` if `value` is a finite number, else `false`.
|
2620
2601
|
* @example
|
2621
2602
|
*
|
2622
2603
|
* _.isFinite(3);
|
@@ -2654,8 +2635,7 @@
|
|
2654
2635
|
*/
|
2655
2636
|
function isFunction(value) {
|
2656
2637
|
// The use of `Object#toString` avoids issues with the `typeof` operator
|
2657
|
-
// in Safari 8 which returns 'object' for typed array and
|
2658
|
-
// and PhantomJS 1.9 which returns 'function' for `NodeList` instances.
|
2638
|
+
// in Safari 8-9 which returns 'object' for typed array and other constructors.
|
2659
2639
|
var tag = isObject(value) ? objectToString.call(value) : '';
|
2660
2640
|
return tag == funcTag || tag == genTag;
|
2661
2641
|
}
|
@@ -2663,16 +2643,15 @@
|
|
2663
2643
|
/**
|
2664
2644
|
* Checks if `value` is a valid array-like length.
|
2665
2645
|
*
|
2666
|
-
* **Note:** This
|
2667
|
-
* [`ToLength`](http://ecma-international.org/ecma-262/
|
2646
|
+
* **Note:** This method is loosely based on
|
2647
|
+
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
2668
2648
|
*
|
2669
2649
|
* @static
|
2670
2650
|
* @memberOf _
|
2671
2651
|
* @since 4.0.0
|
2672
2652
|
* @category Lang
|
2673
2653
|
* @param {*} value The value to check.
|
2674
|
-
* @returns {boolean} Returns `true` if `value` is a valid length,
|
2675
|
-
* else `false`.
|
2654
|
+
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
2676
2655
|
* @example
|
2677
2656
|
*
|
2678
2657
|
* _.isLength(3);
|
@@ -2694,7 +2673,7 @@
|
|
2694
2673
|
|
2695
2674
|
/**
|
2696
2675
|
* Checks if `value` is the
|
2697
|
-
* [language type](http://www.ecma-international.org/ecma-262/
|
2676
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
2698
2677
|
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
2699
2678
|
*
|
2700
2679
|
* @static
|
@@ -2933,7 +2912,7 @@
|
|
2933
2912
|
* Converts `value` to an integer.
|
2934
2913
|
*
|
2935
2914
|
* **Note:** This method is loosely based on
|
2936
|
-
* [`ToInteger`](http://www.ecma-international.org/ecma-262/
|
2915
|
+
* [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
|
2937
2916
|
*
|
2938
2917
|
* @static
|
2939
2918
|
* @memberOf _
|
@@ -3045,7 +3024,7 @@
|
|
3045
3024
|
* // => { 'a': 1, 'c': 3 }
|
3046
3025
|
*/
|
3047
3026
|
var assign = createAssigner(function(object, source) {
|
3048
|
-
copyObject(source,
|
3027
|
+
copyObject(source, nativeKeys(source), object);
|
3049
3028
|
});
|
3050
3029
|
|
3051
3030
|
/**
|
@@ -3080,7 +3059,7 @@
|
|
3080
3059
|
* // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }
|
3081
3060
|
*/
|
3082
3061
|
var assignIn = createAssigner(function(object, source) {
|
3083
|
-
copyObject(source,
|
3062
|
+
copyObject(source, nativeKeysIn(source), object);
|
3084
3063
|
});
|
3085
3064
|
|
3086
3065
|
/**
|
@@ -3216,7 +3195,7 @@
|
|
3216
3195
|
* Creates an array of the own enumerable property names of `object`.
|
3217
3196
|
*
|
3218
3197
|
* **Note:** Non-object values are coerced to objects. See the
|
3219
|
-
* [ES spec](http://ecma-international.org/ecma-262/
|
3198
|
+
* [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
3220
3199
|
* for more details.
|
3221
3200
|
*
|
3222
3201
|
* @static
|
@@ -3240,7 +3219,7 @@
|
|
3240
3219
|
* _.keys('hi');
|
3241
3220
|
* // => ['0', '1']
|
3242
3221
|
*/
|
3243
|
-
var keys =
|
3222
|
+
var keys = nativeKeys;
|
3244
3223
|
|
3245
3224
|
/**
|
3246
3225
|
* Creates an array of the own and inherited enumerable property names of `object`.
|
@@ -3265,7 +3244,7 @@
|
|
3265
3244
|
* _.keysIn(new Foo);
|
3266
3245
|
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
|
3267
3246
|
*/
|
3268
|
-
var keysIn =
|
3247
|
+
var keysIn = nativeKeysIn;
|
3269
3248
|
|
3270
3249
|
/**
|
3271
3250
|
* Creates an object composed of the picked `object` properties.
|
@@ -3469,8 +3448,12 @@
|
|
3469
3448
|
* object and `source`, returning `true` if the given object has equivalent
|
3470
3449
|
* property values, else `false`.
|
3471
3450
|
*
|
3472
|
-
* **Note:** The created function
|
3473
|
-
*
|
3451
|
+
* **Note:** The created function is equivalent to `_.isMatch` with `source`
|
3452
|
+
* partially applied.
|
3453
|
+
*
|
3454
|
+
* Partial comparisons will match empty array and empty object `source`
|
3455
|
+
* values against any array or object value, respectively. See `_.isEqual`
|
3456
|
+
* for a list of supported value comparisons.
|
3474
3457
|
*
|
3475
3458
|
* @static
|
3476
3459
|
* @memberOf _
|
@@ -3,26 +3,26 @@
|
|
3
3
|
* lodash (Custom Build) /license | Underscore.js 1.8.3 underscorejs.org/LICENSE
|
4
4
|
* Build: `lodash core -o ./dist/lodash.core.js`
|
5
5
|
*/
|
6
|
-
;(function(){function n(n
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
f=
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
return
|
17
|
-
|
18
|
-
func:u,args:arguments,thisArg:
|
19
|
-
"<":"<",">":">",'"':""","'":"'","`":"`"}),fn=Array.prototype,an=Object.prototype,ln=an.hasOwnProperty,pn=0,sn=an.toString,hn=un._,vn=Object.create,bn=an.propertyIsEnumerable,yn=un.isFinite,gn=Object.keys,_n=Math.max;
|
20
|
-
e=e(t);for(var i=e.length;i--;){var c=e[n?i:++u];if(false===r(o[c],c,o))break}return t}}(),mn=
|
21
|
-
return
|
22
|
-
for(var
|
23
|
-
return function(){return!n.apply(this,arguments)}},
|
24
|
-
break n}}r=0}return r||n.index-t.index}),
|
25
|
-
|
26
|
-
},
|
27
|
-
var t=++pn;return Q(n)+t},
|
28
|
-
}return this[r](function(r){return t.apply(
|
6
|
+
;(function(){function n(n,t){return n.push.apply(n,t),n}function t(n){return function(t){return null==t?Z:t[n]}}function r(n,t,r,e,u){return u(n,function(n,u,o){r=e?(e=false,n):t(r,n,u,o)}),r}function e(n,t){return d(t,function(t){return n[t]})}function u(n){return n instanceof o?n:new o(n)}function o(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t}function i(n,t,r,e){return n===Z||J(n,an[r])&&!ln.call(e,r)?t:n}function c(n){return V(n)?vn(n):{}}function f(n,t,r){if(typeof n!="function")throw new TypeError("Expected a function");
|
7
|
+
return setTimeout(function(){n.apply(Z,r)},t)}function a(n,t){var r=true;return jn(n,function(n,e,u){return r=!!t(n,e,u)}),r}function l(n,t,r){for(var e=-1,u=n.length;++e<u;){var o=n[e],i=t(o);if(null!=i&&(c===Z?i===i:r(i,c)))var c=i,f=o}return f}function p(n,t){var r=[];return jn(n,function(n,e,u){t(n,e,u)&&r.push(n)}),r}function s(t,r,e,u,o){var i=-1,c=t.length;for(e||(e=D),o||(o=[]);++i<c;){var f=t[i];0<r&&e(f)?1<r?s(f,r-1,e,u,o):n(o,f):u||(o[o.length]=f)}return o}function h(n,t){return n&&dn(n,t,Rn);
|
8
|
+
}function v(n,t){return p(t,function(t){return U(n[t])})}function b(n,t){return n>t}function y(n,t,r,e,u){return n===t||(null==n||null==t||!V(n)&&!H(t)?n!==n&&t!==t:g(n,t,y,r,e,u))}function g(n,t,r,e,u,o){var i=wn(n),c=wn(t),f="[object Array]",a="[object Array]";i||(f=sn.call(n),f="[object Arguments]"==f?"[object Object]":f),c||(a=sn.call(t),a="[object Arguments]"==a?"[object Object]":a);var l="[object Object]"==f&&true,c="[object Object]"==a&&true,a=f==a;o||(o=[]);var p=On(o,function(t){return t[0]==n;
|
9
|
+
}),s=On(o,function(n){return n[0]==t});if(p&&s)return p[1]==t;if(o.push([n,t]),o.push([t,n]),a&&!l){if(i)r=B(n,t,r,e,u,o);else n:{switch(f){case"[object Boolean]":case"[object Date]":case"[object Number]":r=J(+n,+t);break n;case"[object Error]":r=n.name==t.name&&n.message==t.message;break n;case"[object RegExp]":case"[object String]":r=n==t+"";break n}r=false}return o.pop(),r}return 2&u||(i=l&&ln.call(n,"__wrapped__"),f=c&&ln.call(t,"__wrapped__"),!i&&!f)?!!a&&(r=R(n,t,r,e,u,o),o.pop(),r):(i=i?n.value():n,
|
10
|
+
f=f?t.value():t,r=r(i,f,e,u,o),o.pop(),r)}function _(n){return typeof n=="function"?n:null==n?X:(typeof n=="object"?m:t)(n)}function j(n,t){return n<t}function d(n,t){var r=-1,e=P(n)?Array(n.length):[];return jn(n,function(n,u,o){e[++r]=t(n,u,o)}),e}function m(n){var t=gn(n);return function(r){var e=t.length;if(null==r)return!e;for(r=Object(r);e--;){var u=t[e];if(!(u in r&&y(n[u],r[u],Z,3)))return false}return true}}function O(n,t){return n=Object(n),C(t,function(t,r){return r in n&&(t[r]=n[r]),t},{})}function x(n){
|
11
|
+
var t;return t=_n(t===Z?n.length-1:t,0),function(){for(var r=arguments,e=-1,u=_n(r.length-t,0),o=Array(u);++e<u;)o[e]=r[t+e];for(e=-1,u=Array(t+1);++e<t;)u[e]=r[e];return u[t]=o,n.apply(this,u)}}function A(n,t,r){var e=-1,u=n.length;for(0>t&&(t=-t>u?0:u+t),r=r>u?u:r,0>r&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0,r=Array(u);++e<u;)r[e]=n[e+t];return r}function E(n){return A(n,0,n.length)}function w(n,t){var r;return jn(n,function(n,e,u){return r=t(n,e,u),!r}),!!r}function k(t,r){return C(r,function(t,r){return r.func.apply(r.thisArg,n([t],r.args));
|
12
|
+
},t)}function N(n,t,r,e){r||(r={});for(var u=-1,o=t.length;++u<o;){var i=t[u],c=e?e(r[i],n[i],i,r,n):Z,f=r,a=i,i=c===Z?n[i]:c,c=f[a];ln.call(f,a)&&J(c,i)&&(i!==Z||a in f)||(f[a]=i)}return r}function S(n){return x(function(t,r){var e=-1,u=r.length,o=1<u?r[u-1]:Z,o=3<n.length&&typeof o=="function"?(u--,o):Z;for(t=Object(t);++e<u;){var i=r[e];i&&n(t,i,e,o)}return t})}function T(n){return function(){var t=arguments,r=c(n.prototype),t=n.apply(r,t);return V(t)?t:r}}function F(n,t,r){function e(){for(var o=-1,i=arguments.length,c=-1,f=r.length,a=Array(f+i),l=this&&this!==un&&this instanceof e?u:n;++c<f;)a[c]=r[c];
|
13
|
+
for(;i--;)a[c++]=arguments[++o];return l.apply(t,a)}if(typeof n!="function")throw new TypeError("Expected a function");var u=T(n);return e}function B(n,t,r,e,u,o){var i=n.length,c=t.length;if(i!=c&&!(2&u&&c>i))return false;for(var c=-1,f=true,a=1&u?[]:Z;++c<i;){var l=n[c],p=t[c];if(void 0!==Z){f=false;break}if(a){if(!w(t,function(n,t){if(!$(a,t)&&(l===n||r(l,n,e,u,o)))return a.push(t)})){f=false;break}}else if(l!==p&&!r(l,p,e,u,o)){f=false;break}}return f}function R(n,t,r,e,u,o){var i=2&u,c=Rn(n),f=c.length,a=Rn(t).length;
|
14
|
+
if(f!=a&&!i)return false;for(var l=f;l--;){var p=c[l];if(!(i?p in t:ln.call(t,p)))return false}for(a=true;++l<f;){var p=c[l],s=n[p],h=t[p];if(void 0!==Z||s!==h&&!r(s,h,e,u,o)){a=false;break}i||(i="constructor"==p)}return a&&!i&&(r=n.constructor,e=t.constructor,r!=e&&"constructor"in n&&"constructor"in t&&!(typeof r=="function"&&r instanceof r&&typeof e=="function"&&e instanceof e)&&(a=false)),a}function D(n){return wn(n)||M(n)}function I(n){var t=[];if(null!=n)for(var r in Object(n))t.push(r);return t}function q(n){
|
15
|
+
return n&&n.length?n[0]:Z}function $(n,t,r){var e=n?n.length:0;r=typeof r=="number"?0>r?_n(e+r,0):r:0,r=(r||0)-1;for(var u=t===t;++r<e;){var o=n[r];if(u?o===t:o!==o)return r}return-1}function z(n,t){return jn(n,_(t))}function C(n,t,e){return r(n,_(t),e,3>arguments.length,jn)}function G(n,t){var r;if(typeof t!="function")throw new TypeError("Expected a function");return n=kn(n),function(){return 0<--n&&(r=t.apply(this,arguments)),1>=n&&(t=Z),r}}function J(n,t){return n===t||n!==n&&t!==t}function M(n){
|
16
|
+
return H(n)&&P(n)&&ln.call(n,"callee")&&(!bn.call(n,"callee")||"[object Arguments]"==sn.call(n))}function P(n){var t;return(t=null!=n)&&(t=n.length,t=typeof t=="number"&&-1<t&&0==t%1&&9007199254740991>=t),t&&!U(n)}function U(n){return n=V(n)?sn.call(n):"","[object Function]"==n||"[object GeneratorFunction]"==n}function V(n){var t=typeof n;return!!n&&("object"==t||"function"==t)}function H(n){return!!n&&typeof n=="object"}function K(n){return typeof n=="number"||H(n)&&"[object Number]"==sn.call(n)}
|
17
|
+
function L(n){return typeof n=="string"||!wn(n)&&H(n)&&"[object String]"==sn.call(n)}function Q(n){return typeof n=="string"?n:null==n?"":n+""}function W(n){return n?e(n,Rn(n)):[]}function X(n){return n}function Y(t,r,e){var u=Rn(r),o=v(r,u);null!=e||V(r)&&(o.length||!u.length)||(e=r,r=t,t=this,o=v(r,Rn(r)));var i=!(V(e)&&"chain"in e&&!e.chain),c=U(t);return jn(o,function(e){var u=r[e];t[e]=u,c&&(t.prototype[e]=function(){var r=this.__chain__;if(i||r){var e=t(this.__wrapped__);return(e.__actions__=E(this.__actions__)).push({
|
18
|
+
func:u,args:arguments,thisArg:t}),e.__chain__=r,e}return u.apply(t,n([this.value()],arguments))})}),t}var Z,nn=1/0,tn=/[&<>"'`]/g,rn=RegExp(tn.source),en=typeof self=="object"&&self&&self.Object===Object&&self,un=typeof global=="object"&&global&&global.Object===Object&&global||en||Function("return this")(),on=(en=typeof exports=="object"&&exports&&!exports.nodeType&&exports)&&typeof module=="object"&&module&&!module.nodeType&&module,cn=function(n){return function(t){return null==n?Z:n[t]}}({"&":"&",
|
19
|
+
"<":"<",">":">",'"':""","'":"'","`":"`"}),fn=Array.prototype,an=Object.prototype,ln=an.hasOwnProperty,pn=0,sn=an.toString,hn=un._,vn=Object.create,bn=an.propertyIsEnumerable,yn=un.isFinite,gn=function(n,t){return function(r){return n(t(r))}}(Object.keys,Object),_n=Math.max;o.prototype=c(u.prototype),o.prototype.constructor=o;var jn=function(n,t){return function(r,e){if(null==r)return r;if(!P(r))return n(r,e);for(var u=r.length,o=t?u:-1,i=Object(r);(t?o--:++o<u)&&false!==e(i[o],o,i););
|
20
|
+
return r}}(h),dn=function(n){return function(t,r,e){var u=-1,o=Object(t);e=e(t);for(var i=e.length;i--;){var c=e[n?i:++u];if(false===r(o[c],c,o))break}return t}}(),mn=String,On=function(n){return function(t,r,e){var u=Object(t);if(!P(t)){var o=_(r);t=Rn(t),r=function(n){return o(u[n],n,u)}}return r=n(t,r,e),-1<r?u[o?t[r]:r]:Z}}(function(n,t,r){var e=n?n.length:0;if(!e)return-1;r=null==r?0:kn(r),0>r&&(r=_n(e+r,0));n:{for(t=_(t),e=n.length,r+=-1;++r<e;)if(t(n[r],r,n)){n=r;break n}n=-1}return n}),xn=x(function(n,t,r){
|
21
|
+
return F(n,t,r)}),An=x(function(n,t){return f(n,1,t)}),En=x(function(n,t,r){return f(n,Nn(t)||0,r)}),wn=Array.isArray,kn=Number,Nn=Number,Sn=S(function(n,t){N(t,gn(t),n)}),Tn=S(function(n,t){N(t,I(t),n)}),Fn=S(function(n,t,r,e){N(t,Dn(t),n,e)}),Bn=x(function(n){return n.push(Z,i),Fn.apply(Z,n)}),Rn=gn,Dn=I,In=x(function(n,t){return null==n?{}:O(n,d(s(t,1),mn))});u.assignIn=Tn,u.before=G,u.bind=xn,u.chain=function(n){return n=u(n),n.__chain__=true,n},u.compact=function(n){return p(n,Boolean)},u.concat=function(){
|
22
|
+
for(var t=arguments.length,r=Array(t?t-1:0),e=arguments[0],u=t;u--;)r[u-1]=arguments[u];return t?n(wn(e)?E(e):[e],s(r,1)):[]},u.create=function(n,t){var r=c(n);return t?Sn(r,t):r},u.defaults=Bn,u.defer=An,u.delay=En,u.filter=function(n,t){return p(n,_(t))},u.flatten=function(n){return n&&n.length?s(n,1):[]},u.flattenDeep=function(n){return n&&n.length?s(n,nn):[]},u.iteratee=_,u.keys=Rn,u.map=function(n,t){return d(n,_(t))},u.matches=function(n){return m(Sn({},n))},u.mixin=Y,u.negate=function(n){if(typeof n!="function")throw new TypeError("Expected a function");
|
23
|
+
return function(){return!n.apply(this,arguments)}},u.once=function(n){return G(2,n)},u.pick=In,u.slice=function(n,t,r){var e=n?n.length:0;return r=r===Z?e:+r,e?A(n,null==t?0:+t,r):[]},u.sortBy=function(n,r){var e=0;return r=_(r),d(d(n,function(n,t,u){return{value:n,index:e++,criteria:r(n,t,u)}}).sort(function(n,t){var r;n:{r=n.criteria;var e=t.criteria;if(r!==e){var u=r!==Z,o=null===r,i=r===r,c=e!==Z,f=null===e,a=e===e;if(!f&&r>e||o&&c&&a||!u&&a||!i){r=1;break n}if(!o&&r<e||f&&u&&i||!c&&i||!a){r=-1;
|
24
|
+
break n}}r=0}return r||n.index-t.index}),t("value"))},u.tap=function(n,t){return t(n),n},u.thru=function(n,t){return t(n)},u.toArray=function(n){return P(n)?n.length?E(n):[]:W(n)},u.values=W,u.extend=Tn,Y(u,u),u.clone=function(n){return V(n)?wn(n)?E(n):N(n,gn(n)):n},u.escape=function(n){return(n=Q(n))&&rn.test(n)?n.replace(tn,cn):n},u.every=function(n,t,r){return t=r?Z:t,a(n,_(t))},u.find=On,u.forEach=z,u.has=function(n,t){return null!=n&&ln.call(n,t)},u.head=q,u.identity=X,u.indexOf=$,u.isArguments=M,
|
25
|
+
u.isArray=wn,u.isBoolean=function(n){return true===n||false===n||H(n)&&"[object Boolean]"==sn.call(n)},u.isDate=function(n){return H(n)&&"[object Date]"==sn.call(n)},u.isEmpty=function(n){return P(n)&&(wn(n)||L(n)||U(n.splice)||M(n))?!n.length:!gn(n).length},u.isEqual=function(n,t){return y(n,t)},u.isFinite=function(n){return typeof n=="number"&&yn(n)},u.isFunction=U,u.isNaN=function(n){return K(n)&&n!=+n},u.isNull=function(n){return null===n},u.isNumber=K,u.isObject=V,u.isRegExp=function(n){return V(n)&&"[object RegExp]"==sn.call(n);
|
26
|
+
},u.isString=L,u.isUndefined=function(n){return n===Z},u.last=function(n){var t=n?n.length:0;return t?n[t-1]:Z},u.max=function(n){return n&&n.length?l(n,X,b):Z},u.min=function(n){return n&&n.length?l(n,X,j):Z},u.noConflict=function(){return un._===this&&(un._=hn),this},u.noop=function(){},u.reduce=C,u.result=function(n,t,r){return t=null==n?Z:n[t],t===Z&&(t=r),U(t)?t.call(n):t},u.size=function(n){return null==n?0:(n=P(n)?n:gn(n),n.length)},u.some=function(n,t,r){return t=r?Z:t,w(n,_(t))},u.uniqueId=function(n){
|
27
|
+
var t=++pn;return Q(n)+t},u.each=z,u.first=q,Y(u,function(){var n={};return h(u,function(t,r){ln.call(u.prototype,r)||(n[r]=t)}),n}(),{chain:false}),u.VERSION="4.15.0",jn("pop join replace reverse split push shift sort splice unshift".split(" "),function(n){var t=(/^(?:replace|split)$/.test(n)?String.prototype:fn)[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|join|replace|shift)$/.test(n);u.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(wn(u)?u:[],n);
|
28
|
+
}return this[r](function(r){return t.apply(wn(r)?r:[],n)})}}),u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=function(){return k(this.__wrapped__,this.__actions__)},typeof define=="function"&&typeof define.amd=="object"&&define.amd?(un._=u, define(function(){return u})):on?((on.exports=u)._=u,en._=u):un._=u}).call(this);
|