Cleanup code and rework the pre-compile step.

Former-commit-id: cb62236ee0396e5e08defcbfee526265f9cf042e
This commit is contained in:
John-David Dalton
2012-05-08 12:15:01 -04:00
parent 4c29fbb36d
commit 5c82104d7b
4 changed files with 228 additions and 188 deletions

50
lodash.min.js vendored
View File

@@ -2,28 +2,28 @@
Lo-Dash 0.1.0 github.com/bestiejs/lodash/blob/master/LICENSE.txt
Underscore.js 1.3.3 github.com/documentcloud/underscore/blob/master/LICENSE
*/
;(function(a,b){"use strict";function e(a){return"[object Arguments]"==Z.call(a)}function f(a){return new g(a)}function g(a){if(a&&a.n)return a;this.n=a}function h(a,b){return K[b]}function i(a){return"\\"+A[a]}function j(){for(var a,b,e=Y.call(arguments),f={},g={},h={},i=["c","i","f"];a=e.shift();)for(b in a)h[b]=a[b];for(;b=i.pop();)"object"==typeof h[b]?(f[b]=h[b].b,g[b]=h[b].j):f[b]=g[b]=h[b]||"";e=h.a,a=/^[^,]+/.exec(e)[0],b=h.g;var j=h.h,i=/\S+$/.exec(g.i||a)[0],k="o.call("+i+",q)",l="x"!=a&&"b"!=
j,j="c"!=a&&"a"!=j,m=h.l!==d;return Function("d,e,j,n,o,p,r,s,t,u,C,F,H,K,L,m,M",'"use strict";return function('+e+"){"+("var q,B"+(b?"="+b:""))+";"+(h.e||"if(!"+a+")return B")+";"+(h.k||"")+";"+(l?"var w="+a+".length;q=-1;"+((j?"if(w===+w){":"")+(f.c||"")+";while("+(f.i||"++q<w")+"){"+f.f+"}"+(j?"}":"")):"")+(j?(l?"else{":"")+(C?"":"var E=typeof "+i+'=="function";')+(g.c||"")+";for("+(g.i||"q in "+a)+"){"+(C?(m?"if("+k+"){":"")+g.f+(m?"}":""):'if(!(E&&q=="prototype")'+(m?"&&"+k:"")+"){"+g.f+"}")+"}"+
(C?"var k="+i+'.constructor,D=k&&k.prototype&&k.prototype.constructor===k;for(var j=0;j<7;j++){q=C[j];if(!(D&&q=="constructor")'+(m?"&&"+k:"")+"){"+g.f+"}}":"")+(l?"}":""):"")+(h.d||"")+";return B}")(L,v,U,O,V,y,q,Infinity,ib,jb,I,Y,R,Z,c,d)}function k(a,b){var c=K.length;return K[c]="'+((__t=("+b+"))==null?'':__e(__t))+'",J+c}function l(a,b){var c=K.length;return K[c]="'+((__t=("+b+"))==null?'':__t)+'",J+c}function m(a,b){var c=K.length;return K[c]="';"+b+";__p+='",J+c}function n(a,b,c,d){if(!a)
return c;var e=a.length,f=3>arguments.length;d&&(b=v(b,d));if(e===+e){for(e&&f&&(c=a[--e]);e--;)c=b(c,a[e],e,a);return c}var g=xb(a);for((e=g.length)&&f&&(c=a[g[--e]]);e--;)f=g[e],c=b(c,a[f],f,a);return c}function o(a,c,d){return c==b||d?a[0]:Y.call(a,0,c)}function p(a,b){if(b)return U.apply(S,a);for(var c,d=-1,e=a.length,f=[];++d<e;)c=a[d],ib(c)?X.apply(f,p(c)):f.push(c);return f}function q(a,b,c){var d;if(!a)return-1;if(c)return c=t(a,b),a[c]===b?c:-1;c=0;for(d=a.length;c<d;c++)if(a[c]===b)return c
;return-1}function r(a){for(var b,c=-1,d=a.length,e=Y.call(arguments,1),f=[];++c<d;)b=a[c],0>q(f,b)&&kb(e,function(a){return-1<q(a,b)})&&f.push(b);return f}function s(a,c,d){return Y.call(a,c==b||d?1:c)}function t(a,b,c){var d,e=0,f=a.length;for(c&&(b=c(b));e<f;)d=e+f>>1,(c?c(a[d]):a[d])<b?e=d+1:f=d;return e}function u(a,b,d){var e,f=-1,g=a.length,h=[],i=[];for(3>g&&(b=c);++f<g;)if(e=d?d(a[f]):a[f],b?!f||i[i.length-1]!==e:0>q(i,e))i.push(e),h.push(a[f]);return h}function v(a,c){var d,e=Z.call(a)==
O;if(e){if($)return a=$.call.apply($,arguments),function(){return arguments.length?a.apply(b,arguments):a()}}else d=c,c=a;var f=Y.call(arguments,2),g=f.length;return function(){var b;return b=arguments,e||(a=c[d]),g&&(b.length&&(f.length=g,X.apply(f,b)),b=f),b=b.length?a.apply(c,b):a.call(c),f.length=g,b}}function w(a,e,f){f||(f=[]);if(a===e)return 0!==a||1/a==1/e;if(a==b||e==b)return a===e;a.m&&(a=a.n),e.m&&(e=e.n);if(a.isEqual&&Z.call(a.isEqual)==O)return a.isEqual(e);if(e.isEqual&&Z.call(e.isEqual
)==O)return e.isEqual(a);var g=Z.call(a);if(g!=Z.call(e))return d;switch(g){case R:return a==""+e;case P:return a!=+a?e!=+e:0==a?1/a==1/e:a==+e;case M:case N:return+a==+e;case Q:return a.source==e.source&&a.global==e.global&&a.multiline==e.multiline&&a.ignoreCase==e.ignoreCase}if("object"!=typeof a||"object"!=typeof e)return d;for(var h=f.length;h--;)if(f[h]==a)return c;var h=c,i=0;f.push(a);if(g==L){if(i=a.length,h=i==e.length)for(;i--&&(h=i in a==i in e&&w(a[i],e[i],f)););}else{if("constructor"in
a!="constructor"in e||a.constructor!=e.constructor)return d;for(var j in a)if(V.call(a,j)&&(i++,!(h=V.call(e,j)&&w(a[j],e[j],f))))break;if(h){for(j in e)if(V.call(e,j)&&!(i--))break;h=!i}}return f.pop(),h}function x(a){return(a+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")}function y(a){return a}function z(a){nb(wb(a),function(b){var d=f[b]=a[b];g.prototype[b]=function(){var a=[this.n];return arguments.length&&X.apply(a,arguments
),a=1==a.length?d.call(f,a[0]):d.apply(f,a),this.m&&(a=new g(a),a.m=c),a}})}var c=!0,d=!1,A={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"},B="object"==typeof exports&&exports&&("object"==typeof global&&global&&global==global.global&&(a=global),exports),C=!{valueOf:0}.propertyIsEnumerable("valueOf"),D=0,E=a._,F=/\{\s*\[native code\]\s*\}/,G=/__token__(\d+)/g,H=/['\n\r\t\u2028\u2029\\]/g,I="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf"
.split(","),J="__token__",K=[],L="[object Array]",M="[object Boolean]",N="[object Date]",O="[object Function]",P="[object Number]",Q="[object RegExp]",R="[object String]",S=Array.prototype,T=Object.prototype,U=S.concat,V=T.hasOwnProperty,W=S.join,X=S.push,Y=S.slice,Z=T.toString,$=F.test($=Y.bind)&&/\n|Opera/.test($+Z.call(a.opera))&&$,_=F.test(_=Array.isArray)&&_,ab=a.isFinite,bb=F.test(bb=Object.keys)&&bb,cb=a.clearTimeout,db=a.setTimeout,eb={g:"L",f:"if(!f(h[q],q,h))return!B"},F={a:"x",g:"x",k:"for(var G,j=1,w=arguments.length;j<w;j++){G=arguments[j]"
,i:"q in G",l:d,f:"x[q]=G[q]",d:"}"},fb={g:"[]",f:"f(h[q],q,h)&&B.push(h[q])"},gb={a:"h,f,J",g:"h",k:"if(!f){f=p}else if(J){f=e(f,J)}",f:"f(h[q],q,h)"},T={g:"",e:"if(!h)return[]",c:{b:"B=Array(w)",j:"B=[]"},f:{b:"B[q]=f(h[q],q,h)",j:"B.push(f(h[q],q,h))"}},hb={k:"var l,i=-s,B=i;if(!f){if(t(h)&&h[0]===+h[0]){try{return Math.max.apply(Math,h);}catch(e){}}if(u(h))return B}else if(J)f=e(f,J)",f:"l=f?f(h[q],q,h):h[q];if(l>=i)i=l,B=h[q]"},ib=_||function(a){return Z.call(a)==L},jb=j({a:"N",h:"b",g:"L",k
:"var g=K.call(N);if(g==d||g==H)return!N.length",f:"return m"}),_=j({a:"h,I",g:"m",f:"if(h[q]===I)return L"}),kb=j(gb,eb),lb=j(gb,fb),mb=j(gb,{f:"if(f(h[q],q,h))return h[q]"}),nb=j(gb),ob=j(gb,{g:"{}",k:"var z,v=K.call(f)==n;if(v&&J)f=e(f,J)",f:"z=v?f(h[q],q,h):h[q][f];(B[z]||(B[z]=[])).push(h[q])"}),pb=j(gb,T),qb=j(gb,hb),hb=j(gb,hb,{k:hb.k.replace("-","").replace("max","min"),f:hb.f.replace(">=","<")}),rb=j(T,{a:"h,A",f:{b:"B[q]=h[q][A]",j:"B.push(h[q][A])"}}),sb=j({a:"h,f,a,J",g:"a",k:"var y=arguments.length<3;if(J)f=e(f,J)"
,c:{b:"if(y)B=h[++q]"},f:{b:"B=f(B,h[q],q,h)",j:"B=y?(y=m,h[q]):f(B,h[q],q,h)"}}),fb=j(gb,fb,{f:"!"+fb.f}),eb=j(gb,eb,{g:"m",f:eb.f.replace("!","")}),tb=j(T,{a:"h",f:{b:"B[q]=h[q]",j:"B.push(h[q])"}}),ub=j(F,{f:"if(x[q]==M)"+F.f}),vb=j(F),wb=j({a:"x",g:"[]",l:d,f:"if(K.call(x[q])==n)B.push(q)",d:"B.sort()"});e(arguments)||(e=function(a){return!!a&&!!V.call(a,"callee")});var xb=bb||j({a:"x",e:"if(x!==Object(x))throw TypeError()",g:"[]",f:"B.push(q)"});vb(f,{VERSION:"0.1.0",templateSettings:{escape
:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g},after:function(a,b){return 1>a?b():function(){if(1>--a)return b.apply(this,arguments)}},bind:v,bindAll:function(a){var b=arguments,c=1;1==b.length&&(c=0,b=wb(a));for(var d=b.length;c<d;c++)a[b[c]]=v(a[b[c]],a);return a},chain:function(a){return a=new g(a),a.m=c,a},clone:function(a){return a!==Object(a)?a:ib(a)?a.slice():vb({},a)},compact:function(a){for(var b=-1,c=a.length,d=[];++b<c;)a[b]&&d.push(a[b]);return d},compose
:function(){var a=arguments;return function(){for(var b=arguments,c=a.length;c--;)b=[a[c].apply(this,b)];return b[0]}},contains:_,debounce:function(a,c,d){function e(){i=b,d||a.apply(h,f)}var f,g,h,i;return function(){var b=d&&!i;return f=arguments,h=this,cb(i),i=db(e,c),b&&(g=a.apply(h,f)),g}},defaults:ub,defer:function(a){var c=Y.call(arguments,1);return db(function(){return a.apply(b,c)},1)},delay:function(a,c){var d=Y.call(arguments,2);return db(function(){return a.apply(b,d)},c)},difference:
function(a){for(var b=-1,c=a.length,d=[],e=U.apply(d,Y.call(arguments,1));++b<c;)0>q(e,a[b])&&d.push(a[b]);return d},escape:x,every:kb,extend:vb,filter:lb,find:mb,first:o,flatten:p,forEach:nb,functions:wb,groupBy:ob,has:function(a,b){return V.call(a,b)},identity:y,indexOf:q,initial:function(a,c,d){return Y.call(a,0,-(c==b||d?1:c))},intersection:r,invoke:function(a,b){for(var c=Y.call(arguments,2),d=-1,e=a.length,f=Z.call(b)==O,g=[];++d<e;)g[d]=(f?b:a[d][b]).apply(a[d],c);return g},isArguments:e,isArray
:ib,isBoolean:function(a){return a===c||a===d||Z.call(a)==M},isDate:function(a){return Z.call(a)==N},isElement:function(a){return!!a&&1==a.nodeType},isEmpty:jb,isEqual:w,isFinite:function(a){return ab(a)&&Z.call(a)==P},isFunction:function(a){return Z.call(a)==O},isNaN:function(a){return Z.call(a)==P&&a!=+a},isNull:function(a){return null===a},isNumber:function(a){return Z.call(a)==P},isObject:function(a){return a===Object(a)},isRegExp:function(a){return Z.call(a)==Q},isString:function(a){return Z
.call(a)==R},isUndefined:function(a){return a===b},keys:xb,last:function(a,c,d){var e=a.length;return c==b||d?a[e-1]:Y.call(a,-c||e)},lastIndexOf:function(a,b){if(!a)return-1;for(var c=a.length;c--;)if(a[c]===b)return c;return-1},map:pb,max:qb,memoize:function(a,b){var c={};return function(){var d=b?b.apply(this,arguments):arguments[0];return V.call(c,d)?c[d]:c[d]=a.apply(this,arguments)}},min:hb,mixin:z,noConflict:function(){return a._=E,this},once:function(a){var b,e=d;return function(){return e?
b:(e=c,b=a.apply(this,arguments))}},partial:function(a){var b=Y.call(arguments,1),c=b.length;return function(){var d;return d=arguments,d.length&&(b.length=c,X.apply(b,d)),d=1==b.length?a.call(this,b[0]):a.apply(this,b),b.length=c,d}},pick:function(a){for(var b,c=0,d=U.apply(S,arguments),e=d.length,f={};++c<e;)b=d[c],b in a&&(f[b]=a[b]);return f},pluck:rb,range:function(a,b,c){c||(c=1),2>arguments.length&&(b=a||0,a=0);for(var d=-1,e=Math.max(Math.ceil((b-a)/c),0),f=Array(e);++d<e;)f[d]=a,a+=c;return f
},reduce:sb,reduceRight:n,reject:fb,rest:s,result:function(a,b){if(!a)return null;var c=a[b];return Z.call(c)==O?a[b]():c},shuffle:function(a){for(var b,c=-1,d=a.length,e=Array(d);++c<d;)b=Math.floor(Math.random()*(c+1)),e[c]=e[b],e[b]=a[c];return e},size:function(a){var b=Z.call(a);return b==L||b==R?a.length:xb(a).length},some:eb,sortBy:function(a,c,d){if(Z.call(c)!=O)var e=c,c=function(a){return a[e]};else d&&(c=v(c,d));return rb(pb(a,function(b,d){return{a:c(b,d,a),b:b}}).sort(function(a,c){var d=
a.a,e=c.a;return d===b?1:e===b?-1:d<e?-1:d>e?1:0}),"b")},sortedIndex:t,tap:function(a,b){return b(a),a},template:function(a,b,c){var c=ub(c||{},f.templateSettings),d;d=c.escape;var e=c.evaluate,g=c.interpolate,c=c.variable;return d&&(a=a.replace(d,k)),g&&(a=a.replace(g,l)),e&&(a=a.replace(e,m)),a="__p='"+a.replace(H,i).replace(G,h)+"';\n",K.length=0,c||(a="with(object||{}){"+a+"}"),a="function("+(c||"object")+'){var __p,__t;function print(){__p+=__j.call(arguments,"")}'+a+"return __p}",d=Function
("_,__e,__j","return "+a)(f,x,W),b?d(b):(d.source=a,d)},throttle:function(a,c){function d(){i=new Date,h=b,a.apply(g,e)}var e,f,g,h,i=0;return function(){var b=new Date,j=c-(b-i);return e=arguments,g=this,0>=j?(i=b,f=a.apply(g,e)):h||(h=db(d,j)),f}},times:function(a,b,c){c&&(b=v(b,c));for(c=0;c<a;c++)b(c)},toArray:function(a){if(!a)return[];if(Z.call(a.toArray)==O)return a.toArray();var b=a.length;return b===+b?Y.call(a):tb(a)},union:function(){for(var a=-1,b=[],c=U.apply(b,arguments),d=c.length;++
a<d;)0>q(b,c[a])&&b.push(c[a]);return b},uniq:u,uniqueId:function(a){var b=D++;return a?a+b:b},values:tb,without:function(a){for(var b=Y.call(arguments,1),c=-1,d=a.length,e=[];++c<d;)0>q(b,a[c])&&e.push(a[c]);return e},wrap:function(a,b){return function(){var c=[a];return arguments.length&&X.apply(c,arguments),b.apply(this,c)}},zip:function(){for(var a=-1,b=qb(rb(arguments,"length")),c=Array(b);++a<b;)c[a]=rb(arguments,a);return c},all:kb,any:eb,collect:pb,detect:mb,each:nb,foldl:sb,foldr:n,head:
o,include:_,inject:sb,intersect:r,methods:wb,select:lb,tail:s,take:o,unique:u}),g.prototype=f.prototype,z(f),nb("pop,push,reverse,shift,sort,splice,unshift".split(","),function(a){var b=S[a];g.prototype[a]=function(){var a=this.n;return arguments.length?b.apply(a,arguments):b.call(a),a.length===0&&delete a[0],this.m&&(a=new g(a),a.m=c),a}}),nb(["concat","join","slice"],function(a){var b=S[a];g.prototype[a]=function(){var a=this.n,a=arguments.length?b.apply(a,arguments):b.call(a);return this.m&&(a=new
g(a),a.m=c),a}}),vb(g.prototype,{chain:function(){return this.m=c,this},value:function(){return this.n}}),B?"object"==typeof module&&module&&module.o==B?(module.o=f)._=f:B._=f:(a._=f,"function"==typeof define&&"object"==typeof define.amd&&define.amd&&define(function(){return f}))})(this)
;(function(s,k){"use strict";var m=!0,n=null,q=!1;function Q(a){return"[object Arguments]"==h.call(a)}function l(a){return new o(a)}function o(a){if(a&&a.t)return a;this.t=a}function i(){for(var a,b,c,d=-1,e=arguments.length,f={e:"",f:"",k:"",q:"",c:{n:"++q<w"},p:{}};++d<e;)for(b in a=arguments[d],a)c=(c=a[b])==n?"":c,/d|n|j/.test(b)?("string"==typeof c&&(c={b:c,o:c}),f.c[b]=c.b,f.p[b]=c.o):f[b]=c;a=f.a;b=f.p;c=/^[^,]+/.exec(a)[0];d=f.l;e=/\S+$/.exec(b.n||c)[0];f.g=c;f.i=ra;f.h="o.call("+e+",q)";f.m=e;f.r=f.r!==q;f.f||(f.f="if("+c+
"==null)return B");if("x"==c||"b"==d)f.c=n;"c"==c||"a"==d?f.p=n:b.n||(b.n="q in "+e);return Function("d,e,j,n,o,p,r,s,t,u,C,F,H,K,L,m,M",'"use strict";return function('+a+"){"+sa(f)+"}")(I,z,E,r,x,$,t,Infinity,J,aa,ta,j,K,h,m,q)}function ua(a,b){return u[b]}function va(a){return"\\"+wa[a]}function xa(a,b){var c=u.length;u[c]="'+((__t=("+b+"))==null?'':__e(__t))+'";return R+c}function ya(a,b){var c=u.length;u[c]="'+((__t=("+b+"))==null?'':__t)+'";return R+c}function za(a,b){var c=u.length;u[c]="';"+
b+";__p+='";return R+c}function ba(a,b,c,d){if(!a)return c;var e=a.length,f=3>arguments.length;d&&(b=z(b,d));if(e===+e){for(e&&f&&(c=a[--e]);e--;)c=b(c,a[e],e,a);return c}var g=S(a);for((e=g.length)&&f&&(c=a[g[--e]]);e--;)f=g[e],c=b(c,a[f],f,a);return c}function T(a,b,c){return b==k||c?a[0]:j.call(a,0,b)}function ca(a,b){if(b)return E.apply(v,a);for(var c,d=-1,e=a.length,f=[];++d<e;)c=a[d],J(c)?F.apply(f,ca(c)):f.push(c);return f}function t(a,b,c){var d;if(!a)return-1;if(c)return c=da(a,b),a[c]===
b?c:-1;c=0;for(d=a.length;c<d;c++)if(a[c]===b)return c;return-1}function ea(a){for(var b,c=-1,d=a.length,e=j.call(arguments,1),f=[];++c<d;)b=a[c],0>t(f,b)&&U(e,function(a){return-1<t(a,b)})&&f.push(b);return f}function fa(a,b,c){return j.call(a,b==k||c?1:b)}function da(a,b,c){var d,e=0,f=a.length;for(c&&(b=c(b));e<f;)d=e+f>>1,(c?c(a[d]):a[d])<b?e=d+1:f=d;return e}function ga(a,b,c){var d,e=-1,f=a.length,g=[],h=[];for(3>f&&(b=m);++e<f;)if(d=c?c(a[e]):a[e],b?!e||h[h.length-1]!==d:0>t(h,d))h.push(d),
g.push(a[e]);return g}function z(a,b){var c,d=h.call(a)==r;if(d){if(A)return a=A.call.apply(A,arguments),function(){return arguments.length?a.apply(k,arguments):a()}}else c=b,b=a;var e=j.call(arguments,2),f=e.length;return function(){var g;g=arguments;d||(a=b[c]);f&&(g.length&&(e.length=f,F.apply(e,g)),g=e);g=g.length?a.apply(b,g):a.call(b);e.length=f;return g}}function V(a,b,c){c||(c=[]);if(a===b)return 0!==a||1/a==1/b;if(a==k||b==k)return a===b;a.s&&(a=a.t);b.s&&(b=b.t);if(a.isEqual&&h.call(a.isEqual)==
r)return a.isEqual(b);if(b.isEqual&&h.call(b.isEqual)==r)return b.isEqual(a);var d=h.call(a);if(d!=h.call(b))return q;switch(d){case K:return a==""+b;case L:return a!=+a?b!=+b:0==a?1/a==1/b:a==+b;case ha:case ia:return+a==+b;case ja:return a.source==b.source&&a.global==b.global&&a.multiline==b.multiline&&a.ignoreCase==b.ignoreCase}if("object"!=typeof a||"object"!=typeof b)return q;for(var e=c.length;e--;)if(c[e]==a)return m;var e=m,f=0;c.push(a);if(d==I){if(f=a.length,e=f==b.length)for(;f--&&(e=f in
a==f in b&&V(a[f],b[f],c)););}else{if("constructor"in a!="constructor"in b||a.constructor!=b.constructor)return q;for(var g in a)if(x.call(a,g)&&(f++,!(e=x.call(b,g)&&V(a[g],b[g],c))))break;if(e){for(g in b)if(x.call(b,g)&&!f--)break;e=!f}}c.pop();return e}function ka(a){return(a+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")}function $(a){return a}function la(a){G(M(a),function(b){var c=l[b]=a[b];o.prototype[b]=function(){var a=
[this.t];arguments.length&&F.apply(a,arguments);a=1==a.length?c.call(l,a[0]):c.apply(l,a);this.s&&(a=new o(a),a.s=m);return a}})}function ma(a,b,c){c||(c={});var d;d=l.templateSettings||{};var e=c.escape,f=c.evaluate,g=c.interpolate,c=c.variable;e==n&&(e=d.escape);f==n&&(f=d.evaluate);g==n&&(g=d.interpolate);c==n&&(c=d.variable);e&&(a=a.replace(e,xa));g&&(a=a.replace(g,ya));f&&(a=a.replace(f,za));a="__p='"+a.replace(Aa,va).replace(Ba,ua)+"';\n";u.length=0;c||(a="with(object||{}){"+a+"}");a="function("+
(c||"object")+'){var __p,__t;function print(){__p+=__j.call(arguments,"")}'+a+"return __p}";d=Function("_,__e,__j","return "+a)(l,ka,Ca);if(b)return d(b);d.source=a;return d}var wa={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},W="object"==typeof exports&&exports&&("object"==typeof global&&global&&global==global.global&&(s=global),exports),ra=!{valueOf:0}.propertyIsEnumerable("valueOf"),Da=0,Ea=s._,y=/\{\s*\[native code\]\s*\}/,Ba=/__token__(\d+)/g,Aa=/['\n\r\t\u2028\u2029\\]/g,
ta="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),R="__token__",u=[],I="[object Array]",ha="[object Boolean]",ia="[object Date]",r="[object Function]",L="[object Number]",ja="[object RegExp]",K="[object String]",v=Array.prototype,w=Object.prototype,E=v.concat,x=w.hasOwnProperty,Ca=v.join,F=v.push,j=v.slice,h=w.toString,A=y.test(A=j.bind)&&/\n|Opera/.test(A+h.call(s.opera))&&A,B=y.test(B=Array.isArray)&&B,Fa=s.isFinite,X=y.test(X=Object.keys)&&
X,Ga=s.clearTimeout,N=s.setTimeout,sa=ma('var q,B@if(k){%=#k%@}%;#f%;#q%;@if(c){%var w=#g%.length;q=-1;@if(p){%if(w===+w){@}%#c.d%;while(#c.n%){#c.j%;}@if(p){%}@}%@}%@if(p){%@if(c){%else{@}%@if(!i){%var E=typeof #m%==\'function\';@}%#p.d%;for(#p.n%){@if(i){%@if(r){%if(#h%){@}%#p.j%;@if(r){%}@}%@}else{%if(!(E&&q=="prototype")@if(r){%&&#h%@}%){#p.j%;}@}%}@if(i){%var k=#m%.constructor,D=k&&k.prototype===#m%;for(var j=0;j<7;j++){q=C[j];if(!(D&&q=="constructor")@if(r){%&&#h%@}%){#p.j%;}}@}%@if(c){%}@}%@}%#e%;return B',
n,{evaluate:/@([\s\S]+?)%/g,interpolate:/#([\s\S]+?)%/g}),C={k:"L",j:"if(!f(h[q],q,h))return!B"},y={a:"x",k:"x",q:"for(var G,j=1,w=arguments.length;j<w;j++){G=arguments[j]",n:"q in G",r:q,j:"x[q]=G[q]",e:"}"},H={k:"[]",j:"f(h[q],q,h)&&B.push(h[q])"},p={a:"h,f,J",k:"h",q:"if(!f){f=p}else if(J){f=e(f,J)}",j:"f(h[q],q,h)"},w={k:"",f:"if(!h)return[]",d:{b:"B=Array(w)",o:"B=[]"},j:{b:"B[q]=f(h[q],q,h)",o:"B.push(f(h[q],q,h))"}},D={q:"var l,i=-s,B=i;if(!f){if(t(h)&&h[0]===+h[0]){try{return Math.max.apply(Math,h);}catch(e){}}if(u(h)){return B}}else if(J){f=e(f,J)}",
j:"l=f?f(h[q],q,h):h[q];if(l>=i){i=l,B=h[q]}"},J=B||function(a){return h.call(a)==I},aa=i({a:"N",l:"b",k:"L",q:"var g=K.call(N);if(g==d||g==H)return!N.length",j:"return m"}),B=i({a:"h,I",k:"m",j:"if(h[q]===I)return L"}),U=i(p,C),na=i(p,H),oa=i(p,{j:"if(f(h[q],q,h))return h[q]"}),G=i(p),Ha=i(p,{k:"{}",q:"var z,v=K.call(f)==n;if(v&&J)f=e(f,J)",j:"z=v?f(h[q],q,h):h[q][f];(B[z]||(B[z]=[])).push(h[q])"}),Y=i(p,w),pa=i(p,D),D=i(p,D,{q:D.q.replace("-","").replace("max","min"),j:D.j.replace(">=","<")}),O=
i(w,{a:"h,A",j:{b:"B[q]=h[q][A]",o:"B.push(h[q][A])"}}),Z=i({a:"h,f,a,J",k:"a",q:"var y=arguments.length<3;if(J)f=e(f,J)",d:{b:"if(y)B=h[++q]"},j:{b:"B=f(B,h[q],q,h)",o:"B=y?(y=m,h[q]):f(B,h[q],q,h)"}}),H=i(p,H,{j:"!"+H.j}),C=i(p,C,{k:"m",j:C.j.replace("!","")}),qa=i(w,{a:"h",j:{b:"B[q]=h[q]",o:"B.push(h[q])"}}),w=i(y,{j:"if(x[q]==M)"+y.j}),P=i(y),M=i({a:"x",k:"[]",r:q,j:"if(K.call(x[q])==n)B.push(q)",e:"B.sort()"});Q(arguments)||(Q=function(a){return!(!a||!x.call(a,"callee"))});var S=X||i({a:"x",
f:"if(x!==Object(x))throw TypeError()",k:"[]",j:"B.push(q)"});P(l,{VERSION:"0.1.0",templateSettings:{escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g},after:function(a,b){return 1>a?b():function(){if(1>--a)return b.apply(this,arguments)}},bind:z,bindAll:function(a){var b=arguments,c=1;1==b.length&&(c=0,b=M(a));for(var d=b.length;c<d;c++)a[b[c]]=z(a[b[c]],a);return a},chain:function(a){a=new o(a);a.s=m;return a},clone:function(a){return a!==Object(a)?a:J(a)?a.slice():
P({},a)},compact:function(a){for(var b=-1,c=a.length,d=[];++b<c;)a[b]&&d.push(a[b]);return d},compose:function(){var a=arguments;return function(){for(var b=arguments,c=a.length;c--;)b=[a[c].apply(this,b)];return b[0]}},contains:B,debounce:function(a,b,c){function d(){h=k;c||a.apply(g,e)}var e,f,g,h;return function(){var i=c&&!h;e=arguments;g=this;Ga(h);h=N(d,b);i&&(f=a.apply(g,e));return f}},defaults:w,defer:function(a){var b=j.call(arguments,1);return N(function(){return a.apply(k,b)},1)},delay:function(a,
b){var c=j.call(arguments,2);return N(function(){return a.apply(k,c)},b)},difference:function(a){for(var b=-1,c=a.length,d=[],e=E.apply(d,j.call(arguments,1));++b<c;)0>t(e,a[b])&&d.push(a[b]);return d},escape:ka,every:U,extend:P,filter:na,find:oa,first:T,flatten:ca,forEach:G,functions:M,groupBy:Ha,has:function(a,b){return x.call(a,b)},identity:$,indexOf:t,initial:function(a,b,c){return j.call(a,0,-(b==k||c?1:b))},intersection:ea,invoke:function(a,b){for(var c=j.call(arguments,2),d=-1,e=a.length,f=
h.call(b)==r,g=[];++d<e;)g[d]=(f?b:a[d][b]).apply(a[d],c);return g},isArguments:Q,isArray:J,isBoolean:function(a){return a===m||a===q||h.call(a)==ha},isDate:function(a){return h.call(a)==ia},isElement:function(a){return!!(a&&1==a.nodeType)},isEmpty:aa,isEqual:V,isFinite:function(a){return Fa(a)&&h.call(a)==L},isFunction:function(a){return h.call(a)==r},isNaN:function(a){return h.call(a)==L&&a!=+a},isNull:function(a){return a===n},isNumber:function(a){return h.call(a)==L},isObject:function(a){return a===
Object(a)},isRegExp:function(a){return h.call(a)==ja},isString:function(a){return h.call(a)==K},isUndefined:function(a){return a===k},keys:S,last:function(a,b,c){var d=a.length;return b==k||c?a[d-1]:j.call(a,-b||d)},lastIndexOf:function(a,b){if(!a)return-1;for(var c=a.length;c--;)if(a[c]===b)return c;return-1},map:Y,max:pa,memoize:function(a,b){var c={};return function(){var d=b?b.apply(this,arguments):arguments[0];return x.call(c,d)?c[d]:c[d]=a.apply(this,arguments)}},min:D,mixin:la,noConflict:function(){s._=
Ea;return this},once:function(a){var b,c=q;return function(){if(c)return b;c=m;return b=a.apply(this,arguments)}},partial:function(a){var b=j.call(arguments,1),c=b.length;return function(){var d;d=arguments;d.length&&(b.length=c,F.apply(b,d));d=1==b.length?a.call(this,b[0]):a.apply(this,b);b.length=c;return d}},pick:function(a){for(var b,c=0,d=E.apply(v,arguments),e=d.length,f={};++c<e;)b=d[c],b in a&&(f[b]=a[b]);return f},pluck:O,range:function(a,b,c){c||(c=1);2>arguments.length&&(b=a||0,a=0);for(var d=
-1,e=Math.max(Math.ceil((b-a)/c),0),f=Array(e);++d<e;)f[d]=a,a+=c;return f},reduce:Z,reduceRight:ba,reject:H,rest:fa,result:function(a,b){if(!a)return n;var c=a[b];return h.call(c)==r?a[b]():c},shuffle:function(a){for(var b,c=-1,d=a.length,e=Array(d);++c<d;)b=Math.floor(Math.random()*(c+1)),e[c]=e[b],e[b]=a[c];return e},size:function(a){var b=h.call(a);return b==I||b==K?a.length:S(a).length},some:C,sortBy:function(a,b,c){if(h.call(b)!=r)var d=b,b=function(a){return a[d]};else c&&(b=z(b,c));return O(Y(a,
function(c,d){return{a:b(c,d,a),b:c}}).sort(function(a,b){var c=a.a,d=b.a;return c===k?1:d===k?-1:c<d?-1:c>d?1:0}),"b")},sortedIndex:da,tap:function(a,b){b(a);return a},template:ma,throttle:function(a,b){function c(){h=new Date;g=k;a.apply(f,d)}var d,e,f,g,h=0;return function(){var i=new Date,j=b-(i-h);d=arguments;f=this;0>=j?(h=i,e=a.apply(f,d)):g||(g=N(c,j));return e}},times:function(a,b,c){c&&(b=z(b,c));for(c=0;c<a;c++)b(c)},toArray:function(a){if(!a)return[];if(h.call(a.toArray)==r)return a.toArray();
var b=a.length;return b===+b?j.call(a):qa(a)},union:function(){for(var a=-1,b=[],c=E.apply(b,arguments),d=c.length;++a<d;)0>t(b,c[a])&&b.push(c[a]);return b},uniq:ga,uniqueId:function(a){var b=Da++;return a?a+b:b},values:qa,without:function(a){for(var b=j.call(arguments,1),c=-1,d=a.length,e=[];++c<d;)0>t(b,a[c])&&e.push(a[c]);return e},wrap:function(a,b){return function(){var c=[a];arguments.length&&F.apply(c,arguments);return b.apply(this,c)}},zip:function(){for(var a=-1,b=pa(O(arguments,"length")),
c=Array(b);++a<b;)c[a]=O(arguments,a);return c},all:U,any:C,collect:Y,detect:oa,each:G,foldl:Z,foldr:ba,head:T,include:B,inject:Z,intersect:ea,methods:M,select:na,tail:fa,take:T,unique:ga});o.prototype=l.prototype;la(l);G("pop,push,reverse,shift,sort,splice,unshift".split(","),function(a){var b=v[a];o.prototype[a]=function(){var a=this.t;arguments.length?b.apply(a,arguments):b.call(a);a.length===0&&delete a[0];if(this.s){a=new o(a);a.s=m}return a}});G(["concat","join","slice"],function(a){var b=v[a];
o.prototype[a]=function(){var a=this.t,a=arguments.length?b.apply(a,arguments):b.call(a);this.s&&(a=new o(a),a.s=m);return a}});P(o.prototype,{chain:function(){this.s=m;return this},value:function(){return this.t}});W?"object"==typeof module&&module&&module.u==W?(module.u=l)._=l:W._=l:(s._=l,"function"==typeof define&&"object"==typeof define.amd&&define.amd&&define(function(){return l}))})(this);