mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Rebuild dist.
This commit is contained in:
344
dist/lodash.compat.js
vendored
344
dist/lodash.compat.js
vendored
@@ -24,6 +24,10 @@
|
||||
PARTIAL_FLAG = 32,
|
||||
PARTIAL_RIGHT_FLAG = 64;
|
||||
|
||||
/** Used as default options for `_.trunc` */
|
||||
var DEFAULT_TRUNC_LENGTH = 30,
|
||||
DEFAULT_TRUNC_OMISSION = '...';
|
||||
|
||||
/** Used to detect when a function becomes hot */
|
||||
var HOT_COUNT = 150,
|
||||
HOT_SPAN = 16;
|
||||
@@ -81,8 +85,8 @@
|
||||
/** Used to detect host constructors (Safari > 5) */
|
||||
var reHostCtor = /^\[object .+?Constructor\]$/;
|
||||
|
||||
/** Used to match latin-1 supplement letters */
|
||||
var reLatin1 = /[\xC0-\xFF]/g;
|
||||
/** Used to match latin-1 supplement letters (excluding mathematical operators) */
|
||||
var reLatin1 = /[\xC0-\xD6\xD8-\xDE\xDF-\xF6\xF8-\xFF]/g;
|
||||
|
||||
/** Used to ensure capturing order of template delimiters */
|
||||
var reNoMatch = /($^)/;
|
||||
@@ -102,11 +106,10 @@
|
||||
|
||||
/** Used to match words to create compound words */
|
||||
var reWords = (function() {
|
||||
var nums = '[0-9]',
|
||||
upper = '[A-Z\\xC0-\\xD6\\xD8-\\xDE]',
|
||||
lower = '[a-z\\xDF-\\xF6\\xF8-\\xFF]+' + nums + '*';
|
||||
var upper = '[A-Z\\xC0-\\xD6\\xD8-\\xDE]',
|
||||
lower = '[a-z\\xDF-\\xF6\\xF8-\\xFF]+';
|
||||
|
||||
return RegExp(upper + '{2,}(?=' + upper + lower + ')|' + upper + '?' + lower + '|' + upper + '+|' + nums + '+', 'g');
|
||||
return RegExp(upper + '{2,}(?=' + upper + lower + ')|' + upper + '?' + lower + '|' + upper + '+|[0-9]+', 'g');
|
||||
}());
|
||||
|
||||
/** Used to detect and test whitespace */
|
||||
@@ -254,7 +257,7 @@
|
||||
'\xDD': 'Y', '\xFD': 'y', '\xFF': 'y',
|
||||
'\xC6': 'Ae', '\xE6': 'ae',
|
||||
'\xDE': 'Th', '\xFE': 'th',
|
||||
'\xDF': 'ss', '\xD7': ' ', '\xF7': ' '
|
||||
'\xDF': 'ss'
|
||||
};
|
||||
|
||||
/** Used to determine if values are of the language type `Object` */
|
||||
@@ -341,7 +344,7 @@
|
||||
* @private
|
||||
* @param {Array} array The array to iterate over.
|
||||
* @param {Function} predicate The function invoked per iteration.
|
||||
* @returns {Array} Returns `true` if all elements passed the predicate check,
|
||||
* @returns {Array} Returns `true` if all elements pass the predicate check,
|
||||
* else `false`
|
||||
*/
|
||||
function arrayEvery(array, predicate) {
|
||||
@@ -456,7 +459,7 @@
|
||||
* @private
|
||||
* @param {Array} array The array to iterate over.
|
||||
* @param {Function} predicate The function invoked per iteration.
|
||||
* @returns {boolean} Returns `true` if any element passed the predicate check,
|
||||
* @returns {boolean} Returns `true` if any element passes the predicate check,
|
||||
* else `false`.
|
||||
*/
|
||||
function arraySome(array, predicate) {
|
||||
@@ -516,7 +519,8 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* The base implementation of `_.indexOf` without support for binary searches.
|
||||
* The base implementation of `_.indexOf` without support for `fromIndex`
|
||||
* bounds checks and binary searches.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to search.
|
||||
@@ -525,13 +529,14 @@
|
||||
* @returns {number} Returns the index of the matched value, else `-1`.
|
||||
*/
|
||||
function baseIndexOf(array, value, fromIndex) {
|
||||
if (value !== value) {
|
||||
return indexOfNaN(array, fromIndex);
|
||||
}
|
||||
var index = (fromIndex || 0) - 1,
|
||||
length = array ? array.length : 0,
|
||||
isReflexive = value === value;
|
||||
length = array.length;
|
||||
|
||||
while (++index < length) {
|
||||
var other = array[index];
|
||||
if ((isReflexive ? other === value : other !== other)) {
|
||||
if (array[index] === value) {
|
||||
return index;
|
||||
}
|
||||
}
|
||||
@@ -692,6 +697,29 @@
|
||||
return '\\' + stringEscapes[chr];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the index at which the first occurrence of `NaN` is found in `array`.
|
||||
* If `fromRight` is provided elements of `array` are iterated from right to left.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to search.
|
||||
* @param {number} [fromIndex] The index to search from.
|
||||
* @param {boolean} [fromRight=false] Specify iterating from right to left.
|
||||
* @returns {number} Returns the index of the matched `NaN`, else `-1`.
|
||||
*/
|
||||
function indexOfNaN(array, fromIndex, fromRight) {
|
||||
var length = array.length,
|
||||
index = fromRight ? (fromIndex || length) : ((fromIndex || 0) - 1);
|
||||
|
||||
while ((fromRight ? index-- : ++index < length)) {
|
||||
var other = array[index];
|
||||
if (other !== other) {
|
||||
return index;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if `value` is a host object in IE < 9.
|
||||
*
|
||||
@@ -712,6 +740,23 @@
|
||||
};
|
||||
}());
|
||||
|
||||
/**
|
||||
* Checks if the provided arguments are from an iteratee call.
|
||||
*
|
||||
* @private
|
||||
* @param {*} value The potential iteratee value argument.
|
||||
* @param {*} index The potential iteratee index or key argument.
|
||||
* @param {*} object The potential iteratee object argument.
|
||||
* @returns {boolean} Returns `true` if the arguments are from an iteratee call, else `false`.
|
||||
*/
|
||||
function isIterateeCall(value, index, object) {
|
||||
var indexType = typeof index,
|
||||
objectType = typeof object;
|
||||
|
||||
return (object && (indexType == 'number' || indexType == 'string') &&
|
||||
(objectType == 'function' || objectType == 'object') && object[index] === value) || false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Used by `_.trimmedLeftIndex` and `_.trimmedRightIndex` to determine if a
|
||||
* character code is whitespace.
|
||||
@@ -1534,7 +1579,7 @@
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to inspect.
|
||||
* @param {Array} [values] The values to exclude.
|
||||
* @param {Array} values The values to exclude.
|
||||
* @returns {Array} Returns the new array of filtered values.
|
||||
*/
|
||||
function baseDifference(array, values) {
|
||||
@@ -1548,7 +1593,7 @@
|
||||
isLarge = prereq && createCache && values && values.length >= 200,
|
||||
isCommon = prereq && !isLarge,
|
||||
result = [],
|
||||
valuesLength = values ? values.length : 0;
|
||||
valuesLength = values.length;
|
||||
|
||||
if (isLarge) {
|
||||
indexOf = cacheIndexOf;
|
||||
@@ -1623,13 +1668,13 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* The base implementation of `_.every` without support for callback shorthands
|
||||
* or `this` binding.
|
||||
* The base implementation of `_.every` without support for callback
|
||||
* shorthands or `this` binding.
|
||||
*
|
||||
* @private
|
||||
* @param {Array|Object|string} collection The collection to iterate over.
|
||||
* @param {Function} predicate The function invoked per iteration.
|
||||
* @returns {Array} Returns `true` if all elements passed the predicate check,
|
||||
* @returns {Array} Returns `true` if all elements pass the predicate check,
|
||||
* else `false`
|
||||
*/
|
||||
function baseEvery(collection, predicate) {
|
||||
@@ -2250,7 +2295,7 @@
|
||||
* @private
|
||||
* @param {Array|Object|string} collection The collection to iterate over.
|
||||
* @param {Function} predicate The function invoked per iteration.
|
||||
* @returns {boolean} Returns `true` if any element passed the predicate check,
|
||||
* @returns {boolean} Returns `true` if any element passes the predicate check,
|
||||
* else `false`.
|
||||
*/
|
||||
function baseSome(collection, predicate) {
|
||||
@@ -2518,12 +2563,10 @@
|
||||
var length = arguments.length,
|
||||
object = arguments[0];
|
||||
|
||||
if (object == null || length < 2) {
|
||||
if (length < 2 || object == null) {
|
||||
return object;
|
||||
}
|
||||
// enables use as a callback for functions like `_.reduce`
|
||||
var type = typeof arguments[2];
|
||||
if ((type == 'number' || type == 'string') && arguments[3] && arguments[3][arguments[2]] === arguments[1]) {
|
||||
if (length > 3 && isIterateeCall(arguments[1], arguments[2], arguments[3])) {
|
||||
length = 2;
|
||||
}
|
||||
// juggle arguments
|
||||
@@ -3011,8 +3054,8 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* A specialized version of `_.pick` that picks `object` properties
|
||||
* the predicate returns truthy for.
|
||||
* A specialized version of `_.pick` that picks `object` properties `predicate`
|
||||
* returns truthy for.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} object The source object.
|
||||
@@ -3187,6 +3230,7 @@
|
||||
* @category Array
|
||||
* @param {Array} array The array to process.
|
||||
* @param {numer} [size=1] The length of each chunk.
|
||||
* @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
|
||||
* @returns {Array} Returns the new array containing chunks.
|
||||
* @example
|
||||
*
|
||||
@@ -3196,13 +3240,13 @@
|
||||
* _.chunk(['a', 'b', 'c', 'd'], 3);
|
||||
* // => [['a', 'b', 'c'], ['d']]
|
||||
*/
|
||||
function chunk(array, size) {
|
||||
function chunk(array, size, guard) {
|
||||
var index = 0,
|
||||
length = array ? array.length : 0,
|
||||
resIndex = -1,
|
||||
result = [];
|
||||
|
||||
size = typeof size == 'undefined' ? 1 : nativeMax(+size || 1, 1);
|
||||
size = (guard || size == null) ? 1 : nativeMax(+size || 1, 1);
|
||||
while (index < length) {
|
||||
result[++resIndex] = slice(array, index, (index += size));
|
||||
}
|
||||
@@ -3296,7 +3340,7 @@
|
||||
* // => [1, 2, 3]
|
||||
*/
|
||||
function drop(array, n, guard) {
|
||||
n = (n == null || guard) ? 1 : n;
|
||||
n = (guard || n == null) ? 1 : n;
|
||||
return slice(array, n < 0 ? 0 : n);
|
||||
}
|
||||
|
||||
@@ -3327,14 +3371,14 @@
|
||||
*/
|
||||
function dropRight(array, n, guard) {
|
||||
var length = array ? array.length : 0;
|
||||
n = (n == null || guard) ? 1 : n;
|
||||
n = (guard || n == null) ? 1 : n;
|
||||
n = length - (n || 0);
|
||||
return slice(array, 0, n < 0 ? 0 : n);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a slice of `array` excluding elements dropped from the end.
|
||||
* Elements are dropped until the predicate returns falsey. The predicate is
|
||||
* Elements are dropped until `predicate` returns falsey. The predicate is
|
||||
* bound to `thisArg` and invoked with three arguments; (value, index, array).
|
||||
*
|
||||
* If a property name is provided for `predicate` the created "_.pluck" style
|
||||
@@ -3383,7 +3427,7 @@
|
||||
|
||||
/**
|
||||
* Creates a slice of `array` excluding elements dropped from the beginning.
|
||||
* Elements are dropped until the predicate returns falsey. The predicate is
|
||||
* Elements are dropped until `predicate` returns falsey. The predicate is
|
||||
* bound to `thisArg` and invoked with three arguments; (value, index, array).
|
||||
*
|
||||
* If a property name is provided for `predicate` the created "_.pluck" style
|
||||
@@ -3432,7 +3476,7 @@
|
||||
|
||||
/**
|
||||
* This method is like `_.find` except that it returns the index of the first
|
||||
* element the predicate returns truthy for, instead of the element itself.
|
||||
* element `predicate` returns truthy for, instead of the element itself.
|
||||
*
|
||||
* If a property name is provided for `predicate` the created "_.pluck" style
|
||||
* callback returns the property value of the given element.
|
||||
@@ -3580,15 +3624,7 @@
|
||||
*/
|
||||
function flatten(array, isDeep, guard) {
|
||||
var length = array ? array.length : 0;
|
||||
if (!length) {
|
||||
return [];
|
||||
}
|
||||
// enables use as a callback for functions like `_.map`
|
||||
var type = typeof isDeep;
|
||||
if ((type == 'number' || type == 'string') && guard && guard[isDeep] === array) {
|
||||
isDeep = false;
|
||||
}
|
||||
return baseFlatten(array, isDeep);
|
||||
return length ? baseFlatten(array, guard ? false : isDeep) : [];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3642,12 +3678,14 @@
|
||||
*/
|
||||
function indexOf(array, value, fromIndex) {
|
||||
var length = array ? array.length : 0;
|
||||
|
||||
if (!length) {
|
||||
return -1;
|
||||
}
|
||||
if (typeof fromIndex == 'number') {
|
||||
fromIndex = fromIndex < 0 ? nativeMax(length + fromIndex, 0) : (fromIndex || 0);
|
||||
} else if (fromIndex) {
|
||||
var index = sortedIndex(array, value);
|
||||
return (length && array[index] === value) ? index : -1;
|
||||
return array[index] === value ? index : -1;
|
||||
}
|
||||
return baseIndexOf(array, value, fromIndex);
|
||||
}
|
||||
@@ -3667,7 +3705,7 @@
|
||||
*/
|
||||
function initial(array) {
|
||||
var length = array ? array.length : 0;
|
||||
return slice(array, 0, length ? length - 1 : 0);
|
||||
return slice(array, 0, (length || 1) - 1);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3775,19 +3813,22 @@
|
||||
* // => 3
|
||||
*/
|
||||
function lastIndexOf(array, value, fromIndex) {
|
||||
var length = array ? array.length : 0,
|
||||
index = length;
|
||||
|
||||
var length = array ? array.length : 0;
|
||||
if (!length) {
|
||||
return -1;
|
||||
}
|
||||
var index = length;
|
||||
if (typeof fromIndex == 'number') {
|
||||
index = (fromIndex < 0 ? nativeMax(index + fromIndex, 0) : nativeMin(fromIndex || 0, index - 1)) + 1;
|
||||
index = (fromIndex < 0 ? nativeMax(length + fromIndex, 0) : nativeMin(fromIndex || 0, length - 1)) + 1;
|
||||
} else if (fromIndex) {
|
||||
index = sortedLastIndex(array, value) - 1;
|
||||
return (length && array[index] === value) ? index : -1;
|
||||
return array[index] === value ? index : -1;
|
||||
}
|
||||
if (value !== value) {
|
||||
return indexOfNaN(array, index, true);
|
||||
}
|
||||
var isReflexive = value === value;
|
||||
while (index--) {
|
||||
var other = array[index];
|
||||
if ((isReflexive ? other === value : other !== other)) {
|
||||
if (array[index] === value) {
|
||||
return index;
|
||||
}
|
||||
}
|
||||
@@ -3818,8 +3859,11 @@
|
||||
* // => [1, 1]
|
||||
*/
|
||||
function pull() {
|
||||
var array = arguments[0],
|
||||
index = 0,
|
||||
var array = arguments[0];
|
||||
if (!(array && array.length)) {
|
||||
return array;
|
||||
}
|
||||
var index = 0,
|
||||
indexOf = getIndexOf(),
|
||||
length = arguments.length;
|
||||
|
||||
@@ -3864,7 +3908,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes all elements from `array` that the predicate returns truthy for
|
||||
* Removes all elements from `array` that `predicate` returns truthy for
|
||||
* and returns an array of the removed elements. The predicate is bound to
|
||||
* `thisArg` and invoked with three arguments; (value, index, array).
|
||||
*
|
||||
@@ -3948,13 +3992,18 @@
|
||||
*/
|
||||
function slice(array, start, end) {
|
||||
var index = -1,
|
||||
length = array ? array.length : 0;
|
||||
length = array ? array.length : 0,
|
||||
endType = typeof end;
|
||||
|
||||
if (end && endType != 'number' && isIterateeCall(array, start, end)) {
|
||||
start = 0;
|
||||
end = length;
|
||||
}
|
||||
start = start == null ? 0 : (+start || 0);
|
||||
if (start < 0) {
|
||||
start = -start > length ? 0 : (length + start);
|
||||
}
|
||||
end = (typeof end == 'undefined' || end > length) ? length : (+end || 0);
|
||||
end = (endType == 'undefined' || end > length) ? length : (+end || 0);
|
||||
if (end < 0) {
|
||||
end += length;
|
||||
}
|
||||
@@ -3975,7 +4024,7 @@
|
||||
* be inserted into a given sorted array in order to maintain the sort order
|
||||
* of the array. If an iteratee function is provided it is invoked for `value`
|
||||
* and each element of `array` to compute their sort ranking. The iteratee
|
||||
* function is bound to `thisArg` and invoked with one argument; (value).
|
||||
* is bound to `thisArg` and invoked with one argument; (value).
|
||||
*
|
||||
* If a property name is provided for `iteratee` the created "_.pluck" style
|
||||
* callback returns the property value of the given element.
|
||||
@@ -4072,7 +4121,7 @@
|
||||
* // => []
|
||||
*/
|
||||
function take(array, n, guard) {
|
||||
n = (n == null || guard) ? 1 : n;
|
||||
n = (guard || n == null) ? 1 : n;
|
||||
return slice(array, 0, n < 0 ? 0 : n);
|
||||
}
|
||||
|
||||
@@ -4103,14 +4152,14 @@
|
||||
*/
|
||||
function takeRight(array, n, guard) {
|
||||
var length = array ? array.length : 0;
|
||||
n = (n == null || guard) ? 1 : n;
|
||||
n = (guard || n == null) ? 1 : n;
|
||||
n = length - (n || 0);
|
||||
return slice(array, n < 0 ? 0 : n);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a slice of `array` with elements taken from the end. Elements are
|
||||
* taken until the predicate returns falsey. The predicate is bound to `thisArg`
|
||||
* taken until `predicate` returns falsey. The predicate is bound to `thisArg`
|
||||
* and invoked with three arguments; (value, index, array).
|
||||
*
|
||||
* If a property name is provided for `predicate` the created "_.pluck" style
|
||||
@@ -4159,7 +4208,7 @@
|
||||
|
||||
/**
|
||||
* Creates a slice of `array` with elements taken from the beginning. Elements
|
||||
* are taken until the predicate returns falsey. The predicate is bound to
|
||||
* are taken until `predicate` returns falsey. The predicate is bound to
|
||||
* `thisArg` and invoked with three arguments; (value, index, array).
|
||||
*
|
||||
* If a property name is provided for `predicate` the created "_.pluck" style
|
||||
@@ -4281,16 +4330,10 @@
|
||||
return [];
|
||||
}
|
||||
// juggle arguments
|
||||
var type = typeof isSorted;
|
||||
if (type != 'boolean' && isSorted != null) {
|
||||
if (typeof isSorted != 'boolean' && isSorted != null) {
|
||||
thisArg = iteratee;
|
||||
iteratee = isSorted;
|
||||
iteratee = isIterateeCall(array, isSorted, thisArg) ? null : isSorted;
|
||||
isSorted = false;
|
||||
|
||||
// enables use as a callback for functions like `_.map`
|
||||
if ((type == 'number' || type == 'string') && thisArg && thisArg[iteratee] === array) {
|
||||
iteratee = null;
|
||||
}
|
||||
}
|
||||
if (iteratee != null) {
|
||||
iteratee = getCallback(iteratee, thisArg, 3);
|
||||
@@ -4670,6 +4713,9 @@
|
||||
collection = values(collection);
|
||||
length = collection.length;
|
||||
}
|
||||
if (!length) {
|
||||
return false;
|
||||
}
|
||||
if (typeof fromIndex == 'number') {
|
||||
fromIndex = fromIndex < 0 ? nativeMax(length + fromIndex, 0) : (fromIndex || 0);
|
||||
} else {
|
||||
@@ -4719,7 +4765,7 @@
|
||||
});
|
||||
|
||||
/**
|
||||
* Checks if the predicate returns truthy for **all** elements of `collection`.
|
||||
* Checks if `predicate` returns truthy for **all** elements of `collection`.
|
||||
* The predicate is bound to `thisArg` and invoked with three arguments;
|
||||
* (value, index|key, collection).
|
||||
*
|
||||
@@ -4739,7 +4785,7 @@
|
||||
* per iteration. If a property name or object is provided it is used to
|
||||
* create a "_.pluck" or "_.where" style callback respectively.
|
||||
* @param {*} [thisArg] The `this` binding of `predicate`.
|
||||
* @returns {boolean} Returns `true` if all elements passed the predicate check,
|
||||
* @returns {boolean} Returns `true` if all elements pass the predicate check,
|
||||
* else `false`.
|
||||
* @example
|
||||
*
|
||||
@@ -4769,7 +4815,7 @@
|
||||
|
||||
/**
|
||||
* Iterates over elements of `collection`, returning an array of all elements
|
||||
* the predicate returns truthy for. The predicate is bound to `thisArg` and
|
||||
* `predicate` returns truthy for. The predicate is bound to `thisArg` and
|
||||
* invoked with three arguments; (value, index|key, collection).
|
||||
*
|
||||
* If a property name is provided for `predicate` the created "_.pluck" style
|
||||
@@ -4815,8 +4861,8 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Iterates over elements of `collection`, returning the first element that
|
||||
* the predicate returns truthy for. The predicate is bound to `thisArg` and
|
||||
* Iterates over elements of `collection`, returning the first element
|
||||
* `predicate` returns truthy for. The predicate is bound to `thisArg` and
|
||||
* invoked with three arguments; (value, index|key, collection).
|
||||
*
|
||||
* If a property name is provided for `predicate` the created "_.pluck" style
|
||||
@@ -5174,17 +5220,13 @@
|
||||
* // => { 'user': 'fred', 'age': 40 };
|
||||
*/
|
||||
function max(collection, iteratee, thisArg) {
|
||||
var computed = -Infinity,
|
||||
result = computed,
|
||||
type = typeof iteratee;
|
||||
iteratee = isIterateeCall(collection, iteratee, thisArg) ? null : iteratee;
|
||||
|
||||
// enables use as a callback for functions like `_.map`
|
||||
if ((type == 'number' || type == 'string') && thisArg && thisArg[iteratee] === collection) {
|
||||
iteratee = null;
|
||||
}
|
||||
var noIteratee = iteratee == null,
|
||||
var computed = -Infinity,
|
||||
noIteratee = iteratee == null,
|
||||
isArr = noIteratee && isArray(collection),
|
||||
isStr = !isArr && isString(collection);
|
||||
isStr = !isArr && isString(collection),
|
||||
result = computed;
|
||||
|
||||
if (noIteratee && !isStr) {
|
||||
var index = -1,
|
||||
@@ -5257,17 +5299,13 @@
|
||||
* // => { 'user': 'barney', 'age': 36 };
|
||||
*/
|
||||
function min(collection, iteratee, thisArg) {
|
||||
var computed = Infinity,
|
||||
result = computed,
|
||||
type = typeof iteratee;
|
||||
iteratee = isIterateeCall(collection, iteratee, thisArg) ? null : iteratee;
|
||||
|
||||
// enables use as a callback for functions like `_.map`
|
||||
if ((type == 'number' || type == 'string') && thisArg && thisArg[iteratee] === collection) {
|
||||
iteratee = null;
|
||||
}
|
||||
var noIteratee = iteratee == null,
|
||||
var computed = Infinity,
|
||||
noIteratee = iteratee == null,
|
||||
isArr = noIteratee && isArray(collection),
|
||||
isStr = !isArr && isString(collection);
|
||||
isStr = !isArr && isString(collection),
|
||||
result = computed;
|
||||
|
||||
if (noIteratee && !isStr) {
|
||||
var index = -1,
|
||||
@@ -5298,8 +5336,8 @@
|
||||
|
||||
/**
|
||||
* Creates an array of elements split into two groups, the first of which
|
||||
* contains elements the predicate returns truthy for, while the second of which
|
||||
* contains elements the predicate returns falsey for. The predicate is bound
|
||||
* contains elements `predicate` returns truthy for, while the second of which
|
||||
* contains elements `predicate` returns falsey for. The predicate is bound
|
||||
* to `thisArg` and invoked with three arguments; (value, index|key, collection).
|
||||
*
|
||||
* If a property name is provided for `predicate` the created "_.pluck" style
|
||||
@@ -5430,7 +5468,7 @@
|
||||
|
||||
/**
|
||||
* The opposite of `_.filter`; this method returns the elements of `collection`
|
||||
* the predicate does **not** return truthy for.
|
||||
* that `predicate` does **not** return truthy for.
|
||||
*
|
||||
* If a property name is provided for `predicate` the created "_.pluck" style
|
||||
* callback returns the property value of the given element.
|
||||
@@ -5494,7 +5532,7 @@
|
||||
* // => [3, 1]
|
||||
*/
|
||||
function sample(collection, n, guard) {
|
||||
if (n == null || guard) {
|
||||
if (guard || n == null) {
|
||||
collection = toIterable(collection);
|
||||
var length = collection.length;
|
||||
return length > 0 ? collection[baseRandom(0, length - 1)] : undefined;
|
||||
@@ -5564,7 +5602,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the predicate returns truthy for **any** element of `collection`.
|
||||
* Checks if `predicate` returns truthy for **any** element of `collection`.
|
||||
* The function returns as soon as it finds a passing value and does not iterate
|
||||
* over the entire collection. The predicate is bound to `thisArg` and invoked
|
||||
* with three arguments; (value, index|key, collection).
|
||||
@@ -5585,7 +5623,7 @@
|
||||
* per iteration. If a property name or object is provided it is used to
|
||||
* create a "_.pluck" or "_.where" style callback respectively.
|
||||
* @param {*} [thisArg] The `this` binding of `predicate`.
|
||||
* @returns {boolean} Returns `true` if any element passed the predicate check,
|
||||
* @returns {boolean} Returns `true` if any element passes the predicate check,
|
||||
* else `false`.
|
||||
* @example
|
||||
*
|
||||
@@ -5663,6 +5701,8 @@
|
||||
* // = > [['barney', 26], ['barney', 36], ['fred', 30], ['fred', 40]]
|
||||
*/
|
||||
function sortBy(collection, iteratee, thisArg) {
|
||||
iteratee = isIterateeCall(collection, iteratee, thisArg) ? null : iteratee;
|
||||
|
||||
var index = -1,
|
||||
length = collection ? collection.length : 0,
|
||||
multi = iteratee && isArray(iteratee),
|
||||
@@ -5959,6 +5999,7 @@
|
||||
* @category Function
|
||||
* @param {Function} func The function to curry.
|
||||
* @param {number} [arity=func.length] The arity of `func`.
|
||||
* @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
|
||||
* @returns {Function} Returns the new curried function.
|
||||
* @example
|
||||
*
|
||||
@@ -5975,8 +6016,8 @@
|
||||
* curried(1, 2, 3);
|
||||
* // => [1, 2, 3]
|
||||
*/
|
||||
function curry(func, arity) {
|
||||
var result = baseCurry(func, CURRY_FLAG, arity);
|
||||
function curry(func, arity, guard) {
|
||||
var result = baseCurry(func, CURRY_FLAG, guard ? null : arity);
|
||||
result.placeholder = curry.placeholder;
|
||||
return result;
|
||||
}
|
||||
@@ -5992,6 +6033,7 @@
|
||||
* @category Function
|
||||
* @param {Function} func The function to curry.
|
||||
* @param {number} [arity=func.length] The arity of `func`.
|
||||
* @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
|
||||
* @returns {Function} Returns the new curried function.
|
||||
* @example
|
||||
*
|
||||
@@ -6008,8 +6050,8 @@
|
||||
* curried(1, 2, 3);
|
||||
* // => [1, 2, 3]
|
||||
*/
|
||||
function curryRight(func, arity) {
|
||||
var result = baseCurry(func, CURRY_RIGHT_FLAG, arity);
|
||||
function curryRight(func, arity, guard) {
|
||||
var result = baseCurry(func, CURRY_RIGHT_FLAG, guard ? null : arity);
|
||||
result.placeholder = curryRight.placeholder;
|
||||
return result;
|
||||
}
|
||||
@@ -6625,18 +6667,11 @@
|
||||
* // => 0
|
||||
*/
|
||||
function clone(value, isDeep, customizer, thisArg) {
|
||||
var type = typeof isDeep;
|
||||
|
||||
// juggle arguments
|
||||
if (type != 'boolean' && isDeep != null) {
|
||||
if (typeof isDeep != 'boolean' && isDeep != null) {
|
||||
thisArg = customizer;
|
||||
customizer = isDeep;
|
||||
customizer = isIterateeCall(value, isDeep, thisArg) ? null : isDeep;
|
||||
isDeep = false;
|
||||
|
||||
// enables use as a callback for functions like `_.map`
|
||||
if ((type == 'number' || type == 'string') && thisArg && thisArg[customizer] === value) {
|
||||
customizer = null;
|
||||
}
|
||||
}
|
||||
customizer = typeof customizer == 'function' && baseCallback(customizer, thisArg, 1);
|
||||
return baseClone(value, isDeep, customizer);
|
||||
@@ -6757,8 +6792,8 @@
|
||||
* // => false
|
||||
*/
|
||||
function isBoolean(value) {
|
||||
return (value === true || value === false ||
|
||||
value && typeof value == 'object' && toString.call(value) == boolClass) || false;
|
||||
return (value === true || value === false || value && typeof value == 'object' &&
|
||||
toString.call(value) == boolClass) || false;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -6804,8 +6839,7 @@
|
||||
// fallback for environments without DOM support
|
||||
if (!support.dom) {
|
||||
isElement = function(value) {
|
||||
return (value && typeof value == 'object' && value.nodeType === 1 &&
|
||||
!isPlainObject(value)) || false;
|
||||
return (value && typeof value == 'object' && value.nodeType === 1 && !isPlainObject(value)) || false;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -7106,8 +7140,7 @@
|
||||
*/
|
||||
function isNumber(value) {
|
||||
var type = typeof value;
|
||||
return type == 'number' ||
|
||||
(value && type == 'object' && toString.call(value) == numberClass) || false;
|
||||
return type == 'number' || (value && type == 'object' && toString.call(value) == numberClass) || false;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -7190,8 +7223,8 @@
|
||||
* // => false
|
||||
*/
|
||||
function isString(value) {
|
||||
return typeof value == 'string' ||
|
||||
(value && typeof value == 'object' && toString.call(value) == stringClass) || false;
|
||||
return typeof value == 'string' || (value && typeof value == 'object' &&
|
||||
toString.call(value) == stringClass) || false;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -7256,6 +7289,7 @@
|
||||
* @category Object
|
||||
* @param {Object} prototype The object to inherit from.
|
||||
* @param {Object} [properties] The properties to assign to the object.
|
||||
* @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
|
||||
* @returns {Object} Returns the new object.
|
||||
* @example
|
||||
*
|
||||
@@ -7277,8 +7311,9 @@
|
||||
* circle instanceof Shape;
|
||||
* // => true
|
||||
*/
|
||||
function create(prototype, properties) {
|
||||
function create(prototype, properties, guard) {
|
||||
var result = baseCreate(prototype);
|
||||
properties = guard ? null : properties;
|
||||
return properties ? baseAssign(result, properties) : result;
|
||||
}
|
||||
|
||||
@@ -7312,7 +7347,7 @@
|
||||
|
||||
/**
|
||||
* This method is like `_.findIndex` except that it returns the key of the
|
||||
* first element the predicate returns truthy for, instead of the element itself.
|
||||
* first element `predicate` returns truthy for, instead of the element itself.
|
||||
*
|
||||
* If a property name is provided for `predicate` the created "_.pluck" style
|
||||
* callback returns the property value of the given element.
|
||||
@@ -7565,6 +7600,7 @@
|
||||
* @category Object
|
||||
* @param {Object} object The object to invert.
|
||||
* @param {boolean} [multiValue=false] Allow multiple values per key.
|
||||
* @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
|
||||
* @returns {Object} Returns the new inverted object.
|
||||
* @example
|
||||
*
|
||||
@@ -7579,7 +7615,9 @@
|
||||
* _.invert({ 'first': 'fred', 'second': 'barney', 'third': 'fred' }, true);
|
||||
* // => { 'fred': ['first', 'third'], 'barney': ['second'] }
|
||||
*/
|
||||
function invert(object, multiValue) {
|
||||
function invert(object, multiValue, guard) {
|
||||
multiValue = guard ? null : multiValue;
|
||||
|
||||
var index = -1,
|
||||
props = keys(object),
|
||||
length = props.length,
|
||||
@@ -7807,8 +7845,8 @@
|
||||
/**
|
||||
* Creates a shallow clone of `object` excluding the specified properties.
|
||||
* Property names may be specified as individual arguments or as arrays of
|
||||
* property names. If a predicate is provided it is invoked for each property
|
||||
* of `object` omitting the properties the predicate returns truthy for. The
|
||||
* property names. If `predicate` is provided it is invoked for each property
|
||||
* of `object` omitting the properties `predicate` returns truthy for. The
|
||||
* predicate is bound to `thisArg` and invoked with three arguments;
|
||||
* (value, key, object).
|
||||
*
|
||||
@@ -7875,8 +7913,8 @@
|
||||
/**
|
||||
* Creates a shallow clone of `object` composed of the specified properties.
|
||||
* Property names may be specified as individual arguments or as arrays of
|
||||
* property names. If a predicate is provided it is invoked for each property
|
||||
* of `object` picking the properties the predicate returns truthy for. The
|
||||
* property names. If `predicate` is provided it is invoked for each property
|
||||
* of `object` picking the properties `predicate` returns truthy for. The
|
||||
* predicate is bound to `thisArg` and invoked with three arguments;
|
||||
* (value, key, object).
|
||||
*
|
||||
@@ -8470,8 +8508,12 @@
|
||||
// and Laura Doktorova's doT.js
|
||||
// https://github.com/olado/doT
|
||||
var settings = lodash.templateSettings;
|
||||
options = assign({}, otherOptions || options, settings, assignOwnDefaults);
|
||||
|
||||
if (isIterateeCall(string, options, otherOptions)) {
|
||||
options = otherOptions = null;
|
||||
}
|
||||
string = String(string == null ? '' : string);
|
||||
options = assign({}, otherOptions || options, settings, assignOwnDefaults);
|
||||
|
||||
var imports = assign({}, options.imports, settings.imports, assignOwnDefaults),
|
||||
importsKeys = keys(imports),
|
||||
@@ -8574,6 +8616,7 @@
|
||||
* @category String
|
||||
* @param {string} [string=''] The string to trim.
|
||||
* @param {string} [chars=whitespace] The characters to trim.
|
||||
* @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
|
||||
* @returns {string} Returns the trimmed string.
|
||||
* @example
|
||||
*
|
||||
@@ -8583,12 +8626,12 @@
|
||||
* _.trim('-_-fred-_-', '_-');
|
||||
* // => 'fred'
|
||||
*/
|
||||
function trim(string, chars) {
|
||||
function trim(string, chars, guard) {
|
||||
string = string == null ? '' : String(string);
|
||||
if (!string) {
|
||||
return string;
|
||||
}
|
||||
if (chars == null) {
|
||||
if (guard || chars == null) {
|
||||
return string.slice(trimmedLeftIndex(string), trimmedRightIndex(string) + 1);
|
||||
}
|
||||
chars = String(chars);
|
||||
@@ -8603,6 +8646,7 @@
|
||||
* @category String
|
||||
* @param {string} [string=''] The string to trim.
|
||||
* @param {string} [chars=whitespace] The characters to trim.
|
||||
* @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
|
||||
* @returns {string} Returns the trimmed string.
|
||||
* @example
|
||||
*
|
||||
@@ -8612,12 +8656,12 @@
|
||||
* _.trimLeft('-_-fred-_-', '_-');
|
||||
* // => 'fred-_-'
|
||||
*/
|
||||
function trimLeft(string, chars) {
|
||||
function trimLeft(string, chars, guards) {
|
||||
string = string == null ? '' : String(string);
|
||||
if (!string) {
|
||||
return string;
|
||||
}
|
||||
if (chars == null) {
|
||||
if (guards || chars == null) {
|
||||
return string.slice(trimmedLeftIndex(string))
|
||||
}
|
||||
chars = String(chars);
|
||||
@@ -8632,6 +8676,7 @@
|
||||
* @category String
|
||||
* @param {string} [string=''] The string to trim.
|
||||
* @param {string} [chars=whitespace] The characters to trim.
|
||||
* @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
|
||||
* @returns {string} Returns the trimmed string.
|
||||
* @example
|
||||
*
|
||||
@@ -8641,12 +8686,12 @@
|
||||
* _.trimRight('-_-fred-_-', '_-');
|
||||
* // => '-_-fred'
|
||||
*/
|
||||
function trimRight(string, chars) {
|
||||
function trimRight(string, chars, guard) {
|
||||
string = string == null ? '' : String(string);
|
||||
if (!string) {
|
||||
return string;
|
||||
}
|
||||
if (chars == null) {
|
||||
if (guard || chars == null) {
|
||||
return string.slice(0, trimmedRightIndex(string) + 1)
|
||||
}
|
||||
chars = String(chars);
|
||||
@@ -8666,6 +8711,7 @@
|
||||
* @param {number} [options.length=30] The maximum string length.
|
||||
* @param {string} [options.omission='...'] The string to indicate text is omitted.
|
||||
* @param {RegExp|string} [options.separator] The separator pattern to truncate to.
|
||||
* @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
|
||||
* @returns {string} Returns the truncated string.
|
||||
* @example
|
||||
*
|
||||
@@ -8684,9 +8730,11 @@
|
||||
* _.trunc('hi-diddly-ho there, neighborino', { 'omission': ' [...]' });
|
||||
* // => 'hi-diddly-ho there, neig [...]'
|
||||
*/
|
||||
function trunc(string, options) {
|
||||
var length = 30,
|
||||
omission = '...';
|
||||
function trunc(string, options, guard) {
|
||||
options = guard ? null : options;
|
||||
|
||||
var length = DEFAULT_TRUNC_LENGTH,
|
||||
omission = DEFAULT_TRUNC_OMISSION;
|
||||
|
||||
if (isObject(options)) {
|
||||
var separator = 'separator' in options ? options.separator : separator;
|
||||
@@ -8765,6 +8813,7 @@
|
||||
* @category String
|
||||
* @param {string} [string=''] The string to inspect.
|
||||
* @param {RegExp|string} [pattern] The pattern to match words.
|
||||
* @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
|
||||
* @returns {Array} Returns the words of `string`.
|
||||
* @example
|
||||
*
|
||||
@@ -8774,8 +8823,9 @@
|
||||
* _.words('fred, barney, & pebbles', /[^, ]+/g);
|
||||
* // => ['fred', 'barney', '&', 'pebbles']
|
||||
*/
|
||||
function words(string, pattern) {
|
||||
function words(string, pattern, guard) {
|
||||
string = string != null && String(string);
|
||||
pattern = guard ? null : pattern;
|
||||
return (string && string.match(pattern || reWords)) || [];
|
||||
}
|
||||
|
||||
@@ -8821,6 +8871,7 @@
|
||||
* @category Utility
|
||||
* @param {*} [func=identity] The value to convert to a callback.
|
||||
* @param {*} [thisArg] The `this` binding of the created callback.
|
||||
* @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
|
||||
* @returns {Function} Returns the new function.
|
||||
* @example
|
||||
*
|
||||
@@ -8843,8 +8894,8 @@
|
||||
* _.filter(users, 'age__gt38');
|
||||
* // => [{ 'user': 'fred', 'age': 40 }]
|
||||
*/
|
||||
function callback(func, thisArg) {
|
||||
return baseCallback(func, thisArg);
|
||||
function callback(func, thisArg, guard) {
|
||||
return baseCallback(func, guard ? undefined : thisArg);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -9178,9 +9229,7 @@
|
||||
* // => a floating-point number between 1.2 and 5.2
|
||||
*/
|
||||
function random(min, max, floating) {
|
||||
// enables use as a callback for functions like `_.map`
|
||||
var type = typeof max;
|
||||
if ((type == 'number' || type == 'string') && floating && floating[max] === min) {
|
||||
if (floating && isIterateeCall(min, max, floating)) {
|
||||
max = floating = null;
|
||||
}
|
||||
var noMin = min == null,
|
||||
@@ -9247,13 +9296,10 @@
|
||||
* // => []
|
||||
*/
|
||||
function range(start, end, step) {
|
||||
start = +start || 0;
|
||||
|
||||
// enables use as a callback for functions like `_.map`
|
||||
var type = typeof end;
|
||||
if ((type == 'number' || type == 'string') && step && step[end] === start) {
|
||||
if (step && isIterateeCall(start, end, step)) {
|
||||
end = step = null;
|
||||
}
|
||||
start = +start || 0;
|
||||
step = step == null ? 1 : (+step || 0);
|
||||
|
||||
if (end == null) {
|
||||
|
||||
142
dist/lodash.compat.min.js
vendored
142
dist/lodash.compat.min.js
vendored
@@ -4,74 +4,74 @@
|
||||
* Build: `lodash -o ./dist/lodash.compat.js`
|
||||
*/
|
||||
;(function(){function n(n,t){for(var r=-1,e=n.length;++r<e&&false!==t(n[r],r,n););return n}function t(n,t){for(var r=-1,e=n.length;++r<e;)if(!t(n[r],r,n))return false;return true}function r(n,t){for(var r=-1,e=n.length,u=Array(e);++r<e;)u[r]=t(n[r],r,n);return u}function e(n,t){for(var r=-1,e=n.length,u=-1,o=[];++r<e;){var i=n[r];t(i,r,n)&&(o[++u]=i)}return o}function u(n,t,r,e){var u=-1,o=n.length;for(e&&o&&(r=n[++u]);++u<o;)r=t(r,n[u],u,n);return r}function o(n,t,r,e){var u=n.length;for(e&&u&&(r=n[--u]);u--;)r=t(r,n[u],u,n);
|
||||
return r}function i(n,t){for(var r=-1,e=n.length;++r<e;)if(t(n[r],r,n))return true;return false}function f(n,t){for(var r=-1,e=t.length,u=Array(e);++r<e;)u[r]=n[t[r]];return u}function a(n,t){if(n!==t){var r=n===n,e=t===t;if(n>t||!r||typeof n=="undefined"&&e)return 1;if(n<t||!e||typeof t=="undefined"&&r)return-1}return 0}function l(n,t,r){r=(r||0)-1;for(var e=n?n.length:0,u=t===t;++r<e;){var o=n[r];if(u?o===t:o!==o)return r}return-1}function c(n){for(var t=-1,r=n?n.length:0,e=Array(r);++t<r;)e[t]=n[t];return e
|
||||
}function s(n,t){return n.has(t)?0:-1}function p(n){return n.charCodeAt(0)}function h(n,t){for(var r=-1,e=n.length;++r<e&&-1<t.indexOf(n.charAt(r)););return r}function g(n,t){for(var r=n.length;r--&&-1<t.indexOf(n.charAt(r)););return r}function v(n,t){return a(n.a,t.a)||n.b-t.b}function y(n,t){for(var r=-1,e=n.a,u=t.a,o=e.length;++r<o;){var i=a(e[r],u[r]);if(i)return i}return n.b-t.b}function m(n){return Wt[n]}function d(n){return Ut[n]}function b(n){return"\\"+Nt[n]}function _(n){return 160>=n&&9<=n&&13>=n||32==n||160==n||5760==n||6158==n||8192<=n&&(8202>=n||8232==n||8233==n||8239==n||8287==n||12288==n||65279==n)
|
||||
}function x(n,t){for(var r=-1,e=n.length,u=-1,o=[];++r<e;)n[r]===t&&(n[r]=P,o[++u]=r);return o}function w(n){for(var t=-1,r=n.length;++t<r&&_(n.charCodeAt(t)););return t}function j(n){for(var t=n.length;t--&&_(n.charCodeAt(t)););return t}function A(n){return Tt[n]}function E(_){function Ut(n){if(n&&typeof n=="object"){if(n instanceof Tt)return n;if(!Yu(n)&&iu.call(n,"__wrapped__"))return new Tt(n.__wrapped__,n.__chain__,c(n.__queue__))}return new Tt(n)}function Tt(n,t,r){this.__chain__=!!t,this.__queue__=r||[],this.__wrapped__=n
|
||||
}function Wt(n,t){return typeof n=="undefined"?t:n}function Lt(n,t,r,e){return typeof n!="undefined"&&iu.call(e,r)?n:t}function Nt(n,t,r){for(var e=-1,u=Hu(t),o=u.length;++e<o;){var i=u[e];n[i]=r?r(n[i],t[i],i,n,t):t[i]}return n}function qt(n,t,r){var e=typeof n;if("function"==e){if(typeof t=="undefined")return n;if(e=Pu(n),typeof e=="undefined"&&(Nu.funcNames&&(e=!n.name),e=e||!Nu.funcDecomp,!e)){var u=ou.call(n);Nu.funcNames||(e=!Q.test(u)),e||(e=ot.test(u)||Ae(n),$u(n,e))}if(false===e||true!==e&&e[1]&C)return n;
|
||||
switch(r){case 1:return function(r){return n.call(t,r)};case 3:return function(r,e,u){return n.call(t,r,e,u)};case 4:return function(r,e,u,o){return n.call(t,r,e,u,o)};case 5:return function(r,e,u,o,i){return n.call(t,r,e,u,o,i)}}return function(){return n.apply(t,arguments)}}return null==n?Ne:"object"==e?$e(n):Me(n)}function Pt(t,r,e,u,o){var i=e?e(t):O;if(typeof i!="undefined")return i;var f=Yu(t),i=t;if(f?i=Fr(t,r):je(t)&&(i=Rr(t,r),t=r&&au.call(i)==dt?t:i),!r||i===t)return i;u||(u=[]),o||(o=[]);
|
||||
for(var a=u.length;a--;)if(u[a]==t)return o[a];return u.push(t),o.push(i),(f?n:rr)(t,function(n,t){var f=e?e(n,t):O;i[t]=typeof f=="undefined"?Pt(n,r,null,u,o):f}),i}function zt(n){return je(n)?Au(n):{}}function Kt(n,t,r){return typeof r!="number"&&(r=null==r?n?n.length:0:Cu(+r||0,0)),Ir(n,t,r)}function Zt(n,t){var r=n?n.length:0;if(!r)return[];var e=-1,u=Sr(),o=u==l,i=o&&qu&&t&&200<=t.length,o=o&&!i,f=[],a=t?t.length:0;i&&(u=s,t=qu(t));n:for(;++e<r;)if(i=n[e],o&&i===i){for(var c=a;c--;)if(t[c]===i)continue n;
|
||||
f.push(i)}else 0>u(t,i)&&f.push(i);return f}function Vt(n,t){var r=n?n.length:0;if(typeof r!="number"||-1>=r||r>q)return rr(n,t);for(var e=-1,u=$r(n);++e<r&&false!==t(u[e],e,u););return n}function Yt(n,t){var r=n?n.length:0;if(typeof r!="number"||-1>=r||r>q)return er(n,t);for(var e=$r(n);r--&&false!==t(e[r],r,e););return n}function Jt(n,t){var r=true;return Vt(n,function(n,e,u){return r=!!t(n,e,u)}),r}function Xt(n,t){var r=[];return Vt(n,function(n,e,u){t(n,e,u)&&r.push(n)}),r}function Gt(n,t,r,e){var u;
|
||||
return r(n,function(n,r,o){return t(n,r,o)?(u=e?r:n,false):void 0}),u}function Ht(n,t,r,e){e=(e||0)-1;for(var u=n.length,o=-1,i=[];++e<u;){var f=n[e];if(f&&typeof f=="object"&&typeof f.length=="number"&&(Yu(f)||be(f))){t&&(f=Ht(f,t,r));var a=-1,l=f.length;for(i.length+=l;++a<l;)i[++o]=f[a]}else r||(i[++o]=f)}return i}function Qt(n,t,r){var e=-1,u=$r(n);r=r(n);for(var o=r.length;++e<o;){var i=r[e];if(false===t(u[i],i,u))break}return n}function nr(n,t,r){var e=$r(n);r=r(n);for(var u=r.length;u--;){var o=r[u];
|
||||
if(false===t(e[o],o,e))break}return n}function tr(n,t){Qt(n,t,Se)}function rr(n,t){return Qt(n,t,Hu)}function er(n,t){return nr(n,t,Hu)}function ur(n,t){for(var r=-1,e=t.length,u=-1,o=[];++r<e;){var i=t[r];we(n[i])&&(o[++u]=i)}return o}function or(n,t,r,e,u,o){var i=r&&!u?r(n,t):O;if(typeof i!="undefined")return!!i;if(n===t)return 0!==n||1/n==1/t;var f=typeof n,a=typeof t;if(("number"!=f||"number"!=a)&&(null==n||null==t||"function"!=f&&"object"!=f&&"function"!=a&&"object"!=a))return false;var l=au.call(n),c=l==st,s=au.call(t),i=s==st;
|
||||
c&&(l=dt),i&&(s=dt);var a=Rt[l],f=l==vt,p=l==dt&&!Bt(n),h=s==dt&&!Bt(t);if((s=l==s)&&a){if(c=n.length,p=t.length,c!=p&&!(e&&p>c))return false}else{var g=p&&iu.call(n,"__wrapped__"),h=h&&iu.call(t,"__wrapped__");if(g||h)return or(g?n.value():n,h?t.value():t,r,e,u,o);if(!s)return false;if(!f&&!p){switch(l){case ht:case gt:return+n==+t;case mt:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case bt:case _t:return n==He(t)}return false}if(Nu.argsClass||(c=be(n),i=be(t)),g=c?Xe:n.constructor,l=i?Xe:t.constructor,f){if(g.prototype.name!=l.prototype.name)return false
|
||||
}else if(p=!c&&iu.call(n,"constructor"),h=!i&&iu.call(t,"constructor"),p!=h||!p&&g!=l&&"constructor"in n&&"constructor"in t&&!(typeof g=="function"&&g instanceof g&&typeof l=="function"&&l instanceof l))return false;if(g=f?["message","name"]:Hu(n),l=f?g:Hu(t),c&&g.push("length"),i&&l.push("length"),c=g.length,p=l.length,c!=p&&!e)return false}for(u||(u=[]),o||(o=[]),l=u.length;l--;)if(u[l]==n)return o[l]==t;if(u.push(n),o.push(t),i=true,a)for(;i&&++l<c;)if(a=n[l],e)for(f=p;f--&&!(i=or(a,t[f],r,e,u,o)););else h=t[l],i=r?r(a,h,l):O,typeof i=="undefined"&&(i=or(a,h,r,e,u,o));
|
||||
else for(;i&&++l<c;)p=g[l],(i=f||iu.call(t,p))&&(a=n[p],h=t[p],i=r?r(a,h,p):O,typeof i=="undefined"&&(i=or(a,h,r,e,u,o)));return u.pop(),o.pop(),!!i}function ir(n,t,r){var e=-1,u=typeof t=="function",o=n?n.length:0,i=[];return typeof o=="number"&&-1<o&&o<=q&&(i.length=o),Vt(n,function(n){var o=u?t:null!=n&&n[t];i[++e]=o?o.apply(n,r):O}),i}function fr(n,t){var r=[];return Vt(n,function(n,e,u){r.push(t(n,e,u))}),r}function ar(t,r,e,u,o){var i=Dr(r);return(i?n:rr)(r,function(n,r,f){var a=n&&Dr(n),l=n&&Xu(n),c=t[r];
|
||||
if(a||l){for(u||(u=[]),o||(o=[]),l=u.length;l--;)if(u[l]==n)return void(t[r]=o[l]);f=e?e(c,n,r,t,f):O,(l=typeof f=="undefined")&&(f=a?Yu(c)?c:[]:Xu(c)?c:{}),u.push(n),o.push(f),l&&ar(f,n,e,u,o),t[r]=f}else f=e?e(c,n,r,t,f):O,typeof f=="undefined"&&(f=n),(i||typeof f!="undefined")&&(t[r]=f)}),t}function lr(n,t,r,e,u){if(n)var o=Pu(n),o=o?o[2]:n.length,o=Cu(o-r.length,0);return t&k?Ir(n,t,o,u,r,e):Ir(n,t,o,u,null,null,r,e)}function cr(n,t){return n+gu(ku()*(t-n+1))}function sr(n,t,r,e,u){return u(n,function(n,u,o){r=e?(e=false,n):t(r,n,u,o)
|
||||
}),r}function pr(n,t){var r;return Vt(n,function(n,e,u){return r=t(n,e,u),!r}),!!r}function hr(n,t,r,e){var u=0,o=n?n.length:u;t=r(t);for(var i=t!==t,f=typeof t=="undefined";u<o;){var a=gu((u+o)/2),l=r(n[a]),c=l===l;(i?c||e:f?c&&(e||typeof l!="undefined"):e?l<=t:l<t)?u=a+1:o=a}return Su(o,$)}function gr(n,t){var r=-1,e=Sr(),u=n.length,o=e==l,i=o&&qu&&200<=u,o=o&&!i,f=[];if(i)var a=qu(),e=s;else a=t?[]:f;n:for(;++r<u;){var c=n[r],p=t?t(c,r,n):c;if(o&&c===c){for(var h=a.length;h--;)if(a[h]===p)continue n;
|
||||
t&&a.push(p),f.push(c)}else 0>e(a,p)&&((t||i)&&a.push(p),f.push(c))}return f}function vr(n,t){for(var r=-1,e=t(n),u=e.length,o=ze(u);++r<u;)o[r]=n[e[r]];return o}function yr(n){return su.call(n,0)}function mr(n,t,r){for(var e=t.length,u=-1,o=Cu(r.length-e,0),i=-1,f=n.length,a=ze(o+f);++i<f;)a[i]=n[i];for(;++u<e;)a[t[u]]=r[u];for(;o--;)a[i++]=r[u++];return a}function dr(n,t,r){for(var e=-1,u=t.length,o=-1,i=Cu(r.length-u,0),f=-1,a=n.length,l=ze(i+a);++o<i;)l[o]=r[o];for(i=o;++f<a;)l[i+f]=n[f];for(;++e<u;)l[i+t[e]]=r[o++];
|
||||
return l}function br(n,t){return function(r,e,u){e=Cr(e,u,3);var o=t?t():{};if(Yu(r)){u=-1;for(var i=r.length;++u<i;){var f=r[u];n(o,f,e(f,u,r),r)}}else Vt(r,function(t,r,u){n(o,t,e(t,r,u),u)});return o}}function _r(n){return function(){var t=arguments.length,r=arguments[0];if(null==r||2>t)return r;var e=typeof arguments[2];if("number"!=e&&"string"!=e||!arguments[3]||arguments[3][arguments[2]]!==arguments[1]||(t=2),3<t&&"function"==typeof arguments[t-2])var u=qt(arguments[--t-1],arguments[t--],5);
|
||||
else 2<t&&"function"==typeof arguments[t-1]&&(u=arguments[--t]);for(e=0;++e<t;)n(r,arguments[e],u);return r}}function xr(n,t){function r(){return(this instanceof r?e:n).apply(t,arguments)}var e=jr(n);return r}function wr(n){return function(t){var r=-1;t=Te(Re(t));for(var e=t.length,u="";++r<e;)u=n(u,t[r],r,Te);return u}}function jr(n){return function(){var t=zt(n.prototype),r=n.apply(t,arguments);return je(r)?r:t}}function Ar(n,t,r,e,u,o,i,f){function a(){for(var y=arguments.length,m=y,d=ze(y);m--;)d[m]=arguments[m];
|
||||
if(u&&(d=mr(u,o,d)),i&&(d=dr(i,f,d)),s||p){var m=a.placeholder,b=x(d,m),y=y-b.length;if(y<r){var y=Cu(r-y,0),_=s?d:null,w=s?b:null,d=s?null:d,b=s?null:b;t|=s?k:U,t&=~(s?U:k),h||(t&=~(C|S));var j=Ar(n,t,y,e,_,w,d,b);return j.placeholder=m,Bu(j,[n,t,y,e,_,w,d,b])}}return m=l?e:this,c&&(n=m[v]),(this instanceof a?g||jr(n):n).apply(m,d)}var l=t&C,c=t&S,s=t&F,p=t&R,h=t&D,g=!c&&jr(n),v=n;return a}function Er(n,t,r){return n=n.length,t=+t,n<t&&Ou(t)?(t-=n,r=null==r?" ":He(r),ke(r,pu(t/r.length)).slice(0,t)):""
|
||||
}function Or(n,t,r,e){function u(){for(var t=-1,f=arguments.length,a=-1,l=r.length,c=ze(f+l);++a<l;)c[a]=r[a];for(;f--;)c[a++]=arguments[++t];return(this instanceof u?i:n).apply(o?e:this,c)}var o=t&C,i=jr(n);return u}function Ir(n,t,r,e,u,o,i,f){var a=t&S;if(!a&&!we(n))throw new Qe(L);var l=t&k;l&&!u.length&&(t&=~k,l=false,u=o=null);var s=t&U;s&&!i.length&&(t&=~U,s=false,i=f=null);var p=(p=!a&&Pu(n))&&true!==p&&p;if(p){var h=p[1],g=h&C,v=t&C;n=p[0],t|=h,null==r&&(r=p[2]),g&&(e=p[3]),!v&&g&&(t|=D),(h=p[4])&&(g=p[5],u=l?mr(h,g,u):c(h),o=l?x(u,P):c(g)),(h=p[6])&&(g=p[7],i=s?dr(h,g,i):c(h),f=s?x(i,P):c(g))
|
||||
}return null==r&&(r=a?0:n.length),(p?$u:Bu)(t==C?xr(n,e):t!=k&&t!=(C|k)||o.length?Ar(n,t,r,e,u,o,i,f):Or(n,t,u,e),[n,t,r,e,u,o,i,f])}function Cr(n,t,r){var e=Ut.callback||Le,e=e===Le?qt:e;return r?e(n,t,r):e}function Sr(n,t,r){var e=Ut.indexOf||Br,e=e===Br?l:e;return n?e(n,t,r):e}function Fr(n,t){var r=-1,e=n.length,u=n.constructor(e);if(!t)for(;++r<e;)u[r]=n[r];return e&&"string"==typeof n[0]&&iu.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function Rr(n,t){var r=au.call(n);if(!Dt[r]||Bt(n))return n;
|
||||
var e=n.constructor,u=r==st||!Nu.argsClass&&be(n),o=r==dt;if(!o||typeof e=="function"&&e instanceof e||(e=Xe),u||o){var i=t?new e:Nt(new e,n);return u&&(i.length=n.length),i}switch(r){case xt:return yr(n);case ht:case gt:return new e(+n);case wt:case jt:case At:case Et:case Ot:case It:case Ct:case St:case Ft:return e instanceof e&&(e=Wu[r]),r=n.buffer,new e(t?yr(r):r,n.byteOffset,n.length);case mt:case _t:return new e(n);case bt:i=e(n.source,H.exec(n)),i.lastIndex=n.lastIndex}return i}function Dr(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Rt[au.call(n)]||false
|
||||
}function kr(n){return n===n&&(0===n?0<1/n:!je(n))}function Ur(n,t){n=$r(n);for(var r=-1,e=t.length,u={};++r<e;){var o=t[r];o in n&&(u[o]=n[o])}return u}function Tr(n,t){var r={};return tr(n,function(n,e,u){t(n,e,u)&&(r[e]=n)}),r}function Wr(n){var t,r;return!n||typeof n!="object"||au.call(n)!=dt||Bt(n)||!(iu.call(n,"constructor")||(t=n.constructor,typeof t!="function"||t instanceof t))||!Nu.argsClass&&be(n)?false:Nu.ownLast?(tr(n,function(n,t,e){return r=iu.call(e,t),false}),false!==r):(tr(n,function(n,t){r=t
|
||||
}),typeof r=="undefined"||iu.call(n,r))}function Lr(n){for(var t,r=-1,e=Se(n),u=e.length,o=u&&n.length,i=o-1,f=[],o=typeof o=="number"&&0<o&&(Yu(n)||Nu.nonEnumStrings&&Ie(n)||Nu.nonEnumArgs&&be(n));++r<u;){var a=e[r];(o&&(t=+a,-1<t&&t<=i&&0==t%1)||iu.call(n,a))&&f.push(a)}return f}function Nr(n){if(null==n)return[];var t=n.length;return typeof t=="number"&&-1<t&&t<=q?Nu.unindexedChars&&Ie(n)?n.split(""):je(n)?n:Xe(n):Fe(n)}function $r(n){if(Nu.unindexedChars&&Ie(n)){for(var t=-1,r=n.length,e=Xe(n);++t<r;)e[t]=n.charAt(t);
|
||||
return e}return je(n)?n:Xe(n)}function qr(n,t,r){var e=-1,u=n?n.length:0;for(t=Cr(t,r,3);++e<u;)if(t(n[e],e,n))return e;return-1}function Pr(n){return n?n[0]:O}function Br(n,t,r){var e=n?n.length:0;if(typeof r=="number")r=0>r?Cu(e+r,0):r||0;else if(r)return r=Kr(n,t),e&&n[r]===t?r:-1;return l(n,t,r)}function Mr(n){return zr(n,1)}function zr(n,t,r){var e=-1,u=n?n.length:0;if(t=null==t?0:+t||0,0>t&&(t=-t>u?0:u+t),r=typeof r=="undefined"||r>u?u:+r||0,0>r&&(r+=u),r&&r==u&&!t)return c(n);for(u=t>r?0:r-t,r=ze(u);++e<u;)r[e]=n[e+t];
|
||||
return r}function Kr(n,t,r,e){return r=null==r?Ne:Cr(r,e,1),hr(n,t,r)}function Zr(n,t,r,e){return r=null==r?Ne:Cr(r,e,1),hr(n,t,r,true)}function Vr(n,t,r,e){if(!n||!n.length)return[];var u=typeof t;if("boolean"!=u&&null!=t&&(e=r,r=t,t=false,"number"!=u&&"string"!=u||!e||e[r]!==n||(r=null)),null!=r&&(r=Cr(r,e,3)),t&&Sr()==l){t=r;var o;r=-1,e=n.length;for(var u=-1,i=[];++r<e;){var f=n[r],a=t?t(f,r,n):f;r&&o===a||(o=a,i[++u]=f)}n=i}else n=gr(n,r);return n}function Yr(n){for(var t=-1,r=je(r=ue(n,"length"))&&r.length||0,e=ze(r);++t<r;)e[t]=oe(n,t);
|
||||
return e}function Jr(n,t){var r=-1,e=n?n.length:0,u={};for(t||!e||Yu(n[0])||(t=[]);++r<e;){var o=n[r];t?u[o]=t[r]:o&&(u[o[0]]=o[1])}return u}function Xr(n){return n=Ut(n),n.__chain__=true,n}function Gr(n,t,r){var e=n?n.length:0;return typeof e=="number"&&-1<e&&e<=q||(n=Fe(n),e=n.length),r=typeof r=="number"?0>r?Cu(e+r,0):r||0:0,typeof n=="string"||!Yu(n)&&Ie(n)?r<e&&-1<n.indexOf(t,r):-1<Sr(n,t,r)}function Hr(n,r,e){var u=Yu(n)?t:Jt;return(typeof r!="function"||typeof e!="undefined")&&(r=Cr(r,e,3)),u(n,r)
|
||||
}function Qr(n,t,r){var u=Yu(n)?e:Xt;return t=Cr(t,r,3),u(n,t)}function ne(n,t,r){return Yu(n)?(t=qr(n,t,r),-1<t?n[t]:O):(t=Cr(t,r,3),Gt(n,t,Vt))}function te(t,r,e){return typeof r=="function"&&typeof e=="undefined"&&Yu(t)?n(t,r):Vt(t,qt(r,e,3))}function re(n,t,r){if(typeof t=="function"&&typeof r=="undefined"&&Yu(n))for(r=n.length;r--&&false!==t(n[r],r,n););else n=Yt(n,qt(t,r,3));return n}function ee(n,t,e){return t=Cr(t,e,3),(Yu(n)?r:fr)(n,t)}function ue(n,t,r){var e=-1/0,u=e,o=typeof t;"number"!=o&&"string"!=o||!r||r[t]!==n||(t=null);
|
||||
var o=null==t,i=!(o&&Yu(n))&&Ie(n);if(o&&!i)for(r=-1,n=Nr(n),o=n.length;++r<o;)i=n[r],i>u&&(u=i);else t=o&&i?p:Cr(t,r,3),Vt(n,function(n,r,o){r=t(n,r,o),(r>e||-1/0===r&&r===u)&&(e=r,u=n)});return u}function oe(n,t){return ee(n,Me(t))}function ie(n,t,r,e){return(Yu(n)?u:sr)(n,Cr(t,e,4),r,3>arguments.length,Vt)}function fe(n,t,r,e){return(Yu(n)?o:sr)(n,Cr(t,e,4),r,3>arguments.length,Yt)}function ae(n){n=Nr(n);for(var t=-1,r=n.length,e=ze(r);++t<r;){var u=cr(0,t);t!=u&&(e[t]=e[u]),e[u]=n[t]}return e
|
||||
}function le(n,t,r){var e=Yu(n)?i:pr;return(typeof t!="function"||typeof r!="undefined")&&(t=Cr(t,r,3)),e(n,t)}function ce(n,t){var r;if(!we(t)){if(!we(n))throw new Qe(L);var e=n;n=t,t=e}return function(){return 0<--n?r=t.apply(this,arguments):t=null,r}}function se(n,t){if(3>arguments.length)return Ir(n,C,null,t);var r=zr(arguments,2),e=x(r,se.placeholder);return lr(n,C|k,r,e,t)}function pe(n,t){var r=C|S;if(2<arguments.length)var e=zr(arguments,2),u=x(e,pe.placeholder);return e?Ir(t,r,null,n,e,u):Ir(t,r,null,n)
|
||||
}function he(n,t){var r=Kt(n,F,t);return r.placeholder=he.placeholder,r}function ge(n,t){var r=Kt(n,R,t);return r.placeholder=ge.placeholder,r}function ve(n,t,r){function e(){var r=t-(eo()-l);0>=r||r>t?(f&&hu(f),r=p,f=s=p=O,r&&(h=eo(),a=n.apply(c,i),s||f||(i=c=null))):s=bu(e,r)}function u(){s&&hu(s),f=s=p=O,(v||g!==t)&&(h=eo(),a=n.apply(c,i),s||f||(i=c=null))}function o(){if(i=arguments,l=eo(),c=this,p=v&&(s||!y),false===g)var r=y&&!s;else{f||y||(h=l);var o=g-(l-h),m=0>=o||o>g;m?(f&&(f=hu(f)),h=l,a=n.apply(c,i)):f||(f=bu(u,o))
|
||||
}return m&&s?s=hu(s):s||t===g||(s=bu(e,t)),r&&(m=true,a=n.apply(c,i)),!m||s||f||(i=c=null),a}var i,f,a,l,c,s,p,h=0,g=false,v=true;if(!we(n))throw new Qe(L);if(t=0>t?0:t,true===r)var y=true,v=false;else je(r)&&(y=r.leading,g="maxWait"in r&&Cu(+r.maxWait||0,t),v="trailing"in r?r.trailing:v);return o.cancel=function(){s&&hu(s),f&&hu(f),f=s=p=O},o}function ye(){var n=arguments,r=n.length-1;if(0>r)return function(){};if(!t(n,we))throw new Qe(L);return function(){for(var t=r,e=n[t].apply(this,arguments);t--;)e=n[t].call(this,e);
|
||||
return e}}function me(n){var t=zr(arguments,1),r=x(t,me.placeholder);return lr(n,k,t,r)}function de(n){var t=zr(arguments,1),r=x(t,de.placeholder);return lr(n,U,t,r)}function be(n){var t=n&&typeof n=="object"?n.length:O;return typeof t=="number"&&-1<t&&t<=q&&au.call(n)==st||false}function _e(n){return n&&typeof n=="object"&&1===n.nodeType&&(Nu.nodeClass?-1<au.call(n).indexOf("Element"):Bt(n))||false}function xe(n){return n&&typeof n=="object"&&au.call(n)==vt||false}function we(n){return typeof n=="function"||false
|
||||
}function je(n){var t=typeof n;return"function"==t||n&&"object"==t||false}function Ae(n){return we(n)?lu.test(ou.call(n)):n&&typeof n=="object"&&(Bt(n)?lu:tt).test(n)||false}function Ee(n){var t=typeof n;return"number"==t||n&&"object"==t&&au.call(n)==mt||false}function Oe(n){return je(n)&&au.call(n)==bt||false}function Ie(n){return typeof n=="string"||n&&typeof n=="object"&&au.call(n)==_t||false}function Ce(n){return ur(n,Se(n))}function Se(n){if(null==n)return[];je(n)||(n=Xe(n));for(var t,r=n.length,r=typeof r=="number"&&0<r&&(Yu(n)||Nu.nonEnumStrings&&Ie(n)||Nu.nonEnumArgs&&be(n))&&r||0,e=n.constructor,u=-1,o=typeof e=="function"&&e.prototype===n,i=r-1,e=ze(r),f=0<r,a=Nu.enumErrorProps&&(n===tu||n instanceof Ze),l=Nu.enumPrototypes&&typeof n=="function";++u<r;)e[u]=He(u);
|
||||
for(var c in n)o&&"constructor"==c||l&&"prototype"==c||a&&("message"==c||"name"==c)||f&&(t=+c,-1<t&&t<=i&&0==t%1)||e.push(c);if(Nu.nonEnumShadows&&n!==ru){if(u=-1,r=ct.length,o){t=n===eu?_t:n===tu?vt:au.call(n);var s=Lu[t]}for(;++u<r;)c=ct[u],s&&s[c]||!iu.call(n,c)||e.push(c)}return e}function Fe(n){return vr(n,Hu)}function Re(n){return(n=null==n?"":He(n))?n.replace(rt,m):n}function De(n){return(n=null==n?"":He(n))&&(ut.lastIndex=0,ut.test(n))?n.replace(ut,"\\$&"):n}function ke(n,t){var r="";if(t=+t,1>t||null==n||!Ou(t))return r;
|
||||
n=He(n);do t%2&&(r+=n),t=gu(t/2),n+=n;while(t);return r}function Ue(n,t){return(n=null==n?"":He(n))?null==t?n.slice(w(n),j(n)+1):(t=He(t),n.slice(h(n,t),g(n,t)+1)):n}function Te(n,t){return(n=null!=n&&He(n))&&n.match(t||ft)||[]}function We(n){try{return n()}catch(t){return xe(t)?t:Ze(t)}}function Le(n,t){return qt(n,t)}function Ne(n){return n}function $e(n){var t=Hu(n),r=t.length;if(1==r){var e=t[0],u=n[e];if(kr(u))return function(n){return null!=n&&u===n[e]&&iu.call(n,e)}}for(var o=r,i=ze(r),f=ze(r);o--;){var u=n[t[o]],a=kr(u);
|
||||
i[o]=a,f[o]=a?u:Pt(u)}return function(n){if(o=r,null==n)return!o;for(;o--;)if(i[o]?f[o]!==n[t[o]]:!iu.call(n,t[o]))return false;for(o=r;o--;)if(i[o]?!iu.call(n,t[o]):!or(f[o],n[t[o]],null,true))return false;return true}}function qe(n,t,r){var e=true,u=je(t),o=null==r,i=o&&u&&Hu(t),f=i&&ur(t,i);(i&&i.length&&!f.length||o&&!u)&&(o&&(r=t),f=false,t=n,n=this),f||(f=ur(t,Hu(t))),false===r?e=false:je(r)&&"chain"in r&&(e=r.chain),r=-1,u=we(n);for(o=f.length;++r<o;)i=f[r],n[i]=t[i],u&&(n.prototype[i]=function(t){return function(){if(e||this.__chain__){var r=n(this.__wrapped__);
|
||||
return r.__chain__=this.__chain__,(r.__queue__=c(this.__queue__)).push([t,n,arguments]),r}return r=[this.value()],yu.apply(r,arguments),n[t].apply(n,r)}}(i));return n}function Pe(){}function Be(n,t,r){return Du(n,r?0:t)}function Me(n){return function(t){return null==t?O:t[n]}}_=_?Mt.defaults($t.Object(),_,Mt.pick($t,lt)):$t;var ze=_.Array,Ke=_.Date,Ze=_.Error,Ve=_.Function,Ye=_.Math,Je=_.Number,Xe=_.Object,Ge=_.RegExp,He=_.String,Qe=_.TypeError,nu=ze.prototype,tu=Ze.prototype,ru=Xe.prototype,eu=He.prototype,uu=(uu=_.window)&&uu.document,ou=Ve.prototype.toString,iu=ru.hasOwnProperty,fu=_._,au=ru.toString,lu=Ge("^"+De(au).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),cu=Ae(cu=_.ArrayBuffer)&&cu,su=Ae(su=cu&&new cu(0).slice)&&su,pu=Ye.ceil,hu=_.clearTimeout,gu=Ye.floor,vu=Ae(vu=Xe.getPrototypeOf)&&vu,yu=nu.push,mu=ru.propertyIsEnumerable,du=Ae(du=_.Set)&&du,bu=_.setTimeout,_u=nu.splice,xu=Ae(xu=_.Uint8Array)&&xu,wu=Ae(wu=_.d)&&wu,ju=function(){try{var n=Ae(n=_.Float64Array)&&n,t=new n(new cu(10),0,1)&&n
|
||||
}catch(r){}return t}(),Au=Ae(Au=Xe.create)&&Au,Eu=Ae(Eu=ze.isArray)&&Eu,Ou=_.isFinite,Iu=Ae(Iu=Xe.keys)&&Iu,Cu=Ye.max,Su=Ye.min,Fu=Ae(Fu=Ke.now)&&Fu,Ru=Ae(Ru=Je.isFinite)&&Ru,Du=_.parseInt,ku=Ye.random,Uu=ju?ju.BYTES_PER_ELEMENT:0,Tu=wu&&new wu,Wu={};Wu[wt]=_.Float32Array,Wu[jt]=_.Float64Array,Wu[At]=_.Int8Array,Wu[Et]=_.Int16Array,Wu[Ot]=_.Int32Array,Wu[It]=_.Uint8Array,Wu[Ct]=_.Uint8ClampedArray,Wu[St]=_.Uint16Array,Wu[Ft]=_.Uint32Array;var Lu={};Lu[pt]=Lu[gt]=Lu[mt]={constructor:true,toLocaleString:true,toString:true,valueOf:true},Lu[ht]=Lu[_t]={constructor:true,toString:true,valueOf:true},Lu[vt]=Lu[yt]=Lu[bt]={constructor:true,toString:true},Lu[dt]={constructor:true},n(ct,function(n){for(var t in Lu)if(iu.call(Lu,t)){var r=Lu[t];
|
||||
r[n]=iu.call(r,n)}});var Nu=Ut.support={};!function(x_){function n(){this.x=1}var t={0:1,length:1},r=[];n.prototype={valueOf:1,y:1};for(var e in new n)r.push(e);Nu.argsClass=au.call(arguments)==st,Nu.enumErrorProps=mu.call(tu,"message")||mu.call(tu,"name"),Nu.enumPrototypes=mu.call(n,"prototype"),Nu.funcDecomp=!Ae(_.WinRTError)&&ot.test(E),Nu.funcNames=typeof Ve.name=="string",Nu.nodeClass=au.call(uu)!=dt,Nu.nonEnumStrings=!mu.call("x",0),Nu.nonEnumShadows=!/valueOf/.test(r),Nu.ownLast="x"!=r[0],Nu.spliceObjects=(_u.call(t,0,1),!t[0]),Nu.unindexedChars="xx"!="x"[0]+Xe("x")[0];
|
||||
try{Nu.dom=11===uu.createDocumentFragment().nodeType}catch(u){Nu.dom=false}try{Nu.nonEnumArgs=!mu.call(arguments,1)}catch(o){Nu.nonEnumArgs=true}}(0,0),Ut.templateSettings={escape:Y,evaluate:J,interpolate:X,variable:"",imports:{_:Ut}},Au||(zt=function(){function n(){}return function(t){if(je(t)){n.prototype=t;var r=new n;n.prototype=null}return r||_.Object()}}());var $u=Tu?function(n,t){return Tu.set(n,t),n}:Ne;su||(yr=cu&&xu?function(n){var t=n.byteLength,r=ju?gu(t/Uu):0,e=r*Uu,u=new cu(t);if(r){var o=new ju(u,0,r);
|
||||
o.set(new ju(n,0,r))}return t!=e&&(o=new xu(u,e),o.set(new xu(n,e))),u}:Ne);var qu=du&&function(n){var t=new du,r=n?n.length:0;for(t.push=t.add;r--;)t.push(n[r]);return t},Pu=Tu?function(n){return Tu.get(n)}:Pe,Bu=function(){var n=0,t=0;return function(r,e){var u=eo?eo():0,o=W-(u-t);if(t=u,0<o){if(++n>=T)return r}else n=0;return $u(r,e)}}(),Mu=br(function(n,t,r){iu.call(n,r)?++n[r]:n[r]=1}),zu=br(function(n,t,r){iu.call(n,r)?n[r].push(t):n[r]=[t]}),Ku=br(function(n,t,r){n[r]=t}),Zu=br(function(n,t,r){n[r?0:1].push(t)
|
||||
},function(){return[[],[]]}),Vu=me(ce,2);Nu.argsClass||(be=function(n){var t=n&&typeof n=="object"?n.length:O;return typeof t=="number"&&-1<t&&t<=q&&iu.call(n,"callee")&&!mu.call(n,"callee")||false});var Yu=Eu||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&au.call(n)==pt||false};Nu.dom||(_e=function(n){return n&&typeof n=="object"&&1===n.nodeType&&!Xu(n)||false});var Ju=Ru||function(n){return typeof n=="number"&&Ou(n)};we(/x/)&&(we=function(n){return typeof n=="function"&&au.call(n)==yt
|
||||
});var Xu=vu?function(n){if(!n||au.call(n)!=dt||!Nu.argsClass&&be(n))return false;var t=n.valueOf,r=Ae(t)&&(r=vu(t))&&vu(r);return r?n==r||vu(n)==r:Wr(n)}:Wr,Gu=_r(Nt),Hu=Iu?function(n){if(n)var t=n.constructor,r=n.length;return typeof t=="function"&&t.prototype===n||typeof r=="number"&&0<r||Nu.enumPrototypes&&typeof n=="function"?Lr(n):je(n)?Iu(n):[]}:Lr,Qu=_r(ar),no=wr(function(n,t,r){return t=t.toLowerCase(),r?n+t.charAt(0).toUpperCase()+t.slice(1):t}),to=wr(function(n,t,r){return n+(r?"-":"")+t.toLowerCase()
|
||||
}),ro=wr(function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}),eo=Fu||function(){return(new Ke).getTime()};return 8!=Du(at+"08")&&(Be=function(n,t,r){return n=Ue(n),Du(n,(r?0:+t)||(nt.test(n)?16:10))}),Ut.after=function(n,t){if(!we(t)){if(!we(n))throw new Qe(L);var r=n;n=t,t=r}return n=Ou(n=+n)?n:0,function(){return 1>--n?t.apply(this,arguments):void 0}},Ut.assign=Gu,Ut.at=function(n){var t=n?n.length:0;return typeof t=="number"&&-1<t&&t<=q&&(n=Nr(n)),f(n,Ht(arguments,false,false,1))},Ut.before=ce,Ut.bind=se,Ut.bindAll=function(n){for(var t=n,r=1<arguments.length?Ht(arguments,false,false,1):Ce(n),e=-1,u=r.length;++e<u;){var o=r[e];
|
||||
t[o]=Ir(t[o],C,null,t)}return t},Ut.bindKey=pe,Ut.callback=Le,Ut.chain=Xr,Ut.chunk=function(n,t){var r=0,e=n?n.length:0,u=-1,o=[];for(t=typeof t=="undefined"?1:Cu(+t||1,1);r<e;)o[++u]=zr(n,r,r+=t);return o},Ut.compact=function(n){for(var t=-1,r=n?n.length:0,e=-1,u=[];++t<r;){var o=n[t];o&&(u[++e]=o)}return u},Ut.constant=function(n){return function(){return n}},Ut.countBy=Mu,Ut.create=function(n,t){var r=zt(n);return t?Nt(r,t):r},Ut.curry=he,Ut.curryRight=ge,Ut.debounce=ve,Ut.defaults=function(n){if(null==n)return n;
|
||||
var t=c(arguments);return t.push(Wt),Gu.apply(O,t)},Ut.defer=function(n){if(!we(n))throw new Qe(L);var t=zr(arguments,1);return bu(function(){n.apply(O,t)},1)},Ut.delay=function(n,t){if(!we(n))throw new Qe(L);var r=zr(arguments,2);return bu(function(){n.apply(O,r)},t)},Ut.difference=function(){for(var n=-1,t=arguments.length;++n<t;){var r=arguments[n];if(Yu(r)||be(r))break}return Zt(arguments[n],Ht(arguments,false,true,++n))},Ut.drop=function(n,t,r){return t=null==t||r?1:t,zr(n,0>t?0:t)},Ut.dropRight=function(n,t,r){var e=n?n.length:0;
|
||||
return t=e-((null==t||r?1:t)||0),zr(n,0,0>t?0:t)},Ut.dropRightWhile=function(n,t,r){var e=n?n.length:0;for(t=Cr(t,r,3);e--&&t(n[e],e,n););return zr(n,0,e+1)},Ut.dropWhile=function(n,t,r){var e=-1,u=n?n.length:0;for(t=Cr(t,r,3);++e<u&&t(n[e],e,n););return zr(n,e)},Ut.filter=Qr,Ut.flatten=function(n,t,r){if(!n||!n.length)return[];var e=typeof t;return"number"!=e&&"string"!=e||!r||r[t]!==n||(t=false),Ht(n,t)},Ut.flattenDeep=function(n){return n&&n.length?Ht(n,true):[]},Ut.flow=function(){var n=arguments,r=n.length;
|
||||
if(!r)return function(){};if(!t(n,we))throw new Qe(L);return function(){for(var t=0,e=n[t].apply(this,arguments);++t<r;)e=n[t].call(this,e);return e}},Ut.flowRight=ye,Ut.forEach=te,Ut.forEachRight=re,Ut.forIn=function(n,t,r){return(typeof t!="function"||typeof r!="undefined")&&(t=qt(t,r,3)),Qt(n,t,Se)},Ut.forInRight=function(n,t,r){return t=qt(t,r,3),nr(n,t,Se)},Ut.forOwn=function(n,t,r){return(typeof t!="function"||typeof r!="undefined")&&(t=qt(t,r,3)),rr(n,t)},Ut.forOwnRight=function(n,t,r){return t=qt(t,r,3),nr(n,t,Hu)
|
||||
},Ut.functions=Ce,Ut.groupBy=zu,Ut.indexBy=Ku,Ut.initial=function(n){var t=n?n.length:0;return zr(n,0,t?t-1:0)},Ut.intersection=function(){for(var n=[],t=-1,r=arguments.length,e=[],u=Sr(),o=qu&&u==l;++t<r;){var i=arguments[t];(Yu(i)||be(i))&&(n.push(i),e.push(o&&120<=i.length&&qu(t&&i)))}var r=n.length,o=n[0],f=-1,a=o?o.length:0,c=[],p=e[0];n:for(;++f<a;)if(i=o[f],0>(p?s(p,i):u(c,i))){for(t=r;--t;){var h=e[t];if(0>(h?s(h,i):u(n[t],i)))continue n}p&&p.push(i),c.push(i)}return c},Ut.invert=function(n,t){for(var r=-1,e=Hu(n),u=e.length,o={};++r<u;){var i=e[r],f=n[i];
|
||||
t?iu.call(o,f)?o[f].push(i):o[f]=[i]:o[f]=i}return o},Ut.invoke=function(n,t){return ir(n,t,zr(arguments,2))},Ut.keys=Hu,Ut.keysIn=Se,Ut.map=ee,Ut.mapValues=function(n,t,r){t=Cr(t,r,3);var e={};return rr(n,function(n,r,u){e[r]=t(n,r,u)}),e},Ut.matches=$e,Ut.memoize=function(n,t){function r(){var e=t?t.apply(this,arguments):arguments[0];if("__proto__"==e)return n.apply(this,arguments);var u=r.cache;return iu.call(u,e)?u[e]:u[e]=n.apply(this,arguments)}if(!we(n)||t&&!we(t))throw new Qe(L);return r.cache={},r
|
||||
},Ut.merge=Qu,Ut.mixin=qe,Ut.negate=function(n){if(!we(n))throw new Qe(L);return function(){return!n.apply(this,arguments)}},Ut.omit=function(n,t,e){if(null==n)return{};if(typeof t!="function"){var u=r(Ht(arguments,false,false,1),He);return Ur(n,Zt(Se(n),u))}return t=Cr(t,e,3),Tr(n,function(n,r,e){return!t(n,r,e)})},Ut.once=Vu,Ut.pairs=function(n){for(var t=-1,r=Hu(n),e=r.length,u=ze(e);++t<e;){var o=r[t];u[t]=[o,n[o]]}return u},Ut.partial=me,Ut.partialRight=de,Ut.partition=Zu,Ut.pick=function(n,t,r){return null==n?{}:typeof t=="function"?Tr(n,Cr(t,r,3)):Ur(n,Ht(arguments,false,false,1))
|
||||
},Ut.pluck=oe,Ut.property=Me,Ut.pull=function(){for(var n=arguments[0],t=0,r=Sr(),e=arguments.length;++t<e;)for(var u=0,o=arguments[t];-1<(u=r(n,o,u));)_u.call(n,u,1);return n},Ut.pullAt=function(n){var t=n,r=Ht(arguments,false,false,1),e=r.length,u=f(t,r);for(r.sort(a);e--;){var o=parseFloat(r[e]);if(o!=i&&-1<o&&0==o%1){var i=o;_u.call(t,o,1)}}return u},Ut.range=function(n,t,r){n=+n||0;var e=typeof t;"number"!=e&&"string"!=e||!r||r[t]!==n||(t=r=null),r=null==r?1:+r||0,null==t?(t=n,n=0):t=+t||0,e=-1,t=Cu(pu((t-n)/(r||1)),0);
|
||||
for(var u=ze(t);++e<t;)u[e]=n,n+=r;return u},Ut.reject=function(n,t,r){var u=Yu(n)?e:Xt;return t=Cr(t,r,3),u(n,function(n,r,e){return!t(n,r,e)})},Ut.remove=function(n,t,r){var e=-1,u=n?n.length:0,o=[];for(t=Cr(t,r,3);++e<u;)r=n[e],t(r,e,n)&&(o.push(r),_u.call(n,e--,1),u--);return o},Ut.rest=Mr,Ut.shuffle=ae,Ut.slice=zr,Ut.sortBy=function(n,t,r){var e=-1,u=n?n.length:0,o=t&&Yu(t),i=[];for(typeof u=="number"&&-1<u&&u<=q&&(i.length=u),o||(t=Cr(t,r,3)),Vt(n,function(n,r,u){if(o)for(r=t.length,u=ze(r);r--;)u[r]=null==n?O:n[t[r]];
|
||||
else u=t(n,r,u);i[++e]={a:u,b:e,c:n}}),u=i.length,i.sort(o?y:v);u--;)i[u]=i[u].c;return i},Ut.take=function(n,t,r){return t=null==t||r?1:t,zr(n,0,0>t?0:t)},Ut.takeRight=function(n,t,r){var e=n?n.length:0;return t=e-((null==t||r?1:t)||0),zr(n,0>t?0:t)},Ut.takeRightWhile=function(n,t,r){var e=n?n.length:0;for(t=Cr(t,r,3);e--&&t(n[e],e,n););return zr(n,e+1)},Ut.takeWhile=function(n,t,r){var e=-1,u=n?n.length:0;for(t=Cr(t,r,3);++e<u&&t(n[e],e,n););return zr(n,0,e)},Ut.tap=function(n,t,r){return t.call(r,n),n
|
||||
},Ut.throttle=function(n,t,r){var e=true,u=true;if(!we(n))throw new Qe(L);return false===r?e=false:je(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),kt.leading=e,kt.maxWait=+t,kt.trailing=u,ve(n,t,kt)},Ut.thru=function(n,t,r){return t.call(r,n)},Ut.times=function(n,t,r){n=Ou(n=+n)&&-1<n?n:0,t=qt(t,r,1),r=-1;for(var e=ze(Su(n,N));++r<n;)r<N?e[r]=t(r):t(r);return e},Ut.toArray=function(n){var t=n?n.length:0;return typeof t=="number"&&-1<t&&t<=q?Nu.unindexedChars&&Ie(n)?n.split(""):c(n):Fe(n)
|
||||
},Ut.transform=function(t,r,e,u){if(r=Cr(r,u,4),u=Dr(t),null==e)if(u)e=[];else if(je(t)){var o=t.constructor;e=zt(typeof o=="function"&&o.prototype)}else e={};return(u?n:rr)(t,function(n,t,u){return r(e,n,t,u)}),e},Ut.union=function(){return gr(Ht(arguments,false,true))},Ut.uniq=Vr,Ut.unzip=Yr,Ut.values=Fe,Ut.valuesIn=function(n){return vr(n,Se)},Ut.where=function(n,t){return Qr(n,$e(t))},Ut.without=function(n){return Zt(n,zr(arguments,1))},Ut.wrap=function(n,t){return lr(t,k,[n],[])},Ut.xor=function(){for(var n=-1,t=arguments.length;++n<t;){var r=arguments[n];
|
||||
if(Yu(r)||be(r))var e=e?Zt(e,r).concat(Zt(r,e)):r}return e?gr(e):[]},Ut.zip=function(){for(var n=arguments.length,t=ze(n);n--;)t[n]=arguments[n];return Yr(t)},Ut.zipObject=Jr,Ut.backflow=ye,Ut.collect=ee,Ut.compose=ye,Ut.each=te,Ut.eachRight=re,Ut.extend=Gu,Ut.iteratee=Le,Ut.methods=Ce,Ut.object=Jr,Ut.select=Qr,Ut.tail=Mr,Ut.unique=Vr,qe(Ut,Ut),Ut.attempt=We,Ut.camelCase=no,Ut.capitalize=function(n){return(n=null==n?"":He(n))?n.charAt(0).toUpperCase()+n.slice(1):n},Ut.clone=function(n,t,r,e){var u=typeof t;
|
||||
return"boolean"!=u&&null!=t&&(e=r,r=t,t=false,"number"!=u&&"string"!=u||!e||e[r]!==n||(r=null)),r=typeof r=="function"&&qt(r,e,1),Pt(n,t,r)},Ut.cloneDeep=function(n,t,r){return t=typeof t=="function"&&qt(t,r,1),Pt(n,true,t)},Ut.contains=Gr,Ut.deburr=Re,Ut.endsWith=function(n,t,r){n=null==n?"":He(n),t=He(t);var e=n.length;return r=(typeof r=="undefined"?e:Su(0>r?0:+r||0,e))-t.length,0<=r&&n.indexOf(t,r)==r},Ut.escape=function(n){return(n=null==n?"":He(n))&&(V.lastIndex=0,V.test(n))?n.replace(V,d):n},Ut.escapeRegExp=De,Ut.every=Hr,Ut.find=ne,Ut.findIndex=qr,Ut.findKey=function(n,t,r){return t=Cr(t,r,3),Gt(n,t,rr,true)
|
||||
},Ut.findLast=function(n,t,r){return t=Cr(t,r,3),Gt(n,t,Yt)},Ut.findLastIndex=function(n,t,r){var e=n?n.length:0;for(t=Cr(t,r,3);e--;)if(t(n[e],e,n))return e;return-1},Ut.findLastKey=function(n,t,r){return t=Cr(t,r,3),Gt(n,t,er,true)},Ut.findWhere=function(n,t){return ne(n,$e(t))},Ut.first=Pr,Ut.has=function(n,t){return n?iu.call(n,t):false},Ut.identity=Ne,Ut.indexOf=Br,Ut.isArguments=be,Ut.isArray=Yu,Ut.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&au.call(n)==ht||false},Ut.isDate=function(n){return n&&typeof n=="object"&&au.call(n)==gt||false
|
||||
},Ut.isElement=_e,Ut.isEmpty=function(n){if(null==n)return true;var t=n.length;return typeof t=="number"&&-1<t&&t<=q&&(Yu(n)||Ie(n)||be(n)||typeof n=="object"&&we(n.splice))?!t:!Hu(n).length},Ut.isEqual=function(n,t,r,e){return r=typeof r=="function"&&qt(r,e,3),!r&&kr(n)&&kr(t)?n===t:or(n,t,r)},Ut.isError=xe,Ut.isFinite=Ju,Ut.isFunction=we,Ut.isNaN=function(n){return Ee(n)&&n!=+n},Ut.isNative=Ae,Ut.isNull=function(n){return null===n},Ut.isNumber=Ee,Ut.isObject=je,Ut.isPlainObject=Xu,Ut.isRegExp=Oe,Ut.isString=Ie,Ut.isUndefined=function(n){return typeof n=="undefined"
|
||||
},Ut.kebabCase=to,Ut.last=function(n){var t=n?n.length:0;return t?n[t-1]:O},Ut.lastIndexOf=function(n,t,r){var e=n?n.length:0,u=e;if(typeof r=="number")u=(0>r?Cu(u+r,0):Su(r||0,u-1))+1;else if(r)return u=Zr(n,t)-1,e&&n[u]===t?u:-1;for(r=t===t;u--;)if(e=n[u],r?e===t:e!==e)return u;return-1},Ut.max=ue,Ut.min=function(n,t,r){var e=1/0,u=e,o=typeof t;"number"!=o&&"string"!=o||!r||r[t]!==n||(t=null);var o=null==t,i=!(o&&Yu(n))&&Ie(n);if(o&&!i)for(r=-1,n=Nr(n),o=n.length;++r<o;)i=n[r],i<u&&(u=i);else t=o&&i?p:Cr(t,r,3),Vt(n,function(n,r,o){r=t(n,r,o),(r<e||1/0===r&&r===u)&&(e=r,u=n)
|
||||
});return u},Ut.noConflict=function(){return _._=fu,this},Ut.noop=Pe,Ut.now=eo,Ut.pad=function(n,t,r){n=null==n?"":He(n),t=+t;var e=n.length;return e<t&&Ou(t)?(e=(t-e)/2,t=gu(e),e=pu(e),r=Er("",e,r),r.slice(0,t)+n+r):n},Ut.padLeft=function(n,t,r){return(n=null==n?"":He(n))?Er(n,t,r)+n:n},Ut.padRight=function(n,t,r){return(n=null==n?"":He(n))?n+Er(n,t,r):n},Ut.parseInt=Be,Ut.random=function(n,t,r){var e=typeof t;"number"!=e&&"string"!=e||!r||r[t]!==n||(t=r=null);var e=null==n,u=null==t;return null==r&&(u&&typeof n=="boolean"?(r=n,n=1):typeof t=="boolean"&&(r=t,u=true)),e&&u&&(t=1,u=false),n=+n||0,u?(t=n,n=0):t=+t||0,r||n%1||t%1?(r=ku(),Su(n+r*(t-n+parseFloat("1e-"+(He(r).length-1))),t)):cr(n,t)
|
||||
},Ut.reduce=ie,Ut.reduceRight=fe,Ut.repeat=ke,Ut.result=function(n,t,r){var e=null==n?O:n[t];return typeof e=="undefined"?r:we(e)?n[t]():e},Ut.runInContext=E,Ut.size=function(n){var t=n?n.length:0;return typeof t=="number"&&-1<t&&t<=q?t:Hu(n).length},Ut.snakeCase=ro,Ut.some=le,Ut.sortedIndex=Kr,Ut.sortedLastIndex=Zr,Ut.startsWith=function(n,t,r){return n=null==n?"":He(n),r=typeof r=="undefined"?0:Su(0>r?0:+r||0,n.length),n.lastIndexOf(t,r)==r},Ut.template=function(n,t,r){var e=Ut.templateSettings;t=Gu({},r||t,e,Lt),n=He(null==n?"":n),r=Gu({},t.imports,e.imports,Lt);
|
||||
var u,o,i=Hu(r),f=Fe(r),a=0;r=t.interpolate||et;var l="__p+='";if(r=Ge((t.escape||et).source+"|"+r.source+"|"+(r===X?G:et).source+"|"+(t.evaluate||et).source+"|$","g"),n.replace(r,function(t,r,e,i,f,c){return e||(e=i),l+=n.slice(a,c).replace(it,b),r&&(u=true,l+="'+__e("+r+")+'"),f&&(o=true,l+="';"+f+";\n__p+='"),e&&(l+="'+((__t=("+e+"))==null?'':__t)+'"),a=c+t.length,t}),l+="';",(t=t.variable)||(l="with(obj){"+l+"}"),l=(o?l.replace(M,""):l).replace(z,"$1").replace(K,"$1;"),l="function("+(t||"obj")+"){"+(t?"":"obj||(obj={});")+"var __t,__p=''"+(u?",__e=_.escape":"")+(o?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+l+"return __p}",t=We(function(){return Ve(i,"return "+l).apply(O,f)
|
||||
}),t.source=l,xe(t))throw t;return t},Ut.trim=Ue,Ut.trimLeft=function(n,t){return(n=null==n?"":He(n))?null==t?n.slice(w(n)):(t=He(t),n.slice(h(n,t))):n},Ut.trimRight=function(n,t){return(n=null==n?"":He(n))?null==t?n.slice(0,j(n)+1):(t=He(t),n.slice(0,g(n,t)+1)):n},Ut.trunc=function(n,t){var r=30,e="...";if(je(t))var u="separator"in t?t.separator:u,r="length"in t?+t.length||0:r,e="omission"in t?He(t.omission):e;else null!=t&&(r=+t||0);if(n=null==n?"":He(n),r>=n.length)return n;var o=r-e.length;if(1>o)return e;
|
||||
if(r=n.slice(0,o),null==u)return r+e;if(Oe(u)){if(n.slice(o).search(u)){var i,f,a=n.slice(0,o);for(u.global||(u=Ge(u.source,(H.exec(u)||"")+"g")),u.lastIndex=0;i=u.exec(a);)f=i.index;r=r.slice(0,null==f?o:f)}}else n.indexOf(u,o)!=o&&(u=r.lastIndexOf(u),-1<u&&(r=r.slice(0,u)));return r+e},Ut.unescape=function(n){return(n=null==n?"":He(n))&&(Z.lastIndex=0,Z.test(n))?n.replace(Z,A):n},Ut.uniqueId=function(n){var t=++B;return He(null==n?"":n)+t},Ut.words=Te,Ut.all=Hr,Ut.any=le,Ut.detect=ne,Ut.foldl=ie,Ut.foldr=fe,Ut.head=Pr,Ut.include=Gr,Ut.inject=ie,qe(Ut,function(){var n={};
|
||||
return rr(Ut,function(t,r){Ut.prototype[r]||(n[r]=t)}),n}(),false),Ut.sample=function(n,t,r){return null==t||r?(n=Nr(n),t=n.length,0<t?n[cr(0,t-1)]:O):(n=ae(n),n.length=Su(0>t?0:+t||0,n.length),n)},Ut.prototype.sample=function(n,t){return n=t?null:n,this.__chain__||null!=n?this.thru(function(t){return Ut.sample(t,n)}):Ut.sample(this.value())},Ut.VERSION=I,Tt.prototype=Ut.prototype,Ut.prototype.chain=function(){return Xr(this)},Ut.prototype.toString=function(){return He(this.value())},Ut.prototype.toJSON=Ut.prototype.value=Ut.prototype.valueOf=function(){for(var n=-1,t=this.__queue__,r=t.length,e=this.__wrapped__;++n<r;){var e=[e],u=t[n],o=u[1];
|
||||
yu.apply(e,u[2]),e=o[u[0]].apply(o,e)}return e},n("bind bindKey curry curryRight partial partialRight".split(" "),function(n){Ut[n].placeholder=Ut}),n("concat join pop push reverse shift sort splice unshift".split(" "),function(n){var t=nu[n],r=/^(?:join|pop|shift)$/.test(n),e=/^(?:push|reverse|sort|unshift)$/.test(n)?"tap":"thru",u=Nu.spliceObjects||!/^(?:pop|shift|splice)$/.test(n)?t:function(){var n=t.apply(this,arguments);return 0===this.length&&delete this[0],n};Ut.prototype[n]=function(){var n=arguments;
|
||||
return r&&!this.__chain__?u.apply(this.value(),n):this[e](function(t){return u.apply(t,n)})}}),Ut}var O,I="3.0.0-pre",C=1,S=2,F=4,R=8,D=16,k=32,U=64,T=150,W=16,L="Expected a function",N=Math.pow(2,32)-1,$=N-1,q=Math.pow(2,53)-1,P="__lodash_placeholder__",B=0,M=/\b__p\+='';/g,z=/\b(__p\+=)''\+/g,K=/(__e\(.*?\)|\b__t\))\+'';/g,Z=/&(?:amp|lt|gt|quot|#39|#96);/g,V=/[&<>"'`]/g,Y=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,G=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,H=/\w*$/,Q=/^\s*function[ \n\r\t]+\w/,nt=/^0[xX]/,tt=/^\[object .+?Constructor\]$/,rt=/[\xC0-\xFF]/g,et=/($^)/,ut=/[.*+?^${}()|[\]\/\\]/g,ot=/\bthis\b/,it=/['\n\r\u2028\u2029\\]/g,ft=RegExp("[A-Z\\xC0-\\xD6\\xD8-\\xDE]{2,}(?=[A-Z\\xC0-\\xD6\\xD8-\\xDE][a-z\\xDF-\\xF6\\xF8-\\xFF]+[0-9]*)|[A-Z\\xC0-\\xD6\\xD8-\\xDE]?[a-z\\xDF-\\xF6\\xF8-\\xFF]+[0-9]*|[A-Z\\xC0-\\xD6\\xD8-\\xDE]+|[0-9]+","g"),at=" \t\x0B\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000",lt="Array ArrayBuffer Date Error Float32Array Float64Array Function Int8Array Int16Array Int32Array Math Number Object RegExp Set String _ clearTimeout document isFinite parseInt setTimeout TypeError Uint8Array Uint8ClampedArray Uint16Array Uint32Array WeakMap window WinRTError".split(" "),ct="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),st="[object Arguments]",pt="[object Array]",ht="[object Boolean]",gt="[object Date]",vt="[object Error]",yt="[object Function]",mt="[object Number]",dt="[object Object]",bt="[object RegExp]",_t="[object String]",xt="[object ArrayBuffer]",wt="[object Float32Array]",jt="[object Float64Array]",At="[object Int8Array]",Et="[object Int16Array]",Ot="[object Int32Array]",It="[object Uint8Array]",Ct="[object Uint8ClampedArray]",St="[object Uint16Array]",Ft="[object Uint32Array]",Rt={};
|
||||
Rt[st]=Rt[pt]=Rt[wt]=Rt[jt]=Rt[At]=Rt[Et]=Rt[Ot]=Rt[It]=Rt[Ct]=Rt[St]=Rt[Ft]=true,Rt[xt]=Rt[ht]=Rt[gt]=Rt[vt]=Rt[yt]=Rt["[object Map]"]=Rt[mt]=Rt[dt]=Rt[bt]=Rt["[object Set]"]=Rt[_t]=Rt["[object WeakMap]"]=false;var Dt={};Dt[st]=Dt[pt]=Dt[xt]=Dt[ht]=Dt[gt]=Dt[wt]=Dt[jt]=Dt[At]=Dt[Et]=Dt[Ot]=Dt[mt]=Dt[dt]=Dt[bt]=Dt[_t]=Dt[It]=Dt[Ct]=Dt[St]=Dt[Ft]=true,Dt[vt]=Dt[yt]=Dt["[object Map]"]=Dt["[object Set]"]=Dt["[object WeakMap]"]=false;var kt={leading:false,maxWait:0,trailing:false},Ut={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Tt={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},Wt={"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\xd7":" ","\xf7":" "},Lt={"function":true,object:true},Nt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},$t=Lt[typeof window]&&window||this,qt=Lt[typeof exports]&&exports&&!exports.nodeType&&exports,Lt=Lt[typeof module]&&module&&!module.nodeType&&module,Pt=qt&&Lt&&typeof global=="object"&&global;
|
||||
!Pt||Pt.global!==Pt&&Pt.window!==Pt&&Pt.self!==Pt||($t=Pt);var Pt=Lt&&Lt.exports===qt&&qt,Bt=function(){try{({toString:0}+"")}catch(n){return function(){return false}}return function(n){return typeof n.toString!="function"&&typeof(n+"")=="string"}}(),Mt=E();typeof define=="function"&&typeof define.amd=="object"&&define.amd?($t._=Mt, define(function(){return Mt})):qt&&Lt?Pt?(Lt.exports=Mt)._=Mt:qt._=Mt:$t._=Mt}).call(this);
|
||||
return r}function i(n,t){for(var r=-1,e=n.length;++r<e;)if(t(n[r],r,n))return true;return false}function f(n,t){for(var r=-1,e=t.length,u=Array(e);++r<e;)u[r]=n[t[r]];return u}function a(n,t){if(n!==t){var r=n===n,e=t===t;if(n>t||!r||typeof n=="undefined"&&e)return 1;if(n<t||!e||typeof t=="undefined"&&r)return-1}return 0}function l(n,t,r){if(t!==t)return _(n,r);r=(r||0)-1;for(var e=n.length;++r<e;)if(n[r]===t)return r;return-1}function c(n){for(var t=-1,r=n?n.length:0,e=Array(r);++t<r;)e[t]=n[t];return e
|
||||
}function s(n,t){return n.has(t)?0:-1}function p(n){return n.charCodeAt(0)}function h(n,t){for(var r=-1,e=n.length;++r<e&&-1<t.indexOf(n.charAt(r)););return r}function g(n,t){for(var r=n.length;r--&&-1<t.indexOf(n.charAt(r)););return r}function v(n,t){return a(n.a,t.a)||n.b-t.b}function y(n,t){for(var r=-1,e=n.a,u=t.a,o=e.length;++r<o;){var i=a(e[r],u[r]);if(i)return i}return n.b-t.b}function d(n){return qt[n]}function m(n){return Nt[n]}function b(n){return"\\"+Bt[n]}function _(n,t,r){var e=n.length;
|
||||
for(t=r?t||e:(t||0)-1;r?t--:++t<e;){var u=n[t];if(u!==u)return t}return-1}function x(n,t,r){var e=typeof t,u=typeof r;return r&&("number"==e||"string"==e)&&("function"==u||"object"==u)&&r[t]===n||false}function w(n){return 160>=n&&9<=n&&13>=n||32==n||160==n||5760==n||6158==n||8192<=n&&(8202>=n||8232==n||8233==n||8239==n||8287==n||12288==n||65279==n)}function j(n,t){for(var r=-1,e=n.length,u=-1,o=[];++r<e;)n[r]===t&&(n[r]=K,o[++u]=r);return o}function A(n){for(var t=-1,r=n.length;++t<r&&w(n.charCodeAt(t)););return t
|
||||
}function E(n){for(var t=n.length;t--&&w(n.charCodeAt(t)););return t}function O(n){return $t[n]}function I(w){function Nt(n){if(n&&typeof n=="object"){if(n instanceof $t)return n;if(!Hu(n)&&cu.call(n,"__wrapped__"))return new $t(n.__wrapped__,n.__chain__,c(n.__queue__))}return new $t(n)}function $t(n,t,r){this.__chain__=!!t,this.__queue__=r||[],this.__wrapped__=n}function qt(n,t){return typeof n=="undefined"?t:n}function Pt(n,t,r,e){return typeof n!="undefined"&&cu.call(e,r)?n:t}function Bt(n,t,r){for(var e=-1,u=ro(t),o=u.length;++e<o;){var i=u[e];
|
||||
n[i]=r?r(n[i],t[i],i,n,t):t[i]}return n}function zt(n,t,r){var e=typeof n;if("function"==e){if(typeof t=="undefined")return n;if(e=Ku(n),typeof e=="undefined"&&(Bu.funcNames&&(e=!n.name),e=e||!Bu.funcDecomp,!e)){var u=lu.call(n);Bu.funcNames||(e=!et.test(u)),e||(e=lt.test(u)||Ce(n),Mu(n,e))}if(false===e||true!==e&&e[1]&S)return n;switch(r){case 1:return function(r){return n.call(t,r)};case 3:return function(r,e,u){return n.call(t,r,e,u)};case 4:return function(r,e,u,o){return n.call(t,r,e,u,o)};case 5:return function(r,e,u,o,i){return n.call(t,r,e,u,o,i)
|
||||
}}return function(){return n.apply(t,arguments)}}return null==n?Be:"object"==e?Me(n):Ve(n)}function Kt(t,r,e,u,o){var i=e?e(t):C;if(typeof i!="undefined")return i;var f=Hu(t),i=t;if(f?i=Ur(t,r):Ie(t)&&(i=Tr(t,r),t=r&&pu.call(i)==wt?t:i),!r||i===t)return i;u||(u=[]),o||(o=[]);for(var a=u.length;a--;)if(u[a]==t)return o[a];return u.push(t),o.push(i),(f?n:ir)(t,function(n,t){var f=e?e(n,t):C;i[t]=typeof f=="undefined"?Kt(n,r,null,u,o):f}),i}function Zt(n){return Ie(n)?Cu(n):{}}function Vt(n,t,r){return typeof r!="number"&&(r=null==r?n?n.length:0:Ru(+r||0,0)),Dr(n,t,r)
|
||||
}function Xt(n,t){var r=n?n.length:0;if(!r)return[];var e=-1,u=kr(),o=u==l,i=o&&zu&&t&&200<=t.length,o=o&&!i,f=[],a=t.length;i&&(u=s,t=zu(t));n:for(;++e<r;)if(i=n[e],o&&i===i){for(var c=a;c--;)if(t[c]===i)continue n;f.push(i)}else 0>u(t,i)&&f.push(i);return f}function Gt(n,t){var r=n?n.length:0;if(typeof r!="number"||-1>=r||r>z)return ir(n,t);for(var e=-1,u=Mr(n);++e<r&&false!==t(u[e],e,u););return n}function Ht(n,t){var r=n?n.length:0;if(typeof r!="number"||-1>=r||r>z)return fr(n,t);for(var e=Mr(n);r--&&false!==t(e[r],r,e););return n
|
||||
}function Qt(n,t){var r=true;return Gt(n,function(n,e,u){return r=!!t(n,e,u)}),r}function nr(n,t){var r=[];return Gt(n,function(n,e,u){t(n,e,u)&&r.push(n)}),r}function tr(n,t,r,e){var u;return r(n,function(n,r,o){return t(n,r,o)?(u=e?r:n,false):void 0}),u}function rr(n,t,r,e){e=(e||0)-1;for(var u=n.length,o=-1,i=[];++e<u;){var f=n[e];if(f&&typeof f=="object"&&typeof f.length=="number"&&(Hu(f)||je(f))){t&&(f=rr(f,t,r));var a=-1,l=f.length;for(i.length+=l;++a<l;)i[++o]=f[a]}else r||(i[++o]=f)}return i}function er(n,t,r){var e=-1,u=Mr(n);
|
||||
r=r(n);for(var o=r.length;++e<o;){var i=r[e];if(false===t(u[i],i,u))break}return n}function ur(n,t,r){var e=Mr(n);r=r(n);for(var u=r.length;u--;){var o=r[u];if(false===t(e[o],o,e))break}return n}function or(n,t){er(n,t,ke)}function ir(n,t){return er(n,t,ro)}function fr(n,t){return ur(n,t,ro)}function ar(n,t){for(var r=-1,e=t.length,u=-1,o=[];++r<e;){var i=t[r];Oe(n[i])&&(o[++u]=i)}return o}function lr(n,t,r,e,u,o){var i=r&&!u?r(n,t):C;if(typeof i!="undefined")return!!i;if(n===t)return 0!==n||1/n==1/t;var f=typeof n,a=typeof t;
|
||||
if(("number"!=f||"number"!=a)&&(null==n||null==t||"function"!=f&&"object"!=f&&"function"!=a&&"object"!=a))return false;var l=pu.call(n),c=l==vt,s=pu.call(t),i=s==vt;c&&(l=wt),i&&(s=wt);var a=Tt[l],f=l==bt,p=l==wt&&!Yt(n),h=s==wt&&!Yt(t);if((s=l==s)&&a){if(c=n.length,p=t.length,c!=p&&!(e&&p>c))return false}else{var g=p&&cu.call(n,"__wrapped__"),h=h&&cu.call(t,"__wrapped__");if(g||h)return lr(g?n.value():n,h?t.value():t,r,e,u,o);if(!s)return false;if(!f&&!p){switch(l){case dt:case mt:return+n==+t;case xt:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;
|
||||
case jt:case At:return n==ru(t)}return false}if(Bu.argsClass||(c=je(n),i=je(t)),g=c?nu:n.constructor,l=i?nu:t.constructor,f){if(g.prototype.name!=l.prototype.name)return false}else if(p=!c&&cu.call(n,"constructor"),h=!i&&cu.call(t,"constructor"),p!=h||!p&&g!=l&&"constructor"in n&&"constructor"in t&&!(typeof g=="function"&&g instanceof g&&typeof l=="function"&&l instanceof l))return false;if(g=f?["message","name"]:ro(n),l=f?g:ro(t),c&&g.push("length"),i&&l.push("length"),c=g.length,p=l.length,c!=p&&!e)return false
|
||||
}for(u||(u=[]),o||(o=[]),l=u.length;l--;)if(u[l]==n)return o[l]==t;if(u.push(n),o.push(t),i=true,a)for(;i&&++l<c;)if(a=n[l],e)for(f=p;f--&&!(i=lr(a,t[f],r,e,u,o)););else h=t[l],i=r?r(a,h,l):C,typeof i=="undefined"&&(i=lr(a,h,r,e,u,o));else for(;i&&++l<c;)p=g[l],(i=f||cu.call(t,p))&&(a=n[p],h=t[p],i=r?r(a,h,p):C,typeof i=="undefined"&&(i=lr(a,h,r,e,u,o)));return u.pop(),o.pop(),!!i}function cr(n,t,r){var e=-1,u=typeof t=="function",o=n?n.length:0,i=[];return typeof o=="number"&&-1<o&&o<=z&&(i.length=o),Gt(n,function(n){var o=u?t:null!=n&&n[t];
|
||||
i[++e]=o?o.apply(n,r):C}),i}function sr(n,t){var r=[];return Gt(n,function(n,e,u){r.push(t(n,e,u))}),r}function pr(t,r,e,u,o){var i=Wr(r);return(i?n:ir)(r,function(n,r,f){var a=n&&Wr(n),l=n&&no(n),c=t[r];if(a||l){for(u||(u=[]),o||(o=[]),l=u.length;l--;)if(u[l]==n)return void(t[r]=o[l]);f=e?e(c,n,r,t,f):C,(l=typeof f=="undefined")&&(f=a?Hu(c)?c:[]:no(c)?c:{}),u.push(n),o.push(f),l&&pr(f,n,e,u,o),t[r]=f}else f=e?e(c,n,r,t,f):C,typeof f=="undefined"&&(f=n),(i||typeof f!="undefined")&&(t[r]=f)}),t}function hr(n,t,r,e,u){if(n)var o=Ku(n),o=o?o[2]:n.length,o=Ru(o-r.length,0);
|
||||
return t&T?Dr(n,t,o,u,r,e):Dr(n,t,o,u,null,null,r,e)}function gr(n,t){return n+mu(Lu()*(t-n+1))}function vr(n,t,r,e,u){return u(n,function(n,u,o){r=e?(e=false,n):t(r,n,u,o)}),r}function yr(n,t){var r;return Gt(n,function(n,e,u){return r=t(n,e,u),!r}),!!r}function dr(n,t,r,e){var u=0,o=n?n.length:u;t=r(t);for(var i=t!==t,f=typeof t=="undefined";u<o;){var a=mu((u+o)/2),l=r(n[a]),c=l===l;(i?c||e:f?c&&(e||typeof l!="undefined"):e?l<=t:l<t)?u=a+1:o=a}return ku(o,M)}function mr(n,t){var r=-1,e=kr(),u=n.length,o=e==l,i=o&&zu&&200<=u,o=o&&!i,f=[];
|
||||
if(i)var a=zu(),e=s;else a=t?[]:f;n:for(;++r<u;){var c=n[r],p=t?t(c,r,n):c;if(o&&c===c){for(var h=a.length;h--;)if(a[h]===p)continue n;t&&a.push(p),f.push(c)}else 0>e(a,p)&&((t||i)&&a.push(p),f.push(c))}return f}function br(n,t){for(var r=-1,e=t(n),u=e.length,o=Ye(u);++r<u;)o[r]=n[e[r]];return o}function _r(n){return vu.call(n,0)}function xr(n,t,r){for(var e=t.length,u=-1,o=Ru(r.length-e,0),i=-1,f=n.length,a=Ye(o+f);++i<f;)a[i]=n[i];for(;++u<e;)a[t[u]]=r[u];for(;o--;)a[i++]=r[u++];return a}function wr(n,t,r){for(var e=-1,u=t.length,o=-1,i=Ru(r.length-u,0),f=-1,a=n.length,l=Ye(i+a);++o<i;)l[o]=r[o];
|
||||
for(i=o;++f<a;)l[i+f]=n[f];for(;++e<u;)l[i+t[e]]=r[o++];return l}function jr(n,t){return function(r,e,u){e=Rr(e,u,3);var o=t?t():{};if(Hu(r)){u=-1;for(var i=r.length;++u<i;){var f=r[u];n(o,f,e(f,u,r),r)}}else Gt(r,function(t,r,u){n(o,t,e(t,r,u),u)});return o}}function Ar(n){return function(){var t=arguments.length,r=arguments[0];if(2>t||null==r)return r;if(3<t&&x(arguments[1],arguments[2],arguments[3])&&(t=2),3<t&&"function"==typeof arguments[t-2])var e=zt(arguments[--t-1],arguments[t--],5);else 2<t&&"function"==typeof arguments[t-1]&&(e=arguments[--t]);
|
||||
for(var u=0;++u<t;)n(r,arguments[u],e);return r}}function Er(n,t){function r(){return(this instanceof r?e:n).apply(t,arguments)}var e=Ir(n);return r}function Or(n){return function(t){var r=-1;t=$e(Te(t));for(var e=t.length,u="";++r<e;)u=n(u,t[r],r,$e);return u}}function Ir(n){return function(){var t=Zt(n.prototype),r=n.apply(t,arguments);return Ie(r)?r:t}}function Cr(n,t,r,e,u,o,i,f){function a(){for(var y=arguments.length,d=y,m=Ye(y);d--;)m[d]=arguments[d];if(u&&(m=xr(u,o,m)),i&&(m=wr(i,f,m)),s||p){var d=a.placeholder,b=j(m,d),y=y-b.length;
|
||||
if(y<r){var y=Ru(r-y,0),_=s?m:null,x=s?b:null,m=s?null:m,b=s?null:b;t|=s?T:W,t&=~(s?W:T),h||(t&=~(S|D));var w=Cr(n,t,y,e,_,x,m,b);return w.placeholder=d,Zu(w,[n,t,y,e,_,x,m,b])}}return d=l?e:this,c&&(n=d[v]),(this instanceof a?g||Ir(n):n).apply(d,m)}var l=t&S,c=t&D,s=t&R,p=t&k,h=t&U,g=!c&&Ir(n),v=n;return a}function Fr(n,t,r){return n=n.length,t=+t,n<t&&Su(t)?(t-=n,r=null==r?" ":ru(r),Le(r,yu(t/r.length)).slice(0,t)):""}function Sr(n,t,r,e){function u(){for(var t=-1,f=arguments.length,a=-1,l=r.length,c=Ye(f+l);++a<l;)c[a]=r[a];
|
||||
for(;f--;)c[a++]=arguments[++t];return(this instanceof u?i:n).apply(o?e:this,c)}var o=t&S,i=Ir(n);return u}function Dr(n,t,r,e,u,o,i,f){var a=t&D;if(!a&&!Oe(n))throw new eu(P);var l=t&T;l&&!u.length&&(t&=~T,l=false,u=o=null);var s=t&W;s&&!i.length&&(t&=~W,s=false,i=f=null);var p=(p=!a&&Ku(n))&&true!==p&&p;if(p){var h=p[1],g=h&S,v=t&S;n=p[0],t|=h,null==r&&(r=p[2]),g&&(e=p[3]),!v&&g&&(t|=U),(h=p[4])&&(g=p[5],u=l?xr(h,g,u):c(h),o=l?j(u,K):c(g)),(h=p[6])&&(g=p[7],i=s?wr(h,g,i):c(h),f=s?j(i,K):c(g))}return null==r&&(r=a?0:n.length),(p?Mu:Zu)(t==S?Er(n,e):t!=T&&t!=(S|T)||o.length?Cr(n,t,r,e,u,o,i,f):Sr(n,t,u,e),[n,t,r,e,u,o,i,f])
|
||||
}function Rr(n,t,r){var e=Nt.callback||Pe,e=e===Pe?zt:e;return r?e(n,t,r):e}function kr(n,t,r){var e=Nt.indexOf||Zr,e=e===Zr?l:e;return n?e(n,t,r):e}function Ur(n,t){var r=-1,e=n.length,u=n.constructor(e);if(!t)for(;++r<e;)u[r]=n[r];return e&&"string"==typeof n[0]&&cu.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function Tr(n,t){var r=pu.call(n);if(!Wt[r]||Yt(n))return n;var e=n.constructor,u=r==vt||!Bu.argsClass&&je(n),o=r==wt;if(!o||typeof e=="function"&&e instanceof e||(e=nu),u||o){var i=t?new e:Bt(new e,n);
|
||||
return u&&(i.length=n.length),i}switch(r){case Et:return _r(n);case dt:case mt:return new e(+n);case Ot:case It:case Ct:case Ft:case St:case Dt:case Rt:case kt:case Ut:return e instanceof e&&(e=qu[r]),r=n.buffer,new e(t?_r(r):r,n.byteOffset,n.length);case xt:case At:return new e(n);case jt:i=e(n.source,rt.exec(n)),i.lastIndex=n.lastIndex}return i}function Wr(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Tt[pu.call(n)]||false}function Lr(n){return n===n&&(0===n?0<1/n:!Ie(n))}function Nr(n,t){n=Mr(n);
|
||||
for(var r=-1,e=t.length,u={};++r<e;){var o=t[r];o in n&&(u[o]=n[o])}return u}function $r(n,t){var r={};return or(n,function(n,e,u){t(n,e,u)&&(r[e]=n)}),r}function qr(n){var t,r;return!n||typeof n!="object"||pu.call(n)!=wt||Yt(n)||!(cu.call(n,"constructor")||(t=n.constructor,typeof t!="function"||t instanceof t))||!Bu.argsClass&&je(n)?false:Bu.ownLast?(or(n,function(n,t,e){return r=cu.call(e,t),false}),false!==r):(or(n,function(n,t){r=t}),typeof r=="undefined"||cu.call(n,r))}function Pr(n){for(var t,r=-1,e=ke(n),u=e.length,o=u&&n.length,i=o-1,f=[],o=typeof o=="number"&&0<o&&(Hu(n)||Bu.nonEnumStrings&&De(n)||Bu.nonEnumArgs&&je(n));++r<u;){var a=e[r];
|
||||
(o&&(t=+a,-1<t&&t<=i&&0==t%1)||cu.call(n,a))&&f.push(a)}return f}function Br(n){if(null==n)return[];var t=n.length;return typeof t=="number"&&-1<t&&t<=z?Bu.unindexedChars&&De(n)?n.split(""):Ie(n)?n:nu(n):Ue(n)}function Mr(n){if(Bu.unindexedChars&&De(n)){for(var t=-1,r=n.length,e=nu(n);++t<r;)e[t]=n.charAt(t);return e}return Ie(n)?n:nu(n)}function zr(n,t,r){var e=-1,u=n?n.length:0;for(t=Rr(t,r,3);++e<u;)if(t(n[e],e,n))return e;return-1}function Kr(n){return n?n[0]:C}function Zr(n,t,r){var e=n?n.length:0;
|
||||
if(!e)return-1;if(typeof r=="number")r=0>r?Ru(e+r,0):r||0;else if(r)return r=Jr(n,t),n[r]===t?r:-1;return l(n,t,r)}function Vr(n){return Yr(n,1)}function Yr(n,t,r){var e=-1,u=n?n.length:0,o=typeof r;if(r&&"number"!=o&&x(n,t,r)&&(t=0,r=u),t=null==t?0:+t||0,0>t&&(t=-t>u?0:u+t),r="undefined"==o||r>u?u:+r||0,0>r&&(r+=u),r&&r==u&&!t)return c(n);for(u=t>r?0:r-t,r=Ye(u);++e<u;)r[e]=n[e+t];return r}function Jr(n,t,r,e){return r=null==r?Be:Rr(r,e,1),dr(n,t,r)}function Xr(n,t,r,e){return r=null==r?Be:Rr(r,e,1),dr(n,t,r,true)
|
||||
}function Gr(n,t,r,e){if(!n||!n.length)return[];if(typeof t!="boolean"&&null!=t&&(e=r,r=x(n,t,e)?null:t,t=false),null!=r&&(r=Rr(r,e,3)),t&&kr()==l){t=r;var u;r=-1,e=n.length;for(var o=-1,i=[];++r<e;){var f=n[r],a=t?t(f,r,n):f;r&&u===a||(u=a,i[++o]=f)}n=i}else n=mr(n,r);return n}function Hr(n){for(var t=-1,r=Ie(r=ae(n,"length"))&&r.length||0,e=Ye(r);++t<r;)e[t]=le(n,t);return e}function Qr(n,t){var r=-1,e=n?n.length:0,u={};for(t||!e||Hu(n[0])||(t=[]);++r<e;){var o=n[r];t?u[o]=t[r]:o&&(u[o[0]]=o[1])}return u
|
||||
}function ne(n){return n=Nt(n),n.__chain__=true,n}function te(n,t,r){var e=n?n.length:0;return typeof e=="number"&&-1<e&&e<=z||(n=Ue(n),e=n.length),e?(r=typeof r=="number"?0>r?Ru(e+r,0):r||0:0,typeof n=="string"||!Hu(n)&&De(n)?r<e&&-1<n.indexOf(t,r):-1<kr(n,t,r)):false}function re(n,r,e){var u=Hu(n)?t:Qt;return(typeof r!="function"||typeof e!="undefined")&&(r=Rr(r,e,3)),u(n,r)}function ee(n,t,r){var u=Hu(n)?e:nr;return t=Rr(t,r,3),u(n,t)}function ue(n,t,r){return Hu(n)?(t=zr(n,t,r),-1<t?n[t]:C):(t=Rr(t,r,3),tr(n,t,Gt))
|
||||
}function oe(t,r,e){return typeof r=="function"&&typeof e=="undefined"&&Hu(t)?n(t,r):Gt(t,zt(r,e,3))}function ie(n,t,r){if(typeof t=="function"&&typeof r=="undefined"&&Hu(n))for(r=n.length;r--&&false!==t(n[r],r,n););else n=Ht(n,zt(t,r,3));return n}function fe(n,t,e){return t=Rr(t,e,3),(Hu(n)?r:sr)(n,t)}function ae(n,t,r){t=x(n,t,r)?null:t;var e=-1/0,u=null==t,o=!(u&&Hu(n))&&De(n),i=e;if(u&&!o)for(r=-1,n=Br(n),u=n.length;++r<u;)o=n[r],o>i&&(i=o);else t=u&&o?p:Rr(t,r,3),Gt(n,function(n,r,u){r=t(n,r,u),(r>e||-1/0===r&&r===i)&&(e=r,i=n)
|
||||
});return i}function le(n,t){return fe(n,Ve(t))}function ce(n,t,r,e){return(Hu(n)?u:vr)(n,Rr(t,e,4),r,3>arguments.length,Gt)}function se(n,t,r,e){return(Hu(n)?o:vr)(n,Rr(t,e,4),r,3>arguments.length,Ht)}function pe(n){n=Br(n);for(var t=-1,r=n.length,e=Ye(r);++t<r;){var u=gr(0,t);t!=u&&(e[t]=e[u]),e[u]=n[t]}return e}function he(n,t,r){var e=Hu(n)?i:yr;return(typeof t!="function"||typeof r!="undefined")&&(t=Rr(t,r,3)),e(n,t)}function ge(n,t){var r;if(!Oe(t)){if(!Oe(n))throw new eu(P);var e=n;n=t,t=e
|
||||
}return function(){return 0<--n?r=t.apply(this,arguments):t=null,r}}function ve(n,t){if(3>arguments.length)return Dr(n,S,null,t);var r=Yr(arguments,2),e=j(r,ve.placeholder);return hr(n,S|T,r,e,t)}function ye(n,t){var r=S|D;if(2<arguments.length)var e=Yr(arguments,2),u=j(e,ye.placeholder);return e?Dr(t,r,null,n,e,u):Dr(t,r,null,n)}function de(n,t,r){return n=Vt(n,R,r?null:t),n.placeholder=de.placeholder,n}function me(n,t,r){return n=Vt(n,k,r?null:t),n.placeholder=me.placeholder,n}function be(n,t,r){function e(){var r=t-(fo()-l);
|
||||
0>=r||r>t?(f&&du(f),r=p,f=s=p=C,r&&(h=fo(),a=n.apply(c,i),s||f||(i=c=null))):s=ju(e,r)}function u(){s&&du(s),f=s=p=C,(v||g!==t)&&(h=fo(),a=n.apply(c,i),s||f||(i=c=null))}function o(){if(i=arguments,l=fo(),c=this,p=v&&(s||!y),false===g)var r=y&&!s;else{f||y||(h=l);var o=g-(l-h),d=0>=o||o>g;d?(f&&(f=du(f)),h=l,a=n.apply(c,i)):f||(f=ju(u,o))}return d&&s?s=du(s):s||t===g||(s=ju(e,t)),r&&(d=true,a=n.apply(c,i)),!d||s||f||(i=c=null),a}var i,f,a,l,c,s,p,h=0,g=false,v=true;if(!Oe(n))throw new eu(P);if(t=0>t?0:t,true===r)var y=true,v=false;
|
||||
else Ie(r)&&(y=r.leading,g="maxWait"in r&&Ru(+r.maxWait||0,t),v="trailing"in r?r.trailing:v);return o.cancel=function(){s&&du(s),f&&du(f),f=s=p=C},o}function _e(){var n=arguments,r=n.length-1;if(0>r)return function(){};if(!t(n,Oe))throw new eu(P);return function(){for(var t=r,e=n[t].apply(this,arguments);t--;)e=n[t].call(this,e);return e}}function xe(n){var t=Yr(arguments,1),r=j(t,xe.placeholder);return hr(n,T,t,r)}function we(n){var t=Yr(arguments,1),r=j(t,we.placeholder);return hr(n,W,t,r)}function je(n){var t=n&&typeof n=="object"?n.length:C;
|
||||
return typeof t=="number"&&-1<t&&t<=z&&pu.call(n)==vt||false}function Ae(n){return n&&typeof n=="object"&&1===n.nodeType&&(Bu.nodeClass?-1<pu.call(n).indexOf("Element"):Yt(n))||false}function Ee(n){return n&&typeof n=="object"&&pu.call(n)==bt||false}function Oe(n){return typeof n=="function"||false}function Ie(n){var t=typeof n;return"function"==t||n&&"object"==t||false}function Ce(n){return Oe(n)?hu.test(lu.call(n)):n&&typeof n=="object"&&(Yt(n)?hu:ot).test(n)||false}function Fe(n){var t=typeof n;return"number"==t||n&&"object"==t&&pu.call(n)==xt||false
|
||||
}function Se(n){return Ie(n)&&pu.call(n)==jt||false}function De(n){return typeof n=="string"||n&&typeof n=="object"&&pu.call(n)==At||false}function Re(n){return ar(n,ke(n))}function ke(n){if(null==n)return[];Ie(n)||(n=nu(n));for(var t,r=n.length,r=typeof r=="number"&&0<r&&(Hu(n)||Bu.nonEnumStrings&&De(n)||Bu.nonEnumArgs&&je(n))&&r||0,e=n.constructor,u=-1,o=typeof e=="function"&&e.prototype===n,i=r-1,e=Ye(r),f=0<r,a=Bu.enumErrorProps&&(n===ou||n instanceof Xe),l=Bu.enumPrototypes&&typeof n=="function";++u<r;)e[u]=ru(u);
|
||||
for(var c in n)o&&"constructor"==c||l&&"prototype"==c||a&&("message"==c||"name"==c)||f&&(t=+c,-1<t&&t<=i&&0==t%1)||e.push(c);if(Bu.nonEnumShadows&&n!==iu){if(u=-1,r=gt.length,o){t=n===fu?At:n===ou?bt:pu.call(n);var s=Pu[t]}for(;++u<r;)c=gt[u],s&&s[c]||!cu.call(n,c)||e.push(c)}return e}function Ue(n){return br(n,ro)}function Te(n){return(n=null==n?"":ru(n))?n.replace(it,d):n}function We(n){return(n=null==n?"":ru(n))&&(at.lastIndex=0,at.test(n))?n.replace(at,"\\$&"):n}function Le(n,t){var r="";if(t=+t,1>t||null==n||!Su(t))return r;
|
||||
n=ru(n);do t%2&&(r+=n),t=mu(t/2),n+=n;while(t);return r}function Ne(n,t,r){return(n=null==n?"":ru(n))?r||null==t?n.slice(A(n),E(n)+1):(t=ru(t),n.slice(h(n,t),g(n,t)+1)):n}function $e(n,t,r){return(n=null!=n&&ru(n))&&n.match((r?null:t)||st)||[]}function qe(n){try{return n()}catch(t){return Ee(t)?t:Xe(t)}}function Pe(n,t,r){return zt(n,r?C:t)}function Be(n){return n}function Me(n){var t=ro(n),r=t.length;if(1==r){var e=t[0],u=n[e];if(Lr(u))return function(n){return null!=n&&u===n[e]&&cu.call(n,e)}}for(var o=r,i=Ye(r),f=Ye(r);o--;){var u=n[t[o]],a=Lr(u);
|
||||
i[o]=a,f[o]=a?u:Kt(u)}return function(n){if(o=r,null==n)return!o;for(;o--;)if(i[o]?f[o]!==n[t[o]]:!cu.call(n,t[o]))return false;for(o=r;o--;)if(i[o]?!cu.call(n,t[o]):!lr(f[o],n[t[o]],null,true))return false;return true}}function ze(n,t,r){var e=true,u=Ie(t),o=null==r,i=o&&u&&ro(t),f=i&&ar(t,i);(i&&i.length&&!f.length||o&&!u)&&(o&&(r=t),f=false,t=n,n=this),f||(f=ar(t,ro(t))),false===r?e=false:Ie(r)&&"chain"in r&&(e=r.chain),r=-1,u=Oe(n);for(o=f.length;++r<o;)i=f[r],n[i]=t[i],u&&(n.prototype[i]=function(t){return function(){if(e||this.__chain__){var r=n(this.__wrapped__);
|
||||
return r.__chain__=this.__chain__,(r.__queue__=c(this.__queue__)).push([t,n,arguments]),r}return r=[this.value()],_u.apply(r,arguments),n[t].apply(n,r)}}(i));return n}function Ke(){}function Ze(n,t,r){return Wu(n,r?0:t)}function Ve(n){return function(t){return null==t?C:t[n]}}w=w?Jt.defaults(Mt.Object(),w,Jt.pick(Mt,ht)):Mt;var Ye=w.Array,Je=w.Date,Xe=w.Error,Ge=w.Function,He=w.Math,Qe=w.Number,nu=w.Object,tu=w.RegExp,ru=w.String,eu=w.TypeError,uu=Ye.prototype,ou=Xe.prototype,iu=nu.prototype,fu=ru.prototype,au=(au=w.window)&&au.document,lu=Ge.prototype.toString,cu=iu.hasOwnProperty,su=w._,pu=iu.toString,hu=tu("^"+We(pu).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gu=Ce(gu=w.ArrayBuffer)&&gu,vu=Ce(vu=gu&&new gu(0).slice)&&vu,yu=He.ceil,du=w.clearTimeout,mu=He.floor,bu=Ce(bu=nu.getPrototypeOf)&&bu,_u=uu.push,xu=iu.propertyIsEnumerable,wu=Ce(wu=w.Set)&&wu,ju=w.setTimeout,Au=uu.splice,Eu=Ce(Eu=w.Uint8Array)&&Eu,Ou=Ce(Ou=w.d)&&Ou,Iu=function(){try{var n=Ce(n=w.Float64Array)&&n,t=new n(new gu(10),0,1)&&n
|
||||
}catch(r){}return t}(),Cu=Ce(Cu=nu.create)&&Cu,Fu=Ce(Fu=Ye.isArray)&&Fu,Su=w.isFinite,Du=Ce(Du=nu.keys)&&Du,Ru=He.max,ku=He.min,Uu=Ce(Uu=Je.now)&&Uu,Tu=Ce(Tu=Qe.isFinite)&&Tu,Wu=w.parseInt,Lu=He.random,Nu=Iu?Iu.BYTES_PER_ELEMENT:0,$u=Ou&&new Ou,qu={};qu[Ot]=w.Float32Array,qu[It]=w.Float64Array,qu[Ct]=w.Int8Array,qu[Ft]=w.Int16Array,qu[St]=w.Int32Array,qu[Dt]=w.Uint8Array,qu[Rt]=w.Uint8ClampedArray,qu[kt]=w.Uint16Array,qu[Ut]=w.Uint32Array;var Pu={};Pu[yt]=Pu[mt]=Pu[xt]={constructor:true,toLocaleString:true,toString:true,valueOf:true},Pu[dt]=Pu[At]={constructor:true,toString:true,valueOf:true},Pu[bt]=Pu[_t]=Pu[jt]={constructor:true,toString:true},Pu[wt]={constructor:true},n(gt,function(n){for(var t in Pu)if(cu.call(Pu,t)){var r=Pu[t];
|
||||
r[n]=cu.call(r,n)}});var Bu=Nt.support={};!function(x_){function n(){this.x=1}var t={0:1,length:1},r=[];n.prototype={valueOf:1,y:1};for(var e in new n)r.push(e);Bu.argsClass=pu.call(arguments)==vt,Bu.enumErrorProps=xu.call(ou,"message")||xu.call(ou,"name"),Bu.enumPrototypes=xu.call(n,"prototype"),Bu.funcDecomp=!Ce(w.WinRTError)&<.test(I),Bu.funcNames=typeof Ge.name=="string",Bu.nodeClass=pu.call(au)!=wt,Bu.nonEnumStrings=!xu.call("x",0),Bu.nonEnumShadows=!/valueOf/.test(r),Bu.ownLast="x"!=r[0],Bu.spliceObjects=(Au.call(t,0,1),!t[0]),Bu.unindexedChars="xx"!="x"[0]+nu("x")[0];
|
||||
try{Bu.dom=11===au.createDocumentFragment().nodeType}catch(u){Bu.dom=false}try{Bu.nonEnumArgs=!xu.call(arguments,1)}catch(o){Bu.nonEnumArgs=true}}(0,0),Nt.templateSettings={escape:H,evaluate:Q,interpolate:nt,variable:"",imports:{_:Nt}},Cu||(Zt=function(){function n(){}return function(t){if(Ie(t)){n.prototype=t;var r=new n;n.prototype=null}return r||w.Object()}}());var Mu=$u?function(n,t){return $u.set(n,t),n}:Be;vu||(_r=gu&&Eu?function(n){var t=n.byteLength,r=Iu?mu(t/Nu):0,e=r*Nu,u=new gu(t);if(r){var o=new Iu(u,0,r);
|
||||
o.set(new Iu(n,0,r))}return t!=e&&(o=new Eu(u,e),o.set(new Eu(n,e))),u}:Be);var zu=wu&&function(n){var t=new wu,r=n?n.length:0;for(t.push=t.add;r--;)t.push(n[r]);return t},Ku=$u?function(n){return $u.get(n)}:Ke,Zu=function(){var n=0,t=0;return function(r,e){var u=fo?fo():0,o=q-(u-t);if(t=u,0<o){if(++n>=$)return r}else n=0;return Mu(r,e)}}(),Vu=jr(function(n,t,r){cu.call(n,r)?++n[r]:n[r]=1}),Yu=jr(function(n,t,r){cu.call(n,r)?n[r].push(t):n[r]=[t]}),Ju=jr(function(n,t,r){n[r]=t}),Xu=jr(function(n,t,r){n[r?0:1].push(t)
|
||||
},function(){return[[],[]]}),Gu=xe(ge,2);Bu.argsClass||(je=function(n){var t=n&&typeof n=="object"?n.length:C;return typeof t=="number"&&-1<t&&t<=z&&cu.call(n,"callee")&&!xu.call(n,"callee")||false});var Hu=Fu||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&pu.call(n)==yt||false};Bu.dom||(Ae=function(n){return n&&typeof n=="object"&&1===n.nodeType&&!no(n)||false});var Qu=Tu||function(n){return typeof n=="number"&&Su(n)};Oe(/x/)&&(Oe=function(n){return typeof n=="function"&&pu.call(n)==_t
|
||||
});var no=bu?function(n){if(!n||pu.call(n)!=wt||!Bu.argsClass&&je(n))return false;var t=n.valueOf,r=Ce(t)&&(r=bu(t))&&bu(r);return r?n==r||bu(n)==r:qr(n)}:qr,to=Ar(Bt),ro=Du?function(n){if(n)var t=n.constructor,r=n.length;return typeof t=="function"&&t.prototype===n||typeof r=="number"&&0<r||Bu.enumPrototypes&&typeof n=="function"?Pr(n):Ie(n)?Du(n):[]}:Pr,eo=Ar(pr),uo=Or(function(n,t,r){return t=t.toLowerCase(),r?n+t.charAt(0).toUpperCase()+t.slice(1):t}),oo=Or(function(n,t,r){return n+(r?"-":"")+t.toLowerCase()
|
||||
}),io=Or(function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}),fo=Uu||function(){return(new Je).getTime()};return 8!=Wu(pt+"08")&&(Ze=function(n,t,r){return n=Ne(n),Wu(n,(r?0:+t)||(ut.test(n)?16:10))}),Nt.after=function(n,t){if(!Oe(t)){if(!Oe(n))throw new eu(P);var r=n;n=t,t=r}return n=Su(n=+n)?n:0,function(){return 1>--n?t.apply(this,arguments):void 0}},Nt.assign=to,Nt.at=function(n){var t=n?n.length:0;return typeof t=="number"&&-1<t&&t<=z&&(n=Br(n)),f(n,rr(arguments,false,false,1))},Nt.before=ge,Nt.bind=ve,Nt.bindAll=function(n){for(var t=n,r=1<arguments.length?rr(arguments,false,false,1):Re(n),e=-1,u=r.length;++e<u;){var o=r[e];
|
||||
t[o]=Dr(t[o],S,null,t)}return t},Nt.bindKey=ye,Nt.callback=Pe,Nt.chain=ne,Nt.chunk=function(n,t,r){var e=0,u=n?n.length:0,o=-1,i=[];for(t=r||null==t?1:Ru(+t||1,1);e<u;)i[++o]=Yr(n,e,e+=t);return i},Nt.compact=function(n){for(var t=-1,r=n?n.length:0,e=-1,u=[];++t<r;){var o=n[t];o&&(u[++e]=o)}return u},Nt.constant=function(n){return function(){return n}},Nt.countBy=Vu,Nt.create=function(n,t,r){return n=Zt(n),(t=r?null:t)?Bt(n,t):n},Nt.curry=de,Nt.curryRight=me,Nt.debounce=be,Nt.defaults=function(n){if(null==n)return n;
|
||||
var t=c(arguments);return t.push(qt),to.apply(C,t)},Nt.defer=function(n){if(!Oe(n))throw new eu(P);var t=Yr(arguments,1);return ju(function(){n.apply(C,t)},1)},Nt.delay=function(n,t){if(!Oe(n))throw new eu(P);var r=Yr(arguments,2);return ju(function(){n.apply(C,r)},t)},Nt.difference=function(){for(var n=-1,t=arguments.length;++n<t;){var r=arguments[n];if(Hu(r)||je(r))break}return Xt(arguments[n],rr(arguments,false,true,++n))},Nt.drop=function(n,t,r){return t=r||null==t?1:t,Yr(n,0>t?0:t)},Nt.dropRight=function(n,t,r){var e=n?n.length:0;
|
||||
return t=e-((r||null==t?1:t)||0),Yr(n,0,0>t?0:t)},Nt.dropRightWhile=function(n,t,r){var e=n?n.length:0;for(t=Rr(t,r,3);e--&&t(n[e],e,n););return Yr(n,0,e+1)},Nt.dropWhile=function(n,t,r){var e=-1,u=n?n.length:0;for(t=Rr(t,r,3);++e<u&&t(n[e],e,n););return Yr(n,e)},Nt.filter=ee,Nt.flatten=function(n,t,r){return n&&n.length?rr(n,r?false:t):[]},Nt.flattenDeep=function(n){return n&&n.length?rr(n,true):[]},Nt.flow=function(){var n=arguments,r=n.length;if(!r)return function(){};if(!t(n,Oe))throw new eu(P);return function(){for(var t=0,e=n[t].apply(this,arguments);++t<r;)e=n[t].call(this,e);
|
||||
return e}},Nt.flowRight=_e,Nt.forEach=oe,Nt.forEachRight=ie,Nt.forIn=function(n,t,r){return(typeof t!="function"||typeof r!="undefined")&&(t=zt(t,r,3)),er(n,t,ke)},Nt.forInRight=function(n,t,r){return t=zt(t,r,3),ur(n,t,ke)},Nt.forOwn=function(n,t,r){return(typeof t!="function"||typeof r!="undefined")&&(t=zt(t,r,3)),ir(n,t)},Nt.forOwnRight=function(n,t,r){return t=zt(t,r,3),ur(n,t,ro)},Nt.functions=Re,Nt.groupBy=Yu,Nt.indexBy=Ju,Nt.initial=function(n){return Yr(n,0,((n?n.length:0)||1)-1)},Nt.intersection=function(){for(var n=[],t=-1,r=arguments.length,e=[],u=kr(),o=zu&&u==l;++t<r;){var i=arguments[t];
|
||||
(Hu(i)||je(i))&&(n.push(i),e.push(o&&120<=i.length&&zu(t&&i)))}var r=n.length,o=n[0],f=-1,a=o?o.length:0,c=[],p=e[0];n:for(;++f<a;)if(i=o[f],0>(p?s(p,i):u(c,i))){for(t=r;--t;){var h=e[t];if(0>(h?s(h,i):u(n[t],i)))continue n}p&&p.push(i),c.push(i)}return c},Nt.invert=function(n,t,r){t=r?null:t,r=-1;for(var e=ro(n),u=e.length,o={};++r<u;){var i=e[r],f=n[i];t?cu.call(o,f)?o[f].push(i):o[f]=[i]:o[f]=i}return o},Nt.invoke=function(n,t){return cr(n,t,Yr(arguments,2))},Nt.keys=ro,Nt.keysIn=ke,Nt.map=fe,Nt.mapValues=function(n,t,r){t=Rr(t,r,3);
|
||||
var e={};return ir(n,function(n,r,u){e[r]=t(n,r,u)}),e},Nt.matches=Me,Nt.memoize=function(n,t){function r(){var e=t?t.apply(this,arguments):arguments[0];if("__proto__"==e)return n.apply(this,arguments);var u=r.cache;return cu.call(u,e)?u[e]:u[e]=n.apply(this,arguments)}if(!Oe(n)||t&&!Oe(t))throw new eu(P);return r.cache={},r},Nt.merge=eo,Nt.mixin=ze,Nt.negate=function(n){if(!Oe(n))throw new eu(P);return function(){return!n.apply(this,arguments)}},Nt.omit=function(n,t,e){if(null==n)return{};if(typeof t!="function"){var u=r(rr(arguments,false,false,1),ru);
|
||||
return Nr(n,Xt(ke(n),u))}return t=Rr(t,e,3),$r(n,function(n,r,e){return!t(n,r,e)})},Nt.once=Gu,Nt.pairs=function(n){for(var t=-1,r=ro(n),e=r.length,u=Ye(e);++t<e;){var o=r[t];u[t]=[o,n[o]]}return u},Nt.partial=xe,Nt.partialRight=we,Nt.partition=Xu,Nt.pick=function(n,t,r){return null==n?{}:typeof t=="function"?$r(n,Rr(t,r,3)):Nr(n,rr(arguments,false,false,1))},Nt.pluck=le,Nt.property=Ve,Nt.pull=function(){var n=arguments[0];if(!n||!n.length)return n;for(var t=0,r=kr(),e=arguments.length;++t<e;)for(var u=0,o=arguments[t];-1<(u=r(n,o,u));)Au.call(n,u,1);
|
||||
return n},Nt.pullAt=function(n){var t=n,r=rr(arguments,false,false,1),e=r.length,u=f(t,r);for(r.sort(a);e--;){var o=parseFloat(r[e]);if(o!=i&&-1<o&&0==o%1){var i=o;Au.call(t,o,1)}}return u},Nt.range=function(n,t,r){r&&x(n,t,r)&&(t=r=null),n=+n||0,r=null==r?1:+r||0,null==t?(t=n,n=0):t=+t||0;var e=-1;t=Ru(yu((t-n)/(r||1)),0);for(var u=Ye(t);++e<t;)u[e]=n,n+=r;return u},Nt.reject=function(n,t,r){var u=Hu(n)?e:nr;return t=Rr(t,r,3),u(n,function(n,r,e){return!t(n,r,e)})},Nt.remove=function(n,t,r){var e=-1,u=n?n.length:0,o=[];
|
||||
for(t=Rr(t,r,3);++e<u;)r=n[e],t(r,e,n)&&(o.push(r),Au.call(n,e--,1),u--);return o},Nt.rest=Vr,Nt.shuffle=pe,Nt.slice=Yr,Nt.sortBy=function(n,t,r){t=x(n,t,r)?null:t;var e=-1,u=n?n.length:0,o=t&&Hu(t),i=[];for(typeof u=="number"&&-1<u&&u<=z&&(i.length=u),o||(t=Rr(t,r,3)),Gt(n,function(n,r,u){if(o)for(r=t.length,u=Ye(r);r--;)u[r]=null==n?C:n[t[r]];else u=t(n,r,u);i[++e]={a:u,b:e,c:n}}),u=i.length,i.sort(o?y:v);u--;)i[u]=i[u].c;return i},Nt.take=function(n,t,r){return t=r||null==t?1:t,Yr(n,0,0>t?0:t)
|
||||
},Nt.takeRight=function(n,t,r){var e=n?n.length:0;return t=e-((r||null==t?1:t)||0),Yr(n,0>t?0:t)},Nt.takeRightWhile=function(n,t,r){var e=n?n.length:0;for(t=Rr(t,r,3);e--&&t(n[e],e,n););return Yr(n,e+1)},Nt.takeWhile=function(n,t,r){var e=-1,u=n?n.length:0;for(t=Rr(t,r,3);++e<u&&t(n[e],e,n););return Yr(n,0,e)},Nt.tap=function(n,t,r){return t.call(r,n),n},Nt.throttle=function(n,t,r){var e=true,u=true;if(!Oe(n))throw new eu(P);return false===r?e=false:Ie(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),Lt.leading=e,Lt.maxWait=+t,Lt.trailing=u,be(n,t,Lt)
|
||||
},Nt.thru=function(n,t,r){return t.call(r,n)},Nt.times=function(n,t,r){n=Su(n=+n)&&-1<n?n:0,t=zt(t,r,1),r=-1;for(var e=Ye(ku(n,B));++r<n;)r<B?e[r]=t(r):t(r);return e},Nt.toArray=function(n){var t=n?n.length:0;return typeof t=="number"&&-1<t&&t<=z?Bu.unindexedChars&&De(n)?n.split(""):c(n):Ue(n)},Nt.transform=function(t,r,e,u){if(r=Rr(r,u,4),u=Wr(t),null==e)if(u)e=[];else if(Ie(t)){var o=t.constructor;e=Zt(typeof o=="function"&&o.prototype)}else e={};return(u?n:ir)(t,function(n,t,u){return r(e,n,t,u)
|
||||
}),e},Nt.union=function(){return mr(rr(arguments,false,true))},Nt.uniq=Gr,Nt.unzip=Hr,Nt.values=Ue,Nt.valuesIn=function(n){return br(n,ke)},Nt.where=function(n,t){return ee(n,Me(t))},Nt.without=function(n){return Xt(n,Yr(arguments,1))},Nt.wrap=function(n,t){return hr(t,T,[n],[])},Nt.xor=function(){for(var n=-1,t=arguments.length;++n<t;){var r=arguments[n];if(Hu(r)||je(r))var e=e?Xt(e,r).concat(Xt(r,e)):r}return e?mr(e):[]},Nt.zip=function(){for(var n=arguments.length,t=Ye(n);n--;)t[n]=arguments[n];return Hr(t)
|
||||
},Nt.zipObject=Qr,Nt.backflow=_e,Nt.collect=fe,Nt.compose=_e,Nt.each=oe,Nt.eachRight=ie,Nt.extend=to,Nt.iteratee=Pe,Nt.methods=Re,Nt.object=Qr,Nt.select=ee,Nt.tail=Vr,Nt.unique=Gr,ze(Nt,Nt),Nt.attempt=qe,Nt.camelCase=uo,Nt.capitalize=function(n){return(n=null==n?"":ru(n))?n.charAt(0).toUpperCase()+n.slice(1):n},Nt.clone=function(n,t,r,e){return typeof t!="boolean"&&null!=t&&(e=r,r=x(n,t,e)?null:t,t=false),r=typeof r=="function"&&zt(r,e,1),Kt(n,t,r)},Nt.cloneDeep=function(n,t,r){return t=typeof t=="function"&&zt(t,r,1),Kt(n,true,t)
|
||||
},Nt.contains=te,Nt.deburr=Te,Nt.endsWith=function(n,t,r){n=null==n?"":ru(n),t=ru(t);var e=n.length;return r=(typeof r=="undefined"?e:ku(0>r?0:+r||0,e))-t.length,0<=r&&n.indexOf(t,r)==r},Nt.escape=function(n){return(n=null==n?"":ru(n))&&(G.lastIndex=0,G.test(n))?n.replace(G,m):n},Nt.escapeRegExp=We,Nt.every=re,Nt.find=ue,Nt.findIndex=zr,Nt.findKey=function(n,t,r){return t=Rr(t,r,3),tr(n,t,ir,true)},Nt.findLast=function(n,t,r){return t=Rr(t,r,3),tr(n,t,Ht)},Nt.findLastIndex=function(n,t,r){var e=n?n.length:0;
|
||||
for(t=Rr(t,r,3);e--;)if(t(n[e],e,n))return e;return-1},Nt.findLastKey=function(n,t,r){return t=Rr(t,r,3),tr(n,t,fr,true)},Nt.findWhere=function(n,t){return ue(n,Me(t))},Nt.first=Kr,Nt.has=function(n,t){return n?cu.call(n,t):false},Nt.identity=Be,Nt.indexOf=Zr,Nt.isArguments=je,Nt.isArray=Hu,Nt.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&pu.call(n)==dt||false},Nt.isDate=function(n){return n&&typeof n=="object"&&pu.call(n)==mt||false},Nt.isElement=Ae,Nt.isEmpty=function(n){if(null==n)return true;
|
||||
var t=n.length;return typeof t=="number"&&-1<t&&t<=z&&(Hu(n)||De(n)||je(n)||typeof n=="object"&&Oe(n.splice))?!t:!ro(n).length},Nt.isEqual=function(n,t,r,e){return r=typeof r=="function"&&zt(r,e,3),!r&&Lr(n)&&Lr(t)?n===t:lr(n,t,r)},Nt.isError=Ee,Nt.isFinite=Qu,Nt.isFunction=Oe,Nt.isNaN=function(n){return Fe(n)&&n!=+n},Nt.isNative=Ce,Nt.isNull=function(n){return null===n},Nt.isNumber=Fe,Nt.isObject=Ie,Nt.isPlainObject=no,Nt.isRegExp=Se,Nt.isString=De,Nt.isUndefined=function(n){return typeof n=="undefined"
|
||||
},Nt.kebabCase=oo,Nt.last=function(n){var t=n?n.length:0;return t?n[t-1]:C},Nt.lastIndexOf=function(n,t,r){var e=n?n.length:0;if(!e)return-1;var u=e;if(typeof r=="number")u=(0>r?Ru(e+r,0):ku(r||0,e-1))+1;else if(r)return u=Xr(n,t)-1,n[u]===t?u:-1;if(t!==t)return _(n,u,true);for(;u--;)if(n[u]===t)return u;return-1},Nt.max=ae,Nt.min=function(n,t,r){t=x(n,t,r)?null:t;var e=1/0,u=null==t,o=!(u&&Hu(n))&&De(n),i=e;if(u&&!o)for(r=-1,n=Br(n),u=n.length;++r<u;)o=n[r],o<i&&(i=o);else t=u&&o?p:Rr(t,r,3),Gt(n,function(n,r,u){r=t(n,r,u),(r<e||1/0===r&&r===i)&&(e=r,i=n)
|
||||
});return i},Nt.noConflict=function(){return w._=su,this},Nt.noop=Ke,Nt.now=fo,Nt.pad=function(n,t,r){n=null==n?"":ru(n),t=+t;var e=n.length;return e<t&&Su(t)?(e=(t-e)/2,t=mu(e),e=yu(e),r=Fr("",e,r),r.slice(0,t)+n+r):n},Nt.padLeft=function(n,t,r){return(n=null==n?"":ru(n))?Fr(n,t,r)+n:n},Nt.padRight=function(n,t,r){return(n=null==n?"":ru(n))?n+Fr(n,t,r):n},Nt.parseInt=Ze,Nt.random=function(n,t,r){r&&x(n,t,r)&&(t=r=null);var e=null==n,u=null==t;return null==r&&(u&&typeof n=="boolean"?(r=n,n=1):typeof t=="boolean"&&(r=t,u=true)),e&&u&&(t=1,u=false),n=+n||0,u?(t=n,n=0):t=+t||0,r||n%1||t%1?(r=Lu(),ku(n+r*(t-n+parseFloat("1e-"+(ru(r).length-1))),t)):gr(n,t)
|
||||
},Nt.reduce=ce,Nt.reduceRight=se,Nt.repeat=Le,Nt.result=function(n,t,r){var e=null==n?C:n[t];return typeof e=="undefined"?r:Oe(e)?n[t]():e},Nt.runInContext=I,Nt.size=function(n){var t=n?n.length:0;return typeof t=="number"&&-1<t&&t<=z?t:ro(n).length},Nt.snakeCase=io,Nt.some=he,Nt.sortedIndex=Jr,Nt.sortedLastIndex=Xr,Nt.startsWith=function(n,t,r){return n=null==n?"":ru(n),r=typeof r=="undefined"?0:ku(0>r?0:+r||0,n.length),n.lastIndexOf(t,r)==r},Nt.template=function(n,t,r){var e=Nt.templateSettings;x(n,t,r)&&(t=r=null),n=ru(null==n?"":n),t=to({},r||t,e,Pt),r=to({},t.imports,e.imports,Pt);
|
||||
var u,o,i=ro(r),f=Ue(r),a=0;r=t.interpolate||ft;var l="__p+='";if(r=tu((t.escape||ft).source+"|"+r.source+"|"+(r===nt?tt:ft).source+"|"+(t.evaluate||ft).source+"|$","g"),n.replace(r,function(t,r,e,i,f,c){return e||(e=i),l+=n.slice(a,c).replace(ct,b),r&&(u=true,l+="'+__e("+r+")+'"),f&&(o=true,l+="';"+f+";\n__p+='"),e&&(l+="'+((__t=("+e+"))==null?'':__t)+'"),a=c+t.length,t}),l+="';",(t=t.variable)||(l="with(obj){"+l+"}"),l=(o?l.replace(V,""):l).replace(Y,"$1").replace(J,"$1;"),l="function("+(t||"obj")+"){"+(t?"":"obj||(obj={});")+"var __t,__p=''"+(u?",__e=_.escape":"")+(o?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+l+"return __p}",t=qe(function(){return Ge(i,"return "+l).apply(C,f)
|
||||
}),t.source=l,Ee(t))throw t;return t},Nt.trim=Ne,Nt.trimLeft=function(n,t,r){return(n=null==n?"":ru(n))?r||null==t?n.slice(A(n)):(t=ru(t),n.slice(h(n,t))):n},Nt.trimRight=function(n,t,r){return(n=null==n?"":ru(n))?r||null==t?n.slice(0,E(n)+1):(t=ru(t),n.slice(0,g(n,t)+1)):n},Nt.trunc=function(n,t,r){t=r?null:t;var e=L;if(r=N,Ie(t)){var u="separator"in t?t.separator:u,e="length"in t?+t.length||0:e;r="omission"in t?ru(t.omission):r}else null!=t&&(e=+t||0);if(n=null==n?"":ru(n),e>=n.length)return n;
|
||||
if(e-=r.length,1>e)return r;if(t=n.slice(0,e),null==u)return t+r;if(Se(u)){if(n.slice(e).search(u)){var o,i=n.slice(0,e);for(u.global||(u=tu(u.source,(rt.exec(u)||"")+"g")),u.lastIndex=0;n=u.exec(i);)o=n.index;t=t.slice(0,null==o?e:o)}}else n.indexOf(u,e)!=e&&(u=t.lastIndexOf(u),-1<u&&(t=t.slice(0,u)));return t+r},Nt.unescape=function(n){return(n=null==n?"":ru(n))&&(X.lastIndex=0,X.test(n))?n.replace(X,O):n},Nt.uniqueId=function(n){var t=++Z;return ru(null==n?"":n)+t},Nt.words=$e,Nt.all=re,Nt.any=he,Nt.detect=ue,Nt.foldl=ce,Nt.foldr=se,Nt.head=Kr,Nt.include=te,Nt.inject=ce,ze(Nt,function(){var n={};
|
||||
return ir(Nt,function(t,r){Nt.prototype[r]||(n[r]=t)}),n}(),false),Nt.sample=function(n,t,r){return r||null==t?(n=Br(n),t=n.length,0<t?n[gr(0,t-1)]:C):(n=pe(n),n.length=ku(0>t?0:+t||0,n.length),n)},Nt.prototype.sample=function(n,t){return n=t?null:n,this.__chain__||null!=n?this.thru(function(t){return Nt.sample(t,n)}):Nt.sample(this.value())},Nt.VERSION=F,$t.prototype=Nt.prototype,Nt.prototype.chain=function(){return ne(this)},Nt.prototype.toString=function(){return ru(this.value())},Nt.prototype.toJSON=Nt.prototype.value=Nt.prototype.valueOf=function(){for(var n=-1,t=this.__queue__,r=t.length,e=this.__wrapped__;++n<r;){var e=[e],u=t[n],o=u[1];
|
||||
_u.apply(e,u[2]),e=o[u[0]].apply(o,e)}return e},n("bind bindKey curry curryRight partial partialRight".split(" "),function(n){Nt[n].placeholder=Nt}),n("concat join pop push reverse shift sort splice unshift".split(" "),function(n){var t=uu[n],r=/^(?:join|pop|shift)$/.test(n),e=/^(?:push|reverse|sort|unshift)$/.test(n)?"tap":"thru",u=Bu.spliceObjects||!/^(?:pop|shift|splice)$/.test(n)?t:function(){var n=t.apply(this,arguments);return 0===this.length&&delete this[0],n};Nt.prototype[n]=function(){var n=arguments;
|
||||
return r&&!this.__chain__?u.apply(this.value(),n):this[e](function(t){return u.apply(t,n)})}}),Nt}var C,F="3.0.0-pre",S=1,D=2,R=4,k=8,U=16,T=32,W=64,L=30,N="...",$=150,q=16,P="Expected a function",B=Math.pow(2,32)-1,M=B-1,z=Math.pow(2,53)-1,K="__lodash_placeholder__",Z=0,V=/\b__p\+='';/g,Y=/\b(__p\+=)''\+/g,J=/(__e\(.*?\)|\b__t\))\+'';/g,X=/&(?:amp|lt|gt|quot|#39|#96);/g,G=/[&<>"'`]/g,H=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,nt=/<%=([\s\S]+?)%>/g,tt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rt=/\w*$/,et=/^\s*function[ \n\r\t]+\w/,ut=/^0[xX]/,ot=/^\[object .+?Constructor\]$/,it=/[\xC0-\xD6\xD8-\xDE\xDF-\xF6\xF8-\xFF]/g,ft=/($^)/,at=/[.*+?^${}()|[\]\/\\]/g,lt=/\bthis\b/,ct=/['\n\r\u2028\u2029\\]/g,st=RegExp("[A-Z\\xC0-\\xD6\\xD8-\\xDE]{2,}(?=[A-Z\\xC0-\\xD6\\xD8-\\xDE][a-z\\xDF-\\xF6\\xF8-\\xFF]+)|[A-Z\\xC0-\\xD6\\xD8-\\xDE]?[a-z\\xDF-\\xF6\\xF8-\\xFF]+|[A-Z\\xC0-\\xD6\\xD8-\\xDE]+|[0-9]+","g"),pt=" \t\x0B\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000",ht="Array ArrayBuffer Date Error Float32Array Float64Array Function Int8Array Int16Array Int32Array Math Number Object RegExp Set String _ clearTimeout document isFinite parseInt setTimeout TypeError Uint8Array Uint8ClampedArray Uint16Array Uint32Array WeakMap window WinRTError".split(" "),gt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),vt="[object Arguments]",yt="[object Array]",dt="[object Boolean]",mt="[object Date]",bt="[object Error]",_t="[object Function]",xt="[object Number]",wt="[object Object]",jt="[object RegExp]",At="[object String]",Et="[object ArrayBuffer]",Ot="[object Float32Array]",It="[object Float64Array]",Ct="[object Int8Array]",Ft="[object Int16Array]",St="[object Int32Array]",Dt="[object Uint8Array]",Rt="[object Uint8ClampedArray]",kt="[object Uint16Array]",Ut="[object Uint32Array]",Tt={};
|
||||
Tt[vt]=Tt[yt]=Tt[Ot]=Tt[It]=Tt[Ct]=Tt[Ft]=Tt[St]=Tt[Dt]=Tt[Rt]=Tt[kt]=Tt[Ut]=true,Tt[Et]=Tt[dt]=Tt[mt]=Tt[bt]=Tt[_t]=Tt["[object Map]"]=Tt[xt]=Tt[wt]=Tt[jt]=Tt["[object Set]"]=Tt[At]=Tt["[object WeakMap]"]=false;var Wt={};Wt[vt]=Wt[yt]=Wt[Et]=Wt[dt]=Wt[mt]=Wt[Ot]=Wt[It]=Wt[Ct]=Wt[Ft]=Wt[St]=Wt[xt]=Wt[wt]=Wt[jt]=Wt[At]=Wt[Dt]=Wt[Rt]=Wt[kt]=Wt[Ut]=true,Wt[bt]=Wt[_t]=Wt["[object Map]"]=Wt["[object Set]"]=Wt["[object WeakMap]"]=false;var Lt={leading:false,maxWait:0,trailing:false},Nt={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},$t={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},qt={"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss"},Pt={"function":true,object:true},Bt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Mt=Pt[typeof window]&&window||this,zt=Pt[typeof exports]&&exports&&!exports.nodeType&&exports,Kt=Pt[typeof module]&&module&&!module.nodeType&&module,Zt=zt&&Kt&&typeof global=="object"&&global;
|
||||
!Zt||Zt.global!==Zt&&Zt.window!==Zt&&Zt.self!==Zt||(Mt=Zt);var Vt=Kt&&Kt.exports===zt&&zt,Yt=function(){try{({toString:0}+"")}catch(n){return function(){return false}}return function(n){return typeof n.toString!="function"&&typeof(n+"")=="string"}}(),Jt=I();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Mt._=Jt, define(function(){return Jt})):zt&&Kt?Vt?(Kt.exports=Jt)._=Jt:zt._=Jt:Mt._=Jt}).call(this);
|
||||
346
dist/lodash.js
vendored
346
dist/lodash.js
vendored
@@ -24,6 +24,10 @@
|
||||
PARTIAL_FLAG = 32,
|
||||
PARTIAL_RIGHT_FLAG = 64;
|
||||
|
||||
/** Used as default options for `_.trunc` */
|
||||
var DEFAULT_TRUNC_LENGTH = 30,
|
||||
DEFAULT_TRUNC_OMISSION = '...';
|
||||
|
||||
/** Used to detect when a function becomes hot */
|
||||
var HOT_COUNT = 150,
|
||||
HOT_SPAN = 16;
|
||||
@@ -81,8 +85,8 @@
|
||||
/** Used to detect host constructors (Safari > 5) */
|
||||
var reHostCtor = /^\[object .+?Constructor\]$/;
|
||||
|
||||
/** Used to match latin-1 supplement letters */
|
||||
var reLatin1 = /[\xC0-\xFF]/g;
|
||||
/** Used to match latin-1 supplement letters (excluding mathematical operators) */
|
||||
var reLatin1 = /[\xC0-\xD6\xD8-\xDE\xDF-\xF6\xF8-\xFF]/g;
|
||||
|
||||
/** Used to ensure capturing order of template delimiters */
|
||||
var reNoMatch = /($^)/;
|
||||
@@ -102,11 +106,10 @@
|
||||
|
||||
/** Used to match words to create compound words */
|
||||
var reWords = (function() {
|
||||
var nums = '[0-9]',
|
||||
upper = '[A-Z\\xC0-\\xD6\\xD8-\\xDE]',
|
||||
lower = '[a-z\\xDF-\\xF6\\xF8-\\xFF]+' + nums + '*';
|
||||
var upper = '[A-Z\\xC0-\\xD6\\xD8-\\xDE]',
|
||||
lower = '[a-z\\xDF-\\xF6\\xF8-\\xFF]+';
|
||||
|
||||
return RegExp(upper + '{2,}(?=' + upper + lower + ')|' + upper + '?' + lower + '|' + upper + '+|' + nums + '+', 'g');
|
||||
return RegExp(upper + '{2,}(?=' + upper + lower + ')|' + upper + '?' + lower + '|' + upper + '+|[0-9]+', 'g');
|
||||
}());
|
||||
|
||||
/** Used to detect and test whitespace */
|
||||
@@ -248,7 +251,7 @@
|
||||
'\xDD': 'Y', '\xFD': 'y', '\xFF': 'y',
|
||||
'\xC6': 'Ae', '\xE6': 'ae',
|
||||
'\xDE': 'Th', '\xFE': 'th',
|
||||
'\xDF': 'ss', '\xD7': ' ', '\xF7': ' '
|
||||
'\xDF': 'ss'
|
||||
};
|
||||
|
||||
/** Used to determine if values are of the language type `Object` */
|
||||
@@ -335,7 +338,7 @@
|
||||
* @private
|
||||
* @param {Array} array The array to iterate over.
|
||||
* @param {Function} predicate The function invoked per iteration.
|
||||
* @returns {Array} Returns `true` if all elements passed the predicate check,
|
||||
* @returns {Array} Returns `true` if all elements pass the predicate check,
|
||||
* else `false`
|
||||
*/
|
||||
function arrayEvery(array, predicate) {
|
||||
@@ -450,7 +453,7 @@
|
||||
* @private
|
||||
* @param {Array} array The array to iterate over.
|
||||
* @param {Function} predicate The function invoked per iteration.
|
||||
* @returns {boolean} Returns `true` if any element passed the predicate check,
|
||||
* @returns {boolean} Returns `true` if any element passes the predicate check,
|
||||
* else `false`.
|
||||
*/
|
||||
function arraySome(array, predicate) {
|
||||
@@ -510,7 +513,8 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* The base implementation of `_.indexOf` without support for binary searches.
|
||||
* The base implementation of `_.indexOf` without support for `fromIndex`
|
||||
* bounds checks and binary searches.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to search.
|
||||
@@ -519,13 +523,14 @@
|
||||
* @returns {number} Returns the index of the matched value, else `-1`.
|
||||
*/
|
||||
function baseIndexOf(array, value, fromIndex) {
|
||||
if (value !== value) {
|
||||
return indexOfNaN(array, fromIndex);
|
||||
}
|
||||
var index = (fromIndex || 0) - 1,
|
||||
length = array ? array.length : 0,
|
||||
isReflexive = value === value;
|
||||
length = array.length;
|
||||
|
||||
while (++index < length) {
|
||||
var other = array[index];
|
||||
if ((isReflexive ? other === value : other !== other)) {
|
||||
if (array[index] === value) {
|
||||
return index;
|
||||
}
|
||||
}
|
||||
@@ -686,6 +691,46 @@
|
||||
return '\\' + stringEscapes[chr];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the index at which the first occurrence of `NaN` is found in `array`.
|
||||
* If `fromRight` is provided elements of `array` are iterated from right to left.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to search.
|
||||
* @param {number} [fromIndex] The index to search from.
|
||||
* @param {boolean} [fromRight=false] Specify iterating from right to left.
|
||||
* @returns {number} Returns the index of the matched `NaN`, else `-1`.
|
||||
*/
|
||||
function indexOfNaN(array, fromIndex, fromRight) {
|
||||
var length = array.length,
|
||||
index = fromRight ? (fromIndex || length) : ((fromIndex || 0) - 1);
|
||||
|
||||
while ((fromRight ? index-- : ++index < length)) {
|
||||
var other = array[index];
|
||||
if (other !== other) {
|
||||
return index;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the provided arguments are from an iteratee call.
|
||||
*
|
||||
* @private
|
||||
* @param {*} value The potential iteratee value argument.
|
||||
* @param {*} index The potential iteratee index or key argument.
|
||||
* @param {*} object The potential iteratee object argument.
|
||||
* @returns {boolean} Returns `true` if the arguments are from an iteratee call, else `false`.
|
||||
*/
|
||||
function isIterateeCall(value, index, object) {
|
||||
var indexType = typeof index,
|
||||
objectType = typeof object;
|
||||
|
||||
return (object && (indexType == 'number' || indexType == 'string') &&
|
||||
(objectType == 'function' || objectType == 'object') && object[index] === value) || false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Used by `_.trimmedLeftIndex` and `_.trimmedRightIndex` to determine if a
|
||||
* character code is whitespace.
|
||||
@@ -1375,7 +1420,7 @@
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to inspect.
|
||||
* @param {Array} [values] The values to exclude.
|
||||
* @param {Array} values The values to exclude.
|
||||
* @returns {Array} Returns the new array of filtered values.
|
||||
*/
|
||||
function baseDifference(array, values) {
|
||||
@@ -1389,7 +1434,7 @@
|
||||
isLarge = prereq && createCache && values && values.length >= 200,
|
||||
isCommon = prereq && !isLarge,
|
||||
result = [],
|
||||
valuesLength = values ? values.length : 0;
|
||||
valuesLength = values.length;
|
||||
|
||||
if (isLarge) {
|
||||
indexOf = cacheIndexOf;
|
||||
@@ -1464,13 +1509,13 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* The base implementation of `_.every` without support for callback shorthands
|
||||
* or `this` binding.
|
||||
* The base implementation of `_.every` without support for callback
|
||||
* shorthands or `this` binding.
|
||||
*
|
||||
* @private
|
||||
* @param {Array|Object|string} collection The collection to iterate over.
|
||||
* @param {Function} predicate The function invoked per iteration.
|
||||
* @returns {Array} Returns `true` if all elements passed the predicate check,
|
||||
* @returns {Array} Returns `true` if all elements pass the predicate check,
|
||||
* else `false`
|
||||
*/
|
||||
function baseEvery(collection, predicate) {
|
||||
@@ -2087,7 +2132,7 @@
|
||||
* @private
|
||||
* @param {Array|Object|string} collection The collection to iterate over.
|
||||
* @param {Function} predicate The function invoked per iteration.
|
||||
* @returns {boolean} Returns `true` if any element passed the predicate check,
|
||||
* @returns {boolean} Returns `true` if any element passes the predicate check,
|
||||
* else `false`.
|
||||
*/
|
||||
function baseSome(collection, predicate) {
|
||||
@@ -2355,12 +2400,10 @@
|
||||
var length = arguments.length,
|
||||
object = arguments[0];
|
||||
|
||||
if (object == null || length < 2) {
|
||||
if (length < 2 || object == null) {
|
||||
return object;
|
||||
}
|
||||
// enables use as a callback for functions like `_.reduce`
|
||||
var type = typeof arguments[2];
|
||||
if ((type == 'number' || type == 'string') && arguments[3] && arguments[3][arguments[2]] === arguments[1]) {
|
||||
if (length > 3 && isIterateeCall(arguments[1], arguments[2], arguments[3])) {
|
||||
length = 2;
|
||||
}
|
||||
// juggle arguments
|
||||
@@ -2844,8 +2887,8 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* A specialized version of `_.pick` that picks `object` properties
|
||||
* the predicate returns truthy for.
|
||||
* A specialized version of `_.pick` that picks `object` properties `predicate`
|
||||
* returns truthy for.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} object The source object.
|
||||
@@ -2995,6 +3038,7 @@
|
||||
* @category Array
|
||||
* @param {Array} array The array to process.
|
||||
* @param {numer} [size=1] The length of each chunk.
|
||||
* @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
|
||||
* @returns {Array} Returns the new array containing chunks.
|
||||
* @example
|
||||
*
|
||||
@@ -3004,13 +3048,13 @@
|
||||
* _.chunk(['a', 'b', 'c', 'd'], 3);
|
||||
* // => [['a', 'b', 'c'], ['d']]
|
||||
*/
|
||||
function chunk(array, size) {
|
||||
function chunk(array, size, guard) {
|
||||
var index = 0,
|
||||
length = array ? array.length : 0,
|
||||
resIndex = -1,
|
||||
result = [];
|
||||
|
||||
size = typeof size == 'undefined' ? 1 : nativeMax(+size || 1, 1);
|
||||
size = (guard || size == null) ? 1 : nativeMax(+size || 1, 1);
|
||||
while (index < length) {
|
||||
result[++resIndex] = slice(array, index, (index += size));
|
||||
}
|
||||
@@ -3104,7 +3148,7 @@
|
||||
* // => [1, 2, 3]
|
||||
*/
|
||||
function drop(array, n, guard) {
|
||||
n = (n == null || guard) ? 1 : n;
|
||||
n = (guard || n == null) ? 1 : n;
|
||||
return slice(array, n < 0 ? 0 : n);
|
||||
}
|
||||
|
||||
@@ -3135,14 +3179,14 @@
|
||||
*/
|
||||
function dropRight(array, n, guard) {
|
||||
var length = array ? array.length : 0;
|
||||
n = (n == null || guard) ? 1 : n;
|
||||
n = (guard || n == null) ? 1 : n;
|
||||
n = length - (n || 0);
|
||||
return slice(array, 0, n < 0 ? 0 : n);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a slice of `array` excluding elements dropped from the end.
|
||||
* Elements are dropped until the predicate returns falsey. The predicate is
|
||||
* Elements are dropped until `predicate` returns falsey. The predicate is
|
||||
* bound to `thisArg` and invoked with three arguments; (value, index, array).
|
||||
*
|
||||
* If a property name is provided for `predicate` the created "_.pluck" style
|
||||
@@ -3191,7 +3235,7 @@
|
||||
|
||||
/**
|
||||
* Creates a slice of `array` excluding elements dropped from the beginning.
|
||||
* Elements are dropped until the predicate returns falsey. The predicate is
|
||||
* Elements are dropped until `predicate` returns falsey. The predicate is
|
||||
* bound to `thisArg` and invoked with three arguments; (value, index, array).
|
||||
*
|
||||
* If a property name is provided for `predicate` the created "_.pluck" style
|
||||
@@ -3240,7 +3284,7 @@
|
||||
|
||||
/**
|
||||
* This method is like `_.find` except that it returns the index of the first
|
||||
* element the predicate returns truthy for, instead of the element itself.
|
||||
* element `predicate` returns truthy for, instead of the element itself.
|
||||
*
|
||||
* If a property name is provided for `predicate` the created "_.pluck" style
|
||||
* callback returns the property value of the given element.
|
||||
@@ -3388,15 +3432,7 @@
|
||||
*/
|
||||
function flatten(array, isDeep, guard) {
|
||||
var length = array ? array.length : 0;
|
||||
if (!length) {
|
||||
return [];
|
||||
}
|
||||
// enables use as a callback for functions like `_.map`
|
||||
var type = typeof isDeep;
|
||||
if ((type == 'number' || type == 'string') && guard && guard[isDeep] === array) {
|
||||
isDeep = false;
|
||||
}
|
||||
return baseFlatten(array, isDeep);
|
||||
return length ? baseFlatten(array, guard ? false : isDeep) : [];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3450,12 +3486,14 @@
|
||||
*/
|
||||
function indexOf(array, value, fromIndex) {
|
||||
var length = array ? array.length : 0;
|
||||
|
||||
if (!length) {
|
||||
return -1;
|
||||
}
|
||||
if (typeof fromIndex == 'number') {
|
||||
fromIndex = fromIndex < 0 ? nativeMax(length + fromIndex, 0) : (fromIndex || 0);
|
||||
} else if (fromIndex) {
|
||||
var index = sortedIndex(array, value);
|
||||
return (length && array[index] === value) ? index : -1;
|
||||
return array[index] === value ? index : -1;
|
||||
}
|
||||
return baseIndexOf(array, value, fromIndex);
|
||||
}
|
||||
@@ -3475,7 +3513,7 @@
|
||||
*/
|
||||
function initial(array) {
|
||||
var length = array ? array.length : 0;
|
||||
return slice(array, 0, length ? length - 1 : 0);
|
||||
return slice(array, 0, (length || 1) - 1);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3583,19 +3621,22 @@
|
||||
* // => 3
|
||||
*/
|
||||
function lastIndexOf(array, value, fromIndex) {
|
||||
var length = array ? array.length : 0,
|
||||
index = length;
|
||||
|
||||
var length = array ? array.length : 0;
|
||||
if (!length) {
|
||||
return -1;
|
||||
}
|
||||
var index = length;
|
||||
if (typeof fromIndex == 'number') {
|
||||
index = (fromIndex < 0 ? nativeMax(index + fromIndex, 0) : nativeMin(fromIndex || 0, index - 1)) + 1;
|
||||
index = (fromIndex < 0 ? nativeMax(length + fromIndex, 0) : nativeMin(fromIndex || 0, length - 1)) + 1;
|
||||
} else if (fromIndex) {
|
||||
index = sortedLastIndex(array, value) - 1;
|
||||
return (length && array[index] === value) ? index : -1;
|
||||
return array[index] === value ? index : -1;
|
||||
}
|
||||
if (value !== value) {
|
||||
return indexOfNaN(array, index, true);
|
||||
}
|
||||
var isReflexive = value === value;
|
||||
while (index--) {
|
||||
var other = array[index];
|
||||
if ((isReflexive ? other === value : other !== other)) {
|
||||
if (array[index] === value) {
|
||||
return index;
|
||||
}
|
||||
}
|
||||
@@ -3626,8 +3667,11 @@
|
||||
* // => [1, 1]
|
||||
*/
|
||||
function pull() {
|
||||
var array = arguments[0],
|
||||
index = 0,
|
||||
var array = arguments[0];
|
||||
if (!(array && array.length)) {
|
||||
return array;
|
||||
}
|
||||
var index = 0,
|
||||
indexOf = getIndexOf(),
|
||||
length = arguments.length;
|
||||
|
||||
@@ -3672,7 +3716,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes all elements from `array` that the predicate returns truthy for
|
||||
* Removes all elements from `array` that `predicate` returns truthy for
|
||||
* and returns an array of the removed elements. The predicate is bound to
|
||||
* `thisArg` and invoked with three arguments; (value, index, array).
|
||||
*
|
||||
@@ -3756,13 +3800,18 @@
|
||||
*/
|
||||
function slice(array, start, end) {
|
||||
var index = -1,
|
||||
length = array ? array.length : 0;
|
||||
length = array ? array.length : 0,
|
||||
endType = typeof end;
|
||||
|
||||
if (end && endType != 'number' && isIterateeCall(array, start, end)) {
|
||||
start = 0;
|
||||
end = length;
|
||||
}
|
||||
start = start == null ? 0 : (+start || 0);
|
||||
if (start < 0) {
|
||||
start = -start > length ? 0 : (length + start);
|
||||
}
|
||||
end = (typeof end == 'undefined' || end > length) ? length : (+end || 0);
|
||||
end = (endType == 'undefined' || end > length) ? length : (+end || 0);
|
||||
if (end < 0) {
|
||||
end += length;
|
||||
}
|
||||
@@ -3783,7 +3832,7 @@
|
||||
* be inserted into a given sorted array in order to maintain the sort order
|
||||
* of the array. If an iteratee function is provided it is invoked for `value`
|
||||
* and each element of `array` to compute their sort ranking. The iteratee
|
||||
* function is bound to `thisArg` and invoked with one argument; (value).
|
||||
* is bound to `thisArg` and invoked with one argument; (value).
|
||||
*
|
||||
* If a property name is provided for `iteratee` the created "_.pluck" style
|
||||
* callback returns the property value of the given element.
|
||||
@@ -3880,7 +3929,7 @@
|
||||
* // => []
|
||||
*/
|
||||
function take(array, n, guard) {
|
||||
n = (n == null || guard) ? 1 : n;
|
||||
n = (guard || n == null) ? 1 : n;
|
||||
return slice(array, 0, n < 0 ? 0 : n);
|
||||
}
|
||||
|
||||
@@ -3911,14 +3960,14 @@
|
||||
*/
|
||||
function takeRight(array, n, guard) {
|
||||
var length = array ? array.length : 0;
|
||||
n = (n == null || guard) ? 1 : n;
|
||||
n = (guard || n == null) ? 1 : n;
|
||||
n = length - (n || 0);
|
||||
return slice(array, n < 0 ? 0 : n);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a slice of `array` with elements taken from the end. Elements are
|
||||
* taken until the predicate returns falsey. The predicate is bound to `thisArg`
|
||||
* taken until `predicate` returns falsey. The predicate is bound to `thisArg`
|
||||
* and invoked with three arguments; (value, index, array).
|
||||
*
|
||||
* If a property name is provided for `predicate` the created "_.pluck" style
|
||||
@@ -3967,7 +4016,7 @@
|
||||
|
||||
/**
|
||||
* Creates a slice of `array` with elements taken from the beginning. Elements
|
||||
* are taken until the predicate returns falsey. The predicate is bound to
|
||||
* are taken until `predicate` returns falsey. The predicate is bound to
|
||||
* `thisArg` and invoked with three arguments; (value, index, array).
|
||||
*
|
||||
* If a property name is provided for `predicate` the created "_.pluck" style
|
||||
@@ -4089,16 +4138,10 @@
|
||||
return [];
|
||||
}
|
||||
// juggle arguments
|
||||
var type = typeof isSorted;
|
||||
if (type != 'boolean' && isSorted != null) {
|
||||
if (typeof isSorted != 'boolean' && isSorted != null) {
|
||||
thisArg = iteratee;
|
||||
iteratee = isSorted;
|
||||
iteratee = isIterateeCall(array, isSorted, thisArg) ? null : isSorted;
|
||||
isSorted = false;
|
||||
|
||||
// enables use as a callback for functions like `_.map`
|
||||
if ((type == 'number' || type == 'string') && thisArg && thisArg[iteratee] === array) {
|
||||
iteratee = null;
|
||||
}
|
||||
}
|
||||
if (iteratee != null) {
|
||||
iteratee = getCallback(iteratee, thisArg, 3);
|
||||
@@ -4478,6 +4521,9 @@
|
||||
collection = values(collection);
|
||||
length = collection.length;
|
||||
}
|
||||
if (!length) {
|
||||
return false;
|
||||
}
|
||||
if (typeof fromIndex == 'number') {
|
||||
fromIndex = fromIndex < 0 ? nativeMax(length + fromIndex, 0) : (fromIndex || 0);
|
||||
} else {
|
||||
@@ -4527,7 +4573,7 @@
|
||||
});
|
||||
|
||||
/**
|
||||
* Checks if the predicate returns truthy for **all** elements of `collection`.
|
||||
* Checks if `predicate` returns truthy for **all** elements of `collection`.
|
||||
* The predicate is bound to `thisArg` and invoked with three arguments;
|
||||
* (value, index|key, collection).
|
||||
*
|
||||
@@ -4547,7 +4593,7 @@
|
||||
* per iteration. If a property name or object is provided it is used to
|
||||
* create a "_.pluck" or "_.where" style callback respectively.
|
||||
* @param {*} [thisArg] The `this` binding of `predicate`.
|
||||
* @returns {boolean} Returns `true` if all elements passed the predicate check,
|
||||
* @returns {boolean} Returns `true` if all elements pass the predicate check,
|
||||
* else `false`.
|
||||
* @example
|
||||
*
|
||||
@@ -4577,7 +4623,7 @@
|
||||
|
||||
/**
|
||||
* Iterates over elements of `collection`, returning an array of all elements
|
||||
* the predicate returns truthy for. The predicate is bound to `thisArg` and
|
||||
* `predicate` returns truthy for. The predicate is bound to `thisArg` and
|
||||
* invoked with three arguments; (value, index|key, collection).
|
||||
*
|
||||
* If a property name is provided for `predicate` the created "_.pluck" style
|
||||
@@ -4623,8 +4669,8 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Iterates over elements of `collection`, returning the first element that
|
||||
* the predicate returns truthy for. The predicate is bound to `thisArg` and
|
||||
* Iterates over elements of `collection`, returning the first element
|
||||
* `predicate` returns truthy for. The predicate is bound to `thisArg` and
|
||||
* invoked with three arguments; (value, index|key, collection).
|
||||
*
|
||||
* If a property name is provided for `predicate` the created "_.pluck" style
|
||||
@@ -4982,17 +5028,13 @@
|
||||
* // => { 'user': 'fred', 'age': 40 };
|
||||
*/
|
||||
function max(collection, iteratee, thisArg) {
|
||||
var computed = -Infinity,
|
||||
result = computed,
|
||||
type = typeof iteratee;
|
||||
iteratee = isIterateeCall(collection, iteratee, thisArg) ? null : iteratee;
|
||||
|
||||
// enables use as a callback for functions like `_.map`
|
||||
if ((type == 'number' || type == 'string') && thisArg && thisArg[iteratee] === collection) {
|
||||
iteratee = null;
|
||||
}
|
||||
var noIteratee = iteratee == null,
|
||||
var computed = -Infinity,
|
||||
noIteratee = iteratee == null,
|
||||
isArr = noIteratee && isArray(collection),
|
||||
isStr = !isArr && isString(collection);
|
||||
isStr = !isArr && isString(collection),
|
||||
result = computed;
|
||||
|
||||
if (noIteratee && !isStr) {
|
||||
var index = -1,
|
||||
@@ -5065,17 +5107,13 @@
|
||||
* // => { 'user': 'barney', 'age': 36 };
|
||||
*/
|
||||
function min(collection, iteratee, thisArg) {
|
||||
var computed = Infinity,
|
||||
result = computed,
|
||||
type = typeof iteratee;
|
||||
iteratee = isIterateeCall(collection, iteratee, thisArg) ? null : iteratee;
|
||||
|
||||
// enables use as a callback for functions like `_.map`
|
||||
if ((type == 'number' || type == 'string') && thisArg && thisArg[iteratee] === collection) {
|
||||
iteratee = null;
|
||||
}
|
||||
var noIteratee = iteratee == null,
|
||||
var computed = Infinity,
|
||||
noIteratee = iteratee == null,
|
||||
isArr = noIteratee && isArray(collection),
|
||||
isStr = !isArr && isString(collection);
|
||||
isStr = !isArr && isString(collection),
|
||||
result = computed;
|
||||
|
||||
if (noIteratee && !isStr) {
|
||||
var index = -1,
|
||||
@@ -5106,8 +5144,8 @@
|
||||
|
||||
/**
|
||||
* Creates an array of elements split into two groups, the first of which
|
||||
* contains elements the predicate returns truthy for, while the second of which
|
||||
* contains elements the predicate returns falsey for. The predicate is bound
|
||||
* contains elements `predicate` returns truthy for, while the second of which
|
||||
* contains elements `predicate` returns falsey for. The predicate is bound
|
||||
* to `thisArg` and invoked with three arguments; (value, index|key, collection).
|
||||
*
|
||||
* If a property name is provided for `predicate` the created "_.pluck" style
|
||||
@@ -5238,7 +5276,7 @@
|
||||
|
||||
/**
|
||||
* The opposite of `_.filter`; this method returns the elements of `collection`
|
||||
* the predicate does **not** return truthy for.
|
||||
* that `predicate` does **not** return truthy for.
|
||||
*
|
||||
* If a property name is provided for `predicate` the created "_.pluck" style
|
||||
* callback returns the property value of the given element.
|
||||
@@ -5302,7 +5340,7 @@
|
||||
* // => [3, 1]
|
||||
*/
|
||||
function sample(collection, n, guard) {
|
||||
if (n == null || guard) {
|
||||
if (guard || n == null) {
|
||||
collection = toIterable(collection);
|
||||
var length = collection.length;
|
||||
return length > 0 ? collection[baseRandom(0, length - 1)] : undefined;
|
||||
@@ -5372,7 +5410,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the predicate returns truthy for **any** element of `collection`.
|
||||
* Checks if `predicate` returns truthy for **any** element of `collection`.
|
||||
* The function returns as soon as it finds a passing value and does not iterate
|
||||
* over the entire collection. The predicate is bound to `thisArg` and invoked
|
||||
* with three arguments; (value, index|key, collection).
|
||||
@@ -5393,7 +5431,7 @@
|
||||
* per iteration. If a property name or object is provided it is used to
|
||||
* create a "_.pluck" or "_.where" style callback respectively.
|
||||
* @param {*} [thisArg] The `this` binding of `predicate`.
|
||||
* @returns {boolean} Returns `true` if any element passed the predicate check,
|
||||
* @returns {boolean} Returns `true` if any element passes the predicate check,
|
||||
* else `false`.
|
||||
* @example
|
||||
*
|
||||
@@ -5471,6 +5509,8 @@
|
||||
* // = > [['barney', 26], ['barney', 36], ['fred', 30], ['fred', 40]]
|
||||
*/
|
||||
function sortBy(collection, iteratee, thisArg) {
|
||||
iteratee = isIterateeCall(collection, iteratee, thisArg) ? null : iteratee;
|
||||
|
||||
var index = -1,
|
||||
length = collection ? collection.length : 0,
|
||||
multi = iteratee && isArray(iteratee),
|
||||
@@ -5765,6 +5805,7 @@
|
||||
* @category Function
|
||||
* @param {Function} func The function to curry.
|
||||
* @param {number} [arity=func.length] The arity of `func`.
|
||||
* @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
|
||||
* @returns {Function} Returns the new curried function.
|
||||
* @example
|
||||
*
|
||||
@@ -5781,8 +5822,8 @@
|
||||
* curried(1, 2, 3);
|
||||
* // => [1, 2, 3]
|
||||
*/
|
||||
function curry(func, arity) {
|
||||
var result = baseCurry(func, CURRY_FLAG, arity);
|
||||
function curry(func, arity, guard) {
|
||||
var result = baseCurry(func, CURRY_FLAG, guard ? null : arity);
|
||||
result.placeholder = curry.placeholder;
|
||||
return result;
|
||||
}
|
||||
@@ -5798,6 +5839,7 @@
|
||||
* @category Function
|
||||
* @param {Function} func The function to curry.
|
||||
* @param {number} [arity=func.length] The arity of `func`.
|
||||
* @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
|
||||
* @returns {Function} Returns the new curried function.
|
||||
* @example
|
||||
*
|
||||
@@ -5814,8 +5856,8 @@
|
||||
* curried(1, 2, 3);
|
||||
* // => [1, 2, 3]
|
||||
*/
|
||||
function curryRight(func, arity) {
|
||||
var result = baseCurry(func, CURRY_RIGHT_FLAG, arity);
|
||||
function curryRight(func, arity, guard) {
|
||||
var result = baseCurry(func, CURRY_RIGHT_FLAG, guard ? null : arity);
|
||||
result.placeholder = curryRight.placeholder;
|
||||
return result;
|
||||
}
|
||||
@@ -6431,18 +6473,11 @@
|
||||
* // => 0
|
||||
*/
|
||||
function clone(value, isDeep, customizer, thisArg) {
|
||||
var type = typeof isDeep;
|
||||
|
||||
// juggle arguments
|
||||
if (type != 'boolean' && isDeep != null) {
|
||||
if (typeof isDeep != 'boolean' && isDeep != null) {
|
||||
thisArg = customizer;
|
||||
customizer = isDeep;
|
||||
customizer = isIterateeCall(value, isDeep, thisArg) ? null : isDeep;
|
||||
isDeep = false;
|
||||
|
||||
// enables use as a callback for functions like `_.map`
|
||||
if ((type == 'number' || type == 'string') && thisArg && thisArg[customizer] === value) {
|
||||
customizer = null;
|
||||
}
|
||||
}
|
||||
customizer = typeof customizer == 'function' && baseCallback(customizer, thisArg, 1);
|
||||
return baseClone(value, isDeep, customizer);
|
||||
@@ -6555,8 +6590,8 @@
|
||||
* // => false
|
||||
*/
|
||||
function isBoolean(value) {
|
||||
return (value === true || value === false ||
|
||||
value && typeof value == 'object' && toString.call(value) == boolClass) || false;
|
||||
return (value === true || value === false || value && typeof value == 'object' &&
|
||||
toString.call(value) == boolClass) || false;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -6602,8 +6637,7 @@
|
||||
// fallback for environments without DOM support
|
||||
if (!support.dom) {
|
||||
isElement = function(value) {
|
||||
return (value && typeof value == 'object' && value.nodeType === 1 &&
|
||||
!isPlainObject(value)) || false;
|
||||
return (value && typeof value == 'object' && value.nodeType === 1 && !isPlainObject(value)) || false;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -6897,8 +6931,7 @@
|
||||
*/
|
||||
function isNumber(value) {
|
||||
var type = typeof value;
|
||||
return type == 'number' ||
|
||||
(value && type == 'object' && toString.call(value) == numberClass) || false;
|
||||
return type == 'number' || (value && type == 'object' && toString.call(value) == numberClass) || false;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -6981,8 +7014,8 @@
|
||||
* // => false
|
||||
*/
|
||||
function isString(value) {
|
||||
return typeof value == 'string' ||
|
||||
(value && typeof value == 'object' && toString.call(value) == stringClass) || false;
|
||||
return typeof value == 'string' || (value && typeof value == 'object' &&
|
||||
toString.call(value) == stringClass) || false;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -7047,6 +7080,7 @@
|
||||
* @category Object
|
||||
* @param {Object} prototype The object to inherit from.
|
||||
* @param {Object} [properties] The properties to assign to the object.
|
||||
* @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
|
||||
* @returns {Object} Returns the new object.
|
||||
* @example
|
||||
*
|
||||
@@ -7068,8 +7102,9 @@
|
||||
* circle instanceof Shape;
|
||||
* // => true
|
||||
*/
|
||||
function create(prototype, properties) {
|
||||
function create(prototype, properties, guard) {
|
||||
var result = baseCreate(prototype);
|
||||
properties = guard ? null : properties;
|
||||
return properties ? baseAssign(result, properties) : result;
|
||||
}
|
||||
|
||||
@@ -7103,7 +7138,7 @@
|
||||
|
||||
/**
|
||||
* This method is like `_.findIndex` except that it returns the key of the
|
||||
* first element the predicate returns truthy for, instead of the element itself.
|
||||
* first element `predicate` returns truthy for, instead of the element itself.
|
||||
*
|
||||
* If a property name is provided for `predicate` the created "_.pluck" style
|
||||
* callback returns the property value of the given element.
|
||||
@@ -7356,6 +7391,7 @@
|
||||
* @category Object
|
||||
* @param {Object} object The object to invert.
|
||||
* @param {boolean} [multiValue=false] Allow multiple values per key.
|
||||
* @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
|
||||
* @returns {Object} Returns the new inverted object.
|
||||
* @example
|
||||
*
|
||||
@@ -7370,7 +7406,9 @@
|
||||
* _.invert({ 'first': 'fred', 'second': 'barney', 'third': 'fred' }, true);
|
||||
* // => { 'fred': ['first', 'third'], 'barney': ['second'] }
|
||||
*/
|
||||
function invert(object, multiValue) {
|
||||
function invert(object, multiValue, guard) {
|
||||
multiValue = guard ? null : multiValue;
|
||||
|
||||
var index = -1,
|
||||
props = keys(object),
|
||||
length = props.length,
|
||||
@@ -7455,7 +7493,7 @@
|
||||
}
|
||||
var length = object.length;
|
||||
length = (typeof length == 'number' && length > 0 &&
|
||||
(isArray(object) || (support.nonEnumArgs && isArguments(object))) && length) >>> 0;
|
||||
(isArray(object) || (support.nonEnumArgs && isArguments(object))) && length) || 0;
|
||||
|
||||
var keyIndex,
|
||||
Ctor = object.constructor,
|
||||
@@ -7573,8 +7611,8 @@
|
||||
/**
|
||||
* Creates a shallow clone of `object` excluding the specified properties.
|
||||
* Property names may be specified as individual arguments or as arrays of
|
||||
* property names. If a predicate is provided it is invoked for each property
|
||||
* of `object` omitting the properties the predicate returns truthy for. The
|
||||
* property names. If `predicate` is provided it is invoked for each property
|
||||
* of `object` omitting the properties `predicate` returns truthy for. The
|
||||
* predicate is bound to `thisArg` and invoked with three arguments;
|
||||
* (value, key, object).
|
||||
*
|
||||
@@ -7641,8 +7679,8 @@
|
||||
/**
|
||||
* Creates a shallow clone of `object` composed of the specified properties.
|
||||
* Property names may be specified as individual arguments or as arrays of
|
||||
* property names. If a predicate is provided it is invoked for each property
|
||||
* of `object` picking the properties the predicate returns truthy for. The
|
||||
* property names. If `predicate` is provided it is invoked for each property
|
||||
* of `object` picking the properties `predicate` returns truthy for. The
|
||||
* predicate is bound to `thisArg` and invoked with three arguments;
|
||||
* (value, key, object).
|
||||
*
|
||||
@@ -8236,8 +8274,12 @@
|
||||
// and Laura Doktorova's doT.js
|
||||
// https://github.com/olado/doT
|
||||
var settings = lodash.templateSettings;
|
||||
options = assign({}, otherOptions || options, settings, assignOwnDefaults);
|
||||
|
||||
if (isIterateeCall(string, options, otherOptions)) {
|
||||
options = otherOptions = null;
|
||||
}
|
||||
string = String(string == null ? '' : string);
|
||||
options = assign({}, otherOptions || options, settings, assignOwnDefaults);
|
||||
|
||||
var imports = assign({}, options.imports, settings.imports, assignOwnDefaults),
|
||||
importsKeys = keys(imports),
|
||||
@@ -8340,6 +8382,7 @@
|
||||
* @category String
|
||||
* @param {string} [string=''] The string to trim.
|
||||
* @param {string} [chars=whitespace] The characters to trim.
|
||||
* @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
|
||||
* @returns {string} Returns the trimmed string.
|
||||
* @example
|
||||
*
|
||||
@@ -8349,12 +8392,12 @@
|
||||
* _.trim('-_-fred-_-', '_-');
|
||||
* // => 'fred'
|
||||
*/
|
||||
function trim(string, chars) {
|
||||
function trim(string, chars, guard) {
|
||||
string = string == null ? '' : String(string);
|
||||
if (!string) {
|
||||
return string;
|
||||
}
|
||||
if (chars == null) {
|
||||
if (guard || chars == null) {
|
||||
return string.slice(trimmedLeftIndex(string), trimmedRightIndex(string) + 1);
|
||||
}
|
||||
chars = String(chars);
|
||||
@@ -8369,6 +8412,7 @@
|
||||
* @category String
|
||||
* @param {string} [string=''] The string to trim.
|
||||
* @param {string} [chars=whitespace] The characters to trim.
|
||||
* @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
|
||||
* @returns {string} Returns the trimmed string.
|
||||
* @example
|
||||
*
|
||||
@@ -8378,12 +8422,12 @@
|
||||
* _.trimLeft('-_-fred-_-', '_-');
|
||||
* // => 'fred-_-'
|
||||
*/
|
||||
function trimLeft(string, chars) {
|
||||
function trimLeft(string, chars, guards) {
|
||||
string = string == null ? '' : String(string);
|
||||
if (!string) {
|
||||
return string;
|
||||
}
|
||||
if (chars == null) {
|
||||
if (guards || chars == null) {
|
||||
return string.slice(trimmedLeftIndex(string))
|
||||
}
|
||||
chars = String(chars);
|
||||
@@ -8398,6 +8442,7 @@
|
||||
* @category String
|
||||
* @param {string} [string=''] The string to trim.
|
||||
* @param {string} [chars=whitespace] The characters to trim.
|
||||
* @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
|
||||
* @returns {string} Returns the trimmed string.
|
||||
* @example
|
||||
*
|
||||
@@ -8407,12 +8452,12 @@
|
||||
* _.trimRight('-_-fred-_-', '_-');
|
||||
* // => '-_-fred'
|
||||
*/
|
||||
function trimRight(string, chars) {
|
||||
function trimRight(string, chars, guard) {
|
||||
string = string == null ? '' : String(string);
|
||||
if (!string) {
|
||||
return string;
|
||||
}
|
||||
if (chars == null) {
|
||||
if (guard || chars == null) {
|
||||
return string.slice(0, trimmedRightIndex(string) + 1)
|
||||
}
|
||||
chars = String(chars);
|
||||
@@ -8432,6 +8477,7 @@
|
||||
* @param {number} [options.length=30] The maximum string length.
|
||||
* @param {string} [options.omission='...'] The string to indicate text is omitted.
|
||||
* @param {RegExp|string} [options.separator] The separator pattern to truncate to.
|
||||
* @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
|
||||
* @returns {string} Returns the truncated string.
|
||||
* @example
|
||||
*
|
||||
@@ -8450,9 +8496,11 @@
|
||||
* _.trunc('hi-diddly-ho there, neighborino', { 'omission': ' [...]' });
|
||||
* // => 'hi-diddly-ho there, neig [...]'
|
||||
*/
|
||||
function trunc(string, options) {
|
||||
var length = 30,
|
||||
omission = '...';
|
||||
function trunc(string, options, guard) {
|
||||
options = guard ? null : options;
|
||||
|
||||
var length = DEFAULT_TRUNC_LENGTH,
|
||||
omission = DEFAULT_TRUNC_OMISSION;
|
||||
|
||||
if (isObject(options)) {
|
||||
var separator = 'separator' in options ? options.separator : separator;
|
||||
@@ -8531,6 +8579,7 @@
|
||||
* @category String
|
||||
* @param {string} [string=''] The string to inspect.
|
||||
* @param {RegExp|string} [pattern] The pattern to match words.
|
||||
* @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
|
||||
* @returns {Array} Returns the words of `string`.
|
||||
* @example
|
||||
*
|
||||
@@ -8540,8 +8589,9 @@
|
||||
* _.words('fred, barney, & pebbles', /[^, ]+/g);
|
||||
* // => ['fred', 'barney', '&', 'pebbles']
|
||||
*/
|
||||
function words(string, pattern) {
|
||||
function words(string, pattern, guard) {
|
||||
string = string != null && String(string);
|
||||
pattern = guard ? null : pattern;
|
||||
return (string && string.match(pattern || reWords)) || [];
|
||||
}
|
||||
|
||||
@@ -8587,6 +8637,7 @@
|
||||
* @category Utility
|
||||
* @param {*} [func=identity] The value to convert to a callback.
|
||||
* @param {*} [thisArg] The `this` binding of the created callback.
|
||||
* @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
|
||||
* @returns {Function} Returns the new function.
|
||||
* @example
|
||||
*
|
||||
@@ -8609,8 +8660,8 @@
|
||||
* _.filter(users, 'age__gt38');
|
||||
* // => [{ 'user': 'fred', 'age': 40 }]
|
||||
*/
|
||||
function callback(func, thisArg) {
|
||||
return baseCallback(func, thisArg);
|
||||
function callback(func, thisArg, guard) {
|
||||
return baseCallback(func, guard ? undefined : thisArg);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -8944,9 +8995,7 @@
|
||||
* // => a floating-point number between 1.2 and 5.2
|
||||
*/
|
||||
function random(min, max, floating) {
|
||||
// enables use as a callback for functions like `_.map`
|
||||
var type = typeof max;
|
||||
if ((type == 'number' || type == 'string') && floating && floating[max] === min) {
|
||||
if (floating && isIterateeCall(min, max, floating)) {
|
||||
max = floating = null;
|
||||
}
|
||||
var noMin = min == null,
|
||||
@@ -9013,13 +9062,10 @@
|
||||
* // => []
|
||||
*/
|
||||
function range(start, end, step) {
|
||||
start = +start || 0;
|
||||
|
||||
// enables use as a callback for functions like `_.map`
|
||||
var type = typeof end;
|
||||
if ((type == 'number' || type == 'string') && step && step[end] === start) {
|
||||
if (step && isIterateeCall(start, end, step)) {
|
||||
end = step = null;
|
||||
}
|
||||
start = +start || 0;
|
||||
step = step == null ? 1 : (+step || 0);
|
||||
|
||||
if (end == null) {
|
||||
|
||||
133
dist/lodash.min.js
vendored
133
dist/lodash.min.js
vendored
@@ -4,70 +4,69 @@
|
||||
* Build: `lodash modern -o ./dist/lodash.js`
|
||||
*/
|
||||
;(function(){function n(n,t){for(var r=-1,e=n.length;++r<e&&false!==t(n[r],r,n););return n}function t(n,t){for(var r=-1,e=n.length;++r<e;)if(!t(n[r],r,n))return false;return true}function r(n,t){for(var r=-1,e=n.length,u=Array(e);++r<e;)u[r]=t(n[r],r,n);return u}function e(n,t){for(var r=-1,e=n.length,u=-1,o=[];++r<e;){var i=n[r];t(i,r,n)&&(o[++u]=i)}return o}function u(n,t,r,e){var u=-1,o=n.length;for(e&&o&&(r=n[++u]);++u<o;)r=t(r,n[u],u,n);return r}function o(n,t,r,e){var u=n.length;for(e&&u&&(r=n[--u]);u--;)r=t(r,n[u],u,n);
|
||||
return r}function i(n,t){for(var r=-1,e=n.length;++r<e;)if(t(n[r],r,n))return true;return false}function f(n,t){for(var r=-1,e=t.length,u=Array(e);++r<e;)u[r]=n[t[r]];return u}function a(n,t){if(n!==t){var r=n===n,e=t===t;if(n>t||!r||typeof n=="undefined"&&e)return 1;if(n<t||!e||typeof t=="undefined"&&r)return-1}return 0}function c(n,t,r){r=(r||0)-1;for(var e=n?n.length:0,u=t===t;++r<e;){var o=n[r];if(u?o===t:o!==o)return r}return-1}function l(n){for(var t=-1,r=n?n.length:0,e=Array(r);++t<r;)e[t]=n[t];return e
|
||||
}function s(n,t){return n.has(t)?0:-1}function p(n){return n.charCodeAt(0)}function h(n,t){for(var r=-1,e=n.length;++r<e&&-1<t.indexOf(n.charAt(r)););return r}function g(n,t){for(var r=n.length;r--&&-1<t.indexOf(n.charAt(r)););return r}function v(n,t){return a(n.a,t.a)||n.b-t.b}function y(n,t){for(var r=-1,e=n.a,u=t.a,o=e.length;++r<o;){var i=a(e[r],u[r]);if(i)return i}return n.b-t.b}function m(n){return Tt[n]}function d(n){return Ct[n]}function b(n){return"\\"+Wt[n]}function _(n){return 160>=n&&9<=n&&13>=n||32==n||160==n||5760==n||6158==n||8192<=n&&(8202>=n||8232==n||8233==n||8239==n||8287==n||12288==n||65279==n)
|
||||
}function w(n,t){for(var r=-1,e=n.length,u=-1,o=[];++r<e;)n[r]===t&&(n[r]=B,o[++u]=r);return o}function x(n){for(var t=-1,r=n.length;++t<r&&_(n.charCodeAt(t)););return t}function j(n){for(var t=n.length;t--&&_(n.charCodeAt(t)););return t}function A(n){return St[n]}function E(_){function Ct(n){if(n&&typeof n=="object"){if(n instanceof St)return n;if(!Bu(n)&&tu.call(n,"__wrapped__"))return new St(n.__wrapped__,n.__chain__,l(n.__queue__))}return new St(n)}function St(n,t,r){this.__chain__=!!t,this.__queue__=r||[],this.__wrapped__=n
|
||||
}function Tt(n,t){return typeof n=="undefined"?t:n}function Ut(n,t,r,e){return typeof n!="undefined"&&tu.call(e,r)?n:t}function Wt(n,t,r){for(var e=-1,u=Pu(t),o=u.length;++e<o;){var i=u[e];n[i]=r?r(n[i],t[i],i,n,t):t[i]}return n}function $t(n,t,r){var e=typeof n;if("function"==e){if(typeof t=="undefined")return n;if(e=Tu(n),typeof e=="undefined"&&(ku.funcNames&&(e=!n.name),e=e||!ku.funcDecomp,!e)){var u=nu.call(n);ku.funcNames||(e=!Q.test(u)),e||(e=ot.test(u)||we(n),Cu(n,e))}if(false===e||true!==e&&e[1]&F)return n;
|
||||
switch(r){case 1:return function(r){return n.call(t,r)};case 3:return function(r,e,u){return n.call(t,r,e,u)};case 4:return function(r,e,u,o){return n.call(t,r,e,u,o)};case 5:return function(r,e,u,o,i){return n.call(t,r,e,u,o,i)}}return function(){return n.apply(t,arguments)}}return null==n?Ue:"object"==e?We(n):Le(n)}function qt(t,r,e,u,o){var i=e?e(t):I;if(typeof i!="undefined")return i;var f=Bu(t),i=t;if(f?i=Or(t,r):_e(t)&&(i=Fr(t,r),t=r&&eu.call(i)==yt?t:i),!r||i===t)return i;u||(u=[]),o||(o=[]);
|
||||
for(var a=u.length;a--;)if(u[a]==t)return o[a];return u.push(t),o.push(i),(f?n:Qt)(t,function(n,t){var f=e?e(n,t):I;i[t]=typeof f=="undefined"?qt(n,r,null,u,o):f}),i}function Bt(n){return _e(n)?bu(n):{}}function Mt(n,t,r){return typeof r!="number"&&(r=null==r?n?n.length:0:ju(+r||0,0)),Ar(n,t,r)}function zt(n,t){var r=n?n.length:0;if(!r)return[];var e=-1,u=Ir(),o=u==c,i=o&&Su&&t&&200<=t.length,o=o&&!i,f=[],a=t?t.length:0;i&&(u=s,t=Su(t));n:for(;++e<r;)if(i=n[e],o&&i===i){for(var l=a;l--;)if(t[l]===i)continue n;
|
||||
f.push(i)}else 0>u(t,i)&&f.push(i);return f}function Kt(n,t){var r=n?n.length:0;if(typeof r!="number"||-1>=r||r>L)return Qt(n,t);for(var e=-1,u=Wr(n);++e<r&&false!==t(u[e],e,u););return n}function Pt(n,t){var r=n?n.length:0;if(typeof r!="number"||-1>=r||r>L)return nr(n,t);for(var e=Wr(n);r--&&false!==t(e[r],r,e););return n}function Zt(n,t){var r=true;return Kt(n,function(n,e,u){return r=!!t(n,e,u)}),r}function Vt(n,t){var r=[];return Kt(n,function(n,e,u){t(n,e,u)&&r.push(n)}),r}function Yt(n,t,r,e){var u;
|
||||
return r(n,function(n,r,o){return t(n,r,o)?(u=e?r:n,false):void 0}),u}function Jt(n,t,r,e){e=(e||0)-1;for(var u=n.length,o=-1,i=[];++e<u;){var f=n[e];if(f&&typeof f=="object"&&typeof f.length=="number"&&(Bu(f)||ye(f))){t&&(f=Jt(f,t,r));var a=-1,c=f.length;for(i.length+=c;++a<c;)i[++o]=f[a]}else r||(i[++o]=f)}return i}function Xt(n,t,r){var e=-1,u=Wr(n);r=r(n);for(var o=r.length;++e<o;){var i=r[e];if(false===t(u[i],i,u))break}return n}function Gt(n,t,r){var e=Wr(n);r=r(n);for(var u=r.length;u--;){var o=r[u];
|
||||
if(false===t(e[o],o,e))break}return n}function Ht(n,t){Xt(n,t,Ie)}function Qt(n,t){return Xt(n,t,Pu)}function nr(n,t){return Gt(n,t,Pu)}function tr(n,t){for(var r=-1,e=t.length,u=-1,o=[];++r<e;){var i=t[r];be(n[i])&&(o[++u]=i)}return o}function rr(n,t,r,e,u,o){var i=r&&!u?r(n,t):I;if(typeof i!="undefined")return!!i;if(n===t)return 0!==n||1/n==1/t;var f=typeof n,a=typeof t;if(("number"!=f||"number"!=a)&&(null==n||null==t||"function"!=f&&"object"!=f&&"function"!=a&&"object"!=a))return false;var c=eu.call(n),l=c==lt,s=eu.call(t),i=s==lt;
|
||||
l&&(c=yt),i&&(s=yt);var a=Rt[c],f=c==gt,p=c==yt,h=s==yt;if((s=c==s)&&a){if(l=n.length,p=t.length,l!=p&&!(e&&p>l))return false}else{var g=p&&tu.call(n,"__wrapped__"),h=h&&tu.call(t,"__wrapped__");if(g||h)return rr(g?n.value():n,h?t.value():t,r,e,u,o);if(!s)return false;if(!f&&!p){switch(c){case pt:case ht:return+n==+t;case vt:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case mt:case dt:return n==Je(t)}return false}if(g=l?Ve:n.constructor,c=i?Ve:t.constructor,f){if(g.prototype.name!=c.prototype.name)return false}else if(p=!l&&tu.call(n,"constructor"),h=!i&&tu.call(t,"constructor"),p!=h||!p&&g!=c&&"constructor"in n&&"constructor"in t&&!(typeof g=="function"&&g instanceof g&&typeof c=="function"&&c instanceof c))return false;
|
||||
if(g=f?["message","name"]:Pu(n),c=f?g:Pu(t),l&&g.push("length"),i&&c.push("length"),l=g.length,p=c.length,l!=p&&!e)return false}for(u||(u=[]),o||(o=[]),c=u.length;c--;)if(u[c]==n)return o[c]==t;if(u.push(n),o.push(t),i=true,a)for(;i&&++c<l;)if(a=n[c],e)for(f=p;f--&&!(i=rr(a,t[f],r,e,u,o)););else h=t[c],i=r?r(a,h,c):I,typeof i=="undefined"&&(i=rr(a,h,r,e,u,o));else for(;i&&++c<l;)p=g[c],(i=f||tu.call(t,p))&&(a=n[p],h=t[p],i=r?r(a,h,p):I,typeof i=="undefined"&&(i=rr(a,h,r,e,u,o)));return u.pop(),o.pop(),!!i
|
||||
}function er(n,t,r){var e=-1,u=typeof t=="function",o=n?n.length:0,i=[];return typeof o=="number"&&-1<o&&o<=L&&(i.length=o),Kt(n,function(n){var o=u?t:null!=n&&n[t];i[++e]=o?o.apply(n,r):I}),i}function ur(n,t){var r=[];return Kt(n,function(n,e,u){r.push(t(n,e,u))}),r}function or(t,r,e,u,o){var i=Rr(r);return(i?n:Qt)(r,function(n,r,f){var a=n&&Rr(n),c=n&&zu(n),l=t[r];if(a||c){for(u||(u=[]),o||(o=[]),c=u.length;c--;)if(u[c]==n)return void(t[r]=o[c]);f=e?e(l,n,r,t,f):I,(c=typeof f=="undefined")&&(f=a?Bu(l)?l:[]:zu(l)?l:{}),u.push(n),o.push(f),c&&or(f,n,e,u,o),t[r]=f
|
||||
}else f=e?e(l,n,r,t,f):I,typeof f=="undefined"&&(f=n),(i||typeof f!="undefined")&&(t[r]=f)}),t}function ir(n,t,r,e,u){if(n)var o=Tu(n),o=o?o[2]:n.length,o=ju(o-r.length,0);return t&S?Ar(n,t,o,u,r,e):Ar(n,t,o,u,null,null,r,e)}function fr(n,t){return n+cu(Fu()*(t-n+1))}function ar(n,t,r,e,u){return u(n,function(n,u,o){r=e?(e=false,n):t(r,n,u,o)}),r}function cr(n,t){var r;return Kt(n,function(n,e,u){return r=t(n,e,u),!r}),!!r}function lr(n,t,r,e){var u=0,o=n?n.length:u;t=r(t);for(var i=t!==t,f=typeof t=="undefined";u<o;){var a=cu((u+o)/2),c=r(n[a]),l=c===c;
|
||||
(i?l||e:f?l&&(e||typeof c!="undefined"):e?c<=t:c<t)?u=a+1:o=a}return Au(o,q)}function sr(n,t){var r=-1,e=Ir(),u=n.length,o=e==c,i=o&&Su&&200<=u,o=o&&!i,f=[];if(i)var a=Su(),e=s;else a=t?[]:f;n:for(;++r<u;){var l=n[r],p=t?t(l,r,n):l;if(o&&l===l){for(var h=a.length;h--;)if(a[h]===p)continue n;t&&a.push(p),f.push(l)}else 0>e(a,p)&&((t||i)&&a.push(p),f.push(l))}return f}function pr(n,t){for(var r=-1,e=t(n),u=e.length,o=Be(u);++r<u;)o[r]=n[e[r]];return o}function hr(n){return iu.call(n,0)}function gr(n,t,r){for(var e=t.length,u=-1,o=ju(r.length-e,0),i=-1,f=n.length,a=Be(o+f);++i<f;)a[i]=n[i];
|
||||
for(;++u<e;)a[t[u]]=r[u];for(;o--;)a[i++]=r[u++];return a}function vr(n,t,r){for(var e=-1,u=t.length,o=-1,i=ju(r.length-u,0),f=-1,a=n.length,c=Be(i+a);++o<i;)c[o]=r[o];for(i=o;++f<a;)c[i+f]=n[f];for(;++e<u;)c[i+t[e]]=r[o++];return c}function yr(n,t){return function(r,e,u){e=Er(e,u,3);var o=t?t():{};if(Bu(r)){u=-1;for(var i=r.length;++u<i;){var f=r[u];n(o,f,e(f,u,r),r)}}else Kt(r,function(t,r,u){n(o,t,e(t,r,u),u)});return o}}function mr(n){return function(){var t=arguments.length,r=arguments[0];if(null==r||2>t)return r;
|
||||
var e=typeof arguments[2];if("number"!=e&&"string"!=e||!arguments[3]||arguments[3][arguments[2]]!==arguments[1]||(t=2),3<t&&"function"==typeof arguments[t-2])var u=$t(arguments[--t-1],arguments[t--],5);else 2<t&&"function"==typeof arguments[t-1]&&(u=arguments[--t]);for(e=0;++e<t;)n(r,arguments[e],u);return r}}function dr(n,t){function r(){return(this instanceof r?e:n).apply(t,arguments)}var e=_r(n);return r}function br(n){return function(t){var r=-1;t=Ce(Fe(t));for(var e=t.length,u="";++r<e;)u=n(u,t[r],r,Ce);
|
||||
return u}}function _r(n){return function(){var t=Bt(n.prototype),r=n.apply(t,arguments);return _e(r)?r:t}}function wr(n,t,r,e,u,o,i,f){function a(){for(var y=arguments.length,m=y,d=Be(y);m--;)d[m]=arguments[m];if(u&&(d=gr(u,o,d)),i&&(d=vr(i,f,d)),s||p){var m=a.placeholder,b=w(d,m),y=y-b.length;if(y<r){var y=ju(r-y,0),_=s?d:null,x=s?b:null,d=s?null:d,b=s?null:b;t|=s?S:T,t&=~(s?T:S),h||(t&=~(F|R));var j=wr(n,t,y,e,_,x,d,b);return j.placeholder=m,Uu(j,[n,t,y,e,_,x,d,b])}}return m=c?e:this,l&&(n=m[v]),(this instanceof a?g||_r(n):n).apply(m,d)
|
||||
}var c=t&F,l=t&R,s=t&D,p=t&k,h=t&C,g=!l&&_r(n),v=n;return a}function xr(n,t,r){return n=n.length,t=+t,n<t&&wu(t)?(t-=n,r=null==r?" ":Je(r),De(r,fu(t/r.length)).slice(0,t)):""}function jr(n,t,r,e){function u(){for(var t=-1,f=arguments.length,a=-1,c=r.length,l=Be(f+c);++a<c;)l[a]=r[a];for(;f--;)l[a++]=arguments[++t];return(this instanceof u?i:n).apply(o?e:this,l)}var o=t&F,i=_r(n);return u}function Ar(n,t,r,e,u,o,i,f){var a=t&R;if(!a&&!be(n))throw new Xe(N);var c=t&S;c&&!u.length&&(t&=~S,c=false,u=o=null);
|
||||
var s=t&T;s&&!i.length&&(t&=~T,s=false,i=f=null);var p=(p=!a&&Tu(n))&&true!==p&&p;if(p){var h=p[1],g=h&F,v=t&F;n=p[0],t|=h,null==r&&(r=p[2]),g&&(e=p[3]),!v&&g&&(t|=C),(h=p[4])&&(g=p[5],u=c?gr(h,g,u):l(h),o=c?w(u,B):l(g)),(h=p[6])&&(g=p[7],i=s?vr(h,g,i):l(h),f=s?w(i,B):l(g))}return null==r&&(r=a?0:n.length),(p?Cu:Uu)(t==F?dr(n,e):t!=S&&t!=(F|S)||o.length?wr(n,t,r,e,u,o,i,f):jr(n,t,u,e),[n,t,r,e,u,o,i,f])}function Er(n,t,r){var e=Ct.callback||Te,e=e===Te?$t:e;return r?e(n,t,r):e}function Ir(n,t,r){var e=Ct.indexOf||qr,e=e===qr?c:e;
|
||||
return n?e(n,t,r):e}function Or(n,t){var r=-1,e=n.length,u=n.constructor(e);if(!t)for(;++r<e;)u[r]=n[r];return e&&"string"==typeof n[0]&&tu.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function Fr(n,t){var r=eu.call(n);if(!Dt[r])return n;var e=n.constructor,u=r==lt,o=r==yt;if(!o||typeof e=="function"&&e instanceof e||(e=Ve),u||o){var i=t?new e:Wt(new e,n);return u&&(i.length=n.length),i}switch(r){case bt:return hr(n);case pt:case ht:return new e(+n);case _t:case wt:case xt:case jt:case At:case Et:case It:case Ot:case Ft:return r=n.buffer,new e(t?hr(r):r,n.byteOffset,n.length);
|
||||
case vt:case dt:return new e(n);case mt:i=e(n.source,H.exec(n)),i.lastIndex=n.lastIndex}return i}function Rr(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Rt[eu.call(n)]||false}function Dr(n){return n===n&&(0===n?0<1/n:!_e(n))}function kr(n,t){n=Wr(n);for(var r=-1,e=t.length,u={};++r<e;){var o=t[r];o in n&&(u[o]=n[o])}return u}function Cr(n,t){var r={};return Ht(n,function(n,e,u){t(n,e,u)&&(r[e]=n)}),r}function Sr(n){var t,r;return n&&typeof n=="object"&&eu.call(n)==yt&&(tu.call(n,"constructor")||(t=n.constructor,typeof t!="function"||t instanceof t))?(Ht(n,function(n,t){r=t
|
||||
}),typeof r=="undefined"||tu.call(n,r)):false}function Tr(n){for(var t,r=-1,e=Ie(n),u=e.length,o=u&&n.length,i=o-1,f=[],o=typeof o=="number"&&0<o&&(Bu(n)||ku.nonEnumArgs&&ye(n));++r<u;){var a=e[r];(o&&(t=+a,-1<t&&t<=i&&0==t%1)||tu.call(n,a))&&f.push(a)}return f}function Ur(n){if(null==n)return[];var t=n.length;return typeof t=="number"&&-1<t&&t<=L?_e(n)?n:Ve(n):Oe(n)}function Wr(n){return _e(n)?n:Ve(n)}function Nr(n,t,r){var e=-1,u=n?n.length:0;for(t=Er(t,r,3);++e<u;)if(t(n[e],e,n))return e;return-1}function $r(n){return n?n[0]:I
|
||||
}function qr(n,t,r){var e=n?n.length:0;if(typeof r=="number")r=0>r?ju(e+r,0):r||0;else if(r)return r=Mr(n,t),e&&n[r]===t?r:-1;return c(n,t,r)}function Lr(n){return Br(n,1)}function Br(n,t,r){var e=-1,u=n?n.length:0;if(t=null==t?0:+t||0,0>t&&(t=-t>u?0:u+t),r=typeof r=="undefined"||r>u?u:+r||0,0>r&&(r+=u),r&&r==u&&!t)return l(n);for(u=t>r?0:r-t,r=Be(u);++e<u;)r[e]=n[e+t];return r}function Mr(n,t,r,e){return r=null==r?Ue:Er(r,e,1),lr(n,t,r)}function zr(n,t,r,e){return r=null==r?Ue:Er(r,e,1),lr(n,t,r,true)
|
||||
}function Kr(n,t,r,e){if(!n||!n.length)return[];var u=typeof t;if("boolean"!=u&&null!=t&&(e=r,r=t,t=false,"number"!=u&&"string"!=u||!e||e[r]!==n||(r=null)),null!=r&&(r=Er(r,e,3)),t&&Ir()==c){t=r;var o;r=-1,e=n.length;for(var u=-1,i=[];++r<e;){var f=n[r],a=t?t(f,r,n):f;r&&o===a||(o=a,i[++u]=f)}n=i}else n=sr(n,r);return n}function Pr(n){for(var t=-1,r=_e(r=te(n,"length"))&&r.length||0,e=Be(r);++t<r;)e[t]=re(n,t);return e}function Zr(n,t){var r=-1,e=n?n.length:0,u={};for(t||!e||Bu(n[0])||(t=[]);++r<e;){var o=n[r];
|
||||
t?u[o]=t[r]:o&&(u[o[0]]=o[1])}return u}function Vr(n){return n=Ct(n),n.__chain__=true,n}function Yr(n,t,r){var e=n?n.length:0;return typeof e=="number"&&-1<e&&e<=L||(n=Oe(n),e=n.length),r=typeof r=="number"?0>r?ju(e+r,0):r||0:0,typeof n=="string"||!Bu(n)&&Ae(n)?r<e&&-1<n.indexOf(t,r):-1<Ir(n,t,r)}function Jr(n,r,e){var u=Bu(n)?t:Zt;return(typeof r!="function"||typeof e!="undefined")&&(r=Er(r,e,3)),u(n,r)}function Xr(n,t,r){var u=Bu(n)?e:Vt;return t=Er(t,r,3),u(n,t)}function Gr(n,t,r){return Bu(n)?(t=Nr(n,t,r),-1<t?n[t]:I):(t=Er(t,r,3),Yt(n,t,Kt))
|
||||
}function Hr(t,r,e){return typeof r=="function"&&typeof e=="undefined"&&Bu(t)?n(t,r):Kt(t,$t(r,e,3))}function Qr(n,t,r){if(typeof t=="function"&&typeof r=="undefined"&&Bu(n))for(r=n.length;r--&&false!==t(n[r],r,n););else n=Pt(n,$t(t,r,3));return n}function ne(n,t,e){return t=Er(t,e,3),(Bu(n)?r:ur)(n,t)}function te(n,t,r){var e=-1/0,u=e,o=typeof t;"number"!=o&&"string"!=o||!r||r[t]!==n||(t=null);var o=null==t,i=!(o&&Bu(n))&&Ae(n);if(o&&!i)for(r=-1,n=Ur(n),o=n.length;++r<o;)i=n[r],i>u&&(u=i);else t=o&&i?p:Er(t,r,3),Kt(n,function(n,r,o){r=t(n,r,o),(r>e||-1/0===r&&r===u)&&(e=r,u=n)
|
||||
});return u}function re(n,t){return ne(n,Le(t))}function ee(n,t,r,e){return(Bu(n)?u:ar)(n,Er(t,e,4),r,3>arguments.length,Kt)}function ue(n,t,r,e){return(Bu(n)?o:ar)(n,Er(t,e,4),r,3>arguments.length,Pt)}function oe(n){n=Ur(n);for(var t=-1,r=n.length,e=Be(r);++t<r;){var u=fr(0,t);t!=u&&(e[t]=e[u]),e[u]=n[t]}return e}function ie(n,t,r){var e=Bu(n)?i:cr;return(typeof t!="function"||typeof r!="undefined")&&(t=Er(t,r,3)),e(n,t)}function fe(n,t){var r;if(!be(t)){if(!be(n))throw new Xe(N);var e=n;n=t,t=e
|
||||
}return function(){return 0<--n?r=t.apply(this,arguments):t=null,r}}function ae(n,t){if(3>arguments.length)return Ar(n,F,null,t);var r=Br(arguments,2),e=w(r,ae.placeholder);return ir(n,F|S,r,e,t)}function ce(n,t){var r=F|R;if(2<arguments.length)var e=Br(arguments,2),u=w(e,ce.placeholder);return e?Ar(t,r,null,n,e,u):Ar(t,r,null,n)}function le(n,t){var r=Mt(n,D,t);return r.placeholder=le.placeholder,r}function se(n,t){var r=Mt(n,k,t);return r.placeholder=se.placeholder,r}function pe(n,t,r){function e(){var r=t-(Xu()-c);
|
||||
0>=r||r>t?(f&&au(f),r=p,f=s=p=I,r&&(h=Xu(),a=n.apply(l,i),s||f||(i=l=null))):s=gu(e,r)}function u(){s&&au(s),f=s=p=I,(v||g!==t)&&(h=Xu(),a=n.apply(l,i),s||f||(i=l=null))}function o(){if(i=arguments,c=Xu(),l=this,p=v&&(s||!y),false===g)var r=y&&!s;else{f||y||(h=c);var o=g-(c-h),m=0>=o||o>g;m?(f&&(f=au(f)),h=c,a=n.apply(l,i)):f||(f=gu(u,o))}return m&&s?s=au(s):s||t===g||(s=gu(e,t)),r&&(m=true,a=n.apply(l,i)),!m||s||f||(i=l=null),a}var i,f,a,c,l,s,p,h=0,g=false,v=true;if(!be(n))throw new Xe(N);if(t=0>t?0:t,true===r)var y=true,v=false;
|
||||
else _e(r)&&(y=r.leading,g="maxWait"in r&&ju(+r.maxWait||0,t),v="trailing"in r?r.trailing:v);return o.cancel=function(){s&&au(s),f&&au(f),f=s=p=I},o}function he(){var n=arguments,r=n.length-1;if(0>r)return function(){};if(!t(n,be))throw new Xe(N);return function(){for(var t=r,e=n[t].apply(this,arguments);t--;)e=n[t].call(this,e);return e}}function ge(n){var t=Br(arguments,1),r=w(t,ge.placeholder);return ir(n,S,t,r)}function ve(n){var t=Br(arguments,1),r=w(t,ve.placeholder);return ir(n,T,t,r)}function ye(n){var t=n&&typeof n=="object"?n.length:I;
|
||||
return typeof t=="number"&&-1<t&&t<=L&&eu.call(n)==lt||false}function me(n){return n&&typeof n=="object"&&1===n.nodeType&&-1<eu.call(n).indexOf("Element")||false}function de(n){return n&&typeof n=="object"&&eu.call(n)==gt||false}function be(n){return typeof n=="function"||false}function _e(n){var t=typeof n;return"function"==t||n&&"object"==t||false}function we(n){return be(n)?uu.test(nu.call(n)):n&&typeof n=="object"&&tt.test(n)||false}function xe(n){var t=typeof n;return"number"==t||n&&"object"==t&&eu.call(n)==vt||false
|
||||
}function je(n){return n&&typeof n=="object"&&eu.call(n)==mt||false}function Ae(n){return typeof n=="string"||n&&typeof n=="object"&&eu.call(n)==dt||false}function Ee(n){return tr(n,Ie(n))}function Ie(n){if(null==n)return[];_e(n)||(n=Ve(n));for(var t,r=n.length,r=(typeof r=="number"&&0<r&&(Bu(n)||ku.nonEnumArgs&&ye(n))&&r)>>>0,e=n.constructor,u=-1,e=typeof e=="function"&&e.prototype==n,o=r-1,i=Be(r),f=0<r;++u<r;)i[u]=Je(u);for(var a in n)e&&"constructor"==a||f&&(t=+a,-1<t&&t<=o&&0==t%1)||i.push(a);return i
|
||||
}function Oe(n){return pr(n,Pu)}function Fe(n){return(n=null==n?"":Je(n))?n.replace(rt,m):n}function Re(n){return(n=null==n?"":Je(n))&&(ut.lastIndex=0,ut.test(n))?n.replace(ut,"\\$&"):n}function De(n,t){var r="";if(t=+t,1>t||null==n||!wu(t))return r;n=Je(n);do t%2&&(r+=n),t=cu(t/2),n+=n;while(t);return r}function ke(n,t){return(n=null==n?"":Je(n))?null==t?n.slice(x(n),j(n)+1):(t=Je(t),n.slice(h(n,t),g(n,t)+1)):n}function Ce(n,t){return(n=null!=n&&Je(n))&&n.match(t||ft)||[]}function Se(n){try{return n()
|
||||
}catch(t){return de(t)?t:ze(t)}}function Te(n,t){return $t(n,t)}function Ue(n){return n}function We(n){var t=Pu(n),r=t.length;if(1==r){var e=t[0],u=n[e];if(Dr(u))return function(n){return null!=n&&u===n[e]&&tu.call(n,e)}}for(var o=r,i=Be(r),f=Be(r);o--;){var u=n[t[o]],a=Dr(u);i[o]=a,f[o]=a?u:qt(u)}return function(n){if(o=r,null==n)return!o;for(;o--;)if(i[o]?f[o]!==n[t[o]]:!tu.call(n,t[o]))return false;for(o=r;o--;)if(i[o]?!tu.call(n,t[o]):!rr(f[o],n[t[o]],null,true))return false;return true}}function Ne(n,t,r){var e=true,u=_e(t),o=null==r,i=o&&u&&Pu(t),f=i&&tr(t,i);
|
||||
(i&&i.length&&!f.length||o&&!u)&&(o&&(r=t),f=false,t=n,n=this),f||(f=tr(t,Pu(t))),false===r?e=false:_e(r)&&"chain"in r&&(e=r.chain),r=-1,u=be(n);for(o=f.length;++r<o;)i=f[r],n[i]=t[i],u&&(n.prototype[i]=function(t){return function(){if(e||this.__chain__){var r=n(this.__wrapped__);return r.__chain__=this.__chain__,(r.__queue__=l(this.__queue__)).push([t,n,arguments]),r}return r=[this.value()],su.apply(r,arguments),n[t].apply(n,r)}}(i));return n}function $e(){}function qe(n,t,r){return Ou(n,r?0:t)}function Le(n){return function(t){return null==t?I:t[n]
|
||||
}}_=_?Lt.defaults(Nt.Object(),_,Lt.pick(Nt,ct)):Nt;var Be=_.Array,Me=_.Date,ze=_.Error,Ke=_.Function,Pe=_.Math,Ze=_.Number,Ve=_.Object,Ye=_.RegExp,Je=_.String,Xe=_.TypeError,Ge=Be.prototype,He=Ve.prototype,Qe=(Qe=_.window)&&Qe.document,nu=Ke.prototype.toString,tu=He.hasOwnProperty,ru=_._,eu=He.toString,uu=Ye("^"+Re(eu).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ou=we(ou=_.ArrayBuffer)&&ou,iu=we(iu=ou&&new ou(0).slice)&&iu,fu=Pe.ceil,au=_.clearTimeout,cu=Pe.floor,lu=we(lu=Ve.getPrototypeOf)&&lu,su=Ge.push,pu=He.propertyIsEnumerable,hu=we(hu=_.Set)&&hu,gu=_.setTimeout,vu=Ge.splice,yu=we(yu=_.Uint8Array)&&yu,mu=we(mu=_.d)&&mu,du=function(){try{var n=we(n=_.Float64Array)&&n,t=new n(new ou(10),0,1)&&n
|
||||
}catch(r){}return t}(),bu=we(bu=Ve.create)&&bu,_u=we(_u=Be.isArray)&&_u,wu=_.isFinite,xu=we(xu=Ve.keys)&&xu,ju=Pe.max,Au=Pe.min,Eu=we(Eu=Me.now)&&Eu,Iu=we(Iu=Ze.isFinite)&&Iu,Ou=_.parseInt,Fu=Pe.random,Ru=du?du.BYTES_PER_ELEMENT:0,Du=mu&&new mu,ku=Ct.support={};!function(x_){ku.funcDecomp=!we(_.WinRTError)&&ot.test(E),ku.funcNames=typeof Ke.name=="string";try{ku.dom=11===Qe.createDocumentFragment().nodeType}catch(n){ku.dom=false}try{ku.nonEnumArgs=!pu.call(arguments,1)}catch(t){ku.nonEnumArgs=true}}(0,0),Ct.templateSettings={escape:Y,evaluate:J,interpolate:X,variable:"",imports:{_:Ct}},bu||(Bt=function(){function n(){}return function(t){if(_e(t)){n.prototype=t;
|
||||
var r=new n;n.prototype=null}return r||_.Object()}}());var Cu=Du?function(n,t){return Du.set(n,t),n}:Ue;iu||(hr=ou&&yu?function(n){var t=n.byteLength,r=du?cu(t/Ru):0,e=r*Ru,u=new ou(t);if(r){var o=new du(u,0,r);o.set(new du(n,0,r))}return t!=e&&(o=new yu(u,e),o.set(new yu(n,e))),u}:Ue);var Su=hu&&function(n){var t=new hu,r=n?n.length:0;for(t.push=t.add;r--;)t.push(n[r]);return t},Tu=Du?function(n){return Du.get(n)}:$e,Uu=function(){var n=0,t=0;return function(r,e){var u=Xu?Xu():0,o=W-(u-t);if(t=u,0<o){if(++n>=U)return r
|
||||
}else n=0;return Cu(r,e)}}(),Wu=yr(function(n,t,r){tu.call(n,r)?++n[r]:n[r]=1}),Nu=yr(function(n,t,r){tu.call(n,r)?n[r].push(t):n[r]=[t]}),$u=yr(function(n,t,r){n[r]=t}),qu=yr(function(n,t,r){n[r?0:1].push(t)},function(){return[[],[]]}),Lu=ge(fe,2),Bu=_u||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&eu.call(n)==st||false};ku.dom||(me=function(n){return n&&typeof n=="object"&&1===n.nodeType&&!zu(n)||false});var Mu=Iu||function(n){return typeof n=="number"&&wu(n)},zu=lu?function(n){if(!n||eu.call(n)!=yt)return false;
|
||||
var t=n.valueOf,r=we(t)&&(r=lu(t))&&lu(r);return r?n==r||lu(n)==r:Sr(n)}:Sr,Ku=mr(Wt),Pu=xu?function(n){if(n)var t=n.constructor,r=n.length;return typeof t=="function"&&t.prototype===n||typeof r=="number"&&0<r?Tr(n):_e(n)?xu(n):[]}:Tr,Zu=mr(or),Vu=br(function(n,t,r){return t=t.toLowerCase(),r?n+t.charAt(0).toUpperCase()+t.slice(1):t}),Yu=br(function(n,t,r){return n+(r?"-":"")+t.toLowerCase()}),Ju=br(function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}),Xu=Eu||function(){return(new Me).getTime()};return 8!=Ou(at+"08")&&(qe=function(n,t,r){return n=ke(n),Ou(n,(r?0:+t)||(nt.test(n)?16:10))
|
||||
}),Ct.after=function(n,t){if(!be(t)){if(!be(n))throw new Xe(N);var r=n;n=t,t=r}return n=wu(n=+n)?n:0,function(){return 1>--n?t.apply(this,arguments):void 0}},Ct.assign=Ku,Ct.at=function(n){var t=n?n.length:0;return typeof t=="number"&&-1<t&&t<=L&&(n=Ur(n)),f(n,Jt(arguments,false,false,1))},Ct.before=fe,Ct.bind=ae,Ct.bindAll=function(n){for(var t=n,r=1<arguments.length?Jt(arguments,false,false,1):Ee(n),e=-1,u=r.length;++e<u;){var o=r[e];t[o]=Ar(t[o],F,null,t)}return t},Ct.bindKey=ce,Ct.callback=Te,Ct.chain=Vr,Ct.chunk=function(n,t){var r=0,e=n?n.length:0,u=-1,o=[];
|
||||
for(t=typeof t=="undefined"?1:ju(+t||1,1);r<e;)o[++u]=Br(n,r,r+=t);return o},Ct.compact=function(n){for(var t=-1,r=n?n.length:0,e=-1,u=[];++t<r;){var o=n[t];o&&(u[++e]=o)}return u},Ct.constant=function(n){return function(){return n}},Ct.countBy=Wu,Ct.create=function(n,t){var r=Bt(n);return t?Wt(r,t):r},Ct.curry=le,Ct.curryRight=se,Ct.debounce=pe,Ct.defaults=function(n){if(null==n)return n;var t=l(arguments);return t.push(Tt),Ku.apply(I,t)},Ct.defer=function(n){if(!be(n))throw new Xe(N);var t=Br(arguments,1);
|
||||
return gu(function(){n.apply(I,t)},1)},Ct.delay=function(n,t){if(!be(n))throw new Xe(N);var r=Br(arguments,2);return gu(function(){n.apply(I,r)},t)},Ct.difference=function(){for(var n=-1,t=arguments.length;++n<t;){var r=arguments[n];if(Bu(r)||ye(r))break}return zt(arguments[n],Jt(arguments,false,true,++n))},Ct.drop=function(n,t,r){return t=null==t||r?1:t,Br(n,0>t?0:t)},Ct.dropRight=function(n,t,r){var e=n?n.length:0;return t=e-((null==t||r?1:t)||0),Br(n,0,0>t?0:t)},Ct.dropRightWhile=function(n,t,r){var e=n?n.length:0;
|
||||
for(t=Er(t,r,3);e--&&t(n[e],e,n););return Br(n,0,e+1)},Ct.dropWhile=function(n,t,r){var e=-1,u=n?n.length:0;for(t=Er(t,r,3);++e<u&&t(n[e],e,n););return Br(n,e)},Ct.filter=Xr,Ct.flatten=function(n,t,r){if(!n||!n.length)return[];var e=typeof t;return"number"!=e&&"string"!=e||!r||r[t]!==n||(t=false),Jt(n,t)},Ct.flattenDeep=function(n){return n&&n.length?Jt(n,true):[]},Ct.flow=function(){var n=arguments,r=n.length;if(!r)return function(){};if(!t(n,be))throw new Xe(N);return function(){for(var t=0,e=n[t].apply(this,arguments);++t<r;)e=n[t].call(this,e);
|
||||
return e}},Ct.flowRight=he,Ct.forEach=Hr,Ct.forEachRight=Qr,Ct.forIn=function(n,t,r){return(typeof t!="function"||typeof r!="undefined")&&(t=$t(t,r,3)),Xt(n,t,Ie)},Ct.forInRight=function(n,t,r){return t=$t(t,r,3),Gt(n,t,Ie)},Ct.forOwn=function(n,t,r){return(typeof t!="function"||typeof r!="undefined")&&(t=$t(t,r,3)),Qt(n,t)},Ct.forOwnRight=function(n,t,r){return t=$t(t,r,3),Gt(n,t,Pu)},Ct.functions=Ee,Ct.groupBy=Nu,Ct.indexBy=$u,Ct.initial=function(n){var t=n?n.length:0;return Br(n,0,t?t-1:0)},Ct.intersection=function(){for(var n=[],t=-1,r=arguments.length,e=[],u=Ir(),o=Su&&u==c;++t<r;){var i=arguments[t];
|
||||
(Bu(i)||ye(i))&&(n.push(i),e.push(o&&120<=i.length&&Su(t&&i)))}var r=n.length,o=n[0],f=-1,a=o?o.length:0,l=[],p=e[0];n:for(;++f<a;)if(i=o[f],0>(p?s(p,i):u(l,i))){for(t=r;--t;){var h=e[t];if(0>(h?s(h,i):u(n[t],i)))continue n}p&&p.push(i),l.push(i)}return l},Ct.invert=function(n,t){for(var r=-1,e=Pu(n),u=e.length,o={};++r<u;){var i=e[r],f=n[i];t?tu.call(o,f)?o[f].push(i):o[f]=[i]:o[f]=i}return o},Ct.invoke=function(n,t){return er(n,t,Br(arguments,2))},Ct.keys=Pu,Ct.keysIn=Ie,Ct.map=ne,Ct.mapValues=function(n,t,r){t=Er(t,r,3);
|
||||
var e={};return Qt(n,function(n,r,u){e[r]=t(n,r,u)}),e},Ct.matches=We,Ct.memoize=function(n,t){function r(){var e=t?t.apply(this,arguments):arguments[0];if("__proto__"==e)return n.apply(this,arguments);var u=r.cache;return tu.call(u,e)?u[e]:u[e]=n.apply(this,arguments)}if(!be(n)||t&&!be(t))throw new Xe(N);return r.cache={},r},Ct.merge=Zu,Ct.mixin=Ne,Ct.negate=function(n){if(!be(n))throw new Xe(N);return function(){return!n.apply(this,arguments)}},Ct.omit=function(n,t,e){if(null==n)return{};if(typeof t!="function"){var u=r(Jt(arguments,false,false,1),Je);
|
||||
return kr(n,zt(Ie(n),u))}return t=Er(t,e,3),Cr(n,function(n,r,e){return!t(n,r,e)})},Ct.once=Lu,Ct.pairs=function(n){for(var t=-1,r=Pu(n),e=r.length,u=Be(e);++t<e;){var o=r[t];u[t]=[o,n[o]]}return u},Ct.partial=ge,Ct.partialRight=ve,Ct.partition=qu,Ct.pick=function(n,t,r){return null==n?{}:typeof t=="function"?Cr(n,Er(t,r,3)):kr(n,Jt(arguments,false,false,1))},Ct.pluck=re,Ct.property=Le,Ct.pull=function(){for(var n=arguments[0],t=0,r=Ir(),e=arguments.length;++t<e;)for(var u=0,o=arguments[t];-1<(u=r(n,o,u));)vu.call(n,u,1);
|
||||
return n},Ct.pullAt=function(n){var t=n,r=Jt(arguments,false,false,1),e=r.length,u=f(t,r);for(r.sort(a);e--;){var o=parseFloat(r[e]);if(o!=i&&-1<o&&0==o%1){var i=o;vu.call(t,o,1)}}return u},Ct.range=function(n,t,r){n=+n||0;var e=typeof t;"number"!=e&&"string"!=e||!r||r[t]!==n||(t=r=null),r=null==r?1:+r||0,null==t?(t=n,n=0):t=+t||0,e=-1,t=ju(fu((t-n)/(r||1)),0);for(var u=Be(t);++e<t;)u[e]=n,n+=r;return u},Ct.reject=function(n,t,r){var u=Bu(n)?e:Vt;return t=Er(t,r,3),u(n,function(n,r,e){return!t(n,r,e)})
|
||||
},Ct.remove=function(n,t,r){var e=-1,u=n?n.length:0,o=[];for(t=Er(t,r,3);++e<u;)r=n[e],t(r,e,n)&&(o.push(r),vu.call(n,e--,1),u--);return o},Ct.rest=Lr,Ct.shuffle=oe,Ct.slice=Br,Ct.sortBy=function(n,t,r){var e=-1,u=n?n.length:0,o=t&&Bu(t),i=[];for(typeof u=="number"&&-1<u&&u<=L&&(i.length=u),o||(t=Er(t,r,3)),Kt(n,function(n,r,u){if(o)for(r=t.length,u=Be(r);r--;)u[r]=null==n?I:n[t[r]];else u=t(n,r,u);i[++e]={a:u,b:e,c:n}}),u=i.length,i.sort(o?y:v);u--;)i[u]=i[u].c;return i},Ct.take=function(n,t,r){return t=null==t||r?1:t,Br(n,0,0>t?0:t)
|
||||
},Ct.takeRight=function(n,t,r){var e=n?n.length:0;return t=e-((null==t||r?1:t)||0),Br(n,0>t?0:t)},Ct.takeRightWhile=function(n,t,r){var e=n?n.length:0;for(t=Er(t,r,3);e--&&t(n[e],e,n););return Br(n,e+1)},Ct.takeWhile=function(n,t,r){var e=-1,u=n?n.length:0;for(t=Er(t,r,3);++e<u&&t(n[e],e,n););return Br(n,0,e)},Ct.tap=function(n,t,r){return t.call(r,n),n},Ct.throttle=function(n,t,r){var e=true,u=true;if(!be(n))throw new Xe(N);return false===r?e=false:_e(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),kt.leading=e,kt.maxWait=+t,kt.trailing=u,pe(n,t,kt)
|
||||
},Ct.thru=function(n,t,r){return t.call(r,n)},Ct.times=function(n,t,r){n=wu(n=+n)&&-1<n?n:0,t=$t(t,r,1),r=-1;for(var e=Be(Au(n,$));++r<n;)r<$?e[r]=t(r):t(r);return e},Ct.toArray=function(n){var t=n?n.length:0;return typeof t=="number"&&-1<t&&t<=L?l(n):Oe(n)},Ct.transform=function(t,r,e,u){if(r=Er(r,u,4),u=Rr(t),null==e)if(u)e=[];else if(_e(t)){var o=t.constructor;e=Bt(typeof o=="function"&&o.prototype)}else e={};return(u?n:Qt)(t,function(n,t,u){return r(e,n,t,u)}),e},Ct.union=function(){return sr(Jt(arguments,false,true))
|
||||
},Ct.uniq=Kr,Ct.unzip=Pr,Ct.values=Oe,Ct.valuesIn=function(n){return pr(n,Ie)},Ct.where=function(n,t){return Xr(n,We(t))},Ct.without=function(n){return zt(n,Br(arguments,1))},Ct.wrap=function(n,t){return ir(t,S,[n],[])},Ct.xor=function(){for(var n=-1,t=arguments.length;++n<t;){var r=arguments[n];if(Bu(r)||ye(r))var e=e?zt(e,r).concat(zt(r,e)):r}return e?sr(e):[]},Ct.zip=function(){for(var n=arguments.length,t=Be(n);n--;)t[n]=arguments[n];return Pr(t)},Ct.zipObject=Zr,Ct.backflow=he,Ct.collect=ne,Ct.compose=he,Ct.each=Hr,Ct.eachRight=Qr,Ct.extend=Ku,Ct.iteratee=Te,Ct.methods=Ee,Ct.object=Zr,Ct.select=Xr,Ct.tail=Lr,Ct.unique=Kr,Ne(Ct,Ct),Ct.attempt=Se,Ct.camelCase=Vu,Ct.capitalize=function(n){return(n=null==n?"":Je(n))?n.charAt(0).toUpperCase()+n.slice(1):n
|
||||
},Ct.clone=function(n,t,r,e){var u=typeof t;return"boolean"!=u&&null!=t&&(e=r,r=t,t=false,"number"!=u&&"string"!=u||!e||e[r]!==n||(r=null)),r=typeof r=="function"&&$t(r,e,1),qt(n,t,r)},Ct.cloneDeep=function(n,t,r){return t=typeof t=="function"&&$t(t,r,1),qt(n,true,t)},Ct.contains=Yr,Ct.deburr=Fe,Ct.endsWith=function(n,t,r){n=null==n?"":Je(n),t=Je(t);var e=n.length;return r=(typeof r=="undefined"?e:Au(0>r?0:+r||0,e))-t.length,0<=r&&n.indexOf(t,r)==r},Ct.escape=function(n){return(n=null==n?"":Je(n))&&(V.lastIndex=0,V.test(n))?n.replace(V,d):n
|
||||
},Ct.escapeRegExp=Re,Ct.every=Jr,Ct.find=Gr,Ct.findIndex=Nr,Ct.findKey=function(n,t,r){return t=Er(t,r,3),Yt(n,t,Qt,true)},Ct.findLast=function(n,t,r){return t=Er(t,r,3),Yt(n,t,Pt)},Ct.findLastIndex=function(n,t,r){var e=n?n.length:0;for(t=Er(t,r,3);e--;)if(t(n[e],e,n))return e;return-1},Ct.findLastKey=function(n,t,r){return t=Er(t,r,3),Yt(n,t,nr,true)},Ct.findWhere=function(n,t){return Gr(n,We(t))},Ct.first=$r,Ct.has=function(n,t){return n?tu.call(n,t):false},Ct.identity=Ue,Ct.indexOf=qr,Ct.isArguments=ye,Ct.isArray=Bu,Ct.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&eu.call(n)==pt||false
|
||||
},Ct.isDate=function(n){return n&&typeof n=="object"&&eu.call(n)==ht||false},Ct.isElement=me,Ct.isEmpty=function(n){if(null==n)return true;var t=n.length;return typeof t=="number"&&-1<t&&t<=L&&(Bu(n)||Ae(n)||ye(n)||typeof n=="object"&&be(n.splice))?!t:!Pu(n).length},Ct.isEqual=function(n,t,r,e){return r=typeof r=="function"&&$t(r,e,3),!r&&Dr(n)&&Dr(t)?n===t:rr(n,t,r)},Ct.isError=de,Ct.isFinite=Mu,Ct.isFunction=be,Ct.isNaN=function(n){return xe(n)&&n!=+n},Ct.isNative=we,Ct.isNull=function(n){return null===n
|
||||
},Ct.isNumber=xe,Ct.isObject=_e,Ct.isPlainObject=zu,Ct.isRegExp=je,Ct.isString=Ae,Ct.isUndefined=function(n){return typeof n=="undefined"},Ct.kebabCase=Yu,Ct.last=function(n){var t=n?n.length:0;return t?n[t-1]:I},Ct.lastIndexOf=function(n,t,r){var e=n?n.length:0,u=e;if(typeof r=="number")u=(0>r?ju(u+r,0):Au(r||0,u-1))+1;else if(r)return u=zr(n,t)-1,e&&n[u]===t?u:-1;for(r=t===t;u--;)if(e=n[u],r?e===t:e!==e)return u;return-1},Ct.max=te,Ct.min=function(n,t,r){var e=1/0,u=e,o=typeof t;"number"!=o&&"string"!=o||!r||r[t]!==n||(t=null);
|
||||
var o=null==t,i=!(o&&Bu(n))&&Ae(n);if(o&&!i)for(r=-1,n=Ur(n),o=n.length;++r<o;)i=n[r],i<u&&(u=i);else t=o&&i?p:Er(t,r,3),Kt(n,function(n,r,o){r=t(n,r,o),(r<e||1/0===r&&r===u)&&(e=r,u=n)});return u},Ct.noConflict=function(){return _._=ru,this},Ct.noop=$e,Ct.now=Xu,Ct.pad=function(n,t,r){n=null==n?"":Je(n),t=+t;var e=n.length;return e<t&&wu(t)?(e=(t-e)/2,t=cu(e),e=fu(e),r=xr("",e,r),r.slice(0,t)+n+r):n},Ct.padLeft=function(n,t,r){return(n=null==n?"":Je(n))?xr(n,t,r)+n:n},Ct.padRight=function(n,t,r){return(n=null==n?"":Je(n))?n+xr(n,t,r):n
|
||||
},Ct.parseInt=qe,Ct.random=function(n,t,r){var e=typeof t;"number"!=e&&"string"!=e||!r||r[t]!==n||(t=r=null);var e=null==n,u=null==t;return null==r&&(u&&typeof n=="boolean"?(r=n,n=1):typeof t=="boolean"&&(r=t,u=true)),e&&u&&(t=1,u=false),n=+n||0,u?(t=n,n=0):t=+t||0,r||n%1||t%1?(r=Fu(),Au(n+r*(t-n+parseFloat("1e-"+(Je(r).length-1))),t)):fr(n,t)},Ct.reduce=ee,Ct.reduceRight=ue,Ct.repeat=De,Ct.result=function(n,t,r){var e=null==n?I:n[t];return typeof e=="undefined"?r:be(e)?n[t]():e},Ct.runInContext=E,Ct.size=function(n){var t=n?n.length:0;
|
||||
return typeof t=="number"&&-1<t&&t<=L?t:Pu(n).length},Ct.snakeCase=Ju,Ct.some=ie,Ct.sortedIndex=Mr,Ct.sortedLastIndex=zr,Ct.startsWith=function(n,t,r){return n=null==n?"":Je(n),r=typeof r=="undefined"?0:Au(0>r?0:+r||0,n.length),n.lastIndexOf(t,r)==r},Ct.template=function(n,t,r){var e=Ct.templateSettings;t=Ku({},r||t,e,Ut),n=Je(null==n?"":n),r=Ku({},t.imports,e.imports,Ut);var u,o,i=Pu(r),f=Oe(r),a=0;r=t.interpolate||et;var c="__p+='";if(r=Ye((t.escape||et).source+"|"+r.source+"|"+(r===X?G:et).source+"|"+(t.evaluate||et).source+"|$","g"),n.replace(r,function(t,r,e,i,f,l){return e||(e=i),c+=n.slice(a,l).replace(it,b),r&&(u=true,c+="'+__e("+r+")+'"),f&&(o=true,c+="';"+f+";\n__p+='"),e&&(c+="'+((__t=("+e+"))==null?'':__t)+'"),a=l+t.length,t
|
||||
}),c+="';",(t=t.variable)||(c="with(obj){"+c+"}"),c=(o?c.replace(z,""):c).replace(K,"$1").replace(P,"$1;"),c="function("+(t||"obj")+"){"+(t?"":"obj||(obj={});")+"var __t,__p=''"+(u?",__e=_.escape":"")+(o?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+c+"return __p}",t=Se(function(){return Ke(i,"return "+c).apply(I,f)}),t.source=c,de(t))throw t;return t},Ct.trim=ke,Ct.trimLeft=function(n,t){return(n=null==n?"":Je(n))?null==t?n.slice(x(n)):(t=Je(t),n.slice(h(n,t))):n
|
||||
},Ct.trimRight=function(n,t){return(n=null==n?"":Je(n))?null==t?n.slice(0,j(n)+1):(t=Je(t),n.slice(0,g(n,t)+1)):n},Ct.trunc=function(n,t){var r=30,e="...";if(_e(t))var u="separator"in t?t.separator:u,r="length"in t?+t.length||0:r,e="omission"in t?Je(t.omission):e;else null!=t&&(r=+t||0);if(n=null==n?"":Je(n),r>=n.length)return n;var o=r-e.length;if(1>o)return e;if(r=n.slice(0,o),null==u)return r+e;if(je(u)){if(n.slice(o).search(u)){var i,f,a=n.slice(0,o);for(u.global||(u=Ye(u.source,(H.exec(u)||"")+"g")),u.lastIndex=0;i=u.exec(a);)f=i.index;
|
||||
r=r.slice(0,null==f?o:f)}}else n.indexOf(u,o)!=o&&(u=r.lastIndexOf(u),-1<u&&(r=r.slice(0,u)));return r+e},Ct.unescape=function(n){return(n=null==n?"":Je(n))&&(Z.lastIndex=0,Z.test(n))?n.replace(Z,A):n},Ct.uniqueId=function(n){var t=++M;return Je(null==n?"":n)+t},Ct.words=Ce,Ct.all=Jr,Ct.any=ie,Ct.detect=Gr,Ct.foldl=ee,Ct.foldr=ue,Ct.head=$r,Ct.include=Yr,Ct.inject=ee,Ne(Ct,function(){var n={};return Qt(Ct,function(t,r){Ct.prototype[r]||(n[r]=t)}),n}(),false),Ct.sample=function(n,t,r){return null==t||r?(n=Ur(n),t=n.length,0<t?n[fr(0,t-1)]:I):(n=oe(n),n.length=Au(0>t?0:+t||0,n.length),n)
|
||||
},Ct.prototype.sample=function(n,t){return n=t?null:n,this.__chain__||null!=n?this.thru(function(t){return Ct.sample(t,n)}):Ct.sample(this.value())},Ct.VERSION=O,St.prototype=Ct.prototype,Ct.prototype.chain=function(){return Vr(this)},Ct.prototype.toString=function(){return Je(this.value())},Ct.prototype.toJSON=Ct.prototype.value=Ct.prototype.valueOf=function(){for(var n=-1,t=this.__queue__,r=t.length,e=this.__wrapped__;++n<r;){var e=[e],u=t[n],o=u[1];su.apply(e,u[2]),e=o[u[0]].apply(o,e)}return e
|
||||
},n("bind bindKey curry curryRight partial partialRight".split(" "),function(n){Ct[n].placeholder=Ct}),n("concat join pop push reverse shift sort splice unshift".split(" "),function(n){var t=Ge[n],r=/^(?:join|pop|shift)$/.test(n),e=/^(?:push|reverse|sort|unshift)$/.test(n)?"tap":"thru";Ct.prototype[n]=function(){var n=arguments;return r&&!this.__chain__?t.apply(this.value(),n):this[e](function(r){return t.apply(r,n)})}}),Ct}var I,O="3.0.0-pre",F=1,R=2,D=4,k=8,C=16,S=32,T=64,U=150,W=16,N="Expected a function",$=Math.pow(2,32)-1,q=$-1,L=Math.pow(2,53)-1,B="__lodash_placeholder__",M=0,z=/\b__p\+='';/g,K=/\b(__p\+=)''\+/g,P=/(__e\(.*?\)|\b__t\))\+'';/g,Z=/&(?:amp|lt|gt|quot|#39|#96);/g,V=/[&<>"'`]/g,Y=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,G=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,H=/\w*$/,Q=/^\s*function[ \n\r\t]+\w/,nt=/^0[xX]/,tt=/^\[object .+?Constructor\]$/,rt=/[\xC0-\xFF]/g,et=/($^)/,ut=/[.*+?^${}()|[\]\/\\]/g,ot=/\bthis\b/,it=/['\n\r\u2028\u2029\\]/g,ft=RegExp("[A-Z\\xC0-\\xD6\\xD8-\\xDE]{2,}(?=[A-Z\\xC0-\\xD6\\xD8-\\xDE][a-z\\xDF-\\xF6\\xF8-\\xFF]+[0-9]*)|[A-Z\\xC0-\\xD6\\xD8-\\xDE]?[a-z\\xDF-\\xF6\\xF8-\\xFF]+[0-9]*|[A-Z\\xC0-\\xD6\\xD8-\\xDE]+|[0-9]+","g"),at=" \t\x0B\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000",ct="Array ArrayBuffer Date Error Float32Array Float64Array Function Int8Array Int16Array Int32Array Math Number Object RegExp Set String _ clearTimeout document isFinite parseInt setTimeout TypeError Uint8Array Uint8ClampedArray Uint16Array Uint32Array WeakMap window WinRTError".split(" "),lt="[object Arguments]",st="[object Array]",pt="[object Boolean]",ht="[object Date]",gt="[object Error]",vt="[object Number]",yt="[object Object]",mt="[object RegExp]",dt="[object String]",bt="[object ArrayBuffer]",_t="[object Float32Array]",wt="[object Float64Array]",xt="[object Int8Array]",jt="[object Int16Array]",At="[object Int32Array]",Et="[object Uint8Array]",It="[object Uint8ClampedArray]",Ot="[object Uint16Array]",Ft="[object Uint32Array]",Rt={};
|
||||
Rt[lt]=Rt[st]=Rt[_t]=Rt[wt]=Rt[xt]=Rt[jt]=Rt[At]=Rt[Et]=Rt[It]=Rt[Ot]=Rt[Ft]=true,Rt[bt]=Rt[pt]=Rt[ht]=Rt[gt]=Rt["[object Function]"]=Rt["[object Map]"]=Rt[vt]=Rt[yt]=Rt[mt]=Rt["[object Set]"]=Rt[dt]=Rt["[object WeakMap]"]=false;var Dt={};Dt[lt]=Dt[st]=Dt[bt]=Dt[pt]=Dt[ht]=Dt[_t]=Dt[wt]=Dt[xt]=Dt[jt]=Dt[At]=Dt[vt]=Dt[yt]=Dt[mt]=Dt[dt]=Dt[Et]=Dt[It]=Dt[Ot]=Dt[Ft]=true,Dt[gt]=Dt["[object Function]"]=Dt["[object Map]"]=Dt["[object Set]"]=Dt["[object WeakMap]"]=false;var kt={leading:false,maxWait:0,trailing:false},Ct={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},St={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},Tt={"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\xd7":" ","\xf7":" "},Ut={"function":true,object:true},Wt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Nt=Ut[typeof window]&&window||this,$t=Ut[typeof exports]&&exports&&!exports.nodeType&&exports,Ut=Ut[typeof module]&&module&&!module.nodeType&&module,qt=$t&&Ut&&typeof global=="object"&&global;
|
||||
!qt||qt.global!==qt&&qt.window!==qt&&qt.self!==qt||(Nt=qt);var qt=Ut&&Ut.exports===$t&&$t,Lt=E();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Nt._=Lt, define(function(){return Lt})):$t&&Ut?qt?(Ut.exports=Lt)._=Lt:$t._=Lt:Nt._=Lt}).call(this);
|
||||
return r}function i(n,t){for(var r=-1,e=n.length;++r<e;)if(t(n[r],r,n))return true;return false}function f(n,t){for(var r=-1,e=t.length,u=Array(e);++r<e;)u[r]=n[t[r]];return u}function a(n,t){if(n!==t){var r=n===n,e=t===t;if(n>t||!r||typeof n=="undefined"&&e)return 1;if(n<t||!e||typeof t=="undefined"&&r)return-1}return 0}function l(n,t,r){if(t!==t)return _(n,r);r=(r||0)-1;for(var e=n.length;++r<e;)if(n[r]===t)return r;return-1}function c(n){for(var t=-1,r=n?n.length:0,e=Array(r);++t<r;)e[t]=n[t];return e
|
||||
}function s(n,t){return n.has(t)?0:-1}function p(n){return n.charCodeAt(0)}function h(n,t){for(var r=-1,e=n.length;++r<e&&-1<t.indexOf(n.charAt(r)););return r}function g(n,t){for(var r=n.length;r--&&-1<t.indexOf(n.charAt(r)););return r}function v(n,t){return a(n.a,t.a)||n.b-t.b}function y(n,t){for(var r=-1,e=n.a,u=t.a,o=e.length;++r<o;){var i=a(e[r],u[r]);if(i)return i}return n.b-t.b}function d(n){return $t[n]}function m(n){return Wt[n]}function b(n){return"\\"+Lt[n]}function _(n,t,r){var e=n.length;
|
||||
for(t=r?t||e:(t||0)-1;r?t--:++t<e;){var u=n[t];if(u!==u)return t}return-1}function x(n,t,r){var e=typeof t,u=typeof r;return r&&("number"==e||"string"==e)&&("function"==u||"object"==u)&&r[t]===n||false}function w(n){return 160>=n&&9<=n&&13>=n||32==n||160==n||5760==n||6158==n||8192<=n&&(8202>=n||8232==n||8233==n||8239==n||8287==n||12288==n||65279==n)}function j(n,t){for(var r=-1,e=n.length,u=-1,o=[];++r<e;)n[r]===t&&(n[r]=P,o[++u]=r);return o}function A(n){for(var t=-1,r=n.length;++t<r&&w(n.charCodeAt(t)););return t
|
||||
}function E(n){for(var t=n.length;t--&&w(n.charCodeAt(t)););return t}function I(n){return Nt[n]}function O(w){function Wt(n){if(n&&typeof n=="object"){if(n instanceof Nt)return n;if(!Pu(n)&&ou.call(n,"__wrapped__"))return new Nt(n.__wrapped__,n.__chain__,c(n.__queue__))}return new Nt(n)}function Nt(n,t,r){this.__chain__=!!t,this.__queue__=r||[],this.__wrapped__=n}function $t(n,t){return typeof n=="undefined"?t:n}function qt(n,t,r,e){return typeof n!="undefined"&&ou.call(e,r)?n:t}function Lt(n,t,r){for(var e=-1,u=Ju(t),o=u.length;++e<o;){var i=u[e];
|
||||
n[i]=r?r(n[i],t[i],i,n,t):t[i]}return n}function Mt(n,t,r){var e=typeof n;if("function"==e){if(typeof t=="undefined")return n;if(e=$u(n),typeof e=="undefined"&&(Uu.funcNames&&(e=!n.name),e=e||!Uu.funcDecomp,!e)){var u=uu.call(n);Uu.funcNames||(e=!et.test(u)),e||(e=lt.test(u)||Ee(n),Wu(n,e))}if(false===e||true!==e&&e[1]&R)return n;switch(r){case 1:return function(r){return n.call(t,r)};case 3:return function(r,e,u){return n.call(t,r,e,u)};case 4:return function(r,e,u,o){return n.call(t,r,e,u,o)};case 5:return function(r,e,u,o,i){return n.call(t,r,e,u,o,i)
|
||||
}}return function(){return n.apply(t,arguments)}}return null==n?qe:"object"==e?Le(n):Ke(n)}function zt(t,r,e,u,o){var i=e?e(t):F;if(typeof i!="undefined")return i;var f=Pu(t),i=t;if(f?i=kr(t,r):Ae(t)&&(i=Cr(t,r),t=r&&fu.call(i)==_t?t:i),!r||i===t)return i;u||(u=[]),o||(o=[]);for(var a=u.length;a--;)if(u[a]==t)return o[a];return u.push(t),o.push(i),(f?n:er)(t,function(n,t){var f=e?e(n,t):F;i[t]=typeof f=="undefined"?zt(n,r,null,u,o):f}),i}function Kt(n){return Ae(n)?ju(n):{}}function Pt(n,t,r){return typeof r!="number"&&(r=null==r?n?n.length:0:Ou(+r||0,0)),Fr(n,t,r)
|
||||
}function Vt(n,t){var r=n?n.length:0;if(!r)return[];var e=-1,u=Rr(),o=u==l,i=o&&Nu&&t&&200<=t.length,o=o&&!i,f=[],a=t.length;i&&(u=s,t=Nu(t));n:for(;++e<r;)if(i=n[e],o&&i===i){for(var c=a;c--;)if(t[c]===i)continue n;f.push(i)}else 0>u(t,i)&&f.push(i);return f}function Yt(n,t){var r=n?n.length:0;if(typeof r!="number"||-1>=r||r>K)return er(n,t);for(var e=-1,u=Lr(n);++e<r&&false!==t(u[e],e,u););return n}function Jt(n,t){var r=n?n.length:0;if(typeof r!="number"||-1>=r||r>K)return ur(n,t);for(var e=Lr(n);r--&&false!==t(e[r],r,e););return n
|
||||
}function Xt(n,t){var r=true;return Yt(n,function(n,e,u){return r=!!t(n,e,u)}),r}function Gt(n,t){var r=[];return Yt(n,function(n,e,u){t(n,e,u)&&r.push(n)}),r}function Ht(n,t,r,e){var u;return r(n,function(n,r,o){return t(n,r,o)?(u=e?r:n,false):void 0}),u}function Qt(n,t,r,e){e=(e||0)-1;for(var u=n.length,o=-1,i=[];++e<u;){var f=n[e];if(f&&typeof f=="object"&&typeof f.length=="number"&&(Pu(f)||_e(f))){t&&(f=Qt(f,t,r));var a=-1,l=f.length;for(i.length+=l;++a<l;)i[++o]=f[a]}else r||(i[++o]=f)}return i}function nr(n,t,r){var e=-1,u=Lr(n);
|
||||
r=r(n);for(var o=r.length;++e<o;){var i=r[e];if(false===t(u[i],i,u))break}return n}function tr(n,t,r){var e=Lr(n);r=r(n);for(var u=r.length;u--;){var o=r[u];if(false===t(e[o],o,e))break}return n}function rr(n,t){nr(n,t,Re)}function er(n,t){return nr(n,t,Ju)}function ur(n,t){return tr(n,t,Ju)}function or(n,t){for(var r=-1,e=t.length,u=-1,o=[];++r<e;){var i=t[r];je(n[i])&&(o[++u]=i)}return o}function ir(n,t,r,e,u,o){var i=r&&!u?r(n,t):F;if(typeof i!="undefined")return!!i;if(n===t)return 0!==n||1/n==1/t;var f=typeof n,a=typeof t;
|
||||
if(("number"!=f||"number"!=a)&&(null==n||null==t||"function"!=f&&"object"!=f&&"function"!=a&&"object"!=a))return false;var l=fu.call(n),c=l==gt,s=fu.call(t),i=s==gt;c&&(l=_t),i&&(s=_t);var a=St[l],f=l==mt,p=l==_t,h=s==_t;if((s=l==s)&&a){if(c=n.length,p=t.length,c!=p&&!(e&&p>c))return false}else{var g=p&&ou.call(n,"__wrapped__"),h=h&&ou.call(t,"__wrapped__");if(g||h)return ir(g?n.value():n,h?t.value():t,r,e,u,o);if(!s)return false;if(!f&&!p){switch(l){case yt:case dt:return+n==+t;case bt:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;
|
||||
case xt:case wt:return n==Qe(t)}return false}if(g=c?Ge:n.constructor,l=i?Ge:t.constructor,f){if(g.prototype.name!=l.prototype.name)return false}else if(p=!c&&ou.call(n,"constructor"),h=!i&&ou.call(t,"constructor"),p!=h||!p&&g!=l&&"constructor"in n&&"constructor"in t&&!(typeof g=="function"&&g instanceof g&&typeof l=="function"&&l instanceof l))return false;if(g=f?["message","name"]:Ju(n),l=f?g:Ju(t),c&&g.push("length"),i&&l.push("length"),c=g.length,p=l.length,c!=p&&!e)return false}for(u||(u=[]),o||(o=[]),l=u.length;l--;)if(u[l]==n)return o[l]==t;
|
||||
if(u.push(n),o.push(t),i=true,a)for(;i&&++l<c;)if(a=n[l],e)for(f=p;f--&&!(i=ir(a,t[f],r,e,u,o)););else h=t[l],i=r?r(a,h,l):F,typeof i=="undefined"&&(i=ir(a,h,r,e,u,o));else for(;i&&++l<c;)p=g[l],(i=f||ou.call(t,p))&&(a=n[p],h=t[p],i=r?r(a,h,p):F,typeof i=="undefined"&&(i=ir(a,h,r,e,u,o)));return u.pop(),o.pop(),!!i}function fr(n,t,r){var e=-1,u=typeof t=="function",o=n?n.length:0,i=[];return typeof o=="number"&&-1<o&&o<=K&&(i.length=o),Yt(n,function(n){var o=u?t:null!=n&&n[t];i[++e]=o?o.apply(n,r):F
|
||||
}),i}function ar(n,t){var r=[];return Yt(n,function(n,e,u){r.push(t(n,e,u))}),r}function lr(t,r,e,u,o){var i=Sr(r);return(i?n:er)(r,function(n,r,f){var a=n&&Sr(n),l=n&&Vu(n),c=t[r];if(a||l){for(u||(u=[]),o||(o=[]),l=u.length;l--;)if(u[l]==n)return void(t[r]=o[l]);f=e?e(c,n,r,t,f):F,(l=typeof f=="undefined")&&(f=a?Pu(c)?c:[]:Vu(c)?c:{}),u.push(n),o.push(f),l&&lr(f,n,e,u,o),t[r]=f}else f=e?e(c,n,r,t,f):F,typeof f=="undefined"&&(f=n),(i||typeof f!="undefined")&&(t[r]=f)}),t}function cr(n,t,r,e,u){if(n)var o=$u(n),o=o?o[2]:n.length,o=Ou(o-r.length,0);
|
||||
return t&U?Fr(n,t,o,u,r,e):Fr(n,t,o,u,null,null,r,e)}function sr(n,t){return n+hu(Cu()*(t-n+1))}function pr(n,t,r,e,u){return u(n,function(n,u,o){r=e?(e=false,n):t(r,n,u,o)}),r}function hr(n,t){var r;return Yt(n,function(n,e,u){return r=t(n,e,u),!r}),!!r}function gr(n,t,r,e){var u=0,o=n?n.length:u;t=r(t);for(var i=t!==t,f=typeof t=="undefined";u<o;){var a=hu((u+o)/2),l=r(n[a]),c=l===l;(i?c||e:f?c&&(e||typeof l!="undefined"):e?l<=t:l<t)?u=a+1:o=a}return Fu(o,z)}function vr(n,t){var r=-1,e=Rr(),u=n.length,o=e==l,i=o&&Nu&&200<=u,o=o&&!i,f=[];
|
||||
if(i)var a=Nu(),e=s;else a=t?[]:f;n:for(;++r<u;){var c=n[r],p=t?t(c,r,n):c;if(o&&c===c){for(var h=a.length;h--;)if(a[h]===p)continue n;t&&a.push(p),f.push(c)}else 0>e(a,p)&&((t||i)&&a.push(p),f.push(c))}return f}function yr(n,t){for(var r=-1,e=t(n),u=e.length,o=Pe(u);++r<u;)o[r]=n[e[r]];return o}function dr(n){return cu.call(n,0)}function mr(n,t,r){for(var e=t.length,u=-1,o=Ou(r.length-e,0),i=-1,f=n.length,a=Pe(o+f);++i<f;)a[i]=n[i];for(;++u<e;)a[t[u]]=r[u];for(;o--;)a[i++]=r[u++];return a}function br(n,t,r){for(var e=-1,u=t.length,o=-1,i=Ou(r.length-u,0),f=-1,a=n.length,l=Pe(i+a);++o<i;)l[o]=r[o];
|
||||
for(i=o;++f<a;)l[i+f]=n[f];for(;++e<u;)l[i+t[e]]=r[o++];return l}function _r(n,t){return function(r,e,u){e=Dr(e,u,3);var o=t?t():{};if(Pu(r)){u=-1;for(var i=r.length;++u<i;){var f=r[u];n(o,f,e(f,u,r),r)}}else Yt(r,function(t,r,u){n(o,t,e(t,r,u),u)});return o}}function xr(n){return function(){var t=arguments.length,r=arguments[0];if(2>t||null==r)return r;if(3<t&&x(arguments[1],arguments[2],arguments[3])&&(t=2),3<t&&"function"==typeof arguments[t-2])var e=Mt(arguments[--t-1],arguments[t--],5);else 2<t&&"function"==typeof arguments[t-1]&&(e=arguments[--t]);
|
||||
for(var u=0;++u<t;)n(r,arguments[u],e);return r}}function wr(n,t){function r(){return(this instanceof r?e:n).apply(t,arguments)}var e=Ar(n);return r}function jr(n){return function(t){var r=-1;t=We(Ce(t));for(var e=t.length,u="";++r<e;)u=n(u,t[r],r,We);return u}}function Ar(n){return function(){var t=Kt(n.prototype),r=n.apply(t,arguments);return Ae(r)?r:t}}function Er(n,t,r,e,u,o,i,f){function a(){for(var y=arguments.length,d=y,m=Pe(y);d--;)m[d]=arguments[d];if(u&&(m=mr(u,o,m)),i&&(m=br(i,f,m)),s||p){var d=a.placeholder,b=j(m,d),y=y-b.length;
|
||||
if(y<r){var y=Ou(r-y,0),_=s?m:null,x=s?b:null,m=s?null:m,b=s?null:b;t|=s?U:W,t&=~(s?W:U),h||(t&=~(R|k));var w=Er(n,t,y,e,_,x,m,b);return w.placeholder=d,qu(w,[n,t,y,e,_,x,m,b])}}return d=l?e:this,c&&(n=d[v]),(this instanceof a?g||Ar(n):n).apply(d,m)}var l=t&R,c=t&k,s=t&C,p=t&S,h=t&T,g=!c&&Ar(n),v=n;return a}function Ir(n,t,r){return n=n.length,t=+t,n<t&&Eu(t)?(t-=n,r=null==r?" ":Qe(r),Te(r,su(t/r.length)).slice(0,t)):""}function Or(n,t,r,e){function u(){for(var t=-1,f=arguments.length,a=-1,l=r.length,c=Pe(f+l);++a<l;)c[a]=r[a];
|
||||
for(;f--;)c[a++]=arguments[++t];return(this instanceof u?i:n).apply(o?e:this,c)}var o=t&R,i=Ar(n);return u}function Fr(n,t,r,e,u,o,i,f){var a=t&k;if(!a&&!je(n))throw new nu(B);var l=t&U;l&&!u.length&&(t&=~U,l=false,u=o=null);var s=t&W;s&&!i.length&&(t&=~W,s=false,i=f=null);var p=(p=!a&&$u(n))&&true!==p&&p;if(p){var h=p[1],g=h&R,v=t&R;n=p[0],t|=h,null==r&&(r=p[2]),g&&(e=p[3]),!v&&g&&(t|=T),(h=p[4])&&(g=p[5],u=l?mr(h,g,u):c(h),o=l?j(u,P):c(g)),(h=p[6])&&(g=p[7],i=s?br(h,g,i):c(h),f=s?j(i,P):c(g))}return null==r&&(r=a?0:n.length),(p?Wu:qu)(t==R?wr(n,e):t!=U&&t!=(R|U)||o.length?Er(n,t,r,e,u,o,i,f):Or(n,t,u,e),[n,t,r,e,u,o,i,f])
|
||||
}function Dr(n,t,r){var e=Wt.callback||$e,e=e===$e?Mt:e;return r?e(n,t,r):e}function Rr(n,t,r){var e=Wt.indexOf||zr,e=e===zr?l:e;return n?e(n,t,r):e}function kr(n,t){var r=-1,e=n.length,u=n.constructor(e);if(!t)for(;++r<e;)u[r]=n[r];return e&&"string"==typeof n[0]&&ou.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function Cr(n,t){var r=fu.call(n);if(!Tt[r])return n;var e=n.constructor,u=r==gt,o=r==_t;if(!o||typeof e=="function"&&e instanceof e||(e=Ge),u||o){var i=t?new e:Lt(new e,n);return u&&(i.length=n.length),i
|
||||
}switch(r){case jt:return dr(n);case yt:case dt:return new e(+n);case At:case Et:case It:case Ot:case Ft:case Dt:case Rt:case kt:case Ct:return r=n.buffer,new e(t?dr(r):r,n.byteOffset,n.length);case bt:case wt:return new e(n);case xt:i=e(n.source,rt.exec(n)),i.lastIndex=n.lastIndex}return i}function Sr(n){return n&&typeof n=="object"&&typeof n.length=="number"&&St[fu.call(n)]||false}function Tr(n){return n===n&&(0===n?0<1/n:!Ae(n))}function Ur(n,t){n=Lr(n);for(var r=-1,e=t.length,u={};++r<e;){var o=t[r];
|
||||
o in n&&(u[o]=n[o])}return u}function Wr(n,t){var r={};return rr(n,function(n,e,u){t(n,e,u)&&(r[e]=n)}),r}function Nr(n){var t,r;return n&&typeof n=="object"&&fu.call(n)==_t&&(ou.call(n,"constructor")||(t=n.constructor,typeof t!="function"||t instanceof t))?(rr(n,function(n,t){r=t}),typeof r=="undefined"||ou.call(n,r)):false}function $r(n){for(var t,r=-1,e=Re(n),u=e.length,o=u&&n.length,i=o-1,f=[],o=typeof o=="number"&&0<o&&(Pu(n)||Uu.nonEnumArgs&&_e(n));++r<u;){var a=e[r];(o&&(t=+a,-1<t&&t<=i&&0==t%1)||ou.call(n,a))&&f.push(a)
|
||||
}return f}function qr(n){if(null==n)return[];var t=n.length;return typeof t=="number"&&-1<t&&t<=K?Ae(n)?n:Ge(n):ke(n)}function Lr(n){return Ae(n)?n:Ge(n)}function Br(n,t,r){var e=-1,u=n?n.length:0;for(t=Dr(t,r,3);++e<u;)if(t(n[e],e,n))return e;return-1}function Mr(n){return n?n[0]:F}function zr(n,t,r){var e=n?n.length:0;if(!e)return-1;if(typeof r=="number")r=0>r?Ou(e+r,0):r||0;else if(r)return r=Zr(n,t),n[r]===t?r:-1;return l(n,t,r)}function Kr(n){return Pr(n,1)}function Pr(n,t,r){var e=-1,u=n?n.length:0,o=typeof r;
|
||||
if(r&&"number"!=o&&x(n,t,r)&&(t=0,r=u),t=null==t?0:+t||0,0>t&&(t=-t>u?0:u+t),r="undefined"==o||r>u?u:+r||0,0>r&&(r+=u),r&&r==u&&!t)return c(n);for(u=t>r?0:r-t,r=Pe(u);++e<u;)r[e]=n[e+t];return r}function Zr(n,t,r,e){return r=null==r?qe:Dr(r,e,1),gr(n,t,r)}function Vr(n,t,r,e){return r=null==r?qe:Dr(r,e,1),gr(n,t,r,true)}function Yr(n,t,r,e){if(!n||!n.length)return[];if(typeof t!="boolean"&&null!=t&&(e=r,r=x(n,t,e)?null:t,t=false),null!=r&&(r=Dr(r,e,3)),t&&Rr()==l){t=r;var u;r=-1,e=n.length;for(var o=-1,i=[];++r<e;){var f=n[r],a=t?t(f,r,n):f;
|
||||
r&&u===a||(u=a,i[++o]=f)}n=i}else n=vr(n,r);return n}function Jr(n){for(var t=-1,r=Ae(r=oe(n,"length"))&&r.length||0,e=Pe(r);++t<r;)e[t]=ie(n,t);return e}function Xr(n,t){var r=-1,e=n?n.length:0,u={};for(t||!e||Pu(n[0])||(t=[]);++r<e;){var o=n[r];t?u[o]=t[r]:o&&(u[o[0]]=o[1])}return u}function Gr(n){return n=Wt(n),n.__chain__=true,n}function Hr(n,t,r){var e=n?n.length:0;return typeof e=="number"&&-1<e&&e<=K||(n=ke(n),e=n.length),e?(r=typeof r=="number"?0>r?Ou(e+r,0):r||0:0,typeof n=="string"||!Pu(n)&&Fe(n)?r<e&&-1<n.indexOf(t,r):-1<Rr(n,t,r)):false
|
||||
}function Qr(n,r,e){var u=Pu(n)?t:Xt;return(typeof r!="function"||typeof e!="undefined")&&(r=Dr(r,e,3)),u(n,r)}function ne(n,t,r){var u=Pu(n)?e:Gt;return t=Dr(t,r,3),u(n,t)}function te(n,t,r){return Pu(n)?(t=Br(n,t,r),-1<t?n[t]:F):(t=Dr(t,r,3),Ht(n,t,Yt))}function re(t,r,e){return typeof r=="function"&&typeof e=="undefined"&&Pu(t)?n(t,r):Yt(t,Mt(r,e,3))}function ee(n,t,r){if(typeof t=="function"&&typeof r=="undefined"&&Pu(n))for(r=n.length;r--&&false!==t(n[r],r,n););else n=Jt(n,Mt(t,r,3));return n}function ue(n,t,e){return t=Dr(t,e,3),(Pu(n)?r:ar)(n,t)
|
||||
}function oe(n,t,r){t=x(n,t,r)?null:t;var e=-1/0,u=null==t,o=!(u&&Pu(n))&&Fe(n),i=e;if(u&&!o)for(r=-1,n=qr(n),u=n.length;++r<u;)o=n[r],o>i&&(i=o);else t=u&&o?p:Dr(t,r,3),Yt(n,function(n,r,u){r=t(n,r,u),(r>e||-1/0===r&&r===i)&&(e=r,i=n)});return i}function ie(n,t){return ue(n,Ke(t))}function fe(n,t,r,e){return(Pu(n)?u:pr)(n,Dr(t,e,4),r,3>arguments.length,Yt)}function ae(n,t,r,e){return(Pu(n)?o:pr)(n,Dr(t,e,4),r,3>arguments.length,Jt)}function le(n){n=qr(n);for(var t=-1,r=n.length,e=Pe(r);++t<r;){var u=sr(0,t);
|
||||
t!=u&&(e[t]=e[u]),e[u]=n[t]}return e}function ce(n,t,r){var e=Pu(n)?i:hr;return(typeof t!="function"||typeof r!="undefined")&&(t=Dr(t,r,3)),e(n,t)}function se(n,t){var r;if(!je(t)){if(!je(n))throw new nu(B);var e=n;n=t,t=e}return function(){return 0<--n?r=t.apply(this,arguments):t=null,r}}function pe(n,t){if(3>arguments.length)return Fr(n,R,null,t);var r=Pr(arguments,2),e=j(r,pe.placeholder);return cr(n,R|U,r,e,t)}function he(n,t){var r=R|k;if(2<arguments.length)var e=Pr(arguments,2),u=j(e,he.placeholder);
|
||||
return e?Fr(t,r,null,n,e,u):Fr(t,r,null,n)}function ge(n,t,r){return n=Pt(n,C,r?null:t),n.placeholder=ge.placeholder,n}function ve(n,t,r){return n=Pt(n,S,r?null:t),n.placeholder=ve.placeholder,n}function ye(n,t,r){function e(){var r=t-(no()-l);0>=r||r>t?(f&&pu(f),r=p,f=s=p=F,r&&(h=no(),a=n.apply(c,i),s||f||(i=c=null))):s=mu(e,r)}function u(){s&&pu(s),f=s=p=F,(v||g!==t)&&(h=no(),a=n.apply(c,i),s||f||(i=c=null))}function o(){if(i=arguments,l=no(),c=this,p=v&&(s||!y),false===g)var r=y&&!s;else{f||y||(h=l);
|
||||
var o=g-(l-h),d=0>=o||o>g;d?(f&&(f=pu(f)),h=l,a=n.apply(c,i)):f||(f=mu(u,o))}return d&&s?s=pu(s):s||t===g||(s=mu(e,t)),r&&(d=true,a=n.apply(c,i)),!d||s||f||(i=c=null),a}var i,f,a,l,c,s,p,h=0,g=false,v=true;if(!je(n))throw new nu(B);if(t=0>t?0:t,true===r)var y=true,v=false;else Ae(r)&&(y=r.leading,g="maxWait"in r&&Ou(+r.maxWait||0,t),v="trailing"in r?r.trailing:v);return o.cancel=function(){s&&pu(s),f&&pu(f),f=s=p=F},o}function de(){var n=arguments,r=n.length-1;if(0>r)return function(){};if(!t(n,je))throw new nu(B);
|
||||
return function(){for(var t=r,e=n[t].apply(this,arguments);t--;)e=n[t].call(this,e);return e}}function me(n){var t=Pr(arguments,1),r=j(t,me.placeholder);return cr(n,U,t,r)}function be(n){var t=Pr(arguments,1),r=j(t,be.placeholder);return cr(n,W,t,r)}function _e(n){var t=n&&typeof n=="object"?n.length:F;return typeof t=="number"&&-1<t&&t<=K&&fu.call(n)==gt||false}function xe(n){return n&&typeof n=="object"&&1===n.nodeType&&-1<fu.call(n).indexOf("Element")||false}function we(n){return n&&typeof n=="object"&&fu.call(n)==mt||false
|
||||
}function je(n){return typeof n=="function"||false}function Ae(n){var t=typeof n;return"function"==t||n&&"object"==t||false}function Ee(n){return je(n)?au.test(uu.call(n)):n&&typeof n=="object"&&ot.test(n)||false}function Ie(n){var t=typeof n;return"number"==t||n&&"object"==t&&fu.call(n)==bt||false}function Oe(n){return n&&typeof n=="object"&&fu.call(n)==xt||false}function Fe(n){return typeof n=="string"||n&&typeof n=="object"&&fu.call(n)==wt||false}function De(n){return or(n,Re(n))}function Re(n){if(null==n)return[];
|
||||
Ae(n)||(n=Ge(n));for(var t,r=n.length,r=typeof r=="number"&&0<r&&(Pu(n)||Uu.nonEnumArgs&&_e(n))&&r||0,e=n.constructor,u=-1,e=typeof e=="function"&&e.prototype==n,o=r-1,i=Pe(r),f=0<r;++u<r;)i[u]=Qe(u);for(var a in n)e&&"constructor"==a||f&&(t=+a,-1<t&&t<=o&&0==t%1)||i.push(a);return i}function ke(n){return yr(n,Ju)}function Ce(n){return(n=null==n?"":Qe(n))?n.replace(it,d):n}function Se(n){return(n=null==n?"":Qe(n))&&(at.lastIndex=0,at.test(n))?n.replace(at,"\\$&"):n}function Te(n,t){var r="";if(t=+t,1>t||null==n||!Eu(t))return r;
|
||||
n=Qe(n);do t%2&&(r+=n),t=hu(t/2),n+=n;while(t);return r}function Ue(n,t,r){return(n=null==n?"":Qe(n))?r||null==t?n.slice(A(n),E(n)+1):(t=Qe(t),n.slice(h(n,t),g(n,t)+1)):n}function We(n,t,r){return(n=null!=n&&Qe(n))&&n.match((r?null:t)||st)||[]}function Ne(n){try{return n()}catch(t){return we(t)?t:Ve(t)}}function $e(n,t,r){return Mt(n,r?F:t)}function qe(n){return n}function Le(n){var t=Ju(n),r=t.length;if(1==r){var e=t[0],u=n[e];if(Tr(u))return function(n){return null!=n&&u===n[e]&&ou.call(n,e)}}for(var o=r,i=Pe(r),f=Pe(r);o--;){var u=n[t[o]],a=Tr(u);
|
||||
i[o]=a,f[o]=a?u:zt(u)}return function(n){if(o=r,null==n)return!o;for(;o--;)if(i[o]?f[o]!==n[t[o]]:!ou.call(n,t[o]))return false;for(o=r;o--;)if(i[o]?!ou.call(n,t[o]):!ir(f[o],n[t[o]],null,true))return false;return true}}function Be(n,t,r){var e=true,u=Ae(t),o=null==r,i=o&&u&&Ju(t),f=i&&or(t,i);(i&&i.length&&!f.length||o&&!u)&&(o&&(r=t),f=false,t=n,n=this),f||(f=or(t,Ju(t))),false===r?e=false:Ae(r)&&"chain"in r&&(e=r.chain),r=-1,u=je(n);for(o=f.length;++r<o;)i=f[r],n[i]=t[i],u&&(n.prototype[i]=function(t){return function(){if(e||this.__chain__){var r=n(this.__wrapped__);
|
||||
return r.__chain__=this.__chain__,(r.__queue__=c(this.__queue__)).push([t,n,arguments]),r}return r=[this.value()],vu.apply(r,arguments),n[t].apply(n,r)}}(i));return n}function Me(){}function ze(n,t,r){return ku(n,r?0:t)}function Ke(n){return function(t){return null==t?F:t[n]}}w=w?Zt.defaults(Bt.Object(),w,Zt.pick(Bt,ht)):Bt;var Pe=w.Array,Ze=w.Date,Ve=w.Error,Ye=w.Function,Je=w.Math,Xe=w.Number,Ge=w.Object,He=w.RegExp,Qe=w.String,nu=w.TypeError,tu=Pe.prototype,ru=Ge.prototype,eu=(eu=w.window)&&eu.document,uu=Ye.prototype.toString,ou=ru.hasOwnProperty,iu=w._,fu=ru.toString,au=He("^"+Se(fu).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),lu=Ee(lu=w.ArrayBuffer)&&lu,cu=Ee(cu=lu&&new lu(0).slice)&&cu,su=Je.ceil,pu=w.clearTimeout,hu=Je.floor,gu=Ee(gu=Ge.getPrototypeOf)&&gu,vu=tu.push,yu=ru.propertyIsEnumerable,du=Ee(du=w.Set)&&du,mu=w.setTimeout,bu=tu.splice,_u=Ee(_u=w.Uint8Array)&&_u,xu=Ee(xu=w.d)&&xu,wu=function(){try{var n=Ee(n=w.Float64Array)&&n,t=new n(new lu(10),0,1)&&n
|
||||
}catch(r){}return t}(),ju=Ee(ju=Ge.create)&&ju,Au=Ee(Au=Pe.isArray)&&Au,Eu=w.isFinite,Iu=Ee(Iu=Ge.keys)&&Iu,Ou=Je.max,Fu=Je.min,Du=Ee(Du=Ze.now)&&Du,Ru=Ee(Ru=Xe.isFinite)&&Ru,ku=w.parseInt,Cu=Je.random,Su=wu?wu.BYTES_PER_ELEMENT:0,Tu=xu&&new xu,Uu=Wt.support={};!function(x_){Uu.funcDecomp=!Ee(w.WinRTError)&<.test(O),Uu.funcNames=typeof Ye.name=="string";try{Uu.dom=11===eu.createDocumentFragment().nodeType}catch(n){Uu.dom=false}try{Uu.nonEnumArgs=!yu.call(arguments,1)}catch(t){Uu.nonEnumArgs=true}}(0,0),Wt.templateSettings={escape:H,evaluate:Q,interpolate:nt,variable:"",imports:{_:Wt}},ju||(Kt=function(){function n(){}return function(t){if(Ae(t)){n.prototype=t;
|
||||
var r=new n;n.prototype=null}return r||w.Object()}}());var Wu=Tu?function(n,t){return Tu.set(n,t),n}:qe;cu||(dr=lu&&_u?function(n){var t=n.byteLength,r=wu?hu(t/Su):0,e=r*Su,u=new lu(t);if(r){var o=new wu(u,0,r);o.set(new wu(n,0,r))}return t!=e&&(o=new _u(u,e),o.set(new _u(n,e))),u}:qe);var Nu=du&&function(n){var t=new du,r=n?n.length:0;for(t.push=t.add;r--;)t.push(n[r]);return t},$u=Tu?function(n){return Tu.get(n)}:Me,qu=function(){var n=0,t=0;return function(r,e){var u=no?no():0,o=L-(u-t);if(t=u,0<o){if(++n>=q)return r
|
||||
}else n=0;return Wu(r,e)}}(),Lu=_r(function(n,t,r){ou.call(n,r)?++n[r]:n[r]=1}),Bu=_r(function(n,t,r){ou.call(n,r)?n[r].push(t):n[r]=[t]}),Mu=_r(function(n,t,r){n[r]=t}),zu=_r(function(n,t,r){n[r?0:1].push(t)},function(){return[[],[]]}),Ku=me(se,2),Pu=Au||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&fu.call(n)==vt||false};Uu.dom||(xe=function(n){return n&&typeof n=="object"&&1===n.nodeType&&!Vu(n)||false});var Zu=Ru||function(n){return typeof n=="number"&&Eu(n)},Vu=gu?function(n){if(!n||fu.call(n)!=_t)return false;
|
||||
var t=n.valueOf,r=Ee(t)&&(r=gu(t))&&gu(r);return r?n==r||gu(n)==r:Nr(n)}:Nr,Yu=xr(Lt),Ju=Iu?function(n){if(n)var t=n.constructor,r=n.length;return typeof t=="function"&&t.prototype===n||typeof r=="number"&&0<r?$r(n):Ae(n)?Iu(n):[]}:$r,Xu=xr(lr),Gu=jr(function(n,t,r){return t=t.toLowerCase(),r?n+t.charAt(0).toUpperCase()+t.slice(1):t}),Hu=jr(function(n,t,r){return n+(r?"-":"")+t.toLowerCase()}),Qu=jr(function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}),no=Du||function(){return(new Ze).getTime()};return 8!=ku(pt+"08")&&(ze=function(n,t,r){return n=Ue(n),ku(n,(r?0:+t)||(ut.test(n)?16:10))
|
||||
}),Wt.after=function(n,t){if(!je(t)){if(!je(n))throw new nu(B);var r=n;n=t,t=r}return n=Eu(n=+n)?n:0,function(){return 1>--n?t.apply(this,arguments):void 0}},Wt.assign=Yu,Wt.at=function(n){var t=n?n.length:0;return typeof t=="number"&&-1<t&&t<=K&&(n=qr(n)),f(n,Qt(arguments,false,false,1))},Wt.before=se,Wt.bind=pe,Wt.bindAll=function(n){for(var t=n,r=1<arguments.length?Qt(arguments,false,false,1):De(n),e=-1,u=r.length;++e<u;){var o=r[e];t[o]=Fr(t[o],R,null,t)}return t},Wt.bindKey=he,Wt.callback=$e,Wt.chain=Gr,Wt.chunk=function(n,t,r){var e=0,u=n?n.length:0,o=-1,i=[];
|
||||
for(t=r||null==t?1:Ou(+t||1,1);e<u;)i[++o]=Pr(n,e,e+=t);return i},Wt.compact=function(n){for(var t=-1,r=n?n.length:0,e=-1,u=[];++t<r;){var o=n[t];o&&(u[++e]=o)}return u},Wt.constant=function(n){return function(){return n}},Wt.countBy=Lu,Wt.create=function(n,t,r){return n=Kt(n),(t=r?null:t)?Lt(n,t):n},Wt.curry=ge,Wt.curryRight=ve,Wt.debounce=ye,Wt.defaults=function(n){if(null==n)return n;var t=c(arguments);return t.push($t),Yu.apply(F,t)},Wt.defer=function(n){if(!je(n))throw new nu(B);var t=Pr(arguments,1);
|
||||
return mu(function(){n.apply(F,t)},1)},Wt.delay=function(n,t){if(!je(n))throw new nu(B);var r=Pr(arguments,2);return mu(function(){n.apply(F,r)},t)},Wt.difference=function(){for(var n=-1,t=arguments.length;++n<t;){var r=arguments[n];if(Pu(r)||_e(r))break}return Vt(arguments[n],Qt(arguments,false,true,++n))},Wt.drop=function(n,t,r){return t=r||null==t?1:t,Pr(n,0>t?0:t)},Wt.dropRight=function(n,t,r){var e=n?n.length:0;return t=e-((r||null==t?1:t)||0),Pr(n,0,0>t?0:t)},Wt.dropRightWhile=function(n,t,r){var e=n?n.length:0;
|
||||
for(t=Dr(t,r,3);e--&&t(n[e],e,n););return Pr(n,0,e+1)},Wt.dropWhile=function(n,t,r){var e=-1,u=n?n.length:0;for(t=Dr(t,r,3);++e<u&&t(n[e],e,n););return Pr(n,e)},Wt.filter=ne,Wt.flatten=function(n,t,r){return n&&n.length?Qt(n,r?false:t):[]},Wt.flattenDeep=function(n){return n&&n.length?Qt(n,true):[]},Wt.flow=function(){var n=arguments,r=n.length;if(!r)return function(){};if(!t(n,je))throw new nu(B);return function(){for(var t=0,e=n[t].apply(this,arguments);++t<r;)e=n[t].call(this,e);return e}},Wt.flowRight=de,Wt.forEach=re,Wt.forEachRight=ee,Wt.forIn=function(n,t,r){return(typeof t!="function"||typeof r!="undefined")&&(t=Mt(t,r,3)),nr(n,t,Re)
|
||||
},Wt.forInRight=function(n,t,r){return t=Mt(t,r,3),tr(n,t,Re)},Wt.forOwn=function(n,t,r){return(typeof t!="function"||typeof r!="undefined")&&(t=Mt(t,r,3)),er(n,t)},Wt.forOwnRight=function(n,t,r){return t=Mt(t,r,3),tr(n,t,Ju)},Wt.functions=De,Wt.groupBy=Bu,Wt.indexBy=Mu,Wt.initial=function(n){return Pr(n,0,((n?n.length:0)||1)-1)},Wt.intersection=function(){for(var n=[],t=-1,r=arguments.length,e=[],u=Rr(),o=Nu&&u==l;++t<r;){var i=arguments[t];(Pu(i)||_e(i))&&(n.push(i),e.push(o&&120<=i.length&&Nu(t&&i)))
|
||||
}var r=n.length,o=n[0],f=-1,a=o?o.length:0,c=[],p=e[0];n:for(;++f<a;)if(i=o[f],0>(p?s(p,i):u(c,i))){for(t=r;--t;){var h=e[t];if(0>(h?s(h,i):u(n[t],i)))continue n}p&&p.push(i),c.push(i)}return c},Wt.invert=function(n,t,r){t=r?null:t,r=-1;for(var e=Ju(n),u=e.length,o={};++r<u;){var i=e[r],f=n[i];t?ou.call(o,f)?o[f].push(i):o[f]=[i]:o[f]=i}return o},Wt.invoke=function(n,t){return fr(n,t,Pr(arguments,2))},Wt.keys=Ju,Wt.keysIn=Re,Wt.map=ue,Wt.mapValues=function(n,t,r){t=Dr(t,r,3);var e={};return er(n,function(n,r,u){e[r]=t(n,r,u)
|
||||
}),e},Wt.matches=Le,Wt.memoize=function(n,t){function r(){var e=t?t.apply(this,arguments):arguments[0];if("__proto__"==e)return n.apply(this,arguments);var u=r.cache;return ou.call(u,e)?u[e]:u[e]=n.apply(this,arguments)}if(!je(n)||t&&!je(t))throw new nu(B);return r.cache={},r},Wt.merge=Xu,Wt.mixin=Be,Wt.negate=function(n){if(!je(n))throw new nu(B);return function(){return!n.apply(this,arguments)}},Wt.omit=function(n,t,e){if(null==n)return{};if(typeof t!="function"){var u=r(Qt(arguments,false,false,1),Qe);
|
||||
return Ur(n,Vt(Re(n),u))}return t=Dr(t,e,3),Wr(n,function(n,r,e){return!t(n,r,e)})},Wt.once=Ku,Wt.pairs=function(n){for(var t=-1,r=Ju(n),e=r.length,u=Pe(e);++t<e;){var o=r[t];u[t]=[o,n[o]]}return u},Wt.partial=me,Wt.partialRight=be,Wt.partition=zu,Wt.pick=function(n,t,r){return null==n?{}:typeof t=="function"?Wr(n,Dr(t,r,3)):Ur(n,Qt(arguments,false,false,1))},Wt.pluck=ie,Wt.property=Ke,Wt.pull=function(){var n=arguments[0];if(!n||!n.length)return n;for(var t=0,r=Rr(),e=arguments.length;++t<e;)for(var u=0,o=arguments[t];-1<(u=r(n,o,u));)bu.call(n,u,1);
|
||||
return n},Wt.pullAt=function(n){var t=n,r=Qt(arguments,false,false,1),e=r.length,u=f(t,r);for(r.sort(a);e--;){var o=parseFloat(r[e]);if(o!=i&&-1<o&&0==o%1){var i=o;bu.call(t,o,1)}}return u},Wt.range=function(n,t,r){r&&x(n,t,r)&&(t=r=null),n=+n||0,r=null==r?1:+r||0,null==t?(t=n,n=0):t=+t||0;var e=-1;t=Ou(su((t-n)/(r||1)),0);for(var u=Pe(t);++e<t;)u[e]=n,n+=r;return u},Wt.reject=function(n,t,r){var u=Pu(n)?e:Gt;return t=Dr(t,r,3),u(n,function(n,r,e){return!t(n,r,e)})},Wt.remove=function(n,t,r){var e=-1,u=n?n.length:0,o=[];
|
||||
for(t=Dr(t,r,3);++e<u;)r=n[e],t(r,e,n)&&(o.push(r),bu.call(n,e--,1),u--);return o},Wt.rest=Kr,Wt.shuffle=le,Wt.slice=Pr,Wt.sortBy=function(n,t,r){t=x(n,t,r)?null:t;var e=-1,u=n?n.length:0,o=t&&Pu(t),i=[];for(typeof u=="number"&&-1<u&&u<=K&&(i.length=u),o||(t=Dr(t,r,3)),Yt(n,function(n,r,u){if(o)for(r=t.length,u=Pe(r);r--;)u[r]=null==n?F:n[t[r]];else u=t(n,r,u);i[++e]={a:u,b:e,c:n}}),u=i.length,i.sort(o?y:v);u--;)i[u]=i[u].c;return i},Wt.take=function(n,t,r){return t=r||null==t?1:t,Pr(n,0,0>t?0:t)
|
||||
},Wt.takeRight=function(n,t,r){var e=n?n.length:0;return t=e-((r||null==t?1:t)||0),Pr(n,0>t?0:t)},Wt.takeRightWhile=function(n,t,r){var e=n?n.length:0;for(t=Dr(t,r,3);e--&&t(n[e],e,n););return Pr(n,e+1)},Wt.takeWhile=function(n,t,r){var e=-1,u=n?n.length:0;for(t=Dr(t,r,3);++e<u&&t(n[e],e,n););return Pr(n,0,e)},Wt.tap=function(n,t,r){return t.call(r,n),n},Wt.throttle=function(n,t,r){var e=true,u=true;if(!je(n))throw new nu(B);return false===r?e=false:Ae(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),Ut.leading=e,Ut.maxWait=+t,Ut.trailing=u,ye(n,t,Ut)
|
||||
},Wt.thru=function(n,t,r){return t.call(r,n)},Wt.times=function(n,t,r){n=Eu(n=+n)&&-1<n?n:0,t=Mt(t,r,1),r=-1;for(var e=Pe(Fu(n,M));++r<n;)r<M?e[r]=t(r):t(r);return e},Wt.toArray=function(n){var t=n?n.length:0;return typeof t=="number"&&-1<t&&t<=K?c(n):ke(n)},Wt.transform=function(t,r,e,u){if(r=Dr(r,u,4),u=Sr(t),null==e)if(u)e=[];else if(Ae(t)){var o=t.constructor;e=Kt(typeof o=="function"&&o.prototype)}else e={};return(u?n:er)(t,function(n,t,u){return r(e,n,t,u)}),e},Wt.union=function(){return vr(Qt(arguments,false,true))
|
||||
},Wt.uniq=Yr,Wt.unzip=Jr,Wt.values=ke,Wt.valuesIn=function(n){return yr(n,Re)},Wt.where=function(n,t){return ne(n,Le(t))},Wt.without=function(n){return Vt(n,Pr(arguments,1))},Wt.wrap=function(n,t){return cr(t,U,[n],[])},Wt.xor=function(){for(var n=-1,t=arguments.length;++n<t;){var r=arguments[n];if(Pu(r)||_e(r))var e=e?Vt(e,r).concat(Vt(r,e)):r}return e?vr(e):[]},Wt.zip=function(){for(var n=arguments.length,t=Pe(n);n--;)t[n]=arguments[n];return Jr(t)},Wt.zipObject=Xr,Wt.backflow=de,Wt.collect=ue,Wt.compose=de,Wt.each=re,Wt.eachRight=ee,Wt.extend=Yu,Wt.iteratee=$e,Wt.methods=De,Wt.object=Xr,Wt.select=ne,Wt.tail=Kr,Wt.unique=Yr,Be(Wt,Wt),Wt.attempt=Ne,Wt.camelCase=Gu,Wt.capitalize=function(n){return(n=null==n?"":Qe(n))?n.charAt(0).toUpperCase()+n.slice(1):n
|
||||
},Wt.clone=function(n,t,r,e){return typeof t!="boolean"&&null!=t&&(e=r,r=x(n,t,e)?null:t,t=false),r=typeof r=="function"&&Mt(r,e,1),zt(n,t,r)},Wt.cloneDeep=function(n,t,r){return t=typeof t=="function"&&Mt(t,r,1),zt(n,true,t)},Wt.contains=Hr,Wt.deburr=Ce,Wt.endsWith=function(n,t,r){n=null==n?"":Qe(n),t=Qe(t);var e=n.length;return r=(typeof r=="undefined"?e:Fu(0>r?0:+r||0,e))-t.length,0<=r&&n.indexOf(t,r)==r},Wt.escape=function(n){return(n=null==n?"":Qe(n))&&(G.lastIndex=0,G.test(n))?n.replace(G,m):n},Wt.escapeRegExp=Se,Wt.every=Qr,Wt.find=te,Wt.findIndex=Br,Wt.findKey=function(n,t,r){return t=Dr(t,r,3),Ht(n,t,er,true)
|
||||
},Wt.findLast=function(n,t,r){return t=Dr(t,r,3),Ht(n,t,Jt)},Wt.findLastIndex=function(n,t,r){var e=n?n.length:0;for(t=Dr(t,r,3);e--;)if(t(n[e],e,n))return e;return-1},Wt.findLastKey=function(n,t,r){return t=Dr(t,r,3),Ht(n,t,ur,true)},Wt.findWhere=function(n,t){return te(n,Le(t))},Wt.first=Mr,Wt.has=function(n,t){return n?ou.call(n,t):false},Wt.identity=qe,Wt.indexOf=zr,Wt.isArguments=_e,Wt.isArray=Pu,Wt.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&fu.call(n)==yt||false},Wt.isDate=function(n){return n&&typeof n=="object"&&fu.call(n)==dt||false
|
||||
},Wt.isElement=xe,Wt.isEmpty=function(n){if(null==n)return true;var t=n.length;return typeof t=="number"&&-1<t&&t<=K&&(Pu(n)||Fe(n)||_e(n)||typeof n=="object"&&je(n.splice))?!t:!Ju(n).length},Wt.isEqual=function(n,t,r,e){return r=typeof r=="function"&&Mt(r,e,3),!r&&Tr(n)&&Tr(t)?n===t:ir(n,t,r)},Wt.isError=we,Wt.isFinite=Zu,Wt.isFunction=je,Wt.isNaN=function(n){return Ie(n)&&n!=+n},Wt.isNative=Ee,Wt.isNull=function(n){return null===n},Wt.isNumber=Ie,Wt.isObject=Ae,Wt.isPlainObject=Vu,Wt.isRegExp=Oe,Wt.isString=Fe,Wt.isUndefined=function(n){return typeof n=="undefined"
|
||||
},Wt.kebabCase=Hu,Wt.last=function(n){var t=n?n.length:0;return t?n[t-1]:F},Wt.lastIndexOf=function(n,t,r){var e=n?n.length:0;if(!e)return-1;var u=e;if(typeof r=="number")u=(0>r?Ou(e+r,0):Fu(r||0,e-1))+1;else if(r)return u=Vr(n,t)-1,n[u]===t?u:-1;if(t!==t)return _(n,u,true);for(;u--;)if(n[u]===t)return u;return-1},Wt.max=oe,Wt.min=function(n,t,r){t=x(n,t,r)?null:t;var e=1/0,u=null==t,o=!(u&&Pu(n))&&Fe(n),i=e;if(u&&!o)for(r=-1,n=qr(n),u=n.length;++r<u;)o=n[r],o<i&&(i=o);else t=u&&o?p:Dr(t,r,3),Yt(n,function(n,r,u){r=t(n,r,u),(r<e||1/0===r&&r===i)&&(e=r,i=n)
|
||||
});return i},Wt.noConflict=function(){return w._=iu,this},Wt.noop=Me,Wt.now=no,Wt.pad=function(n,t,r){n=null==n?"":Qe(n),t=+t;var e=n.length;return e<t&&Eu(t)?(e=(t-e)/2,t=hu(e),e=su(e),r=Ir("",e,r),r.slice(0,t)+n+r):n},Wt.padLeft=function(n,t,r){return(n=null==n?"":Qe(n))?Ir(n,t,r)+n:n},Wt.padRight=function(n,t,r){return(n=null==n?"":Qe(n))?n+Ir(n,t,r):n},Wt.parseInt=ze,Wt.random=function(n,t,r){r&&x(n,t,r)&&(t=r=null);var e=null==n,u=null==t;return null==r&&(u&&typeof n=="boolean"?(r=n,n=1):typeof t=="boolean"&&(r=t,u=true)),e&&u&&(t=1,u=false),n=+n||0,u?(t=n,n=0):t=+t||0,r||n%1||t%1?(r=Cu(),Fu(n+r*(t-n+parseFloat("1e-"+(Qe(r).length-1))),t)):sr(n,t)
|
||||
},Wt.reduce=fe,Wt.reduceRight=ae,Wt.repeat=Te,Wt.result=function(n,t,r){var e=null==n?F:n[t];return typeof e=="undefined"?r:je(e)?n[t]():e},Wt.runInContext=O,Wt.size=function(n){var t=n?n.length:0;return typeof t=="number"&&-1<t&&t<=K?t:Ju(n).length},Wt.snakeCase=Qu,Wt.some=ce,Wt.sortedIndex=Zr,Wt.sortedLastIndex=Vr,Wt.startsWith=function(n,t,r){return n=null==n?"":Qe(n),r=typeof r=="undefined"?0:Fu(0>r?0:+r||0,n.length),n.lastIndexOf(t,r)==r},Wt.template=function(n,t,r){var e=Wt.templateSettings;x(n,t,r)&&(t=r=null),n=Qe(null==n?"":n),t=Yu({},r||t,e,qt),r=Yu({},t.imports,e.imports,qt);
|
||||
var u,o,i=Ju(r),f=ke(r),a=0;r=t.interpolate||ft;var l="__p+='";if(r=He((t.escape||ft).source+"|"+r.source+"|"+(r===nt?tt:ft).source+"|"+(t.evaluate||ft).source+"|$","g"),n.replace(r,function(t,r,e,i,f,c){return e||(e=i),l+=n.slice(a,c).replace(ct,b),r&&(u=true,l+="'+__e("+r+")+'"),f&&(o=true,l+="';"+f+";\n__p+='"),e&&(l+="'+((__t=("+e+"))==null?'':__t)+'"),a=c+t.length,t}),l+="';",(t=t.variable)||(l="with(obj){"+l+"}"),l=(o?l.replace(V,""):l).replace(Y,"$1").replace(J,"$1;"),l="function("+(t||"obj")+"){"+(t?"":"obj||(obj={});")+"var __t,__p=''"+(u?",__e=_.escape":"")+(o?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+l+"return __p}",t=Ne(function(){return Ye(i,"return "+l).apply(F,f)
|
||||
}),t.source=l,we(t))throw t;return t},Wt.trim=Ue,Wt.trimLeft=function(n,t,r){return(n=null==n?"":Qe(n))?r||null==t?n.slice(A(n)):(t=Qe(t),n.slice(h(n,t))):n},Wt.trimRight=function(n,t,r){return(n=null==n?"":Qe(n))?r||null==t?n.slice(0,E(n)+1):(t=Qe(t),n.slice(0,g(n,t)+1)):n},Wt.trunc=function(n,t,r){t=r?null:t;var e=N;if(r=$,Ae(t)){var u="separator"in t?t.separator:u,e="length"in t?+t.length||0:e;r="omission"in t?Qe(t.omission):r}else null!=t&&(e=+t||0);if(n=null==n?"":Qe(n),e>=n.length)return n;
|
||||
if(e-=r.length,1>e)return r;if(t=n.slice(0,e),null==u)return t+r;if(Oe(u)){if(n.slice(e).search(u)){var o,i=n.slice(0,e);for(u.global||(u=He(u.source,(rt.exec(u)||"")+"g")),u.lastIndex=0;n=u.exec(i);)o=n.index;t=t.slice(0,null==o?e:o)}}else n.indexOf(u,e)!=e&&(u=t.lastIndexOf(u),-1<u&&(t=t.slice(0,u)));return t+r},Wt.unescape=function(n){return(n=null==n?"":Qe(n))&&(X.lastIndex=0,X.test(n))?n.replace(X,I):n},Wt.uniqueId=function(n){var t=++Z;return Qe(null==n?"":n)+t},Wt.words=We,Wt.all=Qr,Wt.any=ce,Wt.detect=te,Wt.foldl=fe,Wt.foldr=ae,Wt.head=Mr,Wt.include=Hr,Wt.inject=fe,Be(Wt,function(){var n={};
|
||||
return er(Wt,function(t,r){Wt.prototype[r]||(n[r]=t)}),n}(),false),Wt.sample=function(n,t,r){return r||null==t?(n=qr(n),t=n.length,0<t?n[sr(0,t-1)]:F):(n=le(n),n.length=Fu(0>t?0:+t||0,n.length),n)},Wt.prototype.sample=function(n,t){return n=t?null:n,this.__chain__||null!=n?this.thru(function(t){return Wt.sample(t,n)}):Wt.sample(this.value())},Wt.VERSION=D,Nt.prototype=Wt.prototype,Wt.prototype.chain=function(){return Gr(this)},Wt.prototype.toString=function(){return Qe(this.value())},Wt.prototype.toJSON=Wt.prototype.value=Wt.prototype.valueOf=function(){for(var n=-1,t=this.__queue__,r=t.length,e=this.__wrapped__;++n<r;){var e=[e],u=t[n],o=u[1];
|
||||
vu.apply(e,u[2]),e=o[u[0]].apply(o,e)}return e},n("bind bindKey curry curryRight partial partialRight".split(" "),function(n){Wt[n].placeholder=Wt}),n("concat join pop push reverse shift sort splice unshift".split(" "),function(n){var t=tu[n],r=/^(?:join|pop|shift)$/.test(n),e=/^(?:push|reverse|sort|unshift)$/.test(n)?"tap":"thru";Wt.prototype[n]=function(){var n=arguments;return r&&!this.__chain__?t.apply(this.value(),n):this[e](function(r){return t.apply(r,n)})}}),Wt}var F,D="3.0.0-pre",R=1,k=2,C=4,S=8,T=16,U=32,W=64,N=30,$="...",q=150,L=16,B="Expected a function",M=Math.pow(2,32)-1,z=M-1,K=Math.pow(2,53)-1,P="__lodash_placeholder__",Z=0,V=/\b__p\+='';/g,Y=/\b(__p\+=)''\+/g,J=/(__e\(.*?\)|\b__t\))\+'';/g,X=/&(?:amp|lt|gt|quot|#39|#96);/g,G=/[&<>"'`]/g,H=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,nt=/<%=([\s\S]+?)%>/g,tt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rt=/\w*$/,et=/^\s*function[ \n\r\t]+\w/,ut=/^0[xX]/,ot=/^\[object .+?Constructor\]$/,it=/[\xC0-\xD6\xD8-\xDE\xDF-\xF6\xF8-\xFF]/g,ft=/($^)/,at=/[.*+?^${}()|[\]\/\\]/g,lt=/\bthis\b/,ct=/['\n\r\u2028\u2029\\]/g,st=RegExp("[A-Z\\xC0-\\xD6\\xD8-\\xDE]{2,}(?=[A-Z\\xC0-\\xD6\\xD8-\\xDE][a-z\\xDF-\\xF6\\xF8-\\xFF]+)|[A-Z\\xC0-\\xD6\\xD8-\\xDE]?[a-z\\xDF-\\xF6\\xF8-\\xFF]+|[A-Z\\xC0-\\xD6\\xD8-\\xDE]+|[0-9]+","g"),pt=" \t\x0B\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000",ht="Array ArrayBuffer Date Error Float32Array Float64Array Function Int8Array Int16Array Int32Array Math Number Object RegExp Set String _ clearTimeout document isFinite parseInt setTimeout TypeError Uint8Array Uint8ClampedArray Uint16Array Uint32Array WeakMap window WinRTError".split(" "),gt="[object Arguments]",vt="[object Array]",yt="[object Boolean]",dt="[object Date]",mt="[object Error]",bt="[object Number]",_t="[object Object]",xt="[object RegExp]",wt="[object String]",jt="[object ArrayBuffer]",At="[object Float32Array]",Et="[object Float64Array]",It="[object Int8Array]",Ot="[object Int16Array]",Ft="[object Int32Array]",Dt="[object Uint8Array]",Rt="[object Uint8ClampedArray]",kt="[object Uint16Array]",Ct="[object Uint32Array]",St={};
|
||||
St[gt]=St[vt]=St[At]=St[Et]=St[It]=St[Ot]=St[Ft]=St[Dt]=St[Rt]=St[kt]=St[Ct]=true,St[jt]=St[yt]=St[dt]=St[mt]=St["[object Function]"]=St["[object Map]"]=St[bt]=St[_t]=St[xt]=St["[object Set]"]=St[wt]=St["[object WeakMap]"]=false;var Tt={};Tt[gt]=Tt[vt]=Tt[jt]=Tt[yt]=Tt[dt]=Tt[At]=Tt[Et]=Tt[It]=Tt[Ot]=Tt[Ft]=Tt[bt]=Tt[_t]=Tt[xt]=Tt[wt]=Tt[Dt]=Tt[Rt]=Tt[kt]=Tt[Ct]=true,Tt[mt]=Tt["[object Function]"]=Tt["[object Map]"]=Tt["[object Set]"]=Tt["[object WeakMap]"]=false;var Ut={leading:false,maxWait:0,trailing:false},Wt={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Nt={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},$t={"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss"},qt={"function":true,object:true},Lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Bt=qt[typeof window]&&window||this,Mt=qt[typeof exports]&&exports&&!exports.nodeType&&exports,zt=qt[typeof module]&&module&&!module.nodeType&&module,Kt=Mt&&zt&&typeof global=="object"&&global;
|
||||
!Kt||Kt.global!==Kt&&Kt.window!==Kt&&Kt.self!==Kt||(Bt=Kt);var Pt=zt&&zt.exports===Mt&&Mt,Zt=O();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Bt._=Zt, define(function(){return Zt})):Mt&&zt?Pt?(zt.exports=Zt)._=Zt:Mt._=Zt:Bt._=Zt}).call(this);
|
||||
228
dist/lodash.underscore.js
vendored
228
dist/lodash.underscore.js
vendored
@@ -209,7 +209,7 @@
|
||||
* @private
|
||||
* @param {Array} array The array to iterate over.
|
||||
* @param {Function} predicate The function invoked per iteration.
|
||||
* @returns {Array} Returns `true` if all elements passed the predicate check,
|
||||
* @returns {Array} Returns `true` if all elements pass the predicate check,
|
||||
* else `false`
|
||||
*/
|
||||
function arrayEvery(array, predicate) {
|
||||
@@ -324,7 +324,7 @@
|
||||
* @private
|
||||
* @param {Array} array The array to iterate over.
|
||||
* @param {Function} predicate The function invoked per iteration.
|
||||
* @returns {boolean} Returns `true` if any element passed the predicate check,
|
||||
* @returns {boolean} Returns `true` if any element passes the predicate check,
|
||||
* else `false`.
|
||||
*/
|
||||
function arraySome(array, predicate) {
|
||||
@@ -364,7 +364,8 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* The base implementation of `_.indexOf` without support for binary searches.
|
||||
* The base implementation of `_.indexOf` without support for `fromIndex`
|
||||
* bounds checks and binary searches.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to search.
|
||||
@@ -373,12 +374,14 @@
|
||||
* @returns {number} Returns the index of the matched value, else `-1`.
|
||||
*/
|
||||
function baseIndexOf(array, value, fromIndex) {
|
||||
if (value !== value) {
|
||||
return indexOfNaN(array, fromIndex);
|
||||
}
|
||||
var index = (fromIndex || 0) - 1,
|
||||
length = array ? array.length : 0;
|
||||
length = array.length;
|
||||
|
||||
while (++index < length) {
|
||||
var other = array[index];
|
||||
if (other === value) {
|
||||
if (array[index] === value) {
|
||||
return index;
|
||||
}
|
||||
}
|
||||
@@ -440,6 +443,46 @@
|
||||
return '\\' + stringEscapes[chr];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the index at which the first occurrence of `NaN` is found in `array`.
|
||||
* If `fromRight` is provided elements of `array` are iterated from right to left.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to search.
|
||||
* @param {number} [fromIndex] The index to search from.
|
||||
* @param {boolean} [fromRight=false] Specify iterating from right to left.
|
||||
* @returns {number} Returns the index of the matched `NaN`, else `-1`.
|
||||
*/
|
||||
function indexOfNaN(array, fromIndex, fromRight) {
|
||||
var length = array.length,
|
||||
index = fromRight ? (fromIndex || length) : ((fromIndex || 0) - 1);
|
||||
|
||||
while ((fromRight ? index-- : ++index < length)) {
|
||||
var other = array[index];
|
||||
if (other !== other) {
|
||||
return index;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the provided arguments are from an iteratee call.
|
||||
*
|
||||
* @private
|
||||
* @param {*} value The potential iteratee value argument.
|
||||
* @param {*} index The potential iteratee index or key argument.
|
||||
* @param {*} object The potential iteratee object argument.
|
||||
* @returns {boolean} Returns `true` if the arguments are from an iteratee call, else `false`.
|
||||
*/
|
||||
function isIterateeCall(value, index, object) {
|
||||
var indexType = typeof index,
|
||||
objectType = typeof object;
|
||||
|
||||
return (object && (indexType == 'number' || indexType == 'string') &&
|
||||
(objectType == 'function' || objectType == 'object') && object[index] === value) || false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Replaces all `placeholder` elements in `array` with an internal placeholder
|
||||
* and returns an array of their indexes.
|
||||
@@ -827,7 +870,7 @@
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to inspect.
|
||||
* @param {Array} [values] The values to exclude.
|
||||
* @param {Array} values The values to exclude.
|
||||
* @returns {Array} Returns the new array of filtered values.
|
||||
*/
|
||||
function baseDifference(array, values) {
|
||||
@@ -897,13 +940,13 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* The base implementation of `_.every` without support for callback shorthands
|
||||
* or `this` binding.
|
||||
* The base implementation of `_.every` without support for callback
|
||||
* shorthands or `this` binding.
|
||||
*
|
||||
* @private
|
||||
* @param {Array|Object|string} collection The collection to iterate over.
|
||||
* @param {Function} predicate The function invoked per iteration.
|
||||
* @returns {Array} Returns `true` if all elements passed the predicate check,
|
||||
* @returns {Array} Returns `true` if all elements pass the predicate check,
|
||||
* else `false`
|
||||
*/
|
||||
function baseEvery(collection, predicate) {
|
||||
@@ -1344,7 +1387,7 @@
|
||||
* @private
|
||||
* @param {Array|Object|string} collection The collection to iterate over.
|
||||
* @param {Function} predicate The function invoked per iteration.
|
||||
* @returns {boolean} Returns `true` if any element passed the predicate check,
|
||||
* @returns {boolean} Returns `true` if any element passes the predicate check,
|
||||
* else `false`.
|
||||
*/
|
||||
function baseSome(collection, predicate) {
|
||||
@@ -1719,8 +1762,8 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* A specialized version of `_.pick` that picks `object` properties
|
||||
* the predicate returns truthy for.
|
||||
* A specialized version of `_.pick` that picks `object` properties `predicate`
|
||||
* returns truthy for.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} object The source object.
|
||||
@@ -1882,7 +1925,7 @@
|
||||
|
||||
/**
|
||||
* This method is like `_.find` except that it returns the index of the first
|
||||
* element the predicate returns truthy for, instead of the element itself.
|
||||
* element `predicate` returns truthy for, instead of the element itself.
|
||||
*
|
||||
* If a property name is provided for `predicate` the created "_.pluck" style
|
||||
* callback returns the property value of the given element.
|
||||
@@ -1980,15 +2023,7 @@
|
||||
*/
|
||||
function flatten(array, isDeep, guard) {
|
||||
var length = array ? array.length : 0;
|
||||
if (!length) {
|
||||
return [];
|
||||
}
|
||||
// enables use as a callback for functions like `_.map`
|
||||
var type = typeof isDeep;
|
||||
if ((type == 'number' || type == 'string') && guard && guard[isDeep] === array) {
|
||||
isDeep = false;
|
||||
}
|
||||
return baseFlatten(array, !isDeep);
|
||||
return length ? baseFlatten(array, guard ? true : !isDeep) : [];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2024,12 +2059,14 @@
|
||||
*/
|
||||
function indexOf(array, value, fromIndex) {
|
||||
var length = array ? array.length : 0;
|
||||
|
||||
if (!length) {
|
||||
return -1;
|
||||
}
|
||||
if (typeof fromIndex == 'number') {
|
||||
fromIndex = fromIndex < 0 ? nativeMax(length + fromIndex, 0) : (fromIndex || 0);
|
||||
} else if (fromIndex) {
|
||||
var index = sortedIndex(array, value);
|
||||
return (length && array[index] === value) ? index : -1;
|
||||
return array[index] === value ? index : -1;
|
||||
}
|
||||
return baseIndexOf(array, value, fromIndex);
|
||||
}
|
||||
@@ -2156,15 +2193,19 @@
|
||||
* // => 3
|
||||
*/
|
||||
function lastIndexOf(array, value, fromIndex) {
|
||||
var length = array ? array.length : 0,
|
||||
index = length;
|
||||
|
||||
var length = array ? array.length : 0;
|
||||
if (!length) {
|
||||
return -1;
|
||||
}
|
||||
var index = length;
|
||||
if (typeof fromIndex == 'number') {
|
||||
index = (fromIndex < 0 ? nativeMax(index + fromIndex, 0) : nativeMin(fromIndex || 0, index - 1)) + 1;
|
||||
index = (fromIndex < 0 ? nativeMax(length + fromIndex, 0) : nativeMin(fromIndex || 0, length - 1)) + 1;
|
||||
}
|
||||
if (value !== value) {
|
||||
return indexOfNaN(array, index, true);
|
||||
}
|
||||
while (index--) {
|
||||
var other = array[index];
|
||||
if (other === value) {
|
||||
if (array[index] === value) {
|
||||
return index;
|
||||
}
|
||||
}
|
||||
@@ -2210,13 +2251,18 @@
|
||||
*/
|
||||
function slice(array, start, end) {
|
||||
var index = -1,
|
||||
length = array ? array.length : 0;
|
||||
length = array ? array.length : 0,
|
||||
endType = typeof end;
|
||||
|
||||
if (end && endType != 'number' && isIterateeCall(array, start, end)) {
|
||||
start = 0;
|
||||
end = length;
|
||||
}
|
||||
start = start == null ? 0 : (+start || 0);
|
||||
if (start < 0) {
|
||||
start = -start > length ? 0 : (length + start);
|
||||
}
|
||||
end = (typeof end == 'undefined' || end > length) ? length : (+end || 0);
|
||||
end = (endType == 'undefined' || end > length) ? length : (+end || 0);
|
||||
if (end < 0) {
|
||||
end += length;
|
||||
}
|
||||
@@ -2237,7 +2283,7 @@
|
||||
* be inserted into a given sorted array in order to maintain the sort order
|
||||
* of the array. If an iteratee function is provided it is invoked for `value`
|
||||
* and each element of `array` to compute their sort ranking. The iteratee
|
||||
* function is bound to `thisArg` and invoked with one argument; (value).
|
||||
* is bound to `thisArg` and invoked with one argument; (value).
|
||||
*
|
||||
* If a property name is provided for `iteratee` the created "_.pluck" style
|
||||
* callback returns the property value of the given element.
|
||||
@@ -2384,16 +2430,10 @@
|
||||
return [];
|
||||
}
|
||||
// juggle arguments
|
||||
var type = typeof isSorted;
|
||||
if (type != 'boolean' && isSorted != null) {
|
||||
if (typeof isSorted != 'boolean' && isSorted != null) {
|
||||
thisArg = iteratee;
|
||||
iteratee = isSorted;
|
||||
iteratee = isIterateeCall(array, isSorted, thisArg) ? null : isSorted;
|
||||
isSorted = false;
|
||||
|
||||
// enables use as a callback for functions like `_.map`
|
||||
if ((type == 'number' || type == 'string') && thisArg && thisArg[iteratee] === array) {
|
||||
iteratee = null;
|
||||
}
|
||||
}
|
||||
if (iteratee != null) {
|
||||
iteratee = baseCallback(iteratee, thisArg, 3);
|
||||
@@ -2658,8 +2698,9 @@
|
||||
|
||||
if (!(typeof length == 'number' && length > -1 && length <= MAX_SAFE_INTEGER)) {
|
||||
collection = values(collection);
|
||||
length = collection.length;
|
||||
}
|
||||
return getIndexOf(collection, target) > -1;
|
||||
return length ? (getIndexOf(collection, target) > -1) : false;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2701,7 +2742,7 @@
|
||||
});
|
||||
|
||||
/**
|
||||
* Checks if the predicate returns truthy for **all** elements of `collection`.
|
||||
* Checks if `predicate` returns truthy for **all** elements of `collection`.
|
||||
* The predicate is bound to `thisArg` and invoked with three arguments;
|
||||
* (value, index|key, collection).
|
||||
*
|
||||
@@ -2721,7 +2762,7 @@
|
||||
* per iteration. If a property name or object is provided it is used to
|
||||
* create a "_.pluck" or "_.where" style callback respectively.
|
||||
* @param {*} [thisArg] The `this` binding of `predicate`.
|
||||
* @returns {boolean} Returns `true` if all elements passed the predicate check,
|
||||
* @returns {boolean} Returns `true` if all elements pass the predicate check,
|
||||
* else `false`.
|
||||
* @example
|
||||
*
|
||||
@@ -2751,7 +2792,7 @@
|
||||
|
||||
/**
|
||||
* Iterates over elements of `collection`, returning an array of all elements
|
||||
* the predicate returns truthy for. The predicate is bound to `thisArg` and
|
||||
* `predicate` returns truthy for. The predicate is bound to `thisArg` and
|
||||
* invoked with three arguments; (value, index|key, collection).
|
||||
*
|
||||
* If a property name is provided for `predicate` the created "_.pluck" style
|
||||
@@ -2797,8 +2838,8 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Iterates over elements of `collection`, returning the first element that
|
||||
* the predicate returns truthy for. The predicate is bound to `thisArg` and
|
||||
* Iterates over elements of `collection`, returning the first element
|
||||
* `predicate` returns truthy for. The predicate is bound to `thisArg` and
|
||||
* invoked with three arguments; (value, index|key, collection).
|
||||
*
|
||||
* If a property name is provided for `predicate` the created "_.pluck" style
|
||||
@@ -3110,14 +3151,10 @@
|
||||
* // => { 'user': 'fred', 'age': 40 };
|
||||
*/
|
||||
function max(collection, iteratee, thisArg) {
|
||||
var computed = -Infinity,
|
||||
result = computed,
|
||||
type = typeof iteratee;
|
||||
iteratee = isIterateeCall(collection, iteratee, thisArg) ? null : iteratee;
|
||||
|
||||
// enables use as a callback for functions like `_.map`
|
||||
if ((type == 'number' || type == 'string') && thisArg && thisArg[iteratee] === collection) {
|
||||
iteratee = null;
|
||||
}
|
||||
var computed = -Infinity,
|
||||
result = computed;
|
||||
|
||||
if (iteratee == null) {
|
||||
var index = -1,
|
||||
@@ -3188,14 +3225,10 @@
|
||||
* // => { 'user': 'barney', 'age': 36 };
|
||||
*/
|
||||
function min(collection, iteratee, thisArg) {
|
||||
var computed = Infinity,
|
||||
result = computed,
|
||||
type = typeof iteratee;
|
||||
iteratee = isIterateeCall(collection, iteratee, thisArg) ? null : iteratee;
|
||||
|
||||
// enables use as a callback for functions like `_.map`
|
||||
if ((type == 'number' || type == 'string') && thisArg && thisArg[iteratee] === collection) {
|
||||
iteratee = null;
|
||||
}
|
||||
var computed = Infinity,
|
||||
result = computed;
|
||||
|
||||
if (iteratee == null) {
|
||||
var index = -1,
|
||||
@@ -3224,8 +3257,8 @@
|
||||
|
||||
/**
|
||||
* Creates an array of elements split into two groups, the first of which
|
||||
* contains elements the predicate returns truthy for, while the second of which
|
||||
* contains elements the predicate returns falsey for. The predicate is bound
|
||||
* contains elements `predicate` returns truthy for, while the second of which
|
||||
* contains elements `predicate` returns falsey for. The predicate is bound
|
||||
* to `thisArg` and invoked with three arguments; (value, index|key, collection).
|
||||
*
|
||||
* If a property name is provided for `predicate` the created "_.pluck" style
|
||||
@@ -3356,7 +3389,7 @@
|
||||
|
||||
/**
|
||||
* The opposite of `_.filter`; this method returns the elements of `collection`
|
||||
* the predicate does **not** return truthy for.
|
||||
* that `predicate` does **not** return truthy for.
|
||||
*
|
||||
* If a property name is provided for `predicate` the created "_.pluck" style
|
||||
* callback returns the property value of the given element.
|
||||
@@ -3420,7 +3453,7 @@
|
||||
* // => [3, 1]
|
||||
*/
|
||||
function sample(collection, n, guard) {
|
||||
if (n == null || guard) {
|
||||
if (guard || n == null) {
|
||||
collection = toIterable(collection);
|
||||
var length = collection.length;
|
||||
return length > 0 ? collection[baseRandom(0, length - 1)] : undefined;
|
||||
@@ -3490,7 +3523,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the predicate returns truthy for **any** element of `collection`.
|
||||
* Checks if `predicate` returns truthy for **any** element of `collection`.
|
||||
* The function returns as soon as it finds a passing value and does not iterate
|
||||
* over the entire collection. The predicate is bound to `thisArg` and invoked
|
||||
* with three arguments; (value, index|key, collection).
|
||||
@@ -3511,7 +3544,7 @@
|
||||
* per iteration. If a property name or object is provided it is used to
|
||||
* create a "_.pluck" or "_.where" style callback respectively.
|
||||
* @param {*} [thisArg] The `this` binding of `predicate`.
|
||||
* @returns {boolean} Returns `true` if any element passed the predicate check,
|
||||
* @returns {boolean} Returns `true` if any element passes the predicate check,
|
||||
* else `false`.
|
||||
* @example
|
||||
*
|
||||
@@ -3589,10 +3622,15 @@
|
||||
* // = > [['barney', 26], ['barney', 36], ['fred', 30], ['fred', 40]]
|
||||
*/
|
||||
function sortBy(collection, iteratee, thisArg) {
|
||||
var index = -1,
|
||||
length = collection && collection.length,
|
||||
result = Array(length < 0 ? 0 : length >>> 0);
|
||||
iteratee = isIterateeCall(collection, iteratee, thisArg) ? null : iteratee;
|
||||
|
||||
var index = -1,
|
||||
length = collection ? collection.length : 0,
|
||||
result = [];
|
||||
|
||||
if (typeof length == 'number' && length > -1 && length <= MAX_SAFE_INTEGER) {
|
||||
result.length = length;
|
||||
}
|
||||
iteratee = baseCallback(iteratee, thisArg, 3);
|
||||
baseEach(collection, function(value, key, collection) {
|
||||
result[++index] = {
|
||||
@@ -4409,8 +4447,8 @@
|
||||
* // => false
|
||||
*/
|
||||
function isBoolean(value) {
|
||||
return (value === true || value === false ||
|
||||
value && typeof value == 'object' && toString.call(value) == boolClass) || false;
|
||||
return (value === true || value === false || value && typeof value == 'object' &&
|
||||
toString.call(value) == boolClass) || false;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -4746,8 +4784,7 @@
|
||||
*/
|
||||
function isNumber(value) {
|
||||
var type = typeof value;
|
||||
return type == 'number' ||
|
||||
(value && type == 'object' && toString.call(value) == numberClass) || false;
|
||||
return type == 'number' || (value && type == 'object' && toString.call(value) == numberClass) || false;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -4787,8 +4824,8 @@
|
||||
* // => false
|
||||
*/
|
||||
function isString(value) {
|
||||
return typeof value == 'string' ||
|
||||
(value && typeof value == 'object' && toString.call(value) == stringClass) || false;
|
||||
return typeof value == 'string' || (value && typeof value == 'object' &&
|
||||
toString.call(value) == stringClass) || false;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -4847,10 +4884,9 @@
|
||||
}
|
||||
var args = arguments,
|
||||
index = 0,
|
||||
length = args.length,
|
||||
type = typeof args[2];
|
||||
length = args.length;
|
||||
|
||||
if ((type == 'number' || type == 'string') && args[3] && args[3][args[2]] === args[1]) {
|
||||
if (isIterateeCall(args[1], args[2], args[3])) {
|
||||
length = 2;
|
||||
}
|
||||
while (++index < length) {
|
||||
@@ -4884,10 +4920,9 @@
|
||||
}
|
||||
var args = arguments,
|
||||
index = 0,
|
||||
length = args.length,
|
||||
type = typeof args[2];
|
||||
length = args.length;
|
||||
|
||||
if ((type == 'number' || type == 'string') && args[3] && args[3][args[2]] === args[1]) {
|
||||
if (isIterateeCall(args[1], args[2], args[3])) {
|
||||
length = 2;
|
||||
}
|
||||
while (++index < length) {
|
||||
@@ -4950,6 +4985,7 @@
|
||||
* @category Object
|
||||
* @param {Object} object The object to invert.
|
||||
* @param {boolean} [multiValue=false] Allow multiple values per key.
|
||||
* @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
|
||||
* @returns {Object} Returns the new inverted object.
|
||||
* @example
|
||||
*
|
||||
@@ -5035,8 +5071,8 @@
|
||||
/**
|
||||
* Creates a shallow clone of `object` excluding the specified properties.
|
||||
* Property names may be specified as individual arguments or as arrays of
|
||||
* property names. If a predicate is provided it is invoked for each property
|
||||
* of `object` omitting the properties the predicate returns truthy for. The
|
||||
* property names. If `predicate` is provided it is invoked for each property
|
||||
* of `object` omitting the properties `predicate` returns truthy for. The
|
||||
* predicate is bound to `thisArg` and invoked with three arguments;
|
||||
* (value, key, object).
|
||||
*
|
||||
@@ -5103,8 +5139,8 @@
|
||||
/**
|
||||
* Creates a shallow clone of `object` composed of the specified properties.
|
||||
* Property names may be specified as individual arguments or as arrays of
|
||||
* property names. If a predicate is provided it is invoked for each property
|
||||
* of `object` picking the properties the predicate returns truthy for. The
|
||||
* property names. If `predicate` is provided it is invoked for each property
|
||||
* of `object` picking the properties `predicate` returns truthy for. The
|
||||
* predicate is bound to `thisArg` and invoked with three arguments;
|
||||
* (value, key, object).
|
||||
*
|
||||
@@ -5312,6 +5348,9 @@
|
||||
var _ = lodash,
|
||||
settings = _.templateSettings;
|
||||
|
||||
if (isIterateeCall(string, options, otherOptions)) {
|
||||
options = otherOptions = null;
|
||||
}
|
||||
string = String(string == null ? '' : string);
|
||||
options = defaults({}, otherOptions || options, settings);
|
||||
|
||||
@@ -5428,6 +5467,7 @@
|
||||
* @category Utility
|
||||
* @param {*} [func=identity] The value to convert to a callback.
|
||||
* @param {*} [thisArg] The `this` binding of the created callback.
|
||||
* @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
|
||||
* @returns {Function} Returns the new function.
|
||||
* @example
|
||||
*
|
||||
@@ -5450,8 +5490,8 @@
|
||||
* _.filter(users, 'age__gt38');
|
||||
* // => [{ 'user': 'fred', 'age': 40 }]
|
||||
*/
|
||||
function callback(func, thisArg) {
|
||||
return baseCallback(func, thisArg);
|
||||
function callback(func, thisArg, guard) {
|
||||
return baseCallback(func, guard ? undefined : thisArg);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5702,7 +5742,8 @@
|
||||
* _.random(1.2, 5.2);
|
||||
* // => a floating-point number between 1.2 and 5.2
|
||||
*/
|
||||
function random(min, max) {
|
||||
function random(min, max, guard) {
|
||||
max = guard ? null : max;
|
||||
if (min == null && max == null) {
|
||||
max = 1;
|
||||
}
|
||||
@@ -5749,13 +5790,10 @@
|
||||
* // => []
|
||||
*/
|
||||
function range(start, end, step) {
|
||||
start = +start || 0;
|
||||
|
||||
// enables use as a callback for functions like `_.map`
|
||||
var type = typeof end;
|
||||
if ((type == 'number' || type == 'string') && step && step[end] === start) {
|
||||
if (step && isIterateeCall(start, end, step)) {
|
||||
end = step = null;
|
||||
}
|
||||
start = +start || 0;
|
||||
step = +step || 1;
|
||||
|
||||
if (end == null) {
|
||||
|
||||
84
dist/lodash.underscore.min.js
vendored
84
dist/lodash.underscore.min.js
vendored
@@ -3,45 +3,45 @@
|
||||
* Lo-Dash 3.0.0-pre (Custom Build) lodash.com/license | Underscore.js 1.7.0 underscorejs.org/LICENSE
|
||||
* Build: `lodash underscore -o ./dist/lodash.underscore.js`
|
||||
*/
|
||||
;(function(){function n(n,r){for(var t=-1,e=n.length;++t<e&&r(n[t],t,n)!==$r;);return n}function r(n,r){for(var t=-1,e=n.length;++t<e;)if(!r(n[t],t,n))return false;return true}function t(n,r){for(var t=-1,e=n.length,u=Array(e);++t<e;)u[t]=r(n[t],t,n);return u}function e(n,r){for(var t=-1,e=n.length,u=-1,o=[];++t<e;){var i=n[t];r(i,t,n)&&(o[++u]=i)}return o}function u(n,r,t,e){var u=-1,o=n.length;for(e&&o&&(t=n[++u]);++u<o;)t=r(t,n[u],u,n);return t}function o(n,r,t,e){var u=n.length;for(e&&u&&(t=n[--u]);u--;)t=r(t,n[u],u,n);
|
||||
return t}function i(n,r){for(var t=-1,e=n.length;++t<e;)if(r(n[t],t,n))return true;return false}function f(n,r,t){t=(t||0)-1;for(var e=n?n.length:0;++t<e;)if(n[t]===r)return t;return-1}function a(n){for(var r=-1,t=n?n.length:0,e=Array(t);++r<t;)e[r]=n[r];return e}function c(n,r){var t;n:{t=n.a;var e=r.a;if(t!==e){var u=t===t,o=e===e;if(t>e||!u||typeof t=="undefined"&&o){t=1;break n}if(t<e||!o||typeof e=="undefined"&&u){t=-1;break n}}t=0}return t||n.b-r.b}function l(n){return ut[n]}function p(n){return"\\"+ft[n]
|
||||
}function s(n){return ot[n]}function g(n){return n instanceof g?n:new h(n)}function h(n,r){this.__chain__=!!r,this.__wrapped__=n}function v(n,r,t){var e=typeof n;if("function"==e){if(typeof r=="undefined")return n;switch(t){case 1:return function(t){return n.call(r,t)};case 3:return function(t,e,u){return n.call(r,t,e,u)};case 4:return function(t,e,u,o){return n.call(r,t,e,u,o)};case 5:return function(t,e,u,o,i){return n.call(r,t,e,u,o,i)}}return function(){return n.apply(r,arguments)}}return null==n?kr:"object"==e?Sr(n):Fr(n)
|
||||
}function y(n){return mr(n)?Tt(n):{}}function m(n,r){var t=n?n.length:0;if(!t)return[];for(var e=-1,u=D(),o=[];++e<t;){var i=n[e];0>u(r,i)&&o.push(i)}return o}function b(n,r){var t=n?n.length:0;if(typeof t!="number"||-1>=t||t>Dr)return x(n,r,Ct);for(var e=-1,u=G(n);++e<t&&r(u[e],e,u)!==$r;);return n}function d(n,r){var t=n?n.length:0;if(typeof t!="number"||-1>=t||t>Dr){for(var t=G(n),e=Ct(n),u=e.length;u--;){var o=e[u];if(r(t[o],o,t)===$r)break}return n}for(e=G(n);t--&&r(e[t],t,e)!==$r;);return n
|
||||
}function _(n,r){var t=true;return b(n,function(n,e,u){return(t=!!r(n,e,u))||$r}),t}function j(n,r){var t=[];return b(n,function(n,e,u){r(n,e,u)&&t.push(n)}),t}function w(n,r,t){var e;return t(n,function(n,t,u){return r(n,t,u)?(e=n,$r):void 0}),e}function A(n,r,t,e){e=(e||0)-1;for(var u=n.length,o=-1,i=[];++e<u;){var f=n[e];if(f&&typeof f=="object"&&typeof f.length=="number"&&(zt(f)||hr(f))){r&&(f=A(f,r,t));var a=-1,c=f.length;for(i.length+=c;++a<c;)i[++o]=f[a]}else t||(i[++o]=f)}return i}function x(n,r,t){var e=-1,u=G(n);
|
||||
t=t(n);for(var o=t.length;++e<o;){var i=t[e];if(r(u[i],i,u)===$r)break}return n}function T(n,r){x(n,r,xr)}function E(n,r,t,e){if(n===r)return 0!==n||1/n==1/r;var u=typeof n,o=typeof r;if(n===n&&(null==n||null==r||"function"!=u&&"object"!=u&&"function"!=o&&"object"!=o))return false;if(o=bt.call(n),u=bt.call(r),o!=u)return false;switch(o){case Qr:case Xr:return+n==+r;case Zr:return n!=+n?r!=+r:0==n?1/n==1/r:n==+r;case rt:case tt:return n==r+""}if(u=et[o],!u){if(o!=nt)return false;var o=n instanceof g,i=r instanceof g;
|
||||
if(o||i)return E(o?n.__wrapped__:n,i?r.__wrapped__:r,t,e);if(o=yt.call(n,"constructor"),i=yt.call(r,"constructor"),o!=i||!o&&(o=n.constructor,i=r.constructor,o!=i&&"constructor"in n&&"constructor"in r&&!(typeof o=="function"&&o instanceof o&&typeof i=="function"&&i instanceof i)))return false}for(t||(t=[]),e||(e=[]),o=t.length;o--;)if(t[o]==n)return e[o]==r;if(t.push(n),e.push(r),u){if(o=n.length,i=o==r.length)for(;o--&&(i=E(n[o],r[o],t,e)););}else if(u=Ct(n),o=u.length,i=o==Ct(r).length)for(;o--&&(i=u[o],i=yt.call(r,i)&&E(n[i],r[i],t,e)););return t.pop(),e.pop(),i
|
||||
}function O(n,r,t){var e=-1,u=typeof r=="function",o=n?n.length:0,i=[];return typeof o=="number"&&-1<o&&o<=Dr&&(i.length=o),b(n,function(n){var o=u?r:null!=n&&n[r];i[++e]=o?o.apply(n,t):Mr}),i}function k(n,r){var t=[];return b(n,function(n,e,u){t.push(r(n,e,u))}),t}function S(n,r,t,e,u){return n&&St(n.length-t.length,0),r&Nr?W(n,r,u,t,e):W(n,r,u,null,null)}function I(n){return 0+jt(Mt()*(n-0+1))}function F(n,r,t,e,u){return u(n,function(n,u,o){t=e?(e=false,n):r(t,n,u,o)}),t}function M(n,r){var t;return b(n,function(n,e,u){return(t=r(n,e,u))&&$r
|
||||
}),!!t}function $(n,r){for(var t=-1,e=D(),u=n.length,o=[],i=r?[]:o;++t<u;){var f=n[t],a=r?r(f,t,n):f;0>e(i,a)&&(r&&i.push(a),o.push(f))}return o}function q(n,r){return function(t,e,u){e=v(e,u,3);var o=r?r():{};if(zt(t)){u=-1;for(var i=t.length;++u<i;){var f=t[u];n(o,f,e(f,u,t),t)}}else b(t,function(r,t,u){n(o,r,e(r,t,u),u)});return o}}function B(n,r){function t(){return(this instanceof t?e:n).apply(r,arguments)}var e=N(n);return t}function N(n){return function(){var r=y(n.prototype),t=n.apply(r,arguments);
|
||||
return mr(t)?t:r}}function R(n,r,t,e,u){function o(){for(var r=arguments.length,a=r,r=Array(r);a--;)r[a]=arguments[a];if(e){for(var a=r,r=u.length,c=-1,l=St(a.length-r,0),p=-1,s=e.length,g=Array(l+s);++p<s;)g[p]=e[p];for(;++c<r;)g[u[c]]=a[c];for(;l--;)g[p++]=a[c++];r=g}return(this instanceof o?f||N(n):n).apply(i?t:this,r)}var i=r&qr,f=!(r&Br)&&N(n);return o}function U(n,r,t,e){function u(){for(var r=-1,f=arguments.length,a=-1,c=t.length,l=Array(f+c);++a<c;)l[a]=t[a];for(;f--;)l[a++]=arguments[++r];
|
||||
return(this instanceof u?i:n).apply(o?e:this,l)}var o=r&qr,i=N(n);return u}function W(n,r,t,e,u){if(!yr(n))throw new TypeError(Rr);return r&Nr&&!e.length&&(r&=~Nr,e=u=null),r==qr?B(n,t):r!=Nr&&r!=(qr|Nr)||u.length?R(n,r,t,e,u):U(n,r,e,t)}function D(n,r){var t=g.indexOf||J,t=t===J?f:t;return n?t(n,r,void 0):t}function z(n,r){n=G(n);for(var t=-1,e=r.length,u={};++t<e;){var o=r[t];o in n&&(u[o]=n[o])}return u}function C(n,r){var t={};return T(n,function(n,e,u){r(n,e,u)&&(t[e]=n)}),t}function P(n){for(var r=-1,t=xr(n),e=t.length,u=[];++r<e;){var o=t[r];
|
||||
yt.call(n,o)&&u.push(o)}return u}function V(n){if(null==n)return[];var r=n.length;return typeof r=="number"&&-1<r&&r<=Dr?mr(n)?n:Object(n):Er(n)}function G(n){return mr(n)?n:Object(n)}function H(n,r,t){return null==r||t?n?n[0]:Mr:L(n,0,0>r?0:r)}function J(n,r,t){var e=n?n.length:0;if(typeof t=="number")t=0>t?St(e+t,0):t||0;else if(t)return t=Q(n,r),e&&n[t]===r?t:-1;return f(n,r,t)}function K(n,r,t){return L(n,null==r||t?1:0>r?0:r)}function L(n,r,t){var e=-1,u=n?n.length:0;if(r=null==r?0:+r||0,0>r&&(r=-r>u?0:u+r),t=typeof t=="undefined"||t>u?u:+t||0,0>t&&(t+=u),t&&t==u&&!r)return a(n);
|
||||
for(u=r>t?0:t-r,t=Array(u);++e<u;)t[e]=n[e+r];return t}function Q(n,r,t,e){t=null==t?kr:v(t,e,1),e=0;var u=n?n.length:e;r=t(r);for(var o=r!==r,i=typeof r=="undefined";e<u;){var f=jt((e+u)/2),a=t(n[f]),c=a===a;(o?c:i?c&&typeof a!="undefined":a<r)?e=f+1:u=f}return It(u,Wr)}function X(n,r,t,e){if(!n||!n.length)return[];var u=typeof r;if("boolean"!=u&&null!=r&&(e=t,t=r,r=false,"number"!=u&&"string"!=u||!e||e[t]!==n||(t=null)),null!=t&&(t=v(t,e,3)),r&&D()==f){r=t;var o;t=-1,e=n.length;for(var u=-1,i=[];++t<e;){var a=n[t],c=r?r(a,t,n):a;
|
||||
t&&o===c||(o=c,i[++u]=a)}n=i}else n=$(n,t);return n}function Y(n){return n=g(n),n.__chain__=true,n}function Z(n,r){var t=n?n.length:0;return typeof t=="number"&&-1<t&&t<=Dr||(n=Er(n)),-1<D(n,r)}function nr(n,t,e){var u=zt(n)?r:_;return(typeof t!="function"||typeof e!="undefined")&&(t=v(t,e,3)),u(n,t)}function rr(n,r,t){var u=zt(n)?e:j;return r=v(r,t,3),u(n,r)}function tr(n,r,t){if(zt(n)){var e;n:{e=-1;var u=n?n.length:0;for(r=v(r,t,3);++e<u;)if(r(n[e],e,n))break n;e=-1}return-1<e?n[e]:Mr}return r=v(r,t,3),w(n,r,b)
|
||||
}function er(r,t,e){return typeof t=="function"&&typeof e=="undefined"&&zt(r)?n(r,t):b(r,v(t,e,3))}function ur(n,r,e){return r=v(r,e,3),(zt(n)?t:k)(n,r)}function or(n,r,t){var e=-1/0,u=e,o=typeof r;if("number"!=o&&"string"!=o||!t||t[r]!==n||(r=null),null==r)for(t=-1,n=V(n),o=n.length;++t<o;){var i=n[t];i>u&&(u=i)}else r=v(r,t,3),b(n,function(n,t,o){t=r(n,t,o),(t>e||-1/0===t&&t===u)&&(e=t,u=n)});return u}function ir(n,r){return ur(n,Fr(r))}function fr(n,r,t,e){return(zt(n)?u:F)(n,v(r,e,4),t,3>arguments.length,b)
|
||||
}function ar(n,r,t,e){return(zt(n)?o:F)(n,v(r,e,4),t,3>arguments.length,d)}function cr(n){n=V(n);for(var r=-1,t=n.length,e=Array(t);++r<t;){var u=I(r);r!=u&&(e[r]=e[u]),e[u]=n[r]}return e}function lr(n,r,t){var e=zt(n)?i:M;return(typeof r!="function"||typeof t!="undefined")&&(r=v(r,t,3)),e(n,r)}function pr(n,r){var t;if(!yr(r)){if(!yr(n))throw new TypeError(Rr);var e=n;n=r,r=e}return function(){return 0<--n?t=r.apply(this,arguments):r=null,t}}function sr(n,r,t){function e(){var t=r-(Pt()-c);0>=t||t>r?(f&&clearTimeout(f),t=s,f=p=s=Mr,t&&(g=Pt(),a=n.apply(l,i),p||f||(i=l=null))):p=setTimeout(e,t)
|
||||
}function u(){p&&clearTimeout(p),f=p=s=Mr,(v||h!==r)&&(g=Pt(),a=n.apply(l,i),p||f||(i=l=null))}function o(){if(i=arguments,c=Pt(),l=this,s=v&&(p||!y),false===h)var t=y&&!p;else{f||y||(g=c);var o=h-(c-g),m=0>=o||o>h;m?(f&&(f=clearTimeout(f)),g=c,a=n.apply(l,i)):f||(f=setTimeout(u,o))}return m&&p?p=clearTimeout(p):p||r===h||(p=setTimeout(e,r)),t&&(m=true,a=n.apply(l,i)),!m||p||f||(i=l=null),a}var i,f,a,c,l,p,s,g=0,h=false,v=true;if(!yr(n))throw new TypeError(Rr);if(r=0>r?0:r,true===t)var y=true,v=false;else mr(t)&&(y=t.leading,h="maxWait"in t&&St(+t.maxWait||0,r),v="trailing"in t?t.trailing:v);
|
||||
return o.cancel=function(){p&&clearTimeout(p),f&&clearTimeout(f),f=p=s=Mr},o}function gr(n){for(var r=L(arguments,1),t=r,e=gr.placeholder,u=-1,o=t.length,i=-1,f=[];++u<o;)t[u]===e&&(t[u]=zr,f[++i]=u);return S(n,Nr,r,f)}function hr(n){var r=n&&typeof n=="object"?n.length:Mr;return typeof r=="number"&&-1<r&&r<=Dr&&bt.call(n)==Lr||false}function vr(n){return n&&typeof n=="object"&&bt.call(n)==Yr||false}function yr(n){return typeof n=="function"||false}function mr(n){var r=typeof n;return"function"==r||n&&"object"==r||false
|
||||
}function br(n){return yr(n)?dt.test(vt.call(n)):n&&typeof n=="object"&&Gr.test(n)||false}function dr(n){var r=typeof n;return"number"==r||n&&"object"==r&&bt.call(n)==Zr||false}function _r(n){return typeof n=="string"||n&&typeof n=="object"&&bt.call(n)==tt||false}function jr(n){if(null==n)return n;var r=arguments,t=0,e=r.length,u=typeof r[2];for("number"!=u&&"string"!=u||!r[3]||r[3][r[2]]!==r[1]||(e=2);++t<e;)for(var u=n,o=r[t],i=-1,f=Ct(o),a=f.length;++i<a;){var c=f[i];u[c]=o[c]}return n}function wr(n){if(null==n)return n;
|
||||
var r=arguments,t=0,e=r.length,u=typeof r[2];for("number"!=u&&"string"!=u||!r[3]||r[3][r[2]]!==r[1]||(e=2);++t<e;){var o,u=r[t];for(o in u)"undefined"==typeof n[o]&&(n[o]=u[o])}return n}function Ar(n){for(var r=xr(n),t=-1,e=r.length,u=-1,o=[];++t<e;){var i=r[t];yr(n[i])&&(o[++u]=i)}return o}function xr(n){var r=[];if(!mr(n))return r;for(var t in n)r.push(t);return r}function Tr(n){for(var r=-1,t=Ct(n),e=t.length,u=Array(e);++r<e;){var o=t[r];u[r]=[o,n[o]]}return u}function Er(n){for(var r=-1,t=Ct(n),e=t.length,u=Array(e);++r<e;)u[r]=n[t[r]];
|
||||
return u}function Or(n){try{return n()}catch(r){return vr(r)?r:Error(r)}}function kr(n){return n}function Sr(n){var r=Tr(n),t=r.length;return function(n){var e=t;if(null==n)return!e;for(;e--;){var u=r[e];if(n[u[0]]!==u[1])return false}for(e=t;e--;)if(!yt.call(n,r[e][0]))return false;return true}}function Ir(n){for(var r=-1,t=Ar(n),e=t.length;++r<e;){var u=t[r];g.prototype[u]=function(){var r=g[u]=n[u];return function(){var n=[this.__wrapped__];return wt.apply(n,arguments),n=r.apply(g,n),this.__chain__?new h(n,true):n
|
||||
}}()}}function Fr(n){return function(r){return null==r?Mr:r[n]}}var Mr,$r="__lodash_breaker__",qr=1,Br=2,Nr=32,Rr="Expected a function",Ur=Math.pow(2,32)-1,Wr=Ur-1,Dr=Math.pow(2,53)-1,zr="__lodash_placeholder__",Cr=0,Pr=/&(?:amp|lt|gt|quot|#x27|#96);/g,Vr=/[&<>"'`]/g,Gr=/^\[object .+?Constructor\]$/,Hr=/($^)/,Jr=/[.*+?^${}()|[\]\/\\]/g,Kr=/['\n\r\u2028\u2029\\]/g,Lr="[object Arguments]",Qr="[object Boolean]",Xr="[object Date]",Yr="[object Error]",Zr="[object Number]",nt="[object Object]",rt="[object RegExp]",tt="[object String]",et={};
|
||||
et[Lr]=et["[object Array]"]=et["[object Float32Array]"]=et["[object Float64Array]"]=et["[object Int8Array]"]=et["[object Int16Array]"]=et["[object Int32Array]"]=et["[object Uint8Array]"]=et["[object Uint8ClampedArray]"]=et["[object Uint16Array]"]=et["[object Uint32Array]"]=true,et["[object ArrayBuffer]"]=et[Qr]=et[Xr]=et[Yr]=et["[object Function]"]=et["[object Map]"]=et[Zr]=et[nt]=et[rt]=et["[object Set]"]=et[tt]=et["[object WeakMap]"]=false;var ut={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},ot={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},it={"function":true,object:true},ft={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},at=it[typeof window]&&window||this,ct=it[typeof exports]&&exports&&!exports.nodeType&&exports,lt=it[typeof module]&&module&&!module.nodeType&&module,pt=ct&<&&typeof global=="object"&&global;
|
||||
!pt||pt.global!==pt&&pt.window!==pt&&pt.self!==pt||(at=pt);var st=lt&<.exports===ct&&ct,gt=Array.prototype,ht=Object.prototype,vt=Function.prototype.toString,yt=ht.hasOwnProperty,mt=at._,bt=ht.toString,dt=RegExp("^"+function(n){return(n=null==n?"":n+"")&&(Jr.lastIndex=0,Jr.test(n))?n.replace(Jr,"\\$&"):n}(bt).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=Math.ceil,jt=Math.floor,wt=gt.push,At=ht.propertyIsEnumerable,xt=gt.splice,Tt=br(Tt=Object.create)&&Tt,Et=br(Et=Array.isArray)&&Et,Ot=at.isFinite,kt=br(kt=Object.keys)&&kt,St=Math.max,It=Math.min,Ft=br(Ft=Date.now)&&Ft,Mt=Math.random,$t={};
|
||||
!function(){var n={0:1,length:1};$t.spliceObjects=(xt.call(n,0,1),!n[0])}(0,0),g.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:""},Tt||(y=function(){function n(){}return function(r){if(mr(r)){n.prototype=r;var t=new n;n.prototype=null}return t||at.Object()}}());var qt=K,Bt=H,Nt=q(function(n,r,t){yt.call(n,t)?++n[t]:n[t]=1}),Rt=q(function(n,r,t){yt.call(n,t)?n[t].push(r):n[t]=[r]}),Ut=q(function(n,r,t){n[t]=r}),Wt=q(function(n,r,t){n[t?0:1].push(r)
|
||||
},function(){return[[],[]]}),Dt=gr(pr,2);hr(arguments)||(hr=function(n){var r=n&&typeof n=="object"?n.length:Mr;return typeof r=="number"&&-1<r&&r<=Dr&&yt.call(n,"callee")&&!At.call(n,"callee")||false});var zt=Et||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&"[object Array]"==bt.call(n)||false};yr(/x/)&&(yr=function(n){return typeof n=="function"&&"[object Function]"==bt.call(n)});var Ct=kt?function(n){return mr(n)?kt(n):[]}:P,Pt=Ft||function(){return(new Date).getTime()};g.after=function(n,r){if(!yr(r)){if(!yr(n))throw new TypeError(Rr);
|
||||
var t=n;n=r,r=t}return n=Ot(n=+n)?n:0,function(){return 1>--n?r.apply(this,arguments):void 0}},g.before=pr,g.bind=function(n,r){return 3>arguments.length?W(n,qr,r):S(n,qr|Nr,L(arguments,2),[],r)},g.bindAll=function(n){for(var r=n,t=1<arguments.length?A(arguments,false,false,1):Ar(n),e=-1,u=t.length;++e<u;){var o=t[e];r[o]=W(r[o],qr,r)}return r},g.chain=Y,g.compact=function(n){for(var r=-1,t=n?n.length:0,e=-1,u=[];++r<t;){var o=n[r];o&&(u[++e]=o)}return u},g.constant=function(n){return function(){return n
|
||||
}},g.countBy=Nt,g.debounce=sr,g.defaults=wr,g.defer=function(n){if(!yr(n))throw new TypeError(Rr);var r=L(arguments,1);return setTimeout(function(){n.apply(Mr,r)},1)},g.delay=function(n,r){if(!yr(n))throw new TypeError(Rr);var t=L(arguments,2);return setTimeout(function(){n.apply(Mr,t)},r)},g.difference=function(){for(var n=-1,r=arguments.length;++n<r;){var t=arguments[n];if(zt(t)||hr(t))break}return m(arguments[n],A(arguments,false,true,++n))},g.drop=qt,g.filter=rr,g.flatten=function(n,r,t){if(!n||!n.length)return[];
|
||||
var e=typeof r;return"number"!=e&&"string"!=e||!t||t[r]!==n||(r=false),A(n,!r)},g.forEach=er,g.functions=Ar,g.groupBy=Rt,g.indexBy=Ut,g.initial=function(n,r,t){var e=n?n.length:0;return(null==r||t)&&(r=1),r=e-(r||0),L(n,0,0>r?0:r)},g.intersection=function(){for(var n=[],r=-1,t=arguments.length;++r<t;){var e=arguments[r];(zt(e)||hr(e))&&n.push(e)}var t=n.length,u=n[0],o=-1,i=D(),f=u?u.length:0,a=[];n:for(;++o<f;)if(e=u[o],0>i(a,e)){for(r=t;--r;)if(0>i(n[r],e))continue n;a.push(e)}return a},g.invert=function(n){for(var r=-1,t=Ct(n),e=t.length,u={};++r<e;){var o=t[r];
|
||||
u[n[o]]=o}return u},g.invoke=function(n,r){return O(n,r,L(arguments,2))},g.keys=Ct,g.map=ur,g.matches=Sr,g.memoize=function(n,r){function t(){var e=r?r.apply(this,arguments):arguments[0];if("__proto__"==e)return n.apply(this,arguments);var u=t.cache;return yt.call(u,e)?u[e]:u[e]=n.apply(this,arguments)}if(!yr(n)||r&&!yr(r))throw new TypeError(Rr);return t.cache={},t},g.mixin=Ir,g.negate=function(n){if(!yr(n))throw new TypeError(Rr);return function(){return!n.apply(this,arguments)}},g.omit=function(n,r,e){if(null==n)return{};
|
||||
if(typeof r!="function"){var u=t(A(arguments,false,false,1),String);return z(n,m(xr(n),u))}return r=v(r,e,3),C(n,function(n,t,e){return!r(n,t,e)})},g.once=Dt,g.pairs=Tr,g.partial=gr,g.partition=Wt,g.pick=function(n,r,t){return null==n?{}:typeof r=="function"?C(n,v(r,t,3)):z(n,A(arguments,false,false,1))},g.pluck=ir,g.property=Fr,g.range=function(n,r,t){n=+n||0;var e=typeof r;"number"!=e&&"string"!=e||!t||t[r]!==n||(r=t=null),t=+t||1,null==r?(r=n,n=0):r=+r||0,e=-1,r=St(_t((r-n)/(t||1)),0);for(var u=Array(r);++e<r;)u[e]=n,n+=t;
|
||||
return u},g.reject=function(n,r,t){var u=zt(n)?e:j;return r=v(r,t,3),u(n,function(n,t,e){return!r(n,t,e)})},g.rest=K,g.shuffle=cr,g.sortBy=function(n,r,t){var e=-1,u=n&&n.length,o=Array(0>u?0:u>>>0);for(r=v(r,t,3),b(n,function(n,t,u){o[++e]={a:r(n,t,u),b:e,c:n}}),u=o.length,o.sort(c);u--;)o[u]=o[u].c;return o},g.take=Bt,g.tap=function(n,r){return r(n),n},g.throttle=function(n,r,t){var e=true,u=true;if(!yr(n))throw new TypeError(funcErrorText);return false===t?e=false:mr(t)&&(e="leading"in t?t.leading:e,u="trailing"in t?t.trailing:u),sr(n,r,{leading:e,maxWait:r,trailing:u})
|
||||
},g.times=function(n,r,t){n=Ot(n=+n)&&-1<n?n:0,r=v(r,t,1),t=-1;for(var e=Array(It(n,Ur));++t<n;)t<Ur?e[t]=r(t):r(t);return e},g.toArray=function(n){var r=n?n.length:0;return typeof r=="number"&&-1<r&&r<=Dr?a(n):Er(n)},g.union=function(){return $(A(arguments,false,true))},g.uniq=X,g.values=Er,g.where=function(n,r){return rr(n,Sr(r))},g.without=function(n){return m(n,L(arguments,1))},g.wrap=function(n,r){return S(r,Nr,[n],[])},g.zip=function(){for(var n=arguments.length,r=Array(n);n--;)r[n]=arguments[n];
|
||||
for(var n=-1,t=mr(t=or(r,"length"))&&t.length||0,e=Array(t);++n<t;)e[n]=ir(r,n);return e},g.collect=ur,g.compose=function(){var n=arguments,t=n.length-1;if(0>t)return function(){};if(!r(n,yr))throw new TypeError(Rr);return function(){for(var r=t,e=n[r].apply(this,arguments);r--;)e=n[r].call(this,e);return e}},g.each=er,g.extend=jr,g.iteratee=function(n,r){return v(n,r)},g.methods=Ar,g.object=function(n,r){var t=-1,e=n?n.length:0,u={};for(r||!e||zt(n[0])||(r=[]);++t<e;){var o=n[t];r?u[o]=r[t]:o&&(u[o[0]]=o[1])
|
||||
}return u},g.select=rr,g.tail=K,g.unique=X,g.clone=function(n){return mr(n)?zt(n)?a(n):jr({},n):n},g.contains=Z,g.escape=function(n){return(n=null==n?"":n+"")&&(Vr.lastIndex=0,Vr.test(n))?n.replace(Vr,l):n},g.every=nr,g.find=tr,g.findWhere=function(n,r){return tr(n,Sr(r))},g.first=H,g.has=function(n,r){return n?yt.call(n,r):false},g.identity=kr,g.indexOf=J,g.isArguments=hr,g.isArray=zt,g.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&bt.call(n)==Qr||false},g.isDate=function(n){return n&&typeof n=="object"&&bt.call(n)==Xr||false
|
||||
},g.isElement=function(n){return n&&1===n.nodeType||false},g.isEmpty=function(n){if(null==n)return true;var r=n.length;return typeof r=="number"&&-1<r&&r<=Dr&&(zt(n)||_r(n)||hr(n))?!r:!Ct(n).length},g.isEqual=function(n,r){return E(n,r)},g.isFinite=function(n){return n=parseFloat(Ot(n)&&n),n==n},g.isFunction=yr,g.isNaN=function(n){return dr(n)&&n!=+n},g.isNull=function(n){return null===n},g.isNumber=dr,g.isObject=mr,g.isRegExp=function(n){return mr(n)&&bt.call(n)==rt||false},g.isString=_r,g.isUndefined=function(n){return typeof n=="undefined"
|
||||
},g.last=function(n,r,t){var e=n?n.length:0;return null==r||t?n?n[e-1]:Mr:(r=e-(r||0),L(n,0>r?0:r))},g.lastIndexOf=function(n,r,t){var e=n?n.length:0;for(typeof t=="number"&&(e=(0>t?St(e+t,0):It(t||0,e-1))+1);e--;)if(n[e]===r)return e;return-1},g.max=or,g.min=function(n,r,t){var e=1/0,u=e,o=typeof r;if("number"!=o&&"string"!=o||!t||t[r]!==n||(r=null),null==r)for(t=-1,n=V(n),o=n.length;++t<o;){var i=n[t];i<u&&(u=i)}else r=v(r,t,3),b(n,function(n,t,o){t=r(n,t,o),(t<e||1/0===t&&t===u)&&(e=t,u=n)});return u
|
||||
},g.noConflict=function(){return at._=mt,this},g.noop=function(){},g.now=Pt,g.random=function(n,r){return null==n&&null==r&&(r=1),n=+n||0,null==r?(r=n,n=0):r=+r||0,n+jt(Mt()*(r-n+1))},g.reduce=fr,g.reduceRight=ar,g.result=function(n,r){if(null!=n){var t=n[r];return yr(t)?n[r]():t}},g.size=function(n){var r=n?n.length:0;return typeof r=="number"&&-1<r&&r<=Dr?r:Ct(n).length},g.some=lr,g.sortedIndex=Q,g.template=function(n,r,t){var e=g,u=e.templateSettings;n=(null==n?"":n)+"",r=wr({},t||r,u);var o=0,i="__p+='";
|
||||
if(t=r.variable,n.replace(RegExp((r.escape||Hr).source+"|"+(r.interpolate||Hr).source+"|"+(r.evaluate||Hr).source+"|$","g"),function(r,t,e,u,f){return i+=n.slice(o,f).replace(Kr,p),t&&(i+="'+_.escape("+t+")+'"),u&&(i+="';"+u+";\n__p+='"),e&&(i+="'+((__t=("+e+"))==null?'':__t)+'"),o=f+r.length,r}),i+="';",t||(i="with(obj||{}){"+i+"}"),i="function("+(t||"obj")+"){var __t,__p='',__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}"+i+"return __p}",r=Or(function(){return Function("_","return "+i)(e)
|
||||
}),r.source=i,vr(r))throw r;return r},g.unescape=function(n){return(n=null==n?"":n+"")&&(Pr.lastIndex=0,Pr.test(n))?n.replace(Pr,s):n},g.uniqueId=function(n){var r=++Cr+"";return n?n+r:r},g.all=nr,g.any=lr,g.detect=tr,g.foldl=fr,g.foldr=ar,g.head=H,g.include=Z,g.inject=fr,g.sample=function(n,r,t){return null==r||t?(n=V(n),r=n.length,0<r?n[I(r-1)]:Mr):(n=cr(n),n.length=It(0>r?0:+r||0,n.length),n)},Ir(jr({},g)),g.VERSION="3.0.0-pre",h.prototype=g.prototype,g.prototype.chain=function(){return Y(this)
|
||||
},g.prototype.value=function(){return this.__wrapped__},gr.placeholder=g,n("concat join pop push reverse shift sort splice unshift".split(" "),function(n){var r=gt[n],t=!/^(?:concat|join|slice)$/.test(n),e=!$t.spliceObjects&&/^(?:pop|shift|splice)$/.test(n);g.prototype[n]=function(){var n=this.__wrapped__,u=r.apply(n,arguments);return e&&0===n.length&&delete n[0],t&&(u=n),this.__chain__?new h(u,true):u}}),typeof define=="function"&&typeof define.amd=="object"&&define.amd?(at._=g, define("underscore",function(){return g
|
||||
})):ct&<?st?(lt.exports=g)._=g:ct._=g:at._=g}).call(this);
|
||||
;(function(){function n(n,r){for(var t=-1,e=n.length;++t<e&&r(n[t],t,n)!==Br;);return n}function r(n,r){for(var t=-1,e=n.length;++t<e;)if(!r(n[t],t,n))return false;return true}function t(n,r){for(var t=-1,e=n.length,u=Array(e);++t<e;)u[t]=r(n[t],t,n);return u}function e(n,r){for(var t=-1,e=n.length,u=-1,o=[];++t<e;){var i=n[t];r(i,t,n)&&(o[++u]=i)}return o}function u(n,r,t,e){var u=-1,o=n.length;for(e&&o&&(t=n[++u]);++u<o;)t=r(t,n[u],u,n);return t}function o(n,r,t,e){var u=n.length;for(e&&u&&(t=n[--u]);u--;)t=r(t,n[u],u,n);
|
||||
return t}function i(n,r){for(var t=-1,e=n.length;++t<e;)if(r(n[t],t,n))return true;return false}function f(n,r,t){if(r!==r)return s(n,t);t=(t||0)-1;for(var e=n.length;++t<e;)if(n[t]===r)return t;return-1}function a(n){for(var r=-1,t=n?n.length:0,e=Array(t);++r<t;)e[r]=n[r];return e}function c(n,r){var t;n:{t=n.a;var e=r.a;if(t!==e){var u=t===t,o=e===e;if(t>e||!u||typeof t=="undefined"&&o){t=1;break n}if(t<e||!o||typeof e=="undefined"&&u){t=-1;break n}}t=0}return t||n.b-r.b}function l(n){return it[n]}function p(n){return"\\"+ct[n]
|
||||
}function s(n,r,t){var e=n.length;for(r=t?r||e:(r||0)-1;t?r--:++r<e;){var u=n[r];if(u!==u)return r}return-1}function h(n,r,t){var e=typeof r,u=typeof t;return t&&("number"==e||"string"==e)&&("function"==u||"object"==u)&&t[r]===n||false}function g(n){return ft[n]}function v(n){return n instanceof v?n:new y(n)}function y(n,r){this.__chain__=!!r,this.__wrapped__=n}function m(n,r,t){var e=typeof n;if("function"==e){if(typeof r=="undefined")return n;switch(t){case 1:return function(t){return n.call(r,t)};
|
||||
case 3:return function(t,e,u){return n.call(r,t,e,u)};case 4:return function(t,e,u,o){return n.call(r,t,e,u,o)};case 5:return function(t,e,u,o,i){return n.call(r,t,e,u,o,i)}}return function(){return n.apply(r,arguments)}}return null==n?Ir:"object"==e?Fr(n):$r(n)}function b(n){return dr(n)?Ot(n):{}}function d(n,r){var t=n?n.length:0;if(!t)return[];for(var e=-1,u=C(),o=[];++e<t;){var i=n[e];0>u(r,i)&&o.push(i)}return o}function _(n,r){var t=n?n.length:0;if(typeof t!="number"||-1>=t||t>Cr)return E(n,r,Vt);
|
||||
for(var e=-1,u=J(n);++e<t&&r(u[e],e,u)!==Br;);return n}function j(n,r){var t=n?n.length:0;if(typeof t!="number"||-1>=t||t>Cr){for(var t=J(n),e=Vt(n),u=e.length;u--;){var o=e[u];if(r(t[o],o,t)===Br)break}return n}for(e=J(n);t--&&r(e[t],t,e)!==Br;);return n}function w(n,r){var t=true;return _(n,function(n,e,u){return(t=!!r(n,e,u))||Br}),t}function A(n,r){var t=[];return _(n,function(n,e,u){r(n,e,u)&&t.push(n)}),t}function x(n,r,t){var e;return t(n,function(n,t,u){return r(n,t,u)?(e=n,Br):void 0}),e}function T(n,r,t,e){e=(e||0)-1;
|
||||
for(var u=n.length,o=-1,i=[];++e<u;){var f=n[e];if(f&&typeof f=="object"&&typeof f.length=="number"&&(Pt(f)||yr(f))){r&&(f=T(f,r,t));var a=-1,c=f.length;for(i.length+=c;++a<c;)i[++o]=f[a]}else t||(i[++o]=f)}return i}function E(n,r,t){var e=-1,u=J(n);t=t(n);for(var o=t.length;++e<o;){var i=t[e];if(r(u[i],i,u)===Br)break}return n}function O(n,r){E(n,r,Er)}function k(n,r,t,e){if(n===r)return 0!==n||1/n==1/r;var u=typeof n,o=typeof r;if(n===n&&(null==n||null==r||"function"!=u&&"object"!=u&&"function"!=o&&"object"!=o))return false;
|
||||
if(o=_t.call(n),u=_t.call(r),o!=u)return false;switch(o){case Yr:case Zr:return+n==+r;case rt:return n!=+n?r!=+r:0==n?1/n==1/r:n==+r;case et:case ut:return n==r+""}if(u=ot[o],!u){if(o!=tt)return false;var o=n instanceof v,i=r instanceof v;if(o||i)return k(o?n.__wrapped__:n,i?r.__wrapped__:r,t,e);if(o=bt.call(n,"constructor"),i=bt.call(r,"constructor"),o!=i||!o&&(o=n.constructor,i=r.constructor,o!=i&&"constructor"in n&&"constructor"in r&&!(typeof o=="function"&&o instanceof o&&typeof i=="function"&&i instanceof i)))return false
|
||||
}for(t||(t=[]),e||(e=[]),o=t.length;o--;)if(t[o]==n)return e[o]==r;if(t.push(n),e.push(r),u){if(o=n.length,i=o==r.length)for(;o--&&(i=k(n[o],r[o],t,e)););}else if(u=Vt(n),o=u.length,i=o==Vt(r).length)for(;o--&&(i=u[o],i=bt.call(r,i)&&k(n[i],r[i],t,e)););return t.pop(),e.pop(),i}function S(n,r,t){var e=-1,u=typeof r=="function",o=n?n.length:0,i=[];return typeof o=="number"&&-1<o&&o<=Cr&&(i.length=o),_(n,function(n){var o=u?r:null!=n&&n[r];i[++e]=o?o.apply(n,t):qr}),i}function I(n,r){var t=[];return _(n,function(n,e,u){t.push(r(n,e,u))
|
||||
}),t}function F(n,r,t,e,u){return n&&Ft(n.length-t.length,0),r&Ur?z(n,r,u,t,e):z(n,r,u,null,null)}function M(n){return 0+At(qt()*(n-0+1))}function $(n,r,t,e,u){return u(n,function(n,u,o){t=e?(e=false,n):r(t,n,u,o)}),t}function q(n,r){var t;return _(n,function(n,e,u){return(t=r(n,e,u))&&Br}),!!t}function B(n,r){for(var t=-1,e=C(),u=n.length,o=[],i=r?[]:o;++t<u;){var f=n[t],a=r?r(f,t,n):f;0>e(i,a)&&(r&&i.push(a),o.push(f))}return o}function N(n,r){return function(t,e,u){e=m(e,u,3);var o=r?r():{};if(Pt(t)){u=-1;
|
||||
for(var i=t.length;++u<i;){var f=t[u];n(o,f,e(f,u,t),t)}}else _(t,function(r,t,u){n(o,r,e(r,t,u),u)});return o}}function R(n,r){function t(){return(this instanceof t?e:n).apply(r,arguments)}var e=U(n);return t}function U(n){return function(){var r=b(n.prototype),t=n.apply(r,arguments);return dr(t)?t:r}}function W(n,r,t,e,u){function o(){for(var r=arguments.length,a=r,r=Array(r);a--;)r[a]=arguments[a];if(e){for(var a=r,r=u.length,c=-1,l=Ft(a.length-r,0),p=-1,s=e.length,h=Array(l+s);++p<s;)h[p]=e[p];
|
||||
for(;++c<r;)h[u[c]]=a[c];for(;l--;)h[p++]=a[c++];r=h}return(this instanceof o?f||U(n):n).apply(i?t:this,r)}var i=r&Nr,f=!(r&Rr)&&U(n);return o}function D(n,r,t,e){function u(){for(var r=-1,f=arguments.length,a=-1,c=t.length,l=Array(f+c);++a<c;)l[a]=t[a];for(;f--;)l[a++]=arguments[++r];return(this instanceof u?i:n).apply(o?e:this,l)}var o=r&Nr,i=U(n);return u}function z(n,r,t,e,u){if(!br(n))throw new TypeError(Wr);return r&Ur&&!e.length&&(r&=~Ur,e=u=null),r==Nr?R(n,t):r!=Ur&&r!=(Nr|Ur)||u.length?W(n,r,t,e,u):D(n,r,e,t)
|
||||
}function C(n,r){var t=v.indexOf||L,t=t===L?f:t;return n?t(n,r,void 0):t}function P(n,r){n=J(n);for(var t=-1,e=r.length,u={};++t<e;){var o=r[t];o in n&&(u[o]=n[o])}return u}function V(n,r){var t={};return O(n,function(n,e,u){r(n,e,u)&&(t[e]=n)}),t}function G(n){for(var r=-1,t=Er(n),e=t.length,u=[];++r<e;){var o=t[r];bt.call(n,o)&&u.push(o)}return u}function H(n){if(null==n)return[];var r=n.length;return typeof r=="number"&&-1<r&&r<=Cr?dr(n)?n:Object(n):kr(n)}function J(n){return dr(n)?n:Object(n)}function K(n,r,t){return null==r||t?n?n[0]:qr:X(n,0,0>r?0:r)
|
||||
}function L(n,r,t){var e=n?n.length:0;if(!e)return-1;if(typeof t=="number")t=0>t?Ft(e+t,0):t||0;else if(t)return t=Y(n,r),n[t]===r?t:-1;return f(n,r,t)}function Q(n,r,t){return X(n,null==r||t?1:0>r?0:r)}function X(n,r,t){var e=-1,u=n?n.length:0,o=typeof t;if(t&&"number"!=o&&h(n,r,t)&&(r=0,t=u),r=null==r?0:+r||0,0>r&&(r=-r>u?0:u+r),t="undefined"==o||t>u?u:+t||0,0>t&&(t+=u),t&&t==u&&!r)return a(n);for(u=r>t?0:t-r,t=Array(u);++e<u;)t[e]=n[e+r];return t}function Y(n,r,t,e){t=null==t?Ir:m(t,e,1),e=0;var u=n?n.length:e;
|
||||
r=t(r);for(var o=r!==r,i=typeof r=="undefined";e<u;){var f=At((e+u)/2),a=t(n[f]),c=a===a;(o?c:i?c&&typeof a!="undefined":a<r)?e=f+1:u=f}return Mt(u,zr)}function Z(n,r,t,e){if(!n||!n.length)return[];if(typeof r!="boolean"&&null!=r&&(e=t,t=h(n,r,e)?null:r,r=false),null!=t&&(t=m(t,e,3)),r&&C()==f){r=t;var u;t=-1,e=n.length;for(var o=-1,i=[];++t<e;){var a=n[t],c=r?r(a,t,n):a;t&&u===c||(u=c,i[++o]=a)}n=i}else n=B(n,t);return n}function nr(n){return n=v(n),n.__chain__=true,n}function rr(n,r){var t=n?n.length:0;
|
||||
return typeof t=="number"&&-1<t&&t<=Cr||(n=kr(n),t=n.length),t?-1<C(n,r):false}function tr(n,t,e){var u=Pt(n)?r:w;return(typeof t!="function"||typeof e!="undefined")&&(t=m(t,e,3)),u(n,t)}function er(n,r,t){var u=Pt(n)?e:A;return r=m(r,t,3),u(n,r)}function ur(n,r,t){if(Pt(n)){var e;n:{e=-1;var u=n?n.length:0;for(r=m(r,t,3);++e<u;)if(r(n[e],e,n))break n;e=-1}return-1<e?n[e]:qr}return r=m(r,t,3),x(n,r,_)}function or(r,t,e){return typeof t=="function"&&typeof e=="undefined"&&Pt(r)?n(r,t):_(r,m(t,e,3))}function ir(n,r,e){return r=m(r,e,3),(Pt(n)?t:I)(n,r)
|
||||
}function fr(n,r,t){r=h(n,r,t)?null:r;var e=-1/0,u=e;if(null==r){t=-1,n=H(n);for(var o=n.length;++t<o;){var i=n[t];i>u&&(u=i)}}else r=m(r,t,3),_(n,function(n,t,o){t=r(n,t,o),(t>e||-1/0===t&&t===u)&&(e=t,u=n)});return u}function ar(n,r){return ir(n,$r(r))}function cr(n,r,t,e){return(Pt(n)?u:$)(n,m(r,e,4),t,3>arguments.length,_)}function lr(n,r,t,e){return(Pt(n)?o:$)(n,m(r,e,4),t,3>arguments.length,j)}function pr(n){n=H(n);for(var r=-1,t=n.length,e=Array(t);++r<t;){var u=M(r);r!=u&&(e[r]=e[u]),e[u]=n[r]
|
||||
}return e}function sr(n,r,t){var e=Pt(n)?i:q;return(typeof r!="function"||typeof t!="undefined")&&(r=m(r,t,3)),e(n,r)}function hr(n,r){var t;if(!br(r)){if(!br(n))throw new TypeError(Wr);var e=n;n=r,r=e}return function(){return 0<--n?t=r.apply(this,arguments):r=null,t}}function gr(n,r,t){function e(){var t=r-(Gt()-c);0>=t||t>r?(f&&clearTimeout(f),t=s,f=p=s=qr,t&&(h=Gt(),a=n.apply(l,i),p||f||(i=l=null))):p=setTimeout(e,t)}function u(){p&&clearTimeout(p),f=p=s=qr,(v||g!==r)&&(h=Gt(),a=n.apply(l,i),p||f||(i=l=null))
|
||||
}function o(){if(i=arguments,c=Gt(),l=this,s=v&&(p||!y),false===g)var t=y&&!p;else{f||y||(h=c);var o=g-(c-h),m=0>=o||o>g;m?(f&&(f=clearTimeout(f)),h=c,a=n.apply(l,i)):f||(f=setTimeout(u,o))}return m&&p?p=clearTimeout(p):p||r===g||(p=setTimeout(e,r)),t&&(m=true,a=n.apply(l,i)),!m||p||f||(i=l=null),a}var i,f,a,c,l,p,s,h=0,g=false,v=true;if(!br(n))throw new TypeError(Wr);if(r=0>r?0:r,true===t)var y=true,v=false;else dr(t)&&(y=t.leading,g="maxWait"in t&&Ft(+t.maxWait||0,r),v="trailing"in t?t.trailing:v);return o.cancel=function(){p&&clearTimeout(p),f&&clearTimeout(f),f=p=s=qr
|
||||
},o}function vr(n){for(var r=X(arguments,1),t=r,e=vr.placeholder,u=-1,o=t.length,i=-1,f=[];++u<o;)t[u]===e&&(t[u]=Pr,f[++i]=u);return F(n,Ur,r,f)}function yr(n){var r=n&&typeof n=="object"?n.length:qr;return typeof r=="number"&&-1<r&&r<=Cr&&_t.call(n)==Xr||false}function mr(n){return n&&typeof n=="object"&&_t.call(n)==nt||false}function br(n){return typeof n=="function"||false}function dr(n){var r=typeof n;return"function"==r||n&&"object"==r||false}function _r(n){return br(n)?jt.test(mt.call(n)):n&&typeof n=="object"&&Jr.test(n)||false
|
||||
}function jr(n){var r=typeof n;return"number"==r||n&&"object"==r&&_t.call(n)==rt||false}function wr(n){return typeof n=="string"||n&&typeof n=="object"&&_t.call(n)==ut||false}function Ar(n){if(null==n)return n;var r=arguments,t=0,e=r.length;for(h(r[1],r[2],r[3])&&(e=2);++t<e;)for(var u=n,o=r[t],i=-1,f=Vt(o),a=f.length;++i<a;){var c=f[i];u[c]=o[c]}return n}function xr(n){if(null==n)return n;var r=arguments,t=0,e=r.length;for(h(r[1],r[2],r[3])&&(e=2);++t<e;){var u,o=r[t];for(u in o)"undefined"==typeof n[u]&&(n[u]=o[u])
|
||||
}return n}function Tr(n){for(var r=Er(n),t=-1,e=r.length,u=-1,o=[];++t<e;){var i=r[t];br(n[i])&&(o[++u]=i)}return o}function Er(n){var r=[];if(!dr(n))return r;for(var t in n)r.push(t);return r}function Or(n){for(var r=-1,t=Vt(n),e=t.length,u=Array(e);++r<e;){var o=t[r];u[r]=[o,n[o]]}return u}function kr(n){for(var r=-1,t=Vt(n),e=t.length,u=Array(e);++r<e;)u[r]=n[t[r]];return u}function Sr(n){try{return n()}catch(r){return mr(r)?r:Error(r)}}function Ir(n){return n}function Fr(n){var r=Or(n),t=r.length;
|
||||
return function(n){var e=t;if(null==n)return!e;for(;e--;){var u=r[e];if(n[u[0]]!==u[1])return false}for(e=t;e--;)if(!bt.call(n,r[e][0]))return false;return true}}function Mr(n){for(var r=-1,t=Tr(n),e=t.length;++r<e;){var u=t[r];v.prototype[u]=function(){var r=v[u]=n[u];return function(){var n=[this.__wrapped__];return xt.apply(n,arguments),n=r.apply(v,n),this.__chain__?new y(n,true):n}}()}}function $r(n){return function(r){return null==r?qr:r[n]}}var qr,Br="__lodash_breaker__",Nr=1,Rr=2,Ur=32,Wr="Expected a function",Dr=Math.pow(2,32)-1,zr=Dr-1,Cr=Math.pow(2,53)-1,Pr="__lodash_placeholder__",Vr=0,Gr=/&(?:amp|lt|gt|quot|#x27|#96);/g,Hr=/[&<>"'`]/g,Jr=/^\[object .+?Constructor\]$/,Kr=/($^)/,Lr=/[.*+?^${}()|[\]\/\\]/g,Qr=/['\n\r\u2028\u2029\\]/g,Xr="[object Arguments]",Yr="[object Boolean]",Zr="[object Date]",nt="[object Error]",rt="[object Number]",tt="[object Object]",et="[object RegExp]",ut="[object String]",ot={};
|
||||
ot[Xr]=ot["[object Array]"]=ot["[object Float32Array]"]=ot["[object Float64Array]"]=ot["[object Int8Array]"]=ot["[object Int16Array]"]=ot["[object Int32Array]"]=ot["[object Uint8Array]"]=ot["[object Uint8ClampedArray]"]=ot["[object Uint16Array]"]=ot["[object Uint32Array]"]=true,ot["[object ArrayBuffer]"]=ot[Yr]=ot[Zr]=ot[nt]=ot["[object Function]"]=ot["[object Map]"]=ot[rt]=ot[tt]=ot[et]=ot["[object Set]"]=ot[ut]=ot["[object WeakMap]"]=false;var it={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},ft={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},at={"function":true,object:true},ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lt=at[typeof window]&&window||this,pt=at[typeof exports]&&exports&&!exports.nodeType&&exports,st=at[typeof module]&&module&&!module.nodeType&&module,ht=pt&&st&&typeof global=="object"&&global;
|
||||
!ht||ht.global!==ht&&ht.window!==ht&&ht.self!==ht||(lt=ht);var gt=st&&st.exports===pt&&pt,vt=Array.prototype,yt=Object.prototype,mt=Function.prototype.toString,bt=yt.hasOwnProperty,dt=lt._,_t=yt.toString,jt=RegExp("^"+function(n){return(n=null==n?"":n+"")&&(Lr.lastIndex=0,Lr.test(n))?n.replace(Lr,"\\$&"):n}(_t).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wt=Math.ceil,At=Math.floor,xt=vt.push,Tt=yt.propertyIsEnumerable,Et=vt.splice,Ot=_r(Ot=Object.create)&&Ot,kt=_r(kt=Array.isArray)&&kt,St=lt.isFinite,It=_r(It=Object.keys)&&It,Ft=Math.max,Mt=Math.min,$t=_r($t=Date.now)&&$t,qt=Math.random,Bt={};
|
||||
!function(){var n={0:1,length:1};Bt.spliceObjects=(Et.call(n,0,1),!n[0])}(0,0),v.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:""},Ot||(b=function(){function n(){}return function(r){if(dr(r)){n.prototype=r;var t=new n;n.prototype=null}return t||lt.Object()}}());var Nt=Q,Rt=K,Ut=N(function(n,r,t){bt.call(n,t)?++n[t]:n[t]=1}),Wt=N(function(n,r,t){bt.call(n,t)?n[t].push(r):n[t]=[r]}),Dt=N(function(n,r,t){n[t]=r}),zt=N(function(n,r,t){n[t?0:1].push(r)
|
||||
},function(){return[[],[]]}),Ct=vr(hr,2);yr(arguments)||(yr=function(n){var r=n&&typeof n=="object"?n.length:qr;return typeof r=="number"&&-1<r&&r<=Cr&&bt.call(n,"callee")&&!Tt.call(n,"callee")||false});var Pt=kt||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&"[object Array]"==_t.call(n)||false};br(/x/)&&(br=function(n){return typeof n=="function"&&"[object Function]"==_t.call(n)});var Vt=It?function(n){return dr(n)?It(n):[]}:G,Gt=$t||function(){return(new Date).getTime()};v.after=function(n,r){if(!br(r)){if(!br(n))throw new TypeError(Wr);
|
||||
var t=n;n=r,r=t}return n=St(n=+n)?n:0,function(){return 1>--n?r.apply(this,arguments):void 0}},v.before=hr,v.bind=function(n,r){return 3>arguments.length?z(n,Nr,r):F(n,Nr|Ur,X(arguments,2),[],r)},v.bindAll=function(n){for(var r=n,t=1<arguments.length?T(arguments,false,false,1):Tr(n),e=-1,u=t.length;++e<u;){var o=t[e];r[o]=z(r[o],Nr,r)}return r},v.chain=nr,v.compact=function(n){for(var r=-1,t=n?n.length:0,e=-1,u=[];++r<t;){var o=n[r];o&&(u[++e]=o)}return u},v.constant=function(n){return function(){return n
|
||||
}},v.countBy=Ut,v.debounce=gr,v.defaults=xr,v.defer=function(n){if(!br(n))throw new TypeError(Wr);var r=X(arguments,1);return setTimeout(function(){n.apply(qr,r)},1)},v.delay=function(n,r){if(!br(n))throw new TypeError(Wr);var t=X(arguments,2);return setTimeout(function(){n.apply(qr,t)},r)},v.difference=function(){for(var n=-1,r=arguments.length;++n<r;){var t=arguments[n];if(Pt(t)||yr(t))break}return d(arguments[n],T(arguments,false,true,++n))},v.drop=Nt,v.filter=er,v.flatten=function(n,r,t){return n&&n.length?T(n,t?true:!r):[]
|
||||
},v.forEach=or,v.functions=Tr,v.groupBy=Wt,v.indexBy=Dt,v.initial=function(n,r,t){var e=n?n.length:0;return(null==r||t)&&(r=1),r=e-(r||0),X(n,0,0>r?0:r)},v.intersection=function(){for(var n=[],r=-1,t=arguments.length;++r<t;){var e=arguments[r];(Pt(e)||yr(e))&&n.push(e)}var t=n.length,u=n[0],o=-1,i=C(),f=u?u.length:0,a=[];n:for(;++o<f;)if(e=u[o],0>i(a,e)){for(r=t;--r;)if(0>i(n[r],e))continue n;a.push(e)}return a},v.invert=function(n){for(var r=-1,t=Vt(n),e=t.length,u={};++r<e;){var o=t[r];u[n[o]]=o
|
||||
}return u},v.invoke=function(n,r){return S(n,r,X(arguments,2))},v.keys=Vt,v.map=ir,v.matches=Fr,v.memoize=function(n,r){function t(){var e=r?r.apply(this,arguments):arguments[0];if("__proto__"==e)return n.apply(this,arguments);var u=t.cache;return bt.call(u,e)?u[e]:u[e]=n.apply(this,arguments)}if(!br(n)||r&&!br(r))throw new TypeError(Wr);return t.cache={},t},v.mixin=Mr,v.negate=function(n){if(!br(n))throw new TypeError(Wr);return function(){return!n.apply(this,arguments)}},v.omit=function(n,r,e){if(null==n)return{};
|
||||
if(typeof r!="function"){var u=t(T(arguments,false,false,1),String);return P(n,d(Er(n),u))}return r=m(r,e,3),V(n,function(n,t,e){return!r(n,t,e)})},v.once=Ct,v.pairs=Or,v.partial=vr,v.partition=zt,v.pick=function(n,r,t){return null==n?{}:typeof r=="function"?V(n,m(r,t,3)):P(n,T(arguments,false,false,1))},v.pluck=ar,v.property=$r,v.range=function(n,r,t){t&&h(n,r,t)&&(r=t=null),n=+n||0,t=+t||1,null==r?(r=n,n=0):r=+r||0;var e=-1;r=Ft(wt((r-n)/(t||1)),0);for(var u=Array(r);++e<r;)u[e]=n,n+=t;return u},v.reject=function(n,r,t){var u=Pt(n)?e:A;
|
||||
return r=m(r,t,3),u(n,function(n,t,e){return!r(n,t,e)})},v.rest=Q,v.shuffle=pr,v.sortBy=function(n,r,t){r=h(n,r,t)?null:r;var e=-1,u=n?n.length:0,o=[];for(typeof u=="number"&&-1<u&&u<=Cr&&(o.length=u),r=m(r,t,3),_(n,function(n,t,u){o[++e]={a:r(n,t,u),b:e,c:n}}),u=o.length,o.sort(c);u--;)o[u]=o[u].c;return o},v.take=Rt,v.tap=function(n,r){return r(n),n},v.throttle=function(n,r,t){var e=true,u=true;if(!br(n))throw new TypeError(funcErrorText);return false===t?e=false:dr(t)&&(e="leading"in t?t.leading:e,u="trailing"in t?t.trailing:u),gr(n,r,{leading:e,maxWait:r,trailing:u})
|
||||
},v.times=function(n,r,t){n=St(n=+n)&&-1<n?n:0,r=m(r,t,1),t=-1;for(var e=Array(Mt(n,Dr));++t<n;)t<Dr?e[t]=r(t):r(t);return e},v.toArray=function(n){var r=n?n.length:0;return typeof r=="number"&&-1<r&&r<=Cr?a(n):kr(n)},v.union=function(){return B(T(arguments,false,true))},v.uniq=Z,v.values=kr,v.where=function(n,r){return er(n,Fr(r))},v.without=function(n){return d(n,X(arguments,1))},v.wrap=function(n,r){return F(r,Ur,[n],[])},v.zip=function(){for(var n=arguments.length,r=Array(n);n--;)r[n]=arguments[n];
|
||||
for(var n=-1,t=dr(t=fr(r,"length"))&&t.length||0,e=Array(t);++n<t;)e[n]=ar(r,n);return e},v.collect=ir,v.compose=function(){var n=arguments,t=n.length-1;if(0>t)return function(){};if(!r(n,br))throw new TypeError(Wr);return function(){for(var r=t,e=n[r].apply(this,arguments);r--;)e=n[r].call(this,e);return e}},v.each=or,v.extend=Ar,v.iteratee=function(n,r,t){return m(n,t?qr:r)},v.methods=Tr,v.object=function(n,r){var t=-1,e=n?n.length:0,u={};for(r||!e||Pt(n[0])||(r=[]);++t<e;){var o=n[t];r?u[o]=r[t]:o&&(u[o[0]]=o[1])
|
||||
}return u},v.select=er,v.tail=Q,v.unique=Z,v.clone=function(n){return dr(n)?Pt(n)?a(n):Ar({},n):n},v.contains=rr,v.escape=function(n){return(n=null==n?"":n+"")&&(Hr.lastIndex=0,Hr.test(n))?n.replace(Hr,l):n},v.every=tr,v.find=ur,v.findWhere=function(n,r){return ur(n,Fr(r))},v.first=K,v.has=function(n,r){return n?bt.call(n,r):false},v.identity=Ir,v.indexOf=L,v.isArguments=yr,v.isArray=Pt,v.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&_t.call(n)==Yr||false},v.isDate=function(n){return n&&typeof n=="object"&&_t.call(n)==Zr||false
|
||||
},v.isElement=function(n){return n&&1===n.nodeType||false},v.isEmpty=function(n){if(null==n)return true;var r=n.length;return typeof r=="number"&&-1<r&&r<=Cr&&(Pt(n)||wr(n)||yr(n))?!r:!Vt(n).length},v.isEqual=function(n,r){return k(n,r)},v.isFinite=function(n){return n=parseFloat(St(n)&&n),n==n},v.isFunction=br,v.isNaN=function(n){return jr(n)&&n!=+n},v.isNull=function(n){return null===n},v.isNumber=jr,v.isObject=dr,v.isRegExp=function(n){return dr(n)&&_t.call(n)==et||false},v.isString=wr,v.isUndefined=function(n){return typeof n=="undefined"
|
||||
},v.last=function(n,r,t){var e=n?n.length:0;return null==r||t?n?n[e-1]:qr:(r=e-(r||0),X(n,0>r?0:r))},v.lastIndexOf=function(n,r,t){var e=n?n.length:0;if(!e)return-1;var u=e;if(typeof t=="number"&&(u=(0>t?Ft(e+t,0):Mt(t||0,e-1))+1),r!==r)return s(n,u,true);for(;u--;)if(n[u]===r)return u;return-1},v.max=fr,v.min=function(n,r,t){r=h(n,r,t)?null:r;var e=1/0,u=e;if(null==r){t=-1,n=H(n);for(var o=n.length;++t<o;){var i=n[t];i<u&&(u=i)}}else r=m(r,t,3),_(n,function(n,t,o){t=r(n,t,o),(t<e||1/0===t&&t===u)&&(e=t,u=n)
|
||||
});return u},v.noConflict=function(){return lt._=dt,this},v.noop=function(){},v.now=Gt,v.random=function(n,r,t){return r=t?null:r,null==n&&null==r&&(r=1),n=+n||0,null==r?(r=n,n=0):r=+r||0,n+At(qt()*(r-n+1))},v.reduce=cr,v.reduceRight=lr,v.result=function(n,r){if(null!=n){var t=n[r];return br(t)?n[r]():t}},v.size=function(n){var r=n?n.length:0;return typeof r=="number"&&-1<r&&r<=Cr?r:Vt(n).length},v.some=sr,v.sortedIndex=Y,v.template=function(n,r,t){var e=v,u=e.templateSettings;h(n,r,t)&&(r=t=null),n=(null==n?"":n)+"",r=xr({},t||r,u);
|
||||
var o=0,i="__p+='";if(t=r.variable,n.replace(RegExp((r.escape||Kr).source+"|"+(r.interpolate||Kr).source+"|"+(r.evaluate||Kr).source+"|$","g"),function(r,t,e,u,f){return i+=n.slice(o,f).replace(Qr,p),t&&(i+="'+_.escape("+t+")+'"),u&&(i+="';"+u+";\n__p+='"),e&&(i+="'+((__t=("+e+"))==null?'':__t)+'"),o=f+r.length,r}),i+="';",t||(i="with(obj||{}){"+i+"}"),i="function("+(t||"obj")+"){var __t,__p='',__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}"+i+"return __p}",r=Sr(function(){return Function("_","return "+i)(e)
|
||||
}),r.source=i,mr(r))throw r;return r},v.unescape=function(n){return(n=null==n?"":n+"")&&(Gr.lastIndex=0,Gr.test(n))?n.replace(Gr,g):n},v.uniqueId=function(n){var r=++Vr+"";return n?n+r:r},v.all=tr,v.any=sr,v.detect=ur,v.foldl=cr,v.foldr=lr,v.head=K,v.include=rr,v.inject=cr,v.sample=function(n,r,t){return t||null==r?(n=H(n),r=n.length,0<r?n[M(r-1)]:qr):(n=pr(n),n.length=Mt(0>r?0:+r||0,n.length),n)},Mr(Ar({},v)),v.VERSION="3.0.0-pre",y.prototype=v.prototype,v.prototype.chain=function(){return nr(this)
|
||||
},v.prototype.value=function(){return this.__wrapped__},vr.placeholder=v,n("concat join pop push reverse shift sort splice unshift".split(" "),function(n){var r=vt[n],t=!/^(?:concat|join|slice)$/.test(n),e=!Bt.spliceObjects&&/^(?:pop|shift|splice)$/.test(n);v.prototype[n]=function(){var n=this.__wrapped__,u=r.apply(n,arguments);return e&&0===n.length&&delete n[0],t&&(u=n),this.__chain__?new y(u,true):u}}),typeof define=="function"&&typeof define.amd=="object"&&define.amd?(lt._=v, define("underscore",function(){return v
|
||||
})):pt&&st?gt?(st.exports=v)._=v:pt._=v:lt._=v}).call(this);
|
||||
Reference in New Issue
Block a user