"use strict";CanvasRenderingContext2D.prototype.line=function(t,e,i,n,o,a){this.beginPath(),this.moveTo(t,e),this.lineTo(i,n),this.strokeStyle=o,this.lineWidth=a,this.stroke()};var UrsSlidingScaleEx=function(t,e){function i(){y=!0;var t=a.createLinearGradient(0,0,f,0);t.addColorStop(0,"rgb(110, 110, 110)"),t.addColorStop(.5,"rgb(210, 210, 210)"),t.addColorStop(1,"rgb(110, 110, 110)"),a.fillStyle=t,a.fillRect(0,0,f,v),d.line(.5,.5,f,.5,"#A0A0A0",1),d.line(.5,.5,.5,v,"#A0A0A0",1),d.line(1.5,1.5,f,1.5,"#696969",1),d.line(1.5,1.5,1.5,v,"#696969",1),d.line(0,v-.5,f,v-.5,"#FFFFFF",1),d.line(f-.5,0,f-.5,v-.5,"#FFFFFF",1),d.line(1,v-1.5,f-1,v-1.5,"#E3E3E3",1),d.line(f-1.5,.5,f-1.5,v-1.5,"#E3E3E3",1),d.line(b,2,b,v-2,"#FF0000",2)}function n(){s=o(f,v),r=s.getContext("2d");for(var t=m/T,e=t/(w+1),i=f/m*e,n=Math.floor((S-m/2)/t)*t,a=Math.floor(b-f/m*(S-n)),l=0;l<=T;l++){n>=0&&r.line(a,0,a,x,E,2),r.fillStyle=E,r.font="bold 18px sans-serif",r.textAlign="center",n>=0&&r.fillText(""+n,a,(v+x)/2);for(var d=1;d<=w;d++)a+=i,(n+=e)>=0&&a<f&&a>0&&r.line(a,0,a,k,E,1);n+=e,a+=i}}function o(t,e){var i=document.createElement("canvas");return i.width=t,i.height=e,i}var a,l,r,s,d,h,c,g,u=void 0===e._context?null:e.context,v=void 0===e.height?0:e.height,f=void 0===e.width?0:e.width,p=void 0===e.top?0:e.top,C=void 0===e.left?0:e.left,F=void 0!==e.resize&&e.true,m=void 0===e.scaleRange?100:e.scaleRange,T=void 0===e.largeTicksCount?5:e.largeTicksCount,w=void 0===e.smallTicksCount?4:e.smallTicksCount,x=void 0===e.largeTicksLength?15:e.largeTicksLength,k=void 0===e.smallTicksLength?10:e.smallTicksLength,E=void 0===e.scaleColor?"#000000":e.scaleColor,S=void 0===e.value?0:e.value,y=!1,A=!1;c=u||function(t){return("string"==typeof t||t instanceof String?document.getElementById(t):t).getContext("2d")}(t),0===v&&(v=c.canvas.height),0===f&&(f=c.canvas.width),F&&(c.canvas.width=f,c.canvas.height=v);var b=f/2;h=o(f,v),d=h.getContext("2d"),l=o(f,v),a=l.getContext("2d"),this.repaint=function(){y||i(),c.drawImage(l,C,p),n(),c.drawImage(s,C,p),c.drawImage(h,C,p),A=!1},this.setValue=function(t){return void 0!==g&&g.isPlaying&&g.stop(),S=parseFloat(t),this.repaint(),this},this.setValueAnimated=function(t,e){var i=this;return(t=parseFloat(t))<0&&(t=0),S!==t&&(void 0!==g&&g.isPlaying&&g.stop(),(g=new Tween({},"",Tween.strongEaseOut,S,t,e)).onMotionChanged=function(t){S=t.target._pos,A||(A=!0,window.setTimeout(i.repaint,62.5))},g.start()),this.repaint(),this},this.getValue=function(){return S},this.repaint()};