1try { 2/* 3 GNU General Public License version 2 or later; see LICENSE.txt 4*/ 5var JCaption=function(c){var e,b,a=function(f){e=jQuery.noConflict();b=f;e(b).each(function(g,h){d(h)})},d=function(i){var h=e(i),f=h.attr("title"),j=h.attr("width")||i.width,l=h.attr("align")||h.css("float")||i.style.styleFloat||"none",g=e("<p/>",{text:f,"class":b.replace(".","_")}),k=e("<div/>",{"class":b.replace(".","_")+" "+l,css:{"float":l,width:j}});h.before(k);k.append(h);if(f!==""){k.append(g)}};a(c)}; 6 7} catch (e) { 8console.error('Error in file:/media/system/js/caption.js?ce6721e8545c4bc6ad6d359b76272ec8; Error:' + e.message); 9}; 10try { 11var Chart=function(s){function v(a,c,b){a=A((a-c.graphMin)/(c.steps*c.stepValue),1,0);return b*c.steps*a}function x(a,c,b,e){function h(){g+=f;var k=a.animation?A(d(g),null,0):1;e.clearRect(0,0,q,u);a.scaleOverlay?(b(k),c()):(c(),b(k));if(1>=g)D(h);else if("function"==typeof a.onAnimationComplete)a.onAnimationComplete()}var f=a.animation?1/A(a.animationSteps,Number.MAX_VALUE,1):1,d=B[a.animationEasing],g=a.animation?0:1;"function"!==typeof c&&(c=function(){});D(h)}function C(a,c,b,e,h,f){var d;a= 12Math.floor(Math.log(e-h)/Math.LN10);h=Math.floor(h/(1*Math.pow(10,a)))*Math.pow(10,a);e=Math.ceil(e/(1*Math.pow(10,a)))*Math.pow(10,a)-h;a=Math.pow(10,a);for(d=Math.round(e/a);d<b||d>c;)a=d<b?a/2:2*a,d=Math.round(e/a);c=[];z(f,c,d,h,a);return{steps:d,stepValue:a,graphMin:h,labels:c}}function z(a,c,b,e,h){if(a)for(var f=1;f<b+1;f++)c.push(E(a,{value:(e+h*f).toFixed(0!=h%1?h.toString().split(".")[1].length:0)}))}function A(a,c,b){return!isNaN(parseFloat(c))&&isFinite(c)&&a>c?c:!isNaN(parseFloat(b))&& 13isFinite(b)&&a<b?b:a}function y(a,c){var b={},e;for(e in a)b[e]=a[e];for(e in c)b[e]=c[e];return b}function E(a,c){var b=!/\W/.test(a)?F[a]=F[a]||E(document.getElementById(a).innerHTML):new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+a.replace(/[\r\t\n]/g," ").split("<%").join("\t").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split("\t").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');}return p.join('');");return c? 14b(c):b}var r=this,B={linear:function(a){return a},easeInQuad:function(a){return a*a},easeOutQuad:function(a){return-1*a*(a-2)},easeInOutQuad:function(a){return 1>(a/=0.5)?0.5*a*a:-0.5*(--a*(a-2)-1)},easeInCubic:function(a){return a*a*a},easeOutCubic:function(a){return 1*((a=a/1-1)*a*a+1)},easeInOutCubic:function(a){return 1>(a/=0.5)?0.5*a*a*a:0.5*((a-=2)*a*a+2)},easeInQuart:function(a){return a*a*a*a},easeOutQuart:function(a){return-1*((a=a/1-1)*a*a*a-1)},easeInOutQuart:function(a){return 1>(a/=0.5)? 150.5*a*a*a*a:-0.5*((a-=2)*a*a*a-2)},easeInQuint:function(a){return 1*(a/=1)*a*a*a*a},easeOutQuint:function(a){return 1*((a=a/1-1)*a*a*a*a+1)},easeInOutQuint:function(a){return 1>(a/=0.5)?0.5*a*a*a*a*a:0.5*((a-=2)*a*a*a*a+2)},easeInSine:function(a){return-1*Math.cos(a/1*(Math.PI/2))+1},easeOutSine:function(a){return 1*Math.sin(a/1*(Math.PI/2))},easeInOutSine:function(a){return-0.5*(Math.cos(Math.PI*a/1)-1)},easeInExpo:function(a){return 0==a?1:1*Math.pow(2,10*(a/1-1))},easeOutExpo:function(a){return 1== 16a?1:1*(-Math.pow(2,-10*a/1)+1)},easeInOutExpo:function(a){return 0==a?0:1==a?1:1>(a/=0.5)?0.5*Math.pow(2,10*(a-1)):0.5*(-Math.pow(2,-10*--a)+2)},easeInCirc:function(a){return 1<=a?a:-1*(Math.sqrt(1-(a/=1)*a)-1)},easeOutCirc:function(a){return 1*Math.sqrt(1-(a=a/1-1)*a)},easeInOutCirc:function(a){return 1>(a/=0.5)?-0.5*(Math.sqrt(1-a*a)-1):0.5*(Math.sqrt(1-(a-=2)*a)+1)},easeInElastic:function(a){var c=1.70158,b=0,e=1;if(0==a)return 0;if(1==(a/=1))return 1;b||(b=0.3);e<Math.abs(1)?(e=1,c=b/4):c=b/(2* 17Math.PI)*Math.asin(1/e);return-(e*Math.pow(2,10*(a-=1))*Math.sin((1*a-c)*2*Math.PI/b))},easeOutElastic:function(a){var c=1.70158,b=0,e=1;if(0==a)return 0;if(1==(a/=1))return 1;b||(b=0.3);e<Math.abs(1)?(e=1,c=b/4):c=b/(2*Math.PI)*Math.asin(1/e);return e*Math.pow(2,-10*a)*Math.sin((1*a-c)*2*Math.PI/b)+1},easeInOutElastic:function(a){var c=1.70158,b=0,e=1;if(0==a)return 0;if(2==(a/=0.5))return 1;b||(b=1*0.3*1.5);e<Math.abs(1)?(e=1,c=b/4):c=b/(2*Math.PI)*Math.asin(1/e);return 1>a?-0.5*e*Math.pow(2,10* 18(a-=1))*Math.sin((1*a-c)*2*Math.PI/b):0.5*e*Math.pow(2,-10*(a-=1))*Math.sin((1*a-c)*2*Math.PI/b)+1},easeInBack:function(a){return 1*(a/=1)*a*(2.70158*a-1.70158)},easeOutBack:function(a){return 1*((a=a/1-1)*a*(2.70158*a+1.70158)+1)},easeInOutBack:function(a){var c=1.70158;return 1>(a/=0.5)?0.5*a*a*(((c*=1.525)+1)*a-c):0.5*((a-=2)*a*(((c*=1.525)+1)*a+c)+2)},easeInBounce:function(a){return 1-B.easeOutBounce(1-a)},easeOutBounce:function(a){return(a/=1)<1/2.75?1*7.5625*a*a:a<2/2.75?1*(7.5625*(a-=1.5/2.75)* 19a+0.75):a<2.5/2.75?1*(7.5625*(a-=2.25/2.75)*a+0.9375):1*(7.5625*(a-=2.625/2.75)*a+0.984375)},easeInOutBounce:function(a){return 0.5>a?0.5*B.easeInBounce(2*a):0.5*B.easeOutBounce(2*a-1)+0.5}},q=s.canvas.width,u=s.canvas.height;
19window.devicePixelRatio&&(s.canvas.style.width=q+"px",s.canvas.style.height=u+"px",s.canvas.height=u*window.devicePixelRatio,s.canvas.width=q*window.devicePixelRatio,s.scale(window.devicePixelRatio,window.devicePixelRatio));this.PolarArea=function(a,c){r.PolarArea.defaults={scaleOverlay:!0, 20scaleOverride:!1,scaleSteps:null,scaleStepWidth:null,scaleStartValue:null,scaleShowLine:!0,scaleLineColor:"rgba(0,0,0,.1)",scaleLineWidth:1,scaleShowLabels:!0,scaleLabel:"<%=value%>",scaleFontFamily:"'Arial'",scaleFontSize:12,scaleFontStyle:"normal",scaleFontColor:"#666",scaleShowLabelBackdrop:!0,scaleBackdropColor:"rgba(255,255,255,0.75)",scaleBackdropPaddingY:2,scaleBackdropPaddingX:2,segmentShowStroke:!0,segmentStrokeColor:"#fff",segmentStrokeWidth:2,animation:!0,animationSteps:100,animationEasing:"easeOutBounce", 21animateRotate:!0,animateScale:!1,onAnimationComplete:null};var b=c?y(r.PolarArea.defaults,c):r.PolarArea.defaults;return new G(a,b,s)};this.Radar=function(a,c){r.Radar.defaults={scaleOverlay:!1,scaleOverride:!1,scaleSteps:null,scaleStepWidth:null,scaleStartValue:null,scaleShowLine:!0,scaleLineColor:"rgba(0,0,0,.1)",scaleLineWidth:1,scaleShowLabels:!1,scaleLabel:"<%=value%>",scaleFontFamily:"'Arial'",scaleFontSize:12,scaleFontStyle:"normal",scaleFontColor:"#666",scaleShowLabelBackdrop:!0,scaleBackdropColor:"rgba(255,255,255,0.75)", 22scaleBackdropPaddingY:2,scaleBackdropPaddingX:2,angleShowLineOut:!0,angleLineColor:"rgba(0,0,0,.1)",angleLineWidth:1,pointLabelFontFamily:"'Arial'",pointLabelFontStyle:"normal",pointLabelFontSize:12,pointLabelFontColor:"#666",pointDot:!0,pointDotRadius:3,pointDotStrokeWidth:1,datasetStroke:!0,datasetStrokeWidth:2,datasetFill:!0,animation:!0,animationSteps:60,animationEasing:"easeOutQuart",onAnimationComplete:null};var b=c?y(r.Radar.defaults,c):r.Radar.defaults;return new H(a,b,s)};this.Pie=function(a, 23c){r.Pie.defaults={segmentShowStroke:!0,segmentStrokeColor:"#fff",segmentStrokeWidth:2,animation:!0,animationSteps:100,animationEasing:"easeOutBounce",animateRotate:!0,animateScale:!1,onAnimationComplete:null};var b=c?y(r.Pie.defaults,c):r.Pie.defaults;return new I(a,b,s)};this.Doughnut=function(a,c){r.Doughnut.defaults={segmentShowStroke:!0,segmentStrokeColor:"#fff",segmentStrokeWidth:2,percentageInnerCutout:50,animation:!0,animationSteps:100,animationEasing:"easeOutBounce",animateRotate:!0,animateScale:!1, 24onAnimationComplete:null};var b=c?y(r.Doughnut.defaults,c):r.Doughnut.defaults;return new J(a,b,s)};this.Line=function(a,c){r.Line.defaults={scaleOverlay:!1,scaleOverride:!1,scaleSteps:null,scaleStepWidth:null,scaleStartValue:null,scaleLineColor:"rgba(0,0,0,.1)",scaleLineWidth:1,scaleShowLabels:!0,scaleLabel:"<%=value%>",scaleFontFamily:"'Arial'",scaleFontSize:12,scaleFontStyle:"normal",scaleFontColor:"#666",scaleShowGridLines:!0,scaleGridLineColor:"rgba(0,0,0,.05)",scaleGridLineWidth:1,bezierCurve:!0, 25pointDot:!0,pointDotRadius:4,pointDotStrokeWidth:2,datasetStroke:!0,datasetStrokeWidth:2,datasetFill:!0,animation:!0,animationSteps:60,animationEasing:"easeOutQuart",onAnimationComplete:null};var b=c?y(r.Line.defaults,c):r.Line.defaults;return new K(a,b,s)};this.Bar=function(a,c){r.Bar.defaults={scaleOverlay:!1,scaleOverride:!1,scaleSteps:null,scaleStepWidth:null,scaleStartValue:null,scaleLineColor:"rgba(0,0,0,.1)",scaleLineWidth:1,scaleShowLabels:!0,scaleLabel:"<%=value%>",scaleFontFamily:"'Arial'", 26scaleFontSize:12,scaleFontStyle:"normal",scaleFontColor:"#666",scaleShowGridLines:!0,scaleGridLineColor:"rgba(0,0,0,.05)",scaleGridLineWidth:1,barShowStroke:!0,barStrokeWidth:2,barValueSpacing:5,barDatasetSpacing:1,animation:!0,animationSteps:60,animationEasing:"easeOutQuart",onAnimationComplete:null};var b=c?y(r.Bar.defaults,c):r.Bar.defaults;return new L(a,b,s)};var G=function(a,c,b){var e,h,f,d,g,k,j,l,m;g=Math.min.apply(Math,[q,u])/2;g-=Math.max.apply(Math,[0.5*c.scaleFontSize,0.5*c.scaleLineWidth]); 27d=2*c.scaleFontSize;c.scaleShowLabelBackdrop&&(d+=2*c.scaleBackdropPaddingY,g-=1.5*c.scaleBackdropPaddingY);l=g;d=d?d:5;e=Number.MIN_VALUE;h=Number.MAX_VALUE;for(f=0;f<a.length;f++)a[f].value>e&&(e=a[f].value),a[f].value<h&&(h=a[f].value);f=Math.floor(l/(0.66*d));d=Math.floor(0.5*(l/d));m=c.scaleShowLabels?c.scaleLabel:null;c.scaleOverride?(j={steps:c.scaleSteps,stepValue:c.scaleStepWidth,graphMin:c.scaleStartValue,labels:[]},z(m,j.labels,j.steps,c.scaleStartValue,c.scaleStepWidth)):j=C(l,f,d,e,h, 28m);k=g/j.steps;x(c,function(){for(var a=0;a<j.steps;a++)if(c.scaleShowLine&&(b.beginPath(),b.arc(q/2,u/2,k*(a+1),0,2*Math.PI,!0),b.strokeStyle=c.scaleLineColor,b.lineWidth=c.scaleLineWidth,b.stroke()),c.scaleShowLabels){b.textAlign="center";b.font=c.scaleFontStyle+" "+c.scaleFontSize+"px "+c.scaleFontFamily;var e=j.labels[a];if(c.scaleShowLabelBackdrop){var d=b.measureText(e).width;b.fillStyle=c.scaleBackdropColor;b.beginPath();b.rect(Math.round(q/2-d/2-c.scaleBackdropPaddingX),Math.round(u/2-k*(a+ 291)-0.5*c.scaleFontSize-c.scaleBackdropPaddingY),Math.round(d+2*c.scaleBackdropPaddingX),Math.round(c.scaleFontSize+2*c.scaleBackdropPaddingY));b.fill()}b.textBaseline="middle";b.fillStyle=c.scaleFontColor;b.fillText(e,q/2,u/2-k*(a+1))}},function(e){var d=-Math.PI/2,g=2*Math.PI/a.length,f=1,h=1;c.animation&&(c.animateScale&&(f=e),c.animateRotate&&(h=e));for(e=0;e<a.length;
29e++)b.beginPath(),b.arc(q/2,u/2,f*v(a[e].value,j,k),d,d+h*g,!1),b.lineTo(q/2,u/2),b.closePath(),b.fillStyle=a[e].color,b.fill(), 30c.segmentShowStroke&&(b.strokeStyle=c.segmentStrokeColor,b.lineWidth=c.segmentStrokeWidth,b.stroke()),d+=h*g},b)},H=function(a,c,b){var e,h,f,d,g,k,j,l,m;a.labels||(a.labels=[]);g=Math.min.apply(Math,[q,u])/2;d=2*c.scaleFontSize;for(e=l=0;e<a.labels.length;e++)b.font=c.pointLabelFontStyle+" "+c.pointLabelFontSize+"px "+c.pointLabelFontFamily,h=b.measureText(a.labels[e]).width,h>l&&(l=h);g-=Math.max.apply(Math,[l,1.5*(c.pointLabelFontSize/2)]);g-=c.pointLabelFontSize;l=g=A(g,null,0);d=d?d:5;e=Number.MIN_VALUE; 31h=Number.MAX_VALUE;for(f=0;f<a.datasets.length;f++)for(m=0;m<a.datasets[f].data.length;m++)a.datasets[f].data[m]>e&&(e=a.datasets[f].data[m]),a.datasets[f].data[m]<h&&(h=a.datasets[f].data[m]);f=Math.floor(l/(0.66*d));d=Math.floor(0.5*(l/d));m=c.scaleShowLabels?c.scaleLabel:null;c.scaleOverride?(j={steps:c.scaleSteps,stepValue:c.scaleStepWidth,graphMin:c.scaleStartValue,labels:[]},z(m,j.labels,j.steps,c.scaleStartValue,c.scaleStepWidth)):j=C(l,f,d,e,h,m);k=g/j.steps;x(c,function(){var e=2*Math.PI/ 32a.datasets[0].data.length;b.save();b.translate(q/2,u/2);if(c.angleShowLineOut){b.strokeStyle=c.angleLineColor;b.lineWidth=c.angleLineWidth;for(var d=0;d<a.datasets[0].data.length;d++)b.rotate(e),b.beginPath(),b.moveTo(0,0),b.lineTo(0,-g),b.stroke()}for(d=0;d<j.steps;d++){b.beginPath();if(c.scaleShowLine){b.strokeStyle=c.scaleLineColor;b.lineWidth=c.scaleLineWidth;b.moveTo(0,-k*(d+1));for(var f=0;f<a.datasets[0].data.length;f++)b.rotate(e),b.lineTo(0,-k*(d+1));b.closePath();b.stroke()}c.scaleShowLabels&& 33(b.textAlign="center",b.font=c.scaleFontStyle+" "+c.scaleFontSize+"px "+c.scaleFontFamily,b.textBaseline="middle",c.scaleShowLabelBackdrop&&(f=b.measureText(j.labels[d]).width,b.fillStyle=c.scaleBackdropColor,b.beginPath(),b.rect(Math.round(-f/2-c.scaleBackdropPaddingX),Math.round(-k*(d+1)-0.5*c.scaleFontSize-c.scaleBackdropPaddingY),Math.round(f+2*c.scaleBackdropPaddingX),Math.round(c.scaleFontSize+2*c.scaleBackdropPaddingY)),b.fill()),b.fillStyle=c.scaleFontColor,b.fillText(j.labels[d],0,-k*(d+ 341)))}for(d=0;d<a.labels.length;d++){b.font=c.pointLabelFontStyle+" "+c.pointLabelFontSize+"px "+c.pointLabelFontFamily;b.fillStyle=c.pointLabelFontColor;var f=Math.sin(e*d)*(g+c.pointLabelFontSize),h=Math.cos(e*d)*(g+c.pointLabelFontSize);b.textAlign=e*d==Math.PI||0==e*d?"center":e*d>Math.PI?"right":"left";b.textBaseline="middle";b.fillText(a.labels[d],f,-h)}b.restore()},function(d){var e=2*Math.PI/a.datasets[0].data.length;b.save();b.translate(q/2,u/2);for(var g=0;g<a.datasets.length;g++){b.beginPath(); 35b.moveTo(0,d*-1*v(a.datasets[g].data[0],j,k));for(var f=1;f<a.datasets[g].data.length;f++)b.rotate(e),b.lineTo(0,d*-1*v(a.datasets[g].data[f],j,k));b.closePath();b.fillStyle=a.datasets[g].fillColor;b.strokeStyle=a.datasets[g].strokeColor;b.lineWidth=c.datasetStrokeWidth;b.fill();b.stroke();if(c.pointDot){b.fillStyle=a.datasets[g].pointColor;b.strokeStyle=a.datasets[g].pointStrokeColor;b.lineWidth=c.pointDotStrokeWidth;for(f=0;f<a.datasets[g].data.length;f++)b.rotate(e),b.beginPath(),b.arc(0,d*-1* 36v(a.datasets[g].data[f],j,k),c.pointDotRadius,2*Math.PI,!1),b.fill(),b.stroke()}b.rotate(e)}b.restore()},b)},I=function(a,c,b){for(var e=0,h=Math.min.apply(Math,[u/2,q/2])-5,f=0;f<a.length;f++)e+=a[f].value;x(c,null,function(d){var g=-Math.PI/2,f=1,j=1;c.animation&&(c.animateScale&&(f=d),c.animateRotate&&(j=d));for(d=0;d<a.length;d++){var l=j*a[d].value/e*2*Math.PI;b.beginPath();b.arc(q/2,u/2,f*h,g,g+l);b.lineTo(q/2,u/2);b.closePath();b.fillStyle=a[d].color;b.fill();c.segmentShowStroke&&(b.lineWidth= 37c.segmentStrokeWidth,b.strokeStyle=c.segmentStrokeColor,b.stroke());g+=l}},b)},J=function(a,c,b){for(var e=0,h=Math.min.apply(Math,[u/2,q/2])-5,f=h*(c.percentageInnerCutout/100),d=0;d<a.length;d++)e+=a[d].value;x(c,null,function(d){var k=-Math.PI/2,j=1,l=1;c.animation&&(c.animateScale&&(j=d),c.animateRotate&&(l=d));for(d=0;d<a.length;d++){var m=l*a[d].value/e*2*Math.PI;b.beginPath();b.arc(q/2,u/2,j*h,k,k+m,!1);b.arc(q/2,u/2,j*f,k+m,k,!0);b.closePath();b.fillStyle=a[d].color;b.fill();c.segmentShowStroke&& 38(b.lineWidth=c.segmentStrokeWidth,b.strokeStyle=c.segmentStrokeColor,b.stroke());k+=m}},b)},K=function(a,c,b){var e,h,f,d,g,k,j,l,m,t,r,n,p,s=0;g=u;b.font=c.scaleFontStyle+" "+c.scaleFontSize+"px "+c.scaleFontFamily;t=1;for(d=0;d<a.labels.length;d++)e=b.measureText(a.labels[d]).width,t=e>t?e:t;q/a.labels.length<t?(s=45,q/a.labels.length<Math.cos(s)*t?(s=90,g-=t):g-=Math.sin(s)*t):g-=c.scaleFontSize;d=c.scaleFontSize;g=g-5-d;e=Number.MIN_VALUE;h=Number.MAX_VALUE;for(f=0;f<a.datasets.length;f++)for(l= 390;l<a.datasets[f].data.length;l++)a.datasets[f].data[l]>e&&(e=a.datasets[f].data[l]),a.datasets[f].data[l]<h&&(h=a.datasets[f].data[l]);f=Math.floor(g/(0.66*d));d=Math.floor(0.5*(g/d));l=c.scaleShowLabels?c.scaleLabel:"";c.scaleOverride?(j={steps:c.scaleSteps,stepValue:c.scaleStepWidth,graphMin:c.scaleStartValue,labels:[]},z(l,j.labels,j.steps,c.scaleStartValue,c.scaleStepWidth)):j=C(g,f,d,e,h,l);k=Math.floor(g/j.steps);d=1;if(c.scaleShowLabels){b.font=c.scaleFontStyle+" "+c.scaleFontSize+"px "+c.scaleFontFamily; 40for(e=0;e<j.labels.length;e++)h=b.measureText(j.labels[e]).width,d=h>d?h:d;d+=10}r=q-d-t;m=Math.floor(r/(a.labels.length-1));n=q-t/2-r;p=g+c.scaleFontSize/2;x(c,function(){b.lineWidth=c.scaleLineWidth;b.strokeStyle=c.scaleLineColor;b.beginPath();b.moveTo(q-t/2+5,p);b.lineTo(q-t/2-r-5,p);b.stroke();0<s?(b.save(),b.textAlign="right"):b.textAlign="center";b.fillStyle=c.scaleFontColor;for(var d=0;d<a.labels.length;d++)b.save(),0<s?(b.translate(n+d*m,p+c.scaleFontSize),b.rotate(-(s*(Math.PI/180)
40)),b.fillText(a.labels[d], 410,0),b.restore()):b.fillText(a.labels[d],n+d*m,p+c.scaleFontSize+3),b.beginPath(),b.moveTo(n+d*m,p+3),c.scaleShowGridLines&&0<d?(b.lineWidth=c.scaleGridLineWidth,b.strokeStyle=c.scaleGridLineColor,b.lineTo(n+d*m,5)):b.lineTo(n+d*m,p+3),b.stroke();b.lineWidth=c.scaleLineWidth;b.strokeStyle=c.scaleLineColor;b.beginPath();b.moveTo(n,p+5);b.lineTo(n,5);b.stroke();b.textAlign="right";b.textBaseline="middle";for(d=0;d<j.steps;d++)b.beginPath(),b.moveTo(n-3,p-(d+1)*k),c.scaleShowGridLines?(b.lineWidth=c.scaleGridLineWidth, 42b.strokeStyle=c.scaleGridLineColor,b.lineTo(n+r+5,p-(d+1)*k)):b.lineTo(n-0.5,p-(d+1)*k),b.stroke(),c.scaleShowLabels&&b.fillText(j.labels[d],n-8,p-(d+1)*k)},function(d){function e(b,c){return p-d*v(a.datasets[b].data[c],j,k)}for(var f=0;f<a.datasets.length;f++){b.strokeStyle=a.datasets[f].strokeColor;b.lineWidth=c.datasetStrokeWidth;b.beginPath();b.moveTo(n,p-d*v(a.datasets[f].data[0],j,k));for(var g=1;g<a.datasets[f].data.length;g++)c.bezierCurve?b.bezierCurveTo(n+m*(g-0.5),e(f,g-1),n+m*(g-0.5), 43e(f,g),n+m*g,e(f,g)):b.lineTo(n+m*g,e(f,g));b.stroke();c.datasetFill?(b.lineTo(n+m*(a.datasets[f].data.length-1),p),b.lineTo(n,p),b.closePath(),b.fillStyle=a.datasets[f].fillColor,b.fill()):b.closePath();if(c.pointDot){b.fillStyle=a.datasets[f].pointColor;b.strokeStyle=a.datasets[f].pointStrokeColor;b.lineWidth=c.pointDotStrokeWidth;for(g=0;g<a.datasets[f].data.length;g++)b.beginPath(),b.arc(n+m*g,p-d*v(a.datasets[f].data[g],j,k),c.pointDotRadius,0,2*Math.PI,!0),b.fill(),b.stroke()}}},b)},L=function(a, 44c,b){var e,h,f,d,g,k,j,l,m,t,r,n,p,s,w=0;g=u;b.font=c.scaleFontStyle+" "+c.scaleFontSize+"px "+c.scaleFontFamily;t=1;for(d=0;d<a.labels.length;d++)e=b.measureText(a.labels[d]).width,t=e>t?e:t;q/a.labels.length<t?(w=45,q/a.labels.length<Math.cos(w)*t?(w=90,g-=t):g-=Math.sin(w)*t):g-=c.scaleFontSize;d=c.scaleFontSize;g=g-5-d;e=Number.MIN_VALUE;h=Number.MAX_VALUE;for(f=0;f<a.datasets.length;f++)for(l=0;l<a.datasets[f].data.length;l++)a.datasets[f].data[l]>e&&(e=a.datasets[f].data[l]),a.datasets[f].data[l]< 45h&&(h=a.datasets[f].data[l]);f=Math.floor(g/(0.66*d));d=Math.floor(0.5*(g/d));l=c.scaleShowLabels?c.scaleLabel:"";c.scaleOverride?(j={steps:c.scaleSteps,stepValue:c.scaleStepWidth,graphMin:c.scaleStartValue,labels:[]},z(l,j.labels,j.steps,c.scaleStartValue,c.scaleStepWidth)):j=C(g,f,d,e,h,l);k=Math.floor(g/j.steps);d=1;if(c.scaleShowLabels){b.font=c.scaleFontStyle+" "+c.scaleFontSize+"px "+c.scaleFontFamily;for(e=0;e<j.labels.length;e++)h=b.measureText(j.labels[e]).width,d=h>d?h:d;d+=10}r=q-d-t;m= 46Math.floor(r/a.labels.length);s=(m-2*c.scaleGridLineWidth-2*c.barValueSpacing-(c.barDatasetSpacing*a.datasets.length-1)-(c.barStrokeWidth/2*a.datasets.length-1))/a.datasets.length;n=q-t/2-r;p=g+c.scaleFontSize/2;x(c,function(){b.lineWidth=c.scaleLineWidth;b.strokeStyle=c.scaleLineColor;b.beginPath();b.moveTo(q-t/2+5,p);b.lineTo(q-t/2-r-5,p);b.stroke();0<w?(b.save(),b.textAlign="right"):b.textAlign="center";b.fillStyle=c.scaleFontColor;for(var d=0;d<a.labels.length;d++)b.save(),0<w?(b.translate(n+ 47d*m,p+c.scaleFontSize),b.rotate(-(w*(Math.PI/180))),b.fillText(a.labels[d],0,0),b.restore()):b.fillText(a.labels[d],n+d*m+m/2,p+c.scaleFontSize+3),b.beginPath(),b.moveTo(n+(d+1)*m,p+3),b.lineWidth=c.scaleGridLineWidth,b.strokeStyle=c.scaleGridLineColor,b.lineTo(n+(d+1)*m,5),b.stroke();b.lineWidth=c.scaleLineWidth;b.strokeStyle=c.scaleLineColor;b.beginPath();b.moveTo(n,p+5);b.lineTo(n,5);b.stroke();b.textAlign="right";b.textBaseline="middle";for(d=0;d<j.steps;d++)b.beginPath(),b.moveTo(n-3,p-(d+1)* 48k),c.scaleShowGridLines?(b.lineWidth=c.scaleGridLineWidth,b.strokeStyle=c.scaleGridLineColor,b.lineTo(n+r+5,p-(d+1)*k)):b.lineTo(n-0.5,p-(d+1)*k),b.stroke(),c.scaleShowLabels&&b.fillText(j.labels[d],n-8,p-(d+1)*k)},function(d){b.lineWidth=c.barStrokeWidth;for(var e=0;e<a.datasets.length;e++){b.fillStyle=a.datasets[e].fillColor;b.strokeStyle=a.datasets[e].strokeColor;for(var f=0;f<a.datasets[e].data.length;f++){var g=n+c.barValueSpacing+m*f+s*e+c.barDatasetSpacing*e+c.barStrokeWidth*e;b.beginPath(); 49b.moveTo(g,p);b.lineTo(g,p-d*v(a.datasets[e].data[f],j,k)+c.barStrokeWidth/2);b.lineTo(g+s,p-d*v(a.datasets[e].data[f],j,k)+c.barStrokeWidth/2);b.lineTo(g+s,p);c.barShowStroke&&b.stroke();b.closePath();b.fill()}}},b)},D=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){window.setTimeout(a,1E3/60)},F={}}; 50} catch (e) { 51console.error('Error in file:/templates/rt_anacron/js/chart.js; Error:' + e.message); 52}; 53try { 54 55window.addEvent('domready', function() { 56 var handle = document.id('gantry-totop'); 57 if (handle) { 58 var scroller = new Fx.Scroll(window); 59 handle.setStyle('outline', 'none').addEvent('click', function(e) { 60 e.stop(); 61 scroller.toTop(); 62 }); 63 } 64}); 65} catch (e) { 66console.error('Error in file:/libraries/gantry/js/gantry-totop.js; Error:' + e.message); 67}; 68try { 69(function(){ 70 71var document = this.document; 72var window = document.window = this; 73 74var ua = navigator.userAgent.toLowerCase(), 75 platform = navigator.platform.toLowerCase(), 76 UA = ua.match(/(opera|ie|trident|firefox|chrome|version)[\s\/:]([\w\d\.]+)?.*?(safari|version[\s\/:]([\w\d\.]+)|rv:(\d.?)|$)/) || [null, 'unknown', 0], 77 mode = (UA[1] == 'ie' || UA[1] == 'trident') && document.documentMode; 78 79var Browser = this.Browser = { 80 81 extend: Function.prototype.extend, 82 83 name: (UA[1] == 'version') ? UA[3] : (UA[1] == 'trident' ? 'ie' : UA[1]), 84 85 version: mode || parseFloat((UA[1] == 'opera' && UA[4]) ? UA[4] : ((UA[1] == 'trident' && UA[5]) ? UA[5] : UA[2])), 86 87 Platform: { 88 name: ua.match(/ip(?:ad|od|hone)/) ? 'ios' : (ua.match(/(?:webos|android)/) || platform.match(/mac|win|linux/) || ['other'])[0] 89 }, 90 91 Features: { 92 xpath: !!(document.evaluate), 93 air: !!(window.runtime), 94 query: !!(document.querySelector), 95 json: !!(window.JSON) 96 },
97 98 Plugins: {} 99 100}; 101 102Browser[Browser.name] = true; 103Browser[Browser.name + parseInt(Browser.version, 10)] = true; 104Browser.Platform[Browser.Platform.name] = true; 105 106// Request 107 108Browser.Request = (function(){ 109 110 var XMLHTTP = function(){ 111 return new XMLHttpRequest(); 112 }; 113 114 var MSXML2 = function(){ 115 return new ActiveXObject('MSXML2.XMLHTTP'); 116 }; 117 118 var MSXML = function(){ 119 return new ActiveXObject('Microsoft.XMLHTTP'); 120 }; 121 122 return Function.attempt(function(){ 123 XMLHTTP(); 124 return XMLHTTP; 125 }, function(){ 126 MSXML2(); 127 return MSXML2; 128 }, function(){ 129 MSXML(); 130 return MSXML; 131 }); 132 133})(); 134 135Browser.Features.xhr = !!(Browser.Request); 136 137//<1.4compat> 138 139// Flash detection 140 141var version = (Function.attempt(function(){ 142 return navigator.plugins['Shockwave Flash'].description; 143}, function(){ 144 return new ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version'); 145}) || '0 r0').match(/\d+/g); 146 147Browser.Plugins.Flash = { 148 version: Number(version[0] || '0.' + version[1]) || 0, 149 build: Number(version[2]) || 0 150}; 151 152//</1.4compat> 153 154// String scripts 155 156Browser.exec = function(text){ 157 if (!text) return text; 158 if (window.execScript){ 159 window.execScript(text); 160 } else { 161 var script = document.createElement('script'); 162 script.setAttribute('type', 'text/javascript'); 163 script.text = text; 164 document.head.appendChild(script); 165 document.head.removeChild(script); 166 } 167 return text; 168}; 169 170 171if (Browser.Platform.ios) Browser.Platform.ipod = true; 172 173Browser.Engine = {}; 174 175var setEngine = function(name, version){ 176 Browser.Engine.name = name; 177 Browser.Engine[name + version] = true; 178 Browser.Engine.version = version; 179}; 180 181if (Browser.ie){ 182 Browser.Engine.trident = true; 183 184 switch (Browser.version){ 185 case 6: setEngine('trident', 4); break; 186 case 7: setEngine('trident', 5); break; 187 case 8: setEngine('trident', 6); 188 } 189} 190 191if (Browser.firefox){ 192 Browser.Engine.gecko = true; 193 194 if (Browser.version >= 3) setEngine('gecko', 19); 195 else setEngine('gecko', 18); 196} 197 198if (Browser.safari || Browser.chrome){ 199 Browser.Engine.webkit = true; 200 201 switch (Browser.version){ 202 case 2: setEngine('webkit', 419); break; 203 case 3: setEngine('webkit', 420); break; 204 case 4: setEngine('webkit', 525); 205 } 206} 207 208if (Browser.opera){ 209 Browser.Engine.presto = true; 210 211 if (Browser.version >= 9.6) setEngine('presto', 960); 212 else if (Browser.version >= 9.5) setEngine('presto', 950); 213 else setEngine('presto', 925); 214} 215 216if (Browser.name == 'unknown'){ 217 switch ((ua.match(/(?:webkit|khtml|gecko)/) || [])[0]){ 218 case 'webkit': 219 case 'khtml': 220 Browser.Engine.webkit = true; 221 break; 222 case 'gecko': 223 Browser.Engine.gecko = true; 224 } 225} 226 227this.$exec = Browser.exec; 228 229//</1.2compat> 230 231})(); 232 233} catch (e) { 234console.error('Error in file:/libraries/gantry/js/browser-engines.js; Error:' + e.message); 235}; 236try { 237/** 238* @version $Id: rokmediaqueries.js 26102 2015-01-27 14:17:52Z james $ 239* @author RocketTheme http://www.rockettheme.com 240* @copyright Copyright (C) 2007 - 2017 RocketTheme, LLC 241* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only 242*/ 243 244((function(){ 245///*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */ 246// matchMedia polyfill 247window.matchMedia = window.matchMedia || window.msMatchMedia || (function(doc, undefined){ 248 var bool, 249 docElem = doc.documentElement, 250 refNode = docElem.firstElementChild || docElem.firstChild, 251 // fakeBody required for <FF4 when executed in <head> 252 fakeBody = doc.createElement('body'), 253 div = doc.createElement('div'); 254 255 div.id = 'mq-test-1'; 256 div.style.cssText = "position:absolute;top:-100em"; 257 fakeBody.style.background = "none"; 258 fakeBody.appendChild(div); 259 260 return function(q){ 261 div.innerHTML = '­<style media="'+q+'"> #mq-test-1 { width: 42px; }</style>'; 262 263 docElem.insertBefore(fakeBody, refNode); 264 bool = div.offsetWidth == 42; 265 docElem.removeChild(fakeBody); 266 267 return { 268 matches: bool, 269 media: q, 270 addListener: function(fn){ 271 if (!Browser.ie9 && !window.opera) return ""; 272 273 if (window.retrieve('rokmediaqueries:listener:' + q.replace(/[a-z]|[(|)|:|\s|-]/gi, ''), false)) return; 274 275 window.store('rokmediaqueries:listener:' + q.replace(/[a-z]|[(|)|:|\s|-]/gi, ''), true); 276 window[window.addListener ? 'addListener' : 'attachEvent']('resize', function(){ 277 var sizes = {}, length = 0, winSize, passed = false;
278 q.replace(/(\w+-?\w+)\s?:\s?(\d+){1,}/g, function(match, p1, p2, p3, offset, string){ 279 sizes[p1] = p2; 280 length++; 281 }); 282 if (!length) return; 283 else if (length == 1){ 284 winSize = window.getSize(); 285 passed = false; 286 Object.each(sizes, function(size, dimension){ 287 if (dimension == 'min-width') passed += winSize.x >= size; 288 else if (dimension == 'max-width') passed += winSize.x <= size; 289 else if (dimension == 'width') passed += winSize.x == size; 290 }); 291 } else if (length > 1) { 292 winSize = window.getSize(); 293 passed = true; 294 Object.each(sizes, function(size, dimension){ 295 if (dimension == 'min-width') passed *= winSize.x >= size; 296 else if (dimension == 'max-width') passed *= winSize.x <= size; 297 else if (dimension == 'width') passed *= winSize.x == size; 298 }); 299 } 300 301 if (passed) return fn.call(fn, q); 302 }); 303 304 } 305 }; 306 }; 307 308 })(document); 309 310})()); 311 312((function(win, doc){ 313 314 if (typeof RokMediaQueries != 'undefined') return; 315 316 var RokMediaQuery = new Class({ 317 Implements: [Events, Options], 318 options: { 319 /* 320 onChange: function(query){}, 321 */ 322 queries: [ 323 '(min-width: 1200px)', 324 '(min-width: 960px) and (max-width: 1199px)', 325 '(min-width: 768px) and (max-width: 959px)', 326 '(min-width: 481px) and (max-width: 767px)', 327 '(max-width: 480px)' 328 ] 329 }, 330 initialize: function(options){ 331 this.setOptions(options); 332 this.queries = this.options.queries; 333 this.queriesEvents = {}; 334 this.timers = []; 335 336 for (var i = this.queries.length - 1; i >= 0; i--) { 337 var media = win.matchMedia(this.queries[i]); 338 media.addListener(this._fireEvent.bind(this, this.queries[i])); 339 this.queriesEvents[this.queries[i]] = []; 340 } 341 }, 342 343 on: function(query, funct){ 344 if (query == 'every'){ 345 for (var i = this.queries.length - 1; i >= 0; i--) this._addOnMatch(this.queries[i], funct); 346 } else { 347 this._addOnMatch(query, funct); 348 } 349 }, 350 351 add: function(query){ 352 if (!this.queries.contains(query)){ 353 var media; 354 this.queries.push(query); 355 media = win.matchMedia(query); 356 media.addListener(this._fireEvent.bind(this, query)); 357 } 358 359 if (!this.queriesEvents[query]) this.queriesEvents[query] = []; 360 }, 361 362 getQuery: function(){ 363 var current = ""; 364 365 for (var i = this.queries.length - 1; i >= 0; i--) { 366 if (win.matchMedia(this.queries[i]).matches){ 367 current = this.queries[i]; 368 break; 369 } 370 } 371 372 return current; 373 }, 374 375 /* private methods */ 376 _fireEvent: function(query){ 377 if (!win.matchMedia(query).matches || !Object.getLength(this.queriesEvents) || !this.queriesEvents[query]) return; 378 379 for (var i = this.queriesEvents[query].length - 1; i >= 0; i--) { 380 //this.queriesEvents[query][i].delay(5, this, query); 381 this.queriesEvents[query][i](query); 382 } 383 }, 384 385 _addOnMatch: function(query, funct){ 386 this.add(query); 387 this.queriesEvents[query].push(funct); 388 } 389 }); 390 391 win.RokMediaQueries = new RokMediaQuery(); 392 393})(window, document)); 394 395} catch (e) { 396console.error('Error in file:/templates/rt_anacron/js/rokmediaqueries.js; Error:' + e.message); 397}; 398try { 399/*! 400 * headroom.js v0.3.11 - Give your page some headroom. Hide your header until you need it 401 * Copyright (c) 2013 Nick Williams - http://wicky.nillia.ms/headroom.js 402 * License: MIT 403 */ 404 405(function(global, $) { 406 407 'use strict'; 408 409 window.requestAnimationFrame = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame; 410 411 /** 412 * Handles debouncing of events via requestAnimationFrame 413 * @see http://www.html5rocks.com/en/tutorials/speed/animations/ 414 * @param {Function} callback The callback to handle whichever event 415 */ 416 function Debouncer (callback) { 417 this.callback = callback; 418 this.ticking = false; 419 } 420 Debouncer.prototype = { 421 constructor : Debouncer, 422 423 /** 424 * dispatches the event to the supplied callback 425 * @private 426 */ 427 update : function() { 428 this.callback && this.callback(); 429 this.ticking = false; 430 }, 431 432 /** 433 * ensures events don't get stacked 434 * @private 435 */ 436 requestTick : function() { 437 if(!this.ticking) { 438 requestAnimationFrame(this.update.bind(this)); 439 this.ticking = true; 440 } 441 }, 442 443 /** 444 * Attach this as the event listeners 445 */ 446 handleEvent : function() { 447 this.requestTick(); 448 } 449 }; 450 /** 451 * UI enhancement for fixed headers. 452 * Hides header when scrolling down 453 * Shows header when scrolling up 454 * @constructor 455 * @param {DOMElement} elem the header element 456 * @param {Object} options options for the widget 457 */ 458 function Headroom (elem, options) { 459 options = options || Headroom.options; 460 461 this.lastKnownScrollY = 0; 462 this.elem = elem; 463 this.debouncer = new Debouncer(this.update.bind(this)); 464 this.tolerance = options.tolerance; 465 this.classes = options.classes; 466 this.offset = options.offset; 467 this.initialised = false;
468 } 469 Headroom.prototype = { 470 constructor : Headroom, 471 472 /** 473 * Initialises the widget 474 */ 475 init : function() { 476 $(this.elem).addClass(this.classes.initial); 477 478 // defer event registration to handle browser 479 // potentially restoring previous scroll position 480 setTimeout(function(){ 481 this.attachEvent(); 482 this.update(); 483 }.bind(this), 100); 484 }, 485 486 /** 487 * Unattaches events and removes any classes that were added 488 */ 489 destroy : function() { 490 this.initialised = false; 491 window.removeEventListener('scroll', this.debouncer, false); 492 493 $(this.elem).removeClass(this.classes.unpinned); 494 $(this.elem).removeClass(this.classes.pinned); 495 $(this.elem).removeClass(this.classes.initial); 496 }, 497 498 /** 499 * Attaches the scroll event 500 * @private 501 */ 502 attachEvent : function() { 503 if(!this.initialised){ 504 this.initialised = true; 505 window.addEventListener('scroll', this.debouncer, false); 506 } 507 }, 508 509 /** 510 * Unpins the header if it's currently pinned 511 */ 512 unpin : function() { 513 $(this.elem).addClass(this.classes.unpinned); 514 $(this.elem).removeClass(this.classes.pinned); 515 }, 516 517 /** 518 * Pins the header if it's currently unpinned 519 */ 520 pin : function() { 521 $(this.elem).removeClass(this.classes.unpinned); 522 $(this.elem).addClass(this.classes.pinned); 523 }, 524 525 /** 526 * Gets the Y scroll position 527 * @see https://developer.mozilla.org/en-US/docs/Web/API/Window.scrollY 528 * @return {Number} pixels the page has scrolled along the Y-axis 529 */ 530 getScrollY : function() { 531 return (window.pageYOffset !== undefined) ? window.pageYOffset : (document.documentElement || document.body.parentNode || document.body).scrollTop; 532 }, 533 534 /** 535 * Handles updating the state of the widget 536 */ 537 update : function() { 538 var currentScrollY = this.getScrollY(), 539 toleranceExceeded = Math.abs(currentScrollY-this.lastKnownScrollY) >= this.tolerance; 540 541 if(currentScrollY < 0) { // Ignore bouncy scrolling in OSX 542 return; 543 } 544 545 if(toleranceExceeded) { 546 if(currentScrollY > this.lastKnownScrollY && currentScrollY >= this.offset) { 547 this.unpin(); 548 } 549 else if(currentScrollY < this.lastKnownScrollY) { 550 this.pin(); 551 } 552 } 553 554 this.lastKnownScrollY = currentScrollY; 555 } 556 }; 557 /** 558 * Default options 559 * @type {Object} 560 */ 561 Headroom.options = { 562 tolerance : 0, 563 offset: 0, 564 classes : { 565 pinned : 'headroom--pinned', 566 unpinned : 'headroom--unpinned', 567 initial : 'headroom' 568 } 569 }; 570 571 global.Headroom = Headroom; 572 573}(this, document.id)); 574} catch (e) { 575console.error('Error in file:/templates/rt_anacron/js/headroom.js; Error:' + e.message); 576}; 577try { 578((function(global, $, Headroom){ 579 580 var FixedHeader = { 581 init: function(){ 582 var header = $('rt-header-surround'); 583 if (!header) return; 584 FixedHeader.headroom = new Headroom($('rt-header-surround'), { 585 "tolerance": 5, 586 "offset": 120, 587 "classes": { 588 "initial": "animated", 589 "pinned": "slideDown", 590 "unpinned": "slideUp" 591 } 592 }); 593 594 if ('matchMedia' in window){ 595 var MQL = window.matchMedia('(max-width: 767px)'); 596 MQL.addListener(FixedHeader.mediaQuery); 597 FixedHeader.mediaQuery(MQL); 598 } else { 599 FixedHeader.start(); 600 } 601 }, 602 603 start: function(){ 604 FixedHeader.headroom.init(); 605 }, 606 607 stop: function(){ 608 FixedHeader.headroom.destroy(); 609 }, 610 611 mediaQuery: function(mql){ 612 FixedHeader[mql.matches ? 'stop' : 'start'](); 613 } 614 }; 615 616 global.FixedHeader = FixedHeader; 617 618 global.addEvent('domready', function(){ 619 FixedHeader.init(); 620 }); 621 622})(window, document.id, Headroom)); 623 624} catch (e) { 625console.error('Error in file:/templates/rt_anacron/js/headroom_init.js; Error:' + e.message); 626};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.