Add imports option docs to _.template.

Former-commit-id: 4ac5d64b0dae3068d07474beabed7fd5702da9a2
This commit is contained in:
John-David Dalton
2013-07-17 08:07:46 -07:00
parent 34396dbbec
commit db7354ab72
8 changed files with 259 additions and 226 deletions

47
dist/lodash.compat.js vendored
View File

@@ -443,7 +443,7 @@
// Avoid issues with some ES3 environments that attempt to use values, named
// after built-in constructors like `Object`, for the creation of literals.
// ES5 clears this up by stating that literals must use built-in constructors.
// See http://es5.github.com/#x11.1.5.
// See http://es5.github.io/#x11.1.5.
context = context ? _.defaults(window.Object(), context, _.pick(window, contextProps)) : window;
/** Native constructor references */
@@ -1060,7 +1060,7 @@
function bound() {
// `Function#bind` spec
// http://es5.github.com/#x15.3.4.5
// http://es5.github.io/#x15.3.4.5
var args = arguments,
thisBinding = isPartial ? this : thisArg;
@@ -1077,7 +1077,7 @@
thisBinding = createObject(func.prototype);
// mimic the constructor's `return` behavior
// http://es5.github.com/#x13.2.2
// http://es5.github.io/#x13.2.2
var result = func.apply(thisBinding, args);
return isObject(result) ? result : thisBinding;
}
@@ -1105,6 +1105,7 @@
// data properties
data.shadowedProps = shadowedProps;
// iterator options
data.array = data.bottom = data.loop = data.top = '';
data.init = 'iterable';
@@ -1133,7 +1134,7 @@
// return the compiled function
return factory(
errorClass, errorProto, hasOwnProperty, indicatorObject, isArguments,
isArray, isString, keys, lodash, objectProto, objectTypes, nonEnumProps,
isArray, isString, data.useKeys && keys, lodash, objectProto, objectTypes, nonEnumProps,
stringClass, stringProto, toString
);
}
@@ -1296,7 +1297,8 @@
'args': 'object',
'init': '[]',
'top': 'if (!(objectTypes[typeof object])) return result',
'loop': 'result.push(index)'
'loop': 'result.push(index)',
'useKeys': false
});
/**
@@ -1914,12 +1916,12 @@
// exit early for unlike primitive values
if (a === a &&
(!a || (type != 'function' && type != 'object')) &&
(!b || (otherType != 'function' && otherType != 'object'))) {
!(a && objectTypes[type]) &&
!(b && objectTypes[otherType])) {
return false;
}
// exit early for `null` and `undefined`, avoiding ES3's Function#call behavior
// http://es5.github.com/#x15.3.4.4
// http://es5.github.io/#x15.3.4.4
if (a == null || b == null) {
return a === b;
}
@@ -1952,7 +1954,7 @@
case regexpClass:
case stringClass:
// coerce regexes to strings (http://es5.github.com/#x15.10.6.4)
// coerce regexes to strings (http://es5.github.io/#x15.10.6.4)
// treat string primitives and their corresponding object instances as equal
return a == String(b);
}
@@ -1980,7 +1982,7 @@
}
// assume cyclic structures are equal
// the algorithm for detecting cyclic structures is adapted from ES 5.1
// section 15.12.3, abstract operation `JO` (http://es5.github.com/#x15.12.3)
// section 15.12.3, abstract operation `JO` (http://es5.github.io/#x15.12.3)
var initedStack = !stackA;
stackA || (stackA = getArray());
stackB || (stackB = getArray());
@@ -2056,7 +2058,7 @@
* Checks if `value` is, or can be coerced to, a finite number.
*
* Note: This is not the same as native `isFinite`, which will return true for
* booleans and empty strings. See http://es5.github.com/#x15.1.2.5.
* booleans and empty strings. See http://es5.github.io/#x15.1.2.5.
*
* @static
* @memberOf _
@@ -2129,7 +2131,7 @@
*/
function isObject(value) {
// check if the value is the ECMAScript language type of Object
// http://es5.github.com/#x8
// http://es5.github.io/#x8
// and avoid a V8 bug
// http://code.google.com/p/v8/issues/detail?id=2291
return !!(value && objectTypes[typeof value]);
@@ -2139,7 +2141,7 @@
* Checks if `value` is `NaN`.
*
* Note: This is not the same as native `isNaN`, which will return `true` for
* `undefined` and other values. See http://es5.github.com/#x15.1.2.4.
* `undefined` and other values. See http://es5.github.io/#x15.1.2.4.
*
* @static
* @memberOf _
@@ -5243,7 +5245,7 @@
* `value` is a hexadecimal, in which case a `radix` of `16` is used.
*
* Note: This method avoids differences in native ES3 and ES5 `parseInt`
* implementations. See http://es5.github.com/#E.
* implementations. See http://es5.github.io/#E.
*
* @static
* @memberOf _
@@ -5349,6 +5351,7 @@
* @param {Object} options The options object.
* escape - The "escape" delimiter regexp.
* evaluate - The "evaluate" delimiter regexp.
* imports - An object of properties to import into the compiled template as local variables.
* interpolate - The "interpolate" delimiter regexp.
* sourceURL - The sourceURL of the template's compiled source.
* variable - The data object variable name.
@@ -5361,14 +5364,15 @@
* compiled({ 'name': 'moe' });
* // => 'hello moe'
*
* var list = '<% _.forEach(people, function(name) { %><li><%= name %></li><% }); %>';
* _.template(list, { 'people': ['moe', 'larry'] });
* // => '<li>moe</li><li>larry</li>'
*
* // using the "escape" delimiter to escape HTML in data property values
* _.template('<b><%- value %></b>', { 'value': '<script>' });
* // => '<b>&lt;script&gt;</b>'
*
* // using the "evaluate" delimiter to generate HTML
* var list = '<% _.forEach(people, function(name) { %><li><%= name %></li><% }); %>';
* _.template(list, { 'people': ['moe', 'larry'] });
* // => '<li>moe</li><li>larry</li>'
*
* // using the ES6 delimiter as an alternative to the default "interpolate" delimiter
* _.template('hello ${ name }', { 'name': 'curly' });
* // => 'hello curly'
@@ -5377,7 +5381,7 @@
* _.template('<% print("hello " + epithet); %>!', { 'epithet': 'stooge' });
* // => 'hello stooge!'
*
* // using custom template delimiters
* // using a custom template delimiters
* _.templateSettings = {
* 'interpolate': /{{([\s\S]+?)}}/g
* };
@@ -5385,6 +5389,11 @@
* _.template('hello {{ name }}!', { 'name': 'mustache' });
* // => 'hello mustache!'
*
* // using the `imports` option to import jQuery
* var list = '<% $.each(people, function(name) { %><li><%= name %></li><% }); %>';
* _.template(list, { 'people': ['moe', 'larry'] }, { 'imports': { '$': jQuery });
* // => '<li>moe</li><li>larry</li>'
*
* // using the `sourceURL` option to specify a custom sourceURL for the template
* var compiled = _.template('hello <%= name %>', null, { 'sourceURL': '/basic/greeting.jst' });
* compiled(data);

View File

@@ -4,47 +4,47 @@
* Build: `lodash -o ./dist/lodash.compat.js`
*/
;!function(n){function t(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 r(n,r){var e=typeof r;if(n=n.k,"boolean"==e||r==d)return n[r];"number"!=e&&"string"!=e&&(e="object");var u="number"==e?r:x+r;return n=n[e]||(n[e]={}),"object"==e?n[u]&&-1<t(n[u],r)?0:-1:n[u]?0:-1}function e(n){var t=this.k,r=typeof n;if("boolean"==r||n==d)t[n]=y;else{"number"!=r&&"string"!=r&&(r="object");var e="number"==r?n:x+n,t=t[r]||(t[r]={});"object"==r?(t[e]||(t[e]=[])).push(n):t[e]=y
}}function u(n){return n.charCodeAt(0)}function o(n,t){var r=n.m,e=t.m;if(n=n.l,t=t.l,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1}return r<e?-1:1}function a(n){var t=-1,r=n.length,u=n[0],o=n[r-1];if(u&&typeof u=="object"&&o&&typeof o=="object")return b;for(u=c(),u["false"]=u["null"]=u["true"]=u.undefined=b,o=c(),o.b=n,o.k=u,o.push=e;++t<r;)o.push(n[t]);return o}function i(n){return"\\"+Z[n]}function f(){return _.pop()||[]}function c(){return j.pop()||{a:"",b:d,c:"",k:d,l:d,"false":b,d:"",m:0,e:"",leading:b,f:"",maxWait:0,"null":b,number:d,object:d,push:d,g:d,string:d,h:"",trailing:b,"true":b,undefined:b,i:b,j:b,n:d}
}function l(n){return typeof n.toString!="function"&&typeof(n+"")=="string"}function p(){}function s(n){n.length=0,_.length<E&&_.push(n)}function g(n){var t=n.k;t&&g(t),n.b=n.k=n.l=n.object=n.number=n.string=n.n=d,j.length<E&&j.push(n)}function v(n,t,r){t||(t=0),typeof r=="undefined"&&(r=n?n.length:0);var e=-1;r=r-t||0;for(var u=Array(0>r?0:r);++e<r;)u[e]=n[t+e];return u}function h(e){function _(n){return n&&typeof n=="object"&&!$r(n)&&pr.call(n,"__wrapped__")?n:new j(n)}function j(n){this.__wrapped__=n
}function E(n,t,r,e){e=(e||0)-1;for(var u=n?n.length:0,o=[];++e<u;){var a=n[e];a&&typeof a=="object"&&($r(a)||ct(a))?sr.apply(o,t?a:E(a,t,r)):r||o.push(a)}return o}function Z(n,e,u){var o=-1,i=at(),c=n?n.length:0,l=[],p=!e&&c>=O&&i===t,v=u||p?f():l;if(p){var h=a(v);h?(i=r,v=h):(p=b,v=u?v:(s(v),l))}for(;++o<c;){var h=n[o],m=u?u(h,o,n):h;(e?!o||v[v.length-1]!==m:0>i(v,m))&&((u||p)&&v.push(m),l.push(h))}return p?(s(v.b),g(v)):u&&s(v),l}function nt(n,t,r,e){function u(){var e=arguments,c=a?this:t;return o||(n=t[i]),r.length&&(e=e.length?(e=Er.call(e),f?e.concat(r):r.concat(e)):r),this instanceof u?(c=ut(n.prototype),e=n.apply(c,e),ht(e)?e:c):n.apply(c,e)
}var o=vt(n),a=!r,i=t;if(a){var f=e;r=t}else if(!o){if(!e)throw new Zt;t=n}return u}function rt(){var n=c();n.g=T,n.b=n.c=n.f=n.h="",n.e="r",n.i=y,n.j=y;for(var t,r=0;t=arguments[r];r++)for(var e in t)n[e]=t[e];r=n.a,n.d=/^[^,]+/.exec(r)[0],t=Mt,r="return function("+r+"){",e="var m,r="+n.d+",C="+n.e+";if(!r)return C;"+n.h+";",n.b?(e+="var s=r.length;m=-1;if("+n.b+"){",Nr.unindexedChars&&(e+="if(q(r)){r=r.split('')}"),e+="while(++m<s){"+n.f+";}}else{"):Nr.nonEnumArgs&&(e+="var s=r.length;m=-1;if(s&&n(r)){while(++m<s){m+='';"+n.f+";}}else{"),Nr.enumPrototypes&&(e+="var E=typeof r=='function';"),Nr.enumErrorProps&&(e+="var D=r===j||r instanceof Error;");
}}function u(n){return n.charCodeAt(0)}function a(n,t){var r=n.m,e=t.m;if(n=n.l,t=t.l,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1}return r<e?-1:1}function o(n){var t=-1,r=n.length,u=n[0],a=n[r-1];if(u&&typeof u=="object"&&a&&typeof a=="object")return b;for(u=l(),u["false"]=u["null"]=u["true"]=u.undefined=b,a=l(),a.b=n,a.k=u,a.push=e;++t<r;)a.push(n[t]);return a}function i(n){return"\\"+Z[n]}function f(){return _.pop()||[]}function l(){return j.pop()||{a:"",b:d,c:"",k:d,l:d,"false":b,d:"",m:0,e:"",leading:b,f:"",maxWait:0,"null":b,number:d,object:d,push:d,g:d,string:d,h:"",trailing:b,"true":b,undefined:b,i:b,j:b,n:d}
}function c(n){return typeof n.toString!="function"&&typeof(n+"")=="string"}function p(){}function s(n){n.length=0,_.length<E&&_.push(n)}function g(n){var t=n.k;t&&g(t),n.b=n.k=n.l=n.object=n.number=n.string=n.n=d,j.length<E&&j.push(n)}function v(n,t,r){t||(t=0),typeof r=="undefined"&&(r=n?n.length:0);var e=-1;r=r-t||0;for(var u=Array(0>r?0:r);++e<r;)u[e]=n[t+e];return u}function h(e){function _(n){return n&&typeof n=="object"&&!$r(n)&&pr.call(n,"__wrapped__")?n:new j(n)}function j(n){this.__wrapped__=n
}function E(n,t,r,e){e=(e||0)-1;for(var u=n?n.length:0,a=[];++e<u;){var o=n[e];o&&typeof o=="object"&&($r(o)||lt(o))?sr.apply(a,t?o:E(o,t,r)):r||a.push(o)}return a}function Z(n,e,u){var a=-1,i=ot(),l=n?n.length:0,c=[],p=!e&&l>=O&&i===t,v=u||p?f():c;if(p){var h=o(v);h?(i=r,v=h):(p=b,v=u?v:(s(v),c))}for(;++a<l;){var h=n[a],m=u?u(h,a,n):h;(e?!a||v[v.length-1]!==m:0>i(v,m))&&((u||p)&&v.push(m),c.push(h))}return p?(s(v.b),g(v)):u&&s(v),c}function nt(n,t,r,e){function u(){var e=arguments,l=o?this:t;return a||(n=t[i]),r.length&&(e=e.length?(e=Er.call(e),f?e.concat(r):r.concat(e)):r),this instanceof u?(l=ut(n.prototype),e=n.apply(l,e),ht(e)?e:l):n.apply(l,e)
}var a=vt(n),o=!r,i=t;if(o){var f=e;r=t}else if(!a){if(!e)throw new Zt;t=n}return u}function rt(){var n=l();n.g=T,n.b=n.c=n.f=n.h="",n.e="r",n.i=y,n.j=y;for(var t,r=0;t=arguments[r];r++)for(var e in t)n[e]=t[e];r=n.a,n.d=/^[^,]+/.exec(r)[0],t=Mt,r="return function("+r+"){",e="var m,r="+n.d+",C="+n.e+";if(!r)return C;"+n.h+";",n.b?(e+="var s=r.length;m=-1;if("+n.b+"){",Nr.unindexedChars&&(e+="if(q(r)){r=r.split('')}"),e+="while(++m<s){"+n.f+";}}else{"):Nr.nonEnumArgs&&(e+="var s=r.length;m=-1;if(s&&n(r)){while(++m<s){m+='';"+n.f+";}}else{"),Nr.enumPrototypes&&(e+="var E=typeof r=='function';"),Nr.enumErrorProps&&(e+="var D=r===j||r instanceof Error;");
var u=[];if(Nr.enumPrototypes&&u.push('!(E&&m=="prototype")'),Nr.enumErrorProps&&u.push('!(D&&(m=="message"||m=="name"))'),n.i&&n.j)e+="var A=-1,B=z[typeof r]&&t(r),s=B?B.length:0;while(++A<s){m=B[A];",u.length&&(e+="if("+u.join("&&")+"){"),e+=n.f+";",u.length&&(e+="}"),e+="}";else if(e+="for(m in r){",n.i&&u.push("l.call(r, m)"),u.length&&(e+="if("+u.join("&&")+"){"),e+=n.f+";",u.length&&(e+="}"),e+="}",Nr.nonEnumShadows){for(e+="if(r!==y){var h=r.constructor,p=r===(h&&h.prototype),e=r===H?G:r===j?i:J.call(r),v=w[e];",k=0;7>k;k++)e+="m='"+n.g[k]+"';if((!(p&&v[m])&&l.call(r,m))",n.i||(e+="||(!v[m]&&r[m]!==y[m])"),e+="){"+n.f+"}";
e+="}"}return(n.b||Nr.nonEnumArgs)&&(e+="}"),e+=n.c+";return C",t=t("i,j,l,indicatorObject,n,o,q,t,u,y,z,w,G,H,J",r+e+"}"),g(n),t(J,tr,pr,w,ct,$r,yt,Rr,_,rr,Y,Br,Q,er,mr)}function ut(n){return ht(n)?dr(n):{}}function ot(n){return Tr[n]}function at(){var n=(n=_.indexOf)===Nt?t:n;return n}function it(n){var t,r;return!n||mr.call(n)!=U||(t=n.constructor,vt(t)&&!(t instanceof t))||!Nr.argsClass&&ct(n)||!Nr.nodeClass&&l(n)?b:Nr.ownLast?(Kr(n,function(n,t,e){return r=pr.call(e,t),b}),r!==false):(Kr(n,function(n,t){r=t
}),r===m||pr.call(n,r))}function ft(n){return Wr[n]}function ct(n){return n&&typeof n=="object"?mr.call(n)==W:b}function lt(n,t,r,e,u,o){var a=n;if(typeof t!="boolean"&&t!=d&&(e=r,r=t,t=b),typeof r=="function"){if(r=typeof e=="undefined"?r:_.createCallback(r,e,1),a=r(a),typeof a!="undefined")return a;a=n}if(e=ht(a)){var i=mr.call(a);if(!X[i]||!Nr.nodeClass&&l(a))return a;var c=$r(a)}if(!e||!t)return e?c?v(a):Hr({},a):a;switch(e=Ir[i],i){case G:case H:return new e(+a);case M:case Q:return new e(a);
case V:return e(a.source,P.exec(a))}i=!u,u||(u=f()),o||(o=f());for(var p=u.length;p--;)if(u[p]==n)return o[p];return a=c?e(a.length):{},c&&(pr.call(n,"index")&&(a.index=n.index),pr.call(n,"input")&&(a.input=n.input)),u.push(n),o.push(a),(c?qr:Mr)(n,function(n,e){a[e]=lt(n,t,r,m,u,o)}),i&&(s(u),s(o)),a}function pt(n){var t=[];return Kr(n,function(n,r){vt(n)&&t.push(r)}),t.sort()}function st(n){for(var t=-1,r=Rr(n),e=r.length,u={};++t<e;){var o=r[t];u[n[o]]=o}return u}function gt(n,t,r,e,u,o){var a=r===w;
if(typeof r=="function"&&!a){r=_.createCallback(r,e,2);var i=r(n,t);if(typeof i!="undefined")return!!i}if(n===t)return 0!==n||1/n==1/t;var c=typeof n,p=typeof t;if(n===n&&(!n||"function"!=c&&"object"!=c)&&(!t||"function"!=p&&"object"!=p))return b;if(n==d||t==d)return n===t;if(p=mr.call(n),c=mr.call(t),p==W&&(p=U),c==W&&(c=U),p!=c)return b;switch(p){case G:case H:return+n==+t;case M:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case V:case Q:return n==Yt(t)}if(c=p==L,!c){if(pr.call(n,"__wrapped__")||pr.call(t,"__wrapped__"))return gt(n.__wrapped__||n,t.__wrapped__||t,r,e,u,o);
if(p!=U||!Nr.nodeClass&&(l(n)||l(t)))return b;var p=!Nr.argsObject&&ct(n)?Qt:n.constructor,g=!Nr.argsObject&&ct(t)?Qt:t.constructor;if(p!=g&&(!vt(p)||!(p instanceof p&&vt(g)&&g instanceof g)))return b}for(g=!u,u||(u=f()),o||(o=f()),p=u.length;p--;)if(u[p]==n)return o[p]==t;var v=0,i=y;if(u.push(n),o.push(t),c){if(p=n.length,v=t.length,i=v==n.length,!i&&!a)return i;for(;v--;)if(c=p,g=t[v],a)for(;c--&&!(i=gt(n[c],g,r,e,u,o)););else if(!(i=gt(n[v],g,r,e,u,o)))break;return i}return Kr(t,function(t,a,f){return pr.call(f,a)?(v++,i=pr.call(n,a)&&gt(n[a],t,r,e,u,o)):void 0
}),i&&!a&&Kr(n,function(n,t,r){return pr.call(r,t)?i=-1<--v:void 0}),g&&(s(u),s(o)),i}function vt(n){return typeof n=="function"}function ht(n){return!(!n||!Y[typeof n])}function mt(n){return typeof n=="number"||mr.call(n)==M}function yt(n){return typeof n=="string"||mr.call(n)==Q}function dt(n,t,r){var e=arguments,u=0,o=2;if(!ht(n))return n;if(r===w)var a=e[3],i=e[4],c=e[5];else{var l=y,i=f(),c=f();typeof r!="number"&&(o=e.length),3<o&&"function"==typeof e[o-2]?a=_.createCallback(e[--o-1],e[o--],2):2<o&&"function"==typeof e[o-1]&&(a=e[--o])
}for(;++u<o;)($r(e[u])?kt:Mr)(e[u],function(t,r){var e,u,o=t,f=n[r];if(t&&((u=$r(t))||Ur(t))){for(o=i.length;o--;)if(e=i[o]==t){f=c[o];break}if(!e){var l;a&&(o=a(f,t),l=typeof o!="undefined")&&(f=o),l||(f=u?$r(f)?f:[]:Ur(f)?f:{}),i.push(t),c.push(f),l||(f=dt(f,t,w,a,i,c))}}else a&&(o=a(f,t),typeof o=="undefined"&&(o=t)),typeof o!="undefined"&&(f=o);n[r]=f});return l&&(s(i),s(c)),n}function bt(n){for(var t=-1,r=Rr(n),e=r.length,u=Ht(e);++t<e;)u[t]=n[r[t]];return u}function _t(n,t,r){var e=-1,u=at(),o=n?n.length:0,a=b;
return r=(0>r?wr(0,o+r):r)||0,o&&typeof o=="number"?a=-1<(yt(n)?n.indexOf(t,r):u(n,t,r)):qr(n,function(n){return++e<r?void 0:!(a=n===t)}),a}function jt(n,t,r){var e=y;if(t=_.createCallback(t,r),$r(n)){r=-1;for(var u=n.length;++r<u&&(e=!!t(n[r],r,n)););}else qr(n,function(n,r,u){return e=!!t(n,r,u)});return e}function Ct(n,t,r){var e=[];if(t=_.createCallback(t,r),$r(n)){r=-1;for(var u=n.length;++r<u;){var o=n[r];t(o,r,n)&&e.push(o)}}else qr(n,function(n,r,u){t(n,r,u)&&e.push(n)});return e}function wt(n,t,r){if(t=_.createCallback(t,r),!$r(n)){var e;
return qr(n,function(n,r,u){return t(n,r,u)?(e=n,b):void 0}),e}r=-1;for(var u=n.length;++r<u;){var o=n[r];if(t(o,r,n))return o}}function kt(n,t,r){if(t&&typeof r=="undefined"&&$r(n)){r=-1;for(var e=n.length;++r<e&&t(n[r],r,n)!==false;);}else qr(n,t,r);return n}function xt(n,t,r){var e=-1,u=n?n.length:0,o=Ht(typeof u=="number"?u:0);if(t=_.createCallback(t,r),$r(n))for(;++e<u;)o[e]=t(n[e],e,n);else qr(n,function(n,r,u){o[++e]=t(n,r,u)});return o}function Ot(n,t,r){var e=-1/0,o=e;if(!t&&$r(n)){r=-1;for(var a=n.length;++r<a;){var i=n[r];
i>o&&(o=i)}}else t=!t&&yt(n)?u:_.createCallback(t,r),qr(n,function(n,r,u){r=t(n,r,u),r>e&&(e=r,o=n)});return o}function Et(n,t,r,e){var u=3>arguments.length;if(t=_.createCallback(t,e,4),$r(n)){var o=-1,a=n.length;for(u&&(r=n[++o]);++o<a;)r=t(r,n[o],o,n)}else qr(n,function(n,e,o){r=u?(u=b,n):t(r,n,e,o)});return r}function St(n,t,r,e){var u=n,o=n?n.length:0,a=3>arguments.length;if(typeof o!="number")var i=Rr(n),o=i.length;else Nr.unindexedChars&&yt(n)&&(u=n.split(""));return t=_.createCallback(t,e,4),kt(n,function(n,e,f){e=i?i[--o]:--o,r=a?(a=b,u[e]):t(r,u[e],e,f)
}),r}function At(n,t,r){var e;if(t=_.createCallback(t,r),$r(n)){r=-1;for(var u=n.length;++r<u&&!(e=t(n[r],r,n)););}else qr(n,function(n,r,u){return!(e=t(n,r,u))});return!!e}function It(n){var e=-1,u=at(),o=n?n.length:0,i=E(arguments,y,y,1),f=[],c=o>=O&&u===t;if(c){var l=a(i);l?(u=r,i=l):c=b}for(;++e<o;)l=n[e],0>u(i,l)&&f.push(l);return c&&g(i),f}function Bt(n,t,r){if(n){var e=0,u=n.length;if(typeof t!="number"&&t!=d){var o=-1;for(t=_.createCallback(t,r);++o<u&&t(n[o],o,n);)e++}else if(e=t,e==d||r)return n[0];
return v(n,0,kr(wr(0,e),u))}}function Nt(n,r,e){if(typeof e=="number"){var u=n?n.length:0;e=0>e?wr(0,u+e):e||0}else if(e)return e=zt(n,r),n[e]===r?e:-1;return n?t(n,r,e):-1}function Pt(n,t,r){if(typeof t!="number"&&t!=d){var e=0,u=-1,o=n?n.length:0;for(t=_.createCallback(t,r);++u<o&&t(n[u],u,n);)e++}else e=t==d||r?1:wr(0,t);return v(n,e)}function zt(n,t,r,e){var u=0,o=n?n.length:u;for(r=r?_.createCallback(r,e,1):Wt,t=r(t);u<o;)e=u+o>>>1,r(n[e])<t?u=e+1:o=e;return u}function Ft(n,t,r,e){return typeof t!="boolean"&&t!=d&&(e=r,r=e&&e[t]===n?m:t,t=b),r!=d&&(r=_.createCallback(r,e)),Z(n,t,r)
}function $t(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,r=n?Ot(Vr(n,"length")):0,e=Ht(0>r?0:r);++t<r;)e[t]=Vr(n,t);return e}function Dt(n,t){for(var r=-1,e=n?n.length:0,u={};++r<e;){var o=n[r];t?u[o]=t[r]:u[o[0]]=o[1]}return u}function Rt(n,t){return Nr.fastBind||yr&&2<arguments.length?yr.call.apply(yr,arguments):nt(n,t,Er.call(arguments,2))}function qt(n,t,r){function e(){ir(s),ir(g),c=0,s=g=d}function u(){var t=v&&(!h||1<c);e(),t&&(p!==false&&(l=new Kt),i=n.apply(f,a))}function o(){e(),(v||p!==t)&&(l=new Kt,i=n.apply(f,a))
}var a,i,f,c=0,l=0,p=b,s=d,g=d,v=y;if(t=wr(0,t||0),r===y)var h=y,v=b;else ht(r)&&(h=r.leading,p="maxWait"in r&&wr(t,r.maxWait||0),v="trailing"in r?r.trailing:v);return function(){if(a=arguments,f=this,c++,ir(g),p===false)h&&2>c&&(i=n.apply(f,a));else{var r=new Kt;!s&&!h&&(l=r);var e=p-(r-l);0<e?s||(s=hr(o,e)):(ir(s),s=d,l=r,i=n.apply(f,a))}return t!==p&&(g=hr(u,t)),i}}function Tt(n){var t=Er.call(arguments,1);return hr(function(){n.apply(m,t)},1)}function Wt(n){return n}function Lt(n){kt(pt(n),function(t){var r=_[t]=n[t];
_.prototype[t]=function(){var n=this.__wrapped__,t=[n];return sr.apply(t,arguments),t=r.apply(_,t),n&&typeof n=="object"&&n===t?this:new j(t)}})}function Gt(){return this.__wrapped__}e=e?et.defaults(n.Object(),e,et.pick(n,q)):n;var Ht=e.Array,Jt=e.Boolean,Kt=e.Date,Mt=e.Function,Ut=e.Math,Vt=e.Number,Qt=e.Object,Xt=e.RegExp,Yt=e.String,Zt=e.TypeError,nr=[],tr=e.Error.prototype,rr=Qt.prototype,er=Yt.prototype,ur=e._,or=Xt("^"+Yt(rr.valueOf).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),ar=Ut.ceil,ir=e.clearTimeout,fr=Ut.floor,cr=Mt.prototype.toString,lr=or.test(lr=Qt.getPrototypeOf)&&lr,pr=rr.hasOwnProperty,sr=nr.push,gr=rr.propertyIsEnumerable,vr=e.setImmediate,hr=e.setTimeout,mr=rr.toString,yr=or.test(yr=mr.bind)&&yr,dr=or.test(dr=Qt.create)&&dr,br=or.test(br=Ht.isArray)&&br,_r=e.isFinite,jr=e.isNaN,Cr=or.test(Cr=Qt.keys)&&Cr,wr=Ut.max,kr=Ut.min,xr=e.parseInt,Or=Ut.random,Er=nr.slice,Sr=or.test(e.attachEvent),Ar=yr&&!/\n|true/.test(yr+Sr),Ir={};
e+="}"}return(n.b||Nr.nonEnumArgs)&&(e+="}"),e+=n.c+";return C",t=t("i,j,l,indicatorObject,n,o,q,t,u,y,z,w,G,H,J",r+e+"}"),g(n),t(J,tr,pr,w,lt,$r,yt,n.j&&Rr,_,rr,Y,Br,Q,er,mr)}function ut(n){return ht(n)?dr(n):{}}function at(n){return Tr[n]}function ot(){var n=(n=_.indexOf)===Nt?t:n;return n}function it(n){var t,r;return!n||mr.call(n)!=U||(t=n.constructor,vt(t)&&!(t instanceof t))||!Nr.argsClass&&lt(n)||!Nr.nodeClass&&c(n)?b:Nr.ownLast?(Kr(n,function(n,t,e){return r=pr.call(e,t),b}),r!==false):(Kr(n,function(n,t){r=t
}),r===m||pr.call(n,r))}function ft(n){return Wr[n]}function lt(n){return n&&typeof n=="object"?mr.call(n)==W:b}function ct(n,t,r,e,u,a){var o=n;if(typeof t!="boolean"&&t!=d&&(e=r,r=t,t=b),typeof r=="function"){if(r=typeof e=="undefined"?r:_.createCallback(r,e,1),o=r(o),typeof o!="undefined")return o;o=n}if(e=ht(o)){var i=mr.call(o);if(!X[i]||!Nr.nodeClass&&c(o))return o;var l=$r(o)}if(!e||!t)return e?l?v(o):Hr({},o):o;switch(e=Ir[i],i){case G:case H:return new e(+o);case M:case Q:return new e(o);
case V:return e(o.source,P.exec(o))}i=!u,u||(u=f()),a||(a=f());for(var p=u.length;p--;)if(u[p]==n)return a[p];return o=l?e(o.length):{},l&&(pr.call(n,"index")&&(o.index=n.index),pr.call(n,"input")&&(o.input=n.input)),u.push(n),a.push(o),(l?qr:Mr)(n,function(n,e){o[e]=ct(n,t,r,m,u,a)}),i&&(s(u),s(a)),o}function pt(n){var t=[];return Kr(n,function(n,r){vt(n)&&t.push(r)}),t.sort()}function st(n){for(var t=-1,r=Rr(n),e=r.length,u={};++t<e;){var a=r[t];u[n[a]]=a}return u}function gt(n,t,r,e,u,a){var o=r===w;
if(typeof r=="function"&&!o){r=_.createCallback(r,e,2);var i=r(n,t);if(typeof i!="undefined")return!!i}if(n===t)return 0!==n||1/n==1/t;if(n===n&&(!n||!Y[typeof n])&&(!t||!Y[typeof t]))return b;if(n==d||t==d)return n===t;var l=mr.call(n),p=mr.call(t);if(l==W&&(l=U),p==W&&(p=U),l!=p)return b;switch(l){case G:case H:return+n==+t;case M:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case V:case Q:return n==Yt(t)}if(p=l==L,!p){if(pr.call(n,"__wrapped__")||pr.call(t,"__wrapped__"))return gt(n.__wrapped__||n,t.__wrapped__||t,r,e,u,a);
if(l!=U||!Nr.nodeClass&&(c(n)||c(t)))return b;var l=!Nr.argsObject&&lt(n)?Qt:n.constructor,g=!Nr.argsObject&&lt(t)?Qt:t.constructor;if(l!=g&&(!vt(l)||!(l instanceof l&&vt(g)&&g instanceof g)))return b}for(g=!u,u||(u=f()),a||(a=f()),l=u.length;l--;)if(u[l]==n)return a[l]==t;var v=0,i=y;if(u.push(n),a.push(t),p){if(l=n.length,v=t.length,i=v==n.length,!i&&!o)return i;for(;v--;)if(p=l,g=t[v],o)for(;p--&&!(i=gt(n[p],g,r,e,u,a)););else if(!(i=gt(n[v],g,r,e,u,a)))break;return i}return Kr(t,function(t,o,f){return pr.call(f,o)?(v++,i=pr.call(n,o)&&gt(n[o],t,r,e,u,a)):void 0
}),i&&!o&&Kr(n,function(n,t,r){return pr.call(r,t)?i=-1<--v:void 0}),g&&(s(u),s(a)),i}function vt(n){return typeof n=="function"}function ht(n){return!(!n||!Y[typeof n])}function mt(n){return typeof n=="number"||mr.call(n)==M}function yt(n){return typeof n=="string"||mr.call(n)==Q}function dt(n,t,r){var e=arguments,u=0,a=2;if(!ht(n))return n;if(r===w)var o=e[3],i=e[4],l=e[5];else{var c=y,i=f(),l=f();typeof r!="number"&&(a=e.length),3<a&&"function"==typeof e[a-2]?o=_.createCallback(e[--a-1],e[a--],2):2<a&&"function"==typeof e[a-1]&&(o=e[--a])
}for(;++u<a;)($r(e[u])?kt:Mr)(e[u],function(t,r){var e,u,a=t,f=n[r];if(t&&((u=$r(t))||Ur(t))){for(a=i.length;a--;)if(e=i[a]==t){f=l[a];break}if(!e){var c;o&&(a=o(f,t),c=typeof a!="undefined")&&(f=a),c||(f=u?$r(f)?f:[]:Ur(f)?f:{}),i.push(t),l.push(f),c||(f=dt(f,t,w,o,i,l))}}else o&&(a=o(f,t),typeof a=="undefined"&&(a=t)),typeof a!="undefined"&&(f=a);n[r]=f});return c&&(s(i),s(l)),n}function bt(n){for(var t=-1,r=Rr(n),e=r.length,u=Ht(e);++t<e;)u[t]=n[r[t]];return u}function _t(n,t,r){var e=-1,u=ot(),a=n?n.length:0,o=b;
return r=(0>r?wr(0,a+r):r)||0,a&&typeof a=="number"?o=-1<(yt(n)?n.indexOf(t,r):u(n,t,r)):qr(n,function(n){return++e<r?void 0:!(o=n===t)}),o}function jt(n,t,r){var e=y;if(t=_.createCallback(t,r),$r(n)){r=-1;for(var u=n.length;++r<u&&(e=!!t(n[r],r,n)););}else qr(n,function(n,r,u){return e=!!t(n,r,u)});return e}function Ct(n,t,r){var e=[];if(t=_.createCallback(t,r),$r(n)){r=-1;for(var u=n.length;++r<u;){var a=n[r];t(a,r,n)&&e.push(a)}}else qr(n,function(n,r,u){t(n,r,u)&&e.push(n)});return e}function wt(n,t,r){if(t=_.createCallback(t,r),!$r(n)){var e;
return qr(n,function(n,r,u){return t(n,r,u)?(e=n,b):void 0}),e}r=-1;for(var u=n.length;++r<u;){var a=n[r];if(t(a,r,n))return a}}function kt(n,t,r){if(t&&typeof r=="undefined"&&$r(n)){r=-1;for(var e=n.length;++r<e&&t(n[r],r,n)!==false;);}else qr(n,t,r);return n}function xt(n,t,r){var e=-1,u=n?n.length:0,a=Ht(typeof u=="number"?u:0);if(t=_.createCallback(t,r),$r(n))for(;++e<u;)a[e]=t(n[e],e,n);else qr(n,function(n,r,u){a[++e]=t(n,r,u)});return a}function Ot(n,t,r){var e=-1/0,a=e;if(!t&&$r(n)){r=-1;for(var o=n.length;++r<o;){var i=n[r];
i>a&&(a=i)}}else t=!t&&yt(n)?u:_.createCallback(t,r),qr(n,function(n,r,u){r=t(n,r,u),r>e&&(e=r,a=n)});return a}function Et(n,t,r,e){var u=3>arguments.length;if(t=_.createCallback(t,e,4),$r(n)){var a=-1,o=n.length;for(u&&(r=n[++a]);++a<o;)r=t(r,n[a],a,n)}else qr(n,function(n,e,a){r=u?(u=b,n):t(r,n,e,a)});return r}function St(n,t,r,e){var u=n,a=n?n.length:0,o=3>arguments.length;if(typeof a!="number")var i=Rr(n),a=i.length;else Nr.unindexedChars&&yt(n)&&(u=n.split(""));return t=_.createCallback(t,e,4),kt(n,function(n,e,f){e=i?i[--a]:--a,r=o?(o=b,u[e]):t(r,u[e],e,f)
}),r}function At(n,t,r){var e;if(t=_.createCallback(t,r),$r(n)){r=-1;for(var u=n.length;++r<u&&!(e=t(n[r],r,n)););}else qr(n,function(n,r,u){return!(e=t(n,r,u))});return!!e}function It(n){var e=-1,u=ot(),a=n?n.length:0,i=E(arguments,y,y,1),f=[],l=a>=O&&u===t;if(l){var c=o(i);c?(u=r,i=c):l=b}for(;++e<a;)c=n[e],0>u(i,c)&&f.push(c);return l&&g(i),f}function Bt(n,t,r){if(n){var e=0,u=n.length;if(typeof t!="number"&&t!=d){var a=-1;for(t=_.createCallback(t,r);++a<u&&t(n[a],a,n);)e++}else if(e=t,e==d||r)return n[0];
return v(n,0,kr(wr(0,e),u))}}function Nt(n,r,e){if(typeof e=="number"){var u=n?n.length:0;e=0>e?wr(0,u+e):e||0}else if(e)return e=zt(n,r),n[e]===r?e:-1;return n?t(n,r,e):-1}function Pt(n,t,r){if(typeof t!="number"&&t!=d){var e=0,u=-1,a=n?n.length:0;for(t=_.createCallback(t,r);++u<a&&t(n[u],u,n);)e++}else e=t==d||r?1:wr(0,t);return v(n,e)}function zt(n,t,r,e){var u=0,a=n?n.length:u;for(r=r?_.createCallback(r,e,1):Wt,t=r(t);u<a;)e=u+a>>>1,r(n[e])<t?u=e+1:a=e;return u}function Ft(n,t,r,e){return typeof t!="boolean"&&t!=d&&(e=r,r=e&&e[t]===n?m:t,t=b),r!=d&&(r=_.createCallback(r,e)),Z(n,t,r)
}function $t(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,r=n?Ot(Vr(n,"length")):0,e=Ht(0>r?0:r);++t<r;)e[t]=Vr(n,t);return e}function Dt(n,t){for(var r=-1,e=n?n.length:0,u={};++r<e;){var a=n[r];t?u[a]=t[r]:u[a[0]]=a[1]}return u}function Rt(n,t){return Nr.fastBind||yr&&2<arguments.length?yr.call.apply(yr,arguments):nt(n,t,Er.call(arguments,2))}function qt(n,t,r){function e(){ir(s),ir(g),l=0,s=g=d}function u(){var t=v&&(!h||1<l);e(),t&&(p!==false&&(c=new Kt),i=n.apply(f,o))}function a(){e(),(v||p!==t)&&(c=new Kt,i=n.apply(f,o))
}var o,i,f,l=0,c=0,p=b,s=d,g=d,v=y;if(t=wr(0,t||0),r===y)var h=y,v=b;else ht(r)&&(h=r.leading,p="maxWait"in r&&wr(t,r.maxWait||0),v="trailing"in r?r.trailing:v);return function(){if(o=arguments,f=this,l++,ir(g),p===false)h&&2>l&&(i=n.apply(f,o));else{var r=new Kt;!s&&!h&&(c=r);var e=p-(r-c);0<e?s||(s=hr(a,e)):(ir(s),s=d,c=r,i=n.apply(f,o))}return t!==p&&(g=hr(u,t)),i}}function Tt(n){var t=Er.call(arguments,1);return hr(function(){n.apply(m,t)},1)}function Wt(n){return n}function Lt(n){kt(pt(n),function(t){var r=_[t]=n[t];
_.prototype[t]=function(){var n=this.__wrapped__,t=[n];return sr.apply(t,arguments),t=r.apply(_,t),n&&typeof n=="object"&&n===t?this:new j(t)}})}function Gt(){return this.__wrapped__}e=e?et.defaults(n.Object(),e,et.pick(n,q)):n;var Ht=e.Array,Jt=e.Boolean,Kt=e.Date,Mt=e.Function,Ut=e.Math,Vt=e.Number,Qt=e.Object,Xt=e.RegExp,Yt=e.String,Zt=e.TypeError,nr=[],tr=e.Error.prototype,rr=Qt.prototype,er=Yt.prototype,ur=e._,ar=Xt("^"+Yt(rr.valueOf).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),or=Ut.ceil,ir=e.clearTimeout,fr=Ut.floor,lr=Mt.prototype.toString,cr=ar.test(cr=Qt.getPrototypeOf)&&cr,pr=rr.hasOwnProperty,sr=nr.push,gr=rr.propertyIsEnumerable,vr=e.setImmediate,hr=e.setTimeout,mr=rr.toString,yr=ar.test(yr=mr.bind)&&yr,dr=ar.test(dr=Qt.create)&&dr,br=ar.test(br=Ht.isArray)&&br,_r=e.isFinite,jr=e.isNaN,Cr=ar.test(Cr=Qt.keys)&&Cr,wr=Ut.max,kr=Ut.min,xr=e.parseInt,Or=Ut.random,Er=nr.slice,Sr=ar.test(e.attachEvent),Ar=yr&&!/\n|true/.test(yr+Sr),Ir={};
Ir[L]=Ht,Ir[G]=Jt,Ir[H]=Kt,Ir[K]=Mt,Ir[U]=Qt,Ir[M]=Vt,Ir[V]=Xt,Ir[Q]=Yt;var Br={};Br[L]=Br[H]=Br[M]={constructor:y,toLocaleString:y,toString:y,valueOf:y},Br[G]=Br[Q]={constructor:y,toString:y,valueOf:y},Br[J]=Br[K]=Br[V]={constructor:y,toString:y},Br[U]={constructor:y},function(){for(var n=T.length;n--;){var t,r=T[n];for(t in Br)pr.call(Br,t)&&!pr.call(Br[t],r)&&(Br[t][r]=b)}}(),j.prototype=_.prototype;var Nr=_.support={};!function(){function n(){this.x=1}var t={0:1,length:1},r=[];n.prototype={valueOf:1};
for(var e in new n)r.push(e);for(e in arguments);Nr.argsObject=arguments.constructor==Qt&&!(arguments instanceof Ht),Nr.argsClass=mr.call(arguments)==W,Nr.enumErrorProps=gr.call(tr,"message")||gr.call(tr,"name"),Nr.enumPrototypes=gr.call(n,"prototype"),Nr.fastBind=yr&&!Ar,Nr.ownLast="x"!=r[0],Nr.nonEnumArgs=0!=e,Nr.nonEnumShadows=!/valueOf/.test(r),Nr.spliceObjects=(nr.splice.call(t,0,1),!t[0]),Nr.unindexedChars="xx"!="x"[0]+Qt("x")[0];try{Nr.nodeClass=!(mr.call(document)==U&&!({toString:0}+""))}catch(u){Nr.nodeClass=y
}}(1),_.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:z,variable:"",imports:{_:_}};var Pr={a:"x,F,k",h:"var a=arguments,b=0,c=typeof k=='number'?2:a.length;while(++b<c){r=a[b];if(r&&z[typeof r]){",f:"if(typeof C[m]=='undefined')C[m]=r[m]",c:"}}"},zr={a:"f,d,I",h:"d=d&&typeof I=='undefined'?d:u.createCallback(d,I)",b:"typeof s=='number'",f:"if(d(r[m],m,f)===false)return C"},Fr={h:"if(!z[typeof r])return C;"+zr.h,b:b};dr||(ut=function(n){if(ht(n)){p.prototype=n;
var t=new p;p.prototype=d}return t||{}}),Nr.argsClass||(ct=function(n){return n&&typeof n=="object"?pr.call(n,"callee"):b});var $r=br||function(n){return n&&typeof n=="object"?mr.call(n)==L:b},Dr=rt({a:"x",e:"[]",h:"if(!(z[typeof x]))return C",f:"C.push(m)"}),Rr=Cr?function(n){return ht(n)?Nr.enumPrototypes&&typeof n=="function"||Nr.nonEnumArgs&&n.length&&ct(n)?Dr(n):Cr(n):[]}:Dr,qr=rt(zr),Tr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Wr=st(Tr),Lr=Xt("("+Rr(Wr).join("|")+")","g"),Gr=Xt("["+Rr(Tr).join("")+"]","g"),Hr=rt(Pr,{h:Pr.h.replace(";",";if(c>3&&typeof a[c-2]=='function'){var d=u.createCallback(a[--c-1],a[c--],2)}else if(c>2&&typeof a[c-1]=='function'){d=a[--c]}"),f:"C[m]=d?d(C[m],r[m]):r[m]"}),Jr=rt(Pr),Kr=rt(zr,Fr,{i:b}),Mr=rt(zr,Fr);
vt(/x/)&&(vt=function(n){return typeof n=="function"&&mr.call(n)==K});var Ur=lr?function(n){if(!n||mr.call(n)!=U||!Nr.argsClass&&ct(n))return b;var t=n.valueOf,r=typeof t=="function"&&(r=lr(t))&&lr(r);return r?n==r||lr(n)==r:it(n)}:it,Vr=xt;Ar&&tt&&typeof vr=="function"&&(Tt=Rt(vr,e));var Qr=8==xr(S+"08")?xr:function(n,t){return xr(yt(n)?n.replace(F,""):n,t||0)};return _.after=function(n,t){return function(){return 1>--n?t.apply(this,arguments):void 0}},_.assign=Hr,_.at=function(n){var t=-1,r=E(arguments,y,b,1),e=r.length,u=Ht(e);
var t=new p;p.prototype=d}return t||{}}),Nr.argsClass||(lt=function(n){return n&&typeof n=="object"?pr.call(n,"callee"):b});var $r=br||function(n){return n&&typeof n=="object"?mr.call(n)==L:b},Dr=rt({a:"x",e:"[]",h:"if(!(z[typeof x]))return C",f:"C.push(m)",j:b}),Rr=Cr?function(n){return ht(n)?Nr.enumPrototypes&&typeof n=="function"||Nr.nonEnumArgs&&n.length&&lt(n)?Dr(n):Cr(n):[]}:Dr,qr=rt(zr),Tr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Wr=st(Tr),Lr=Xt("("+Rr(Wr).join("|")+")","g"),Gr=Xt("["+Rr(Tr).join("")+"]","g"),Hr=rt(Pr,{h:Pr.h.replace(";",";if(c>3&&typeof a[c-2]=='function'){var d=u.createCallback(a[--c-1],a[c--],2)}else if(c>2&&typeof a[c-1]=='function'){d=a[--c]}"),f:"C[m]=d?d(C[m],r[m]):r[m]"}),Jr=rt(Pr),Kr=rt(zr,Fr,{i:b}),Mr=rt(zr,Fr);
vt(/x/)&&(vt=function(n){return typeof n=="function"&&mr.call(n)==K});var Ur=cr?function(n){if(!n||mr.call(n)!=U||!Nr.argsClass&&lt(n))return b;var t=n.valueOf,r=typeof t=="function"&&(r=cr(t))&&cr(r);return r?n==r||cr(n)==r:it(n)}:it,Vr=xt;Ar&&tt&&typeof vr=="function"&&(Tt=Rt(vr,e));var Qr=8==xr(S+"08")?xr:function(n,t){return xr(yt(n)?n.replace(F,""):n,t||0)};return _.after=function(n,t){return function(){return 1>--n?t.apply(this,arguments):void 0}},_.assign=Hr,_.at=function(n){var t=-1,r=E(arguments,y,b,1),e=r.length,u=Ht(e);
for(Nr.unindexedChars&&yt(n)&&(n=n.split(""));++t<e;)u[t]=n[r[t]];return u},_.bind=Rt,_.bindAll=function(n){for(var t=1<arguments.length?E(arguments,y,b,1):pt(n),r=-1,e=t.length;++r<e;){var u=t[r];n[u]=Rt(n[u],n)}return n},_.bindKey=function(n,t){return nt(n,t,Er.call(arguments,2),w)},_.compact=function(n){for(var t=-1,r=n?n.length:0,e=[];++t<r;){var u=n[t];u&&e.push(u)}return e},_.compose=function(){var n=arguments;return function(){for(var t=arguments,r=n.length;r--;)t=[n[r].apply(this,t)];return t[0]
}},_.countBy=function(n,t,r){var e={};return t=_.createCallback(t,r),kt(n,function(n,r,u){r=Yt(t(n,r,u)),pr.call(e,r)?e[r]++:e[r]=1}),e},_.createCallback=function(n,t,r){if(n==d)return Wt;var e=typeof n;if("function"!=e){if("object"!=e)return function(t){return t[n]};var u=Rr(n);return function(t){for(var r=u.length,e=b;r--&&(e=gt(t[u[r]],n[u[r]],w)););return e}}return typeof t=="undefined"||D&&!D.test(cr.call(n))?n:1===r?function(r){return n.call(t,r)}:2===r?function(r,e){return n.call(t,r,e)}:4===r?function(r,e,u,o){return n.call(t,r,e,u,o)
}},_.countBy=function(n,t,r){var e={};return t=_.createCallback(t,r),kt(n,function(n,r,u){r=Yt(t(n,r,u)),pr.call(e,r)?e[r]++:e[r]=1}),e},_.createCallback=function(n,t,r){if(n==d)return Wt;var e=typeof n;if("function"!=e){if("object"!=e)return function(t){return t[n]};var u=Rr(n);return function(t){for(var r=u.length,e=b;r--&&(e=gt(t[u[r]],n[u[r]],w)););return e}}return typeof t=="undefined"||D&&!D.test(lr.call(n))?n:1===r?function(r){return n.call(t,r)}:2===r?function(r,e){return n.call(t,r,e)}:4===r?function(r,e,u,a){return n.call(t,r,e,u,a)
}:function(r,e,u){return n.call(t,r,e,u)}},_.debounce=qt,_.defaults=Jr,_.defer=Tt,_.delay=function(n,t){var r=Er.call(arguments,2);return hr(function(){n.apply(m,r)},t)},_.difference=It,_.filter=Ct,_.flatten=function(n,t,r,e){return typeof t!="boolean"&&t!=d&&(e=r,r=e&&e[t]===n?m:t,t=b),r!=d&&(n=xt(n,r,e)),E(n,t)},_.forEach=kt,_.forIn=Kr,_.forOwn=Mr,_.functions=pt,_.groupBy=function(n,t,r){var e={};return t=_.createCallback(t,r),kt(n,function(n,r,u){r=Yt(t(n,r,u)),(pr.call(e,r)?e[r]:e[r]=[]).push(n)
}),e},_.initial=function(n,t,r){if(!n)return[];var e=0,u=n.length;if(typeof t!="number"&&t!=d){var o=u;for(t=_.createCallback(t,r);o--&&t(n[o],o,n);)e++}else e=t==d||r?1:t||e;return v(n,0,kr(wr(0,u-e),u))},_.intersection=function(n){for(var e=arguments,u=e.length,o=-1,i=f(),c=-1,l=at(),p=n?n.length:0,v=[],h=f();++o<u;){var m=e[o];i[o]=l===t&&(m?m.length:0)>=O&&a(o?e[o]:h)}n:for(;++c<p;){var y=i[0],m=n[c];if(0>(y?r(y,m):l(h,m))){for(o=u,(y||h).push(m);--o;)if(y=i[o],0>(y?r(y,m):l(e[o],m)))continue n;
v.push(m)}}for(;u--;)(y=i[u])&&g(y);return s(i),s(h),v},_.invert=st,_.invoke=function(n,t){var r=Er.call(arguments,2),e=-1,u=typeof t=="function",o=n?n.length:0,a=Ht(typeof o=="number"?o:0);return kt(n,function(n){a[++e]=(u?t:n[t]).apply(n,r)}),a},_.keys=Rr,_.map=xt,_.max=Ot,_.memoize=function(n,t){function r(){var e=r.cache,u=x+(t?t.apply(this,arguments):arguments[0]);return pr.call(e,u)?e[u]:e[u]=n.apply(this,arguments)}return r.cache={},r},_.merge=dt,_.min=function(n,t,r){var e=1/0,o=e;if(!t&&$r(n)){r=-1;
for(var a=n.length;++r<a;){var i=n[r];i<o&&(o=i)}}else t=!t&&yt(n)?u:_.createCallback(t,r),qr(n,function(n,r,u){r=t(n,r,u),r<e&&(e=r,o=n)});return o},_.omit=function(n,t,r){var e=at(),u=typeof t=="function",o={};if(u)t=_.createCallback(t,r);else var a=E(arguments,y,b,1);return Kr(n,function(n,r,i){(u?!t(n,r,i):0>e(a,r))&&(o[r]=n)}),o},_.once=function(n){var t,r;return function(){return t?r:(t=y,r=n.apply(this,arguments),n=d,r)}},_.pairs=function(n){for(var t=-1,r=Rr(n),e=r.length,u=Ht(e);++t<e;){var o=r[t];
u[t]=[o,n[o]]}return u},_.partial=function(n){return nt(n,Er.call(arguments,1))},_.partialRight=function(n){return nt(n,Er.call(arguments,1),d,w)},_.pick=function(n,t,r){var e={};if(typeof t!="function")for(var u=-1,o=E(arguments,y,b,1),a=ht(n)?o.length:0;++u<a;){var i=o[u];i in n&&(e[i]=n[i])}else t=_.createCallback(t,r),Kr(n,function(n,r,u){t(n,r,u)&&(e[r]=n)});return e},_.pluck=Vr,_.range=function(n,t,r){n=+n||0,r=+r||1,t==d&&(t=n,n=0);var e=-1;t=wr(0,ar((t-n)/r));for(var u=Ht(t);++e<t;)u[e]=n,n+=r;
return u},_.reject=function(n,t,r){return t=_.createCallback(t,r),Ct(n,function(n,r,e){return!t(n,r,e)})},_.rest=Pt,_.shuffle=function(n){var t=-1,r=n?n.length:0,e=Ht(typeof r=="number"?r:0);return kt(n,function(n){var r=fr(Or()*(++t+1));e[t]=e[r],e[r]=n}),e},_.sortBy=function(n,t,r){var e=-1,u=n?n.length:0,a=Ht(typeof u=="number"?u:0);for(t=_.createCallback(t,r),kt(n,function(n,r,u){var o=a[++e]=c();o.l=t(n,r,u),o.m=e,o.n=n}),u=a.length,a.sort(o);u--;)n=a[u],a[u]=n.n,g(n);return a},_.tap=function(n,t){return t(n),n
},_.throttle=function(n,t,r){var e=y,u=y;return r===false?e=b:ht(r)&&(e="leading"in r?r.leading:e,u="trailing"in r?r.trailing:u),r=c(),r.leading=e,r.maxWait=t,r.trailing=u,n=qt(n,t,r),g(r),n},_.times=function(n,t,r){n=-1<(n=+n)?n:0;var e=-1,u=Ht(n);for(t=_.createCallback(t,r,1);++e<n;)u[e]=t(e);return u},_.toArray=function(n){return n&&typeof n.length=="number"?Nr.unindexedChars&&yt(n)?n.split(""):v(n):bt(n)},_.transform=function(n,t,r,e){var u=$r(n);return t=_.createCallback(t,e,4),r==d&&(u?r=[]:(e=n&&n.constructor,r=ut(e&&e.prototype))),(u?qr:Mr)(n,function(n,e,u){return t(r,n,e,u)
}),r},_.union=function(){return Z(E(arguments,y,y))},_.uniq=Ft,_.values=bt,_.where=Ct,_.without=function(n){return It(n,Er.call(arguments,1))},_.wrap=function(n,t){return function(){var r=[n];return sr.apply(r,arguments),t.apply(this,r)}},_.zip=$t,_.zipObject=Dt,_.collect=xt,_.drop=Pt,_.each=kt,_.extend=Hr,_.methods=pt,_.object=Dt,_.select=Ct,_.tail=Pt,_.unique=Ft,_.unzip=$t,Lt(_),_.chain=_,_.prototype.chain=function(){return this},_.clone=lt,_.cloneDeep=function(n,t,r){return lt(n,y,t,r)},_.contains=_t,_.escape=function(n){return n==d?"":Yt(n).replace(Gr,ot)
},_.every=jt,_.find=wt,_.findIndex=function(n,t,r){var e=-1,u=n?n.length:0;for(t=_.createCallback(t,r);++e<u;)if(t(n[e],e,n))return e;return-1},_.findKey=function(n,t,r){var e;return t=_.createCallback(t,r),Mr(n,function(n,r,u){return t(n,r,u)?(e=r,b):void 0}),e},_.has=function(n,t){return n?pr.call(n,t):b},_.identity=Wt,_.indexOf=Nt,_.isArguments=ct,_.isArray=$r,_.isBoolean=function(n){return n===y||n===false||mr.call(n)==G},_.isDate=function(n){return n?typeof n=="object"&&mr.call(n)==H:b},_.isElement=function(n){return n?1===n.nodeType:b
},_.isEmpty=function(n){var t=y;if(!n)return t;var r=mr.call(n),e=n.length;return r==L||r==Q||(Nr.argsClass?r==W:ct(n))||r==U&&typeof e=="number"&&vt(n.splice)?!e:(Mr(n,function(){return t=b}),t)},_.isEqual=gt,_.isFinite=function(n){return _r(n)&&!jr(parseFloat(n))},_.isFunction=vt,_.isNaN=function(n){return mt(n)&&n!=+n},_.isNull=function(n){return n===d},_.isNumber=mt,_.isObject=ht,_.isPlainObject=Ur,_.isRegExp=function(n){return n&&Y[typeof n]?mr.call(n)==V:b},_.isString=yt,_.isUndefined=function(n){return typeof n=="undefined"
}),e},_.initial=function(n,t,r){if(!n)return[];var e=0,u=n.length;if(typeof t!="number"&&t!=d){var a=u;for(t=_.createCallback(t,r);a--&&t(n[a],a,n);)e++}else e=t==d||r?1:t||e;return v(n,0,kr(wr(0,u-e),u))},_.intersection=function(n){for(var e=arguments,u=e.length,a=-1,i=f(),l=-1,c=ot(),p=n?n.length:0,v=[],h=f();++a<u;){var m=e[a];i[a]=c===t&&(m?m.length:0)>=O&&o(a?e[a]:h)}n:for(;++l<p;){var y=i[0],m=n[l];if(0>(y?r(y,m):c(h,m))){for(a=u,(y||h).push(m);--a;)if(y=i[a],0>(y?r(y,m):c(e[a],m)))continue n;
v.push(m)}}for(;u--;)(y=i[u])&&g(y);return s(i),s(h),v},_.invert=st,_.invoke=function(n,t){var r=Er.call(arguments,2),e=-1,u=typeof t=="function",a=n?n.length:0,o=Ht(typeof a=="number"?a:0);return kt(n,function(n){o[++e]=(u?t:n[t]).apply(n,r)}),o},_.keys=Rr,_.map=xt,_.max=Ot,_.memoize=function(n,t){function r(){var e=r.cache,u=x+(t?t.apply(this,arguments):arguments[0]);return pr.call(e,u)?e[u]:e[u]=n.apply(this,arguments)}return r.cache={},r},_.merge=dt,_.min=function(n,t,r){var e=1/0,a=e;if(!t&&$r(n)){r=-1;
for(var o=n.length;++r<o;){var i=n[r];i<a&&(a=i)}}else t=!t&&yt(n)?u:_.createCallback(t,r),qr(n,function(n,r,u){r=t(n,r,u),r<e&&(e=r,a=n)});return a},_.omit=function(n,t,r){var e=ot(),u=typeof t=="function",a={};if(u)t=_.createCallback(t,r);else var o=E(arguments,y,b,1);return Kr(n,function(n,r,i){(u?!t(n,r,i):0>e(o,r))&&(a[r]=n)}),a},_.once=function(n){var t,r;return function(){return t?r:(t=y,r=n.apply(this,arguments),n=d,r)}},_.pairs=function(n){for(var t=-1,r=Rr(n),e=r.length,u=Ht(e);++t<e;){var a=r[t];
u[t]=[a,n[a]]}return u},_.partial=function(n){return nt(n,Er.call(arguments,1))},_.partialRight=function(n){return nt(n,Er.call(arguments,1),d,w)},_.pick=function(n,t,r){var e={};if(typeof t!="function")for(var u=-1,a=E(arguments,y,b,1),o=ht(n)?a.length:0;++u<o;){var i=a[u];i in n&&(e[i]=n[i])}else t=_.createCallback(t,r),Kr(n,function(n,r,u){t(n,r,u)&&(e[r]=n)});return e},_.pluck=Vr,_.range=function(n,t,r){n=+n||0,r=+r||1,t==d&&(t=n,n=0);var e=-1;t=wr(0,or((t-n)/r));for(var u=Ht(t);++e<t;)u[e]=n,n+=r;
return u},_.reject=function(n,t,r){return t=_.createCallback(t,r),Ct(n,function(n,r,e){return!t(n,r,e)})},_.rest=Pt,_.shuffle=function(n){var t=-1,r=n?n.length:0,e=Ht(typeof r=="number"?r:0);return kt(n,function(n){var r=fr(Or()*(++t+1));e[t]=e[r],e[r]=n}),e},_.sortBy=function(n,t,r){var e=-1,u=n?n.length:0,o=Ht(typeof u=="number"?u:0);for(t=_.createCallback(t,r),kt(n,function(n,r,u){var a=o[++e]=l();a.l=t(n,r,u),a.m=e,a.n=n}),u=o.length,o.sort(a);u--;)n=o[u],o[u]=n.n,g(n);return o},_.tap=function(n,t){return t(n),n
},_.throttle=function(n,t,r){var e=y,u=y;return r===false?e=b:ht(r)&&(e="leading"in r?r.leading:e,u="trailing"in r?r.trailing:u),r=l(),r.leading=e,r.maxWait=t,r.trailing=u,n=qt(n,t,r),g(r),n},_.times=function(n,t,r){n=-1<(n=+n)?n:0;var e=-1,u=Ht(n);for(t=_.createCallback(t,r,1);++e<n;)u[e]=t(e);return u},_.toArray=function(n){return n&&typeof n.length=="number"?Nr.unindexedChars&&yt(n)?n.split(""):v(n):bt(n)},_.transform=function(n,t,r,e){var u=$r(n);return t=_.createCallback(t,e,4),r==d&&(u?r=[]:(e=n&&n.constructor,r=ut(e&&e.prototype))),(u?qr:Mr)(n,function(n,e,u){return t(r,n,e,u)
}),r},_.union=function(){return Z(E(arguments,y,y))},_.uniq=Ft,_.values=bt,_.where=Ct,_.without=function(n){return It(n,Er.call(arguments,1))},_.wrap=function(n,t){return function(){var r=[n];return sr.apply(r,arguments),t.apply(this,r)}},_.zip=$t,_.zipObject=Dt,_.collect=xt,_.drop=Pt,_.each=kt,_.extend=Hr,_.methods=pt,_.object=Dt,_.select=Ct,_.tail=Pt,_.unique=Ft,_.unzip=$t,Lt(_),_.chain=_,_.prototype.chain=function(){return this},_.clone=ct,_.cloneDeep=function(n,t,r){return ct(n,y,t,r)},_.contains=_t,_.escape=function(n){return n==d?"":Yt(n).replace(Gr,at)
},_.every=jt,_.find=wt,_.findIndex=function(n,t,r){var e=-1,u=n?n.length:0;for(t=_.createCallback(t,r);++e<u;)if(t(n[e],e,n))return e;return-1},_.findKey=function(n,t,r){var e;return t=_.createCallback(t,r),Mr(n,function(n,r,u){return t(n,r,u)?(e=r,b):void 0}),e},_.has=function(n,t){return n?pr.call(n,t):b},_.identity=Wt,_.indexOf=Nt,_.isArguments=lt,_.isArray=$r,_.isBoolean=function(n){return n===y||n===false||mr.call(n)==G},_.isDate=function(n){return n?typeof n=="object"&&mr.call(n)==H:b},_.isElement=function(n){return n?1===n.nodeType:b
},_.isEmpty=function(n){var t=y;if(!n)return t;var r=mr.call(n),e=n.length;return r==L||r==Q||(Nr.argsClass?r==W:lt(n))||r==U&&typeof e=="number"&&vt(n.splice)?!e:(Mr(n,function(){return t=b}),t)},_.isEqual=gt,_.isFinite=function(n){return _r(n)&&!jr(parseFloat(n))},_.isFunction=vt,_.isNaN=function(n){return mt(n)&&n!=+n},_.isNull=function(n){return n===d},_.isNumber=mt,_.isObject=ht,_.isPlainObject=Ur,_.isRegExp=function(n){return n&&Y[typeof n]?mr.call(n)==V:b},_.isString=yt,_.isUndefined=function(n){return typeof n=="undefined"
},_.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(e=(0>r?wr(0,e+r):kr(r,e-1))+1);e--;)if(n[e]===t)return e;return-1},_.mixin=Lt,_.noConflict=function(){return e._=ur,this},_.parseInt=Qr,_.random=function(n,t){n==d&&t==d&&(t=1),n=+n||0,t==d?(t=n,n=0):t=+t||0;var r=Or();return n%1||t%1?n+kr(r*(t-n+parseFloat("1e-"+((r+"").length-1))),t):n+fr(r*(t-n+1))},_.reduce=Et,_.reduceRight=St,_.result=function(n,t){var r=n?n[t]:m;return vt(r)?n[t]():r},_.runInContext=h,_.size=function(n){var t=n?n.length:0;
return typeof t=="number"?t:Rr(n).length},_.some=At,_.sortedIndex=zt,_.template=function(n,t,r){var e=_.templateSettings;n||(n=""),r=Jr({},r,e);var u,o=Jr({},r.imports,e.imports),e=Rr(o),o=bt(o),a=0,f=r.interpolate||$,c="__p+='",f=Xt((r.escape||$).source+"|"+f.source+"|"+(f===z?N:$).source+"|"+(r.evaluate||$).source+"|$","g");n.replace(f,function(t,r,e,o,f,l){return e||(e=o),c+=n.slice(a,l).replace(R,i),r&&(c+="'+__e("+r+")+'"),f&&(u=y,c+="';"+f+";__p+='"),e&&(c+="'+((__t=("+e+"))==null?'':__t)+'"),a=l+t.length,t
}),c+="';\n",f=r=r.variable,f||(r="obj",c="with("+r+"){"+c+"}"),c=(u?c.replace(A,""):c).replace(I,"$1").replace(B,"$1;"),c="function("+r+"){"+(f?"":r+"||("+r+"={});")+"var __t,__p='',__e=_.escape"+(u?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+c+"return __p}";try{var l=Mt(e,"return "+c).apply(m,o)}catch(p){throw p.source=c,p}return t?l(t):(l.source=c,l)},_.unescape=function(n){return n==d?"":Yt(n).replace(Lr,ft)},_.uniqueId=function(n){var t=++C;return Yt(n==d?"":n)+t
},_.all=jt,_.any=At,_.detect=wt,_.findWhere=wt,_.foldl=Et,_.foldr=St,_.include=_t,_.inject=Et,Mr(_,function(n,t){_.prototype[t]||(_.prototype[t]=function(){var t=[this.__wrapped__];return sr.apply(t,arguments),n.apply(_,t)})}),_.first=Bt,_.last=function(n,t,r){if(n){var e=0,u=n.length;if(typeof t!="number"&&t!=d){var o=u;for(t=_.createCallback(t,r);o--&&t(n[o],o,n);)e++}else if(e=t,e==d||r)return n[u-1];return v(n,wr(0,u-e))}},_.take=Bt,_.head=Bt,Mr(_,function(n,t){_.prototype[t]||(_.prototype[t]=function(t,r){var e=n(this.__wrapped__,t,r);
return typeof t=="number"?t:Rr(n).length},_.some=At,_.sortedIndex=zt,_.template=function(n,t,r){var e=_.templateSettings;n||(n=""),r=Jr({},r,e);var u,a=Jr({},r.imports,e.imports),e=Rr(a),a=bt(a),o=0,f=r.interpolate||$,l="__p+='",f=Xt((r.escape||$).source+"|"+f.source+"|"+(f===z?N:$).source+"|"+(r.evaluate||$).source+"|$","g");n.replace(f,function(t,r,e,a,f,c){return e||(e=a),l+=n.slice(o,c).replace(R,i),r&&(l+="'+__e("+r+")+'"),f&&(u=y,l+="';"+f+";__p+='"),e&&(l+="'+((__t=("+e+"))==null?'':__t)+'"),o=c+t.length,t
}),l+="';\n",f=r=r.variable,f||(r="obj",l="with("+r+"){"+l+"}"),l=(u?l.replace(A,""):l).replace(I,"$1").replace(B,"$1;"),l="function("+r+"){"+(f?"":r+"||("+r+"={});")+"var __t,__p='',__e=_.escape"+(u?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+l+"return __p}";try{var c=Mt(e,"return "+l).apply(m,a)}catch(p){throw p.source=l,p}return t?c(t):(c.source=l,c)},_.unescape=function(n){return n==d?"":Yt(n).replace(Lr,ft)},_.uniqueId=function(n){var t=++C;return Yt(n==d?"":n)+t
},_.all=jt,_.any=At,_.detect=wt,_.findWhere=wt,_.foldl=Et,_.foldr=St,_.include=_t,_.inject=Et,Mr(_,function(n,t){_.prototype[t]||(_.prototype[t]=function(){var t=[this.__wrapped__];return sr.apply(t,arguments),n.apply(_,t)})}),_.first=Bt,_.last=function(n,t,r){if(n){var e=0,u=n.length;if(typeof t!="number"&&t!=d){var a=u;for(t=_.createCallback(t,r);a--&&t(n[a],a,n);)e++}else if(e=t,e==d||r)return n[u-1];return v(n,wr(0,u-e))}},_.take=Bt,_.head=Bt,Mr(_,function(n,t){_.prototype[t]||(_.prototype[t]=function(t,r){var e=n(this.__wrapped__,t,r);
return t==d||r&&typeof t!="function"?e:new j(e)})}),_.VERSION="1.3.1",_.prototype.toString=function(){return Yt(this.__wrapped__)},_.prototype.value=Gt,_.prototype.valueOf=Gt,qr(["join","pop","shift"],function(n){var t=nr[n];_.prototype[n]=function(){return t.apply(this.__wrapped__,arguments)}}),qr(["push","reverse","sort","unshift"],function(n){var t=nr[n];_.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),qr(["concat","slice","splice"],function(n){var t=nr[n];_.prototype[n]=function(){return new j(t.apply(this.__wrapped__,arguments))
}}),Nr.spliceObjects||qr(["pop","shift","splice"],function(n){var t=nr[n],r="splice"==n;_.prototype[n]=function(){var n=this.__wrapped__,e=t.apply(n,arguments);return 0===n.length&&delete n[0],r?new j(e):e}}),_}var m,y=!0,d=null,b=!1,_=[],j=[],C=0,w={},x=+new Date+"",O=75,E=40,S=" \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",A=/\b__p\+='';/g,I=/\b(__p\+=)''\+/g,B=/(__e\(.*?\)|\b__t\))\+'';/g,N=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,P=/\w*$/,z=/<%=([\s\S]+?)%>/g,F=RegExp("^["+S+"]*0+(?=.$)"),$=/($^)/,D=(D=/\bthis\b/)&&D.test(h)&&D,R=/['\n\r\t\u2028\u2029\\]/g,q="Array Boolean Date Error Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout".split(" "),T="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),W="[object Arguments]",L="[object Array]",G="[object Boolean]",H="[object Date]",J="[object Error]",K="[object Function]",M="[object Number]",U="[object Object]",V="[object RegExp]",Q="[object String]",X={};
X[K]=b,X[W]=X[L]=X[G]=X[H]=X[M]=X[U]=X[V]=X[Q]=y;var Y={"boolean":b,"function":y,object:y,number:b,string:b,undefined:b},Z={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},nt=Y[typeof exports]&&exports,tt=Y[typeof module]&&module&&module.exports==nt&&module,rt=Y[typeof global]&&global;!rt||rt.global!==rt&&rt.window!==rt||(n=rt);var et=h();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=et, define(function(){return et})):nt&&!nt.nodeType?tt?(tt.exports=et)._=et:nt._=et:n._=et

52
dist/lodash.js vendored
View File

@@ -414,7 +414,7 @@
// Avoid issues with some ES3 environments that attempt to use values, named
// after built-in constructors like `Object`, for the creation of literals.
// ES5 clears this up by stating that literals must use built-in constructors.
// See http://es5.github.com/#x11.1.5.
// See http://es5.github.io/#x11.1.5.
context = context ? _.defaults(window.Object(), context, _.pick(window, contextProps)) : window;
/** Native constructor references */
@@ -765,7 +765,7 @@
function bound() {
// `Function#bind` spec
// http://es5.github.com/#x15.3.4.5
// http://es5.github.io/#x15.3.4.5
var args = arguments,
thisBinding = isPartial ? this : thisArg;
@@ -782,7 +782,7 @@
thisBinding = createObject(func.prototype);
// mimic the constructor's `return` behavior
// http://es5.github.com/#x13.2.2
// http://es5.github.io/#x13.2.2
var result = func.apply(thisBinding, args);
return isObject(result) ? result : thisBinding;
}
@@ -918,13 +918,10 @@
var index, iterable = object, result = [];
if (!iterable) return result;
if (!(objectTypes[typeof object])) return result;
var ownIndex = -1,
ownProps = objectTypes[typeof iterable] && keys(iterable),
length = ownProps ? ownProps.length : 0;
while (++ownIndex < length) {
index = ownProps[ownIndex];
result.push(index);
for (index in iterable) {
if (hasOwnProperty.call(iterable, index)) {
result.push(index);
}
}
return result
};
@@ -1578,12 +1575,12 @@
// exit early for unlike primitive values
if (a === a &&
(!a || (type != 'function' && type != 'object')) &&
(!b || (otherType != 'function' && otherType != 'object'))) {
!(a && objectTypes[type]) &&
!(b && objectTypes[otherType])) {
return false;
}
// exit early for `null` and `undefined`, avoiding ES3's Function#call behavior
// http://es5.github.com/#x15.3.4.4
// http://es5.github.io/#x15.3.4.4
if (a == null || b == null) {
return a === b;
}
@@ -1616,7 +1613,7 @@
case regexpClass:
case stringClass:
// coerce regexes to strings (http://es5.github.com/#x15.10.6.4)
// coerce regexes to strings (http://es5.github.io/#x15.10.6.4)
// treat string primitives and their corresponding object instances as equal
return a == String(b);
}
@@ -1644,7 +1641,7 @@
}
// assume cyclic structures are equal
// the algorithm for detecting cyclic structures is adapted from ES 5.1
// section 15.12.3, abstract operation `JO` (http://es5.github.com/#x15.12.3)
// section 15.12.3, abstract operation `JO` (http://es5.github.io/#x15.12.3)
var initedStack = !stackA;
stackA || (stackA = getArray());
stackB || (stackB = getArray());
@@ -1720,7 +1717,7 @@
* Checks if `value` is, or can be coerced to, a finite number.
*
* Note: This is not the same as native `isFinite`, which will return true for
* booleans and empty strings. See http://es5.github.com/#x15.1.2.5.
* booleans and empty strings. See http://es5.github.io/#x15.1.2.5.
*
* @static
* @memberOf _
@@ -1787,7 +1784,7 @@
*/
function isObject(value) {
// check if the value is the ECMAScript language type of Object
// http://es5.github.com/#x8
// http://es5.github.io/#x8
// and avoid a V8 bug
// http://code.google.com/p/v8/issues/detail?id=2291
return !!(value && objectTypes[typeof value]);
@@ -1797,7 +1794,7 @@
* Checks if `value` is `NaN`.
*
* Note: This is not the same as native `isNaN`, which will return `true` for
* `undefined` and other values. See http://es5.github.com/#x15.1.2.4.
* `undefined` and other values. See http://es5.github.io/#x15.1.2.4.
*
* @static
* @memberOf _
@@ -4908,7 +4905,7 @@
* `value` is a hexadecimal, in which case a `radix` of `16` is used.
*
* Note: This method avoids differences in native ES3 and ES5 `parseInt`
* implementations. See http://es5.github.com/#E.
* implementations. See http://es5.github.io/#E.
*
* @static
* @memberOf _
@@ -5014,6 +5011,7 @@
* @param {Object} options The options object.
* escape - The "escape" delimiter regexp.
* evaluate - The "evaluate" delimiter regexp.
* imports - An object of properties to import into the compiled template as local variables.
* interpolate - The "interpolate" delimiter regexp.
* sourceURL - The sourceURL of the template's compiled source.
* variable - The data object variable name.
@@ -5026,14 +5024,15 @@
* compiled({ 'name': 'moe' });
* // => 'hello moe'
*
* var list = '<% _.forEach(people, function(name) { %><li><%= name %></li><% }); %>';
* _.template(list, { 'people': ['moe', 'larry'] });
* // => '<li>moe</li><li>larry</li>'
*
* // using the "escape" delimiter to escape HTML in data property values
* _.template('<b><%- value %></b>', { 'value': '<script>' });
* // => '<b>&lt;script&gt;</b>'
*
* // using the "evaluate" delimiter to generate HTML
* var list = '<% _.forEach(people, function(name) { %><li><%= name %></li><% }); %>';
* _.template(list, { 'people': ['moe', 'larry'] });
* // => '<li>moe</li><li>larry</li>'
*
* // using the ES6 delimiter as an alternative to the default "interpolate" delimiter
* _.template('hello ${ name }', { 'name': 'curly' });
* // => 'hello curly'
@@ -5042,7 +5041,7 @@
* _.template('<% print("hello " + epithet); %>!', { 'epithet': 'stooge' });
* // => 'hello stooge!'
*
* // using custom template delimiters
* // using a custom template delimiters
* _.templateSettings = {
* 'interpolate': /{{([\s\S]+?)}}/g
* };
@@ -5050,6 +5049,11 @@
* _.template('hello {{ name }}!', { 'name': 'mustache' });
* // => 'hello mustache!'
*
* // using the `imports` option to import jQuery
* var list = '<% $.each(people, function(name) { %><li><%= name %></li><% }); %>';
* _.template(list, { 'people': ['moe', 'larry'] }, { 'imports': { '$': jQuery });
* // => '<li>moe</li><li>larry</li>'
*
* // using the `sourceURL` option to specify a custom sourceURL for the template
* var compiled = _.template('hello <%= name %>', null, { 'sourceURL': '/basic/greeting.jst' });
* compiled(data);

6
dist/lodash.min.js vendored
View File

@@ -7,13 +7,13 @@
}}function u(n){return n.charCodeAt(0)}function a(n,t){var e=n.m,r=t.m;if(n=n.l,t=t.l,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1}return e<r?-1:1}function o(n){var t=-1,e=n.length,u=n[0],a=n[e-1];if(u&&typeof u=="object"&&a&&typeof a=="object")return b;for(u=c(),u["false"]=u["null"]=u["true"]=u.undefined=b,a=c(),a.b=n,a.k=u,a.push=r;++t<e;)a.push(n[t]);return a}function i(n){return"\\"+J[n]}function f(){return m.pop()||[]}function c(){return d.pop()||{b:h,k:h,l:h,"false":b,m:0,leading:b,maxWait:0,"null":b,number:h,object:h,push:h,string:h,trailing:b,"true":b,undefined:b,n:h}
}function l(n){n.length=0,m.length<C&&m.push(n)}function p(n){var t=n.k;t&&p(t),n.b=n.k=n.l=n.object=n.number=n.string=n.n=h,d.length<C&&d.push(n)}function s(n,t,e){t||(t=0),typeof e=="undefined"&&(e=n?n.length:0);var r=-1;e=e-t||0;for(var u=Array(0>e?0:e);++r<e;)u[r]=n[t+r];return u}function v(r){function m(n){if(!n||ve.call(n)!=M)return b;var t=n.valueOf,e=typeof t=="function"&&(e=fe(t))&&fe(e);return e?n==e||fe(n)==e:ot(n)}function d(n,t,e){if(!n||!H[typeof n])return n;t=t&&typeof e=="undefined"?t:Z.createCallback(t,e);
for(var r=-1,u=H[typeof n]&&Se(n),a=u?u.length:0;++r<a&&(e=u[r],!(t(n[e],e,n)===false)););return n}function C(n,t,e){var r;if(!n||!H[typeof n])return n;t=t&&typeof e=="undefined"?t:Z.createCallback(t,e);for(r in n)if(t(n[r],r,n)===false)break;return n}function J(n,t,e){var r,u=n,a=u;if(!u)return a;for(var o=arguments,i=0,f=typeof e=="number"?2:o.length;++i<f;)if((u=o[i])&&H[typeof u])for(var c=-1,l=H[typeof u]&&Se(u),p=l?l.length:0;++c<p;)r=l[c],"undefined"==typeof a[r]&&(a[r]=u[r]);return a}function L(n,t,e){var r,u=n,a=u;
if(!u)return a;var o=arguments,i=0,f=typeof e=="number"?2:o.length;if(3<f&&"function"==typeof o[f-2])var c=Z.createCallback(o[--f-1],o[f--],2);else 2<f&&"function"==typeof o[f-1]&&(c=o[--f]);for(;++i<f;)if((u=o[i])&&H[typeof u])for(var l=-1,p=H[typeof u]&&Se(u),s=p?p.length:0;++l<s;)r=p[l],a[r]=c?c(a[r],u[r]):u[r];return a}function X(n){var t=[];if(!n||!H[typeof n])return t;for(var e=-1,r=H[typeof n]&&Se(n),u=r?r.length:0;++e<u;)n=r[e],t.push(n);return t}function Z(n){return n&&typeof n=="object"&&!Ee(n)&&ce.call(n,"__wrapped__")?n:new nt(n)
if(!u)return a;var o=arguments,i=0,f=typeof e=="number"?2:o.length;if(3<f&&"function"==typeof o[f-2])var c=Z.createCallback(o[--f-1],o[f--],2);else 2<f&&"function"==typeof o[f-1]&&(c=o[--f]);for(;++i<f;)if((u=o[i])&&H[typeof u])for(var l=-1,p=H[typeof u]&&Se(u),s=p?p.length:0;++l<s;)r=p[l],a[r]=c?c(a[r],u[r]):u[r];return a}function X(n){var t,e=[];if(!n||!H[typeof n])return e;for(t in n)ce.call(n,t)&&e.push(t);return e}function Z(n){return n&&typeof n=="object"&&!Ee(n)&&ce.call(n,"__wrapped__")?n:new nt(n)
}function nt(n){this.__wrapped__=n}function tt(n,t,e,r){r=(r||0)-1;for(var u=n?n.length:0,a=[];++r<u;){var o=n[r];o&&typeof o=="object"&&(Ee(o)||ft(o))?le.apply(a,t?o:tt(o,t,e)):e||a.push(o)}return a}function et(n,r,u){var a=-1,i=at(),c=n?n.length:0,s=[],v=!r&&c>=w&&i===t,g=u||v?f():s;if(v){var y=o(g);y?(i=e,g=y):(v=b,g=u?g:(l(g),s))}for(;++a<c;){var y=n[a],h=u?u(y,a,n):y;(r?!a||g[g.length-1]!==h:0>i(g,h))&&((u||v)&&g.push(h),s.push(y))}return v?(l(g.b),p(g)):u&&l(g),s}function rt(n,t,e,r){function u(){var r=arguments,c=o?this:t;
return a||(n=t[i]),e.length&&(r=r.length?(r=Ce.call(r),f?r.concat(e):e.concat(r)):e),this instanceof u?(c=gt(n.prototype)?ye(n.prototype):{},r=n.apply(c,r),gt(r)?r:c):n.apply(c,r)}var a=vt(n),o=!e,i=t;if(o){var f=r;e=t}else if(!a){if(!r)throw new Zt;t=n}return u}function ut(n){return Ae[n]}function at(){var n=(n=Z.indexOf)===$t?t:n;return n}function ot(n){var t,e;return n&&ve.call(n)==M&&(t=n.constructor,!vt(t)||t instanceof t)?(C(n,function(n,t){e=t}),e===g||ce.call(n,e)):b}function it(n){return Ie[n]
}function ft(n){return n&&typeof n=="object"?ve.call(n)==D:b}function ct(n,t,e,r,u,a){var o=n;if(typeof t!="boolean"&&t!=h&&(r=e,e=t,t=b),typeof e=="function"){if(e=typeof r=="undefined"?e:Z.createCallback(e,r,1),o=e(o),typeof o!="undefined")return o;o=n}if(r=gt(o)){var i=ve.call(o);if(!G[i])return o;var c=Ee(o)}if(!r||!t)return r?c?s(o):L({},o):o;switch(r=xe[i],i){case z:case W:return new r(+o);case K:case V:return new r(o);case U:return r(o.source,I.exec(o))}i=!u,u||(u=f()),a||(a=f());for(var p=u.length;p--;)if(u[p]==n)return a[p];
return o=c?r(o.length):{},c&&(ce.call(n,"index")&&(o.index=n.index),ce.call(n,"input")&&(o.input=n.input)),u.push(n),a.push(o),(c?wt:d)(n,function(n,r){o[r]=ct(n,t,e,g,u,a)}),i&&(l(u),l(a)),o}function lt(n){var t=[];return C(n,function(n,e){vt(n)&&t.push(e)}),t.sort()}function pt(n){for(var t=-1,e=Se(n),r=e.length,u={};++t<r;){var a=e[t];u[n[a]]=a}return u}function st(n,t,e,r,u,a){var o=e===k;if(typeof e=="function"&&!o){e=Z.createCallback(e,r,2);var i=e(n,t);if(typeof i!="undefined")return!!i}if(n===t)return 0!==n||1/n==1/t;
var c=typeof n,p=typeof t;if(n===n&&(!n||"function"!=c&&"object"!=c)&&(!t||"function"!=p&&"object"!=p))return b;if(n==h||t==h)return n===t;if(p=ve.call(n),c=ve.call(t),p==D&&(p=M),c==D&&(c=M),p!=c)return b;switch(p){case z:case W:return+n==+t;case K:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case U:case V:return n==Yt(t)}if(c=p==q,!c){if(ce.call(n,"__wrapped__")||ce.call(t,"__wrapped__"))return st(n.__wrapped__||n,t.__wrapped__||t,e,r,u,a);if(p!=M)return b;var p=n.constructor,s=t.constructor;if(p!=s&&(!vt(p)||!(p instanceof p&&vt(s)&&s instanceof s)))return b
}for(s=!u,u||(u=f()),a||(a=f()),p=u.length;p--;)if(u[p]==n)return a[p]==t;var v=0,i=y;if(u.push(n),a.push(t),c){if(p=n.length,v=t.length,i=v==n.length,!i&&!o)return i;for(;v--;)if(c=p,s=t[v],o)for(;c--&&!(i=st(n[c],s,e,r,u,a)););else if(!(i=st(n[v],s,e,r,u,a)))break;return i}return C(t,function(t,o,f){return ce.call(f,o)?(v++,i=ce.call(n,o)&&st(n[o],t,e,r,u,a)):void 0}),i&&!o&&C(n,function(n,t,e){return ce.call(e,t)?i=-1<--v:void 0}),s&&(l(u),l(a)),i}function vt(n){return typeof n=="function"}function gt(n){return!(!n||!H[typeof n])
if(n===n&&(!n||!H[typeof n])&&(!t||!H[typeof t]))return b;if(n==h||t==h)return n===t;var c=ve.call(n),p=ve.call(t);if(c==D&&(c=M),p==D&&(p=M),c!=p)return b;switch(c){case z:case W:return+n==+t;case K:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case U:case V:return n==Yt(t)}if(p=c==q,!p){if(ce.call(n,"__wrapped__")||ce.call(t,"__wrapped__"))return st(n.__wrapped__||n,t.__wrapped__||t,e,r,u,a);if(c!=M)return b;var c=n.constructor,s=t.constructor;if(c!=s&&(!vt(c)||!(c instanceof c&&vt(s)&&s instanceof s)))return b
}for(s=!u,u||(u=f()),a||(a=f()),c=u.length;c--;)if(u[c]==n)return a[c]==t;var v=0,i=y;if(u.push(n),a.push(t),p){if(c=n.length,v=t.length,i=v==n.length,!i&&!o)return i;for(;v--;)if(p=c,s=t[v],o)for(;p--&&!(i=st(n[p],s,e,r,u,a)););else if(!(i=st(n[v],s,e,r,u,a)))break;return i}return C(t,function(t,o,f){return ce.call(f,o)?(v++,i=ce.call(n,o)&&st(n[o],t,e,r,u,a)):void 0}),i&&!o&&C(n,function(n,t,e){return ce.call(e,t)?i=-1<--v:void 0}),s&&(l(u),l(a)),i}function vt(n){return typeof n=="function"}function gt(n){return!(!n||!H[typeof n])
}function yt(n){return typeof n=="number"||ve.call(n)==K}function ht(n){return typeof n=="string"||ve.call(n)==V}function bt(n,t,e){var r=arguments,u=0,a=2;if(!gt(n))return n;if(e===k)var o=r[3],i=r[4],c=r[5];else{var p=y,i=f(),c=f();typeof e!="number"&&(a=r.length),3<a&&"function"==typeof r[a-2]?o=Z.createCallback(r[--a-1],r[a--],2):2<a&&"function"==typeof r[a-1]&&(o=r[--a])}for(;++u<a;)(Ee(r[u])?wt:d)(r[u],function(t,e){var r,u,a=t,f=n[e];if(t&&((u=Ee(t))||m(t))){for(a=i.length;a--;)if(r=i[a]==t){f=c[a];
break}if(!r){var l;o&&(a=o(f,t),l=typeof a!="undefined")&&(f=a),l||(f=u?Ee(f)?f:[]:m(f)?f:{}),i.push(t),c.push(f),l||(f=bt(f,t,k,o,i,c))}}else o&&(a=o(f,t),typeof a=="undefined"&&(a=t)),typeof a!="undefined"&&(f=a);n[e]=f});return p&&(l(i),l(c)),n}function mt(n){for(var t=-1,e=Se(n),r=e.length,u=Ut(r);++t<r;)u[t]=n[e[t]];return u}function dt(n,t,e){var r=-1,u=at(),a=n?n.length:0,o=b;return e=(0>e?_e(0,a+e):e)||0,a&&typeof a=="number"?o=-1<(ht(n)?n.indexOf(t,e):u(n,t,e)):d(n,function(n){return++r<e?void 0:!(o=n===t)
}),o}function _t(n,t,e){var r=y;t=Z.createCallback(t,e),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u&&(r=!!t(n[e],e,n)););else d(n,function(n,e,u){return r=!!t(n,e,u)});return r}function kt(n,t,e){var r=[];t=Z.createCallback(t,e),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u;){var a=n[e];t(a,e,n)&&r.push(a)}else d(n,function(n,e,u){t(n,e,u)&&r.push(n)});return r}function jt(n,t,e){t=Z.createCallback(t,e),e=-1;var r=n?n.length:0;if(typeof r!="number"){var u;return d(n,function(n,e,r){return t(n,e,r)?(u=n,b):void 0

View File

@@ -451,7 +451,7 @@
function bound() {
// `Function#bind` spec
// http://es5.github.com/#x15.3.4.5
// http://es5.github.io/#x15.3.4.5
var args = arguments,
thisBinding = isPartial ? this : thisArg;
@@ -468,7 +468,7 @@
thisBinding = createObject(func.prototype);
// mimic the constructor's `return` behavior
// http://es5.github.com/#x13.2.2
// http://es5.github.io/#x13.2.2
var result = func.apply(thisBinding, args);
return isObject(result) ? result : thisBinding;
}
@@ -1056,8 +1056,8 @@
otherType = typeof b;
if (a === a &&
(!a || (type != 'function' && type != 'object')) &&
(!b || (otherType != 'function' && otherType != 'object'))) {
!(a && objectTypes[type]) &&
!(b && objectTypes[otherType])) {
return false;
}
if (a == null || b == null) {
@@ -1150,7 +1150,7 @@
* Checks if `value` is, or can be coerced to, a finite number.
*
* Note: This is not the same as native `isFinite`, which will return true for
* booleans and empty strings. See http://es5.github.com/#x15.1.2.5.
* booleans and empty strings. See http://es5.github.io/#x15.1.2.5.
*
* @static
* @memberOf _
@@ -1223,7 +1223,7 @@
*/
function isObject(value) {
// check if the value is the ECMAScript language type of Object
// http://es5.github.com/#x8
// http://es5.github.io/#x8
// and avoid a V8 bug
// http://code.google.com/p/v8/issues/detail?id=2291
return !!(value && objectTypes[typeof value]);
@@ -1233,7 +1233,7 @@
* Checks if `value` is `NaN`.
*
* Note: This is not the same as native `isNaN`, which will return `true` for
* `undefined` and other values. See http://es5.github.com/#x15.1.2.4.
* `undefined` and other values. See http://es5.github.io/#x15.1.2.4.
*
* @static
* @memberOf _
@@ -4010,6 +4010,7 @@
* @param {Object} options The options object.
* escape - The "escape" delimiter regexp.
* evaluate - The "evaluate" delimiter regexp.
* imports - An object of properties to import into the compiled template as local variables.
* interpolate - The "interpolate" delimiter regexp.
* sourceURL - The sourceURL of the template's compiled source.
* variable - The data object variable name.
@@ -4022,14 +4023,15 @@
* compiled({ 'name': 'moe' });
* // => 'hello moe'
*
* var list = '<% _.forEach(people, function(name) { %><li><%= name %></li><% }); %>';
* _.template(list, { 'people': ['moe', 'larry'] });
* // => '<li>moe</li><li>larry</li>'
*
* // using the "escape" delimiter to escape HTML in data property values
* _.template('<b><%- value %></b>', { 'value': '<script>' });
* // => '<b>&lt;script&gt;</b>'
*
* // using the "evaluate" delimiter to generate HTML
* var list = '<% _.forEach(people, function(name) { %><li><%= name %></li><% }); %>';
* _.template(list, { 'people': ['moe', 'larry'] });
* // => '<li>moe</li><li>larry</li>'
*
* // using the ES6 delimiter as an alternative to the default "interpolate" delimiter
* _.template('hello ${ name }', { 'name': 'curly' });
* // => 'hello curly'
@@ -4038,7 +4040,7 @@
* _.template('<% print("hello " + epithet); %>!', { 'epithet': 'stooge' });
* // => 'hello stooge!'
*
* // using custom template delimiters
* // using a custom template delimiters
* _.templateSettings = {
* 'interpolate': /{{([\s\S]+?)}}/g
* };
@@ -4046,6 +4048,11 @@
* _.template('hello {{ name }}!', { 'name': 'mustache' });
* // => 'hello mustache!'
*
* // using the `imports` option to import jQuery
* var list = '<% $.each(people, function(name) { %><li><%= name %></li><% }); %>';
* _.template(list, { 'people': ['moe', 'larry'] }, { 'imports': { '$': jQuery });
* // => '<li>moe</li><li>larry</li>'
*
* // using the `sourceURL` option to specify a custom sourceURL for the template
* var compiled = _.template('hello <%= name %>', null, { 'sourceURL': '/basic/greeting.jst' });
* compiled(data);

View File

@@ -3,34 +3,34 @@
* Lo-Dash 1.3.1 (Custom Build) lodash.com/license | Underscore.js 1.5.1 underscorejs.org/LICENSE
* Build: `lodash underscore exports="amd,commonjs,global,node" -o ./dist/lodash.underscore.js`
*/
;!function(n){function t(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 r(n,t){var r=n.m,e=t.m;if(n=n.l,t=t.l,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1}return r<e?-1:1}function e(n){return"\\"+lt[n]}function u(){}function i(n){return n instanceof i?n:new o(n)}function o(n){this.__wrapped__=n}function a(n,t,r,e){e=(e||0)-1;for(var u=n?n.length:0,i=[];++e<u;){var o=n[e];o&&typeof o=="object"&&(Dt(o)||g(o))?bt.apply(i,t?o:a(o,t,r)):r||i.push(o)
}return i}function f(n,t,r){for(var e=-1,u=s(),i=n?n.length:0,o=[],a=r?[]:o;++e<i;){var f=n[e],c=r?r(f,e,n):f;(t?!e||a[a.length-1]!==c:0>u(a,c))&&(r&&a.push(c),o.push(f))}return o}function c(n,t,r,e){function u(){var e=arguments,c=o?this:t;return i||(n=t[a]),r.length&&(e=e.length?(e=Rt.call(e),f?e.concat(r):r.concat(e)):r),this instanceof u?(c=l(n.prototype),e=n.apply(c,e),w(e)?e:c):n.apply(c,e)}var i=j(n),o=!r,a=t;if(o){var f=e;r=t}else if(!i){if(!e)throw new TypeError;t=n}return u}function l(n){return w(n)?xt(n):{}
;!function(n){function t(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 r(n,t){var r=n.m,e=t.m;if(n=n.l,t=t.l,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1}return r<e?-1:1}function e(n){return"\\"+ct[n]}function u(){}function i(n){return n instanceof i?n:new o(n)}function o(n){this.__wrapped__=n}function a(n,t,r,e){e=(e||0)-1;for(var u=n?n.length:0,i=[];++e<u;){var o=n[e];o&&typeof o=="object"&&(Dt(o)||g(o))?bt.apply(i,t?o:a(o,t,r)):r||i.push(o)
}return i}function f(n,t,r){for(var e=-1,u=s(),i=n?n.length:0,o=[],a=r?[]:o;++e<i;){var f=n[e],l=r?r(f,e,n):f;(t?!e||a[a.length-1]!==l:0>u(a,l))&&(r&&a.push(l),o.push(f))}return o}function l(n,t,r,e){function u(){var e=arguments,l=o?this:t;return i||(n=t[a]),r.length&&(e=e.length?(e=Rt.call(e),f?e.concat(r):r.concat(e)):r),this instanceof u?(l=c(n.prototype),e=n.apply(l,e),w(e)?e:l):n.apply(l,e)}var i=j(n),o=!r,a=t;if(o){var f=e;r=t}else if(!i){if(!e)throw new TypeError;t=n}return u}function c(n){return w(n)?xt(n):{}
}function p(n){return Mt[n]}function s(){var n=(n=i.indexOf)===z?t:n;return n}function v(n){return $t[n]}function g(n){return n&&typeof n=="object"?jt.call(n)==tt:!1}function h(n){if(!n)return n;for(var t=1,r=arguments.length;t<r;t++){var e=arguments[t];if(e)for(var u in e)n[u]=e[u]}return n}function y(n){if(!n)return n;for(var t=1,r=arguments.length;t<r;t++){var e=arguments[t];if(e)for(var u in e)"undefined"==typeof n[u]&&(n[u]=e[u])}return n}function m(n){var t=[];return zt(n,function(n,r){j(n)&&t.push(r)
}),t.sort()}function _(n){for(var t=-1,r=qt(n),e=r.length,u={};++t<e;){var i=r[t];u[n[i]]=i}return u}function d(n){if(!n)return!0;if(Dt(n)||A(n))return!n.length;for(var t in n)if(dt.call(n,t))return!1;return!0}function b(n,t,r,e){if(n===t)return 0!==n||1/n==1/t;var u=typeof n,o=typeof t;if(n===n&&(!n||"function"!=u&&"object"!=u)&&(!t||"function"!=o&&"object"!=o))return!1;if(null==n||null==t)return n===t;if(o=jt.call(n),u=jt.call(t),o!=u)return!1;switch(o){case et:case ut:return+n==+t;case it:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;
case at:case ft:return n==t+""}if(u=o==rt,!u){if(n instanceof i||t instanceof i)return b(n.__wrapped__||n,t.__wrapped__||t,r,e);if(o!=ot)return!1;var o=n.constructor,a=t.constructor;if(o!=a&&(!j(o)||!(o instanceof o&&j(a)&&a instanceof a)))return!1}for(r||(r=[]),e||(e=[]),o=r.length;o--;)if(r[o]==n)return e[o]==t;var f=!0,c=0;if(r.push(n),e.push(t),u){if(c=t.length,f=c==n.length)for(;c--&&(f=b(n[c],t[c],r,e)););return f}return zt(t,function(t,u,i){return dt.call(i,u)?(c++,!(f=dt.call(n,u)&&b(n[u],t,r,e))&&X):void 0
}),f&&zt(n,function(n,t,r){return dt.call(r,t)?!(f=-1<--c)&&X:void 0}),f}function j(n){return typeof n=="function"}function w(n){return!(!n||!ct[typeof n])}function x(n){return typeof n=="number"||jt.call(n)==it}function A(n){return typeof n=="string"||jt.call(n)==ft}function O(n){for(var t=-1,r=qt(n),e=r.length,u=Array(e);++t<e;)u[t]=n[r[t]];return u}function E(n,t){var r=s(),e=n?n.length:0,u=!1;return e&&typeof e=="number"?u=-1<r(n,t):Ct(n,function(n){return(u=n===t)&&X}),u}function T(n,t,r){var e=!0;
t=G(t,r),r=-1;var u=n?n.length:0;if(typeof u=="number")for(;++r<u&&(e=!!t(n[r],r,n)););else Ct(n,function(n,r,u){return!(e=!!t(n,r,u))&&X});return e}function S(n,t,r){var e=[];t=G(t,r),r=-1;var u=n?n.length:0;if(typeof u=="number")for(;++r<u;){var i=n[r];t(i,r,n)&&e.push(i)}else Ct(n,function(n,r,u){t(n,r,u)&&e.push(n)});return e}function F(n,t,r){t=G(t,r),r=-1;var e=n?n.length:0;if(typeof e!="number"){var u;return Ct(n,function(n,r,e){return t(n,r,e)?(u=n,X):void 0}),u}for(;++r<e;){var i=n[r];if(t(i,r,n))return i
}}function N(n,t,r){var e=-1,u=n?n.length:0;if(t=t&&typeof r=="undefined"?t:G(t,r),typeof u=="number")for(;++e<u&&t(n[e],e,n)!==X;);else Ct(n,t)}function R(n,t,r){var e=-1,u=n?n.length:0;if(t=G(t,r),typeof u=="number")for(var i=Array(u);++e<u;)i[e]=t(n[e],e,n);else i=[],Ct(n,function(n,r,u){i[++e]=t(n,r,u)});return i}function B(n,t,r){var e=-1/0,u=e,i=-1,o=n?n.length:0;if(t||typeof o!="number")t=G(t,r),N(n,function(n,r,i){r=t(n,r,i),r>e&&(e=r,u=n)});else for(;++i<o;)r=n[i],r>u&&(u=r);return u}function k(n,t){var r=-1,e=n?n.length:0;
if(typeof e=="number")for(var u=Array(e);++r<e;)u[r]=n[r][t];return u||R(n,t)}function D(n,t,r,e){if(!n)return r;var u=3>arguments.length;t=G(t,e,4);var i=-1,o=n.length;if(typeof o=="number")for(u&&(r=n[++i]);++i<o;)r=t(r,n[i],i,n);else Ct(n,function(n,e,i){r=u?(u=!1,n):t(r,n,e,i)});return r}function q(n,t,r,e){var u=n?n.length:0,i=3>arguments.length;if(typeof u!="number")var o=qt(n),u=o.length;return t=G(t,e,4),N(n,function(e,a,f){a=o?o[--u]:--u,r=i?(i=!1,n[a]):t(r,n[a],a,f)}),r}function M(n,t,r){var e;
t=G(t,r),r=-1;var u=n?n.length:0;if(typeof u=="number")for(;++r<u&&!(e=t(n[r],r,n)););else Ct(n,function(n,r,u){return(e=t(n,r,u))&&X});return!!e}function $(n,t,r){return r&&d(t)?L:(r?F:S)(n,t)}function I(n){for(var t=-1,r=s(),e=n.length,u=a(arguments,!0,!0,1),i=[];++t<e;){var o=n[t];0>r(u,o)&&i.push(o)}return i}function W(n,t,r){if(n){var e=0,u=n.length;if(typeof t!="number"&&null!=t){var i=-1;for(t=G(t,r);++i<u&&t(n[i],i,n);)e++}else if(e=t,null==e||r)return n[0];return Rt.call(n,0,Ft(St(0,e),u))
}}function z(n,r,e){if(typeof e=="number"){var u=n?n.length:0;e=0>e?St(0,u+e):e||0}else if(e)return e=P(n,r),n[e]===r?e:-1;return n?t(n,r,e):-1}function C(n,t,r){if(typeof t!="number"&&null!=t){var e=0,u=-1,i=n?n.length:0;for(t=G(t,r);++u<i&&t(n[u],u,n);)e++}else e=null==t||r?1:St(0,t);return Rt.call(n,e)}function P(n,t,r,e){var u=0,i=n?n.length:u;for(r=r?G(r,e,1):J,t=r(t);u<i;)e=u+i>>>1,r(n[e])<t?u=e+1:i=e;return u}function U(n,t,r,e){return typeof t!="boolean"&&null!=t&&(e=r,r=e&&e[t]===n?L:t,t=!1),null!=r&&(r=G(r,e)),f(n,t,r)
}function V(n,t){return kt.fastBind||wt&&2<arguments.length?wt.call.apply(wt,arguments):c(n,t,Rt.call(arguments,2))}function G(n,t,r){if(null==n)return J;var e=typeof n;if("function"!=e){if("object"!=e)return function(t){return t[n]};var u=qt(n);return function(t){for(var r=u.length,e=!1;r--&&(e=t[u[r]]===n[u[r]]););return e}}return typeof t=="undefined"?n:1===r?function(r){return n.call(t,r)}:2===r?function(r,e){return n.call(t,r,e)}:4===r?function(r,e,u,i){return n.call(t,r,e,u,i)}:function(r,e,u){return n.call(t,r,e,u)
}}function H(n,t,r){function e(){clearTimeout(s),clearTimeout(v),c=0,s=v=null}function u(){var t=g&&(!h||1<c);e(),t&&(false!==p&&(l=new Date),a=n.apply(f,o))}function i(){e(),(g||p!==t)&&(l=new Date,a=n.apply(f,o))}var o,a,f,c=0,l=0,p=!1,s=null,v=null,g=!0;if(t=St(0,t||0),true===r)var h=!0,g=!1;else w(r)&&(h=r.leading,p="maxWait"in r&&St(t,r.maxWait||0),g="trailing"in r?r.trailing:g);return function(){if(o=arguments,f=this,c++,clearTimeout(v),false===p)h&&2>c&&(a=n.apply(f,o));else{var r=new Date;!s&&!h&&(l=r);
var e=p-(r-l);0<e?s||(s=setTimeout(i,e)):(clearTimeout(s),s=null,l=r,a=n.apply(f,o))}return t!==p&&(v=setTimeout(u,t)),a}}function J(n){return n}function K(n){N(m(n),function(t){var r=i[t]=n[t];i.prototype[t]=function(){var n=[this.__wrapped__];return bt.apply(n,arguments),n=r.apply(i,n),this.__chain__&&(n=new o(n),n.__chain__=!0),n}})}var L,Q=0,X={},Y=+new Date+"",Z=/($^)/,nt=/['\n\r\t\u2028\u2029\\]/g,tt="[object Arguments]",rt="[object Array]",et="[object Boolean]",ut="[object Date]",it="[object Number]",ot="[object Object]",at="[object RegExp]",ft="[object String]",ct={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},lt={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},pt=ct[typeof exports]&&exports,st=ct[typeof module]&&module&&module.exports==pt&&module,vt=ct[typeof global]&&global;
}),t.sort()}function _(n){for(var t=-1,r=qt(n),e=r.length,u={};++t<e;){var i=r[t];u[n[i]]=i}return u}function d(n){if(!n)return!0;if(Dt(n)||A(n))return!n.length;for(var t in n)if(dt.call(n,t))return!1;return!0}function b(n,t,r,e){if(n===t)return 0!==n||1/n==1/t;if(n===n&&(!n||!lt[typeof n])&&(!t||!lt[typeof t]))return!1;if(null==n||null==t)return n===t;var u=jt.call(n),o=jt.call(t);if(u!=o)return!1;switch(u){case et:case ut:return+n==+t;case it:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case at:case ft:return n==t+""
}if(o=u==rt,!o){if(n instanceof i||t instanceof i)return b(n.__wrapped__||n,t.__wrapped__||t,r,e);if(u!=ot)return!1;var u=n.constructor,a=t.constructor;if(u!=a&&(!j(u)||!(u instanceof u&&j(a)&&a instanceof a)))return!1}for(r||(r=[]),e||(e=[]),u=r.length;u--;)if(r[u]==n)return e[u]==t;var f=!0,l=0;if(r.push(n),e.push(t),o){if(l=t.length,f=l==n.length)for(;l--&&(f=b(n[l],t[l],r,e)););return f}return zt(t,function(t,u,i){return dt.call(i,u)?(l++,!(f=dt.call(n,u)&&b(n[u],t,r,e))&&X):void 0}),f&&zt(n,function(n,t,r){return dt.call(r,t)?!(f=-1<--l)&&X:void 0
}),f}function j(n){return typeof n=="function"}function w(n){return!(!n||!lt[typeof n])}function x(n){return typeof n=="number"||jt.call(n)==it}function A(n){return typeof n=="string"||jt.call(n)==ft}function O(n){for(var t=-1,r=qt(n),e=r.length,u=Array(e);++t<e;)u[t]=n[r[t]];return u}function E(n,t){var r=s(),e=n?n.length:0,u=!1;return e&&typeof e=="number"?u=-1<r(n,t):Ct(n,function(n){return(u=n===t)&&X}),u}function T(n,t,r){var e=!0;t=G(t,r),r=-1;var u=n?n.length:0;if(typeof u=="number")for(;++r<u&&(e=!!t(n[r],r,n)););else Ct(n,function(n,r,u){return!(e=!!t(n,r,u))&&X
});return e}function S(n,t,r){var e=[];t=G(t,r),r=-1;var u=n?n.length:0;if(typeof u=="number")for(;++r<u;){var i=n[r];t(i,r,n)&&e.push(i)}else Ct(n,function(n,r,u){t(n,r,u)&&e.push(n)});return e}function F(n,t,r){t=G(t,r),r=-1;var e=n?n.length:0;if(typeof e!="number"){var u;return Ct(n,function(n,r,e){return t(n,r,e)?(u=n,X):void 0}),u}for(;++r<e;){var i=n[r];if(t(i,r,n))return i}}function N(n,t,r){var e=-1,u=n?n.length:0;if(t=t&&typeof r=="undefined"?t:G(t,r),typeof u=="number")for(;++e<u&&t(n[e],e,n)!==X;);else Ct(n,t)
}function R(n,t,r){var e=-1,u=n?n.length:0;if(t=G(t,r),typeof u=="number")for(var i=Array(u);++e<u;)i[e]=t(n[e],e,n);else i=[],Ct(n,function(n,r,u){i[++e]=t(n,r,u)});return i}function B(n,t,r){var e=-1/0,u=e,i=-1,o=n?n.length:0;if(t||typeof o!="number")t=G(t,r),N(n,function(n,r,i){r=t(n,r,i),r>e&&(e=r,u=n)});else for(;++i<o;)r=n[i],r>u&&(u=r);return u}function k(n,t){var r=-1,e=n?n.length:0;if(typeof e=="number")for(var u=Array(e);++r<e;)u[r]=n[r][t];return u||R(n,t)}function D(n,t,r,e){if(!n)return r;
var u=3>arguments.length;t=G(t,e,4);var i=-1,o=n.length;if(typeof o=="number")for(u&&(r=n[++i]);++i<o;)r=t(r,n[i],i,n);else Ct(n,function(n,e,i){r=u?(u=!1,n):t(r,n,e,i)});return r}function q(n,t,r,e){var u=n?n.length:0,i=3>arguments.length;if(typeof u!="number")var o=qt(n),u=o.length;return t=G(t,e,4),N(n,function(e,a,f){a=o?o[--u]:--u,r=i?(i=!1,n[a]):t(r,n[a],a,f)}),r}function M(n,t,r){var e;t=G(t,r),r=-1;var u=n?n.length:0;if(typeof u=="number")for(;++r<u&&!(e=t(n[r],r,n)););else Ct(n,function(n,r,u){return(e=t(n,r,u))&&X
});return!!e}function $(n,t,r){return r&&d(t)?L:(r?F:S)(n,t)}function I(n){for(var t=-1,r=s(),e=n.length,u=a(arguments,!0,!0,1),i=[];++t<e;){var o=n[t];0>r(u,o)&&i.push(o)}return i}function W(n,t,r){if(n){var e=0,u=n.length;if(typeof t!="number"&&null!=t){var i=-1;for(t=G(t,r);++i<u&&t(n[i],i,n);)e++}else if(e=t,null==e||r)return n[0];return Rt.call(n,0,Ft(St(0,e),u))}}function z(n,r,e){if(typeof e=="number"){var u=n?n.length:0;e=0>e?St(0,u+e):e||0}else if(e)return e=P(n,r),n[e]===r?e:-1;return n?t(n,r,e):-1
}function C(n,t,r){if(typeof t!="number"&&null!=t){var e=0,u=-1,i=n?n.length:0;for(t=G(t,r);++u<i&&t(n[u],u,n);)e++}else e=null==t||r?1:St(0,t);return Rt.call(n,e)}function P(n,t,r,e){var u=0,i=n?n.length:u;for(r=r?G(r,e,1):J,t=r(t);u<i;)e=u+i>>>1,r(n[e])<t?u=e+1:i=e;return u}function U(n,t,r,e){return typeof t!="boolean"&&null!=t&&(e=r,r=e&&e[t]===n?L:t,t=!1),null!=r&&(r=G(r,e)),f(n,t,r)}function V(n,t){return kt.fastBind||wt&&2<arguments.length?wt.call.apply(wt,arguments):l(n,t,Rt.call(arguments,2))
}function G(n,t,r){if(null==n)return J;var e=typeof n;if("function"!=e){if("object"!=e)return function(t){return t[n]};var u=qt(n);return function(t){for(var r=u.length,e=!1;r--&&(e=t[u[r]]===n[u[r]]););return e}}return typeof t=="undefined"?n:1===r?function(r){return n.call(t,r)}:2===r?function(r,e){return n.call(t,r,e)}:4===r?function(r,e,u,i){return n.call(t,r,e,u,i)}:function(r,e,u){return n.call(t,r,e,u)}}function H(n,t,r){function e(){clearTimeout(s),clearTimeout(v),l=0,s=v=null}function u(){var t=g&&(!h||1<l);
e(),t&&(false!==p&&(c=new Date),a=n.apply(f,o))}function i(){e(),(g||p!==t)&&(c=new Date,a=n.apply(f,o))}var o,a,f,l=0,c=0,p=!1,s=null,v=null,g=!0;if(t=St(0,t||0),true===r)var h=!0,g=!1;else w(r)&&(h=r.leading,p="maxWait"in r&&St(t,r.maxWait||0),g="trailing"in r?r.trailing:g);return function(){if(o=arguments,f=this,l++,clearTimeout(v),false===p)h&&2>l&&(a=n.apply(f,o));else{var r=new Date;!s&&!h&&(c=r);var e=p-(r-c);0<e?s||(s=setTimeout(i,e)):(clearTimeout(s),s=null,c=r,a=n.apply(f,o))}return t!==p&&(v=setTimeout(u,t)),a
}}function J(n){return n}function K(n){N(m(n),function(t){var r=i[t]=n[t];i.prototype[t]=function(){var n=[this.__wrapped__];return bt.apply(n,arguments),n=r.apply(i,n),this.__chain__&&(n=new o(n),n.__chain__=!0),n}})}var L,Q=0,X={},Y=+new Date+"",Z=/($^)/,nt=/['\n\r\t\u2028\u2029\\]/g,tt="[object Arguments]",rt="[object Array]",et="[object Boolean]",ut="[object Date]",it="[object Number]",ot="[object Object]",at="[object RegExp]",ft="[object String]",lt={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},ct={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},pt=lt[typeof exports]&&exports,st=lt[typeof module]&&module&&module.exports==pt&&module,vt=lt[typeof global]&&global;
!vt||vt.global!==vt&&vt.window!==vt||(n=vt);var gt=[],vt=Object.prototype,ht=n._,yt=RegExp("^"+(vt.valueOf+"").replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),mt=Math.ceil,_t=Math.floor,dt=vt.hasOwnProperty,bt=gt.push,jt=vt.toString,wt=yt.test(wt=jt.bind)&&wt,xt=yt.test(xt=Object.create)&&xt,At=yt.test(At=Array.isArray)&&At,Ot=n.isFinite,Et=n.isNaN,Tt=yt.test(Tt=Object.keys)&&Tt,St=Math.max,Ft=Math.min,Nt=Math.random,Rt=gt.slice,vt=yt.test(n.attachEvent),Bt=wt&&!/\n|true/.test(wt+vt);
o.prototype=i.prototype;var kt={};!function(){var n={0:1,length:1};kt.fastBind=wt&&!Bt,kt.spliceObjects=(gt.splice.call(n,0,1),!n[0])}(1),i.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:""},xt||(l=function(n){if(w(n)){u.prototype=n;var t=new u;u.prototype=null}return t||{}}),g(arguments)||(g=function(n){return n&&typeof n=="object"?dt.call(n,"callee"):!1});var Dt=At||function(n){return n&&typeof n=="object"?jt.call(n)==rt:!1},At=function(n){var t,r=[];
if(!n||!ct[typeof n])return r;for(t in n)dt.call(n,t)&&r.push(t);return r},qt=Tt?function(n){return w(n)?Tt(n):[]}:At,Mt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;"},$t=_(Mt),It=RegExp("("+qt($t).join("|")+")","g"),Wt=RegExp("["+qt(Mt).join("")+"]","g"),zt=function(n,t){var r;if(!n||!ct[typeof n])return n;for(r in n)if(t(n[r],r,n)===X)break;return n},Ct=function(n,t){var r;if(!n||!ct[typeof n])return n;for(r in n)if(dt.call(n,r)&&t(n[r],r,n)===X)break;return n};j(/x/)&&(j=function(n){return typeof n=="function"&&"[object Function]"==jt.call(n)
o.prototype=i.prototype;var kt={};!function(){var n={0:1,length:1};kt.fastBind=wt&&!Bt,kt.spliceObjects=(gt.splice.call(n,0,1),!n[0])}(1),i.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:""},xt||(c=function(n){if(w(n)){u.prototype=n;var t=new u;u.prototype=null}return t||{}}),g(arguments)||(g=function(n){return n&&typeof n=="object"?dt.call(n,"callee"):!1});var Dt=At||function(n){return n&&typeof n=="object"?jt.call(n)==rt:!1},At=function(n){var t,r=[];
if(!n||!lt[typeof n])return r;for(t in n)dt.call(n,t)&&r.push(t);return r},qt=Tt?function(n){return w(n)?Tt(n):[]}:At,Mt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;"},$t=_(Mt),It=RegExp("("+qt($t).join("|")+")","g"),Wt=RegExp("["+qt(Mt).join("")+"]","g"),zt=function(n,t){var r;if(!n||!lt[typeof n])return n;for(r in n)if(t(n[r],r,n)===X)break;return n},Ct=function(n,t){var r;if(!n||!lt[typeof n])return n;for(r in n)if(dt.call(n,r)&&t(n[r],r,n)===X)break;return n};j(/x/)&&(j=function(n){return typeof n=="function"&&"[object Function]"==jt.call(n)
}),i.after=function(n,t){return function(){return 1>--n?t.apply(this,arguments):void 0}},i.bind=V,i.bindAll=function(n){for(var t=1<arguments.length?a(arguments,!0,!1,1):m(n),r=-1,e=t.length;++r<e;){var u=t[r];n[u]=V(n[u],n)}return n},i.compact=function(n){for(var t=-1,r=n?n.length:0,e=[];++t<r;){var u=n[t];u&&e.push(u)}return e},i.compose=function(){var n=arguments;return function(){for(var t=arguments,r=n.length;r--;)t=[n[r].apply(this,t)];return t[0]}},i.countBy=function(n,t,r){var e={};return t=G(t,r),N(n,function(n,r,u){r=t(n,r,u)+"",dt.call(e,r)?e[r]++:e[r]=1
}),e},i.debounce=H,i.defaults=y,i.defer=function(n){var t=Rt.call(arguments,1);return setTimeout(function(){n.apply(L,t)},1)},i.delay=function(n,t){var r=Rt.call(arguments,2);return setTimeout(function(){n.apply(L,r)},t)},i.difference=I,i.filter=S,i.flatten=function(n,t){return a(n,t)},i.forEach=N,i.functions=m,i.groupBy=function(n,t,r){var e={};return t=G(t,r),N(n,function(n,r,u){r=t(n,r,u)+"",(dt.call(e,r)?e[r]:e[r]=[]).push(n)}),e},i.initial=function(n,t,r){if(!n)return[];var e=0,u=n.length;if(typeof t!="number"&&null!=t){var i=u;
for(t=G(t,r);i--&&t(n[i],i,n);)e++}else e=null==t||r?1:t||e;return Rt.call(n,0,Ft(St(0,u-e),u))},i.intersection=function(n){var t=arguments,r=t.length,e=-1,u=s(),i=n?n.length:0,o=[];n:for(;++e<i;){var a=n[e];if(0>u(o,a)){for(var f=r;--f;)if(0>u(t[f],a))continue n;o.push(a)}}return o},i.invert=_,i.invoke=function(n,t){var r=Rt.call(arguments,2),e=-1,u=typeof t=="function",i=n?n.length:0,o=Array(typeof i=="number"?i:0);return N(n,function(n){o[++e]=(u?t:n[t]).apply(n,r)}),o},i.keys=qt,i.map=R,i.max=B,i.memoize=function(n,t){var r={};
return function(){var e=Y+(t?t.apply(this,arguments):arguments[0]);return dt.call(r,e)?r[e]:r[e]=n.apply(this,arguments)}},i.min=function(n,t,r){var e=1/0,u=e,i=-1,o=n?n.length:0;if(t||typeof o!="number")t=G(t,r),N(n,function(n,r,i){r=t(n,r,i),r<e&&(e=r,u=n)});else for(;++i<o;)r=n[i],r<u&&(u=r);return u},i.omit=function(n){var t=s(),r=a(arguments,!0,!1,1),e={};return zt(n,function(n,u){0>t(r,u)&&(e[u]=n)}),e},i.once=function(n){var t,r;return function(){return t?r:(t=!0,r=n.apply(this,arguments),n=null,r)
}},i.pairs=function(n){for(var t=-1,r=qt(n),e=r.length,u=Array(e);++t<e;){var i=r[t];u[t]=[i,n[i]]}return u},i.partial=function(n){return c(n,Rt.call(arguments,1))},i.pick=function(n){for(var t=-1,r=a(arguments,!0,!1,1),e=r.length,u={};++t<e;){var i=r[t];i in n&&(u[i]=n[i])}return u},i.pluck=k,i.range=function(n,t,r){n=+n||0,r=+r||1,null==t&&(t=n,n=0);var e=-1;t=St(0,mt((t-n)/r));for(var u=Array(t);++e<t;)u[e]=n,n+=r;return u},i.reject=function(n,t,r){return t=G(t,r),S(n,function(n,r,e){return!t(n,r,e)
}},i.pairs=function(n){for(var t=-1,r=qt(n),e=r.length,u=Array(e);++t<e;){var i=r[t];u[t]=[i,n[i]]}return u},i.partial=function(n){return l(n,Rt.call(arguments,1))},i.pick=function(n){for(var t=-1,r=a(arguments,!0,!1,1),e=r.length,u={};++t<e;){var i=r[t];i in n&&(u[i]=n[i])}return u},i.pluck=k,i.range=function(n,t,r){n=+n||0,r=+r||1,null==t&&(t=n,n=0);var e=-1;t=St(0,mt((t-n)/r));for(var u=Array(t);++e<t;)u[e]=n,n+=r;return u},i.reject=function(n,t,r){return t=G(t,r),S(n,function(n,r,e){return!t(n,r,e)
})},i.rest=C,i.shuffle=function(n){var t=-1,r=n?n.length:0,e=Array(typeof r=="number"?r:0);return N(n,function(n){var r=_t(Nt()*(++t+1));e[t]=e[r],e[r]=n}),e},i.sortBy=function(n,t,e){var u=-1,i=n?n.length:0,o=Array(typeof i=="number"?i:0);for(t=G(t,e),N(n,function(n,r,e){o[++u]={l:t(n,r,e),m:u,n:n}}),i=o.length,o.sort(r);i--;)o[i]=o[i].n;return o},i.tap=function(n,t){return t(n),n},i.throttle=function(n,t,r){var e=!0,u=!0;return false===r?e=!1:w(r)&&(e="leading"in r?r.leading:e,u="trailing"in r?r.trailing:u),r={},r.leading=e,r.maxWait=t,r.trailing=u,H(n,t,r)
},i.times=function(n,t,r){for(var e=-1,u=Array(-1<n?n:0);++e<n;)u[e]=t.call(r,e);return u},i.toArray=function(n){return Dt(n)?Rt.call(n):n&&typeof n.length=="number"?R(n):O(n)},i.union=function(){return f(a(arguments,!0,!0))},i.uniq=U,i.values=O,i.where=$,i.without=function(n){return I(n,Rt.call(arguments,1))},i.wrap=function(n,t){return function(){var r=[n];return bt.apply(r,arguments),t.apply(this,r)}},i.zip=function(){for(var n=-1,t=B(k(arguments,"length")),r=Array(0>t?0:t);++n<t;)r[n]=k(arguments,n);
return r},i.collect=R,i.drop=C,i.each=N,i.extend=h,i.methods=m,i.object=function(n,t){for(var r=-1,e=n?n.length:0,u={};++r<e;){var i=n[r];t?u[i]=t[r]:u[i[0]]=i[1]}return u},i.select=S,i.tail=C,i.unique=U,i.chain=function(n){return n=new o(n),n.__chain__=!0,n},i.clone=function(n){return w(n)?Dt(n)?Rt.call(n):h({},n):n},i.contains=E,i.escape=function(n){return null==n?"":(n+"").replace(Wt,p)},i.every=T,i.find=F,i.has=function(n,t){return n?dt.call(n,t):!1},i.identity=J,i.indexOf=z,i.isArguments=g,i.isArray=Dt,i.isBoolean=function(n){return true===n||false===n||jt.call(n)==et
},i.isDate=function(n){return n?typeof n=="object"&&jt.call(n)==ut:!1},i.isElement=function(n){return n?1===n.nodeType:!1},i.isEmpty=d,i.isEqual=b,i.isFinite=function(n){return Ot(n)&&!Et(parseFloat(n))},i.isFunction=j,i.isNaN=function(n){return x(n)&&n!=+n},i.isNull=function(n){return null===n},i.isNumber=x,i.isObject=w,i.isRegExp=function(n){return n&&ct[typeof n]?jt.call(n)==at:!1},i.isString=A,i.isUndefined=function(n){return typeof n=="undefined"},i.lastIndexOf=function(n,t,r){var e=n?n.length:0;
},i.isDate=function(n){return n?typeof n=="object"&&jt.call(n)==ut:!1},i.isElement=function(n){return n?1===n.nodeType:!1},i.isEmpty=d,i.isEqual=b,i.isFinite=function(n){return Ot(n)&&!Et(parseFloat(n))},i.isFunction=j,i.isNaN=function(n){return x(n)&&n!=+n},i.isNull=function(n){return null===n},i.isNumber=x,i.isObject=w,i.isRegExp=function(n){return n&&lt[typeof n]?jt.call(n)==at:!1},i.isString=A,i.isUndefined=function(n){return typeof n=="undefined"},i.lastIndexOf=function(n,t,r){var e=n?n.length:0;
for(typeof r=="number"&&(e=(0>r?St(0,e+r):Ft(r,e-1))+1);e--;)if(n[e]===t)return e;return-1},i.mixin=K,i.noConflict=function(){return n._=ht,this},i.random=function(n,t){null==n&&null==t&&(t=1),n=+n||0,null==t?(t=n,n=0):t=+t||0;var r=Nt();return n%1||t%1?n+Ft(r*(t-n+parseFloat("1e-"+((r+"").length-1))),t):n+_t(r*(t-n+1))},i.reduce=D,i.reduceRight=q,i.result=function(n,t){var r=n?n[t]:L;return j(r)?n[t]():r},i.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:qt(n).length},i.some=M,i.sortedIndex=P,i.template=function(n,t,r){var u=i.templateSettings;
n||(n=""),r=y({},r,u);var o=0,a="__p+='",u=r.variable;n.replace(RegExp((r.escape||Z).source+"|"+(r.interpolate||Z).source+"|"+(r.evaluate||Z).source+"|$","g"),function(t,r,u,i,f){return a+=n.slice(o,f).replace(nt,e),r&&(a+="'+_['escape']("+r+")+'"),i&&(a+="';"+i+";__p+='"),u&&(a+="'+((__t=("+u+"))==null?'':__t)+'"),o=f+t.length,t}),a+="';\n",u||(u="obj",a="with("+u+"||{}){"+a+"}"),a="function("+u+"){var __t,__p='',__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}"+a+"return __p}";
try{var f=Function("_","return "+a)(i)}catch(c){throw c.source=a,c}return t?f(t):(f.source=a,f)},i.unescape=function(n){return null==n?"":(n+"").replace(It,v)},i.uniqueId=function(n){var t=++Q+"";return n?n+t:t},i.all=T,i.any=M,i.detect=F,i.findWhere=function(n,t){return $(n,t,!0)},i.foldl=D,i.foldr=q,i.include=E,i.inject=D,i.first=W,i.last=function(n,t,r){if(n){var e=0,u=n.length;if(typeof t!="number"&&null!=t){var i=u;for(t=G(t,r);i--&&t(n[i],i,n);)e++}else if(e=t,null==e||r)return n[u-1];return Rt.call(n,St(0,u-e))
try{var f=Function("_","return "+a)(i)}catch(l){throw l.source=a,l}return t?f(t):(f.source=a,f)},i.unescape=function(n){return null==n?"":(n+"").replace(It,v)},i.uniqueId=function(n){var t=++Q+"";return n?n+t:t},i.all=T,i.any=M,i.detect=F,i.findWhere=function(n,t){return $(n,t,!0)},i.foldl=D,i.foldr=q,i.include=E,i.inject=D,i.first=W,i.last=function(n,t,r){if(n){var e=0,u=n.length;if(typeof t!="number"&&null!=t){var i=u;for(t=G(t,r);i--&&t(n[i],i,n);)e++}else if(e=t,null==e||r)return n[u-1];return Rt.call(n,St(0,u-e))
}},i.take=W,i.head=W,i.VERSION="1.3.1",K(i),i.prototype.chain=function(){return this.__chain__=!0,this},i.prototype.value=function(){return this.__wrapped__},N("pop push reverse shift sort splice unshift".split(" "),function(n){var t=gt[n];i.prototype[n]=function(){var n=this.__wrapped__;return t.apply(n,arguments),!kt.spliceObjects&&0===n.length&&delete n[0],this}}),N(["concat","join","slice"],function(n){var t=gt[n];i.prototype[n]=function(){var n=t.apply(this.__wrapped__,arguments);return this.__chain__&&(n=new o(n),n.__chain__=!0),n
}}),typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=i, define(function(){return i})):pt&&!pt.nodeType?st?(st.exports=i)._=i:pt._=i:n._=i}(this);

View File

@@ -218,7 +218,7 @@
<!-- div -->
### <a id="_compactarray"></a>`_.compact(array)`
<a href="#_compactarray">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3694 "View in source") [&#x24C9;][1]
<a href="#_compactarray">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3695 "View in source") [&#x24C9;][1]
Creates an array with all falsey values of `array` removed. The values `false`, `null`, `0`, `""`, `undefined` and `NaN` are all falsey.
@@ -242,7 +242,7 @@ _.compact([0, 1, false, 2, '', 3]);
<!-- div -->
### <a id="_differencearray--array1-array2-"></a>`_.difference(array [, array1, array2, ...])`
<a href="#_differencearray--array1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3723 "View in source") [&#x24C9;][1]
<a href="#_differencearray--array1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3724 "View in source") [&#x24C9;][1]
Creates an array excluding all values of the passed-in arrays using strict equality for comparisons, i.e. `===`.
@@ -267,7 +267,7 @@ _.difference([1, 2, 3, 4, 5], [5, 2, 10]);
<!-- div -->
### <a id="_findindexarray--callbackidentity-thisarg"></a>`_.findIndex(array [, callback=identity, thisArg])`
<a href="#_findindexarray--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3773 "View in source") [&#x24C9;][1]
<a href="#_findindexarray--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3774 "View in source") [&#x24C9;][1]
This method is similar to `_.find`, except that it returns the index of the element that passes the callback check, instead of the element itself.
@@ -295,7 +295,7 @@ _.findIndex(['apple', 'banana', 'beet'], function(food) {
<!-- div -->
### <a id="_firstarray--callbackn-thisarg"></a>`_.first(array [, callback|n, thisArg])`
<a href="#_firstarray--callbackn-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3843 "View in source") [&#x24C9;][1]
<a href="#_firstarray--callbackn-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3844 "View in source") [&#x24C9;][1]
Gets the first element of the `array`. If a number `n` is passed, the first `n` elements of the `array` are returned. If a `callback` function is passed, elements at the beginning of the array are returned as long as the `callback` returns truthy. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
@@ -355,7 +355,7 @@ _.first(food, { 'type': 'fruit' });
<!-- div -->
### <a id="_flattenarray--isshallowfalse-callbackidentity-thisarg"></a>`_.flatten(array [, isShallow=false, callback=identity, thisArg])`
<a href="#_flattenarray--isshallowfalse-callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3905 "View in source") [&#x24C9;][1]
<a href="#_flattenarray--isshallowfalse-callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3906 "View in source") [&#x24C9;][1]
Flattens a nested array *(the nesting can be to any depth)*. If `isShallow` is truthy, `array` will only be flattened a single level. If `callback` is passed, each element of `array` is passed through a `callback` before flattening. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
@@ -398,7 +398,7 @@ _.flatten(stooges, 'quotes');
<!-- div -->
### <a id="_indexofarray-value--fromindex0"></a>`_.indexOf(array, value [, fromIndex=0])`
<a href="#_indexofarray-value--fromindex0">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3942 "View in source") [&#x24C9;][1]
<a href="#_indexofarray-value--fromindex0">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3943 "View in source") [&#x24C9;][1]
Gets the index at which the first occurrence of `value` is found using strict equality for comparisons, i.e. `===`. If the `array` is already sorted, passing `true` for `fromIndex` will run a faster binary search.
@@ -430,7 +430,7 @@ _.indexOf([1, 1, 2, 2, 3, 3], 2, true);
<!-- div -->
### <a id="_initialarray--callbackn1-thisarg"></a>`_.initial(array [, callback|n=1, thisArg])`
<a href="#_initialarray--callbackn1-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4009 "View in source") [&#x24C9;][1]
<a href="#_initialarray--callbackn1-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4010 "View in source") [&#x24C9;][1]
Gets all but the last element of `array`. If a number `n` is passed, the last `n` elements are excluded from the result. If a `callback` function is passed, elements at the end of the array are excluded from the result as long as the `callback` returns truthy. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
@@ -487,7 +487,7 @@ _.initial(food, { 'type': 'vegetable' });
<!-- div -->
### <a id="_intersectionarray1-array2-"></a>`_.intersection([array1, array2, ...])`
<a href="#_intersectionarray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4042 "View in source") [&#x24C9;][1]
<a href="#_intersectionarray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4043 "View in source") [&#x24C9;][1]
Creates an array of unique values present in all passed-in arrays using strict equality for comparisons, i.e. `===`.
@@ -511,7 +511,7 @@ _.intersection([1, 2, 3], [101, 2, 1, 10], [2, 1]);
<!-- div -->
### <a id="_lastarray--callbackn-thisarg"></a>`_.last(array [, callback|n, thisArg])`
<a href="#_lastarray--callbackn-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4144 "View in source") [&#x24C9;][1]
<a href="#_lastarray--callbackn-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4145 "View in source") [&#x24C9;][1]
Gets the last element of the `array`. If a number `n` is passed, the last `n` elements of the `array` are returned. If a `callback` function is passed, elements at the end of the array are returned as long as the `callback` returns truthy. The `callback` is bound to `thisArg` and invoked with three arguments;(value, index, array).
@@ -568,7 +568,7 @@ _.last(food, { 'type': 'vegetable' });
<!-- div -->
### <a id="_lastindexofarray-value--fromindexarraylength-1"></a>`_.lastIndexOf(array, value [, fromIndex=array.length-1])`
<a href="#_lastindexofarray-value--fromindexarraylength-1">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4185 "View in source") [&#x24C9;][1]
<a href="#_lastindexofarray-value--fromindexarraylength-1">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4186 "View in source") [&#x24C9;][1]
Gets the index at which the last occurrence of `value` is found using strict equality for comparisons, i.e. `===`. If `fromIndex` is negative, it is used as the offset from the end of the collection.
@@ -597,7 +597,7 @@ _.lastIndexOf([1, 2, 3, 1, 2, 3], 2, 3);
<!-- div -->
### <a id="_rangestart0-end--step1"></a>`_.range([start=0], end [, step=1])`
<a href="#_rangestart0-end--step1">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4226 "View in source") [&#x24C9;][1]
<a href="#_rangestart0-end--step1">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4227 "View in source") [&#x24C9;][1]
Creates an array of numbers *(positive and/or negative)* progressing from `start` up to but not including `end`.
@@ -635,7 +635,7 @@ _.range(0);
<!-- div -->
### <a id="_restarray--callbackn1-thisarg"></a>`_.rest(array [, callback|n=1, thisArg])`
<a href="#_restarray--callbackn1-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4305 "View in source") [&#x24C9;][1]
<a href="#_restarray--callbackn1-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4306 "View in source") [&#x24C9;][1]
The opposite of `_.initial`, this method gets all but the first value of `array`. If a number `n` is passed, the first `n` values are excluded from the result. If a `callback` function is passed, elements at the beginning of the array are excluded from the result as long as the `callback` returns truthy. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
@@ -695,7 +695,7 @@ _.rest(food, { 'type': 'fruit' });
<!-- div -->
### <a id="_sortedindexarray-value--callbackidentity-thisarg"></a>`_.sortedIndex(array, value [, callback=identity, thisArg])`
<a href="#_sortedindexarray-value--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4369 "View in source") [&#x24C9;][1]
<a href="#_sortedindexarray-value--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4370 "View in source") [&#x24C9;][1]
Uses a binary search to determine the smallest index at which the `value` should be inserted into `array` in order to maintain the sort order of the sorted `array`. If `callback` is passed, it will be executed for `value` and each element in `array` to compute their sort ranking. The `callback` is bound to `thisArg` and invoked with one argument; *(value)*.
@@ -744,7 +744,7 @@ _.sortedIndex(['twenty', 'thirty', 'fifty'], 'fourty', function(word) {
<!-- div -->
### <a id="_unionarray1-array2-"></a>`_.union([array1, array2, ...])`
<a href="#_unionarray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4400 "View in source") [&#x24C9;][1]
<a href="#_unionarray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4401 "View in source") [&#x24C9;][1]
Creates an array of unique values, in order, of the passed-in arrays using strict equality for comparisons, i.e. `===`.
@@ -768,7 +768,7 @@ _.union([1, 2, 3], [101, 2, 1, 10], [2, 1]);
<!-- div -->
### <a id="_uniqarray--issortedfalse-callbackidentity-thisarg"></a>`_.uniq(array [, isSorted=false, callback=identity, thisArg])`
<a href="#_uniqarray--issortedfalse-callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4447 "View in source") [&#x24C9;][1]
<a href="#_uniqarray--issortedfalse-callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4448 "View in source") [&#x24C9;][1]
Creates a duplicate-value-free version of the `array` using strict equality for comparisons, i.e. `===`. If the `array` is already sorted, passing `true` for `isSorted` will run a faster algorithm. If `callback` is passed, each element of `array` is passed through the `callback` before uniqueness is computed. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
@@ -815,7 +815,7 @@ _.uniq([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
<!-- div -->
### <a id="_withoutarray--value1-value2-"></a>`_.without(array [, value1, value2, ...])`
<a href="#_withoutarray--value1-value2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4475 "View in source") [&#x24C9;][1]
<a href="#_withoutarray--value1-value2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4476 "View in source") [&#x24C9;][1]
Creates an array excluding all passed values using strict equality for comparisons, i.e. `===`.
@@ -840,7 +840,7 @@ _.without([1, 2, 1, 0, 3, 1, 4], 0, 1);
<!-- div -->
### <a id="_ziparray1-array2-"></a>`_.zip([array1, array2, ...])`
<a href="#_ziparray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4495 "View in source") [&#x24C9;][1]
<a href="#_ziparray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4496 "View in source") [&#x24C9;][1]
Creates an array of grouped elements, the first of which contains the first elements of the given arrays, the second of which contains the second elements of the given arrays, and so on.
@@ -867,7 +867,7 @@ _.zip(['moe', 'larry'], [30, 40], [true, false]);
<!-- div -->
### <a id="_zipobjectkeys--values"></a>`_.zipObject(keys [, values=[]])`
<a href="#_zipobjectkeys--values">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4525 "View in source") [&#x24C9;][1]
<a href="#_zipobjectkeys--values">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4526 "View in source") [&#x24C9;][1]
Creates an object composed from arrays of `keys` and `values`. Pass either a single two dimensional array, i.e. `[[key1, value1], [key2, value2]]`, or two arrays, one of `keys` and one of corresponding `values`.
@@ -958,7 +958,7 @@ _.isArray(squares.value());
<!-- div -->
### <a id="_tapvalue-interceptor"></a>`_.tap(value, interceptor)`
<a href="#_tapvalue-interceptor">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5629 "View in source") [&#x24C9;][1]
<a href="#_tapvalue-interceptor">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5637 "View in source") [&#x24C9;][1]
Invokes `interceptor` with the `value` as the first argument, and then returns `value`. The purpose of this method is to "tap into" a method chain, in order to perform operations on intermediate results within the chain.
@@ -988,7 +988,7 @@ _([1, 2, 3, 4])
<!-- div -->
### <a id="_prototypetostring"></a>`_.prototype.toString()`
<a href="#_prototypetostring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5646 "View in source") [&#x24C9;][1]
<a href="#_prototypetostring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5654 "View in source") [&#x24C9;][1]
Produces the `toString` result of the wrapped value.
@@ -1009,7 +1009,7 @@ _([1, 2, 3]).toString();
<!-- div -->
### <a id="_prototypevalueof"></a>`_.prototype.valueOf()`
<a href="#_prototypevalueof">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5663 "View in source") [&#x24C9;][1]
<a href="#_prototypevalueof">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5671 "View in source") [&#x24C9;][1]
Extracts the wrapped value.
@@ -1040,7 +1040,7 @@ _([1, 2, 3]).valueOf();
<!-- div -->
### <a id="_atcollection--index1-index2-"></a>`_.at(collection [, index1, index2, ...])`
<a href="#_atcollection--index1-index2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2681 "View in source") [&#x24C9;][1]
<a href="#_atcollection--index1-index2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2682 "View in source") [&#x24C9;][1]
Creates an array of elements from the specified indexes, or keys, of the `collection`. Indexes may be specified as individual arguments or as arrays of indexes.
@@ -1068,7 +1068,7 @@ _.at(['moe', 'larry', 'curly'], 0, 2);
<!-- div -->
### <a id="_containscollection-target--fromindex0"></a>`_.contains(collection, target [, fromIndex=0])`
<a href="#_containscollection-target--fromindex0">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2723 "View in source") [&#x24C9;][1]
<a href="#_containscollection-target--fromindex0">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2724 "View in source") [&#x24C9;][1]
Checks if a given `target` element is present in a `collection` using strict equality for comparisons, i.e. `===`. If `fromIndex` is negative, it is used as the offset from the end of the collection.
@@ -1106,7 +1106,7 @@ _.contains('curly', 'ur');
<!-- div -->
### <a id="_countbycollection--callbackidentity-thisarg"></a>`_.countBy(collection [, callback=identity, thisArg])`
<a href="#_countbycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2778 "View in source") [&#x24C9;][1]
<a href="#_countbycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2779 "View in source") [&#x24C9;][1]
Creates an object composed of keys returned from running each element of the `collection` through the given `callback`. The corresponding value of each key is the number of times the key was returned by the `callback`. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1142,7 +1142,7 @@ _.countBy(['one', 'two', 'three'], 'length');
<!-- div -->
### <a id="_everycollection--callbackidentity-thisarg"></a>`_.every(collection [, callback=identity, thisArg])`
<a href="#_everycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2830 "View in source") [&#x24C9;][1]
<a href="#_everycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2831 "View in source") [&#x24C9;][1]
Checks if the `callback` returns a truthy value for **all** elements of a `collection`. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1188,7 +1188,7 @@ _.every(stooges, { 'age': 50 });
<!-- div -->
### <a id="_filtercollection--callbackidentity-thisarg"></a>`_.filter(collection [, callback=identity, thisArg])`
<a href="#_filtercollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2891 "View in source") [&#x24C9;][1]
<a href="#_filtercollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2892 "View in source") [&#x24C9;][1]
Examines each element in a `collection`, returning an array of all elements the `callback` returns truthy for. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1234,7 +1234,7 @@ _.filter(food, { 'type': 'fruit' });
<!-- div -->
### <a id="_findcollection--callbackidentity-thisarg"></a>`_.find(collection [, callback=identity, thisArg])`
<a href="#_findcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2958 "View in source") [&#x24C9;][1]
<a href="#_findcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2959 "View in source") [&#x24C9;][1]
Examines each element in a `collection`, returning the first that the `callback` returns truthy for. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1283,7 +1283,7 @@ _.find(food, 'organic');
<!-- div -->
### <a id="_foreachcollection--callbackidentity-thisarg"></a>`_.forEach(collection [, callback=identity, thisArg])`
<a href="#_foreachcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3005 "View in source") [&#x24C9;][1]
<a href="#_foreachcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3006 "View in source") [&#x24C9;][1]
Iterates over a `collection`, executing the `callback` for each element in the `collection`. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*. Callbacks may exit iteration early by explicitly returning `false`.
@@ -1315,7 +1315,7 @@ _.forEach({ 'one': 1, 'two': 2, 'three': 3 }, alert);
<!-- div -->
### <a id="_groupbycollection--callbackidentity-thisarg"></a>`_.groupBy(collection [, callback=identity, thisArg])`
<a href="#_groupbycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3055 "View in source") [&#x24C9;][1]
<a href="#_groupbycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3056 "View in source") [&#x24C9;][1]
Creates an object composed of keys returned from running each element of the `collection` through the `callback`. The corresponding value of each key is an array of elements passed to `callback` that returned the key. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1352,7 +1352,7 @@ _.groupBy(['one', 'two', 'three'], 'length');
<!-- div -->
### <a id="_invokecollection-methodname--arg1-arg2-"></a>`_.invoke(collection, methodName [, arg1, arg2, ...])`
<a href="#_invokecollection-methodname--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3088 "View in source") [&#x24C9;][1]
<a href="#_invokecollection-methodname--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3089 "View in source") [&#x24C9;][1]
Invokes the method named by `methodName` on each element in the `collection`, returning an array of the results of each invoked method. Additional arguments will be passed to each invoked method. If `methodName` is a function, it will be invoked for, and `this` bound to, each element in the `collection`.
@@ -1381,7 +1381,7 @@ _.invoke([123, 456], String.prototype.split, '');
<!-- div -->
### <a id="_mapcollection--callbackidentity-thisarg"></a>`_.map(collection [, callback=identity, thisArg])`
<a href="#_mapcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3140 "View in source") [&#x24C9;][1]
<a href="#_mapcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3141 "View in source") [&#x24C9;][1]
Creates an array of values by running each element in the `collection` through the `callback`. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1426,7 +1426,7 @@ _.map(stooges, 'name');
<!-- div -->
### <a id="_maxcollection--callbackidentity-thisarg"></a>`_.max(collection [, callback=identity, thisArg])`
<a href="#_maxcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3197 "View in source") [&#x24C9;][1]
<a href="#_maxcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3198 "View in source") [&#x24C9;][1]
Retrieves the maximum value of an `array`. If `callback` is passed, it will be executed for each value in the `array` to generate the criterion by which the value is ranked. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, collection)*.
@@ -1468,7 +1468,7 @@ _.max(stooges, 'age');
<!-- div -->
### <a id="_mincollection--callbackidentity-thisarg"></a>`_.min(collection [, callback=identity, thisArg])`
<a href="#_mincollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3266 "View in source") [&#x24C9;][1]
<a href="#_mincollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3267 "View in source") [&#x24C9;][1]
Retrieves the minimum value of an `array`. If `callback` is passed, it will be executed for each value in the `array` to generate the criterion by which the value is ranked. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, collection)*.
@@ -1510,7 +1510,7 @@ _.min(stooges, 'age');
<!-- div -->
### <a id="_pluckcollection-property"></a>`_.pluck(collection, property)`
<a href="#_pluckcollection-property">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3316 "View in source") [&#x24C9;][1]
<a href="#_pluckcollection-property">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3317 "View in source") [&#x24C9;][1]
Retrieves the value of a specified property from all elements in the `collection`.
@@ -1540,7 +1540,7 @@ _.pluck(stooges, 'name');
<!-- div -->
### <a id="_reducecollection--callbackidentity-accumulator-thisarg"></a>`_.reduce(collection [, callback=identity, accumulator, thisArg])`
<a href="#_reducecollection--callbackidentity-accumulator-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3348 "View in source") [&#x24C9;][1]
<a href="#_reducecollection--callbackidentity-accumulator-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3349 "View in source") [&#x24C9;][1]
Reduces a `collection` to a value which is the accumulated result of running each element in the `collection` through the `callback`, where each successive `callback` execution consumes the return value of the previous execution. If `accumulator` is not passed, the first element of the `collection` will be used as the initial `accumulator` value. The `callback` is bound to `thisArg` and invoked with four arguments; *(accumulator, value, index|key, collection)*.
@@ -1578,7 +1578,7 @@ var mapped = _.reduce({ 'a': 1, 'b': 2, 'c': 3 }, function(result, num, key) {
<!-- div -->
### <a id="_reducerightcollection--callbackidentity-accumulator-thisarg"></a>`_.reduceRight(collection [, callback=identity, accumulator, thisArg])`
<a href="#_reducerightcollection--callbackidentity-accumulator-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3391 "View in source") [&#x24C9;][1]
<a href="#_reducerightcollection--callbackidentity-accumulator-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3392 "View in source") [&#x24C9;][1]
This method is similar to `_.reduce`, except that it iterates over a `collection` from right to left.
@@ -1609,7 +1609,7 @@ var flat = _.reduceRight(list, function(a, b) { return a.concat(b); }, []);
<!-- div -->
### <a id="_rejectcollection--callbackidentity-thisarg"></a>`_.reject(collection [, callback=identity, thisArg])`
<a href="#_rejectcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3451 "View in source") [&#x24C9;][1]
<a href="#_rejectcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3452 "View in source") [&#x24C9;][1]
The opposite of `_.filter`, this method returns the elements of a `collection` that `callback` does **not** return truthy for.
@@ -1652,7 +1652,7 @@ _.reject(food, { 'type': 'fruit' });
<!-- div -->
### <a id="_shufflecollection"></a>`_.shuffle(collection)`
<a href="#_shufflecollection">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3472 "View in source") [&#x24C9;][1]
<a href="#_shufflecollection">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3473 "View in source") [&#x24C9;][1]
Creates an array of shuffled `array` values, using a version of the Fisher-Yates shuffle. See http://en.wikipedia.org/wiki/Fisher-Yates_shuffle.
@@ -1676,7 +1676,7 @@ _.shuffle([1, 2, 3, 4, 5, 6]);
<!-- div -->
### <a id="_sizecollection"></a>`_.size(collection)`
<a href="#_sizecollection">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3505 "View in source") [&#x24C9;][1]
<a href="#_sizecollection">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3506 "View in source") [&#x24C9;][1]
Gets the size of the `collection` by returning `collection.length` for arrays and array-like objects or the number of own enumerable properties for objects.
@@ -1706,7 +1706,7 @@ _.size('curly');
<!-- div -->
### <a id="_somecollection--callbackidentity-thisarg"></a>`_.some(collection [, callback=identity, thisArg])`
<a href="#_somecollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3552 "View in source") [&#x24C9;][1]
<a href="#_somecollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3553 "View in source") [&#x24C9;][1]
Checks if the `callback` returns a truthy value for **any** element of a `collection`. The function returns as soon as it finds passing value, and does not iterate over the entire `collection`. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1752,7 +1752,7 @@ _.some(food, { 'type': 'meat' });
<!-- div -->
### <a id="_sortbycollection--callbackidentity-thisarg"></a>`_.sortBy(collection [, callback=identity, thisArg])`
<a href="#_sortbycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3608 "View in source") [&#x24C9;][1]
<a href="#_sortbycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3609 "View in source") [&#x24C9;][1]
Creates an array of elements, sorted in ascending order by the results of running each element in the `collection` through the `callback`. This method performs a stable sort, that is, it will preserve the original sort order of equal elements. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1789,7 +1789,7 @@ _.sortBy(['banana', 'strawberry', 'apple'], 'length');
<!-- div -->
### <a id="_toarraycollection"></a>`_.toArray(collection)`
<a href="#_toarraycollection">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3644 "View in source") [&#x24C9;][1]
<a href="#_toarraycollection">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3645 "View in source") [&#x24C9;][1]
Converts the `collection` to an array.
@@ -1813,7 +1813,7 @@ Converts the `collection` to an array.
<!-- div -->
### <a id="_wherecollection-properties"></a>`_.where(collection, properties)`
<a href="#_wherecollection-properties">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3676 "View in source") [&#x24C9;][1]
<a href="#_wherecollection-properties">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3677 "View in source") [&#x24C9;][1]
Examines each element in a `collection`, returning an array of all elements that have the given `properties`. When checking `properties`, this method performs a deep comparison between values to determine if they are equivalent to each other.
@@ -1850,7 +1850,7 @@ _.where(stooges, { 'age': 40 });
<!-- div -->
### <a id="_aftern-func"></a>`_.after(n, func)`
<a href="#_aftern-func">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4562 "View in source") [&#x24C9;][1]
<a href="#_aftern-func">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4563 "View in source") [&#x24C9;][1]
Creates a function this is restricted to executing `func`, with the `this` binding and arguments of the created function, only after it is called `n` times.
@@ -1878,7 +1878,7 @@ _.forEach(notes, function(note) {
<!-- div -->
### <a id="_bindfunc--thisarg-arg1-arg2-"></a>`_.bind(func [, thisArg, arg1, arg2, ...])`
<a href="#_bindfunc--thisarg-arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4592 "View in source") [&#x24C9;][1]
<a href="#_bindfunc--thisarg-arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4593 "View in source") [&#x24C9;][1]
Creates a function that, when called, invokes `func` with the `this` binding of `thisArg` and prepends any additional `bind` arguments to those passed to the bound function.
@@ -1909,7 +1909,7 @@ func();
<!-- div -->
### <a id="_bindallobject--methodname1-methodname2-"></a>`_.bindAll(object [, methodName1, methodName2, ...])`
<a href="#_bindallobject--methodname1-methodname2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4624 "View in source") [&#x24C9;][1]
<a href="#_bindallobject--methodname1-methodname2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4625 "View in source") [&#x24C9;][1]
Binds methods on `object` to `object`, overwriting the existing method. Method names may be specified as individual arguments or as arrays of method names. If no method names are provided, all the function properties of `object` will be bound.
@@ -1940,7 +1940,7 @@ jQuery('#docs').on('click', view.onClick);
<!-- div -->
### <a id="_bindkeyobject-key--arg1-arg2-"></a>`_.bindKey(object, key [, arg1, arg2, ...])`
<a href="#_bindkeyobject-key--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4670 "View in source") [&#x24C9;][1]
<a href="#_bindkeyobject-key--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4671 "View in source") [&#x24C9;][1]
Creates a function that, when called, invokes the method at `object[key]` and prepends any additional `bindKey` arguments to those passed to the bound function. This method differs from `_.bind` by allowing bound functions to reference methods that will be redefined or don't yet exist. See http://michaux.ca/articles/lazy-function-definition-pattern.
@@ -1981,7 +1981,7 @@ func();
<!-- div -->
### <a id="_composefunc1-func2-"></a>`_.compose([func1, func2, ...])`
<a href="#_composefunc1-func2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4693 "View in source") [&#x24C9;][1]
<a href="#_composefunc1-func2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4694 "View in source") [&#x24C9;][1]
Creates a function that is the composition of the passed functions, where each function consumes the return value of the function that follows. For example, composing the functions `f()`, `g()`, and `h()` produces `f(g(h()))`. Each function is executed with the `this` binding of the composed function.
@@ -2008,7 +2008,7 @@ welcome('moe');
<!-- div -->
### <a id="_createcallbackfuncidentity-thisarg-argcount3"></a>`_.createCallback([func=identity, thisArg, argCount=3])`
<a href="#_createcallbackfuncidentity-thisarg-argcount3">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4752 "View in source") [&#x24C9;][1]
<a href="#_createcallbackfuncidentity-thisarg-argcount3">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4753 "View in source") [&#x24C9;][1]
Produces a callback bound to an optional `thisArg`. If `func` is a property name, the created callback will return the property value for a given element. If `func` is an object, the created callback will return `true` for elements that contain the equivalent object properties, otherwise it will return `false`.
@@ -2062,7 +2062,7 @@ _.toLookup(stooges, 'name');
<!-- div -->
### <a id="_debouncefunc-wait-options"></a>`_.debounce(func, wait, options)`
<a href="#_debouncefunc-wait-options">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4837 "View in source") [&#x24C9;][1]
<a href="#_debouncefunc-wait-options">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4838 "View in source") [&#x24C9;][1]
Creates a function that will delay the execution of `func` until after `wait` milliseconds have elapsed since the last time it was invoked. Pass an `options` object to indicate that `func` should be invoked on the leading and/or trailing edge of the `wait` timeout. Subsequent calls to the debounced function will return the result of the last `func` call.
@@ -2103,7 +2103,7 @@ source.addEventListener('message', _.debounce(batchLog, 250, {
<!-- div -->
### <a id="_deferfunc--arg1-arg2-"></a>`_.defer(func [, arg1, arg2, ...])`
<a href="#_deferfunc--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4934 "View in source") [&#x24C9;][1]
<a href="#_deferfunc--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4935 "View in source") [&#x24C9;][1]
Defers executing the `func` function until the current call stack has cleared. Additional arguments will be passed to `func` when it is invoked.
@@ -2128,7 +2128,7 @@ _.defer(function() { alert('deferred'); });
<!-- div -->
### <a id="_delayfunc-wait--arg1-arg2-"></a>`_.delay(func, wait [, arg1, arg2, ...])`
<a href="#_delayfunc-wait--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4960 "View in source") [&#x24C9;][1]
<a href="#_delayfunc-wait--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4961 "View in source") [&#x24C9;][1]
Executes the `func` function after `wait` milliseconds. Additional arguments will be passed to `func` when it is invoked.
@@ -2155,7 +2155,7 @@ _.delay(log, 1000, 'logged later');
<!-- div -->
### <a id="_memoizefunc--resolver"></a>`_.memoize(func [, resolver])`
<a href="#_memoizefunc--resolver">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4985 "View in source") [&#x24C9;][1]
<a href="#_memoizefunc--resolver">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4986 "View in source") [&#x24C9;][1]
Creates a function that memoizes the result of `func`. If `resolver` is passed, it will be used to determine the cache key for storing the result based on the arguments passed to the memoized function. By default, the first argument passed to the memoized function is used as the cache key. The `func` is executed with the `this` binding of the memoized function. The result cache is exposed as the `cache` property on the memoized function.
@@ -2181,7 +2181,7 @@ var fibonacci = _.memoize(function(n) {
<!-- div -->
### <a id="_oncefunc"></a>`_.once(func)`
<a href="#_oncefunc">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5015 "View in source") [&#x24C9;][1]
<a href="#_oncefunc">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5016 "View in source") [&#x24C9;][1]
Creates a function that is restricted to execute `func` once. Repeat calls to the function will return the value of the first call. The `func` is executed with the `this` binding of the created function.
@@ -2207,7 +2207,7 @@ initialize();
<!-- div -->
### <a id="_partialfunc--arg1-arg2-"></a>`_.partial(func [, arg1, arg2, ...])`
<a href="#_partialfunc--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5050 "View in source") [&#x24C9;][1]
<a href="#_partialfunc--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5051 "View in source") [&#x24C9;][1]
Creates a function that, when called, invokes `func` with any additional `partial` arguments prepended to those passed to the new function. This method is similar to `_.bind`, except it does **not** alter the `this` binding.
@@ -2234,7 +2234,7 @@ hi('moe');
<!-- div -->
### <a id="_partialrightfunc--arg1-arg2-"></a>`_.partialRight(func [, arg1, arg2, ...])`
<a href="#_partialrightfunc--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5081 "View in source") [&#x24C9;][1]
<a href="#_partialrightfunc--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5082 "View in source") [&#x24C9;][1]
This method is similar to `_.partial`, except that `partial` arguments are appended to those passed to the new function.
@@ -2271,7 +2271,7 @@ options.imports
<!-- div -->
### <a id="_throttlefunc-wait-options"></a>`_.throttle(func, wait, options)`
<a href="#_throttlefunc-wait-options">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5116 "View in source") [&#x24C9;][1]
<a href="#_throttlefunc-wait-options">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5117 "View in source") [&#x24C9;][1]
Creates a function that, when executed, will only call the `func` function at most once per every `wait` milliseconds. Pass an `options` object to indicate that `func` should be invoked on the leading and/or trailing edge of the `wait` timeout. Subsequent calls to the throttled function will return the result of the last `func` call.
@@ -2305,7 +2305,7 @@ jQuery('.interactive').on('click', _.throttle(renewToken, 300000, {
<!-- div -->
### <a id="_wrapvalue-wrapper"></a>`_.wrap(value, wrapper)`
<a href="#_wrapvalue-wrapper">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5157 "View in source") [&#x24C9;][1]
<a href="#_wrapvalue-wrapper">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5158 "View in source") [&#x24C9;][1]
Creates a function that passes `value` to the `wrapper` function as its first argument. Additional arguments passed to the function are appended to those passed to the `wrapper` function. The `wrapper` is executed with the `this` binding of the created function.
@@ -2341,7 +2341,7 @@ hello();
<!-- div -->
### <a id="_assignobject--source1-source2--callback-thisarg"></a>`_.assign(object [, source1, source2, ..., callback, thisArg])`
<a href="#_assignobject--source1-source2--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1416 "View in source") [&#x24C9;][1]
<a href="#_assignobject--source1-source2--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1417 "View in source") [&#x24C9;][1]
Assigns own enumerable properties of source object(s) to the destination object. Subsequent sources will overwrite property assignments of previous sources. If a `callback` function is passed, it will be executed to produce the assigned values. The `callback` is bound to `thisArg` and invoked with two arguments; *(objectValue, sourceValue)*.
@@ -2379,7 +2379,7 @@ defaults(food, { 'name': 'banana', 'type': 'fruit' });
<!-- div -->
### <a id="_clonevalue--deepfalse-callback-thisarg"></a>`_.clone(value [, deep=false, callback, thisArg])`
<a href="#_clonevalue--deepfalse-callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1471 "View in source") [&#x24C9;][1]
<a href="#_clonevalue--deepfalse-callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1472 "View in source") [&#x24C9;][1]
Creates a clone of `value`. If `deep` is `true`, nested objects will also be cloned, otherwise they will be assigned by reference. If a `callback` function is passed, it will be executed to produce the cloned values. If `callback` returns `undefined`, cloning will be handled by the method instead. The `callback` is bound to `thisArg` and invoked with one argument; *(value)*.
@@ -2426,7 +2426,7 @@ clone.childNodes.length;
<!-- div -->
### <a id="_clonedeepvalue--callback-thisarg"></a>`_.cloneDeep(value [, callback, thisArg])`
<a href="#_clonedeepvalue--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1601 "View in source") [&#x24C9;][1]
<a href="#_clonedeepvalue--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1602 "View in source") [&#x24C9;][1]
Creates a deep clone of `value`. If a `callback` function is passed, it will be executed to produce the cloned values. If `callback` returns `undefined`, cloning will be handled by the method instead. The `callback` is bound to `thisArg` and invoked with one argument; *(value)*.
@@ -2472,7 +2472,7 @@ clone.node == view.node;
<!-- div -->
### <a id="_defaultsobject--source1-source2-"></a>`_.defaults(object [, source1, source2, ...])`
<a href="#_defaultsobject--source1-source2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1625 "View in source") [&#x24C9;][1]
<a href="#_defaultsobject--source1-source2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1626 "View in source") [&#x24C9;][1]
Assigns own enumerable properties of source object(s) to the destination object for all destination properties that resolve to `undefined`. Once a property is set, additional defaults of the same property will be ignored.
@@ -2498,7 +2498,7 @@ _.defaults(food, { 'name': 'banana', 'type': 'fruit' });
<!-- div -->
### <a id="_findkeyobject--callbackidentity-thisarg"></a>`_.findKey(object [, callback=identity, thisArg])`
<a href="#_findkeyobject--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1647 "View in source") [&#x24C9;][1]
<a href="#_findkeyobject--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1648 "View in source") [&#x24C9;][1]
This method is similar to `_.find`, except that it returns the key of the element that passes the callback check, instead of the element itself.
@@ -2526,7 +2526,7 @@ _.findKey({ 'a': 1, 'b': 2, 'c': 3, 'd': 4 }, function(num) {
<!-- div -->
### <a id="_forinobject--callbackidentity-thisarg"></a>`_.forIn(object [, callback=identity, thisArg])`
<a href="#_forinobject--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1688 "View in source") [&#x24C9;][1]
<a href="#_forinobject--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1689 "View in source") [&#x24C9;][1]
Iterates over `object`'s own and inherited enumerable properties, executing the `callback` for each property. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, key, object)*. Callbacks may exit iteration early by explicitly returning `false`.
@@ -2562,7 +2562,7 @@ _.forIn(new Dog('Dagny'), function(value, key) {
<!-- div -->
### <a id="_forownobject--callbackidentity-thisarg"></a>`_.forOwn(object [, callback=identity, thisArg])`
<a href="#_forownobject--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1713 "View in source") [&#x24C9;][1]
<a href="#_forownobject--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1714 "View in source") [&#x24C9;][1]
Iterates over an object's own enumerable properties, executing the `callback` for each property. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, key, object)*. Callbacks may exit iteration early by explicitly returning `false`.
@@ -2590,7 +2590,7 @@ _.forOwn({ '0': 'zero', '1': 'one', 'length': 2 }, function(num, key) {
<!-- div -->
### <a id="_functionsobject"></a>`_.functions(object)`
<a href="#_functionsobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1730 "View in source") [&#x24C9;][1]
<a href="#_functionsobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1731 "View in source") [&#x24C9;][1]
Creates a sorted array of property names of all enumerable properties, own and inherited, of `object` that have function values.
@@ -2617,7 +2617,7 @@ _.functions(_);
<!-- div -->
### <a id="_hasobject-property"></a>`_.has(object, property)`
<a href="#_hasobject-property">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1755 "View in source") [&#x24C9;][1]
<a href="#_hasobject-property">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1756 "View in source") [&#x24C9;][1]
Checks if the specified object `property` exists and is a direct property, instead of an inherited property.
@@ -2642,7 +2642,7 @@ _.has({ 'a': 1, 'b': 2, 'c': 3 }, 'b');
<!-- div -->
### <a id="_invertobject"></a>`_.invert(object)`
<a href="#_invertobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1772 "View in source") [&#x24C9;][1]
<a href="#_invertobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1773 "View in source") [&#x24C9;][1]
Creates an object composed of the inverted keys and values of the given `object`.
@@ -2720,7 +2720,7 @@ _.isArray([1, 2, 3]);
<!-- div -->
### <a id="_isbooleanvalue"></a>`_.isBoolean(value)`
<a href="#_isbooleanvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1798 "View in source") [&#x24C9;][1]
<a href="#_isbooleanvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1799 "View in source") [&#x24C9;][1]
Checks if `value` is a boolean value.
@@ -2744,7 +2744,7 @@ _.isBoolean(null);
<!-- div -->
### <a id="_isdatevalue"></a>`_.isDate(value)`
<a href="#_isdatevalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1815 "View in source") [&#x24C9;][1]
<a href="#_isdatevalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1816 "View in source") [&#x24C9;][1]
Checks if `value` is a date.
@@ -2768,7 +2768,7 @@ _.isDate(new Date);
<!-- div -->
### <a id="_iselementvalue"></a>`_.isElement(value)`
<a href="#_iselementvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1832 "View in source") [&#x24C9;][1]
<a href="#_iselementvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1833 "View in source") [&#x24C9;][1]
Checks if `value` is a DOM element.
@@ -2792,7 +2792,7 @@ _.isElement(document.body);
<!-- div -->
### <a id="_isemptyvalue"></a>`_.isEmpty(value)`
<a href="#_isemptyvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1857 "View in source") [&#x24C9;][1]
<a href="#_isemptyvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1858 "View in source") [&#x24C9;][1]
Checks if `value` is empty. Arrays, strings, or `arguments` objects with a length of `0` and objects with no own enumerable properties are considered "empty".
@@ -2822,7 +2822,7 @@ _.isEmpty('');
<!-- div -->
### <a id="_isequala-b--callback-thisarg"></a>`_.isEqual(a, b [, callback, thisArg])`
<a href="#_isequala-b--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1916 "View in source") [&#x24C9;][1]
<a href="#_isequala-b--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1917 "View in source") [&#x24C9;][1]
Performs a deep comparison between two values to determine if they are equivalent to each other. If `callback` is passed, it will be executed to compare values. If `callback` returns `undefined`, comparisons will be handled by the method instead. The `callback` is bound to `thisArg` and invoked with two arguments; *(a, b)*.
@@ -2867,11 +2867,11 @@ _.isEqual(words, otherWords, function(a, b) {
<!-- div -->
### <a id="_isfinitevalue"></a>`_.isFinite(value)`
<a href="#_isfinitevalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2102 "View in source") [&#x24C9;][1]
<a href="#_isfinitevalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2103 "View in source") [&#x24C9;][1]
Checks if `value` is, or can be coerced to, a finite number.
Note: This is not the same as native `isFinite`, which will return true for booleans and empty strings. See http://es5.github.com/#x15.1.2.5.
Note: This is not the same as native `isFinite`, which will return true for booleans and empty strings. See http://es5.github.io/#x15.1.2.5.
#### Arguments
1. `value` *(Mixed)*: The value to check.
@@ -2905,7 +2905,7 @@ _.isFinite(Infinity);
<!-- div -->
### <a id="_isfunctionvalue"></a>`_.isFunction(value)`
<a href="#_isfunctionvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2119 "View in source") [&#x24C9;][1]
<a href="#_isfunctionvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2120 "View in source") [&#x24C9;][1]
Checks if `value` is a function.
@@ -2929,11 +2929,11 @@ _.isFunction(_);
<!-- div -->
### <a id="_isnanvalue"></a>`_.isNaN(value)`
<a href="#_isnanvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2182 "View in source") [&#x24C9;][1]
<a href="#_isnanvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2183 "View in source") [&#x24C9;][1]
Checks if `value` is `NaN`.
Note: This is not the same as native `isNaN`, which will return `true` for `undefined` and other values. See http://es5.github.com/#x15.1.2.4.
Note: This is not the same as native `isNaN`, which will return `true` for `undefined` and other values. See http://es5.github.io/#x15.1.2.4.
#### Arguments
1. `value` *(Mixed)*: The value to check.
@@ -2964,7 +2964,7 @@ _.isNaN(undefined);
<!-- div -->
### <a id="_isnullvalue"></a>`_.isNull(value)`
<a href="#_isnullvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2204 "View in source") [&#x24C9;][1]
<a href="#_isnullvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2205 "View in source") [&#x24C9;][1]
Checks if `value` is `null`.
@@ -2991,7 +2991,7 @@ _.isNull(undefined);
<!-- div -->
### <a id="_isnumbervalue"></a>`_.isNumber(value)`
<a href="#_isnumbervalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2223 "View in source") [&#x24C9;][1]
<a href="#_isnumbervalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2224 "View in source") [&#x24C9;][1]
Checks if `value` is a number.
@@ -3017,7 +3017,7 @@ _.isNumber(8.4 * 5);
<!-- div -->
### <a id="_isobjectvalue"></a>`_.isObject(value)`
<a href="#_isobjectvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2149 "View in source") [&#x24C9;][1]
<a href="#_isobjectvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2150 "View in source") [&#x24C9;][1]
Checks if `value` is the language type of Object. *(e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)*
@@ -3047,7 +3047,7 @@ _.isObject(1);
<!-- div -->
### <a id="_isplainobjectvalue"></a>`_.isPlainObject(value)`
<a href="#_isplainobjectvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2251 "View in source") [&#x24C9;][1]
<a href="#_isplainobjectvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2252 "View in source") [&#x24C9;][1]
Checks if a given `value` is an object created by the `Object` constructor.
@@ -3082,7 +3082,7 @@ _.isPlainObject({ 'name': 'moe', 'age': 40 });
<!-- div -->
### <a id="_isregexpvalue"></a>`_.isRegExp(value)`
<a href="#_isregexpvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2276 "View in source") [&#x24C9;][1]
<a href="#_isregexpvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2277 "View in source") [&#x24C9;][1]
Checks if `value` is a regular expression.
@@ -3106,7 +3106,7 @@ _.isRegExp(/moe/);
<!-- div -->
### <a id="_isstringvalue"></a>`_.isString(value)`
<a href="#_isstringvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2293 "View in source") [&#x24C9;][1]
<a href="#_isstringvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2294 "View in source") [&#x24C9;][1]
Checks if `value` is a string.
@@ -3130,7 +3130,7 @@ _.isString('moe');
<!-- div -->
### <a id="_isundefinedvalue"></a>`_.isUndefined(value)`
<a href="#_isundefinedvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2310 "View in source") [&#x24C9;][1]
<a href="#_isundefinedvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2311 "View in source") [&#x24C9;][1]
Checks if `value` is `undefined`.
@@ -3154,7 +3154,7 @@ _.isUndefined(void 0);
<!-- div -->
### <a id="_keysobject"></a>`_.keys(object)`
<a href="#_keysobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1334 "View in source") [&#x24C9;][1]
<a href="#_keysobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1335 "View in source") [&#x24C9;][1]
Creates an array composed of the own enumerable property names of `object`.
@@ -3178,7 +3178,7 @@ _.keys({ 'one': 1, 'two': 2, 'three': 3 });
<!-- div -->
### <a id="_mergeobject--source1-source2--callback-thisarg"></a>`_.merge(object [, source1, source2, ..., callback, thisArg])`
<a href="#_mergeobject--source1-source2--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2369 "View in source") [&#x24C9;][1]
<a href="#_mergeobject--source1-source2--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2370 "View in source") [&#x24C9;][1]
Recursively merges own enumerable properties of the source object(s), that don't resolve to `undefined`, into the destination object. Subsequent sources will overwrite property assignments of previous sources. If a `callback` function is passed, it will be executed to produce the merged values of the destination and source properties. If `callback` returns `undefined`, merging will be handled by the method instead. The `callback` is bound to `thisArg` and invoked with two arguments; *(objectValue, sourceValue)*.
@@ -3234,7 +3234,7 @@ _.merge(food, otherFood, function(a, b) {
<!-- div -->
### <a id="_omitobject-callback-prop1-prop2--thisarg"></a>`_.omit(object, callback|[prop1, prop2, ..., thisArg])`
<a href="#_omitobject-callback-prop1-prop2--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2484 "View in source") [&#x24C9;][1]
<a href="#_omitobject-callback-prop1-prop2--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2485 "View in source") [&#x24C9;][1]
Creates a shallow clone of `object` excluding the specified properties. Property names may be specified as individual arguments or as arrays of property names. If a `callback` function is passed, it will be executed for each property in the `object`, omitting the properties `callback` returns truthy for. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, key, object)*.
@@ -3265,7 +3265,7 @@ _.omit({ 'name': 'moe', 'age': 40 }, function(value) {
<!-- div -->
### <a id="_pairsobject"></a>`_.pairs(object)`
<a href="#_pairsobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2519 "View in source") [&#x24C9;][1]
<a href="#_pairsobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2520 "View in source") [&#x24C9;][1]
Creates a two dimensional array of the given object's key-value pairs, i.e. `[[key1, value1], [key2, value2]]`.
@@ -3289,7 +3289,7 @@ _.pairs({ 'moe': 30, 'larry': 40 });
<!-- div -->
### <a id="_pickobject-callback-prop1-prop2--thisarg"></a>`_.pick(object, callback|[prop1, prop2, ..., thisArg])`
<a href="#_pickobject-callback-prop1-prop2--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2558 "View in source") [&#x24C9;][1]
<a href="#_pickobject-callback-prop1-prop2--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2559 "View in source") [&#x24C9;][1]
Creates a shallow clone of `object` composed of the specified properties. Property names may be specified as individual arguments or as arrays of property names. If `callback` is passed, it will be executed for each property in the `object`, picking the properties `callback` returns truthy for. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, key, object)*.
@@ -3320,7 +3320,7 @@ _.pick({ 'name': 'moe', '_userid': 'moe1' }, function(value, key) {
<!-- div -->
### <a id="_transformcollection--callbackidentity-accumulator-thisarg"></a>`_.transform(collection [, callback=identity, accumulator, thisArg])`
<a href="#_transformcollection--callbackidentity-accumulator-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2613 "View in source") [&#x24C9;][1]
<a href="#_transformcollection--callbackidentity-accumulator-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2614 "View in source") [&#x24C9;][1]
An alternative to `_.reduce`, this method transforms an `object` to a new `accumulator` object which is the result of running each of its elements through the `callback`, with each `callback` execution potentially mutating the `accumulator` object. The `callback` is bound to `thisArg` and invoked with four arguments; *(accumulator, value, key, object)*. Callbacks may exit iteration early by explicitly returning `false`.
@@ -3357,7 +3357,7 @@ var mapped = _.transform({ 'a': 1, 'b': 2, 'c': 3 }, function(result, num, key)
<!-- div -->
### <a id="_valuesobject"></a>`_.values(object)`
<a href="#_valuesobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2646 "View in source") [&#x24C9;][1]
<a href="#_valuesobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2647 "View in source") [&#x24C9;][1]
Creates an array composed of the own enumerable property values of `object`.
@@ -3388,7 +3388,7 @@ _.values({ 'one': 1, 'two': 2, 'three': 3 });
<!-- div -->
### <a id="_escapestring"></a>`_.escape(string)`
<a href="#_escapestring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5181 "View in source") [&#x24C9;][1]
<a href="#_escapestring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5182 "View in source") [&#x24C9;][1]
Converts the characters `&`, `<`, `>`, `"`, and `'` in `string` to their corresponding HTML entities.
@@ -3412,7 +3412,7 @@ _.escape('Moe, Larry & Curly');
<!-- div -->
### <a id="_identityvalue"></a>`_.identity(value)`
<a href="#_identityvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5199 "View in source") [&#x24C9;][1]
<a href="#_identityvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5200 "View in source") [&#x24C9;][1]
This method returns the first argument passed to it.
@@ -3437,7 +3437,7 @@ moe === _.identity(moe);
<!-- div -->
### <a id="_mixinobject"></a>`_.mixin(object)`
<a href="#_mixinobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5225 "View in source") [&#x24C9;][1]
<a href="#_mixinobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5226 "View in source") [&#x24C9;][1]
Adds functions properties of `object` to the `lodash` function and chainable wrapper.
@@ -3467,7 +3467,7 @@ _('moe').capitalize();
<!-- div -->
### <a id="_noconflict"></a>`_.noConflict()`
<a href="#_noconflict">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5254 "View in source") [&#x24C9;][1]
<a href="#_noconflict">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5255 "View in source") [&#x24C9;][1]
Reverts the '_' variable to its previous value and returns a reference to the `lodash` function.
@@ -3487,11 +3487,11 @@ var lodash = _.noConflict();
<!-- div -->
### <a id="_parseintvalue--radix"></a>`_.parseInt(value [, radix])`
<a href="#_parseintvalue--radix">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5278 "View in source") [&#x24C9;][1]
<a href="#_parseintvalue--radix">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5279 "View in source") [&#x24C9;][1]
Converts the given `value` into an integer of the specified `radix`. If `radix` is `undefined` or `0`, a `radix` of `10` is used unless the `value` is a hexadecimal, in which case a `radix` of `16` is used.
Note: This method avoids differences in native ES3 and ES5 `parseInt` implementations. See http://es5.github.com/#E.
Note: This method avoids differences in native ES3 and ES5 `parseInt` implementations. See http://es5.github.io/#E.
#### Arguments
1. `value` *(String)*: The value to parse.
@@ -3514,7 +3514,7 @@ _.parseInt('08');
<!-- div -->
### <a id="_randommin0-max1"></a>`_.random([min=0, max=1])`
<a href="#_randommin0-max1">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5301 "View in source") [&#x24C9;][1]
<a href="#_randommin0-max1">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5302 "View in source") [&#x24C9;][1]
Produces a random number between `min` and `max` *(inclusive)*. If only one argument is passed, a number between `0` and the given number will be returned.
@@ -3542,7 +3542,7 @@ _.random(5);
<!-- div -->
### <a id="_resultobject-property"></a>`_.result(object, property)`
<a href="#_resultobject-property">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5345 "View in source") [&#x24C9;][1]
<a href="#_resultobject-property">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5346 "View in source") [&#x24C9;][1]
Resolves the value of `property` on `object`. If `property` is a function, it will be invoked with the `this` binding of `object` and its result returned, else the property value is returned. If `object` is falsey, then `undefined` is returned.
@@ -3595,7 +3595,7 @@ Create a new `lodash` function using the given `context` object.
<!-- div -->
### <a id="_templatetext-data-options"></a>`_.template(text, data, options)`
<a href="#_templatetext-data-options">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5429 "View in source") [&#x24C9;][1]
<a href="#_templatetext-data-options">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5437 "View in source") [&#x24C9;][1]
A micro-templating method that handles arbitrary delimiters, preserves whitespace, and correctly escapes quotes within interpolated code.
@@ -3610,7 +3610,7 @@ http://developer.chrome.com/stable/extensions/sandboxingEval.html
#### Arguments
1. `text` *(String)*: The template text.
2. `data` *(Object)*: The data object used to populate the text.
3. `options` *(Object)*: The options object. escape - The "escape" delimiter regexp. evaluate - The "evaluate" delimiter regexp. interpolate - The "interpolate" delimiter regexp. sourceURL - The sourceURL of the template's compiled source. variable - The data object variable name.
3. `options` *(Object)*: The options object. escape - The "escape" delimiter regexp. evaluate - The "evaluate" delimiter regexp. imports - An object of properties to import into the compiled template as local variables. interpolate - The "interpolate" delimiter regexp. sourceURL - The sourceURL of the template's compiled source. variable - The data object variable name.
#### Returns
*(Function, String)*: Returns a compiled function when no `data` object is given, else it returns the interpolated text.
@@ -3622,14 +3622,15 @@ var compiled = _.template('hello <%= name %>');
compiled({ 'name': 'moe' });
// => 'hello moe'
var list = '<% _.forEach(people, function(name) { %><li><%= name %></li><% }); %>';
_.template(list, { 'people': ['moe', 'larry'] });
// => '<li>moe</li><li>larry</li>'
// using the "escape" delimiter to escape HTML in data property values
_.template('<b><%- value %></b>', { 'value': '<script>' });
// => '<b>&lt;script&gt;</b>'
// using the "evaluate" delimiter to generate HTML
var list = '<% _.forEach(people, function(name) { %><li><%= name %></li><% }); %>';
_.template(list, { 'people': ['moe', 'larry'] });
// => '<li>moe</li><li>larry</li>'
// using the ES6 delimiter as an alternative to the default "interpolate" delimiter
_.template('hello ${ name }', { 'name': 'curly' });
// => 'hello curly'
@@ -3638,7 +3639,7 @@ _.template('hello ${ name }', { 'name': 'curly' });
_.template('<% print("hello " + epithet); %>!', { 'epithet': 'stooge' });
// => 'hello stooge!'
// using custom template delimiters
// using a custom template delimiters
_.templateSettings = {
'interpolate': /{{([\s\S]+?)}}/g
};
@@ -3646,6 +3647,11 @@ _.templateSettings = {
_.template('hello {{ name }}!', { 'name': 'mustache' });
// => 'hello mustache!'
// using the `imports` option to import jQuery
var list = '<% $.each(people, function(name) { %><li><%= name %></li><% }); %>';
_.template(list, { 'people': ['moe', 'larry'] }, { 'imports': { '$': jQuery });
// => '<li>moe</li><li>larry</li>'
// using the `sourceURL` option to specify a custom sourceURL for the template
var compiled = _.template('hello <%= name %>', null, { 'sourceURL': '/basic/greeting.jst' });
compiled(data);
@@ -3677,7 +3683,7 @@ fs.writeFileSync(path.join(cwd, 'jst.js'), '\
<!-- div -->
### <a id="_timesn-callback--thisarg"></a>`_.times(n, callback [, thisArg])`
<a href="#_timesn-callback--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5554 "View in source") [&#x24C9;][1]
<a href="#_timesn-callback--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5562 "View in source") [&#x24C9;][1]
Executes the `callback` function `n` times, returning an array of the results of each `callback` execution. The `callback` is bound to `thisArg` and invoked with one argument; *(index)*.
@@ -3709,7 +3715,7 @@ _.times(3, function(n) { this.cast(n); }, mage);
<!-- div -->
### <a id="_unescapestring"></a>`_.unescape(string)`
<a href="#_unescapestring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5581 "View in source") [&#x24C9;][1]
<a href="#_unescapestring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5589 "View in source") [&#x24C9;][1]
The inverse of `_.escape`, this method converts the HTML entities `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to their corresponding characters.
@@ -3733,7 +3739,7 @@ _.unescape('Moe, Larry &amp; Curly');
<!-- div -->
### <a id="_uniqueidprefix"></a>`_.uniqueId([prefix])`
<a href="#_uniqueidprefix">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5601 "View in source") [&#x24C9;][1]
<a href="#_uniqueidprefix">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5609 "View in source") [&#x24C9;][1]
Generates a unique ID. If `prefix` is passed, the ID will be appended to it.
@@ -3786,7 +3792,7 @@ A reference to the `lodash` function.
<!-- div -->
### <a id="_version"></a>`_.VERSION`
<a href="#_version">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5844 "View in source") [&#x24C9;][1]
<a href="#_version">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5852 "View in source") [&#x24C9;][1]
*(String)*: The semantic version number.

View File

@@ -5369,6 +5369,7 @@
* @param {Object} options The options object.
* escape - The "escape" delimiter regexp.
* evaluate - The "evaluate" delimiter regexp.
* imports - An object of properties to import into the compiled template as local variables.
* interpolate - The "interpolate" delimiter regexp.
* sourceURL - The sourceURL of the template's compiled source.
* variable - The data object variable name.
@@ -5381,14 +5382,15 @@
* compiled({ 'name': 'moe' });
* // => 'hello moe'
*
* var list = '<% _.forEach(people, function(name) { %><li><%= name %></li><% }); %>';
* _.template(list, { 'people': ['moe', 'larry'] });
* // => '<li>moe</li><li>larry</li>'
*
* // using the "escape" delimiter to escape HTML in data property values
* _.template('<b><%- value %></b>', { 'value': '<script>' });
* // => '<b>&lt;script&gt;</b>'
*
* // using the "evaluate" delimiter to generate HTML
* var list = '<% _.forEach(people, function(name) { %><li><%= name %></li><% }); %>';
* _.template(list, { 'people': ['moe', 'larry'] });
* // => '<li>moe</li><li>larry</li>'
*
* // using the ES6 delimiter as an alternative to the default "interpolate" delimiter
* _.template('hello ${ name }', { 'name': 'curly' });
* // => 'hello curly'
@@ -5397,7 +5399,7 @@
* _.template('<% print("hello " + epithet); %>!', { 'epithet': 'stooge' });
* // => 'hello stooge!'
*
* // using custom template delimiters
* // using a custom template delimiters
* _.templateSettings = {
* 'interpolate': /{{([\s\S]+?)}}/g
* };
@@ -5405,6 +5407,11 @@
* _.template('hello {{ name }}!', { 'name': 'mustache' });
* // => 'hello mustache!'
*
* // using the `imports` option to import jQuery
* var list = '<% $.each(people, function(name) { %><li><%= name %></li><% }); %>';
* _.template(list, { 'people': ['moe', 'larry'] }, { 'imports': { '$': jQuery });
* // => '<li>moe</li><li>larry</li>'
*
* // using the `sourceURL` option to specify a custom sourceURL for the template
* var compiled = _.template('hello <%= name %>', null, { 'sourceURL': '/basic/greeting.jst' });
* compiled(data);