Rebuild dist.

This commit is contained in:
John-David Dalton
2014-04-12 01:03:27 -07:00
parent 81cd990052
commit 5a47eb8559
6 changed files with 561 additions and 381 deletions

232
dist/lodash.compat.js vendored
View File

@@ -464,6 +464,16 @@
return typeof value.toString != 'function' && typeof (value + '') == 'string';
}
/**
* Used by `_.partition` to create partitioned arrays.
*
* @private
* @returns {Array} Returns the new array.
*/
function partitionInitializer() {
return [[], []];
}
/**
* A fallback implementation of `String#trim` to remove leading and trailing
* whitespace or specified characters from `string`.
@@ -1042,6 +1052,66 @@
/*--------------------------------------------------------------------------*/
/**
* A specialized version of `_.forEach` for arrays without support for
* callback shorthands or `this` binding.
*
* @private
* @param {Array} array The array to iterate over.
* @param {Function} callback The function called per iteration.
* @returns {Array} Returns `array`.
*/
function arrayEach(array, callback) {
var index = -1,
length = array ? array.length : 0;
while (++index < length) {
if (callback(array[index], index, array) === false) {
break;
}
}
return array;
}
/**
* A specialized version of `_.forEachRight` for arrays without support for
* callback shorthands or `this` binding.
*
* @private
* @param {Array} array The array to iterate over.
* @param {Function} callback The function called per iteration.
* @returns {Array} Returns `array`.
*/
function arrayEachRight(array, callback) {
var length = array ? array.length : 0;
while (length--) {
if (callback(array[length], length, array) === false) {
break;
}
}
return array;
}
/**
* A specialized version of `_.map` for arrays without support for callback
* shorthands or `this` binding.
*
* @private
* @param {Array} array The array to iterate over.
* @param {Function} callback The function called per iteration.
* @returns {Array} Returns the new mapped array.
*/
function arrayMap(array, callback) {
var index = -1,
length = array ? array.length >>> 0 : 0,
result = Array(length);
while (++index < length) {
result[index] = callback(array[index], index, array);
}
return result;
}
/**
* The base implementation of `_.bind` that creates the bound function and
* sets its metadata.
@@ -1980,22 +2050,22 @@
}
/**
* Creates a function that aggregates a collection, creating an object or
* array composed from the results of running each element in the collection
* Creates a function that aggregates a collection, creating an accumulator
* object composed from the results of running each element in the collection
* through a callback. The given setter function sets the keys and values of
* the composed object or array.
* the accumulator object. If `initializer` is provided will be used to
* initialize the accumulator object.
*
* @private
* @param {Function} setter The setter function.
* @param {boolean} [retArray=false] A flag to indicate that the aggregator
* function should return an array.
* @param {Function} setter The function to set keys and values of the accumulator object.
* @param {Function} [initializer] The function to initialize the accumulator object.
* @returns {Function} Returns the new aggregator function.
*/
function createAggregator(setter, retArray) {
function createAggregator(setter, initializer) {
return function(collection, callback, thisArg) {
var result = retArray ? [[], []] : {};
var result = initializer ? initializer() : {};
callback = lodash.createCallback(callback, thisArg, 3);
if (isArray(collection)) {
var index = -1,
length = collection.length;
@@ -2867,6 +2937,8 @@
* Removes all provided values from `array` using strict equality for
* comparisons, i.e. `===`.
*
* Note: Unlike `_.without`, this method mutates `array`.
*
* @static
* @memberOf _
* @category Arrays
@@ -2900,7 +2972,7 @@
}
/**
* Removes all elements from an array that the predicate returns truthy for
* Removes all elements from `array` that the predicate returns truthy for
* and returns an array of removed elements. The predicate is bound to `thisArg`
* and invoked with three arguments; (value, index, array).
*
@@ -2911,6 +2983,8 @@
* will return `true` for elements that have the properties of the given object,
* else `false`.
*
* Note: Unlike `_.filter`, this method mutates `array`.
*
* @static
* @memberOf _
* @category Arrays
@@ -3542,7 +3616,7 @@
*
* @name valueOf
* @memberOf _
* @alias value, toJSON
* @alias toJSON, value
* @category Chaining
* @returns {*} Returns the wrapped value.
* @example
@@ -3626,31 +3700,34 @@
*/
function contains(collection, target, fromIndex) {
var length = collection ? collection.length : 0;
fromIndex = (typeof fromIndex == 'number' && fromIndex) || 0;
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
if (typeof collection == 'string' || !isArray(collection) && isString(collection)) {
if (fromIndex >= length) {
return false;
}
return nativeContains
? nativeContains.call(collection, target, fromIndex)
: collection.indexOf(target, fromIndex) > -1;
}
var indexOf = getIndexOf();
fromIndex = fromIndex < 0 ? nativeMax(length + fromIndex, 0) : fromIndex;
return indexOf(collection, target, fromIndex) > -1;
if (!(typeof length == 'number' && length > -1 && length <= maxSafeInteger)) {
var props = keys(collection);
length = props.length;
}
var index = -1,
result = false;
baseEach(collection, function(value) {
if (++index >= fromIndex) {
return !(result = value === target);
if (typeof fromIndex == 'number') {
fromIndex = fromIndex < 0 ? nativeMax(length + fromIndex, 0) : (fromIndex || 0);
} else {
fromIndex = 0;
}
if (props) {
while (fromIndex < length) {
var value = collection[props[fromIndex++]];
if (value === target) {
return true;
}
}
});
return result;
return false;
}
if (typeof collection == 'string' || !isArray(collection) && isString(collection)) {
if (fromIndex >= length) {
return false;
}
return nativeContains
? nativeContains.call(collection, target, fromIndex)
: collection.indexOf(target, fromIndex) > -1;
}
var indexOf = getIndexOf();
return indexOf(collection, target, fromIndex) > -1;
}
/**
@@ -3734,8 +3811,8 @@
*/
function every(collection, predicate, thisArg) {
var result = true;
predicate = lodash.createCallback(predicate, thisArg, 3);
if (isArray(collection)) {
var index = -1,
length = collection.length;
@@ -3795,8 +3872,8 @@
*/
function filter(collection, predicate, thisArg) {
var result = [];
predicate = lodash.createCallback(predicate, thisArg, 3);
if (isArray(collection)) {
var index = -1,
length = collection.length;
@@ -3921,19 +3998,9 @@
* // => logs each number and returns the object (property order is not guaranteed across environments)
*/
function forEach(collection, callback, thisArg) {
if (callback && typeof thisArg == 'undefined' && isArray(collection)) {
var index = -1,
length = collection.length;
while (++index < length) {
if (callback(collection[index], index, collection) === false) {
break;
}
}
} else {
baseEach(collection, baseCreateCallback(callback, thisArg, 3));
}
return collection;
return (callback && typeof thisArg == 'undefined' && isArray(collection))
? arrayEach(collection, callback)
: baseEach(collection, baseCreateCallback(callback, thisArg, 3));
}
/**
@@ -3954,17 +4021,9 @@
* // => logs each number from right to left and returns '3,2,1'
*/
function forEachRight(collection, callback, thisArg) {
if (callback && typeof thisArg == 'undefined' && isArray(collection)) {
var length = collection.length;
while (length--) {
if (callback(collection[length], length, collection) === false) {
break;
}
}
} else {
baseEachRight(collection, baseCreateCallback(callback, thisArg, 3));
}
return collection;
return (callback && typeof thisArg == 'undefined' && isArray(collection))
? arrayEachRight(collection, callback)
: baseEachRight(collection, baseCreateCallback(callback, thisArg, 3));
}
/**
@@ -4129,20 +4188,17 @@
* // => ['barney', 'fred']
*/
function map(collection, callback, thisArg) {
var index = -1,
length = collection && collection.length,
result = Array(length < 0 ? 0 : length >>> 0);
callback = lodash.createCallback(callback, thisArg, 3);
if (isArray(collection)) {
while (++index < length) {
result[index] = callback(collection[index], index, collection);
}
} else {
baseEach(collection, function(value, key, collection) {
result[++index] = callback(value, key, collection);
});
return arrayMap(collection, callback, thisArg);
}
var index = -1,
result = [];
baseEach(collection, function(value, key, collection) {
result[++index] = callback(value, key, collection);
});
return result;
}
@@ -4342,7 +4398,7 @@
*/
var partition = createAggregator(function(result, value, key) {
result[key ? 0 : 1].push(value);
}, true);
}, partitionInitializer);
/**
* Retrieves the value of a specified property from all elements in the collection.
@@ -4398,8 +4454,8 @@
*/
function reduce(collection, callback, accumulator, thisArg) {
var noaccum = arguments.length < 3;
callback = lodash.createCallback(callback, thisArg, 4);
if (isArray(collection)) {
var index = -1,
length = collection.length;
@@ -4441,8 +4497,8 @@
*/
function reduceRight(collection, callback, accumulator, thisArg) {
var noaccum = arguments.length < 3;
callback = lodash.createCallback(callback, thisArg, 4);
baseEachRight(collection, function(value, index, collection) {
accumulator = noaccum
? (noaccum = false, value)
@@ -4552,7 +4608,6 @@
result[index] = result[rand];
result[rand] = value;
});
return result;
}
@@ -4627,8 +4682,8 @@
*/
function some(collection, predicate, thisArg) {
var result;
predicate = lodash.createCallback(predicate, thisArg, 3);
if (isArray(collection)) {
var index = -1,
length = collection.length;
@@ -6176,6 +6231,11 @@
* by the method instead. The callback is bound to `thisArg` and invoked
* with two arguments; (value, other).
*
* Note: This method supports comparing arrays, booleans, `Date` objects,
* numbers, `Object` objects, regexes, and strings. Functions and DOM nodes
* are **not** supported. A callback may be used to extend support for
* comparing other values.
*
* @static
* @memberOf _
* @category Objects
@@ -6627,8 +6687,8 @@
*/
function mapValues(object, callback, thisArg) {
var result = {};
callback = lodash.createCallback(callback, thisArg, 3);
baseForOwn(object, function(value, key, object) {
result[key] = callback(value, key, object);
});
@@ -6764,7 +6824,7 @@
* @memberOf _
* @category Objects
* @param {Object} object The object to inspect.
* @returns {Array} Returns new array of key-value pairs.
* @returns {Array} Returns the new array of key-value pairs.
* @example
*
* _.pairs({ 'barney': 36, 'fred': 40 });
@@ -7749,17 +7809,16 @@
* // => { 'name': 'barney', 'age': 36 }
*/
function matches(source) {
source || (source = {});
var props = keys(source),
propsLength = props.length,
key = props[0],
value = source[key];
value = propsLength && source[key];
// fast path the common case of providing an object with a single
// property containing a primitive value
if (propsLength == 1 && value === value && !isObject(value)) {
return function(object) {
if (!hasOwnProperty.call(object, key)) {
if (!(object && hasOwnProperty.call(object, key))) {
return false;
}
// treat `-0` vs. `+0` as not equal
@@ -7768,9 +7827,11 @@
};
}
return function(object) {
var length = propsLength,
result = true;
var length = propsLength;
if (length && !object) {
return false;
}
var result = true;
while (length--) {
var key = props[length];
if (!(result = hasOwnProperty.call(object, key) &&
@@ -8149,10 +8210,11 @@
*/
function times(n, callback, thisArg) {
n = n < 0 ? 0 : n >>> 0;
callback = baseCreateCallback(callback, thisArg, 1);
var index = -1,
result = Array(n);
callback = baseCreateCallback(callback, thisArg, 1);
while (++index < n) {
result[index] = callback(index);
}

View File

@@ -3,67 +3,67 @@
* Lo-Dash 2.4.1 (Custom Build) lodash.com/license | Underscore.js 1.6.0 underscorejs.org/LICENSE
* Build: `lodash -o ./dist/lodash.compat.js`
*/
;(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 e(n,t,e){e=(e||0)-1;for(var r=n?n.length:0;++e<r;)if(n[e]===t)return e;return-1}function r(n,t){return n.has(t)?0:-1}function u(n){return n.charCodeAt(0)}function o(n,t){for(var e=-1,r=n.length;++e<r&&0<=t.indexOf(n.charAt(e)););return e}function i(n,t){for(var e=n.length;e--&&0<=t.indexOf(n.charAt(e)););return e}function a(n,e){return t(n.a,e.a)||n.b-e.b
}function l(n,e){for(var r=-1,u=n.a,o=e.a,i=u.length;++r<i;){var a=t(u[r],o[r]);if(a)return a}return n.b-e.b}function f(n){return function(t){for(var e=-1,r=(t=null!=t&&(t+"").replace(Z,c).match(X))?t.length:0,u="";++e<r;)u=n(u,t[e],e,t);return u}}function c(n){return ht[n]}function s(n){return pt[n]}function p(n){return"\\"+yt[n]}function g(n){return typeof n.toString!="function"&&typeof(n+"")=="string"}function h(n,t){return(n=null==n?"":n+"")?null==t?n.slice(m(n),d(n)+1):(t+="",n.slice(o(n,t),i(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,i(n,t)+1)):n}function m(n){for(var t=-1,e=n.length;++t<e;){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 d(n){for(var t=n.length;t--;){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 b(n){return gt[n]}function _(t){function o(n){return n&&typeof n=="object"&&!Lr(n)&&er.call(n,"__wrapped__")?n:new i(n)}function i(n,t){this.__chain__=!!t,this.__wrapped__=n}function c(n){function t(){if(u){for(var n=-1,i=arguments.length,a=Re(i);++n<i;)a[n]=arguments[n];a=St(u,o,a)}return this instanceof t?(n=d(e.prototype),a=e.apply(n,a||arguments),ye(a)?a:n):e.apply(r,a||arguments)}var e=n[0],r=n[3],u=n[4],o=n[6];return Ar(t,n),t}function m(n,t,e,r,u){if(e){var o=e(n);if(typeof o!="undefined")return o
}if(!ye(n))return n;var i=Xe.call(n);if(!ft[i]||!Or.nodeClass&&g(n))return n;var a=jr[i];switch(i){case tt:case et:return new a(+n);case ot:case lt:return new a(n);case at:return o=a(n.source,B.exec(n)),o.lastIndex=n.lastIndex,o}if(i=Lr(n),t){r||(r=[]),u||(u=[]);for(var l=r.length;l--;)if(r[l]==n)return u[l];o=i?a(n.length):{}}else o=i?Ut(n):ce({},n);return i&&(er.call(n,"index")&&(o.index=n.index),er.call(n,"input")&&(o.input=n.input)),t?(r.push(n),u.push(o),(i?gt:xt)(n,function(n,i){o[i]=m(n,t,e,r,u)
}),o):o}function d(n){return ye(n)?sr(n):{}}function Z(n,t,e){if(typeof n!="function")return Oe;if(typeof t=="undefined"||!("prototype"in n))return n;var r=n[S];if(typeof r=="undefined"&&(Or.funcNames&&(r=!n.name),r=r||!Or.funcDecomp,!r)){var u=nr.call(n);Or.funcNames||(r=!q.test(u)),r||(r=V.test(u),Ar(n,r))}if(false===r||true!==r&&r[1]&x)return n;switch(e){case 1:return function(e){return n.call(t,e)};case 2:return function(e,r){return n.call(t,e,r)};case 3:return function(e,r,u){return n.call(t,e,r,u)
};case 4:return function(e,r,u,o){return n.call(t,e,r,u,o)}}return ae(n,t)}function X(n){function t(){for(var n=-1,v=arguments.length,y=Re(v);++n<v;)y[n]=arguments[n];if(i&&(y=St(i,l,y)),a){for(var n=a,m=f,b=-1,_=m.length,w=-1,j=yr(y.length-_,0),k=-1,A=n.length,S=Re(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&&(n=[],v-=n.length,v<u)?(r|=O,r&=~E,g||(r&=~(x|C)),v=yr(u-v,0),X([e,r,v,o,y,null,n])):(v=c?o:this,s&&(e=v[h]),this instanceof t?(v=d(e.prototype),n=e.apply(v,y),ye(n)?n:v):e.apply(v,y))
}var e=n[0],r=n[1],u=n[2],o=n[3],i=n[4],a=n[5],l=n[6],f=n[7],c=r&x,s=r&C,p=r&j,g=r&k,h=e;return Ar(t,n),t}function pt(n,t){var u=n?n.length:0;if(!u)return[];var o=-1,i=Tt(),a=i===e,l=a&&Er&&t&&200<=t.length,a=a&&!l,f=[],c=t?t.length:0;l&&(i=r,t=Er(t));n:for(;++o<u;)if(l=n[o],a){for(var s=c;s--;)if(t[s]===l)continue n;f.push(l)}else 0>i(t,l)&&f.push(l);return f}function gt(n,t){var e=-1,r=n,u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=Je)for(Or.unindexedChars&&be(r)&&(r=r.split(""));++e<u&&false!==t(r[e],e,n););else xt(n,t);
return n}function ht(n,t){var e=n,r=n?n.length:0;if(typeof r=="number"&&-1<r&&r<=Je)for(Or.unindexedChars&&be(e)&&(e=e.split(""));r--&&false!==t(e[r],r,n););else Ct(n,t);return n}function vt(n,t,e,r){var u;return e(n,function(n,e,o){return t(n,e,o)?(u=r?e:n,false):void 0}),u}function yt(n,t,e,r){r=(r||0)-1;for(var u=n?n.length:0,o=[];++r<u;){var i=n[r];if(i&&typeof i=="object"&&typeof i.length=="number"&&(Lr(i)||ge(i))){t||(i=yt(i,t,e));var a=-1,l=i.length,f=o.length;for(o.length+=l;++a<l;)o[f++]=i[a]}else e||o.push(i)
}return o}function dt(n,t,e){var r=-1;e=e(n);for(var u=e.length;++r<u;){var o=e[r];if(false===t(n[o],o,n))break}return n}function bt(n,t,e){e=e(n);for(var r=e.length;r--;){var u=e[r];if(false===t(n[u],u,n))break}return n}function wt(n,t){return dt(n,t,_e)}function xt(n,t){return dt(n,t,Fr)}function Ct(n,t){return bt(n,t,Fr)}function jt(n,t,e,r,u,o){if(e){var i=e(n,t);if(typeof i!="undefined")return!!i}if(n===t)return 0!==n||1/n==1/t;var a=typeof n,l=typeof t;if(n===n&&(null==n||null==t||"function"!=a&&"object"!=a&&"function"!=l&&"object"!=l))return false;
var f=Xe.call(n),a=Xe.call(t),c=f==Q,l=a==Q;if(c&&(f=it),l&&(a=it),f!=a)return false;switch(f){case tt:case et:return+n==+t;case ot:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case at:case lt:return n==De(t)}if(a=f==nt,!a){var s=er.call(n,"__wrapped__"),p=er.call(t,"__wrapped__");if(s||p)return jt(s?n.__wrapped__:n,p?t.__wrapped__:t,e,r,u,o);if(f!=it||!Or.nodeClass&&(g(n)||g(t)))return false;if(Or.argsObject||(c=ge(n),l=ge(t)),f=!c&&er.call(n,"constructor"),s=!l&&er.call(t,"constructor"),f!=s||!f&&(c=c?Pe:n.constructor,l=l?Pe:t.constructor,c!=l&&!(ve(c)&&c instanceof c&&ve(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 h=0,i=true;if(u.push(n),o.push(t),a){if(l=n.length,h=t.length,(i=h==l)||r)for(;h--;)if(a=l,c=t[h],r)for(;a--&&!(i=jt(n[a],c,e,r,u,o)););else if(!(i=jt(n[h],c,e,r,u,o)))break}else wt(t,function(t,a,l){return er.call(l,a)?(h++,i=er.call(n,a)&&jt(n[a],t,e,r,u,o)):void 0}),i&&!r&&wt(n,function(n,t,e){return er.call(e,t)?i=-1<--h:void 0});return u.pop(),o.pop(),i}function kt(n,t,e,r,u){(Lr(t)?gt:xt)(t,function(t,o){var i,a,l=t,f=n[o];
if(t&&((a=Lr(t))||Wr(t))){for(l=r.length;l--;)if(i=r[l]==t){f=u[l];break}if(!i){var c;e&&(l=e(f,t),c=typeof l!="undefined")&&(f=l),c||(f=a?Lr(f)?f:[]:Wr(f)?f:{}),r.push(t),u.push(f),c||kt(f,t,e,r,u)}}else e&&(l=e(f,t),typeof l=="undefined"&&(l=t)),typeof l!="undefined"&&(f=l);n[o]=f})}function Ot(n,t){return n+Qe(_r()*(t-n+1))}function Et(n,t,u){var o=n?n.length:0;if(!o)return[];var i=-1,a=Tt(),l=!t&&a===e,f=l&&Er&&200<=o,l=l&&!f,c=[];if(f)var s=Er(),a=r;else s=u&&!t?[]:c;n:for(;++i<o;){var p=n[i],g=u?u(p,i,n):p;
if(l){for(var h=s.length;h--;)if(s[h]===g)continue n;u&&s.push(g),c.push(p)}else t?i&&s===g||(s=g,c.push(p)):0>a(s,g)&&((u||f)&&s.push(g),c.push(p))}return c}function At(n,t){for(var e=-1,r=t(n),u=r.length,o=Re(u);++e<u;)o[e]=n[r[e]];return o}function St(n,t,e){for(var r=t.length,u=-1,o=yr(e.length-r,0),i=-1,a=n.length,l=Re(o+a);++i<a;)l[i]=n[i];for(;++u<r;)l[t[u]]=e[u];for(;o--;)l[i++]=e[u++];return l}function It(n,t){return function(e,r,u){var i=t?[[],[]]:{};if(r=o.createCallback(r,u,3),Lr(e)){u=-1;
for(var a=e.length;++u<a;){var l=e[u];n(i,l,r(l,u,e),e)}}else gt(e,function(t,e,u){n(i,t,r(t,e,u),u)});return i}}function Rt(n,t,e){return n=n.length,t=+t,n<t&&gr(t)?(t-=n,e=null==e?" ":De(e),je(e,Ge(t/e.length)).slice(0,t)):""}function Nt(n,t,e,r,u,o){var i=t&x,a=t&C,l=t&O,f=t&E;if(!a&&!ve(n))throw new Be;l&&!u.length&&(t&=~O,l=u=false),f&&!o.length&&(t&=~E,f=o=false);var s=!a&&n[S];if(s&&true!==s)return s=Ut(s),s[4]&&(s[4]=Ut(s[4])),s[5]&&(s[5]=Ut(s[5])),typeof e=="number"&&(s[2]=e),n=s[1]&x,i&&!n&&(s[3]=r),!i&&n&&(t|=k),l&&(s[4]?rr.apply(s[4],u):s[4]=u),f&&(s[5]?lr.apply(s[5],o):s[5]=o),s[1]|=t,Nt.apply(null,s);
if(l)var p=[];if(f)var g=[];return null==e&&(e=a?0:n.length),e=yr(e,0),s=[n,t,e,r,u,o,p,g],t==x||t==(x|O)?c(s):X(s)}function Tt(){var n=(n=o.indexOf)===zt?e:n;return n}function Lt(n){return typeof n=="function"&&Ye.test(nr.call(n))}function Wt(n){var t,e;return!n||Xe.call(n)!=it||!er.call(n,"constructor")&&(t=n.constructor,ve(t)&&!(t instanceof t))||!Or.argsClass&&ge(n)||!Or.nodeClass&&g(n)?false:Or.ownLast?(wt(n,function(n,t,r){return e=er.call(r,t),false}),false!==e):(wt(n,function(n,t){e=t}),typeof e=="undefined"||er.call(n,e))
}function Ft(n){for(var t,e=-1,r=_e(n),u=r.length,o=u&&n.length,i=o-1,a=[],o=typeof o=="number"&&0<o&&(Lr(n)||Or.nonEnumArgs&&ge(n)||Or.nonEnumStrings&&be(n));++e<u;){var l=r[e];(o&&(t=+l,-1<t&&t<=i&&0==t%1)||er.call(n,l))&&a.push(l)}return a}function $t(n,t,e){var r=-1,u=n?n.length:0;for(t=o.createCallback(t,e,3);++r<u;)if(t(n[r],r,n))return r;return-1}function Pt(n,t,e){if(typeof t!="number"&&null!=t){var r=-1,u=n?n.length:0,i=0;for(t=o.createCallback(t,e,3);++r<u&&t(n[r],r,n);)i++}else if(i=t,null==i||e)return n?n[0]:w;
return Ut(n,0,0>i?0:i)}function zt(n,t,r){var u=n?n.length:0;if(typeof r=="number")r=0>r?yr(u+r,0):r||0;else if(r)return r=Zt(n,t),u&&n[r]===t?r:-1;return e(n,t,r)}function Dt(n,t,e){var r=n?n.length:0;if(typeof t!="number"&&null!=t){var u=r,i=0;for(t=o.createCallback(t,e,3);u--&&t(n[u],u,n);)i++}else i=null==t||e?1:t;return i=r-(i||0),Ut(n,0,0>i?0:i)}function Bt(n,t,e){var r=n?n.length:0;if(typeof t!="number"&&null!=t){var u=r,i=0;for(t=o.createCallback(t,e,3);u--&&t(n[u],u,n);)i++}else if(i=t,null==i||e)return n?n[r-1]:w;
return i=r-(i||0),Ut(n,0>i?0:i)}function qt(n,t,e){if(typeof t!="number"&&null!=t){var r=-1,u=n?n.length:0,i=0;for(t=o.createCallback(t,e,3);++r<u&&t(n[r],r,n);)i++}else i=null==t||e?1:0>t?0:t;return Ut(n,i)}function Ut(n,t,e){var r=-1,u=n?n.length:0;for(t=typeof t=="undefined"?0:+t||0,0>t?t=yr(u+t,0):t>u&&(t=u),e=typeof e=="undefined"?u:+e||0,0>e?e=yr(u+e,0):e>u&&(e=u),u=t>e?0:e-t,e=Re(u);++r<u;)e[r]=n[t+r];return e}function Zt(n,t,e,r){var u=0,i=n?n.length:u;for(e=e?o.createCallback(e,r,1):Oe,t=e(t);u<i;)r=u+i>>>1,e(n[r])<t?u=r+1:i=r;
return u}function Kt(n,t,e,r){if(!n||!n.length)return[];var u=typeof t;return"boolean"!=u&&null!=t&&(r=e,e=t,t=false,"number"!=u&&"string"!=u||!r||r[e]!==n||(e=null)),null!=e&&(e=o.createCallback(e,r,3)),Et(n,t,e)}function Mt(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,e=n?ee(Tr(n,"length")):0,r=Re(0>e?0:e);++t<e;)r[t]=Tr(n,t);return r}function Vt(n,t){var e=-1,r=n?n.length:0,u={};for(t||!r||Lr(n[0])||(t=[]);++e<r;){var o=n[e];t?u[o]=t[e]:o&&(u[o[0]]=o[1])}return u}function Jt(){return this.__wrapped__
}function Xt(n,t,e){var r=n?n.length:0;if(e=typeof e=="number"&&e||0,typeof r=="number"&&-1<r&&r<=Je){if(typeof n=="string"||!Lr(n)&&be(n))return e<r?cr?cr.call(n,t,e):-1<n.indexOf(t,e):false;var u=Tt();return e=0>e?yr(r+e,0):e,-1<u(n,t,e)}var o=-1,i=false;return gt(n,function(n){return++o<e?void 0:!(i=n===t)}),i}function Yt(n,t,e){var r=true;if(t=o.createCallback(t,e,3),Lr(n)){e=-1;for(var u=n.length;++e<u;)if(!t(n[e],e,n))return false}else gt(n,function(n,e,u){return r=!!t(n,e,u)});return r}function Gt(n,t,e){var r=[];
if(t=o.createCallback(t,e,3),Lr(n)){e=-1;for(var u=n.length;++e<u;){var i=n[e];t(i,e,n)&&r.push(i)}}else gt(n,function(n,e,u){t(n,e,u)&&r.push(n)});return r}function Ht(n,t,e){return Lr(n)?(t=$t(n,t,e),-1<t?n[t]:w):(t=o.createCallback(t,e,3),vt(n,t,gt))}function Qt(n,t,e){if(t&&typeof e=="undefined"&&Lr(n)){e=-1;for(var r=n.length;++e<r&&false!==t(n[e],e,n););}else gt(n,Z(t,e,3));return n}function ne(n,t,e){if(t&&typeof e=="undefined"&&Lr(n))for(e=n.length;e--&&false!==t(n[e],e,n););else ht(n,Z(t,e,3));
return n}function te(n,t,e){var r=-1,u=n&&n.length,i=Re(0>u?0:u>>>0);if(t=o.createCallback(t,e,3),Lr(n))for(;++r<u;)i[r]=t(n[r],r,n);else gt(n,function(n,e,u){i[++r]=t(n,e,u)});return i}function ee(n,t,e){var r=-1/0,i=r,a=typeof t;if("number"!=a&&"string"!=a||!e||e[t]!==n||(t=null),null==t&&Lr(n))for(e=-1,a=n.length;++e<a;){var l=n[e];l>i&&(i=l)}else t=null==t&&be(n)?u:o.createCallback(t,e,3),gt(n,function(n,e,u){e=t(n,e,u),e>r&&(r=e,i=n)});return i}function re(n,t,e,r){var u=3>arguments.length;if(t=o.createCallback(t,r,4),Lr(n)){var i=-1,a=n.length;
for(u&&a&&(e=n[++i]);++i<a;)e=t(e,n[i],i,n)}else gt(n,function(n,r,o){e=u?(u=false,n):t(e,n,r,o)});return e}function ue(n,t,e,r){var u=3>arguments.length;return t=o.createCallback(t,r,4),ht(n,function(n,r,o){e=u?(u=false,n):t(e,n,r,o)}),e}function oe(n){var t=-1,e=n&&n.length,r=Re(0>e?0:e>>>0);return gt(n,function(n){var e=Ot(0,++t);r[t]=r[e],r[e]=n}),r}function ie(n,t,e){var r;if(t=o.createCallback(t,e,3),Lr(n)){e=-1;for(var u=n.length;++e<u;)if(t(n[e],e,n))return true}else gt(n,function(n,e,u){return!(r=t(n,e,u))
});return!!r}function ae(n,t){if(3>arguments.length)return Nt(n,x,null,t);if(n)var e=n[S]?n[S][2]:n.length,r=Ut(arguments,2),e=e-r.length;return Nt(n,x|O,e,t,r)}function le(n,t,e){var r,u,o,i,a,l,f,c=0,s=false,p=true;if(!ve(n))throw new Be;if(t=0>t?0:t,true===e)var g=true,p=false;else ye(e)&&(g=e.leading,s="maxWait"in e&&yr(t,+e.maxWait||0),p="trailing"in e?e.trailing:p);var h=function(){var e=t-(Ur()-i);0>=e||e>t?(u&&He(u),e=f,u=l=f=w,e&&(c=Ur(),o=n.apply(a,r),l||u||(r=a=null))):l=ir(h,e)},v=function(){l&&He(l),u=l=f=w,(p||s!==t)&&(c=Ur(),o=n.apply(a,r),l||u||(r=a=null))
};return function(){if(r=arguments,i=Ur(),a=this,f=p&&(l||!g),false===s)var e=g&&!l;else{u||g||(c=i);var y=s-(i-c),m=0>=y||y>s;m?(u&&(u=He(u)),c=i,o=n.apply(a,r)):u||(u=ir(v,y))}return m&&l?l=He(l):l||t===s||(l=ir(h,t)),e&&(m=true,o=n.apply(a,r)),!m||l||u||(r=a=null),o}}function fe(n){if(!ve(n))throw new Be;return function(){return!n.apply(this,arguments)}}function ce(n,t,e){var r=arguments;if(!n||2>r.length)return n;var u=0,o=r.length,i=typeof e;if("number"!=i&&"string"!=i||!r[3]||r[3][e]!==t||(o=2),3<o&&"function"==typeof r[o-2])var a=Z(r[--o-1],r[o--],2);
else 2<o&&"function"==typeof r[o-1]&&(a=r[--o]);for(;++u<o;){t=r[u];for(var i=-1,l=Fr(t),f=l.length;++i<f;){var c=l[i];n[c]=a?a(n[c],t[c]):t[c]}}return n}function se(t){if(!t||2>arguments.length)return t;var e=Ut(arguments);return e.push(n),ce.apply(null,e)}function pe(n){var t=[];return wt(n,function(n,e){ve(n)&&t.push(e)}),t.sort()}function ge(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Xe.call(n)==Q||false}function he(n){return n&&typeof n=="object"&&1===n.nodeType&&(Or.nodeClass?-1<Xe.call(n).indexOf("Element"):g(n))||false
}function ve(n){return typeof n=="function"}function ye(n){var t=typeof n;return n&&("function"==t||"object"==t)||false}function me(n){var t=typeof n;return"number"==t||n&&"object"==t&&Xe.call(n)==ot||false}function de(n){var t=typeof n;return n&&("function"==t||"object"==t)&&Xe.call(n)==at||false}function be(n){return typeof n=="string"||n&&typeof n=="object"&&Xe.call(n)==lt||false}function _e(n){if(!ye(n))return[];for(var t,e=n.length,e=(typeof e=="number"&&0<e&&(Lr(n)||Or.nonEnumStrings&&be(n)||Or.nonEnumArgs&&ge(n))&&e)>>>0,r=-1,u=e-1,o=Re(e),i=0<e,a=Or.enumErrorProps&&(n===Ue||n instanceof Le),l=Or.enumPrototypes&&typeof n=="function";++r<e;)o[r]=De(r);
for(var f in n)l&&"prototype"==f||a&&("message"==f||"name"==f)||i&&(t=+f,-1<t&&t<=u&&0==t%1)||o.push(f);if(Or.nonEnumShadows&&n!==Ze){if(t=n.constructor,r=-1,e=H.length,n===(t&&t.prototype))var c=n===Ke?lt:n===Ue?rt:Xe.call(n),c=kr[c];for(;++r<e;)f=H[r],c&&c[f]||!er.call(n,f)||o.push(f)}return o}function we(n,t,e){var r={};if(typeof t!="function")for(var u=-1,i=yt(arguments,true,false,1),a=ye(n)?i.length:0;++u<a;){var l=i[u];l in n&&(r[l]=n[l])}else t=o.createCallback(t,e,3),wt(n,function(n,e,u){t(n,e,u)&&(r[e]=n)
});return r}function xe(n){return At(n,Fr)}function Ce(n){return null==n?"":De(n).replace(M,"\\$&")}function je(n,t){var e="";if(t=+t,1>t||null==n||!gr(t))return e;n=De(n);do t%2&&(e+=n),t=Qe(t/2),n+=n;while(t);return e}function ke(n,t,e){var r=typeof n;return"function"==r||null==n?(typeof t=="undefined"||!("prototype"in n))&&n||Z(n,t,e):"object"!=r?Ie(n):Ee(n)}function Oe(n){return n}function Ee(n){n||(n={});var t=Fr(n),e=t.length,r=t[0],u=n[r];return 1!=e||u!==u||ye(u)?function(r){for(var u=e,o=true;u--&&(o=t[u],o=er.call(r,o)&&jt(r[o],n[o],null,true)););return o
}:function(n){return er.call(n,r)?(n=n[r],u===n&&(0!==u||1/u==1/n)):false}}function Ae(n,t,e){var r=true,u=t&&pe(t);t&&(e||u.length)||(null==e&&(e=t),t=n,n=o,u=pe(t)),false===e?r=false:ye(e)&&"chain"in e&&(r=e.chain),e=-1;for(var i=ve(n),a=u?u.length:0;++e<a;){var l=u[e],f=n[l]=t[l];i&&(n.prototype[l]=function(t){return function(){var e=this.__chain__,u=this.__wrapped__,o=[u];if(rr.apply(o,arguments),o=t.apply(n,o),r||e){if(u===o&&ye(o))return this;o=new n(o),o.__chain__=e}return o}}(f))}}function Se(){}function Ie(n){return function(t){return null==t?w:t[n]
}}t=t?_t.defaults(mt.Object(),t,_t.pick(mt,G)):mt;var Re=t.Array,Ne=t.Boolean,Te=t.Date,Le=t.Error,We=t.Function,Fe=t.Math,$e=t.Number,Pe=t.Object,ze=t.RegExp,De=t.String,Be=t.TypeError,qe=Re.prototype,Ue=Le.prototype,Ze=Pe.prototype,Ke=De.prototype,Me=(Me=t.window)&&Me.document,Ve=t._,Je=Fe.pow(2,53)-1,Xe=Ze.toString,Ye=ze("^"+Ce(Xe).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ge=Fe.ceil,He=t.clearTimeout,Qe=Fe.floor,nr=We.prototype.toString,tr=Lt(tr=Pe.getPrototypeOf)&&tr,er=Ze.hasOwnProperty,rr=qe.push,ur=Ze.propertyIsEnumerable,or=Lt(or=t.Set)&&or,ir=t.setTimeout,ar=qe.splice,lr=qe.unshift,fr=function(){try{var n={},t=Lt(t=Pe.defineProperty)&&t,e=t(n,n,n)&&t
}catch(r){}return e}(),cr=Lt(cr=Ke.contains)&&cr,sr=Lt(sr=Pe.create)&&sr,pr=Lt(pr=Re.isArray)&&pr,gr=t.isFinite,hr=t.isNaN,vr=Lt(vr=Pe.keys)&&vr,yr=Fe.max,mr=Fe.min,dr=Lt(dr=Te.now)&&dr,br=t.parseInt,_r=Fe.random,wr=Lt(wr=Ke.trim)&&!wr.call(Y)&&wr,xr=Lt(xr=Ke.trimLeft)&&!xr.call(Y)&&xr,Cr=Lt(Cr=Ke.trimRight)&&!Cr.call(Y)&&Cr,jr={};jr[nt]=Re,jr[tt]=Ne,jr[et]=Te,jr[ut]=We,jr[it]=Pe,jr[ot]=$e,jr[at]=ze,jr[lt]=De;var kr={};kr[nt]=kr[et]=kr[ot]={constructor:true,toLocaleString:true,toString:true,valueOf:true},kr[tt]=kr[lt]={constructor:true,toString:true,valueOf:true},kr[rt]=kr[ut]=kr[at]={constructor:true,toString:true},kr[it]={constructor:true},function(){for(var n=H.length;n--;){var t,e=H[n];
for(t in kr)er.call(kr,t)&&!er.call(kr[t],e)&&(kr[t][e]=false)}}(),i.prototype=o.prototype;var Or=o.support={};!function(x_){var n=function(){this.x=1},e={0:1,length:1},r=[];n.prototype={valueOf:1,y:1};for(var u in new n)r.push(u);for(var o in arguments);for(var i in"x");Or.argsClass=Xe.call(arguments)==Q,Or.argsObject=arguments.constructor==Pe&&!(arguments instanceof Re),Or.enumErrorProps=ur.call(Ue,"message")||ur.call(Ue,"name"),Or.enumPrototypes=ur.call(n,"prototype"),Or.funcDecomp=!Lt(t.WinRTError)&&V.test(_),Or.funcNames=typeof We.name=="string",Or.nonEnumStrings="0"!=i,Or.nonEnumShadows=!/valueOf/.test(r),Or.ownLast="x"!=r[0],Or.spliceObjects=(ar.call(e,0,1),!e[0]),Or.unindexedChars="xx"!="x"[0]+Pe("x")[0];
try{Or.dom=11===Me.createDocumentFragment().nodeType}catch(a){Or.dom=false}try{Or.nodeClass=!(Xe.call(undefined)==it&&!({toString:0}+""))}catch(l){Or.nodeClass=true}try{Or.nonEnumArgs=!("1"==o&&er.call(arguments,o)&&ur.call(arguments,o))}catch(f){Or.nonEnumArgs=true}}(0,0),o.templateSettings={escape:$,evaluate:P,interpolate:z,variable:"",imports:{_:o}},sr||(d=function(){function n(){}return function(e){if(ye(e)){n.prototype=e;var r=new n;n.prototype=null}return r||t.Object()}}());var Er=or&&function(n){var t=new or,e=n?n.length:0;for(t.push=t.add;e--;)t.push(n[e]);
return t},Ar=fr?function(n,t){st.value=t,fr(n,S,st)}:Se,Sr=It(function(n,t,e){er.call(n,e)?n[e]++:n[e]=1}),Ir=It(function(n,t,e){er.call(n,e)?n[e].push(t):n[e]=[t]}),Rr=It(function(n,t,e){n[e]=t}),Nr=It(function(n,t,e){n[e?0:1].push(t)},true),Tr=te;Or.argsClass||(ge=function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&er.call(n,"callee")&&!ur.call(n,"callee")||false});var Lr=pr||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Xe.call(n)==nt||false};Or.dom||(he=function(n){return n&&typeof n=="object"&&1===n.nodeType&&!Wr(n)||false
}),ve(/x/)&&(ve=function(n){return typeof n=="function"&&Xe.call(n)==ut});var Wr=tr?function(n){if(!n||Xe.call(n)!=it||!Or.argsClass&&ge(n))return false;var t=n.valueOf,e=Lt(t)&&(e=tr(t))&&tr(e);return e?n==e||tr(n)==e:Wt(n)}:Wt,Fr=vr?function(n){var t=n?n.length:0;return typeof t=="number"&&0<t?Ft(n):ye(n)?vr(n):[]}:Ft,$r=f(function(n,t,e){return!e&&R.test(t)?n+t.toLowerCase():n+(t.charAt(0)[e?"toUpperCase":"toLowerCase"]()+t.slice(1))}),Pr=f(function(n,t,e){return n+(e?"-":"")+t.toLowerCase()}),zr=f(function(n,t,e){return n+(e?"_":"")+t.toLowerCase()
}),Dr=wr?function(n,t){return null==n?"":null==t?wr.call(n):h(n,t)}:h,Br=xr?function(n,t){return null==n?"":null==t?xr.call(n):v(n,t)}:v,qr=Cr?function(n,t){return null==n?"":null==t?Cr.call(n):y(n,t)}:y,Ur=dr||function(){return(new Te).getTime()},Zr=8==br(Y+"08")?br:function(n,t){return n=Dr(n),br(n,+t||(U.test(n)?16:10))};return o.after=function(n,t){if(!ve(t))throw new Be;return n=gr(n=+n)?n:0,function(){return 1>--n?t.apply(this,arguments):void 0}},o.assign=ce,o.at=function(n,t){var e=arguments,r=-1,u=yt(e,true,false,1),o=u.length,i=typeof t;
for("number"!=i&&"string"!=i||!e[2]||e[2][t]!==n||(o=1),Or.unindexedChars&&be(n)&&(n=n.split("")),e=Re(o);++r<o;)e[r]=n[u[r]];return e},o.bind=ae,o.bindAll=function(n){for(var t=1<arguments.length?yt(arguments,true,false,1):pe(n),e=-1,r=t.length;++e<r;){var u=t[e];n[u]=Nt(n[u],x,null,n)}return n},o.bindKey=function(n,t){return 3>arguments.length?Nt(t,x|C,null,n):Nt(t,x|C|O,null,n,Ut(arguments,2))},o.chain=function(n){return new i(n,true)},o.compact=function(n){for(var t=-1,e=n?n.length:0,r=0,u=[];++t<e;){var o=n[t];
o&&(u[r++]=o)}return u},o.compose=function(){for(var n=arguments,t=n.length,e=t;e--;)if(!ve(n[e]))throw new Be;return function(){for(var e=t-1,r=n[e].apply(this,arguments);e--;)r=n[e].call(this,r);return r}},o.constant=function(n){return function(){return n}},o.countBy=Sr,o.create=function(n,t){var e=d(n);return t?ce(e,t):e},o.createCallback=ke,o.curry=function(n,t){return typeof t!="number"&&(t=+t||(n?n.length:0)),Nt(n,j,t)},o.debounce=le,o.defaults=se,o.defer=function(n){if(!ve(n))throw new Be;var t=Ut(arguments,1);
return ir(function(){n.apply(w,t)},1)},o.delay=function(n,t){if(!ve(n))throw new Be;var e=Ut(arguments,2);return ir(function(){n.apply(w,e)},t)},o.difference=function(){return pt(arguments[0],yt(arguments,true,true,1))},o.drop=qt,o.dropRight=Dt,o.dropRightWhile=Dt,o.dropWhile=qt,o.filter=Gt,o.flatten=function(n,t,e,r){if(!n||!n.length)return[];var u=typeof t;return"boolean"!=u&&null!=t&&(r=e,e=t,t=false,"number"!=u&&"string"!=u||!r||r[e]!==n||(e=null)),null!=e&&(n=te(n,e,r)),yt(n,t)},o.forEach=Qt,o.forEachRight=ne,o.forIn=function(n,t,e){return t=t&&typeof e=="undefined"?t:Z(t,e,3),dt(n,t,_e)
},o.forInRight=function(n,t,e){return t=Z(t,e,3),bt(n,t,_e)},o.forOwn=function(n,t,e){return t=t&&typeof e=="undefined"?t:Z(t,e,3),xt(n,t)},o.forOwnRight=function(n,t,e){return t=Z(t,e,3),bt(n,t,Fr)},o.functions=pe,o.groupBy=Ir,o.indexBy=Rr,o.initial=Dt,o.intersection=function(){for(var n=[],t=-1,u=arguments.length,o=[],i=Tt(),a=Er&&i===e;++t<u;){var l=arguments[t];(Lr(l)||ge(l))&&(n.push(l),o.push(a&&120<=l.length&&Er(t&&l)))}var u=n.length,a=n[0],f=-1,c=a?a.length:0,s=[],p=o[0];n:for(;++f<c;)if(l=a[f],0>(p?r(p,l):i(s,l))){for(t=u;--t;){var g=o[t];
if(0>(g?r(g,l):i(n[t],l)))continue n}p&&p.push(l),s.push(l)}return s},o.invert=function(n,t){for(var e=-1,r=Fr(n),u=r.length,o={};++e<u;){var i=r[e],a=n[i];t?er.call(o,a)?o[a].push(i):o[a]=[i]:o[a]=i}return o},o.invoke=function(n,t){var e=Ut(arguments,2),r=-1,u=typeof t=="function",o=n&&n.length,i=Re(0>o?0:o>>>0);return gt(n,function(n){var o=u?t:null!=n&&n[t];i[++r]=o?o.apply(n,e):w}),i},o.keys=Fr,o.keysIn=_e,o.map=te,o.mapValues=function(n,t,e){var r={};return t=o.createCallback(t,e,3),xt(n,function(n,e,u){r[e]=t(n,e,u)
}),r},o.matches=Ee,o.max=ee,o.memoize=function(n,t){if(!ve(n))throw new Be;var e=function(){var r=e.cache,u=t?t.apply(this,arguments):"_"+arguments[0];return er.call(r,u)?r[u]:r[u]=n.apply(this,arguments)};return e.cache={},e},o.merge=function(n,t,e){if(!n)return n;var r=arguments,u=r.length,o=typeof e;if("number"!=o&&"string"!=o||!r[3]||r[3][e]!==t||(u=2),3<u&&"function"==typeof r[u-2])var i=Z(r[--u-1],r[u--],2);else 2<u&&"function"==typeof r[u-1]&&(i=r[--u]);for(var r=Ut(r,1,u),o=-1,a=[],l=[];++o<u;)kt(n,r[o],i,a,l);
return n},o.min=function(n,t,e){var r=1/0,i=r,a=typeof t;if("number"!=a&&"string"!=a||!e||e[t]!==n||(t=null),null==t&&Lr(n))for(e=-1,a=n.length;++e<a;){var l=n[e];l<i&&(i=l)}else t=null==t&&be(n)?u:o.createCallback(t,e,3),gt(n,function(n,e,u){e=t(n,e,u),e<r&&(r=e,i=n)});return i},o.negate=fe,o.omit=function(n,t,e){if(typeof t=="function")return t=o.createCallback(t,e,3),we(n,fe(t));for(var r=yt(arguments,true,false,1),u=r.length;u--;)r[u]=De(r[u]);return we(n,pt(_e(n),r))},o.once=function(n){var t,e;if(!ve(n))throw new Be;
return function(){return t?e:(t=true,e=n.apply(this,arguments),n=null,e)}},o.pairs=function(n){for(var t=-1,e=Fr(n),r=e.length,u=Re(r);++t<r;){var o=e[t];u[t]=[o,n[o]]}return u},o.partial=function(n){if(n)var t=n[S]?n[S][2]:n.length,e=Ut(arguments,1),t=t-e.length;return Nt(n,O,t,null,e)},o.partialRight=function(n){if(n)var t=n[S]?n[S][2]:n.length,e=Ut(arguments,1),t=t-e.length;return Nt(n,E,t,null,null,e)},o.partition=Nr,o.pick=we,o.pluck=Tr,o.property=Ie,o.pull=function(n){for(var t=0,e=arguments.length,r=n?n.length:0;++t<e;)for(var u=-1,o=arguments[t];++u<r;)n[u]===o&&(ar.call(n,u--,1),r--);
return n},o.range=function(n,t,e){n=+n||0,e=null==e?1:+e||0,null==t?(t=n,n=0):t=+t||0;var r=-1;t=yr(Ge((t-n)/(e||1)),0);for(var u=Re(t);++r<t;)u[r]=n,n+=e;return u},o.reject=function(n,t,e){return t=o.createCallback(t,e,3),Gt(n,fe(t))},o.remove=function(n,t,e){var r=-1,u=n?n.length:0,i=[];for(t=o.createCallback(t,e,3);++r<u;)e=n[r],t(e,r,n)&&(i.push(e),ar.call(n,r--,1),u--);return i},o.rest=qt,o.shuffle=oe,o.slice=Ut,o.sortBy=function(n,t,e){var r=-1,u=n&&n.length,i=t&&Lr(t),f=Re(0>u?0:u>>>0);for(i||(t=o.createCallback(t,e,3)),gt(n,function(n,e,u){if(i)for(e=t.length,u=Re(e);e--;)u[e]=n[t[e]];
else u=t(n,e,u);f[++r]={a:u,b:r,c:n}}),u=f.length,f.sort(i?l:a);u--;)f[u]=f[u].c;return f},o.tap=function(n,t,e){return t.call(e,n),n},o.throttle=function(n,t,e){var r=true,u=true;if(!ve(n))throw new Be;return false===e?r=false:ye(e)&&(r="leading"in e?!!e.leading:r,u="trailing"in e?!!e.trailing:u),ct.leading=r,ct.maxWait=+t,ct.trailing=u,le(n,t,ct)},o.times=function(n,t,e){n=0>n?0:n>>>0;var r=-1,u=Re(n);for(t=Z(t,e,1);++r<n;)u[r]=t(r);return u},o.toArray=function(n){var t=n&&n.length;return typeof t=="number"&&-1<t&&t<=Je?Or.unindexedChars&&be(n)?n.split(""):Ut(n):xe(n)
},o.transform=function(n,t,e,r){var u=Lr(n);if(null==e)if(u)e=[];else{var i=n&&n.constructor;e=d(i&&i.prototype)}return t&&(t=o.createCallback(t,r,4),(u?gt:xt)(n,function(n,r,u){return t(e,n,r,u)})),e},o.union=function(){return Et(yt(arguments,true,true))},o.uniq=Kt,o.values=xe,o.valuesIn=function(n){return At(n,_e)},o.where=Gt,o.without=function(){return pt(arguments[0],Ut(arguments,1))},o.wrap=function(n,t){return Nt(t,O,null,null,[n])},o.xor=function(){for(var n=-1,t=arguments.length;++n<t;){var e=arguments[n];
if(Lr(e)||ge(e))var r=r?pt(r,e).concat(pt(e,r)):e}return r?Et(r):[]},o.zip=Mt,o.zipObject=Vt,o.callback=ke,o.collect=te,o.each=Qt,o.eachRight=ne,o.extend=ce,o.methods=pe,o.object=Vt,o.select=Gt,o.tail=qt,o.unique=Kt,o.unzip=Mt,Ae(ce({},o)),o.camelCase=$r,o.capitalize=function(n){return null==n?"":(n=De(n),n.charAt(0).toUpperCase()+n.slice(1))},o.clone=function(n,t,e,r){var u=typeof t;return"boolean"!=u&&null!=t&&(r=e,e=t,t=false,"number"!=u&&"string"!=u||!r||r[e]!==n||(e=null)),e=typeof e=="function"&&Z(e,r,1),m(n,t,e)
},o.cloneDeep=function(n,t,e){return t=typeof t=="function"&&Z(t,e,1),m(n,true,t)},o.contains=Xt,o.endsWith=function(n,t,e){n=null==n?"":De(n),t=De(t);var r=n.length;return e=(typeof e=="undefined"?r:mr(0>e?0:+e||0,r))-t.length,0<=e&&n.indexOf(t,e)==e},o.escape=function(n){return null==n?"":De(n).replace(F,s)},o.escapeRegExp=Ce,o.every=Yt,o.find=Ht,o.findIndex=$t,o.findKey=function(n,t,e){return t=o.createCallback(t,e,3),vt(n,t,xt,true)},o.findLast=function(n,t,e){return t=o.createCallback(t,e,3),vt(n,t,ht)
},o.findLastIndex=function(n,t,e){var r=n?n.length:0;for(t=o.createCallback(t,e,3);r--;)if(t(n[r],r,n))return r;return-1},o.findLastKey=function(n,t,e){return t=o.createCallback(t,e,3),vt(n,t,Ct,true)},o.has=function(n,t){return n?er.call(n,t):false},o.identity=Oe,o.indexOf=zt,o.isArguments=ge,o.isArray=Lr,o.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&Xe.call(n)==tt||false},o.isDate=function(n){return n&&typeof n=="object"&&Xe.call(n)==et||false},o.isElement=he,o.isEmpty=function(n){var t=true;
if(!n)return t;var e=Xe.call(n),r=n.length;return-1<r&&r<=Je&&(e==nt||e==lt||(Or.argsClass?e==Q:ge(n))||e==it&&ve(n.splice))?!r:(xt(n,function(){return t=false}),t)},o.isEqual=function(n,t,e,r){if(e=typeof e=="function"&&Z(e,r,2),!e){if(n===t)return 0!==n||1/n==1/t;r=typeof n;var u=typeof t;if(n===n&&(null==n||null==t||"function"!=r&&"object"!=r&&"function"!=u&&"object"!=u))return false}return jt(n,t,e)},o.isFinite=function(n){return gr(n)&&!hr(parseFloat(n))},o.isFunction=ve,o.isNaN=function(n){return me(n)&&n!=+n
},o.isNull=function(n){return null===n},o.isNumber=me,o.isObject=ye,o.isPlainObject=Wr,o.isRegExp=de,o.isString=be,o.isUndefined=function(n){return typeof n=="undefined"},o.kebabCase=Pr,o.lastIndexOf=function(n,t,e){var r=n?n.length:0;for(typeof e=="number"&&(r=(0>e?yr(r+e,0):mr(e||0,r-1))+1);r--;)if(n[r]===t)return r;return-1},o.mixin=Ae,o.noConflict=function(){return t._=Ve,this},o.noop=Se,o.now=Ur,o.pad=function(n,t,e){n=null==n?"":De(n),t=+t;var r=n.length;return r<t&&gr(t)?(r=(t-r)/2,t=Qe(r),r=Ge(r),e=Rt("",r,e),e.slice(0,t)+n+e):n
},o.padLeft=function(n,t,e){return n=null==n?"":De(n),Rt(n,t,e)+n},o.padRight=function(n,t,e){return n=null==n?"":De(n),n+Rt(n,t,e)},o.parseInt=Zr,o.random=function(n,t,e){var r=null==n,u=null==t;return null==e&&(u&&typeof n=="boolean"?(e=n,n=1):typeof t=="boolean"&&(e=t,u=true)),r&&u&&(t=1,u=false),n=+n||0,u?(t=n,n=0):t=+t||0,e||n%1||t%1?(e=_r(),mr(n+e*(t-n+parseFloat("1e-"+((e+"").length-1))),t)):Ot(n,t)},o.reduce=re,o.reduceRight=ue,o.repeat=je,o.result=function(n,t,e){var r=null==n?w:n[t];return typeof r=="undefined"?e:ve(r)?n[t]():r
},o.runInContext=_,o.size=function(n){var t=n?n.length:0;return typeof t=="number"&&-1<t&&t<=Je?t:Fr(n).length},o.some=ie,o.sortedIndex=Zt,o.snakeCase=zr,o.startsWith=function(n,t,e){return n=null==n?"":De(n),e=typeof e=="undefined"?0:mr(0>e?0:+e||0,n.length),n.lastIndexOf(t,e)==e},o.template=function(n,t,e){var r=o.templateSettings;e=se({},e,r),n=De(null==n?"":n);var u,i,a=se({},e.imports,r.imports),r=Fr(a),a=xe(a),l=0,f=e.interpolate||K,c="__p+='",f=ze((e.escape||K).source+"|"+f.source+"|"+(f===z?D:K).source+"|"+(e.evaluate||K).source+"|$","g");
n.replace(f,function(t,e,r,o,a,f){return r||(r=o),c+=n.slice(l,f).replace(J,p),e&&(u=true,c+="'+__e("+e+")+'"),a&&(i=true,c+="';"+a+";\n__p+='"),r&&(c+="'+((__t=("+r+"))==null?'':__t)+'"),l=f+t.length,t}),c+="';",(e=e.variable)||(c="with(obj){"+c+"}"),c=(i?c.replace(N,""):c).replace(T,"$1").replace(L,"$1;"),c="function("+(e||"obj")+"){"+(e?"":"obj||(obj={});")+"var __t,__p=''"+(u?",__e=_.escape":"")+(i?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+c+"return __p}";try{var s=We(r,"return "+c).apply(w,a)
}catch(g){throw g.source=c,g}return t?s(t):(s.source=c,s)},o.trim=Dr,o.trimLeft=Br,o.trimRight=qr,o.truncate=function(n,t){var e=30,r="...";if(t&&ye(t))var u="separator"in t?t.separator:u,e="length"in t?+t.length||0:e,r="omission"in t?De(t.omission):r;else null!=t&&(e=+t||0);if(n=null==n?"":De(n),e>=n.length)return n;var o=e-r.length;if(1>o)return r;if(e=n.slice(0,o),null==u)return e+r;if(de(u)){if(n.slice(o).search(u)){var i,a,l=n.slice(0,o);for(u.global||(u=ze(u.source,(B.exec(u)||"")+"g")),u.lastIndex=0;i=u.exec(l);)a=i.index;
e=e.slice(0,null==a?o:a)}}else n.indexOf(u,o)!=o&&(u=e.lastIndexOf(u),-1<u&&(e=e.slice(0,u)));return e+r},o.unescape=function(n){return null==n?"":(n=De(n),0>n.indexOf(";")?n:n.replace(W,b))},o.uniqueId=function(n){var t=++I;return De(null==n?"":n)+t},o.all=Yt,o.any=ie,o.detect=Ht,o.findWhere=Ht,o.foldl=re,o.foldr=ue,o.include=Xt,o.inject=re,Ae(function(){var n={};return xt(o,function(t,e){o.prototype[e]||(n[e]=t)}),n}(),false),o.first=Pt,o.last=Bt,o.sample=function(n,t,e){return n&&typeof n.length!="number"?n=xe(n):Or.unindexedChars&&be(n)&&(n=n.split("")),null==t||e?(t=n?n.length:0,0<t?n[Ot(0,t-1)]:w):(n=oe(n),n.length=mr(0>t?0:+t||0,n.length),n)
},o.take=Pt,o.takeRight=Bt,o.takeRightWhile=Bt,o.takeWhile=Pt,o.head=Pt,xt(o,function(n,t){var e="sample"!==t;o.prototype[t]||(o.prototype[t]=function(t,r){var u=this.__chain__,o=n(this.__wrapped__,t,r);return u||null!=t&&(!r||e&&typeof t=="function")?new i(o,u):o})}),o.VERSION=A,o.prototype.chain=function(){return this.__chain__=true,this},o.prototype.toJSON=Jt,o.prototype.toString=function(){return De(this.__wrapped__)},o.prototype.value=Jt,o.prototype.valueOf=Jt,gt(["join","pop","shift"],function(n){var t=qe[n];
o.prototype[n]=function(){var n=this.__chain__,e=t.apply(this.__wrapped__,arguments);return n?new i(e,n):e}}),gt(["push","reverse","sort","unshift"],function(n){var t=qe[n];o.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),gt(["concat","splice"],function(n){var t=qe[n];o.prototype[n]=function(){return new i(t.apply(this.__wrapped__,arguments),this.__chain__)}}),Or.spliceObjects||gt(["pop","shift","splice"],function(n){var t=qe[n],e="splice"==n;o.prototype[n]=function(){var n=this.__chain__,r=this.__wrapped__,u=t.apply(r,arguments);
return 0===r.length&&delete r[0],n||e?new i(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=/^[A-Z]+$/,N=/\b__p\+='';/g,T=/\b(__p\+=)''\+/g,L=/(__e\(.*?\)|\b__t\))\+'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,F=/[&<>"']/g,$=/<%-([\s\S]+?)%>/g,P=/<%([\s\S]+?)%>/g,z=/<%=([\s\S]+?)%>/g,D=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,B=/\w*$/,q=/^\s*function[ \n\r\t]+\w/,U=/^0[xX]/,Z=/[\xC0-\xFF]/g,K=/($^)/,M=/[.*+?^${}()|[\]\\]/g,V=/\bthis\b/,J=/['\n\r\u2028\u2029\\]/g,X=/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[a-z]+|[0-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(" "),Q="[object Arguments]",nt="[object Array]",tt="[object Boolean]",et="[object Date]",rt="[object Error]",ut="[object Function]",ot="[object Number]",it="[object Object]",at="[object RegExp]",lt="[object String]",ft={};
ft[ut]=false,ft[Q]=ft[nt]=ft[tt]=ft[et]=ft[ot]=ft[it]=ft[at]=ft[lt]=true;var ct={leading:false,maxWait:0,trailing:false},st={configurable:false,enumerable:false,value:null,writable:false},pt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},gt={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},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":" "},vt={"function":true,object:true},yt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},mt=vt[typeof window]&&window||this,dt=vt[typeof exports]&&exports&&!exports.nodeType&&exports,vt=vt[typeof module]&&module&&!module.nodeType&&module,bt=dt&&vt&&typeof global=="object"&&global;
!bt||bt.global!==bt&&bt.window!==bt&&bt.self!==bt||(mt=bt);var bt=vt&&vt.exports===dt&&dt,_t=_();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(mt._=_t, define(function(){return _t})):dt&&vt?bt?(vt.exports=_t)._=_t:dt._=_t:mt._=_t}).call(this);
;(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 i(n,t){for(var r=n.length;r--&&0<=t.indexOf(n.charAt(r)););return r}function a(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,i=u.length;++e<i;){var a=t(u[e],o[e]);if(a)return a}return n.b-r.b}function f(n){return function(t){for(var r=-1,e=(t=null!=t&&(t+"").replace(K,c).match(Y))?t.length:0,u="";++r<e;)u=n(u,t[r],r,t);return u}}function c(n){return vt[n]}function s(n){return gt[n]}function p(n){return"\\"+mt[n]}function g(n){return typeof n.toString!="function"&&typeof(n+"")=="string"}function h(){return[[],[]]}function v(n,t){return(n=null==n?"":n+"")?null==t?n.slice(d(n),b(n)+1):(t+="",n.slice(o(n,t),i(n,t)+1)):n
}function y(n,t){return(n=null==n?"":n+"")?null==t?n.slice(d(n)):(t+="",n.slice(o(n,t))):n}function m(n,t){return(n=null==n?"":n+"")?null==t?n.slice(0,b(n)+1):(t+="",n.slice(0,i(n,t)+1)):n}function d(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 b(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 _(n){return ht[n]}function w(t){function o(n){return n&&typeof n=="object"&&!Fe(n)&&ue.call(n,"__wrapped__")?n:new i(n)}function i(n,t){this.__chain__=!!t,this.__wrapped__=n}function c(n,t){for(var r=-1,e=n?n.length>>>0:0,u=Tr(e);++r<e;)u[r]=t(n[r],r,n);return u}function d(n){function t(){if(u){for(var n=-1,i=arguments.length,a=Tr(i);++n<i;)a[n]=arguments[n];a=Rt(u,o,a)}return this instanceof t?(n=K(r.prototype),a=r.apply(n,a||arguments),dr(a)?a:n):r.apply(e,a||arguments)}var r=n[0],e=n[3],u=n[4],o=n[6];
return Ie(t,n),t}function b(n,t,r,e,u){if(r){var o=r(n);if(typeof o!="undefined")return o}if(!dr(n))return n;var i=Gr.call(n);if(!ct[i]||!Ae.nodeClass&&g(n))return n;var a=Oe[i];switch(i){case rt:case et:return new a(+n);case it:case ft:return new a(n);case lt:return o=a(n.source,q.exec(n)),o.lastIndex=n.lastIndex,o}if(i=Fe(n),t){e||(e=[]),u||(u=[]);for(var l=e.length;l--;)if(e[l]==n)return u[l];o=i?a(n.length):{}}else o=i?Kt(n):pr({},n);return i&&(ue.call(n,"index")&&(o.index=n.index),ue.call(n,"input")&&(o.input=n.input)),t?(e.push(n),u.push(o),(i?vt:jt)(n,function(n,i){o[i]=b(n,t,r,e,u)
}),o):o}function K(n){return dr(n)?ge(n):{}}function Y(n,t,r){if(typeof n!="function")return Ar;if(typeof t=="undefined"||!("prototype"in n))return n;var e=n[I];if(typeof e=="undefined"&&(Ae.funcNames&&(e=!n.name),e=e||!Ae.funcDecomp,!e)){var u=re.call(n);Ae.funcNames||(e=!U.test(u)),e||(e=J.test(u),Ie(n,e))}if(false===e||true!==e&&e[1]&C)return n;switch(r){case 1:return function(r){return n.call(t,r)};case 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 fr(n,t)}function gt(n){function t(){for(var n=-1,v=arguments.length,y=Tr(v);++n<v;)y[n]=arguments[n];if(i&&(y=Rt(i,l,y)),a){for(var n=a,m=f,d=-1,b=m.length,_=-1,w=de(y.length-b,0),x=-1,k=n.length,O=Tr(w+k);++_<w;)O[_]=y[_];for(w=_;++x<k;)O[w+x]=n[x];for(;++d<b;)O[w+m[d]]=y[_++];y=O}return p&&(n=[],v-=n.length,v<u)?(e|=E,e&=~A,g||(e&=~(C|j)),v=de(u-v,0),gt([r,e,v,o,y,null,n])):(v=c?o:this,s&&(r=v[h]),this instanceof t?(v=K(r.prototype),n=r.apply(v,y),dr(n)?n:v):r.apply(v,y))
}var r=n[0],e=n[1],u=n[2],o=n[3],i=n[4],a=n[5],l=n[6],f=n[7],c=e&C,s=e&j,p=e&k,g=e&O,h=r;return Ie(t,n),t}function ht(n,t){var u=n?n.length:0;if(!u)return[];var o=-1,i=Wt(),a=i===r,l=a&&Se&&t&&200<=t.length,a=a&&!l,f=[],c=t?t.length:0;l&&(i=e,t=Se(t));n:for(;++o<u;)if(l=n[o],a){for(var s=c;s--;)if(t[s]===l)continue n;f.push(l)}else 0>i(t,l)&&f.push(l);return f}function vt(n,t){var r=-1,e=n,u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=Yr)for(Ae.unindexedChars&&wr(e)&&(e=e.split(""));++r<u&&false!==t(e[r],r,n););else jt(n,t);
return n}function yt(n,t){var r=n,e=n?n.length:0;if(typeof e=="number"&&-1<e&&e<=Yr)for(Ae.unindexedChars&&wr(r)&&(r=r.split(""));e--&&false!==t(r[e],e,n););else kt(n,t);return n}function mt(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 bt(n,t,r,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"&&(Fe(i)||vr(i))){t||(i=bt(i,t,r));var a=-1,l=i.length,f=o.length;for(o.length+=l;++a<l;)o[f++]=i[a]}else r||o.push(i)
}return o}function _t(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 xt(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 Ct(n,t){return _t(n,t,xr)}function jt(n,t){return _t(n,t,Pe)}function kt(n,t){return xt(n,t,Pe)}function Ot(n,t,r,e,u,o){if(r){var i=r(n,t);if(typeof i!="undefined")return!!i}if(n===t)return 0!==n||1/n==1/t;var a=typeof n,l=typeof t;if(n===n&&(null==n||null==t||"function"!=a&&"object"!=a&&"function"!=l&&"object"!=l))return false;
var f=Gr.call(n),a=Gr.call(t),c=f==nt,l=a==nt;if(c&&(f=at),l&&(a=at),f!=a)return false;switch(f){case rt:case et:return+n==+t;case it:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case lt:case ft:return n==qr(t)}if(a=f==tt,!a){var s=ue.call(n,"__wrapped__"),p=ue.call(t,"__wrapped__");if(s||p)return Ot(s?n.__wrapped__:n,p?t.__wrapped__:t,r,e,u,o);if(f!=at||!Ae.nodeClass&&(g(n)||g(t)))return false;if(Ae.argsObject||(c=vr(n),l=vr(t)),f=!c&&ue.call(n,"constructor"),s=!l&&ue.call(t,"constructor"),f!=s||!f&&(c=c?Dr:n.constructor,l=l?Dr:t.constructor,c!=l&&!(mr(c)&&c instanceof c&&mr(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 h=0,i=true;if(u.push(n),o.push(t),a){if(l=n.length,h=t.length,(i=h==l)||e)for(;h--;)if(a=l,c=t[h],e)for(;a--&&!(i=Ot(n[a],c,r,e,u,o)););else if(!(i=Ot(n[h],c,r,e,u,o)))break}else Ct(t,function(t,a,l){return ue.call(l,a)?(h++,i=ue.call(n,a)&&Ot(n[a],t,r,e,u,o)):void 0}),i&&!e&&Ct(n,function(n,t,r){return ue.call(r,t)?i=-1<--h:void 0});return u.pop(),o.pop(),i}function Et(n,t,r,e,u){(Fe(t)?vt:jt)(t,function(t,o){var i,a,l=t,f=n[o];
if(t&&((a=Fe(t))||$e(t))){for(l=e.length;l--;)if(i=e[l]==t){f=u[l];break}if(!i){var c;r&&(l=r(f,t),c=typeof l!="undefined")&&(f=l),c||(f=a?Fe(f)?f:[]:$e(f)?f:{}),e.push(t),u.push(f),c||Et(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 At(n,t){return n+te(xe()*(t-n+1))}function St(n,t,u){var o=n?n.length:0;if(!o)return[];var i=-1,a=Wt(),l=!t&&a===r,f=l&&Se&&200<=o,l=l&&!f,c=[];if(f)var s=Se(),a=e;else s=u&&!t?[]:c;n:for(;++i<o;){var p=n[i],g=u?u(p,i,n):p;
if(l){for(var h=s.length;h--;)if(s[h]===g)continue n;u&&s.push(g),c.push(p)}else t?i&&s===g||(s=g,c.push(p)):0>a(s,g)&&((u||f)&&s.push(g),c.push(p))}return c}function It(n,t){for(var r=-1,e=t(n),u=e.length,o=Tr(u);++r<u;)o[r]=n[e[r]];return o}function Rt(n,t,r){for(var e=t.length,u=-1,o=de(r.length-e,0),i=-1,a=n.length,l=Tr(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 Nt(n,t){return function(r,e,u){var i=t?t():{};if(e=o.createCallback(e,u,3),Fe(r)){u=-1;
for(var a=r.length;++u<a;){var l=r[u];n(i,l,e(l,u,r),r)}}else vt(r,function(t,r,u){n(i,t,e(t,r,u),u)});return i}}function Tt(n,t,r){return n=n.length,t=+t,n<t&&ve(t)?(t-=n,r=null==r?" ":qr(r),Or(r,Qr(t/r.length)).slice(0,t)):""}function Lt(n,t,r,e,u,o){var i=t&C,a=t&j,l=t&E,f=t&A;if(!a&&!mr(n))throw new Ur;l&&!u.length&&(t&=~E,l=u=false),f&&!o.length&&(t&=~A,f=o=false);var c=!a&&n[I];if(c&&true!==c)return c=Kt(c),c[4]&&(c[4]=Kt(c[4])),c[5]&&(c[5]=Kt(c[5])),typeof r=="number"&&(c[2]=r),n=c[1]&C,i&&!n&&(c[3]=e),!i&&n&&(t|=O),l&&(c[4]?oe.apply(c[4],u):c[4]=u),f&&(c[5]?ce.apply(c[5],o):c[5]=o),c[1]|=t,Lt.apply(null,c);
if(l)var s=[];if(f)var p=[];return null==r&&(r=a?0:n.length),r=de(r,0),c=[n,t,r,e,u,o,s,p],t==C||t==(C|E)?d(c):gt(c)}function Wt(){var n=(n=o.indexOf)===Bt?r:n;return n}function Ft(n){return typeof n=="function"&&Hr.test(re.call(n))}function $t(n){var t,r;return!n||Gr.call(n)!=at||!ue.call(n,"constructor")&&(t=n.constructor,mr(t)&&!(t instanceof t))||!Ae.argsClass&&vr(n)||!Ae.nodeClass&&g(n)?false:Ae.ownLast?(Ct(n,function(n,t,e){return r=ue.call(e,t),false}),false!==r):(Ct(n,function(n,t){r=t}),typeof r=="undefined"||ue.call(n,r))
}function Pt(n){for(var t,r=-1,e=xr(n),u=e.length,o=u&&n.length,i=o-1,a=[],o=typeof o=="number"&&0<o&&(Fe(n)||Ae.nonEnumArgs&&vr(n)||Ae.nonEnumStrings&&wr(n));++r<u;){var l=e[r];(o&&(t=+l,-1<t&&t<=i&&0==t%1)||ue.call(n,l))&&a.push(l)}return a}function zt(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 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 if(i=t,null==i||r)return n?n[0]:x;
return Kt(n,0,0>i?0:i)}function Bt(n,t,e){var u=n?n.length:0;if(typeof e=="number")e=0>e?de(u+e,0):e||0;else if(e)return e=Mt(n,t),u&&n[e]===t?e:-1;return r(n,t,e)}function qt(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||0),Kt(n,0,0>i?0:i)}function Ut(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]:x;
return i=e-(i||0),Kt(n,0>i?0:i)}function Zt(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 Kt(n,i)}function Kt(n,t,r){var e=-1,u=n?n.length:0;for(t=typeof t=="undefined"?0:+t||0,0>t?t=de(u+t,0):t>u&&(t=u),r=typeof r=="undefined"?u:+r||0,0>r?r=de(u+r,0):r>u&&(r=u),u=t>r?0:r-t,r=Tr(u);++e<u;)r[e]=n[t+e];return r}function Mt(n,t,r,e){var u=0,i=n?n.length:u;for(r=r?o.createCallback(r,e,1):Ar,t=r(t);u<i;)e=u+i>>>1,r(n[e])<t?u=e+1:i=e;
return u}function Vt(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)),St(n,t,r)}function Jt(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,r=n?ur(We(n,"length")):0,e=Tr(0>r?0:r);++t<r;)e[t]=We(n,t);return e}function Xt(n,t){var r=-1,e=n?n.length:0,u={};for(t||!e||Fe(n[0])||(t=[]);++r<e;){var o=n[r];t?u[o]=t[r]:o&&(u[o[0]]=o[1])}return u}function Yt(){return this.__wrapped__
}function Gt(n,t,r){var e=n?n.length:0;if(typeof e!="number"||-1>=e||e>Yr)var u=Pe(n),e=u.length;if(r=typeof r=="number"?0>r?de(e+r,0):r||0:0,u){for(;r<e;)if(n[u[r++]]===t)return true;return false}return typeof n=="string"||!Fe(n)&&wr(n)?r<e?pe?pe.call(n,t,r):-1<n.indexOf(t,r):false:-1<Wt()(n,t,r)}function Ht(n,t,r){var e=true;if(t=o.createCallback(t,r,3),Fe(n)){r=-1;for(var u=n.length;++r<u;)if(!t(n[r],r,n))return false}else vt(n,function(n,r,u){return e=!!t(n,r,u)});return e}function Qt(n,t,r){var e=[];if(t=o.createCallback(t,r,3),Fe(n)){r=-1;
for(var u=n.length;++r<u;){var i=n[r];t(i,r,n)&&e.push(i)}}else vt(n,function(n,r,u){t(n,r,u)&&e.push(n)});return e}function nr(n,t,r){return Fe(n)?(t=zt(n,t,r),-1<t?n[t]:x):(t=o.createCallback(t,r,3),mt(n,t,vt))}function tr(n,t,r){if(t&&typeof r=="undefined"&&Fe(n)){r=-1;for(var e=n?n.length:0;++r<e&&false!==t(n[r],r,n););}else n=vt(n,Y(t,r,3));return n}function rr(n,t,r){if(t&&typeof r=="undefined"&&Fe(n))for(r=n?n.length:0;r--&&false!==t(n[r],r,n););else n=yt(n,Y(t,r,3));return n}function er(n,t,r){if(t=o.createCallback(t,r,3),Fe(n))return c(n,t,r);
var e=-1,u=[];return vt(n,function(n,r,o){u[++e]=t(n,r,o)}),u}function ur(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&&Fe(n))for(r=-1,a=n.length;++r<a;){var l=n[r];l>i&&(i=l)}else t=null==t&&wr(n)?u:o.createCallback(t,r,3),vt(n,function(n,r,u){r=t(n,r,u),r>e&&(e=r,i=n)});return i}function or(n,t,r,e){var u=3>arguments.length;if(t=o.createCallback(t,e,4),Fe(n)){var i=-1,a=n.length;for(u&&a&&(r=n[++i]);++i<a;)r=t(r,n[i],i,n)}else vt(n,function(n,e,o){r=u?(u=false,n):t(r,n,e,o)
});return r}function ir(n,t,r,e){var u=3>arguments.length;return t=o.createCallback(t,e,4),yt(n,function(n,e,o){r=u?(u=false,n):t(r,n,e,o)}),r}function ar(n){var t=-1,r=n&&n.length,e=Tr(0>r?0:r>>>0);return vt(n,function(n){var r=At(0,++t);e[t]=e[r],e[r]=n}),e}function lr(n,t,r){var e;if(t=o.createCallback(t,r,3),Fe(n)){r=-1;for(var u=n.length;++r<u;)if(t(n[r],r,n))return true}else vt(n,function(n,r,u){return!(e=t(n,r,u))});return!!e}function fr(n,t){if(3>arguments.length)return Lt(n,C,null,t);if(n)var r=n[I]?n[I][2]:n.length,e=Kt(arguments,2),r=r-e.length;
return Lt(n,C|E,r,t,e)}function cr(n,t,r){var e,u,o,i,a,l,f,c=0,s=false,p=true;if(!mr(n))throw new Ur;if(t=0>t?0:t,true===r)var g=true,p=false;else dr(r)&&(g=r.leading,s="maxWait"in r&&de(t,+r.maxWait||0),p="trailing"in r?r.trailing:p);var h=function(){var r=t-(Ke()-i);0>=r||r>t?(u&&ne(u),r=f,u=l=f=x,r&&(c=Ke(),o=n.apply(a,e),l||u||(e=a=null))):l=le(h,r)},v=function(){l&&ne(l),u=l=f=x,(p||s!==t)&&(c=Ke(),o=n.apply(a,e),l||u||(e=a=null))};return function(){if(e=arguments,i=Ke(),a=this,f=p&&(l||!g),false===s)var r=g&&!l;
else{u||g||(c=i);var y=s-(i-c),m=0>=y||y>s;m?(u&&(u=ne(u)),c=i,o=n.apply(a,e)):u||(u=le(v,y))}return m&&l?l=ne(l):l||t===s||(l=le(h,t)),r&&(m=true,o=n.apply(a,e)),!m||l||u||(e=a=null),o}}function sr(n){if(!mr(n))throw new Ur;return function(){return!n.apply(this,arguments)}}function pr(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=Y(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=Pe(t),f=l.length;++i<f;){var c=l[i];n[c]=a?a(n[c],t[c]):t[c]}}return n}function gr(t){if(!t||2>arguments.length)return t;var r=Kt(arguments);return r.push(n),pr.apply(null,r)}function hr(n){var t=[];return Ct(n,function(n,r){mr(n)&&t.push(r)}),t.sort()}function vr(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Gr.call(n)==nt||false}function yr(n){return n&&typeof n=="object"&&1===n.nodeType&&(Ae.nodeClass?-1<Gr.call(n).indexOf("Element"):g(n))||false}function mr(n){return typeof n=="function"
}function dr(n){var t=typeof n;return n&&("function"==t||"object"==t)||false}function br(n){var t=typeof n;return"number"==t||n&&"object"==t&&Gr.call(n)==it||false}function _r(n){var t=typeof n;return n&&("function"==t||"object"==t)&&Gr.call(n)==lt||false}function wr(n){return typeof n=="string"||n&&typeof n=="object"&&Gr.call(n)==ft||false}function xr(n){if(!dr(n))return[];for(var t,r=n.length,r=(typeof r=="number"&&0<r&&(Fe(n)||Ae.nonEnumStrings&&wr(n)||Ae.nonEnumArgs&&vr(n))&&r)>>>0,e=-1,u=r-1,o=Tr(r),i=0<r,a=Ae.enumErrorProps&&(n===Kr||n instanceof Fr),l=Ae.enumPrototypes&&typeof n=="function";++e<r;)o[e]=qr(e);
for(var f in n)l&&"prototype"==f||a&&("message"==f||"name"==f)||i&&(t=+f,-1<t&&t<=u&&0==t%1)||o.push(f);if(Ae.nonEnumShadows&&n!==Mr){if(t=n.constructor,e=-1,r=Q.length,n===(t&&t.prototype))var c=n===Vr?ft:n===Kr?ut:Gr.call(n),c=Ee[c];for(;++e<r;)f=Q[e],c&&c[f]||!ue.call(n,f)||o.push(f)}return o}function Cr(n,t,r){var e={};if(typeof t!="function")for(var u=-1,i=bt(arguments,true,false,1),a=dr(n)?i.length:0;++u<a;){var l=i[u];l in n&&(e[l]=n[l])}else t=o.createCallback(t,r,3),Ct(n,function(n,r,u){t(n,r,u)&&(e[r]=n)
});return e}function jr(n){return It(n,Pe)}function kr(n){return null==n?"":qr(n).replace(V,"\\$&")}function Or(n,t){var r="";if(t=+t,1>t||null==n||!ve(t))return r;n=qr(n);do t%2&&(r+=n),t=te(t/2),n+=n;while(t);return r}function Er(n,t,r){var e=typeof n;return"function"==e||null==n?(typeof t=="undefined"||!("prototype"in n))&&n||Y(n,t,r):"object"!=e?Nr(n):Sr(n)}function Ar(n){return n}function Sr(n){var t=Pe(n),r=t.length,e=t[0],u=r&&n[e];return 1!=r||u!==u||dr(u)?function(e){var u=r;if(u&&!e)return false;
for(var o=true;u--&&(o=t[u],o=ue.call(e,o)&&Ot(e[o],n[o],null,true)););return o}:function(n){return n&&ue.call(n,e)?(n=n[e],u===n&&(0!==u||1/u==1/n)):false}}function Ir(n,t,r){var e=true,u=t&&hr(t);t&&(r||u.length)||(null==r&&(r=t),t=n,n=o,u=hr(t)),false===r?e=false:dr(r)&&"chain"in r&&(e=r.chain),r=-1;for(var i=mr(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(oe.apply(o,arguments),o=t.apply(n,o),e||r){if(u===o&&dr(o))return this;
o=new n(o),o.__chain__=r}return o}}(f))}}function Rr(){}function Nr(n){return function(t){return null==t?x:t[n]}}t=t?wt.defaults(dt.Object(),t,wt.pick(dt,H)):dt;var Tr=t.Array,Lr=t.Boolean,Wr=t.Date,Fr=t.Error,$r=t.Function,Pr=t.Math,zr=t.Number,Dr=t.Object,Br=t.RegExp,qr=t.String,Ur=t.TypeError,Zr=Tr.prototype,Kr=Fr.prototype,Mr=Dr.prototype,Vr=qr.prototype,Jr=(Jr=t.window)&&Jr.document,Xr=t._,Yr=Pr.pow(2,53)-1,Gr=Mr.toString,Hr=Br("^"+kr(Gr).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Qr=Pr.ceil,ne=t.clearTimeout,te=Pr.floor,re=$r.prototype.toString,ee=Ft(ee=Dr.getPrototypeOf)&&ee,ue=Mr.hasOwnProperty,oe=Zr.push,ie=Mr.propertyIsEnumerable,ae=Ft(ae=t.Set)&&ae,le=t.setTimeout,fe=Zr.splice,ce=Zr.unshift,se=function(){try{var n={},t=Ft(t=Dr.defineProperty)&&t,r=t(n,n,n)&&t
}catch(e){}return r}(),pe=Ft(pe=Vr.contains)&&pe,ge=Ft(ge=Dr.create)&&ge,he=Ft(he=Tr.isArray)&&he,ve=t.isFinite,ye=t.isNaN,me=Ft(me=Dr.keys)&&me,de=Pr.max,be=Pr.min,_e=Ft(_e=Wr.now)&&_e,we=t.parseInt,xe=Pr.random,Ce=Ft(Ce=Vr.trim)&&!Ce.call(G)&&Ce,je=Ft(je=Vr.trimLeft)&&!je.call(G)&&je,ke=Ft(ke=Vr.trimRight)&&!ke.call(G)&&ke,Oe={};Oe[tt]=Tr,Oe[rt]=Lr,Oe[et]=Wr,Oe[ot]=$r,Oe[at]=Dr,Oe[it]=zr,Oe[lt]=Br,Oe[ft]=qr;var Ee={};Ee[tt]=Ee[et]=Ee[it]={constructor:true,toLocaleString:true,toString:true,valueOf:true},Ee[rt]=Ee[ft]={constructor:true,toString:true,valueOf:true},Ee[ut]=Ee[ot]=Ee[lt]={constructor:true,toString:true},Ee[at]={constructor:true},function(){for(var n=Q.length;n--;){var t,r=Q[n];
for(t in Ee)ue.call(Ee,t)&&!ue.call(Ee[t],r)&&(Ee[t][r]=false)}}(),i.prototype=o.prototype;var Ae=o.support={};!function(x_){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(var o in arguments);for(var i in"x");Ae.argsClass=Gr.call(arguments)==nt,Ae.argsObject=arguments.constructor==Dr&&!(arguments instanceof Tr),Ae.enumErrorProps=ie.call(Kr,"message")||ie.call(Kr,"name"),Ae.enumPrototypes=ie.call(n,"prototype"),Ae.funcDecomp=!Ft(t.WinRTError)&&J.test(w),Ae.funcNames=typeof $r.name=="string",Ae.nonEnumStrings="0"!=i,Ae.nonEnumShadows=!/valueOf/.test(e),Ae.ownLast="x"!=e[0],Ae.spliceObjects=(fe.call(r,0,1),!r[0]),Ae.unindexedChars="xx"!="x"[0]+Dr("x")[0];
try{Ae.dom=11===Jr.createDocumentFragment().nodeType}catch(a){Ae.dom=false}try{Ae.nodeClass=!(Gr.call(undefined)==at&&!({toString:0}+""))}catch(l){Ae.nodeClass=true}try{Ae.nonEnumArgs=!("1"==o&&ue.call(arguments,o)&&ie.call(arguments,o))}catch(f){Ae.nonEnumArgs=true}}(0,0),o.templateSettings={escape:P,evaluate:z,interpolate:D,variable:"",imports:{_:o}},ge||(K=function(){function n(){}return function(r){if(dr(r)){n.prototype=r;var e=new n;n.prototype=null}return e||t.Object()}}());var Se=ae&&function(n){var t=new ae,r=n?n.length:0;for(t.push=t.add;r--;)t.push(n[r]);
return t},Ie=se?function(n,t){pt.value=t,se(n,I,pt)}:Rr,Re=Nt(function(n,t,r){ue.call(n,r)?n[r]++:n[r]=1}),Ne=Nt(function(n,t,r){ue.call(n,r)?n[r].push(t):n[r]=[t]}),Te=Nt(function(n,t,r){n[r]=t}),Le=Nt(function(n,t,r){n[r?0:1].push(t)},h),We=er;Ae.argsClass||(vr=function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&ue.call(n,"callee")&&!ie.call(n,"callee")||false});var Fe=he||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Gr.call(n)==tt||false};Ae.dom||(yr=function(n){return n&&typeof n=="object"&&1===n.nodeType&&!$e(n)||false
}),mr(/x/)&&(mr=function(n){return typeof n=="function"&&Gr.call(n)==ot});var $e=ee?function(n){if(!n||Gr.call(n)!=at||!Ae.argsClass&&vr(n))return false;var t=n.valueOf,r=Ft(t)&&(r=ee(t))&&ee(r);return r?n==r||ee(n)==r:$t(n)}:$t,Pe=me?function(n){var t=n?n.length:0;return typeof t=="number"&&0<t?Pt(n):dr(n)?me(n):[]}:Pt,ze=f(function(n,t,r){return!r&&N.test(t)?n+t.toLowerCase():n+(t.charAt(0)[r?"toUpperCase":"toLowerCase"]()+t.slice(1))}),De=f(function(n,t,r){return n+(r?"-":"")+t.toLowerCase()}),Be=f(function(n,t,r){return n+(r?"_":"")+t.toLowerCase()
}),qe=Ce?function(n,t){return null==n?"":null==t?Ce.call(n):v(n,t)}:v,Ue=je?function(n,t){return null==n?"":null==t?je.call(n):y(n,t)}:y,Ze=ke?function(n,t){return null==n?"":null==t?ke.call(n):m(n,t)}:m,Ke=_e||function(){return(new Wr).getTime()},Me=8==we(G+"08")?we:function(n,t){return n=qe(n),we(n,+t||(Z.test(n)?16:10))};return o.after=function(n,t){if(!mr(t))throw new Ur;return n=ve(n=+n)?n:0,function(){return 1>--n?t.apply(this,arguments):void 0}},o.assign=pr,o.at=function(n,t){var r=arguments,e=-1,u=bt(r,true,false,1),o=u.length,i=typeof t;
for("number"!=i&&"string"!=i||!r[2]||r[2][t]!==n||(o=1),Ae.unindexedChars&&wr(n)&&(n=n.split("")),r=Tr(o);++e<o;)r[e]=n[u[e]];return r},o.bind=fr,o.bindAll=function(n){for(var t=1<arguments.length?bt(arguments,true,false,1):hr(n),r=-1,e=t.length;++r<e;){var u=t[r];n[u]=Lt(n[u],C,null,n)}return n},o.bindKey=function(n,t){return 3>arguments.length?Lt(t,C|j,null,n):Lt(t,C|j|E,null,n,Kt(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(!mr(n[r]))throw new Ur;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=Re,o.create=function(n,t){var r=K(n);return t?pr(r,t):r},o.createCallback=Er,o.curry=function(n,t){return typeof t!="number"&&(t=+t||(n?n.length:0)),Lt(n,k,t)},o.debounce=cr,o.defaults=gr,o.defer=function(n){if(!mr(n))throw new Ur;var t=Kt(arguments,1);
return le(function(){n.apply(x,t)},1)},o.delay=function(n,t){if(!mr(n))throw new Ur;var r=Kt(arguments,2);return le(function(){n.apply(x,r)},t)},o.difference=function(){return ht(arguments[0],bt(arguments,true,true,1))},o.drop=Zt,o.dropRight=qt,o.dropRightWhile=qt,o.dropWhile=Zt,o.filter=Qt,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=er(n,r,e)),bt(n,t)},o.forEach=tr,o.forEachRight=rr,o.forIn=function(n,t,r){return t=t&&typeof r=="undefined"?t:Y(t,r,3),_t(n,t,xr)
},o.forInRight=function(n,t,r){return t=Y(t,r,3),xt(n,t,xr)},o.forOwn=function(n,t,r){return t=t&&typeof r=="undefined"?t:Y(t,r,3),jt(n,t)},o.forOwnRight=function(n,t,r){return t=Y(t,r,3),xt(n,t,Pe)},o.functions=hr,o.groupBy=Ne,o.indexBy=Te,o.initial=qt,o.intersection=function(){for(var n=[],t=-1,u=arguments.length,o=[],i=Wt(),a=Se&&i===r;++t<u;){var l=arguments[t];(Fe(l)||vr(l))&&(n.push(l),o.push(a&&120<=l.length&&Se(t&&l)))}var u=n.length,a=n[0],f=-1,c=a?a.length:0,s=[],p=o[0];n:for(;++f<c;)if(l=a[f],0>(p?e(p,l):i(s,l))){for(t=u;--t;){var g=o[t];
if(0>(g?e(g,l):i(n[t],l)))continue n}p&&p.push(l),s.push(l)}return s},o.invert=function(n,t){for(var r=-1,e=Pe(n),u=e.length,o={};++r<u;){var i=e[r],a=n[i];t?ue.call(o,a)?o[a].push(i):o[a]=[i]:o[a]=i}return o},o.invoke=function(n,t){var r=Kt(arguments,2),e=-1,u=typeof t=="function",o=n&&n.length,i=Tr(0>o?0:o>>>0);return vt(n,function(n){var o=u?t:null!=n&&n[t];i[++e]=o?o.apply(n,r):x}),i},o.keys=Pe,o.keysIn=xr,o.map=er,o.mapValues=function(n,t,r){var e={};return t=o.createCallback(t,r,3),jt(n,function(n,r,u){e[r]=t(n,r,u)
}),e},o.matches=Sr,o.max=ur,o.memoize=function(n,t){if(!mr(n))throw new Ur;var r=function(){var e=r.cache,u=t?t.apply(this,arguments):"_"+arguments[0];return ue.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=Y(e[--u-1],e[u--],2);else 2<u&&"function"==typeof e[u-1]&&(i=e[--u]);for(var e=Kt(e,1,u),o=-1,a=[],l=[];++o<u;)Et(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&&Fe(n))for(r=-1,a=n.length;++r<a;){var l=n[r];l<i&&(i=l)}else t=null==t&&wr(n)?u:o.createCallback(t,r,3),vt(n,function(n,r,u){r=t(n,r,u),r<e&&(e=r,i=n)});return i},o.negate=sr,o.omit=function(n,t,r){if(typeof t=="function")return t=o.createCallback(t,r,3),Cr(n,sr(t));for(var e=bt(arguments,true,false,1),u=e.length;u--;)e[u]=qr(e[u]);return Cr(n,ht(xr(n),e))},o.once=function(n){var t,r;if(!mr(n))throw new Ur;
return function(){return t?r:(t=true,r=n.apply(this,arguments),n=null,r)}},o.pairs=function(n){for(var t=-1,r=Pe(n),e=r.length,u=Tr(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=Kt(arguments,1),t=t-r.length;return Lt(n,E,t,null,r)},o.partialRight=function(n){if(n)var t=n[I]?n[I][2]:n.length,r=Kt(arguments,1),t=t-r.length;return Lt(n,A,t,null,null,r)},o.partition=Le,o.pick=Cr,o.pluck=We,o.property=Nr,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&&(fe.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=de(Qr((t-n)/(r||1)),0);for(var u=Tr(t);++e<t;)u[e]=n,n+=r;return u},o.reject=function(n,t,r){return t=o.createCallback(t,r,3),Qt(n,sr(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),fe.call(n,e--,1),u--);return i},o.rest=Zt,o.shuffle=ar,o.slice=Kt,o.sortBy=function(n,t,r){var e=-1,u=n&&n.length,i=t&&Fe(t),f=Tr(0>u?0:u>>>0);for(i||(t=o.createCallback(t,r,3)),vt(n,function(n,r,u){if(i)for(r=t.length,u=Tr(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(!mr(n))throw new Ur;return false===r?e=false:dr(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),st.leading=e,st.maxWait=+t,st.trailing=u,cr(n,t,st)},o.times=function(n,t,r){n=0>n?0:n>>>0,t=Y(t,r,1),r=-1;for(var e=Tr(n);++r<n;)e[r]=t(r);return e},o.toArray=function(n){var t=n&&n.length;return typeof t=="number"&&-1<t&&t<=Yr?Ae.unindexedChars&&wr(n)?n.split(""):Kt(n):jr(n)
},o.transform=function(n,t,r,e){var u=Fe(n);if(null==r)if(u)r=[];else{var i=n&&n.constructor;r=K(i&&i.prototype)}return t&&(t=o.createCallback(t,e,4),(u?vt:jt)(n,function(n,e,u){return t(r,n,e,u)})),r},o.union=function(){return St(bt(arguments,true,true))},o.uniq=Vt,o.values=jr,o.valuesIn=function(n){return It(n,xr)},o.where=Qt,o.without=function(){return ht(arguments[0],Kt(arguments,1))},o.wrap=function(n,t){return Lt(t,E,null,null,[n])},o.xor=function(){for(var n=-1,t=arguments.length;++n<t;){var r=arguments[n];
if(Fe(r)||vr(r))var e=e?ht(e,r).concat(ht(r,e)):r}return e?St(e):[]},o.zip=Jt,o.zipObject=Xt,o.callback=Er,o.collect=er,o.each=tr,o.eachRight=rr,o.extend=pr,o.methods=hr,o.object=Xt,o.select=Qt,o.tail=Zt,o.unique=Vt,o.unzip=Jt,Ir(pr({},o)),o.camelCase=ze,o.capitalize=function(n){return null==n?"":(n=qr(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"&&Y(r,e,1),b(n,t,r)
},o.cloneDeep=function(n,t,r){return t=typeof t=="function"&&Y(t,r,1),b(n,true,t)},o.contains=Gt,o.endsWith=function(n,t,r){n=null==n?"":qr(n),t=qr(t);var e=n.length;return r=(typeof r=="undefined"?e:be(0>r?0:+r||0,e))-t.length,0<=r&&n.indexOf(t,r)==r},o.escape=function(n){return null==n?"":qr(n).replace($,s)},o.escapeRegExp=kr,o.every=Ht,o.find=nr,o.findIndex=zt,o.findKey=function(n,t,r){return t=o.createCallback(t,r,3),mt(n,t,jt,true)},o.findLast=function(n,t,r){return t=o.createCallback(t,r,3),mt(n,t,yt)
},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),mt(n,t,kt,true)},o.has=function(n,t){return n?ue.call(n,t):false},o.identity=Ar,o.indexOf=Bt,o.isArguments=vr,o.isArray=Fe,o.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&Gr.call(n)==rt||false},o.isDate=function(n){return n&&typeof n=="object"&&Gr.call(n)==et||false},o.isElement=yr,o.isEmpty=function(n){var t=true;
if(!n)return t;var r=Gr.call(n),e=n.length;return-1<e&&e<=Yr&&(r==tt||r==ft||(Ae.argsClass?r==nt:vr(n))||r==at&&mr(n.splice))?!e:(jt(n,function(){return t=false}),t)},o.isEqual=function(n,t,r,e){if(r=typeof r=="function"&&Y(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 Ot(n,t,r)},o.isFinite=function(n){return ve(n)&&!ye(parseFloat(n))},o.isFunction=mr,o.isNaN=function(n){return br(n)&&n!=+n
},o.isNull=function(n){return null===n},o.isNumber=br,o.isObject=dr,o.isPlainObject=$e,o.isRegExp=_r,o.isString=wr,o.isUndefined=function(n){return typeof n=="undefined"},o.kebabCase=De,o.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(e=(0>r?de(e+r,0):be(r||0,e-1))+1);e--;)if(n[e]===t)return e;return-1},o.mixin=Ir,o.noConflict=function(){return t._=Xr,this},o.noop=Rr,o.now=Ke,o.pad=function(n,t,r){n=null==n?"":qr(n),t=+t;var e=n.length;return e<t&&ve(t)?(e=(t-e)/2,t=te(e),e=Qr(e),r=Tt("",e,r),r.slice(0,t)+n+r):n
},o.padLeft=function(n,t,r){return n=null==n?"":qr(n),Tt(n,t,r)+n},o.padRight=function(n,t,r){return n=null==n?"":qr(n),n+Tt(n,t,r)},o.parseInt=Me,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=xe(),be(n+r*(t-n+parseFloat("1e-"+((r+"").length-1))),t)):At(n,t)},o.reduce=or,o.reduceRight=ir,o.repeat=Or,o.result=function(n,t,r){var e=null==n?x:n[t];return typeof e=="undefined"?r:mr(e)?n[t]():e
},o.runInContext=w,o.size=function(n){var t=n?n.length:0;return typeof t=="number"&&-1<t&&t<=Yr?t:Pe(n).length},o.some=lr,o.sortedIndex=Mt,o.snakeCase=Be,o.startsWith=function(n,t,r){return n=null==n?"":qr(n),r=typeof r=="undefined"?0:be(0>r?0:+r||0,n.length),n.lastIndexOf(t,r)==r},o.template=function(n,t,r){var e=o.templateSettings;r=gr({},r,e),n=qr(null==n?"":n);var u,i,a=gr({},r.imports,e.imports),e=Pe(a),a=jr(a),l=0,f=r.interpolate||M,c="__p+='",f=Br((r.escape||M).source+"|"+f.source+"|"+(f===D?B:M).source+"|"+(r.evaluate||M).source+"|$","g");
n.replace(f,function(t,r,e,o,a,f){return e||(e=o),c+=n.slice(l,f).replace(X,p),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(T,""):c).replace(L,"$1").replace(W,"$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 s=$r(e,"return "+c).apply(x,a)
}catch(g){throw g.source=c,g}return t?s(t):(s.source=c,s)},o.trim=qe,o.trimLeft=Ue,o.trimRight=Ze,o.truncate=function(n,t){var r=30,e="...";if(t&&dr(t))var u="separator"in t?t.separator:u,r="length"in t?+t.length||0:r,e="omission"in t?qr(t.omission):e;else null!=t&&(r=+t||0);if(n=null==n?"":qr(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(_r(u)){if(n.slice(o).search(u)){var i,a,l=n.slice(0,o);for(u.global||(u=Br(u.source,(q.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=qr(n),0>n.indexOf(";")?n:n.replace(F,_))},o.uniqueId=function(n){var t=++R;return qr(null==n?"":n)+t},o.all=Ht,o.any=lr,o.detect=nr,o.findWhere=nr,o.foldl=or,o.foldr=ir,o.include=Gt,o.inject=or,Ir(function(){var n={};return jt(o,function(t,r){o.prototype[r]||(n[r]=t)}),n}(),false),o.first=Dt,o.last=Ut,o.sample=function(n,t,r){return n&&typeof n.length!="number"?n=jr(n):Ae.unindexedChars&&wr(n)&&(n=n.split("")),null==t||r?(t=n?n.length:0,0<t?n[At(0,t-1)]:x):(n=ar(n),n.length=be(0>t?0:+t||0,n.length),n)
},o.take=Dt,o.takeRight=Ut,o.takeRightWhile=Ut,o.takeWhile=Dt,o.head=Dt,jt(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=S,o.prototype.chain=function(){return this.__chain__=true,this},o.prototype.toJSON=Yt,o.prototype.toString=function(){return qr(this.__wrapped__)},o.prototype.value=Yt,o.prototype.valueOf=Yt,vt(["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 i(r,n):r}}),vt(["push","reverse","sort","unshift"],function(n){var t=Zr[n];o.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),vt(["concat","splice"],function(n){var t=Zr[n];o.prototype[n]=function(){return new i(t.apply(this.__wrapped__,arguments),this.__chain__)}}),Ae.spliceObjects||vt(["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 i(u,n):u}}),o}var x,C=1,j=2,k=4,O=8,E=16,A=32,S="2.4.1",I="__lodash@"+S+"__",R=0,N=/^[A-Z]+$/,T=/\b__p\+='';/g,L=/\b(__p\+=)''\+/g,W=/(__e\(.*?\)|\b__t\))\+'';/g,F=/&(?:amp|lt|gt|quot|#39);/g,$=/[&<>"']/g,P=/<%-([\s\S]+?)%>/g,z=/<%([\s\S]+?)%>/g,D=/<%=([\s\S]+?)%>/g,B=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,q=/\w*$/,U=/^\s*function[ \n\r\t]+\w/,Z=/^0[xX]/,K=/[\xC0-\xFF]/g,M=/($^)/,V=/[.*+?^${}()|[\]\\]/g,J=/\bthis\b/,X=/['\n\r\u2028\u2029\\]/g,Y=/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[a-z]+|[0-9]+/g,G=" \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",H="Array Boolean Date Error Function Math Number Object RegExp Set String _ clearTimeout document isFinite isNaN parseInt setTimeout TypeError window WinRTError".split(" "),Q="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),nt="[object Arguments]",tt="[object Array]",rt="[object Boolean]",et="[object Date]",ut="[object Error]",ot="[object Function]",it="[object Number]",at="[object Object]",lt="[object RegExp]",ft="[object String]",ct={};
ct[ot]=false,ct[nt]=ct[tt]=ct[rt]=ct[et]=ct[it]=ct[at]=ct[lt]=ct[ft]=true;var st={leading:false,maxWait:0,trailing:false},pt={configurable:false,enumerable:false,value:null,writable:false},gt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ht={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},vt={\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":" "},yt={"function":true,object:true},mt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=yt[typeof window]&&window||this,bt=yt[typeof exports]&&exports&&!exports.nodeType&&exports,yt=yt[typeof module]&&module&&!module.nodeType&&module,_t=bt&&yt&&typeof global=="object"&&global;
!_t||_t.global!==_t&&_t.window!==_t&&_t.self!==_t||(dt=_t);var _t=yt&&yt.exports===bt&&bt,wt=w();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(dt._=wt, define(function(){return wt})):bt&&yt?_t?(yt.exports=wt)._=wt:bt._=wt:dt._=wt}).call(this);

233
dist/lodash.js vendored
View File

@@ -444,6 +444,16 @@
return '\\' + stringEscapes[chr];
}
/**
* Used by `_.partition` to create partitioned arrays.
*
* @private
* @returns {Array} Returns the new array.
*/
function partitionInitializer() {
return [[], []];
}
/**
* A fallback implementation of `String#trim` to remove leading and trailing
* whitespace or specified characters from `string`.
@@ -883,6 +893,66 @@
/*--------------------------------------------------------------------------*/
/**
* A specialized version of `_.forEach` for arrays without support for
* callback shorthands or `this` binding.
*
* @private
* @param {Array} array The array to iterate over.
* @param {Function} callback The function called per iteration.
* @returns {Array} Returns `array`.
*/
function arrayEach(array, callback) {
var index = -1,
length = array ? array.length : 0;
while (++index < length) {
if (callback(array[index], index, array) === false) {
break;
}
}
return array;
}
/**
* A specialized version of `_.forEachRight` for arrays without support for
* callback shorthands or `this` binding.
*
* @private
* @param {Array} array The array to iterate over.
* @param {Function} callback The function called per iteration.
* @returns {Array} Returns `array`.
*/
function arrayEachRight(array, callback) {
var length = array ? array.length : 0;
while (length--) {
if (callback(array[length], length, array) === false) {
break;
}
}
return array;
}
/**
* A specialized version of `_.map` for arrays without support for callback
* shorthands or `this` binding.
*
* @private
* @param {Array} array The array to iterate over.
* @param {Function} callback The function called per iteration.
* @returns {Array} Returns the new mapped array.
*/
function arrayMap(array, callback) {
var index = -1,
length = array ? array.length >>> 0 : 0,
result = Array(length);
while (++index < length) {
result[index] = callback(array[index], index, array);
}
return result;
}
/**
* The base implementation of `_.bind` that creates the bound function and
* sets its metadata.
@@ -1811,20 +1881,20 @@
}
/**
* Creates a function that aggregates a collection, creating an object or
* array composed from the results of running each element in the collection
* Creates a function that aggregates a collection, creating an accumulator
* object composed from the results of running each element in the collection
* through a callback. The given setter function sets the keys and values of
* the composed object or array.
* the accumulator object. If `initializer` is provided will be used to
* initialize the accumulator object.
*
* @private
* @param {Function} setter The setter function.
* @param {boolean} [retArray=false] A flag to indicate that the aggregator
* function should return an array.
* @param {Function} setter The function to set keys and values of the accumulator object.
* @param {Function} [initializer] The function to initialize the accumulator object.
* @returns {Function} Returns the new aggregator function.
*/
function createAggregator(setter, retArray) {
function createAggregator(setter, initializer) {
return function(collection, callback, thisArg) {
var result = retArray ? [[], []] : {};
var result = initializer ? initializer() : {};
callback = lodash.createCallback(callback, thisArg, 3);
var index = -1,
@@ -2685,6 +2755,8 @@
* Removes all provided values from `array` using strict equality for
* comparisons, i.e. `===`.
*
* Note: Unlike `_.without`, this method mutates `array`.
*
* @static
* @memberOf _
* @category Arrays
@@ -2718,7 +2790,7 @@
}
/**
* Removes all elements from an array that the predicate returns truthy for
* Removes all elements from `array` that the predicate returns truthy for
* and returns an array of removed elements. The predicate is bound to `thisArg`
* and invoked with three arguments; (value, index, array).
*
@@ -2729,6 +2801,8 @@
* will return `true` for elements that have the properties of the given object,
* else `false`.
*
* Note: Unlike `_.filter`, this method mutates `array`.
*
* @static
* @memberOf _
* @category Arrays
@@ -3360,7 +3434,7 @@
*
* @name valueOf
* @memberOf _
* @alias value, toJSON
* @alias toJSON, value
* @category Chaining
* @returns {*} Returns the wrapped value.
* @example
@@ -3441,31 +3515,34 @@
*/
function contains(collection, target, fromIndex) {
var length = collection ? collection.length : 0;
fromIndex = (typeof fromIndex == 'number' && fromIndex) || 0;
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
if (typeof collection == 'string' || !isArray(collection) && isString(collection)) {
if (fromIndex >= length) {
return false;
}
return nativeContains
? nativeContains.call(collection, target, fromIndex)
: collection.indexOf(target, fromIndex) > -1;
}
var indexOf = getIndexOf();
fromIndex = fromIndex < 0 ? nativeMax(length + fromIndex, 0) : fromIndex;
return indexOf(collection, target, fromIndex) > -1;
if (!(typeof length == 'number' && length > -1 && length <= maxSafeInteger)) {
var props = keys(collection);
length = props.length;
}
var index = -1,
result = false;
baseEach(collection, function(value) {
if (++index >= fromIndex) {
return !(result = value === target);
if (typeof fromIndex == 'number') {
fromIndex = fromIndex < 0 ? nativeMax(length + fromIndex, 0) : (fromIndex || 0);
} else {
fromIndex = 0;
}
if (props) {
while (fromIndex < length) {
var value = collection[props[fromIndex++]];
if (value === target) {
return true;
}
}
});
return result;
return false;
}
if (typeof collection == 'string' || !isArray(collection) && isString(collection)) {
if (fromIndex >= length) {
return false;
}
return nativeContains
? nativeContains.call(collection, target, fromIndex)
: collection.indexOf(target, fromIndex) > -1;
}
var indexOf = getIndexOf();
return indexOf(collection, target, fromIndex) > -1;
}
/**
@@ -3549,8 +3626,8 @@
*/
function every(collection, predicate, thisArg) {
var result = true;
predicate = lodash.createCallback(predicate, thisArg, 3);
var index = -1,
length = collection ? collection.length : 0;
@@ -3610,8 +3687,8 @@
*/
function filter(collection, predicate, thisArg) {
var result = [];
predicate = lodash.createCallback(predicate, thisArg, 3);
var index = -1,
length = collection ? collection.length : 0;
@@ -3738,20 +3815,12 @@
* // => logs each number and returns the object (property order is not guaranteed across environments)
*/
function forEach(collection, callback, thisArg) {
var index = -1,
length = collection ? collection.length : 0;
var length = collection ? collection.length : 0;
callback = callback && typeof thisArg == 'undefined' ? callback : baseCreateCallback(callback, thisArg, 3);
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
while (++index < length) {
if (callback(collection[index], index, collection) === false) {
break;
}
}
} else {
baseEach(collection, callback);
}
return collection;
return (typeof length == 'number' && length > -1 && length <= maxSafeInteger)
? arrayEach(collection, callback)
: baseEach(collection, callback);
}
/**
@@ -3773,18 +3842,11 @@
*/
function forEachRight(collection, callback, thisArg) {
var length = collection ? collection.length : 0;
callback = callback && typeof thisArg == 'undefined' ? callback : baseCreateCallback(callback, thisArg, 3);
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
while (length--) {
if (callback(collection[length], length, collection) === false) {
break;
}
}
} else {
baseEachRight(collection, callback);
}
return collection;
return (typeof length == 'number' && length > -1 && length <= maxSafeInteger)
? arrayEachRight(collection, callback)
: baseEachRight(collection, callback);
}
/**
@@ -3949,21 +4011,18 @@
* // => ['barney', 'fred']
*/
function map(collection, callback, thisArg) {
var index = -1,
length = collection ? collection.length : 0;
var length = collection ? collection.length : 0;
callback = lodash.createCallback(callback, thisArg, 3);
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
var result = Array(length);
while (++index < length) {
result[index] = callback(collection[index], index, collection);
}
} else {
result = [];
baseEach(collection, function(value, key, collection) {
result[++index] = callback(value, key, collection);
});
return arrayMap(collection, callback);
}
var index = -1,
result = [];
baseEach(collection, function(value, key, collection) {
result[++index] = callback(value, key, collection);
});
return result;
}
@@ -4163,7 +4222,7 @@
*/
var partition = createAggregator(function(result, value, key) {
result[key ? 0 : 1].push(value);
}, true);
}, partitionInitializer);
/**
* Retrieves the value of a specified property from all elements in the collection.
@@ -4262,8 +4321,8 @@
*/
function reduceRight(collection, callback, accumulator, thisArg) {
var noaccum = arguments.length < 3;
callback = lodash.createCallback(callback, thisArg, 4);
baseEachRight(collection, function(value, index, collection) {
accumulator = noaccum
? (noaccum = false, value)
@@ -4371,7 +4430,6 @@
result[index] = result[rand];
result[rand] = value;
});
return result;
}
@@ -4446,8 +4504,8 @@
*/
function some(collection, predicate, thisArg) {
var result;
predicate = lodash.createCallback(predicate, thisArg, 3);
var index = -1,
length = collection ? collection.length : 0;
@@ -5985,6 +6043,11 @@
* by the method instead. The callback is bound to `thisArg` and invoked
* with two arguments; (value, other).
*
* Note: This method supports comparing arrays, booleans, `Date` objects,
* numbers, `Object` objects, regexes, and strings. Functions and DOM nodes
* are **not** supported. A callback may be used to extend support for
* comparing other values.
*
* @static
* @memberOf _
* @category Objects
@@ -6403,8 +6466,8 @@
*/
function mapValues(object, callback, thisArg) {
var result = {};
callback = lodash.createCallback(callback, thisArg, 3);
baseForOwn(object, function(value, key, object) {
result[key] = callback(value, key, object);
});
@@ -6540,7 +6603,7 @@
* @memberOf _
* @category Objects
* @param {Object} object The object to inspect.
* @returns {Array} Returns new array of key-value pairs.
* @returns {Array} Returns the new array of key-value pairs.
* @example
*
* _.pairs({ 'barney': 36, 'fred': 40 });
@@ -7525,17 +7588,16 @@
* // => { 'name': 'barney', 'age': 36 }
*/
function matches(source) {
source || (source = {});
var props = keys(source),
propsLength = props.length,
key = props[0],
value = source[key];
value = propsLength && source[key];
// fast path the common case of providing an object with a single
// property containing a primitive value
if (propsLength == 1 && value === value && !isObject(value)) {
return function(object) {
if (!hasOwnProperty.call(object, key)) {
if (!(object && hasOwnProperty.call(object, key))) {
return false;
}
// treat `-0` vs. `+0` as not equal
@@ -7544,9 +7606,11 @@
};
}
return function(object) {
var length = propsLength,
result = true;
var length = propsLength;
if (length && !object) {
return false;
}
var result = true;
while (length--) {
var key = props[length];
if (!(result = hasOwnProperty.call(object, key) &&
@@ -7925,10 +7989,11 @@
*/
function times(n, callback, thisArg) {
n = n < 0 ? 0 : n >>> 0;
callback = baseCreateCallback(callback, thisArg, 1);
var index = -1,
result = Array(n);
callback = baseCreateCallback(callback, thisArg, 1);
while (++index < n) {
result[index] = callback(index);
}

118
dist/lodash.min.js vendored
View File

@@ -4,62 +4,62 @@
* Build: `lodash modern -o ./dist/lodash.js`
*/
;(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 e(n,t,e){e=(e||0)-1;for(var r=n?n.length:0;++e<r;)if(n[e]===t)return e;return-1}function r(n,t){return n.has(t)?0:-1}function u(n){return n.charCodeAt(0)}function o(n,t){for(var e=-1,r=n.length;++e<r&&0<=t.indexOf(n.charAt(e)););return e}function i(n,t){for(var e=n.length;e--&&0<=t.indexOf(n.charAt(e)););return e}function a(n,e){return t(n.a,e.a)||n.b-e.b
}function l(n,e){for(var r=-1,u=n.a,o=e.a,i=u.length;++r<i;){var a=t(u[r],o[r]);if(a)return a}return n.b-e.b}function f(n){return function(t){for(var e=-1,r=(t=null!=t&&(t+"").replace(Z,c).match(J))?t.length:0,u="";++e<r;)u=n(u,t[e],e,t);return u}}function c(n){return pt[n]}function p(n){return ft[n]}function s(n){return"\\"+ht[n]}function h(n,t){return(n=null==n?"":n+"")?null==t?n.slice(y(n),m(n)+1):(t+="",n.slice(o(n,t),i(n,t)+1)):n}function g(n,t){return(n=null==n?"":n+"")?null==t?n.slice(y(n)):(t+="",n.slice(o(n,t))):n
}function v(n,t){return(n=null==n?"":n+"")?null==t?n.slice(0,m(n)+1):(t+="",n.slice(0,i(n,t)+1)):n}function y(n){for(var t=-1,e=n.length;++t<e;){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 m(n){for(var t=n.length;t--;){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){return ct[n]}function b(t){function o(n){return n&&typeof n=="object"&&!Er(n)&&Ge.call(n,"__wrapped__")?n:new i(n)}function i(n,t){this.__chain__=!!t,this.__wrapped__=n}function c(n){function t(){if(u){for(var n=-1,i=arguments.length,a=Ee(i);++n<i;)a[n]=arguments[n];a=Ot(u,o,a)}return this instanceof t?(n=m(e.prototype),a=e.apply(n,a||arguments),he(a)?a:n):e.apply(r,a||arguments)}var e=n[0],r=n[3],u=n[4],o=n[6];return xr(t,n),t}function y(n,t,e,r,u){if(e){var o=e(n);if(typeof o!="undefined")return o
}if(!he(n))return n;var i=Pe.call(n);if(!it[i])return n;var a=br[i];switch(i){case Q:case nt:return new a(+n);case et:case ot:return new a(n);case ut:return o=a(n.source,B.exec(n)),o.lastIndex=n.lastIndex,o}if(i=Er(n),t){r||(r=[]),u||(u=[]);for(var l=r.length;l--;)if(r[l]==n)return u[l];o=i?a(n.length):{}}else o=i?Bt(n):ae({},n);return i&&(Ge.call(n,"index")&&(o.index=n.index),Ge.call(n,"input")&&(o.input=n.input)),t?(r.push(n),u.push(o),(i?ct:bt)(n,function(n,i){o[i]=y(n,t,e,r,u)}),o):o}function m(n){return he(n)?ir(n):{}
}function Z(n,t,e){if(typeof n!="function")return ke;if(typeof t=="undefined"||!("prototype"in n))return n;var r=n[E];if(typeof r=="undefined"&&(_r.funcNames&&(r=!n.name),r=r||!_r.funcDecomp,!r)){var u=Xe.call(n);_r.funcNames||(r=!q.test(u)),r||(r=M.test(u),xr(n,r))}if(false===r||true!==r&&r[1]&w)return n;switch(e){case 1:return function(e){return n.call(t,e)};case 2:return function(e,r){return n.call(t,e,r)};case 3:return function(e,r,u){return n.call(t,e,r,u)};case 4:return function(e,r,u,o){return n.call(t,e,r,u,o)
}}return ue(n,t)}function J(n){function t(){for(var n=-1,v=arguments.length,y=Ee(v);++n<v;)y[n]=arguments[n];if(i&&(y=Ot(i,l,y)),a){for(var n=a,d=f,b=-1,_=d.length,k=-1,j=pr(y.length-_,0),A=-1,E=n.length,I=Ee(j+E);++k<j;)I[k]=y[k];for(j=k;++A<E;)I[j+A]=n[A];for(;++b<_;)I[j+d[b]]=y[k++];y=I}return s&&(n=[],v-=n.length,v<u)?(r|=C,r&=~O,h||(r&=~(w|x)),v=pr(u-v,0),J([e,r,v,o,y,null,n])):(v=c?o:this,p&&(e=v[g]),this instanceof t?(v=m(e.prototype),n=e.apply(v,y),he(n)?n:v):e.apply(v,y))}var e=n[0],r=n[1],u=n[2],o=n[3],i=n[4],a=n[5],l=n[6],f=n[7],c=r&w,p=r&x,s=r&k,h=r&j,g=e;
return xr(t,n),t}function ft(n,t){var u=n?n.length:0;if(!u)return[];var o=-1,i=Rt(),a=i===e,l=a&&wr&&t&&200<=t.length,a=a&&!l,f=[],c=t?t.length:0;l&&(i=r,t=wr(t));n:for(;++o<u;)if(l=n[o],a){for(var p=c;p--;)if(t[p]===l)continue n;f.push(l)}else 0>i(t,l)&&f.push(l);return f}function ct(n,t){var e=-1,r=n?n.length:0;if(typeof r=="number"&&-1<r&&r<=Ze)for(;++e<r&&false!==t(n[e],e,n););else bt(n,t);return n}function pt(n,t){var e=n?n.length:0;if(typeof e=="number"&&-1<e&&e<=Ze)for(;e--&&false!==t(n[e],e,n););else _t(n,t);
return n}function st(n,t,e,r){var u;return e(n,function(n,e,o){return t(n,e,o)?(u=r?e:n,false):void 0}),u}function ht(n,t,e,r){r=(r||0)-1;for(var u=n?n.length:0,o=[];++r<u;){var i=n[r];if(i&&typeof i=="object"&&typeof i.length=="number"&&(Er(i)||ce(i))){t||(i=ht(i,t,e));var a=-1,l=i.length,f=o.length;for(o.length+=l;++a<l;)o[f++]=i[a]}else e||o.push(i)}return o}function vt(n,t,e){var r=-1;e=e(n);for(var u=e.length;++r<u;){var o=e[r];if(false===t(n[o],o,n))break}return n}function yt(n,t,e){e=e(n);for(var r=e.length;r--;){var u=e[r];
if(false===t(n[u],u,n))break}return n}function dt(n,t){return vt(n,t,me)}function bt(n,t){return vt(n,t,Rr)}function _t(n,t){return yt(n,t,Rr)}function wt(n,t,e,r,u,o){if(e){var i=e(n,t);if(typeof i!="undefined")return!!i}if(n===t)return 0!==n||1/n==1/t;var a=typeof n,l=typeof t;if(n===n&&(null==n||null==t||"function"!=a&&"object"!=a&&"function"!=l&&"object"!=l))return false;var f=Pe.call(n),a=Pe.call(t),c=f==G,l=a==G;if(c&&(f=rt),l&&(a=rt),f!=a)return false;switch(f){case Q:case nt:return+n==+t;case et:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;
case ut:case ot:return n==$e(t)}if(a=f==H,!a){var p=Ge.call(n,"__wrapped__"),s=Ge.call(t,"__wrapped__");if(p||s)return wt(p?n.__wrapped__:n,s?t.__wrapped__:t,e,r,u,o);if(f!=rt)return false;if(f=!c&&Ge.call(n,"constructor"),p=!l&&Ge.call(t,"constructor"),f!=p||!f&&(c=c?We:n.constructor,l=l?We:t.constructor,c!=l&&!(se(c)&&c instanceof c&&se(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 h=0,i=true;if(u.push(n),o.push(t),a){if(l=n.length,h=t.length,(i=h==l)||r)for(;h--;)if(a=l,c=t[h],r)for(;a--&&!(i=wt(n[a],c,e,r,u,o)););else if(!(i=wt(n[h],c,e,r,u,o)))break
}else dt(t,function(t,a,l){return Ge.call(l,a)?(h++,i=Ge.call(n,a)&&wt(n[a],t,e,r,u,o)):void 0}),i&&!r&&dt(n,function(n,t,e){return Ge.call(e,t)?i=-1<--h:void 0});return u.pop(),o.pop(),i}function xt(n,t,e,r,u){(Er(t)?ct:bt)(t,function(t,o){var i,a,l=t,f=n[o];if(t&&((a=Er(t))||Ir(t))){for(l=r.length;l--;)if(i=r[l]==t){f=u[l];break}if(!i){var c;e&&(l=e(f,t),c=typeof l!="undefined")&&(f=l),c||(f=a?Er(f)?f:[]:Ir(f)?f:{}),r.push(t),u.push(f),c||xt(f,t,e,r,u)}}else e&&(l=e(f,t),typeof l=="undefined"&&(l=t)),typeof l!="undefined"&&(f=l);
n[o]=f})}function kt(n,t){return n+Je(vr()*(t-n+1))}function jt(n,t,u){var o=n?n.length:0;if(!o)return[];var i=-1,a=Rt(),l=!t&&a===e,f=l&&wr&&200<=o,l=l&&!f,c=[];if(f)var p=wr(),a=r;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 Ct(n,t){for(var e=-1,r=t(n),u=r.length,o=Ee(u);++e<u;)o[e]=n[r[e]];return o}function Ot(n,t,e){for(var r=t.length,u=-1,o=pr(e.length-r,0),i=-1,a=n.length,l=Ee(o+a);++i<a;)l[i]=n[i];
for(;++u<r;)l[t[u]]=e[u];for(;o--;)l[i++]=e[u++];return l}function At(n,t){return function(e,r,u){var i=t?[[],[]]:{};r=o.createCallback(r,u,3),u=-1;var a=e?e.length:0;if(typeof a=="number"&&-1<a&&a<=Ze)for(;++u<a;){var l=e[u];n(i,l,r(l,u,e),e)}else ct(e,function(t,e,u){n(i,t,r(t,e,u),u)});return i}}function Et(n,t,e){return n=n.length,t=+t,n<t&&lr(t)?(t-=n,e=null==e?" ":$e(e),we(e,Me(t/e.length)).slice(0,t)):""}function It(n,t,e,r,u,o){var i=t&w,a=t&x,l=t&C,f=t&O;if(!a&&!se(n))throw new Le;l&&!u.length&&(t&=~C,l=u=false),f&&!o.length&&(t&=~O,f=o=false);
var p=!a&&n[E];if(p&&true!==p)return p=Bt(p),p[4]&&(p[4]=Bt(p[4])),p[5]&&(p[5]=Bt(p[5])),typeof e=="number"&&(p[2]=e),n=p[1]&w,i&&!n&&(p[3]=r),!i&&n&&(t|=j),l&&(p[4]?He.apply(p[4],u):p[4]=u),f&&(p[5]?rr.apply(p[5],o):p[5]=o),p[1]|=t,It.apply(null,p);if(l)var s=[];if(f)var h=[];return null==e&&(e=a?0:n.length),e=pr(e,0),p=[n,t,e,r,u,o,s,h],t==w||t==(w|C)?c(p):J(p)}function Rt(){var n=(n=o.indexOf)===$t?e:n;return n}function Nt(n){return typeof n=="function"&&Ke.test(Xe.call(n))}function St(n){var t,e;
return n&&Pe.call(n)==rt&&(Ge.call(n,"constructor")||(t=n.constructor,!se(t)||t instanceof t))?(dt(n,function(n,t){e=t}),typeof e=="undefined"||Ge.call(n,e)):false}function Tt(n){for(var t,e=-1,r=me(n),u=r.length,o=u&&n.length,i=o-1,a=[],o=typeof o=="number"&&0<o&&(Er(n)||_r.nonEnumArgs&&ce(n));++e<u;){var l=r[e];(o&&(t=+l,-1<t&&t<=i&&0==t%1)||Ge.call(n,l))&&a.push(l)}return a}function Wt(n,t,e){var r=-1,u=n?n.length:0;for(t=o.createCallback(t,e,3);++r<u;)if(t(n[r],r,n))return r;return-1}function Ft(n,t,e){if(typeof t!="number"&&null!=t){var r=-1,u=n?n.length:0,i=0;
for(t=o.createCallback(t,e,3);++r<u&&t(n[r],r,n);)i++}else if(i=t,null==i||e)return n?n[0]:_;return Bt(n,0,0>i?0:i)}function $t(n,t,r){var u=n?n.length:0;if(typeof r=="number")r=0>r?pr(u+r,0):r||0;else if(r)return r=qt(n,t),u&&n[r]===t?r:-1;return e(n,t,r)}function Lt(n,t,e){var r=n?n.length:0;if(typeof t!="number"&&null!=t){var u=r,i=0;for(t=o.createCallback(t,e,3);u--&&t(n[u],u,n);)i++}else i=null==t||e?1:t;return i=r-(i||0),Bt(n,0,0>i?0:i)}function zt(n,t,e){var r=n?n.length:0;if(typeof t!="number"&&null!=t){var u=r,i=0;
for(t=o.createCallback(t,e,3);u--&&t(n[u],u,n);)i++}else if(i=t,null==i||e)return n?n[r-1]:_;return i=r-(i||0),Bt(n,0>i?0:i)}function Dt(n,t,e){if(typeof t!="number"&&null!=t){var r=-1,u=n?n.length:0,i=0;for(t=o.createCallback(t,e,3);++r<u&&t(n[r],r,n);)i++}else i=null==t||e?1:0>t?0:t;return Bt(n,i)}function Bt(n,t,e){var r=-1,u=n?n.length:0;for(t=typeof t=="undefined"?0:+t||0,0>t?t=pr(u+t,0):t>u&&(t=u),e=typeof e=="undefined"?u:+e||0,0>e?e=pr(u+e,0):e>u&&(e=u),u=t>e?0:e-t,e=Ee(u);++r<u;)e[r]=n[t+r];
return e}function qt(n,t,e,r){var u=0,i=n?n.length:u;for(e=e?o.createCallback(e,r,1):ke,t=e(t);u<i;)r=u+i>>>1,e(n[r])<t?u=r+1:i=r;return u}function Ut(n,t,e,r){if(!n||!n.length)return[];var u=typeof t;return"boolean"!=u&&null!=t&&(r=e,e=t,t=false,"number"!=u&&"string"!=u||!r||r[e]!==n||(e=null)),null!=e&&(e=o.createCallback(e,r,3)),jt(n,t,e)}function Zt(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,e=n?Qt(Ar(n,"length")):0,r=Ee(0>e?0:e);++t<e;)r[t]=Ar(n,t);return r}function Pt(n,t){var e=-1,r=n?n.length:0,u={};
for(t||!r||Er(n[0])||(t=[]);++e<r;){var o=n[e];t?u[o]=t[e]:o&&(u[o[0]]=o[1])}return u}function Kt(){return this.__wrapped__}function Mt(n,t,e){var r=n?n.length:0;if(e=typeof e=="number"&&e||0,typeof r=="number"&&-1<r&&r<=Ze){if(typeof n=="string"||!Er(n)&&ye(n))return e<r?or?or.call(n,t,e):-1<n.indexOf(t,e):false;var u=Rt();return e=0>e?pr(r+e,0):e,-1<u(n,t,e)}var o=-1,i=false;return ct(n,function(n){return++o<e?void 0:!(i=n===t)}),i}function Vt(n,t,e){var r=true;t=o.createCallback(t,e,3),e=-1;var u=n?n.length:0;
if(typeof u=="number"&&-1<u&&u<=Ze){for(;++e<u;)if(!t(n[e],e,n))return false}else ct(n,function(n,e,u){return r=!!t(n,e,u)});return r}function Jt(n,t,e){var r=[];t=o.createCallback(t,e,3),e=-1;var u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=Ze)for(;++e<u;){var i=n[e];t(i,e,n)&&r.push(i)}else ct(n,function(n,e,u){t(n,e,u)&&r.push(n)});return r}function Xt(n,t,e){var r=n?n.length:0;return typeof r=="number"&&-1<r&&r<=Ze?(t=Wt(n,t,e),-1<t?n[t]:_):(t=o.createCallback(t,e,3),st(n,t,ct))}function Yt(n,t,e){var r=-1,u=n?n.length:0;
if(t=t&&typeof e=="undefined"?t:Z(t,e,3),typeof u=="number"&&-1<u&&u<=Ze)for(;++r<u&&false!==t(n[r],r,n););else ct(n,t);return n}function Gt(n,t,e){var r=n?n.length:0;if(t=t&&typeof e=="undefined"?t:Z(t,e,3),typeof r=="number"&&-1<r&&r<=Ze)for(;r--&&false!==t(n[r],r,n););else pt(n,t);return n}function Ht(n,t,e){var r=-1,u=n?n.length:0;if(t=o.createCallback(t,e,3),typeof u=="number"&&-1<u&&u<=Ze)for(var i=Ee(u);++r<u;)i[r]=t(n[r],r,n);else i=[],ct(n,function(n,e,u){i[++r]=t(n,e,u)});return i}function Qt(n,t,e){var r=-1/0,i=r,a=typeof t;
if("number"!=a&&"string"!=a||!e||e[t]!==n||(t=null),null==t&&Er(n))for(e=-1,a=n.length;++e<a;){var l=n[e];l>i&&(i=l)}else t=null==t&&ye(n)?u:o.createCallback(t,e,3),ct(n,function(n,e,u){e=t(n,e,u),e>r&&(r=e,i=n)});return i}function ne(n,t,e,r){var u=3>arguments.length;t=o.createCallback(t,r,4);var i=-1,a=n?n.length:0;if(typeof a=="number"&&-1<a&&a<=Ze)for(u&&a&&(e=n[++i]);++i<a;)e=t(e,n[i],i,n);else ct(n,function(n,r,o){e=u?(u=false,n):t(e,n,r,o)});return e}function te(n,t,e,r){var u=3>arguments.length;
return t=o.createCallback(t,r,4),pt(n,function(n,r,o){e=u?(u=false,n):t(e,n,r,o)}),e}function ee(n){var t=-1,e=n&&n.length,r=Ee(0>e?0:e>>>0);return ct(n,function(n){var e=kt(0,++t);r[t]=r[e],r[e]=n}),r}function re(n,t,e){var r;t=o.createCallback(t,e,3),e=-1;var u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=Ze){for(;++e<u;)if(t(n[e],e,n))return true}else ct(n,function(n,e,u){return!(r=t(n,e,u))});return!!r}function ue(n,t){if(3>arguments.length)return It(n,w,null,t);if(n)var e=n[E]?n[E][2]:n.length,r=Bt(arguments,2),e=e-r.length;
return It(n,w|C,e,t,r)}function oe(n,t,e){var r,u,o,i,a,l,f,c=0,p=false,s=true;if(!se(n))throw new Le;if(t=0>t?0:t,true===e)var h=true,s=false;else he(e)&&(h=e.leading,p="maxWait"in e&&pr(t,+e.maxWait||0),s="trailing"in e?e.trailing:s);var g=function(){var e=t-(Lr()-i);0>=e||e>t?(u&&Ve(u),e=f,u=l=f=_,e&&(c=Lr(),o=n.apply(a,r),l||u||(r=a=null))):l=tr(g,e)},v=function(){l&&Ve(l),u=l=f=_,(s||p!==t)&&(c=Lr(),o=n.apply(a,r),l||u||(r=a=null))};return function(){if(r=arguments,i=Lr(),a=this,f=s&&(l||!h),false===p)var e=h&&!l;
else{u||h||(c=i);var y=p-(i-c),m=0>=y||y>p;m?(u&&(u=Ve(u)),c=i,o=n.apply(a,r)):u||(u=tr(v,y))}return m&&l?l=Ve(l):l||t===p||(l=tr(g,t)),e&&(m=true,o=n.apply(a,r)),!m||l||u||(r=a=null),o}}function ie(n){if(!se(n))throw new Le;return function(){return!n.apply(this,arguments)}}function ae(n,t,e){var r=arguments;if(!n||2>r.length)return n;var u=0,o=r.length,i=typeof e;if("number"!=i&&"string"!=i||!r[3]||r[3][e]!==t||(o=2),3<o&&"function"==typeof r[o-2])var a=Z(r[--o-1],r[o--],2);else 2<o&&"function"==typeof r[o-1]&&(a=r[--o]);
for(;++u<o;){t=r[u];for(var i=-1,l=Rr(t),f=l.length;++i<f;){var c=l[i];n[c]=a?a(n[c],t[c]):t[c]}}return n}function le(t){if(!t||2>arguments.length)return t;var e=Bt(arguments);return e.push(n),ae.apply(null,e)}function fe(n){var t=[];return dt(n,function(n,e){se(n)&&t.push(e)}),t.sort()}function ce(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Pe.call(n)==G||false}function pe(n){return n&&typeof n=="object"&&1===n.nodeType&&-1<Pe.call(n).indexOf("Element")||false}function se(n){return typeof n=="function"
}function he(n){var t=typeof n;return n&&("function"==t||"object"==t)||false}function ge(n){var t=typeof n;return"number"==t||n&&"object"==t&&Pe.call(n)==et||false}function ve(n){return n&&typeof n=="object"&&Pe.call(n)==ut||false}function ye(n){return typeof n=="string"||n&&typeof n=="object"&&Pe.call(n)==ot||false}function me(n){if(!he(n))return[];for(var t,e=n.length,e=(typeof e=="number"&&0<e&&(Er(n)||_r.nonEnumArgs&&ce(n))&&e)>>>0,r=-1,u=e-1,o=Ee(e),i=0<e;++r<e;)o[r]=$e(r);for(var a in n)i&&(t=+a,-1<t&&t<=u&&0==t%1)||o.push(a);
return o}function de(n,t,e){var r={};if(typeof t!="function")for(var u=-1,i=ht(arguments,true,false,1),a=he(n)?i.length:0;++u<a;){var l=i[u];l in n&&(r[l]=n[l])}else t=o.createCallback(t,e,3),dt(n,function(n,e,u){t(n,e,u)&&(r[e]=n)});return r}function be(n){return Ct(n,Rr)}function _e(n){return null==n?"":$e(n).replace(K,"\\$&")}function we(n,t){var e="";if(t=+t,1>t||null==n||!lr(t))return e;n=$e(n);do t%2&&(e+=n),t=Je(t/2),n+=n;while(t);return e}function xe(n,t,e){var r=typeof n;return"function"==r||null==n?(typeof t=="undefined"||!("prototype"in n))&&n||Z(n,t,e):"object"!=r?Ae(n):je(n)
}function ke(n){return n}function je(n){n||(n={});var t=Rr(n),e=t.length,r=t[0],u=n[r];return 1!=e||u!==u||he(u)?function(r){for(var u=e,o=true;u--&&(o=t[u],o=Ge.call(r,o)&&wt(r[o],n[o],null,true)););return o}:function(n){return Ge.call(n,r)?(n=n[r],u===n&&(0!==u||1/u==1/n)):false}}function Ce(n,t,e){var r=true,u=t&&fe(t);t&&(e||u.length)||(null==e&&(e=t),t=n,n=o,u=fe(t)),false===e?r=false:he(e)&&"chain"in e&&(r=e.chain),e=-1;for(var i=se(n),a=u?u.length:0;++e<a;){var l=u[e],f=n[l]=t[l];i&&(n.prototype[l]=function(t){return function(){var e=this.__chain__,u=this.__wrapped__,o=[u];
if(He.apply(o,arguments),o=t.apply(n,o),r||e){if(u===o&&he(o))return this;o=new n(o),o.__chain__=e}return o}}(f))}}function Oe(){}function Ae(n){return function(t){return null==t?_:t[n]}}t=t?mt.defaults(gt.Object(),t,mt.pick(gt,Y)):gt;var Ee=t.Array,Ie=t.Boolean,Re=t.Date,Ne=t.Function,Se=t.Math,Te=t.Number,We=t.Object,Fe=t.RegExp,$e=t.String,Le=t.TypeError,ze=Ee.prototype,De=We.prototype,Be=$e.prototype,qe=(qe=t.window)&&qe.document,Ue=t._,Ze=Se.pow(2,53)-1,Pe=De.toString,Ke=Fe("^"+_e(Pe).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Me=Se.ceil,Ve=t.clearTimeout,Je=Se.floor,Xe=Ne.prototype.toString,Ye=Nt(Ye=We.getPrototypeOf)&&Ye,Ge=De.hasOwnProperty,He=ze.push,Qe=De.propertyIsEnumerable,nr=Nt(nr=t.Set)&&nr,tr=t.setTimeout,er=ze.splice,rr=ze.unshift,ur=function(){try{var n={},t=Nt(t=We.defineProperty)&&t,e=t(n,n,n)&&t
}catch(r){}return e}(),or=Nt(or=Be.contains)&&or,ir=Nt(ir=We.create)&&ir,ar=Nt(ar=Ee.isArray)&&ar,lr=t.isFinite,fr=t.isNaN,cr=Nt(cr=We.keys)&&cr,pr=Se.max,sr=Se.min,hr=Nt(hr=Re.now)&&hr,gr=t.parseInt,vr=Se.random,yr=Nt(yr=Be.trim)&&!yr.call(X)&&yr,mr=Nt(mr=Be.trimLeft)&&!mr.call(X)&&mr,dr=Nt(dr=Be.trimRight)&&!dr.call(X)&&dr,br={};br[H]=Ee,br[Q]=Ie,br[nt]=Re,br[tt]=Ne,br[rt]=We,br[et]=Te,br[ut]=Fe,br[ot]=$e,i.prototype=o.prototype;var _r=o.support={};!function(x_){for(var n in arguments);_r.funcDecomp=!Nt(t.WinRTError)&&M.test(b),_r.funcNames=typeof Ne.name=="string";
try{_r.dom=11===qe.createDocumentFragment().nodeType}catch(e){_r.dom=false}try{_r.nonEnumArgs=!("1"==n&&Ge.call(arguments,n)&&Qe.call(arguments,n))}catch(r){_r.nonEnumArgs=true}}(0,0),o.templateSettings={escape:$,evaluate:L,interpolate:z,variable:"",imports:{_:o}},ir||(m=function(){function n(){}return function(e){if(he(e)){n.prototype=e;var r=new n;n.prototype=null}return r||t.Object()}}());var wr=nr&&function(n){var t=new nr,e=n?n.length:0;for(t.push=t.add;e--;)t.push(n[e]);return t},xr=ur?function(n,t){lt.value=t,ur(n,E,lt)
}:Oe,kr=At(function(n,t,e){Ge.call(n,e)?n[e]++:n[e]=1}),jr=At(function(n,t,e){Ge.call(n,e)?n[e].push(t):n[e]=[t]}),Cr=At(function(n,t,e){n[e]=t}),Or=At(function(n,t,e){n[e?0:1].push(t)},true),Ar=Ht,Er=ar||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Pe.call(n)==H||false};_r.dom||(pe=function(n){return n&&typeof n=="object"&&1===n.nodeType&&!Ir(n)||false});var Ir=Ye?function(n){if(!n||Pe.call(n)!=rt)return false;var t=n.valueOf,e=Nt(t)&&(e=Ye(t))&&Ye(e);return e?n==e||Ye(n)==e:St(n)}:St,Rr=cr?function(n){var t=n?n.length:0;
return typeof t=="number"&&0<t?Tt(n):he(n)?cr(n):[]}:Tt,Nr=f(function(n,t,e){return!e&&R.test(t)?n+t.toLowerCase():n+(t.charAt(0)[e?"toUpperCase":"toLowerCase"]()+t.slice(1))}),Sr=f(function(n,t,e){return n+(e?"-":"")+t.toLowerCase()}),Tr=f(function(n,t,e){return n+(e?"_":"")+t.toLowerCase()}),Wr=yr?function(n,t){return null==n?"":null==t?yr.call(n):h(n,t)}:h,Fr=mr?function(n,t){return null==n?"":null==t?mr.call(n):g(n,t)}:g,$r=dr?function(n,t){return null==n?"":null==t?dr.call(n):v(n,t)}:v,Lr=hr||function(){return(new Re).getTime()
},zr=8==gr(X+"08")?gr:function(n,t){return n=Wr(n),gr(n,+t||(U.test(n)?16:10))};return o.after=function(n,t){if(!se(t))throw new Le;return n=lr(n=+n)?n:0,function(){return 1>--n?t.apply(this,arguments):void 0}},o.assign=ae,o.at=function(n,t){var e=arguments,r=-1,u=ht(e,true,false,1),o=u.length,i=typeof t;for("number"!=i&&"string"!=i||!e[2]||e[2][t]!==n||(o=1),e=Ee(o);++r<o;)e[r]=n[u[r]];return e},o.bind=ue,o.bindAll=function(n){for(var t=1<arguments.length?ht(arguments,true,false,1):fe(n),e=-1,r=t.length;++e<r;){var u=t[e];
n[u]=It(n[u],w,null,n)}return n},o.bindKey=function(n,t){return 3>arguments.length?It(t,w|x,null,n):It(t,w|x|C,null,n,Bt(arguments,2))},o.chain=function(n){return new i(n,true)},o.compact=function(n){for(var t=-1,e=n?n.length:0,r=0,u=[];++t<e;){var o=n[t];o&&(u[r++]=o)}return u},o.compose=function(){for(var n=arguments,t=n.length,e=t;e--;)if(!se(n[e]))throw new Le;return function(){for(var e=t-1,r=n[e].apply(this,arguments);e--;)r=n[e].call(this,r);return r}},o.constant=function(n){return function(){return n
}},o.countBy=kr,o.create=function(n,t){var e=m(n);return t?ae(e,t):e},o.createCallback=xe,o.curry=function(n,t){return typeof t!="number"&&(t=+t||(n?n.length:0)),It(n,k,t)},o.debounce=oe,o.defaults=le,o.defer=function(n){if(!se(n))throw new Le;var t=Bt(arguments,1);return tr(function(){n.apply(_,t)},1)},o.delay=function(n,t){if(!se(n))throw new Le;var e=Bt(arguments,2);return tr(function(){n.apply(_,e)},t)},o.difference=function(){return ft(arguments[0],ht(arguments,true,true,1))},o.drop=Dt,o.dropRight=Lt,o.dropRightWhile=Lt,o.dropWhile=Dt,o.filter=Jt,o.flatten=function(n,t,e,r){if(!n||!n.length)return[];
var u=typeof t;return"boolean"!=u&&null!=t&&(r=e,e=t,t=false,"number"!=u&&"string"!=u||!r||r[e]!==n||(e=null)),null!=e&&(n=Ht(n,e,r)),ht(n,t)},o.forEach=Yt,o.forEachRight=Gt,o.forIn=function(n,t,e){return t=t&&typeof e=="undefined"?t:Z(t,e,3),vt(n,t,me)},o.forInRight=function(n,t,e){return t=Z(t,e,3),yt(n,t,me)},o.forOwn=function(n,t,e){return t=t&&typeof e=="undefined"?t:Z(t,e,3),bt(n,t)},o.forOwnRight=function(n,t,e){return t=Z(t,e,3),yt(n,t,Rr)},o.functions=fe,o.groupBy=jr,o.indexBy=Cr,o.initial=Lt,o.intersection=function(){for(var n=[],t=-1,u=arguments.length,o=[],i=Rt(),a=wr&&i===e;++t<u;){var l=arguments[t];
(Er(l)||ce(l))&&(n.push(l),o.push(a&&120<=l.length&&wr(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?r(s,l):i(p,l))){for(t=u;--t;){var h=o[t];if(0>(h?r(h,l):i(n[t],l)))continue n}s&&s.push(l),p.push(l)}return p},o.invert=function(n,t){for(var e=-1,r=Rr(n),u=r.length,o={};++e<u;){var i=r[e],a=n[i];t?Ge.call(o,a)?o[a].push(i):o[a]=[i]:o[a]=i}return o},o.invoke=function(n,t){var e=Bt(arguments,2),r=-1,u=typeof t=="function",o=n&&n.length,i=Ee(0>o?0:o>>>0);
return ct(n,function(n){var o=u?t:null!=n&&n[t];i[++r]=o?o.apply(n,e):_}),i},o.keys=Rr,o.keysIn=me,o.map=Ht,o.mapValues=function(n,t,e){var r={};return t=o.createCallback(t,e,3),bt(n,function(n,e,u){r[e]=t(n,e,u)}),r},o.matches=je,o.max=Qt,o.memoize=function(n,t){if(!se(n))throw new Le;var e=function(){var r=e.cache,u=t?t.apply(this,arguments):"_"+arguments[0];return Ge.call(r,u)?r[u]:r[u]=n.apply(this,arguments)};return e.cache={},e},o.merge=function(n,t,e){if(!n)return n;var r=arguments,u=r.length,o=typeof e;
if("number"!=o&&"string"!=o||!r[3]||r[3][e]!==t||(u=2),3<u&&"function"==typeof r[u-2])var i=Z(r[--u-1],r[u--],2);else 2<u&&"function"==typeof r[u-1]&&(i=r[--u]);for(var r=Bt(r,1,u),o=-1,a=[],l=[];++o<u;)xt(n,r[o],i,a,l);return n},o.min=function(n,t,e){var r=1/0,i=r,a=typeof t;if("number"!=a&&"string"!=a||!e||e[t]!==n||(t=null),null==t&&Er(n))for(e=-1,a=n.length;++e<a;){var l=n[e];l<i&&(i=l)}else t=null==t&&ye(n)?u:o.createCallback(t,e,3),ct(n,function(n,e,u){e=t(n,e,u),e<r&&(r=e,i=n)});return i},o.negate=ie,o.omit=function(n,t,e){if(typeof t=="function")return t=o.createCallback(t,e,3),de(n,ie(t));
for(var r=ht(arguments,true,false,1),u=r.length;u--;)r[u]=$e(r[u]);return de(n,ft(me(n),r))},o.once=function(n){var t,e;if(!se(n))throw new Le;return function(){return t?e:(t=true,e=n.apply(this,arguments),n=null,e)}},o.pairs=function(n){for(var t=-1,e=Rr(n),r=e.length,u=Ee(r);++t<r;){var o=e[t];u[t]=[o,n[o]]}return u},o.partial=function(n){if(n)var t=n[E]?n[E][2]:n.length,e=Bt(arguments,1),t=t-e.length;return It(n,C,t,null,e)},o.partialRight=function(n){if(n)var t=n[E]?n[E][2]:n.length,e=Bt(arguments,1),t=t-e.length;
return It(n,O,t,null,null,e)},o.partition=Or,o.pick=de,o.pluck=Ar,o.property=Ae,o.pull=function(n){for(var t=0,e=arguments.length,r=n?n.length:0;++t<e;)for(var u=-1,o=arguments[t];++u<r;)n[u]===o&&(er.call(n,u--,1),r--);return n},o.range=function(n,t,e){n=+n||0,e=null==e?1:+e||0,null==t?(t=n,n=0):t=+t||0;var r=-1;t=pr(Me((t-n)/(e||1)),0);for(var u=Ee(t);++r<t;)u[r]=n,n+=e;return u},o.reject=function(n,t,e){return t=o.createCallback(t,e,3),Jt(n,ie(t))},o.remove=function(n,t,e){var r=-1,u=n?n.length:0,i=[];
for(t=o.createCallback(t,e,3);++r<u;)e=n[r],t(e,r,n)&&(i.push(e),er.call(n,r--,1),u--);return i},o.rest=Dt,o.shuffle=ee,o.slice=Bt,o.sortBy=function(n,t,e){var r=-1,u=n&&n.length,i=t&&Er(t),f=Ee(0>u?0:u>>>0);for(i||(t=o.createCallback(t,e,3)),ct(n,function(n,e,u){if(i)for(e=t.length,u=Ee(e);e--;)u[e]=n[t[e]];else u=t(n,e,u);f[++r]={a:u,b:r,c:n}}),u=f.length,f.sort(i?l:a);u--;)f[u]=f[u].c;return f},o.tap=function(n,t,e){return t.call(e,n),n},o.throttle=function(n,t,e){var r=true,u=true;if(!se(n))throw new Le;
return false===e?r=false:he(e)&&(r="leading"in e?!!e.leading:r,u="trailing"in e?!!e.trailing:u),at.leading=r,at.maxWait=+t,at.trailing=u,oe(n,t,at)},o.times=function(n,t,e){n=0>n?0:n>>>0;var r=-1,u=Ee(n);for(t=Z(t,e,1);++r<n;)u[r]=t(r);return u},o.toArray=function(n){var t=n&&n.length;return typeof t=="number"&&-1<t&&t<=Ze?Bt(n):be(n)},o.transform=function(n,t,e,r){var u=Er(n);if(null==e)if(u)e=[];else{var i=n&&n.constructor;e=m(i&&i.prototype)}return t&&(t=o.createCallback(t,r,4),(u?ct:bt)(n,function(n,r,u){return t(e,n,r,u)
})),e},o.union=function(){return jt(ht(arguments,true,true))},o.uniq=Ut,o.values=be,o.valuesIn=function(n){return Ct(n,me)},o.where=Jt,o.without=function(){return ft(arguments[0],Bt(arguments,1))},o.wrap=function(n,t){return It(t,C,null,null,[n])},o.xor=function(){for(var n=-1,t=arguments.length;++n<t;){var e=arguments[n];if(Er(e)||ce(e))var r=r?ft(r,e).concat(ft(e,r)):e}return r?jt(r):[]},o.zip=Zt,o.zipObject=Pt,o.callback=xe,o.collect=Ht,o.each=Yt,o.eachRight=Gt,o.extend=ae,o.methods=fe,o.object=Pt,o.select=Jt,o.tail=Dt,o.unique=Ut,o.unzip=Zt,Ce(ae({},o)),o.camelCase=Nr,o.capitalize=function(n){return null==n?"":(n=$e(n),n.charAt(0).toUpperCase()+n.slice(1))
},o.clone=function(n,t,e,r){var u=typeof t;return"boolean"!=u&&null!=t&&(r=e,e=t,t=false,"number"!=u&&"string"!=u||!r||r[e]!==n||(e=null)),e=typeof e=="function"&&Z(e,r,1),y(n,t,e)},o.cloneDeep=function(n,t,e){return t=typeof t=="function"&&Z(t,e,1),y(n,true,t)},o.contains=Mt,o.endsWith=function(n,t,e){n=null==n?"":$e(n),t=$e(t);var r=n.length;return e=(typeof e=="undefined"?r:sr(0>e?0:+e||0,r))-t.length,0<=e&&n.indexOf(t,e)==e},o.escape=function(n){return null==n?"":$e(n).replace(F,p)},o.escapeRegExp=_e,o.every=Vt,o.find=Xt,o.findIndex=Wt,o.findKey=function(n,t,e){return t=o.createCallback(t,e,3),st(n,t,bt,true)
},o.findLast=function(n,t,e){return t=o.createCallback(t,e,3),st(n,t,pt)},o.findLastIndex=function(n,t,e){var r=n?n.length:0;for(t=o.createCallback(t,e,3);r--;)if(t(n[r],r,n))return r;return-1},o.findLastKey=function(n,t,e){return t=o.createCallback(t,e,3),st(n,t,_t,true)},o.has=function(n,t){return n?Ge.call(n,t):false},o.identity=ke,o.indexOf=$t,o.isArguments=ce,o.isArray=Er,o.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&Pe.call(n)==Q||false},o.isDate=function(n){return n&&typeof n=="object"&&Pe.call(n)==nt||false
},o.isElement=pe,o.isEmpty=function(n){var t=true;if(!n)return t;var e=Pe.call(n),r=n.length;return-1<r&&r<=Ze&&(e==H||e==ot||e==G||e==rt&&se(n.splice))?!r:(bt(n,function(){return t=false}),t)},o.isEqual=function(n,t,e,r){if(e=typeof e=="function"&&Z(e,r,2),!e){if(n===t)return 0!==n||1/n==1/t;r=typeof n;var u=typeof t;if(n===n&&(null==n||null==t||"function"!=r&&"object"!=r&&"function"!=u&&"object"!=u))return false}return wt(n,t,e)},o.isFinite=function(n){return lr(n)&&!fr(parseFloat(n))},o.isFunction=se,o.isNaN=function(n){return ge(n)&&n!=+n
},o.isNull=function(n){return null===n},o.isNumber=ge,o.isObject=he,o.isPlainObject=Ir,o.isRegExp=ve,o.isString=ye,o.isUndefined=function(n){return typeof n=="undefined"},o.kebabCase=Sr,o.lastIndexOf=function(n,t,e){var r=n?n.length:0;for(typeof e=="number"&&(r=(0>e?pr(r+e,0):sr(e||0,r-1))+1);r--;)if(n[r]===t)return r;return-1},o.mixin=Ce,o.noConflict=function(){return t._=Ue,this},o.noop=Oe,o.now=Lr,o.pad=function(n,t,e){n=null==n?"":$e(n),t=+t;var r=n.length;return r<t&&lr(t)?(r=(t-r)/2,t=Je(r),r=Me(r),e=Et("",r,e),e.slice(0,t)+n+e):n
},o.padLeft=function(n,t,e){return n=null==n?"":$e(n),Et(n,t,e)+n},o.padRight=function(n,t,e){return n=null==n?"":$e(n),n+Et(n,t,e)},o.parseInt=zr,o.random=function(n,t,e){var r=null==n,u=null==t;return null==e&&(u&&typeof n=="boolean"?(e=n,n=1):typeof t=="boolean"&&(e=t,u=true)),r&&u&&(t=1,u=false),n=+n||0,u?(t=n,n=0):t=+t||0,e||n%1||t%1?(e=vr(),sr(n+e*(t-n+parseFloat("1e-"+((e+"").length-1))),t)):kt(n,t)},o.reduce=ne,o.reduceRight=te,o.repeat=we,o.result=function(n,t,e){var r=null==n?_:n[t];return typeof r=="undefined"?e:se(r)?n[t]():r
},o.runInContext=b,o.size=function(n){var t=n?n.length:0;return typeof t=="number"&&-1<t&&t<=Ze?t:Rr(n).length},o.some=re,o.sortedIndex=qt,o.snakeCase=Tr,o.startsWith=function(n,t,e){return n=null==n?"":$e(n),e=typeof e=="undefined"?0:sr(0>e?0:+e||0,n.length),n.lastIndexOf(t,e)==e},o.template=function(n,t,e){var r=o.templateSettings;e=le({},e,r),n=$e(null==n?"":n);var u,i,a=le({},e.imports,r.imports),r=Rr(a),a=be(a),l=0,f=e.interpolate||P,c="__p+='",f=Fe((e.escape||P).source+"|"+f.source+"|"+(f===z?D:P).source+"|"+(e.evaluate||P).source+"|$","g");
n.replace(f,function(t,e,r,o,a,f){return r||(r=o),c+=n.slice(l,f).replace(V,s),e&&(u=true,c+="'+__e("+e+")+'"),a&&(i=true,c+="';"+a+";\n__p+='"),r&&(c+="'+((__t=("+r+"))==null?'':__t)+'"),l=f+t.length,t}),c+="';",(e=e.variable)||(c="with(obj){"+c+"}"),c=(i?c.replace(N,""):c).replace(S,"$1").replace(T,"$1;"),c="function("+(e||"obj")+"){"+(e?"":"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=Ne(r,"return "+c).apply(_,a)
}catch(h){throw h.source=c,h}return t?p(t):(p.source=c,p)},o.trim=Wr,o.trimLeft=Fr,o.trimRight=$r,o.truncate=function(n,t){var e=30,r="...";if(t&&he(t))var u="separator"in t?t.separator:u,e="length"in t?+t.length||0:e,r="omission"in t?$e(t.omission):r;else null!=t&&(e=+t||0);if(n=null==n?"":$e(n),e>=n.length)return n;var o=e-r.length;if(1>o)return r;if(e=n.slice(0,o),null==u)return e+r;if(ve(u)){if(n.slice(o).search(u)){var i,a,l=n.slice(0,o);for(u.global||(u=Fe(u.source,(B.exec(u)||"")+"g")),u.lastIndex=0;i=u.exec(l);)a=i.index;
e=e.slice(0,null==a?o:a)}}else n.indexOf(u,o)!=o&&(u=e.lastIndexOf(u),-1<u&&(e=e.slice(0,u)));return e+r},o.unescape=function(n){return null==n?"":(n=$e(n),0>n.indexOf(";")?n:n.replace(W,d))},o.uniqueId=function(n){var t=++I;return $e(null==n?"":n)+t},o.all=Vt,o.any=re,o.detect=Xt,o.findWhere=Xt,o.foldl=ne,o.foldr=te,o.include=Mt,o.inject=ne,Ce(function(){var n={};return bt(o,function(t,e){o.prototype[e]||(n[e]=t)}),n}(),false),o.first=Ft,o.last=zt,o.sample=function(n,t,e){return n&&typeof n.length!="number"&&(n=be(n)),null==t||e?(t=n?n.length:0,0<t?n[kt(0,t-1)]:_):(n=ee(n),n.length=sr(0>t?0:+t||0,n.length),n)
},o.take=Ft,o.takeRight=zt,o.takeRightWhile=zt,o.takeWhile=Ft,o.head=Ft,bt(o,function(n,t){var e="sample"!==t;o.prototype[t]||(o.prototype[t]=function(t,r){var u=this.__chain__,o=n(this.__wrapped__,t,r);return u||null!=t&&(!r||e&&typeof t=="function")?new i(o,u):o})}),o.VERSION=A,o.prototype.chain=function(){return this.__chain__=true,this},o.prototype.toJSON=Kt,o.prototype.toString=function(){return $e(this.__wrapped__)},o.prototype.value=Kt,o.prototype.valueOf=Kt,ct(["join","pop","shift"],function(n){var t=ze[n];
o.prototype[n]=function(){var n=this.__chain__,e=t.apply(this.__wrapped__,arguments);return n?new i(e,n):e}}),ct(["push","reverse","sort","unshift"],function(n){var t=ze[n];o.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),ct(["concat","splice"],function(n){var t=ze[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",E="__lodash@"+A+"__",I=0,R=/^[A-Z]+$/,N=/\b__p\+='';/g,S=/\b(__p\+=)''\+/g,T=/(__e\(.*?\)|\b__t\))\+'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,F=/[&<>"']/g,$=/<%-([\s\S]+?)%>/g,L=/<%([\s\S]+?)%>/g,z=/<%=([\s\S]+?)%>/g,D=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,B=/\w*$/,q=/^\s*function[ \n\r\t]+\w/,U=/^0[xX]/,Z=/[\xC0-\xFF]/g,P=/($^)/,K=/[.*+?^${}()|[\]\\]/g,M=/\bthis\b/,V=/['\n\r\u2028\u2029\\]/g,J=/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[a-z]+|[0-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]",Q="[object Boolean]",nt="[object Date]",tt="[object Function]",et="[object Number]",rt="[object Object]",ut="[object RegExp]",ot="[object String]",it={};
it[tt]=false,it[G]=it[H]=it[Q]=it[nt]=it[et]=it[rt]=it[ut]=it[ot]=true;var at={leading:false,maxWait:0,trailing:false},lt={configurable:false,enumerable:false,value:null,writable:false},ft={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ct={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},pt={\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":" "},st={"function":true,object:true},ht={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},gt=st[typeof window]&&window||this,vt=st[typeof exports]&&exports&&!exports.nodeType&&exports,st=st[typeof module]&&module&&!module.nodeType&&module,yt=vt&&st&&typeof global=="object"&&global;
!yt||yt.global!==yt&&yt.window!==yt&&yt.self!==yt||(gt=yt);var yt=st&&st.exports===vt&&vt,mt=b();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(gt._=mt, define(function(){return mt})):vt&&st?yt?(st.exports=mt)._=mt:vt._=mt:gt._=mt}).call(this);
}function l(n,e){for(var r=-1,u=n.a,o=e.a,i=u.length;++r<i;){var a=t(u[r],o[r]);if(a)return a}return n.b-e.b}function f(n){return function(t){for(var e=-1,r=(t=null!=t&&(t+"").replace(P,c).match(X))?t.length:0,u="";++e<r;)u=n(u,t[e],e,t);return u}}function c(n){return st[n]}function p(n){return ct[n]}function s(n){return"\\"+gt[n]}function h(){return[[],[]]}function g(n,t){return(n=null==n?"":n+"")?null==t?n.slice(m(n),d(n)+1):(t+="",n.slice(o(n,t),i(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,i(n,t)+1)):n}function m(n){for(var t=-1,e=n.length;++t<e;){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 d(n){for(var t=n.length;t--;){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 b(n){return pt[n]}function _(t){function o(n){return n&&typeof n=="object"&&!Rr(n)&&Qe.call(n,"__wrapped__")?n:new i(n)}function i(n,t){this.__chain__=!!t,this.__wrapped__=n}function c(n,t){for(var e=-1,r=n?n.length>>>0:0,u=Re(r);++e<r;)u[e]=t(n[e],e,n);return u}function m(n){function t(){if(u){for(var n=-1,i=arguments.length,a=Re(i);++n<i;)a[n]=arguments[n];a=Et(u,o,a)}return this instanceof t?(n=P(e.prototype),a=e.apply(n,a||arguments),ve(a)?a:n):e.apply(r,a||arguments)}var e=n[0],r=n[3],u=n[4],o=n[6];
return jr(t,n),t}function d(n,t,e,r,u){if(e){var o=e(n);if(typeof o!="undefined")return o}if(!ve(n))return n;var i=Me.call(n);if(!at[i])return n;var a=wr[i];switch(i){case nt:case tt:return new a(+n);case rt:case it:return new a(n);case ot:return o=a(n.source,q.exec(n)),o.lastIndex=n.lastIndex,o}if(i=Rr(n),t){r||(r=[]),u||(u=[]);for(var l=r.length;l--;)if(r[l]==n)return u[l];o=i?a(n.length):{}}else o=i?Ut(n):fe({},n);return i&&(Qe.call(n,"index")&&(o.index=n.index),Qe.call(n,"input")&&(o.input=n.input)),t?(r.push(n),u.push(o),(i?st:wt)(n,function(n,i){o[i]=d(n,t,e,r,u)
}),o):o}function P(n){return ve(n)?lr(n):{}}function X(n,t,e){if(typeof n!="function")return Ce;if(typeof t=="undefined"||!("prototype"in n))return n;var r=n[I];if(typeof r=="undefined"&&(xr.funcNames&&(r=!n.name),r=r||!xr.funcDecomp,!r)){var u=Ge.call(n);xr.funcNames||(r=!U.test(u)),r||(r=V.test(u),jr(n,r))}if(false===r||true!==r&&r[1]&x)return n;switch(e){case 1:return function(e){return n.call(t,e)};case 2:return function(e,r){return n.call(t,e,r)};case 3:return function(e,r,u){return n.call(t,e,r,u)
};case 4:return function(e,r,u,o){return n.call(t,e,r,u,o)}}return ie(n,t)}function ct(n){function t(){for(var n=-1,v=arguments.length,y=Re(v);++n<v;)y[n]=arguments[n];if(i&&(y=Et(i,l,y)),a){for(var n=a,m=f,d=-1,b=m.length,_=-1,w=hr(y.length-b,0),j=-1,C=n.length,E=Re(w+C);++_<w;)E[_]=y[_];for(w=_;++j<C;)E[w+j]=n[j];for(;++d<b;)E[w+m[d]]=y[_++];y=E}return s&&(n=[],v-=n.length,v<u)?(r|=O,r&=~A,h||(r&=~(x|k)),v=hr(u-v,0),ct([e,r,v,o,y,null,n])):(v=c?o:this,p&&(e=v[g]),this instanceof t?(v=P(e.prototype),n=e.apply(v,y),ve(n)?n:v):e.apply(v,y))
}var e=n[0],r=n[1],u=n[2],o=n[3],i=n[4],a=n[5],l=n[6],f=n[7],c=r&x,p=r&k,s=r&j,h=r&C,g=e;return jr(t,n),t}function pt(n,t){var u=n?n.length:0;if(!u)return[];var o=-1,i=St(),a=i===e,l=a&&kr&&t&&200<=t.length,a=a&&!l,f=[],c=t?t.length:0;l&&(i=r,t=kr(t));n:for(;++o<u;)if(l=n[o],a){for(var p=c;p--;)if(t[p]===l)continue n;f.push(l)}else 0>i(t,l)&&f.push(l);return f}function st(n,t){var e=-1,r=n?n.length:0;if(typeof r=="number"&&-1<r&&r<=Ke)for(;++e<r&&false!==t(n[e],e,n););else wt(n,t);return n}function ht(n,t){var e=n?n.length:0;
if(typeof e=="number"&&-1<e&&e<=Ke)for(;e--&&false!==t(n[e],e,n););else xt(n,t);return n}function gt(n,t,e,r){var u;return e(n,function(n,e,o){return t(n,e,o)?(u=r?e:n,false):void 0}),u}function yt(n,t,e,r){r=(r||0)-1;for(var u=n?n.length:0,o=[];++r<u;){var i=n[r];if(i&&typeof i=="object"&&typeof i.length=="number"&&(Rr(i)||se(i))){t||(i=yt(i,t,e));var a=-1,l=i.length,f=o.length;for(o.length+=l;++a<l;)o[f++]=i[a]}else e||o.push(i)}return o}function mt(n,t,e){var r=-1;e=e(n);for(var u=e.length;++r<u;){var o=e[r];
if(false===t(n[o],o,n))break}return n}function bt(n,t,e){e=e(n);for(var r=e.length;r--;){var u=e[r];if(false===t(n[u],u,n))break}return n}function _t(n,t){return mt(n,t,be)}function wt(n,t){return mt(n,t,Sr)}function xt(n,t){return bt(n,t,Sr)}function kt(n,t,e,r,u,o){if(e){var i=e(n,t);if(typeof i!="undefined")return!!i}if(n===t)return 0!==n||1/n==1/t;var a=typeof n,l=typeof t;if(n===n&&(null==n||null==t||"function"!=a&&"object"!=a&&"function"!=l&&"object"!=l))return false;var f=Me.call(n),a=Me.call(t),c=f==H,l=a==H;
if(c&&(f=ut),l&&(a=ut),f!=a)return false;switch(f){case nt:case tt:return+n==+t;case rt:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case ot:case it:return n==ze(t)}if(a=f==Q,!a){var p=Qe.call(n,"__wrapped__"),s=Qe.call(t,"__wrapped__");if(p||s)return kt(p?n.__wrapped__:n,s?t.__wrapped__:t,e,r,u,o);if(f!=ut)return false;if(f=!c&&Qe.call(n,"constructor"),p=!l&&Qe.call(t,"constructor"),f!=p||!f&&(c=c?$e:n.constructor,l=l?$e:t.constructor,c!=l&&!(ge(c)&&c instanceof c&&ge(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 h=0,i=true;if(u.push(n),o.push(t),a){if(l=n.length,h=t.length,(i=h==l)||r)for(;h--;)if(a=l,c=t[h],r)for(;a--&&!(i=kt(n[a],c,e,r,u,o)););else if(!(i=kt(n[h],c,e,r,u,o)))break}else _t(t,function(t,a,l){return Qe.call(l,a)?(h++,i=Qe.call(n,a)&&kt(n[a],t,e,r,u,o)):void 0}),i&&!r&&_t(n,function(n,t,e){return Qe.call(e,t)?i=-1<--h:void 0});return u.pop(),o.pop(),i}function jt(n,t,e,r,u){(Rr(t)?st:wt)(t,function(t,o){var i,a,l=t,f=n[o];
if(t&&((a=Rr(t))||Nr(t))){for(l=r.length;l--;)if(i=r[l]==t){f=u[l];break}if(!i){var c;e&&(l=e(f,t),c=typeof l!="undefined")&&(f=l),c||(f=a?Rr(f)?f:[]:Nr(f)?f:{}),r.push(t),u.push(f),c||jt(f,t,e,r,u)}}else e&&(l=e(f,t),typeof l=="undefined"&&(l=t)),typeof l!="undefined"&&(f=l);n[o]=f})}function Ct(n,t){return n+Ye(mr()*(t-n+1))}function Ot(n,t,u){var o=n?n.length:0;if(!o)return[];var i=-1,a=St(),l=!t&&a===e,f=l&&kr&&200<=o,l=l&&!f,c=[];if(f)var p=kr(),a=r;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 At(n,t){for(var e=-1,r=t(n),u=r.length,o=Re(u);++e<u;)o[e]=n[r[e]];return o}function Et(n,t,e){for(var r=t.length,u=-1,o=hr(e.length-r,0),i=-1,a=n.length,l=Re(o+a);++i<a;)l[i]=n[i];for(;++u<r;)l[t[u]]=e[u];for(;o--;)l[i++]=e[u++];return l}function It(n,t){return function(e,r,u){var i=t?t():{};r=o.createCallback(r,u,3),u=-1;var a=e?e.length:0;
if(typeof a=="number"&&-1<a&&a<=Ke)for(;++u<a;){var l=e[u];n(i,l,r(l,u,e),e)}else st(e,function(t,e,u){n(i,t,r(t,e,u),u)});return i}}function Rt(n,t,e){return n=n.length,t=+t,n<t&&cr(t)?(t-=n,e=null==e?" ":ze(e),ke(e,Je(t/e.length)).slice(0,t)):""}function Nt(n,t,e,r,u,o){var i=t&x,a=t&k,l=t&O,f=t&A;if(!a&&!ge(n))throw new De;l&&!u.length&&(t&=~O,l=u=false),f&&!o.length&&(t&=~A,f=o=false);var c=!a&&n[I];if(c&&true!==c)return c=Ut(c),c[4]&&(c[4]=Ut(c[4])),c[5]&&(c[5]=Ut(c[5])),typeof e=="number"&&(c[2]=e),n=c[1]&x,i&&!n&&(c[3]=r),!i&&n&&(t|=C),l&&(c[4]?nr.apply(c[4],u):c[4]=u),f&&(c[5]?or.apply(c[5],o):c[5]=o),c[1]|=t,Nt.apply(null,c);
if(l)var p=[];if(f)var s=[];return null==e&&(e=a?0:n.length),e=hr(e,0),c=[n,t,e,r,u,o,p,s],t==x||t==(x|O)?m(c):ct(c)}function St(){var n=(n=o.indexOf)===zt?e:n;return n}function Tt(n){return typeof n=="function"&&Ve.test(Ge.call(n))}function Wt(n){var t,e;return n&&Me.call(n)==ut&&(Qe.call(n,"constructor")||(t=n.constructor,!ge(t)||t instanceof t))?(_t(n,function(n,t){e=t}),typeof e=="undefined"||Qe.call(n,e)):false}function Ft(n){for(var t,e=-1,r=be(n),u=r.length,o=u&&n.length,i=o-1,a=[],o=typeof o=="number"&&0<o&&(Rr(n)||xr.nonEnumArgs&&se(n));++e<u;){var l=r[e];
(o&&(t=+l,-1<t&&t<=i&&0==t%1)||Qe.call(n,l))&&a.push(l)}return a}function $t(n,t,e){var r=-1,u=n?n.length:0;for(t=o.createCallback(t,e,3);++r<u;)if(t(n[r],r,n))return r;return-1}function Lt(n,t,e){if(typeof t!="number"&&null!=t){var r=-1,u=n?n.length:0,i=0;for(t=o.createCallback(t,e,3);++r<u&&t(n[r],r,n);)i++}else if(i=t,null==i||e)return n?n[0]:w;return Ut(n,0,0>i?0:i)}function zt(n,t,r){var u=n?n.length:0;if(typeof r=="number")r=0>r?hr(u+r,0):r||0;else if(r)return r=Zt(n,t),u&&n[r]===t?r:-1;return e(n,t,r)
}function Dt(n,t,e){var r=n?n.length:0;if(typeof t!="number"&&null!=t){var u=r,i=0;for(t=o.createCallback(t,e,3);u--&&t(n[u],u,n);)i++}else i=null==t||e?1:t;return i=r-(i||0),Ut(n,0,0>i?0:i)}function Bt(n,t,e){var r=n?n.length:0;if(typeof t!="number"&&null!=t){var u=r,i=0;for(t=o.createCallback(t,e,3);u--&&t(n[u],u,n);)i++}else if(i=t,null==i||e)return n?n[r-1]:w;return i=r-(i||0),Ut(n,0>i?0:i)}function qt(n,t,e){if(typeof t!="number"&&null!=t){var r=-1,u=n?n.length:0,i=0;for(t=o.createCallback(t,e,3);++r<u&&t(n[r],r,n);)i++
}else i=null==t||e?1:0>t?0:t;return Ut(n,i)}function Ut(n,t,e){var r=-1,u=n?n.length:0;for(t=typeof t=="undefined"?0:+t||0,0>t?t=hr(u+t,0):t>u&&(t=u),e=typeof e=="undefined"?u:+e||0,0>e?e=hr(u+e,0):e>u&&(e=u),u=t>e?0:e-t,e=Re(u);++r<u;)e[r]=n[t+r];return e}function Zt(n,t,e,r){var u=0,i=n?n.length:u;for(e=e?o.createCallback(e,r,1):Ce,t=e(t);u<i;)r=u+i>>>1,e(n[r])<t?u=r+1:i=r;return u}function Pt(n,t,e,r){if(!n||!n.length)return[];var u=typeof t;return"boolean"!=u&&null!=t&&(r=e,e=t,t=false,"number"!=u&&"string"!=u||!r||r[e]!==n||(e=null)),null!=e&&(e=o.createCallback(e,r,3)),Ot(n,t,e)
}function Kt(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,e=n?te(Ir(n,"length")):0,r=Re(0>e?0:e);++t<e;)r[t]=Ir(n,t);return r}function Mt(n,t){var e=-1,r=n?n.length:0,u={};for(t||!r||Rr(n[0])||(t=[]);++e<r;){var o=n[e];t?u[o]=t[e]:o&&(u[o[0]]=o[1])}return u}function Vt(){return this.__wrapped__}function Jt(n,t,e){var r=n?n.length:0;if(typeof r!="number"||-1>=r||r>Ke)var u=Sr(n),r=u.length;if(e=typeof e=="number"?0>e?hr(r+e,0):e||0:0,u){for(;e<r;)if(n[u[e++]]===t)return true;return false}return typeof n=="string"||!Rr(n)&&de(n)?e<r?ar?ar.call(n,t,e):-1<n.indexOf(t,e):false:-1<St()(n,t,e)
}function Xt(n,t,e){var r=true;t=o.createCallback(t,e,3),e=-1;var u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=Ke){for(;++e<u;)if(!t(n[e],e,n))return false}else st(n,function(n,e,u){return r=!!t(n,e,u)});return r}function Yt(n,t,e){var r=[];t=o.createCallback(t,e,3),e=-1;var u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=Ke)for(;++e<u;){var i=n[e];t(i,e,n)&&r.push(i)}else st(n,function(n,e,u){t(n,e,u)&&r.push(n)});return r}function Gt(n,t,e){var r=n?n.length:0;return typeof r=="number"&&-1<r&&r<=Ke?(t=$t(n,t,e),-1<t?n[t]:w):(t=o.createCallback(t,e,3),gt(n,t,st))
}function Ht(n,t,e){var r=n?n.length:0;if(t=t&&typeof e=="undefined"?t:X(t,e,3),typeof r=="number"&&-1<r&&r<=Ke)for(e=-1,r=n?n.length:0;++e<r&&false!==t(n[e],e,n););else n=st(n,t);return n}function Qt(n,t,e){var r=n?n.length:0;if(t=t&&typeof e=="undefined"?t:X(t,e,3),typeof r=="number"&&-1<r&&r<=Ke)for(e=n?n.length:0;e--&&false!==t(n[e],e,n););else n=ht(n,t);return n}function ne(n,t,e){var r=n?n.length:0;if(t=o.createCallback(t,e,3),typeof r=="number"&&-1<r&&r<=Ke)return c(n,t);var u=-1,i=[];return st(n,function(n,e,r){i[++u]=t(n,e,r)
}),i}function te(n,t,e){var r=-1/0,i=r,a=typeof t;if("number"!=a&&"string"!=a||!e||e[t]!==n||(t=null),null==t&&Rr(n))for(e=-1,a=n.length;++e<a;){var l=n[e];l>i&&(i=l)}else t=null==t&&de(n)?u:o.createCallback(t,e,3),st(n,function(n,e,u){e=t(n,e,u),e>r&&(r=e,i=n)});return i}function ee(n,t,e,r){var u=3>arguments.length;t=o.createCallback(t,r,4);var i=-1,a=n?n.length:0;if(typeof a=="number"&&-1<a&&a<=Ke)for(u&&a&&(e=n[++i]);++i<a;)e=t(e,n[i],i,n);else st(n,function(n,r,o){e=u?(u=false,n):t(e,n,r,o)});return e
}function re(n,t,e,r){var u=3>arguments.length;return t=o.createCallback(t,r,4),ht(n,function(n,r,o){e=u?(u=false,n):t(e,n,r,o)}),e}function ue(n){var t=-1,e=n&&n.length,r=Re(0>e?0:e>>>0);return st(n,function(n){var e=Ct(0,++t);r[t]=r[e],r[e]=n}),r}function oe(n,t,e){var r;t=o.createCallback(t,e,3),e=-1;var u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=Ke){for(;++e<u;)if(t(n[e],e,n))return true}else st(n,function(n,e,u){return!(r=t(n,e,u))});return!!r}function ie(n,t){if(3>arguments.length)return Nt(n,x,null,t);
if(n)var e=n[I]?n[I][2]:n.length,r=Ut(arguments,2),e=e-r.length;return Nt(n,x|O,e,t,r)}function ae(n,t,e){var r,u,o,i,a,l,f,c=0,p=false,s=true;if(!ge(n))throw new De;if(t=0>t?0:t,true===e)var h=true,s=false;else ve(e)&&(h=e.leading,p="maxWait"in e&&hr(t,+e.maxWait||0),s="trailing"in e?e.trailing:s);var g=function(){var e=t-(Dr()-i);0>=e||e>t?(u&&Xe(u),e=f,u=l=f=w,e&&(c=Dr(),o=n.apply(a,r),l||u||(r=a=null))):l=rr(g,e)},v=function(){l&&Xe(l),u=l=f=w,(s||p!==t)&&(c=Dr(),o=n.apply(a,r),l||u||(r=a=null))};return function(){if(r=arguments,i=Dr(),a=this,f=s&&(l||!h),false===p)var e=h&&!l;
else{u||h||(c=i);var y=p-(i-c),m=0>=y||y>p;m?(u&&(u=Xe(u)),c=i,o=n.apply(a,r)):u||(u=rr(v,y))}return m&&l?l=Xe(l):l||t===p||(l=rr(g,t)),e&&(m=true,o=n.apply(a,r)),!m||l||u||(r=a=null),o}}function le(n){if(!ge(n))throw new De;return function(){return!n.apply(this,arguments)}}function fe(n,t,e){var r=arguments;if(!n||2>r.length)return n;var u=0,o=r.length,i=typeof e;if("number"!=i&&"string"!=i||!r[3]||r[3][e]!==t||(o=2),3<o&&"function"==typeof r[o-2])var a=X(r[--o-1],r[o--],2);else 2<o&&"function"==typeof r[o-1]&&(a=r[--o]);
for(;++u<o;){t=r[u];for(var i=-1,l=Sr(t),f=l.length;++i<f;){var c=l[i];n[c]=a?a(n[c],t[c]):t[c]}}return n}function ce(t){if(!t||2>arguments.length)return t;var e=Ut(arguments);return e.push(n),fe.apply(null,e)}function pe(n){var t=[];return _t(n,function(n,e){ge(n)&&t.push(e)}),t.sort()}function se(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Me.call(n)==H||false}function he(n){return n&&typeof n=="object"&&1===n.nodeType&&-1<Me.call(n).indexOf("Element")||false}function ge(n){return typeof n=="function"
}function ve(n){var t=typeof n;return n&&("function"==t||"object"==t)||false}function ye(n){var t=typeof n;return"number"==t||n&&"object"==t&&Me.call(n)==rt||false}function me(n){return n&&typeof n=="object"&&Me.call(n)==ot||false}function de(n){return typeof n=="string"||n&&typeof n=="object"&&Me.call(n)==it||false}function be(n){if(!ve(n))return[];for(var t,e=n.length,e=(typeof e=="number"&&0<e&&(Rr(n)||xr.nonEnumArgs&&se(n))&&e)>>>0,r=-1,u=e-1,o=Re(e),i=0<e;++r<e;)o[r]=ze(r);for(var a in n)i&&(t=+a,-1<t&&t<=u&&0==t%1)||o.push(a);
return o}function _e(n,t,e){var r={};if(typeof t!="function")for(var u=-1,i=yt(arguments,true,false,1),a=ve(n)?i.length:0;++u<a;){var l=i[u];l in n&&(r[l]=n[l])}else t=o.createCallback(t,e,3),_t(n,function(n,e,u){t(n,e,u)&&(r[e]=n)});return r}function we(n){return At(n,Sr)}function xe(n){return null==n?"":ze(n).replace(M,"\\$&")}function ke(n,t){var e="";if(t=+t,1>t||null==n||!cr(t))return e;n=ze(n);do t%2&&(e+=n),t=Ye(t/2),n+=n;while(t);return e}function je(n,t,e){var r=typeof n;return"function"==r||null==n?(typeof t=="undefined"||!("prototype"in n))&&n||X(n,t,e):"object"!=r?Ie(n):Oe(n)
}function Ce(n){return n}function Oe(n){var t=Sr(n),e=t.length,r=t[0],u=e&&n[r];return 1!=e||u!==u||ve(u)?function(r){var u=e;if(u&&!r)return false;for(var o=true;u--&&(o=t[u],o=Qe.call(r,o)&&kt(r[o],n[o],null,true)););return o}:function(n){return n&&Qe.call(n,r)?(n=n[r],u===n&&(0!==u||1/u==1/n)):false}}function Ae(n,t,e){var r=true,u=t&&pe(t);t&&(e||u.length)||(null==e&&(e=t),t=n,n=o,u=pe(t)),false===e?r=false:ve(e)&&"chain"in e&&(r=e.chain),e=-1;for(var i=ge(n),a=u?u.length:0;++e<a;){var l=u[e],f=n[l]=t[l];i&&(n.prototype[l]=function(t){return function(){var e=this.__chain__,u=this.__wrapped__,o=[u];
if(nr.apply(o,arguments),o=t.apply(n,o),r||e){if(u===o&&ve(o))return this;o=new n(o),o.__chain__=e}return o}}(f))}}function Ee(){}function Ie(n){return function(t){return null==t?w:t[n]}}t=t?dt.defaults(vt.Object(),t,dt.pick(vt,G)):vt;var Re=t.Array,Ne=t.Boolean,Se=t.Date,Te=t.Function,We=t.Math,Fe=t.Number,$e=t.Object,Le=t.RegExp,ze=t.String,De=t.TypeError,Be=Re.prototype,qe=$e.prototype,Ue=ze.prototype,Ze=(Ze=t.window)&&Ze.document,Pe=t._,Ke=We.pow(2,53)-1,Me=qe.toString,Ve=Le("^"+xe(Me).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Je=We.ceil,Xe=t.clearTimeout,Ye=We.floor,Ge=Te.prototype.toString,He=Tt(He=$e.getPrototypeOf)&&He,Qe=qe.hasOwnProperty,nr=Be.push,tr=qe.propertyIsEnumerable,er=Tt(er=t.Set)&&er,rr=t.setTimeout,ur=Be.splice,or=Be.unshift,ir=function(){try{var n={},t=Tt(t=$e.defineProperty)&&t,e=t(n,n,n)&&t
}catch(r){}return e}(),ar=Tt(ar=Ue.contains)&&ar,lr=Tt(lr=$e.create)&&lr,fr=Tt(fr=Re.isArray)&&fr,cr=t.isFinite,pr=t.isNaN,sr=Tt(sr=$e.keys)&&sr,hr=We.max,gr=We.min,vr=Tt(vr=Se.now)&&vr,yr=t.parseInt,mr=We.random,dr=Tt(dr=Ue.trim)&&!dr.call(Y)&&dr,br=Tt(br=Ue.trimLeft)&&!br.call(Y)&&br,_r=Tt(_r=Ue.trimRight)&&!_r.call(Y)&&_r,wr={};wr[Q]=Re,wr[nt]=Ne,wr[tt]=Se,wr[et]=Te,wr[ut]=$e,wr[rt]=Fe,wr[ot]=Le,wr[it]=ze,i.prototype=o.prototype;var xr=o.support={};!function(x_){for(var n in arguments);xr.funcDecomp=!Tt(t.WinRTError)&&V.test(_),xr.funcNames=typeof Te.name=="string";
try{xr.dom=11===Ze.createDocumentFragment().nodeType}catch(e){xr.dom=false}try{xr.nonEnumArgs=!("1"==n&&Qe.call(arguments,n)&&tr.call(arguments,n))}catch(r){xr.nonEnumArgs=true}}(0,0),o.templateSettings={escape:L,evaluate:z,interpolate:D,variable:"",imports:{_:o}},lr||(P=function(){function n(){}return function(e){if(ve(e)){n.prototype=e;var r=new n;n.prototype=null}return r||t.Object()}}());var kr=er&&function(n){var t=new er,e=n?n.length:0;for(t.push=t.add;e--;)t.push(n[e]);return t},jr=ir?function(n,t){ft.value=t,ir(n,I,ft)
}:Ee,Cr=It(function(n,t,e){Qe.call(n,e)?n[e]++:n[e]=1}),Or=It(function(n,t,e){Qe.call(n,e)?n[e].push(t):n[e]=[t]}),Ar=It(function(n,t,e){n[e]=t}),Er=It(function(n,t,e){n[e?0:1].push(t)},h),Ir=ne,Rr=fr||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Me.call(n)==Q||false};xr.dom||(he=function(n){return n&&typeof n=="object"&&1===n.nodeType&&!Nr(n)||false});var Nr=He?function(n){if(!n||Me.call(n)!=ut)return false;var t=n.valueOf,e=Tt(t)&&(e=He(t))&&He(e);return e?n==e||He(n)==e:Wt(n)}:Wt,Sr=sr?function(n){var t=n?n.length:0;
return typeof t=="number"&&0<t?Ft(n):ve(n)?sr(n):[]}:Ft,Tr=f(function(n,t,e){return!e&&N.test(t)?n+t.toLowerCase():n+(t.charAt(0)[e?"toUpperCase":"toLowerCase"]()+t.slice(1))}),Wr=f(function(n,t,e){return n+(e?"-":"")+t.toLowerCase()}),Fr=f(function(n,t,e){return n+(e?"_":"")+t.toLowerCase()}),$r=dr?function(n,t){return null==n?"":null==t?dr.call(n):g(n,t)}:g,Lr=br?function(n,t){return null==n?"":null==t?br.call(n):v(n,t)}:v,zr=_r?function(n,t){return null==n?"":null==t?_r.call(n):y(n,t)}:y,Dr=vr||function(){return(new Se).getTime()
},Br=8==yr(Y+"08")?yr:function(n,t){return n=$r(n),yr(n,+t||(Z.test(n)?16:10))};return o.after=function(n,t){if(!ge(t))throw new De;return n=cr(n=+n)?n:0,function(){return 1>--n?t.apply(this,arguments):void 0}},o.assign=fe,o.at=function(n,t){var e=arguments,r=-1,u=yt(e,true,false,1),o=u.length,i=typeof t;for("number"!=i&&"string"!=i||!e[2]||e[2][t]!==n||(o=1),e=Re(o);++r<o;)e[r]=n[u[r]];return e},o.bind=ie,o.bindAll=function(n){for(var t=1<arguments.length?yt(arguments,true,false,1):pe(n),e=-1,r=t.length;++e<r;){var u=t[e];
n[u]=Nt(n[u],x,null,n)}return n},o.bindKey=function(n,t){return 3>arguments.length?Nt(t,x|k,null,n):Nt(t,x|k|O,null,n,Ut(arguments,2))},o.chain=function(n){return new i(n,true)},o.compact=function(n){for(var t=-1,e=n?n.length:0,r=0,u=[];++t<e;){var o=n[t];o&&(u[r++]=o)}return u},o.compose=function(){for(var n=arguments,t=n.length,e=t;e--;)if(!ge(n[e]))throw new De;return function(){for(var e=t-1,r=n[e].apply(this,arguments);e--;)r=n[e].call(this,r);return r}},o.constant=function(n){return function(){return n
}},o.countBy=Cr,o.create=function(n,t){var e=P(n);return t?fe(e,t):e},o.createCallback=je,o.curry=function(n,t){return typeof t!="number"&&(t=+t||(n?n.length:0)),Nt(n,j,t)},o.debounce=ae,o.defaults=ce,o.defer=function(n){if(!ge(n))throw new De;var t=Ut(arguments,1);return rr(function(){n.apply(w,t)},1)},o.delay=function(n,t){if(!ge(n))throw new De;var e=Ut(arguments,2);return rr(function(){n.apply(w,e)},t)},o.difference=function(){return pt(arguments[0],yt(arguments,true,true,1))},o.drop=qt,o.dropRight=Dt,o.dropRightWhile=Dt,o.dropWhile=qt,o.filter=Yt,o.flatten=function(n,t,e,r){if(!n||!n.length)return[];
var u=typeof t;return"boolean"!=u&&null!=t&&(r=e,e=t,t=false,"number"!=u&&"string"!=u||!r||r[e]!==n||(e=null)),null!=e&&(n=ne(n,e,r)),yt(n,t)},o.forEach=Ht,o.forEachRight=Qt,o.forIn=function(n,t,e){return t=t&&typeof e=="undefined"?t:X(t,e,3),mt(n,t,be)},o.forInRight=function(n,t,e){return t=X(t,e,3),bt(n,t,be)},o.forOwn=function(n,t,e){return t=t&&typeof e=="undefined"?t:X(t,e,3),wt(n,t)},o.forOwnRight=function(n,t,e){return t=X(t,e,3),bt(n,t,Sr)},o.functions=pe,o.groupBy=Or,o.indexBy=Ar,o.initial=Dt,o.intersection=function(){for(var n=[],t=-1,u=arguments.length,o=[],i=St(),a=kr&&i===e;++t<u;){var l=arguments[t];
(Rr(l)||se(l))&&(n.push(l),o.push(a&&120<=l.length&&kr(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?r(s,l):i(p,l))){for(t=u;--t;){var h=o[t];if(0>(h?r(h,l):i(n[t],l)))continue n}s&&s.push(l),p.push(l)}return p},o.invert=function(n,t){for(var e=-1,r=Sr(n),u=r.length,o={};++e<u;){var i=r[e],a=n[i];t?Qe.call(o,a)?o[a].push(i):o[a]=[i]:o[a]=i}return o},o.invoke=function(n,t){var e=Ut(arguments,2),r=-1,u=typeof t=="function",o=n&&n.length,i=Re(0>o?0:o>>>0);
return st(n,function(n){var o=u?t:null!=n&&n[t];i[++r]=o?o.apply(n,e):w}),i},o.keys=Sr,o.keysIn=be,o.map=ne,o.mapValues=function(n,t,e){var r={};return t=o.createCallback(t,e,3),wt(n,function(n,e,u){r[e]=t(n,e,u)}),r},o.matches=Oe,o.max=te,o.memoize=function(n,t){if(!ge(n))throw new De;var e=function(){var r=e.cache,u=t?t.apply(this,arguments):"_"+arguments[0];return Qe.call(r,u)?r[u]:r[u]=n.apply(this,arguments)};return e.cache={},e},o.merge=function(n,t,e){if(!n)return n;var r=arguments,u=r.length,o=typeof e;
if("number"!=o&&"string"!=o||!r[3]||r[3][e]!==t||(u=2),3<u&&"function"==typeof r[u-2])var i=X(r[--u-1],r[u--],2);else 2<u&&"function"==typeof r[u-1]&&(i=r[--u]);for(var r=Ut(r,1,u),o=-1,a=[],l=[];++o<u;)jt(n,r[o],i,a,l);return n},o.min=function(n,t,e){var r=1/0,i=r,a=typeof t;if("number"!=a&&"string"!=a||!e||e[t]!==n||(t=null),null==t&&Rr(n))for(e=-1,a=n.length;++e<a;){var l=n[e];l<i&&(i=l)}else t=null==t&&de(n)?u:o.createCallback(t,e,3),st(n,function(n,e,u){e=t(n,e,u),e<r&&(r=e,i=n)});return i},o.negate=le,o.omit=function(n,t,e){if(typeof t=="function")return t=o.createCallback(t,e,3),_e(n,le(t));
for(var r=yt(arguments,true,false,1),u=r.length;u--;)r[u]=ze(r[u]);return _e(n,pt(be(n),r))},o.once=function(n){var t,e;if(!ge(n))throw new De;return function(){return t?e:(t=true,e=n.apply(this,arguments),n=null,e)}},o.pairs=function(n){for(var t=-1,e=Sr(n),r=e.length,u=Re(r);++t<r;){var o=e[t];u[t]=[o,n[o]]}return u},o.partial=function(n){if(n)var t=n[I]?n[I][2]:n.length,e=Ut(arguments,1),t=t-e.length;return Nt(n,O,t,null,e)},o.partialRight=function(n){if(n)var t=n[I]?n[I][2]:n.length,e=Ut(arguments,1),t=t-e.length;
return Nt(n,A,t,null,null,e)},o.partition=Er,o.pick=_e,o.pluck=Ir,o.property=Ie,o.pull=function(n){for(var t=0,e=arguments.length,r=n?n.length:0;++t<e;)for(var u=-1,o=arguments[t];++u<r;)n[u]===o&&(ur.call(n,u--,1),r--);return n},o.range=function(n,t,e){n=+n||0,e=null==e?1:+e||0,null==t?(t=n,n=0):t=+t||0;var r=-1;t=hr(Je((t-n)/(e||1)),0);for(var u=Re(t);++r<t;)u[r]=n,n+=e;return u},o.reject=function(n,t,e){return t=o.createCallback(t,e,3),Yt(n,le(t))},o.remove=function(n,t,e){var r=-1,u=n?n.length:0,i=[];
for(t=o.createCallback(t,e,3);++r<u;)e=n[r],t(e,r,n)&&(i.push(e),ur.call(n,r--,1),u--);return i},o.rest=qt,o.shuffle=ue,o.slice=Ut,o.sortBy=function(n,t,e){var r=-1,u=n&&n.length,i=t&&Rr(t),f=Re(0>u?0:u>>>0);for(i||(t=o.createCallback(t,e,3)),st(n,function(n,e,u){if(i)for(e=t.length,u=Re(e);e--;)u[e]=n[t[e]];else u=t(n,e,u);f[++r]={a:u,b:r,c:n}}),u=f.length,f.sort(i?l:a);u--;)f[u]=f[u].c;return f},o.tap=function(n,t,e){return t.call(e,n),n},o.throttle=function(n,t,e){var r=true,u=true;if(!ge(n))throw new De;
return false===e?r=false:ve(e)&&(r="leading"in e?!!e.leading:r,u="trailing"in e?!!e.trailing:u),lt.leading=r,lt.maxWait=+t,lt.trailing=u,ae(n,t,lt)},o.times=function(n,t,e){n=0>n?0:n>>>0,t=X(t,e,1),e=-1;for(var r=Re(n);++e<n;)r[e]=t(e);return r},o.toArray=function(n){var t=n&&n.length;return typeof t=="number"&&-1<t&&t<=Ke?Ut(n):we(n)},o.transform=function(n,t,e,r){var u=Rr(n);if(null==e)if(u)e=[];else{var i=n&&n.constructor;e=P(i&&i.prototype)}return t&&(t=o.createCallback(t,r,4),(u?st:wt)(n,function(n,r,u){return t(e,n,r,u)
})),e},o.union=function(){return Ot(yt(arguments,true,true))},o.uniq=Pt,o.values=we,o.valuesIn=function(n){return At(n,be)},o.where=Yt,o.without=function(){return pt(arguments[0],Ut(arguments,1))},o.wrap=function(n,t){return Nt(t,O,null,null,[n])},o.xor=function(){for(var n=-1,t=arguments.length;++n<t;){var e=arguments[n];if(Rr(e)||se(e))var r=r?pt(r,e).concat(pt(e,r)):e}return r?Ot(r):[]},o.zip=Kt,o.zipObject=Mt,o.callback=je,o.collect=ne,o.each=Ht,o.eachRight=Qt,o.extend=fe,o.methods=pe,o.object=Mt,o.select=Yt,o.tail=qt,o.unique=Pt,o.unzip=Kt,Ae(fe({},o)),o.camelCase=Tr,o.capitalize=function(n){return null==n?"":(n=ze(n),n.charAt(0).toUpperCase()+n.slice(1))
},o.clone=function(n,t,e,r){var u=typeof t;return"boolean"!=u&&null!=t&&(r=e,e=t,t=false,"number"!=u&&"string"!=u||!r||r[e]!==n||(e=null)),e=typeof e=="function"&&X(e,r,1),d(n,t,e)},o.cloneDeep=function(n,t,e){return t=typeof t=="function"&&X(t,e,1),d(n,true,t)},o.contains=Jt,o.endsWith=function(n,t,e){n=null==n?"":ze(n),t=ze(t);var r=n.length;return e=(typeof e=="undefined"?r:gr(0>e?0:+e||0,r))-t.length,0<=e&&n.indexOf(t,e)==e},o.escape=function(n){return null==n?"":ze(n).replace($,p)},o.escapeRegExp=xe,o.every=Xt,o.find=Gt,o.findIndex=$t,o.findKey=function(n,t,e){return t=o.createCallback(t,e,3),gt(n,t,wt,true)
},o.findLast=function(n,t,e){return t=o.createCallback(t,e,3),gt(n,t,ht)},o.findLastIndex=function(n,t,e){var r=n?n.length:0;for(t=o.createCallback(t,e,3);r--;)if(t(n[r],r,n))return r;return-1},o.findLastKey=function(n,t,e){return t=o.createCallback(t,e,3),gt(n,t,xt,true)},o.has=function(n,t){return n?Qe.call(n,t):false},o.identity=Ce,o.indexOf=zt,o.isArguments=se,o.isArray=Rr,o.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&Me.call(n)==nt||false},o.isDate=function(n){return n&&typeof n=="object"&&Me.call(n)==tt||false
},o.isElement=he,o.isEmpty=function(n){var t=true;if(!n)return t;var e=Me.call(n),r=n.length;return-1<r&&r<=Ke&&(e==Q||e==it||e==H||e==ut&&ge(n.splice))?!r:(wt(n,function(){return t=false}),t)},o.isEqual=function(n,t,e,r){if(e=typeof e=="function"&&X(e,r,2),!e){if(n===t)return 0!==n||1/n==1/t;r=typeof n;var u=typeof t;if(n===n&&(null==n||null==t||"function"!=r&&"object"!=r&&"function"!=u&&"object"!=u))return false}return kt(n,t,e)},o.isFinite=function(n){return cr(n)&&!pr(parseFloat(n))},o.isFunction=ge,o.isNaN=function(n){return ye(n)&&n!=+n
},o.isNull=function(n){return null===n},o.isNumber=ye,o.isObject=ve,o.isPlainObject=Nr,o.isRegExp=me,o.isString=de,o.isUndefined=function(n){return typeof n=="undefined"},o.kebabCase=Wr,o.lastIndexOf=function(n,t,e){var r=n?n.length:0;for(typeof e=="number"&&(r=(0>e?hr(r+e,0):gr(e||0,r-1))+1);r--;)if(n[r]===t)return r;return-1},o.mixin=Ae,o.noConflict=function(){return t._=Pe,this},o.noop=Ee,o.now=Dr,o.pad=function(n,t,e){n=null==n?"":ze(n),t=+t;var r=n.length;return r<t&&cr(t)?(r=(t-r)/2,t=Ye(r),r=Je(r),e=Rt("",r,e),e.slice(0,t)+n+e):n
},o.padLeft=function(n,t,e){return n=null==n?"":ze(n),Rt(n,t,e)+n},o.padRight=function(n,t,e){return n=null==n?"":ze(n),n+Rt(n,t,e)},o.parseInt=Br,o.random=function(n,t,e){var r=null==n,u=null==t;return null==e&&(u&&typeof n=="boolean"?(e=n,n=1):typeof t=="boolean"&&(e=t,u=true)),r&&u&&(t=1,u=false),n=+n||0,u?(t=n,n=0):t=+t||0,e||n%1||t%1?(e=mr(),gr(n+e*(t-n+parseFloat("1e-"+((e+"").length-1))),t)):Ct(n,t)},o.reduce=ee,o.reduceRight=re,o.repeat=ke,o.result=function(n,t,e){var r=null==n?w:n[t];return typeof r=="undefined"?e:ge(r)?n[t]():r
},o.runInContext=_,o.size=function(n){var t=n?n.length:0;return typeof t=="number"&&-1<t&&t<=Ke?t:Sr(n).length},o.some=oe,o.sortedIndex=Zt,o.snakeCase=Fr,o.startsWith=function(n,t,e){return n=null==n?"":ze(n),e=typeof e=="undefined"?0:gr(0>e?0:+e||0,n.length),n.lastIndexOf(t,e)==e},o.template=function(n,t,e){var r=o.templateSettings;e=ce({},e,r),n=ze(null==n?"":n);var u,i,a=ce({},e.imports,r.imports),r=Sr(a),a=we(a),l=0,f=e.interpolate||K,c="__p+='",f=Le((e.escape||K).source+"|"+f.source+"|"+(f===D?B:K).source+"|"+(e.evaluate||K).source+"|$","g");
n.replace(f,function(t,e,r,o,a,f){return r||(r=o),c+=n.slice(l,f).replace(J,s),e&&(u=true,c+="'+__e("+e+")+'"),a&&(i=true,c+="';"+a+";\n__p+='"),r&&(c+="'+((__t=("+r+"))==null?'':__t)+'"),l=f+t.length,t}),c+="';",(e=e.variable)||(c="with(obj){"+c+"}"),c=(i?c.replace(S,""):c).replace(T,"$1").replace(W,"$1;"),c="function("+(e||"obj")+"){"+(e?"":"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=Te(r,"return "+c).apply(w,a)
}catch(h){throw h.source=c,h}return t?p(t):(p.source=c,p)},o.trim=$r,o.trimLeft=Lr,o.trimRight=zr,o.truncate=function(n,t){var e=30,r="...";if(t&&ve(t))var u="separator"in t?t.separator:u,e="length"in t?+t.length||0:e,r="omission"in t?ze(t.omission):r;else null!=t&&(e=+t||0);if(n=null==n?"":ze(n),e>=n.length)return n;var o=e-r.length;if(1>o)return r;if(e=n.slice(0,o),null==u)return e+r;if(me(u)){if(n.slice(o).search(u)){var i,a,l=n.slice(0,o);for(u.global||(u=Le(u.source,(q.exec(u)||"")+"g")),u.lastIndex=0;i=u.exec(l);)a=i.index;
e=e.slice(0,null==a?o:a)}}else n.indexOf(u,o)!=o&&(u=e.lastIndexOf(u),-1<u&&(e=e.slice(0,u)));return e+r},o.unescape=function(n){return null==n?"":(n=ze(n),0>n.indexOf(";")?n:n.replace(F,b))},o.uniqueId=function(n){var t=++R;return ze(null==n?"":n)+t},o.all=Xt,o.any=oe,o.detect=Gt,o.findWhere=Gt,o.foldl=ee,o.foldr=re,o.include=Jt,o.inject=ee,Ae(function(){var n={};return wt(o,function(t,e){o.prototype[e]||(n[e]=t)}),n}(),false),o.first=Lt,o.last=Bt,o.sample=function(n,t,e){return n&&typeof n.length!="number"&&(n=we(n)),null==t||e?(t=n?n.length:0,0<t?n[Ct(0,t-1)]:w):(n=ue(n),n.length=gr(0>t?0:+t||0,n.length),n)
},o.take=Lt,o.takeRight=Bt,o.takeRightWhile=Bt,o.takeWhile=Lt,o.head=Lt,wt(o,function(n,t){var e="sample"!==t;o.prototype[t]||(o.prototype[t]=function(t,r){var u=this.__chain__,o=n(this.__wrapped__,t,r);return u||null!=t&&(!r||e&&typeof t=="function")?new i(o,u):o})}),o.VERSION=E,o.prototype.chain=function(){return this.__chain__=true,this},o.prototype.toJSON=Vt,o.prototype.toString=function(){return ze(this.__wrapped__)},o.prototype.value=Vt,o.prototype.valueOf=Vt,st(["join","pop","shift"],function(n){var t=Be[n];
o.prototype[n]=function(){var n=this.__chain__,e=t.apply(this.__wrapped__,arguments);return n?new i(e,n):e}}),st(["push","reverse","sort","unshift"],function(n){var t=Be[n];o.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),st(["concat","splice"],function(n){var t=Be[n];o.prototype[n]=function(){return new i(t.apply(this.__wrapped__,arguments),this.__chain__)}}),o}var w,x=1,k=2,j=4,C=8,O=16,A=32,E="2.4.1",I="__lodash@"+E+"__",R=0,N=/^[A-Z]+$/,S=/\b__p\+='';/g,T=/\b(__p\+=)''\+/g,W=/(__e\(.*?\)|\b__t\))\+'';/g,F=/&(?:amp|lt|gt|quot|#39);/g,$=/[&<>"']/g,L=/<%-([\s\S]+?)%>/g,z=/<%([\s\S]+?)%>/g,D=/<%=([\s\S]+?)%>/g,B=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,q=/\w*$/,U=/^\s*function[ \n\r\t]+\w/,Z=/^0[xX]/,P=/[\xC0-\xFF]/g,K=/($^)/,M=/[.*+?^${}()|[\]\\]/g,V=/\bthis\b/,J=/['\n\r\u2028\u2029\\]/g,X=/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[a-z]+|[0-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 Function Math Number Object RegExp Set String _ clearTimeout document isFinite isNaN parseInt setTimeout TypeError window WinRTError".split(" "),H="[object Arguments]",Q="[object Array]",nt="[object Boolean]",tt="[object Date]",et="[object Function]",rt="[object Number]",ut="[object Object]",ot="[object RegExp]",it="[object String]",at={};
at[et]=false,at[H]=at[Q]=at[nt]=at[tt]=at[rt]=at[ut]=at[ot]=at[it]=true;var lt={leading:false,maxWait:0,trailing:false},ft={configurable:false,enumerable:false,value:null,writable:false},ct={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},pt={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},st={\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":" "},ht={"function":true,object:true},gt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},vt=ht[typeof window]&&window||this,yt=ht[typeof exports]&&exports&&!exports.nodeType&&exports,ht=ht[typeof module]&&module&&!module.nodeType&&module,mt=yt&&ht&&typeof global=="object"&&global;
!mt||mt.global!==mt&&mt.window!==mt&&mt.self!==mt||(vt=mt);var mt=ht&&ht.exports===yt&&yt,dt=_();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(vt._=dt, define(function(){return dt})):yt&&ht?mt?(ht.exports=dt)._=dt:yt._=dt:vt._=dt}).call(this);

View File

@@ -205,6 +205,16 @@
return '\\' + stringEscapes[chr];
}
/**
* Used by `_.partition` to create partitioned arrays.
*
* @private
* @returns {Array} Returns the new array.
*/
function partitionInitializer() {
return [[], []];
}
/**
* Used by `_.unescape` to convert HTML entities to characters.
*
@@ -426,6 +436,47 @@
/*--------------------------------------------------------------------------*/
/**
* A specialized version of `_.forEach` for arrays without support for
* callback shorthands or `this` binding.
*
* @private
* @param {Array} array The array to iterate over.
* @param {Function} callback The function called per iteration.
* @returns {Array} Returns `array`.
*/
function arrayEach(array, callback) {
var index = -1,
length = array ? array.length : 0;
while (++index < length) {
if (callback(array[index], index, array) === breakIndicator) {
break;
}
}
return array;
}
/**
* A specialized version of `_.map` for arrays without support for callback
* shorthands or `this` binding.
*
* @private
* @param {Array} array The array to iterate over.
* @param {Function} callback The function called per iteration.
* @returns {Array} Returns the new mapped array.
*/
function arrayMap(array, callback) {
var index = -1,
length = array ? array.length >>> 0 : 0,
result = Array(length);
while (++index < length) {
result[index] = callback(array[index], index, array);
}
return result;
}
/**
* The base implementation of `_.create` without support for assigning
* properties to the created object.
@@ -990,20 +1041,20 @@
}
/**
* Creates a function that aggregates a collection, creating an object or
* array composed from the results of running each element in the collection
* Creates a function that aggregates a collection, creating an accumulator
* object composed from the results of running each element in the collection
* through a callback. The given setter function sets the keys and values of
* the composed object or array.
* the accumulator object. If `initializer` is provided will be used to
* initialize the accumulator object.
*
* @private
* @param {Function} setter The setter function.
* @param {boolean} [retArray=false] A flag to indicate that the aggregator
* function should return an array.
* @param {Function} setter The function to set keys and values of the accumulator object.
* @param {Function} [initializer] The function to initialize the accumulator object.
* @returns {Function} Returns the new aggregator function.
*/
function createAggregator(setter, retArray) {
function createAggregator(setter, initializer) {
return function(collection, callback, thisArg) {
var result = retArray ? [[], []] : {};
var result = initializer ? initializer() : {};
callback = createCallback(callback, thisArg, 3);
var index = -1,
@@ -1941,7 +1992,7 @@
*
* @name valueOf
* @memberOf _
* @alias value, toJSON
* @alias toJSON, value
* @category Chaining
* @returns {*} Returns the wrapped value.
* @example
@@ -1983,17 +2034,21 @@
* // => true
*/
function contains(collection, target) {
var indexOf = getIndexOf(),
length = collection ? collection.length : 0,
result = false;
var length = collection ? collection.length : 0;
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
var indexOf = getIndexOf();
return indexOf(collection, target) > -1;
}
baseEach(collection, function(value) {
return (result = value === target) && breakIndicator;
});
return result;
var props = keys(collection);
length = props.length;
while (length--) {
var value = collection[props[length]];
if (value === target) {
return true;
}
}
return false;
}
/**
@@ -2077,8 +2132,8 @@
*/
function every(collection, predicate, thisArg) {
var result = true;
predicate = createCallback(predicate, thisArg, 3);
var index = -1,
length = collection ? collection.length : 0;
@@ -2138,8 +2193,8 @@
*/
function filter(collection, predicate, thisArg) {
var result = [];
predicate = createCallback(predicate, thisArg, 3);
var index = -1,
length = collection ? collection.length : 0;
@@ -2241,20 +2296,12 @@
* // => logs each number and returns the object (property order is not guaranteed across environments)
*/
function forEach(collection, callback, thisArg) {
var index = -1,
length = collection ? collection.length : 0;
var length = collection ? collection.length : 0;
callback = callback && typeof thisArg == 'undefined' ? callback : baseCreateCallback(callback, thisArg, 3);
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
while (++index < length) {
if (callback(collection[index], index, collection) === breakIndicator) {
break;
}
}
} else {
baseEach(collection, callback);
}
return collection;
return (typeof length == 'number' && length > -1 && length <= maxSafeInteger)
? arrayEach(collection, callback)
: baseEach(collection, callback);
}
/**
@@ -2419,21 +2466,18 @@
* // => ['barney', 'fred']
*/
function map(collection, callback, thisArg) {
var index = -1,
length = collection ? collection.length : 0;
var length = collection ? collection.length : 0;
callback = createCallback(callback, thisArg, 3);
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
var result = Array(length);
while (++index < length) {
result[index] = callback(collection[index], index, collection);
}
} else {
result = [];
baseEach(collection, function(value, key, collection) {
result[++index] = callback(value, key, collection);
});
return arrayMap(collection, callback);
}
var index = -1,
result = [];
baseEach(collection, function(value, key, collection) {
result[++index] = callback(value, key, collection);
});
return result;
}
@@ -2629,7 +2673,7 @@
*/
var partition = createAggregator(function(result, value, key) {
result[key ? 0 : 1].push(value);
}, true);
}, partitionInitializer);
/**
* Retrieves the value of a specified property from all elements in the collection.
@@ -2728,8 +2772,8 @@
*/
function reduceRight(collection, callback, accumulator, thisArg) {
var noaccum = arguments.length < 3;
callback = createCallback(callback, thisArg, 4);
baseEachRight(collection, function(value, index, collection) {
accumulator = noaccum
? (noaccum = false, value)
@@ -2837,7 +2881,6 @@
result[index] = result[rand];
result[rand] = value;
});
return result;
}
@@ -2912,8 +2955,8 @@
*/
function some(collection, predicate, thisArg) {
var result;
predicate = createCallback(predicate, thisArg, 3);
var index = -1,
length = collection ? collection.length : 0;
@@ -3435,6 +3478,9 @@
* // => { 'name': 'penelope', 'age': 1 }
*/
function memoize(func, resolver) {
if (!isFunction(func)) {
throw new TypeError;
}
var cache = {};
return function() {
var key = resolver ? resolver.apply(this, arguments) : '_' + arguments[0];
@@ -3995,6 +4041,11 @@
* by the method instead. The callback is bound to `thisArg` and invoked
* with two arguments; (value, other).
*
* Note: This method supports comparing arrays, booleans, `Date` objects,
* numbers, `Object` objects, regexes, and strings. Functions and DOM nodes
* are **not** supported. A callback may be used to extend support for
* comparing other values.
*
* @static
* @memberOf _
* @category Objects
@@ -4357,7 +4408,7 @@
* @memberOf _
* @category Objects
* @param {Object} object The object to inspect.
* @returns {Array} Returns new array of key-value pairs.
* @returns {Array} Returns the new array of key-value pairs.
* @example
*
* _.pairs({ 'barney': 36, 'fred': 40 });
@@ -4766,14 +4817,15 @@
* // => { 'name': 'barney', 'age': 36 }
*/
function matches(source) {
source || (source = {});
var props = keys(source),
propsLength = props.length;
return function(object) {
var length = propsLength,
result = true;
var length = propsLength;
if (length && !object) {
return false;
}
var result = true;
while (length--) {
var key = props[length];
if (!(result = hasOwnProperty.call(object, key) &&
@@ -5079,10 +5131,11 @@
*/
function times(n, callback, thisArg) {
n = n < 0 ? 0 : n >>> 0;
callback = baseCreateCallback(callback, thisArg, 1);
var index = -1,
result = Array(n);
callback = baseCreateCallback(callback, thisArg, 1);
while (++index < n) {
result[index] = callback(index);
}

View File

@@ -3,38 +3,38 @@
* Lo-Dash 2.4.1 (Custom Build) lodash.com/license | Underscore.js 1.6.0 underscorejs.org/LICENSE
* 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 Er[n]}function e(n){return"\\"+Sr[n]}function u(n){return Or[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 Q(n)?Kr(n):{}}function a(n,r,t){if(typeof n!="function")return er;
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 P(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=Zr(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),Q(a)?a:n):t.apply(n,c)}var t=n[0],e=n[3],u=n[4],o=n[6],i=n[1]&ar;return r}function l(n,r){var t=n?n.length:0;if(!t)return[];for(var e=-1,u=j(),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<=Dr)for(;++t<e&&r(n[t],t,n)!==pr;);else v(n,r,gt);return n}function s(n,r){var t=n?n.length:0;if(typeof t=="number"&&-1<t&&t<=Dr)for(;t--&&r(n[t],t,n)!==pr;);else for(var t=gt(n),e=t.length;e--;){var u=t[e];
if(r(n[u],u,n)===pr)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,pr):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"&&(st(i)||K(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)===pr)break}return n}function y(n,r){return v(n,r,Z)
}function m(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=Wr.call(n),u=Wr.call(r),i!=u)return false;switch(i){case _r:case wr:return+n==+r;case jr:return n!=+n?r!=+r:0==n?1/n==1/r:n==+r;case Ar:case Tr:return n==r+""}if(u=i==dr,!u){var f=n instanceof o,a=r instanceof o;if(f||a)return m(f?n.__wrapped__:n,a?r.__wrapped__:r,t,e);if(i!=xr)return false;if(i=Vr.call(n,"constructor"),f=Vr.call(r,"constructor"),i!=f||!i&&(i=n.constructor,f=r.constructor,i!=f&&!(L(i)&&i instanceof i&&L(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=m(n[l],r[l],t,e)););}else y(r,function(r,u,o){return Vr.call(o,u)?(l++,!(c=Vr.call(n,u)&&m(n[u],r,t,e))&&pr):void 0}),c&&y(n,function(n,r,t){return Vr.call(t,r)?!(c=-1<--l)&&pr:void 0});return t.pop(),e.pop(),c}function b(n,r){return n+Pr(tt()*(r-n+1))}function d(n,r,t){var e=n?n.length:0;if(!e)return[];for(var u=-1,o=j(),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=tr(e,u,3),u=-1;var i=t?t.length:0;if(typeof i=="number"&&-1<i&&i<=Dr)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 w(n,r,t,e,u,i){var f=r&cr,a=r&lr;if(!L(n))throw new TypeError;if(a&&!u.length&&(r&=~lr,a=u=false),a){var l,a=u;l=-1;for(var p=a.length,s=[];++l<p;)a[l]===o&&s.push(l);l=s}return null==t&&(t=f?0:n.length),t=Zr(t,0),c([n,r,t,e,u,i,l])
}function j(){var r=(r=o.indexOf)===E?n:r;return r}function x(n){return typeof n=="function"&&zr.test(Ur.call(n))}function A(n){for(var r=-1,t=Z(n),e=t.length,u=[];++r<e;){var o=t[r];Vr.call(n,o)&&u.push(o)}return u}function T(n,r,t){return null==r||t?n?n[0]:fr:k(n,0,0>r?0:r)}function E(r,t,e){var u=r?r.length:0;if(typeof e=="number")e=0>e?Zr(u+e,0):e||0;else if(e)return e=S(r,t),u&&r[e]===t?e:-1;return n(r,t,e)}function O(n,r,t){return k(n,null==r||t?1:0>r?0:r)}function k(n,r,t){var e=-1,u=n?n.length:0;
for(r=typeof r=="undefined"?0:+r||0,0>r?r=Zr(u+r,0):r>u&&(r=u),t=typeof t=="undefined"?u:+t||0,0>t?t=Zr(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 S(n,r,t,e){var u=0,o=n?n.length:u;for(t=t?tr(t,e,1):er,r=t(r);u<o;)e=u+o>>>1,t(n[e])<r?u=e+1:o=e;return u}function N(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=tr(t,e,3)),d(n,r,t)}function q(n,r){var t=j(),e=n?n.length:0,u=false;
return typeof e=="number"&&-1<e&&e<=Dr?-1<t(n,r):(p(n,function(n){return(u=n===r)&&pr}),u)}function F(n,r,t){var e=true;r=tr(r,t,3),t=-1;var u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=Dr){for(;++t<u;)if(!r(n[t],t,n))return false}else p(n,function(n,t,u){return!(e=!!r(n,t,u))&&pr});return e}function B(n,r,t){var e=[];r=tr(r,t,3),t=-1;var u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=Dr)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 M(n,r,t){var e=n?n.length:0;
if(typeof e=="number"&&-1<e&&e<=Dr){n:{var e=-1,u=n?n.length:0;for(r=tr(r,t,3);++e<u;)if(r(n[e],e,n)){r=e;break n}r=-1}return-1<r?n[r]:fr}return r=tr(r,t,3),g(n,r,p)}function R(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<=Dr)for(;++e<u&&r(n[e],e,n)!==pr;);else p(n,r);return n}function $(n,r,t){var e=-1,u=n?n.length:0;if(r=tr(r,t,3),typeof u=="number"&&-1<u&&u<=Dr)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 I(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<=Dr)for(;++o<i;)t=n[o],t>u&&(u=t);else r=tr(r,t,3),p(n,function(n,t,o){t=r(n,t,o),t>e&&(e=t,u=n)});return u}function D(n,r,t,e){var u=3>arguments.length;r=tr(r,e,4);var o=-1,i=n?n.length:0;if(typeof i=="number"&&-1<i&&i<=Dr)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 W(n,r,t,e){var u=3>arguments.length;
return r=tr(r,e,4),s(n,function(n,e,o){t=u?(u=false,n):r(t,n,e,o)}),t}function z(n){var r=-1,t=n&&n.length,e=Array(0>t?0:t>>>0);return p(n,function(n){var t=b(0,++r);e[r]=e[t],e[t]=n}),e}function C(n,r,t){var e;r=tr(r,t,3),t=-1;var u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=Dr){for(;++t<u;)if(r(n[t],t,n))return true}else p(n,function(n,t,u){return(e=r(n,t,u))&&pr});return!!e}function P(n,r){return 3>arguments.length?w(n,ar,null,r):w(n,ar|lr,null,r,k(arguments,2))}function U(n,r,t){var e,u,o,i,f,a,c,l=0,p=false,s=true;
if(!L(n))throw new TypeError;if(r=0>r?0:r,true===t)var g=true,s=false;else Q(t)&&(g=t.leading,p="maxWait"in t&&Zr(r,+t.maxWait||0),s="trailing"in t?t.trailing:s);var h=function(){var t=r-(ht()-i);0>=t||t>r?(u&&clearTimeout(u),t=c,u=a=c=fr,t&&(l=ht(),o=n.apply(f,e),a||u||(e=f=null))):a=setTimeout(h,t)},v=function(){a&&clearTimeout(a),u=a=c=fr,(s||p!==r)&&(l=ht(),o=n.apply(f,e),a||u||(e=f=null))};return function(){if(e=arguments,i=ht(),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 V(n){if(!L(n))throw new TypeError;return function(){return!n.apply(this,arguments)}}function G(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 H(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 J(n){var r=[];return y(n,function(n,t){L(n)&&r.push(t)}),r.sort()}function K(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Wr.call(n)==br||false}function L(n){return typeof n=="function"}function Q(n){var r=typeof n;return n&&("function"==r||"object"==r)||false}function X(n){var r=typeof n;return"number"==r||n&&"object"==r&&Wr.call(n)==jr||false}function Y(n){return typeof n=="string"||n&&typeof n=="object"&&Wr.call(n)==Tr||false
}function Z(n){var r=[];if(!Q(n))return r;for(var t in n)r.push(t);return r}function nr(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 rr(n){for(var r=-1,t=gt(n),e=t.length,u=Array(e);++r<e;)u[r]=n[t[r]];return u}function tr(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?ir(n):ur(n)}function er(n){return n}function ur(n){n||(n={});var r=gt(n),t=r.length;return function(e){for(var u=t,o=true;u--&&(o=r[u],o=Vr.call(e,o)&&e[o]===n[o]););return o
}}function or(n){for(var r=-1,t=J(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 Gr.apply(n,arguments),n=r.apply(o,n),this.__chain__?new i(n,true):n}}()}}function ir(n){return function(r){return null==r?fr:r[n]}}var fr,ar=1,cr=2,lr=16,pr="__lodash@2.4.1__breaker__",sr=0,gr=/&(?:amp|lt|gt|quot|#x27);/g,hr=/[&<>"']/g,vr=/($^)/,yr=/[.*+?^${}()|[\]\\]/g,mr=/['\n\r\u2028\u2029\\]/g,br="[object Arguments]",dr="[object Array]",_r="[object Boolean]",wr="[object Date]",jr="[object Number]",xr="[object Object]",Ar="[object RegExp]",Tr="[object String]",Er={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"},Or={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#x27;":"'"},kr={"function":true,object:true},Sr={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Nr=kr[typeof window]&&window||this,qr=kr[typeof exports]&&exports&&!exports.nodeType&&exports,Fr=kr[typeof module]&&module&&!module.nodeType&&module,Br=qr&&Fr&&typeof global=="object"&&global;
!Br||Br.global!==Br&&Br.window!==Br&&Br.self!==Br||(Nr=Br);var Mr=Fr&&Fr.exports===qr&&qr,Rr=Array.prototype,$r=Object.prototype,Ir=Nr._,Dr=Math.pow(2,53)-1,Wr=$r.toString,zr=RegExp("^"+(null==Wr?"":(Wr+"").replace(yr,"\\$&")).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Cr=Math.ceil,Pr=Math.floor,Ur=Function.prototype.toString,Vr=$r.hasOwnProperty,Gr=Rr.push,Hr=$r.propertyIsEnumerable,Jr=Rr.splice,Kr=x(Kr=Object.create)&&Kr,Lr=x(Lr=Array.isArray)&&Lr,Qr=Nr.isFinite,Xr=Nr.isNaN,Yr=x(Yr=Object.keys)&&Yr,Zr=Math.max,nt=Math.min,rt=x(rt=Date.now)&&rt,tt=Math.random;
i.prototype=o.prototype;var et={};!function(n){n={0:1,length:1},et.spliceObjects=(Jr.call(n,0,1),!n[0])}(0,0),o.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:""},Kr||(f=function(){function n(){}return function(r){if(Q(r)){n.prototype=r;var t=new n;n.prototype=null}return t||Nr.Object()}}());var ut=O,ot=T,it=_(function(n,r,t){Vr.call(n,t)?n[t]++:n[t]=1}),ft=_(function(n,r,t){Vr.call(n,t)?n[t].push(r):n[t]=[r]}),at=_(function(n,r,t){n[t]=r
}),ct=_(function(n,r,t){n[t?0:1].push(r)},true),lt=$,pt=B;K(arguments)||(K=function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Vr.call(n,"callee")&&!Hr.call(n,"callee")||false});var st=Lr||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Wr.call(n)==dr||false};L(/x/)&&(L=function(n){return typeof n=="function"&&"[object Function]"==Wr.call(n)});var gt=Yr?function(n){return Q(n)?Yr(n):[]}:A,ht=rt||function(){return(new Date).getTime()};o.after=function(n,r){if(!L(r))throw new TypeError;
return n=Qr(n=+n)?n:0,function(){return 1>--n?r.apply(this,arguments):void 0}},o.bind=P,o.bindAll=function(n){for(var r=1<arguments.length?h(arguments,true,false,1):J(n),t=-1,e=r.length;++t<e;){var u=r[t];n[u]=w(n[u],ar,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(!L(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=it,o.debounce=U,o.defaults=H,o.defer=function(n){if(!L(n))throw new TypeError;var r=k(arguments,1);return setTimeout(function(){n.apply(fr,r)},1)},o.delay=function(n,r){if(!L(n))throw new TypeError;var t=k(arguments,2);return setTimeout(function(){n.apply(fr,t)},r)},o.difference=function(){return l(arguments[0],h(arguments,true,true,1))},o.drop=ut,o.filter=B,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=R,o.functions=J,o.groupBy=ft,o.indexBy=at,o.initial=function(n,r,t){var e=n?n.length:0;return(null==r||t)&&(r=1),r=e-(r||0),k(n,0,0>r?0:r)},o.intersection=function(){for(var n=[],r=-1,t=arguments.length;++r<t;){var e=arguments[r];(st(e)||K(e))&&n.push(e)}var t=n.length,u=n[0],o=-1,i=j(),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=gt(n),e=t.length,u={};++r<e;){var o=t[r];u[n[o]]=o}return u
},o.invoke=function(n,r){var t=k(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):fr}),i},o.keys=gt,o.map=$,o.matches=ur,o.max=I,o.memoize=function(n,r){var t={};return function(){var e=r?r.apply(this,arguments):"_"+arguments[0];return Vr.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<=Dr)for(;++o<i;)t=n[o],t<u&&(u=t);else r=tr(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=h(arguments,true,false,1),t=r.length;t--;)r[t]=r[t]+"";return nr(n,l(Z(n),r))},o.once=function(n){var r,t;if(!L(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=gt(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 w(n,lr,null,null,k(arguments,1))
},o.partition=ct,o.pick=nr,o.pluck=lt,o.property=ir,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=Zr(Cr((r-n)/(t||1)),0);for(var u=Array(r);++e<r;)u[e]=n,n+=t;return u},o.reject=function(n,r,t){return r=tr(r,t,3),B(n,V(r))},o.rest=O,o.shuffle=z,o.sortBy=function(n,t,e){var u=-1,o=n&&n.length,i=Array(0>o?0:o>>>0);for(t=tr(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(!L(n))throw new TypeError;return false===t?e=false:Q(t)&&(e="leading"in t?t.leading:e,u="trailing"in t?t.trailing:u),U(n,r,{leading:e,maxWait:r,trailing:u})},o.times=function(n,r,t){n=0>n?0: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 st(n)?k(n):n&&typeof n.length=="number"?$(n):rr(n)},o.union=function(){return d(h(arguments,true,true))},o.uniq=N,o.values=rr,o.where=pt,o.without=function(){return l(arguments[0],k(arguments,1))},o.wrap=function(n,r){return w(r,lr,null,null,[n])
},o.zip=function(){for(var n=-1,r=I(lt(arguments,"length")),t=Array(0>r?0:r);++n<r;)t[n]=lt(arguments,n);return t},o.collect=$,o.each=R,o.extend=G,o.methods=J,o.object=function(n,r){var t=-1,e=n?n.length:0,u={};for(r||!e||st(n[0])||(r=[]);++t<e;){var o=n[t];r?u[o]=r[t]:o&&(u[o[0]]=o[1])}return u},o.select=B,o.tail=O,o.unique=N,o.clone=function(n){return Q(n)?st(n)?k(n):G({},n):n},o.contains=q,o.escape=function(n){return null==n?"":(n+"").replace(hr,t)},o.every=F,o.find=M,o.has=function(n,r){return n?Vr.call(n,r):false
},o.identity=er,o.indexOf=E,o.isArguments=K,o.isArray=st,o.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&Wr.call(n)==_r||false},o.isDate=function(n){return n&&typeof n=="object"&&Wr.call(n)==wr||false},o.isElement=function(n){return n&&1===n.nodeType||false},o.isEmpty=function(n){if(!n)return true;if(st(n)||Y(n))return!n.length;for(var r in n)if(Vr.call(n,r))return false;return true},o.isEqual=function(n,r){return m(n,r)},o.isFinite=function(n){return Qr(n)&&!Xr(parseFloat(n))},o.isFunction=L,o.isNaN=function(n){return X(n)&&n!=+n
},o.isNull=function(n){return null===n},o.isNumber=X,o.isObject=Q,o.isRegExp=function(n){var r=typeof n;return n&&("function"==r||"object"==r)&&Wr.call(n)==Ar||false},o.isString=Y,o.isUndefined=function(n){return typeof n=="undefined"},o.lastIndexOf=function(n,r,t){var e=n?n.length:0;for(typeof t=="number"&&(e=(0>t?Zr(e+t,0):nt(t||0,e-1))+1);e--;)if(n[e]===r)return e;return-1},o.mixin=or,o.noConflict=function(){return Nr._=Ir,this},o.now=ht,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+Pr(tt()*(r-n+1))
},o.reduce=D,o.reduceRight=W,o.result=function(n,r){if(null!=n){var t=n[r];return L(t)?n[r]():t}},o.size=function(n){var r=n?n.length:0;return typeof r=="number"&&-1<r&&r<=Dr?r:gt(n).length},o.some=C,o.sortedIndex=S,o.template=function(n,r,t){var u=o,i=u.templateSettings;n=(null==n?"":n)+"",t=H({},t,i);var f=0,a="__p+='",i=t.variable;n.replace(RegExp((t.escape||vr).source+"|"+(t.interpolate||vr).source+"|"+(t.evaluate||vr).source+"|$","g"),function(r,t,u,o,i){return a+=n.slice(f,i).replace(mr,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(gr,u))},o.uniqueId=function(n){var r=++sr+"";return n?n+r:r},o.all=F,o.any=C,o.detect=M,o.findWhere=M,o.foldl=D,o.foldr=W,o.include=q,o.inject=D,o.first=T,o.last=function(n,r,t){var e=n?n.length:0;
return null==r||t?n?n[e-1]:fr:(r=e-(r||0),k(n,0>r?0:r))},o.sample=function(n,r,t){return n&&typeof n.length!="number"&&(n=rr(n)),null==r||t?(r=n?n.length:0,0<r?n[b(0,r-1)]:fr):(n=z(n),n.length=nt(0>r?0:+r||0,n.length),n)},o.take=ot,o.head=T,or(G({},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=Rr[n];o.prototype[n]=function(){var n=this.__wrapped__;
return r.apply(n,arguments),et.spliceObjects||0!==n.length||delete n[0],this}}),p(["concat","join","slice"],function(n){var r=Rr[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?(Nr._=o, define("underscore",function(){return o})):qr&&Fr?Mr?(Fr.exports=o)._=o:qr._=o:Nr._=o}).call(this);
;(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 Or[n]}function e(n){return"\\"+Nr[n]}function u(n){return kr[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,r){for(var t=-1,e=n?n.length>>>0:0,u=Array(e);++t<e;)u[t]=r(n[t],t,n);
return u}function a(n){return X(n)?Lr(n):{}}function c(n,r,t){if(typeof n!="function")return ur;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 U(n,r)}function l(n){function r(){for(var n=-1,f=arguments.length,c=Array(f);++n<f;)c[n]=arguments[n];if(u){for(var n=u,f=o,l=f.length,p=-1,s=nt(c.length-l,0),g=-1,h=n.length,v=Array(s+h);++g<h;)v[g]=n[g];
for(;++p<l;)v[f[p]]=c[p];for(;s--;)v[g++]=c[p++];c=v}return n=i?e:this,this instanceof r?(n=a(t.prototype),f=t.apply(n,c),X(f)?f:n):t.apply(n,c)}var t=n[0],e=n[3],u=n[4],o=n[6],i=n[1]&cr;return r}function p(n,r){var t=n?n.length:0;if(!t)return[];for(var e=-1,u=x(),o=[];++e<t;){var i=n[e];0>u(r,i)&&o.push(i)}return o}function s(n,r){var t=-1,e=n?n.length:0;if(typeof e=="number"&&-1<e&&e<=Wr)for(;++t<e&&r(n[t],t,n)!==sr;);else y(n,r,ht);return n}function g(n,r){var t=n?n.length:0;if(typeof t=="number"&&-1<t&&t<=Wr)for(;t--&&r(n[t],t,n)!==sr;);else for(var t=ht(n),e=t.length;e--;){var u=t[e];
if(r(n[u],u,n)===sr)break}}function h(n,r,t){var e;return t(n,function(n,t,u){return r(n,t,u)?(e=n,sr):void 0}),e}function v(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"&&(gt(i)||L(i))){r||(i=v(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 y(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)===sr)break}}function m(n,r){y(n,r,nr)}function b(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=zr.call(n),u=zr.call(r),i!=u)return false;switch(i){case wr:case jr:return+n==+r;case xr:return n!=+n?r!=+r:0==n?1/n==1/r:n==+r;case Ar:case Er:return n==r+""}if(u=i==_r,!u){var f=n instanceof o,a=r instanceof o;if(f||a)return b(f?n.__wrapped__:n,a?r.__wrapped__:r,t,e);if(i!=Tr)return false;if(i=Gr.call(n,"constructor"),f=Gr.call(r,"constructor"),i!=f||!i&&(i=n.constructor,f=r.constructor,i!=f&&!(Q(i)&&i instanceof i&&Q(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=b(n[l],r[l],t,e)););}else m(r,function(r,u,o){return Gr.call(o,u)?(l++,!(c=Gr.call(n,u)&&b(n[u],r,t,e))&&sr):void 0}),c&&m(n,function(n,r,t){return Gr.call(t,r)?!(c=-1<--l)&&sr:void 0});return t.pop(),e.pop(),c}function d(n){return 0+Ur(et()*(n-0+1))}function _(n,r,t){var e=n?n.length:0;if(!e)return[];for(var u=-1,o=x(),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 w(n,r){return function(t,e,u){var o=r?r():{};e=er(e,u,3),u=-1;var i=t?t.length:0;if(typeof i=="number"&&-1<i&&i<=Wr)for(;++u<i;){var f=t[u];n(o,f,e(f,u,t),t)}else s(t,function(r,t,u){n(o,r,e(r,t,u),u)});return o}}function j(n,r,t,e){var u=null,i=r&lr,f=r&pr;if(!Q(n))throw new TypeError;if(f&&!e.length&&(r&=~pr,f=e=false),f){var a,f=e;a=-1;for(var c=f.length,p=[];++a<c;)f[a]===o&&p.push(a);a=p}return null==u&&(u=i?0:n.length),u=nt(u,0),l([n,r,u,t,e,void 0,a])
}function x(){var r=(r=o.indexOf)===O?n:r;return r}function T(n){return typeof n=="function"&&Cr.test(Vr.call(n))}function A(n){for(var r=-1,t=nr(n),e=t.length,u=[];++r<e;){var o=t[r];Gr.call(n,o)&&u.push(o)}return u}function E(n,r,t){return null==r||t?n?n[0]:ar:S(n,0,0>r?0:r)}function O(r,t,e){var u=r?r.length:0;if(typeof e=="number")e=0>e?nt(u+e,0):e||0;else if(e)return e=N(r,t),u&&r[e]===t?e:-1;return n(r,t,e)}function k(n,r,t){return S(n,null==r||t?1:0>r?0:r)}function S(n,r,t){var e=-1,u=n?n.length:0;
for(r=typeof r=="undefined"?0:+r||0,0>r?r=nt(u+r,0):r>u&&(r=u),t=typeof t=="undefined"?u:+t||0,0>t?t=nt(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 N(n,r,t,e){var u=0,o=n?n.length:u;for(t=t?er(t,e,1):ur,r=t(r);u<o;)e=u+o>>>1,t(n[e])<r?u=e+1:o=e;return u}function q(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=er(t,e,3)),_(n,r,t)}function F(n,r){var t=n?n.length:0;
if(typeof t=="number"&&-1<t&&t<=Wr)return-1<x()(n,r);for(var e=ht(n),t=e.length;t--;)if(n[e[t]]===r)return true;return false}function B(n,r,t){var e=true;r=er(r,t,3),t=-1;var u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=Wr){for(;++t<u;)if(!r(n[t],t,n))return false}else s(n,function(n,t,u){return!(e=!!r(n,t,u))&&sr});return e}function M(n,r,t){var e=[];r=er(r,t,3),t=-1;var u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=Wr)for(;++t<u;){var o=n[t];r(o,t,n)&&e.push(o)}else s(n,function(n,t,u){r(n,t,u)&&e.push(n)
});return e}function R(n,r,t){var e=n?n.length:0;if(typeof e=="number"&&-1<e&&e<=Wr){n:{var e=-1,u=n?n.length:0;for(r=er(r,t,3);++e<u;)if(r(n[e],e,n)){r=e;break n}r=-1}return-1<r?n[r]:ar}return r=er(r,t,3),h(n,r,s)}function $(n,r,t){var e=n?n.length:0;if(r=r&&typeof t=="undefined"?r:c(r,t,3),typeof e=="number"&&-1<e&&e<=Wr)for(t=-1,e=n?n.length:0;++t<e&&r(n[t],t,n)!==sr;);else n=s(n,r);return n}function I(n,r,t){var e=n?n.length:0;if(r=er(r,t,3),typeof e=="number"&&-1<e&&e<=Wr)return f(n,r);var u=-1,o=[];
return s(n,function(n,t,e){o[++u]=r(n,t,e)}),o}function D(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<=Wr)for(;++o<i;)t=n[o],t>u&&(u=t);else r=er(r,t,3),s(n,function(n,t,o){t=r(n,t,o),t>e&&(e=t,u=n)});return u}function W(n,r,t,e){var u=3>arguments.length;r=er(r,e,4);var o=-1,i=n?n.length:0;if(typeof i=="number"&&-1<i&&i<=Wr)for(u&&i&&(t=n[++o]);++o<i;)t=r(t,n[o],o,n);else s(n,function(n,e,o){t=u?(u=false,n):r(t,n,e,o)
});return t}function z(n,r,t,e){var u=3>arguments.length;return r=er(r,e,4),g(n,function(n,e,o){t=u?(u=false,n):r(t,n,e,o)}),t}function C(n){var r=-1,t=n&&n.length,e=Array(0>t?0:t>>>0);return s(n,function(n){var t=d(++r);e[r]=e[t],e[t]=n}),e}function P(n,r,t){var e;r=er(r,t,3),t=-1;var u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=Wr){for(;++t<u;)if(r(n[t],t,n))return true}else s(n,function(n,t,u){return(e=r(n,t,u))&&sr});return!!e}function U(n,r){return 3>arguments.length?j(n,cr,r):j(n,cr|pr,r,S(arguments,2))
}function V(n,r,t){function e(){l&&clearTimeout(l),i=l=p=ar,(h||g!==r)&&(s=vt(),f=n.apply(c,o),l||i||(o=c=null))}function u(){var t=r-(vt()-a);0>=t||t>r?(i&&clearTimeout(i),t=p,i=l=p=ar,t&&(s=vt(),f=n.apply(c,o),l||i||(o=c=null))):l=setTimeout(u,t)}var o,i,f,a,c,l,p,s=0,g=false,h=true;if(!Q(n))throw new TypeError;if(r=0>r?0:r,true===t)var v=true,h=false;else X(t)&&(v=t.leading,g="maxWait"in t&&nt(r,+t.maxWait||0),h="trailing"in t?t.trailing:h);return function(){if(o=arguments,a=vt(),c=this,p=h&&(l||!v),false===g)var t=v&&!l;
else{i||v||(s=a);var y=g-(a-s),m=0>=y||y>g;m?(i&&(i=clearTimeout(i)),s=a,f=n.apply(c,o)):i||(i=setTimeout(e,y))}return m&&l?l=clearTimeout(l):l||r===g||(l=setTimeout(u,r)),t&&(m=true,f=n.apply(c,o)),!m||l||i||(o=c=null),f}}function G(n){if(!Q(n))throw new TypeError;return function(){return!n.apply(this,arguments)}}function H(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 J(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 K(n){var r=[];return m(n,function(n,t){Q(n)&&r.push(t)}),r.sort()}function L(n){return n&&typeof n=="object"&&typeof n.length=="number"&&zr.call(n)==dr||false}function Q(n){return typeof n=="function"}function X(n){var r=typeof n;return n&&("function"==r||"object"==r)||false}function Y(n){var r=typeof n;return"number"==r||n&&"object"==r&&zr.call(n)==xr||false
}function Z(n){return typeof n=="string"||n&&typeof n=="object"&&zr.call(n)==Er||false}function nr(n){var r=[];if(!X(n))return r;for(var t in n)r.push(t);return r}function rr(n){for(var r=-1,t=v(arguments,true,false,1),e=t.length,u={};++r<e;){var o=t[r];o in n&&(u[o]=n[o])}return u}function tr(n){for(var r=-1,t=ht(n),e=t.length,u=Array(e);++r<e;)u[r]=n[t[r]];return u}function er(n,r,t){var e=typeof n;return"function"==e||null==n?(typeof r=="undefined"||!("prototype"in n))&&n||c(n,r,t):"object"!=e?fr(n):or(n)
}function ur(n){return n}function or(n){var r=ht(n),t=r.length;return function(e){var u=t;if(u&&!e)return false;for(var o=true;u--&&(o=r[u],o=Gr.call(e,o)&&e[o]===n[o]););return o}}function ir(n){for(var r=-1,t=K(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 Hr.apply(n,arguments),n=r.apply(o,n),this.__chain__?new i(n,true):n}}()}}function fr(n){return function(r){return null==r?ar:r[n]}}var ar,cr=1,lr=2,pr=16,sr="__lodash@2.4.1__breaker__",gr=0,hr=/&(?:amp|lt|gt|quot|#x27);/g,vr=/[&<>"']/g,yr=/($^)/,mr=/[.*+?^${}()|[\]\\]/g,br=/['\n\r\u2028\u2029\\]/g,dr="[object Arguments]",_r="[object Array]",wr="[object Boolean]",jr="[object Date]",xr="[object Number]",Tr="[object Object]",Ar="[object RegExp]",Er="[object String]",Or={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"},kr={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#x27;":"'"},Sr={"function":true,object:true},Nr={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},qr=Sr[typeof window]&&window||this,Fr=Sr[typeof exports]&&exports&&!exports.nodeType&&exports,Br=Sr[typeof module]&&module&&!module.nodeType&&module,Mr=Fr&&Br&&typeof global=="object"&&global;
!Mr||Mr.global!==Mr&&Mr.window!==Mr&&Mr.self!==Mr||(qr=Mr);var Rr=Br&&Br.exports===Fr&&Fr,$r=Array.prototype,Ir=Object.prototype,Dr=qr._,Wr=Math.pow(2,53)-1,zr=Ir.toString,Cr=RegExp("^"+(null==zr?"":(zr+"").replace(mr,"\\$&")).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pr=Math.ceil,Ur=Math.floor,Vr=Function.prototype.toString,Gr=Ir.hasOwnProperty,Hr=$r.push,Jr=Ir.propertyIsEnumerable,Kr=$r.splice,Lr=T(Lr=Object.create)&&Lr,Qr=T(Qr=Array.isArray)&&Qr,Xr=qr.isFinite,Yr=qr.isNaN,Zr=T(Zr=Object.keys)&&Zr,nt=Math.max,rt=Math.min,tt=T(tt=Date.now)&&tt,et=Math.random;
i.prototype=o.prototype;var ut={};!function(){var n={0:1,length:1};ut.spliceObjects=(Kr.call(n,0,1),!n[0])}(0,0),o.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:""},Lr||(a=function(){function n(){}return function(r){if(X(r)){n.prototype=r;var t=new n;n.prototype=null}return t||qr.Object()}}());var ot=k,it=E,ft=w(function(n,r,t){Gr.call(n,t)?n[t]++:n[t]=1}),at=w(function(n,r,t){Gr.call(n,t)?n[t].push(r):n[t]=[r]}),ct=w(function(n,r,t){n[t]=r
}),lt=w(function(n,r,t){n[t?0:1].push(r)},function(){return[[],[]]}),pt=I,st=M;L(arguments)||(L=function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Gr.call(n,"callee")&&!Jr.call(n,"callee")||false});var gt=Qr||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&zr.call(n)==_r||false};Q(/x/)&&(Q=function(n){return typeof n=="function"&&"[object Function]"==zr.call(n)});var ht=Zr?function(n){return X(n)?Zr(n):[]}:A,vt=tt||function(){return(new Date).getTime()};o.after=function(n,r){if(!Q(r))throw new TypeError;
return n=Xr(n=+n)?n:0,function(){return 1>--n?r.apply(this,arguments):void 0}},o.bind=U,o.bindAll=function(n){for(var r=1<arguments.length?v(arguments,true,false,1):K(n),t=-1,e=r.length;++t<e;){var u=r[t];n[u]=j(n[u],cr,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(!Q(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=ft,o.debounce=V,o.defaults=J,o.defer=function(n){if(!Q(n))throw new TypeError;var r=S(arguments,1);return setTimeout(function(){n.apply(ar,r)},1)},o.delay=function(n,r){if(!Q(n))throw new TypeError;var t=S(arguments,2);return setTimeout(function(){n.apply(ar,t)},r)},o.difference=function(){return p(arguments[0],v(arguments,true,true,1))},o.drop=ot,o.filter=M,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),v(n,r)
},o.forEach=$,o.functions=K,o.groupBy=at,o.indexBy=ct,o.initial=function(n,r,t){var e=n?n.length:0;return(null==r||t)&&(r=1),r=e-(r||0),S(n,0,0>r?0:r)},o.intersection=function(){for(var n=[],r=-1,t=arguments.length;++r<t;){var e=arguments[r];(gt(e)||L(e))&&n.push(e)}var t=n.length,u=n[0],o=-1,i=x(),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=ht(n),e=t.length,u={};++r<e;){var o=t[r];u[n[o]]=o}return u
},o.invoke=function(n,r){var t=S(arguments,2),e=-1,u=typeof r=="function",o=n&&n.length,i=Array(0>o?0:o>>>0);return s(n,function(n){var o=u?r:null!=n&&n[r];i[++e]=o?o.apply(n,t):ar}),i},o.keys=ht,o.map=I,o.matches=or,o.max=D,o.memoize=function(n,r){if(!Q(n))throw new TypeError;var t={};return function(){var e=r?r.apply(this,arguments):"_"+arguments[0];return Gr.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<=Wr)for(;++o<i;)t=n[o],t<u&&(u=t);else r=er(r,t,3),s(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=v(arguments,true,false,1),t=r.length;t--;)r[t]=r[t]+"";return rr(n,p(nr(n),r))},o.once=function(n){var r,t;if(!Q(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=ht(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 j(n,pr,null,S(arguments,1))},o.partition=lt,o.pick=rr,o.pluck=pt,o.property=fr,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=nt(Pr((r-n)/(t||1)),0);for(var u=Array(r);++e<r;)u[e]=n,n+=t;return u},o.reject=function(n,r,t){return r=er(r,t,3),M(n,G(r))},o.rest=k,o.shuffle=C,o.sortBy=function(n,t,e){var u=-1,o=n&&n.length,i=Array(0>o?0:o>>>0);for(t=er(t,e,3),s(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(!Q(n))throw new TypeError;return false===t?e=false:X(t)&&(e="leading"in t?t.leading:e,u="trailing"in t?t.trailing:u),V(n,r,{leading:e,maxWait:r,trailing:u})},o.times=function(n,r,t){n=0>n?0:n>>>0,r=c(r,t,1),t=-1;for(var e=Array(n);++t<n;)e[t]=r(t);return e},o.toArray=function(n){return gt(n)?S(n):n&&typeof n.length=="number"?I(n):tr(n)},o.union=function(){return _(v(arguments,true,true))},o.uniq=q,o.values=tr,o.where=st,o.without=function(){return p(arguments[0],S(arguments,1))
},o.wrap=function(n,r){return j(r,pr,null,[n])},o.zip=function(){for(var n=-1,r=D(pt(arguments,"length")),t=Array(0>r?0:r);++n<r;)t[n]=pt(arguments,n);return t},o.collect=I,o.each=$,o.extend=H,o.methods=K,o.object=function(n,r){var t=-1,e=n?n.length:0,u={};for(r||!e||gt(n[0])||(r=[]);++t<e;){var o=n[t];r?u[o]=r[t]:o&&(u[o[0]]=o[1])}return u},o.select=M,o.tail=k,o.unique=q,o.clone=function(n){return X(n)?gt(n)?S(n):H({},n):n},o.contains=F,o.escape=function(n){return null==n?"":(n+"").replace(vr,t)
},o.every=B,o.find=R,o.has=function(n,r){return n?Gr.call(n,r):false},o.identity=ur,o.indexOf=O,o.isArguments=L,o.isArray=gt,o.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&zr.call(n)==wr||false},o.isDate=function(n){return n&&typeof n=="object"&&zr.call(n)==jr||false},o.isElement=function(n){return n&&1===n.nodeType||false},o.isEmpty=function(n){if(!n)return true;if(gt(n)||Z(n))return!n.length;for(var r in n)if(Gr.call(n,r))return false;return true},o.isEqual=function(n,r){return b(n,r)},o.isFinite=function(n){return Xr(n)&&!Yr(parseFloat(n))
},o.isFunction=Q,o.isNaN=function(n){return Y(n)&&n!=+n},o.isNull=function(n){return null===n},o.isNumber=Y,o.isObject=X,o.isRegExp=function(n){var r=typeof n;return n&&("function"==r||"object"==r)&&zr.call(n)==Ar||false},o.isString=Z,o.isUndefined=function(n){return typeof n=="undefined"},o.lastIndexOf=function(n,r,t){var e=n?n.length:0;for(typeof t=="number"&&(e=(0>t?nt(e+t,0):rt(t||0,e-1))+1);e--;)if(n[e]===r)return e;return-1},o.mixin=ir,o.noConflict=function(){return qr._=Dr,this},o.now=vt,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+Ur(et()*(r-n+1))
},o.reduce=W,o.reduceRight=z,o.result=function(n,r){if(null!=n){var t=n[r];return Q(t)?n[r]():t}},o.size=function(n){var r=n?n.length:0;return typeof r=="number"&&-1<r&&r<=Wr?r:ht(n).length},o.some=P,o.sortedIndex=N,o.template=function(n,r,t){var u=o,i=u.templateSettings;n=(null==n?"":n)+"",t=J({},t,i);var f=0,a="__p+='",i=t.variable;n.replace(RegExp((t.escape||yr).source+"|"+(t.interpolate||yr).source+"|"+(t.evaluate||yr).source+"|$","g"),function(r,t,u,o,i){return a+=n.slice(f,i).replace(br,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(hr,u))},o.uniqueId=function(n){var r=++gr+"";return n?n+r:r},o.all=B,o.any=P,o.detect=R,o.findWhere=R,o.foldl=W,o.foldr=z,o.include=F,o.inject=W,o.first=E,o.last=function(n,r,t){var e=n?n.length:0;
return null==r||t?n?n[e-1]:ar:(r=e-(r||0),S(n,0>r?0:r))},o.sample=function(n,r,t){return n&&typeof n.length!="number"&&(n=tr(n)),null==r||t?(r=n?n.length:0,0<r?n[d(r-1)]:ar):(n=C(n),n.length=rt(0>r?0:+r||0,n.length),n)},o.take=it,o.head=E,ir(H({},o)),o.VERSION="2.4.1",o.prototype.chain=function(){return this.__chain__=true,this},o.prototype.value=function(){return this.__wrapped__},s("pop push reverse shift sort splice unshift".split(" "),function(n){var r=$r[n];o.prototype[n]=function(){var n=this.__wrapped__;
return r.apply(n,arguments),ut.spliceObjects||0!==n.length||delete n[0],this}}),s(["concat","join","slice"],function(n){var r=$r[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?(qr._=o, define("underscore",function(){return o})):Fr&&Br?Rr?(Br.exports=o)._=o:Fr._=o:qr._=o}).call(this);