Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated lodash

  • Loading branch information...
commit b592165656261ce710f550c37ac0986c30c7814f 1 parent b3a81ab
@kmalakoff authored
View
2  Bakefile.coffee
@@ -129,7 +129,7 @@ module.exports =
# knockback optional dependencies
'cp -v lodash vendor/optional/lodash.js'
- 'uglifyjs -o vendor/optional/lodash-0.8.1.min.js vendor/optional/lodash-0.8.1.js'
+ 'uglifyjs -o vendor/optional/lodash-0.9.0.min.js vendor/optional/lodash-0.9.0.js'
# 'cp -v lodash/lodash.min.js vendor/optional/lodash.min.js' # packaged lodash.min.js doesn't concatenate properly
'cp -v backbone-modelref vendor/optional/backbone-modelref.js'
'cp -v backbone-modelref/backbone-modelref.min.js vendor/optional/backbone-modelref.min.js'
View
4 test/full-stack/bundle-config.coffee
@@ -25,7 +25,7 @@ module.exports =
ko: 'knockout'
'test/full-stack/build/bundle-lodash-core.js':
- lodash: 'vendor/optional/lodash-0.8.1.min.js'
+ lodash: 'vendor/optional/lodash-0.9.0.min.js'
backbone: 'vendor/backbone-0.9.2.min.js'
'backbone-modelref': 'backbone-modelref'
'backbone-relational': 'backbone-relational'
@@ -39,7 +39,7 @@ module.exports =
ko: 'knockout'
'test/full-stack/build/bundle-lodash.js':
- lodash: 'vendor/optional/lodash-0.8.1.min.js'
+ lodash: 'vendor/optional/lodash-0.9.0.min.js'
backbone: 'vendor/backbone-0.9.2.min.js'
'backbone-modelref': 'backbone-modelref'
'backbone-relational': 'backbone-relational'
View
2  test/lodash/bundle-config.coffee
@@ -10,7 +10,7 @@ module.exports =
underscore: 'lodash'
'test/lodash/build/bundle-lodash-latest.js':
- lodash: 'vendor/optional/lodash-0.8.1.js'
+ lodash: 'vendor/optional/lodash-0.9.0.js'
backbone: 'backbone'
'backbone-modelref': 'backbone-modelref'
knockout: 'vendor/knockout-2.1.0.js'
View
4,201 vendor/optional/lodash-0.8.1.js
0 additions, 4,201 deletions not shown
View
7 vendor/optional/lodash-0.8.1.min.js
@@ -1,7 +0,0 @@
-/*!
- * Lo-Dash v0.8.1 <http://lodash.com>
- * (c) 2012 John-David Dalton <http://allyoucanleet.com/>
- * Based on Underscore.js 1.4.1 <http://underscorejs.org>
- * (c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.
- * Available under MIT license <http://lodash.com/license>
- */(function(e,t){"use strict";function pt(e){if(e&&e.__wrapped__)return e;if(!(this instanceof pt))return new pt(e);this.__wrapped__=e}function Tt(e,t,n){t||(t=0);var r=e.length,i=r-t>=(n||f),s=i?{}:e;if(i){var o,u=t-1;while(++u<r)o=e[u]+"",(N.call(s,o)?s[o]:s[o]=[]).push(e[u])}return function(e){if(i){var n=e+"";return N.call(s,n)&&jn(s[n],e)>-1}return jn(s,e,t)>-1}}function Nt(e,n){var r=e.index,i=n.index;e=e.criteria,n=n.criteria;if(e!==n){if(e>n||e===t)return 1;if(e<n||n===t)return-1}return r<i?-1:1}function Ct(e,t,n){function o(){var u=arguments,a=i?this:t;r||(e=t[s]),n.length&&(u=u.length?n.concat(L.call(u)):n);if(this instanceof o){Mt.prototype=e.prototype,a=new Mt;var f=e.apply(a,u);return f&&ct[typeof f]?f:a}return e.apply(a,u)}var r=Bt(e),i=!n,s=e;return i&&(n=t),o}function kt(e,n){return e?typeof e!="function"?function(t){return t[e]}:n!==t?function(t,r,i){return e.call(n,t,r,i)}:e:pr}function Lt(){var e=-1,t=arguments.length,n={bottom:"",hasDontEnumBug:Q,isKeysFast:ot,noArgsEnum:Z,noCharByIndex:nt,shadowed:S,top:"",useHas:!0,useStrict:ut,arrayBranch:{},objectBranch:{}};while(++e<t){var i=arguments[e];for(var s in i){var o=i[s];/beforeLoop|inLoop/.test(s)?(typeof o=="string"&&(o={array:o,object:o}),n.arrayBranch[s]=o.array,n.objectBranch[s]=o.object):n[s]=o}}var u=n.args,a=/^[^,]+/.exec(u)[0],f=n.init;n.firstArg=a,n.init=f==null?a:f;if(a!="collection"||!n.arrayBranch.inLoop)n.arrayBranch=null;var l=Function("arrayLikeClasses, ArrayProto, bind, compareAscending, concat, createCallback, forIn, hasOwnProperty, indexOf, isArguments, isArray, isFunction, isPlainObject, objectClass, objectTypes, nativeKeys, propertyIsEnumerable, slice, stringClass, toString, undefined","var callee = function("+u+") {\n"+dt(n)+"\n};\n"+"return callee");return l(ft,r,er,Nt,T,kt,Xt,N,jn,Pt,Ht,Bt,jt,X,ct,H,k,L,$,A)}function At(e){return"\\"+ht[e]}function Ot(e){return qt[e]}function Mt(){}function _t(e){return Rt[e]}function Pt(e){return A.call(e)==I}function Bt(e){return typeof e=="function"}function Ft(e){var t=!1;if(!e||typeof e!="object"||Pt(e))return t;var n=e.constructor;return(!rt||typeof e.toString=="function"||typeof (e+"")!="string")&&(!Bt(n)||n instanceof n)?Y?(Xt(e,function(e,n,r){return t=!N.call(r,n),!1}),t===!1):(Xt(e,function(e,n){t=n}),t===!1||N.call(e,t)):t}function Ut(e,t,n,r,i){if(e==null)return e;n&&(t=!1);var s=ct[typeof e];if(s){var o=A.call(e);if(!lt[o]||et&&Pt(e))return e;var u=o==q;s=u||(o==X?jt(e):s)}if(!s||!t)return s?u?L.call(e):Wt({},e):e;var a=e.constructor;switch(o){case R:return new a(e==1);case U:return new a(+e);case W:case $:return new a(e);case V:return a(e.source,m.exec(e))}r||(r=[]),i||(i=[]);var f=r.length;while(f--)if(r[f]==e)return i[f];var l=u?a(f=e.length):{};r.push(e),i.push(l);if(u){var c=-1;while(++c<f)l[c]=Ut(e[c],t,null,r,i)}else Vt(e,function(e,n){l[n]=Ut(e,t,null,r,i)});return l}function Jt(e,t){return e?N.call(e,t):!1}function Kt(e){return e===!0||e===!1||A.call(e)==R}function Qt(e){return A.call(e)==U}function Gt(e){return e?e.nodeType===1:!1}function Zt(e,t,n,r){if(e==null||t==null)return e===t;if(e===t)return e!==0||1/e==1/t;if(ct[typeof e]||ct[typeof t])e=e.__wrapped__||e,t=t.__wrapped__||t;var i=A.call(e);if(i!=A.call(t))return!1;switch(i){case R:case U:return+e==+t;case W:return e!=+e?t!=+t:e==0?1/e==1/t:e==+t;case V:case $:return e==t+""}var s=ft[i];if(et&&!s&&(s=Pt(e))&&!Pt(t))return!1;if(!s&&(i!=X||rt&&(typeof e.toString!="function"&&typeof (e+"")=="string"||typeof t.toString!="function"&&typeof (t+"")=="string")))return!1;n||(n=[]),r||(r=[]);var o=n.length;while(o--)if(n[o]==e)return r[o]==t;var u=-1,a=!0,f=0;n.push(e),r.push(t);if(s){f=e.length,a=f==t.length;if(a)while(f--)if(!(a=Zt(e[f],t[f],n,r)))break;return a}var l=e.constructor,c=t.constructor;if(l!=c&&!(Bt(l)&&l instanceof l&&Bt(c)&&c instanceof c))return!1;for(var h in e)if(N.call(e,h)){f++;if(!N.call(t,h)||!Zt(e[h],t[h],n,r))return!1}for(h in t)if(N.call(t,h)&&!(f--))return!1;if(Q)while(++u<7){h=S[u];if(N.call(e,h)&&(!N.call(t,h)||!Zt(e[h],t[h],n,r)))return!1}return!0}function en(e){return P(e)&&A.call(e)==W}function tn(e){return e?ct[typeof e]:!1}function nn(e){return A.call(e)==W&&e!=+e}function rn(e){return e===null}function sn(e){return A.call(e)==W}function on(e){return A.call(e)==V}function un(e){return A.call(e)==$}function an(e){return e===t}function Cn(e,t,n,r){var i=e,s=e?e.length:0,o=arguments.length<3;if(s!==+s){var u=fn(e);s=u.length}else nt&&A.call(e)==$&&(i=e.split(""));return wn(e,function(e,a,f){a=u?u[--s]:--s,n=o?(o=!1,i[a]):t.call(r,n,i[a],a,f)}),n}function Ln(e){var t=e?e.length:0;return t===+t?t:fn(e).length}function Mn(e){if(!e)return[];var t=e.length;return t===+t?(tt?A.call(e)==$:typeof e=="string")?e.split(""):L.call(e):dn(e)}function Dn(e){var t=-1,n=e?e.length:0,r=[];while(++t<n)e[t]&&r.push(e[t]);return r}function Pn(e){var t=[];if(!e)return t;var n=-1,i=e.length,s=T.apply(r,arguments),o=Tt(s,i);while(++n<i){var u=e[n];o(u)||t.push(u)}return t}function Hn(e,t,n){if(e)return t==null||n?e[0]:L.call(e,0,t)}function Bn(e,t){var n,r=-1,i=e?e.length:0,s=[];while(++r<i)n=e[r],Ht(n)?C.apply(s,t?n:Bn(n)):s.push(n);return s}function jn(e,t,n){var r=-1,i=e?e.length:0;if(typeof n=="number")r=(n<0?B(0,i+n):n||0)-1;else if(n)return r=Jn(e,t),e[r]===t?r:-1;while(++r<i)if(e[r]===t)return r;return-1}function Fn(e,t,n){return e?L.call(e,0,-(t==null||n?1:t)):[]}function In(e){var t=arguments.length,n=[],r=-1,i=e?e.length:0,s=[];e:while(++r<i){var o=e[r];if(jn(s,o)<0){for(var u=1;u<t;u++)if(!(n[u]||(n[u]=Tt(arguments[u])))(o))continue e;s.push(o)}}return s}function qn(e,t,n){if(e){var r=e.length;return t==null||n?e[r-1]:L.call(e,-t||r)}}function Rn(e,t,n){var r=e?e.length:0;typeof n=="number"&&(r=(n<0?B(0,r+n):j(n,r-1))+1);while(r--)if(e[r]===t)return r;return-1}function Un(e,t,n){var r,i=-Infinity,s=-1,o=e?e.length:0,u=i;t=kt(t,n);while(++s<o)r=t(e[s],s,e),r>i&&(i=r,u=e[s]);return u}function zn(e,t,n){var r,i=Infinity,s=-1,o=e?e.length:0,u=i;t=kt(t,n);while(++s<o)r=t(e[s],s,e),r<i&&(i=r,u=e[s]);return u}function Wn(e,t){var n=-1,r=e?e.length:0,i={};while(++n<r)t?i[e[n]]=t[n]:i[e[n][0]]=e[n][1];return i}function Xn(e,t,n){e=+e||0,n=+n||1,t==null&&(t=e,e=0);var r=-1,i=B(0,Math.ceil((t-e)/n)),s=Array(i);while(++r<i)s[r]=e,e+=n;return s}function Vn(e,t,n){return e?L.call(e,t==null||n?1:t):[]}function $n(e){var t=-1,n=e?e.length:0,r=Array(n);while(++t<n){var i=M(F()*(t+1));r[t]=r[i],r[i]=e[t]}return r}function Jn(e,t,n,r){var i=0,s=e?e.length:i;n=kt(n,r),t=n(t);while(i<s){var o=i+s>>>1;n(e[o])<t?i=o+1:s=o}return i}function Kn(){var e=-1,t=T.apply(r,arguments),n=t.length,i=[];while(++e<n)jn(i,t[e])<0&&i.push(t[e]);return i}function Qn(e,t,n,r){var i=-1,s=e?e.length:0,o=[],u=[];typeof t=="function"&&(r=n,n=t,t=!1),n=kt(n,r);while(++i<s){var a=n(e[i],i,e);if(t?!i||u[u.length-1]!==a:jn(u,a)<0)u.push(a),o.push(e[i])}return o}function Gn(e){var t=-1,n=e?e.length:0,r=Tt(arguments,1,20),i=[];while(++t<n){var s=e[t];r(s)||i.push(s)}return i}function Yn(e){var t=-1,n=e?Un(Tn(arguments,"length")):0,r=Array(n);while(++t<n)r[t]=Tn(arguments,t);return r}function Zn(e,t){return e<1?t():function(){if(--e<1)return t.apply(this,arguments)}}function er(e,t){return st||O&&arguments.length>2?O.call.apply(O,arguments):Ct(e,t,L.call(arguments,2))}function nr(){var e=arguments;return function(){var t=arguments,n=e.length;while(n--)t=[e[n].apply(this,t)];return t[0]}}function rr(e,t,n){function u(){o=null,n||(i=e.apply(s,r))}var r,i,s,o;return function(){var a=n&&!o;return r=arguments,s=this,J(o),o=K(u,t),a&&(i=e.apply(s,r)),i}}function ir(e,n){var r=L.call(arguments,2);return K(function(){return e.apply(t,r)},n)}function sr(e){var n=L.call(arguments,1);return K(function(){return e.apply(t,n)},1)}function or(e,t){return Ct(t,e,L.call(arguments,2))}function ur(e,t){var n={};return function(){var r=t?t.apply(this,arguments):arguments[0];return N.call(n,r)?n[r]:n[r]=e.apply(this,arguments)}}function ar(e){var t,n=!1;return function(){return n?t:(n=!0,t=e.apply(this,arguments),e=null,t)}}function fr(e){return Ct(e,L.call(arguments,1))}function lr(e,t){function u(){o=new Date,s=null,r=e.apply(i,n)}var n,r,i,s,o=0;return function(){var a=new Date,f=t-(a-o);return n=arguments,i=this,f<=0?(o=a,r=e.apply(i,n)):s||(s=K(u,f)),r}}function cr(e,t){return function(){var n=[e];return arguments.length&&C.apply(n,arguments),t.apply(this,n)}}function hr(e){return e==null?"":(e+"").replace(w,Ot)}function pr(e){return e}function dr(e){wn($t(e),function(t){var n=pt[t]=e[t];pt.prototype[t]=function(){var e=[this.__wrapped__];arguments.length&&C.apply(e,arguments);var t=n.apply(pt,e);return this.__chain__&&(t=new pt(t),t.__chain__=!0),t}})}function vr(){return e._=l,this}function mr(e,t){return e==null&&t==null&&(t=1),e=+e||0,t==null&&(t=e,e=0),e+M(F()*((+t||0)-e+1))}function gr(e,t){var n=e?e[t]:null;return Bt(n)?e[t]():n}function yr(e,t,n){e+="",n||(n={});var r,i,s=0,o=pt.templateSettings,u="__p += '",a=n.variable||o.variable,f=a,l=RegExp((n.escape||o.escape||b).source+"|"+(n.interpolate||o.interpolate||b).source+"|"+(n.evaluate||o.evaluate||b).source+"|$","g");e.replace(l,function(t,n,i,o,a){u+=e.slice(s,a).replace(E,At),u+=n?"' +\n__e("+n+") +\n'":o?"';\n"+o+";\n__p += '":i?"' +\n((__t = ("+i+")) == null ? '' : __t) +\n'":"",r||(r=o||c.test(n||i)),s=a+t.length}),u+="';\n";if(!f){a="obj";if(r)u="with ("+a+") {\n"+u+"\n}\n";else{var h=RegExp("(\\(\\s*)"+a+"\\."+a+"\\b","g");u=u.replace(g,"$&"+a+".").replace(h,"$1__d")}}u=(r?u.replace(p,""):u).replace(d,"$1").replace(v,"$1;"),u="function("+a+") {\n"+(f?"":a+" || ("+a+" = {});\n")+"var __t, __p = '', __e = _.escape"+(r?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":(f?"":", __d = "+a+"."+a+" || "+a)+";\n")+u+"return __p\n}";var m=at?"\n//@ sourceURL=/lodash/template/source["+x++ +"]":"";try{i=Function("_","return "+u+m)(pt)}catch(y){throw y.source=u,y}return t?i(t):(i.source=u,i)}function br(e,t,n){e=+e||0;var r=-1,i=Array(e);while(++r<e)i[r]=t.call(n,r);return i}function wr(e){return e==null?"":(e+"").replace(h,_t)}function Er(e){var t=a++;return e?e+t:t}function Sr(e){return e=new pt(e),e.__chain__=!0,e}function xr(e,t){return t(e),e}function Tr(){return this.__chain__=!0,this}function Nr(){return this.__wrapped__}var n=typeof exports=="object"&&exports&&(typeof global=="object"&&global&&global==global.global&&(e=global),exports),r=Array.prototype,i=Boolean.prototype,s=Object.prototype,o=Number.prototype,u=String.prototype,a=0,f=30,l=e._,c=/[-?+=!~*%&^<>|{(\/]|\[\D|\b(?:delete|in|instanceof|new|typeof|void)\b/,h=/&(?:amp|lt|gt|quot|#x27);/g,p=/\b__p \+= '';/g,d=/\b(__p \+=) '' \+/g,v=/(__e\(.*?\)|\b__t\)) \+\n'';/g,m=/\w*$/,g=/(?:__e|__t = )\(\s*(?![\d\s"']|this\.)/g,y=RegExp("^"+(s.valueOf+"").replace(/[.*+?^=!:${}()|[\]\/\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),b=/($^)/,w=/[&<>"']/g,E=/['\n\r\t\u2028\u2029\\]/g,S=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],x=0,T=r.concat,N=s.hasOwnProperty,C=r.push,k=s.propertyIsEnumerable,L=r.slice,A=s.toString,O=y.test(O=L.bind)&&O,M=Math.floor,_=y.test(_=Object.getPrototypeOf)&&_,D=y.test(D=Array.isArray)&&D,P=e.isFinite,H=y.test(H=Object.keys)&&H,B=Math.max,j=Math.min,F=Math.random,I="[object Arguments]",q="[object Array]",R="[object Boolean]",U="[object Date]",z="[object Function]",W="[object Number]",X="[object Object]",V="[object RegExp]",$="[object String]",J=e.clearTimeout,K=e.setTimeout,Q,G,Y,Z=!0;(function(){function n(){this.x=1}var e={0:1,length:1},t=[];n.prototype={valueOf:1,y:1};for(var r in new n)t.push(r);for(r in arguments)Z=!r;Q=(t+"").length<4,Y=t[0]!="x",G=(t.splice.call(e,0,1),e[0])})(1);var et=!Pt(arguments),tt=L.call("x")[0]!="x",nt="x"[0]+Object("x")[0]!="xx";try{var rt=({toString:0}+"",A.call(e.document||0)==X)}catch(it){}var st=O&&/\n|Opera/.test(O+A.call(e.opera)),ot=H&&/^.+$|true/.test(H+!!e.attachEvent),ut=!st;try{var at=(Function("//@")(),!e.attachEvent)}catch(it){}var ft={};ft[R]=ft[U]=ft[z]=ft[W]=ft[X]=ft[V]=!1,ft[I]=ft[q]=ft[$]=!0;var lt={};lt[I]=lt[z]=!1,lt[q]=lt[R]=lt[U]=lt[W]=lt[X]=lt[V]=lt[$]=!0;var ct={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,"undefined":!1,unknown:!0},ht={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"};pt.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:""};var dt=yr("<% if (useStrict) { %>'use strict';\n<% } %>var index, value, iteratee = <%= firstArg %>, result<% if (init) { %> = <%= init %><% } %>;\nif (!<%= firstArg %>) return result;\n<%= top %>;\n<% if (arrayBranch) { %>var length = iteratee.length; index = -1; <% if (objectBranch) { %>\nif (length === +length) {<% } %> <% if (noCharByIndex) { %>\n if (toString.call(iteratee) == stringClass) {\n iteratee = iteratee.split('')\n } <% } %>\n <%= arrayBranch.beforeLoop %>;\n while (++index < length) {\n value = iteratee[index];\n <%= arrayBranch.inLoop %>\n } <% if (objectBranch) { %>\n}<% } %><% } %><% if (objectBranch) { %> <% if (arrayBranch) { %>\nelse { <% } else if (noArgsEnum) { %>\n var length = iteratee.length; index = -1;\n if (length && isArguments(iteratee)) {\n while (++index < length) {\n value = iteratee[index += ''];\n <%= objectBranch.inLoop %>\n }\n } else { <% } %> <% if (!hasDontEnumBug) { %>\n var skipProto = typeof iteratee == 'function' && \n propertyIsEnumerable.call(iteratee, 'prototype');\n <% } %> <% if (isKeysFast && useHas) { %>\n var ownIndex = -1,\n ownProps = objectTypes[typeof iteratee] ? nativeKeys(iteratee) : [],\n length = ownProps.length;\n\n <%= objectBranch.beforeLoop %>;\n while (++ownIndex < length) {\n index = ownProps[ownIndex];\n <% if (!hasDontEnumBug) { %>if (!(skipProto && index == 'prototype')) {\n <% } %> value = iteratee[index];\n <%= objectBranch.inLoop %>\n <% if (!hasDontEnumBug) { %>}\n<% } %> } <% } else { %>\n <%= objectBranch.beforeLoop %>;\n for (index in iteratee) {<% if (!hasDontEnumBug || useHas) { %>\n if (<% if (!hasDontEnumBug) { %>!(skipProto && index == 'prototype')<% } if (!hasDontEnumBug && useHas) { %> && <% } if (useHas) { %>hasOwnProperty.call(iteratee, index)<% } %>) { <% } %>\n value = iteratee[index];\n <%= objectBranch.inLoop %>; <% if (!hasDontEnumBug || useHas) { %>\n }<% } %>\n } <% } %> <% if (hasDontEnumBug) { %>\n\n var ctor = iteratee.constructor;\n <% for (var k = 0; k < 7; k++) { %>\n index = '<%= shadowed[k] %>';\n if (<% if (shadowed[k] == 'constructor') { %>!(ctor && ctor.prototype === iteratee) && <% } %>hasOwnProperty.call(iteratee, index)) {\n value = iteratee[index];\n <%= objectBranch.inLoop %>\n } <% } %> <% } %> <% if (arrayBranch || noArgsEnum) { %>\n}<% } %><% } %>\n<%= bottom %>;\nreturn result"),vt={args:"collection, callback, thisArg",init:"collection",top:"callback = createCallback(callback, thisArg)",inLoop:"if (callback(value, index, collection) === false) return result"},mt={init:"{}",top:"callback = createCallback(callback, thisArg)",inLoop:"var prop = callback(value, index, collection);\n(hasOwnProperty.call(result, prop) ? result[prop]++ : result[prop] = 1)"},gt={init:"true",inLoop:"if (!callback(value, index, collection)) return !result"},yt={useHas:!1,useStrict:!1,args:"object",init:"object",top:"for (var argsIndex = 1, argsLength = arguments.length; argsIndex < argsLength; argsIndex++) {\n if (iteratee = arguments[argsIndex]) {",inLoop:"result[index] = value",bottom:" }\n}"},bt={init:"[]",inLoop:"callback(value, index, collection) && result.push(value)"},wt={top:"callback = createCallback(callback, thisArg)"},Et={inLoop:{object:vt.inLoop}},St={init:!1,beforeLoop:{array:"result = Array(length)",object:"result = "+(ot?"Array(length)":"[]")},inLoop:{array:"result[index] = callback(value, index, collection)",object:"result"+(ot?"[ownIndex] = ":".push")+"(callback(value, index, collection))"}},xt={useHas:!1,args:"object, callback, thisArg",init:"{}",top:"var isFunc = typeof callback == 'function';\nif (isFunc) callback = createCallback(callback, thisArg);\nelse var props = concat.apply(ArrayProto, arguments)",inLoop:"if (isFunc\n ? !callback(value, index, object)\n : indexOf(props, index) < 0\n) result[index] = value"},Dt=Lt({args:"object",init:"{}",inLoop:"result[value] = index"});et&&(Pt=function(e){return e?N.call(e,"callee"):!1});var Ht=D||function(e){return A.call(e)==q};Bt(/x/)&&(Bt=function(e){return A.call(e)==z});var jt=_?function(e){if(!e||typeof e!="object")return!1;var t=e.valueOf,n=typeof t=="function"&&(n=_(t))&&_(n);return n?e==n||_(e)==n&&!Pt(e):Ft(e)}:Ft,It=Lt({args:"object",init:"[]",inLoop:"result.push(index)"}),qt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"},Rt=Dt(qt),zt=Lt(yt,{inLoop:"if (result[index] == null) "+yt.inLoop}),Wt=Lt(yt),Xt=Lt(vt,wt,Et,{useHas:!1}),Vt=Lt(vt,wt,Et),$t=Lt({useHas:!1,args:"object",init:"[]",inLoop:"if (isFunction(value)) result.push(index)",bottom:"result.sort()"}),Yt=Lt({args:"value",init:"true",top:"var className = toString.call(value),\n length = value.length;\nif (arrayLikeClasses[className]"+(et?" || isArguments(value)":"")+" ||\n"+" (className == objectClass && length === +length &&\n"+" isFunction(value.splice))"+") return !length",inLoop:{object:"return false"}}),fn=H?function(e){var t=typeof e;return t=="function"&&k.call(e,"prototype")?It(e):e&&ct[t]?H(e):[]}:It,ln=Lt(yt,{args:"object, source, indicator",top:"var isArr, args = arguments, argsIndex = 0;\nif (indicator == compareAscending) {\n var argsLength = 2, stackA = args[3], stackB = args[4]\n} else {\n var argsLength = args.length, stackA = [], stackB = []\n}\nwhile (++argsIndex < argsLength) {\n if (iteratee = args[argsIndex]) {",inLoop:"if ((source = value) && ((isArr = isArray(source)) || isPlainObject(source))) {\n var found = false, stackLength = stackA.length;\n while (stackLength--) {\n if (found = stackA[stackLength] == source) break\n }\n if (found) {\n result[index] = stackB[stackLength]\n } else {\n stackA.push(source);\n stackB.push(value = (value = result[index]) && isArr\n ? (isArray(value) ? value : [])\n : (isPlainObject(value) ? value : {})\n );\n result[index] = callee(value, source, compareAscending, stackA, stackB)\n }\n} else if (source != null) {\n result[index] = source\n}"}),cn=Lt(xt),hn=Lt({args:"object",init:"[]",inLoop:"result"+(ot?"[ownIndex] = ":".push")+"([index, value])"}),pn=Lt(xt,{top:"if (typeof callback != 'function') {\n var prop,\n props = concat.apply(ArrayProto, arguments),\n length = props.length;\n for (index = 1; index < length; index++) {\n prop = props[index];\n if (prop in object) result[prop] = object[prop]\n }\n} else {\n callback = createCallback(callback, thisArg)",inLoop:"if (callback(value, index, object)) result[index] = value",bottom:"}"}),dn=Lt({args:"object",init:"[]",inLoop:"result.push(value)"}),vn=Lt({args:"collection, target",init:"false",noCharByIndex:!1,beforeLoop:{array:"if (toString.call(collection) == stringClass) return collection.indexOf(target) > -1"},inLoop:"if (value === target) return true"}),mn=Lt(vt,mt),gn=Lt(vt,gt),yn=Lt(vt,bt),bn=Lt(vt,wt,{init:!1,inLoop:"if (callback(value, index, collection)) return value"}),wn=Lt(vt,wt),En=Lt(vt,mt,{inLoop:"var prop = callback(value, index, collection);\n(hasOwnProperty.call(result, prop) ? result[prop] : result[prop] = []).push(value)"}),Sn=Lt(St,{args:"collection, methodName",top:"var args = slice.call(arguments, 2),\n isFunc = typeof methodName == 'function'",inLoop:{array:"result[index] = (isFunc ? methodName : value[methodName]).apply(value, args)",object:"result"+(ot?"[ownIndex] = ":".push")+"((isFunc ? methodName : value[methodName]).apply(value, args))"}}),xn=Lt(vt,St),Tn=Lt(St,{args:"collection, property",inLoop:{array:"result[index] = value[property]",object:"result"+(ot?"[ownIndex] = ":".push")+"(value[property])"}}),Nn=Lt({args:"collection, callback, accumulator, thisArg",init:"accumulator",top:"var noaccum = arguments.length < 3;\ncallback = createCallback(callback, thisArg)",beforeLoop:{array:"if (noaccum) result = iteratee[++index]"},inLoop:{array:"result = callback(result, value, index, collection)",object:"result = noaccum\n ? (noaccum = false, value)\n : callback(result, value, index, collection)"}}),kn=Lt(vt,bt,{inLoop:"!"+bt.inLoop}),An=Lt(vt,gt,{init:"false",inLoop:gt.inLoop.replace("!","")}),On=Lt(vt,mt,St,{inLoop:{array:"result[index] = {\n criteria: callback(value, index, collection),\n index: index,\n value: value\n}",object:"result"+(ot?"[ownIndex] = ":".push")+"({\n"+" criteria: callback(value, index, collection),\n"+" index: index,\n"+" value: value\n"+"})"},bottom:"result.sort(compareAscending);\nlength = result.length;\nwhile (length--) {\n result[length] = result[length].value\n}"}),_n=Lt(bt,{args:"collection, properties",top:"var props = [];\nforIn(properties, function(value, prop) { props.push(prop) });\nvar propsLength = props.length",inLoop:"for (var prop, pass = true, propIndex = 0; propIndex < propsLength; propIndex++) {\n prop = props[propIndex];\n if (!(pass = value[prop] === properties[prop])) break\n}\npass && result.push(value)"}),tr=Lt({useHas:!1,useStrict:!1,args:"object",top:"var funcs = arguments,\n length = funcs.length;\nif (length > 1) {\n for (var index = 1; index < length; index++) {\n result[funcs[index]] = bind(result[funcs[index]], result)\n }\n return result\n}",inLoop:"if (isFunction(value)) {\n result[index] = bind(value, result)\n}"});pt.VERSION="0.8.1",pt.after=Zn,pt.bind=er,pt.bindAll=tr,pt.chain=Sr,pt.clone=Ut,pt.compact=Dn,pt.compose=nr,pt.contains=vn,pt.countBy=mn,pt.debounce=rr,pt.defaults=zt,pt.defer=sr,pt.delay=ir,pt.difference=Pn,pt.escape=hr,pt.every=gn,pt.extend=Wt,pt.filter=yn,pt.find=bn,pt.first=Hn,pt.flatten=Bn,pt.forEach=wn,pt.forIn=Xt,pt.forOwn=Vt,pt.functions=$t,pt.groupBy=En,pt.has=Jt,pt.identity=pr,pt.indexOf=jn,pt.initial=Fn,pt.intersection=In,pt.invert=Dt,pt.invoke=Sn,pt.isArguments=Pt,pt.isArray=Ht,pt.isBoolean=Kt,pt.isDate=Qt,pt.isElement=Gt,pt.isEmpty=Yt,pt.isEqual=Zt,pt.isFinite=en,pt.isFunction=Bt,pt.isNaN=nn,pt.isNull=rn,pt.isNumber=sn,pt.isObject=tn,pt.isPlainObject=jt,pt.isRegExp=on,pt.isString=un,pt.isUndefined=an,pt.keys=fn,pt.last=qn,pt.lastIndexOf=Rn,pt.lateBind=or,pt.map=xn,pt.max=Un,pt.memoize=ur,pt.merge=ln,pt.min=zn,pt.mixin=dr,pt.noConflict=vr,pt.object=Wn,pt.omit=cn,pt.once=ar,pt.pairs=hn,pt.partial=fr,pt.pick=pn,pt.pluck=Tn,pt.random=mr,pt.range=Xn,pt.reduce=Nn,pt.reduceRight=Cn,pt.reject=kn,pt.rest=Vn,pt.result=gr,pt.shuffle=$n,pt.size=Ln,pt.some=An,pt.sortBy=On,pt.sortedIndex=Jn,pt.tap=xr,pt.template=yr,pt.throttle=lr,pt.times=br,pt.toArray=Mn,pt.unescape=wr,pt.union=Kn,pt.uniq=Qn,pt.uniqueId=Er,pt.values=dn,pt.where=_n,pt.without=Gn,pt.wrap=cr,pt.zip=Yn,pt.all=gn,pt.any=An,pt.collect=xn,pt.detect=bn,pt.drop=Vn,pt.each=wn,pt.foldl=Nn,pt.foldr=Cn,pt.head=Hn,pt.include=vn,pt.inject=Nn,pt.methods=$t,pt.select=yn,pt.tail=Vn,pt.take=Hn,pt.unique=Qn,pt._iteratorTemplate=dt,pt._shimKeys=It,dr(pt),pt.prototype.chain=Tr,pt.prototype.value=Nr,wn(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=r[e];pt.prototype[e]=function(){var e=this.__wrapped__;return t.apply(e,arguments),G&&e.length===0&&delete e[0],this.__chain__&&(e=new pt(e),e.__chain__=!0),e}}),wn(["concat","join","slice"],function(e){var t=r[e];pt.prototype[e]=function(){var e=this.__wrapped__,n=t.apply(e,arguments);return this.__chain__&&(n=new pt(n),n.__chain__=!0),n}}),typeof define=="function"&&typeof define.amd=="object"&&define.amd?(e._=pt,define(function(){return pt})):n?typeof module=="object"&&module&&module.exports==n?(module.exports=pt)._=pt:n._=pt:e._=pt})(this);
Please sign in to comment.
Something went wrong with that request. Please try again.