Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update docs and builds.

  • Loading branch information...
commit ff27209df478b695d26f3f2d8c515265eda62025 1 parent 565b968
@jdalton jdalton authored
View
62 dist/lodash.backbone.js
@@ -337,19 +337,6 @@
}
/**
- * Checks if `value` is a DOM node in IE < 9.
- *
- * @private
- * @param {Mixed} value The value to check.
- * @returns {Boolean} Returns `true` if the `value` is a DOM node, else `false`.
- */
- function isNode(value) {
- // IE < 9 presents DOM nodes as `Object` objects except they have `toString`
- // methods that are `typeof` "string" and still can coerce nodes to strings
- return typeof value.toString != 'function' && typeof String(value) == 'string';
- }
-
- /**
* A fast path for creating `lodash` wrapper objects.
*
* @private
@@ -372,28 +359,6 @@
}
/**
- * A fallback implementation of `Object.keys` that produces an array of the
- * given object's own enumerable property names.
- *
- * @private
- * @type Function
- * @param {Object} object The object to inspect.
- * @returns {Array} Returns a new array of property names.
- */
- var shimKeys = function (object) {
- var index, iterable = object, result = [];
- if (!iterable) return result;
- if (!(objectTypes[typeof object])) return result;
-
- for (index in iterable) {
- if (hasOwnProperty.call(iterable, index)) {
- result.push(index);
- }
- }
- return result
- };
-
- /**
* Used by `unescape` to convert HTML entities to characters.
*
* @private
@@ -455,6 +420,28 @@
};
/**
+ * A fallback implementation of `Object.keys` that produces an array of the
+ * given object's own enumerable property names.
+ *
+ * @private
+ * @type Function
+ * @param {Object} object The object to inspect.
+ * @returns {Array} Returns a new array of property names.
+ */
+ var shimKeys = function (object) {
+ var index, iterable = object, result = [];
+ if (!iterable) return result;
+ if (!(objectTypes[typeof object])) return result;
+
+ for (index in iterable) {
+ if (hasOwnProperty.call(iterable, index)) {
+ result.push(index);
+ }
+ }
+ return result
+ };
+
+ /**
* Creates an array composed of the own enumerable property names of `object`.
*
* @static
@@ -2073,9 +2060,12 @@
* // => [2, 3, 4]
*/
function toArray(collection) {
- if (collection && typeof collection.length == 'number') {
+ if (isArray(collection)) {
return slice.call(collection);
}
+ if (collection && typeof collection.length == 'number') {
+ return map(collection);
+ }
return values(collection);
}
View
41 dist/lodash.backbone.min.js
@@ -4,23 +4,24 @@
* Build: `lodash backbone exports="amd,commonjs,global,node" -o ./dist/lodash.backbone.js`
* Underscore.js 1.4.4 underscorejs.org/LICENSE
*/
-;(function(n){function r(n){return n instanceof r?n:new o(n)}function t(n,r){var t=n.b,e=r.b;if(n=n.a,r=r.a,n!==r){if(n>r||typeof n=="undefined")return 1;if(n<r||typeof r=="undefined")return-1}return t<e?-1:1}function e(n,r,t){function e(){var u=arguments,o=r;return t.length&&(u=u.length?t.concat(nr(u)):t),this instanceof e?(f.prototype=n.prototype,o=new f,f.prototype=null,u=n.apply(o,u),v(u)?u:o):n.apply(o,u)}if(!p(n))throw new TypeError;return e}function u(n){return pr[n]}function o(n){this.__wrapped__=n
-}function f(){}function i(n){return rr.call(n)==D}function a(n){if(!n)return n;for(var r=1,t=arguments.length;r<t;r++){var e=arguments[r];if(e)for(var u in e)n[u]=e[u]}return n}function c(n){var r=[];return vr(n,function(n,t){p(n)&&r.push(t)}),r.sort()}function l(n){for(var r=-1,t=sr(n),e=t.length,u={};++r<e;){var o=t[r];u[n[o]]=o}return u}function s(n,t,e,u){if(n===t)return 0!==n||1/n==1/t;var o=typeof n,f=typeof t;if(n===n&&(!n||"function"!=o&&"object"!=o)&&(!t||"function"!=f&&"object"!=f))return!1;
-if(null==n||null==t)return n===t;if(f=rr.call(n),o=rr.call(t),f!=o)return!1;switch(f){case V:case C:return+n==+t;case G:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case J:case K:return n==t+""}if(o=f==P,!o){if(n instanceof r||t instanceof r)return s(n.__wrapped__||n,t.__wrapped__||t,e,u);if(f!=H)return!1;var f=n.constructor,i=t.constructor;if(f!=i&&(!p(f)||!(f instanceof f&&p(i)&&i instanceof i)))return!1}for(e||(e=[]),u||(u=[]),f=e.length;f--;)if(e[f]==n)return u[f]==t;var a=!0,c=0;if(e.push(n),u.push(t),o){if(c=t.length,a=c==n.length)for(;c--&&(a=s(n[c],t[c],e,u)););return a
-}return vr(t,function(r,t,o){return Y.call(o,t)?(c++,!(a=Y.call(n,t)&&s(n[t],r,e,u))&&$):void 0}),a&&vr(n,function(n,r,t){return Y.call(t,r)?!(a=-1<--c)&&$:void 0}),a}function p(n){return typeof n=="function"}function v(n){return n?L[typeof n]:!1}function h(n){return typeof n=="string"||rr.call(n)==K}function g(n){for(var r=-1,t=sr(n),e=t.length,u=Array(e);++r<e;)u[r]=n[t[r]];return u}function y(n,r){var t=!1;return typeof(n?n.length:0)=="number"?t=-1<E(n,r):hr(n,function(n){return(t=n===r)&&$}),t}function m(n,r,t){var e=!0;
-r=M(r,t),t=-1;var u=n?n.length:0;if(typeof u=="number")for(;++t<u&&(e=!!r(n[t],t,n)););else hr(n,function(n,t,u){return!(e=!!r(n,t,u))&&$});return e}function b(n,r,t){var e=[];r=M(r,t),t=-1;var u=n?n.length:0;if(typeof u=="number")for(;++t<u;){var o=n[t];r(o,t,n)&&e.push(o)}else hr(n,function(n,t,u){r(n,t,u)&&e.push(n)});return e}function d(n,r,t){r=M(r,t),t=-1;var e=n?n.length:0;if(typeof e!="number"){var u;return hr(n,function(n,t,e){return r(n,t,e)?(u=n,$):void 0}),u}for(;++t<e;){var o=n[t];if(r(o,t,n))return o
-}}function _(n,r,t){var e=-1,u=n?n.length:0;if(typeof u=="number")for(r=r&&typeof t=="undefined"?r:M(r,t);++e<u&&r(n[e],e,n)!==$;);else hr(n,r,t)}function j(n,r,t){var e=-1,u=n?n.length:0;if(r=M(r,t),typeof u=="number")for(var o=Array(u);++e<u;)o[e]=r(n[e],e,n);else o=[],hr(n,function(n,t,u){o[++e]=r(n,t,u)});return o}function w(n,r,t,e){if(!n)return t;var u=3>arguments.length;r=M(r,e,4);var o=-1,f=n.length;if(typeof f=="number")for(u&&(t=n[++o]);++o<f;)t=r(t,n[o],o,n);else hr(n,function(n,e,o){t=u?(u=!1,n):r(t,n,e,o)
-});return t}function x(n,r,t,e){var u=n?n.length:0,o=3>arguments.length;if(typeof u!="number")var f=sr(n),u=f.length;return r=M(r,e,4),_(n,function(e,i,a){i=f?f[--u]:--u,t=o?(o=!1,n[i]):r(t,n[i],i,a)}),t}function A(n,r,t){var e;r=M(r,t),t=-1;var u=n?n.length:0;if(typeof u=="number")for(;++t<u&&!(e=r(n[t],t,n)););else hr(n,function(n,t,u){return(e=r(n,t,u))&&$});return!!e}function O(n,r,t){if(n){var e=0,u=n.length;if(typeof r!="number"&&null!=r){var o=-1;for(r=M(r,t);++o<u&&r(n[o],o,n);)e++}else if(e=r,null==e||t)return n[0];
-return nr.call(n,0,fr(or(0,e),u))}}function E(n,r,t){var e=-1,u=n?n.length:0;if(typeof t=="number")e=(0>t?or(0,u+t):t||0)-1;else if(t)return e=R(n,r),n[e]===r?e:-1;for(;++e<u;)if(n[e]===r)return e;return-1}function B(n,r,t){if(typeof r!="number"&&null!=r){var e=0,u=-1,o=n?n.length:0;for(r=M(r,t);++u<o&&r(n[u],u,n);)e++}else e=null==r||t?1:or(0,r);return nr.call(n,e)}function R(n,r,t,e){var u=0,o=n?n.length:u;for(t=t?M(t,e,1):I,r=t(r);u<o;)e=u+o>>>1,t(n[e])<r?u=e+1:o=e;return u}function k(n,r){return cr.fastBind||tr&&2<arguments.length?tr.call.apply(tr,arguments):e(n,r,nr.call(arguments,2))
-}function M(n,r,t){if(null==n)return I;var e=typeof n;if("function"!=e){if("object"!=e)return function(r){return r[n]};var u=sr(n);return function(r){for(var t=u.length,e=!1;t--&&(e=r[u[t]]===n[u[t]]););return e}}return typeof r!="undefined"?1===t?function(t){return n.call(r,t)}:2===t?function(t,e){return n.call(r,t,e)}:4===t?function(t,e,u,o){return n.call(r,t,e,u,o)}:function(t,e,u){return n.call(r,t,e,u)}:n}function I(n){return n}function S(n){_(c(n),function(t){var e=r[t]=n[t];r.prototype[t]=function(){var n=[this.__wrapped__];
-return Z.apply(n,arguments),n=e.apply(r,n),this.__chain__&&(n=new o(n),n.__chain__=!0),n}})}var F=typeof exports=="object"&&exports,N=typeof module=="object"&&module&&module.exports==F&&module,T=typeof global=="object"&&global;T.global===T&&(n=T);var q=0,$={},z=/[&<>"']/g,D="[object Arguments]",P="[object Array]",V="[object Boolean]",C="[object Date]",G="[object Number]",H="[object Object]",J="[object RegExp]",K="[object String]",L={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},Q=[],T={},U=RegExp("^"+(T.valueOf+"").replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),W=Q.concat,X=Math.floor,Y=T.hasOwnProperty,Z=Q.push,nr=Q.slice,rr=T.toString,tr=U.test(tr=nr.bind)&&tr,er=U.test(er=Array.isArray)&&er,ur=U.test(ur=Object.keys)&&ur,or=Math.max,fr=Math.min,ir=Math.random,T=U.test(n.attachEvent),ar=tr&&!/\n|true/.test(tr+T),cr={};
-(function(){var n={0:1,length:1};cr.argsObject=arguments.constructor==Object,cr.fastBind=tr&&!ar,cr.spliceObjects=(Q.splice.call(n,0,1),!n[0])})(1),o.prototype=r.prototype,T=function(n){var r,t=[];if(!n||!L[typeof n])return t;for(r in n)Y.call(n,r)&&t.push(r);return t},i(arguments)||(i=function(n){return n?Y.call(n,"callee"):!1});var lr=er||function(n){return cr.argsObject&&n instanceof Array||rr.call(n)==P},sr=ur?function(n){return v(n)?ur(n):[]}:T,pr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};
-l(pr);var vr=function(n,r){var t;if(!n||!L[typeof n])return n;r||(r=I);for(t in n)if(r(n[t],t,n)===$)break;return n},hr=function(n,r){var t;if(!n||!L[typeof n])return n;r||(r=I);for(t in n)if(Y.call(n,t)&&r(n[t],t,n)===$)break;return n};p(/x/)&&(p=function(n){return n instanceof Function||"[object Function]"==rr.call(n)}),r.bind=k,r.bindAll=function(n){for(var r=W.apply(Q,arguments),t=1<r.length?0:(r=c(n),-1),e=r.length;++t<e;){var u=r[t];n[u]=k(n[u],n)}return n},r.countBy=function(n,r,t){var e={};
-return r=M(r,t),_(n,function(n,t,u){t=r(n,t,u)+"",Y.call(e,t)?e[t]++:e[t]=1}),e},r.defaults=function(n){if(!n)return n;for(var r=1,t=arguments.length;r<t;r++){var e=arguments[r];if(e)for(var u in e)null==n[u]&&(n[u]=e[u])}return n},r.filter=b,r.forEach=_,r.functions=c,r.groupBy=function(n,r,t){var e={};return r=M(r,t),_(n,function(n,t,u){t=r(n,t,u)+"",(Y.call(e,t)?e[t]:e[t]=[]).push(n)}),e},r.initial=function(n,r,t){if(!n)return[];var e=0,u=n.length;if(typeof r!="number"&&null!=r){var o=u;for(r=M(r,t);o--&&r(n[o],o,n);)e++
-}else e=null==r||t?1:r||e;return nr.call(n,0,fr(or(0,u-e),u))},r.invert=l,r.invoke=function(n,r){var t=nr.call(arguments,2),e=-1,u=typeof r=="function",o=n?n.length:0,f=Array(typeof o=="number"?o:0);return _(n,function(n){f[++e]=(u?r:n[r]).apply(n,t)}),f},r.keys=sr,r.map=j,r.max=function(n,r,t){var e=-1/0,u=e,o=-1,f=n?n.length:0;if(r||typeof f!="number")r=M(r,t),_(n,function(n,t,o){t=r(n,t,o),t>e&&(e=t,u=n)});else for(;++o<f;)t=n[o],t>u&&(u=t);return u},r.min=function(n,r,t){var e=1/0,u=e,o=-1,f=n?n.length:0;
-if(r||typeof f!="number")r=M(r,t),_(n,function(n,t,o){t=r(n,t,o),t<e&&(e=t,u=n)});else for(;++o<f;)t=n[o],t<u&&(u=t);return u},r.omit=function(n){var r=W.apply(Q,arguments),t={};return vr(n,function(n,e){0>E(r,e,1)&&(t[e]=n)}),t},r.once=function(n){var r,t;return function(){return r?t:(r=!0,t=n.apply(this,arguments),n=null,t)}},r.pairs=function(n){for(var r=-1,t=sr(n),e=t.length,u=Array(e);++r<e;){var o=t[r];u[r]=[o,n[o]]}return u},r.pick=function(n){for(var r=0,t=W.apply(Q,arguments),e=t.length,u={};++r<e;){var o=t[r];
-o in n&&(u[o]=n[o])}return u},r.reject=function(n,r,t){return r=M(r,t),b(n,function(n,t,e){return!r(n,t,e)})},r.rest=B,r.shuffle=function(n){var r=-1,t=n?n.length:0,e=Array(typeof t=="number"?t:0);return _(n,function(n){var t=X(ir()*(++r+1));e[r]=e[t],e[t]=n}),e},r.sortBy=function(n,r,e){var u=-1,o=n?n.length:0,f=Array(typeof o=="number"?o:0);for(r=M(r,e),_(n,function(n,t,e){f[++u]={a:r(n,t,e),b:u,c:n}}),o=f.length,f.sort(t);o--;)f[o]=f[o].c;return f},r.toArray=function(n){return n&&typeof n.length=="number"?nr.call(n):g(n)
-},r.values=g,r.without=function(n){for(var r=-1,t=n.length,e=[];++r<t;){var u=n[r];0>E(arguments,u,1)&&e.push(u)}return e},r.collect=j,r.drop=B,r.each=_,r.extend=a,r.methods=c,r.select=b,r.tail=B,r.clone=function(n){return v(n)?lr(n)?nr.call(n):a({},n):n},r.contains=y,r.escape=function(n){return null==n?"":(n+"").replace(z,u)},r.every=m,r.find=d,r.has=function(n,r){return n?Y.call(n,r):!1},r.identity=I,r.indexOf=E,r.isArguments=i,r.isArray=lr,r.isEmpty=function(n){if(!n)return!0;if(lr(n)||h(n))return!n.length;
-for(var r in n)if(Y.call(n,r))return!1;return!0},r.isEqual=s,r.isFunction=p,r.isObject=v,r.isRegExp=function(n){return n instanceof RegExp||rr.call(n)==J},r.isString=h,r.lastIndexOf=function(n,r,t){var e=n?n.length:0;for(typeof t=="number"&&(e=(0>t?or(0,e+t):fr(t,e-1))+1);e--;)if(n[e]===r)return e;return-1},r.mixin=S,r.reduce=w,r.reduceRight=x,r.result=function(n,r){var t=n?n[r]:null;return p(t)?n[r]():t},r.size=function(n){var r=n?n.length:0;return typeof r=="number"?r:sr(n).length},r.some=A,r.sortedIndex=R,r.uniqueId=function(n){var r=++q+"";
-return n?n+r:r},r.all=m,r.any=A,r.detect=d,r.foldl=w,r.foldr=x,r.include=y,r.inject=w,r.first=O,r.last=function(n,r,t){if(n){var e=0,u=n.length;if(typeof r!="number"&&null!=r){var o=u;for(r=M(r,t);o--&&r(n[o],o,n);)e++}else if(e=r,null==e||t)return n[u-1];return nr.call(n,or(0,u-e))}},r.take=O,r.head=O,r.chain=function(n){return n=new o(n),n.__chain__=!0,n},r.VERSION="1.0.1",S(r),r.prototype.chain=function(){return this.__chain__=!0,this},r.prototype.value=function(){return this.__wrapped__},_("pop push reverse shift sort splice unshift".split(" "),function(n){var t=Q[n];
-r.prototype[n]=function(){var n=this.__wrapped__;return t.apply(n,arguments),!cr.spliceObjects&&0===n.length&&delete n[0],this}}),_(["concat","join","slice"],function(n){var t=Q[n];r.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._=r,define(function(){return r})):F&&!F.nodeType?N?(N.exports=r)._=r:F._=r:n._=r})(this);
+;(function(n){function t(n,t){var r;if(n&&Z[typeof n])for(r in t||(t=q),n)if(ut.call(n,r)&&t(n[r],r,n)===G)break}function r(n,t){var r;if(n&&Z[typeof n])for(r in t||(t=q),n)if(t(n[r],r,n)===G)break}function e(n){var t,r=[];if(!n||!Z[typeof n])return r;for(t in n)ut.call(n,t)&&r.push(t);return r}function u(n){return n instanceof u?n:new a(n)}function o(n,t){var r=n.b,e=t.b;if(n=n.a,t=t.a,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1}return r<e?-1:1}function f(n,t,r){function e(){var u=arguments,o=t;
+return r.length&&(u=u.length?r.concat(ft(u)):r),this instanceof e?(c.prototype=n.prototype,o=new c,c.prototype=T,u=n.apply(o,u),y(u)?u:o):n.apply(o,u)}if(!g(n))throw new TypeError;return e}function i(n){return bt[n]}function a(n){this.__wrapped__=n}function c(){}function l(n){return it.call(n)==J}function s(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 p(n){var t=[];return r(n,function(n,r){g(n)&&t.push(r)}),t.sort()}function v(n){for(var t=-1,r=mt(n),e=r.length,u={};++t<e;){var o=r[t];
+u[n[o]]=o}return u}function h(n,t,e,o){if(n===t)return 0!==n||1/n==1/t;var f=typeof n,i=typeof t;if(n===n&&(!n||"function"!=f&&"object"!=f)&&(!t||"function"!=i&&"object"!=i))return z;if(n==T||t==T)return n===t;if(i=it.call(n),f=it.call(t),i!=f)return z;switch(i){case L:case Q:return+n==+t;case U:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case X:case Y:return n==t+""}if(f=i==K,!f){if(n instanceof u||t instanceof u)return h(n.__wrapped__||n,t.__wrapped__||t,e,o);if(i!=W)return z;var i=n.constructor,a=t.constructor;
+if(i!=a&&(!g(i)||!(i instanceof i&&g(a)&&a instanceof a)))return z}for(e||(e=[]),o||(o=[]),i=e.length;i--;)if(e[i]==n)return o[i]==t;var c=N,l=0;if(e.push(n),o.push(t),f){if(l=t.length,c=l==n.length)for(;l--&&(c=h(n[l],t[l],e,o)););return c}return r(t,function(t,r,u){return ut.call(u,r)?(l++,!(c=ut.call(n,r)&&h(n[r],t,e,o))&&G):void 0}),c&&r(n,function(n,t,r){return ut.call(r,t)?!(c=-1<--l)&&G:void 0}),c}function g(n){return typeof n=="function"}function y(n){return n?Z[typeof n]:z}function m(n){return typeof n=="string"||it.call(n)==Y
+}function b(n){for(var t=-1,r=mt(n),e=r.length,u=Array(e);++t<e;)u[t]=n[r[t]];return u}function d(n,r){var e=z;return typeof(n?n.length:0)=="number"?e=-1<R(n,r):t(n,function(n){return(e=n===r)&&G}),e}function _(n,r,e){var u=N;r=F(r,e),e=-1;var o=n?n.length:0;if(typeof o=="number")for(;++e<o&&(u=!!r(n[e],e,n)););else t(n,function(n,t,e){return!(u=!!r(n,t,e))&&G});return u}function j(n,r,e){var u=[];r=F(r,e),e=-1;var o=n?n.length:0;if(typeof o=="number")for(;++e<o;){var f=n[e];r(f,e,n)&&u.push(f)}else t(n,function(n,t,e){r(n,t,e)&&u.push(n)
+});return u}function w(n,r,e){r=F(r,e),e=-1;var u=n?n.length:0;if(typeof u!="number"){var o;return t(n,function(n,t,e){return r(n,t,e)?(o=n,G):void 0}),o}for(;++e<u;){var f=n[e];if(r(f,e,n))return f}}function x(n,r,e){var u=-1,o=n?n.length:0;if(typeof o=="number")for(r=r&&typeof e=="undefined"?r:F(r,e);++u<o&&r(n[u],u,n)!==G;);else t(n,r)}function A(n,r,e){var u=-1,o=n?n.length:0;if(r=F(r,e),typeof o=="number")for(var f=Array(o);++u<o;)f[u]=r(n[u],u,n);else f=[],t(n,function(n,t,e){f[++u]=r(n,t,e)
+});return f}function O(n,r,e,u){if(!n)return e;var o=3>arguments.length;r=F(r,u,4);var f=-1,i=n.length;if(typeof i=="number")for(o&&(e=n[++f]);++f<i;)e=r(e,n[f],f,n);else t(n,function(n,t,u){e=o?(o=z,n):r(e,n,t,u)});return e}function E(n,t,r,e){var u=n?n.length:0,o=3>arguments.length;if(typeof u!="number")var f=mt(n),u=f.length;return t=F(t,e,4),x(n,function(e,i,a){i=f?f[--u]:--u,r=o?(o=z,n[i]):t(r,n[i],i,a)}),r}function k(n,r,e){var u;r=F(r,e),e=-1;var o=n?n.length:0;if(typeof o=="number")for(;++e<o&&!(u=r(n[e],e,n)););else t(n,function(n,t,e){return(u=r(n,t,e))&&G
+});return!!u}function B(n,t,r){if(n){var e=0,u=n.length;if(typeof t!="number"&&t!=T){var o=-1;for(t=F(t,r);++o<u&&t(n[o],o,n);)e++}else if(e=t,e==T||r)return n[0];return ft.call(n,0,pt(st(0,e),u))}}function R(n,t,r){var e=-1,u=n?n.length:0;if(typeof r=="number")e=(0>r?st(0,u+r):r||0)-1;else if(r)return e=I(n,t),n[e]===t?e:-1;for(;++e<u;)if(n[e]===t)return e;return-1}function M(n,t,r){if(typeof t!="number"&&t!=T){var e=0,u=-1,o=n?n.length:0;for(t=F(t,r);++u<o&&t(n[u],u,n);)e++}else e=t==T||r?1:st(0,t);
+return ft.call(n,e)}function I(n,t,r,e){var u=0,o=n?n.length:u;for(r=r?F(r,e,1):q,t=r(t);u<o;)e=u+o>>>1,r(n[e])<t?u=e+1:o=e;return u}function S(n,t){return gt.fastBind||at&&2<arguments.length?at.call.apply(at,arguments):f(n,t,ft.call(arguments,2))}function F(n,t,r){if(n==T)return q;var e=typeof n;if("function"!=e){if("object"!=e)return function(t){return t[n]};var u=mt(n);return function(t){for(var r=u.length,e=z;r--&&(e=t[u[r]]===n[u[r]]););return e}}return typeof t!="undefined"?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)}:function(r,e,u){return n.call(t,r,e,u)}:n}function q(n){return n}function $(n){x(p(n),function(t){var r=u[t]=n[t];u.prototype[t]=function(){var n=[this.__wrapped__];return ot.apply(n,arguments),n=r.apply(u,n),this.__chain__&&(n=new a(n),n.__chain__=N),n}})}var N=!0,T=null,z=!1,D=typeof exports=="object"&&exports,P=typeof module=="object"&&module&&module.exports==D&&module,V=typeof global=="object"&&global;
+V.global===V&&(n=V);var C=0,G={},H=/[&<>"']/g,J="[object Arguments]",K="[object Array]",L="[object Boolean]",Q="[object Date]",U="[object Number]",W="[object Object]",X="[object RegExp]",Y="[object String]",Z={"boolean":z,"function":N,object:N,number:z,string:z,undefined:z},nt=[],V={},tt=RegExp("^"+(V.valueOf+"").replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),rt=nt.concat,et=Math.floor,ut=V.hasOwnProperty,ot=nt.push,ft=nt.slice,it=V.toString,at=tt.test(at=ft.bind)&&at,ct=tt.test(ct=Array.isArray)&&ct,lt=tt.test(lt=Object.keys)&&lt,st=Math.max,pt=Math.min,vt=Math.random,V=tt.test(n.attachEvent),ht=at&&!/\n|true/.test(at+V),gt={};
+(function(){var n={0:1,length:1};gt.argsObject=arguments.constructor==Object,gt.fastBind=at&&!ht,gt.spliceObjects=(nt.splice.call(n,0,1),!n[0])})(1),a.prototype=u.prototype,l(arguments)||(l=function(n){return n?ut.call(n,"callee"):z});var yt=ct||function(n){return gt.argsObject&&n instanceof Array||it.call(n)==K},mt=lt?function(n){return y(n)?lt(n):[]}:e,bt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};v(bt),g(/x/)&&(g=function(n){return n instanceof Function||"[object Function]"==it.call(n)
+}),u.bind=S,u.bindAll=function(n){for(var t=rt.apply(nt,arguments),r=1<t.length?0:(t=p(n),-1),e=t.length;++r<e;){var u=t[r];n[u]=S(n[u],n)}return n},u.countBy=function(n,t,r){var e={};return t=F(t,r),x(n,function(n,r,u){r=t(n,r,u)+"",ut.call(e,r)?e[r]++:e[r]=1}),e},u.defaults=function(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]==T&&(n[u]=e[u])}return n},u.filter=j,u.forEach=x,u.functions=p,u.groupBy=function(n,t,r){var e={};return t=F(t,r),x(n,function(n,r,u){r=t(n,r,u)+"",(ut.call(e,r)?e[r]:e[r]=[]).push(n)
+}),e},u.initial=function(n,t,r){if(!n)return[];var e=0,u=n.length;if(typeof t!="number"&&t!=T){var o=u;for(t=F(t,r);o--&&t(n[o],o,n);)e++}else e=t==T||r?1:t||e;return ft.call(n,0,pt(st(0,u-e),u))},u.invert=v,u.invoke=function(n,t){var r=ft.call(arguments,2),e=-1,u=typeof t=="function",o=n?n.length:0,f=Array(typeof o=="number"?o:0);return x(n,function(n){f[++e]=(u?t:n[t]).apply(n,r)}),f},u.keys=mt,u.map=A,u.max=function(n,t,r){var e=-1/0,u=e,o=-1,f=n?n.length:0;if(t||typeof f!="number")t=F(t,r),x(n,function(n,r,o){r=t(n,r,o),r>e&&(e=r,u=n)
+});else for(;++o<f;)r=n[o],r>u&&(u=r);return u},u.min=function(n,t,r){var e=1/0,u=e,o=-1,f=n?n.length:0;if(t||typeof f!="number")t=F(t,r),x(n,function(n,r,o){r=t(n,r,o),r<e&&(e=r,u=n)});else for(;++o<f;)r=n[o],r<u&&(u=r);return u},u.omit=function(n){var t=rt.apply(nt,arguments),e={};return r(n,function(n,r){0>R(t,r,1)&&(e[r]=n)}),e},u.once=function(n){var t,r;return function(){return t?r:(t=N,r=n.apply(this,arguments),n=T,r)}},u.pairs=function(n){for(var t=-1,r=mt(n),e=r.length,u=Array(e);++t<e;){var o=r[t];
+u[t]=[o,n[o]]}return u},u.pick=function(n){for(var t=0,r=rt.apply(nt,arguments),e=r.length,u={};++t<e;){var o=r[t];o in n&&(u[o]=n[o])}return u},u.reject=function(n,t,r){return t=F(t,r),j(n,function(n,r,e){return!t(n,r,e)})},u.rest=M,u.shuffle=function(n){var t=-1,r=n?n.length:0,e=Array(typeof r=="number"?r:0);return x(n,function(n){var r=et(vt()*(++t+1));e[t]=e[r],e[r]=n}),e},u.sortBy=function(n,t,r){var e=-1,u=n?n.length:0,f=Array(typeof u=="number"?u:0);for(t=F(t,r),x(n,function(n,r,u){f[++e]={a:t(n,r,u),b:e,c:n}
+}),u=f.length,f.sort(o);u--;)f[u]=f[u].c;return f},u.toArray=function(n){return yt(n)?ft.call(n):n&&typeof n.length=="number"?A(n):b(n)},u.values=b,u.without=function(n){for(var t=-1,r=n.length,e=[];++t<r;){var u=n[t];0>R(arguments,u,1)&&e.push(u)}return e},u.collect=A,u.drop=M,u.each=x,u.extend=s,u.methods=p,u.select=j,u.tail=M,u.clone=function(n){return y(n)?yt(n)?ft.call(n):s({},n):n},u.contains=d,u.escape=function(n){return n==T?"":(n+"").replace(H,i)},u.every=_,u.find=w,u.has=function(n,t){return n?ut.call(n,t):z
+},u.identity=q,u.indexOf=R,u.isArguments=l,u.isArray=yt,u.isEmpty=function(n){if(!n)return N;if(yt(n)||m(n))return!n.length;for(var t in n)if(ut.call(n,t))return z;return N},u.isEqual=h,u.isFunction=g,u.isObject=y,u.isRegExp=function(n){return n instanceof RegExp||it.call(n)==X},u.isString=m,u.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(e=(0>r?st(0,e+r):pt(r,e-1))+1);e--;)if(n[e]===t)return e;return-1},u.mixin=$,u.reduce=O,u.reduceRight=E,u.result=function(n,t){var r=n?n[t]:T;
+return g(r)?n[t]():r},u.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:mt(n).length},u.some=k,u.sortedIndex=I,u.uniqueId=function(n){var t=++C+"";return n?n+t:t},u.all=_,u.any=k,u.detect=w,u.foldl=O,u.foldr=E,u.include=d,u.inject=O,u.first=B,u.last=function(n,t,r){if(n){var e=0,u=n.length;if(typeof t!="number"&&t!=T){var o=u;for(t=F(t,r);o--&&t(n[o],o,n);)e++}else if(e=t,e==T||r)return n[u-1];return ft.call(n,st(0,u-e))}},u.take=B,u.head=B,u.chain=function(n){return n=new a(n),n.__chain__=N,n
+},u.VERSION="1.0.1",$(u),u.prototype.chain=function(){return this.__chain__=N,this},u.prototype.value=function(){return this.__wrapped__},x("pop push reverse shift sort splice unshift".split(" "),function(n){var t=nt[n];u.prototype[n]=function(){var n=this.__wrapped__;return t.apply(n,arguments),!gt.spliceObjects&&0===n.length&&delete n[0],this}}),x(["concat","join","slice"],function(n){var t=nt[n];u.prototype[n]=function(){var n=t.apply(this.__wrapped__,arguments);return this.__chain__&&(n=new a(n),n.__chain__=N),n
+}}),typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=u,define(function(){return u})):D&&!D.nodeType?P?(P.exports=u)._=u:D._=u:n._=u})(this);
View
83 dist/lodash.compat.js
@@ -365,7 +365,7 @@
* @type Boolean
*/
try {
- support.nodeClass = !(toString.call(document) == objectClass && !String({ 'toString': 0 }));
+ support.nodeClass = !(toString.call(document) == objectClass && !({ 'toString': 0 } + ''));
} catch(e) {
support.nodeClass = true;
}
@@ -500,11 +500,9 @@
if (support.enumPrototypes || obj.useHas) {
__p += '\n }';
}
- __p += '\n } ';
- }
-
+ __p += '\n } ';
if (support.nonEnumShadows) {
- __p += '\n\n var ctor = iterable.constructor;\n ';
+ __p += '\n\n var ctor = iterable.constructor;\n ';
for (var k = 0; k < 7; k++) {
__p += '\n index = \'' +
(obj.shadowedProps[k]) +
@@ -514,7 +512,9 @@
}
__p += 'hasOwnProperty.call(iterable, index)) {\n ' +
(obj.loop) +
- '\n } ';
+ '\n } ';
+ }
+
}
}
@@ -745,22 +745,6 @@
}
/**
- * A function compiled to iterate `arguments` objects, arrays, objects, and
- * strings consistenly across environments, 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`.
- *
- * @private
- * @type Function
- * @param {Array|Object|String} collection The collection to iterate over.
- * @param {Function} [callback=identity] The function called per iteration.
- * @param {Mixed} [thisArg] The `this` binding of `callback`.
- * @returns {Array|Object|String} Returns `collection`.
- */
- var each = createIterator(eachIteratorOptions);
-
- /**
* Used by `template` to escape characters for inclusion in compiled
* string literals.
*
@@ -793,7 +777,7 @@
function isNode(value) {
// IE < 9 presents DOM nodes as `Object` objects except they have `toString`
// methods that are `typeof` "string" and still can coerce nodes to strings
- return typeof value.toString != 'function' && typeof String(value) == 'string';
+ return typeof value.toString != 'function' && typeof (value + '') == 'string';
}
/**
@@ -836,7 +820,8 @@
}
// check that the constructor is `Object` (i.e. `Object instanceof Object`)
var ctor = value.constructor;
- if ((!isFunction(ctor) && (support.nodeClass || !isNode(value))) || ctor instanceof ctor) {
+
+ if (isFunction(ctor) ? ctor instanceof ctor : (support.nodeClass || !isNode(value))) {
// IE < 9 iterates inherited properties before own properties. If the first
// iterated property is an object's own property then there are no inherited
// enumerable properties.
@@ -859,23 +844,6 @@
}
/**
- * A fallback implementation of `Object.keys` that produces an array of the
- * given object's own enumerable property names.
- *
- * @private
- * @type Function
- * @param {Object} object The object to inspect.
- * @returns {Array} Returns a new array of property names.
- */
- var shimKeys = createIterator({
- 'args': 'object',
- 'init': '[]',
- 'top': 'if (!(objectTypes[typeof object])) return result',
- 'loop': 'result.push(index)',
- 'arrays': false
- });
-
- /**
* Slices the `collection` from the `start` index up to, but not including,
* the `end` index.
*
@@ -965,6 +933,23 @@
};
/**
+ * A fallback implementation of `Object.keys` that produces an array of the
+ * given object's own enumerable property names.
+ *
+ * @private
+ * @type Function
+ * @param {Object} object The object to inspect.
+ * @returns {Array} Returns a new array of property names.
+ */
+ var shimKeys = createIterator({
+ 'args': 'object',
+ 'init': '[]',
+ 'top': 'if (!(objectTypes[typeof object])) return result',
+ 'loop': 'result.push(index)',
+ 'arrays': false
+ });
+
+ /**
* Creates an array composed of the own enumerable property names of `object`.
*
* @static
@@ -989,6 +974,22 @@
};
/**
+ * A function compiled to iterate `arguments` objects, arrays, objects, and
+ * strings consistenly across environments, 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`.
+ *
+ * @private
+ * @type Function
+ * @param {Array|Object|String} collection The collection to iterate over.
+ * @param {Function} [callback=identity] The function called per iteration.
+ * @param {Mixed} [thisArg] The `this` binding of `callback`.
+ * @returns {Array|Object|String} Returns `collection`.
+ */
+ var each = createIterator(eachIteratorOptions);
+
+ /**
* Used to convert characters to HTML entities:
*
* Though the `>` character is escaped for symmetry, characters like `>` and `/`
View
54 dist/lodash.compat.min.js
@@ -4,43 +4,43 @@
* Build: `lodash -o ./dist/lodash.compat.js`
* Underscore.js 1.4.4 underscorejs.org/LICENSE
*/
-;(function(n){function t(r){function a(n){return n&&typeof n=="object"&&!le(n)&&Vt.call(n,"__wrapped__")?n:new K(n)}function q(n,t,e){var r=n.length,u=r-t>=e;if(u){var a={};for(e=t-1;++e<r;){var o=qt(n[e]);(Vt.call(a,o)?a[o]:a[o]=[]).push(n[e])}}return function(e){if(u){var r=qt(e);return Vt.call(a,r)&&-1<yt(a[r],e)}return-1<yt(n,e,t)}}function B(n){return n.charCodeAt(0)}function F(n,t){var e=n.b,r=t.b;if(n=n.a,t=t.a,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1
-}return e<r?-1:1}function R(n,t,e,r){function u(){var r=arguments,c=o?this:t;return a||(n=t[i]),e.length&&(r=r.length?(r=V(r),f?r.concat(e):e.concat(r)):e),this instanceof u?(M.prototype=n.prototype,c=new M,M.prototype=null,r=n.apply(c,r),Z(r)?r:c):n.apply(c,r)}var a=Y(n),o=!e,i=t;if(o){var f=r;e=t}else if(!a){if(!r)throw new Bt;t=n}return u}function T(){for(var n,t={g:_,b:"k(m)",c:"",e:"m",f:"",h:"",i:!0,j:!!pe},e=0;n=arguments[e];e++)for(var r in n)t[r]=n[r];if(n=t.a,t.d=/^[^,]+/.exec(n)[0],e=At,r="var i,m="+t.d+",u="+t.e+";if(!m)return u;"+t.h+";",t.b?(r+="var n=m.length;i=-1;if("+t.b+"){",ie.unindexedChars&&(r+="if(l(m)){m=m.split('')}"),r+="while(++i<n){"+t.f+"}}else{"):ie.nonEnumArgs&&(r+="var n=m.length;i=-1;if(n&&j(m)){while(++i<n){i+='';"+t.f+"}}else{"),ie.enumPrototypes&&(r+="var v=typeof m=='function';"),t.i&&t.j?(r+="var s=-1,t=r[typeof m]?o(m):[],n=t.length;while(++s<n){i=t[s];",ie.enumPrototypes&&(r+="if(!(v&&i=='prototype')){"),r+=t.f,ie.enumPrototypes&&(r+="}")):(r+="for(i in m){",(ie.enumPrototypes||t.i)&&(r+="if(",ie.enumPrototypes&&(r+="!(v&&i=='prototype')"),ie.enumPrototypes&&t.i&&(r+="&&"),t.i&&(r+="h.call(m,i)"),r+="){"),r+=t.f+";",(ie.enumPrototypes||t.i)&&(r+="}")),r+="}",ie.nonEnumShadows){r+="var f=m.constructor;";
-for(var u=0;7>u;u++)r+="i='"+t.g[u]+"';if(","constructor"==t.g[u]&&(r+="!(f&&f.prototype===m)&&"),r+="h.call(m,i)){"+t.f+"}"}return(t.b||ie.nonEnumArgs)&&(r+="}"),r+=t.c+";return u",e("h,j,k,l,o,p,r","return function("+n+"){"+r+"}")(Vt,H,le,tt,pe,a,P)}function D(n){return"\\"+N[n]}function z(n){return se[n]}function L(n){return typeof n.toString!="function"&&typeof qt=="string"(n)}function K(n){this.__wrapped__=n}function M(){}function U(n){var t=!1;if(!n||Qt.call(n)!=E||!ie.argsClass&&H(n))return t;
-var e=n.constructor;return!Y(e)&&(ie.nodeClass||!L(n))||e instanceof e?ie.ownLast?(ye(n,function(n,e,r){return t=Vt.call(r,e),!1}),!0===t):(ye(n,function(n,e){t=e}),!1===t||Vt.call(n,t)):t}function V(n,t,e){t||(t=0),typeof e=="undefined"&&(e=n?n.length:0);var r=-1;e=e-t||0;for(var u=Ot(0>e?0:e);++r<e;)u[r]=n[t+r];return u}function G(n){return ve[n]}function H(n){return Qt.call(n)==C}function J(n,t,r,u,o,i){var f=n;if(typeof t=="function"&&(u=r,r=t,t=!1),typeof r=="function"){if(r=typeof u=="undefined"?r:a.createCallback(r,u,1),f=r(f),typeof f!="undefined")return f;
-f=n}if(u=Z(f)){var c=Qt.call(f);if(!I[c]||!ie.nodeClass&&L(f))return f;var l=le(f)}if(!u||!t)return u?l?V(f):ge({},f):f;switch(u=oe[c],c){case j:case k:return new u(+f);case O:case A:return new u(f);case S:return u(f.source,v.exec(f))}for(o||(o=[]),i||(i=[]),c=o.length;c--;)if(o[c]==n)return i[c];return f=l?u(f.length):{},l&&(Vt.call(n,"index")&&(f.index=n.index),Vt.call(n,"input")&&(f.input=n.input)),o.push(n),i.push(f),(l?ft:me)(n,function(n,u){f[u]=J(n,t,r,e,o,i)}),f}function Q(n){var t=[];return ye(n,function(n,e){Y(n)&&t.push(e)
-}),t.sort()}function W(n){for(var t=-1,e=pe(n),r=e.length,u={};++t<r;){var a=e[t];u[n[a]]=a}return u}function X(n,t,e,r,u,o){var f=e===i;if(e&&!f){e=typeof r=="undefined"?e:a.createCallback(e,r,2);var c=e(n,t);if(typeof c!="undefined")return!!c}if(n===t)return 0!==n||1/n==1/t;var l=typeof n,p=typeof t;if(n===n&&(!n||"function"!=l&&"object"!=l)&&(!t||"function"!=p&&"object"!=p))return!1;if(null==n||null==t)return n===t;if(p=Qt.call(n),l=Qt.call(t),p==C&&(p=E),l==C&&(l=E),p!=l)return!1;switch(p){case j:case k:return+n==+t;
-case O:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case S:case A:return n==qt(t)}if(l=p==w,!l){if(Vt.call(n,"__wrapped__")||Vt.call(t,"__wrapped__"))return X(n.__wrapped__||n,t.__wrapped__||t,e,r,u,o);if(p!=E||!ie.nodeClass&&(L(n)||L(t)))return!1;var p=!ie.argsObject&&H(n)?Nt:n.constructor,s=!ie.argsObject&&H(t)?Nt:t.constructor;if(p!=s&&(!Y(p)||!(p instanceof p&&Y(s)&&s instanceof s)))return!1}for(u||(u=[]),o||(o=[]),p=u.length;p--;)if(u[p]==n)return o[p]==t;var v=0,c=!0;if(u.push(n),o.push(t),l){if(p=n.length,v=t.length,c=v==n.length,!c&&!f)return c;
-for(;v--;)if(l=p,s=t[v],f)for(;l--&&!(c=X(n[l],s,e,r,u,o)););else if(!(c=X(n[v],s,e,r,u,o)))break;return c}return ye(t,function(t,a,i){return Vt.call(i,a)?(v++,c=Vt.call(n,a)&&X(n[a],t,e,r,u,o)):void 0}),c&&!f&&ye(n,function(n,t,e){return Vt.call(e,t)?c=-1<--v:void 0}),c}function Y(n){return typeof n=="function"}function Z(n){return n?P[typeof n]:!1}function nt(n){return typeof n=="number"||Qt.call(n)==O}function tt(n){return typeof n=="string"||Qt.call(n)==A}function et(n,t,e){var r=arguments,u=0,o=2;
-if(!Z(n))return n;if(e===i)var f=r[3],c=r[4],l=r[5];else c=[],l=[],typeof e!="number"&&(o=r.length),3<o&&"function"==typeof r[o-2]?f=a.createCallback(r[--o-1],r[o--],2):2<o&&"function"==typeof r[o-1]&&(f=r[--o]);for(;++u<o;)(le(r[u])?ft:me)(r[u],function(t,e){var r,u,a=t,o=n[e];if(t&&((u=le(t))||de(t))){for(a=c.length;a--;)if(r=c[a]==t){o=l[a];break}r||(o=u?le(o)?o:[]:de(o)?o:{},f&&(a=f(o,t),typeof a!="undefined"&&(o=a)),c.push(t),l.push(o),f||(o=et(o,t,i,f,c,l)))}else f&&(a=f(o,t),typeof a=="undefined"&&(a=t)),typeof a!="undefined"&&(o=a);
-n[e]=o});return n}function rt(n){for(var t=-1,e=pe(n),r=e.length,u=Ot(r);++t<r;)u[t]=n[e[t]];return u}function ut(n,t,e){var r=-1,u=n?n.length:0,a=!1;return e=(0>e?te(0,u+e):e)||0,typeof u=="number"?a=-1<(tt(n)?n.indexOf(t,e):yt(n,t,e)):fe(n,function(n){return++r<e?void 0:!(a=n===t)}),a}function at(n,t,e){var r=!0;if(t=a.createCallback(t,e),le(n)){e=-1;for(var u=n.length;++e<u&&(r=!!t(n[e],e,n)););}else fe(n,function(n,e,u){return r=!!t(n,e,u)});return r}function ot(n,t,e){var r=[];if(t=a.createCallback(t,e),le(n)){e=-1;
-for(var u=n.length;++e<u;){var o=n[e];t(o,e,n)&&r.push(o)}}else fe(n,function(n,e,u){t(n,e,u)&&r.push(n)});return r}function it(n,t,e){if(t=a.createCallback(t,e),!le(n)){var r;return fe(n,function(n,e,u){return t(n,e,u)?(r=n,!1):void 0}),r}e=-1;for(var u=n.length;++e<u;){var o=n[e];if(t(o,e,n))return o}}function ft(n,t,e){if(t&&typeof e=="undefined"&&le(n)){e=-1;for(var r=n.length;++e<r&&!1!==t(n[e],e,n););}else fe(n,t,e);return n}function ct(n,t,e){var r=-1,u=n?n.length:0,o=Ot(typeof u=="number"?u:0);
-if(t=a.createCallback(t,e),le(n))for(;++r<u;)o[r]=t(n[r],r,n);else fe(n,function(n,e,u){o[++r]=t(n,e,u)});return o}function lt(n,t,e){var r=-1/0,u=r;if(!t&&le(n)){e=-1;for(var o=n.length;++e<o;){var i=n[e];i>u&&(u=i)}}else t=!t&&tt(n)?B:a.createCallback(t,e),fe(n,function(n,e,a){e=t(n,e,a),e>r&&(r=e,u=n)});return u}function pt(n,t,e,r){var u=3>arguments.length;if(t=a.createCallback(t,r,4),le(n)){var o=-1,i=n.length;for(u&&(e=n[++o]);++o<i;)e=t(e,n[o],o,n)}else fe(n,function(n,r,a){e=u?(u=!1,n):t(e,n,r,a)
-});return e}function st(n,t,e,r){var u=n,o=n?n.length:0,i=3>arguments.length;if(typeof o!="number")var f=pe(n),o=f.length;else ie.unindexedChars&&tt(n)&&(u=n.split(""));return t=a.createCallback(t,r,4),ft(n,function(n,r,a){r=f?f[--o]:--o,e=i?(i=!1,u[r]):t(e,u[r],r,a)}),e}function vt(n,t,e){var r;if(t=a.createCallback(t,e),le(n)){e=-1;for(var u=n.length;++e<u&&!(r=t(n[e],e,n)););}else fe(n,function(n,e,u){return!(r=t(n,e,u))});return!!r}function gt(n,t,e){if(n){var r=0,u=n.length;if(typeof t!="number"&&null!=t){var o=-1;
-for(t=a.createCallback(t,e);++o<u&&t(n[o],o,n);)r++}else if(r=t,null==r||e)return n[0];return V(n,0,ee(te(0,r),u))}}function ht(n,t,e,r){var u=-1,o=n?n.length:0,i=[];for(typeof t!="boolean"&&null!=t&&(r=e,e=t,t=!1),null!=e&&(e=a.createCallback(e,r));++u<o;)r=n[u],e&&(r=e(r,u,n)),le(r)?Gt.apply(i,t?r:ht(r)):i.push(r);return i}function yt(n,t,e){var r=-1,u=n?n.length:0;if(typeof e=="number")r=(0>e?te(0,u+e):e||0)-1;else if(e)return r=dt(n,t),n[r]===t?r:-1;for(;++r<u;)if(n[r]===t)return r;return-1}function mt(n,t,e){if(typeof t!="number"&&null!=t){var r=0,u=-1,o=n?n.length:0;
-for(t=a.createCallback(t,e);++u<o&&t(n[u],u,n);)r++}else r=null==t||e?1:te(0,t);return V(n,r)}function dt(n,t,e,r){var u=0,o=n?n.length:u;for(e=e?a.createCallback(e,r,1):jt,t=e(t);u<o;)r=u+o>>>1,e(n[r])<t?u=r+1:o=r;return u}function bt(n,t,e,r){var u=-1,o=n?n.length:0,i=[],f=i;typeof t!="boolean"&&null!=t&&(r=e,e=t,t=!1);var c=!t&&75<=o;if(c)var l={};for(null!=e&&(f=[],e=a.createCallback(e,r));++u<o;){r=n[u];var p=e?e(r,u,n):r;if(c)var s=qt(p),s=Vt.call(l,s)?!(f=l[s]):f=l[s]=[];(t?!u||f[f.length-1]!==p:s||0>yt(f,p))&&((e||c)&&f.push(p),i.push(r))
-}return i}function _t(n,t){for(var e=-1,r=n?n.length:0,u={};++e<r;){var a=n[e];t?u[a]=t[e]:u[a[0]]=a[1]}return u}function Ct(n,t){return ie.fastBind||Wt&&2<arguments.length?Wt.call.apply(Wt,arguments):R(n,t,V(arguments,2))}function wt(n){var t=V(arguments,1);return Jt(function(){n.apply(e,t)},1)}function jt(n){return n}function kt(n){ft(Q(n),function(t){var e=a[t]=n[t];a.prototype[t]=function(){var n=this.__wrapped__,t=[n];return Gt.apply(t,arguments),t=e.apply(a,t),n&&typeof n=="object"&&n==t?this:new K(t)
-}})}function xt(){return this.__wrapped__}r=r?$.defaults(n.Object(),r,$.pick(n,b)):n;var Ot=r.Array,Et=r.Boolean,St=r.Date,At=r.Function,It=r.Math,Pt=r.Number,Nt=r.Object,$t=r.RegExp,qt=r.String,Bt=r.TypeError,Ft=Ot(),Rt=Nt(),Tt=r._,Dt=$t("^"+qt(Rt.valueOf).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),zt=It.ceil,Lt=r.clearTimeout,Kt=Ft.concat,Mt=It.floor,Ut=Dt.test(Ut=Nt.getPrototypeOf)&&Ut,Vt=Rt.hasOwnProperty,Gt=Ft.push,Ht=r.setImmediate,Jt=r.setTimeout,Qt=Rt.toString,Wt=Dt.test(Wt=V.bind)&&Wt,Xt=Dt.test(Xt=Ot.isArray)&&Xt,Yt=r.isFinite,Zt=r.isNaN,ne=Dt.test(ne=Nt.keys)&&ne,te=It.max,ee=It.min,re=r.parseInt,ue=It.random,It=Dt.test(r.attachEvent),ae=Wt&&!/\n|true/.test(Wt+It),oe={};
+;(function(n){function t(r){function a(n){return n&&typeof n=="object"&&!fe(n)&&Vt.call(n,"__wrapped__")?n:new K(n)}function q(n,t,e){var r=n.length,u=r-t>=e;if(u){var a={};for(e=t-1;++e<r;){var o=qt(n[e]);(Vt.call(a,o)?a[o]:a[o]=[]).push(n[e])}}return function(e){if(u){var r=qt(e);return Vt.call(a,r)&&-1<yt(a[r],e)}return-1<yt(n,e,t)}}function B(n){return n.charCodeAt(0)}function F(n,t){var e=n.b,r=t.b;if(n=n.a,t=t.a,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1
+}return e<r?-1:1}function R(n,t,e,r){function u(){var r=arguments,c=o?this:t;return a||(n=t[i]),e.length&&(r=r.length?(r=V(r),f?r.concat(e):e.concat(r)):e),this instanceof u?(M.prototype=n.prototype,c=new M,M.prototype=null,r=n.apply(c,r),Z(r)?r:c):n.apply(c,r)}var a=Y(n),o=!e,i=t;if(o){var f=r;e=t}else if(!a){if(!r)throw new Bt;t=n}return u}function T(){for(var n,t={g:_,b:"k(m)",c:"",e:"m",f:"",h:"",i:!0,j:!!le},e=0;n=arguments[e];e++)for(var r in n)t[r]=n[r];if(n=t.a,t.d=/^[^,]+/.exec(n)[0],e=At,r="var i,m="+t.d+",u="+t.e+";if(!m)return u;"+t.h+";",t.b?(r+="var n=m.length;i=-1;if("+t.b+"){",ie.unindexedChars&&(r+="if(l(m)){m=m.split('')}"),r+="while(++i<n){"+t.f+"}}else{"):ie.nonEnumArgs&&(r+="var n=m.length;i=-1;if(n&&j(m)){while(++i<n){i+='';"+t.f+"}}else{"),ie.enumPrototypes&&(r+="var v=typeof m=='function';"),t.i&&t.j)r+="var s=-1,t=r[typeof m]?o(m):[],n=t.length;while(++s<n){i=t[s];",ie.enumPrototypes&&(r+="if(!(v&&i=='prototype')){"),r+=t.f,ie.enumPrototypes&&(r+="}"),r+="}";
+else if(r+="for(i in m){",(ie.enumPrototypes||t.i)&&(r+="if(",ie.enumPrototypes&&(r+="!(v&&i=='prototype')"),ie.enumPrototypes&&t.i&&(r+="&&"),t.i&&(r+="h.call(m,i)"),r+="){"),r+=t.f+";",(ie.enumPrototypes||t.i)&&(r+="}"),r+="}",ie.nonEnumShadows){r+="var f=m.constructor;";for(var u=0;7>u;u++)r+="i='"+t.g[u]+"';if(","constructor"==t.g[u]&&(r+="!(f&&f.prototype===m)&&"),r+="h.call(m,i)){"+t.f+"}"}return(t.b||ie.nonEnumArgs)&&(r+="}"),r+=t.c+";return u",e("h,j,k,l,o,p,r","return function("+n+"){"+r+"}")(Vt,H,fe,tt,le,a,P)
+}function D(n){return"\\"+N[n]}function z(n){return se[n]}function L(n){return typeof n.toString!="function"&&typeof(n+"")=="string"}function K(n){this.__wrapped__=n}function M(){}function U(n){var t=!1;if(!n||Qt.call(n)!=E||!ie.argsClass&&H(n))return t;var e=n.constructor;return(Y(e)?e instanceof e:ie.nodeClass||!L(n))?ie.ownLast?(ye(n,function(n,e,r){return t=Vt.call(r,e),!1}),!0===t):(ye(n,function(n,e){t=e}),!1===t||Vt.call(n,t)):t}function V(n,t,e){t||(t=0),typeof e=="undefined"&&(e=n?n.length:0);
+var r=-1;e=e-t||0;for(var u=Ot(0>e?0:e);++r<e;)u[r]=n[t+r];return u}function G(n){return ve[n]}function H(n){return Qt.call(n)==C}function J(n,t,r,u,o,i){var f=n;if(typeof t=="function"&&(u=r,r=t,t=!1),typeof r=="function"){if(r=typeof u=="undefined"?r:a.createCallback(r,u,1),f=r(f),typeof f!="undefined")return f;f=n}if(u=Z(f)){var c=Qt.call(f);if(!I[c]||!ie.nodeClass&&L(f))return f;var l=fe(f)}if(!u||!t)return u?l?V(f):ge({},f):f;switch(u=oe[c],c){case j:case k:return new u(+f);case O:case A:return new u(f);
+case S:return u(f.source,v.exec(f))}for(o||(o=[]),i||(i=[]),c=o.length;c--;)if(o[c]==n)return i[c];return f=l?u(f.length):{},l&&(Vt.call(n,"index")&&(f.index=n.index),Vt.call(n,"input")&&(f.input=n.input)),o.push(n),i.push(f),(l?ft:me)(n,function(n,u){f[u]=J(n,t,r,e,o,i)}),f}function Q(n){var t=[];return ye(n,function(n,e){Y(n)&&t.push(e)}),t.sort()}function W(n){for(var t=-1,e=le(n),r=e.length,u={};++t<r;){var a=e[t];u[n[a]]=a}return u}function X(n,t,e,r,u,o){var f=e===i;if(e&&!f){e=typeof r=="undefined"?e:a.createCallback(e,r,2);
+var c=e(n,t);if(typeof c!="undefined")return!!c}if(n===t)return 0!==n||1/n==1/t;var l=typeof n,p=typeof t;if(n===n&&(!n||"function"!=l&&"object"!=l)&&(!t||"function"!=p&&"object"!=p))return!1;if(null==n||null==t)return n===t;if(p=Qt.call(n),l=Qt.call(t),p==C&&(p=E),l==C&&(l=E),p!=l)return!1;switch(p){case j:case k:return+n==+t;case O:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case S:case A:return n==qt(t)}if(l=p==w,!l){if(Vt.call(n,"__wrapped__")||Vt.call(t,"__wrapped__"))return X(n.__wrapped__||n,t.__wrapped__||t,e,r,u,o);
+if(p!=E||!ie.nodeClass&&(L(n)||L(t)))return!1;var p=!ie.argsObject&&H(n)?Nt:n.constructor,s=!ie.argsObject&&H(t)?Nt:t.constructor;if(p!=s&&(!Y(p)||!(p instanceof p&&Y(s)&&s instanceof s)))return!1}for(u||(u=[]),o||(o=[]),p=u.length;p--;)if(u[p]==n)return o[p]==t;var v=0,c=!0;if(u.push(n),o.push(t),l){if(p=n.length,v=t.length,c=v==n.length,!c&&!f)return c;for(;v--;)if(l=p,s=t[v],f)for(;l--&&!(c=X(n[l],s,e,r,u,o)););else if(!(c=X(n[v],s,e,r,u,o)))break;return c}return ye(t,function(t,a,i){return Vt.call(i,a)?(v++,c=Vt.call(n,a)&&X(n[a],t,e,r,u,o)):void 0
+}),c&&!f&&ye(n,function(n,t,e){return Vt.call(e,t)?c=-1<--v:void 0}),c}function Y(n){return typeof n=="function"}function Z(n){return n?P[typeof n]:!1}function nt(n){return typeof n=="number"||Qt.call(n)==O}function tt(n){return typeof n=="string"||Qt.call(n)==A}function et(n,t,e){var r=arguments,u=0,o=2;if(!Z(n))return n;if(e===i)var f=r[3],c=r[4],l=r[5];else c=[],l=[],typeof e!="number"&&(o=r.length),3<o&&"function"==typeof r[o-2]?f=a.createCallback(r[--o-1],r[o--],2):2<o&&"function"==typeof r[o-1]&&(f=r[--o]);
+for(;++u<o;)(fe(r[u])?ft:me)(r[u],function(t,e){var r,u,a=t,o=n[e];if(t&&((u=fe(t))||de(t))){for(a=c.length;a--;)if(r=c[a]==t){o=l[a];break}r||(o=u?fe(o)?o:[]:de(o)?o:{},f&&(a=f(o,t),typeof a!="undefined"&&(o=a)),c.push(t),l.push(o),f||(o=et(o,t,i,f,c,l)))}else f&&(a=f(o,t),typeof a=="undefined"&&(a=t)),typeof a!="undefined"&&(o=a);n[e]=o});return n}function rt(n){for(var t=-1,e=le(n),r=e.length,u=Ot(r);++t<r;)u[t]=n[e[t]];return u}function ut(n,t,e){var r=-1,u=n?n.length:0,a=!1;return e=(0>e?te(0,u+e):e)||0,typeof u=="number"?a=-1<(tt(n)?n.indexOf(t,e):yt(n,t,e)):pe(n,function(n){return++r<e?void 0:!(a=n===t)
+}),a}function at(n,t,e){var r=!0;if(t=a.createCallback(t,e),fe(n)){e=-1;for(var u=n.length;++e<u&&(r=!!t(n[e],e,n)););}else pe(n,function(n,e,u){return r=!!t(n,e,u)});return r}function ot(n,t,e){var r=[];if(t=a.createCallback(t,e),fe(n)){e=-1;for(var u=n.length;++e<u;){var o=n[e];t(o,e,n)&&r.push(o)}}else pe(n,function(n,e,u){t(n,e,u)&&r.push(n)});return r}function it(n,t,e){if(t=a.createCallback(t,e),!fe(n)){var r;return pe(n,function(n,e,u){return t(n,e,u)?(r=n,!1):void 0}),r}e=-1;for(var u=n.length;++e<u;){var o=n[e];
+if(t(o,e,n))return o}}function ft(n,t,e){if(t&&typeof e=="undefined"&&fe(n)){e=-1;for(var r=n.length;++e<r&&!1!==t(n[e],e,n););}else pe(n,t,e);return n}function ct(n,t,e){var r=-1,u=n?n.length:0,o=Ot(typeof u=="number"?u:0);if(t=a.createCallback(t,e),fe(n))for(;++r<u;)o[r]=t(n[r],r,n);else pe(n,function(n,e,u){o[++r]=t(n,e,u)});return o}function lt(n,t,e){var r=-1/0,u=r;if(!t&&fe(n)){e=-1;for(var o=n.length;++e<o;){var i=n[e];i>u&&(u=i)}}else t=!t&&tt(n)?B:a.createCallback(t,e),pe(n,function(n,e,a){e=t(n,e,a),e>r&&(r=e,u=n)
+});return u}function pt(n,t,e,r){var u=3>arguments.length;if(t=a.createCallback(t,r,4),fe(n)){var o=-1,i=n.length;for(u&&(e=n[++o]);++o<i;)e=t(e,n[o],o,n)}else pe(n,function(n,r,a){e=u?(u=!1,n):t(e,n,r,a)});return e}function st(n,t,e,r){var u=n,o=n?n.length:0,i=3>arguments.length;if(typeof o!="number")var f=le(n),o=f.length;else ie.unindexedChars&&tt(n)&&(u=n.split(""));return t=a.createCallback(t,r,4),ft(n,function(n,r,a){r=f?f[--o]:--o,e=i?(i=!1,u[r]):t(e,u[r],r,a)}),e}function vt(n,t,e){var r;
+if(t=a.createCallback(t,e),fe(n)){e=-1;for(var u=n.length;++e<u&&!(r=t(n[e],e,n)););}else pe(n,function(n,e,u){return!(r=t(n,e,u))});return!!r}function gt(n,t,e){if(n){var r=0,u=n.length;if(typeof t!="number"&&null!=t){var o=-1;for(t=a.createCallback(t,e);++o<u&&t(n[o],o,n);)r++}else if(r=t,null==r||e)return n[0];return V(n,0,ee(te(0,r),u))}}function ht(n,t,e,r){var u=-1,o=n?n.length:0,i=[];for(typeof t!="boolean"&&null!=t&&(r=e,e=t,t=!1),null!=e&&(e=a.createCallback(e,r));++u<o;)r=n[u],e&&(r=e(r,u,n)),fe(r)?Gt.apply(i,t?r:ht(r)):i.push(r);
+return i}function yt(n,t,e){var r=-1,u=n?n.length:0;if(typeof e=="number")r=(0>e?te(0,u+e):e||0)-1;else if(e)return r=dt(n,t),n[r]===t?r:-1;for(;++r<u;)if(n[r]===t)return r;return-1}function mt(n,t,e){if(typeof t!="number"&&null!=t){var r=0,u=-1,o=n?n.length:0;for(t=a.createCallback(t,e);++u<o&&t(n[u],u,n);)r++}else r=null==t||e?1:te(0,t);return V(n,r)}function dt(n,t,e,r){var u=0,o=n?n.length:u;for(e=e?a.createCallback(e,r,1):jt,t=e(t);u<o;)r=u+o>>>1,e(n[r])<t?u=r+1:o=r;return u}function bt(n,t,e,r){var u=-1,o=n?n.length:0,i=[],f=i;
+typeof t!="boolean"&&null!=t&&(r=e,e=t,t=!1);var c=!t&&75<=o;if(c)var l={};for(null!=e&&(f=[],e=a.createCallback(e,r));++u<o;){r=n[u];var p=e?e(r,u,n):r;if(c)var s=qt(p),s=Vt.call(l,s)?!(f=l[s]):f=l[s]=[];(t?!u||f[f.length-1]!==p:s||0>yt(f,p))&&((e||c)&&f.push(p),i.push(r))}return i}function _t(n,t){for(var e=-1,r=n?n.length:0,u={};++e<r;){var a=n[e];t?u[a]=t[e]:u[a[0]]=a[1]}return u}function Ct(n,t){return ie.fastBind||Wt&&2<arguments.length?Wt.call.apply(Wt,arguments):R(n,t,V(arguments,2))}function wt(n){var t=V(arguments,1);
+return Jt(function(){n.apply(e,t)},1)}function jt(n){return n}function kt(n){ft(Q(n),function(t){var e=a[t]=n[t];a.prototype[t]=function(){var n=this.__wrapped__,t=[n];return Gt.apply(t,arguments),t=e.apply(a,t),n&&typeof n=="object"&&n==t?this:new K(t)}})}function xt(){return this.__wrapped__}r=r?$.defaults(n.Object(),r,$.pick(n,b)):n;var Ot=r.Array,Et=r.Boolean,St=r.Date,At=r.Function,It=r.Math,Pt=r.Number,Nt=r.Object,$t=r.RegExp,qt=r.String,Bt=r.TypeError,Ft=Ot(),Rt=Nt(),Tt=r._,Dt=$t("^"+qt(Rt.valueOf).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),zt=It.ceil,Lt=r.clearTimeout,Kt=Ft.concat,Mt=It.floor,Ut=Dt.test(Ut=Nt.getPrototypeOf)&&Ut,Vt=Rt.hasOwnProperty,Gt=Ft.push,Ht=r.setImmediate,Jt=r.setTimeout,Qt=Rt.toString,Wt=Dt.test(Wt=V.bind)&&Wt,Xt=Dt.test(Xt=Ot.isArray)&&Xt,Yt=r.isFinite,Zt=r.isNaN,ne=Dt.test(ne=Nt.keys)&&ne,te=It.max,ee=It.min,re=r.parseInt,ue=It.random,It=Dt.test(r.attachEvent),ae=Wt&&!/\n|true/.test(Wt+It),oe={};
oe[w]=Ot,oe[j]=Et,oe[k]=St,oe[E]=Nt,oe[O]=Pt,oe[S]=$t,oe[A]=qt;var ie=a.support={};(function(){var n=function(){this.x=1},t={0:1,length:1},e=[];n.prototype={valueOf:1,y:1};for(var r in new n)e.push(r);for(r in arguments);ie.argsObject=arguments.constructor==Nt,ie.argsClass=H(arguments),ie.enumPrototypes=n.propertyIsEnumerable("prototype"),ie.fastBind=Wt&&!ae,ie.ownLast="x"!=e[0],ie.nonEnumArgs=0!=r,ie.nonEnumShadows=!/valueOf/.test(e),ie.spliceObjects=(Ft.splice.call(t,0,1),!t[0]),ie.unindexedChars="xx"!="x"[0]+Nt("x")[0];
-try{ie.nodeClass=!(Qt.call(document)==E&&!qt({toString:0}))}catch(u){ie.nodeClass=!0}})(1),a.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:g,variable:"",imports:{_:a}};var Et={a:"q,w,g",h:"var a=arguments,b=0,c=typeof g=='number'?2:a.length;while(++b<c){m=a[b];if(m&&r[typeof m]){",f:"if(typeof u[i]=='undefined')u[i]=m[i]",c:"}}"},Pt={a:"e,d,x",h:"d=d&&typeof x=='undefined'?d:p.createCallback(d,x)",b:"typeof n=='number'",f:"if(d(m[i],i,e)===false)return u"},It={h:"if(!r[typeof m])return u;"+Pt.h,b:!1},fe=T(Pt);
-K.prototype=a.prototype;var ce=T({a:"q",e:"[]",h:"if(!(r[typeof q]))return u",f:"u.push(i)",b:!1});ie.argsClass||(H=function(n){return n?Vt.call(n,"callee"):!1});var le=Xt||function(n){return ie.argsObject&&n instanceof Ot||Qt.call(n)==w},pe=ne?function(n){return Z(n)?ie.enumPrototypes&&typeof n=="function"||ie.nonEnumArgs&&n.length&&H(n)?ce(n):ne(n):[]}:ce,se={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ve=W(se),ge=T(Et,{h:Et.h.replace(";",";if(c>3&&typeof a[c-2]=='function'){var d=p.createCallback(a[--c-1],a[c--],2);}else if(c>2&&typeof a[c-1]=='function'){d=a[--c];}"),f:"u[i]=d?d(u[i],m[i]):m[i]"}),he=T(Et),ye=T(Pt,It,{i:!1}),me=T(Pt,It);
+try{ie.nodeClass=!(Qt.call(document)==E&&!({toString:0}+""))}catch(u){ie.nodeClass=!0}})(1),a.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:g,variable:"",imports:{_:a}},Et={a:"q,w,g",h:"var a=arguments,b=0,c=typeof g=='number'?2:a.length;while(++b<c){m=a[b];if(m&&r[typeof m]){",f:"if(typeof u[i]=='undefined')u[i]=m[i]",c:"}}"},Pt={a:"e,d,x",h:"d=d&&typeof x=='undefined'?d:p.createCallback(d,x)",b:"typeof n=='number'",f:"if(d(m[i],i,e)===false)return u"},It={h:"if(!r[typeof m])return u;"+Pt.h,b:!1},K.prototype=a.prototype,ie.argsClass||(H=function(n){return n?Vt.call(n,"callee"):!1
+});var fe=Xt||function(n){return ie.argsObject&&n instanceof Ot||Qt.call(n)==w},ce=T({a:"q",e:"[]",h:"if(!(r[typeof q]))return u",f:"u.push(i)",b:!1}),le=ne?function(n){return Z(n)?ie.enumPrototypes&&typeof n=="function"||ie.nonEnumArgs&&n.length&&H(n)?ce(n):ne(n):[]}:ce,pe=T(Pt),se={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ve=W(se),ge=T(Et,{h:Et.h.replace(";",";if(c>3&&typeof a[c-2]=='function'){var d=p.createCallback(a[--c-1],a[c--],2);}else if(c>2&&typeof a[c-1]=='function'){d=a[--c];}"),f:"u[i]=d?d(u[i],m[i]):m[i]"}),he=T(Et),ye=T(Pt,It,{i:!1}),me=T(Pt,It);
Y(/x/)&&(Y=function(n){return n instanceof At||Qt.call(n)==x});var de=Ut?function(n){if(!n||Qt.call(n)!=E||!ie.argsClass&&H(n))return!1;var t=n.valueOf,e=typeof t=="function"&&(e=Ut(t))&&Ut(e);return e?n==e||Ut(n)==e:U(n)}:U;return ae&&u&&typeof Ht=="function"&&(wt=Ct(Ht,r)),Ht=8==re("08")?re:function(n,t){return re(tt(n)?n.replace(h,""):n,t||0)},a.after=function(n,t){return 1>n?t():function(){return 1>--n?t.apply(this,arguments):void 0}},a.assign=ge,a.at=function(n){var t=-1,e=Kt.apply(Ft,V(arguments,1)),r=e.length,u=Ot(r);
for(ie.unindexedChars&&tt(n)&&(n=n.split(""));++t<r;)u[t]=n[e[t]];return u},a.bind=Ct,a.bindAll=function(n){for(var t=Kt.apply(Ft,arguments),e=1<t.length?0:(t=Q(n),-1),r=t.length;++e<r;){var u=t[e];n[u]=Ct(n[u],n)}return n},a.bindKey=function(n,t){return R(n,t,V(arguments,2),i)},a.compact=function(n){for(var t=-1,e=n?n.length:0,r=[];++t<e;){var u=n[t];u&&r.push(u)}return r},a.compose=function(){var n=arguments;return function(){for(var t=arguments,e=n.length;e--;)t=[n[e].apply(this,t)];return t[0]
-}},a.countBy=function(n,t,e){var r={};return t=a.createCallback(t,e),ft(n,function(n,e,u){e=qt(t(n,e,u)),Vt.call(r,e)?r[e]++:r[e]=1}),r},a.createCallback=function(n,t,e){if(null==n)return jt;var r=typeof n;if("function"!=r){if("object"!=r)return function(t){return t[n]};var u=pe(n);return function(t){for(var e=u.length,r=!1;e--&&(r=X(t[u[e]],n[u[e]],i)););return r}}return typeof t!="undefined"?1===e?function(e){return n.call(t,e)}:2===e?function(e,r){return n.call(t,e,r)}:4===e?function(e,r,u,a){return n.call(t,e,r,u,a)
+}},a.countBy=function(n,t,e){var r={};return t=a.createCallback(t,e),ft(n,function(n,e,u){e=qt(t(n,e,u)),Vt.call(r,e)?r[e]++:r[e]=1}),r},a.createCallback=function(n,t,e){if(null==n)return jt;var r=typeof n;if("function"!=r){if("object"!=r)return function(t){return t[n]};var u=le(n);return function(t){for(var e=u.length,r=!1;e--&&(r=X(t[u[e]],n[u[e]],i)););return r}}return typeof t!="undefined"?1===e?function(e){return n.call(t,e)}:2===e?function(e,r){return n.call(t,e,r)}:4===e?function(e,r,u,a){return n.call(t,e,r,u,a)
}:function(e,r,u){return n.call(t,e,r,u)}:n},a.debounce=function(n,t,e){function r(){i=null,e||(a=n.apply(o,u))}var u,a,o,i;return function(){var f=e&&!i;return u=arguments,o=this,Lt(i),i=Jt(r,t),f&&(a=n.apply(o,u)),a}},a.defaults=he,a.defer=wt,a.delay=function(n,t){var r=V(arguments,2);return Jt(function(){n.apply(e,r)},t)},a.difference=function(n){for(var t=-1,e=n?n.length:0,r=Kt.apply(Ft,arguments),r=q(r,e,100),u=[];++t<e;){var a=n[t];r(a)||u.push(a)}return u},a.filter=ot,a.flatten=ht,a.forEach=ft,a.forIn=ye,a.forOwn=me,a.functions=Q,a.groupBy=function(n,t,e){var r={};
return t=a.createCallback(t,e),ft(n,function(n,e,u){e=qt(t(n,e,u)),(Vt.call(r,e)?r[e]:r[e]=[]).push(n)}),r},a.initial=function(n,t,e){if(!n)return[];var r=0,u=n.length;if(typeof t!="number"&&null!=t){var o=u;for(t=a.createCallback(t,e);o--&&t(n[o],o,n);)r++}else r=null==t||e?1:t||r;return V(n,0,ee(te(0,u-r),u))},a.intersection=function(n){var t=arguments,e=t.length,r={0:{}},u=-1,a=n?n.length:0,o=100<=a,i=[],f=i;n:for(;++u<a;){var c=n[u];if(o)var l=qt(c),l=Vt.call(r[0],l)?!(f=r[0][l]):f=r[0][l]=[];
-if(l||0>yt(f,c)){o&&f.push(c);for(var p=e;--p;)if(!(r[p]||(r[p]=q(t[p],0,100)))(c))continue n;i.push(c)}}return i},a.invert=W,a.invoke=function(n,t){var e=V(arguments,2),r=-1,u=typeof t=="function",a=n?n.length:0,o=Ot(typeof a=="number"?a:0);return ft(n,function(n){o[++r]=(u?t:n[t]).apply(n,e)}),o},a.keys=pe,a.map=ct,a.max=lt,a.memoize=function(n,t){var e={};return function(){var r=qt(t?t.apply(this,arguments):arguments[0]);return Vt.call(e,r)?e[r]:e[r]=n.apply(this,arguments)}},a.merge=et,a.min=function(n,t,e){var r=1/0,u=r;
-if(!t&&le(n)){e=-1;for(var o=n.length;++e<o;){var i=n[e];i<u&&(u=i)}}else t=!t&&tt(n)?B:a.createCallback(t,e),fe(n,function(n,e,a){e=t(n,e,a),e<r&&(r=e,u=n)});return u},a.omit=function(n,t,e){var r=typeof t=="function",u={};if(r)t=a.createCallback(t,e);else var o=Kt.apply(Ft,arguments);return ye(n,function(n,e,a){(r?!t(n,e,a):0>yt(o,e,1))&&(u[e]=n)}),u},a.once=function(n){var t,e;return function(){return t?e:(t=!0,e=n.apply(this,arguments),n=null,e)}},a.pairs=function(n){for(var t=-1,e=pe(n),r=e.length,u=Ot(r);++t<r;){var a=e[t];
+if(l||0>yt(f,c)){o&&f.push(c);for(var p=e;--p;)if(!(r[p]||(r[p]=q(t[p],0,100)))(c))continue n;i.push(c)}}return i},a.invert=W,a.invoke=function(n,t){var e=V(arguments,2),r=-1,u=typeof t=="function",a=n?n.length:0,o=Ot(typeof a=="number"?a:0);return ft(n,function(n){o[++r]=(u?t:n[t]).apply(n,e)}),o},a.keys=le,a.map=ct,a.max=lt,a.memoize=function(n,t){var e={};return function(){var r=qt(t?t.apply(this,arguments):arguments[0]);return Vt.call(e,r)?e[r]:e[r]=n.apply(this,arguments)}},a.merge=et,a.min=function(n,t,e){var r=1/0,u=r;
+if(!t&&fe(n)){e=-1;for(var o=n.length;++e<o;){var i=n[e];i<u&&(u=i)}}else t=!t&&tt(n)?B:a.createCallback(t,e),pe(n,function(n,e,a){e=t(n,e,a),e<r&&(r=e,u=n)});return u},a.omit=function(n,t,e){var r=typeof t=="function",u={};if(r)t=a.createCallback(t,e);else var o=Kt.apply(Ft,arguments);return ye(n,function(n,e,a){(r?!t(n,e,a):0>yt(o,e,1))&&(u[e]=n)}),u},a.once=function(n){var t,e;return function(){return t?e:(t=!0,e=n.apply(this,arguments),n=null,e)}},a.pairs=function(n){for(var t=-1,e=le(n),r=e.length,u=Ot(r);++t<r;){var a=e[t];
u[t]=[a,n[a]]}return u},a.partial=function(n){return R(n,V(arguments,1))},a.partialRight=function(n){return R(n,V(arguments,1),null,i)},a.pick=function(n,t,e){var r={};if(typeof t!="function")for(var u=0,o=Kt.apply(Ft,arguments),i=Z(n)?o.length:0;++u<i;){var f=o[u];f in n&&(r[f]=n[f])}else t=a.createCallback(t,e),ye(n,function(n,e,u){t(n,e,u)&&(r[e]=n)});return r},a.pluck=ct,a.range=function(n,t,e){n=+n||0,e=+e||1,null==t&&(t=n,n=0);var r=-1;t=te(0,zt((t-n)/e));for(var u=Ot(t);++r<t;)u[r]=n,n+=e;
return u},a.reject=function(n,t,e){return t=a.createCallback(t,e),ot(n,function(n,e,r){return!t(n,e,r)})},a.rest=mt,a.shuffle=function(n){var t=-1,e=n?n.length:0,r=Ot(typeof e=="number"?e:0);return ft(n,function(n){var e=Mt(ue()*(++t+1));r[t]=r[e],r[e]=n}),r},a.sortBy=function(n,t,e){var r=-1,u=n?n.length:0,o=Ot(typeof u=="number"?u:0);for(t=a.createCallback(t,e),ft(n,function(n,e,u){o[++r]={a:t(n,e,u),b:r,c:n}}),u=o.length,o.sort(F);u--;)o[u]=o[u].c;return o},a.tap=function(n,t){return t(n),n},a.throttle=function(n,t){function e(){i=new St,o=null,u=n.apply(a,r)
}var r,u,a,o,i=0;return function(){var f=new St,c=t-(f-i);return r=arguments,a=this,0<c?o||(o=Jt(e,c)):(Lt(o),o=null,i=f,u=n.apply(a,r)),u}},a.times=function(n,t,e){n=-1<(n=+n)?n:0;var r=-1,u=Ot(n);for(t=a.createCallback(t,e,1);++r<n;)u[r]=t(r);return u},a.toArray=function(n){return n&&typeof n.length=="number"?ie.unindexedChars&&tt(n)?n.split(""):V(n):rt(n)},a.union=function(){return bt(Kt.apply(Ft,arguments))},a.uniq=bt,a.values=rt,a.where=ot,a.without=function(n){for(var t=-1,e=n?n.length:0,r=q(arguments,1,30),u=[];++t<e;){var a=n[t];
r(a)||u.push(a)}return u},a.wrap=function(n,t){return function(){var e=[n];return Gt.apply(e,arguments),t.apply(this,e)}},a.zip=function(n){for(var t=-1,e=n?lt(ct(arguments,"length")):0,r=Ot(e);++t<e;)r[t]=ct(arguments,t);return r},a.zipObject=_t,a.collect=ct,a.drop=mt,a.each=ft,a.extend=ge,a.methods=Q,a.object=_t,a.select=ot,a.tail=mt,a.unique=bt,kt(a),a.clone=J,a.cloneDeep=function(n,t,e){return J(n,!0,t,e)},a.contains=ut,a.escape=function(n){return null==n?"":qt(n).replace(m,z)},a.every=at,a.find=it,a.findIndex=function(n,t,e){var r=-1,u=n?n.length:0;
-for(t=a.createCallback(t,e);++r<u;)if(t(n[r],r,n))return r;return-1},a.findKey=function(n,t,e){var r;return t=a.createCallback(t,e),me(n,function(n,e,u){return t(n,e,u)?(r=e,!1):void 0}),r},a.has=function(n,t){return n?Vt.call(n,t):!1},a.identity=jt,a.indexOf=yt,a.isArguments=H,a.isArray=le,a.isBoolean=function(n){return!0===n||!1===n||Qt.call(n)==j},a.isDate=function(n){return n instanceof St||Qt.call(n)==k},a.isElement=function(n){return n?1===n.nodeType:!1},a.isEmpty=function(n){var t=!0;if(!n)return t;
+for(t=a.createCallback(t,e);++r<u;)if(t(n[r],r,n))return r;return-1},a.findKey=function(n,t,e){var r;return t=a.createCallback(t,e),me(n,function(n,e,u){return t(n,e,u)?(r=e,!1):void 0}),r},a.has=function(n,t){return n?Vt.call(n,t):!1},a.identity=jt,a.indexOf=yt,a.isArguments=H,a.isArray=fe,a.isBoolean=function(n){return!0===n||!1===n||Qt.call(n)==j},a.isDate=function(n){return n instanceof St||Qt.call(n)==k},a.isElement=function(n){return n?1===n.nodeType:!1},a.isEmpty=function(n){var t=!0;if(!n)return t;
var e=Qt.call(n),r=n.length;return e==w||e==A||(ie.argsClass?e==C:H(n))||e==E&&typeof r=="number"&&Y(n.splice)?!r:(me(n,function(){return t=!1}),t)},a.isEqual=X,a.isFinite=function(n){return Yt(n)&&!Zt(parseFloat(n))},a.isFunction=Y,a.isNaN=function(n){return nt(n)&&n!=+n},a.isNull=function(n){return null===n},a.isNumber=nt,a.isObject=Z,a.isPlainObject=de,a.isRegExp=function(n){return n instanceof $t||Qt.call(n)==S},a.isString=tt,a.isUndefined=function(n){return typeof n=="undefined"},a.lastIndexOf=function(n,t,e){var r=n?n.length:0;
-for(typeof e=="number"&&(r=(0>e?te(0,r+e):ee(e,r-1))+1);r--;)if(n[r]===t)return r;return-1},a.mixin=kt,a.noConflict=function(){return r._=Tt,this},a.parseInt=Ht,a.random=function(n,t){return null==n&&null==t&&(t=1),n=+n||0,null==t&&(t=n,n=0),n+Mt(ue()*((+t||0)-n+1))},a.reduce=pt,a.reduceRight=st,a.result=function(n,t){var r=n?n[t]:e;return Y(r)?n[t]():r},a.runInContext=t,a.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:pe(n).length},a.some=vt,a.sortedIndex=dt,a.template=function(n,t,r){var u=a.templateSettings;
-n||(n=""),r=he({},r,u);var o,i=he({},r.imports,u.imports),u=pe(i),i=rt(i),p=0,v=r.interpolate||y,h="__p+='",v=$t((r.escape||y).source+"|"+v.source+"|"+(v===g?s:y).source+"|"+(r.evaluate||y).source+"|$","g");n.replace(v,function(t,e,r,u,a,i){return r||(r=u),h+=n.slice(p,i).replace(d,D),e&&(h+="'+__e("+e+")+'"),a&&(o=!0,h+="';"+a+";__p+='"),r&&(h+="'+((__t=("+r+"))==null?'':__t)+'"),p=i+t.length,t}),h+="';\n",v=r=r.variable,v||(r="obj",h="with("+r+"){"+h+"}"),h=(o?h.replace(f,""):h).replace(c,"$1").replace(l,"$1;"),h="function("+r+"){"+(v?"":r+"||("+r+"={});")+"var __t,__p='',__e=_.escape"+(o?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+h+"return __p}";
+for(typeof e=="number"&&(r=(0>e?te(0,r+e):ee(e,r-1))+1);r--;)if(n[r]===t)return r;return-1},a.mixin=kt,a.noConflict=function(){return r._=Tt,this},a.parseInt=Ht,a.random=function(n,t){return null==n&&null==t&&(t=1),n=+n||0,null==t&&(t=n,n=0),n+Mt(ue()*((+t||0)-n+1))},a.reduce=pt,a.reduceRight=st,a.result=function(n,t){var r=n?n[t]:e;return Y(r)?n[t]():r},a.runInContext=t,a.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:le(n).length},a.some=vt,a.sortedIndex=dt,a.template=function(n,t,r){var u=a.templateSettings;
+n||(n=""),r=he({},r,u);var o,i=he({},r.imports,u.imports),u=le(i),i=rt(i),p=0,v=r.interpolate||y,h="__p+='",v=$t((r.escape||y).source+"|"+v.source+"|"+(v===g?s:y).source+"|"+(r.evaluate||y).source+"|$","g");n.replace(v,function(t,e,r,u,a,i){return r||(r=u),h+=n.slice(p,i).replace(d,D),e&&(h+="'+__e("+e+")+'"),a&&(o=!0,h+="';"+a+";__p+='"),r&&(h+="'+((__t=("+r+"))==null?'':__t)+'"),p=i+t.length,t}),h+="';\n",v=r=r.variable,v||(r="obj",h="with("+r+"){"+h+"}"),h=(o?h.replace(f,""):h).replace(c,"$1").replace(l,"$1;"),h="function("+r+"){"+(v?"":r+"||("+r+"={});")+"var __t,__p='',__e=_.escape"+(o?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+h+"return __p}";
try{var m=At(u,"return "+h).apply(e,i)}catch(b){throw b.source=h,b}return t?m(t):(m.source=h,m)},a.unescape=function(n){return null==n?"":qt(n).replace(p,G)},a.uniqueId=function(n){var t=++o;return qt(null==n?"":n)+t},a.all=at,a.any=vt,a.detect=it,a.foldl=pt,a.foldr=st,a.include=ut,a.inject=pt,me(a,function(n,t){a.prototype[t]||(a.prototype[t]=function(){var t=[this.__wrapped__];return Gt.apply(t,arguments),n.apply(a,t)})}),a.first=gt,a.last=function(n,t,e){if(n){var r=0,u=n.length;if(typeof t!="number"&&null!=t){var o=u;
-for(t=a.createCallback(t,e);o--&&t(n[o],o,n);)r++}else if(r=t,null==r||e)return n[u-1];return V(n,te(0,u-r))}},a.take=gt,a.head=gt,me(a,function(n,t){a.prototype[t]||(a.prototype[t]=function(t,e){var r=n(this.__wrapped__,t,e);return null==t||e&&typeof t!="function"?r:new K(r)})}),a.VERSION="1.0.1",a.prototype.toString=function(){return qt(this.__wrapped__)},a.prototype.value=xt,a.prototype.valueOf=xt,fe(["join","pop","shift"],function(n){var t=Ft[n];a.prototype[n]=function(){return t.apply(this.__wrapped__,arguments)
-}}),fe(["push","reverse","sort","unshift"],function(n){var t=Ft[n];a.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),fe(["concat","slice","splice"],function(n){var t=Ft[n];a.prototype[n]=function(){return new K(t.apply(this.__wrapped__,arguments))}}),ie.spliceObjects||fe(["pop","shift","splice"],function(n){var t=Ft[n],e="splice"==n;a.prototype[n]=function(){var n=this.__wrapped__,r=t.apply(n,arguments);return 0===n.length&&delete n[0],e?new K(r):r}}),a}var e,r=typeof exports=="object"&&exports,u=typeof module=="object"&&module&&module.exports==r&&module,a=typeof global=="object"&&global;
+for(t=a.createCallback(t,e);o--&&t(n[o],o,n);)r++}else if(r=t,null==r||e)return n[u-1];return V(n,te(0,u-r))}},a.take=gt,a.head=gt,me(a,function(n,t){a.prototype[t]||(a.prototype[t]=function(t,e){var r=n(this.__wrapped__,t,e);return null==t||e&&typeof t!="function"?r:new K(r)})}),a.VERSION="1.0.1",a.prototype.toString=function(){return qt(this.__wrapped__)},a.prototype.value=xt,a.prototype.valueOf=xt,pe(["join","pop","shift"],function(n){var t=Ft[n];a.prototype[n]=function(){return t.apply(this.__wrapped__,arguments)
+}}),pe(["push","reverse","sort","unshift"],function(n){var t=Ft[n];a.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),pe(["concat","slice","splice"],function(n){var t=Ft[n];a.prototype[n]=function(){return new K(t.apply(this.__wrapped__,arguments))}}),ie.spliceObjects||pe(["pop","shift","splice"],function(n){var t=Ft[n],e="splice"==n;a.prototype[n]=function(){var n=this.__wrapped__,r=t.apply(n,arguments);return 0===n.length&&delete n[0],e?new K(r):r}}),a}var e,r=typeof exports=="object"&&exports,u=typeof module=="object"&&module&&module.exports==r&&module,a=typeof global=="object"&&global;
a.global===a&&(n=a);var o=0,i={},f=/\b__p\+='';/g,c=/\b(__p\+=)''\+/g,l=/(__e\(.*?\)|\b__t\))\+'';/g,p=/&(?:amp|lt|gt|quot|#39);/g,s=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,v=/\w*$/,g=/<%=([\s\S]+?)%>/g,h=/^0+(?=.$)/,y=/($^)/,m=/[&<>"']/g,d=/['\n\r\t\u2028\u2029\\]/g,b="Array Boolean Date Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout".split(" "),_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),C="[object Arguments]",w="[object Array]",j="[object Boolean]",k="[object Date]",x="[object Function]",O="[object Number]",E="[object Object]",S="[object RegExp]",A="[object String]",I={};
I[x]=!1,I[C]=I[w]=I[j]=I[k]=I[O]=I[E]=I[S]=I[A]=!0;var P={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},N={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"},$=t();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=$,define(function(){return $})):r&&!r.nodeType?u?(u.exports=$)._=$:r._=$:n._=$})(this);
View
50 dist/lodash.js
@@ -615,19 +615,6 @@
}
/**
- * Checks if `value` is a DOM node in IE < 9.
- *
- * @private
- * @param {Mixed} value The value to check.
- * @returns {Boolean} Returns `true` if the `value` is a DOM node, else `false`.
- */
- function isNode(value) {
- // IE < 9 presents DOM nodes as `Object` objects except they have `toString`
- // methods that are `typeof` "string" and still can coerce nodes to strings
- return typeof value.toString != 'function' && typeof String(value) == 'string';
- }
-
- /**
* A fast path for creating `lodash` wrapper objects.
*
* @private
@@ -667,7 +654,8 @@
}
// check that the constructor is `Object` (i.e. `Object instanceof Object`)
var ctor = value.constructor;
- if ((!isFunction(ctor)) || ctor instanceof ctor) {
+
+ if (isFunction(ctor) ? ctor instanceof ctor : (support.nodeClass || !isNode(value))) {
// In most environments an object's own properties are iterated before
// its inherited properties. If the last iterated property is an object's
// own property then there are no inherited enumerable properties.
@@ -680,23 +668,6 @@
}
/**
- * A fallback implementation of `Object.keys` that produces an array of the
- * given object's own enumerable property names.
- *
- * @private
- * @type Function
- * @param {Object} object The object to inspect.
- * @returns {Array} Returns a new array of property names.
- */
- var shimKeys = createIterator({
- 'args': 'object',
- 'init': '[]',
- 'top': 'if (!(objectTypes[typeof object])) return result',
- 'loop': 'result.push(index)',
- 'arrays': false
- });
-
- /**
* Slices the `collection` from the `start` index up to, but not including,
* the `end` index.
*
@@ -780,6 +751,23 @@
};
/**
+ * A fallback implementation of `Object.keys` that produces an array of the
+ * given object's own enumerable property names.
+ *
+ * @private
+ * @type Function
+ * @param {Object} object The object to inspect.
+ * @returns {Array} Returns a new array of property names.
+ */
+ var shimKeys = createIterator({
+ 'args': 'object',
+ 'init': '[]',
+ 'top': 'if (!(objectTypes[typeof object])) return result',
+ 'loop': 'result.push(index)',
+ 'arrays': false
+ });
+
+ /**
* Creates an array composed of the own enumerable property names of `object`.
*
* @static
View
45 dist/lodash.legacy.js
@@ -342,7 +342,7 @@
* @type Boolean
*/
try {
- support.nodeClass = !(toString.call(document) == objectClass && !String({ 'toString': 0 }));
+ support.nodeClass = !(toString.call(document) == objectClass && !({ 'toString': 0 } + ''));
} catch(e) {
support.nodeClass = true;
}
@@ -464,9 +464,9 @@
if (support.enumPrototypes || obj.useHas) {
__p += '\n }';
}
- __p += '\n } ';
+ __p += '\n } ';
if (support.nonEnumShadows) {
- __p += '\n\n var ctor = iterable.constructor;\n ';
+ __p += '\n\n var ctor = iterable.constructor;\n ';
for (var k = 0; k < 7; k++) {
__p += '\n index = \'' +
(obj.shadowedProps[k]) +
@@ -476,7 +476,7 @@
}
__p += 'hasOwnProperty.call(iterable, index)) {\n ' +
(obj.loop) +
- '\n } ';
+ '\n } ';
}
}
@@ -706,22 +706,6 @@
}
/**
- * A function compiled to iterate `arguments` objects, arrays, objects, and
- * strings consistenly across environments, 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`.
- *
- * @private
- * @type Function
- * @param {Array|Object|String} collection The collection to iterate over.
- * @param {Function} [callback=identity] The function called per iteration.
- * @param {Mixed} [thisArg] The `this` binding of `callback`.
- * @returns {Array|Object|String} Returns `collection`.
- */
- var each = createIterator(eachIteratorOptions);
-
- /**
* Used by `template` to escape characters for inclusion in compiled
* string literals.
*
@@ -754,7 +738,7 @@
function isNode(value) {
// IE < 9 presents DOM nodes as `Object` objects except they have `toString`
// methods that are `typeof` "string" and still can coerce nodes to strings
- return typeof value.toString != 'function' && typeof String(value) == 'string';
+ return typeof value.toString != 'function' && typeof (value + '') == 'string';
}
/**
@@ -797,7 +781,8 @@
}
// check that the constructor is `Object` (i.e. `Object instanceof Object`)
var ctor = value.constructor;
- if ((!isFunction(ctor) && (support.nodeClass || !isNode(value))) || ctor instanceof ctor) {
+
+ if (isFunction(ctor) ? ctor instanceof ctor : (support.nodeClass || !isNode(value))) {
// IE < 9 iterates inherited properties before own properties. If the first
// iterated property is an object's own property then there are no inherited
// enumerable properties.
@@ -924,6 +909,22 @@
});
/**
+ * A function compiled to iterate `arguments` objects, arrays, objects, and
+ * strings consistenly across environments, 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`.
+ *
+ * @private
+ * @type Function
+ * @param {Array|Object|String} collection The collection to iterate over.
+ * @param {Function} [callback=identity] The function called per iteration.
+ * @param {Mixed} [thisArg] The `this` binding of `callback`.
+ * @returns {Array|Object|String} Returns `collection`.
+ */
+ var each = createIterator(eachIteratorOptions);
+
+ /**
* Used to convert characters to HTML entities:
*
* Though the `>` character is escaped for symmetry, characters like `>` and `/`
View
42 dist/lodash.legacy.min.js
@@ -4,42 +4,42 @@
* Build: `lodash legacy -o ./dist/lodash.legacy.js`
* Underscore.js 1.4.4 underscorejs.org/LICENSE
*/
-;(function(n){function t(r){function u(n){return n&&typeof n=="object"&&!Zt(n)&&zt.call(n,"__wrapped__")?n:new L(n)}function a(n,t,e){var r=n.length,u=r-t>=e;if(u){var a={};for(e=t-1;++e<r;){var o=Nt(n[e]);(zt.call(a,o)?a[o]:a[o]=[]).push(n[e])}}return function(e){if(u){var r=Nt(e);return zt.call(a,r)&&-1<gt(a[r],e)}return-1<gt(n,e,t)}}function F(n){return n.charCodeAt(0)}function B(n,t){var e=n.b,r=t.b;if(n=n.a,t=t.a,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1
+;(function(n){function t(r){function u(n){return n&&typeof n=="object"&&!Yt(n)&&zt.call(n,"__wrapped__")?n:new L(n)}function a(n,t,e){var r=n.length,u=r-t>=e;if(u){var a={};for(e=t-1;++e<r;){var o=Nt(n[e]);(zt.call(a,o)?a[o]:a[o]=[]).push(n[e])}}return function(e){if(u){var r=Nt(e);return zt.call(a,r)&&-1<gt(a[r],e)}return-1<gt(n,e,t)}}function F(n){return n.charCodeAt(0)}function B(n,t){var e=n.b,r=t.b;if(n=n.a,t=t.a,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1
}return e<r?-1:1}function R(n,t,e,r){function u(){var r=arguments,c=o?this:t;return a||(n=t[i]),e.length&&(r=r.length?(r=M(r),f?r.concat(e):e.concat(r)):e),this instanceof u?(K.prototype=n.prototype,c=new K,K.prototype=null,r=n.apply(c,r),X(r)?r:c):n.apply(c,r)}var a=W(n),o=!e,i=t;if(o){var f=r;e=t}else if(!a){if(!r)throw new Pt;t=n}return u}function T(){for(var n,t={g:_,b:"k(m)",c:"",e:"m",f:"",h:"",i:!0},e=0;n=arguments[e];e++)for(var r in n)t[r]=n[r];if(n=t.a,t.d=/^[^,]+/.exec(n)[0],e=Ot,r="var i,m="+t.d+",u="+t.e+";if(!m)return u;"+t.h+";",t.b?(r+="var n=m.length;i=-1;if("+t.b+"){",Xt.unindexedChars&&(r+="if(l(m)){m=m.split('')}"),r+="while(++i<n){"+t.f+"}}else{"):Xt.nonEnumArgs&&(r+="var n=m.length;i=-1;if(n&&j(m)){while(++i<n){i+='';"+t.f+"}}else{"),Xt.enumPrototypes&&(r+="var v=typeof m=='function';"),r+="for(i in m){",(Xt.enumPrototypes||t.i)&&(r+="if(",Xt.enumPrototypes&&(r+="!(v&&i=='prototype')"),Xt.enumPrototypes&&t.i&&(r+="&&"),t.i&&(r+="h.call(m,i)"),r+="){"),r+=t.f+";",(Xt.enumPrototypes||t.i)&&(r+="}"),r+="}",Xt.nonEnumShadows){r+="var f=m.constructor;";
-for(var a=0;7>a;a++)r+="i='"+t.g[a]+"';if(","constructor"==t.g[a]&&(r+="!(f&&f.prototype===m)&&"),r+="h.call(m,i)){"+t.f+"}"}return(t.b||Xt.nonEnumArgs)&&(r+="}"),r+=t.c+";return u",e("h,j,k,l,o,p,r","return function("+n+"){"+r+"}")(zt,V,Zt,Z,ne,u,N)}function $(n){return"\\"+P[n]}function D(n){return te[n]}function z(n){return typeof n.toString!="function"&&typeof Nt=="string"(n)}function L(n){this.__wrapped__=n}function K(){}function M(n,t,e){t||(t=0),typeof e=="undefined"&&(e=n?n.length:0);var r=-1;
-e=e-t||0;for(var u=jt(0>e?0:e);++r<e;)u[r]=n[t+r];return u}function U(n){return ee[n]}function V(n){return n?zt.call(n,"callee"):!1}function G(n,t,r,a,o,i){var f=n;if(typeof t=="function"&&(a=r,r=t,t=!1),typeof r=="function"){if(r=typeof a=="undefined"?r:u.createCallback(r,a,1),f=r(f),typeof f!="undefined")return f;f=n}if(a=X(f)){var c=Mt.call(f);if(!I[c]||!Xt.nodeClass&&z(f))return f;var l=Zt(f)}if(!a||!t)return a?l?M(f):re({},f):f;switch(a=Wt[c],c){case j:case k:return new a(+f);case O:case A:return new a(f);
-case S:return a(f.source,v.exec(f))}for(o||(o=[]),i||(i=[]),c=o.length;c--;)if(o[c]==n)return i[c];return f=l?a(f.length):{},l&&(zt.call(n,"index")&&(f.index=n.index),zt.call(n,"input")&&(f.input=n.input)),o.push(n),i.push(f),(l?ot:oe)(n,function(n,u){f[u]=G(n,t,r,e,o,i)}),f}function H(n){var t=[];return ae(n,function(n,e){W(n)&&t.push(e)}),t.sort()}function J(n){for(var t=-1,e=ne(n),r=e.length,u={};++t<r;){var a=e[t];u[n[a]]=a}return u}function Q(n,t,e,r,a,o){var f=e===i;if(e&&!f){e=typeof r=="undefined"?e:u.createCallback(e,r,2);
+for(var a=0;7>a;a++)r+="i='"+t.g[a]+"';if(","constructor"==t.g[a]&&(r+="!(f&&f.prototype===m)&&"),r+="h.call(m,i)){"+t.f+"}"}return(t.b||Xt.nonEnumArgs)&&(r+="}"),r+=t.c+";return u",e("h,j,k,l,o,p,r","return function("+n+"){"+r+"}")(zt,V,Yt,Z,Zt,u,N)}function $(n){return"\\"+P[n]}function D(n){return te[n]}function z(n){return typeof n.toString!="function"&&typeof(n+"")=="string"}function L(n){this.__wrapped__=n}function K(){}function M(n,t,e){t||(t=0),typeof e=="undefined"&&(e=n?n.length:0);var r=-1;
+e=e-t||0;for(var u=jt(0>e?0:e);++r<e;)u[r]=n[t+r];return u}function U(n){return ee[n]}function V(n){return n?zt.call(n,"callee"):!1}function G(n,t,r,a,o,i){var f=n;if(typeof t=="function"&&(a=r,r=t,t=!1),typeof r=="function"){if(r=typeof a=="undefined"?r:u.createCallback(r,a,1),f=r(f),typeof f!="undefined")return f;f=n}if(a=X(f)){var c=Mt.call(f);if(!I[c]||!Xt.nodeClass&&z(f))return f;var l=Yt(f)}if(!a||!t)return a?l?M(f):re({},f):f;switch(a=Wt[c],c){case j:case k:return new a(+f);case O:case A:return new a(f);
+case S:return a(f.source,v.exec(f))}for(o||(o=[]),i||(i=[]),c=o.length;c--;)if(o[c]==n)return i[c];return f=l?a(f.length):{},l&&(zt.call(n,"index")&&(f.index=n.index),zt.call(n,"input")&&(f.input=n.input)),o.push(n),i.push(f),(l?ot:oe)(n,function(n,u){f[u]=G(n,t,r,e,o,i)}),f}function H(n){var t=[];return ae(n,function(n,e){W(n)&&t.push(e)}),t.sort()}function J(n){for(var t=-1,e=Zt(n),r=e.length,u={};++t<r;){var a=e[t];u[n[a]]=a}return u}function Q(n,t,e,r,a,o){var f=e===i;if(e&&!f){e=typeof r=="undefined"?e:u.createCallback(e,r,2);
var c=e(n,t);if(typeof c!="undefined")return!!c}if(n===t)return 0!==n||1/n==1/t;var l=typeof n,p=typeof t;if(n===n&&(!n||"function"!=l&&"object"!=l)&&(!t||"function"!=p&&"object"!=p))return!1;if(null==n||null==t)return n===t;if(p=Mt.call(n),l=Mt.call(t),p==C&&(p=E),l==C&&(l=E),p!=l)return!1;switch(p){case j:case k:return+n==+t;case O:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case S:case A:return n==Nt(t)}if(l=p==w,!l){if(zt.call(n,"__wrapped__")||zt.call(t,"__wrapped__"))return Q(n.__wrapped__||n,t.__wrapped__||t,e,r,a,o);
if(p!=E||!Xt.nodeClass&&(z(n)||z(t)))return!1;var p=!Xt.argsObject&&V(n)?At:n.constructor,s=!Xt.argsObject&&V(t)?At:t.constructor;if(p!=s&&(!W(p)||!(p instanceof p&&W(s)&&s instanceof s)))return!1}for(a||(a=[]),o||(o=[]),p=a.length;p--;)if(a[p]==n)return o[p]==t;var v=0,c=!0;if(a.push(n),o.push(t),l){if(p=n.length,v=t.length,c=v==n.length,!c&&!f)return c;for(;v--;)if(l=p,s=t[v],f)for(;l--&&!(c=Q(n[l],s,e,r,a,o)););else if(!(c=Q(n[v],s,e,r,a,o)))break;return c}return ae(t,function(t,u,i){return zt.call(i,u)?(v++,c=zt.call(n,u)&&Q(n[u],t,e,r,a,o)):void 0
}),c&&!f&&ae(n,function(n,t,e){return zt.call(e,t)?c=-1<--v:void 0}),c}function W(n){return typeof n=="function"}function X(n){return n?N[typeof n]:!1}function Y(n){return typeof n=="number"||Mt.call(n)==O}function Z(n){return typeof n=="string"||Mt.call(n)==A}function nt(n,t,e){var r=arguments,a=0,o=2;if(!X(n))return n;if(e===i)var f=r[3],c=r[4],l=r[5];else c=[],l=[],typeof e!="number"&&(o=r.length),3<o&&"function"==typeof r[o-2]?f=u.createCallback(r[--o-1],r[o--],2):2<o&&"function"==typeof r[o-1]&&(f=r[--o]);
-for(;++a<o;)(Zt(r[a])?ot:oe)(r[a],function(t,e){var r,u,a=t,o=n[e];if(t&&((u=Zt(t))||ie(t))){for(a=c.length;a--;)if(r=c[a]==t){o=l[a];break}r||(o=u?Zt(o)?o:[]:ie(o)?o:{},f&&(a=f(o,t),typeof a!="undefined"&&(o=a)),c.push(t),l.push(o),f||(o=nt(o,t,i,f,c,l)))}else f&&(a=f(o,t),typeof a=="undefined"&&(a=t)),typeof a!="undefined"&&(o=a);n[e]=o});return n}function tt(n){for(var t=-1,e=ne(n),r=e.length,u=jt(r);++t<r;)u[t]=n[e[t]];return u}function et(n,t,e){var r=-1,u=n?n.length:0,a=!1;return e=(0>e?Gt(0,u+e):e)||0,typeof u=="number"?a=-1<(Z(n)?n.indexOf(t,e):gt(n,t,e)):Yt(n,function(n){return++r<e?void 0:!(a=n===t)
-}),a}function rt(n,t,e){var r=!0;if(t=u.createCallback(t,e),Zt(n)){e=-1;for(var a=n.length;++e<a&&(r=!!t(n[e],e,n)););}else Yt(n,function(n,e,u){return r=!!t(n,e,u)});return r}function ut(n,t,e){var r=[];if(t=u.createCallback(t,e),Zt(n)){e=-1;for(var a=n.length;++e<a;){var o=n[e];t(o,e,n)&&r.push(o)}}else Yt(n,function(n,e,u){t(n,e,u)&&r.push(n)});return r}function at(n,t,e){if(t=u.createCallback(t,e),!Zt(n)){var r;return Yt(n,function(n,e,u){return t(n,e,u)?(r=n,!1):void 0}),r}e=-1;for(var a=n.length;++e<a;){var o=n[e];
-if(t(o,e,n))return o}}function ot(n,t,e){if(t&&typeof e=="undefined"&&Zt(n)){e=-1;for(var r=n.length;++e<r&&!1!==t(n[e],e,n););}else Yt(n,t,e);return n}function it(n,t,e){var r=-1,a=n?n.length:0,o=jt(typeof a=="number"?a:0);if(t=u.createCallback(t,e),Zt(n))for(;++r<a;)o[r]=t(n[r],r,n);else Yt(n,function(n,e,u){o[++r]=t(n,e,u)});return o}function ft(n,t,e){var r=-1/0,a=r;if(!t&&Zt(n)){e=-1;for(var o=n.length;++e<o;){var i=n[e];i>a&&(a=i)}}else t=!t&&Z(n)?F:u.createCallback(t,e),Yt(n,function(n,e,u){e=t(n,e,u),e>r&&(r=e,a=n)
-});return a}function ct(n,t,e,r){var a=3>arguments.length;if(t=u.createCallback(t,r,4),Zt(n)){var o=-1,i=n.length;for(a&&(e=n[++o]);++o<i;)e=t(e,n[o],o,n)}else Yt(n,function(n,r,u){e=a?(a=!1,n):t(e,n,r,u)});return e}function lt(n,t,e,r){var a=n,o=n?n.length:0,i=3>arguments.length;if(typeof o!="number")var f=ne(n),o=f.length;else Xt.unindexedChars&&Z(n)&&(a=n.split(""));return t=u.createCallback(t,r,4),ot(n,function(n,r,u){r=f?f[--o]:--o,e=i?(i=!1,a[r]):t(e,a[r],r,u)}),e}function pt(n,t,e){var r;if(t=u.createCallback(t,e),Zt(n)){e=-1;
-for(var a=n.length;++e<a&&!(r=t(n[e],e,n)););}else Yt(n,function(n,e,u){return!(r=t(n,e,u))});return!!r}function st(n,t,e){if(n){var r=0,a=n.length;if(typeof t!="number"&&null!=t){var o=-1;for(t=u.createCallback(t,e);++o<a&&t(n[o],o,n);)r++}else if(r=t,null==r||e)return n[0];return M(n,0,Ht(Gt(0,r),a))}}function vt(n,t,e,r){var a=-1,o=n?n.length:0,i=[];for(typeof t!="boolean"&&null!=t&&(r=e,e=t,t=!1),null!=e&&(e=u.createCallback(e,r));++a<o;)r=n[a],e&&(r=e(r,a,n)),Zt(r)?Lt.apply(i,t?r:vt(r)):i.push(r);
+for(;++a<o;)(Yt(r[a])?ot:oe)(r[a],function(t,e){var r,u,a=t,o=n[e];if(t&&((u=Yt(t))||ie(t))){for(a=c.length;a--;)if(r=c[a]==t){o=l[a];break}r||(o=u?Yt(o)?o:[]:ie(o)?o:{},f&&(a=f(o,t),typeof a!="undefined"&&(o=a)),c.push(t),l.push(o),f||(o=nt(o,t,i,f,c,l)))}else f&&(a=f(o,t),typeof a=="undefined"&&(a=t)),typeof a!="undefined"&&(o=a);n[e]=o});return n}function tt(n){for(var t=-1,e=Zt(n),r=e.length,u=jt(r);++t<r;)u[t]=n[e[t]];return u}function et(n,t,e){var r=-1,u=n?n.length:0,a=!1;return e=(0>e?Gt(0,u+e):e)||0,typeof u=="number"?a=-1<(Z(n)?n.indexOf(t,e):gt(n,t,e)):ne(n,function(n){return++r<e?void 0:!(a=n===t)
+}),a}function rt(n,t,e){var r=!0;if(t=u.createCallback(t,e),Yt(n)){e=-1;for(var a=n.length;++e<a&&(r=!!t(n[e],e,n)););}else ne(n,function(n,e,u){return r=!!t(n,e,u)});return r}function ut(n,t,e){var r=[];if(t=u.createCallback(t,e),Yt(n)){e=-1;for(var a=n.length;++e<a;){var o=n[e];t(o,e,n)&&r.push(o)}}else ne(n,function(n,e,u){t(n,e,u)&&r.push(n)});return r}function at(n,t,e){if(t=u.createCallback(t,e),!Yt(n)){var r;return ne(n,function(n,e,u){return t(n,e,u)?(r=n,!1):void 0}),r}e=-1;for(var a=n.length;++e<a;){var o=n[e];
+if(t(o,e,n))return o}}function ot(n,t,e){if(t&&typeof e=="undefined"&&Yt(n)){e=-1;for(var r=n.length;++e<r&&!1!==t(n[e],e,n););}else ne(n,t,e);return n}function it(n,t,e){var r=-1,a=n?n.length:0,o=jt(typeof a=="number"?a:0);if(t=u.createCallback(t,e),Yt(n))for(;++r<a;)o[r]=t(n[r],r,n);else ne(n,function(n,e,u){o[++r]=t(n,e,u)});return o}function ft(n,t,e){var r=-1/0,a=r;if(!t&&Yt(n)){e=-1;for(var o=n.length;++e<o;){var i=n[e];i>a&&(a=i)}}else t=!t&&Z(n)?F:u.createCallback(t,e),ne(n,function(n,e,u){e=t(n,e,u),e>r&&(r=e,a=n)
+});return a}function ct(n,t,e,r){var a=3>arguments.length;if(t=u.createCallback(t,r,4),Yt(n)){var o=-1,i=n.length;for(a&&(e=n[++o]);++o<i;)e=t(e,n[o],o,n)}else ne(n,function(n,r,u){e=a?(a=!1,n):t(e,n,r,u)});return e}function lt(n,t,e,r){var a=n,o=n?n.length:0,i=3>arguments.length;if(typeof o!="number")var f=Zt(n),o=f.length;else Xt.unindexedChars&&Z(n)&&(a=n.split(""));return t=u.createCallback(t,r,4),ot(n,function(n,r,u){r=f?f[--o]:--o,e=i?(i=!1,a[r]):t(e,a[r],r,u)}),e}function pt(n,t,e){var r;if(t=u.createCallback(t,e),Yt(n)){e=-1;
+for(var a=n.length;++e<a&&!(r=t(n[e],e,n)););}else ne(n,function(n,e,u){return!(r=t(n,e,u))});return!!r}function st(n,t,e){if(n){var r=0,a=n.length;if(typeof t!="number"&&null!=t){var o=-1;for(t=u.createCallback(t,e);++o<a&&t(n[o],o,n);)r++}else if(r=t,null==r||e)return n[0];return M(n,0,Ht(Gt(0,r),a))}}function vt(n,t,e,r){var a=-1,o=n?n.length:0,i=[];for(typeof t!="boolean"&&null!=t&&(r=e,e=t,t=!1),null!=e&&(e=u.createCallback(e,r));++a<o;)r=n[a],e&&(r=e(r,a,n)),Yt(r)?Lt.apply(i,t?r:vt(r)):i.push(r);
return i}function gt(n,t,e){var r=-1,u=n?n.length:0;if(typeof e=="number")r=(0>e?Gt(0,u+e):e||0)-1;else if(e)return r=yt(n,t),n[r]===t?r:-1;for(;++r<u;)if(n[r]===t)return r;return-1}function ht(n,t,e){if(typeof t!="number"&&null!=t){var r=0,a=-1,o=n?n.length:0;for(t=u.createCallback(t,e);++a<o&&t(n[a],a,n);)r++}else r=null==t||e?1:Gt(0,t);return M(n,r)}function yt(n,t,e,r){var a=0,o=n?n.length:a;for(e=e?u.createCallback(e,r,1):_t,t=e(t);a<o;)r=a+o>>>1,e(n[r])<t?a=r+1:o=r;return a}function mt(n,t,e,r){var a=-1,o=n?n.length:0,i=[],f=i;
typeof t!="boolean"&&null!=t&&(r=e,e=t,t=!1);var c=!t&&75<=o;if(c)var l={};for(null!=e&&(f=[],e=u.createCallback(e,r));++a<o;){r=n[a];var p=e?e(r,a,n):r;if(c)var s=Nt(p),s=zt.call(l,s)?!(f=l[s]):f=l[s]=[];(t?!a||f[f.length-1]!==p:s||0>gt(f,p))&&((e||c)&&f.push(p),i.push(r))}return i}function dt(n,t){for(var e=-1,r=n?n.length:0,u={};++e<r;){var a=n[e];t?u[a]=t[e]:u[a[0]]=a[1]}return u}function bt(n,t){return R(n,t,M(arguments,2))}function _t(n){return n}function Ct(n){ot(H(n),function(t){var e=u[t]=n[t];
u.prototype[t]=function(){var n=this.__wrapped__,t=[n];return Lt.apply(t,arguments),t=e.apply(u,t),n&&typeof n=="object"&&n==t?this:new L(t)}})}function wt(){return this.__wrapped__}r=r?q.defaults(n.Object(),r,q.pick(n,b)):n;var jt=r.Array,kt=r.Boolean,xt=r.Date,Ot=r.Function,Et=r.Math,St=r.Number,At=r.Object,It=r.RegExp,Nt=r.String,Pt=r.TypeError,qt=jt(),Ft=At(),Bt=r._,Rt=Et.ceil,Tt=r.clearTimeout,$t=qt.concat,Dt=Et.floor,zt=Ft.hasOwnProperty,Lt=qt.push,Kt=r.setTimeout,Mt=Ft.toString,Ut=r.isFinite,Vt=r.isNaN,Gt=Et.max,Ht=Et.min,Jt=r.parseInt,Qt=Et.random,Wt={};
-Wt[w]=jt,Wt[j]=kt,Wt[k]=xt,Wt[E]=At,Wt[O]=St,Wt[S]=It,Wt[A]=Nt;var Xt=u.support={};(function(){var n=function(){this.x=1},t={0:1,length:1},e=[];n.prototype={valueOf:1,y:1};for(var r in new n)e.push(r);for(r in arguments);Xt.argsObject=arguments.constructor==At,Xt.argsClass=!1,Xt.enumPrototypes=n.propertyIsEnumerable("prototype"),Xt.ownLast="x"!=e[0],Xt.nonEnumArgs=0!=r,Xt.nonEnumShadows=!/valueOf/.test(e),Xt.spliceObjects=(qt.splice.call(t,0,1),!t[0]),Xt.unindexedChars="xx"!="x"[0]+At("x")[0];try{Xt.nodeClass=!(Mt.call(document)==E&&!Nt({toString:0}))
-}catch(u){Xt.nodeClass=!0}})(1),u.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:g,variable:"",imports:{_:u}};var kt={a:"q,w,g",h:"var a=arguments,b=0,c=typeof g=='number'?2:a.length;while(++b<c){m=a[b];if(m&&r[typeof m]){",f:"if(typeof u[i]=='undefined')u[i]=m[i]",c:"}}"},Et={a:"e,d,x",h:"d=d&&typeof x=='undefined'?d:p.createCallback(d,x)",b:"typeof n=='number'",f:"if(d(m[i],i,e)===false)return u"},St={h:"if(!r[typeof m])return u;"+Et.h,b:!1},Yt=T(Et);L.prototype=u.prototype;
-var Zt=function(n){return Xt.argsObject&&n instanceof jt||Mt.call(n)==w},ne=T({a:"q",e:"[]",h:"if(!(r[typeof q]))return u",f:"u.push(i)",b:!1}),te={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ee=J(te),re=T(kt,{h:kt.h.replace(";",";if(c>3&&typeof a[c-2]=='function'){var d=p.createCallback(a[--c-1],a[c--],2);}else if(c>2&&typeof a[c-1]=='function'){d=a[--c];}"),f:"u[i]=d?d(u[i],m[i]):m[i]"}),ue=T(kt),ae=T(Et,St,{i:!1}),oe=T(Et,St);W(/x/)&&(W=function(n){return n instanceof Ot||Mt.call(n)==x
-});var ie=function(n){var t=!1;if(!n||Mt.call(n)!=E||!Xt.argsClass&&V(n))return t;var e=n.constructor;return!W(e)&&(Xt.nodeClass||!z(n))||e instanceof e?Xt.ownLast?(ae(n,function(n,e,r){return t=zt.call(r,e),!1}),!0===t):(ae(n,function(n,e){t=e}),!1===t||zt.call(n,t)):t},kt=8==Jt("08")?Jt:function(n,t){return Jt(Z(n)?n.replace(h,""):n,t||0)};return u.after=function(n,t){return 1>n?t():function(){return 1>--n?t.apply(this,arguments):void 0}},u.assign=re,u.at=function(n){var t=-1,e=$t.apply(qt,M(arguments,1)),r=e.length,u=jt(r);
+Wt[w]=jt,Wt[j]=kt,Wt[k]=xt,Wt[E]=At,Wt[O]=St,Wt[S]=It,Wt[A]=Nt;var Xt=u.support={};(function(){var n=function(){this.x=1},t={0:1,length:1},e=[];n.prototype={valueOf:1,y:1};for(var r in new n)e.push(r);for(r in arguments);Xt.argsObject=arguments.constructor==At,Xt.argsClass=!1,Xt.enumPrototypes=n.propertyIsEnumerable("prototype"),Xt.ownLast="x"!=e[0],Xt.nonEnumArgs=0!=r,Xt.nonEnumShadows=!/valueOf/.test(e),Xt.spliceObjects=(qt.splice.call(t,0,1),!t[0]),Xt.unindexedChars="xx"!="x"[0]+At("x")[0];try{Xt.nodeClass=!(Mt.call(document)==E&&!({toString:0}+""))
+}catch(u){Xt.nodeClass=!0}})(1),u.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:g,variable:"",imports:{_:u}},kt={a:"q,w,g",h:"var a=arguments,b=0,c=typeof g=='number'?2:a.length;while(++b<c){m=a[b];if(m&&r[typeof m]){",f:"if(typeof u[i]=='undefined')u[i]=m[i]",c:"}}"},Et={a:"e,d,x",h:"d=d&&typeof x=='undefined'?d:p.createCallback(d,x)",b:"typeof n=='number'",f:"if(d(m[i],i,e)===false)return u"},St={h:"if(!r[typeof m])return u;"+Et.h,b:!1},L.prototype=u.prototype;
+var Yt=function(n){return Xt.argsObject&&n instanceof jt||Mt.call(n)==w},Zt=T({a:"q",e:"[]",h:"if(!(r[typeof q]))return u",f:"u.push(i)",b:!1}),ne=T(Et),te={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ee=J(te),re=T(kt,{h:kt.h.replace(";",";if(c>3&&typeof a[c-2]=='function'){var d=p.createCallback(a[--c-1],a[c--],2);}else if(c>2&&typeof a[c-1]=='function'){d=a[--c];}"),f:"u[i]=d?d(u[i],m[i]):m[i]"}),ue=T(kt),ae=T(Et,St,{i:!1}),oe=T(Et,St);W(/x/)&&(W=function(n){return n instanceof Ot||Mt.call(n)==x
+});var ie=function(n){var t=!1;if(!n||Mt.call(n)!=E||!Xt.argsClass&&V(n))return t;var e=n.constructor;return(W(e)?e instanceof e:Xt.nodeClass||!z(n))?Xt.ownLast?(ae(n,function(n,e,r){return t=zt.call(r,e),!1}),!0===t):(ae(n,function(n,e){t=e}),!1===t||zt.call(n,t)):t},kt=8==Jt("08")?Jt:function(n,t){return Jt(Z(n)?n.replace(h,""):n,t||0)};return u.after=function(n,t){return 1>n?t():function(){return 1>--n?t.apply(this,arguments):void 0}},u.assign=re,u.at=function(n){var t=-1,e=$t.apply(qt,M(arguments,1)),r=e.length,u=jt(r);
for(Xt.unindexedChars&&Z(n)&&(n=n.split(""));++t<r;)u[t]=n[e[t]];return u},u.bind=bt,u.bindAll=function(n){for(var t=$t.apply(qt,arguments),e=1<t.length?0:(t=H(n),-1),r=t.length;++e<r;){var u=t[e];n[u]=bt(n[u],n)}return n},u.bindKey=function(n,t){return R(n,t,M(arguments,2),i)},u.compact=function(n){for(var t=-1,e=n?n.length:0,r=[];++t<e;){var u=n[t];u&&r.push(u)}return r},u.compose=function(){var n=arguments;return function(){for(var t=arguments,e=n.length;e--;)t=[n[e].apply(this,t)];return t[0]
-}},u.countBy=function(n,t,e){var r={};return t=u.createCallback(t,e),ot(n,function(n,e,u){e=Nt(t(n,e,u)),zt.call(r,e)?r[e]++:r[e]=1}),r},u.createCallback=function(n,t,e){if(null==n)return _t;var r=typeof n;if("function"!=r){if("object"!=r)return function(t){return t[n]};var u=ne(n);return function(t){for(var e=u.length,r=!1;e--&&(r=Q(t[u[e]],n[u[e]],i)););return r}}return typeof t!="undefined"?1===e?function(e){return n.call(t,e)}:2===e?function(e,r){return n.call(t,e,r)}:4===e?function(e,r,u,a){return n.call(t,e,r,u,a)
+}},u.countBy=function(n,t,e){var r={};return t=u.createCallback(t,e),ot(n,function(n,e,u){e=Nt(t(n,e,u)),zt.call(r,e)?r[e]++:r[e]=1}),r},u.createCallback=function(n,t,e){if(null==n)return _t;var r=typeof n;if("function"!=r){if("object"!=r)return function(t){return t[n]};var u=Zt(n);return function(t){for(var e=u.length,r=!1;e--&&(r=Q(t[u[e]],n[u[e]],i)););return r}}return typeof t!="undefined"?1===e?function(e){return n.call(t,e)}:2===e?function(e,r){return n.call(t,e,r)}:4===e?function(e,r,u,a){return n.call(t,e,r,u,a)
}:function(e,r,u){return n.call(t,e,r,u)}:n},u.debounce=function(n,t,e){function r(){i=null,e||(a=n.apply(o,u))}var u,a,o,i;return function(){var f=e&&!i;return u=arguments,o=this,Tt(i),i=Kt(r,t),f&&(a=n.apply(o,u)),a}},u.defaults=ue,u.defer=function(n){var t=M(arguments,1);return Kt(function(){n.apply(e,t)},1)},u.delay=function(n,t){var r=M(arguments,2);return Kt(function(){n.apply(e,r)},t)},u.difference=function(n){for(var t=-1,e=n?n.length:0,r=$t.apply(qt,arguments),r=a(r,e,100),u=[];++t<e;){var o=n[t];
r(o)||u.push(o)}return u},u.filter=ut,u.flatten=vt,u.forEach=ot,u.forIn=ae,u.forOwn=oe,u.functions=H,u.groupBy=function(n,t,e){var r={};return t=u.createCallback(t,e),ot(n,function(n,e,u){e=Nt(t(n,e,u)),(zt.call(r,e)?r[e]:r[e]=[]).push(n)}),r},u.initial=function(n,t,e){if(!n)return[];var r=0,a=n.length;if(typeof t!="number"&&null!=t){var o=a;for(t=u.createCallback(t,e);o--&&t(n[o],o,n);)r++}else r=null==t||e?1:t||r;return M(n,0,Ht(Gt(0,a-r),a))},u.intersection=function(n){var t=arguments,e=t.length,r={0:{}},u=-1,o=n?n.length:0,i=100<=o,f=[],c=f;
-n:for(;++u<o;){var l=n[u];if(i)var p=Nt(l),p=zt.call(r[0],p)?!(c=r[0][p]):c=r[0][p]=[];if(p||0>gt(c,l)){i&&c.push(l);for(var s=e;--s;)if(!(r[s]||(r[s]=a(t[s],0,100)))(l))continue n;f.push(l)}}return f},u.invert=J,u.invoke=function(n,t){var e=M(arguments,2),r=-1,u=typeof t=="function",a=n?n.length:0,o=jt(typeof a=="number"?a:0);return ot(n,function(n){o[++r]=(u?t:n[t]).apply(n,e)}),o},u.keys=ne,u.map=it,u.max=ft,u.memoize=function(n,t){var e={};return function(){var r=Nt(t?t.apply(this,arguments):arguments[0]);
-return zt.call(e,r)?e[r]:e[r]=n.apply(this,arguments)}},u.merge=nt,u.min=function(n,t,e){var r=1/0,a=r;if(!t&&Zt(n)){e=-1;for(var o=n.length;++e<o;){var i=n[e];i<a&&(a=i)}}else t=!t&&Z(n)?F:u.createCallback(t,e),Yt(n,function(n,e,u){e=t(n,e,u),e<r&&(r=e,a=n)});return a},u.omit=function(n,t,e){var r=typeof t=="function",a={};if(r)t=u.createCallback(t,e);else var o=$t.apply(qt,arguments);return ae(n,function(n,e,u){(r?!t(n,e,u):0>gt(o,e,1))&&(a[e]=n)}),a},u.once=function(n){var t,e;return function(){return t?e:(t=!0,e=n.apply(this,arguments),n=null,e)
-}},u.pairs=function(n){for(var t=-1,e=ne(n),r=e.length,u=jt(r);++t<r;){var a=e[t];u[t]=[a,n[a]]}return u},u.partial=function(n){return R(n,M(arguments,1))},u.partialRight=function(n){return R(n,M(arguments,1),null,i)},u.pick=function(n,t,e){var r={};if(typeof t!="function")for(var a=0,o=$t.apply(qt,arguments),i=X(n)?o.length:0;++a<i;){var f=o[a];f in n&&(r[f]=n[f])}else t=u.createCallback(t,e),ae(n,function(n,e,u){t(n,e,u)&&(r[e]=n)});return r},u.pluck=it,u.range=function(n,t,e){n=+n||0,e=+e||1,null==t&&(t=n,n=0);
+n:for(;++u<o;){var l=n[u];if(i)var p=Nt(l),p=zt.call(r[0],p)?!(c=r[0][p]):c=r[0][p]=[];if(p||0>gt(c,l)){i&&c.push(l);for(var s=e;--s;)if(!(r[s]||(r[s]=a(t[s],0,100)))(l))continue n;f.push(l)}}return f},u.invert=J,u.invoke=function(n,t){var e=M(arguments,2),r=-1,u=typeof t=="function",a=n?n.length:0,o=jt(typeof a=="number"?a:0);return ot(n,function(n){o[++r]=(u?t:n[t]).apply(n,e)}),o},u.keys=Zt,u.map=it,u.max=ft,u.memoize=function(n,t){var e={};return function(){var r=Nt(t?t.apply(this,arguments):arguments[0]);
+return zt.call(e,r)?e[r]:e[r]=n.apply(this,arguments)}},u.merge=nt,u.min=function(n,t,e){var r=1/0,a=r;if(!t&&Yt(n)){e=-1;for(var o=n.length;++e<o;){var i=n[e];i<a&&(a=i)}}else t=!t&&Z(n)?F:u.createCallback(t,e),ne(n,function(n,e,u){e=t(n,e,u),e<r&&(r=e,a=n)});return a},u.omit=function(n,t,e){var r=typeof t=="function",a={};if(r)t=u.createCallback(t,e);else var o=$t.apply(qt,arguments);return ae(n,function(n,e,u){(r?!t(n,e,u):0>gt(o,e,1))&&(a[e]=n)}),a},u.once=function(n){var t,e;return function(){return t?e:(t=!0,e=n.apply(this,arguments),n=null,e)
+}},u.pairs=function(n){for(var t=-1,e=Zt(n),r=e.length,u=jt(r);++t<r;){var a=e[t];u[t]=[a,n[a]]}return u},u.partial=function(n){return R(n,M(arguments,1))},u.partialRight=function(n){return R(n,M(arguments,1),null,i)},u.pick=function(n,t,e){var r={};if(typeof t!="function")for(var a=0,o=$t.apply(qt,arguments),i=X(n)?o.length:0;++a<i;){var f=o[a];f in n&&(r[f]=n[f])}else t=u.createCallback(t,e),ae(n,function(n,e,u){t(n,e,u)&&(r[e]=n)});return r},u.pluck=it,u.range=function(n,t,e){n=+n||0,e=+e||1,null==t&&(t=n,n=0);
var r=-1;t=Gt(0,Rt((t-n)/e));for(var u=jt(t);++r<t;)u[r]=n,n+=e;return u},u.reject=function(n,t,e){return t=u.createCallback(t,e),ut(n,function(n,e,r){return!t(n,e,r)})},u.rest=ht,u.shuffle=function(n){var t=-1,e=n?n.length:0,r=jt(typeof e=="number"?e:0);return ot(n,function(n){var e=Dt(Qt()*(++t+1));r[t]=r[e],r[e]=n}),r},u.sortBy=function(n,t,e){var r=-1,a=n?n.length:0,o=jt(typeof a=="number"?a:0);for(t=u.createCallback(t,e),ot(n,function(n,e,u){o[++r]={a:t(n,e,u),b:r,c:n}}),a=o.length,o.sort(B);a--;)o[a]=o[a].c;
return o},u.tap=function(n,t){return t(n),n},u.throttle=function(n,t){function e(){i=new xt,o=null,u=n.apply(a,r)}var r,u,a,o,i=0;return function(){var f=new xt,c=t-(f-i);return r=arguments,a=this,0<c?o||(o=Kt(e,c)):(Tt(o),o=null,i=f,u=n.apply(a,r)),u}},u.times=function(n,t,e){n=-1<(n=+n)?n:0;var r=-1,a=jt(n);for(t=u.createCallback(t,e,1);++r<n;)a[r]=t(r);return a},u.toArray=function(n){return n&&typeof n.length=="number"?Xt.unindexedChars&&Z(n)?n.split(""):M(n):tt(n)},u.union=function(){return mt($t.apply(qt,arguments))
},u.uniq=mt,u.values=tt,u.where=ut,u.without=function(n){for(var t=-1,e=n?n.length:0,r=a(arguments,1,30),u=[];++t<e;){var o=n[t];r(o)||u.push(o)}return u},u.wrap=function(n,t){return function(){var e=[n];return Lt.apply(e,arguments),t.apply(this,e)}},u.zip=function(n){for(var t=-1,e=n?ft(it(arguments,"length")):0,r=jt(e);++t<e;)r[t]=it(arguments,t);return r},u.zipObject=dt,u.collect=it,u.drop=ht,u.each=ot,u.extend=re,u.methods=H,u.object=dt,u.select=ut,u.tail=ht,u.unique=mt,Ct(u),u.clone=G,u.cloneDeep=function(n,t,e){return G(n,!0,t,e)
-},u.contains=et,u.escape=function(n){return null==n?"":Nt(n).replace(m,D)},u.every=rt,u.find=at,u.findIndex=function(n,t,e){var r=-1,a=n?n.length:0;for(t=u.createCallback(t,e);++r<a;)if(t(n[r],r,n))return r;return-1},u.findKey=function(n,t,e){var r;return t=u.createCallback(t,e),oe(n,function(n,e,u){return t(n,e,u)?(r=e,!1):void 0}),r},u.has=function(n,t){return n?zt.call(n,t):!1},u.identity=_t,u.indexOf=gt,u.isArguments=V,u.isArray=Zt,u.isBoolean=function(n){return!0===n||!1===n||Mt.call(n)==j},u.isDate=function(n){return n instanceof xt||Mt.call(n)==k
+},u.contains=et,u.escape=function(n){return null==n?"":Nt(n).replace(m,D)},u.every=rt,u.find=at,u.findIndex=function(n,t,e){var r=-1,a=n?n.length:0;for(t=u.createCallback(t,e);++r<a;)if(t(n[r],r,n))return r;return-1},u.findKey=function(n,t,e){var r;return t=u.createCallback(t,e),oe(n,function(n,e,u){return t(n,e,u)?(r=e,!1):void 0}),r},u.has=function(n,t){return n?zt.call(n,t):!1},u.identity=_t,u.indexOf=gt,u.isArguments=V,u.isArray=Yt,u.isBoolean=function(n){return!0===n||!1===n||Mt.call(n)==j},u.isDate=function(n){return n instanceof xt||Mt.call(n)==k
},u.isElement=function(n){return n?1===n.nodeType:!1},u.isEmpty=function(n){var t=!0;if(!n)return t;var e=Mt.call(n),r=n.length;return e==w||e==A||(Xt.argsClass?e==C:V(n))||e==E&&typeof r=="number"&&W(n.splice)?!r:(oe(n,function(){return t=!1}),t)},u.isEqual=Q,u.isFinite=function(n){return Ut(n)&&!Vt(parseFloat(n))},u.isFunction=W,u.isNaN=function(n){return Y(n)&&n!=+n},u.isNull=function(n){return null===n},u.isNumber=Y,u.isObject=X,u.isPlainObject=ie,u.isRegExp=function(n){return n instanceof It||Mt.call(n)==S
},u.isString=Z,u.isUndefined=function(n){return typeof n=="undefined"},u.lastIndexOf=function(n,t,e){var r=n?n.length:0;for(typeof e=="number"&&(r=(0>e?Gt(0,r+e):Ht(e,r-1))+1);r--;)if(n[r]===t)return r;return-1},u.mixin=Ct,u.noConflict=function(){return r._=Bt,this},u.parseInt=kt,u.random=function(n,t){return null==n&&null==t&&(t=1),n=+n||0,null==t&&(t=n,n=0),n+Dt(Qt()*((+t||0)-n+1))},u.reduce=ct,u.reduceRight=lt,u.result=function(n,t){var r=n?n[t]:e;return W(r)?n[t]():r},u.runInContext=t,u.size=function(n){var t=n?n.length:0;
-return typeof t=="number"?t:ne(n).length},u.some=pt,u.sortedIndex=yt,u.template=function(n,t,r){var a=u.templateSettings;n||(n=""),r=ue({},r,a);var o,i=ue({},r.imports,a.imports),a=ne(i),i=tt(i),p=0,v=r.interpolate||y,h="__p+='",v=It((r.escape||y).source+"|"+v.source+"|"+(v===g?s:y).source+"|"+(r.evaluate||y).source+"|$","g");n.replace(v,function(t,e,r,u,a,i){return r||(r=u),h+=n.slice(p,i).replace(d,$),e&&(h+="'+__e("+e+")+'"),a&&(o=!0,h+="';"+a+";__p+='"),r&&(h+="'+((__t=("+r+"))==null?'':__t)+'"),p=i+t.length,t
+return typeof t=="number"?t:Zt(n).length},u.some=pt,u.sortedIndex=yt,u.template=function(n,t,r){var a=u.templateSettings;n||(n=""),r=ue({},r,a);var o,i=ue({},r.imports,a.imports),a=Zt(i),i=tt(i),p=0,v=r.interpolate||y,h="__p+='",v=It((r.escape||y).source+"|"+v.source+"|"+(v===g?s:y).source+"|"+(r.evaluate||y).source+"|$","g");n.replace(v,function(t,e,r,u,a,i){return r||(r=u),h+=n.slice(p,i).replace(d,$),e&&(h+="'+__e("+e+")+'"),a&&(o=!0,h+="';"+a+";__p+='"),r&&(h+="'+((__t=("+r+"))==null?'':__t)+'"),p=i+t.length,t
}),h+="';\n",v=r=r.variable,v||(r="obj",h="with("+r+"){"+h+"}"),h=(o?h.replace(f,""):h).replace(c,"$1").replace(l,"$1;"),h="function("+r+"){"+(v?"":r+"||("+r+"={});")+"var __t,__p='',__e=_.escape"+(o?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+h+"return __p}";try{var m=Ot(a,"return "+h).apply(e,i)}catch(b){throw b.source=h,b}return t?m(t):(m.source=h,m)},u.unescape=function(n){return null==n?"":Nt(n).replace(p,U)},u.uniqueId=function(n){var t=++o;return Nt(null==n?"":n)+t
},u.all=rt,u.any=pt,u.detect=at,u.foldl=ct,u.foldr=lt,u.include=et,u.inject=ct,oe(u,function(n,t){u.prototype[t]||(u.prototype[t]=function(){var t=[this.__wrapped__];return Lt.apply(t,arguments),n.apply(u,t)})}),u.first=st,u.last=function(n,t,e){if(n){var r=0,a=n.length;if(typeof t!="number"&&null!=t){var o=a;for(t=u.createCallback(t,e);o--&&t(n[o],o,n);)r++}else if(r=t,null==r||e)return n[a-1];return M(n,Gt(0,a-r))}},u.take=st,u.head=st,oe(u,function(n,t){u.prototype[t]||(u.prototype[t]=function(t,e){var r=n(this.__wrapped__,t,e);
-return null==t||e&&typeof t!="function"?r:new L(r)})}),u.VERSION="1.0.1",u.prototype.toString=function(){return Nt(this.__wrapped__)},u.prototype.value=wt,u.prototype.valueOf=wt,Yt(["join","pop","shift"],function(n){var t=qt[n];u.prototype[n]=function(){return t.apply(this.__wrapped__,arguments)}}),Yt(["push","reverse","sort","unshift"],function(n){var t=qt[n];u.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),Yt(["concat","slice","splice"],function(n){var t=qt[n];u.prototype[n]=function(){return new L(t.apply(this.__wrapped__,arguments))
-}}),Xt.spliceObjects||Yt(["pop","shift","splice"],function(n){var t=qt[n],e="splice"==n;u.prototype[n]=function(){var n=this.__wrapped__,r=t.apply(n,arguments);return 0===n.length&&delete n[0],e?new L(r):r}}),u}var e,r=typeof exports=="object"&&exports,u=typeof module=="object"&&module&&module.exports==r&&module,a=typeof global=="object"&&global;a.global===a&&(n=a);var o=0,i={},f=/\b__p\+='';/g,c=/\b(__p\+=)''\+/g,l=/(__e\(.*?\)|\b__t\))\+'';/g,p=/&(?:amp|lt|gt|quot|#39);/g,s=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,v=/\w*$/,g=/<%=([\s\S]+?)%>/g,h=/^0+(?=.$)/,y=/($^)/,m=/[&<>"']/g,d=/['\n\r\t\u2028\u2029\\]/g,b="Array Boolean Date Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout".split(" "),_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),C="[object Arguments]",w="[object Array]",j="[object Boolean]",k="[object Date]",x="[object Function]",O="[object Number]",E="[object Object]",S="[object RegExp]",A="[object String]",I={};
+return null==t||e&&typeof t!="function"?r:new L(r)})}),u.VERSION="1.0.1",u.prototype.toString=function(){return Nt(this.__wrapped__)},u.prototype.value=wt,u.prototype.valueOf=wt,ne(["join","pop","shift"],function(n){var t=qt[n];u.prototype[n]=function(){return t.apply(this.__wrapped__,arguments)}}),ne(["push","reverse","sort","unshift"],function(n){var t=qt[n];u.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),ne(["concat","slice","splice"],function(n){var t=qt[n];u.prototype[n]=function(){return new L(t.apply(this.__wrapped__,arguments))
+}}),Xt.spliceObjects||ne(["pop","shift","splice"],function(n){var t=qt[n],e="splice"==n;u.prototype[n]=function(){var n=this.__wrapped__,r=t.apply(n,arguments);return 0===n.length&&delete n[0],e?new L(r):r}}),u}var e,r=typeof exports=="object"&&exports,u=typeof module=="object"&&module&&module.exports==r&&module,a=typeof global=="object"&&global;a.global===a&&(n=a);var o=0,i={},f=/\b__p\+='';/g,c=/\b(__p\+=)''\+/g,l=/(__e\(.*?\)|\b__t\))\+'';/g,p=/&(?:amp|lt|gt|quot|#39);/g,s=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,v=/\w*$/,g=/<%=([\s\S]+?)%>/g,h=/^0+(?=.$)/,y=/($^)/,m=/[&<>"']/g,d=/['\n\r\t\u2028\u2029\\]/g,b="Array Boolean Date Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout".split(" "),_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),C="[object Arguments]",w="[object Array]",j="[object Boolean]",k="[object Date]",x="[object Function]",O="[object Number]",E="[object Object]",S="[object RegExp]",A="[object String]",I={};
I[x]=!1,I[C]=I[w]=I[j]=I[k]=I[O]=I[E]=I[S]=I[A]=!0;var N={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},P={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"},q=t();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=q,define(function(){return q})):r&&!r.nodeType?u?(u.exports=q)._=q:r._=q:n._=q})(this);
View
44 dist/lodash.min.js
@@ -5,24 +5,24 @@
* Underscore.js 1.4.4 underscorejs.org/LICENSE
*/
;(function(n){function t(r){function a(n){return n&&typeof n=="object"&&!ae(n)&&Ut.call(n,"__wrapped__")?n:new z(n)}function $(n,t,e){var r=n.length,u=r-t>=e;if(u){var a={};for(e=t-1;++e<r;){var o=$t(n[e]);(Ut.call(a,o)?a[o]:a[o]=[]).push(n[e])}}return function(e){if(u){var r=$t(e);return Ut.call(a,r)&&-1<gt(a[r],e)}return-1<gt(n,e,t)}}function q(n){return n.charCodeAt(0)}function B(n,t){var e=n.b,r=t.b;if(n=n.a,t=t.a,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1
-}return e<r?-1:1}function F(n,t,e,r){function u(){var r=arguments,c=o?this:t;return a||(n=t[i]),e.length&&(r=r.length?(r=M(r),f?r.concat(e):e.concat(r)):e),this instanceof u?(P.prototype=n.prototype,c=new P,P.prototype=null,r=n.apply(c,r),W(r)?r:c):n.apply(c,r)}var a=Q(n),o=!e,i=t;if(o){var f=r;e=t}else if(!a){if(!r)throw new qt;t=n}return u}function R(){for(var n,t={b:"k(m)",c:"",e:"m",f:"",h:"",i:!0,j:!!oe},e=0;n=arguments[e];e++)for(var r in n)t[r]=n[r];return n=t.a,t.d=/^[^,]+/.exec(n)[0],e=Et,r="var i,m="+t.d+",u="+t.e+";if(!m)return u;"+t.h+";",t.b&&(r+="var n=m.length;i=-1;if("+t.b+"){while(++i<n){"+t.f+"}}else{"),t.i&&t.j?r+="var s=-1,t=r[typeof m]?o(m):[],n=t.length;while(++s<n){i=t[s];"+t.f+"}":(r+="for(i in m){",t.i&&(r+="if(",t.i&&(r+="h.call(m,i)"),r+="){"),r+=t.f+";",t.i&&(r+="}"),r+="}"),t.b&&(r+="}"),r+=t.c+";return u",e("h,j,k,l,o,p,r","return function("+n+"){"+r+"}")(Ut,V,ae,Y,oe,a,N)
-}function T(n){return"\\"+S[n]}function D(n){return ie[n]}function z(n){this.__wrapped__=n}function P(){}function K(n){var t=!1;if(!n||Jt.call(n)!=x)return t;var e=n.constructor;return!Q(e)||e instanceof e?(pe(n,function(n,e){t=e}),!1===t||Ut.call(n,t)):t}function M(n,t,e){t||(t=0),typeof e=="undefined"&&(e=n?n.length:0);var r=-1;e=e-t||0;for(var u=Ct(0>e?0:e);++r<e;)u[r]=n[t+r];return u}function U(n){return fe[n]}function V(n){return Jt.call(n)==_}function G(n,t,r,u,o,i){var f=n;if(typeof t=="function"&&(u=r,r=t,t=!1),typeof r=="function"){if(r=typeof u=="undefined"?r:a.createCallback(r,u,1),f=r(f),typeof f!="undefined")return f;
-f=n}if(u=W(f)){var c=Jt.call(f);if(!I[c])return f;var l=ae(f)}if(!u||!t)return u?l?M(f):ce({},f):f;switch(u=re[c],c){case w:case j:return new u(+f);case C:case E:return new u(f);case O:return u(f.source,v.exec(f))}for(o||(o=[]),i||(i=[]),c=o.length;c--;)if(o[c]==n)return i[c];return f=l?u(f.length):{},l&&(Ut.call(n,"index")&&(f.index=n.index),Ut.call(n,"input")&&(f.input=n.input)),o.push(n),i.push(f),(l?at:se)(n,function(n,u){f[u]=G(n,t,r,e,o,i)}),f}function H(n){var t=[];return pe(n,function(n,e){Q(n)&&t.push(e)
-}),t.sort()}function J(n){for(var t=-1,e=oe(n),r=e.length,u={};++t<r;){var a=e[t];u[n[a]]=a}return u}function L(n,t,e,r,u,o){var f=e===i;if(e&&!f){e=typeof r=="undefined"?e:a.createCallback(e,r,2);var c=e(n,t);if(typeof c!="undefined")return!!c}if(n===t)return 0!==n||1/n==1/t;var l=typeof n,p=typeof t;if(n===n&&(!n||"function"!=l&&"object"!=l)&&(!t||"function"!=p&&"object"!=p))return!1;if(null==n||null==t)return n===t;if(p=Jt.call(n),l=Jt.call(t),p==_&&(p=x),l==_&&(l=x),p!=l)return!1;switch(p){case w:case j:return+n==+t;
-case C:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case O:case E:return n==$t(t)}if(l=p==k,!l){if(Ut.call(n,"__wrapped__")||Ut.call(t,"__wrapped__"))return L(n.__wrapped__||n,t.__wrapped__||t,e,r,u,o);if(p!=x)return!1;var p=n.constructor,s=t.constructor;if(p!=s&&(!Q(p)||!(p instanceof p&&Q(s)&&s instanceof s)))return!1}for(u||(u=[]),o||(o=[]),p=u.length;p--;)if(u[p]==n)return o[p]==t;var v=0,c=!0;if(u.push(n),o.push(t),l){if(p=n.length,v=t.length,c=v==n.length,!c&&!f)return c;for(;v--;)if(l=p,s=t[v],f)for(;l--&&!(c=L(n[l],s,e,r,u,o)););else if(!(c=L(n[v],s,e,r,u,o)))break;
-return c}return pe(t,function(t,a,i){return Ut.call(i,a)?(v++,c=Ut.call(n,a)&&L(n[a],t,e,r,u,o)):void 0}),c&&!f&&pe(n,function(n,t,e){return Ut.call(e,t)?c=-1<--v:void 0}),c}function Q(n){return typeof n=="function"}function W(n){return n?N[typeof n]:!1}function X(n){return typeof n=="number"||Jt.call(n)==C}function Y(n){return typeof n=="string"||Jt.call(n)==E}function Z(n,t,e){var r=arguments,u=0,o=2;if(!W(n))return n;if(e===i)var f=r[3],c=r[4],l=r[5];else c=[],l=[],typeof e!="number"&&(o=r.length),3<o&&"function"==typeof r[o-2]?f=a.createCallback(r[--o-1],r[o--],2):2<o&&"function"==typeof r[o-1]&&(f=r[--o]);
-for(;++u<o;)(ae(r[u])?at:se)(r[u],function(t,e){var r,u,a=t,o=n[e];if(t&&((u=ae(t))||ve(t))){for(a=c.length;a--;)if(r=c[a]==t){o=l[a];break}r||(o=u?ae(o)?o:[]:ve(o)?o:{},f&&(a=f(o,t),typeof a!="undefined"&&(o=a)),c.push(t),l.push(o),f||(o=Z(o,t,i,f,c,l)))}else f&&(a=f(o,t),typeof a=="undefined"&&(a=t)),typeof a!="undefined"&&(o=a);n[e]=o});return n}function nt(n){for(var t=-1,e=oe(n),r=e.length,u=Ct(r);++t<r;)u[t]=n[e[t]];return u}function tt(n,t,e){var r=-1,u=n?n.length:0,a=!1;return e=(0>e?Zt(0,u+e):e)||0,typeof u=="number"?a=-1<(Y(n)?n.indexOf(t,e):gt(n,t,e)):se(n,function(n){return++r<e?void 0:!(a=n===t)
-}),a}function et(n,t,e){var r=!0;t=a.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 se(n,function(n,e,u){return r=!!t(n,e,u)});return r}function rt(n,t,e){var r=[];t=a.createCallback(t,e),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u;){var o=n[e];t(o,e,n)&&r.push(o)}else se(n,function(n,e,u){t(n,e,u)&&r.push(n)});return r}function ut(n,t,e){t=a.createCallback(t,e),e=-1;var r=n?n.length:0;if(typeof r!="number"){var u;return se(n,function(n,e,r){return t(n,e,r)?(u=n,!1):void 0
-}),u}for(;++e<r;){var o=n[e];if(t(o,e,n))return o}}function at(n,t,e){var r=-1,u=n?n.length:0;if(typeof u=="number")for(t=t&&typeof e=="undefined"?t:a.createCallback(t,e);++r<u&&!1!==t(n[r],r,n););else se(n,t,e);return n}function ot(n,t,e){var r=-1,u=n?n.length:0;if(t=a.createCallback(t,e),typeof u=="number")for(var o=Ct(u);++r<u;)o[r]=t(n[r],r,n);else o=[],se(n,function(n,e,u){o[++r]=t(n,e,u)});return o}function it(n,t,e){var r=-1/0,u=r;if(!t&&ae(n)){e=-1;for(var o=n.length;++e<o;){var i=n[e];i>u&&(u=i)
-}}else t=!t&&Y(n)?q:a.createCallback(t,e),at(n,function(n,e,a){e=t(n,e,a),e>r&&(r=e,u=n)});return u}function ft(n,t){var e=-1,r=n?n.length:0;if(typeof r=="number")for(var u=Ct(r);++e<r;)u[e]=n[e][t];return u||ot(n,t)}function ct(n,t,e,r){if(!n)return e;var u=3>arguments.length;t=a.createCallback(t,r,4);var o=-1,i=n.length;if(typeof i=="number")for(u&&(e=n[++o]);++o<i;)e=t(e,n[o],o,n);else se(n,function(n,r,a){e=u?(u=!1,n):t(e,n,r,a)});return e}function lt(n,t,e,r){var u=n?n.length:0,o=3>arguments.length;
-if(typeof u!="number")var i=oe(n),u=i.length;return t=a.createCallback(t,r,4),at(n,function(r,a,f){a=i?i[--u]:--u,e=o?(o=!1,n[a]):t(e,n[a],a,f)}),e}function pt(n,t,e){var r;t=a.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 se(n,function(n,e,u){return!(r=t(n,e,u))});return!!r}function st(n,t,e){if(n){var r=0,u=n.length;if(typeof t!="number"&&null!=t){var o=-1;for(t=a.createCallback(t,e);++o<u&&t(n[o],o,n);)r++}else if(r=t,null==r||e)return n[0];
-return M(n,0,ne(Zt(0,r),u))}}function vt(n,t,e,r){var u=-1,o=n?n.length:0,i=[];for(typeof t!="boolean"&&null!=t&&(r=e,e=t,t=!1),null!=e&&(e=a.createCallback(e,r));++u<o;)r=n[u],e&&(r=e(r,u,n)),ae(r)?Vt.apply(i,t?r:vt(r)):i.push(r);return i}function gt(n,t,e){var r=-1,u=n?n.length:0;if(typeof e=="number")r=(0>e?Zt(0,u+e):e||0)-1;else if(e)return r=yt(n,t),n[r]===t?r:-1;for(;++r<u;)if(n[r]===t)return r;return-1}function ht(n,t,e){if(typeof t!="number"&&null!=t){var r=0,u=-1,o=n?n.length:0;for(t=a.createCallback(t,e);++u<o&&t(n[u],u,n);)r++
-}else r=null==t||e?1:Zt(0,t);return M(n,r)}function yt(n,t,e,r){var u=0,o=n?n.length:u;for(e=e?a.createCallback(e,r,1):kt,t=e(t);u<o;)r=u+o>>>1,e(n[r])<t?u=r+1:o=r;return u}function mt(n,t,e,r){var u=-1,o=n?n.length:0,i=[],f=i;typeof t!="boolean"&&null!=t&&(r=e,e=t,t=!1);var c=!t&&75<=o;if(c)var l={};for(null!=e&&(f=[],e=a.createCallback(e,r));++u<o;){r=n[u];var p=e?e(r,u,n):r;if(c)var s=$t(p),s=Ut.call(l,s)?!(f=l[s]):f=l[s]=[];(t?!u||f[f.length-1]!==p:s||0>gt(f,p))&&((e||c)&&f.push(p),i.push(r))
-}return i}function bt(n,t){for(var e=-1,r=n?n.length:0,u={};++e<r;){var a=n[e];t?u[a]=t[e]:u[a[0]]=a[1]}return u}function dt(n,t){return ue.fastBind||Lt&&2<arguments.length?Lt.call.apply(Lt,arguments):F(n,t,M(arguments,2))}function _t(n){var t=M(arguments,1);return Ht(function(){n.apply(e,t)},1)}function kt(n){return n}function wt(n){at(H(n),function(t){var e=a[t]=n[t];a.prototype[t]=function(){var n=this.__wrapped__,t=[n];return Vt.apply(t,arguments),t=e.apply(a,t),n&&typeof n=="object"&&n==t?this:new z(t)
-}})}function jt(){return this.__wrapped__}r=r?A.defaults(n.Object(),r,A.pick(n,d)):n;var Ct=r.Array,xt=r.Boolean,Ot=r.Date,Et=r.Function,It=r.Math,Nt=r.Number,St=r.Object,At=r.RegExp,$t=r.String,qt=r.TypeError,Bt=Ct(),Ft=St(),Rt=r._,Tt=At("^"+$t(Ft.valueOf).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),Dt=It.ceil,zt=r.clearTimeout,Pt=Bt.concat,Kt=It.floor,Mt=Tt.test(Mt=St.getPrototypeOf)&&Mt,Ut=Ft.hasOwnProperty,Vt=Bt.push,Gt=r.setImmediate,Ht=r.setTimeout,Jt=Ft.toString,Lt=Tt.test(Lt=M.bind)&&Lt,Qt=Tt.test(Qt=Ct.isArray)&&Qt,Wt=r.isFinite,Xt=r.isNaN,Yt=Tt.test(Yt=St.keys)&&Yt,Zt=It.max,ne=It.min,te=r.parseInt,ee=It.random,It=Tt.test(r.attachEvent),It=Lt&&!/\n|true/.test(Lt+It),re={};
-re[k]=Ct,re[w]=xt,re[j]=Ot,re[x]=St,re[C]=Nt,re[O]=At,re[E]=$t;var ue=a.support={};ue.fastBind=Lt&&!It,a.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:g,variable:"",imports:{_:a}},xt={a:"q,w,g",h:"var a=arguments,b=0,c=typeof g=='number'?2:a.length;while(++b<c){m=a[b];if(m&&r[typeof m]){",f:"if(typeof u[i]=='undefined')u[i]=m[i]",c:"}}"},Nt={a:"e,d,x",h:"d=d&&typeof x=='undefined'?d:p.createCallback(d,x)",b:!1,f:"if(d(m[i],i,e)===false)return u"},St={h:"if(!r[typeof m])return u;"+Nt.h,b:!1},z.prototype=a.prototype;
-var Ft=R({a:"q",e:"[]",h:"if(!(r[typeof q]))return u",f:"u.push(i)",b:!1}),ae=Qt||function(n){return n instanceof Ct||Jt.call(n)==k},oe=Yt?function(n){return W(n)?Yt(n):[]}:Ft,ie={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},fe=J(ie),ce=R(xt,{h:xt.h.replace(";",";if(c>3&&typeof a[c-2]=='function'){var d=p.createCallback(a[--c-1],a[c--],2);}else if(c>2&&typeof a[c-1]=='function'){d=a[--c];}"),f:"u[i]=d?d(u[i],m[i]):m[i]"}),le=R(xt),pe=R(Nt,St,{i:!1}),se=R(Nt,St),ve=function(n){if(!n||Jt.call(n)!=x)return!1;
-var t=n.valueOf,e=typeof t=="function"&&(e=Mt(t))&&Mt(e);return e?n==e||Mt(n)==e:K(n)};return It&&u&&typeof Gt=="function"&&(_t=dt(Gt,r)),Gt=8==te("08")?te:function(n,t){return te(Y(n)?n.replace(h,""):n,t||0)},a.after=function(n,t){return 1>n?t():function(){return 1>--n?t.apply(this,arguments):void 0}},a.assign=ce,a.at=function(n){for(var t=-1,e=Pt.apply(Bt,M(arguments,1)),r=e.length,u=Ct(r);++t<r;)u[t]=n[e[t]];return u},a.bind=dt,a.bindAll=function(n){for(var t=Pt.apply(Bt,arguments),e=1<t.length?0:(t=H(n),-1),r=t.length;++e<r;){var u=t[e];
+}return e<r?-1:1}function F(n,t,e,r){function u(){var r=arguments,c=o?this:t;return a||(n=t[i]),e.length&&(r=r.length?(r=M(r),f?r.concat(e):e.concat(r)):e),this instanceof u?(P.prototype=n.prototype,c=new P,P.prototype=null,r=n.apply(c,r),W(r)?r:c):n.apply(c,r)}var a=Q(n),o=!e,i=t;if(o){var f=r;e=t}else if(!a){if(!r)throw new qt;t=n}return u}function R(){for(var n,t={b:"k(m)",c:"",e:"m",f:"",h:"",i:!0,j:!!oe},e=0;n=arguments[e];e++)for(var r in n)t[r]=n[r];return n=t.a,t.d=/^[^,]+/.exec(n)[0],e=Nt,r="var i,m="+t.d+",u="+t.e+";if(!m)return u;"+t.h+";",t.b&&(r+="var n=m.length;i=-1;if("+t.b+"){while(++i<n){"+t.f+"}}else{"),t.i&&t.j?r+="var s=-1,t=r[typeof m]?o(m):[],n=t.length;while(++s<n){i=t[s];"+t.f+"}":(r+="for(i in m){",t.i&&(r+="if(",t.i&&(r+="h.call(m,i)"),r+="){"),r+=t.f+";",t.i&&(r+="}"),r+="}"),t.b&&(r+="}"),r+=t.c+";return u",e("h,j,k,l,o,p,r","return function("+n+"){"+r+"}")(Ut,V,ae,Y,oe,a,I)
+}function T(n){return"\\"+S[n]}function D(n){return ie[n]}function z(n){this.__wrapped__=n}function P(){}function K(n){var t=!1;if(!n||Jt.call(n)!=x)return t;var e=n.constructor;return(Q(e)?e instanceof e:ue.nodeClass||!isNode(n))?(pe(n,function(n,e){t=e}),!1===t||Ut.call(n,t)):t}function M(n,t,e){t||(t=0),typeof e=="undefined"&&(e=n?n.length:0);var r=-1;e=e-t||0;for(var u=Ct(0>e?0:e);++r<e;)u[r]=n[t+r];return u}function U(n){return fe[n]}function V(n){return Jt.call(n)==_}function G(n,t,r,u,o,i){var f=n;
+if(typeof t=="function"&&(u=r,r=t,t=!1),typeof r=="function"){if(r=typeof u=="undefined"?r:a.createCallback(r,u,1),f=r(f),typeof f!="undefined")return f;f=n}if(u=W(f)){var c=Jt.call(f);if(!E[c])return f;var l=ae(f)}if(!u||!t)return u?l?M(f):ce({},f):f;switch(u=re[c],c){case w:case j:return new u(+f);case C:case N:return new u(f);case O:return u(f.source,v.exec(f))}for(o||(o=[]),i||(i=[]),c=o.length;c--;)if(o[c]==n)return i[c];return f=l?u(f.length):{},l&&(Ut.call(n,"index")&&(f.index=n.index),Ut.call(n,"input")&&(f.input=n.input)),o.push(n),i.push(f),(l?at:se)(n,function(n,u){f[u]=G(n,t,r,e,o,i)
+}),f}function H(n){var t=[];return pe(n,function(n,e){Q(n)&&t.push(e)}),t.sort()}function J(n){for(var t=-1,e=oe(n),r=e.length,u={};++t<r;){var a=e[t];u[n[a]]=a}return u}function L(n,t,e,r,u,o){var f=e===i;if(e&&!f){e=typeof r=="undefined"?e:a.createCallback(e,r,2);var c=e(n,t);if(typeof c!="undefined")return!!c}if(n===t)return 0!==n||1/n==1/t;var l=typeof n,p=typeof t;if(n===n&&(!n||"function"!=l&&"object"!=l)&&(!t||"function"!=p&&"object"!=p))return!1;if(null==n||null==t)return n===t;if(p=Jt.call(n),l=Jt.call(t),p==_&&(p=x),l==_&&(l=x),p!=l)return!1;
+switch(p){case w:case j:return+n==+t;case C:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case O:case N:return n==$t(t)}if(l=p==k,!l){if(Ut.call(n,"__wrapped__")||Ut.call(t,"__wrapped__"))return L(n.__wrapped__||n,t.__wrapped__||t,e,r,u,o);if(p!=x)return!1;var p=n.constructor,s=t.constructor;if(p!=s&&(!Q(p)||!(p instanceof p&&Q(s)&&s instanceof s)))return!1}for(u||(u=[]),o||(o=[]),p=u.length;p--;)if(u[p]==n)return o[p]==t;var v=0,c=!0;if(u.push(n),o.push(t),l){if(p=n.length,v=t.length,c=v==n.length,!c&&!f)return c;
+for(;v--;)if(l=p,s=t[v],f)for(;l--&&!(c=L(n[l],s,e,r,u,o)););else if(!(c=L(n[v],s,e,r,u,o)))break;return c}return pe(t,function(t,a,i){return Ut.call(i,a)?(v++,c=Ut.call(n,a)&&L(n[a],t,e,r,u,o)):void 0}),c&&!f&&pe(n,function(n,t,e){return Ut.call(e,t)?c=-1<--v:void 0}),c}function Q(n){return typeof n=="function"}function W(n){return n?I[typeof n]:!1}function X(n){return typeof n=="number"||Jt.call(n)==C}function Y(n){return typeof n=="string"||Jt.call(n)==N}function Z(n,t,e){var r=arguments,u=0,o=2;
+if(!W(n))return n;if(e===i)var f=r[3],c=r[4],l=r[5];else c=[],l=[],typeof e!="number"&&(o=r.length),3<o&&"function"==typeof r[o-2]?f=a.createCallback(r[--o-1],r[o--],2):2<o&&"function"==typeof r[o-1]&&(f=r[--o]);for(;++u<o;)(ae(r[u])?at:se)(r[u],function(t,e){var r,u,a=t,o=n[e];if(t&&((u=ae(t))||ve(t))){for(a=c.length;a--;)if(r=c[a]==t){o=l[a];break}r||(o=u?ae(o)?o:[]:ve(o)?o:{},f&&(a=f(o,t),typeof a!="undefined"&&(o=a)),c.push(t),l.push(o),f||(o=Z(o,t,i,f,c,l)))}else f&&(a=f(o,t),typeof a=="undefined"&&(a=t)),typeof a!="undefined"&&(o=a);
+n[e]=o});return n}function nt(n){for(var t=-1,e=oe(n),r=e.length,u=Ct(r);++t<r;)u[t]=n[e[t]];return u}function tt(n,t,e){var r=-1,u=n?n.length:0,a=!1;return e=(0>e?Zt(0,u+e):e)||0,typeof u=="number"?a=-1<(Y(n)?n.indexOf(t,e):gt(n,t,e)):se(n,function(n){return++r<e?void 0:!(a=n===t)}),a}function et(n,t,e){var r=!0;t=a.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 se(n,function(n,e,u){return r=!!t(n,e,u)});return r}function rt(n,t,e){var r=[];
+t=a.createCallback(t,e),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u;){var o=n[e];t(o,e,n)&&r.push(o)}else se(n,function(n,e,u){t(n,e,u)&&r.push(n)});return r}function ut(n,t,e){t=a.createCallback(t,e),e=-1;var r=n?n.length:0;if(typeof r!="number"){var u;return se(n,function(n,e,r){return t(n,e,r)?(u=n,!1):void 0}),u}for(;++e<r;){var o=n[e];if(t(o,e,n))return o}}function at(n,t,e){var r=-1,u=n?n.length:0;if(typeof u=="number")for(t=t&&typeof e=="undefined"?t:a.createCallback(t,e);++r<u&&!1!==t(n[r],r,n););else se(n,t,e