PageSourceSearch

https://resumizeme.com/_next/static/chunks/8119-b37ef49953978709.js

js resumizeme.com collected 2026-10-04 01:59:57 UTC 24,287 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8119],{9704:function(t,e,i){var n,o;"undefined"!=typeof self&&self,void 0!==(o="function"==typeof(n=function(){"function"!=typeof Promise&&function(e){function i(t,e){return function(){t.apply(e,arguments)}}function n(t){if("object"!=typeof this)throw TypeError("Promises must be constructed via new");if("function"!=typeof t)throw TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],h(t,i(r,this),i(a,this))}function o(t){var e=this;return null===this._state?void this._deferreds.push(t):void c(function(){var i,n=e._state?t.onFulfilled:t.onRejected;if(null===n)return void(e._state?t.resolve:t.reject)(e._value);try{i=n(e._value)}catch(e){return void t.reject(e)}t.resolve(i)})}function r(t){try{if(t===this)throw TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var e=t.then;if("function"==typeof e)return void h(i(e,t),i(r,this),i(a,this))}this._state=!0,this._value=t,s.call(this)}catch(t){a.call(this,t)}}function a(t){this._state=!1,this._value=t,s.call(this)}function s(){for(var t=0,e=this._deferreds.length;e>t;t++)o.call(this,this._deferreds[t]);this._deferreds=null}function l(t,e,i,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.resolve=i,this.reject=n}function h(t,e,i){var n=!1;try{t(function(t){n||(n=!0,e(t))},function(t){n||(n=!0,i(t))})}catch(t){if(n)return;n=!0,i(t)}}var u=setTimeout,c="function"==typeof setImmediate&&setImmediate||function(t){u(t,1)},p=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};n.prototype.catch=function(t){return this.then(null,t)},n.prototype.then=function(t,e){var i=this;return new n(function(n,r){o.call(i,new l(t,e,n,r))})},n.all=function(){var t=Array.prototype.slice.call(1==arguments.length&&p(arguments[0])?arguments[0]:arguments);return new n(function(e,i){if(0===t.length)return e([]);for(var n=t.length,o=0;o<t.length;o++)(function o(r,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,function(t){o(r,t)},i)}t[r]=a,0==--n&&e(t)}catch(t){i(t)}})(o,t[o])})},n.resolve=function(t){return t&&"object"==typeof t&&t.constructor===n?t:new n(function(e){e(t)})},n.reject=function(t){return new n(function(e,i){i(t)})},n.race=function(t){return new n(function(e,i){for(var n=0,o=t.length;o>n;n++)t[n].then(e,i)})},n._setImmediateFn=function(t){c=t},t.exports?t.exports=n:e.Promise||(e.Promise=n)}(this),"undefined"!=typeof window&&"function"!=typeof window.CustomEvent&&function(){function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i}t.prototype=window.Event.prototype,window.CustomEvent=t}(),"undefined"==typeof HTMLCanvasElement||HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(t,e,i){for(var n=atob(this.toDataURL(e,i).split(",")[1]),o=n.length,r=new Uint8Array(o),a=0;a<o;a++)r[a]=n.charCodeAt(a);t(new Blob([r],{type:e||"image/png"}))}});var e,i,n,o,r,a=["Webkit","Moz","ms"],s="undefined"!=typeof document?document.createElement("div").style:{},l=[1,8,3,6],h=[2,7,4,5];function u(t){if(t in s)return t;for(var e=t[0].toUpperCase()+t.slice(1),i=a.length;i--;)if((t=a[i]+e)in s)return t}function c(t,e){for(var i in t=t||{},e)e[i]&&e[i].constructor&&e[i].constructor===Object?(t[i]=t[i]||{},c(t[i],e[i])):t[i]=e[i];return t}function p(t){if("createEvent"in document){var e=document.createEvent("HTMLEvents");e.initEvent("change",!1,!0),t.dispatchEvent(e)}else t.fireEvent("onchange")}function d(t,e,i){if("string"==typeof e){var n=e;(e={})[n]=i}for(var o in e)t.style[o]=e[o]}function m(t,e){t.classList?t.classList.add(e):t.className+=" "+e}function f(t,e){for(var i in e)t.setAttribute(i,e[i])}function v(t){return parseInt(t,10)}function g(t,e){var i=t.naturalWidth,n=t.naturalHeight,o=e||x(t);if(o&&o>=5){var r=i;i=n,n=r}return{width:i,height:n}}o=u("transform"),n=u("transformOrigin"),r=u("userSelect");var w={translate3d:{suffix:", 0px"},translate:{suffix:""}}
1,y=function(t,e,i){this.x=parseFloat(t),this.y=parseFloat(e),this.scale=parseFloat(i)};y.parse=function(t){return t.style?y.parse(t.style[o]):t.indexOf("matrix")>-1||t.indexOf("none")>-1?y.fromMatrix(t):y.fromString(t)},y.fromMatrix=function(t){var e=t.substring(7).split(",");return e.length&&"none"!==t||(e=[1,0,0,1,0,0]),new y(v(e[4]),v(e[5]),parseFloat(e[0]))},y.fromString=function(t){var e=t.split(") "),i=e[0].substring(ti.globals.translate.length+1).split(","),n=e.length>1?e[1].substring(6):1;return new y(i.length>1?i[0]:0,i.length>1?i[1]:0,n)},y.prototype.toString=function(){var t=w[ti.globals.translate].suffix||"";return ti.globals.translate+"("+this.x+"px, "+this.y+"px"+t+") scale("+this.scale+")"};var b=function(t){if(!t||!t.style[n]){this.x=0,this.y=0;return}var e=t.style[n].split(" ");this.x=parseFloat(e[0]),this.y=parseFloat(e[1])};function x(t){return t.exifdata&&t.exifdata.Orientation?v(t.exifdata.Orientation):1}function C(t,e,i){var n=e.width,o=e.height,r=t.getContext("2d");switch(t.width=e.width,t.height=e.height,r.save(),i){case 2:r.translate(n,0),r.scale(-1,1);break;case 3:r.translate(n,o),r.rotate(180*Math.PI/180);break;case 4:r.translate(0,o),r.scale(1,-1);break;case 5:t.width=o,t.height=n,r.rotate(90*Math.PI/180),r.scale(1,-1);break;case 6:t.width=o,t.height=n,r.rotate(90*Math.PI/180),r.translate(0,-o);break;case 7:t.width=o,t.height=n,r.rotate(-90*Math.PI/180),r.translate(-n,o),r.scale(1,-1);break;case 8:t.width=o,t.height=n,r.translate(0,n),r.rotate(-90*Math.PI/180)}r.drawImage(e,0,0,n,o),r.restore()}function E(){var t,e,i,n,o,r,a=this.options.viewport.type?"cr-vp-"+this.options.viewport.type:null;this.options.useCanvas=this.options.enableOrientation||_.call(this),this.data={},this.elements={},t=this.elements.boundary=document.createElement("div"),i=this.elements.viewport=document.createElement("div"),e=this.elements.img=document.createElement("img"),n=this.elements.overlay=document.createElement("div"),this.options.useCanvas?(this.elements.canvas=document.createElement("canvas"),this.elements.preview=this.elements.canvas):this.elements.preview=e,m(t,"cr-boundary"),t.setAttribute("aria-dropeffect","none"),o=this.options.boundary.width,r=this.options.boundary.height,d(t,{width:o+(isNaN(o)?"":"px"),height:r+(isNaN(r)?"":"px")}),m(i,"cr-viewport"),a&&m(i,a),d(i,{width:this.options.viewport.width+"px",height:this.options.viewport.height+"px"}),i.setAttribute("tabindex",0),m(this.elements.preview,"cr-image"),f(this.elements.preview,{alt:"preview","aria-grabbed":"false"}),m(n,"cr-overlay"),this.element.appendChild(t),t.appendChild(this.elements.preview),t.appendChild(i),t.appendChild(n),m(this.element,"croppie-container"),this.options.customClass&&m(this.element,this.options.customClass),z.call(this),this.options.enableZoom&&B.call(this),this.options.enableResize&&L.call(this)}function _(){return this.options.enableExif&&window.EXIF}function L(){var t,e,i,n,o,a,s,l=this,h=document.createElement("div"),u=!1;function c(a){if((void 0===a.button||0===a.button)&&(a.preventDefault(),!u)){var s=l.elements.overlay.getBoundingClientRect();if(u=!0,e=a.pageX,i=a.pageY,t=-1!==a.currentTarget.className.indexOf("vertical")?"v":"h",n=s.width,o=s.height,a.touches){var h=a.touches[0];e=h.pageX,i=h.pageY}window.addEventListener("mousemove",p),window.addEventListener("touchmove",p),window.addEventListener("mouseup",f),window.addEventListener("touchend",f),document.body.style[r]="none"}}function p(r){var a=r.pageX,s=r.pageY;if(r.preventDefault(),r.touches){var u=r.touches[0];a=u.pageX,s=u.pageY}var c=a-e,p=s-i,m=l.options.viewport.height+p,f=l.options.viewport.width+c;"v"===t&&m>=50&&m<=o?(d(h,{height:m+"px"}),l.options.boundary.height+=p,d(l.elements.boundary,{height:l.options.boundary.height+"px"}),l.options.viewport.height+=p,d(l.elements.viewport,{height:l.options.viewport.height+"px"})):"h"===t&&f>=50&&f<=n&&(d(h,{width:f+"px"}),l.options.boundary.width+=c,d(l.elements.boundary,{width:l.options.boundary.width+"px"}),l.options.viewport.width+=c,d(l.elements.viewport,{width:l.options.viewport.width+"px"})),k.call(l),H.call(l),M.call(l),W.call(l),i=s,e=a}function f(){u=!1,window.removeEventListener("mousemove",p),window.removeEventListener("touchmove",p),window.removeEventListener("mouseup",f),window.removeEventListener("touchend",f),document.body.style[r]=""}m(h,"cr-resizer"),d(h,{width:this.options.viewport.width+"px",height:this.options.viewport.height+"px"}),this.options.resizeControls.height&&(m(a=document.createElement("div"),"cr-resizer-vertical"),h.appendChild(a)),this.options.resizeControls.width&&(m(s=document.createElement("div"),"cr-resizer-horisontal"),h.appendChild(s)),a&&(a.addEventListener("mousedown",c),a.addEventListener("touchstart",c)),s&&(s.addEventListener("mousedown",c),s.addEventListener("touchstart",c)),this.elements.boundary.appendChild(h)}function R(t){if(this.options.enableZoom){var e=this.elements.zoomer,i=K(t,4);e.value=Math.max(parseFloat(e.min),Math.min(parseFloat(e.max),i)).toString()}}function B(){var t=this,e=t.elements.zoomerWrap=document.createElement("div"),i=t.elements.zoomer=document.createElement("input");function n(){Z.call(t,{value:parseFloat(i.value),origin:new b(t.elements.preview),viewportRect:t.elements.viewport.getBoundingClientRect(),transform:y.parse(t.elements.preview)})}function o(e){var i,o;if("ctrl"===t.options.mouseWheelZoom&&!0!==e.ctrlKey)return 0;i=e.wheelDelta?e.wheelDelta/1200:e.deltaY?e.deltaY/1060:e.detail?-(e.detail/60):0,o=t._currentZoom+i*t._currentZoom,e.preventDefault(),R.call(t,o),n.call(t)}m(e,"cr-slider-wrap"),m(i,"cr-slider"),i.type="range",i.step="0.0001",i.value="1",i.style.display=t.options.showZoomer?"":"none",i.setAttribute("aria-label","zoom"),t.element.appendChild(e),e.appendChild(i),t._currentZoom=1,t.elements.zoomer.addEventListener("input",n),t.elements.zoomer.addEventListener("change",n),t.options.mouseWheelZoom&&(t.elements.boundary.addEventListener("mousewheel",o),t.elements.boundary.addEventListener("DOMMouseScroll",o))}function Z(t){var e=this,i=t?t.transform:y.parse(e.elements.preview),r=t?t.viewportRect:e.elements.viewport.getBoundingClientRect(),a=t?t.origin:new b(e.elements.preview);function s(){var t={};t[o]=i.toString(),t[n]=a.toString(),d(e.elements.preview,t)}if(e._currentZoom=t?t.value:e._currentZoom,i.scale=e._currentZoom,e.elements.zoomer.setAttribute("aria-valuenow",e._currentZoom),s(),e.options.enforceBoundary){var l=I.call(e,r),h=l.translate,u=l.origin;i.x>=h.maxX&&(a.x=u.minX,i.x=h.maxX),i.x<=h.minX&&(a.x=u.maxX,i.x=h.minX),i.y>=h.maxY&&(a.y=u.minY,i.y=h.maxY),i.y<=h.minY&&(a.y=u.maxY,i.y=h.minY)}s(),F.call(e),W.call(e)}function I(t){var e=this._currentZoom,i=t.width,n=t.height,o=this.elements.boundary.clientWidth/2,r=this.elements.boundary.clientHeight/2,a=this.elements.preview.getBoundingClientRect(),s=a.width,l=a.height,h=i/2,u=n/2,c=-((h/e-o)*1),p=-((u/e-r)*1),d=1/e*h,m=1/e*u;return{translate:{maxX:c,minX:c-(1/e*s-1/e*i),maxY:p,minY:p-(1/e*l-1/e*n)},origin:{maxX:1/e*s-d,minX:d,maxY:1/e*l-m,minY:m}}}function M(t){var e=this._currentZoom,i=this.elements.preview.getBoundingClientRect(),r=this.elements.viewport.getBoundingClientRect(),a=y.parse(this.elements.preview.style[o]),s=new b(this.elements.preview),l=r.top-i.top+r.height/2,h=r.left-i.left+r.width/2,u={},c={};if(t){var p=s.x,m=s.y,f=a.x,v=a.y;u.y=p,u.x=m,a.y=f,a.x=v}else u.y=l/e,u.x=h/e,c.y=(u.y-s.y)*(1-e),c.x=(u.x-s.x)*(1-e),a.x-=c.x,a.y-=c.y;var g={};g[n]=u.x+"px "+u.y+"px",g[o]=a.toString(),d(this.elements.preview,g)}function z(){var t,e,i,n,a,s=this,l=!1;function h(t,e){var i=s.elements.preview.getBoundingClientRect(),o=a.y+e,r=a.x+t;s.options.enforceBoundary?(n.top>i.top+e&&n.bottom<i.bottom+e&&(a.y=o),n.left>i.left+t&&n.right<i.right+t&&(a.x=r)):(a.y=o,a.x=r)}function u(t){s.elements.preview.setAttribute("aria-grabbed",t),s.elements.boundary.setAttribute("aria-dropeffect",t?"move":"none")}
1function c(i){if((void 0===i.button||0===i.button)&&(i.preventDefault(),!l)){if(l=!0,t=i.pageX,e=i.pageY,i.touches){var o=i.touches[0];t=o.pageX,e=o.pageY}u(l),a=y.parse(s.elements.preview),window.addEventListener("mousemove",m),window.addEventListener("touchmove",m),window.addEventListener("mouseup",f),window.addEventListener("touchend",f),document.body.style[r]="none",n=s.elements.viewport.getBoundingClientRect()}}function m(n){n.preventDefault();var r=n.pageX,l=n.pageY;if(n.touches){var u=n.touches[0];r=u.pageX,l=u.pageY}var c=r-t,m=l-e,f={};if("touchmove"===n.type&&n.touches.length>1){var v=n.touches[0],g=n.touches[1],w=Math.sqrt((v.pageX-g.pageX)*(v.pageX-g.pageX)+(v.pageY-g.pageY)*(v.pageY-g.pageY));i||(i=w/s._currentZoom);var y=w/i;R.call(s,y),p(s.elements.zoomer);return}h(c,m),f[o]=a.toString(),d(s.elements.preview,f),k.call(s),e=l,t=r}function f(){u(l=!1),window.removeEventListener("mousemove",m),window.removeEventListener("touchmove",m),window.removeEventListener("mouseup",f),window.removeEventListener("touchend",f),document.body.style[r]="",M.call(s),W.call(s),i=0}s.elements.overlay.addEventListener("mousedown",c),s.elements.viewport.addEventListener("keydown",function(t){var e;if(t.shiftKey&&(38===t.keyCode||40===t.keyCode))e=38===t.keyCode?parseFloat(s.elements.zoomer.value)+parseFloat(s.elements.zoomer.step):parseFloat(s.elements.zoomer.value)-parseFloat(s.elements.zoomer.step),s.setZoom(e);else if(s.options.enableKeyMovement&&t.keyCode>=37&&t.keyCode<=40){t.preventDefault();var l,u,c,p=function(t){switch(t){case 37:return[1,0];case 38:return[0,1];case 39:return[-1,0];case 40:return[0,-1]}}(t.keyCode);a=y.parse(s.elements.preview),document.body.style[r]="none",n=s.elements.viewport.getBoundingClientRect(),l=p[0],u=p[1],c={},h(l,u),c[o]=a.toString(),d(s.elements.preview,c),k.call(s),document.body.style[r]="",M.call(s),W.call(s),i=0}}),s.elements.overlay.addEventListener("touchstart",c)}function k(){if(this.elements){var t=this.elements.boundary.getBoundingClientRect(),e=this.elements.preview.getBoundingClientRect();d(this.elements.overlay,{width:e.width+"px",height:e.height+"px",top:e.top-t.top+"px",left:e.left-t.left+"px"})}}b.prototype.toString=function(){return this.x+"px "+this.y+"px"};var F=function(){var t=this,n=arguments,o=e&&!i;clearTimeout(i),i=setTimeout(function(){i=null,e||k.apply(t,n)},500),o&&k.apply(t,n)};function W(){var t,e=this.get();X.call(this)&&(this.options.update.call(this,e),this.$&&"undefined"==typeof Prototype?this.$(this.element).trigger("update.croppie",e):(window.CustomEvent?t=new CustomEvent("update",{detail:e}):(t=document.createEvent("CustomEvent")).initCustomEvent("update",!0,!0,e),this.element.dispatchEvent(t)))}function X(){return this.elements.preview.offsetHeight>0&&this.elements.preview.offsetWidth>0}function Y(){var t,e={},i=this.elements.preview,r=new y(0,0,1),a=new b;X.call(this)&&!this.data.bound&&(this.data.bound=!0,e[o]=r.toString(),e[n]=a.toString(),e.opacity=1,d(i,e),t=this.elements.preview.getBoundingClientRect(),this._originalImageWidth=t.width,this._originalImageHeight=t.height,this.data.orientation=_.call(this)?x(this.elements.img):this.data.orientation,this.options.enableZoom?H.call(this,!0):this._currentZoom=1,r.scale=this._currentZoom,e[o]=r.toString(),d(i,e),this.data.points.length?O.call(this,this.data.points):A.call(this),M.call(this),k.call(this))}function H(t){var e,i,n=Math.max(this.options.minZoom,0)||0,o=this.options.maxZoom||1.5,r=this.elements.zoomer,a=parseFloat(r.value),s=this.elements.boundary.getBoundingClientRect(),l=g(this.elements.img,this.data.orientation),h=this.elements.viewport.getBoundingClientRect();this.options.enforceBoundary&&(n=Math.max(h.width/l.width,h.height/l.height)),n>=o&&(o=n+1),r.min=K(n,4),r.max=K(o,4),!t&&(a<r.min||a>r.max)?R.call(this,a<r.min?r.min:r.max):t&&(i=Math.max(s.width/l.width,s.height/l.height),e=null!==this.data.boundZoom?this.data.boundZoom:i,R.call(this,e)),p(r)}function O(t){if(4!==t.length)throw"Croppie - Invalid number of points supplied: "+t;var e=t[2]-t[0],i=this.elements.viewport.getBoundingClientRect(),r=this.elements.boundary.getBoundingClientRect(),a={left:i.left-r.left,top:i.top-r.top},s=i.width/e,l=t[1],h=t[0],u=-1*t[1]+a.top,c=-1*t[0]+a.left,p={};p[n]=h+"px "+l+"px",p[o]=new y(c,u,s).toString(),d(this.elements.preview,p),R.call(this,s),this._currentZoom=s}function A(){var t=this.elements.preview.getBoundingClientRect(),e=this.elements.viewport.getBoundingClientRect(),i=this.elements.boundary.getBoundingClientRect(),n=e.left-i.left,r=e.top-i.top,a=new y(n-(t.width-e.width)/2,r-(t.height-e.height)/2,this._currentZoom);d(this.elements.preview,o,a.toString())}function N(t){var e=this.elements.canvas,i=this.elements.img;e.getContext("2d").clearRect(0,0,e.width,e.height),e.width=i.width,e.height=i.height;var n=this.options.enableOrientation&&t||x(i);C(e,i,n)}function S(t){var e=t.points,i=v(e[0]),n=v(e[1]),o=v(e[2]),r=v(e[3]),a=o-i,s=r-n,l=t.circle,h=document.createElement("canvas"),u=h.getContext("2d"),c=t.outputWidth||a,p=t.outputHeight||s;h.width=c,h.height=p,t.backgroundColor&&(u.fillStyle=t.backgroundColor,u.fillRect(0,0,c,p));var d=i,m=n,f=a,g=s,w=0,y=0,b=c,x=p;
1return i<0&&(d=0,w=Math.abs(i)/a*c),f+d>this._originalImageWidth&&(b=(f=this._originalImageWidth-d)/a*c),n<0&&(m=0,y=Math.abs(n)/s*p),g+m>this._originalImageHeight&&(x=(g=this._originalImageHeight-m)/s*p),u.drawImage(this.elements.preview,d,m,f,g,w,y,b,x),l&&(u.fillStyle="#fff",u.globalCompositeOperation="destination-in",u.beginPath(),u.arc(h.width/2,h.height/2,h.width/2,0,2*Math.PI,!0),u.closePath(),u.fill()),h}function j(t){var e=t.points,i=document.createElement("div"),n=document.createElement("img"),o=e[2]-e[0],r=e[3]-e[1];return m(i,"croppie-result"),i.appendChild(n),d(n,{left:-1*e[0]+"px",top:-1*e[1]+"px"}),n.src=t.url,d(i,{width:o+"px",height:r+"px"}),i}function P(t){return S.call(this,t).toDataURL(t.format,t.quality)}function T(t){var e=this;return new Promise(function(i){S.call(e,t).toBlob(function(t){i(t)},t.format,t.quality)})}function D(t){this.elements.img.parentNode&&(Array.prototype.forEach.call(this.elements.img.classList,function(e){t.classList.add(e)}),this.elements.img.parentNode.replaceChild(t,this.elements.img),this.elements.preview=t),this.elements.img=t}function q(t,e){var i,n=this,o=[],r=null,a=_.call(n);if("string"==typeof t)i=t,t={};else if(Array.isArray(t))o=t.slice();else{if(void 0===t&&n.data.url)return Y.call(n),W.call(n),null;i=t.url,o=t.points||[],r=void 0===t.zoom?null:t.zoom}return n.data.bound=!1,n.data.url=i||n.data.url,n.data.boundZoom=r,(function(t,e){if(!t)throw"Source image missing";var i=new Image;return i.style.opacity="0",new Promise(function(n,o){function r(){i.style.opacity="1",setTimeout(function(){n(i)},1)}i.removeAttribute("crossOrigin"),t.match(/^https?:\/\/|^\/\//)&&i.setAttribute("crossOrigin","anonymous"),i.onload=function(){e?EXIF.getData(i,function(){r()}):r()},i.onerror=function(t){i.style.opacity=1,setTimeout(function(){o(t)},1)},i.src=t})})(i,a).then(function(i){if(D.call(n,i),o.length)n.options.relative&&(o=[o[0]*i.naturalWidth/100,o[1]*i.naturalHeight/100,o[2]*i.naturalWidth/100,o[3]*i.naturalHeight/100]);else{var r,a,s=g(i),l=n.elements.viewport.getBoundingClientRect(),h=l.width/l.height;s.width/s.height>h?r=(a=s.height)*h:(r=s.width,a=s.height/h);var u=(s.width-r)/2,c=(s.height-a)/2,p=u+r,d=c+a;n.data.points=[u,c,p,d]}n.data.orientation=t.orientation||1,n.data.points=o.map(function(t){return parseFloat(t)}),n.options.useCanvas&&N.call(n,n.data.orientation),Y.call(n),W.call(n),e&&e()})}function K(t,e){return parseFloat(t).toFixed(e||0)}function U(){var t=this.elements.preview.getBoundingClientRect(),e=this.elements.viewport.getBoundingClientRect(),i=e.left-t.left,n=e.top-t.top,o=(e.width-this.elements.viewport.offsetWidth)/2,r=(e.height-this.elements.viewport.offsetHeight)/2,a=i+this.elements.viewport.offsetWidth+o,s=n+this.elements.viewport.offsetHeight+r,l=this._currentZoom;(l===1/0||isNaN(l))&&(l=1);var h=this.options.enforceBoundary?0:Number.NEGATIVE_INFINITY;return i=Math.max(h,i/l),n=Math.max(h,n/l),a=Math.max(h,a/l),s=Math.max(h,s/l),{points:[K(i),K(n),K(a),K(s)],zoom:l,orientation:this.data.orientation}}var $={type:"canvas",format:"png",quality:1},Q=["jpeg","webp","png"];function G(t){var e=this,i=U.call(e),n=c(c({},$),c({},t)),o="string"==typeof t?t:n.type||"base64",r=n.size||"viewport",a=n.format,s=n.quality,l=n.backgroundColor,h="boolean"==typeof n.circle?n.circle:"circle"===e.options.viewport.type,u=e.elements.viewport.getBoundingClientRect(),p=u.width/u.height;return"viewport"===r?(i.outputWidth=u.width,i.outputHeight=u.height):"object"==typeof r&&(r.width&&r.height?(i.outputWidth=r.width,i.outputHeight=r.height):r.width?(i.outputWidth=r.width,i.outputHeight=r.width/p):r.height&&(i.outputWidth=r.height*p,i.outputHeight=r.height)),Q.indexOf(a)>-1&&(i.format="image/"+a,i.quality=s),i.circle=h,i.url=e.data.url,i.backgroundColor=l,new Promise(function(t){switch(o.toLowerCase()){case"rawcanvas":t(S.call(e,i));break;case"canvas":case"base64":t(P.call(e,i));break;case"blob":T.call(e,i).then(t);break;default:t(j.call(e,i))}})}function V(){Y.call(this)}function J(t){if(!this.options.useCanvas||!this.options.enableOrientation)throw"Croppie: Cannot rotate without enableOrientation && EXIF.js included";var e,i,n,o,r=this.elements.canvas;if(this.data.orientation=(e=this.data.orientation,n=(i=l.indexOf(e)>-1?l:h).indexOf(e),o=t/90%i.length,i[(i.length+n+o%i.length)%i.length]),C(r,this.elements.img,this.data.orientation),M.call(this,!0),H.call(this),Math.abs(t)/90%2==1){var a=this._originalImageHeight,s=this._originalImageWidth;this._originalImageWidth=a,this._originalImageHeight=s}}function tt(){var t,e;this.element.removeChild(this.elements.boundary),t=this.element,e="croppie-container",t.classList?t.classList.remove(e):t.className=t.className.replace(e,""),this.options.enableZoom&&this.element.removeChild(this.elements.zoomerWrap),delete this.elements}if("undefined"!=typeof window&&window.jQuery){var te=window.jQuery;te.fn.croppie=function(t){if("string"!=typeof t)return this.each(function(){var e=new ti(this,t);e.$=te,te(this).data("croppie",e)});
1var e=Array.prototype.slice.call(arguments,1),i=te(this).data("croppie");return"get"===t?i.get():"result"===t?i.result.apply(i,e):"bind"===t?i.bind.apply(i,e):this.each(function(){var i=te(this).data("croppie");if(i){var n=i[t];if(te.isFunction(n))n.apply(i,e),"destroy"===t&&te(this).removeData("croppie");else throw"Croppie "+t+" method not found"}})}}function ti(t,e){if(t.className.indexOf("croppie-container")>-1)throw Error("Croppie: Can't initialize croppie more than once");if(this.element=t,this.options=c(c({},ti.defaults),e),"img"===this.element.tagName.toLowerCase()){var i=this.element;m(i,"cr-original-image"),f(i,{"aria-hidden":"true",alt:""});var n=document.createElement("div");this.element.parentNode.appendChild(n),n.appendChild(i),this.element=n,this.options.url=this.options.url||i.src}if(E.call(this),this.options.url){var o={url:this.options.url,points:this.options.points};delete this.options.url,delete this.options.points,q.call(this,o)}}return ti.defaults={viewport:{width:100,height:100,type:"square"},boundary:{},orientationControls:{enabled:!0,leftClass:"",rightClass:""},resizeControls:{width:!0,height:!0},customClass:"",showZoomer:!0,enableZoom:!0,enableResize:!1,mouseWheelZoom:!0,enableExif:!1,enforceBoundary:!0,enableOrientation:!1,enableKeyMovement:!0,update:function(){}},ti.globals={translate:"translate3d"},c(ti.prototype,{bind:function(t,e){return q.call(this,t,e)},get:function(){var t=U.call(this),e=t.points;return this.options.relative&&(e[0]/=this.elements.img.naturalWidth/100,e[1]/=this.elements.img.naturalHeight/100,e[2]/=this.elements.img.naturalWidth/100,e[3]/=this.elements.img.naturalHeight/100),t},result:function(t){return G.call(this,t)},refresh:function(){return V.call(this)},setZoom:function(t){R.call(this,t),p(this.elements.zoomer)},rotate:function(t){J.call(this,t)},destroy:function(){return tt.call(this)}}),ti})?n.call(e,i,e,t):n)&&(t.exports=o)},11325:function(){}}]);
2//# sourceMappingURL=/_next/static/chunks/8119-b37ef49953978709.js.map

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.