burnchart/public/js/app.bundle.min.js

19 lines
586 KiB
JavaScript
Raw Normal View History

2014-12-22 14:03:27 -07:00
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b){(function(a){!function(){function c(a){var b=!1;return function(){if(b)throw new Error("Callback was already called.");b=!0,a.apply(d,arguments)}}var d,e,f={};d=this,null!=d&&(e=d.async),f.noConflict=function(){return d.async=e,f};var g=Object.prototype.toString,h=Array.isArray||function(a){return"[object Array]"===g.call(a)},i=function(a,b){if(a.forEach)return a.forEach(b);for(var c=0;c<a.length;c+=1)b(a[c],c,a)},j=function(a,b){if(a.map)return a.map(b);var c=[];return i(a,function(a,d,e){c.push(b(a,d,e))}),c},k=function(a,b,c){return a.reduce?a.reduce(b,c):(i(a,function(a,d,e){c=b(c,a,d,e)}),c)},l=function(a){if(Object.keys)return Object.keys(a);var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c);return b};"undefined"!=typeof a&&a.nextTick?(f.nextTick=a.nextTick,f.setImmediate="undefined"!=typeof setImmediate?function(a){setImmediate(a)}:f.nextTick):"function"==typeof setImmediate?(f.nextTick=function(a){setImmediate(a)},f.setImmediate=f.nextTick):(f.nextTick=function(a){setTimeout(a,0)},f.setImmediate=f.nextTick),f.each=function(a,b,d){function e(b){b?(d(b),d=function(){}):(f+=1,f>=a.length&&d())}if(d=d||function(){},!a.length)return d();var f=0;i(a,function(a){b(a,c(e))})},f.forEach=f.each,f.eachSeries=function(a,b,c){if(c=c||function(){},!a.length)return c();var d=0,e=function(){b(a[d],function(b){b?(c(b),c=function(){}):(d+=1,d>=a.length?c():e())})};e()},f.forEachSeries=f.eachSeries,f.eachLimit=function(a,b,c,d){var e=m(b);e.apply(null,[a,c,d])},f.forEachLimit=f.eachLimit;var m=function(a){return function(b,c,d){if(d=d||function(){},!b.length||0>=a)return d();var e=0,f=0,g=0;!function h(){if(e>=b.length)return d();for(;a>g&&f<b.length;)f+=1,g+=1,c(b[f-1],function(a){a?(d(a),d=function(){}):(e+=1,g-=1,e>=b.length?d():h())})}()}},n=function(a){return function(){var b=Array.prototype.slice.call(arguments);return a.apply(null,[f.each].concat(b))}},o=function(a,b){return function(){var c=Array.prototype.slice.call(arguments);return b.apply(null,[m(a)].concat(c))}},p=function(a){return function(){var b=Array.prototype.slice.call(arguments);return a.apply(null,[f.eachSeries].concat(b))}},q=function(a,b,c,d){if(b=j(b,function(a,b){return{index:b,value:a}}),d){var e=[];a(b,function(a,b){c(a.value,function(c,d){e[a.index]=d,b(c)})},function(a){d(a,e)})}else a(b,function(a,b){c(a.value,function(a){b(a)})})};f.map=n(q),f.mapSeries=p(q),f.mapLimit=function(a,b,c,d){return r(b)(a,c,d)};var r=function(a){return o(a,q)};f.reduce=function(a,b,c,d){f.eachSeries(a,function(a,d){c(b,a,function(a,c){b=c,d(a)})},function(a){d(a,b)})},f.inject=f.reduce,f.foldl=f.reduce,f.reduceRight=function(a,b,c,d){var e=j(a,function(a){return a}).reverse();f.reduce(e,b,c,d)},f.foldr=f.reduceRight;var s=function(a,b,c,d){var e=[];b=j(b,function(a,b){return{index:b,value:a}}),a(b,function(a,b){c(a.value,function(c){c&&e.push(a),b()})},function(){d(j(e.sort(function(a,b){return a.index-b.index}),function(a){return a.value}))})};f.filter=n(s),f.filterSeries=p(s),f.select=f.filter,f.selectSeries=f.filterSeries;var t=function(a,b,c,d){var e=[];b=j(b,function(a,b){return{index:b,value:a}}),a(b,function(a,b){c(a.value,function(c){c||e.push(a),b()})},function(){d(j(e.sort(function(a,b){return a.index-b.index}),function(a){return a.value}))})};f.reject=n(t),f.rejectSeries=p(t);var u=function(a,b,c,d){a(b,function(a,b){c(a,function(c){c?(d(a),d=function(){}):b()})},function(){d()})};f.detect=n(u),f.detectSeries=p(u),f.some=function(a,b,c){f.each(a,function(a,d){b(a,function(a){a&&(c(!0),c=function(){}),d()})},function(){c(!1)})},f.any=f.some,f.every=function(a,b,c){f.each(a,function(a,d){b(a,function(a){a||(c(!
}},c.toString=d.toString,c},b.multi=b.utc.multi=ic;var t=ch.map(),u=Sb(p),v=Tb(p),w=Sb(q),x=Tb(q),y=Sb(r),z=Tb(r),A=Sb(s),B=Tb(s);o.forEach(function(a,b){t.set(a.toLowerCase(),b)});var C={a:function(a){return q[a.getDay()]},A:function(a){return p[a.getDay()]},b:function(a){return s[a.getMonth()]},B:function(a){return r[a.getMonth()]},c:b(l),d:function(a,b){return Rb(a.getDate(),b,2)},e:function(a,b){return Rb(a.getDate(),b,2)},H:function(a,b){return Rb(a.getHours(),b,2)},I:function(a,b){return Rb(a.getHours()%12||12,b,2)},j:function(a,b){return Rb(1+mi.dayOfYear(a),b,3)},L:function(a,b){return Rb(a.getMilliseconds(),b,3)},m:function(a,b){return Rb(a.getMonth()+1,b,2)},M:function(a,b){return Rb(a.getMinutes(),b,2)},p:function(a){return o[+(a.getHours()>=12)]},S:function(a,b){return Rb(a.getSeconds(),b,2)},U:function(a,b){return Rb(mi.sundayOfYear(a),b,2)},w:function(a){return a.getDay()},W:function(a,b){return Rb(mi.mondayOfYear(a),b,2)},x:b(m),X:b(n),y:function(a,b){return Rb(a.getFullYear()%100,b,2)},Y:function(a,b){return Rb(a.getFullYear()%1e4,b,4)},Z:gc,"%":function(){return"%"}},D={a:d,A:e,b:f,B:g,c:h,d:ac,e:ac,H:cc,I:cc,j:bc,L:fc,m:_b,M:dc,p:k,S:ec,U:Vb,w:Ub,W:Wb,x:i,X:j,y:Yb,Y:Xb,Z:Zb,"%":hc};return b}function Rb(a,b,c){var d=0>a?"-":"",e=(d?-a:a)+"",f=e.length;return d+(c>f?new Array(c-f+1).join(b)+e:e)}function Sb(a){return new RegExp("^(?:"+a.map(ch.requote).join("|")+")","i")}function Tb(a){for(var b=new i,c=-1,d=a.length;++c<d;)b.set(a[c].toLowerCase(),c);return b}function Ub(a,b,c){qi.lastIndex=0;var d=qi.exec(b.slice(c,c+1));return d?(a.w=+d[0],c+d[0].length):-1}function Vb(a,b,c){qi.lastIndex=0;var d=qi.exec(b.slice(c));return d?(a.U=+d[0],c+d[0].length):-1}function Wb(a,b,c){qi.lastIndex=0;var d=qi.exec(b.slice(c));return d?(a.W=+d[0],c+d[0].length):-1}function Xb(a,b,c){qi.lastIndex=0;var d=qi.exec(b.slice(c,c+4));return d?(a.y=+d[0],c+d[0].length):-1}function Yb(a,b,c){qi.lastIndex=0;var d=qi.exec(b.slice(c,c+2));return d?(a.y=$b(+d[0]),c+d[0].length):-1}function Zb(a,b,c){return/^[+-]\d{4}$/.test(b=b.slice(c,c+5))?(a.Z=-b,c+5):-1}function $b(a){return a+(a>68?1900:2e3)}function _b(a,b,c){qi.lastIndex=0;var d=qi.exec(b.slice(c,c+2));return d?(a.m=d[0]-1,c+d[0].length):-1}function ac(a,b,c){qi.lastIndex=0;var d=qi.exec(b.slice(c,c+2));return d?(a.d=+d[0],c+d[0].length):-1}function bc(a,b,c){qi.lastIndex=0;var d=qi.exec(b.slice(c,c+3));return d?(a.j=+d[0],c+d[0].length):-1}function cc(a,b,c){qi.lastIndex=0;var d=qi.exec(b.slice(c,c+2));return d?(a.H=+d[0],c+d[0].length):-1}function dc(a,b,c){qi.lastIndex=0;var d=qi.exec(b.slice(c,c+2));return d?(a.M=+d[0],c+d[0].length):-1}function ec(a,b,c){qi.lastIndex=0;var d=qi.exec(b.slice(c,c+2));return d?(a.S=+d[0],c+d[0].length):-1}function fc(a,b,c){qi.lastIndex=0;var d=qi.exec(b.slice(c,c+3));return d?(a.L=+d[0],c+d[0].length):-1}function gc(a){var b=a.getTimezoneOffset(),c=b>0?"-":"+",d=qh(b)/60|0,e=qh(b)%60;return c+Rb(d,"0",2)+Rb(e,"0",2)}function hc(a,b,c){ri.lastIndex=0;var d=ri.exec(b.slice(c,c+1));return d?c+d[0].length:-1}function ic(a){for(var b=a.length,c=-1;++c<b;)a[c][0]=this(a[c][0]);return function(b){for(var c=0,d=a[c];!d[1](b);)d=a[++c];return d[0](b)}}function jc(){}function kc(a,b,c){var d=c.s=a+b,e=d-a,f=d-e;c.t=a-f+(b-e)}function lc(a,b){a&&vi.hasOwnProperty(a.type)&&vi[a.type](a,b)}function mc(a,b,c){var d,e=-1,f=a.length-c;for(b.lineStart();++e<f;)d=a[e],b.point(d[0],d[1],d[2]);b.lineEnd()}function nc(a,b){var c=-1,d=a.length;for(b.polygonStart();++c<d;)mc(a[c],b,1);b.polygonEnd()}function oc(){function a(a,b){a*=Oh,b=b*Oh/2+Kh/4;var c=a-d,g=c>=0?1:-1,h=g*c,i=Math.cos(b),j=Math.sin(b),k=f*j,l=e*i+k*Math.cos(h),m=k*g*Math.sin(h);xi.add(Math.atan2(m,l)),d=a,e=i,f=j}var b,c,d,e,f;yi.point=function(g,h){yi.point=a,d=(b=g)*Oh,e=Math.cos(h=(c=h)*Oh/2+Kh/4),f=Math.sin(h)},yi.lineEnd=function(){a(b,c)}}function pc(a){var b=a[0],c=a[1],d=Math.cos(c);return[d*Math.cos(b),d*Math.sin(b),Math.sin(c)]}function qc(a,b){return a[0]*b[0]+a[1]*b[1]+a[2]*b[2]}function rc(a,b){return[a[1]*b[2]-a[2]*b[1],a[2]*b[0]-a[0]*b[2],a[0]*b[1]-a[1]*b[0]]}function sc(a,b
return g}function Ve(a){a.fixed|=2}function We(a){a.fixed&=-7}function Xe(a){a.fixed|=4,a.px=a.x,a.py=a.y}function Ye(a){a.fixed&=-5}function Ze(a,b,c){var d=0,e=0;if(a.charge=0,!a.leaf)for(var f,g=a.nodes,h=g.length,i=-1;++i<h;)f=g[i],null!=f&&(Ze(f,b,c),a.charge+=f.charge,d+=f.charge*f.cx,e+=f.charge*f.cy);if(a.point){a.leaf||(a.point.x+=Math.random()-.5,a.point.y+=Math.random()-.5);var j=b*c[a.point.index];a.charge+=a.pointCharge=j,d+=j*a.point.x,e+=j*a.point.y}a.cx=d/a.charge,a.cy=e/a.charge}function $e(a,b){return ch.rebind(a,b,"sort","children","value"),a.nodes=a,a.links=ef,a}function _e(a,b){for(var c=[a];null!=(a=c.pop());)if(b(a),(e=a.children)&&(d=e.length))for(var d,e;--d>=0;)c.push(e[d])}function af(a,b){for(var c=[a],d=[];null!=(a=c.pop());)if(d.push(a),(f=a.children)&&(e=f.length))for(var e,f,g=-1;++g<e;)c.push(f[g]);for(;null!=(a=d.pop());)b(a)}function bf(a){return a.children}function cf(a){return a.value}function df(a,b){return b.value-a.value}function ef(a){return ch.merge(a.map(function(a){return(a.children||[]).map(function(b){return{source:a,target:b}})}))}function ff(a){return a.x}function gf(a){return a.y}function hf(a,b,c){a.y0=b,a.y=c}function jf(a){return ch.range(a.length)}function kf(a){for(var b=-1,c=a[0].length,d=[];++b<c;)d[b]=0;return d}function lf(a){for(var b,c=1,d=0,e=a[0][1],f=a.length;f>c;++c)(b=a[c][1])>e&&(d=c,e=b);return d}function mf(a){return a.reduce(nf,0)}function nf(a,b){return a+b[1]}function of(a,b){return pf(a,Math.ceil(Math.log(b.length)/Math.LN2+1))}function pf(a,b){for(var c=-1,d=+a[0],e=(a[1]-d)/b,f=[];++c<=b;)f[c]=e*c+d;return f}function qf(a){return[ch.min(a),ch.max(a)]}function rf(a,b){return a.value-b.value}function sf(a,b){var c=a._pack_next;a._pack_next=b,b._pack_prev=a,b._pack_next=c,c._pack_prev=b}function tf(a,b){a._pack_next=b,b._pack_prev=a}function uf(a,b){var c=b.x-a.x,d=b.y-a.y,e=a.r+b.r;return.999*e*e>c*c+d*d}function vf(a){function b(a){k=Math.min(a.x-a.r,k),l=Math.max(a.x+a.r,l),m=Math.min(a.y-a.r,m),n=Math.max(a.y+a.r,n)}if((c=a.children)&&(j=c.length)){var c,d,e,f,g,h,i,j,k=1/0,l=-1/0,m=1/0,n=-1/0;if(c.forEach(wf),d=c[0],d.x=-d.r,d.y=0,b(d),j>1&&(e=c[1],e.x=e.r,e.y=0,b(e),j>2))for(f=c[2],zf(d,e,f),b(f),sf(d,f),d._pack_prev=f,sf(f,e),e=d._pack_next,g=3;j>g;g++){zf(d,e,f=c[g]);var o=0,p=1,q=1;for(h=e._pack_next;h!==e;h=h._pack_next,p++)if(uf(h,f)){o=1;break}if(1==o)for(i=d._pack_prev;i!==h._pack_prev&&!uf(i,f);i=i._pack_prev,q++);o?(q>p||p==q&&e.r<d.r?tf(d,e=h):tf(d=i,e),g--):(sf(d,f),e=f,b(f))}var r=(k+l)/2,s=(m+n)/2,t=0;for(g=0;j>g;g++)f=c[g],f.x-=r,f.y-=s,t=Math.max(t,f.r+Math.sqrt(f.x*f.x+f.y*f.y));a.r=t,c.forEach(xf)}}function wf(a){a._pack_next=a._pack_prev=a}function xf(a){delete a._pack_next,delete a._pack_prev}function yf(a,b,c,d){var e=a.children;if(a.x=b+=d*a.x,a.y=c+=d*a.y,a.r*=d,e)for(var f=-1,g=e.length;++f<g;)yf(e[f],b,c,d)}function zf(a,b,c){var d=a.r+c.r,e=b.x-a.x,f=b.y-a.y;if(d&&(e||f)){var g=b.r+c.r,h=e*e+f*f;g*=g,d*=d;var i=.5+(d-g)/(2*h),j=Math.sqrt(Math.max(0,2*g*(d+h)-(d-=h)*d-g*g))/(2*h);c.x=a.x+i*e+j*f,c.y=a.y+i*f-j*e}else c.x=a.x+d,c.y=a.y}function Af(a,b){return a.parent==b.parent?1:2}function Bf(a){var b=a.children;return b.length?b[0]:a.t}function Cf(a){var b,c=a.children;return(b=c.length)?c[b-1]:a.t}function Df(a,b,c){var d=c/(b.i-a.i);b.c-=d,b.s+=c,a.c+=d,b.z+=c,b.m+=c}function Ef(a){for(var b,c=0,d=0,e=a.children,f=e.length;--f>=0;)b=e[f],b.z+=c,b.m+=c,c+=b.s+(d+=b.c)}function Ff(a,b,c){return a.a.parent===b.parent?a.a:c}function Gf(a){return 1+ch.max(a,function(a){return a.y})}function Hf(a){return a.reduce(function(a,b){return a+b.x},0)/a.length}function If(a){var b=a.children;return b&&b.length?If(b[0]):a}function Jf(a){var b,c=a.children;return c&&(b=c.length)?Jf(c[b-1]):a}function Kf(a){return{x:a.x,y:a.y,dx:a.dx,dy:a.dy}}function Lf(a,b){var c=a.x+b[3],d=a.y+b[0],e=a.dx-b[1]-b[3],f=a.dy-b[0]-b[2];return 0>e&&(c+=e/2,e=0),0>f&&(d+=f/2,f=0),{x:c,y:d,dx:e,dy:f}}function Mf(a){var b=a[0],c=a[a.length-1];return c>b?[b,c]:[c,b]}function Nf(a){return a.rangeExtent?a.rangeExtent():Mf(a.range())}function Of(a,b,c,d){var e=
}function b(a,b,e,f,g){return function(){function h(){var a,c,d=b(m,p);d&&(a=d[0]-t[0],c=d[1]-t[1],o|=a|c,t=d,n({type:"drag",x:d[0]+j[0],y:d[1]+j[1],dx:a,dy:c}))}function i(){b(m,p)&&(r.on(f+q,null).on(g+q,null),s(o&&ch.event.target===l),n({type:"dragend"}))}var j,k=this,l=ch.event.target,m=k.parentNode,n=c.of(k,arguments),o=0,p=a(),q=".drag"+(null==p?"":"-"+p),r=ch.select(e()).on(f+q,h).on(g+q,i),s=V(),t=b(m,p);d?(j=d.apply(k,arguments),j=[j.x-t[0],j.y-t[1]]):j=[0,0],n({type:"dragstart"})}}var c=y(a,"drag","dragstart","dragend"),d=null,e=b(t,ch.mouse,Z,"mousemove","mouseup"),f=b(X,ch.touch,Y,"touchmove","touchend");return a.origin=function(b){return arguments.length?(d=b,a):d},ch.rebind(a,c,"on")},ch.touches=function(a,b){return arguments.length<2&&(b=x().touches),b?eh(b).map(function(b){var c=W(a,b);return c.identifier=b.identifier,c}):[]};var Ih=1e-6,Jh=Ih*Ih,Kh=Math.PI,Lh=2*Kh,Mh=Lh-Ih,Nh=Kh/2,Oh=Kh/180,Ph=180/Kh,Qh=Math.SQRT2,Rh=2,Sh=4;ch.interpolateZoom=function(a,b){function c(a){var b=a*s;if(r){var c=db(p),g=f/(Rh*m)*(c*eb(Qh*b+p)-cb(p));return[d+g*j,e+g*k,f*c/db(Qh*b+p)]}return[d+a*j,e+a*k,f*Math.exp(Qh*b)]}var d=a[0],e=a[1],f=a[2],g=b[0],h=b[1],i=b[2],j=g-d,k=h-e,l=j*j+k*k,m=Math.sqrt(l),n=(i*i-f*f+Sh*l)/(2*f*Rh*m),o=(i*i-f*f-Sh*l)/(2*i*Rh*m),p=Math.log(Math.sqrt(n*n+1)-n),q=Math.log(Math.sqrt(o*o+1)-o),r=q-p,s=(r||Math.log(i/f))/Qh;return c.duration=1e3*s,c},ch.behavior.zoom=function(){function a(a){a.on(E,k).on(Vh+".zoom",m).on("dblclick.zoom",n).on(H,l)}function b(a){return[(a[0]-z.x)/z.k,(a[1]-z.y)/z.k]}function c(a){return[a[0]*z.k+z.x,a[1]*z.k+z.y]}function d(a){z.k=Math.max(B[0],Math.min(B[1],a))}function e(a,b){b=c(b),z.x+=a[0]-b[0],z.y+=a[1]-b[1]}function f(b,c,f,g){b.__chart__={x:z.x,y:z.y,k:z.k},d(Math.pow(2,g)),e(p=c,f),b=ch.select(b),C>0&&(b=b.transition().duration(C)),b.call(a.event)}function g(){u&&u.domain(t.range().map(function(a){return(a-z.x)/z.k}).map(t.invert)),x&&x.domain(v.range().map(function(a){return(a-z.y)/z.k}).map(v.invert))}function h(a){D++||a({type:"zoomstart"})}function i(a){g(),a({type:"zoom",scale:z.k,translate:[z.x,z.y]})}function j(a){--D||a({type:"zoomend"}),p=null}function k(){function a(){k=1,e(ch.mouse(d),m),i(g)}function c(){l.on(F,null).on(G,null),n(k&&ch.event.target===f),j(g)}var d=this,f=ch.event.target,g=I.of(d,arguments),k=0,l=ch.select(hh).on(F,a).on(G,c),m=b(ch.mouse(d)),n=V();Oj.call(d),h(g)}function l(){function a(){var a=ch.touches(o);return n=z.k,a.forEach(function(a){a.identifier in q&&(q[a.identifier]=b(a))}),a}function c(){var b=ch.event.target;ch.select(b).on(u,g).on(v,m),x.push(b);for(var c=ch.event.changedTouches,d=0,e=c.length;e>d;++d)q[c[d].identifier]=null;var h=a(),i=Date.now();if(1===h.length){if(500>i-s){var j=h[0];f(o,j,q[j.identifier],Math.floor(Math.log(z.k)/Math.LN2)+1),w()}s=i}else if(h.length>1){var j=h[0],k=h[1],l=j[0]-k[0],n=j[1]-k[1];r=l*l+n*n}}function g(){var a,b,c,f,g=ch.touches(o);Oj.call(o);for(var h=0,j=g.length;j>h;++h,f=null)if(c=g[h],f=q[c.identifier]){if(b)break;a=c,b=f}if(f){var k=(k=c[0]-a[0])*k+(k=c[1]-a[1])*k,l=r&&Math.sqrt(k/r);a=[(a[0]+c[0])/2,(a[1]+c[1])/2],b=[(b[0]+f[0])/2,(b[1]+f[1])/2],d(l*n)}s=null,e(a,b),i(p)}function m(){if(ch.event.touches.length){for(var b=ch.event.changedTouches,c=0,d=b.length;d>c;++c)delete q[b[c].identifier];for(var e in q)return void a()}ch.selectAll(x).on(t,null),y.on(E,k).on(H,l),A(),j(p)}var n,o=this,p=I.of(o,arguments),q={},r=0,t=".zoom-"+ch.event.changedTouches[0].identifier,u="touchmove"+t,v="touchend"+t,x=[],y=ch.select(o),A=V();c(),h(p),y.on(E,null).on(H,c)}function m(){var a=I.of(this,arguments);r?clearTimeout(r):(o=b(p=q||ch.mouse(this)),Oj.call(this),h(a)),r=setTimeout(function(){r=null,j(a)},50),w(),d(Math.pow(2,.002*Th())*z.k),e(p,o),i(a)}function n(){var a=ch.mouse(this),c=Math.log(z.k)/Math.LN2;f(this,a,b(a),ch.event.shiftKey?Math.ceil(c)-1:Math.floor(c)+1)}var o,p,q,r,s,t,u,v,x,z={x:0,y:0,k:1},A=[960,500],B=Uh,C=250,D=0,E="mousedown.zoom",F="mousemove.zoom",G="mouseup.zoom",H="touchstart.zoom",I=y(a,"zoomstart","zoom","zoomend");return a.event=function(a){a.each(function(){va
},z.visit=function(a){me(a,z,p,q,r,s)},z.find=function(a){return ne(z,a[0],a[1],p,q,r,s)},n=-1,null==b){for(;++n<o;)f(z,a[n],l[n],m[n],p,q,r,s);--n}else a.forEach(z.add);return l=m=a=k=null,z}var g,h=Cd,i=Dd;return(g=arguments.length)?(h=je,i=ke,3===g&&(e=c,d=b,c=b=0),f(a)):(f.x=function(a){return arguments.length?(h=a,f):h},f.y=function(a){return arguments.length?(i=a,f):i},f.extent=function(a){return arguments.length?(null==a?b=c=d=e=null:(b=+a[0][0],c=+a[0][1],d=+a[1][0],e=+a[1][1]),f):null==b?null:[[b,c],[d,e]]},f.size=function(a){return arguments.length?(null==a?b=c=d=e=null:(b=c=0,d=+a[0],e=+a[1]),f):null==b?null:[d-b,e-c]},f)},ch.interpolateRgb=oe,ch.interpolateObject=pe,ch.interpolateNumber=qe,ch.interpolateString=re;var kj=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,lj=new RegExp(kj.source,"g");ch.interpolate=se,ch.interpolators=[function(a,b){var c=typeof b;return("string"===c?ci.has(b)||/^(#|rgb\(|hsl\()/.test(b)?oe:re:b instanceof gb?oe:Array.isArray(b)?te:"object"===c&&isNaN(b)?pe:qe)(a,b)}],ch.interpolateArray=te;var mj=function(){return Bb},nj=ch.map({linear:mj,poly:Ae,quad:function(){return xe},cubic:function(){return ye},sin:function(){return Be},exp:function(){return Ce},circle:function(){return De},elastic:Ee,back:Fe,bounce:function(){return Ge}}),oj=ch.map({"in":Bb,out:ve,"in-out":we,"out-in":function(a){return we(ve(a))}});ch.ease=function(a){var b=a.indexOf("-"),c=b>=0?a.slice(0,b):a,d=b>=0?a.slice(b+1):"in";return c=nj.get(c)||mj,d=oj.get(d)||Bb,ue(d(c.apply(null,dh.call(arguments,1))))},ch.interpolateHcl=He,ch.interpolateHsl=Ie,ch.interpolateLab=Je,ch.interpolateRound=Ke,ch.transform=function(a){var b=fh.createElementNS(ch.ns.prefix.svg,"g");return(ch.transform=function(a){if(null!=a){b.setAttribute("transform",a);var c=b.transform.baseVal.consolidate()}return new Le(c?c.matrix:pj)})(a)},Le.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var pj={a:1,b:0,c:0,d:1,e:0,f:0};ch.interpolateTransform=Pe,ch.layout={},ch.layout.bundle=function(){return function(a){for(var b=[],c=-1,d=a.length;++c<d;)b.push(Se(a[c]));return b}},ch.layout.chord=function(){function a(){var a,j,l,m,n,o={},p=[],q=ch.range(f),r=[];for(c=[],d=[],a=0,m=-1;++m<f;){for(j=0,n=-1;++n<f;)j+=e[m][n];p.push(j),r.push(ch.range(f)),a+=j}for(g&&q.sort(function(a,b){return g(p[a],p[b])}),h&&r.forEach(function(a,b){a.sort(function(a,c){return h(e[b][a],e[b][c])})}),a=(Lh-k*f)/a,j=0,m=-1;++m<f;){for(l=j,n=-1;++n<f;){var s=q[m],t=r[s][n],u=e[s][t],v=j,w=j+=u*a;o[s+"-"+t]={index:s,subindex:t,startAngle:v,endAngle:w,value:u}}d[s]={index:s,startAngle:l,endAngle:j,value:(j-l)/a},j+=k}for(m=-1;++m<f;)for(n=m-1;++n<f;){var x=o[m+"-"+n],y=o[n+"-"+m];(x.value||y.value)&&c.push(x.value<y.value?{source:y,target:x}:{source:x,target:y})}i&&b()}function b(){c.sort(function(a,b){return i((a.source.value+a.target.value)/2,(b.source.value+b.target.value)/2)})}var c,d,e,f,g,h,i,j={},k=0;return j.matrix=function(a){return arguments.length?(f=(e=a)&&e.length,c=d=null,j):e},j.padding=function(a){return arguments.length?(k=a,c=d=null,j):k},j.sortGroups=function(a){return arguments.length?(g=a,c=d=null,j):g},j.sortSubgroups=function(a){return arguments.length?(h=a,c=null,j):h},j.sortChords=function(a){return arguments.length?(i=a,c&&b(),j):i},j.chords=function(){return c||a(),c},j.groups=function(){return d||a(),d},j},ch.layout.force=function(){function a(a){return function(b,c,d,e){if(b.point!==a){var f=b.cx-a.x,g=b.cy-a.y,h=e-c,i=f*f+g*g;if(i>h*h/q){if(o>i){var j=b.charge/i;a.px-=f*j,a.py-=g*j}return!0}if(b.point&&i&&o>i){var j=b.pointCharge/i;a.px-=f*j,a.py-=g*j}}return!b.charge}}function b(a){a.px=ch.event.x,a.py=ch.event.y,h.resume()}var c,d,e,f,g,h={},i=ch.dispatch("start","tick","end"),j=[1,1],k=.9,l=qj,m=rj,n=-30,o=sj,p=.1,q=.64,r=[],s=[];return h.tick=function(){if((d*=.99)<.005)return i.end({type:"end",alpha:d=0}),!0;var b,c,h,l,m,o,q,t,u,v=r.length,w=s.length;for(c=0;w>c;++c)h=s[c],l=h.source,m=h.target,t=m.x-l.x,u=m.y-l.y,(o=t*t+u*u)&&(o=d*f[c]*((o=Math.sqrt(o))-e[c])
})}function c(a){a.select(".extent").attr("x",k[0]),a.selectAll(".extent,.n>rect,.s>rect").attr("width",k[1]-k[0])}function d(a){a.select(".extent").attr("y",l[0]),a.selectAll(".extent,.e>rect,.w>rect").attr("height",l[1]-l[0])}function e(){function e(){32==ch.event.keyCode&&(C||(s=null,E[0]-=k[1],E[1]-=l[1],C=2),w())}function o(){32==ch.event.keyCode&&2==C&&(E[0]+=k[1],E[1]+=l[1],C=0,w())}function p(){var a=ch.mouse(u),e=!1;t&&(a[0]+=t[0],a[1]+=t[1]),C||(ch.event.altKey?(s||(s=[(k[0]+k[1])/2,(l[0]+l[1])/2]),E[0]=k[+(a[0]<s[0])],E[1]=l[+(a[1]<s[1])]):s=null),A&&q(a,i,0)&&(c(y),e=!0),B&&q(a,j,1)&&(d(y),e=!0),e&&(b(y),x({type:"brush",mode:C?"move":"resize"}))}function q(a,b,c){var d,e,h=Nf(b),i=h[0],j=h[1],o=E[c],p=c?l:k,q=p[1]-p[0];return C&&(i-=o,j-=q+o),d=(c?n:m)?Math.max(i,Math.min(j,a[c])):a[c],C?e=(d+=o)+q:(s&&(o=Math.max(i,Math.min(j,2*s[c]-d))),d>o?(e=d,d=o):e=o),p[0]!=d||p[1]!=e?(c?g=null:f=null,p[0]=d,p[1]=e,!0):void 0}function r(){p(),y.style("pointer-events","all").selectAll(".resize").style("display",a.empty()?"none":null),ch.select("body").style("cursor",null),F.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),D(),x({type:"brushend"})}var s,t,u=this,v=ch.select(ch.event.target),x=h.of(u,arguments),y=ch.select(u),z=v.datum(),A=!/^(n|s)$/.test(z)&&i,B=!/^(e|w)$/.test(z)&&j,C=v.classed("extent"),D=V(),E=ch.mouse(u),F=ch.select(hh).on("keydown.brush",e).on("keyup.brush",o);if(ch.event.changedTouches?F.on("touchmove.brush",p).on("touchend.brush",r):F.on("mousemove.brush",p).on("mouseup.brush",r),y.interrupt().selectAll("*").interrupt(),C)E[0]=k[0]-E[0],E[1]=l[0]-E[1];else if(z){var G=+/w$/.test(z),H=+/^n/.test(z);t=[k[1-G]-E[0],l[1-H]-E[1]],E[0]=k[G],E[1]=l[H]}else ch.event.altKey&&(s=E.slice());y.style("pointer-events","none").selectAll(".resize").style("display",null),ch.select("body").style("cursor",v.style("cursor")),x({type:"brushstart"}),p()}var f,g,h=y(a,"brushstart","brush","brushend"),i=null,j=null,k=[0,0],l=[0,0],m=!0,n=!0,o=Uj[0];return a.event=function(a){a.each(function(){var a=h.of(this,arguments),b={x:k,y:l,i:f,j:g},c=this.__chart__||b;this.__chart__=b,Mj?ch.select(this).transition().each("start.brush",function(){f=c.i,g=c.j,k=c.x,l=c.y,a({type:"brushstart"})}).tween("brush:brush",function(){var c=te(k,b.x),d=te(l,b.y);return f=g=null,function(e){k=b.x=c(e),l=b.y=d(e),a({type:"brush",mode:"resize"})}}).each("end.brush",function(){f=b.i,g=b.j,a({type:"brush",mode:"resize"}),a({type:"brushend"})}):(a({type:"brushstart"}),a({type:"brush",mode:"resize"}),a({type:"brushend"}))})},a.x=function(b){return arguments.length?(i=b,o=Uj[!i<<1|!j],a):i},a.y=function(b){return arguments.length?(j=b,o=Uj[!i<<1|!j],a):j},a.clamp=function(b){return arguments.length?(i&&j?(m=!!b[0],n=!!b[1]):i?m=!!b:j&&(n=!!b),a):i&&j?[m,n]:i?m:j?n:null},a.extent=function(b){var c,d,e,h,m;return arguments.length?(i&&(c=b[0],d=b[1],j&&(c=c[0],d=d[0]),f=[c,d],i.invert&&(c=i(c),d=i(d)),c>d&&(m=c,c=d,d=m),(c!=k[0]||d!=k[1])&&(k=[c,d])),j&&(e=b[0],h=b[1],i&&(e=e[1],h=h[1]),g=[e,h],j.invert&&(e=j(e),h=j(h)),e>h&&(m=e,e=h,h=m),(e!=l[0]||h!=l[1])&&(l=[e,h])),a):(i&&(f?(c=f[0],d=f[1]):(c=k[0],d=k[1],i.invert&&(c=i.invert(c),d=i.invert(d)),c>d&&(m=c,c=d,d=m))),j&&(g?(e=g[0],h=g[1]):(e=l[0],h=l[1],j.invert&&(e=j.invert(e),h=j.invert(h)),e>h&&(m=e,e=h,h=m))),i&&j?[[c,e],[d,h]]:i?[c,d]:j&&[e,h])},a.clear=function(){return a.empty()||(k=[0,0],l=[0,0],f=g=null),a},a.empty=function(){return!!i&&k[0]==k[1]||!!j&&l[0]==l[1]},ch.rebind(a,h,"on")};var Tj={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Uj=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Vj=mi.format=si.timeFormat,Wj=Vj.utc,Xj=Wj("%Y-%m-%dT%H:%M:%S.%LZ");Vj.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Zg:Xj,Zg.parse=function(a){var b=new Date(a);return isNaN(b)?null:b},Zg.toString=Xj.toString,mi.second=Ob(function(a){return new ni(1e3*Math.floor(a/1e3))},function(a,b){a.s
if(null!=b&&"string"!=typeof b)throw Error("Query: When ordering by key, the argument passed to startAt(), endAt(),or equalTo() must be a string.")}if(a.na){if("[MAX_NAME]"!=sc(a))throw Error("Query: When ordering by key, you may only pass one argument to startAt(), endAt(), or equalTo().");if(null!=c&&"string"!=typeof c)throw Error("Query: When ordering by key, the argument passed to startAt(), endAt(),or equalTo() must be a string.")}}else if(a.m===L){if(null!=b&&!Rb(b)||null!=c&&!Rb(c))throw Error("Query: When ordering by priority, the first argument passed to startAt(), endAt(), or equalTo() must be a valid priority value (null, a number, or a string).")}else if(x(a.m instanceof jc,"unknown index type."),null!=b&&"object"==typeof b||null!=c&&"object"==typeof c)throw Error("Query: First argument passed to startAt(), endAt(), or equalTo() cannot be an object.")}function yc(a){if(a.ga&&a.na&&a.ka&&(!a.ka||""===a.Hb))throw Error("Query: Can't combine startAt(), endAt(), and limit(). Use limitToFirst() or limitToLast() instead.")}function zc(a,b){if(!0===a.dc)throw Error(b+": You can't combine multiple orderBy calls.")}function Dc(a){a=a.w;var b={};if(a.ga&&(b.sp=a.Bc,a.nc&&(b.sn=a.Xb)),a.na&&(b.ep=a.Ac,a.yc&&(b.en=a.Ub)),a.ka){b.l=a.xb;var c=a.Hb;""===c&&(c=a.ga?"l":"r"),b.vf=c}return a.m!==L&&(b.i=a.m.toString()),b}function Ac(a,b,c){var d={cancel:null,Ha:null};if(b&&c)d.cancel=b,F(a,3,d.cancel,!0),d.Ha=c,Nb(a,4,d.Ha);else if(b)if("object"==typeof b&&null!==b)d.Ha=b;else{if("function"!=typeof b)throw Error(E(a,3,!0)+" must either be a cancel callback or a context object.");d.cancel=b}return d}function P(a,b){if(1==arguments.length){this.n=a.split("/");for(var c=0,d=0;d<this.n.length;d++)0<this.n[d].length&&(this.n[c]=this.n[d],c++);this.n.length=c,this.aa=0}else this.n=a,this.aa=b}function G(a){return a.aa>=a.n.length?null:a.n[a.aa]}function Q(a){return a.n.length-a.aa}function R(a){var b=a.aa;return b<a.n.length&&b++,new P(a.n,b)}function T(a,b){var c=G(a);if(null===c)return b;if(c===G(b))return T(R(a),R(b));throw Error("INTERNAL ERROR: innerPath ("+b+") is not within outerPath ("+a+")")}function Ec(){this.children={},this.dd=0,this.value=null}function Fc(a,b,c){this.yd=a?a:"",this.Oc=b?b:null,this.D=c?c:new Ec}function Gc(a,b){for(var c,d=b instanceof P?b:new P(b),e=a;null!==(c=G(d));)e=new Fc(c,e,v(e.D.children,c)||new Ec),d=R(d);return e}function Hc(a,b){x("undefined"!=typeof b,"Cannot set value to undefined"),a.D.value=b,Ic(a)}function Jc(a,b,c,d){c&&!d&&b(a),a.ca(function(a){Jc(a,b,!0,d)}),c&&d&&b(a)}function Kc(a,b){for(var c=a.parent();null!==c&&!b(c);)c=c.parent()}function Ic(a){if(null!==a.Oc){var b=a.Oc,c=a.yd,d=a.e(),e=u(b.D.children,c);d&&e?(delete b.D.children[c],b.D.dd--,Ic(b)):d||e||(b.D.children[c]=a.D,b.D.dd++,Ic(b))}}function Lc(a,b){this.Ga=a,this.pa=b?b:Mc}function Nc(a,b){for(var c,d=a.pa,e=null;!d.e();){if(c=a.Ga(b,d.key),0===c){if(d.left.e())return e?e.key:null;for(d=d.left;!d.right.e();)d=d.right;return d.key}0>c?d=d.left:c>0&&(e=d,d=d.right)}throw Error("Attempted to find predecessor key for a nonexistent key. What gives?")}function Oc(a,b,c,d,e){for(this.qf=e||null,this.te=d,this.ac=[],e=1;!a.e();)if(e=b?c(a.key,b):1,d&&(e*=-1),0>e)a=this.te?a.left:a.right;else{if(0===e){this.ac.push(a);break}this.ac.push(a),a=this.te?a.right:a.left}}function U(a){if(0===a.ac.length)return null;var b,c=a.ac.pop();if(b=a.qf?a.qf(c.key,c.value):{key:c.key,value:c.value},a.te)for(c=c.left;!c.e();)a.ac.push(c),c=c.right;else for(c=c.right;!c.e();)a.ac.push(c),c=c.left;return b}function Pc(a,b,c,d,e){this.key=a,this.value=b,this.color=null!=c?c:!0,this.left=null!=d?d:Mc,this.right=null!=e?e:Mc}function Qc(a){return a.left.e()?a:Qc(a.left)}function Sc(a){return a.left.e()?Mc:(a.left.$()||a.left.left.$()||(a=Tc(a)),a=a.W(null,null,null,Sc(a.left),null),Rc(a))}function Rc(a){return a.right.$()&&!a.left.$()&&(a=Wc(a)),a.left.$()&&a.left.left.$()&&(a=Uc(a)),a.left.$()&&a.right.$()&&(a=Vc(a)),a}function Tc(a){return a=Vc(a),a.right.left.$()&&(a=a.W(null,null,null,null,Uc(a.right)),a=Wc(a),a=Vc(a)),a}function Wc(a){retu
}function X(a){return a.u||a.X}function jg(a,b){this.value=a,this.children=b||kg}function mg(a){var b=lg;return A(a,function(a,c){b=b.set(new P(c),a)}),b}function ng(a,b,c){if(null!=a.value&&c(a.value))return{path:S,value:a.value};if(b.e())return null;var d=G(b);return a=a.children.get(d),null!==a?(b=ng(a,R(b),c),null!=b?{path:new P(d).k(b.path),value:b.value}:null):null}function og(a,b){return ng(a,b,function(){return!0})}function pg(a,b,c){if(b.e())return c;var d=G(b);return b=pg(a.children.get(d)||lg,R(b),c),d=b.e()?a.children.remove(d):a.children.Ja(d,b),new jg(a.value,d)}function qg(a,b){return rg(a,S,b)}function rg(a,b,c){var d={};return a.children.Ba(function(a,e){d[a]=rg(e,b.k(a),c)}),c(b,a.value,d)}function sg(a,b,c){return tg(a,b,S,c)}function tg(a,b,c,d){var e=a.value?d(c,a.value):!1;return e?e:b.e()?null:(e=G(b),(a=a.children.get(e))?tg(a,R(b),c.k(e),d):null)}function ug(a,b,c){if(!b.e()){var d=!0;a.value&&(d=c(S,a.value)),!0===d&&(d=G(b),(a=a.children.get(d))&&vg(a,R(b),S.k(d),c))}}function vg(a,b,c,d){if(b.e())return a;a.value&&d(c,a.value);var e=G(b);return(a=a.children.get(e))?vg(a,R(b),c.k(e),d):lg}function Xf(a,b){wg(a,S,b)}function wg(a,b,c){a.children.Ba(function(a,d){wg(d,b.k(a),c)}),a.value&&c(b,a.value)}function xg(a,b){a.children.Ba(function(a,c){c.value&&b(a,c.value)})}function yg(){this.qa={}}function Ag(a){return Ka(xd(a.qa),function(a){return!wc(a.U.w)})}function Bg(a,b){if(wc(b.w))return zg(a);var c=b.Da();return v(a.qa,c)}function zg(a){return Ad(a.qa,function(a){return wc(a.U.w)})||null}function Cg(){this.V=lg,this.ra=[],this.Ec=-1}function Dg(a,b){var c=Pa(a.ra,function(a){return a.Xd===b});x(c>=0,"removeWrite called with nonexistent writeId.");var d=a.ra[c];a.ra.splice(c,1);for(var e=!1,f=!1,g=!1,h=a.ra.length-1;!e&&h>=0;){var i=a.ra[h];h>=c&&Eg(i,d.path)?e=!0:!f&&d.path.contains(i.path)&&(h>=c?f=!0:g=!0),h--}return e||(f||g?Fg(a):d.Oa?a.V=a.V.remove(d.path):A(d.children,function(b,c){a.V=a.V.remove(d.path.k(c))})),c=d.path,og(a.V,c)?g?c:(x(e,"Must have found a shadow"),null):c}function Eg(a,b){return a.Oa?a.path.contains(b):!!zd(a.children,function(c,d){return a.path.k(d).contains(b)})}function Fg(a){a.V=Gg(a.ra,Hg,S),a.Ec=0<a.ra.length?a.ra[a.ra.length-1].Xd:-1}function Hg(a){return a.visible}function Gg(a,b,c){for(var d=lg,e=0;e<a.length;++e){var f=a[e];if(b(f)){var g,h=f.path;f.Oa?(c.contains(h)?(g=T(c,h),f=f.Oa):(g=S,f=f.Oa.da(T(h,c))),d=Ig(d,g,f)):d=Jg(d,f.path,f.children)}}return d}function Ig(a,b,c){var d=og(a,b);if(d){var e=d.value,d=d.path;b=T(d,b),c=e.L(b,c),a=pg(a,d,new jg(c))}else a=pg(a,b,new jg(c));return a}function Jg(a,b,c){var d=og(a,b);if(d){var e=d.value,d=d.path,f=T(d,b),g=e;A(c,function(a,b){g=g.L(f.k(b),a)}),a=pg(a,d,new jg(g))}else A(c,function(c,d){a=pg(a,b.k(d),new jg(c))});return a}function Kg(a,b){this.Gb=a,this.Ib=b}function Lg(a,b,c){this.type=Qf,this.source=a,this.path=b,this.Oa=c}function Mg(a,b){this.type=Sf,this.source=Ng,this.path=a,this.sf=b}function Og(a,b){this.type=Vf,this.source=a,this.path=b}function Pg(a,b,c){this.type=Rf,this.source=a,this.path=b,this.children=c}function Qg(a,b,c,d){this.$e=a,this.Ze=b,this.fc=c,this.wf=d,x(!d||b,"Tagged queries must be from server.")}function Sg(a){this.ma=lg,this.Bb=new Cg,this.Zc={},this.gc={},this.Fc=a}function Ug(a,b,c,d){if(d=Cd(a.Zc,"_"+d),null!=d){var e=Vg(d);return d=e.path,e=e.fc,b=T(d,b),c=new Lg(new Qg(!1,!0,e,!0),b,c),Wg(a,d,c)}return[]}function Xg(a,b,c,d){if(d=Cd(a.Zc,"_"+d)){var e=Vg(d);return d=e.path,e=e.fc,b=T(d,b),c=mg(c),c=new Pg(new Qg(!1,!0,e,!0),b,c),Wg(a,d,c)}return[]}function ah(a){return qg(a,function(a,b,c){if(b&&null!=zg(b))return[zg(b)];var d=[];return b&&(d=Ag(b)),A(c,function(a){d=d.concat(a)}),d})}function dh(a,b){for(var c=0;c<b.length;++c){var d=b[c];if(!wc(d.w)){var d=Yg(d),e=a.gc[d];delete a.gc[d],delete a.Zc["_"+e]}}}function $g(a,b,c){var d=b.path,e=ch(a,b);if(c=bh(a,c),b=a.Fc.Le(b,e,c.qd,c.H),d=a.ma.subtree(d),e)x(null==zg(d.value),"If we're adding a query, it shouldn't be shadowed");else for(e=qg(d,function(a,b,c){if(!a.e()&&b&&null!=zg(b))return[hg(zg(b))];var d=[];retur
},h.ja=function(a){if(a===this)return!0;if(a.P())return!1;if(this.O().ja(a.O())&&this.j.count()===a.j.count()){var b=this.Aa(L);a=a.Aa(L);for(var c=U(b),d=U(a);c&&d;){if(c.name!==d.name||!c.K.ja(d.K))return!1;c=U(b),d=U(a)}return null===c&&null===d}return!1},h.toString=function(){var a="{",b=!0;return this.ca(L,function(c,d){b?b=!1:a+=", ",a+='"'+c+'" : '+d.toString()}),a+="}"};var pd=Math.log(2),K=new bd(new Lc(fc),null,id);na(sd,bd),h=sd.prototype,h.he=function(a){return a===this?0:1},h.ja=function(a){return a===this},h.O=function(){throw ib("Why is this called?")},h.B=function(){return K},h.e=function(){return!1};var kc=new sd,ic=new I("[MIN_NAME]",K);C.prototype.N=function(){return D("Firebase.DataSnapshot.val",0,0,arguments.length),this.D.N()},C.prototype.val=C.prototype.N,C.prototype.Xe=function(){return D("Firebase.DataSnapshot.exportVal",0,0,arguments.length),this.D.N(!0)},C.prototype.exportVal=C.prototype.Xe,C.prototype.Qf=function(){return D("Firebase.DataSnapshot.exists",0,0,arguments.length),!this.D.e()},C.prototype.exists=C.prototype.Qf,C.prototype.k=function(a){D("Firebase.DataSnapshot.child",0,1,arguments.length),ga(a)&&(a=String(a)),Zb("Firebase.DataSnapshot.child",a);var b=new P(a),c=this.U.k(b);return new C(this.D.da(b),c,L)},C.prototype.child=C.prototype.k,C.prototype.Y=function(a){D("Firebase.DataSnapshot.hasChild",1,1,arguments.length),Zb("Firebase.DataSnapshot.hasChild",a);var b=new P(a);return!this.D.da(b).e()},C.prototype.hasChild=C.prototype.Y,C.prototype.O=function(){return D("Firebase.DataSnapshot.getPriority",0,0,arguments.length),this.D.O().N()},C.prototype.getPriority=C.prototype.O,C.prototype.forEach=function(a){if(D("Firebase.DataSnapshot.forEach",1,1,arguments.length),F("Firebase.DataSnapshot.forEach",1,a,!1),this.D.P())return!1;var b=this;return!!this.D.ca(this.m,function(c,d){return a(new C(d,b.U.k(c),L))})},C.prototype.forEach=C.prototype.forEach,C.prototype.pd=function(){return D("Firebase.DataSnapshot.hasChildren",0,0,arguments.length),this.D.P()?!1:!this.D.e()},C.prototype.hasChildren=C.prototype.pd,C.prototype.name=function(){return z("Firebase.DataSnapshot.name() being deprecated. Please use Firebase.DataSnapshot.key() instead."),D("Firebase.DataSnapshot.name",0,0,arguments.length),this.key()},C.prototype.name=C.prototype.name,C.prototype.key=function(){return D("Firebase.DataSnapshot.key",0,0,arguments.length),this.U.key()},C.prototype.key=C.prototype.key,C.prototype.Ua=function(){return D("Firebase.DataSnapshot.numChildren",0,0,arguments.length),this.D.Ua()},C.prototype.numChildren=C.prototype.Ua,C.prototype.hc=function(){return D("Firebase.DataSnapshot.ref",0,0,arguments.length),this.U},C.prototype.ref=C.prototype.hc,td.prototype.Td=function(a){for(var b=this.Gc[a]||[],c=0;c<b.length;c++)b[c].sc.apply(b[c].Ha,Array.prototype.slice.call(arguments,1))},td.prototype.zb=function(a,b,c){ud(this,a),this.Gc[a]=this.Gc[a]||[],this.Gc[a].push({sc:b,Ha:c}),(a=this.pe(a))&&b.apply(c,a)},td.prototype.bc=function(a,b,c){ud(this,a),a=this.Gc[a]||[];for(var d=0;d<a.length;d++)if(a[d].sc===b&&(!c||c===a[d].Ha)){a.splice(d,1);break}},na(vd,td),ca(vd),vd.prototype.pe=function(a){return x("visible"===a,"Unknown event type: "+a),[this.qc]},na(wd,td),ca(wd),wd.prototype.pe=function(a){return x("online"===a,"Unknown event type: "+a),[this.Lc]};var Dd="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");Fd.prototype.get=function(){return od(this.wc)},Hd.prototype.get=function(){var a=this.Kf.get(),b=od(a);if(this.vd)for(var c in this.vd)b[c]-=this.vd[c];return this.vd=a,b},Id.prototype.nf=function(){var a,b=this.Nd.get(),c={},d=!1;for(a in b)0<b[a]&&u(this.uf,a)&&(c[a]=b[a],d=!0);d&&(b=this.S,b.ia&&(c={c:c},b.f("reportStats",c),b.wa("s",c))),setTimeout(q(this.nf,this),Math.floor(6e5*Math.random()))};var Jd={},Kd={},Nd=null;"undefined"!=typeof MozWebSocket?Nd=MozWebSocket:"undefined"!=typeof WebSocket&&(Nd=WebSocket);var Pd;Od.prototype.open=function(a,b){this.fb=b,this.cg=a,this.f("Websocket connecting to "+this.Za),this.zc=!1,Aa.set("previous_we
var e="ok"===b;e||z("update at "+a+" failed: "+b);var e=i.M.Ea(g,!e),f=a;0<e.length&&(f=kh(i,a)),Xe(i.Z,f,e),mh(c,b,d)}),b=nh(this,a),kh(this,b),Xe(this.Z,a,[])}},h.Ce=function(a,b){var c=this;this.S.Ce(a.toString(),function(d,e){"ok"===d&&Qe(c.ea,a),mh(b,d,e)})},h.tb=function(){this.S.tb()},h.kc=function(){this.S.kc()},h.Me=function(a){if("undefined"!=typeof console){a?(this.Nd||(this.Nd=new Hd(this.Qa)),a=this.Nd.get()):a=this.Qa.get();var b,c=Ma(yd(a),function(a,b){return Math.max(b.length,a)},0);for(b in a){for(var d=a[b],e=b.length;c+2>e;e++)b+=" ";console.log(b+d)}}},h.Ne=function(a){Gd(this.Qa,a),this.ug.uf[a]=!0},h.f=function(){kb("r:"+this.S.id+":",arguments)},ca(Ah),Ah.prototype.tb=function(){for(var a in this.jc)this.jc[a].tb()},Ah.prototype.interrupt=Ah.prototype.tb,Ah.prototype.kc=function(){for(var a in this.jc)this.jc[a].kc()},Ah.prototype.resume=Ah.prototype.kc,Bh.prototype.cc=function(a){var b,c=this;try{b=ua(a.data)}catch(d){}b&&"request"===b.a&&(ef(window,"message",this.cc),this.Qd=a.origin,this.tc&&setTimeout(function(){c.tc(c.Qd,b.d,function(a,b){c.If=!b,c.tc=void 0,Ch(c,{a:"response",d:a,forceKeepWindowOpen:b})})},0))},Bh.prototype.eg=function(){try{ef(this.sd,"message",this.hf)}catch(a){}this.tc&&(Ch(this,{a:"error",d:"unknown closed window"}),this.tc=void 0);try{window.close()}catch(b){}},Bh.prototype.hf=function(a){if(this.If&&"die"===a.data)try{window.close()}catch(b){}};var Y={Rf:function(){Yd=Pd=!0}};Y.forceLongPolling=Y.Rf,Y.Sf=function(){Zd=!0},Y.forceWebSockets=Y.Sf,Y.rg=function(a,b){a.g.S.Ke=b},Y.setSecurityDebugCallback=Y.rg,Y.Me=function(a,b){a.g.Me(b)},Y.stats=Y.Me,Y.Ne=function(a,b){a.g.Ne(b)},Y.statsIncrementCounter=Y.Ne,Y.jd=function(a){return a.g.jd},Y.dataUpdateCount=Y.jd,Y.Vf=function(a,b){a.g.re=b},Y.interceptServerData=Y.Vf,Y.bg=function(a){new Bh(a)},Y.onPopupOpen=Y.bg,Y.pg=function(a){Ye=a},Y.setAuthenticationServer=Y.pg,Z.prototype.cancel=function(a){D("Firebase.onDisconnect().cancel",0,1,arguments.length),F("Firebase.onDisconnect().cancel",1,a,!0),this.Sc.Ce(this.Ca,a||null)},Z.prototype.cancel=Z.prototype.cancel,Z.prototype.remove=function(a){D("Firebase.onDisconnect().remove",0,1,arguments.length),$b("Firebase.onDisconnect().remove",this.Ca),F("Firebase.onDisconnect().remove",1,a,!0),oh(this.Sc,this.Ca,null,a)},Z.prototype.remove=Z.prototype.remove,Z.prototype.set=function(a,b){D("Firebase.onDisconnect().set",1,2,arguments.length),$b("Firebase.onDisconnect().set",this.Ca),Sb("Firebase.onDisconnect().set",a,!1),F("Firebase.onDisconnect().set",2,b,!0),oh(this.Sc,this.Ca,a,b)},Z.prototype.set=Z.prototype.set,Z.prototype.Db=function(a,b,c){D("Firebase.onDisconnect().setWithPriority",2,3,arguments.length),$b("Firebase.onDisconnect().setWithPriority",this.Ca),Sb("Firebase.onDisconnect().setWithPriority",a,!1),Wb("Firebase.onDisconnect().setWithPriority",2,b),F("Firebase.onDisconnect().setWithPriority",3,c,!0),ph(this.Sc,this.Ca,a,b,c)},Z.prototype.setWithPriority=Z.prototype.Db,Z.prototype.update=function(a,b){if(D("Firebase.onDisconnect().update",1,2,arguments.length),$b("Firebase.onDisconnect().update",this.Ca),ea(a)){for(var c={},d=0;d<a.length;++d)c[""+d]=a[d];a=c,z("Passing an Array to Firebase.onDisconnect().update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}Vb("Firebase.onDisconnect().update",a),F("Firebase.onDisconnect().update",2,b,!0),qh(this.Sc,this.Ca,a,b)},Z.prototype.update=Z.prototype.update;var $={};$.rc=xe,$.DataConnection=$.rc,xe.prototype.tg=function(a,b){this.wa("q",{p:a},b)},$.rc.prototype.simpleListen=$.rc.prototype.tg,xe.prototype.Nf=function(a,b){this.wa("echo",{d:a},b)},$.rc.prototype.echo=$.rc.prototype.Nf,xe.prototype.interrupt=xe.prototype.tb,$.zf=ie,$.RealTimeConnection=$.zf,ie.prototype.sendRequest=ie.prototype.wa,ie.prototype.close=ie.prototype.close,$.Uf=function(a){var b=xe.prototype.put;return xe.prototype.put=function(c,d,e,f){n(f)&&(f=a()),b.call(this,c,d,e,f)},function(){xe.prototype.put=b}},$.hijackHash=$.Uf,$.yf=Ca,$.Conn
}function Vc(a,b){return gb(b,16,[a])}function Wc(a){return function(){return a}}function Xc(a,b,c){var d=typeof a;if(null==a||"function"==d)return w(a,b,c);if("object"!=d)return bd(a);var e=_d(a),f=e[0],g=a[f];return 1!=e.length||g!==g||Eb(g)?function(b){for(var c=e.length,d=!1;c--&&(d=ab(b[e[c]],a[e[c]],null,!0)););return d}:function(a){var b=a[f];return g===b&&(0!==g||1/g==1/b)}}function Yc(a){return null==a?"":vd(a).replace(de,hb)}function Zc(a){return a}function $c(a,d,e){var f=!0,g=d&&ub(d);d&&(e||g.length)||(null==e&&(e=d),h=c,d=a,a=b,g=ub(d)),e===!1?f=!1:Eb(e)&&"chain"in e&&(f=e.chain);var h=a,i=Db(h);Yb(g,function(b){var c=a[b]=d[b];i&&(h.prototype[b]=function(){var b=this.__chain__,d=this.__wrapped__,e=[d];Id.apply(e,arguments);var g=c.apply(a,e);if(f||b){if(d===g&&Eb(g))return this;g=new h(g),g.__chain__=b}return g})})}function _c(){return a._=zd,this}function ad(){}function bd(a){return function(b){return b[a]}}function cd(a,b,c){var d=null==a,e=null==b;if(null==c&&("boolean"==typeof a&&e?(c=a,a=1):e||"boolean"!=typeof b||(c=b,e=!0)),d&&e&&(b=1),a=+a||0,e?(b=a,a=0):b=+b||0,c||a%1||b%1){var f=Vd();return Td(a+f*(b-a+parseFloat("1e-"+((f+"").length-1))),b)}return db(a,b)}function dd(a,b){if(a){var c=a[b];return Db(c)?a[b]():c}}function ed(a,c,d){var e=b.templateSettings;a=vd(a||""),d=fe({},d,e);var f,g=fe({},d.imports,e.imports),h=_d(g),i=Rb(g),k=0,l=d.interpolate||G,m="__p += '",n=ud((d.escape||G).source+"|"+l.source+"|"+(l===E?B:G).source+"|"+(d.evaluate||G).source+"|$","g");a.replace(n,function(b,c,d,e,g,h){return d||(d=e),m+=a.slice(k,h).replace(I,j),c&&(m+="' +\n__e("+c+") +\n'"),g&&(f=!0,m+="';\n"+g+";\n__p += '"),d&&(m+="' +\n((__t = ("+d+")) == null ? '' : __t) +\n'"),k=h+b.length,b}),m+="';\n";var o=d.variable,p=o;p||(o="obj",m="with ("+o+") {\n"+m+"\n}\n"),m=(f?m.replace(y,""):m).replace(z,"$1").replace(A,"$1;"),m="function("+o+") {\n"+(p?"":o+" || ("+o+" = {});\n")+"var __t, __p = '', __e = _.escape"+(f?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+m+"return __p\n}";var r="\n/*\n//# sourceURL="+(d.sourceURL||"/lodash/template/source["+K++ +"]")+"\n*/";try{var s=qd(h,"return "+m+r).apply(q,i)}catch(t){throw t.source=m,t}return c?s(c):(s.source=m,s)}function fd(a,b,c){a=(a=+a)>-1?a:0;var d=-1,e=nd(a);for(b=w(b,c,1);++d<a;)e[d]=b(d);return e}function gd(a){return null==a?"":vd(a).replace(ce,lb)}function hd(a){var b=++t;return vd(null==a?"":a)+b}function id(a){return a=new c(a),a.__chain__=!0,a}function jd(a,b){return b(a),a}function kd(){return this.__chain__=!0,this}function ld(){return vd(this.__wrapped__)}function md(){return this.__wrapped__}a=a?cb.defaults(Z.Object(),a,cb.pick(Z,J)):Z;var nd=a.Array,od=a.Boolean,pd=a.Date,qd=a.Function,rd=a.Math,sd=a.Number,td=a.Object,ud=a.RegExp,vd=a.String,wd=a.TypeError,xd=[],yd=td.prototype,zd=a._,Ad=yd.toString,Bd=ud("^"+vd(Ad).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),Cd=rd.ceil,Dd=a.clearTimeout,Ed=rd.floor,Fd=qd.prototype.toString,Gd=jb(Gd=td.getPrototypeOf)&&Gd,Hd=yd.hasOwnProperty,Id=xd.push,Jd=a.setTimeout,Kd=xd.splice,Ld=xd.unshift,Md=function(){try{var a={},b=jb(b=td.defineProperty)&&b,c=b(a,a,a)&&b}catch(d){}return c}(),Nd=jb(Nd=td.create)&&Nd,Od=jb(Od=nd.isArray)&&Od,Pd=a.isFinite,Qd=a.isNaN,Rd=jb(Rd=td.keys)&&Rd,Sd=rd.max,Td=rd.min,Ud=a.parseInt,Vd=rd.random,Wd={};Wd[M]=nd,Wd[N]=od,Wd[O]=pd,Wd[P]=qd,Wd[R]=td,Wd[Q]=sd,Wd[S]=ud,Wd[T]=vd,c.prototype=b.prototype;var Xd=b.support={};Xd.funcDecomp=!jb(a.WinRTError)&&H.test(p),Xd.funcNames="string"==typeof qd.name,b.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:E,variable:"",imports:{_:b}},Nd||(s=function(){function b(){}return function(c){if(Eb(c)){b.prototype=c;var d=new b;b.prototype=null}return d||a.Object()}}());var Yd=Md?function(a,b){W.value=b,Md(a,"__bindData__",W)}:ad,Zd=Od||function(a){return a&&"object"==typeof a&&"number"==typeof a.length&&Ad.call(a)==M||!1},$d=function(a){var b,c=a,d=[];if(!c)return d;if(!X[typeof a])return d;for(b in c)Hd.call(c,b)&&d.push(b);return d
}function K(a){return a?a.toLowerCase().replace("_","-"):a}function L(a){for(var b,c,d,e,f=0;f<a.length;){for(e=K(a[f]).split("-"),b=e.length,c=K(a[f+1]),c=c?c.split("-"):null;b>0;){if(d=M(e.slice(0,b).join("-")))return d;if(c&&c.length>=b&&z(e,c,!0)>=b-1)break;b--}f++}return null}function M(b){var c=null;if(!Kb[b]&&Mb)try{c=wb.locale(),a("./locale/"+b),wb.locale(c)}catch(d){}return Kb[b]}function N(a,b){var c,d;return b._isUTC?(c=b.clone(),d=(wb.isMoment(a)||y(a)?+a:+wb(a))-+c,c._d.setTime(+c._d+d),wb.updateOffset(c,!1),c):wb(a).local()}function O(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,""):a.replace(/\\/g,"")}function P(a){var b,c,d=a.match(Qb);for(b=0,c=d.length;c>b;b++)d[b]=sc[d[b]]?sc[d[b]]:O(d[b]);return function(e){var f="";for(b=0;c>b;b++)f+=d[b]instanceof Function?d[b].call(e,a):d[b];return f}}function Q(a,b){return a.isValid()?(b=R(b,a.localeData()),oc[b]||(oc[b]=P(b)),oc[b](a)):a.localeData().invalidDate()}function R(a,b){function c(a){return b.longDateFormat(a)||a}var d=5;for(Rb.lastIndex=0;d>=0&&Rb.test(a);)a=a.replace(Rb,c),Rb.lastIndex=0,d-=1;return a}function S(a,b){var c,d=b._strict;switch(a){case"Q":return ac;case"DDDD":return cc;case"YYYY":case"GGGG":case"gggg":return d?dc:Ub;case"Y":case"G":case"g":return fc;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return d?ec:Vb;case"S":if(d)return ac;case"SS":if(d)return bc;case"SSS":if(d)return cc;case"DDD":return Tb;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return Xb;case"a":case"A":return b._locale._meridiemParse;case"x":return $b;case"X":return _b;case"Z":case"ZZ":return Yb;case"T":return Zb;case"SSSS":return Wb;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return d?bc:Sb;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return Sb;case"Do":return d?b._locale._ordinalParse:b._locale._ordinalParseLenient;default:return c=new RegExp(_($(a.replace("\\","")),"i"))}}function T(a){a=a||"";var b=a.match(Yb)||[],c=b[b.length-1]||[],d=(c+"").match(kc)||["-",0,0],e=+(60*d[1])+D(d[2]);return"+"===d[0]?-e:e}function U(a,b,c){var d,e=c._a;switch(a){case"Q":null!=b&&(e[Eb]=3*(D(b)-1));break;case"M":case"MM":null!=b&&(e[Eb]=D(b)-1);break;case"MMM":case"MMMM":d=c._locale.monthsParse(b,a,c._strict),null!=d?e[Eb]=d:c._pf.invalidMonth=b;break;case"D":case"DD":null!=b&&(e[Fb]=D(b));break;case"Do":null!=b&&(e[Fb]=D(parseInt(b.match(/\d{1,2}/)[0],10)));break;case"DDD":case"DDDD":null!=b&&(c._dayOfYear=D(b));break;case"YY":e[Db]=wb.parseTwoDigitYear(b);break;case"YYYY":case"YYYYY":case"YYYYYY":e[Db]=D(b);break;case"a":case"A":c._isPm=c._locale.isPM(b);break;case"h":case"hh":c._pf.bigHour=!0;case"H":case"HH":e[Gb]=D(b);break;case"m":case"mm":e[Hb]=D(b);break;case"s":case"ss":e[Ib]=D(b);break;case"S":case"SS":case"SSS":case"SSSS":e[Jb]=D(1e3*("0."+b));break;case"x":c._d=new Date(D(b));break;case"X":c._d=new Date(1e3*parseFloat(b));break;case"Z":case"ZZ":c._useUTC=!0,c._tzm=T(b);break;case"dd":case"ddd":case"dddd":d=c._locale.weekdaysParse(b),null!=d?(c._w=c._w||{},c._w.d=d):c._pf.invalidWeekday=b;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":a=a.substr(0,1);case"gggg":case"GGGG":case"GGGGG":a=a.substr(0,2),b&&(c._w=c._w||{},c._w[a]=D(b));break;case"gg":case"GG":c._w=c._w||{},c._w[a]=wb.parseTwoDigitYear(b)}}function V(a){var b,c,d,f,g,h,i;b=a._w,null!=b.GG||null!=b.W||null!=b.E?(g=1,h=4,c=e(b.GG,a._a[Db],kb(wb(),1,4).year),d=e(b.W,1),f=e(b.E,1)):(g=a._locale._week.dow,h=a._locale._week.doy,c=e(b.gg,a._a[Db],kb(wb(),g,h).year),d=e(b.w,1),null!=b.d?(f=b.d,g>f&&++d):f=null!=b.e?b.e+g:g),i=lb(c,d,f,h,g),a._a[Db]=i.year,a._dayOfYear=i.dayOfYear}function W(a){var b,c,d,f,g=[];if(!a._d){for(d=Y(a),a._w&&null==a._a[Fb]&&null==a._a[Eb]&&V(a),a._dayOfYear&&(f=e(a._a[Db],d[Db]),a._dayOfYear>G(f)&&(a._pf._overflowDayOfYear=!0),c=gb(f,0,a._dayOfYear),a._a[Eb]=c.getUTCMonth(),a._a[Fb]=c.getUTCDate()),b=0;3>b&&null==a._a[b];++b)a._a[b]=g[b]=d[b];for(;7>b;b++)a._a[b]=g[b]=null==a._a[b]?2===b?1:0:a._a[b];24===a._a[Gb]&&0===a._a[Hb]&&0===a._a[Ib]&&0===a._a[Jb]&&(a._next
return a.push(function(){g=a.interpolate}),h=/^([+-]?[0-9]+\.?(?:[0-9]+)?)(px|em|ex|%|in|cm|mm|pt|pc)$/,f={number:function(a,b){var c;return e(a)&&e(b)?(a=+a,b=+b,c=b-a,c?function(b){return a+b*c}:function(){return a}):null},array:function(a,b){var d,e,f,h;if(!c(a)||!c(b))return null;for(d=[],e=[],h=f=Math.min(a.length,b.length);h--;)e[h]=g(a[h],b[h]);for(h=f;h<a.length;h+=1)d[h]=a[h];for(h=f;h<b.length;h+=1)d[h]=b[h];return function(a){for(var b=f;b--;)d[b]=e[b](a);return d}},object:function(a,c){var e,f,h,i,j;if(!d(a)||!d(c))return null;e=[],i={},h={};for(j in a)b.call(a,j)&&(b.call(c,j)?(e.push(j),h[j]=g(a[j],c[j])):i[j]=a[j]);for(j in c)b.call(c,j)&&!b.call(a,j)&&(i[j]=c[j]);return f=e.length,function(a){for(var b,c=f;c--;)b=e[c],i[b]=h[b](a);return i}}}}(f,g,h,i,j),l=function(){var a;return a="undefined"==typeof document?!1:document&&document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}(),m=function(){var a,b={};return a="undefined"!=typeof console&&"function"==typeof console.warn&&"function"==typeof console.warn.apply?function(a,c){if(!c){if(b[a])return;b[a]=!0}console.warn("%cRactive.js: %c"+a,"color: rgb(114, 157, 52);","color: rgb(85, 85, 85);")}:function(){}}(),n={missingParser:"Missing Ractive.parse - cannot parse template. Either preparse or use the version that includes the parser",mergeComparisonFail:"Merge operation: comparison failed. Falling back to identity checking",noComponentEventArguments:"Components currently only support simple events - you cannot include arguments. Sorry!",noTemplateForPartial:'Could not find template for partial "{name}"',noNestedPartials:"Partials ({{>{name}}}) cannot contain nested inline partials",evaluationError:'Error evaluating "{uniqueString}": {err}',badArguments:"Bad arguments \"{arguments}\". I'm not allowed to argue unless you've paid.",failedComputation:'Failed to compute "{key}": {err}',missingPlugin:'Missing "{name}" {plugin} plugin. You may need to download a {plugin} via http://docs.ractivejs.org/latest/plugins#{plugin}s',badRadioInputBinding:"A radio input can have two-way binding on its name attribute, or its checked attribute - not both",noRegistryFunctionReturn:'A function was specified for "{name}" {registry}, but no {registry} was returned',defaultElSpecified:"The <{name}/> component has a default `el` property; it has been disregarded",noElementProxyEventWildcards:'Only component proxy-events may contain "*" wildcards, <{element} on-{event}/> is not valid.',methodDeprecated:'The method "{deprecated}" has been deprecated in favor of "{replacement}" and will likely be removed in a future release. See http://docs.ractivejs.org/latest/migrating for more information.'},o=function(a,b){function c(a){var c=b[a.message]||a.message||"";return d(c,a.args)}function d(a,b){return a.replace(/{([^{}]*)}/g,function(a,c){return b[c]})}var e={warn:function(a,b){(a.debug||b)&&this.warnAlways(a)},warnAlways:function(a){this.logger(c(a),a.allowDuplicates)},error:function(a){this.errorOnly(a),a.debug||this.warn(a,!0)},errorOnly:function(a){a.debug&&this.critical(a)},critical:function(a){var b=a.err||new Error(c(a));this.thrower(b)},logger:a,thrower:function(a){throw a}};return e}(m,n),p=function(a){function b(a){this.event=a,this.method="on"+a,this.deprecate=c[a]}var c={construct:{deprecated:"beforeInit",replacement:"onconstruct"},render:{deprecated:"init",message:'The "init" method has been deprecated and will likely be removed in a future release. You can either use the "oninit" method which will fire only once prior to, and regardless of, any eventual ractive instance being rendered, or if you need to access the rendered DOM, use "onrender" instead. See http://docs.ractivejs.org/latest/migrating for more information.'},complete:{deprecated:"complete",replacement:"oncomplete"}};return b.prototype.fire=function(b,c){function d(a){return b[a]?(c?b[a](c):b[a](),!0):void 0}d(this.method),!b[this.method]&&this.deprecate&&d(this.deprecate.deprecated)&&a.warnAlways({debug:b.debug,message:this.deprecate.message||"methodDeprecated",args:this.
}}(S),zb=function(){var a=/^(?:area|base|br|col|command|doctype|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)$/i;return a}(),Ab=function(a,b){var c,d,e;for(c=b.length;c--;){if(d=a.indexOf(b[c]),!d)return 0;-1!==d&&(!e||e>d)&&(e=d)}return e||-1},Bb=function(){function a(a){return a?10===a?32:128>a?a:159>=a?d[a-128]:55296>a?a:57343>=a?65533:65535>=a?a:65533:65533}var b,c,d,e;return c={quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,"int":8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},d=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376],e=new RegExp("&(#?(?:x[\\w\\d]+|\\d+|"+Object.keys(c).join("|")+"));?","g"),b=function(b){return b.replace(e,function(b,d){var e;return e="#"!==d[0]?c[d]:"x"===d[1]?parseInt(d.substring(2),16):parseInt(d.substring(1),10),e?String.fromCharCode(a(e)):b})}}(vb),Cb=function(a,b){return function(c){var d,e,f,g;return e=c.remaining(),g=c.inside?"</"+c.inside:"<",c.inside&&!c.interpolate[c.inside]?d=e.indexOf(g):(f=[c.delimiters[0],c.tripleDelimiters[0],c.staticDelimiters[0],c.staticTripleDelimiters[0]],c.inAttribute===!0?f.push('"',"'","=","<",">","`"):f.push(c.inAttribute?c.inAttribute:g),d=a(e,f)),d?(-1===d&&(d=e.length),c.pos+=d,c.inside?e.substr(0,d):b(e.substr(0,d))):null}}(Ab,Bb),Db=function(a){var b=/^([a-zA-Z]{1,}:?[a-zA-Z0-9\-]*)\s*\>/;return function(c){var d;return c.matchString("</")?(d=c.matchPattern(b))?{t:a.CLOSING_TAG,e:d}:(c.pos-=2,void c.error("Illegal closing tag")):null}}(S),Eb=function(a,b,c){function d(a){var b,c,d;return a.allowWhitespace(),(c=a.matchPattern(k))?(b={name:c},d=e(a),d&&(b.valu
}(Dc),Fc=function(a){return a("push")}(Dc),Gc=function(a,b,c){var d,e,f,g,h,i,j,k="/* Ractive.js component styles */\n",l={},m=[];return b?(a.push(function(){f=a.runloop}),g=document.createElement("style"),g.type="text/css",h=document.getElementsByTagName("head")[0],j=!1,i=g.styleSheet,e=function(){var a;m.length?(a=k+m.join(" "),i?i.cssText=a:g.innerHTML=a,j||(h.appendChild(g),j=!0)):j&&(h.removeChild(g),j=!1)},d={add:function(a){a.css&&(l[a._guid]||(l[a._guid]=0,m.push(a.css),e()),l[a._guid]+=1)},remove:function(a){a.css&&(l[a._guid]-=1,l[a._guid]||(c(m,a.css),f.scheduleTask(e)))}}):d=null,d}(f,E,q),Hc=function(a,b,c,d){var e=new b("render"),f=new b("complete");return function(b,g){var h,i,j,k=this;if(j=this.transitionsEnabled,this.noIntro&&(this.transitionsEnabled=!1),h=d.start(this,!0),d.scheduleTask(function(){return e.fire(k)},!0),this.fragment.rendered)throw new Error("You cannot call ractive.render() on an already rendered instance! Call ractive.unrender() first");return b=c(b)||this.el,g=c(g)||this.anchor,this.el=b,this.anchor=g,this.constructor.css&&a.add(this.constructor),b&&((i=b.__ractive_instances__)?i.push(this):b.__ractive_instances__=[this],g?b.insertBefore(this.fragment.render(),g):b.appendChild(this.fragment.render())),d.end(),this.transitionsEnabled=j,h.then(function(){return f.fire(k)}),h}}(Gc,p,pc,y),Ic=function(){this.dirtyValue=this.dirtyArgs=!0,this.bound&&"function"==typeof this.owner.bubble&&this.owner.bubble()},Jc=function(){var a;return 1===this.items.length?this.items[0].detach():(a=document.createDocumentFragment(),this.items.forEach(function(b){var c=b.detach();c&&a.appendChild(c)}),a)},Kc=function(a){var b,c,d,e;if(this.items){for(c=this.items.length,b=0;c>b;b+=1)if(d=this.items[b],d.find&&(e=d.find(a)))return e;return null}},Lc=function(a,b){var c,d,e;if(this.items)for(d=this.items.length,c=0;d>c;c+=1)e=this.items[c],e.findAll&&e.findAll(a,b);return b},Mc=function(a,b){var c,d,e;if(this.items)for(d=this.items.length,c=0;d>c;c+=1)e=this.items[c],e.findAllComponents&&e.findAllComponents(a,b);return b},Nc=function(a){var b,c,d,e;if(this.items){for(b=this.items.length,c=0;b>c;c+=1)if(d=this.items[c],d.findComponent&&(e=d.findComponent(a)))return e;return null}},Oc=function(a){var b,c=a.index;return b=this.items[c+1]?this.items[c+1].firstNode():this.owner===this.root?this.owner.component?this.owner.component.findNextNode():null:this.owner.findNextNode(this)},Pc=function(){return this.items&&this.items[0]?this.items[0].firstNode():null},Qc=function(){var a=this;do if(a.pElement)return a.pElement.node;while(a=a.parent);return this.root.detached||this.root.el},Rc=function(a){function b(a,c,d,e){return e=e||0,a.map(function(a){var f,g,h;return a.text?a.text:a.fragments?a.fragments.map(function(a){return b(a.items,c,d,e)}).join(""):(f=d+"-"+e++,h=(g=a.root.viewmodel.wrapped[a.keypath])?g.value:a.getValue(),c[f]=h,"${"+f+"}")}).join("")}var c,d={};return c=function(){var c=arguments[0];void 0===c&&(c=d);var e,f,g,h,i,j,k;return e=c.args,i=e?"argsList":"value",j=e?"dirtyArgs":"dirtyValue",this[j]&&(g=b(this.items,f={},this.root._guid),h=a(e?"["+g+"]":g,f),k=h?h.value:e?[this.toString()]:this.toString(),this[i]=k,this[j]=!1),this[i]}}(Fb),Sc=function(){var a=/</g,b=/>/g,c=/&/g;return function(d){return d.replace(c,"&amp;").replace(a,"&lt;").replace(b,"&gt;")}}(),Tc=function(a){return a&&a.parentNode&&a.parentNode.removeChild(a),a},Uc=function(a){return function(){return a(this.node)}}(Tc),Vc=function(a,b,c){var d=function(b){this.type=a.TEXT,this.text=b.template};return d.prototype={detach:c,firstNode:function(){return this.node},render:function(){return this.node||(this.node=document.createTextNode(this.text)),this.node},toString:function(a){return a?b(this.text):this.text},unrender:function(a){return a?this.detach():void 0}},d}(S,Sc,Uc),Wc=function(){this.registered&&this.root.viewmodel.unregister(this.keypath,this),this.resolver&&this.resolver.unbind()},Xc=function(){return this.value},Yc=function(a,b){return a&&b&&a.substr(0,b.length+1)===b+"."},Zc=function(a){return function(b,c,d){return b===c
},unbind:function(){}},f.extend=function(a){var b,e=this;return b=function(a){f.call(this,a),this.init&&this.init()},b.prototype=c(e.prototype),d(b.prototype,a),b.extend=f.extend,b},f}(y,m,T,ze,q),Be=function(){this._ractive.binding.handleChange()},Ce=function(a,b){var c=a.extend({getInitialValue:function(){return this.element.fragment?this.element.fragment.toString():""},render:function(){var a=this.element.node;a.addEventListener("change",b,!1),this.root.lazy||(a.addEventListener("input",b,!1),a.attachEvent&&a.addEventListener("keyup",b,!1))},unrender:function(){var a=this.element.node;a.removeEventListener("change",b,!1),a.removeEventListener("input",b,!1),a.removeEventListener("keyup",b,!1)},getValue:function(){return this.element.node.innerHTML}});return c}(Ae,Be),De=function(){var a={};return function(b,c,d){var e=b+c+d;return a[e]||(a[e]=[])}}(),Ee=function(a,b,c,d,e){var f=c.extend({name:"checked",init:function(){this.siblings=d(this.root._guid,"radio",this.element.getAttribute("name")),this.siblings.push(this)},render:function(){var a=this.element.node;a.addEventListener("change",e,!1),a.attachEvent&&a.addEventListener("click",e,!1)},unrender:function(){var a=this.element.node;a.removeEventListener("change",e,!1),a.removeEventListener("click",e,!1)},handleChange:function(){a.start(this.root),this.siblings.forEach(function(a){a.root.viewmodel.set(a.keypath,a.getValue())}),a.end()},getValue:function(){return this.element.node.checked},unbind:function(){b(this.siblings,this)}});return f}(y,q,Ae,De,Be),Fe=function(a,b,c,d){var e=b.extend({name:"name",init:function(){this.siblings=d(this.root._guid,"radioname",this.keypath),this.siblings.push(this),this.radioName=!0,this.attribute.twoway=!0},getInitialValue:function(){return this.element.getAttribute("checked")?this.element.getAttribute("value"):void 0},render:function(){var a=this.element.node;a.name="{{"+this.keypath+"}}",a.checked=this.root.viewmodel.get(this.keypath)==this.element.getAttribute("value"),a.addEventListener("change",c,!1),a.attachEvent&&a.addEventListener("click",c,!1)},unrender:function(){var a=this.element.node;a.removeEventListener("change",c,!1),a.removeEventListener("click",c,!1)},getValue:function(){var a=this.element.node;return a._ractive?a._ractive.value:a.value},handleChange:function(){this.element.node.checked&&b.prototype.handleChange.call(this)},rebound:function(a,c,d,e){var f;b.prototype.rebound.call(this,a,c,d,e),(f=this.element.node)&&(f.name="{{"+this.keypath+"}}")},unbind:function(){a(this.siblings,this)}});return e}(q,Ae,Be,De),Ge=function(a,b,c,d,e,f){function g(a){return a.isChecked}function h(a){return a.element.getAttribute("value")}var i=d.extend({name:"name",getInitialValue:function(){return this.noInitialValue=!0,[]},init:function(){var a,b;this.checkboxName=!0,this.attribute.twoway=!0,this.siblings=e(this.root._guid,"checkboxes",this.keypath),this.siblings.push(this),this.noInitialValue&&(this.siblings.noInitialValue=!0),this.siblings.noInitialValue&&this.element.getAttribute("checked")&&(a=this.root.viewmodel.get(this.keypath),b=this.element.getAttribute("value"),a.push(b))},unbind:function(){c(this.siblings,this)},render:function(){var c,d,e=this.element.node;c=this.root.viewmodel.get(this.keypath),d=this.element.getAttribute("value"),this.isChecked=a(c)?b(c,d):c==d,e.name="{{"+this.keypath+"}}",e.checked=this.isChecked,e.addEventListener("change",f,!1),e.attachEvent&&e.addEventListener("click",f,!1)},unrender:function(){var a=this.element.node;a.removeEventListener("change",f,!1),a.removeEventListener("click",f,!1)},changed:function(){var a=!!this.isChecked;return this.isChecked=this.element.node.checked,this.isChecked===a},handleChange:function(){this.isChecked=this.element.node.checked,d.prototype.handleChange.call(this)},getValue:function(){return this.siblings.filter(g).map(h)}});return i}(h,ie,q,Ae,De,Be),He=function(a,b){var c=a.extend({name:"checked",render:function(){var a=this.element.node;a.addEventListener("change",b,!1),a.attachEvent&&a.addEventListener("click",b,!1)},unrender:function(){var a=this.element.
},d.prototype={bubble:function(){this.dirty||(this.dirty=!0,a.addView(this))},update:function(){var b=this.fragment.getValue();this.component.instance.viewmodel.set(this.key,b),a.addViewmodel(this.component.instance.viewmodel),this.value=b,this.dirty=!1},rebind:function(a,b,c,d){this.fragment.rebind(a,b,c,d)},unbind:function(){this.fragment.unbind()}},d}(y,f),Tf=function(a,b){var c=function(c,d,e,f){var g=this;this.root=c.root,this.parentFragment=c.parentFragment,this.ready=!1,this.hash=null,this.resolver=new a(this,e,function(a){g.binding||(g.binding=c.bindings[g.hash])?(c.bindings[g.hash]=null,g.binding.rebind(a),g.hash=a+"="+d,c.bindings[g.hash]):g.ready?b(c,c.root,a,d):f.push({childKeypath:d,parentKeypath:a}),g.value=c.root.viewmodel.get(a)})};return c.prototype={rebind:function(a,b,c,d){this.resolver.rebind(a,b,c,d)},unbind:function(){this.resolver.unbind()}},c}(fd,v),Uf=function(a,b,c,d,e){function f(f,g,h,i){var j,k,l,m,n,o;if(l=f.root,m=f.parentFragment,"string"==typeof h)return k=b(h),k?k.value:h;if(null===h)return!0;if(1===h.length&&h[0].t===a.INTERPOLATOR){if(h[0].r)return m.indexRefs&&void 0!==m.indexRefs[o=h[0].r]?(f.indexRefBindings[o]=g,m.indexRefs[o]):(n=c(l,h[0].r,m)||h[0].r,i.push({childKeypath:g,parentKeypath:n}),l.viewmodel.get(n));if(h[0].rx)return j=new e(f,g,h[0].rx,i),f.complexParameters.push(j),j.ready=!0,j.value}return j=new d(f,g,h),f.complexParameters.push(j),j.value}var g;return g=function(a,b,c,d){var e,g,h={};a.complexParameters=[];for(e in c)c.hasOwnProperty(e)&&(g=f(a,e,c[e],d),(void 0!==g||void 0===b[e])&&(h[e]=g));return h}}(S,Fb,w,Sf,Tf),Vf=function(a){return function(b,c,d,e){var f,g,h,i;return g=b.parentFragment,i=b.root,h={content:e||[]},c.defaults.el&&a.warn({debug:i.debug,message:"defaultElSpecified",args:{name:b.name}}),f=new c({el:null,append:!0,data:d,partials:h,magic:i.magic||c.defaults.magic,modifyArrays:i.modifyArrays,_parent:i,_component:b,adapt:i.adapt,"yield":{template:e,instance:i}})}}(o),Wf=function(a){return function(b,c){c.forEach(function(c){var d,e;a(b,b.root,c.parentKeypath,c.childKeypath),d=b.instance.viewmodel.get(c.childKeypath),e=b.root.viewmodel.get(c.parentKeypath),void 0!==d&&void 0===e&&b.root.viewmodel.set(c.parentKeypath,d)})}}(v),Xf=function(a,b,c){function d(a,d,e,f){"string"!=typeof f&&c.error({debug:d.debug,message:"noComponentEventArguments"}),a.on(e,function(){var a,c;return arguments.length&&arguments[0]&&arguments[0].node&&(a=Array.prototype.shift.call(arguments)),c=Array.prototype.slice.call(arguments),b(d,f,{event:a,args:c}),!1})}var e,f;return a.push(function(){f=a.Fragment}),e=function(a,b){var c;for(c in b)b.hasOwnProperty(c)&&d(a.instance,a.root,c,b[c])}}(f,mc,o),Yf=function(a){var b,c;for(b=a.root;b;)(c=b._liveComponentQueries["_"+a.name])&&c.push(a.instance),b=b._parent},Zf=function(a,b,c,d,e,f,g){return function(h,i){var j,k,l,m;if(j=this.parentFragment=h.parentFragment,k=j.root,this.root=k,this.type=a.COMPONENT,this.name=h.template.e,this.index=h.index,this.indexRefBindings={},this.bindings=[],this.yielders=[],!i)throw new Error('Component "'+this.name+'" not found');m=[],l=c(this,i.defaults.data||{},h.template.a,m),d(this,i,l,h.template.f),e(this,m),f(this,h.template.v),(h.template.t1||h.template.t2||h.template.o)&&b('The "intro", "outro" and "decorator" directives have no effect on components'),g(this)}}(S,m,Uf,Vf,Wf,Xf,Yf),$f=function(a,b){return function(c,d,e,f){function g(a){a.rebind(c,d,e,f)}var h,i,j=this.instance,k=j._parent;this.bindings.forEach(function(a){var c;a.root===k&&(c=b(a.keypath,e,f))&&a.rebind(c)}),this.complexParameters.forEach(g),this.yielders[0]&&g(this.yielders[0]),(h=this.indexRefBindings[c])&&(a.addViewmodel(j.viewmodel),j.viewmodel.set(h,d)),(i=this.root._liveComponentQueries["_"+this.name])&&i._makeDirty()}}(y,Zc),_f=function(){var a=this.instance;return a.render(this.parentFragment.getNode()),this.rendered=!0,a.fragment.detach()},ag=function(){return this.instance.fragment.toString()},bg=function(a,b){function c(a){a.unbind()}function d(a){var b,c;b=a.root;do(c=b._liveComponentQueries["_"+a.name])&&c._remo
}function i(a,b){return h(b,a)}function j(a,b,c){return new f(a,c).compare(b)}function k(a,b){return j(a,b,!0)}function l(a,b,c){return j(b,a,c)}function m(b,c){return b.sort(function(b,d){return a.compare(b,d,c)})}function n(b,c){return b.sort(function(b,d){return a.rcompare(b,d,c)})}function o(a,b,c){return j(a,b,c)>0}function p(a,b,c){return j(a,b,c)<0}function q(a,b,c){return 0===j(a,b,c)}function r(a,b,c){return 0!==j(a,b,c)}function s(a,b,c){return j(a,b,c)>=0}function t(a,b,c){return j(a,b,c)<=0}function u(a,b,c,d){var e;switch(b){case"===":"object"==typeof a&&(a=a.version),"object"==typeof c&&(c=c.version),e=a===c;break;case"!==":"object"==typeof a&&(a=a.version),"object"==typeof c&&(c=c.version),e=a!==c;break;case"":case"=":case"==":e=q(a,c,d);break;case"!=":e=r(a,c,d);break;case">":e=o(a,c,d);break;case">=":e=s(a,c,d);break;case"<":e=p(a,c,d);break;case"<=":e=t(a,c,d);break;default:throw new TypeError("Invalid operator: "+b)}return e}function v(a,b){if(a instanceof v){if(a.loose===b)return a;a=a.value}return this instanceof v?(this.loose=b,this.parse(a),void(this.value=this.semver===Fb?"":this.operator+this.semver.version)):new v(a,b)}function w(a,b){if(a instanceof w&&a.loose===b)return a;if(!(this instanceof w))return new w(a,b);if(this.loose=b,this.raw=a,this.set=a.split(/\s*\|\|\s*/).map(function(a){return this.parseRange(a.trim())},this).filter(function(a){return a.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+a);this.format()}function x(a,b){return new w(a,b).set.map(function(a){return a.map(function(a){return a.value}).join(" ").trim().split(" ")})}function y(a,b){return a=C(a,b),a=A(a,b),a=E(a,b),a=G(a,b)}function z(a){return!a||"x"===a.toLowerCase()||"*"===a}function A(a,b){return a.trim().split(/\s+/).map(function(a){return B(a,b)}).join(" ")}function B(a,b){var c=b?P[qb]:P[pb];return a.replace(c,function(a,b,c,d,e){var f;return z(b)?f="":z(c)?f=">="+b+".0.0 <"+(+b+1)+".0.0":z(d)?f=">="+b+"."+c+".0 <"+b+"."+(+c+1)+".0":e?("-"!==e.charAt(0)&&(e="-"+e),f=">="+b+"."+c+"."+d+e+" <"+b+"."+(+c+1)+".0"):f=">="+b+"."+c+"."+d+" <"+b+"."+(+c+1)+".0",f})}function C(a,b){return a.trim().split(/\s+/).map(function(a){return D(a,b)}).join(" ")}function D(a,b){var c=b?P[vb]:P[ub];return a.replace(c,function(a,b,c,d,e){var f;return z(b)?f="":z(c)?f=">="+b+".0.0 <"+(+b+1)+".0.0":z(d)?f="0"===b?">="+b+"."+c+".0 <"+b+"."+(+c+1)+".0":">="+b+"."+c+".0 <"+(+b+1)+".0.0":e?("-"!==e.charAt(0)&&(e="-"+e),f="0"===b?"0"===c?">="+b+"."+c+"."+d+e+" <"+b+"."+c+"."+(+d+1):">="+b+"."+c+"."+d+e+" <"+b+"."+(+c+1)+".0":">="+b+"."+c+"."+d+e+" <"+(+b+1)+".0.0"):f="0"===b?"0"===c?">="+b+"."+c+"."+d+" <"+b+"."+c+"."+(+d+1):">="+b+"."+c+"."+d+" <"+b+"."+(+c+1)+".0":">="+b+"."+c+"."+d+" <"+(+b+1)+".0.0",f})}function E(a,b){return a.split(/\s+/).map(function(a){return F(a,b)}).join(" ")}function F(a,b){a=a.trim();var c=b?P[lb]:P[kb];return a.replace(c,function(a,b,c,d,e){var f=z(c),g=f||z(d),h=g||z(e),i=h;return"="===b&&i&&(b=""),f?a=">"===b||"<"===b?"<0.0.0":"*":b&&i?(g&&(d=0),h&&(e=0),">"===b?(b=">=",g?(c=+c+1,d=0,e=0):h&&(d=+d+1,e=0)):"<="===b&&(b="<",g?c=+c+1:d=+d+1),a=b+c+"."+d+"."+e):g?a=">="+c+".0.0 <"+(+c+1)+".0.0":h&&(a=">="+c+"."+d+".0 <"+c+"."+(+d+1)+".0"),a})}function G(a){return a.trim().replace(P[Cb],"")}function H(a,b,c,d,e,f,g,h,i,j,k,l){return b=z(c)?"":z(d)?">="+c+".0.0":z(e)?">="+c+"."+d+".0":">="+b,h=z(i)?"":z(j)?"<"+(+i+1)+".0.0":z(k)?"<"+i+"."+(+j+1)+".0":l?"<="+i+"."+j+"."+k+"-"+l:"<="+h,(b+" "+h).trim()}function I(a,b){for(var c=0;c<a.length;c++)if(!a[c].test(b))return!1;if(b.prerelease.length){for(var c=0;c<a.length;c++){if(a[c].semver===Fb)return!0;if(a[c].semver.prerelease.length>0){var d=a[c].semver;if(d.major===b.major&&d.minor===b.minor&&d.patch===b.patch)return!0}}return!1}return!0}function J(a,b,c){try{b=new w(b,c)}catch(d){return!1}return b.test(a)}function K(a,b,c){return a.filter(function(a){return J(a,b,c)}).sort(function(a,b){return l(a,b,c)})[0]||null}function L(a,b){try{return new w(a,b).range||"*"}catch(c){return null}}function M(a,b,c){return O(a,b,"<",c)}function N(a,b,c){retur
}},b.exports=e.Router(j).configure({strict:!1,notfound:function(){throw 404}})},{"../models/system.coffee":23,"../views/pages/index.coffee":55,"../views/pages/milestone.coffee":56,"../views/pages/new.coffee":57,"../views/pages/project.coffee":58,"./mediator.coffee":30,director:5,lodash:7}],32:[function(a,b){var c,d;c=a("moment"),d=function(a,b){return a+b===0?0:100*(a/(b+a))},b.exports=function(a){var b,e,f,g,h,i,j,k,l,m;return null!=a.stats?a.stats:(h=!1,j=!0,k=!1,i=!0,l=0,b=a.issues.closed.size,e=a.issues.open.size,b+e>0&&(i=!1,l=d(b,e),100===l&&(h=!0)),null==a.due_on?{isOverdue:k,isOnTime:j,isDone:h,isEmpty:i,progress:{points:l}}:(b=c(a.created_at,c.ISO_8601),e=c.utc(),f=c(a.due_on,c.ISO_8601),e.isAfter(f&&!h)&&(k=!0),m=d(e.diff(b),f.diff(e)),g=e.diff(b,"days")/100,j=l>m,h&&(j=!0),{isDone:h,days:g,isOnTime:j,isOverdue:k,progress:{points:l,time:m}}))}},{moment:10}],33:[function(a,b){b.exports={v:1,t:[{t:7,e:"div",a:{id:"app"},f:[{t:7,e:"Notify"}," ",{t:7,e:"Header"}," ",{t:7,e:"div",a:{id:"page"},f:[]}," ",{t:7,e:"div",a:{id:"footer"},f:[{t:7,e:"div",a:{"class":"wrap"},f:["© 2012-2014 ",{t:7,e:"a",a:{href:"https:/radekstepan.com"},f:["Radek Stepan"]}]}]}]}]}},{}],34:[function(a,b){b.exports={v:1,t:[{t:7,e:"div",a:{id:"chart"}}]}},{}],35:[function(a,b){b.exports={v:1,t:[{t:7,e:"div",a:{id:"head"},f:[{t:4,n:53,r:"user",f:[{t:4,r:"ready",f:[{t:7,e:"div",a:{"class":"right"},t1:"fade",f:[{t:4,n:50,r:"uid",f:[{t:7,e:"a",v:{click:"!signout"},f:[{t:7,e:"Icons",a:{icon:"signout"}}," Sign Out ",{t:2,r:"github.displayName"}]}]},{t:4,n:51,f:[{t:7,e:"a",a:{"class":"button"},v:{click:"!signin"},f:[{t:7,e:"Icons",a:{icon:"github"}}," Sign In"]}],r:"uid"}]}]}]}," ",{t:7,e:"a",a:{id:"icon",href:"#"},f:[{t:7,e:"Icons",a:{icon:[{t:2,r:"icon"}]}}]}," ",{t:7,e:"ul",f:[{t:7,e:"li",f:[{t:7,e:"a",a:{href:"#new/project","class":"add"},f:[{t:7,e:"Icons",a:{icon:"plus"}}," Add a Project"]}]}," ",{t:7,e:"li",f:[{t:7,e:"a",a:{href:"#demo"},f:[{t:7,e:"Icons",a:{icon:"computer"}}," See Examples"]}]}]}]}]}},{}],36:[function(a,b){b.exports={v:1,t:[{t:7,e:"div",a:{id:"hero"},f:[{t:7,e:"div",a:{"class":"content"},f:[{t:7,e:"Icons",a:{icon:"direction"}}," ",{t:7,e:"h2",f:["See your project progress"]}," ",{t:7,e:"p",f:["Serious about a project deadline? Add your GitHub project and we'll tell you if it is running on time or not."]}," ",{t:7,e:"div",a:{"class":"cta"},f:[{t:7,e:"a",a:{href:"#new/project","class":"primary"},f:[{t:7,e:"Icons",a:{icon:"plus"}}," Add a Project"]}," ",{t:7,e:"a",a:{href:"#demo","class":"secondary"},f:[{t:7,e:"Icons",a:{icon:"computer"}}," See Examples"]}]}]}]}]}},{}],37:[function(a,b){b.exports={v:1,t:[{t:4,r:"code",f:[{t:7,e:"span",a:{"class":["icon ",{t:2,r:"icon"}]},f:[{t:3,x:{r:["code"],s:'"&#"+_0+";"'}}]}]}]}},{}],38:[function(a,b){b.exports={v:1,t:[{t:4,r:"text",f:[{t:4,r:"system",f:[{t:7,e:"div",a:{id:"notify","class":[{t:2,r:"type"}," system"],style:["top:",{t:2,r:"top"},"%"]},f:[{t:7,e:"Icons",a:{icon:[{t:2,r:"icon"}]}}," ",{t:7,e:"p",f:[{t:2,r:"text"}]}]}]},{t:4,n:51,f:[{t:7,e:"div",a:{id:"notify","class":[{t:2,r:"type"}],style:["top:",{t:2,x:{r:["top"],s:"-_0"}},"px"]},f:[{t:7,e:"span",a:{"class":"close"},v:{click:"close"}}," ",{t:7,e:"Icons",a:{icon:[{t:2,r:"icon"}]}}," ",{t:7,e:"p",f:[{t:2,r:"text"}]}]}],r:"system"}]}]}},{}],39:[function(a,b){b.exports={v:1,t:[{t:7,e:"div",a:{id:"content","class":"wrap"},f:[{t:4,n:50,r:"projects.list",f:[{t:4,r:"ready",f:[{t:7,e:"div",t1:"fade",f:[{t:7,e:"Projects",a:{projects:[{t:2,r:"projects"}]}}]}]}]},{t:4,n:51,f:[{t:7,e:"Hero"}],r:"projects.list"}]}]}},{}],40:[function(a,b){b.exports={v:1,t:[{t:4,r:"ready",f:[{t:7,e:"div",t1:"fade",f:[{t:7,e:"div",a:{id:"title"},f:[{t:7,e:"div",a:{"class":"wrap"},f:[{t:7,e:"h2",a:{"class":"title"},f:[{t:2,x:{r:["format","milestone.title"],s:"_0.title(_1)"}}]}," ",{t:7,e:"span",a:{"class":"sub"},f:[{t:3,x:{r:["format","milestone.due_on"],s:"_0.due(_1)"}}]}," ",{t:7,e:"div",a:{"class":"description"},f:[{t:3,x:{r:["format","milestone.description"],s:"_0.markdown(_1)"}}]}]}]}," ",{t:7,e:"div",a:{id:"content","class":"wrap"},f:[{t:7,e:"Chart",a:{m