function hexToRgb(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,i,s){return e+e+i+i+s+s});var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}function clamp(t,e,i){return Math.min(Math.max(t,e),i)}function isInArray(t,e){return-1=f.outerHeight()?g=!0:(m.stop(!0,!0).fadeIn("fast"),_.railVisible&&y.stop(!0,!0).fadeIn("fast"))}function n(){_.alwaysVisible||(h=setTimeout(function(){_.disableFadeOut&&r||o||l||(m.fadeOut("slow"),y.fadeOut("slow"))},1e3))}var r,o,l,h,c,p,u,d,g=!1,f=w(this);if(f.parent().hasClass(_.wrapperClass)){var v=f.scrollTop(),m=f.siblings("."+_.barClass),y=f.siblings("."+_.railClass);if(i(),w.isPlainObject(x)){if("height"in x&&"auto"==x.height){f.parent().css("height","auto"),f.css("height","auto");var b=f.parent().parent().height();f.parent().css("height",b),f.css("height",b)}else"height"in x&&(b=x.height,f.parent().css("height",b),f.css("height",b));if("scrollTo"in x)v=parseInt(_.scrollTo);else if("scrollBy"in x)v+=parseInt(_.scrollBy);else if("destroy"in x)return m.remove(),y.remove(),void f.unwrap();s(v,!1,!0)}}else if(!(w.isPlainObject(x)&&"destroy"in x)){_.height="auto"==_.height?f.parent().height():_.height,v=w("
").addClass(_.wrapperClass).css({position:"relative",overflow:"hidden",width:_.width,height:_.height}),f.css({overflow:"hidden",width:_.width,height:_.height});y=w("
").addClass(_.railClass).css({width:_.size,height:"100%",position:"absolute",top:0,display:_.alwaysVisible&&_.railVisible?"block":"none","border-radius":_.railBorderRadius,background:_.railColor,opacity:_.railOpacity,zIndex:90}),m=w("
").addClass(_.barClass).css({background:_.color,width:_.size,position:"absolute",top:0,opacity:_.opacity,display:_.alwaysVisible?"block":"none","border-radius":_.borderRadius,BorderRadius:_.borderRadius,MozBorderRadius:_.borderRadius,WebkitBorderRadius:_.borderRadius,zIndex:99}),b="right"==_.position?{right:_.distance}:{left:_.distance};y.css(b),m.css(b),f.wrap(v),f.parent().append(m),f.parent().append(y),_.railDraggable&&m.bind("mousedown",function(e){var i=w(document);return l=!0,t=parseFloat(m.css("top")),pageY=e.pageY,i.bind("mousemove.slimscroll",function(e){currTop=t+e.pageY-pageY,m.css("top",currTop),s(0,m.position().top,!1)}),i.bind("mouseup.slimscroll",function(t){l=!1,n(),i.unbind(".slimscroll")}),!1}).bind("selectstart.slimscroll",function(t){return t.stopPropagation(),t.preventDefault(),!1}),y.hover(function(){a()},function(){n()}),m.hover(function(){o=!0},function(){o=!1}),f.hover(function(){r=!0,a(),n()},function(){r=!1,n()}),f.bind("touchstart",function(t,e){t.originalEvent.touches.length&&(c=t.originalEvent.touches[0].pageY)}),f.bind("touchmove",function(t){g||t.originalEvent.preventDefault(),t.originalEvent.touches.length&&(s((c-t.originalEvent.touches[0].pageY)/_.touchScrollStep,!0),c=t.originalEvent.touches[0].pageY)}),i(),"bottom"===_.start?(m.css({top:f.outerHeight()-m.outerHeight()}),s(0,!0)):"top"!==_.start&&(s(w(_.start).position().top,null,!0),_.alwaysVisible||m.hide()),window.addEventListener?(this.addEventListener("DOMMouseScroll",e,!1),this.addEventListener("mousewheel",e,!1)):document.attachEvent("onmousewheel",e)}}),this}}),w.fn.extend({slimscroll:w.fn.slimScroll})}(jQuery),function(a){"use strict";var n=function(t,e){this.$element=a(t),this.options=a.extend({},n.defaults,e)};n.defaults={transition_delay:300,refresh_speed:50,display_text:"none",use_percentage:!0,percent_format:function(t){return t+"%"},amount_format:function(t,e){return t+" / "+e},update:a.noop,done:a.noop,fail:a.noop},n.prototype.transition=function(){var r=this.$element,o=r.parent(),l=this.$back_text,h=this.$front_text,c=this.options,p=parseInt(r.attr("data-transitiongoal")),u=parseInt(r.attr("aria-valuemin"))||0,d=parseInt(r.attr("aria-valuemax"))||100,g=o.hasClass("vertical"),f=c.update&&"function"==typeof c.update?c.update:n.defaults.update,v=c.done&&"function"==typeof c.done?c.done:n.defaults.done,t=c.fail&&"function"==typeof c.fail?c.fail:n.defaults.fail;if(isNaN(p))t("data-transitiongoal not set");else{var e,m=Math.round(100*(p-u)/(d-u));if("center"===c.display_text&&!l&&!h)this.$back_text=l=a("").addClass("progressbar-back-text").prependTo(o),this.$front_text=h=a("").addClass("progressbar-front-text").prependTo(r),g?(e=o.css("height"),l.css({height:e,"line-height":e}),h.css({height:e,"line-height":e}),a(window).resize(function(){e=o.css("height"),l.css({height:e,"line-height":e}),h.css({height:e,"line-height":e})})):(e=o.css("width"),h.css({width:e}),a(window).resize(function(){e=o.css("width"),h.css({width:e})}));setTimeout(function(){var t,e,i,s,a;g?r.css("height",m+"%"):r.css("width",m+"%");var n=setInterval(function(){g?(i=r.height(),s=o.height()):(i=r.width(),s=o.width()),t=Math.round(100*i/s),e=Math.round(u+i/s*(d-u)),m<=t&&(t=m,e=p,v(r),clearInterval(n)),"none"!==c.display_text&&(a=c.use_percentage?c.percent_format(t):c.amount_format(e,d,u),"fill"===c.display_text?r.text(a):"center"===c.display_text&&(l.text(a),h.text(a))),r.attr("aria-valuenow",e),f(t,r)},c.refresh_speed)},c.transition_delay)}};var t=a.fn.progressbar;a.fn.progressbar=function(s){return this.each(function(){var t=a(this),e=t.data("bs.progressbar"),i="object"==typeof s&&s;e&&i&&a.extend(e.options,i),e||t.data("bs.progressbar",e=new n(this,i)),e.transition()})},a.fn.progressbar.Constructor=n,a.fn.progressbar.noConflict=function(){return a.fn.progressbar=t,this}}(window.jQuery),function(k,B,N){var t;t=function(z){"use strict";var t,e,m,E,x,F,W,L,c,w,i,n,p,D,u,s,a,A,O,o,r,l,h,_,d,g,f,v,y,b={},C=0;t=function(){return{common:{type:"line",lineColor:"#00f",fillColor:"#cdf",defaultPixelsPerValue:3,width:"auto",height:"auto",composite:!1,tagValuesAttribute:"values",tagOptionsPrefix:"spark",enableTagOptions:!1,enableHighlight:!0,highlightLighten:1.4,tooltipSkipNull:!0,tooltipPrefix:"",tooltipSuffix:"",disableHiddenCheck:!1,numberFormatter:!1,numberDigitGroupCount:3,numberDigitGroupSep:",",numberDecimalMark:".",disableTooltips:!1,disableInteraction:!1},line:{spotColor:"#f80",highlightSpotColor:"#5f5",highlightLineColor:"#f22",spotRadius:1.5,minSpotColor:"#f80",maxSpotColor:"#f80",lineWidth:1,normalRangeMin:N,normalRangeMax:N,normalRangeColor:"#ccc",drawNormalOnTop:!1,chartRangeMin:N,chartRangeMax:N,chartRangeMinX:N,chartRangeMaxX:N,tooltipFormat:new m(' {{prefix}}{{y}}{{suffix}}')},bar:{barColor:"#3366cc",negBarColor:"#f44",stackedBarColor:["#3366cc","#dc3912","#ff9900","#109618","#66aa00","#dd4477","#0099c6","#990099"],zeroColor:N,nullColor:N,zeroAxis:!0,barWidth:4,barSpacing:1,chartRangeMax:N,chartRangeMin:N,chartRangeClip:!1,colorMap:N,tooltipFormat:new m(' {{prefix}}{{value}}{{suffix}}')},tristate:{barWidth:4,barSpacing:1,posBarColor:"#6f6",negBarColor:"#f44",zeroBarColor:"#999",colorMap:{},tooltipFormat:new m(' {{value:map}}'),tooltipValueLookups:{map:{"-1":"Loss",0:"Draw",1:"Win"}}},discrete:{lineHeight:"auto",thresholdColor:N,thresholdValue:0,chartRangeMax:N,chartRangeMin:N,chartRangeClip:!1,tooltipFormat:new m("{{prefix}}{{value}}{{suffix}}")},bullet:{targetColor:"#f33",targetWidth:3,performanceColor:"#33f",rangeColors:["#d3dafe","#a8b6ff","#7f94ff"],base:N,tooltipFormat:new m("{{fieldkey:fields}} - {{value}}"),tooltipValueLookups:{fields:{r:"Range",p:"Performance",t:"Target"}}},pie:{offset:0,sliceColors:["#3366cc","#dc3912","#ff9900","#109618","#66aa00","#dd4477","#0099c6","#990099"],borderWidth:0,borderColor:"#000",tooltipFormat:new m(' {{value}} ({{percent.1}}%)')},box:{raw:!1,boxLineColor:"#000",boxFillColor:"#cdf",whiskerColor:"#000",outlierLineColor:"#333",outlierFillColor:"#fff",medianColor:"#f00",showOutliers:!0,outlierIQR:1.5,spotRadius:1.5,target:N,targetColor:"#4a2",chartRangeMax:N,chartRangeMin:N,tooltipFormat:new m("{{field:fields}}: {{value}}"),tooltipFormatFieldlistKey:"field",tooltipValueLookups:{fields:{lq:"Lower Quartile",med:"Median",uq:"Upper Quartile",lo:"Left Outlier",ro:"Right Outlier",lw:"Left Whisker",rw:"Right Whisker"}}}}},e=function(){var t,e;return t=function(){this.init.apply(this,arguments)},1=t)return i[2];return N}}),z.range_map=function(t){return new D(t)},u=e({init:function(t,e){var i=z(t);this.$el=i,this.options=e,this.currentPageX=0,this.currentPageY=0,this.el=t,this.splist=[],this.tooltip=null,this.over=!1,this.displayTooltips=!e.get("disableTooltips"),this.highlightEnabled=!e.get("disableHighlight")},registerSparkline:function(t){this.splist.push(t),this.over&&this.updateDisplay()},registerCanvas:function(t){var e=z(t.canvas);this.canvas=t,(this.$canvas=e).mouseenter(z.proxy(this.mouseenter,this)),e.mouseleave(z.proxy(this.mouseleave,this)),e.click(z.proxy(this.mouseclick,this))},reset:function(t){this.splist=[],this.tooltip&&t&&(this.tooltip.remove(),this.tooltip=N)},mouseclick:function(t){var e=z.Event("sparklineClick");e.originalEvent=t,e.sparklines=this.splist,this.$el.trigger(e)},mouseenter:function(t){z(k.body).unbind("mousemove.jqs"),z(k.body).bind("mousemove.jqs",z.proxy(this.mousemove,this)),this.over=!0,this.currentPageX=t.pageX,this.currentPageY=t.pageY,this.currentEl=t.target,!this.tooltip&&this.displayTooltips&&(this.tooltip=new s(this.options),this.tooltip.updatePosition(t.pageX,t.pageY)),this.updateDisplay()},mouseleave:function(){z(k.body).unbind("mousemove.jqs");var t,e=this.splist,i=e.length,s=!1;for(this.over=!1,this.currentEl=null,this.tooltip&&(this.tooltip.remove(),this.tooltip=null),t=0;t