PageSourceSearch

https://civilguruji.com/_next/static/chunks/264-e077a1b72d6a9ca3.js

js civilguruji.com collected 2026-10-07 14:51:46 UTC 41,285 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[264],{33129:function(t){t.exports=function(){"use strict";function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,a=Array(e);i<e;i++)a[i]=t[i];return a}function e(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,o(a.key),a)}}function i(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,a)}return i}function a(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?i(Object(a),!0).forEach(function(e){var i,n,r;i=t,n=e,r=a[e],(n=o(n))in i?Object.defineProperty(i,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[n]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):i(Object(a)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))})}return t}function n(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(e,i){if(e){if("string"==typeof e)return t(e,i);var a=({}).toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?t(e,i):void 0}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var a=i.call(t,e||"default");if("object"!=typeof a)return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var h="undefined"!=typeof window&&void 0!==window.document,s=h?window:{},c=!!h&&!!s.document.documentElement&&"ontouchstart"in s.document.documentElement,l=!!h&&"PointerEvent"in s,d="cropper",p="crop",u="move",m="zoom",g="".concat(d,"-crop"),f="".concat(d,"-disabled"),v="".concat(d,"-hidden"),w="".concat(d,"-hide"),b="".concat(d,"-invisible"),y="".concat(d,"-modal"),x="".concat(d,"-move"),M="".concat(d,"Action"),C="".concat(d,"Preview"),D="crop",O="move",B="none",k="crop",T="cropend",E="cropmove",W="cropstart",N="dblclick",z=l?"pointerdown":c?"touchstart":"mousedown",H=l?"pointermove":c?"touchmove":"mousemove",L=l?"pointerup pointercancel":c?"touchend touchcancel":"mouseup",R="ready",Y="resize",X="wheel",j="zoom",S="image/jpeg",A=/^(e|w|s|n|se|sw|ne|nw|all|crop|move|zoom)$/,P=/^data:/,I=/^data:image\/jpeg;base64,/,U=/\s+/,_=/^(img|canvas)$/i,q={viewMode:0,dragMode:D,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},$=Number.isNaN||s.isNaN,Z=Number.isFinite||s.isFinite;function Q(t){return"number"==typeof t&&!$(t)}var K=function(t){return t>0&&t<1/0};function F(t){return void 0===t}function G(t){return"object"===r(t)&&null!==t}var V=Object.prototype.hasOwnProperty;function J(t){if(!G(t))return!1;try{var e=t.constructor,i=e.prototype;return e&&i&&V.call(i,"isPrototypeOf")}catch(t){return!1}}function tt(t){return"function"==typeof t}var te=Array.prototype.slice;function ti(t){return Array.from?Array.from(t):te.call(t)}function ta(t,e){return t&&tt(e)&&(Array.isArray(t)||Q(t.length)?ti(t).forEach(function(i,a){e.call(t,i,a,t)}):G(t)&&Object.keys(t).forEach(function(i){e.call(t,t[i],i,t)})),t}var tn=Object.assign||function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),a=1;a<e;a++)i[a-1]=arguments[a];return G(t)&&i.length>
10&&i.forEach(function(e){G(e)&&Object.keys(e).forEach(function(i){t[i]=e[i]})}),t},to=/\.\d*(?:0|9){12}\d*$/;function tr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return to.test(t)?Math.round(t*e)/e:t}var th=/^width|height|left|top|marginLeft|marginTop$/;function ts(t,e){var i=t.style;ta(e,function(t,e){th.test(e)&&Q(t)&&(t="".concat(t,"px")),i[e]=t})}function tc(t,e){if(e){if(Q(t.length)){ta(t,function(t){tc(t,e)});return}if(t.classList){t.classList.add(e);return}var i=t.className.trim();i?0>i.indexOf(e)&&(t.className="".concat(i," ").concat(e)):t.className=e}}function tl(t,e){if(e){if(Q(t.length)){ta(t,function(t){tl(t,e)});return}if(t.classList){t.classList.remove(e);return}t.className.indexOf(e)>=0&&(t.className=t.className.split(U).filter(function(t){return t&&t!==e}).join(" "))}}function td(t,e,i){if(e){if(Q(t.length)){ta(t,function(t){td(t,e,i)});return}i?tc(t,e):tl(t,e)}}var tp=/([a-z\d])([A-Z])/g;function tu(t){return"string"==typeof t?t.replace(tp,"$1-$2").toLowerCase():""}function tm(t,e){return G(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(tu(e)))}function tg(t,e,i){G(i)?t[e]=i:t.dataset?t.dataset[e]=i:t.setAttribute("data-".concat(tu(e)),i)}var tf=function(){var t=!1;if(h){var e=!1,i=function(){},a=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(t){e=t}});s.addEventListener("test",i,a),s.removeEventListener("test",i,a)}return t}();function tv(t,e,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t&&e&&tt(t.removeEventListener)){var n=i;e.trim().split(U).forEach(function(e){if(!tf){var o=t.__cropperListeners__||{};o[e]&&o[e][i]&&(n=o[e][i],delete o[e][i],0===Object.keys(o[e]).length&&delete o[e],0===Object.keys(o).length&&delete t.__cropperListeners__)}t.removeEventListener(e,n,a)})}}function tw(t,e,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t&&e&&tt(t.addEventListener)&&tt(i)){var n=i;e.trim().split(U).forEach(function(e){if(a.once&&!tf){var o=t.__cropperListeners__||{};n=function(){o[e]&&o[e][i]&&delete o[e][i],t.removeEventListener(e,n,a);for(var r=arguments.length,h=Array(r),s=0;s<r;s++)h[s]=arguments[s];i.apply(t,h)},o[e]||(o[e]={}),o[e][i]&&t.removeEventListener(e,o[e][i],a),o[e][i]=n,t.__cropperListeners__=o}t.addEventListener(e,n,a)})}}function tb(t,e,i){var a;if(!t||!e||!tt(t.dispatchEvent))return!1;if(tt(Event)&&tt(CustomEvent))a=new CustomEvent(e,{detail:i,bubbles:!0,cancelable:!0});else{if(!(G(document)&&tt(document.createEvent)))return!1;(a=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,i)}return t.dispatchEvent(a)}function ty(t){if(!t||!tt(t.getBoundingClientRect))return{left:0,top:0};var e=t.getBoundingClientRect(),i=(document||{}).documentElement,a=void 0===i?{}:i,n=s.pageXOffset||0,o=s.pageYOffset||0;return{left:e.left+(n-(a.clientLeft||0)),top:e.top+(o-(a.clientTop||0))}}var tx=s.location,tM=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function tC(t){var e=t.match(tM);return null!==e&&(e[1]!==tx.protocol||e[2]!==tx.hostname||e[3]!==tx.port)}function tD(t){var e=t.indexOf("#"),i=e>=0?t.slice(e):"",a=e>=0?t.slice(0,e):t,n="timestamp=".concat(new Date().getTime());return"".concat(a).concat(-1===a.indexOf("?")?"?":"&").concat(n).concat(i)}function tO(t){var e=t.rotate,i=t.scaleX,a=t.scaleY,n=t.translateX,o=t.translateY,r=[];Q(n)&&0!==n&&r.push("translateX(".concat(n,"px)")),Q(o)&&0!==o&&r.push("translateY(".concat(o,"px)")),Q(e)&&0!==e&&r.push("rotate(".concat(e,"deg)")),Q(i)&&1!==i&&r.push("scaleX(".concat(i,")")),Q(a)&&1!==a&&r.push("scaleY(".concat(a,")"));var h=r.length?r.join(" "):"none";return{WebkitTransform:h,msTransform:h,transform:h}}function tB(t,e){var i=t.pageX,n=t.pageY,o={endX:i,endY:n};return e?o:a({startX:i,startY:n},o)}function tk(t){var e=t.aspectRatio,i=t.height,a=t.width,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"contain",o=K(a),r=K(i);if(o&&r){var h=i*e;"contain"===n&&h>a||"cover"===n&&h<a?i=a/e:a=i*e}else o?i=a/e:r&&(a=i*e);return{width:a,height:i}}var tT=String.fromCharCode,tE=/^data:.*,/,tW=s.Cropper,tN=function(){var t,i;function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,a),!t||!_.test(t.tagName))throw Error("The first argument is required and must be an <img> or <canvas> element.");this.element=t,this.options=tn({},q,J(e)&&e),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return t=[{key:"init",value:function(){var t,e=this.element,i=e.tagName.toLowerCase();if(!e[d]){if(e[d]=this,"img"===i){if(this.isImg=!0,t=e.getAttribute("src")||"",this.originalUrl=t,!t)return;t=e.src}else"canvas"===i&&window.HTMLCanvasElement&&(t=e.toDataURL());this.load(t)}}},{key:"load",value:function(t){var e,i,a,n=this;if(t){this.url=t,this.imageData={};var o=this.element,r=this.options;if(r.rotatable||r.scalable||(r.checkOrientation=!1),!r.checkOrientation||!window.ArrayBuffer){this.clone();return}if(P.test(t)){I.test(t)?this.read((e=atob(t.replace(tE,"")),i=new ArrayBuffer(e.length),ta(a=new Uint8Array(i),function(t,i){a[i]=e.charCodeAt(i)}),i)):this.clone();return}var h=new XMLHttpRequest,s=this.clone.bind(this);this.reloading=!0,this.xhr=h,h.onabort=s,h.onerror=s,h.ontimeout=s,h.onprogress=function(){h.getResponseHeader("content-type")!==S&&h.abort()},h.onload=function(){n.read(h.response)},h.onloadend=function(){n.reloading=!1,n.xhr=null},r.checkCrossOrigin&&tC(t)&&o.crossOrigin&&(t=tD(t)),h.open("GET",t,!0),h.responseType="arraybuffer",h.withCredentials="use-credentials"===o.crossOrigin,h.send()}}},{key:"read",value:function(t){var e=this.options,i=this.imageData,a=function(t){var e=new DataView(t);try{if(255===e.getUint8(0)&&216===e.getUint8(1))for(var i=e.byteLength,a=2;a+1<i;){if(255===e.getUint8(a)&&225===e.getUint8(a+1)){l=a;break}a+=1}if(l){var n=l+4,o=l+10;
vendor: 14,920 bytes, line 1
1if("Exif"===function(t,e,i){var a="";i+=e;for(var n=e;n<i;n+=1)a+=tT(t.getUint8(n));return a}(e,n,4)){var r=e.getUint16(o);if(((c=18761===r)||19789===r)&&42===e.getUint16(o+2,c)){var h=e.getUint32(o+4,c);h>=8&&(d=o+h)}}}if(d){var s,c,l,d,p,u,m=e.getUint16(d,c);for(u=0;u<m;u+=1)if(p=d+12*u+2,274===e.getUint16(p,c)){p+=8,s=e.getUint16(p,c),e.setUint16(p,1,c);break}}}catch(t){s=1}return s}(t),n=0,o=1,r=1;if(a>1){this.url=function(t,e){for(var i=[],a=new Uint8Array(t);a.length>0;)i.push(tT.apply(null,ti(a.subarray(0,8192)))),a=a.subarray(8192);return"data:".concat(e,";base64,").concat(btoa(i.join("")))}(t,S);var h=function(t){var e=0,i=1,a=1;switch(t){case 2:i=-1;break;case 3:e=-180;break;case 4:a=-1;break;case 5:e=90,a=-1;break;case 6:e=90;break;case 7:e=90,i=-1;break;case 8:e=-90}return{rotate:e,scaleX:i,scaleY:a}}(a);n=h.rotate,o=h.scaleX,r=h.scaleY}e.rotatable&&(i.rotate=n),e.scalable&&(i.scaleX=o,i.scaleY=r),this.clone()}},{key:"clone",value:function(){var t=this.element,e=this.url,i=t.crossOrigin,a=e;this.options.checkCrossOrigin&&tC(e)&&(i||(i="anonymous"),a=tD(e)),this.crossOrigin=i,this.crossOriginUrl=a;var n=document.createElement("img");i&&(n.crossOrigin=i),n.src=a||e,n.alt=t.alt||"The image to crop",this.image=n,n.onload=this.start.bind(this),n.onerror=this.stop.bind(this),tc(n,w),t.parentNode.insertBefore(n,t.nextSibling)}},{key:"start",value:function(){var t=this,e=this.image;e.onload=null,e.onerror=null,this.sizing=!0;var i=s.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(s.navigator.userAgent),a=function(e,i){tn(t.imageData,{naturalWidth:e,naturalHeight:i,aspectRatio:e/i}),t.initialImageData=tn({},t.imageData),t.sizing=!1,t.sized=!0,t.build()};if(e.naturalWidth&&!i){a(e.naturalWidth,e.naturalHeight);return}var n=document.createElement("img"),o=document.body||document.documentElement;this.sizingImage=n,n.onload=function(){a(n.width,n.height),i||o.removeChild(n)},n.src=e.src,i||(n.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",o.appendChild(n))}},{key:"stop",value:function(){var t=this.image;t.onload=null,t.onerror=null,t.parentNode.removeChild(t),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var t=this.element,e=this.options,i=this.image,a=t.parentNode,n=document.createElement("div");n.innerHTML='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>';var o=n.querySelector(".".concat(d,"-container")),r=o.querySelector(".".concat(d,"-canvas")),h=o.querySelector(".".concat(d,"-drag-box")),s=o.querySelector(".".concat(d,"-crop-box")),c=s.querySelector(".".concat(d,"-face"));this.container=a,this.cropper=o,this.canvas=r,this.dragBox=h,this.cropBox=s,this.viewBox=o.querySelector(".".concat(d,"-view-box")),this.face=c,r.appendChild(i),tc(t,v),a.insertBefore(o,t.nextSibling),tl(i,w),this.initPreview(),this.bind(),e.initialAspectRatio=Math.max(0,e.initialAspectRatio)||NaN,e.aspectRatio=Math.max(0,e.aspectRatio)||NaN,e.viewMode=Math.max(0,Math.min(3,Math.round(e.viewMode)))||0,tc(s,v),e.guides||tc(s.getElementsByClassName("".concat(d,"-dashed")),v),e.center||tc(s.getElementsByClassName("".concat(d,"-center")),v),e.background&&tc(o,"".concat(d,"-bg")),e.highlight||tc(c,b),e.cropBoxMovable&&(tc(c,x),tg(c,M,"all")),e.cropBoxResizable||(tc(s.getElementsByClassName("".concat(d,"-line")),v),tc(s.getElementsByClassName("".concat(d,"-point")),v)),this.render(),this.ready=!0,this.setDragMode(e.dragMode),e.autoCrop&&this.crop(),this.setData(e.data),tt(e.ready)&&tw(t,R,e.ready,{once:!0}),tb(t,R)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var t=this.cropper.parentNode;t&&t.removeChild(this.cropper),tl(this.element,v)}}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],i=[{key:"noConflict",value:function(){return window.Cropper=tW,a}},{key:"setDefaults",value:function(t){tn(q,J(t)&&t)}}],t&&e(a.prototype,t),i&&e(a,i),Object.defineProperty(a,"prototype",{writable:!1}),a}();return tn(tN.prototype,{render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var t=this.element,e=this.options,i=this.container,a=this.cropper,n=Number(e.minContainerWidth),o=Number(e.minContainerHeight);tc(a,v),tl(t,v);var r={width:Math.max(i.offsetWidth,n>=0?n:200),height:Math.max(i.offsetHeight,o>=0?o:100)};this.containerData=r,ts(a,{width:r.width,height:r.height}),tc(t,v),tl(a,v)},initCanvas:function(){var t=this.containerData,e=this.imageData,i=this.options.viewMode,a=Math.abs(e.rotate)%180==90,n=a?e.naturalHeight:e.naturalWidth,o=a?e.naturalWidth:e.naturalHeight,r=n/o,h=t.width,s=t.height;t.height*r>t.width?3===i?h=t.height*r:s=t.width/r:3===i?s=t.width/r:h=t.height*r;var c={aspectRatio:r,naturalWidth:n,naturalHeight:o,width:h,height:s};this.canvasData=c,this.limited=1===i||2===i,this.limitCanvas(!0,!0),c.width=Math.min(Math.max(c.width,c.minWidth),c.maxWidth),c.height=Math.min(Math.max(c.height,c.minHeight),c.maxHeight),c.left=(t.width-c.width)/2,c.top=(t.height-c.height)/2,c.oldLeft=c.left,c.oldTop=c.top,this.initialCanvasData=tn({},c)},limitCanvas:function(t,e){var i=this.options,a=this.containerData,n=this.canvasData,o=this.cropBoxData,r=i.viewMode,h=n.aspectRatio,s=this.cropped&&o;if(t){var c=Number(i.minCanvasWidth)||0,l=Number(i.minCanvasHeight)||0;r>1?(c=Math.max(c,a.width),l=Math.max(l,a.height),3===r&&(l*h>c?c=l*h:l=c/h)):r>0&&(c?c=Math.max(c,s?o.width:0):l?l=Math.max(l,s?o.height:0):s&&(c=o.width,(l=o.height)*h>c?c=l*h:l=c/h));var d=tk({aspectRatio:h,width:c,height:l});c=d.width,l=d.height,n.minWidth=c,n.minHeight=l,n.maxWidth=1/0,n.maxHeight=1/0}if(e){if(r>(s?0:1)){var p=a.width-n.width,u=a.height-n.height;n.minLeft=Math.min(0,p),n.minTop=Math.min(0,u),n.maxLeft=Math.max(0,p),n.maxTop=Math.max(0,u),s&&this.limited&&(n.minLeft=Math.min(o.left,o.left+(o.width-n.width)),n.minTop=Math.min(o.top,o.top+(o.height-n.height)),n.maxLeft=o.left,n.maxTop=o.top,2===r&&(n.width>=a.width&&(n.minLeft=Math.min(0,p),n.maxLeft=Math.max(0,p)),n.height>=a.height&&(n.minTop=Math.min(0,u),n.maxTop=Math.max(0,u))))}else n.minLeft=-n.width,n.minTop=-n.height,n.maxLeft=a.width,n.maxTop=a.height}},renderCanvas:function(t,e){var i=this.canvasData,a=this.imageData;if(e){var n=function(t){var e=t.width,i=t.height,a=t.degree;if(90==(a=Math.abs(a)%180))return{width:i,height:e};var n=a%90*Math.PI/180,o=Math.sin(n),r=Math.cos(n),h=e*r+i*o,s=e*o+i*r;return a>90?{width:s,height:h}:{width:h,height:s}}({width:a.naturalWidth*Math.abs(a.scaleX||1),height:a.naturalHeight*Math.abs(a.scaleY||1),degree:a.rotate||0}),o=n.width,r=n.height,h=i.width*(o/i.naturalWidth),s=i.height*(r/i.naturalHeight);i.left-=(h-i.width)/2,i.top-=(s-i.height)/2,i.width=h,i.height=s,i.aspectRatio=o/r,i.naturalWidth=o,i.naturalHeight=r,this.limitCanvas(!0,!1)}(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCanvas(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,ts(this.canvas,tn({width:i.width,height:i.height},tO({translateX:i.left,translateY:i.top}))),this.renderImage(t),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(t){var e=this.canvasData,i=this.imageData,a=i.naturalWidth*(e.width/e.naturalWidth),n=i.naturalHeight*(e.height/e.naturalHeight);tn(i,{width:a,height:n,left:(e.width-a)/2,top:(e.height-n)/2}),ts(this.image,tn({width:i.width,height:i.height},tO(tn({translateX:i.left,translateY:i.top},i)))),t&&this.output()},initCropBox:function(){var t=this.options,e=this.canvasData,i=t.aspectRatio||t.initialAspectRatio,a=Number(t.autoCropArea)||.8,n={width:e.width,height:e.height};i&&(e.height*i>e.width?n.height=n.width/i:n.width=n.height*i),this.cropBoxData=n,this.limitCropBox(!0,!0),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),n.width=Math.max(n.minWidth,n.width*a),n.height=Math.max(n.minHeight,n.height*a),n.left=e.left+(e.width-n.width)/2,n.top=e.top+(e.height-n.height)/2,n.oldLeft=n.left,n.oldTop=n.top,this.initialCropBoxData=tn({},n)},limitCropBox:function(t,e){var i=this.options,a=this.containerData,n=this.canvasData,o=this.cropBoxData,r=this.limited,h=i.aspectRatio;if(t){var s=Number(i.minCropBoxWidth)||0,c=Number(i.minCropBoxHeight)||0,l=r?Math.min(a.width,n.width,n.width+n.left,a.width-n.left):a.width,d=r?Math.min(a.height,n.height,n.height+n.top,a.height-n.top):a.height;s=Math.min(s,a.width),c=Math.min(c,a.height),h&&(s&&c?c*h>s?c=s/h:s=c*h:s?c=s/h:c&&(s=c*h),d*h>l?d=l/h:l=d*h),o.minWidth=Math.min(s,l),o.minHeight=Math.min(c,d),o.maxWidth=l,o.maxHeight=d}e&&(r?(o.minLeft=Math.max(0,n.left),o.minTop=Math.max(0,n.top),o.maxLeft=Math.min(a.width,n.left+n.width)-o.width,o.maxTop=Math.min(a.height,n.top+n.height)-o.height):(o.minLeft=0,o.minTop=0,o.maxLeft=a.width-o.width,o.maxTop=a.height-o.height))},renderCropBox:function(){var t=this.options,e=this.containerData,i=this.cropBoxData;(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCropBox(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,t.movable&&t.cropBoxMovable&&tg(this.face,M,i.width>=e.width&&i.height>=e.height?u:"all"),ts(this.cropBox,tn({width:i.width,height:i.height},tO({translateX:i.left,translateY:i.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),tb(this.element,k,this.getData())}},{initPreview:function(){var t=this.element,e=this.crossOrigin,i=this.options.preview,a=e?this.crossOriginUrl:this.url,n=t.alt||"The image to preview",o=document.createElement("img");if(e&&(o.crossOrigin=e),o.src=a,o.alt=n,this.viewBox.appendChild(o),this.viewBoxImage=o,i){var r=i;"string"==typeof i?r=t.ownerDocument.querySelectorAll(i):i.querySelector&&(r=[i]),this.previews=r,ta(r,function(t){var i=document.createElement("img");tg(t,C,{width:t.offsetWidth,height:t.offsetHeight,html:t.innerHTML}),e&&(i.crossOrigin=e),i.src=a,i.alt=n,i.style.cssText="display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;",t.innerHTML="",t.appendChild(i)})}},resetPreview:function(){ta(this.previews,function(t){var e=tm(t,C);ts(t,{width:e.width,height:e.height}),t.innerHTML=e.html,function(t,e){if(G(t[e]))try{delete t[e]}catch(i){t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch(i){t.dataset[e]=void 0}else t.removeAttribute("data-".concat(tu(e)))}(t,C)})},preview:function(){var t=this.imageData,e=this.canvasData,i=this.cropBoxData,a=i.width,n=i.height,o=t.width,r=t.height,h=i.left-e.left-t.left,s=i.top-e.top-t.top;this.cropped&&!this.disabled&&(ts(this.viewBoxImage,tn({width:o,height:r},tO(tn({translateX:-h,translateY:-s},t)))),ta(this.previews,function(e){var i=tm(e,C),c=i.width,l=i.height,d=c,p=l,u=1;a&&(p=n*(u=c/a)),n&&p>l&&(d=a*(u=l/n),p=l),ts(e,{width:d,height:p}),ts(e.getElementsByTagName("img")[0],tn({width:o*u,height:r*u},tO(tn({translateX:-h*u,translateY:-s*u},t))))}))}},{bind:function(){var t=this.element,e=this.options,i=this.cropper;tt(e.cropstart)&&tw(t,W,e.cropstart),tt(e.cropmove)&&tw(t,E,e.cropmove),tt(e.cropend)&&tw(t,T,e.cropend),tt(e.crop)&&tw(t,k,e.crop),tt(e.zoom)&&tw(t,j,e.zoom),tw(i,z,this.onCropStart=this.cropStart.bind(this)),e.zoomable&&e.zoomOnWheel&&tw(i,X,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&tw(i,N,this.onDblclick=this.dblclick.bind(this)),tw(t.ownerDocument,H,this.onCropMove=this.cropMove.bind(this)),tw(t.ownerDocument,L,this.onCropEnd=this.cropEnd.bind(this)),e.responsive&&tw(window,Y,this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,e=this.options,i=this.cropper;tt(e.cropstart)&&tv(t,W,e.cropstart),tt(e.cropmove)&&tv(t,E,e.cropmove),tt(e.cropend)&&tv(t,T,e.cropend),tt(e.crop)&&tv(t,k,e.crop),tt(e.zoom)&&tv(t,j,e.zoom),tv(i,z,this.onCropStart),e.zoomable&&e.zoomOnWheel&&tv(i,X,this.onWheel,{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&tv(i,N,this.onDblclick),tv(t.ownerDocument,H,this.onCropMove),tv(t.ownerDocument,L,this.onCropEnd),e.responsive&&tv(window,Y,this.onResize)}},{resize:function(){if(!this.disabled){var t,e,i=this.options,a=this.container,n=this.containerData,o=a.offsetWidth/n.width,r=a.offsetHeight/n.height,h=Math.abs(o-1)>Math.abs(r-1)?o:r;1!==h&&(i.restore&&(t=this.getCanvasData(),e=this.getCropBoxData()),this.render(),i.restore&&(this.setCanvasData(ta(t,function(e,i){t[i]=e*h})),this.setCropBoxData(ta(e,function(t,i){e[i]=t*h}))))}},dblclick:function(){var t;this.disabled||this.options.dragMode===B||this.setDragMode(((t=this.dragBox).classList?t.classList.contains(g):t.className.split(U).indexOf(g)>-1)?O:D)},wheel:function(t){var e=this,i=Number(this.options.wheelZoomRatio)||.1,a=1;!this.disabled&&(t.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout(function(){e.wheeling=!1},50),t.deltaY?a=t.deltaY>0?1:-1:t.wheelDelta?a=-t.wheelDelta/120:t.detail&&(a=t.detail>
10?1:-1),this.zoom(-a*i,t)))},cropStart:function(t){var e,i=t.buttons,a=t.button;if(!(this.disabled||("mousedown"===t.type||"pointerdown"===t.type&&"mouse"===t.pointerType)&&(Q(i)&&1!==i||Q(a)&&0!==a||t.ctrlKey))){var n=this.options,o=this.pointers;t.changedTouches?ta(t.changedTouches,function(t){o[t.identifier]=tB(t)}):o[t.pointerId||0]=tB(t),e=Object.keys(o).length>1&&n.zoomable&&n.zoomOnTouch?m:tm(t.target,M),A.test(e)&&!1!==tb(this.element,W,{originalEvent:t,action:e})&&(t.preventDefault(),this.action=e,this.cropping=!1,e===p&&(this.cropping=!0,tc(this.dragBox,y)))}},cropMove:function(t){var e=this.action;if(!this.disabled&&e){var i=this.pointers;t.preventDefault(),!1!==tb(this.element,E,{originalEvent:t,action:e})&&(t.changedTouches?ta(t.changedTouches,function(t){tn(i[t.identifier]||{},tB(t,!0))}):tn(i[t.pointerId||0]||{},tB(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var e=this.action,i=this.pointers;t.changedTouches?ta(t.changedTouches,function(t){delete i[t.identifier]}):delete i[t.pointerId||0],e&&(t.preventDefault(),Object.keys(i).length||(this.action=""),this.cropping&&(this.cropping=!1,td(this.dragBox,y,this.cropped&&this.options.modal)),tb(this.element,T,{originalEvent:t,action:e}))}}},{change:function(t){var e,i,n,o=this.options,r=this.canvasData,h=this.containerData,s=this.cropBoxData,c=this.pointers,l=this.action,d=o.aspectRatio,g=s.left,f=s.top,w=s.width,b=s.height,y=g+w,x=f+b,M=0,C=0,D=h.width,O=h.height,B=!0;!d&&t.shiftKey&&(d=w&&b?w/b:1),this.limited&&(M=s.minLeft,C=s.minTop,D=M+Math.min(h.width,r.width,r.left+r.width),O=C+Math.min(h.height,r.height,r.top+r.height));var k=c[Object.keys(c)[0]],T={x:k.endX-k.startX,y:k.endY-k.startY},E=function(t){switch(t){case"e":y+T.x>D&&(T.x=D-y);break;case"w":g+T.x<M&&(T.x=M-g);break;case"n":f+T.y<C&&(T.y=C-f);break;case"s":x+T.y>O&&(T.y=O-x)}};switch(l){case"all":g+=T.x,f+=T.y;break;case"e":if(T.x>=0&&(y>=D||d&&(f<=C||x>=O))){B=!1;break}E("e"),(w+=T.x)<0&&(l="w",g-=w=-w),d&&(b=w/d,f+=(s.height-b)/2);break;case"n":if(T.y<=0&&(f<=C||d&&(g<=M||y>=D))){B=!1;break}E("n"),b-=T.y,f+=T.y,b<0&&(l="s",f-=b=-b),d&&(w=b*d,g+=(s.width-w)/2);break;case"w":if(T.x<=0&&(g<=M||d&&(f<=C||x>=O))){B=!1;break}E("w"),w-=T.x,g+=T.x,w<0&&(l="e",g-=w=-w),d&&(b=w/d,f+=(s.height-b)/2);break;case"s":if(T.y>=0&&(x>=O||d&&(g<=M||y>=D))){B=!1;break}E("s"),(b+=T.y)<0&&(l="n",f-=b=-b),d&&(w=b*d,g+=(s.width-w)/2);break;case"ne":if(d){if(T.y<=0&&(f<=C||y>=D)){B=!1;break}E("n"),b-=T.y,f+=T.y,w=b*d}else E("n"),E("e"),T.x>=0?y<D?w+=T.x:T.y<=0&&f<=C&&(B=!1):w+=T.x,T.y<=0?f>C&&(b-=T.y,f+=T.y):(b-=T.y,f+=T.y);w<0&&b<0?(l="sw",w=-w,f-=b=-b,g-=w):w<0?(l="nw",g-=w=-w):b<0&&(l="se",f-=b=-b);break;case"nw":if(d){if(T.y<=0&&(f<=C||g<=M)){B=!1;break}E("n"),b-=T.y,f+=T.y,w=b*d,g+=s.width-w}else E("n"),E("w"),T.x<=0?g>M?(w-=T.x,g+=T.x):T.y<=0&&f<=C&&(B=!1):(w-=T.x,g+=T.x),T.y<=0?f>C&&(b-=T.y,f+=T.y):(b-=T.y,f+=T.y);w<0&&b<0?(l="se",w=-w,f-=b=-b,g-=w):w<0?(l="ne",g-=w=-w):b<0&&(l="sw",f-=b=-b);break;case"sw":if(d){if(T.x<=0&&(g<=M||x>=O)){B=!1;break}E("w"),w-=T.x,g+=T.x,b=w/d}else E("s"),E("w"),T.x<=0?g>M?(w-=T.x,g+=T.x):T.y>=0&&x>=O&&(B=!1):(w-=T.x,g+=T.x),T.y>=0?x<O&&(b+=T.y):b+=T.y;w<0&&b<0?(l="ne",w=-w,f-=b=-b,g-=w):w<0?(l="se",g-=w=-w):b<0&&(l="nw",f-=b=-b);break;case"se":if(d){if(T.x>=0&&(y>=D||x>=O)){B=!1;break}E("e"),w+=T.x,b=w/d}else E("s"),E("e"),T.x>=0?y<D?w+=T.x:T.y>=0&&x>=O&&(B=!1):w+=T.x,T.y>=0?x<O&&(b+=T.y):b+=T.y;w<0&&b<0?(l="nw",w=-w,f-=b=-b,g-=w):w<0?(l="sw",g-=w=-w):b<0&&(l="ne",f-=b=-b);break;case u:this.move(T.x,T.y),B=!1;break;case m:this.zoom((e=a({},c),i=0,ta(c,function(t,a){delete e[a],ta(e,function(e){var a=Math.abs(t.startX-e.startX),n=Math.abs(t.startY-e.startY),o=Math.abs(t.endX-e.endX),r=Math.abs(t.endY-e.endY),h=Math.sqrt(a*a+n*n),s=Math.sqrt(o*o+r*r);if(Z(h)&&Z(s)&&0!==h&&s!==h){var c=(s-h)/h;Z(c)&&Math.abs(c)>Math.abs(i)&&(i=c)}})}),i),t),B=!1;break;case p:if(!T.x||!T.y){B=!1;break}n=ty(this.cropper),g=k.startX-n.left,f=k.startY-n.top,w=s.minWidth,b=s.minHeight,T.x>0?l=T.y>0?"se":"ne":T.x<0&&(g-=w,l=T.y>0?"sw":"nw"),T.y<0&&(f-=b),!this.cropped&&(tl(this.cropBox,v),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}B&&(s.width=w,s.height=b,s.left=g,s.top=f,this.action=l,this.renderCropBox()),ta(c,function(t){t.startX=t.endX,t.startY=t.endY})}},{crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&tc(this.dragBox,y),tl(this.cropBox,v),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=tn({},this.initialImageData),this.canvasData=tn({},this.initialCanvasData),this.cropBoxData=tn({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(tn(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),tl(this.dragBox,y),tc(this.cropBox,v)),this},replace:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&t&&(this.isImg&&(this.element.src=t),e?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,ta(this.previews,function(e){e.getElementsByTagName("img")[0].src=t}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,tl(this.cropper,f)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,tc(this.cropper,f)),this},destroy:function(){var t=this.element;
vendor: 4,605 bytes, line 1
1return t[d]&&(t[d]=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate()),this},move:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=this.canvasData,a=i.left,n=i.top;return this.moveTo(F(t)?t:a+Number(t),F(e)?e:n+Number(e))},moveTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=this.canvasData,a=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.movable&&(Q(t)&&(i.left=t,a=!0),Q(e)&&(i.top=e,a=!0),a&&this.renderCanvas(!0)),this},zoom:function(t,e){var i=this.canvasData;return t=(t=Number(t))<0?1/(1-t):1+t,this.zoomTo(i.width*t/i.naturalWidth,null,e)},zoomTo:function(t,e,i){var a=this.options,n=this.canvasData,o=n.width,r=n.height,h=n.naturalWidth,s=n.naturalHeight;if((t=Number(t))>=0&&this.ready&&!this.disabled&&a.zoomable){var c=h*t,l=s*t;if(!1===tb(this.element,j,{ratio:t,oldRatio:o/h,originalEvent:i}))return this;if(i){var d,p,u,m=this.pointers,g=ty(this.cropper),f=m&&Object.keys(m).length?(d=0,p=0,u=0,ta(m,function(t){var e=t.startX,i=t.startY;d+=e,p+=i,u+=1}),{pageX:d/=u,pageY:p/=u}):{pageX:i.pageX,pageY:i.pageY};n.left-=(c-o)*((f.pageX-g.left-n.left)/o),n.top-=(l-r)*((f.pageY-g.top-n.top)/r)}else J(e)&&Q(e.x)&&Q(e.y)?(n.left-=(c-o)*((e.x-n.left)/o),n.top-=(l-r)*((e.y-n.top)/r)):(n.left-=(c-o)/2,n.top-=(l-r)/2);n.width=c,n.height=l,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return Q(t=Number(t))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var e=this.imageData.scaleY;return this.scale(t,Q(e)?e:1)},scaleY:function(t){var e=this.imageData.scaleX;return this.scale(Q(e)?e:1,t)},scale:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=this.imageData,a=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.scalable&&(Q(t)&&(i.scaleX=t,a=!0),Q(e)&&(i.scaleY=e,a=!0),a&&this.renderCanvas(!0,!0)),this},getData:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this.options,a=this.imageData,n=this.canvasData,o=this.cropBoxData;if(this.ready&&this.cropped){t={x:o.left-n.left,y:o.top-n.top,width:o.width,height:o.height};var r=a.width/a.naturalWidth;if(ta(t,function(e,i){t[i]=e/r}),e){var h=Math.round(t.y+t.height),s=Math.round(t.x+t.width);t.x=Math.round(t.x),t.y=Math.round(t.y),t.width=s-t.x,t.height=h-t.y}}else t={x:0,y:0,width:0,height:0};return i.rotatable&&(t.rotate=a.rotate||0),i.scalable&&(t.scaleX=a.scaleX||1,t.scaleY=a.scaleY||1),t},setData:function(t){var e=this.options,i=this.imageData,a=this.canvasData,n={};if(this.ready&&!this.disabled&&J(t)){var o=!1;e.rotatable&&Q(t.rotate)&&t.rotate!==i.rotate&&(i.rotate=t.rotate,o=!0),e.scalable&&(Q(t.scaleX)&&t.scaleX!==i.scaleX&&(i.scaleX=t.scaleX,o=!0),Q(t.scaleY)&&t.scaleY!==i.scaleY&&(i.scaleY=t.scaleY,o=!0)),o&&this.renderCanvas(!0,!0);var r=i.width/i.naturalWidth;Q(t.x)&&(n.left=t.x*r+a.left),Q(t.y)&&(n.top=t.y*r+a.top),Q(t.width)&&(n.width=t.width*r),Q(t.height)&&(n.height=t.height*r),this.setCropBoxData(n)}return this},getContainerData:function(){return this.ready?tn({},this.containerData):{}},getImageData:function(){return this.sized?tn({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,e={};return this.ready&&ta(["left","top","width","height","naturalWidth","naturalHeight"],function(i){e[i]=t[i]}),e},setCanvasData:function(t){var e=this.canvasData,i=e.aspectRatio;return this.ready&&!this.disabled&&J(t)&&(Q(t.left)&&(e.left=t.left),Q(t.top)&&(e.top=t.top),Q(t.width)?(e.width=t.width,e.height=t.width/i):Q(t.height)&&(e.height=t.height,e.width=t.height*i),this.renderCanvas(!0)),this},getCropBoxData:function(){var t,e=this.cropBoxData;return this.ready&&this.cropped&&(t={left:e.left,top:e.top,width:e.width,height:e.height}),t||{}},setCropBoxData:function(t){var e,i,a=this.cropBoxData,n=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&J(t)&&(Q(t.left)&&(a.left=t.left),Q(t.top)&&(a.top=t.top),Q(t.width)&&t.width!==a.width&&(e=!0,a.width=t.width),Q(t.height)&&t.height!==a.height&&(i=!0,a.height=t.height),n&&(e?a.height=a.width/n:i&&(a.width=a.height*n)),this.renderCropBox()),this},getCroppedCanvas:function(){var t,e,i,a,o,r,h,s,c,l,d,p,u,m,g,f,v,w,b,y,x,M,C,D,O,B,k,T,E,W,N,z,H,L,R,Y,X,j,S=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var A=this.canvasData,P=(t=this.image,i=(e=this.imageData).aspectRatio,a=e.naturalWi
1dth,o=e.naturalHeight,r=e.rotate,h=e.scaleX,s=e.scaleY,c=A.aspectRatio,l=A.naturalWidth,d=A.naturalHeight,p=S.fillColor,u=S.imageSmoothingEnabled,m=S.imageSmoothingQuality,f=void 0===(g=S.maxWidth)?1/0:g,w=void 0===(v=S.maxHeight)?1/0:v,y=void 0===(b=S.minWidth)?0:b,M=void 0===(x=S.minHeight)?0:x,D=(C=document.createElement("canvas")).getContext("2d"),O=tk({aspectRatio:c,width:f,height:w}),B=tk({aspectRatio:c,width:y,height:M},"cover"),k=Math.min(O.width,Math.max(B.width,l)),T=Math.min(O.height,Math.max(B.height,d)),E=tk({aspectRatio:i,width:f,height:w}),W=tk({aspectRatio:i,width:y,height:M},"cover"),N=Math.min(E.width,Math.max(W.width,a)),z=Math.min(E.height,Math.max(W.height,o)),C.width=tr(k),C.height=tr(T),D.fillStyle=void 0===p?"transparent":p,D.fillRect(0,0,k,T),D.save(),D.translate(k/2,T/2),D.rotate((void 0===r?0:r)*Math.PI/180),D.scale(void 0===h?1:h,void 0===s?1:s),D.imageSmoothingEnabled=void 0===u||u,D.imageSmoothingQuality=void 0===m?"low":m,D.drawImage.apply(D,[t].concat(n([-N/2,-z/2,N,z].map(function(t){return Math.floor(tr(t))})))),D.restore(),C);if(!this.cropped)return P;var I=this.getData(S.rounded),U=I.x,_=I.y,q=I.width,$=I.height,Z=P.width/Math.floor(A.naturalWidth);1!==Z&&(U*=Z,_*=Z,q*=Z,$*=Z);var Q=q/$,K=tk({aspectRatio:Q,width:S.maxWidth||1/0,height:S.maxHeight||1/0}),F=tk({aspectRatio:Q,width:S.minWidth||0,height:S.minHeight||0},"cover"),G=tk({aspectRatio:Q,width:S.width||(1!==Z?P.width:q),height:S.height||(1!==Z?P.height:$)}),V=G.width,J=G.height;V=Math.min(K.width,Math.max(F.width,V)),J=Math.min(K.height,Math.max(F.height,J));var tt=document.createElement("canvas"),te=tt.getContext("2d");tt.width=tr(V),tt.height=tr(J),te.fillStyle=S.fillColor||"transparent",te.fillRect(0,0,V,J);var ti=S.imageSmoothingEnabled,ta=S.imageSmoothingQuality;te.imageSmoothingEnabled=void 0===ti||ti,ta&&(te.imageSmoothingQuality=ta);var tn=P.width,to=P.height,th=U,ts=_;th<=-q||th>tn?(th=0,H=0,R=0,X=0):th<=0?(R=-th,X=H=Math.min(tn,q+(th=0))):th<=tn&&(R=0,X=H=Math.min(q,tn-th)),H<=0||ts<=-$||ts>to?(ts=0,L=0,Y=0,j=0):ts<=0?(Y=-ts,j=L=Math.min(to,$+(ts=0))):ts<=to&&(Y=0,j=L=Math.min($,to-ts));var tc=[th,ts,H,L];if(X>0&&j>0){var tl=V/q;tc.push(R*tl,Y*tl,X*tl,j*tl)}return te.drawImage.apply(te,[P].concat(n(tc.map(function(t){return Math.floor(tr(t))})))),tt},setAspectRatio:function(t){var e=this.options;return!this.disabled&&!F(t)&&(e.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var e=this.options,i=this.dragBox,a=this.face;if(this.ready&&!this.disabled){var n=t===D,o=e.movable&&t===O;t=n||o?t:B,e.dragMode=t,tg(i,M,t),td(i,g,n),td(i,x,o),e.cropBoxMovable||(tg(a,M,t),td(a,g,n),td(a,x,o))}return this}}),tN}()},80113:function(){},42016:function(t,e,i){"use strict";i.d(e,{Z:function(){return l}});var a=i(67294),n=i(33129),o=i.n(n),r=function(){return(r=Object.assign||function(t){for(var e,i=1,a=arguments.length;i<a;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};function h(t,e){var i={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&0>e.indexOf(a)&&(i[a]=t[a]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(t);n<a.length;n++)0>e.indexOf(a[n])&&Object.prototype.propertyIsEnumerable.call(t,a[n])&&(i[a[n]]=t[a[n]])}return i}var s=["aspectRatio","autoCrop","autoCropArea","background","center","checkCrossOrigin","checkOrientation","cropBoxMovable","cropBoxResizable","data","dragMode","guides","highlight","initialAspectRatio","minCanvasHeight","minCanvasWidth","minContainerHeight","minContainerWidth","minCropBoxHeight","minCropBoxWidth","modal","movable","preview","responsive","restore","rotatable","scalable","toggleDragModeOnDblclick","viewMode","wheelZoomRatio","zoomOnTouch","zoomOnWheel","zoomable","cropstart","cropmove","cropend","crop","zoom","ready"],c={opacity:0,maxWidth:"100%"},l=a.forwardRef(function(t,e){var i,n=h(t,[]),l=n.dragMode,d=void 0===l?"crop":l,p=n.src,u=n.style,m=n.className,g=n.crossOrigin,f=n.scaleX,v=n.scaleY,w=n.enable,b=n.zoomTo,y=n.rotateTo,x=n.alt,M=n.ready,C=n.onInitialized,D=h(n,["dragMode","src","style","className","crossOrigin","scaleX","scaleY","enable","zoomTo","rotateTo","alt","ready","onInitialized"]),O={scaleY:v,scaleX:f,enable:w,zoomTo:b,rotateTo:y},B=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=(0,a.useRef)(null);return a.useEffect(function(){t.forEach(function(t){t&&("function"==typeof t?t(i.current):t.current=i.current)})},[t]),i}(e,(0,a.useRef)(null));(0,a.useEffect)(function(){var t;(null===(t=B.current)||void 0===t?void 0:t.cropper)&&"number"==typeof b&&B.current.cropper.zoomTo(b)},[n.zoomTo]),(0,a.useEffect)(function(){var t;(null===(t=B.current)||void 0===t?void 0:t.cropper)&&void 0!==p&&B.current.cropper.reset().clear().replace(p)},[p]),(0,a.useEffect)(function(){if(null!==B.current){var t=new(o())(B.current,r(r({dragMode:d},D),{ready:function(t){var e,i,a,n,o,r,h,s;null!==t.currentTarget&&(e=t.currentTarget.cropper,void 0===(i=O)&&(i={}),a=i.enable,n=i.scaleX,o=i.scaleY,h=void 0===(r=i.zoomTo)?0:r,s=i.rotateTo,void 0===a||a?e.enable():e.disable(),e.scaleX(void 0===n?1:n),e.scaleY(void 0===o?1:o),void 0!==s&&e.rotateTo(s),h>
10&&e.zoomTo(h)),M&&M(t)}}));C&&C(t)}return function(){var t,e;null===(e=null===(t=B.current)||void 0===t?void 0:t.cropper)||void 0===e||e.destroy()}},[B]);var k=(i=r(r({},D),{crossOrigin:g,src:p,alt:void 0===x?"picture":x}),s.reduce(function(t,e){return t[e],h(t,["symbol"==typeof e?e:e+""])},i));return a.createElement("div",{style:u,className:m},a.createElement("img",r({},k,{style:c,ref:B})))})}}]);

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.