1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4408],{76770:function(t){(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},n={};e.r(n),e.d(n,{default:()=>i});var o=function(){var t;function e(){!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,e)}return t=[{key:"changeHeightWidth",value:function(t,e,n,o,i,r){return n>o&&(t=Math.round(t*o/n),n=o),t>e&&(n=Math.round(n*e/t),t=e),i&&n<i&&(t=Math.round(t*i/n),n=i),r&&t<r&&(n=Math.round(n*r/t),t=r),{height:t,width:n}}},{key:"resizeAndRotateImage",value:function(t,e,n,o,i){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"jpeg",a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:100,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,h=document.createElement("canvas"),u=t.width,c=t.height,l=this.changeHeightWidth(c,n,u,e,o,i);s&&(90===s||270===s)?(h.width=l.height,h.height=l.width):(h.width=l.width,h.height=l.height),u=l.width,c=l.height;var d=h.getContext("2d");return d.fillStyle="rgba(0, 0, 0, 0)",d.fillRect(0,0,u,c),d.imageSmoothingEnabled&&d.imageSmoothingQuality&&(d.imageSmoothingQuality="high"),s&&(d.rotate(s*Math.PI/180),90===s?d.translate(0,-h.width):180===s?d.translate(-h.width,-h.height):270===s?d.translate(-h.height,0):0!==s&&360!==s||d.translate(0,0)),d.drawImage(t,0,0,u,c),h.toDataURL("image/".concat(r),a/100)}},{key:"b64toByteArrays",value:function(t,e){e=e||"image/jpeg";for(var n=atob(t.toString().replace(/^data:image\/(png|jpeg|jpg|webp);base64,/,"")),o=[],i=0;i<n.length;i+=512){for(var r=n.slice(i,i+512),a=Array(r.length),s=0;s<r.length;s++)a[s]=r.charCodeAt(s);var h=new Uint8Array(a);o.push(h)}return o}},{key:"b64toBlob",value:function(t,e){var n=this.b64toByteArrays(t,e);return new Blob(n,{type:e,lastModified:new Date})}},{key:"b64toFile",value:function(t,e,n){var o=this.b64toByteArrays(t,n);return new File(o,e,{type:n,lastModified:new Date})}},{key:"createResizedImage",value:function(t,n,o,i,r,a,s){var h=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"base64",u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:null,l=new FileReader;if(!t)throw Error("File Not Found!");if(t.type&&!t.type.includes("image"))throw Error("File Is NOT Image!");l.readAsDataURL(t),l.onload=function(){var d=new Image;d.src=l.result,d.onload=function(){var l=e.resizeAndRotateImage(d,n,o,u,c,i,r,a),f="image/".concat(i);switch(h){case"blob":s(e.b64toBlob(l,f));break;case"base64":default:s(l);break;case"file":var p=t.name.toString().replace(/(png|jpeg|jpg|webp)$/i,"").concat(i.toString());s(e.b64toFile(l,p,f))}}},l.onerror=function(t){throw Error(t)}}}],function(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}(e,t),e}();let i={imageFileResizer:function(t,e,n,i,r,a,s,h,u,c){return o.createResizedImage(t,e,n,i,r,a,s,h,u,c)}};t.exports=n})()},58877:function(t,e,n){var o,i,r,a;t.exports=(o=n(45697),i=n(67294),r=n(21518),a=n(41400),function(t){function e(o){if(n[o])return n[o].exports;var i=n[o]={exports:{},id:o,loaded:!1};return t[o].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&("object"==typeof e||"function"==typeof e)?e:t}Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},a=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),s=o(n(1)),h=n(2),u=o(h),c=o(n(3)),l=o(n(4)),d=function(t){function e(){var t,n,o;!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,a=Array(r),s=0;s<r;s++)a[s]=arguments[s];return n=o=i(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(a))),o._sigPad=null,o._excludeOurProps=function(){var t=o.props;return t.canvasProps,t.clearOnResize,function(t,e){var n={};for(var o in t)e.indexOf(o)>
vendor: 8,252 bytes, lines 1-17
1=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}(t,["canvasProps","clearOnResize"])},o.getCanvas=function(){return o._canvas},o.getTrimmedCanvas=function(){var t=document.createElement("canvas");return t.width=o._canvas.width,t.height=o._canvas.height,t.getContext("2d").drawImage(o._canvas,0,0),(0,l.default)(t)},o.getSignaturePad=function(){return o._sigPad},o._checkClearOnResize=function(){o.props.clearOnResize&&o._resizeCanvas()},o._resizeCanvas=function(){var t=o.props.canvasProps||{},e=t.width,n=t.height;if(!e||!n){var i=o._canvas,r=Math.max(window.devicePixelRatio||1,1);e||(i.width=i.offsetWidth*r),n||(i.height=i.offsetHeight*r),i.getContext("2d").scale(r,r),o.clear()}},o.on=function(){return window.addEventListener("resize",o._checkClearOnResize),o._sigPad.on()},o.off=function(){return window.removeEventListener("resize",o._checkClearOnResize),o._sigPad.off()},o.clear=function(){return o._sigPad.clear()},o.isEmpty=function(){return o._sigPad.isEmpty()},o.fromDataURL=function(t,e){return o._sigPad.fromDataURL(t,e)},o.toDataURL=function(t,e){return o._sigPad.toDataURL(t,e)},o.fromData=function(t){return o._sigPad.fromData(t)},o.toData=function(){return o._sigPad.toData()},i(o,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"componentDidMount",value:function(){this._sigPad=new c.default(this._canvas,this._excludeOurProps()),this._resizeCanvas(),this.on()}},{key:"componentWillUnmount",value:function(){this.off()}},{key:"componentDidUpdate",value:function(){Object.assign(this._sigPad,this._excludeOurProps())}},{key:"render",value:function(){var t=this,e=this.props.canvasProps;return u.default.createElement("canvas",r({ref:function(e){t._canvas=e}},e))}}]),e}(h.Component);d.propTypes={velocityFilterWeight:s.default.number,minWidth:s.default.number,maxWidth:s.default.number,minDistance:s.default.number,dotSize:s.default.oneOfType([s.default.number,s.default.func]),penColor:s.default.string,throttle:s.default.number,onEnd:s.default.func,onBegin:s.default.func,canvasProps:s.default.object,clearOnResize:s.default.bool},d.defaultProps={clearOnResize:!0},e.default=d},function(t,e){t.exports=o},function(t,e){t.exports=i},function(t,e){t.exports=r},function(t,e){t.exports=a}]))},41400:function(t){t.exports=function(t){function e(o){if(n[o])return n[o].exports;var i=n[o]={exports:{},id:o,loaded:!1};return t[o].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e){"use strict";function n(t,e,n,o){return({red:o[4*(n*e+t)],green:o[4*(n*e+t)+1],blue:o[4*(n*e+t)+2],alpha:o[4*(n*e+t)+3]}).alpha}function o(t,e,o,i){for(var r=t?1:-1,a=t?0:o-1,s=a;t?s<o:s>-1;s+=r)for(var h=0;h<e;h++)if(n(h,s,e,i))return s;return null}function i(t,e,o,i){for(var r=t?1:-1,a=t?0:e-1,s=a;t?s<e:s>-1;s+=r)for(var h=0;h<o;h++)if(n(s,h,e,i))return s;return null}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.getContext("2d"),n=t.width,r=t.height,a=e.getImageData(0,0,n,r).data,s=o(!0,n,r,a),h=o(!1,n,r,a),u=i(!0,n,r,a),c=i(!1,n,r,a)-u+1,l=h-s+1,d=e.getImageData(u,s,c,l);return t.width=c,t.height=l,e.clearRect(0,0,c,l),e.putImageData(d,0,0),t}}])},21518:function(t,e,n){"use strict";/*! 2 * Signature Pad v2.3.2 3 * https://github.com/szimek/signature_pad 4 * 5 * Copyright 2017 Szymon Nowak 6 * Released under the MIT license 7 * 8 * The main idea and some parts of the code (e.g. drawing variable width Bézier curve) are taken from: 9 * http://corner.squareup.com/2012/07/smoother-signatures.html 10 * 11 * Implementation of interpolation using cubic Bézier curves is taken from: 12 * http://benknowscode.wordpress.com/2012/09/14/path-interpolation-using-cubic-bezier-and-control-point-estimation-in-javascript 13 * 14 * Algorithm for approximated length of a Bézier curve is taken from: 15 * http://www.lemoda.net/maths/bezier-length/index.html 16 * 17 */function o(t,e,n){this.x=t,this.y=e,this.time=n||new Date().getTime()}function i(t,e,n,o){this.startPoint=t,this.control1=e,this.control2=n,this.endPoint=o}function r(t,e){var n,o,i,a,s,h,u,c,l,d=this,f=e||{};(this.velocityFilterWeight=f.velocityFilterWeight||.7,this.minWidth=f.minWidth||.5,this.maxWidth=f.maxWidth||2.5,this.throttle="throttle"in f?f.throttle:16,this.minDistance="minDistance"in f?f.minDistance:5,this.throttle)?this._strokeMoveUpdate=(n=r.prototype._strokeUpdate,o=this.throttle,u=null,c=0,i||(i={}),l=function(){c=!1===i.leading?0:Date.now(),u=null,h=n.apply(a,s),u||(a=s=null)},function(){var t=Date.now();c||!1!==i.leading||(c=t);var e=o-(t-c);return a=this,s=arguments,e<=0||e>o?(u&&(clearTimeout(u),u=null),c=t,h=n.apply(a,s),u||(a=s=null)):u||!1===i.trailing||(u=setTimeout(l,e)),h}):this._strokeMoveUpdate=r.prototype._strokeUpdate,this.dotSize=f.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=f.penColor||"black",this.backgroundColor=f.backgroundColor||"rgba(0,0,0,0)",this.onBegin=f.onBegin,this.onEnd=f.onEnd,this._canvas=t,this._ctx=t.getContext("2d"),this.clear(),this._handleMouseDown=function(t){1===t.which&&(d._mouseButtonDown=!0,d._strokeBegin(t))},this._handleMouseMove=function(t){d._mouseButtonDown&&d._strokeMoveUpdate(t)},this._handleMouseUp=function(t){1===t.which&&d._mouseButtonDown&&(d._mouseButtonDown=!1,d._strokeEnd(t))},this._handleTouchStart=function(t){if(1===t.targetTouches.length){var e=t.changedTouches[0];d._strokeBegin(e)}},this._handleTouchMove=function(t){t.preventDefault();var e=t.targetTouches[0];d._strokeMoveUpdate(e)},this._handleTouchEnd=function(t){t.target===d._canvas&&(t.preventDefault(),d._strokeEnd(t))},this.on()}n.r(e),o.prototype.velocityFrom=function(t){return this.time!==t.time?this.distanceTo(t)/(this.time-t.time):1},o.prototype.distanceTo=function(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))},o.prototype.equals=function(t){return this.x===t.x&&this.y===t.y&&this.time===t.time},i.prototype.length=function(){for(var t=0,e=void 0,n=void 0,o=0;o<=10;o+=1){var i=o/10,r=this._point(i,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),a=this._point(i,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(o>0){var s=r-e,h=a-n;t+=Math.sqrt(s*s+h*h)}e=r,n=a}return t},i.prototype._point=function(t,e,n,o,i){return e*(1-t)*(1-t)*(1-t)+3*n*(1-t)*(1-t)*t+3*o*(1-t)*t*t+i*t*t*t},r.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},r.prototype.fromDataURL=function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=new Image,i=n.ratio||window.devicePixelRatio||1,r=n.width||this._canvas.width/i,a=n.height||this._canvas.height/i;this._reset(),o.src=t,o.onload=function(){e._ctx.drawImage(o,0,0,r,a)},this._isEmpty=!1},r.prototype.toDataURL=function(t){var e;if("image/svg+xml"===t)return this._toSVG();for(var n=arguments.length,o=Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return(e=this._canvas).toDataURL.apply(e,[t].concat(o))},r.prototype.on=function(){this._handleMouseEvents(),this._handleTouchEvents()},r.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)},r.prototype.isEmpty=function(){return this._isEmpty},r.prototype._strokeBegin=function(t){this._data.push([]),this._reset(),this._strokeUpdate(t),"function"==typeof this.onBegin&&this.onBegin(t)},r.prototype._strokeUpdate=function(t){var e=t.clientX,n=t.clientY,o=this._createPoint(e,n),i=this._data[this._data.length-1],r=i&&i[i.length-1],a=r&&o.distanceTo(r)<this.minDistance;if(!(r&&a)){var s=this._addPoint(o),h=s.curve,u=s.widths;
17h&&u&&this._drawCurve(h,u.start,u.end),this._data[this._data.length-1].push({x:o.x,y:o.y,time:o.time,color:this.penColor})}},r.prototype._strokeEnd=function(t){var e=this.points.length>2,n=this.points[0];if(!e&&n&&this._drawDot(n),n){var o=this._data[this._data.length-1],i=o[o.length-1];n.equals(i)||o.push({x:n.x,y:n.y,time:n.time,color:this.penColor})}"function"==typeof this.onEnd&&this.onEnd(t)},r.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown),this._canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)},r.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)},r.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor},r.prototype._createPoint=function(t,e,n){var i=this._canvas.getBoundingClientRect();return new o(t-i.left,e-i.top,n||new Date().getTime())},r.prototype._addPoint=function(t){var e=this.points;if(e.push(t),e.length>2){3===e.length&&e.unshift(e[0]);var n=this._calculateCurveControlPoints(e[0],e[1],e[2]).c2,o=this._calculateCurveControlPoints(e[1],e[2],e[3]).c1,r=new i(e[1],n,o,e[2]),a=this._calculateCurveWidths(r);return e.shift(),{curve:r,widths:a}}return{}},r.prototype._calculateCurveControlPoints=function(t,e,n){var i=t.x-e.x,r=t.y-e.y,a=e.x-n.x,s=e.y-n.y,h={x:(t.x+e.x)/2,y:(t.y+e.y)/2},u={x:(e.x+n.x)/2,y:(e.y+n.y)/2},c=Math.sqrt(a*a+s*s),l=h.x-u.x,d=h.y-u.y,f=c/(Math.sqrt(i*i+r*r)+c),p={x:u.x+l*f,y:u.y+d*f},v=e.x-p.x,g=e.y-p.y;return{c1:new o(h.x+v,h.y+g),c2:new o(u.x+v,u.y+g)}},r.prototype._calculateCurveWidths=function(t){var e=t.startPoint,n=t.endPoint,o={start:null,end:null},i=this.velocityFilterWeight*n.velocityFrom(e)+(1-this.velocityFilterWeight)*this._lastVelocity,r=this._strokeWidth(i);return o.start=this._lastWidth,o.end=r,this._lastVelocity=i,this._lastWidth=r,o},r.prototype._strokeWidth=function(t){return Math.max(this.maxWidth/(t+1),this.minWidth)},r.prototype._drawPoint=function(t,e,n){var o=this._ctx;o.moveTo(t,e),o.arc(t,e,n,0,2*Math.PI,!1),this._isEmpty=!1},r.prototype._drawCurve=function(t,e,n){var o=this._ctx,i=n-e,r=Math.floor(t.length());o.beginPath();for(var a=0;a<r;a+=1){var s=a/r,h=s*s,u=h*s,c=1-s,l=c*c,d=l*c,f=d*t.startPoint.x;f+=3*l*s*t.control1.x+3*c*h*t.control2.x+u*t.endPoint.x;var p=d*t.startPoint.y;p+=3*l*s*t.control1.y+3*c*h*t.control2.y+u*t.endPoint.y;var v=e+u*i;this._drawPoint(f,p,v)}o.closePath(),o.fill()},r.prototype._drawDot=function(t){var e=this._ctx,n="function"==typeof this.dotSize?this.dotSize():this.dotSize;e.beginPath(),this._drawPoint(t.x,t.y,n),e.closePath(),e.fill()},r.prototype._fromData=function(t,e,n){for(var i=0;i<t.length;i+=1){var r=t[i];if(r.length>1)for(var a=0;a<r.length;a+=1){var s=r[a],h=new o(s.x,s.y,s.time),u=s.color;if(0===a)this.penColor=u,this._reset(),this._addPoint(h);else if(a!==r.length-1){var c=this._addPoint(h),l=c.curve,d=c.widths;l&&d&&e(l,d,u)}}else this._reset(),n(r[0])}},r.prototype._toSVG=function(){var t=this,e=this._data,n=this._canvas,o=Math.max(window.devicePixelRatio||1,1),i=n.width/o,r=n.height/o,a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttributeNS(null,"width",n.width),a.setAttributeNS(null,"height",n.height),this._fromData(e,function(t,e,n){var o=document.createElement("path");if(!isNaN(t.control1.x)&&!isNaN(t.control1.y)&&!isNaN(t.control2.x)&&!isNaN(t.control2.y)){var i="M "+t.startPoint.x.toFixed(3)+","+t.startPoint.y.toFixed(3)+" "+("C "+t.control1.x.toFixed(3))+","+t.control1.y.toFixed(3)+" "+t.control2.x.toFixed(3)+","+t.control2.y.toFixed(3)+" "+t.endPoint.x.toFixed(3)+","+t.endPoint.y.toFixed(3);o.setAttribute("d",i),o.setAttribute("stroke-width",(2.25*e.end).toFixed(3)),o.setAttribute("stroke",n),o.setAttribute("fill","none"),o.setAttribute("stroke-linecap","round"),a.appendChild(o)}},function(e){var n=document.createElement("circle"),o="function"==typeof t.dotSize?t.dotSize():t.dotSize;n.setAttribute("r",o),n.setAttribute("cx",e.x),n.setAttribute("cy",e.y),n.setAttribute("fill",e.color),a.appendChild(n)});var s=a.innerHTML;if(void 0===s){var h=document.createElement("dummy"),u=a.childNodes;h.innerHTML="";for(var c=0;c<u.length;c+=1)h.appendChild(u[c].cloneNode(!0));s=h.innerHTML}return"data:image/svg+xml;base64,"+btoa('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewB
17ox="0 0 '+i+" "+r+'" width="'+i+'" height="'+r+'">'+s+"</svg>")},r.prototype.fromData=function(t){var e=this;this.clear(),this._fromData(t,function(t,n){return e._drawCurve(t,n.start,n.end)},function(t){return e._drawDot(t)}),this._data=t},r.prototype.toData=function(){return this._data},e.default=r}}]);
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.