mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 01:17:50 +00:00
Rebuild dist.
This commit is contained in:
172
dist/lodash.compat.js
vendored
172
dist/lodash.compat.js
vendored
@@ -4,7 +4,7 @@
|
||||
* Build: `lodash -o ./dist/lodash.compat.js`
|
||||
* Copyright 2012-2014 The Dojo Foundation <http://dojofoundation.org/>
|
||||
* Based on Underscore.js 1.6.0 <http://underscorejs.org/LICENSE>
|
||||
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||
* Copyright 2009-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||
* Available under MIT license <http://lodash.com/license>
|
||||
*/
|
||||
;(function() {
|
||||
@@ -50,7 +50,7 @@
|
||||
*/
|
||||
var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
|
||||
|
||||
/** Used to match regexp flags from their coerced string values */
|
||||
/** Used to match `RegExp` flags from their coerced string values */
|
||||
var reFlags = /\w*$/;
|
||||
|
||||
/** Used to detected named functions */
|
||||
@@ -66,8 +66,8 @@
|
||||
var reNoMatch = /($^)/;
|
||||
|
||||
/**
|
||||
* Used to match RegExp special characters.
|
||||
* See this [article on RegExp characters](http://www.regular-expressions.info/characters.html#special)
|
||||
* Used to match `RegExp` special characters.
|
||||
* See this [article on `RegExp` characters](http://www.regular-expressions.info/characters.html#special)
|
||||
* for more details.
|
||||
*/
|
||||
var reRegExpChars = /[.*+?^${}()|[\]\\]/g;
|
||||
@@ -100,13 +100,13 @@
|
||||
'parseInt', 'setTimeout', 'TypeError', 'window', 'WinRTError'
|
||||
];
|
||||
|
||||
/** Used to fix the JScript [[DontEnum]] bug */
|
||||
/** Used to fix the JScript `[[DontEnum]]` bug */
|
||||
var shadowedProps = [
|
||||
'constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable',
|
||||
'toLocaleString', 'toString', 'valueOf'
|
||||
];
|
||||
|
||||
/** Used to make template sourceURLs easier to identify */
|
||||
/** Used to make template `sourceURL`s easier to identify */
|
||||
var templateCounter = 0;
|
||||
|
||||
/** `Object#toString` result shortcuts */
|
||||
@@ -195,7 +195,7 @@
|
||||
'\xDF': 'ss', '\xD7': ' ', '\xF7': ' '
|
||||
};
|
||||
|
||||
/** Used to determine if values are of the language type Object */
|
||||
/** Used to determine if values are of the language type `Object` */
|
||||
var objectTypes = {
|
||||
'function': true,
|
||||
'object': true
|
||||
@@ -316,6 +316,7 @@
|
||||
*
|
||||
* @private
|
||||
* @param {string} string The string to inspect.
|
||||
* @param {string} chars The chars to find.
|
||||
* @returns {number} Returns the index of the first character not found in `chars`.
|
||||
*/
|
||||
function charsLeftIndex(string, chars) {
|
||||
@@ -335,6 +336,7 @@
|
||||
*
|
||||
* @private
|
||||
* @param {string} string The string to inspect.
|
||||
* @param {string} chars The chars to find.
|
||||
* @returns {number} Returns the index of the last character not found in `chars`.
|
||||
*/
|
||||
function charsRightIndex(string, chars) {
|
||||
@@ -348,7 +350,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Used by `sortBy` to compare transformed elements of a collection and stable
|
||||
* Used by `_.sortBy` to compare transformed elements of a collection and stable
|
||||
* sort them in ascending order.
|
||||
*
|
||||
* @private
|
||||
@@ -361,7 +363,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Used by `sortBy` to compare multiple properties of each element in a
|
||||
* Used by `_.sortBy` to compare multiple properties of each element in a
|
||||
* collection and stable sort them in ascending order.
|
||||
*
|
||||
* @private
|
||||
@@ -425,7 +427,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Used by `escape` to convert characters to HTML entities.
|
||||
* Used by `_.escape` to convert characters to HTML entities.
|
||||
*
|
||||
* @private
|
||||
* @param {string} chr The matched character to escape.
|
||||
@@ -436,7 +438,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Used by `template` to escape characters for inclusion in compiled
|
||||
* Used by `_.template` to escape characters for inclusion in compiled
|
||||
* string literals.
|
||||
*
|
||||
* @private
|
||||
@@ -461,7 +463,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* A fallback implementation of `trim` to remove leading and trailing
|
||||
* A fallback implementation of `String#trim` to remove leading and trailing
|
||||
* whitespace or specified characters from `string`.
|
||||
*
|
||||
* @private
|
||||
@@ -482,7 +484,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* A fallback implementation of `trimLeft` to remove leading whitespace or
|
||||
* A fallback implementation of `String#trimLeft` to remove leading whitespace or
|
||||
* specified characters from `string`.
|
||||
*
|
||||
* @private
|
||||
@@ -503,7 +505,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* A fallback implementation of `trimRight` to remove trailing whitespace or
|
||||
* A fallback implementation of `String#trimRight` to remove trailing whitespace or
|
||||
* specified characters from `string`.
|
||||
*
|
||||
* @private
|
||||
@@ -564,7 +566,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Used by `unescape` to convert HTML entities to characters.
|
||||
* Used by `_.unescape` to convert HTML entities to characters.
|
||||
*
|
||||
* @private
|
||||
* @param {string} chr The matched character to unescape.
|
||||
@@ -577,7 +579,7 @@
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* Create a new `lodash` function using the given context object.
|
||||
* Create a new `lodash` function using the given `context` object.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
@@ -614,17 +616,17 @@
|
||||
/** Used to detect DOM support */
|
||||
var document = (document = context.window) && document.document;
|
||||
|
||||
/** Used to restore the original `_` reference in `noConflict` */
|
||||
/** Used to restore the original `_` reference in `_.noConflict` */
|
||||
var oldDash = context._;
|
||||
|
||||
/**
|
||||
* Used as the maximum length an array-like object.
|
||||
* Used as the maximum length of an array-like object.
|
||||
* See the [ES6 spec](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength)
|
||||
* for more details.
|
||||
*/
|
||||
var maxSafeInteger = Math.pow(2, 53) - 1;
|
||||
|
||||
/** Used to resolve the internal [[Class]] of values */
|
||||
/** Used to resolve the internal `[[Class]]` of values */
|
||||
var toString = objectProto.toString;
|
||||
|
||||
/** Used to detect if a method is native */
|
||||
@@ -647,7 +649,7 @@
|
||||
splice = arrayRef.splice,
|
||||
unshift = arrayRef.unshift;
|
||||
|
||||
/** Used to set meta data on functions */
|
||||
/** Used to set metadata on functions */
|
||||
var defineProperty = (function() {
|
||||
// IE 8 only accepts DOM elements
|
||||
try {
|
||||
@@ -674,7 +676,7 @@
|
||||
nativeTrimLeft = isNative(nativeTrimLeft = stringProto.trimLeft) && !nativeTrimLeft.call(whitespace) && nativeTrimLeft,
|
||||
nativeTrimRight = isNative(nativeTrimRight = stringProto.trimRight) && !nativeTrimRight.call(whitespace) && nativeTrimRight;
|
||||
|
||||
/** Used to lookup a built-in constructor by [[Class]] */
|
||||
/** Used to lookup a built-in constructor by `[[Class]]` */
|
||||
var ctorByClass = {};
|
||||
ctorByClass[arrayClass] = Array;
|
||||
ctorByClass[boolClass] = Boolean;
|
||||
@@ -785,7 +787,7 @@
|
||||
*
|
||||
* @private
|
||||
* @param {*} value The value to wrap in a `lodash` instance.
|
||||
* @param {boolean} [chainAll=false] A flag to enable chaining for all methods
|
||||
* @param {boolean} [chainAll=false] A flag to enable chaining for all methods.
|
||||
* @returns {Object} Returns a `lodash` instance.
|
||||
*/
|
||||
function lodashWrapper(value, chainAll) {
|
||||
@@ -814,7 +816,7 @@
|
||||
for (key in arguments) { }
|
||||
|
||||
/**
|
||||
* Detect if an `arguments` object's [[Class]] is resolvable (all but Firefox < 4, IE < 9).
|
||||
* Detect if an `arguments` object's `[[Class]]` is resolvable (all but Firefox < 4, IE < 9).
|
||||
*
|
||||
* @memberOf _.support
|
||||
* @type boolean
|
||||
@@ -843,8 +845,8 @@
|
||||
*
|
||||
* Firefox < 3.6, Opera > 9.50 - Opera < 11.60, and Safari < 5.1
|
||||
* (if the prototype or a property on the prototype has been set)
|
||||
* incorrectly sets a function's `prototype` property [[Enumerable]]
|
||||
* value to `true`.
|
||||
* incorrectly sets the `[[Enumerable]]` value of a function's `prototype`
|
||||
* property to `true`.
|
||||
*
|
||||
* @memberOf _.support
|
||||
* @type boolean
|
||||
@@ -881,7 +883,7 @@
|
||||
* Detect if properties shadowing those on `Object.prototype` are non-enumerable.
|
||||
*
|
||||
* In IE < 9 an objects own properties, shadowing non-enumerable ones, are
|
||||
* made non-enumerable as well (a.k.a the JScript [[DontEnum]] bug).
|
||||
* made non-enumerable as well (a.k.a the JScript `[[DontEnum]]` bug).
|
||||
*
|
||||
* @memberOf _.support
|
||||
* @type boolean
|
||||
@@ -934,7 +936,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Detect if a DOM node's [[Class]] is resolvable (all but IE < 9)
|
||||
* Detect if a DOM node's `[[Class]]` is resolvable (all but IE < 9)
|
||||
* and that the JS engine errors when attempting to coerce an object to
|
||||
* a string without a `toString` function.
|
||||
*
|
||||
@@ -1013,7 +1015,7 @@
|
||||
|
||||
/**
|
||||
* The base implementation of `_.bind` that creates the bound function and
|
||||
* sets its meta data.
|
||||
* sets its metadata.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} data The metadata array.
|
||||
@@ -1074,7 +1076,7 @@
|
||||
return result;
|
||||
}
|
||||
}
|
||||
// inspect [[Class]]
|
||||
// inspect `[[Class]]`
|
||||
var isObj = isObject(value);
|
||||
if (isObj) {
|
||||
var className = toString.call(value);
|
||||
@@ -1228,7 +1230,7 @@
|
||||
|
||||
/**
|
||||
* The base implementation of `createWrapper` that creates the wrapper and
|
||||
* sets its meta data.
|
||||
* sets its metadata.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} data The metadata array.
|
||||
@@ -1392,7 +1394,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* The base implementation of `find`, 'findLast`, `findKey`, and `findLastKey`
|
||||
* The base implementation of `_.find`, '_.findLast`, `_.findKey`, and `_.findLastKey`
|
||||
* without support for callback shorthands or `this` binding which iterates
|
||||
* over `collection` using the provided `eachFunc`.
|
||||
*
|
||||
@@ -1578,7 +1580,7 @@
|
||||
(valType != 'function' && valType != 'object' && othType != 'function' && othType != 'object'))) {
|
||||
return false;
|
||||
}
|
||||
// compare [[Class]] names
|
||||
// compare `[[Class]]` names
|
||||
var valClass = toString.call(value),
|
||||
othClass = toString.call(other),
|
||||
valIsArg = valClass == argsClass,
|
||||
@@ -2163,7 +2165,7 @@
|
||||
};
|
||||
|
||||
/**
|
||||
* A fallback implementation of `isPlainObject` which checks if `value` is
|
||||
* A fallback implementation of `_.isPlainObject` which checks if `value` is
|
||||
* an object created by the `Object` constructor, assuming objects created
|
||||
* by the `Object` constructor have no inherited enumerable properties and
|
||||
* that there are no `Object.prototype` extensions.
|
||||
@@ -2215,11 +2217,17 @@
|
||||
var index = -1,
|
||||
props = keysIn(object),
|
||||
length = props.length,
|
||||
objLength = length && object.length,
|
||||
result = [];
|
||||
|
||||
if (typeof objLength == 'number' && objLength > 0) {
|
||||
var allowIndexes = isArray(object) || (support.unindexedChars && isString(object)),
|
||||
maxIndex = objLength - 1;
|
||||
}
|
||||
while (++index < length) {
|
||||
var key = props[index];
|
||||
if (hasOwnProperty.call(object, key)) {
|
||||
if ((allowIndexes && key > -1 && key <= maxIndex && key % 1 == 0) ||
|
||||
hasOwnProperty.call(object, key)) {
|
||||
result.push(key);
|
||||
}
|
||||
}
|
||||
@@ -2272,8 +2280,8 @@
|
||||
* _.difference([1, 2, 3], [5, 2, 10]);
|
||||
* // => [1, 3]
|
||||
*/
|
||||
function difference(array) {
|
||||
return baseDifference(array, baseFlatten(arguments, true, true, 1));
|
||||
function difference() {
|
||||
return baseDifference(arguments[0], baseFlatten(arguments, true, true, 1));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2710,46 +2718,43 @@
|
||||
* _.intersection([1, 2, 3], [5, 2, 1, 4], [2, 1]);
|
||||
* // => [1, 2]
|
||||
*/
|
||||
function intersection(array) {
|
||||
if (!array) {
|
||||
return [];
|
||||
}
|
||||
function intersection() {
|
||||
var args = [],
|
||||
argsIndex = -1,
|
||||
argsLength = arguments.length,
|
||||
caches = [],
|
||||
indexOf = getIndexOf(),
|
||||
prereq = createCache && indexOf === baseIndexOf,
|
||||
seen = [];
|
||||
prereq = createCache && indexOf === baseIndexOf;
|
||||
|
||||
while (++argsIndex < argsLength) {
|
||||
var value = arguments[argsIndex];
|
||||
if (isArray(value) || isArguments(value)) {
|
||||
args.push(value);
|
||||
caches.push(prereq && value.length >= 120 &&
|
||||
createCache(argsIndex ? value : seen));
|
||||
createCache(argsIndex && value));
|
||||
}
|
||||
}
|
||||
argsLength = args.length;
|
||||
var array = args[0],
|
||||
index = -1,
|
||||
length = array ? array.length : 0,
|
||||
result = [];
|
||||
result = [],
|
||||
seen = caches[0];
|
||||
|
||||
outer:
|
||||
while (++index < length) {
|
||||
var cache = caches[0];
|
||||
value = array[index];
|
||||
|
||||
if ((cache ? cacheIndexOf(cache, value) : indexOf(seen, value)) < 0) {
|
||||
if ((seen ? cacheIndexOf(seen, value) : indexOf(result, value)) < 0) {
|
||||
argsIndex = argsLength;
|
||||
(cache || seen).push(value);
|
||||
while (--argsIndex) {
|
||||
cache = caches[argsIndex];
|
||||
var cache = caches[argsIndex];
|
||||
if ((cache ? cacheIndexOf(cache, value) : indexOf(args[argsIndex], value)) < 0) {
|
||||
continue outer;
|
||||
}
|
||||
}
|
||||
if (seen) {
|
||||
seen.push(value);
|
||||
}
|
||||
result.push(value);
|
||||
}
|
||||
}
|
||||
@@ -3427,9 +3432,7 @@
|
||||
* // => 'pebbles is 1'
|
||||
*/
|
||||
function chain(value) {
|
||||
value = new lodashWrapper(value);
|
||||
value.__chain__ = true;
|
||||
return value;
|
||||
return new lodashWrapper(value, true);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -4906,7 +4909,7 @@
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Functions
|
||||
* @param {...Function} [func] Functions to compose.
|
||||
* @param {...Function} [funcs] Functions to compose.
|
||||
* @returns {Function} Returns the new composed function.
|
||||
* @example
|
||||
*
|
||||
@@ -4992,7 +4995,7 @@
|
||||
* the leading and/or trailing edge of the `wait` timeout. Subsequent calls
|
||||
* to the debounced function will return the result of the last `func` call.
|
||||
*
|
||||
* Note: If `leading` and `trailing` options are `true` `func` will be called
|
||||
* Note: If `leading` and `trailing` options are `true`, `func` will be called
|
||||
* on the trailing edge of the timeout only if the the debounced function is
|
||||
* invoked more than once during the `wait` timeout.
|
||||
*
|
||||
@@ -5368,7 +5371,7 @@
|
||||
* of the `wait` timeout. Subsequent calls to the throttled function will
|
||||
* return the result of the last `func` call.
|
||||
*
|
||||
* Note: If `leading` and `trailing` options are `true` `func` will be called
|
||||
* Note: If `leading` and `trailing` options are `true`, `func` will be called
|
||||
* on the trailing edge of the timeout only if the the throttled function is
|
||||
* invoked more than once during the `wait` timeout.
|
||||
*
|
||||
@@ -5989,7 +5992,7 @@
|
||||
return value && typeof value == 'object' && typeof value.length == 'number' &&
|
||||
toString.call(value) == argsClass || false;
|
||||
}
|
||||
// fallback for environments that can't detect `arguments` objects by [[Class]]
|
||||
// fallback for environments that can't detect `arguments` objects by `[[Class]]`
|
||||
if (!support.argsClass) {
|
||||
isArguments = function(value) {
|
||||
return value && typeof value == 'object' && typeof value.length == 'number' &&
|
||||
@@ -6250,7 +6253,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if `value` is the language type of Object.
|
||||
* Checks if `value` is the language type of `Object`.
|
||||
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
||||
*
|
||||
* @static
|
||||
@@ -6270,7 +6273,7 @@
|
||||
* // => false
|
||||
*/
|
||||
function isObject(value) {
|
||||
// check if the value is the ECMAScript language type of Object
|
||||
// check if the value is the ECMAScript language type of `Object`
|
||||
// http://es5.github.io/#x8
|
||||
// and avoid a V8 bug
|
||||
// https://code.google.com/p/v8/issues/detail?id=2291
|
||||
@@ -6306,7 +6309,7 @@
|
||||
*/
|
||||
function isNaN(value) {
|
||||
// `NaN` as a primitive is the only value that is not equal to itself
|
||||
// (perform the [[Class]] check first to avoid errors with some host objects in IE)
|
||||
// (perform the `[[Class]]` check first to avoid errors with some host objects in IE)
|
||||
return isNumber(value) && value != +value;
|
||||
}
|
||||
|
||||
@@ -6478,8 +6481,8 @@
|
||||
* // => ['x', 'y'] (property order is not guaranteed across environments)
|
||||
*/
|
||||
var keys = !nativeKeys ? shimKeys : function(object) {
|
||||
if ((support.enumPrototypes && typeof object == 'function') ||
|
||||
(support.nonEnumArgs && object && object.length && isArguments(object))) {
|
||||
var length = object ? object.length : 0;
|
||||
if (typeof length == 'number' && length > 0) {
|
||||
return shimKeys(object);
|
||||
}
|
||||
return isObject(object) ? nativeKeys(object) : [];
|
||||
@@ -6506,19 +6509,30 @@
|
||||
* // => ['x', 'y', 'z'] (property order is not guaranteed across environments)
|
||||
*/
|
||||
function keysIn(object) {
|
||||
var result = [];
|
||||
if (!isObject(object)) {
|
||||
return result;
|
||||
return [];
|
||||
}
|
||||
if (support.nonEnumArgs && object.length && isArguments(object)) {
|
||||
object = slice(object);
|
||||
}
|
||||
var skipProto = support.enumPrototypes && typeof object == 'function',
|
||||
skipErrorProps = support.enumErrorProps && (object === errorProto || object instanceof Error);
|
||||
var length = object.length;
|
||||
length = (typeof length == 'number' && length > 0 &&
|
||||
(isArray(object) || (support.unindexedChars && isString(object)) ||
|
||||
(support.nonEnumArgs && isArguments(object))) && length) >>> 0;
|
||||
|
||||
var maxIndex = length - 1,
|
||||
result = Array(length),
|
||||
skipIndexes = length > 0,
|
||||
skipErrorProps = support.enumErrorProps && (object === errorProto || object instanceof Error),
|
||||
skipProto = support.enumPrototypes && typeof object == 'function';
|
||||
|
||||
if (skipIndexes) {
|
||||
var index = -1;
|
||||
while (++index < length) {
|
||||
result[index] = String(index);
|
||||
}
|
||||
}
|
||||
for (var key in object) {
|
||||
if (!(skipProto && key == 'prototype') &&
|
||||
!(skipErrorProps && (key == 'message' || key == 'name'))) {
|
||||
!(skipErrorProps && (key == 'message' || key == 'name')) &&
|
||||
!(skipIndexes && key > -1 && key <= maxIndex && key % 1 == 0)) {
|
||||
result.push(key);
|
||||
}
|
||||
}
|
||||
@@ -6527,9 +6541,9 @@
|
||||
// attribute of an existing property and the `constructor` property of a
|
||||
// prototype defaults to non-enumerable.
|
||||
if (support.nonEnumShadows && object !== objectProto) {
|
||||
var ctor = object.constructor,
|
||||
index = -1,
|
||||
length = shadowedProps.length;
|
||||
var ctor = object.constructor;
|
||||
index = -1;
|
||||
length = shadowedProps.length;
|
||||
|
||||
if (object === (ctor && ctor.prototype)) {
|
||||
var className = object === stringProto ? stringClass : object === errorProto ? errorClass : toString.call(object),
|
||||
@@ -6996,7 +7010,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Escapes the RegExp special characters "\", "^", "$", ".", "|", "?", "*",
|
||||
* Escapes the `RegExp` special characters "\", "^", "$", ".", "|", "?", "*",
|
||||
* "+", "(", ")", "[", "]", "{" and "}" in `string`.
|
||||
*
|
||||
* @static
|
||||
@@ -7232,7 +7246,7 @@
|
||||
* settings object is provided it will override `_.templateSettings` for the
|
||||
* template.
|
||||
*
|
||||
* Note: In the development build, `_.template` utilizes sourceURLs for easier debugging.
|
||||
* Note: In the development build, `_.template` utilizes `sourceURL`s for easier debugging.
|
||||
* See the [HTML5 Rocks article on sourcemaps](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
|
||||
* for more details.
|
||||
*
|
||||
@@ -7252,7 +7266,7 @@
|
||||
* @param {RegExp} [options.evaluate] The "evaluate" delimiter.
|
||||
* @param {Object} [options.imports] An object to import into the template as local variables.
|
||||
* @param {RegExp} [options.interpolate] The "interpolate" delimiter.
|
||||
* @param {string} [options.sourceURL] The sourceURL of the template's compiled source.
|
||||
* @param {string} [options.sourceURL] The `sourceURL` of the template's compiled source.
|
||||
* @param {string} [options.variable] The data object variable name.
|
||||
* @returns {Function|string} Returns the interpolated string if a data object
|
||||
* is provided, else the compiled template function.
|
||||
@@ -7290,7 +7304,7 @@
|
||||
* _.template(list, { 'people': ['fred', 'barney'] }, { 'imports': { 'jq': jQuery } });
|
||||
* // => '<li>fred</li><li>barney</li>'
|
||||
*
|
||||
* // using the `sourceURL` option to specify a custom sourceURL for the template
|
||||
* // using the `sourceURL` option to specify a custom `sourceURL` for the template
|
||||
* var compiled = _.template('hello <%= name %>', null, { 'sourceURL': '/basic/greeting.jst' });
|
||||
* compiled(data);
|
||||
* // => find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector
|
||||
@@ -7396,7 +7410,7 @@
|
||||
source +
|
||||
'return __p\n}';
|
||||
|
||||
// Use a sourceURL for easier debugging.
|
||||
// Use a `sourceURL` for easier debugging.
|
||||
// http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl
|
||||
var sourceURL = '\n/*\n//# sourceURL=' + (options.sourceURL || '/lodash/template/source[' + (templateCounter++) + ']') + '\n*/';
|
||||
|
||||
@@ -7496,7 +7510,7 @@
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Strings
|
||||
* @param {string} [string=''] The string to trim.
|
||||
* @param {string} [string=''] The string to truncate.
|
||||
* @param {Object|number} [options] The options object or maximum string length.
|
||||
* @param {number} [options.length=30] The maximum string length.
|
||||
* @param {string} [options.omission='...'] The string used to indicate text is omitted.
|
||||
@@ -7866,7 +7880,7 @@
|
||||
|
||||
/**
|
||||
* Converts `value` to an integer of the specified radix. If `radix` is
|
||||
* `undefined` or `0` a `radix` of `10` is used unless `value` is a hexadecimal,
|
||||
* `undefined` or `0`, a `radix` of `10` is used unless `value` is a hexadecimal,
|
||||
* in which case a `radix` of `16` is used.
|
||||
*
|
||||
* Note: This method avoids differences in native ES3 and ES5 `parseInt`
|
||||
|
||||
115
dist/lodash.compat.min.js
vendored
115
dist/lodash.compat.min.js
vendored
@@ -6,63 +6,64 @@
|
||||
;(function(){function n(n,t){return typeof n=="undefined"?t:n}function t(n,t){if(n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1}return 0}function r(n,t,r){r=(+r||0)-1;for(var e=n?n.length:0;++r<e;)if(n[r]===t)return r;return-1}function e(n,t){return n.has(t)?0:-1}function u(n){return n.charCodeAt(0)}function o(n,t){for(var r=-1,e=n.length;++r<e&&0<=t.indexOf(n.charAt(r)););return r}function a(n,t){for(var r=n.length;r--&&0<=t.indexOf(n.charAt(r)););return r}function i(n,r){return t(n.a,r.a)||n.b-r.b
|
||||
}function l(n,r){for(var e=-1,u=n.a,o=r.a,a=u.length;++e<a;){var i=t(u[e],o[e]);if(i)return i}return n.b-r.b}function f(n){return function(t){for(var r=-1,e=(t=null!=t&&(t+"").replace(U,c).match(X))?t.length:0,u="";++r<e;)u=n(u,t[r],r,t);return u}}function c(n){return ht[n]}function s(n){return st[n]}function p(n){return"\\"+vt[n]}function h(n){return typeof n.toString!="function"&&typeof(n+"")=="string"}function g(n,t){return(n=null==n?"":n+"")?null==t?n.slice(m(n),d(n)+1):(t+="",n.slice(o(n,t),a(n,t)+1)):n
|
||||
}function v(n,t){return(n=null==n?"":n+"")?null==t?n.slice(m(n)):(t+="",n.slice(o(n,t))):n}function y(n,t){return(n=null==n?"":n+"")?null==t?n.slice(0,d(n)+1):(t+="",n.slice(0,a(n,t)+1)):n}function m(n){for(var t=-1,r=n.length;++t<r;){var e=n.charCodeAt(t);if((160<e||9>e||13<e)&&32!=e&&160!=e&&5760!=e&&6158!=e&&(8192>e||8202<e&&8232!=e&&8233!=e&&8239!=e&&8287!=e&&12288!=e&&65279!=e))break}return t}function d(n){for(var t=n.length;t--;){var r=n.charCodeAt(t);if((160<r||9>r||13<r)&&32!=r&&160!=r&&5760!=r&&6158!=r&&(8192>r||8202<r&&8232!=r&&8233!=r&&8239!=r&&8287!=r&&12288!=r&&65279!=r))break
|
||||
}return t}function b(n){return pt[n]}function _(t){function o(n){return n&&typeof n=="object"&&!Te(n)&&te.call(n,"__wrapped__")?n:new a(n)}function a(n,t){this.__chain__=!!t,this.__wrapped__=n}function c(n){function t(){if(u){for(var n=-1,a=arguments.length,i=Ir(a);++n<a;)i[n]=arguments[n];i=At(u,o,i)}return this instanceof t?(n=d(r.prototype),i=r.apply(n,i||arguments),vr(i)?i:n):r.apply(e,i||arguments)}var r=n[0],e=n[3],u=n[4],o=n[6];return Ee(t,n),t}function m(n,t,r,e,u){if(r){var o=r(n);if(typeof o!="undefined")return o
|
||||
}if(!vr(n))return n;var a=Xr.call(n);if(!lt[a]||!ke.nodeClass&&h(n))return n;var i=Ce[a];switch(a){case nt:case tt:return new i(+n);case ut:case it:return new i(n);case at:return o=i(n.source,z.exec(n)),o.lastIndex=n.lastIndex,o}if(a=Te(n),t){e||(e=[]),u||(u=[]);for(var l=e.length;l--;)if(e[l]==n)return u[l];o=a?i(n.length):{}}else o=a?qt(n):fr({},n);return a&&(te.call(n,"index")&&(o.index=n.index),te.call(n,"input")&&(o.input=n.input)),t?(e.push(n),u.push(o),(a?pt:wt)(n,function(n,a){o[a]=m(n,t,r,e,u)
|
||||
}),o):o}function d(n){return vr(n)?ce(n):{}}function U(n,t,r){if(typeof n!="function")return kr;if(typeof t=="undefined"||!("prototype"in n))return n;var e=n[S];if(typeof e=="undefined"&&(ke.funcNames&&(e=!n.name),e=e||!ke.funcDecomp,!e)){var u=Qr.call(n);ke.funcNames||(e=!B.test(u)),e||(e=V.test(u),Ee(n,e))}if(false===e||true!==e&&e[1]&x)return n;switch(r){case 1:return function(r){return n.call(t,r)};case 2:return function(r,e){return n.call(t,r,e)};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)}}return ar(n,t)}function X(n){function t(){for(var n=-1,v=arguments.length,y=Ir(v);++n<v;)y[n]=arguments[n];if(a&&(y=At(a,l,y)),i){for(var n=i,m=f,b=-1,_=m.length,w=-1,j=ve(y.length-_,0),k=-1,A=n.length,S=Ir(j+A);++w<j;)S[w]=y[w];for(j=w;++k<A;)S[j+k]=n[k];for(;++b<_;)S[j+m[b]]=y[w++];y=S}return p&&v<u?(e|=O,e&=~E,h||(e&=~(x|C)),v=ve(0,u-v),X([r,e,v,o,y,null,[]])):(v=c?o:this,s&&(r=v[g]),this instanceof t?(v=d(r.prototype),n=r.apply(v,y),vr(n)?n:v):r.apply(v,y))
|
||||
}var r=n[0],e=n[1],u=n[2],o=n[3],a=n[4],i=n[5],l=n[6],f=n[7],c=e&x,s=e&C,p=e&j,h=e&k,g=r;return Ee(t,n),t}function st(n,t){var u=n?n.length:0;if(!u)return[];var o=-1,a=Nt(),i=a===r,l=i&&Oe&&t&&200<=t.length,i=i&&!l,f=[],c=t?t.length:0;l&&(a=e,t=Oe(t));n:for(;++o<u;)if(l=n[o],i){for(var s=c;s--;)if(t[s]===l)continue n;f.push(l)}else 0>a(t,l)&&f.push(l);return f}function pt(n,t){var r=-1,e=n,u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=Zr)for(ke.unindexedChars&&dr(e)&&(e=e.split(""));++r<u&&false!==t(e[r],r,n););else wt(n,t);
|
||||
return n}function ht(n,t){var r=n,e=n?n.length:0;if(typeof e=="number"&&-1<e&&e<=Zr)for(ke.unindexedChars&&dr(r)&&(r=r.split(""));e--&&false!==t(r[e],e,n););else xt(n,t);return n}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 vt(n,t,r,e){e=(+e||0)-1;for(var u=n?n.length:0,o=[];++e<u;){var a=n[e];if(a&&typeof a=="object"&&typeof a.length=="number"&&(Te(a)||pr(a))){t||(a=vt(a,t,r));var i=-1,l=a.length,f=o.length;for(o.length+=l;++i<l;)o[f++]=a[i]
|
||||
}else r||o.push(a)}return o}function mt(n,t,r){var e=-1;r=r(n);for(var u=r.length;++e<u;){var o=r[e];if(false===t(n[o],o,n))break}return n}function dt(n,t,r){r=r(n);for(var e=r.length;e--;){var u=r[e];if(false===t(n[u],u,n))break}return n}function _t(n,t){mt(n,t,br)}function wt(n,t){return mt(n,t,We)}function xt(n,t){return dt(n,t,We)}function Ct(n,t,r,e,u,o){if(r){var a=r(n,t);if(typeof a!="undefined")return!!a}if(n===t)return 0!==n||1/n==1/t;var i=typeof n,l=typeof t;if(n===n&&(null==n||null==t||"function"!=i&&"object"!=i&&"function"!=l&&"object"!=l))return false;
|
||||
var f=Xr.call(n),i=Xr.call(t),c=f==J,l=i==J;if(c&&(f=ot),l&&(i=ot),f!=i)return false;switch(f){case nt:case tt:return+n==+t;case ut:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case at:case it:return n==Dr(t)}if(i=f==Q,!i){var s=te.call(n,"__wrapped__"),p=te.call(t,"__wrapped__");if(s||p)return Ct(s?n.__wrapped__:n,p?t.__wrapped__:t,r,e,u,o);if(f!=ot||!ke.nodeClass&&(h(n)||h(t)))return false;if(ke.argsObject||(c=pr(n),l=pr(t)),f=!c&&te.call(n,"constructor"),s=!l&&te.call(t,"constructor"),f!=s||!f&&(c=c?Pr:n.constructor,l=l?Pr:t.constructor,c!=l&&!(gr(c)&&c instanceof c&&gr(l)&&l instanceof l)&&"constructor"in n&&"constructor"in t))return false
|
||||
}for(u||(u=[]),o||(o=[]),l=u.length;l--;)if(u[l]==n)return o[l]==t;var g=0,a=true;if(u.push(n),o.push(t),i){if(l=n.length,g=t.length,(a=g==l)||e)for(;g--;)if(i=l,c=t[g],e)for(;i--&&!(a=Ct(n[i],c,r,e,u,o)););else if(!(a=Ct(n[g],c,r,e,u,o)))break}else _t(t,function(t,i,l){return te.call(l,i)?(g++,a=te.call(n,i)&&Ct(n[i],t,r,e,u,o)):void 0}),a&&!e&&_t(n,function(n,t,r){return te.call(r,t)?a=-1<--g:void 0});return u.pop(),o.pop(),a}function jt(n,t,r,e,u){(Te(t)?pt:wt)(t,function(t,o){var a,i,l=t,f=n[o];
|
||||
if(t&&((i=Te(t))||Le(t))){for(l=e.length;l--;)if(a=e[l]==t){f=u[l];break}if(!a){var c;r&&(l=r(f,t),c=typeof l!="undefined")&&(f=l),c||(f=i?Te(f)?f:[]:Le(f)?f:{}),e.push(t),u.push(f),c||jt(f,t,r,e,u)}}else r&&(l=r(f,t),typeof l=="undefined"&&(l=t)),typeof l!="undefined"&&(f=l);n[o]=f})}function kt(n,t){return n+Jr(be()*(t-n+1))}function Ot(n,t,u){var o=n?n.length:0;if(!o)return[];var a=-1,i=Nt(),l=!t&&i===r,f=l&&Oe&&200<=o,l=l&&!f,c=[];if(f)var s=Oe(),i=e;else s=u&&!t?[]:c;n:for(;++a<o;){var p=n[a],h=u?u(p,a,n):p;
|
||||
if(l){for(var g=s.length;g--;)if(s[g]===h)continue n;u&&s.push(h),c.push(p)}else t?a&&s===h||(s=h,c.push(p)):0>i(s,h)&&((u||f)&&s.push(h),c.push(p))}return c}function Et(n,t){for(var r=-1,e=t(n),u=e.length,o=Ir(u);++r<u;)o[r]=n[e[r]];return o}function At(n,t,r){for(var e=t.length,u=-1,o=ve(r.length-e,0),a=-1,i=n.length,l=Ir(o+i);++a<i;)l[a]=n[a];for(;++u<e;)l[t[u]]=r[u];for(;o--;)l[a++]=r[u++];return l}function St(n,t){return function(r,e,u){var a=t?[[],[]]:{};if(e=o.createCallback(e,u,3),Te(r)){u=-1;
|
||||
for(var i=r.length;++u<i;){var l=r[u];n(a,l,e(l,u,r),r)}}else pt(r,function(t,r,u){n(a,t,e(t,r,u),u)});return a}}function It(n,t,r){return n=n.length,t|=0,n<t?(t-=n,r=null==r?" ":Dr(r),Cr(r,Gr(t/r.length)).slice(0,t)):""}function Rt(n,t,r,e,u,o,a,i){var l=t&x,f=t&C,s=t&O,p=t&E;if(!f&&!gr(n))throw new zr;s&&!u.length&&(t&=~O,s=u=false),p&&!o.length&&(t&=~E,p=o=false);var h=!f&&n[S];return h&&true!==h?(h=qt(h),h[4]&&(h[4]=qt(h[4])),h[5]&&(h[5]=qt(h[5])),typeof r=="number"&&(h[2]=r),n=h[1]&x,l&&!n&&(h[3]=e),!l&&n&&(t|=k),s&&(h[4]?re.apply(h[4],u):h[4]=u),p&&(h[5]?ie.apply(h[5],o):h[5]=o),h[1]|=t,Rt.apply(null,h)):(null==r?r=f?0:n.length:0>r&&(r=0),s&&(a=[]),p&&(i=[]),h=[n,t,r,e,u,o,a,i],t==x||t==(x|O)?c(h):X(h))
|
||||
}function Nt(){var n=(n=o.indexOf)===$t?r:n;return n}function Tt(n){return typeof n=="function"&&Yr.test(Qr.call(n))}function Lt(n){var t,r;return!n||Xr.call(n)!=ot||!te.call(n,"constructor")&&(t=n.constructor,gr(t)&&!(t instanceof t))||!ke.argsClass&&pr(n)||!ke.nodeClass&&h(n)?false:ke.ownLast?(_t(n,function(n,t,e){return r=te.call(e,t),false}),false!==r):(_t(n,function(n,t){r=t}),typeof r=="undefined"||te.call(n,r))}function Wt(n){for(var t=-1,r=br(n),e=r.length,u=[];++t<e;){var o=r[t];te.call(n,o)&&u.push(o)
|
||||
}return u}function Ft(n,t,r){var e=-1,u=n?n.length:0;for(t=o.createCallback(t,r,3);++e<u;)if(t(n[e],e,n))return e;return-1}function Pt(n,t,r){if(typeof t!="number"&&null!=t){var e=-1,u=n?n.length:0,a=0;for(t=o.createCallback(t,r,3);++e<u&&t(n[e],e,n);)a++}else if(a=t,null==a||r)return n?n[0]:w;return qt(n,0,0>a?0:a)}function $t(n,t,e){var u=n?n.length:0;if(typeof e=="number")e=0>e?ve(0,u+e):e||0;else if(e)return e=Ut(n,t),u&&n[e]===t?e:-1;return r(n,t,e)}function Dt(n,t,r){var e=n?n.length:0;if(typeof t!="number"&&null!=t){var u=e,a=0;
|
||||
for(t=o.createCallback(t,r,3);u--&&t(n[u],u,n);)a++}else a=null==t||r?1:t;return a=e-a,qt(n,0,0>a?0:a)}function zt(n,t,r){var e=n?n.length:0;if(typeof t!="number"&&null!=t){var u=e,a=0;for(t=o.createCallback(t,r,3);u--&&t(n[u],u,n);)a++}else if(a=t,null==a||r)return n?n[e-1]:w;return a=e-a,qt(n,0>a?0:a)}function Bt(n,t,r){if(typeof t!="number"&&null!=t){var e=-1,u=n?n.length:0,a=0;for(t=o.createCallback(t,r,3);++e<u&&t(n[e],e,n);)a++}else a=null==t||r?1:0>t?0:t;return qt(n,a)}function qt(n,t,r){var e=-1,u=n?n.length:0;
|
||||
for(t=+t||0,0>t?t=ve(u+t,0):t>u&&(t=u),r=typeof r=="undefined"?u:+r||0,0>r?r=ve(u+r,0):r>u&&(r=u),u=t>r?0:r-t,r=Ir(u);++e<u;)r[e]=n[t+e];return r}function Ut(n,t,r,e){var u=0,a=n?n.length:u;for(r=r?o.createCallback(r,e,1):kr,t=r(t);u<a;)e=u+a>>>1,r(n[e])<t?u=e+1:a=e;return u}function Kt(n,t,r,e){if(!n||!n.length)return[];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)),null!=r&&(r=o.createCallback(r,e,3)),Ot(n,t,r)}function Mt(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,r=n?tr(Ne(n,"length")):0,e=Ir(0>r?0:r);++t<r;)e[t]=Ne(n,t);
|
||||
return e}function Vt(n,t){var r=-1,e=n?n.length:0,u={};for(t||!e||Te(n[0])||(t=[]);++r<e;){var o=n[r];t?u[o]=t[r]:o&&(u[o[0]]=o[1])}return u}function Zt(){return this.__wrapped__}function Xt(n,t,r){var e=n?n.length:0;if(r=typeof r=="number"&&+r||0,typeof e=="number"&&-1<e&&e<=Zr){if(typeof n=="string"||!Te(n)&&dr(n))return r<e?fe?fe.call(n,t,r):-1<n.indexOf(t,r):false;var u=Nt();return r=0>r?ve(0,e+r):r,-1<u(n,t,r)}var o=-1,a=false;return pt(n,function(n){return++o<r?void 0:!(a=n===t)}),a}function Yt(n,t,r){var e=true;
|
||||
if(t=o.createCallback(t,r,3),Te(n)){r=-1;for(var u=n.length;++r<u;)if(!t(n[r],r,n))return false}else pt(n,function(n,r,u){return e=!!t(n,r,u)});return e}function Gt(n,t,r){var e=[];if(t=o.createCallback(t,r,3),Te(n)){r=-1;for(var u=n.length;++r<u;){var a=n[r];t(a,r,n)&&e.push(a)}}else pt(n,function(n,r,u){t(n,r,u)&&e.push(n)});return e}function Ht(n,t,r){return Te(n)?(t=Ft(n,t,r),-1<t?n[t]:w):(t=o.createCallback(t,r,3),gt(n,t,pt))}function Jt(n,t,r){if(t&&typeof r=="undefined"&&Te(n)){r=-1;for(var e=n.length;++r<e&&false!==t(n[r],r,n););}else pt(n,U(t,r,3));
|
||||
return n}function Qt(n,t,r){if(t&&typeof r=="undefined"&&Te(n))for(r=n.length;r--&&false!==t(n[r],r,n););else ht(n,U(t,r,3));return n}function nr(n,t,r){var e=-1,u=n&&n.length,a=Ir(0>u?0:u>>>0);if(t=o.createCallback(t,r,3),Te(n))for(;++e<u;)a[e]=t(n[e],e,n);else pt(n,function(n,r,u){a[++e]=t(n,r,u)});return a}function tr(n,t,r){var e=-1/0,a=e,i=typeof t;if("number"!=i&&"string"!=i||!r||r[t]!==n||(t=null),null==t&&Te(n))for(r=-1,i=n.length;++r<i;){var l=n[r];l>a&&(a=l)}else t=null==t&&dr(n)?u:o.createCallback(t,r,3),pt(n,function(n,r,u){r=t(n,r,u),r>e&&(e=r,a=n)
|
||||
});return a}function rr(n,t,r,e){var u=3>arguments.length;if(t=o.createCallback(t,e,4),Te(n)){var a=-1,i=n.length;for(u&&i&&(r=n[++a]);++a<i;)r=t(r,n[a],a,n)}else pt(n,function(n,e,o){r=u?(u=false,n):t(r,n,e,o)});return r}function er(n,t,r,e){var u=3>arguments.length;return t=o.createCallback(t,e,4),ht(n,function(n,e,o){r=u?(u=false,n):t(r,n,e,o)}),r}function ur(n){var t=-1,r=n&&n.length,e=Ir(0>r?0:r>>>0);return pt(n,function(n){var r=kt(0,++t);e[t]=e[r],e[r]=n}),e}function or(n,t,r){var e;if(t=o.createCallback(t,r,3),Te(n)){r=-1;
|
||||
for(var u=n.length;++r<u;)if(t(n[r],r,n))return true}else pt(n,function(n,r,u){return!(e=t(n,r,u))});return!!e}function ar(n,t){if(3>arguments.length)return Rt(n,x,null,t);if(n)var r=n[S]?n[S][2]:n.length,e=qt(arguments,2),r=r-e.length;return Rt(n,x|O,r,t,e)}function ir(n,t,r){function e(){c&&Hr(c),a=c=s=w,(g||h!==t)&&(p=qe(),i=n.apply(f,o),c||a||(o=f=null))}function u(){var r=t-(qe()-l);0>=r||r>t?(a&&Hr(a),r=s,a=c=s=w,r&&(p=qe(),i=n.apply(f,o),c||a||(o=f=null))):c=oe(u,r)}var o,a,i,l,f,c,s,p=0,h=false,g=true;
|
||||
if(!gr(n))throw new zr;if(t=0>t?0:t,true===r)var v=true,g=false;else vr(r)&&(v=r.leading,h="maxWait"in r&&(ve(t,r.maxWait)||0),g="trailing"in r?r.trailing:g);return function(){if(o=arguments,l=qe(),f=this,s=g&&(c||!v),false===h)var r=v&&!c;else{a||v||(p=l);var y=h-(l-p),m=0>=y||y>h;m?(a&&(a=Hr(a)),p=l,i=n.apply(f,o)):a||(a=oe(e,y))}return m&&c?c=Hr(c):c||t===h||(c=oe(u,t)),r&&(m=true,i=n.apply(f,o)),!m||c||a||(o=f=null),i}}function lr(n){if(!gr(n))throw new zr;return function(){return!n.apply(this,arguments)
|
||||
}}function fr(n,t,r){var e=arguments;if(!n||2>e.length)return n;var u=0,o=e.length,a=typeof r;if("number"!=a&&"string"!=a||!e[3]||e[3][r]!==t||(o=2),3<o&&"function"==typeof e[o-2])var i=U(e[--o-1],e[o--],2);else 2<o&&"function"==typeof e[o-1]&&(i=e[--o]);for(;++u<o;){t=e[u];for(var a=-1,l=We(t),f=l.length;++a<f;){var c=l[a];n[c]=i?i(n[c],t[c]):t[c]}}return n}function cr(t){if(!t||2>arguments.length)return t;var r=qt(arguments);return r.push(n),fr.apply(null,r)}function sr(n){var t=[];return _t(n,function(n,r){gr(n)&&t.push(r)
|
||||
}),t.sort()}function pr(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Xr.call(n)==J||false}function hr(n){return n&&typeof n=="object"&&1===n.nodeType&&(ke.nodeClass?-1<Xr.call(n).indexOf("Element"):h(n))||false}function gr(n){return typeof n=="function"}function vr(n){var t=typeof n;return n&&("function"==t||"object"==t)||false}function yr(n){var t=typeof n;return"number"==t||n&&"object"==t&&Xr.call(n)==ut||false}function mr(n){var t=typeof n;return n&&("function"==t||"object"==t)&&Xr.call(n)==at||false
|
||||
}function dr(n){return typeof n=="string"||n&&typeof n=="object"&&Xr.call(n)==it||false}function br(n){var t=[];if(!vr(n))return t;ke.nonEnumArgs&&n.length&&pr(n)&&(n=qt(n));var r,e=ke.enumPrototypes&&typeof n=="function",u=ke.enumErrorProps&&(n===qr||n instanceof Tr);for(r in n)e&&"prototype"==r||u&&("message"==r||"name"==r)||t.push(r);if(ke.nonEnumShadows&&n!==Ur){if(r=n.constructor,e=-1,u=H.length,n===(r&&r.prototype))var o=n===Kr?it:n===qr?rt:Xr.call(n),o=je[o];for(;++e<u;)r=H[e],o&&o[r]||!te.call(n,r)||t.push(r)
|
||||
}return t}function _r(n,t,r){var e={};if(typeof t!="function")for(var u=-1,a=vt(arguments,true,false,1),i=vr(n)?a.length:0;++u<i;){var l=a[u];l in n&&(e[l]=n[l])}else t=o.createCallback(t,r,3),_t(n,function(n,r,u){t(n,r,u)&&(e[r]=n)});return e}function wr(n){return Et(n,We)}function xr(n){return null==n?"":Dr(n).replace(M,"\\$&")}function Cr(n,t){var r="";if(t|=0,1>t||null==n)return r;n=Dr(n);do t%2&&(r+=n),t=Jr(t/2),n+=n;while(t);return r}function jr(n,t,r){var e=typeof n;return"function"==e||null==n?(typeof t=="undefined"||!("prototype"in n))&&n||U(n,t,r):"object"!=e?Sr(n):Or(n)
|
||||
}function kr(n){return n}function Or(n){n||(n={});var t=We(n),r=t.length,e=t[0],u=n[e];return 1!=r||u!==u||vr(u)?function(e){for(var u=r,o=false;u--&&(o=t[u],o=te.call(e,o)&&Ct(e[o],n[o],null,true)););return o}:function(n){return te.call(n,e)?(n=n[e],u===n&&(0!==u||1/u==1/n)):false}}function Er(n,t,r){var e=true,u=t&&sr(t);t&&(r||u.length)||(null==r&&(r=t),t=n,n=o,u=sr(t)),false===r?e=false:vr(r)&&"chain"in r&&(e=r.chain),r=-1;for(var a=gr(n),i=u?u.length:0;++r<i;){var l=u[r],f=n[l]=t[l];a&&(n.prototype[l]=function(t){return function(){var r=this.__chain__,u=this.__wrapped__,o=[u];
|
||||
if(re.apply(o,arguments),o=t.apply(n,o),e||r){if(u===o&&vr(o))return this;o=new n(o),o.__chain__=r}return o}}(f))}}function Ar(){}function Sr(n){return function(t){return null==t?w:t[n]}}t=t?bt.defaults(yt.Object(),t,bt.pick(yt,G)):yt;var Ir=t.Array,Rr=t.Boolean,Nr=t.Date,Tr=t.Error,Lr=t.Function,Wr=t.Math,Fr=t.Number,Pr=t.Object,$r=t.RegExp,Dr=t.String,zr=t.TypeError,Br=Ir.prototype,qr=Tr.prototype,Ur=Pr.prototype,Kr=Dr.prototype,Mr=(Mr=t.window)&&Mr.document,Vr=t._,Zr=Wr.pow(2,53)-1,Xr=Ur.toString,Yr=$r("^"+xr(Xr).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Gr=Wr.ceil,Hr=t.clearTimeout,Jr=Wr.floor,Qr=Lr.prototype.toString,ne=Tt(ne=Pr.getPrototypeOf)&&ne,te=Ur.hasOwnProperty,re=Br.push,ee=Ur.propertyIsEnumerable,ue=Tt(ue=t.Set)&&ue,oe=t.setTimeout,ae=Br.splice,ie=Br.unshift,le=function(){try{var n={},t=Tt(t=Pr.defineProperty)&&t,r=t(n,n,n)&&t
|
||||
}catch(e){}return r}(),fe=Tt(fe=Kr.contains)&&fe,ce=Tt(ce=Pr.create)&&ce,se=Tt(se=Ir.isArray)&&se,pe=t.isFinite,he=t.isNaN,ge=Tt(ge=Pr.keys)&&ge,ve=Wr.max,ye=Wr.min,me=Tt(me=Nr.now)&&me,de=t.parseInt,be=Wr.random,_e=Tt(_e=Kr.trim)&&!_e.call(Y)&&_e,we=Tt(we=Kr.trimLeft)&&!we.call(Y)&&we,xe=Tt(xe=Kr.trimRight)&&!xe.call(Y)&&xe,Ce={};Ce[Q]=Ir,Ce[nt]=Rr,Ce[tt]=Nr,Ce[et]=Lr,Ce[ot]=Pr,Ce[ut]=Fr,Ce[at]=$r,Ce[it]=Dr;var je={};je[Q]=je[tt]=je[ut]={constructor:true,toLocaleString:true,toString:true,valueOf:true},je[nt]=je[it]={constructor:true,toString:true,valueOf:true},je[rt]=je[et]=je[at]={constructor:true,toString:true},je[ot]={constructor:true},function(){for(var n=H.length;n--;){var t,r=H[n];
|
||||
for(t in je)te.call(je,t)&&!te.call(je[t],r)&&(je[t][r]=false)}}(),a.prototype=o.prototype;var ke=o.support={};!function(){function n(){this.x=1}var r={0:1,length:1},e=[];n.prototype={valueOf:1,y:1};for(var u in new n)e.push(u);for(u in arguments);ke.argsClass=Xr.call(arguments)==J,ke.argsObject=arguments.constructor==Pr&&!(arguments instanceof Ir),ke.enumErrorProps=ee.call(qr,"message")||ee.call(qr,"name"),ke.enumPrototypes=ee.call(n,"prototype"),ke.funcDecomp=!Tt(t.WinRTError)&&V.test(_),ke.funcNames=typeof Lr.name=="string",ke.nonEnumArgs="0"!=u,ke.nonEnumShadows=!/valueOf/.test(e),ke.ownLast="x"!=e[0],ke.spliceObjects=(ae.call(r,0,1),!r[0]),ke.unindexedChars="xx"!="x"[0]+Pr("x")[0];
|
||||
try{ke.dom=11===Mr.createDocumentFragment().nodeType}catch(o){ke.dom=false}try{ke.nodeClass=!(Xr.call(undefined)==ot&&!({toString:0}+""))}catch(a){ke.nodeClass=true}}(1),o.templateSettings={escape:F,evaluate:P,interpolate:$,variable:"",imports:{_:o}},ce||(d=function(){function n(){}return function(r){if(vr(r)){n.prototype=r;var e=new n;n.prototype=null}return e||t.Object()}}());var Oe=ue&&function(n){var t=new ue,r=n?n.length:0;for(t.push=t.add;r--;)t.push(n[r]);return t},Ee=le?function(n,t){ct.value=t,le(n,S,ct)}:Ar,Ae=St(function(n,t,r){te.call(n,r)?n[r]++:n[r]=1
|
||||
}),Se=St(function(n,t,r){te.call(n,r)?n[r].push(t):n[r]=[t]}),Ie=St(function(n,t,r){n[r]=t}),Re=St(function(n,t,r){n[r?0:1].push(t)},true),Ne=nr;ke.argsClass||(pr=function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&te.call(n,"callee")&&!ee.call(n,"callee")||false});var Te=se||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Xr.call(n)==Q||false};ke.dom||(hr=function(n){return n&&typeof n=="object"&&1===n.nodeType&&!Le(n)||false}),gr(/x/)&&(gr=function(n){return typeof n=="function"&&Xr.call(n)==et
|
||||
});var Le=ne?function(n){if(!n||Xr.call(n)!=ot||!ke.argsClass&&pr(n))return false;var t=n.valueOf,r=Tt(t)&&(r=ne(t))&&ne(r);return r?n==r||ne(n)==r:Lt(n)}:Lt,We=ge?function(n){return ke.enumPrototypes&&typeof n=="function"||ke.nonEnumArgs&&n&&n.length&&pr(n)?Wt(n):vr(n)?ge(n):[]}:Wt,Fe=f(function(n,t,r){return n+t.charAt(0)[r?"toUpperCase":"toLowerCase"]()+t.slice(1)}),Pe=f(function(n,t,r){return n+(r?"-":"")+t.toLowerCase()}),$e=f(function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}),De=_e?function(n,t){return null==n?"":null==t?_e.call(n):g(n,t)
|
||||
}:g,ze=we?function(n,t){return null==n?"":null==t?we.call(n):v(n,t)}:v,Be=xe?function(n,t){return null==n?"":null==t?xe.call(n):y(n,t)}:y,qe=me||function(){return(new Nr).getTime()},Ue=8==de(Y+"08")?de:function(n,t){return n=De(n),de(n,+t||(q.test(n)?16:10))};return o.after=function(n,t){if(!gr(t))throw new zr;return function(){return 1>--n?t.apply(this,arguments):void 0}},o.assign=fr,o.at=function(n,t){var r=arguments,e=-1,u=vt(r,true,false,1),o=u.length,a=typeof t;for("number"!=a&&"string"!=a||!r[2]||r[2][t]!==n||(o=1),ke.unindexedChars&&dr(n)&&(n=n.split("")),r=Ir(o);++e<o;)r[e]=n[u[e]];
|
||||
return r},o.bind=ar,o.bindAll=function(n){for(var t=1<arguments.length?vt(arguments,true,false,1):sr(n),r=-1,e=t.length;++r<e;){var u=t[r];n[u]=Rt(n[u],x,null,n)}return n},o.bindKey=function(n,t){return 3>arguments.length?Rt(t,x|C,null,n):Rt(t,x|C|O,null,n,qt(arguments,2))},o.chain=function(n){return n=new a(n),n.__chain__=true,n},o.compact=function(n){for(var t=-1,r=n?n.length:0,e=0,u=[];++t<r;){var o=n[t];o&&(u[e++]=o)}return u},o.compose=function(){for(var n=arguments,t=n.length,r=t;r--;)if(!gr(n[r]))throw new zr;
|
||||
return function(){for(var r=t-1,e=n[r].apply(this,arguments);r--;)e=n[r].call(this,e);return e}},o.constant=function(n){return function(){return n}},o.countBy=Ae,o.create=function(n,t){var r=d(n);return t?fr(r,t):r},o.createCallback=jr,o.curry=function(n,t){return typeof t!="number"&&(t=+t||(n?n.length:0)),Rt(n,j,t)},o.debounce=ir,o.defaults=cr,o.defer=function(n){if(!gr(n))throw new zr;var t=qt(arguments,1);return oe(function(){n.apply(w,t)},1)},o.delay=function(n,t){if(!gr(n))throw new zr;var r=qt(arguments,2);
|
||||
return oe(function(){n.apply(w,r)},t)},o.difference=function(n){return st(n,vt(arguments,true,true,1))},o.drop=Bt,o.dropRight=Dt,o.dropRightWhile=Dt,o.dropWhile=Bt,o.filter=Gt,o.flatten=function(n,t,r,e){if(!n||!n.length)return[];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)),null!=r&&(n=nr(n,r,e)),vt(n,t)},o.forEach=Jt,o.forEachRight=Qt,o.forIn=function(n,t,r){return t=t&&typeof r=="undefined"?t:U(t,r,3),mt(n,t,br)},o.forInRight=function(n,t,r){return t=U(t,r,3),dt(n,t,br)
|
||||
},o.forOwn=function(n,t,r){return t=t&&typeof r=="undefined"?t:U(t,r,3),wt(n,t)},o.forOwnRight=function(n,t,r){return t=U(t,r,3),dt(n,t,We)},o.functions=sr,o.groupBy=Se,o.indexBy=Ie,o.initial=Dt,o.intersection=function(n){if(!n)return[];for(var t=[],u=-1,o=arguments.length,a=[],i=Nt(),l=Oe&&i===r,f=[];++u<o;){var c=arguments[u];(Te(c)||pr(c))&&(t.push(c),a.push(l&&120<=c.length&&Oe(u?c:f)))}o=t.length,n=t[0];var l=-1,s=n?n.length:0,p=[];n:for(;++l<s;){var h=a[0],c=n[l];if(0>(h?e(h,c):i(f,c))){for(u=o,(h||f).push(c);--u;)if(h=a[u],0>(h?e(h,c):i(t[u],c)))continue n;
|
||||
p.push(c)}}return p},o.invert=function(n,t){for(var r=-1,e=We(n),u=e.length,o={};++r<u;){var a=e[r],i=n[a];t?te.call(o,i)?o[i].push(a):o[i]=[a]:o[i]=a}return o},o.invoke=function(n,t){var r=qt(arguments,2),e=-1,u=typeof t=="function",o=n&&n.length,a=Ir(0>o?0:o>>>0);return pt(n,function(n){var o=u?t:null!=n&&n[t];a[++e]=o?o.apply(n,r):w}),a},o.keys=We,o.keysIn=br,o.map=nr,o.mapValues=function(n,t,r){var e={};return t=o.createCallback(t,r,3),wt(n,function(n,r,u){e[r]=t(n,r,u)}),e},o.matches=Or,o.max=tr,o.memoize=function(n,t){function r(){var e=r.cache,u=t?t.apply(this,arguments):"_"+arguments[0];
|
||||
return te.call(e,u)?e[u]:e[u]=n.apply(this,arguments)}if(!gr(n))throw new zr;return r.cache={},r},o.merge=function(n,t,r){if(!n)return n;var e=arguments,u=e.length,o=typeof r;if("number"!=o&&"string"!=o||!e[3]||e[3][r]!==t||(u=2),3<u&&"function"==typeof e[u-2])var a=U(e[--u-1],e[u--],2);else 2<u&&"function"==typeof e[u-1]&&(a=e[--u]);for(var e=qt(e,1,u),o=-1,i=[],l=[];++o<u;)jt(n,e[o],a,i,l);return n},o.min=function(n,t,r){var e=1/0,a=e,i=typeof t;if("number"!=i&&"string"!=i||!r||r[t]!==n||(t=null),null==t&&Te(n))for(r=-1,i=n.length;++r<i;){var l=n[r];
|
||||
l<a&&(a=l)}else t=null==t&&dr(n)?u:o.createCallback(t,r,3),pt(n,function(n,r,u){r=t(n,r,u),r<e&&(e=r,a=n)});return a},o.negate=lr,o.omit=function(n,t,r){if(typeof t=="function")return t=o.createCallback(t,r,3),_r(n,lr(t));for(var e=vt(arguments,true,false,1),u=e.length;u--;)e[u]=Dr(e[u]);return _r(n,st(br(n),e))},o.once=function(n){var t,r;if(!gr(n))throw new zr;return function(){return t?r:(t=true,r=n.apply(this,arguments),n=null,r)}},o.pairs=function(n){for(var t=-1,r=We(n),e=r.length,u=Ir(e);++t<e;){var o=r[t];
|
||||
u[t]=[o,n[o]]}return u},o.partial=function(n){if(n)var t=n[S]?n[S][2]:n.length,r=qt(arguments,1),t=t-r.length;return Rt(n,O,t,null,r)},o.partialRight=function(n){if(n)var t=n[S]?n[S][2]:n.length,r=qt(arguments,1),t=t-r.length;return Rt(n,E,t,null,null,r)},o.partition=Re,o.pick=_r,o.pluck=Ne,o.property=Sr,o.pull=function(n){for(var t=0,r=arguments.length,e=n?n.length:0;++t<r;)for(var u=-1,o=arguments[t];++u<e;)n[u]===o&&(ae.call(n,u--,1),e--);return n},o.range=function(n,t,r){n=+n||0,r=null==r?1:+r||0,null==t?(t=n,n=0):t=+t||0;
|
||||
var e=-1;t=ve(0,Gr((t-n)/(r||1)));for(var u=Ir(t);++e<t;)u[e]=n,n+=r;return u},o.reject=function(n,t,r){return t=o.createCallback(t,r,3),Gt(n,lr(t))},o.remove=function(n,t,r){var e=-1,u=n?n.length:0,a=[];for(t=o.createCallback(t,r,3);++e<u;)r=n[e],t(r,e,n)&&(a.push(r),ae.call(n,e--,1),u--);return a},o.rest=Bt,o.shuffle=ur,o.slice=qt,o.sortBy=function(n,t,r){var e=-1,u=n&&n.length,a=t&&Te(t),f=Ir(0>u?0:u>>>0);for(a||(t=o.createCallback(t,r,3)),pt(n,function(n,r,u){if(a)for(r=t.length,u=Ir(r);r--;)u[r]=n[t[r]];
|
||||
else u=t(n,r,u);f[++e]={a:u,b:e,c:n}}),u=f.length,f.sort(a?l:i);u--;)f[u]=f[u].c;return f},o.tap=function(n,t,r){return t.call(r,n),n},o.throttle=function(n,t,r){var e=true,u=true;if(!gr(n))throw new zr;return false===r?e=false:vr(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),ft.leading=e,ft.maxWait=+t,ft.trailing=u,ir(n,t,ft)},o.times=function(n,t,r){n=-1<(n=+n)?n:0;var e=-1,u=Ir(n);for(t=U(t,r,1);++e<n;)u[e]=t(e);return u},o.toArray=function(n){var t=n&&n.length;return typeof t=="number"&&-1<t&&t<=Zr?ke.unindexedChars&&dr(n)?n.split(""):qt(n):wr(n)
|
||||
},o.transform=function(n,t,r,e){var u=Te(n);if(null==r)if(u)r=[];else{var a=n&&n.constructor;r=d(a&&a.prototype)}return t&&(t=o.createCallback(t,e,4),(u?pt:wt)(n,function(n,e,u){return t(r,n,e,u)})),r},o.union=function(){return Ot(vt(arguments,true,true))},o.uniq=Kt,o.values=wr,o.valuesIn=function(n){return Et(n,br)},o.where=Gt,o.without=function(){return st(arguments[0],qt(arguments,1))},o.wrap=function(n,t){return Rt(t,O,null,null,[n])},o.xor=function(){for(var n=-1,t=arguments.length;++n<t;){var r=arguments[n];
|
||||
if(Te(r)||pr(r))var e=e?st(e,r).concat(st(r,e)):r}return e?Ot(e):[]},o.zip=Mt,o.zipObject=Vt,o.callback=jr,o.collect=nr,o.each=Jt,o.eachRight=Qt,o.extend=fr,o.methods=sr,o.object=Vt,o.select=Gt,o.tail=Bt,o.unique=Kt,o.unzip=Mt,Er(fr({},o)),o.camelCase=Fe,o.capitalize=function(n){return null==n?"":(n=Dr(n),n.charAt(0).toUpperCase()+n.slice(1))},o.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"&&U(r,e,1),m(n,t,r)
|
||||
},o.cloneDeep=function(n,t,r){return t=typeof t=="function"&&U(t,r,1),m(n,true,t)},o.contains=Xt,o.endsWith=function(n,t,r){n=null==n?"":Dr(n),t=Dr(t);var e=n.length;return r=(typeof r=="number"?ye(ve(+r||0,0),e):e)-t.length,0<=r&&n.indexOf(t,r)==r},o.escape=function(n){return null==n?"":Dr(n).replace(W,s)},o.escapeRegExp=xr,o.every=Yt,o.find=Ht,o.findIndex=Ft,o.findKey=function(n,t,r){return t=o.createCallback(t,r,3),gt(n,t,wt,true)},o.findLast=function(n,t,r){return t=o.createCallback(t,r,3),gt(n,t,ht)
|
||||
},o.findLastIndex=function(n,t,r){var e=n?n.length:0;for(t=o.createCallback(t,r,3);e--;)if(t(n[e],e,n))return e;return-1},o.findLastKey=function(n,t,r){return t=o.createCallback(t,r,3),gt(n,t,xt,true)},o.has=function(n,t){return n?te.call(n,t):false},o.identity=kr,o.indexOf=$t,o.isArguments=pr,o.isArray=Te,o.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&Xr.call(n)==nt||false},o.isDate=function(n){return n&&typeof n=="object"&&Xr.call(n)==tt||false},o.isElement=hr,o.isEmpty=function(n){var t=true;
|
||||
if(!n)return t;var r=Xr.call(n),e=n.length;return-1<e&&e<=Zr&&(r==Q||r==it||(ke.argsClass?r==J:pr(n))||r==ot&&gr(n.splice))?!e:(wt(n,function(){return t=false}),t)},o.isEqual=function(n,t,r,e){if(r=typeof r=="function"&&U(r,e,2),!r){if(n===t)return 0!==n||1/n==1/t;e=typeof n;var u=typeof t;if(n===n&&(null==n||null==t||"function"!=e&&"object"!=e&&"function"!=u&&"object"!=u))return false}return Ct(n,t,r)},o.isFinite=function(n){return pe(n)&&!he(parseFloat(n))},o.isFunction=gr,o.isNaN=function(n){return yr(n)&&n!=+n
|
||||
},o.isNull=function(n){return null===n},o.isNumber=yr,o.isObject=vr,o.isPlainObject=Le,o.isRegExp=mr,o.isString=dr,o.isUndefined=function(n){return typeof n=="undefined"},o.kebabCase=Pe,o.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(r|=0,e=(0>r?ve(0,e+r):ye(r,e-1))+1);e--;)if(n[e]===t)return e;return-1},o.mixin=Er,o.noConflict=function(){return t._=Vr,this},o.noop=Ar,o.now=qe,o.pad=function(n,t,r){n=null==n?"":Dr(n),t|=0;var e=n.length;return e<t?(e=(t-e)/2,t=Jr(e),e=Gr(e),r=It("",e,r),r.slice(0,t)+n+r):n
|
||||
},o.padLeft=function(n,t,r){return n=null==n?"":Dr(n),It(n,t,r)+n},o.padRight=function(n,t,r){return n=null==n?"":Dr(n),n+It(n,t,r)},o.parseInt=Ue,o.random=function(n,t,r){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=be(),ye(n+r*(t-n+parseFloat("1e-"+((r+"").length-1))),t)):kt(n,t)},o.reduce=rr,o.reduceRight=er,o.repeat=Cr,o.result=function(n,t,r){var e=null==n?w:n[t];return typeof e=="undefined"?r:gr(e)?n[t]():e
|
||||
},o.runInContext=_,o.size=function(n){var t=n?n.length:0;return typeof t=="number"&&-1<t&&t<=Zr?t:We(n).length},o.some=or,o.sortedIndex=Ut,o.snakeCase=$e,o.startsWith=function(n,t,r){return n=null==n?"":Dr(n),r=typeof r=="number"?ye(ve(+r||0,0),n.length):0,n.lastIndexOf(t,r)==r},o.template=function(n,t,r){var e=o.templateSettings;r=cr({},r,e),n=Dr(null==n?"":n);var u,a,i=cr({},r.imports,e.imports),e=We(i),i=wr(i),l=0,f=r.interpolate||K,c="__p+='",f=$r((r.escape||K).source+"|"+f.source+"|"+(f===$?D:K).source+"|"+(r.evaluate||K).source+"|$","g");
|
||||
n.replace(f,function(t,r,e,o,i,f){return e||(e=o),c+=n.slice(l,f).replace(Z,p),r&&(u=true,c+="'+__e("+r+")+'"),i&&(a=true,c+="';"+i+";\n__p+='"),e&&(c+="'+((__t=("+e+"))==null?'':__t)+'"),l=f+t.length,t}),c+="';",(r=r.variable)||(c="with(obj){"+c+"}"),c=(a?c.replace(R,""):c).replace(N,"$1").replace(T,"$1;"),c="function("+(r||"obj")+"){"+(r?"":"obj||(obj={});")+"var __t,__p=''"+(u?",__e=_.escape":"")+(a?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+c+"return __p}";try{var s=Lr(e,"return "+c).apply(w,i)
|
||||
}catch(h){throw h.source=c,h}return t?s(t):(s.source=c,s)},o.trim=De,o.trimLeft=ze,o.trimRight=Be,o.truncate=function(n,t){var r=30,e="...";if(t&&vr(t))var u="separator"in t?t.separator:u,r="length"in t?+t.length||0:r,e="omission"in t?Dr(t.omission):e;else null!=t&&(r=+t||0);if(n=null==n?"":Dr(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(mr(u)){if(n.slice(o).search(u)){var a,i,l=n.slice(0,o);for(u.global||(u=$r(u.source,(z.exec(u)||"")+"g")),u.lastIndex=0;a=u.exec(l);)i=a.index;
|
||||
r=r.slice(0,null==i?o:i)}}else n.indexOf(u,o)!=o&&(u=r.lastIndexOf(u),-1<u&&(r=r.slice(0,u)));return r+e},o.unescape=function(n){return null==n?"":(n=Dr(n),0>n.indexOf(";")?n:n.replace(L,b))},o.uniqueId=function(n){var t=++I;return Dr(null==n?"":n)+t},o.all=Yt,o.any=or,o.detect=Ht,o.findWhere=Ht,o.foldl=rr,o.foldr=er,o.include=Xt,o.inject=rr,Er(function(){var n={};return wt(o,function(t,r){o.prototype[r]||(n[r]=t)}),n}(),false),o.first=Pt,o.last=zt,o.sample=function(n,t,r){return n&&typeof n.length!="number"?n=wr(n):ke.unindexedChars&&dr(n)&&(n=n.split("")),null==t||r?(t=n?n.length:0,0<t?n[kt(0,t-1)]:w):(n=ur(n),n.length=ye(ve(0,t),n.length),n)
|
||||
},o.take=Pt,o.takeRight=zt,o.takeRightWhile=zt,o.takeWhile=Pt,o.head=Pt,wt(o,function(n,t){var r="sample"!==t;o.prototype[t]||(o.prototype[t]=function(t,e){var u=this.__chain__,o=n(this.__wrapped__,t,e);return u||null!=t&&(!e||r&&typeof t=="function")?new a(o,u):o})}),o.VERSION=A,o.prototype.chain=function(){return this.__chain__=true,this},o.prototype.toString=function(){return Dr(this.__wrapped__)},o.prototype.value=Zt,o.prototype.valueOf=Zt,pt(["join","pop","shift"],function(n){var t=Br[n];o.prototype[n]=function(){var n=this.__chain__,r=t.apply(this.__wrapped__,arguments);
|
||||
return n?new a(r,n):r}}),pt(["push","reverse","sort","unshift"],function(n){var t=Br[n];o.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),pt(["concat","splice"],function(n){var t=Br[n];o.prototype[n]=function(){return new a(t.apply(this.__wrapped__,arguments),this.__chain__)}}),ke.spliceObjects||pt(["pop","shift","splice"],function(n){var t=Br[n],r="splice"==n;o.prototype[n]=function(){var n=this.__chain__,e=this.__wrapped__,u=t.apply(e,arguments);return 0===e.length&&delete e[0],n||r?new a(u,n):u
|
||||
}return t}function b(n){return pt[n]}function _(t){function o(n){return n&&typeof n=="object"&&!Ne(n)&&ne.call(n,"__wrapped__")?n:new a(n)}function a(n,t){this.__chain__=!!t,this.__wrapped__=n}function c(n){function t(){if(u){for(var n=-1,a=arguments.length,i=Sr(a);++n<a;)i[n]=arguments[n];i=Et(u,o,i)}return this instanceof t?(n=d(r.prototype),i=r.apply(n,i||arguments),gr(i)?i:n):r.apply(e,i||arguments)}var r=n[0],e=n[3],u=n[4],o=n[6];return Oe(t,n),t}function m(n,t,r,e,u){if(r){var o=r(n);if(typeof o!="undefined")return o
|
||||
}if(!gr(n))return n;var a=Zr.call(n);if(!lt[a]||!je.nodeClass&&h(n))return n;var i=xe[a];switch(a){case nt:case tt:return new i(+n);case ut:case it:return new i(n);case at:return o=i(n.source,z.exec(n)),o.lastIndex=n.lastIndex,o}if(a=Ne(n),t){e||(e=[]),u||(u=[]);for(var l=e.length;l--;)if(e[l]==n)return u[l];o=a?i(n.length):{}}else o=a?Bt(n):lr({},n);return a&&(ne.call(n,"index")&&(o.index=n.index),ne.call(n,"input")&&(o.input=n.input)),t?(e.push(n),u.push(o),(a?pt:_t)(n,function(n,a){o[a]=m(n,t,r,e,u)
|
||||
}),o):o}function d(n){return gr(n)?fe(n):{}}function U(n,t,r){if(typeof n!="function")return jr;if(typeof t=="undefined"||!("prototype"in n))return n;var e=n[S];if(typeof e=="undefined"&&(je.funcNames&&(e=!n.name),e=e||!je.funcDecomp,!e)){var u=Jr.call(n);je.funcNames||(e=!B.test(u)),e||(e=V.test(u),Oe(n,e))}if(false===e||true!==e&&e[1]&x)return n;switch(r){case 1:return function(r){return n.call(t,r)};case 2:return function(r,e){return n.call(t,r,e)};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)}}return or(n,t)}function X(n){function t(){for(var n=-1,v=arguments.length,y=Sr(v);++n<v;)y[n]=arguments[n];if(a&&(y=Et(a,l,y)),i){for(var n=i,m=f,b=-1,_=m.length,w=-1,j=ge(y.length-_,0),k=-1,A=n.length,S=Sr(j+A);++w<j;)S[w]=y[w];for(j=w;++k<A;)S[j+k]=n[k];for(;++b<_;)S[j+m[b]]=y[w++];y=S}return p&&v<u?(e|=O,e&=~E,h||(e&=~(x|C)),v=ge(0,u-v),X([r,e,v,o,y,null,[]])):(v=c?o:this,s&&(r=v[g]),this instanceof t?(v=d(r.prototype),n=r.apply(v,y),gr(n)?n:v):r.apply(v,y))
|
||||
}var r=n[0],e=n[1],u=n[2],o=n[3],a=n[4],i=n[5],l=n[6],f=n[7],c=e&x,s=e&C,p=e&j,h=e&k,g=r;return Oe(t,n),t}function st(n,t){var u=n?n.length:0;if(!u)return[];var o=-1,a=Rt(),i=a===r,l=i&&ke&&t&&200<=t.length,i=i&&!l,f=[],c=t?t.length:0;l&&(a=e,t=ke(t));n:for(;++o<u;)if(l=n[o],i){for(var s=c;s--;)if(t[s]===l)continue n;f.push(l)}else 0>a(t,l)&&f.push(l);return f}function pt(n,t){var r=-1,e=n,u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=Vr)for(je.unindexedChars&&mr(e)&&(e=e.split(""));++r<u&&false!==t(e[r],r,n););else _t(n,t);
|
||||
return n}function ht(n,t){var r=n,e=n?n.length:0;if(typeof e=="number"&&-1<e&&e<=Vr)for(je.unindexedChars&&mr(r)&&(r=r.split(""));e--&&false!==t(r[e],e,n););else wt(n,t);return n}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 vt(n,t,r,e){e=(+e||0)-1;for(var u=n?n.length:0,o=[];++e<u;){var a=n[e];if(a&&typeof a=="object"&&typeof a.length=="number"&&(Ne(a)||sr(a))){t||(a=vt(a,t,r));var i=-1,l=a.length,f=o.length;for(o.length+=l;++i<l;)o[f++]=a[i]
|
||||
}else r||o.push(a)}return o}function mt(n,t,r){var e=-1;r=r(n);for(var u=r.length;++e<u;){var o=r[e];if(false===t(n[o],o,n))break}return n}function dt(n,t,r){r=r(n);for(var e=r.length;e--;){var u=r[e];if(false===t(n[u],u,n))break}return n}function _t(n,t){return mt(n,t,Le)}function wt(n,t){return dt(n,t,Le)}function xt(n,t,r,e,u,o){if(r){var a=r(n,t);if(typeof a!="undefined")return!!a}if(n===t)return 0!==n||1/n==1/t;var i=typeof n,l=typeof t;if(n===n&&(null==n||null==t||"function"!=i&&"object"!=i&&"function"!=l&&"object"!=l))return false;
|
||||
var f=Zr.call(n),i=Zr.call(t),c=f==J,l=i==J;if(c&&(f=ot),l&&(i=ot),f!=i)return false;switch(f){case nt:case tt:return+n==+t;case ut:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case at:case it:return n==$r(t)}if(i=f==Q,!i){var s=ne.call(n,"__wrapped__"),p=ne.call(t,"__wrapped__");if(s||p)return xt(s?n.__wrapped__:n,p?t.__wrapped__:t,r,e,u,o);if(f!=ot||!je.nodeClass&&(h(n)||h(t)))return false;if(je.argsObject||(c=sr(n),l=sr(t)),f=!c&&ne.call(n,"constructor"),s=!l&&ne.call(t,"constructor"),f!=s||!f&&(c=c?Fr:n.constructor,l=l?Fr:t.constructor,c!=l&&!(hr(c)&&c instanceof c&&hr(l)&&l instanceof l)&&"constructor"in n&&"constructor"in t))return false
|
||||
}for(u||(u=[]),o||(o=[]),l=u.length;l--;)if(u[l]==n)return o[l]==t;var g=0,a=true;if(u.push(n),o.push(t),i){if(l=n.length,g=t.length,(a=g==l)||e)for(;g--;)if(i=l,c=t[g],e)for(;i--&&!(a=xt(n[i],c,r,e,u,o)););else if(!(a=xt(n[g],c,r,e,u,o)))break}else mt(t,function(t,i,l){return ne.call(l,i)?(g++,a=ne.call(n,i)&&xt(n[i],t,r,e,u,o)):void 0},dr),a&&!e&&mt(n,function(n,t,r){return ne.call(r,t)?a=-1<--g:void 0},dr);return u.pop(),o.pop(),a}function Ct(n,t,r,e,u){(Ne(t)?pt:_t)(t,function(t,o){var a,i,l=t,f=n[o];
|
||||
if(t&&((i=Ne(t))||Te(t))){for(l=e.length;l--;)if(a=e[l]==t){f=u[l];break}if(!a){var c;r&&(l=r(f,t),c=typeof l!="undefined")&&(f=l),c||(f=i?Ne(f)?f:[]:Te(f)?f:{}),e.push(t),u.push(f),c||Ct(f,t,r,e,u)}}else r&&(l=r(f,t),typeof l=="undefined"&&(l=t)),typeof l!="undefined"&&(f=l);n[o]=f})}function jt(n,t){return n+Hr(de()*(t-n+1))}function kt(n,t,u){var o=n?n.length:0;if(!o)return[];var a=-1,i=Rt(),l=!t&&i===r,f=l&&ke&&200<=o,l=l&&!f,c=[];if(f)var s=ke(),i=e;else s=u&&!t?[]:c;n:for(;++a<o;){var p=n[a],h=u?u(p,a,n):p;
|
||||
if(l){for(var g=s.length;g--;)if(s[g]===h)continue n;u&&s.push(h),c.push(p)}else t?a&&s===h||(s=h,c.push(p)):0>i(s,h)&&((u||f)&&s.push(h),c.push(p))}return c}function Ot(n,t){for(var r=-1,e=t(n),u=e.length,o=Sr(u);++r<u;)o[r]=n[e[r]];return o}function Et(n,t,r){for(var e=t.length,u=-1,o=ge(r.length-e,0),a=-1,i=n.length,l=Sr(o+i);++a<i;)l[a]=n[a];for(;++u<e;)l[t[u]]=r[u];for(;o--;)l[a++]=r[u++];return l}function At(n,t){return function(r,e,u){var a=t?[[],[]]:{};if(e=o.createCallback(e,u,3),Ne(r)){u=-1;
|
||||
for(var i=r.length;++u<i;){var l=r[u];n(a,l,e(l,u,r),r)}}else pt(r,function(t,r,u){n(a,t,e(t,r,u),u)});return a}}function St(n,t,r){return n=n.length,t|=0,n<t?(t-=n,r=null==r?" ":$r(r),xr(r,Yr(t/r.length)).slice(0,t)):""}function It(n,t,r,e,u,o,a,i){var l=t&x,f=t&C,s=t&O,p=t&E;if(!f&&!hr(n))throw new Dr;s&&!u.length&&(t&=~O,s=u=false),p&&!o.length&&(t&=~E,p=o=false);var h=!f&&n[S];return h&&true!==h?(h=Bt(h),h[4]&&(h[4]=Bt(h[4])),h[5]&&(h[5]=Bt(h[5])),typeof r=="number"&&(h[2]=r),n=h[1]&x,l&&!n&&(h[3]=e),!l&&n&&(t|=k),s&&(h[4]?te.apply(h[4],u):h[4]=u),p&&(h[5]?ae.apply(h[5],o):h[5]=o),h[1]|=t,It.apply(null,h)):(null==r?r=f?0:n.length:0>r&&(r=0),s&&(a=[]),p&&(i=[]),h=[n,t,r,e,u,o,a,i],t==x||t==(x|O)?c(h):X(h))
|
||||
}function Rt(){var n=(n=o.indexOf)===Pt?r:n;return n}function Nt(n){return typeof n=="function"&&Xr.test(Jr.call(n))}function Tt(n){var t,r;return!n||Zr.call(n)!=ot||!ne.call(n,"constructor")&&(t=n.constructor,hr(t)&&!(t instanceof t))||!je.argsClass&&sr(n)||!je.nodeClass&&h(n)?false:je.ownLast?(mt(n,function(n,t,e){return r=ne.call(e,t),false},dr),false!==r):(mt(n,function(n,t){r=t},dr),typeof r=="undefined"||ne.call(n,r))}function Lt(n){var t=-1,r=dr(n),e=r.length,u=e&&n.length,o=[];if(typeof u=="number"&&0<u)var a=Ne(n)||je.unindexedChars&&mr(n),i=u-1;
|
||||
for(;++t<e;)u=r[t],(a&&-1<u&&u<=i&&0==u%1||ne.call(n,u))&&o.push(u);return o}function Wt(n,t,r){var e=-1,u=n?n.length:0;for(t=o.createCallback(t,r,3);++e<u;)if(t(n[e],e,n))return e;return-1}function Ft(n,t,r){if(typeof t!="number"&&null!=t){var e=-1,u=n?n.length:0,a=0;for(t=o.createCallback(t,r,3);++e<u&&t(n[e],e,n);)a++}else if(a=t,null==a||r)return n?n[0]:w;return Bt(n,0,0>a?0:a)}function Pt(n,t,e){var u=n?n.length:0;if(typeof e=="number")e=0>e?ge(0,u+e):e||0;else if(e)return e=qt(n,t),u&&n[e]===t?e:-1;
|
||||
return r(n,t,e)}function $t(n,t,r){var e=n?n.length:0;if(typeof t!="number"&&null!=t){var u=e,a=0;for(t=o.createCallback(t,r,3);u--&&t(n[u],u,n);)a++}else a=null==t||r?1:t;return a=e-a,Bt(n,0,0>a?0:a)}function Dt(n,t,r){var e=n?n.length:0;if(typeof t!="number"&&null!=t){var u=e,a=0;for(t=o.createCallback(t,r,3);u--&&t(n[u],u,n);)a++}else if(a=t,null==a||r)return n?n[e-1]:w;return a=e-a,Bt(n,0>a?0:a)}function zt(n,t,r){if(typeof t!="number"&&null!=t){var e=-1,u=n?n.length:0,a=0;for(t=o.createCallback(t,r,3);++e<u&&t(n[e],e,n);)a++
|
||||
}else a=null==t||r?1:0>t?0:t;return Bt(n,a)}function Bt(n,t,r){var e=-1,u=n?n.length:0;for(t=+t||0,0>t?t=ge(u+t,0):t>u&&(t=u),r=typeof r=="undefined"?u:+r||0,0>r?r=ge(u+r,0):r>u&&(r=u),u=t>r?0:r-t,r=Sr(u);++e<u;)r[e]=n[t+e];return r}function qt(n,t,r,e){var u=0,a=n?n.length:u;for(r=r?o.createCallback(r,e,1):jr,t=r(t);u<a;)e=u+a>>>1,r(n[e])<t?u=e+1:a=e;return u}function Ut(n,t,r,e){if(!n||!n.length)return[];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)),null!=r&&(r=o.createCallback(r,e,3)),kt(n,t,r)
|
||||
}function Kt(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,r=n?nr(Re(n,"length")):0,e=Sr(0>r?0:r);++t<r;)e[t]=Re(n,t);return e}function Mt(n,t){var r=-1,e=n?n.length:0,u={};for(t||!e||Ne(n[0])||(t=[]);++r<e;){var o=n[r];t?u[o]=t[r]:o&&(u[o[0]]=o[1])}return u}function Vt(){return this.__wrapped__}function Zt(n,t,r){var e=n?n.length:0;if(r=typeof r=="number"&&+r||0,typeof e=="number"&&-1<e&&e<=Vr){if(typeof n=="string"||!Ne(n)&&mr(n))return r<e?le?le.call(n,t,r):-1<n.indexOf(t,r):false;var u=Rt();
|
||||
return r=0>r?ge(0,e+r):r,-1<u(n,t,r)}var o=-1,a=false;return pt(n,function(n){return++o<r?void 0:!(a=n===t)}),a}function Xt(n,t,r){var e=true;if(t=o.createCallback(t,r,3),Ne(n)){r=-1;for(var u=n.length;++r<u;)if(!t(n[r],r,n))return false}else pt(n,function(n,r,u){return e=!!t(n,r,u)});return e}function Yt(n,t,r){var e=[];if(t=o.createCallback(t,r,3),Ne(n)){r=-1;for(var u=n.length;++r<u;){var a=n[r];t(a,r,n)&&e.push(a)}}else pt(n,function(n,r,u){t(n,r,u)&&e.push(n)});return e}function Gt(n,t,r){return Ne(n)?(t=Wt(n,t,r),-1<t?n[t]:w):(t=o.createCallback(t,r,3),gt(n,t,pt))
|
||||
}function Ht(n,t,r){if(t&&typeof r=="undefined"&&Ne(n)){r=-1;for(var e=n.length;++r<e&&false!==t(n[r],r,n););}else pt(n,U(t,r,3));return n}function Jt(n,t,r){if(t&&typeof r=="undefined"&&Ne(n))for(r=n.length;r--&&false!==t(n[r],r,n););else ht(n,U(t,r,3));return n}function Qt(n,t,r){var e=-1,u=n&&n.length,a=Sr(0>u?0:u>>>0);if(t=o.createCallback(t,r,3),Ne(n))for(;++e<u;)a[e]=t(n[e],e,n);else pt(n,function(n,r,u){a[++e]=t(n,r,u)});return a}function nr(n,t,r){var e=-1/0,a=e,i=typeof t;if("number"!=i&&"string"!=i||!r||r[t]!==n||(t=null),null==t&&Ne(n))for(r=-1,i=n.length;++r<i;){var l=n[r];
|
||||
l>a&&(a=l)}else t=null==t&&mr(n)?u:o.createCallback(t,r,3),pt(n,function(n,r,u){r=t(n,r,u),r>e&&(e=r,a=n)});return a}function tr(n,t,r,e){var u=3>arguments.length;if(t=o.createCallback(t,e,4),Ne(n)){var a=-1,i=n.length;for(u&&i&&(r=n[++a]);++a<i;)r=t(r,n[a],a,n)}else pt(n,function(n,e,o){r=u?(u=false,n):t(r,n,e,o)});return r}function rr(n,t,r,e){var u=3>arguments.length;return t=o.createCallback(t,e,4),ht(n,function(n,e,o){r=u?(u=false,n):t(r,n,e,o)}),r}function er(n){var t=-1,r=n&&n.length,e=Sr(0>r?0:r>>>0);
|
||||
return pt(n,function(n){var r=jt(0,++t);e[t]=e[r],e[r]=n}),e}function ur(n,t,r){var e;if(t=o.createCallback(t,r,3),Ne(n)){r=-1;for(var u=n.length;++r<u;)if(t(n[r],r,n))return true}else pt(n,function(n,r,u){return!(e=t(n,r,u))});return!!e}function or(n,t){if(3>arguments.length)return It(n,x,null,t);if(n)var r=n[S]?n[S][2]:n.length,e=Bt(arguments,2),r=r-e.length;return It(n,x|O,r,t,e)}function ar(n,t,r){var e,u,o,a,i,l,f,c=0,s=false,p=true;if(!hr(n))throw new Dr;if(t=0>t?0:t,true===r)var h=true,p=false;else gr(r)&&(h=r.leading,s="maxWait"in r&&(ge(t,r.maxWait)||0),p="trailing"in r?r.trailing:p);
|
||||
var g=function(){var r=t-(Be()-a);0>=r||r>t?(u&&Gr(u),r=f,u=l=f=w,r&&(c=Be(),o=n.apply(i,e),l||u||(e=i=null))):l=ue(g,r)},v=function(){l&&Gr(l),u=l=f=w,(p||s!==t)&&(c=Be(),o=n.apply(i,e),l||u||(e=i=null))};return function(){if(e=arguments,a=Be(),i=this,f=p&&(l||!h),false===s)var r=h&&!l;else{u||h||(c=a);var y=s-(a-c),m=0>=y||y>s;m?(u&&(u=Gr(u)),c=a,o=n.apply(i,e)):u||(u=ue(v,y))}return m&&l?l=Gr(l):l||t===s||(l=ue(g,t)),r&&(m=true,o=n.apply(i,e)),!m||l||u||(e=i=null),o}}function ir(n){if(!hr(n))throw new Dr;
|
||||
return function(){return!n.apply(this,arguments)}}function lr(n,t,r){var e=arguments;if(!n||2>e.length)return n;var u=0,o=e.length,a=typeof r;if("number"!=a&&"string"!=a||!e[3]||e[3][r]!==t||(o=2),3<o&&"function"==typeof e[o-2])var i=U(e[--o-1],e[o--],2);else 2<o&&"function"==typeof e[o-1]&&(i=e[--o]);for(;++u<o;){t=e[u];for(var a=-1,l=Le(t),f=l.length;++a<f;){var c=l[a];n[c]=i?i(n[c],t[c]):t[c]}}return n}function fr(t){if(!t||2>arguments.length)return t;var r=Bt(arguments);return r.push(n),lr.apply(null,r)
|
||||
}function cr(n){var t=[];return mt(n,function(n,r){hr(n)&&t.push(r)},dr),t.sort()}function sr(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Zr.call(n)==J||false}function pr(n){return n&&typeof n=="object"&&1===n.nodeType&&(je.nodeClass?-1<Zr.call(n).indexOf("Element"):h(n))||false}function hr(n){return typeof n=="function"}function gr(n){var t=typeof n;return n&&("function"==t||"object"==t)||false}function vr(n){var t=typeof n;return"number"==t||n&&"object"==t&&Zr.call(n)==ut||false}function yr(n){var t=typeof n;
|
||||
return n&&("function"==t||"object"==t)&&Zr.call(n)==at||false}function mr(n){return typeof n=="string"||n&&typeof n=="object"&&Zr.call(n)==it||false}function dr(n){if(!gr(n))return[];var t=n.length,t=(typeof t=="number"&&0<t&&(Ne(n)||je.unindexedChars&&mr(n)||je.nonEnumArgs&&sr(n))&&t)>>>0,r=t-1,e=Sr(t),u=0<t,o=je.enumErrorProps&&(n===Br||n instanceof Nr),a=je.enumPrototypes&&typeof n=="function";if(u)for(var i=-1;++i<t;)e[i]=$r(i);for(var l in n)a&&"prototype"==l||o&&("message"==l||"name"==l)||u&&-1<l&&l<=r&&0==l%1||e.push(l);
|
||||
if(je.nonEnumShadows&&n!==qr){if(r=n.constructor,i=-1,t=H.length,n===(r&&r.prototype))var f=n===Ur?it:n===Br?rt:Zr.call(n),f=Ce[f];for(;++i<t;)l=H[i],f&&f[l]||!ne.call(n,l)||e.push(l)}return e}function br(n,t,r){var e={};if(typeof t!="function")for(var u=-1,a=vt(arguments,true,false,1),i=gr(n)?a.length:0;++u<i;){var l=a[u];l in n&&(e[l]=n[l])}else t=o.createCallback(t,r,3),mt(n,function(n,r,u){t(n,r,u)&&(e[r]=n)},dr);return e}function _r(n){return Ot(n,Le)}function wr(n){return null==n?"":$r(n).replace(M,"\\$&")
|
||||
}function xr(n,t){var r="";if(t|=0,1>t||null==n)return r;n=$r(n);do t%2&&(r+=n),t=Hr(t/2),n+=n;while(t);return r}function Cr(n,t,r){var e=typeof n;return"function"==e||null==n?(typeof t=="undefined"||!("prototype"in n))&&n||U(n,t,r):"object"!=e?Ar(n):kr(n)}function jr(n){return n}function kr(n){n||(n={});var t=Le(n),r=t.length,e=t[0],u=n[e];return 1!=r||u!==u||gr(u)?function(e){for(var u=r,o=false;u--&&(o=t[u],o=ne.call(e,o)&&xt(e[o],n[o],null,true)););return o}:function(n){return ne.call(n,e)?(n=n[e],u===n&&(0!==u||1/u==1/n)):false
|
||||
}}function Or(n,t,r){var e=true,u=t&&cr(t);t&&(r||u.length)||(null==r&&(r=t),t=n,n=o,u=cr(t)),false===r?e=false:gr(r)&&"chain"in r&&(e=r.chain),r=-1;for(var a=hr(n),i=u?u.length:0;++r<i;){var l=u[r],f=n[l]=t[l];a&&(n.prototype[l]=function(t){return function(){var r=this.__chain__,u=this.__wrapped__,o=[u];if(te.apply(o,arguments),o=t.apply(n,o),e||r){if(u===o&&gr(o))return this;o=new n(o),o.__chain__=r}return o}}(f))}}function Er(){}function Ar(n){return function(t){return null==t?w:t[n]}}t=t?bt.defaults(yt.Object(),t,bt.pick(yt,G)):yt;
|
||||
var Sr=t.Array,Ir=t.Boolean,Rr=t.Date,Nr=t.Error,Tr=t.Function,Lr=t.Math,Wr=t.Number,Fr=t.Object,Pr=t.RegExp,$r=t.String,Dr=t.TypeError,zr=Sr.prototype,Br=Nr.prototype,qr=Fr.prototype,Ur=$r.prototype,Kr=(Kr=t.window)&&Kr.document,Mr=t._,Vr=Lr.pow(2,53)-1,Zr=qr.toString,Xr=Pr("^"+wr(Zr).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Yr=Lr.ceil,Gr=t.clearTimeout,Hr=Lr.floor,Jr=Tr.prototype.toString,Qr=Nt(Qr=Fr.getPrototypeOf)&&Qr,ne=qr.hasOwnProperty,te=zr.push,re=qr.propertyIsEnumerable,ee=Nt(ee=t.Set)&&ee,ue=t.setTimeout,oe=zr.splice,ae=zr.unshift,ie=function(){try{var n={},t=Nt(t=Fr.defineProperty)&&t,r=t(n,n,n)&&t
|
||||
}catch(e){}return r}(),le=Nt(le=Ur.contains)&&le,fe=Nt(fe=Fr.create)&&fe,ce=Nt(ce=Sr.isArray)&&ce,se=t.isFinite,pe=t.isNaN,he=Nt(he=Fr.keys)&&he,ge=Lr.max,ve=Lr.min,ye=Nt(ye=Rr.now)&&ye,me=t.parseInt,de=Lr.random,be=Nt(be=Ur.trim)&&!be.call(Y)&&be,_e=Nt(_e=Ur.trimLeft)&&!_e.call(Y)&&_e,we=Nt(we=Ur.trimRight)&&!we.call(Y)&&we,xe={};xe[Q]=Sr,xe[nt]=Ir,xe[tt]=Rr,xe[et]=Tr,xe[ot]=Fr,xe[ut]=Wr,xe[at]=Pr,xe[it]=$r;var Ce={};Ce[Q]=Ce[tt]=Ce[ut]={constructor:true,toLocaleString:true,toString:true,valueOf:true},Ce[nt]=Ce[it]={constructor:true,toString:true,valueOf:true},Ce[rt]=Ce[et]=Ce[at]={constructor:true,toString:true},Ce[ot]={constructor:true},function(){for(var n=H.length;n--;){var t,r=H[n];
|
||||
for(t in Ce)ne.call(Ce,t)&&!ne.call(Ce[t],r)&&(Ce[t][r]=false)}}(),a.prototype=o.prototype;var je=o.support={};!function(){var n=function(){this.x=1},r={0:1,length:1},e=[];n.prototype={valueOf:1,y:1};for(var u in new n)e.push(u);for(u in arguments);je.argsClass=Zr.call(arguments)==J,je.argsObject=arguments.constructor==Fr&&!(arguments instanceof Sr),je.enumErrorProps=re.call(Br,"message")||re.call(Br,"name"),je.enumPrototypes=re.call(n,"prototype"),je.funcDecomp=!Nt(t.WinRTError)&&V.test(_),je.funcNames=typeof Tr.name=="string",je.nonEnumArgs="0"!=u,je.nonEnumShadows=!/valueOf/.test(e),je.ownLast="x"!=e[0],je.spliceObjects=(oe.call(r,0,1),!r[0]),je.unindexedChars="xx"!="x"[0]+Fr("x")[0];
|
||||
try{je.dom=11===Kr.createDocumentFragment().nodeType}catch(o){je.dom=false}try{je.nodeClass=!(Zr.call(undefined)==ot&&!({toString:0}+""))}catch(a){je.nodeClass=true}}(1),o.templateSettings={escape:F,evaluate:P,interpolate:$,variable:"",imports:{_:o}},fe||(d=function(){function n(){}return function(r){if(gr(r)){n.prototype=r;var e=new n;n.prototype=null}return e||t.Object()}}());var ke=ee&&function(n){var t=new ee,r=n?n.length:0;for(t.push=t.add;r--;)t.push(n[r]);return t},Oe=ie?function(n,t){ct.value=t,ie(n,S,ct)}:Er,Ee=At(function(n,t,r){ne.call(n,r)?n[r]++:n[r]=1
|
||||
}),Ae=At(function(n,t,r){ne.call(n,r)?n[r].push(t):n[r]=[t]}),Se=At(function(n,t,r){n[r]=t}),Ie=At(function(n,t,r){n[r?0:1].push(t)},true),Re=Qt;je.argsClass||(sr=function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&ne.call(n,"callee")&&!re.call(n,"callee")||false});var Ne=ce||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Zr.call(n)==Q||false};je.dom||(pr=function(n){return n&&typeof n=="object"&&1===n.nodeType&&!Te(n)||false}),hr(/x/)&&(hr=function(n){return typeof n=="function"&&Zr.call(n)==et
|
||||
});var Te=Qr?function(n){if(!n||Zr.call(n)!=ot||!je.argsClass&&sr(n))return false;var t=n.valueOf,r=Nt(t)&&(r=Qr(t))&&Qr(r);return r?n==r||Qr(n)==r:Tt(n)}:Tt,Le=he?function(n){var t=n?n.length:0;return typeof t=="number"&&0<t?Lt(n):gr(n)?he(n):[]}:Lt,We=f(function(n,t,r){return n+t.charAt(0)[r?"toUpperCase":"toLowerCase"]()+t.slice(1)}),Fe=f(function(n,t,r){return n+(r?"-":"")+t.toLowerCase()}),Pe=f(function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}),$e=be?function(n,t){return null==n?"":null==t?be.call(n):g(n,t)
|
||||
}:g,De=_e?function(n,t){return null==n?"":null==t?_e.call(n):v(n,t)}:v,ze=we?function(n,t){return null==n?"":null==t?we.call(n):y(n,t)}:y,Be=ye||function(){return(new Rr).getTime()},qe=8==me(Y+"08")?me:function(n,t){return n=$e(n),me(n,+t||(q.test(n)?16:10))};return o.after=function(n,t){if(!hr(t))throw new Dr;return function(){return 1>--n?t.apply(this,arguments):void 0}},o.assign=lr,o.at=function(n,t){var r=arguments,e=-1,u=vt(r,true,false,1),o=u.length,a=typeof t;for("number"!=a&&"string"!=a||!r[2]||r[2][t]!==n||(o=1),je.unindexedChars&&mr(n)&&(n=n.split("")),r=Sr(o);++e<o;)r[e]=n[u[e]];
|
||||
return r},o.bind=or,o.bindAll=function(n){for(var t=1<arguments.length?vt(arguments,true,false,1):cr(n),r=-1,e=t.length;++r<e;){var u=t[r];n[u]=It(n[u],x,null,n)}return n},o.bindKey=function(n,t){return 3>arguments.length?It(t,x|C,null,n):It(t,x|C|O,null,n,Bt(arguments,2))},o.chain=function(n){return new a(n,true)},o.compact=function(n){for(var t=-1,r=n?n.length:0,e=0,u=[];++t<r;){var o=n[t];o&&(u[e++]=o)}return u},o.compose=function(){for(var n=arguments,t=n.length,r=t;r--;)if(!hr(n[r]))throw new Dr;return function(){for(var r=t-1,e=n[r].apply(this,arguments);r--;)e=n[r].call(this,e);
|
||||
return e}},o.constant=function(n){return function(){return n}},o.countBy=Ee,o.create=function(n,t){var r=d(n);return t?lr(r,t):r},o.createCallback=Cr,o.curry=function(n,t){return typeof t!="number"&&(t=+t||(n?n.length:0)),It(n,j,t)},o.debounce=ar,o.defaults=fr,o.defer=function(n){if(!hr(n))throw new Dr;var t=Bt(arguments,1);return ue(function(){n.apply(w,t)},1)},o.delay=function(n,t){if(!hr(n))throw new Dr;var r=Bt(arguments,2);return ue(function(){n.apply(w,r)},t)},o.difference=function(){return st(arguments[0],vt(arguments,true,true,1))
|
||||
},o.drop=zt,o.dropRight=$t,o.dropRightWhile=$t,o.dropWhile=zt,o.filter=Yt,o.flatten=function(n,t,r,e){if(!n||!n.length)return[];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)),null!=r&&(n=Qt(n,r,e)),vt(n,t)},o.forEach=Ht,o.forEachRight=Jt,o.forIn=function(n,t,r){return t=t&&typeof r=="undefined"?t:U(t,r,3),mt(n,t,dr)},o.forInRight=function(n,t,r){return t=U(t,r,3),dt(n,t,dr)},o.forOwn=function(n,t,r){return t=t&&typeof r=="undefined"?t:U(t,r,3),_t(n,t)
|
||||
},o.forOwnRight=function(n,t,r){return t=U(t,r,3),dt(n,t,Le)},o.functions=cr,o.groupBy=Ae,o.indexBy=Se,o.initial=$t,o.intersection=function(){for(var n=[],t=-1,u=arguments.length,o=[],a=Rt(),i=ke&&a===r;++t<u;){var l=arguments[t];(Ne(l)||sr(l))&&(n.push(l),o.push(i&&120<=l.length&&ke(t&&l)))}var u=n.length,i=n[0],f=-1,c=i?i.length:0,s=[],p=o[0];n:for(;++f<c;)if(l=i[f],0>(p?e(p,l):a(s,l))){for(t=u;--t;){var h=o[t];if(0>(h?e(h,l):a(n[t],l)))continue n}p&&p.push(l),s.push(l)}return s},o.invert=function(n,t){for(var r=-1,e=Le(n),u=e.length,o={};++r<u;){var a=e[r],i=n[a];
|
||||
t?ne.call(o,i)?o[i].push(a):o[i]=[a]:o[i]=a}return o},o.invoke=function(n,t){var r=Bt(arguments,2),e=-1,u=typeof t=="function",o=n&&n.length,a=Sr(0>o?0:o>>>0);return pt(n,function(n){var o=u?t:null!=n&&n[t];a[++e]=o?o.apply(n,r):w}),a},o.keys=Le,o.keysIn=dr,o.map=Qt,o.mapValues=function(n,t,r){var e={};return t=o.createCallback(t,r,3),_t(n,function(n,r,u){e[r]=t(n,r,u)}),e},o.matches=kr,o.max=nr,o.memoize=function(n,t){if(!hr(n))throw new Dr;var r=function(){var e=r.cache,u=t?t.apply(this,arguments):"_"+arguments[0];
|
||||
return ne.call(e,u)?e[u]:e[u]=n.apply(this,arguments)};return r.cache={},r},o.merge=function(n,t,r){if(!n)return n;var e=arguments,u=e.length,o=typeof r;if("number"!=o&&"string"!=o||!e[3]||e[3][r]!==t||(u=2),3<u&&"function"==typeof e[u-2])var a=U(e[--u-1],e[u--],2);else 2<u&&"function"==typeof e[u-1]&&(a=e[--u]);for(var e=Bt(e,1,u),o=-1,i=[],l=[];++o<u;)Ct(n,e[o],a,i,l);return n},o.min=function(n,t,r){var e=1/0,a=e,i=typeof t;if("number"!=i&&"string"!=i||!r||r[t]!==n||(t=null),null==t&&Ne(n))for(r=-1,i=n.length;++r<i;){var l=n[r];
|
||||
l<a&&(a=l)}else t=null==t&&mr(n)?u:o.createCallback(t,r,3),pt(n,function(n,r,u){r=t(n,r,u),r<e&&(e=r,a=n)});return a},o.negate=ir,o.omit=function(n,t,r){if(typeof t=="function")return t=o.createCallback(t,r,3),br(n,ir(t));for(var e=vt(arguments,true,false,1),u=e.length;u--;)e[u]=$r(e[u]);return br(n,st(dr(n),e))},o.once=function(n){var t,r;if(!hr(n))throw new Dr;return function(){return t?r:(t=true,r=n.apply(this,arguments),n=null,r)}},o.pairs=function(n){for(var t=-1,r=Le(n),e=r.length,u=Sr(e);++t<e;){var o=r[t];
|
||||
u[t]=[o,n[o]]}return u},o.partial=function(n){if(n)var t=n[S]?n[S][2]:n.length,r=Bt(arguments,1),t=t-r.length;return It(n,O,t,null,r)},o.partialRight=function(n){if(n)var t=n[S]?n[S][2]:n.length,r=Bt(arguments,1),t=t-r.length;return It(n,E,t,null,null,r)},o.partition=Ie,o.pick=br,o.pluck=Re,o.property=Ar,o.pull=function(n){for(var t=0,r=arguments.length,e=n?n.length:0;++t<r;)for(var u=-1,o=arguments[t];++u<e;)n[u]===o&&(oe.call(n,u--,1),e--);return n},o.range=function(n,t,r){n=+n||0,r=null==r?1:+r||0,null==t?(t=n,n=0):t=+t||0;
|
||||
var e=-1;t=ge(0,Yr((t-n)/(r||1)));for(var u=Sr(t);++e<t;)u[e]=n,n+=r;return u},o.reject=function(n,t,r){return t=o.createCallback(t,r,3),Yt(n,ir(t))},o.remove=function(n,t,r){var e=-1,u=n?n.length:0,a=[];for(t=o.createCallback(t,r,3);++e<u;)r=n[e],t(r,e,n)&&(a.push(r),oe.call(n,e--,1),u--);return a},o.rest=zt,o.shuffle=er,o.slice=Bt,o.sortBy=function(n,t,r){var e=-1,u=n&&n.length,a=t&&Ne(t),f=Sr(0>u?0:u>>>0);for(a||(t=o.createCallback(t,r,3)),pt(n,function(n,r,u){if(a)for(r=t.length,u=Sr(r);r--;)u[r]=n[t[r]];
|
||||
else u=t(n,r,u);f[++e]={a:u,b:e,c:n}}),u=f.length,f.sort(a?l:i);u--;)f[u]=f[u].c;return f},o.tap=function(n,t,r){return t.call(r,n),n},o.throttle=function(n,t,r){var e=true,u=true;if(!hr(n))throw new Dr;return false===r?e=false:gr(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),ft.leading=e,ft.maxWait=+t,ft.trailing=u,ar(n,t,ft)},o.times=function(n,t,r){n=-1<(n=+n)?n:0;var e=-1,u=Sr(n);for(t=U(t,r,1);++e<n;)u[e]=t(e);return u},o.toArray=function(n){var t=n&&n.length;return typeof t=="number"&&-1<t&&t<=Vr?je.unindexedChars&&mr(n)?n.split(""):Bt(n):_r(n)
|
||||
},o.transform=function(n,t,r,e){var u=Ne(n);if(null==r)if(u)r=[];else{var a=n&&n.constructor;r=d(a&&a.prototype)}return t&&(t=o.createCallback(t,e,4),(u?pt:_t)(n,function(n,e,u){return t(r,n,e,u)})),r},o.union=function(){return kt(vt(arguments,true,true))},o.uniq=Ut,o.values=_r,o.valuesIn=function(n){return Ot(n,dr)},o.where=Yt,o.without=function(){return st(arguments[0],Bt(arguments,1))},o.wrap=function(n,t){return It(t,O,null,null,[n])},o.xor=function(){for(var n=-1,t=arguments.length;++n<t;){var r=arguments[n];
|
||||
if(Ne(r)||sr(r))var e=e?st(e,r).concat(st(r,e)):r}return e?kt(e):[]},o.zip=Kt,o.zipObject=Mt,o.callback=Cr,o.collect=Qt,o.each=Ht,o.eachRight=Jt,o.extend=lr,o.methods=cr,o.object=Mt,o.select=Yt,o.tail=zt,o.unique=Ut,o.unzip=Kt,Or(lr({},o)),o.camelCase=We,o.capitalize=function(n){return null==n?"":(n=$r(n),n.charAt(0).toUpperCase()+n.slice(1))},o.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"&&U(r,e,1),m(n,t,r)
|
||||
},o.cloneDeep=function(n,t,r){return t=typeof t=="function"&&U(t,r,1),m(n,true,t)},o.contains=Zt,o.endsWith=function(n,t,r){n=null==n?"":$r(n),t=$r(t);var e=n.length;return r=(typeof r=="number"?ve(ge(+r||0,0),e):e)-t.length,0<=r&&n.indexOf(t,r)==r},o.escape=function(n){return null==n?"":$r(n).replace(W,s)},o.escapeRegExp=wr,o.every=Xt,o.find=Gt,o.findIndex=Wt,o.findKey=function(n,t,r){return t=o.createCallback(t,r,3),gt(n,t,_t,true)},o.findLast=function(n,t,r){return t=o.createCallback(t,r,3),gt(n,t,ht)
|
||||
},o.findLastIndex=function(n,t,r){var e=n?n.length:0;for(t=o.createCallback(t,r,3);e--;)if(t(n[e],e,n))return e;return-1},o.findLastKey=function(n,t,r){return t=o.createCallback(t,r,3),gt(n,t,wt,true)},o.has=function(n,t){return n?ne.call(n,t):false},o.identity=jr,o.indexOf=Pt,o.isArguments=sr,o.isArray=Ne,o.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&Zr.call(n)==nt||false},o.isDate=function(n){return n&&typeof n=="object"&&Zr.call(n)==tt||false},o.isElement=pr,o.isEmpty=function(n){var t=true;
|
||||
if(!n)return t;var r=Zr.call(n),e=n.length;return-1<e&&e<=Vr&&(r==Q||r==it||(je.argsClass?r==J:sr(n))||r==ot&&hr(n.splice))?!e:(_t(n,function(){return t=false}),t)},o.isEqual=function(n,t,r,e){if(r=typeof r=="function"&&U(r,e,2),!r){if(n===t)return 0!==n||1/n==1/t;e=typeof n;var u=typeof t;if(n===n&&(null==n||null==t||"function"!=e&&"object"!=e&&"function"!=u&&"object"!=u))return false}return xt(n,t,r)},o.isFinite=function(n){return se(n)&&!pe(parseFloat(n))},o.isFunction=hr,o.isNaN=function(n){return vr(n)&&n!=+n
|
||||
},o.isNull=function(n){return null===n},o.isNumber=vr,o.isObject=gr,o.isPlainObject=Te,o.isRegExp=yr,o.isString=mr,o.isUndefined=function(n){return typeof n=="undefined"},o.kebabCase=Fe,o.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(r|=0,e=(0>r?ge(0,e+r):ve(r,e-1))+1);e--;)if(n[e]===t)return e;return-1},o.mixin=Or,o.noConflict=function(){return t._=Mr,this},o.noop=Er,o.now=Be,o.pad=function(n,t,r){n=null==n?"":$r(n),t|=0;var e=n.length;return e<t?(e=(t-e)/2,t=Hr(e),e=Yr(e),r=St("",e,r),r.slice(0,t)+n+r):n
|
||||
},o.padLeft=function(n,t,r){return n=null==n?"":$r(n),St(n,t,r)+n},o.padRight=function(n,t,r){return n=null==n?"":$r(n),n+St(n,t,r)},o.parseInt=qe,o.random=function(n,t,r){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=de(),ve(n+r*(t-n+parseFloat("1e-"+((r+"").length-1))),t)):jt(n,t)},o.reduce=tr,o.reduceRight=rr,o.repeat=xr,o.result=function(n,t,r){var e=null==n?w:n[t];return typeof e=="undefined"?r:hr(e)?n[t]():e
|
||||
},o.runInContext=_,o.size=function(n){var t=n?n.length:0;return typeof t=="number"&&-1<t&&t<=Vr?t:Le(n).length},o.some=ur,o.sortedIndex=qt,o.snakeCase=Pe,o.startsWith=function(n,t,r){return n=null==n?"":$r(n),r=typeof r=="number"?ve(ge(+r||0,0),n.length):0,n.lastIndexOf(t,r)==r},o.template=function(n,t,r){var e=o.templateSettings;r=fr({},r,e),n=$r(null==n?"":n);var u,a,i=fr({},r.imports,e.imports),e=Le(i),i=_r(i),l=0,f=r.interpolate||K,c="__p+='",f=Pr((r.escape||K).source+"|"+f.source+"|"+(f===$?D:K).source+"|"+(r.evaluate||K).source+"|$","g");
|
||||
n.replace(f,function(t,r,e,o,i,f){return e||(e=o),c+=n.slice(l,f).replace(Z,p),r&&(u=true,c+="'+__e("+r+")+'"),i&&(a=true,c+="';"+i+";\n__p+='"),e&&(c+="'+((__t=("+e+"))==null?'':__t)+'"),l=f+t.length,t}),c+="';",(r=r.variable)||(c="with(obj){"+c+"}"),c=(a?c.replace(R,""):c).replace(N,"$1").replace(T,"$1;"),c="function("+(r||"obj")+"){"+(r?"":"obj||(obj={});")+"var __t,__p=''"+(u?",__e=_.escape":"")+(a?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+c+"return __p}";try{var s=Tr(e,"return "+c).apply(w,i)
|
||||
}catch(h){throw h.source=c,h}return t?s(t):(s.source=c,s)},o.trim=$e,o.trimLeft=De,o.trimRight=ze,o.truncate=function(n,t){var r=30,e="...";if(t&&gr(t))var u="separator"in t?t.separator:u,r="length"in t?+t.length||0:r,e="omission"in t?$r(t.omission):e;else null!=t&&(r=+t||0);if(n=null==n?"":$r(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(yr(u)){if(n.slice(o).search(u)){var a,i,l=n.slice(0,o);for(u.global||(u=Pr(u.source,(z.exec(u)||"")+"g")),u.lastIndex=0;a=u.exec(l);)i=a.index;
|
||||
r=r.slice(0,null==i?o:i)}}else n.indexOf(u,o)!=o&&(u=r.lastIndexOf(u),-1<u&&(r=r.slice(0,u)));return r+e},o.unescape=function(n){return null==n?"":(n=$r(n),0>n.indexOf(";")?n:n.replace(L,b))},o.uniqueId=function(n){var t=++I;return $r(null==n?"":n)+t},o.all=Xt,o.any=ur,o.detect=Gt,o.findWhere=Gt,o.foldl=tr,o.foldr=rr,o.include=Zt,o.inject=tr,Or(function(){var n={};return _t(o,function(t,r){o.prototype[r]||(n[r]=t)}),n}(),false),o.first=Ft,o.last=Dt,o.sample=function(n,t,r){return n&&typeof n.length!="number"?n=_r(n):je.unindexedChars&&mr(n)&&(n=n.split("")),null==t||r?(t=n?n.length:0,0<t?n[jt(0,t-1)]:w):(n=er(n),n.length=ve(ge(0,t),n.length),n)
|
||||
},o.take=Ft,o.takeRight=Dt,o.takeRightWhile=Dt,o.takeWhile=Ft,o.head=Ft,_t(o,function(n,t){var r="sample"!==t;o.prototype[t]||(o.prototype[t]=function(t,e){var u=this.__chain__,o=n(this.__wrapped__,t,e);return u||null!=t&&(!e||r&&typeof t=="function")?new a(o,u):o})}),o.VERSION=A,o.prototype.chain=function(){return this.__chain__=true,this},o.prototype.toString=function(){return $r(this.__wrapped__)},o.prototype.value=Vt,o.prototype.valueOf=Vt,pt(["join","pop","shift"],function(n){var t=zr[n];o.prototype[n]=function(){var n=this.__chain__,r=t.apply(this.__wrapped__,arguments);
|
||||
return n?new a(r,n):r}}),pt(["push","reverse","sort","unshift"],function(n){var t=zr[n];o.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),pt(["concat","splice"],function(n){var t=zr[n];o.prototype[n]=function(){return new a(t.apply(this.__wrapped__,arguments),this.__chain__)}}),je.spliceObjects||pt(["pop","shift","splice"],function(n){var t=zr[n],r="splice"==n;o.prototype[n]=function(){var n=this.__chain__,e=this.__wrapped__,u=t.apply(e,arguments);return 0===e.length&&delete e[0],n||r?new a(u,n):u
|
||||
}}),o}var w,x=1,C=2,j=4,k=8,O=16,E=32,A="2.4.1",S="__lodash@"+A+"__",I=0,R=/\b__p\+='';/g,N=/\b(__p\+=)''\+/g,T=/(__e\(.*?\)|\b__t\))\+'';/g,L=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,F=/<%-([\s\S]+?)%>/g,P=/<%([\s\S]+?)%>/g,$=/<%=([\s\S]+?)%>/g,D=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,z=/\w*$/,B=/^\s*function[ \n\r\t]+\w/,q=/^0[xX]/,U=/[\xC0-\xFF]/g,K=/($^)/,M=/[.*+?^${}()|[\]\\]/g,V=/\bthis\b/,Z=/['\n\r\t\u2028\u2029\\]/g,X=/[A-Z]{2,}|[a-zA-Z0-9][a-z0-9]*/g,Y=" \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",G="Array Boolean Date Error Function Math Number Object RegExp Set String _ clearTimeout document isFinite isNaN parseInt setTimeout TypeError window WinRTError".split(" "),H="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),J="[object Arguments]",Q="[object Array]",nt="[object Boolean]",tt="[object Date]",rt="[object Error]",et="[object Function]",ut="[object Number]",ot="[object Object]",at="[object RegExp]",it="[object String]",lt={};
|
||||
lt[et]=false,lt[J]=lt[Q]=lt[nt]=lt[tt]=lt[ut]=lt[ot]=lt[at]=lt[it]=true;var ft={leading:false,maxWait:0,trailing:false},ct={configurable:false,enumerable:false,value:null,writable:false},st={"&":"&","<":"<",">":">",'"':""","'":"'"},pt={"&":"&","<":"<",">":">",""":'"',"'":"'"},ht={\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"AE",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss","\xd7":" ","\xf7":" "},gt={"function":true,object:true},vt={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},yt=gt[typeof window]&&window||this,mt=gt[typeof exports]&&exports&&!exports.nodeType&&exports,gt=gt[typeof module]&&module&&!module.nodeType&&module,dt=mt&>&&typeof global=="object"&&global;
|
||||
!dt||dt.global!==dt&&dt.window!==dt&&dt.self!==dt||(yt=dt);var dt=gt&>.exports===mt&&mt,bt=_();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(yt._=bt, define(function(){return bt})):mt&>?dt?(gt.exports=bt)._=bt:mt._=bt:yt._=bt}).call(this);
|
||||
143
dist/lodash.js
vendored
143
dist/lodash.js
vendored
@@ -4,7 +4,7 @@
|
||||
* Build: `lodash modern -o ./dist/lodash.js`
|
||||
* Copyright 2012-2014 The Dojo Foundation <http://dojofoundation.org/>
|
||||
* Based on Underscore.js 1.6.0 <http://underscorejs.org/LICENSE>
|
||||
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||
* Copyright 2009-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||
* Available under MIT license <http://lodash.com/license>
|
||||
*/
|
||||
;(function() {
|
||||
@@ -50,7 +50,7 @@
|
||||
*/
|
||||
var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
|
||||
|
||||
/** Used to match regexp flags from their coerced string values */
|
||||
/** Used to match `RegExp` flags from their coerced string values */
|
||||
var reFlags = /\w*$/;
|
||||
|
||||
/** Used to detected named functions */
|
||||
@@ -66,8 +66,8 @@
|
||||
var reNoMatch = /($^)/;
|
||||
|
||||
/**
|
||||
* Used to match RegExp special characters.
|
||||
* See this [article on RegExp characters](http://www.regular-expressions.info/characters.html#special)
|
||||
* Used to match `RegExp` special characters.
|
||||
* See this [article on `RegExp` characters](http://www.regular-expressions.info/characters.html#special)
|
||||
* for more details.
|
||||
*/
|
||||
var reRegExpChars = /[.*+?^${}()|[\]\\]/g;
|
||||
@@ -100,7 +100,7 @@
|
||||
'parseInt', 'setTimeout', 'TypeError', 'window', 'WinRTError'
|
||||
];
|
||||
|
||||
/** Used to make template sourceURLs easier to identify */
|
||||
/** Used to make template `sourceURL`s easier to identify */
|
||||
var templateCounter = 0;
|
||||
|
||||
/** `Object#toString` result shortcuts */
|
||||
@@ -188,7 +188,7 @@
|
||||
'\xDF': 'ss', '\xD7': ' ', '\xF7': ' '
|
||||
};
|
||||
|
||||
/** Used to determine if values are of the language type Object */
|
||||
/** Used to determine if values are of the language type `Object` */
|
||||
var objectTypes = {
|
||||
'function': true,
|
||||
'object': true
|
||||
@@ -309,6 +309,7 @@
|
||||
*
|
||||
* @private
|
||||
* @param {string} string The string to inspect.
|
||||
* @param {string} chars The chars to find.
|
||||
* @returns {number} Returns the index of the first character not found in `chars`.
|
||||
*/
|
||||
function charsLeftIndex(string, chars) {
|
||||
@@ -328,6 +329,7 @@
|
||||
*
|
||||
* @private
|
||||
* @param {string} string The string to inspect.
|
||||
* @param {string} chars The chars to find.
|
||||
* @returns {number} Returns the index of the last character not found in `chars`.
|
||||
*/
|
||||
function charsRightIndex(string, chars) {
|
||||
@@ -341,7 +343,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Used by `sortBy` to compare transformed elements of a collection and stable
|
||||
* Used by `_.sortBy` to compare transformed elements of a collection and stable
|
||||
* sort them in ascending order.
|
||||
*
|
||||
* @private
|
||||
@@ -354,7 +356,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Used by `sortBy` to compare multiple properties of each element in a
|
||||
* Used by `_.sortBy` to compare multiple properties of each element in a
|
||||
* collection and stable sort them in ascending order.
|
||||
*
|
||||
* @private
|
||||
@@ -418,7 +420,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Used by `escape` to convert characters to HTML entities.
|
||||
* Used by `_.escape` to convert characters to HTML entities.
|
||||
*
|
||||
* @private
|
||||
* @param {string} chr The matched character to escape.
|
||||
@@ -429,7 +431,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Used by `template` to escape characters for inclusion in compiled
|
||||
* Used by `_.template` to escape characters for inclusion in compiled
|
||||
* string literals.
|
||||
*
|
||||
* @private
|
||||
@@ -441,7 +443,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* A fallback implementation of `trim` to remove leading and trailing
|
||||
* A fallback implementation of `String#trim` to remove leading and trailing
|
||||
* whitespace or specified characters from `string`.
|
||||
*
|
||||
* @private
|
||||
@@ -462,7 +464,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* A fallback implementation of `trimLeft` to remove leading whitespace or
|
||||
* A fallback implementation of `String#trimLeft` to remove leading whitespace or
|
||||
* specified characters from `string`.
|
||||
*
|
||||
* @private
|
||||
@@ -483,7 +485,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* A fallback implementation of `trimRight` to remove trailing whitespace or
|
||||
* A fallback implementation of `String#trimRight` to remove trailing whitespace or
|
||||
* specified characters from `string`.
|
||||
*
|
||||
* @private
|
||||
@@ -544,7 +546,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Used by `unescape` to convert HTML entities to characters.
|
||||
* Used by `_.unescape` to convert HTML entities to characters.
|
||||
*
|
||||
* @private
|
||||
* @param {string} chr The matched character to unescape.
|
||||
@@ -557,7 +559,7 @@
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* Create a new `lodash` function using the given context object.
|
||||
* Create a new `lodash` function using the given `context` object.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
@@ -592,17 +594,17 @@
|
||||
/** Used to detect DOM support */
|
||||
var document = (document = context.window) && document.document;
|
||||
|
||||
/** Used to restore the original `_` reference in `noConflict` */
|
||||
/** Used to restore the original `_` reference in `_.noConflict` */
|
||||
var oldDash = context._;
|
||||
|
||||
/**
|
||||
* Used as the maximum length an array-like object.
|
||||
* Used as the maximum length of an array-like object.
|
||||
* See the [ES6 spec](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength)
|
||||
* for more details.
|
||||
*/
|
||||
var maxSafeInteger = Math.pow(2, 53) - 1;
|
||||
|
||||
/** Used to resolve the internal [[Class]] of values */
|
||||
/** Used to resolve the internal `[[Class]]` of values */
|
||||
var toString = objectProto.toString;
|
||||
|
||||
/** Used to detect if a method is native */
|
||||
@@ -624,7 +626,7 @@
|
||||
splice = arrayRef.splice,
|
||||
unshift = arrayRef.unshift;
|
||||
|
||||
/** Used to set meta data on functions */
|
||||
/** Used to set metadata on functions */
|
||||
var defineProperty = (function() {
|
||||
// IE 8 only accepts DOM elements
|
||||
try {
|
||||
@@ -651,7 +653,7 @@
|
||||
nativeTrimLeft = isNative(nativeTrimLeft = stringProto.trimLeft) && !nativeTrimLeft.call(whitespace) && nativeTrimLeft,
|
||||
nativeTrimRight = isNative(nativeTrimRight = stringProto.trimRight) && !nativeTrimRight.call(whitespace) && nativeTrimRight;
|
||||
|
||||
/** Used to lookup a built-in constructor by [[Class]] */
|
||||
/** Used to lookup a built-in constructor by `[[Class]]` */
|
||||
var ctorByClass = {};
|
||||
ctorByClass[arrayClass] = Array;
|
||||
ctorByClass[boolClass] = Boolean;
|
||||
@@ -743,7 +745,7 @@
|
||||
*
|
||||
* @private
|
||||
* @param {*} value The value to wrap in a `lodash` instance.
|
||||
* @param {boolean} [chainAll=false] A flag to enable chaining for all methods
|
||||
* @param {boolean} [chainAll=false] A flag to enable chaining for all methods.
|
||||
* @returns {Object} Returns a `lodash` instance.
|
||||
*/
|
||||
function lodashWrapper(value, chainAll) {
|
||||
@@ -856,7 +858,7 @@
|
||||
|
||||
/**
|
||||
* The base implementation of `_.bind` that creates the bound function and
|
||||
* sets its meta data.
|
||||
* sets its metadata.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} data The metadata array.
|
||||
@@ -917,7 +919,7 @@
|
||||
return result;
|
||||
}
|
||||
}
|
||||
// inspect [[Class]]
|
||||
// inspect `[[Class]]`
|
||||
var isObj = isObject(value);
|
||||
if (isObj) {
|
||||
var className = toString.call(value);
|
||||
@@ -1071,7 +1073,7 @@
|
||||
|
||||
/**
|
||||
* The base implementation of `createWrapper` that creates the wrapper and
|
||||
* sets its meta data.
|
||||
* sets its metadata.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} data The metadata array.
|
||||
@@ -1229,7 +1231,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* The base implementation of `find`, 'findLast`, `findKey`, and `findLastKey`
|
||||
* The base implementation of `_.find`, '_.findLast`, `_.findKey`, and `_.findLastKey`
|
||||
* without support for callback shorthands or `this` binding which iterates
|
||||
* over `collection` using the provided `eachFunc`.
|
||||
*
|
||||
@@ -1415,7 +1417,7 @@
|
||||
(valType != 'function' && valType != 'object' && othType != 'function' && othType != 'object'))) {
|
||||
return false;
|
||||
}
|
||||
// compare [[Class]] names
|
||||
// compare `[[Class]]` names
|
||||
var valClass = toString.call(value),
|
||||
othClass = toString.call(other),
|
||||
valIsArg = valClass == argsClass,
|
||||
@@ -1996,7 +1998,7 @@
|
||||
};
|
||||
|
||||
/**
|
||||
* A fallback implementation of `isPlainObject` which checks if `value` is
|
||||
* A fallback implementation of `_.isPlainObject` which checks if `value` is
|
||||
* an object created by the `Object` constructor, assuming objects created
|
||||
* by the `Object` constructor have no inherited enumerable properties and
|
||||
* that there are no `Object.prototype` extensions.
|
||||
@@ -2036,11 +2038,17 @@
|
||||
var index = -1,
|
||||
props = keysIn(object),
|
||||
length = props.length,
|
||||
objLength = length && object.length,
|
||||
result = [];
|
||||
|
||||
if (typeof objLength == 'number' && objLength > 0) {
|
||||
var allowIndexes = isArray(object),
|
||||
maxIndex = objLength - 1;
|
||||
}
|
||||
while (++index < length) {
|
||||
var key = props[index];
|
||||
if (hasOwnProperty.call(object, key)) {
|
||||
if ((allowIndexes && key > -1 && key <= maxIndex && key % 1 == 0) ||
|
||||
hasOwnProperty.call(object, key)) {
|
||||
result.push(key);
|
||||
}
|
||||
}
|
||||
@@ -2093,8 +2101,8 @@
|
||||
* _.difference([1, 2, 3], [5, 2, 10]);
|
||||
* // => [1, 3]
|
||||
*/
|
||||
function difference(array) {
|
||||
return baseDifference(array, baseFlatten(arguments, true, true, 1));
|
||||
function difference() {
|
||||
return baseDifference(arguments[0], baseFlatten(arguments, true, true, 1));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2531,46 +2539,43 @@
|
||||
* _.intersection([1, 2, 3], [5, 2, 1, 4], [2, 1]);
|
||||
* // => [1, 2]
|
||||
*/
|
||||
function intersection(array) {
|
||||
if (!array) {
|
||||
return [];
|
||||
}
|
||||
function intersection() {
|
||||
var args = [],
|
||||
argsIndex = -1,
|
||||
argsLength = arguments.length,
|
||||
caches = [],
|
||||
indexOf = getIndexOf(),
|
||||
prereq = createCache && indexOf === baseIndexOf,
|
||||
seen = [];
|
||||
prereq = createCache && indexOf === baseIndexOf;
|
||||
|
||||
while (++argsIndex < argsLength) {
|
||||
var value = arguments[argsIndex];
|
||||
if (isArray(value) || isArguments(value)) {
|
||||
args.push(value);
|
||||
caches.push(prereq && value.length >= 120 &&
|
||||
createCache(argsIndex ? value : seen));
|
||||
createCache(argsIndex && value));
|
||||
}
|
||||
}
|
||||
argsLength = args.length;
|
||||
var array = args[0],
|
||||
index = -1,
|
||||
length = array ? array.length : 0,
|
||||
result = [];
|
||||
result = [],
|
||||
seen = caches[0];
|
||||
|
||||
outer:
|
||||
while (++index < length) {
|
||||
var cache = caches[0];
|
||||
value = array[index];
|
||||
|
||||
if ((cache ? cacheIndexOf(cache, value) : indexOf(seen, value)) < 0) {
|
||||
if ((seen ? cacheIndexOf(seen, value) : indexOf(result, value)) < 0) {
|
||||
argsIndex = argsLength;
|
||||
(cache || seen).push(value);
|
||||
while (--argsIndex) {
|
||||
cache = caches[argsIndex];
|
||||
var cache = caches[argsIndex];
|
||||
if ((cache ? cacheIndexOf(cache, value) : indexOf(args[argsIndex], value)) < 0) {
|
||||
continue outer;
|
||||
}
|
||||
}
|
||||
if (seen) {
|
||||
seen.push(value);
|
||||
}
|
||||
result.push(value);
|
||||
}
|
||||
}
|
||||
@@ -3248,9 +3253,7 @@
|
||||
* // => 'pebbles is 1'
|
||||
*/
|
||||
function chain(value) {
|
||||
value = new lodashWrapper(value);
|
||||
value.__chain__ = true;
|
||||
return value;
|
||||
return new lodashWrapper(value, true);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -4726,7 +4729,7 @@
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Functions
|
||||
* @param {...Function} [func] Functions to compose.
|
||||
* @param {...Function} [funcs] Functions to compose.
|
||||
* @returns {Function} Returns the new composed function.
|
||||
* @example
|
||||
*
|
||||
@@ -4812,7 +4815,7 @@
|
||||
* the leading and/or trailing edge of the `wait` timeout. Subsequent calls
|
||||
* to the debounced function will return the result of the last `func` call.
|
||||
*
|
||||
* Note: If `leading` and `trailing` options are `true` `func` will be called
|
||||
* Note: If `leading` and `trailing` options are `true`, `func` will be called
|
||||
* on the trailing edge of the timeout only if the the debounced function is
|
||||
* invoked more than once during the `wait` timeout.
|
||||
*
|
||||
@@ -5188,7 +5191,7 @@
|
||||
* of the `wait` timeout. Subsequent calls to the throttled function will
|
||||
* return the result of the last `func` call.
|
||||
*
|
||||
* Note: If `leading` and `trailing` options are `true` `func` will be called
|
||||
* Note: If `leading` and `trailing` options are `true`, `func` will be called
|
||||
* on the trailing edge of the timeout only if the the throttled function is
|
||||
* invoked more than once during the `wait` timeout.
|
||||
*
|
||||
@@ -6056,7 +6059,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if `value` is the language type of Object.
|
||||
* Checks if `value` is the language type of `Object`.
|
||||
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
||||
*
|
||||
* @static
|
||||
@@ -6076,7 +6079,7 @@
|
||||
* // => false
|
||||
*/
|
||||
function isObject(value) {
|
||||
// check if the value is the ECMAScript language type of Object
|
||||
// check if the value is the ECMAScript language type of `Object`
|
||||
// http://es5.github.io/#x8
|
||||
// and avoid a V8 bug
|
||||
// https://code.google.com/p/v8/issues/detail?id=2291
|
||||
@@ -6112,7 +6115,7 @@
|
||||
*/
|
||||
function isNaN(value) {
|
||||
// `NaN` as a primitive is the only value that is not equal to itself
|
||||
// (perform the [[Class]] check first to avoid errors with some host objects in IE)
|
||||
// (perform the `[[Class]]` check first to avoid errors with some host objects in IE)
|
||||
return isNumber(value) && value != +value;
|
||||
}
|
||||
|
||||
@@ -6282,6 +6285,10 @@
|
||||
* // => ['x', 'y'] (property order is not guaranteed across environments)
|
||||
*/
|
||||
var keys = !nativeKeys ? shimKeys : function(object) {
|
||||
var length = object ? object.length : 0;
|
||||
if (typeof length == 'number' && length > 0) {
|
||||
return shimKeys(object);
|
||||
}
|
||||
return isObject(object) ? nativeKeys(object) : [];
|
||||
};
|
||||
|
||||
@@ -6306,12 +6313,24 @@
|
||||
* // => ['x', 'y', 'z'] (property order is not guaranteed across environments)
|
||||
*/
|
||||
function keysIn(object) {
|
||||
var result = [];
|
||||
if (!isObject(object)) {
|
||||
return result;
|
||||
return [];
|
||||
}
|
||||
var length = isArray(object) ? object.length : 0,
|
||||
maxIndex = length - 1,
|
||||
result = Array(length),
|
||||
skipIndexes = length > 0;
|
||||
|
||||
if (skipIndexes) {
|
||||
var index = -1;
|
||||
while (++index < length) {
|
||||
result[index] = String(index);
|
||||
}
|
||||
}
|
||||
for (var key in object) {
|
||||
result.push(key);
|
||||
if (!(skipIndexes && key > -1 && key <= maxIndex && key % 1 == 0)) {
|
||||
result.push(key);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@@ -6767,7 +6786,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Escapes the RegExp special characters "\", "^", "$", ".", "|", "?", "*",
|
||||
* Escapes the `RegExp` special characters "\", "^", "$", ".", "|", "?", "*",
|
||||
* "+", "(", ")", "[", "]", "{" and "}" in `string`.
|
||||
*
|
||||
* @static
|
||||
@@ -7003,7 +7022,7 @@
|
||||
* settings object is provided it will override `_.templateSettings` for the
|
||||
* template.
|
||||
*
|
||||
* Note: In the development build, `_.template` utilizes sourceURLs for easier debugging.
|
||||
* Note: In the development build, `_.template` utilizes `sourceURL`s for easier debugging.
|
||||
* See the [HTML5 Rocks article on sourcemaps](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
|
||||
* for more details.
|
||||
*
|
||||
@@ -7023,7 +7042,7 @@
|
||||
* @param {RegExp} [options.evaluate] The "evaluate" delimiter.
|
||||
* @param {Object} [options.imports] An object to import into the template as local variables.
|
||||
* @param {RegExp} [options.interpolate] The "interpolate" delimiter.
|
||||
* @param {string} [options.sourceURL] The sourceURL of the template's compiled source.
|
||||
* @param {string} [options.sourceURL] The `sourceURL` of the template's compiled source.
|
||||
* @param {string} [options.variable] The data object variable name.
|
||||
* @returns {Function|string} Returns the interpolated string if a data object
|
||||
* is provided, else the compiled template function.
|
||||
@@ -7061,7 +7080,7 @@
|
||||
* _.template(list, { 'people': ['fred', 'barney'] }, { 'imports': { 'jq': jQuery } });
|
||||
* // => '<li>fred</li><li>barney</li>'
|
||||
*
|
||||
* // using the `sourceURL` option to specify a custom sourceURL for the template
|
||||
* // using the `sourceURL` option to specify a custom `sourceURL` for the template
|
||||
* var compiled = _.template('hello <%= name %>', null, { 'sourceURL': '/basic/greeting.jst' });
|
||||
* compiled(data);
|
||||
* // => find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector
|
||||
@@ -7167,7 +7186,7 @@
|
||||
source +
|
||||
'return __p\n}';
|
||||
|
||||
// Use a sourceURL for easier debugging.
|
||||
// Use a `sourceURL` for easier debugging.
|
||||
// http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl
|
||||
var sourceURL = '\n/*\n//# sourceURL=' + (options.sourceURL || '/lodash/template/source[' + (templateCounter++) + ']') + '\n*/';
|
||||
|
||||
@@ -7267,7 +7286,7 @@
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Strings
|
||||
* @param {string} [string=''] The string to trim.
|
||||
* @param {string} [string=''] The string to truncate.
|
||||
* @param {Object|number} [options] The options object or maximum string length.
|
||||
* @param {number} [options.length=30] The maximum string length.
|
||||
* @param {string} [options.omission='...'] The string used to indicate text is omitted.
|
||||
@@ -7637,7 +7656,7 @@
|
||||
|
||||
/**
|
||||
* Converts `value` to an integer of the specified radix. If `radix` is
|
||||
* `undefined` or `0` a `radix` of `10` is used unless `value` is a hexadecimal,
|
||||
* `undefined` or `0`, a `radix` of `10` is used unless `value` is a hexadecimal,
|
||||
* in which case a `radix` of `16` is used.
|
||||
*
|
||||
* Note: This method avoids differences in native ES3 and ES5 `parseInt`
|
||||
|
||||
79
dist/lodash.min.js
vendored
79
dist/lodash.min.js
vendored
@@ -18,47 +18,48 @@ case et:case ut:return n==Wr(t)}if(a=f==H,!a){var p=Yr.call(n,"__wrapped__"),s=Y
|
||||
n[o]=f})}function wt(n,t){return n+Vr(se()*(t-n+1))}function xt(n,t,u){var o=n?n.length:0;if(!o)return[];var i=-1,a=It(),l=!t&&a===r,f=l&&be&&200<=o,l=l&&!f,c=[];if(f)var p=be(),a=e;else p=u&&!t?[]:c;n:for(;++i<o;){var s=n[i],h=u?u(s,i,n):s;if(l){for(var g=p.length;g--;)if(p[g]===h)continue n;u&&p.push(h),c.push(s)}else t?i&&p===h||(p=h,c.push(s)):0>a(p,h)&&((u||f)&&p.push(h),c.push(s))}return c}function kt(n,t){for(var r=-1,e=t(n),u=e.length,o=Or(u);++r<u;)o[r]=n[e[r]];return o}function jt(n,t,r){for(var e=t.length,u=-1,o=le(r.length-e,0),i=-1,a=n.length,l=Or(o+a);++i<a;)l[i]=n[i];
|
||||
for(;++u<e;)l[t[u]]=r[u];for(;o--;)l[i++]=r[u++];return l}function Ct(n,t){return function(r,e,u){var i=t?[[],[]]:{};e=o.createCallback(e,u,3),u=-1;var a=r?r.length:0;if(typeof a=="number"&&-1<a&&a<=qr)for(;++u<a;){var l=r[u];n(i,l,e(l,u,r),r)}else ft(r,function(t,r,u){n(i,t,e(t,r,u),u)});return i}}function Ot(n,t,r){return n=n.length,t|=0,n<t?(t-=n,r=null==r?" ":Wr(r),br(r,Kr(t/r.length)).slice(0,t)):""}function At(n,t,r,e,u,o,i,a){var l=t&w,f=t&x,p=t&C,s=t&O;if(!f&&!cr(n))throw new Fr;p&&!u.length&&(t&=~C,p=u=false),s&&!o.length&&(t&=~O,s=o=false);
|
||||
var h=!f&&n[I];return h&&true!==h?(h=Lt(h),h[4]&&(h[4]=Lt(h[4])),h[5]&&(h[5]=Lt(h[5])),typeof r=="number"&&(h[2]=r),n=h[1]&w,l&&!n&&(h[3]=e),!l&&n&&(t|=j),p&&(h[4]?Gr.apply(h[4],u):h[4]=u),s&&(h[5]?ne.apply(h[5],o):h[5]=o),h[1]|=t,At.apply(null,h)):(null==r?r=f?0:n.length:0>r&&(r=0),p&&(i=[]),s&&(a=[]),h=[n,t,r,e,u,o,i,a],t==w||t==(w|C)?c(h):Z(h))}function It(){var n=(n=o.indexOf)===Wt?r:n;return n}function Et(n){return typeof n=="function"&&Pr.test(Zr.call(n))}function Rt(n){var t,r;return n&&Ur.call(n)==rt&&(Yr.call(n,"constructor")||(t=n.constructor,!cr(t)||t instanceof t))?(gt(n,function(n,t){r=t
|
||||
},vr),typeof r=="undefined"||Yr.call(n,r)):false}function Nt(n){for(var t=-1,r=vr(n),e=r.length,u=[];++t<e;){var o=r[t];Yr.call(n,o)&&u.push(o)}return u}function St(n,t,r){var e=-1,u=n?n.length:0;for(t=o.createCallback(t,r,3);++e<u;)if(t(n[e],e,n))return e;return-1}function Tt(n,t,r){if(typeof t!="number"&&null!=t){var e=-1,u=n?n.length:0,i=0;for(t=o.createCallback(t,r,3);++e<u&&t(n[e],e,n);)i++}else if(i=t,null==i||r)return n?n[0]:_;return Lt(n,0,0>i?0:i)}function Wt(n,t,e){var u=n?n.length:0;if(typeof e=="number")e=0>e?le(0,u+e):e||0;
|
||||
else if(e)return e=zt(n,t),u&&n[e]===t?e:-1;return r(n,t,e)}function Ft(n,t,r){var e=n?n.length:0;if(typeof t!="number"&&null!=t){var u=e,i=0;for(t=o.createCallback(t,r,3);u--&&t(n[u],u,n);)i++}else i=null==t||r?1:t;return i=e-i,Lt(n,0,0>i?0:i)}function $t(n,t,r){var e=n?n.length:0;if(typeof t!="number"&&null!=t){var u=e,i=0;for(t=o.createCallback(t,r,3);u--&&t(n[u],u,n);)i++}else if(i=t,null==i||r)return n?n[e-1]:_;return i=e-i,Lt(n,0>i?0:i)}function Dt(n,t,r){if(typeof t!="number"&&null!=t){var e=-1,u=n?n.length:0,i=0;
|
||||
for(t=o.createCallback(t,r,3);++e<u&&t(n[e],e,n);)i++}else i=null==t||r?1:0>t?0:t;return Lt(n,i)}function Lt(n,t,r){var e=-1,u=n?n.length:0;for(t=+t||0,0>t?t=le(u+t,0):t>u&&(t=u),r=typeof r=="undefined"?u:+r||0,0>r?r=le(u+r,0):r>u&&(r=u),u=t>r?0:r-t,r=Or(u);++e<u;)r[e]=n[t+e];return r}function zt(n,t,r,e){var u=0,i=n?n.length:u;for(r=r?o.createCallback(r,e,1):wr,t=r(t);u<i;)e=u+i>>>1,r(n[e])<t?u=e+1:i=e;return u}function Bt(n,t,r,e){if(!n||!n.length)return[];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)),null!=r&&(r=o.createCallback(r,e,3)),xt(n,t,r)
|
||||
}function qt(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,r=n?Ht(Ce(n,"length")):0,e=Or(0>r?0:r);++t<r;)e[t]=Ce(n,t);return e}function Ut(n,t){var r=-1,e=n?n.length:0,u={};for(t||!e||Oe(n[0])||(t=[]);++r<e;){var o=n[r];t?u[o]=t[r]:o&&(u[o[0]]=o[1])}return u}function Pt(){return this.__wrapped__}function Kt(n,t,r){var e=n?n.length:0;if(r=typeof r=="number"&&+r||0,typeof e=="number"&&-1<e&&e<=qr){if(typeof n=="string"||!Oe(n)&&gr(n))return r<e?re?re.call(n,t,r):-1<n.indexOf(t,r):false;var u=It();
|
||||
return r=0>r?le(0,e+r):r,-1<u(n,t,r)}var o=-1,i=false;return ft(n,function(n){return++o<r?void 0:!(i=n===t)}),i}function Mt(n,t,r){var e=true;t=o.createCallback(t,r,3),r=-1;var u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=qr){for(;++r<u;)if(!t(n[r],r,n))return false}else ft(n,function(n,r,u){return e=!!t(n,r,u)});return e}function Vt(n,t,r){var e=[];t=o.createCallback(t,r,3),r=-1;var u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=qr)for(;++r<u;){var i=n[r];t(i,r,n)&&e.push(i)}else ft(n,function(n,r,u){t(n,r,u)&&e.push(n)
|
||||
});return e}function Zt(n,t,r){var e=n?n.length:0;return typeof e=="number"&&-1<e&&e<=qr?(t=St(n,t,r),-1<t?n[t]:_):(t=o.createCallback(t,r,3),pt(n,t,ft))}function Xt(n,t,r){var e=-1,u=n?n.length:0;if(t=t&&typeof r=="undefined"?t:U(t,r,3),typeof u=="number"&&-1<u&&u<=qr)for(;++e<u&&false!==t(n[e],e,n););else ft(n,t);return n}function Yt(n,t,r){var e=n?n.length:0;if(t=t&&typeof r=="undefined"?t:U(t,r,3),typeof e=="number"&&-1<e&&e<=qr)for(;e--&&false!==t(n[e],e,n););else ct(n,t);return n}function Gt(n,t,r){var e=-1,u=n?n.length:0;
|
||||
if(t=o.createCallback(t,r,3),typeof u=="number"&&-1<u&&u<=qr)for(var i=Or(u);++e<u;)i[e]=t(n[e],e,n);else i=[],ft(n,function(n,r,u){i[++e]=t(n,r,u)});return i}function Ht(n,t,r){var e=-1/0,i=e,a=typeof t;if("number"!=a&&"string"!=a||!r||r[t]!==n||(t=null),null==t&&Oe(n))for(r=-1,a=n.length;++r<a;){var l=n[r];l>i&&(i=l)}else t=null==t&&gr(n)?u:o.createCallback(t,r,3),ft(n,function(n,r,u){r=t(n,r,u),r>e&&(e=r,i=n)});return i}function Jt(n,t,r,e){var u=3>arguments.length;t=o.createCallback(t,e,4);var i=-1,a=n?n.length:0;
|
||||
if(typeof a=="number"&&-1<a&&a<=qr)for(u&&a&&(r=n[++i]);++i<a;)r=t(r,n[i],i,n);else ft(n,function(n,e,o){r=u?(u=false,n):t(r,n,e,o)});return r}function Qt(n,t,r,e){var u=3>arguments.length;return t=o.createCallback(t,e,4),ct(n,function(n,e,o){r=u?(u=false,n):t(r,n,e,o)}),r}function nr(n){var t=-1,r=n&&n.length,e=Or(0>r?0:r>>>0);return ft(n,function(n){var r=wt(0,++t);e[t]=e[r],e[r]=n}),e}function tr(n,t,r){var e;t=o.createCallback(t,r,3),r=-1;var u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=qr){for(;++r<u;)if(t(n[r],r,n))return true
|
||||
}else ft(n,function(n,r,u){return!(e=t(n,r,u))});return!!e}function rr(n,t){if(3>arguments.length)return At(n,w,null,t);if(n)var r=n[I]?n[I][2]:n.length,e=Lt(arguments,2),r=r-e.length;return At(n,w|C,r,t,e)}function er(n,t,r){var e,u,o,i,a,l,f,c=0,p=false,s=true;if(!cr(n))throw new Fr;if(t=0>t?0:t,true===r)var h=true,s=false;else pr(r)&&(h=r.leading,p="maxWait"in r&&(le(t,r.maxWait)||0),s="trailing"in r?r.trailing:s);var g=function(){var r=t-(Fe()-i);0>=r||r>t?(u&&Mr(u),r=f,u=l=f=_,r&&(c=Fe(),o=n.apply(a,e),l||u||(e=a=null))):l=Jr(g,r)
|
||||
},v=function(){l&&Mr(l),u=l=f=_,(s||p!==t)&&(c=Fe(),o=n.apply(a,e),l||u||(e=a=null))};return function(){if(e=arguments,i=Fe(),a=this,f=s&&(l||!h),false===p)var r=h&&!l;else{u||h||(c=i);var y=p-(i-c),m=0>=y||y>p;m?(u&&(u=Mr(u)),c=i,o=n.apply(a,e)):u||(u=Jr(v,y))}return m&&l?l=Mr(l):l||t===p||(l=Jr(g,t)),r&&(m=true,o=n.apply(a,e)),!m||l||u||(e=a=null),o}}function ur(n){if(!cr(n))throw new Fr;return function(){return!n.apply(this,arguments)}}function or(n,t,r){var e=arguments;if(!n||2>e.length)return n;var u=0,o=e.length,i=typeof r;
|
||||
if("number"!=i&&"string"!=i||!e[3]||e[3][r]!==t||(o=2),3<o&&"function"==typeof e[o-2])var a=U(e[--o-1],e[o--],2);else 2<o&&"function"==typeof e[o-1]&&(a=e[--o]);for(;++u<o;){t=e[u];for(var i=-1,l=Ie(t),f=l.length;++i<f;){var c=l[i];n[c]=a?a(n[c],t[c]):t[c]}}return n}function ir(t){if(!t||2>arguments.length)return t;var r=Lt(arguments);return r.push(n),or.apply(null,r)}function ar(n){var t=[];return gt(n,function(n,r){cr(n)&&t.push(r)},vr),t.sort()}function lr(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Ur.call(n)==G||false
|
||||
}function fr(n){return n&&typeof n=="object"&&1===n.nodeType&&-1<Ur.call(n).indexOf("Element")||false}function cr(n){return typeof n=="function"}function pr(n){var t=typeof n;return n&&("function"==t||"object"==t)||false}function sr(n){var t=typeof n;return"number"==t||n&&"object"==t&&Ur.call(n)==tt||false}function hr(n){return n&&typeof n=="object"&&Ur.call(n)==et||false}function gr(n){return typeof n=="string"||n&&typeof n=="object"&&Ur.call(n)==ut||false}function vr(n){var t=[];if(!pr(n))return t;for(var r in n)t.push(r);
|
||||
return t}function yr(n,t,r){var e={};if(typeof t!="function")for(var u=-1,i=st(arguments,true,false,1),a=pr(n)?i.length:0;++u<a;){var l=i[u];l in n&&(e[l]=n[l])}else t=o.createCallback(t,r,3),gt(n,function(n,r,u){t(n,r,u)&&(e[r]=n)},vr);return e}function mr(n){return kt(n,Ie)}function dr(n){return null==n?"":Wr(n).replace(K,"\\$&")}function br(n,t){var r="";if(t|=0,1>t||null==n)return r;n=Wr(n);do t%2&&(r+=n),t=Vr(t/2),n+=n;while(t);return r}function _r(n,t,r){var e=typeof n;return"function"==e||null==n?(typeof t=="undefined"||!("prototype"in n))&&n||U(n,t,r):"object"!=e?Cr(n):xr(n)
|
||||
}function wr(n){return n}function xr(n){n||(n={});var t=Ie(n),r=t.length,e=t[0],u=n[e];return 1!=r||u!==u||pr(u)?function(e){for(var u=r,o=false;u--&&(o=t[u],o=Yr.call(e,o)&&bt(e[o],n[o],null,true)););return o}:function(n){return Yr.call(n,e)?(n=n[e],u===n&&(0!==u||1/u==1/n)):false}}function kr(n,t,r){var e=true,u=t&&ar(t);t&&(r||u.length)||(null==r&&(r=t),t=n,n=o,u=ar(t)),false===r?e=false:pr(r)&&"chain"in r&&(e=r.chain),r=-1;for(var i=cr(n),a=u?u.length:0;++r<a;){var l=u[r],f=n[l]=t[l];i&&(n.prototype[l]=function(t){return function(){var r=this.__chain__,u=this.__wrapped__,o=[u];
|
||||
if(Gr.apply(o,arguments),o=t.apply(n,o),e||r){if(u===o&&pr(o))return this;o=new n(o),o.__chain__=r}return o}}(f))}}function jr(){}function Cr(n){return function(t){return null==t?_:t[n]}}t=t?yt.defaults(ht.Object(),t,yt.pick(ht,Y)):ht;var Or=t.Array,Ar=t.Boolean,Ir=t.Date,Er=t.Function,Rr=t.Math,Nr=t.Number,Sr=t.Object,Tr=t.RegExp,Wr=t.String,Fr=t.TypeError,$r=Or.prototype,Dr=Sr.prototype,Lr=Wr.prototype,zr=(zr=t.window)&&zr.document,Br=t._,qr=Rr.pow(2,53)-1,Ur=Dr.toString,Pr=Tr("^"+dr(Ur).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Kr=Rr.ceil,Mr=t.clearTimeout,Vr=Rr.floor,Zr=Er.prototype.toString,Xr=Et(Xr=Sr.getPrototypeOf)&&Xr,Yr=Dr.hasOwnProperty,Gr=$r.push,Hr=Et(Hr=t.Set)&&Hr,Jr=t.setTimeout,Qr=$r.splice,ne=$r.unshift,te=function(){try{var n={},t=Et(t=Sr.defineProperty)&&t,r=t(n,n,n)&&t
|
||||
},vr),typeof r=="undefined"||Yr.call(n,r)):false}function Nt(n){var t=-1,r=vr(n),e=r.length,u=e&&n.length,o=[];if(typeof u=="number"&&0<u)var i=Oe(n),a=u-1;for(;++t<e;)u=r[t],(i&&-1<u&&u<=a&&0==u%1||Yr.call(n,u))&&o.push(u);return o}function St(n,t,r){var e=-1,u=n?n.length:0;for(t=o.createCallback(t,r,3);++e<u;)if(t(n[e],e,n))return e;return-1}function Tt(n,t,r){if(typeof t!="number"&&null!=t){var e=-1,u=n?n.length:0,i=0;for(t=o.createCallback(t,r,3);++e<u&&t(n[e],e,n);)i++}else if(i=t,null==i||r)return n?n[0]:_;
|
||||
return Lt(n,0,0>i?0:i)}function Wt(n,t,e){var u=n?n.length:0;if(typeof e=="number")e=0>e?le(0,u+e):e||0;else if(e)return e=zt(n,t),u&&n[e]===t?e:-1;return r(n,t,e)}function Ft(n,t,r){var e=n?n.length:0;if(typeof t!="number"&&null!=t){var u=e,i=0;for(t=o.createCallback(t,r,3);u--&&t(n[u],u,n);)i++}else i=null==t||r?1:t;return i=e-i,Lt(n,0,0>i?0:i)}function $t(n,t,r){var e=n?n.length:0;if(typeof t!="number"&&null!=t){var u=e,i=0;for(t=o.createCallback(t,r,3);u--&&t(n[u],u,n);)i++}else if(i=t,null==i||r)return n?n[e-1]:_;
|
||||
return i=e-i,Lt(n,0>i?0:i)}function Dt(n,t,r){if(typeof t!="number"&&null!=t){var e=-1,u=n?n.length:0,i=0;for(t=o.createCallback(t,r,3);++e<u&&t(n[e],e,n);)i++}else i=null==t||r?1:0>t?0:t;return Lt(n,i)}function Lt(n,t,r){var e=-1,u=n?n.length:0;for(t=+t||0,0>t?t=le(u+t,0):t>u&&(t=u),r=typeof r=="undefined"?u:+r||0,0>r?r=le(u+r,0):r>u&&(r=u),u=t>r?0:r-t,r=Or(u);++e<u;)r[e]=n[t+e];return r}function zt(n,t,r,e){var u=0,i=n?n.length:u;for(r=r?o.createCallback(r,e,1):wr,t=r(t);u<i;)e=u+i>>>1,r(n[e])<t?u=e+1:i=e;
|
||||
return u}function Bt(n,t,r,e){if(!n||!n.length)return[];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)),null!=r&&(r=o.createCallback(r,e,3)),xt(n,t,r)}function qt(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,r=n?Ht(Ce(n,"length")):0,e=Or(0>r?0:r);++t<r;)e[t]=Ce(n,t);return e}function Ut(n,t){var r=-1,e=n?n.length:0,u={};for(t||!e||Oe(n[0])||(t=[]);++r<e;){var o=n[r];t?u[o]=t[r]:o&&(u[o[0]]=o[1])}return u}function Pt(){return this.__wrapped__
|
||||
}function Kt(n,t,r){var e=n?n.length:0;if(r=typeof r=="number"&&+r||0,typeof e=="number"&&-1<e&&e<=qr){if(typeof n=="string"||!Oe(n)&&gr(n))return r<e?re?re.call(n,t,r):-1<n.indexOf(t,r):false;var u=It();return r=0>r?le(0,e+r):r,-1<u(n,t,r)}var o=-1,i=false;return ft(n,function(n){return++o<r?void 0:!(i=n===t)}),i}function Mt(n,t,r){var e=true;t=o.createCallback(t,r,3),r=-1;var u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=qr){for(;++r<u;)if(!t(n[r],r,n))return false}else ft(n,function(n,r,u){return e=!!t(n,r,u)
|
||||
});return e}function Vt(n,t,r){var e=[];t=o.createCallback(t,r,3),r=-1;var u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=qr)for(;++r<u;){var i=n[r];t(i,r,n)&&e.push(i)}else ft(n,function(n,r,u){t(n,r,u)&&e.push(n)});return e}function Zt(n,t,r){var e=n?n.length:0;return typeof e=="number"&&-1<e&&e<=qr?(t=St(n,t,r),-1<t?n[t]:_):(t=o.createCallback(t,r,3),pt(n,t,ft))}function Xt(n,t,r){var e=-1,u=n?n.length:0;if(t=t&&typeof r=="undefined"?t:U(t,r,3),typeof u=="number"&&-1<u&&u<=qr)for(;++e<u&&false!==t(n[e],e,n););else ft(n,t);
|
||||
return n}function Yt(n,t,r){var e=n?n.length:0;if(t=t&&typeof r=="undefined"?t:U(t,r,3),typeof e=="number"&&-1<e&&e<=qr)for(;e--&&false!==t(n[e],e,n););else ct(n,t);return n}function Gt(n,t,r){var e=-1,u=n?n.length:0;if(t=o.createCallback(t,r,3),typeof u=="number"&&-1<u&&u<=qr)for(var i=Or(u);++e<u;)i[e]=t(n[e],e,n);else i=[],ft(n,function(n,r,u){i[++e]=t(n,r,u)});return i}function Ht(n,t,r){var e=-1/0,i=e,a=typeof t;if("number"!=a&&"string"!=a||!r||r[t]!==n||(t=null),null==t&&Oe(n))for(r=-1,a=n.length;++r<a;){var l=n[r];
|
||||
l>i&&(i=l)}else t=null==t&&gr(n)?u:o.createCallback(t,r,3),ft(n,function(n,r,u){r=t(n,r,u),r>e&&(e=r,i=n)});return i}function Jt(n,t,r,e){var u=3>arguments.length;t=o.createCallback(t,e,4);var i=-1,a=n?n.length:0;if(typeof a=="number"&&-1<a&&a<=qr)for(u&&a&&(r=n[++i]);++i<a;)r=t(r,n[i],i,n);else ft(n,function(n,e,o){r=u?(u=false,n):t(r,n,e,o)});return r}function Qt(n,t,r,e){var u=3>arguments.length;return t=o.createCallback(t,e,4),ct(n,function(n,e,o){r=u?(u=false,n):t(r,n,e,o)}),r}function nr(n){var t=-1,r=n&&n.length,e=Or(0>r?0:r>>>0);
|
||||
return ft(n,function(n){var r=wt(0,++t);e[t]=e[r],e[r]=n}),e}function tr(n,t,r){var e;t=o.createCallback(t,r,3),r=-1;var u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=qr){for(;++r<u;)if(t(n[r],r,n))return true}else ft(n,function(n,r,u){return!(e=t(n,r,u))});return!!e}function rr(n,t){if(3>arguments.length)return At(n,w,null,t);if(n)var r=n[I]?n[I][2]:n.length,e=Lt(arguments,2),r=r-e.length;return At(n,w|C,r,t,e)}function er(n,t,r){var e,u,o,i,a,l,f,c=0,p=false,s=true;if(!cr(n))throw new Fr;if(t=0>t?0:t,true===r)var h=true,s=false;
|
||||
else pr(r)&&(h=r.leading,p="maxWait"in r&&(le(t,r.maxWait)||0),s="trailing"in r?r.trailing:s);var g=function(){var r=t-(Fe()-i);0>=r||r>t?(u&&Mr(u),r=f,u=l=f=_,r&&(c=Fe(),o=n.apply(a,e),l||u||(e=a=null))):l=Jr(g,r)},v=function(){l&&Mr(l),u=l=f=_,(s||p!==t)&&(c=Fe(),o=n.apply(a,e),l||u||(e=a=null))};return function(){if(e=arguments,i=Fe(),a=this,f=s&&(l||!h),false===p)var r=h&&!l;else{u||h||(c=i);var y=p-(i-c),m=0>=y||y>p;m?(u&&(u=Mr(u)),c=i,o=n.apply(a,e)):u||(u=Jr(v,y))}return m&&l?l=Mr(l):l||t===p||(l=Jr(g,t)),r&&(m=true,o=n.apply(a,e)),!m||l||u||(e=a=null),o
|
||||
}}function ur(n){if(!cr(n))throw new Fr;return function(){return!n.apply(this,arguments)}}function or(n,t,r){var e=arguments;if(!n||2>e.length)return n;var u=0,o=e.length,i=typeof r;if("number"!=i&&"string"!=i||!e[3]||e[3][r]!==t||(o=2),3<o&&"function"==typeof e[o-2])var a=U(e[--o-1],e[o--],2);else 2<o&&"function"==typeof e[o-1]&&(a=e[--o]);for(;++u<o;){t=e[u];for(var i=-1,l=Ie(t),f=l.length;++i<f;){var c=l[i];n[c]=a?a(n[c],t[c]):t[c]}}return n}function ir(t){if(!t||2>arguments.length)return t;var r=Lt(arguments);
|
||||
return r.push(n),or.apply(null,r)}function ar(n){var t=[];return gt(n,function(n,r){cr(n)&&t.push(r)},vr),t.sort()}function lr(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Ur.call(n)==G||false}function fr(n){return n&&typeof n=="object"&&1===n.nodeType&&-1<Ur.call(n).indexOf("Element")||false}function cr(n){return typeof n=="function"}function pr(n){var t=typeof n;return n&&("function"==t||"object"==t)||false}function sr(n){var t=typeof n;return"number"==t||n&&"object"==t&&Ur.call(n)==tt||false
|
||||
}function hr(n){return n&&typeof n=="object"&&Ur.call(n)==et||false}function gr(n){return typeof n=="string"||n&&typeof n=="object"&&Ur.call(n)==ut||false}function vr(n){if(!pr(n))return[];var t=Oe(n)?n.length:0,r=t-1,e=Or(t),u=0<t;if(u)for(var o=-1;++o<t;)e[o]=Wr(o);for(var i in n)u&&-1<i&&i<=r&&0==i%1||e.push(i);return e}function yr(n,t,r){var e={};if(typeof t!="function")for(var u=-1,i=st(arguments,true,false,1),a=pr(n)?i.length:0;++u<a;){var l=i[u];l in n&&(e[l]=n[l])}else t=o.createCallback(t,r,3),gt(n,function(n,r,u){t(n,r,u)&&(e[r]=n)
|
||||
},vr);return e}function mr(n){return kt(n,Ie)}function dr(n){return null==n?"":Wr(n).replace(K,"\\$&")}function br(n,t){var r="";if(t|=0,1>t||null==n)return r;n=Wr(n);do t%2&&(r+=n),t=Vr(t/2),n+=n;while(t);return r}function _r(n,t,r){var e=typeof n;return"function"==e||null==n?(typeof t=="undefined"||!("prototype"in n))&&n||U(n,t,r):"object"!=e?Cr(n):xr(n)}function wr(n){return n}function xr(n){n||(n={});var t=Ie(n),r=t.length,e=t[0],u=n[e];return 1!=r||u!==u||pr(u)?function(e){for(var u=r,o=false;u--&&(o=t[u],o=Yr.call(e,o)&&bt(e[o],n[o],null,true)););return o
|
||||
}:function(n){return Yr.call(n,e)?(n=n[e],u===n&&(0!==u||1/u==1/n)):false}}function kr(n,t,r){var e=true,u=t&&ar(t);t&&(r||u.length)||(null==r&&(r=t),t=n,n=o,u=ar(t)),false===r?e=false:pr(r)&&"chain"in r&&(e=r.chain),r=-1;for(var i=cr(n),a=u?u.length:0;++r<a;){var l=u[r],f=n[l]=t[l];i&&(n.prototype[l]=function(t){return function(){var r=this.__chain__,u=this.__wrapped__,o=[u];if(Gr.apply(o,arguments),o=t.apply(n,o),e||r){if(u===o&&pr(o))return this;o=new n(o),o.__chain__=r}return o}}(f))}}function jr(){}function Cr(n){return function(t){return null==t?_:t[n]
|
||||
}}t=t?yt.defaults(ht.Object(),t,yt.pick(ht,Y)):ht;var Or=t.Array,Ar=t.Boolean,Ir=t.Date,Er=t.Function,Rr=t.Math,Nr=t.Number,Sr=t.Object,Tr=t.RegExp,Wr=t.String,Fr=t.TypeError,$r=Or.prototype,Dr=Sr.prototype,Lr=Wr.prototype,zr=(zr=t.window)&&zr.document,Br=t._,qr=Rr.pow(2,53)-1,Ur=Dr.toString,Pr=Tr("^"+dr(Ur).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Kr=Rr.ceil,Mr=t.clearTimeout,Vr=Rr.floor,Zr=Er.prototype.toString,Xr=Et(Xr=Sr.getPrototypeOf)&&Xr,Yr=Dr.hasOwnProperty,Gr=$r.push,Hr=Et(Hr=t.Set)&&Hr,Jr=t.setTimeout,Qr=$r.splice,ne=$r.unshift,te=function(){try{var n={},t=Et(t=Sr.defineProperty)&&t,r=t(n,n,n)&&t
|
||||
}catch(e){}return r}(),re=Et(re=Lr.contains)&&re,ee=Et(ee=Sr.create)&&ee,ue=Et(ue=Or.isArray)&&ue,oe=t.isFinite,ie=t.isNaN,ae=Et(ae=Sr.keys)&&ae,le=Rr.max,fe=Rr.min,ce=Et(ce=Ir.now)&&ce,pe=t.parseInt,se=Rr.random,he=Et(he=Lr.trim)&&!he.call(X)&&he,ge=Et(ge=Lr.trimLeft)&&!ge.call(X)&&ge,ve=Et(ve=Lr.trimRight)&&!ve.call(X)&&ve,ye={};ye[H]=Or,ye[J]=Ar,ye[Q]=Ir,ye[nt]=Er,ye[rt]=Sr,ye[tt]=Nr,ye[et]=Tr,ye[ut]=Wr,i.prototype=o.prototype;var me=o.support={};me.funcDecomp=!Et(t.WinRTError)&&M.test(b),me.funcNames=typeof Er.name=="string";
|
||||
try{me.dom=11===zr.createDocumentFragment().nodeType}catch(de){me.dom=false}o.templateSettings={escape:F,evaluate:$,interpolate:D,variable:"",imports:{_:o}},ee||(m=function(){function n(){}return function(r){if(pr(r)){n.prototype=r;var e=new n;n.prototype=null}return e||t.Object()}}());var be=Hr&&function(n){var t=new Hr,r=n?n.length:0;for(t.push=t.add;r--;)t.push(n[r]);return t},_e=te?function(n,t){at.value=t,te(n,I,at)}:jr,we=Ct(function(n,t,r){Yr.call(n,r)?n[r]++:n[r]=1}),xe=Ct(function(n,t,r){Yr.call(n,r)?n[r].push(t):n[r]=[t]
|
||||
}),ke=Ct(function(n,t,r){n[r]=t}),je=Ct(function(n,t,r){n[r?0:1].push(t)},true),Ce=Gt,Oe=ue||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Ur.call(n)==H||false};me.dom||(fr=function(n){return n&&typeof n=="object"&&1===n.nodeType&&!Ae(n)||false});var Ae=Xr?function(n){if(!n||Ur.call(n)!=rt)return false;var t=n.valueOf,r=Et(t)&&(r=Xr(t))&&Xr(r);return r?n==r||Xr(n)==r:Rt(n)}:Rt,Ie=ae?function(n){return pr(n)?ae(n):[]}:Nt,Ee=f(function(n,t,r){return n+t.charAt(0)[r?"toUpperCase":"toLowerCase"]()+t.slice(1)
|
||||
}),ke=Ct(function(n,t,r){n[r]=t}),je=Ct(function(n,t,r){n[r?0:1].push(t)},true),Ce=Gt,Oe=ue||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Ur.call(n)==H||false};me.dom||(fr=function(n){return n&&typeof n=="object"&&1===n.nodeType&&!Ae(n)||false});var Ae=Xr?function(n){if(!n||Ur.call(n)!=rt)return false;var t=n.valueOf,r=Et(t)&&(r=Xr(t))&&Xr(r);return r?n==r||Xr(n)==r:Rt(n)}:Rt,Ie=ae?function(n){var t=n?n.length:0;return typeof t=="number"&&0<t?Nt(n):pr(n)?ae(n):[]}:Nt,Ee=f(function(n,t,r){return n+t.charAt(0)[r?"toUpperCase":"toLowerCase"]()+t.slice(1)
|
||||
}),Re=f(function(n,t,r){return n+(r?"-":"")+t.toLowerCase()}),Ne=f(function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}),Se=he?function(n,t){return null==n?"":null==t?he.call(n):h(n,t)}:h,Te=ge?function(n,t){return null==n?"":null==t?ge.call(n):g(n,t)}:g,We=ve?function(n,t){return null==n?"":null==t?ve.call(n):v(n,t)}:v,Fe=ce||function(){return(new Ir).getTime()},$e=8==pe(X+"08")?pe:function(n,t){return n=Se(n),pe(n,+t||(q.test(n)?16:10))};return o.after=function(n,t){if(!cr(t))throw new Fr;return function(){return 1>--n?t.apply(this,arguments):void 0
|
||||
}},o.assign=or,o.at=function(n,t){var r=arguments,e=-1,u=st(r,true,false,1),o=u.length,i=typeof t;for("number"!=i&&"string"!=i||!r[2]||r[2][t]!==n||(o=1),r=Or(o);++e<o;)r[e]=n[u[e]];return r},o.bind=rr,o.bindAll=function(n){for(var t=1<arguments.length?st(arguments,true,false,1):ar(n),r=-1,e=t.length;++r<e;){var u=t[r];n[u]=At(n[u],w,null,n)}return n},o.bindKey=function(n,t){return 3>arguments.length?At(t,w|x,null,n):At(t,w|x|C,null,n,Lt(arguments,2))},o.chain=function(n){return n=new i(n),n.__chain__=true,n
|
||||
},o.compact=function(n){for(var t=-1,r=n?n.length:0,e=0,u=[];++t<r;){var o=n[t];o&&(u[e++]=o)}return u},o.compose=function(){for(var n=arguments,t=n.length,r=t;r--;)if(!cr(n[r]))throw new Fr;return function(){for(var r=t-1,e=n[r].apply(this,arguments);r--;)e=n[r].call(this,e);return e}},o.constant=function(n){return function(){return n}},o.countBy=we,o.create=function(n,t){var r=m(n);return t?or(r,t):r},o.createCallback=_r,o.curry=function(n,t){return typeof t!="number"&&(t=+t||(n?n.length:0)),At(n,k,t)
|
||||
},o.debounce=er,o.defaults=ir,o.defer=function(n){if(!cr(n))throw new Fr;var t=Lt(arguments,1);return Jr(function(){n.apply(_,t)},1)},o.delay=function(n,t){if(!cr(n))throw new Fr;var r=Lt(arguments,2);return Jr(function(){n.apply(_,r)},t)},o.difference=function(n){return lt(n,st(arguments,true,true,1))},o.drop=Dt,o.dropRight=Ft,o.dropRightWhile=Ft,o.dropWhile=Dt,o.filter=Vt,o.flatten=function(n,t,r,e){if(!n||!n.length)return[];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)),null!=r&&(n=Gt(n,r,e)),st(n,t)
|
||||
},o.forEach=Xt,o.forEachRight=Yt,o.forIn=function(n,t,r){return t=t&&typeof r=="undefined"?t:U(t,r,3),gt(n,t,vr)},o.forInRight=function(n,t,r){return t=U(t,r,3),vt(n,t,vr)},o.forOwn=function(n,t,r){return t=t&&typeof r=="undefined"?t:U(t,r,3),mt(n,t)},o.forOwnRight=function(n,t,r){return t=U(t,r,3),vt(n,t,Ie)},o.functions=ar,o.groupBy=xe,o.indexBy=ke,o.initial=Ft,o.intersection=function(n){if(!n)return[];for(var t=[],u=-1,o=arguments.length,i=[],a=It(),l=be&&a===r,f=[];++u<o;){var c=arguments[u];
|
||||
(Oe(c)||lr(c))&&(t.push(c),i.push(l&&120<=c.length&&be(u?c:f)))}o=t.length,n=t[0];var l=-1,p=n?n.length:0,s=[];n:for(;++l<p;){var h=i[0],c=n[l];if(0>(h?e(h,c):a(f,c))){for(u=o,(h||f).push(c);--u;)if(h=i[u],0>(h?e(h,c):a(t[u],c)))continue n;s.push(c)}}return s},o.invert=function(n,t){for(var r=-1,e=Ie(n),u=e.length,o={};++r<u;){var i=e[r],a=n[i];t?Yr.call(o,a)?o[a].push(i):o[a]=[i]:o[a]=i}return o},o.invoke=function(n,t){var r=Lt(arguments,2),e=-1,u=typeof t=="function",o=n&&n.length,i=Or(0>o?0:o>>>0);
|
||||
return ft(n,function(n){var o=u?t:null!=n&&n[t];i[++e]=o?o.apply(n,r):_}),i},o.keys=Ie,o.keysIn=vr,o.map=Gt,o.mapValues=function(n,t,r){var e={};return t=o.createCallback(t,r,3),mt(n,function(n,r,u){e[r]=t(n,r,u)}),e},o.matches=xr,o.max=Ht,o.memoize=function(n,t){if(!cr(n))throw new Fr;var r=function(){var e=r.cache,u=t?t.apply(this,arguments):"_"+arguments[0];return Yr.call(e,u)?e[u]:e[u]=n.apply(this,arguments)};return r.cache={},r},o.merge=function(n,t,r){if(!n)return n;var e=arguments,u=e.length,o=typeof r;
|
||||
if("number"!=o&&"string"!=o||!e[3]||e[3][r]!==t||(u=2),3<u&&"function"==typeof e[u-2])var i=U(e[--u-1],e[u--],2);else 2<u&&"function"==typeof e[u-1]&&(i=e[--u]);for(var e=Lt(e,1,u),o=-1,a=[],l=[];++o<u;)_t(n,e[o],i,a,l);return n},o.min=function(n,t,r){var e=1/0,i=e,a=typeof t;if("number"!=a&&"string"!=a||!r||r[t]!==n||(t=null),null==t&&Oe(n))for(r=-1,a=n.length;++r<a;){var l=n[r];l<i&&(i=l)}else t=null==t&&gr(n)?u:o.createCallback(t,r,3),ft(n,function(n,r,u){r=t(n,r,u),r<e&&(e=r,i=n)});return i},o.negate=ur,o.omit=function(n,t,r){if(typeof t=="function")return t=o.createCallback(t,r,3),yr(n,ur(t));
|
||||
for(var e=st(arguments,true,false,1),u=e.length;u--;)e[u]=Wr(e[u]);return yr(n,lt(vr(n),e))},o.once=function(n){var t,r;if(!cr(n))throw new Fr;return function(){return t?r:(t=true,r=n.apply(this,arguments),n=null,r)}},o.pairs=function(n){for(var t=-1,r=Ie(n),e=r.length,u=Or(e);++t<e;){var o=r[t];u[t]=[o,n[o]]}return u},o.partial=function(n){if(n)var t=n[I]?n[I][2]:n.length,r=Lt(arguments,1),t=t-r.length;return At(n,C,t,null,r)},o.partialRight=function(n){if(n)var t=n[I]?n[I][2]:n.length,r=Lt(arguments,1),t=t-r.length;
|
||||
return At(n,O,t,null,null,r)},o.partition=je,o.pick=yr,o.pluck=Ce,o.property=Cr,o.pull=function(n){for(var t=0,r=arguments.length,e=n?n.length:0;++t<r;)for(var u=-1,o=arguments[t];++u<e;)n[u]===o&&(Qr.call(n,u--,1),e--);return n},o.range=function(n,t,r){n=+n||0,r=null==r?1:+r||0,null==t?(t=n,n=0):t=+t||0;var e=-1;t=le(0,Kr((t-n)/(r||1)));for(var u=Or(t);++e<t;)u[e]=n,n+=r;return u},o.reject=function(n,t,r){return t=o.createCallback(t,r,3),Vt(n,ur(t))},o.remove=function(n,t,r){var e=-1,u=n?n.length:0,i=[];
|
||||
for(t=o.createCallback(t,r,3);++e<u;)r=n[e],t(r,e,n)&&(i.push(r),Qr.call(n,e--,1),u--);return i},o.rest=Dt,o.shuffle=nr,o.slice=Lt,o.sortBy=function(n,t,r){var e=-1,u=n&&n.length,i=t&&Oe(t),f=Or(0>u?0:u>>>0);for(i||(t=o.createCallback(t,r,3)),ft(n,function(n,r,u){if(i)for(r=t.length,u=Or(r);r--;)u[r]=n[t[r]];else u=t(n,r,u);f[++e]={a:u,b:e,c:n}}),u=f.length,f.sort(i?l:a);u--;)f[u]=f[u].c;return f},o.tap=function(n,t,r){return t.call(r,n),n},o.throttle=function(n,t,r){var e=true,u=true;if(!cr(n))throw new Fr;
|
||||
return false===r?e=false:pr(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),it.leading=e,it.maxWait=+t,it.trailing=u,er(n,t,it)},o.times=function(n,t,r){n=-1<(n=+n)?n:0;var e=-1,u=Or(n);for(t=U(t,r,1);++e<n;)u[e]=t(e);return u},o.toArray=function(n){var t=n&&n.length;return typeof t=="number"&&-1<t&&t<=qr?Lt(n):mr(n)},o.transform=function(n,t,r,e){var u=Oe(n);if(null==r)if(u)r=[];else{var i=n&&n.constructor;r=m(i&&i.prototype)}return t&&(t=o.createCallback(t,e,4),(u?ft:mt)(n,function(n,e,u){return t(r,n,e,u)
|
||||
})),r},o.union=function(){return xt(st(arguments,true,true))},o.uniq=Bt,o.values=mr,o.valuesIn=function(n){return kt(n,vr)},o.where=Vt,o.without=function(){return lt(arguments[0],Lt(arguments,1))},o.wrap=function(n,t){return At(t,C,null,null,[n])},o.xor=function(){for(var n=-1,t=arguments.length;++n<t;){var r=arguments[n];if(Oe(r)||lr(r))var e=e?lt(e,r).concat(lt(r,e)):r}return e?xt(e):[]},o.zip=qt,o.zipObject=Ut,o.callback=_r,o.collect=Gt,o.each=Xt,o.eachRight=Yt,o.extend=or,o.methods=ar,o.object=Ut,o.select=Vt,o.tail=Dt,o.unique=Bt,o.unzip=qt,kr(or({},o)),o.camelCase=Ee,o.capitalize=function(n){return null==n?"":(n=Wr(n),n.charAt(0).toUpperCase()+n.slice(1))
|
||||
},o.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"&&U(r,e,1),y(n,t,r)},o.cloneDeep=function(n,t,r){return t=typeof t=="function"&&U(t,r,1),y(n,true,t)},o.contains=Kt,o.endsWith=function(n,t,r){n=null==n?"":Wr(n),t=Wr(t);var e=n.length;return r=(typeof r=="number"?fe(le(+r||0,0),e):e)-t.length,0<=r&&n.indexOf(t,r)==r},o.escape=function(n){return null==n?"":Wr(n).replace(W,p)},o.escapeRegExp=dr,o.every=Mt,o.find=Zt,o.findIndex=St,o.findKey=function(n,t,r){return t=o.createCallback(t,r,3),pt(n,t,mt,true)
|
||||
},o.findLast=function(n,t,r){return t=o.createCallback(t,r,3),pt(n,t,ct)},o.findLastIndex=function(n,t,r){var e=n?n.length:0;for(t=o.createCallback(t,r,3);e--;)if(t(n[e],e,n))return e;return-1},o.findLastKey=function(n,t,r){return t=o.createCallback(t,r,3),pt(n,t,dt,true)},o.has=function(n,t){return n?Yr.call(n,t):false},o.identity=wr,o.indexOf=Wt,o.isArguments=lr,o.isArray=Oe,o.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&Ur.call(n)==J||false},o.isDate=function(n){return n&&typeof n=="object"&&Ur.call(n)==Q||false
|
||||
},o.isElement=fr,o.isEmpty=function(n){var t=true;if(!n)return t;var r=Ur.call(n),e=n.length;return-1<e&&e<=qr&&(r==H||r==ut||r==G||r==rt&&cr(n.splice))?!e:(mt(n,function(){return t=false}),t)},o.isEqual=function(n,t,r,e){if(r=typeof r=="function"&&U(r,e,2),!r){if(n===t)return 0!==n||1/n==1/t;e=typeof n;var u=typeof t;if(n===n&&(null==n||null==t||"function"!=e&&"object"!=e&&"function"!=u&&"object"!=u))return false}return bt(n,t,r)},o.isFinite=function(n){return oe(n)&&!ie(parseFloat(n))},o.isFunction=cr,o.isNaN=function(n){return sr(n)&&n!=+n
|
||||
},o.isNull=function(n){return null===n},o.isNumber=sr,o.isObject=pr,o.isPlainObject=Ae,o.isRegExp=hr,o.isString=gr,o.isUndefined=function(n){return typeof n=="undefined"},o.kebabCase=Re,o.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(r|=0,e=(0>r?le(0,e+r):fe(r,e-1))+1);e--;)if(n[e]===t)return e;return-1},o.mixin=kr,o.noConflict=function(){return t._=Br,this},o.noop=jr,o.now=Fe,o.pad=function(n,t,r){n=null==n?"":Wr(n),t|=0;var e=n.length;return e<t?(e=(t-e)/2,t=Vr(e),e=Kr(e),r=Ot("",e,r),r.slice(0,t)+n+r):n
|
||||
},o.padLeft=function(n,t,r){return n=null==n?"":Wr(n),Ot(n,t,r)+n},o.padRight=function(n,t,r){return n=null==n?"":Wr(n),n+Ot(n,t,r)},o.parseInt=$e,o.random=function(n,t,r){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=se(),fe(n+r*(t-n+parseFloat("1e-"+((r+"").length-1))),t)):wt(n,t)},o.reduce=Jt,o.reduceRight=Qt,o.repeat=br,o.result=function(n,t,r){var e=null==n?_:n[t];return typeof e=="undefined"?r:cr(e)?n[t]():e
|
||||
},o.runInContext=b,o.size=function(n){var t=n?n.length:0;return typeof t=="number"&&-1<t&&t<=qr?t:Ie(n).length},o.some=tr,o.sortedIndex=zt,o.snakeCase=Ne,o.startsWith=function(n,t,r){return n=null==n?"":Wr(n),r=typeof r=="number"?fe(le(+r||0,0),n.length):0,n.lastIndexOf(t,r)==r},o.template=function(n,t,r){var e=o.templateSettings;r=ir({},r,e),n=Wr(null==n?"":n);var u,i,a=ir({},r.imports,e.imports),e=Ie(a),a=mr(a),l=0,f=r.interpolate||P,c="__p+='",f=Tr((r.escape||P).source+"|"+f.source+"|"+(f===D?L:P).source+"|"+(r.evaluate||P).source+"|$","g");
|
||||
n.replace(f,function(t,r,e,o,a,f){return e||(e=o),c+=n.slice(l,f).replace(V,s),r&&(u=true,c+="'+__e("+r+")+'"),a&&(i=true,c+="';"+a+";\n__p+='"),e&&(c+="'+((__t=("+e+"))==null?'':__t)+'"),l=f+t.length,t}),c+="';",(r=r.variable)||(c="with(obj){"+c+"}"),c=(i?c.replace(R,""):c).replace(N,"$1").replace(S,"$1;"),c="function("+(r||"obj")+"){"+(r?"":"obj||(obj={});")+"var __t,__p=''"+(u?",__e=_.escape":"")+(i?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+c+"return __p}";try{var p=Er(e,"return "+c).apply(_,a)
|
||||
}catch(h){throw h.source=c,h}return t?p(t):(p.source=c,p)},o.trim=Se,o.trimLeft=Te,o.trimRight=We,o.truncate=function(n,t){var r=30,e="...";if(t&&pr(t))var u="separator"in t?t.separator:u,r="length"in t?+t.length||0:r,e="omission"in t?Wr(t.omission):e;else null!=t&&(r=+t||0);if(n=null==n?"":Wr(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(hr(u)){if(n.slice(o).search(u)){var i,a,l=n.slice(0,o);for(u.global||(u=Tr(u.source,(z.exec(u)||"")+"g")),u.lastIndex=0;i=u.exec(l);)a=i.index;
|
||||
r=r.slice(0,null==a?o:a)}}else n.indexOf(u,o)!=o&&(u=r.lastIndexOf(u),-1<u&&(r=r.slice(0,u)));return r+e},o.unescape=function(n){return null==n?"":(n=Wr(n),0>n.indexOf(";")?n:n.replace(T,d))},o.uniqueId=function(n){var t=++E;return Wr(null==n?"":n)+t},o.all=Mt,o.any=tr,o.detect=Zt,o.findWhere=Zt,o.foldl=Jt,o.foldr=Qt,o.include=Kt,o.inject=Jt,kr(function(){var n={};return mt(o,function(t,r){o.prototype[r]||(n[r]=t)}),n}(),false),o.first=Tt,o.last=$t,o.sample=function(n,t,r){return n&&typeof n.length!="number"&&(n=mr(n)),null==t||r?(t=n?n.length:0,0<t?n[wt(0,t-1)]:_):(n=nr(n),n.length=fe(le(0,t),n.length),n)
|
||||
},o.take=Tt,o.takeRight=$t,o.takeRightWhile=$t,o.takeWhile=Tt,o.head=Tt,mt(o,function(n,t){var r="sample"!==t;o.prototype[t]||(o.prototype[t]=function(t,e){var u=this.__chain__,o=n(this.__wrapped__,t,e);return u||null!=t&&(!e||r&&typeof t=="function")?new i(o,u):o})}),o.VERSION=A,o.prototype.chain=function(){return this.__chain__=true,this},o.prototype.toString=function(){return Wr(this.__wrapped__)},o.prototype.value=Pt,o.prototype.valueOf=Pt,ft(["join","pop","shift"],function(n){var t=$r[n];o.prototype[n]=function(){var n=this.__chain__,r=t.apply(this.__wrapped__,arguments);
|
||||
return n?new i(r,n):r}}),ft(["push","reverse","sort","unshift"],function(n){var t=$r[n];o.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),ft(["concat","splice"],function(n){var t=$r[n];o.prototype[n]=function(){return new i(t.apply(this.__wrapped__,arguments),this.__chain__)}}),o}var _,w=1,x=2,k=4,j=8,C=16,O=32,A="2.4.1",I="__lodash@"+A+"__",E=0,R=/\b__p\+='';/g,N=/\b(__p\+=)''\+/g,S=/(__e\(.*?\)|\b__t\))\+'';/g,T=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,F=/<%-([\s\S]+?)%>/g,$=/<%([\s\S]+?)%>/g,D=/<%=([\s\S]+?)%>/g,L=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,z=/\w*$/,B=/^\s*function[ \n\r\t]+\w/,q=/^0[xX]/,U=/[\xC0-\xFF]/g,P=/($^)/,K=/[.*+?^${}()|[\]\\]/g,M=/\bthis\b/,V=/['\n\r\t\u2028\u2029\\]/g,Z=/[A-Z]{2,}|[a-zA-Z0-9][a-z0-9]*/g,X=" \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",Y="Array Boolean Date Function Math Number Object RegExp Set String _ clearTimeout document isFinite isNaN parseInt setTimeout TypeError window WinRTError".split(" "),G="[object Arguments]",H="[object Array]",J="[object Boolean]",Q="[object Date]",nt="[object Function]",tt="[object Number]",rt="[object Object]",et="[object RegExp]",ut="[object String]",ot={};
|
||||
}},o.assign=or,o.at=function(n,t){var r=arguments,e=-1,u=st(r,true,false,1),o=u.length,i=typeof t;for("number"!=i&&"string"!=i||!r[2]||r[2][t]!==n||(o=1),r=Or(o);++e<o;)r[e]=n[u[e]];return r},o.bind=rr,o.bindAll=function(n){for(var t=1<arguments.length?st(arguments,true,false,1):ar(n),r=-1,e=t.length;++r<e;){var u=t[r];n[u]=At(n[u],w,null,n)}return n},o.bindKey=function(n,t){return 3>arguments.length?At(t,w|x,null,n):At(t,w|x|C,null,n,Lt(arguments,2))},o.chain=function(n){return new i(n,true)},o.compact=function(n){for(var t=-1,r=n?n.length:0,e=0,u=[];++t<r;){var o=n[t];
|
||||
o&&(u[e++]=o)}return u},o.compose=function(){for(var n=arguments,t=n.length,r=t;r--;)if(!cr(n[r]))throw new Fr;return function(){for(var r=t-1,e=n[r].apply(this,arguments);r--;)e=n[r].call(this,e);return e}},o.constant=function(n){return function(){return n}},o.countBy=we,o.create=function(n,t){var r=m(n);return t?or(r,t):r},o.createCallback=_r,o.curry=function(n,t){return typeof t!="number"&&(t=+t||(n?n.length:0)),At(n,k,t)},o.debounce=er,o.defaults=ir,o.defer=function(n){if(!cr(n))throw new Fr;var t=Lt(arguments,1);
|
||||
return Jr(function(){n.apply(_,t)},1)},o.delay=function(n,t){if(!cr(n))throw new Fr;var r=Lt(arguments,2);return Jr(function(){n.apply(_,r)},t)},o.difference=function(){return lt(arguments[0],st(arguments,true,true,1))},o.drop=Dt,o.dropRight=Ft,o.dropRightWhile=Ft,o.dropWhile=Dt,o.filter=Vt,o.flatten=function(n,t,r,e){if(!n||!n.length)return[];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)),null!=r&&(n=Gt(n,r,e)),st(n,t)},o.forEach=Xt,o.forEachRight=Yt,o.forIn=function(n,t,r){return t=t&&typeof r=="undefined"?t:U(t,r,3),gt(n,t,vr)
|
||||
},o.forInRight=function(n,t,r){return t=U(t,r,3),vt(n,t,vr)},o.forOwn=function(n,t,r){return t=t&&typeof r=="undefined"?t:U(t,r,3),mt(n,t)},o.forOwnRight=function(n,t,r){return t=U(t,r,3),vt(n,t,Ie)},o.functions=ar,o.groupBy=xe,o.indexBy=ke,o.initial=Ft,o.intersection=function(){for(var n=[],t=-1,u=arguments.length,o=[],i=It(),a=be&&i===r;++t<u;){var l=arguments[t];(Oe(l)||lr(l))&&(n.push(l),o.push(a&&120<=l.length&&be(t&&l)))}var u=n.length,a=n[0],f=-1,c=a?a.length:0,p=[],s=o[0];n:for(;++f<c;)if(l=a[f],0>(s?e(s,l):i(p,l))){for(t=u;--t;){var h=o[t];
|
||||
if(0>(h?e(h,l):i(n[t],l)))continue n}s&&s.push(l),p.push(l)}return p},o.invert=function(n,t){for(var r=-1,e=Ie(n),u=e.length,o={};++r<u;){var i=e[r],a=n[i];t?Yr.call(o,a)?o[a].push(i):o[a]=[i]:o[a]=i}return o},o.invoke=function(n,t){var r=Lt(arguments,2),e=-1,u=typeof t=="function",o=n&&n.length,i=Or(0>o?0:o>>>0);return ft(n,function(n){var o=u?t:null!=n&&n[t];i[++e]=o?o.apply(n,r):_}),i},o.keys=Ie,o.keysIn=vr,o.map=Gt,o.mapValues=function(n,t,r){var e={};return t=o.createCallback(t,r,3),mt(n,function(n,r,u){e[r]=t(n,r,u)
|
||||
}),e},o.matches=xr,o.max=Ht,o.memoize=function(n,t){if(!cr(n))throw new Fr;var r=function(){var e=r.cache,u=t?t.apply(this,arguments):"_"+arguments[0];return Yr.call(e,u)?e[u]:e[u]=n.apply(this,arguments)};return r.cache={},r},o.merge=function(n,t,r){if(!n)return n;var e=arguments,u=e.length,o=typeof r;if("number"!=o&&"string"!=o||!e[3]||e[3][r]!==t||(u=2),3<u&&"function"==typeof e[u-2])var i=U(e[--u-1],e[u--],2);else 2<u&&"function"==typeof e[u-1]&&(i=e[--u]);for(var e=Lt(e,1,u),o=-1,a=[],l=[];++o<u;)_t(n,e[o],i,a,l);
|
||||
return n},o.min=function(n,t,r){var e=1/0,i=e,a=typeof t;if("number"!=a&&"string"!=a||!r||r[t]!==n||(t=null),null==t&&Oe(n))for(r=-1,a=n.length;++r<a;){var l=n[r];l<i&&(i=l)}else t=null==t&&gr(n)?u:o.createCallback(t,r,3),ft(n,function(n,r,u){r=t(n,r,u),r<e&&(e=r,i=n)});return i},o.negate=ur,o.omit=function(n,t,r){if(typeof t=="function")return t=o.createCallback(t,r,3),yr(n,ur(t));for(var e=st(arguments,true,false,1),u=e.length;u--;)e[u]=Wr(e[u]);return yr(n,lt(vr(n),e))},o.once=function(n){var t,r;if(!cr(n))throw new Fr;
|
||||
return function(){return t?r:(t=true,r=n.apply(this,arguments),n=null,r)}},o.pairs=function(n){for(var t=-1,r=Ie(n),e=r.length,u=Or(e);++t<e;){var o=r[t];u[t]=[o,n[o]]}return u},o.partial=function(n){if(n)var t=n[I]?n[I][2]:n.length,r=Lt(arguments,1),t=t-r.length;return At(n,C,t,null,r)},o.partialRight=function(n){if(n)var t=n[I]?n[I][2]:n.length,r=Lt(arguments,1),t=t-r.length;return At(n,O,t,null,null,r)},o.partition=je,o.pick=yr,o.pluck=Ce,o.property=Cr,o.pull=function(n){for(var t=0,r=arguments.length,e=n?n.length:0;++t<r;)for(var u=-1,o=arguments[t];++u<e;)n[u]===o&&(Qr.call(n,u--,1),e--);
|
||||
return n},o.range=function(n,t,r){n=+n||0,r=null==r?1:+r||0,null==t?(t=n,n=0):t=+t||0;var e=-1;t=le(0,Kr((t-n)/(r||1)));for(var u=Or(t);++e<t;)u[e]=n,n+=r;return u},o.reject=function(n,t,r){return t=o.createCallback(t,r,3),Vt(n,ur(t))},o.remove=function(n,t,r){var e=-1,u=n?n.length:0,i=[];for(t=o.createCallback(t,r,3);++e<u;)r=n[e],t(r,e,n)&&(i.push(r),Qr.call(n,e--,1),u--);return i},o.rest=Dt,o.shuffle=nr,o.slice=Lt,o.sortBy=function(n,t,r){var e=-1,u=n&&n.length,i=t&&Oe(t),f=Or(0>u?0:u>>>0);for(i||(t=o.createCallback(t,r,3)),ft(n,function(n,r,u){if(i)for(r=t.length,u=Or(r);r--;)u[r]=n[t[r]];
|
||||
else u=t(n,r,u);f[++e]={a:u,b:e,c:n}}),u=f.length,f.sort(i?l:a);u--;)f[u]=f[u].c;return f},o.tap=function(n,t,r){return t.call(r,n),n},o.throttle=function(n,t,r){var e=true,u=true;if(!cr(n))throw new Fr;return false===r?e=false:pr(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),it.leading=e,it.maxWait=+t,it.trailing=u,er(n,t,it)},o.times=function(n,t,r){n=-1<(n=+n)?n:0;var e=-1,u=Or(n);for(t=U(t,r,1);++e<n;)u[e]=t(e);return u},o.toArray=function(n){var t=n&&n.length;return typeof t=="number"&&-1<t&&t<=qr?Lt(n):mr(n)
|
||||
},o.transform=function(n,t,r,e){var u=Oe(n);if(null==r)if(u)r=[];else{var i=n&&n.constructor;r=m(i&&i.prototype)}return t&&(t=o.createCallback(t,e,4),(u?ft:mt)(n,function(n,e,u){return t(r,n,e,u)})),r},o.union=function(){return xt(st(arguments,true,true))},o.uniq=Bt,o.values=mr,o.valuesIn=function(n){return kt(n,vr)},o.where=Vt,o.without=function(){return lt(arguments[0],Lt(arguments,1))},o.wrap=function(n,t){return At(t,C,null,null,[n])},o.xor=function(){for(var n=-1,t=arguments.length;++n<t;){var r=arguments[n];
|
||||
if(Oe(r)||lr(r))var e=e?lt(e,r).concat(lt(r,e)):r}return e?xt(e):[]},o.zip=qt,o.zipObject=Ut,o.callback=_r,o.collect=Gt,o.each=Xt,o.eachRight=Yt,o.extend=or,o.methods=ar,o.object=Ut,o.select=Vt,o.tail=Dt,o.unique=Bt,o.unzip=qt,kr(or({},o)),o.camelCase=Ee,o.capitalize=function(n){return null==n?"":(n=Wr(n),n.charAt(0).toUpperCase()+n.slice(1))},o.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"&&U(r,e,1),y(n,t,r)
|
||||
},o.cloneDeep=function(n,t,r){return t=typeof t=="function"&&U(t,r,1),y(n,true,t)},o.contains=Kt,o.endsWith=function(n,t,r){n=null==n?"":Wr(n),t=Wr(t);var e=n.length;return r=(typeof r=="number"?fe(le(+r||0,0),e):e)-t.length,0<=r&&n.indexOf(t,r)==r},o.escape=function(n){return null==n?"":Wr(n).replace(W,p)},o.escapeRegExp=dr,o.every=Mt,o.find=Zt,o.findIndex=St,o.findKey=function(n,t,r){return t=o.createCallback(t,r,3),pt(n,t,mt,true)},o.findLast=function(n,t,r){return t=o.createCallback(t,r,3),pt(n,t,ct)
|
||||
},o.findLastIndex=function(n,t,r){var e=n?n.length:0;for(t=o.createCallback(t,r,3);e--;)if(t(n[e],e,n))return e;return-1},o.findLastKey=function(n,t,r){return t=o.createCallback(t,r,3),pt(n,t,dt,true)},o.has=function(n,t){return n?Yr.call(n,t):false},o.identity=wr,o.indexOf=Wt,o.isArguments=lr,o.isArray=Oe,o.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&Ur.call(n)==J||false},o.isDate=function(n){return n&&typeof n=="object"&&Ur.call(n)==Q||false},o.isElement=fr,o.isEmpty=function(n){var t=true;
|
||||
if(!n)return t;var r=Ur.call(n),e=n.length;return-1<e&&e<=qr&&(r==H||r==ut||r==G||r==rt&&cr(n.splice))?!e:(mt(n,function(){return t=false}),t)},o.isEqual=function(n,t,r,e){if(r=typeof r=="function"&&U(r,e,2),!r){if(n===t)return 0!==n||1/n==1/t;e=typeof n;var u=typeof t;if(n===n&&(null==n||null==t||"function"!=e&&"object"!=e&&"function"!=u&&"object"!=u))return false}return bt(n,t,r)},o.isFinite=function(n){return oe(n)&&!ie(parseFloat(n))},o.isFunction=cr,o.isNaN=function(n){return sr(n)&&n!=+n},o.isNull=function(n){return null===n
|
||||
},o.isNumber=sr,o.isObject=pr,o.isPlainObject=Ae,o.isRegExp=hr,o.isString=gr,o.isUndefined=function(n){return typeof n=="undefined"},o.kebabCase=Re,o.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(r|=0,e=(0>r?le(0,e+r):fe(r,e-1))+1);e--;)if(n[e]===t)return e;return-1},o.mixin=kr,o.noConflict=function(){return t._=Br,this},o.noop=jr,o.now=Fe,o.pad=function(n,t,r){n=null==n?"":Wr(n),t|=0;var e=n.length;return e<t?(e=(t-e)/2,t=Vr(e),e=Kr(e),r=Ot("",e,r),r.slice(0,t)+n+r):n},o.padLeft=function(n,t,r){return n=null==n?"":Wr(n),Ot(n,t,r)+n
|
||||
},o.padRight=function(n,t,r){return n=null==n?"":Wr(n),n+Ot(n,t,r)},o.parseInt=$e,o.random=function(n,t,r){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=se(),fe(n+r*(t-n+parseFloat("1e-"+((r+"").length-1))),t)):wt(n,t)},o.reduce=Jt,o.reduceRight=Qt,o.repeat=br,o.result=function(n,t,r){var e=null==n?_:n[t];return typeof e=="undefined"?r:cr(e)?n[t]():e},o.runInContext=b,o.size=function(n){var t=n?n.length:0;
|
||||
return typeof t=="number"&&-1<t&&t<=qr?t:Ie(n).length},o.some=tr,o.sortedIndex=zt,o.snakeCase=Ne,o.startsWith=function(n,t,r){return n=null==n?"":Wr(n),r=typeof r=="number"?fe(le(+r||0,0),n.length):0,n.lastIndexOf(t,r)==r},o.template=function(n,t,r){var e=o.templateSettings;r=ir({},r,e),n=Wr(null==n?"":n);var u,i,a=ir({},r.imports,e.imports),e=Ie(a),a=mr(a),l=0,f=r.interpolate||P,c="__p+='",f=Tr((r.escape||P).source+"|"+f.source+"|"+(f===D?L:P).source+"|"+(r.evaluate||P).source+"|$","g");n.replace(f,function(t,r,e,o,a,f){return e||(e=o),c+=n.slice(l,f).replace(V,s),r&&(u=true,c+="'+__e("+r+")+'"),a&&(i=true,c+="';"+a+";\n__p+='"),e&&(c+="'+((__t=("+e+"))==null?'':__t)+'"),l=f+t.length,t
|
||||
}),c+="';",(r=r.variable)||(c="with(obj){"+c+"}"),c=(i?c.replace(R,""):c).replace(N,"$1").replace(S,"$1;"),c="function("+(r||"obj")+"){"+(r?"":"obj||(obj={});")+"var __t,__p=''"+(u?",__e=_.escape":"")+(i?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+c+"return __p}";try{var p=Er(e,"return "+c).apply(_,a)}catch(h){throw h.source=c,h}return t?p(t):(p.source=c,p)},o.trim=Se,o.trimLeft=Te,o.trimRight=We,o.truncate=function(n,t){var r=30,e="...";if(t&&pr(t))var u="separator"in t?t.separator:u,r="length"in t?+t.length||0:r,e="omission"in t?Wr(t.omission):e;
|
||||
else null!=t&&(r=+t||0);if(n=null==n?"":Wr(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(hr(u)){if(n.slice(o).search(u)){var i,a,l=n.slice(0,o);for(u.global||(u=Tr(u.source,(z.exec(u)||"")+"g")),u.lastIndex=0;i=u.exec(l);)a=i.index;r=r.slice(0,null==a?o:a)}}else n.indexOf(u,o)!=o&&(u=r.lastIndexOf(u),-1<u&&(r=r.slice(0,u)));return r+e},o.unescape=function(n){return null==n?"":(n=Wr(n),0>n.indexOf(";")?n:n.replace(T,d))},o.uniqueId=function(n){var t=++E;
|
||||
return Wr(null==n?"":n)+t},o.all=Mt,o.any=tr,o.detect=Zt,o.findWhere=Zt,o.foldl=Jt,o.foldr=Qt,o.include=Kt,o.inject=Jt,kr(function(){var n={};return mt(o,function(t,r){o.prototype[r]||(n[r]=t)}),n}(),false),o.first=Tt,o.last=$t,o.sample=function(n,t,r){return n&&typeof n.length!="number"&&(n=mr(n)),null==t||r?(t=n?n.length:0,0<t?n[wt(0,t-1)]:_):(n=nr(n),n.length=fe(le(0,t),n.length),n)},o.take=Tt,o.takeRight=$t,o.takeRightWhile=$t,o.takeWhile=Tt,o.head=Tt,mt(o,function(n,t){var r="sample"!==t;o.prototype[t]||(o.prototype[t]=function(t,e){var u=this.__chain__,o=n(this.__wrapped__,t,e);
|
||||
return u||null!=t&&(!e||r&&typeof t=="function")?new i(o,u):o})}),o.VERSION=A,o.prototype.chain=function(){return this.__chain__=true,this},o.prototype.toString=function(){return Wr(this.__wrapped__)},o.prototype.value=Pt,o.prototype.valueOf=Pt,ft(["join","pop","shift"],function(n){var t=$r[n];o.prototype[n]=function(){var n=this.__chain__,r=t.apply(this.__wrapped__,arguments);return n?new i(r,n):r}}),ft(["push","reverse","sort","unshift"],function(n){var t=$r[n];o.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this
|
||||
}}),ft(["concat","splice"],function(n){var t=$r[n];o.prototype[n]=function(){return new i(t.apply(this.__wrapped__,arguments),this.__chain__)}}),o}var _,w=1,x=2,k=4,j=8,C=16,O=32,A="2.4.1",I="__lodash@"+A+"__",E=0,R=/\b__p\+='';/g,N=/\b(__p\+=)''\+/g,S=/(__e\(.*?\)|\b__t\))\+'';/g,T=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,F=/<%-([\s\S]+?)%>/g,$=/<%([\s\S]+?)%>/g,D=/<%=([\s\S]+?)%>/g,L=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,z=/\w*$/,B=/^\s*function[ \n\r\t]+\w/,q=/^0[xX]/,U=/[\xC0-\xFF]/g,P=/($^)/,K=/[.*+?^${}()|[\]\\]/g,M=/\bthis\b/,V=/['\n\r\t\u2028\u2029\\]/g,Z=/[A-Z]{2,}|[a-zA-Z0-9][a-z0-9]*/g,X=" \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",Y="Array Boolean Date Function Math Number Object RegExp Set String _ clearTimeout document isFinite isNaN parseInt setTimeout TypeError window WinRTError".split(" "),G="[object Arguments]",H="[object Array]",J="[object Boolean]",Q="[object Date]",nt="[object Function]",tt="[object Number]",rt="[object Object]",et="[object RegExp]",ut="[object String]",ot={};
|
||||
ot[nt]=false,ot[G]=ot[H]=ot[J]=ot[Q]=ot[tt]=ot[rt]=ot[et]=ot[ut]=true;var it={leading:false,maxWait:0,trailing:false},at={configurable:false,enumerable:false,value:null,writable:false},lt={"&":"&","<":"<",">":">",'"':""","'":"'"},ft={"&":"&","<":"<",">":">",""":'"',"'":"'"},ct={\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"AE",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss","\xd7":" ","\xf7":" "},pt={"function":true,object:true},st={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},ht=pt[typeof window]&&window||this,gt=pt[typeof exports]&&exports&&!exports.nodeType&&exports,pt=pt[typeof module]&&module&&!module.nodeType&&module,vt=gt&&pt&&typeof global=="object"&&global;
|
||||
!vt||vt.global!==vt&&vt.window!==vt&&vt.self!==vt||(ht=vt);var vt=pt&&pt.exports===gt&>,yt=b();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ht._=yt, define(function(){return yt})):gt&&pt?vt?(pt.exports=yt)._=yt:gt._=yt:ht._=yt}).call(this);
|
||||
60
dist/lodash.underscore.js
vendored
60
dist/lodash.underscore.js
vendored
@@ -4,7 +4,7 @@
|
||||
* Build: `lodash underscore -o ./dist/lodash.underscore.js`
|
||||
* Copyright 2012-2014 The Dojo Foundation <http://dojofoundation.org/>
|
||||
* Based on Underscore.js 1.6.0 <http://underscorejs.org/LICENSE>
|
||||
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||
* Copyright 2009-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||
* Available under MIT license <http://lodash.com/license>
|
||||
*/
|
||||
;(function() {
|
||||
@@ -45,8 +45,8 @@
|
||||
var reNoMatch = /($^)/;
|
||||
|
||||
/**
|
||||
* Used to match RegExp special characters.
|
||||
* See this [article on RegExp characters](http://www.regular-expressions.info/characters.html#special)
|
||||
* Used to match `RegExp` special characters.
|
||||
* See this [article on `RegExp` characters](http://www.regular-expressions.info/characters.html#special)
|
||||
* for more details.
|
||||
*/
|
||||
var reRegExpChars = /[.*+?^${}()|[\]\\]/g;
|
||||
@@ -91,7 +91,7 @@
|
||||
''': "'"
|
||||
};
|
||||
|
||||
/** Used to determine if values are of the language type Object */
|
||||
/** Used to determine if values are of the language type `Object` */
|
||||
var objectTypes = {
|
||||
'function': true,
|
||||
'object': true
|
||||
@@ -171,7 +171,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Used by `sortBy` to compare transformed elements of a collection and stable
|
||||
* Used by `_.sortBy` to compare transformed elements of a collection and stable
|
||||
* sort them in ascending order.
|
||||
*
|
||||
* @private
|
||||
@@ -184,7 +184,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Used by `escape` to convert characters to HTML entities.
|
||||
* Used by `_.escape` to convert characters to HTML entities.
|
||||
*
|
||||
* @private
|
||||
* @param {string} chr The matched character to escape.
|
||||
@@ -195,7 +195,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Used by `template` to escape characters for inclusion in compiled
|
||||
* Used by `_.template` to escape characters for inclusion in compiled
|
||||
* string literals.
|
||||
*
|
||||
* @private
|
||||
@@ -207,7 +207,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Used by `unescape` to convert HTML entities to characters.
|
||||
* Used by `_.unescape` to convert HTML entities to characters.
|
||||
*
|
||||
* @private
|
||||
* @param {string} chr The matched character to unescape.
|
||||
@@ -223,17 +223,17 @@
|
||||
var arrayRef = Array.prototype,
|
||||
objectProto = Object.prototype;
|
||||
|
||||
/** Used to restore the original `_` reference in `noConflict` */
|
||||
/** Used to restore the original `_` reference in `_.noConflict` */
|
||||
var oldDash = root._;
|
||||
|
||||
/**
|
||||
* Used as the maximum length an array-like object.
|
||||
* Used as the maximum length of an array-like object.
|
||||
* See the [ES6 spec](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength)
|
||||
* for more details.
|
||||
*/
|
||||
var maxSafeInteger = Math.pow(2, 53) - 1;
|
||||
|
||||
/** Used to resolve the internal [[Class]] of values */
|
||||
/** Used to resolve the internal `[[Class]]` of values */
|
||||
var toString = objectProto.toString;
|
||||
|
||||
/** Used to detect if a method is native */
|
||||
@@ -342,7 +342,7 @@
|
||||
*
|
||||
* @private
|
||||
* @param {*} value The value to wrap in a `lodash` instance.
|
||||
* @param {boolean} [chainAll=false] A flag to enable chaining for all methods
|
||||
* @param {boolean} [chainAll=false] A flag to enable chaining for all methods.
|
||||
* @returns {Object} Returns a `lodash` instance.
|
||||
*/
|
||||
function lodashWrapper(value, chainAll) {
|
||||
@@ -488,7 +488,7 @@
|
||||
|
||||
/**
|
||||
* The base implementation of `createWrapper` that creates the wrapper and
|
||||
* sets its meta data.
|
||||
* sets its metadata.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} data The metadata array.
|
||||
@@ -611,7 +611,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* The base implementation of `find`, 'findLast`, `findKey`, and `findLastKey`
|
||||
* The base implementation of `_.find`, '_.findLast`, `_.findKey`, and `_.findLastKey`
|
||||
* without support for callback shorthands or `this` binding which iterates
|
||||
* over `collection` using the provided `eachFunc`.
|
||||
*
|
||||
@@ -1182,8 +1182,8 @@
|
||||
* _.difference([1, 2, 3], [5, 2, 10]);
|
||||
* // => [1, 3]
|
||||
*/
|
||||
function difference(array) {
|
||||
return baseDifference(array, baseFlatten(arguments, true, true, 1));
|
||||
function difference() {
|
||||
return baseDifference(arguments[0], baseFlatten(arguments, true, true, 1));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1431,7 +1431,7 @@
|
||||
args.push(value);
|
||||
}
|
||||
}
|
||||
argsLength = args.length
|
||||
argsLength = args.length;
|
||||
var array = args[0],
|
||||
index = -1,
|
||||
indexOf = getIndexOf(),
|
||||
@@ -1873,9 +1873,7 @@
|
||||
* // => 'pebbles is 1'
|
||||
*/
|
||||
function chain(value) {
|
||||
value = new lodashWrapper(value);
|
||||
value.__chain__ = true;
|
||||
return value;
|
||||
return new lodashWrapper(value, true);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3165,7 +3163,7 @@
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Functions
|
||||
* @param {...Function} [func] Functions to compose.
|
||||
* @param {...Function} [funcs] Functions to compose.
|
||||
* @returns {Function} Returns the new composed function.
|
||||
* @example
|
||||
*
|
||||
@@ -3214,7 +3212,7 @@
|
||||
* the leading and/or trailing edge of the `wait` timeout. Subsequent calls
|
||||
* to the debounced function will return the result of the last `func` call.
|
||||
*
|
||||
* Note: If `leading` and `trailing` options are `true` `func` will be called
|
||||
* Note: If `leading` and `trailing` options are `true`, `func` will be called
|
||||
* on the trailing edge of the timeout only if the the debounced function is
|
||||
* invoked more than once during the `wait` timeout.
|
||||
*
|
||||
@@ -3538,7 +3536,7 @@
|
||||
* of the `wait` timeout. Subsequent calls to the throttled function will
|
||||
* return the result of the last `func` call.
|
||||
*
|
||||
* Note: If `leading` and `trailing` options are `true` `func` will be called
|
||||
* Note: If `leading` and `trailing` options are `true`, `func` will be called
|
||||
* on the trailing edge of the timeout only if the the throttled function is
|
||||
* invoked more than once during the `wait` timeout.
|
||||
*
|
||||
@@ -3853,7 +3851,7 @@
|
||||
return value && typeof value == 'object' && typeof value.length == 'number' &&
|
||||
toString.call(value) == argsClass || false;
|
||||
}
|
||||
// fallback for environments that can't detect `arguments` objects by [[Class]]
|
||||
// fallback for environments that can't detect `arguments` objects by `[[Class]]`
|
||||
if (!isArguments(arguments)) {
|
||||
isArguments = function(value) {
|
||||
return value && typeof value == 'object' && typeof value.length == 'number' &&
|
||||
@@ -4083,7 +4081,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if `value` is the language type of Object.
|
||||
* Checks if `value` is the language type of `Object`.
|
||||
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
||||
*
|
||||
* @static
|
||||
@@ -4103,7 +4101,7 @@
|
||||
* // => false
|
||||
*/
|
||||
function isObject(value) {
|
||||
// check if the value is the ECMAScript language type of Object
|
||||
// check if the value is the ECMAScript language type of `Object`
|
||||
// http://es5.github.io/#x8
|
||||
// and avoid a V8 bug
|
||||
// https://code.google.com/p/v8/issues/detail?id=2291
|
||||
@@ -4139,7 +4137,7 @@
|
||||
*/
|
||||
function isNaN(value) {
|
||||
// `NaN` as a primitive is the only value that is not equal to itself
|
||||
// (perform the [[Class]] check first to avoid errors with some host objects in IE)
|
||||
// (perform the `[[Class]]` check first to avoid errors with some host objects in IE)
|
||||
return isNumber(value) && value != +value;
|
||||
}
|
||||
|
||||
@@ -4467,7 +4465,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Escapes the RegExp special characters "\", "^", "$", ".", "|", "?", "*",
|
||||
* Escapes the `RegExp` special characters "\", "^", "$", ".", "|", "?", "*",
|
||||
* "+", "(", ")", "[", "]", "{" and "}" in `string`.
|
||||
*
|
||||
* @static
|
||||
@@ -4493,7 +4491,7 @@
|
||||
* settings object is provided it will override `_.templateSettings` for the
|
||||
* template.
|
||||
*
|
||||
* Note: In the development build, `_.template` utilizes sourceURLs for easier debugging.
|
||||
* Note: In the development build, `_.template` utilizes `sourceURL`s for easier debugging.
|
||||
* See the [HTML5 Rocks article on sourcemaps](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
|
||||
* for more details.
|
||||
*
|
||||
@@ -4513,7 +4511,7 @@
|
||||
* @param {RegExp} [options.evaluate] The "evaluate" delimiter.
|
||||
* @param {Object} [options.imports] An object to import into the template as local variables.
|
||||
* @param {RegExp} [options.interpolate] The "interpolate" delimiter.
|
||||
* @param {string} [options.sourceURL] The sourceURL of the template's compiled source.
|
||||
* @param {string} [options.sourceURL] The `sourceURL` of the template's compiled source.
|
||||
* @param {string} [options.variable] The data object variable name.
|
||||
* @returns {Function|string} Returns the interpolated string if a data object
|
||||
* is provided, else the compiled template function.
|
||||
@@ -4551,7 +4549,7 @@
|
||||
* _.template(list, { 'people': ['fred', 'barney'] }, { 'imports': { 'jq': jQuery } });
|
||||
* // => '<li>fred</li><li>barney</li>'
|
||||
*
|
||||
* // using the `sourceURL` option to specify a custom sourceURL for the template
|
||||
* // using the `sourceURL` option to specify a custom `sourceURL` for the template
|
||||
* var compiled = _.template('hello <%= name %>', null, { 'sourceURL': '/basic/greeting.jst' });
|
||||
* compiled(data);
|
||||
* // => find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector
|
||||
|
||||
38
dist/lodash.underscore.min.js
vendored
38
dist/lodash.underscore.min.js
vendored
@@ -4,37 +4,37 @@
|
||||
* Build: `lodash underscore -o ./dist/lodash.underscore.js`
|
||||
*/
|
||||
;(function(){function n(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 r(n,r){var t;n:{t=n.a;var e=r.a;if(t!==e){if(t>e||typeof t=="undefined"){t=1;break n}if(t<e||typeof e=="undefined"){t=-1;break n}}t=0}return t||n.b-r.b}function t(n){return xr[n]}function e(n){return"\\"+Er[n]}function u(n){return Ar[n]}function o(n){return n instanceof o?n:new i(n)}function i(n,r){this.__chain__=!!r,this.__wrapped__=n}function f(n){return K(n)?Gr(n):{}}function a(n,r,t){if(typeof n!="function")return rr;
|
||||
if(typeof r=="undefined"||!("prototype"in n))return n;switch(t){case 1:return function(t){return n.call(r,t)};case 2:return function(t,e){return n.call(r,t,e)};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)}}return z(n,r)}function c(n){function r(){for(var n=-1,a=arguments.length,c=Array(a);++n<a;)c[n]=arguments[n];if(u){for(var n=u,a=o,l=a.length,p=-1,s=Qr(c.length-l,0),h=-1,g=n.length,v=Array(s+g);++h<g;)v[h]=n[h];for(;++p<l;)v[a[p]]=c[p];
|
||||
for(;s--;)v[h++]=c[p++];c=v}return n=i?e:this,this instanceof r?(n=f(t.prototype),a=t.apply(n,c),K(a)?a:n):t.apply(n,c)}var t=n[0],e=n[3],u=n[4],o=n[6],i=n[1]&ir;return r}function l(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 p(n,r){var t=-1,e=n?n.length:0;if(typeof e=="number"&&-1<e&&e<=Rr)for(;++t<e&&r(n[t],t,n)!==ar;);else v(n,r,ct);return n}function s(n,r){var t=n?n.length:0;if(typeof t=="number"&&-1<t&&t<=Rr)for(;t--&&r(n[t],t,n)!==ar;);else for(var t=ct(n),e=t.length;e--;){var u=t[e];
|
||||
if(r(n[u],u,n)===ar)break}return n}function h(n,r,t,e){var u;return t(n,function(n,t,o){return r(n,t,o)?(u=e?t:n,ar):void 0}),u}function g(n,r,t,e){e=(+e||0)-1;for(var u=n?n.length:0,o=[];++e<u;){var i=n[e];if(i&&typeof i=="object"&&typeof i.length=="number"&&(at(i)||H(i))){r||(i=g(i,r,t));var f=-1,a=i.length,c=o.length;for(o.length+=a;++f<a;)o[c++]=i[f]}else t||o.push(i)}return o}function v(n,r,t){var e=-1;t=t(n);for(var u=t.length;++e<u;){var o=t[e];if(r(n[o],o,n)===ar)break}return n}function y(n,r,t,e){if(n===r)return 0!==n||1/n==1/r;
|
||||
var u=typeof n,i=typeof r;if(n===n&&(null==n||null==r||"function"!=u&&"object"!=u&&"function"!=i&&"object"!=i))return false;if(i=$r.call(n),u=$r.call(r),i!=u)return false;switch(i){case mr:case _r:return+n==+r;case br:return n!=+n?r!=+r:0==n?1/n==1/r:n==+r;case wr:case jr:return n==r+""}if(u=i==yr,!u){var f=n instanceof o,a=r instanceof o;if(f||a)return y(f?n.__wrapped__:n,a?r.__wrapped__:r,t,e);if(i!=dr)return false;if(i=Cr.call(n,"constructor"),f=Cr.call(r,"constructor"),i!=f||!i&&(i=n.constructor,f=r.constructor,i!=f&&!(J(i)&&i instanceof i&&J(f)&&f instanceof f)&&"constructor"in n&&"constructor"in r))return false
|
||||
if(typeof r=="undefined"||!("prototype"in n))return n;switch(t){case 1:return function(t){return n.call(r,t)};case 2:return function(t,e){return n.call(r,t,e)};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)}}return z(n,r)}function c(n){function r(){for(var n=-1,a=arguments.length,c=Array(a);++n<a;)c[n]=arguments[n];if(u){for(var n=u,a=o,l=a.length,p=-1,s=Qr(c.length-l,0),g=-1,h=n.length,v=Array(s+h);++g<h;)v[g]=n[g];for(;++p<l;)v[a[p]]=c[p];
|
||||
for(;s--;)v[g++]=c[p++];c=v}return n=i?e:this,this instanceof r?(n=f(t.prototype),a=t.apply(n,c),K(a)?a:n):t.apply(n,c)}var t=n[0],e=n[3],u=n[4],o=n[6],i=n[1]&ir;return r}function l(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 p(n,r){var t=-1,e=n?n.length:0;if(typeof e=="number"&&-1<e&&e<=Rr)for(;++t<e&&r(n[t],t,n)!==ar;);else v(n,r,ct);return n}function s(n,r){var t=n?n.length:0;if(typeof t=="number"&&-1<t&&t<=Rr)for(;t--&&r(n[t],t,n)!==ar;);else for(var t=ct(n),e=t.length;e--;){var u=t[e];
|
||||
if(r(n[u],u,n)===ar)break}return n}function g(n,r,t,e){var u;return t(n,function(n,t,o){return r(n,t,o)?(u=e?t:n,ar):void 0}),u}function h(n,r,t,e){e=(+e||0)-1;for(var u=n?n.length:0,o=[];++e<u;){var i=n[e];if(i&&typeof i=="object"&&typeof i.length=="number"&&(at(i)||H(i))){r||(i=h(i,r,t));var f=-1,a=i.length,c=o.length;for(o.length+=a;++f<a;)o[c++]=i[f]}else t||o.push(i)}return o}function v(n,r,t){var e=-1;t=t(n);for(var u=t.length;++e<u;){var o=t[e];if(r(n[o],o,n)===ar)break}return n}function y(n,r,t,e){if(n===r)return 0!==n||1/n==1/r;
|
||||
var u=typeof n,i=typeof r;if(n===n&&(null==n||null==r||"function"!=u&&"object"!=u&&"function"!=i&&"object"!=i))return false;if(i=$r.call(n),u=$r.call(r),i!=u)return false;switch(i){case mr:case br:return+n==+r;case _r:return n!=+n?r!=+r:0==n?1/n==1/r:n==+r;case wr:case jr:return n==r+""}if(u=i==yr,!u){var f=n instanceof o,a=r instanceof o;if(f||a)return y(f?n.__wrapped__:n,a?r.__wrapped__:r,t,e);if(i!=dr)return false;if(i=Cr.call(n,"constructor"),f=Cr.call(r,"constructor"),i!=f||!i&&(i=n.constructor,f=r.constructor,i!=f&&!(J(i)&&i instanceof i&&J(f)&&f instanceof f)&&"constructor"in n&&"constructor"in r))return false
|
||||
}for(t||(t=[]),e||(e=[]),i=t.length;i--;)if(t[i]==n)return e[i]==r;var c=true,l=0;if(t.push(n),e.push(r),u){if(l=r.length,c=l==n.length)for(;l--&&(c=y(n[l],r[l],t,e)););}else v(r,function(r,u,o){return Cr.call(o,u)?(l++,!(c=Cr.call(n,u)&&y(n[u],r,t,e))&&ar):void 0},X),c&&v(n,function(n,r,t){return Cr.call(t,r)?!(c=-1<--l)&&ar:void 0},X);return t.pop(),e.pop(),c}function m(n,r,t){var e=n?n.length:0;if(!e)return[];for(var u=-1,o=d(),i=[],f=t&&!r?[]:i;++u<e;){var a=n[u],c=t?t(a,u,n):a;r?u&&f===c||(f=c,i.push(a)):0>o(f,c)&&(t&&f.push(c),i.push(a))
|
||||
}return i}function _(n,r){return function(t,e,u){var o=r?[[],[]]:{};e=nr(e,u,3),u=-1;var i=t?t.length:0;if(typeof i=="number"&&-1<i&&i<=Rr)for(;++u<i;){var f=t[u];n(o,f,e(f,u,t),t)}else p(t,function(r,t,u){n(o,r,e(r,t,u),u)});return o}}function b(n,r,t,e,u,i,f,a){var l=r&fr;if(!J(n))throw new TypeError;if(l&&!u.length&&(r&=~fr,l=u=false),l){f=u;for(var l=-1,p=f.length,s=[];++l<p;)f[l]===o&&s.push(l);f=s}return c([n,r,t,e,u,i,f,a])}function d(){var r=(r=o.indexOf)===A?n:r;return r}function w(n){return typeof n=="function"&&Ir.test(zr.call(n))
|
||||
}return i}function b(n,r){return function(t,e,u){var o=r?[[],[]]:{};e=nr(e,u,3),u=-1;var i=t?t.length:0;if(typeof i=="number"&&-1<i&&i<=Rr)for(;++u<i;){var f=t[u];n(o,f,e(f,u,t),t)}else p(t,function(r,t,u){n(o,r,e(r,t,u),u)});return o}}function _(n,r,t,e,u,i,f,a){var l=r&fr;if(!J(n))throw new TypeError;if(l&&!u.length&&(r&=~fr,l=u=false),l){f=u;for(var l=-1,p=f.length,s=[];++l<p;)f[l]===o&&s.push(l);f=s}return c([n,r,t,e,u,i,f,a])}function d(){var r=(r=o.indexOf)===A?n:r;return r}function w(n){return typeof n=="function"&&Ir.test(zr.call(n))
|
||||
}function j(n){for(var r=-1,t=X(n),e=t.length,u=[];++r<e;){var o=t[r];Cr.call(n,o)&&u.push(o)}return u}function x(n,r,t){return null==r||t?n?n[0]:or:E(n,0,0>r?0:r)}function A(r,t,e){var u=r?r.length:0;if(typeof e=="number")e=0>e?Qr(0,u+e):e||0;else if(e)return e=O(r,t),u&&r[e]===t?e:-1;return n(r,t,e)}function T(n,r,t){return E(n,null==r||t?1:0>r?0:r)}function E(n,r,t){var e=-1,u=n?n.length:0;for(r=+r||0,0>r?r=Qr(u+r,0):r>u&&(r=u),t=typeof t=="undefined"?u:+t||0,0>t?t=Qr(u+t,0):t>u&&(t=u),u=r>t?0:t-r,t=Array(u);++e<u;)t[e]=n[r+e];
|
||||
return t}function O(n,r,t,e){var u=0,o=n?n.length:u;for(t=t?nr(t,e,1):rr,r=t(r);u<o;)e=u+o>>>1,t(n[e])<r?u=e+1:o=e;return u}function S(n,r,t,e){if(!n||!n.length)return[];var u=typeof r;return"boolean"!=u&&null!=r&&(e=t,t=r,r=false,"number"!=u&&"string"!=u||!e||e[t]!==n||(t=null)),null!=t&&(t=nr(t,e,3)),m(n,r,t)}function k(n,r){var t=d(),e=n?n.length:0,u=false;return typeof e=="number"&&-1<e&&e<=Rr?-1<t(n,r):(p(n,function(n){return(u=n===r)&&ar}),u)}function N(n,r,t){var e=true;r=nr(r,t,3),t=-1;var u=n?n.length:0;
|
||||
if(typeof u=="number"&&-1<u&&u<=Rr){for(;++t<u;)if(!r(n[t],t,n))return false}else p(n,function(n,t,u){return!(e=!!r(n,t,u))&&ar});return e}function q(n,r,t){var e=[];r=nr(r,t,3),t=-1;var u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=Rr)for(;++t<u;){var o=n[t];r(o,t,n)&&e.push(o)}else p(n,function(n,t,u){r(n,t,u)&&e.push(n)});return e}function F(n,r,t){var e=n?n.length:0;if(typeof e=="number"&&-1<e&&e<=Rr){n:{var e=-1,u=n?n.length:0;for(r=nr(r,t,3);++e<u;)if(r(n[e],e,n)){r=e;break n}r=-1}return-1<r?n[r]:or
|
||||
}return r=nr(r,t,3),h(n,r,p)}function B(n,r,t){var e=-1,u=n?n.length:0;if(r=r&&typeof t=="undefined"?r:a(r,t,3),typeof u=="number"&&-1<u&&u<=Rr)for(;++e<u&&r(n[e],e,n)!==ar;);else p(n,r);return n}function M(n,r,t){var e=-1,u=n?n.length:0;if(r=nr(r,t,3),typeof u=="number"&&-1<u&&u<=Rr)for(var o=Array(u);++e<u;)o[e]=r(n[e],e,n);else o=[],p(n,function(n,t,u){o[++e]=r(n,t,u)});return o}function R(n,r,t){var e=-1/0,u=e,o=typeof r;"number"!=o&&"string"!=o||!t||t[r]!==n||(r=null);var o=-1,i=n?n.length:0;
|
||||
}return r=nr(r,t,3),g(n,r,p)}function B(n,r,t){var e=-1,u=n?n.length:0;if(r=r&&typeof t=="undefined"?r:a(r,t,3),typeof u=="number"&&-1<u&&u<=Rr)for(;++e<u&&r(n[e],e,n)!==ar;);else p(n,r);return n}function M(n,r,t){var e=-1,u=n?n.length:0;if(r=nr(r,t,3),typeof u=="number"&&-1<u&&u<=Rr)for(var o=Array(u);++e<u;)o[e]=r(n[e],e,n);else o=[],p(n,function(n,t,u){o[++e]=r(n,t,u)});return o}function R(n,r,t){var e=-1/0,u=e,o=typeof r;"number"!=o&&"string"!=o||!t||t[r]!==n||(r=null);var o=-1,i=n?n.length:0;
|
||||
if(null==r&&typeof i=="number"&&-1<i&&i<=Rr)for(;++o<i;)t=n[o],t>u&&(u=t);else r=nr(r,t,3),p(n,function(n,t,o){t=r(n,t,o),t>e&&(e=t,u=n)});return u}function $(n,r,t,e){var u=3>arguments.length;r=nr(r,e,4);var o=-1,i=n?n.length:0;if(typeof i=="number"&&-1<i&&i<=Rr)for(u&&i&&(t=n[++o]);++o<i;)t=r(t,n[o],o,n);else p(n,function(n,e,o){t=u?(u=false,n):r(t,n,e,o)});return t}function I(n,r,t,e){var u=3>arguments.length;return r=nr(r,e,4),s(n,function(n,e,o){t=u?(u=false,n):r(t,n,e,o)}),t}function D(n){var r=-1,t=n&&n.length,e=Array(0>t?0:t>>>0);
|
||||
return p(n,function(n){var t;t=++r,t=0+Wr(Zr()*(t-0+1)),e[r]=e[t],e[t]=n}),e}function W(n,r,t){var e;r=nr(r,t,3),t=-1;var u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=Rr){for(;++t<u;)if(r(n[t],t,n))return true}else p(n,function(n,t,u){return(e=r(n,t,u))&&ar});return!!e}function z(n,r){return 3>arguments.length?b(n,ir,null,r):b(n,ir|fr,null,r,E(arguments,2))}function C(n,r,t){var e,u,o,i,f,a,c,l=0,p=false,s=true;if(!J(n))throw new TypeError;if(r=0>r?0:r,true===t)var h=true,s=false;else K(t)&&(h=t.leading,p="maxWait"in t&&(Qr(r,t.maxWait)||0),s="trailing"in t?t.trailing:s);
|
||||
var g=function(){var t=r-(lt()-i);0>=t||t>r?(u&&clearTimeout(u),t=c,u=a=c=or,t&&(l=lt(),o=n.apply(f,e),a||u||(e=f=null))):a=setTimeout(g,t)},v=function(){a&&clearTimeout(a),u=a=c=or,(s||p!==r)&&(l=lt(),o=n.apply(f,e),a||u||(e=f=null))};return function(){if(e=arguments,i=lt(),f=this,c=s&&(a||!h),false===p)var t=h&&!a;else{u||h||(l=i);var y=p-(i-l),m=0>=y||y>p;m?(u&&(u=clearTimeout(u)),l=i,o=n.apply(f,e)):u||(u=setTimeout(v,y))}return m&&a?a=clearTimeout(a):a||r===p||(a=setTimeout(g,r)),t&&(m=true,o=n.apply(f,e)),!m||a||u||(e=f=null),o
|
||||
return p(n,function(n){var t;t=++r,t=0+Wr(Zr()*(t-0+1)),e[r]=e[t],e[t]=n}),e}function W(n,r,t){var e;r=nr(r,t,3),t=-1;var u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=Rr){for(;++t<u;)if(r(n[t],t,n))return true}else p(n,function(n,t,u){return(e=r(n,t,u))&&ar});return!!e}function z(n,r){return 3>arguments.length?_(n,ir,null,r):_(n,ir|fr,null,r,E(arguments,2))}function C(n,r,t){var e,u,o,i,f,a,c,l=0,p=false,s=true;if(!J(n))throw new TypeError;if(r=0>r?0:r,true===t)var g=true,s=false;else K(t)&&(g=t.leading,p="maxWait"in t&&(Qr(r,t.maxWait)||0),s="trailing"in t?t.trailing:s);
|
||||
var h=function(){var t=r-(lt()-i);0>=t||t>r?(u&&clearTimeout(u),t=c,u=a=c=or,t&&(l=lt(),o=n.apply(f,e),a||u||(e=f=null))):a=setTimeout(h,t)},v=function(){a&&clearTimeout(a),u=a=c=or,(s||p!==r)&&(l=lt(),o=n.apply(f,e),a||u||(e=f=null))};return function(){if(e=arguments,i=lt(),f=this,c=s&&(a||!g),false===p)var t=g&&!a;else{u||g||(l=i);var y=p-(i-l),m=0>=y||y>p;m?(u&&(u=clearTimeout(u)),l=i,o=n.apply(f,e)):u||(u=setTimeout(v,y))}return m&&a?a=clearTimeout(a):a||r===p||(a=setTimeout(h,r)),t&&(m=true,o=n.apply(f,e)),!m||a||u||(e=f=null),o
|
||||
}}function P(n){if(!J(n))throw new TypeError;return function(){return!n.apply(this,arguments)}}function U(n,r,t){if(!n)return n;var e=arguments,u=0,o=e.length,i=typeof t;for("number"!=i&&"string"!=i||!e[3]||e[3][t]!==r||(o=2);++u<o;){r=e[u];for(var f in r)n[f]=r[f]}return n}function V(n,r,t){if(!n)return n;var e=arguments,u=0,o=e.length,i=typeof t;for("number"!=i&&"string"!=i||!e[3]||e[3][t]!==r||(o=2);++u<o;){r=e[u];for(var f in r)"undefined"==typeof n[f]&&(n[f]=r[f])}return n}function G(n){var r=[];
|
||||
return v(n,function(n,t){J(n)&&r.push(t)},X),r.sort()}function H(n){return n&&typeof n=="object"&&typeof n.length=="number"&&$r.call(n)==vr||false}function J(n){return typeof n=="function"}function K(n){var r=typeof n;return n&&("function"==r||"object"==r)||false}function L(n){var r=typeof n;return"number"==r||n&&"object"==r&&$r.call(n)==br||false}function Q(n){return typeof n=="string"||n&&typeof n=="object"&&$r.call(n)==jr||false}function X(n){var r=[];if(!K(n))return r;for(var t in n)r.push(t);return r}function Y(n){for(var r=-1,t=g(arguments,true,false,1),e=t.length,u={};++r<e;){var o=t[r];
|
||||
return v(n,function(n,t){J(n)&&r.push(t)},X),r.sort()}function H(n){return n&&typeof n=="object"&&typeof n.length=="number"&&$r.call(n)==vr||false}function J(n){return typeof n=="function"}function K(n){var r=typeof n;return n&&("function"==r||"object"==r)||false}function L(n){var r=typeof n;return"number"==r||n&&"object"==r&&$r.call(n)==_r||false}function Q(n){return typeof n=="string"||n&&typeof n=="object"&&$r.call(n)==jr||false}function X(n){var r=[];if(!K(n))return r;for(var t in n)r.push(t);return r}function Y(n){for(var r=-1,t=h(arguments,true,false,1),e=t.length,u={};++r<e;){var o=t[r];
|
||||
o in n&&(u[o]=n[o])}return u}function Z(n){for(var r=-1,t=ct(n),e=t.length,u=Array(e);++r<e;)u[r]=n[t[r]];return u}function nr(n,r,t){var e=typeof n;return"function"==e||null==n?(typeof r=="undefined"||!("prototype"in n))&&n||a(n,r,t):"object"!=e?ur(n):tr(n)}function rr(n){return n}function tr(n){n||(n={});var r=ct(n),t=r.length;return function(e){for(var u=t,o=true;u--&&(o=r[u],o=Cr.call(e,o)&&e[o]===n[o]););return o}}function er(n){for(var r=-1,t=G(n),e=t.length;++r<e;){var u=t[r];o.prototype[u]=function(){var r=o[u]=n[u];
|
||||
return function(){var n=[this.__wrapped__];return Pr.apply(n,arguments),n=r.apply(o,n),this.__chain__?new i(n,true):n}}()}}function ur(n){return function(r){return null==r?or:r[n]}}var or,ir=1,fr=16,ar="__lodash@2.4.1__breaker__",cr=0,lr=/&(?:amp|lt|gt|quot|#x27);/g,pr=/[&<>"']/g,sr=/($^)/,hr=/[.*+?^${}()|[\]\\]/g,gr=/['\n\r\t\u2028\u2029\\]/g,vr="[object Arguments]",yr="[object Array]",mr="[object Boolean]",_r="[object Date]",br="[object Number]",dr="[object Object]",wr="[object RegExp]",jr="[object String]",xr={"&":"&","<":"<",">":">",'"':""","'":"'"},Ar={"&":"&","<":"<",">":">",""":'"',"'":"'"},Tr={"function":true,object:true},Er={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},Or=Tr[typeof window]&&window||this,Sr=Tr[typeof exports]&&exports&&!exports.nodeType&&exports,kr=Tr[typeof module]&&module&&!module.nodeType&&module,Nr=Sr&&kr&&typeof global=="object"&&global;
|
||||
!Nr||Nr.global!==Nr&&Nr.window!==Nr&&Nr.self!==Nr||(Or=Nr);var qr=kr&&kr.exports===Sr&&Sr,Fr=Array.prototype,Br=Object.prototype,Mr=Or._,Rr=Math.pow(2,53)-1,$r=Br.toString,Ir=RegExp("^"+(null==$r?"":($r+"").replace(hr,"\\$&")).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Dr=Math.ceil,Wr=Math.floor,zr=Function.prototype.toString,Cr=Br.hasOwnProperty,Pr=Fr.push,Ur=Br.propertyIsEnumerable,Vr=Fr.splice,Gr=w(Gr=Object.create)&&Gr,Hr=w(Hr=Array.isArray)&&Hr,Jr=Or.isFinite,Kr=Or.isNaN,Lr=w(Lr=Object.keys)&&Lr,Qr=Math.max,Xr=Math.min,Yr=w(Yr=Date.now)&&Yr,Zr=Math.random;
|
||||
i.prototype=o.prototype;var nt={};!function(){var n={0:1,length:1};nt.spliceObjects=(Vr.call(n,0,1),!n[0])}(1),o.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:""},Gr||(f=function(){function n(){}return function(r){if(K(r)){n.prototype=r;var t=new n;n.prototype=null}return t||Or.Object()}}());var rt=T,tt=_(function(n,r,t){Cr.call(n,t)?n[t]++:n[t]=1}),et=_(function(n,r,t){Cr.call(n,t)?n[t].push(r):n[t]=[r]}),ut=_(function(n,r,t){n[t]=r
|
||||
}),ot=_(function(n,r,t){n[t?0:1].push(r)},true),it=M,ft=q;H(arguments)||(H=function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Cr.call(n,"callee")&&!Ur.call(n,"callee")||false});var at=Hr||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&$r.call(n)==yr||false};J(/x/)&&(J=function(n){return typeof n=="function"&&"[object Function]"==$r.call(n)});var ct=Lr?function(n){return K(n)?Lr(n):[]}:j,lt=Yr||function(){return(new Date).getTime()};o.after=function(n,r){if(!J(r))throw new TypeError;
|
||||
return function(){return 1>--n?r.apply(this,arguments):void 0}},o.bind=z,o.bindAll=function(n){for(var r=1<arguments.length?g(arguments,true,false,1):G(n),t=-1,e=r.length;++t<e;){var u=r[t];n[u]=b(n[u],ir,null,n)}return n},o.chain=function(n){return n=new i(n),n.__chain__=true,n},o.compact=function(n){for(var r=-1,t=n?n.length:0,e=0,u=[];++r<t;){var o=n[r];o&&(u[e++]=o)}return u},o.compose=function(){for(var n=arguments,r=n.length,t=r;t--;)if(!J(n[t]))throw new TypeError;return function(){for(var t=r-1,e=n[t].apply(this,arguments);t--;)e=n[t].call(this,e);
|
||||
return e}},o.constant=function(n){return function(){return n}},o.countBy=tt,o.debounce=C,o.defaults=V,o.defer=function(n){if(!J(n))throw new TypeError;var r=E(arguments,1);return setTimeout(function(){n.apply(or,r)},1)},o.delay=function(n,r){if(!J(n))throw new TypeError;var t=E(arguments,2);return setTimeout(function(){n.apply(or,t)},r)},o.difference=function(n){return l(n,g(arguments,true,true,1))},o.drop=rt,o.filter=q,o.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),g(n,r)
|
||||
return function(){var n=[this.__wrapped__];return Pr.apply(n,arguments),n=r.apply(o,n),this.__chain__?new i(n,true):n}}()}}function ur(n){return function(r){return null==r?or:r[n]}}var or,ir=1,fr=16,ar="__lodash@2.4.1__breaker__",cr=0,lr=/&(?:amp|lt|gt|quot|#x27);/g,pr=/[&<>"']/g,sr=/($^)/,gr=/[.*+?^${}()|[\]\\]/g,hr=/['\n\r\t\u2028\u2029\\]/g,vr="[object Arguments]",yr="[object Array]",mr="[object Boolean]",br="[object Date]",_r="[object Number]",dr="[object Object]",wr="[object RegExp]",jr="[object String]",xr={"&":"&","<":"<",">":">",'"':""","'":"'"},Ar={"&":"&","<":"<",">":">",""":'"',"'":"'"},Tr={"function":true,object:true},Er={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},Or=Tr[typeof window]&&window||this,Sr=Tr[typeof exports]&&exports&&!exports.nodeType&&exports,kr=Tr[typeof module]&&module&&!module.nodeType&&module,Nr=Sr&&kr&&typeof global=="object"&&global;
|
||||
!Nr||Nr.global!==Nr&&Nr.window!==Nr&&Nr.self!==Nr||(Or=Nr);var qr=kr&&kr.exports===Sr&&Sr,Fr=Array.prototype,Br=Object.prototype,Mr=Or._,Rr=Math.pow(2,53)-1,$r=Br.toString,Ir=RegExp("^"+(null==$r?"":($r+"").replace(gr,"\\$&")).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Dr=Math.ceil,Wr=Math.floor,zr=Function.prototype.toString,Cr=Br.hasOwnProperty,Pr=Fr.push,Ur=Br.propertyIsEnumerable,Vr=Fr.splice,Gr=w(Gr=Object.create)&&Gr,Hr=w(Hr=Array.isArray)&&Hr,Jr=Or.isFinite,Kr=Or.isNaN,Lr=w(Lr=Object.keys)&&Lr,Qr=Math.max,Xr=Math.min,Yr=w(Yr=Date.now)&&Yr,Zr=Math.random;
|
||||
i.prototype=o.prototype;var nt={};!function(){var n={0:1,length:1};nt.spliceObjects=(Vr.call(n,0,1),!n[0])}(1),o.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:""},Gr||(f=function(){function n(){}return function(r){if(K(r)){n.prototype=r;var t=new n;n.prototype=null}return t||Or.Object()}}());var rt=T,tt=b(function(n,r,t){Cr.call(n,t)?n[t]++:n[t]=1}),et=b(function(n,r,t){Cr.call(n,t)?n[t].push(r):n[t]=[r]}),ut=b(function(n,r,t){n[t]=r
|
||||
}),ot=b(function(n,r,t){n[t?0:1].push(r)},true),it=M,ft=q;H(arguments)||(H=function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Cr.call(n,"callee")&&!Ur.call(n,"callee")||false});var at=Hr||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&$r.call(n)==yr||false};J(/x/)&&(J=function(n){return typeof n=="function"&&"[object Function]"==$r.call(n)});var ct=Lr?function(n){return K(n)?Lr(n):[]}:j,lt=Yr||function(){return(new Date).getTime()};o.after=function(n,r){if(!J(r))throw new TypeError;
|
||||
return function(){return 1>--n?r.apply(this,arguments):void 0}},o.bind=z,o.bindAll=function(n){for(var r=1<arguments.length?h(arguments,true,false,1):G(n),t=-1,e=r.length;++t<e;){var u=r[t];n[u]=_(n[u],ir,null,n)}return n},o.chain=function(n){return new i(n,true)},o.compact=function(n){for(var r=-1,t=n?n.length:0,e=0,u=[];++r<t;){var o=n[r];o&&(u[e++]=o)}return u},o.compose=function(){for(var n=arguments,r=n.length,t=r;t--;)if(!J(n[t]))throw new TypeError;return function(){for(var t=r-1,e=n[t].apply(this,arguments);t--;)e=n[t].call(this,e);
|
||||
return e}},o.constant=function(n){return function(){return n}},o.countBy=tt,o.debounce=C,o.defaults=V,o.defer=function(n){if(!J(n))throw new TypeError;var r=E(arguments,1);return setTimeout(function(){n.apply(or,r)},1)},o.delay=function(n,r){if(!J(n))throw new TypeError;var t=E(arguments,2);return setTimeout(function(){n.apply(or,t)},r)},o.difference=function(){return l(arguments[0],h(arguments,true,true,1))},o.drop=rt,o.filter=q,o.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),h(n,r)
|
||||
},o.forEach=B,o.functions=G,o.groupBy=et,o.indexBy=ut,o.initial=function(n,r,t){return r=(n?n.length:0)-(null==r||t?1:r),E(n,0,0>r?0:r)},o.intersection=function(){for(var n=[],r=-1,t=arguments.length;++r<t;){var e=arguments[r];(at(e)||H(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},o.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},o.invoke=function(n,r){var t=E(arguments,2),e=-1,u=typeof r=="function",o=n&&n.length,i=Array(0>o?0:o>>>0);
|
||||
return p(n,function(n){var o=u?r:null!=n&&n[r];i[++e]=o?o.apply(n,t):or}),i},o.keys=ct,o.map=M,o.matches=tr,o.max=R,o.memoize=function(n,r){var t={};return function(){var e=r?r.apply(this,arguments):"_"+arguments[0];return Cr.call(t,e)?t[e]:t[e]=n.apply(this,arguments)}},o.min=function(n,r,t){var e=1/0,u=e,o=typeof r;"number"!=o&&"string"!=o||!t||t[r]!==n||(r=null);var o=-1,i=n?n.length:0;if(null==r&&typeof i=="number"&&-1<i&&i<=Rr)for(;++o<i;)t=n[o],t<u&&(u=t);else r=nr(r,t,3),p(n,function(n,t,o){t=r(n,t,o),t<e&&(e=t,u=n)
|
||||
});return u},o.omit=function(n){for(var r=g(arguments,true,false,1),t=r.length;t--;)r[t]=r[t]+"";return Y(n,l(X(n),r))},o.once=function(n){var r,t;if(!J(n))throw new TypeError;return function(){return r?t:(r=true,t=n.apply(this,arguments),n=null,t)}},o.pairs=function(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},o.partial=function(n){return b(n,fr,null,null,E(arguments,1))},o.partition=ot,o.pick=Y,o.pluck=it,o.property=ur,o.range=function(n,r,t){n=+n||0,t=+t||1,null==r?(r=n,n=0):r=+r||0;
|
||||
});return u},o.omit=function(n){for(var r=h(arguments,true,false,1),t=r.length;t--;)r[t]=r[t]+"";return Y(n,l(X(n),r))},o.once=function(n){var r,t;if(!J(n))throw new TypeError;return function(){return r?t:(r=true,t=n.apply(this,arguments),n=null,t)}},o.pairs=function(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},o.partial=function(n){return _(n,fr,null,null,E(arguments,1))},o.partition=ot,o.pick=Y,o.pluck=it,o.property=ur,o.range=function(n,r,t){n=+n||0,t=+t||1,null==r?(r=n,n=0):r=+r||0;
|
||||
var e=-1;r=Qr(0,Dr((r-n)/(t||1)));for(var u=Array(r);++e<r;)u[e]=n,n+=t;return u},o.reject=function(n,r,t){return r=nr(r,t,3),q(n,P(r))},o.rest=T,o.shuffle=D,o.sortBy=function(n,t,e){var u=-1,o=n&&n.length,i=Array(0>o?0:o>>>0);for(t=nr(t,e,3),p(n,function(n,r,e){i[++u]={a:t(n,r,e),b:u,c:n}}),o=i.length,i.sort(r);o--;)i[o]=i[o].c;return i},o.tap=function(n,r){return r(n),n},o.throttle=function(n,r,t){var e=true,u=true;if(!J(n))throw new TypeError;return false===t?e=false:K(t)&&(e="leading"in t?t.leading:e,u="trailing"in t?t.trailing:u),C(n,r,{leading:e,maxWait:r,trailing:u})
|
||||
},o.times=function(n,r,t){n=-1<(n=+n)?n:0;var e=-1,u=Array(n);for(r=a(r,t,1);++e<n;)u[e]=r(e);return u},o.toArray=function(n){return at(n)?E(n):n&&typeof n.length=="number"?M(n):Z(n)},o.union=function(){return m(g(arguments,true,true))},o.uniq=S,o.values=Z,o.where=ft,o.without=function(){return l(arguments[0],E(arguments,1))},o.wrap=function(n,r){return b(r,fr,null,null,[n])},o.zip=function(){for(var n=-1,r=R(it(arguments,"length")),t=Array(0>r?0:r);++n<r;)t[n]=it(arguments,n);return t},o.collect=M,o.each=B,o.extend=U,o.methods=G,o.object=function(n,r){var t=-1,e=n?n.length:0,u={};
|
||||
for(r||!e||at(n[0])||(r=[]);++t<e;){var o=n[t];r?u[o]=r[t]:o&&(u[o[0]]=o[1])}return u},o.select=q,o.tail=T,o.unique=S,o.clone=function(n){return K(n)?at(n)?E(n):U({},n):n},o.contains=k,o.escape=function(n){return null==n?"":(n+"").replace(pr,t)},o.every=N,o.find=F,o.has=function(n,r){return n?Cr.call(n,r):false},o.identity=rr,o.indexOf=A,o.isArguments=H,o.isArray=at,o.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&$r.call(n)==mr||false},o.isDate=function(n){return n&&typeof n=="object"&&$r.call(n)==_r||false
|
||||
},o.times=function(n,r,t){n=-1<(n=+n)?n:0;var e=-1,u=Array(n);for(r=a(r,t,1);++e<n;)u[e]=r(e);return u},o.toArray=function(n){return at(n)?E(n):n&&typeof n.length=="number"?M(n):Z(n)},o.union=function(){return m(h(arguments,true,true))},o.uniq=S,o.values=Z,o.where=ft,o.without=function(){return l(arguments[0],E(arguments,1))},o.wrap=function(n,r){return _(r,fr,null,null,[n])},o.zip=function(){for(var n=-1,r=R(it(arguments,"length")),t=Array(0>r?0:r);++n<r;)t[n]=it(arguments,n);return t},o.collect=M,o.each=B,o.extend=U,o.methods=G,o.object=function(n,r){var t=-1,e=n?n.length:0,u={};
|
||||
for(r||!e||at(n[0])||(r=[]);++t<e;){var o=n[t];r?u[o]=r[t]:o&&(u[o[0]]=o[1])}return u},o.select=q,o.tail=T,o.unique=S,o.clone=function(n){return K(n)?at(n)?E(n):U({},n):n},o.contains=k,o.escape=function(n){return null==n?"":(n+"").replace(pr,t)},o.every=N,o.find=F,o.has=function(n,r){return n?Cr.call(n,r):false},o.identity=rr,o.indexOf=A,o.isArguments=H,o.isArray=at,o.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&$r.call(n)==mr||false},o.isDate=function(n){return n&&typeof n=="object"&&$r.call(n)==br||false
|
||||
},o.isElement=function(n){return n&&1===n.nodeType||false},o.isEmpty=function(n){if(!n)return true;if(at(n)||Q(n))return!n.length;for(var r in n)if(Cr.call(n,r))return false;return true},o.isEqual=function(n,r){return y(n,r)},o.isFinite=function(n){return Jr(n)&&!Kr(parseFloat(n))},o.isFunction=J,o.isNaN=function(n){return L(n)&&n!=+n},o.isNull=function(n){return null===n},o.isNumber=L,o.isObject=K,o.isRegExp=function(n){var r=typeof n;return n&&("function"==r||"object"==r)&&$r.call(n)==wr||false},o.isString=Q,o.isUndefined=function(n){return typeof n=="undefined"
|
||||
},o.lastIndexOf=function(n,r,t){var e=n?n.length:0;for(typeof t=="number"&&(t|=0,e=(0>t?Qr(0,e+t):Xr(t,e-1))+1);e--;)if(n[e]===r)return e;return-1},o.mixin=er,o.noConflict=function(){return Or._=Mr,this},o.now=lt,o.random=function(n,r){return null==n&&null==r&&(r=1),n=+n||0,null==r?(r=n,n=0):r=+r||0,n+Wr(Zr()*(r-n+1))},o.reduce=$,o.reduceRight=I,o.result=function(n,r){if(null!=n){var t=n[r];return J(t)?n[r]():t}},o.size=function(n){var r=n?n.length:0;return typeof r=="number"&&-1<r&&r<=Rr?r:ct(n).length
|
||||
},o.some=W,o.sortedIndex=O,o.template=function(n,r,t){var u=o,i=u.templateSettings;n=(null==n?"":n)+"",t=V({},t,i);var f=0,a="__p+='",i=t.variable;n.replace(RegExp((t.escape||sr).source+"|"+(t.interpolate||sr).source+"|"+(t.evaluate||sr).source+"|$","g"),function(r,t,u,o,i){return a+=n.slice(f,i).replace(gr,e),t&&(a+="'+_.escape("+t+")+'"),o&&(a+="';"+o+";\n__p+='"),u&&(a+="'+((__t=("+u+"))==null?'':__t)+'"),f=i+r.length,r}),a+="';",i||(a="with(obj||{}){"+a+"}"),a="function("+(i||"obj")+"){var __t,__p='',__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}"+a+"return __p}";
|
||||
},o.some=W,o.sortedIndex=O,o.template=function(n,r,t){var u=o,i=u.templateSettings;n=(null==n?"":n)+"",t=V({},t,i);var f=0,a="__p+='",i=t.variable;n.replace(RegExp((t.escape||sr).source+"|"+(t.interpolate||sr).source+"|"+(t.evaluate||sr).source+"|$","g"),function(r,t,u,o,i){return a+=n.slice(f,i).replace(hr,e),t&&(a+="'+_.escape("+t+")+'"),o&&(a+="';"+o+";\n__p+='"),u&&(a+="'+((__t=("+u+"))==null?'':__t)+'"),f=i+r.length,r}),a+="';",i||(a="with(obj||{}){"+a+"}"),a="function("+(i||"obj")+"){var __t,__p='',__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}"+a+"return __p}";
|
||||
try{var c=Function("_","return "+a)(u)}catch(l){throw l.source=a,l}return r?c(r):(c.source=a,c)},o.unescape=function(n){return null==n?"":(n+="",0>n.indexOf(";")?n:n.replace(lr,u))},o.uniqueId=function(n){var r=++cr+"";return n?n+r:r},o.all=N,o.any=W,o.detect=F,o.findWhere=F,o.foldl=$,o.foldr=I,o.include=k,o.inject=$,o.first=x,o.last=function(n,r,t){var e=n?n.length:0;return null==r||t?n?n[e-1]:or:(r=e-r,E(n,0>r?0:r))},o.sample=function(n,r,t){return n&&typeof n.length!="number"&&(n=Z(n)),null==r||t?(r=n?n.length:0,0<r?n[0+Wr(Zr()*(r-1-0+1))]:or):(n=D(n),n.length=Xr(Qr(0,r),n.length),n)
|
||||
},o.take=x,o.head=x,er(U({},o)),o.VERSION="2.4.1",o.prototype.chain=function(){return this.__chain__=true,this},o.prototype.value=function(){return this.__wrapped__},p("pop push reverse shift sort splice unshift".split(" "),function(n){var r=Fr[n];o.prototype[n]=function(){var n=this.__wrapped__;return r.apply(n,arguments),nt.spliceObjects||0!==n.length||delete n[0],this}}),p(["concat","join","slice"],function(n){var r=Fr[n];o.prototype[n]=function(){var n=r.apply(this.__wrapped__,arguments);return this.__chain__&&(n=new i(n),n.__chain__=true),n
|
||||
}}),typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Or._=o, define("underscore",function(){return o})):Sr&&kr?qr?(kr.exports=o)._=o:Sr._=o:Or._=o}).call(this);
|
||||
Reference in New Issue
Block a user