PageSourceSearch

https://gumpla.jp/wp-content/plugins/acf-image-aspect-ratio-crop/a…?ver=05c343faeda142d17d4d9c0619ce2260

js gumpla.jp collected 2026-10-03 22:14:32 UTC 84,188 bytes, 17 lines download raw bytes

vendor: 4,392 bytes, line 1
1!function(t){var e={};function i(a){if(e[a])return e[a].exports;var r=e[a]={i:a,l:!1,exports:{}};return t[a].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=t,i.c=e,i.d=function(t,e,a){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(a,r,function(e){return t[e]}.bind(null,r));return a},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=38)}([function(t,e,i){"use strict";function a(t){return(a="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 r=i(4),n=Object.prototype.toString;function o(t){return"[object Array]"===n.call(t)}function s(t){return void 0===t}function c(t){return null!==t&&"object"===a(t)}function h(t){if("[object Object]"!==n.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function p(t){return"[object Function]"===n.call(t)}function l(t,e){if(null!=t)if("object"!==a(t)&&(t=[t]),o(t))for(var i=0,r=t.length;i<r;i++)e.call(null,t[i],i,t);else for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.call(null,t[n],n,t)}t.exports={isArray:o,isArrayBuffer:function(t){return"[object ArrayBuffer]"===n.call(t)},isBuffer:function(t){return null!==t&&!s(t)&&null!==t.constructor&&!s(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:c,isPlainObject:h,isUndefined:s,isDate:function(t){return"[object Date]"===n.call(t)},isFile:function(t){return"[object File]"===n.call(t)},isBlob:function(t){return"[object Blob]"===n.call(t)},isFunction:p,isStream:function(t){return c(t)&&p(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:l,merge:function t(){var e={};function i(i,a){h(e[a])&&h(i)?e[a]=t(e[a],i):h(i)?e[a]=t({},i):o(i)?e[a]=i.slice():e[a]=i}for(var a=0,r=arguments.length;a<r;a++)l(arguments[a],i);return e},extend:function(t,e,i){return l(e,(function(e,a){t[a]=i&&"function"==typeof e?r(e,i):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},function(t,e,i){t.exports=i(15)},function(t,e,i){"use strict";var a=i(32),r=i(33),n=i(3);t.exports={formats:n,parse:r,stringify:a}},function(t,e,i){"use strict";var a=String.prototype.replace,r=/%20/g,n="RFC1738",o="RFC3986";t.exports={default:o,formatters:{RFC1738:function(t){return a.call(t,r,"+")},RFC3986:function(t){return String(t)}},RFC1738:n,RFC3986:o}},function(t,e,i){"use strict";t.exports=function(t,e){return function(){for(var i=new Array(arguments.length),a=0;a<i.length;a++)i[a]=arguments[a];return t.apply(e,i)}}},function(t,e,i){"use strict";var a=i(0);function r(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,i){if(!e)return t;var n;if(i)n=i(e);else if(a.isURLSearchParams(e))n=e.toString();else{var o=[];a.forEach(e,(function(t,e){null!=t&&(a.isArray(t)?e+="[]":t=[t],a.forEach(t,(function(t){a.isDate(t)?t=t.toISOString():a.isObject(t)&&(t=JSON.stringify(t)),o.push(r(e)+"="+r(t))})))})),n=o.join("&")}if(n){var s=t.indexOf("#");
vendor: 3,993 bytes, line 1
1-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+n}return t}},function(t,e,i){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,i){"use strict";(function(e){var a=i(0),r=i(21),n={"Content-Type":"application/x-www-form-urlencoded"};function o(t,e){!a.isUndefined(t)&&a.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s,c={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==e&&"[object process]"===Object.prototype.toString.call(e))&&(s=i(8)),s),transformRequest:[function(t,e){return r(e,"Accept"),r(e,"Content-Type"),a.isFormData(t)||a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)?t:a.isArrayBufferView(t)?t.buffer:a.isURLSearchParams(t)?(o(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):a.isObject(t)?(o(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},a.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),a.forEach(["post","put","patch"],(function(t){c.headers[t]=a.merge(n)})),t.exports=c}).call(this,i(20))},function(t,e,i){"use strict";var a=i(0),r=i(22),n=i(24),o=i(5),s=i(25),c=i(28),h=i(29),p=i(9);t.exports=function(t){return new Promise((function(e,i){var l=t.data,d=t.headers;a.isFormData(l)&&delete d["Content-Type"],(a.isBlob(l)||a.isFile(l))&&l.type&&delete d["Content-Type"];var u=new XMLHttpRequest;if(t.auth){var f=t.auth.username||"",m=unescape(encodeURIComponent(t.auth.password))||"";d.Authorization="Basic "+btoa(f+":"+m)}var g=s(t.baseURL,t.url);if(u.open(t.method.toUpperCase(),o(g,t.params,t.paramsSerializer),!0),u.timeout=t.timeout,u.onreadystatechange=function(){if(u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))){var a="getAllResponseHeaders"in u?c(u.getAllResponseHeaders()):null,n={data:t.responseType&&"text"!==t.responseType?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:a,config:t,request:u};r(e,i,n),u=null}},u.onabort=function(){u&&(i(p("Request aborted",t,"ECONNABORTED",u)),u=null)},u.onerror=function(){i(p("Network Error",t,null,u)),u=null},u.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),i(p(e,t,"ECONNABORTED",u)),u=null},a.isStandardBrowserEnv()){var v=(t.withCredentials||h(g))&&t.xsrfCookieName?n.read(t.xsrfCookieName):void 0;v&&(d[t.xsrfHeaderName]=v)}if("setRequestHeader"in u&&a.forEach(d,(function(t,e){void 0===l&&"content-type"===e.toLowerCase()?delete d[e]:u.setRequestHeader(e,t)})),a.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),t.responseType)try{u.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&u.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){u&&(u.abort(),i(t),u=null)})),l||(l=null),u.send(l)}))}},function(t,e,i){"use strict";var a=i(23);t.exports=function(t,e,i,r,n){var o=new Error(t);return a(o,e,i,r,n)}},function(t,e,i){"use strict";var a=i(0);t.exports=function(t,e){e=e||{};var i={},r=["url","method","data"],n=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(t,e){return a.isPlainObject(t)&&a.isPlainObject(e)?a.merge
vendor: 4,952 bytes, lines 1-10
1(t,e):a.isPlainObject(e)?a.merge({},e):a.isArray(e)?e.slice():e}function h(r){a.isUndefined(e[r])?a.isUndefined(t[r])||(i[r]=c(void 0,t[r])):i[r]=c(t[r],e[r])}a.forEach(r,(function(t){a.isUndefined(e[t])||(i[t]=c(void 0,e[t]))})),a.forEach(n,h),a.forEach(o,(function(r){a.isUndefined(e[r])?a.isUndefined(t[r])||(i[r]=c(void 0,t[r])):i[r]=c(void 0,e[r])})),a.forEach(s,(function(a){a in e?i[a]=c(t[a],e[a]):a in t&&(i[a]=c(void 0,t[a]))}));var p=r.concat(n).concat(o).concat(s),l=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===p.indexOf(t)}));return a.forEach(l,h),i}},function(t,e,i){"use strict";function a(t){this.message=t}a.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},a.prototype.__CANCEL__=!0,t.exports=a},function(t,e,i){"use strict";function a(t){return(a="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 r=i(3),n=Object.prototype.hasOwnProperty,o=Array.isArray,s=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),c=function(t,e){for(var i=e&&e.plainObjects?Object.create(null):{},a=0;a<t.length;++a)void 0!==t[a]&&(i[a]=t[a]);return i};t.exports={arrayToObject:c,assign:function(t,e){return Object.keys(e).reduce((function(t,i){return t[i]=e[i],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],i=[],r=0;r<e.length;++r)for(var n=e[r],s=n.obj[n.prop],c=Object.keys(s),h=0;h<c.length;++h){var p=c[h],l=s[p];"object"===a(l)&&null!==l&&-1===i.indexOf(l)&&(e.push({obj:s,prop:p}),i.push(l))}return function(t){for(;t.length>1;){var e=t.pop(),i=e.obj[e.prop];if(o(i)){for(var a=[],r=0;r<i.length;++r)void 0!==i[r]&&a.push(i[r]);e.obj[e.prop]=a}}}(e),t},decode:function(t,e,i){var a=t.replace(/\+/g," ");if("iso-8859-1"===i)return a.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(a)}catch(t){return a}},encode:function(t,e,i,n,o){if(0===t.length)return t;var c=t;if("symbol"===a(t)?c=Symbol.prototype.toString.call(t):"string"!=typeof t&&(c=String(t)),"iso-8859-1"===i)return escape(c).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var h="",p=0;p<c.length;++p){var l=c.charCodeAt(p);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||o===r.RFC1738&&(40===l||41===l)?h+=c.charAt(p):l<128?h+=s[l]:l<2048?h+=s[192|l>>6]+s[128|63&l]:l<55296||l>=57344?h+=s[224|l>>12]+s[128|l>>6&63]+s[128|63&l]:(p+=1,l=65536+((1023&l)<<10|1023&c.charCodeAt(p)),h+=s[240|l>>18]+s[128|l>>12&63]+s[128|l>>6&63]+s[128|63&l])}return h},isBuffer:function(t){return!(!t||"object"!==a(t))&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(o(t)){for(var i=[],a=0;a<t.length;a+=1)i.push(e(t[a]));return i}return e(t)},merge:function t(e,i,r){if(!i)return e;if("object"!==a(i)){if(o(e))e.push(i);else{if(!e||"object"!==a(e))return[e,i];(r&&(r.plainObjects||r.allowPrototypes)||!n.call(Object.prototype,i))&&(e[i]=!0)}return e}if(!e||"object"!==a(e))return[e].concat(i);var s=e;return o(e)&&!o(i)&&(s=c(e,r)),o(e)&&o(i)?(i.forEach((function(i,o){if(n.call(e,o)){var s=e[o];s&&"object"===a(s)&&i&&"object"===a(i)?e[o]=t(s,i,r):e.push(i)}else e[o]=i})),e):Object.keys(i).reduce((function(e,a){var o=i[a];return n.call(e,a)?e[a]=t(e[a],o,r):e[a]=o,e}),s)}}},function(t,e,i){var a,r,n;function o(t){return(o="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)}
2/*!
3 * Cropper.js v1.5.7
4 * https://fengyuanchen.github.io/cropperjs
5 *
6 * Copyright 2015-present Chen Fengyuan
7 * Released under the MIT license
8 *
9 * Date: 2020-05-23T05:23:00.081Z
10 */n=function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"===o(Symbol.iterator)?function(t){return o(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":o(t)})(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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,a.key,a)}}function a(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function r(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 n(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};
vendor: 9,009 bytes, line 10
10e%2?r(Object(i),!0).forEach((function(e){a(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function s(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?c(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,a=new Array(e);i<e;i++)a[i]=t[i];return a}var h="undefined"!=typeof window&&void 0!==window.document,p=h?window:{},l=!(!h||!p.document.documentElement)&&"ontouchstart"in p.document.documentElement,d=!!h&&"PointerEvent"in p,u="".concat("cropper","-crop"),f="".concat("cropper","-disabled"),m="".concat("cropper","-hidden"),g="".concat("cropper","-hide"),v="".concat("cropper","-invisible"),y="".concat("cropper","-modal"),w="".concat("cropper","-move"),b="".concat("cropper","Action"),x="".concat("cropper","Preview"),j=d?"pointerdown":l?"touchstart":"mousedown",C=d?"pointermove":l?"touchmove":"mousemove",O=d?"pointerup pointercancel":l?"touchend touchcancel":"mouseup",k=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,M=/^data:/,_=/^data:image\/jpeg;base64,/,D=/^img|canvas$/i,S={viewMode:0,dragMode:"crop",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},E=Number.isNaN||p.isNaN;function T(t){return"number"==typeof t&&!E(t)}var N=function(t){return t>0&&t<1/0};function B(t){return void 0===t}function L(e){return"object"===t(e)&&null!==e}var A=Object.prototype.hasOwnProperty;function R(t){if(!L(t))return!1;try{var e=t.constructor,i=e.prototype;return e&&i&&A.call(i,"isPrototypeOf")}catch(t){return!1}}function z(t){return"function"==typeof t}var H=Array.prototype.slice;function P(t){return Array.from?Array.from(t):H.call(t)}function W(t,e){return t&&z(e)&&(Array.isArray(t)||T(t.length)?P(t).forEach((function(i,a){e.call(t,i,a,t)})):L(t)&&Object.keys(t).forEach((function(i){e.call(t,t[i],i,t)}))),t}var X=Object.assign||function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),a=1;a<e;a++)i[a-1]=arguments[a];return L(t)&&i.length>0&&i.forEach((function(e){L(e)&&Object.keys(e).forEach((function(i){t[i]=e[i]}))})),t},U=/\.\d*(?:0|9){12}\d*$/;function I(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return U.test(t)?Math.round(t*e)/e:t}var $=/^width|height|left|top|marginLeft|marginTop$/;function Y(t,e){var i=t.style;W(e,(function(t,e){$.test(e)&&T(t)&&(t="".concat(t,"px")),i[e]=t}))}function F(t,e){if(e)if(T(t.length))W(t,(function(t){F(t,e)}));else if(t.classList)t.classList.add(e);else{var i=t.className.trim();i?i.indexOf(e)<0&&(t.className="".concat(i," ").concat(e)):t.className=e}}function q(t,e){e&&(T(t.length)?W(t,(function(t){q(t,e)})):t.classList?t.classList.remove(e):t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,"")))}function V(t,e,i){e&&(T(t.length)?W(t,(function(t){V(t,e,i)})):i?F(t,e):q(t,e))}var Q=/([a-z\d])([A-Z])/g;function J(t){return t.replace(Q,"$1-$2").toLowerCase()}function G(t,e){return L(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(J(e)))}function K(t,e,i){L(i)?t[e]=i:t.dataset?t.dataset[e]=i:t.setAttribute("data-".concat(J(e)),i)}var Z=/\s\s*/,tt=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}});p.addEventListener("test",i,a),p.removeEventListener("test",i,a)}return t}();function et(t,e,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=i;e.trim().split(Z).forEach((function(e){if(!tt){var n=t.listeners;n&&n[e]&&n[e][i]&&(r=n[e][i],delete n[e][i],0===Object.keys(n[e]).length&&delete n[e],0===Object.keys(n).length&&delete t.listeners)}t.removeEventListener(e,r,a)}))}function it(t,e,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=i;e.trim().split(Z).forEach((function(e){if(a.once&&!tt){var n=t.listeners,o=void 0===n?{}:n;r=function(){delete o[e][i],t.removeEventListener(e,r,a);for(var n=arguments.length,s=new Array(n),c=0;c<n;c++)s[c]=arguments[c];i.apply(t,s)},o[e]||(o[e]={}),o[e][i]&&t.removeEventListener(e,o[e][i],a),o[e][i]=r,t.listeners=o}t.addEventListener(e,r,a)}))}function at(t,e,i){var a;return z(Event)&&z(CustomEvent)?a=new CustomEvent(e,{detail:i,bubbles:!0,cancelable:!0}):(a=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,i),t.dispatchEvent(a)}function rt(t){var e=t.getBoundingClientRect();return{left:e.left+(window.pageXOffset-document.documentElement.clientLeft),top:e.top+(window.pageYOffset-document.documentElement.clientTop)}}var nt=p.location,ot=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function st(t){var e=t.match(ot);return null!==e&&(e[1]!==nt.protocol||e[2]!==nt.hostname||e[3]!==nt.port)}function ct(t){var e="timestamp=".concat((new Date).getTime());return t+(-1===t.indexOf("?")?"?":"&")+e}function ht(t){var e=t.rotate,i=t.scaleX,a=t.scaleY,r=t.translateX,n=t.translateY,o=[];T(r)&&0!==r&&o.push("translateX(".concat(r,"px)")),T(n)&&0!==n&&o.push("translateY(".concat(n,"px)")),T(e)&&0!==e&&o.push("rotate(".concat(e,"deg)")),T(i)&&1!==i&&o.push("scaleX(".concat(i,")")),T(a)&&1!==a&&o.push("scaleY(".concat(a,")"));var s=o.length?o.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}function pt(t,e){var i=t.pageX,a=t.pageY,r={endX:i,endY:a};return e?r:n({startX:i,startY:a},r)}function lt(t){var e=t.aspectRatio,i=t.height,a=t.width,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"contain",n=N(a),o=N(i);if(n&&o){var s=i*e;"contain"===r&&s>a||"cover"===r&&s<a?i=a/e:a=i*e}else n?i=a/e:o&&(a=i*e);return{width:a,height:i}}function dt(t,e,i,a){var r=e.aspectRatio,n=e.naturalWidth,o=e.naturalHeight,c=e.rotate,h=void 0===c?0:c,p=e.scaleX,l=void 0===p?1:p,d=e.scaleY,u=void 0===d?1:d,f=i.aspectRatio,m=i.naturalWidth,g=i.naturalHeight,v=a.fillColor,y=void 0===v?"transparent":v,w=a.imageSmoothingEnabled,b=void 0===w||w,x=a.imageSmoothingQuality,j=void 0===x?"low":x,C=a.maxWidth,O=void 0===C?1/0:C,k=a.maxHeight,M=void 0===k?1/0:k,_=a.minWidth,D=void 0===_?0:_,S=a.minHeight,E=void 0===S?0:S,T=document.createElement("canvas"),N=T.getContext("2d"),B=lt({aspectRatio:f,width:O,height:M}),L=lt({aspectRatio:f,width:D,height:E},"cover"),A=Math.min(B.width,Math.max(L.width,m)),R=Math.min(B.height,Math.max(L.height,g)),z=lt({aspectRatio:r,width:O,height:M}),H=lt({aspectRatio:r,width:D,height:E},"cover"),P=Math.min(z.width,Math.max(H.width,n)),W=Math.min(z.height,Math.max(H.height,o)),X=[-P/2,-W/2,P,W];return T.width=I(A),T.height=I(R),N.fillStyle=y,N.fillRect(0,0,A,R),N.save(),N.translate(A/2,R/2),N.rotate(h*Math.PI/180),N.scale(l,u),N.imageSmoothingEnabled=b,N.imageSmoothingQuality=j,N.drawImage.apply(N,[t].concat(s(X.map((function(t){return Math.floor(I(t))}))))),N.restore(),T}var ut=String.fromCharCode,ft=/^data:.*,/;function mt(t){var e,i=new DataView(t);try{var a,r,n;if(255===i.getUint8(0)&&216===i.getUint8(1))for(var o=i.byteLength,s=2;s+1<o;){if(255===i.getUint8(s)&&225===i.getUint8(s+1)){r=s;break}s+=1}if(r){var c=r+10;if("Exif"===function(t,e,i){var a="";i+=e;for(var r=e;r<i;r+=1)a+=ut(t.getUint8(r));return a}(i,r+4,4)){var h=i.getUint16(c);if(((a=18761===h)||19789===h)&&42===i.getUint16(c+2,a)){var p=i.getUint32(c+4,a);p>=8&&(n=c+p)}}}if(n){var l,d,u=i.getUint16(n,a);for(d=0;d<u;d+=1)if(l=n+12*d+2,274===i.getUint16(l,a)){l+=8,e=i.getUint16(l,a),i.setUint16(l,1,a);break}}}catch(t){e=1}return e}var gt={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;F(a,m),q(t,m);var r={width:Math.max(i.offsetWidth,Number(e.minContainerWidth)||200),height:Math.max(i.offsetHeight,Number(e.minContainerHeight)||100)};this.containerData=r,Y(a,{width:r.width,height:r.height}),F(t,m),q(a,m)},initCanvas:function(){var t=this.containerData,e=this.imageData,i=this.options.viewMode,a=Math.abs(e.rotate)%180==90,r=a?e.naturalHeight:e.naturalWi
vendor: 4,246 bytes, line 10
10dth,n=a?e.naturalWidth:e.naturalHeight,o=r/n,s=t.width,c=t.height;t.height*o>t.width?3===i?s=t.height*o:c=t.width/o:3===i?c=t.width/o:s=t.height*o;var h={aspectRatio:o,naturalWidth:r,naturalHeight:n,width:s,height:c};h.left=(t.width-s)/2,h.top=(t.height-c)/2,h.oldLeft=h.left,h.oldTop=h.top,this.canvasData=h,this.limited=1===i||2===i,this.limitCanvas(!0,!0),this.initialImageData=X({},e),this.initialCanvasData=X({},h)},limitCanvas:function(t,e){var i=this.options,a=this.containerData,r=this.canvasData,n=this.cropBoxData,o=i.viewMode,s=r.aspectRatio,c=this.cropped&&n;if(t){var h=Number(i.minCanvasWidth)||0,p=Number(i.minCanvasHeight)||0;o>1?(h=Math.max(h,a.width),p=Math.max(p,a.height),3===o&&(p*s>h?h=p*s:p=h/s)):o>0&&(h?h=Math.max(h,c?n.width:0):p?p=Math.max(p,c?n.height:0):c&&(h=n.width,(p=n.height)*s>h?h=p*s:p=h/s));var l=lt({aspectRatio:s,width:h,height:p});h=l.width,p=l.height,r.minWidth=h,r.minHeight=p,r.maxWidth=1/0,r.maxHeight=1/0}if(e)if(o>(c?0:1)){var d=a.width-r.width,u=a.height-r.height;r.minLeft=Math.min(0,d),r.minTop=Math.min(0,u),r.maxLeft=Math.max(0,d),r.maxTop=Math.max(0,u),c&&this.limited&&(r.minLeft=Math.min(n.left,n.left+(n.width-r.width)),r.minTop=Math.min(n.top,n.top+(n.height-r.height)),r.maxLeft=n.left,r.maxTop=n.top,2===o&&(r.width>=a.width&&(r.minLeft=Math.min(0,d),r.maxLeft=Math.max(0,d)),r.height>=a.height&&(r.minTop=Math.min(0,u),r.maxTop=Math.max(0,u))))}else r.minLeft=-r.width,r.minTop=-r.height,r.maxLeft=a.width,r.maxTop=a.height},renderCanvas:function(t,e){var i=this.canvasData,a=this.imageData;if(e){var r=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 r=a%90*Math.PI/180,n=Math.sin(r),o=Math.cos(r),s=e*o+i*n,c=e*n+i*o;return a>90?{width:c,height:s}:{width:s,height:c}}({width:a.naturalWidth*Math.abs(a.scaleX||1),height:a.naturalHeight*Math.abs(a.scaleY||1),degree:a.rotate||0}),n=r.width,o=r.height,s=i.width*(n/i.naturalWidth),c=i.height*(o/i.naturalHeight);i.left-=(s-i.width)/2,i.top-=(c-i.height)/2,i.width=s,i.height=c,i.aspectRatio=n/o,i.naturalWidth=n,i.naturalHeight=o,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,Y(this.canvas,X({width:i.width,height:i.height},ht({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),r=i.naturalHeight*(e.height/e.naturalHeight);X(i,{width:a,height:r,left:(e.width-a)/2,top:(e.height-r)/2}),Y(this.image,X({width:i.width,height:i.height},ht(X({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,r={width:e.width,height:e.height};i&&(e.height*i>e.width?r.height=r.width/i:r.width=r.height*i),this.cropBoxData=r,this.limitCropBox(!0,!0),r.width=Math.min(Math.max(r.width,r.minWidth),r.maxWidth),r.height=Math.min(Math.max(r.height,r.minHeight),r.maxHeight),r.width=Math.max(r.minWidth,r.width*a),r.height=Math.max(r.minHeight,r.height*a),r.left=e.left+(e.width-r.width)/2,r.top=e.top+(e.height-r.height)/2,r.oldLeft=r.left,r.oldTop=r.top,this.initialCropBoxData=X({},r)},limitCropBox:function(t,e){var i=this.options,a=this.containerData,r=this.canvasData,n=this.cropBoxData,o=this.limited,s=i.aspectRatio;if(t){var c=Number(i.minCropBoxWidth)||0,h=Number(i.minCropBoxHeight)||0,p=o?Math.min(a.width,r.width,r.width+r.left,a.width-r.left):a.width,l=o?Math.min(a.height,r.height,r.height+r.top,a.height-r.top):a.height;c=Math.min(c,a.width),h=Math.min(h,a.height),s&&(c&&h?h*s>c?h=c/s:c=h*s:c?h=c/s:h&&(c=h*s),l*s>p?l=p/s:p=l*s),n.minWidth=Math.min(c,p),n.minHeight=Math.min(h,l),n.maxWidth=p,n.maxHeight=l}e&&(o?(n.minLeft=Math.max(0,r.left),n.minTop=Math.max(0,r.top),n.maxLeft=Math.min(a.width,r.left+r.
vendor: 22,059 bytes, line 10
10width)-n.width,n.maxTop=Math.min(a.height,r.top+r.height)-n.height):(n.minLeft=0,n.minTop=0,n.maxLeft=a.width-n.width,n.maxTop=a.height-n.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&&K(this.face,b,i.width>=e.width&&i.height>=e.height?"move":"all"),Y(this.cropBox,X({width:i.width,height:i.height},ht({translateX:i.left,translateY:i.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),at(this.element,"crop",this.getData())}},vt={initPreview:function(){var t=this.element,e=this.crossOrigin,i=this.options.preview,a=e?this.crossOriginUrl:this.url,r=t.alt||"The image to preview",n=document.createElement("img");if(e&&(n.crossOrigin=e),n.src=a,n.alt=r,this.viewBox.appendChild(n),this.viewBoxImage=n,i){var o=i;"string"==typeof i?o=t.ownerDocument.querySelectorAll(i):i.querySelector&&(o=[i]),this.previews=o,W(o,(function(t){var i=document.createElement("img");K(t,x,{width:t.offsetWidth,height:t.offsetHeight,html:t.innerHTML}),e&&(i.crossOrigin=e),i.src=a,i.alt=r,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(){W(this.previews,(function(t){var e=G(t,x);Y(t,{width:e.width,height:e.height}),t.innerHTML=e.html,function(t,e){if(L(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(J(e)))}(t,x)}))},preview:function(){var t=this.imageData,e=this.canvasData,i=this.cropBoxData,a=i.width,r=i.height,n=t.width,o=t.height,s=i.left-e.left-t.left,c=i.top-e.top-t.top;this.cropped&&!this.disabled&&(Y(this.viewBoxImage,X({width:n,height:o},ht(X({translateX:-s,translateY:-c},t)))),W(this.previews,(function(e){var i=G(e,x),h=i.width,p=i.height,l=h,d=p,u=1;a&&(d=r*(u=h/a)),r&&d>p&&(l=a*(u=p/r),d=p),Y(e,{width:l,height:d}),Y(e.getElementsByTagName("img")[0],X({width:n*u,height:o*u},ht(X({translateX:-s*u,translateY:-c*u},t))))})))}},yt={bind:function(){var t=this.element,e=this.options,i=this.cropper;z(e.cropstart)&&it(t,"cropstart",e.cropstart),z(e.cropmove)&&it(t,"cropmove",e.cropmove),z(e.cropend)&&it(t,"cropend",e.cropend),z(e.crop)&&it(t,"crop",e.crop),z(e.zoom)&&it(t,"zoom",e.zoom),it(i,j,this.onCropStart=this.cropStart.bind(this)),e.zoomable&&e.zoomOnWheel&&it(i,"wheel",this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&it(i,"dblclick",this.onDblclick=this.dblclick.bind(this)),it(t.ownerDocument,C,this.onCropMove=this.cropMove.bind(this)),it(t.ownerDocument,O,this.onCropEnd=this.cropEnd.bind(this)),e.responsive&&it(window,"resize",this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,e=this.options,i=this.cropper;z(e.cropstart)&&et(t,"cropstart",e.cropstart),z(e.cropmove)&&et(t,"cropmove",e.cropmove),z(e.cropend)&&et(t,"cropend",e.cropend),z(e.crop)&&et(t,"crop",e.crop),z(e.zoom)&&et(t,"zoom",e.zoom),et(i,j,this.onCropStart),e.zoomable&&e.zoomOnWheel&&et(i,"wheel",this.onWheel,{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&et(i,"dblclick",this.onDblclick),et(t.ownerDocument,C,this.onCropMove),et(t.ownerDocument,O,this.onCropEnd),e.responsive&&et(window,"resize",this.onResize)}},wt={resize:function(){if(!this.disabled){var t,e,i=this.options,a=this.container,r=this.containerData,n=a.offsetWidth/r.width;1===n&&a.offsetHeight===r.height||(i.restore&&(t=this.getCanvasData(),e=this.getCropBoxData()),this.render(),i.restore&&(this.setCanvasData(W(t,(function(e,i){t[i]=e*n}))),this.setCropBoxData(W(e,(function(t,i){e[i]=t*n})))))}},dblclick:function(){var t,e;this.disabled||"none"===this.options.dragMode||this.setDragMode((t=this.dragBox,e=u,(t.classList?t.classList.contains(e):t.className.indexOf(e)>-1)?"move":"crop"))},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>0?1:-1),this.zoom(-a*i,t)))},cropStart:function(t){var e=t.buttons,i=t.button;if(!(this.disabled||("mousedown"===t.type||"pointerdown"===t.type&&"mouse"===t.pointerType)&&(T(e)&&1!==e||T(i)&&0!==i||t.ctrlKey))){var a,r=this.options,n=this.pointers;t.changedTouches?W(t.changedTouches,(function(t){n[t.identifier]=pt(t)})):n[t.pointerId||0]=pt(t),a=Object.keys(n).length>1&&r.zoomable&&r.zoomOnTouch?"zoom":G(t.target,b),k.test(a)&&!1!==at(this.element,"cropstart",{originalEvent:t,action:a})&&(t.preventDefault(),this.action=a,this.cropping=!1,"crop"===a&&(this.cropping=!0,F(this.dragBox,y)))}},cropMove:function(t){var e=this.action;if(!this.disabled&&e){var i=this.pointers;t.preventDefault(),!1!==at(this.element,"cropmove",{originalEvent:t,action:e})&&(t.changedTouches?W(t.changedTouches,(function(t){X(i[t.identifier]||{},pt(t,!0))})):X(i[t.pointerId||0]||{},pt(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var e=this.action,i=this.pointers;t.changedTouches?W(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,V(this.dragBox,y,this.cropped&&this.options.modal)),at(this.element,"cropend",{originalEvent:t,action:e}))}}},bt={change:function(t){var e,i=this.options,a=this.canvasData,r=this.containerData,o=this.cropBoxData,s=this.pointers,c=this.action,h=i.aspectRatio,p=o.left,l=o.top,d=o.width,u=o.height,f=p+d,g=l+u,v=0,y=0,w=r.width,b=r.height,x=!0;!h&&t.shiftKey&&(h=d&&u?d/u:1),this.limited&&(v=o.minLeft,y=o.minTop,w=v+Math.min(r.width,a.width,a.left+a.width),b=y+Math.min(r.height,a.height,a.top+a.height));var j=s[Object.keys(s)[0]],C={x:j.endX-j.startX,y:j.endY-j.startY},O=function(t){switch(t){case"e":f+C.x>w&&(C.x=w-f);break;case"w":p+C.x<v&&(C.x=v-p);break;case"n":l+C.y<y&&(C.y=y-l);break;case"s":g+C.y>b&&(C.y=b-g)}};switch(c){case"all":p+=C.x,l+=C.y;break;case"e":if(C.x>=0&&(f>=w||h&&(l<=y||g>=b))){x=!1;break}O("e"),(d+=C.x)<0&&(c="w",p-=d=-d),h&&(u=d/h,l+=(o.height-u)/2);break;case"n":if(C.y<=0&&(l<=y||h&&(p<=v||f>=w))){x=!1;break}O("n"),u-=C.y,l+=C.y,u<0&&(c="s",l-=u=-u),h&&(d=u*h,p+=(o.width-d)/2);break;case"w":if(C.x<=0&&(p<=v||h&&(l<=y||g>=b))){x=!1;break}O("w"),d-=C.x,p+=C.x,d<0&&(c="e",p-=d=-d),h&&(u=d/h,l+=(o.height-u)/2);break;case"s":if(C.y>=0&&(g>=b||h&&(p<=v||f>=w))){x=!1;break}O("s"),(u+=C.y)<0&&(c="n",l-=u=-u),h&&(d=u*h,p+=(o.width-d)/2);break;case"ne":if(h){if(C.y<=0&&(l<=y||f>=w)){x=!1;break}O("n"),u-=C.y,l+=C.y,d=u*h}else O("n"),O("e"),C.x>=0?f<w?d+=C.x:C.y<=0&&l<=y&&(x=!1):d+=C.x,C.y<=0?l>y&&(u-=C.y,l+=C.y):(u-=C.y,l+=C.y);d<0&&u<0?(c="sw",l-=u=-u,p-=d=-d):d<0?(c="nw",p-=d=-d):u<0&&(c="se",l-=u=-u);break;case"nw":if(h){if(C.y<=0&&(l<=y||p<=v)){x=!1;break}O("n"),u-=C.y,l+=C.y,d=u*h,p+=o.width-d}else O("n"),O("w"),C.x<=0?p>v?(d-=C.x,p+=C.x):C.y<=0&&l<=y&&(x=!1):(d-=C.x,p+=C.x),C.y<=0?l>y&&(u-=C.y,l+=C.y):(u-=C.y,l+=C.y);d<0&&u<0?(c="se",l-=u=-u,p-=d=-d):d<0?(c="ne",p-=d=-d):u<0&&(c="sw",l-=u=-u);break;case"sw":if(h){if(C.x<=0&&(p<=v||g>=b)){x=!1;break}O("w"),d-=C.x,p+=C.x,u=d/h}else O("s"),O("w"),C.x<=0?p>v?(d-=C.x,p+=C.x):C.y>=0&&g>=b&&(x=!1):(d-=C.x,p+=C.x),C.y>=0?g<b&&(u+=C.y):u+=C.y;d<0&&u<0?(c="ne",l-=u=-u,p-=d=-d):d<0?(c="se",p-=d=-d):u<0&&(c="nw",l-=u=-u);break;case"se":if(h){if(C.x>=0&&(f>=w||g>=b)){x=!1;break}O("e"),u=(d+=C.x)/h}else O("s"),O("e"),C.x>=0?f<w?d+=C.x:C.y>=0&&g>=b&&(x=!1):d+=C.x,C.y>=0?g<b&&(u+=C.y):u+=C.y;d<0&&u<0?(c="nw",l-=u=-u,p-=d=-d):d<0?(c="sw",p-=d=-d):u<0&&(c="ne",l-=u=-u);break;case"move":this.move(C.x,C.y),x=!1;break;case"zoom":this.zoom(function(t){var e=n({},t),i=[];return W(t,(function(t,a){delete e[a],W(e,(function(e){var a=Math.abs(t.startX-e.startX),r=Math.abs(t.startY-e.startY),n=Math.abs(t.endX-e.endX),o=Math.abs(t.endY-e.endY),s=Math.sqrt(a*a+r*r),c=(Math.sqrt(n*n+o*o)-s)/s;i.push(c)}))})),i.sort((function(t,e){return Math.abs(t)<Math.abs(e)})),i[0]}(s),t),x=!1;break;case"crop":if(!C.x||!C.y){x=!1;break}e=rt(this.cropper),p=j.startX-e.left,l=j.startY-e.top,d=o.minWidth,u=o.minHeight,C.x>0?c=C.y>0?"se":"ne":C.x<0&&(p-=d,c=C.y>0?"sw":"nw"),C.y<0&&(l-=u),this.cropped||(q(this.cropBox,m),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}x&&(o.width=d,o.height=u,o.left=p,o.top=l,this.action=c,this.renderCropBox()),W(s,(function(t){t.startX=t.endX,t.startY=t.endY}))}},xt={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&F(this.dragBox,y),q(this.cropBox,m),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=X({},this.initialImageData),this.canvasData=X({},this.initialCanvasData),this.cropBoxData=X({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(X(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),q(this.dragBox,y),F(this.cropBox,m)),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,W(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,q(this.cropper,f)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,F(this.cropper,f)),this},destroy:function(){var t=this.element;return t.cropper?(t.cropper=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=this.canvasData,a=i.left,r=i.top;return this.moveTo(B(t)?t:a+Number(t),B(e)?e:r+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&&(T(t)&&(i.left=t,a=!0),T(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,r=this.canvasData,n=r.width,o=r.height,s=r.naturalWidth,c=r.naturalHeight;if((t=Number(t))>=0&&this.ready&&!this.disabled&&a.zoomable){var h=s*t,p=c*t;if(!1===at(this.element,"zoom",{ratio:t,oldRatio:n/s,originalEvent:i}))return this;if(i){var l=this.pointers,d=rt(this.cropper),u=l&&Object.keys(l).length?function(t){var e=0,i=0,a=0;return W(t,(function(t){var r=t.startX,n=t.startY;e+=r,i+=n,a+=1})),{pageX:e/=a,pageY:i/=a}}(l):{pageX:i.pageX,pageY:i.pageY};r.left-=(h-n)*((u.pageX-d.left-r.left)/n),r.top-=(p-o)*((u.pageY-d.top-r.top)/o)}else R(e)&&T(e.x)&&T(e.y)?(r.left-=(h-n)*((e.x-r.left)/n),r.top-=(p-o)*((e.y-r.top)/o)):(r.left-=(h-n)/2,r.top-=(p-o)/2);r.width=h,r.height=p,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return T(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,T(e)?e:1)},scaleY:function(t){var e=this.imageData.scaleX;return this.scale(T(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&&(T(t)&&(i.scaleX=t,a=!0),T(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,r=this.canvasData,n=this.cropBoxData;if(this.ready&&this.cropped){t={x:n.left-r.left,y:n.top-r.top,width:n.width,height:n.height};var o=a.width/a.naturalWidth;if(W(t,(function(e,i){t[i]=e/o})),e){var s=Math.round(t.y+t.height),c=Math.round(t.x+t.width);t.x=Math.round(t.x),t.y=Math.round(t.y),t.width=c-t.x,t.height=s-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,r={};if(this.ready&&!this.disabled&&R(t)){var n=!1;e.rotatable&&T(t.rotate)&&t.rotate!==i.rotate&&(i.rotate=t.rotate,n=!0),e.scalable&&(T(t.scaleX)&&t.scaleX!==i.scaleX&&(i.scaleX=t.scaleX,n=!0),T(t.scaleY)&&t.scaleY!==i.scaleY&&(i.scaleY=t.scaleY,n=!0)),n&&this.renderCanvas(!0,!0);var o=i.width/i.naturalWidth;T(t.x)&&(r.left=t.x*o+a.left),T(t.y)&&(r.top=t.y*o+a.top),T(t.width)&&(r.width=t.width*o),T(t.height)&&(r.height=t.height*o),this.setCropBoxData(r)}return this},getContainerData:function(){return this.ready?X({},this.containerData):{}},getImageData:function(){return this.sized?X({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,e={};return this.ready&&W(["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&&R(t)&&(T(t.left)&&(e.left=t.left),T(t.top)&&(e.top=t.top),T(t.width)?(e.width=t.width,e.height=t.width/i):T(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,r=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&R(t)&&(T(t.left)&&(a.left=t.left),T(t.top)&&(a.top=t.top),T(t.width)&&t.width!==a.width&&(e=!0,a.width=t.width),T(t.height)&&t.height!==a.height&&(i=!0,a.height=t.height),r&&(e?a.height=a.width/r:i&&(a.width=a.height*r)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var e=this.canvasData,i=dt(this.image,this.imageData,e,t);if(!this.cropped)return i;var a=this.getData(),r=a.x,n=a.y,o=a.width,c=a.height,h=i.width/Math.floor(e.naturalWidth);1!==h&&(r*=h,n*=h,o*=h,c*=h);var p=o/c,l=lt({aspectRatio:p,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),d=lt({aspectRatio:p,width:t.minWidth||0,height:t.minHeight||0},"cover"),u=lt({aspectRatio:p,width:t.width||(1!==h?i.width:o),height:t.height||(1!==h?i.height:c)}),f=u.width,m=u.height;f=Math.min(l.width,Math.max(d.width,f)),m=Math.min(l.height,Math.max(d.height,m));var g=document.createElement("canvas"),v=g.getContext("2d");g.width=I(f),g.height=I(m),v.fillStyle=t.fillColor||"transparent",v.fillRect(0,0,f,m);var y=t.imageSmoothingEnabled,w=void 0===y||y,b=t.imageSmoothingQuality;v.imageSmoothingEnabled=w,b&&(v.imageSmoothingQuality=b);var x,j,C,O,k,M,_=i.width,D=i.height,S=r,E=n;S<=-o||S>_?(S=0,x=0,C=0,k=0):S<=0?(C=-S,S=0,k=x=Math.min(_,o+S)):S<=_&&(C=0,k=x=Math.min(o,_-S)),x<=0||E<=-c||E>D?(E=0,j=0,O=0,M=0):E<=0?(O=-E,E=0,M=j=Math.min(D,c+E)):E<=D&&(O=0,M=j=Math.min(c,D-E));var T=[S,E,x,j];if(k>0&&M>0){var N=f/o;T.push(C*N,O*N,k*N,M*N)}return v.drawImage.apply(v,[i].concat(s(T.map((function(t){return Math.floor(I(t))}))))),g},setAspectRatio:function(t){var e=this.options;return this.disabled||B(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 r="crop"===t,n=e.movable&&"move"===t;t=r||n?t:"none",e.dragMode=t,K(i,b,t),V(i,u,r),V(i,w,n),e.cropBoxMovable||(K(a,b,t),V(a,u,r),V(a,w,n))}return this}},jt=p.Cropper,Ct=function(){function t(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e(this,t),!i||!D.test(i.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=i,this.options=X({},S,R(a)&&a),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()}var a,r,n;return a=t,n=[{key:"noConflict",value:function(){return window.Cropper=jt,t}},{key:"setDefaults",value:function(t){X(S,R(t)&&t)}}],(r=[{key:"init",value:function(){var t,e=this.element,i=e.tagName.toLowerCase();if(!e.cropper){if(e.cropper=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=this;if(t){this.url=t,this.imageData={};var i=this.element,a=this.options;if(a.rotatable||a.scalable||(a.checkOrientation=!1),a.checkOrientation&&window.ArrayBuffer)if(M.test(t))_.test(t)?this.read((r=t.replace(ft,""),n=atob(r),o=new ArrayBuffer(n.length),W(s=new Uint8Array(o),(function(t,e){s[e]=n.charCodeAt(e)})),o)):this.clone();else{var r,n,o,s,c=new XMLHttpRequest,h=this.clone.bind(this);this.reloading=!0,this.xhr=c,c.onabort=h,c.onerror=h,c.ontimeout=h,c.onprogress=function(){"image/jpeg"!==c.getResponseHeader("content-type")&&c.abort()},c.onload=function(){e.read(c.response)},c.onloadend=function(){e.reloading=!1,e.xhr=null},a.checkCrossOrigin&&st(t)&&i.crossOrigin&&(t=ct(t)),c.open("GET",t),c.responseType="arraybuffer",c.withCredentials="use-credentials"===i.crossOrigin,c.send()}else this.clone()}}},{key:"read",value:function(t){var e=this.options,i=this.imageData,a=mt(t),r=0,n=1,o=1;if(a>1){this.url=function(t,e){for(var i=[],a=new Uint8Array(t);a.length>0;)i.push(ut.apply(null,P(a.subarray(0,8192)))),a=a.subarray(8192);return"data:".concat(e,";base64,").concat(btoa(i.join("")))}(t,"image/jpeg");var s=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);r=s.rotate,n=s.scaleX,o=s.scaleY}e.rotatable&&(i.rotate=r),e.scalable&&(i.scaleX=n,i.scaleY=o),this.clone()}},{key:"clone",value:function(){var t=this.element,e=this.url,i=t.crossOrigin,a=e;this.options.checkCrossOrigin&&st(e)&&(i||(i="anonymous"),a=ct(e)),this.crossOrigin=i,this.crossOriginUrl=a;var r=document.createElement("img");i&&(r.crossOrigin=i),r.src=a||e,r.alt=t.alt||"The image to crop",this.image=r,r.onload=this.start.bind(this),r.onerror=this.stop.bind(this),F(r,g),t.parentNode.insertBefore(r,t.nextSibling)}},{key:"start",value:function(){var t=this,e=this.image;e.onload=null,e.onerror=null,this.sizing=!0;var i=p.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(p.navigator.userAgent),a=function(e,i){X(t.imageData,{naturalWidth:e,naturalHeight:i,aspectRatio:e/i}),t.sizing=!1,t.sized=!0,t.build()};if(!e.naturalWidth||i){var r=document.createElement("img"),n=document.body||document.documentElement;this.sizingImage=r,r.onload=function(){a(r.width,r.height),i||n.removeChild(r)},r.src=e.src,i||(r.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;",n.appendChild(r))}else a(e.naturalWidth,e.naturalHeight)}},{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,r=document.createElement("div");r.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 n=r.querySelector(".".concat("cropper","-container")),o=n.querySelector(".".concat("cropper","-canvas")),s=n.querySelector(".".concat("cropper","-drag-box")),c=n.querySelector(".".concat("cropper","-crop-box")),h=c.querySelector(".".concat("cropper","-face"));this.container=a,this.cropper=n,this.canvas=o,this.dragBox=s,this.cropBox=c,this.viewBox=n.querySelector(".".concat("cropper","-view-box")),this.face=h,o.appendChild(i),F(t,m),a.insertBefore(n,t.nextSibling),this.isImg||q(i,g),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.viewM
10ode)))||0,F(c,m),e.guides||F(c.getElementsByClassName("".concat("cropper","-dashed")),m),e.center||F(c.getElementsByClassName("".concat("cropper","-center")),m),e.background&&F(n,"".concat("cropper","-bg")),e.highlight||F(h,v),e.cropBoxMovable&&(F(h,w),K(h,b,"all")),e.cropBoxResizable||(F(c.getElementsByClassName("".concat("cropper","-line")),m),F(c.getElementsByClassName("".concat("cropper","-point")),m)),this.render(),this.ready=!0,this.setDragMode(e.dragMode),e.autoCrop&&this.crop(),this.setData(e.data),z(e.ready)&&it(t,"ready",e.ready,{once:!0}),at(t,"ready")}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),q(this.element,m))}},{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(a.prototype,r),n&&i(a,n),t}();return X(Ct.prototype,gt,vt,yt,wt,bt,xt),Ct},"object"===o(e)&&void 0!==t?t.exports=n():void 0===(r="function"==typeof(a=n)?a.call(e,i,e,t):a)||(t.exports=r)},function(t,e,i){var a;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)}!function(){"use strict";var n={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function o(t){return c(p(t),arguments)}function s(t,e){return o.apply(null,[t].concat(e||[]))}function c(t,e){var i,a,s,c,h,p,l,d,u,f=1,m=t.length,g="";for(a=0;a<m;a++)if("string"==typeof t[a])g+=t[a];else if("object"===r(t[a])){if((c=t[a]).keys)for(i=e[f],s=0;s<c.keys.length;s++){if(null==i)throw new Error(o('[sprintf] Cannot access property "%s" of undefined value "%s"',c.keys[s],c.keys[s-1]));i=i[c.keys[s]]}else i=c.param_no?e[c.param_no]:e[f++];if(n.not_type.test(c.type)&&n.not_primitive.test(c.type)&&i instanceof Function&&(i=i()),n.numeric_arg.test(c.type)&&"number"!=typeof i&&isNaN(i))throw new TypeError(o("[sprintf] expecting number but found %T",i));switch(n.number.test(c.type)&&(d=i>=0),c.type){case"b":i=parseInt(i,10).toString(2);break;case"c":i=String.fromCharCode(parseInt(i,10));break;case"d":case"i":i=parseInt(i,10);break;case"j":i=JSON.stringify(i,null,c.width?parseInt(c.width):0);break;case"e":i=c.precision?parseFloat(i).toExponential(c.precision):parseFloat(i).toExponential();break;case"f":i=c.precision?parseFloat(i).toFixed(c.precision):parseFloat(i);break;case"g":i=c.precision?String(Number(i.toPrecision(c.precision))):parseFloat(i);break;case"o":i=(parseInt(i,10)>>>0).toString(8);break;case"s":i=String(i),i=c.precision?i.substring(0,c.precision):i;break;case"t":i=String(!!i),i=c.precision?i.substring(0,c.precision):i;break;case"T":i=Object.prototype.toString.call(i).slice(8,-1).toLowerCase(),i=c.precision?i.substring(0,c.precision):i;break;case"u":i=parseInt(i,10)>>>0;break;case"v":i=i.valueOf(),i=c.precision?i.substring(0,c.precision):i;break;case"x":i=(parseInt(i,10)>>>0).toString(16);break;case"X":i=(parseInt(i,10)>>>0).toString(16).toUpperCase()}n.json.test(c.type)?g+=i:(!n.number.test(c.type)||d&&!c.sign?u="":(u=d?"+":"-",i=i.toString().replace(n.sign,"")),p=c.pad_char?"0"===c.pad_char?"0":c.pad_char.charAt(1):" ",l=c.width-(u+i).length,h=c.width&&l>0?p.repeat(l):"",g+=c.align?u+i+h:"0"===p?u+h+i:h+u+i)}return g}var h=Object.create(null);function p(t){if(h[t])return h[t];for(var e,i=t,a=[],r=0;i;){if(null!==(e=n.text.exec(i)))a.push(e[0]);else if(null!==(e=n.modulo.exec(i)))a.push("%");else{if(null===(e=n.placeholder.exec(i)))throw new SyntaxError("[sprintf] unexpected placeholder");if(e[2]){r|=1;var o=[],s=e[2],c=[];if(null===(c=n.key.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(o.push(c[1]);""!==(s=s.substring(c[0].length));)if(null!==(c=n.key_access.exec(s)))o.push(c[1]);else{if(null===(c=n.index_access.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");o.push(c[1])}e[2]=o}else r|=2;if(3===r)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");a.push({placeholder:e[0],param_no:e[1],keys:e[2],sign:e[3],pad_char:e[4],align:e[5],width:e[6],precision:e[7],type:e[8]})}i=i.substring(e[0].length)}return h[t]=a}e.sprintf=o,e.vsprintf=s,"undefined"!=typeof window&&(window.sprintf=o,window.vsprintf=s,void 0===(a=function(){return{sprintf:o,vsprintf:s}}.call(e,i,e,t))||(t.exports=a))}()}
vendor: 4,222 bytes, line 10
10,function(t,e,i){"use strict";var a=i(0),r=i(4),n=i(16),o=i(10);function s(t){var e=new n(t),i=r(n.prototype.request,e);return a.extend(i,n.prototype,e),a.extend(i,e),i}var c=s(i(7));c.Axios=n,c.create=function(t){return s(o(c.defaults,t))},c.Cancel=i(11),c.CancelToken=i(30),c.isCancel=i(6),c.all=function(t){return Promise.all(t)},c.spread=i(31),t.exports=c,t.exports.default=c},function(t,e,i){"use strict";var a=i(0),r=i(5),n=i(17),o=i(18),s=i(10);function c(t){this.defaults=t,this.interceptors={request:new n,response:new n}}c.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[o,void 0],i=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)i=i.then(e.shift(),e.shift());return i},c.prototype.getUri=function(t){return t=s(this.defaults,t),r(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},a.forEach(["delete","get","head","options"],(function(t){c.prototype[t]=function(e,i){return this.request(s(i||{},{method:t,url:e}))}})),a.forEach(["post","put","patch"],(function(t){c.prototype[t]=function(e,i,a){return this.request(s(a||{},{method:t,url:e,data:i}))}})),t.exports=c},function(t,e,i){"use strict";var a=i(0);function r(){this.handlers=[]}r.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){a.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=r},function(t,e,i){"use strict";var a=i(0),r=i(19),n=i(6),o=i(7);function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=r(t.data,t.headers,t.transformRequest),t.headers=a.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),a.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||o.adapter)(t).then((function(e){return s(t),e.data=r(e.data,e.headers,t.transformResponse),e}),(function(e){return n(e)||(s(t),e&&e.response&&(e.response.data=r(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,i){"use strict";var a=i(0);t.exports=function(t,e,i){return a.forEach(i,(function(i){t=i(t,e)})),t}},function(t,e){var i,a,r=t.exports={};function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(i===setTimeout)return setTimeout(t,0);if((i===n||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:n}catch(t){i=n}try{a="function"==typeof clearTimeout?clearTimeout:o}catch(t){a=o}}();var c,h=[],p=!1,l=-1;function d(){p&&c&&(p=!1,c.length?h=c.concat(h):l=-1,h.length&&u())}function u(){if(!p){var t=s(d);p=!0;for(var e=h.length;e;){for(c=h,h=[];++l<e;)c&&c[l].run();l=-1,e=h.length}c=null,p=!1,function(t){if(a===clearTimeout)return clearTimeout(t);if((a===o||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(t);try{a(t)}catch(e){try{return a.call(null,t)}catch(e){return a.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function m(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];h.push(new f(t,e)),1!==h.length||p||s(u)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}}
vendor: 11,230 bytes, line 10
10,function(t,e,i){"use strict";var a=i(0);t.exports=function(t,e){a.forEach(t,(function(i,a){a!==e&&a.toUpperCase()===e.toUpperCase()&&(t[e]=i,delete t[a])}))}},function(t,e,i){"use strict";var a=i(9);t.exports=function(t,e,i){var r=i.config.validateStatus;i.status&&r&&!r(i.status)?e(a("Request failed with status code "+i.status,i.config,null,i.request,i)):t(i)}},function(t,e,i){"use strict";t.exports=function(t,e,i,a,r){return t.config=e,i&&(t.code=i),t.request=a,t.response=r,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},function(t,e,i){"use strict";var a=i(0);t.exports=a.isStandardBrowserEnv()?{write:function(t,e,i,r,n,o){var s=[];s.push(t+"="+encodeURIComponent(e)),a.isNumber(i)&&s.push("expires="+new Date(i).toGMTString()),a.isString(r)&&s.push("path="+r),a.isString(n)&&s.push("domain="+n),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,i){"use strict";var a=i(26),r=i(27);t.exports=function(t,e){return t&&!a(e)?r(t,e):e}},function(t,e,i){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,i){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,i){"use strict";var a=i(0),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,i,n,o={};return t?(a.forEach(t.split("\n"),(function(t){if(n=t.indexOf(":"),e=a.trim(t.substr(0,n)).toLowerCase(),i=a.trim(t.substr(n+1)),e){if(o[e]&&r.indexOf(e)>=0)return;o[e]="set-cookie"===e?(o[e]?o[e]:[]).concat([i]):o[e]?o[e]+", "+i:i}})),o):o}},function(t,e,i){"use strict";var a=i(0);t.exports=a.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function r(t){var a=t;return e&&(i.setAttribute("href",a),a=i.href),i.setAttribute("href",a),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return t=r(window.location.href),function(e){var i=a.isString(e)?r(e):e;return i.protocol===t.protocol&&i.host===t.host}}():function(){return!0}},function(t,e,i){"use strict";var a=i(11);function r(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var i=this;t((function(t){i.reason||(i.reason=new a(t),e(i.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var t;return{token:new r((function(e){t=e})),cancel:t}},t.exports=r},function(t,e,i){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,i){"use strict";function a(t){return(a="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 r=i(12),n=i(3),o=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},c=Array.isArray,h=Array.prototype.push,p=function(t,e){h.apply(t,c(e)?e:[e])},l=Date.prototype.toISOString,d=n.default,u={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:n.formatters[d],indices:!1,serializeDate:function(t){return l.call(t)},skipNulls:!1,strictNullHandling:!1},f=function t(e,i,n,o,s,h,l,d,f,m,g,v,y,w){var b,x=e;if("function"==typeof l?x=l(i,x):x instanceof Date?x=m(x):"comma"===n&&c(x)&&(x=r.maybeMap(x,(function(t){return t instanceof Date?m(t):t}))),null===x){if(o)return h&&!y?h(i,u.encoder,w,"key",g):i;x=""}if("string"==typeof(b=x)||"number"==typeof b||"boolean"==typeof b||"symbol"===a(b)||"bigint"==typeof b||r.isBuffer(x))return h?[v(y?i:h(i,u.encoder,w,"key",g))+"="+v(h(x,u.encoder,w,"value",g))]:[v(i)+"="+v(String(x))];var j,C=[];if(void 0===x)return C;if("comma"===n&&c(x))j=[{value:x.length>0?x.join(",")||null:void 0}];else if(c(l))j=l;else{var O=Object.keys(x);j=d?O.sort(d):O}for(var k=0;k<j.length;++k){var M=j[k],_="object"===a(M)&&void 0!==M.value?M.value:x[M];if(!s||null!==_){var D=c(x)?"function"==typeof n?n(i,M):i:i+(f?"."+M:"["+M+"]");p(C,t(_,D,n,o,s,h,l,d,f,m,g,v,y,w))}}return C};t.exports=function(t,e){var i,r=t,h=function(t){if(!t)return u;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||u.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var i=n.default;if(void 0!==t.format){if(!o.call(n.formatters,t.format))throw new TypeError("Unknown format option provided.");i=t.format}var a=n.formatters[i],r=u.filter;return("function"==typeof t.filter||c(t.filter))&&(r=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:u.addQueryPrefix,allowDots:void 0===t.allowDots?u.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:u.charsetSentinel,delimiter:void 0===t.delimiter?u.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:u.encode,encoder:"function"==typeof t.encoder?t.encoder:u.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:u.encodeValuesOnly,filter:r,format:i,formatter:a,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:u.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:u.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:u.strictNullHandling}}(e);"function"==typeof h.filter?r=(0,h.filter)("",r):c(h.filter)&&(i=h.filter);var l,d=[];if("object"!==a(r)||null===r)return"";l=e&&e.arrayFormat in s?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var m=s[l];i||(i=Object.keys(r)),h.sort&&i.sort(h.sort);for(var g=0;g<i.length;++g){var v=i[g];h.skipNulls&&null===r[v]||p(d,f(r[v],v,m,h.strictNullHandling,h.skipNulls,h.encode?h.encoder:null,h.filter,h.sort,h.allowDots,h.serializeDate,h.format,h.formatter,h.encodeValuesOnly,h.charset))}var y=d.join(h.delimiter),w=!0===h.addQueryPrefix?"?":"";return h.charsetSentinel&&("iso-8859-1"===h.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),y.length>0?w+y:""}},function(t,e,i){"use strict";var a=i(12),r=Object.prototype.hasOwnProperty,n=Array.isArray,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:a.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},c=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},h=function(t,e,i,a){if(t){var n=i.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/g,s=i.depth>0&&/(\[[^[\]]*])/.exec(n),h=s?n.slice(0,s.index):n,p=[];if(h){if(!i.plainObjects&&r.call(Object.prototype,h)&&!i.allowPrototypes)return;p.push(h)}for(var l=0;i.depth>0&&null!==(s=o.exec(n))&&l<i.depth;){if(l+=1,!i.plainObjects&&r.call(Object.prototype,s[1].slice(1,-1))&&!i.allowPrototypes)return;p.push(s[1])}return s&&p.push("["+n.slice(s.index)+"]"),function(t,e,i,a){for(var r=a?e:c(e,i),n=t.length-1;n>=0;--n){var o,s=t[n];if("[]"===s&&i.parseArrays)o=[].concat(r);else{o=i.plainObjects?Object.create(null):{};var h="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,p=parseInt(h,10);i.parseArrays||""!==h?!isNaN(p)&&s!==h&&String(p)===h&&p>=0&&i.parseArrays&&p<=i.arrayLimit?(o=[])[p]=r:o[h]=r:o={0:r}}r=o}return r}(p,e,i,a)}};t.exports=function(t,e){var i=function(t){if(!t)return o;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?o.charset:t.charset;return{allowDots:void 0===t.allowDots?o.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:o.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:o.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:o.comma,decoder:"function"==typeof t.decoder?t.decoder:o.decoder,delimiter:"string"==typeof t.delimiter||a.isRegExp(t.delimiter)?t.delimiter:o.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:o.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:o.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:o.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:o.strictNullHandling}}(e);if(""===t||null==t)return i.plainObjects?Object.create(null):{};for(var p="string"==typeof t?function(t,e){var i,h={},p=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,l=e.parameterLimit===1/0?void 0:e.parameterLimit,d=p.split(e.delimiter,l),u=-1,f=e.charset;if(e.charsetSentinel)for(i=0;i<d.length;++i)0===d[i].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[i]?f="utf-8":"utf8=%26%2310003%3B"===d[i]&&(f="iso-8859-1"),u=i,i=d.length);for(i=0;i<d.length;++i)if(i!==u){var m,g,v=d[i],y=v.indexOf("]="),w=-1===y?v.indexOf("="):y+1;-1===w?(m=e.decoder(v,o.decoder,f,"key"),g=e.strictNullHandling?null:""):(m=e.decoder(v.slice(0,w),o.decoder,f,"key"),g=a.maybeMap(c(v.slice(w+1),e),(function(t){return e.decoder(t,o.decoder,f,"value")}))),g&&e.interpretNumericEntities&&"iso-8859-1"===f&&(g=s(g)),v.indexOf("[]=")>-1&&(g=n(g)?[g]:g),r.call(h,m)?h[m]=a.combine(h[m],g):h[m]=g}return h}(t,i):t,l=i.plainObjects?Object.create(null):{},d=Object.keys(p),u=0;u<d.length;++u){var f=d[u],m=h(f,p[f],i,"string"==typeof t);l=a.merge(l,m,i)}return a.compact(l)}},function(t,e){t.exports='\x3c!-- Icon from https://github.com/google/material-design-icons --\x3e\n\x3c!-- Licensed under Apache License 2.0 --\x3e\n\x3c!-- Copyright (c) Google Inc. --\x3e\n<svg\n        width="20"\n        height="20"\n        viewB
10ox="0 0 20 20"\n        xmlns="http://www.w3.org/2000/svg"\n>\n    <g fill="none" fill-rule="evenodd">\n        <path\n                fill="#666"\n                fill-rule="nonzero"\n                d="M12.12 10l3.53 3.53-2.12 2.12L10 12.12l-3.54 3.54-2.12-2.12L7.88 10 4.34 6.46l2.12-2.12L10 7.88l3.54-3.53 2.12 2.12z"\n        />\n    </g>\n</svg>'},function(t,e){t.exports='<svg\n        xmlns="http://www.w3.org/2000/svg"\n        width="24"\n        height="24"\n        viewBox="0 0 24 24"\n>\n    <path d="M0 0h24v24H0z" fill="none" />\n    <path\n            d="M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"\n    />\n</svg>'},function(t,e){!function(t){function e(e,i){var a=t(e),r=a.val(),n=a.parents(".acf-field-object-image-aspect-ratio-crop").first().find(".js-aspect-ratio-width"),o=a.parents(".acf-field-object-image-aspect-ratio-crop").first().find(".js-aspect-ratio-height");if("pixel_size"===r){var s=a.parents(".acf-field-object-image-aspect-ratio-crop").first().find(".js-min-width");s.val(""),n.prop("required",!0),n.val()&&(s.val(n.val()),s.attr("value",n.val())),s.prop("readonly",!0);var c=a.parents(".acf-field-object-image-aspect-ratio-crop").first().find(".js-min-height");c.val(""),o.prop("required",!0),o.val()&&(c.val(o.val()),c.attr("value",o.val())),c.prop("readonly",!0)}if("pixel_size"!==r){var h=a.parents(".acf-field-object-image-aspect-ratio-crop").first().find(".js-min-width");"ready"!==i&&h.val(""),h.prop("readonly",!1);var p=a.parents(".acf-field-object-image-aspect-ratio-crop").first().find(".js-min-height");"ready"!==i&&p.val(""),p.prop("readonly",!1)}"free_crop"===r&&(n.prop("required",!1),o.prop("required",!1)),"free_crop"!==r&&(n.prop("required",!0),o.prop("required",!0))}t(document).ready((function(){t(".acf-field-object-image-aspect-ratio-crop .crop-type-select").each((function(){e(this,"ready")}))})),acf.add_action("append",(function(){t(".acf-field-object-image-aspect-ratio-crop .crop-type-select").each((function(){e(this,"append")}))})),t(document).on("change",".acf-field-object-image-aspect-ratio-crop .crop-type-select",(function(t){e(this,"change")})),t(document).on("input change",".acf-field-object-image-aspect-ratio-crop .js-aspect-ratio-height",(function(i){e(t(this).parents(".acf-field-object-image-aspect-ratio-crop").first().find(".crop-type-select"))})),t(document).on("input change",".acf-field-object-image-aspect-ratio-crop .js-aspect-ratio-width",(function(i){e(t(this).parents(".acf-field-object-image-aspect-ratio-crop").first().find(".crop-type-select"))}))}(jQuery)},,function(t,e,i){"use strict";i.r(e);var a=i(13),r=i.n(a),n=i(1),o=i.n(n),s=i(2),c=i.n(s),h=i(14);
11/*!
12 * Based on assets/js/acf-input.js from
13 * https://github.com/AdvancedCustomFields/acf by elliotcondon, licensed
14 * under GPLv2 or later
15 */
16!function(t){var e=null;function a(t){}acf.fields.image_aspect_ratio_crop=acf.field.extend({type:"image_aspect_ratio_crop",$el:null,$input:null,$img:null,actions:{ready:"initialize",append:"initialize"},events:{'click a[data-name="add"]':"add",'click a[data-name="edit"]':"edit",'click a[data-name="remove"]':"remove",'change input[type="file"]':"change",'click a[data-name="crop"]':"changeCrop","change .js-aiarc-upload":"front_end_upload"},front_end_upload:function(e){var i=this,a=e.currentTarget,r=t(this.$field).find(".acf-image-uploader-aspect-ratio-crop").data("key"),n=a.files,s=new FormData;if(this.isFirstCrop=!0,n.length){Array.from(Array(n.length).keys()).map((function(t){s.append("image",n[t],n[t].name),s.append("key",r)})),a.value="";var c={onUploadProgress:function(t){var e=Math.round(100*t.loaded/t.total);i.$el.find(".js-aiarc-upload-progress").html(Object(h.sprintf)(window.aiarc_translations.upload_progress,e))},headers:{"X-Aiarc-Nonce":window.aiarc.nonce,"X-WP-Nonce":window.aiarc.wp_rest_nonce}};t(this.$el).find(".js-aiarc-upload").hide(),t(this.$el).find(".js-aiarc-upload-progress").show(),o.a.post("".concat(window.aiarc.api_root,"/aiarc/v1/upload"),s,c).then((function(e){o.a.get("".concat(window.aiarc.api_root,"/aiarc/v1/get/").concat(e.data.attachment_id)).then((function(t){var e=new window.Backbone.Model(t.data);i.render(e)})),t(i.$el).find(".js-aiarc-upload-progress").hide(),t(i.$el).find(".js-aiarc-upload").show();var a=i.$field;a.find(".acf-image-uploader-aspect-ratio-crop").data("original-image-id",e.data.attachment_id).attr("data-original-image-id",e.data.attachment_id),o.a.get("".concat(window.aiarc.api_root,"/aiarc/v1/get/").concat(e.data.attachment_id)).then((function(t){var e=new window.Backbone.Model(t.data);i.render(e),i.openModal({attachment:e,field:a})}))})).catch((function(e){t(i.$el).find(".js-aiarc-upload-progress").hide(),t(i.$el).find(".js-aiarc-upload").show();var a=window.aiarc_translations.upload_failed;e.response&&e.response.data&&e.response.data.message&&(a=e.response.data.message),window.alert(a)}))}},focus:function(){this.$el=this.$field.find(".acf-image-uploader-aspect-ratio-crop"),this.$input
16=this.$el.find('input[type="hidden"]'),this.$img=this.$el.find("img"),this.o=acf.get_data(this.$el)},initialize:function(){var i=this;this.isFirstCrop=null;var a=this;"basic"==this.o.uploader&&this.$el.closest("form").attr("enctype","multipart/form-data"),this.escapeHandlerBound=this.escapeHandler.bind(this),t(document).on("click",".js-acf-image-aspect-ratio-crop-cancel",(function(){return i.closeModal()})),t(document).off("click",".js-acf-image-aspect-ratio-crop-reset").on("click",".js-acf-image-aspect-ratio-crop-reset",(function(){i.cropper.reset()})),t(document).off("click",".js-acf-image-aspect-ratio-crop-crop").on("click",".js-acf-image-aspect-ratio-crop-crop",(function(){var i=a.cropper.getData(!0);t(".js-acf-image-aspect-ratio-crop-modal").css("max-width",a.cropper.containerData.width);t(e).find(".acf-image-uploader-aspect-ratio-crop").data("crop_type");var r={id:t(this).data("id"),aspectRatioHeight:t(this).data("aspect-ratio-height"),aspectRatioWidth:t(this).data("aspect-ratio-width"),cropType:t(this).data("crop-type"),x:i.x,y:i.y,width:i.width,height:i.height,temp_post_id:aiarc.temp_post_id};t(".js-acf-image-aspect-ratio-crop-crop").prop("disabled",!0),t(".js-acf-image-aspect-ratio-crop-reset").prop("disabled",!0);var n='<div class="acf-image-aspect-ratio-crop-modal-loading"><div class="acf-image-aspect-ratio-crop-modal-loading-icon">\x3c!-- Icon from https://github.com/google/material-design-icons --\x3e\x3c!-- Licensed under Apache License 2.0 --\x3e\x3c!-- Copyright (c) Google Inc. --\x3e<svg width="14" height="14" viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"><path d="M7 2.64V1L4.75 3.18 7 5.36V3.73A3.33 3.33 0 0 1 10.38 7c0 .55-.15 1.07-.4 1.53l.82.8c.44-.68.7-1.47.7-2.33A4.43 4.43 0 0 0 7 2.64zm0 7.63A3.33 3.33 0 0 1 3.62 7c0-.55.15-1.07.4-1.53l-.82-.8c-.44.68-.7 1.47-.7 2.33A4.43 4.43 0 0 0 7 11.36V13l2.25-2.18L7 8.64v1.63z" fill="#FFF" fill-rule="nonzero"/></svg></div><div class="acf-image-aspect-ratio-crop-modal-loading-text">'+aiarc_translations.cropping_in_progress+"</div></div>",s='<div class="acf-image-aspect-ratio-crop-modal-error"><div class="acf-image-aspect-ratio-crop-modal-error-icon">\x3c!-- Icon from https://github.com/google/material-design-icons --\x3e\x3c!-- Licensed under Apache License 2.0 --\x3e\x3c!-- Copyright (c) Google Inc. --\x3e<svg width="22" height="22" viewBox="0 0 22 22" xmlns="http://www.w3.org/2000/svg"><path d="M1 20.14h20l-10-17-10 17zm10.9-2.69h-1.8v-1.79h1.8v1.8zm0-3.58h-1.8V10.3h1.8v3.58z" fill="#F44336" fill-rule="nonzero"/></svg></div><div class="acf-image-aspect-ratio-crop-modal-error-text">'+aiarc_translations.cropping_failed+"</div></div>";t(".js-acf-image-aspect-ratio-crop-modal-footer-status").empty(),t(".js-acf-image-aspect-ratio-crop-modal-footer-status").html(n),a.cropper.disable();var h={},p=null;""===window.aiarc_settings.rest_api_compat&&(p="".concat(window.aiarc.api_root,"/aiarc/v1/crop"),h={headers:{"X-Aiarc-Nonce":window.aiarc.nonce,"X-WP-Nonce":window.aiarc.wp_rest_nonce}}),"1"===window.aiarc_settings.rest_api_compat&&(p=ajaxurl,r=c.a.stringify({action:"acf_image_aspect_ratio_crop_crop",data:JSON.stringify(r)})),o.a.post(p,r,h).then((function(e){a.cropComplete(e.data),t(".js-acf-image-aspect-ratio-crop-crop").prop("disabled",!1),t(".js-acf-image-aspect-ratio-crop-reset").prop("disabled",!1),t(".js-acf-image-aspect-ratio-crop-modal-footer-status").empty()})).catch((function(e){console.error(e),a.cropper.enable(),t(".js-acf-image-aspect-ratio-crop-crop").prop("disabled",!1),t(".js-acf-image-aspect-ratio-crop-reset").prop("disabled",!1),t(".js-acf-image-aspect-ratio-crop-modal-footer-status").empty(),t(".js-acf-image-aspect-ratio-crop-modal-footer-status").html(s)}))}))},prepare:function(t){if((t=t||{})._valid)return t;var e={url:"",alt:"",title:"",caption:"",description:"",width:0,height:0};return t.id&&(e=t.attributes),e._valid=!0,e},render:function(t){t=this.prepare(t),this.$img.attr({src:t.url,alt:t.alt,title:t.title});var e="";t.id&&(e=t.id),acf.val(this.$input,e),e?this.$el.addClass("has-value"):this.$el.removeClass("has-value")},add:function(){var e=this,i=this.$field,a=acf.get_closest_field(this.$field,"repeater");acf.media.popup({title:acf._e("image","select"),mode:"select",type:"image",f
16ield:i.data("key"),multiple:!1,library:this.o.library,mime_types:this.o.mime_types,select:function(r,n){if(n>0){var o=i.data("key"),s=i.closest(".acf-row");if(i=!1,s.nextAll(".acf-row:visible").each((function(){if(i=acf.get_field(o,t(this))){if(!i.find(".acf-image-uploader-aspect-ratio-crop.has-value").exists())return!1;i=!1}})),!i){if(!(s=acf.fields.repeater.doFocus(a).add()))return!1;i=acf.get_field(o,s)}}e.isFirstCrop=!0,i.find(".acf-image-uploader-aspect-ratio-crop").data("original-image-id",r.id).attr("data-original-image-id",r.id),e.openModal({attachment:r,field:i}),e.set("$field",i).render(r)}})},changeCrop:function(){var e=this;this.isFirstCrop=!1;var i=t(this.$field).find(".acf-image-uploader-aspect-ratio-crop").data("original-image-id"),a=function(t){var i=new window.Backbone.Model(t.data),a=e.$field;e.openModal({attachment:i,field:a})};if(""===window.aiarc_settings.rest_api_compat&&o.a.get("".concat(window.aiarc.api_root,"/aiarc/v1/get/").concat(i)).then((function(t){return a(t)})),"1"===window.aiarc_settings.rest_api_compat){var r=c.a.stringify({action:"acf_image_aspect_ratio_crop_get_attachment",data:JSON.stringify({attachment_id:i})});o.a.post(ajaxurl,r).then((function(t){return a(t)}))}},edit:function(){this.$field;var t=null;if(t=this.$input.parent().attr("data-original-image-id")&&"original"===window.aiarc_settings.modal_type?this.$input.parent().attr("data-original-image-id"):this.$input.val())acf.media.popup({title:acf._e("image","edit"),button:acf._e("image","update"),mode:"edit",attachment:t})},remove:function(){this.$field.find(".acf-image-uploader-aspect-ratio-crop").data("original-image-id",null).attr("data-original-image-id",null).data("c
16oordinates",null).attr("data-coordinates",null);this.render({})},change:function(t){},escapeHandler:function(t){"Escape"===t.key&&this.closeModal()},openModal:function(a){var n=a.attachment.attributes.url,o=a.attachment.attributes.id;e=a.field,document.addEventListener("keydown",this.escapeHandlerBound);var s=t(e).find(".acf-image-uploader-aspect-ratio-crop").data("aspect_ratio_width"),c=t(e).find(".acf-image-uploader-aspect-ratio-crop").data("aspect_ratio_height"),h=t(e).find(".acf-image-uploader-aspect-ratio-crop").data("crop_type"),p={aspectRatio:s/c,viewMode:1,autoCropArea:1,zoomable:!1,checkCrossOrigin:!1,checkOrientation:!1,responsive:!0};"pixel_size"===h&&(p.crop=function(t){var e=t.detail.width,i=t.detail.height;(e<s||i<c)&&this.cropper.setData({width:s,height:c})});var l=t(e).find(".acf-image-uploader-aspect-ratio-crop").data("coordinates");l&&(p.data=l),t("body").append('\n<div class="acf-image-aspect-ratio-crop-backdrop">\n  <div class="acf-image-aspect-ratio-crop-modal-wrapper">\n    <div\n      class="acf-image-aspect-ratio-crop-modal js-acf-image-aspect-ratio-crop-modal"\n    >\n      <div class="acf-image-aspect-ratio-crop-modal-heading">\n        <div class="acf-image-aspect-ratio-crop-modal-heading-text">\n          '.concat(aiarc_translations.modal_title,'\n        </div>\n        <button\n          class="acf-image-aspect-ratio-crop-modal-heading-close js-acf-image-aspect-ratio-crop-cancel"\n          aria-label="Close"\n        >\n          ').concat(i(34),'\n        </button>\n      </div>\n      <div class="acf-image-aspect-ratio-crop-modal-image-container">\n        <img\n          class="acf-image-aspect-ratio-crop-modal-image js-acf-image-aspect-ratio-crop-modal-image"\n          src="').concat(n,'"\n        />\n      </div>\n\n      <div class="acf-image-aspect-ratio-crop-modal-footer">\n        <div\n          class="acf-image-aspect-ratio-crop-modal-footer-status js-acf-image-aspect-ratio-crop-modal-footer-status"\n        ></div>\n        <div class="acf-image-aspect-ratio-crop-modal-footer-buttons">\n          <button\n            class="aiarc-button aiarc-button-link acf-image-aspect-ratio-crop-reset js-acf-image-aspect-ratio-crop-reset"\n          >\n            ').concat(i(35),"\n            ").concat(aiarc_translations.reset,'\n          </button>\n          <button class="aiarc-button aiarc-button-default js-acf-image-aspect-ratio-crop-cancel">\n            ').concat(aiarc_translations.cancel,'\n          </button>\n          <button\n            class="aiarc-button aiarc-button-primary js-acf-image-aspect-ratio-crop-crop"\n            data-id="').concat(o,'"\n            data-aspect-ratio-height="').concat(c,'"\n            data-aspect-ratio-width="').concat(s,'"\n            data-crop-type="').concat(h,'"\n          >\n            ').concat(aiarc_translations.crop,"\n          </button>\n        </div>\n      </div>\n    </div>\n  </div>\n</div>\n")),this.cropper=new r.a(t(".js-acf-image-aspect-ratio-crop-modal-image")[0],p),window._acf_image_aspect_ratio_cropper=this.cropper},cropComplete:function(i){var a=this;t(e).find(".acf-image-uploader-aspect-ratio-crop").data("coordinates",this.cropper.getData(!0)).attr("data-coordinates",JSON.stringify(this.cropper.getData(!0))),this.cropper.destroy(),t(e).find("input").first().val(i.id);var r=function(t){var e=new window.Backbone.Model(t.data);a.render(e),a.isFirstCrop=!1,a.closeModal()};if(console.log(i),""===window.aiarc_settings.rest_api_compat&&o.a.get("".concat(window.aiarc.api_root,"/aiarc/v1/get/").concat(i.id)).then((function(t){return r(t)})),"1"===window.aiarc_settings.rest_api_compat){var n=c.a.stringify({action:"acf_image_aspect_ratio_crop_get_attachment",data:JSON.stringify({attachment_id:i.id})});o.a.post(ajaxurl,n).then((function(t){return r(t)}))}},closeModal:function(){this.isFirstCrop&&(acf.val(this.$input,""),this.render({})),t(".acf-image-aspect-ratio-crop-backdrop").remove(),document.removeEventListener("keydown",this.escapeHandlerBound),this.cropper.destroy()}}),acf.add_action("ready_field/type=image_aspect_ratio_crop",a),acf.add_action("append_field/type=image_aspect_ratio_crop",a)}(jQuery);i(36)}]);
17//# sourceMappingURL=input-script.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.