lodash.min.js 17 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*!
  2. Lo-Dash 0.9.2 lodash.com/license
  3. Underscore.js 1.4.2 underscorejs.org/LICENSE
  4. */
  5. ;(function(n,t){function r(n){return n&&n.__wrapped__?n:this instanceof r?(this.__wrapped__=n,void 0):new r(n)}function e(n,t,r){t||(t=0);var e=n.length,u=e-t>=(r||nt);if(u)for(var o={},r=t-1;++r<e;){var i=n[r]+"";(bt.call(o,i)?o[i]:o[i]=[]).push(n[r])}return function(r){if(u){var e=r+"";return bt.call(o,e)&&-1<D(o[e],r)}return-1<D(n,r,t)}}function u(n){return n.charCodeAt(0)}function o(n,r){var e=n.b,u=r.b,n=n.a,r=r.a;if(n!==r){if(n>r||n===t)return 1;if(n<r||r===t)return-1}return e<u?-1:1}function i(n,t,r){function e(){var a=arguments,c=o?this:t;
  6. return u||(n=t[i]),r.length&&(a=a.length?r.concat(kt.call(a)):r),this instanceof e?(s.prototype=n.prototype,c=new s,a=n.apply(c,a),w(a)?a:c):n.apply(c,a)}var u=b(n),o=!r,i=n;return o&&(r=t),e}function a(n,r){return n?typeof n!="function"?function(t){return t[n]}:r!==t?function(t,e,u){return n.call(r,t,e,u)}:n:L}function c(){for(var n,t={b:"",c:"",e:Q,f:Qt,g:"",h:Lt,i:Gt,j:gt,k:"",l:V},r=0;n=arguments[r];r++)for(var e in n)t[e]=n[e];if(n=t.a,t.d=/^[^,]+/.exec(n)[0],r="var h,v,k="+t.d+",s="+t.d+";if(!"+t.d+")return s;"+t.k+";",t.b?(r+="var l=k.length;h=-1;if(typeof l=='number'){",t.i&&(r+="if(j(k)){k=k.split('')}"),r+="while(++h<l){v=k[h];"+t.b+"}}else {"):t.h&&(r+="var l=k.length;h=-1;if(l&&i(k)){while(++h<l){v=k[h+=''];"+t.g+"}}else {"),t.e||(r+="var t=typeof k=='function'&&r.call(k,'prototype');"),t.f&&t.l?(r+="var p=-1,q=o[typeof k]?m(k):[],l=q.length;while(++p<l){h=q[p];",t.e||(r+="if(!(t&&h=='prototype')){"),r+="v=k[h];"+t.g,t.e||(r+="}")):(r+="for(h in k){",(!t.e||t.l)&&(r+="if(",t.e||(r+="!(t&&h=='prototype')"),!t.e&&t.l&&(r+="&&"),t.l&&(r+="g.call(k,h)"),r+="){"),r+="v=k[h];"+t.g+";",(!t.e||t.l)&&(r+="}")),r+="}",t.e)for(r+="var f=k.constructor;",e=0;7>e;e++)r+="h='"+t.j[e]+"';if(","constructor"==t.j[e]&&(r+="!(f&&f.prototype===k)&&"),r+="g.call(k,h)){v=k[h];"+t.g+"}";
  7. return(t.b||t.h)&&(r+="}"),r+=t.c+";return s",Function("e,g,i,j,o,m,r","return function("+n+"){"+r+"}")(a,bt,h,j,Xt,$t,jt)}function f(n){return"\\"+Yt[n]}function l(n){return ur[n]}function s(){}function p(n){return or[n]}function h(n){return xt.call(n)==It}function v(n){var t=H;if(!n||typeof n!="object"||h(n))return t;var r=n.constructor;return Ht&&typeof n.toString!="function"&&typeof(n+"")=="string"||b(r)&&!(r instanceof r)?t:W?(rr(n,function(n,r,e){return t=!bt.call(e,r),H}),t===H):(rr(n,function(n,r){t=r
  8. }),t===H||bt.call(n,t))}function g(n){var t=[];return er(n,function(n,r){t.push(r)}),t}function _(n,t,r,e,u){if(n==G)return n;if(r&&(t=H),r=w(n)){var o=xt.call(n);if(!Wt[o]||Ut&&h(n))return n;var i=o==Rt,r=i||(o==Mt?fr(n):r)}if(!r||!t)return r?i?kt.call(n):ar({},n):n;switch(r=n.constructor,o){case Tt:case Bt:return new r(+n);case Dt:case zt:return new r(n);case Pt:return r(n.source,at.exec(n))}for(e||(e=[]),u||(u=[]),o=e.length;o--;)if(e[o]==n)return u[o];var a=i?r(n.length):{};return e.push(n),u.push(a),(i?sr:er)(n,function(n,r){a[r]=_(n,t,G,e,u)
  9. }),a}function y(n){var t=[];return rr(n,function(n,r){b(n)&&t.push(r)}),t.sort()}function m(n){var t={};return er(n,function(n,r){t[n]=r}),t}function d(n,t,r,e){if(n===t)return 0!==n||1/n==1/t;if(n==G||t==G)return n===t;var u=xt.call(n);if(u!=xt.call(t))return H;switch(u){case Tt:case Bt:return+n==+t;case Dt:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case Pt:case zt:return n==t+""}var o=u==Rt||u==It;if(Ut&&!o&&(o=h(n))&&!h(t))return H;if(!o){if(n.__wrapped__||t.__wrapped__)return d(n.__wrapped__||n,t.__wrapped__||t);
  10. if(u!=Mt||Ht&&(typeof n.toString!="function"&&typeof(n+"")=="string"||typeof t.toString!="function"&&typeof(t+"")=="string"))return H;var u=n.constructor,i=t.constructor;if(u!=i&&(!b(u)||!(u instanceof u&&b(i)&&i instanceof i)))return H}for(r||(r=[]),e||(e=[]),u=r.length;u--;)if(r[u]==n)return e[u]==t;var u=-1,i=V,a=0;if(r.push(n),e.push(t),o){if(a=n.length,i=a==t.length)for(;a--&&(i=d(n[a],t[a],r,e)););return i}for(var c in n)if(bt.call(n,c)&&(a++,!bt.call(t,c)||!d(n[c],t[c],r,e)))return H;for(c in t)if(bt.call(t,c)&&!a--)return H;
  11. if(Q)for(;7>++u;)if(c=gt[u],bt.call(n,c)&&(!bt.call(t,c)||!d(n[c],t[c],r,e)))return H;return V}function b(n){return typeof n=="function"}function w(n){return n?Xt[typeof n]:H}function j(n){return xt.call(n)==zt}function k(n,t,r){var e=arguments,u=0,o=2,i=e[3],a=e[4];for(r!==Y&&(i=[],a=[],o=e.length);++u<o;)er(e[u],function(t,r){var e,u,o;if(t&&((u=cr(t))||fr(t))){for(var c=i.length;c--&&!(e=i[c]==t););e?n[r]=a[c]:(i.push(t),a.push((o=n[r],o=u?cr(o)?o:[]:fr(o)?o:{})),n[r]=k(o,t,Y,i,a))}else t!=G&&(n[r]=t)
  12. });return n}function x(n){var t=[];return er(n,function(n){t.push(n)}),t}function O(n,t,r){var e=-1,u=n?n.length:0,r=(0>r?qt(0,u+r):r)||0;return typeof u=="number"?-1<(j(n)?n.indexOf(t,r):D(n,t,r)):R(n,function(n){return++e>=r&&n===t})}function A(n,t,r){var e=V,t=a(t,r);if(cr(n))for(var r=-1,u=n.length;++r<u&&(e=!!t(n[r],r,n)););else sr(n,function(n,r,u){return e=!!t(n,r,u)});return e}function S(n,t,r){var e=[],t=a(t,r);return sr(n,function(n,r,u){t(n,r,u)&&e.push(n)}),e}function E(n,t,r){var e,t=a(t,r);
  13. return sr(n,function(n,r,u){return t(n,r,u)?(e=n,H):void 0}),e}function $(n,t,r){var e=-1,u=n?n.length:0,o=Array(typeof u=="number"?u:0),t=a(t,r);if(cr(n))for(;++e<u;)o[e]=t(n[e],e,n);else sr(n,function(n,r,u){o[++e]=t(n,r,u)});return o}function q(n,t,r){var e=-1/0,o=-1,i=n?n.length:0,c=e;if(t||!cr(n))t=!t&&j(n)?u:a(t,r),sr(n,function(n,r,u){r=t(n,r,u),r>e&&(e=r,c=n)});else for(;++o<i;)n[o]>c&&(c=n[o]);return c}function N(n,t){var r=[];return sr(n,function(n){r.push(n[t])}),r}function F(n,t,r,e){var u=3>arguments.length,t=a(t,e);
  14. return sr(n,function(n,e,o){r=u?(u=H,n):t(r,n,e,o)}),r}function I(n,t,r,e){var u=n,o=n?n.length:0,i=3>arguments.length;if(typeof o!="number")var a=lr(n),o=a.length;else Gt&&j(n)&&(u=n.split(""));return sr(n,function(n,c,f){c=a?a[--o]:--o,r=i?(i=H,u[c]):t.call(e,r,u[c],c,f)}),r}function R(n,t,r){var e,t=a(t,r);if(cr(n))for(var r=-1,u=n.length;++r<u&&!(e=t(n[r],r,n)););else sr(n,function(n,r,u){return!(e=t(n,r,u))});return!!e}function T(n,t,r){return n?t==G||r?n[0]:kt.call(n,0,t):void 0}function B(n,t){for(var r=-1,e=n?n.length:0,u=[];++r<e;){var o=n[r];
  15. cr(o)?wt.apply(u,t?o:B(o)):u.push(o)}return u}function D(n,t,r){var e=-1,u=n?n.length:0;if(typeof r=="number")e=(0>r?qt(0,u+r):r||0)-1;else if(r)return e=P(n,t),n[e]===t?e:-1;for(;++e<u;)if(n[e]===t)return e;return-1}function M(n,t,r){return n?kt.call(n,t==G||r?1:t):[]}function P(n,t,r,e){for(var u=0,o=n?n.length:u,r=r?a(r,e):L,t=r(t);u<o;)e=u+o>>>1,r(n[e])<t?u=e+1:o=e;return u}function z(n,t,r,e){var u=-1,o=n?n.length:0,i=[],c=i;typeof t=="function"&&(e=r,r=t,t=H);var f=!t&&74<o;if(f)var l={};for(r&&(c=[],r=a(r,e));++u<o;){var e=n[u],s=r?r(e,u,n):e;
  16. f&&(c=bt.call(l,s+"")?l[s]:l[s]=[]),(t?!u||c[c.length-1]!==s:0>D(c,s))&&((r||f)&&c.push(s),i.push(e))}return i}function C(n,t){return Kt||Ot&&2<arguments.length?Ot.call.apply(Ot,arguments):i(n,t,kt.call(arguments,2))}function L(n){return n}function U(n){sr(y(n),function(t){var e=r[t]=n[t];r.prototype[t]=function(){var n=[this.__wrapped__];return wt.apply(n,arguments),n=e.apply(r,n),this.__chain__&&(n=new r(n),n.__chain__=V),n}})}var V=!0,G=null,H=!1,J=typeof exports=="object"&&exports,K=typeof global=="object"&&global;
  17. K.global===K&&(n=K);var Q,W,X=[],Y=new function(){},Z=0,nt=30,tt=n._,rt=/[-?+=!~*%&^<>|{(\/]|\[\D|\b(?:delete|in|instanceof|new|typeof|void)\b/,et=/&(?:amp|lt|gt|quot|#x27);/g,ut=/\b__p\+='';/g,ot=/\b(__p\+=)''\+/g,it=/(__e\(.*?\)|\b__t\))\+'';/g,at=/\w*$/,ct=/(?:__e|__t=)\(\s*(?![\d\s"']|this\.)/g,ft=RegExp("^"+(Y.valueOf+"").replace(/[.*+?^=!:${}()|[\]\/\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),lt=/\$\{((?:(?=\\?)\\?[\s\S])*?)}/g,st=/<%=([\s\S]+?)%>/g,pt=/($^)/,ht=/[&<>"']/g,vt=/['\n\r\t\u2028\u2029\\]/g,gt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),_t=Math.ceil,yt=X.concat,mt=Math.floor,dt=ft.test(dt=Object.getPrototypeOf)&&dt,bt=Y.hasOwnProperty,wt=X.push,jt=Y.propertyIsEnumerable,kt=X.slice,xt=Y.toString,Ot=ft.test(Ot=kt.bind)&&Ot,At=ft.test(At=Array.isArray)&&At,St=n.isFinite,Et=n.isNaN,$t=ft.test($t=Object.keys)&&$t,qt=Math.max,Nt=Math.min,Ft=Math.random,It="[object Arguments]",Rt="[object Array]",Tt="[object Boolean]",Bt="[object Date]",Dt="[object Number]",Mt="[object Object]",Pt="[object RegExp]",zt="[object String]",Ct=(Ct={0:1,length:1},X.splice.call(Ct,0,1),Ct[0]),Lt=V;
  18. (function(){function n(){this.x=1}var t=[];n.prototype={valueOf:1,y:1};for(var r in new n)t.push(r);for(r in arguments)Lt=!r;Q=!/valueOf/.test(t),W="x"!=t[0]})(1);var Ut=!h(arguments),Vt="x"!=kt.call("x")[0],Gt="xx"!="x"[0]+Object("x")[0];try{var Ht=xt.call(n.document||0)==Mt}catch(Jt){}var Kt=Ot&&/\n|Opera/.test(Ot+xt.call(n.opera)),Qt=$t&&/^.+$|true/.test($t+!!n.attachEvent),Wt={};Wt[It]=Wt["[object Function]"]=H,Wt[Rt]=Wt[Tt]=Wt[Bt]=Wt[Dt]=Wt[Mt]=Wt[Pt]=Wt[zt]=V;var Xt={"boolean":H,"function":V,object:V,number:H,string:H,undefined:H},Yt={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"};
  19. r.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:st,variable:""};var Zt={a:"d,c,u",k:"c=e(c,u)",b:"if(c(v,h,d)===false)return s",g:"if(c(v,h,d)===false)return s"},nr={l:H,a:"n",k:"for(var a=1,b=arguments.length;a<b;a++){if(k=arguments[a]){",g:"s[h]=v",c:"}}"},tr={b:G};Ut&&(h=function(n){return n?bt.call(n,"callee"):H});var rr=c(Zt,tr,{l:H}),er=c(Zt,tr),ur={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"},or=m(ur),ir=c(nr,{g:"if(s[h]==null)"+nr.g}),ar=c(nr),cr=At||function(n){return xt.call(n)==Rt
  20. };b(/x/)&&(b=function(n){return"[object Function]"==xt.call(n)});var fr=dt?function(n){if(!n||typeof n!="object")return H;var t=n.valueOf,r=typeof t=="function"&&(r=dt(t))&&dt(r);return r?n==r||dt(n)==r&&!h(n):v(n)}:v,lr=$t?function(n){return typeof n=="function"&&jt.call(n,"prototype")?g(n):w(n)?$t(n):[]}:g,sr=c(Zt);r.VERSION="0.9.2",r.after=function(n,t){return 1>n?t():function(){return 1>--n?t.apply(this,arguments):void 0}},r.bind=C,r.bindAll=function(n){for(var t=arguments,r=1<t.length?0:(t=y(n),-1),e=t.length;++r<e;){var u=t[r];
  21. n[u]=C(n[u],n)}return n},r.chain=function(n){return n=new r(n),n.__chain__=V,n},r.clone=_,r.compact=function(n){for(var t=-1,r=n?n.length:0,e=[];++t<r;){var u=n[t];u&&e.push(u)}return e},r.compose=function(){var n=arguments;return function(){for(var t=arguments,r=n.length;r--;)t=[n[r].apply(this,t)];return t[0]}},r.contains=O,r.countBy=function(n,t,r){var e={},t=a(t,r);return sr(n,function(n,r,u){r=t(n,r,u),bt.call(e,r)?e[r]++:e[r]=1}),e},r.debounce=function(n,t,r){function e(){a=G,r||(o=n.apply(i,u))
  22. }var u,o,i,a;return function(){var c=r&&!a;return u=arguments,i=this,clearTimeout(a),a=setTimeout(e,t),c&&(o=n.apply(i,u)),o}},r.defaults=ir,r.defer=function(n){var r=kt.call(arguments,1);return setTimeout(function(){n.apply(t,r)},1)},r.delay=function(n,r){var e=kt.call(arguments,2);return setTimeout(function(){n.apply(t,e)},r)},r.difference=function(n){for(var t=-1,r=n?n.length:0,u=yt.apply(X,arguments),u=e(u,r),o=[];++t<r;){var i=n[t];u(i)||o.push(i)}return o},r.escape=function(n){return n==G?"":(n+"").replace(ht,l)
  23. },r.every=A,r.extend=ar,r.filter=S,r.find=E,r.first=T,r.flatten=B,r.forEach=sr,r.forIn=rr,r.forOwn=er,r.functions=y,r.groupBy=function(n,t,r){var e={},t=a(t,r);return sr(n,function(n,r,u){r=t(n,r,u),(bt.call(e,r)?e[r]:e[r]=[]).push(n)}),e},r.has=function(n,t){return n?bt.call(n,t):H},r.identity=L,r.indexOf=D,r.initial=function(n,t,r){return n?kt.call(n,0,-(t==G||r?1:t)):[]},r.intersection=function(n){var t=arguments,r=t.length,u={},o=[];return sr(n,function(n){if(0>D(o,n)){for(var i=r;--i;)if(!(u[i]||(u[i]=e(t[i])))(n))return;
  24. o.push(n)}}),o},r.invert=m,r.invoke=function(n,t){var r=kt.call(arguments,2),e=typeof t=="function",u=[];return sr(n,function(n){u.push((e?t:n[t]).apply(n,r))}),u},r.isArguments=h,r.isArray=cr,r.isBoolean=function(n){return n===V||n===H||xt.call(n)==Tt},r.isDate=function(n){return xt.call(n)==Bt},r.isElement=function(n){return n?1===n.nodeType:H},r.isEmpty=function(n){var t=V;if(!n)return t;var r=xt.call(n),e=n.length;return r==Rt||r==zt||r==It||Ut&&h(n)||r==Mt&&typeof e=="number"&&b(n.splice)?!e:(er(n,function(){return t=H
  25. }),t)},r.isEqual=d,r.isFinite=function(n){return St(n)&&!Et(parseFloat(n))},r.isFunction=b,r.isNaN=function(n){return xt.call(n)==Dt&&n!=+n},r.isNull=function(n){return n===G},r.isNumber=function(n){return xt.call(n)==Dt},r.isObject=w,r.isPlainObject=fr,r.isRegExp=function(n){return xt.call(n)==Pt},r.isString=j,r.isUndefined=function(n){return n===t},r.keys=lr,r.last=function(n,t,r){if(n){var e=n.length;return t==G||r?n[e-1]:kt.call(n,-t||e)}},r.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(e=(0>r?qt(0,e+r):Nt(r,e-1))+1);e--;)if(n[e]===t)return e;
  26. return-1},r.lateBind=function(n,t){return i(t,n,kt.call(arguments,2))},r.map=$,r.max=q,r.memoize=function(n,t){var r={};return function(){var e=t?t.apply(this,arguments):arguments[0];return bt.call(r,e)?r[e]:r[e]=n.apply(this,arguments)}},r.merge=k,r.min=function(n,t,r){var e=1/0,o=-1,i=n?n.length:0,c=e;if(t||!cr(n))t=!t&&j(n)?u:a(t,r),sr(n,function(n,r,u){r=t(n,r,u),r<e&&(e=r,c=n)});else for(;++o<i;)n[o]<c&&(c=n[o]);return c},r.mixin=U,r.noConflict=function(){return n._=tt,this},r.object=function(n,t){for(var r=-1,e=n?n.length:0,u={};++r<e;){var o=n[r];
  27. t?u[o]=t[r]:u[o[0]]=o[1]}return u},r.omit=function(n,t,r){var e=typeof t=="function",u={};if(e)t=a(t,r);else var o=yt.apply(X,arguments);return rr(n,function(n,r,i){(e?!t(n,r,i):0>D(o,r,1))&&(u[r]=n)}),u},r.once=function(n){var t,r=H;return function(){return r?t:(r=V,t=n.apply(this,arguments),n=G,t)}},r.pairs=function(n){var t=[];return er(n,function(n,r){t.push([r,n])}),t},r.partial=function(n){return i(n,kt.call(arguments,1))},r.pick=function(n,t,r){var e={};if(typeof t!="function")for(var u=0,o=yt.apply(X,arguments),i=o.length;++u<i;){var c=o[u];
  28. c in n&&(e[c]=n[c])}else t=a(t,r),rr(n,function(n,r,u){t(n,r,u)&&(e[r]=n)});return e},r.pluck=N,r.random=function(n,t){return n==G&&t==G&&(t=1),n=+n||0,t==G&&(t=n,n=0),n+mt(Ft()*((+t||0)-n+1))},r.range=function(n,t,r){n=+n||0,r=+r||1,t==G&&(t=n,n=0);for(var e=-1,t=qt(0,_t((t-n)/r)),u=Array(t);++e<t;)u[e]=n,n+=r;return u},r.reduce=F,r.reduceRight=I,r.reject=function(n,t,r){return t=a(t,r),S(n,function(n,r,e){return!t(n,r,e)})},r.rest=M,r.result=function(n,t){var r=n?n[t]:G;return b(r)?n[t]():r},r.shuffle=function(n){var t=-1,r=Array(n?n.length:0);
  29. return sr(n,function(n){var e=mt(Ft()*(++t+1));r[t]=r[e],r[e]=n}),r},r.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:lr(n).length},r.some=R,r.sortBy=function(n,t,r){var e=[],t=a(t,r);for(sr(n,function(n,r,u){e.push({a:t(n,r,u),b:r,c:n})}),n=e.length,e.sort(o);n--;)e[n]=e[n].c;return e},r.sortedIndex=P,r.tap=function(n,t){return t(n),n},r.template=function(n,t,e){n||(n=""),e||(e={});var u,o,i=r.templateSettings,a=0,c=e.interpolate||i.interpolate||pt,l="__p += '",s=e.variable||i.variable,p=s;
  30. n.replace(RegExp((e.escape||i.escape||pt).source+"|"+c.source+"|"+(c===st?lt:pt).source+"|"+(e.evaluate||i.evaluate||pt).source+"|$","g"),function(t,r,e,o,i,c){e||(e=o),l+=n.slice(a,c).replace(vt,f),l+=r?"'+__e("+r+")+'":i?"';"+i+";__p+='":e?"'+((__t=("+e+"))==null?'':__t)+'":"",u||(u=i||rt.test(r||e)),a=c+t.length}),l+="';",p||(s="obj",u?l="with("+s+"){"+l+"}":(e=RegExp("(\\(\\s*)"+s+"\\."+s+"\\b","g"),l=l.replace(ct,"$&"+s+".").replace(e,"$1__d"))),l=(u?l.replace(ut,""):l).replace(ot,"$1").replace(it,"$1;"),l="function("+s+"){"+(p?"":s+"||("+s+"={});")+"var __t,__p='',__e=_.escape"+(u?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":(p?"":",__d="+s+"."+s+"||"+s)+";")+l+"return __p}";
  31. try{o=Function("_","return "+l)(r)}catch(h){throw h.source=l,h}return t?o(t):(o.source=l,o)},r.throttle=function(n,t){function r(){a=new Date,i=G,u=n.apply(o,e)}var e,u,o,i,a=0;return function(){var c=new Date,f=t-(c-a);return e=arguments,o=this,0<f?i||(i=setTimeout(r,f)):(clearTimeout(i),a=c,u=n.apply(o,e)),u}},r.times=function(n,t,r){for(var n=+n||0,e=-1,u=Array(n);++e<n;)u[e]=t.call(r,e);return u},r.toArray=function(n){return n&&typeof n.length=="number"?(Vt?j(n):typeof n=="string")?n.split(""):kt.call(n):x(n)
  32. },r.unescape=function(n){return n==G?"":(n+"").replace(et,p)},r.union=function(){return z(yt.apply(X,arguments))},r.uniq=z,r.uniqueId=function(n){var t=Z++;return n?n+t:t},r.values=x,r.where=function(n,t){var r=[];return rr(t,function(n,t){r.push(t)}),S(n,function(n){for(var e=r.length;e--;){var u=n[r[e]]===t[r[e]];if(!u)break}return!!u})},r.without=function(n){for(var t=-1,r=n?n.length:0,u=e(arguments,1,20),o=[];++t<r;){var i=n[t];u(i)||o.push(i)}return o},r.wrap=function(n,t){return function(){var r=[n];
  33. return wt.apply(r,arguments),t.apply(this,r)}},r.zip=function(n){for(var t=-1,r=n?q(N(arguments,"length")):0,e=Array(r);++t<r;)e[t]=N(arguments,t);return e},r.all=A,r.any=R,r.collect=$,r.detect=E,r.drop=M,r.each=sr,r.foldl=F,r.foldr=I,r.head=T,r.include=O,r.inject=F,r.methods=y,r.select=S,r.tail=M,r.take=T,r.unique=z,U(r),r.prototype.chain=function(){return this.__chain__=V,this},r.prototype.value=function(){return this.__wrapped__},sr("pop push reverse shift sort splice unshift".split(" "),function(n){var t=X[n];
  34. r.prototype[n]=function(){var n=this.__wrapped__;return t.apply(n,arguments),Ct&&0===n.length&&delete n[0],this.__chain__&&(n=new r(n),n.__chain__=V),n}}),sr(["concat","join","slice"],function(n){var t=X[n];r.prototype[n]=function(){var n=t.apply(this.__wrapped__,arguments);return this.__chain__&&(n=new r(n),n.__chain__=V),n}}),typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=r,define(function(){return r})):J?typeof module=="object"&&module&&module.exports==J?(module.exports=r)._=r:J._=r:n._=r
  35. })(this);