text: "use strict";var FPS=function(a){function t(){u(new Date-q),q=new Date,s(h-p),r=requestAnimationFrame(t)}function u(a){for(;a>k;)n[0]=0,n.push(n.shift()),a-=k;n[0]=1,n.push(n.shift()),o[0]=p=v(n),o.push(o.shift())}function v(a){return a.reduce(function(a,b){return a+(b||0)},0)}function w(){var a=new Path2D;a.arc(f,g,e,40*l,140*l,!0),d.fillStyle="black",d.fill(a),a=new Path2D,a.arc(f,g,e-e/20,35*l,145*l,!0),d.fillStyle="#fff",d.fill(a),d.lineWidth=1,d.strokeStyle="#000";for(var b=1;b<h;b++)a=new Path2D,a.arc(f,g,e-e/6,-m*b,-m*b,!1),a.lineTo(f,g),d.stroke(a);a=new Path2D,a.arc(f,g,e-e/3.5,0,Math.PI,!0),d.fillStyle="#fff",d.fill(a);for(var i=["green","yellow","red"],j=[h/100*84,h/100*8,h/100*8],k=0,b=0;b<j.length;b++)a=new Path2D,a.arc(f,g,e-e/2.5,-m*k,-m*(j[b]+k),!0),a.lineTo(f,g),k+=j[b],d.fillStyle=i[b],d.fill(a);if(a=new Path2D,a.arc(f,g,e-e/2,0,Math.PI,!0),d.fillStyle="#fff",d.fill(a),a=new Path2D,a.arc(f,g,e-e/1.65,35*l,145*l,!0),d.fillStyle="#000",d.fill(a),f>=100){var n=e-f/9,o=f/20,p=o/2,q=h/12;d.font=o+"px arial",d.fillStyle="black",d.fillText(0,f+n*Math.cos(Math.PI)-p,g+n*Math.sin(Math.PI));for(var b=1;b<12;b++)d.fillText(q*b,f+n*Math.cos(l*-(180-15*b))-p,g+n*Math.sin(l*-(180-15*b)));d.fillText(h,f+n*Math.cos(0)-p,g+n*Math.sin(0))}var r=new Image;r.src=c.toDataURL(),r.width=r.height=c.width,r.style.position="fixed",r.style.bottom=c.style.bottom,r.style.right=c.style.right,r.style.width=c.width+"px",r.style.height=c.height+"px",document.body.insertBefore(r,c)}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame;var b=window.cancelAnimationFrame||window.mozCancelAnimationFrame,c=document.createElement("canvas");c.width=c.height=a.w,c.style.position="fixed",c.style.bottom=0,c.style.right="10px",c.style.zIndex=9e3,document.body.appendChild(c);var r,d=c.getContext("2d"),e=c.width>c.height?c.height/2:c.width/2,f=c.width/2,g=c.height/2,h=60,i=180/h,j=1.02,k=1e3/h*j,l=Math.PI/180,m=l*i,n=new Array(h),o=new Array(h),p=0,q=new Date,s=function(){var a=f/4,b=f-.61*a,i=g+a/1.8;return function(j){d.clearRect(0,0,c.width,c.height);var k=new Path2D;k.arc(f,g,e-e/10,-m*j,-m*j,!1),k.lineTo(f,g),d.lineWidth=f>200?.012*f:2,d.strokeStyle="lime",d.stroke(k),k=new Path2D,k.arc(f,g,e-e/1.25,0,2*Math.PI,!0),d.fillStyle="#000",d.fill(k),d.font=a+"px arial",d.fillStyle="lime",d.fillText(h-j,h-j<10?b+a/3.1:b,i)}}();this.start=function(){w(),t()},this.stop=function(){b(r),d.clearRect(0,0,c.width,c.height),document.body.removeChild(c.previousSibling)}};"object"==typeof module&&(module.exports=FPS);