/home2/mshostin/crm.ms-hostingladz.com/assets/js/gauge.min.js
!function(e,t){var n,o,F,S,a=(o=(n=e).document,F=Array.prototype.slice,S=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||n.msRequestAnimationFrame||function(e){return setTimeout(e,1e3/60)},function(){var r="http://www.w3.org/2000/svg",M={centerX:50,centerY:50},k={dialRadius:40,dialStartAngle:135,dialEndAngle:45,value:0,max:100,min:0,valueDialClass:"value",valueClass:"value-text",dialClass:"dial",gaugeClass:"gauge",showValue:!0,gaugeColor:null,label:function(e){return Math.round(e)}};function V(e,t,n){var a=o.createElementNS(r,e);for(var i in t)a.setAttribute(i,t[i]);return n&&n.forEach(function(e){a.appendChild(e)}),a}function R(e,t){return e*t/100}function E(e,t,n){var a=Number(e);return n<a?n:a<t?t:a}function q(e,t,n,a){var i=a*Math.PI/180;return{x:Math.round(1e3*(e+n*Math.cos(i)))/1e3,y:Math.round(1e3*(t+n*Math.sin(i)))/1e3}}return function(e,o){o=function(){var n=arguments[0];return F.call(arguments,1).forEach(function(e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t])}),n}({},k,o);var l,u,t,n=e,s=o.max,d=o.min,a=E(o.value,d,s),c=o.dialRadius,f=o.showValue,m=o.dialStartAngle,v=o.dialEndAngle,i=o.valueDialClass,r=o.valueClass,h=(o.valueLabelClass,o.dialClass),g=o.gaugeClass,p=o.color,w=o.label,A=o.viewBox;if(m<v){console.log("WARN! startAngle < endAngle, Swapping");var x=m;m=v,v=x}function b(e,t,n,a){var i,r,o,l,u,s=(i=e,r=t,o=n,l=M.centerX,u=M.centerY,{end:q(l,u,i,o),start:q(l,u,i,r)}),d=s.start,c=s.end,f=void 0===a?1:a;return["M",d.x,d.y,"A",e,e,0,f,1,c.x,c.y].join(" ")}function C(e,t){var n,a=100*(e-(n=d))/(s-n),i=R(a,360-Math.abs(m-v)),r=i<=180?0:1;f&&(l.textContent=w.call(o,e)),u.setAttribute("d",b(c,m,i+m,r))}function y(e,t){var n=p(e),a=1e3*t,i="stroke "+a+"ms ease";u.style=["stroke: "+n,"-webkit-transition: "+i,"-moz-transition: "+i,"transition: "+i].join(";")}return t={setMaxValue:function(e){s=e},setValue:function(e){a=E(e,d,s),p&&y(a,0),C(a)},setValueAnimated:function(e,t){var n=a;a=E(e,d,s),n!==a&&(p&&y(a,t),function(e){var t=e.duration,n=1,a=60*t,i=e.start||0,r=e.end-i,o=e.step,l=e.easing||function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)};function u(){var e=n/a,t=r*l(e)+i;o(t,n),n+=1,e<1&&S(u)}S(u)}({start:n||0,end:a,duration:t||1,step:function(e,t){C(e,t)}}))},getValue:function(){return a}},function(e){l=V("text",{x:50,y:50,fill:"#999",class:r,"font-size":"100%","font-family":"sans-serif","font-weight":"normal","text-anchor":"middle","alignment-baseline":"middle","dominant-baseline":"central"}),u=V("path",{class:i,fill:"none",stroke:"#666","stroke-width":2.5,d:b(c,m,m)});var t=R(100,360-Math.abs(m-v)),n=V("svg",{viewBox:A||"0 0 100 100",class:g},[V("path",{class:h,fill:"none",stroke:"#eee","stroke-width":2,d:b(c,m,v,t<=180?0:1)}),l,u]);e.appendChild(n)}(n),t.setValue(a),t}}());"function"==typeof define&&define.amd?define(function(){return a}):"object"==typeof module&&module.exports?module.exports=a:e.Gauge=a}("undefined"==typeof window?this:window);