/** * @license * Lo-Dash 1.3.1 (Custom Build) lodash.com/license | Underscore.js 1.5.1 underscorejs.org/LICENSE * Build: `lodash underscore exports="amd,commonjs,global,node" -o ./dist/lodash.underscore.js` */ ;!function(){function n(n,r,t){t=(t||0)-1;for(var e=n?n.length:0;++te||typeof t=="undefined")return 1;if(tu(f,l))&&(t&&f.push(l),o.push(a))}return o}function c(n){return function(r,t,e){var u={};t=V(t,e,3),e=-1;var i=r?r.length:0;if(typeof i=="number")for(;++ee&&(e=t,u=n)});else for(;++iu&&(u=t);return u}function k(n,r,t,e){if(!n)return t;var u=3>arguments.length;r=o(r,e,4);var i=-1,f=n.length;if(typeof f=="number")for(u&&(t=n[++i]);++iarguments.length;return r=o(r,e,4),R(n,function(n,e,i){t=u?(u=!1,n):r(t,n,e,i) }),t}function M(n,r,t){var e;r=V(r,t,3),t=-1;var u=n?n.length:0;if(typeof u=="number")for(;++tt(u,o)&&i.push(o)}return i}function I(n,r,t){if(n){var e=0,u=n.length;if(typeof r!="number"&&null!=r){var i=-1;for(r=V(r,t,3);++ie?Rr(0,u+e):e||0}else if(e)return e=C(r,t),r[e]===t?e:-1;return n(r,t,e)}function z(n,r,t){if(typeof r!="number"&&null!=r){var e=0,u=-1,i=n?n.length:0;for(r=V(r,t,3);++u>>1,t(n[e])f&&(u=n.apply(o,e));else{!c&&!v&&(a=i);var t=l-(i-a);0/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:""},Tr||(s=function(n){if(j(n)){e.prototype=n;var r=new e;e.prototype=null}return r||{}}),y(arguments)||(y=function(n){return n&&typeof n=="object"?wr.call(n,"callee"):!1});var Ir=Or||function(n){return n&&typeof n=="object"?xr.call(n)==tr:!1},Wr=function(n){var r,t=[]; if(!n||!lr[typeof n])return t;for(r in n)wr.call(n,r)&&t.push(r);return t},zr=Nr?function(n){return j(n)?Nr(n):[]}:Wr,Cr={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},Pr=b(Cr),Ur=RegExp("("+zr(Pr).join("|")+")","g"),Vr=RegExp("["+zr(Cr).join("")+"]","g"),Gr=function(n,r){var t;if(!n||!lr[typeof n])return n;for(t in n)if(r(n[t],t,n)===X)break;return n},Hr=function(n,r){var t;if(!n||!lr[typeof n])return n;for(t in n)if(wr.call(n,t)&&r(n[t],t,n)===X)break;return n};w(/x/)&&(w=function(n){return typeof n=="function"&&"[object Function]"==xr.call(n) });var Jr=c(function(n,r,t){wr.call(n,t)?n[t]++:n[t]=1}),Kr=c(function(n,r,t){(wr.call(n,t)?n[t]:n[t]=[]).push(r)}),Lr=B,Qr=S;u.after=function(n,r){if(!w(r))throw new TypeError;return function(){return 1>--n?r.apply(this,arguments):void 0}},u.bind=U,u.bindAll=function(n){for(var r=1u(o,f)){for(var a=t;--a;)if(0>u(r[a],f))continue n;o.push(f)}}return o},u.invert=b,u.invoke=function(n,r){var t=kr.call(arguments,2),e=-1,u=typeof r=="function",i=n?n.length:0,o=Array(typeof i=="number"?i:0); return N(n,function(n){o[++e]=(u?r:n[r]).apply(n,t)}),o},u.keys=zr,u.map=B,u.max=D,u.memoize=function(n,r){var t={};return function(){var e=Y+(r?r.apply(this,arguments):arguments[0]);return wr.call(t,e)?t[e]:t[e]=n.apply(this,arguments)}},u.min=function(n,r,t){var e=1/0,u=e,i=-1,o=n?n.length:0;if(r||typeof o!="number")r=V(r,t,3),N(n,function(n,t,i){t=r(n,t,i),tr(t,u)&&(e[u]=n) }),e},u.once=function(n){var r,t;if(!w(n))throw new TypeError;return function(){return r?t:(r=!0,t=n.apply(this,arguments),n=null,t)}},u.pairs=function(n){for(var r=-1,t=zr(n),e=t.length,u=Array(e);++rr?0:r);++nt?Rr(0,e+t):Br(t,e-1))+1);e--;)if(n[e]===r)return e;return-1},u.mixin=J,u.noConflict=function(){return pr._=mr,this},u.random=K,u.reduce=k,u.reduceRight=q,u.result=function(n,r){var t=n?n[r]:L; return w(t)?n[r]():t},u.size=function(n){var r=n?n.length:0;return typeof r=="number"?r:zr(n).length},u.some=M,u.sortedIndex=C,u.template=function(n,r,e){var i=u,o=i.templateSettings;n||(n=""),e=_({},e,o);var f=0,a="__p+='",o=e.variable;n.replace(RegExp((e.escape||Z).source+"|"+(e.interpolate||Z).source+"|"+(e.evaluate||Z).source+"|$","g"),function(r,e,u,i,o){return a+=n.slice(f,o).replace(nr,t),e&&(a+="'+_.escape("+e+")+'"),i&&(a+="';"+i+";__p+='"),u&&(a+="'+((__t=("+u+"))==null?'':__t)+'"),f=o+r.length,r }),a+="';\n",o||(o="obj",a="with("+o+"||{}){"+a+"}"),a="function("+o+"){var __t,__p='',__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}"+a+"return __p}";try{var l=Function("_","return "+a)(i)}catch(c){throw c.source=a,c}return r?l(r):(l.source=a,l)},u.unescape=function(n){return null==n?"":(n+"").replace(Ur,g)},u.uniqueId=function(n){var r=++Q+"";return n?n+r:r},u.all=O,u.any=M,u.detect=F,u.findWhere=function(n,r){return Qr(n,r,!0)},u.foldl=k,u.foldr=q,u.include=T,u.inject=k,u.first=I,u.last=function(n,r,t){if(n){var e=0,u=n.length; if(typeof r!="number"&&null!=r){var i=u;for(r=V(r,t,3);i--&&r(n[i],i,n);)e++}else if(e=r,null==e||t)return n[u-1];return kr.call(n,Rr(0,u-e))}},u.take=I,u.head=I,J(u),u.VERSION="1.3.1",u.prototype.chain=function(){return this.__chain__=!0,this},u.prototype.value=function(){return this.__wrapped__},N("pop push reverse shift sort splice unshift".split(" "),function(n){var r=gr[n];u.prototype[n]=function(){var n=this.__wrapped__;return r.apply(n,arguments),!$r.spliceObjects&&0===n.length&&delete n[0],this }}),N(["concat","join","slice"],function(n){var r=gr[n];u.prototype[n]=function(){var n=r.apply(this.__wrapped__,arguments);return this.__chain__&&(n=new i(n),n.__chain__=!0),n}}),typeof define=="function"&&typeof define.amd=="object"&&define.amd?(pr._=u, define(function(){return u})):sr&&!sr.nodeType?vr?(vr.exports=u)._=u:sr._=u:pr._=u}.call(this);