mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 14:37:49 +00:00
Avoid var conflicts in the support IIFE in minified builds.
This commit is contained in:
2
dist/lodash.compat.min.js
vendored
2
dist/lodash.compat.min.js
vendored
@@ -36,7 +36,7 @@ for(var f in n)l&&"prototype"==f||a&&("message"==f||"name"==f)||i&&(t=+f,-1<t&&t
|
||||
}:function(n){return er.call(n,r)?(n=n[r],u===n&&(0!==u||1/u==1/n)):false}}function Ae(n,t,e){var r=true,u=t&&pe(t);t&&(e||u.length)||(null==e&&(e=t),t=n,n=o,u=pe(t)),false===e?r=false:ye(e)&&"chain"in e&&(r=e.chain),e=-1;for(var i=ve(n),a=u?u.length:0;++e<a;){var l=u[e],f=n[l]=t[l];i&&(n.prototype[l]=function(t){return function(){var e=this.__chain__,u=this.__wrapped__,o=[u];if(rr.apply(o,arguments),o=t.apply(n,o),r||e){if(u===o&&ye(o))return this;o=new n(o),o.__chain__=e}return o}}(f))}}function Se(){}function Ie(n){return function(t){return null==t?w:t[n]
|
||||
}}t=t?_t.defaults(mt.Object(),t,_t.pick(mt,H)):mt;var Re=t.Array,Ne=t.Boolean,Te=t.Date,Le=t.Error,We=t.Function,Fe=t.Math,$e=t.Number,Pe=t.Object,ze=t.RegExp,De=t.String,Be=t.TypeError,qe=Re.prototype,Ue=Le.prototype,Ze=Pe.prototype,Ke=De.prototype,Me=(Me=t.window)&&Me.document,Ve=t._,Xe=Fe.pow(2,53)-1,Ye=Ze.toString,Ge=ze("^"+Ce(Ye).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=Fe.ceil,Je=t.clearTimeout,Qe=Fe.floor,nr=We.prototype.toString,tr=Lt(tr=Pe.getPrototypeOf)&&tr,er=Ze.hasOwnProperty,rr=qe.push,ur=Ze.propertyIsEnumerable,or=Lt(or=t.Set)&&or,ir=t.setTimeout,ar=qe.splice,lr=qe.unshift,fr=function(){try{var n={},t=Lt(t=Pe.defineProperty)&&t,e=t(n,n,n)&&t
|
||||
}catch(r){}return e}(),cr=Lt(cr=Ke.contains)&&cr,sr=Lt(sr=Pe.create)&&sr,pr=Lt(pr=Re.isArray)&&pr,gr=t.isFinite,hr=t.isNaN,vr=Lt(vr=Pe.keys)&&vr,yr=Fe.max,mr=Fe.min,dr=Lt(dr=Te.now)&&dr,br=t.parseInt,_r=Fe.random,wr=Lt(wr=Ke.trim)&&!wr.call(G)&&wr,xr=Lt(xr=Ke.trimLeft)&&!xr.call(G)&&xr,Cr=Lt(Cr=Ke.trimRight)&&!Cr.call(G)&&Cr,jr={};jr[nt]=Re,jr[tt]=Ne,jr[et]=Te,jr[ut]=We,jr[it]=Pe,jr[ot]=$e,jr[at]=ze,jr[lt]=De;var kr={};kr[nt]=kr[et]=kr[ot]={constructor:true,toLocaleString:true,toString:true,valueOf:true},kr[tt]=kr[lt]={constructor:true,toString:true,valueOf:true},kr[rt]=kr[ut]=kr[at]={constructor:true,toString:true},kr[it]={constructor:true},function(){for(var n=J.length;n--;){var t,e=J[n];
|
||||
for(t in kr)er.call(kr,t)&&!er.call(kr[t],e)&&(kr[t][e]=false)}}(),i.prototype=o.prototype;var Or=o.support={};!function(x){var n=function(){this.x=1},e={0:1,length:1},r=[];n.prototype={valueOf:1,y:1};for(var u in new n)r.push(u);for(var o in arguments);for(var i in"x");Or.argsClass=Ye.call(arguments)==Q,Or.argsObject=arguments.constructor==Pe&&!(arguments instanceof Re),Or.enumErrorProps=ur.call(Ue,"message")||ur.call(Ue,"name"),Or.enumPrototypes=ur.call(n,"prototype"),Or.funcDecomp=!Lt(t.WinRTError)&&V.test(_),Or.funcNames=typeof We.name=="string",Or.nonEnumStrings="0"!=i,Or.nonEnumShadows=!/valueOf/.test(r),Or.ownLast="x"!=r[0],Or.spliceObjects=(ar.call(e,0,1),!e[0]),Or.unindexedChars="xx"!="x"[0]+Pe("x")[0];
|
||||
for(t in kr)er.call(kr,t)&&!er.call(kr[t],e)&&(kr[t][e]=false)}}(),i.prototype=o.prototype;var Or=o.support={};!function(x_){var n=function(){this.x=1},e={0:1,length:1},r=[];n.prototype={valueOf:1,y:1};for(var u in new n)r.push(u);for(var o in arguments);for(var i in"x");Or.argsClass=Ye.call(arguments)==Q,Or.argsObject=arguments.constructor==Pe&&!(arguments instanceof Re),Or.enumErrorProps=ur.call(Ue,"message")||ur.call(Ue,"name"),Or.enumPrototypes=ur.call(n,"prototype"),Or.funcDecomp=!Lt(t.WinRTError)&&V.test(_),Or.funcNames=typeof We.name=="string",Or.nonEnumStrings="0"!=i,Or.nonEnumShadows=!/valueOf/.test(r),Or.ownLast="x"!=r[0],Or.spliceObjects=(ar.call(e,0,1),!e[0]),Or.unindexedChars="xx"!="x"[0]+Pe("x")[0];
|
||||
try{Or.dom=11===Me.createDocumentFragment().nodeType}catch(a){Or.dom=false}try{Or.nodeClass=!(Ye.call(undefined)==it&&!({toString:0}+""))}catch(l){Or.nodeClass=true}try{Or.nonEnumArgs=!("1"==o&&er.call(arguments,o)&&ur.call(arguments,o))}catch(f){Or.nonEnumArgs=true}}(0,0),o.templateSettings={escape:$,evaluate:P,interpolate:z,variable:"",imports:{_:o}},sr||(d=function(){function n(){}return function(e){if(ye(e)){n.prototype=e;var r=new n;n.prototype=null}return r||t.Object()}}());var Er=or&&function(n){var t=new or,e=n?n.length:0;for(t.push=t.add;e--;)t.push(n[e]);
|
||||
return t},Ar=fr?function(n,t){st.value=t,fr(n,S,st)}:Se,Sr=It(function(n,t,e){er.call(n,e)?n[e]++:n[e]=1}),Ir=It(function(n,t,e){er.call(n,e)?n[e].push(t):n[e]=[t]}),Rr=It(function(n,t,e){n[e]=t}),Nr=It(function(n,t,e){n[e?0:1].push(t)},true),Tr=te;Or.argsClass||(ge=function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&er.call(n,"callee")&&!ur.call(n,"callee")||false});var Lr=pr||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Ye.call(n)==nt||false};Or.dom||(he=function(n){return n&&typeof n=="object"&&1===n.nodeType&&!Wr(n)||false
|
||||
}),ve(/x/)&&(ve=function(n){return typeof n=="function"&&Ye.call(n)==ut});var Wr=tr?function(n){if(!n||Ye.call(n)!=it||!Or.argsClass&&ge(n))return false;var t=n.valueOf,e=Lt(t)&&(e=tr(t))&&tr(e);return e?n==e||tr(n)==e:Wt(n)}:Wt,Fr=vr?function(n){var t=n?n.length:0;return typeof t=="number"&&0<t?Ft(n):ye(n)?vr(n):[]}:Ft,$r=f(function(n,t,e){return!e&&R.test(t)?n+t.toLowerCase():n+(t.charAt(0)[e?"toUpperCase":"toLowerCase"]()+t.slice(1))}),Pr=f(function(n,t,e){return n+(e?"-":"")+t.toLowerCase()}),zr=f(function(n,t,e){return n+(e?"_":"")+t.toLowerCase()
|
||||
|
||||
2
dist/lodash.min.js
vendored
2
dist/lodash.min.js
vendored
@@ -34,7 +34,7 @@ for(;++u<o;){t=r[u];for(var i=-1,l=Rr(t),f=l.length;++i<f;){var c=l[i];n[c]=a?a(
|
||||
return o}function de(n,t,e){var r={};if(typeof t!="function")for(var u=-1,i=ht(arguments,true,false,1),a=he(n)?i.length:0;++u<a;){var l=i[u];l in n&&(r[l]=n[l])}else t=o.createCallback(t,e,3),dt(n,function(n,e,u){t(n,e,u)&&(r[e]=n)});return r}function be(n){return Ct(n,Rr)}function _e(n){return null==n?"":$e(n).replace(K,"\\$&")}function we(n,t){var e="";if(t=+t,1>t||null==n||!lr(t))return e;n=$e(n);do t%2&&(e+=n),t=Xe(t/2),n+=n;while(t);return e}function xe(n,t,e){var r=typeof n;return"function"==r||null==n?(typeof t=="undefined"||!("prototype"in n))&&n||Z(n,t,e):"object"!=r?Oe(n):je(n)
|
||||
}function ke(n){return n}function je(n){n||(n={});var t=Rr(n),e=t.length,r=t[0],u=n[r];return 1!=e||u!==u||he(u)?function(r){for(var u=e,o=true;u--&&(o=t[u],o=He.call(r,o)&&wt(r[o],n[o],null,true)););return o}:function(n){return He.call(n,r)?(n=n[r],u===n&&(0!==u||1/u==1/n)):false}}function Ce(n,t,e){var r=true,u=t&&fe(t);t&&(e||u.length)||(null==e&&(e=t),t=n,n=o,u=fe(t)),false===e?r=false:he(e)&&"chain"in e&&(r=e.chain),e=-1;for(var i=se(n),a=u?u.length:0;++e<a;){var l=u[e],f=n[l]=t[l];i&&(n.prototype[l]=function(t){return function(){var e=this.__chain__,u=this.__wrapped__,o=[u];
|
||||
if(Je.apply(o,arguments),o=t.apply(n,o),r||e){if(u===o&&he(o))return this;o=new n(o),o.__chain__=e}return o}}(f))}}function Ae(){}function Oe(n){return function(t){return null==t?_:t[n]}}t=t?mt.defaults(gt.Object(),t,mt.pick(gt,G)):gt;var Ee=t.Array,Ie=t.Boolean,Re=t.Date,Ne=t.Function,Se=t.Math,Te=t.Number,We=t.Object,Fe=t.RegExp,$e=t.String,Le=t.TypeError,ze=Ee.prototype,De=We.prototype,Be=$e.prototype,qe=(qe=t.window)&&qe.document,Ue=t._,Ze=Se.pow(2,53)-1,Pe=De.toString,Ke=Fe("^"+_e(Pe).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Me=Se.ceil,Ve=t.clearTimeout,Xe=Se.floor,Ye=Ne.prototype.toString,Ge=Nt(Ge=We.getPrototypeOf)&&Ge,He=De.hasOwnProperty,Je=ze.push,Qe=De.propertyIsEnumerable,nr=Nt(nr=t.Set)&&nr,tr=t.setTimeout,er=ze.splice,rr=ze.unshift,ur=function(){try{var n={},t=Nt(t=We.defineProperty)&&t,e=t(n,n,n)&&t
|
||||
}catch(r){}return e}(),or=Nt(or=Be.contains)&&or,ir=Nt(ir=We.create)&&ir,ar=Nt(ar=Ee.isArray)&&ar,lr=t.isFinite,fr=t.isNaN,cr=Nt(cr=We.keys)&&cr,pr=Se.max,sr=Se.min,hr=Nt(hr=Re.now)&&hr,gr=t.parseInt,vr=Se.random,yr=Nt(yr=Be.trim)&&!yr.call(Y)&&yr,mr=Nt(mr=Be.trimLeft)&&!mr.call(Y)&&mr,dr=Nt(dr=Be.trimRight)&&!dr.call(Y)&&dr,br={};br[J]=Ee,br[Q]=Ie,br[nt]=Re,br[tt]=Ne,br[rt]=We,br[et]=Te,br[ut]=Fe,br[ot]=$e,i.prototype=o.prototype;var _r=o.support={};!function(x){for(var n in arguments);_r.funcDecomp=!Nt(t.WinRTError)&&M.test(b),_r.funcNames=typeof Ne.name=="string";
|
||||
}catch(r){}return e}(),or=Nt(or=Be.contains)&&or,ir=Nt(ir=We.create)&&ir,ar=Nt(ar=Ee.isArray)&&ar,lr=t.isFinite,fr=t.isNaN,cr=Nt(cr=We.keys)&&cr,pr=Se.max,sr=Se.min,hr=Nt(hr=Re.now)&&hr,gr=t.parseInt,vr=Se.random,yr=Nt(yr=Be.trim)&&!yr.call(Y)&&yr,mr=Nt(mr=Be.trimLeft)&&!mr.call(Y)&&mr,dr=Nt(dr=Be.trimRight)&&!dr.call(Y)&&dr,br={};br[J]=Ee,br[Q]=Ie,br[nt]=Re,br[tt]=Ne,br[rt]=We,br[et]=Te,br[ut]=Fe,br[ot]=$e,i.prototype=o.prototype;var _r=o.support={};!function(x_){for(var n in arguments);_r.funcDecomp=!Nt(t.WinRTError)&&M.test(b),_r.funcNames=typeof Ne.name=="string";
|
||||
try{_r.dom=11===qe.createDocumentFragment().nodeType}catch(e){_r.dom=false}try{_r.nonEnumArgs=!("1"==n&&He.call(arguments,n)&&Qe.call(arguments,n))}catch(r){_r.nonEnumArgs=true}}(0,0),o.templateSettings={escape:$,evaluate:L,interpolate:z,variable:"",imports:{_:o}},ir||(m=function(){function n(){}return function(e){if(he(e)){n.prototype=e;var r=new n;n.prototype=null}return r||t.Object()}}());var wr=nr&&function(n){var t=new nr,e=n?n.length:0;for(t.push=t.add;e--;)t.push(n[e]);return t},xr=ur?function(n,t){lt.value=t,ur(n,E,lt)
|
||||
}:Ae,kr=Ot(function(n,t,e){He.call(n,e)?n[e]++:n[e]=1}),jr=Ot(function(n,t,e){He.call(n,e)?n[e].push(t):n[e]=[t]}),Cr=Ot(function(n,t,e){n[e]=t}),Ar=Ot(function(n,t,e){n[e?0:1].push(t)},true),Or=Jt,Er=ar||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Pe.call(n)==J||false};_r.dom||(pe=function(n){return n&&typeof n=="object"&&1===n.nodeType&&!Ir(n)||false});var Ir=Ge?function(n){if(!n||Pe.call(n)!=rt)return false;var t=n.valueOf,e=Nt(t)&&(e=Ge(t))&&Ge(e);return e?n==e||Ge(n)==e:St(n)}:St,Rr=cr?function(n){var t=n?n.length:0;
|
||||
return typeof t=="number"&&0<t?Tt(n):he(n)?cr(n):[]}:Tt,Nr=f(function(n,t,e){return!e&&R.test(t)?n+t.toLowerCase():n+(t.charAt(0)[e?"toUpperCase":"toLowerCase"]()+t.slice(1))}),Sr=f(function(n,t,e){return n+(e?"-":"")+t.toLowerCase()}),Tr=f(function(n,t,e){return n+(e?"_":"")+t.toLowerCase()}),Wr=yr?function(n,t){return null==n?"":null==t?yr.call(n):h(n,t)}:h,Fr=mr?function(n,t){return null==n?"":null==t?mr.call(n):g(n,t)}:g,$r=dr?function(n,t){return null==n?"":null==t?dr.call(n):v(n,t)}:v,Lr=hr||function(){return(new Re).getTime()
|
||||
|
||||
Reference in New Issue
Block a user